@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
@@ -689,6 +689,10 @@ var button = {
689
689
  "default": 40,
690
690
  medium: 48
691
691
  },
692
+ minHeight: {
693
+ "default": 40,
694
+ medium: 48
695
+ },
692
696
  maxHeight: 48,
693
697
  icon: {
694
698
  medium: {
@@ -1136,6 +1140,7 @@ var inputStatesStyle = {
1136
1140
  color: deepPurpleColorPalette.black
1137
1141
  },
1138
1142
  hover: {
1143
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1139
1144
  borderColor: deepPurpleColorPalette['beige.4'],
1140
1145
  color: deepPurpleColorPalette.black
1141
1146
  },
@@ -2141,8 +2146,8 @@ var typography = {
2141
2146
  allowedFontWeights: ['semibold']
2142
2147
  },
2143
2148
  'heading-l': {
2144
- fontSize: 40,
2145
- lineHeight: 48,
2149
+ fontSize: 38,
2150
+ lineHeight: 44,
2146
2151
  allowedFontWeights: ['semibold']
2147
2152
  },
2148
2153
  'heading-m': {
@@ -2151,14 +2156,19 @@ var typography = {
2151
2156
  allowedFontWeights: ['semibold']
2152
2157
  },
2153
2158
  'heading-s': {
2154
- fontSize: 18,
2155
- lineHeight: 20,
2156
- allowedFontWeights: ['regular', 'bold']
2159
+ fontSize: 24,
2160
+ lineHeight: 28,
2161
+ allowedFontWeights: ['semibold']
2157
2162
  },
2158
2163
  'heading-xs': {
2164
+ fontSize: 20,
2165
+ lineHeight: 24,
2166
+ allowedFontWeights: ['semibold']
2167
+ },
2168
+ 'heading-xxs': {
2159
2169
  fontSize: 16,
2160
- lineHeight: 18,
2161
- allowedFontWeights: ['regular', 'bold']
2170
+ lineHeight: 20,
2171
+ allowedFontWeights: ['semibold']
2162
2172
  }
2163
2173
  }
2164
2174
  },
@@ -2225,17 +2235,17 @@ var typography = {
2225
2235
  configs: {
2226
2236
  'label-large': {
2227
2237
  fontSize: 16,
2228
- lineHeight: 24,
2238
+ lineHeight: 20,
2229
2239
  allowedFontWeights: ['semibold']
2230
2240
  },
2231
2241
  'label-medium': {
2232
2242
  fontSize: 14,
2233
- lineHeight: 20,
2243
+ lineHeight: 18,
2234
2244
  allowedFontWeights: ['semibold']
2235
2245
  },
2236
2246
  'label-small': {
2237
2247
  fontSize: 12,
2238
- lineHeight: 16,
2248
+ lineHeight: 14,
2239
2249
  allowedFontWeights: ['semibold']
2240
2250
  }
2241
2251
  }
@@ -3156,7 +3166,9 @@ function AnimatedContainer$2(_ref) {
3156
3166
  },
3157
3167
  width: width,
3158
3168
  height: height,
3169
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3159
3170
  alignSelf: "baseline",
3171
+ justifyContent: "center",
3160
3172
  borderRadius: "kitt.button.borderRadius",
3161
3173
  backgroundColor: currentBackgroundColor,
3162
3174
  children: children
@@ -3855,6 +3867,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3855
3867
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3856
3868
  minWidth: "kitt.button.minWidth",
3857
3869
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3870
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3858
3871
  maxHeight: "kitt.button.maxHeight",
3859
3872
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3860
3873
  onPress: onPress,
@@ -5433,30 +5446,11 @@ function InputPressable(_ref) {
5433
5446
  return /*#__PURE__*/jsx(Pressable$2, _objectSpread({}, props));
5434
5447
  }
5435
5448
 
5436
- function InputTextContainer(_ref) {
5437
- var children = _ref.children,
5438
- isHovered = _ref.isHovered;
5439
- var theme = useTheme();
5440
- var sx = useSx();
5441
- var styles = sx({
5442
- borderRadius: input.borderRadius
5443
- });
5444
- var animatedBackground = useAnimatedStyle(function () {
5445
- var baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5446
- var hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5447
- return {
5448
- backgroundColor: withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5449
- duration: 200
5450
- })
5451
- };
5452
- }, [isHovered, theme]);
5453
- return /*#__PURE__*/jsx(Animated$1.View, {
5454
- style: [styles, animatedBackground],
5455
- children: /*#__PURE__*/jsx(View, {
5456
- position: "relative",
5457
- children: children
5458
- })
5459
- });
5449
+ var inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5450
+ function InputTextContainer(props) {
5451
+ return /*#__PURE__*/jsx("div", _objectSpread({
5452
+ className: inputTextContainer
5453
+ }, props));
5460
5454
  }
5461
5455
 
5462
5456
  var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
@@ -5485,47 +5479,41 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
5485
5479
  var fontSizeForNativeBase = createNativeBaseFontSize({
5486
5480
  base: 'body-m'
5487
5481
  });
5488
- return /*#__PURE__*/jsx(Pressable, {
5489
- children: function (_ref2) {
5490
- var isHovered = _ref2.isHovered;
5491
- return /*#__PURE__*/jsxs(InputTextContainer, {
5492
- isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5493
- children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5494
- ref: ref,
5495
- multiline: multiline,
5496
- id: id,
5497
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5498
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5499
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5500
- inputMode: inputMode,
5501
- autoComplete: autoComplete,
5502
- autoCorrect: autoCorrect,
5503
- textContentType: textContentType,
5504
- fontSize: fontSizeForNativeBase,
5505
- lineHeight:
5506
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5507
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5508
- fontSizeForNativeBase,
5509
- fontWeight: "bodies.regular",
5510
- fontFamily: "bodies.regular",
5511
- py: !multiline && "web" !== 'web' ? 0 : undefined,
5512
- variant: variant
5513
- }, props), {}, {
5514
- height: multiline ? height : 'kitt.forms.input.minHeight',
5515
- onSubmitEditing: multiline ? function () {
5516
- return null;
5517
- } : onSubmitEditing
5518
- })), right ? /*#__PURE__*/jsx(View, {
5519
- position: "absolute",
5520
- right: 0,
5521
- top: 0,
5522
- bottom: 0,
5523
- justifyContent: "center",
5524
- padding: theme.kitt.forms.input.rightContainer.padding,
5525
- children: right
5526
- }) : null]
5527
- });
5528
- }
5482
+ return /*#__PURE__*/jsxs(InputTextContainer, {
5483
+ children: [/*#__PURE__*/jsx(Input, _objectSpread(_objectSpread({
5484
+ ref: ref,
5485
+ multiline: multiline,
5486
+ id: id,
5487
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5488
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5489
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5490
+ inputMode: inputMode,
5491
+ autoComplete: autoComplete,
5492
+ autoCorrect: autoCorrect,
5493
+ textContentType: textContentType,
5494
+ fontSize: fontSizeForNativeBase,
5495
+ lineHeight:
5496
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5497
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5498
+ fontSizeForNativeBase,
5499
+ fontWeight: "bodies.regular",
5500
+ fontFamily: "bodies.regular",
5501
+ py: !multiline && "web" !== 'web' ? 0 : undefined,
5502
+ variant: variant
5503
+ }, props), {}, {
5504
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5505
+ onSubmitEditing: multiline ? function () {
5506
+ return null;
5507
+ } : onSubmitEditing
5508
+ })), right ? /*#__PURE__*/jsx(View, {
5509
+ position: "absolute",
5510
+ right: 0,
5511
+ top: 0,
5512
+ bottom: 0,
5513
+ justifyContent: "center",
5514
+ padding: theme.kitt.forms.input.rightContainer.padding,
5515
+ children: right
5516
+ }) : null]
5529
5517
  });
