@ornikar/kitt-universal 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0 → 32.3.1-canary.ddff29bdf3ffa500cf7658e5206d5069b23f4b45.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 (55) hide show
  1. package/CHANGELOG.md +12 -4
  2. package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
  3. package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
  4. package/dist/definitions/Button/Button.d.ts.map +1 -1
  5. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  6. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +1 -2
  7. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  8. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +4 -0
  9. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
  10. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +9 -3
  11. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  12. package/dist/definitions/themes/default.d.ts +5 -0
  13. package/dist/definitions/themes/default.d.ts.map +1 -1
  14. package/dist/definitions/themes/late-ocean/button.d.ts +3 -0
  15. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  16. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  17. package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
  18. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  19. package/dist/index-metro.es.android.js +69 -74
  20. package/dist/index-metro.es.android.js.map +1 -1
  21. package/dist/index-metro.es.ios.js +69 -74
  22. package/dist/index-metro.es.ios.js.map +1 -1
  23. package/dist/index-node-22.17.cjs.js +69 -74
  24. package/dist/index-node-22.17.cjs.js.map +1 -1
  25. package/dist/index-node-22.17.cjs.web.css +1 -0
  26. package/dist/index-node-22.17.cjs.web.js +70 -75
  27. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  28. package/dist/index-node-22.17.es.mjs +69 -74
  29. package/dist/index-node-22.17.es.mjs.map +1 -1
  30. package/dist/index-node-22.17.es.web.css +1 -0
  31. package/dist/index-node-22.17.es.web.mjs +70 -75
  32. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  33. package/dist/index.es.js +71 -77
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/index.es.web.js +72 -78
  36. package/dist/index.es.web.js.map +1 -1
  37. package/dist/linaria-themes-metro.es.android.js +20 -10
  38. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  39. package/dist/linaria-themes-metro.es.ios.js +20 -10
  40. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.cjs.js +20 -10
  42. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.cjs.web.js +20 -10
  44. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  45. package/dist/linaria-themes-node-22.17.es.mjs +20 -10
  46. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  47. package/dist/linaria-themes-node-22.17.es.web.mjs +20 -10
  48. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  49. package/dist/linaria-themes.es.js +20 -10
  50. package/dist/linaria-themes.es.js.map +1 -1
  51. package/dist/linaria-themes.es.web.js +20 -10
  52. package/dist/linaria-themes.es.web.js.map +1 -1
  53. package/dist/styles.css +1 -0
  54. package/dist/tsbuildinfo +1 -1
  55. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -691,6 +691,10 @@ var button = {
691
691
  "default": 40,
692
692
  medium: 48
693
693
  },
694
+ minHeight: {
695
+ "default": 40,
696
+ medium: 48
697
+ },
694
698
  maxHeight: 48,
