@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
@@ -45,10 +45,28 @@
45
45
  transition: transform var(--content-duration) var(--content-easing);
46
46
  }
47
47
 
48
- .kitt-u_enter_ereraf{-webkit-transform:translateY(8px);-ms-transform:translateY(8px);transform:translateY(8px);opacity:0;}
49
- .kitt-u_enterActive_e1jmsjrm{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out;}
50
- .kitt-u_exit_e1mwnccz{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;}
51
- .kitt-u_exitActive_e1004d1h{-webkit-transform:translateY(8px);-ms-transform:translateY(8px);transform:translateY(8px);opacity:0;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out;}
48
+ .Picker-module_picker-enter__Dzs-s {
49
+ transform: translateY(8px);
50
+ opacity: 0;
51
+ }
52
+
53
+ .Picker-module_picker-enter-active__0hxR5 {
54
+ transform: translateY(0);
55
+ opacity: 1;
56
+ transition: all 300ms ease-in-out;
57
+ }
58
+
59
+ .Picker-module_picker-exit__Z1BjM {
60
+ transform: translateY(0);
61
+ opacity: 1;
62
+ }
63
+
64
+ .Picker-module_picker-exit-active__x2C8Q {
65
+ transform: translateY(8px);
66
+ opacity: 0;
67
+ transition: all 300ms ease-in-out;
68
+ }
69
+
52
70
  /* overrides :global(a) in Link styles.module.css */
