@ornikar/kitt-universal 32.4.0 → 32.5.1-canary.69cd09143dd992620decf0a9f846b68e573511e3.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 (45) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/definitions/Highlight/Highlight.d.ts +1 -1
  3. package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
  4. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  5. package/dist/definitions/themes/late-ocean/highlight.d.ts +1 -0
  6. package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
  7. package/dist/definitions/themes/late-ocean/picker.d.ts +4 -0
  8. package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
  9. package/dist/index-metro.es.android.js +21 -8
  10. package/dist/index-metro.es.android.js.map +1 -1
  11. package/dist/index-metro.es.ios.js +21 -8
  12. package/dist/index-metro.es.ios.js.map +1 -1
  13. package/dist/index-node-22.17.cjs.js +21 -8
  14. package/dist/index-node-22.17.cjs.js.map +1 -1
  15. package/dist/index-node-22.17.cjs.web.css +22 -4
  16. package/dist/index-node-22.17.cjs.web.js +96 -71
  17. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  18. package/dist/index-node-22.17.es.mjs +21 -8
  19. package/dist/index-node-22.17.es.mjs.map +1 -1
  20. package/dist/index-node-22.17.es.web.css +22 -4
  21. package/dist/index-node-22.17.es.web.mjs +96 -71
  22. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  23. package/dist/index.es.js +21 -8
  24. package/dist/index.es.js.map +1 -1
  25. package/dist/index.es.web.js +91 -68
  26. package/dist/index.es.web.js.map +1 -1
  27. package/dist/linaria-themes-metro.es.android.js +9 -4
  28. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  29. package/dist/linaria-themes-metro.es.ios.js +9 -4
  30. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  31. package/dist/linaria-themes-node-22.17.cjs.js +9 -4
  32. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  33. package/dist/linaria-themes-node-22.17.cjs.web.js +9 -4
  34. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.es.mjs +9 -4
  36. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  37. package/dist/linaria-themes-node-22.17.es.web.mjs +9 -4
  38. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  39. package/dist/linaria-themes.es.js +9 -4
  40. package/dist/linaria-themes.es.js.map +1 -1
  41. package/dist/linaria-themes.es.web.js +9 -4
  42. package/dist/linaria-themes.es.web.js.map +1 -1
  43. package/dist/styles.css +22 -4
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +2 -2
@@ -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 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
+
52
70
  /* overrides :global(a) in Link styles.module.css */
