@ornikar/kitt-universal 31.4.1-canary.2fdbcaad37b7e76ba2442f7c56a4939349d51eb1.0 → 32.0.1
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 +14 -6
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/FullscreenModalAnimation.web.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts +12 -8
- package/dist/definitions/forms/InputAddress/InputAddress.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts +15 -0
- package/dist/definitions/forms/InputAddress/InputAddressLegacy.d.ts.map +1 -0
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts +5 -4
- package/dist/definitions/forms/InputAddress/InputAddressOption.d.ts.map +1 -1
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts +7 -0
- package/dist/definitions/forms/InputAddress/InputAddressOptionLegacy.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +4 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +14 -0
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +184 -101
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +184 -101
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +119 -36
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +8 -38
- package/dist/index-node-22.17.cjs.web.js +177 -101
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +119 -37
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +8 -38
- package/dist/index-node-22.17.es.web.mjs +177 -102
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +185 -101
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +225 -148
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +34 -30
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +34 -30
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +34 -30
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +34 -30
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +34 -30
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +34 -30
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +34 -30
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +34 -30
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +8 -38
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -840,15 +840,15 @@ const card = {
|
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
842
|
|
|
843
|
-
const webAnimationContentDuration$
|
|
844
|
-
const webAnimationContentEasing$
|
|
843
|
+
const webAnimationContentDuration$2 = 400;
|
|
844
|
+
const webAnimationContentEasing$2 = {
|
|
845
845
|
x1: 0.77,
|
|
846
846
|
y1: 0,
|
|
847
847
|
x2: 0.175,
|
|
848
848
|
y2: 1
|
|
849
849
|
};
|
|
850
|
-
const webAnimationOverlayDuration$
|
|
851
|
-
const webAnimationOverlayEasing$
|
|
850
|
+
const webAnimationOverlayDuration$2 = 250;
|
|
851
|
+
const webAnimationOverlayEasing$2 = {
|
|
852
852
|
x1: 0.42,
|
|
853
853
|
y1: 0,
|
|
854
854
|
x2: 1,
|
|
@@ -883,12 +883,12 @@ const cardModal = {
|
|
|
883
883
|
},
|
|
884
884
|
animation: {
|
|
885
885
|
overlay: {
|
|
886
|
-
duration: webAnimationOverlayDuration$
|
|
887
|
-
easing: webAnimationOverlayEasing$
|
|
886
|
+
duration: webAnimationOverlayDuration$2,
|
|
887
|
+
easing: webAnimationOverlayEasing$2
|
|
888
888
|
},
|
|
889
889
|
content: {
|
|
890
|
-
duration: webAnimationContentDuration$
|
|
891
|
-
easing: webAnimationContentEasing$
|
|
890
|
+
duration: webAnimationContentDuration$2,
|
|
891
|
+
easing: webAnimationContentEasing$2
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
};
|
|
@@ -944,15 +944,15 @@ const choices = {
|
|
|
944
944
|
}
|
|
945
945
|
};
|
|
946
946
|
|
|
947
|
-
const webAnimationContentDuration = 400;
|
|
948
|
-
const webAnimationContentEasing = {
|
|
947
|
+
const webAnimationContentDuration$1 = 400;
|
|
948
|
+
const webAnimationContentEasing$1 = {
|
|
949
949
|
x1: 0.77,
|
|
950
950
|
y1: 0,
|
|
951
951
|
x2: 0.175,
|
|
952
952
|
y2: 1
|
|
953
953
|
};
|
|
954
|
-
const webAnimationOverlayDuration = 250;
|
|
955
|
-
const webAnimationOverlayEasing = {
|
|
954
|
+
const webAnimationOverlayDuration$1 = 250;
|
|
955
|
+
const webAnimationOverlayEasing$1 = {
|
|
956
956
|
x1: 0.42,
|
|
957
957
|
y1: 0,
|
|
958
958
|
x2: 1,
|
|
@@ -974,12 +974,12 @@ const dialogModal = {
|
|
|
974
974
|
},
|
|
975
975
|
animation: {
|
|
976
976
|
overlay: {
|
|
977
|
-
duration: webAnimationOverlayDuration,
|
|
978
|
-
easing: webAnimationOverlayEasing
|
|
977
|
+
duration: webAnimationOverlayDuration$1,
|
|
978
|
+
easing: webAnimationOverlayEasing$1
|
|
979
979
|
},
|
|
980
980
|
content: {
|
|
981
|
-
duration: webAnimationContentDuration,
|
|
982
|
-
easing: webAnimationContentEasing
|
|
981
|
+
duration: webAnimationContentDuration$1,
|
|
982
|
+
easing: webAnimationContentEasing$1
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
};
|
|
@@ -1888,6 +1888,20 @@ const forms = {
|
|
|
1888
1888
|
timePicker
|
|
1889
1889
|
};
|
|
1890
1890
|
|
|
1891
|
+
const webAnimationContentDuration = 600;
|
|
1892
|
+
const webAnimationContentEasing = {
|
|
1893
|
+
x1: 0.77,
|
|
1894
|
+
y1: 0,
|
|
1895
|
+
x2: 0.175,
|
|
1896
|
+
y2: 1
|
|
1897
|
+
};
|
|
1898
|
+
const webAnimationOverlayDuration = 250;
|
|
1899
|
+
const webAnimationOverlayEasing = {
|
|
1900
|
+
x1: 0.42,
|
|
1901
|
+
y1: 0,
|
|
1902
|
+
x2: 1,
|
|
1903
|
+
y2: 1
|
|
1904
|
+
};
|
|
1891
1905
|
const fullscreenModal = {
|
|
1892
1906
|
header: {
|
|
1893
1907
|
height: 56
|
|
@@ -1901,22 +1915,12 @@ const fullscreenModal = {
|
|
|
1901
1915
|
},
|
|
1902
1916
|
animation: {
|
|
1903
1917
|
overlay: {
|
|
1904
|
-
duration:
|
|
1905
|
-
easing:
|
|
1906
|
-
x1: 0.42,
|
|
1907
|
-
y1: 0,
|
|
1908
|
-
x2: 1,
|
|
1909
|
-
y2: 1
|
|
1910
|
-
}
|
|
1918
|
+
duration: webAnimationOverlayDuration,
|
|
1919
|
+
easing: webAnimationOverlayEasing
|
|
1911
1920
|
},
|
|
1912
1921
|
content: {
|
|
1913
|
-
duration:
|
|
1914
|
-
easing:
|
|
1915
|
-
x1: 0.77,
|
|
1916
|
-
y1: 0,
|
|
1917
|
-
x2: 0.175,
|
|
1918
|
-
y2: 1
|
|
1919
|
-
}
|
|
1922
|
+
duration: webAnimationContentDuration,
|
|
1923
|
+
easing: webAnimationContentEasing
|
|
1920
1924
|
}
|
|
1921
1925
|
}
|
|
1922
1926
|
};
|
|
@@ -5178,7 +5182,8 @@ function DialogModalAnimation({
|
|
|
5178
5182
|
onEntered,
|
|
5179
5183
|
onExit,
|
|
5180
5184
|
onExited,
|
|
5181
|
-
onClose
|
|
5185
|
+
onClose,
|
|
5186
|
+
testID
|
|
5182
5187
|
}) {
|
|
5183
5188
|
const [isModalVisible, setIsModalVisible] = useState(visible);
|
|
5184
5189
|
const [isContentVisible, setIsContentVisible] = useState(false);
|
|
@@ -5213,6 +5218,7 @@ function DialogModalAnimation({
|
|
|
5213
5218
|
flexGrow: 1,
|
|
5214
5219
|
justifyContent: "center",
|
|
5215
5220
|
alignItems: "center",
|
|
5221
|
+
testID: testID,
|
|
5216
5222
|
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
|
|
5217
5223
|
visible: isContentVisible,
|
|
5218
5224
|
onExited: handleAnimationExited,
|
|
@@ -6970,6 +6976,82 @@ function FilePicker({
|
|
|
6970
6976
|
});
|
|
6971
6977
|
}
|
|
6972
6978
|
|
|
6979
|
+
function InputAddressOption({
|
|
6980
|
+
item,
|
|
6981
|
+
mainText,
|
|
6982
|
+
secondaryText
|
|
6983
|
+
}) {
|
|
6984
|
+
const sharedTransform = {
|
|
6985
|
+
style: {
|
|
6986
|
+
transform: 'translateY(4px)'
|
|
6987
|
+
}
|
|
6988
|
+
};
|
|
6989
|
+
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
6990
|
+
item: item,
|
|
6991
|
+
testID: "kitt.InputAddressOption.item",
|
|
6992
|
+
children: /*#__PURE__*/jsxs(HStack, {
|
|
6993
|
+
space: "kitt.2",
|
|
6994
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
6995
|
+
_web: sharedTransform,
|
|
6996
|
+
_ios: sharedTransform,
|
|
6997
|
+
_android: sharedTransform,
|
|
6998
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
6999
|
+
icon: /*#__PURE__*/jsx(MapPinRegularIcon, {}),
|
|
7000
|
+
color: "black"
|
|
7001
|
+
})
|
|
7002
|
+
}), /*#__PURE__*/jsx(View, {
|
|
7003
|
+
flexShrink: 1,
|
|
7004
|
+
children: /*#__PURE__*/jsxs(Typography.Text, {
|
|
7005
|
+
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
7006
|
+
variant: "bold",
|
|
7007
|
+
children: mainText
|
|
7008
|
+
}), secondaryText ? /*#__PURE__*/jsxs(Typography.Text, {
|
|
7009
|
+
color: "black-light",
|
|
7010
|
+
variant: "bold",
|
|
7011
|
+
children: [' ', secondaryText]
|
|
7012
|
+
}) : null]
|
|
7013
|
+
})
|
|
7014
|
+
})]
|
|
7015
|
+
})
|
|
7016
|
+
});
|
|
7017
|
+
}
|
|
7018
|
+
|
|
7019
|
+
function InputAddress({
|
|
7020
|
+
errorElement,
|
|
7021
|
+
initialValue,
|
|
7022
|
+
emptyResultsElement,
|
|
7023
|
+
onChange,
|
|
7024
|
+
items,
|
|
7025
|
+
isLoading,
|
|
7026
|
+
hasError,
|
|
7027
|
+
onInputChange,
|
|
7028
|
+
onSelectItem,
|
|
7029
|
+
convertInitialValue,
|
|
7030
|
+
renderItem,
|
|
7031
|
+
...props
|
|
7032
|
+
}) {
|
|
7033
|
+
const formattedInitialValue = initialValue ? convertInitialValue(initialValue) : undefined;
|
|
7034
|
+
return /*#__PURE__*/jsx(Autocomplete, {
|
|
7035
|
+
...props,
|
|
7036
|
+
initialValue: formattedInitialValue,
|
|
7037
|
+
right: isLoading ? /*#__PURE__*/jsx(Icon, {
|
|
7038
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {}),
|
|
7039
|
+
color: "kitt.black"
|
|
7040
|
+
}) : undefined,
|
|
7041
|
+
errorElement: hasError ? errorElement : null,
|
|
7042
|
+
emptyResultsElement: items.length === 0 ? emptyResultsElement : null,
|
|
7043
|
+
onInputChange: value => onInputChange(value),
|
|
7044
|
+
onChange: item => onSelectItem(item, onChange),
|
|
7045
|
+
children: items.map(item => {
|
|
7046
|
+
const itemElement = renderItem(item);
|
|
7047
|
+
return /*#__PURE__*/cloneElement(itemElement, {
|
|
7048
|
+
item
|
|
7049
|
+
});
|
|
7050
|
+
})
|
|
7051
|
+
});
|
|
7052
|
+
}
|
|
7053
|
+
InputAddress.Option = InputAddressOption;
|
|
7054
|
+
|
|
6973
7055
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
6974
7056
|
function GoogleMapsApiKeyProvider({
|
|
6975
7057
|
children,
|
|
@@ -7313,7 +7395,7 @@ function useGoogleMapsAutocomplete() {
|
|
|
7313
7395
|
return context;
|
|
7314
7396
|
}
|
|
7315
7397
|
|
|
7316
|
-
function
|
|
7398
|
+
function InputAddressOptionLegacy({
|
|
7317
7399
|
item
|
|
7318
7400
|
}) {
|
|
7319
7401
|
const sharedTransform = {
|
|
@@ -7323,7 +7405,7 @@ function InputAddressOption({
|
|
|
7323
7405
|
};
|
|
7324
7406
|
return /*#__PURE__*/jsx(Autocomplete.Option, {
|
|
7325
7407
|
item: item,
|
|
7326
|
-
testID: "kitt.
|
|
7408
|
+
testID: "kitt.InputAddressOptionLegacy.item",
|
|
7327
7409
|
children: /*#__PURE__*/jsxs(HStack, {
|
|
7328
7410
|
space: "kitt.2",
|
|
7329
7411
|
children: [/*#__PURE__*/jsx(View, {
|
|
@@ -7384,7 +7466,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7384
7466
|
};
|
|
7385
7467
|
}
|
|
7386
7468
|
|
|
7387
|
-
function
|
|
7469
|
+
function InputAddressLegacy({
|
|
7388
7470
|
initialValue,
|
|
7389
7471
|
itemToString = defaultItemToString,
|
|
7390
7472
|
errorElement,
|
|
@@ -7417,12 +7499,12 @@ function InputAddress({
|
|
|
7417
7499
|
onChange: v => {
|
|
7418
7500
|
onSelectItem(v, onChange);
|
|
7419
7501
|
},
|
|
7420
|
-
children: state.items.map(item => /*#__PURE__*/jsx(
|
|
7502
|
+
children: state.items.map(item => /*#__PURE__*/jsx(InputAddressOptionLegacy, {
|
|
7421
7503
|
item: item
|
|
7422
7504
|
}, item.place_id))
|
|
7423
7505
|
});
|
|
7424
7506
|
}
|
|
7425
|
-
|
|
7507
|
+
InputAddressLegacy.Option = InputAddressOptionLegacy;
|
|
7426
7508
|
|
|
7427
7509
|
const InputEmail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7428
7510
|
return /*#__PURE__*/jsx(InputText, {
|
|
@@ -14396,5 +14478,5 @@ function VerticalSteps({
|
|
|
14396
14478
|
VerticalSteps.Step = Step;
|
|
14397
14479
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14398
14480
|
|
|
14399
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
14481
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, ChromaticReducedMotionDecorator, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputAddressLegacy, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
14400
14482
|
//# sourceMappingURL=index-node-22.17.es.mjs.map
|