@swiftwc/ui 0.0.0-dev.8 → 0.0.0-dev.81

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 (243) hide show
  1. package/generated/buses/alert-dialog.d.ts +2 -0
  2. package/generated/buses/alert-dialog.js +1 -0
  3. package/generated/buses/confirmation-dialog.d.ts +2 -0
  4. package/generated/buses/confirmation-dialog.js +1 -0
  5. package/generated/buses/index.d.ts +6 -0
  6. package/generated/buses/index.js +6 -0
  7. package/generated/buses/lifecycle-observer.d.ts +2 -0
  8. package/generated/buses/lifecycle-observer.js +1 -0
  9. package/generated/client/index.d.ts +21 -10
  10. package/generated/client/index.js +177 -194
  11. package/generated/components/alert-dialog.d.ts +8 -0
  12. package/generated/components/alert-dialog.js +99 -0
  13. package/generated/components/body-view.js +5 -2
  14. package/generated/components/bordered-button.d.ts +10 -0
  15. package/generated/components/bordered-button.js +39 -3
  16. package/generated/components/bordered-prominent-button.d.ts +10 -0
  17. package/generated/components/bordered-prominent-button.js +39 -3
  18. package/generated/components/borderless-button.d.ts +9 -1
  19. package/generated/components/borderless-button.js +32 -11
  20. package/generated/components/color-scheme.d.ts +7 -0
  21. package/generated/components/color-scheme.js +54 -0
  22. package/generated/components/confirmation-dialog.d.ts +1 -1
  23. package/generated/components/confirmation-dialog.js +43 -32
  24. package/generated/components/content-unavailable-view.d.ts +24 -0
  25. package/generated/components/content-unavailable-view.js +81 -0
  26. package/generated/components/date-picker.d.ts +2 -12
  27. package/generated/components/date-picker.js +96 -65
  28. package/generated/components/disclosure-group.d.ts +5 -0
  29. package/generated/components/disclosure-group.js +18 -7
  30. package/generated/components/fine-tooltip.d.ts +7 -0
  31. package/generated/components/fine-tooltip.js +107 -0
  32. package/generated/components/form-view.d.ts +3 -0
  33. package/generated/components/form-view.js +8 -3
  34. package/generated/components/glass-button.d.ts +10 -0
  35. package/generated/components/glass-button.js +39 -3
  36. package/generated/components/glass-prominent-button.d.ts +10 -0
  37. package/generated/components/glass-prominent-button.js +39 -3
  38. package/generated/components/h-stack.d.ts +14 -0
  39. package/generated/components/h-stack.js +23 -0
  40. package/generated/components/image-view.d.ts +9 -0
  41. package/generated/components/image-view.js +64 -0
  42. package/generated/components/index.d.ts +11 -3
  43. package/generated/components/index.js +11 -3
  44. package/generated/components/label-view.d.ts +6 -1
  45. package/generated/components/label-view.js +40 -60
  46. package/generated/components/labeled-content.d.ts +9 -0
  47. package/generated/components/labeled-content.js +116 -0
  48. package/generated/components/list-view.d.ts +3 -0
  49. package/generated/components/list-view.js +20 -17
  50. package/generated/components/menu-view.d.ts +4 -1
  51. package/generated/components/menu-view.js +60 -51
  52. package/generated/components/navigation-large-title.js +9 -5
  53. package/generated/components/navigation-split-view.d.ts +4 -1
  54. package/generated/components/navigation-split-view.js +13 -6
  55. package/generated/components/navigation-stack.d.ts +4 -1
  56. package/generated/components/navigation-stack.js +16 -9
  57. package/generated/components/navigation-title.d.ts +1 -1
  58. package/generated/components/navigation-title.js +58 -55
  59. package/generated/components/picker-view.d.ts +32 -4
  60. package/generated/components/picker-view.js +924 -234
  61. package/generated/components/plain-button.js +5 -3
  62. package/generated/components/progress-view.d.ts +13 -0
  63. package/generated/components/progress-view.js +120 -0
  64. package/generated/components/screen-view.js +3 -1
  65. package/generated/components/scroll-view-proxy.d.ts +8 -0
  66. package/generated/components/scroll-view-proxy.js +17 -0
  67. package/generated/components/scroll-view.d.ts +1 -1
  68. package/generated/components/scroll-view.js +101 -85
  69. package/generated/components/search-view.d.ts +7 -0
  70. package/generated/components/search-view.js +30 -0
  71. package/generated/components/section-view.d.ts +1 -1
  72. package/generated/components/section-view.js +35 -30
  73. package/generated/components/sheet-view.d.ts +1 -2
  74. package/generated/components/sheet-view.js +32 -39
  75. package/generated/components/sidebar-toggle.js +44 -66
  76. package/generated/components/sidebar-view.js +13 -8
  77. package/generated/components/sticky-container.js +8 -4
  78. package/generated/components/tab-bar.d.ts +3 -0
  79. package/generated/components/tab-bar.js +20 -10
  80. package/generated/components/tab-item.js +24 -13
  81. package/generated/components/tab-view.js +25 -17
  82. package/generated/components/table-view.d.ts +5 -0
  83. package/generated/components/table-view.js +55 -77
  84. package/generated/components/text-field.d.ts +2 -2
  85. package/generated/components/text-field.js +95 -88
  86. package/generated/components/toggle-view.d.ts +28 -0
  87. package/generated/components/toggle-view.js +224 -0
  88. package/generated/components/tool-bar-item-group.js +21 -4
  89. package/generated/components/tool-bar-item.d.ts +4 -1
  90. package/generated/components/tool-bar-item.js +57 -10
  91. package/generated/components/tool-bar.d.ts +12 -0
  92. package/generated/components/tool-bar.js +27 -11
  93. package/generated/components/v-keyboard.d.ts +3 -1
  94. package/generated/components/v-keyboard.js +12 -6
  95. package/generated/components/v-stack.d.ts +12 -0
  96. package/generated/components/v-stack.js +17 -2
  97. package/generated/css/index.css +2533 -941
  98. package/generated/events/alert-dialog.d.ts +8 -0
  99. package/generated/events/alert-dialog.js +1 -0
  100. package/generated/events/confirmation-dialog.d.ts +2 -2
  101. package/generated/events/index.d.ts +2 -0
  102. package/generated/events/index.js +2 -0
  103. package/generated/events/picker-view.d.ts +7 -0
  104. package/generated/events/scroll-view.js +4 -0
  105. package/generated/events/tab-view.d.ts +6 -2
  106. package/generated/events/text-field.js +3 -0
  107. package/generated/events/toggle-view.d.ts +9 -0
  108. package/generated/events/toggle-view.js +4 -0
  109. package/generated/i18n/index.d.ts +20 -10
  110. package/generated/i18n/index.js +82 -54
  111. package/generated/i18n/locales/el.d.ts +16 -0
  112. package/generated/i18n/locales/el.js +16 -0
  113. package/generated/i18n/locales/en.d.ts +16 -0
  114. package/generated/i18n/locales/en.js +16 -0
  115. package/generated/i18n/locales/index.d.ts +4 -0
  116. package/generated/i18n/locales/index.js +4 -0
  117. package/generated/internal/class/css-style-observer.js +3 -2
  118. package/generated/internal/class/form-associated-base.d.ts +0 -4
  119. package/generated/internal/class/form-associated-base.js +23 -38
  120. package/generated/internal/class/mutation-observer-set.d.ts +9 -0
  121. package/generated/internal/class/mutation-observer-set.js +42 -0
  122. package/generated/internal/class/mutation-observer-singleton.js +18 -0
  123. package/generated/internal/class/navigation-view.d.ts +1 -1
  124. package/generated/internal/class/navigation-view.js +38 -43
  125. package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
  126. package/generated/internal/decorators/adaptive-slot.js +50 -0
  127. package/generated/internal/decorators/custom-element.d.ts +1 -1
  128. package/generated/internal/decorators/custom-element.js +2 -1
  129. package/generated/internal/decorators/index.d.ts +6 -0
  130. package/generated/internal/decorators/index.js +6 -0
  131. package/generated/internal/decorators/microtask-on-connected.d.ts +39 -0
  132. package/generated/internal/decorators/microtask-on-connected.js +67 -0
  133. package/generated/internal/privateNamespace.d.ts +10 -0
  134. package/generated/internal/privateNamespace.js +168 -1
  135. package/generated/internal/utils/cash/index.d.ts +4 -3
  136. package/generated/internal/utils/cash/index.js +6 -4
  137. package/generated/internal/utils/dev-flags.d.ts +3 -0
  138. package/generated/internal/utils/dev-flags.js +5 -0
  139. package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
  140. package/generated/internal/utils/ensure-placeholder.js +55 -0
  141. package/generated/internal/utils/index.d.ts +7 -2
  142. package/generated/internal/utils/index.js +9 -2
  143. package/generated/internal/utils/is-inside.d.ts +1 -0
  144. package/generated/internal/utils/is-inside.js +4 -0
  145. package/generated/internal/utils/list-active.js +67 -12
  146. package/generated/internal/utils/render-label-icon.d.ts +2 -0
  147. package/generated/internal/utils/render-label-icon.js +19 -0
  148. package/generated/internal/utils/render-label-title.d.ts +2 -0
  149. package/generated/internal/utils/render-label-title.js +16 -0
  150. package/generated/internal/utils/render-label.d.ts +1 -0
  151. package/generated/internal/utils/render-label.js +19 -0
  152. package/generated/internal/utils/touch-glass.js +5 -5
  153. package/generated/namespace-browser/base.d.ts +12 -3
  154. package/generated/namespace-browser/base.js +41 -18
  155. package/generated/namespace-browser/event.d.ts +10 -0
  156. package/generated/namespace-browser/event.js +1 -0
  157. package/generated/snapshot/index.d.ts +3 -1
  158. package/generated/snapshot/index.js +25 -2
  159. package/generated/tpl/html.d.ts +5 -0
  160. package/generated/tpl/html.js +3 -0
  161. package/generated/tpl/index.d.ts +4 -0
  162. package/generated/tpl/index.js +4 -0
  163. package/generated/tpl/render.d.ts +2 -0
  164. package/generated/tpl/render.js +132 -0
  165. package/package.json +18 -4
  166. package/scss/_components.scss +14 -0
  167. package/scss/_functions.scss +10 -0
  168. package/scss/_mixins.scss +4 -0
  169. package/scss/_transitions.scss +6 -1
  170. package/scss/_vars.scss +9 -2
  171. package/scss/base/_layout.scss +17 -7
  172. package/scss/base/_reboot.scss +34 -1
  173. package/scss/base/_root.scss +117 -114
  174. package/scss/colors/_index.scss +304 -85
  175. package/scss/components/_alert-dialog.scss +111 -0
  176. package/scss/components/_bordered-button.scss +35 -0
  177. package/scss/components/_bordered-prominent-button.scss +45 -0
  178. package/scss/components/_borderless-button.scss +25 -0
  179. package/scss/components/_confirmation-dialog.scss +41 -49
  180. package/scss/components/_content-unavailable-view.scss +56 -0
  181. package/scss/components/_date-picker.scss +15 -15
  182. package/scss/components/_detail-placeholder.scss +1 -3
  183. package/scss/components/_disclosure-group.scss +84 -33
  184. package/scss/components/_fine-tooltip.scss +84 -0
  185. package/scss/components/_form-view.scss +58 -20
  186. package/scss/components/_glass-button.scss +35 -0
  187. package/scss/components/_glass-prominent-button.scss +46 -0
  188. package/scss/components/_group-box.scss +27 -0
  189. package/scss/components/_h-flex-stack.scss +23 -0
  190. package/scss/components/_h-stack.scss +21 -15
  191. package/scss/components/_image-view.scss +20 -0
  192. package/scss/components/_index.scss +40 -20
  193. package/scss/components/_label-view copy.scss.txt +420 -0
  194. package/scss/components/_label-view.scss +94 -110
  195. package/scss/components/_label-view.scss.txt +536 -0
  196. package/scss/components/_labeled-content.scss +59 -1
  197. package/scss/components/_list-view.scss +65 -25
  198. package/scss/components/_menu-view.scss +95 -60
  199. package/scss/components/_navigation-large-title.scss +17 -0
  200. package/scss/components/_navigation-split-view.scss +3 -3
  201. package/scss/components/_picker-view.scss +259 -59
  202. package/scss/components/_plain-button.scss +7 -0
  203. package/scss/components/_progress-view.scss +98 -0
  204. package/scss/components/_scroll-view-proxy.scss +22 -20
  205. package/scss/components/_scroll-view.scss +4 -0
  206. package/scss/components/_search-view.scss +22 -0
  207. package/scss/components/_section-view.scss +23 -22
  208. package/scss/components/_sheet-view.scss +16 -6
  209. package/scss/components/_sidebar-toggle.scss +1 -4
  210. package/scss/components/_sticky-container.scss +1 -1
  211. package/scss/components/_tab-bar.scss +17 -3
  212. package/scss/components/_tab-view.scss +4 -2
  213. package/scss/components/_table-column.scss +2 -0
  214. package/scss/components/_table-row.scss +69 -1
  215. package/scss/components/_table-view.scss +22 -14
  216. package/scss/components/_text-field.scss +37 -17
  217. package/scss/components/_toggle-view.scss +112 -0
  218. package/scss/components/_tool-bar-item.scss +34 -82
  219. package/scss/components/_tool-bar.scss +77 -57
  220. package/scss/components/_v-stack.scss +9 -2
  221. package/scss/final/_touch-glass.scss +24 -0
  222. package/scss/mixins/_button.scss +44 -0
  223. package/scss/mixins/_color.scss +16 -0
  224. package/scss/mixins/_dialog.scss +1 -0
  225. package/scss/mixins/_index.scss +64 -2
  226. package/scss/placeholders/_buttons.scss +44 -10
  227. package/scss/placeholders/_lists.scss +133 -126
  228. package/scss/transitions/_alert-dialog.scss +18 -0
  229. package/scss/transitions/_confirmation-dialog.scss +8 -0
  230. package/scss/transitions/_fine-tooltip.scss +21 -0
  231. package/scss/transitions/_menu-view.scss +17 -15
  232. package/scss/transitions/_progress-view.scss +23 -0
  233. package/scss/transitions/_sheet-view.scss +30 -0
  234. package/scss/transitions/_tab-bar.scss +6 -5
  235. package/scss/utils/_frame.scss +42 -0
  236. package/scss/utils/_index.scss +67 -52
  237. package/scss/utils/_stacks.scss +56 -73
  238. package/web-components.html-data/en.json +623 -24
  239. package/generated/confirmation-dialog/index.d.ts +0 -1
  240. package/generated/confirmation-dialog/index.js +0 -1
  241. package/generated/lifecycle-observer/index.d.ts +0 -1
  242. package/generated/lifecycle-observer/index.js +0 -1
  243. package/scss/transitions/_dialog.scss +0 -28
