@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.
- package/CHANGELOG.md +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/picker.d.ts +0 -4
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +0 -4
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +0 -4
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +0 -4
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +2 -2
- package/dist/index-node-22.17.cjs.web.js +43 -58
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +0 -4
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +2 -2
- package/dist/index-node-22.17.es.web.mjs +43 -58
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +0 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +40 -53
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +0 -4
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +0 -4
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +0 -4
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +0 -4
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +0 -4
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +0 -4
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +0 -4
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +0 -4
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/tsbuildinfo +1 -1
- 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
|
|
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
|
|
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(
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11797
|
-
|
|
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
|
-
|
|
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
|
})
|