@swiftwc/ui 0.0.0-dev.6 → 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
|
@@ -3,88 +3,131 @@
|
|
|
3
3
|
|
|
4
4
|
@layer #{vars.$components-layer} {
|
|
5
5
|
tool-bar {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
width: 100%;
|
|
6
|
+
:where(&) {
|
|
7
|
+
pointer-events: none;
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
place-content: center;
|
|
12
|
-
// grid-template-columns: 1fr auto 1fr;
|
|
9
|
+
touch-action: none;
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
color: var(--text,);
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
grid-template-
|
|
13
|
+
grid-template-columns: minmax(0, 1fr);
|
|
14
|
+
grid-template-rows: auto 1fr auto;
|
|
15
|
+
grid-template-areas:
|
|
16
|
+
'top-bar'
|
|
17
|
+
'spacer'
|
|
18
|
+
'bottom-bar';
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
:where(
|
|
22
|
+
& > *:not(sidebar-toggle),
|
|
23
|
+
& > sidebar-toggle > tool-bar-item,
|
|
24
|
+
tab-view > sidebar-toggle > tool-bar-item,
|
|
25
|
+
navigation-split-view > sidebar-toggle > tool-bar-item
|
|
26
|
+
) {
|
|
27
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter);
|
|
28
|
+
box-shadow: var(--toolbar-cell-box-shadow);
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
height: 20px;
|
|
28
|
-
background: green;
|
|
29
|
-
}
|
|
30
|
+
min-inline-size: var(--toolbar-cell-min-size);
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
// tfo
|
|
33
|
+
transform: var(--toolbar-cell-scale,);
|
|
34
|
+
filter: var(--toolbar-cell-filter,);
|
|
35
|
+
opacity: var(--toolbar-cell-opacity,);
|
|
36
|
+
|
|
37
|
+
// min-width: calc(var(--tool-bar-block-size) - var(--toolbar-cell-block-padding-start) - var(--toolbar-cell-block-padding-end));
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
:where(&)::part(top-bar),
|
|
41
|
+
:where(&)::part(bottom-bar) {
|
|
42
|
+
position: relative; // SAFARI BUG
|
|
43
|
+
|
|
44
|
+
padding-inline: var(--safe-area-inset-left, 0px) var(--safe-area-inset-right, 0px);
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
|
|
47
|
+
grid-template-columns: auto 1fr auto;
|
|
48
|
+
column-gap: var(--toolbar-col-gap);
|
|
49
|
+
// grid-auto-rows: 40px;
|
|
50
|
+
|
|
51
|
+
grid-template-rows: var(--toolbar-cell-min-size);
|
|
52
|
+
|
|
53
|
+
// place-items: center;
|
|
54
|
+
place-content: center; // middle of y axis
|
|
41
55
|
}
|
|
42
|
-
}
|
|
43
56
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
&::before {
|
|
52
|
-
width: calc(
|
|
53
|
-
var(--navbar-padding-inline-start, 0px) +
|
|
54
|
-
var(--toolbar-area-inset-left, 0px)
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
+
:where(&)::part(top-bar) {
|
|
58
|
+
// padding-inline: calc(
|
|
59
|
+
// var(--safe-area-inset-left, 0px) + var(--navbar-area-inset-left, 0px)
|
|
60
|
+
// )
|
|
61
|
+
// calc(
|
|
62
|
+
// var(--safe-area-inset-right, 0px) + var(--navbar-area-inset-right, 0px)
|
|
63
|
+
// );
|
|
57
64
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
grid-area: top-bar;
|
|
66
|
+
|
|
67
|
+
block-size: calc(var(--safe-area-inset-top) + var(--navigation-bar-block-size));
|
|
68
|
+
|
|
69
|
+
padding-block-start: var(--safe-area-inset-top);
|
|
61
70
|
}
|
|
62
71
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
:where(&)::part(bottom-bar) {
|
|
73
|
+
// padding-inline: calc(
|
|
74
|
+
// var(--safe-area-inset-left, 0px) + var(--toolbar-area-inset-left, 0px)
|
|
75
|
+
// )
|
|
76
|
+
// calc(
|
|
77
|
+
// var(--safe-area-inset-right, 0px) + var(--toolbar-area-inset-right, 0px)
|
|
78
|
+
// );
|
|
79
|
+
|
|
80
|
+
grid-area: bottom-bar;
|
|
81
|
+
|
|
82
|
+
block-size: calc(var(--safe-area-inset-bottom) + var(--tool-bar-block-size));
|
|
83
|
+
|
|
84
|
+
padding-block-end: var(--safe-area-inset-bottom);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where(&)::part(toolbar-leading-stack),
|
|
88
|
+
:where(&)::part(toolbar-principal-stack),
|
|
89
|
+
:where(&)::part(toolbar-trailing-stack) {
|
|
90
|
+
display: grid;
|
|
91
|
+
|
|
92
|
+
grid-auto-flow: column;
|
|
93
|
+
grid-template-columns: minmax(0, 1fr);
|
|
68
94
|
|
|
69
|
-
|
|
70
|
-
top: calc(100% - var(--tool-bar-height) - var(--safe-area-inset-bottom));
|
|
71
|
-
// background-color: red;
|
|
72
|
-
height: calc(var(--safe-area-inset-bottom) + var(--tool-bar-height));
|
|
73
|
-
padding-block-end: var(--safe-area-inset-bottom);
|
|
74
|
-
transform: translateY(var(--safe-area-inset-bottom));
|
|
95
|
+
column-gap: var(--toolbar-col-gap);
|
|
75
96
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
97
|
+
padding-inline: var(--toolbar-col-gap) var(--toolbar-col-gap);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@include mixins.if-ipad-sheet-fits {
|
|
101
|
+
:where([is='sheet-view'] &)::part(top-bar),
|
|
102
|
+
:where([is='sheet-view'] &)::part(bottom-bar) {
|
|
103
|
+
--safe-area-inset-left: 0px;
|
|
104
|
+
|
|
105
|
+
--safe-area-inset-right: 0px;
|
|
79
106
|
}
|
|
80
107
|
|
|
81
|
-
|
|
82
|
-
|
|
108
|
+
:where([is='sheet-view'] &)::part(top-bar) {
|
|
109
|
+
--safe-area-inset-top: 0px;
|
|
83
110
|
}
|
|
84
|
-
}
|
|
85
111
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
112
|
+
:where([is='sheet-view'] &)::part(bottom-bar) {
|
|
113
|
+
--safe-area-inset-bottom: 0px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
89
116
|
}
|
|
90
117
|
}
|
|
118
|
+
|
|
119
|
+
// @layer #{vars.$final-layer} {
|
|
120
|
+
// tool-bar-item[slot^='top-bar'],
|
|
121
|
+
// tool-bar-item-group[slot^='top-bar'] {
|
|
122
|
+
// :where(& menu-view, & tool-bar-item-group[slot^='top-bar'] menu-view)::part(menu-dialog) {
|
|
123
|
+
// // position-area: center block-end;
|
|
124
|
+
// }
|
|
125
|
+
// }
|
|
126
|
+
|
|
127
|
+
// tool-bar-item[slot^='bottom-bar'],
|
|
128
|
+
// tool-bar-item-group[slot^='bottom-bar'] {
|
|
129
|
+
// :where(& menu-view, & menu-view)::part(menu-dialog) {
|
|
130
|
+
// // position-area: center block-start;
|
|
131
|
+
// }
|
|
132
|
+
// }
|
|
133
|
+
// }
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
|
|
3
|
+
@layer #{vars.$components-layer} {
|
|
4
|
+
v-flex-stack {
|
|
5
|
+
:where(&) {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-flow: column nowrap;
|
|
8
|
+
|
|
9
|
+
place-items: center;
|
|
10
|
+
place-content: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where(& > *) {
|
|
14
|
+
max-inline-size: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// > spacer {
|
|
18
|
+
// :where(&) {
|
|
19
|
+
// flex-grow: 1;
|
|
20
|
+
// }
|
|
21
|
+
// }
|
|
22
|
+
|
|
23
|
+
> [frame-height='infinity'] {
|
|
24
|
+
:where(&) {
|
|
25
|
+
flex-grow: 1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
@layer #{vars.$components-layer} {
|
|
4
4
|
v-keyboard {
|
|
5
|
-
|
|
5
|
+
:where(&) {
|
|
6
|
+
position: fixed;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
inset: 0lvh auto auto 0lvw;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
inline-size: 100lvw; //width
|
|
11
|
+
block-size: 100lvh; //height
|
|
12
|
+
}
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
@layer #{vars.$components-layer} {
|
|
4
4
|
v-stack {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
box-shadow: inset 0 0 0 2px magenta;
|
|
5
|
+
:where(&) {
|
|
6
|
+
grid-template-columns: minmax(0, 1fr);
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
place-items: center;
|
|
9
|
+
place-content: center;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// }
|
|
11
|
+
gap: 1rem;
|
|
12
|
+
}
|
|
14
13
|
|
|
15
|
-
//
|
|
16
|
-
//
|
|
14
|
+
// :where(& > *) {
|
|
15
|
+
// max-width: 100%;
|
|
17
16
|
// }
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$final-layer} {
|
|
5
|
+
@media (pointer: coarse) {
|
|
6
|
+
[is='glass-button'],
|
|
7
|
+
[is='glass-prominent-button'] {
|
|
8
|
+
:where(&[touch-glass]) {
|
|
9
|
+
--btn--scale: scale(1.02);
|
|
10
|
+
transition-duration: 100ms;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
menu-view {
|
|
15
|
+
:where(&[touch-glass])::part(menu-dialog) {
|
|
16
|
+
--menu--dialog-scale: scale(1.02);
|
|
17
|
+
transition-duration: 100ms;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[is='confirmation-dialog'] {
|
|
22
|
+
:where(&[touch-glass]) {
|
|
23
|
+
--confirmation--dialog-scale: scale(1.02);
|
|
24
|
+
transition-duration: 100ms;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
tool-bar {
|
|
29
|
+
:where(& > *[touch-glass]) {
|
|
30
|
+
--toolbar-cell-scale: scale(1.07);
|
|
31
|
+
transition-duration: 100ms;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[is='tab-bar'] {
|
|
36
|
+
@include mixins.if-iphone-portrait {
|
|
37
|
+
:where(&[touch-glass]) {
|
|
38
|
+
--tab-bar-scale: scale(1.02);
|
|
39
|
+
transition-duration: 100ms;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@include mixins.if-iphone-landscape {
|
|
43
|
+
:where(&[touch-glass]) {
|
|
44
|
+
--tab-bar-scale: scale(1.02);
|
|
45
|
+
transition-duration: 100ms;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@include mixins.if-ipad-landscape {
|
|
49
|
+
:where(&[touch-glass]) {
|
|
50
|
+
--tab-bar-scale: scale(1.02);
|
|
51
|
+
transition-duration: 100ms;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
navigation-split-view {
|
|
57
|
+
&:has(> [is='sidebar-view']) {
|
|
58
|
+
@include mixins.if-2col-split-view-fits {
|
|
59
|
+
:where(& > [is='sidebar-view'][touch-glass]) {
|
|
60
|
+
--sidebar-view-scale: scale(1.02);
|
|
61
|
+
transition-duration: 100ms;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
package/scss/index.scss
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
@use 'vars';
|
|
2
2
|
@use 'mixins';
|
|
3
3
|
|
|
4
|
-
@forward 'dev';
|
|
5
|
-
|
|
6
4
|
@forward 'base';
|
|
7
5
|
|
|
6
|
+
@forward 'placeholders';
|
|
7
|
+
|
|
8
8
|
@forward 'components';
|
|
9
9
|
|
|
10
|
+
@forward 'utils';
|
|
11
|
+
|
|
10
12
|
@forward 'transitions';
|
|
11
13
|
|
|
12
14
|
@forward 'colors';
|
|
13
15
|
|
|
16
|
+
@forward 'final';
|
|
17
|
+
|
|
14
18
|
@debug '@swiftwc/ui/scss ⚡️ loaded';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@mixin reset-dialog {
|
|
2
|
+
// :where(&) {
|
|
3
|
+
// position: absolute;
|
|
4
|
+
inset-inline: 0px;
|
|
5
|
+
inset-block: 0px; //inset-inline-start: 0px;
|
|
6
|
+
// width: fit-content;
|
|
7
|
+
// height: fit-content;
|
|
8
|
+
margin: 0px; //margin-top: auto;
|
|
9
|
+
border: none; //border-top-style: solid;border-right-style: solid;border-bottom-style: solid;border-left-style: solid;
|
|
10
|
+
padding: 0px; //padding-top: 1em;
|
|
11
|
+
background-color: transparent; //background-color: canvas;
|
|
12
|
+
color: transparent; //color: canvastext;
|
|
13
|
+
// display: none;
|
|
14
|
+
|
|
15
|
+
// dialog:modal {
|
|
16
|
+
// position: fixed;
|
|
17
|
+
// overflow-x: auto;
|
|
18
|
+
// overflow-y: auto;
|
|
19
|
+
// inset-block-start: 0px;
|
|
20
|
+
max-width: 100lvw; //max-width: calc(100% - 2em - 6px);
|
|
21
|
+
max-height: 100lvh; //max-height: calc(100% - 2em - 6px);
|
|
22
|
+
// visibility: visible;
|
|
23
|
+
// }
|
|
24
|
+
|
|
25
|
+
outline: none;
|
|
26
|
+
|
|
27
|
+
&::backdrop {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
}
|
|
30
|
+
// }
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin make-backdrop-transitionable {
|
|
34
|
+
&::backdrop {
|
|
35
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
36
|
+
transition:
|
|
37
|
+
display var(--view-transition-duration) ease-out allow-discrete,
|
|
38
|
+
overlay var(--view-transition-duration) ease-out allow-discrete,
|
|
39
|
+
background-color var(--view-transition-duration) ease-out allow-discrete;
|
|
40
|
+
will-change: background-color, overlay, display;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin add-dialog-backdrop-transition-frames($new-background-color) {
|
|
46
|
+
&::backdrop {
|
|
47
|
+
background-color: $new-background-color;
|
|
48
|
+
}
|
|
49
|
+
// must be after above rule!
|
|
50
|
+
@starting-style {
|
|
51
|
+
&::backdrop {
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin make-floating-sidebar {
|
|
58
|
+
:where(&) {
|
|
59
|
+
inline-size: var(--nav-split-view-sidebar-inline-size); // override
|
|
60
|
+
|
|
61
|
+
margin-inline-start: max(env(safe-area-inset-left), var(--sidebar-inline-spacing)); // float
|
|
62
|
+
|
|
63
|
+
--safe-area-inset-left: 0px; // now a floating
|
|
64
|
+
|
|
65
|
+
overflow: visible; // override
|
|
66
|
+
|
|
67
|
+
padding-block: max(var(--safe-area-inset-top), var(--sidebar-block-spacing)) max(var(--safe-area-inset-bottom), var(--sidebar-block-spacing));
|
|
68
|
+
|
|
69
|
+
border-radius: var(--sidebar-border-radius);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
> scroll-view {
|
|
73
|
+
&,
|
|
74
|
+
& ~ tool-bar {
|
|
75
|
+
:where(&) {
|
|
76
|
+
--safe-area-inset-top: 0px;
|
|
77
|
+
--safe-area-inset-bottom: 0px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
:where(&) {
|
|
81
|
+
border-radius: var(--sidebar-border-radius);
|
|
82
|
+
|
|
83
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter);
|
|
84
|
+
|
|
85
|
+
--scroll-view-box-shadow: var(--liquid-glass-box-shadow);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|