53
71
  .TypographyLinkWebWrapper-module_displayUnderline__KxwMp > * {
54
72
  text-decoration: underline;
@@ -1061,10 +1061,10 @@ const autocomplete = {
1061
1061
  };
1062
1062
 
1063
1063
  const checkbox = {
1064
- borderWidth: 2,
1065
- borderRadius: 5,
1066
- height: 20,
1067
- width: 20,
1064
+ borderWidth: 1,
1065
+ borderRadius: 4,
1066
+ height: 24,
1067
+ width: 24,
1068
1068
  iconSize: 14,
1069
1069
  markColor: colors.uiBackgroundLight,
1070
1070
  textSpacing: 10,
@@ -2009,6 +2009,7 @@ const highlight = {
2009
2009
  }
2010
2010
  },
2011
2011
  padding: {
2012
+ small: spacing * 2,
2012
2013
  medium: spacing * 4,
2013
2014
  large: spacing * 6
2014
2015
  }
@@ -2288,6 +2289,10 @@ const typography = {
2288
2289
 
2289
2290
  const picker = {
2290
2291
  maxWidthFixed: 320,
2292
+ animation: {
2293
+ duration: 300,
2294
+ timingFunction: 'ease-in-out'
2295
+ },
2291
2296
  ios: {
2292
2297
  default: {
2293
2298
  fontFamily: typography.types.bodies.fontFamily.native.regular,
@@ -7770,23 +7775,23 @@ function FullscreenModalFooter({
7770
7775
  });
7771
7776
  }
7772
7777
 
7773
- 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"};
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"};
7774
7779
 
7775
7780
  const overlayClassNames = {
7776
- appear: styles$1['overlay-enter'],
7777
- appearActive: styles$1['overlay-enter-active'],
7778
- enter: styles$1['overlay-enter'],
7779
- enterActive: styles$1['overlay-enter-active'],
7780
- exit: styles$1['overlay-exit'],
7781
- exitActive: styles$1['overlay-exit-active']
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']
7782
7787
  };
7783
7788
  const slideInClassNames = {
7784
- appear: styles$1['content-enter'],
7785
- appearActive: styles$1['content-enter-active'],
7786
- enter: styles$1['content-enter'],
7787
- enterActive: styles$1['content-enter-active'],
7788
- exit: styles$1['content-exit'],
7789
- exitActive: styles$1['content-exit-active']
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']
7790
7795
  };
7791
7796
  function FullscreenModalAnimation({
7792
7797
  children,
@@ -8036,6 +8041,9 @@ function useNativeAnimation$1() {
8036
8041
  };
8037
8042
  }
8038
8043
 
8044
+ const getTitleTypographyType = size => {
8045
+ return size === 'small' ? 'label-medium' : 'label-large';
8046
+ };
8039
8047
  function Highlight({
8040
8048
  variant = 'primary',
8041
8049
  canCollapse = false,
@@ -8050,6 +8058,11 @@ function Highlight({
8050
8058
  const [contentHeight, setContentHeight] = react.useState(0);
8051
8059
  const [isInitialRender, setIsInitialRender] = react.useState(true);
8052
8060
  const highlightStyle = {
8061
+ small: {
8062
+ marginBottom: 'kitt.1',
8063
+ spaceBetween: 'kitt.2',
8064
+ contentMarginY: 8
8065
+ },
8053
8066
  medium: {
8054
8067
  marginBottom: 'kitt.1',
8055
8068
  spaceBetween: 'kitt.2',
@@ -8092,8 +8105,8 @@ function Highlight({
8092
8105
  children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
8093
8106
  marginBottom: highlightStyle[size].marginBottom,
8094
8107
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8095
- variant: "bold",
8096
- base: "body-m",
8108
+ variant: "semibold",
8109
+ base: getTitleTypographyType(size),
8097
8110
  ellipsizeMode: "clip",
8098
8111
  children: title
8099
8112
  })
@@ -8128,8 +8141,8 @@ function Highlight({
8128
8141
  flexShrink: 1,
8129
8142
  width: "100%",
8130
8143
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8131
- variant: "bold",
8132
- base: "body-m",
8144
+ variant: "semibold",
8145
+ base: getTitleTypographyType(size),
8133
8146
  ellipsizeMode: "clip",
8134
8147
  children: title
8135
8148
  })
@@ -11547,6 +11560,8 @@ function PageLoader() {
11547
11560
  });
11548
11561
  }
11549
11562
 
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
+
11550
11565
  function getBackgroundColor({
11551
11566
  isSelected,
11552
11567
  isHighlighted,
@@ -11631,10 +11646,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
11631
11646
  }
11632
11647
  }
11633
11648
 
11634
- const enter = "kitt-u_enter_ereraf";
11635
- const enterActive = "kitt-u_enterActive_e1jmsjrm";
11636
- const exit = "kitt-u_exit_e1mwnccz";
11637
- const exitActive = "kitt-u_exitActive_e1004d1h";
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
+ };
11638
11655
  function Picker({
11639
11656
  children,
11640
11657
  renderTrigger,
@@ -11720,6 +11737,14 @@ function Picker({
11720
11737
  menuRef(currentRef);
11721
11738
  // eslint-disable-next-line react-hooks/exhaustive-deps
11722
11739
  }, []);
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
+ };
11723
11748
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11724
11749
  children: [/*#__PURE__*/jsxRuntime.jsx(View, {
11725
11750
  width: "fit-content",
@@ -11764,53 +11789,53 @@ function Picker({
11764
11789
  transitionTimingFunction: 'ease-in-out'
11765
11790
  }
11766
11791
  },
11767
- children: /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
11768
- unmountOnExit: true,
11769
- nodeRef: nodeRef,
11770
- timeout: 300,
11771
- in: isOpen,
11772
- classNames: {
11773
- enter,
11774
- enterActive,
11775
- exit,
11776
- exitActive
11777
- },
11778
- children: /*#__PURE__*/jsxRuntime.jsx(View, {
11779
- ref: nodeRef,
11780
- paddingY: "kitt.2",
11781
- children: childrenArray.map((child, index) => {
11782
- const currentValue = items[index];
11783
- if (currentValue === undefined) throw new Error(`Picker: No value found for item at index ${index}`);
11784
- const {
11785
- onClick,
11786
- 'aria-selected': ariaSelected,
11787
- ...itemProps
11788
- } = getItemProps({
11789
- item: currentValue,
11790
- index,
11791
- disabled
11792
- });
11793
- return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
11794
- ...itemProps,
11795
- accessibilityState: {
11796
- selected: ariaSelected
11797
- },
11798
- onPress: onClick,
11799
- children: ({
11800
- isHovered,
11801
- isFocused,
11802
- isPressed
11803
- }) => {
11804
- return /*#__PURE__*/jsxRuntime.jsx(PickerItem, {
11805
- isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11806
- isHighlighted: highlightedIndex === index,
11807
- isHovered: isHovered,
11808
- isFocused: isFocused,
11809
- isPressed: isPressed,
11810
- children: child
11811
- });
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}`);
11812
11807
  }
11813
- }, itemProps.id);
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
+ })
11814
11839
  })
11815
11840
  })
11816
11841
  })