@@ -113,7 +113,8 @@ function DateInput({
113113 const [ isEmpty , setIsEmpty ] = useState ( false )
114114 const [ error , setError ] = useState < string | null > ( null )
115115
116- const { colors, fontSizes, lineHeights, spacing, sizes } = useEmotionTheme ( )
116+ const { colors, fontSizes, fontWeights, lineHeights, spacing, sizes } =
117+ useEmotionTheme ( )
117118
118119 const { locale } = useContext ( LibContext )
119120 const loadedLocale = useIntlLocale ( locale )
@@ -282,7 +283,7 @@ function DateInput({
282283 overrides : {
283284 Body : {
284285 style : {
285- marginTop : theme . spacing . px ,
286+ marginTop : spacing . px ,
286287 } ,
287288 } ,
288289 } ,
@@ -415,7 +416,7 @@ function DateInput({
415416 // Baseweb has an error prop for the input, but its coloring doesn't reconcile
416417 // with our dark theme - we handle error state coloring manually here
417418 ...( error && {
418- backgroundColor : colors . dangerBg ,
419+ backgroundColor : colors . redBackgroundColor ,
419420 } ) ,
420421 } ,
421422 } ,
@@ -445,7 +446,7 @@ function DateInput({
445446 } ,
446447 Input : {
447448 style : {
448- fontWeight : theme . fontWeights . normal ,
449+ fontWeight : fontWeights . normal ,
449450 // Baseweb requires long-hand props, short-hand leads to weird bugs & warnings.
450451 paddingRight : spacing . sm ,
451452 paddingLeft : spacing . md ,
@@ -454,7 +455,7 @@ function DateInput({
454455 lineHeight : lineHeights . inputWidget ,
455456
456457 "::placeholder" : {
457- color : theme . colors . fadedText60 ,
458+ color : colors . fadedText60 ,
458459 } ,
459460
460461 // Change input value text color in error state - matches st.error in light and dark mode
@@ -476,12 +477,12 @@ function DateInput({
476477 overrides : {
477478 ControlContainer : {
478479 style : {
479- height : theme . sizes . minElementHeight ,
480+ height : sizes . minElementHeight ,
480481 // Baseweb requires long-hand props, short-hand leads to weird bugs & warnings.
481- borderLeftWidth : theme . sizes . borderWidth ,
482- borderRightWidth : theme . sizes . borderWidth ,
483- borderTopWidth : theme . sizes . borderWidth ,
484- borderBottomWidth : theme . sizes . borderWidth ,
482+ borderLeftWidth : sizes . borderWidth ,
483+ borderRightWidth : sizes . borderWidth ,
484+ borderTopWidth : sizes . borderWidth ,
485+ borderBottomWidth : sizes . borderWidth ,
485486 } ,
486487 } ,
487488 } ,
0 commit comments