695
699
  icon: {
696
700
  medium: {
@@ -1138,6 +1142,7 @@ var inputStatesStyle = {
1138
1142
  color: deepPurpleColorPalette.black
1139
1143
  },
1140
1144
  hover: {
1145
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1141
1146
  borderColor: deepPurpleColorPalette['beige.4'],
1142
1147
  color: deepPurpleColorPalette.black
1143
1148
  },
@@ -2143,8 +2148,8 @@ var typography = {
2143
2148
  allowedFontWeights: ['semibold']
2144
2149
  },
2145
2150
  'heading-l': {
2146
- fontSize: 40,
2147
- lineHeight: 48,
2151
+ fontSize: 38,
2152
+ lineHeight: 44,
2148
2153
  allowedFontWeights: ['semibold']
2149
2154
  },
2150
2155
  'heading-m': {
@@ -2153,14 +2158,19 @@ var typography = {
2153
2158
  allowedFontWeights: ['semibold']
2154
2159
  },
2155
2160
  'heading-s': {
2156
- fontSize: 18,
2157
- lineHeight: 20,
2158
- allowedFontWeights: ['regular', 'bold']
2161
+ fontSize: 24,
2162
+ lineHeight: 28,
2163
+ allowedFontWeights: ['semibold']
2159
2164
  },
2160
2165
  'heading-xs': {
2166
+ fontSize: 20,
2167
+ lineHeight: 24,
2168
+ allowedFontWeights: ['semibold']
2169
+ },
2170
+ 'heading-xxs': {
2161
2171
  fontSize: 16,
2162
- lineHeight: 18,
2163
- allowedFontWeights: ['regular', 'bold']
2172
+ lineHeight: 20,
2173
+ allowedFontWeights: ['semibold']
2164
2174
  }
2165
2175
  }
2166
2176
  },
@@ -2227,17 +2237,17 @@ var typography = {
2227
2237
  configs: {
2228
2238
  'label-large': {
2229
2239
  fontSize: 16,
2230
- lineHeight: 24,
2240
+ lineHeight: 20,
2231
2241
  allowedFontWeights: ['semibold']
2232
2242
  },
2233
2243
  'label-medium': {
2234
2244
  fontSize: 14,
2235
- lineHeight: 20,
2245
+ lineHeight: 18,
2236
2246
  allowedFontWeights: ['semibold']
2237
2247
  },
2238
2248
  'label-small': {
2239
2249
  fontSize: 12,
2240
- lineHeight: 16,
2250
+ lineHeight: 14,
2241
2251
  allowedFontWeights: ['semibold']
2242
2252
  }
2243
2253
  }
@@ -3149,7 +3159,8 @@ function AnimatedContainer$2(_ref) {
3149
3159
  borderRadius: 'kitt.button.borderRadius',
3150
3160
  backgroundColor: currentBackgroundColor,
3151
3161
  width: width,
3152
- height: height
3162
+ height: height,
3163
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3153
3164
  });
3154
3165
  return /*#__PURE__*/jsx(Animated.View, {
3155
3166
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3869,6 +3880,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3869
3880
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3870
3881
  minWidth: "kitt.button.minWidth",
3871
3882
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3883
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3872
3884
  maxHeight: "kitt.button.maxHeight",
3873
3885
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3874
3886
  onPress: onPress,
@@ -5623,28 +5635,10 @@ function InputPressable(_ref) {
5623
5635
  }
5624
5636
 
5625
5637
  function InputTextContainer(_ref) {
5626
- var children = _ref.children,
5627
- isHovered = _ref.isHovered;
5628
- var theme = useTheme();
5629
- var sx = useSx();
5630
- var styles = sx({
5631
- borderRadius: input.borderRadius
5632
- });
5633
- var animatedBackground = useAnimatedStyle(function () {
5634
- var baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5635
- var hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5636
- return {
5637
- backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5638
- duration: 200
5639
- })
5640
- };
5641
- }, [isHovered, theme]);
5642
- return /*#__PURE__*/jsx(Animated.View, {
5643
- style: [styles, animatedBackground],
5644
- children: /*#__PURE__*/jsx(View, {
5645
- position: "relative",
5646
- children: children
5647
- })
5638
+ var children = _ref.children;
5639
+ return /*#__PURE__*/jsx(View, {
5640
+ position: "relative",
5641
+ children: children
5648
5642
  });
5649
5643
  }
5650
5644
 
@@ -5675,47 +5669,41 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5675
5669
  base: 'body-m'
5676
5670
  });
5677
5671
  var shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
5678
- return /*#__PURE__*/jsx(Pressable, {
5679
- children: function (_ref2) {
5680
- var isHovered = _ref2.isHovered;
5681
- return /*#__PURE__*/jsxs(InputTextContainer, {
5682
- isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5683
- children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5684
- ref: ref,
5685
- multiline: multiline,
5686
- id: id,
5687
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5688
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5689
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5690
- inputMode: inputMode,
5691
- autoComplete: autoComplete,
5692
- autoCorrect: autoCorrect,
5693
- textContentType: textContentType,
5694
- fontSize: fontSizeForNativeBase,
5695
- lineHeight:
5696
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5697
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5698
- shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5699
- fontWeight: "bodies.regular",
5700
- fontFamily: "bodies.regular",
5701
- py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5702
- variant: variant
5703
- }, props), {}, {
5704
- height: multiline ? height : 'kitt.forms.input.minHeight',
5705
- onSubmitEditing: multiline ? function () {
5706
- return null;
5707
- } : onSubmitEditing
5708
- })), right ? /*#__PURE__*/jsx(View, {
5709
- position: "absolute",
5710
- right: 0,
5711
- top: 0,
5712
- bottom: 0,
5713
- justifyContent: "center",
5714
- padding: theme.kitt.forms.input.rightContainer.padding,
5715
- children: right
5716
- }) : null]
5717
- });
5718
- }
5672
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5673
+ children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5674
+ ref: ref,
5675
+ multiline: multiline,
5676
+ id: id,
5677
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5678
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5679
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5680
+ inputMode: inputMode,
5681
+ autoComplete: autoComplete,
5682
+ autoCorrect: autoCorrect,
5683
+ textContentType: textContentType,
5684
+ fontSize: fontSizeForNativeBase,
5685
+ lineHeight:
5686
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5687
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5688
+ shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5689
+ fontWeight: "bodies.regular",
5690
+ fontFamily: "bodies.regular",
5691
+ py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5692
+ variant: variant
5693
+ }, props), {}, {
5694
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5695
+ onSubmitEditing: multiline ? function () {
5696
+ return null;
5697
+ } : onSubmitEditing
5698
+ })), right ? /*#__PURE__*/jsx(View, {
5699
+ position: "absolute",
5700
+ right: 0,
5701
+ top: 0,
5702
+ bottom: 0,
5703
+ justifyContent: "center",
5704
+ padding: theme.kitt.forms.input.rightContainer.padding,
5705
+ children: right
5706
+ }) : null]
5719
5707
  });
