@ornikar/kitt-universal 32.5.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.
- package/CHANGELOG.md +8 -0
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/picker.d.ts +4 -0
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +4 -0
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +4 -0
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +4 -0
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +22 -4
- package/dist/index-node-22.17.cjs.web.js +79 -63
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +4 -0
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +22 -4
- package/dist/index-node-22.17.es.web.mjs +79 -63
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +4 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +74 -60
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +4 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +4 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +4 -0
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +4 -0
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +4 -0
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +4 -0
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +4 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +4 -0
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +22 -4
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -45,10 +45,28 @@
|
|
|
45
45
|
transition: transform var(--content-duration) var(--content-easing);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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;
|
|
@@ -2280,6 +2280,10 @@ const typography = {
|
|
|
2280
2280
|
|
|
2281
2281
|
const picker = {
|
|
2282
2282
|
maxWidthFixed: 320,
|
|
2283
|
+
animation: {
|
|
2284
|
+
duration: 300,
|
|
2285
|
+
timingFunction: 'ease-in-out'
|
|
2286
|
+
},
|
|
2283
2287
|
ios: {
|
|
2284
2288
|
default: {
|
|
2285
2289
|
fontFamily: typography.types.bodies.fontFamily.native.regular,
|
|
@@ -7762,23 +7766,23 @@ function FullscreenModalFooter({
|
|
|
7762
7766
|
});
|
|
7763
7767
|
}
|
|
7764
7768
|
|
|
7765
|
-
const styles$
|
|
7769
|
+
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"};
|
|
7766
7770
|
|
|
7767
7771
|
const overlayClassNames = {
|
|
7768
|
-
appear: styles$
|
|
7769
|
-
appearActive: styles$
|
|
7770
|
-
enter: styles$
|
|
7771
|
-
enterActive: styles$
|
|
7772
|
-
exit: styles$
|
|
7773
|
-
exitActive: styles$
|
|
7772
|
+
appear: styles$2['overlay-enter'],
|
|
7773
|
+
appearActive: styles$2['overlay-enter-active'],
|
|
7774
|
+
enter: styles$2['overlay-enter'],
|
|
7775
|
+
enterActive: styles$2['overlay-enter-active'],
|
|
7776
|
+
exit: styles$2['overlay-exit'],
|
|
7777
|
+
exitActive: styles$2['overlay-exit-active']
|
|
7774
7778
|
};
|
|
7775
7779
|
const slideInClassNames = {
|
|
7776
|
-
appear: styles$
|
|
7777
|
-
appearActive: styles$
|
|
7778
|
-
enter: styles$
|
|
7779
|
-
enterActive: styles$
|
|
7780
|
-
exit: styles$
|
|
7781
|
-
exitActive: styles$
|
|
7780
|
+
appear: styles$2['content-enter'],
|
|
7781
|
+
appearActive: styles$2['content-enter-active'],
|
|
7782
|
+
enter: styles$2['content-enter'],
|
|
7783
|
+
enterActive: styles$2['content-enter-active'],
|
|
7784
|
+
exit: styles$2['content-exit'],
|
|
7785
|
+
exitActive: styles$2['content-exit-active']
|
|
7782
7786
|
};
|
|
7783
7787
|
function FullscreenModalAnimation({
|
|
7784
7788
|
children,
|
|
@@ -11547,6 +11551,8 @@ function PageLoader() {
|
|
|
11547
11551
|
});
|
|
11548
11552
|
}
|
|
11549
11553
|
|
|
11554
|
+
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"};
|
|
11555
|
+
|
|
11550
11556
|
function getBackgroundColor({
|
|
11551
11557
|
isSelected,
|
|
11552
11558
|
isHighlighted,
|
|
@@ -11631,10 +11637,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
|
|
|
11631
11637
|
}
|
|
11632
11638
|
}
|
|
11633
11639
|
|
|
11634
|
-
const
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11640
|
+
const pickerClassNames = {
|
|
11641
|
+
enter: styles$1['picker-enter'],
|
|
11642
|
+
enterActive: styles$1['picker-enter-active'],
|
|
11643
|
+
exit: styles$1['picker-exit'],
|
|
11644
|
+
exitActive: styles$1['picker-exit-active']
|
|
11645
|
+
};
|
|
11638
11646
|
function Picker({
|
|
11639
11647
|
children,
|
|
11640
11648
|
renderTrigger,
|
|
@@ -11720,6 +11728,14 @@ function Picker({
|
|
|
11720
11728
|
menuRef(currentRef);
|
|
11721
11729
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11722
11730
|
}, []);
|
|
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
|
+
};
|
|
11723
11739
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
11724
11740
|
children: [/*#__PURE__*/jsx(View, {
|
|
11725
11741
|
width: "fit-content",
|
|
@@ -11764,53 +11780,53 @@ function Picker({
|
|
|
11764
11780
|
transitionTimingFunction: 'ease-in-out'
|
|
11765
11781
|
}
|
|
11766
11782
|
},
|
|
11767
|
-
children: /*#__PURE__*/jsx(
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
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__*/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__*/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
|
-
});
|
|
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}`);
|
|
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
11830
|
})
|
|
11815
11831
|
})
|
|
11816
11832
|
})
|