@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/mixins/_index.scss
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@use '../vars';
|
|
2
1
|
@use 'sass:string';
|
|
3
2
|
@use 'sass:map';
|
|
4
3
|
@use 'sass:list';
|
|
4
|
+
@use '../vars';
|
|
5
|
+
@use '../functions';
|
|
5
6
|
|
|
6
7
|
@mixin span-all {
|
|
7
8
|
grid-column: 1 / -1; // span all columns
|
|
@@ -79,8 +80,14 @@
|
|
|
79
80
|
grid-area: main;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
&:has(
|
|
83
|
-
|
|
83
|
+
&:has(
|
|
84
|
+
~ tool-bar > [slot^='top-bar'],
|
|
85
|
+
~ tool-bar > [slot='cancellation-action'],
|
|
86
|
+
~ tool-bar > [slot='primary-action'],
|
|
87
|
+
~ tool-bar > [slot='confirmation-action'],
|
|
88
|
+
~ tool-bar > [slot='destructive-action']
|
|
89
|
+
),
|
|
90
|
+
&:has(> [slot^='top-bar'], > [slot='cancellation-action'], > [slot='primary-action'], > [slot='confirmation-action'], > [slot='destructive-action']) {
|
|
84
91
|
grid-template-rows: var(--navigation-bar-block-size) minmax(max-content, 1fr);
|
|
85
92
|
}
|
|
86
93
|
}
|
|
@@ -110,9 +117,16 @@
|
|
|
110
117
|
}
|
|
111
118
|
}
|
|
112
119
|
|
|
113
|
-
@mixin contain-overscroll() {
|
|
114
|
-
overscroll-behavior: contain;
|
|
120
|
+
@mixin contain-overscroll($axis: both) {
|
|
115
121
|
-webkit-overflow-scrolling: touch;
|
|
122
|
+
|
|
123
|
+
@if $axis == inline {
|
|
124
|
+
overscroll-behavior-inline: contain;
|
|
125
|
+
} @else if $axis == block {
|
|
126
|
+
overscroll-behavior-block: contain;
|
|
127
|
+
} @else {
|
|
128
|
+
overscroll-behavior: contain;
|
|
129
|
+
}
|
|
116
130
|
}
|
|
117
131
|
|
|
118
132
|
@mixin make-toolbar-pseudos($dir: bottom) {
|
|
@@ -201,6 +215,19 @@
|
|
|
201
215
|
border-radius: var(--#{$prefix}radiustl#{','}) var(--#{$prefix}radiustr#{','}) var(--#{$prefix}radiusbr#{','}) var(--#{$prefix}radiusbl#{','});
|
|
202
216
|
}
|
|
203
217
|
|
|
218
|
+
@mixin takeover-color-vars($prefix) {
|
|
219
|
+
--secondary: var(--#{$prefix}text);
|
|
220
|
+
--blue: var(--#{$prefix}text);
|
|
221
|
+
--red: var(--#{$prefix}text);
|
|
222
|
+
--green: var(--#{$prefix}text);
|
|
223
|
+
--orange: var(--#{$prefix}text);
|
|
224
|
+
--purple: var(--#{$prefix}text);
|
|
225
|
+
|
|
226
|
+
// NOTE: breaks list-item-tints
|
|
227
|
+
--accentColor: var(--#{$prefix}text);
|
|
228
|
+
--accentColorEffective: var(--#{$prefix}text);
|
|
229
|
+
}
|
|
230
|
+
|
|
204
231
|
@mixin vt-toolbar-cell-offscreen-keyframe() {
|
|
205
232
|
--toolbar-cell-scale: scale(var(--view-transition-toolbar-cell-offscreen-scale));
|
|
206
233
|
--toolbar-cell-filter: blur(10px);
|
|
@@ -231,6 +258,12 @@
|
|
|
231
258
|
}
|
|
232
259
|
}
|
|
233
260
|
|
|
261
|
+
@mixin set-label-font($value) {
|
|
262
|
+
--label--titlestack-font-size: var(--label-#{$value}-font-size);
|
|
263
|
+
--label--titlestack-line-height: var(--label-#{$value}-line-height);
|
|
264
|
+
--label--titlestack-font-weight: var(--label-#{$value}-font-weight);
|
|
265
|
+
}
|
|
266
|
+
|
|
234
267
|
@mixin if-iphone-landscape {
|
|
235
268
|
@media (max-width: #{vars.$ipad-landscape-bp-max}) and (orientation: landscape) {
|
|
236
269
|
@content;
|
|
@@ -285,6 +318,25 @@
|
|
|
285
318
|
}
|
|
286
319
|
}
|
|
287
320
|
|
|
321
|
+
@mixin if-content-view-list {
|
|
322
|
+
@include if-2col-split-view-fits {
|
|
323
|
+
// is content-view!
|
|
324
|
+
navigation-split-view > scroll-view & {
|
|
325
|
+
@content;
|
|
326
|
+
}
|
|
327
|
+
// is content-view!
|
|
328
|
+
navigation-split-view:has(> [is='sidebar-view'])[preferred-compact-column='content']:not([column-visibility='double-column']) > body-view > scroll-view & {
|
|
329
|
+
@content;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
// is content-view!
|
|
333
|
+
@include if-3col-split-view-fits {
|
|
334
|
+
navigation-split-view:has(> [is='sidebar-view']):not([column-visibility='double-column']) > body-view > scroll-view & {
|
|
335
|
+
@content;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
288
340
|
// Mixin for plain CSS (linear)
|
|
289
341
|
@mixin write-props($props) {
|
|
290
342
|
@each $prop, $val in $props {
|
|
@@ -349,6 +401,22 @@
|
|
|
349
401
|
}
|
|
350
402
|
}
|
|
351
403
|
|
|
404
|
+
@mixin make-template($tokens, $prop) {
|
|
405
|
+
@each $template in $tokens {
|
|
406
|
+
$parts: string.split('#{$template}', ', ');
|
|
407
|
+
$result: '';
|
|
408
|
+
@each $part in $parts {
|
|
409
|
+
$result: $result + '#{$part},';
|
|
410
|
+
}
|
|
411
|
+
$result: string.slice($result, 1, string.length($result) - 1);
|
|
412
|
+
$final-result: functions.str-replace($result, 'minmax(0,1fr)', 'spacer');
|
|
413
|
+
@debug $final-result, $template;
|
|
414
|
+
:where(&[template='#{$final-result}']) {
|
|
415
|
+
#{$prop}: $template;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
352
420
|
@mixin generate-color-tokens($tokens) {
|
|
353
421
|
$media-variants: (
|
|
354
422
|
base: '',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
|
+
@use '../maps';
|
|
2
3
|
@use '../mixins';
|
|
3
4
|
|
|
4
5
|
@layer #{vars.$components-layer} {
|
|
@@ -8,13 +9,15 @@
|
|
|
8
9
|
|
|
9
10
|
place-content: center;
|
|
10
11
|
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
11
14
|
// SECTION: componentize
|
|
12
15
|
@include mixins.componentize(btn);
|
|
13
16
|
|
|
14
|
-
--btnpadistart: var(--regular-btn-padding);
|
|
15
|
-
--btnpadiend: var(--regular-btn-padding);
|
|
16
|
-
--btnpadbstart: var(--regular-btn-padding);
|
|
17
|
-
--btnpadbend: var(--regular-btn-padding);
|
|
17
|
+
// --btnpadistart: var(--regular-btn-padding);
|
|
18
|
+
// --btnpadiend: var(--regular-btn-padding);
|
|
19
|
+
// --btnpadbstart: var(--regular-btn-padding);
|
|
20
|
+
// --btnpadbend: var(--regular-btn-padding);
|
|
18
21
|
|
|
19
22
|
--btnradiustl: var(--regular-btn-border-radius);
|
|
20
23
|
--btnradiustr: var(--regular-btn-border-radius);
|
|
@@ -22,13 +25,16 @@
|
|
|
22
25
|
--btnradiusbr: var(--regular-btn-border-radius);
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
@
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
--
|
|
28
|
+
@include mixins.takeover-button-slots;
|
|
29
|
+
|
|
30
|
+
@each $size, $media in maps.$button-sizes-map {
|
|
31
|
+
// @if (regular != $size) {
|
|
32
|
+
&[control-size='#{$size}'] {
|
|
33
|
+
:where(&) {
|
|
34
|
+
// --btnpadistart: var(--#{$size}-btn-padding);
|
|
35
|
+
// --btnpadiend: var(--#{$size}-btn-padding);
|
|
36
|
+
// --btnpadbstart: var(--#{$size}-btn-padding);
|
|
37
|
+
// --btnpadbend: var(--#{$size}-btn-padding);
|
|
32
38
|
|
|
33
39
|
--btnradiustl: var(--#{$size}-btn-border-radius);
|
|
34
40
|
--btnradiustr: var(--#{$size}-btn-border-radius);
|
|
@@ -36,6 +42,15 @@
|
|
|
36
42
|
--btnradiusbr: var(--#{$size}-btn-border-radius);
|
|
37
43
|
}
|
|
38
44
|
}
|
|
45
|
+
// }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[control-size='small'] {
|
|
49
|
+
--label-font: callout;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[control-size='mini'] {
|
|
53
|
+
--label-font: caption;
|
|
39
54
|
}
|
|
40
55
|
}
|
|
41
56
|
}
|
|
@@ -54,6 +69,26 @@
|
|
|
54
69
|
}
|
|
55
70
|
}
|
|
56
71
|
|
|
72
|
+
// @layer #{vars.$utils-layer} {
|
|
73
|
+
// %button {
|
|
74
|
+
// > [slot] {
|
|
75
|
+
// :where(&) {
|
|
76
|
+
// position: absolute;
|
|
77
|
+
// }
|
|
78
|
+
// }
|
|
79
|
+
// // &:has(> [slot='overlay'] > [slot='overlay']) {
|
|
80
|
+
// // :where(&) {
|
|
81
|
+
// // display: grid;
|
|
82
|
+
// // }
|
|
83
|
+
// // }
|
|
84
|
+
// &:not(:has(> :not([slot]))) > [slot='placeholder'] {
|
|
85
|
+
// :where(&) {
|
|
86
|
+
// position: relative;
|
|
87
|
+
// }
|
|
88
|
+
// }
|
|
89
|
+
// }
|
|
90
|
+
// }
|
|
91
|
+
|
|
57
92
|
@layer #{vars.$ui-layer} {
|
|
58
93
|
// SECTION: componentize
|
|
59
94
|
%button {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
2
|
@use '../mixins';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
$list-item-selector: ':not([slot], section-view, [is="disclosure-group"], picker-view, menu-view, menu-view *, whatever-name)';
|
|
5
|
+
|
|
6
|
+
@layer #{vars.$list-components-layer} {
|
|
5
7
|
%list {
|
|
6
8
|
:where(&) {
|
|
7
9
|
background-color: var(--list--host-background-color,);
|
|
@@ -13,9 +15,9 @@
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
// componentize buttons
|
|
16
|
-
>
|
|
17
|
-
section-view >
|
|
18
|
-
[is='disclosure-group'] >
|
|
18
|
+
> #{$list-item-selector},
|
|
19
|
+
section-view > #{$list-item-selector},
|
|
20
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
19
21
|
// :where(&:is(summary:not([is='disclosure-group'] [is='disclosure-group'] summary))) {
|
|
20
22
|
// box-shadow: inset 0 0 4px magenta;
|
|
21
23
|
// }
|
|
@@ -76,19 +78,18 @@
|
|
|
76
78
|
// }
|
|
77
79
|
// }
|
|
78
80
|
|
|
79
|
-
// SECTION: wire gaps
|
|
80
|
-
:
|
|
81
|
-
|
|
81
|
+
// SECTION: wire gaps between
|
|
82
|
+
// NOTE: apply gap to top of sections when adjacent to any
|
|
83
|
+
// :not([slot], section-view) ~ section-view:not([slot]),
|
|
84
|
+
// section-view:not([slot]) ~ section-view:not([slot]) {
|
|
85
|
+
:not([slot]) ~ section-view:not([slot]) {
|
|
86
|
+
:where(&:not(menu-view *)) {
|
|
82
87
|
padding-block-start: var(--list--section-gap,);
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
section-view:has(~ :not([slot], section-view)) {
|
|
91
|
-
:where(&) {
|
|
90
|
+
// NOTE: apply to bottom of sections when they have non-section adjacents
|
|
91
|
+
section-view:not([slot]):has(~ :not([slot], section-view)) {
|
|
92
|
+
:where(&:not(menu-view *)) {
|
|
92
93
|
padding-block-end: var(--list--section-gap,);
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -97,29 +98,32 @@
|
|
|
97
98
|
// padding-bottom: calc(var(--list--section-gap, 0px) / 2);
|
|
98
99
|
// }
|
|
99
100
|
// }
|
|
100
|
-
:
|
|
101
|
-
|
|
101
|
+
// NOTE: apply gap to top of details when adjacent to any(except summary)
|
|
102
|
+
// :not([slot], [is='disclosure-group'], summary) ~ [is='disclosure-group']:not([slot]) {
|
|
103
|
+
:not([slot], summary) ~ [is='disclosure-group']:not([slot]) {
|
|
104
|
+
:where(&:not(menu-view *)) {
|
|
102
105
|
margin-block-start: var(--list--details-gap,);
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
|
-
[is='disclosure-group']:not([slot]) ~ [is='disclosure-group'] {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
// [is='disclosure-group']:not([slot]) ~ [is='disclosure-group']:not([slot]) {
|
|
109
|
+
// :where(&:not(menu-view *)) {
|
|
110
|
+
// margin-block-start: calc(var(--list--details-gap, 0px) / 2);
|
|
111
|
+
// }
|
|
112
|
+
// }
|
|
113
|
+
// NOTE: apply to bottom of details when they have non-details adjacents
|
|
114
|
+
[is='disclosure-group']:not([slot]):has(~ :not([slot], [is='disclosure-group'])) {
|
|
115
|
+
:where(&:not(menu-view *)) {
|
|
112
116
|
margin-block-end: var(--list--details-gap,);
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
|
-
[is='disclosure-group']:has(~ [is='disclosure-group']:not([slot])) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
119
|
+
// [is='disclosure-group']:not([slot]):has(~ [is='disclosure-group']:not([slot])) {
|
|
120
|
+
// :where(&:not(menu-view *)) {
|
|
121
|
+
// margin-block-end: calc(var(--list--details-gap, 0px) / 2);
|
|
122
|
+
// }
|
|
123
|
+
// }
|
|
120
124
|
|
|
121
125
|
// SECTION: wire paddings
|
|
122
|
-
:where(
|
|
126
|
+
:where(&:not(menu-view *)) {
|
|
123
127
|
--itempadistart: var(--list--item-padding-inline-start, 0rem);
|
|
124
128
|
--itempadiend: calc(var(--list--item-padding-inline-end, 0rem) + var(--list--accessories-size, 0rem));
|
|
125
129
|
--itempadbstart: var(--list--item-padding-block-start,);
|
|
@@ -140,14 +144,11 @@
|
|
|
140
144
|
}
|
|
141
145
|
|
|
142
146
|
// SECTION: overwrites for details
|
|
143
|
-
[is='disclosure-group'] {
|
|
147
|
+
[is='disclosure-group']:not(menu-view *) {
|
|
144
148
|
> :not(summary) {
|
|
145
149
|
:where(&) {
|
|
146
150
|
--itemface: var(--list--details-background-color, var(--list--item-background-color,));
|
|
147
|
-
--itemhighlightface: var(
|
|
148
|
-
--list--selecteddetails-background-color,
|
|
149
|
-
var(--list--highlighteditem-background-color, var(--list--item-background-color,))
|
|
150
|
-
);
|
|
151
|
+
--itemhighlightface: var(--list--selecteddetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
151
152
|
--itemactiveface: var(--list--selecteddetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
152
153
|
|
|
153
154
|
--itemtext: var(--list--details-color, var(--list--item-color,));
|
|
@@ -158,14 +159,8 @@
|
|
|
158
159
|
> summary {
|
|
159
160
|
:where([is='disclosure-group'][open] &) {
|
|
160
161
|
--itemface: var(--list--opendetails-background-color, var(--list--item-background-color,));
|
|
161
|
-
--itemhighlightface: var(
|
|
162
|
-
|
|
163
|
-
var(--list--highlighteditem-background-color, var(--list--item-background-color,))
|
|
164
|
-
);
|
|
165
|
-
--itemactiveface: var(
|
|
166
|
-
--list--selectedopendetails-background-color,
|
|
167
|
-
var(--list--highlighteditem-background-color, var(--list--item-background-color,))
|
|
168
|
-
);
|
|
162
|
+
--itemhighlightface: var(--list--selectedopendetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
163
|
+
--itemactiveface: var(--list--selectedopendetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
|
|
169
164
|
|
|
170
165
|
--itemtext: var(--list--opendetails-color, var(--list--item-color,));
|
|
171
166
|
--itemhighlighttext: var(--list--selectedopendetails-color, var(--list--highlighteditem-color, var(--list--item-color,)));
|
|
@@ -186,20 +181,14 @@
|
|
|
186
181
|
);
|
|
187
182
|
|
|
188
183
|
--itemtext: var(--list--opensummary-color, var(--list--item-color,));
|
|
189
|
-
--itemhighlighttext: var(
|
|
190
|
-
|
|
191
|
-
var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
|
|
192
|
-
);
|
|
193
|
-
--itemactivetext: var(
|
|
194
|
-
--list--selectedopensummary-color,
|
|
195
|
-
var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
|
|
196
|
-
);
|
|
184
|
+
--itemhighlighttext: var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
185
|
+
--itemactivetext: var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
197
186
|
}
|
|
198
187
|
}
|
|
199
188
|
}
|
|
200
189
|
}
|
|
201
|
-
> [is='disclosure-group'],
|
|
202
|
-
> section-view > [is='disclosure-group'] {
|
|
190
|
+
> [is='disclosure-group']:not(menu-view *),
|
|
191
|
+
> section-view > [is='disclosure-group']:not(menu-view *) {
|
|
203
192
|
--disclosure-style: var(--list--rootsummary-marker-display,);
|
|
204
193
|
|
|
205
194
|
> summary {
|
|
@@ -215,14 +204,8 @@
|
|
|
215
204
|
);
|
|
216
205
|
|
|
217
206
|
--itemtext: var(--list--rootsummary-color, var(--list--item-color,));
|
|
218
|
-
--itemhighlighttext: var(
|
|
219
|
-
|
|
220
|
-
var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
|
|
221
|
-
);
|
|
222
|
-
--itemactivetext: var(
|
|
223
|
-
--list--selectedrootsummary-color,
|
|
224
|
-
var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
|
|
225
|
-
);
|
|
207
|
+
--itemhighlighttext: var(--list--selectedrootsummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
208
|
+
--itemactivetext: var(--list--selectedrootsummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
|
|
226
209
|
|
|
227
210
|
// overwrite extra stuff for rootsummary
|
|
228
211
|
// outline: red solid 4px;
|
|
@@ -244,17 +227,11 @@
|
|
|
244
227
|
--itemface: var(--list--rootsummary-background-color, var(--list--opensummary-background-color, var(--list--item-background-color,)));
|
|
245
228
|
--itemhighlightface: var(
|
|
246
229
|
--list--selectedrootsummary-background-color,
|
|
247
|
-
var(
|
|
248
|
-
--list--selectedopensummary-background-color,
|
|
249
|
-
var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
|
|
250
|
-
)
|
|
230
|
+
var(--list--selectedopensummary-background-color, var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,))))
|
|
251
231
|
);
|
|
252
232
|
--itemactiveface: var(
|
|
253
233
|
--list--selectedrootsummary-background-color,
|
|
254
|
-
var(
|
|
255
|
-
--list--selectedopensummary-background-color,
|
|
256
|
-
var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
|
|
257
|
-
)
|
|
234
|
+
var(--list--selectedopensummary-background-color, var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,))))
|
|
258
235
|
);
|
|
259
236
|
|
|
260
237
|
--itemtext: var(--list--rootsummary-color, var(--list--opensummary-color, var(--list--item-color,)));
|
|
@@ -271,9 +248,9 @@
|
|
|
271
248
|
}
|
|
272
249
|
|
|
273
250
|
// SECTION: add borders + arrows
|
|
274
|
-
> :not([slot]) ~ :not([slot], section-view),
|
|
275
|
-
section-view > :not([slot]) ~ :not([slot], section-view),
|
|
276
|
-
[is='disclosure-group'] > :not([slot]) ~ :not([slot], section-view) {
|
|
251
|
+
> :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
252
|
+
section-view > :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
253
|
+
[is='disclosure-group'] > :not([slot]) ~ :not([slot], section-view, menu-view *) {
|
|
277
254
|
:where(&) {
|
|
278
255
|
position: relative;
|
|
279
256
|
|
|
@@ -319,9 +296,9 @@
|
|
|
319
296
|
}
|
|
320
297
|
|
|
321
298
|
// SECTION: sharpen top corners
|
|
322
|
-
> :not([slot]) ~ :not([slot], section-view),
|
|
323
|
-
section-view > :not([slot]) ~ :not([slot], section-view),
|
|
324
|
-
[is='disclosure-group'] > :not([slot]) ~ :not([slot]) {
|
|
299
|
+
> :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
300
|
+
section-view > :not([slot]) ~ :not([slot], section-view, menu-view *),
|
|
301
|
+
[is='disclosure-group'] > :not([slot]) ~ :not([slot], menu-view *) {
|
|
325
302
|
:where(&) {
|
|
326
303
|
// outline: yellow solid 5px;
|
|
327
304
|
--itemradiustl: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
|
|
@@ -340,10 +317,10 @@
|
|
|
340
317
|
}
|
|
341
318
|
|
|
342
319
|
// SECTION: sharpen bottom corners
|
|
343
|
-
> :not([slot]):has(~ :not([slot], section-view)),
|
|
344
|
-
section-view > :not([slot]):has(~ :not([slot], section-view)),
|
|
345
|
-
[is='disclosure-group'] > :not([slot], summary):has(~ :not([slot])),
|
|
346
|
-
[is='disclosure-group']:not([data-state='closed']) > summary {
|
|
320
|
+
> :not([slot]):has(~ :not([slot], section-view, menu-view *)),
|
|
321
|
+
section-view > :not([slot]):has(~ :not([slot], section-view, menu-view *)),
|
|
322
|
+
[is='disclosure-group'] > :not([slot], summary, menu-view *):has(~ :not([slot])),
|
|
323
|
+
[is='disclosure-group']:not([data-state='closed'], menu-view *) > summary {
|
|
347
324
|
:where(&) {
|
|
348
325
|
// outline: green solid 5px;
|
|
349
326
|
--itemradiusbl: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
|
|
@@ -374,31 +351,58 @@
|
|
|
374
351
|
// }
|
|
375
352
|
|
|
376
353
|
// SECTION: style section heders/footers
|
|
377
|
-
section-view:not(section-view section-view) {
|
|
378
|
-
:where(&)
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
calc(var(--list--root-padding-inline, 0px) + var(--itempadiend, 0px));
|
|
354
|
+
section-view:not(section-view section-view, menu-view *) {
|
|
355
|
+
:where(&) {
|
|
356
|
+
&::part(section-footer-stack),
|
|
357
|
+
&::part(section-header-stack) {
|
|
358
|
+
// outline: magenta 4px solid;
|
|
359
|
+
padding-inline: calc(var(--list--root-padding-inline, 0px) + var(--itempadistart, 0px)) calc(var(--list--root-padding-inline, 0px) + var(--itempadiend, 0px));
|
|
383
360
|
|
|
384
|
-
|
|
361
|
+
margin-inline: calc(var(--list--root-padding-inline) * -1);
|
|
385
362
|
|
|
386
|
-
|
|
387
|
-
|
|
363
|
+
padding-block: 1px;
|
|
364
|
+
}
|
|
388
365
|
|
|
389
|
-
|
|
390
|
-
|
|
366
|
+
&::part(section-header-stack) {
|
|
367
|
+
top: var(--list--sticky-block-size, 0px); // + var(--navigation-bar-block-size));
|
|
391
368
|
|
|
392
|
-
|
|
369
|
+
position: sticky;
|
|
370
|
+
|
|
371
|
+
// backdrop-filter: blur(20px);
|
|
372
|
+
|
|
373
|
+
// text-shadow: 0 0 5px var(--face);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
393
376
|
|
|
394
|
-
|
|
377
|
+
// &:is([list-style*='inset'] section-view, [form-style*='inset'] section-view) {
|
|
378
|
+
// :where(&) {
|
|
379
|
+
// &::part(section-header-stack) {
|
|
380
|
+
// top: calc(var(--list--sticky-block-size, 0px) + 1rem);
|
|
381
|
+
// }
|
|
382
|
+
// }
|
|
383
|
+
// }
|
|
395
384
|
|
|
396
|
-
|
|
385
|
+
&:is(
|
|
386
|
+
scroll-view:has(
|
|
387
|
+
~ tool-bar > [slot^='top-bar'],
|
|
388
|
+
~ tool-bar > [slot='cancellation-action'],
|
|
389
|
+
~ tool-bar > [slot='primary-action'],
|
|
390
|
+
~ tool-bar > [slot='confirmation-action'],
|
|
391
|
+
~ tool-bar > [slot='destructive-action']
|
|
392
|
+
)
|
|
393
|
+
section-view,
|
|
394
|
+
scroll-view:has(> [slot^='top-bar'], > [slot='cancellation-action'], > [slot='primary-action'], > [slot='confirmation-action'], > [slot='destructive-action']) section-view
|
|
395
|
+
) {
|
|
396
|
+
:where(&) {
|
|
397
|
+
&::part(section-header-stack) {
|
|
398
|
+
top: calc(var(--list--sticky-block-size, 0px) + var(--navigation-bar-block-size));
|
|
399
|
+
}
|
|
400
|
+
}
|
|
397
401
|
}
|
|
398
402
|
}
|
|
399
403
|
|
|
400
404
|
// SECTION: Enable 2-col layout
|
|
401
|
-
&[columns='2'] {
|
|
405
|
+
&[columns='2']:not(menu-view *) {
|
|
402
406
|
:where(&) {
|
|
403
407
|
--list--host-grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
404
408
|
|
|
@@ -482,26 +486,11 @@
|
|
|
482
486
|
|
|
483
487
|
// SECTION: add accessories
|
|
484
488
|
// &:has(summary[marker-placement='leading']) {
|
|
485
|
-
>
|
|
486
|
-
section-view >
|
|
487
|
-
[is='disclosure-group'] >
|
|
488
|
-
//
|
|
489
|
-
|
|
490
|
-
// --item-accessory-size: 24px;
|
|
491
|
-
|
|
492
|
-
// --list--item-grid-template-columns: minmax(0, 1fr) 50px;
|
|
493
|
-
|
|
494
|
-
// &:not(:is(button)) {
|
|
495
|
-
// --list--accessories-display: none;
|
|
496
|
-
// // --list--accessories-padding-inline-end: 24px;
|
|
497
|
-
// }
|
|
498
|
-
|
|
499
|
-
// &:is(button) {
|
|
500
|
-
// position: relative;
|
|
501
|
-
// display: grid;
|
|
502
|
-
// grid-template-columns: minmax(0, 1fr) 24px;
|
|
503
|
-
|
|
504
|
-
&:is(button) {
|
|
489
|
+
> #{$list-item-selector},
|
|
490
|
+
section-view > #{$list-item-selector},
|
|
491
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
492
|
+
// NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
|
|
493
|
+
&:is(navigation-split-view button[navigation-link], navigation-stack button[navigation-link]) {
|
|
505
494
|
:where(&) {
|
|
506
495
|
position: relative;
|
|
507
496
|
|
|
@@ -522,7 +511,6 @@
|
|
|
522
511
|
}
|
|
523
512
|
}
|
|
524
513
|
}
|
|
525
|
-
// }
|
|
526
514
|
}
|
|
527
515
|
// }
|
|
528
516
|
// [is='disclosure-group'] summary [slot='marker'] {
|
|
@@ -533,23 +521,62 @@
|
|
|
533
521
|
// --itempadistart: calc(calc(var(--root-font-size) * 1px) * var(--list--accessory-size) + var(--list--item-padding-inline-start, 0px));
|
|
534
522
|
// }
|
|
535
523
|
// }
|
|
524
|
+
|
|
525
|
+
// SECTION: add tints
|
|
526
|
+
> #{$list-item-selector},
|
|
527
|
+
section-view > #{$list-item-selector},
|
|
528
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
529
|
+
// NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
|
|
530
|
+
// &:is(button:not([is='navigation-link'])) {
|
|
531
|
+
// :where(&) {
|
|
532
|
+
// --itemtext: blue;
|
|
533
|
+
// }
|
|
534
|
+
// }
|
|
535
|
+
&:is(label-view[list-item-tint]) {
|
|
536
|
+
:where(&[list-item-tint] > [slot='icon']) {
|
|
537
|
+
color: var(--accentColor);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
// &:is(button[list-item-tint='red']) {
|
|
541
|
+
// :where(&) {
|
|
542
|
+
// --itemtext: red;
|
|
543
|
+
|
|
544
|
+
// --insetgroupedlist-highlighteditem-background-color:red;
|
|
545
|
+
// --insetgroupedlist-highlighteditem-color:red;
|
|
546
|
+
// }
|
|
547
|
+
// }
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// // SECTION: add searchable
|
|
551
|
+
// > [slot='searchable'] {
|
|
552
|
+
// :where(&) {
|
|
553
|
+
// position: sticky;
|
|
554
|
+
|
|
555
|
+
// top: 20px
|
|
556
|
+
|
|
557
|
+
// background: red;
|
|
558
|
+
// }
|
|
559
|
+
// }
|
|
536
560
|
}
|
|
537
561
|
}
|
|
538
562
|
|
|
539
563
|
@layer #{vars.$colors-layer} {
|
|
540
564
|
// componentize
|
|
541
565
|
%list {
|
|
542
|
-
>
|
|
543
|
-
section-view >
|
|
544
|
-
[is='disclosure-group'] >
|
|
566
|
+
> #{$list-item-selector},
|
|
567
|
+
section-view > #{$list-item-selector},
|
|
568
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
545
569
|
@include mixins.add-focus-visible-state {
|
|
546
570
|
--itemface: var(--itemhighlightface,);
|
|
547
571
|
--itemtext: var(--itemhighlighttext,);
|
|
548
572
|
|
|
549
573
|
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
550
574
|
|
|
551
|
-
|
|
552
|
-
|
|
575
|
+
> * {
|
|
576
|
+
@include mixins.takeover-color-vars(item);
|
|
577
|
+
// --secondary: var(--itemtext);
|
|
578
|
+
// --blue: var(--itemtext);
|
|
579
|
+
}
|
|
553
580
|
}
|
|
554
581
|
}
|
|
555
582
|
}
|
|
@@ -558,9 +585,9 @@
|
|
|
558
585
|
@layer #{vars.$ui-layer} {
|
|
559
586
|
// componentize
|
|
560
587
|
%list {
|
|
561
|
-
>
|
|
562
|
-
section-view >
|
|
563
|
-
[is='disclosure-group'] >
|
|
588
|
+
> #{$list-item-selector},
|
|
589
|
+
section-view > #{$list-item-selector},
|
|
590
|
+
[is='disclosure-group'] > #{$list-item-selector} {
|
|
564
591
|
// :where(&:is(button)) {
|
|
565
592
|
@include mixins.add-jsactive-state {
|
|
566
593
|
--itemface: var(--itemactiveface,);
|
|
@@ -568,8 +595,11 @@
|
|
|
568
595
|
|
|
569
596
|
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
570
597
|
|
|
571
|
-
|
|
572
|
-
|
|
598
|
+
> * {
|
|
599
|
+
@include mixins.takeover-color-vars(item);
|
|
600
|
+
}
|
|
601
|
+
// --secondary: var(--itemtext);
|
|
602
|
+
// --blue: var(--itemtext);
|
|
573
603
|
}
|
|
574
604
|
|
|
575
605
|
&[aria-selected='true'] {
|
|
@@ -579,8 +609,11 @@
|
|
|
579
609
|
|
|
580
610
|
--list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
|
|
581
611
|
|
|
582
|
-
|
|
583
|
-
|
|
612
|
+
> * {
|
|
613
|
+
@include mixins.takeover-color-vars(item);
|
|
614
|
+
// --secondary: var(--itemtext);
|
|
615
|
+
// --blue: var(--itemtext);
|
|
616
|
+
}
|
|
584
617
|
}
|
|
585
618
|
}
|
|
586
619
|
// }
|