@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 */
@@ -2280,10 +2280,6 @@ const typography = {
2280
2280
 
2281
2281
  const picker = {
2282
2282
  maxWidthFixed: 320,
2283
- animation: {
2284
- duration: 300,
2285
- timingFunction: 'ease-in-out'
2286
- },
2287
2283
  ios: {
2288
2284
  default: {
2289
2285
  fontFamily: typography.types.bodies.fontFamily.native.regular,
@@ -11728,14 +11724,6 @@ function Picker({
11728
11724
  menuRef(currentRef);
11729
11725
  // eslint-disable-next-line react-hooks/exhaustive-deps
11730
11726
  }, []);
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
11727
  return /*#__PURE__*/jsxs(Fragment, {
11740
11728
  children: [/*#__PURE__*/jsx(View, {
11741
11729
  width: "fit-content",
@@ -11780,53 +11768,50 @@ function Picker({
11780
11768
  transitionTimingFunction: 'ease-in-out'
11781
11769
  }
11782
11770
  },
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}`);
11771
+ children: /*#__PURE__*/jsx(CSSTransition, {
11772
+ unmountOnExit: true,
11773
+ nodeRef: nodeRef,
11774
+ timeout: 300,
11775
+ in: isOpen,
11776
+ classNames: pickerClassNames,
11777
+ children: /*#__PURE__*/jsx(View, {
11778
+ ref: nodeRef,
11779
+ paddingY: "kitt.2",
11780
+ children: childrenArray.map((child, index) => {
11781
+ const currentValue = items[index];
11782
+ if (currentValue === undefined) {
11783
+ throw new Error(`Picker: No value found for item at index ${index}`);
11784
+ }
11785
+ const {
11786
+ onClick,
11787
+ 'aria-selected': ariaSelected,
11788
+ ...itemProps
11789
+ } = getItemProps({
11790
+ item: currentValue,
11791
+ index,
11792
+ disabled
11793
+ });
11794
+ return /*#__PURE__*/jsx(Pressable, {
11795
+ ...itemProps,
11796
+ accessibilityState: {
11797
+ selected: ariaSelected
11798
+ },
11799
+ onPress: onClick,
11800
+ children: ({
11801
+ isHovered,
11802
+ isFocused,
11803
+ isPressed
11804
+ }) => {
11805
+ return /*#__PURE__*/jsx(PickerItem, {
11806
+ isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11807
+ isHighlighted: highlightedIndex === index,
11808
+ isHovered: isHovered,
11809
+ isFocused: isFocused,
11810
+ isPressed: isPressed,
11811
+ children: child
11812
+ });
11798
11813
  }
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
- })
11814
+ }, itemProps.id);
11830
11815
  })
11831
11816
  })
11832
11817
  })