@ornikar/kitt-universal 32.5.1-canary.69cd09143dd992620decf0a9f846b68e573511e3.0 → 32.5.1-canary.fa4369620bc01acac1d789322911d6bc321a3a45.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 (54) hide show
  1. package/CHANGELOG.md +14 -2
  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/native-base/KittNativeBaseProvider.d.ts +9 -3
  7. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  8. package/dist/definitions/themes/default.d.ts +5 -0
  9. package/dist/definitions/themes/default.d.ts.map +1 -1
  10. package/dist/definitions/themes/late-ocean/button.d.ts +3 -0
  11. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  12. package/dist/definitions/themes/late-ocean/picker.d.ts +0 -4
  13. package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
  14. package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
  15. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  16. package/dist/definitions/typography/Typography.d.ts +1 -1
  17. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  18. package/dist/index-metro.es.android.js +31 -18
  19. package/dist/index-metro.es.android.js.map +1 -1
  20. package/dist/index-metro.es.ios.js +31 -18
  21. package/dist/index-metro.es.ios.js.map +1 -1
  22. package/dist/index-node-22.17.cjs.js +31 -18
  23. package/dist/index-node-22.17.cjs.js.map +1 -1
  24. package/dist/index-node-22.17.cjs.web.css +4 -22
  25. package/dist/index-node-22.17.cjs.web.js +94 -92
  26. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  27. package/dist/index-node-22.17.es.mjs +31 -18
  28. package/dist/index-node-22.17.es.mjs.map +1 -1
  29. package/dist/index-node-22.17.es.web.css +4 -22
  30. package/dist/index-node-22.17.es.web.mjs +94 -92
  31. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  32. package/dist/index.es.js +31 -18
  33. package/dist/index.es.js.map +1 -1
  34. package/dist/index.es.web.js +91 -87
  35. package/dist/index.es.web.js.map +1 -1
  36. package/dist/linaria-themes-metro.es.android.js +19 -14
  37. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  38. package/dist/linaria-themes-metro.es.ios.js +19 -14
  39. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  40. package/dist/linaria-themes-node-22.17.cjs.js +19 -14
  41. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  42. package/dist/linaria-themes-node-22.17.cjs.web.js +19 -14
  43. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  44. package/dist/linaria-themes-node-22.17.es.mjs +19 -14
  45. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  46. package/dist/linaria-themes-node-22.17.es.web.mjs +19 -14
  47. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  48. package/dist/linaria-themes.es.js +19 -14
  49. package/dist/linaria-themes.es.js.map +1 -1
  50. package/dist/linaria-themes.es.web.js +19 -14
  51. package/dist/linaria-themes.es.web.js.map +1 -1
  52. package/dist/styles.css +4 -22
  53. package/dist/tsbuildinfo +1 -1
  54. package/package.json +1 -1
@@ -45,28 +45,10 @@
45
45
  transition: transform var(--content-duration) var(--content-easing);
46
46
  }
47
47
 
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 var(--overlay-duration) var(--overlay-timing-function);
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 var(--overlay-duration) var(--overlay-timing-function);
68
- }
69
-
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;}
70
52
  /* overrides :global(a) in Link styles.module.css */
