@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
@@ -676,6 +676,10 @@ const button = {
676
676
  default: 40,
677
677
  medium: 48
678
678
  },
679
+ minHeight: {
680
+ default: 40,
681
+ medium: 48
682
+ },
679
683
  maxHeight: 48,
680
684
  icon: {
681
685
  medium: {
@@ -1123,6 +1127,7 @@ const inputStatesStyle = {
1123
1127
  color: deepPurpleColorPalette.black
1124
1128
  },
1125
1129
  hover: {
1130
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1126
1131
  borderColor: deepPurpleColorPalette['beige.4'],
1127
1132
  color: deepPurpleColorPalette.black
1128
1133
  },
@@ -2128,8 +2133,8 @@ const typography = {
2128
2133
  allowedFontWeights: ['semibold']
2129
2134
  },
2130
2135
  'heading-l': {
2131
- fontSize: 40,
2132
- lineHeight: 48,
2136
+ fontSize: 38,
2137
+ lineHeight: 44,
2133
2138
  allowedFontWeights: ['semibold']
2134
2139
  },
2135
2140
  'heading-m': {
@@ -2138,14 +2143,19 @@ const typography = {
2138
2143
  allowedFontWeights: ['semibold']
2139
2144
  },
2140
2145
  'heading-s': {
2141
- fontSize: 18,
2142
- lineHeight: 20,
2143
- allowedFontWeights: ['regular', 'bold']
2146
+ fontSize: 24,
2147
+ lineHeight: 28,
2148
+ allowedFontWeights: ['semibold']
2144
2149
  },
2145
2150
  'heading-xs': {
2151
+ fontSize: 20,
2152
+ lineHeight: 24,
2153
+ allowedFontWeights: ['semibold']
2154
+ },
2155
+ 'heading-xxs': {
2146
2156
  fontSize: 16,
2147
- lineHeight: 18,
2148
- allowedFontWeights: ['regular', 'bold']
2157
+ lineHeight: 20,
2158
+ allowedFontWeights: ['semibold']
2149
2159
  }
2150
2160
  }
2151
2161
  },
@@ -2212,17 +2222,17 @@ const typography = {
2212
2222
  configs: {
2213
2223
  'label-large': {
2214
2224
  fontSize: 16,
2215
- lineHeight: 24,
2225
+ lineHeight: 20,
2216
2226
  allowedFontWeights: ['semibold']
2217
2227
  },
2218
2228
  'label-medium': {
2219
2229
  fontSize: 14,
2220
- lineHeight: 20,
2230
+ lineHeight: 18,
2221
2231
  allowedFontWeights: ['semibold']
2222
2232
  },
2223
2233
  'label-small': {
2224
2234
  fontSize: 12,
2225
- lineHeight: 16,
2235
+ lineHeight: 14,
2226
2236
  allowedFontWeights: ['semibold']
2227
2237
  }
2228
2238
  }
@@ -3130,7 +3140,8 @@ function AnimatedContainer$2({
3130
3140
  borderRadius: 'kitt.button.borderRadius',
3131
3141
  backgroundColor: currentBackgroundColor,
3132
3142
  width,
3133
- height
3143
+ height,
3144
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3134
3145
  });
3135
3146
  return /*#__PURE__*/jsx(Animated.View, {
3136
3147
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3844,6 +3855,7 @@ const Button = /*#__PURE__*/forwardRef(({
3844
3855
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3845
3856
  minWidth: "kitt.button.minWidth",
3846
3857
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3858
+ minHeight: _size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3847
3859
  maxHeight: "kitt.button.maxHeight",
3848
3860
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3849
3861
  onPress: onPress,
@@ -5525,29 +5537,11 @@ function InputPressable(_ref) {
5525
5537
  }
5526
5538
 
5527
5539
  function InputTextContainer({
5528
- children,
5529
- isHovered
5540
+ children
5530
5541
  }) {
5531
- const theme = useTheme();
5532
- const sx = useSx();
5533
- const styles = sx({
5534
- borderRadius: input.borderRadius
5535
- });
5536
- const animatedBackground = useAnimatedStyle(() => {
5537
- const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5538
- const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5539
- return {
5540
- backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5541
- duration: 200
5542
- })
5543
- };
5544
- }, [isHovered, theme]);
5545
- return /*#__PURE__*/jsx(Animated.View, {
5546
- style: [styles, animatedBackground],
5547
- children: /*#__PURE__*/jsx(View, {
5548
- position: "relative",
5549
- children: children
5550
- })
5542
+ return /*#__PURE__*/jsx(View, {
5543
+ position: "relative",
5544
+ children: children
5551
5545
  });
5552
5546
  }
5553
5547
 
@@ -5574,44 +5568,39 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
5574
5568
  base: 'body-m'
5575
5569
  });
5576
5570
  const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
5577
- return /*#__PURE__*/jsx(Pressable, {
5578
- children: ({
5579
- isHovered
5580
- }) => /*#__PURE__*/jsxs(InputTextContainer, {
5581
- isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5582
- children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5583
- ref: ref,
5584
- multiline: multiline,
5585
- id: id,
5586
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5587
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5588
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5589
- inputMode: inputMode,
5590
- autoComplete: autoComplete,
5591
- autoCorrect: autoCorrect,
5592
- textContentType: textContentType,
5593
- fontSize: fontSizeForNativeBase,
5594
- lineHeight:
5595
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5596
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5597
- shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5598
- fontWeight: "bodies.regular",
5599
- fontFamily: "bodies.regular",
5600
- py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5601
- variant: variant
5602
- }, props), {}, {
5603
- height: multiline ? height : 'kitt.forms.input.minHeight',
5604
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5605
- })), right ? /*#__PURE__*/jsx(View, {
5606
- position: "absolute",
5607
- right: 0,
5608
- top: 0,
5609
- bottom: 0,
5610
- justifyContent: "center",
5611
- padding: theme.kitt.forms.input.rightContainer.padding,
5612
- children: right
5613
- }) : null]
5614
- })
5571
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5572
+ children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5573
+ ref: ref,
5574
+ multiline: multiline,
5575
+ id: id,
5576
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5577
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5578
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5579
+ inputMode: inputMode,
5580
+ autoComplete: autoComplete,
5581
+ autoCorrect: autoCorrect,
5582
+ textContentType: textContentType,
5583
+ fontSize: fontSizeForNativeBase,
5584
+ lineHeight:
5585
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5586
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5587
+ shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5588
+ fontWeight: "bodies.regular",
5589
+ fontFamily: "bodies.regular",
5590
+ py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5591
+ variant: variant
5592
+ }, props), {}, {
5593
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5594
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
5595
+ })), right ? /*#__PURE__*/jsx(View, {
5596
+ position: "absolute",
5597
+ right: 0,
5598
+ top: 0,
5599
+ bottom: 0,
5600
+ justifyContent: "center",
5601
+ padding: theme.kitt.forms.input.rightContainer.padding,
5602
+ children: right
5603
+ }) : null]
5615
5604
  });
