@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
package/dist/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
8
8
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
9
9
|
import _extends from '@babel/runtime/helpers/extends';
|
|
10
10
|
import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withTiming, Easing as Easing$1, runOnJS, useDerivedValue, useAnimatedProps, withDelay, withRepeat, interpolate, ReducedMotionConfig, ReduceMotion } from 'react-native-reanimated';
|
|
11
|
-
import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, Linking, Pressable as Pressable$2, Keyboard, Text as Text$1, useWindowDimensions,
|
|
11
|
+
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';
|
|
12
12
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
13
13
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
14
14
|
import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
|
|
@@ -875,15 +875,15 @@ var card = {
|
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
877
|
|
|
878
|
-
var webAnimationContentDuration$
|
|
879
|
-
var webAnimationContentEasing$
|
|
878
|
+
var webAnimationContentDuration$1 = 400;
|
|
879
|
+
var webAnimationContentEasing$1 = {
|
|
880
880
|
x1: 0.77,
|
|
881
881
|
y1: 0,
|
|
882
882
|
x2: 0.175,
|
|
883
883
|
y2: 1
|
|
884
884
|
};
|
|
885
|
-
var webAnimationOverlayDuration$
|
|
886
|
-
var webAnimationOverlayEasing$
|
|
885
|
+
var webAnimationOverlayDuration$1 = 250;
|
|
886
|
+
var webAnimationOverlayEasing$1 = {
|
|
887
887
|
x1: 0.42,
|
|
888
888
|
y1: 0,
|
|
889
889
|
x2: 1,
|
|
@@ -918,12 +918,12 @@ var cardModal = {
|
|
|
918
918
|
},
|
|
919
919
|
animation: {
|
|
920
920
|
overlay: {
|
|
921
|
-
duration: webAnimationOverlayDuration$
|
|
922
|
-
easing: webAnimationOverlayEasing$
|
|
921
|
+
duration: webAnimationOverlayDuration$1,
|
|
922
|
+
easing: webAnimationOverlayEasing$1
|
|
923
923
|
},
|
|
924
924
|
content: {
|
|
925
|
-
duration: webAnimationContentDuration$
|
|
926
|
-
easing: webAnimationContentEasing$
|
|
925
|
+
duration: webAnimationContentDuration$1,
|
|
926
|
+
easing: webAnimationContentEasing$1
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
};
|
|
@@ -979,15 +979,15 @@ var choices = {
|
|
|
979
979
|
}
|
|
980
980
|
};
|
|
981
981
|
|
|
982
|
-
var webAnimationContentDuration
|
|
983
|
-
var webAnimationContentEasing
|
|
982
|
+
var webAnimationContentDuration = 400;
|
|
983
|
+
var webAnimationContentEasing = {
|
|
984
984
|
x1: 0.77,
|
|
985
985
|
y1: 0,
|
|
986
986
|
x2: 0.175,
|
|
987
987
|
y2: 1
|
|
988
988
|
};
|
|
989
|
-
var webAnimationOverlayDuration
|
|
990
|
-
var webAnimationOverlayEasing
|
|
989
|
+
var webAnimationOverlayDuration = 250;
|
|
990
|
+
var webAnimationOverlayEasing = {
|
|
991
991
|
x1: 0.42,
|
|
992
992
|
y1: 0,
|
|
993
993
|
x2: 1,
|
|
@@ -1009,12 +1009,12 @@ var dialogModal = {
|
|
|
1009
1009
|
},
|
|
1010
1010
|
animation: {
|
|
1011
1011
|
overlay: {
|
|
1012
|
-
duration: webAnimationOverlayDuration
|
|
1013
|
-
easing: webAnimationOverlayEasing
|
|
1012
|
+
duration: webAnimationOverlayDuration,
|
|
1013
|
+
easing: webAnimationOverlayEasing
|
|
1014
1014
|
},
|
|
1015
1015
|
content: {
|
|
1016
|
-
duration: webAnimationContentDuration
|
|
1017
|
-
easing: webAnimationContentEasing
|
|
1016
|
+
duration: webAnimationContentDuration,
|
|
1017
|
+
easing: webAnimationContentEasing
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
@@ -1923,20 +1923,6 @@ var forms = {
|
|
|
1923
1923
|
timePicker: timePicker
|
|
1924
1924
|
};
|
|
1925
1925
|
|
|
1926
|
-
var webAnimationContentDuration = 600;
|
|
1927
|
-
var webAnimationContentEasing = {
|
|
1928
|
-
x1: 0.77,
|
|
1929
|
-
y1: 0,
|
|
1930
|
-
x2: 0.175,
|
|
1931
|
-
y2: 1
|
|
1932
|
-
};
|
|
1933
|
-
var webAnimationOverlayDuration = 250;
|
|
1934
|
-
var webAnimationOverlayEasing = {
|
|
1935
|
-
x1: 0.42,
|
|
1936
|
-
y1: 0,
|
|
1937
|
-
x2: 1,
|
|
1938
|
-
y2: 1
|
|
1939
|
-
};
|
|
1940
1926
|
var fullscreenModal = {
|
|
1941
1927
|
header: {
|
|
1942
1928
|
height: 56
|
|
@@ -1950,12 +1936,22 @@ var fullscreenModal = {
|
|
|
1950
1936
|
},
|
|
1951
1937
|
animation: {
|
|
1952
1938
|
overlay: {
|
|
1953
|
-
duration:
|
|
1954
|
-
easing:
|
|
1939
|
+
duration: 250,
|
|
1940
|
+
easing: {
|
|
1941
|
+
x1: 0.42,
|
|
1942
|
+
y1: 0,
|
|
1943
|
+
x2: 1,
|
|
1944
|
+
y2: 1
|
|
1945
|
+
}
|
|
1955
1946
|
},
|
|
1956
1947
|
content: {
|
|
1957
|
-
duration:
|
|
1958
|
-
easing:
|
|
1948
|
+
duration: 600,
|
|
1949
|
+
easing: {
|
|
1950
|
+
x1: 0.77,
|
|
1951
|
+
y1: 0,
|
|
1952
|
+
x2: 0.175,
|
|
1953
|
+
y2: 1
|
|
1954
|
+
}
|
|
1959
1955
|
}
|
|
1960
1956
|
}
|
|
1961
1957
|
};
|
|
@@ -4861,8 +4857,6 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4861
4857
|
isDisabled = _ref.isDisabled,
|
|
4862
4858
|
isSelected = _ref.isSelected,
|
|
4863
4859
|
hasError = _ref.hasError,
|
|
4864
|
-
_ref$shouldExpand = _ref.shouldExpand,
|
|
4865
|
-
shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand,
|
|
4866
4860
|
animatedStyles = _ref.animatedStyles;
|
|
4867
4861
|
var sx = useSx();
|
|
4868
4862
|
var style = sx({
|
|
@@ -4880,9 +4874,7 @@ function AnimatedChoiceItemView(_ref) {
|
|
|
4880
4874
|
isHovered: isHovered,
|
|
4881
4875
|
isPressed: isPressed
|
|
4882
4876
|
}),
|
|
4883
|
-
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4884
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4885
|
-
flexShrink: shouldExpand ? 1 : undefined
|
|
4877
|
+
padding: size === 'small' ? 'kitt.2' : 'kitt.4'
|
|
4886
4878
|
});
|
|
4887
4879
|
return /*#__PURE__*/jsx(Animated.View, {
|
|
4888
4880
|
style: [style, animatedStyles],
|
|
@@ -4945,8 +4937,6 @@ function ChoiceItem(_ref) {
|
|
|
4945
4937
|
value = _ref.value,
|
|
4946
4938
|
selected = _ref.selected,
|
|
4947
4939
|
disabled = _ref.disabled,
|
|
4948
|
-
_ref$shouldExpand = _ref.shouldExpand,
|
|
4949
|
-
shouldExpand = _ref$shouldExpand === void 0 ? false : _ref$shouldExpand,
|
|
4950
4940
|
_children = _ref.children,
|
|
4951
4941
|
isPressedInternal = _ref.isPressedInternal,
|
|
4952
4942
|
isHoveredInternal = _ref.isHoveredInternal,
|
|
@@ -4984,8 +4974,6 @@ function ChoiceItem(_ref) {
|
|
|
4984
4974
|
checked: selected
|
|
4985
4975
|
},
|
|
4986
4976
|
style: style,
|
|
4987
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
4988
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
4989
4977
|
onBlur: onBlur,
|
|
4990
4978
|
onFocus: onFocus,
|
|
4991
4979
|
onPress: function (e) {
|
|
@@ -5004,8 +4992,6 @@ function ChoiceItem(_ref) {
|
|
|
5004
4992
|
});
|
|
5005
4993
|
return /*#__PURE__*/jsxs(VStack, {
|
|
5006
4994
|
space: "kitt.2",
|
|
5007
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
5008
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
5009
4995
|
children: [/*#__PURE__*/jsxs(AnimatedChoiceItemView, {
|
|
5010
4996
|
animatedStyles: backgroundStyles,
|
|
5011
4997
|
isHovered: isHovered || isHoveredInternal,
|
|
@@ -5013,13 +4999,10 @@ function ChoiceItem(_ref) {
|
|
|
5013
4999
|
isSelected: selected,
|
|
5014
5000
|
isPressed: isPressed || isPressedInternal,
|
|
5015
5001
|
hasError: hasError,
|
|
5016
|
-
shouldExpand: shouldExpand,
|
|
5017
5002
|
size: size,
|
|
5018
5003
|
children: [/*#__PURE__*/jsxs(Stack, {
|
|
5019
5004
|
alignItems: "center",
|
|
5020
5005
|
space: "kitt.2",
|
|
5021
|
-
flexGrow: shouldExpand ? 1 : undefined,
|
|
5022
|
-
flexShrink: shouldExpand ? 1 : undefined,
|
|
5023
5006
|
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
5024
5007
|
color: textColor,
|
|
5025
5008
|
icon: icon
|
|
@@ -5048,43 +5031,33 @@ function ChoiceItem(_ref) {
|
|
|
5048
5031
|
function ChoiceItemContainer(_ref) {
|
|
5049
5032
|
var children = _ref.children,
|
|
5050
5033
|
direction = _ref.direction,
|
|
5051
|
-
shouldExpand = _ref.shouldExpand,
|
|
5052
5034
|
isLast = _ref.isLast;
|
|
5053
5035
|
var currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
5054
|
-
var
|
|
5036
|
+
var flexProps = direction === 'row' ? {
|
|
5055
5037
|
flexGrow: 1,
|
|
5056
5038
|
flexShrink: 1,
|
|
5057
5039
|
flexBasis: 0
|
|
5058
5040
|
} : {};
|
|
5059
|
-
|
|
5060
|
-
flexGrow: 1,
|
|
5061
|
-
flexShrink: 1
|
|
5062
|
-
} : {};
|
|
5063
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread(_objectSpread({
|
|
5041
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5064
5042
|
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
5065
5043
|
marginBottom: direction === 'column' ? currentItemMarginValue : undefined
|
|
5066
|
-
},
|
|
5044
|
+
}, flexProps), {}, {
|
|
5067
5045
|
children: children
|
|
5068
5046
|
}));
|
|
5069
5047
|
}
|
|
5070
5048
|
|
|
5071
|
-
var _excluded$G = ["direction", "
|
|
5049
|
+
var _excluded$G = ["direction", "contentContainerStyle"];
|
|
5072
5050
|
function ChoicesContainer(_ref) {
|
|
5073
5051
|
var direction = _ref.direction,
|
|
5074
|
-
shouldExpand = _ref.shouldExpand,
|
|
5075
5052
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
5076
5053
|
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
5077
|
-
var shouldExpandFlexProps = shouldExpand ? {
|
|
5078
|
-
flexGrow: 1,
|
|
5079
|
-
flexShrink: 1
|
|
5080
|
-
} : {};
|
|
5081
5054
|
if (direction === 'row') {
|
|
5082
|
-
return /*#__PURE__*/jsx(ScrollView, _objectSpread(
|
|
5055
|
+
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
5083
5056
|
horizontal: true,
|
|
5084
|
-
contentContainerStyle:
|
|
5085
|
-
}, props)
|
|
5057
|
+
contentContainerStyle: contentContainerStyle
|
|
5058
|
+
}, props));
|
|
5086
5059
|
}
|
|
5087
|
-
return /*#__PURE__*/jsx(View, _objectSpread(
|
|
5060
|
+
return /*#__PURE__*/jsx(View$2, _objectSpread({}, props));
|
|
5088
5061
|
}
|
|
5089
5062
|
|
|
5090
5063
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5096,8 +5069,6 @@ function Choices(_ref2) {
|
|
|
5096
5069
|
_ref2$direction = _ref2.direction,
|
|
5097
5070
|
direction = _ref2$direction === void 0 ? 'column' : _ref2$direction,
|
|
5098
5071
|
disabled = _ref2.disabled,
|
|
5099
|
-
_ref2$shouldExpand = _ref2.shouldExpand,
|
|
5100
|
-
shouldExpand = _ref2$shouldExpand === void 0 ? false : _ref2$shouldExpand,
|
|
5101
5072
|
children = _ref2.children,
|
|
5102
5073
|
value = _ref2.value,
|
|
5103
5074
|
onPress = _ref2.onPress,
|
|
@@ -5116,7 +5087,6 @@ function Choices(_ref2) {
|
|
|
5116
5087
|
var sharedProps = {
|
|
5117
5088
|
type: type,
|
|
5118
5089
|
disabled: disabled,
|
|
5119
|
-
shouldExpand: shouldExpand,
|
|
5120
5090
|
onPress: !isForm ? onPress : undefined,
|
|
5121
5091
|
onChange: isForm ? function (newValue) {
|
|
5122
5092
|
setCurrentValue(newValue);
|
|
@@ -5128,7 +5098,6 @@ function Choices(_ref2) {
|
|
|
5128
5098
|
};
|
|
5129
5099
|
return /*#__PURE__*/jsx(ChoicesContainer, {
|
|
5130
5100
|
direction: direction,
|
|
5131
|
-
shouldExpand: shouldExpand,
|
|
5132
5101
|
testID: testID,
|
|
5133
5102
|
id: id,
|
|
5134
5103
|
style: style,
|
|
@@ -5139,7 +5108,6 @@ function Choices(_ref2) {
|
|
|
5139
5108
|
}, sharedProps));
|
|
5140
5109
|
return /*#__PURE__*/jsx(ChoiceItemContainer, {
|
|
5141
5110
|
direction: direction,
|
|
5142
|
-
shouldExpand: shouldExpand,
|
|
5143
5111
|
isLast: index === childrenArray.length - 1,
|
|
5144
5112
|
children: element
|
|
5145
5113
|
}, child.key);
|