@@ -153,7 +153,8 @@ export interface DatepickerProps extends UseDatepickerProps {
153153 datepickerHeight ?: string
154154 datepickerLeft ?: string
155155 datepickerTop ?: string
156- datepickerZIndex ?: number | null
156+ datepickerPadding ?: string | null
157+ datepickerCloseWrapperRight ?: string | null
157158}
158159
159160function Datepicker (
@@ -189,7 +190,8 @@ function Datepicker(
189190 datepickerHeight = 'unset' ,
190191 datepickerLeft = '0px' ,
191192 datepickerTop = '0px' ,
192- datepickerZIndex = null ,
193+ datepickerPadding = null ,
194+ datepickerCloseWrapperRight = null ,
193195 } : DatepickerProps ,
194196 ref ?: React . Ref < unknown > ,
195197) {
@@ -311,13 +313,13 @@ function Datepicker(
311313 >
312314 < StyledDatepicker
313315 background = { theme . datepickerBackground }
314- p = { theme . datepickerPadding }
316+ p = { datepickerPadding || theme . datepickerPadding }
315317 borderRadius = { datepickerBorderRadius || theme . datepickerBorderRadius }
316318 position = { theme . datepickerPosition }
317319 boxShadow = { theme . datepickerBoxShadow }
318320 width = { theme . datepickerWidth }
319321 height = { datepickerHeight }
320- zIndex = { datepickerZIndex || theme . datepickerZIndex }
322+ zIndex = { theme . datepickerZIndex }
321323 rtl = { rtl }
322324 left = { datepickerLeft }
323325 top = { datepickerTop }
@@ -328,7 +330,7 @@ function Datepicker(
328330 display = { theme . datepickerCloseWrapperDisplay }
329331 justifyContent = { theme . datepickerCloseWrapperJustifyContent }
330332 position = { theme . datepickerCloseWrapperPosition }
331- right = { theme . datepickerCloseWrapperRight }
333+ right = { datepickerCloseWrapperRight || theme . datepickerCloseWrapperRight }
332334 top = { theme . datepickerCloseWrapperTop }
333335 left = { theme . datepickerCloseWrapperLeft }
334336 bottom = { theme . datepickerCloseWrapperBottom }
0 commit comments