@ornikar/kitt-universal 32.1.1-canary.28d1f9f68cb643b8c67559f72df59006a88da1e9.0 → 32.2.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 +1 -2
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +1 -2
- 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 +1 -2
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts +1 -2
- 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/index-metro.es.android.js +10 -35
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +10 -35
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +8 -36
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +8 -36
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +9 -37
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +9 -37
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +10 -38
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +10 -38
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4838,7 +4838,6 @@ function AnimatedChoiceItemView({
|
|
|
4838
4838
|
isDisabled,
|
|
4839
4839
|
isSelected,
|
|
4840
4840
|
hasError,
|
|
4841
|
-
shouldExpand = false,
|
|
4842
4841
|
animatedStyles
|
|
4843
4842
|
}) {
|
|
4844
4843
|
const sx = nativeBase.useSx();
|
|
@@ -4857,9 +4856,7 @@ function AnimatedChoiceItemView({
|
|
|
4857
4856
|
isHovered,
|
|
4858
4857
|
isPressed
|
|
4859
4858
|
}),
|
|
4860
|
-
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4861
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4862
|
-
flexShrink: shouldExpand ? 1 : undefined
|
|
4859
|
+
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4863
4860
|
});
|
|
4864
4861
|
return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
|
|
4865
4862
|
style: [style, animatedStyles],
|
|
@@ -4923,7 +4920,6 @@ function ChoiceItem({
|
|
|
4923
4920
|
value,
|
|
4924
4921
|
selected,
|
|
4925
4922
|
disabled,
|
|
4926
|
-
shouldExpand = false,
|
|
4927
4923
|
children,
|
|
4928
4924
|
isPressedInternal,
|
|
4929
4925
|
isHoveredInternal,
|
|
@@ -4963,8 +4959,6 @@ function ChoiceItem({
|
|
|
4963
4959
|
checked: selected
|
|
4964
4960
|
},
|
|
4965
4961
|
style: style,
|
|
4966
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4967
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4968
4962
|
onBlur: onBlur,
|
|
4969
4963
|
onFocus: onFocus,
|
|
4970
4964
|
onPress: e => {
|
|
@@ -4984,8 +4978,6 @@ function ChoiceItem({
|
|
|
4984
4978
|
});
|
|
4985
4979
|
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4986
4980
|
space: "kitt.2",
|
|
4987
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4988
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4989
4981
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
|
|
4990
4982
|
animatedStyles: backgroundStyles,
|
|
4991
4983
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4993,13 +4985,10 @@ function ChoiceItem({
|
|
|
4993
4985
|
isSelected: selected,
|
|
4994
4986
|
isPressed: isPressed || isPressedInternal,
|
|
4995
4987
|
hasError: hasError,
|
|
4996
|
-
shouldExpand: shouldExpand,
|
|
4997
4988
|
size: size,
|
|
4998
4989
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Stack, {
|
|
4999
4990
|
alignItems: "center",
|
|
5000
4991
|
space: "kitt.2",
|
|
5001
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
5002
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
5003
4992
|
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
5004
4993
|
color: textColor,
|
|
5005
4994
|
icon: icon
|
|
@@ -5028,49 +5017,36 @@ function ChoiceItem({
|
|
|
5028
5017
|
function ChoiceItemContainer({
|
|
5029
5018
|
children,
|
|
5030
5019
|
direction,
|
|
5031
|
-
shouldExpand,
|
|
5032
5020
|
isLast
|
|
5033
5021
|
}) {
|
|
5034
5022
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
5035
|
-
const
|
|
5023
|
+
const flexProps = direction === 'row' ? {
|
|
5036
5024
|
flexGrow: 1,
|
|
5037
5025
|
flexShrink: 1,
|
|
5038
5026
|
flexBasis: 0
|
|
5039
5027
|
} : {};
|
|
5040
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
5041
|
-
flexGrow: 1,
|
|
5042
|
-
flexShrink: 1
|
|
5043
|
-
} : {};
|
|
5044
5028
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5045
5029
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
5046
5030
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
5047
|
-
...
|
|
5048
|
-
...shouldExpandFlexProps,
|
|
5031
|
+
...flexProps,
|
|
5049
5032
|
children: children
|
|
5050
5033
|
});
|
|
5051
5034
|
}
|
|
5052
5035
|
|
|
5053
5036
|
function ChoicesContainer({
|
|
5054
5037
|
direction,
|
|
5055
|
-
shouldExpand,
|
|
5056
5038
|
contentContainerStyle,
|
|
5057
5039
|
...props
|
|
5058
5040
|
}) {
|
|
5059
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
5060
|
-
flexGrow: 1,
|
|
5061
|
-
flexShrink: 1
|
|
5062
|
-
} : {};
|
|
5063
5041
|
if (direction === 'row') {
|
|
5064
|
-
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
5042
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
5065
5043
|
horizontal: true,
|
|
5066
|
-
contentContainerStyle:
|
|
5067
|
-
...props
|
|
5068
|
-
...shouldExpandFlexProps
|
|
5044
|
+
contentContainerStyle: contentContainerStyle,
|
|
5045
|
+
...props
|
|
5069
5046
|
});
|
|
5070
5047
|
}
|
|
5071
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5072
|
-
...props
|
|
5073
|
-
...shouldExpandFlexProps
|
|
5048
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
5049
|
+
...props
|
|
5074
5050
|
});
|
|
5075
5051
|
}
|
|
5076
5052
|
|
|
@@ -5082,7 +5058,6 @@ function Choices({
|
|
|
5082
5058
|
type,
|
|
5083
5059
|
direction = 'column',
|
|
5084
5060
|
disabled,
|
|
5085
|
-
shouldExpand = false,
|
|
5086
5061
|
children,
|
|
5087
5062
|
value,
|
|
5088
5063
|
onPress,
|
|
@@ -5099,7 +5074,6 @@ function Choices({
|
|
|
5099
5074
|
const sharedProps = {
|
|
5100
5075
|
type,
|
|
5101
5076
|
disabled,
|
|
5102
|
-
shouldExpand,
|
|
5103
5077
|
onPress: !isForm ? onPress : undefined,
|
|
5104
5078
|
onChange: isForm ? newValue => {
|
|
5105
5079
|
setCurrentValue(newValue);
|
|
@@ -5111,7 +5085,6 @@ function Choices({
|
|
|
5111
5085
|
};
|
|
5112
5086
|
return /*#__PURE__*/jsxRuntime.jsx(ChoicesContainer, {
|
|
5113
5087
|
direction: direction,
|
|
5114
|
-
shouldExpand: shouldExpand,
|
|
5115
5088
|
testID: testID,
|
|
5116
5089
|
id: id,
|
|
5117
5090
|
style: style,
|
|
@@ -5123,7 +5096,6 @@ function Choices({
|
|
|
5123
5096
|
});
|
|
5124
5097
|
return /*#__PURE__*/jsxRuntime.jsx(ChoiceItemContainer, {
|
|
5125
5098
|
direction: direction,
|
|
5126
|
-
shouldExpand: shouldExpand,
|
|
5127
5099
|
isLast: index === childrenArray.length - 1,
|
|
5128
5100
|
children: element
|
|
5129
5101
|
}, child.key);
|