@mrpelz/uikit-ish 7.8.0 → 7.10.0

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 (308) hide show
  1. package/dist/components/accordion/main.d.ts +12 -0
  2. package/dist/components/accordion/main.d.ts.map +1 -0
  3. package/dist/components/accordion/main.js +20 -0
  4. package/dist/components/accordion/main.js.map +1 -0
  5. package/dist/components/accordion/style.css +23 -0
  6. package/dist/components/action-sheet/main.d.ts +22 -16
  7. package/dist/components/action-sheet/main.d.ts.map +1 -1
  8. package/dist/components/action-sheet/main.js +89 -19
  9. package/dist/components/action-sheet/main.js.map +1 -1
  10. package/dist/components/action-sheet/props.d.ts +17 -5
  11. package/dist/components/action-sheet/props.d.ts.map +1 -1
  12. package/dist/components/action-sheet/style.css +24 -0
  13. package/dist/components/activity-view/main.d.ts +15 -4
  14. package/dist/components/activity-view/main.d.ts.map +1 -1
  15. package/dist/components/activity-view/main.js +27 -14
  16. package/dist/components/activity-view/main.js.map +1 -1
  17. package/dist/components/activity-view/props.d.ts +2 -10
  18. package/dist/components/activity-view/props.d.ts.map +1 -1
  19. package/dist/components/activity-view/style.css +29 -67
  20. package/dist/components/alert/main.d.ts +8 -7
  21. package/dist/components/alert/main.d.ts.map +1 -1
  22. package/dist/components/alert/main.js +32 -19
  23. package/dist/components/alert/main.js.map +1 -1
  24. package/dist/components/alert/props.d.ts +13 -2
  25. package/dist/components/alert/props.d.ts.map +1 -1
  26. package/dist/components/alert/style.css +36 -50
  27. package/dist/components/avatar/main.d.ts +5 -3
  28. package/dist/components/avatar/main.d.ts.map +1 -1
  29. package/dist/components/avatar/main.js +10 -8
  30. package/dist/components/avatar/main.js.map +1 -1
  31. package/dist/components/avatar/props.d.ts +4 -0
  32. package/dist/components/avatar/props.d.ts.map +1 -1
  33. package/dist/components/avatar/style.css +1 -7
  34. package/dist/components/badge/main.d.ts +3 -3
  35. package/dist/components/badge/main.d.ts.map +1 -1
  36. package/dist/components/badge/main.js +9 -9
  37. package/dist/components/badge/main.js.map +1 -1
  38. package/dist/components/badge/props.d.ts +4 -3
  39. package/dist/components/badge/props.d.ts.map +1 -1
  40. package/dist/components/badge/style.css +10 -4
  41. package/dist/components/button/main.d.ts.map +1 -1
  42. package/dist/components/button/main.js +15 -15
  43. package/dist/components/button/main.js.map +1 -1
  44. package/dist/components/button/props.d.ts +8 -8
  45. package/dist/components/button/props.d.ts.map +1 -1
  46. package/dist/components/button/style.css +37 -55
  47. package/dist/components/checkbox/main.d.ts.map +1 -1
  48. package/dist/components/checkbox/main.js +5 -7
  49. package/dist/components/checkbox/main.js.map +1 -1
  50. package/dist/components/checkbox/style.css +5 -8
  51. package/dist/components/collapsible/main.d.ts +9 -0
  52. package/dist/components/collapsible/main.d.ts.map +1 -0
  53. package/dist/components/collapsible/main.js +19 -0
  54. package/dist/components/collapsible/main.js.map +1 -0
  55. package/dist/components/collapsible/style.css +23 -0
  56. package/dist/components/color-picker/main.d.ts +27 -4
  57. package/dist/components/color-picker/main.d.ts.map +1 -1
  58. package/dist/components/color-picker/main.js +292 -110
  59. package/dist/components/color-picker/main.js.map +1 -1
  60. package/dist/components/color-picker/props.d.ts +64 -15
  61. package/dist/components/color-picker/props.d.ts.map +1 -1
  62. package/dist/components/color-picker/style.css +133 -65
  63. package/dist/components/contextual-menu/main.d.ts +11 -7
  64. package/dist/components/contextual-menu/main.d.ts.map +1 -1
  65. package/dist/components/contextual-menu/main.js +207 -202
  66. package/dist/components/contextual-menu/main.js.map +1 -1
  67. package/dist/components/contextual-menu/props.d.ts +21 -34
  68. package/dist/components/contextual-menu/props.d.ts.map +1 -1
  69. package/dist/components/contextual-menu/style.css +63 -34
  70. package/dist/components/date-picker/handle.d.ts +41 -0
  71. package/dist/components/date-picker/handle.d.ts.map +1 -0
  72. package/dist/components/date-picker/handle.js +47 -0
  73. package/dist/components/date-picker/handle.js.map +1 -0
  74. package/dist/components/date-picker/main.d.ts +31 -49
  75. package/dist/components/date-picker/main.d.ts.map +1 -1
  76. package/dist/components/date-picker/main.js +373 -178
  77. package/dist/components/date-picker/main.js.map +1 -1
  78. package/dist/components/date-picker/pager.d.ts +24 -0
  79. package/dist/components/date-picker/pager.d.ts.map +1 -0
  80. package/dist/components/date-picker/pager.js +307 -0
  81. package/dist/components/date-picker/pager.js.map +1 -0
  82. package/dist/components/date-picker/props.d.ts +98 -27
  83. package/dist/components/date-picker/props.d.ts.map +1 -1
  84. package/dist/components/date-picker/style.css +110 -118
  85. package/dist/components/drawer/main.d.ts +31 -0
  86. package/dist/components/drawer/main.d.ts.map +1 -0
  87. package/dist/components/drawer/main.js +119 -0
  88. package/dist/components/drawer/main.js.map +1 -0
  89. package/dist/components/drawer/props.d.ts +39 -0
  90. package/dist/components/drawer/props.d.ts.map +1 -0
  91. package/dist/components/drawer/props.js +2 -0
  92. package/dist/components/drawer/props.js.map +1 -0
  93. package/dist/components/drawer/style.css +135 -0
  94. package/dist/components/edit-menu/main.d.ts +7 -7
  95. package/dist/components/edit-menu/main.d.ts.map +1 -1
  96. package/dist/components/edit-menu/main.js +57 -40
  97. package/dist/components/edit-menu/main.js.map +1 -1
  98. package/dist/components/edit-menu/props.d.ts +14 -1
  99. package/dist/components/edit-menu/props.d.ts.map +1 -1
  100. package/dist/components/edit-menu/style.css +15 -8
  101. package/dist/components/form/main.d.ts +8 -0
  102. package/dist/components/form/main.d.ts.map +1 -1
  103. package/dist/components/form/main.js +18 -5
  104. package/dist/components/form/main.js.map +1 -1
  105. package/dist/components/form/props.d.ts +1 -2
  106. package/dist/components/form/props.d.ts.map +1 -1
  107. package/dist/components/glass/main.d.ts +1 -1
  108. package/dist/components/glass/main.js +4 -4
  109. package/dist/components/glass/main.js.map +1 -1
  110. package/dist/components/glass/props.d.ts +5 -5
  111. package/dist/components/glass/props.d.ts.map +1 -1
  112. package/dist/components/glass/style.css +176 -161
  113. package/dist/components/header/main.d.ts +5 -4
  114. package/dist/components/header/main.d.ts.map +1 -1
  115. package/dist/components/header/main.js +64 -34
  116. package/dist/components/header/main.js.map +1 -1
  117. package/dist/components/header/props.d.ts +2 -3
  118. package/dist/components/header/props.d.ts.map +1 -1
  119. package/dist/components/header/style.css +46 -65
  120. package/dist/components/index.d.ts +27 -23
  121. package/dist/components/index.d.ts.map +1 -1
  122. package/dist/components/index.js +17 -13
  123. package/dist/components/index.js.map +1 -1
  124. package/dist/components/layout/main.d.ts +2 -2
  125. package/dist/components/layout/main.d.ts.map +1 -1
  126. package/dist/components/layout/main.js +63 -167
  127. package/dist/components/layout/main.js.map +1 -1
  128. package/dist/components/layout/props.d.ts +2 -20
  129. package/dist/components/layout/props.d.ts.map +1 -1
  130. package/dist/components/layout/style.css +20 -91
  131. package/dist/components/list/main.d.ts +58 -10
  132. package/dist/components/list/main.d.ts.map +1 -1
  133. package/dist/components/list/main.js +1022 -465
  134. package/dist/components/list/main.js.map +1 -1
  135. package/dist/components/list/props.d.ts +211 -21
  136. package/dist/components/list/props.d.ts.map +1 -1
  137. package/dist/components/list/reorder.d.ts +146 -0
  138. package/dist/components/list/reorder.d.ts.map +1 -0
  139. package/dist/components/list/reorder.js +819 -0
  140. package/dist/components/list/reorder.js.map +1 -0
  141. package/dist/components/list/select.d.ts +6 -0
  142. package/dist/components/list/select.d.ts.map +1 -0
  143. package/dist/components/list/select.js +141 -0
  144. package/dist/components/list/select.js.map +1 -0
  145. package/dist/components/list/style.css +492 -507
  146. package/dist/components/list/swipe-actions-handle.d.ts +40 -0
  147. package/dist/components/list/swipe-actions-handle.d.ts.map +1 -0
  148. package/dist/components/list/swipe-actions-handle.js +51 -0
  149. package/dist/components/list/swipe-actions-handle.js.map +1 -0
  150. package/dist/components/menu/main.d.ts +102 -32
  151. package/dist/components/menu/main.d.ts.map +1 -1
  152. package/dist/components/menu/main.js +510 -99
  153. package/dist/components/menu/main.js.map +1 -1
  154. package/dist/components/menu/props.d.ts +5 -5
  155. package/dist/components/menu/props.d.ts.map +1 -1
  156. package/dist/components/menu/style.css +35 -43
  157. package/dist/components/navigation/main.d.ts +14 -2
  158. package/dist/components/navigation/main.d.ts.map +1 -1
  159. package/dist/components/navigation/main.js +437 -119
  160. package/dist/components/navigation/main.js.map +1 -1
  161. package/dist/components/navigation/props.d.ts +53 -3
  162. package/dist/components/navigation/props.d.ts.map +1 -1
  163. package/dist/components/navigation/style.css +56 -9
  164. package/dist/components/page/main.d.ts.map +1 -1
  165. package/dist/components/page/main.js +13 -8
  166. package/dist/components/page/main.js.map +1 -1
  167. package/dist/components/page/props.d.ts +8 -0
  168. package/dist/components/page/props.d.ts.map +1 -1
  169. package/dist/components/page/style.css +39 -4
  170. package/dist/components/page-control/main.d.ts +2 -2
  171. package/dist/components/page-control/main.d.ts.map +1 -1
  172. package/dist/components/page-control/main.js +66 -32
  173. package/dist/components/page-control/main.js.map +1 -1
  174. package/dist/components/page-control/props.d.ts +10 -2
  175. package/dist/components/page-control/props.d.ts.map +1 -1
  176. package/dist/components/page-control/style.css +7 -2
  177. package/dist/components/popover/main.d.ts +11 -6
  178. package/dist/components/popover/main.d.ts.map +1 -1
  179. package/dist/components/popover/main.js +63 -38
  180. package/dist/components/popover/main.js.map +1 -1
  181. package/dist/components/popover/props.d.ts +7 -6
  182. package/dist/components/popover/props.d.ts.map +1 -1
  183. package/dist/components/popover/style.css +54 -4
  184. package/dist/components/progress/main.d.ts +2 -3
  185. package/dist/components/progress/main.d.ts.map +1 -1
  186. package/dist/components/progress/main.js +148 -29
  187. package/dist/components/progress/main.js.map +1 -1
  188. package/dist/components/progress/props.d.ts +43 -9
  189. package/dist/components/progress/props.d.ts.map +1 -1
  190. package/dist/components/progress/style.css +82 -50
  191. package/dist/components/roll/main.d.ts +1 -1
  192. package/dist/components/roll/main.d.ts.map +1 -1
  193. package/dist/components/roll/main.js +90 -34
  194. package/dist/components/roll/main.js.map +1 -1
  195. package/dist/components/roll/props.d.ts +25 -8
  196. package/dist/components/roll/props.d.ts.map +1 -1
  197. package/dist/components/roll/style.css +12 -24
  198. package/dist/components/segmented/main.d.ts.map +1 -1
  199. package/dist/components/segmented/main.js +47 -30
  200. package/dist/components/segmented/main.js.map +1 -1
  201. package/dist/components/segmented/style.css +16 -23
  202. package/dist/components/sheet/main.d.ts +25 -15
  203. package/dist/components/sheet/main.d.ts.map +1 -1
  204. package/dist/components/sheet/main.js +66 -78
  205. package/dist/components/sheet/main.js.map +1 -1
  206. package/dist/components/sheet/props.d.ts +37 -3
  207. package/dist/components/sheet/props.d.ts.map +1 -1
  208. package/dist/components/sheet/style.css +183 -45
  209. package/dist/components/sidebar/main.d.ts.map +1 -1
  210. package/dist/components/sidebar/main.js +9 -13
  211. package/dist/components/sidebar/main.js.map +1 -1
  212. package/dist/components/sidebar/style.css +20 -14
  213. package/dist/components/slider/main.d.ts.map +1 -1
  214. package/dist/components/slider/main.js +23 -22
  215. package/dist/components/slider/main.js.map +1 -1
  216. package/dist/components/slider/props.d.ts +1 -2
  217. package/dist/components/slider/props.d.ts.map +1 -1
  218. package/dist/components/slider/style.css +27 -53
  219. package/dist/components/stepper/main.d.ts +4 -6
  220. package/dist/components/stepper/main.d.ts.map +1 -1
  221. package/dist/components/stepper/main.js +29 -25
  222. package/dist/components/stepper/main.js.map +1 -1
  223. package/dist/components/stepper/style.css +12 -16
  224. package/dist/components/switch/main.d.ts.map +1 -1
  225. package/dist/components/switch/main.js +40 -28
  226. package/dist/components/switch/main.js.map +1 -1
  227. package/dist/components/switch/props.d.ts +7 -5
  228. package/dist/components/switch/props.d.ts.map +1 -1
  229. package/dist/components/switch/style.css +40 -17
  230. package/dist/components/symbol/main.d.ts +2 -2
  231. package/dist/components/symbol/main.d.ts.map +1 -1
  232. package/dist/components/symbol/main.js +36 -28
  233. package/dist/components/symbol/main.js.map +1 -1
  234. package/dist/components/symbol/props.d.ts +39 -4
  235. package/dist/components/symbol/props.d.ts.map +1 -1
  236. package/dist/components/symbol/style.css +26 -5
  237. package/dist/components/tab-bar/main.d.ts +2 -2
  238. package/dist/components/tab-bar/main.d.ts.map +1 -1
  239. package/dist/components/tab-bar/main.js +133 -101
  240. package/dist/components/tab-bar/main.js.map +1 -1
  241. package/dist/components/tab-bar/props.d.ts +6 -6
  242. package/dist/components/tab-bar/props.d.ts.map +1 -1
  243. package/dist/components/tab-bar/style.css +113 -99
  244. package/dist/components/text-field/main.d.ts +3 -2
  245. package/dist/components/text-field/main.d.ts.map +1 -1
  246. package/dist/components/text-field/main.js +29 -30
  247. package/dist/components/text-field/main.js.map +1 -1
  248. package/dist/components/text-field/props.d.ts +23 -1
  249. package/dist/components/text-field/props.d.ts.map +1 -1
  250. package/dist/components/text-field/style.css +122 -82
  251. package/dist/components/toolbar/main.js +27 -27
  252. package/dist/components/toolbar/main.js.map +1 -1
  253. package/dist/components/toolbar/props.d.ts +10 -4
  254. package/dist/components/toolbar/props.d.ts.map +1 -1
  255. package/dist/components/toolbar/style.css +39 -33
  256. package/dist/components/tooltip/main.d.ts +10 -9
  257. package/dist/components/tooltip/main.d.ts.map +1 -1
  258. package/dist/components/tooltip/main.js +39 -10
  259. package/dist/components/tooltip/main.js.map +1 -1
  260. package/dist/components/tooltip/props.d.ts +2 -0
  261. package/dist/components/tooltip/props.d.ts.map +1 -1
  262. package/dist/components/tooltip/style.css +16 -16
  263. package/dist/components/typography/main.d.ts +2 -2
  264. package/dist/components/typography/main.d.ts.map +1 -1
  265. package/dist/components/typography/main.js +24 -16
  266. package/dist/components/typography/main.js.map +1 -1
  267. package/dist/components/typography/props.d.ts +11 -18
  268. package/dist/components/typography/props.d.ts.map +1 -1
  269. package/dist/components/typography/style.css +503 -623
  270. package/dist/components/utils/main.d.ts +78 -8
  271. package/dist/components/utils/main.d.ts.map +1 -1
  272. package/dist/components/utils/main.js +235 -16
  273. package/dist/components/utils/main.js.map +1 -1
  274. package/dist/components/utils/props.d.ts +27 -4
  275. package/dist/components/utils/props.d.ts.map +1 -1
  276. package/dist/components/utils/style.css +31 -18
  277. package/dist/components/viewport/edge-effect.d.ts +10 -0
  278. package/dist/components/viewport/edge-effect.d.ts.map +1 -0
  279. package/dist/components/viewport/edge-effect.js +100 -0
  280. package/dist/components/viewport/edge-effect.js.map +1 -0
  281. package/dist/components/viewport/edge.d.ts +39 -0
  282. package/dist/components/viewport/edge.d.ts.map +1 -0
  283. package/dist/components/viewport/edge.js +151 -0
  284. package/dist/components/viewport/edge.js.map +1 -0
  285. package/dist/components/viewport/input.d.ts +39 -0
  286. package/dist/components/viewport/input.d.ts.map +1 -0
  287. package/dist/components/viewport/input.js +280 -0
  288. package/dist/components/viewport/input.js.map +1 -0
  289. package/dist/components/viewport/main.d.ts +47 -9
  290. package/dist/components/viewport/main.d.ts.map +1 -1
  291. package/dist/components/viewport/main.js +745 -86
  292. package/dist/components/viewport/main.js.map +1 -1
  293. package/dist/components/viewport/padding.d.ts +78 -0
  294. package/dist/components/viewport/padding.d.ts.map +1 -0
  295. package/dist/components/viewport/padding.js +321 -0
  296. package/dist/components/viewport/padding.js.map +1 -0
  297. package/dist/components/viewport/props.d.ts +220 -11
  298. package/dist/components/viewport/props.d.ts.map +1 -1
  299. package/dist/components/viewport/style.css +377 -6
  300. package/dist/main.d.ts +0 -1
  301. package/dist/main.d.ts.map +1 -1
  302. package/dist/main.js.map +1 -1
  303. package/dist/styles.css +318 -302
  304. package/dist/styles.d.ts +2 -1
  305. package/dist/styles.d.ts.map +1 -1
  306. package/dist/styles.js +2 -1
  307. package/dist/styles.js.map +1 -1
  308. package/package.json +8 -16
