@ornikar/kitt-universal 9.12.2 → 9.14.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 (50) 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/Tag/Tag.d.ts +1 -1
  10. package/dist/definitions/Tag/Tag.d.ts.map +1 -1
  11. package/dist/definitions/index.d.ts +4 -0
  12. package/dist/definitions/index.d.ts.map +1 -1
  13. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +1 -0
  14. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  15. package/dist/definitions/themes/default.d.ts +2 -0
  16. package/dist/definitions/themes/default.d.ts.map +1 -1
  17. package/dist/definitions/themes/late-ocean/bottomSheet.d.ts +10 -0
  18. package/dist/definitions/themes/late-ocean/bottomSheet.d.ts.map +1 -0
  19. package/dist/definitions/themes/late-ocean/tag.d.ts +1 -0
  20. package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
  21. package/dist/definitions/themes/late-ocean/typography.d.ts +1 -0
  22. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  23. package/dist/definitions/typography/Typography.d.ts +1 -1
  24. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  25. package/dist/index-browser-all.es.android.js +125 -7
  26. package/dist/index-browser-all.es.android.js.map +1 -1
  27. package/dist/index-browser-all.es.ios.js +125 -7
  28. package/dist/index-browser-all.es.ios.js.map +1 -1
  29. package/dist/index-browser-all.es.js +125 -7
  30. package/dist/index-browser-all.es.js.map +1 -1
  31. package/dist/index-browser-all.es.web.js +65 -5
  32. package/dist/index-browser-all.es.web.js.map +1 -1
  33. package/dist/index-node-14.17.cjs.js +113 -4
  34. package/dist/index-node-14.17.cjs.js.map +1 -1
  35. package/dist/index-node-14.17.cjs.web.js +64 -3
  36. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  37. package/dist/linaria-themes-browser-all.es.android.js +26 -3
  38. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  39. package/dist/linaria-themes-browser-all.es.ios.js +26 -3
  40. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  41. package/dist/linaria-themes-browser-all.es.js +26 -3
  42. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  43. package/dist/linaria-themes-browser-all.es.web.js +26 -3
  44. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  45. package/dist/linaria-themes-node-14.17.cjs.js +26 -3
  46. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  47. package/dist/linaria-themes-node-14.17.cjs.web.js +26 -3
  48. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  49. package/dist/tsbuildinfo +1 -1
  50. 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: {
@@ -1972,7 +2013,8 @@ const typography = {
1972
2013
  'primary-light': colors.primaryLight,
1973
2014
  accent: colors.accent,
1974
2015
  success: colors.success,
1975
- danger: colors.danger
2016
+ danger: colors.danger,
2017
+ warning: colors.warning
1976
2018
  },
1977
2019
  types: {
1978
2020
  headers: {
@@ -2151,8 +2193,6 @@ const fullScreenModal = {
2151
2193
  }
2152
2194
  };
2153
2195
 
2154
- const spacing = 4;
2155
-
2156
2196
  const highlight = {
2157
2197
  borderRadius: {
2158
2198
  base: spacing * 5
@@ -2318,6 +2358,18 @@ const tag = {
2318
2358
  borderWidth: 1,
2319
2359
  borderColor: colors.danger
2320
2360
  }
2361
+ },
2362
+ warn: {
2363
+ fill: {
2364
+ backgroundColor: colors.warning,
2365
+ borderWidth: 0,
2366
+ borderColor: colors.transparent
2367
+ },
2368
+ outline: {
2369
+ backgroundColor: colors.transparent,
2370
+ borderWidth: 1,
2371
+ borderColor: colors.warning
2372
+ }
2321
2373
  }
2322
2374
  };
2323
2375
 
@@ -2362,6 +2414,7 @@ const theme = {
2362
2414
  avatar,
2363
2415
  breakpoints,
2364
2416
  button,
2417
+ bottomSheet,
2365
2418
  card,
2366
2419
  choices,
2367
2420
  dialogModal,
@@ -4856,6 +4909,11 @@ const getLabelColor = (type, variant) => {
4856
4909
  return variant === 'outline' ? 'danger' : 'black';
4857
4910
  }
4858
4911
 
4912
+ case 'warn':
4913
+ {
4914
+ return variant === 'outline' ? 'warning' : 'black';
4915
+ }
4916
+
4859
4917
  case 'primary':
4860
4918
  {
4861
4919
  return 'primary';
@@ -5269,6 +5327,7 @@ function MatchWindowSize({
5269
5327
  exports.useWindowSize = BabelPluginStyledComponentsReactNative.useWindowDimensions;
5270
5328
  exports.Actions = Actions;
5271
5329
  exports.Avatar = Avatar;
5330
+ exports.BottomSheet = BottomSheet;
5272
5331
  exports.Button = Button;
5273
5332
  exports.Card = Card;
5274
5333
  exports.Checkbox = Checkbox;
@@ -5341,8 +5400,10 @@ exports.hex2rgba = hex2rgba;
5341
5400
  exports.matchWindowSize = matchWindowSize;
5342
5401
  exports.styledTextInputMixin = styledTextInputMixin;
5343
5402
  exports.theme = theme;
5403
+ exports.useBottomSheet = useBottomSheet;
5344
5404
  exports.useKittTheme = useKittTheme;
5345
5405
  exports.useMatchWindowSize = useMatchWindowSize;
5406
+ exports.useStaticBottomSheet = useStaticBottomSheet;
5346
5407
  exports.useStoryBlockColor = useStoryBlockColor;
5347
5408
  exports.withTheme = withTheme;
5348
5409
  Object.keys(kittIcons).forEach(function (k) {