@ornikar/kitt-universal 25.58.1-canary.95e9af38cc4e878fc97c4391877d7b879da5b220.0 → 25.59.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 +2 -10
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +42 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts +14 -0
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +61 -1
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +61 -1
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +61 -0
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +45 -2
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +61 -1
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +45 -3
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +76 -18
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +56 -19
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -8
- package/scripts/run-all-transformers.js +0 -98
- package/scripts/run-transformer.js +0 -41
- package/scripts/transformers/modals.js +0 -102
package/dist/index.es.js
CHANGED
|
@@ -3671,7 +3671,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3671
3671
|
icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
|
|
3672
3672
|
onPress: function handlePress(e) {
|
|
3673
3673
|
var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
|
|
3674
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3674
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3675
3675
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
3676
3676
|
while (1) switch (_context.prev = _context.next) {
|
|
3677
3677
|
case 0:
|
|
@@ -4962,7 +4962,7 @@ function ExternalAppLink(_ref) {
|
|
|
4962
4962
|
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
4963
4963
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
4964
4964
|
var handleOnPress = /*#__PURE__*/function () {
|
|
4965
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
4965
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
4966
4966
|
var canOpen;
|
|
4967
4967
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
4968
4968
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5056,7 +5056,7 @@ var defaultOpenLinkBehavior = {
|
|
|
5056
5056
|
|
|
5057
5057
|
function useOpenExternalLink(errorHandler) {
|
|
5058
5058
|
return /*#__PURE__*/function () {
|
|
5059
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
5059
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
5060
5060
|
var href, _ref$behavior, behavior, encodedURL, canOpenURL;
|
|
5061
5061
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
5062
5062
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6424,7 +6424,7 @@ function DocumentPicker(_ref) {
|
|
|
6424
6424
|
documentPickerOptions = _ref.documentPickerOptions;
|
|
6425
6425
|
var childElement = Children.only(children);
|
|
6426
6426
|
var handlePickDocument = /*#__PURE__*/function () {
|
|
6427
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6427
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6428
6428
|
var _childElement$props$o, _childElement$props;
|
|
6429
6429
|
var result;
|
|
6430
6430
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
@@ -6471,7 +6471,7 @@ function ImagePicker(_ref) {
|
|
|
6471
6471
|
imagePickerOptions = _ref.imagePickerOptions;
|
|
6472
6472
|
var childElement = Children.only(children);
|
|
6473
6473
|
var handlePickImage = /*#__PURE__*/function () {
|
|
6474
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6474
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6475
6475
|
var _childElement$props$o, _childElement$props;
|
|
6476
6476
|
var result;
|
|
6477
6477
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
@@ -6761,7 +6761,7 @@ function useGoogleMapsApi() {
|
|
|
6761
6761
|
var googlePlacesServices = {
|
|
6762
6762
|
autoComplete: {
|
|
6763
6763
|
getPlacePredictions: function () {
|
|
6764
|
-
var _getPlacePredictions = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(input) {
|
|
6764
|
+
var _getPlacePredictions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(input) {
|
|
6765
6765
|
var response, data;
|
|
6766
6766
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
6767
6767
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6809,7 +6809,7 @@ function useGoogleMapsApi() {
|
|
|
6809
6809
|
},
|
|
6810
6810
|
placesService: {
|
|
6811
6811
|
getDetails: function () {
|
|
6812
|
-
var _getDetails = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(placeId) {
|
|
6812
|
+
var _getDetails = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(placeId) {
|
|
6813
6813
|
var response, data;
|
|
6814
6814
|
return _regeneratorRuntime().wrap(function (_context2) {
|
|
6815
6815
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -6990,8 +6990,8 @@ function GoogleMapsAutocompleteProvider(_ref) {
|
|
|
6990
6990
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
6991
6991
|
state = _useReducer2[0],
|
|
6992
6992
|
dispatch = _useReducer2[1];
|
|
6993
|
-
var handleInputChange = useDebouncedCallback(useCallback(/*#__PURE__*/function () {
|
|
6994
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
6993
|
+
var handleInputChange = useDebouncedCallback(useCallback( /*#__PURE__*/function () {
|
|
6994
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
6995
6995
|
var predictionsPromise, _yield$predictionsPro, results, status;
|
|
6996
6996
|
return _regeneratorRuntime().wrap(function (_context) {
|
|
6997
6997
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7053,8 +7053,8 @@ function GoogleMapsAutocompleteProvider(_ref) {
|
|
|
7053
7053
|
return _ref2.apply(this, arguments);
|
|
7054
7054
|
};
|
|
7055
7055
|
}(), [mapsApi.autoComplete, minCharsToSearch]), debounceTimeout);
|
|
7056
|
-
var handleSelectItem = useCallback(/*#__PURE__*/function () {
|
|
7057
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, onChange) {
|
|
7056
|
+
var handleSelectItem = useCallback( /*#__PURE__*/function () {
|
|
7057
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, onChange) {
|
|
7058
7058
|
var placePromise, place, formattedAddress;
|
|
7059
7059
|
return _regeneratorRuntime().wrap(function (_context2) {
|
|
7060
7060
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -11814,6 +11814,64 @@ function KittNativeBaseProvider(_ref) {
|
|
|
11814
11814
|
});
|
|
11815
11815
|
}
|
|
11816
11816
|
|
|
11817
|
+
function NavigationBottomSheet(_ref) {
|
|
11818
|
+
var children = _ref.children,
|
|
11819
|
+
hasScrollView = _ref.hasScrollView,
|
|
11820
|
+
snapPoints = _ref.snapPoints,
|
|
11821
|
+
maxDynamicContentSize = _ref.maxDynamicContentSize,
|
|
11822
|
+
isVisible = _ref.isVisible,
|
|
11823
|
+
onClose = _ref.onClose;
|
|
11824
|
+
var bottomSheetRef = useBottomSheet();
|
|
11825
|
+
useEffect(function () {
|
|
11826
|
+
if (isVisible) {
|
|
11827
|
+
var _bottomSheetRef$curre;
|
|
11828
|
+
(_bottomSheetRef$curre = bottomSheetRef.current) === null || _bottomSheetRef$curre === void 0 || _bottomSheetRef$curre.present();
|
|
11829
|
+
} else {
|
|
11830
|
+
var _bottomSheetRef$curre2;
|
|
11831
|
+
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11832
|
+
}
|
|
11833
|
+
}, [bottomSheetRef, isVisible]);
|
|
11834
|
+
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11835
|
+
ref: bottomSheetRef,
|
|
11836
|
+
maxDynamicContentSize: maxDynamicContentSize,
|
|
11837
|
+
hasScrollView: hasScrollView,
|
|
11838
|
+
snapPoints: snapPoints,
|
|
11839
|
+
onDismiss: onClose,
|
|
11840
|
+
children: /*#__PURE__*/jsx(BottomSheet.View, {
|
|
11841
|
+
children: children
|
|
11842
|
+
})
|
|
11843
|
+
});
|
|
11844
|
+
}
|
|
11845
|
+
function NavigationBottomSheetHeader(_ref2) {
|
|
11846
|
+
var children = _ref2.children;
|
|
11847
|
+
_ref2.left;
|
|
11848
|
+
return /*#__PURE__*/jsx(HStack, {
|
|
11849
|
+
marginBottom: "kitt.6",
|
|
11850
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
11851
|
+
flexGrow: 1,
|
|
11852
|
+
flexShrink: 1,
|
|
11853
|
+
variant: "bold",
|
|
11854
|
+
textAlign: "center",
|
|
11855
|
+
children: children
|
|
11856
|
+
})
|
|
11857
|
+
});
|
|
11858
|
+
}
|
|
11859
|
+
function NavigationBottomSheetBody(props) {
|
|
11860
|
+
return /*#__PURE__*/jsx(VStack, _objectSpread({
|
|
11861
|
+
flexGrow: 1,
|
|
11862
|
+
flexShrink: 1,
|
|
11863
|
+
marginBottom: "kitt.4"
|
|
11864
|
+
}, props));
|
|
11865
|
+
}
|
|
11866
|
+
function NavigationBottomSheetFooter(props) {
|
|
11867
|
+
return /*#__PURE__*/jsx(HStack, _objectSpread({
|
|
11868
|
+
width: "100%"
|
|
11869
|
+
}, props));
|
|
11870
|
+
}
|
|
11871
|
+
NavigationBottomSheet.Header = NavigationBottomSheetHeader;
|
|
11872
|
+
NavigationBottomSheet.Body = NavigationBottomSheetBody;
|
|
11873
|
+
NavigationBottomSheet.Footer = NavigationBottomSheetFooter;
|
|
11874
|
+
|
|
11817
11875
|
var _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
11818
11876
|
function NavigationModalBehaviour(_ref) {
|
|
11819
11877
|
var children = _ref.children,
|
|
@@ -12982,12 +13040,12 @@ function StoryGridRow(_ref) {
|
|
|
12982
13040
|
})
|
|
12983
13041
|
});
|
|
12984
13042
|
}
|
|
12985
|
-
function StoryGridCol(
|
|
12986
|
-
var title =
|
|
12987
|
-
titleColor =
|
|
12988
|
-
children =
|
|
12989
|
-
|
|
12990
|
-
platform =
|
|
13043
|
+
function StoryGridCol(_ref10) {
|
|
13044
|
+
var title = _ref10.title,
|
|
13045
|
+
titleColor = _ref10.titleColor,
|
|
13046
|
+
children = _ref10.children,
|
|
13047
|
+
_ref10$platform = _ref10.platform,
|
|
13048
|
+
platform = _ref10$platform === void 0 ? 'all' : _ref10$platform;
|
|
12991
13049
|
var isNative = Platform.OS === 'ios' || Platform.OS === 'android';
|
|
12992
13050
|
if (Platform.OS === 'web' && platform === 'native') {
|
|
12993
13051
|
return null;
|
|
@@ -14312,5 +14370,5 @@ function VerticalSteps(_ref) {
|
|
|
14312
14370
|
VerticalSteps.Step = Step;
|
|
14313
14371
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14314
14372
|
|
|
14315
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, 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, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, 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 };
|
|
14373
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, 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, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, 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 };
|
|
14316
14374
|
//# sourceMappingURL=index.es.js.map
|