@ornikar/kitt-universal 32.1.1-canary.28d1f9f68cb643b8c67559f72df59006a88da1e9.0 → 32.3.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 +10 -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/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 +40 -69
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +40 -69
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +38 -70
- 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 +103 -128
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +39 -71
- 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 +104 -129
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +40 -72
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +103 -128
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +30 -34
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +30 -34
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +30 -34
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +30 -34
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +30 -34
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +30 -34
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +30 -34
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +30 -34
- 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
|
@@ -3,7 +3,7 @@ import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, I
|
|
|
3
3
|
export { useClipboard, useContrastText, useMediaQuery, useSx, useToken } from 'native-base';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate, ReducedMotionConfig, ReduceMotion } from 'react-native-reanimated';
|
|
6
|
-
import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions,
|
|
6
|
+
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';
|
|
7
7
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
8
8
|
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';
|
|
9
9
|
import { BottomSheetView, BottomSheetScrollView, BottomSheetSectionList, BottomSheetFlatList, BottomSheetHandle, BottomSheetBackdrop, BottomSheetFooter, BottomSheetTextInput, BottomSheetModal, useBottomSheetModal } from '@gorhom/bottom-sheet';
|
|
@@ -857,15 +857,15 @@ const card = {
|
|
|
857
857
|
}
|
|
858
858
|
};
|
|
859
859
|
|
|
860
|
-
const webAnimationContentDuration$
|
|
861
|
-
const webAnimationContentEasing$
|
|
860
|
+
const webAnimationContentDuration$1 = 400;
|
|
861
|
+
const webAnimationContentEasing$1 = {
|
|
862
862
|
x1: 0.77,
|
|
863
863
|
y1: 0,
|
|
864
864
|
x2: 0.175,
|
|
865
865
|
y2: 1
|
|
866
866
|
};
|
|
867
|
-
const webAnimationOverlayDuration$
|
|
868
|
-
const webAnimationOverlayEasing$
|
|
867
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
868
|
+
const webAnimationOverlayEasing$1 = {
|
|
869
869
|
x1: 0.42,
|
|
870
870
|
y1: 0,
|
|
871
871
|
x2: 1,
|
|
@@ -900,12 +900,12 @@ const cardModal = {
|
|
|
900
900
|
},
|
|
901
901
|
animation: {
|
|
902
902
|
overlay: {
|
|
903
|
-
duration: webAnimationOverlayDuration$
|
|
904
|
-
easing: webAnimationOverlayEasing$
|
|
903
|
+
duration: webAnimationOverlayDuration$1,
|
|
904
|
+
easing: webAnimationOverlayEasing$1
|
|
905
905
|
},
|
|
906
906
|
content: {
|
|
907
|
-
duration: webAnimationContentDuration$
|
|
908
|
-
easing: webAnimationContentEasing$
|
|
907
|
+
duration: webAnimationContentDuration$1,
|
|
908
|
+
easing: webAnimationContentEasing$1
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
};
|
|
@@ -961,15 +961,15 @@ const choices = {
|
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
963
|
|
|
964
|
-
const webAnimationContentDuration
|
|
965
|
-
const webAnimationContentEasing
|
|
964
|
+
const webAnimationContentDuration = 400;
|
|
965
|
+
const webAnimationContentEasing = {
|
|
966
966
|
x1: 0.77,
|
|
967
967
|
y1: 0,
|
|
968
968
|
x2: 0.175,
|
|
969
969
|
y2: 1
|
|
970
970
|
};
|
|
971
|
-
const webAnimationOverlayDuration
|
|
972
|
-
const webAnimationOverlayEasing
|
|
971
|
+
const webAnimationOverlayDuration = 250;
|
|
972
|
+
const webAnimationOverlayEasing = {
|
|
973
973
|
x1: 0.42,
|
|
974
974
|
y1: 0,
|
|
975
975
|
x2: 1,
|
|
@@ -991,12 +991,12 @@ const dialogModal = {
|
|
|
991
991
|
},
|
|
992
992
|
animation: {
|
|
993
993
|
overlay: {
|
|
994
|
-
duration: webAnimationOverlayDuration
|
|
995
|
-
easing: webAnimationOverlayEasing
|
|
994
|
+
duration: webAnimationOverlayDuration,
|
|
995
|
+
easing: webAnimationOverlayEasing
|
|
996
996
|
},
|
|
997
997
|
content: {
|
|
998
|
-
duration: webAnimationContentDuration
|
|
999
|
-
easing: webAnimationContentEasing
|
|
998
|
+
duration: webAnimationContentDuration,
|
|
999
|
+
easing: webAnimationContentEasing
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
@@ -1905,20 +1905,6 @@ const forms = {
|
|
|
1905
1905
|
timePicker
|
|
1906
1906
|
};
|
|
1907
1907
|
|
|
1908
|
-
const webAnimationContentDuration = 600;
|
|
1909
|
-
const webAnimationContentEasing = {
|
|
1910
|
-
x1: 0.77,
|
|
1911
|
-
y1: 0,
|
|
1912
|
-
x2: 0.175,
|
|
1913
|
-
y2: 1
|
|
1914
|
-
};
|
|
1915
|
-
const webAnimationOverlayDuration = 250;
|
|
1916
|
-
const webAnimationOverlayEasing = {
|
|
1917
|
-
x1: 0.42,
|
|
1918
|
-
y1: 0,
|
|
1919
|
-
x2: 1,
|
|
1920
|
-
y2: 1
|
|
1921
|
-
};
|
|
1922
1908
|
const fullscreenModal = {
|
|
1923
1909
|
header: {
|
|
1924
1910
|
height: 56
|
|
@@ -1932,12 +1918,22 @@ const fullscreenModal = {
|
|
|
1932
1918
|
},
|
|
1933
1919
|
animation: {
|
|
1934
1920
|
overlay: {
|
|
1935
|
-
duration:
|
|
1936
|
-
easing:
|
|
1921
|
+
duration: 250,
|
|
1922
|
+
easing: {
|
|
1923
|
+
x1: 0.42,
|
|
1924
|
+
y1: 0,
|
|
1925
|
+
x2: 1,
|
|
1926
|
+
y2: 1
|
|
1927
|
+
}
|
|
1937
1928
|
},
|
|
1938
1929
|
content: {
|
|
1939
|
-
duration:
|
|
1940
|
-
easing:
|
|
1930
|
+
duration: 600,
|
|
1931
|
+
easing: {
|
|
1932
|
+
x1: 0.77,
|
|
1933
|
+
y1: 0,
|
|
1934
|
+
x2: 0.175,
|
|
1935
|
+
y2: 1
|
|
1936
|
+
}
|
|
1941
1937
|
}
|
|
1942
1938
|
}
|
|
1943
1939
|
};
|
|
@@ -4814,7 +4810,6 @@ function AnimatedChoiceItemView({
|
|
|
4814
4810
|
isDisabled,
|
|
4815
4811
|
isSelected,
|
|
4816
4812
|
hasError,
|
|
4817
|
-
shouldExpand = false,
|
|
4818
4813
|
animatedStyles
|
|
4819
4814
|
}) {
|
|
4820
4815
|
const sx = useSx();
|
|
@@ -4833,9 +4828,7 @@ function AnimatedChoiceItemView({
|
|
|
4833
4828
|
isHovered,
|
|
4834
4829
|
isPressed
|
|
4835
4830
|
}),
|
|
4836
|
-
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4837
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4838
|
-
flexShrink: shouldExpand ? 1 : undefined
|
|
4831
|
+
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4839
4832
|
});
|
|
4840
4833
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
4841
4834
|
style: [style, animatedStyles],
|
|
@@ -4899,7 +4892,6 @@ function ChoiceItem({
|
|
|
4899
4892
|
value,
|
|
4900
4893
|
selected,
|
|
4901
4894
|
disabled,
|
|
4902
|
-
shouldExpand = false,
|
|
4903
4895
|
children,
|
|
4904
4896
|
isPressedInternal,
|
|
4905
4897
|
isHoveredInternal,
|
|
@@ -4939,8 +4931,6 @@ function ChoiceItem({
|
|
|
4939
4931
|
checked: selected
|
|
4940
4932
|
},
|
|
4941
4933
|
style: style,
|
|
4942
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4943
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4944
4934
|
onBlur: onBlur,
|
|
4945
4935
|
onFocus: onFocus,
|
|
4946
4936
|
onPress: e => {
|
|
@@ -4960,8 +4950,6 @@ function ChoiceItem({
|
|
|
4960
4950
|
});
|
|
4961
4951
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4962
4952
|
space: "kitt.2",
|
|
4963
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4964
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4965
4953
|
children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
4966
4954
|
animatedStyles: backgroundStyles,
|
|
4967
4955
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -4969,13 +4957,10 @@ function ChoiceItem({
|
|
|
4969
4957
|
isSelected: selected,
|
|
4970
4958
|
isPressed: isPressed || isPressedInternal,
|
|
4971
4959
|
hasError: hasError,
|
|
4972
|
-
shouldExpand: shouldExpand,
|
|
4973
4960
|
size: size,
|
|
4974
4961
|
children: [/*#__PURE__*/jsxs(Stack, {
|
|
4975
4962
|
alignItems: "center",
|
|
4976
4963
|
space: "kitt.2",
|
|
4977
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4978
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4979
4964
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
4980
4965
|
color: textColor,
|
|
4981
4966
|
icon: icon
|
|
@@ -5004,49 +4989,36 @@ function ChoiceItem({
|
|
|
5004
4989
|
function ChoiceItemContainer({
|
|
5005
4990
|
children,
|
|
5006
4991
|
direction,
|
|
5007
|
-
shouldExpand,
|
|
5008
4992
|
isLast
|
|
5009
4993
|
}) {
|
|
5010
4994
|
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
5011
|
-
const
|
|
4995
|
+
const flexProps = direction === 'row' ? {
|
|
5012
4996
|
flexGrow: 1,
|
|
5013
4997
|
flexShrink: 1,
|
|
5014
4998
|
flexBasis: 0
|
|
5015
4999
|
} : {};
|
|
5016
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
5017
|
-
flexGrow: 1,
|
|
5018
|
-
flexShrink: 1
|
|
5019
|
-
} : {};
|
|
5020
5000
|
return /*#__PURE__*/jsx(View, {
|
|
5021
5001
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
5022
5002
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
5023
|
-
...
|
|
5024
|
-
...shouldExpandFlexProps,
|
|
5003
|
+
...flexProps,
|
|
5025
5004
|
children: children
|
|
5026
5005
|
});
|
|
5027
5006
|
}
|
|
5028
5007
|
|
|
5029
5008
|
function ChoicesContainer({
|
|
5030
5009
|
direction,
|
|
5031
|
-
shouldExpand,
|
|
5032
5010
|
contentContainerStyle,
|
|
5033
5011
|
...props
|
|
5034
5012
|
}) {
|
|
5035
|
-
const shouldExpandFlexProps = shouldExpand ? {
|
|
5036
|
-
flexGrow: 1,
|
|
5037
|
-
flexShrink: 1
|
|
5038
|
-
} : {};
|
|
5039
5013
|
if (direction === 'row') {
|
|
5040
|
-
return /*#__PURE__*/jsx(ScrollView, {
|
|
5014
|
+
return /*#__PURE__*/jsx(ScrollView$2, {
|
|
5041
5015
|
horizontal: true,
|
|
5042
|
-
contentContainerStyle:
|
|
5043
|
-
...props
|
|
5044
|
-
...shouldExpandFlexProps
|
|
5016
|
+
contentContainerStyle: contentContainerStyle,
|
|
5017
|
+
...props
|
|
5045
5018
|
});
|
|
5046
5019
|
}
|
|
5047
|
-
return /*#__PURE__*/jsx(View, {
|
|
5048
|
-
...props
|
|
5049
|
-
...shouldExpandFlexProps
|
|
5020
|
+
return /*#__PURE__*/jsx(View$2, {
|
|
5021
|
+
...props
|
|
5050
5022
|
});
|
|
5051
5023
|
}
|
|
5052
5024
|
|
|
@@ -5058,7 +5030,6 @@ function Choices({
|
|
|
5058
5030
|
type,
|
|
5059
5031
|
direction = 'column',
|
|
5060
5032
|
disabled,
|
|
5061
|
-
shouldExpand = false,
|
|
5062
5033
|
children,
|
|
5063
5034
|
value,
|
|
5064
5035
|
onPress,
|
|
@@ -5075,7 +5046,6 @@ function Choices({
|
|
|
5075
5046
|
const sharedProps = {
|
|
5076
5047
|
type,
|
|
5077
5048
|
disabled,
|
|
5078
|
-
shouldExpand,
|
|
5079
5049
|
onPress: !isForm ? onPress : undefined,
|
|
5080
5050
|
onChange: isForm ? newValue => {
|
|
5081
5051
|
setCurrentValue(newValue);
|
|
@@ -5087,7 +5057,6 @@ function Choices({
|
|
|
5087
5057
|
};
|
|
5088
5058
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
5089
5059
|
direction: direction,
|
|
5090
|
-
shouldExpand: shouldExpand,
|
|
5091
5060
|
testID: testID,
|
|
5092
5061
|
id: id,
|
|
5093
5062
|
style: style,
|
|
@@ -5099,7 +5068,6 @@ function Choices({
|
|
|
5099
5068
|
});
|
|
5100
5069
|
return /*#__PURE__*/jsx(ChoiceItemContainer, {
|
|
5101
5070
|
direction: direction,
|
|
5102
|
-
shouldExpand: shouldExpand,
|
|
5103
5071
|
isLast: index === childrenArray.length - 1,
|
|
5104
5072
|
children: element
|
|
5105
5073
|
}, child.key);
|