@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
@@ -560,20 +560,13 @@ var button = {
560
560
  borderWidth: {
561
561
  focus: 3
562
562
  },
563
- minHeight: 40,
564
563
  minWidth: 40,
565
564
  maxWidth: 335,
566
- maxHeight: 48,
567
- scale: {
568
- base: {
569
- "default": 1,
570
- hover: 0.95,
571
- active: 0.95
572
- },
573
- medium: {
574
- hover: 1.05
575
- }
565
+ height: {
566
+ "default": 40,
567
+ medium: 48
576
568
  },
569
+ maxHeight: 48,
577
570
  icon: {
578
571
  medium: {
579
572
  size: 24
@@ -806,23 +799,35 @@ var choices = {
806
799
  column: 12
807
800
  },
808
801
  item: {
809
- borderRadius: 10,
802
+ borderRadius: 4,
810
803
  padding: {
811
804
  base: 16,
812
805
  small: 24
813
806
  },
814
807
  backgroundColor: {
815
808
  "default": deepPurpleColorPalette['beige.1'],
816
- disabled: colors.disabled,
817
- selected: colors.primary,
818
- pressed: deepPurpleColorPalette['deepPurple.7'],
809
+ disabled: deepPurpleColorPalette['grey.1'],
810
+ selected: deepPurpleColorPalette['beige.3'],
811
+ pressed: deepPurpleColorPalette['beige.2'],
819
812
  hover: deepPurpleColorPalette['beige.2'],
820
- hoverWhenSelected: deepPurpleColorPalette['deepPurple.7']
813
+ hoverWhenSelected: deepPurpleColorPalette['beige.3']
821
814
  },
822
- disabled: {
823
- border: {
824
- width: 2,
825
- color: deepPurpleColorPalette['beige.2']
815
+ color: {
816
+ "default": deepPurpleColorPalette['grey.9'],
817
+ disabled: deepPurpleColorPalette['grey.3']
818
+ },
819
+ border: {
820
+ "default": {
821
+ width: 1,
822
+ color: deepPurpleColorPalette['deepPurple.7']
823
+ },
824
+ disabled: {
825
+ width: 1,
826
+ color: deepPurpleColorPalette['grey.2']
827
+ },
828
+ error: {
829
+ width: 1,
830
+ color: deepPurpleColorPalette['red.6']
826
831
  }
827
832
  },
828
833
  transition: {
@@ -830,6 +835,12 @@ var choices = {
830
835
  duration: 300,
831
836
  timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
832
837
  }
838
+ },
839
+ description: {
840
+ color: {
841
+ "default": deepPurpleColorPalette['grey.5'],
842
+ error: deepPurpleColorPalette['red.6']
843
+ }
833
844
  }
834
845
  };
835
846
 
@@ -1899,50 +1910,8 @@ var icon = {
1899
1910
  };
1900
1911
 
1901
1912
  var iconButton = {
1902
- backgroundColor: 'transparent',
1903
- width: 40,
1904
- height: 40,
1905
- borderRadius: 20,
1906
- borderWidth: 2,
1907
- borderColor: 'transparent',
1908
- transition: {
1909
- property: 'all',
1910
- duration: '200ms',
1911
- timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
1912
- },
1913
- scale: {
1914
- base: {
1915
- "default": 1,
1916
- hover: 0.95,
1917
- active: 0.95
1918
- },
1919
- medium: {
1920
- "default": 1,
1921
- hover: 1.05,
1922
- active: 0.95
1923
- }
1924
- },
1925
- disabled: {
1926
- scale: 1,
1927
- backgroundColor: button.primary["default"].backgroundColor.disabled
1928
- },
1929
- "default": {
1930
- pressedBackgroundColor: button.primary["default"].backgroundColor.disabled
1931
- },
1932
- ghost: {
1933
- pressedBackgroundColor: button.primary["default"].backgroundColor.disabled
1934
- },
1935
- primary: {
1936
- pressedBackgroundColor: deepPurpleColorPalette['beige.1']
1937
- },
1938
- 'primary-plain': {
1939
- pressedBackgroundColor: colors.primaryLight,
1940
- backgroundColor: colors.primary
1941
- },
1942
- secondary: {
1943
- pressedBackgroundColor: 'rgba(0, 0, 0, 0.05)',
1944
- backgroundColor: 'rgba(0, 0, 0, 0.1)'
1945
- }
1913
+ width: button.height.medium,
1914
+ height: button.height.medium
1946
1915
  };
1947
1916
 
1948
1917
  var listItem = {
@@ -2146,6 +2115,11 @@ var typography = {
2146
2115
  fontSize: 14,
2147
2116
  lineHeight: 20,
2148
2117
  allowedFontWeights: ['semibold']
2118
+ },
2119
+ 'label-small': {
2120
+ fontSize: 12,
2121
+ lineHeight: 16,
2122
+ allowedFontWeights: ['semibold']
2149
2123
  }
2150
2124
  }
2151
2125
  },
@@ -2847,22 +2821,6 @@ function getCurrentBackgroundColorForNativeBaseTheme(_ref) {
2847
2821
  return "".concat(baseKey, ".default");
2848
2822
  }
2849
2823
 
2850
- function getCurrentScale$1(_ref) {
2851
- var hoverScaleValue = _ref.hoverScaleValue,
2852
- pressedScaleValue = _ref.pressedScaleValue,
2853
- isDisabled = _ref.isDisabled,
2854
- isHovered = _ref.isHovered,
2855
- isPressed = _ref.isPressed;
2856
- if (isDisabled) return 1;
2857
- if (isPressed) {
2858
- return pressedScaleValue;
2859
- }
2860
- if (isHovered) {
2861
- return hoverScaleValue;
2862
- }
2863
- return 1;
2864
- }
2865
-
2866
2824
  function AnimatedContainer$2(_ref) {
2867
2825
  var children = _ref.children,
2868
2826
  type = _ref.type,
@@ -2870,24 +2828,16 @@ function AnimatedContainer$2(_ref) {
2870
2828
  isHovered = _ref.isHovered,
2871
2829
  isPressed = _ref.isPressed,
2872
2830
  isStretch = _ref.isStretch,
2873
- disabled = _ref.disabled;
2831
+ disabled = _ref.disabled,
2832
+ isIconOnly = _ref.isIconOnly,
2833
+ _ref$size = _ref.size,
2834
+ size = _ref$size === void 0 ? 'default' : _ref$size;
2874
2835
  var theme = useTheme();
2875
- var _theme$kitt$button = theme.kitt.button,
2876
- _theme$kitt$button$tr = _theme$kitt$button.transition,
2836
+ var width = isIconOnly ? "kitt.button.height.".concat(size) : createResponsiveStyleFromProp(isStretch, '100%', 'auto');
2837
+ var height = isIconOnly ? "kitt.button.height.".concat(size) : undefined;
2838
+ var _theme$kitt$button$tr = theme.kitt.button.transition,
2877
2839
  duration = _theme$kitt$button$tr.duration,
2878
- timingFunction = _theme$kitt$button$tr.timingFunction,
2879
- scale = _theme$kitt$button.scale;
2880
- var responsiveHoverScaleValue = useBreakpointValue({
2881
- base: scale.base.hover,
2882
- medium: scale.medium.hover
2883
- });
2884
- var currentScale = getCurrentScale$1({
2885
- hoverScaleValue: responsiveHoverScaleValue,
2886
- pressedScaleValue: scale.base.active,
2887
- isHovered: isHovered,
2888
- isPressed: isPressed,
2889
- isDisabled: !!disabled
2890
- });
2840
+ timingFunction = _theme$kitt$button$tr.timingFunction;
2891
2841
  var currentBackgroundColor = getCurrentBackgroundColorForNativeBaseTheme({
2892
2842
  type: type,
2893
2843
  variant: variant,
@@ -2900,13 +2850,11 @@ function AnimatedContainer$2(_ref) {
2900
2850
  style: {
2901
2851
  transitionProperty: 'all',
2902
2852
  transitionDuration: duration,
2903
- transitionTimingFunction: timingFunction,
2904
- /* Simplifies the animation to just the front of the object – avoid blurry scale */
2905
- backfaceVisibility: 'hidden',
2906
- transform: "scale(".concat(currentScale, ")")
2853
+ transitionTimingFunction: timingFunction
2907
2854
  }
2908
2855
  },
2909
- width: createResponsiveStyleFromProp(isStretch, '100%', 'auto'),
2856
+ width: width,
2857
+ height: height,
2910
2858
  alignSelf: "baseline",
2911
2859
  borderRadius: "kitt.button.borderRadius",
2912
2860
  backgroundColor: currentBackgroundColor,
@@ -3196,7 +3144,7 @@ function ButtonBadge(_ref) {
3196
3144
  backgroundColor: backgroundColor,
3197
3145
  borderRadius: "kitt.buttonBadge.borderRadius.badgeCount",
3198
3146
  children: /*#__PURE__*/jsx(Typography.Text, {
3199
- base: "body-xs",
3147
+ base: "content-caps-xs",
3200
3148
  variant: "bold",
3201
3149
  color: "white",
3202
3150
  children: (badgeCount || 0) > 5 ? '+5' : badgeCount
@@ -3312,10 +3260,36 @@ function ButtonContentChildren(_ref) {
3312
3260
  throw new Error('kitt(Button): You should provide at least a children or a icon');
3313
3261
  }
3314
3262
  }
3263
+ var isMedium = size === 'medium';
3315
3264
  if (!children && icon) {
3316
- return /*#__PURE__*/jsx(TypographyIcon, {
3317
- icon: icon,
3318
- color: color
3265
+ var getTopOffset = function () {
3266
+ if (withBadge) {
3267
+ return isMedium ? '-14px' : '-10px';
3268
+ }
3269
+ return isMedium ? '-20px' : '-16px';
3270
+ };
3271
+ var getRightOffset = function () {
3272
+ if (withBadge) {
3273
+ return isMedium ? '-28px' : '-20px';
3274
+ }
3275
+ return isMedium ? '-33px' : '-25px';
3276
+ };
3277
+ return /*#__PURE__*/jsxs(View, {
3278
+ alignItems: "center",
3279
+ justifyContent: "center",
3280
+ children: [/*#__PURE__*/jsx(TypographyIcon, {
3281
+ icon: icon,
3282
+ color: color,
3283
+ size: "kitt.button.icon.".concat(size, ".size")
3284
+ }), withBadge || badgeCount && badgeCount > 0 ? /*#__PURE__*/jsx(View, {
3285
+ position: "absolute",
3286
+ top: getTopOffset(),
3287
+ right: getRightOffset(),
3288
+ children: /*#__PURE__*/jsx(ButtonBadge, {
3289
+ withBadge: withBadge,
3290
+ badgeCount: badgeCount
3291
+ })
3292
+ }) : null]
3319
3293
  });
3320
3294
  }
3321
3295
  // Make the multilines case work properly on native - Breaks the web implem
@@ -3393,16 +3367,16 @@ function ButtonContent(_ref2) {
3393
3367
 
3394
3368
  function ButtonPadding(_ref) {
3395
3369
  var children = _ref.children,
3396
- size = _ref.size;
3397
- _ref.hasBadge;
3370
+ size = _ref.size,
3371
+ isIconOnly = _ref.isIconOnly;
3398
3372
  return /*#__PURE__*/jsx(View, {
3399
3373
  position: "relative",
3400
3374
  flexDirection: "row",
3401
3375
  alignItems: "center",
3402
3376
  justifyContent: "center",
3377
+ height: isIconOnly ? "kitt.button.height.".concat(size) : undefined,
3403
3378
  paddingX: "kitt.button.padding.".concat(size, ".horizontal"),
3404
3379
  paddingY: "kitt.button.padding.".concat(size, ".vertical"),
3405
- minHeight: "kitt.button.minHeight",
3406
3380
  children: children
3407
3381
  });
3408
3382
  }
@@ -3436,7 +3410,7 @@ function FocusBorder(_ref) {
3436
3410
  });
3437
3411
  }
3438
3412
 
3439
- function useNativeAnimation$5() {
3413
+ function useNativeAnimation$4() {
3440
3414
  return {
3441
3415
  onPressIn: undefined,
3442
3416
  onPressOut: undefined,
@@ -3474,13 +3448,14 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3474
3448
  onHoverOut = _ref.onHoverOut,
3475
3449
  onFocus = _ref.onFocus,
3476
3450
  onBlur = _ref.onBlur;
3477
- var _useNativeAnimation = useNativeAnimation$5(),
3451
+ var _useNativeAnimation = useNativeAnimation$4(),
3478
3452
  onPressIn = _useNativeAnimation.onPressIn,
3479
3453
  onPressOut = _useNativeAnimation.onPressOut,
3480
3454
  animatedStyles = _useNativeAnimation.animatedStyles;
3481
3455
  if (process.env.NODE_ENV !== 'production' && variant === 'revert' && type === 'tertiary-danger') {
3482
3456
  throw new Error('Invalid revert variant for tertiary-danger button type. Only default variant is allowed.');
3483
3457
  }
3458
+ var isIconOnly = !_children && !!icon;
3484
3459
  return /*#__PURE__*/jsx(Pressable, {
3485
3460
  ref: ref,
3486
3461
  disabled: disabled,
@@ -3512,10 +3487,12 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3512
3487
  isPressed: isPressed || isPressedInternal,
3513
3488
  disabled: !!disabled,
3514
3489
  variant: variant,
3490
+ size: size,
3491
+ isIconOnly: isIconOnly,
3515
3492
  isStretch: stretch,
3516
3493
  children: /*#__PURE__*/jsxs(ButtonPadding, {
3517
3494
  size: size,
3518
- hasBadge: Boolean(withBadge || badgeCount && badgeCount > 0),
3495
+ isIconOnly: isIconOnly,
3519
3496
  children: [/*#__PURE__*/jsx(ButtonContent, {
3520
3497
  type: type,
3521
3498
  variant: variant,
@@ -4216,7 +4193,7 @@ CardModal.Header = CardModalHeader;
4216
4193
  CardModal.Footer = CardModalFooter;
4217
4194
  CardModal.ModalBehaviour = CardModalBehaviour;
4218
4195
 
4219
- function getBackgroundColor$6(_ref) {
4196
+ function getBackgroundColor$5(_ref) {
4220
4197
  var isDisabled = _ref.isDisabled,
4221
4198
  isSelected = _ref.isSelected,
4222
4199
  isHovered = _ref.isHovered,
@@ -4229,38 +4206,47 @@ function getBackgroundColor$6(_ref) {
4229
4206
  return 'kitt.choices.item.default.backgroundColor';
4230
4207
  }
4231
4208
 
4232
- function getBorderRadius(variant) {
4233
- // The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
4234
- // We don't control over the height of the rendered children we just go with a arbitrary really high value
4235
- return variant === 'rounded' ? Number.MAX_SAFE_INTEGER : 'kitt.choices.item.borderRadius';
4209
+ function getBorderColor$2(_ref) {
4210
+ var isDisabled = _ref.isDisabled,
4211
+ hasError = _ref.hasError,
4212
+ isSelected = _ref.isSelected;
4213
+ if (isDisabled) {
4214
+ return 'kitt.choices.item.disabled.borderColor';
4215
+ }
4216
+ if (hasError) {
4217
+ return 'kitt.choices.item.error.borderColor';
4218
+ }
4219
+ if (isSelected) {
4220
+ return 'kitt.choices.item.default.borderColor';
4221
+ }
4222
+ return 'transparent';
4236
4223
  }
4237
4224
 
4238
4225
  function AnimatedChoiceItemView(_ref) {
4239
4226
  var children = _ref.children,
4240
- variant = _ref.variant,
4241
4227
  size = _ref.size,
4242
4228
  isHovered = _ref.isHovered,
4243
4229
  isPressed = _ref.isPressed,
4244
4230
  isDisabled = _ref.isDisabled,
4245
- isSelected = _ref.isSelected;
4231
+ isSelected = _ref.isSelected,
4232
+ hasError = _ref.hasError;
4246
4233
  var theme = useTheme();
4247
4234
  return /*#__PURE__*/jsx(View, {
4248
4235
  position: "relative",
4249
- borderRadius: getBorderRadius(variant),
4250
- backgroundColor: getBackgroundColor$6({
4236
+ borderRadius: "kitt.choices.item.borderRadius",
4237
+ borderWidth: "kitt.choices.item.default.borderWidth",
4238
+ borderColor: getBorderColor$2({
4239
+ isDisabled: isDisabled,
4240
+ hasError: hasError,
4241
+ isSelected: isSelected
4242
+ }),
4243
+ backgroundColor: getBackgroundColor$5({
4251
4244
  isDisabled: isDisabled,
4252
4245
  isSelected: isSelected,
4253
4246
  isHovered: isHovered,
4254
4247
  isPressed: isPressed
4255
4248
  }),
4256
- paddingX: size === 'small' ? 'kitt.4' : {
4257
- base: 'kitt.4',
4258
- small: 'kitt.6'
4259
- },
4260
- paddingY: size === 'small' ? 'kitt.2' : {
4261
- base: 'kitt.4',
4262
- small: 'kitt.6'
4263
- },
4249
+ padding: size === 'small' ? 'kitt.2' : 'kitt.4',
4264
4250
  _web: {
4265
4251
  style: {
4266
4252
  transitionProperty: theme.kitt.choices.item.transition.property,
@@ -4272,7 +4258,7 @@ function AnimatedChoiceItemView(_ref) {
4272
4258
  });
4273
4259
  }
4274
4260
 
4275
- var useNativeAnimation$4 = function () {
4261
+ var useNativeAnimation$3 = function () {
4276
4262
  return {
4277
4263
  onPressIn: function onPressIn() {},
4278
4264
  onPressOut: function onPressOut() {},
@@ -4281,23 +4267,22 @@ var useNativeAnimation$4 = function () {
4281
4267
  };
4282
4268
 
4283
4269
  function getCurrentTextColor$1(_ref) {
4284
- var isDisabled = _ref.isDisabled,
4285
- isSelected = _ref.isSelected,
4286
- isPressed = _ref.isPressed,
4287
- isHovered = _ref.isHovered;
4288
- if (isDisabled) return 'black-light';
4289
- if (isSelected && isHovered) return 'white';
4290
- if (isSelected || isPressed) return 'white';
4291
- return 'black';
4270
+ var isDisabled = _ref.isDisabled;
4271
+ if (isDisabled) return 'kitt.choices.item.disabled.color';
4272
+ return 'kitt.choices.item.default.color';
4292
4273
  }
4293
4274
 
4294
4275
  function ChoiceItem(_ref) {
4295
4276
  var _ref$type = _ref.type,
4296
4277
  type = _ref$type === void 0 ? 'button' : _ref$type,
4278
+ _ref$orientation = _ref.orientation,
4279
+ orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation,
4280
+ icon = _ref.icon,
4281
+ hasError = _ref.hasError,
4282
+ description = _ref.description,
4297
4283
  value = _ref.value,
4298
4284
  selected = _ref.selected,
4299
4285
  disabled = _ref.disabled,
4300
- variant = _ref.variant,
4301
4286
  _children = _ref.children,
4302
4287
  isPressedInternal = _ref.isPressedInternal,
4303
4288
  isHoveredInternal = _ref.isHoveredInternal,
@@ -4308,10 +4293,11 @@ function ChoiceItem(_ref) {
4308
4293
  size = _ref.size,
4309
4294
  style = _ref.style,
4310
4295
  testID = _ref.testID;
4311
- var _useNativeAnimation = useNativeAnimation$4(),
4296
+ var _useNativeAnimation = useNativeAnimation$3(),
4312
4297
  onPressIn = _useNativeAnimation.onPressIn,
4313
4298
  onPressOut = _useNativeAnimation.onPressOut,
4314
4299
  backgroundStyles = _useNativeAnimation.backgroundStyles;
4300
+ var Stack = orientation === 'horizontal' ? HStack : VStack;
4315
4301
  var handleChange = function () {
4316
4302
  if (!onChange) return;
4317
4303
 
@@ -4343,31 +4329,41 @@ function ChoiceItem(_ref) {
4343
4329
  children: function children(_ref2) {
4344
4330
  var isHovered = _ref2.isHovered,
4345
4331
  isPressed = _ref2.isPressed;
4346
- return /*#__PURE__*/jsxs(AnimatedChoiceItemView, {
4347
- animatedStyles: backgroundStyles,
4348
- isHovered: isHovered || isHoveredInternal,
4349
- isDisabled: disabled,
4350
- isSelected: selected,
4351
- isPressed: isPressed || isPressedInternal,
4352
- variant: variant,
4353
- size: size,
4354
- children: [/*#__PURE__*/jsx(Typography.SetDefaultColor, {
4355
- value: getCurrentTextColor$1({
4356
- isDisabled: disabled,
4357
- isSelected: selected || isPressedInternal,
4358
- isPressed: isPressed,
4359
- isHovered: isHovered || isHoveredInternal
4360
- }),
4361
- children: _children
4362
- }), disabled ? /*#__PURE__*/jsx(View, {
4363
- borderRadius: getBorderRadius(variant),
4364
- borderWidth: "kitt.choices.item.disabled.borderWidth",
4365
- borderColor: "kitt.choices.item.disabled.borderColor",
4366
- position: "absolute",
4367
- top: "0",
4368
- right: "0",
4369
- left: "0",
4370
- bottom: "0"
4332
+ var textColor = getCurrentTextColor$1({
4333
+ isDisabled: disabled
4334
+ });
4335
+ return /*#__PURE__*/jsxs(VStack, {
4336
+ space: "kitt.2",
4337
+ children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
4338
+ animatedStyles: backgroundStyles,
4339
+ isHovered: isHovered || isHoveredInternal,
4340
+ isDisabled: disabled,
4341
+ isSelected: selected,
4342
+ isPressed: isPressed || isPressedInternal,
4343
+ hasError: hasError,
4344
+ size: size,
4345
+ children: [/*#__PURE__*/jsxs(Stack, {
4346
+ alignItems: "center",
4347
+ space: "kitt.2",
4348
+ children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
4349
+ color: textColor,
4350
+ icon: icon
4351
+ }) : null, /*#__PURE__*/jsx(Typography.SetDefaultColor, {
4352
+ value: textColor,
4353
+ children: _children
4354
+ })]
4355
+ }), disabled ? /*#__PURE__*/jsx(View, {
4356
+ borderRadius: "kitt.choices.item.borderRadius",
4357
+ position: "absolute",
4358
+ top: "0",
4359
+ right: "0",
4360
+ left: "0",
4361
+ bottom: "0"
4362
+ }) : null]
4363
+ }), description ? /*#__PURE__*/jsx(Typography.Text, {
4364
+ base: "body-s",
4365
+ color: hasError ? 'kitt.choices.description.color.error' : 'kitt.choices.description.color.default',
4366
+ children: description
4371
4367
  }) : null]
4372
4368
  });
4373
4369
  }
@@ -4417,7 +4413,6 @@ function Choices(_ref2) {
4417
4413
  disabled = _ref2.disabled,
4418
4414
  children = _ref2.children,
4419
4415
  value = _ref2.value,
4420
- variant = _ref2.variant,
4421
4416
  onPress = _ref2.onPress,
4422
4417
  onChange = _ref2.onChange,
4423
4418
  onFocus = _ref2.onFocus,
@@ -4434,7 +4429,6 @@ function Choices(_ref2) {
4434
4429
  var sharedProps = {
4435
4430
  type: type,
4436
4431
  disabled: disabled,
4437
- variant: variant,
4438
4432
  onPress: !isForm ? onPress : undefined,
4439
4433
  onChange: isForm ? function handleChange(newValue) {
4440
4434
  setCurrentValue(newValue);
@@ -4913,7 +4907,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
4913
4907
  });
4914
4908
  });
4915
4909
 
4916
- function getBackgroundColor$5(_ref) {
4910
+ function getBackgroundColor$4(_ref) {
4917
4911
  var isSelected = _ref.isSelected,
4918
4912
  isHighlighted = _ref.isHighlighted,
4919
4913
  isPressed = _ref.isPressed,
@@ -4950,7 +4944,7 @@ function AutocompleteItem(_ref2) {
4950
4944
  minHeight: "kitt.forms.autocomplete.option.minHeight",
4951
4945
  borderRadius: "kitt.1",
4952
4946
  padding: "kitt.1",
4953
- backgroundColor: getBackgroundColor$5({
4947
+ backgroundColor: getBackgroundColor$4({
4954
4948
  isSelected: isSelected,
4955
4949
  isHighlighted: isHighlighted,
4956
4950
  isPressed: isPressed,
@@ -5225,7 +5219,7 @@ var SvgCheckboxMarkinline = function SvgCheckboxMarkinline(props) {
5225
5219
  }));
5226
5220
  };
5227
5221
 
5228
- function getBackgroundColor$4(_ref) {
5222
+ function getBackgroundColor$3(_ref) {
5229
5223
  var isDisabled = _ref.isDisabled,
5230
5224
  isPressed = _ref.isPressed,
5231
5225
  isHovered = _ref.isHovered,
@@ -5303,7 +5297,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
5303
5297
  isPressed: isPressed,
5304
5298
  isChecked: checked
5305
5299
  }),
5306
- backgroundColor: getBackgroundColor$4({
5300
+ backgroundColor: getBackgroundColor$3({
5307
5301
  isDisabled: disabled,
5308
5302
  isFocused: isFocused,
5309
5303
  isHovered: isHovered,
@@ -6610,7 +6604,7 @@ function InnerCircle(_ref) {
6610
6604
  });
6611
6605
  }
6612
6606
 
6613
- function getBackgroundColor$3(_ref) {
6607
+ function getBackgroundColor$2(_ref) {
6614
6608
  var isDisabled = _ref.isDisabled,
6615
6609
  isPressed = _ref.isPressed,
6616
6610
  isHovered = _ref.isHovered,
@@ -6653,7 +6647,7 @@ function OuterCircle(_ref) {
6653
6647
  width: "kitt.forms.radio.size",
6654
6648
  height: "kitt.forms.radio.size",
6655
6649
  borderRadius: "kitt.forms.radio.borderRadius",
6656
- backgroundColor: getBackgroundColor$3({
6650
+ backgroundColor: getBackgroundColor$2({
6657
6651
  isChecked: isChecked,
6658
6652
  isDisabled: isDisabled,
6659
6653
  isFocused: isFocused,
@@ -6832,7 +6826,7 @@ function HoverBorder(_ref) {
6832
6826
  });
6833
6827
  }
6834
6828
 
6835
- function useNativeAnimation$3() {
6829
+ function useNativeAnimation$2() {
6836
6830
  return {
6837
6831
  onPressIn: undefined,
6838
6832
  onPressOut: undefined,
@@ -6868,7 +6862,7 @@ function RadioButton(_ref) {
6868
6862
  onChange = _ref.onChange,
6869
6863
  onFocus = _ref.onFocus,
6870
6864
  onBlur = _ref.onBlur;
6871
- var _useNativeAnimation = useNativeAnimation$3(),
6865
+ var _useNativeAnimation = useNativeAnimation$2(),
6872
6866
  onPressIn = _useNativeAnimation.onPressIn,
6873
6867
  onPressOut = _useNativeAnimation.onPressOut,
6874
6868
  animatedStyles = _useNativeAnimation.animatedStyles;
@@ -7548,7 +7542,7 @@ function AnimatedContent(_ref) {
7548
7542
  });
7549
7543
  }
7550
7544
 
7551
- function useNativeAnimation$2() {
7545
+ function useNativeAnimation$1() {
7552
7546
  return {
7553
7547
  onPressIn: undefined,
7554
7548
  onPressOut: undefined,
@@ -7596,7 +7590,7 @@ function Highlight(_ref) {
7596
7590
  contentMarginY: 16
7597
7591
  }
7598
7592
  };
7599
- var _useNativeAnimation = useNativeAnimation$2(),
7593
+ var _useNativeAnimation = useNativeAnimation$1(),
7600
7594
  containerAnimatedStyles = _useNativeAnimation.containerAnimatedStyles,
7601
7595
  caretAnimatedStyles = _useNativeAnimation.caretAnimatedStyles,
7602
7596
  contentAnimatedStyles = _useNativeAnimation.contentAnimatedStyles,
@@ -7695,229 +7689,53 @@ function Highlight(_ref) {
7695
7689
  });
7696
7690
  }
7697
7691
 
7698
- var _excluded$h = ["color", "isDisabled"];
7699
- function getBackgroundColor$2(color, isDisabled) {
7700
- if (isDisabled) {
7701
- return 'kitt.iconButton.disabled.backgroundColor';
7702
- }
7703
- switch (color) {
7704
- case 'primary':
7705
- return 'kitt.iconButton.primary.pressed.backgroundColor';
7706
- case 'primary-plain':
7707
- return 'kitt.iconButton.primary-plain.pressed.backgroundColor';
7708
- case 'ghost':
7709
- return 'kitt.iconButton.ghost.pressed.backgroundColor';
7692
+ var getButtonTypeAndVariant = function (iconColor) {
7693
+ switch (iconColor) {
7710
7694
  case 'black':
7711
- default:
7712
- return 'kitt.iconButton.black.pressed.backgroundColor';
7713
- }
7714
- }
7715
- function Background(_ref) {
7716
- var color = _ref.color,
7717
- isDisabled = _ref.isDisabled,
7718
- props = _objectWithoutProperties(_ref, _excluded$h);
7719
- return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
7720
- width: "100%",
7721
- height: "100%",
7722
- borderRadius: "kitt.iconButton.borderRadius",
7723
- backgroundColor: getBackgroundColor$2(color, isDisabled)
7724
- }));
7725
- }
7726
-
7727
- function AnimatedBackground(_ref) {
7728
- var color = _ref.color,
7729
- isHovered = _ref.isHovered,
7730
- isPressed = _ref.isPressed,
7731
- isFocused = _ref.isFocused,
7732
- isDisabled = _ref.isDisabled;
7733
- var theme = useTheme();
7734
- var _theme$kitt$iconButto = theme.kitt.iconButton.transition,
7735
- duration = _theme$kitt$iconButto.duration,
7736
- timingFunction = _theme$kitt$iconButto.timingFunction;
7737
- return /*#__PURE__*/jsx(Background, {
7738
- position: "absolute",
7739
- top: "0",
7740
- left: "0",
7741
- opacity: isHovered || isPressed || isFocused || isDisabled ? 1 : 0,
7742
- color: color,
7743
- isDisabled: isDisabled,
7744
- _web: {
7745
- style: {
7746
- transitionProperty: 'all',
7747
- transitionDuration: duration,
7748
- transitionTimingFunction: timingFunction
7749
- }
7750
- }
7751
- });
7752
- }
7753
-
7754
- function getCurrentScale(isHovered, scaleHover, isPressed, scalePressed) {
7755
- if (isPressed) {
7756
- return scalePressed;
7757
- }
7758
- if (isHovered) {
7759
- return scaleHover;
7760
- }
7761
- return 1;
7762
- }
7763
- function AnimatedScale(_ref) {
7764
- var children = _ref.children,
7765
- isHovered = _ref.isHovered,
7766
- isPressed = _ref.isPressed,
7767
- isDisabled = _ref.isDisabled;
7768
- var theme = useTheme();
7769
- var scale = theme.kitt.iconButton.scale;
7770
- var currentHoverScale = useBreakpointValue({
7771
- base: scale.base.hover,
7772
- medium: scale.medium.hover
7773
- });
7774
- var currentPressedScale = useBreakpointValue({
7775
- base: scale.base.active,
7776
- medium: scale.medium.active
7777
- });
7778
- var currentScale = getCurrentScale(Boolean(isHovered), currentHoverScale, Boolean(isPressed), currentPressedScale);
7779
- var _theme$kitt$iconButto = theme.kitt.iconButton.transition,
7780
- duration = _theme$kitt$iconButto.duration,
7781
- timingFunction = _theme$kitt$iconButto.timingFunction;
7782
- return /*#__PURE__*/jsx(View, {
7783
- position: "relative",
7784
- alignItems: "center",
7785
- justifyContent: "center",
7786
- width: "100%",
7787
- height: "100%",
7788
- overflow: "hidden",
7789
- _web: {
7790
- style: {
7791
- transitionProperty: 'transform',
7792
- transitionDuration: duration,
7793
- transitionTimingFunction: timingFunction,
7794
- /* Simplifies the animation to just the front of the object – avoid blurry scale */
7795
- backfaceVisibility: 'hidden',
7796
- transform: "scale(".concat(isDisabled ? 1 : currentScale, ")")
7797
- }
7798
- },
7799
- children: children
7800
- });
7801
- }
7802
-
7803
- function useNativeAnimation$1() {
7804
- return {
7805
- opacityStyles: undefined,
7806
- scaleStyles: undefined,
7807
- onPressIn: function onPressIn() {},
7808
- onPressOut: function onPressOut() {}
7809
- };
7810
- }
7811
-
7812
- var getIconButtonBackgroundColor = function (color, disabled) {
7813
- if (disabled) {
7814
- return undefined;
7815
- }
7816
- switch (color) {
7817
- case 'primary-plain':
7818
- return 'kitt.iconButton.primary-plain.backgroundColor';
7695
+ return {
7696
+ type: 'tertiary'
7697
+ };
7819
7698
  case 'secondary':
7820
- return 'kitt.iconButton.secondary.backgroundColor';
7821
- default:
7822
- return undefined;
7823
- }
7824
- };
7825
-
7826
- var getIconButtonTextColorByColor = function (color, disabled) {
7827
- if (disabled) {
7828
- return 'black-light';
7829
- }
7830
- switch (color) {
7831
- case 'ghost':
7832
- return 'white';
7699
+ return {
7700
+ type: 'secondary'
7701
+ };
7702
+ case 'primary':
7703
+ return {
7704
+ type: 'primary'
7705
+ };
7833
7706
  case 'primary-plain':
7834
- return 'white';
7835
- case 'secondary':
7836
- return 'black';
7707
+ return {
7708
+ type: 'primary'
7709
+ };
7710
+ case 'ghost':
7711
+ return {
7712
+ type: 'tertiary',
7713
+ variant: 'revert'
7714
+ };
7837
7715
  default:
7838
- return color;
7716
+ return {
7717
+ type: 'secondary'
7718
+ };
7839
7719
  }
7840
7720
  };
7841
7721
 
7722
+ var _excluded$h = ["color", "ariaLabel"];
7723
+ /**
7724
+ * @deprecated IconButton should only be used as a navigation button
7725
+ * Other use cases should use a <Button> component with an icon
7726
+ */
7842
7727
  function IconButton(_ref) {
7843
- var icon = _ref.icon,
7844
- _ref$color = _ref.color,
7845
- color = _ref$color === void 0 ? 'black' : _ref$color,
7846
- disabled = _ref.disabled,
7847
- testID = _ref.testID,
7848
- ariaLabel = _ref.ariaLabel,
7849
- _ref$accessibilityRol = _ref.accessibilityRole,
7850
- accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
7851
- withBadge = _ref.withBadge,
7852
- badgeCount = _ref.badgeCount,
7853
- isHoveredInternal = _ref.isHoveredInternal,
7854
- isPressedInternal = _ref.isPressedInternal,
7855
- isFocusedInternal = _ref.isFocusedInternal,
7856
- onPress = _ref.onPress;
7857
- var _useNativeAnimation = useNativeAnimation$1(),
7858
- onPressIn = _useNativeAnimation.onPressIn,
7859
- onPressOut = _useNativeAnimation.onPressOut,
7860
- opacityStyles = _useNativeAnimation.opacityStyles,
7861
- scaleStyles = _useNativeAnimation.scaleStyles;
7862
- return /*#__PURE__*/jsx(Pressable, {
7863
- testID: testID,
7864
- disabled: disabled,
7865
- width: "kitt.iconButton.width",
7866
- height: "kitt.iconButton.height",
7867
- "aria-label": ariaLabel,
7868
- accessibilityRole: accessibilityRole,
7869
- _web: {
7870
- style: {
7871
- backfaceVisibility: 'hidden',
7872
- transform: 'translate3d(0px)'
7873
- }
7874
- },
7875
- backgroundColor: getIconButtonBackgroundColor(color, disabled),
7876
- borderRadius: "kitt.iconButton.borderRadius",
7877
- borderColor: disabled ? 'kitt.iconButton.disabled.borderColor' : 'kitt.iconButton.borderColor',
7878
- borderWidth: disabled ? 'kitt.iconButton.borderWidth' : 0,
7879
- onPress: onPress,
7880
- onPressIn: onPressIn,
7881
- onPressOut: onPressOut,
7882
- children: function children(_ref2) {
7883
- var isHovered = _ref2.isHovered,
7884
- isPressed = _ref2.isPressed,
7885
- isFocused = _ref2.isFocused;
7886
- var isCurrentHovered = isHovered || isHoveredInternal;
7887
- var isCurrentPressed = isPressed || isPressedInternal;
7888
- return /*#__PURE__*/jsxs(Fragment, {
7889
- children: [/*#__PURE__*/jsxs(AnimatedScale, {
7890
- isDisabled: disabled,
7891
- isHovered: isCurrentHovered,
7892
- isPressed: isCurrentPressed,
7893
- scaleStyles: scaleStyles,
7894
- children: [/*#__PURE__*/jsx(AnimatedBackground, {
7895
- color: color,
7896
- isDisabled: disabled,
7897
- isHovered: isCurrentHovered,
7898
- isPressed: isCurrentPressed,
7899
- isFocused: isFocused || isFocusedInternal,
7900
- opacityStyles: opacityStyles
7901
- }), /*#__PURE__*/jsx(View, {
7902
- alignItems: "center",
7903
- justifyContent: "center",
7904
- children: /*#__PURE__*/jsx(TypographyIcon, {
7905
- color: getIconButtonTextColorByColor(color, disabled),
7906
- icon: icon
7907
- })
7908
- })]
7909
- }), withBadge || badgeCount && badgeCount > 0 ? /*#__PURE__*/jsx(View, {
7910
- position: "absolute",
7911
- top: withBadge ? '1px' : '-6px',
7912
- right: withBadge ? '1px' : '-6px',
7913
- children: /*#__PURE__*/jsx(ButtonBadge, {
7914
- withBadge: withBadge,
7915
- badgeCount: badgeCount
7916
- })
7917
- }) : null]
7918
- });
7919
- }
7920
- });
7728
+ var _ref$color = _ref.color,
7729
+ color = _ref$color === void 0 ? 'black' : _ref$color;
7730
+ _ref.ariaLabel;
7731
+ var props = _objectWithoutProperties(_ref, _excluded$h);
7732
+ var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
7733
+ legacyColorToType = _getButtonTypeAndVari.type,
7734
+ legacyColorToVariant = _getButtonTypeAndVari.variant;
7735
+ return /*#__PURE__*/jsx(Button, _objectSpread({
7736
+ variant: legacyColorToVariant,
7737
+ type: legacyColorToType
7738
+ }, props));
7921
7739
  }
7922
7740
  function CloseIconButton(props) {
7923
7741
  return /*#__PURE__*/jsx(IconButton, _objectSpread({
@@ -8577,11 +8395,17 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8577
8395
  choices: {
8578
8396
  item: {
8579
8397
  "default": {
8580
- backgroundColor: theme.choices.item.backgroundColor["default"]
8398
+ backgroundColor: theme.choices.item.backgroundColor["default"],
8399
+ borderColor: theme.choices.item.border["default"].color,
8400
+ color: theme.choices.item.color["default"]
8581
8401
  },
8582
8402
  disabled: {
8583
8403
  backgroundColor: theme.choices.item.backgroundColor.disabled,
8584
- borderColor: theme.choices.item.disabled.border.color
8404
+ borderColor: theme.choices.item.border.disabled.color,
8405
+ color: theme.choices.item.color.disabled
8406
+ },
8407
+ error: {
8408
+ borderColor: theme.choices.item.border.error.color
8585
8409
  },
8586
8410
  selected: {
8587
8411
  backgroundColor: theme.choices.item.backgroundColor.selected
@@ -8595,6 +8419,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8595
8419
  hoverWhenSelected: {
8596
8420
  backgroundColor: theme.choices.item.backgroundColor.hoverWhenSelected
8597
8421
  }
8422
+ },
8423
+ description: {
8424
+ color: {
8425
+ "default": theme.choices.description.color["default"],
8426
+ error: theme.choices.description.color.error
8427
+ }
8598
8428
  }
8599
8429
  },
8600
8430
  tooltip: {
@@ -8998,39 +8828,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
8998
8828
  buttonBadge: {
8999
8829
  backgroundColor: theme.buttonBadge.backgroundColor
9000
8830
  },
9001
- iconButton: {
9002
- borderColor: theme.iconButton.borderColor,
9003
- disabled: {
9004
- backgroundColor: theme.iconButton.disabled.backgroundColor
9005
- },
9006
- black: {
9007
- pressed: {
9008
- backgroundColor: theme.iconButton["default"].pressedBackgroundColor
9009
- }
9010
- },
9011
- ghost: {
9012
- pressed: {
9013
- backgroundColor: theme.iconButton.ghost.pressedBackgroundColor
9014
- }
9015
- },
9016
- primary: {
9017
- pressed: {
9018
- backgroundColor: theme.iconButton.primary.pressedBackgroundColor
9019
- }
9020
- },
9021
- 'primary-plain': {
9022
- pressed: {
9023
- backgroundColor: theme.iconButton['primary-plain'].pressedBackgroundColor
9024
- },
9025
- backgroundColor: theme.iconButton['primary-plain'].backgroundColor
9026
- },
9027
- secondary: {
9028
- pressed: {
9029
- backgroundColor: theme.iconButton.secondary.pressedBackgroundColor
9030
- },
9031
- backgroundColor: theme.iconButton.secondary.backgroundColor
9032
- }
9033
- },
9034
8831
  highlight: {
9035
8832
  regular: {
9036
8833
  "default": {
@@ -9231,9 +9028,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9231
9028
  highlight: {
9232
9029
  borderRadius: theme.highlight.borderRadius
9233
9030
  },
9234
- iconButton: {
9235
- borderRadius: theme.iconButton.borderRadius
9236
- },
9237
9031
  tag: {
9238
9032
  borderRadius: theme.tag.borderRadius
9239
9033
  },
@@ -9357,14 +9151,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9357
9151
  },
9358
9152
  choices: {
9359
9153
  item: {
9360
- disabled: {
9361
- borderWidth: theme.choices.item.disabled.border.width
9154
+ "default": {
9155
+ borderWidth: theme.choices.item.border["default"].width
9362
9156
  }
9363
9157
  }
9364
9158
  },
9365
- iconButton: {
9366
- borderWidth: theme.iconButton.borderWidth
9367
- },
9368
9159
  forms: {
9369
9160
  input: {
9370
9161
  borderWidth: theme.forms.input.borderWidth
@@ -9550,8 +9341,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9550
9341
  button: {
9551
9342
  minWidth: theme.button.minWidth,
9552
9343
  maxWidth: theme.button.maxWidth,
9553
- minHeight: theme.button.minHeight,
9554
- maxHeight: theme.button.maxHeight,
9344
+ height: {
9345
+ "default": theme.button.height["default"],
9346
+ medium: theme.button.height.medium
9347
+ },
9555
9348
  icon: {
9556
9349
  "default": {
9557
9350
  size: theme.button.icon["default"].size
@@ -9879,7 +9672,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9879
9672
  }
9880
9673
  },
9881
9674
  iconButton: {
9882
- size: theme.iconButton.width - theme.iconButton.borderWidth,
9883
9675
  width: theme.iconButton.width,
9884
9676
  height: theme.iconButton.height
9885
9677
  },
@@ -10176,6 +9968,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10176
9968
  'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].fontSize, "px"),
10177
9969
  'label-large': "".concat(theme.typography.types.labels.configs['label-large'].fontSize, "px"),
10178
9970
  'label-medium': "".concat(theme.typography.types.labels.configs['label-medium'].fontSize, "px"),
9971
+ 'label-small': "".concat(theme.typography.types.labels.configs['label-small'].fontSize, "px"),
10179
9972
  'content-caps-xxxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxxl'].fontSize, "px"),
10180
9973
  'content-caps-xxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxl'].fontSize, "px"),
10181
9974
  'content-caps-xl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xl'].fontSize, "px"),
@@ -10198,6 +9991,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10198
9991
  'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].lineHeight, "px"),
10199
9992
  'label-large': "".concat(theme.typography.types.labels.configs['label-large'].lineHeight, "px"),
10200
9993
  'label-medium': "".concat(theme.typography.types.labels.configs['label-medium'].lineHeight, "px"),
9994
+ 'label-small': "".concat(theme.typography.types.labels.configs['label-small'].lineHeight, "px"),
10201
9995
  'content-caps-xxxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxxl'].lineHeight, "px"),
10202
9996
  'content-caps-xxl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xxl'].lineHeight, "px"),
10203
9997
  'content-caps-xl': "".concat(theme.typography.types.contentCaps.configs['content-caps-xl'].lineHeight, "px"),