@ornikar/kitt-universal 27.1.0 → 27.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/definitions/Button/AnimatedContainer.d.ts +3 -1
  3. package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
  4. package/dist/definitions/Button/AnimatedContainer.web.d.ts +1 -1
  5. package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
  6. package/dist/definitions/Button/Button.d.ts.map +1 -1
  7. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  8. package/dist/definitions/Button/ButtonPadding.d.ts +2 -2
  9. package/dist/definitions/Button/ButtonPadding.d.ts.map +1 -1
  10. package/dist/definitions/Button/hooks/useNativeAnimation.d.ts.map +1 -1
  11. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +3 -3
  12. package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
  13. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +1 -1
  14. package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
  15. package/dist/definitions/Choices/ChoiceItem.d.ts +6 -4
  16. package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
  17. package/dist/definitions/Choices/Choices.d.ts +2 -2
  18. package/dist/definitions/Choices/Choices.d.ts.map +1 -1
  19. package/dist/definitions/Choices/utils/getBorderColor.d.ts +8 -0
  20. package/dist/definitions/Choices/utils/getBorderColor.d.ts.map +1 -0
  21. package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts +1 -5
  22. package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts.map +1 -1
  23. package/dist/definitions/IconButton/IconButton.d.ts +8 -16
  24. package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
  25. package/dist/definitions/IconButton/utils/getButtonTypeAndVariant.d.ts +9 -0
  26. package/dist/definitions/IconButton/utils/getButtonTypeAndVariant.d.ts.map +1 -0
  27. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +19 -43
  28. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  29. package/dist/definitions/themes/default.d.ts +5 -0
  30. package/dist/definitions/themes/default.d.ts.map +1 -1
  31. package/dist/definitions/themes/late-ocean/button.d.ts +3 -11
  32. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  33. package/dist/definitions/themes/late-ocean/choices.d.ts +20 -2
  34. package/dist/definitions/themes/late-ocean/choices.d.ts.map +1 -1
  35. package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -35
  36. package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -1
  37. package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
  38. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  39. package/dist/definitions/typography/Typography.d.ts +1 -1
  40. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  41. package/dist/index-metro.es.android.js +228 -405
  42. package/dist/index-metro.es.android.js.map +1 -1
  43. package/dist/index-metro.es.ios.js +228 -405
  44. package/dist/index-metro.es.ios.js.map +1 -1
  45. package/dist/index-node-22.17.cjs.js +223 -400
  46. package/dist/index-node-22.17.cjs.js.map +1 -1
  47. package/dist/index-node-22.17.cjs.web.js +225 -439
  48. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  49. package/dist/index-node-22.17.es.mjs +223 -400
  50. package/dist/index-node-22.17.es.mjs.map +1 -1
  51. package/dist/index-node-22.17.es.web.mjs +225 -439
  52. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  53. package/dist/index.es.js +228 -398
  54. package/dist/index.es.js.map +1 -1
  55. package/dist/index.es.web.js +231 -437
  56. package/dist/index.es.web.js.map +1 -1
  57. package/dist/linaria-themes-metro.es.android.js +38 -64
  58. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  59. package/dist/linaria-themes-metro.es.ios.js +38 -64
  60. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  61. package/dist/linaria-themes-node-22.17.cjs.js +38 -64
  62. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  63. package/dist/linaria-themes-node-22.17.cjs.web.js +38 -64
  64. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  65. package/dist/linaria-themes-node-22.17.es.mjs +38 -64
  66. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  67. package/dist/linaria-themes-node-22.17.es.web.mjs +38 -64
  68. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  69. package/dist/linaria-themes.es.js +38 -64
  70. package/dist/linaria-themes.es.js.map +1 -1
  71. package/dist/linaria-themes.es.web.js +38 -64
  72. package/dist/linaria-themes.es.web.js.map +1 -1
  73. package/dist/tsbuildinfo +1 -1
  74. package/package.json +1 -1
  75. package/dist/definitions/Button/utils/getCurrentScale.d.ts +0 -10
  76. package/dist/definitions/Button/utils/getCurrentScale.d.ts.map +0 -1
  77. package/dist/definitions/Choices/utils/getBorderRadius.d.ts +0 -3
  78. package/dist/definitions/Choices/utils/getBorderRadius.d.ts.map +0 -1
  79. package/dist/definitions/IconButton/AnimatedBackground.d.ts +0 -13
  80. package/dist/definitions/IconButton/AnimatedBackground.d.ts.map +0 -1
  81. package/dist/definitions/IconButton/AnimatedBackground.web.d.ts +0 -4
  82. package/dist/definitions/IconButton/AnimatedBackground.web.d.ts.map +0 -1
  83. package/dist/definitions/IconButton/AnimatedScale.d.ts +0 -12
  84. package/dist/definitions/IconButton/AnimatedScale.d.ts.map +0 -1
  85. package/dist/definitions/IconButton/AnimatedScale.web.d.ts +0 -4
  86. package/dist/definitions/IconButton/AnimatedScale.web.d.ts.map +0 -1
  87. package/dist/definitions/IconButton/Background.d.ts +0 -11
  88. package/dist/definitions/IconButton/Background.d.ts.map +0 -1
  89. package/dist/definitions/IconButton/hooks/useNativeAnimation.d.ts +0 -18
  90. package/dist/definitions/IconButton/hooks/useNativeAnimation.d.ts.map +0 -1
  91. package/dist/definitions/IconButton/hooks/useNativeAnimation.web.d.ts +0 -3
  92. package/dist/definitions/IconButton/hooks/useNativeAnimation.web.d.ts.map +0 -1
  93. package/dist/definitions/IconButton/utils/getIconButtonBackgroundColor.d.ts +0 -3
  94. package/dist/definitions/IconButton/utils/getIconButtonBackgroundColor.d.ts.map +0 -1
  95. package/dist/definitions/IconButton/utils/getIconButtonTextColorByColor.d.ts +0 -4
  96. package/dist/definitions/IconButton/utils/getIconButtonTextColorByColor.d.ts.map +0 -1
