@citrusworx/juiceui 0.9.0 → 0.9.1
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 +12 -7
- package/dist/index.css +240 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +208 -2
- package/dist/js/juice.d.ts +2 -0
- package/dist/js/src/pagination/pagination-runtime.d.ts +79 -0
- package/dist/themes/aquaflux.css +93 -0
- package/dist/themes/citrusmint.css +87 -0
- package/dist/themes/kiwipress.css +93 -0
- package/dist/themes/retro-afterburn.css +1701 -0
- package/dist/themes/retro-arcade-glow.css +1701 -0
- package/dist/themes/retro-boardwalk.css +1553 -0
- package/dist/themes/retro-denim-dial.css +1553 -0
- package/dist/themes/retro-forest-radio.css +1553 -0
- package/dist/themes/retro-orchard-club.css +1553 -0
- package/dist/themes/retro-poolside-pop.css +1553 -0
- package/dist/themes/retro-signal-garden.css +1553 -0
- package/dist/themes/retro-sunset-motel.css +1553 -0
- package/dist/themes/retro-violet-parlor.css +1553 -0
- package/dist/themes/tide.css +92 -0
- package/package.json +92 -2
package/dist/themes/aquaflux.css
CHANGED
|
@@ -428,6 +428,30 @@
|
|
|
428
428
|
--juice-progress-fill: var(--aqua-progress-fill);
|
|
429
429
|
--juice-progress-ink: var(--aqua-progress-ink);
|
|
430
430
|
--juice-progress-focus-ring: var(--aqua-progress-focus-ring);
|
|
431
|
+
/* Pagination chrome — APG page set from existing tokens. Page controls
|
|
432
|
+
are surfaces, not a CTA. The trail stays transparent. Current fill
|
|
433
|
+
is accent; ink on that fill is page. Distinct from breadcrumb,
|
|
434
|
+
nav[type="pagination"], tabs, and wizard steps. */
|
|
435
|
+
--aqua-pagination-surface: var(--aqua-surface);
|
|
436
|
+
--aqua-pagination-surface-hover: var(--aqua-surface-muted);
|
|
437
|
+
--aqua-pagination-surface-current: var(--aqua-accent);
|
|
438
|
+
--aqua-pagination-ink: var(--aqua-text);
|
|
439
|
+
--aqua-pagination-ink-hover: var(--aqua-accent);
|
|
440
|
+
--aqua-pagination-ink-current: var(--aqua-page);
|
|
441
|
+
--aqua-pagination-ink-disabled: var(--aqua-text-muted);
|
|
442
|
+
--aqua-pagination-border: var(--aqua-border);
|
|
443
|
+
--aqua-pagination-focus-ring: var(--aqua-accent);
|
|
444
|
+
--aqua-pagination-ellipsis: var(--aqua-text-muted);
|
|
445
|
+
--juice-pagination-surface: var(--aqua-pagination-surface);
|
|
446
|
+
--juice-pagination-surface-hover: var(--aqua-pagination-surface-hover);
|
|
447
|
+
--juice-pagination-surface-current: var(--aqua-pagination-surface-current);
|
|
448
|
+
--juice-pagination-ink: var(--aqua-pagination-ink);
|
|
449
|
+
--juice-pagination-ink-hover: var(--aqua-pagination-ink-hover);
|
|
450
|
+
--juice-pagination-ink-current: var(--aqua-pagination-ink-current);
|
|
451
|
+
--juice-pagination-ink-disabled: var(--aqua-pagination-ink-disabled);
|
|
452
|
+
--juice-pagination-border: var(--aqua-pagination-border);
|
|
453
|
+
--juice-pagination-focus-ring: var(--aqua-pagination-focus-ring);
|
|
454
|
+
--juice-pagination-ellipsis: var(--aqua-pagination-ellipsis);
|
|
431
455
|
background-color: var(--aqua-page);
|
|
432
456
|
background-image: var(--aqua-page-background);
|
|
433
457
|
color: var(--aqua-text);
|
|
@@ -1372,4 +1396,73 @@
|
|
|
1372
1396
|
[theme=aquaflux] [progress]:focus-visible {
|
|
1373
1397
|
outline: 2px solid var(--juice-progress-focus-ring);
|
|
1374
1398
|
outline-offset: 2px;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* Pagination chrome. Beat [theme] :where(nav) bars, link color, and button
|
|
1402
|
+
CTAs. Page controls are surfaces, not a CTA. The trail stays inline.
|
|
1403
|
+
Runtime is later. */
|
|
1404
|
+
[theme=aquaflux] [pagination],
|
|
1405
|
+
[theme=aquaflux] nav[pagination] {
|
|
1406
|
+
background-image: none;
|
|
1407
|
+
background-color: transparent;
|
|
1408
|
+
border: none;
|
|
1409
|
+
box-shadow: none;
|
|
1410
|
+
-webkit-backdrop-filter: none;
|
|
1411
|
+
backdrop-filter: none;
|
|
1412
|
+
color: var(--juice-pagination-ink);
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
[theme=aquaflux] [pagination] a,
|
|
1416
|
+
[theme=aquaflux] [pagination-link],
|
|
1417
|
+
[theme=aquaflux] a[pagination-link],
|
|
1418
|
+
[theme=aquaflux] button[pagination-link],
|
|
1419
|
+
[theme=aquaflux] button[pagination-prev],
|
|
1420
|
+
[theme=aquaflux] button[pagination-next] {
|
|
1421
|
+
background-image: none;
|
|
1422
|
+
background-color: var(--juice-pagination-surface);
|
|
1423
|
+
border-color: var(--juice-pagination-border);
|
|
1424
|
+
color: var(--juice-pagination-ink);
|
|
1425
|
+
box-shadow: none;
|
|
1426
|
+
transform: none;
|
|
1427
|
+
text-decoration: none;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
[theme=aquaflux] [pagination] a:hover,
|
|
1431
|
+
[theme=aquaflux] [pagination-link]:hover,
|
|
1432
|
+
[theme=aquaflux] button[pagination-link]:hover,
|
|
1433
|
+
[theme=aquaflux] button[pagination-prev]:hover,
|
|
1434
|
+
[theme=aquaflux] button[pagination-next]:hover {
|
|
1435
|
+
background-image: none;
|
|
1436
|
+
background-color: var(--juice-pagination-surface-hover);
|
|
1437
|
+
color: var(--juice-pagination-ink-hover);
|
|
1438
|
+
box-shadow: none;
|
|
1439
|
+
transform: none;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
[theme=aquaflux] [pagination] [aria-current=page],
|
|
1443
|
+
[theme=aquaflux] [pagination] [aria-current=page] :is(a, button, [pagination-link]),
|
|
1444
|
+
[theme=aquaflux] [pagination-link][aria-current=page] {
|
|
1445
|
+
background-image: none;
|
|
1446
|
+
background-color: var(--juice-pagination-surface-current);
|
|
1447
|
+
color: var(--juice-pagination-ink-current);
|
|
1448
|
+
box-shadow: none;
|
|
1449
|
+
transform: none;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
[theme=aquaflux] [pagination] :is(a, button, [pagination-link]):is(:disabled, [disabled], [aria-disabled=true]),
|
|
1453
|
+
[theme=aquaflux] [pagination] [aria-disabled=true] :is(a, button, [pagination-link]) {
|
|
1454
|
+
background-image: none;
|
|
1455
|
+
background-color: var(--juice-pagination-surface);
|
|
1456
|
+
color: var(--juice-pagination-ink-disabled);
|
|
1457
|
+
box-shadow: none;
|
|
1458
|
+
transform: none;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
[theme=aquaflux] [pagination] a:focus-visible,
|
|
1462
|
+
[theme=aquaflux] [pagination-link]:focus-visible,
|
|
1463
|
+
[theme=aquaflux] button[pagination-link]:focus-visible,
|
|
1464
|
+
[theme=aquaflux] button[pagination-prev]:focus-visible,
|
|
1465
|
+
[theme=aquaflux] button[pagination-next]:focus-visible {
|
|
1466
|
+
outline: 2px solid var(--juice-pagination-focus-ring);
|
|
1467
|
+
outline-offset: 2px;
|
|
1375
1468
|
}
|
|
@@ -379,6 +379,30 @@
|
|
|
379
379
|
--juice-progress-fill: var(--cm-progress-fill);
|
|
380
380
|
--juice-progress-ink: var(--cm-progress-ink);
|
|
381
381
|
--juice-progress-focus-ring: var(--cm-progress-focus-ring);
|
|
382
|
+
/* Pagination chrome — thinner --cm-* set. Heading stands in for accent
|
|
383
|
+
on the current page, same as slider fill. Page controls are surfaces,
|
|
384
|
+
not heading-fill. The trail stays transparent. Distinct from
|
|
385
|
+
breadcrumb, nav[type="pagination"], tabs, and wizard steps. */
|
|
386
|
+
--cm-pagination-surface: var(--cm-surface);
|
|
387
|
+
--cm-pagination-surface-hover: var(--cm-surface-muted);
|
|
388
|
+
--cm-pagination-surface-current: var(--cm-heading);
|
|
389
|
+
--cm-pagination-ink: var(--cm-text);
|
|
390
|
+
--cm-pagination-ink-hover: var(--cm-heading);
|
|
391
|
+
--cm-pagination-ink-current: var(--cm-surface);
|
|
392
|
+
--cm-pagination-ink-disabled: var(--cm-text-muted);
|
|
393
|
+
--cm-pagination-border: var(--cm-border);
|
|
394
|
+
--cm-pagination-focus-ring: var(--cm-heading);
|
|
395
|
+
--cm-pagination-ellipsis: var(--cm-text-muted);
|
|
396
|
+
--juice-pagination-surface: var(--cm-pagination-surface);
|
|
397
|
+
--juice-pagination-surface-hover: var(--cm-pagination-surface-hover);
|
|
398
|
+
--juice-pagination-surface-current: var(--cm-pagination-surface-current);
|
|
399
|
+
--juice-pagination-ink: var(--cm-pagination-ink);
|
|
400
|
+
--juice-pagination-ink-hover: var(--cm-pagination-ink-hover);
|
|
401
|
+
--juice-pagination-ink-current: var(--cm-pagination-ink-current);
|
|
402
|
+
--juice-pagination-ink-disabled: var(--cm-pagination-ink-disabled);
|
|
403
|
+
--juice-pagination-border: var(--cm-pagination-border);
|
|
404
|
+
--juice-pagination-focus-ring: var(--cm-pagination-focus-ring);
|
|
405
|
+
--juice-pagination-ellipsis: var(--cm-pagination-ellipsis);
|
|
382
406
|
background-color: var(--cm-page);
|
|
383
407
|
color: var(--cm-text);
|
|
384
408
|
font-family: var(--cm-body-font);
|
|
@@ -1025,4 +1049,67 @@
|
|
|
1025
1049
|
[theme=citrusmint] [progress]:focus-visible {
|
|
1026
1050
|
outline: 2px solid var(--juice-progress-focus-ring);
|
|
1027
1051
|
outline-offset: 2px;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/* Pagination chrome. Beat generic fills and button CTAs. Heading paints
|
|
1055
|
+
the current page, not a CTA. The trail stays inline. Runtime is later. */
|
|
1056
|
+
[theme=citrusmint] [pagination],
|
|
1057
|
+
[theme=citrusmint] nav[pagination] {
|
|
1058
|
+
background-color: transparent;
|
|
1059
|
+
border: none;
|
|
1060
|
+
box-shadow: none;
|
|
1061
|
+
-webkit-backdrop-filter: none;
|
|
1062
|
+
backdrop-filter: none;
|
|
1063
|
+
color: var(--juice-pagination-ink);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
[theme=citrusmint] [pagination] a,
|
|
1067
|
+
[theme=citrusmint] [pagination-link],
|
|
1068
|
+
[theme=citrusmint] a[pagination-link],
|
|
1069
|
+
[theme=citrusmint] button[pagination-link],
|
|
1070
|
+
[theme=citrusmint] button[pagination-prev],
|
|
1071
|
+
[theme=citrusmint] button[pagination-next] {
|
|
1072
|
+
background-color: var(--juice-pagination-surface);
|
|
1073
|
+
border-color: var(--juice-pagination-border);
|
|
1074
|
+
color: var(--juice-pagination-ink);
|
|
1075
|
+
box-shadow: none;
|
|
1076
|
+
transform: none;
|
|
1077
|
+
text-decoration: none;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
[theme=citrusmint] [pagination] a:hover,
|
|
1081
|
+
[theme=citrusmint] [pagination-link]:hover,
|
|
1082
|
+
[theme=citrusmint] button[pagination-link]:hover,
|
|
1083
|
+
[theme=citrusmint] button[pagination-prev]:hover,
|
|
1084
|
+
[theme=citrusmint] button[pagination-next]:hover {
|
|
1085
|
+
background-color: var(--juice-pagination-surface-hover);
|
|
1086
|
+
color: var(--juice-pagination-ink-hover);
|
|
1087
|
+
box-shadow: none;
|
|
1088
|
+
transform: none;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
[theme=citrusmint] [pagination] [aria-current=page],
|
|
1092
|
+
[theme=citrusmint] [pagination] [aria-current=page] :is(a, button, [pagination-link]),
|
|
1093
|
+
[theme=citrusmint] [pagination-link][aria-current=page] {
|
|
1094
|
+
background-color: var(--juice-pagination-surface-current);
|
|
1095
|
+
color: var(--juice-pagination-ink-current);
|
|
1096
|
+
box-shadow: none;
|
|
1097
|
+
transform: none;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
[theme=citrusmint] [pagination] :is(a, button, [pagination-link]):is(:disabled, [disabled], [aria-disabled=true]),
|
|
1101
|
+
[theme=citrusmint] [pagination] [aria-disabled=true] :is(a, button, [pagination-link]) {
|
|
1102
|
+
background-color: var(--juice-pagination-surface);
|
|
1103
|
+
color: var(--juice-pagination-ink-disabled);
|
|
1104
|
+
box-shadow: none;
|
|
1105
|
+
transform: none;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
[theme=citrusmint] [pagination] a:focus-visible,
|
|
1109
|
+
[theme=citrusmint] [pagination-link]:focus-visible,
|
|
1110
|
+
[theme=citrusmint] button[pagination-link]:focus-visible,
|
|
1111
|
+
[theme=citrusmint] button[pagination-prev]:focus-visible,
|
|
1112
|
+
[theme=citrusmint] button[pagination-next]:focus-visible {
|
|
1113
|
+
outline: 2px solid var(--juice-pagination-focus-ring);
|
|
1114
|
+
outline-offset: 2px;
|
|
1028
1115
|
}
|
|
@@ -419,6 +419,30 @@
|
|
|
419
419
|
--juice-progress-fill: var(--kw-progress-fill);
|
|
420
420
|
--juice-progress-ink: var(--kw-progress-ink);
|
|
421
421
|
--juice-progress-focus-ring: var(--kw-progress-focus-ring);
|
|
422
|
+
/* Pagination chrome — APG page set from existing tokens. Page controls
|
|
423
|
+
are surfaces, not a kiwi CTA. The trail stays transparent. Current
|
|
424
|
+
fill is accent; ink on that fill is page. Distinct from breadcrumb,
|
|
425
|
+
nav[type="pagination"], tabs, and wizard steps. */
|
|
426
|
+
--kw-pagination-surface: var(--kw-surface);
|
|
427
|
+
--kw-pagination-surface-hover: var(--kw-surface-muted);
|
|
428
|
+
--kw-pagination-surface-current: var(--kw-accent);
|
|
429
|
+
--kw-pagination-ink: var(--kw-text);
|
|
430
|
+
--kw-pagination-ink-hover: var(--kw-accent);
|
|
431
|
+
--kw-pagination-ink-current: var(--kw-page);
|
|
432
|
+
--kw-pagination-ink-disabled: var(--kw-text-muted);
|
|
433
|
+
--kw-pagination-border: var(--kw-border);
|
|
434
|
+
--kw-pagination-focus-ring: var(--kw-accent);
|
|
435
|
+
--kw-pagination-ellipsis: var(--kw-text-muted);
|
|
436
|
+
--juice-pagination-surface: var(--kw-pagination-surface);
|
|
437
|
+
--juice-pagination-surface-hover: var(--kw-pagination-surface-hover);
|
|
438
|
+
--juice-pagination-surface-current: var(--kw-pagination-surface-current);
|
|
439
|
+
--juice-pagination-ink: var(--kw-pagination-ink);
|
|
440
|
+
--juice-pagination-ink-hover: var(--kw-pagination-ink-hover);
|
|
441
|
+
--juice-pagination-ink-current: var(--kw-pagination-ink-current);
|
|
442
|
+
--juice-pagination-ink-disabled: var(--kw-pagination-ink-disabled);
|
|
443
|
+
--juice-pagination-border: var(--kw-pagination-border);
|
|
444
|
+
--juice-pagination-focus-ring: var(--kw-pagination-focus-ring);
|
|
445
|
+
--juice-pagination-ellipsis: var(--kw-pagination-ellipsis);
|
|
422
446
|
background-color: var(--kw-page);
|
|
423
447
|
color: var(--kw-text);
|
|
424
448
|
font-family: var(--kw-body-font);
|
|
@@ -2173,6 +2197,75 @@
|
|
|
2173
2197
|
outline-offset: 2px;
|
|
2174
2198
|
}
|
|
2175
2199
|
|
|
2200
|
+
/* Pagination chrome. Beat generic link color and button CTAs.
|
|
2201
|
+
Page controls are surfaces, not a kiwi CTA. The trail stays inline.
|
|
2202
|
+
Runtime is later. */
|
|
2203
|
+
[theme=kiwipress] [pagination],
|
|
2204
|
+
[theme=kiwipress] nav[pagination] {
|
|
2205
|
+
background-image: none;
|
|
2206
|
+
background-color: transparent;
|
|
2207
|
+
border: none;
|
|
2208
|
+
box-shadow: none;
|
|
2209
|
+
-webkit-backdrop-filter: none;
|
|
2210
|
+
backdrop-filter: none;
|
|
2211
|
+
color: var(--juice-pagination-ink);
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
[theme=kiwipress] [pagination] a,
|
|
2215
|
+
[theme=kiwipress] [pagination-link],
|
|
2216
|
+
[theme=kiwipress] a[pagination-link],
|
|
2217
|
+
[theme=kiwipress] button[pagination-link],
|
|
2218
|
+
[theme=kiwipress] button[pagination-prev],
|
|
2219
|
+
[theme=kiwipress] button[pagination-next] {
|
|
2220
|
+
background-image: none;
|
|
2221
|
+
background-color: var(--juice-pagination-surface);
|
|
2222
|
+
border-color: var(--juice-pagination-border);
|
|
2223
|
+
color: var(--juice-pagination-ink);
|
|
2224
|
+
box-shadow: none;
|
|
2225
|
+
transform: none;
|
|
2226
|
+
text-decoration: none;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
[theme=kiwipress] [pagination] a:hover,
|
|
2230
|
+
[theme=kiwipress] [pagination-link]:hover,
|
|
2231
|
+
[theme=kiwipress] button[pagination-link]:hover,
|
|
2232
|
+
[theme=kiwipress] button[pagination-prev]:hover,
|
|
2233
|
+
[theme=kiwipress] button[pagination-next]:hover {
|
|
2234
|
+
background-image: none;
|
|
2235
|
+
background-color: var(--juice-pagination-surface-hover);
|
|
2236
|
+
color: var(--juice-pagination-ink-hover);
|
|
2237
|
+
box-shadow: none;
|
|
2238
|
+
transform: none;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
[theme=kiwipress] [pagination] [aria-current=page],
|
|
2242
|
+
[theme=kiwipress] [pagination] [aria-current=page] :is(a, button, [pagination-link]),
|
|
2243
|
+
[theme=kiwipress] [pagination-link][aria-current=page] {
|
|
2244
|
+
background-image: none;
|
|
2245
|
+
background-color: var(--juice-pagination-surface-current);
|
|
2246
|
+
color: var(--juice-pagination-ink-current);
|
|
2247
|
+
box-shadow: none;
|
|
2248
|
+
transform: none;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
[theme=kiwipress] [pagination] :is(a, button, [pagination-link]):is(:disabled, [disabled], [aria-disabled=true]),
|
|
2252
|
+
[theme=kiwipress] [pagination] [aria-disabled=true] :is(a, button, [pagination-link]) {
|
|
2253
|
+
background-image: none;
|
|
2254
|
+
background-color: var(--juice-pagination-surface);
|
|
2255
|
+
color: var(--juice-pagination-ink-disabled);
|
|
2256
|
+
box-shadow: none;
|
|
2257
|
+
transform: none;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
[theme=kiwipress] [pagination] a:focus-visible,
|
|
2261
|
+
[theme=kiwipress] [pagination-link]:focus-visible,
|
|
2262
|
+
[theme=kiwipress] button[pagination-link]:focus-visible,
|
|
2263
|
+
[theme=kiwipress] button[pagination-prev]:focus-visible,
|
|
2264
|
+
[theme=kiwipress] button[pagination-next]:focus-visible {
|
|
2265
|
+
outline: 2px solid var(--juice-pagination-focus-ring);
|
|
2266
|
+
outline-offset: 2px;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2176
2269
|
/* Accordion wrappers are structural, not default section surfaces.
|
|
2177
2270
|
Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
|
|
2178
2271
|
[theme=kiwipress] :where([accordion]) {
|