53
71
  .TypographyLinkWebWrapper-module_displayUnderline__KxwMp > * {
54
72
  text-decoration: underline;
@@ -671,10 +671,6 @@ const button = {
671
671
  default: 40,
672
672
  medium: 48
673
673
  },
674
- minHeight: {
675
- default: 40,
676
- medium: 48
677
- },
678
674
  maxHeight: 48,
679
675
  icon: {
680
676
  medium: {
@@ -2129,8 +2125,8 @@ const typography = {
2129
2125
  allowedFontWeights: ['semibold']
2130
2126
  },
2131
2127
  'heading-l': {
2132
- fontSize: 38,
2133
- lineHeight: 44,
2128
+ fontSize: 40,
2129
+ lineHeight: 48,
2134
2130
  allowedFontWeights: ['semibold']
2135
2131
  },
2136
2132
  'heading-m': {
@@ -2139,19 +2135,14 @@ const typography = {
2139
2135
  allowedFontWeights: ['semibold']
2140
2136
  },
2141
2137
  'heading-s': {
2142
- fontSize: 24,
2143
- lineHeight: 28,
2144
- allowedFontWeights: ['semibold']
2138
+ fontSize: 18,
2139
+ lineHeight: 20,
2140
+ allowedFontWeights: ['regular', 'bold']
2145
2141
  },
2146
2142
  'heading-xs': {
2147
- fontSize: 20,
2148
- lineHeight: 24,
2149
- allowedFontWeights: ['semibold']
2150
- },
2151
- 'heading-xxs': {
2152
2143
  fontSize: 16,
2153
- lineHeight: 20,
2154
- allowedFontWeights: ['semibold']
2144
+ lineHeight: 18,
2145
+ allowedFontWeights: ['regular', 'bold']
2155
2146
  }
2156
2147
  }
2157
2148
  },
@@ -2218,17 +2209,17 @@ const typography = {
2218
2209
  configs: {
2219
2210
  'label-large': {
2220
2211
  fontSize: 16,
2221
- lineHeight: 20,
2212
+ lineHeight: 24,
2222
2213
  allowedFontWeights: ['semibold']
2223
2214
  },
2224
2215
  'label-medium': {
2225
2216
  fontSize: 14,
2226
- lineHeight: 18,
2217
+ lineHeight: 20,
2227
2218
  allowedFontWeights: ['semibold']
2228
2219
  },
2229
2220
  'label-small': {
2230
2221
  fontSize: 12,
2231
- lineHeight: 14,
2222
+ lineHeight: 16,
2232
2223
  allowedFontWeights: ['semibold']
2233
2224
  }
2234
2225
  }
@@ -3146,9 +3137,7 @@ function AnimatedContainer$2({
3146
3137
  },
3147
3138
  width: width,
3148
3139
  height: height,
3149
- minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3150
3140
  alignSelf: "baseline",
3151
- justifyContent: "center",
3152
3141
  borderRadius: "kitt.button.borderRadius",
3153
3142
  backgroundColor: currentBackgroundColor,
3154
3143
  children: children
@@ -3844,7 +3833,6 @@ const Button = /*#__PURE__*/forwardRef(({
3844
3833
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3845
3834
  minWidth: "kitt.button.minWidth",
3846
3835
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3847
- minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3848
3836
  maxHeight: "kitt.button.maxHeight",
3849
3837
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3850
3838
  onPress: onPress,
@@ -6317,10 +6305,11 @@ const DatePicker = /*#__PURE__*/forwardRef(({
6317
6305
  });
6318
6306
 
6319
6307
  function DocumentPicker({
6320
- onDocumentUpload,
6321
6308
  children,
6322
6309
  disabled,
6323
- documentPickerOptions
6310
+ documentPickerOptions,
6311
+ onDocumentUpload,
6312
+ onGetDocumentAsyncError
6324
6313
  }) {
6325
6314
  const childElement = Children.only(children);
6326
6315
  return /*#__PURE__*/cloneElement(childElement, {
@@ -6329,12 +6318,22 @@ function DocumentPicker({
6329
6318
  onPress: async () => {
6330
6319
  if (disabled) return;
6331
6320
  childElement.props.onPress?.();
6332
- const result = await getDocumentAsync({
6333
- ...documentPickerOptions,
6334
- multiple: false
6335
- });
6336
- if (!result.canceled && result.assets[0]?.file) {
6337
- onDocumentUpload(result.assets[0].file);
6321
+ let result;
6322
+ try {
6323
+ result = await getDocumentAsync({
6324
+ ...documentPickerOptions,
6325
+ multiple: false
6326
+ });
6327
+ } catch (error) {
6328
+ onGetDocumentAsyncError?.();
6329
+ result = {
6330
+ canceled: true,
6331
+ assets: null
6332
+ };
6333
+ }
6334
+ const file = result.assets?.at(0)?.file;
6335
+ if (!result.canceled && file) {
6336
+ onDocumentUpload(file);
6338
6337
  }
6339
6338
  },
6340
6339
  disabled
@@ -7774,23 +7773,23 @@ function FullscreenModalFooter({
7774
7773
  });
7775
7774
  }
7776
7775
 
7777
- const 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"};
7776
+ const 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"};
7778
7777
 
7779
7778
  const overlayClassNames = {
7780
- appear: styles$1['overlay-enter'],
7781
- appearActive: styles$1['overlay-enter-active'],
7782
- enter: styles$1['overlay-enter'],
7783
- enterActive: styles$1['overlay-enter-active'],
7784
- exit: styles$1['overlay-exit'],
7785
- exitActive: styles$1['overlay-exit-active']
7779
+ appear: styles$2['overlay-enter'],
7780
+ appearActive: styles$2['overlay-enter-active'],
7781
+ enter: styles$2['overlay-enter'],
7782
+ enterActive: styles$2['overlay-enter-active'],
7783
+ exit: styles$2['overlay-exit'],
7784
+ exitActive: styles$2['overlay-exit-active']
7786
7785
  };
7787
7786
  const slideInClassNames = {
7788
- appear: styles$1['content-enter'],
7789
- appearActive: styles$1['content-enter-active'],
7790
- enter: styles$1['content-enter'],
7791
- enterActive: styles$1['content-enter-active'],
7792
- exit: styles$1['content-exit'],
7793
- exitActive: styles$1['content-exit-active']
7787
+ appear: styles$2['content-enter'],
7788
+ appearActive: styles$2['content-enter-active'],
7789
+ enter: styles$2['content-enter'],
7790
+ enterActive: styles$2['content-enter-active'],
7791
+ exit: styles$2['content-exit'],
7792
+ exitActive: styles$2['content-exit-active']
7794
7793
  };
7795
7794
  function FullscreenModalAnimation({
7796
7795
  children,
@@ -9961,10 +9960,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9961
9960
  button: {
9962
9961
  minWidth: theme.button.minWidth,
9963
9962
  maxWidth: theme.button.maxWidth,
9964
- minHeight: {
9965
- default: theme.button.minHeight.default,
9966
- medium: theme.button.minHeight.medium
9967
- },
9968
9963
  maxHeight: theme.button.maxHeight,
9969
9964
  height: {
9970
9965
  default: theme.button.height.default,
@@ -10586,7 +10581,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10586
10581
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10587
10582
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10588
10583
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10589
- 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10590
10584
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10591
10585
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10592
10586
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10610,7 +10604,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10610
10604
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10611
10605
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10612
10606
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10613
- 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10614
10607
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10615
10608
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10616
10609
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -11565,6 +11558,8 @@ function PageLoader() {
11565
11558
  });
11566
11559
  }
11567
11560
 
11561
+ const 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"};
11562
+
11568
11563
  function getBackgroundColor({
11569
11564
  isSelected,
11570
11565
  isHighlighted,
@@ -11649,10 +11644,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
11649
11644
  }
11650
11645
  }
11651
11646
 
11652
- const enter = "kitt-u_enter_ereraf";
11653
- const enterActive = "kitt-u_enterActive_e1jmsjrm";
11654
- const exit = "kitt-u_exit_e1mwnccz";
11655
- const exitActive = "kitt-u_exitActive_e1004d1h";
11647
+ const pickerClassNames = {
11648
+ enter: styles$1['picker-enter'],
11649
+ enterActive: styles$1['picker-enter-active'],
11650
+ exit: styles$1['picker-exit'],
11651
+ exitActive: styles$1['picker-exit-active']
11652
+ };
11656
11653
  function Picker({
11657
11654
  children,
11658
11655
  renderTrigger,
@@ -11787,18 +11784,15 @@ function Picker({
11787
11784
  nodeRef: nodeRef,
11788
11785
  timeout: 300,
11789
11786
  in: isOpen,
11790
- classNames: {
11791
- enter,
11792
- enterActive,
11793
- exit,
11794
- exitActive
11795
- },
11787
+ classNames: pickerClassNames,
11796
11788
  children: /*#__PURE__*/jsx(View, {
11797
11789
  ref: nodeRef,
11798
11790
  paddingY: "kitt.2",
11799
11791
  children: childrenArray.map((child, index) => {
11800
11792
  const currentValue = items[index];
11801
- if (currentValue === undefined) throw new Error(`Picker: No value found for item at index ${index}`);
11793
+ if (currentValue === undefined) {
11794
+ throw new Error(`Picker: No value found for item at index ${index}`);
11795
+ }
11802
11796
  const {
11803
11797
  onClick,
11804
11798
  'aria-selected': ariaSelected,
@@ -12438,7 +12432,7 @@ function StoryTitleLevel4({
12438
12432
  return /*#__PURE__*/jsx(View, {
12439
12433
  marginBottom: 10,
12440
12434
  children: /*#__PURE__*/jsx(Typography.Header4, {
12441
- base: "body-l",
12435
+ base: "heading-s",
12442
12436
  color: useStoryBlockColor(color),
12443
12437
  numberOfLines: numberOfLines,
12444
12438
  children: children
@@ -12987,7 +12981,7 @@ function ToastContent({
12987
12981
  flexGrow: 1,
12988
12982
  flexShrink: 1,
12989
12983
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
12990
- base: "body-m",
12984
+ base: "heading-xs",
12991
12985
  color: "white",
12992
12986
  children: title
12993
12987
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13003,7 +12997,7 @@ function ToastContent({
13003
12997
  borderColor: "white",
13004
12998
  onPress: onPress,
13005
12999
  children: /*#__PURE__*/jsx(Typography.Text, {
13006
- base: "body-m",
13000
+ base: "heading-xs",
13007
13001
  color: "white",
13008
13002
  children: actionLabel
13009
13003
  })