@ornikar/kitt-universal 11.2.0 → 12.0.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/.vscode/settings.json +3 -0
- package/babel-plugin-csf-to-jest.js +15 -1
- package/dist/definitions/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts +15 -0
- package/dist/definitions/Choices/AnimatedChoiceItemView.d.ts.map +1 -0
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts +4 -0
- package/dist/definitions/Choices/AnimatedChoiceItemView.web.d.ts.map +1 -0
- package/dist/definitions/Choices/ChoiceItem.d.ts +2 -3
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts +5 -5
- package/dist/definitions/Choices/ChoiceItemContainer.d.ts.map +1 -1
- package/dist/definitions/Choices/utils/getBackgroundColor.d.ts +9 -0
- package/dist/definitions/Choices/utils/getBackgroundColor.d.ts.map +1 -0
- package/dist/definitions/Choices/utils/getBorderRadius.d.ts +3 -0
- package/dist/definitions/Choices/utils/getBorderRadius.d.ts.map +1 -0
- package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts +10 -0
- package/dist/definitions/Choices/utils/getCurrentTextColor.d.ts.map +1 -0
- package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.d.ts.map +1 -1
- package/dist/definitions/Picker/PickerItem.d.ts.map +1 -1
- package/dist/definitions/Skeleton/SkeletonContent.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +7 -3
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.d.ts +19 -8
- package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.web.d.ts +2 -1
- package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePickerPressable.d.ts +20 -0
- package/dist/definitions/TimePicker/TimePickerPressable.d.ts.map +1 -0
- package/dist/definitions/TimePicker/utils/formatDateToTimeString.d.ts +2 -0
- package/dist/definitions/TimePicker/utils/formatDateToTimeString.d.ts.map +1 -0
- package/dist/definitions/TimePicker/utils/getCurrentInternalForcedState.d.ts +10 -0
- package/dist/definitions/TimePicker/utils/getCurrentInternalForcedState.d.ts.map +1 -0
- package/dist/definitions/VerticalSteps/Step.d.ts +16 -0
- package/dist/definitions/VerticalSteps/Step.d.ts.map +1 -0
- package/dist/definitions/VerticalSteps/StepIcon.d.ts +13 -0
- package/dist/definitions/VerticalSteps/StepIcon.d.ts.map +1 -0
- package/dist/definitions/VerticalSteps/VerticalSteps.d.ts +12 -0
- package/dist/definitions/VerticalSteps/VerticalSteps.d.ts.map +1 -0
- package/dist/definitions/VerticalSteps/utils/getStepState.d.ts +3 -0
- package/dist/definitions/VerticalSteps/utils/getStepState.d.ts.map +1 -0
- package/dist/definitions/forms/InputTag/InputTag.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts +2 -4
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
- package/dist/definitions/forms/RadioButtonGroup/AnimatedContainer/AnimatedContainer.d.ts +1 -1
- package/dist/definitions/forms/RadioButtonGroup/AnimatedContainer/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +1 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +190 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/story-components/Flex.d.ts +6 -4
- package/dist/definitions/story-components/Flex.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +2 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/choices.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/choices.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/listItem.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/listItem.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/picker.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tag.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/timePicker.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/timePicker.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/verticalSteps.d.ts +14 -0
- package/dist/definitions/themes/late-ocean/verticalSteps.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +923 -656
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +923 -656
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +922 -655
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +726 -383
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +764 -486
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +599 -245
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +35 -2
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +35 -2
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +35 -2
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +35 -2
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +35 -2
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +35 -2
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -5
- package/typings/react-native-web.d.ts +2 -0
- package/dist/definitions/TimePicker/useTimePicker.d.ts +0 -14
- package/dist/definitions/TimePicker/useTimePicker.d.ts.map +0 -1
- package/dist/definitions/forms/styledTextInputMixin.d.ts +0 -8
- package/dist/definitions/forms/styledTextInputMixin.d.ts.map +0 -1
|
@@ -10,10 +10,10 @@ const react$1 = require('@linaria/react');
|
|
|
10
10
|
const BabelPluginStyledComponentsReactNative = require('react-native');
|
|
11
11
|
const reactPortal = require('react-portal');
|
|
12
12
|
const reactTransitionGroup = require('react-transition-group');
|
|
13
|
-
const styled = require('styled-components/native');
|
|
14
13
|
const twemojiParser = require('twemoji-parser');
|
|
15
14
|
const libphonenumberJs = require('libphonenumber-js');
|
|
16
15
|
const reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
16
|
+
const styled = require('styled-components/native');
|
|
17
17
|
const reactDom = require('@floating-ui/react-dom');
|
|
18
18
|
const usehooksTs = require('usehooks-ts');
|
|
19
19
|
const addons = require('@storybook/addons');
|
|
@@ -1043,6 +1043,10 @@ const textArea = {
|
|
|
1043
1043
|
minHeight: 120
|
|
1044
1044
|
};
|
|
1045
1045
|
|
|
1046
|
+
const timePicker = {
|
|
1047
|
+
minWidth: 100
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1046
1050
|
const forms = {
|
|
1047
1051
|
datePicker,
|
|
1048
1052
|
input,
|
|
@@ -1051,7 +1055,8 @@ const forms = {
|
|
|
1051
1055
|
textArea,
|
|
1052
1056
|
checkbox,
|
|
1053
1057
|
inputTag,
|
|
1054
|
-
radioButtonGroup
|
|
1058
|
+
radioButtonGroup,
|
|
1059
|
+
timePicker
|
|
1055
1060
|
};
|
|
1056
1061
|
|
|
1057
1062
|
const webAnimationContentDuration = 600;
|
|
@@ -1141,6 +1146,8 @@ const iconButton = {
|
|
|
1141
1146
|
|
|
1142
1147
|
const listItem = {
|
|
1143
1148
|
padding: '12px 16px',
|
|
1149
|
+
verticalPadding: 12,
|
|
1150
|
+
horizontalPadding: 16,
|
|
1144
1151
|
borderColor: colors.separator,
|
|
1145
1152
|
borderWidth: 1,
|
|
1146
1153
|
innerMargin: 8
|
|
@@ -1182,6 +1189,8 @@ const picker = {
|
|
|
1182
1189
|
},
|
|
1183
1190
|
android: {
|
|
1184
1191
|
padding: '12px 24px',
|
|
1192
|
+
verticalPadding: 12,
|
|
1193
|
+
horizontalPadding: 24,
|
|
1185
1194
|
default: {
|
|
1186
1195
|
backgroundColor: colors.transparent
|
|
1187
1196
|
},
|
|
@@ -1280,6 +1289,8 @@ const skeleton = {
|
|
|
1280
1289
|
const tag = {
|
|
1281
1290
|
borderRadius: 10,
|
|
1282
1291
|
padding: '2px 12px',
|
|
1292
|
+
verticalPadding: 2,
|
|
1293
|
+
horizontalPadding: 12,
|
|
1283
1294
|
primary: {
|
|
1284
1295
|
fill: {
|
|
1285
1296
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
@@ -1356,6 +1367,27 @@ const tooltip = {
|
|
|
1356
1367
|
}
|
|
1357
1368
|
};
|
|
1358
1369
|
|
|
1370
|
+
const verticalSteps = {
|
|
1371
|
+
active: {
|
|
1372
|
+
icon: {
|
|
1373
|
+
backgroundColor: colors.primary,
|
|
1374
|
+
textColor: colors.white
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
done: {
|
|
1378
|
+
icon: {
|
|
1379
|
+
backgroundColor: lateOceanColorPalette.moonPurple,
|
|
1380
|
+
textColor: colors.primary
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
default: {
|
|
1384
|
+
icon: {
|
|
1385
|
+
backgroundColor: colors.disabled,
|
|
1386
|
+
textColor: colors.blackDisabled
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1359
1391
|
const breakpoints = {
|
|
1360
1392
|
values: {
|
|
1361
1393
|
base: 0,
|
|
@@ -1407,7 +1439,8 @@ const theme = {
|
|
|
1407
1439
|
tooltip,
|
|
1408
1440
|
typography,
|
|
1409
1441
|
fullscreenModal,
|
|
1410
|
-
actionCard
|
|
1442
|
+
actionCard,
|
|
1443
|
+
verticalSteps
|
|
1411
1444
|
};
|
|
1412
1445
|
|
|
1413
1446
|
const KittThemeContext = /*#__PURE__*/react.createContext({
|
|
@@ -2095,7 +2128,7 @@ function ButtonPadding({
|
|
|
2095
2128
|
});
|
|
2096
2129
|
}
|
|
2097
2130
|
|
|
2098
|
-
function DisabledBorder
|
|
2131
|
+
function DisabledBorder() {
|
|
2099
2132
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
2100
2133
|
position: "absolute",
|
|
2101
2134
|
top: 0,
|
|
@@ -2236,7 +2269,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
2236
2269
|
isPressed: isPressed,
|
|
2237
2270
|
isFocused: isFocused,
|
|
2238
2271
|
children: children
|
|
2239
|
-
}), disabled ? /*#__PURE__*/jsxRuntime.jsx(DisabledBorder
|
|
2272
|
+
}), disabled ? /*#__PURE__*/jsxRuntime.jsx(DisabledBorder, {}) : null, /*#__PURE__*/jsxRuntime.jsx(FocusBorder, {
|
|
2240
2273
|
type: type,
|
|
2241
2274
|
variant: variant,
|
|
2242
2275
|
isFocused: isFocused || isFocusedInternal,
|
|
@@ -2622,21 +2655,17 @@ function ModalBehaviour({
|
|
|
2622
2655
|
}
|
|
2623
2656
|
ModalBehaviour.CloseButton = CloseButton;
|
|
2624
2657
|
|
|
2625
|
-
// Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
|
|
2626
|
-
const OverlayPressable = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.Pressable).withConfig({
|
|
2627
|
-
displayName: "Overlay__OverlayPressable",
|
|
2628
|
-
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
2629
|
-
})(({
|
|
2630
|
-
theme
|
|
2631
|
-
}) => ({
|
|
2632
|
-
...BabelPluginStyledComponentsReactNative.StyleSheet.absoluteFillObject,
|
|
2633
|
-
backgroundColor: theme.kitt.colors.overlay.dark
|
|
2634
|
-
}));
|
|
2635
2658
|
function Overlay({
|
|
2636
2659
|
onPress
|
|
2637
2660
|
}) {
|
|
2638
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
2661
|
+
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
2639
2662
|
accessibilityRole: "none",
|
|
2663
|
+
position: "absolute",
|
|
2664
|
+
top: "0",
|
|
2665
|
+
left: "0",
|
|
2666
|
+
right: "0",
|
|
2667
|
+
bottom: "0",
|
|
2668
|
+
backgroundColor: "kitt.overlay.dark",
|
|
2640
2669
|
onPress: onPress
|
|
2641
2670
|
});
|
|
2642
2671
|
}
|
|
@@ -2887,6 +2916,64 @@ CardModal.Header = CardModalHeader;
|
|
|
2887
2916
|
CardModal.Footer = CardModalFooter;
|
|
2888
2917
|
CardModal.ModalBehaviour = CardModalBehaviour;
|
|
2889
2918
|
|
|
2919
|
+
function getBackgroundColor$3({
|
|
2920
|
+
isDisabled,
|
|
2921
|
+
isSelected,
|
|
2922
|
+
isHovered,
|
|
2923
|
+
isPressed
|
|
2924
|
+
}) {
|
|
2925
|
+
if (isDisabled) return 'kitt.choices.item.disabled.backgroundColor';
|
|
2926
|
+
if (isSelected && isHovered) return 'kitt.choices.item.hoverWhenSelected.backgroundColor';
|
|
2927
|
+
if (isPressed) return 'kitt.choices.item.pressed.backgroundColor';
|
|
2928
|
+
if (isHovered) return 'kitt.choices.item.hover.backgroundColor';
|
|
2929
|
+
if (isSelected) return 'kitt.choices.item.selected.backgroundColor';
|
|
2930
|
+
return 'kitt.choices.item.default.backgroundColor';
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
function getBorderRadius(variant) {
|
|
2934
|
+
// The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
|
|
2935
|
+
// We don't control over the height of the rendered children we just go with a arbitrary really high value
|
|
2936
|
+
return variant === 'rounded' ? Number.MAX_SAFE_INTEGER : 'kitt.choices.item.borderRadius';
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
function AnimatedChoiceItemView({
|
|
2940
|
+
children,
|
|
2941
|
+
variant,
|
|
2942
|
+
size,
|
|
2943
|
+
isHovered,
|
|
2944
|
+
isPressed,
|
|
2945
|
+
isDisabled,
|
|
2946
|
+
isSelected
|
|
2947
|
+
}) {
|
|
2948
|
+
const theme = useTheme();
|
|
2949
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
2950
|
+
position: "relative",
|
|
2951
|
+
borderRadius: getBorderRadius(variant),
|
|
2952
|
+
backgroundColor: getBackgroundColor$3({
|
|
2953
|
+
isDisabled,
|
|
2954
|
+
isSelected,
|
|
2955
|
+
isHovered,
|
|
2956
|
+
isPressed
|
|
2957
|
+
}),
|
|
2958
|
+
paddingX: size === 'small' ? 'kitt.4' : {
|
|
2959
|
+
base: 'kitt.4',
|
|
2960
|
+
small: 'kitt.6'
|
|
2961
|
+
},
|
|
2962
|
+
paddingY: size === 'small' ? 'kitt.2' : {
|
|
2963
|
+
base: 'kitt.4',
|
|
2964
|
+
small: 'kitt.6'
|
|
2965
|
+
},
|
|
2966
|
+
_web: {
|
|
2967
|
+
style: {
|
|
2968
|
+
transitionProperty: theme.kitt.choices.item.transition.property,
|
|
2969
|
+
transitionDuration: `${theme.kitt.choices.item.transition.duration}ms`,
|
|
2970
|
+
transitionTimingFunction: theme.kitt.choices.item.transition.timingFunction
|
|
2971
|
+
}
|
|
2972
|
+
},
|
|
2973
|
+
children: children
|
|
2974
|
+
});
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2890
2977
|
const useNativeAnimation$2 = () => {
|
|
2891
2978
|
return {
|
|
2892
2979
|
onPressIn: () => {},
|
|
@@ -2906,79 +2993,7 @@ function getCurrentTextColor$1({
|
|
|
2906
2993
|
if (isSelected || isPressed) return 'white';
|
|
2907
2994
|
return 'black';
|
|
2908
2995
|
}
|
|
2909
|
-
function getBorderRadius(defaultRadius, variant) {
|
|
2910
|
-
// The clean way to have the rounded effect would have been to know the children height since radius >= height * 0.5
|
|
2911
|
-
// We don't control over the height of the rendered children we just go with a arbitrary really high value
|
|
2912
2996
|
|
|
2913
|
-
if (variant === 'rounded') return 800;
|
|
2914
|
-
return defaultRadius;
|
|
2915
|
-
}
|
|
2916
|
-
const DisabledBorder = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
2917
|
-
displayName: "ChoiceItem__DisabledBorder",
|
|
2918
|
-
componentId: "kitt-universal__sc-wuv3y6-0"
|
|
2919
|
-
})(["border-radius:", "px;", ";"], ({
|
|
2920
|
-
theme,
|
|
2921
|
-
$variant
|
|
2922
|
-
}) => getBorderRadius(theme.kitt.choices.item.borderRadius, $variant), ({
|
|
2923
|
-
theme
|
|
2924
|
-
}) => {
|
|
2925
|
-
const {
|
|
2926
|
-
width,
|
|
2927
|
-
color
|
|
2928
|
-
} = theme.kitt.choices.item.disabled.border;
|
|
2929
|
-
return styled.css(["border:", "px solid ", ";"], width, color);
|
|
2930
|
-
});
|
|
2931
|
-
const ChoiceItemView = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
2932
|
-
displayName: "ChoiceItem__ChoiceItemView",
|
|
2933
|
-
componentId: "kitt-universal__sc-wuv3y6-1"
|
|
2934
|
-
})(["position:relative;border-radius:", "px;background-color:", ";", ";", ""], ({
|
|
2935
|
-
theme,
|
|
2936
|
-
$variant
|
|
2937
|
-
}) => getBorderRadius(theme.kitt.choices.item.borderRadius, $variant), ({
|
|
2938
|
-
theme,
|
|
2939
|
-
$isHovered,
|
|
2940
|
-
$isPressed,
|
|
2941
|
-
$isDisabled,
|
|
2942
|
-
$isSelected
|
|
2943
|
-
}) => {
|
|
2944
|
-
const {
|
|
2945
|
-
hoverWhenSelected,
|
|
2946
|
-
hover,
|
|
2947
|
-
disabled,
|
|
2948
|
-
selected,
|
|
2949
|
-
pressed,
|
|
2950
|
-
default: defaultBackground
|
|
2951
|
-
} = theme.kitt.choices.item.backgroundColor;
|
|
2952
|
-
if ($isDisabled) return disabled;
|
|
2953
|
-
if ($isSelected && $isHovered) return hoverWhenSelected;
|
|
2954
|
-
if ($isPressed) return pressed;
|
|
2955
|
-
if ($isHovered) return hover;
|
|
2956
|
-
if ($isSelected) return selected;
|
|
2957
|
-
return defaultBackground;
|
|
2958
|
-
}, ({
|
|
2959
|
-
theme,
|
|
2960
|
-
$size
|
|
2961
|
-
}) => {
|
|
2962
|
-
const {
|
|
2963
|
-
base,
|
|
2964
|
-
small
|
|
2965
|
-
} = theme.kitt.choices.item.padding;
|
|
2966
|
-
if ($size === 'small') {
|
|
2967
|
-
return styled.css(["padding:", "px ", "px;"], base / 2, base);
|
|
2968
|
-
}
|
|
2969
|
-
return theme.responsive.ifWindowSizeMatches({
|
|
2970
|
-
minWidth: KittBreakpoints.SMALL
|
|
2971
|
-
}, styled.css(["padding:", "px;"], small), styled.css(["padding:", "px;"], base));
|
|
2972
|
-
}, ({
|
|
2973
|
-
theme
|
|
2974
|
-
}) => {
|
|
2975
|
-
const {
|
|
2976
|
-
property,
|
|
2977
|
-
duration,
|
|
2978
|
-
timingFunction
|
|
2979
|
-
} = theme.kitt.choices.item.transition;
|
|
2980
|
-
return styled.css(["transition:", " ", "ms ", ";"], property, duration, timingFunction);
|
|
2981
|
-
});
|
|
2982
2997
|
function ChoiceItem({
|
|
2983
2998
|
type = 'button',
|
|
2984
2999
|
value,
|
|
@@ -3028,14 +3043,14 @@ function ChoiceItem({
|
|
|
3028
3043
|
children: ({
|
|
3029
3044
|
isHovered,
|
|
3030
3045
|
isPressed
|
|
3031
|
-
}) => /*#__PURE__*/jsxRuntime.jsxs(
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3046
|
+
}) => /*#__PURE__*/jsxRuntime.jsxs(AnimatedChoiceItemView, {
|
|
3047
|
+
animatedStyles: backgroundStyles,
|
|
3048
|
+
isHovered: isHovered || isHoveredInternal,
|
|
3049
|
+
isDisabled: disabled,
|
|
3050
|
+
isSelected: selected,
|
|
3051
|
+
isPressed: isPressed || isPressedInternal,
|
|
3052
|
+
variant: variant,
|
|
3053
|
+
size: size,
|
|
3039
3054
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography.SetDefaultColor, {
|
|
3040
3055
|
value: getCurrentTextColor$1({
|
|
3041
3056
|
isDisabled: disabled,
|
|
@@ -3044,31 +3059,32 @@ function ChoiceItem({
|
|
|
3044
3059
|
isHovered: isHovered || isHoveredInternal
|
|
3045
3060
|
}),
|
|
3046
3061
|
children: children
|
|
3047
|
-
}), disabled ? /*#__PURE__*/jsxRuntime.jsx(
|
|
3048
|
-
|
|
3049
|
-
|
|
3062
|
+
}), disabled ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
3063
|
+
borderRadius: getBorderRadius(variant),
|
|
3064
|
+
borderWidth: "kitt.choices.item.disabled.borderWidth",
|
|
3065
|
+
borderColor: "kitt.choices.item.disabled.borderColor",
|
|
3066
|
+
position: "absolute",
|
|
3067
|
+
top: "0",
|
|
3068
|
+
right: "0",
|
|
3069
|
+
left: "0",
|
|
3070
|
+
bottom: "0"
|
|
3050
3071
|
}) : null]
|
|
3051
3072
|
})
|
|
3052
3073
|
});
|
|
3053
3074
|
}
|
|
3054
3075
|
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
if ($direction === 'row') {
|
|
3068
|
-
return styled.css(["margin-right:", "px;"], $isLast ? 0 : row);
|
|
3069
|
-
}
|
|
3070
|
-
return styled.css(["margin-bottom:", "px;"], $isLast ? 0 : column);
|
|
3071
|
-
});
|
|
3076
|
+
function ChoiceItemContainer({
|
|
3077
|
+
children,
|
|
3078
|
+
direction,
|
|
3079
|
+
isLast
|
|
3080
|
+
}) {
|
|
3081
|
+
const currentItemMarginValue = isLast ? undefined : 'kitt.3';
|
|
3082
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
3083
|
+
marginRight: direction === 'row' ? currentItemMarginValue : undefined,
|
|
3084
|
+
marginBottom: direction === 'column' ? currentItemMarginValue : undefined,
|
|
3085
|
+
children: children
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
3072
3088
|
|
|
3073
3089
|
function ChoicesContainer({
|
|
3074
3090
|
direction,
|
|
@@ -3128,8 +3144,8 @@ function Choices({
|
|
|
3128
3144
|
...sharedProps
|
|
3129
3145
|
});
|
|
3130
3146
|
return /*#__PURE__*/jsxRuntime.jsx(ChoiceItemContainer, {
|
|
3131
|
-
|
|
3132
|
-
|
|
3147
|
+
direction: direction,
|
|
3148
|
+
isLast: index === childrenArray.length - 1,
|
|
3133
3149
|
children: element
|
|
3134
3150
|
}, child.key);
|
|
3135
3151
|
})
|
|
@@ -3775,7 +3791,6 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
3775
3791
|
base: 'body'
|
|
3776
3792
|
});
|
|
3777
3793
|
return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
|
|
3778
|
-
$isDisabled: disabled,
|
|
3779
3794
|
children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
|
|
3780
3795
|
ref: ref,
|
|
3781
3796
|
multiline: multiline,
|
|
@@ -3810,7 +3825,7 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
3810
3825
|
});
|
|
3811
3826
|
});
|
|
3812
3827
|
|
|
3813
|
-
function getCurrentInternalForcedState({
|
|
3828
|
+
function getCurrentInternalForcedState$1({
|
|
3814
3829
|
isDisabled,
|
|
3815
3830
|
isHoveredInternal,
|
|
3816
3831
|
isFocusedInternal,
|
|
@@ -3836,7 +3851,7 @@ const InputPart = /*#__PURE__*/react.forwardRef(({
|
|
|
3836
3851
|
}, ref) => {
|
|
3837
3852
|
return /*#__PURE__*/jsxRuntime.jsx(InputText, {
|
|
3838
3853
|
ref: ref,
|
|
3839
|
-
internalForceState: getCurrentInternalForcedState({
|
|
3854
|
+
internalForceState: getCurrentInternalForcedState$1({
|
|
3840
3855
|
isDisabled: disabled,
|
|
3841
3856
|
isHoveredInternal,
|
|
3842
3857
|
isFocusedInternal,
|
|
@@ -4204,31 +4219,6 @@ const InputPhone = /*#__PURE__*/react.forwardRef(({
|
|
|
4204
4219
|
});
|
|
4205
4220
|
|
|
4206
4221
|
const getTypographyColor = type => type ? 'white' : 'black';
|
|
4207
|
-
const InputTagContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
4208
|
-
displayName: "InputTag__InputTagContainer",
|
|
4209
|
-
componentId: "kitt-universal__sc-1511dsf-0"
|
|
4210
|
-
})(["align-items:center;justify-content:center;flex-direction:row;align-self:flex-start;overflow:hidden;padding-horizontal:", "px;background-color:", ";border-radius:", "px;"], ({
|
|
4211
|
-
theme
|
|
4212
|
-
}) => theme.kitt.spacing * 2, ({
|
|
4213
|
-
theme,
|
|
4214
|
-
type
|
|
4215
|
-
}) => {
|
|
4216
|
-
if (type === 'success') {
|
|
4217
|
-
return theme.kitt.forms.inputTag.success.backgroundColor;
|
|
4218
|
-
}
|
|
4219
|
-
if (type === 'danger') {
|
|
4220
|
-
return theme.kitt.forms.inputTag.danger.backgroundColor;
|
|
4221
|
-
}
|
|
4222
|
-
return theme.kitt.forms.inputTag.default.backgroundColor;
|
|
4223
|
-
}, ({
|
|
4224
|
-
theme
|
|
4225
|
-
}) => theme.kitt.forms.inputTag.borderRadius);
|
|
4226
|
-
const IconContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
4227
|
-
displayName: "InputTag__IconContainer",
|
|
4228
|
-
componentId: "kitt-universal__sc-1511dsf-1"
|
|
4229
|
-
})(["margin-right:", "px;"], ({
|
|
4230
|
-
theme
|
|
4231
|
-
}) => theme.kitt.spacing);
|
|
4232
4222
|
function InputTag({
|
|
4233
4223
|
children,
|
|
4234
4224
|
type,
|
|
@@ -4236,15 +4226,23 @@ function InputTag({
|
|
|
4236
4226
|
}) {
|
|
4237
4227
|
const typographyColor = getTypographyColor(type);
|
|
4238
4228
|
const theme = useTheme();
|
|
4239
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
4240
|
-
|
|
4241
|
-
|
|
4229
|
+
return /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
4230
|
+
alignItems: "center",
|
|
4231
|
+
justifyContent: "center",
|
|
4232
|
+
flexDirection: "row",
|
|
4233
|
+
alignSelf: "flex-start",
|
|
4234
|
+
overflow: "hidden",
|
|
4235
|
+
paddingX: "kitt.2",
|
|
4236
|
+
backgroundColor: `kitt.forms.inputTag.${type || 'default'}.backgroundColor`,
|
|
4237
|
+
borderRadius: "kitt.forms.inputTag.borderRadius",
|
|
4238
|
+
children: [icon ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4239
|
+
marginRight: "kitt.1",
|
|
4242
4240
|
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
4243
4241
|
icon: icon,
|
|
4244
4242
|
size: theme.kitt.forms.inputTag.iconSize,
|
|
4245
4243
|
color: typographyColor
|
|
4246
4244
|
})
|
|
4247
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
4245
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
4248
4246
|
base: "body-small",
|
|
4249
4247
|
color: typographyColor,
|
|
4250
4248
|
children: children
|
|
@@ -5165,89 +5163,46 @@ function useKittMapConfig() {
|
|
|
5165
5163
|
return context;
|
|
5166
5164
|
}
|
|
5167
5165
|
|
|
5168
|
-
const ContentView$1 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative__namespace.View).withConfig({
|
|
5169
|
-
displayName: "ListItemContent__ContentView",
|
|
5170
|
-
componentId: "kitt-universal__sc-57q0u9-0"
|
|
5171
|
-
})(["flex:1 0 0%;align-self:center;"]);
|
|
5172
5166
|
function ListItemContent({
|
|
5173
5167
|
children,
|
|
5174
5168
|
...rest
|
|
5175
5169
|
}) {
|
|
5176
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5170
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5171
|
+
alignSelf: "center",
|
|
5172
|
+
flexBasis: "0%",
|
|
5173
|
+
flexGrow: 1,
|
|
5174
|
+
flexShrink: 0,
|
|
5177
5175
|
...rest,
|
|
5178
5176
|
children: children
|
|
5179
5177
|
});
|
|
5180
5178
|
}
|
|
5181
5179
|
|
|
5182
|
-
const SideContainerView = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative__namespace.View).withConfig({
|
|
5183
|
-
displayName: "ListItemSideContent__SideContainerView",
|
|
5184
|
-
componentId: "kitt-universal__sc-1vajiw-0"
|
|
5185
|
-
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], ({
|
|
5186
|
-
theme,
|
|
5187
|
-
side
|
|
5188
|
-
}) => side === 'right' ? `${theme.kitt.listItem.innerMargin}px` : 0, ({
|
|
5189
|
-
theme,
|
|
5190
|
-
side
|
|
5191
|
-
}) => side === 'left' ? `${theme.kitt.listItem.innerMargin}px` : 0);
|
|
5192
|
-
|
|
5193
5180
|
// Handles the vertical alignment of the side elements of the list item
|
|
5194
5181
|
function ListItemSideContainer({
|
|
5195
5182
|
children,
|
|
5196
5183
|
side = 'left',
|
|
5197
5184
|
...rest
|
|
5198
5185
|
}) {
|
|
5199
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5200
|
-
|
|
5186
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5187
|
+
flexDirection: "row",
|
|
5188
|
+
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
5189
|
+
marginRight: side === 'left' ? 'kitt.2' : undefined,
|
|
5201
5190
|
...rest,
|
|
5202
5191
|
children: children
|
|
5203
5192
|
});
|
|
5204
5193
|
}
|
|
5205
|
-
const SideContentView = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative__namespace.View).withConfig({
|
|
5206
|
-
displayName: "ListItemSideContent__SideContentView",
|
|
5207
|
-
componentId: "kitt-universal__sc-1vajiw-1"
|
|
5208
|
-
})(["align-self:", ";"], ({
|
|
5209
|
-
align
|
|
5210
|
-
}) => align);
|
|
5211
5194
|
function ListItemSideContent({
|
|
5212
5195
|
children,
|
|
5213
5196
|
align = 'auto',
|
|
5214
5197
|
...rest
|
|
5215
5198
|
}) {
|
|
5216
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5217
|
-
|
|
5199
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
5200
|
+
alignSelf: align,
|
|
5218
5201
|
...rest,
|
|
5219
5202
|
children: children
|
|
5220
5203
|
});
|
|
5221
5204
|
}
|
|
5222
5205
|
|
|
5223
|
-
const ContainerView = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative__namespace.View).withConfig({
|
|
5224
|
-
displayName: "ListItem__ContainerView",
|
|
5225
|
-
componentId: "kitt-universal__sc-2afp9s-0"
|
|
5226
|
-
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], ({
|
|
5227
|
-
withPadding,
|
|
5228
|
-
theme
|
|
5229
|
-
}) => withPadding ? theme.kitt.listItem.padding : 0, ({
|
|
5230
|
-
theme,
|
|
5231
|
-
borders
|
|
5232
|
-
}) => {
|
|
5233
|
-
const {
|
|
5234
|
-
borderWidth
|
|
5235
|
-
} = theme.kitt.listItem;
|
|
5236
|
-
if (borders === 'top') {
|
|
5237
|
-
return `border-top-width: ${borderWidth}px`;
|
|
5238
|
-
}
|
|
5239
|
-
if (borders === 'bottom') {
|
|
5240
|
-
return `border-bottom-width: ${borderWidth}px`;
|
|
5241
|
-
}
|
|
5242
|
-
if (borders === 'both') {
|
|
5243
|
-
return styled.css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
|
|
5244
|
-
}
|
|
5245
|
-
return 'border: none';
|
|
5246
|
-
}, ({
|
|
5247
|
-
theme
|
|
5248
|
-
}) => theme.kitt.listItem.borderColor, ({
|
|
5249
|
-
theme
|
|
5250
|
-
}) => theme.kitt.colors.uiBackgroundLight);
|
|
5251
5206
|
function ListItem({
|
|
5252
5207
|
children,
|
|
5253
5208
|
withPadding,
|
|
@@ -5266,9 +5221,14 @@ function ListItem({
|
|
|
5266
5221
|
const containerProps = onPress ? undefined : rest;
|
|
5267
5222
|
return /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
|
|
5268
5223
|
...wrapperProps,
|
|
5269
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(
|
|
5270
|
-
|
|
5271
|
-
|
|
5224
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
5225
|
+
flexDirection: "row",
|
|
5226
|
+
paddingX: withPadding ? 'kitt.listItem.horizontalPadding' : undefined,
|
|
5227
|
+
paddingY: withPadding ? 'kitt.listItem.verticalPadding' : undefined,
|
|
5228
|
+
borderColor: "kitt.listItem.borderColor",
|
|
5229
|
+
backgroundColor: "kitt.uiBackgroundLight",
|
|
5230
|
+
borderTopWidth: borders === 'top' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined,
|
|
5231
|
+
borderBottomWidth: borders === 'bottom' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined,
|
|
5272
5232
|
...containerProps,
|
|
5273
5233
|
children: [left ? /*#__PURE__*/jsxRuntime.jsx(ListItemSideContainer, {
|
|
5274
5234
|
side: "left",
|
|
@@ -5921,6 +5881,71 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
5921
5881
|
'subtle-dark': theme.button['subtle-dark'],
|
|
5922
5882
|
disabled: theme.button.disabled
|
|
5923
5883
|
},
|
|
5884
|
+
choices: {
|
|
5885
|
+
item: {
|
|
5886
|
+
default: {
|
|
5887
|
+
backgroundColor: theme.choices.item.backgroundColor.default
|
|
5888
|
+
},
|
|
5889
|
+
disabled: {
|
|
5890
|
+
backgroundColor: theme.choices.item.backgroundColor.disabled,
|
|
5891
|
+
borderColor: theme.choices.item.disabled.border.color
|
|
5892
|
+
},
|
|
5893
|
+
selected: {
|
|
5894
|
+
backgroundColor: theme.choices.item.backgroundColor.selected
|
|
5895
|
+
},
|
|
5896
|
+
pressed: {
|
|
5897
|
+
backgroundColor: theme.choices.item.backgroundColor.pressed
|
|
5898
|
+
},
|
|
5899
|
+
hover: {
|
|
5900
|
+
backgroundColor: theme.choices.item.backgroundColor.hover
|
|
5901
|
+
},
|
|
5902
|
+
hoverWhenSelected: {
|
|
5903
|
+
backgroundColor: theme.choices.item.backgroundColor.hoverWhenSelected
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5906
|
+
},
|
|
5907
|
+
tag: {
|
|
5908
|
+
primary: {
|
|
5909
|
+
fill: {
|
|
5910
|
+
backgroundColor: theme.tag.primary.fill.backgroundColor,
|
|
5911
|
+
borderColor: theme.tag.primary.fill.borderColor
|
|
5912
|
+
},
|
|
5913
|
+
outline: {
|
|
5914
|
+
backgroundColor: theme.tag.primary.outline.backgroundColor,
|
|
5915
|
+
borderColor: theme.tag.primary.outline.borderColor
|
|
5916
|
+
}
|
|
5917
|
+
},
|
|
5918
|
+
default: {
|
|
5919
|
+
fill: {
|
|
5920
|
+
backgroundColor: theme.tag.default.fill.backgroundColor,
|
|
5921
|
+
borderColor: theme.tag.default.fill.borderColor
|
|
5922
|
+
},
|
|
5923
|
+
outline: {
|
|
5924
|
+
backgroundColor: theme.tag.default.outline.backgroundColor,
|
|
5925
|
+
borderColor: theme.tag.default.outline.borderColor
|
|
5926
|
+
}
|
|
5927
|
+
},
|
|
5928
|
+
danger: {
|
|
5929
|
+
fill: {
|
|
5930
|
+
backgroundColor: theme.tag.danger.fill.backgroundColor,
|
|
5931
|
+
borderColor: theme.tag.danger.fill.borderColor
|
|
5932
|
+
},
|
|
5933
|
+
outline: {
|
|
5934
|
+
backgroundColor: theme.tag.danger.outline.backgroundColor,
|
|
5935
|
+
borderColor: theme.tag.danger.outline.borderColor
|
|
5936
|
+
}
|
|
5937
|
+
},
|
|
5938
|
+
warn: {
|
|
5939
|
+
fill: {
|
|
5940
|
+
backgroundColor: theme.tag.warn.fill.backgroundColor,
|
|
5941
|
+
borderColor: theme.tag.warn.fill.borderColor
|
|
5942
|
+
},
|
|
5943
|
+
outline: {
|
|
5944
|
+
backgroundColor: theme.tag.warn.outline.backgroundColor,
|
|
5945
|
+
borderColor: theme.tag.warn.outline.borderColor
|
|
5946
|
+
}
|
|
5947
|
+
}
|
|
5948
|
+
},
|
|
5924
5949
|
tooltip: {
|
|
5925
5950
|
backgroundColor: theme.tooltip.backgroundColor
|
|
5926
5951
|
},
|
|
@@ -5944,6 +5969,17 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
5944
5969
|
input: {
|
|
5945
5970
|
states: theme.forms.input.states
|
|
5946
5971
|
},
|
|
5972
|
+
inputTag: {
|
|
5973
|
+
danger: {
|
|
5974
|
+
backgroundColor: theme.forms.inputTag.danger.backgroundColor
|
|
5975
|
+
},
|
|
5976
|
+
default: {
|
|
5977
|
+
backgroundColor: theme.forms.inputTag.default.backgroundColor
|
|
5978
|
+
},
|
|
5979
|
+
success: {
|
|
5980
|
+
backgroundColor: theme.forms.inputTag.success.backgroundColor
|
|
5981
|
+
}
|
|
5982
|
+
},
|
|
5947
5983
|
radioButtonGroup: {
|
|
5948
5984
|
item: {
|
|
5949
5985
|
borderColor: theme.forms.radioButtonGroup.item.borderColor,
|
|
@@ -6042,6 +6078,49 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6042
6078
|
dark: {
|
|
6043
6079
|
backgroundColor: theme.highlight.dark.backgroundColor
|
|
6044
6080
|
}
|
|
6081
|
+
},
|
|
6082
|
+
verticalSteps: {
|
|
6083
|
+
active: {
|
|
6084
|
+
icon: {
|
|
6085
|
+
backgroundColor: theme.verticalSteps.active.icon.backgroundColor,
|
|
6086
|
+
textColor: theme.verticalSteps.active.icon.textColor
|
|
6087
|
+
}
|
|
6088
|
+
},
|
|
6089
|
+
done: {
|
|
6090
|
+
icon: {
|
|
6091
|
+
backgroundColor: theme.verticalSteps.done.icon.backgroundColor,
|
|
6092
|
+
textColor: theme.verticalSteps.done.icon.textColor
|
|
6093
|
+
}
|
|
6094
|
+
},
|
|
6095
|
+
default: {
|
|
6096
|
+
icon: {
|
|
6097
|
+
backgroundColor: theme.verticalSteps.default.icon.backgroundColor,
|
|
6098
|
+
textColor: theme.verticalSteps.default.icon.textColor
|
|
6099
|
+
}
|
|
6100
|
+
}
|
|
6101
|
+
},
|
|
6102
|
+
listItem: {
|
|
6103
|
+
borderColor: theme.listItem.borderColor
|
|
6104
|
+
},
|
|
6105
|
+
picker: {
|
|
6106
|
+
ios: {
|
|
6107
|
+
item: {
|
|
6108
|
+
selected: {
|
|
6109
|
+
color: theme.picker.ios.selected.color
|
|
6110
|
+
}
|
|
6111
|
+
}
|
|
6112
|
+
},
|
|
6113
|
+
android: {
|
|
6114
|
+
item: {
|
|
6115
|
+
default: {
|
|
6116
|
+
backgroundColor: theme.picker.android.default.backgroundColor
|
|
6117
|
+
},
|
|
6118
|
+
selected: {
|
|
6119
|
+
color: theme.picker.android.selected.color,
|
|
6120
|
+
backgroundColor: theme.picker.android.selected.backgroundColor
|
|
6121
|
+
}
|
|
6122
|
+
}
|
|
6123
|
+
}
|
|
6045
6124
|
}
|
|
6046
6125
|
},
|
|
6047
6126
|
app: appTheme?.colors
|
|
@@ -6077,6 +6156,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6077
6156
|
cardModal: {
|
|
6078
6157
|
borderRadius: theme.cardModal.borderRadius
|
|
6079
6158
|
},
|
|
6159
|
+
choices: {
|
|
6160
|
+
item: {
|
|
6161
|
+
borderRadius: theme.choices.item.borderRadius
|
|
6162
|
+
}
|
|
6163
|
+
},
|
|
6080
6164
|
dialogModal: {
|
|
6081
6165
|
borderRadius: theme.dialogModal.borderRadius
|
|
6082
6166
|
},
|
|
@@ -6084,6 +6168,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6084
6168
|
input: {
|
|
6085
6169
|
borderRadius: theme.forms.input.borderRadius
|
|
6086
6170
|
},
|
|
6171
|
+
inputTag: {
|
|
6172
|
+
borderRadius: theme.forms.inputTag.borderRadius
|
|
6173
|
+
},
|
|
6087
6174
|
radioButtonGroup: {
|
|
6088
6175
|
item: {
|
|
6089
6176
|
borderRadius: theme.forms.radioButtonGroup.item.borderRadius
|
|
@@ -6105,6 +6192,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6105
6192
|
iconButton: {
|
|
6106
6193
|
borderRadius: theme.iconButton.borderRadius
|
|
6107
6194
|
},
|
|
6195
|
+
tag: {
|
|
6196
|
+
borderRadius: theme.tag.borderRadius
|
|
6197
|
+
},
|
|
6108
6198
|
tooltip: {
|
|
6109
6199
|
borderRadius: theme.tooltip.borderRadius
|
|
6110
6200
|
},
|
|
@@ -6216,6 +6306,13 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6216
6306
|
button: {
|
|
6217
6307
|
borderWidth: theme.button.borderWidth
|
|
6218
6308
|
},
|
|
6309
|
+
choices: {
|
|
6310
|
+
item: {
|
|
6311
|
+
disabled: {
|
|
6312
|
+
borderWidth: theme.choices.item.disabled.border.width
|
|
6313
|
+
}
|
|
6314
|
+
}
|
|
6315
|
+
},
|
|
6219
6316
|
iconButton: {
|
|
6220
6317
|
borderWidth: theme.iconButton.borderWidth
|
|
6221
6318
|
},
|
|
@@ -6242,6 +6339,43 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6242
6339
|
footer: {
|
|
6243
6340
|
borderWidth: theme.cardModal.footer.borderWidth
|
|
6244
6341
|
}
|
|
6342
|
+
},
|
|
6343
|
+
listItem: {
|
|
6344
|
+
borderWidth: theme.listItem.borderWidth
|
|
6345
|
+
},
|
|
6346
|
+
tag: {
|
|
6347
|
+
primary: {
|
|
6348
|
+
fill: {
|
|
6349
|
+
borderWidth: theme.tag.primary.fill.borderWidth
|
|
6350
|
+
},
|
|
6351
|
+
outline: {
|
|
6352
|
+
borderWidth: theme.tag.primary.outline.borderWidth
|
|
6353
|
+
}
|
|
6354
|
+
},
|
|
6355
|
+
default: {
|
|
6356
|
+
fill: {
|
|
6357
|
+
borderWidth: theme.tag.default.fill.borderWidth
|
|
6358
|
+
},
|
|
6359
|
+
outline: {
|
|
6360
|
+
borderWidth: theme.tag.default.outline.borderWidth
|
|
6361
|
+
}
|
|
6362
|
+
},
|
|
6363
|
+
danger: {
|
|
6364
|
+
fill: {
|
|
6365
|
+
borderWidth: theme.tag.danger.fill.borderWidth
|
|
6366
|
+
},
|
|
6367
|
+
outline: {
|
|
6368
|
+
borderWidth: theme.tag.danger.outline.borderWidth
|
|
6369
|
+
}
|
|
6370
|
+
},
|
|
6371
|
+
warn: {
|
|
6372
|
+
fill: {
|
|
6373
|
+
borderWidth: theme.tag.warn.fill.borderWidth
|
|
6374
|
+
},
|
|
6375
|
+
outline: {
|
|
6376
|
+
borderWidth: theme.tag.warn.outline.borderWidth
|
|
6377
|
+
}
|
|
6378
|
+
}
|
|
6245
6379
|
}
|
|
6246
6380
|
},
|
|
6247
6381
|
app: appTheme?.borderWidths
|
|
@@ -6316,6 +6450,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6316
6450
|
},
|
|
6317
6451
|
textArea: {
|
|
6318
6452
|
minHeight: theme.forms.textArea.minHeight
|
|
6453
|
+
},
|
|
6454
|
+
timePicker: {
|
|
6455
|
+
minWidth: theme.forms.timePicker.minWidth
|
|
6319
6456
|
}
|
|
6320
6457
|
},
|
|
6321
6458
|
iconButton: {
|
|
@@ -6328,6 +6465,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6328
6465
|
height: theme.fullscreenModal.header.height
|
|
6329
6466
|
}
|
|
6330
6467
|
},
|
|
6468
|
+
pageLoader: {
|
|
6469
|
+
size: theme.pageLoader.size
|
|
6470
|
+
},
|
|
6331
6471
|
tooltip: {
|
|
6332
6472
|
maxWidth: theme.tooltip.maxWidth,
|
|
6333
6473
|
arrow: {
|
|
@@ -6347,6 +6487,16 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6347
6487
|
size: theme.skeleton.shape.square.size
|
|
6348
6488
|
}
|
|
6349
6489
|
}
|
|
6490
|
+
},
|
|
6491
|
+
picker: {
|
|
6492
|
+
ios: {
|
|
6493
|
+
default: {
|
|
6494
|
+
height: theme.picker.ios.default.height
|
|
6495
|
+
},
|
|
6496
|
+
landscape: {
|
|
6497
|
+
height: theme.picker.ios.landscape.height
|
|
6498
|
+
}
|
|
6499
|
+
}
|
|
6350
6500
|
}
|
|
6351
6501
|
},
|
|
6352
6502
|
app: appTheme?.sizes
|
|
@@ -6395,10 +6545,26 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6395
6545
|
highlight: {
|
|
6396
6546
|
padding: theme.highlight.padding
|
|
6397
6547
|
},
|
|
6548
|
+
listItem: {
|
|
6549
|
+
verticalPadding: theme.listItem.verticalPadding,
|
|
6550
|
+
horizontalPadding: theme.listItem.horizontalPadding
|
|
6551
|
+
},
|
|
6552
|
+
tag: {
|
|
6553
|
+
verticalPadding: theme.tag.verticalPadding,
|
|
6554
|
+
horizontalPadding: theme.tag.horizontalPadding
|
|
6555
|
+
},
|
|
6398
6556
|
tooltip: {
|
|
6399
6557
|
horizontalPadding: theme.tooltip.horizontalPadding,
|
|
6400
6558
|
verticalPadding: theme.tooltip.verticalPadding,
|
|
6401
6559
|
floatingPadding: theme.tooltip.floatingPadding
|
|
6560
|
+
},
|
|
6561
|
+
picker: {
|
|
6562
|
+
android: {
|
|
6563
|
+
item: {
|
|
6564
|
+
verticalPadding: theme.picker.android.verticalPadding,
|
|
6565
|
+
horizontalPadding: theme.picker.android.horizontalPadding
|
|
6566
|
+
}
|
|
6567
|
+
}
|
|
6402
6568
|
}
|
|
6403
6569
|
},
|
|
6404
6570
|
app: appTheme?.space
|
|
@@ -7593,17 +7759,17 @@ StaticMap.Loader = StaticMapLoader;
|
|
|
7593
7759
|
StaticMap.Error = StaticMapError;
|
|
7594
7760
|
StaticMap.Marker = StaticMapMarker;
|
|
7595
7761
|
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
}
|
|
7762
|
+
function Flex({
|
|
7763
|
+
direction,
|
|
7764
|
+
wrap = 'wrap',
|
|
7765
|
+
...props
|
|
7766
|
+
}) {
|
|
7767
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
7768
|
+
...props,
|
|
7769
|
+
flexDirection: direction,
|
|
7770
|
+
flexWrap: wrap
|
|
7771
|
+
});
|
|
7772
|
+
}
|
|
7607
7773
|
|
|
7608
7774
|
const storyPadding = 'kitt.4';
|
|
7609
7775
|
|
|
@@ -7887,26 +8053,6 @@ const StoryGrid = {
|
|
|
7887
8053
|
Col: StoryGridCol
|
|
7888
8054
|
};
|
|
7889
8055
|
|
|
7890
|
-
const Container = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative__namespace.View).withConfig({
|
|
7891
|
-
displayName: "Tag__Container",
|
|
7892
|
-
componentId: "kitt-universal__sc-19jmowi-0"
|
|
7893
|
-
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], ({
|
|
7894
|
-
theme,
|
|
7895
|
-
type,
|
|
7896
|
-
variant
|
|
7897
|
-
}) => theme.kitt.tag[type][variant].backgroundColor, ({
|
|
7898
|
-
theme,
|
|
7899
|
-
type,
|
|
7900
|
-
variant
|
|
7901
|
-
}) => theme.kitt.tag[type][variant].borderWidth, ({
|
|
7902
|
-
theme,
|
|
7903
|
-
type,
|
|
7904
|
-
variant
|
|
7905
|
-
}) => theme.kitt.tag[type][variant].borderColor, ({
|
|
7906
|
-
theme
|
|
7907
|
-
}) => theme.kitt.tag.padding, ({
|
|
7908
|
-
theme
|
|
7909
|
-
}) => theme.kitt.tag.borderRadius);
|
|
7910
8056
|
const getLabelColor = (type, variant) => {
|
|
7911
8057
|
switch (type) {
|
|
7912
8058
|
case 'danger':
|
|
@@ -7936,9 +8082,14 @@ function Tag({
|
|
|
7936
8082
|
type = 'default',
|
|
7937
8083
|
variant = 'fill'
|
|
7938
8084
|
}) {
|
|
7939
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
7940
|
-
|
|
7941
|
-
|
|
8085
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8086
|
+
alignSelf: "flex-start",
|
|
8087
|
+
borderRadius: "kitt.tag.borderRadius",
|
|
8088
|
+
paddingX: "kitt.tag.horizontalPadding",
|
|
8089
|
+
paddingY: "kitt.tag.verticalPadding",
|
|
8090
|
+
backgroundColor: `kitt.tag.${type}.${variant}.backgroundColor`,
|
|
8091
|
+
borderColor: `kitt.tag.${type}.${variant}.borderColor`,
|
|
8092
|
+
borderWidth: `kitt.tag.${type}.${variant}.borderWidth`,
|
|
7942
8093
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
7943
8094
|
base: "body-xsmall",
|
|
7944
8095
|
color: getLabelColor(type, variant),
|
|
@@ -7947,10 +8098,90 @@ function Tag({
|
|
|
7947
8098
|
});
|
|
7948
8099
|
}
|
|
7949
8100
|
|
|
7950
|
-
function
|
|
7951
|
-
return
|
|
7952
|
-
|
|
7953
|
-
|
|
8101
|
+
function formatNumberToTimeString(time) {
|
|
8102
|
+
return `${String(time).padStart(2, '0')}`;
|
|
8103
|
+
}
|
|
8104
|
+
function formatDateToTimeString(date) {
|
|
8105
|
+
return `${formatNumberToTimeString(date.getHours())}:${formatNumberToTimeString(date.getMinutes())}`;
|
|
8106
|
+
}
|
|
8107
|
+
|
|
8108
|
+
function getCurrentInternalForcedState({
|
|
8109
|
+
isDisabled,
|
|
8110
|
+
isHoveredInternal,
|
|
8111
|
+
isFocusedInternal,
|
|
8112
|
+
isPressedInternal
|
|
8113
|
+
}) {
|
|
8114
|
+
if (isDisabled) return 'disabled';
|
|
8115
|
+
if (isHoveredInternal) return 'hover';
|
|
8116
|
+
if (isFocusedInternal) return 'focus';
|
|
8117
|
+
if (isPressedInternal) return 'hover';
|
|
8118
|
+
return 'default';
|
|
8119
|
+
}
|
|
8120
|
+
|
|
8121
|
+
function TimePickerPressable({
|
|
8122
|
+
testID,
|
|
8123
|
+
disabled,
|
|
8124
|
+
stretch,
|
|
8125
|
+
value,
|
|
8126
|
+
placeholder,
|
|
8127
|
+
isHoveredInternal,
|
|
8128
|
+
isFocusedInternal,
|
|
8129
|
+
isPressedInternal,
|
|
8130
|
+
onPress
|
|
8131
|
+
}) {
|
|
8132
|
+
return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
|
|
8133
|
+
testID: testID,
|
|
8134
|
+
disabled: disabled,
|
|
8135
|
+
accessibilityRole: "button",
|
|
8136
|
+
width: createResponsiveStyleFromProp(stretch, '100%', 'kitt.forms.timePicker.minWidth'),
|
|
8137
|
+
onPress: onPress,
|
|
8138
|
+
children: ({
|
|
8139
|
+
isHovered,
|
|
8140
|
+
isFocused,
|
|
8141
|
+
isPressed
|
|
8142
|
+
}) => /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8143
|
+
position: "relative",
|
|
8144
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(InputText, {
|
|
8145
|
+
internalForceState: getCurrentInternalForcedState({
|
|
8146
|
+
isDisabled: disabled,
|
|
8147
|
+
isHoveredInternal: isHovered || isHoveredInternal,
|
|
8148
|
+
isFocusedInternal: isFocused || isFocusedInternal,
|
|
8149
|
+
isPressedInternal: isPressed || isPressedInternal
|
|
8150
|
+
}),
|
|
8151
|
+
value: value ? formatDateToTimeString(value) : undefined,
|
|
8152
|
+
placeholder: placeholder,
|
|
8153
|
+
disabled: disabled,
|
|
8154
|
+
textAlign: "center"
|
|
8155
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8156
|
+
position: "absolute",
|
|
8157
|
+
top: "0",
|
|
8158
|
+
left: "0",
|
|
8159
|
+
height: "100%",
|
|
8160
|
+
width: "100%"
|
|
8161
|
+
})]
|
|
8162
|
+
})
|
|
8163
|
+
});
|
|
8164
|
+
}
|
|
8165
|
+
|
|
8166
|
+
function TimePicker({
|
|
8167
|
+
testID,
|
|
8168
|
+
disabled,
|
|
8169
|
+
stretch,
|
|
8170
|
+
value,
|
|
8171
|
+
placeholder,
|
|
8172
|
+
isHoveredInternal,
|
|
8173
|
+
isFocusedInternal,
|
|
8174
|
+
isPressedInternal
|
|
8175
|
+
}) {
|
|
8176
|
+
return /*#__PURE__*/jsxRuntime.jsx(TimePickerPressable, {
|
|
8177
|
+
testID: testID,
|
|
8178
|
+
disabled: disabled,
|
|
8179
|
+
stretch: stretch,
|
|
8180
|
+
value: value,
|
|
8181
|
+
placeholder: placeholder,
|
|
8182
|
+
isHoveredInternal: isHoveredInternal,
|
|
8183
|
+
isFocusedInternal: isFocusedInternal,
|
|
8184
|
+
isPressedInternal: isPressedInternal
|
|
7954
8185
|
});
|
|
7955
8186
|
}
|
|
7956
8187
|
|
|
@@ -8441,6 +8672,128 @@ function useCurrentBreakpointName() {
|
|
|
8441
8672
|
});
|
|
8442
8673
|
}
|
|
8443
8674
|
|
|
8675
|
+
const backgroundColors = {
|
|
8676
|
+
done: 'kitt.verticalSteps.done.icon.backgroundColor',
|
|
8677
|
+
active: 'kitt.verticalSteps.active.icon.backgroundColor',
|
|
8678
|
+
default: 'kitt.verticalSteps.default.icon.backgroundColor'
|
|
8679
|
+
};
|
|
8680
|
+
function IconStatus({
|
|
8681
|
+
state,
|
|
8682
|
+
index
|
|
8683
|
+
}) {
|
|
8684
|
+
if (state === 'done') {
|
|
8685
|
+
return /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
8686
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.CheckIcon, {}),
|
|
8687
|
+
color: "kitt.verticalSteps.done.icon.textColor"
|
|
8688
|
+
});
|
|
8689
|
+
}
|
|
8690
|
+
if (state === 'active') {
|
|
8691
|
+
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8692
|
+
textAlign: "center",
|
|
8693
|
+
variant: "bold",
|
|
8694
|
+
color: "kitt.verticalSteps.active.icon.textColor",
|
|
8695
|
+
children: index + 1
|
|
8696
|
+
});
|
|
8697
|
+
}
|
|
8698
|
+
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8699
|
+
textAlign: "center",
|
|
8700
|
+
variant: "bold",
|
|
8701
|
+
color: "kitt.verticalSteps.default.icon.textColor",
|
|
8702
|
+
children: index + 1
|
|
8703
|
+
});
|
|
8704
|
+
}
|
|
8705
|
+
function StepIcon({
|
|
8706
|
+
index,
|
|
8707
|
+
state = 'default'
|
|
8708
|
+
}) {
|
|
8709
|
+
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8710
|
+
justifyContent: "center",
|
|
8711
|
+
alignItems: "center",
|
|
8712
|
+
width: 30,
|
|
8713
|
+
height: 30,
|
|
8714
|
+
borderRadius: 15,
|
|
8715
|
+
backgroundColor: backgroundColors[state],
|
|
8716
|
+
children: /*#__PURE__*/jsxRuntime.jsx(IconStatus, {
|
|
8717
|
+
state: state,
|
|
8718
|
+
index: index
|
|
8719
|
+
})
|
|
8720
|
+
});
|
|
8721
|
+
}
|
|
8722
|
+
|
|
8723
|
+
function ExternalStep() {
|
|
8724
|
+
return null;
|
|
8725
|
+
}
|
|
8726
|
+
function Step({
|
|
8727
|
+
index = 0,
|
|
8728
|
+
children,
|
|
8729
|
+
state = 'default',
|
|
8730
|
+
isLast = false,
|
|
8731
|
+
shouldDisableNextLink = false
|
|
8732
|
+
}) {
|
|
8733
|
+
return /*#__PURE__*/jsxRuntime.jsxs(nativeBase.HStack, {
|
|
8734
|
+
space: "kitt.2",
|
|
8735
|
+
flexGrow: 1,
|
|
8736
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8737
|
+
marginTop: "kitt.2",
|
|
8738
|
+
paddingY: "kitt.2",
|
|
8739
|
+
backgroundColor: "kitt.white",
|
|
8740
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(StepIcon, {
|
|
8741
|
+
state: state,
|
|
8742
|
+
index: index
|
|
8743
|
+
}), !isLast ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8744
|
+
backgroundColor: shouldDisableNextLink ? 'kitt.palettes.lateOcean.black100' : 'kitt.palettes.lateOcean.moonPurple',
|
|
8745
|
+
width: 1,
|
|
8746
|
+
position: "absolute",
|
|
8747
|
+
top: 46,
|
|
8748
|
+
left: 15,
|
|
8749
|
+
zIndex: -1,
|
|
8750
|
+
height: "100%"
|
|
8751
|
+
}) : null]
|
|
8752
|
+
}), /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8753
|
+
flexGrow: 1,
|
|
8754
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ActionCard, {
|
|
8755
|
+
variant: "primary",
|
|
8756
|
+
children: children
|
|
8757
|
+
})
|
|
8758
|
+
})]
|
|
8759
|
+
});
|
|
8760
|
+
}
|
|
8761
|
+
|
|
8762
|
+
function getStepState(index, activeIndex) {
|
|
8763
|
+
if (index === activeIndex) {
|
|
8764
|
+
return 'active';
|
|
8765
|
+
}
|
|
8766
|
+
if (index < activeIndex) {
|
|
8767
|
+
return 'done';
|
|
8768
|
+
}
|
|
8769
|
+
return 'default';
|
|
8770
|
+
}
|
|
8771
|
+
|
|
8772
|
+
function VerticalSteps({
|
|
8773
|
+
children,
|
|
8774
|
+
activeIndex,
|
|
8775
|
+
...props
|
|
8776
|
+
}) {
|
|
8777
|
+
return /*#__PURE__*/jsxRuntime.jsx(nativeBase.VStack, {
|
|
8778
|
+
space: "kitt.4",
|
|
8779
|
+
width: "100%",
|
|
8780
|
+
...props,
|
|
8781
|
+
children: react.Children.map(children, (child, index) => {
|
|
8782
|
+
if ((process.env.NODE_ENV !== "production") && child.type !== ExternalStep) {
|
|
8783
|
+
throw new Error('VerticalSteps only accepts VerticalSteps.Step as children');
|
|
8784
|
+
}
|
|
8785
|
+
const isLast = index === react.Children.count(children) - 1;
|
|
8786
|
+
return /*#__PURE__*/react.createElement(Step, {
|
|
8787
|
+
...child.props,
|
|
8788
|
+
index,
|
|
8789
|
+
isLast,
|
|
8790
|
+
state: getStepState(index, activeIndex)
|
|
8791
|
+
}, child.props.children);
|
|
8792
|
+
})
|
|
8793
|
+
});
|
|
8794
|
+
}
|
|
8795
|
+
VerticalSteps.Step = ExternalStep;
|
|
8796
|
+
|
|
8444
8797
|
exports.useBreakpointValue = nativeBase.useBreakpointValue;
|
|
8445
8798
|
exports.useClipboard = nativeBase.useClipboard;
|
|
8446
8799
|
exports.useMediaQuery = nativeBase.useMediaQuery;
|
|
@@ -8527,6 +8880,7 @@ exports.TypographyEmoji = TypographyEmoji;
|
|
|
8527
8880
|
exports.TypographyIcon = TypographyIcon;
|
|
8528
8881
|
exports.TypographyLink = TypographyLink;
|
|
8529
8882
|
exports.VStack = VStack;
|
|
8883
|
+
exports.VerticalSteps = VerticalSteps;
|
|
8530
8884
|
exports.View = View;
|
|
8531
8885
|
exports.createChoicesComponent = createChoicesComponent;
|
|
8532
8886
|
exports.createResponsiveStyleFromProp = createResponsiveStyleFromProp;
|