@ornikar/kitt-universal 32.5.1-canary.69cd09143dd992620decf0a9f846b68e573511e3.0 → 32.5.1

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 (41) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
  3. package/dist/definitions/themes/late-ocean/picker.d.ts +0 -4
  4. package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
  5. package/dist/index-metro.es.android.js +0 -4
  6. package/dist/index-metro.es.android.js.map +1 -1
  7. package/dist/index-metro.es.ios.js +0 -4
  8. package/dist/index-metro.es.ios.js.map +1 -1
  9. package/dist/index-node-22.17.cjs.js +0 -4
  10. package/dist/index-node-22.17.cjs.js.map +1 -1
  11. package/dist/index-node-22.17.cjs.web.css +2 -2
  12. package/dist/index-node-22.17.cjs.web.js +43 -58
  13. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  14. package/dist/index-node-22.17.es.mjs +0 -4
  15. package/dist/index-node-22.17.es.mjs.map +1 -1
  16. package/dist/index-node-22.17.es.web.css +2 -2
  17. package/dist/index-node-22.17.es.web.mjs +43 -58
  18. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  19. package/dist/index.es.js +0 -4
  20. package/dist/index.es.js.map +1 -1
  21. package/dist/index.es.web.js +40 -53
  22. package/dist/index.es.web.js.map +1 -1
  23. package/dist/linaria-themes-metro.es.android.js +0 -4
  24. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  25. package/dist/linaria-themes-metro.es.ios.js +0 -4
  26. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  27. package/dist/linaria-themes-node-22.17.cjs.js +0 -4
  28. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  29. package/dist/linaria-themes-node-22.17.cjs.web.js +0 -4
  30. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  31. package/dist/linaria-themes-node-22.17.es.mjs +0 -4
  32. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  33. package/dist/linaria-themes-node-22.17.es.web.mjs +0 -4
  34. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  35. package/dist/linaria-themes.es.js +0 -4
  36. package/dist/linaria-themes.es.js.map +1 -1
  37. package/dist/linaria-themes.es.web.js +0 -4
  38. package/dist/linaria-themes.es.web.js.map +1 -1
  39. package/dist/styles.css +2 -2
  40. package/dist/tsbuildinfo +1 -1
  41. package/package.json +1 -1
@@ -53,7 +53,7 @@
53
53
  .Picker-module_picker-enter-active__0hxR5 {
54
54
  transform: translateY(0);
55
55
  opacity: 1;
56
- transition: all var(--overlay-duration) var(--overlay-timing-function);
56
+ transition: all 300ms ease-in-out;
57
57
  }
58
58
 
59
59
  .Picker-module_picker-exit__Z1BjM {
@@ -64,7 +64,7 @@
64
64
  .Picker-module_picker-exit-active__x2C8Q {
65
65
  transform: translateY(8px);
66
66
  opacity: 0;
67
- transition: all var(--overlay-duration) var(--overlay-timing-function);
67
+ transition: all 300ms ease-in-out;
68
68
  }
69
69
 
70
70
  /* overrides :global(a) in Link styles.module.css */
@@ -2289,10 +2289,6 @@ const typography = {
2289
2289
 
2290
2290
  const picker = {
2291
2291
  maxWidthFixed: 320,
2292
- animation: {
2293
- duration: 300,
2294
- timingFunction: 'ease-in-out'
2295
- },
2296
2292
  ios: {
2297
2293
  default: {
2298
2294
  fontFamily: typography.types.bodies.fontFamily.native.regular,
@@ -11737,14 +11733,6 @@ function Picker({
11737
11733
  menuRef(currentRef);
11738
11734
  // eslint-disable-next-line react-hooks/exhaustive-deps
11739
11735
  }, []);
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
11736
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11749
11737
  children: [/*#__PURE__*/jsxRuntime.jsx(View, {
11750
11738
  width: "fit-content",
@@ -11789,53 +11777,50 @@ function Picker({
11789
11777
  transitionTimingFunction: 'ease-in-out'
11790
11778
  }
11791
11779
  },
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}`);
11780
+ children: /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
11781
+ unmountOnExit: true,
11782
+ nodeRef: nodeRef,
11783
+ timeout: 300,
11784
+ in: isOpen,
11785
+ classNames: pickerClassNames,
11786
+ children: /*#__PURE__*/jsxRuntime.jsx(View, {
11787
+ ref: nodeRef,
11788
+ paddingY: "kitt.2",
11789
+ children: childrenArray.map((child, index) => {
11790
+ const currentValue = items[index];
11791
+ if (currentValue === undefined) {
11792
+ throw new Error(`Picker: No value found for item at index ${index}`);
11793
+ }
11794
+ const {
11795
+ onClick,
11796
+ 'aria-selected': ariaSelected,
11797
+ ...itemProps
11798
+ } = getItemProps({
11799
+ item: currentValue,
11800
+ index,
11801
+ disabled
11802
+ });
11803
+ return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
11804
+ ...itemProps,
11805
+ accessibilityState: {
11806
+ selected: ariaSelected
11807
+ },
11808
+ onPress: onClick,
11809
+ children: ({
11810
+ isHovered,
11811
+ isFocused,
11812
+ isPressed
11813
+ }) => {
11814
+ return /*#__PURE__*/jsxRuntime.jsx(PickerItem, {
11815
+ isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11816
+ isHighlighted: highlightedIndex === index,
11817
+ isHovered: isHovered,
11818
+ isFocused: isFocused,
11819
+ isPressed: isPressed,
11820
+ children: child
11821
+ });
11807
11822
  }
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
- })
11823
+ }, itemProps.id);
11839
11824
  })
11840
11825
  })
11841
11826
  })