@swiftwc/ui 0.0.0-dev.0 → 0.0.0-dev.11

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.
Files changed (262) hide show
  1. package/README.md +15 -0
  2. package/generated/client/index.d.ts +16 -2
  3. package/generated/client/index.js +293 -8
  4. package/generated/components/body-view.d.ts +5 -0
  5. package/generated/components/body-view.js +11 -0
  6. package/generated/components/bordered-button.d.ts +7 -0
  7. package/generated/components/bordered-button.js +20 -0
  8. package/generated/components/bordered-prominent-button.d.ts +7 -0
  9. package/generated/components/bordered-prominent-button.js +20 -0
  10. package/generated/components/borderless-button.d.ts +9 -0
  11. package/generated/components/borderless-button.js +35 -0
  12. package/generated/components/confirmation-dialog.d.ts +9 -0
  13. package/generated/components/confirmation-dialog.js +102 -0
  14. package/generated/components/date-picker.d.ts +46 -0
  15. package/generated/components/date-picker.js +430 -0
  16. package/generated/components/disclosure-group.d.ts +9 -0
  17. package/generated/components/disclosure-group.js +51 -0
  18. package/generated/components/form-view.d.ts +6 -0
  19. package/generated/components/form-view.js +58 -0
  20. package/generated/components/glass-button.d.ts +6 -0
  21. package/generated/components/glass-button.js +17 -0
  22. package/generated/components/glass-prominent-button.d.ts +6 -0
  23. package/generated/components/glass-prominent-button.js +17 -0
  24. package/generated/components/index.d.ts +39 -1
  25. package/generated/components/index.js +38 -5
  26. package/generated/components/label-view.d.ts +9 -0
  27. package/generated/components/label-view.js +83 -0
  28. package/generated/components/list-view.d.ts +5 -0
  29. package/generated/components/list-view.js +29 -0
  30. package/generated/components/menu-view.d.ts +9 -0
  31. package/generated/components/menu-view.js +133 -0
  32. package/generated/components/navigation-large-title.d.ts +6 -0
  33. package/generated/components/navigation-large-title.js +177 -0
  34. package/generated/components/navigation-split-view.d.ts +7 -0
  35. package/generated/components/navigation-split-view.js +18 -0
  36. package/generated/components/navigation-stack.d.ts +7 -0
  37. package/generated/components/navigation-stack.js +24 -0
  38. package/generated/components/navigation-title.d.ts +8 -0
  39. package/generated/components/navigation-title.js +66 -0
  40. package/generated/components/picker-view.d.ts +27 -0
  41. package/generated/components/picker-view.js +442 -0
  42. package/generated/components/plain-button.d.ts +7 -0
  43. package/generated/components/plain-button.js +20 -0
  44. package/generated/components/screen-view.d.ts +5 -0
  45. package/generated/components/screen-view.js +9 -0
  46. package/generated/components/scroll-view.d.ts +10 -0
  47. package/generated/components/scroll-view.js +187 -0
  48. package/generated/components/section-view.d.ts +9 -0
  49. package/generated/components/section-view.js +81 -0
  50. package/generated/components/sheet-view.d.ts +9 -0
  51. package/generated/components/sheet-view.js +69 -0
  52. package/generated/components/sidebar-toggle.d.ts +7 -0
  53. package/generated/components/sidebar-toggle.js +107 -0
  54. package/generated/components/sidebar-view.d.ts +7 -0
  55. package/generated/components/sidebar-view.js +29 -0
  56. package/generated/components/sticky-container.d.ts +6 -0
  57. package/generated/components/sticky-container.js +22 -0
  58. package/generated/components/tab-bar.d.ts +7 -0
  59. package/generated/components/tab-bar.js +33 -0
  60. package/generated/components/tab-item.d.ts +7 -0
  61. package/generated/components/tab-item.js +120 -0
  62. package/generated/components/tab-view.d.ts +22 -0
  63. package/generated/components/tab-view.js +256 -0
  64. package/generated/components/table-view.d.ts +7 -0
  65. package/generated/components/table-view.js +175 -0
  66. package/generated/components/text-field.d.ts +29 -0
  67. package/generated/components/text-field.js +489 -0
  68. package/generated/components/tool-bar-item-group.d.ts +5 -0
  69. package/generated/components/tool-bar-item-group.js +11 -0
  70. package/generated/components/tool-bar-item.d.ts +5 -0
  71. package/generated/components/tool-bar-item.js +19 -0
  72. package/generated/components/tool-bar.d.ts +7 -0
  73. package/generated/components/tool-bar.js +77 -0
  74. package/generated/components/v-keyboard.d.ts +11 -0
  75. package/generated/components/v-keyboard.js +81 -0
  76. package/generated/components/v-stack.d.ts +5 -0
  77. package/generated/components/v-stack.js +11 -0
  78. package/generated/confirmation-dialog/index.d.ts +1 -0
  79. package/generated/confirmation-dialog/index.js +1 -0
  80. package/generated/css/index.css +7463 -0
  81. package/generated/events/confirmation-dialog.d.ts +9 -0
  82. package/generated/events/confirmation-dialog.js +1 -0
  83. package/generated/events/date-picker.d.ts +8 -0
  84. package/generated/events/date-picker.js +1 -0
  85. package/generated/events/index.d.ts +7 -0
  86. package/generated/events/index.js +7 -0
  87. package/generated/events/lifecycle-observer.d.ts +10 -0
  88. package/generated/events/lifecycle-observer.js +1 -0
  89. package/generated/events/picker-view.d.ts +8 -0
  90. package/generated/events/picker-view.js +1 -0
  91. package/generated/events/scroll-view.d.ts +10 -0
  92. package/generated/events/scroll-view.js +1 -0
  93. package/generated/events/tab-view.d.ts +24 -0
  94. package/generated/events/tab-view.js +1 -0
  95. package/generated/events/text-field.d.ts +8 -0
  96. package/generated/events/text-field.js +1 -0
  97. package/generated/i18n/index.d.ts +24 -0
  98. package/generated/i18n/index.js +139 -0
  99. package/generated/index.js +1 -1
  100. package/generated/internal/class/cleanup-registry.d.ts +5 -0
  101. package/generated/internal/class/cleanup-registry.js +38 -0
  102. package/generated/internal/class/css-style-observer.d.ts +8 -0
  103. package/generated/internal/class/css-style-observer.js +25 -0
  104. package/generated/internal/class/form-associated-base.d.ts +20 -0
  105. package/generated/internal/class/form-associated-base.js +93 -0
  106. package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
  107. package/generated/internal/class/mutation-observer-singleton.js +46 -0
  108. package/generated/internal/class/navigation-path.d.ts +15 -0
  109. package/generated/internal/class/navigation-path.js +84 -0
  110. package/generated/internal/class/navigation-view.d.ts +8 -0
  111. package/generated/internal/class/navigation-view.js +77 -0
  112. package/generated/internal/class/resize-observer-singleton.d.ts +7 -0
  113. package/generated/internal/class/resize-observer-singleton.js +22 -0
  114. package/generated/internal/decorators/custom-element.d.ts +5 -0
  115. package/generated/internal/decorators/custom-element.js +4 -0
  116. package/generated/internal/privateNamespace.d.ts +4 -0
  117. package/generated/internal/privateNamespace.js +1 -0
  118. package/generated/internal/utils/add.d.ts +1 -0
  119. package/generated/internal/utils/add.js +7 -0
  120. package/generated/internal/utils/cash/ancestors.d.ts +1 -0
  121. package/generated/internal/utils/cash/ancestors.js +27 -0
  122. package/generated/internal/utils/cash/index.d.ts +22 -0
  123. package/generated/internal/utils/cash/index.js +23 -0
  124. package/generated/internal/utils/cash/next-all.d.ts +1 -0
  125. package/generated/internal/utils/cash/next-all.js +10 -0
  126. package/generated/internal/utils/cash/next.d.ts +1 -0
  127. package/generated/internal/utils/cash/next.js +9 -0
  128. package/generated/internal/utils/cash/prev-all.d.ts +1 -0
  129. package/generated/internal/utils/cash/prev-all.js +10 -0
  130. package/generated/internal/utils/cash/prev.d.ts +1 -0
  131. package/generated/internal/utils/cash/prev.js +9 -0
  132. package/generated/internal/utils/cash/prop.d.ts +18 -0
  133. package/generated/internal/utils/cash/prop.js +30 -0
  134. package/generated/internal/utils/cash/siblings.d.ts +1 -0
  135. package/generated/internal/utils/cash/siblings.js +10 -0
  136. package/generated/internal/utils/clamp.d.ts +1 -0
  137. package/generated/internal/utils/clamp.js +4 -0
  138. package/generated/internal/utils/compare-big-decimals.d.ts +1 -0
  139. package/generated/internal/utils/compare-big-decimals.js +90 -0
  140. package/generated/internal/utils/css-time.d.ts +1 -0
  141. package/generated/internal/utils/css-time.js +3 -0
  142. package/generated/internal/utils/debounce.d.ts +1 -0
  143. package/generated/internal/utils/debounce.js +13 -0
  144. package/generated/internal/utils/frame.d.ts +1 -0
  145. package/generated/internal/utils/frame.js +6 -0
  146. package/generated/internal/utils/index.d.ts +17 -1
  147. package/generated/internal/utils/index.js +18 -1
  148. package/generated/internal/utils/kebab-case.d.ts +1 -1
  149. package/generated/internal/utils/kebab-case.js +3 -3
  150. package/generated/internal/utils/list-active.d.ts +7 -0
  151. package/generated/internal/utils/list-active.js +28 -0
  152. package/generated/internal/utils/microtask.d.ts +1 -0
  153. package/generated/internal/utils/microtask.js +3 -0
  154. package/generated/internal/utils/onoff.d.ts +45 -0
  155. package/generated/internal/utils/onoff.js +31 -0
  156. package/generated/internal/utils/set.d.ts +1 -0
  157. package/generated/internal/utils/set.js +7 -0
  158. package/generated/internal/utils/sleep.d.ts +1 -0
  159. package/generated/internal/utils/sleep.js +3 -0
  160. package/generated/internal/utils/slow-hide-show.d.ts +1 -0
  161. package/generated/internal/utils/slow-hide-show.js +16 -0
  162. package/generated/internal/utils/timeout.d.ts +5 -0
  163. package/generated/internal/utils/timeout.js +16 -0
  164. package/generated/internal/utils/touch-glass.d.ts +7 -0
  165. package/generated/internal/utils/touch-glass.js +19 -0
  166. package/generated/lifecycle-observer/index.d.ts +1 -0
  167. package/generated/lifecycle-observer/index.js +1 -0
  168. package/generated/namespace-browser/base.d.ts +36 -0
  169. package/generated/namespace-browser/base.js +92 -0
  170. package/generated/namespace-browser/index.d.ts +7 -0
  171. package/generated/namespace-browser/index.js +1 -0
  172. package/generated/snapshot/index.d.ts +7 -0
  173. package/generated/snapshot/index.js +37 -0
  174. package/package.json +32 -7
  175. package/scss/_base.scss +5 -0
  176. package/scss/_components.scss +75 -0
  177. package/scss/_final.scss +1 -0
  178. package/scss/_functions.scss +21 -0
  179. package/scss/_mixins.scss +3 -0
  180. package/scss/_placeholders.scss +3 -0
  181. package/scss/_transitions.scss +27 -0
  182. package/scss/_utils.scss +9 -0
  183. package/scss/_vars.scss +174 -0
  184. package/scss/base/_layout.scss +56 -0
  185. package/scss/base/_reboot.scss +158 -0
  186. package/scss/base/_root.scss +399 -0
  187. package/scss/colors/_index.scss +653 -0
  188. package/scss/components/_body-view.scss +17 -0
  189. package/scss/components/_bordered-button.scss +22 -0
  190. package/scss/components/_bordered-prominent-button.scss +19 -0
  191. package/scss/components/_borderless-button.scss +19 -0
  192. package/scss/components/_confirmation-dialog.scss +110 -0
  193. package/scss/components/_date-picker.scss +30 -0
  194. package/scss/components/_detail-placeholder.scss +155 -0
  195. package/scss/components/_disclosure-group.scss +128 -0
  196. package/scss/components/_form-view.scss +195 -0
  197. package/scss/components/_full-screen.scss +15 -0
  198. package/scss/components/_glass-button.scss +24 -0
  199. package/scss/components/_glass-prominent-button.scss +24 -0
  200. package/scss/components/_h-divider.scss +13 -0
  201. package/scss/components/_h-stack.scss +39 -0
  202. package/scss/components/_index.scss +241 -0
  203. package/scss/components/_label-view.scss +386 -0
  204. package/scss/components/_labeled-content.scss +9 -0
  205. package/scss/components/_list-view.scss +229 -0
  206. package/scss/components/_menu-view.scss +188 -0
  207. package/scss/components/_navigation-large-title.scss +27 -0
  208. package/scss/components/_navigation-split-view.scss +424 -0
  209. package/scss/components/_navigation-stack.scss +11 -0
  210. package/scss/components/_navigation-title.scss +10 -0
  211. package/scss/components/_picker-view.scss +122 -0
  212. package/scss/components/_plain-button.scss +11 -0
  213. package/scss/components/_scroll-view-proxy.scss +79 -0
  214. package/scss/components/_scroll-view-toolbars.scss +126 -0
  215. package/scss/components/_scroll-view.scss +130 -0
  216. package/scss/components/_section-view.scss +119 -0
  217. package/scss/components/_sheet-view.scss +93 -0
  218. package/scss/components/_sidebar-toggle.scss +124 -0
  219. package/scss/components/_sidebar-view.scss +53 -0
  220. package/scss/components/_sticky-container.scss +42 -0
  221. package/scss/components/_tab-bar.scss +254 -0
  222. package/scss/components/_tab-item.scss +25 -0
  223. package/scss/components/_tab-view.scss +310 -0
  224. package/scss/components/_table-column.scss +52 -0
  225. package/scss/components/_table-row.scss +172 -0
  226. package/scss/components/_table-view.scss +223 -0
  227. package/scss/components/_text-field.scss +37 -0
  228. package/scss/components/_tool-bar-item-group.scss +48 -0
  229. package/scss/components/_tool-bar-item.scss +145 -0
  230. package/scss/components/_tool-bar.scss +133 -0
  231. package/scss/components/_v-divider.scss +13 -0
  232. package/scss/components/_v-flex-stack.scss +29 -0
  233. package/scss/components/_v-keyboard.scss +14 -0
  234. package/scss/components/_v-stack.scss +18 -0
  235. package/scss/final/_touch-glass.scss +67 -0
  236. package/scss/index.scss +18 -1
  237. package/scss/mixins/_dialog.scss +88 -0
  238. package/scss/mixins/_index.scss +405 -0
  239. package/scss/placeholders/_buttons.scss +83 -0
  240. package/scss/placeholders/_lists.scss +589 -0
  241. package/scss/transitions/_bwd.navbar.scss +19 -0
  242. package/scss/transitions/_bwd.scss +39 -0
  243. package/scss/transitions/_confirmation-dialog.scss +19 -0
  244. package/scss/transitions/_dialog.scss +28 -0
  245. package/scss/transitions/_disclosure-group.scss +35 -0
  246. package/scss/transitions/_fwd.navbar.scss +41 -0
  247. package/scss/transitions/_fwd.scss +24 -0
  248. package/scss/transitions/_glass-button.scss +12 -0
  249. package/scss/transitions/_glass-prominent-button.scss +12 -0
  250. package/scss/transitions/_index.scss +74 -0
  251. package/scss/transitions/_menu-view.scss +26 -0
  252. package/scss/transitions/_navigation-split-view.scss +23 -0
  253. package/scss/transitions/_sidebar-view.scss +36 -0
  254. package/scss/transitions/_tab-bar.scss +19 -0
  255. package/scss/utils/_frame.scss +84 -0
  256. package/scss/utils/_index.scss +68 -0
  257. package/scss/utils/_scroll-view.scss +14 -0
  258. package/scss/utils/_spacing.scss +25 -0
  259. package/scss/utils/_stacks.scss +242 -0
  260. package/web-components.html-data/en.json +330 -0
  261. package/generated/internal/snapshot.d.ts +0 -5
  262. package/generated/internal/snapshot.js +0 -23