@@ -549,20 +549,13 @@ const button = {
549
549
  borderWidth: {
550
550
  focus: 3
551
551
  },
552
- minHeight: 40,
553
552
  minWidth: 40,
554
553
  maxWidth: 335,
555
- maxHeight: 48,
556
- scale: {
557
- base: {
558
- default: 1,
559
- hover: 0.95,
560
- active: 0.95
561
- },
562
- medium: {
563
- hover: 1.05
564
- }
554
+ height: {
555
+ default: 40,
556
+ medium: 48
565
557
  },
558
+ maxHeight: 48,
566
559
  icon: {
567
560
  medium: {
568
561
  size: 24
@@ -795,23 +788,35 @@ const choices = {
795
788
  column: 12
796
789
  },
797
790
  item: {
798
- borderRadius: 10,
791
+ borderRadius: 4,
799
792
  padding: {
800
793
  base: 16,
801
794
  small: 24
802
795
  },
803
796
  backgroundColor: {
804
797
  default: deepPurpleColorPalette['beige.1'],
805
- disabled: colors.disabled,
806
- selected: colors.primary,
807
- pressed: deepPurpleColorPalette['deepPurple.7'],
798
+ disabled: deepPurpleColorPalette['grey.1'],
799
+ selected: deepPurpleColorPalette['beige.3'],
800
+ pressed: deepPurpleColorPalette['beige.2'],
808
801
  hover: deepPurpleColorPalette['beige.2'],
809
- hoverWhenSelected: deepPurpleColorPalette['deepPurple.7']
802
+ hoverWhenSelected: deepPurpleColorPalette['beige.3']
810
803
  },
811
- disabled: {
812
- border: {
813
- width: 2,
814
- color: deepPurpleColorPalette['beige.2']
804
+ color: {
805
+ default: deepPurpleColorPalette['grey.9'],
806
+ disabled: deepPurpleColorPalette['grey.3']
807
+ },
808
+ border: {
809
+ default: {
810
+ width: 1,
811
+ color: deepPurpleColorPalette['deepPurple.7']
812
+ },
813
+ disabled: {
814
+ width: 1,
815
+ color: deepPurpleColorPalette['grey.2']
816
+ },
817
+ error: {
818
+ width: 1,
819
+ color: deepPurpleColorPalette['red.6']
815
820
  }
816
821
  },
817
822
  transition: {
@@ -819,6 +824,12 @@ const choices = {
819
824
  duration: 300,
820
825
  timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
821
826
  }
827
+ },
828
+ description: {
829
+ color: {
830
+ default: deepPurpleColorPalette['grey.5'],
831
+ error: deepPurpleColorPalette['red.6']
832
+ }
822
833
  }
823
834
  };
824
835
 
@@ -1888,50 +1899,8 @@ const icon = {
1888
1899
  };
1889
1900
 
1890
1901
  const iconButton = {
1891
- backgroundColor: 'transparent',
1892
- width: 40,
1893
- height: 40,
1894
- borderRadius: 20,
1895
- borderWidth: 2,
1896
- borderColor: 'transparent',
1897
- transition: {
1898
- property: 'all',
1899
- duration: '200ms',
1900
- timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
1901
- },
1902
- scale: {
1903
- base: {
1904
- default: 1,
1905
- hover: 0.95,
1906
- active: 0.95
1907
- },
1908
- medium: {
1909
- default: 1,
1910
- hover: 1.05,
1911
- active: 0.95
1912
- }
1913
- },
1914
- disabled: {
1915
- scale: 1,
1916
- backgroundColor: button.primary.default.backgroundColor.disabled
1917
- },
1918
- default: {
1919
- pressedBackgroundColor: button.primary.default.backgroundColor.disabled
1920
- },
1921
- ghost: {
1922
- pressedBackgroundColor: button.primary.default.backgroundColor.disabled
1923
- },
1924
- primary: {
1925
- pressedBackgroundColor: deepPurpleColorPalette['beige.1']
1926
- },
1927
- 'primary-plain': {
1928
- pressedBackgroundColor: colors.primaryLight,
1929
- backgroundColor: colors.primary
1930
- },
1931
- secondary: {
1932
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.05)',
1933
- backgroundColor: 'rgba(0, 0, 0, 0.1)'
1934
- }
1902
+ width: button.height.medium,
1903
+ height: button.height.medium
1935
1904
  };
1936
1905
 
1937
1906
  const listItem = {
@@ -2135,6 +2104,11 @@ const typography = {
2135
2104
  fontSize: 14,
2136
2105
  lineHeight: 20,
2137
2106
  allowedFontWeights: ['semibold']
2107
+ },
2108
+ 'label-small': {
2109
+ fontSize: 12,
2110
+ lineHeight: 16,
2111
+ allowedFontWeights: ['semibold']
2138
2112
  }
2139
2113
  }
2140
2114
  },
@@ -2830,23 +2804,6 @@ function getCurrentBackgroundColorForNativeBaseTheme({
2830
2804
  return `${baseKey}.default`;
2831
2805
  }
2832
2806
 
2833
- function getCurrentScale$1({
2834
- hoverScaleValue,
2835
- pressedScaleValue,
2836
- isDisabled,
2837
- isHovered,
2838
- isPressed
2839
- }) {
2840
- if (isDisabled) return 1;
2841
- if (isPressed) {
2842
- return pressedScaleValue;
2843
- }
2844
- if (isHovered) {
2845
- return hoverScaleValue;
2846
- }
2847
- return 1;
2848
- }
2849
-
2850
2807
  function AnimatedContainer$2({
2851
2808
  children,
2852
2809
  type,
@@ -2854,27 +2811,19 @@ function AnimatedContainer$2({
2854
2811
  isHovered,
2855
2812
  isPressed,
2856
2813
  isStretch,
2857
- disabled
2814
+ disabled,
2815
+ isIconOnly,
2816
+ size = 'default'
2858
2817
  }) {
2859
2818
  const theme = useTheme();
2819
+ const width = isIconOnly ? `kitt.button.height.${size}` : createResponsiveStyleFromProp(isStretch, '100%', 'auto');
2820
+ const height = isIconOnly ? `kitt.button.height.${size}` : undefined;
2860
2821
  const {
2861
2822
  transition: {
2862
2823
  duration,
2863
2824
  timingFunction
2864
- },
2865
- scale
2825
+ }
2866
2826
  } = theme.kitt.button;
2867
- const responsiveHoverScaleValue = useBreakpointValue({
2868
- base: scale.base.hover,
2869
- medium: scale.medium.hover
2870
- });
2871
- const currentScale = getCurrentScale$1({
2872
- hoverScaleValue: responsiveHoverScaleValue,
2873
- pressedScaleValue: scale.base.active,
2874
- isHovered,
2875
- isPressed,
2876
- isDisabled: !!disabled
2877
- });
2878
2827
  const currentBackgroundColor = getCurrentBackgroundColorForNativeBaseTheme({
2879
2828
  type,
2880
2829
  variant,
@@ -2887,13 +2836,11 @@ function AnimatedContainer$2({
2887
2836
  style: {
2888
2837
  transitionProperty: 'all',
2889
2838
  transitionDuration: duration,
2890
- transitionTimingFunction: timingFunction,
2891
- /* Simplifies the animation to just the front of the object – avoid blurry scale */
2892
- backfaceVisibility: 'hidden',
2893
- transform: `scale(${currentScale})`
2839
+ transitionTimingFunction: timingFunction
2894
2840
  }
2895
2841
  },
2896
- width: createResponsiveStyleFromProp(isStretch, '100%', 'auto'),
2842
+ width: width,
2843
+ height: height,
2897
2844
  alignSelf: "baseline",
2898
2845
  borderRadius: "kitt.button.borderRadius",
2899
2846
  backgroundColor: currentBackgroundColor,
@@ -3178,7 +3125,7 @@ function ButtonBadge({
3178
3125
  backgroundColor: backgroundColor,
3179
3126
  borderRadius: "kitt.buttonBadge.borderRadius.badgeCount",
3180
3127
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
3181
- base: "body-xs",
3128
+ base: "content-caps-xs",
3182
3129
  variant: "bold",
3183
3130
  color: "white",
3184
3131
  children: (badgeCount || 0) > 5 ? '+5' : badgeCount
@@ -3300,10 +3247,34 @@ function ButtonContentChildren({
3300
3247
  throw new Error('kitt(Button): You should provide at least a children or a icon');
3301
3248
  }
3302
3249
  }
3250
+ const isMedium = size === 'medium';
3303
3251
  if (!children && icon) {
3304
- return /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
3305
- icon: icon,
3306
- color: color
3252
+ return /*#__PURE__*/jsxRuntime.jsxs(View, {
3253
+ alignItems: "center",
3254
+ justifyContent: "center",
3255
+ children: [/*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
3256
+ icon: icon,
3257
+ color: color,
3258
+ size: `kitt.button.icon.${size}.size`
3259
+ }), withBadge || badgeCount && badgeCount > 0 ? /*#__PURE__*/jsxRuntime.jsx(View, {
3260
+ position: "absolute",
3261
+ top: (() => {
3262
+ if (withBadge) {
3263
+ return isMedium ? '-14px' : '-10px';
3264
+ }
3265
+ return isMedium ? '-20px' : '-16px';
3266
+ })(),
3267
+ right: (() => {
3268
+ if (withBadge) {
3269
+ return isMedium ? '-28px' : '-20px';
3270
+ }
3271
+ return isMedium ? '-33px' : '-25px';
3272
+ })(),
3273
+ children: /*#__PURE__*/jsxRuntime.jsx(ButtonBadge, {
3274
+ withBadge: withBadge,
3275
+ badgeCount: badgeCount
3276
+ })
3277
+ }) : null]
3307
3278
  });
3308
3279
  }
3309
3280
  // Make the multilines case work properly on native - Breaks the web implem
@@ -3384,16 +3355,16 @@ function ButtonContent({
3384
3355
  function ButtonPadding({
3385
3356
  children,
3386
3357
  size,
3387
- hasBadge
3358
+ isIconOnly
3388
3359
  }) {
3389
3360
  return /*#__PURE__*/jsxRuntime.jsx(View, {
3390
3361
  position: "relative",
3391
3362
  flexDirection: "row",
3392
3363
  alignItems: "center",
3393
3364
  justifyContent: "center",
3365
+ height: isIconOnly ? `kitt.button.height.${size}` : undefined,
3394
3366
  paddingX: `kitt.button.padding.${size}.horizontal`,
3395
3367
  paddingY: `kitt.button.padding.${size}.vertical`,
3396
- minHeight: "kitt.button.minHeight",
3397
3368
  children: children
3398
3369
  });
3399
3370
  }
@@ -3431,7 +3402,7 @@ function FocusBorder({
3431
3402
  });
3432
3403
  }
3433
3404
 
3434
- function useNativeAnimation$5() {
3405
+ function useNativeAnimation$4() {
3435
3406
  return {
3436
3407
  onPressIn: undefined,
3437
3408
  onPressOut: undefined,
@@ -3468,10 +3439,11 @@ const Button = /*#__PURE__*/react.forwardRef(({
3468
3439
  onPressIn,
3469
3440
  onPressOut,
3470
3441
  animatedStyles
3471
- } = useNativeAnimation$5();
3442
+ } = useNativeAnimation$4();
3472
3443
  if (process.env.NODE_ENV !== 'production' && variant === 'revert' && type === 'tertiary-danger') {
3473
3444
  throw new Error('Invalid revert variant for tertiary-danger button type. Only default variant is allowed.');
3474
3445
  }
3446
+ const isIconOnly = !children && !!icon;
3475
3447
  return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
3476
3448
  ref: ref,
3477
3449
  disabled: disabled,
@@ -3503,10 +3475,12 @@ const Button = /*#__PURE__*/react.forwardRef(({
3503
3475
  isPressed: isPressed || isPressedInternal,
3504
3476
  disabled: !!disabled,
3505
3477
  variant: variant,
3478
+ size: size,
3479
+ isIconOnly: isIconOnly,
3506
3480
  isStretch: stretch,
3507
3481
  children: /*#__PURE__*/jsxRuntime.jsxs(ButtonPadding, {
3508
3482
  size: size,
3509
- hasBadge: Boolean(withBadge || badgeCount && badgeCount > 0),
3483
+ isIconOnly: isIconOnly,
3510
3484
  children: [/*#__PURE__*/jsxRuntime.jsx(ButtonContent, {
3511
3485
  type: type,
3512
3486
  variant: variant,
@@ -4185,7 +4159,7 @@ CardModal.Header = CardModalHeader;
4185
4159
  CardModal.Footer = CardModalFooter;
4186
4160
  CardModal.ModalBehaviour = CardModalBehaviour;
4187
4161
 
4188
- function getBackgroundColor$6({
4162
+ function getBackgroundColor$5({
4189
4163
  isDisabled,
4190
4164
  isSelected,
4191
4165
  isHovered,
@@ -4199,39 +4173,49 @@ function getBackgroundColor$6({
4199
4173
  return 'kitt.choices.item.default.backgroundColor';
4200
4174
  }
4201
4175
 
4202
- function getBorderRadius(variant) {
4203
- // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
4204
- // We don't control over the height of the rendered children we just go with a arbitrary really high value
4205
- return variant === 'rounded' ? Number.MAX_SAFE_INTEGER : 'kitt.choices.item.borderRadius';
4176
+ function getBorderColor$2({
4177
+ isDisabled,
4178
+ hasError,
4179
+ isSelected
4180
+ }) {
4181
+ if (isDisabled) {
4182
+ return 'kitt.choices.item.disabled.borderColor';
4183
+ }
4184
+ if (hasError) {
4185
+ return 'kitt.choices.item.error.borderColor';
4186
+ }
4187
+ if (isSelected) {
4188
+ return 'kitt.choices.item.default.borderColor';
4189
+ }
4190
+ return 'transparent';
4206
4191
  }
4207
4192
 
4208
4193
  function AnimatedChoiceItemView({
4209
4194
  children,
4210
- variant,
4211
4195
  size,
4212
4196
  isHovered,
4213
4197
  isPressed,
4214
4198
  isDisabled,
4215
- isSelected
4199
+ isSelected,
4200
+ hasError
4216
4201
  }) {
4217
4202
  const theme = useTheme();
4218
4203
  return /*#__PURE__*/jsxRuntime.jsx(View, {
4219
4204
  position: "relative",
4220
- borderRadius: getBorderRadius(variant),
4221
- backgroundColor: getBackgroundColor$6({
4205
+ borderRadius: "kitt.choices.item.borderRadius",
4206
+ borderWidth: "kitt.choices.item.default.borderWidth",
4207
+ borderColor: getBorderColor$2({
4208
+ isDisabled,
4209
+ hasError,
4210
+ isSelected
4211
+ }),
4212
+ backgroundColor: getBackgroundColor$5({
4222
4213
  isDisabled,
4223
4214
  isSelected,
4224
4215
  isHovered,
4225
4216
  isPressed
4226
4217
  }),
4227
- paddingX: size === 'small' ? 'kitt.4' : {
4228
- base: 'kitt.4',
4229
- small: 'kitt.6'
4230
- },
4231
- paddingY: size === 'small' ? 'kitt.2' : {
4232
- base: 'kitt.4',
4233
- small: 'kitt.6'
4234
- },
4218
+ padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4235
4219
  _web: {
4236
4220
  style: {
4237
4221
  transitionProperty: theme.kitt.choices.item.transition.property,
@@ -4243,7 +4227,7 @@ function AnimatedChoiceItemView({
4243
4227
  });
4244
4228
  }
4245
4229
 
4246
- const useNativeAnimation$4 = () => {
4230
+ const useNativeAnimation$3 = () => {
4247
4231
  return {
4248
4232
  onPressIn: () => {},
4249
4233
  onPressOut: () => {},
@@ -4252,23 +4236,21 @@ const useNativeAnimation$4 = () => {
4252
4236
  };
4253
4237
 
4254
4238
  function getCurrentTextColor$1({
4255
- isDisabled,
4256
- isSelected,
4257
- isPressed,
4258
- isHovered
4239
+ isDisabled
4259
4240
  }) {
4260
- if (isDisabled) return 'black-light';
4261
- if (isSelected && isHovered) return 'white';
4262
- if (isSelected || isPressed) return 'white';
4263
- return 'black';
4241
+ if (isDisabled) return 'kitt.choices.item.disabled.color';
4242
+ return 'kitt.choices.item.default.color';
4264
4243
  }
4265
4244
 
4266
4245
  function ChoiceItem({
4267
4246
  type = 'button',
4247
+ orientation = 'horizontal',
4248
+ icon,
4249
+ hasError,
4250
+ description,
4268
4251
  value,
4269
4252
  selected,
4270
4253
  disabled,
4271
- variant,
4272
4254
  children,
4273
4255
  isPressedInternal,
4274
4256
  isHoveredInternal,
@@ -4284,7 +4266,8 @@ function ChoiceItem({
4284
4266
  onPressIn,
4285
4267
  onPressOut,
4286
4268
  backgroundStyles
4287
- } = useNativeAnimation$4();
4269
+ } = useNativeAnimation$3();
4270
+ const Stack = orientation === 'horizontal' ? HStack : VStack;
4288
4271
  const handleChange = () => {
4289
4272
  if (!onChange) return;
4290
4273
 
@@ -4316,33 +4299,45 @@ function ChoiceItem({
4316
4299
  children: ({
4317
4300
  isHovered,
4318
4301
  isPressed
4319
- }) => /*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
4320
- animatedStyles: backgroundStyles,
4321
- isHovered: isHovered || isHoveredInternal,
4322
- isDisabled: disabled,
4323
- isSelected: selected,
4324
- isPressed: isPressed || isPressedInternal,
4325
- variant: variant,
4326
- size: size,
4327
- children: [/*#__PURE__*/jsxRuntime.jsx(Typography.SetDefaultColor, {
4328
- value: getCurrentTextColor$1({
4302
+ }) => {
4303
+ const textColor = getCurrentTextColor$1({
4304
+ isDisabled: disabled
4305
+ });
4306
+ return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
4307
+ space: "kitt.2",
4308
+ children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
4309
+ animatedStyles: backgroundStyles,
4310
+ isHovered: isHovered || isHoveredInternal,
4329
4311
  isDisabled: disabled,
4330
- isSelected: selected || isPressedInternal,
4331
- isPressed,
4332
- isHovered: isHovered || isHoveredInternal
4333
- }),
4334
- children: children
4335
- }), disabled ? /*#__PURE__*/jsxRuntime.jsx(View, {
4336
- borderRadius: getBorderRadius(variant),
4337
- borderWidth: "kitt.choices.item.disabled.borderWidth",
4338
- borderColor: "kitt.choices.item.disabled.borderColor",
4339
- position: "absolute",
4340
- top: "0",
4341
- right: "0",
4342
- left: "0",
4343
- bottom: "0"
4344
- }) : null]
4345
- })
4312
+ isSelected: selected,
4313
+ isPressed: isPressed || isPressedInternal,
4314
+ hasError: hasError,
4315
+ size: size,
4316
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Stack, {
4317
+ alignItems: "center",
4318
+ space: "kitt.2",
4319
+ children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
4320
+ color: textColor,
4321
+ icon: icon
4322
+ }) : null, /*#__PURE__*/jsxRuntime.jsx(Typography.SetDefaultColor, {
4323
+ value: textColor,
4324
+ children: children
4325
+ })]
4326
+ }), disabled ? /*#__PURE__*/jsxRuntime.jsx(View, {
4327
+ borderRadius: "kitt.choices.item.borderRadius",
4328
+ position: "absolute",
4329
+ top: "0",
4330
+ right: "0",
4331
+ left: "0",
4332
+ bottom: "0"
4333
+ }) : null]
4334
+ }), description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
4335
+ base: "body-s",
4336
+ color: hasError ? 'kitt.choices.description.color.error' : 'kitt.choices.description.color.default',
4337
+ children: description
4338
+ }) : null]
4339
+ });
4340
+ }
4346
4341
  });
4347
4342
  }
4348
4343
 
@@ -4392,7 +4387,6 @@ function Choices({
4392
4387
  disabled,
4393
4388
  children,
4394
4389
  value,
4395
- variant,
4396
4390
  onPress,
4397
4391
  onChange,
4398
4392
  onFocus,
@@ -4407,7 +4401,6 @@ function Choices({
4407
4401
  const sharedProps = {
4408
4402
  type,
4409
4403
  disabled,
4410
- variant,
4411
4404
  onPress: !isForm ? onPress : undefined,
4412
4405
  onChange: isForm ? newValue => {
4413
4406
  setCurrentValue(newValue);
@@ -4841,7 +4834,7 @@ const InputText = /*#__PURE__*/react.forwardRef(({
4841
4834
  });
4842
4835
  });
4843
4836
 
4844
- function getBackgroundColor$5({
4837
+ function getBackgroundColor$4({
4845
4838
  isSelected,
4846
4839
  isHighlighted,
4847
4840
  isPressed,
@@ -4880,7 +4873,7 @@ function AutocompleteItem({
4880
4873
  minHeight: "kitt.forms.autocomplete.option.minHeight",
4881
4874
  borderRadius: "kitt.1",
4882
4875
  padding: "kitt.1",
4883
- backgroundColor: getBackgroundColor$5({
4876
+ backgroundColor: getBackgroundColor$4({
4884
4877
  isSelected,
4885
4878
  isHighlighted,
4886
4879
  isPressed,
@@ -5160,7 +5153,7 @@ const SvgCheckboxMarkinline = props => /*#__PURE__*/jsxRuntime.jsx("svg", {
5160
5153
  })
5161
5154
  });
5162
5155
 
5163
- function getBackgroundColor$4({
5156
+ function getBackgroundColor$3({
5164
5157
  isDisabled,
5165
5158
  isPressed,
5166
5159
  isHovered,
@@ -5239,7 +5232,7 @@ const Checkbox = /*#__PURE__*/react.forwardRef(({
5239
5232
  isPressed,
5240
5233
  isChecked: checked
5241
5234
  }),
5242
- backgroundColor: getBackgroundColor$4({
5235
+ backgroundColor: getBackgroundColor$3({
5243
5236
  isDisabled: disabled,
5244
5237
  isFocused,
5245
5238
  isHovered,
@@ -6429,7 +6422,7 @@ function InnerCircle({
6429
6422
  });
6430
6423
  }
6431
6424
 
6432
- function getBackgroundColor$3({
6425
+ function getBackgroundColor$2({
6433
6426
  isDisabled,
6434
6427
  isPressed,
6435
6428
  isHovered,
@@ -6475,7 +6468,7 @@ function OuterCircle({
6475
6468
  width: "kitt.forms.radio.size",
6476
6469
  height: "kitt.forms.radio.size",
6477
6470
  borderRadius: "kitt.forms.radio.borderRadius",
6478
- backgroundColor: getBackgroundColor$3({
6471
+ backgroundColor: getBackgroundColor$2({
6479
6472
  isChecked,
6480
6473
  isDisabled,
6481
6474
  isFocused,
@@ -6658,7 +6651,7 @@ function HoverBorder({
6658
6651
  });
6659
6652
  }
6660
6653
 
6661
- function useNativeAnimation$3() {
6654
+ function useNativeAnimation$2() {
6662
6655
  return {
6663
6656
  onPressIn: undefined,
6664
6657
  onPressOut: undefined,
@@ -6700,7 +6693,7 @@ function RadioButton({
6700
6693
  onPressIn,
6701
6694
  onPressOut,
6702
6695
  animatedStyles
6703
- } = useNativeAnimation$3();
6696
+ } = useNativeAnimation$2();
6704
6697
  return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
6705
6698
  accessibilityRole: "radiogroup",
6706
6699
  accessibilityState: {
@@ -7374,7 +7367,7 @@ function AnimatedContent({
7374
7367
  });
7375
7368
  }
7376
7369
 
7377
- function useNativeAnimation$2() {
7370
+ function useNativeAnimation$1() {
7378
7371
  return {
7379
7372
  onPressIn: undefined,
7380
7373
  onPressOut: undefined,
@@ -7415,7 +7408,7 @@ function Highlight({
7415
7408
  contentAnimatedStyles,
7416
7409
  onPressIn,
7417
7410
  onPressOut
7418
- } = useNativeAnimation$2();
7411
+ } = useNativeAnimation$1();
7419
7412
  const handleLayout = event => {
7420
7413
  const layoutHeight = event.nativeEvent.layout.height;
7421
7414
  const newContentHeight = layoutHeight + highlightStyle[size].contentMarginY;
@@ -7510,236 +7503,53 @@ function Highlight({
7510
7503
  });
7511
7504
  }
7512
7505
 
7513
- function getBackgroundColor$2(color, isDisabled) {
7514
- if (isDisabled) {
7515
- return 'kitt.iconButton.disabled.backgroundColor';
7516
- }
7517
- switch (color) {
7518
- case 'primary':
7519
- return 'kitt.iconButton.primary.pressed.backgroundColor';
7520
- case 'primary-plain':
7521
- return 'kitt.iconButton.primary-plain.pressed.backgroundColor';
7522
- case 'ghost':
7523
- return 'kitt.iconButton.ghost.pressed.backgroundColor';
7506
+ const getButtonTypeAndVariant = iconColor => {
7507
+ switch (iconColor) {
7524
7508
  case 'black':
7525
- default:
7526
- return 'kitt.iconButton.black.pressed.backgroundColor';
7527
- }
7528
- }
7529
- function Background({
7530
- color,
7531
- isDisabled,
7532
- ...props
7533
- }) {
7534
- return /*#__PURE__*/jsxRuntime.jsx(View, {
7535
- ...props,
7536
- width: "100%",
7537
- height: "100%",
7538
- borderRadius: "kitt.iconButton.borderRadius",
7539
- backgroundColor: getBackgroundColor$2(color, isDisabled)
7540
- });
7541
- }
7542
-
7543
- function AnimatedBackground({
7544
- color,
7545
- isHovered,
7546
- isPressed,
7547
- isFocused,
7548
- isDisabled
7549
- }) {
7550
- const theme = useTheme();
7551
- const {
7552
- duration,
7553
- timingFunction
7554
- } = theme.kitt.iconButton.transition;
7555
- return /*#__PURE__*/jsxRuntime.jsx(Background, {
7556
- position: "absolute",
7557
- top: "0",
7558
- left: "0",
7559
- opacity: isHovered || isPressed || isFocused || isDisabled ? 1 : 0,
7560
- color: color,
7561
- isDisabled: isDisabled,
7562
- _web: {
7563
- style: {
7564
- transitionProperty: 'all',
7565
- transitionDuration: duration,
7566
- transitionTimingFunction: timingFunction
7567
- }
7568
- }
7569
- });
7570
- }
7571
-
7572
- function getCurrentScale(isHovered, scaleHover, isPressed, scalePressed) {
7573
- if (isPressed) {
7574
- return scalePressed;
7575
- }
7576
- if (isHovered) {
7577
- return scaleHover;
7578
- }
7579
- return 1;
7580
- }
7581
- function AnimatedScale({
7582
- children,
7583
- isHovered,
7584
- isPressed,
7585
- isDisabled
7586
- }) {
7587
- const theme = useTheme();
7588
- const {
7589
- scale
7590
- } = theme.kitt.iconButton;
7591
- const currentHoverScale = useBreakpointValue({
7592
- base: scale.base.hover,
7593
- medium: scale.medium.hover
7594
- });
7595
- const currentPressedScale = useBreakpointValue({
7596
- base: scale.base.active,
7597
- medium: scale.medium.active
7598
- });
7599
- const currentScale = getCurrentScale(Boolean(isHovered), currentHoverScale, Boolean(isPressed), currentPressedScale);
7600
- const {
7601
- duration,
7602
- timingFunction
7603
- } = theme.kitt.iconButton.transition;
7604
- return /*#__PURE__*/jsxRuntime.jsx(View, {
7605
- position: "relative",
7606
- alignItems: "center",
7607
- justifyContent: "center",
7608
- width: "100%",
7609
- height: "100%",
7610
- overflow: "hidden",
7611
- _web: {
7612
- style: {
7613
- transitionProperty: 'transform',
7614
- transitionDuration: duration,
7615
- transitionTimingFunction: timingFunction,
7616
- /* Simplifies the animation to just the front of the object – avoid blurry scale */
7617
- backfaceVisibility: 'hidden',
7618
- transform: `scale(${isDisabled ? 1 : currentScale})`
7619
- }
7620
- },
7621
- children: children
7622
- });
7623
- }
7624
-
7625
- function useNativeAnimation$1() {
7626
- return {
7627
- opacityStyles: undefined,
7628
- scaleStyles: undefined,
7629
- onPressIn: () => {},
7630
- onPressOut: () => {}
7631
- };
7632
- }
7633
-
7634
- const getIconButtonBackgroundColor = (color, disabled) => {
7635
- if (disabled) {
7636
- return undefined;
7637
- }
7638
- switch (color) {
7639
- case 'primary-plain':
7640
- return 'kitt.iconButton.primary-plain.backgroundColor';
7509
+ return {
7510
+ type: 'tertiary'
7511
+ };
7641
7512
  case 'secondary':
7642
- return 'kitt.iconButton.secondary.backgroundColor';
7643
- default:
7644
- return undefined;
7645
- }
7646
- };
7647
-
7648
- const getIconButtonTextColorByColor = (color, disabled) => {
7649
- if (disabled) {
7650
- return 'black-light';
7651
- }
7652
- switch (color) {
7653
- case 'ghost':
7654
- return 'white';
7513
+ return {
7514
+ type: 'secondary'
7515
+ };
7516
+ case 'primary':
7517
+ return {
7518
+ type: 'primary'
7519
+ };
7655
7520
  case 'primary-plain':
7656
- return 'white';
7657
- case 'secondary':
7658
- return 'black';
7521
+ return {
7522
+ type: 'primary'
7523
+ };
7524
+ case 'ghost':
7525
+ return {
7526
+ type: 'tertiary',
7527
+ variant: 'revert'
7528
+ };
7659
7529
  default:
7660
- return color;
7530
+ return {
7531
+ type: 'secondary'
7532
+ };
7661
7533
  }
7662
7534
  };
7663
7535
 
7536
+ /**
7537
+ * @deprecated IconButton should only be used as a navigation button
7538
+ * Other use cases should use a <Button> component with an icon
7539
+ */
7664
7540
  function IconButton({
7665
- icon,
7666
7541
  color = 'black',
7667
- disabled,
7668
- testID,
7669
7542
  ariaLabel,
7670
- accessibilityRole = 'button',
7671
- withBadge,
7672
- badgeCount,
7673
- isHoveredInternal,
7674
- isPressedInternal,
7675
- isFocusedInternal,
7676
- onPress
7543
+ ...props
7677
7544
  }) {
7678
7545
  const {
7679
- onPressIn,
7680
- onPressOut,
7681
- opacityStyles,
7682
- scaleStyles
7683
- } = useNativeAnimation$1();
7684
- return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
7685
- testID: testID,
7686
- disabled: disabled,
7687
- width: "kitt.iconButton.width",
7688
- height: "kitt.iconButton.height",
7689
- "aria-label": ariaLabel,
7690
- accessibilityRole: accessibilityRole,
7691
- _web: {
7692
- style: {
7693
- backfaceVisibility: 'hidden',
7694
- transform: 'translate3d(0px)'
7695
- }
7696
- },
7697
- backgroundColor: getIconButtonBackgroundColor(color, disabled),
7698
- borderRadius: "kitt.iconButton.borderRadius",
7699
- borderColor: disabled ? 'kitt.iconButton.disabled.borderColor' : 'kitt.iconButton.borderColor',
7700
- borderWidth: disabled ? 'kitt.iconButton.borderWidth' : 0,
7701
- onPress: onPress,
7702
- onPressIn: onPressIn,
7703
- onPressOut: onPressOut,
7704
- children: ({
7705
- isHovered,
7706
- isPressed,
7707
- isFocused
7708
- }) => {
7709
- const isCurrentHovered = isHovered || isHoveredInternal;
7710
- const isCurrentPressed = isPressed || isPressedInternal;
7711
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7712
- children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedScale, {
7713
- isDisabled: disabled,
7714
- isHovered: isCurrentHovered,
7715
- isPressed: isCurrentPressed,
7716
- scaleStyles: scaleStyles,
7717
- children: [/*#__PURE__*/jsxRuntime.jsx(AnimatedBackground, {
7718
- color: color,
7719
- isDisabled: disabled,
7720
- isHovered: isCurrentHovered,
7721
- isPressed: isCurrentPressed,
7722
- isFocused: isFocused || isFocusedInternal,
7723
- opacityStyles: opacityStyles
7724
- }), /*#__PURE__*/jsxRuntime.jsx(View, {
7725
- alignItems: "center",
7726
- justifyContent: "center",
7727
- children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
7728
- color: getIconButtonTextColorByColor(color, disabled),
7729
- icon: icon
7730
- })
7731
- })]
7732
- }), withBadge || badgeCount && badgeCount > 0 ? /*#__PURE__*/jsxRuntime.jsx(View, {
7733
- position: "absolute",
7734
- top: withBadge ? '1px' : '-6px',
7735
- right: withBadge ? '1px' : '-6px',
7736
- children: /*#__PURE__*/jsxRuntime.jsx(ButtonBadge, {
7737
- withBadge: withBadge,
7738
- badgeCount: badgeCount
7739
- })
7740
- }) : null]
7741
- });
7742
- }
7546
+ type: legacyColorToType,
7547
+ variant: legacyColorToVariant
7548
+ } = getButtonTypeAndVariant(color);
7549
+ return /*#__PURE__*/jsxRuntime.jsx(Button, {
7550
+ variant: legacyColorToVariant,
7551
+ type: legacyColorToType,
7552
+ ...props
7743
7553
  });
7744
7554
  }
7745
7555
  function CloseIconButton(props) {
@@ -8396,11 +8206,17 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8396
8206
  choices: {
8397
8207
  item: {
8398
8208
  default: {
8399
- backgroundColor: theme.choices.item.backgroundColor.default
8209
+ backgroundColor: theme.choices.item.backgroundColor.default,
8210
+ borderColor: theme.choices.item.border.default.color,
8211
+ color: theme.choices.item.color.default
8400
8212
  },
8401
8213
  disabled: {
8402
8214
  backgroundColor: theme.choices.item.backgroundColor.disabled,
8403
- borderColor: theme.choices.item.disabled.border.color
8215
+ borderColor: theme.choices.item.border.disabled.color,
8216
+ color: theme.choices.item.color.disabled
8217
+ },
8218
+ error: {
8219
+ borderColor: theme.choices.item.border.error.color
8404
8220
  },
8405
8221
  selected: {
8406
8222
  backgroundColor: theme.choices.item.backgroundColor.selected
@@ -8414,6 +8230,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8414
8230
  hoverWhenSelected: {
8415
8231
  backgroundColor: theme.choices.item.backgroundColor.hoverWhenSelected
8416
8232
  }
8233
+ },
8234
+ description: {
8235
+ color: {
8236
+ default: theme.choices.description.color.default,
8237
+ error: theme.choices.description.color.error
8238
+ }
8417
8239
  }
8418
8240
  },
8419
8241
  tooltip: {
@@ -8817,39 +8639,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8817
8639
  buttonBadge: {
8818
8640
  backgroundColor: theme.buttonBadge.backgroundColor
8819
8641
  },
8820
- iconButton: {
8821
- borderColor: theme.iconButton.borderColor,
8822
- disabled: {
8823
- backgroundColor: theme.iconButton.disabled.backgroundColor
8824
- },
8825
- black: {
8826
- pressed: {
8827
- backgroundColor: theme.iconButton.default.pressedBackgroundColor
8828
- }
8829
- },
8830
- ghost: {
8831
- pressed: {
8832
- backgroundColor: theme.iconButton.ghost.pressedBackgroundColor
8833
- }
8834
- },
8835
- primary: {
8836
- pressed: {
8837
- backgroundColor: theme.iconButton.primary.pressedBackgroundColor
8838
- }
8839
- },
8840
- 'primary-plain': {
8841
- pressed: {
8842
- backgroundColor: theme.iconButton['primary-plain'].pressedBackgroundColor
8843
- },
8844
- backgroundColor: theme.iconButton['primary-plain'].backgroundColor
8845
- },
8846
- secondary: {
8847
- pressed: {
8848
- backgroundColor: theme.iconButton.secondary.pressedBackgroundColor
8849
- },
8850
- backgroundColor: theme.iconButton.secondary.backgroundColor
8851
- }
8852
- },
8853
8642
  highlight: {
8854
8643
  regular: {
8855
8644
  default: {
@@ -9051,9 +8840,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9051
8840
  highlight: {
9052
8841
  borderRadius: theme.highlight.borderRadius
9053
8842
  },
9054
- iconButton: {
9055
- borderRadius: theme.iconButton.borderRadius
9056
- },
9057
8843
  tag: {
9058
8844
  borderRadius: theme.tag.borderRadius
9059
8845
  },
@@ -9177,14 +8963,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9177
8963
  },
9178
8964
  choices: {
9179
8965
  item: {
9180
- disabled: {
9181
- borderWidth: theme.choices.item.disabled.border.width
8966
+ default: {
8967
+ borderWidth: theme.choices.item.border.default.width
9182
8968
  }
9183
8969
  }
9184
8970
  },
9185
- iconButton: {
9186
- borderWidth: theme.iconButton.borderWidth
9187
- },
9188
8971
  forms: {
9189
8972
  input: {
9190
8973
  borderWidth: theme.forms.input.borderWidth
@@ -9373,8 +9156,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9373
9156
  button: {
9374
9157
  minWidth: theme.button.minWidth,
9375
9158
  maxWidth: theme.button.maxWidth,
9376
- minHeight: theme.button.minHeight,
9377
- maxHeight: theme.button.maxHeight,
9159
+ height: {
9160
+ default: theme.button.height.default,
9161
+ medium: theme.button.height.medium
9162
+ },
9378
9163
  icon: {
9379
9164
  default: {
9380
9165
  size: theme.button.icon.default.size
@@ -9702,7 +9487,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9702
9487
  }
9703
9488
  },
9704
9489
  iconButton: {
9705
- size: theme.iconButton.width - theme.iconButton.borderWidth,
9706
9490
  width: theme.iconButton.width,
9707
9491
  height: theme.iconButton.height
9708
9492
  },
@@ -10004,6 +9788,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10004
9788
  'body-xs': `${theme.typography.types.bodies.configs['body-xs'].fontSize}px`,
10005
9789
  'label-large': `${theme.typography.types.labels.configs['label-large'].fontSize}px`,
10006
9790
  'label-medium': `${theme.typography.types.labels.configs['label-medium'].fontSize}px`,
9791
+ 'label-small': `${theme.typography.types.labels.configs['label-small'].fontSize}px`,
10007
9792
  'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].fontSize}px`,
10008
9793
  'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].fontSize}px`,
10009
9794
  'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].fontSize}px`,
@@ -10026,6 +9811,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10026
9811
  'body-xs': `${theme.typography.types.bodies.configs['body-xs'].lineHeight}px`,
10027
9812
  'label-large': `${theme.typography.types.labels.configs['label-large'].lineHeight}px`,
10028
9813
  'label-medium': `${theme.typography.types.labels.configs['label-medium'].lineHeight}px`,
9814
+ 'label-small': `${theme.typography.types.labels.configs['label-small'].lineHeight}px`,
10029
9815
  'content-caps-xxxl': `${theme.typography.types.contentCaps.configs['content-caps-xxxl'].lineHeight}px`,
10030
9816
  'content-caps-xxl': `${theme.typography.types.contentCaps.configs['content-caps-xxl'].lineHeight}px`,
10031
9817
  'content-caps-xl': `${theme.typography.types.contentCaps.configs['content-caps-xl'].lineHeight}px`,