@citrusworx/juiceui 0.4.0 → 0.7.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.
@@ -4,3 +4,11 @@ export { createAccordion, initAccordion, startAccordionRuntime, stopAccordionRun
4
4
  export type { AccordionController, AccordionOptions } from "./src/accordion/accordion-runtime.js";
5
5
  export { createTabs, initTabs, startTabsRuntime, stopTabsRuntime } from "./src/tabs/tabs-runtime.js";
6
6
  export type { TabsController, TabsOptions } from "./src/tabs/tabs-runtime.js";
7
+ export { createModal, initModal, startModalRuntime, stopModalRuntime } from "./src/modal/modal-runtime.js";
8
+ export type { ModalController, ModalOptions } from "./src/modal/modal-runtime.js";
9
+ export { createDrawer, initDrawer, startDrawerRuntime, stopDrawerRuntime } from "./src/drawer/drawer-runtime.js";
10
+ export type { DrawerController, DrawerOptions } from "./src/drawer/drawer-runtime.js";
11
+ export { createToast, initToast, startToastRuntime, stopToastRuntime } from "./src/toast/toast-runtime.js";
12
+ export type { ToastController, ToastOptions } from "./src/toast/toast-runtime.js";
13
+ export { createPopover, initPopover, startPopoverRuntime, stopPopoverRuntime } from "./src/popover/popover-runtime.js";
14
+ export type { PopoverController, PopoverOptions, PopoverPlacement } from "./src/popover/popover-runtime.js";
@@ -0,0 +1,30 @@
1
+ /**
2
+ * DOM-first dialog runtime for Juice drawer chrome.
3
+ *
4
+ * Markup contract:
5
+ * [drawer-overlay][hidden] > [drawer role="dialog"] + [drawer-close]
6
+ * Closed vs open is the native `hidden` attribute on the overlay.
7
+ *
8
+ * Openers: any element whose `aria-controls` token list includes a
9
+ * `[drawer-overlay]` id. `[drawer-close]` closes the containing overlay.
10
+ * Backdrop click closes unless `drawer-overlay="static"` or
11
+ * `closeOnBackdrop` is false.
12
+ */
13
+ export type DrawerOptions = {
14
+ root?: ParentNode;
15
+ overlaySelector?: string;
16
+ dialogSelector?: string;
17
+ closeSelector?: string;
18
+ closeOnBackdrop?: boolean;
19
+ };
20
+ export type DrawerController = {
21
+ destroy: () => void;
22
+ sync: () => void;
23
+ open: (target?: HTMLElement | null) => void;
24
+ close: (target?: HTMLElement | null) => void;
25
+ toggle: (target?: HTMLElement | null) => void;
26
+ };
27
+ export declare const createDrawer: (options?: DrawerOptions) => DrawerController;
28
+ export declare const initDrawer: (options?: DrawerOptions) => DrawerController;
29
+ export declare const startDrawerRuntime: () => DrawerController | null;
30
+ export declare const stopDrawerRuntime: () => void;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * DOM-first dialog runtime for Juice modal chrome.
3
+ *
4
+ * Markup contract:
5
+ * [modal-overlay][hidden] > [modal role="dialog"] + [modal-close]
6
+ * Closed vs open is the native `hidden` attribute on the overlay.
7
+ *
8
+ * Openers: any element whose `aria-controls` token list includes a
9
+ * `[modal-overlay]` id. `[modal-close]` closes the containing overlay.
10
+ * Backdrop click closes unless `modal-overlay="static"` or
11
+ * `closeOnBackdrop` is false.
12
+ */
13
+ export type ModalOptions = {
14
+ root?: ParentNode;
15
+ overlaySelector?: string;
16
+ dialogSelector?: string;
17
+ closeSelector?: string;
18
+ closeOnBackdrop?: boolean;
19
+ };
20
+ export type ModalController = {
21
+ destroy: () => void;
22
+ sync: () => void;
23
+ open: (target?: HTMLElement | null) => void;
24
+ close: (target?: HTMLElement | null) => void;
25
+ toggle: (target?: HTMLElement | null) => void;
26
+ };
27
+ export declare const createModal: (options?: ModalOptions) => ModalController;
28
+ export declare const initModal: (options?: ModalOptions) => ModalController;
29
+ export declare const startModalRuntime: () => ModalController | null;
30
+ export declare const stopModalRuntime: () => void;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * DOM-first popover runtime for Juice popover chrome.
3
+ *
4
+ * Markup contract (Slice A — do not rename attrs):
5
+ * [popover-root][hidden] > [popover-panel] + [popover-header]? +
6
+ * [popover-body]? + [popover-close]?
7
+ * Closed vs open is the native `hidden` attribute on [popover-root].
8
+ *
9
+ * Never use a bare `popover` attribute. HTML `popover=""` / `popover="manual"`
10
+ * activates the platform Popover API. The floating surface is [popover-panel].
11
+ *
12
+ * Accessibility (honest v1): treat the panel as a **non-modal dialog**.
13
+ * APG allows `role="dialog"` without `aria-modal` when the background stays
14
+ * interactive (not inert). Escape and outside-click still dismiss. This is
15
+ * not `role="menu"` (no arrow-key roving / typeahead in this cut) and not
16
+ * a modal (`aria-modal="true"` would lie — there is no scrim).
17
+ *
18
+ * Openers: any element whose `aria-controls` token list includes a
19
+ * `[popover-root]` id. The runtime sets `aria-expanded` / `aria-haspopup`.
20
+ * `[popover-close]` dismisses the containing root.
21
+ *
22
+ * Placement (honest v1, no Floating UI): read `popover-root` (`top` /
23
+ * `bottom` / `left` / `right`, default `bottom`), position `fixed` near the
24
+ * opener from getBoundingClientRect (viewport coords; `fixed` needs no
25
+ * scroll offset), with a small gap. If a transformed / filtered ancestor
26
+ * is the fixed containing block, subtract that origin so Juice cards
27
+ * (`[card="interactive"]:focus-within`) do not offset the panel. If the
28
+ * preferred side overflows the viewport, flip once to the opposite side.
29
+ * No shift / size middleware. Repositions on open, window resize, and
30
+ * capture scroll (rAF-throttled).
31
+ *
32
+ * Escape closes the open popover on bubble (after modal/drawer capture),
33
+ * and also yields when an open [modal-overlay] or [drawer-overlay] exists
34
+ * or the event is already defaultPrevented (same courtesy as toast).
35
+ * Opening one managed popover closes the others. Modal / drawer are not
36
+ * auto-closed.
37
+ */
38
+ export type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';
39
+ export type PopoverOptions = {
40
+ root?: ParentNode;
41
+ rootSelector?: string;
42
+ panelSelector?: string;
43
+ closeSelector?: string;
44
+ gap?: number;
45
+ };
46
+ export type PopoverController = {
47
+ destroy: () => void;
48
+ sync: () => void;
49
+ open: (target?: HTMLElement | null) => void;
50
+ close: (target?: HTMLElement | null) => void;
51
+ toggle: (target?: HTMLElement | null) => void;
52
+ };
53
+ export declare const createPopover: (options?: PopoverOptions) => PopoverController;
54
+ export declare const initPopover: (options?: PopoverOptions) => PopoverController;
55
+ export declare const startPopoverRuntime: () => PopoverController | null;
56
+ export declare const stopPopoverRuntime: () => void;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * DOM-first toast / snackbar runtime for Juice toast chrome.
3
+ *
4
+ * Markup contract (authors place the region — this is not a portal):
5
+ * [toast-region] > [toast] + [toast-title]? + [toast-body]? + [toast-close]?
6
+ * Individual toasts use native `hidden` when dismissed. The region stays in the DOM.
7
+ *
8
+ * Toast is NOT a dialog:
9
+ * - no focus trap, no aria-modal, no exclusive "one toast only"
10
+ * - stacking is the point; show() never hides siblings
11
+ * - do not move focus into the toast on show (disruptive)
12
+ *
13
+ * Duration:
14
+ * - createToast({ defaultDuration: 5000 }) — ms before auto-dismiss
15
+ * - Per-toast override: toast-duration="3000"
16
+ * - Sticky: toast-duration="0", toast-duration="Infinity", or a negative number
17
+ * - defaultDuration of 0 / Infinity / negative also means no auto-dismiss
18
+ *
19
+ * Auto-dismiss pauses while pointer or focus is inside the toast, then resumes.
20
+ *
21
+ * Escape dismisses the most recently shown visible toast, but only when no
22
+ * open [modal-overlay] or [drawer-overlay] exists (those dialogs own Escape).
23
+ *
24
+ * Live region: sync fills missing aria-live="polite" and
25
+ * aria-relevant="additions" on [toast-region]. Opt into assertive with
26
+ * aria-live="assertive" or toast-live="assertive" on the region or toast.
27
+ * role="status" for polite; role="alert" for toast="error" or assertive.
28
+ */
29
+ export type ToastOptions = {
30
+ root?: ParentNode;
31
+ regionSelector?: string;
32
+ toastSelector?: string;
33
+ closeSelector?: string;
34
+ defaultDuration?: number;
35
+ };
36
+ export type ToastController = {
37
+ destroy: () => void;
38
+ sync: () => void;
39
+ show: (target?: HTMLElement | null) => void;
40
+ dismiss: (target?: HTMLElement | null) => void;
41
+ };
42
+ export declare const createToast: (options?: ToastOptions) => ToastController;
43
+ export declare const initToast: (options?: ToastOptions) => ToastController;
44
+ export declare const startToastRuntime: () => ToastController | null;
45
+ export declare const stopToastRuntime: () => void;
@@ -94,6 +94,125 @@
94
94
  --juice-tabs-indicator: var(--aqua-tabs-indicator);
95
95
  --juice-tabs-list-rule: var(--aqua-tabs-list-rule);
96
96
  --juice-tabs-focus-ring: var(--aqua-tabs-focus-ring);
97
+ /* Surface tone roles — frosted / elevated / recessed from existing tokens. */
98
+ --juice-surface-soft-bg: var(--aqua-surface);
99
+ --juice-surface-soft-border: var(--aqua-border);
100
+ --juice-surface-soft-shadow: 0 18px 40px -28px var(--aqua-shadow);
101
+ --juice-surface-soft-blur: 14px;
102
+ --juice-surface-strong-bg: var(--aqua-surface-strong);
103
+ --juice-surface-strong-border: var(--aqua-border-strong);
104
+ --juice-surface-strong-shadow: 0 24px 56px -24px var(--aqua-shadow);
105
+ --juice-surface-strong-blur: 0px;
106
+ --juice-surface-muted-bg: var(--aqua-surface-muted);
107
+ --juice-surface-muted-border: var(--aqua-border);
108
+ --juice-surface-muted-shadow: none;
109
+ --juice-surface-muted-blur: 0px;
110
+ /* Border strength — existing --aqua-border tokens; 1px hairline vs 2px rule. */
111
+ --juice-border-strength-soft-width: 1px;
112
+ --juice-border-strength-soft-color: var(--aqua-border);
113
+ --juice-border-strength-bold-width: 2px;
114
+ --juice-border-strength-bold-color: var(--aqua-border-strong);
115
+ /* Shadow tone — existing blue / purple identity; no new hue family. */
116
+ --juice-shadow-tone-cool-color: var(--aqua-shadow);
117
+ --juice-shadow-tone-cool-shadow: 0 18px 40px -28px var(--aqua-shadow);
118
+ --juice-shadow-tone-warm-color: color-mix(in srgb, var(--aqua-accent-strong) 16%, transparent);
119
+ --juice-shadow-tone-warm-shadow: 0 18px 40px -28px color-mix(in srgb, var(--aqua-accent-strong) 16%, transparent);
120
+ /* Overlay — frost veil / page-tint wash; existing tokens only. */
121
+ --juice-overlay-frost-wash: color-mix(in srgb, var(--aqua-page) 42%, transparent);
122
+ --juice-overlay-frost-layer: linear-gradient(var(--juice-overlay-frost-wash), var(--juice-overlay-frost-wash));
123
+ --juice-overlay-tint-wash: color-mix(in srgb, var(--aqua-page-tint) 38%, transparent);
124
+ --juice-overlay-tint-layer: linear-gradient(var(--juice-overlay-tint-wash), var(--juice-overlay-tint-wash));
125
+ /* Modal chrome — dimming scrim + elevated panel. Close is a surface
126
+ control, not the CTA gradient. Distinct from overlay="frost|tint". */
127
+ --aqua-modal-overlay: color-mix(in srgb, var(--aqua-page-deep) 62%, transparent);
128
+ --aqua-modal-panel: var(--aqua-surface-strong);
129
+ --aqua-modal-panel-border: var(--aqua-border);
130
+ --aqua-modal-panel-shadow: 0 24px 56px -24px var(--aqua-shadow);
131
+ --aqua-modal-close: var(--aqua-surface-strong);
132
+ --aqua-modal-close-color: var(--aqua-heading);
133
+ --aqua-modal-close-hover: var(--aqua-surface-muted);
134
+ --aqua-modal-focus-ring: var(--aqua-accent);
135
+ --juice-modal-overlay: var(--aqua-modal-overlay);
136
+ --juice-modal-panel: var(--aqua-modal-panel);
137
+ --juice-modal-panel-border: var(--aqua-modal-panel-border);
138
+ --juice-modal-panel-shadow: var(--aqua-modal-panel-shadow);
139
+ --juice-modal-close: var(--aqua-modal-close);
140
+ --juice-modal-close-color: var(--aqua-modal-close-color);
141
+ --juice-modal-close-hover: var(--aqua-modal-close-hover);
142
+ --juice-modal-focus-ring: var(--aqua-modal-focus-ring);
143
+ /* Drawer chrome — same identity tokens as modal. Close is a surface
144
+ control, not the CTA gradient. Distinct from overlay="frost|tint". */
145
+ --aqua-drawer-overlay: color-mix(in srgb, var(--aqua-page-deep) 62%, transparent);
146
+ --aqua-drawer-panel: var(--aqua-surface-strong);
147
+ --aqua-drawer-panel-border: var(--aqua-border);
148
+ --aqua-drawer-panel-shadow: 0 24px 56px -24px var(--aqua-shadow);
149
+ --aqua-drawer-close: var(--aqua-surface-strong);
150
+ --aqua-drawer-close-color: var(--aqua-heading);
151
+ --aqua-drawer-close-hover: var(--aqua-surface-muted);
152
+ --aqua-drawer-focus-ring: var(--aqua-accent);
153
+ --juice-drawer-overlay: var(--aqua-drawer-overlay);
154
+ --juice-drawer-panel: var(--aqua-drawer-panel);
155
+ --juice-drawer-panel-border: var(--aqua-drawer-panel-border);
156
+ --juice-drawer-panel-shadow: var(--aqua-drawer-panel-shadow);
157
+ --juice-drawer-close: var(--aqua-drawer-close);
158
+ --juice-drawer-close-color: var(--aqua-drawer-close-color);
159
+ --juice-drawer-close-hover: var(--aqua-drawer-close-hover);
160
+ --juice-drawer-focus-ring: var(--aqua-drawer-focus-ring);
161
+ /* Toast chrome — non-modal stack + panel from existing tokens.
162
+ Close is a surface control, not the CTA gradient. Status accents
163
+ remap Aquaflux identity (no new red/green family): accent /
164
+ page-deep / accent-soft / accent-strong. */
165
+ --aqua-toast-panel: var(--aqua-surface-strong);
166
+ --aqua-toast-panel-border: var(--aqua-border);
167
+ --aqua-toast-panel-shadow: 0 18px 40px -24px var(--aqua-shadow);
168
+ --aqua-toast-ink: var(--aqua-text);
169
+ --aqua-toast-close: var(--aqua-surface-strong);
170
+ --aqua-toast-close-color: var(--aqua-heading);
171
+ --aqua-toast-close-hover: var(--aqua-surface-muted);
172
+ --aqua-toast-focus-ring: var(--aqua-accent);
173
+ --aqua-toast-success: var(--aqua-accent);
174
+ --aqua-toast-success-soft: color-mix(in srgb, var(--aqua-accent) 14%, var(--aqua-surface-strong));
175
+ --aqua-toast-error: var(--aqua-page-deep);
176
+ --aqua-toast-error-soft: color-mix(in srgb, var(--aqua-page-deep) 12%, var(--aqua-surface-strong));
177
+ --aqua-toast-info: var(--aqua-accent-soft);
178
+ --aqua-toast-info-soft: color-mix(in srgb, var(--aqua-accent-soft) 18%, var(--aqua-surface-strong));
179
+ --aqua-toast-warning: var(--aqua-accent-strong);
180
+ --aqua-toast-warning-soft: color-mix(in srgb, var(--aqua-accent-strong) 12%, var(--aqua-surface-strong));
181
+ --juice-toast-panel: var(--aqua-toast-panel);
182
+ --juice-toast-panel-border: var(--aqua-toast-panel-border);
183
+ --juice-toast-panel-shadow: var(--aqua-toast-panel-shadow);
184
+ --juice-toast-ink: var(--aqua-toast-ink);
185
+ --juice-toast-close: var(--aqua-toast-close);
186
+ --juice-toast-close-color: var(--aqua-toast-close-color);
187
+ --juice-toast-close-hover: var(--aqua-toast-close-hover);
188
+ --juice-toast-focus-ring: var(--aqua-toast-focus-ring);
189
+ --juice-toast-success: var(--aqua-toast-success);
190
+ --juice-toast-success-soft: var(--aqua-toast-success-soft);
191
+ --juice-toast-error: var(--aqua-toast-error);
192
+ --juice-toast-error-soft: var(--aqua-toast-error-soft);
193
+ --juice-toast-info: var(--aqua-toast-info);
194
+ --juice-toast-info-soft: var(--aqua-toast-info-soft);
195
+ --juice-toast-warning: var(--aqua-toast-warning);
196
+ --juice-toast-warning-soft: var(--aqua-toast-warning-soft);
197
+ /* Popover chrome — anchored floating panel from existing tokens.
198
+ Close is a surface control, not the CTA gradient. Distinct from
199
+ modal/drawer/toast and overlay="frost|tint". */
200
+ --aqua-popover-panel: var(--aqua-surface-strong);
201
+ --aqua-popover-panel-border: var(--aqua-border);
202
+ --aqua-popover-panel-shadow: 0 18px 40px -24px var(--aqua-shadow);
203
+ --aqua-popover-ink: var(--aqua-text);
204
+ --aqua-popover-close: var(--aqua-surface-strong);
205
+ --aqua-popover-close-color: var(--aqua-heading);
206
+ --aqua-popover-close-hover: var(--aqua-surface-muted);
207
+ --aqua-popover-focus-ring: var(--aqua-accent);
208
+ --juice-popover-panel: var(--aqua-popover-panel);
209
+ --juice-popover-panel-border: var(--aqua-popover-panel-border);
210
+ --juice-popover-panel-shadow: var(--aqua-popover-panel-shadow);
211
+ --juice-popover-ink: var(--aqua-popover-ink);
212
+ --juice-popover-close: var(--aqua-popover-close);
213
+ --juice-popover-close-color: var(--aqua-popover-close-color);
214
+ --juice-popover-close-hover: var(--aqua-popover-close-hover);
215
+ --juice-popover-focus-ring: var(--aqua-popover-focus-ring);
97
216
  background-color: var(--aqua-page);
98
217
  background-image: var(--aqua-page-background);
99
218
  color: var(--aqua-text);
@@ -464,4 +583,196 @@
464
583
 
465
584
  [theme=aquaflux] [tab-panel] {
466
585
  color: var(--aqua-text);
586
+ }
587
+
588
+ /* Modal chrome. Generic Aquaflux buttons use the CTA gradient;
589
+ [modal-close] stays a surface control. Runtime is slice B. */
590
+ [theme=aquaflux] [modal-overlay] {
591
+ background-color: var(--juice-modal-overlay);
592
+ }
593
+
594
+ [theme=aquaflux] [modal]:not([surfaceTone]) {
595
+ background-color: var(--juice-modal-panel);
596
+ border: 1px solid var(--juice-modal-panel-border);
597
+ box-shadow: var(--juice-modal-panel-shadow);
598
+ }
599
+
600
+ [theme=aquaflux] button[modal-close],
601
+ [theme=aquaflux] [modal-close] {
602
+ background-image: none;
603
+ background-color: var(--juice-modal-close);
604
+ color: var(--juice-modal-close-color);
605
+ box-shadow: none;
606
+ transform: none;
607
+ }
608
+
609
+ [theme=aquaflux] button[modal-close]:hover,
610
+ [theme=aquaflux] [modal-close]:hover {
611
+ background-image: none;
612
+ background-color: var(--juice-modal-close-hover);
613
+ color: var(--juice-modal-close-color);
614
+ transform: none;
615
+ }
616
+
617
+ [theme=aquaflux] button[modal-close]:focus-visible,
618
+ [theme=aquaflux] [modal-close]:focus-visible {
619
+ outline: 2px solid var(--juice-modal-focus-ring);
620
+ outline-offset: 2px;
621
+ }
622
+
623
+ /* Drawer chrome. Generic Aquaflux buttons use the CTA gradient;
624
+ [drawer-close] stays a surface control. Runtime is later. */
625
+ [theme=aquaflux] [drawer-overlay] {
626
+ background-color: var(--juice-drawer-overlay);
627
+ }
628
+
629
+ [theme=aquaflux] [drawer]:not([surfaceTone]) {
630
+ background-color: var(--juice-drawer-panel);
631
+ border: 1px solid var(--juice-drawer-panel-border);
632
+ box-shadow: var(--juice-drawer-panel-shadow);
633
+ }
634
+
635
+ [theme=aquaflux] button[drawer-close],
636
+ [theme=aquaflux] [drawer-close] {
637
+ background-image: none;
638
+ background-color: var(--juice-drawer-close);
639
+ color: var(--juice-drawer-close-color);
640
+ box-shadow: none;
641
+ transform: none;
642
+ }
643
+
644
+ [theme=aquaflux] button[drawer-close]:hover,
645
+ [theme=aquaflux] [drawer-close]:hover {
646
+ background-image: none;
647
+ background-color: var(--juice-drawer-close-hover);
648
+ color: var(--juice-drawer-close-color);
649
+ transform: none;
650
+ }
651
+
652
+ [theme=aquaflux] button[drawer-close]:focus-visible,
653
+ [theme=aquaflux] [drawer-close]:focus-visible {
654
+ outline: 2px solid var(--juice-drawer-focus-ring);
655
+ outline-offset: 2px;
656
+ }
657
+
658
+ /* Toast chrome. Generic Aquaflux buttons use the CTA gradient;
659
+ [toast-close] stays a surface control. Runtime is later. */
660
+ [theme=aquaflux] [toast]:not([surfaceTone]) {
661
+ background-color: var(--juice-toast-panel);
662
+ border: 1px solid var(--juice-toast-panel-border);
663
+ box-shadow: var(--juice-toast-panel-shadow);
664
+ color: var(--juice-toast-ink);
665
+ }
666
+
667
+ [theme=aquaflux] [toast-title],
668
+ [theme=aquaflux] [toast-body] {
669
+ color: var(--juice-toast-ink);
670
+ }
671
+
672
+ [theme=aquaflux] [toast=success]:not([surfaceTone]) {
673
+ background-color: var(--juice-toast-success-soft);
674
+ }
675
+
676
+ [theme=aquaflux] [toast=success] {
677
+ border-left-color: var(--juice-toast-success);
678
+ }
679
+
680
+ [theme=aquaflux] [toast=success] [toast-title] {
681
+ color: var(--juice-toast-success);
682
+ }
683
+
684
+ [theme=aquaflux] [toast=error]:not([surfaceTone]) {
685
+ background-color: var(--juice-toast-error-soft);
686
+ }
687
+
688
+ [theme=aquaflux] [toast=error] {
689
+ border-left-color: var(--juice-toast-error);
690
+ }
691
+
692
+ [theme=aquaflux] [toast=error] [toast-title] {
693
+ color: var(--juice-toast-error);
694
+ }
695
+
696
+ [theme=aquaflux] [toast=info]:not([surfaceTone]) {
697
+ background-color: var(--juice-toast-info-soft);
698
+ }
699
+
700
+ [theme=aquaflux] [toast=info] {
701
+ border-left-color: var(--juice-toast-info);
702
+ }
703
+
704
+ [theme=aquaflux] [toast=info] [toast-title] {
705
+ color: var(--juice-toast-info);
706
+ }
707
+
708
+ [theme=aquaflux] [toast=warning]:not([surfaceTone]) {
709
+ background-color: var(--juice-toast-warning-soft);
710
+ }
711
+
712
+ [theme=aquaflux] [toast=warning] {
713
+ border-left-color: var(--juice-toast-warning);
714
+ }
715
+
716
+ [theme=aquaflux] [toast=warning] [toast-title] {
717
+ color: var(--juice-toast-warning);
718
+ }
719
+
720
+ [theme=aquaflux] button[toast-close],
721
+ [theme=aquaflux] [toast-close] {
722
+ background-image: none;
723
+ background-color: var(--juice-toast-close);
724
+ color: var(--juice-toast-close-color);
725
+ box-shadow: none;
726
+ transform: none;
727
+ }
728
+
729
+ [theme=aquaflux] button[toast-close]:hover,
730
+ [theme=aquaflux] [toast-close]:hover {
731
+ background-image: none;
732
+ background-color: var(--juice-toast-close-hover);
733
+ color: var(--juice-toast-close-color);
734
+ transform: none;
735
+ }
736
+
737
+ [theme=aquaflux] button[toast-close]:focus-visible,
738
+ [theme=aquaflux] [toast-close]:focus-visible {
739
+ outline: 2px solid var(--juice-toast-focus-ring);
740
+ outline-offset: 2px;
741
+ }
742
+
743
+ /* Popover chrome. Generic Aquaflux buttons use the CTA gradient;
744
+ [popover-close] stays a surface control. Runtime is later. */
745
+ [theme=aquaflux] [popover-panel]:not([surfaceTone]) {
746
+ background-color: var(--juice-popover-panel);
747
+ border: 1px solid var(--juice-popover-panel-border);
748
+ box-shadow: var(--juice-popover-panel-shadow);
749
+ color: var(--juice-popover-ink);
750
+ }
751
+
752
+ [theme=aquaflux] [popover-header],
753
+ [theme=aquaflux] [popover-body] {
754
+ color: var(--juice-popover-ink);
755
+ }
756
+
757
+ [theme=aquaflux] button[popover-close],
758
+ [theme=aquaflux] [popover-close] {
759
+ background-image: none;
760
+ background-color: var(--juice-popover-close);
761
+ color: var(--juice-popover-close-color);
762
+ box-shadow: none;
763
+ transform: none;
764
+ }
765
+
766
+ [theme=aquaflux] button[popover-close]:hover,
767
+ [theme=aquaflux] [popover-close]:hover {
768
+ background-image: none;
769
+ background-color: var(--juice-popover-close-hover);
770
+ color: var(--juice-popover-close-color);
771
+ transform: none;
772
+ }
773
+
774
+ [theme=aquaflux] button[popover-close]:focus-visible,
775
+ [theme=aquaflux] [popover-close]:focus-visible {
776
+ outline: 2px solid var(--juice-popover-focus-ring);
777
+ outline-offset: 2px;
467
778
  }