@@ -152,7 +152,7 @@ const Datepicker = ({
152
152
153
153
return (
154
154
< div className = { classNames (
155
- 'tr-relative tr-w-full' ,
155
+ 'tremor-base tr-relative tr-w-full' ,
156
156
parseMarginTop ( marginTop ) ,
157
157
parseMaxWidth ( maxWidth ) ,
158
158
) } >
@@ -168,7 +168,7 @@ const Datepicker = ({
168
168
ref = { datePickerRef }
169
169
onClick = { ( ) => setShowDatePickerModal ( ! showDatePickerModal ) }
170
170
className = { classNames (
171
- 'tr-flex tr-items-center tr-w-full tr-truncate' ,
171
+ 'input-elem tr-flex tr-items-center tr-w-full tr-truncate' ,
172
172
'focus:tr-ring-2 focus:tr-outline-none focus:tr-z-10' ,
173
173
enableRelativeDates ? border . none . right : classNames ( borderRadius . md . right , border . sm . right ) ,
174
174
getColorVariantsFromColorThemeValue ( defaultColors . border ) . borderColor ,
@@ -194,7 +194,7 @@ const Datepicker = ({
194
194
aria-hidden = "true"
195
195
/>
196
196
< p className = { classNames (
197
- 'tr-whitespace-nowrap tr-truncate' ,
197
+ 'text-elem tr-whitespace-nowrap tr-truncate' ,
198
198
fontSize . sm ,
199
199
fontWeight . md ,
200
200
selectedStartDay
@@ -209,7 +209,7 @@ const Datepicker = ({
209
209
ref = { dropdownRef }
210
210
onClick = { ( ) => setShowDropdownModal ( ! showDropdownModal ) }
211
211
className = { classNames (
212
- 'tr-inline-flex tr-justify-between tr-w-48 tr-truncate' ,
212
+ 'input-elem tr-inline-flex tr-justify-between tr-w-48 tr-truncate' ,
213
213
'focus:tr-ring-2 focus:tr-outline-none' ,
214
214
getColorVariantsFromColorThemeValue ( defaultColors . canvasBackground ) . hoverBgColor ,
215
215
getColorVariantsFromColorThemeValue ( defaultColors . border ) . borderColor ,
@@ -224,7 +224,7 @@ const Datepicker = ({
224
224
) }
225
225
>
226
226
< p className = { classNames (
227
- 'tr-whitespace-nowrap tr-truncate' ,
227
+ 'text-elem tr-whitespace-nowrap tr-truncate' ,
228
228
fontSize . sm ,
229
229
fontWeight . md ,
230
230
selectedRelativeFilterOption
@@ -277,7 +277,7 @@ const Datepicker = ({
277
277
type = "button"
278
278
onClick = { ( ) => previousMonth ( firstDayCurrentMonth , setCurrentMonth ) }
279
279
className = { classNames (
280
- 'tr-inline-flex focus:tr-outline-none focus:tr-ring-2' ,
280
+ 'input-elem tr-inline-flex focus:tr-outline-none focus:tr-ring-2' ,
281
281
getColorVariantsFromColorThemeValue ( defaultColors . canvasBackground ) . hoverBgColor ,
282
282
getColorVariantsFromColorThemeValue ( defaultColors . border ) . borderColor ,
283
283
getColorVariantsFromColorThemeValue ( defaultColors . ring ) . focusRingColor ,
@@ -302,6 +302,7 @@ const Datepicker = ({
302
302
/>
303
303
</ button >
304
304
< h2 className = { classNames (
305
+ 'text-elem' ,
305
306
getColorVariantsFromColorThemeValue ( defaultColors . darkestText ) . textColor ,
306
307
fontSize . sm ,
307
308
fontWeight . lg ,
@@ -313,7 +314,7 @@ const Datepicker = ({
313
314
onClick = { ( ) => nextMonth ( firstDayCurrentMonth , setCurrentMonth ) }
314
315
type = "button"
315
316
className = { classNames (
316
- 'tr-inline-flex focus:tr-outline-none focus:tr-ring-2' ,
317
+ 'input-elem tr-inline-flex focus:tr-outline-none focus:tr-ring-2' ,
317
318
getColorVariantsFromColorThemeValue ( defaultColors . canvasBackground ) . hoverBgColor ,
318
319
getColorVariantsFromColorThemeValue ( defaultColors . border ) . borderColor ,
319
320
getColorVariantsFromColorThemeValue ( defaultColors . ring ) . focusRingColor ,
@@ -377,7 +378,7 @@ const Datepicker = ({
377
378
onPointerEnter = { ( ) => setHoveredDay ( day ) }
378
379
onPointerLeave = { ( ) => setHoveredDay ( null ) }
379
380
className = { classNames (
380
- 'tr-w-full tr-flex tr-items-center tr-justify-center' ,
381
+ 'input-elem tr-w-full tr-flex tr-items-center tr-justify-center' ,
381
382
getDayBgColorClassName (
382
383
day ,
383
384
selectedStartDay ,
@@ -429,7 +430,7 @@ const Datepicker = ({
429
430
setShowDropdownModal ( false ) ;
430
431
} }
431
432
className = { classNames (
432
- 'tr-flex tr-items-center tr-justify-between tr-w-full tr-truncate' ,
433
+ 'input-elem tr-flex tr-items-center tr-justify-between tr-w-full tr-truncate' ,
433
434
spacing . twoXl . paddingLeft ,
434
435
spacing . twoXl . paddingRight ,
435
436
spacing . md . paddingTop ,
@@ -446,7 +447,7 @@ const Datepicker = ({
446
447
)
447
448
) }
448
449
>
449
- < p className = "tr-whitespace-nowrap tr-truncate" >
450
+ < p className = "text-elem tr-whitespace-nowrap tr-truncate" >
450
451
{ filterOption . name }
451
452
</ p >
452
453
</ button >
0 commit comments