lucentia-ui 0.2.3 → 0.2.4
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/dist/components/Button/Button.module.css +1 -0
- package/dist/components/Feedback/Modal/Modal.js +2 -2
- package/dist/components/Feedback/Modal/Modal.module.css +2 -2
- package/dist/components/Feedback/Modal/types.d.ts +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.module.css +4 -0
- package/dist/components/Typography/typography.module.css +3 -3
- package/dist/styles/font.css +0 -8
- package/package.json +1 -1
- package/dist/fonts/NotoSansJP-Black.woff2 +0 -0
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import styles from "./Modal.module.css";
|
|
5
|
-
export const Modal = ({ open, onClose, children }) => {
|
|
5
|
+
export const Modal = ({ open, onClose, children, className, }) => {
|
|
6
6
|
const [mounted, setMounted] = useState(false);
|
|
7
7
|
useEffect(() => {
|
|
8
8
|
setMounted(true);
|
|
@@ -12,5 +12,5 @@ export const Modal = ({ open, onClose, children }) => {
|
|
|
12
12
|
const modalRoot = document.getElementById("modal-root");
|
|
13
13
|
if (!modalRoot)
|
|
14
14
|
return null;
|
|
15
|
-
return createPortal(_jsx("div", { className: styles.overlay, onClick: onClose, children: _jsx("div", { className: styles.modal, onClick: (e) => e.stopPropagation(), children: children }) }), modalRoot);
|
|
15
|
+
return createPortal(_jsx("div", { className: styles.overlay, onClick: onClose, children: _jsx("div", { className: [styles.modal, className].filter(Boolean).join(" "), onClick: (e) => e.stopPropagation(), children: children }) }), modalRoot);
|
|
16
16
|
};
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.modal {
|
|
13
|
-
background: var(--color-
|
|
13
|
+
background: var(--color-background);
|
|
14
14
|
color: var(--color-on-surface);
|
|
15
15
|
border-radius: var(--radius-md);
|
|
16
|
-
box-shadow: var(--shadow-lg);
|
|
16
|
+
box-shadow: var(--shadow-surface-lg);
|
|
17
17
|
padding: var(--space-lg);
|
|
18
18
|
min-width: 320px;
|
|
19
19
|
max-width: 90vw;
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
--font-weight-black: 700;
|
|
30
30
|
|
|
31
31
|
/* ===== Radius ===== */
|
|
32
|
+
--radius-xs: 4px;
|
|
32
33
|
--radius-sm: 8px;
|
|
33
34
|
--radius-md: 16px;
|
|
34
35
|
--radius-max: 999px;
|
|
@@ -102,6 +103,9 @@
|
|
|
102
103
|
--shadow-lg:
|
|
103
104
|
-4px -4px 16px 8px var(--color-shadow-l),
|
|
104
105
|
4px 4px 16px 8px var(--color-shadow-d);
|
|
106
|
+
|
|
107
|
+
--shadow-surface-lg:
|
|
108
|
+
0px 4px 16px 8px var(--color-shadow-d);
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
.dark {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
.heading-lg {
|
|
22
22
|
font-size: var(--font-size-24);
|
|
23
23
|
line-height: var(--line-snug);
|
|
24
|
-
font-weight: var(--font-weight-
|
|
24
|
+
font-weight: var(--font-weight-medium);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.heading-md {
|
|
28
28
|
font-size: var(--font-size-20);
|
|
29
29
|
line-height: var(--line-snug);
|
|
30
|
-
font-weight: var(--font-weight-
|
|
30
|
+
font-weight: var(--font-weight-medium);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.heading-sm {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
.heading-xs {
|
|
40
40
|
font-size: var(--font-size-16);
|
|
41
41
|
line-height: var(--line-snug);
|
|
42
|
-
font-weight: var(--font-weight-
|
|
42
|
+
font-weight: var(--font-weight-medium);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/* ========================================
|
package/dist/styles/font.css
CHANGED
package/package.json
CHANGED
|
Binary file
|