@citrusworx/juiceui 0.8.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.
@@ -332,6 +332,117 @@
332
332
  --juice-menu-focus-ring: var(--kw-menu-focus-ring);
333
333
  --juice-menu-opener: var(--kw-menu-opener);
334
334
  --juice-menu-opener-ink: var(--kw-menu-opener-ink);
335
+ /* Switch chrome — APG switch from existing tokens. The host is a
336
+ surface track, not a kiwi CTA. Distinct from checkbox / menuitemcheckbox. */
337
+ --kw-switch-track: var(--kw-surface-muted);
338
+ --kw-switch-track-checked: var(--kw-accent);
339
+ --kw-switch-thumb: var(--kw-surface);
340
+ --kw-switch-thumb-checked: var(--kw-page);
341
+ --kw-switch-focus-ring: var(--kw-accent);
342
+ --juice-switch-track: var(--kw-switch-track);
343
+ --juice-switch-track-checked: var(--kw-switch-track-checked);
344
+ --juice-switch-thumb: var(--kw-switch-thumb);
345
+ --juice-switch-thumb-checked: var(--kw-switch-thumb-checked);
346
+ --juice-switch-focus-ring: var(--kw-switch-focus-ring);
347
+ /* Slider chrome — APG slider from existing tokens. Horizontal only.
348
+ The track is a surface groove, not a kiwi CTA. Distinct from range
349
+ input, progress, and scrollbar. */
350
+ --kw-slider-track: var(--kw-surface-muted);
351
+ --kw-slider-track-border: var(--kw-border);
352
+ --kw-slider-fill: var(--kw-accent);
353
+ --kw-slider-thumb: var(--kw-surface);
354
+ --kw-slider-thumb-border: var(--kw-border);
355
+ --kw-slider-thumb-shadow: 0 1px 2px var(--kw-shadow-strong);
356
+ --kw-slider-focus-ring: var(--kw-accent);
357
+ --juice-slider-track: var(--kw-slider-track);
358
+ --juice-slider-track-border: var(--kw-slider-track-border);
359
+ --juice-slider-fill: var(--kw-slider-fill);
360
+ --juice-slider-thumb: var(--kw-slider-thumb);
361
+ --juice-slider-thumb-border: var(--kw-slider-thumb-border);
362
+ --juice-slider-thumb-shadow: var(--kw-slider-thumb-shadow);
363
+ --juice-slider-focus-ring: var(--kw-slider-focus-ring);
364
+ /* Checkbox chrome — APG checkbox from existing tokens. The host is a
365
+ surface box, not a kiwi CTA. Binary only. Distinct from switch and
366
+ menuitemcheckbox. */
367
+ --kw-checkbox-control: var(--kw-surface);
368
+ --kw-checkbox-control-checked: var(--kw-accent);
369
+ --kw-checkbox-border: var(--kw-border);
370
+ --kw-checkbox-border-checked: var(--kw-accent);
371
+ --kw-checkbox-mark: var(--kw-page);
372
+ --kw-checkbox-focus-ring: var(--kw-accent);
373
+ --juice-checkbox-control: var(--kw-checkbox-control);
374
+ --juice-checkbox-control-checked: var(--kw-checkbox-control-checked);
375
+ --juice-checkbox-border: var(--kw-checkbox-border);
376
+ --juice-checkbox-border-checked: var(--kw-checkbox-border-checked);
377
+ --juice-checkbox-mark: var(--kw-checkbox-mark);
378
+ --juice-checkbox-focus-ring: var(--kw-checkbox-focus-ring);
379
+ /* Radio chrome — APG radio from existing tokens. The host is a surface
380
+ disc, not a kiwi CTA. The group is layout-only. Distinct from switch
381
+ and checkbox. */
382
+ --kw-radio-control: var(--kw-surface);
383
+ --kw-radio-control-checked: var(--kw-surface);
384
+ --kw-radio-border: var(--kw-border);
385
+ --kw-radio-border-checked: var(--kw-accent);
386
+ --kw-radio-mark: var(--kw-accent);
387
+ --kw-radio-focus-ring: var(--kw-accent);
388
+ --juice-radio-control: var(--kw-radio-control);
389
+ --juice-radio-control-checked: var(--kw-radio-control-checked);
390
+ --juice-radio-border: var(--kw-radio-border);
391
+ --juice-radio-border-checked: var(--kw-radio-border-checked);
392
+ --juice-radio-mark: var(--kw-radio-mark);
393
+ --juice-radio-focus-ring: var(--kw-radio-focus-ring);
394
+ /* Breadcrumb chrome — APG trail from existing tokens. Inline, not a
395
+ site nav bar and not a kiwi CTA. Surface stays transparent unless a
396
+ bar is wanted. Distinct from tabs, wizard steps, and pagination. */
397
+ --kw-breadcrumb-ink: var(--kw-text-muted);
398
+ --kw-breadcrumb-ink-current: var(--kw-heading);
399
+ --kw-breadcrumb-ink-hover: var(--kw-accent);
400
+ --kw-breadcrumb-separator: var(--kw-border);
401
+ --kw-breadcrumb-focus-ring: var(--kw-accent);
402
+ --kw-breadcrumb-surface: transparent;
403
+ --juice-breadcrumb-ink: var(--kw-breadcrumb-ink);
404
+ --juice-breadcrumb-ink-current: var(--kw-breadcrumb-ink-current);
405
+ --juice-breadcrumb-ink-hover: var(--kw-breadcrumb-ink-hover);
406
+ --juice-breadcrumb-separator: var(--kw-breadcrumb-separator);
407
+ --juice-breadcrumb-focus-ring: var(--kw-breadcrumb-focus-ring);
408
+ --juice-breadcrumb-surface: var(--kw-breadcrumb-surface);
409
+ /* Progress chrome — APG progressbar from existing tokens. The track
410
+ is a surface groove, not a kiwi CTA. Distinct from slider, spinner,
411
+ and a native <progress> restyle. Inline status — no overlay. */
412
+ --kw-progress-track: var(--kw-surface-muted);
413
+ --kw-progress-track-border: var(--kw-border);
414
+ --kw-progress-fill: var(--kw-accent);
415
+ --kw-progress-ink: var(--kw-text);
416
+ --kw-progress-focus-ring: var(--kw-accent);
417
+ --juice-progress-track: var(--kw-progress-track);
418
+ --juice-progress-track-border: var(--kw-progress-track-border);
419
+ --juice-progress-fill: var(--kw-progress-fill);
420
+ --juice-progress-ink: var(--kw-progress-ink);
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);
335
446
  background-color: var(--kw-page);