@@ -0,0 +1,424 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+
4
+ @mixin force-disable-col-view-transitions {
5
+ > scroll-view:not(dialog scroll-view):not(scroll-view scroll-view) {
6
+ &.bwd,
7
+ &.fwdd,
8
+ & ~ tool-bar .bwn,
9
+ & ~ tool-bar .fwnn {
10
+ transition-duration: 0ms; // !important;
11
+ }
12
+ }
13
+ }
14
+
15
+ @layer #{vars.$nav-components-layer} {
16
+ navigation-split-view {
17
+ :where(&) {
18
+ touch-action: none;
19
+
20
+ block-size: var(--100lvh, 100lvh);
21
+
22
+ --nav-split-view--content-inline-size: var(--nav-split-view-content-inline-size,);
23
+
24
+ --nav-split-view--detail-placeholder-inset: 0 0 0 var(--nav-split-view--content-inline-size);
25
+ --nav-split-view--detail-placeholder-inline-size: calc(100lvw - var(--nav-split-view--content-inline-size));
26
+ --nav-split-view--detail-placeholder-visibility: visible;
27
+ }
28
+
29
+ // ANCHOR Z_INDEX STYLES
30
+ // Use ifnot to apply negative z-indexes to old views
31
+ // z-index rules get discarded in larger viewports
32
+
33
+ @include mixins.if-2col-split-view-fits {
34
+ // special case for sv inside a tabview>more
35
+ scroll-view:has(~ &:not([hidden])) {
36
+ &,
37
+ & ~ tool-bar {
38
+ :where(&) {
39
+ opacity: 0;
40
+ pointer-events: none;
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ @include mixins.ifnot-2col-split-view-fits {
47
+ // special case for sv inside a tabview>more
48
+ :where(scroll-view:has(~ &:not([hidden]))) {
49
+ z-index: -1;
50
+ }
51
+
52
+ :where(& > body-view ~ scroll-view, & > body-view ~ [is='sidebar-view']) {
53
+ z-index: -1;
54
+ }
55
+
56
+ &:has(> [is='sidebar-view']) {
57
+ :where(& > body-view ~ [is='sidebar-view']) {
58
+ z-index: -2;
59
+ }
60
+
61
+ :where(& > body-view > body-view ~ scroll-view) {
62
+ z-index: -1;
63
+ }
64
+ }
65
+ }
66
+
67
+ &:has(> [is='sidebar-view']) {
68
+ @include mixins.ifnot-3col-split-view-fits {
69
+ &:not([preferred-compact-column='content']) {
70
+ :where(& > body-view > body-view ~ scroll-view) {
71
+ z-index: -1;
72
+ }
73
+ }
74
+
75
+ // body-view > body-view {
76
+ // clip-path: inset(
77
+ // 0 0 0 var(--nav-split-view-content-inline-size)
78
+ // ); // force clipping because it is now a floating element unable to hide bg = overflow: clip;
79
+ // }
80
+ // }
81
+ }
82
+
83
+ @include mixins.if-2col-split-view-fits {
84
+ &[column-visibility='double-column'] {
85
+ :where(& > body-view > body-view ~ scroll-view) {
86
+ z-index: -1;
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ // @include mixins.ifnot-2col-split-view-fits {
93
+ // &:has(> [is='sidebar-view']) {
94
+ // :where(& > [is='sidebar-view']) {
95
+ // --list-style: unset;
96
+ // --form-style: unset;
97
+ // }
98
+ // // :where(& > [is='sidebar-view'] > scroll-view) {
99
+ // // --scroll-view-box-shadow: none;
100
+ // // }
101
+ // }
102
+ // }
103
+
104
+ // ANCHOR 2_COL COMPACT-DEFAULTS
105
+
106
+ @include mixins.if-2col-split-view-fits {
107
+ // content col appears (either 1st-child or 2nd child in case of collapsed sidebar)
108
+ > scroll-view,
109
+ > tool-bar,
110
+ > [is='sidebar-view'] {
111
+ :where(&) {
112
+ --safe-area-inset-right: 0px; // reset end padding
113
+ }
114
+ }
115
+
116
+ // Fix 1stChildElement as a content view
117
+ > scroll-view {
118
+ &,
119
+ & ~ tool-bar {
120
+ :where(&) {
121
+ inline-size: var(--nav-split-view--content-inline-size);
122
+ }
123
+ }
124
+ }
125
+
126
+ // Cancel animations
127
+ > scroll-view,
128
+ > [is='sidebar-view'] > scroll-view {
129
+ ~ tool-bar {
130
+ > tool-bar-item,
131
+ > tool-bar-item-group {
132
+ :where(&) {
133
+ @include mixins.vt-toolbar-cell-onscreen-keyframe;
134
+ }
135
+ }
136
+ }
137
+ }
138
+
139
+ > scroll-view {
140
+ :where(&) {
141
+ border-right: solid 1px light-dark(var(--nav-split-view-separator-color), var(--nav-split-view-separator-color-dark));
142
+ // --scroll-view-box-shadow: none;
143
+ }
144
+ }
145
+
146
+ > body-view {
147
+ scroll-view:not(dialog scroll-view):not(scroll-view scroll-view) {
148
+ &,
149
+ & ~ tool-bar {
150
+ :where(&) {
151
+ // add margin to make vts precise
152
+ margin-inline-start: var(--nav-split-view--content-inline-size);
153
+ }
154
+ }
155
+ }
156
+ }
157
+
158
+ // ANCHOR 3_COL COMPACT-DEFAULTS
159
+
160
+ // SIDEBAR | EXPANDED
161
+ &:has(> [is='sidebar-view']) {
162
+ > [is='sidebar-view'] {
163
+ // :where(&) {
164
+ @include mixins.make-floating-sidebar;
165
+ // turn 1stChildElement into floating sidebar
166
+ // inline-size: var(--nav-split-view-sidebar-inline-size); // override
167
+
168
+ // margin-inline-start: max(env(safe-area-inset-left), var(--sidebar-spacing)); // float
169
+
170
+ // --safe-area-inset-left: 0px; // now a floating
171
+
172
+ // overflow: visible;
173
+
174
+ // restyle scroll-view of floating sidebar
175
+
176
+ //was padding-block
177
+ // padding-block: max(var(--safe-area-inset-top), var(--sidebar-spacing)) max(var(--safe-area-inset-bottom), var(--sidebar-spacing));
178
+
179
+ // overflow: clip;
180
+
181
+ // height: calc(100% - max(var(--safe-area-inset-top), var(--sidebar-spacing)) - max(var(--safe-area-inset-bottom), var(--sidebar-spacing)));
182
+
183
+ // backdrop-filter: var(--liquid-glass-backdrop-filter);
184
+ // box-shadow: var(--liquid-glass-box-shadow);
185
+
186
+ // border-radius: var(--sidebar-border-radius);
187
+ // }
188
+
189
+ // > scroll-view {
190
+ // :where(&) {
191
+ // // --canvas: oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha));
192
+
193
+ // // --safe-area-inset-top: 0px;
194
+ // // --safe-area-inset-bottom: 0px;
195
+
196
+ // // border-radius: var(--sidebar-border-radius);
197
+
198
+ // // backdrop-filter: var(--liquid-glass-backdrop-filter);
199
+
200
+ // // --scroll-view-box-shadow: var(--liquid-glass-box-shadow);
201
+ // }
202
+
203
+ // // :where(& ~ tool-bar) {
204
+ // // --safe-area-inset-top: 0px;
205
+ // // max(
206
+ // // env(safe-area-inset-top),
207
+ // // var(--sidebar-spacing)
208
+ // // );
209
+ // // --safe-area-inset-bottom: 0px;
210
+ // // max(
211
+ // // env(safe-area-inset-bottom),
212
+ // // var(--sidebar-spacing)
213
+ // // );
214
+ // // }
215
+ // }
216
+ }
217
+
218
+ > body-view {
219
+ scroll-view:not(dialog scroll-view):not(scroll-view scroll-view) {
220
+ &,
221
+ & ~ tool-bar {
222
+ :where(&) {
223
+ // override/reset added margin
224
+ margin-inline-start: 0px;
225
+
226
+ // add start padding instead
227
+ --safe-area-inset-left: calc(var(--nav-split-view-sidebar-inline-size) + max(env(safe-area-inset-left), var(--sidebar-inline-spacing)));
228
+
229
+ --safe-area-inset-top: max(env(safe-area-inset-top), var(--sidebar-block-spacing));
230
+
231
+ --safe-area-inset-bottom: max(env(safe-area-inset-bottom), var(--sidebar-block-spacing));
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ // ANCHOR 3_COL FOR COMPACT-DEFAULTS
238
+
239
+ &:not([column-visibility='double-column']) {
240
+ // compact-view-only: apply preferred-compact-column rule
241
+ @include mixins.ifnot-3col-split-view-fits {
242
+ // &:has(> dialog[is='sidebar-view']) {
243
+ &[preferred-compact-column='content'] {
244
+ > scroll-view,
245
+ > tool-bar,
246
+ > [is='sidebar-view'] {
247
+ :where(&) {
248
+ margin-inline-start: calc(var(--nav-split-view-sidebar-inline-size) * -1); // hide off screen
249
+ }
250
+ }
251
+
252
+ // move descendants to left edge of screen
253
+ > body-view {
254
+ scroll-view:not(dialog scroll-view):not(scroll-view scroll-view) {
255
+ &,
256
+ & ~ tool-bar {
257
+ :where(&) {
258
+ margin-inline-start: var(--nav-split-view--content-inline-size);
259
+
260
+ --safe-area-inset-left: 0px;
261
+ }
262
+ }
263
+ }
264
+
265
+ :where(& > scroll-view) {
266
+ border-right: solid 1px light-dark(var(--nav-split-view-separator-color), var(--nav-split-view-separator-color-dark));
267
+ // --scroll-view-box-shadow: none;
268
+ }
269
+
270
+ > scroll-view {
271
+ ~ tool-bar {
272
+ > tool-bar-item,
273
+ > tool-bar-item-group {
274
+ :where(&) {
275
+ @include mixins.vt-toolbar-cell-onscreen-keyframe; //(true);
276
+ }
277
+ }
278
+ }
279
+ }
280
+
281
+ > scroll-view:not(dialog scroll-view):not(scroll-view scroll-view) {
282
+ &,
283
+ & ~ tool-bar {
284
+ :where(&) {
285
+ inline-size: var(--nav-split-view--content-inline-size);
286
+
287
+ margin-inline-start: 0px;
288
+
289
+ --safe-area-inset-left: env(safe-area-inset-left);
290
+
291
+ --safe-area-inset-right: 0px;
292
+
293
+ // #{vars.$sidebar-toggle-padding-inline-start-css-prop}: inherit;
294
+ }
295
+ }
296
+
297
+ // move ONLY navbar to the side
298
+ @include mixins.create-sidebar-measure;
299
+ }
300
+ }
301
+ }
302
+ }
303
+
304
+ // ANCHOR 3_COL DEFAULTS
305
+
306
+ // SIDEBAR | COMPACT | EXPANDED
307
+ @include mixins.if-3col-split-view-fits {
308
+ // container of compact col (middle)
309
+ // &:has(> dialog[is='sidebar-view']) {
310
+ // &:not([column-visibility='double-column']) {
311
+ // container of content col (principal)
312
+ > body-view {
313
+ // cancel animations
314
+ > scroll-view {
315
+ ~ tool-bar {
316
+ > tool-bar-item,
317
+ > tool-bar-item-group {
318
+ :where(&) {
319
+ @include mixins.vt-toolbar-cell-onscreen-keyframe; //(true);
320
+ }
321
+ }
322
+ }
323
+ }
324
+ // clip-path: inset(
325
+ // 0 0 0 var(--nav-split-view-sidebar-inline-size)
326
+ // ); // force clipping because it is now a floating element unable to hide bg = overflow: clip;
327
+
328
+ // shrink 2nd-child
329
+ > scroll-view {
330
+ &,
331
+ & ~ tool-bar {
332
+ :where(&) {
333
+ inline-size: calc(var(--nav-split-view--content-inline-size) + var(--nav-split-view-sidebar-inline-size)); // shrink to be now a col
334
+
335
+ --safe-area-inset-right: 0px;
336
+ }
337
+ }
338
+ }
339
+
340
+ :where(& > scroll-view) {
341
+ border-right: solid 1px light-dark(var(--nav-split-view-separator-color), var(--nav-split-view-separator-color-dark));
342
+ // --scroll-view-box-shadow: none;
343
+ }
344
+
345
+ // container of details col (trailing)
346
+ > body-view {
347
+ scroll-view:not(dialog scroll-view):not(scroll-view scroll-view) {
348
+ &,
349
+ & ~ tool-bar {
350
+ :where(&) {
351
+ --safe-area-inset-left: 0px; // override
352
+
353
+ margin-inline-start: calc(var(--nav-split-view-sidebar-inline-size) + var(--nav-split-view--content-inline-size)); // override
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ }
362
+ }
363
+ }
364
+ }
365
+
366
+ @layer #{vars.$final-layer} {
367
+ navigation-split-view {
368
+ // ANCHOR transitions
369
+
370
+ // ANCHOR 2_COL COMPACT-DEFAULTS
371
+
372
+ // COMPACT | EXPANDED
373
+ @include mixins.if-2col-split-view-fits {
374
+ // Cancel transitions as it is now an inert col
375
+ > scroll-view,
376
+ > [is='sidebar-view'] > scroll-view {
377
+ --scroll-view-translate: translateX(var(--view-transition-principal-x)); //!important
378
+ }
379
+
380
+ > body-view {
381
+ @include force-disable-col-view-transitions;
382
+ }
383
+
384
+ // ANCHOR 3_COL FOR COMPACT-DEFAULTS
385
+
386
+ // SIDEBAR | EXPANDED
387
+ &:has(> [is='sidebar-view']) {
388
+ &:not([column-visibility='double-column']) {
389
+ @include mixins.ifnot-3col-split-view-fits {
390
+ &[preferred-compact-column='content'] {
391
+ // move descendants to right
392
+ > body-view {
393
+ > scroll-view {
394
+ --scroll-view-translate: translateX(var(--view-transition-principal-x)); //!important;
395
+ }
396
+
397
+ > body-view {
398
+ @include force-disable-col-view-transitions;
399
+ }
400
+ }
401
+ }
402
+ }
403
+
404
+ // ANCHOR 2_COL OVERRIDE FOR COMPACT VIEWS
405
+
406
+ // SIDEBAR | COMPACT | EXPANDED
407
+ @include mixins.if-3col-split-view-fits {
408
+ // container of compact col (middle)
409
+ > body-view {
410
+ // Fix position as compact col in the middle
411
+ > scroll-view {
412
+ --scroll-view-translate: translateX(var(--view-transition-principal-x)); // !important;
413
+ }
414
+
415
+ > body-view {
416
+ @include force-disable-col-view-transitions;
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
@@ -0,0 +1,11 @@
1
+ @use '../vars';
2
+
3
+ @layer #{vars.$nav-components-layer} {
4
+ navigation-stack {
5
+ :where(&) {
6
+ touch-action: none;
7
+
8
+ block-size: var(--100lvh, 100lvh);
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,10 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+
4
+ @layer #{vars.$components-layer} {
5
+ navigation-title {
6
+ :where(&) {
7
+ display: grid; //contents;
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,122 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+ @use 'sass:string';
4
+ @use 'sass:map';
5
+
6
+ $picker-ifs: (
7
+ menu: (
8
+ --picker--labelstack-display: grid,
9
+ --picker--stack-grid-template-columns: auto minmax(0, 1fr),
10
+ ),
11
+ );
12
+
13
+ $picker-elses: (
14
+ --picker--stack-grid-template-columns: minmax(0, 1fr), //auto minmax(0, 1fr),
15
+ );
16
+
17
+ @mixin make-button-affordance() {
18
+ position: relative;
19
+
20
+ grid-auto-flow: column;
21
+ grid-template-columns: var(--picker-affordance-size) minmax(0, 1fr);
22
+ column-gap: var(--picker-affordance-col-gap);
23
+
24
+ @include mixins.make-marker-pseudos(vars.$picker-affordance, before);
25
+
26
+ &::before {
27
+ display: grid;
28
+
29
+ block-size: var(--picker-affordance-size);
30
+ inline-size: var(--picker-affordance-size);
31
+
32
+ background-color: var(--menuitemtext, var(--text));
33
+
34
+ transform: var(--tablecol--after-rotate,);
35
+
36
+ @media (prefers-reduced-motion: no-preference) {
37
+ transition: transform 100ms ease-out;
38
+ will-change: transform;
39
+ }
40
+
41
+ opacity: 0;
42
+ }
43
+
44
+ &[aria-selected='true']::before {
45
+ opacity: 1;
46
+ }
47
+ }
48
+
49
+ @layer #{vars.$components-layer} {
50
+ picker-view {
51
+ :where(&) {
52
+ grid-template-columns: minmax(0, 1fr);
53
+
54
+ grid-template-rows: minmax(0, 1fr);
55
+ }
56
+
57
+ :where(&)::part(picker-stack) {
58
+ grid-template-columns: var(--picker--stack-grid-template-columns,);
59
+
60
+ grid-template-rows: minmax(0, 1fr);
61
+ }
62
+
63
+ :where(&)::part(picker-label-stack) {
64
+ display: var(--picker--labelstack-display, none); // display: none;
65
+ }
66
+
67
+ :where(&) {
68
+ // --picker--stack-grid-template-columns: auto minmax(0, 1fr);
69
+ @include mixins.write-props($picker-elses);
70
+ }
71
+
72
+ :where(tool-bar-item &) {
73
+ // --picker--labelstack-display: none;
74
+ // --picker--stack-grid-template-columns: minmax(0, 1fr);
75
+ }
76
+
77
+ :where(form &) {
78
+ // --picker--labelstack-display: grid;
79
+ // --picker--stack-grid-template-columns: auto minmax(0, 1fr);
80
+ }
81
+
82
+ :where(& > menu-view > button) {
83
+ @container style(--picker-style: menu) {
84
+ @include make-button-affordance;
85
+ }
86
+ }
87
+
88
+ // SECTION: ifs
89
+ @supports (x: #{string.unquote('if(else:red)')}) {
90
+ :where(&) {
91
+ @include mixins.write-ifs(--picker-style, $picker-ifs, $picker-elses);
92
+ }
93
+ }
94
+
95
+ // SECTION: ifs polyfill
96
+ @supports not (x: #{string.unquote('if(else:red)')}) {
97
+ :where(&:not([picker-style])) {
98
+ @each $v in vars.$picker-styles {
99
+ @container style(--picker-style: #{$v}) {
100
+ @include mixins.write-props(map.get($picker-ifs, $v)); //@include set-picker-style($v);
101
+ }
102
+ }
103
+ }
104
+ @each $v in vars.$picker-styles {
105
+ :where(&[picker-style='#{$v}']) {
106
+ :where(& > menu-view > button) {
107
+ @include make-button-affordance;
108
+ }
109
+
110
+ @include mixins.write-props(map.get($picker-ifs, $v)); //@include set-picker-style($v);
111
+ }
112
+ }
113
+ }
114
+
115
+ // SECTION: attrs finally
116
+ @supports (x: #{string.unquote('attr(x type(*))')}) {
117
+ :where(&) {
118
+ --picker-style: attr(picker-style type(<custom-ident>), inherit);
119
+ }
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,11 @@
1
+ @use '../vars';
2
+ @use '../placeholders';
3
+
4
+ @layer #{vars.$components-layer} {
5
+ [is='plain-button'] {
6
+ @extend %button;
7
+
8
+ :where(&) {
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,79 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+ @use 'sass:string';
4
+ @use 'sass:map';
5
+
6
+ @layer #{vars.$components-layer} {
7
+ // NOTE: A wrapper to {hv}-stack
8
+ scroll-view-proxy {
9
+ :where(&) {
10
+ display: contents;
11
+ }
12
+
13
+ &:has(> v-stack, > h-stack) {
14
+ > v-stack,
15
+ > h-stack {
16
+ :where(&) {
17
+ position: relative;
18
+
19
+ @include mixins.contain-overscroll;
20
+
21
+ scrollbar-width: thin;
22
+
23
+ container: scroll-view-proxy / inline-size;
24
+ }
25
+
26
+ :where(& > :not([slot])) {
27
+ scroll-snap-stop: normal;
28
+
29
+ scroll-snap-align: center;
30
+ }
31
+
32
+ :where(&[distribution='leading'] > :not([slot])) {
33
+ scroll-snap-align: start;
34
+ }
35
+
36
+ :where(&) {
37
+ &::before {
38
+ @include mixins.span-all;
39
+ content: '';
40
+ display: inline-grid;
41
+ block-size: 1px;
42
+ inline-size: 1px;
43
+ z-index: -1;
44
+ pointer-events: none;
45
+ position: absolute;
46
+ }
47
+ }
48
+ }
49
+
50
+ > v-stack {
51
+ :where(&) {
52
+ overflow: clip auto;
53
+
54
+ scroll-snap-type: block mandatory;
55
+
56
+ &::before {
57
+ block-size: calc(100cqb + 1px); // creates overflow
58
+ }
59
+ }
60
+ }
61
+
62
+ > h-stack {
63
+ :where(&) {
64
+ overflow: auto clip;
65
+
66
+ scroll-snap-type: inline mandatory;
67
+
68
+ &::before {
69
+ inline-size: calc(100cqi + 1px); // creates overflow
70
+ }
71
+ }
72
+
73
+ :where(&[padding]) {
74
+ scroll-padding-inline: 1rem;
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }