@ornikar/kitt-universal 32.5.1-canary.fa4369620bc01acac1d789322911d6bc321a3a45.0 → 32.5.2

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 +8 -11
  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/Picker/Picker.web.d.ts.map +1 -1
  6. package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts +3 -2
  7. package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts.map +1 -1
  8. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +3 -9
  9. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  10. package/dist/definitions/themes/default.d.ts +0 -5
  11. package/dist/definitions/themes/default.d.ts.map +1 -1
  12. package/dist/definitions/themes/late-ocean/button.d.ts +0 -3
  13. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  14. package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
  15. package/dist/definitions/themes/late-ocean/typography.d.ts +0 -5
  16. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  17. package/dist/definitions/typography/Typography.d.ts +1 -1
  18. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  19. package/dist/index-metro.es.android.js +33 -39
  20. package/dist/index-metro.es.android.js.map +1 -1
  21. package/dist/index-metro.es.ios.js +33 -39
  22. package/dist/index-metro.es.ios.js.map +1 -1
  23. package/dist/index-node-22.17.cjs.js +33 -39
  24. package/dist/index-node-22.17.cjs.js.map +1 -1
  25. package/dist/index-node-22.17.cjs.web.css +22 -4
  26. package/dist/index-node-22.17.cjs.web.js +57 -63
  27. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  28. package/dist/index-node-22.17.es.mjs +33 -39
  29. package/dist/index-node-22.17.es.mjs.map +1 -1
  30. package/dist/index-node-22.17.es.web.css +22 -4
  31. package/dist/index-node-22.17.es.web.mjs +57 -63
  32. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  33. package/dist/index.es.js +39 -42
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/index.es.web.js +63 -66
  36. package/dist/index.es.web.js.map +1 -1
  37. package/dist/linaria-themes-metro.es.android.js +10 -19
  38. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  39. package/dist/linaria-themes-metro.es.ios.js +10 -19
  40. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.cjs.js +10 -19
  42. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.cjs.web.js +10 -19
  44. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  45. package/dist/linaria-themes-node-22.17.es.mjs +10 -19
  46. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  47. package/dist/linaria-themes-node-22.17.es.web.mjs +10 -19
  48. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  49. package/dist/linaria-themes.es.js +10 -19
  50. package/dist/linaria-themes.es.js.map +1 -1
  51. package/dist/linaria-themes.es.web.js +10 -19
  52. package/dist/linaria-themes.es.web.js.map +1 -1
  53. package/dist/styles.css +22 -4
  54. package/dist/tsbuildinfo +1 -1
  55. package/package.json +1 -1
@@ -676,10 +676,6 @@ const button = {
676
676
  default: 40,
677
677
  medium: 48
678
678
  },
679
- minHeight: {
680
- default: 40,
681
- medium: 48
682
- },
683
679
  maxHeight: 48,
