@swiftwc/ui 0.0.0-dev.7 → 0.0.0-dev.8
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/client/index.d.ts +13 -3
- package/generated/client/index.js +228 -158
- package/generated/components/bordered-button.d.ts +7 -0
- package/generated/components/bordered-button.js +20 -0
- package/generated/components/bordered-prominent-button.d.ts +7 -0
- package/generated/components/bordered-prominent-button.js +20 -0
- package/generated/components/borderless-button.d.ts +4 -4
- package/generated/components/borderless-button.js +26 -16
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +102 -0
- package/generated/components/date-picker.d.ts +46 -0
- package/generated/components/date-picker.js +430 -0
- package/generated/components/disclosure-group.d.ts +4 -7
- package/generated/components/disclosure-group.js +41 -66
- package/generated/components/form-view.d.ts +6 -0
- package/generated/components/form-view.js +58 -0
- package/generated/components/glass-button.d.ts +6 -0
- package/generated/components/glass-button.js +17 -0
- package/generated/components/glass-prominent-button.d.ts +6 -0
- package/generated/components/glass-prominent-button.js +17 -0
- package/generated/components/index.d.ts +34 -10
- package/generated/components/index.js +33 -14
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +83 -0
- package/generated/components/list-view.d.ts +5 -0
- package/generated/components/list-view.js +29 -0
- package/generated/components/menu-view.d.ts +9 -0
- package/generated/components/menu-view.js +133 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +177 -0
- package/generated/components/navigation-split-view.d.ts +4 -2
- package/generated/components/navigation-split-view.js +11 -2
- package/generated/components/navigation-stack.d.ts +3 -2
- package/generated/components/navigation-stack.js +15 -58
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +66 -0
- package/generated/components/picker-view.d.ts +27 -0
- package/generated/components/picker-view.js +442 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +20 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +1 -1
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +169 -62
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +81 -0
- package/generated/components/sheet-view.d.ts +4 -4
- package/generated/components/sheet-view.js +59 -16
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +89 -63
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +20 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +22 -0
- package/generated/components/tab-bar.d.ts +2 -4
- package/generated/components/tab-bar.js +24 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +114 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +244 -17
- package/generated/components/table-view.d.ts +7 -0
- package/generated/components/table-view.js +175 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +489 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +11 -0
- package/generated/components/tool-bar-item.d.ts +5 -0
- package/generated/components/tool-bar-item.js +19 -0
- package/generated/components/tool-bar.d.ts +7 -0
- package/generated/components/tool-bar.js +77 -0
- package/generated/components/v-keyboard.d.ts +2 -0
- package/generated/components/v-keyboard.js +64 -68
- package/generated/components/v-stack.d.ts +5 -0
- package/generated/components/v-stack.js +11 -0
- package/generated/confirmation-dialog/index.d.ts +1 -0
- package/generated/confirmation-dialog/index.js +1 -0
- package/generated/css/index.css +7463 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +7 -0
- package/generated/events/index.js +7 -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 +8 -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 +24 -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 +24 -0
- package/generated/i18n/index.js +139 -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 +25 -0
- package/generated/internal/class/form-associated-base.d.ts +20 -0
- package/generated/internal/class/form-associated-base.js +93 -0
- package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +46 -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 +77 -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/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +4 -0
- package/generated/internal/privateNamespace.d.ts +4 -0
- package/generated/internal/privateNamespace.js +1 -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 +22 -0
- package/generated/internal/utils/cash/index.js +23 -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/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +16 -1
- package/generated/internal/utils/index.js +17 -1
- 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 +28 -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/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/lifecycle-observer/index.d.ts +1 -0
- package/generated/lifecycle-observer/index.js +1 -0
- package/generated/namespace-browser/base.d.ts +36 -0
- package/generated/namespace-browser/base.js +92 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +2 -11
- package/generated/snapshot/index.js +31 -144
- package/package.json +19 -8
- package/scss/_components.scss +52 -16
- package/scss/_final.scss +1 -0
- package/scss/_mixins.scss +2 -171
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +16 -0
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +137 -23
- package/scss/base/_layout.scss +31 -15
- package/scss/base/_reboot.scss +118 -15
- package/scss/base/_root.scss +355 -25
- package/scss/colors/_index.scss +624 -70
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +22 -0
- package/scss/components/_bordered-prominent-button.scss +19 -0
- package/scss/components/_borderless-button.scss +11 -6
- package/scss/components/_confirmation-dialog.scss +110 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +155 -0
- package/scss/components/_disclosure-group.scss +100 -52
- package/scss/components/_form-view.scss +195 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +24 -0
- package/scss/components/_glass-prominent-button.scss +24 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-stack.scss +39 -0
- package/scss/components/_index.scss +224 -7
- package/scss/components/_label-view.scss +386 -0
- package/scss/components/_labeled-content.scss +9 -0
- package/scss/components/_list-view.scss +229 -0
- package/scss/components/_menu-view.scss +188 -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 +122 -0
- package/scss/components/_plain-button.scss +11 -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 +110 -66
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +68 -35
- package/scss/components/_sidebar-toggle.scss +90 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +201 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +268 -126
- package/scss/components/_table-column.scss +52 -0
- package/scss/components/_table-row.scss +172 -0
- package/scss/components/_table-view.scss +223 -0
- package/scss/components/_text-field.scss +37 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +128 -70
- package/scss/components/_tool-bar.scss +107 -64
- 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 +8 -9
- package/scss/final/_touch-glass.scss +67 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_dialog.scss +88 -0
- package/scss/mixins/_index.scss +405 -0
- package/scss/placeholders/_buttons.scss +83 -0
- package/scss/placeholders/_lists.scss +589 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +19 -0
- package/scss/transitions/_dialog.scss +7 -11
- package/scss/transitions/_disclosure-group.scss +35 -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/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +19 -0
- package/scss/utils/_frame.scss +84 -0
- package/scss/utils/_index.scss +68 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +242 -0
- package/web-components.html-data/en.json +330 -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/generated/{namespace/index.js → events/confirmation-dialog.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
2
|
|
|
3
|
-
@layer #{vars.$components-layer} {
|
|
3
|
+
@layer #{vars.$nav-components-layer} {
|
|
4
4
|
navigation-stack {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
:where(&) {
|
|
6
|
+
touch-action: none;
|
|
7
|
+
|
|
8
|
+
block-size: var(--100lvh, 100lvh);
|
|
9
|
+
}
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
6
|
+
$picker-ifs: (
|
|
7
|
+
menu: (
|
|
8
|
+
--picker--labelstack-display: grid,
|
|
9
|
+
--picker--stack-grid-template-columns: auto minmax(0, 1fr),
|
|
10
|
+
),
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
$picker-elses: (
|
|
14
|
+
--picker--stack-grid-template-columns: minmax(0, 1fr), //auto minmax(0, 1fr),
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
@mixin make-button-affordance() {
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
grid-auto-flow: column;
|
|
21
|
+
grid-template-columns: var(--picker-affordance-size) minmax(0, 1fr);
|
|
22
|
+
column-gap: var(--picker-affordance-col-gap);
|
|
23
|
+
|
|
24
|
+
@include mixins.make-marker-pseudos(vars.$picker-affordance, before);
|
|
25
|
+
|
|
26
|
+
&::before {
|
|
27
|
+
display: grid;
|
|
28
|
+
|
|
29
|
+
block-size: var(--picker-affordance-size);
|
|
30
|
+
inline-size: var(--picker-affordance-size);
|
|
31
|
+
|
|
32
|
+
background-color: var(--menuitemtext, var(--text));
|
|
33
|
+
|
|
34
|
+
transform: var(--tablecol--after-rotate,);
|
|
35
|
+
|
|
36
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
37
|
+
transition: transform 100ms ease-out;
|
|
38
|
+
will-change: transform;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[aria-selected='true']::before {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@layer #{vars.$components-layer} {
|
|
50
|
+
picker-view {
|
|
51
|
+
:where(&) {
|
|
52
|
+
grid-template-columns: minmax(0, 1fr);
|
|
53
|
+
|
|
54
|
+
grid-template-rows: minmax(0, 1fr);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(&)::part(picker-stack) {
|
|
58
|
+
grid-template-columns: var(--picker--stack-grid-template-columns,);
|
|
59
|
+
|
|
60
|
+
grid-template-rows: minmax(0, 1fr);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(&)::part(picker-label-stack) {
|
|
64
|
+
display: var(--picker--labelstack-display, none); // display: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(&) {
|
|
68
|
+
// --picker--stack-grid-template-columns: auto minmax(0, 1fr);
|
|
69
|
+
@include mixins.write-props($picker-elses);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where(tool-bar-item &) {
|
|
73
|
+
// --picker--labelstack-display: none;
|
|
74
|
+
// --picker--stack-grid-template-columns: minmax(0, 1fr);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(form &) {
|
|
78
|
+
// --picker--labelstack-display: grid;
|
|
79
|
+
// --picker--stack-grid-template-columns: auto minmax(0, 1fr);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where(& > menu-view > button) {
|
|
83
|
+
@container style(--picker-style: menu) {
|
|
84
|
+
@include make-button-affordance;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// SECTION: ifs
|
|
89
|
+
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
90
|
+
:where(&) {
|
|
91
|
+
@include mixins.write-ifs(--picker-style, $picker-ifs, $picker-elses);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// SECTION: ifs polyfill
|
|
96
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
97
|
+
:where(&:not([picker-style])) {
|
|
98
|
+
@each $v in vars.$picker-styles {
|
|
99
|
+
@container style(--picker-style: #{$v}) {
|
|
100
|
+
@include mixins.write-props(map.get($picker-ifs, $v)); //@include set-picker-style($v);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@each $v in vars.$picker-styles {
|
|
105
|
+
:where(&[picker-style='#{$v}']) {
|
|
106
|
+
:where(& > menu-view > button) {
|
|
107
|
+
@include make-button-affordance;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@include mixins.write-props(map.get($picker-ifs, $v)); //@include set-picker-style($v);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// SECTION: attrs finally
|
|
116
|
+
@supports (x: #{string.unquote('attr(x type(*))')}) {
|
|
117
|
+
:where(&) {
|
|
118
|
+
--picker-style: attr(picker-style type(<custom-ident>), inherit);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
6
|
+
@layer #{vars.$components-layer} {
|
|
7
|
+
// NOTE: A wrapper to {hv}-stack
|
|
8
|
+
scroll-view-proxy {
|
|
9
|
+
:where(&) {
|
|
10
|
+
display: contents;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:has(> v-stack, > h-stack) {
|
|
14
|
+
> v-stack,
|
|
15
|
+
> h-stack {
|
|
16
|
+
:where(&) {
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
@include mixins.contain-overscroll;
|
|
20
|
+
|
|
21
|
+
scrollbar-width: thin;
|
|
22
|
+
|
|
23
|
+
container: scroll-view-proxy / inline-size;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(& > :not([slot])) {
|
|
27
|
+
scroll-snap-stop: normal;
|
|
28
|
+
|
|
29
|
+
scroll-snap-align: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(&[distribution='leading'] > :not([slot])) {
|
|
33
|
+
scroll-snap-align: start;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(&) {
|
|
37
|
+
&::before {
|
|
38
|
+
@include mixins.span-all;
|
|
39
|
+
content: '';
|
|
40
|
+
display: inline-grid;
|
|
41
|
+
block-size: 1px;
|
|
42
|
+
inline-size: 1px;
|
|
43
|
+
z-index: -1;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
position: absolute;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
> v-stack {
|
|
51
|
+
:where(&) {
|
|
52
|
+
overflow: clip auto;
|
|
53
|
+
|
|
54
|
+
scroll-snap-type: block mandatory;
|
|
55
|
+
|
|
56
|
+
&::before {
|
|
57
|
+
block-size: calc(100cqb + 1px); // creates overflow
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
> h-stack {
|
|
63
|
+
:where(&) {
|
|
64
|
+
overflow: auto clip;
|
|
65
|
+
|
|
66
|
+
scroll-snap-type: inline mandatory;
|
|
67
|
+
|
|
68
|
+
&::before {
|
|
69
|
+
inline-size: calc(100cqi + 1px); // creates overflow
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(&[padding]) {
|
|
74
|
+
scroll-padding-inline: 1rem;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$components-layer} {
|
|
5
|
+
scroll-view {
|
|
6
|
+
:where(&) {
|
|
7
|
+
&::part(scroll-view-navbar),
|
|
8
|
+
&::part(scroll-view-toolbar) {
|
|
9
|
+
// background-color: red;
|
|
10
|
+
position: sticky;
|
|
11
|
+
inline-size: 100%;
|
|
12
|
+
|
|
13
|
+
place-items: center;
|
|
14
|
+
place-content: center;
|
|
15
|
+
// grid-template-columns: 1fr auto 1fr;
|
|
16
|
+
|
|
17
|
+
grid-template-columns: minmax(0, 1fr);
|
|
18
|
+
|
|
19
|
+
grid-area: toolbar;
|
|
20
|
+
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
|
|
23
|
+
visibility: collapse;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
scroll-view:has(~ tool-bar > [slot^='top-bar']),
|
|
29
|
+
scroll-view:has(> [slot^='top-bar']) {
|
|
30
|
+
:where(&)::part(scroll-view-navbar) {
|
|
31
|
+
visibility: visible;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
scroll-view:has(~ tool-bar > [slot^='bottom-bar']),
|
|
36
|
+
scroll-view:has(> [slot^='bottom-bar']) {
|
|
37
|
+
:where(&)::part(scroll-view-toolbar) {
|
|
38
|
+
visibility: visible;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
scroll-view {
|
|
43
|
+
:where(&) {
|
|
44
|
+
&::part(scroll-view-navbar-stack),
|
|
45
|
+
&::part(scroll-view-toolbar-stack) {
|
|
46
|
+
grid-template-columns: 1fr auto 1fr;
|
|
47
|
+
pointer-events: all;
|
|
48
|
+
|
|
49
|
+
column-gap: var(--toolbar-col-gap);
|
|
50
|
+
|
|
51
|
+
&::before,
|
|
52
|
+
&::after {
|
|
53
|
+
content: '';
|
|
54
|
+
display: grid;
|
|
55
|
+
pointer-events: none !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::part(scroll-view-navbar) {
|
|
60
|
+
top: 0;
|
|
61
|
+
block-size: calc(var(--safe-area-inset-top) + var(--navigation-bar-block-size));
|
|
62
|
+
padding-block-start: var(--safe-area-inset-top);
|
|
63
|
+
transform: translateY(calc(var(--safe-area-inset-top) * -1));
|
|
64
|
+
|
|
65
|
+
@media (pointer: fine) {
|
|
66
|
+
& {
|
|
67
|
+
justify-items: start;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include mixins.make-toolbar-pseudos(bottom);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&::part(scroll-view-toolbar) {
|
|
75
|
+
top: calc(100% - var(--tool-bar-block-size) - var(--safe-area-inset-bottom));
|
|
76
|
+
|
|
77
|
+
block-size: calc(var(--safe-area-inset-bottom) + var(--tool-bar-block-size));
|
|
78
|
+
padding-block-end: var(--safe-area-inset-bottom);
|
|
79
|
+
transform: translateY(var(--safe-area-inset-bottom));
|
|
80
|
+
|
|
81
|
+
@include mixins.make-toolbar-pseudos(top);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&::part(scroll-view-navbar-stack) {
|
|
85
|
+
@media (pointer: fine) {
|
|
86
|
+
& {
|
|
87
|
+
grid-template-columns: max-content auto 1fr;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&::before {
|
|
92
|
+
inline-size: calc(var(--navbar-padding-inline-start, 0px) + var(--navbar-safe-area-inset-left, 0px) + var(--toolbar-col-gap, 0px));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&::after {
|
|
96
|
+
inline-size: calc(var(--navbar-padding-inline-end, 0px) + var(--navbar-safe-area-inset-right, 0px) + var(--toolbar-col-gap, 0px));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&::part(scroll-view-toolbar-stack) {
|
|
101
|
+
&::before {
|
|
102
|
+
inline-size: calc(var(--toolbar-padding-inline-start) + var(--toolbar-safe-area-inset-left, 0px) + var(--toolbar-col-gap, 0px));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&::after {
|
|
106
|
+
inline-size: calc(var(--toolbar-padding-inline-end) + var(--toolbar-safe-area-inset-right, 0px) + var(--toolbar-col-gap, 0px));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// force measurer to take into account possible sidebar toggles
|
|
112
|
+
// &:not(dialog &) {
|
|
113
|
+
// :where(&) {
|
|
114
|
+
// &::part(#{vars.$scroll-view-navbar-stack-part-name}) {
|
|
115
|
+
// &::before {
|
|
116
|
+
// inline-size: calc(var(--navbar-padding-inline-start, 0px) + var(#{vars.$sidebar-toggle-padding-inline-start-css-prop}, 0px));
|
|
117
|
+
// // width: calc(
|
|
118
|
+
// // var(--navbar-padding-inline-start, 0px) + var(#{vars.$sidebar-toggle-padding-inline-start-css-prop}, 0px) +
|
|
119
|
+
// // max(var(--safe-area-inset-left), var(--sidebar-spacing, 0px))
|
|
120
|
+
// // );
|
|
121
|
+
// }
|
|
122
|
+
// }
|
|
123
|
+
// }
|
|
124
|
+
// }
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -2,78 +2,122 @@
|
|
|
2
2
|
@use '../mixins';
|
|
3
3
|
|
|
4
4
|
@layer #{vars.$components-layer} {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
scroll-view:has(> tool-bar[slot='navigation-bar']) > *:not([slot]) {
|
|
18
|
-
margin-block-start: var(--navigation-bar-height);
|
|
19
|
-
}
|
|
5
|
+
scroll-view {
|
|
6
|
+
navigation-stack > &,
|
|
7
|
+
navigation-split-view > &,
|
|
8
|
+
[is='sidebar-view'] > &,
|
|
9
|
+
body-view > &,
|
|
10
|
+
[is='full-screen'] > &,
|
|
11
|
+
[is='sheet-view'] > & {
|
|
12
|
+
&:has(~ tool-bar > [slot^='top-bar']),
|
|
13
|
+
&:has(> [slot^='top-bar']) {
|
|
14
|
+
:where(&) {
|
|
15
|
+
scroll-padding-top: var(--navigation-bar-block-size);
|
|
16
|
+
}
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
18
|
+
:where(& > *:not([slot])) {
|
|
19
|
+
// margin-block-start: var(--navigation-bar-block-size);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:has(~ tool-bar > [slot^='bottom-bar']),
|
|
24
|
+
&:has(> [slot^='bottom-bar']) {
|
|
25
|
+
:where(&) {
|
|
26
|
+
scroll-padding-bottom: var(--tool-bar-block-size);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(& > *:not([slot])) {
|
|
30
|
+
margin-block-end: var(--tool-bar-block-size);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(&) {
|
|
35
|
+
overflow: clip auto;
|
|
36
|
+
|
|
37
|
+
@include mixins.contain-overscroll;
|
|
38
|
+
|
|
39
|
+
// overflow-y: auto;
|
|
40
|
+
// overflow-x: clip;
|
|
41
|
+
// overscroll-behavior: contain;
|
|
42
|
+
// -webkit-overflow-scrolling: touch;
|
|
43
|
+
padding-block: var(--safe-area-inset-top) var(--safe-area-inset-bottom);
|
|
44
|
+
padding-inline: var(--safe-area-inset-left) var(--safe-area-inset-right);
|
|
45
|
+
|
|
46
|
+
container: scroll-view / size; //inline-size;
|
|
47
|
+
|
|
48
|
+
background-color: var(--face,);
|
|
49
|
+
color: var(--text,);
|
|
50
|
+
|
|
51
|
+
box-shadow: var(--scroll-view-box-shadow,);
|
|
52
|
+
|
|
53
|
+
transform: var(--scroll-view-translate,);
|
|
54
|
+
|
|
55
|
+
// --scroll-view-box-shadow: var(--screen-box-shadow);
|
|
56
|
+
|
|
57
|
+
// place-items: center;
|
|
58
|
+
//
|
|
59
|
+
// box-shadow:
|
|
60
|
+
// 2px 0 6px oklch(0 0 0 / 48%),
|
|
61
|
+
// 6px 0 16px oklch(0 0 0 / 67%) !important;
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
// grid-auto-rows: minmax(0, max-content);
|
|
64
|
+
// grid-template-rows: 100% 1px;
|
|
65
|
+
@include mixins.make-scrollable;
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
&::before {
|
|
68
|
+
block-size: calc(100% + var(--safe-area-inset-bottom) + 1px); //????? FIXME:
|
|
69
|
+
|
|
70
|
+
// outline: #c4e412 solid 10px;
|
|
71
|
+
// box-shadow: inset 0 0 0 6px #c4e412;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// @include mixins.make-toolbar-pseudos;
|
|
75
|
+
@include mixins.create-v-scroll-view;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&[navigation-bar-title-display-mode='large'] {
|
|
79
|
+
:where(&) {
|
|
80
|
+
> [slot='top-bar-principal'] {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
|
|
83
|
+
visibility: collapse;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// &:has(list-view section-view[js-stuck], [is='form-view'] section-view[js-stuck]) {
|
|
89
|
+
// :where(&) {
|
|
90
|
+
// --navbar-backdrop-inset-block-end: -25px;
|
|
91
|
+
// }
|
|
92
|
+
// }
|
|
93
|
+
|
|
94
|
+
sticky-container {
|
|
95
|
+
:where(&) {
|
|
96
|
+
@include mixins.make-toolbar-pseudos(bottom);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@supports (container-type: scroll-state) {
|
|
101
|
+
&:has(sticky-container[stuck]) {
|
|
102
|
+
:where(&)::part(scroll-view-navbar):before {
|
|
103
|
+
mask-image: none !important;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@supports not (container-type: scroll-state) {
|
|
109
|
+
&:has(sticky-container) {
|
|
110
|
+
:where(&)::part(scroll-view-navbar):before {
|
|
111
|
+
mask-image: none !important;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
73
117
|
|
|
74
118
|
@include mixins.if-ipad-sheet-fits {
|
|
75
119
|
[is='sheet-view'] {
|
|
76
|
-
scroll-view {
|
|
120
|
+
:where(& scroll-view:not(scroll-view scroll-view)) {
|
|
77
121
|
--safe-area-inset-top: 0px;
|
|
78
122
|
--safe-area-inset-right: 0px;
|
|
79
123
|
--safe-area-inset-bottom: 0px;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$components-layer} {
|
|
5
|
+
section-view {
|
|
6
|
+
:where(&) {
|
|
7
|
+
grid-template-columns: minmax(0, 1fr);
|
|
8
|
+
grid-template-rows: auto minmax(max-content, 1fr) auto; //0.1px auto minmax(max-content, 1fr) auto;
|
|
9
|
+
grid-template-areas:
|
|
10
|
+
'header'
|
|
11
|
+
'main'
|
|
12
|
+
'footer';
|
|
13
|
+
// 'sentinel'
|
|
14
|
+
|
|
15
|
+
gap: 0.5rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(&:has(> [slot='header']):not(:has(> [slot='footer']))) {
|
|
19
|
+
grid-template-rows: auto minmax(max-content, 1fr); //0.1px auto minmax(max-content, 1fr);
|
|
20
|
+
grid-template-areas:
|
|
21
|
+
'header'
|
|
22
|
+
'main';
|
|
23
|
+
} // 'sentinel'
|
|
24
|
+
|
|
25
|
+
:where(&:has(> [slot='footer']):not(:has(> [slot='header']))) {
|
|
26
|
+
grid-template-rows: minmax(max-content, 1fr) auto; //0.1px minmax(max-content, 1fr) auto;
|
|
27
|
+
grid-template-areas:
|
|
28
|
+
'main'
|
|
29
|
+
'footer';
|
|
30
|
+
} //'sentinel'
|
|
31
|
+
|
|
32
|
+
:where(&:not(:has(> [slot='footer'])):not(:has(> [slot='header']))) {
|
|
33
|
+
grid-template-rows: minmax(max-content, 1fr);
|
|
34
|
+
grid-template-areas: 'main';
|
|
35
|
+
} //'sentinel'
|
|
36
|
+
|
|
37
|
+
:where(&:not(:has(> [slot='header'])))::part(section-header-stack) {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(&:not(:has(> [slot='footer'])))::part(section-footer-stack) {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where(&)::part(section-header-stack),
|
|
46
|
+
:where(&)::part(section-footer-stack) {
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
// outline: solid magenta 4px;
|
|
49
|
+
// padding-block: 10px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(&)::part(section-header-stack) {
|
|
53
|
+
grid-area: header;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(&)::part(section-main-stack) {
|
|
57
|
+
grid-area: main;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where(&)::part(section-footer-stack) {
|
|
61
|
+
grid-area: footer;
|
|
62
|
+
}
|
|
63
|
+
// :where(& > *) {
|
|
64
|
+
// display: grid;
|
|
65
|
+
// }
|
|
66
|
+
|
|
67
|
+
// :where(&:has(~ :not([slot]))) {
|
|
68
|
+
// margin-bottom: 3rem;
|
|
69
|
+
// }
|
|
70
|
+
|
|
71
|
+
:where(&)::part(section-header-stack) {
|
|
72
|
+
order: -1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// :where(&:not(& &))::part(section-header-stack) {
|
|
76
|
+
// :where(&)::part(section-header-stack) {
|
|
77
|
+
// display: var(--section--headerstack-display, grid);
|
|
78
|
+
// }
|
|
79
|
+
|
|
80
|
+
// :where(&:not(& &))::part(section-footer-stack) {
|
|
81
|
+
// :where(&)::part(section-footer-stack) {
|
|
82
|
+
// display: var(--section--footerstack-display, grid);
|
|
83
|
+
// }
|
|
84
|
+
|
|
85
|
+
/* :where(&:not(& &))::part(section-footer-stack),
|
|
86
|
+
:where(&:not(& &))::part(section-header-stack) {
|
|
87
|
+
// pointer-events: none;
|
|
88
|
+
|
|
89
|
+
// outline: red solid 1px;
|
|
90
|
+
|
|
91
|
+
padding-inline: calc(var(--list--root-padding-inline, 0px) + var(--toolbaritempadistart, 0px))
|
|
92
|
+
calc(var(--list--root-padding-inline, 0px) + var(--toolbaritempadiend, 0px));
|
|
93
|
+
|
|
94
|
+
margin-inline: calc(var(--list--root-padding-inline) * -1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// :where(&:not(& &) [slot='header'] span) {
|
|
98
|
+
// backdrop-filter: blur(10px);
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
:where(&:not(& &))::part(section-header-stack) {
|
|
102
|
+
top: var(--navigation-bar-block-size);
|
|
103
|
+
|
|
104
|
+
position: sticky;
|
|
105
|
+
|
|
106
|
+
backdrop-filter: blur(20px);
|
|
107
|
+
|
|
108
|
+
// background: rgba(255, 255, 255, 0.5);
|
|
109
|
+
|
|
110
|
+
text-shadow: 0 0 5px var(--face);
|
|
111
|
+
} */
|
|
112
|
+
|
|
113
|
+
// :where(&:not(& &))::part(section-main-stack) {
|
|
114
|
+
// background-color: var(--groupedface,);
|
|
115
|
+
|
|
116
|
+
// border-radius: var(--toolbaritemradius,);
|
|
117
|
+
// }
|
|
118
|
+
}
|
|
119
|
+
}
|