@swiftwc/ui 0.0.0-dev.6 → 0.0.0-dev.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/generated/buses/alert-dialog.d.ts +2 -0
- package/generated/buses/alert-dialog.js +1 -0
- package/generated/buses/confirmation-dialog.d.ts +2 -0
- package/generated/buses/confirmation-dialog.js +1 -0
- package/generated/buses/index.d.ts +6 -0
- package/generated/buses/index.js +6 -0
- package/generated/buses/lifecycle-observer.d.ts +2 -0
- package/generated/buses/lifecycle-observer.js +1 -0
- package/generated/client/index.d.ts +22 -4
- package/generated/client/index.js +219 -181
- package/generated/components/alert-dialog.d.ts +8 -0
- package/generated/components/alert-dialog.js +99 -0
- package/generated/components/body-view.js +5 -2
- package/generated/components/bordered-button.d.ts +17 -0
- package/generated/components/bordered-button.js +56 -0
- package/generated/components/bordered-prominent-button.d.ts +17 -0
- package/generated/components/bordered-prominent-button.js +56 -0
- package/generated/components/borderless-button.d.ts +12 -4
- package/generated/components/borderless-button.js +47 -16
- package/generated/components/color-scheme.d.ts +7 -0
- package/generated/components/color-scheme.js +54 -0
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +113 -0
- package/generated/components/content-unavailable-view.d.ts +24 -0
- package/generated/components/content-unavailable-view.js +81 -0
- package/generated/components/date-picker.d.ts +36 -0
- package/generated/components/date-picker.js +461 -0
- package/generated/components/disclosure-group.d.ts +9 -7
- package/generated/components/disclosure-group.js +51 -65
- package/generated/components/fine-tooltip.d.ts +7 -0
- package/generated/components/fine-tooltip.js +107 -0
- package/generated/components/form-view.d.ts +9 -0
- package/generated/components/form-view.js +63 -0
- package/generated/components/glass-button.d.ts +16 -0
- package/generated/components/glass-button.js +53 -0
- package/generated/components/glass-prominent-button.d.ts +16 -0
- package/generated/components/glass-prominent-button.js +53 -0
- package/generated/components/h-stack.d.ts +10 -0
- package/generated/components/h-stack.js +19 -0
- package/generated/components/image-view.d.ts +9 -0
- package/generated/components/image-view.js +46 -0
- package/generated/components/index.d.ts +41 -10
- package/generated/components/index.js +41 -15
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +51 -0
- package/generated/components/labeled-content.d.ts +9 -0
- package/generated/components/labeled-content.js +115 -0
- package/generated/components/list-view.d.ts +8 -0
- package/generated/components/list-view.js +32 -0
- package/generated/components/menu-view.d.ts +12 -0
- package/generated/components/menu-view.js +142 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +181 -0
- package/generated/components/navigation-split-view.d.ts +7 -2
- package/generated/components/navigation-split-view.js +19 -3
- package/generated/components/navigation-stack.d.ts +6 -2
- package/generated/components/navigation-stack.js +23 -59
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +50 -0
- package/generated/components/picker-view.d.ts +44 -0
- package/generated/components/picker-view.js +1009 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +22 -0
- package/generated/components/progress-view.d.ts +13 -0
- package/generated/components/progress-view.js +120 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +4 -2
- package/generated/components/scroll-view-proxy.d.ts +8 -0
- package/generated/components/scroll-view-proxy.js +17 -0
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +179 -64
- package/generated/components/search-view.d.ts +7 -0
- package/generated/components/search-view.js +30 -0
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +85 -0
- package/generated/components/sheet-view.d.ts +3 -4
- package/generated/components/sheet-view.js +53 -17
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +76 -72
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +25 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +26 -0
- package/generated/components/tab-bar.d.ts +5 -4
- package/generated/components/tab-bar.js +34 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +125 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +252 -17
- package/generated/components/table-view.d.ts +12 -0
- package/generated/components/table-view.js +153 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +496 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +28 -0
- package/generated/components/tool-bar-item.d.ts +8 -0
- package/generated/components/tool-bar-item.js +66 -0
- package/generated/components/tool-bar.d.ts +19 -0
- package/generated/components/tool-bar.js +93 -0
- package/generated/components/v-keyboard.d.ts +4 -0
- package/generated/components/v-keyboard.js +72 -70
- package/generated/components/v-stack.d.ts +13 -0
- package/generated/components/v-stack.js +22 -0
- package/generated/css/index.css +8841 -0
- package/generated/events/alert-dialog.d.ts +8 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/confirmation-dialog.js +1 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +8 -0
- package/generated/events/index.js +8 -0
- package/generated/events/lifecycle-observer.d.ts +10 -0
- package/generated/events/lifecycle-observer.js +1 -0
- package/generated/events/picker-view.d.ts +15 -0
- package/generated/events/picker-view.js +1 -0
- package/generated/events/scroll-view.d.ts +10 -0
- package/generated/events/scroll-view.js +1 -0
- package/generated/events/tab-view.d.ts +28 -0
- package/generated/events/tab-view.js +1 -0
- package/generated/events/text-field.d.ts +8 -0
- package/generated/events/text-field.js +1 -0
- package/generated/i18n/index.d.ts +34 -0
- package/generated/i18n/index.js +167 -0
- package/generated/i18n/locales/el.d.ts +16 -0
- package/generated/i18n/locales/el.js +16 -0
- package/generated/i18n/locales/en.d.ts +16 -0
- package/generated/i18n/locales/en.js +16 -0
- package/generated/i18n/locales/index.d.ts +4 -0
- package/generated/i18n/locales/index.js +4 -0
- package/generated/internal/class/cleanup-registry.d.ts +5 -0
- package/generated/internal/class/cleanup-registry.js +38 -0
- package/generated/internal/class/css-style-observer.d.ts +8 -0
- package/generated/internal/class/css-style-observer.js +26 -0
- package/generated/internal/class/form-associated-base.d.ts +16 -0
- package/generated/internal/class/form-associated-base.js +78 -0
- package/generated/internal/class/mutation-observer-set.d.ts +9 -0
- package/generated/internal/class/mutation-observer-set.js +42 -0
- package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +64 -0
- package/generated/internal/class/navigation-path.d.ts +15 -0
- package/generated/internal/class/navigation-path.js +84 -0
- package/generated/internal/class/navigation-view.d.ts +8 -0
- package/generated/internal/class/navigation-view.js +72 -0
- package/generated/internal/class/resize-observer-singleton.d.ts +7 -0
- package/generated/internal/class/resize-observer-singleton.js +22 -0
- package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
- package/generated/internal/decorators/adaptive-slot.js +50 -0
- package/generated/internal/decorators/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +5 -0
- package/generated/internal/decorators/index.d.ts +6 -0
- package/generated/internal/decorators/index.js +6 -0
- package/generated/internal/decorators/microtask-on-connected.d.ts +39 -0
- package/generated/internal/decorators/microtask-on-connected.js +67 -0
- package/generated/internal/privateNamespace.d.ts +14 -0
- package/generated/internal/privateNamespace.js +168 -0
- package/generated/internal/utils/add.d.ts +1 -0
- package/generated/internal/utils/add.js +7 -0
- package/generated/internal/utils/cash/ancestors.d.ts +1 -0
- package/generated/internal/utils/cash/ancestors.js +27 -0
- package/generated/internal/utils/cash/index.d.ts +23 -0
- package/generated/internal/utils/cash/index.js +25 -0
- package/generated/internal/utils/cash/next-all.d.ts +1 -0
- package/generated/internal/utils/cash/next-all.js +10 -0
- package/generated/internal/utils/cash/next.d.ts +1 -0
- package/generated/internal/utils/cash/next.js +9 -0
- package/generated/internal/utils/cash/prev-all.d.ts +1 -0
- package/generated/internal/utils/cash/prev-all.js +10 -0
- package/generated/internal/utils/cash/prev.d.ts +1 -0
- package/generated/internal/utils/cash/prev.js +9 -0
- package/generated/internal/utils/cash/prop.d.ts +18 -0
- package/generated/internal/utils/cash/prop.js +30 -0
- package/generated/internal/utils/cash/siblings.d.ts +1 -0
- package/generated/internal/utils/cash/siblings.js +10 -0
- package/generated/internal/utils/clamp.d.ts +1 -0
- package/generated/internal/utils/clamp.js +4 -0
- package/generated/internal/utils/compare-big-decimals.d.ts +1 -0
- package/generated/internal/utils/compare-big-decimals.js +90 -0
- package/generated/internal/utils/debounce.d.ts +1 -0
- package/generated/internal/utils/debounce.js +13 -0
- package/generated/internal/utils/dev-flags.d.ts +3 -0
- package/generated/internal/utils/dev-flags.js +5 -0
- package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
- package/generated/internal/utils/ensure-placeholder.js +55 -0
- package/generated/internal/utils/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +21 -1
- package/generated/internal/utils/index.js +24 -1
- package/generated/internal/utils/is-inside.d.ts +1 -0
- package/generated/internal/utils/is-inside.js +4 -0
- package/generated/internal/utils/kebab-case.d.ts +1 -1
- package/generated/internal/utils/list-active.d.ts +7 -0
- package/generated/internal/utils/list-active.js +83 -0
- package/generated/internal/utils/microtask.d.ts +1 -0
- package/generated/internal/utils/microtask.js +3 -0
- package/generated/internal/utils/onoff.d.ts +45 -0
- package/generated/internal/utils/onoff.js +31 -0
- package/generated/internal/utils/render-label-icon.d.ts +2 -0
- package/generated/internal/utils/render-label-icon.js +19 -0
- package/generated/internal/utils/render-label-title.d.ts +2 -0
- package/generated/internal/utils/render-label-title.js +16 -0
- package/generated/internal/utils/render-label.d.ts +1 -0
- package/generated/internal/utils/render-label.js +19 -0
- package/generated/internal/utils/set.d.ts +1 -0
- package/generated/internal/utils/set.js +7 -0
- package/generated/internal/utils/sleep.d.ts +1 -0
- package/generated/internal/utils/sleep.js +3 -0
- package/generated/internal/utils/slow-hide-show.d.ts +1 -0
- package/generated/internal/utils/slow-hide-show.js +16 -0
- package/generated/internal/utils/timeout.d.ts +5 -0
- package/generated/internal/utils/timeout.js +16 -0
- package/generated/internal/utils/touch-glass.d.ts +7 -0
- package/generated/internal/utils/touch-glass.js +19 -0
- package/generated/namespace-browser/base.d.ts +45 -0
- package/generated/namespace-browser/base.js +115 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +4 -11
- package/generated/snapshot/index.js +55 -145
- package/package.json +33 -9
- package/scss/_components.scss +60 -13
- package/scss/_final.scss +1 -0
- package/scss/_functions.scss +10 -0
- package/scss/_mixins.scss +4 -169
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +22 -1
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +144 -23
- package/scss/base/_layout.scss +40 -16
- package/scss/base/_reboot.scss +151 -15
- package/scss/base/_root.scss +358 -25
- package/scss/colors/_index.scss +788 -70
- package/scss/components/_alert-dialog.scss +111 -0
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +57 -0
- package/scss/components/_bordered-prominent-button.scss +64 -0
- package/scss/components/_borderless-button.scss +36 -6
- package/scss/components/_confirmation-dialog.scss +102 -0
- package/scss/components/_content-unavailable-view.scss +54 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +153 -0
- package/scss/components/_disclosure-group.scss +147 -48
- package/scss/components/_fine-tooltip.scss +84 -0
- package/scss/components/_form-view.scss +233 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +59 -0
- package/scss/components/_glass-prominent-button.scss +70 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +29 -0
- package/scss/components/_image-view.scss +9 -0
- package/scss/components/_index.scss +239 -7
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +372 -0
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +67 -0
- package/scss/components/_list-view.scss +269 -0
- package/scss/components/_menu-view.scss +219 -0
- package/scss/components/_navigation-large-title.scss +27 -0
- package/scss/components/_navigation-split-view.scss +329 -269
- package/scss/components/_navigation-stack.scss +6 -6
- package/scss/components/_navigation-title.scss +10 -0
- package/scss/components/_picker-view.scss +307 -0
- package/scss/components/_plain-button.scss +18 -0
- package/scss/components/_progress-view.scss +98 -0
- package/scss/components/_scroll-view-proxy.scss +79 -0
- package/scss/components/_scroll-view-toolbars.scss +126 -0
- package/scss/components/_scroll-view.scss +114 -66
- package/scss/components/_search-view.scss +22 -0
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +78 -35
- package/scss/components/_sidebar-toggle.scss +87 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +207 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +270 -126
- package/scss/components/_table-column.scss +54 -0
- package/scss/components/_table-row.scss +240 -0
- package/scss/components/_table-view.scss +231 -0
- package/scss/components/_text-field.scss +53 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +81 -71
- package/scss/components/_tool-bar.scss +126 -63
- package/scss/components/_v-divider.scss +13 -0
- package/scss/components/_v-flex-stack.scss +29 -0
- package/scss/components/_v-keyboard.scss +6 -4
- package/scss/components/_v-stack.scss +15 -9
- package/scss/final/_touch-glass.scss +91 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_button.scss +44 -0
- package/scss/mixins/_color.scss +16 -0
- package/scss/mixins/_dialog.scss +89 -0
- package/scss/mixins/_index.scss +453 -0
- package/scss/placeholders/_buttons.scss +117 -0
- package/scss/placeholders/_lists.scss +594 -0
- package/scss/transitions/_alert-dialog.scss +18 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +27 -0
- package/scss/transitions/_disclosure-group.scss +35 -0
- package/scss/transitions/_fine-tooltip.scss +21 -0
- package/scss/transitions/_fwd.navbar.scss +4 -9
- package/scss/transitions/_fwd.scss +4 -34
- package/scss/transitions/_glass-button.scss +12 -0
- package/scss/transitions/_glass-prominent-button.scss +12 -0
- package/scss/transitions/_index.scss +35 -143
- package/scss/transitions/_menu-view.scss +26 -0
- package/scss/transitions/_navigation-split-view.scss +23 -0
- package/scss/transitions/_progress-view.scss +23 -0
- package/scss/transitions/_sheet-view.scss +30 -0
- package/scss/transitions/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +20 -0
- package/scss/utils/_frame.scss +91 -0
- package/scss/utils/_index.scss +78 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +222 -0
- package/web-components.html-data/en.json +721 -0
- package/generated/components/bottom-bar.d.ts +0 -10
- package/generated/components/bottom-bar.js +0 -73
- package/generated/components/navigation-bar.d.ts +0 -10
- package/generated/components/navigation-bar.js +0 -80
- package/generated/internal/class.d.ts +0 -18
- package/generated/internal/class.js +0 -18
- package/generated/namespace/index.d.ts +0 -6
- package/generated/styles.css +0 -1305
- package/scss/_dev.scss +0 -68
- package/scss/components/_tab-bar-stack.scss +0 -101
- package/scss/components/_toolbars.scss +0 -100
- package/scss/transitions/_dialog.scss +0 -32
- /package/generated/{namespace/index.js → events/alert-dialog.js} +0 -0
|
@@ -2,86 +2,96 @@
|
|
|
2
2
|
@use '../mixins';
|
|
3
3
|
|
|
4
4
|
@layer #{vars.$components-layer} {
|
|
5
|
-
tool-bar-item
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
5
|
+
tool-bar-item {
|
|
6
|
+
:where(&) {
|
|
7
|
+
// moved from > * of old
|
|
8
|
+
pointer-events: all;
|
|
9
|
+
|
|
10
|
+
// min-height: var(--toolbar-cell-min-size);
|
|
11
|
+
// min-width: var(--toolbar-cell-min-size);
|
|
12
|
+
// moved from > * of old
|
|
13
|
+
|
|
14
|
+
// background-color: red;
|
|
15
|
+
// padding: 5px;
|
|
16
|
+
border-radius: var(--pill-border-radius);
|
|
17
|
+
|
|
18
|
+
// height: 40px;
|
|
19
|
+
|
|
20
|
+
// pointer-events: all;
|
|
21
|
+
// container-type: inline-size;
|
|
22
|
+
|
|
23
|
+
//
|
|
24
|
+
// --toolbaritemface: var(--toolbar-cell-bg);
|
|
25
|
+
// --toolbaritempadistart: calc(var(--toolbar-cell-inline-padding) * 2);
|
|
26
|
+
// --toolbaritempadbstart: calc(var(--toolbar-cell-block-padding) * 2);
|
|
27
|
+
--toolbaritemradiustl: var(--toolbar-cell-border-radius);
|
|
28
|
+
--toolbaritemradiustr: var(--toolbar-cell-border-radius);
|
|
29
|
+
--toolbaritemradiusbl: var(--toolbar-cell-border-radius);
|
|
30
|
+
--toolbaritemradiusbr: var(--toolbar-cell-border-radius);
|
|
31
|
+
--toolbaritemborder: 0;
|
|
32
|
+
|
|
33
|
+
--menusummaryradiustl: var(--toolbar-cell-border-radius);
|
|
34
|
+
--menusummaryradiustr: var(--toolbar-cell-border-radius);
|
|
35
|
+
--menusummaryradiusbl: var(--toolbar-cell-border-radius);
|
|
36
|
+
--menusummaryradiusbr: var(--toolbar-cell-border-radius);
|
|
37
|
+
--menusummaryborder: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(&:has([disabled])) {
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// NOTE: MUST be right-after the above `all: unset` in this SAME page!
|
|
45
|
+
|
|
46
|
+
:where(& > button),
|
|
47
|
+
:where(& > picker-view > menu-view)::part(menu-summary),
|
|
48
|
+
:where(& > menu-view)::part(menu-summary) {
|
|
49
|
+
place-items: center;
|
|
50
|
+
|
|
51
|
+
place-content: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
> button {
|
|
55
|
+
@include mixins.takeover-button-slots;
|
|
56
|
+
|
|
57
|
+
// [tint] &,
|
|
58
|
+
// &[tint] {
|
|
59
|
+
// :where(&) {
|
|
60
|
+
// // NOTE: Make everything inside prominent buttons white
|
|
61
|
+
// --secondary: var(--btntext);
|
|
62
|
+
// --blue: var(--btntext);
|
|
63
|
+
|
|
64
|
+
// --accentColorEffective: var(--btntext);
|
|
65
|
+
// --accentColor: var(--btntext);
|
|
48
66
|
// }
|
|
49
67
|
// }
|
|
50
68
|
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
69
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
&:focus-visible {
|
|
61
|
-
background-color: var(--toolbar-cell-focus-bg);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// order matters! BEFORE active
|
|
65
|
-
@media (pointer: fine) {
|
|
66
|
-
&:hover {
|
|
67
|
-
background-color: var(--toolbar-cell-focus-bg);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
+
// NOTE: add paddings to labels w/ text in toolbar items
|
|
71
|
+
> button:has(> label-view > :not([slot])),
|
|
72
|
+
> picker-view > menu-view:has(> label-view > :not([slot])),
|
|
73
|
+
> menu-view:has(> label-view > :not([slot])) {
|
|
74
|
+
:where(& > label-view) {
|
|
75
|
+
--label-padding-inline: 0.5rem;
|
|
70
76
|
}
|
|
71
77
|
}
|
|
78
|
+
|
|
79
|
+
// NOTE: on fine screens, toolbar icons are a little smaller
|
|
80
|
+
// @media (pointer: fine) {
|
|
81
|
+
// > button > label-view,
|
|
82
|
+
// > menu-view > label-view {
|
|
83
|
+
// :where(&) {
|
|
84
|
+
// --label-image-size: 1.8;
|
|
85
|
+
// }
|
|
86
|
+
// }
|
|
87
|
+
// }
|
|
72
88
|
}
|
|
73
89
|
}
|
|
74
90
|
|
|
75
91
|
@layer #{vars.$ui-layer} {
|
|
76
|
-
tool-bar-item,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
&:not(:disabled):not([readonly]) {
|
|
81
|
-
&:active {
|
|
82
|
-
background-color: var(--toolbar-cell-active-bg);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
92
|
+
:where(tool-bar-item[slot]:has(menu-view[open])),
|
|
93
|
+
:where(tool-bar-item-group:has(> tool-bar-item menu-view[open])) {
|
|
94
|
+
--toolbar-cell-scale: var(--menu-host-offscreen-transform);
|
|
95
|
+
--toolbar-cell-filter: var(--menu-host-offscreen-filter);
|
|
86
96
|
}
|
|
87
97
|
}
|
|
@@ -3,88 +3,151 @@
|
|
|
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
|
-
display: grid;
|
|
24
|
-
}
|
|
21
|
+
:where(& > *:not(sidebar-toggle), & > sidebar-toggle > tool-bar-item, tab-view > sidebar-toggle > tool-bar-item, navigation-split-view > sidebar-toggle > tool-bar-item) {
|
|
22
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter);
|
|
23
|
+
box-shadow: var(--toolbar-cell-box-shadow);
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
height: 20px;
|
|
28
|
-
background: green;
|
|
29
|
-
}
|
|
25
|
+
min-inline-size: var(--toolbar-cell-min-size);
|
|
30
26
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
// tfo
|
|
28
|
+
transform: var(--toolbar-cell-scale,);
|
|
29
|
+
filter: var(--toolbar-cell-filter,);
|
|
30
|
+
opacity: var(--toolbar-cell-opacity,);
|
|
31
|
+
|
|
32
|
+
// min-width: calc(var(--tool-bar-block-size) - var(--toolbar-cell-block-padding-start) - var(--toolbar-cell-block-padding-end));
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
:where(&)::part(top-bar),
|
|
36
|
+
:where(&)::part(bottom-bar) {
|
|
37
|
+
position: relative; // SAFARI BUG
|
|
38
|
+
|
|
39
|
+
padding-inline: var(--safe-area-inset-left, 0px) var(--safe-area-inset-right, 0px);
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
|
|
42
|
+
grid-template-columns: auto 1fr auto;
|
|
43
|
+
column-gap: var(--toolbar-col-gap);
|
|
44
|
+
// grid-auto-rows: 40px;
|
|
45
|
+
|
|
46
|
+
grid-template-rows: var(--toolbar-cell-min-size);
|
|
47
|
+
|
|
48
|
+
// place-items: center;
|
|
49
|
+
place-content: center; // middle of y axis
|
|
41
50
|
}
|
|
42
|
-
}
|
|
43
51
|
|
|
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
|
-
}
|
|
52
|
+
:where(&)::part(top-bar) {
|
|
53
|
+
// padding-inline: calc(
|
|
54
|
+
// var(--safe-area-inset-left, 0px) + var(--navbar-area-inset-left, 0px)
|
|
55
|
+
// )
|
|
56
|
+
// calc(
|
|
57
|
+
// var(--safe-area-inset-right, 0px) + var(--navbar-area-inset-right, 0px)
|
|
58
|
+
// );
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
grid-area: top-bar;
|
|
61
|
+
|
|
62
|
+
block-size: calc(var(--safe-area-inset-top) + var(--navigation-bar-block-size));
|
|
63
|
+
|
|
64
|
+
padding-block-start: var(--safe-area-inset-top);
|
|
61
65
|
}
|
|
62
66
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
:where(&)::part(bottom-bar) {
|
|
68
|
+
// padding-inline: calc(
|
|
69
|
+
// var(--safe-area-inset-left, 0px) + var(--toolbar-area-inset-left, 0px)
|
|
70
|
+
// )
|
|
71
|
+
// calc(
|
|
72
|
+
// var(--safe-area-inset-right, 0px) + var(--toolbar-area-inset-right, 0px)
|
|
73
|
+
// );
|
|
68
74
|
|
|
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));
|
|
75
|
+
grid-area: bottom-bar;
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
block-size: calc(var(--safe-area-inset-bottom) + var(--tool-bar-block-size));
|
|
78
|
+
|
|
79
|
+
padding-block-end: var(--safe-area-inset-bottom);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where(&)::part(toolbar-leading-stack),
|
|
83
|
+
:where(&)::part(toolbar-principal-stack),
|
|
84
|
+
:where(&)::part(toolbar-trailing-stack) {
|
|
85
|
+
display: grid;
|
|
86
|
+
|
|
87
|
+
grid-auto-flow: column;
|
|
88
|
+
grid-template-columns: minmax(0, 1fr);
|
|
89
|
+
|
|
90
|
+
column-gap: var(--toolbar-col-gap);
|
|
91
|
+
|
|
92
|
+
padding-inline: var(--toolbar-col-gap) var(--toolbar-col-gap);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@include mixins.if-ipad-sheet-fits {
|
|
96
|
+
:where([is='sheet-view'] &)::part(top-bar),
|
|
97
|
+
:where([is='sheet-view'] &)::part(bottom-bar) {
|
|
98
|
+
--safe-area-inset-left: 0px;
|
|
99
|
+
|
|
100
|
+
--safe-area-inset-right: 0px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where([is='sheet-view'] &)::part(top-bar) {
|
|
104
|
+
--safe-area-inset-top: 0px;
|
|
79
105
|
}
|
|
80
106
|
|
|
81
|
-
|
|
82
|
-
|
|
107
|
+
:where([is='sheet-view'] &)::part(bottom-bar) {
|
|
108
|
+
--safe-area-inset-bottom: 0px;
|
|
83
109
|
}
|
|
84
110
|
}
|
|
85
111
|
|
|
86
|
-
//
|
|
87
|
-
|
|
88
|
-
|
|
112
|
+
// FIXME: Add live tooltip
|
|
113
|
+
// NOTE: By default top bar items with icons, prefer only icon to be shown, (except if they define/force w/ labelStyle)
|
|
114
|
+
> [slot^='top-bar-'],
|
|
115
|
+
> [slot='cancellation-action'],
|
|
116
|
+
> [slot='primary-action'],
|
|
117
|
+
> [slot='confirmation-action'],
|
|
118
|
+
> [slot='destructive-action'] {
|
|
119
|
+
// > label-view,
|
|
120
|
+
> button:has(> label-view > [slot='icon']) {
|
|
121
|
+
:where(&) {
|
|
122
|
+
--label-style: icon-only;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
// NOTE: By default bottom bar items with icons on iphone, prefer only icon to be shown, (except if they define/force w/ labelStyle)
|
|
127
|
+
@media (pointer: coarse) {
|
|
128
|
+
> [slot^='bottom-bar-'] {
|
|
129
|
+
> button:has(> label-view > [slot='icon']) {
|
|
130
|
+
:where(&) {
|
|
131
|
+
--label-style: icon-only;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
89
136
|
}
|
|
90
137
|
}
|
|
138
|
+
|
|
139
|
+
// @layer #{vars.$final-layer} {
|
|
140
|
+
// tool-bar-item[slot^='top-bar'],
|
|
141
|
+
// tool-bar-item-group[slot^='top-bar'] {
|
|
142
|
+
// :where(& menu-view, & tool-bar-item-group[slot^='top-bar'] menu-view)::part(menu-dialog) {
|
|
143
|
+
// // position-area: center block-end;
|
|
144
|
+
// }
|
|
145
|
+
// }
|
|
146
|
+
|
|
147
|
+
// tool-bar-item[slot^='bottom-bar'],
|
|
148
|
+
// tool-bar-item-group[slot^='bottom-bar'] {
|
|
149
|
+
// :where(& menu-view, & menu-view)::part(menu-dialog) {
|
|
150
|
+
// // position-area: center block-start;
|
|
151
|
+
// }
|
|
152
|
+
// }
|
|
153
|
+
// }
|
|
@@ -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
|
}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
@use '../vars';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
@use 'sass:list';
|
|
4
|
+
@use '../mixins';
|
|
5
|
+
|
|
6
|
+
$v-stack-templates: ((auto minmax(0, 1fr)), (auto auto minmax(0, 1fr)), (auto auto auto minmax(0, 1fr)), (auto auto auto auto minmax(0, 1fr)));
|
|
2
7
|
|
|
3
8
|
@layer #{vars.$components-layer} {
|
|
4
9
|
v-stack {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
box-shadow: inset 0 0 0 2px magenta;
|
|
10
|
+
:where(&) {
|
|
11
|
+
grid-template-columns: minmax(0, 1fr);
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
place-items: safe center;
|
|
14
|
+
place-content: safe center;
|
|
10
15
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// }
|
|
16
|
+
gap: 1rem;
|
|
17
|
+
}
|
|
14
18
|
|
|
15
|
-
//
|
|
16
|
-
//
|
|
19
|
+
// :where(& > *) {
|
|
20
|
+
// max-width: 100%;
|
|
17
21
|
// }
|
|
22
|
+
|
|
23
|
+
@include mixins.make-template($v-stack-templates, grid-template-rows);
|
|
18
24
|
}
|
|
19
25
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
[is='alert-dialog'] {
|
|
29
|
+
:where(&[touch-glass]) {
|
|
30
|
+
--alert--dialog-scale: scale(1.02);
|
|
31
|
+
transition-duration: 100ms;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
tool-bar {
|
|
36
|
+
:where(& > *[touch-glass]) {
|
|
37
|
+
--toolbar-cell-scale: scale(1.07);
|
|
38
|
+
transition-duration: 100ms;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[is='tab-bar'] {
|
|
43
|
+
@include mixins.if-iphone-portrait {
|
|
44
|
+
:where(&[touch-glass]) {
|
|
45
|
+
--tab-bar-scale: scale(1.02);
|
|
46
|
+
transition-duration: 100ms;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@include mixins.if-iphone-landscape {
|
|
50
|
+
:where(&[touch-glass]) {
|
|
51
|
+
--tab-bar-scale: scale(1.02);
|
|
52
|
+
transition-duration: 100ms;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
@include mixins.if-ipad-landscape {
|
|
56
|
+
:where(&[touch-glass]) {
|
|
57
|
+
--tab-bar-scale: scale(1.02);
|
|
58
|
+
transition-duration: 100ms;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
navigation-split-view {
|
|
64
|
+
&:has(> [is='sidebar-view']) {
|
|
65
|
+
@include mixins.if-2col-split-view-fits {
|
|
66
|
+
:where(& > [is='sidebar-view'][touch-glass]) {
|
|
67
|
+
--sidebar-view-scale: scale(1.02);
|
|
68
|
+
transition-duration: 100ms;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
tab-view {
|
|
75
|
+
:where(& > [is='sidebar-view'][touch-glass]) {
|
|
76
|
+
--sidebar-view-scale: scale(1.02);
|
|
77
|
+
transition-duration: 100ms;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where(& > sidebar-toggle > *[touch-glass]) {
|
|
81
|
+
--toolbar-cell-scale: scale(1.07);
|
|
82
|
+
transition-duration: 100ms;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(& > [is='sidebar-view'] > tool-bar > sidebar-toggle > *[touch-glass]) {
|
|
86
|
+
--toolbar-cell-scale: scale(1.07);
|
|
87
|
+
transition-duration: 100ms;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
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,44 @@
|
|
|
1
|
+
@mixin takeover-button-slots {
|
|
2
|
+
> [slot] {
|
|
3
|
+
:where(&) {
|
|
4
|
+
// take over NOTE: NO other propsm they break grids!! KISS pos+visibility+opacity
|
|
5
|
+
position: absolute;
|
|
6
|
+
|
|
7
|
+
inset: 0;
|
|
8
|
+
|
|
9
|
+
visibility: collapse;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
> [slot='overlay'] {
|
|
13
|
+
:where(&) {
|
|
14
|
+
visibility: visible;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
&:not(:has(> :not([slot]))) > [slot='placeholder'] {
|
|
18
|
+
:where(&) {
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
visibility: visible;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:has(> [slot='overlay']) {
|
|
26
|
+
> *:not([slot='overlay']) {
|
|
27
|
+
:where(&) {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> [slot='overlay'] {
|
|
33
|
+
:where(&) {
|
|
34
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
35
|
+
transition: opacity ease-out 200ms;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@starting-style {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../functions';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
@use 'sass:list';
|
|
6
|
+
|
|
7
|
+
@mixin wire-tinted-glass($prop) {
|
|
8
|
+
--#{$prop}face: light-dark(var(--accentColor), var(--accentColor));
|
|
9
|
+
--#{$prop}text: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
10
|
+
|
|
11
|
+
--#{$prop}highlightface: light-dark(oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h), oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h));
|
|
12
|
+
--#{$prop}highlighttext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
13
|
+
|
|
14
|
+
--#{$prop}activeface: light-dark(oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h));
|
|
15
|
+
--#{$prop}activetext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
16
|
+
}
|