@swiftwc/ui 0.0.0-dev.11 → 0.0.0-dev.110
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/generated/buses/alert-dialog.d.ts +2 -0
- package/generated/buses/alert-dialog.js +1 -0
- package/generated/buses/confirmation-dialog.d.ts +2 -0
- package/generated/buses/confirmation-dialog.js +1 -0
- package/generated/buses/index.d.ts +6 -0
- package/generated/buses/index.js +6 -0
- package/generated/buses/lifecycle-observer.d.ts +2 -0
- package/generated/buses/lifecycle-observer.js +1 -0
- package/generated/client/index.d.ts +24 -10
- package/generated/client/index.js +179 -194
- package/generated/components/alert-dialog.d.ts +11 -0
- package/generated/components/alert-dialog.js +94 -0
- package/generated/components/body-view.d.ts +8 -0
- package/generated/components/body-view.js +6 -2
- package/generated/components/bordered-button.d.ts +10 -0
- package/generated/components/bordered-button.js +36 -3
- package/generated/components/bordered-prominent-button.d.ts +10 -0
- package/generated/components/bordered-prominent-button.js +36 -3
- package/generated/components/borderless-button.d.ts +9 -1
- package/generated/components/borderless-button.js +29 -11
- package/generated/components/color-scheme.d.ts +12 -0
- package/generated/components/color-scheme.js +51 -0
- package/generated/components/confirmation-dialog.d.ts +4 -1
- package/generated/components/confirmation-dialog.js +38 -32
- package/generated/components/content-unavailable.d.ts +30 -0
- package/generated/components/content-unavailable.js +79 -0
- package/generated/components/date-picker.d.ts +21 -15
- package/generated/components/date-picker.js +126 -88
- package/generated/components/detail-placeholder.d.ts +11 -0
- package/generated/components/detail-placeholder.js +15 -0
- package/generated/components/disclosure-group.d.ts +8 -0
- package/generated/components/disclosure-group.js +18 -7
- package/generated/components/fine-tooltip.d.ts +15 -0
- package/generated/components/fine-tooltip.js +108 -0
- package/generated/components/form-view.d.ts +10 -0
- package/generated/components/form-view.js +8 -3
- package/generated/components/glass-button.d.ts +10 -0
- package/generated/components/glass-button.js +36 -3
- package/generated/components/glass-prominent-button.d.ts +10 -0
- package/generated/components/glass-prominent-button.js +36 -3
- package/generated/components/h-divider.d.ts +11 -0
- package/generated/components/h-divider.js +15 -0
- package/generated/components/h-stack.d.ts +22 -0
- package/generated/components/h-stack.js +24 -0
- package/generated/components/image-view.d.ts +18 -0
- package/generated/components/image-view.js +65 -0
- package/generated/components/index.d.ts +15 -3
- package/generated/components/index.js +15 -3
- package/generated/components/label-view.d.ts +19 -1
- package/generated/components/label-view.js +63 -62
- package/generated/components/labeled-content.d.ts +33 -0
- package/generated/components/labeled-content.js +160 -0
- package/generated/components/list-view.d.ts +14 -0
- package/generated/components/list-view.js +12 -17
- package/generated/components/menu-view.d.ts +12 -1
- package/generated/components/menu-view.js +63 -65
- package/generated/components/navigation-large-title.d.ts +11 -0
- package/generated/components/navigation-large-title.js +11 -5
- package/generated/components/navigation-split-view.d.ts +9 -1
- package/generated/components/navigation-split-view.js +10 -6
- package/generated/components/navigation-stack.d.ts +9 -1
- package/generated/components/navigation-stack.js +13 -11
- package/generated/components/navigation-title.d.ts +11 -1
- package/generated/components/navigation-title.js +58 -55
- package/generated/components/picker-view.d.ts +48 -7
- package/generated/components/picker-view.js +971 -261
- package/generated/components/plain-button.js +3 -3
- package/generated/components/progress-view.d.ts +20 -0
- package/generated/components/progress-view.js +120 -0
- package/generated/components/screen-view.js +2 -1
- package/generated/components/scroll-view-proxy.d.ts +13 -0
- package/generated/components/scroll-view-proxy.js +15 -0
- package/generated/components/scroll-view.d.ts +13 -1
- package/generated/components/scroll-view.js +140 -97
- package/generated/components/search-view.d.ts +12 -0
- package/generated/components/search-view.js +24 -0
- package/generated/components/section-view.d.ts +13 -1
- package/generated/components/section-view.js +38 -58
- package/generated/components/sheet-view.d.ts +4 -2
- package/generated/components/sheet-view.js +10 -39
- package/generated/components/sidebar-toggle.d.ts +9 -1
- package/generated/components/sidebar-toggle.js +46 -69
- package/generated/components/sidebar-view.d.ts +3 -0
- package/generated/components/sidebar-view.js +16 -9
- package/generated/components/sticky-container.d.ts +6 -1
- package/generated/components/sticky-container.js +9 -7
- package/generated/components/tab-bar.d.ts +3 -0
- package/generated/components/tab-bar.js +17 -13
- package/generated/components/tab-item.d.ts +3 -0
- package/generated/components/tab-item.js +20 -13
- package/generated/components/tab-view.d.ts +13 -4
- package/generated/components/tab-view.js +25 -89
- package/generated/components/table-view.d.ts +19 -0
- package/generated/components/table-view.js +88 -107
- package/generated/components/text-field.d.ts +19 -6
- package/generated/components/text-field.js +127 -99
- package/generated/components/text-view.d.ts +11 -0
- package/generated/components/text-view.js +16 -0
- package/generated/components/toggle-view.d.ts +43 -0
- package/generated/components/toggle-view.js +366 -0
- package/generated/components/tool-bar-item-group.d.ts +8 -0
- package/generated/components/tool-bar-item-group.js +22 -4
- package/generated/components/tool-bar-item.d.ts +12 -1
- package/generated/components/tool-bar-item.js +57 -10
- package/generated/components/tool-bar.d.ts +19 -0
- package/generated/components/tool-bar.js +48 -33
- package/generated/components/v-divider.d.ts +11 -0
- package/generated/components/v-divider.js +15 -0
- package/generated/components/v-keyboard.d.ts +8 -1
- package/generated/components/v-keyboard.js +11 -9
- package/generated/components/v-stack.d.ts +20 -0
- package/generated/components/v-stack.js +18 -2
- package/generated/css/index.css +4617 -1266
- package/generated/events/alert-dialog.d.ts +13 -0
- package/generated/events/alert-dialog.js +1 -0
- package/generated/events/confirmation-dialog.d.ts +7 -2
- package/generated/events/date-picker.d.ts +6 -1
- package/generated/events/index.d.ts +2 -0
- package/generated/events/index.js +2 -0
- package/generated/events/lifecycle-observer.d.ts +10 -2
- package/generated/events/picker-view.d.ts +22 -1
- package/generated/events/scroll-view.d.ts +10 -2
- package/generated/events/tab-view.d.ts +38 -8
- package/generated/events/text-field.d.ts +6 -1
- package/generated/events/toggle-view.d.ts +14 -0
- package/generated/events/toggle-view.js +1 -0
- package/generated/i18n/index.d.ts +19 -10
- package/generated/i18n/index.js +79 -54
- package/generated/i18n/locales/el.d.ts +16 -0
- package/generated/i18n/locales/el.js +16 -0
- package/generated/i18n/locales/en.d.ts +16 -0
- package/generated/i18n/locales/en.js +16 -0
- package/generated/i18n/locales/index.d.ts +4 -0
- package/generated/i18n/locales/index.js +4 -0
- package/generated/internal/class/css-style-observer.js +2 -2
- package/generated/internal/class/form-associated-base.d.ts +0 -4
- package/generated/internal/class/form-associated-base.js +22 -39
- package/generated/internal/class/mutation-observer-set.d.ts +9 -0
- package/generated/internal/class/mutation-observer-set.js +42 -0
- package/generated/internal/class/mutation-observer-singleton.js +18 -0
- package/generated/internal/class/navigation-view.d.ts +1 -1
- package/generated/internal/class/navigation-view.js +36 -43
- package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
- package/generated/internal/decorators/adaptive-slot.js +47 -0
- package/generated/internal/decorators/custom-element.d.ts +1 -1
- package/generated/internal/decorators/custom-element.js +2 -1
- package/generated/internal/decorators/index.d.ts +6 -0
- package/generated/internal/decorators/index.js +6 -0
- package/generated/internal/decorators/microtask-on-connected.d.ts +39 -0
- package/generated/internal/decorators/microtask-on-connected.js +67 -0
- package/generated/internal/flags.d.ts +4 -0
- package/generated/internal/flags.js +1 -0
- package/generated/internal/privateNamespace.d.ts +10 -0
- package/generated/internal/privateNamespace.js +159 -1
- package/generated/internal/utils/$.d.ts +9 -0
- package/generated/internal/utils/$.js +11 -0
- package/generated/internal/utils/compare-big-decimals.js +7 -17
- package/generated/internal/utils/debug.d.ts +1 -0
- package/generated/internal/utils/debug.js +4 -0
- package/generated/internal/utils/define-translations.d.ts +1 -0
- package/generated/internal/utils/define-translations.js +3 -0
- package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
- package/generated/internal/utils/ensure-placeholder.js +41 -0
- package/generated/internal/utils/index.d.ts +39 -2
- package/generated/internal/utils/index.js +39 -3
- package/generated/internal/utils/is-inside.d.ts +1 -0
- package/generated/internal/utils/is-inside.js +4 -0
- package/generated/internal/utils/kebab-case.js +6 -9
- package/generated/internal/utils/list-active.js +67 -12
- package/generated/internal/utils/touch-glass.js +5 -5
- package/generated/internal/vendor/morphdom.d.ts +6 -0
- package/generated/internal/vendor/morphdom.js +720 -0
- package/generated/morphdom/index.d.ts +8 -0
- package/generated/morphdom/index.js +8 -0
- package/generated/morphdom/morph.d.ts +4 -0
- package/generated/morphdom/morph.js +10 -0
- package/generated/morphdom/query-morph.d.ts +5 -0
- package/generated/morphdom/query-morph.js +12 -0
- package/generated/morphdom/render-to-string.d.ts +12 -0
- package/generated/morphdom/render-to-string.js +48 -0
- package/generated/morphdom/unsafe-html.d.ts +2 -0
- package/generated/morphdom/unsafe-html.js +4 -0
- package/generated/namespace-browser/base.d.ts +12 -3
- package/generated/namespace-browser/base.js +41 -18
- package/generated/namespace-browser/event.d.ts +10 -0
- package/generated/namespace-browser/event.js +1 -0
- package/generated/snapshot/index.d.ts +3 -1
- package/generated/snapshot/index.js +23 -2
- package/generated/tpl/html.d.ts +5 -0
- package/generated/tpl/html.js +7 -0
- package/generated/tpl/index.d.ts +6 -0
- package/generated/tpl/index.js +6 -0
- package/generated/tpl/is-template-result.d.ts +3 -0
- package/generated/tpl/is-template-result.js +1 -0
- package/generated/tpl/render.d.ts +2 -0
- package/generated/tpl/render.js +132 -0
- package/package.json +32 -7
- package/scss/_components.scss +15 -0
- package/scss/_functions.scss +10 -0
- package/scss/_maps.scss +293 -0
- package/scss/_mixins.scss +4 -0
- package/scss/_transitions.scss +6 -1
- package/scss/_utils.scss +2 -0
- package/scss/_vars.scss +9 -115
- package/scss/base/_layout.scss +17 -7
- package/scss/base/_reboot.scss +34 -1
- package/scss/base/_root.scss +143 -124
- package/scss/colors/_index.scss +328 -88
- package/scss/components/_alert-dialog.scss +111 -0
- package/scss/components/_bordered-button.scss +37 -0
- package/scss/components/_bordered-prominent-button.scss +46 -0
- package/scss/components/_borderless-button.scss +26 -0
- package/scss/components/_confirmation-dialog.scss +41 -49
- package/scss/components/_content-unavailable.scss +57 -0
- package/scss/components/_date-picker.scss +15 -15
- package/scss/components/_detail-placeholder.scss +1 -3
- package/scss/components/_disclosure-group.scss +85 -34
- package/scss/components/_fine-tooltip.scss +84 -0
- package/scss/components/_form-view.scss +63 -24
- package/scss/components/_glass-button.scss +37 -0
- package/scss/components/_glass-prominent-button.scss +47 -0
- package/scss/components/_group-box.scss +27 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +6 -17
- package/scss/components/_image-view.scss +20 -0
- package/scss/components/_index.scss +69 -36
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +105 -120
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +67 -1
- package/scss/components/_list-view.scss +70 -29
- package/scss/components/_menu-view.scss +96 -61
- package/scss/components/_navigation-large-title.scss +23 -0
- package/scss/components/_navigation-split-view.scss +3 -3
- package/scss/components/_navigation-title.scss +1 -1
- package/scss/components/_picker-view.scss +270 -63
- package/scss/components/_plain-button.scss +8 -0
- package/scss/components/_progress-view.scss +98 -0
- package/scss/components/_scroll-view-proxy.scss +24 -22
- package/scss/components/_scroll-view-toolbars.scss +8 -2
- package/scss/components/_scroll-view.scss +16 -0
- package/scss/components/_search-view.scss +23 -0
- package/scss/components/_section-view.scss +23 -22
- package/scss/components/_sheet-view.scss +16 -6
- package/scss/components/_sidebar-toggle.scss +1 -4
- package/scss/components/_sticky-container.scss +1 -1
- package/scss/components/_tab-bar.scss +17 -3
- package/scss/components/_tab-view.scss +12 -2
- package/scss/components/_table-column.scss +4 -2
- package/scss/components/_table-row.scss +71 -3
- package/scss/components/_table-view.scss +27 -18
- package/scss/components/_text-field.scss +37 -17
- package/scss/components/_text-view.scss +57 -0
- package/scss/components/_toggle-view.scss +171 -0
- package/scss/components/_tool-bar-item.scss +34 -82
- package/scss/components/_tool-bar.scss +77 -57
- package/scss/components/_v-stack.scss +8 -2
- package/scss/final/_touch-glass.scss +31 -0
- package/scss/mixins/_button.scss +44 -0
- package/scss/mixins/_color.scss +16 -0
- package/scss/mixins/_dialog.scss +1 -0
- package/scss/mixins/_index.scss +73 -5
- package/scss/placeholders/_buttons.scss +46 -11
- package/scss/placeholders/_lists.scss +159 -126
- package/scss/transitions/_alert-dialog.scss +18 -0
- package/scss/transitions/_confirmation-dialog.scss +8 -0
- package/scss/transitions/_fine-tooltip.scss +21 -0
- package/scss/transitions/_menu-view.scss +17 -15
- package/scss/transitions/_progress-view.scss +23 -0
- package/scss/transitions/_sheet-view.scss +30 -0
- package/scss/transitions/_tab-bar.scss +6 -5
- package/scss/utils/_background.scss +52 -0
- package/scss/utils/_frame.scss +59 -40
- package/scss/utils/_index.scss +45 -56
- package/scss/utils/_scroll-view.scss +1 -1
- package/scss/utils/_spacing.scss +1 -1
- package/scss/utils/_stacks.scss +34 -164
- package/web-components.css-data/en.json +28 -0
- package/web-components.html-data/en.json +2456 -166
- package/generated/confirmation-dialog/index.d.ts +0 -1
- package/generated/confirmation-dialog/index.js +0 -1
- package/generated/internal/utils/cash/index.d.ts +0 -22
- package/generated/internal/utils/cash/index.js +0 -23
- package/generated/lifecycle-observer/index.d.ts +0 -1
- package/generated/lifecycle-observer/index.js +0 -1
- package/scss/transitions/_dialog.scss +0 -28
- /package/generated/internal/utils/{cash/ancestors.d.ts → ancestors.d.ts} +0 -0
- /package/generated/internal/utils/{cash/ancestors.js → ancestors.js} +0 -0
- /package/generated/internal/utils/{cash/next-all.d.ts → next-all.d.ts} +0 -0
- /package/generated/internal/utils/{cash/next-all.js → next-all.js} +0 -0
- /package/generated/internal/utils/{cash/next.d.ts → next.d.ts} +0 -0
- /package/generated/internal/utils/{cash/next.js → next.js} +0 -0
- /package/generated/internal/utils/{cash/prev-all.d.ts → prev-all.d.ts} +0 -0
- /package/generated/internal/utils/{cash/prev-all.js → prev-all.js} +0 -0
- /package/generated/internal/utils/{cash/prev.d.ts → prev.d.ts} +0 -0
- /package/generated/internal/utils/{cash/prev.js → prev.js} +0 -0
- /package/generated/internal/utils/{cash/prop.d.ts → prop.d.ts} +0 -0
- /package/generated/internal/utils/{cash/prop.js → prop.js} +0 -0
- /package/generated/internal/utils/{cash/siblings.d.ts → siblings.d.ts} +0 -0
- /package/generated/internal/utils/{cash/siblings.js → siblings.js} +0 -0
package/scss/colors/_index.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use '../vars';
|
|
2
|
-
@use '../mixins';
|
|
3
1
|
@use 'sass:math';
|
|
4
2
|
@use 'sass:map';
|
|
5
3
|
@use 'sass:list';
|
|
6
4
|
@use 'sass:string';
|
|
5
|
+
@use '../vars';
|
|
6
|
+
@use '../mixins';
|
|
7
7
|
|
|
8
8
|
$color-tokens: (
|
|
9
9
|
// SECTION: grays
|
|
@@ -195,8 +195,8 @@ $color-tokens: (
|
|
|
195
195
|
),
|
|
196
196
|
media: (
|
|
197
197
|
base: (
|
|
198
|
-
light: oklch(0.
|
|
199
|
-
dark: oklch(0.
|
|
198
|
+
light: oklch(0.9399 0.0298 245.27),
|
|
199
|
+
dark: oklch(0.1602 0.0312 241.89),
|
|
200
200
|
),
|
|
201
201
|
),
|
|
202
202
|
),
|
|
@@ -250,8 +250,173 @@ $color-tokens: (
|
|
|
250
250
|
),
|
|
251
251
|
media: (
|
|
252
252
|
base: (
|
|
253
|
-
light: oklch(0.
|
|
254
|
-
dark: oklch(0.
|
|
253
|
+
light: oklch(0.9451 0.0312 23.18),
|
|
254
|
+
dark: oklch(0.1692 0.0381 24.05),
|
|
255
|
+
),
|
|
256
|
+
),
|
|
257
|
+
),
|
|
258
|
+
green: (
|
|
259
|
+
props: (
|
|
260
|
+
inherits: true,
|
|
261
|
+
),
|
|
262
|
+
media: (
|
|
263
|
+
base: (
|
|
264
|
+
light: oklch(0.7303 0.1944 147.44),
|
|
265
|
+
dark: oklch(0.7556 0.2082 146.98),
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
),
|
|
269
|
+
green2: (
|
|
270
|
+
props: (
|
|
271
|
+
inherits: true,
|
|
272
|
+
),
|
|
273
|
+
media: (
|
|
274
|
+
base: (
|
|
275
|
+
light: oklch(0.8224 0.1298 162.01),
|
|
276
|
+
dark: oklch(0.4879 0.1248 152),
|
|
277
|
+
),
|
|
278
|
+
),
|
|
279
|
+
),
|
|
280
|
+
green3: (
|
|
281
|
+
props: (
|
|
282
|
+
inherits: true,
|
|
283
|
+
),
|
|
284
|
+
media: (
|
|
285
|
+
base: (
|
|
286
|
+
light: oklch(0.906 0.0681 165.21),
|
|
287
|
+
dark: oklch(0.3559 0.0789 157.3),
|
|
288
|
+
),
|
|
289
|
+
),
|
|
290
|
+
),
|
|
291
|
+
green4: (
|
|
292
|
+
props: (
|
|
293
|
+
inherits: true,
|
|
294
|
+
),
|
|
295
|
+
media: (
|
|
296
|
+
base: (
|
|
297
|
+
light: oklch(0.9323 0.0504 166.1),
|
|
298
|
+
dark: oklch(0.3156 0.0607 160.27),
|
|
299
|
+
),
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
green5: (
|
|
303
|
+
props: (
|
|
304
|
+
inherits: true,
|
|
305
|
+
),
|
|
306
|
+
media: (
|
|
307
|
+
base: (
|
|
308
|
+
light: oklch(0.9558 0.0353 166.1),
|
|
309
|
+
dark: oklch(0.2632 0.0425 160.27),
|
|
310
|
+
),
|
|
311
|
+
),
|
|
312
|
+
),
|
|
313
|
+
orange: (
|
|
314
|
+
props: (
|
|
315
|
+
inherits: true,
|
|
316
|
+
),
|
|
317
|
+
media: (
|
|
318
|
+
base: (
|
|
319
|
+
light: oklch(0.7533 0.172 55.72),
|
|
320
|
+
dark: oklch(0.7619 0.167 57.05),
|
|
321
|
+
),
|
|
322
|
+
),
|
|
323
|
+
),
|
|
324
|
+
orange2: (
|
|
325
|
+
props: (
|
|
326
|
+
inherits: true,
|
|
327
|
+
),
|
|
328
|
+
media: (
|
|
329
|
+
base: (
|
|
330
|
+
light: oklch(0.8548 0.111 68.86),
|
|
331
|
+
dark: oklch(0.4468 0.0914 61.4),
|
|
332
|
+
),
|
|
333
|
+
),
|
|
334
|
+
),
|
|
335
|
+
orange3: (
|
|
336
|
+
props: (
|
|
337
|
+
inherits: true,
|
|
338
|
+
),
|
|
339
|
+
media: (
|
|
340
|
+
base: (
|
|
341
|
+
light: oklch(0.9268 0.0611 75.74),
|
|
342
|
+
dark: oklch(0.2823 0.051 67.31),
|
|
343
|
+
),
|
|
344
|
+
),
|
|
345
|
+
),
|
|
346
|
+
orange4: (
|
|
347
|
+
props: (
|
|
348
|
+
inherits: true,
|
|
349
|
+
),
|
|
350
|
+
media: (
|
|
351
|
+
base: (
|
|
352
|
+
light: oklch(0.9443 0.045 74.78),
|
|
353
|
+
dark: oklch(0.2389 0.04 75.03),
|
|
354
|
+
),
|
|
355
|
+
),
|
|
356
|
+
),
|
|
357
|
+
orange5: (
|
|
358
|
+
props: (
|
|
359
|
+
inherits: true,
|
|
360
|
+
),
|
|
361
|
+
media: (
|
|
362
|
+
base: (
|
|
363
|
+
light: oklch(0.9651 0.0315 74.78),
|
|
364
|
+
dark: oklch(0.1983 0.028 75.03),
|
|
365
|
+
),
|
|
366
|
+
),
|
|
367
|
+
),
|
|
368
|
+
purple: (
|
|
369
|
+
props: (
|
|
370
|
+
inherits: true,
|
|
371
|
+
),
|
|
372
|
+
media: (
|
|
373
|
+
base: (
|
|
374
|
+
light: oklch(0.6167 0.2607 326),
|
|
375
|
+
dark: oklch(0.6586 0.2795 325.94),
|
|
376
|
+
),
|
|
377
|
+
),
|
|
378
|
+
),
|
|
379
|
+
purple2: (
|
|
380
|
+
props: (
|
|
381
|
+
inherits: true,
|
|
382
|
+
),
|
|
383
|
+
media: (
|
|
384
|
+
base: (
|
|
385
|
+
light: oklch(0.7807 0.1464 325.64),
|
|
386
|
+
dark: oklch(0.443 0.1667 326.12),
|
|
387
|
+
),
|
|
388
|
+
),
|
|
389
|
+
),
|
|
390
|
+
purple3: (
|
|
391
|
+
props: (
|
|
392
|
+
inherits: true,
|
|
393
|
+
),
|
|
394
|
+
media: (
|
|
395
|
+
base: (
|
|
396
|
+
light: oklch(0.8873 0.0728 324.7),
|
|
397
|
+
dark: oklch(0.3288 0.0959 325.84),
|
|
398
|
+
),
|
|
399
|
+
),
|
|
400
|
+
),
|
|
401
|
+
purple4: (
|
|
402
|
+
props: (
|
|
403
|
+
inherits: true,
|
|
404
|
+
),
|
|
405
|
+
media: (
|
|
406
|
+
base: (
|
|
407
|
+
light: oklch(0.9184 0.0518 323.99),
|
|
408
|
+
dark: oklch(0.2981 0.0724 325.02),
|
|
409
|
+
),
|
|
410
|
+
),
|
|
411
|
+
),
|
|
412
|
+
purple5: (
|
|
413
|
+
props: (
|
|
414
|
+
inherits: true,
|
|
415
|
+
),
|
|
416
|
+
media: (
|
|
417
|
+
base: (
|
|
418
|
+
light: oklch(0.9455 0.0358 323.99),
|
|
419
|
+
dark: oklch(0.2454 0.0522 323.99),
|
|
255
420
|
),
|
|
256
421
|
),
|
|
257
422
|
),
|
|
@@ -361,6 +526,17 @@ $color-tokens: (
|
|
|
361
526
|
),
|
|
362
527
|
),
|
|
363
528
|
),
|
|
529
|
+
quaternaryGroupedBackground: (
|
|
530
|
+
props: (
|
|
531
|
+
inherits: true,
|
|
532
|
+
),
|
|
533
|
+
media: (
|
|
534
|
+
base: (
|
|
535
|
+
light: oklch(0.9761 0 0),
|
|
536
|
+
dark: oklch(0.2751 0.0039 128.62),
|
|
537
|
+
),
|
|
538
|
+
),
|
|
539
|
+
),
|
|
364
540
|
// SECTION: semantic colors
|
|
365
541
|
separator: (
|
|
366
542
|
props: (
|
|
@@ -417,6 +593,12 @@ $colors: map.merge(
|
|
|
417
593
|
inherits: true;
|
|
418
594
|
}
|
|
419
595
|
|
|
596
|
+
@property --clear {
|
|
597
|
+
syntax: '<color>';
|
|
598
|
+
initial-value: oklch(0 0 0 / 0%); // ✅
|
|
599
|
+
inherits: true;
|
|
600
|
+
}
|
|
601
|
+
|
|
420
602
|
@layer #{vars.$colors-layer} {
|
|
421
603
|
:root {
|
|
422
604
|
// --background: light-dark(oklch(1 0 0), oklch(0 0 0)); // ✅
|
|
@@ -439,28 +621,28 @@ $colors: map.merge(
|
|
|
439
621
|
// --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
440
622
|
// }
|
|
441
623
|
|
|
442
|
-
:
|
|
624
|
+
// NOTE: NO color diffs for dialogs/popups
|
|
625
|
+
/* :where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
|
|
443
626
|
// modify background/secondarybg/tertiarybg etc for ELEVATED STYLES!!
|
|
444
627
|
// ANCHOR: level 1
|
|
445
628
|
--face: var(--background); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
446
629
|
// --face2: var(--secondaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
447
630
|
// --face3: var(--tertiaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
448
631
|
|
|
449
|
-
|
|
632
|
+
// FIXME: feat-sheet 1/3
|
|
633
|
+
--background: var(--secondaryBackground); //light-dark(var(--secondary-bg), var(--secondary-bg-dark));
|
|
450
634
|
// --face: light-dark(var(--secondary-bg), var(--secondary-bg-dark));
|
|
451
635
|
|
|
452
636
|
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
453
|
-
}
|
|
637
|
+
} */
|
|
454
638
|
|
|
455
639
|
:where(navigation-split-view > [is='sidebar-view']) {
|
|
456
640
|
// --canvas: light-dark(oklch(var(--primary-bg)), var(--primary-bg-dark));
|
|
457
641
|
// --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
458
642
|
|
|
459
643
|
@include mixins.if-2col-split-view-fits {
|
|
460
|
-
--face: light-dark(
|
|
461
|
-
|
|
462
|
-
var(--liquid-glass-bg-dark)
|
|
463
|
-
); //light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
644
|
+
--face: light-dark(var(--liquid-glass-bg), var(--liquid-glass-bg-dark));
|
|
645
|
+
//light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
464
646
|
|
|
465
647
|
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
466
648
|
}
|
|
@@ -468,10 +650,8 @@ $colors: map.merge(
|
|
|
468
650
|
|
|
469
651
|
tab-view > [is='sidebar-view'] {
|
|
470
652
|
:where(&) {
|
|
471
|
-
--face: light-dark(
|
|
472
|
-
|
|
473
|
-
var(--liquid-glass-bg-dark)
|
|
474
|
-
); //light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
653
|
+
--face: light-dark(var(--liquid-glass-bg), var(--liquid-glass-bg-dark));
|
|
654
|
+
//light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
475
655
|
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
476
656
|
}
|
|
477
657
|
|
|
@@ -487,38 +667,65 @@ $colors: map.merge(
|
|
|
487
667
|
}
|
|
488
668
|
|
|
489
669
|
:where([is='tab-bar']) {
|
|
490
|
-
--toolbaritemtext: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
670
|
+
--toolbaritemtext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
671
|
+
--toolbaritemhighlighttext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
672
|
+
--toolbaritemactivetext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
491
673
|
}
|
|
492
674
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
675
|
+
tool-bar-item,
|
|
676
|
+
tool-bar-item-group {
|
|
677
|
+
// navigation-split-view sidebar-toggle { // NOTE: removed since all s-toggles alreay have a toolbaritem inside
|
|
678
|
+
:where(&) {
|
|
679
|
+
//, list-view) {
|
|
680
|
+
//, [is='form-view'] BREAKS sidebar
|
|
681
|
+
--toolbaritemface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
682
|
+
--toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
683
|
+
--toolbaritemactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
684
|
+
// --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark)); //light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
685
|
+
|
|
686
|
+
// @media (pointer: fine) {
|
|
687
|
+
// --toolbaritemface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
688
|
+
// --toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
689
|
+
// --toolbaritemactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
690
|
+
// // --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
691
|
+
// }
|
|
692
|
+
}
|
|
507
693
|
}
|
|
508
694
|
|
|
509
|
-
[
|
|
695
|
+
tool-bar-item[tint]:not(tool-bar-item-group tool-bar-item),
|
|
696
|
+
tool-bar-item-group[tint],
|
|
697
|
+
tool-bar-item-group[tint] > tool-bar-item:not([tint]) {
|
|
510
698
|
:where(&) {
|
|
511
|
-
--
|
|
512
|
-
--
|
|
699
|
+
// --toolbaritemtext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
700
|
+
// --toolbaritemhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
701
|
+
// --toolbaritemactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
702
|
+
|
|
703
|
+
@include mixins.wire-tinted-glass(toolbaritem);
|
|
704
|
+
|
|
705
|
+
> button {
|
|
706
|
+
@include mixins.takeover-color-vars(toolbaritem);
|
|
707
|
+
// --secondary: var(--btntext);
|
|
708
|
+
// --blue: var(--btntext);
|
|
709
|
+
|
|
710
|
+
// --accentColorEffective: var(--btntext);
|
|
711
|
+
// --accentColor: var(--btntext);
|
|
712
|
+
}
|
|
513
713
|
}
|
|
514
714
|
}
|
|
515
715
|
|
|
516
|
-
|
|
716
|
+
// [is='tab-bar'] [is='tab-item'] {
|
|
717
|
+
// :where(&) {
|
|
718
|
+
// --toolbaritemhighlighttext: yellow;
|
|
719
|
+
// --toolbaritemactivetext: chocolate;
|
|
720
|
+
// }
|
|
721
|
+
// }
|
|
722
|
+
|
|
723
|
+
sidebar-toggle {
|
|
517
724
|
// tool-bar-item,
|
|
518
725
|
// [is='tab-item'],
|
|
519
726
|
// list-view > button,
|
|
520
727
|
// this is temp for toolbar look aboove tables
|
|
521
|
-
menu-view {
|
|
728
|
+
// menu-view {
|
|
522
729
|
// [is='disclosure-group'] {
|
|
523
730
|
:where(&) {
|
|
524
731
|
--toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
@@ -528,15 +735,46 @@ $colors: map.merge(
|
|
|
528
735
|
|
|
529
736
|
menu-view {
|
|
530
737
|
:where(&) {
|
|
531
|
-
--
|
|
532
|
-
|
|
738
|
+
--menuitemhighlightface: light-dark(var(--clear), var(--clear));
|
|
739
|
+
|
|
740
|
+
--menuitemactiveface: light-dark(oklch(0 0 0 / 20%), oklch(1 0 0 / 20%));
|
|
741
|
+
|
|
742
|
+
@media (pointer: fine) {
|
|
743
|
+
--menuitemhighlightface: light-dark(var(--accentColor), var(--accentColor));
|
|
744
|
+
|
|
745
|
+
--menuitemhighlighttext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
746
|
+
|
|
747
|
+
--menuitemactivetext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
748
|
+
|
|
749
|
+
--menuitemactiveface: light-dark(
|
|
750
|
+
oklch(from var(--accentColor) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h),
|
|
751
|
+
oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.2), c) h)
|
|
752
|
+
); //color-mix(in oklch, black 10%, var(--accentColor)); //color-mix(in oklch, white 10%, var(--accentColor));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
--menusummaryhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
756
|
+
--menusummaryactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
757
|
+
}
|
|
533
758
|
|
|
534
|
-
|
|
535
|
-
|
|
759
|
+
tool-bar-item > picker-view > &,
|
|
760
|
+
tool-bar-item > & {
|
|
761
|
+
:where(&) {
|
|
762
|
+
--menusummaryface: var(--toolbaritemface);
|
|
763
|
+
--menusummaryhighlightface: var(--toolbaritemhighlightface);
|
|
764
|
+
--menusummaryactiveface: var(--toolbaritemactiveface);
|
|
765
|
+
--menusummarytext: var(--toolbaritemtext);
|
|
766
|
+
--menusummaryhighlighttext: var(--toolbaritemhighlighttext);
|
|
767
|
+
--menusummaryactivetext: var(--toolbaritemactivetext);
|
|
768
|
+
}
|
|
536
769
|
}
|
|
770
|
+
|
|
771
|
+
// :where(&[tint]) {
|
|
772
|
+
// @include mixins.wire-tinted-menu(menuitemface, menuitemhighlightface, menuitemactiveface);
|
|
773
|
+
// @include mixins.wire-menu-colors;
|
|
774
|
+
// }
|
|
537
775
|
}
|
|
538
776
|
|
|
539
|
-
:where([is='confirmation-dialog']) {
|
|
777
|
+
:where([is='confirmation-dialog'], [is='alert-dialog']) {
|
|
540
778
|
--dialogbtnface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
541
779
|
--dialogbtnhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
542
780
|
--dialogbtnactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
@@ -552,36 +790,43 @@ $colors: map.merge(
|
|
|
552
790
|
|
|
553
791
|
:where([is='borderless-button']) {
|
|
554
792
|
--btntext: var(--accentColor);
|
|
555
|
-
--btnhighlighttext: light-dark(
|
|
556
|
-
|
|
557
|
-
oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h)
|
|
558
|
-
);
|
|
559
|
-
--btnactivetext: light-dark(
|
|
560
|
-
oklch(from var(--accentColor) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h),
|
|
561
|
-
oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h)
|
|
562
|
-
);
|
|
793
|
+
--btnhighlighttext: light-dark(oklch(from var(--accentColor) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h));
|
|
794
|
+
--btnactivetext: light-dark(oklch(from var(--accentColor) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h));
|
|
563
795
|
}
|
|
564
796
|
|
|
797
|
+
/**
|
|
798
|
+
* NOTE: --accentColorEffective does NOT exist, it is NOT set anywhere initially!
|
|
799
|
+
* NOTE: Some controls use it to override the initial style WHEN/IF ...Effective is set by someone above.
|
|
800
|
+
*/
|
|
565
801
|
:where([is='bordered-button']) {
|
|
566
|
-
--btntext: var(--
|
|
802
|
+
--btntext: var(--accentColorEffective, var(--accentColor));
|
|
567
803
|
--btnhighlighttext: light-dark(
|
|
568
|
-
oklch(from var(--
|
|
569
|
-
oklch(from var(--
|
|
804
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h),
|
|
805
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h)
|
|
570
806
|
);
|
|
571
807
|
--btnactivetext: light-dark(
|
|
572
|
-
oklch(from var(--
|
|
573
|
-
oklch(from var(--
|
|
808
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h),
|
|
809
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h)
|
|
574
810
|
);
|
|
575
811
|
|
|
576
|
-
--btnface: light-dark(var(--
|
|
812
|
+
--btnface: light-dark(var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)), var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)));
|
|
577
813
|
--btnhighlightface: light-dark(
|
|
578
|
-
oklch(from var(--
|
|
579
|
-
oklch(from var(--
|
|
814
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.95), 0) min(calc(c * 1.8), c) h),
|
|
815
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.2), 1) min(calc(c * 1.8), c) h)
|
|
580
816
|
);
|
|
581
817
|
--btnactiveface: light-dark(
|
|
582
|
-
oklch(from var(--
|
|
583
|
-
oklch(from var(--
|
|
818
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.9), 0) min(calc(c * 1.8), c) h),
|
|
819
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.3), 1) min(calc(c * 1.8), c) h)
|
|
584
820
|
);
|
|
821
|
+
// --btnface: light-dark(var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)), var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)));
|
|
822
|
+
// --btnhighlightface: light-dark(
|
|
823
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.95), 0) min(calc(c * 1.8), c) h),
|
|
824
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.2), 1) min(calc(c * 1.8), c) h)
|
|
825
|
+
// );
|
|
826
|
+
// --btnactiveface: light-dark(
|
|
827
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.9), 0) min(calc(c * 1.8), c) h),
|
|
828
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.3), 1) min(calc(c * 1.8), c) h)
|
|
829
|
+
// );
|
|
585
830
|
}
|
|
586
831
|
|
|
587
832
|
:where([is='bordered-prominent-button']) {
|
|
@@ -590,46 +835,41 @@ $colors: map.merge(
|
|
|
590
835
|
--btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
591
836
|
|
|
592
837
|
--btnface: var(--accentColor); //light-dark(var(--accentColor), var(--accentColor));
|
|
593
|
-
--btnhighlightface: light-dark(
|
|
594
|
-
|
|
595
|
-
oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.4), c) h)
|
|
596
|
-
);
|
|
597
|
-
--btnactiveface: light-dark(
|
|
598
|
-
oklch(from var(--accentColor) max(calc(l * 0.8), 0) min(calc(c * 1.4), c) h),
|
|
599
|
-
oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h)
|
|
600
|
-
);
|
|
838
|
+
--btnhighlightface: light-dark(oklch(from var(--accentColor) max(calc(l * 0.9), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.4), c) h));
|
|
839
|
+
--btnactiveface: light-dark(oklch(from var(--accentColor) max(calc(l * 0.8), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h));
|
|
601
840
|
}
|
|
602
841
|
|
|
603
842
|
:where([is='glass-button']) {
|
|
604
|
-
--btntext: var(--
|
|
843
|
+
--btntext: var(--accentColorEffective, var(--accentColor));
|
|
605
844
|
--btnhighlighttext: light-dark(
|
|
606
|
-
oklch(from var(--
|
|
607
|
-
oklch(from var(--
|
|
845
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h),
|
|
846
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h)
|
|
608
847
|
);
|
|
609
848
|
--btnactivetext: light-dark(
|
|
610
|
-
oklch(from var(--
|
|
611
|
-
oklch(from var(--
|
|
849
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h),
|
|
850
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h)
|
|
612
851
|
);
|
|
613
852
|
|
|
614
|
-
--btnface: light-dark(var(--glass-
|
|
615
|
-
--btnhighlightface: light-dark(var(--glass-
|
|
616
|
-
--btnactiveface: light-dark(var(--glass-
|
|
853
|
+
--btnface: light-dark(var(--clear-glass-bg), var(--clear-glass-bg-dark));
|
|
854
|
+
--btnhighlightface: light-dark(var(--clear-glass-focus-bg), var(--clear-glass-focus-bg-dark));
|
|
855
|
+
--btnactiveface: light-dark(var(--clear-glass-active-bg), var(--clear-glass-active-bg-dark));
|
|
617
856
|
}
|
|
618
857
|
|
|
619
858
|
:where([is='glass-prominent-button']) {
|
|
620
|
-
--btntext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
621
|
-
--btnhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
622
|
-
--btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
859
|
+
// --btntext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
860
|
+
// --btnhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
861
|
+
// --btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
623
862
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
)
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
863
|
+
@include mixins.wire-tinted-glass(btn);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
toggle-view {
|
|
867
|
+
:where(&) {
|
|
868
|
+
--toggle--track-off-bg: light-dark(var(--toggle-track-off-bg), var(--toggle-track-off-bg-dark));
|
|
869
|
+
--toggle--track-on-bg: light-dark(var(--toggle-track-on-bg), var(--toggle-track-on-bg-dark));
|
|
870
|
+
|
|
871
|
+
--toggle--dot-bg: light-dark(var(--toggle-dot-bg), var(--toggle-dot-bg-dark));
|
|
872
|
+
}
|
|
633
873
|
}
|
|
634
874
|
|
|
635
875
|
/* list-view {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$components-layer} {
|
|
5
|
+
[is='alert-dialog'] {
|
|
6
|
+
:where(&) {
|
|
7
|
+
@include mixins.reset-dialog;
|
|
8
|
+
|
|
9
|
+
@include mixins.make-backdrop-transitionable;
|
|
10
|
+
|
|
11
|
+
color: var(--text,);
|
|
12
|
+
|
|
13
|
+
touch-action: none;
|
|
14
|
+
|
|
15
|
+
position: fixed;
|
|
16
|
+
|
|
17
|
+
inline-size: fit-content;
|
|
18
|
+
block-size: fit-content;
|
|
19
|
+
height: auto; // safari
|
|
20
|
+
max-inline-size: min(20rem, 80vw);
|
|
21
|
+
max-block-size: 80vh;
|
|
22
|
+
|
|
23
|
+
margin-block: auto;
|
|
24
|
+
margin-inline: auto;
|
|
25
|
+
|
|
26
|
+
transform: var(--alert--dialog-scale,);
|
|
27
|
+
opacity: var(--alert--dialog-opacity,);
|
|
28
|
+
|
|
29
|
+
place-self: center;
|
|
30
|
+
|
|
31
|
+
overflow: clip;
|
|
32
|
+
border-radius: 0.9rem;
|
|
33
|
+
|
|
34
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter,);
|
|
35
|
+
box-shadow: var(--menu-popover-box-shadow,); //0 0 10px 10px black;
|
|
36
|
+
|
|
37
|
+
padding-block: 1rem;
|
|
38
|
+
padding-inline: 1rem;
|
|
39
|
+
gap: 1rem;
|
|
40
|
+
|
|
41
|
+
// finally
|
|
42
|
+
--alert--dialog-scale: scale(1.2);
|
|
43
|
+
--alert--dialog-opacity: 0.8;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[open] {
|
|
47
|
+
:where(&) {
|
|
48
|
+
@include mixins.add-dialog-backdrop-transition-frames(var(--view-transition-dialog-onscreen-backdrop-bg));
|
|
49
|
+
|
|
50
|
+
--alert--dialog-scale: scale(1);
|
|
51
|
+
--alert--dialog-opacity: 1;
|
|
52
|
+
|
|
53
|
+
@starting-style {
|
|
54
|
+
--alert--dialog-scale: scale(1.2);
|
|
55
|
+
--alert--dialog-opacity: 0.8;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[closing] {
|
|
61
|
+
:where(&) {
|
|
62
|
+
@include mixins.add-dialog-backdrop-transition-frames(var(--clear));
|
|
63
|
+
|
|
64
|
+
--alert--dialog-scale: scale(0.98);
|
|
65
|
+
--alert--dialog-opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// SECTION: componentize
|
|
70
|
+
// > button {
|
|
71
|
+
// :where(&) {
|
|
72
|
+
// @include mixins.componentize(dialogbtn);
|
|
73
|
+
// }
|
|
74
|
+
// }
|
|
75
|
+
|
|
76
|
+
// :where(&) {
|
|
77
|
+
// --dialogbtnpadistart: 0.6rem;
|
|
78
|
+
// --dialogbtnpadiend: 0.6rem;
|
|
79
|
+
// --dialogbtnpadbstart: 0.6rem;
|
|
80
|
+
// --dialogbtnpadbend: 0.6rem;
|
|
81
|
+
// --dialogbtnradiustl: 1rem;
|
|
82
|
+
// --dialogbtnradiustr: 1rem;
|
|
83
|
+
// --dialogbtnradiusbl: 1rem;
|
|
84
|
+
// --dialogbtnradiusbr: 1rem;
|
|
85
|
+
// }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// @layer #{vars.$colors-layer} {
|
|
90
|
+
// // SECTION: componentize
|
|
91
|
+
// [is='alert-dialog'] {
|
|
92
|
+
// > button {
|
|
93
|
+
// @include mixins.add-focus-visible-state {
|
|
94
|
+
// --dialogbtnface: var(--dialogbtnhighlightface,);
|
|
95
|
+
// --dialogbtntext: var(--dialogbtnhighlighttext,);
|
|
96
|
+
// }
|
|
97
|
+
// }
|
|
98
|
+
// }
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
// @layer #{vars.$ui-layer} {
|
|
102
|
+
// // SECTION: componentize
|
|
103
|
+
// [is='alert-dialog'] {
|
|
104
|
+
// > button {
|
|
105
|
+
// @include mixins.add-active-state {
|
|
106
|
+
// --dialogbtnface: var(--dialogbtnactiveface,);
|
|
107
|
+
// --dialogbtntext: var(--dialogbtnactivetext,);
|
|
108
|
+
// }
|
|
109
|
+
// }
|
|
110
|
+
// }
|
|
111
|
+
// }
|