@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
@@ -673,6 +673,10 @@ const button = {
673
673
  default: 40,
674
674
  medium: 48
675
675
  },
676
+ minHeight: {
677
+ default: 40,
678
+ medium: 48
679
+ },
676
680
  maxHeight: 48,
677
681
  icon: {
678
682
  medium: {
@@ -1120,6 +1124,7 @@ const inputStatesStyle = {
1120
1124
  color: deepPurpleColorPalette.black
1121
1125
  },
1122
1126
  hover: {
1127
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1123
1128
  borderColor: deepPurpleColorPalette['beige.4'],
1124
1129
  color: deepPurpleColorPalette.black
1125
1130
  },
@@ -2125,8 +2130,8 @@ const typography = {
2125
2130
  allowedFontWeights: ['semibold']
2126
2131
  },
2127
2132
  'heading-l': {
2128
- fontSize: 40,
2129
- lineHeight: 48,
2133
+ fontSize: 38,
2134
+ lineHeight: 44,
2130
2135
  allowedFontWeights: ['semibold']
2131
2136
  },
2132
2137
  'heading-m': {
@@ -2135,14 +2140,19 @@ const typography = {
2135
2140
  allowedFontWeights: ['semibold']
2136
2141
  },
2137
2142
  'heading-s': {
2138
- fontSize: 18,
2139
- lineHeight: 20,
2140
- allowedFontWeights: ['regular', 'bold']
2143
+ fontSize: 24,
2144
+ lineHeight: 28,
2145
+ allowedFontWeights: ['semibold']
2141
2146
  },
2142
2147
  'heading-xs': {
2148
+ fontSize: 20,
2149
+ lineHeight: 24,
2150
+ allowedFontWeights: ['semibold']
2151
+ },
2152
+ 'heading-xxs': {
2143
2153
  fontSize: 16,
2144
- lineHeight: 18,
2145
- allowedFontWeights: ['regular', 'bold']
2154
+ lineHeight: 20,
2155
+ allowedFontWeights: ['semibold']
2146
2156
  }
2147
2157
  }
2148
2158
  },
@@ -2209,17 +2219,17 @@ const typography = {
2209
2219
  configs: {
2210
2220
  'label-large': {
2211
2221
  fontSize: 16,
2212
- lineHeight: 24,
2222
+ lineHeight: 20,
2213
2223
  allowedFontWeights: ['semibold']
2214
2224
  },
2215
2225
  'label-medium': {
2216
2226
  fontSize: 14,
2217
- lineHeight: 20,
2227
+ lineHeight: 18,
2218
2228
  allowedFontWeights: ['semibold']
2219
2229
  },
2220
2230
  'label-small': {
2221
2231
  fontSize: 12,
2222
- lineHeight: 16,
2232
+ lineHeight: 14,
2223
2233
  allowedFontWeights: ['semibold']
2224
2234
  }
2225
2235
  }
@@ -3125,7 +3135,8 @@ function AnimatedContainer$2({
3125
3135
  borderRadius: 'kitt.button.borderRadius',
3126
3136
  backgroundColor: currentBackgroundColor,
3127
3137
  width,
3128
- height
3138
+ height,
3139
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3129
3140
  });
3130
3141
  return /*#__PURE__*/jsx(Animated.View, {
3131
3142
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3843,6 +3854,7 @@ const Button = /*#__PURE__*/forwardRef(({
3843
3854
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3844
3855
  minWidth: "kitt.button.minWidth",
3845
3856
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3857
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3846
3858
  maxHeight: "kitt.button.maxHeight",
3847
3859
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3848
3860
  onPress: onPress,
@@ -5525,29 +5537,11 @@ function InputPressable({
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
 
@@ -5572,44 +5566,39 @@ const InputText = /*#__PURE__*/forwardRef(({
5572
5566
  base: 'body-m'
5573
5567
  });
5574
5568
  const shouldHandleSingleLineOnIOS = Platform.OS === 'ios' && !multiline;
5575
- return /*#__PURE__*/jsx(Pressable, {
5576
- children: ({
5577
- isHovered
5578
- }) => /*#__PURE__*/jsxs(InputTextContainer, {
5579
- isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5580
- children: [/*#__PURE__*/jsx(Input, {
5581
- ref: ref,
5582
- multiline: multiline,
5583
- id: id,
5584
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5585
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5586
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5587
- inputMode: inputMode,
5588
- autoComplete: autoComplete,
5589
- autoCorrect: autoCorrect,
5590
- textContentType: textContentType,
5591
- fontSize: fontSizeForNativeBase,
5592
- lineHeight:
5593
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5594
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5595
- shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5596
- fontWeight: "bodies.regular",
5597
- fontFamily: "bodies.regular",
5598
- py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5599
- variant: variant,
5600
- ...props,
5601
- height: multiline ? height : 'kitt.forms.input.minHeight',
5602
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5603
- }), right ? /*#__PURE__*/jsx(View, {
5604
- position: "absolute",
5605
- right: 0,
5606
- top: 0,
5607
- bottom: 0,
5608
- justifyContent: "center",
5609
- padding: theme.kitt.forms.input.rightContainer.padding,
5610
- children: right
5611
- }) : null]
5612
- })
5569
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5570
+ children: [/*#__PURE__*/jsx(Input, {
5571
+ ref: ref,
5572
+ multiline: multiline,
5573
+ id: id,
5574
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5575
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5576
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5577
+ inputMode: inputMode,
5578
+ autoComplete: autoComplete,
5579
+ autoCorrect: autoCorrect,
5580
+ textContentType: textContentType,
5581
+ fontSize: fontSizeForNativeBase,
5582
+ lineHeight:
5583
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5584
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5585
+ shouldHandleSingleLineOnIOS ? 0 : fontSizeForNativeBase,
5586
+ fontWeight: "bodies.regular",
5587
+ fontFamily: "bodies.regular",
5588
+ py: !multiline && Platform.OS !== 'web' ? 0 : undefined,
5589
+ variant: variant,
5590
+ ...props,
5591
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5592
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
5593
+ }), right ? /*#__PURE__*/jsx(View, {
5594
+ position: "absolute",
5595
+ right: 0,
5596
+ top: 0,
5597
+ bottom: 0,
5598
+ justifyContent: "center",
5599
+ padding: theme.kitt.forms.input.rightContainer.padding,
5600
+ children: right
5601
+ }) : null]
5613
5602
  });
5614
5603
  });
5615
5604
 
@@ -10621,6 +10610,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10621
10610
  button: {
10622
10611
  minWidth: theme.button.minWidth,
10623
10612
  maxWidth: theme.button.maxWidth,
10613
+ minHeight: {
10614
+ default: theme.button.minHeight.default,
10615
+ medium: theme.button.minHeight.medium
10616
+ },
10624
10617
  maxHeight: theme.button.maxHeight,
10625
10618
  height: {
10626
10619
  default: theme.button.height.default,
@@ -11242,6 +11235,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11242
11235
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11243
11236
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11244
11237
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11238
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11245
11239
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11246
11240
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11247
11241
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11265,6 +11259,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11265
11259
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11266
11260
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11267
11261
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11262
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11268
11263
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11269
11264
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11270
11265
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13036,7 +13031,7 @@ function StoryTitleLevel4({
13036
13031
  return /*#__PURE__*/jsx(View, {
13037
13032
  marginBottom: 10,
13038
13033
  children: /*#__PURE__*/jsx(Typography.Header4, {
13039
- base: "heading-s",
13034
+ base: "body-l",
13040
13035
  color: useStoryBlockColor(color),
13041
13036
  numberOfLines: numberOfLines,
13042
13037
  children: children
@@ -13644,7 +13639,7 @@ function ToastContent({
13644
13639
  flexGrow: 1,
13645
13640
  flexShrink: 1,
13646
13641
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13647
- base: "heading-xs",
13642
+ base: "body-m",
13648
13643
  color: "white",
13649
13644
  children: title
13650
13645
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13660,7 +13655,7 @@ function ToastContent({
13660
13655
  borderColor: "white",
13661
13656
  onPress: onPress,
13662
13657
  children: /*#__PURE__*/jsx(Typography.Text, {
13663
- base: "heading-xs",
13658
+ base: "body-m",
13664
13659
  color: "white",
13665
13660
  children: actionLabel
13666
13661
  })