@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
|
@@ -11559,6 +11559,66 @@ function KittNativeBaseProvider({
|
|
|
11559
11559
|
});
|
|
11560
11560
|
}
|
|
11561
11561
|
|
|
11562
|
+
function NavigationBottomSheet({
|
|
11563
|
+
children,
|
|
11564
|
+
hasScrollView,
|
|
11565
|
+
snapPoints,
|
|
11566
|
+
maxDynamicContentSize,
|
|
11567
|
+
isVisible,
|
|
11568
|
+
onClose
|
|
11569
|
+
}) {
|
|
11570
|
+
const bottomSheetRef = useBottomSheet();
|
|
11571
|
+
useEffect(() => {
|
|
11572
|
+
if (isVisible) {
|
|
11573
|
+
var _bottomSheetRef$curre;
|
|
11574
|
+
(_bottomSheetRef$curre = bottomSheetRef.current) === null || _bottomSheetRef$curre === void 0 || _bottomSheetRef$curre.present();
|
|
11575
|
+
} else {
|
|
11576
|
+
var _bottomSheetRef$curre2;
|
|
11577
|
+
(_bottomSheetRef$curre2 = bottomSheetRef.current) === null || _bottomSheetRef$curre2 === void 0 || _bottomSheetRef$curre2.close();
|
|
11578
|
+
}
|
|
11579
|
+
}, [bottomSheetRef, isVisible]);
|
|
11580
|
+
return /*#__PURE__*/jsx(BottomSheet, {
|
|
11581
|
+
ref: bottomSheetRef,
|
|
11582
|
+
maxDynamicContentSize: maxDynamicContentSize,
|
|
11583
|
+
hasScrollView: hasScrollView,
|
|
11584
|
+
snapPoints: snapPoints,
|
|
11585
|
+
onDismiss: onClose,
|
|
11586
|
+
children: /*#__PURE__*/jsx(BottomSheet.View, {
|
|
11587
|
+
children: children
|
|
11588
|
+
})
|
|
11589
|
+
});
|
|
11590
|
+
}
|
|
11591
|
+
function NavigationBottomSheetHeader({
|
|
11592
|
+
children,
|
|
11593
|
+
left
|
|
11594
|
+
}) {
|
|
11595
|
+
return /*#__PURE__*/jsx(HStack, {
|
|
11596
|
+
marginBottom: "kitt.6",
|
|
11597
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
11598
|
+
flexGrow: 1,
|
|
11599
|
+
flexShrink: 1,
|
|
11600
|
+
variant: "bold",
|
|
11601
|
+
textAlign: "center",
|
|
11602
|
+
children: children
|
|
11603
|
+
})
|
|
11604
|
+
});
|
|
11605
|
+
}
|
|
11606
|
+
function NavigationBottomSheetBody(props) {
|
|
11607
|
+
return /*#__PURE__*/jsx(VStack, _objectSpread({
|
|
11608
|
+
flexGrow: 1,
|
|
11609
|
+
flexShrink: 1,
|
|
11610
|
+
marginBottom: "kitt.4"
|
|
11611
|
+
}, props));
|
|
11612
|
+
}
|
|
11613
|
+
function NavigationBottomSheetFooter(props) {
|
|
11614
|
+
return /*#__PURE__*/jsx(HStack, _objectSpread({
|
|
11615
|
+
width: "100%"
|
|
11616
|
+
}, props));
|
|
11617
|
+
}
|
|
11618
|
+
NavigationBottomSheet.Header = NavigationBottomSheetHeader;
|
|
11619
|
+
NavigationBottomSheet.Body = NavigationBottomSheetBody;
|
|
11620
|
+
NavigationBottomSheet.Footer = NavigationBottomSheetFooter;
|
|
11621
|
+
|
|
11562
11622
|
const _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
11563
11623
|
function NavigationModalBehaviour(_ref) {
|
|
11564
11624
|
let {
|
|
@@ -14051,5 +14111,5 @@ function VerticalSteps(_ref) {
|
|
|
14051
14111
|
VerticalSteps.Step = Step;
|
|
14052
14112
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14053
14113
|
|
|
14054
|
-
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 };
|
|
14114
|
+
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 };
|
|
14055
14115
|
//# sourceMappingURL=index-metro.es.ios.js.map
|