@ornikar/kitt-universal 32.2.1-canary.b6a558c2a534e5d22cad1dfac7725ddeca489e44.0 → 32.3.1-canary.e5e3462569f2f32f91e8d06437eb0642c84cb55f.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 +11 -2
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +2 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts +2 -1
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts +2 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts.map +1 -1
- package/dist/definitions/Choices/Choices.d.ts +5 -5
- package/dist/definitions/Choices/Choices.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +0 -14
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +69 -48
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +69 -48
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +70 -46
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +38 -8
- package/dist/index-node-22.17.cjs.web.js +135 -104
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +71 -47
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +38 -8
- package/dist/index-node-22.17.es.web.mjs +136 -105
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +72 -48
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +135 -104
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +34 -38
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +34 -38
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +34 -38
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +34 -38
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +34 -38
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +34 -38
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +34 -38
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +34 -38
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +38 -8
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -881,15 +881,15 @@ const card = {
|
|
|
881
881
|
}
|
|
882
882
|
};
|
|
883
883
|
|
|
884
|
-
const webAnimationContentDuration$
|
|
885
|
-
const webAnimationContentEasing$
|
|
884
|
+
const webAnimationContentDuration$1 = 400;
|
|
885
|
+
const webAnimationContentEasing$1 = {
|
|
886
886
|
x1: 0.77,
|
|
887
887
|
y1: 0,
|
|
888
888
|
x2: 0.175,
|
|
889
889
|
y2: 1
|
|
890
890
|
};
|
|
891
|
-
const webAnimationOverlayDuration$
|
|
892
|
-
const webAnimationOverlayEasing$
|
|
891
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
892
|
+
const webAnimationOverlayEasing$1 = {
|
|
893
893
|
x1: 0.42,
|
|
894
894
|
y1: 0,
|
|
895
895
|
x2: 1,
|
|
@@ -924,12 +924,12 @@ const cardModal = {
|
|
|
924
924
|
},
|
|
925
925
|
animation: {
|
|
926
926
|
overlay: {
|
|
927
|
-
duration: webAnimationOverlayDuration$
|
|
928
|
-
easing: webAnimationOverlayEasing$
|
|
927
|
+
duration: webAnimationOverlayDuration$1,
|
|
928
|
+
easing: webAnimationOverlayEasing$1
|
|
929
929
|
},
|
|
930
930
|
content: {
|
|
931
|
-
duration: webAnimationContentDuration$
|
|
932
|
-
easing: webAnimationContentEasing$
|
|
931
|
+
duration: webAnimationContentDuration$1,
|
|
932
|
+
easing: webAnimationContentEasing$1
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
};
|
|
@@ -985,15 +985,15 @@ const choices = {
|
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
987
|
|
|
988
|
-
const webAnimationContentDuration
|
|
989
|
-
const webAnimationContentEasing
|
|
988
|
+
const webAnimationContentDuration = 400;
|
|
989
|
+
const webAnimationContentEasing = {
|
|
990
990
|
x1: 0.77,
|
|
991
991
|
y1: 0,
|
|
992
992
|
x2: 0.175,
|
|
993
993
|
y2: 1
|
|
994
994
|
};
|
|
995
|
-
const webAnimationOverlayDuration
|
|
996
|
-
const webAnimationOverlayEasing
|
|
995
|
+
const webAnimationOverlayDuration = 250;
|
|
996
|
+
const webAnimationOverlayEasing = {
|
|
997
997
|
x1: 0.42,
|
|
998
998
|
y1: 0,
|
|
999
999
|
x2: 1,
|
|
@@ -1015,12 +1015,12 @@ const dialogModal = {
|
|
|
1015
1015
|
},
|
|
1016
1016
|
animation: {
|
|
1017
1017
|
overlay: {
|
|
1018
|
-
duration: webAnimationOverlayDuration
|
|
1019
|
-
easing: webAnimationOverlayEasing
|
|
1018
|
+
duration: webAnimationOverlayDuration,
|
|
1019
|
+
easing: webAnimationOverlayEasing
|
|
1020
1020
|
},
|
|
1021
1021
|
content: {
|
|
1022
|
-
duration: webAnimationContentDuration
|
|
1023
|
-
easing: webAnimationContentEasing
|
|
1022
|
+
duration: webAnimationContentDuration,
|
|
1023
|
+
easing: webAnimationContentEasing
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
@@ -1078,10 +1078,10 @@ const autocomplete = {
|
|
|
1078
1078
|
};
|
|
1079
1079
|
|
|
1080
1080
|
const checkbox = {
|
|
1081
|
-
borderWidth:
|
|
1082
|
-
borderRadius:
|
|
1083
|
-
height:
|
|
1084
|
-
width:
|
|
1081
|
+
borderWidth: 2,
|
|
1082
|
+
borderRadius: 5,
|
|
1083
|
+
height: 20,
|
|
1084
|
+
width: 20,
|
|
1085
1085
|
iconSize: 14,
|
|
1086
1086
|
markColor: colors.uiBackgroundLight,
|
|
1087
1087
|
textSpacing: 10,
|
|
@@ -1929,20 +1929,6 @@ const forms = {
|
|
|
1929
1929
|
timePicker
|
|
1930
1930
|
};
|
|
1931
1931
|
|
|
1932
|
-
const webAnimationContentDuration = 600;
|
|
1933
|
-
const webAnimationContentEasing = {
|
|
1934
|
-
x1: 0.77,
|
|
1935
|
-
y1: 0,
|
|
1936
|
-
x2: 0.175,
|
|
1937
|
-
y2: 1
|
|
1938
|
-
};
|
|
1939
|
-
const webAnimationOverlayDuration = 250;
|
|
1940
|
-
const webAnimationOverlayEasing = {
|
|
1941
|
-
x1: 0.42,
|
|
1942
|
-
y1: 0,
|
|
1943
|
-
x2: 1,
|
|
1944
|
-
y2: 1
|
|
1945
|
-
};
|
|
1946
1932
|
const fullscreenModal = {
|
|
1947
1933
|
header: {
|
|
1948
1934
|
height: 56
|
|
@@ -1956,12 +1942,22 @@ const fullscreenModal = {
|
|
|
1956
1942
|
},
|
|
1957
1943
|
animation: {
|
|
1958
1944
|
overlay: {
|
|
1959
|
-
duration:
|
|
1960
|
-
easing:
|
|
1945
|
+
duration: 250,
|
|
1946
|
+
easing: {
|
|
1947
|
+
x1: 0.42,
|
|
1948
|
+
y1: 0,
|
|
1949
|
+
x2: 1,
|
|
1950
|
+
y2: 1
|
|
1951
|
+
}
|
|
1961
1952
|
},
|
|
1962
1953
|
content: {
|
|
1963
|
-
duration:
|
|
1964
|
-
easing:
|
|
1954
|
+
duration: 600,
|
|
1955
|
+
easing: {
|
|
1956
|
+
x1: 0.77,
|
|
1957
|
+
y1: 0,
|
|
1958
|
+
x2: 0.175,
|
|
1959
|
+
y2: 1
|
|
1960
|
+
}
|
|
1965
1961
|
}
|
|
1966
1962
|
}
|
|
1967
1963
|
};
|
|
@@ -4838,6 +4834,7 @@ function AnimatedChoiceItemView({
|
|
|
4838
4834
|
isDisabled,
|
|
4839
4835
|
isSelected,
|
|
4840
4836
|
hasError,
|
|
4837
|
+
shouldExpand = false,
|
|
4841
4838
|
animatedStyles
|
|
4842
4839
|
}) {
|
|
4843
4840
|
const sx = nativeBase.useSx();
|
|
@@ -4856,7 +4853,9 @@ function AnimatedChoiceItemView({
|
|
|
4856
4853
|
isHovered,
|
|
4857
4854
|
isPressed
|
|
4858
4855
|
}),
|
|
4859
|
-
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4856
|
+
padding: size === 'small' ? 'kitt.2' : 'kitt.4',
|
|
4857
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4858
|
+
flexShrink: shouldExpand ? 1 : undefined
|
|
4860
4859
|
});
|
|
4861
4860
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
4862
4861
|
style: [style, animatedStyles],
|
|
@@ -4920,6 +4919,7 @@ function ChoiceItem({
|
|
|
4920
4919
|
value,
|
|
4921
4920
|
selected,
|
|
4922
4921
|
disabled,
|
|
4922
|
+
shouldExpand = false,
|
|
4923
4923
|
children,
|
|
4924
4924
|
isPressedInternal,
|
|
4925
4925
|
isHoveredInternal,
|
|
@@ -4959,6 +4959,8 @@ function ChoiceItem({
|
|
|
4959
4959
|
checked: selected
|
|
4960
4960
|
},
|
|
4961
4961
|
style: style,
|
|
4962
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4963
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4962
4964
|
onBlur: onBlur,
|
|
4963
4965
|
onFocus: onFocus,
|
|
4964
4966
|
onPress: e => {
|
|
@@ -4978,6 +4980,8 @@ function ChoiceItem({
|
|
|
4978
4980
|
});
|
|
4979
4981
|
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4980
4982
|
space: "kitt.2",
|
|
4983
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4984
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4981
4985
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
|
|
4982
4986
|
animatedStyles: backgroundStyles,
|
|
4983
4987
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4985,10 +4989,13 @@ function ChoiceItem({
|
|
|
4985
4989
|
isSelected: selected,
|
|
4986
4990
|
isPressed: isPressed || isPressedInternal,
|
|
4987
4991
|
hasError: hasError,
|
|
4992
|
+
shouldExpand: shouldExpand,
|
|
4988
4993
|
size: size,
|
|
4989
4994
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Stack, {
|
|
4990
4995
|
alignItems: "center",
|
|
4991
4996
|
space: "kitt.2",
|
|
4997
|
+
flexGrow: shouldExpand ? 1 : undefined,
|
|
4998
|
+
flexShrink: shouldExpand ? 1 : undefined,
|
|
4992
4999
|
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
4993
5000
|
color: textColor,
|
|
4994
5001
|
icon: icon
|
|
@@ -5017,36 +5024,49 @@ function ChoiceItem({
|
|
|
5017
5024
|
function ChoiceItemContainer({
|
|
5018
5025
|
children,
|
|
5019
5026
|
direction,
|
|
5027
|
+
shouldExpand,
|
|
5020
5028
|
isLast
|
|
5021
5029
|
}) {
|
|
5022
5030
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
5023
|
-
const
|
|
5031
|
+
const directionFlexProps = direction === 'row' ? {
|
|
5024
5032
|
flexGrow: 1,
|
|
5025
5033
|
flexShrink: 1,
|
|
5026
5034
|
flexBasis: 0
|
|
5027
5035
|
} : {};
|
|
5036
|
+
const shouldExpandFlexProps = shouldExpand ? {
|
|
5037
|
+
flexGrow: 1,
|
|
5038
|
+
flexShrink: 1
|
|
5039
|
+
} : {};
|
|
5028
5040
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5029
5041
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
5030
5042
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
5031
|
-
...
|
|
5043
|
+
...directionFlexProps,
|
|
5044
|
+
...shouldExpandFlexProps,
|
|
5032
5045
|
children: children
|
|
5033
5046
|
});
|
|
5034
5047
|
}
|
|
5035
5048
|
|
|
5036
5049
|
function ChoicesContainer({
|
|
5037
5050
|
direction,
|
|
5051
|
+
shouldExpand,
|
|
5038
5052
|
contentContainerStyle,
|
|
5039
5053
|
...props
|
|
5040
5054
|
}) {
|
|
5055
|
+
const shouldExpandFlexProps = shouldExpand ? {
|
|
5056
|
+
flexGrow: 1,
|
|
5057
|
+
flexShrink: 1
|
|
5058
|
+
} : {};
|
|
5041
5059
|
if (direction === 'row') {
|
|
5042
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5060
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
5043
5061
|
horizontal: true,
|
|
5044
|
-
contentContainerStyle: contentContainerStyle,
|
|
5045
|
-
...props
|
|
5062
|
+
contentContainerStyle: shouldExpand ? shouldExpandFlexProps : contentContainerStyle,
|
|
5063
|
+
...props,
|
|
5064
|
+
...shouldExpandFlexProps
|
|
5046
5065
|
});
|
|
5047
5066
|
}
|
|
5048
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5049
|
-
...props
|
|
5067
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5068
|
+
...props,
|
|
5069
|
+
...shouldExpandFlexProps
|
|
5050
5070
|
});
|
|
5051
5071
|
}
|
|
5052
5072
|
|
|
@@ -5058,6 +5078,7 @@ function Choices({
|
|
|
5058
5078
|
type,
|
|
5059
5079
|
direction = 'column',
|
|
5060
5080
|
disabled,
|
|
5081
|
+
shouldExpand = false,
|
|
5061
5082
|
children,
|
|
5062
5083
|
value,
|
|
5063
5084
|
onPress,
|
|
@@ -5074,6 +5095,7 @@ function Choices({
|
|
|
5074
5095
|
const sharedProps = {
|
|
5075
5096
|
type,
|
|
5076
5097
|
disabled,
|
|
5098
|
+
shouldExpand,
|
|
5077
5099
|
onPress: !isForm ? onPress : undefined,
|
|
5078
5100
|
onChange: isForm ? newValue => {
|
|
5079
5101
|
setCurrentValue(newValue);
|
|
@@ -5085,6 +5107,7 @@ function Choices({
|
|
|
5085
5107
|
};
|
|
5086
5108
|
return /*#__PURE__*/jsxRuntime.jsx(ChoicesContainer, {
|
|
5087
5109
|
direction: direction,
|
|
5110
|
+
shouldExpand: shouldExpand,
|
|
5088
5111
|
testID: testID,
|
|
5089
5112
|
id: id,
|
|
5090
5113
|
style: style,
|
|
@@ -5096,6 +5119,7 @@ function Choices({
|
|
|
5096
5119
|
});
|
|
5097
5120
|
return /*#__PURE__*/jsxRuntime.jsx(ChoiceItemContainer, {
|
|
5098
5121
|
direction: direction,
|
|
5122
|
+
shouldExpand: shouldExpand,
|
|
5099
5123
|
isLast: index === childrenArray.length - 1,
|
|
5100
5124
|
children: element
|
|
5101
5125
|
}, child.key);
|