684
680
  icon: {
685
681
  medium: {
@@ -2134,8 +2130,8 @@ const typography = {
2134
2130
  allowedFontWeights: ['semibold']
2135
2131
  },
2136
2132
  'heading-l': {
2137
- fontSize: 38,
2138
- lineHeight: 44,
2133
+ fontSize: 40,
2134
+ lineHeight: 48,
2139
2135
  allowedFontWeights: ['semibold']
2140
2136
  },
2141
2137
  'heading-m': {
@@ -2144,19 +2140,14 @@ const typography = {
2144
2140
  allowedFontWeights: ['semibold']
2145
2141
  },
2146
2142
  'heading-s': {
2147
- fontSize: 24,
2148
- lineHeight: 28,
2149
- allowedFontWeights: ['semibold']
2143
+ fontSize: 18,
2144
+ lineHeight: 20,
2145
+ allowedFontWeights: ['regular', 'bold']
2150
2146
  },
2151
2147
  'heading-xs': {
2152
- fontSize: 20,
2153
- lineHeight: 24,
2154
- allowedFontWeights: ['semibold']
2155
- },
2156
- 'heading-xxs': {
2157
2148
  fontSize: 16,
2158
- lineHeight: 20,
2159
- allowedFontWeights: ['semibold']
2149
+ lineHeight: 18,
2150
+ allowedFontWeights: ['regular', 'bold']
2160
2151
  }
2161
2152
  }
2162
2153
  },
@@ -2223,17 +2214,17 @@ const typography = {
2223
2214
  configs: {
2224
2215
  'label-large': {
2225
2216
  fontSize: 16,
2226
- lineHeight: 20,
2217
+ lineHeight: 24,
2227
2218
  allowedFontWeights: ['semibold']
2228
2219
  },
2229
2220
  'label-medium': {
2230
2221
  fontSize: 14,
2231
- lineHeight: 18,
2222
+ lineHeight: 20,
2232
2223
  allowedFontWeights: ['semibold']
2233
2224
  },
2234
2225
  'label-small': {
2235
2226
  fontSize: 12,
2236
- lineHeight: 14,
2227
+ lineHeight: 16,
2237
2228
  allowedFontWeights: ['semibold']
2238
2229
  }
2239
2230
  }
@@ -3141,8 +3132,7 @@ function AnimatedContainer$2({
3141
3132
  borderRadius: 'kitt.button.borderRadius',
3142
3133
  backgroundColor: currentBackgroundColor,
3143
3134
  width,
3144
- height,
3145
- minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3135
+ height
3146
3136
  });
3147
3137
  return /*#__PURE__*/jsx(Animated.View, {
3148
3138
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3856,7 +3846,6 @@ const Button = /*#__PURE__*/forwardRef(({
3856
3846
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3857
3847
  minWidth: "kitt.button.minWidth",
3858
3848
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3859
- minHeight: _size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3860
3849
  maxHeight: "kitt.button.maxHeight",
3861
3850
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3862
3851
  onPress: onPress,
@@ -6807,24 +6796,35 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
6807
6796
  });
6808
6797
 
6809
6798
  function DocumentPicker({
6810
- onDocumentUpload,
6811
6799
  children,
6812
6800
  disabled,
6813
- documentPickerOptions
6801
+ documentPickerOptions,
6802
+ onDocumentUpload,
6803
+ onGetDocumentAsyncError
6814
6804
  }) {
6815
6805
  const childElement = Children.only(children);
6816
6806
  return /*#__PURE__*/cloneElement(childElement, {
6817
6807
  // ensure that the press event is not prevented by Button component
6818
6808
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
6819
6809
  onPress: async () => {
6820
- var _childElement$props$o, _childElement$props, _result$assets$;
6810
+ var _childElement$props$o, _childElement$props, _result$assets;
6821
6811
  if (disabled) return;
6822
6812
  (_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
6823
- const result = await getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
6824
- multiple: false
6825
- }));
6826
- if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
6827
- onDocumentUpload(result.assets[0].file);
6813
+ let result;
6814
+ try {
6815
+ result = await getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
6816
+ multiple: false
6817
+ }));
6818
+ } catch (error) {
6819
+ onGetDocumentAsyncError === null || onGetDocumentAsyncError === void 0 || onGetDocumentAsyncError();
6820
+ result = {
6821
+ canceled: true,
6822
+ assets: null
6823
+ };
6824
+ }
6825
+ const file = (_result$assets = result.assets) === null || _result$assets === void 0 || (_result$assets = _result$assets.at(0)) === null || _result$assets === void 0 ? void 0 : _result$assets.file;
6826
+ if (!result.canceled && file) {
6827
+ onDocumentUpload(file);
6828
6828
  }
6829
6829
  },
6830
6830
  disabled
@@ -10663,10 +10663,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10663
10663
  button: {
10664
10664
  minWidth: theme.button.minWidth,
10665
10665
  maxWidth: theme.button.maxWidth,
10666
- minHeight: {
10667
- default: theme.button.minHeight.default,
10668
- medium: theme.button.minHeight.medium
10669
- },
10670
10666
  maxHeight: theme.button.maxHeight,
10671
10667
  height: {
10672
10668
  default: theme.button.height.default,
@@ -11283,7 +11279,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11283
11279
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11284
11280
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11285
11281
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11286
- 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11287
11282
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11288
11283
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11289
11284
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11307,7 +11302,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11307
11302
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11308
11303
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11309
11304
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11310
- 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11311
11305
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11312
11306
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11313
11307
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13074,7 +13068,7 @@ function StoryTitleLevel4({
13074
13068
  return /*#__PURE__*/jsx(View, {
13075
13069
  marginBottom: 10,
13076
13070
  children: /*#__PURE__*/jsx(Typography.Header4, {
13077
- base: "body-l",
13071
+ base: "heading-s",
13078
13072
  color: useStoryBlockColor(color),
13079
13073
  numberOfLines: numberOfLines,
13080
13074
  children: children
@@ -13690,7 +13684,7 @@ function ToastContent({
13690
13684
  flexGrow: 1,
13691
13685
  flexShrink: 1,
13692
13686
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13693
- base: "body-m",
13687
+ base: "heading-xs",
13694
13688
  color: "white",
13695
13689
  children: title
13696
13690
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13706,7 +13700,7 @@ function ToastContent({
13706
13700
  borderColor: "white",
13707
13701
  onPress: onPress,
13708
13702
  children: /*#__PURE__*/jsx(Typography.Text, {
13709
- base: "body-m",
13703
+ base: "heading-xs",
13710
13704
  color: "white",
13711
13705
  children: actionLabel
13712
13706
  })