71
53
  .TypographyLinkWebWrapper-module_displayUnderline__KxwMp > * {
72
54
  text-decoration: underline;
@@ -671,6 +671,10 @@ const button = {
671
671
  default: 40,
672
672
  medium: 48
673
673
  },
674
+ minHeight: {
675
+ default: 40,
676
+ medium: 48
677
+ },
674
678
  maxHeight: 48,
675
679
  icon: {
676
680
  medium: {
@@ -2125,8 +2129,8 @@ const typography = {
2125
2129
  allowedFontWeights: ['semibold']
2126
2130
  },
2127
2131
  'heading-l': {
2128
- fontSize: 40,
2129
- lineHeight: 48,
2132
+ fontSize: 38,
2133
+ lineHeight: 44,
2130
2134
  allowedFontWeights: ['semibold']
2131
2135
  },
2132
2136
  'heading-m': {
@@ -2135,14 +2139,19 @@ const typography = {
2135
2139
  allowedFontWeights: ['semibold']
2136
2140
  },
2137
2141
  'heading-s': {
2138
- fontSize: 18,
2139
- lineHeight: 20,
2140
- allowedFontWeights: ['regular', 'bold']
2142
+ fontSize: 24,
2143
+ lineHeight: 28,
2144
+ allowedFontWeights: ['semibold']
2141
2145
  },
2142
2146
  'heading-xs': {
2147
+ fontSize: 20,
2148
+ lineHeight: 24,
2149
+ allowedFontWeights: ['semibold']
2150
+ },
2151
+ 'heading-xxs': {
2143
2152
  fontSize: 16,
2144
- lineHeight: 18,
2145
- allowedFontWeights: ['regular', 'bold']
2153
+ lineHeight: 20,
2154
+ allowedFontWeights: ['semibold']
2146
2155
  }
2147
2156
  }
2148
2157
  },
@@ -2209,17 +2218,17 @@ const typography = {
2209
2218
  configs: {
2210
2219
  'label-large': {
2211
2220
  fontSize: 16,
2212
- lineHeight: 24,
2221
+ lineHeight: 20,
2213
2222
  allowedFontWeights: ['semibold']
2214
2223
  },
2215
2224
  'label-medium': {
2216
2225
  fontSize: 14,
2217
- lineHeight: 20,
2226
+ lineHeight: 18,
2218
2227
  allowedFontWeights: ['semibold']
2219
2228
  },
2220
2229
  'label-small': {
2221
2230
  fontSize: 12,
2222
- lineHeight: 16,
2231
+ lineHeight: 14,
2223
2232
  allowedFontWeights: ['semibold']
2224
2233
  }
2225
2234
  }
@@ -2280,10 +2289,6 @@ const typography = {
2280
2289
 
2281
2290
  const picker = {
2282
2291
  maxWidthFixed: 320,
2283
- animation: {
2284
- duration: 300,
2285
- timingFunction: 'ease-in-out'
2286
- },
2287
2292
  ios: {
2288
2293
  default: {
2289
2294
  fontFamily: typography.types.bodies.fontFamily.native.regular,
@@ -3141,7 +3146,9 @@ function AnimatedContainer$2({
3141
3146
  },
3142
3147
  width: width,
3143
3148
  height: height,
3149
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3144
3150
  alignSelf: "baseline",
3151
+ justifyContent: "center",
3145
3152
  borderRadius: "kitt.button.borderRadius",
3146
3153
  backgroundColor: currentBackgroundColor,
3147
3154
  children: children
@@ -3837,6 +3844,7 @@ const Button = /*#__PURE__*/forwardRef(({
3837
3844
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3838
3845
  minWidth: "kitt.button.minWidth",
3839
3846
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3847
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3840
3848
  maxHeight: "kitt.button.maxHeight",
3841
3849
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3842
3850
  onPress: onPress,
@@ -7766,23 +7774,23 @@ function FullscreenModalFooter({
7766
7774
  });
7767
7775
  }
7768
7776
 
7769
- 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"};
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"};
7770
7778
 
7771
7779
  const overlayClassNames = {
7772
- appear: styles$2['overlay-enter'],
7773
- appearActive: styles$2['overlay-enter-active'],
7774
- enter: styles$2['overlay-enter'],
7775
- enterActive: styles$2['overlay-enter-active'],
7776
- exit: styles$2['overlay-exit'],
7777
- exitActive: styles$2['overlay-exit-active']
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']
7778
7786
  };
7779
7787
  const slideInClassNames = {
7780
- appear: styles$2['content-enter'],
7781
- appearActive: styles$2['content-enter-active'],
7782
- enter: styles$2['content-enter'],
7783
- enterActive: styles$2['content-enter-active'],
7784
- exit: styles$2['content-exit'],
7785
- exitActive: styles$2['content-exit-active']
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']
7786
7794
  };
7787
7795
  function FullscreenModalAnimation({
7788
7796
  children,
@@ -9953,6 +9961,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9953
9961
  button: {
9954
9962
  minWidth: theme.button.minWidth,
9955
9963
  maxWidth: theme.button.maxWidth,
9964
+ minHeight: {
9965
+ default: theme.button.minHeight.default,
9966
+ medium: theme.button.minHeight.medium
9967
+ },
9956
9968
  maxHeight: theme.button.maxHeight,
9957
9969
  height: {
9958
9970
  default: theme.button.height.default,
@@ -10574,6 +10586,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10574
10586
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10575
10587
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10576
10588
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10589
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10577
10590
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10578
10591
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10579
10592
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10597,6 +10610,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10597
10610
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10598
10611
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10599
10612
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10613
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10600
10614
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10601
10615
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10602
10616
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -11551,8 +11565,6 @@ function PageLoader() {
11551
11565
  });
11552
11566
  }
11553
11567
 
11554
- 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"};
11555
-
11556
11568
  function getBackgroundColor({
11557
11569
  isSelected,
11558
11570
  isHighlighted,
@@ -11637,12 +11649,10 @@ function webUseSelectReducer(state, actionAndChanges, options) {
11637
11649
  }
11638
11650
  }
11639
11651
 
11640
- const pickerClassNames = {
11641
- enter: styles$1['picker-enter'],
11642
- enterActive: styles$1['picker-enter-active'],
11643
- exit: styles$1['picker-exit'],
11644
- exitActive: styles$1['picker-exit-active']
11645
- };
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";
11646
11656
  function Picker({
11647
11657
  children,
11648
11658
  renderTrigger,
@@ -11728,14 +11738,6 @@ function Picker({
11728
11738
  menuRef(currentRef);
11729
11739
  // eslint-disable-next-line react-hooks/exhaustive-deps
11730
11740
  }, []);
11731
- const theme = useTheme();
11732
- const {
11733
- animation
11734
- } = theme.kitt.picker;
11735
- const cssVariables = {
11736
- '--overlay-duration': `${animation.duration}ms`,
11737
- '--overlay-timing-function': animation.timingFunction
11738
- };
11739
11741
  return /*#__PURE__*/jsxs(Fragment, {
11740
11742
  children: [/*#__PURE__*/jsx(View, {
11741
11743
  width: "fit-content",
@@ -11780,53 +11782,53 @@ function Picker({
11780
11782
  transitionTimingFunction: 'ease-in-out'
11781
11783
  }
11782
11784
  },
11783
- children: /*#__PURE__*/jsx("div", {
11784
- style: cssVariables,
11785
- children: /*#__PURE__*/jsx(CSSTransition, {
11786
- unmountOnExit: true,
11787
- nodeRef: nodeRef,
11788
- timeout: 300,
11789
- in: isOpen,
11790
- classNames: pickerClassNames,
11791
- children: /*#__PURE__*/jsx(View, {
11792
- ref: nodeRef,
11793
- paddingY: "kitt.2",
11794
- children: childrenArray.map((child, index) => {
11795
- const currentValue = items[index];
11796
- if (currentValue === undefined) {
11797
- throw new Error(`Picker: No value found for item at index ${index}`);
11785
+ children: /*#__PURE__*/jsx(CSSTransition, {
11786
+ unmountOnExit: true,
11787
+ nodeRef: nodeRef,
11788
+ timeout: 300,
11789
+ in: isOpen,
11790
+ classNames: {
11791
+ enter,
11792
+ enterActive,
11793
+ exit,
11794
+ exitActive
11795
+ },
11796
+ children: /*#__PURE__*/jsx(View, {
11797
+ ref: nodeRef,
11798
+ paddingY: "kitt.2",
11799
+ children: childrenArray.map((child, index) => {
11800
+ const currentValue = items[index];
11801
+ if (currentValue === undefined) throw new Error(`Picker: No value found for item at index ${index}`);
11802
+ const {
11803
+ onClick,
11804
+ 'aria-selected': ariaSelected,
11805
+ ...itemProps
11806
+ } = getItemProps({
11807
+ item: currentValue,
11808
+ index,
11809
+ disabled
11810
+ });
11811
+ return /*#__PURE__*/jsx(Pressable, {
11812
+ ...itemProps,
11813
+ accessibilityState: {
11814
+ selected: ariaSelected
11815
+ },
11816
+ onPress: onClick,
11817
+ children: ({
11818
+ isHovered,
11819
+ isFocused,
11820
+ isPressed
11821
+ }) => {
11822
+ return /*#__PURE__*/jsx(PickerItem, {
11823
+ isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11824
+ isHighlighted: highlightedIndex === index,
11825
+ isHovered: isHovered,
11826
+ isFocused: isFocused,
11827
+ isPressed: isPressed,
11828
+ children: child
11829
+ });
11798
11830
  }
11799
- const {
11800
- onClick,
11801
- 'aria-selected': ariaSelected,
11802
- ...itemProps
11803
- } = getItemProps({
11804
- item: currentValue,
11805
- index,
11806
- disabled
11807
- });
11808
- return /*#__PURE__*/jsx(Pressable, {
11809
- ...itemProps,
11810
- accessibilityState: {
11811
- selected: ariaSelected
11812
- },
11813
- onPress: onClick,
11814
- children: ({
11815
- isHovered,
11816
- isFocused,
11817
- isPressed
11818
- }) => {
11819
- return /*#__PURE__*/jsx(PickerItem, {
11820
- isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11821
- isHighlighted: highlightedIndex === index,
11822
- isHovered: isHovered,
11823
- isFocused: isFocused,
11824
- isPressed: isPressed,
11825
- children: child
11826
- });
11827
- }
11828
- }, itemProps.id);
11829
- })
11831
+ }, itemProps.id);
11830
11832
  })
11831
11833
  })
11832
11834
  })
@@ -12436,7 +12438,7 @@ function StoryTitleLevel4({
12436
12438
  return /*#__PURE__*/jsx(View, {
12437
12439
  marginBottom: 10,
12438
12440
  children: /*#__PURE__*/jsx(Typography.Header4, {
12439
- base: "heading-s",
12441
+ base: "body-l",
12440
12442
  color: useStoryBlockColor(color),
12441
12443
  numberOfLines: numberOfLines,
12442
12444
  children: children
@@ -12985,7 +12987,7 @@ function ToastContent({
12985
12987
  flexGrow: 1,
12986
12988
  flexShrink: 1,
12987
12989
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
12988
- base: "heading-xs",
12990
+ base: "body-m",
12989
12991
  color: "white",
12990
12992
  children: title
12991
12993
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13001,7 +13003,7 @@ function ToastContent({
13001
13003
  borderColor: "white",
13002
13004
  onPress: onPress,
13003
13005
  children: /*#__PURE__*/jsx(Typography.Text, {
13004
- base: "heading-xs",
13006
+ base: "body-m",
13005
13007
  color: "white",
13006
13008
  children: actionLabel
13007
13009
  })