@swiftwc/ui 0.0.0-dev.4 → 0.0.0-dev.40
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 +24 -0
- package/generated/client/index.js +272 -0
- package/generated/components/alert-dialog.d.ts +8 -0
- package/generated/components/alert-dialog.js +99 -0
- package/generated/components/body-view.d.ts +5 -0
- package/generated/components/body-view.js +14 -0
- package/generated/components/bordered-button.d.ts +13 -0
- package/generated/components/bordered-button.js +45 -0
- package/generated/components/bordered-prominent-button.d.ts +13 -0
- package/generated/components/bordered-prominent-button.js +45 -0
- package/generated/components/borderless-button.d.ts +13 -0
- package/generated/components/borderless-button.js +45 -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 +468 -0
- package/generated/components/disclosure-group.d.ts +9 -0
- package/generated/components/disclosure-group.js +58 -0
- package/generated/components/fine-tooltip.d.ts +7 -0
- package/generated/components/fine-tooltip.js +107 -0
- package/generated/components/form-view.d.ts +6 -0
- package/generated/components/form-view.js +60 -0
- package/generated/components/glass-button.d.ts +12 -0
- package/generated/components/glass-button.js +42 -0
- package/generated/components/glass-prominent-button.d.ts +12 -0
- package/generated/components/glass-prominent-button.js +42 -0
- package/generated/components/index.d.ts +42 -0
- package/generated/components/index.js +42 -0
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +59 -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 +145 -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 +10 -0
- package/generated/components/navigation-split-view.js +25 -0
- package/generated/components/navigation-stack.d.ts +10 -0
- package/generated/components/navigation-stack.js +31 -0
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +52 -0
- package/generated/components/picker-view.d.ts +28 -0
- package/generated/components/picker-view.js +681 -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 +125 -0
- package/generated/components/screen-view.d.ts +5 -0
- package/generated/components/screen-view.js +11 -0
- 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 +10 -0
- package/generated/components/scroll-view.js +202 -0
- package/generated/components/search-view.d.ts +8 -0
- package/generated/components/search-view.js +30 -0
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +83 -0
- package/generated/components/sheet-view.d.ts +8 -0
- package/generated/components/sheet-view.js +62 -0
- package/generated/components/sidebar-toggle.d.ts +7 -0
- package/generated/components/sidebar-toggle.js +85 -0
- package/generated/components/sidebar-view.d.ts +7 -0
- package/generated/components/sidebar-view.js +34 -0
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +26 -0
- package/generated/components/tab-bar.d.ts +10 -0
- package/generated/components/tab-bar.js +43 -0
- package/generated/components/tab-item.d.ts +7 -0
- package/generated/components/tab-item.js +132 -0
- package/generated/components/tab-view.d.ts +22 -0
- package/generated/components/tab-view.js +264 -0
- package/generated/components/table-view.d.ts +7 -0
- package/generated/components/table-view.js +174 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +503 -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 +15 -0
- package/generated/components/v-keyboard.js +89 -0
- package/generated/components/v-stack.d.ts +10 -0
- package/generated/components/v-stack.js +19 -0
- package/generated/css/index.css +8089 -0
- package/generated/events/alert-dialog.d.ts +8 -0
- package/generated/events/alert-dialog.js +1 -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/index.d.ts +2 -0
- package/generated/index.js +3 -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 +79 -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 +4 -0
- package/generated/internal/decorators/index.js +4 -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/css-time.d.ts +1 -0
- package/generated/internal/utils/css-time.js +3 -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 +19 -0
- package/generated/internal/utils/index.js +22 -0
- 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 -0
- package/generated/internal/utils/kebab-case.js +11 -0
- 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/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 +9 -0
- package/generated/snapshot/index.js +60 -0
- package/package.json +35 -11
- package/scss/_components.scss +59 -14
- 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 +142 -23
- package/scss/base/_layout.scss +31 -16
- package/scss/base/_reboot.scss +151 -15
- package/scss/base/_root.scss +355 -25
- package/scss/colors/_index.scss +672 -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 +63 -0
- package/scss/components/_borderless-button.scss +36 -6
- package/scss/components/_confirmation-dialog.scss +84 -0
- package/scss/components/_content-unavailable-view.scss +45 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +153 -0
- package/scss/components/_disclosure-group.scss +146 -51
- package/scss/components/_fine-tooltip.scss +82 -0
- package/scss/components/_form-view.scss +195 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +59 -0
- package/scss/components/_glass-prominent-button.scss +68 -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/_index.scss +234 -7
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +355 -0
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +9 -0
- package/scss/components/_list-view.scss +229 -0
- package/scss/components/_menu-view.scss +211 -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 +131 -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 +18 -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 +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 +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 +422 -0
- package/scss/placeholders/_buttons.scss +117 -0
- package/scss/placeholders/_lists.scss +571 -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 +22 -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 +91 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +209 -0
- package/web-components.html-data/en.json +500 -0
- 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
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use '../placeholders';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
7
|
+
$list-ifs: (
|
|
8
|
+
inset: (
|
|
9
|
+
--list--item-color: var(--insetlist-item-color,),
|
|
10
|
+
--list--item-background-color: var(--insetlist-item-background-color,),
|
|
11
|
+
--list--highlighteditem-color: var(--insetlist-highlighteditem-color,),
|
|
12
|
+
--list--highlighteditem-background-color: var(--insetlist-highlighteditem-background-color,),
|
|
13
|
+
--list--item-border-radius: var(--insetlist-item-border-radius),
|
|
14
|
+
--list--host-background-color: var(--insetlist-background-color,),
|
|
15
|
+
--list--host-padding-inline: var(--insetlist-padding-inline),
|
|
16
|
+
--list--host-padding-block: var(--insetlist-padding-block),
|
|
17
|
+
//
|
|
18
|
+
--list--adjacentdetailsitem-border-radius: 0,
|
|
19
|
+
//
|
|
20
|
+
--list--details-background-color: var(--insetlist-openitem-background-color,),
|
|
21
|
+
--list--details-color: var(--insetlist-openitem-color,),
|
|
22
|
+
--list--opendetails-background-color: var(--insetlist-openitem-background-color,),
|
|
23
|
+
--list--opendetails-color: var(--insetlist-openitem-color,),
|
|
24
|
+
--list--opensummary-background-color: var(--insetlist-opensummary-background-color,),
|
|
25
|
+
--list--opensummary-color: var(--insetlist-opensummary-color,),
|
|
26
|
+
),
|
|
27
|
+
inset-grouped: (
|
|
28
|
+
--list--item-color: var(--insetgroupedlist-item-color,),
|
|
29
|
+
--list--item-background-color: var(--insetgroupedlist-item-background-color,),
|
|
30
|
+
--list--item-border-radius: var(--insetlist-item-border-radius),
|
|
31
|
+
--list--highlighteditem-color: var(--insetgroupedlist-highlighteditem-color,),
|
|
32
|
+
--list--highlighteditem-background-color: var(--insetgroupedlist-highlighteditem-background-color,),
|
|
33
|
+
--list--host-background-color: var(--insetgroupedlist-background-color,),
|
|
34
|
+
--list--host-padding-inline: var(--insetgroupedlist-padding-inline),
|
|
35
|
+
--list--host-padding-block: var(--insetgroupedlist-padding-block),
|
|
36
|
+
//
|
|
37
|
+
--list--adjacentitem-border-radius: 0,
|
|
38
|
+
//
|
|
39
|
+
--list--details-background-color: var(--insetgroupedlist-openitem-background-color,),
|
|
40
|
+
--list--details-color: var(--insetgroupedlist-openitem-color,),
|
|
41
|
+
--list--opendetails-background-color: var(--insetgroupedlist-openitem-background-color,),
|
|
42
|
+
--list--opendetails-color: var(--insetgroupedlist-openitem-color,),
|
|
43
|
+
--list--opensummary-background-color: var(--insetgroupedlist-opensummary-background-color,),
|
|
44
|
+
--list--opensummary-color: var(--insetgroupedlist-opensummary-color,),
|
|
45
|
+
),
|
|
46
|
+
sidebar: (
|
|
47
|
+
--list--item-border-radius: var(--insetlist-item-border-radius),
|
|
48
|
+
--list--details-gap: var(--list-row-gap),
|
|
49
|
+
--list--rootsummary-padding-inline-start: 5px,
|
|
50
|
+
--list--rootsummary-padding-inline-end: 5px,
|
|
51
|
+
--list--rootsummary-padding-block-start: 2px,
|
|
52
|
+
--list--rootsummary-padding-block-end: 2px,
|
|
53
|
+
|
|
54
|
+
--list--item-padding-inline-start: 5px,
|
|
55
|
+
--list--item-padding-inline-end: 5px,
|
|
56
|
+
--list--item-padding-block-start: 5px,
|
|
57
|
+
--list--item-padding-block-end: 5px,
|
|
58
|
+
|
|
59
|
+
--list--adjacentitem-border-radius: unset,
|
|
60
|
+
//
|
|
61
|
+
--list--host-background-color: var(--sidebarlist-background-color,),
|
|
62
|
+
--list--host-padding-inline: var(--sidebarlist-padding-inline),
|
|
63
|
+
--list--host-padding-block: var(--sidebarlist-padding-block),
|
|
64
|
+
//
|
|
65
|
+
--list--item-background-color: var(--sidebarlist-item-background-color,),
|
|
66
|
+
--list--item-color: var(--sidebarlist-item-color,),
|
|
67
|
+
--list--highlighteditem-background-color: var(--sidebarlist-highlighteditem-background-color,),
|
|
68
|
+
--list--highlighteditem-color: var(--sidebarlist-highlighteditem-color,),
|
|
69
|
+
//
|
|
70
|
+
--list--rootsummary-background-color: transparent,
|
|
71
|
+
--list--rootsummary-color: var(--primary,),
|
|
72
|
+
// --list--rootsummary-border-radius: 0px,
|
|
73
|
+
--list--selectedrootsummary-background-color: transparent,
|
|
74
|
+
--list--selectedrootsummary-color: var(--primary,),
|
|
75
|
+
//
|
|
76
|
+
--list--separator-background-color: transparent,
|
|
77
|
+
--list--activeseparator-background-color: transparent,
|
|
78
|
+
//
|
|
79
|
+
--list--details-background-color: var(--sidebarlist-openitem-background-color,),
|
|
80
|
+
--list--details-color: var(--sidebarlist-openitem-color,),
|
|
81
|
+
--list--opensummary-background-color: var(--sidebarlist-opensummary-background-color,),
|
|
82
|
+
--list--opensummary-color: var(--sidebarlist-opensummary-color,),
|
|
83
|
+
//
|
|
84
|
+
// --list--item-grid-template-columns: minmax(0, 1fr),
|
|
85
|
+
--list--accessories-display: none,
|
|
86
|
+
//
|
|
87
|
+
--list--rootsummary-marker-display: marker-trailing,
|
|
88
|
+
),
|
|
89
|
+
);
|
|
90
|
+
$list-elses: (
|
|
91
|
+
--list--host-background-color: var(--list-background-color,),
|
|
92
|
+
--list--highlighteditem-background-color: var(--list-highlighteditem-background-color,),
|
|
93
|
+
--list--item-background-color: var(--list-item-background-color,),
|
|
94
|
+
--list--item-padding-inline-start: var(--list-item-padding-inline-start),
|
|
95
|
+
--list--item-padding-inline-end: var(--list-item-padding-inline-end),
|
|
96
|
+
--list--item-padding-block-start: var(--list-item-padding-block-start),
|
|
97
|
+
--list--item-padding-block-end: var(--list-item-padding-block-end),
|
|
98
|
+
--list--item-color: var(--list-item-color,),
|
|
99
|
+
--list--highlighteditem-color: var(--list-highlighteditem-color,),
|
|
100
|
+
//
|
|
101
|
+
--list--details-background-color: var(--list-openitem-background-color,),
|
|
102
|
+
--list--details-color: var(--list-openitem-color,),
|
|
103
|
+
--list--opensummary-background-color: var(--list-opensummary-background-color,),
|
|
104
|
+
--list--opensummary-color: var(--list-opensummary-color,),
|
|
105
|
+
//
|
|
106
|
+
// --list--item-grid-template-columns: minmax(0, 1fr) 1rem,
|
|
107
|
+
--list--accessories-size: 1.1rem,
|
|
108
|
+
--list--accessories-display: grid,
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
@layer #{vars.$components-layer} {
|
|
112
|
+
list-view {
|
|
113
|
+
&:not(& &, [is='form-view'] &, table-view &) {
|
|
114
|
+
@extend %list;
|
|
115
|
+
|
|
116
|
+
// wire
|
|
117
|
+
:where(&) {
|
|
118
|
+
--list--section-gap: var(--list-row-gap);
|
|
119
|
+
|
|
120
|
+
@include mixins.write-props($list-elses);
|
|
121
|
+
// --list--item-padding-inline-start: var(--list-item-padding-inline-start);
|
|
122
|
+
// --list--item-padding-inline-end: var(--list-item-padding-inline-end);
|
|
123
|
+
// --list--item-padding-block-start: var(--list-item-padding-block-start);
|
|
124
|
+
// --list--item-padding-block-end: var(--list-item-padding-block-end);
|
|
125
|
+
|
|
126
|
+
// --list--item-background-color: var(--list-item-background-color,);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// SECTION: ifs
|
|
130
|
+
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
131
|
+
:where(&) {
|
|
132
|
+
@include mixins.write-ifs(--list-style, $list-ifs, $list-elses);
|
|
133
|
+
// --list--root-padding-inline: if(style(--list-style: inset-grouped): 0.5rem ; style(--list-style: sidebar): 0.5rem ;);
|
|
134
|
+
|
|
135
|
+
// --toolbaritemradius: if(style(--list-style: inset-grouped): 1rem ; style(--list-style: sidebar): 1rem ;);
|
|
136
|
+
|
|
137
|
+
// --list--separator-block-size: if(style(--list-style: sidebar): 0px ;);
|
|
138
|
+
// --list--separator-visibility: if(style(--list-style: collapse): 0px ;);
|
|
139
|
+
|
|
140
|
+
// --list--root-background-color: if(style(--list-style: sidebar): transparent ;);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// SECTION: ifs polyfill
|
|
145
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
146
|
+
:where(&:not([list-style])) {
|
|
147
|
+
@each $v in vars.$list-styles {
|
|
148
|
+
@container style(--list-style: #{$v}) {
|
|
149
|
+
@include mixins.write-props(map.get($list-ifs, $v));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
@each $v in vars.$list-styles {
|
|
154
|
+
:where(&[list-style='#{$v}']) {
|
|
155
|
+
@include mixins.write-props(map.get($list-ifs, $v));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
@include mixins.if-2col-split-view-fits {
|
|
159
|
+
:where(navigation-split-view [is='sidebar-view'] &[list-style]) {
|
|
160
|
+
@include mixins.write-props(map.get($list-ifs, sidebar));
|
|
161
|
+
}
|
|
162
|
+
:where(navigation-split-view > scroll-view &[preferred-expanded-style], navigation-split-view > body-view > scroll-view &[preferred-expanded-style]) {
|
|
163
|
+
@include mixins.write-props(map.get($list-ifs, inset));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// SECTION: attrs finally
|
|
169
|
+
@supports (x: #{string.unquote('attr(x type(*))')}) {
|
|
170
|
+
:where(&) {
|
|
171
|
+
--list-style: attr(list-style type(<custom-ident>), inherit);
|
|
172
|
+
}
|
|
173
|
+
@include mixins.if-2col-split-view-fits {
|
|
174
|
+
:where(navigation-split-view:has(> [is='sidebar-view']) > [is='sidebar-view'] &[list-style]) {
|
|
175
|
+
--list-style: sidebar;
|
|
176
|
+
}
|
|
177
|
+
:where(navigation-split-view > scroll-view &[preferred-expanded-style], navigation-split-view > body-view > scroll-view &[preferred-expanded-style]) {
|
|
178
|
+
--list-style: inset;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&[preferred-root-disclosure-style='sidebar'] {
|
|
184
|
+
--list--rootsummary-color: var(--primary);
|
|
185
|
+
--list--selectedrootsummary-color: var(--primary);
|
|
186
|
+
--list--rootsummary-background-color: transparent;
|
|
187
|
+
--list--selectedrootsummary-background-color: transparent;
|
|
188
|
+
--list--rootsummary-padding-inline-start: var(--list--item-padding-inline-start);
|
|
189
|
+
--list--rootsummary-padding-inline-end: var(--list--item-padding-inline-start);
|
|
190
|
+
--list--rootsummary-padding-block-start: 5px;
|
|
191
|
+
--list--rootsummary-padding-block-end: 5px;
|
|
192
|
+
|
|
193
|
+
> [is='disclosure-group'] ~ [is='disclosure-group'],
|
|
194
|
+
> section-view > [is='disclosure-group'] ~ [is='disclosure-group'] {
|
|
195
|
+
margin-block-start: var(--list-row-gap);
|
|
196
|
+
|
|
197
|
+
&::before {
|
|
198
|
+
display: none;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
> [is='disclosure-group'],
|
|
203
|
+
> section-view > [is='disclosure-group'] {
|
|
204
|
+
--list--details-background-color: var(--list--item-background-color);
|
|
205
|
+
--list--opensummary-background-color: var(--list--item-background-color);
|
|
206
|
+
|
|
207
|
+
> details,
|
|
208
|
+
> button:first-of-type {
|
|
209
|
+
--itemradiustl: var(--list--item-border-radius);
|
|
210
|
+
--itemradiustr: var(--list--item-border-radius);
|
|
211
|
+
|
|
212
|
+
&::before {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// FINALLY AFTER ALL IFS
|
|
220
|
+
// TODO: Also apply this on state of sidebar w/ full-screen detail 1/2
|
|
221
|
+
@include mixins.if-2col-split-view-fits {
|
|
222
|
+
:where(navigation-split-view > scroll-view &, navigation-split-view > body-view > scroll-view &) {
|
|
223
|
+
// --list--item-grid-template-columns: minmax(0, 1fr);
|
|
224
|
+
--list--accessories-display: none;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use '../placeholders';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
|
|
6
|
+
@layer #{vars.$components-layer} {
|
|
7
|
+
menu-view {
|
|
8
|
+
:where(&)::part(menu-summary) {
|
|
9
|
+
transform: var(--menu--summary-scale,);
|
|
10
|
+
|
|
11
|
+
filter: var(--menu--summary-filter,);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(&)::part(menu-scrollable) {
|
|
15
|
+
@include mixins.make-scrollable(true);
|
|
16
|
+
|
|
17
|
+
padding: var(--menu-padding);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(&)::part(menu-form) {
|
|
21
|
+
// min-inline-size: 200px; // FIXME: del this
|
|
22
|
+
inline-size: max-content; //var(--menu-inline-size);
|
|
23
|
+
block-size: min-content;
|
|
24
|
+
|
|
25
|
+
max-inline-size: var(--menu-max-inline-size,);
|
|
26
|
+
max-block-size: var(--menu-max-block-size,);
|
|
27
|
+
|
|
28
|
+
overflow: clip auto;
|
|
29
|
+
border-radius: inherit;
|
|
30
|
+
|
|
31
|
+
background-color: light-dark(var(--menu-bg), var(--menu-bg-dark));
|
|
32
|
+
// border: transparent solid 20px; //make sure bezel is not covered
|
|
33
|
+
|
|
34
|
+
@include mixins.make-scrollable;
|
|
35
|
+
@include mixins.contain-overscroll;
|
|
36
|
+
|
|
37
|
+
// touch-action: all;
|
|
38
|
+
|
|
39
|
+
--menu--dialog-max-inline-size: anchor-size();
|
|
40
|
+
--menu--dialog-max-block-size: anchor-size();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:where(&)::part(menu-dialog) {
|
|
44
|
+
@include mixins.reset-dialog;
|
|
45
|
+
|
|
46
|
+
color: var(--text,);
|
|
47
|
+
|
|
48
|
+
touch-action: none;
|
|
49
|
+
|
|
50
|
+
position: fixed;
|
|
51
|
+
|
|
52
|
+
inline-size: fit-content;
|
|
53
|
+
block-size: fit-content;
|
|
54
|
+
height: auto; // safari
|
|
55
|
+
max-inline-size: var(--menu--dialog-max-inline-size,);
|
|
56
|
+
max-block-size: var(--menu--dialog-max-block-size,);
|
|
57
|
+
|
|
58
|
+
margin-block: var(--menu--dialog-margin-block,);
|
|
59
|
+
margin-inline: var(--menu--dialog-margin-inline,);
|
|
60
|
+
|
|
61
|
+
transform: var(--menu--dialog-scale,);
|
|
62
|
+
|
|
63
|
+
// position-anchor: --my-anchor; // overriden
|
|
64
|
+
position-area: center;
|
|
65
|
+
|
|
66
|
+
overflow: clip;
|
|
67
|
+
border-radius: calc(var(--menu-item-border-radius) + var(--menu-padding));
|
|
68
|
+
|
|
69
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter,);
|
|
70
|
+
box-shadow: var(--menu-popover-box-shadow,); //0 0 10px 10px black;
|
|
71
|
+
|
|
72
|
+
// finally
|
|
73
|
+
--menu--dialog-scale: scale(0);
|
|
74
|
+
--menu--summary-scale: ;
|
|
75
|
+
--menu--summary-filter: ;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&[open] {
|
|
79
|
+
:where(&)::part(menu-dialog) {
|
|
80
|
+
--menu--dialog-max-inline-size: 100vw;
|
|
81
|
+
--menu--dialog-max-block-size: 100vh;
|
|
82
|
+
|
|
83
|
+
--menu--dialog-margin-block: max(env(safe-area-inset-top), var(--menu-spacing)) max(env(safe-area-inset-bottom), var(--menu-spacing));
|
|
84
|
+
--menu--dialog-margin-inline: max(env(safe-area-inset-left), var(--menu-spacing)) max(env(safe-area-inset-right), var(--menu-spacing));
|
|
85
|
+
|
|
86
|
+
--menu--dialog-scale: scale(1);
|
|
87
|
+
|
|
88
|
+
// BUG: Safari rerenders entire scale animation on every button change
|
|
89
|
+
// @starting-style {
|
|
90
|
+
// --menu--dialog-scale: scale(0);
|
|
91
|
+
// }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&[closing] {
|
|
96
|
+
:where(&)::part(menu-dialog) {
|
|
97
|
+
--menu--dialog-max-inline-size: anchor-size();
|
|
98
|
+
|
|
99
|
+
--menu--dialog-max-block-size: anchor-size();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// shrink again, if opened outside of a direct parent toolbaritem (they shrink themselves)
|
|
104
|
+
// &[open] > &[open],
|
|
105
|
+
// &[open]:not(tool-bar-item &) {
|
|
106
|
+
&[open]:not(tool-bar-item > &) {
|
|
107
|
+
--menu--summary-scale: scale(0.01);
|
|
108
|
+
|
|
109
|
+
--menu--summary-filter: blur(10px);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// :where(& > *) {
|
|
113
|
+
// touch-action: all;
|
|
114
|
+
// }
|
|
115
|
+
|
|
116
|
+
// SECTION: componentize
|
|
117
|
+
:where(&)::part(menu-summary) {
|
|
118
|
+
@include mixins.componentize(menusummary);
|
|
119
|
+
}
|
|
120
|
+
:where(& > button, & > [is='disclosure-group'] > button, & > [is='disclosure-group'] > summary),
|
|
121
|
+
:where(& > menu-view)::part(menu-summary) {
|
|
122
|
+
@include mixins.componentize(menuitem);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:where(&)::part(menu-scrollable) {
|
|
126
|
+
--menuitempadistart: var(--menu-item-padding-inline-start);
|
|
127
|
+
--menuitempadiend: var(--menu-item-padding-inline-end);
|
|
128
|
+
--menuitempadbstart: var(--menu-item-padding-block-start);
|
|
129
|
+
--menuitempadbend: var(--menu-item-padding-block-end);
|
|
130
|
+
|
|
131
|
+
--menuitemradiustr: var(--menu-item-border-radius);
|
|
132
|
+
--menuitemradiustl: var(--menu-item-border-radius);
|
|
133
|
+
--menuitemradiusbr: var(--menu-item-border-radius);
|
|
134
|
+
--menuitemradiusbl: var(--menu-item-border-radius);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// componentize
|
|
140
|
+
@layer #{vars.$colors-layer} {
|
|
141
|
+
menu-view {
|
|
142
|
+
@include mixins.add-focus-visible-state('::part(menu-summary)') {
|
|
143
|
+
--menusummaryface: var(--menusummaryhighlightface,);
|
|
144
|
+
--menusummarytext: var(--menusummaryhighlighttext,);
|
|
145
|
+
}
|
|
146
|
+
@include mixins.add-hover-state('::part(menu-summary)') {
|
|
147
|
+
--menusummaryface: var(--menusummaryhighlightface,);
|
|
148
|
+
--menusummarytext: var(--menusummaryhighlighttext,);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
> button,
|
|
152
|
+
> [is='disclosure-group'] > button,
|
|
153
|
+
> [is='disclosure-group'] > summary {
|
|
154
|
+
@include mixins.add-focus-visible-state {
|
|
155
|
+
--menuitemface: var(--menuitemhighlightface,);
|
|
156
|
+
--menuitemtext: var(--menuitemhighlighttext,);
|
|
157
|
+
|
|
158
|
+
--secondary: var(--menuitemtext);
|
|
159
|
+
--blue: var(--menuitemtext);
|
|
160
|
+
}
|
|
161
|
+
@include mixins.add-hover-state {
|
|
162
|
+
--menuitemface: var(--menuitemhighlightface,);
|
|
163
|
+
--menuitemtext: var(--menuitemhighlighttext,);
|
|
164
|
+
|
|
165
|
+
--secondary: var(--menuitemtext);
|
|
166
|
+
--blue: var(--menuitemtext);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
> menu-view {
|
|
170
|
+
@include mixins.add-focus-visible-state('::part(menu-summary)') {
|
|
171
|
+
--menuitemface: var(--menuitemhighlightface,);
|
|
172
|
+
--menuitemtext: var(--menuitemhighlighttext,);
|
|
173
|
+
|
|
174
|
+
--secondary: var(--menuitemtext);
|
|
175
|
+
--blue: var(--menuitemtext);
|
|
176
|
+
}
|
|
177
|
+
@include mixins.add-hover-state('::part(menu-summary)') {
|
|
178
|
+
--menuitemface: var(--menuitemhighlightface,);
|
|
179
|
+
--menuitemtext: var(--menuitemhighlighttext,);
|
|
180
|
+
|
|
181
|
+
--secondary: var(--menuitemtext);
|
|
182
|
+
--blue: var(--menuitemtext);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// componentize
|
|
189
|
+
@layer #{vars.$ui-layer} {
|
|
190
|
+
menu-view {
|
|
191
|
+
@include mixins.add-active-state('::part(menu-summary)') {
|
|
192
|
+
--menusummaryface: var(--menusummaryactiveface,);
|
|
193
|
+
--menusummarytext: var(--menusummaryactivetext,);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
> button,
|
|
197
|
+
> [is='disclosure-group'] > button,
|
|
198
|
+
> [is='disclosure-group'] > summary {
|
|
199
|
+
@include mixins.add-active-state {
|
|
200
|
+
--menuitemface: var(--menuitemactiveface,);
|
|
201
|
+
--menuitemtext: var(--menuitemactivetext,);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
> menu-view {
|
|
205
|
+
@include mixins.add-active-state('::part(menu-summary)') {
|
|
206
|
+
--menuitemface: var(--menuitemactiveface,);
|
|
207
|
+
--menuitemtext: var(--menuitemactivetext,);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$components-layer} {
|
|
5
|
+
navigation-large-title {
|
|
6
|
+
:where(&) {
|
|
7
|
+
// display: grid;
|
|
8
|
+
|
|
9
|
+
// css-style-observer
|
|
10
|
+
// perspective-origin: var(--navigation-bar-block-size);
|
|
11
|
+
transition: --navigation-bar-block-size 1ms step-start;
|
|
12
|
+
|
|
13
|
+
// caption-side 1ms step-start,
|
|
14
|
+
// orphans 1ms step-start,
|
|
15
|
+
// page-break-before 1ms step-start,
|
|
16
|
+
// font-size 1ms step-start;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
scroll-view[navigation-bar-title-display-mode='inline']:has(&) &[navigation-bar-auto-hide] {
|
|
20
|
+
:where(&) {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
|
|
23
|
+
visibility: collapse;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|