@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
@@ -2298,10 +2298,6 @@ var typography = {
2298
2298
 
2299
2299
  var picker = {
2300
2300
  maxWidthFixed: 320,
2301
- animation: {
2302
- duration: 300,
2303
- timingFunction: 'ease-in-out'
2304
- },
2305
2301
  ios: {
2306
2302
  "default": _objectSpread(_objectSpread({
2307
2303
  fontFamily: typography.types.bodies.fontFamily["native"].regular
@@ -11909,12 +11905,6 @@ function Picker(_ref) {
11909
11905
  menuRef(currentRef);
11910
11906
  // eslint-disable-next-line react-hooks/exhaustive-deps
11911
11907
  }, []);
11912
- var theme = useTheme();
11913
- var animation = theme.kitt.picker.animation;
11914
- var cssVariables = {
11915
- '--overlay-duration': "".concat(animation.duration, "ms"),
11916
- '--overlay-timing-function': animation.timingFunction
11917
- };
11918
11908
  return /*#__PURE__*/jsxs(Fragment, {
11919
11909
  children: [/*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
11920
11910
  width: "fit-content"
@@ -11958,50 +11948,47 @@ function Picker(_ref) {
11958
11948
  transitionTimingFunction: 'ease-in-out'
11959
11949
  }
11960
11950
  },
11961
- children: /*#__PURE__*/jsx("div", {
11962
- style: cssVariables,
11963
- children: /*#__PURE__*/jsx(CSSTransition, {
11964
- unmountOnExit: true,
11965
- nodeRef: nodeRef,
11966
- timeout: 300,
11967
- "in": isOpen,
11968
- classNames: pickerClassNames,
11969
- children: /*#__PURE__*/jsx(View, {
11970
- ref: nodeRef,
11971
- paddingY: "kitt.2",
11972
- children: childrenArray.map(function (child, index) {
11973
- var currentValue = items[index];
11974
- if (currentValue === undefined) {
11975
- throw new Error("Picker: No value found for item at index ".concat(index));
11951
+ children: /*#__PURE__*/jsx(CSSTransition, {
11952
+ unmountOnExit: true,
11953
+ nodeRef: nodeRef,
11954
+ timeout: 300,
11955
+ "in": isOpen,
11956
+ classNames: pickerClassNames,
11957
+ children: /*#__PURE__*/jsx(View, {
11958
+ ref: nodeRef,
11959
+ paddingY: "kitt.2",
11960
+ children: childrenArray.map(function (child, index) {
11961
+ var currentValue = items[index];
11962
+ if (currentValue === undefined) {
11963
+ throw new Error("Picker: No value found for item at index ".concat(index));
11964
+ }
11965
+ var _getItemProps = getItemProps({
11966
+ item: currentValue,
11967
+ index: index,
11968
+ disabled: disabled
11969
+ }),
11970
+ onClick = _getItemProps.onClick,
11971
+ ariaSelected = _getItemProps['aria-selected'],
11972
+ itemProps = _objectWithoutProperties(_getItemProps, _excluded3$2);
11973
+ return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({}, itemProps), {}, {
11974
+ accessibilityState: {
11975
+ selected: ariaSelected
11976
+ },
11977
+ onPress: onClick,
11978
+ children: function (_ref2) {
11979
+ var isHovered = _ref2.isHovered,
11980
+ isFocused = _ref2.isFocused,
11981
+ isPressed = _ref2.isPressed;
11982
+ return /*#__PURE__*/jsx(PickerItem, {
11983
+ isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11984
+ isHighlighted: highlightedIndex === index,
11985
+ isHovered: isHovered,
11986
+ isFocused: isFocused,
11987
+ isPressed: isPressed,
11988
+ children: child
11989
+ });
11976
11990
  }
11977
- var _getItemProps = getItemProps({
11978
- item: currentValue,
11979
- index: index,
11980
- disabled: disabled
11981
- }),
11982
- onClick = _getItemProps.onClick,
11983
- ariaSelected = _getItemProps['aria-selected'],
11984
- itemProps = _objectWithoutProperties(_getItemProps, _excluded3$2);
11985
- return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({}, itemProps), {}, {
11986
- accessibilityState: {
11987
- selected: ariaSelected
11988
- },
11989
- onPress: onClick,
11990
- children: function (_ref2) {
11991
- var isHovered = _ref2.isHovered,
11992
- isFocused = _ref2.isFocused,
11993
- isPressed = _ref2.isPressed;
11994
- return /*#__PURE__*/jsx(PickerItem, {
11995
- isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
11996
- isHighlighted: highlightedIndex === index,
11997
- isHovered: isHovered,
11998
- isFocused: isFocused,
11999
- isPressed: isPressed,
12000
- children: child
12001
- });
12002
- }
12003
- }), itemProps.id);
12004
- })
11991
+ }), itemProps.id);
12005
11992
  })
12006
11993
  })
12007
11994
  })