336
447
  color: var(--kw-text);
337
448
  font-family: var(--kw-body-font);
@@ -1860,6 +1971,301 @@
1860
1971
  color: var(--juice-menu-ink);
1861
1972
  }
1862
1973
 
1974
+ /* Switch chrome. Beat [theme] :where(button) CTA defaults.
1975
+ The host is a surface track, not a kiwi CTA. Runtime is later. */
1976
+ [theme=kiwipress] button[switch],
1977
+ [theme=kiwipress] [switch] {
1978
+ background-color: var(--juice-switch-track);
1979
+ box-shadow: none;
1980
+ transform: none;
1981
+ }
1982
+
1983
+ [theme=kiwipress] button[switch][aria-checked=true],
1984
+ [theme=kiwipress] [switch][aria-checked=true],
1985
+ [theme=kiwipress] [switch]:checked {
1986
+ background-color: var(--juice-switch-track-checked);
1987
+ }
1988
+
1989
+ [theme=kiwipress] button[switch]:hover,
1990
+ [theme=kiwipress] [switch]:hover,
1991
+ [theme=kiwipress] button[switch]:focus-visible,
1992
+ [theme=kiwipress] [switch]:focus-visible {
1993
+ box-shadow: none;
1994
+ transform: none;
1995
+ }
1996
+
1997
+ [theme=kiwipress] button[switch]:focus-visible,
1998
+ [theme=kiwipress] [switch]:focus-visible {
1999
+ outline: 2px solid var(--juice-switch-focus-ring);
2000
+ outline-offset: 2px;
2001
+ }
2002
+
2003
+ /* Slider chrome. Beat [theme] :where(button) CTA defaults.
2004
+ Horizontal only. The thumb is a surface control, not a kiwi CTA.
2005
+ Runtime is later. */
2006
+ [theme=kiwipress] button[slider]:not([slider=vertical]),
2007
+ [theme=kiwipress] [slider]:not([slider=vertical]) {
2008
+ background-color: transparent;
2009
+ box-shadow: none;
2010
+ transform: none;
2011
+ }
2012
+
2013
+ [theme=kiwipress] button[slider-thumb],
2014
+ [theme=kiwipress] [slider-thumb] {
2015
+ background-color: var(--juice-slider-thumb);
2016
+ border-color: var(--juice-slider-thumb-border);
2017
+ box-shadow: var(--juice-slider-thumb-shadow);
2018
+ transform: translate(-50%, -50%);
2019
+ }
2020
+
2021
+ [theme=kiwipress] button[slider-thumb]:hover,
2022
+ [theme=kiwipress] [slider-thumb]:hover,
2023
+ [theme=kiwipress] button[slider-thumb]:focus-visible,
2024
+ [theme=kiwipress] [slider-thumb]:focus-visible {
2025
+ background-color: var(--juice-slider-thumb);
2026
+ box-shadow: var(--juice-slider-thumb-shadow);
2027
+ transform: translate(-50%, -50%);
2028
+ }
2029
+
2030
+ [theme=kiwipress] button[slider-thumb]:focus-visible,
2031
+ [theme=kiwipress] [slider-thumb]:focus-visible {
2032
+ outline: 2px solid var(--juice-slider-focus-ring);
2033
+ outline-offset: 2px;
2034
+ }
2035
+
2036
+ /* Checkbox chrome. Beat [theme] :where(button) CTA defaults.
2037
+ The host is a surface box, not a kiwi CTA. Binary only. Runtime is later. */
2038
+ [theme=kiwipress] button[checkbox],
2039
+ [theme=kiwipress] [checkbox] {
2040
+ background-color: var(--juice-checkbox-control);
2041
+ border-color: var(--juice-checkbox-border);
2042
+ box-shadow: none;
2043
+ transform: none;
2044
+ }
2045
+
2046
+ [theme=kiwipress] button[checkbox][aria-checked=true],
2047
+ [theme=kiwipress] [checkbox][aria-checked=true],
2048
+ [theme=kiwipress] [checkbox]:checked {
2049
+ background-color: var(--juice-checkbox-control-checked);
2050
+ border-color: var(--juice-checkbox-border-checked);
2051
+ }
2052
+
2053
+ [theme=kiwipress] button[checkbox]:hover,
2054
+ [theme=kiwipress] [checkbox]:hover,
2055
+ [theme=kiwipress] button[checkbox]:focus-visible,
2056
+ [theme=kiwipress] [checkbox]:focus-visible {
2057
+ background-color: var(--juice-checkbox-control);
2058
+ box-shadow: none;
2059
+ transform: none;
2060
+ }
2061
+
2062
+ [theme=kiwipress] button[checkbox][aria-checked=true]:hover,
2063
+ [theme=kiwipress] [checkbox][aria-checked=true]:hover,
2064
+ [theme=kiwipress] [checkbox]:checked:hover,
2065
+ [theme=kiwipress] button[checkbox][aria-checked=true]:focus-visible,
2066
+ [theme=kiwipress] [checkbox][aria-checked=true]:focus-visible,
2067
+ [theme=kiwipress] [checkbox]:checked:focus-visible {
2068
+ background-color: var(--juice-checkbox-control-checked);
2069
+ border-color: var(--juice-checkbox-border-checked);
2070
+ box-shadow: none;
2071
+ transform: none;
2072
+ }
2073
+
2074
+ [theme=kiwipress] button[checkbox]:focus-visible,
2075
+ [theme=kiwipress] [checkbox]:focus-visible {
2076
+ outline: 2px solid var(--juice-checkbox-focus-ring);
2077
+ outline-offset: 2px;
2078
+ }
2079
+
2080
+ /* Radio chrome. Beat [theme] :where(button) CTA defaults.
2081
+ The host is a surface disc, not a kiwi CTA. Group layout is author-owned.
2082
+ Runtime is later. */
2083
+ [theme=kiwipress] button[radio],
2084
+ [theme=kiwipress] [radio] {
2085
+ background-color: var(--juice-radio-control);
2086
+ border-color: var(--juice-radio-border);
2087
+ box-shadow: none;
2088
+ transform: none;
2089
+ }
2090
+
2091
+ [theme=kiwipress] button[radio][aria-checked=true],
2092
+ [theme=kiwipress] [radio][aria-checked=true],
2093
+ [theme=kiwipress] [radio]:checked {
2094
+ background-color: var(--juice-radio-control-checked);
2095
+ border-color: var(--juice-radio-border-checked);
2096
+ }
2097
+
2098
+ [theme=kiwipress] button[radio]:hover,
2099
+ [theme=kiwipress] [radio]:hover,
2100
+ [theme=kiwipress] button[radio]:focus-visible,
2101
+ [theme=kiwipress] [radio]:focus-visible {
2102
+ background-color: var(--juice-radio-control);
2103
+ box-shadow: none;
2104
+ transform: none;
2105
+ }
2106
+
2107
+ [theme=kiwipress] button[radio][aria-checked=true]:hover,
2108
+ [theme=kiwipress] [radio][aria-checked=true]:hover,
2109
+ [theme=kiwipress] [radio]:checked:hover,
2110
+ [theme=kiwipress] button[radio][aria-checked=true]:focus-visible,
2111
+ [theme=kiwipress] [radio][aria-checked=true]:focus-visible,
2112
+ [theme=kiwipress] [radio]:checked:focus-visible {
2113
+ background-color: var(--juice-radio-control-checked);
2114
+ border-color: var(--juice-radio-border-checked);
2115
+ box-shadow: none;
2116
+ transform: none;
2117
+ }
2118
+
2119
+ [theme=kiwipress] button[radio]:focus-visible,
2120
+ [theme=kiwipress] [radio]:focus-visible {
2121
+ outline: 2px solid var(--juice-radio-focus-ring);
2122
+ outline-offset: 2px;
2123
+ }
2124
+
2125
+ /* Breadcrumb chrome. Beat [theme] :where(nav) bars and :where(a) link color.
2126
+ Inline trail, not a site nav and not a kiwi CTA. Runtime is later. */
2127
+ [theme=kiwipress] [breadcrumb],
2128
+ [theme=kiwipress] nav[breadcrumb] {
2129
+ background-image: none;
2130
+ background-color: var(--juice-breadcrumb-surface);
2131
+ border: none;
2132
+ box-shadow: none;
2133
+ color: var(--juice-breadcrumb-ink);
2134
+ }
2135
+
2136
+ [theme=kiwipress] [breadcrumb] a,
2137
+ [theme=kiwipress] [breadcrumb-link],
2138
+ [theme=kiwipress] a[breadcrumb-link],
2139
+ [theme=kiwipress] button[breadcrumb-link] {
2140
+ background-image: none;
2141
+ background-color: transparent;
2142
+ color: var(--juice-breadcrumb-ink);
2143
+ box-shadow: none;
2144
+ transform: none;
2145
+ text-decoration: none;
2146
+ }
2147
+
2148
+ [theme=kiwipress] [breadcrumb] a:hover,
2149
+ [theme=kiwipress] [breadcrumb-link]:hover,
2150
+ [theme=kiwipress] a[breadcrumb-link]:hover,
2151
+ [theme=kiwipress] button[breadcrumb-link]:hover {
2152
+ background-image: none;
2153
+ background-color: transparent;
2154
+ color: var(--juice-breadcrumb-ink-hover);
2155
+ box-shadow: none;
2156
+ transform: none;
2157
+ }
2158
+
2159
+ [theme=kiwipress] [breadcrumb] [aria-current=page],
2160
+ [theme=kiwipress] [breadcrumb] [aria-current=page] :is(a, [breadcrumb-link]),
2161
+ [theme=kiwipress] [breadcrumb-link][aria-current=page] {
2162
+ color: var(--juice-breadcrumb-ink-current);
2163
+ }
2164
+
2165
+ [theme=kiwipress] [breadcrumb] a:focus-visible,
2166
+ [theme=kiwipress] [breadcrumb-link]:focus-visible,
2167
+ [theme=kiwipress] button[breadcrumb-link]:focus-visible {
2168
+ outline: 2px solid var(--juice-breadcrumb-focus-ring);
2169
+ outline-offset: 2px;
2170
+ }
2171
+
2172
+ /* Progress chrome. Beat generic fills. The track is a surface groove,
2173
+ not a kiwi CTA. Runtime is later. */
2174
+ [theme=kiwipress] [progress] {
2175
+ background-image: none;
2176
+ background-color: transparent;
2177
+ border: none;
2178
+ box-shadow: none;
2179
+ color: var(--juice-progress-ink);
2180
+ }
2181
+
2182
+ [theme=kiwipress] [progress-fill] {
2183
+ background-image: none;
2184
+ background-color: var(--juice-progress-fill);
2185
+ box-shadow: none;
2186
+ }
2187
+
2188
+ [theme=kiwipress] [progress-label] {
2189
+ background-image: none;
2190
+ background-color: transparent;
2191
+ color: var(--juice-progress-ink);
2192
+ box-shadow: none;
2193
+ }
2194
+
2195
+ [theme=kiwipress] [progress]:focus-visible {
2196
+ outline: 2px solid var(--juice-progress-focus-ring);
2197
+ outline-offset: 2px;
2198
+ }
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
+
1863
2269
  /* Accordion wrappers are structural, not default section surfaces.
1864
2270
  Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
1865
2271
  [theme=kiwipress] :where([accordion]) {