lucentia-ui 0.2.4 β†’ 0.2.5

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.
@@ -1,4 +1,6 @@
1
1
  .button {
2
+ width: fit-content;
3
+ height: fit-content;
2
4
  font-family: var(--font);
3
5
  font-weight: var(--font-weight-medium);
4
6
  border: 2px solid transparent;
@@ -7,6 +7,16 @@ export const Modal = ({ open, onClose, children, className, }) => {
7
7
  useEffect(() => {
8
8
  setMounted(true);
9
9
  }, []);
10
+ // πŸ”’ θƒŒζ™―γ‚Ήγ‚―γƒ­γƒΌγƒ«γƒ­γƒƒγ‚―
11
+ useEffect(() => {
12
+ if (!open)
13
+ return;
14
+ const originalOverflow = document.body.style.overflow;
15
+ document.body.style.overflow = "hidden";
16
+ return () => {
17
+ document.body.style.overflow = originalOverflow;
18
+ };
19
+ }, [open]);
10
20
  if (!open || !mounted)
11
21
  return null;
12
22
  const modalRoot = document.getElementById("modal-root");
@@ -14,7 +14,6 @@
14
14
  color: var(--color-on-surface);
15
15
  border-radius: var(--radius-md);
16
16
  box-shadow: var(--shadow-surface-lg);
17
- padding: var(--space-lg);
17
+ padding: var(--space-2xl);
18
18
  min-width: 320px;
19
- max-width: 90vw;
20
19
  }
@@ -14,7 +14,7 @@ export const Default = {
14
14
  display: "flex",
15
15
  flexDirection: "column",
16
16
  alignItems: "center",
17
- gap: 32,
17
+ gap: 48,
18
18
  }, children: [_jsx("h2", { children: "Modal Title" }), _jsx("p", { children: "This is a modal content." }), _jsx(Button, { onClick: () => setOpen(false), children: "Close" })] }) })] }));
19
19
  },
20
20
  };
@@ -15,6 +15,7 @@
15
15
  --font-size-16: 16px;
16
16
  --font-size-18: 18px;
17
17
  --font-size-20: 20px;
18
+ --font-size-24: 24px;
18
19
  --font-size-28: 28px;
19
20
  --font-size-40: 40px;
20
21
  --font-size-48: 48px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucentia-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "React UI design token and component system based on neumorphism, featuring two color themes: light and dark.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",