@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;
@@ -680,6 +680,10 @@ const button = {
680
680
  default: 40,
681
681
  medium: 48
682
682
  },
683
+ minHeight: {
684
+ default: 40,
685
+ medium: 48
686
+ },
683
687
  maxHeight: 48,
684
688
  icon: {
685
689
  medium: {
@@ -2134,8 +2138,8 @@ const typography = {
2134
2138
  allowedFontWeights: ['semibold']
2135
2139
  },
2136
2140
  'heading-l': {
2137
- fontSize: 40,
2138
- lineHeight: 48,
2141
+ fontSize: 38,
2142
+ lineHeight: 44,
2139
2143
  allowedFontWeights: ['semibold']
2140
2144
  },
2141
2145
  'heading-m': {
@@ -2144,14 +2148,19 @@ const typography = {
2144
2148
  allowedFontWeights: ['semibold']
2145
2149
  },
2146
2150
  'heading-s': {
2147
- fontSize: 18,
2148
- lineHeight: 20,
2149
- allowedFontWeights: ['regular', 'bold']
2151
+ fontSize: 24,
2152
+ lineHeight: 28,
2153
+ allowedFontWeights: ['semibold']
2150
2154
  },
2151
2155
  'heading-xs': {
2156
+ fontSize: 20,
2157
+ lineHeight: 24,
2158
+ allowedFontWeights: ['semibold']
2159
+ },
2160
+ 'heading-xxs': {
2152
2161
  fontSize: 16,
2153
- lineHeight: 18,
2154
- allowedFontWeights: ['regular', 'bold']
2162
+ lineHeight: 20,
2163
+ allowedFontWeights: ['semibold']
2155
2164
  }
2156
2165
  }
2157
2166
  },
@@ -2218,17 +2227,17 @@ const typography = {
2218
2227
  configs: {
2219
2228
  'label-large': {
2220
2229
  fontSize: 16,
2221
- lineHeight: 24,
2230
+ lineHeight: 20,
2222
2231
  allowedFontWeights: ['semibold']
2223
2232
  },
2224
2233
  'label-medium': {
2225
2234
  fontSize: 14,
2226
- lineHeight: 20,
2235
+ lineHeight: 18,
2227
2236
  allowedFontWeights: ['semibold']
2228
2237
  },
2229
2238
  'label-small': {
2230
2239
  fontSize: 12,
2231
- lineHeight: 16,
2240
+ lineHeight: 14,
2232
2241
  allowedFontWeights: ['semibold']
2233
2242
  }
2234
2243
  }
@@ -2289,10 +2298,6 @@ const typography = {
2289
2298
 
2290
2299
  const picker = {
2291
2300
  maxWidthFixed: 320,
2292
- animation: {
2293
- duration: 300,
2294
- timingFunction: 'ease-in-out'
2295
- },
2296
2301
  ios: {
2297
2302
  default: {
2298
2303
  fontFamily: typography.types.bodies.fontFamily.native.regular,
@@ -3150,7 +3155,9 @@ function AnimatedContainer$2({
3150
3155
  },
3151
3156
  width: width,
3152
3157
  height: height,
3158
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3153
3159
  alignSelf: "baseline",
3160
+ justifyContent: "center",
3154
3161
  borderRadius: "kitt.button.borderRadius",
3155
3162
  backgroundColor: currentBackgroundColor,
3156
3163
  children: children
@@ -3846,6 +3853,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
3846
3853
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3847
3854
  minWidth: "kitt.button.minWidth",
3848
3855
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3856
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3849
3857
  maxHeight: "kitt.button.maxHeight",
3850
3858
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3851
3859
  onPress: onPress,
@@ -7775,23 +7783,23 @@ function FullscreenModalFooter({
7775
7783
  });
7776
7784
  }
7777
7785
 
7778
- 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"};
7786
+ 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"};
7779
7787
 
7780
7788
  const overlayClassNames = {
7781
- appear: styles$2['overlay-enter'],
7782
- appearActive: styles$2['overlay-enter-active'],
7783
- enter: styles$2['overlay-enter'],
7784
- enterActive: styles$2['overlay-enter-active'],
7785
- exit: styles$2['overlay-exit'],
7786
- exitActive: styles$2['overlay-exit-active']
7789
+ appear: styles$1['overlay-enter'],
7790
+ appearActive: styles$1['overlay-enter-active'],
7791
+ enter: styles$1['overlay-enter'],
7792
+ enterActive: styles$1['overlay-enter-active'],
7793
+ exit: styles$1['overlay-exit'],
7794
+ exitActive: styles$1['overlay-exit-active']
7787
7795
  };
7788
7796
  const slideInClassNames = {
7789
- appear: styles$2['content-enter'],
7790
- appearActive: styles$2['content-enter-active'],
7791
- enter: styles$2['content-enter'],
7792
- enterActive: styles$2['content-enter-active'],
7793
- exit: styles$2['content-exit'],
7794
- exitActive: styles$2['content-exit-active']
7797
+ appear: styles$1['content-enter'],
7798
+ appearActive: styles$1['content-enter-active'],
7799
+ enter: styles$1['content-enter'],
7800
+ enterActive: styles$1['content-enter-active'],
7801
+ exit: styles$1['content-exit'],
7802
+ exitActive: styles$1['content-exit-active']
7795
7803
  };
7796
7804
  function FullscreenModalAnimation({
7797
7805
  children,
@@ -9962,6 +9970,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9962
9970
  button: {
9963
9971
  minWidth: theme.button.minWidth,
9964
9972
  maxWidth: theme.button.maxWidth,
9973
+ minHeight: {
9974
+ default: theme.button.minHeight.default,
9975
+ medium: theme.button.minHeight.medium
9976
+ },
9965
9977
  maxHeight: theme.button.maxHeight,
9966
9978
  height: {
9967
9979
  default: theme.button.height.default,
@@ -10583,6 +10595,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10583
10595
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10584
10596
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10585
10597
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10598
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10586
10599
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10587
10600
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10588
10601
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10606,6 +10619,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10606
10619
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10607
10620
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10608
10621
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10622
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10609
10623
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10610
10624
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10611
10625
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -11560,8 +11574,6 @@ function PageLoader() {
11560
11574
  });
11561
11575
  }
11562
11576
 
11563
- 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"};
11564
-
11565
11577
  function getBackgroundColor({
11566
11578
  isSelected,
11567
11579
  isHighlighted,
@@ -11646,12 +11658,10 @@ function webUseSelectReducer(state, actionAndChanges, options) {
11646
11658
  }
11647
11659
  }
11648
11660
 
11649
- const pickerClassNames = {
11650
- enter: styles$1['picker-enter'],
11651
- enterActive: styles$1['picker-enter-active'],
11652
- exit: styles$1['picker-exit'],
11653
- exitActive: styles$1['picker-exit-active']
11654
- };
11661
+ const enter = "kitt-u_enter_ereraf";
11662
+ const enterActive = "kitt-u_enterActive_e1jmsjrm";
11663
+ const exit = "kitt-u_exit_e1mwnccz";
11664
+ const exitActive = "kitt-u_exitActive_e1004d1h";
11655
11665
  function Picker({
11656
11666
  children,
11657
11667
  renderTrigger,
@@ -11737,14 +11747,6 @@ function Picker({
11737
11747
  menuRef(currentRef);
11738
11748
  // eslint-disable-next-line react-hooks/exhaustive-deps
11739
11749
  }, []);
11740
- const theme = useTheme();
11741
- const {
11742
- animation
11743
- } = theme.kitt.picker;
11744
- const cssVariables = {
11745
- '--overlay-duration': `${animation.duration}ms`,
11746
- '--overlay-timing-function': animation.timingFunction
11747
- };
11748
11750
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11749
11751
  children: [/*#__PURE__*/jsxRuntime.jsx(View, {
11750
11752
  width: "fit-content",
@@ -11789,53 +11791,53 @@ function Picker({
11789
11791
  transitionTimingFunction: 'ease-in-out'
11790
11792
  }
11791
11793
  },
11792
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
11793
- style: cssVariables,
11794
- children: /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
11795
- unmountOnExit: true,
11796
- nodeRef: nodeRef,
11797
- timeout: 300,
11798
- in: isOpen,
11799
- classNames: pickerClassNames,
11800
- children: /*#__PURE__*/jsxRuntime.jsx(View, {
11801
- ref: nodeRef,
11802
- paddingY: "kitt.2",
11803
- children: childrenArray.map((child, index) => {
11804
- const currentValue = items[index];
11805
- if (currentValue === undefined) {
11806
- throw new Error(`Picker: No value found for item at index ${index}`);
11794
+ children: /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
11795
+ unmountOnExit: true,
11796
+ nodeRef: nodeRef,
11797
+ timeout: 300,
11798
+ in: isOpen,
11799
+ classNames: {
11800
+ enter,
11801
+ enterActive,
11802
+ exit,
11803
+ exitActive
11804
+ },
11805
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
11806
+ ref: nodeRef,
11807
+ paddingY: "kitt.2",
11808
+ children: childrenArray.map((child, index) => {
11809
+ const currentValue = items[index];
11810
+ if (currentValue === undefined) throw new Error(`Picker: No value found for item at index ${index}`);
11811
+ const {
11812
+ onClick,
11813
+ 'aria-selected': ariaSelected,
11814
+ ...itemProps
11815
+ } = getItemProps({
11816
+ item: currentValue,
11817
+ index,
11818
+ disabled
11819
+ });
11820
+ return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
11821
+ ...itemProps,
11822
+ accessibilityState: {
11823
+ selected: ariaSelected
11824
+ },
11825
+ onPress: onClick,
11826
+ children: ({
11827
+ isHovered,
11828
+ isFocused,
11829
+ isPressed
11830
+ }) => {
11831
+ return /*#__PURE__*/jsxRuntime.jsx(PickerItem, {
11832
+ isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11833
+ isHighlighted: highlightedIndex === index,
11834
+ isHovered: isHovered,
11835
+ isFocused: isFocused,
11836
+ isPressed: isPressed,
11837
+ children: child
11838
+ });
11807
11839
  }
11808
- const {
11809
- onClick,
11810
- 'aria-selected': ariaSelected,
11811
- ...itemProps
11812
- } = getItemProps({
11813
- item: currentValue,
11814
- index,
11815
- disabled
11816
- });
11817
- return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
11818
- ...itemProps,
11819
- accessibilityState: {
11820
- selected: ariaSelected
11821
- },
11822
- onPress: onClick,
11823
- children: ({
11824
- isHovered,
11825
- isFocused,
11826
- isPressed
11827
- }) => {
11828
- return /*#__PURE__*/jsxRuntime.jsx(PickerItem, {
11829
- isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11830
- isHighlighted: highlightedIndex === index,
11831
- isHovered: isHovered,
11832
- isFocused: isFocused,
11833
- isPressed: isPressed,
11834
- children: child
11835
- });
11836
- }
11837
- }, itemProps.id);
11838
- })
11840
+ }, itemProps.id);
11839
11841
  })
11840
11842
  })
11841
11843
  })
@@ -12445,7 +12447,7 @@ function StoryTitleLevel4({
12445
12447
  return /*#__PURE__*/jsxRuntime.jsx(View, {
12446
12448
  marginBottom: 10,
12447
12449
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
12448
- base: "heading-s",
12450
+ base: "body-l",
12449
12451
  color: useStoryBlockColor(color),
12450
12452
  numberOfLines: numberOfLines,
12451
12453
  children: children
@@ -12994,7 +12996,7 @@ function ToastContent({
12994
12996
  flexGrow: 1,
12995
12997
  flexShrink: 1,
12996
12998
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
12997
- base: "heading-xs",
12999
+ base: "body-m",
12998
13000
  color: "white",
12999
13001
  children: title
13000
13002
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -13010,7 +13012,7 @@ function ToastContent({
13010
13012
  borderColor: "white",
13011
13013
  onPress: onPress,
13012
13014
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13013
- base: "heading-xs",
13015
+ base: "body-m",
13014
13016
  color: "white",
13015
13017
  children: actionLabel
13016
13018
  })