@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
|
@@ -4710,8 +4710,7 @@ function AnimatedChoiceItemView({
|
|
|
4710
4710
|
isPressed,
|
|
4711
4711
|
isDisabled,
|
|
4712
4712
|
isSelected,
|
|
4713
|
-
hasError
|
|
4714
|
-
shouldExpand = false
|
|
4713
|
+
hasError
|
|
4715
4714
|
}) {
|
|
4716
4715
|
const theme = useTheme();
|
|
4717
4716
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
@@ -4730,8 +4729,6 @@ function AnimatedChoiceItemView({
|
|
|
4730
4729
|
isPressed
|
|
4731
4730
|
}),
|
|
4732
4731
|
padding: size === 'small' ? 'kitt.2' : 'kitt.4',
|
|
4733
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4734
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4735
4732
|
_web: {
|
|
4736
4733
|
style: {
|
|
4737
4734
|
transitionProperty: theme.kitt.choices.item.transition.property,
|
|
@@ -4767,7 +4764,6 @@ function ChoiceItem({
|
|
|
4767
4764
|
value,
|
|
4768
4765
|
selected,
|
|
4769
4766
|
disabled,
|
|
4770
|
-
shouldExpand = false,
|
|
4771
4767
|
children,
|
|
4772
4768
|
isPressedInternal,
|
|
4773
4769
|
isHoveredInternal,
|
|
@@ -4803,8 +4799,6 @@ function ChoiceItem({
|
|
|
4803
4799
|
checked: selected
|
|
4804
4800
|
},
|
|
4805
4801
|
style: style,
|
|
4806
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4807
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4808
4802
|
onBlur: onBlur,
|
|
4809
4803
|
onFocus: onFocus,
|
|
4810
4804
|
onPress: e => {
|
|
@@ -4824,8 +4818,6 @@ function ChoiceItem({
|
|
|
4824
4818
|
});
|
|
4825
4819
|
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4826
4820
|
space: "kitt.2",
|
|
4827
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4828
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4829
4821
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
|
|
4830
4822
|
animatedStyles: backgroundStyles,
|
|
4831
4823
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4833,13 +4825,10 @@ function ChoiceItem({
|
|
|
4833
4825
|
isSelected: selected,
|
|
4834
4826
|
isPressed: isPressed || isPressedInternal,
|
|
4835
4827
|
hasError: hasError,
|
|
4836
|
-
shouldExpand: shouldExpand,
|
|
4837
4828
|
size: size,
|
|
4838
4829
|
children: [/*#__PURE__*/jsxRuntime.jsxs(Stack, {
|
|
4839
4830
|
alignItems: "center",
|
|
4840
4831
|
space: "kitt.2",
|
|
4841
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4842
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4843
4832
|
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
4844
4833
|
color: textColor,
|
|
4845
4834
|
icon: icon
|
|
@@ -4868,49 +4857,36 @@ function ChoiceItem({
|
|
|
4868
4857
|
function ChoiceItemContainer({
|
|
4869
4858
|
children,
|
|
4870
4859
|
direction,
|
|
4871
|
-
shouldExpand,
|
|
4872
4860
|
isLast
|
|
4873
4861
|
}) {
|
|
4874
4862
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
4875
|
-
const
|
|
4863
|
+
const flexProps = direction === 'row' ? {
|
|
4876
4864
|
flexGrow: 1,
|
|
4877
4865
|
flexShrink: 1,
|
|
4878
4866
|
flexBasis: 0
|
|
4879
4867
|
} : {};
|
|
4880
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
4881
|
-
flexGrow: 1,
|
|
4882
|
-
flexShrink: 1
|
|
4883
|
-
} : {};
|
|
4884
4868
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4885
4869
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
4886
4870
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
4887
|
-
...
|
|
4888
|
-
...shouldExpandFlexProps,
|
|
4871
|
+
...flexProps,
|
|
4889
4872
|
children: children
|
|
4890
4873
|
});
|
|
4891
4874
|
}
|
|
4892
4875
|
|
|
4893
4876
|
function ChoicesContainer({
|
|
4894
4877
|
direction,
|
|
4895
|
-
shouldExpand,
|
|
4896
4878
|
contentContainerStyle,
|
|
4897
4879
|
...props
|
|
4898
4880
|
}) {
|
|
4899
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
4900
|
-
flexGrow: 1,
|
|
4901
|
-
flexShrink: 1
|
|
4902
|
-
} : {};
|
|
4903
4881
|
if (direction === 'row') {
|
|
4904
|
-
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
4882
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.ScrollView, {
|
|
4905
4883
|
horizontal: true,
|
|
4906
|
-
contentContainerStyle:
|
|
4907
|
-
...props
|
|
4908
|
-
...shouldExpandFlexProps
|
|
4884
|
+
contentContainerStyle: contentContainerStyle,
|
|
4885
|
+
...props
|
|
4909
4886
|
});
|
|
4910
4887
|
}
|
|
4911
|
-
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4912
|
-
...props
|
|
4913
|
-
...shouldExpandFlexProps
|
|
4888
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
4889
|
+
...props
|
|
4914
4890
|
});
|
|
4915
4891
|
}
|
|
4916
4892
|
|
|
@@ -4922,7 +4898,6 @@ function Choices({
|
|
|
4922
4898
|
type,
|
|
4923
4899
|
direction = 'column',
|
|
4924
4900
|
disabled,
|
|
4925
|
-
shouldExpand = false,
|
|
4926
4901
|
children,
|
|
4927
4902
|
value,
|
|
4928
4903
|
onPress,
|
|
@@ -4939,7 +4914,6 @@ function Choices({
|
|
|
4939
4914
|
const sharedProps = {
|
|
4940
4915
|
type,
|
|
4941
4916
|
disabled,
|
|
4942
|
-
shouldExpand,
|
|
4943
4917
|
onPress: !isForm ? onPress : undefined,
|
|
4944
4918
|
onChange: isForm ? newValue => {
|
|
4945
4919
|
setCurrentValue(newValue);
|
|
@@ -4951,7 +4925,6 @@ function Choices({
|
|
|
4951
4925
|
};
|
|
4952
4926
|
return /*#__PURE__*/jsxRuntime.jsx(ChoicesContainer, {
|
|
4953
4927
|
direction: direction,
|
|
4954
|
-
shouldExpand: shouldExpand,
|
|
4955
4928
|
testID: testID,
|
|
4956
4929
|
id: id,
|
|
4957
4930
|
style: style,
|
|
@@ -4963,7 +4936,6 @@ function Choices({
|
|
|
4963
4936
|
});
|
|
4964
4937
|
return /*#__PURE__*/jsxRuntime.jsx(ChoiceItemContainer, {
|
|
4965
4938
|
direction: direction,
|
|
4966
|
-
shouldExpand: shouldExpand,
|
|
4967
4939
|
isLast: index === childrenArray.length - 1,
|
|
4968
4940
|
children: element
|
|
4969
4941
|
}, child.key);
|