@sikka/hawa 0.0.55 → 0.0.57
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/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -1
- package/src/blocks/Payment/SelectPayment.js +1 -1
- package/src/elements/DraggableCard.js +0 -2
- package/src/elements/HawaColorPicker.js +0 -3
- package/src/elements/HawaLogoButton.js +62 -8
- package/src/elements/HawaPhoneInput.js +4 -4
- package/src/elements/HawaPopMenu.js +0 -1
- package/src/elements/HawaTable.js +173 -97
- package/src/index.js +0 -2
- package/storybook-static/0.58b40425.iframe.bundle.js +3 -0
- package/storybook-static/{0.6124c2748d3e65e1b2cb.manager.bundle.js.LICENSE.txt → 0.58b40425.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/0.58b40425.iframe.bundle.js.map +1 -0
- package/storybook-static/1.8a994862.iframe.bundle.js +1 -0
- package/storybook-static/10.265ea9add491253ee249.manager.bundle.js +2 -0
- package/storybook-static/{0.b6e074ad.iframe.bundle.js.LICENSE.txt → 10.265ea9add491253ee249.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/11.849df77e390cb885446a.manager.bundle.js +1 -0
- package/storybook-static/12.145180cacdb73a1c41fa.manager.bundle.js +2 -0
- package/storybook-static/{5.deb43d3a68375c09581a.manager.bundle.js.LICENSE.txt → 12.145180cacdb73a1c41fa.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/13.575f17b8db12e674bbfd.manager.bundle.js +1 -0
- package/storybook-static/14.46316235b334885ad26e.manager.bundle.js +1 -0
- package/storybook-static/15.f91ba9c8a1383d676abf.manager.bundle.js +2 -0
- package/storybook-static/{8.bfd0b85fcee1d5b82b2a.manager.bundle.js.LICENSE.txt → 15.f91ba9c8a1383d676abf.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/16.126410c9b7b02fbc5c26.manager.bundle.js +1 -0
- package/storybook-static/2.427819b2.iframe.bundle.js +1 -0
- package/storybook-static/6.0a3ea46a.iframe.bundle.js +3 -0
- package/storybook-static/{6.98a925e3.iframe.bundle.js.LICENSE.txt → 6.0a3ea46a.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/6.0a3ea46a.iframe.bundle.js.map +1 -0
- package/storybook-static/7.9cd3bcaf.iframe.bundle.js +1 -0
- package/storybook-static/8.52752021.iframe.bundle.js +1 -0
- package/storybook-static/9.6bf309ed.iframe.bundle.js +3 -0
- package/storybook-static/{9.c0a47b6b.iframe.bundle.js.LICENSE.txt → 9.6bf309ed.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/9.6bf309ed.iframe.bundle.js.map +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/{main.5a189b21151a4a9bac2a.manager.bundle.js → main.20ee7e8a2af7ee58cc1f.manager.bundle.js} +1 -1
- package/storybook-static/main.89a5002b.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.e7e3ab5b.iframe.bundle.js → runtime~main.6b765954.iframe.bundle.js} +1 -1
- package/storybook-static/runtime~main.84749e9163e4b198514f.manager.bundle.js +1 -0
- package/storybook-static/vendors~main.8be71844.iframe.bundle.js +76 -0
- package/storybook-static/{vendors~main.8cb76571.iframe.bundle.js.LICENSE.txt → vendors~main.8be71844.iframe.bundle.js.LICENSE.txt} +1 -7
- package/storybook-static/vendors~main.8be71844.iframe.bundle.js.map +1 -0
- package/storybook-static/vendors~main.bf986892b9b6ed78a230.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.276217ab3ce7975228ae.manager.bundle.js.LICENSE.txt → vendors~main.bf986892b9b6ed78a230.manager.bundle.js.LICENSE.txt} +0 -0
- package/src/Hooks.js +0 -61
- package/src/theme/HawaTheme.js +0 -941
- package/src/theme/index.js +0 -2
- package/storybook-static/0.6124c2748d3e65e1b2cb.manager.bundle.js +0 -2
- package/storybook-static/0.b6e074ad.iframe.bundle.js +0 -3
- package/storybook-static/0.b6e074ad.iframe.bundle.js.map +0 -1
- package/storybook-static/1.bd6511f086504dd70145.manager.bundle.js +0 -1
- package/storybook-static/1.c5cb37d9.iframe.bundle.js +0 -1
- package/storybook-static/2.c8f6dc2b.iframe.bundle.js +0 -1
- package/storybook-static/5.deb43d3a68375c09581a.manager.bundle.js +0 -2
- package/storybook-static/6.249b7db6e23f6b9cadb6.manager.bundle.js +0 -1
- package/storybook-static/6.98a925e3.iframe.bundle.js +0 -3
- package/storybook-static/6.98a925e3.iframe.bundle.js.map +0 -1
- package/storybook-static/7.d8516dca49008e2c4ff3.manager.bundle.js +0 -1
- package/storybook-static/7.f0b4b36c.iframe.bundle.js +0 -1
- package/storybook-static/8.bfd0b85fcee1d5b82b2a.manager.bundle.js +0 -2
- package/storybook-static/8.d6b26a40.iframe.bundle.js +0 -1
- package/storybook-static/9.c0a47b6b.iframe.bundle.js +0 -3
- package/storybook-static/9.c0a47b6b.iframe.bundle.js.map +0 -1
- package/storybook-static/9.d54acbbe1e3658f1423d.manager.bundle.js +0 -1
- package/storybook-static/main.4a18d932.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.ecdccec302ff88ae42db.manager.bundle.js +0 -1
- package/storybook-static/vendors~main.276217ab3ce7975228ae.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.8cb76571.iframe.bundle.js +0 -76
- package/storybook-static/vendors~main.8cb76571.iframe.bundle.js.map +0 -1
|
File without changes
|
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
|
-
}
|