@ornikar/kitt-universal 9.12.2 → 9.13.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.
Files changed (40) hide show
  1. package/dist/definitions/BottomSheet/BottomSheet.d.ts +16 -0
  2. package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -0
  3. package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +7 -0
  4. package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -0
  5. package/dist/definitions/BottomSheet/useBottomSheet.d.ts +4 -0
  6. package/dist/definitions/BottomSheet/useBottomSheet.d.ts.map +1 -0
  7. package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts +15 -0
  8. package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts.map +1 -0
  9. package/dist/definitions/index.d.ts +4 -0
  10. package/dist/definitions/index.d.ts.map +1 -1
  11. package/dist/definitions/themes/default.d.ts +1 -0
  12. package/dist/definitions/themes/default.d.ts.map +1 -1
  13. package/dist/definitions/themes/late-ocean/bottomSheet.d.ts +10 -0
  14. package/dist/definitions/themes/late-ocean/bottomSheet.d.ts.map +1 -0
  15. package/dist/index-browser-all.es.android.js +106 -6
  16. package/dist/index-browser-all.es.android.js.map +1 -1
  17. package/dist/index-browser-all.es.ios.js +106 -6
  18. package/dist/index-browser-all.es.ios.js.map +1 -1
  19. package/dist/index-browser-all.es.js +106 -6
  20. package/dist/index-browser-all.es.js.map +1 -1
  21. package/dist/index-browser-all.es.web.js +46 -4
  22. package/dist/index-browser-all.es.web.js.map +1 -1
  23. package/dist/index-node-14.17.cjs.js +94 -3
  24. package/dist/index-node-14.17.cjs.js.map +1 -1
  25. package/dist/index-node-14.17.cjs.web.js +45 -2
  26. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  27. package/dist/linaria-themes-browser-all.es.android.js +12 -2
  28. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  29. package/dist/linaria-themes-browser-all.es.ios.js +12 -2
  30. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  31. package/dist/linaria-themes-browser-all.es.js +12 -2
  32. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  33. package/dist/linaria-themes-browser-all.es.web.js +12 -2
  34. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  35. package/dist/linaria-themes-node-14.17.cjs.js +12 -2
  36. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  37. package/dist/linaria-themes-node-14.17.cjs.web.js +12 -2
  38. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  39. package/dist/tsbuildinfo +1 -1
  40. package/package.json +8 -2
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import { Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Text as Text$1, View as View$2, ScrollView as ScrollView$1, Pressable as Pressable$2, Image as Image$1, Input, NativeBaseProvider, extendTheme } from 'native-base';
4
4
  import _extends from '@babel/runtime/helpers/extends';
5
- import { forwardRef, useContext, createContext, cloneElement, useState, useRef, useEffect, Children, useMemo, Fragment } from 'react';
5
+ import { forwardRef, useContext, createContext, cloneElement, useState, useRef, useEffect, useMemo, Children, Fragment } from 'react';
6
6
  import { styled } from '@linaria/react';
7
7
  import { Pressable as Pressable$1, View as View$1, useWindowDimensions, Image, StyleSheet, ScrollView as ScrollView$2, Linking, Modal as Modal$1, Text as Text$2 } from 'react-native';
8
8
  export { useWindowDimensions as useWindowSize } from 'react-native';
@@ -1057,6 +1057,38 @@ function Avatar(_ref6) {
1057
1057
  });
1058
1058
  }
1059
1059
 
1060
+ function BottomSheetComponent() {
1061
+ // noop
1062
+ return null;
1063
+ }
1064
+
1065
+ var BottomSheet = /*#__PURE__*/forwardRef(BottomSheetComponent);
1066
+
1067
+ BottomSheet.View = function () {
1068
+ return null;
1069
+ };
1070
+
1071
+ function useBottomSheet() {
1072
+ var ref = useRef(null);
1073
+ return ref;
1074
+ }
1075
+
1076
+ function useStaticBottomSheet(Content) {
1077
+ var bottomSheetRef = useRef(null);
1078
+ var BottomSheetMemoized = useMemo(function () {
1079
+ return function (props) {
1080
+ return /*#__PURE__*/jsx(BottomSheet, _objectSpread(_objectSpread({}, props), {}, {
1081
+ ref: bottomSheetRef,
1082
+ children: Content
1083
+ }));
1084
+ };
1085
+ }, [Content]);
1086
+ return {
1087
+ bottomSheetRef: bottomSheetRef,
1088
+ BottomSheet: BottomSheetMemoized
1089
+ };
1090
+ }
1091
+
1060
1092
  var Container$3 = /*#__PURE__*/styled$1(View$1).withConfig({
1061
1093
  displayName: "Card__Container",
1062
1094
  componentId: "kitt-universal__sc-1n9psug-0"
@@ -1892,6 +1924,17 @@ var avatar = {
1892
1924
  }
1893
1925
  };
1894
1926
 
1927
+ var spacing = 4;
1928
+
1929
+ var bottomSheet = {
1930
+ container: {
1931
+ padding: spacing * 4
1932
+ },
1933
+ handle: {
1934
+ backgroundColor: lateOceanColorPalette.black200
1935
+ }
1936
+ };
1937
+
1895
1938
  var button = {
1896
1939
  borderRadius: 30,
1897
1940
  borderWidth: {
@@ -2291,8 +2334,6 @@ var fullScreenModal = {
2291
2334
  }
2292
2335
  };
2293
2336
 
2294
- var spacing = 4;
2295
-
2296
2337
  var highlight = {
2297
2338
  borderRadius: {
2298
2339
  base: spacing * 5
@@ -2502,6 +2543,7 @@ var theme = {
2502
2543
  avatar: avatar,
2503
2544
  breakpoints: breakpoints,
2504
2545
  button: button,
2546
+ bottomSheet: bottomSheet,
2505
2547
  card: card,
2506
2548
  choices: choices,
2507
2549
  dialogModal: dialogModal,
@@ -5572,5 +5614,5 @@ function MatchWindowSize(_ref) {
5572
5614
  return children;
5573
5615
  }
5574
5616
 
5575
- export { Actions, Avatar, Button, Card, Checkbox, ChoicesElements, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Highlight, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
5617
+ export { Actions, Avatar, BottomSheet, Button, Card, Checkbox, ChoicesElements, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Highlight, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useBottomSheet, useKittTheme, useMatchWindowSize, useStaticBottomSheet, useStoryBlockColor, withTheme };
5576
5618
  //# sourceMappingURL=index-browser-all.es.web.js.map