@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
@@ -689,10 +689,6 @@ var button = {
689
689
  "default": 40,
690
690
  medium: 48
691
691
  },
692
- minHeight: {
693
- "default": 40,
694
- medium: 48
695
- },
696
692
  maxHeight: 48,
697
693
  icon: {
698
694
  medium: {
@@ -2147,8 +2143,8 @@ var typography = {
2147
2143
  allowedFontWeights: ['semibold']
2148
2144
  },
2149
2145
  'heading-l': {
2150
- fontSize: 38,
2151
- lineHeight: 44,
2146
+ fontSize: 40,
2147
+ lineHeight: 48,
2152
2148
  allowedFontWeights: ['semibold']
2153
2149
  },
2154
2150
  'heading-m': {
@@ -2157,19 +2153,14 @@ var typography = {
2157
2153
  allowedFontWeights: ['semibold']
2158
2154
  },
2159
2155
  'heading-s': {
2160
- fontSize: 24,
2161
- lineHeight: 28,
2162
- allowedFontWeights: ['semibold']
2156
+ fontSize: 18,
2157
+ lineHeight: 20,
2158
+ allowedFontWeights: ['regular', 'bold']
2163
2159
  },
2164
2160
  'heading-xs': {
2165
- fontSize: 20,
2166
- lineHeight: 24,
2167
- allowedFontWeights: ['semibold']
2168
- },
2169
- 'heading-xxs': {
2170
2161
  fontSize: 16,
2171
- lineHeight: 20,
2172
- allowedFontWeights: ['semibold']
2162
+ lineHeight: 18,
2163
+ allowedFontWeights: ['regular', 'bold']
2173
2164
  }
2174
2165
  }
2175
2166
  },
@@ -2236,17 +2227,17 @@ var typography = {
2236
2227
  configs: {
2237
2228
  'label-large': {
2238
2229
  fontSize: 16,
2239
- lineHeight: 20,
2230
+ lineHeight: 24,
2240
2231
  allowedFontWeights: ['semibold']
2241
2232
  },
2242
2233
  'label-medium': {
2243
2234
  fontSize: 14,
2244
- lineHeight: 18,
2235
+ lineHeight: 20,
2245
2236
  allowedFontWeights: ['semibold']
2246
2237
  },
2247
2238
  'label-small': {
2248
2239
  fontSize: 12,
2249
- lineHeight: 14,
2240
+ lineHeight: 16,
2250
2241
  allowedFontWeights: ['semibold']
2251
2242
  }
2252
2243
  }
@@ -3167,9 +3158,7 @@ function AnimatedContainer$2(_ref) {
3167
3158
  },
3168
3159
  width: width,
3169
3160
  height: height,
3170
- minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3171
3161
  alignSelf: "baseline",
3172
- justifyContent: "center",
3173
3162
  borderRadius: "kitt.button.borderRadius",
3174
3163
  backgroundColor: currentBackgroundColor,
3175
3164
  children: children
@@ -3868,7 +3857,6 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
3868
3857
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3869
3858
  minWidth: "kitt.button.minWidth",
3870
3859
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3871
- minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3872
3860
  maxHeight: "kitt.button.maxHeight",
3873
3861
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3874
3862
  onPress: onPress,
@@ -6384,15 +6372,16 @@ var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
6384
6372
  });
6385
6373
 
