@ornikar/kitt-universal 25.58.1-canary.a2bac16fb42ca488d0dd8ad398c7507d2e37d975.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 -2
- package/dist/definitions/Actions/ActionsItem.d.ts.map +1 -1
- 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 -3
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +61 -3
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +61 -2
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +43 -2
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +61 -3
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +43 -3
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +59 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +38 -3
- package/dist/index.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3636,7 +3636,6 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3636
3636
|
const mountedRef = useRef(false);
|
|
3637
3637
|
// securing the loading state with a ref to avoid user action between rerenders
|
|
3638
3638
|
const loadingRef = useRef(false);
|
|
3639
|
-
const isStretch = useBreakpointValue(stretch) || stretch === true;
|
|
3640
3639
|
|
|
3641
3640
|
// effect just for tracking mounted state, as onPress can unmount the ActionButton
|
|
3642
3641
|
useEffect(() => {
|
|
@@ -3646,7 +3645,6 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3646
3645
|
};
|
|
3647
3646
|
}, []);
|
|
3648
3647
|
return /*#__PURE__*/jsx(View, {
|
|
3649
|
-
flexGrow: isStretch ? 1 : undefined,
|
|
3650
3648
|
children: /*#__PURE__*/jsx(as, _objectSpread(_objectSpread({
|
|
3651
3649
|
ref: ref
|
|
3652
3650
|
}, props), {}, {
|
|
@@ -11561,6 +11559,66 @@ function KittNativeBaseProvider({
|
|
|
11561
11559
|
});
|
|
11562
11560
|
}
|
|
11563
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
|
+
|
|
11564
11622
|
const _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
11565
11623
|
function NavigationModalBehaviour(_ref) {
|
|
11566
11624
|
let {
|
|
@@ -14053,5 +14111,5 @@ function VerticalSteps(_ref) {
|
|
|
14053
14111
|
VerticalSteps.Step = Step;
|
|
14054
14112
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14055
14113
|
|
|
14056
|
-
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 };
|
|
14057
14115
|
//# sourceMappingURL=index-metro.es.ios.js.map
|