@citrusworx/juiceui 0.3.0 → 0.6.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 +276 -233
- package/dist/index.css +24884 -23525
- package/dist/index.d.ts +6 -0
- package/dist/index.js +638 -45
- package/dist/js/juice.d.ts +8 -0
- package/dist/js/src/accordion/accordion-runtime.d.ts +16 -0
- package/dist/js/src/modal/modal-runtime.d.ts +30 -0
- package/dist/js/src/tabs/tabs-runtime.d.ts +16 -0
- package/dist/themes/aquaflux.css +233 -0
- package/dist/themes/citrusmint.css +203 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/kiwipress.css +190 -16
- package/dist/themes/tide.css +482 -0
- package/dist/tokens/index.d.ts +15 -0
- package/package.json +126 -109
- package/dist/components/accordion/accordion.test.d.ts +0 -1
|
@@ -54,6 +54,85 @@
|
|
|
54
54
|
--kw-workflow-background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(152, 81%, 96%) 100%);
|
|
55
55
|
--kw-pricing-background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(210, 20%, 98%) 100%);
|
|
56
56
|
--kw-step-marker-background: linear-gradient(135deg, hsl(161, 94%, 30%) 0%, hsl(163, 94%, 24%) 100%);
|
|
57
|
+
/* Accordion chrome roles — same names as Aquaflux / Citrusmint. */
|
|
58
|
+
--kw-trigger: var(--kw-surface-strong);
|
|
59
|
+
--kw-trigger-hover: var(--kw-surface-muted);
|
|
60
|
+
--kw-trigger-open: var(--kw-accent-soft);
|
|
61
|
+
--kw-chevron: var(--kw-accent);
|
|
62
|
+
--kw-panel-rule: var(--kw-border);
|
|
63
|
+
--kw-focus-ring: var(--kw-accent);
|
|
64
|
+
--juice-accordion-trigger: var(--kw-trigger);
|
|
65
|
+
--juice-accordion-trigger-hover: var(--kw-trigger-hover);
|
|
66
|
+
--juice-accordion-trigger-open: var(--kw-trigger-open);
|
|
67
|
+
--juice-accordion-chevron: var(--kw-chevron);
|
|
68
|
+
--juice-accordion-panel-rule: var(--kw-panel-rule);
|
|
69
|
+
--juice-accordion-focus-ring: var(--kw-focus-ring);
|
|
70
|
+
/* Tabs chrome roles — surface/text controls, not the kiwi CTA. */
|
|
71
|
+
--kw-tabs-trigger: transparent;
|
|
72
|
+
--kw-tabs-trigger-hover: transparent;
|
|
73
|
+
--kw-tabs-trigger-active: transparent;
|
|
74
|
+
--kw-tabs-text: var(--kw-text-soft);
|
|
75
|
+
--kw-tabs-text-hover: var(--kw-heading);
|
|
76
|
+
--kw-tabs-text-active: var(--kw-accent);
|
|
77
|
+
--kw-tabs-indicator: var(--kw-accent);
|
|
78
|
+
--kw-tabs-list-rule: var(--kw-border);
|
|
79
|
+
--kw-tabs-focus-ring: var(--kw-accent);
|
|
80
|
+
--juice-tabs-trigger: var(--kw-tabs-trigger);
|
|
81
|
+
--juice-tabs-trigger-hover: var(--kw-tabs-trigger-hover);
|
|
82
|
+
--juice-tabs-trigger-active: var(--kw-tabs-trigger-active);
|
|
83
|
+
--juice-tabs-text: var(--kw-tabs-text);
|
|
84
|
+
--juice-tabs-text-hover: var(--kw-tabs-text-hover);
|
|
85
|
+
--juice-tabs-text-active: var(--kw-tabs-text-active);
|
|
86
|
+
--juice-tabs-indicator: var(--kw-tabs-indicator);
|
|
87
|
+
--juice-tabs-list-rule: var(--kw-tabs-list-rule);
|
|
88
|
+
--juice-tabs-focus-ring: var(--kw-tabs-focus-ring);
|
|
89
|
+
/* Surface tone roles — --kw-surface-strong is the frosted nav fill;
|
|
90
|
+
juice strong uses the opaque --kw-surface panel. */
|
|
91
|
+
--juice-surface-soft-bg: var(--kw-surface-strong);
|
|
92
|
+
--juice-surface-soft-border: var(--kw-border);
|
|
93
|
+
--juice-surface-soft-shadow: 0 18px 40px -28px var(--kw-shadow);
|
|
94
|
+
--juice-surface-soft-blur: 10px;
|
|
95
|
+
--juice-surface-strong-bg: var(--kw-surface);
|
|
96
|
+
--juice-surface-strong-border: var(--kw-border-strong);
|
|
97
|
+
--juice-surface-strong-shadow: 0 22px 48px -22px var(--kw-shadow-strong);
|
|
98
|
+
--juice-surface-strong-blur: 0px;
|
|
99
|
+
--juice-surface-muted-bg: var(--kw-surface-muted);
|
|
100
|
+
--juice-surface-muted-border: var(--kw-border);
|
|
101
|
+
--juice-surface-muted-shadow: none;
|
|
102
|
+
--juice-surface-muted-blur: 0px;
|
|
103
|
+
/* Border strength — existing --kw-border tokens; 1px hairline vs 2px rule. */
|
|
104
|
+
--juice-border-strength-soft-width: 1px;
|
|
105
|
+
--juice-border-strength-soft-color: var(--kw-border);
|
|
106
|
+
--juice-border-strength-bold-width: 2px;
|
|
107
|
+
--juice-border-strength-bold-color: var(--kw-border-strong);
|
|
108
|
+
/* Shadow tone — cornflower tier vs marmalade warm; no new hue family. */
|
|
109
|
+
--juice-shadow-tone-cool-color: color-mix(in srgb, var(--kw-tier-content) 18%, transparent);
|
|
110
|
+
--juice-shadow-tone-cool-shadow: 0 18px 40px -28px color-mix(in srgb, var(--kw-tier-content) 18%, transparent);
|
|
111
|
+
--juice-shadow-tone-warm-color: color-mix(in srgb, var(--kw-warm) 18%, transparent);
|
|
112
|
+
--juice-shadow-tone-warm-shadow: 0 18px 40px -28px color-mix(in srgb, var(--kw-warm) 18%, transparent);
|
|
113
|
+
/* Overlay — frost veil / kiwi tint wash; existing tokens only. */
|
|
114
|
+
--juice-overlay-frost-wash: color-mix(in srgb, var(--kw-surface) 42%, transparent);
|
|
115
|
+
--juice-overlay-frost-layer: linear-gradient(var(--juice-overlay-frost-wash), var(--juice-overlay-frost-wash));
|
|
116
|
+
--juice-overlay-tint-wash: color-mix(in srgb, var(--kw-accent-tint) 40%, transparent);
|
|
117
|
+
--juice-overlay-tint-layer: linear-gradient(var(--juice-overlay-tint-wash), var(--juice-overlay-tint-wash));
|
|
118
|
+
/* Modal chrome — dimming scrim + elevated panel from existing tokens.
|
|
119
|
+
Close is a surface control, not the kiwi CTA. */
|
|
120
|
+
--kw-modal-overlay: color-mix(in srgb, var(--kw-surface-deep) 75%, transparent);
|
|
121
|
+
--kw-modal-panel: var(--kw-surface);
|
|
122
|
+
--kw-modal-panel-border: var(--kw-border);
|
|
123
|
+
--kw-modal-panel-shadow: 0 24px 56px -24px var(--kw-shadow-strong);
|
|
124
|
+
--kw-modal-close: var(--kw-surface);
|
|
125
|
+
--kw-modal-close-color: var(--kw-heading);
|
|
126
|
+
--kw-modal-close-hover: var(--kw-surface-muted);
|
|
127
|
+
--kw-modal-focus-ring: var(--kw-accent);
|
|
128
|
+
--juice-modal-overlay: var(--kw-modal-overlay);
|
|
129
|
+
--juice-modal-panel: var(--kw-modal-panel);
|
|
130
|
+
--juice-modal-panel-border: var(--kw-modal-panel-border);
|
|
131
|
+
--juice-modal-panel-shadow: var(--kw-modal-panel-shadow);
|
|
132
|
+
--juice-modal-close: var(--kw-modal-close);
|
|
133
|
+
--juice-modal-close-color: var(--kw-modal-close-color);
|
|
134
|
+
--juice-modal-close-hover: var(--kw-modal-close-hover);
|
|
135
|
+
--juice-modal-focus-ring: var(--kw-modal-focus-ring);
|
|
57
136
|
background-color: var(--kw-page);
|
|
58
137
|
color: var(--kw-text);
|
|
59
138
|
font-family: var(--kw-body-font);
|
|
@@ -407,29 +486,65 @@
|
|
|
407
486
|
box-shadow: 0 2px 8px var(--kw-shadow);
|
|
408
487
|
}
|
|
409
488
|
|
|
410
|
-
/* Tabs
|
|
411
|
-
|
|
412
|
-
|
|
489
|
+
/* Tabs wrappers are structural. Generic KiwiPress buttons are kiwi CTAs;
|
|
490
|
+
tab triggers stay surface/text controls. */
|
|
491
|
+
[theme=kiwipress] :where([tabs]) {
|
|
492
|
+
background: transparent;
|
|
493
|
+
border: none;
|
|
494
|
+
box-shadow: none;
|
|
413
495
|
}
|
|
414
496
|
|
|
497
|
+
[theme=kiwipress] [tabs]:not(:has([tabs-list], [tab-panel])),
|
|
498
|
+
[theme=kiwipress] [tabs-list] {
|
|
499
|
+
border-bottom-color: var(--juice-tabs-list-rule);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
[theme=kiwipress] button[tab],
|
|
415
503
|
[theme=kiwipress] [tabs] > button,
|
|
504
|
+
[theme=kiwipress] [tabs-list] > button,
|
|
416
505
|
[theme=kiwipress] [tab] {
|
|
417
|
-
background-color:
|
|
418
|
-
color: var(--
|
|
506
|
+
background-color: var(--juice-tabs-trigger);
|
|
507
|
+
color: var(--juice-tabs-text);
|
|
508
|
+
border-radius: 0;
|
|
509
|
+
box-shadow: none;
|
|
510
|
+
transform: none;
|
|
419
511
|
}
|
|
420
512
|
|
|
513
|
+
[theme=kiwipress] button[tab]:hover,
|
|
421
514
|
[theme=kiwipress] [tabs] > button:hover,
|
|
515
|
+
[theme=kiwipress] [tabs-list] > button:hover,
|
|
422
516
|
[theme=kiwipress] [tab]:hover {
|
|
423
|
-
background-color:
|
|
424
|
-
color: var(--
|
|
517
|
+
background-color: var(--juice-tabs-trigger-hover);
|
|
518
|
+
color: var(--juice-tabs-text-hover);
|
|
425
519
|
transform: none;
|
|
426
520
|
box-shadow: none;
|
|
427
521
|
}
|
|
428
522
|
|
|
523
|
+
[theme=kiwipress] button[tab]:focus-visible,
|
|
524
|
+
[theme=kiwipress] [tabs] > button:focus-visible,
|
|
525
|
+
[theme=kiwipress] [tabs-list] > button:focus-visible,
|
|
526
|
+
[theme=kiwipress] [tab]:focus-visible {
|
|
527
|
+
outline: 2px solid var(--juice-tabs-focus-ring);
|
|
528
|
+
outline-offset: 2px;
|
|
529
|
+
box-shadow: none;
|
|
530
|
+
transform: none;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
[theme=kiwipress] button[tab][active],
|
|
534
|
+
[theme=kiwipress] button[tab][aria-selected=true],
|
|
429
535
|
[theme=kiwipress] [tabs] > button[active],
|
|
430
|
-
[theme=kiwipress] [
|
|
431
|
-
|
|
432
|
-
|
|
536
|
+
[theme=kiwipress] [tabs] > button[aria-selected=true],
|
|
537
|
+
[theme=kiwipress] [tabs-list] > button[active],
|
|
538
|
+
[theme=kiwipress] [tabs-list] > button[aria-selected=true],
|
|
539
|
+
[theme=kiwipress] [tab][active],
|
|
540
|
+
[theme=kiwipress] [tab][aria-selected=true] {
|
|
541
|
+
background-color: var(--juice-tabs-trigger-active);
|
|
542
|
+
color: var(--juice-tabs-text-active);
|
|
543
|
+
border-bottom-color: var(--juice-tabs-indicator);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
[theme=kiwipress] [tab-panel] {
|
|
547
|
+
color: var(--kw-text);
|
|
433
548
|
}
|
|
434
549
|
|
|
435
550
|
/* How It Works ---------------------------------------------------------
|
|
@@ -1184,28 +1299,87 @@
|
|
|
1184
1299
|
color: var(--kw-text-soft);
|
|
1185
1300
|
}
|
|
1186
1301
|
|
|
1187
|
-
/* Modal
|
|
1302
|
+
/* Modal chrome. Generic KiwiPress buttons are kiwi CTAs;
|
|
1303
|
+
[modal-close] stays a surface control. Motion stays theme-local. */
|
|
1188
1304
|
[theme=kiwipress] [modal-overlay] {
|
|
1189
|
-
background-color:
|
|
1305
|
+
background-color: var(--juice-modal-overlay);
|
|
1190
1306
|
animation: kw-fadeIn 0.2s ease-out;
|
|
1191
1307
|
}
|
|
1192
1308
|
|
|
1193
|
-
[theme=kiwipress] [modal] {
|
|
1194
|
-
background-color: var(--
|
|
1309
|
+
[theme=kiwipress] [modal]:not([surfaceTone]) {
|
|
1310
|
+
background-color: var(--juice-modal-panel);
|
|
1311
|
+
border: 1px solid var(--juice-modal-panel-border);
|
|
1312
|
+
box-shadow: var(--juice-modal-panel-shadow);
|
|
1195
1313
|
animation: kw-slideUp 0.3s ease-out;
|
|
1196
1314
|
}
|
|
1197
1315
|
|
|
1316
|
+
[theme=kiwipress] button[modal-close],
|
|
1198
1317
|
[theme=kiwipress] [modal-close] {
|
|
1199
|
-
background-
|
|
1318
|
+
background-image: none;
|
|
1319
|
+
background-color: var(--juice-modal-close);
|
|
1320
|
+
color: var(--juice-modal-close-color);
|
|
1200
1321
|
box-shadow: 0 2px 8px var(--kw-shadow);
|
|
1322
|
+
transform: none;
|
|
1201
1323
|
transition: background-color 0.2s, transform 0.2s;
|
|
1202
1324
|
}
|
|
1203
1325
|
|
|
1326
|
+
[theme=kiwipress] button[modal-close]:hover,
|
|
1204
1327
|
[theme=kiwipress] [modal-close]:hover {
|
|
1205
|
-
background-color: var(--
|
|
1328
|
+
background-color: var(--juice-modal-close-hover);
|
|
1206
1329
|
transform: rotate(90deg);
|
|
1207
1330
|
}
|
|
1208
1331
|
|
|
1332
|
+
[theme=kiwipress] button[modal-close]:focus-visible,
|
|
1333
|
+
[theme=kiwipress] [modal-close]:focus-visible {
|
|
1334
|
+
outline: 2px solid var(--juice-modal-focus-ring);
|
|
1335
|
+
outline-offset: 2px;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
/* Accordion wrappers are structural, not default section surfaces.
|
|
1339
|
+
Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
|
|
1340
|
+
[theme=kiwipress] :where([accordion]) {
|
|
1341
|
+
background: transparent;
|
|
1342
|
+
border: none;
|
|
1343
|
+
box-shadow: none;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
[theme=kiwipress] button[accordion-item] {
|
|
1347
|
+
background-color: var(--juice-accordion-trigger);
|
|
1348
|
+
color: var(--kw-heading);
|
|
1349
|
+
border: 1px solid var(--kw-border);
|
|
1350
|
+
box-shadow: none;
|
|
1351
|
+
transform: none;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
[theme=kiwipress] button[accordion-item]::after {
|
|
1355
|
+
border-color: var(--juice-accordion-chevron);
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
[theme=kiwipress] button[accordion-item]:hover,
|
|
1359
|
+
[theme=kiwipress] button[accordion-item]:focus-visible {
|
|
1360
|
+
background-color: var(--juice-accordion-trigger-hover);
|
|
1361
|
+
color: var(--kw-heading);
|
|
1362
|
+
transform: none;
|
|
1363
|
+
box-shadow: none;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
[theme=kiwipress] button[accordion-item]:focus-visible {
|
|
1367
|
+
outline: 2px solid var(--juice-accordion-focus-ring);
|
|
1368
|
+
outline-offset: 2px;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
[theme=kiwipress] button[accordion-item][aria-expanded=true] {
|
|
1372
|
+
background-color: var(--juice-accordion-trigger-open);
|
|
1373
|
+
color: var(--kw-heading);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
[theme=kiwipress] [accordion] [role=region] {
|
|
1377
|
+
color: var(--kw-text);
|
|
1378
|
+
background-color: var(--kw-surface-muted);
|
|
1379
|
+
border: 1px solid var(--juice-accordion-panel-rule);
|
|
1380
|
+
border-radius: 0.75rem;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1209
1383
|
/* =====================================================================
|
|
1210
1384
|
Animations (declared outside the theme scope so animation refs work)
|
|
1211
1385
|
===================================================================== */
|