6386
6374
  function DocumentPicker(_ref) {
6387
- var onDocumentUpload = _ref.onDocumentUpload,
6388
- children = _ref.children,
6375
+ var children = _ref.children,
6389
6376
  disabled = _ref.disabled,
6390
- documentPickerOptions = _ref.documentPickerOptions;
6377
+ documentPickerOptions = _ref.documentPickerOptions,
6378
+ onDocumentUpload = _ref.onDocumentUpload,
6379
+ onGetDocumentAsyncError = _ref.onGetDocumentAsyncError;
6391
6380
  var childElement = Children.only(children);
6392
6381
  var handlePickDocument = /*#__PURE__*/function () {
6393
6382
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6394
- var _childElement$props$o, _childElement$props, _result$assets$;
6395
- var result;
6383
+ var _childElement$props$o, _childElement$props, _result$assets;
6384
+ var result, file;
6396
6385
  return _regeneratorRuntime().wrap(function (_context) {
6397
6386
  while (1) switch (_context.prev = _context.next) {
6398
6387
  case 0:
@@ -6403,20 +6392,33 @@ function DocumentPicker(_ref) {
6403
6392
  return _context.abrupt("return");
6404
6393
  case 2:
6405
6394
  (_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
6406
- _context.next = 5;
6395
+ _context.prev = 3;
6396
+ _context.next = 6;
6407
6397
  return getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
6408
6398
  multiple: false
6409
6399
  }));
6410
- case 5:
6400
+ case 6:
6411
6401
  result = _context.sent;
6412
- if (!result.canceled && (_result$assets$ = result.assets[0]) !== null && _result$assets$ !== void 0 && _result$assets$.file) {
6413
- onDocumentUpload(result.assets[0].file);
6402
+ _context.next = 13;
6403
+ break;
6404
+ case 9:
6405
+ _context.prev = 9;
6406
+ _context.t0 = _context["catch"](3);
6407
+ onGetDocumentAsyncError === null || onGetDocumentAsyncError === void 0 || onGetDocumentAsyncError();
6408
+ result = {
6409
+ canceled: true,
6410
+ assets: null
6411
+ };
6412
+ case 13:
6413
+ 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;
6414
+ if (!result.canceled && file) {
6415
+ onDocumentUpload(file);
6414
6416
  }
6415
- case 7:
6417
+ case 15:
6416
6418
  case "end":
6417
6419
  return _context.stop();
6418
6420
  }
6419
- }, _callee);
6421
+ }, _callee, null, [[3, 9]]);
6420
6422
  }));
6421
6423
  return function () {
6422
6424
  return _ref2.apply(this, arguments);
@@ -7962,24 +7964,24 @@ function FullscreenModalFooter(_ref) {
7962
7964
  }));
7963
7965
  }
7964
7966
 
7965
- var styles$1 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
7967
+ var styles$2 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
7966
7968
 
7967
7969
  var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
7968
7970
  var overlayClassNames = {
7969
- appear: styles$1['overlay-enter'],
7970
- appearActive: styles$1['overlay-enter-active'],
7971
- enter: styles$1['overlay-enter'],
7972
- enterActive: styles$1['overlay-enter-active'],
7973
- exit: styles$1['overlay-exit'],
7974
- exitActive: styles$1['overlay-exit-active']
7971
+ appear: styles$2['overlay-enter'],
7972
+ appearActive: styles$2['overlay-enter-active'],
7973
+ enter: styles$2['overlay-enter'],
7974
+ enterActive: styles$2['overlay-enter-active'],
7975
+ exit: styles$2['overlay-exit'],
7976
+ exitActive: styles$2['overlay-exit-active']
7975
7977
  };
7976
7978
  var slideInClassNames = {
7977
- appear: styles$1['content-enter'],
7978
- appearActive: styles$1['content-enter-active'],
7979
- enter: styles$1['content-enter'],
7980
- enterActive: styles$1['content-enter-active'],
7981
- exit: styles$1['content-exit'],
7982
- exitActive: styles$1['content-exit-active']
7979
+ appear: styles$2['content-enter'],
7980
+ appearActive: styles$2['content-enter-active'],
7981
+ enter: styles$2['content-enter'],
7982
+ enterActive: styles$2['content-enter-active'],
7983
+ exit: styles$2['content-exit'],
7984
+ exitActive: styles$2['content-exit-active']
7983
7985
  };
7984
7986
  function FullscreenModalAnimation(_ref) {
7985
7987
  var children = _ref.children,
@@ -10154,10 +10156,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10154
10156
  button: {
10155
10157
  minWidth: theme.button.minWidth,
10156
10158
  maxWidth: theme.button.maxWidth,
10157
- minHeight: {
10158
- "default": theme.button.minHeight["default"],
10159
- medium: theme.button.minHeight.medium
10160
- },
10161
10159
  maxHeight: theme.button.maxHeight,
10162
10160
  height: {
10163
10161
  "default": theme.button.height["default"],
@@ -10774,7 +10772,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10774
10772
  'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].fontSize, "px"),
10775
10773
  'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].fontSize, "px"),
10776
10774
  'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].fontSize, "px"),
10777
- 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].fontSize, "px"),
10778
10775
  'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].fontSize, "px"),
10779
10776
  'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].fontSize, "px"),
10780
10777
  'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].fontSize, "px"),
@@ -10798,7 +10795,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10798
10795
  'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].lineHeight, "px"),
10799
10796
  'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].lineHeight, "px"),
10800
10797
  'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].lineHeight, "px"),
10801
- 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].lineHeight, "px"),
10802
10798
  'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].lineHeight, "px"),