@@ -1,7 +1,9 @@
1
1
  @use '../vars';
2
2
  @use '../mixins';
3
3
 
4
- @layer #{vars.$components-layer} {
4
+ $list-item-selector: ':not([slot], section-view, [is="disclosure-group"], picker-view, menu-view, menu-view *, whatever-name)';
5
+
6
+ @layer #{vars.$list-components-layer} {
5
7
  %list {
6
8
  :where(&) {
7
9
  background-color: var(--list--host-background-color,);
@@ -13,9 +15,9 @@
13
15
  }
14
16
 
15
17
  // componentize buttons
16
- > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
17
- section-view > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
18
- [is='disclosure-group'] > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name) {
18
+ > #{$list-item-selector},
19
+ section-view > #{$list-item-selector},
20
+ [is='disclosure-group'] > #{$list-item-selector} {
19
21
  // :where(&:is(summary:not([is='disclosure-group'] [is='disclosure-group'] summary))) {
20
22
  // box-shadow: inset 0 0 4px magenta;
21
23
  // }
@@ -76,19 +78,18 @@
76
78
  // }
77
79
  // }
78
80
 
79
- // SECTION: wire gaps
80
- :not([slot], section-view) ~ section-view {
81
- :where(&) {
81
+ // SECTION: wire gaps between
82
+ // NOTE: apply gap to top of sections when adjacent to any
83
+ // :not([slot], section-view) ~ section-view:not([slot]),
84
+ // section-view:not([slot]) ~ section-view:not([slot]) {
85
+ :not([slot]) ~ section-view:not([slot]) {
86
+ :where(&:not(menu-view *)) {
82
87
  padding-block-start: var(--list--section-gap,);
83
88
  }
84
89
  }
85
- section-view:not([slot]) ~ section-view {
86
- :where(&) {
87
- padding-block-start: var(--list--section-gap,);
88
- }
89
- }
90
- section-view:has(~ :not([slot], section-view)) {
91
- :where(&) {
90
+ // NOTE: apply to bottom of sections when they have non-section adjacents
91
+ section-view:not([slot]):has(~ :not([slot], section-view)) {
92
+ :where(&:not(menu-view *)) {
92
93
  padding-block-end: var(--list--section-gap,);
93
94
  }
94
95
  }
@@ -97,29 +98,32 @@
97
98
  // padding-bottom: calc(var(--list--section-gap, 0px) / 2);
98
99
  // }
99
100
  // }
100
- :not([slot], [is='disclosure-group']) ~ [is='disclosure-group'] {
101
- :where(&) {
101
+ // NOTE: apply gap to top of details when adjacent to any(except summary)
102
+ // :not([slot], [is='disclosure-group'], summary) ~ [is='disclosure-group']:not([slot]) {
103
+ :not([slot], summary) ~ [is='disclosure-group']:not([slot]) {
104
+ :where(&:not(menu-view *)) {
102
105
  margin-block-start: var(--list--details-gap,);
103
106
  }
104
107
  }
105
- [is='disclosure-group']:not([slot]) ~ [is='disclosure-group'] {
106
- :where(&) {
107
- margin-block-start: calc(var(--list--details-gap, 0px) / 2);
108
- }
109
- }
110
- [is='disclosure-group']:has(~ :not([slot], [is='disclosure-group'])) {
111
- :where(&) {
108
+ // [is='disclosure-group']:not([slot]) ~ [is='disclosure-group']:not([slot]) {
109
+ // :where(&:not(menu-view *)) {
110
+ // margin-block-start: calc(var(--list--details-gap, 0px) / 2);
111
+ // }
112
+ // }
113
+ // NOTE: apply to bottom of details when they have non-details adjacents
114
+ [is='disclosure-group']:not([slot]):has(~ :not([slot], [is='disclosure-group'])) {
115
+ :where(&:not(menu-view *)) {
112
116
  margin-block-end: var(--list--details-gap,);
113
117
  }
114
118
  }
115
- [is='disclosure-group']:has(~ [is='disclosure-group']:not([slot])) {
116
- :where(&) {
117
- margin-block-end: calc(var(--list--details-gap, 0px) / 2);
118
- }
119
- }
119
+ // [is='disclosure-group']:not([slot]):has(~ [is='disclosure-group']:not([slot])) {
120
+ // :where(&:not(menu-view *)) {
121
+ // margin-block-end: calc(var(--list--details-gap, 0px) / 2);
122
+ // }
123
+ // }
120
124
 
121
125
  // SECTION: wire paddings
122
- :where(&) {
126
+ :where(&:not(menu-view *)) {
123
127
  --itempadistart: var(--list--item-padding-inline-start, 0rem);
124
128
  --itempadiend: calc(var(--list--item-padding-inline-end, 0rem) + var(--list--accessories-size, 0rem));
125
129
  --itempadbstart: var(--list--item-padding-block-start,);
@@ -140,14 +144,11 @@
140
144
  }
141
145
 
142
146
  // SECTION: overwrites for details
143
- [is='disclosure-group'] {
147
+ [is='disclosure-group']:not(menu-view *) {
144
148
  > :not(summary) {
145
149
  :where(&) {
146
150
  --itemface: var(--list--details-background-color, var(--list--item-background-color,));
147
- --itemhighlightface: var(
148
- --list--selecteddetails-background-color,
149
- var(--list--highlighteditem-background-color, var(--list--item-background-color,))
150
- );
151
+ --itemhighlightface: var(--list--selecteddetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
151
152
  --itemactiveface: var(--list--selecteddetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
152
153
 
153
154
  --itemtext: var(--list--details-color, var(--list--item-color,));
@@ -158,14 +159,8 @@
158
159
  > summary {
159
160
  :where([is='disclosure-group'][open] &) {
160
161
  --itemface: var(--list--opendetails-background-color, var(--list--item-background-color,));
161
- --itemhighlightface: var(
162
- --list--selectedopendetails-background-color,
163
- var(--list--highlighteditem-background-color, var(--list--item-background-color,))
164
- );
165
- --itemactiveface: var(
166
- --list--selectedopendetails-background-color,
167
- var(--list--highlighteditem-background-color, var(--list--item-background-color,))
168
- );
162
+ --itemhighlightface: var(--list--selectedopendetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
163
+ --itemactiveface: var(--list--selectedopendetails-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)));
169
164
 
170
165
  --itemtext: var(--list--opendetails-color, var(--list--item-color,));
171
166
  --itemhighlighttext: var(--list--selectedopendetails-color, var(--list--highlighteditem-color, var(--list--item-color,)));
@@ -186,20 +181,14 @@
186
181
  );
187
182
 
188
183
  --itemtext: var(--list--opensummary-color, var(--list--item-color,));
189
- --itemhighlighttext: var(
190
- --list--selectedopensummary-color,
191
- var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
192
- );
193
- --itemactivetext: var(
194
- --list--selectedopensummary-color,
195
- var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
196
- );
184
+ --itemhighlighttext: var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
185
+ --itemactivetext: var(--list--selectedopensummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
197
186
  }
198
187
  }
199
188
  }
200
189
  }
201
- > [is='disclosure-group'],
202
- > section-view > [is='disclosure-group'] {
190
+ > [is='disclosure-group']:not(menu-view *),
191
+ > section-view > [is='disclosure-group']:not(menu-view *) {
203
192
  --disclosure-style: var(--list--rootsummary-marker-display,);
204
193
 
205
194
  > summary {
@@ -215,14 +204,8 @@
215
204
  );
216
205
 
217
206
  --itemtext: var(--list--rootsummary-color, var(--list--item-color,));
218
- --itemhighlighttext: var(
219
- --list--selectedrootsummary-color,
220
- var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
221
- );
222
- --itemactivetext: var(
223
- --list--selectedrootsummary-color,
224
- var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,)))
225
- );
207
+ --itemhighlighttext: var(--list--selectedrootsummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
208
+ --itemactivetext: var(--list--selectedrootsummary-color, var(--list--selectedsummary-color, var(--list--highlighteditem-color, var(--list--item-color,))));
226
209
 
227
210
  // overwrite extra stuff for rootsummary
228
211
  // outline: red solid 4px;
@@ -244,17 +227,11 @@
244
227
  --itemface: var(--list--rootsummary-background-color, var(--list--opensummary-background-color, var(--list--item-background-color,)));
245
228
  --itemhighlightface: var(
246
229
  --list--selectedrootsummary-background-color,
247
- var(
248
- --list--selectedopensummary-background-color,
249
- var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
250
- )
230
+ var(--list--selectedopensummary-background-color, var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,))))
251
231
  );
252
232
  --itemactiveface: var(
253
233
  --list--selectedrootsummary-background-color,
254
- var(
255
- --list--selectedopensummary-background-color,
256
- var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,)))
257
- )
234
+ var(--list--selectedopensummary-background-color, var(--list--selectedsummary-background-color, var(--list--highlighteditem-background-color, var(--list--item-background-color,))))
258
235
  );
259
236
 
260
237
  --itemtext: var(--list--rootsummary-color, var(--list--opensummary-color, var(--list--item-color,)));
@@ -271,9 +248,9 @@
271
248
  }
272
249
 
273
250
  // SECTION: add borders + arrows
274
- > :not([slot]) ~ :not([slot], section-view),
275
- section-view > :not([slot]) ~ :not([slot], section-view),
276
- [is='disclosure-group'] > :not([slot]) ~ :not([slot], section-view) {
251
+ > :not([slot]) ~ :not([slot], section-view, menu-view *),
252
+ section-view > :not([slot]) ~ :not([slot], section-view, menu-view *),
253
+ [is='disclosure-group'] > :not([slot]) ~ :not([slot], section-view, menu-view *) {
277
254
  :where(&) {
278
255
  position: relative;
279
256
 
@@ -319,9 +296,9 @@
319
296
  }
320
297
 
321
298
  // SECTION: sharpen top corners
322
- > :not([slot]) ~ :not([slot], section-view),
323
- section-view > :not([slot]) ~ :not([slot], section-view),
324
- [is='disclosure-group'] > :not([slot]) ~ :not([slot]) {
299
+ > :not([slot]) ~ :not([slot], section-view, menu-view *),
300
+ section-view > :not([slot]) ~ :not([slot], section-view, menu-view *),
301
+ [is='disclosure-group'] > :not([slot]) ~ :not([slot], menu-view *) {
325
302
  :where(&) {
326
303
  // outline: yellow solid 5px;
327
304
  --itemradiustl: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
@@ -340,10 +317,10 @@
340
317
  }
341
318
 
342
319
  // SECTION: sharpen bottom corners
343
- > :not([slot]):has(~ :not([slot], section-view)),
344
- section-view > :not([slot]):has(~ :not([slot], section-view)),
345
- [is='disclosure-group'] > :not([slot], summary):has(~ :not([slot])),
346
- [is='disclosure-group']:not([data-state='closed']) > summary {
320
+ > :not([slot]):has(~ :not([slot], section-view, menu-view *)),
321
+ section-view > :not([slot]):has(~ :not([slot], section-view, menu-view *)),
322
+ [is='disclosure-group'] > :not([slot], summary, menu-view *):has(~ :not([slot])),
323
+ [is='disclosure-group']:not([data-state='closed'], menu-view *) > summary {
347
324
  :where(&) {
348
325
  // outline: green solid 5px;
349
326
  --itemradiusbl: var(--list--adjacentitem-border-radius, var(--list--item-border-radius,)); //0 0;
@@ -374,31 +351,32 @@
374
351
  // }
375
352
 
376
353
  // SECTION: style section heders/footers
377
- section-view:not(section-view section-view) {
378
- :where(&)::part(section-footer-stack),
379
- :where(&)::part(section-header-stack) {
380
- // outline: magenta 4px solid;
381
- padding-inline: calc(var(--list--root-padding-inline, 0px) + var(--itempadistart, 0px))
382
- calc(var(--list--root-padding-inline, 0px) + var(--itempadiend, 0px));
354
+ section-view:not(section-view section-view, menu-view *) {
355
+ :where(&) {
356
+ &::part(section-footer-stack),
357
+ &::part(section-header-stack) {
358
+ // outline: magenta 4px solid;
359
+ padding-inline: calc(var(--list--root-padding-inline, 0px) + var(--itempadistart, 0px)) calc(var(--list--root-padding-inline, 0px) + var(--itempadiend, 0px));
383
360
 
384
- margin-inline: calc(var(--list--root-padding-inline) * -1);
361
+ margin-inline: calc(var(--list--root-padding-inline) * -1);
385
362
 
386
- padding-block: 1px;
387
- }
363
+ padding-block: 1px;
364
+ }
388
365
 
389
- :where(&)::part(section-header-stack) {
390
- top: calc(var(--list--sticky-block-size, 0px) + var(--navigation-bar-block-size));
366
+ &::part(section-header-stack) {
367
+ top: calc(var(--list--sticky-block-size, 0px) + var(--navigation-bar-block-size));
391
368
 
392
- position: sticky;
369
+ position: sticky;
393
370
 
394
- // backdrop-filter: blur(20px);
371
+ // backdrop-filter: blur(20px);
395
372
 
396
- // text-shadow: 0 0 5px var(--face);
373
+ // text-shadow: 0 0 5px var(--face);
374
+ }
397
375
  }
398
376
  }
399
377
 
400
378
  // SECTION: Enable 2-col layout
401
- &[columns='2'] {
379
+ &[columns='2']:not(menu-view *) {
402
380
  :where(&) {
403
381
  --list--host-grid-template-columns: repeat(2, minmax(0, 1fr));
404
382
 
@@ -482,26 +460,11 @@
482
460
 
483
461
  // SECTION: add accessories
484
462
  // &:has(summary[marker-placement='leading']) {
485
- > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
486
- section-view > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
487
- [is='disclosure-group'] > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name) {
488
- // --itempadistart: 4rem;
489
-
490
- // --item-accessory-size: 24px;
491
-
492
- // --list--item-grid-template-columns: minmax(0, 1fr) 50px;
493
-
494
- // &:not(:is(button)) {
495
- // --list--accessories-display: none;
496
- // // --list--accessories-padding-inline-end: 24px;
497
- // }
498
-
499
- // &:is(button) {
500
- // position: relative;
501
- // display: grid;
502
- // grid-template-columns: minmax(0, 1fr) 24px;
503
-
504
- &:is(button) {
463
+ > #{$list-item-selector},
464
+ section-view > #{$list-item-selector},
465
+ [is='disclosure-group'] > #{$list-item-selector} {
466
+ // NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
467
+ &:is(navigation-split-view button[navigation-link], navigation-stack button[navigation-link]) {
505
468
  :where(&) {
506
469
  position: relative;
507
470
 
@@ -522,7 +485,6 @@
522
485
  }
523
486
  }
524
487
  }
525
- // }
526
488
  }
527
489
  // }
528
490
  // [is='disclosure-group'] summary [slot='marker'] {
@@ -533,23 +495,62 @@
533
495
  // --itempadistart: calc(calc(var(--root-font-size) * 1px) * var(--list--accessory-size) + var(--list--item-padding-inline-start, 0px));
534
496
  // }
535
497
  // }
498
+
499
+ // SECTION: add tints
500
+ > #{$list-item-selector},
501
+ section-view > #{$list-item-selector},
502
+ [is='disclosure-group'] > #{$list-item-selector} {
503
+ // NOTE: drill-in chevron show up only on nav-link buttons. Paddings and all other props have already been taken over!
504
+ // &:is(button:not([is='navigation-link'])) {
505
+ // :where(&) {
506
+ // --itemtext: blue;
507
+ // }
508
+ // }
509
+ &:is(label-view[list-item-tint]) {
510
+ :where(&[list-item-tint] > [slot='icon']) {
511
+ color: var(--accentColor);
512
+ }
513
+ }
514
+ // &:is(button[list-item-tint='red']) {
515
+ // :where(&) {
516
+ // --itemtext: red;
517
+
518
+ // --insetgroupedlist-highlighteditem-background-color:red;
519
+ // --insetgroupedlist-highlighteditem-color:red;
520
+ // }
521
+ // }
522
+ }
523
+
524
+ // // SECTION: add searchable
525
+ // > [slot='searchable'] {
526
+ // :where(&) {
527
+ // position: sticky;
528
+
529
+ // top: 20px
530
+
531
+ // background: red;
532
+ // }
533
+ // }
536
534
  }
537
535
  }
538
536
 
539
537
  @layer #{vars.$colors-layer} {
540
538
  // componentize
541
539
  %list {
542
- > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
543
- section-view > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
544
- [is='disclosure-group'] > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name) {
540
+ > #{$list-item-selector},
541
+ section-view > #{$list-item-selector},
542
+ [is='disclosure-group'] > #{$list-item-selector} {
545
543
  @include mixins.add-focus-visible-state {
546
544
  --itemface: var(--itemhighlightface,);
547
545
  --itemtext: var(--itemhighlighttext,);
548
546
 
549
547
  --list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
550
548
 
551
- --secondary: var(--itemtext);
552
- --blue: var(--itemtext);
549
+ > * {
550
+ @include mixins.takeover-color-vars(item);
551
+ // --secondary: var(--itemtext);
552
+ // --blue: var(--itemtext);
553
+ }
553
554
  }
554
555
  }
555
556
  }
@@ -558,9 +559,9 @@
558
559
  @layer #{vars.$ui-layer} {
559
560
  // componentize
560
561
  %list {
561
- > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
562
- section-view > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name),
563
- [is='disclosure-group'] > :not([slot], section-view, [is='disclosure-group'], picker-view, menu-view, whatever-name) {
562
+ > #{$list-item-selector},
563
+ section-view > #{$list-item-selector},
564
+ [is='disclosure-group'] > #{$list-item-selector} {
564
565
  // :where(&:is(button)) {
565
566
  @include mixins.add-jsactive-state {
566
567
  --itemface: var(--itemactiveface,);
@@ -568,8 +569,11 @@
568
569
 
569
570
  --list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
570
571
 
571
- --secondary: var(--itemtext);
572
- --blue: var(--itemtext);
572
+ > * {
573
+ @include mixins.takeover-color-vars(item);
574
+ }
575
+ // --secondary: var(--itemtext);
576
+ // --blue: var(--itemtext);
573
577
  }
574
578
 
575
579
  &[aria-selected='true'] {
@@ -579,8 +583,11 @@
579
583
 
580
584
  --list--separator-background-color: var(--list--highlighteditem-separator-background-color,);
581
585
 
582
- --secondary: var(--itemtext);
583
- --blue: var(--itemtext);
586
+ > * {
587
+ @include mixins.takeover-color-vars(item);
588
+ // --secondary: var(--itemtext);
589
+ // --blue: var(--itemtext);
590
+ }
584
591
  }
585
592
  }
586
593
  // }
@@ -0,0 +1,18 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+
4
+ @layer #{vars.$transitions-layer} {
5
+ @media (prefers-reduced-motion: no-preference) {
6
+ [is='alert-dialog'] {
7
+ :where(&) {
8
+ transition:
9
+ display var(--touchglass-transition-duration) allow-discrete ease-out,
10
+ overlay var(--touchglass-transition-duration) allow-discrete ease-out,
11
+ transform var(--touchglass-transition-duration) allow-discrete ease-out,
12
+ opacity var(--touchglass-transition-duration) allow-discrete ease-out;
13
+ // transition: all var(--touchglass-transition-duration) allow-discrete ease-out;
14
+ will-change: transform, overlay, display, opacity;
15
+ }
16
+ }
17
+ }
18
+ }
@@ -6,6 +6,9 @@
6
6
  [is='confirmation-dialog'] {
7
7
  :where(&) {
8
8
  // transition:
9
+ // inset var(--menu-animation-duration) allow-discrete ease-out,
10
+ // width var(--menu-animation-duration) allow-discrete ease-out,
11
+ // height var(--menu-animation-duration) allow-discrete ease-out,
9
12
  // block-size var(--menu-animation-duration) allow-discrete ease-out,
10
13
  // inline-size var(--menu-animation-duration) allow-discrete ease-out,
11
14
  // display var(--menu-animation-duration) allow-discrete ease-out,
@@ -14,6 +17,11 @@
14
17
  transition: all var(--touchglass-transition-duration) allow-discrete ease-out;
15
18
  // will-change: block-size, inline-size, transform, overlay, display;
16
19
  }
20
+
21
+ :where(& > *) {
22
+ transition: transform var(--touchglass-transition-duration) allow-discrete ease-out;
23
+ will-change: transform;
24
+ }
17
25
  }
18
26
  }
19
27
  }
@@ -0,0 +1,21 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+
4
+ @layer #{vars.$transitions-layer} {
5
+ @media (prefers-reduced-motion: no-preference) {
6
+ fine-tooltip {
7
+ :where(&) {
8
+ transition:
9
+ opacity 150ms allow-discrete ease-out,
10
+ transform 150ms allow-discrete ease-out;
11
+ transition-delay: 200ms;
12
+ will-change: opacity, transform;
13
+ }
14
+
15
+ :where(&[closing]) {
16
+ transition-duration: 100ms;
17
+ transition-delay: 0ms;
18
+ }
19
+ }
20
+ }
21
+ }
@@ -4,22 +4,24 @@
4
4
  @layer #{vars.$transitions-layer} {
5
5
  @media (prefers-reduced-motion: no-preference) {
6
6
  menu-view {
7
- :where(&)::part(menu-summary) {
8
- transition:
9
- transform var(--touchglass-transition-duration) allow-discrete ease-out,
10
- filter var(--touchglass-transition-duration) allow-discrete ease-out;
11
- will-change: transform;
12
- }
7
+ :where(&) {
8
+ &::part(menu-summary) {
9
+ transition:
10
+ transform var(--touchglass-transition-duration) allow-discrete ease-out,
11
+ filter var(--touchglass-transition-duration) allow-discrete ease-out;
12
+ will-change: transform;
13
+ }
13
14
 
14
- :where(&)::part(menu-dialog) {
15
- // transition:
16
- // block-size var(--menu-animation-duration) allow-discrete ease-out,
17
- // inline-size var(--menu-animation-duration) allow-discrete ease-out,
18
- // display var(--menu-animation-duration) allow-discrete ease-out,
19
- // overlay var(--menu-animation-duration) allow-discrete ease-out,
20
- // transform var(--menu-animation-duration) allow-discrete ease-out;
21
- transition: all var(--touchglass-transition-duration) allow-discrete ease-out;
22
- // will-change: block-size, inline-size, transform, overlay, display;
15
+ &::part(menu-dialog) {
16
+ // transition:
17
+ // block-size var(--menu-animation-duration) allow-discrete ease-out,
18
+ // inline-size var(--menu-animation-duration) allow-discrete ease-out,
19
+ // display var(--menu-animation-duration) allow-discrete ease-out,
20
+ // overlay var(--menu-animation-duration) allow-discrete ease-out,
21
+ // transform var(--menu-animation-duration) allow-discrete ease-out;
22
+ transition: all var(--touchglass-transition-duration) allow-discrete ease-out;
23
+ // will-change: block-size, inline-size, transform, overlay, display;
24
+ }
23
25
  }
24
26
  }
25
27
  }
@@ -0,0 +1,23 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+
4
+ @layer #{vars.$transitions-layer} {
5
+ @media (prefers-reduced-motion: no-preference) {
6
+ progress-view {
7
+ :where(&) {
8
+ //
9
+ }
10
+ }
11
+ }
12
+ @keyframes progressViewCircular {
13
+ 0% {
14
+ opacity: 0.85;
15
+ }
16
+ 50% {
17
+ opacity: 0.25;
18
+ }
19
+ 100% {
20
+ opacity: 0.25;
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,30 @@
1
+ @use '../vars';
2
+ @use '../mixins';
3
+
4
+ @layer #{vars.$transitions-layer} {
5
+ [is='sheet-view'] {
6
+ &:not([open]) {
7
+ z-index: var(--top-layer-polyfill-z-index);
8
+ }
9
+
10
+ &[open] {
11
+ --sheet-view-translate: translateY(var(--view-transition-dialog-onscreen-y));
12
+
13
+ @include mixins.if-ipad-sheet-fits {
14
+ @include mixins.if-2col-split-view-fits {
15
+ navigation-split-view & {
16
+ margin-inline-start: var(--safe-area-inset-left);
17
+ }
18
+ }
19
+ }
20
+
21
+ @include mixins.add-dialog-backdrop-transition-frames(var(--view-transition-dialog-onscreen-backdrop-bg));
22
+
23
+ @starting-style {
24
+ & {
25
+ --sheet-view-translate: translateY(var(--view-transition-dialog-offscreen-y));
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
@@ -3,11 +3,6 @@
3
3
  @layer #{vars.$transitions-layer} {
4
4
  @media (prefers-reduced-motion: no-preference) {
5
5
  [is='tab-bar'] {
6
- // :where(&) {
7
- // transition: inset var(--sidebar-transition-duration) ease-out allow-discrete;
8
- // will-change: inset;
9
- // }
10
-
11
6
  > [is='form-view'] {
12
7
  :where(&) {
13
8
  transition: transform var(--sidebar-transition-duration) ease-out allow-discrete;
@@ -17,3 +12,9 @@
17
12
  }
18
13
  }
19
14
  }
15
+
16
+ @keyframes ipad_form_view_slide_up_offedge {
17
+ to {
18
+ opacity: 0;
19
+ }
20
+ }
@@ -1,6 +1,13 @@
1
1
  @use '../vars';
2
2
  @use 'sass:math';
3
3
 
4
+ $self-map: (
5
+ leading: start,
6
+ center: center,
7
+ trailing: end,
8
+ fill: stretch,
9
+ );
10
+
4
11
  @layer #{vars.$utils-layer} {
5
12
  :where([frame\:width='infinity']) {
6
13
  inline-size: 100%;
@@ -17,6 +24,41 @@
17
24
  }
18
25
  }
19
26
 
27
+ // per-child override — analogous to SwiftUI's .frame(alignment:) on one child.
28
+ // only direct children matter here since only direct children are grid items.
29
+
30
+ // v-stack/ALL: cross axis is inline (horizontal) -> justify-self (grid is by default auto-flow-row)
31
+ scroll-view,
32
+ v-stack {
33
+ @each $k, $v in $self-map {
34
+ :where(& > [frame\:alignment='#{$k}']) {
35
+ justify-self: #{$v};
36
+ }
37
+ :where(& > [frame\:anchor='#{$k}']) {
38
+ align-self: #{$v};
39
+ }
40
+ }
41
+ }
42
+
43
+ // // h-stack: cross axis is block (vertical) -> align-self
44
+ h-stack {
45
+ @each $k, $v in $self-map {
46
+ :where(& > [frame\:alignment='#{$k}']) {
47
+ align-self: #{$v};
48
+ }
49
+ :where(& > [frame\:anchor='#{$k}']) {
50
+ justify-self: #{$v};
51
+ }
52
+ }
53
+ }
54
+
55
+ // :where([frame\:alignment='top']) {
56
+ // align-self: start;
57
+ // }
58
+ // :where([frame\:alignment='leading']) {
59
+ // justify-self: start;
60
+ // }
61
+
20
62
  // :where([frame-width='infinity']) {
21
63
  // place-items: stretch; //justify-self: stretch;
22
64
  // }