@swiftwc/ui 0.0.0-dev.6 → 0.0.0-dev.61
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 +15 -0
- 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 +22 -4
- package/generated/client/index.js +219 -181
- package/generated/components/alert-dialog.d.ts +8 -0
- package/generated/components/alert-dialog.js +99 -0
- package/generated/components/body-view.js +5 -2
- package/generated/components/bordered-button.d.ts +17 -0
- package/generated/components/bordered-button.js +56 -0
- package/generated/components/bordered-prominent-button.d.ts +17 -0
- package/generated/components/bordered-prominent-button.js +56 -0
- package/generated/components/borderless-button.d.ts +12 -4
- package/generated/components/borderless-button.js +47 -16
- package/generated/components/color-scheme.d.ts +7 -0
- package/generated/components/color-scheme.js +54 -0
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +113 -0
- package/generated/components/content-unavailable-view.d.ts +24 -0
- package/generated/components/content-unavailable-view.js +81 -0
- package/generated/components/date-picker.d.ts +36 -0
- package/generated/components/date-picker.js +461 -0
- package/generated/components/disclosure-group.d.ts +9 -7
- package/generated/components/disclosure-group.js +51 -65
- package/generated/components/fine-tooltip.d.ts +7 -0
- package/generated/components/fine-tooltip.js +107 -0
- package/generated/components/form-view.d.ts +9 -0
- package/generated/components/form-view.js +63 -0
- package/generated/components/glass-button.d.ts +16 -0
- package/generated/components/glass-button.js +53 -0
- package/generated/components/glass-prominent-button.d.ts +16 -0
- package/generated/components/glass-prominent-button.js +53 -0
- package/generated/components/h-stack.d.ts +10 -0
- package/generated/components/h-stack.js +19 -0
- package/generated/components/image-view.d.ts +9 -0
- package/generated/components/image-view.js +46 -0
- package/generated/components/index.d.ts +41 -10
- package/generated/components/index.js +41 -15
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +51 -0
- package/generated/components/labeled-content.d.ts +9 -0
- package/generated/components/labeled-content.js +115 -0
- package/generated/components/list-view.d.ts +8 -0
- package/generated/components/list-view.js +32 -0
- package/generated/components/menu-view.d.ts +12 -0
- package/generated/components/menu-view.js +142 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +181 -0
- package/generated/components/navigation-split-view.d.ts +7 -2
- package/generated/components/navigation-split-view.js +19 -3
- package/generated/components/navigation-stack.d.ts +6 -2
- package/generated/components/navigation-stack.js +23 -59
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +50 -0
- package/generated/components/picker-view.d.ts +44 -0
- package/generated/components/picker-view.js +1009 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +22 -0
- package/generated/components/progress-view.d.ts +13 -0
- package/generated/components/progress-view.js +120 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +4 -2
- package/generated/components/scroll-view-proxy.d.ts +8 -0
- package/generated/components/scroll-view-proxy.js +17 -0
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +179 -64
- package/generated/components/search-view.d.ts +7 -0
- package/generated/components/search-view.js +30 -0
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +85 -0
- package/generated/components/sheet-view.d.ts +3 -4
- package/generated/components/sheet-view.js +53 -17
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +76 -72
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +25 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +26 -0
- package/generated/components/tab-bar.d.ts +5 -4
- package/generated/components/tab-bar.js +34 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +125 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +252 -17
- package/generated/components/table-view.d.ts +12 -0
- package/generated/components/table-view.js +153 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +496 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +28 -0
- package/generated/components/tool-bar-item.d.ts +8 -0
- package/generated/components/tool-bar-item.js +66 -0
- package/generated/components/tool-bar.d.ts +19 -0
- package/generated/components/tool-bar.js +93 -0
- package/generated/components/v-keyboard.d.ts +4 -0
- package/generated/components/v-keyboard.js +72 -70
- package/generated/components/v-stack.d.ts +13 -0
- package/generated/components/v-stack.js +22 -0
- package/generated/css/index.css +8847 -0
- package/generated/events/alert-dialog.d.ts +8 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/confirmation-dialog.js +1 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +8 -0
- package/generated/events/index.js +8 -0
- package/generated/events/lifecycle-observer.d.ts +10 -0
- package/generated/events/lifecycle-observer.js +1 -0
- package/generated/events/picker-view.d.ts +15 -0
- package/generated/events/picker-view.js +1 -0
- package/generated/events/scroll-view.d.ts +10 -0
- package/generated/events/scroll-view.js +1 -0
- package/generated/events/tab-view.d.ts +28 -0
- package/generated/events/tab-view.js +1 -0
- package/generated/events/text-field.d.ts +8 -0
- package/generated/events/text-field.js +1 -0
- package/generated/i18n/index.d.ts +34 -0
- package/generated/i18n/index.js +167 -0
- 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/cleanup-registry.d.ts +5 -0
- package/generated/internal/class/cleanup-registry.js +38 -0
- package/generated/internal/class/css-style-observer.d.ts +8 -0
- package/generated/internal/class/css-style-observer.js +26 -0
- package/generated/internal/class/form-associated-base.d.ts +16 -0
- package/generated/internal/class/form-associated-base.js +78 -0
- 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.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +64 -0
- package/generated/internal/class/navigation-path.d.ts +15 -0
- package/generated/internal/class/navigation-path.js +84 -0
- package/generated/internal/class/navigation-view.d.ts +8 -0
- package/generated/internal/class/navigation-view.js +72 -0
- package/generated/internal/class/resize-observer-singleton.d.ts +7 -0
- package/generated/internal/class/resize-observer-singleton.js +22 -0
- package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
- package/generated/internal/decorators/adaptive-slot.js +50 -0
- package/generated/internal/decorators/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +5 -0
- 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/privateNamespace.d.ts +14 -0
- package/generated/internal/privateNamespace.js +168 -0
- package/generated/internal/utils/add.d.ts +1 -0
- package/generated/internal/utils/add.js +7 -0
- package/generated/internal/utils/cash/ancestors.d.ts +1 -0
- package/generated/internal/utils/cash/ancestors.js +27 -0
- package/generated/internal/utils/cash/index.d.ts +23 -0
- package/generated/internal/utils/cash/index.js +25 -0
- package/generated/internal/utils/cash/next-all.d.ts +1 -0
- package/generated/internal/utils/cash/next-all.js +10 -0
- package/generated/internal/utils/cash/next.d.ts +1 -0
- package/generated/internal/utils/cash/next.js +9 -0
- package/generated/internal/utils/cash/prev-all.d.ts +1 -0
- package/generated/internal/utils/cash/prev-all.js +10 -0
- package/generated/internal/utils/cash/prev.d.ts +1 -0
- package/generated/internal/utils/cash/prev.js +9 -0
- package/generated/internal/utils/cash/prop.d.ts +18 -0
- package/generated/internal/utils/cash/prop.js +30 -0
- package/generated/internal/utils/cash/siblings.d.ts +1 -0
- package/generated/internal/utils/cash/siblings.js +10 -0
- package/generated/internal/utils/clamp.d.ts +1 -0
- package/generated/internal/utils/clamp.js +4 -0
- package/generated/internal/utils/compare-big-decimals.d.ts +1 -0
- package/generated/internal/utils/compare-big-decimals.js +90 -0
- package/generated/internal/utils/debounce.d.ts +1 -0
- package/generated/internal/utils/debounce.js +13 -0
- package/generated/internal/utils/dev-flags.d.ts +3 -0
- package/generated/internal/utils/dev-flags.js +5 -0
- package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
- package/generated/internal/utils/ensure-placeholder.js +55 -0
- package/generated/internal/utils/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +21 -1
- package/generated/internal/utils/index.js +24 -1
- 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.d.ts +1 -1
- package/generated/internal/utils/list-active.d.ts +7 -0
- package/generated/internal/utils/list-active.js +83 -0
- package/generated/internal/utils/microtask.d.ts +1 -0
- package/generated/internal/utils/microtask.js +3 -0
- package/generated/internal/utils/onoff.d.ts +45 -0
- package/generated/internal/utils/onoff.js +31 -0
- package/generated/internal/utils/render-label-icon.d.ts +2 -0
- package/generated/internal/utils/render-label-icon.js +19 -0
- package/generated/internal/utils/render-label-title.d.ts +2 -0
- package/generated/internal/utils/render-label-title.js +16 -0
- package/generated/internal/utils/render-label.d.ts +1 -0
- package/generated/internal/utils/render-label.js +19 -0
- package/generated/internal/utils/set.d.ts +1 -0
- package/generated/internal/utils/set.js +7 -0
- package/generated/internal/utils/sleep.d.ts +1 -0
- package/generated/internal/utils/sleep.js +3 -0
- package/generated/internal/utils/slow-hide-show.d.ts +1 -0
- package/generated/internal/utils/slow-hide-show.js +16 -0
- package/generated/internal/utils/timeout.d.ts +5 -0
- package/generated/internal/utils/timeout.js +16 -0
- package/generated/internal/utils/touch-glass.d.ts +7 -0
- package/generated/internal/utils/touch-glass.js +19 -0
- package/generated/namespace-browser/base.d.ts +45 -0
- package/generated/namespace-browser/base.js +115 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +4 -11
- package/generated/snapshot/index.js +55 -145
- package/package.json +33 -9
- package/scss/_components.scss +60 -13
- package/scss/_final.scss +1 -0
- package/scss/_functions.scss +10 -0
- package/scss/_mixins.scss +4 -169
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +22 -1
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +144 -23
- package/scss/base/_layout.scss +40 -16
- package/scss/base/_reboot.scss +151 -15
- package/scss/base/_root.scss +358 -25
- package/scss/colors/_index.scss +788 -70
- package/scss/components/_alert-dialog.scss +111 -0
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +57 -0
- package/scss/components/_bordered-prominent-button.scss +64 -0
- package/scss/components/_borderless-button.scss +36 -6
- package/scss/components/_confirmation-dialog.scss +102 -0
- package/scss/components/_content-unavailable-view.scss +54 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +153 -0
- package/scss/components/_disclosure-group.scss +147 -48
- package/scss/components/_fine-tooltip.scss +84 -0
- package/scss/components/_form-view.scss +233 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +59 -0
- package/scss/components/_glass-prominent-button.scss +70 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +29 -0
- package/scss/components/_image-view.scss +9 -0
- package/scss/components/_index.scss +239 -7
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +372 -0
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +67 -0
- package/scss/components/_list-view.scss +269 -0
- package/scss/components/_menu-view.scss +219 -0
- package/scss/components/_navigation-large-title.scss +27 -0
- package/scss/components/_navigation-split-view.scss +329 -269
- package/scss/components/_navigation-stack.scss +6 -6
- package/scss/components/_navigation-title.scss +10 -0
- package/scss/components/_picker-view.scss +307 -0
- package/scss/components/_plain-button.scss +18 -0
- package/scss/components/_progress-view.scss +98 -0
- package/scss/components/_scroll-view-proxy.scss +79 -0
- package/scss/components/_scroll-view-toolbars.scss +126 -0
- package/scss/components/_scroll-view.scss +114 -66
- package/scss/components/_search-view.scss +22 -0
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +78 -35
- package/scss/components/_sidebar-toggle.scss +87 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +211 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +270 -126
- package/scss/components/_table-column.scss +54 -0
- package/scss/components/_table-row.scss +240 -0
- package/scss/components/_table-view.scss +231 -0
- package/scss/components/_text-field.scss +53 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +81 -71
- package/scss/components/_tool-bar.scss +126 -63
- package/scss/components/_v-divider.scss +13 -0
- package/scss/components/_v-flex-stack.scss +29 -0
- package/scss/components/_v-keyboard.scss +6 -4
- package/scss/components/_v-stack.scss +15 -9
- package/scss/final/_touch-glass.scss +91 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_button.scss +44 -0
- package/scss/mixins/_color.scss +16 -0
- package/scss/mixins/_dialog.scss +89 -0
- package/scss/mixins/_index.scss +453 -0
- package/scss/placeholders/_buttons.scss +117 -0
- package/scss/placeholders/_lists.scss +594 -0
- package/scss/transitions/_alert-dialog.scss +18 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +27 -0
- package/scss/transitions/_disclosure-group.scss +35 -0
- package/scss/transitions/_fine-tooltip.scss +21 -0
- package/scss/transitions/_fwd.navbar.scss +4 -9
- package/scss/transitions/_fwd.scss +4 -34
- package/scss/transitions/_glass-button.scss +12 -0
- package/scss/transitions/_glass-prominent-button.scss +12 -0
- package/scss/transitions/_index.scss +35 -143
- package/scss/transitions/_menu-view.scss +26 -0
- package/scss/transitions/_navigation-split-view.scss +23 -0
- package/scss/transitions/_progress-view.scss +23 -0
- package/scss/transitions/_sheet-view.scss +30 -0
- package/scss/transitions/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +20 -0
- package/scss/utils/_frame.scss +91 -0
- package/scss/utils/_index.scss +78 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +222 -0
- package/web-components.html-data/en.json +721 -0
- package/generated/components/bottom-bar.d.ts +0 -10
- package/generated/components/bottom-bar.js +0 -73
- package/generated/components/navigation-bar.d.ts +0 -10
- package/generated/components/navigation-bar.js +0 -80
- package/generated/internal/class.d.ts +0 -18
- package/generated/internal/class.js +0 -18
- package/generated/namespace/index.d.ts +0 -6
- package/generated/styles.css +0 -1305
- package/scss/_dev.scss +0 -68
- package/scss/components/_tab-bar-stack.scss +0 -101
- package/scss/components/_toolbars.scss +0 -100
- package/scss/transitions/_dialog.scss +0 -32
- /package/generated/{namespace/index.js → events/alert-dialog.js} +0 -0
|
@@ -1,80 +1,179 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
2
|
@use '../mixins';
|
|
3
|
+
@use 'sass:string';
|
|
3
4
|
|
|
4
5
|
@layer #{vars.$components-layer} {
|
|
5
6
|
[is='disclosure-group'] {
|
|
6
|
-
|
|
7
|
+
:where(&) {
|
|
8
|
+
overflow: clip;
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
--disclosure--host-details-content-block-size: 0;
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
--disclosure--summary-grid-template-columns: ;
|
|
13
|
+
--disclosure--summary-grid-auto-flow: ;
|
|
14
|
+
--disclosure--summary-gap: ;
|
|
15
|
+
|
|
16
|
+
--disclosure--marker-display: none;
|
|
17
|
+
--disclosure--marker-transform: ;
|
|
12
18
|
}
|
|
13
|
-
// summary::marker {
|
|
14
|
-
// color: blue;
|
|
15
|
-
// display: none;
|
|
16
|
-
// content: '→';
|
|
17
|
-
// // content: "66";
|
|
18
|
-
// list-style-type: square;
|
|
19
|
-
// position: absolute;
|
|
20
|
-
// background-color: red;
|
|
21
|
-
// }
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
21
|
+
:where(&) {
|
|
22
|
+
--disclosure--marker-display: if(style(--disclosure-style: marker-trailing): ; style(--disclosure-style: marker-leading): ; else: none;);
|
|
23
|
+
|
|
24
|
+
--disclosure--summary-grid-auto-flow: if(style(--disclosure-style: marker-trailing): column ; style(--disclosure-style: marker-leading): column ;);
|
|
25
|
+
|
|
26
|
+
--disclosure--summary-gap: if(style(--disclosure-style: marker-trailing): 0.1rem ; style(--disclosure-style: marker-leading): 0.1rem ;);
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
--disclosure--summary-grid-template-columns: if(style(--disclosure-style: marker-trailing): minmax(0, 1fr) auto ; style(--disclosure-style: marker-leading): auto minmax(0, 1fr) ;);
|
|
29
|
+
|
|
30
|
+
--disclosure--marker-order: if(style(--disclosure-style: marker-leading): -1 ;);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var(#{vars.$disclosure-group-animation-duration-css-prop})
|
|
34
|
-
allow-discrete var(--disclosure-group-animation-easing);
|
|
35
|
-
will-change: block-size, content-visibility;
|
|
34
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
35
|
+
:where(&) {
|
|
36
|
+
--disclosure-style: ;
|
|
37
|
+
}
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
>
|
|
39
|
-
|
|
40
|
+
> summary {
|
|
41
|
+
:where(&) {
|
|
42
|
+
gap: var(--disclosure--summary-gap,);
|
|
43
|
+
|
|
44
|
+
grid-auto-flow: var(--disclosure--summary-grid-auto-flow,);
|
|
45
|
+
|
|
46
|
+
grid-template-columns: var(--disclosure--summary-grid-template-columns,);
|
|
47
|
+
|
|
48
|
+
@include mixins.make-marker-pseudos(vars.$disclosure-affordance);
|
|
49
|
+
|
|
50
|
+
&::after {
|
|
51
|
+
display: var(--disclosure--marker-display,);
|
|
52
|
+
|
|
53
|
+
block-size: 1rem;
|
|
54
|
+
inline-size: 1rem;
|
|
55
|
+
|
|
56
|
+
background-color: var(--blue);
|
|
57
|
+
|
|
58
|
+
transform: var(--disclosure--marker-transform,);
|
|
59
|
+
|
|
60
|
+
order: var(--disclosure--marker-order,);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
65
|
+
:where(&) {
|
|
66
|
+
// @container not (style(--disclosure-style: marker-trailing) or style(--disclosure-style: marker-leading)) {
|
|
67
|
+
// --disclosure--marker-display: none;
|
|
68
|
+
// }
|
|
69
|
+
@container style(--disclosure-style: marker-trailing) or style(--disclosure-style: marker-leading) {
|
|
70
|
+
--disclosure--marker-display: grid;
|
|
71
|
+
}
|
|
72
|
+
@container style(--disclosure-style: marker-trailing) or style(--disclosure-style: marker-leading) {
|
|
73
|
+
--disclosure--summary-grid-auto-flow: column;
|
|
74
|
+
|
|
75
|
+
--disclosure--summary-gap: 0.1rem;
|
|
76
|
+
}
|
|
77
|
+
@container style(--disclosure-style: marker-trailing) {
|
|
78
|
+
--disclosure--summary-grid-template-columns: minmax(0, 1fr) auto;
|
|
79
|
+
}
|
|
80
|
+
@container style(--disclosure-style: marker-leading) {
|
|
81
|
+
--disclosure--summary-grid-template-columns: auto minmax(0, 1fr);
|
|
82
|
+
|
|
83
|
+
--disclosure--marker-order: -1;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(&)::details-content {
|
|
90
|
+
display: grid;
|
|
91
|
+
|
|
92
|
+
background: transparent;
|
|
93
|
+
|
|
94
|
+
block-size: var(--disclosure--host-details-content-block-size);
|
|
40
95
|
}
|
|
41
96
|
|
|
97
|
+
// :where(& > *:not(summary)) {
|
|
98
|
+
// margin: 0;
|
|
99
|
+
// }
|
|
100
|
+
|
|
42
101
|
&[open] {
|
|
43
|
-
|
|
44
|
-
block-size: auto;
|
|
102
|
+
:where(&) {
|
|
103
|
+
--disclosure--host-details-content-block-size: auto;
|
|
104
|
+
|
|
105
|
+
--disclosure--marker-transform: rotate(90deg);
|
|
45
106
|
}
|
|
46
107
|
}
|
|
47
|
-
}
|
|
48
108
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
block-size: auto !important;
|
|
109
|
+
@supports not (interpolate-size: allow-keywords) {
|
|
110
|
+
:where(&) {
|
|
111
|
+
grid-template-rows: var(--disclosure--host-grid-template-rows);
|
|
53
112
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
allow-discrete var(--disclosure-group-animation-easing),
|
|
57
|
-
transform var(#{vars.$disclosure-group-animation-duration-css-prop})
|
|
58
|
-
allow-discrete var(--disclosure-group-animation-easing);
|
|
59
|
-
will-change: max-height, transform;
|
|
113
|
+
align-items: start;
|
|
114
|
+
align-content: start;
|
|
60
115
|
|
|
61
|
-
|
|
116
|
+
--disclosure--host-grid-template-rows: auto 0fr;
|
|
117
|
+
|
|
118
|
+
--disclosure--host-details-content-block-size: auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where(&)::details-content {
|
|
122
|
+
// block-size: auto;
|
|
123
|
+
|
|
124
|
+
content-visibility: visible;
|
|
125
|
+
|
|
126
|
+
min-height: 0;
|
|
62
127
|
}
|
|
63
128
|
|
|
64
129
|
&[open] {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
130
|
+
:where(&) {
|
|
131
|
+
--disclosure--host-grid-template-rows: auto 1fr;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@layer #{vars.$utils-layer} {
|
|
139
|
+
[is='disclosure-group'] {
|
|
140
|
+
@supports (x: #{string.unquote('attr(x type(*))')}) {
|
|
141
|
+
:where(&) {
|
|
142
|
+
--disclosure-style: attr(disclosure-style type(<custom-ident>), inherit);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
@supports not (x: #{string.unquote('attr(x type(*))')}) {
|
|
146
|
+
:where(&[disclosure-style='marker-trailing']) {
|
|
147
|
+
--disclosure-style: marker-trailing;
|
|
148
|
+
|
|
149
|
+
// SAFARI FIX (specify manually attr to avoid flashing)
|
|
150
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
151
|
+
--disclosure--marker-display: grid;
|
|
152
|
+
|
|
153
|
+
--disclosure--summary-grid-auto-flow: column;
|
|
154
|
+
|
|
155
|
+
--disclosure--summary-gap: 0.1rem;
|
|
156
|
+
|
|
157
|
+
--disclosure--summary-grid-template-columns: minmax(0, 1fr) auto;
|
|
70
158
|
}
|
|
71
159
|
}
|
|
160
|
+
:where(&[disclosure-style='marker-leading']) {
|
|
161
|
+
--disclosure-style: marker-leading;
|
|
162
|
+
|
|
163
|
+
// SAFARI FIX (specify manually attr to avoid flashing)
|
|
164
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
165
|
+
--disclosure--marker-display: grid;
|
|
72
166
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
167
|
+
--disclosure--summary-grid-auto-flow: column;
|
|
168
|
+
|
|
169
|
+
--disclosure--summary-gap: 0.1rem;
|
|
170
|
+
|
|
171
|
+
--disclosure--summary-grid-template-columns: auto minmax(0, 1fr);
|
|
76
172
|
}
|
|
77
173
|
}
|
|
174
|
+
:where(&[disclosure-style='marker-hidden']) {
|
|
175
|
+
--disclosure-style: ;
|
|
176
|
+
}
|
|
78
177
|
}
|
|
79
178
|
}
|
|
80
179
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$tab-components-layer} {
|
|
5
|
+
fine-tooltip {
|
|
6
|
+
:where(&) {
|
|
7
|
+
color: var(--text,);
|
|
8
|
+
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
touch-action: none;
|
|
11
|
+
|
|
12
|
+
position: fixed;
|
|
13
|
+
|
|
14
|
+
inline-size: max-content;
|
|
15
|
+
block-size: max-content;
|
|
16
|
+
height: auto; // safari
|
|
17
|
+
|
|
18
|
+
max-inline-size: 80vw;
|
|
19
|
+
max-block-size: 80vh;
|
|
20
|
+
|
|
21
|
+
margin-block: var(--tooltip--dialog-margin-block,);
|
|
22
|
+
margin-inline: var(--tooltip--dialog-margin-inline,);
|
|
23
|
+
|
|
24
|
+
transform: var(--tooltip--dialog-scale,) var(--tooltip--dialog-translate,);
|
|
25
|
+
opacity: var(--tooltip--dialog-opacity,);
|
|
26
|
+
transform-origin: top;
|
|
27
|
+
|
|
28
|
+
position-anchor: --fine-tooltip; // overriden
|
|
29
|
+
position-area: bottom 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,);
|
|
36
|
+
|
|
37
|
+
padding-block: 0.5rem;
|
|
38
|
+
padding-inline: 1rem;
|
|
39
|
+
gap: 0.5rem;
|
|
40
|
+
|
|
41
|
+
border: none;
|
|
42
|
+
|
|
43
|
+
position-try-fallbacks: --custom-top;
|
|
44
|
+
position-try-order: most-height;
|
|
45
|
+
position-visibility: anchors-visible;
|
|
46
|
+
|
|
47
|
+
// finally
|
|
48
|
+
--tooltip--dialog-translate: translateY(-10%);
|
|
49
|
+
--tooltip--dialog-scale: scale(0.9);
|
|
50
|
+
--tooltip--dialog-opacity: 0;
|
|
51
|
+
|
|
52
|
+
--label--host-white-space: pre-line;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&[open] {
|
|
56
|
+
:where(&) {
|
|
57
|
+
--tooltip--dialog-margin-block: max(env(safe-area-inset-top), var(--menu-spacing)) max(env(safe-area-inset-bottom), var(--menu-spacing));
|
|
58
|
+
--tooltip--dialog-margin-inline: max(env(safe-area-inset-left), var(--menu-spacing)) max(env(safe-area-inset-right), var(--menu-spacing));
|
|
59
|
+
|
|
60
|
+
--tooltip--dialog-translate: translateY(0);
|
|
61
|
+
--tooltip--dialog-scale: scale(1);
|
|
62
|
+
--tooltip--dialog-opacity: 0.9;
|
|
63
|
+
|
|
64
|
+
@starting-style {
|
|
65
|
+
--tooltip--dialog-translate: translateY(-10%);
|
|
66
|
+
--tooltip--dialog-scale: scale(0.9);
|
|
67
|
+
--tooltip--dialog-opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&[closing] {
|
|
73
|
+
:where(&) {
|
|
74
|
+
--tooltip--dialog-translate: translateY(-10%);
|
|
75
|
+
--tooltip--dialog-scale: scale(0.9);
|
|
76
|
+
--tooltip--dialog-opacity: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@position-try --custom-top {
|
|
83
|
+
position-area: top center;
|
|
84
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use '../placeholders';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
7
|
+
$form-ifs: (
|
|
8
|
+
inset: (
|
|
9
|
+
--list--host-background-color: var(--insetform-background-color,),
|
|
10
|
+
--list--host-padding-inline: var(--insetform-padding-inline),
|
|
11
|
+
--list--host-padding-block: var(--insetform-padding-block),
|
|
12
|
+
//
|
|
13
|
+
--list--item-color: var(--insetform-item-color,),
|
|
14
|
+
--list--item-background-color: var(--insetform-item-background-color,),
|
|
15
|
+
--list--highlighteditem-color: var(--insetform-highlighteditem-color,),
|
|
16
|
+
--list--highlighteditem-background-color: var(--insetform-highlighteditem-background-color,),
|
|
17
|
+
--list--item-border-radius: var(--insetform-item-border-radius),
|
|
18
|
+
//
|
|
19
|
+
--list--adjacentdetailsitem-border-radius: 0,
|
|
20
|
+
//
|
|
21
|
+
--list--details-background-color: var(--insetform-openitem-background-color,),
|
|
22
|
+
--list--details-color: var(--insetform-openitem-color,),
|
|
23
|
+
--list--opendetails-background-color: var(--insetform-openitem-background-color,),
|
|
24
|
+
--list--opendetails-color: var(--insetform-openitem-color,),
|
|
25
|
+
--list--opensummary-background-color: var(--insetform-opensummary-background-color,),
|
|
26
|
+
--list--opensummary-color: var(--insetform-opensummary-color,),
|
|
27
|
+
),
|
|
28
|
+
inset-grouped: (
|
|
29
|
+
--list--host-background-color: var(--insetgroupedform-background-color,),
|
|
30
|
+
--list--host-padding-inline: var(--insetgroupedform-padding-inline),
|
|
31
|
+
--list--host-padding-block: var(--insetgroupedform-padding-block),
|
|
32
|
+
//
|
|
33
|
+
--list--item-color: var(--insetgroupedform-item-color,),
|
|
34
|
+
--list--item-background-color: var(--insetgroupedform-item-background-color,),
|
|
35
|
+
--list--item-border-radius: var(--insetform-item-border-radius),
|
|
36
|
+
--list--highlighteditem-color: var(--insetgroupedform-highlighteditem-color,),
|
|
37
|
+
--list--highlighteditem-background-color: var(--insetgroupedform-highlighteditem-background-color,),
|
|
38
|
+
//
|
|
39
|
+
--list--adjacentitem-border-radius: 0,
|
|
40
|
+
//
|
|
41
|
+
--list--details-background-color: var(--insetgroupedform-openitem-background-color,),
|
|
42
|
+
--list--details-color: var(--insetgroupedform-openitem-color,),
|
|
43
|
+
--list--opendetails-background-color: var(--insetgroupedform-openitem-background-color,),
|
|
44
|
+
--list--opendetails-color: var(--insetgroupedform-openitem-color,),
|
|
45
|
+
--list--opensummary-background-color: var(--insetgroupedform-opensummary-background-color,),
|
|
46
|
+
--list--opensummary-color: var(--insetgroupedform-opensummary-color,),
|
|
47
|
+
),
|
|
48
|
+
sidebar: (
|
|
49
|
+
--list--item-border-radius: var(--insetform-item-border-radius),
|
|
50
|
+
--list--details-gap: var(--form-gap),
|
|
51
|
+
--list--rootsummary-padding-inline-start: 5px,
|
|
52
|
+
--list--rootsummary-padding-inline-end: 5px,
|
|
53
|
+
--list--rootsummary-padding-block-start: 2px,
|
|
54
|
+
--list--rootsummary-padding-block-end: 2px,
|
|
55
|
+
|
|
56
|
+
--list--item-padding-inline-start: 5px,
|
|
57
|
+
--list--item-padding-inline-end: 5px,
|
|
58
|
+
--list--item-padding-block-start: 5px,
|
|
59
|
+
--list--item-padding-block-end: 5px,
|
|
60
|
+
|
|
61
|
+
--list--adjacentitem-border-radius: unset,
|
|
62
|
+
//
|
|
63
|
+
--list--host-background-color: var(--sidebarform-background-color,),
|
|
64
|
+
--list--host-padding-inline: var(--sidebarform-padding-inline),
|
|
65
|
+
--list--host-padding-block: var(--sidebarform-padding-block),
|
|
66
|
+
//
|
|
67
|
+
--list--item-background-color: var(--sidebarform-item-background-color,),
|
|
68
|
+
--list--item-color: var(--sidebarform-item-color,),
|
|
69
|
+
--list--highlighteditem-background-color: var(--sidebarform-highlighteditem-background-color,),
|
|
70
|
+
--list--highlighteditem-color: var(--sidebarform-highlighteditem-color,),
|
|
71
|
+
//
|
|
72
|
+
--list--rootsummary-background-color: transparent,
|
|
73
|
+
--list--rootsummary-color: var(--primary,),
|
|
74
|
+
// --list--rootsummary-border-radius: 0px,
|
|
75
|
+
--list--selectedrootsummary-background-color: transparent,
|
|
76
|
+
--list--selectedrootsummary-color: var(--primary,),
|
|
77
|
+
//
|
|
78
|
+
--list--separator-background-color: transparent,
|
|
79
|
+
--list--activeseparator-background-color: transparent,
|
|
80
|
+
//
|
|
81
|
+
--list--details-background-color: var(--sidebarform-openitem-background-color,),
|
|
82
|
+
--list--details-color: var(--sidebarform-openitem-color,),
|
|
83
|
+
--list--opensummary-background-color: var(--sidebarform-opensummary-background-color,),
|
|
84
|
+
--list--opensummary-color: var(--sidebarform-opensummary-color,),
|
|
85
|
+
//
|
|
86
|
+
// --list--item-grid-template-columns: minmax(0, 1fr),
|
|
87
|
+
--list--accessories-size: 0rem,
|
|
88
|
+
--list--accessories-display: none,
|
|
89
|
+
//
|
|
90
|
+
--list--rootsummary-marker-display: marker-trailing,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
$form-elses: (
|
|
94
|
+
--list--host-background-color: var(--form-background-color,),
|
|
95
|
+
--list--item-padding-inline-start: var(--form-item-padding-inline-start),
|
|
96
|
+
--list--item-padding-inline-end: var(--form-item-padding-inline-end),
|
|
97
|
+
--list--item-padding-block-start: var(--form-item-padding-block-start),
|
|
98
|
+
--list--item-padding-block-end: var(--form-item-padding-block-end),
|
|
99
|
+
--list--item-background-color: var(--form-item-background-color,),
|
|
100
|
+
--list--highlighteditem-background-color: var(--form-highlighteditem-background-color,),
|
|
101
|
+
--list--item-color: var(--form-item-color,),
|
|
102
|
+
--list--highlighteditem-color: var(--form-highlighteditem-color,),
|
|
103
|
+
//
|
|
104
|
+
// --list--item-grid-template-columns: minmax(0, 1fr) 1rem,
|
|
105
|
+
--list--accessories-size: 1.1rem,
|
|
106
|
+
--list--accessories-display: grid,
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
@layer #{vars.$list-components-layer} {
|
|
110
|
+
[is='form-view'] {
|
|
111
|
+
&:not(& &, list-view &, table-view &, [is='tab-bar'] > &) {
|
|
112
|
+
@extend %list;
|
|
113
|
+
|
|
114
|
+
// wire
|
|
115
|
+
:where(&) {
|
|
116
|
+
--list--section-gap: var(--form-gap);
|
|
117
|
+
|
|
118
|
+
@include mixins.write-props($form-elses);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where(section-view:has(> [slot='header']), section-view:has(> [slot='footer']) + section-view) {
|
|
122
|
+
--list--section-gap: var(--form-extra-gap);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// SECTION: ifs
|
|
126
|
+
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
127
|
+
:where(&) {
|
|
128
|
+
@include mixins.write-ifs(--form-style, $form-ifs, $form-elses); // --list--root-padding-inline: if(style(--form-style: inset-grouped): 0.5rem ; style(--form-style: sidebar): 0.5rem ;);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// SECTION: ifs polyfill
|
|
133
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
134
|
+
:where(&:not([form-style])) {
|
|
135
|
+
@each $v in vars.$form-styles {
|
|
136
|
+
@container style(--form-style: #{$v}) {
|
|
137
|
+
--form-style: #{$v}; // NOTE: used ONLY for tinted buttons
|
|
138
|
+
|
|
139
|
+
@include mixins.write-props(map.get($form-ifs, $v)); //@include set-form-style($v);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
@each $v in vars.$form-styles {
|
|
144
|
+
:where(&[form-style='#{$v}']) {
|
|
145
|
+
--form-style: #{$v}; // NOTE: used ONLY for tinted buttons
|
|
146
|
+
|
|
147
|
+
@include mixins.write-props(map.get($form-ifs, $v)); //@include set-form-style($v);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@include mixins.if-2col-split-view-fits {
|
|
151
|
+
:where(navigation-split-view [is='sidebar-view'] &[form-style]) {
|
|
152
|
+
@include mixins.write-props(map.get($form-ifs, sidebar));
|
|
153
|
+
}
|
|
154
|
+
:where(navigation-split-view > scroll-view &[preferred-expanded-style], navigation-split-view > body-view > scroll-view &[preferred-expanded-style]) {
|
|
155
|
+
@include mixins.write-props(map.get($form-ifs, inset));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// SECTION: attrs finally
|
|
161
|
+
@supports (x: #{string.unquote('attr(x type(*))')}) {
|
|
162
|
+
:where(&) {
|
|
163
|
+
--form-style: attr(form-style type(<custom-ident>), inherit);
|
|
164
|
+
}
|
|
165
|
+
@include mixins.if-2col-split-view-fits {
|
|
166
|
+
:where(navigation-split-view:has(> [is='sidebar-view']) > [is='sidebar-view'] &[list-style]) {
|
|
167
|
+
--form-style: sidebar;
|
|
168
|
+
}
|
|
169
|
+
:where(navigation-split-view > scroll-view &[preferred-expanded-style], navigation-split-view > body-view > scroll-view &[preferred-expanded-style]) {
|
|
170
|
+
--form-style: inset;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// NOTE: on safari takes it from manually setting it above
|
|
176
|
+
// make list-buttons tintable
|
|
177
|
+
@container not style(--form-style: sidebar) {
|
|
178
|
+
button[list-item-tint] {
|
|
179
|
+
:where(&) {
|
|
180
|
+
--itemhighlightface: var(--accentColor3);
|
|
181
|
+
--itemactiveface: var(--accentColor3);
|
|
182
|
+
}
|
|
183
|
+
&:not([navigation-link]) {
|
|
184
|
+
--itemtext: var(--accentColor);
|
|
185
|
+
--itemhighlighttext: var(--accentColor);
|
|
186
|
+
--itemactivetext: var(--accentColor);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
@container style(--form-style: sidebar) {
|
|
191
|
+
button[list-item-tint] {
|
|
192
|
+
:where(&) {
|
|
193
|
+
--itemhighlightface: var(--accentColor);
|
|
194
|
+
--itemactiveface: var(--accentColor);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// FINALLY AFTER ALL IFS
|
|
200
|
+
// TODO: Also apply this on state of sidebar w/ full-screen detail 2/2
|
|
201
|
+
@include mixins.if-content-view-list {
|
|
202
|
+
:where(&) {
|
|
203
|
+
--list--accessories-size: 0rem;
|
|
204
|
+
--list--accessories-display: none;
|
|
205
|
+
|
|
206
|
+
--insetform-highlighteditem-background-color: var(--accentColor);
|
|
207
|
+
--insetform-highlighteditem-color: var(--tintcontrast);
|
|
208
|
+
--insetgroupedform-highlighteditem-background-color: var(--accentColor);
|
|
209
|
+
--insetgroupedform-highlighteditem-color: var(--tintcontrast);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// override tint colors of tintable buttons
|
|
213
|
+
@container style(--list-style: inset) or style(--list-style: inset-grouped) {
|
|
214
|
+
button[list-item-tint] {
|
|
215
|
+
:where(&) {
|
|
216
|
+
// --itemhighlighttext: var(--tintcontrast);
|
|
217
|
+
// --itemactivetext: var(--tintcontrast);
|
|
218
|
+
|
|
219
|
+
--itemhighlightface: var(--accentColor);
|
|
220
|
+
--itemactiveface: var(--accentColor);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Hide accessories
|
|
227
|
+
:where(&[navigation-link-indicator-visibility='hidden']) {
|
|
228
|
+
--list--accessories-size: 0rem;
|
|
229
|
+
--list--accessories-display: none;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
@layer #{vars.$components-layer} {
|
|
5
5
|
[is='full-screen'] {
|
|
6
|
-
|
|
6
|
+
:where(&) {
|
|
7
|
+
@include mixins.reset-dialog;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// dowh
|
|
10
|
+
overflow: clip;
|
|
11
|
+
inline-size: 100lvw;
|
|
12
|
+
block-size: var(--100lvh, 100lvh);
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../placeholders';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$components-layer} {
|
|
5
|
+
[is='glass-button'] {
|
|
6
|
+
@extend %button;
|
|
7
|
+
|
|
8
|
+
:where(&) {
|
|
9
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter);
|
|
10
|
+
|
|
11
|
+
box-shadow: var(--toolbar-cell-box-shadow);
|
|
12
|
+
|
|
13
|
+
transform: var(--btn--scale,);
|
|
14
|
+
|
|
15
|
+
--btnpadistart: var(--regular-btn-padding);
|
|
16
|
+
--btnpadiend: var(--regular-btn-padding);
|
|
17
|
+
--btnpadbstart: var(--regular-btn-padding);
|
|
18
|
+
--btnpadbend: var(--regular-btn-padding);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@each $size, $media in vars.$button-sizes {
|
|
22
|
+
:where(&[control-size='#{$size}']) {
|
|
23
|
+
--btnpadistart: var(--#{$size}-btn-padding);
|
|
24
|
+
--btnpadiend: var(--#{$size}-btn-padding);
|
|
25
|
+
--btnpadbstart: var(--#{$size}-btn-padding);
|
|
26
|
+
--btnpadbend: var(--#{$size}-btn-padding);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(&[role='destructive']) {
|
|
31
|
+
--accentColorEffective: var(--red);
|
|
32
|
+
--accentColorEffective4: var(--red4);
|
|
33
|
+
|
|
34
|
+
--accentColor: var(--red);
|
|
35
|
+
--accentColor2: var(--red2);
|
|
36
|
+
--accentColor3: var(--red3);
|
|
37
|
+
--accentColor4: var(--red4);
|
|
38
|
+
--accentColor5: var(--red5);
|
|
39
|
+
}
|
|
40
|
+
:where(&[role='confirm']) {
|
|
41
|
+
--accentColorEffective: var(--blue);
|
|
42
|
+
--accentColorEffective4: var(--blue4);
|
|
43
|
+
|
|
44
|
+
--accentColor: var(--blue);
|
|
45
|
+
--accentColor2: var(--blue2);
|
|
46
|
+
--accentColor3: var(--blue3);
|
|
47
|
+
--accentColor4: var(--blue4);
|
|
48
|
+
--accentColor5: var(--blue5);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@layer #{vars.$utils-layer} {
|
|
54
|
+
[is='glass-button'] {
|
|
55
|
+
:where(&) {
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../placeholders';
|
|
3
|
+
@use '../mixins';
|
|
4
|
+
|
|
5
|
+
@layer #{vars.$components-layer} {
|
|
6
|
+
[is='glass-prominent-button'] {
|
|
7
|
+
@extend %button;
|
|
8
|
+
|
|
9
|
+
:where(&) {
|
|
10
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter);
|
|
11
|
+
|
|
12
|
+
box-shadow: var(--toolbar-cell-box-shadow);
|
|
13
|
+
|
|
14
|
+
transform: var(--btn--scale,);
|
|
15
|
+
|
|
16
|
+
--btnpadistart: var(--regular-btn-padding);
|
|
17
|
+
--btnpadiend: var(--regular-btn-padding);
|
|
18
|
+
--btnpadbstart: var(--regular-btn-padding);
|
|
19
|
+
--btnpadbend: var(--regular-btn-padding);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@each $size, $media in vars.$button-sizes {
|
|
23
|
+
:where(&[control-size='#{$size}']) {
|
|
24
|
+
--btnpadistart: var(--#{$size}-btn-padding);
|
|
25
|
+
--btnpadiend: var(--#{$size}-btn-padding);
|
|
26
|
+
--btnpadbstart: var(--#{$size}-btn-padding);
|
|
27
|
+
--btnpadbend: var(--#{$size}-btn-padding);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where(&[role='destructive']) {
|
|
32
|
+
--accentColorEffective: var(--red);
|
|
33
|
+
--accentColorEffective4: var(--red4);
|
|
34
|
+
|
|
35
|
+
--accentColor: var(--red);
|
|
36
|
+
--accentColor2: var(--red2);
|
|
37
|
+
--accentColor3: var(--red3);
|
|
38
|
+
--accentColor4: var(--red4);
|
|
39
|
+
--accentColor5: var(--red5);
|
|
40
|
+
}
|
|
41
|
+
:where(&[role='confirm']) {
|
|
42
|
+
--accentColorEffective: var(--blue);
|
|
43
|
+
--accentColorEffective4: var(--blue4);
|
|
44
|
+
|
|
45
|
+
--accentColor: var(--blue);
|
|
46
|
+
--accentColor2: var(--blue2);
|
|
47
|
+
--accentColor3: var(--blue3);
|
|
48
|
+
--accentColor4: var(--blue4);
|
|
49
|
+
--accentColor5: var(--blue5);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@layer #{vars.$colors-layer} {
|
|
55
|
+
[is='glass-prominent-button'] > * {
|
|
56
|
+
:where(&) {
|
|
57
|
+
@include mixins.takeover-color-vars(btn);
|
|
58
|
+
// --secondary: var(--btntext);
|
|
59
|
+
// --blue: var(--btntext);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@layer #{vars.$utils-layer} {
|
|
65
|
+
[is='glass-prominent-button'] {
|
|
66
|
+
:where(&) {
|
|
67
|
+
text-align: center;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|