@pan-stack/ui 0.0.0-stage → 0.2.31
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/LICENSE.txt +41 -0
- package/README.md +7 -2
- package/dist/hooks.d.ts +190 -0
- package/dist/hooks.js +1 -0
- package/dist/i18n/locales/common/ar.json +171 -0
- package/dist/i18n/locales/common/de.json +171 -0
- package/dist/i18n/locales/common/en.json +171 -0
- package/dist/i18n/locales/common/es.json +171 -0
- package/dist/i18n/locales/common/fr.json +171 -0
- package/dist/i18n/locales/common/hi.json +171 -0
- package/dist/i18n/locales/common/id.json +171 -0
- package/dist/i18n/locales/common/it.json +171 -0
- package/dist/i18n/locales/common/ja.json +171 -0
- package/dist/i18n/locales/common/ko.json +171 -0
- package/dist/i18n/locales/common/pt-BR.json +171 -0
- package/dist/i18n/locales/common/ru.json +171 -0
- package/dist/i18n/locales/common/th.json +171 -0
- package/dist/i18n/locales/common/tr.json +171 -0
- package/dist/i18n/locales/common/vi.json +171 -0
- package/dist/i18n/locales/common/zh-CN.json +171 -0
- package/dist/index.d.ts +4428 -0
- package/dist/index.js +20 -0
- package/dist/lib.d.ts +107 -0
- package/dist/lib.js +1 -0
- package/dist/new-types.d.ts +200 -0
- package/dist/styles/globals.css +808 -0
- package/package.json +115 -4
- package/postcss.config.mjs +6 -0
- package/shims/next-link.js +1 -0
- package/shims/next-navigation.js +1 -0
|
@@ -0,0 +1,808 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import 'tw-animate-css';
|
|
3
|
+
@import 'shadcn/tailwind.css';
|
|
4
|
+
|
|
5
|
+
@source '../index.js';
|
|
6
|
+
@source '../lib.js';
|
|
7
|
+
@source '../hooks.js';
|
|
8
|
+
@custom-variant dark (&:is(.dark *));
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
12
|
+
--accent: oklch(0.967 0.001 286.375);
|
|
13
|
+
--background: oklch(1 0 0);
|
|
14
|
+
--border: oklch(0.92 0.004 286.32);
|
|
15
|
+
--card-foreground: oklch(0.141 0.005 285.823);
|
|
16
|
+
--card: oklch(1 0 0);
|
|
17
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
18
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
19
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
20
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
21
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
22
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
23
|
+
--foreground: oklch(0.141 0.005 285.823);
|
|
24
|
+
--input: oklch(0.92 0.004 286.32);
|
|
25
|
+
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
26
|
+
--muted: oklch(0.967 0.001 286.375);
|
|
27
|
+
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
28
|
+
--popover: oklch(1 0 0);
|
|
29
|
+
--primary-foreground: #fcf6ec;
|
|
30
|
+
--primary: #9a1b2f;
|
|
31
|
+
--radius: 0.65rem;
|
|
32
|
+
--ring: #9a1b2f;
|
|
33
|
+
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
34
|
+
--secondary: oklch(0.967 0.001 286.375);
|
|
35
|
+
--sidebar-accent-foreground: #fcf6ec;
|
|
36
|
+
--sidebar-accent: rgba(252, 246, 236, 0.1);
|
|
37
|
+
--sidebar-border: rgba(252, 246, 236, 0.14);
|
|
38
|
+
--sidebar-foreground: #fcf6ec;
|
|
39
|
+
--sidebar-primary-foreground: #5e0f20;
|
|
40
|
+
--sidebar-primary: #f6d68a;
|
|
41
|
+
--sidebar-ring: #f6d68a;
|
|
42
|
+
--sidebar: #8c1830;
|
|
43
|
+
/* custom colors */
|
|
44
|
+
--success: oklch(62.7% 0.194 149.214);
|
|
45
|
+
--success-foreground: oklch(0.97 0.014 254.604);
|
|
46
|
+
--warning: oklch(0.724 0.197 49.77);
|
|
47
|
+
--warning-foreground: oklch(0.141 0.005 285.823);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dark {
|
|
51
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
52
|
+
--accent: oklch(0.274 0.006 286.033);
|
|
53
|
+
--background: oklch(0.141 0.005 285.823);
|
|
54
|
+
--border: oklch(1 0 0 / 10%);
|
|
55
|
+
--card-foreground: oklch(0.985 0 0);
|
|
56
|
+
--card: oklch(0.21 0.006 285.885);
|
|
57
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
58
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
59
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
60
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
61
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
62
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
63
|
+
--foreground: oklch(0.985 0 0);
|
|
64
|
+
--input: oklch(1 0 0 / 15%);
|
|
65
|
+
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
66
|
+
--muted: oklch(0.274 0.006 286.033);
|
|
67
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
68
|
+
--popover: oklch(0.21 0.006 285.885);
|
|
69
|
+
--primary-foreground: #fff5ee;
|
|
70
|
+
--primary: #cf3a52;
|
|
71
|
+
--ring: #cf3a52;
|
|
72
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
73
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
74
|
+
--sidebar-accent-foreground: #f6e9cf;
|
|
75
|
+
--sidebar-accent: rgba(240, 205, 132, 0.1);
|
|
76
|
+
--sidebar-border: rgba(240, 205, 132, 0.12);
|
|
77
|
+
--sidebar-foreground: #f3e3cf;
|
|
78
|
+
--sidebar-primary-foreground: #2a0710;
|
|
79
|
+
--sidebar-primary: #f0cd84;
|
|
80
|
+
--sidebar-ring: #f0cd84;
|
|
81
|
+
--sidebar: #3a0c17;
|
|
82
|
+
/* custom colors */
|
|
83
|
+
--success: oklch(0.521 0.177 142.87);
|
|
84
|
+
--success-foreground: oklch(0.985 0 0);
|
|
85
|
+
--warning: oklch(0.674 0.197 49.77);
|
|
86
|
+
--warning-foreground: oklch(0.985 0 0);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@theme inline {
|
|
90
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
91
|
+
--color-accent: var(--accent);
|
|
92
|
+
--color-background: var(--background);
|
|
93
|
+
--color-border: var(--border);
|
|
94
|
+
--color-card-foreground: var(--card-foreground);
|
|
95
|
+
--color-card: var(--card);
|
|
96
|
+
--color-chart-1: var(--chart-1);
|
|
97
|
+
--color-chart-2: var(--chart-2);
|
|
98
|
+
--color-chart-3: var(--chart-3);
|
|
99
|
+
--color-chart-4: var(--chart-4);
|
|
100
|
+
--color-chart-5: var(--chart-5);
|
|
101
|
+
--color-destructive: var(--destructive);
|
|
102
|
+
--color-foreground: var(--foreground);
|
|
103
|
+
--color-input: var(--input);
|
|
104
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
105
|
+
--color-muted: var(--muted);
|
|
106
|
+
--color-table-row-hover: color-mix(in oklch, var(--muted) 50%, var(--background));
|
|
107
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
108
|
+
--color-popover: var(--popover);
|
|
109
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
110
|
+
--color-primary: var(--primary);
|
|
111
|
+
--color-ring: var(--ring);
|
|
112
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
113
|
+
--color-secondary: var(--secondary);
|
|
114
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
115
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
116
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
117
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
118
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
119
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
120
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
121
|
+
--color-sidebar: var(--sidebar);
|
|
122
|
+
--font-heading: var(--font-sans);
|
|
123
|
+
--font-sans: var(--font-geist-sans, ui-sans-serif, system-ui, sans-serif);
|
|
124
|
+
--font-mono: var(--font-geist-mono, ui-monospace, monospace);
|
|
125
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
126
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
127
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
128
|
+
--radius-lg: var(--radius);
|
|
129
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
130
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
131
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
132
|
+
/* custom colors */
|
|
133
|
+
--color-success: var(--success);
|
|
134
|
+
--color-success-foreground: var(--success-foreground);
|
|
135
|
+
--color-warning: var(--warning);
|
|
136
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@layer base {
|
|
140
|
+
* {
|
|
141
|
+
@apply border-border outline-ring/50;
|
|
142
|
+
}
|
|
143
|
+
body {
|
|
144
|
+
@apply bg-background text-foreground;
|
|
145
|
+
}
|
|
146
|
+
button:not([disabled]),
|
|
147
|
+
[role='button']:not([disabled]) {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
}
|
|
150
|
+
.typography {
|
|
151
|
+
max-width: 65ch;
|
|
152
|
+
color: var(--color-foreground);
|
|
153
|
+
}
|
|
154
|
+
.typography h1:not(.not-typography h1) {
|
|
155
|
+
scroll-margin: calc(var(--spacing) * 20);
|
|
156
|
+
font-size: var(--text-4xl);
|
|
157
|
+
line-height: var(--text-4xl--line-height);
|
|
158
|
+
font-weight: 800;
|
|
159
|
+
letter-spacing: var(--tracking-tight);
|
|
160
|
+
}
|
|
161
|
+
.typography h2:not(.not-typography h2) {
|
|
162
|
+
scroll-margin: calc(var(--spacing) * 20);
|
|
163
|
+
border-bottom: 1px solid var(--color-border);
|
|
164
|
+
padding-bottom: calc(var(--spacing) * 2);
|
|
165
|
+
font-size: var(--text-3xl);
|
|
166
|
+
line-height: var(--text-3xl--line-height);
|
|
167
|
+
font-weight: 600;
|
|
168
|
+
letter-spacing: var(--tracking-tight);
|
|
169
|
+
margin-top: calc(var(--spacing) * 12);
|
|
170
|
+
}
|
|
171
|
+
.typography h2:not(.not-typography h2):first-child {
|
|
172
|
+
margin-top: 0;
|
|
173
|
+
}
|
|
174
|
+
.typography h3:not(.not-typography h3) {
|
|
175
|
+
scroll-margin: calc(var(--spacing) * 20);
|
|
176
|
+
font-size: var(--text-2xl);
|
|
177
|
+
line-height: var(--text-2xl--line-height);
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
letter-spacing: var(--tracking-tight);
|
|
180
|
+
margin-top: calc(var(--spacing) * 12);
|
|
181
|
+
}
|
|
182
|
+
.typography h3:not(.not-typography h3):first-child {
|
|
183
|
+
margin-top: 0;
|
|
184
|
+
}
|
|
185
|
+
.typography h4:not(.not-typography h4) {
|
|
186
|
+
scroll-margin: calc(var(--spacing) * 20);
|
|
187
|
+
font-size: var(--text-xl);
|
|
188
|
+
line-height: var(--text-xl--line-height);
|
|
189
|
+
font-weight: 600;
|
|
190
|
+
letter-spacing: var(--tracking-tight);
|
|
191
|
+
margin-top: calc(var(--spacing) * 12);
|
|
192
|
+
}
|
|
193
|
+
.typography h4:not(.not-typography h4):first-child {
|
|
194
|
+
margin-top: 0;
|
|
195
|
+
}
|
|
196
|
+
.typography h5:not(.not-typography h5) {
|
|
197
|
+
scroll-margin: calc(var(--spacing) * 20);
|
|
198
|
+
font-size: var(--text-lg);
|
|
199
|
+
line-height: var(--text-lg--line-height);
|
|
200
|
+
font-weight: 600;
|
|
201
|
+
letter-spacing: var(--tracking-tight);
|
|
202
|
+
margin-top: calc(var(--spacing) * 12);
|
|
203
|
+
}
|
|
204
|
+
.typography h5:not(.not-typography h5):first-child {
|
|
205
|
+
margin-top: 0;
|
|
206
|
+
}
|
|
207
|
+
.typography h6:not(.not-typography h6) {
|
|
208
|
+
scroll-margin: calc(var(--spacing) * 20);
|
|
209
|
+
font-size: var(--text-base);
|
|
210
|
+
line-height: var(--text-base--line-height);
|
|
211
|
+
font-weight: 600;
|
|
212
|
+
letter-spacing: var(--tracking-tight);
|
|
213
|
+
margin-top: calc(var(--spacing) * 12);
|
|
214
|
+
}
|
|
215
|
+
.typography h6:not(.not-typography h6):first-child {
|
|
216
|
+
margin-top: 0;
|
|
217
|
+
}
|
|
218
|
+
.typography h1:not(.not-typography h1) + p,
|
|
219
|
+
.typography h2:not(.not-typography h2) + p,
|
|
220
|
+
.typography h3:not(.not-typography h3) + p,
|
|
221
|
+
.typography h4:not(.not-typography h4) + p,
|
|
222
|
+
.typography h5:not(.not-typography h5) + p,
|
|
223
|
+
.typography h6:not(.not-typography h6) + p {
|
|
224
|
+
margin-top: 0;
|
|
225
|
+
}
|
|
226
|
+
.typography p:not(.not-typography p) {
|
|
227
|
+
line-height: 1.75;
|
|
228
|
+
}
|
|
229
|
+
.typography p:not(.not-typography p):not(:first-child) {
|
|
230
|
+
margin-top: calc(var(--spacing) * 6);
|
|
231
|
+
}
|
|
232
|
+
.typography li:not(.not-typography li) {
|
|
233
|
+
line-height: 1.75;
|
|
234
|
+
}
|
|
235
|
+
.typography a:not(.not-typography a) {
|
|
236
|
+
font-weight: 500;
|
|
237
|
+
color: var(--color-primary);
|
|
238
|
+
text-decoration: underline;
|
|
239
|
+
text-underline-offset: var(--spacing);
|
|
240
|
+
}
|
|
241
|
+
.typography blockquote:not(.not-typography blockquote) {
|
|
242
|
+
margin-top: calc(var(--spacing) * 6);
|
|
243
|
+
border-left: 2px solid var(--color-border);
|
|
244
|
+
padding-left: calc(var(--spacing) * 6);
|
|
245
|
+
font-style: italic;
|
|
246
|
+
}
|
|
247
|
+
.typography table:not(.not-typography table) {
|
|
248
|
+
margin-top: calc(var(--spacing) * 6);
|
|
249
|
+
margin-bottom: calc(var(--spacing) * 6);
|
|
250
|
+
width: 100%;
|
|
251
|
+
overflow-y: auto;
|
|
252
|
+
}
|
|
253
|
+
.typography table:not(.not-typography table) thead tr {
|
|
254
|
+
margin: 0;
|
|
255
|
+
border-top: 1px solid var(--color-border);
|
|
256
|
+
padding: 0;
|
|
257
|
+
}
|
|
258
|
+
.typography table:not(.not-typography table) thead tr:nth-child(even) {
|
|
259
|
+
background-color: var(--color-muted);
|
|
260
|
+
}
|
|
261
|
+
.typography table:not(.not-typography table) th {
|
|
262
|
+
border: 1px solid var(--color-border);
|
|
263
|
+
padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4);
|
|
264
|
+
text-align: left;
|
|
265
|
+
font-weight: 700;
|
|
266
|
+
}
|
|
267
|
+
.typography table:not(.not-typography table) th[align='center'] {
|
|
268
|
+
text-align: center;
|
|
269
|
+
}
|
|
270
|
+
.typography table:not(.not-typography table) th[align='right'] {
|
|
271
|
+
text-align: right;
|
|
272
|
+
}
|
|
273
|
+
.typography table:not(.not-typography table) tbody tr {
|
|
274
|
+
margin: 0;
|
|
275
|
+
border-top: 1px solid var(--color-border);
|
|
276
|
+
padding: 0;
|
|
277
|
+
}
|
|
278
|
+
.typography table:not(.not-typography table) tbody tr:nth-child(even) {
|
|
279
|
+
background-color: var(--color-muted);
|
|
280
|
+
}
|
|
281
|
+
.typography table:not(.not-typography table) td {
|
|
282
|
+
border: 1px solid var(--color-border);
|
|
283
|
+
padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4);
|
|
284
|
+
text-align: left;
|
|
285
|
+
}
|
|
286
|
+
.typography table:not(.not-typography table) td[align='center'] {
|
|
287
|
+
text-align: center;
|
|
288
|
+
}
|
|
289
|
+
.typography table:not(.not-typography table) td[align='right'] {
|
|
290
|
+
text-align: right;
|
|
291
|
+
}
|
|
292
|
+
.typography ul:not(.not-typography ul) {
|
|
293
|
+
margin-top: calc(var(--spacing) * 6);
|
|
294
|
+
margin-left: calc(var(--spacing) * 6);
|
|
295
|
+
list-style: disc;
|
|
296
|
+
}
|
|
297
|
+
.typography ul:not(.not-typography ul) > li {
|
|
298
|
+
margin-top: calc(var(--spacing) * 2);
|
|
299
|
+
}
|
|
300
|
+
.typography ul:not(.not-typography ul) p {
|
|
301
|
+
margin-top: 0;
|
|
302
|
+
margin-bottom: 0;
|
|
303
|
+
display: inline;
|
|
304
|
+
}
|
|
305
|
+
.typography ol:not(.not-typography ol) {
|
|
306
|
+
margin-top: calc(var(--spacing) * 6);
|
|
307
|
+
margin-left: calc(var(--spacing) * 6);
|
|
308
|
+
list-style: decimal;
|
|
309
|
+
}
|
|
310
|
+
.typography ol:not(.not-typography ol) > li {
|
|
311
|
+
margin-top: calc(var(--spacing) * 2);
|
|
312
|
+
}
|
|
313
|
+
.typography ol:not(.not-typography ol) p {
|
|
314
|
+
margin-top: 0;
|
|
315
|
+
margin-bottom: 0;
|
|
316
|
+
display: inline;
|
|
317
|
+
}
|
|
318
|
+
.typography pre:not(.not-typography pre) {
|
|
319
|
+
background-color: var(--color-muted);
|
|
320
|
+
border-radius: calc(var(--radius) - 2px);
|
|
321
|
+
padding: calc(var(--spacing) * 4);
|
|
322
|
+
margin-top: calc(var(--spacing) * 6);
|
|
323
|
+
margin-bottom: calc(var(--spacing) * 6);
|
|
324
|
+
font-size: var(--text-sm);
|
|
325
|
+
line-height: var(--text-sm--line-height);
|
|
326
|
+
overflow-y: auto;
|
|
327
|
+
}
|
|
328
|
+
.typography code:not(pre code):not(.not-typography code) {
|
|
329
|
+
position: relative;
|
|
330
|
+
border-radius: var(--radius);
|
|
331
|
+
background-color: var(--color-muted);
|
|
332
|
+
padding: calc(var(--spacing) * 0.2) calc(var(--spacing) * 0.3);
|
|
333
|
+
font-family: var(--font-mono);
|
|
334
|
+
font-size: var(--text-sm);
|
|
335
|
+
line-height: var(--text-sm--line-height);
|
|
336
|
+
font-weight: 600;
|
|
337
|
+
}
|
|
338
|
+
.typography .lead:not(.not-typography .lead) {
|
|
339
|
+
font-size: var(--text-xl);
|
|
340
|
+
line-height: var(--text-xl--line-height);
|
|
341
|
+
color: var(--color-muted-foreground);
|
|
342
|
+
}
|
|
343
|
+
.typography .large:not(.not-typography .large) {
|
|
344
|
+
font-size: var(--text-lg);
|
|
345
|
+
line-height: var(--text-lg--line-height);
|
|
346
|
+
font-weight: 600;
|
|
347
|
+
}
|
|
348
|
+
.typography .small:not(.not-typography .small) {
|
|
349
|
+
font-size: var(--text-sm);
|
|
350
|
+
line-height: 1;
|
|
351
|
+
font-weight: 500;
|
|
352
|
+
}
|
|
353
|
+
.typography .muted:not(.not-typography .muted) {
|
|
354
|
+
font-size: var(--text-sm);
|
|
355
|
+
line-height: var(--text-sm--line-height);
|
|
356
|
+
color: var(--color-muted-foreground);
|
|
357
|
+
}
|
|
358
|
+
.typography img:not(.not-typography img),
|
|
359
|
+
.typography picture:not(.not-typography picture),
|
|
360
|
+
.typography video:not(.not-typography video) {
|
|
361
|
+
margin-top: calc(var(--spacing) * 6);
|
|
362
|
+
margin-bottom: calc(var(--spacing) * 6);
|
|
363
|
+
}
|
|
364
|
+
.typography picture > img:not(.not-typography picture > img) {
|
|
365
|
+
margin-top: 0;
|
|
366
|
+
margin-bottom: 0;
|
|
367
|
+
}
|
|
368
|
+
.typography kbd:not(.not-typography kbd) {
|
|
369
|
+
border-radius: calc(var(--radius) - 2px);
|
|
370
|
+
background-color: var(--color-muted);
|
|
371
|
+
padding: calc(var(--spacing) * 0.5) calc(var(--spacing) * 1.5);
|
|
372
|
+
font-size: var(--text-xs);
|
|
373
|
+
line-height: var(--text-xs--line-height);
|
|
374
|
+
font-weight: 600;
|
|
375
|
+
}
|
|
376
|
+
.typography hr {
|
|
377
|
+
margin-top: calc(var(--spacing) * 10);
|
|
378
|
+
margin-bottom: calc(var(--spacing) * 10);
|
|
379
|
+
}
|
|
380
|
+
.typography dl:not(.not-typography dl) {
|
|
381
|
+
margin-top: calc(var(--spacing) * 6);
|
|
382
|
+
margin-bottom: calc(var(--spacing) * 6);
|
|
383
|
+
}
|
|
384
|
+
.typography dl:not(.not-typography dl) dt {
|
|
385
|
+
font-weight: 600;
|
|
386
|
+
margin-top: calc(var(--spacing) * 6);
|
|
387
|
+
letter-spacing: var(--tracking-tight);
|
|
388
|
+
}
|
|
389
|
+
.typography dl:not(.not-typography dl) dt:first-child {
|
|
390
|
+
margin-top: 0;
|
|
391
|
+
}
|
|
392
|
+
.typography details:not(.not-typography details) {
|
|
393
|
+
margin-top: calc(var(--spacing) * 6);
|
|
394
|
+
}
|
|
395
|
+
.typography details:not(.not-typography details) summary {
|
|
396
|
+
cursor: pointer;
|
|
397
|
+
font-weight: 600;
|
|
398
|
+
margin-top: calc(var(--spacing) * 6);
|
|
399
|
+
letter-spacing: var(--tracking-tight);
|
|
400
|
+
}
|
|
401
|
+
.typography details:not(.not-typography details) p:first-of-type {
|
|
402
|
+
margin-top: calc(var(--spacing) * 2);
|
|
403
|
+
}
|
|
404
|
+
.typography mark:not(.not-typography mark) {
|
|
405
|
+
background-color: var(--color-yellow-300);
|
|
406
|
+
}
|
|
407
|
+
.typography small:not(.not-typography small) {
|
|
408
|
+
font-size: var(--text-xs);
|
|
409
|
+
line-height: 1;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@media (min-width: 1024px) {
|
|
413
|
+
.typography h1:not(.not-typography h1) {
|
|
414
|
+
font-size: var(--text-5xl);
|
|
415
|
+
line-height: var(--text-5xl--line-height);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.lucide {
|
|
421
|
+
stroke-width: 1.5px;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.react-flow__panel {
|
|
425
|
+
display: none;
|
|
426
|
+
height: 0 !important;
|
|
427
|
+
width: 0 !important;
|
|
428
|
+
opacity: 0 !important;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/* Custom Scrollbar */
|
|
432
|
+
.scrollbar-custom {
|
|
433
|
+
scrollbar-width: thin;
|
|
434
|
+
scrollbar-color: rgba(156, 163, 175, 0.6) transparent;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* BUGFIX (2026-07-22): vùng cuộn chính của MobileShell (`main`) — ẩn scrollbar (VẪN cuộn được
|
|
438
|
+
bằng chạm/kéo/phím) để khớp mobile app thật (không hiện scrollbar OS) và tránh gutter
|
|
439
|
+
scrollbar ăn vào bề rộng nội dung/nền trong khung điện thoại hẹp (screen-ui.tsx MobileShell). */
|
|
440
|
+
.mobile-scroll {
|
|
441
|
+
scrollbar-width: none; /* Firefox */
|
|
442
|
+
-ms-overflow-style: none; /* IE/Edge cũ */
|
|
443
|
+
}
|
|
444
|
+
.mobile-scroll::-webkit-scrollbar {
|
|
445
|
+
display: none; /* Chrome/Safari/Edge Chromium */
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
table.has-border {
|
|
449
|
+
border-collapse: separate;
|
|
450
|
+
border-spacing: 0;
|
|
451
|
+
overflow: hidden; /* để bo góc không bị lộ */
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* --- Bo góc cho 4 cell góc table --- */
|
|
455
|
+
/* Góc trên-trái */
|
|
456
|
+
table.has-border thead tr:first-child th:first-child {
|
|
457
|
+
border-top-left-radius: 0.5rem; /* rounded-lg */
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* Góc trên-phải */
|
|
461
|
+
table.has-border thead tr:first-child th:last-child {
|
|
462
|
+
border-top-right-radius: 0.5rem;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* Góc dưới-trái */
|
|
466
|
+
table.has-border tbody tr:last-child td:first-child {
|
|
467
|
+
border-bottom-left-radius: 0.5rem;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* Góc dưới-phải */
|
|
471
|
+
table.has-border tbody tr:last-child td:last-child {
|
|
472
|
+
border-bottom-right-radius: 0.5rem;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.has-border [data-slot='table-cell'],
|
|
476
|
+
.has-border [data-slot='table-head'] {
|
|
477
|
+
border: 1px solid var(--border);
|
|
478
|
+
border-left: 0;
|
|
479
|
+
border-top: 0;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* Giữ border-left cho cell đầu tiên mỗi hàng */
|
|
483
|
+
.has-border tr > *:first-child {
|
|
484
|
+
border-left: 1px solid var(--border);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* Giữ border-top cho hàng đầu tiên */
|
|
488
|
+
.has-border thead tr:first-child > * {
|
|
489
|
+
border-top: 1px solid var(--border);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/* /src/styles/admin-page.css */
|
|
493
|
+
|
|
494
|
+
/* Header sticky với nền + shadow đẹp */
|
|
495
|
+
.ac-sticky-header {
|
|
496
|
+
position: sticky;
|
|
497
|
+
top: 0;
|
|
498
|
+
z-index: 40;
|
|
499
|
+
/* background: var(--card, white); */
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.ac-sticky-header.is-sticky {
|
|
503
|
+
padding-top: 10px !important;
|
|
504
|
+
/* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06); */
|
|
505
|
+
backdrop-filter: blur(8px);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* global.css */
|
|
509
|
+
@keyframes badge-slide-up {
|
|
510
|
+
0% {
|
|
511
|
+
transform: translateY(6px) scale(0.9);
|
|
512
|
+
opacity: 0;
|
|
513
|
+
}
|
|
514
|
+
100% {
|
|
515
|
+
transform: translateY(0) scale(1);
|
|
516
|
+
opacity: 1;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.animate-badge {
|
|
521
|
+
animation: badge-slide-up 0.25s ease-out;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* Descriptions — số cột & span responsive (giá trị động qua CSS var). */
|
|
525
|
+
.pan-descriptions-grid {
|
|
526
|
+
display: grid;
|
|
527
|
+
grid-template-columns: repeat(var(--pan-desc-cols-m, 1), minmax(0, 1fr));
|
|
528
|
+
}
|
|
529
|
+
.pan-descriptions-cell {
|
|
530
|
+
grid-column: auto;
|
|
531
|
+
}
|
|
532
|
+
@media (min-width: 640px) {
|
|
533
|
+
.pan-descriptions-grid {
|
|
534
|
+
grid-template-columns: repeat(var(--pan-desc-cols, 3), minmax(0, 1fr));
|
|
535
|
+
}
|
|
536
|
+
.pan-descriptions-cell {
|
|
537
|
+
grid-column: span var(--pan-desc-span, 1);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
@keyframes border-beam-move {
|
|
542
|
+
from {
|
|
543
|
+
offset-distance: 0%;
|
|
544
|
+
}
|
|
545
|
+
to {
|
|
546
|
+
offset-distance: 100%;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.animate-border-beam {
|
|
551
|
+
animation: border-beam-move var(--border-beam-duration, 6s) linear infinite;
|
|
552
|
+
animation-delay: var(--border-beam-delay, 0s);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
@media (prefers-reduced-motion: reduce) {
|
|
556
|
+
.animate-border-beam {
|
|
557
|
+
animation: none;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
@keyframes bell-ring {
|
|
562
|
+
0% {
|
|
563
|
+
transform: rotate(0deg);
|
|
564
|
+
}
|
|
565
|
+
15% {
|
|
566
|
+
transform: rotate(-15deg);
|
|
567
|
+
}
|
|
568
|
+
30% {
|
|
569
|
+
transform: rotate(10deg);
|
|
570
|
+
}
|
|
571
|
+
45% {
|
|
572
|
+
transform: rotate(-10deg);
|
|
573
|
+
}
|
|
574
|
+
60% {
|
|
575
|
+
transform: rotate(6deg);
|
|
576
|
+
}
|
|
577
|
+
75% {
|
|
578
|
+
transform: rotate(-4deg);
|
|
579
|
+
}
|
|
580
|
+
100% {
|
|
581
|
+
transform: rotate(0deg);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.animate-bell {
|
|
586
|
+
transform-origin: top center;
|
|
587
|
+
animation: bell-ring 0.6s ease-in-out;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
@media (prefers-reduced-motion: reduce) {
|
|
591
|
+
*,
|
|
592
|
+
::before,
|
|
593
|
+
::after {
|
|
594
|
+
animation-duration: 0.01ms !important;
|
|
595
|
+
animation-iteration-count: 1 !important;
|
|
596
|
+
transition-duration: 0.01ms !important;
|
|
597
|
+
scroll-behavior: auto !important;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
::view-transition-old(*),
|
|
601
|
+
::view-transition-new(*),
|
|
602
|
+
::view-transition-group(*) {
|
|
603
|
+
animation-duration: 0s !important;
|
|
604
|
+
animation-delay: 0s !important;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
609
|
+
ADMIN SHELL (.admin-site) — đi kèm core admin shell `mi/admin/*`.
|
|
610
|
+
Token đặt UNLAYERED (như cũ) để thắng token mặc định ở trên. Dự án dùng lại
|
|
611
|
+
shell có thể override các token này. Hỗ trợ 2 chế độ sáng/tối (.dark .admin-site).
|
|
612
|
+
═══════════════════════════════════════════════════════════════════════════ */
|
|
613
|
+
.admin-site {
|
|
614
|
+
--font-heading: 'Libre Bodoni', Georgia, serif;
|
|
615
|
+
|
|
616
|
+
--background: #fbf8f2;
|
|
617
|
+
--foreground: #241a15;
|
|
618
|
+
--card: #ffffff;
|
|
619
|
+
--card-foreground: #241a15;
|
|
620
|
+
--popover: #ffffff;
|
|
621
|
+
--popover-foreground: #241a15;
|
|
622
|
+
--primary: #9a1b2f;
|
|
623
|
+
--primary-foreground: #fcf6ec;
|
|
624
|
+
--secondary: #f3ede1;
|
|
625
|
+
--secondary-foreground: #4a3f36;
|
|
626
|
+
--muted: #f3ede1;
|
|
627
|
+
--muted-foreground: #6f6256;
|
|
628
|
+
--accent: #efe7d6;
|
|
629
|
+
--accent-foreground: #3a2f27;
|
|
630
|
+
--border: #e7ddcb;
|
|
631
|
+
--input: #e7ddcb;
|
|
632
|
+
--ring: #9a1b2f;
|
|
633
|
+
--destructive: #b3261e;
|
|
634
|
+
--gold: #c8a24b;
|
|
635
|
+
--ink: #1c1411;
|
|
636
|
+
|
|
637
|
+
/* Thanh bên — "rail" son đỏ */
|
|
638
|
+
--gov-rail: radial-gradient(125% 130% at 12% -10%, #b5223b 0%, #8c1830 48%, #5e0f20 100%);
|
|
639
|
+
--gov-gold: #f6d68a;
|
|
640
|
+
--gov-on-gold: #5e0f20;
|
|
641
|
+
--sidebar: #8c1830;
|
|
642
|
+
--sidebar-foreground: #fcf6ec;
|
|
643
|
+
--sidebar-border: rgba(252, 246, 236, 0.14);
|
|
644
|
+
--sidebar-accent: rgba(252, 246, 236, 0.1);
|
|
645
|
+
--sidebar-accent-foreground: #fcf6ec;
|
|
646
|
+
--sidebar-primary: #f6d68a;
|
|
647
|
+
--sidebar-primary-foreground: #5e0f20;
|
|
648
|
+
--sidebar-ring: #f6d68a;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.dark .admin-site {
|
|
652
|
+
--background: #18120f;
|
|
653
|
+
--foreground: #f3e9dc;
|
|
654
|
+
--card: #211915;
|
|
655
|
+
--card-foreground: #f3e9dc;
|
|
656
|
+
--popover: #211915;
|
|
657
|
+
--popover-foreground: #f3e9dc;
|
|
658
|
+
--primary: #cf3a52;
|
|
659
|
+
--primary-foreground: #fff5ee;
|
|
660
|
+
--secondary: #2a201a;
|
|
661
|
+
--secondary-foreground: #f3e9dc;
|
|
662
|
+
--muted: #2a201a;
|
|
663
|
+
--muted-foreground: #b6a594;
|
|
664
|
+
--accent: #2f251e;
|
|
665
|
+
--accent-foreground: #f3e9dc;
|
|
666
|
+
--border: #3a2c22;
|
|
667
|
+
--input: #3a2c22;
|
|
668
|
+
--ring: #cf3a52;
|
|
669
|
+
--destructive: #e25563;
|
|
670
|
+
--gold: #e6c068;
|
|
671
|
+
--ink: #0f0b08;
|
|
672
|
+
|
|
673
|
+
--gov-rail: radial-gradient(125% 130% at 12% -10%, #6e1326 0%, #4a0c19 48%, #2a0710 100%);
|
|
674
|
+
--gov-gold: #f0cd84;
|
|
675
|
+
--gov-on-gold: #2a0710;
|
|
676
|
+
--sidebar: #3a0c17;
|
|
677
|
+
--sidebar-foreground: #f3e3cf;
|
|
678
|
+
--sidebar-border: rgba(240, 205, 132, 0.12);
|
|
679
|
+
--sidebar-accent: rgba(240, 205, 132, 0.1);
|
|
680
|
+
--sidebar-accent-foreground: #f6e9cf;
|
|
681
|
+
--sidebar-primary: #f0cd84;
|
|
682
|
+
--sidebar-primary-foreground: #2a0710;
|
|
683
|
+
--sidebar-ring: #f0cd84;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/* Rail son — phủ gradient lên container (desktop) và sheet (mobile). */
|
|
687
|
+
.admin-site [data-slot='sidebar-inner'],
|
|
688
|
+
.admin-site [data-slot='sidebar'][data-mobile='true'] {
|
|
689
|
+
background: var(--gov-rail);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.admin-site [data-sidebar='group-label'] {
|
|
693
|
+
color: var(--gov-gold);
|
|
694
|
+
text-transform: uppercase;
|
|
695
|
+
letter-spacing: 0.09em;
|
|
696
|
+
font-weight: 600;
|
|
697
|
+
opacity: 0.92;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.admin-site [data-sidebar='menu-button'][data-active='true'],
|
|
701
|
+
.admin-site [data-sidebar='menu-sub-button'][data-active='true'] {
|
|
702
|
+
background: var(--gov-gold);
|
|
703
|
+
color: var(--gov-on-gold);
|
|
704
|
+
font-weight: 600;
|
|
705
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
|
|
706
|
+
}
|
|
707
|
+
.admin-site [data-sidebar='menu-button'][data-active='true'] svg,
|
|
708
|
+
.admin-site [data-sidebar='menu-sub-button'][data-active='true'] svg {
|
|
709
|
+
color: var(--gov-on-gold);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.admin-site #ac-top-header {
|
|
713
|
+
box-shadow: inset 0 -1px 0 color-mix(in oklab, var(--gold) 38%, transparent);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/* Top navigation bar (layout = top) — cùng gradient rail son đỏ. */
|
|
717
|
+
.admin-site #ac-top-navigation {
|
|
718
|
+
background: var(--gov-rail);
|
|
719
|
+
border-bottom: 1px solid var(--sidebar-border);
|
|
720
|
+
}
|
|
721
|
+
.admin-site #ac-top-navigation [data-slot='separator'] {
|
|
722
|
+
background: var(--sidebar-border);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.admin-site #ac-main-menu a,
|
|
726
|
+
.admin-site #ac-main-menu button[type='button'] {
|
|
727
|
+
color: color-mix(in oklab, var(--sidebar-foreground) 75%, transparent);
|
|
728
|
+
}
|
|
729
|
+
.admin-site #ac-main-menu a:hover,
|
|
730
|
+
.admin-site #ac-main-menu button[type='button']:hover {
|
|
731
|
+
background: var(--sidebar-accent);
|
|
732
|
+
color: var(--sidebar-foreground);
|
|
733
|
+
}
|
|
734
|
+
.admin-site #ac-main-menu a[aria-current='page'],
|
|
735
|
+
.admin-site #ac-main-menu button[type='button'][aria-current='page'] {
|
|
736
|
+
background: var(--gov-gold);
|
|
737
|
+
color: var(--gov-on-gold);
|
|
738
|
+
font-weight: 600;
|
|
739
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
|
|
740
|
+
}
|
|
741
|
+
.admin-site #ac-main-menu a[aria-current='page'] svg,
|
|
742
|
+
.admin-site #ac-main-menu button[type='button'][aria-current='page'] svg {
|
|
743
|
+
color: var(--gov-on-gold);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/* Dropdown top-nav (Radix portal NẰM NGOÀI .admin-site) — cấp lại bảng màu gov. */
|
|
747
|
+
.gov-topnav-menu {
|
|
748
|
+
--popover: #fffdf8;
|
|
749
|
+
--popover-foreground: #241a15;
|
|
750
|
+
--accent: #f4ece0;
|
|
751
|
+
--accent-foreground: #5e0f20;
|
|
752
|
+
--primary: #9a1b2f;
|
|
753
|
+
--primary-foreground: #fcf6ec;
|
|
754
|
+
--muted-foreground: #6f6256;
|
|
755
|
+
--border: #ece2d2;
|
|
756
|
+
--gov-gold: #b8862f;
|
|
757
|
+
}
|
|
758
|
+
.dark .gov-topnav-menu {
|
|
759
|
+
--popover: #221913;
|
|
760
|
+
--popover-foreground: #f3e9dc;
|
|
761
|
+
--accent: #33271d;
|
|
762
|
+
--accent-foreground: #f0cd84;
|
|
763
|
+
--primary: #e0566c;
|
|
764
|
+
--primary-foreground: #2a0710;
|
|
765
|
+
--muted-foreground: #b6a594;
|
|
766
|
+
--border: #3a2c22;
|
|
767
|
+
--gov-gold: #f0cd84;
|
|
768
|
+
}
|
|
769
|
+
.gov-topnav-menu [data-active='true'] {
|
|
770
|
+
background: color-mix(in oklab, var(--primary) 12%, transparent);
|
|
771
|
+
color: var(--primary);
|
|
772
|
+
font-weight: 600;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
@layer base {
|
|
776
|
+
.font-heading {
|
|
777
|
+
font-family: var(--font-heading);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.admin-site {
|
|
781
|
+
@apply bg-background font-sans antialiased;
|
|
782
|
+
min-height: 100dvh;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/* BUGFIX (2026-07-22): màn shell `mobile` tự quản chiều cao qua MobileShell (h-full trong
|
|
786
|
+
khung điện thoại bị giới hạn / min-h-dvh khi standalone) — min-height:100dvh của .admin-site
|
|
787
|
+
ở trên LỚN HƠN khung điện thoại, phá containment (main mất scroll nội bộ, bottomNav
|
|
788
|
+
`sticky bottom-0` trôi theo nội dung thay vì dính đáy — xem spec-shell.tsx). Reset về 100%
|
|
789
|
+
chiều cao khối cha thật (đã bounded bởi khung preview hoặc bởi chính MobileShell).
|
|
790
|
+
KHÔNG áp cho .admin-site thường (desktop admin) — chỉ khi có class phụ này. */
|
|
791
|
+
.admin-site.admin-site--mobile-shell {
|
|
792
|
+
min-height: 0;
|
|
793
|
+
height: 100%;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.admin-site .ac-page-header.ac-sticky-header {
|
|
797
|
+
@apply pt-2 pb-2;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.admin-site .ac-sticky-header.is-sticky {
|
|
801
|
+
@apply border-border bg-background/95 shadow-sm backdrop-blur-sm supports-[backdrop-filter]:bg-background/80;
|
|
802
|
+
padding-top: 0.5rem !important;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.admin-site #ac-top-header {
|
|
806
|
+
@apply bg-background/95 backdrop-blur-sm supports-[backdrop-filter]:bg-background/80;
|
|
807
|
+
}
|
|
808
|
+
}
|