@@ -309,7 +309,7 @@ export const themeOverrides = {
309309 valueContainer : ( provided ) => ( {
310310 ...provided ,
311311 p : 0 ,
312- pl : 2 ,
312+ paddingInlineStart : 2 ,
313313 color : "gray.400" ,
314314 } ) ,
315315 menu : ( provided ) => ( {
@@ -428,9 +428,20 @@ export const themeOverrides = {
428428 ".rdg-row:last-child .rdg-cell:last-child" : {
429429 borderBottomRightRadius : "lg" ,
430430 } ,
431+ ".rdg[dir='rtl']" : {
432+ ".rdg-row:last-child .rdg-cell:first-of-type" : {
433+ borderBottomRightRadius : "lg" ,
434+ borderBottomLeftRadius : "none" ,
435+ } ,
436+ ".rdg-row:last-child .rdg-cell:last-child" : {
437+ borderBottomLeftRadius : "lg" ,
438+ borderBottomRightRadius : "none" ,
439+ } ,
440+ } ,
431441 ".rdg-cell" : {
432442 contain : "size layout style paint" ,
433443 borderRight : "none" ,
444+ borderInlineEnd : "none" ,
434445 borderBottom : "1px solid var(--rdg-border-color)" ,
435446 whiteSpace : "nowrap" ,
436447 overflow : "hidden" ,
@@ -439,10 +450,10 @@ export const themeOverrides = {
439450 boxShadow : "inset 0 0 0 1px var(--rdg-selection-color)" ,
440451 } ,
441452 "&:first-of-type" : {
442- borderLeft : "1px solid var(--rdg-border-color)" ,
453+ borderInlineStart : "1px solid var(--rdg-border-color)" ,
443454 } ,
444455 "&:last-child" : {
445- borderRight : "1px solid var(--rdg-border-color)" ,
456+ borderInlineEnd : "1px solid var(--rdg-border-color)" ,
446457 } ,
447458 } ,
448459 ".rdg-cell-error" : {
@@ -481,4 +492,16 @@ export const themeOverrides = {
481492 } ,
482493} as const
483494
495+ export const rtlThemeSupport = {
496+ components : {
497+ Modal : {
498+ baseStyle : {
499+ dialog : {
500+ direction : "rtl" ,
501+ } ,
502+ } ,
503+ } ,
504+ } ,
505+ } as const
506+
484507export type CustomTheme = DeepPartial < typeof themeOverrides >
0 commit comments