@citrusworx/juiceui 0.9.1 → 0.9.2
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 +36 -6
- package/dist/index.css +1164 -135
- package/dist/index.d.ts +14 -0
- package/dist/index.js +2006 -951
- package/dist/js/juice.d.ts +14 -0
- package/dist/js/src/disclosure/disclosure-runtime.d.ts +51 -0
- package/dist/js/src/drawer/drawer-runtime.d.ts +6 -0
- package/dist/js/src/field/field-runtime.d.ts +53 -0
- package/dist/js/src/input/input-runtime.d.ts +55 -0
- package/dist/js/src/modal/modal-runtime.d.ts +6 -0
- package/dist/js/src/popover/popover-runtime.d.ts +5 -0
- package/dist/js/src/select/select-runtime.d.ts +52 -0
- package/dist/js/src/shared/motion.d.ts +48 -0
- package/dist/js/src/spinner/spinner-runtime.d.ts +51 -0
- package/dist/js/src/textarea/textarea-runtime.d.ts +51 -0
- package/dist/js/src/toast/toast-runtime.d.ts +5 -0
- package/dist/themes/aquaflux.css +318 -0
- package/dist/themes/citrusmint.css +317 -0
- package/dist/themes/kiwipress.css +317 -0
- package/dist/themes/retro-afterburn.css +318 -0
- package/dist/themes/retro-arcade-glow.css +318 -0
- package/dist/themes/retro-boardwalk.css +585 -56
- package/dist/themes/retro-denim-dial.css +318 -0
- package/dist/themes/retro-forest-radio.css +318 -0
- package/dist/themes/retro-orchard-club.css +318 -0
- package/dist/themes/retro-poolside-pop.css +318 -0
- package/dist/themes/retro-signal-garden.css +318 -0
- package/dist/themes/retro-sunset-motel.css +318 -0
- package/dist/themes/retro-violet-parlor.css +318 -0
- package/dist/themes/tide.css +311 -0
- package/package.json +1 -1
|
@@ -471,6 +471,96 @@
|
|
|
471
471
|
--juice-pagination-border: var(--acg-pagination-border);
|
|
472
472
|
--juice-pagination-focus-ring: var(--acg-pagination-focus-ring);
|
|
473
473
|
--juice-pagination-ellipsis: var(--acg-pagination-ellipsis);
|
|
474
|
+
/* Disclosure chrome — standalone APG disclosure from existing tokens.
|
|
475
|
+
One trigger and one panel. Trigger is a surface, not a CTA.
|
|
476
|
+
Distinct from [accordion]. */
|
|
477
|
+
--acg-disclosure-surface: var(--acg-surface);
|
|
478
|
+
--acg-disclosure-border: var(--acg-border);
|
|
479
|
+
--acg-disclosure-trigger: var(--acg-surface-strong);
|
|
480
|
+
--acg-disclosure-trigger-hover: var(--acg-surface-muted);
|
|
481
|
+
--acg-disclosure-trigger-open: var(--acg-surface-muted);
|
|
482
|
+
--acg-disclosure-ink: var(--acg-text);
|
|
483
|
+
--acg-disclosure-chevron: var(--acg-accent);
|
|
484
|
+
--acg-disclosure-focus-ring: var(--acg-accent);
|
|
485
|
+
--juice-disclosure-surface: var(--acg-disclosure-surface);
|
|
486
|
+
--juice-disclosure-border: var(--acg-disclosure-border);
|
|
487
|
+
--juice-disclosure-trigger: var(--acg-disclosure-trigger);
|
|
488
|
+
--juice-disclosure-trigger-hover: var(--acg-disclosure-trigger-hover);
|
|
489
|
+
--juice-disclosure-trigger-open: var(--acg-disclosure-trigger-open);
|
|
490
|
+
--juice-disclosure-ink: var(--acg-disclosure-ink);
|
|
491
|
+
--juice-disclosure-chevron: var(--acg-disclosure-chevron);
|
|
492
|
+
--juice-disclosure-focus-ring: var(--acg-disclosure-focus-ring);
|
|
493
|
+
/* Spinner chrome — standalone indeterminate busy indicator from existing
|
|
494
|
+
tokens. The ring is a border stroke, not a CTA and not a progress
|
|
495
|
+
bar. Indicator is accent. Ink is text. Inline status — no overlay.
|
|
496
|
+
CSS owns the spin. Runtime is later. */
|
|
497
|
+
--acg-spinner-track: var(--acg-border);
|
|
498
|
+
--acg-spinner-indicator: var(--acg-accent);
|
|
499
|
+
--acg-spinner-ink: var(--acg-text);
|
|
500
|
+
--acg-spinner-focus-ring: var(--acg-accent);
|
|
501
|
+
--juice-spinner-track: var(--acg-spinner-track);
|
|
502
|
+
--juice-spinner-indicator: var(--acg-spinner-indicator);
|
|
503
|
+
--juice-spinner-ink: var(--acg-spinner-ink);
|
|
504
|
+
--juice-spinner-focus-ring: var(--acg-spinner-focus-ring);
|
|
505
|
+
/* Select chrome — styled native <select> from existing tokens.
|
|
506
|
+
Field fill matches the combobox input surface. Not a combobox,
|
|
507
|
+
not a custom listbox, and not a CTA. Chevron is accent.
|
|
508
|
+
The platform popup stays native. Runtime is later. */
|
|
509
|
+
--acg-select-surface: var(--acg-surface-strong);
|
|
510
|
+
--acg-select-border: var(--acg-border-strong);
|
|
511
|
+
--acg-select-ink: var(--acg-text);
|
|
512
|
+
--acg-select-chevron: var(--acg-accent);
|
|
513
|
+
--acg-select-focus-ring: var(--acg-accent);
|
|
514
|
+
--juice-select-surface: var(--acg-select-surface);
|
|
515
|
+
--juice-select-border: var(--acg-select-border);
|
|
516
|
+
--juice-select-ink: var(--acg-select-ink);
|
|
517
|
+
--juice-select-chevron: var(--acg-select-chevron);
|
|
518
|
+
--juice-select-focus-ring: var(--acg-select-focus-ring);
|
|
519
|
+
/* Input chrome — styled native text field from existing tokens.
|
|
520
|
+
Field fill matches the combobox input surface. Not a combobox,
|
|
521
|
+
not a select, and not a CTA. Placeholder follows this theme's
|
|
522
|
+
existing placeholder ink. Text-like types only. Runtime is later. */
|
|
523
|
+
--acg-input-surface: var(--acg-surface-strong);
|
|
524
|
+
--acg-input-border: var(--acg-border-strong);
|
|
525
|
+
--acg-input-ink: var(--acg-text);
|
|
526
|
+
--acg-input-placeholder: var(--acg-text-soft);
|
|
527
|
+
--acg-input-focus-ring: var(--acg-accent);
|
|
528
|
+
--juice-input-surface: var(--acg-input-surface);
|
|
529
|
+
--juice-input-border: var(--acg-input-border);
|
|
530
|
+
--juice-input-ink: var(--acg-input-ink);
|
|
531
|
+
--juice-input-placeholder: var(--acg-input-placeholder);
|
|
532
|
+
--juice-input-focus-ring: var(--acg-input-focus-ring);
|
|
533
|
+
/* Textarea chrome — styled native multi-line field from existing tokens.
|
|
534
|
+
Field fill matches the input surface. Not an input, not a select,
|
|
535
|
+
and not a combobox. Placeholder follows this theme's existing
|
|
536
|
+
placeholder ink. Runtime is later. */
|
|
537
|
+
--acg-textarea-surface: var(--acg-surface-strong);
|
|
538
|
+
--acg-textarea-border: var(--acg-border-strong);
|
|
539
|
+
--acg-textarea-ink: var(--acg-text);
|
|
540
|
+
--acg-textarea-placeholder: var(--acg-text-soft);
|
|
541
|
+
--acg-textarea-focus-ring: var(--acg-accent);
|
|
542
|
+
--juice-textarea-surface: var(--acg-textarea-surface);
|
|
543
|
+
--juice-textarea-border: var(--acg-textarea-border);
|
|
544
|
+
--juice-textarea-ink: var(--acg-textarea-ink);
|
|
545
|
+
--juice-textarea-placeholder: var(--acg-textarea-placeholder);
|
|
546
|
+
--juice-textarea-focus-ring: var(--acg-textarea-focus-ring);
|
|
547
|
+
/* Field chrome — wrapper around a control from existing tokens.
|
|
548
|
+
Surface matches the input field. Help follows this theme's
|
|
549
|
+
placeholder ink. Error ink and the invalid border reuse banner
|
|
550
|
+
error. Not an input, not a textarea, not a select, and not a CTA.
|
|
551
|
+
Runtime is later. */
|
|
552
|
+
--acg-field-surface: var(--acg-surface-strong);
|
|
553
|
+
--acg-field-gap: 0.5rem;
|
|
554
|
+
--acg-field-label-ink: var(--acg-text);
|
|
555
|
+
--acg-field-help-ink: var(--acg-text-soft);
|
|
556
|
+
--acg-field-error-ink: var(--acg-banner-error);
|
|
557
|
+
--acg-field-invalid-border: var(--acg-banner-error);
|
|
558
|
+
--juice-field-surface: var(--acg-field-surface);
|
|
559
|
+
--juice-field-gap: var(--acg-field-gap);
|
|
560
|
+
--juice-field-label-ink: var(--acg-field-label-ink);
|
|
561
|
+
--juice-field-help-ink: var(--acg-field-help-ink);
|
|
562
|
+
--juice-field-error-ink: var(--acg-field-error-ink);
|
|
563
|
+
--juice-field-invalid-border: var(--acg-field-invalid-border);
|
|
474
564
|
background-color: var(--acg-page);
|
|
475
565
|
background-image: var(--acg-page-background);
|
|
476
566
|
color: var(--acg-text);
|
|
@@ -1651,6 +1741,234 @@
|
|
|
1651
1741
|
outline-offset: 2px;
|
|
1652
1742
|
}
|
|
1653
1743
|
|
|
1744
|
+
/* Disclosure chrome. Beat button CTAs.
|
|
1745
|
+
Standalone one-trigger disclosure, not an accordion and not a CTA.
|
|
1746
|
+
Runtime is later. */
|
|
1747
|
+
[theme=retro-arcade-glow] [disclosure] {
|
|
1748
|
+
background-image: none;
|
|
1749
|
+
background-color: transparent;
|
|
1750
|
+
border-color: var(--juice-disclosure-border);
|
|
1751
|
+
box-shadow: none;
|
|
1752
|
+
color: var(--juice-disclosure-ink);
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
[theme=retro-arcade-glow] button[disclosure-trigger],
|
|
1756
|
+
[theme=retro-arcade-glow] a[disclosure-trigger],
|
|
1757
|
+
[theme=retro-arcade-glow] [disclosure-trigger] {
|
|
1758
|
+
background-image: none;
|
|
1759
|
+
background-color: var(--juice-disclosure-trigger);
|
|
1760
|
+
color: var(--juice-disclosure-ink);
|
|
1761
|
+
box-shadow: none;
|
|
1762
|
+
transform: none;
|
|
1763
|
+
text-decoration: none;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
[theme=retro-arcade-glow] button[disclosure-trigger]:hover,
|
|
1767
|
+
[theme=retro-arcade-glow] a[disclosure-trigger]:hover,
|
|
1768
|
+
[theme=retro-arcade-glow] [disclosure-trigger]:hover {
|
|
1769
|
+
background-image: none;
|
|
1770
|
+
background-color: var(--juice-disclosure-trigger-hover);
|
|
1771
|
+
color: var(--juice-disclosure-ink);
|
|
1772
|
+
box-shadow: none;
|
|
1773
|
+
transform: none;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
[theme=retro-arcade-glow] button[disclosure-trigger][aria-expanded=true],
|
|
1777
|
+
[theme=retro-arcade-glow] a[disclosure-trigger][aria-expanded=true],
|
|
1778
|
+
[theme=retro-arcade-glow] [disclosure-trigger][aria-expanded=true] {
|
|
1779
|
+
background-image: none;
|
|
1780
|
+
background-color: var(--juice-disclosure-trigger-open);
|
|
1781
|
+
color: var(--juice-disclosure-ink);
|
|
1782
|
+
box-shadow: none;
|
|
1783
|
+
transform: none;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
[theme=retro-arcade-glow] [disclosure-trigger]::after {
|
|
1787
|
+
border-color: var(--juice-disclosure-chevron);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
[theme=retro-arcade-glow] button[disclosure-trigger]:focus-visible,
|
|
1791
|
+
[theme=retro-arcade-glow] a[disclosure-trigger]:focus-visible,
|
|
1792
|
+
[theme=retro-arcade-glow] [disclosure-trigger]:focus-visible {
|
|
1793
|
+
outline: 2px solid var(--juice-disclosure-focus-ring);
|
|
1794
|
+
outline-offset: 2px;
|
|
1795
|
+
box-shadow: none;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
[theme=retro-arcade-glow] [disclosure-panel],
|
|
1799
|
+
[theme=retro-arcade-glow] [disclosure] > [disclosure-trigger] + :not([disclosure-trigger]) {
|
|
1800
|
+
background-image: none;
|
|
1801
|
+
background-color: var(--juice-disclosure-surface);
|
|
1802
|
+
border-color: var(--juice-disclosure-border);
|
|
1803
|
+
color: var(--juice-disclosure-ink);
|
|
1804
|
+
box-shadow: none;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/* Spinner chrome. Beat generic div fills.
|
|
1808
|
+
Standalone indeterminate busy indicator, not a progress bar and not a CTA.
|
|
1809
|
+
CSS owns the spin. Runtime is later. */
|
|
1810
|
+
[theme=retro-arcade-glow] [spinner] {
|
|
1811
|
+
background-image: none;
|
|
1812
|
+
background-color: transparent;
|
|
1813
|
+
border: none;
|
|
1814
|
+
box-shadow: none;
|
|
1815
|
+
color: var(--juice-spinner-ink);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
[theme=retro-arcade-glow] [spinner]::before {
|
|
1819
|
+
background-image: none;
|
|
1820
|
+
background-color: transparent;
|
|
1821
|
+
border-color: var(--juice-spinner-track);
|
|
1822
|
+
border-top-color: var(--juice-spinner-indicator);
|
|
1823
|
+
box-shadow: none;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
[theme=retro-arcade-glow] [spinner-label] {
|
|
1827
|
+
background-image: none;
|
|
1828
|
+
background-color: transparent;
|
|
1829
|
+
color: var(--juice-spinner-ink);
|
|
1830
|
+
box-shadow: none;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
[theme=retro-arcade-glow] [spinner]:focus-visible {
|
|
1834
|
+
outline: 2px solid var(--juice-spinner-focus-ring);
|
|
1835
|
+
outline-offset: 2px;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/* Select chrome. Beat [theme] :where(select) defaults.
|
|
1839
|
+
Styled native dropdown, not a combobox and not a CTA.
|
|
1840
|
+
Chevron stays a background so the control still opens.
|
|
1841
|
+
Runtime is later. */
|
|
1842
|
+
[theme=retro-arcade-glow] select[select] {
|
|
1843
|
+
background-color: var(--juice-select-surface);
|
|
1844
|
+
border-color: var(--juice-select-border);
|
|
1845
|
+
color: var(--juice-select-ink);
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
[theme=retro-arcade-glow] select[select]:focus-visible {
|
|
1849
|
+
outline: 2px solid var(--juice-select-focus-ring);
|
|
1850
|
+
outline-offset: 2px;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
[theme=retro-arcade-glow] [select-label] {
|
|
1854
|
+
background-image: none;
|
|
1855
|
+
background-color: transparent;
|
|
1856
|
+
color: var(--juice-select-ink);
|
|
1857
|
+
box-shadow: none;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
/* Input chrome. Beat [theme] :where(input) defaults.
|
|
1861
|
+
Styled native text field, not a combobox, not a select, and not a CTA.
|
|
1862
|
+
Text-like types only. Border color only, so KiwiPress keeps its 2px
|
|
1863
|
+
control border. Runtime is later. */
|
|
1864
|
+
[theme=retro-arcade-glow] input[input]:is(:not([type]),
|
|
1865
|
+
[type=""],
|
|
1866
|
+
[type=text i],
|
|
1867
|
+
[type=email i],
|
|
1868
|
+
[type=password i],
|
|
1869
|
+
[type=search i],
|
|
1870
|
+
[type=tel i],
|
|
1871
|
+
[type=url i],
|
|
1872
|
+
[type=number i]):not([combobox-input]) {
|
|
1873
|
+
background-color: var(--juice-input-surface);
|
|
1874
|
+
border-color: var(--juice-input-border);
|
|
1875
|
+
color: var(--juice-input-ink);
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
[theme=retro-arcade-glow] input[input]:is(:not([type]),
|
|
1879
|
+
[type=""],
|
|
1880
|
+
[type=text i],
|
|
1881
|
+
[type=email i],
|
|
1882
|
+
[type=password i],
|
|
1883
|
+
[type=search i],
|
|
1884
|
+
[type=tel i],
|
|
1885
|
+
[type=url i],
|
|
1886
|
+
[type=number i]):not([combobox-input])::placeholder {
|
|
1887
|
+
color: var(--juice-input-placeholder);
|
|
1888
|
+
opacity: 1;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
[theme=retro-arcade-glow] input[input]:is(:not([type]),
|
|
1892
|
+
[type=""],
|
|
1893
|
+
[type=text i],
|
|
1894
|
+
[type=email i],
|
|
1895
|
+
[type=password i],
|
|
1896
|
+
[type=search i],
|
|
1897
|
+
[type=tel i],
|
|
1898
|
+
[type=url i],
|
|
1899
|
+
[type=number i]):not([combobox-input]):focus-visible {
|
|
1900
|
+
outline: 2px solid var(--juice-input-focus-ring);
|
|
1901
|
+
outline-offset: 2px;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
[theme=retro-arcade-glow] [input-label] {
|
|
1905
|
+
background-image: none;
|
|
1906
|
+
background-color: transparent;
|
|
1907
|
+
color: var(--juice-input-ink);
|
|
1908
|
+
box-shadow: none;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
/* Textarea chrome. Beat [theme] :where(textarea) defaults.
|
|
1912
|
+
Styled native multi-line field, not an input, not a select, and not a
|
|
1913
|
+
combobox. Border color only, so KiwiPress keeps its 2px control border.
|
|
1914
|
+
Runtime is later. */
|
|
1915
|
+
[theme=retro-arcade-glow] textarea[textarea] {
|
|
1916
|
+
background-color: var(--juice-textarea-surface);
|
|
1917
|
+
border-color: var(--juice-textarea-border);
|
|
1918
|
+
color: var(--juice-textarea-ink);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
[theme=retro-arcade-glow] textarea[textarea]::placeholder {
|
|
1922
|
+
color: var(--juice-textarea-placeholder);
|
|
1923
|
+
opacity: 1;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
[theme=retro-arcade-glow] textarea[textarea]:focus-visible {
|
|
1927
|
+
outline: 2px solid var(--juice-textarea-focus-ring);
|
|
1928
|
+
outline-offset: 2px;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
[theme=retro-arcade-glow] [textarea-label] {
|
|
1932
|
+
background-image: none;
|
|
1933
|
+
background-color: transparent;
|
|
1934
|
+
color: var(--juice-textarea-ink);
|
|
1935
|
+
box-shadow: none;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
/* Field chrome. Wrapper around a control — label, help, error, invalid.
|
|
1939
|
+
Not an input, not a textarea, not a select, and not the legacy form
|
|
1940
|
+
layout. Paint is surface, gap, ink, and the invalid border, so nested
|
|
1941
|
+
controls keep their own chrome. Runtime is later. */
|
|
1942
|
+
[theme=retro-arcade-glow] [field] {
|
|
1943
|
+
background-color: var(--juice-field-surface);
|
|
1944
|
+
gap: var(--juice-field-gap);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
[theme=retro-arcade-glow] [field][invalid] {
|
|
1948
|
+
border-color: var(--juice-field-invalid-border);
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
[theme=retro-arcade-glow] [field-label] {
|
|
1952
|
+
background-image: none;
|
|
1953
|
+
background-color: transparent;
|
|
1954
|
+
color: var(--juice-field-label-ink);
|
|
1955
|
+
box-shadow: none;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
[theme=retro-arcade-glow] [field-help] {
|
|
1959
|
+
background-image: none;
|
|
1960
|
+
background-color: transparent;
|
|
1961
|
+
color: var(--juice-field-help-ink);
|
|
1962
|
+
box-shadow: none;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
[theme=retro-arcade-glow] [field-error] {
|
|
1966
|
+
background-image: none;
|
|
1967
|
+
background-color: transparent;
|
|
1968
|
+
color: var(--juice-field-error-ink);
|
|
1969
|
+
box-shadow: none;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1654
1972
|
/* Primary CTA ink only. Outline, secondary, and component controls keep their own roles. */
|
|
1655
1973
|
[theme=retro-arcade-glow] :where(button:not([btn])) {
|
|
1656
1974
|
color: #1a0518;
|