@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
package/CHANGELOG.md
CHANGED
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [32.
|
|
6
|
+
## [32.2.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.0.1...@ornikar/kitt-universal@32.2.0) (2025-12-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
11
|
* **bumper:** update palettes and tokens OSE-21408 ([#2798](https://github.com/ornikar/kitt/issues/2798)) ([8a8e3cf](https://github.com/ornikar/kitt/commit/8a8e3cfaa9c70e1f0ea2237f049dbe011440266c))
|
|
12
|
-
* **kitt-universal/Choices:** add shouldExpand property ([4e7b6a3](https://github.com/ornikar/kitt/commit/4e7b6a34351ef5d388306734921de6f55bbf9b13))
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
|
|
@@ -9,8 +9,7 @@ export interface AnimatedChoiceItemViewProps {
|
|
|
9
9
|
isDisabled?: boolean;
|
|
10
10
|
isSelected?: boolean;
|
|
11
11
|
hasError?: boolean;
|
|
12
|
-
shouldExpand?: boolean;
|
|
13
12
|
animatedStyles?: ViewStyle;
|
|
14
13
|
}
|
|
15
|
-
export declare function AnimatedChoiceItemView({ children, size, isHovered, isPressed, isDisabled, isSelected, hasError,
|
|
14
|
+
export declare function AnimatedChoiceItemView({ children, size, isHovered, isPressed, isDisabled, isSelected, hasError, animatedStyles, }: AnimatedChoiceItemViewProps): ReactNode;
|
|
16
15
|
//# sourceMappingURL=AnimatedChoiceItemView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedChoiceItemView.d.ts","sourceRoot":"","sources":["../../../src/Choices/AnimatedChoiceItemView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"AnimatedChoiceItemView.d.ts","sourceRoot":"","sources":["../../../src/Choices/AnimatedChoiceItemView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B;AAED,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,EACR,cAAc,GACf,EAAE,2BAA2B,GAAG,SAAS,CAazC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { AnimatedChoiceItemViewProps } from './AnimatedChoiceItemView';
|
|
3
|
-
export declare function AnimatedChoiceItemView({ children, size, isHovered, isPressed, isDisabled, isSelected, hasError,
|
|
3
|
+
export declare function AnimatedChoiceItemView({ children, size, isHovered, isPressed, isDisabled, isSelected, hasError, }: AnimatedChoiceItemViewProps): ReactNode;
|
|
4
4
|
//# sourceMappingURL=AnimatedChoiceItemView.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedChoiceItemView.web.d.ts","sourceRoot":"","sources":["../../../src/Choices/AnimatedChoiceItemView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAI5E,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,
|
|
1
|
+
{"version":3,"file":"AnimatedChoiceItemView.web.d.ts","sourceRoot":"","sources":["../../../src/Choices/AnimatedChoiceItemView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAI5E,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,GACT,EAAE,2BAA2B,GAAG,SAAS,CAsBzC"}
|
|
@@ -8,7 +8,6 @@ export interface BaseChoiceItemProps<V> {
|
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
hasError?: boolean;
|
|
11
|
-
shouldExpand?: boolean;
|
|
12
11
|
size?: ChoiceItemSize;
|
|
13
12
|
orientation?: 'horizontal' | 'vertical';
|
|
14
13
|
icon?: ReactElement<any>;
|
|
@@ -41,5 +40,5 @@ export interface ChoiceItemFormElementProps<V> extends BaseChoiceItemProps<V> {
|
|
|
41
40
|
onPress?: never;
|
|
42
41
|
}
|
|
43
42
|
export type ChoiceItemProps<V> = ChoiceItemButtonProps<V> | ChoiceItemFormElementProps<V>;
|
|
44
|
-
export declare function ChoiceItem<V>({ type, orientation, icon, hasError, description, value, selected, disabled,
|
|
43
|
+
export declare function ChoiceItem<V>({ type, orientation, icon, hasError, description, value, selected, disabled, children, isPressedInternal, isHoveredInternal, onPress, onChange, onBlur, onFocus, size, style, testID, }: ChoiceItemProps<V>): ReactNode;
|
|
45
44
|
//# sourceMappingURL=ChoiceItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceItem.d.ts","sourceRoot":"","sources":["../../../src/Choices/ChoiceItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAIlD,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"ChoiceItem.d.ts","sourceRoot":"","sources":["../../../src/Choices/ChoiceItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAIlD,MAAM,MAAM,cAAc,GAAG,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AAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC3E,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC,CAAC,CAAC,CAAC;AAE1F,wBAAgB,UAAU,CAAC,CAAC,EAAE,EAC5B,IAAe,EACf,WAA0B,EAC1B,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,GACP,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAkFhC"}
|
|
@@ -4,8 +4,7 @@ interface ChoiceItemContainerProps {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
isLast?: boolean;
|
|
6
6
|
direction: ChoicesDirection;
|
|
7
|
-
shouldExpand: boolean;
|
|
8
7
|
}
|
|
9
|
-
export declare function ChoiceItemContainer({ children, direction,
|
|
8
|
+
export declare function ChoiceItemContainer({ children, direction, isLast }: ChoiceItemContainerProps): ReactNode;
|
|
10
9
|
export {};
|
|
11
10
|
//# sourceMappingURL=ChoiceItemContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChoiceItemContainer.d.ts","sourceRoot":"","sources":["../../../src/Choices/ChoiceItemContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChoiceItemContainer.d.ts","sourceRoot":"","sources":["../../../src/Choices/ChoiceItemContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAElD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,wBAAwB,GAAG,SAAS,CAaxG"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ViewProps
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
3
|
import type { Except, SetOptional } from 'type-fest';
|
|
4
|
-
import {
|
|
4
|
+
import type { ScrollViewProps } from '../native-base/primitives';
|
|
5
5
|
import type { ChoiceItemButtonProps, ChoiceItemFormElementProps, ChoiceItemType } from './ChoiceItem';
|
|
6
6
|
import { ChoiceItem } from './ChoiceItem';
|
|
7
7
|
export type ChoicesDirection = 'row' | 'column';
|
|
8
|
-
type ChoicesPropsToPick = 'type' | 'disabled' | '
|
|
8
|
+
type ChoicesPropsToPick = 'type' | 'disabled' | 'value' | 'onPress' | 'onChange' | 'onBlur' | 'onFocus';
|
|
9
9
|
type ChoicesSize = 'small';
|
|
10
10
|
export interface BaseChoicesProps<V> {
|
|
11
11
|
id?: string;
|
|
@@ -13,7 +13,7 @@ export interface BaseChoicesProps<V> {
|
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
direction?: ChoicesDirection;
|
|
15
15
|
size?: ChoicesSize;
|
|
16
|
-
style?:
|
|
16
|
+
style?: ViewProps['style'];
|
|
17
17
|
contentContainerStyle?: ScrollViewProps['contentContainerStyle'];
|
|
18
18
|
}
|
|
19
19
|
export interface ChoicesButtonProps<V, ChoiceType extends ChoiceItemButtonProps<V>['type']> extends BaseChoicesProps<V>, Pick<ChoiceItemButtonProps<V>, ChoicesPropsToPick> {
|
|
@@ -25,7 +25,7 @@ export interface ChoicesFormElementProps<V, ChoiceType extends ChoiceItemFormEle
|
|
|
25
25
|
export type ChoicesItemPropsFromChoiceType<V, ChoiceType extends ChoiceItemType> = ChoiceType extends ChoiceItemFormElementProps<V>['type'] ? ChoiceItemFormElementProps<V> : ChoiceItemButtonProps<V>;
|
|
26
26
|
export type ChoicesProps<V, ChoiceType extends ChoiceItemType> = ChoiceType extends ChoiceItemFormElementProps<V>['type'] ? ChoicesFormElementProps<V, ChoiceType> : ChoicesButtonProps<V, 'button'>;
|
|
27
27
|
type ExcludeChoiceItemProvidedByChoices = 'type' | 'onPress' | 'onChange' | 'onFocus' | 'onBlur';
|
|
28
|
-
type OptionalChoiceItemProvidedByChoices = 'disabled' | '
|
|
28
|
+
type OptionalChoiceItemProvidedByChoices = 'disabled' | 'size';
|
|
29
29
|
export interface CreateChoices<V, ChoiceType extends ChoiceItemType> {
|
|
30
30
|
(props: ChoicesProps<V, ChoiceType>): ReactNode;
|
|
31
31
|
Item: (props: SetOptional<Except<ChoicesItemPropsFromChoiceType<V, ChoiceType>, OptionalChoiceItemProvidedByChoices>, ExcludeChoiceItemProvidedByChoices>) => ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Choices.d.ts","sourceRoot":"","sources":["../../../src/Choices/Choices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Choices.d.ts","sourceRoot":"","sources":["../../../src/Choices/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sxs, Fragment } from 'react/jsx-runtime';
|
|
|
7
7
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
8
8
|
import _extends from '@babel/runtime/helpers/extends';
|
|
9
9
|
import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate, ReducedMotionConfig, ReduceMotion } from 'react-native-reanimated';
|
|
10
|
-
import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions,
|
|
10
|
+
import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions, PixelRatio } from 'react-native';
|
|
11
11
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
12
12
|
import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
|
|
13
13
|
import { BottomSheetView, BottomSheetScrollView, BottomSheetSectionList, BottomSheetFlatList, BottomSheetHandle, BottomSheetBackdrop, BottomSheetFooter, BottomSheetTextInput, BottomSheetModal, useBottomSheetModal } from '@gorhom/bottom-sheet';
|
|
@@ -4811,7 +4811,6 @@ function AnimatedChoiceItemView({
|
|
|
4811
4811
|
isDisabled,
|
|
4812
4812
|
isSelected,
|
|
4813
4813
|
hasError,
|
|
4814
|
-
shouldExpand = false,
|
|
4815
4814
|
animatedStyles
|
|
4816
4815
|
}) {
|
|
4817
4816
|
const sx = useSx();
|
|
@@ -4830,9 +4829,7 @@ function AnimatedChoiceItemView({
|
|
|
4830
4829
|
isHovered,
|
|
4831
4830
|
isPressed
|
|
4832
4831
|
}),
|
|
4833
|
-
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4834
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4835
|
-
flexShrink: shouldExpand ? 1 : undefined
|
|
4832
|
+
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4836
4833
|
});
|
|
4837
4834
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
4838
4835
|
style: [style, animatedStyles],
|
|
@@ -4896,7 +4893,6 @@ function ChoiceItem({
|
|
|
4896
4893
|
value,
|
|
4897
4894
|
selected,
|
|
4898
4895
|
disabled,
|
|
4899
|
-
shouldExpand = false,
|
|
4900
4896
|
children,
|
|
4901
4897
|
isPressedInternal,
|
|
4902
4898
|
isHoveredInternal,
|
|
@@ -4936,8 +4932,6 @@ function ChoiceItem({
|
|
|
4936
4932
|
checked: selected
|
|
4937
4933
|
},
|
|
4938
4934
|
style: style,
|
|
4939
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4940
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4941
4935
|
onBlur: onBlur,
|
|
4942
4936
|
onFocus: onFocus,
|
|
4943
4937
|
onPress: e => {
|
|
@@ -4957,8 +4951,6 @@ function ChoiceItem({
|
|
|
4957
4951
|
});
|
|
4958
4952
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4959
4953
|
space: "kitt.2",
|
|
4960
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4961
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4962
4954
|
children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
4963
4955
|
animatedStyles: backgroundStyles,
|
|
4964
4956
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4966,13 +4958,10 @@ function ChoiceItem({
|
|
|
4966
4958
|
isSelected: selected,
|
|
4967
4959
|
isPressed: isPressed || isPressedInternal,
|
|
4968
4960
|
hasError: hasError,
|
|
4969
|
-
shouldExpand: shouldExpand,
|
|
4970
4961
|
size: size,
|
|
4971
4962
|
children: [/*#__PURE__*/jsxs(Stack, {
|
|
4972
4963
|
alignItems: "center",
|
|
4973
4964
|
space: "kitt.2",
|
|
4974
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4975
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4976
4965
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
4977
4966
|
color: textColor,
|
|
4978
4967
|
icon: icon
|
|
@@ -5001,46 +4990,36 @@ function ChoiceItem({
|
|
|
5001
4990
|
function ChoiceItemContainer({
|
|
5002
4991
|
children,
|
|
5003
4992
|
direction,
|
|
5004
|
-
shouldExpand,
|
|
5005
4993
|
isLast
|
|
5006
4994
|
}) {
|
|
5007
4995
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
5008
|
-
const
|
|
4996
|
+
const flexProps = direction === 'row' ? {
|
|
5009
4997
|
flexGrow: 1,
|
|
5010
4998
|
flexShrink: 1,
|
|
5011
4999
|
flexBasis: 0
|
|
5012
5000
|
} : {};
|
|
5013
|
-
|
|
5014
|
-
flexGrow: 1,
|
|
5015
|
-
flexShrink: 1
|
|
5016
|
-
} : {};
|
|
5017
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread(_objectSpread({
|
|
5001
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5018
5002
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
5019
5003
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined
|
|
5020
|
-
},
|
|
5004
|
+
}, flexProps), {}, {
|
|
5021
5005
|
children: children
|
|
5022
5006
|
}));
|
|
5023
5007
|
}
|
|
5024
5008
|
|
|
5025
|
-
const _excluded$G = ["direction", "
|
|
5009
|
+
const _excluded$G = ["direction", "contentContainerStyle"];
|
|
5026
5010
|
function ChoicesContainer(_ref) {
|
|
5027
5011
|
let {
|
|
5028
5012
|
direction,
|
|
5029
|
-
shouldExpand,
|
|
5030
5013
|
contentContainerStyle
|
|
5031
5014
|
} = _ref,
|
|
5032
5015
|
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
5033
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
5034
|
-
flexGrow: 1,
|
|
5035
|
-
flexShrink: 1
|
|
5036
|
-
} : {};
|
|
5037
5016
|
if (direction === 'row') {
|
|
5038
|
-
return /*#__PURE__*/jsx(ScrollView, _objectSpread(
|
|
5017
|
+
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
5039
5018
|
horizontal: true,
|
|
5040
|
-
contentContainerStyle:
|
|
5041
|
-
}, props)
|
|
5019
|
+
contentContainerStyle: contentContainerStyle
|
|
5020
|
+
}, props));
|
|
5042
5021
|
}
|
|
5043
|
-
return /*#__PURE__*/jsx(View, _objectSpread(
|
|
5022
|
+
return /*#__PURE__*/jsx(View$2, _objectSpread({}, props));
|
|
5044
5023
|
}
|
|
5045
5024
|
|
|
5046
5025
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5051,7 +5030,6 @@ function Choices({
|
|
|
5051
5030
|
type,
|
|
5052
5031
|
direction = 'column',
|
|
5053
5032
|
disabled,
|
|
5054
|
-
shouldExpand = false,
|
|
5055
5033
|
children,
|
|
5056
5034
|
value,
|
|
5057
5035
|
onPress,
|
|
@@ -5068,7 +5046,6 @@ function Choices({
|
|
|
5068
5046
|
const sharedProps = {
|
|
5069
5047
|
type,
|
|
5070
5048
|
disabled,
|
|
5071
|
-
shouldExpand,
|
|
5072
5049
|
onPress: !isForm ? onPress : undefined,
|
|
5073
5050
|
onChange: isForm ? newValue => {
|
|
5074
5051
|
setCurrentValue(newValue);
|
|
@@ -5080,7 +5057,6 @@ function Choices({
|
|
|
5080
5057
|
};
|
|
5081
5058
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
5082
5059
|
direction: direction,
|
|
5083
|
-
shouldExpand: shouldExpand,
|
|
5084
5060
|
testID: testID,
|
|
5085
5061
|
id: id,
|
|
5086
5062
|
style: style,
|
|
@@ -5091,7 +5067,6 @@ function Choices({
|
|
|
5091
5067
|
}, sharedProps));
|
|
5092
5068
|
return /*#__PURE__*/jsx(ChoiceItemContainer, {
|
|
5093
5069
|
direction: direction,
|
|
5094
|
-
shouldExpand: shouldExpand,
|
|
5095
5070
|
isLast: index === childrenArray.length - 1,
|
|
5096
5071
|
children: element
|
|
5097
5072
|
}, child.key);
|