@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;
|
|
@@ -2289,6 +2289,10 @@ const typography = {
|
|
|
2289
2289
|
|
|
2290
2290
|
const picker = {
|
|
2291
2291
|
maxWidthFixed: 320,
|
|
2292
|
+
animation: {
|
|
2293
|
+
duration: 300,
|
|
2294
|
+
timingFunction: 'ease-in-out'
|
|
2295
|
+
},
|
|
2292
2296
|
ios: {
|
|
2293
2297
|
default: {
|
|
2294
2298
|
fontFamily: typography.types.bodies.fontFamily.native.regular,
|
|
@@ -7771,23 +7775,23 @@ function FullscreenModalFooter({
|
|
|
7771
7775
|
});
|
|
7772
7776
|
}
|
|
7773
7777
|
|
|
7774
|
-
const styles$
|
|
7778
|
+
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"};
|
|
7775
7779
|
|
|
7776
7780
|
const overlayClassNames = {
|
|
7777
|
-
appear: styles$
|
|
7778
|
-
appearActive: styles$
|
|
7779
|
-
enter: styles$
|
|
7780
|
-
enterActive: styles$
|
|
7781
|
-
exit: styles$
|
|
7782
|
-
exitActive: styles$
|
|
7781
|
+
appear: styles$2['overlay-enter'],
|
|
7782
|
+
appearActive: styles$2['overlay-enter-active'],
|
|
7783
|
+
enter: styles$2['overlay-enter'],
|
|
7784
|
+
enterActive: styles$2['overlay-enter-active'],
|
|
7785
|
+
exit: styles$2['overlay-exit'],
|
|
7786
|
+
exitActive: styles$2['overlay-exit-active']
|
|
7783
7787
|
};
|
|
7784
7788
|
const slideInClassNames = {
|
|
7785
|
-
appear: styles$
|
|
7786
|
-
appearActive: styles$
|
|
7787
|
-
enter: styles$
|
|
7788
|
-
enterActive: styles$
|
|
7789
|
-
exit: styles$
|
|
7790
|
-
exitActive: styles$
|
|
7789
|
+
appear: styles$2['content-enter'],
|
|
7790
|
+
appearActive: styles$2['content-enter-active'],
|
|
7791
|
+
enter: styles$2['content-enter'],
|
|
7792
|
+
enterActive: styles$2['content-enter-active'],
|
|
7793
|
+
exit: styles$2['content-exit'],
|
|
7794
|
+
exitActive: styles$2['content-exit-active']
|
|
7791
7795
|
};
|
|
7792
7796
|
function FullscreenModalAnimation({
|
|
7793
7797
|
children,
|
|
@@ -11556,6 +11560,8 @@ function PageLoader() {
|
|
|
11556
11560
|
});
|
|
11557
11561
|
}
|
|
11558
11562
|
|
|
11563
|
+
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"};
|
|
11564
|
+
|
|
11559
11565
|
function getBackgroundColor({
|
|
11560
11566
|
isSelected,
|
|
11561
11567
|
isHighlighted,
|
|
@@ -11640,10 +11646,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
|
|
|
11640
11646
|
}
|
|
11641
11647
|
}
|
|
11642
11648
|
|
|
11643
|
-
const
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11649
|
+
const pickerClassNames = {
|
|
11650
|
+
enter: styles$1['picker-enter'],
|
|
11651
|
+
enterActive: styles$1['picker-enter-active'],
|
|
11652
|
+
exit: styles$1['picker-exit'],
|
|
11653
|
+
exitActive: styles$1['picker-exit-active']
|
|
11654
|
+
};
|
|
11647
11655
|
function Picker({
|
|
11648
11656
|
children,
|
|
11649
11657
|
renderTrigger,
|
|
@@ -11729,6 +11737,14 @@ function Picker({
|
|
|
11729
11737
|
menuRef(currentRef);
|
|
11730
11738
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11731
11739
|
}, []);
|
|
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
|
+
};
|
|
11732
11748
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
11733
11749
|
children: [/*#__PURE__*/jsxRuntime.jsx(View, {
|
|
11734
11750
|
width: "fit-content",
|
|
@@ -11773,53 +11789,53 @@ function Picker({
|
|
|
11773
11789
|
transitionTimingFunction: 'ease-in-out'
|
|
11774
11790
|
}
|
|
11775
11791
|
},
|
|
11776
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
const currentValue = items[index];
|
|
11792
|
-
if (currentValue === undefined) throw new Error(`Picker: No value found for item at index ${index}`);
|
|
11793
|
-
const {
|
|
11794
|
-
onClick,
|
|
11795
|
-
'aria-selected': ariaSelected,
|
|
11796
|
-
...itemProps
|
|
11797
|
-
} = getItemProps({
|
|
11798
|
-
item: currentValue,
|
|
11799
|
-
index,
|
|
11800
|
-
disabled
|
|
11801
|
-
});
|
|
11802
|
-
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
11803
|
-
...itemProps,
|
|
11804
|
-
accessibilityState: {
|
|
11805
|
-
selected: ariaSelected
|
|
11806
|
-
},
|
|
11807
|
-
onPress: onClick,
|
|
11808
|
-
children: ({
|
|
11809
|
-
isHovered,
|
|
11810
|
-
isFocused,
|
|
11811
|
-
isPressed
|
|
11812
|
-
}) => {
|
|
11813
|
-
return /*#__PURE__*/jsxRuntime.jsx(PickerItem, {
|
|
11814
|
-
isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
|
|
11815
|
-
isHighlighted: highlightedIndex === index,
|
|
11816
|
-
isHovered: isHovered,
|
|
11817
|
-
isFocused: isFocused,
|
|
11818
|
-
isPressed: isPressed,
|
|
11819
|
-
children: child
|
|
11820
|
-
});
|
|
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}`);
|
|
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
11839
|
})
|
|
11824
11840
|
})
|
|
11825
11841
|
})
|