5616
5605
  });
5617
5606
 
@@ -10640,6 +10629,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10640
10629
  button: {
10641
10630
  minWidth: theme.button.minWidth,
10642
10631
  maxWidth: theme.button.maxWidth,
10632
+ minHeight: {
10633
+ default: theme.button.minHeight.default,
10634
+ medium: theme.button.minHeight.medium
10635
+ },
10643
10636
  maxHeight: theme.button.maxHeight,
10644
10637
  height: {
10645
10638
  default: theme.button.height.default,
@@ -11256,6 +11249,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11256
11249
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11257
11250
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11258
11251
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11252
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11259
11253
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11260
11254
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11261
11255
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11279,6 +11273,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11279
11273
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11280
11274
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11281
11275
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11276
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11282
11277
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11283
11278
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11284
11279
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13045,7 +13040,7 @@ function StoryTitleLevel4({
13045
13040
  return /*#__PURE__*/jsx(View, {
13046
13041
  marginBottom: 10,
13047
13042
  children: /*#__PURE__*/jsx(Typography.Header4, {
13048
- base: "heading-s",
13043
+ base: "body-l",
13049
13044
  color: useStoryBlockColor(color),
13050
13045
  numberOfLines: numberOfLines,
13051
13046
  children: children
@@ -13661,7 +13656,7 @@ function ToastContent({
13661
13656
  flexGrow: 1,
13662
13657
  flexShrink: 1,
13663
13658
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13664
- base: "heading-xs",
13659
+ base: "body-m",
13665
13660
  color: "white",
13666
13661
  children: title
13667
13662
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13677,7 +13672,7 @@ function ToastContent({
13677
13672
  borderColor: "white",
13678
13673
  onPress: onPress,
13679
13674
  children: /*#__PURE__*/jsx(Typography.Text, {
13680
- base: "heading-xs",
13675
+ base: "body-m",
13681
13676
  color: "white",
13682
13677
  children: actionLabel
13683
13678
  })