@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
package/dist/index.es.js
CHANGED
|
@@ -3654,7 +3654,6 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3654
3654
|
var mountedRef = useRef(false);
|
|
3655
3655
|
// securing the loading state with a ref to avoid user action between rerenders
|
|
3656
3656
|
var loadingRef = useRef(false);
|
|
3657
|
-
var isStretch = useBreakpointValue(stretch) || stretch === true;
|
|
3658
3657
|
|
|
3659
3658
|
// effect just for tracking mounted state, as onPress can unmount the ActionButton
|
|
3660
3659
|
useEffect(function () {
|
|
@@ -3664,7 +3663,6 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3664
3663
|
};
|
|
3665
3664
|
}, []);
|
|
3666
3665
|
return /*#__PURE__*/jsx(View, {
|
|
3667
|
-
flexGrow: isStretch ? 1 : undefined,
|
|
3668
3666
|
children: /*#__PURE__*/jsx(as, _objectSpread(_objectSpread({
|
|
3669
3667
|
ref: ref
|
|
3670
3668
|
}, props), {}, {
|
|
@@ -11816,6 +11814,64 @@ function KittNativeBaseProvider(_ref) {
|
|
|
11816
11814
|
});
|
|
11817
11815
|
}
|
|
11818
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
|
+
|
|
11819
11875
|
var _excluded$a = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
11820
11876
|
function NavigationModalBehaviour(_ref) {
|
|
11821
11877
|
var children = _ref.children,
|
|
@@ -14314,5 +14370,5 @@ function VerticalSteps(_ref) {
|
|
|
14314
14370
|
VerticalSteps.Step = Step;
|
|
14315
14371
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
14316
14372
|
|
|
14317
|
-
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 };
|
|
14318
14374
|
//# sourceMappingURL=index.es.js.map
|