@sikka/hawa 0.0.56 → 0.0.58

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 (70) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +2 -2
  4. package/src/blocks/Payment/SelectPayment.js +1 -1
  5. package/src/elements/DraggableCard.js +0 -2
  6. package/src/elements/HawaColorPicker.js +0 -3
  7. package/src/elements/HawaPhoneInput.js +4 -4
  8. package/src/elements/HawaPopMenu.js +0 -1
  9. package/src/elements/HawaTable.js +173 -97
  10. package/src/index.js +0 -2
  11. package/storybook-static/0.58b40425.iframe.bundle.js +3 -0
  12. package/storybook-static/{0.6124c2748d3e65e1b2cb.manager.bundle.js.LICENSE.txt → 0.58b40425.iframe.bundle.js.LICENSE.txt} +0 -0
  13. package/storybook-static/0.58b40425.iframe.bundle.js.map +1 -0
  14. package/storybook-static/1.8a994862.iframe.bundle.js +1 -0
  15. package/storybook-static/10.265ea9add491253ee249.manager.bundle.js +2 -0
  16. package/storybook-static/{0.b6e074ad.iframe.bundle.js.LICENSE.txt → 10.265ea9add491253ee249.manager.bundle.js.LICENSE.txt} +0 -0
  17. package/storybook-static/11.849df77e390cb885446a.manager.bundle.js +1 -0
  18. package/storybook-static/12.145180cacdb73a1c41fa.manager.bundle.js +2 -0
  19. package/storybook-static/{5.deb43d3a68375c09581a.manager.bundle.js.LICENSE.txt → 12.145180cacdb73a1c41fa.manager.bundle.js.LICENSE.txt} +0 -0
  20. package/storybook-static/13.575f17b8db12e674bbfd.manager.bundle.js +1 -0
  21. package/storybook-static/14.46316235b334885ad26e.manager.bundle.js +1 -0
  22. package/storybook-static/15.f91ba9c8a1383d676abf.manager.bundle.js +2 -0
  23. package/storybook-static/{8.bfd0b85fcee1d5b82b2a.manager.bundle.js.LICENSE.txt → 15.f91ba9c8a1383d676abf.manager.bundle.js.LICENSE.txt} +0 -0
  24. package/storybook-static/16.126410c9b7b02fbc5c26.manager.bundle.js +1 -0
  25. package/storybook-static/2.427819b2.iframe.bundle.js +1 -0
  26. package/storybook-static/6.0a3ea46a.iframe.bundle.js +3 -0
  27. package/storybook-static/{6.98a925e3.iframe.bundle.js.LICENSE.txt → 6.0a3ea46a.iframe.bundle.js.LICENSE.txt} +0 -0
  28. package/storybook-static/6.0a3ea46a.iframe.bundle.js.map +1 -0
  29. package/storybook-static/7.9cd3bcaf.iframe.bundle.js +1 -0
  30. package/storybook-static/8.52752021.iframe.bundle.js +1 -0
  31. package/storybook-static/9.6bf309ed.iframe.bundle.js +3 -0
  32. package/storybook-static/{9.c0a47b6b.iframe.bundle.js.LICENSE.txt → 9.6bf309ed.iframe.bundle.js.LICENSE.txt} +0 -0
  33. package/storybook-static/9.6bf309ed.iframe.bundle.js.map +1 -0
  34. package/storybook-static/iframe.html +1 -1
  35. package/storybook-static/index.html +1 -1
  36. package/storybook-static/{main.5a189b21151a4a9bac2a.manager.bundle.js → main.20ee7e8a2af7ee58cc1f.manager.bundle.js} +1 -1
  37. package/storybook-static/main.89a5002b.iframe.bundle.js +1 -0
  38. package/storybook-static/project.json +1 -1
  39. package/storybook-static/{runtime~main.e7e3ab5b.iframe.bundle.js → runtime~main.6b765954.iframe.bundle.js} +1 -1
  40. package/storybook-static/runtime~main.84749e9163e4b198514f.manager.bundle.js +1 -0
  41. package/storybook-static/vendors~main.8be71844.iframe.bundle.js +76 -0
  42. package/storybook-static/{vendors~main.2f76ed42.iframe.bundle.js.LICENSE.txt → vendors~main.8be71844.iframe.bundle.js.LICENSE.txt} +1 -7
  43. package/storybook-static/vendors~main.8be71844.iframe.bundle.js.map +1 -0
  44. package/storybook-static/vendors~main.bf986892b9b6ed78a230.manager.bundle.js +2 -0
  45. package/storybook-static/{vendors~main.276217ab3ce7975228ae.manager.bundle.js.LICENSE.txt → vendors~main.bf986892b9b6ed78a230.manager.bundle.js.LICENSE.txt} +0 -0
  46. package/src/Hooks.js +0 -61
  47. package/src/theme/HawaTheme.js +0 -941
  48. package/src/theme/index.js +0 -2
  49. package/storybook-static/0.6124c2748d3e65e1b2cb.manager.bundle.js +0 -2
  50. package/storybook-static/0.b6e074ad.iframe.bundle.js +0 -3
  51. package/storybook-static/0.b6e074ad.iframe.bundle.js.map +0 -1
  52. package/storybook-static/1.bd6511f086504dd70145.manager.bundle.js +0 -1
  53. package/storybook-static/1.c5cb37d9.iframe.bundle.js +0 -1
  54. package/storybook-static/2.c8f6dc2b.iframe.bundle.js +0 -1
  55. package/storybook-static/5.deb43d3a68375c09581a.manager.bundle.js +0 -2
  56. package/storybook-static/6.249b7db6e23f6b9cadb6.manager.bundle.js +0 -1
  57. package/storybook-static/6.98a925e3.iframe.bundle.js +0 -3
  58. package/storybook-static/6.98a925e3.iframe.bundle.js.map +0 -1
  59. package/storybook-static/7.d8516dca49008e2c4ff3.manager.bundle.js +0 -1
  60. package/storybook-static/7.f0b4b36c.iframe.bundle.js +0 -1
  61. package/storybook-static/8.bfd0b85fcee1d5b82b2a.manager.bundle.js +0 -2
  62. package/storybook-static/8.d6b26a40.iframe.bundle.js +0 -1
  63. package/storybook-static/9.c0a47b6b.iframe.bundle.js +0 -3
  64. package/storybook-static/9.c0a47b6b.iframe.bundle.js.map +0 -1
  65. package/storybook-static/9.d54acbbe1e3658f1423d.manager.bundle.js +0 -1
  66. package/storybook-static/main.f7b63ca5.iframe.bundle.js +0 -1
  67. package/storybook-static/runtime~main.ecdccec302ff88ae42db.manager.bundle.js +0 -1
  68. package/storybook-static/vendors~main.276217ab3ce7975228ae.manager.bundle.js +0 -2
  69. package/storybook-static/vendors~main.2f76ed42.iframe.bundle.js +0 -76
  70. package/storybook-static/vendors~main.2f76ed42.iframe.bundle.js.map +0 -1
