@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
@@ -993,6 +993,36 @@ function Avatar({
993
993
  });
994
994
  }
995
995
 
996
+ function BottomSheetComponent() {
997
+ // noop
998
+ return null;
999
+ }
1000
+
1001
+ const BottomSheet = /*#__PURE__*/react.forwardRef(BottomSheetComponent);
1002
+
1003
+ BottomSheet.View = function () {
1004
+ return null;
1005
+ };
1006
+
1007
+ function useBottomSheet() {
1008
+ const ref = react.useRef(null);
1009
+ return ref;
1010
+ }
1011
+
1012
+ function useStaticBottomSheet(Content) {
1013
+ const bottomSheetRef = react.useRef(null);
1014
+ const BottomSheetMemoized = react.useMemo(() => function (props) {
1015
+ return /*#__PURE__*/jsxRuntime.jsx(BottomSheet, { ...props,
1016
+ ref: bottomSheetRef,
1017
+ children: Content
1018
+ });
1019
+ }, [Content]);
1020
+ return {
1021
+ bottomSheetRef,
1022
+ BottomSheet: BottomSheetMemoized
1023
+ };
1024
+ }
1025
+
996
1026
  const Container$3 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
997
1027
  displayName: "Card__Container",
998
1028
  componentId: "kitt-universal__sc-1n9psug-0"
@@ -1756,6 +1786,17 @@ const avatar = {
1756
1786
  }
1757
1787
  };
1758
1788
 
1789
+ const spacing = 4;
1790
+
1791
+ const bottomSheet = {
1792
+ container: {
1793
+ padding: spacing * 4
1794
+ },
1795
+ handle: {
1796
+ backgroundColor: lateOceanColorPalette.black200
1797
+ }
1798
+ };
1799
+
1759
1800
  const button = {
1760
1801
  borderRadius: 30,
1761
1802
  borderWidth: {
@@ -2151,8 +2192,6 @@ const fullScreenModal = {
2151
2192
  }
2152
2193
  };
2153
2194
 
2154
- const spacing = 4;
2155
-
2156
2195
  const highlight = {
2157
2196
  borderRadius: {
2158
2197
  base: spacing * 5
@@ -2362,6 +2401,7 @@ const theme = {
2362
2401
  avatar,
2363
2402
  breakpoints,
2364
2403
  button,
2404
+ bottomSheet,
2365
2405
  card,
2366
2406
  choices,
2367
2407
  dialogModal,
@@ -5269,6 +5309,7 @@ function MatchWindowSize({
5269
5309
  exports.useWindowSize = BabelPluginStyledComponentsReactNative.useWindowDimensions;
5270
5310
  exports.Actions = Actions;
5271
5311
  exports.Avatar = Avatar;
5312
+ exports.BottomSheet = BottomSheet;
5272
5313
  exports.Button = Button;
5273
5314
  exports.Card = Card;
5274
5315
  exports.Checkbox = Checkbox;
@@ -5341,8 +5382,10 @@ exports.hex2rgba = hex2rgba;
5341
5382
  exports.matchWindowSize = matchWindowSize;
5342
5383
  exports.styledTextInputMixin = styledTextInputMixin;
5343
5384
  exports.theme = theme;
5385
+ exports.useBottomSheet = useBottomSheet;
5344
5386
  exports.useKittTheme = useKittTheme;
5345
5387
  exports.useMatchWindowSize = useMatchWindowSize;
5388
+ exports.useStaticBottomSheet = useStaticBottomSheet;
5346
5389
  exports.useStoryBlockColor = useStoryBlockColor;
5347
5390
  exports.withTheme = withTheme;
5348
5391
  Object.keys(kittIcons).forEach(function (k) {