5530
5518
  });
5531
5519
 
@@ -10129,6 +10117,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10129
10117
  button: {
10130
10118
  minWidth: theme.button.minWidth,
10131
10119
  maxWidth: theme.button.maxWidth,
10120
+ minHeight: {
10121
+ "default": theme.button.minHeight["default"],
10122
+ medium: theme.button.minHeight.medium
10123
+ },
10132
10124
  maxHeight: theme.button.maxHeight,
10133
10125
  height: {
10134
10126
  "default": theme.button.height["default"],
@@ -10745,6 +10737,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10745
10737
  'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
10746
10738
  'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
10747
10739
  'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
10740
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].fontSize, "px"),
10748
10741
  'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
10749
10742
  'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
10750
10743
  'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
@@ -10768,6 +10761,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10768
10761
  'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
10769
10762
  'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
10770
10763
  'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
10764
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].lineHeight, "px"),
10771
10765
  'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
10772
10766
  'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
10773
10767
  'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
@@ -12598,7 +12592,7 @@ function StoryTitleLevel4(_ref4) {
12598
12592
  return /*#__PURE__*/jsx(View, {
12599
12593
  marginBottom: 10,
12600
12594
  children: /*#__PURE__*/jsx(Typography.Header4, {
12601
- base: "heading-s",
12595
+ base: "body-l",
12602
12596
  color: useStoryBlockColor(color),
12603
12597
  numberOfLines: numberOfLines,
12604
12598
  children: children
@@ -13151,7 +13145,7 @@ function ToastContent(_ref) {
13151
13145
  flexGrow: 1,
13152
13146
  flexShrink: 1,
13153
13147
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13154
- base: "heading-xs",
13148
+ base: "body-m",
13155
13149
  color: "white",
13156
13150
  children: title
13157
13151
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13167,7 +13161,7 @@ function ToastContent(_ref) {
13167
13161
  borderColor: "white",
13168
13162
  onPress: onPress,
13169
13163
  children: /*#__PURE__*/jsx(Typography.Text, {
13170
- base: "heading-xs",
13164
+ base: "body-m",
13171
13165
  color: "white",
13172
13166
  children: actionLabel
13173
13167
  })