package/src/Hooks.js DELETED
@@ -1,61 +0,0 @@
1
- import { useEffect, useState } from "react";
2
- import { useTheme } from "@mui/material";
3
-
4
- export function useDisclosure(defaultValue) {
5
- const [isOpen, setIsOpen] = useState(
6
- defaultValue ? Boolean(defaultValue) : false
7
- );
8
-
9
- function onClose() {
10
- setIsOpen(false);
11
- }
12
-
13
- function onOpen() {
14
- setIsOpen(true);
15
- }
16
-
17
- return {
18
- isOpen: isOpen,
19
- onClose: onClose,
20
- onOpen: onOpen
21
- };
22
- }
23
-
24
- export function useBreakPointValue(values) {
25
- const [value, setValue] = useState(values.base ?? "");
26
- const theme = useTheme();
27
-
28
- useEffect(() => {
29
- console.log("break point",theme.breakpoints.values);
30
- function handleResize() {
31
- if (
32
- values.mobile &&
33
- window.innerWidth >= theme.breakpoints.values.mobile &&
34
- window.innerWidth < theme.breakpoints.values.tablet
35
- )
36
- setValue(values.mobile);
37
- if (
38
- values.tablet &&
39
- window.innerWidth >= theme.breakpoints.values.tablet &&
40
- window.innerWidth < theme.breakpoints.values.laptop
41
- )
42
- setValue(values.tablet);
43
- if (
44
- values.laptop &&
45
- window.innerWidth >= theme.breakpoints.values.laptop &&
46
- window.innerWidth < theme.breakpoints.values.desktop
47
- )
48
- setValue(values.laptop);
49
-
50
- if (
51
- values.desktop &&
52
- window.innerWidth >= theme.breakpoints.values.desktop
53
- )
54
- setValue(values.desktop);
55
- }
56
- window.addEventListener("resize", handleResize);
57
- return () => window.removeEventListener("resize", handleResize);
58
- }, []);
59
-
60
- return value;
61
- }