5720
5708
  });
5721
5709
 
@@ -10870,6 +10858,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10870
10858
  button: {
10871
10859
  minWidth: theme.button.minWidth,
10872
10860
  maxWidth: theme.button.maxWidth,
10861
+ minHeight: {
10862
+ "default": theme.button.minHeight["default"],
10863
+ medium: theme.button.minHeight.medium
10864
+ },
10873
10865
  maxHeight: theme.button.maxHeight,
10874
10866
  height: {
10875
10867
  "default": theme.button.height["default"],
@@ -11486,6 +11478,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11486
11478
  'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
11487
11479
  'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
11488
11480
  'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
11481
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].fontSize, "px"),
11489
11482
  'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
11490
11483
  'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
11491
11484
  'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
@@ -11509,6 +11502,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11509
11502
  'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
11510
11503
  'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
11511
11504
  'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
11505
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].lineHeight, "px"),
11512
11506
  'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
11513
11507
  'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
11514
11508
  'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
@@ -13289,7 +13283,7 @@ function StoryTitleLevel4(_ref4) {
13289
13283
  return /*#__PURE__*/jsx(View, {
13290
13284
  marginBottom: 10,
13291
13285
  children: /*#__PURE__*/jsx(Typography.Header4, {
13292
- base: "heading-s",
13286
+ base: "body-l",
13293
13287
  color: useStoryBlockColor(color),
13294
13288
  numberOfLines: numberOfLines,
13295
13289
  children: children
@@ -13910,7 +13904,7 @@ function ToastContent(_ref) {
13910
13904
  flexGrow: 1,
13911
13905
  flexShrink: 1,
13912
13906
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13913
- base: "heading-xs",
13907
+ base: "body-m",
13914
13908
  color: "white",
13915
13909
  children: title
13916
13910
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13926,7 +13920,7 @@ function ToastContent(_ref) {
13926
13920
  borderColor: "white",
13927
13921
  onPress: onPress,
13928
13922
  children: /*#__PURE__*/jsx(Typography.Text, {
13929
- base: "heading-xs",
13923
+ base: "body-m",
13930
13924
  color: "white",
13931
13925
  children: actionLabel
13932
13926
  })