@polastack/design-system 0.1.0

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.
@@ -0,0 +1,218 @@
1
+ /**
2
+ * カラートークン定数
3
+ * CSS変数(globals.css @theme)と同期。プログラム的アクセス用。
4
+ * スタイリングにはTailwindユーティリティクラス(bg-primary-500等)を推奨。
5
+ */
6
+ declare const colors: {
7
+ readonly primary: {
8
+ readonly 50: "#f0fdfb";
9
+ readonly 100: "#cdfbf0";
10
+ readonly 200: "#9bf7e2";
11
+ readonly 300: "#61ebd0";
12
+ readonly 400: "#2fd4ba";
13
+ readonly 500: "#1BA491";
14
+ readonly 600: "#138575";
15
+ readonly 700: "#146b5f";
16
+ readonly 800: "#15564e";
17
+ readonly 900: "#134841";
18
+ readonly 950: "#042c28";
19
+ };
20
+ readonly neutral: {
21
+ readonly 50: "#fafafa";
22
+ readonly 100: "#f4f4f5";
23
+ readonly 200: "#e4e4e7";
24
+ readonly 300: "#d4d4d8";
25
+ readonly 400: "#a1a1aa";
26
+ readonly 500: "#71717a";
27
+ readonly 600: "#52525b";
28
+ readonly 700: "#3f3f46";
29
+ readonly 800: "#27272a";
30
+ readonly 900: "#18181b";
31
+ readonly 950: "#09090b";
32
+ };
33
+ readonly success: {
34
+ readonly 50: "#f0fdf4";
35
+ readonly 100: "#dcfce7";
36
+ readonly 200: "#bbf7d0";
37
+ readonly 300: "#86efac";
38
+ readonly 400: "#4ade80";
39
+ readonly 500: "#22c55e";
40
+ readonly 600: "#16a34a";
41
+ readonly 700: "#15803d";
42
+ readonly 800: "#166534";
43
+ readonly 900: "#14532d";
44
+ readonly 950: "#052e16";
45
+ };
46
+ readonly warning: {
47
+ readonly 50: "#fffbeb";
48
+ readonly 100: "#fef3c7";
49
+ readonly 200: "#fde68a";
50
+ readonly 300: "#fcd34d";
51
+ readonly 400: "#fbbf24";
52
+ readonly 500: "#f59e0b";
53
+ readonly 600: "#d97706";
54
+ readonly 700: "#b45309";
55
+ readonly 800: "#92400e";
56
+ readonly 900: "#78350f";
57
+ readonly 950: "#451a03";
58
+ };
59
+ readonly error: {
60
+ readonly 50: "#fef2f2";
61
+ readonly 100: "#fee2e2";
62
+ readonly 200: "#fecaca";
63
+ readonly 300: "#fca5a5";
64
+ readonly 400: "#f87171";
65
+ readonly 500: "#ef4444";
66
+ readonly 600: "#dc2626";
67
+ readonly 700: "#b91c1c";
68
+ readonly 800: "#991b1b";
69
+ readonly 900: "#7f1d1d";
70
+ readonly 950: "#450a0a";
71
+ };
72
+ readonly info: {
73
+ readonly 50: "#eff6ff";
74
+ readonly 100: "#dbeafe";
75
+ readonly 200: "#bfdbfe";
76
+ readonly 300: "#93c5fd";
77
+ readonly 400: "#60a5fa";
78
+ readonly 500: "#3b82f6";
79
+ readonly 600: "#2563eb";
80
+ readonly 700: "#1d4ed8";
81
+ readonly 800: "#1e40af";
82
+ readonly 900: "#1e3a8a";
83
+ readonly 950: "#172554";
84
+ };
85
+ };
86
+ type ColorScale = keyof typeof colors;
87
+ type ColorShade = keyof (typeof colors)['primary'];
88
+
89
+ /**
90
+ * タイポグラフィトークン定数
91
+ * CSS変数(globals.css @theme)と同期。
92
+ */
93
+ declare const fontFamily: {
94
+ readonly sans: "'Inter', 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif";
95
+ readonly mono: "'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace";
96
+ };
97
+ declare const fontSize: {
98
+ readonly xs: {
99
+ readonly size: "0.75rem";
100
+ readonly lineHeight: "1rem";
101
+ };
102
+ readonly sm: {
103
+ readonly size: "0.8125rem";
104
+ readonly lineHeight: "1.25rem";
105
+ };
106
+ readonly base: {
107
+ readonly size: "0.875rem";
108
+ readonly lineHeight: "1.25rem";
109
+ };
110
+ readonly lg: {
111
+ readonly size: "1rem";
112
+ readonly lineHeight: "1.5rem";
113
+ };
114
+ readonly xl: {
115
+ readonly size: "1.125rem";
116
+ readonly lineHeight: "1.75rem";
117
+ };
118
+ readonly '2xl': {
119
+ readonly size: "1.25rem";
120
+ readonly lineHeight: "1.75rem";
121
+ };
122
+ readonly '3xl': {
123
+ readonly size: "1.5rem";
124
+ readonly lineHeight: "2rem";
125
+ };
126
+ };
127
+ declare const fontWeight: {
128
+ readonly normal: "400";
129
+ readonly medium: "500";
130
+ readonly semibold: "600";
131
+ readonly bold: "700";
132
+ };
133
+ type FontSize = keyof typeof fontSize;
134
+ type FontWeight = keyof typeof fontWeight;
135
+
136
+ /**
137
+ * スペーシングトークン定数(4pxグリッド)
138
+ * CSS変数(globals.css @theme)と同期。
139
+ */
140
+ declare const spacing: {
141
+ readonly 0: "0px";
142
+ readonly px: "1px";
143
+ readonly 0.5: "0.125rem";
144
+ readonly 1: "0.25rem";
145
+ readonly 1.5: "0.375rem";
146
+ readonly 2: "0.5rem";
147
+ readonly 2.5: "0.625rem";
148
+ readonly 3: "0.75rem";
149
+ readonly 3.5: "0.875rem";
150
+ readonly 4: "1rem";
151
+ readonly 5: "1.25rem";
152
+ readonly 6: "1.5rem";
153
+ readonly 7: "1.75rem";
154
+ readonly 8: "2rem";
155
+ readonly 9: "2.25rem";
156
+ readonly 10: "2.5rem";
157
+ readonly 11: "2.75rem";
158
+ readonly 12: "3rem";
159
+ readonly 14: "3.5rem";
160
+ readonly 16: "4rem";
161
+ readonly 20: "5rem";
162
+ readonly 24: "6rem";
163
+ };
164
+
165
+ /**
166
+ * エレベーショントークン(シャドウ、ボーダーラディウス)
167
+ * CSS変数(globals.css @theme)と同期。
168
+ */
169
+ declare const shadows: {
170
+ readonly xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
171
+ readonly sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
172
+ readonly md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
173
+ readonly lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
174
+ readonly xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
175
+ readonly '2xl': "0 25px 50px -12px rgb(0 0 0 / 0.25)";
176
+ readonly drawer: "0 0 48px rgb(0 0 0 / 0.16)";
177
+ };
178
+ declare const radii: {
179
+ readonly none: "0px";
180
+ readonly sm: "0.25rem";
181
+ readonly md: "0.375rem";
182
+ readonly lg: "0.5rem";
183
+ readonly xl: "0.75rem";
184
+ readonly '2xl': "1rem";
185
+ readonly full: "9999px";
186
+ };
187
+ type Shadow = keyof typeof shadows;
188
+ type Radius = keyof typeof radii;
189
+
190
+ /**
191
+ * アニメーショントークン
192
+ * CSS変数(globals.css @theme)と同期。
193
+ */
194
+ declare const duration: {
195
+ readonly fast: "100ms";
196
+ readonly normal: "200ms";
197
+ readonly slow: "300ms";
198
+ };
199
+ declare const easing: {
200
+ readonly default: "cubic-bezier(0.4, 0, 0.2, 1)";
201
+ readonly in: "cubic-bezier(0.4, 0, 1, 1)";
202
+ readonly out: "cubic-bezier(0, 0, 0.2, 1)";
203
+ readonly inOut: "cubic-bezier(0.4, 0, 0.2, 1)";
204
+ };
205
+ declare const zIndex: {
206
+ readonly dropdown: 50;
207
+ readonly sticky: 100;
208
+ readonly drawer: 200;
209
+ readonly modal: 300;
210
+ readonly popover: 400;
211
+ readonly toast: 500;
212
+ readonly tooltip: 600;
213
+ };
214
+ type Duration = keyof typeof duration;
215
+ type Easing = keyof typeof easing;
216
+ type ZIndex = keyof typeof zIndex;
217
+
218
+ export { type ColorScale, type ColorShade, type Duration, type Easing, type FontSize, type FontWeight, type Radius, type Shadow, type ZIndex, colors, duration, easing, fontFamily, fontSize, fontWeight, radii, shadows, spacing, zIndex };
@@ -0,0 +1,183 @@
1
+ // src/tokens/colors.ts
2
+ var colors = {
3
+ primary: {
4
+ 50: "#f0fdfb",
5
+ 100: "#cdfbf0",
6
+ 200: "#9bf7e2",
7
+ 300: "#61ebd0",
8
+ 400: "#2fd4ba",
9
+ 500: "#1BA491",
10
+ 600: "#138575",
11
+ 700: "#146b5f",
12
+ 800: "#15564e",
13
+ 900: "#134841",
14
+ 950: "#042c28"
15
+ },
16
+ neutral: {
17
+ 50: "#fafafa",
18
+ 100: "#f4f4f5",
19
+ 200: "#e4e4e7",
20
+ 300: "#d4d4d8",
21
+ 400: "#a1a1aa",
22
+ 500: "#71717a",
23
+ 600: "#52525b",
24
+ 700: "#3f3f46",
25
+ 800: "#27272a",
26
+ 900: "#18181b",
27
+ 950: "#09090b"
28
+ },
29
+ success: {
30
+ 50: "#f0fdf4",
31
+ 100: "#dcfce7",
32
+ 200: "#bbf7d0",
33
+ 300: "#86efac",
34
+ 400: "#4ade80",
35
+ 500: "#22c55e",
36
+ 600: "#16a34a",
37
+ 700: "#15803d",
38
+ 800: "#166534",
39
+ 900: "#14532d",
40
+ 950: "#052e16"
41
+ },
42
+ warning: {
43
+ 50: "#fffbeb",
44
+ 100: "#fef3c7",
45
+ 200: "#fde68a",
46
+ 300: "#fcd34d",
47
+ 400: "#fbbf24",
48
+ 500: "#f59e0b",
49
+ 600: "#d97706",
50
+ 700: "#b45309",
51
+ 800: "#92400e",
52
+ 900: "#78350f",
53
+ 950: "#451a03"
54
+ },
55
+ error: {
56
+ 50: "#fef2f2",
57
+ 100: "#fee2e2",
58
+ 200: "#fecaca",
59
+ 300: "#fca5a5",
60
+ 400: "#f87171",
61
+ 500: "#ef4444",
62
+ 600: "#dc2626",
63
+ 700: "#b91c1c",
64
+ 800: "#991b1b",
65
+ 900: "#7f1d1d",
66
+ 950: "#450a0a"
67
+ },
68
+ info: {
69
+ 50: "#eff6ff",
70
+ 100: "#dbeafe",
71
+ 200: "#bfdbfe",
72
+ 300: "#93c5fd",
73
+ 400: "#60a5fa",
74
+ 500: "#3b82f6",
75
+ 600: "#2563eb",
76
+ 700: "#1d4ed8",
77
+ 800: "#1e40af",
78
+ 900: "#1e3a8a",
79
+ 950: "#172554"
80
+ }
81
+ };
82
+
83
+ // src/tokens/typography.ts
84
+ var fontFamily = {
85
+ sans: "'Inter', 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif",
86
+ mono: "'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace"
87
+ };
88
+ var fontSize = {
89
+ xs: { size: "0.75rem", lineHeight: "1rem" },
90
+ sm: { size: "0.8125rem", lineHeight: "1.25rem" },
91
+ base: { size: "0.875rem", lineHeight: "1.25rem" },
92
+ lg: { size: "1rem", lineHeight: "1.5rem" },
93
+ xl: { size: "1.125rem", lineHeight: "1.75rem" },
94
+ "2xl": { size: "1.25rem", lineHeight: "1.75rem" },
95
+ "3xl": { size: "1.5rem", lineHeight: "2rem" }
96
+ };
97
+ var fontWeight = {
98
+ normal: "400",
99
+ medium: "500",
100
+ semibold: "600",
101
+ bold: "700"
102
+ };
103
+
104
+ // src/tokens/spacing.ts
105
+ var spacing = {
106
+ 0: "0px",
107
+ px: "1px",
108
+ 0.5: "0.125rem",
109
+ 1: "0.25rem",
110
+ 1.5: "0.375rem",
111
+ 2: "0.5rem",
112
+ 2.5: "0.625rem",
113
+ 3: "0.75rem",
114
+ 3.5: "0.875rem",
115
+ 4: "1rem",
116
+ 5: "1.25rem",
117
+ 6: "1.5rem",
118
+ 7: "1.75rem",
119
+ 8: "2rem",
120
+ 9: "2.25rem",
121
+ 10: "2.5rem",
122
+ 11: "2.75rem",
123
+ 12: "3rem",
124
+ 14: "3.5rem",
125
+ 16: "4rem",
126
+ 20: "5rem",
127
+ 24: "6rem"
128
+ };
129
+
130
+ // src/tokens/elevation.ts
131
+ var shadows = {
132
+ xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
133
+ sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
134
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
135
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
136
+ xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
137
+ "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
138
+ drawer: "0 0 48px rgb(0 0 0 / 0.16)"
139
+ };
140
+ var radii = {
141
+ none: "0px",
142
+ sm: "0.25rem",
143
+ md: "0.375rem",
144
+ lg: "0.5rem",
145
+ xl: "0.75rem",
146
+ "2xl": "1rem",
147
+ full: "9999px"
148
+ };
149
+
150
+ // src/tokens/animation.ts
151
+ var duration = {
152
+ fast: "100ms",
153
+ normal: "200ms",
154
+ slow: "300ms"
155
+ };
156
+ var easing = {
157
+ default: "cubic-bezier(0.4, 0, 0.2, 1)",
158
+ in: "cubic-bezier(0.4, 0, 1, 1)",
159
+ out: "cubic-bezier(0, 0, 0.2, 1)",
160
+ inOut: "cubic-bezier(0.4, 0, 0.2, 1)"
161
+ };
162
+ var zIndex = {
163
+ dropdown: 50,
164
+ sticky: 100,
165
+ drawer: 200,
166
+ modal: 300,
167
+ popover: 400,
168
+ toast: 500,
169
+ tooltip: 600
170
+ };
171
+ export {
172
+ colors,
173
+ duration,
174
+ easing,
175
+ fontFamily,
176
+ fontSize,
177
+ fontWeight,
178
+ radii,
179
+ shadows,
180
+ spacing,
181
+ zIndex
182
+ };
183
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/tokens/colors.ts","../../src/tokens/typography.ts","../../src/tokens/spacing.ts","../../src/tokens/elevation.ts","../../src/tokens/animation.ts"],"sourcesContent":["/**\n * カラートークン定数\n * CSS変数(globals.css @theme)と同期。プログラム的アクセス用。\n * スタイリングにはTailwindユーティリティクラス(bg-primary-500等)を推奨。\n */\n\nexport const colors = {\n primary: {\n 50: '#f0fdfb',\n 100: '#cdfbf0',\n 200: '#9bf7e2',\n 300: '#61ebd0',\n 400: '#2fd4ba',\n 500: '#1BA491',\n 600: '#138575',\n 700: '#146b5f',\n 800: '#15564e',\n 900: '#134841',\n 950: '#042c28',\n },\n neutral: {\n 50: '#fafafa',\n 100: '#f4f4f5',\n 200: '#e4e4e7',\n 300: '#d4d4d8',\n 400: '#a1a1aa',\n 500: '#71717a',\n 600: '#52525b',\n 700: '#3f3f46',\n 800: '#27272a',\n 900: '#18181b',\n 950: '#09090b',\n },\n success: {\n 50: '#f0fdf4',\n 100: '#dcfce7',\n 200: '#bbf7d0',\n 300: '#86efac',\n 400: '#4ade80',\n 500: '#22c55e',\n 600: '#16a34a',\n 700: '#15803d',\n 800: '#166534',\n 900: '#14532d',\n 950: '#052e16',\n },\n warning: {\n 50: '#fffbeb',\n 100: '#fef3c7',\n 200: '#fde68a',\n 300: '#fcd34d',\n 400: '#fbbf24',\n 500: '#f59e0b',\n 600: '#d97706',\n 700: '#b45309',\n 800: '#92400e',\n 900: '#78350f',\n 950: '#451a03',\n },\n error: {\n 50: '#fef2f2',\n 100: '#fee2e2',\n 200: '#fecaca',\n 300: '#fca5a5',\n 400: '#f87171',\n 500: '#ef4444',\n 600: '#dc2626',\n 700: '#b91c1c',\n 800: '#991b1b',\n 900: '#7f1d1d',\n 950: '#450a0a',\n },\n info: {\n 50: '#eff6ff',\n 100: '#dbeafe',\n 200: '#bfdbfe',\n 300: '#93c5fd',\n 400: '#60a5fa',\n 500: '#3b82f6',\n 600: '#2563eb',\n 700: '#1d4ed8',\n 800: '#1e40af',\n 900: '#1e3a8a',\n 950: '#172554',\n },\n} as const;\n\nexport type ColorScale = keyof typeof colors;\nexport type ColorShade = keyof (typeof colors)['primary'];\n","/**\n * タイポグラフィトークン定数\n * CSS変数(globals.css @theme)と同期。\n */\n\nexport const fontFamily = {\n sans: \"'Inter', 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif\",\n mono: \"'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace\",\n} as const;\n\nexport const fontSize = {\n xs: { size: '0.75rem', lineHeight: '1rem' },\n sm: { size: '0.8125rem', lineHeight: '1.25rem' },\n base: { size: '0.875rem', lineHeight: '1.25rem' },\n lg: { size: '1rem', lineHeight: '1.5rem' },\n xl: { size: '1.125rem', lineHeight: '1.75rem' },\n '2xl': { size: '1.25rem', lineHeight: '1.75rem' },\n '3xl': { size: '1.5rem', lineHeight: '2rem' },\n} as const;\n\nexport const fontWeight = {\n normal: '400',\n medium: '500',\n semibold: '600',\n bold: '700',\n} as const;\n\nexport type FontSize = keyof typeof fontSize;\nexport type FontWeight = keyof typeof fontWeight;\n","/**\n * スペーシングトークン定数(4pxグリッド)\n * CSS変数(globals.css @theme)と同期。\n */\n\nexport const spacing = {\n 0: '0px',\n px: '1px',\n 0.5: '0.125rem',\n 1: '0.25rem',\n 1.5: '0.375rem',\n 2: '0.5rem',\n 2.5: '0.625rem',\n 3: '0.75rem',\n 3.5: '0.875rem',\n 4: '1rem',\n 5: '1.25rem',\n 6: '1.5rem',\n 7: '1.75rem',\n 8: '2rem',\n 9: '2.25rem',\n 10: '2.5rem',\n 11: '2.75rem',\n 12: '3rem',\n 14: '3.5rem',\n 16: '4rem',\n 20: '5rem',\n 24: '6rem',\n} as const;\n","/**\n * エレベーショントークン(シャドウ、ボーダーラディウス)\n * CSS変数(globals.css @theme)と同期。\n */\n\nexport const shadows = {\n xs: '0 1px 2px 0 rgb(0 0 0 / 0.05)',\n sm: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',\n md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',\n lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',\n xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',\n '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',\n drawer: '0 0 48px rgb(0 0 0 / 0.16)',\n} as const;\n\nexport const radii = {\n none: '0px',\n sm: '0.25rem',\n md: '0.375rem',\n lg: '0.5rem',\n xl: '0.75rem',\n '2xl': '1rem',\n full: '9999px',\n} as const;\n\nexport type Shadow = keyof typeof shadows;\nexport type Radius = keyof typeof radii;\n","/**\n * アニメーショントークン\n * CSS変数(globals.css @theme)と同期。\n */\n\nexport const duration = {\n fast: '100ms',\n normal: '200ms',\n slow: '300ms',\n} as const;\n\nexport const easing = {\n default: 'cubic-bezier(0.4, 0, 0.2, 1)',\n in: 'cubic-bezier(0.4, 0, 1, 1)',\n out: 'cubic-bezier(0, 0, 0.2, 1)',\n inOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n} as const;\n\nexport const zIndex = {\n dropdown: 50,\n sticky: 100,\n drawer: 200,\n modal: 300,\n popover: 400,\n toast: 500,\n tooltip: 600,\n} as const;\n\nexport type Duration = keyof typeof duration;\nexport type Easing = keyof typeof easing;\nexport type ZIndex = keyof typeof zIndex;\n"],"mappings":"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","names":[]}
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@polastack/design-system",
3
+ "version": "0.1.0",
4
+ "description": "Polastack Design System - UI components and design tokens for business applications",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/tkaneko-siracusa/DesignSystem.git"
10
+ },
11
+ "publishConfig": {
12
+ "registry": "https://registry.npmjs.org",
13
+ "access": "public"
14
+ },
15
+ "sideEffects": [
16
+ "**/*.css"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/index.js",
21
+ "types": "./dist/index.d.ts"
22
+ },
23
+ "./tokens": {
24
+ "import": "./dist/tokens/index.js",
25
+ "types": "./dist/tokens/index.d.ts"
26
+ },
27
+ "./globals.css": "./src/styles/globals.css"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "src/styles"
32
+ ],
33
+ "scripts": {
34
+ "build": "tsup",
35
+ "dev": "tsup --watch",
36
+ "storybook": "storybook dev -p 6006 --host 0.0.0.0",
37
+ "build-storybook": "storybook build",
38
+ "typecheck": "tsc --noEmit",
39
+ "test": "vitest run",
40
+ "test:watch": "vitest",
41
+ "clean": "rm -rf dist",
42
+ "size": "size-limit"
43
+ },
44
+ "peerDependencies": {
45
+ "react": "^18.0.0 || ^19.0.0",
46
+ "react-dom": "^18.0.0 || ^19.0.0"
47
+ },
48
+ "dependencies": {
49
+ "@radix-ui/react-checkbox": "^1.3.3",
50
+ "@radix-ui/react-dialog": "^1.1.15",
51
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
52
+ "@radix-ui/react-label": "^2.1.8",
53
+ "@radix-ui/react-popover": "^1.1.15",
54
+ "@radix-ui/react-radio-group": "^1.3.8",
55
+ "@radix-ui/react-select": "^2.2.6",
56
+ "@radix-ui/react-switch": "^1.2.6",
57
+ "@radix-ui/react-tabs": "^1.1.13",
58
+ "@radix-ui/react-toast": "^1.2.15",
59
+ "@radix-ui/react-tooltip": "^1.2.8",
60
+ "@tanstack/react-table": "^8.21.3",
61
+ "class-variance-authority": "^0.7.1",
62
+ "clsx": "^2.1.1",
63
+ "cmdk": "^1.1.1",
64
+ "tailwind-merge": "^3.0.2"
65
+ },
66
+ "devDependencies": {
67
+ "@size-limit/preset-small-lib": "^12.0.1",
68
+ "@storybook/addon-a11y": "^8.6.0",
69
+ "@storybook/addon-essentials": "^8.6.0",
70
+ "@storybook/react": "^8.6.0",
71
+ "@storybook/react-vite": "^8.6.0",
72
+ "@tailwindcss/vite": "^4.1.0",
73
+ "@testing-library/jest-dom": "^6.6.0",
74
+ "@testing-library/react": "^16.1.0",
75
+ "@testing-library/user-event": "^14.6.1",
76
+ "@types/react": "^18.3.18",
77
+ "@types/react-dom": "^18.3.5",
78
+ "axe-core": "^4.10.0",
79
+ "jsdom": "^25.0.0",
80
+ "react": "^18.3.1",
81
+ "react-dom": "^18.3.1",
82
+ "size-limit": "^12.0.1",
83
+ "storybook": "^8.6.0",
84
+ "tailwindcss": "^4.1.0",
85
+ "tsup": "^8.4.0",
86
+ "typescript": "^5.7.0",
87
+ "vitest": "^3.0.0",
88
+ "vitest-axe": "^0.1.0"
89
+ },
90
+ "engines": {
91
+ "node": ">=20.0.0"
92
+ },
93
+ "packageManager": "pnpm@9.15.4"
94
+ }