@ornikar/kitt-universal 32.4.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 +18 -0
- package/dist/definitions/Highlight/Highlight.d.ts +1 -1
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/highlight.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 +21 -8
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +21 -8
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +21 -8
- 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 +96 -71
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +21 -8
- 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 +96 -71
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +21 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +91 -68
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +9 -4
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +9 -4
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +9 -4
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +9 -4
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +9 -4
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +9 -4
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +9 -4
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +9 -4
- 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;
|
|
@@ -1052,10 +1052,10 @@ const autocomplete = {
|
|
|
1052
1052
|
};
|
|
1053
1053
|
|
|
1054
1054
|
const checkbox = {
|
|
1055
|
-
borderWidth:
|
|
1056
|
-
borderRadius:
|
|
1057
|
-
height:
|
|
1058
|
-
width:
|
|
1055
|
+
borderWidth: 1,
|
|
1056
|
+
borderRadius: 4,
|
|
1057
|
+
height: 24,
|
|
1058
|
+
width: 24,
|
|
1059
1059
|
iconSize: 14,
|
|
1060
1060
|
markColor: colors.uiBackgroundLight,
|
|
1061
1061
|
textSpacing: 10,
|
|
@@ -2000,6 +2000,7 @@ const highlight = {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
},
|
|
2002
2002
|
padding: {
|
|
2003
|
+
small: spacing * 2,
|
|
2003
2004
|
medium: spacing * 4,
|
|
2004
2005
|
large: spacing * 6
|
|
2005
2006
|
}
|
|
@@ -2279,6 +2280,10 @@ const typography = {
|
|
|
2279
2280
|
|
|
2280
2281
|
const picker = {
|
|
2281
2282
|
maxWidthFixed: 320,
|
|
2283
|
+
animation: {
|
|
2284
|
+
duration: 300,
|
|
2285
|
+
timingFunction: 'ease-in-out'
|
|
2286
|
+
},
|
|
2282
2287
|
ios: {
|
|
2283
2288
|
default: {
|
|
2284
2289
|
fontFamily: typography.types.bodies.fontFamily.native.regular,
|
|
@@ -7761,23 +7766,23 @@ function FullscreenModalFooter({
|
|
|
7761
7766
|
});
|
|
7762
7767
|
}
|
|
7763
7768
|
|
|
7764
|
-
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"};
|
|
7765
7770
|
|
|
7766
7771
|
const overlayClassNames = {
|
|
7767
|
-
appear: styles$
|
|
7768
|
-
appearActive: styles$
|
|
7769
|
-
enter: styles$
|
|
7770
|
-
enterActive: styles$
|
|
7771
|
-
exit: styles$
|
|
7772
|
-
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']
|
|
7773
7778
|
};
|
|
7774
7779
|
const slideInClassNames = {
|
|
7775
|
-
appear: styles$
|
|
7776
|
-
appearActive: styles$
|
|
7777
|
-
enter: styles$
|
|
7778
|
-
enterActive: styles$
|
|
7779
|
-
exit: styles$
|
|
7780
|
-
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']
|
|
7781
7786
|
};
|
|
7782
7787
|
function FullscreenModalAnimation({
|
|
7783
7788
|
children,
|
|
@@ -8027,6 +8032,9 @@ function useNativeAnimation$1() {
|
|
|
8027
8032
|
};
|
|
8028
8033
|
}
|
|
8029
8034
|
|
|
8035
|
+
const getTitleTypographyType = size => {
|
|
8036
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8037
|
+
};
|
|
8030
8038
|
function Highlight({
|
|
8031
8039
|
variant = 'primary',
|
|
8032
8040
|
canCollapse = false,
|
|
@@ -8041,6 +8049,11 @@ function Highlight({
|
|
|
8041
8049
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8042
8050
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8043
8051
|
const highlightStyle = {
|
|
8052
|
+
small: {
|
|
8053
|
+
marginBottom: 'kitt.1',
|
|
8054
|
+
spaceBetween: 'kitt.2',
|
|
8055
|
+
contentMarginY: 8
|
|
8056
|
+
},
|
|
8044
8057
|
medium: {
|
|
8045
8058
|
marginBottom: 'kitt.1',
|
|
8046
8059
|
spaceBetween: 'kitt.2',
|
|
@@ -8083,8 +8096,8 @@ function Highlight({
|
|
|
8083
8096
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8084
8097
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8085
8098
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8086
|
-
variant: "
|
|
8087
|
-
base:
|
|
8099
|
+
variant: "semibold",
|
|
8100
|
+
base: getTitleTypographyType(size),
|
|
8088
8101
|
ellipsizeMode: "clip",
|
|
8089
8102
|
children: title
|
|
8090
8103
|
})
|
|
@@ -8119,8 +8132,8 @@ function Highlight({
|
|
|
8119
8132
|
flexShrink: 1,
|
|
8120
8133
|
width: "100%",
|
|
8121
8134
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8122
|
-
variant: "
|
|
8123
|
-
base:
|
|
8135
|
+
variant: "semibold",
|
|
8136
|
+
base: getTitleTypographyType(size),
|
|
8124
8137
|
ellipsizeMode: "clip",
|
|
8125
8138
|
children: title
|
|
8126
8139
|
})
|
|
@@ -11538,6 +11551,8 @@ function PageLoader() {
|
|
|
11538
11551
|
});
|
|
11539
11552
|
}
|
|
11540
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
|
+
|
|
11541
11556
|
function getBackgroundColor({
|
|
11542
11557
|
isSelected,
|
|
11543
11558
|
isHighlighted,
|
|
@@ -11622,10 +11637,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
|
|
|
11622
11637
|
}
|
|
11623
11638
|
}
|
|
11624
11639
|
|
|
11625
|
-
const
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
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
|
+
};
|
|
11629
11646
|
function Picker({
|
|
11630
11647
|
children,
|
|
11631
11648
|
renderTrigger,
|
|
@@ -11711,6 +11728,14 @@ function Picker({
|
|
|
11711
11728
|
menuRef(currentRef);
|
|
11712
11729
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
11713
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
|
+
};
|
|
11714
11739
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
11715
11740
|
children: [/*#__PURE__*/jsx(View, {
|
|
11716
11741
|
width: "fit-content",
|
|
@@ -11755,53 +11780,53 @@ function Picker({
|
|
|
11755
11780
|
transitionTimingFunction: 'ease-in-out'
|
|
11756
11781
|
}
|
|
11757
11782
|
},
|
|
11758
|
-
children: /*#__PURE__*/jsx(
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
const currentValue = items[index];
|
|
11774
|
-
if (currentValue === undefined) throw new Error(`Picker: No value found for item at index ${index}`);
|
|
11775
|
-
const {
|
|
11776
|
-
onClick,
|
|
11777
|
-
'aria-selected': ariaSelected,
|
|
11778
|
-
...itemProps
|
|
11779
|
-
} = getItemProps({
|
|
11780
|
-
item: currentValue,
|
|
11781
|
-
index,
|
|
11782
|
-
disabled
|
|
11783
|
-
});
|
|
11784
|
-
return /*#__PURE__*/jsx(Pressable, {
|
|
11785
|
-
...itemProps,
|
|
11786
|
-
accessibilityState: {
|
|
11787
|
-
selected: ariaSelected
|
|
11788
|
-
},
|
|
11789
|
-
onPress: onClick,
|
|
11790
|
-
children: ({
|
|
11791
|
-
isHovered,
|
|
11792
|
-
isFocused,
|
|
11793
|
-
isPressed
|
|
11794
|
-
}) => {
|
|
11795
|
-
return /*#__PURE__*/jsx(PickerItem, {
|
|
11796
|
-
isSelected: checkSelectedItem(selectedItem || undefined, currentValue),
|
|
11797
|
-
isHighlighted: highlightedIndex === index,
|
|
11798
|
-
isHovered: isHovered,
|
|
11799
|
-
isFocused: isFocused,
|
|
11800
|
-
isPressed: isPressed,
|
|
11801
|
-
children: child
|
|
11802
|
-
});
|
|
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}`);
|
|
11803
11798
|
}
|
|
11804
|
-
|
|
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
|
+
})
|
|
11805
11830
|
})
|
|
11806
11831
|
})
|
|
11807
11832
|
})
|