@@ -4,26 +4,61 @@
4
4
  placement, whatever their order.) */
5
5
  /* stylelint-disable no-descending-specificity */
6
6
  @layer uikit-ish {
7
+ /* Spaced between each other only: at the list's ends, what precedes or
8
+ follows it (a bar, a large title, a header) or its container spaces it,
9
+ so their spacing doesn't add up. */
7
10
  .uikit-list-section {
8
11
  display: block;
9
12
  margin-block: var(--uikit-list-section-spacing, 35px);
10
13
  scroll-snap-align: var(--uikit-list-section-snap, none);
14
+
15
+ /* (By class: a section can be another element, e.g. a fieldset.) */
16
+ &:not(.uikit-list-section ~ &) {
17
+ margin-block-start: 0;
18
+ }
19
+
20
+ &:not(:has(~ .uikit-list-section)) {
21
+ margin-block-end: 0;
22
+ }
11
23
  }
12
24
 
25
+ /* Only marking a gap rows can be dropped into (see DropTarget). */
26
+ .uikit-list-drop-target {
27
+ display: block;
28
+ height: 0;
29
+ list-style: none;
30
+ }
31
+
32
+ /* Its rows' margins stay within it (reordered rows' room, see reorder.ts,
33
+ closing at its ends too). */
13
34
  .uikit-list-group {
35
+ display: flow-root;
14
36
  overflow: clip visible;
15
37
  padding: 0;
16
38
  border-radius: var(--uikit-list-radius, 24px);
17
39
  background-color: var(
18
40
  --uikit-list-group-background,
19
- var(--color-ios-secondary-system-grouped-background)
41
+ var(--color-ui-secondary-system-grouped-background)
20
42
  );
21
43
  box-shadow: var(--uikit-list-outline-shadow, none);
22
44
  list-style: none;
23
45
  margin-block: 0;
24
46
  margin-inline: var(--uikit-list-inset, 16px);
47
+
48
+ /* Reordering (see reorder.ts): not clipping its lifted rows (no row is
49
+ swiped meanwhile; WebKit may clip them, composited, in a scrolled
50
+ container). */
51
+ &[data-reorder-active] {
52
+ overflow: visible;
53
+ }
25
54
  }
26
55
 
56
+ /* A row (see Item): its parts in a line, in their order (a flexbox):
57
+ leading ones (edit controls, the image, `Leading`), its `Content`
58
+ (title, subtitle, text: taking the rest), trailing ones (details,
59
+ chevrons, grabbers, `Trailing`); or a `Span` across it; a `Below` on a
60
+ line of its own under them. Elements of other components only in these
61
+ slots. */
27
62
  .uikit-list-row {
28
63
  --uikit-list-min-height: var(--uikit-list-row-min-height, 52px);
29
64
 
@@ -31,23 +66,21 @@
31
66
  content ending where the details do (their padding beyond), their label
32
67
  and symbol 16px apart (as a detail and its chevron, user), the symbol
33
68
  light (user: thinner than regular). */
34
- --uikit-button-plain-size: var(--font-ios-body-size);
35
- --uikit-button-plain-line-height: var(--font-ios-body-line-height);
36
- --uikit-button-plain-tracking: var(--font-ios-body-tracking);
69
+ --uikit-button-plain-size: var(--font-ui-body-size);
70
+ --uikit-button-plain-line-height: var(--font-ui-body-line-height);
71
+ --uikit-button-plain-tracking: var(--font-ui-body-tracking);
37
72
  --uikit-button-plain-margin-end: -14px;
38
73
  --uikit-button-plain-gap: 16px;
39
74
  --uikit-button-plain-symbol-weight: 300;
40
75
 
41
76
  position: relative;
42
- display: grid;
77
+ display: flex;
43
78
  min-height: var(--uikit-list-min-height);
44
79
  box-sizing: border-box;
80
+ flex-wrap: wrap;
45
81
  align-content: center;
46
- padding: var(--uikit-list-row-padding, 12px 16px);
47
- grid-auto-columns: auto;
48
- grid-auto-flow: column;
49
- grid-template-columns: auto auto minmax(0, 1fr);
50
- grid-template-rows: auto auto;
82
+ align-items: center;
83
+ padding: var(--uikit-list-row-padding-block, 12px) 16px;
51
84
 
52
85
  /* Indented by its level (see Item). */
53
86
  padding-inline-start: calc(
@@ -55,268 +88,296 @@
55
88
  20px
56
89
  );
57
90
 
58
- /* Figma Height=Tall (images keep their regular size) */
59
- &:has(> [data-list-part='subtitle']) {
91
+ /* Tall (images keep their regular size) */
92
+ &:has(> [data-list-part='content'] > [data-list-part='subtitle']) {
60
93
  --uikit-list-min-height: 68px;
61
-
62
- & > [data-list-part='title'] {
63
- align-self: end;
64
- grid-area: 1 / 3;
65
- }
66
94
  }
67
95
 
68
- /* Framework7 media list (Mail): a title row with the trailing parts, the
69
- subtitle and text below, spanning the row, the image at the top; the
70
- title emphasized (Framework7: 600), trailing details in Subheadline. */
71
- &:has(> [data-list-part='text']) {
96
+ /* Framework7 media list (Mail): the image and the trailing parts at the
97
+ top, the title emphasized (Framework7: 600), trailing details in
98
+ Subheadline; its text in the content, or below it (across the row,
99
+ under the trailing parts too, as Mail's preview). */
100
+ &:has(
101
+ > :is([data-list-part='content'], [data-list-part='below'])
102
+ > [data-list-part='text']
103
+ ) {
72
104
  --uikit-list-min-height: 0px;
73
105
 
74
106
  align-content: start;
75
- grid-template-rows: auto auto auto;
107
+ align-items: start;
76
108
  padding-block: 10px;
77
109
 
78
- &::after {
79
- grid-area: 1 / 1 / 2 / 4;
80
- }
81
-
82
- & > [data-list-part='edit'] {
83
- grid-area: 1 / 1 / 4;
110
+ & > [data-list-part='leading'] > [data-list-part='image'] {
111
+ margin-block: 0;
84
112
  }
85
113
 
86
- & > [data-list-part='image'] {
114
+ & > [data-list-part='leading'],
115
+ & > [data-list-part='trailing'] {
87
116
  align-self: start;
88
- grid-area: 1 / 2 / 4;
89
- margin-block: 0;
90
117
  }
91
118
 
92
- & > [data-list-part='title'] {
93
- align-self: center;
119
+ & > [data-list-part='content'] > [data-list-part='title'] {
94
120
  font-variation-settings: 'wght' 590;
95
121
  font-weight: round(down, 590, 100);
96
- grid-area: 1 / 3;
97
- stroke: currentcolor;
98
- stroke-linejoin: round;
99
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
100
-
101
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
102
- }
103
-
104
- & > [data-list-part='subtitle'] {
105
- color: var(--color-ios-label);
106
- grid-area: 2 / 3 / 3 / 99;
107
122
  }
108
123
 
109
- & > [data-list-part='text'] {
110
- grid-area: 3 / 3 / 4 / 99;
124
+ & > [data-list-part='content'] > [data-list-part='subtitle'] {
125
+ color: var(--color-ui-label);
111
126
  }
112
127
 
113
- & > [data-list-part='detail'] {
114
- font-size: var(--font-ios-subheadline-size);
128
+ & > [data-list-part='trailing'] > [data-list-part='detail'] {
129
+ font-size: var(--font-ui-subheadline-size);
115
130
  font-style: normal;
116
- font-variation-settings: 'wght' var(--font-ios-subheadline-weight);
117
- font-weight: round(down, var(--font-ios-subheadline-weight), 100);
118
- letter-spacing: var(--font-ios-subheadline-tracking);
119
- line-height: var(--font-ios-subheadline-line-height);
120
- stroke: currentcolor;
121
- stroke-linejoin: round;
122
- stroke-width: max(
123
- 0px,
124
- (var(--font-ios-subheadline-weight) - 400) / 326 * 1px
125
- );
126
-
127
- --uikit-symbol-thinning: max(
128
- 0px,
129
- (400 - var(--font-ios-subheadline-weight)) / 326 * 1px
130
- );
131
- }
132
-
133
- &
134
- > :not(
135
- [data-list-part='edit'],
136
- [data-list-part='image'],
137
- [data-list-part='title'],
138
- [data-list-part='subtitle'],
139
- [data-list-part='text'],
140
- [data-list-part='button'],
141
- [data-list-part='swipe-actions']
142
- ) {
143
- grid-row: 1;
131
+ font-variation-settings: 'wght' var(--font-ui-subheadline-weight);
132
+ font-weight: round(down, var(--font-ui-subheadline-weight), 100);
133
+ letter-spacing: var(--font-ui-subheadline-tracking);
134
+ line-height: var(--font-ui-subheadline-line-height);
144
135
  }
145
136
  }
146
137
 
147
- /* Fields (see Field, Root rendering the row): the label as the title, in
148
- Body, the control filling the rest of the row (the label's column as
149
- wide as it, its value at the end), the clear button 8px after it,
150
- messages below. */
151
- &:has(> [data-text-field-part='control']) {
152
- grid-template-columns: auto auto minmax(0, max-content) minmax(0, 1fr);
153
- grid-template-rows: auto auto auto;
154
-
155
- & > [data-text-field-part='label'] {
156
- align-self: center;
157
- color: var(--color-ios-label);
158
- font-size: var(--font-ios-body-size);
159
- font-style: normal;
160
- font-variation-settings: 'wght' var(--font-ios-body-weight);
161
- font-weight: round(down, var(--font-ios-body-weight), 100);
162
- grid-area: 1 / 3;
163
- letter-spacing: var(--font-ios-body-tracking);
164
- line-height: var(--font-ios-body-line-height);
165
- margin-block: 0;
166
- margin-inline: 0 16px;
167
- stroke: currentcolor;
168
- stroke-linejoin: round;
169
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
170
-
171
- --uikit-symbol-thinning: max(
172
- 0px,
173
- (400 - var(--font-ios-body-weight)) / 326 * 1px
174
- );
175
- }
176
-
177
- & > [data-text-field-part='control'] {
178
- position: relative;
179
- align-self: center;
180
- margin: 0;
181
- grid-area: 1 / 4;
138
+ /* Fields (see TextField, its root rendering the row): its label in the
139
+ content, in Body, as wide as it; its control in a trailing slot filling
140
+ the rest of the row (its value at the end), the clear button 8px after
141
+ it; messages below. */
142
+ &:has(> [data-list-part='trailing'] > [data-text-field-part='control']) {
143
+ & > [data-list-part='content'] {
144
+ flex: none;
145
+ margin-inline-end: 16px;
182
146
  }
183
147
 
184
- & > textarea[data-text-field-part='control'] {
185
- align-self: start;
148
+ & > [data-list-part='trailing']:has(> [data-text-field-part='control']) {
149
+ flex: 1 1 0;
150
+ margin-inline-start: 0;
186
151
  }
152
+ }
187
153
 
188
- &:not(:has(> [data-text-field-part='label']))
189
- > [data-text-field-part='control'] {
190
- grid-column: 3 / 5;
191
- }
154
+ & [data-text-field-part='label'] {
155
+ color: var(--color-ui-label);
156
+ font-size: var(--font-ui-body-size);
157
+ font-style: normal;
158
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
159
+ font-weight: round(down, var(--font-ui-body-weight), 100);
160
+ letter-spacing: var(--font-ui-body-tracking);
161
+ line-height: var(--font-ui-body-line-height);
162
+ margin-block: 0;
163
+ }
192
164
 
193
- /* After an inline label, the value at the row's end (UIKit forms,
194
- Settings). */
195
- &:has(> [data-text-field-part='label'])
196
- > input[data-text-field-part='control'] {
197
- text-align: end;
198
- }
165
+ & > [data-list-part='trailing'] > [data-text-field-part='control'] {
166
+ position: relative;
167
+ min-width: 0;
168
+ flex: 1 1 0;
169
+ margin: 0;
170
+ }
199
171
 
200
- & > [data-text-field-part='clear'] {
201
- grid-row: 1;
202
- margin-block: 0;
203
- margin-inline-start: 8px;
204
- }
172
+ & > [data-list-part='trailing'] > textarea[data-text-field-part='control'] {
173
+ align-self: start;
174
+ }
205
175
 
206
- & > [data-text-field-part='description'],
207
- & > [data-text-field-part='error'] {
208
- margin: 4px 0 0;
209
- grid-column: 3 / -1;
210
- }
176
+ /* After an inline label, the value at the row's end (as forms and
177
+ settings do). */
178
+ &:has(> [data-list-part='content'] > [data-text-field-part='label'])
179
+ > [data-list-part='trailing']
180
+ > input[data-text-field-part='control'] {
181
+ text-align: end;
182
+ }
211
183
 
212
- & > [data-text-field-part='description'] {
213
- grid-row: 2;
214
- }
184
+ & > [data-list-part='trailing'] > [data-text-field-part='clear'] {
185
+ margin-block: 0;
186
+ margin-inline-start: 8px;
187
+ }
215
188
 
216
- & > [data-text-field-part='error'] {
217
- grid-row: 3;
218
- }
189
+ & > [data-list-part='below'] > :is(
190
+ [data-text-field-part='description'],
191
+ [data-text-field-part='error']
192
+ ) {
193
+ margin: 4px 0 0;
219
194
  }
220
195
 
221
- /* Figma “_Separator”, from the text to 16px before the edge */
196
+ /* The separator, from the content (its text) to 16px before the
197
+ edge: its start anchored to the content (moving with it, e.g. in edit
198
+ mode); without anchor positioning, or content, the row's padding. */
222
199
  &::before {
223
200
  position: absolute;
224
201
  top: 0;
225
- border-top: 1px solid var(--color-ios-list-separator);
202
+ border-top: 1px solid var(--color-ui-list-separator);
226
203
  content: '';
227
-
228
- /* To the padding edge (auto, as absolutely positioned; line 99 exists
229
- in rows spanning to it, e.g. media rows). */
230
- grid-column: 3 / auto;
231
- inset-inline: 0 16px;
204
+ inset-inline: var(--uikit-list-row-padding-start, 16px) 16px;
232
205
 
233
206
  /* Hidden by its row's state (see StyledItem). */
234
207
  opacity: var(--uikit-list-separator-opacity, 1);
235
208
  transition: opacity 300ms;
236
209
  }
237
210
 
238
- /* Keeps the trailing parts out of the leading and text columns. */
239
- &::after {
240
- content: '';
241
- grid-area: 1 / 1 / 3 / 4;
242
- pointer-events: none;
211
+ @supports (anchor-name: --uikit-list-content) {
212
+ & > [data-list-part='content'] {
213
+ anchor-name: --uikit-list-content;
214
+ }
215
+
216
+ &::before {
217
+ inset-inline-start: anchor(
218
+ --uikit-list-content start,
219
+ var(--uikit-list-row-padding-start, 16px)
220
+ );
221
+ }
243
222
  }
244
223
 
245
- /* Above a pressable title's hit area, as trailing controls */
246
- & > [data-list-part='edit'] {
224
+ /* Slots before the content: what's in them in a line, above a
225
+ pressable title's hit area: an edit control 2px from the start, 17px before what follows; the image 8px; other elements 12px
226
+ (8px apart). */
227
+ & > [data-list-part='leading'] {
247
228
  position: relative;
248
229
  z-index: 1;
249
- align-self: center;
250
- grid-area: 1 / 1 / 3;
251
- margin-inline: 2px 17px;
230
+ display: flex;
231
+ flex: none;
232
+ align-items: center;
233
+
234
+ & > [data-list-part='edit'] {
235
+ margin-inline: 2px 17px;
236
+ }
237
+
238
+ & > [data-list-part='image'] {
239
+ margin-inline-end: 8px;
240
+ }
241
+
242
+ & > :not([data-list-part='edit'], [data-list-part='image'], input) {
243
+ margin-inline-end: 12px;
244
+ }
245
+
246
+ & > :not([data-list-part='edit'], [data-list-part='image'], input)
247
+ + :not([data-list-part='edit'], [data-list-part='image'], input) {
248
+ margin-inline-start: -4px;
249
+ }
252
250
  }
253
251
 
254
- & > [data-list-part='image'] {
255
- align-self: center;
256
- grid-area: 1 / 2 / 3;
257
- margin-inline-end: 8px;
252
+ /* Its text: the title, the subtitle below it, a media row's text;
253
+ taking the rest of the line. (Not positioned: a pressable title's or
254
+ button's hit area covers the row.) */
255
+ & > [data-list-part='content'] {
256
+ display: flex;
257
+ min-width: 0;
258
+ flex: 1 1 0;
259
+ flex-direction: column;
260
+ justify-content: center;
258
261
  }
259
262
 
260
- /* Alone, centered across both rows (trailing parts taller than it, e.g. a
261
- switch, would grow both). */
262
- & > [data-list-part='title'] {
263
- align-self: center;
264
- grid-area: 1 / 3 / 3;
263
+ /* Across the row (e.g. a Slider, a Segmented control, an inline
264
+ calendar): the row's line. */
265
+ & > [data-list-part='span'] {
266
+ display: flex;
267
+ min-width: 0;
268
+ flex: 1 1 100%;
269
+ align-items: center;
265
270
  }
266
271
 
267
- & > [data-list-part='subtitle'] {
268
- align-self: start;
269
- grid-area: 2 / 3;
272
+ /* A calendar (DatePicker, inline) has its own insets: across the row,
273
+ as wide as it is (its days narrower, with less room). */
274
+ & > [data-list-part='span'] > [data-date-picker-part='calendar'] {
275
+ min-width: 0;
276
+ flex: 1 1 auto;
277
+ margin: -12px -16px;
270
278
  }
271
279
 
272
- & > [data-list-part='button'] {
273
- grid-area: 1 / 3 / 3;
280
+ /* A roll (e.g. DatePicker's TimeRoll, inline): across the row, its
281
+ columns centered. */
282
+ & > [data-list-part='span'] > [data-roll-part='root'] {
283
+ flex: 1 1 auto;
274
284
  }
275
285
 
276
- /* Figma “Contents - Trailing”: everything else */
277
- &
278
- > :not(
279
- [data-list-part='edit'],
280
- [data-list-part='image'],
281
- [data-list-part='title'],
282
- [data-list-part='subtitle'],
283
- [data-list-part='text'],
284
- [data-list-part='button'],
285
- [data-list-part='swipe-actions']
286
- ) {
286
+ /* With a line under it (a Below): its own line keeps the row's least
287
+ height, so the line under it only adds to it (the row's lines,
288
+ centered, would move up as it grows). */
289
+ &:has(> [data-list-part='below'])
290
+ > :is([data-list-part='content'], [data-list-part='span']) {
291
+ min-height: calc(
292
+ var(--uikit-list-min-height) - 2 * var(--uikit-list-row-padding-block, 12px)
293
+ );
294
+ }
295
+
296
+ /* Under the row's line, across it from where the content starts (see
297
+ Below; e.g. a field's messages, a message's preview). Hidden
298
+ (`hidden`), collapsed: growing and shrinking (its content clipped
299
+ meanwhile; its track's least none, its content's margins
300
+ notwithstanding), fading. */
301
+ & > [data-list-part='below'] {
302
+ display: grid;
303
+ overflow: clip;
304
+ min-width: 0;
305
+ flex: 1 1 100%;
306
+ grid-template-rows: minmax(0, 1fr);
307
+ margin-inline-start: var(--uikit-list-below-start, 0);
308
+ transition:
309
+ grid-template-rows 300ms ease,
310
+ opacity 300ms ease,
311
+ visibility 300ms;
312
+
313
+ &[hidden] {
314
+ grid-template-rows: minmax(0, 0fr);
315
+ opacity: 0;
316
+ visibility: hidden;
317
+ }
318
+
319
+ @media (prefers-reduced-motion: reduce) {
320
+ transition: none;
321
+ }
322
+ }
323
+
324
+ /* Slots after the content: what's in them
325
+ in a line, 16px apart (a grabber 12px), above a pressable title's hit
326
+ area. */
327
+ & > [data-list-part='trailing'] {
287
328
  position: relative;
288
329
  z-index: 1;
289
- align-self: center;
290
- grid-row: 1 / 3;
330
+ display: flex;
331
+ flex: none;
332
+ align-items: center;
291
333
  margin-block: -4px;
292
- margin-inline-start: 16px;
293
- }
294
334
 
295
- /* A row of a single control (no row part, e.g. a Slider): across the
296
- row's content. */
297
- &:not(:has(> [data-list-part])) > :only-child {
298
- z-index: auto;
299
- margin: 0;
300
- grid-column: 1 / -1;
301
- grid-row: 1 / 3;
302
- justify-self: stretch;
303
- }
335
+ & > :not(input) {
336
+ margin-inline-start: 16px;
337
+ }
304
338
 
305
- /* A calendar (DatePicker, inline) has its own insets: across the row. */
306
- &:not(:has(> [data-list-part]))
307
- > [data-date-picker-part='calendar']:only-child {
308
- margin: -12px -16px;
339
+ & > [data-list-part='grabber'] {
340
+ margin-inline-start: 12px;
341
+ }
342
+
343
+ /* Controls filling their container elsewhere (e.g. Segmented) take
344
+ their content's width. */
345
+ & > [role='radiogroup'] {
346
+ width: auto;
347
+ }
309
348
  }
310
349
 
311
- /* Trailing controls filling their container elsewhere (e.g. Segmented)
312
- take their content's width. */
313
- & > [role='radiogroup'] {
314
- width: auto;
350
+ /* Edit mode (see Item: its sides, `data-edit-leading` and
351
+ `-trailing`, on or off; not managed, neither): a side's slots shown
352
+ only while it edits (`whileEditing="show"`, e.g. edit controls', a
353
+ grabber's) slide in from the row's edge (the group clips them), the
354
+ content making room; those hidden then (`hide`, e.g. a chevron's)
355
+ slide out; others stay (whatever they hold: placing is the slots').
356
+ Out, a slot takes no room (its margins cancel its width,
357
+ `--uikit-list-slot-size`, measured), beyond the row's edge, faded and
358
+ hidden. */
359
+ [data-sized] > & > :is([data-list-part='leading'], [data-list-part='trailing']) {
360
+ transition-duration: 300ms;
361
+ transition-property: margin, opacity, visibility;
362
+ transition-timing-function: ease;
363
+ }
364
+
365
+ [data-edit-leading='off'] > * > &
366
+ > [data-list-part='leading'][data-while-editing='show'],
367
+ [data-edit-leading='on'] > * > &
368
+ > [data-list-part='leading'][data-while-editing='hide'] {
369
+ margin-inline: calc(-1 * var(--uikit-list-slot-size, 0px) - 16px) 16px;
370
+ opacity: 0;
371
+ visibility: hidden;
315
372
  }
316
373
 
317
- /* Figma “_Grabber” */
318
- & > [data-list-part='grabber'] {
319
- margin-inline-start: 12px;
374
+ [data-edit-trailing='off'] > * > &
375
+ > [data-list-part='trailing'][data-while-editing='show'],
376
+ [data-edit-trailing='on'] > * > &
377
+ > [data-list-part='trailing'][data-while-editing='hide'] {
378
+ margin-inline: 16px calc(-1 * var(--uikit-list-slot-size, 0px) - 16px);
379
+ opacity: 0;
380
+ visibility: hidden;
320
381
  }
321
382
  }
322
383
 
@@ -374,26 +435,15 @@
374
435
  .uikit-list-subtitle {
375
436
  min-width: 0;
376
437
  margin: 0;
377
- color: var(--color-ios-secondary-label);
378
- font-size: var(--font-ios-subheadline-size);
438
+ color: var(--color-ui-secondary-label);
439
+ font-size: var(--font-ui-subheadline-size);
379
440
  font-style: normal;
380
- font-variation-settings: 'wght' var(--font-ios-subheadline-weight);
381
- font-weight: round(down, var(--font-ios-subheadline-weight), 100);
382
- letter-spacing: var(--font-ios-subheadline-tracking);
383
- line-height: var(--font-ios-subheadline-line-height);
441
+ font-variation-settings: 'wght' var(--font-ui-subheadline-weight);
442
+ font-weight: round(down, var(--font-ui-subheadline-weight), 100);
443
+ letter-spacing: var(--font-ui-subheadline-tracking);
444
+ line-height: var(--font-ui-subheadline-line-height);
384
445
  overflow-wrap: break-word;
385
446
  pointer-events: none;
386
- stroke: currentcolor;
387
- stroke-linejoin: round;
388
- stroke-width: max(
389
- 0px,
390
- (var(--font-ios-subheadline-weight) - 400) / 326 * 1px
391
- );
392
-
393
- --uikit-symbol-thinning: max(
394
- 0px,
395
- (400 - var(--font-ios-subheadline-weight)) / 326 * 1px
396
- );
397
447
  }
398
448
 
399
449
  .uikit-list-text {
@@ -402,98 +452,64 @@
402
452
  min-width: 0;
403
453
  margin: 0;
404
454
  -webkit-box-orient: vertical;
405
- color: var(--color-ios-secondary-label);
406
- font-size: var(--font-ios-subheadline-size);
455
+ color: var(--color-ui-secondary-label);
456
+ font-size: var(--font-ui-subheadline-size);
407
457
  font-style: normal;
408
- font-variation-settings: 'wght' var(--font-ios-subheadline-weight);
409
- font-weight: round(down, var(--font-ios-subheadline-weight), 100);
410
- letter-spacing: var(--font-ios-subheadline-tracking);
458
+ font-variation-settings: 'wght' var(--font-ui-subheadline-weight);
459
+ font-weight: round(down, var(--font-ui-subheadline-weight), 100);
460
+ letter-spacing: var(--font-ui-subheadline-tracking);
411
461
  -webkit-line-clamp: attr(lines type(<integer>), 2);
412
- line-height: var(--font-ios-subheadline-line-height);
462
+ line-height: var(--font-ui-subheadline-line-height);
413
463
  overflow-wrap: break-word;
414
464
  pointer-events: none;
415
- stroke: currentcolor;
416
- stroke-linejoin: round;
417
- stroke-width: max(
418
- 0px,
419
- (var(--font-ios-subheadline-weight) - 400) / 326 * 1px
420
- );
421
-
422
- --uikit-symbol-thinning: max(
423
- 0px,
424
- (400 - var(--font-ios-subheadline-weight)) / 326 * 1px
425
- );
426
465
  }
427
466
 
428
467
  .uikit-list-supertitle {
429
468
  min-width: 0;
430
469
  margin: 0;
431
- color: var(--color-ios-secondary-label);
470
+ color: var(--color-ui-secondary-label);
432
471
  font-size: 15px;
433
472
  font-variation-settings: 'wght' 400;
434
473
  font-weight: round(down, 400, 100);
435
474
  letter-spacing: -0.45px;
436
475
  line-height: 20px;
437
476
  overflow-wrap: break-word;
438
- stroke: currentcolor;
439
- stroke-linejoin: round;
440
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
441
-
442
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
443
477
  }
444
478
 
445
479
  .uikit-list-detail {
446
- color: var(--color-ios-secondary-label);
447
- font-size: var(--font-ios-body-size);
480
+ color: var(--color-ui-secondary-label);
481
+ font-size: var(--font-ui-body-size);
448
482
  font-style: normal;
449
- font-variation-settings: 'wght' var(--font-ios-body-weight);
450
- font-weight: round(down, var(--font-ios-body-weight), 100);
451
- letter-spacing: var(--font-ios-body-tracking);
452
- line-height: var(--font-ios-body-line-height);
483
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
484
+ font-weight: round(down, var(--font-ui-body-weight), 100);
485
+ letter-spacing: var(--font-ui-body-tracking);
486
+ line-height: var(--font-ui-body-line-height);
453
487
  pointer-events: none;
454
- stroke: currentcolor;
455
- stroke-linejoin: round;
456
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
457
488
  white-space: nowrap;
458
-
459
- --uikit-symbol-thinning: max(
460
- 0px,
461
- (400 - var(--font-ios-body-weight)) / 326 * 1px
462
- );
463
489
  }
464
490
 
465
491
  .uikit-list-checkmark {
466
492
  display: grid;
467
493
  min-width: 22px;
468
494
  min-height: 22px;
469
- color: var(--color-ios-label);
470
- font-size: var(--font-ios-body-size);
495
+ color: var(--color-ui-label);
496
+ font-size: var(--font-ui-body-size);
471
497
  font-variation-settings: 'wght' 590;
472
498
  font-weight: round(down, 590, 100);
473
499
  place-items: center;
474
500
  pointer-events: none;
475
- stroke: currentcolor;
476
- stroke-linejoin: round;
477
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
478
-
479
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
480
501
  }
481
502
 
482
503
  .uikit-list-drill-in {
483
504
  display: grid;
484
505
  min-width: 8px;
485
506
  min-height: 22px;
486
- color: var(--color-ios-tertiary-label);
487
- font-size: var(--font-ios-body-size);
507
+ color: var(--color-ui-tertiary-label);
508
+ font-size: var(--font-ui-body-size);
488
509
  font-variation-settings: 'wght' 590;
489
510
  font-weight: round(down, 590, 100);
490
511
  place-items: center;
491
512
  pointer-events: none;
492
- stroke: currentcolor;
493
- stroke-linejoin: round;
494
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
495
-
496
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
497
513
 
498
514
  &:dir(rtl) {
499
515
  scale: -1 1;
@@ -506,17 +522,12 @@
506
522
  display: grid;
507
523
  min-width: 8px;
508
524
  min-height: 22px;
509
- color: var(--color-ios-primary);
510
- font-size: var(--font-ios-body-size);
525
+ color: var(--color-ui-primary);
526
+ font-size: var(--font-ui-body-size);
511
527
  font-variation-settings: 'wght' 590;
512
528
  font-weight: round(down, 590, 100);
513
529
  place-items: center;
514
530
  pointer-events: none;
515
- stroke: currentcolor;
516
- stroke-linejoin: round;
517
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
518
-
519
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
520
531
 
521
532
  &:dir(rtl) {
522
533
  --uikit-list-disclosure-turn: -90deg;
@@ -537,16 +548,22 @@
537
548
  .uikit-list-footer {
538
549
  display: block;
539
550
  padding: 8px calc(16px + var(--uikit-list-inset, 16px)) 6px;
540
- color: var(--color-ios-secondary-label);
551
+ color: var(--color-ui-secondary-label);
541
552
  font-size: 13px;
542
553
  font-variation-settings: 'wght' 400;
543
554
  font-weight: round(down, 400, 100);
544
555
  line-height: 18px;
545
- stroke: currentcolor;
546
- stroke-linejoin: round;
547
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
548
556
 
549
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
557
+ /* Its actions (buttons, alone in it): below the group, 16px from it,
558
+ stacked and centered, as wide as the group at most (a `fill` button
559
+ spanning it); the gap the list's, not the buttons'. */
560
+ &:has(> [data-button-part='root']):not(:has(> :not([data-button-part='root']))) {
561
+ display: flex;
562
+ flex-direction: column;
563
+ align-items: center;
564
+ padding: 16px var(--uikit-list-inset, 16px) 0;
565
+ gap: 8px;
566
+ }
550
567
  }
551
568
 
552
569
  /* An action's reveal (see `StyledSwipeAction`): scaling in, and its parts fading in (see `actionFade`). */
@@ -574,11 +591,11 @@
574
591
  display: flow-root;
575
592
  min-width: 240px;
576
593
  background-color: var(--uikit-list-background);
577
- color: var(--color-ios-label);
594
+ color: var(--color-ui-label);
578
595
 
579
596
  /* Its style (listStyle). */
580
597
 
581
- /* Figma “Sidebars” (“Sidebar Row”, in a Sidebar's glass): groups
598
+ /* Sidebars (rows in a Sidebar's glass): groups
582
599
  without a shape of their own (nor a background), their rows capsules,
583
600
  44px high (selected: on a fill, its symbol and title emphasized, in the
584
601
  tint), without separators; 10px in at the first level, 20px more per
@@ -602,14 +619,14 @@
602
619
  );
603
620
  }
604
621
 
605
- &:where(:root[data-color-scheme='light'] *) {
622
+ &:where([data-color-scheme='light'], [data-color-scheme='light'] *) {
606
623
  --uikit-list-selected-background: var(
607
624
  --uikit-sidebar-selection,
608
625
  rgb(0 0 0 / 7%)
609
626
  );
610
627
  }
611
628
 
612
- &:where(:root[data-color-scheme='dark'] *) {
629
+ &:where([data-color-scheme='dark'], [data-color-scheme='dark'] *) {
613
630
  --uikit-list-selected-background: var(
614
631
  --uikit-sidebar-selection,
615
632
  rgb(255 255 255 / 12%)
@@ -625,12 +642,12 @@
625
642
  --uikit-list-outline-shadow: none;
626
643
  --uikit-list-separator-opacity: 0;
627
644
  --uikit-list-row-min-height: 44px;
628
- --uikit-list-row-padding: 0 16px;
645
+ --uikit-list-row-padding-block: 0px;
629
646
  --uikit-list-row-padding-start: 10px;
630
- --uikit-list-selected-title: var(--color-ios-primary);
647
+ --uikit-list-selected-title: var(--color-ui-primary);
631
648
 
632
- /* Pressed: on the selection's fill too (user: Figma's pressed rows are
633
- wrong; selected and pressed differ in their text only; the
649
+ /* Pressed: on the selection's fill too (selected and pressed differ in
650
+ their text only; the
634
651
  sidebar's toolbar buttons pressed alike, see Sidebar). */
635
652
  --uikit-list-pressed-background: var(--uikit-list-selected-background);
636
653
 
@@ -638,32 +655,31 @@
638
655
 
639
656
  &
640
657
  [data-list-part='row']
658
+ > [data-list-part='leading']
641
659
  > [data-list-part='image'][data-variant='symbol'] {
642
660
  width: 34px;
643
- color: var(--color-ios-label);
661
+ color: var(--color-ui-label);
644
662
  margin-inline-end: 4px;
645
663
  }
646
664
 
647
- & [data-selected] [data-list-part='row'] > [data-list-part='title'] {
648
- color: var(--color-ios-primary);
665
+ & [data-selected]
666
+ [data-list-part='row']
667
+ > [data-list-part='content']
668
+ > [data-list-part='title'] {
669
+ color: var(--color-ui-primary);
649
670
  font-variation-settings: 'wght' 590;
650
671
  font-weight: round(down, 590, 100);
651
- stroke: currentcolor;
652
- stroke-linejoin: round;
653
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
654
-
655
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
656
672
  }
657
673
 
658
- & [data-selected] [data-list-part='row'] > [data-list-part='image'] {
659
- color: var(--color-ios-primary);
674
+ & [data-selected]
675
+ [data-list-part='row']
676
+ > [data-list-part='leading']
677
+ > [data-list-part='image'] {
678
+ color: var(--color-ui-primary);
660
679
  font-variation-settings: 'wght' 590;
661
680
  font-weight: round(down, 590, 100);
662
- stroke: currentcolor;
663
- stroke-linejoin: round;
664
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
665
681
 
666
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
682
+ --uikit-symbol-emphasis: 1;
667
683
  }
668
684
 
669
685
  & [data-list-part='header'] {
@@ -673,38 +689,34 @@
673
689
  }
674
690
 
675
691
  & [data-list-part='header'] > [data-list-part='title'] {
676
- color: var(--color-ios-secondary-label);
677
- font-size: var(--font-ios-body-size);
692
+ color: var(--color-ui-secondary-label);
693
+ font-size: var(--font-ui-body-size);
678
694
  font-style: normal;
679
695
  font-variation-settings: 'wght' 400;
680
696
  font-weight: round(down, 400, 100);
681
- letter-spacing: var(--font-ios-body-tracking);
682
- line-height: var(--font-ios-body-line-height);
683
- stroke: currentcolor;
684
- stroke-linejoin: round;
685
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
686
-
687
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
697
+ letter-spacing: var(--font-ui-body-tracking);
698
+ line-height: var(--font-ui-body-line-height);
688
699
  }
689
700
 
690
- /* Its selection circles (Figma “Edit Button”): 8px before the symbol. */
691
- & [data-list-part='row'] > [data-list-part='edit'] {
701
+ /* Its selection circles (edit buttons): 8px before the symbol. */
702
+ & [data-list-part='row'] > [data-list-part='leading'] > [data-list-part='edit'] {
692
703
  margin-inline: 0 8px;
693
704
  }
694
705
 
695
- /* Chevrons (Figma “Disclosure”: #999, 590, an 18px box 12px from the
696
- row's end): gray, not the tint; headers' and rows' alike, aligned. */
706
+ /* Chevrons (disclosures: #999, 590, an 18px box 12px from the row's
707
+ end): gray, not the tint; headers' and rows' alike, aligned. */
697
708
  & [data-list-part='disclosure'] {
698
- color: var(--color-ios-secondary-label);
709
+ color: var(--color-ui-secondary-label);
699
710
  }
700
711
 
701
712
  & [data-list-part='header'] > [data-list-part='disclosure'] {
702
713
  min-width: 18px;
703
- font-size: var(--font-ios-body-size);
714
+ font-size: var(--font-ui-body-size);
704
715
  }
705
716
 
706
717
  &
707
718
  [data-list-part='row']
719
+ > [data-list-part='trailing']
708
720
  > [data-list-part='accessory']:has(> [data-list-part='disclosure']) {
709
721
  min-width: 18px;
710
722
  margin-inline-end: -4px;
@@ -714,11 +726,11 @@
714
726
  &:where([data-list-style='grouped']) {
715
727
  --uikit-list-background: var(
716
728
  --uikit-list-container-background,
717
- var(--color-ios-system-grouped-background)
729
+ var(--color-ui-system-grouped-background)
718
730
  );
719
731
  --uikit-list-group-background: var(
720
732
  --uikit-list-container-group-background,
721
- var(--color-ios-secondary-system-grouped-background)
733
+ var(--color-ui-secondary-system-grouped-background)
722
734
  );
723
735
  --uikit-list-inset: 0px;
724
736
  --uikit-list-radius: 0px;
@@ -731,11 +743,11 @@
731
743
  &:where(:not([data-list-style]), [data-list-style='insetGrouped']) {
732
744
  --uikit-list-background: var(
733
745
  --uikit-list-container-background,
734
- var(--color-ios-system-grouped-background)
746
+ var(--color-ui-system-grouped-background)
735
747
  );
736
748
  --uikit-list-group-background: var(
737
749
  --uikit-list-container-group-background,
738
- var(--color-ios-secondary-system-grouped-background)
750
+ var(--color-ui-secondary-system-grouped-background)
739
751
  );
740
752
  --uikit-list-inset: 16px;
741
753
  --uikit-list-radius: 24px;
@@ -744,18 +756,18 @@
744
756
  var(--uikit-list-outline, transparent);
745
757
  }
746
758
 
747
- /* Figma “Section Title”: nested headers stick to the top, 22px high on an
759
+ /* Section titles: nested headers stick to the top, 22px high on an
748
760
  opaque background (Framework7 contacts list), and sections are snap points, so
749
761
  scrolling ends with a section title fully in view. Rows are on the list
750
762
  background of Framework7's .list-strong. */
751
763
  &:where([data-list-style='plain']) {
752
764
  --uikit-list-background: var(
753
765
  --uikit-list-container-background,
754
- var(--color-ios-system-background)
766
+ var(--color-ui-system-background)
755
767
  );
756
768
  --uikit-list-group-background: var(
757
769
  --uikit-list-container-group-background,
758
- var(--color-ios-secondary-system-grouped-background)
770
+ var(--color-ui-secondary-system-grouped-background)
759
771
  );
760
772
  --uikit-list-section-snap: start;
761
773
  --uikit-list-inset: 0px;
@@ -766,20 +778,20 @@
766
778
  inset 0 -1px var(--uikit-list-outline, transparent);
767
779
  --uikit-list-header-position: sticky;
768
780
  --uikit-list-header-background: var(
769
- --color-ios-list-section-title-background
781
+ --color-ui-list-section-title-background
770
782
  );
771
783
  --uikit-list-nested-padding-block: 0;
772
784
  --uikit-list-nested-min-height: 22px;
773
- --uikit-list-nested-size: var(--font-ios-body-size);
774
- --uikit-list-nested-line-height: var(--font-ios-body-line-height);
775
- --uikit-list-nested-tracking: var(--font-ios-body-tracking);
785
+ --uikit-list-nested-size: var(--font-ui-body-size);
786
+ --uikit-list-nested-line-height: var(--font-ui-body-line-height);
787
+ --uikit-list-nested-tracking: var(--font-ui-body-tracking);
776
788
  }
777
789
 
778
790
  /* Outlined (Framework7 `.list-outline`): hairlines above and below
779
791
  groups that span the list, a border around inset ones; drawn as
780
792
  shadows, taking no space. */
781
793
  &:where([data-outline]) {
782
- --uikit-list-outline: var(--color-ios-list-separator);
794
+ --uikit-list-outline: var(--color-ui-list-separator);
783
795
  }
784
796
  }
785
797
 
@@ -805,29 +817,37 @@
805
817
  touch-action: pan-y;
806
818
  transition-duration: 300ms;
807
819
  transition-property: background-color;
820
+ -webkit-user-select: none;
808
821
  user-select: none;
809
822
 
823
+ /* Across it (a Span), what scrolls sideways too (e.g. an inline
824
+ calendar's months). */
825
+ &:has([data-list-part='span']) {
826
+ touch-action: pan-x pan-y;
827
+ }
828
+
810
829
  &[data-swipeable] {
811
830
  overflow: auto hidden;
812
831
  overscroll-behavior-x: contain;
813
832
  scroll-snap-type: x mandatory;
814
- scrollbar-width: none;
815
833
  touch-action: pan-x pan-y;
816
834
 
817
- &::-webkit-scrollbar {
818
- display: none;
835
+ /* Open, not swiped closed (see SwipeActions allowSwipe): closed by
836
+ its trigger or handle only (scrolled programmatically). */
837
+ &[data-swipe-locked] {
838
+ overflow-x: hidden;
819
839
  }
820
840
  }
821
841
 
822
- /* Lifted while reordered (see useReorder), opaque (Framework7: 80%, the
842
+ /* Lifted while reordered (see reorder.ts), opaque (Framework7: 80%, the
823
843
  rows beneath showing through), its separators hidden */
824
844
  &[data-reordering] {
825
845
  z-index: 2;
826
846
  background-color: var(
827
847
  --uikit-list-group-background,
828
- var(--color-ios-secondary-system-grouped-background)
848
+ var(--color-ui-secondary-system-grouped-background)
829
849
  );
830
- box-shadow: var(--shadow-ios-list-reorder);
850
+ box-shadow: var(--shadow-ui-list-reorder);
831
851
  }
832
852
 
833
853
  &[data-reordering],
@@ -835,8 +855,12 @@
835
855
  --uikit-list-separator-opacity: 0;
836
856
  }
837
857
 
838
- /* While reordering, by their order on screen (see useReorder) */
839
- &:first-child:not([data-reorder-edge]),
858
+ /* The first and last rows shown (closed collapsible rows aside, see
859
+ CollapsiblePanel; drop targets aside); while reordering, by their
860
+ order on screen (see reorder.ts). */
861
+ &:nth-child(
862
+ 1 of :not([data-closed], [data-list-part='drop-target'])
863
+ ):not([data-reorder-edge]),
840
864
  &[data-reorder-edge~='first'] {
841
865
  border-start-end-radius: var(
842
866
  --uikit-list-item-radius,
@@ -850,7 +874,9 @@
850
874
  --uikit-list-separator-opacity: 0;
851
875
  }
852
876
 
853
- &:last-child:not([data-reorder-edge]),
877
+ &:nth-last-child(
878
+ 1 of :not([data-closed], [data-list-part='drop-target'])
879
+ ):not([data-reorder-edge]),
854
880
  &[data-reorder-edge~='last'] {
855
881
  border-end-end-radius: var(
856
882
  --uikit-list-item-radius,
@@ -864,13 +890,13 @@
864
890
 
865
891
  /* Pressed: a pressable title or button (a link or button title, or a
866
892
  button), or a row with a click handler, pressed itself (see Item). */
867
- &:has(> * > * > a[href][data-list-part='title']:active),
868
- &:has(> * > * > button[data-list-part='title']:enabled:active),
869
- &:has(> * > * > button[data-list-part='button']:enabled:active),
893
+ &:has(> * > * > * > a[href][data-list-part='title']:active),
894
+ &:has(> * > * > * > button[data-list-part='title']:enabled:active),
895
+ &:has(> * > * > * > button[data-list-part='button']:enabled:active),
870
896
  &[data-pressed] {
871
897
  --uikit-list-row-background: var(
872
898
  --uikit-list-pressed-background,
873
- var(--color-ios-system-gray4)
899
+ var(--color-ui-system-gray4)
874
900
  );
875
901
 
876
902
  transition-duration: 0ms;
@@ -881,10 +907,10 @@
881
907
  }
882
908
  }
883
909
 
884
- &:has(> * > * > a[href][data-list-part='title']:focus-visible),
885
- &:has(> * > * > button[data-list-part='title']:enabled:focus-visible),
886
- &:has(> * > * > button[data-list-part='button']:enabled:focus-visible) {
887
- outline: 2px solid var(--color-ios-primary);
910
+ &:has(> * > * > * > a[href][data-list-part='title']:focus-visible),
911
+ &:has(> * > * > * > button[data-list-part='title']:enabled:focus-visible),
912
+ &:has(> * > * > * > button[data-list-part='button']:enabled:focus-visible) {
913
+ outline: 2px solid var(--color-ui-primary);
888
914
  outline-offset: -2px;
889
915
  }
890
916
 
@@ -893,12 +919,12 @@
893
919
  --uikit-list-separator-opacity: 0;
894
920
  }
895
921
 
896
- /* Figma “Row with Swipe Actions”: the swiped row's content is a capsule
922
+ /* Swiped rows: the swiped row's content is a capsule
897
923
  (its end leaving the row rounded by its clip, see rowPath); its actions
898
924
  on the row's background. */
899
925
  &[data-swipe] > * > [data-list-part='row'] {
900
926
  border-radius: 34px;
901
- background-color: var(--color-ios-system-gray5);
927
+ background-color: var(--color-ui-system-gray5);
902
928
  }
903
929
 
904
930
  /* Selected (see Item): on a fill (sidebars: its title in the tint), its
@@ -906,7 +932,7 @@
906
932
  &[data-selected] {
907
933
  --uikit-list-row-background: var(
908
934
  --uikit-list-selected-background,
909
- var(--color-ios-system-gray5)
935
+ var(--color-ui-system-gray5)
910
936
  );
911
937
  --uikit-list-separator-opacity: 0;
912
938
  }
@@ -919,7 +945,8 @@
919
945
  color: var(--uikit-list-selected-title, inherit);
920
946
  }
921
947
 
922
- /* An expandable row, closed (see Expandable): no height, nor separator. */
948
+ /* A collapsible row, closed (see CollapsiblePanel): no height, nor
949
+ separator. */
923
950
  &[data-closed] {
924
951
  overflow: hidden;
925
952
  height: 0;
@@ -938,24 +965,16 @@
938
965
  background: none;
939
966
  color: inherit;
940
967
  font-family: inherit;
941
- font-size: var(--font-ios-body-size);
968
+ font-size: var(--font-ui-body-size);
942
969
  font-style: normal;
943
- font-variation-settings: 'wght' var(--font-ios-body-weight);
944
- font-weight: round(down, var(--font-ios-body-weight), 100);
945
- letter-spacing: var(--font-ios-body-tracking);
946
- line-height: var(--font-ios-body-line-height);
970
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
971
+ font-weight: round(down, var(--font-ui-body-weight), 100);
972
+ letter-spacing: var(--font-ui-body-tracking);
973
+ line-height: var(--font-ui-body-line-height);
947
974
  overflow-wrap: break-word;
948
- stroke: currentcolor;
949
- stroke-linejoin: round;
950
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
951
975
  text-align: inherit;
952
976
  text-decoration: none;
953
977
 
954
- --uikit-symbol-thinning: max(
955
- 0px,
956
- (400 - var(--font-ios-body-weight)) / 326 * 1px
957
- );
958
-
959
978
  a&,
960
979
  button&,
961
980
  label& {
@@ -989,18 +1008,13 @@
989
1008
  font-weight: round(down, 400, 100);
990
1009
  place-items: center;
991
1010
  pointer-events: none;
992
- stroke: currentcolor;
993
- stroke-linejoin: round;
994
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
995
-
996
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
997
1011
 
998
1012
  &:where([data-variant='circular']) {
999
1013
  width: 42px;
1000
1014
  height: 42px;
1001
1015
  border-radius: 50%;
1002
- background-color: var(--color-ios-tertiary-system-fill);
1003
- color: var(--color-ios-secondary-label);
1016
+ background-color: var(--color-ui-tertiary-system-fill);
1017
+ color: var(--color-ui-secondary-label);
1004
1018
  font-size: 21px;
1005
1019
  margin-block: -12px;
1006
1020
  }
@@ -1008,8 +1022,8 @@
1008
1022
  &:where([data-variant='fill']) {
1009
1023
  width: 52px;
1010
1024
  height: 52px;
1011
- background-color: var(--color-ios-tertiary-system-fill);
1012
- color: var(--color-ios-secondary-label);
1025
+ background-color: var(--color-ui-tertiary-system-fill);
1026
+ color: var(--color-ui-secondary-label);
1013
1027
  font-size: 21px;
1014
1028
  margin-block: -12px;
1015
1029
  }
@@ -1018,7 +1032,7 @@
1018
1032
  width: 30px;
1019
1033
  height: 30px;
1020
1034
  border-radius: 7px;
1021
- background-color: var(--color-ios-primary);
1035
+ background-color: var(--color-ui-primary);
1022
1036
  color: #fff;
1023
1037
  font-size: 17px;
1024
1038
  margin-block: -12px;
@@ -1027,8 +1041,8 @@
1027
1041
  &:where(:not([data-variant]), [data-variant='symbol']) {
1028
1042
  width: 28px;
1029
1043
  min-height: 20px;
1030
- color: var(--color-ios-primary);
1031
- font-size: var(--font-ios-body-size);
1044
+ color: var(--color-ui-primary);
1045
+ font-size: var(--font-ui-body-size);
1032
1046
  line-height: 20px;
1033
1047
  }
1034
1048
 
@@ -1047,27 +1061,32 @@
1047
1061
  border: 0;
1048
1062
  margin: 0;
1049
1063
  background: none;
1050
- color: var(--color-ios-primary);
1064
+ color: var(--color-ui-primary);
1051
1065
  font-family: inherit;
1052
- font-size: var(--font-ios-body-size);
1066
+ font-size: var(--font-ui-body-size);
1053
1067
  font-variation-settings: 'wght' 400;
1054
1068
  font-weight: round(down, 400, 100);
1055
- line-height: var(--font-ios-body-line-height);
1069
+ line-height: var(--font-ui-body-line-height);
1056
1070
  place-items: center;
1057
- stroke: currentcolor;
1058
- stroke-linejoin: round;
1059
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
1060
1071
  text-align: inherit;
1061
1072
  text-decoration: none;
1062
1073
 
1063
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
1064
-
1065
1074
  &:is(a, button) {
1066
1075
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
1067
1076
 
1077
+ position: relative;
1078
+
1068
1079
  @media (hover: hover) {
1069
1080
  cursor: var(--uikit-utils-cursor);
1070
1081
  }
1082
+
1083
+ /* Hit region: at least 44×44px, centered (its parent's own pressable
1084
+ area beneath, e.g. a row's title's). */
1085
+ &::after {
1086
+ position: absolute;
1087
+ content: '';
1088
+ inset: min(0px, calc(50% - 22px));
1089
+ }
1071
1090
  }
1072
1091
 
1073
1092
  &:not(a, button) {
@@ -1076,17 +1095,15 @@
1076
1095
  }
1077
1096
 
1078
1097
  .uikit-list-grabber {
1098
+ position: relative;
1079
1099
  display: grid;
1080
1100
  min-width: 22px;
1081
1101
  min-height: 25px;
1082
- color: var(--color-ios-tertiary-label);
1083
- font-size: var(--font-ios-body-size);
1102
+ color: var(--color-ui-tertiary-label);
1103
+ font-size: var(--font-ui-body-size);
1084
1104
  font-variation-settings: 'wght' 400;
1085
1105
  font-weight: round(down, 400, 100);
1086
1106
  place-items: center;
1087
- stroke: currentcolor;
1088
- stroke-linejoin: round;
1089
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
1090
1107
  touch-action: none;
1091
1108
 
1092
1109
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), grab);
@@ -1095,7 +1112,13 @@
1095
1112
  cursor: var(--uikit-utils-cursor);
1096
1113
  }
1097
1114
 
1098
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
1115
+ /* Hit region: at least 44×44px, centered (its parent's own pressable
1116
+ area beneath, e.g. a row's title's). */
1117
+ &::after {
1118
+ position: absolute;
1119
+ content: '';
1120
+ inset: min(0px, calc(50% - 22px));
1121
+ }
1099
1122
  }
1100
1123
 
1101
1124
  .uikit-list-action {
@@ -1103,17 +1126,14 @@
1103
1126
  border: 0;
1104
1127
  margin: 0;
1105
1128
  background: none;
1106
- color: var(--color-ios-primary);
1129
+ color: var(--color-ui-primary);
1107
1130
  font-family: inherit;
1108
- font-size: var(--font-ios-body-size);
1131
+ font-size: var(--font-ui-body-size);
1109
1132
  font-style: normal;
1110
- font-variation-settings: 'wght' var(--font-ios-body-weight);
1111
- font-weight: round(down, var(--font-ios-body-weight), 100);
1112
- letter-spacing: var(--font-ios-body-tracking);
1113
- line-height: var(--font-ios-body-line-height);
1114
- stroke: currentcolor;
1115
- stroke-linejoin: round;
1116
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
1133
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
1134
+ font-weight: round(down, var(--font-ui-body-weight), 100);
1135
+ letter-spacing: var(--font-ui-body-tracking);
1136
+ line-height: var(--font-ui-body-line-height);
1117
1137
  text-align: inherit;
1118
1138
  text-decoration: none;
1119
1139
  white-space: nowrap;
@@ -1124,15 +1144,10 @@
1124
1144
  cursor: var(--uikit-utils-cursor);
1125
1145
  }
1126
1146
 
1127
- --uikit-symbol-thinning: max(
1128
- 0px,
1129
- (400 - var(--font-ios-body-weight)) / 326 * 1px
1130
- );
1131
-
1132
1147
  &:disabled {
1133
1148
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
1134
1149
 
1135
- color: var(--color-ios-system-gray2);
1150
+ color: var(--color-ui-system-gray2);
1136
1151
  }
1137
1152
  }
1138
1153
 
@@ -1142,25 +1157,18 @@
1142
1157
  border: 0;
1143
1158
  margin: 0;
1144
1159
  background: none;
1145
- color: var(--color-ios-primary);
1160
+ color: var(--color-ui-primary);
1146
1161
  font-family: inherit;
1147
- font-size: var(--font-ios-body-size);
1162
+ font-size: var(--font-ui-body-size);
1148
1163
  font-style: normal;
1149
- font-variation-settings: 'wght' var(--font-ios-body-weight);
1150
- font-weight: round(down, var(--font-ios-body-weight), 100);
1151
- letter-spacing: var(--font-ios-body-tracking);
1152
- line-height: var(--font-ios-body-line-height);
1164
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
1165
+ font-weight: round(down, var(--font-ui-body-weight), 100);
1166
+ letter-spacing: var(--font-ui-body-tracking);
1167
+ line-height: var(--font-ui-body-line-height);
1153
1168
  overflow-wrap: break-word;
1154
- stroke: currentcolor;
1155
- stroke-linejoin: round;
1156
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
1157
1169
  text-align: start;
1158
1170
  text-decoration: none;
1159
1171
 
1160
- --uikit-symbol-thinning: max(
1161
- 0px,
1162
- (400 - var(--font-ios-body-weight)) / 326 * 1px
1163
- );
1164
1172
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
1165
1173
 
1166
1174
  @media (hover: hover) {
@@ -1174,13 +1182,13 @@
1174
1182
  }
1175
1183
 
1176
1184
  &:where([data-destructive]) {
1177
- color: var(--color-ios-system-red);
1185
+ color: var(--color-ui-system-red);
1178
1186
  }
1179
1187
 
1180
1188
  &:disabled {
1181
1189
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
1182
1190
 
1183
- color: var(--color-ios-system-gray2);
1191
+ color: var(--color-ui-system-gray2);
1184
1192
  }
1185
1193
 
1186
1194
  &:focus-visible {
@@ -1189,12 +1197,22 @@
1189
1197
  }
1190
1198
 
1191
1199
  .uikit-list-edit-button {
1200
+ /* Rendered as no button (e.g. a span beside a row's List.Button):
1201
+ its circle only, pressing the row beneath it. */
1202
+ &:not(button) {
1203
+ pointer-events: none;
1204
+ }
1205
+
1206
+ position: relative;
1192
1207
  padding: 0;
1193
1208
  border: 0;
1194
1209
  margin: 0;
1195
1210
  background: none;
1196
- background-color: var(--color-ios-system-red);
1197
- color: #fff;
1211
+ background-color: var(
1212
+ --uikit-list-edit-tint,
1213
+ var(--color-ui-system-gray)
1214
+ );
1215
+ color: var(--uikit-list-edit-text-color, #fff);
1198
1216
  font-family: inherit;
1199
1217
  text-align: inherit;
1200
1218
  text-decoration: none;
@@ -1205,15 +1223,19 @@
1205
1223
  cursor: var(--uikit-utils-cursor);
1206
1224
  }
1207
1225
 
1208
- &:where([data-editing-style='insert']) {
1209
- background-color: var(--color-ios-system-green);
1210
- }
1211
-
1212
1226
  &:disabled {
1213
1227
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
1214
1228
 
1215
1229
  opacity: 0.5;
1216
1230
  }
1231
+
1232
+ /* Hit region: at least 44×44px, centered (its parent's own pressable
1233
+ area beneath, e.g. a row's title's). */
1234
+ &::after {
1235
+ position: absolute;
1236
+ content: '';
1237
+ inset: min(0px, calc(50% - 22px));
1238
+ }
1217
1239
  }
1218
1240
 
1219
1241
  .uikit-list-swipe-actions {
@@ -1341,7 +1363,7 @@
1341
1363
  animation-timeline: scroll(nearest inline);
1342
1364
  background-color: var(
1343
1365
  --uikit-list-action-tint,
1344
- var(--color-ios-system-gray)
1366
+ var(--color-ui-system-gray)
1345
1367
  );
1346
1368
  content: '';
1347
1369
  filter: opacity(var(--uikit-list-action-arming, 1));
@@ -1375,17 +1397,12 @@
1375
1397
  line-height: 20px;
1376
1398
  padding-inline: 10px;
1377
1399
  place-items: center;
1378
- stroke: currentcolor;
1379
- stroke-linejoin: round;
1380
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
1381
1400
  text-transform: uppercase;
1382
1401
  transition: width 150ms;
1383
1402
  white-space: nowrap;
1384
1403
 
1385
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
1386
-
1387
1404
  & > svg {
1388
- font-size: var(--font-ios-body-size);
1405
+ font-size: var(--font-ui-body-size);
1389
1406
  }
1390
1407
  }
1391
1408
 
@@ -1414,18 +1431,13 @@
1414
1431
  animation-range: var(--uikit-list-action-reveal-from, 0)
1415
1432
  var(--uikit-list-action-reveal-to, 0);
1416
1433
  animation-timeline: scroll(nearest inline);
1417
- color: var(--color-ios-secondary-label);
1434
+ color: var(--color-ui-secondary-label);
1418
1435
  filter: opacity(var(--uikit-list-action-arming, 1));
1419
1436
  font-size: 13px;
1420
1437
  font-variation-settings: 'wght' 510;
1421
1438
  font-weight: round(down, 510, 100);
1422
1439
  line-height: 16px;
1423
- stroke: currentcolor;
1424
- stroke-linejoin: round;
1425
- stroke-width: max(0px, (510 - 400) / 326 * 1px);
1426
1440
  white-space: nowrap;
1427
-
1428
- --uikit-symbol-thinning: max(0px, (400 - 510) / 326 * 1px);
1429
1441
  }
1430
1442
  }
1431
1443
 
@@ -1447,17 +1459,12 @@
1447
1459
  padding-block: 8px 10px;
1448
1460
 
1449
1461
  & > [data-list-part='title'] {
1450
- color: var(--color-ios-label);
1462
+ color: var(--color-ui-label);
1451
1463
  font-size: 22px;
1452
1464
  font-variation-settings: 'wght' 700;
1453
1465
  font-weight: round(down, 700, 100);
1454
1466
  letter-spacing: -0.45px;
1455
1467
  line-height: 28px;
1456
- stroke: currentcolor;
1457
- stroke-linejoin: round;
1458
- stroke-width: max(0px, (700 - 400) / 326 * 1px);
1459
-
1460
- --uikit-symbol-thinning: max(0px, (400 - 700) / 326 * 1px);
1461
1468
  }
1462
1469
  }
1463
1470
 
@@ -1466,17 +1473,12 @@
1466
1473
  padding-block: var(--uikit-list-nested-padding-block, 10px);
1467
1474
 
1468
1475
  & > [data-list-part='title'] {
1469
- color: var(--color-ios-secondary-label);
1476
+ color: var(--color-ui-secondary-label);
1470
1477
  font-size: var(--uikit-list-nested-size, 17px);
1471
1478
  font-variation-settings: 'wght' 590;
1472
1479
  font-weight: round(down, 590, 100);
1473
1480
  letter-spacing: var(--uikit-list-nested-tracking, 0);
1474
1481
  line-height: var(--uikit-list-nested-line-height, 22px);
1475
- stroke: currentcolor;
1476
- stroke-linejoin: round;
1477
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
1478
-
1479
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
1480
1482
  }
1481
1483
  }
1482
1484
 
@@ -1484,24 +1486,13 @@
1484
1486
  padding-block: 5px 10px;
1485
1487
 
1486
1488
  & > [data-list-part='title'] {
1487
- color: var(--color-ios-label);
1488
- font-size: var(--font-ios-title3-size);
1489
+ color: var(--color-ui-label);
1490
+ font-size: var(--font-ui-title3-size);
1489
1491
  font-style: normal;
1490
- font-variation-settings: 'wght' var(--font-ios-title3-weight-emphasized);
1491
- font-weight: round(down, var(--font-ios-title3-weight-emphasized), 100);
1492
- letter-spacing: var(--font-ios-title3-tracking);
1493
- line-height: var(--font-ios-title3-line-height);
1494
- stroke: currentcolor;
1495
- stroke-linejoin: round;
1496
- stroke-width: max(
1497
- 0px,
1498
- (var(--font-ios-title3-weight-emphasized) - 400) / 326 * 1px
1499
- );
1500
-
1501
- --uikit-symbol-thinning: max(
1502
- 0px,
1503
- (400 - var(--font-ios-title3-weight-emphasized)) / 326 * 1px
1504
- );
1492
+ font-variation-settings: 'wght' var(--font-ui-title3-weight-emphasized);
1493
+ font-weight: round(down, var(--font-ui-title3-weight-emphasized), 100);
1494
+ letter-spacing: var(--font-ui-title3-tracking);
1495
+ line-height: var(--font-ui-title3-line-height);
1505
1496
  }
1506
1497
  }
1507
1498
 
@@ -1543,7 +1534,7 @@
1543
1534
  margin-block-start: 2px;
1544
1535
  }
1545
1536
 
1546
- /* Figma “Trailing”, “_Header Trailing Accessories” */
1537
+ /* Trailing accessories (rows' and headers') */
1547
1538
  &
1548
1539
  > :not(
1549
1540
  [data-list-part='supertitle'],
@@ -1560,13 +1551,13 @@
1560
1551
  line-height: 22px;
1561
1552
  }
1562
1553
 
1563
- /* Figma: 8.7px between the detail and the chevron; turned down (open),
1554
+ /* 8.7px between the detail and the chevron; turned down (open),
1564
1555
  the chevron is wider: 7px apart, closed 11px */
1565
1556
  & > [data-list-part='detail'] + [data-list-part='disclosure'] {
1566
1557
  margin-inline-start: 8px;
1567
1558
  }
1568
1559
 
1569
- /* The box fits the glyph turned down, too (Figma: 12px) */
1560
+ /* The box fits the glyph turned down, too */
1570
1561
  & > [data-list-part='disclosure'] {
1571
1562
  min-width: 13px;
1572
1563
  font-size: 19px;
@@ -1592,7 +1583,7 @@
1592
1583
  border-radius: 50%;
1593
1584
  background-color: color-mix(
1594
1585
  in srgb,
1595
- var(--color-ios-primary) 5%,
1586
+ var(--color-ui-primary) 5%,
1596
1587
  transparent
1597
1588
  );
1598
1589
  margin-inline-end: -11px;
@@ -1601,29 +1592,21 @@
1601
1592
 
1602
1593
  .uikit-list-block {
1603
1594
  display: flow-root;
1604
- color: var(--color-ios-label);
1605
- font-size: var(--font-ios-body-size);
1595
+ color: var(--color-ui-label);
1596
+ font-size: var(--font-ui-body-size);
1606
1597
  font-style: normal;
1607
- font-variation-settings: 'wght' var(--font-ios-body-weight);
1608
- font-weight: round(down, var(--font-ios-body-weight), 100);
1609
- letter-spacing: var(--font-ios-body-tracking);
1610
- line-height: var(--font-ios-body-line-height);
1598
+ font-variation-settings: 'wght' var(--font-ui-body-weight);
1599
+ font-weight: round(down, var(--font-ui-body-weight), 100);
1600
+ letter-spacing: var(--font-ui-body-tracking);
1601
+ line-height: var(--font-ui-body-line-height);
1611
1602
  margin-inline: var(--uikit-list-inset, 16px);
1612
1603
  padding-inline: 16px;
1613
- stroke: currentcolor;
1614
- stroke-linejoin: round;
1615
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
1616
-
1617
- --uikit-symbol-thinning: max(
1618
- 0px,
1619
- (400 - var(--font-ios-body-weight)) / 326 * 1px
1620
- );
1621
1604
 
1622
1605
  &:where([data-strong]) {
1623
1606
  border-radius: var(--uikit-list-radius, 24px);
1624
1607
  background-color: var(
1625
1608
  --uikit-list-group-background,
1626
- var(--color-ios-secondary-system-grouped-background)
1609
+ var(--color-ui-secondary-system-grouped-background)
1627
1610
  );
1628
1611
  padding-block: 16px;
1629
1612
  }
@@ -1644,6 +1627,7 @@
1644
1627
  justify-content: center;
1645
1628
  gap: 0;
1646
1629
  touch-action: none;
1630
+ -webkit-user-select: none;
1647
1631
  user-select: none;
1648
1632
 
1649
1633
  &:where([data-size='regular']) {
@@ -1658,20 +1642,14 @@
1658
1642
  border: 0;
1659
1643
  margin: 0;
1660
1644
  background: none;
1661
- color: var(--color-ios-primary);
1645
+ color: var(--color-ui-primary);
1662
1646
  font-family: inherit;
1663
- font-size: var(--font-ios-caption1-size);
1647
+ font-size: var(--font-ui-caption1-size);
1664
1648
  font-style: normal;
1665
- font-variation-settings: 'wght' var(--font-ios-caption1-weight-emphasized);
1666
- font-weight: round(down, var(--font-ios-caption1-weight-emphasized), 100);
1667
- letter-spacing: var(--font-ios-caption1-tracking);
1668
- line-height: var(--font-ios-caption1-line-height);
1669
- stroke: currentcolor;
1670
- stroke-linejoin: round;
1671
- stroke-width: max(
1672
- 0px,
1673
- (var(--font-ios-caption1-weight-emphasized) - 400) / 326 * 1px
1674
- );
1649
+ font-variation-settings: 'wght' var(--font-ui-caption1-weight-emphasized);
1650
+ font-weight: round(down, var(--font-ui-caption1-weight-emphasized), 100);
1651
+ letter-spacing: var(--font-ui-caption1-tracking);
1652
+ line-height: var(--font-ui-caption1-line-height);
1675
1653
  text-align: center;
1676
1654
  text-decoration: none;
1677
1655
 
@@ -1680,10 +1658,17 @@
1680
1658
  @media (hover: hover) {
1681
1659
  cursor: var(--uikit-utils-cursor);
1682
1660
  }
1661
+ }
1662
+ }
1683
1663
 
1684
- --uikit-symbol-thinning: max(
1685
- 0px,
1686
- (400 - var(--font-ios-caption1-weight-emphasized)) / 326 * 1px
1687
- );
1664
+ @layer uikit-ish {
1665
+ /* Dragging to select (see `select.ts`): from a checkbox, the page not
1666
+ scrolling; while dragging, no text selected. */
1667
+ .uikit-list-root [data-drag-to-select] {
1668
+ touch-action: none;
1669
+ }
1670
+
1671
+ .uikit-list-root[data-selecting] {
1672
+ user-select: none;
1688
1673
  }
1689
1674
  }