@citrusworx/juiceui 0.6.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.
package/README.md CHANGED
@@ -85,6 +85,18 @@ import {
85
85
  initModal,
86
86
  startModalRuntime,
87
87
  stopModalRuntime,
88
+ createDrawer,
89
+ initDrawer,
90
+ startDrawerRuntime,
91
+ stopDrawerRuntime,
92
+ createToast,
93
+ initToast,
94
+ startToastRuntime,
95
+ stopToastRuntime,
96
+ createPopover,
97
+ initPopover,
98
+ startPopoverRuntime,
99
+ stopPopoverRuntime,
88
100
  createNavigation,
89
101
  initNavigation,
90
102
  startNavigationRuntime,
@@ -95,7 +107,7 @@ import {
95
107
 
96
108
  The top-level JS entrypoint is intentionally small. Those named exports are the stable runtime API Juice currently promises.
97
109
 
98
- Importing that entry auto-starts the navigation, accordion, tabs, and modal runtimes in the browser. Valid `[accordion]`, `[tabs]`, and `[modal-overlay]` markup work without app init. See [docs/juice/juice-accordion-runtime.md](../../docs/juice/juice-accordion-runtime.md), [docs/juice/juice-tabs-runtime.md](../../docs/juice/juice-tabs-runtime.md), and [docs/juice/juice-modal-runtime.md](../../docs/juice/juice-modal-runtime.md).
110
+ Importing that entry auto-starts the navigation, accordion, tabs, modal, drawer, toast, and popover runtimes in the browser. Valid `[accordion]`, `[tabs]`, `[modal-overlay]`, `[drawer-overlay]`, `[toast-region]`, and `[popover-root]` markup work without app init. See [docs/juice/juice-accordion-runtime.md](../../docs/juice/juice-accordion-runtime.md), [docs/juice/juice-tabs-runtime.md](../../docs/juice/juice-tabs-runtime.md), [docs/juice/juice-modal-runtime.md](../../docs/juice/juice-modal-runtime.md), [docs/juice/juice-drawer-runtime.md](../../docs/juice/juice-drawer-runtime.md), [docs/juice/juice-toast-runtime.md](../../docs/juice/juice-toast-runtime.md), and [docs/juice/juice-popover-runtime.md](../../docs/juice/juice-popover-runtime.md).
99
111
 
100
112
  ## Use the built files directly
101
113
 
@@ -147,6 +159,9 @@ Juice keeps styling attribute-first, but interactive patterns still need accessi
147
159
  - tab chrome colors come from `--juice-tabs-*` roles bound by the active theme (Aquaflux, KiwiPress, Citrusmint, Tide, and generated `--jx-tabs-*` aliases)
148
160
  - visible vs hidden tab panels use the native `hidden` attribute; do not use `content="active"` or `content="hidden"` for panel state
149
161
  - modal chrome colors come from `--juice-modal-*` roles bound by the active theme; hide `[modal-overlay]` with the native `hidden` attribute. Openers use `aria-controls` pointing at the overlay id. The dialog runtime auto-enhances that markup (open/close, Escape, focus trap, exclusive). See [docs/juice/juice-modal-runtime.md](../../docs/juice/juice-modal-runtime.md).
162
+ - toast chrome colors come from `--juice-toast-*` roles bound by the active theme. `[toast-region]` is a non-modal stack (default `top-right`); hide an individual `[toast]` with the native `hidden` attribute. Status is `[toast="success|error|info|warning"]`. The runtime auto-enhances that markup (`show` / `dismiss`, `[toast-close]`, `toast-duration`, live-region ARIA). It is not a dialog: no focus trap, no `aria-modal`, and stacking is allowed. See [docs/juice/juice-toast-runtime.md](../../docs/juice/juice-toast-runtime.md).
163
+ - drawer chrome colors come from `--juice-drawer-*` roles bound by the active theme; hide `[drawer-overlay]` with the native `hidden` attribute. Openers use `aria-controls` pointing at the overlay id. The dialog runtime auto-enhances that markup (open/close, Escape, focus trap, exclusive). Edge is `[drawer]` / `[drawer="left"|"right"]`; optional width is `[drawer-size="sm|lg"]`. See [docs/juice/juice-drawer-runtime.md](../../docs/juice/juice-drawer-runtime.md).
164
+ - popover chrome colors come from `--juice-popover-*` roles bound by the active theme; hide `[popover-root]` with the native `hidden` attribute. Openers use `aria-controls` pointing at the root id. The runtime auto-enhances that markup (open/close, Escape, outside click, Tab trap, exclusive, one-axis flip). The panel is a non-modal dialog (`role="dialog"`, no `aria-modal`). Never use a bare `popover` attribute — the surface is `[popover-panel]`. Placement is `[popover-root]` / `[popover-root="bottom"]` (default), `"top"`, `"left"`, `"right"`. See [docs/juice/juice-popover-runtime.md](../../docs/juice/juice-popover-runtime.md).
150
165
 
151
166
  ```html
152
167
  <div tabs name="settings">
@@ -189,6 +204,32 @@ Juice keeps styling attribute-first, but interactive patterns still need accessi
189
204
  </div>
190
205
  </div>
191
206
  <button type="button" aria-controls="demo-modal">Open account</button>
207
+
208
+ <div drawer-overlay id="demo-drawer" hidden>
209
+ <div drawer role="dialog" aria-modal="true" aria-labelledby="demo-drawer-title">
210
+ <button type="button" drawer-close aria-label="Close">×</button>
211
+ <div drawer-header><h2 id="demo-drawer-title">Filters</h2></div>
212
+ <div drawer-body>Refine results from the catalog.</div>
213
+ </div>
214
+ </div>
215
+ <button type="button" aria-controls="demo-drawer">Open filters</button>
216
+
217
+ <div toast-region>
218
+ <div toast id="demo-toast">
219
+ <div toast-title>Saved</div>
220
+ <div toast-body>Your changes were written.</div>
221
+ <button type="button" toast-close aria-label="Dismiss">×</button>
222
+ </div>
223
+ </div>
224
+
225
+ <button type="button" aria-controls="demo-pop">Open help</button>
226
+ <div popover-root id="demo-pop" hidden>
227
+ <div popover-panel role="dialog">
228
+ <button type="button" popover-close aria-label="Close">×</button>
229
+ <div popover-header><h2>Help</h2></div>
230
+ <div popover-body>Account details live on this page.</div>
231
+ </div>
232
+ </div>
192
233
  ```
193
234
 
194
235
  ## Browser Support
package/dist/index.css CHANGED
@@ -97381,6 +97381,114 @@ button[full] {
97381
97381
  margin: 0;
97382
97382
  }
97383
97383
 
97384
+ [drawer-overlay],
97385
+ [theme] [drawer-overlay] {
97386
+ position: fixed;
97387
+ inset: 0;
97388
+ z-index: 1000;
97389
+ box-sizing: border-box;
97390
+ background-color: var(--juice-drawer-overlay, var(--aqua-drawer-overlay, var(--kw-drawer-overlay, var(--cm-drawer-overlay, var(--tide-drawer-overlay, var(--jx-drawer-overlay, rgba(25.5, 25.5, 25.5, 0.55)))))));
97391
+ }
97392
+
97393
+ [drawer-overlay][hidden],
97394
+ [theme] [drawer-overlay][hidden] {
97395
+ display: none;
97396
+ }
97397
+
97398
+ [drawer] {
97399
+ position: absolute;
97400
+ top: 0;
97401
+ right: 0;
97402
+ bottom: 0;
97403
+ left: auto;
97404
+ width: 22rem;
97405
+ max-width: 100%;
97406
+ overflow: auto;
97407
+ box-sizing: border-box;
97408
+ }
97409
+
97410
+ [drawer=left] {
97411
+ left: 0;
97412
+ right: auto;
97413
+ }
97414
+
97415
+ [drawer],
97416
+ [theme] [drawer]:not([surfaceTone]) {
97417
+ background-color: var(--juice-drawer-panel, var(--aqua-drawer-panel, var(--kw-drawer-panel, var(--cm-drawer-panel, var(--tide-drawer-panel, var(--jx-drawer-panel, hsl(0, 0%, 100%)))))));
97418
+ border: 1px solid var(--juice-drawer-panel-border, var(--aqua-drawer-panel-border, var(--kw-drawer-panel-border, var(--cm-drawer-panel-border, var(--tide-drawer-panel-border, var(--jx-drawer-panel-border, rgba(216.75, 216.75, 216.75, 0.85)))))));
97419
+ box-shadow: var(--juice-drawer-panel-shadow, var(--aqua-drawer-panel-shadow, var(--kw-drawer-panel-shadow, var(--cm-drawer-panel-shadow, var(--tide-drawer-panel-shadow, var(--jx-drawer-panel-shadow, 0 24px 56px -24px rgba(25.5, 25.5, 25.5, 0.42)))))));
97420
+ }
97421
+
97422
+ [drawer-size=sm] {
97423
+ width: 16rem;
97424
+ }
97425
+
97426
+ [drawer-size=lg] {
97427
+ width: 32rem;
97428
+ }
97429
+
97430
+ [drawer-header] {
97431
+ display: flex;
97432
+ flex-direction: column;
97433
+ gap: 0.75rem;
97434
+ text-align: start;
97435
+ padding: 2.5rem 2.5rem 1.25rem;
97436
+ }
97437
+
97438
+ [drawer-body] {
97439
+ padding: 0 2.5rem 2.5rem;
97440
+ }
97441
+
97442
+ [drawer-close],
97443
+ [theme] [drawer-close] {
97444
+ position: absolute;
97445
+ top: 1rem;
97446
+ right: 1rem;
97447
+ width: 2.5rem;
97448
+ height: 2.5rem;
97449
+ border-radius: 50%;
97450
+ display: inline-flex;
97451
+ align-items: center;
97452
+ justify-content: center;
97453
+ cursor: pointer;
97454
+ border: none;
97455
+ padding: 0;
97456
+ background-color: var(--juice-drawer-close, var(--aqua-drawer-close, var(--kw-drawer-close, var(--cm-drawer-close, var(--tide-drawer-close, var(--jx-drawer-close, hsl(0, 0%, 100%)))))));
97457
+ background-image: none;
97458
+ color: var(--juice-drawer-close-color, var(--aqua-drawer-close-color, var(--kw-drawer-close-color, var(--cm-drawer-close-color, var(--tide-drawer-close-color, var(--jx-drawer-close-color, hsl(0, 0%, 20%)))))));
97459
+ box-shadow: none;
97460
+ transform: none;
97461
+ transition: background-color 0.2s, color 0.2s;
97462
+ }
97463
+
97464
+ [drawer-close]:hover,
97465
+ [theme] [drawer-close]:hover {
97466
+ background-color: var(--juice-drawer-close-hover, var(--aqua-drawer-close-hover, var(--kw-drawer-close-hover, var(--cm-drawer-close-hover, var(--tide-drawer-close-hover, var(--jx-drawer-close-hover, hsl(0, 0%, 95%)))))));
97467
+ background-image: none;
97468
+ color: var(--juice-drawer-close-color, var(--aqua-drawer-close-color, var(--kw-drawer-close-color, var(--cm-drawer-close-color, var(--tide-drawer-close-color, var(--jx-drawer-close-color, hsl(0, 0%, 20%)))))));
97469
+ transform: none;
97470
+ }
97471
+
97472
+ [drawer-close]:focus-visible,
97473
+ [theme] [drawer-close]:focus-visible {
97474
+ outline: 2px solid var(--juice-drawer-focus-ring, var(--aqua-drawer-focus-ring, var(--kw-drawer-focus-ring, var(--cm-drawer-focus-ring, var(--tide-drawer-focus-ring, var(--jx-drawer-focus-ring, currentColor))))));
97475
+ outline-offset: 2px;
97476
+ }
97477
+
97478
+ @media (max-width: 768px) {
97479
+ [drawer-header] {
97480
+ padding: 1.5rem 1.5rem 0.75rem;
97481
+ }
97482
+ [drawer-body] {
97483
+ padding: 0 1.5rem 1.5rem;
97484
+ }
97485
+ }
97486
+ @media (prefers-reduced-motion: reduce) {
97487
+ [drawer-close],
97488
+ [theme] [drawer-close] {
97489
+ transition: none;
97490
+ }
97491
+ }
97384
97492
  form input::placeholder,
97385
97493
  form input::-moz-placeholder,
97386
97494
  form input:-ms-input-placeholder,
@@ -98662,6 +98770,120 @@ nav[type=actions] a:hover {
98662
98770
  gap: 0.75rem;
98663
98771
  }
98664
98772
 
98773
+ [popover-root],
98774
+ [theme] [popover-root] {
98775
+ position: absolute;
98776
+ z-index: 1050;
98777
+ width: max-content;
98778
+ max-width: min(22rem, 100vw - 2rem);
98779
+ box-sizing: border-box;
98780
+ }
98781
+
98782
+ [popover-root][hidden],
98783
+ [theme] [popover-root][hidden] {
98784
+ display: none;
98785
+ }
98786
+
98787
+ [popover-panel] {
98788
+ position: relative;
98789
+ width: 20rem;
98790
+ max-width: 100%;
98791
+ box-sizing: border-box;
98792
+ border-radius: 0.75rem;
98793
+ padding: 0.875rem 2.75rem 0.875rem 1rem;
98794
+ }
98795
+
98796
+ [popover-panel],
98797
+ [theme] [popover-panel]:not([surfaceTone]) {
98798
+ background-color: var(--juice-popover-panel, var(--aqua-popover-panel, var(--kw-popover-panel, var(--cm-popover-panel, var(--tide-popover-panel, var(--jx-popover-panel, hsl(0, 0%, 100%)))))));
98799
+ border: 1px solid var(--juice-popover-panel-border, var(--aqua-popover-panel-border, var(--kw-popover-panel-border, var(--cm-popover-panel-border, var(--tide-popover-panel-border, var(--jx-popover-panel-border, rgba(216.75, 216.75, 216.75, 0.85)))))));
98800
+ box-shadow: var(--juice-popover-panel-shadow, var(--aqua-popover-panel-shadow, var(--kw-popover-panel-shadow, var(--cm-popover-panel-shadow, var(--tide-popover-panel-shadow, var(--jx-popover-panel-shadow, 0 18px 40px -24px rgba(25.5, 25.5, 25.5, 0.28)))))));
98801
+ color: var(--juice-popover-ink, var(--aqua-popover-ink, var(--kw-popover-ink, var(--cm-popover-ink, var(--tide-popover-ink, var(--jx-popover-ink, hsl(0, 0%, 20%)))))));
98802
+ }
98803
+
98804
+ [popover-root] [popover-panel],
98805
+ [popover-root=bottom] [popover-panel] {
98806
+ margin-top: 0.5rem;
98807
+ transform-origin: top center;
98808
+ }
98809
+
98810
+ [popover-root=top] [popover-panel] {
98811
+ margin-top: 0;
98812
+ margin-bottom: 0.5rem;
98813
+ transform-origin: bottom center;
98814
+ }
98815
+
98816
+ [popover-root=left] [popover-panel] {
98817
+ margin-top: 0;
98818
+ margin-right: 0.5rem;
98819
+ transform-origin: right center;
98820
+ }
98821
+
98822
+ [popover-root=right] [popover-panel] {
98823
+ margin-top: 0;
98824
+ margin-left: 0.5rem;
98825
+ transform-origin: left center;
98826
+ }
98827
+
98828
+ [popover-header] {
98829
+ font-weight: 700;
98830
+ line-height: 1.3;
98831
+ margin: 0 0 0.25rem;
98832
+ }
98833
+
98834
+ [popover-body] {
98835
+ line-height: 1.45;
98836
+ }
98837
+
98838
+ [popover-header],
98839
+ [popover-body],
98840
+ [theme] [popover-header],
98841
+ [theme] [popover-body] {
98842
+ color: var(--juice-popover-ink, var(--aqua-popover-ink, var(--kw-popover-ink, var(--cm-popover-ink, var(--tide-popover-ink, var(--jx-popover-ink, hsl(0, 0%, 20%)))))));
98843
+ }
98844
+
98845
+ [popover-close],
98846
+ [theme] [popover-close] {
98847
+ position: absolute;
98848
+ top: 0.5rem;
98849
+ right: 0.5rem;
98850
+ width: 2rem;
98851
+ height: 2rem;
98852
+ border-radius: 50%;
98853
+ display: inline-flex;
98854
+ align-items: center;
98855
+ justify-content: center;
98856
+ cursor: pointer;
98857
+ border: none;
98858
+ padding: 0;
98859
+ background-color: var(--juice-popover-close, var(--aqua-popover-close, var(--kw-popover-close, var(--cm-popover-close, var(--tide-popover-close, var(--jx-popover-close, hsl(0, 0%, 100%)))))));
98860
+ background-image: none;
98861
+ color: var(--juice-popover-close-color, var(--aqua-popover-close-color, var(--kw-popover-close-color, var(--cm-popover-close-color, var(--tide-popover-close-color, var(--jx-popover-close-color, hsl(0, 0%, 20%)))))));
98862
+ box-shadow: none;
98863
+ transform: none;
98864
+ transition: background-color 0.2s, color 0.2s;
98865
+ }
98866
+
98867
+ [popover-close]:hover,
98868
+ [theme] [popover-close]:hover {
98869
+ background-color: var(--juice-popover-close-hover, var(--aqua-popover-close-hover, var(--kw-popover-close-hover, var(--cm-popover-close-hover, var(--tide-popover-close-hover, var(--jx-popover-close-hover, hsl(0, 0%, 95%)))))));
98870
+ background-image: none;
98871
+ color: var(--juice-popover-close-color, var(--aqua-popover-close-color, var(--kw-popover-close-color, var(--cm-popover-close-color, var(--tide-popover-close-color, var(--jx-popover-close-color, hsl(0, 0%, 20%)))))));
98872
+ transform: none;
98873
+ }
98874
+
98875
+ [popover-close]:focus-visible,
98876
+ [theme] [popover-close]:focus-visible {
98877
+ outline: 2px solid var(--juice-popover-focus-ring, var(--aqua-popover-focus-ring, var(--kw-popover-focus-ring, var(--cm-popover-focus-ring, var(--tide-popover-focus-ring, var(--jx-popover-focus-ring, currentColor))))));
98878
+ outline-offset: 2px;
98879
+ }
98880
+
98881
+ @media (prefers-reduced-motion: reduce) {
98882
+ [popover-close],
98883
+ [theme] [popover-close] {
98884
+ transition: none;
98885
+ }
98886
+ }
98665
98887
  [search-panel] {
98666
98888
  max-width: 56rem;
98667
98889
  margin: 0 auto;
@@ -98916,6 +99138,197 @@ nav[type=actions] a:hover {
98916
99138
  transition: none;
98917
99139
  }
98918
99140
  }
99141
+ [toast-region],
99142
+ [theme] [toast-region] {
99143
+ position: fixed;
99144
+ top: 0;
99145
+ right: 0;
99146
+ bottom: auto;
99147
+ left: auto;
99148
+ z-index: 1100;
99149
+ display: flex;
99150
+ flex-direction: column;
99151
+ gap: 0.75rem;
99152
+ width: max-content;
99153
+ max-width: min(24rem, 100vw - 2rem);
99154
+ padding: 1rem;
99155
+ box-sizing: border-box;
99156
+ pointer-events: none;
99157
+ background: transparent;
99158
+ border: none;
99159
+ box-shadow: none;
99160
+ }
99161
+
99162
+ [toast-region=top-right] {
99163
+ top: 0;
99164
+ right: 0;
99165
+ bottom: auto;
99166
+ left: auto;
99167
+ }
99168
+
99169
+ [toast-region=top-left] {
99170
+ top: 0;
99171
+ left: 0;
99172
+ right: auto;
99173
+ bottom: auto;
99174
+ }
99175
+
99176
+ [toast-region=bottom-right] {
99177
+ bottom: 0;
99178
+ right: 0;
99179
+ top: auto;
99180
+ left: auto;
99181
+ }
99182
+
99183
+ [toast-region=bottom-left] {
99184
+ bottom: 0;
99185
+ left: 0;
99186
+ top: auto;
99187
+ right: auto;
99188
+ }
99189
+
99190
+ [toast] {
99191
+ position: relative;
99192
+ width: 22rem;
99193
+ max-width: 100%;
99194
+ box-sizing: border-box;
99195
+ border-radius: 0.75rem;
99196
+ padding: 0.875rem 2.75rem 0.875rem 1rem;
99197
+ pointer-events: auto;
99198
+ }
99199
+
99200
+ [toast],
99201
+ [theme] [toast]:not([surfaceTone]) {
99202
+ background-color: var(--juice-toast-panel, var(--aqua-toast-panel, var(--kw-toast-panel, var(--cm-toast-panel, var(--tide-toast-panel, var(--jx-toast-panel, hsl(0, 0%, 100%)))))));
99203
+ border: 1px solid var(--juice-toast-panel-border, var(--aqua-toast-panel-border, var(--kw-toast-panel-border, var(--cm-toast-panel-border, var(--tide-toast-panel-border, var(--jx-toast-panel-border, rgba(216.75, 216.75, 216.75, 0.85)))))));
99204
+ box-shadow: var(--juice-toast-panel-shadow, var(--aqua-toast-panel-shadow, var(--kw-toast-panel-shadow, var(--cm-toast-panel-shadow, var(--tide-toast-panel-shadow, var(--jx-toast-panel-shadow, 0 18px 40px -24px rgba(25.5, 25.5, 25.5, 0.28)))))));
99205
+ color: var(--juice-toast-ink, var(--aqua-toast-ink, var(--kw-toast-ink, var(--cm-toast-ink, var(--tide-toast-ink, var(--jx-toast-ink, hsl(0, 0%, 20%)))))));
99206
+ }
99207
+
99208
+ [toast][hidden],
99209
+ [theme] [toast][hidden] {
99210
+ display: none;
99211
+ }
99212
+
99213
+ [toast-title] {
99214
+ font-weight: 700;
99215
+ line-height: 1.3;
99216
+ margin: 0 0 0.25rem;
99217
+ }
99218
+
99219
+ [toast-body] {
99220
+ line-height: 1.45;
99221
+ }
99222
+
99223
+ [toast-title],
99224
+ [toast-body],
99225
+ [theme] [toast-title],
99226
+ [theme] [toast-body] {
99227
+ color: var(--juice-toast-ink, var(--aqua-toast-ink, var(--kw-toast-ink, var(--cm-toast-ink, var(--tide-toast-ink, var(--jx-toast-ink, hsl(0, 0%, 20%)))))));
99228
+ }
99229
+
99230
+ [toast=success],
99231
+ [theme] [toast=success] {
99232
+ border-left: 4px solid var(--juice-toast-success, var(--aqua-toast-success, var(--kw-toast-success, var(--cm-toast-success, var(--tide-toast-success, var(--jx-toast-success, hsl(140, 50%, 65%)))))));
99233
+ }
99234
+
99235
+ [toast=success]:not([surfaceTone]),
99236
+ [theme] [toast=success]:not([surfaceTone]) {
99237
+ background-color: var(--juice-toast-success-soft, var(--aqua-toast-success-soft, var(--kw-toast-success-soft, var(--cm-toast-success-soft, var(--tide-toast-success-soft, var(--jx-toast-success-soft, rgba(235.875, 248.625, 240.125, 0.92)))))));
99238
+ }
99239
+
99240
+ [toast=success] [toast-title],
99241
+ [theme] [toast=success] [toast-title] {
99242
+ color: var(--juice-toast-success, var(--aqua-toast-success, var(--kw-toast-success, var(--cm-toast-success, var(--tide-toast-success, var(--jx-toast-success, hsl(140, 50%, 65%)))))));
99243
+ }
99244
+
99245
+ [toast=error],
99246
+ [theme] [toast=error] {
99247
+ border-left: 4px solid var(--juice-toast-error, var(--aqua-toast-error, var(--kw-toast-error, var(--cm-toast-error, var(--tide-toast-error, var(--jx-toast-error, hsl(0, 100%, 65%)))))));
99248
+ }
99249
+
99250
+ [toast=error]:not([surfaceTone]),
99251
+ [theme] [toast=error]:not([surfaceTone]) {
99252
+ background-color: var(--juice-toast-error-soft, var(--aqua-toast-error-soft, var(--kw-toast-error-soft, var(--cm-toast-error-soft, var(--tide-toast-error-soft, var(--jx-toast-error-soft, rgba(255, 229.5, 229.5, 0.92)))))));
99253
+ }
99254
+
99255
+ [toast=error] [toast-title],
99256
+ [theme] [toast=error] [toast-title] {
99257
+ color: var(--juice-toast-error, var(--aqua-toast-error, var(--kw-toast-error, var(--cm-toast-error, var(--tide-toast-error, var(--jx-toast-error, hsl(0, 100%, 65%)))))));
99258
+ }
99259
+
99260
+ [toast=info],
99261
+ [theme] [toast=info] {
99262
+ border-left: 4px solid var(--juice-toast-info, var(--aqua-toast-info, var(--kw-toast-info, var(--cm-toast-info, var(--tide-toast-info, var(--jx-toast-info, hsl(210, 80%, 40%)))))));
99263
+ }
99264
+
99265
+ [toast=info]:not([surfaceTone]),
99266
+ [theme] [toast=info]:not([surfaceTone]) {
99267
+ background-color: var(--juice-toast-info-soft, var(--aqua-toast-info-soft, var(--kw-toast-info-soft, var(--cm-toast-info-soft, var(--tide-toast-info-soft, var(--jx-toast-info-soft, rgba(232.05, 242.25, 252.45, 0.92)))))));
99268
+ }
99269
+
99270
+ [toast=info] [toast-title],
99271
+ [theme] [toast=info] [toast-title] {
99272
+ color: var(--juice-toast-info, var(--aqua-toast-info, var(--kw-toast-info, var(--cm-toast-info, var(--tide-toast-info, var(--jx-toast-info, hsl(210, 80%, 40%)))))));
99273
+ }
99274
+
99275
+ [toast=warning],
99276
+ [theme] [toast=warning] {
99277
+ border-left: 4px solid var(--juice-toast-warning, var(--aqua-toast-warning, var(--kw-toast-warning, var(--cm-toast-warning, var(--tide-toast-warning, var(--jx-toast-warning, hsl(60, 100%, 65%)))))));
99278
+ }
99279
+
99280
+ [toast=warning]:not([surfaceTone]),
99281
+ [theme] [toast=warning]:not([surfaceTone]) {
99282
+ background-color: var(--juice-toast-warning-soft, var(--aqua-toast-warning-soft, var(--kw-toast-warning-soft, var(--cm-toast-warning-soft, var(--tide-toast-warning-soft, var(--jx-toast-warning-soft, rgba(255, 255, 229.5, 0.92)))))));
99283
+ }
99284
+
99285
+ [toast=warning] [toast-title],
99286
+ [theme] [toast=warning] [toast-title] {
99287
+ color: var(--juice-toast-warning, var(--aqua-toast-warning, var(--kw-toast-warning, var(--cm-toast-warning, var(--tide-toast-warning, var(--jx-toast-warning, hsl(60, 100%, 65%)))))));
99288
+ }
99289
+
99290
+ [toast-close],
99291
+ [theme] [toast-close] {
99292
+ position: absolute;
99293
+ top: 0.5rem;
99294
+ right: 0.5rem;
99295
+ width: 2rem;
99296
+ height: 2rem;
99297
+ border-radius: 50%;
99298
+ display: inline-flex;
99299
+ align-items: center;
99300
+ justify-content: center;
99301
+ cursor: pointer;
99302
+ border: none;
99303
+ padding: 0;
99304
+ background-color: var(--juice-toast-close, var(--aqua-toast-close, var(--kw-toast-close, var(--cm-toast-close, var(--tide-toast-close, var(--jx-toast-close, hsl(0, 0%, 100%)))))));
99305
+ background-image: none;
99306
+ color: var(--juice-toast-close-color, var(--aqua-toast-close-color, var(--kw-toast-close-color, var(--cm-toast-close-color, var(--tide-toast-close-color, var(--jx-toast-close-color, hsl(0, 0%, 20%)))))));
99307
+ box-shadow: none;
99308
+ transform: none;
99309
+ transition: background-color 0.2s, color 0.2s;
99310
+ }
99311
+
99312
+ [toast-close]:hover,
99313
+ [theme] [toast-close]:hover {
99314
+ background-color: var(--juice-toast-close-hover, var(--aqua-toast-close-hover, var(--kw-toast-close-hover, var(--cm-toast-close-hover, var(--tide-toast-close-hover, var(--jx-toast-close-hover, hsl(0, 0%, 95%)))))));
99315
+ background-image: none;
99316
+ color: var(--juice-toast-close-color, var(--aqua-toast-close-color, var(--kw-toast-close-color, var(--cm-toast-close-color, var(--tide-toast-close-color, var(--jx-toast-close-color, hsl(0, 0%, 20%)))))));
99317
+ transform: none;
99318
+ }
99319
+
99320
+ [toast-close]:focus-visible,
99321
+ [theme] [toast-close]:focus-visible {
99322
+ outline: 2px solid var(--juice-toast-focus-ring, var(--aqua-toast-focus-ring, var(--kw-toast-focus-ring, var(--cm-toast-focus-ring, var(--tide-toast-focus-ring, var(--jx-toast-focus-ring, currentColor))))));
99323
+ outline-offset: 2px;
99324
+ }
99325
+
99326
+ @media (prefers-reduced-motion: reduce) {
99327
+ [toast-close],
99328
+ [theme] [toast-close] {
99329
+ transition: none;
99330
+ }
99331
+ }
98919
99332
  /* =====================================================================
98920
99333
  Wizard — multi-step onboarding chrome
98921
99334
  Owns: shell, header, rails, step tracker, order summary, step pages,
package/dist/index.d.ts CHANGED
@@ -7,4 +7,10 @@ export { createTabs, initTabs, startTabsRuntime, stopTabsRuntime } from "./js/sr
7
7
  export type { TabsController, TabsOptions } from "./js/src/tabs/tabs-runtime.js";
8
8
  export { createModal, initModal, startModalRuntime, stopModalRuntime } from "./js/src/modal/modal-runtime.js";
9
9
  export type { ModalController, ModalOptions } from "./js/src/modal/modal-runtime.js";
10
+ export { createDrawer, initDrawer, startDrawerRuntime, stopDrawerRuntime } from "./js/src/drawer/drawer-runtime.js";
11
+ export type { DrawerController, DrawerOptions } from "./js/src/drawer/drawer-runtime.js";
12
+ export { createToast, initToast, startToastRuntime, stopToastRuntime } from "./js/src/toast/toast-runtime.js";
13
+ export type { ToastController, ToastOptions } from "./js/src/toast/toast-runtime.js";
14
+ export { createPopover, initPopover, startPopoverRuntime, stopPopoverRuntime } from "./js/src/popover/popover-runtime.js";
15
+ export type { PopoverController, PopoverOptions, PopoverPlacement } from "./js/src/popover/popover-runtime.js";
10
16
  export { tokens } from "./tokens/index.js";