lucentia-ui 0.1.3 → 0.1.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.
- package/README.md +152 -0
- package/dist/components/Button/Button.module.css +19 -5
- package/dist/components/Button/Button.stories.js +3 -3
- package/dist/components/Checkbox/Checkbox.module.css +3 -6
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/Input.module.css +13 -4
- package/dist/components/Input/Input.stories.d.ts +1 -0
- package/dist/components/Input/Input.stories.js +6 -1
- package/dist/components/Input/types.d.ts +2 -0
- package/dist/components/Modal/Modal.js +11 -2
- package/dist/components/Modal/Modal.module.css +1 -1
- package/dist/components/Radio/Radio.module.css +1 -5
- package/dist/components/Select/Select.module.css +3 -5
- package/dist/components/Switch/Switch.module.css +2 -2
- package/dist/components/Textarea/Textarea.d.ts +2 -0
- package/dist/components/Textarea/Textarea.js +6 -0
- package/dist/components/Textarea/Textarea.module.css +31 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/Textarea/Textarea.stories.js +22 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +2 -0
- package/dist/components/Textarea/types.d.ts +4 -0
- package/dist/components/Textarea/types.js +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.module.css +71 -85
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/styles/reset.css +7 -0
- package/dist/styles/tokens/theme-dark.css +30 -36
- package/dist/styles/tokens/theme-light.css +7 -9
- package/dist/styles/tokens.css +35 -42
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# lucentia-ui
|
|
2
|
+
|
|
3
|
+
ニューモーフィズムを基調としたReact UI デザイントークン&コンポーネント。ライト/ダークの2カラーテーマを保持。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## インストール方法
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install lucentia-ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
or
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn add lucentia-ui
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Requirements
|
|
22
|
+
|
|
23
|
+
- React 18+
|
|
24
|
+
- CSS Modules 対応環境(Next.js / Vite / CRA など)
|
|
25
|
+
|
|
26
|
+
## 基本の使い方(必須)
|
|
27
|
+
|
|
28
|
+
### 1.ThemeProvider をアプリのルートに配置
|
|
29
|
+
|
|
30
|
+
※lucentia-ui は ThemeProvider が必須です
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import { ThemeProvider } from "lucentia-ui";
|
|
34
|
+
|
|
35
|
+
export default function App() {
|
|
36
|
+
return <ThemeProvider theme="light">{/* your app */}</ThemeProvider>;
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 利用可能なテーマ
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
type Theme = "light" | "dark";
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
<ThemeProvider theme="dark">
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 2.コンポーネントをそのまま使う
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
import { Button, Checkbox, Radio } from "lucentia-ui";
|
|
54
|
+
|
|
55
|
+
export default function Example() {
|
|
56
|
+
return (
|
|
57
|
+
<>
|
|
58
|
+
<Button variant="primary">Save</Button>
|
|
59
|
+
<Checkbox label="Accept terms" />
|
|
60
|
+
<Radio label="Option A" />
|
|
61
|
+
</>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- 追加の CSS import は不要
|
|
67
|
+
- ThemeProvider 配下であればスタイルは自動適用
|
|
68
|
+
|
|
69
|
+
### なぜ ThemeProvider が必要なのか?
|
|
70
|
+
|
|
71
|
+
lucentia-ui のコンポーネントは
|
|
72
|
+
CSS Variables(Design Tokens) に依存しています。
|
|
73
|
+
|
|
74
|
+
```css
|
|
75
|
+
.theme.light {
|
|
76
|
+
--color-background: #ffffff;
|
|
77
|
+
--color-text: #111111;
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
ThemeProvider は:
|
|
82
|
+
|
|
83
|
+
- .theme.light / .theme.dark を付与
|
|
84
|
+
- CSS Variables を有効化
|
|
85
|
+
- コンポーネント CSS を安全に動作させる
|
|
86
|
+
|
|
87
|
+
という役割を持ちます。
|
|
88
|
+
|
|
89
|
+
### テーマ切り替え例
|
|
90
|
+
|
|
91
|
+
```tsx
|
|
92
|
+
import { useState } from "react";
|
|
93
|
+
import { ThemeProvider, Button } from "lucentia-ui";
|
|
94
|
+
|
|
95
|
+
export default function App() {
|
|
96
|
+
const [theme, setTheme] = useState<"light" | "dark">("light");
|
|
97
|
+
|
|
98
|
+
return (
|
|
99
|
+
<ThemeProvider theme={theme}>
|
|
100
|
+
<Button onClick={() => setTheme(theme === "light" ? "dark" : "light")}>
|
|
101
|
+
Toggle theme
|
|
102
|
+
</Button>
|
|
103
|
+
</ThemeProvider>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## コンポーネント設計方針
|
|
109
|
+
|
|
110
|
+
- **HTML ネイティブ要素を尊重**
|
|
111
|
+
- **props extends HTMLAttributes**
|
|
112
|
+
- **状態・色・サイズは Design Tokens に依存**
|
|
113
|
+
- **Tailwind / inline style 不使用**
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 提供コンポーネント
|
|
118
|
+
|
|
119
|
+
- Button
|
|
120
|
+
- Checkbox
|
|
121
|
+
- Radio
|
|
122
|
+
- Input
|
|
123
|
+
- Select
|
|
124
|
+
- Switch
|
|
125
|
+
- Modal
|
|
126
|
+
|
|
127
|
+
詳細は **Storybook** を参照してください。
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 注意事項
|
|
132
|
+
|
|
133
|
+
- **ThemeProvider を使わない場合**
|
|
134
|
+
→ CSS Variables が未定義になり表示が崩れます
|
|
135
|
+
|
|
136
|
+
- **CSS の上書きは非推奨**
|
|
137
|
+
(Tokens 拡張を想定)
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## 将来予定
|
|
142
|
+
|
|
143
|
+
- system theme 対応
|
|
144
|
+
- Theme 拡張 API
|
|
145
|
+
- アニメーション Token
|
|
146
|
+
- a11y 強化
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## License
|
|
151
|
+
|
|
152
|
+
MIT
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
.button {
|
|
2
2
|
font-family: var(--font);
|
|
3
3
|
font-weight: 500;
|
|
4
|
-
border:
|
|
4
|
+
border: 2px solid transparent;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
|
|
7
|
-
border-radius: var(--radius-
|
|
7
|
+
border-radius: var(--radius-sm);
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
transition: box-shadow 0.2s ease, opacity 0.2s ease,
|
|
11
|
-
color 0.25s ease;
|
|
9
|
+
|
|
10
|
+
transition: box-shadow 0.2s ease, opacity 0.2s ease,
|
|
11
|
+
background 0.25s ease-in-out, color 0.25s ease;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/* ===== Variant ===== */
|
|
@@ -22,29 +22,43 @@
|
|
|
22
22
|
color: var(--color-on-primary-container);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.primary:hover:not(:disabled) {
|
|
26
|
+
border: 2px solid var(--color-primary);
|
|
27
|
+
box-shadow: 0 0 4px var(--color-primary), 0 0 8px var(--color-primary);
|
|
28
|
+
}
|
|
25
29
|
|
|
26
30
|
.secondary {
|
|
27
31
|
background: var(--color-secondary-container);
|
|
28
32
|
color: var(--color-on-secondary-container);
|
|
29
33
|
}
|
|
30
34
|
|
|
35
|
+
.secondary:hover:not(:disabled) {
|
|
36
|
+
border: 2px solid var(--color-secondary);
|
|
37
|
+
box-shadow: 0 0 4px var(--color-secondary), 0 0 8px var(--color-secondary);
|
|
38
|
+
}
|
|
31
39
|
|
|
32
40
|
.error {
|
|
33
41
|
background: var(--color-error-container);
|
|
34
42
|
color: var(--color-on-error-container);
|
|
35
43
|
}
|
|
36
44
|
|
|
45
|
+
.error:hover:not(:disabled) {
|
|
46
|
+
border: 2px solid var(--color-error);
|
|
47
|
+
box-shadow: 0 0 4px var(--color-error), 0 0 8px var(--color-error);
|
|
48
|
+
}
|
|
37
49
|
|
|
38
50
|
/* ===== Size ===== */
|
|
39
51
|
|
|
40
52
|
.sm {
|
|
41
53
|
padding: var(--space-xs) var(--space-lg);
|
|
42
54
|
font-size: 0.875rem;
|
|
55
|
+
box-shadow: var(--shadow-sm);
|
|
43
56
|
}
|
|
44
57
|
|
|
45
58
|
.md {
|
|
46
59
|
padding: var(--space-sm) var(--space-2xl);
|
|
47
60
|
font-size: 1rem;
|
|
61
|
+
box-shadow: var(--shadow-md);
|
|
48
62
|
}
|
|
49
63
|
|
|
50
64
|
/* ===== State ===== */
|
|
@@ -31,11 +31,11 @@ const meta = {
|
|
|
31
31
|
export default meta;
|
|
32
32
|
export const Default = {};
|
|
33
33
|
export const State = {
|
|
34
|
-
render: () => (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap:
|
|
34
|
+
render: () => (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 32 }, children: [_jsx(Button, { variant: "default", children: "Default" }), _jsx(Button, { variant: "default", "data-state": "pressed", children: "Pressed" }), _jsx(Button, { variant: "default", disabled: true, children: "Disabled" })] })),
|
|
35
35
|
};
|
|
36
36
|
export const Variants = {
|
|
37
|
-
render: () => (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap:
|
|
37
|
+
render: () => (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 32 }, children: [_jsx(Button, { variant: "default", children: "Default" }), _jsx(Button, { variant: "primary", children: "Primary" }), _jsx(Button, { variant: "secondary", children: "Secondary" }), _jsx(Button, { variant: "error", children: "Error" })] })),
|
|
38
38
|
};
|
|
39
39
|
export const Sizes = {
|
|
40
|
-
render: () => (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap:
|
|
40
|
+
render: () => (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 32 }, children: [_jsx(Button, { size: "sm", children: "Small" }), _jsx(Button, { size: "md", children: "Medium" })] })),
|
|
41
41
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root{
|
|
1
|
+
:root {
|
|
2
2
|
--icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='white' d='M28.6122 12.5595C29.4077 11.7934 30.6741 11.8169 31.4403 12.6122C32.2064 13.4078 32.1829 14.6742 31.3875 15.4404L17.8875 28.4404C17.1025 29.1963 15.8564 29.1846 15.0858 28.414L8.58579 21.914C7.80474 21.133 7.80474 19.8669 8.58579 19.0859C9.36684 18.3048 10.6329 18.3048 11.4139 19.0859L16.5252 24.1972L28.6122 12.5595Z'/%3E%3C/svg%3E");
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
height: 32px;
|
|
24
24
|
border-radius: var(--radius-sm);
|
|
25
25
|
background: var(--color-surface-container);
|
|
26
|
-
box-shadow: var(--shadow-
|
|
26
|
+
box-shadow: var(--shadow-md-in);
|
|
27
27
|
position: relative;
|
|
28
28
|
background-repeat: no-repeat;
|
|
29
29
|
background-position: center;
|
|
30
30
|
background-size: 32px 32px;
|
|
31
|
-
|
|
31
|
+
transition: background-color 0.2s ease;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* checked */
|
|
@@ -51,6 +51,3 @@
|
|
|
51
51
|
.label {
|
|
52
52
|
font-size: 1rem;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InputProps } from "./types";
|
|
2
|
-
export declare const Input: ({ state, className, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Input: ({ state, inputSize, className, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import styles from "./Input.module.css";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
export const Input = ({ state = "default", className, ...props }) => {
|
|
5
|
-
return (_jsx("input", { className: clsx(styles.input, styles[state], className), ...props }));
|
|
4
|
+
export const Input = ({ state = "default", inputSize = "md", className, ...props }) => {
|
|
5
|
+
return (_jsx("input", { className: clsx(styles.input, styles[state], styles[inputSize], className), ...props }));
|
|
6
6
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
border-radius: var(--radius-sm);
|
|
5
5
|
border: 2px solid var(--color-surface);
|
|
6
6
|
outline: none;
|
|
7
|
-
box-shadow: var(--shadow-
|
|
7
|
+
box-shadow: var(--shadow-md-in);
|
|
8
8
|
|
|
9
9
|
background: var(--color-surface-container);
|
|
10
10
|
color: var(--color-on-surface);
|
|
@@ -13,21 +13,30 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* ===== Focus ===== */
|
|
16
|
-
|
|
17
16
|
.input:focus {
|
|
18
17
|
outline: none;
|
|
19
18
|
border: 2px solid var(--color-primary);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
/* ===== Error ===== */
|
|
23
|
-
|
|
24
22
|
.error {
|
|
25
23
|
border: 2px solid var(--color-error);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
/* ===== Disabled ===== */
|
|
29
|
-
|
|
30
27
|
.input:disabled {
|
|
31
28
|
opacity: 0.5;
|
|
32
29
|
cursor: not-allowed;
|
|
33
30
|
}
|
|
31
|
+
|
|
32
|
+
/* ===== size ===== */
|
|
33
|
+
.sm {
|
|
34
|
+
padding: var(--space-sm) var(--space-md);
|
|
35
|
+
font-size: 0.875rem;
|
|
36
|
+
box-shadow: var(--shadow-sm-in);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.md {
|
|
40
|
+
padding: var(--space-md) var(--space-lg);
|
|
41
|
+
font-size: 1rem;
|
|
42
|
+
}
|
|
@@ -12,6 +12,11 @@ export const Default = {
|
|
|
12
12
|
};
|
|
13
13
|
export const State = {
|
|
14
14
|
render: () => {
|
|
15
|
-
return (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap:
|
|
15
|
+
return (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 32 }, children: [_jsx(Input, { placeholder: "Default State", state: "default" }), _jsx(Input, { placeholder: "Error State", state: "error" }), _jsx(Input, { placeholder: "Disabled State", disabled: true })] }));
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export const Size = {
|
|
19
|
+
render: () => {
|
|
20
|
+
return (_jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 16 }, children: [_jsx(Input, { placeholder: "Small Size", inputSize: "sm" }), _jsx(Input, { placeholder: "Medium Size", inputSize: "md" })] }));
|
|
16
21
|
},
|
|
17
22
|
};
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { createPortal } from "react-dom";
|
|
2
4
|
import styles from "./Modal.module.css";
|
|
3
5
|
export const Modal = ({ open, onClose, children }) => {
|
|
4
|
-
|
|
6
|
+
const [mounted, setMounted] = useState(false);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
setMounted(true);
|
|
9
|
+
}, []);
|
|
10
|
+
if (!open || !mounted)
|
|
5
11
|
return null;
|
|
6
|
-
|
|
12
|
+
const modalRoot = document.getElementById("modal-root");
|
|
13
|
+
if (!modalRoot)
|
|
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);
|
|
7
16
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
.wrapper {
|
|
3
2
|
display: inline-flex;
|
|
4
3
|
align-items: center;
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
height: 32px;
|
|
21
20
|
border-radius: 50%;
|
|
22
21
|
background: var(--color-surface);
|
|
23
|
-
box-shadow: var(--shadow-
|
|
22
|
+
box-shadow: var(--shadow-md-in);
|
|
24
23
|
position: relative;
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -48,6 +47,3 @@
|
|
|
48
47
|
.label {
|
|
49
48
|
font-size: 1rem;
|
|
50
49
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
.select {
|
|
2
2
|
font-family: var(--font);
|
|
3
3
|
padding: var(--space-sm) var(--space-md);
|
|
4
|
+
border: 2px solid transparent;
|
|
4
5
|
border-radius: var(--radius-sm);
|
|
5
|
-
box-shadow: var(--shadow-
|
|
6
|
+
box-shadow: var(--shadow-md);
|
|
6
7
|
|
|
7
|
-
background
|
|
8
|
+
background: var(--color-surface-container);
|
|
8
9
|
color: var(--color-on-surface);
|
|
9
10
|
|
|
10
11
|
appearance: none;
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
|
|
13
14
|
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6.5%209.5L12%2015L18%209.5%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
|
|
14
15
|
|
|
15
|
-
|
|
16
16
|
background-repeat: no-repeat;
|
|
17
17
|
background-position: right var(--space-sm) center;
|
|
18
18
|
background-size: 24px;
|
|
@@ -26,11 +26,9 @@ select:has(option[value=""]:checked) {
|
|
|
26
26
|
color: var(--color-on-surface);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
/* focus */
|
|
31
30
|
.select:focus {
|
|
32
31
|
outline: none;
|
|
33
|
-
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
/* error */
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
inset: 0;
|
|
19
19
|
background: var(--color-surface-container);
|
|
20
20
|
border-radius: var(--radius-max);
|
|
21
|
-
box-shadow: var(--shadow-
|
|
21
|
+
box-shadow: var(--shadow-md-in);
|
|
22
22
|
transition: background 0.2s ease;
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
left: 8px;
|
|
33
33
|
top: 8px;
|
|
34
34
|
background: var(--color-on-primary);
|
|
35
|
-
box-shadow: var(--shadow-
|
|
35
|
+
box-shadow: var(--shadow-md);
|
|
36
36
|
border-radius: var(--radius-max);
|
|
37
37
|
transition: transform 0.2s ease;
|
|
38
38
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./Textarea.module.css";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
export const Textarea = ({ state = "default", className, rows = 3, ...props }) => {
|
|
5
|
+
return (_jsx("textarea", { rows: rows, className: clsx(styles.textarea, styles[state], className), ...props }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.textarea {
|
|
2
|
+
font-family: var(--font);
|
|
3
|
+
padding: var(--space-md) var(--space-lg);
|
|
4
|
+
border-radius: var(--radius-sm);
|
|
5
|
+
border: 2px solid var(--color-surface);
|
|
6
|
+
outline: none;
|
|
7
|
+
box-shadow: var(--shadow-md-in);
|
|
8
|
+
|
|
9
|
+
background: var(--color-surface-container);
|
|
10
|
+
color: var(--color-on-surface);
|
|
11
|
+
resize: none;
|
|
12
|
+
scrollbar-width: none;
|
|
13
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* ===== Focus ===== */
|
|
17
|
+
.textarea:focus {
|
|
18
|
+
outline: none;
|
|
19
|
+
border: 2px solid var(--color-primary);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ===== Error ===== */
|
|
23
|
+
.error {
|
|
24
|
+
border: 2px solid var(--color-error);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ===== Disabled ===== */
|
|
28
|
+
.textarea:disabled {
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Textarea } from "./Textarea";
|
|
3
|
+
declare const meta: Meta<typeof Textarea>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Textarea>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const State: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Textarea } from "./Textarea";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Components/Textarea",
|
|
5
|
+
component: Textarea,
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
args: {
|
|
10
|
+
placeholder: "入力してください",
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export const State = {
|
|
14
|
+
render: () => {
|
|
15
|
+
return (_jsxs("div", { style: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
flexDirection: "column",
|
|
18
|
+
alignItems: "flex-start",
|
|
19
|
+
gap: 32,
|
|
20
|
+
}, children: [_jsx(Textarea, { placeholder: "Default State", state: "default" }), _jsx(Textarea, { placeholder: "Error State", state: "error" }), _jsx(Textarea, { placeholder: "Disabled State", disabled: true })] }));
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
.theme {
|
|
2
2
|
min-height: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.light {
|
|
7
3
|
/* font */
|
|
8
4
|
--font: "Noto Sans JP", sans-serif;
|
|
9
5
|
|
|
6
|
+
/* ===== Radius ===== */
|
|
7
|
+
--radius-sm: 8px;
|
|
8
|
+
--radius-md: 16px;
|
|
9
|
+
--radius-max: 999px;
|
|
10
|
+
|
|
11
|
+
/* ===== Space ===== */
|
|
12
|
+
--space-xs: 4px;
|
|
13
|
+
--space-sm: 8px;
|
|
14
|
+
--space-md: 12px;
|
|
15
|
+
--space-lg: 16px;
|
|
16
|
+
--space-xl: 24px;
|
|
17
|
+
--space-2xl: 32px;
|
|
18
|
+
--space-3xl: 48px;
|
|
19
|
+
--space-4xl: 64px;
|
|
20
|
+
--space-5xl: 96px;
|
|
21
|
+
--gap: 32px;
|
|
22
|
+
|
|
23
|
+
/* ===== Layout ===== */
|
|
24
|
+
--container: 1120px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.light {
|
|
10
28
|
/* ===== Color ===== */
|
|
11
29
|
--color-primary: #00a1a1;
|
|
12
30
|
--color-on-primary: #ffffff;
|
|
@@ -28,111 +46,79 @@
|
|
|
28
46
|
|
|
29
47
|
--color-surface: #f4fbfabf;
|
|
30
48
|
--color-on-surface: #161d1d;
|
|
49
|
+
--color-on-surface-variant: #161d1d80;
|
|
31
50
|
--color-surface-container: #e9efeebf;
|
|
32
51
|
|
|
33
52
|
--color-border: #6f7979;
|
|
34
53
|
--color-scrim: rgba(129, 129, 129, 0.25);
|
|
35
54
|
|
|
36
|
-
/* ===== Effect ===== */
|
|
37
|
-
--blur: blur(8px);
|
|
38
|
-
|
|
39
55
|
--color-shadow-l: rgba(255, 255, 255, 1);
|
|
40
56
|
--color-shadow-d: rgba(0, 0, 0, 0.2);
|
|
41
57
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
--shadow-sm-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
46
|
-
inset 4px 4px 4px var(--color-shadow-d);
|
|
58
|
+
/* ===== Effect ===== */
|
|
59
|
+
--blur: blur(8px);
|
|
47
60
|
|
|
48
|
-
--shadow-
|
|
49
|
-
|
|
61
|
+
--shadow-sm: -1px -1px 2px 1px var(--color-shadow-l),
|
|
62
|
+
1px 1px 2px 1px var(--color-shadow-d);
|
|
50
63
|
|
|
64
|
+
--shadow-sm-in: inset -2px -2px 2px var(--color-shadow-l),
|
|
65
|
+
inset 2px 2px 2px var(--color-shadow-d);
|
|
51
66
|
|
|
67
|
+
--shadow-md: -2px -2px 4px 2px var(--color-shadow-l),
|
|
68
|
+
2px 2px 4px 2px var(--color-shadow-d);
|
|
52
69
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
--radius-md: 16px;
|
|
56
|
-
--radius-max: 999px;
|
|
57
|
-
|
|
58
|
-
/* ===== Space ===== */
|
|
59
|
-
--space-xs: 4px;
|
|
60
|
-
--space-sm: 8px;
|
|
61
|
-
--space-md: 12px;
|
|
62
|
-
--space-lg: 16px;
|
|
63
|
-
--space-xl: 24px;
|
|
64
|
-
--space-2xl: 32px;
|
|
65
|
-
--space-3xl: 48px;
|
|
66
|
-
--space-4xl: 64px;
|
|
67
|
-
--space-5xl: 96px;
|
|
68
|
-
--gap: 32px;
|
|
70
|
+
--shadow-md-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
71
|
+
inset 4px 4px 4px var(--color-shadow-d);
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
--shadow-lg: -4px -4px 16px 8px var(--color-shadow-l),
|
|
74
|
+
4px 4px 16px 8px var(--color-shadow-d);
|
|
72
75
|
}
|
|
73
76
|
|
|
77
|
+
.dark {
|
|
78
|
+
--color-primary: #80d5d4;
|
|
79
|
+
--color-on-primary: #003737;
|
|
80
|
+
--color-primary-container: #004f4f;
|
|
81
|
+
--color-on-primary-container: #9cf1f0;
|
|
74
82
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
--color-on-primary-container: #9cf1f0;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
--color-secondary: #b0cccb;
|
|
83
|
-
--color-on-secondary: #1b3534;
|
|
84
|
-
--color-secondary-container: #324b4b;
|
|
85
|
-
--color-on-secondary-container: #cce8e7;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
--color-error: #ffb4ab;
|
|
89
|
-
--color-on-error: #690005;
|
|
90
|
-
--color-error-container: #93000a;
|
|
91
|
-
--color-on-error-container: #ffdad6;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
--color-background: #2b3a38;
|
|
95
|
-
--color-on-background: #dde4e3;
|
|
96
|
-
|
|
83
|
+
--color-secondary: #b0cccb;
|
|
84
|
+
--color-on-secondary: #1b3534;
|
|
85
|
+
--color-secondary-container: #324b4b;
|
|
86
|
+
--color-on-secondary-container: #cce8e7;
|
|
97
87
|
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
--color-error: #ffb4ab;
|
|
89
|
+
--color-on-error: #690005;
|
|
90
|
+
--color-error-container: #93000a;
|
|
91
|
+
--color-on-error-container: #ffdad6;
|
|
100
92
|
|
|
93
|
+
--color-background: #2b3a38;
|
|
94
|
+
--color-on-background: #dde4e3;
|
|
101
95
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
--color-surface: #1a2120bf;
|
|
97
|
+
--color-on-surface: #dde4e3;
|
|
98
|
+
--color-on-surface-variant: #dde4e380;
|
|
99
|
+
--color-surface-container: #262d2d;
|
|
105
100
|
|
|
101
|
+
--color-border: #889392;
|
|
102
|
+
--color-scrim: rgba(0, 0, 0, 0.25);
|
|
106
103
|
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
--color-shadow-l: rgba(255, 255, 255, 0.25);
|
|
105
|
+
--color-shadow-d: rgba(0, 0, 0, 1);
|
|
109
106
|
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
/* ===== Effect ===== */
|
|
108
|
+
--blur: blur(8px);
|
|
112
109
|
|
|
113
|
-
--shadow-sm
|
|
114
|
-
|
|
110
|
+
--shadow-sm: -1px -1px 2px 1px var(--color-shadow-l),
|
|
111
|
+
1px 1px 2px 1px var(--color-shadow-d);
|
|
115
112
|
|
|
116
|
-
--shadow-
|
|
117
|
-
|
|
113
|
+
--shadow-sm-in: inset -2px -2px 2px var(--color-shadow-l),
|
|
114
|
+
inset 2px 2px 2px var(--color-shadow-d);
|
|
118
115
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
--radius-md: 16px;
|
|
122
|
-
--radius-max: 999px;
|
|
116
|
+
--shadow-md: -2px -2px 4px 2px var(--color-shadow-l),
|
|
117
|
+
2px 2px 4px 4px var(--color-shadow-d);
|
|
123
118
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
--space-sm: 8px;
|
|
127
|
-
--space-md: 12px;
|
|
128
|
-
--space-lg: 16px;
|
|
129
|
-
--space-xl: 24px;
|
|
130
|
-
--space-2xl: 32px;
|
|
131
|
-
--space-3xl: 48px;
|
|
132
|
-
--space-4xl: 64px;
|
|
133
|
-
--space-5xl: 96px;
|
|
134
|
-
--gap: 32px;
|
|
119
|
+
--shadow-md-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
120
|
+
inset 4px 4px 4px var(--color-shadow-d);
|
|
135
121
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
122
|
+
--shadow-lg: -4px -4px 16px 8px var(--color-shadow-l),
|
|
123
|
+
4px 4px 16px 8px var(--color-shadow-d);
|
|
124
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./components/Button";
|
|
|
4
4
|
export * from "./components/Checkbox";
|
|
5
5
|
export * from "./components/Radio";
|
|
6
6
|
export * from "./components/Input";
|
|
7
|
+
export * from "./components/Textarea";
|
|
7
8
|
export * from "./components/Select";
|
|
8
9
|
export * from "./components/Switch";
|
|
9
10
|
export * from "./components/Modal";
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./components/Button";
|
|
|
5
5
|
export * from "./components/Checkbox";
|
|
6
6
|
export * from "./components/Radio";
|
|
7
7
|
export * from "./components/Input";
|
|
8
|
+
export * from "./components/Textarea";
|
|
8
9
|
export * from "./components/Select";
|
|
9
10
|
export * from "./components/Switch";
|
|
10
11
|
export * from "./components/Modal";
|
package/dist/styles/reset.css
CHANGED
|
@@ -1,48 +1,42 @@
|
|
|
1
|
-
.theme.dark{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
.theme.dark {
|
|
2
|
+
--color-primary: #80d5d4;
|
|
3
|
+
--color-on-primary: #003737;
|
|
4
|
+
--color-primary-container: #004f4f;
|
|
5
|
+
--color-on-primary-container: #9cf1f0;
|
|
6
6
|
|
|
7
|
+
--color-secondary: #b0cccb;
|
|
8
|
+
--color-on-secondary: #1b3534;
|
|
9
|
+
--color-secondary-container: #324b4b;
|
|
10
|
+
--color-on-secondary-container: #cce8e7;
|
|
7
11
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
--color-error: #ffb4ab;
|
|
13
|
+
--color-on-error: #690005;
|
|
14
|
+
--color-error-container: #93000a;
|
|
15
|
+
--color-on-error-container: #ffdad6;
|
|
12
16
|
|
|
17
|
+
--color-background: #2b3a38;
|
|
18
|
+
--color-on-background: #dde4e3;
|
|
13
19
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
--color-error-container: #93000a;
|
|
17
|
-
--color-on-error-container: #ffdad6;
|
|
20
|
+
--color-surface: #1a2120bf;
|
|
21
|
+
--color-on-surface: #dde4e3;
|
|
18
22
|
|
|
23
|
+
--color-surface-container: #262d2d;
|
|
24
|
+
--color-border: #889392;
|
|
25
|
+
--color-scrim: rgba(0, 0, 0, 0.1);
|
|
19
26
|
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
--color-shadow-l: rgba(255, 255, 255, 0.25);
|
|
28
|
+
--color-shadow-d: rgba(0, 0, 0, 1);
|
|
22
29
|
|
|
30
|
+
--shadow-md: -2px -2px 4px 2px var(--color-shadow-l),
|
|
31
|
+
2px 2px 4px 4px var(--color-shadow-d);
|
|
23
32
|
|
|
24
|
-
--color-
|
|
25
|
-
--color-
|
|
33
|
+
--shadow-md-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
34
|
+
inset 4px 4px 4px var(--color-shadow-d);
|
|
26
35
|
|
|
36
|
+
--shadow-lg: -4px -4px 16px 8px var(--color-shadow-l),
|
|
37
|
+
4px 4px 16px 8px var(--color-shadow-d);
|
|
27
38
|
|
|
28
|
-
|
|
29
|
-
--color-border: #889392;
|
|
30
|
-
--color-scrim: rgba(0, 0, 0, 0.1);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
--color-shadow-l: rgba(255, 255, 255, 0.25);
|
|
34
|
-
--color-shadow-d: rgba(0, 0, 0, 1);
|
|
35
|
-
|
|
36
|
-
--shadow-sm: -2px -2px 4px 2px var(--color-shadow-l),
|
|
37
|
-
2px 2px 4px 4px var(--color-shadow-d);
|
|
38
|
-
|
|
39
|
-
--shadow-sm-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
40
|
-
inset 4px 4px 4px var(--color-shadow-d);
|
|
41
|
-
|
|
42
|
-
--shadow-md: -4px -4px 16px 8px var(--color-shadow-l),
|
|
43
|
-
4px 4px 16px 8px var(--color-shadow-d);
|
|
44
|
-
|
|
45
|
-
/* ===== Radius ===== */
|
|
39
|
+
/* ===== Radius ===== */
|
|
46
40
|
--radius-sm: 8px;
|
|
47
41
|
--radius-md: 16px;
|
|
48
42
|
--radius-max: 999px;
|
|
@@ -61,4 +55,4 @@
|
|
|
61
55
|
|
|
62
56
|
/* ===== Layout ===== */
|
|
63
57
|
--container: 1120px;
|
|
64
|
-
}
|
|
58
|
+
}
|
|
@@ -34,16 +34,14 @@
|
|
|
34
34
|
--color-shadow-l: rgba(255, 255, 255, 1);
|
|
35
35
|
--color-shadow-d: rgba(0, 0, 0, 0.2);
|
|
36
36
|
|
|
37
|
-
--shadow-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
--shadow-sm-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
41
|
-
inset 4px 4px 4px var(--color-shadow-d);
|
|
42
|
-
|
|
43
|
-
--shadow-md: -4px -4px 16px 8px var(--color-shadow-l),
|
|
44
|
-
4px 4px 16px 8px var(--color-shadow-d);
|
|
37
|
+
--shadow-md: -2px -2px 4px 2px var(--color-shadow-l),
|
|
38
|
+
2px 2px 4px 2px var(--color-shadow-d);
|
|
45
39
|
|
|
40
|
+
--shadow-md-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
41
|
+
inset 4px 4px 4px var(--color-shadow-d);
|
|
46
42
|
|
|
43
|
+
--shadow-lg: -4px -4px 16px 8px var(--color-shadow-l),
|
|
44
|
+
4px 4px 16px 8px var(--color-shadow-d);
|
|
47
45
|
|
|
48
46
|
/* ===== Radius ===== */
|
|
49
47
|
--radius-sm: 8px;
|
|
@@ -64,4 +62,4 @@
|
|
|
64
62
|
|
|
65
63
|
/* ===== Layout ===== */
|
|
66
64
|
--container: 1120px;
|
|
67
|
-
}
|
|
65
|
+
}
|
package/dist/styles/tokens.css
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
--color-surface: #f4fbfabf;
|
|
25
25
|
--color-on-surface: #161d1d;
|
|
26
|
+
--color-on-surface-variant: #161d1d80;
|
|
26
27
|
--color-surface-container: #e9efeebf;
|
|
27
28
|
|
|
28
29
|
--color-border: #6f7979;
|
|
@@ -34,16 +35,14 @@
|
|
|
34
35
|
--color-shadow-l: rgba(255, 255, 255, 1);
|
|
35
36
|
--color-shadow-d: rgba(0, 0, 0, 0.2);
|
|
36
37
|
|
|
37
|
-
--shadow-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
--shadow-sm-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
41
|
-
inset 4px 4px 4px var(--color-shadow-d);
|
|
42
|
-
|
|
43
|
-
--shadow-md: -4px -4px 16px 8px var(--color-shadow-l),
|
|
44
|
-
4px 4px 16px 8px var(--color-shadow-d);
|
|
38
|
+
--shadow-md: -2px -2px 4px 2px var(--color-shadow-l),
|
|
39
|
+
2px 2px 4px 2px var(--color-shadow-d);
|
|
45
40
|
|
|
41
|
+
--shadow-md-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
42
|
+
inset 4px 4px 4px var(--color-shadow-d);
|
|
46
43
|
|
|
44
|
+
--shadow-lg: -4px -4px 16px 8px var(--color-shadow-l),
|
|
45
|
+
4px 4px 16px 8px var(--color-shadow-d);
|
|
47
46
|
|
|
48
47
|
/* ===== Radius ===== */
|
|
49
48
|
--radius-sm: 8px;
|
|
@@ -66,49 +65,43 @@
|
|
|
66
65
|
--container: 1120px;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
|
-
|
|
70
68
|
.dark {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
--color-secondary: #b0cccb;
|
|
78
|
-
--color-on-secondary: #1b3534;
|
|
79
|
-
--color-secondary-container: #324b4b;
|
|
80
|
-
--color-on-secondary-container: #cce8e7;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
--color-error: #ffb4ab;
|
|
84
|
-
--color-on-error: #690005;
|
|
85
|
-
--color-error-container: #93000a;
|
|
86
|
-
--color-on-error-container: #ffdad6;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
--color-background: #2b3a38;
|
|
90
|
-
--color-on-background: #dde4e3;
|
|
69
|
+
--color-primary: #80d5d4;
|
|
70
|
+
--color-on-primary: #003737;
|
|
71
|
+
--color-primary-container: #004f4f;
|
|
72
|
+
--color-on-primary-container: #9cf1f0;
|
|
91
73
|
|
|
74
|
+
--color-secondary: #b0cccb;
|
|
75
|
+
--color-on-secondary: #1b3534;
|
|
76
|
+
--color-secondary-container: #324b4b;
|
|
77
|
+
--color-on-secondary-container: #cce8e7;
|
|
92
78
|
|
|
93
|
-
|
|
94
|
-
|
|
79
|
+
--color-error: #ffb4ab;
|
|
80
|
+
--color-on-error: #690005;
|
|
81
|
+
--color-error-container: #93000a;
|
|
82
|
+
--color-on-error-container: #ffdad6;
|
|
95
83
|
|
|
84
|
+
--color-background: #2b3a38;
|
|
85
|
+
--color-on-background: #dde4e3;
|
|
96
86
|
|
|
97
|
-
|
|
98
|
-
|
|
87
|
+
--color-surface: #1a2120bf;
|
|
88
|
+
--color-on-surface: #dde4e3;
|
|
89
|
+
--color-on-surface-variant: #dde4e380;
|
|
90
|
+
--color-surface-container: #262d2d;
|
|
99
91
|
|
|
92
|
+
--color-border: #889392;
|
|
100
93
|
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
--color-shadow-l: rgba(255, 255, 255, 0.25);
|
|
95
|
+
--color-shadow-d: rgba(0, 0, 0, 1);
|
|
103
96
|
|
|
104
|
-
--shadow-
|
|
105
|
-
|
|
97
|
+
--shadow-md: -2px -2px 4px 2px var(--color-shadow-l),
|
|
98
|
+
2px 2px 4px 4px var(--color-shadow-d);
|
|
106
99
|
|
|
107
|
-
--shadow-
|
|
108
|
-
|
|
100
|
+
--shadow-md-in: inset -4px -4px 4px var(--color-shadow-l),
|
|
101
|
+
inset 4px 4px 4px var(--color-shadow-d);
|
|
109
102
|
|
|
110
|
-
--shadow-
|
|
111
|
-
|
|
103
|
+
--shadow-lg: -4px -4px 16px 8px var(--color-shadow-l),
|
|
104
|
+
4px 4px 16px 8px var(--color-shadow-d);
|
|
112
105
|
|
|
113
|
-
|
|
106
|
+
--color-scrim: rgba(0, 0, 0, 0.1);
|
|
114
107
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lucentia-ui",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.5",
|
|
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",
|
|
7
7
|
"exports": {
|