@conscia-labs/design-system 0.4.0 → 1.0.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.
- package/README.md +140 -26
- package/dist/card-DmBKqvj_.d.ts +49 -0
- package/dist/chunk-3UTRMJLB.js +3754 -0
- package/dist/chunk-3UTRMJLB.js.map +1 -0
- package/dist/chunk-UVKRO5ER.js +13 -0
- package/dist/chunk-UVKRO5ER.js.map +1 -0
- package/dist/{chunk-KYH7IZ3Z.js → chunk-WEI3PU4A.js} +668 -390
- package/dist/chunk-WEI3PU4A.js.map +1 -0
- package/dist/chunk-YAJUTCGD.js +26719 -0
- package/dist/chunk-YAJUTCGD.js.map +1 -0
- package/dist/foundation/index.js +1 -0
- package/dist/foundation.css +146 -172
- package/dist/index.d.ts +16 -14
- package/dist/index.js +97 -6
- package/dist/patterns/index.d.ts +54 -14
- package/dist/patterns/index.js +7 -2
- package/dist/primitives/index.d.ts +206 -82
- package/dist/primitives/index.js +92 -5
- package/dist/standalone.css +1 -1
- package/dist/styles.css +146 -172
- package/dist/utils/index.js +1 -0
- package/package.json +8 -16
- package/dist/card-BFUHJgV-.d.ts +0 -24
- package/dist/chunk-C44RGLGF.js +0 -723
- package/dist/chunk-C44RGLGF.js.map +0 -1
- package/dist/chunk-KYH7IZ3Z.js.map +0 -1
- package/dist/chunk-RAGHGWLB.js +0 -957
- package/dist/chunk-RAGHGWLB.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
to {
|
|
12
|
-
height: var(--
|
|
12
|
+
height: var(--collapsible-panel-height);
|
|
13
13
|
opacity: 1;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@keyframes ds-sidebar-collapse {
|
|
18
18
|
from {
|
|
19
|
-
height: var(--
|
|
19
|
+
height: var(--collapsible-panel-height);
|
|
20
20
|
opacity: 1;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -26,74 +26,93 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
[data-slot="sidebar-collapsible-content"][data-
|
|
29
|
+
[data-slot="sidebar-collapsible-content"][data-open] {
|
|
30
30
|
animation: ds-sidebar-expand 180ms cubic-bezier(0.2, 0, 0, 1);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
[data-slot="sidebar-collapsible-content"][data-
|
|
33
|
+
[data-slot="sidebar-collapsible-content"][data-closed] {
|
|
34
34
|
animation: ds-sidebar-collapse 150ms cubic-bezier(0.4, 0, 1, 1);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
[data-slot="app-sidebar-content"]::before,
|
|
38
|
+
[data-slot="app-sidebar-content"]::after {
|
|
39
|
+
position: absolute;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
left: 0;
|
|
42
|
+
right: 0;
|
|
43
|
+
height: 1.5rem;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
content: "";
|
|
46
|
+
opacity: 0;
|
|
47
|
+
transition: opacity 150ms ease-out;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-slot="app-sidebar-content"]::before {
|
|
51
|
+
top: 0;
|
|
52
|
+
background: linear-gradient(to bottom, var(--sidebar-content), transparent);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-slot="app-sidebar-content"]::after {
|
|
56
|
+
bottom: 0;
|
|
57
|
+
background: linear-gradient(to top, var(--sidebar-content), transparent);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-slot="app-sidebar-content"][data-scroll-before="true"]::before,
|
|
61
|
+
[data-slot="app-sidebar-content"][data-scroll-after="true"]::after {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
37
65
|
@media (prefers-reduced-motion: reduce) {
|
|
38
66
|
[data-slot="sidebar-collapsible-content"] {
|
|
39
67
|
animation: none !important;
|
|
40
68
|
}
|
|
69
|
+
|
|
70
|
+
[data-slot="app-sidebar-content"]::before,
|
|
71
|
+
[data-slot="app-sidebar-content"]::after {
|
|
72
|
+
transition: none;
|
|
73
|
+
}
|
|
41
74
|
}
|
|
42
75
|
|
|
43
76
|
:root,
|
|
44
77
|
[data-appearance-scope="light"] {
|
|
45
78
|
color-scheme: light;
|
|
46
79
|
--radius: 0.5rem;
|
|
47
|
-
--
|
|
48
|
-
--
|
|
49
|
-
--card: #ffffff;
|
|
50
|
-
--card-foreground: #140c15;
|
|
51
|
-
--popover: #ffffff;
|
|
52
|
-
--popover-foreground: #140c15;
|
|
53
|
-
--brand: #4962ff;
|
|
54
|
-
--brand-foreground: #ffffff;
|
|
55
|
-
--brand-secondary: #1c4e51;
|
|
56
|
-
--brand-secondary-foreground: #ffffff;
|
|
57
|
-
--brand-secondary-background: #eaf3f1;
|
|
58
|
-
--brand-secondary-border: #b2d4cf;
|
|
59
|
-
--primary: #3f55df;
|
|
60
|
-
--primary-foreground: #ffffff;
|
|
61
|
-
--secondary: #1e0721;
|
|
62
|
-
--secondary-foreground: #ffffff;
|
|
63
|
-
--muted: #f3f4f5;
|
|
64
|
-
--muted-foreground: #5f6270;
|
|
65
|
-
--accent: #3f55df;
|
|
66
|
-
--accent-hover: #3344c7;
|
|
67
|
-
--accent-active: #293999;
|
|
68
|
-
--accent-background: #eef0ff;
|
|
69
|
-
--accent-foreground: #ffffff;
|
|
70
|
-
--selection-background: #f0f1f6;
|
|
71
|
-
--selection-border: #aeb6e3;
|
|
72
|
-
--selection-indicator: #6672dc;
|
|
73
|
-
--selection-foreground: #242a44;
|
|
74
|
-
--destructive: #c44a53;
|
|
75
|
-
--border: #e4e5e5;
|
|
76
|
-
--input: #e4e5e5;
|
|
77
|
-
--ring: #6371d9;
|
|
78
|
-
--canvas: var(--background);
|
|
79
|
-
--surface: var(--card);
|
|
80
|
+
--canvas: #f9f9fa;
|
|
81
|
+
--surface: #ffffff;
|
|
80
82
|
--surface-muted: #f3f4f5;
|
|
81
83
|
--surface-raised: #ffffff;
|
|
82
84
|
--surface-floating: #ffffff;
|
|
83
85
|
--surface-overlay: #ffffff;
|
|
84
86
|
--surface-control: var(--surface-muted);
|
|
85
87
|
--surface-control-hover: var(--surface-raised);
|
|
86
|
-
--
|
|
88
|
+
--surface-inverse: #1e0721;
|
|
89
|
+
--text-primary: #140c15;
|
|
87
90
|
--text-secondary: #373b4a;
|
|
88
91
|
--text-supporting: #5f6270;
|
|
89
|
-
--text-muted: #
|
|
92
|
+
--text-muted: #707481;
|
|
90
93
|
--text-disabled: #a7a9b3;
|
|
91
94
|
--text-inverse: #ffffff;
|
|
92
95
|
--text-link: #3f4da8;
|
|
96
|
+
--brand: #4962ff;
|
|
97
|
+
--brand-foreground: #ffffff;
|
|
98
|
+
--brand-secondary: #1c4e51;
|
|
99
|
+
--brand-secondary-foreground: #ffffff;
|
|
100
|
+
--brand-secondary-background: #eaf3f1;
|
|
101
|
+
--brand-secondary-border: #b2d4cf;
|
|
102
|
+
--action: #3f55df;
|
|
103
|
+
--action-foreground: #ffffff;
|
|
104
|
+
--action-hover: #3344c7;
|
|
105
|
+
--action-active: #293999;
|
|
106
|
+
--action-background: #eef0ff;
|
|
107
|
+
--selection-background: #f0f1f6;
|
|
108
|
+
--selection-border: #aeb6e3;
|
|
109
|
+
--selection-indicator: #6672dc;
|
|
110
|
+
--selection-foreground: #242a44;
|
|
111
|
+
--control-border: #e4e5e5;
|
|
112
|
+
--focus: #6371d9;
|
|
93
113
|
--border-subtle: #ececed;
|
|
94
114
|
--border-default: #d9dadd;
|
|
95
115
|
--border-strong: #babdc5;
|
|
96
|
-
--border-focus: var(--ring);
|
|
97
116
|
--information: #28758a;
|
|
98
117
|
--information-background: #eaf5f7;
|
|
99
118
|
--information-border: #b8dce3;
|
|
@@ -114,31 +133,23 @@
|
|
|
114
133
|
--neutral-background: #f3f4f5;
|
|
115
134
|
--neutral-border: #d9dadd;
|
|
116
135
|
--neutral-foreground: #373b4a;
|
|
117
|
-
--sidebar: #19141a;
|
|
118
|
-
--sidebar-
|
|
119
|
-
--sidebar-
|
|
120
|
-
--sidebar-
|
|
136
|
+
--sidebar-canvas: #19141a;
|
|
137
|
+
--sidebar-header: #19141a;
|
|
138
|
+
--sidebar-content: #19141a;
|
|
139
|
+
--sidebar-hover: rgb(255 255 255 / 7%);
|
|
140
|
+
--sidebar-active-background: rgb(255 255 255 / 9%);
|
|
121
141
|
--sidebar-active-foreground: #ffffff;
|
|
122
142
|
--sidebar-active-indicator: #7f8ae8;
|
|
123
143
|
--sidebar-border: rgb(255 255 255 / 8%);
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
--sidebar-
|
|
130
|
-
--sidebar-
|
|
131
|
-
--sidebar-
|
|
132
|
-
--sidebar-
|
|
133
|
-
--sidebar-primary-text: var(--sidebar-foreground);
|
|
134
|
-
--sidebar-secondary-text: color-mix(in oklab, var(--sidebar-foreground) 78%, transparent);
|
|
135
|
-
--sidebar-metadata-text: color-mix(in oklab, var(--sidebar-foreground) 62%, transparent);
|
|
136
|
-
--sidebar-icon: color-mix(in oklab, var(--sidebar-foreground) 72%, transparent);
|
|
137
|
-
--sidebar-search: var(--sidebar-accent);
|
|
138
|
-
--sidebar-footer: var(--sidebar);
|
|
139
|
-
--sidebar-group-label: color-mix(in oklab, var(--sidebar-foreground) 72%, transparent);
|
|
140
|
-
--sidebar-group-count: color-mix(in oklab, var(--sidebar-foreground) 62%, transparent);
|
|
141
|
-
--sidebar-focus-ring: var(--ring);
|
|
144
|
+
--sidebar-primary-text: #ffffff;
|
|
145
|
+
--sidebar-secondary-text: color-mix(in oklab, #ffffff 78%, transparent);
|
|
146
|
+
--sidebar-metadata-text: color-mix(in oklab, #ffffff 62%, transparent);
|
|
147
|
+
--sidebar-icon: color-mix(in oklab, #ffffff 72%, transparent);
|
|
148
|
+
--sidebar-search: rgb(255 255 255 / 7%);
|
|
149
|
+
--sidebar-footer: #19141a;
|
|
150
|
+
--sidebar-group-label: color-mix(in oklab, #ffffff 72%, transparent);
|
|
151
|
+
--sidebar-group-count: color-mix(in oklab, #ffffff 62%, transparent);
|
|
152
|
+
--sidebar-focus-ring: var(--focus);
|
|
142
153
|
--font-sans: "Source Sans 3 Variable", "Source Sans 3", "Source Sans", "Aptos", "Segoe UI", Arial, sans-serif;
|
|
143
154
|
--ds-space-inline: 0.5rem;
|
|
144
155
|
--ds-space-control: 0.625rem;
|
|
@@ -219,7 +230,7 @@
|
|
|
219
230
|
--ds-radius-surface: 0.5rem;
|
|
220
231
|
--ds-shadow-raised: 0 1px 2px rgb(20 12 21 / 6%);
|
|
221
232
|
--ds-shadow-floating: 0 12px 28px rgb(20 12 21 / 10%);
|
|
222
|
-
--ds-focus-ring: 0 0 0 3px color-mix(in oklab, var(--
|
|
233
|
+
--ds-focus-ring: 0 0 0 3px color-mix(in oklab, var(--focus) 26%, transparent);
|
|
223
234
|
--ds-workbench-global-rail-width: 4.5rem;
|
|
224
235
|
--ds-workbench-secondary-rail-width: 18.375rem;
|
|
225
236
|
--ds-workbench-inspector-width: 19rem;
|
|
@@ -325,56 +336,42 @@
|
|
|
325
336
|
:root.dark,
|
|
326
337
|
:root[data-appearance="dark"] {
|
|
327
338
|
color-scheme: dark;
|
|
328
|
-
--
|
|
329
|
-
--
|
|
330
|
-
--card: #1d2024;
|
|
331
|
-
--card-foreground: #eff1f4;
|
|
332
|
-
--popover: #2c2f36;
|
|
333
|
-
--popover-foreground: #eff1f4;
|
|
334
|
-
--brand: #6b7cff;
|
|
335
|
-
--brand-foreground: #ffffff;
|
|
336
|
-
--brand-secondary: #a3d6cf;
|
|
337
|
-
--brand-secondary-foreground: #102a2c;
|
|
338
|
-
--brand-secondary-background: #162c2d;
|
|
339
|
-
--brand-secondary-border: #315c59;
|
|
340
|
-
--primary: #5965cc;
|
|
341
|
-
--primary-foreground: #ffffff;
|
|
342
|
-
--secondary: #f3f4f5;
|
|
343
|
-
--secondary-foreground: #17181b;
|
|
344
|
-
--muted: #282b31;
|
|
345
|
-
--muted-foreground: #b3bac5;
|
|
346
|
-
--accent: #5965cc;
|
|
347
|
-
--accent-hover: #5f6bd2;
|
|
348
|
-
--accent-active: #505bb8;
|
|
349
|
-
--accent-background: #252a46;
|
|
350
|
-
--accent-foreground: #ffffff;
|
|
351
|
-
--selection-background: #2a2e3b;
|
|
352
|
-
--selection-border: #5c669b;
|
|
353
|
-
--selection-indicator: #7c86df;
|
|
354
|
-
--selection-foreground: #edf0f7;
|
|
355
|
-
--destructive: #ffa1a8;
|
|
356
|
-
--border: rgb(255 255 255 / 12%);
|
|
357
|
-
--input: rgb(255 255 255 / 12%);
|
|
358
|
-
--ring: #7c86df;
|
|
359
|
-
--canvas: var(--background);
|
|
360
|
-
--surface: var(--card);
|
|
339
|
+
--canvas: #17191c;
|
|
340
|
+
--surface: #1d2024;
|
|
361
341
|
--surface-muted: #282b31;
|
|
362
342
|
--surface-raised: #24272c;
|
|
363
343
|
--surface-floating: #2c2f36;
|
|
364
344
|
--surface-overlay: #31343a;
|
|
365
345
|
--surface-control: var(--surface-raised);
|
|
366
346
|
--surface-control-hover: var(--surface-muted);
|
|
367
|
-
--
|
|
347
|
+
--surface-inverse: #f3f4f5;
|
|
348
|
+
--text-primary: #eff1f4;
|
|
368
349
|
--text-secondary: #d4d8df;
|
|
369
350
|
--text-supporting: #b3bac5;
|
|
370
351
|
--text-muted: #929aa7;
|
|
371
352
|
--text-disabled: #747b87;
|
|
372
353
|
--text-inverse: #17191c;
|
|
373
354
|
--text-link: #aeb6ef;
|
|
355
|
+
--brand: #6b7cff;
|
|
356
|
+
--brand-foreground: #17191c;
|
|
357
|
+
--brand-secondary: #a3d6cf;
|
|
358
|
+
--brand-secondary-foreground: #102a2c;
|
|
359
|
+
--brand-secondary-background: #162c2d;
|
|
360
|
+
--brand-secondary-border: #315c59;
|
|
361
|
+
--action: #5965cc;
|
|
362
|
+
--action-foreground: #ffffff;
|
|
363
|
+
--action-hover: #5f6bd2;
|
|
364
|
+
--action-active: #505bb8;
|
|
365
|
+
--action-background: #252a46;
|
|
366
|
+
--selection-background: #2a2e3b;
|
|
367
|
+
--selection-border: #5c669b;
|
|
368
|
+
--selection-indicator: #7c86df;
|
|
369
|
+
--selection-foreground: #edf0f7;
|
|
370
|
+
--control-border: rgb(255 255 255 / 12%);
|
|
371
|
+
--focus: #7c86df;
|
|
374
372
|
--border-subtle: rgb(255 255 255 / 7%);
|
|
375
373
|
--border-default: rgb(255 255 255 / 11%);
|
|
376
374
|
--border-strong: rgb(255 255 255 / 18%);
|
|
377
|
-
--border-focus: var(--ring);
|
|
378
375
|
--information: #8ed4df;
|
|
379
376
|
--information-background: #163238;
|
|
380
377
|
--information-border: #346b75;
|
|
@@ -395,26 +392,23 @@
|
|
|
395
392
|
--neutral-background: #282b31;
|
|
396
393
|
--neutral-border: rgb(255 255 255 / 12%);
|
|
397
394
|
--neutral-foreground: #e5e8ed;
|
|
398
|
-
--sidebar: #151116;
|
|
399
|
-
--sidebar-
|
|
400
|
-
--sidebar-
|
|
401
|
-
--sidebar-
|
|
395
|
+
--sidebar-canvas: #151116;
|
|
396
|
+
--sidebar-header: #151116;
|
|
397
|
+
--sidebar-content: #151116;
|
|
398
|
+
--sidebar-hover: rgb(255 255 255 / 7%);
|
|
399
|
+
--sidebar-active-background: rgb(255 255 255 / 9%);
|
|
402
400
|
--sidebar-active-foreground: #ffffff;
|
|
403
401
|
--sidebar-active-indicator: #7c86df;
|
|
404
402
|
--sidebar-border: rgb(255 255 255 / 8%);
|
|
405
|
-
--sidebar-
|
|
406
|
-
--sidebar-
|
|
407
|
-
--sidebar-
|
|
408
|
-
--sidebar-
|
|
409
|
-
--sidebar-
|
|
410
|
-
--sidebar-
|
|
411
|
-
--sidebar-
|
|
412
|
-
--sidebar-
|
|
413
|
-
--sidebar-
|
|
414
|
-
--sidebar-footer: var(--sidebar);
|
|
415
|
-
--sidebar-group-label: color-mix(in oklab, var(--sidebar-foreground) 72%, transparent);
|
|
416
|
-
--sidebar-group-count: color-mix(in oklab, var(--sidebar-foreground) 62%, transparent);
|
|
417
|
-
--sidebar-focus-ring: var(--ring);
|
|
403
|
+
--sidebar-primary-text: #ffffff;
|
|
404
|
+
--sidebar-secondary-text: color-mix(in oklab, #ffffff 78%, transparent);
|
|
405
|
+
--sidebar-metadata-text: color-mix(in oklab, #ffffff 62%, transparent);
|
|
406
|
+
--sidebar-icon: color-mix(in oklab, #ffffff 72%, transparent);
|
|
407
|
+
--sidebar-search: rgb(255 255 255 / 7%);
|
|
408
|
+
--sidebar-footer: #151116;
|
|
409
|
+
--sidebar-group-label: color-mix(in oklab, #ffffff 72%, transparent);
|
|
410
|
+
--sidebar-group-count: color-mix(in oklab, #ffffff 62%, transparent);
|
|
411
|
+
--sidebar-focus-ring: var(--focus);
|
|
418
412
|
--ds-shadow-raised: 0 1px 2px rgb(0 0 0 / 24%);
|
|
419
413
|
--ds-shadow-floating: 0 16px 32px rgb(0 0 0 / 30%);
|
|
420
414
|
}
|
|
@@ -422,22 +416,19 @@
|
|
|
422
416
|
/*
|
|
423
417
|
* Light sidebars use the same semantic surface family as the rest of the
|
|
424
418
|
* light theme. The variant is scoped to the sidebar so an application can
|
|
425
|
-
* keep
|
|
419
|
+
* keep an explicitly dark sidebar or follow the appearance-aware default.
|
|
426
420
|
*/
|
|
427
421
|
[data-sidebar-variant="light"],
|
|
428
422
|
:root:not(.dark):not([data-appearance="dark"])
|
|
429
423
|
[data-sidebar-variant="auto"] {
|
|
430
|
-
--sidebar: var(--surface-muted);
|
|
431
|
-
--sidebar-foreground: var(--text-primary);
|
|
432
|
-
--sidebar-accent: var(--surface-raised);
|
|
433
|
-
--sidebar-active: var(--accent-background);
|
|
434
|
-
--sidebar-active-foreground: var(--selection-foreground);
|
|
435
|
-
--sidebar-active-indicator: var(--selection-indicator);
|
|
436
|
-
--sidebar-border: var(--border-subtle);
|
|
437
424
|
--sidebar-canvas: var(--surface-muted);
|
|
438
425
|
--sidebar-header: var(--surface);
|
|
439
426
|
--sidebar-content: var(--surface-muted);
|
|
440
427
|
--sidebar-hover: var(--surface-raised);
|
|
428
|
+
--sidebar-active-background: var(--action-background);
|
|
429
|
+
--sidebar-active-foreground: var(--selection-foreground);
|
|
430
|
+
--sidebar-active-indicator: var(--selection-indicator);
|
|
431
|
+
--sidebar-border: var(--border-subtle);
|
|
441
432
|
--sidebar-primary-text: var(--text-primary);
|
|
442
433
|
--sidebar-secondary-text: var(--text-secondary);
|
|
443
434
|
--sidebar-metadata-text: var(--text-supporting);
|
|
@@ -446,7 +437,7 @@
|
|
|
446
437
|
--sidebar-footer: var(--surface);
|
|
447
438
|
--sidebar-group-label: var(--text-secondary);
|
|
448
439
|
--sidebar-group-count: var(--text-supporting);
|
|
449
|
-
--sidebar-focus-ring: var(--
|
|
440
|
+
--sidebar-focus-ring: var(--focus);
|
|
450
441
|
}
|
|
451
442
|
|
|
452
443
|
@theme inline {
|
|
@@ -454,34 +445,37 @@
|
|
|
454
445
|
--radius-md: calc(var(--radius) - 2px);
|
|
455
446
|
--radius-lg: var(--radius);
|
|
456
447
|
--radius-xl: calc(var(--radius) + 4px);
|
|
457
|
-
--color-
|
|
458
|
-
--color-
|
|
459
|
-
--color-
|
|
460
|
-
--color-
|
|
461
|
-
--color-
|
|
462
|
-
--color-
|
|
448
|
+
--color-canvas: var(--canvas);
|
|
449
|
+
--color-surface: var(--surface);
|
|
450
|
+
--color-surface-muted: var(--surface-muted);
|
|
451
|
+
--color-surface-raised: var(--surface-raised);
|
|
452
|
+
--color-surface-floating: var(--surface-floating);
|
|
453
|
+
--color-surface-overlay: var(--surface-overlay);
|
|
454
|
+
--color-surface-control: var(--surface-control);
|
|
455
|
+
--color-surface-control-hover: var(--surface-control-hover);
|
|
456
|
+
--color-surface-inverse: var(--surface-inverse);
|
|
457
|
+
--color-text-primary: var(--text-primary);
|
|
458
|
+
--color-text-secondary: var(--text-secondary);
|
|
459
|
+
--color-text-supporting: var(--text-supporting);
|
|
460
|
+
--color-text-muted: var(--text-muted);
|
|
461
|
+
--color-text-disabled: var(--text-disabled);
|
|
462
|
+
--color-text-inverse: var(--text-inverse);
|
|
463
|
+
--color-text-link: var(--text-link);
|
|
463
464
|
--color-brand: var(--brand);
|
|
464
465
|
--color-brand-foreground: var(--brand-foreground);
|
|
465
466
|
--color-brand-secondary: var(--brand-secondary);
|
|
466
467
|
--color-brand-secondary-foreground: var(--brand-secondary-foreground);
|
|
467
468
|
--color-brand-secondary-background: var(--brand-secondary-background);
|
|
468
469
|
--color-brand-secondary-border: var(--brand-secondary-border);
|
|
469
|
-
--color-
|
|
470
|
-
--color-
|
|
471
|
-
--color-
|
|
472
|
-
--color-
|
|
473
|
-
--color-
|
|
474
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
475
|
-
--color-accent: var(--accent);
|
|
476
|
-
--color-accent-hover: var(--accent-hover);
|
|
477
|
-
--color-accent-active: var(--accent-active);
|
|
478
|
-
--color-accent-background: var(--accent-background);
|
|
479
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
470
|
+
--color-action: var(--action);
|
|
471
|
+
--color-action-foreground: var(--action-foreground);
|
|
472
|
+
--color-action-hover: var(--action-hover);
|
|
473
|
+
--color-action-active: var(--action-active);
|
|
474
|
+
--color-action-background: var(--action-background);
|
|
480
475
|
--color-selection-background: var(--selection-background);
|
|
481
476
|
--color-selection-border: var(--selection-border);
|
|
482
477
|
--color-selection-indicator: var(--selection-indicator);
|
|
483
478
|
--color-selection-foreground: var(--selection-foreground);
|
|
484
|
-
--color-destructive: var(--destructive);
|
|
485
479
|
--color-information: var(--information);
|
|
486
480
|
--color-information-background: var(--information-background);
|
|
487
481
|
--color-information-border: var(--information-border);
|
|
@@ -502,37 +496,17 @@
|
|
|
502
496
|
--color-neutral-background: var(--neutral-background);
|
|
503
497
|
--color-neutral-border: var(--neutral-border);
|
|
504
498
|
--color-neutral-foreground: var(--neutral-foreground);
|
|
505
|
-
--color-border: var(--border);
|
|
506
|
-
--color-
|
|
507
|
-
--color-ring: var(--ring);
|
|
508
|
-
--color-canvas: var(--canvas);
|
|
509
|
-
--color-surface: var(--surface);
|
|
510
|
-
--color-surface-muted: var(--surface-muted);
|
|
511
|
-
--color-surface-raised: var(--surface-raised);
|
|
512
|
-
--color-surface-floating: var(--surface-floating);
|
|
513
|
-
--color-surface-overlay: var(--surface-overlay);
|
|
514
|
-
--color-surface-control: var(--surface-control);
|
|
515
|
-
--color-surface-control-hover: var(--surface-control-hover);
|
|
516
|
-
--color-text-primary: var(--text-primary);
|
|
517
|
-
--color-text-secondary: var(--text-secondary);
|
|
518
|
-
--color-text-supporting: var(--text-supporting);
|
|
519
|
-
--color-text-muted: var(--text-muted);
|
|
520
|
-
--color-text-disabled: var(--text-disabled);
|
|
521
|
-
--color-text-inverse: var(--text-inverse);
|
|
522
|
-
--color-text-link: var(--text-link);
|
|
499
|
+
--color-control-border: var(--control-border);
|
|
500
|
+
--color-focus: var(--focus);
|
|
523
501
|
--color-border-subtle: var(--border-subtle);
|
|
524
502
|
--color-border-default: var(--border-default);
|
|
525
503
|
--color-border-strong: var(--border-strong);
|
|
526
|
-
--color-border-focus: var(--border-focus);
|
|
527
|
-
--color-sidebar: var(--sidebar);
|
|
528
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
529
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
530
|
-
--color-sidebar-active: var(--sidebar-active);
|
|
531
|
-
--color-sidebar-active-foreground: var(--sidebar-active-foreground);
|
|
532
504
|
--color-sidebar-canvas: var(--sidebar-canvas);
|
|
533
505
|
--color-sidebar-header: var(--sidebar-header);
|
|
534
506
|
--color-sidebar-content: var(--sidebar-content);
|
|
535
507
|
--color-sidebar-hover: var(--sidebar-hover);
|
|
508
|
+
--color-sidebar-active-background: var(--sidebar-active-background);
|
|
509
|
+
--color-sidebar-active-foreground: var(--sidebar-active-foreground);
|
|
536
510
|
--color-sidebar-primary-text: var(--sidebar-primary-text);
|
|
537
511
|
--color-sidebar-secondary-text: var(--sidebar-secondary-text);
|
|
538
512
|
--color-sidebar-metadata-text: var(--sidebar-metadata-text);
|
|
@@ -636,8 +610,8 @@
|
|
|
636
610
|
|
|
637
611
|
@layer base {
|
|
638
612
|
* {
|
|
639
|
-
border-color: var(--border);
|
|
640
|
-
outline-color: color-mix(in oklab, var(--
|
|
613
|
+
border-color: var(--border-default);
|
|
614
|
+
outline-color: color-mix(in oklab, var(--focus) 50%, transparent);
|
|
641
615
|
}
|
|
642
616
|
|
|
643
617
|
html {
|
|
@@ -646,8 +620,8 @@
|
|
|
646
620
|
|
|
647
621
|
body {
|
|
648
622
|
min-height: 100vh;
|
|
649
|
-
background: var(--
|
|
650
|
-
color: var(--
|
|
623
|
+
background: var(--canvas);
|
|
624
|
+
color: var(--text-primary);
|
|
651
625
|
font-family: var(--font-sans);
|
|
652
626
|
font-size: var(--ds-body);
|
|
653
627
|
font-weight: 400;
|
|
@@ -659,7 +633,7 @@
|
|
|
659
633
|
h2,
|
|
660
634
|
h3,
|
|
661
635
|
h4 {
|
|
662
|
-
color: var(--
|
|
636
|
+
color: var(--text-primary);
|
|
663
637
|
font-weight: var(--ds-title-weight);
|
|
664
638
|
letter-spacing: var(--ds-title-tracking);
|
|
665
639
|
}
|
|
@@ -672,7 +646,7 @@
|
|
|
672
646
|
}
|
|
673
647
|
|
|
674
648
|
::selection {
|
|
675
|
-
background: color-mix(in oklab, var(--
|
|
649
|
+
background: color-mix(in oklab, var(--action) 22%, transparent);
|
|
676
650
|
}
|
|
677
651
|
|
|
678
652
|
@media (prefers-reduced-motion: reduce) {
|
package/dist/utils/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conscia-labs/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The shared React component library for building clear, consistent, and accessible Conscia product experiences.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"./package.json": "./package.json"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
-
"dev:playground": "next dev playground --webpack -p 3020",
|
|
53
|
+
"dev:playground": "next dev playground --webpack -p 3020 --hostname 127.0.0.1",
|
|
54
54
|
"build": "pnpm build:js && pnpm build:css",
|
|
55
55
|
"build:js": "tsup",
|
|
56
56
|
"build:css": "node scripts/build-css.mjs",
|
|
@@ -59,6 +59,8 @@
|
|
|
59
59
|
"test": "pnpm test:contracts && pnpm test:unit",
|
|
60
60
|
"test:contracts": "node --test playground/src/test/*.test.mjs",
|
|
61
61
|
"test:unit": "vitest run",
|
|
62
|
+
"test:visual": "playwright test",
|
|
63
|
+
"test:visual:update": "playwright test --update-snapshots",
|
|
62
64
|
"test:package": "pnpm build && pnpm lint:package && node scripts/verify-package.mjs",
|
|
63
65
|
"test:consumer": "node scripts/test-packaged-consumer.mjs",
|
|
64
66
|
"lint": "eslint src --max-warnings=0",
|
|
@@ -80,7 +82,6 @@
|
|
|
80
82
|
"conscia",
|
|
81
83
|
"design-system",
|
|
82
84
|
"react",
|
|
83
|
-
"radix-ui",
|
|
84
85
|
"tailwindcss",
|
|
85
86
|
"components"
|
|
86
87
|
],
|
|
@@ -98,24 +99,14 @@
|
|
|
98
99
|
]
|
|
99
100
|
},
|
|
100
101
|
"dependencies": {
|
|
102
|
+
"@base-ui/react": "1.7.0",
|
|
101
103
|
"@fontsource-variable/source-sans-3": "^5.3.0",
|
|
102
|
-
"@radix-ui/react-avatar": "^1.1.12",
|
|
103
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
104
|
-
"@radix-ui/react-collapsible": "^1.1.12",
|
|
105
|
-
"@radix-ui/react-dialog": "^1.1.16",
|
|
106
|
-
"@radix-ui/react-dropdown-menu": "^2.1.17",
|
|
107
|
-
"@radix-ui/react-label": "^2.1.9",
|
|
108
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
109
|
-
"@radix-ui/react-separator": "^1.1.9",
|
|
110
|
-
"@radix-ui/react-slot": "^1.2.3",
|
|
111
|
-
"@radix-ui/react-switch": "^1.2.6",
|
|
112
|
-
"@radix-ui/react-tabs": "^1.1.13",
|
|
113
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
114
104
|
"@tanstack/react-table": "^8.21.3",
|
|
115
105
|
"class-variance-authority": "^0.7.1",
|
|
116
106
|
"clsx": "^2.1.1",
|
|
117
107
|
"lucide-react": "^1.17.0",
|
|
118
|
-
"tailwind-merge": "^3.6.0"
|
|
108
|
+
"tailwind-merge": "^3.6.0",
|
|
109
|
+
"use-sync-external-store": "^1.6.0"
|
|
119
110
|
},
|
|
120
111
|
"peerDependencies": {
|
|
121
112
|
"react": "^19.0.0",
|
|
@@ -128,6 +119,7 @@
|
|
|
128
119
|
}
|
|
129
120
|
},
|
|
130
121
|
"devDependencies": {
|
|
122
|
+
"@playwright/test": "^1.62.1",
|
|
131
123
|
"@tailwindcss/cli": "^4",
|
|
132
124
|
"@tailwindcss/postcss": "^4",
|
|
133
125
|
"@testing-library/react": "^16.3.2",
|
package/dist/card-BFUHJgV-.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
|
-
|
|
6
|
-
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
8
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
11
|
-
asChild?: boolean;
|
|
12
|
-
}): React.JSX.Element;
|
|
13
|
-
|
|
14
|
-
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): React.JSX.Element;
|
|
15
|
-
|
|
16
|
-
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): React.JSX.Element;
|
|
17
|
-
|
|
18
|
-
declare function Card({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
19
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
21
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
22
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { Button as B, Card as C, Input as I, Separator as S, CardContent as a, CardDescription as b, CardHeader as c, CardTitle as d, buttonVariants as e };
|