10803
10799
  'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].lineHeight, "px"),
10804
10800
  'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].lineHeight, "px"),
@@ -11748,6 +11744,8 @@ function PageLoader() {
11748
11744
  });
11749
11745
  }
11750
11746
 
11747
+ var styles$1 = {"picker-enter":"Picker-module_picker-enter__Dzs-s","picker-enter-active":"Picker-module_picker-enter-active__0hxR5","picker-exit":"Picker-module_picker-exit__Z1BjM","picker-exit-active":"Picker-module_picker-exit-active__x2C8Q"};
11748
+
11751
11749
  function getBackgroundColor(_ref) {
11752
11750
  var isSelected = _ref.isSelected,
11753
11751
  isHighlighted = _ref.isHighlighted,
@@ -11829,10 +11827,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
11829
11827
  var _excluded$9 = ["onClick"],
11830
11828
  _excluded2$2 = ["ref"],
11831
11829
  _excluded3$2 = ["onClick", "aria-selected"];
11832
- var enter = "kitt-u_enter_ereraf";
11833
- var enterActive = "kitt-u_enterActive_e1jmsjrm";
11834
- var exit = "kitt-u_exit_e1mwnccz";
11835
- var exitActive = "kitt-u_exitActive_e1004d1h";
11830
+ var pickerClassNames = {
11831
+ enter: styles$1['picker-enter'],
11832
+ enterActive: styles$1['picker-enter-active'],
11833
+ exit: styles$1['picker-exit'],
11834
+ exitActive: styles$1['picker-exit-active']
11835
+ };
11836
11836
  function Picker(_ref) {
11837
11837
  var _refs$reference$curre;
11838
11838
  var children = _ref.children,
@@ -11967,18 +11967,15 @@ function Picker(_ref) {
11967
11967
  nodeRef: nodeRef,
11968
11968
  timeout: 300,
11969
11969
  "in": isOpen,
11970
- classNames: {
11971
- enter: enter,
11972
- enterActive: enterActive,
11973
- exit: exit,
11974
- exitActive: exitActive
11975
- },
11970
+ classNames: pickerClassNames,
11976
11971
  children: /*#__PURE__*/jsx(View, {
11977
11972
  ref: nodeRef,
11978
11973
  paddingY: "kitt.2",
11979
11974
  children: childrenArray.map(function (child, index) {
11980
11975
  var currentValue = items[index];
11981
- if (currentValue === undefined) throw new Error("Picker: No value found for item at index ".concat(index));
11976
+ if (currentValue === undefined) {
11977
+ throw new Error("Picker: No value found for item at index ".concat(index));
11978
+ }
11982
11979
  var _getItemProps = getItemProps({
11983
11980
  item: currentValue,
11984
11981
  index: index,
@@ -12629,7 +12626,7 @@ function StoryTitleLevel4(_ref4) {
12629
12626
  return /*#__PURE__*/jsx(View, {
12630
12627
  marginBottom: 10,
12631
12628
  children: /*#__PURE__*/jsx(Typography.Header4, {
12632
- base: "body-l",
12629
+ base: "heading-s",
12633
12630
  color: useStoryBlockColor(color),
12634
12631
  numberOfLines: numberOfLines,
12635
12632
  children: children
@@ -13182,7 +13179,7 @@ function ToastContent(_ref) {
13182
13179
  flexGrow: 1,
13183
13180
  flexShrink: 1,
13184
13181
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13185
- base: "body-m",
13182
+ base: "heading-xs",
13186
13183
  color: "white",
13187
13184
  children: title
13188
13185
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13198,7 +13195,7 @@ function ToastContent(_ref) {
13198
13195
  borderColor: "white",
13199
13196
  onPress: onPress,
13200
13197
  children: /*#__PURE__*/jsx(Typography.Text, {
13201
- base: "body-m",
13198
+ base: "heading-xs",
13202
13199
  color: "white",
13203
13200
  children: actionLabel
13204
13201
  })