@mrpelz/uikit-ish 7.8.0 → 7.9.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 (272) 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 -15
  7. package/dist/components/action-sheet/main.d.ts.map +1 -1
  8. package/dist/components/action-sheet/main.js +86 -16
  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 +15 -0
  13. package/dist/components/activity-view/main.d.ts +14 -3
  14. package/dist/components/activity-view/main.d.ts.map +1 -1
  15. package/dist/components/activity-view/main.js +19 -4
  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 +8 -46
  20. package/dist/components/alert/main.d.ts +6 -4
  21. package/dist/components/alert/main.d.ts.map +1 -1
  22. package/dist/components/alert/main.js +20 -4
  23. package/dist/components/alert/main.js.map +1 -1
  24. package/dist/components/alert/props.d.ts +12 -1
  25. package/dist/components/alert/props.d.ts.map +1 -1
  26. package/dist/components/alert/style.css +13 -27
  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 +3 -0
  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 +0 -6
  34. package/dist/components/badge/main.d.ts +2 -2
  35. package/dist/components/badge/main.d.ts.map +1 -1
  36. package/dist/components/badge/main.js +5 -5
  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 +3 -2
  41. package/dist/components/button/main.d.ts.map +1 -1
  42. package/dist/components/button/main.js +6 -6
  43. package/dist/components/button/main.js.map +1 -1
  44. package/dist/components/button/style.css +11 -27
  45. package/dist/components/checkbox/style.css +2 -5
  46. package/dist/components/collapsible/main.d.ts +9 -0
  47. package/dist/components/collapsible/main.d.ts.map +1 -0
  48. package/dist/components/collapsible/main.js +19 -0
  49. package/dist/components/collapsible/main.js.map +1 -0
  50. package/dist/components/collapsible/style.css +23 -0
  51. package/dist/components/color-picker/main.d.ts +1 -1
  52. package/dist/components/color-picker/main.d.ts.map +1 -1
  53. package/dist/components/color-picker/main.js +40 -33
  54. package/dist/components/color-picker/main.js.map +1 -1
  55. package/dist/components/color-picker/props.d.ts +21 -7
  56. package/dist/components/color-picker/props.d.ts.map +1 -1
  57. package/dist/components/color-picker/style.css +9 -27
  58. package/dist/components/contextual-menu/main.d.ts +11 -7
  59. package/dist/components/contextual-menu/main.d.ts.map +1 -1
  60. package/dist/components/contextual-menu/main.js +99 -47
  61. package/dist/components/contextual-menu/main.js.map +1 -1
  62. package/dist/components/contextual-menu/props.d.ts +17 -7
  63. package/dist/components/contextual-menu/props.d.ts.map +1 -1
  64. package/dist/components/contextual-menu/style.css +11 -8
  65. package/dist/components/date-picker/handle.d.ts +41 -0
  66. package/dist/components/date-picker/handle.d.ts.map +1 -0
  67. package/dist/components/date-picker/handle.js +47 -0
  68. package/dist/components/date-picker/handle.js.map +1 -0
  69. package/dist/components/date-picker/main.d.ts +31 -49
  70. package/dist/components/date-picker/main.d.ts.map +1 -1
  71. package/dist/components/date-picker/main.js +300 -139
  72. package/dist/components/date-picker/main.js.map +1 -1
  73. package/dist/components/date-picker/pager.d.ts +24 -0
  74. package/dist/components/date-picker/pager.d.ts.map +1 -0
  75. package/dist/components/date-picker/pager.js +307 -0
  76. package/dist/components/date-picker/pager.js.map +1 -0
  77. package/dist/components/date-picker/props.d.ts +93 -22
  78. package/dist/components/date-picker/props.d.ts.map +1 -1
  79. package/dist/components/date-picker/style.css +59 -71
  80. package/dist/components/drawer/main.d.ts +31 -0
  81. package/dist/components/drawer/main.d.ts.map +1 -0
  82. package/dist/components/drawer/main.js +74 -0
  83. package/dist/components/drawer/main.js.map +1 -0
  84. package/dist/components/drawer/props.d.ts +39 -0
  85. package/dist/components/drawer/props.d.ts.map +1 -0
  86. package/dist/components/drawer/props.js +2 -0
  87. package/dist/components/drawer/props.js.map +1 -0
  88. package/dist/components/drawer/style.css +135 -0
  89. package/dist/components/edit-menu/main.d.ts +7 -7
  90. package/dist/components/edit-menu/main.d.ts.map +1 -1
  91. package/dist/components/edit-menu/main.js +31 -23
  92. package/dist/components/edit-menu/main.js.map +1 -1
  93. package/dist/components/edit-menu/props.d.ts +13 -0
  94. package/dist/components/edit-menu/props.d.ts.map +1 -1
  95. package/dist/components/edit-menu/style.css +5 -7
  96. package/dist/components/form/main.d.ts +8 -0
  97. package/dist/components/form/main.d.ts.map +1 -1
  98. package/dist/components/form/main.js +15 -2
  99. package/dist/components/form/main.js.map +1 -1
  100. package/dist/components/form/props.d.ts +1 -2
  101. package/dist/components/form/props.d.ts.map +1 -1
  102. package/dist/components/glass/style.css +19 -4
  103. package/dist/components/header/main.d.ts +5 -4
  104. package/dist/components/header/main.d.ts.map +1 -1
  105. package/dist/components/header/main.js +56 -27
  106. package/dist/components/header/main.js.map +1 -1
  107. package/dist/components/header/props.d.ts +2 -3
  108. package/dist/components/header/props.d.ts.map +1 -1
  109. package/dist/components/header/style.css +62 -42
  110. package/dist/components/index.d.ts +26 -22
  111. package/dist/components/index.d.ts.map +1 -1
  112. package/dist/components/index.js +17 -13
  113. package/dist/components/index.js.map +1 -1
  114. package/dist/components/layout/main.d.ts +2 -2
  115. package/dist/components/layout/main.d.ts.map +1 -1
  116. package/dist/components/layout/main.js +59 -163
  117. package/dist/components/layout/main.js.map +1 -1
  118. package/dist/components/layout/props.d.ts +2 -20
  119. package/dist/components/layout/props.d.ts.map +1 -1
  120. package/dist/components/layout/style.css +18 -89
  121. package/dist/components/list/main.d.ts +49 -9
  122. package/dist/components/list/main.d.ts.map +1 -1
  123. package/dist/components/list/main.js +769 -208
  124. package/dist/components/list/main.js.map +1 -1
  125. package/dist/components/list/props.d.ts +165 -8
  126. package/dist/components/list/props.d.ts.map +1 -1
  127. package/dist/components/list/style.css +308 -371
  128. package/dist/components/list/swipe-actions-handle.d.ts +40 -0
  129. package/dist/components/list/swipe-actions-handle.d.ts.map +1 -0
  130. package/dist/components/list/swipe-actions-handle.js +51 -0
  131. package/dist/components/list/swipe-actions-handle.js.map +1 -0
  132. package/dist/components/menu/main.d.ts +31 -8
  133. package/dist/components/menu/main.d.ts.map +1 -1
  134. package/dist/components/menu/main.js +175 -39
  135. package/dist/components/menu/main.js.map +1 -1
  136. package/dist/components/menu/props.d.ts +2 -1
  137. package/dist/components/menu/props.d.ts.map +1 -1
  138. package/dist/components/menu/style.css +10 -32
  139. package/dist/components/navigation/main.d.ts +11 -2
  140. package/dist/components/navigation/main.d.ts.map +1 -1
  141. package/dist/components/navigation/main.js +186 -98
  142. package/dist/components/navigation/main.js.map +1 -1
  143. package/dist/components/navigation/props.d.ts +20 -3
  144. package/dist/components/navigation/props.d.ts.map +1 -1
  145. package/dist/components/navigation/style.css +24 -7
  146. package/dist/components/page/main.d.ts.map +1 -1
  147. package/dist/components/page/main.js +2 -2
  148. package/dist/components/page/main.js.map +1 -1
  149. package/dist/components/page/props.d.ts +8 -0
  150. package/dist/components/page/props.d.ts.map +1 -1
  151. package/dist/components/page/style.css +39 -1
  152. package/dist/components/page-control/main.d.ts +1 -1
  153. package/dist/components/page-control/main.d.ts.map +1 -1
  154. package/dist/components/page-control/main.js +59 -25
  155. package/dist/components/page-control/main.js.map +1 -1
  156. package/dist/components/page-control/props.d.ts +10 -2
  157. package/dist/components/page-control/props.d.ts.map +1 -1
  158. package/dist/components/page-control/style.css +5 -0
  159. package/dist/components/popover/main.d.ts +11 -6
  160. package/dist/components/popover/main.d.ts.map +1 -1
  161. package/dist/components/popover/main.js +53 -31
  162. package/dist/components/popover/main.js.map +1 -1
  163. package/dist/components/popover/props.d.ts +7 -6
  164. package/dist/components/popover/props.d.ts.map +1 -1
  165. package/dist/components/popover/style.css +45 -4
  166. package/dist/components/progress/main.d.ts +1 -1
  167. package/dist/components/progress/main.d.ts.map +1 -1
  168. package/dist/components/progress/main.js +108 -15
  169. package/dist/components/progress/main.js.map +1 -1
  170. package/dist/components/progress/props.d.ts +25 -5
  171. package/dist/components/progress/props.d.ts.map +1 -1
  172. package/dist/components/progress/style.css +67 -35
  173. package/dist/components/roll/main.d.ts +1 -1
  174. package/dist/components/roll/main.d.ts.map +1 -1
  175. package/dist/components/roll/main.js +81 -25
  176. package/dist/components/roll/main.js.map +1 -1
  177. package/dist/components/roll/props.d.ts +24 -7
  178. package/dist/components/roll/props.d.ts.map +1 -1
  179. package/dist/components/roll/style.css +1 -13
  180. package/dist/components/segmented/main.js +3 -3
  181. package/dist/components/segmented/main.js.map +1 -1
  182. package/dist/components/segmented/style.css +2 -14
  183. package/dist/components/sheet/main.d.ts +25 -15
  184. package/dist/components/sheet/main.d.ts.map +1 -1
  185. package/dist/components/sheet/main.js +57 -73
  186. package/dist/components/sheet/main.js.map +1 -1
  187. package/dist/components/sheet/props.d.ts +36 -2
  188. package/dist/components/sheet/props.d.ts.map +1 -1
  189. package/dist/components/sheet/style.css +176 -44
  190. package/dist/components/sidebar/style.css +13 -7
  191. package/dist/components/slider/main.d.ts.map +1 -1
  192. package/dist/components/slider/main.js +6 -5
  193. package/dist/components/slider/main.js.map +1 -1
  194. package/dist/components/slider/style.css +2 -28
  195. package/dist/components/stepper/main.d.ts +4 -6
  196. package/dist/components/stepper/main.d.ts.map +1 -1
  197. package/dist/components/stepper/main.js +17 -11
  198. package/dist/components/stepper/main.js.map +1 -1
  199. package/dist/components/stepper/style.css +4 -8
  200. package/dist/components/switch/main.d.ts.map +1 -1
  201. package/dist/components/switch/main.js +16 -11
  202. package/dist/components/switch/main.js.map +1 -1
  203. package/dist/components/switch/props.d.ts +2 -2
  204. package/dist/components/switch/props.d.ts.map +1 -1
  205. package/dist/components/switch/style.css +28 -1
  206. package/dist/components/symbol/main.d.ts +2 -2
  207. package/dist/components/symbol/main.d.ts.map +1 -1
  208. package/dist/components/symbol/main.js +34 -27
  209. package/dist/components/symbol/main.js.map +1 -1
  210. package/dist/components/symbol/props.d.ts +39 -4
  211. package/dist/components/symbol/props.d.ts.map +1 -1
  212. package/dist/components/symbol/style.css +25 -4
  213. package/dist/components/tab-bar/main.d.ts.map +1 -1
  214. package/dist/components/tab-bar/main.js +59 -46
  215. package/dist/components/tab-bar/main.js.map +1 -1
  216. package/dist/components/tab-bar/props.d.ts +3 -3
  217. package/dist/components/tab-bar/props.d.ts.map +1 -1
  218. package/dist/components/tab-bar/style.css +24 -46
  219. package/dist/components/text-field/main.d.ts.map +1 -1
  220. package/dist/components/text-field/main.js +9 -8
  221. package/dist/components/text-field/main.js.map +1 -1
  222. package/dist/components/text-field/props.d.ts +8 -1
  223. package/dist/components/text-field/props.d.ts.map +1 -1
  224. package/dist/components/text-field/style.css +21 -55
  225. package/dist/components/toolbar/main.d.ts.map +1 -1
  226. package/dist/components/toolbar/main.js +11 -9
  227. package/dist/components/toolbar/main.js.map +1 -1
  228. package/dist/components/toolbar/style.css +28 -22
  229. package/dist/components/tooltip/main.d.ts +10 -9
  230. package/dist/components/tooltip/main.d.ts.map +1 -1
  231. package/dist/components/tooltip/main.js +35 -6
  232. package/dist/components/tooltip/main.js.map +1 -1
  233. package/dist/components/tooltip/props.d.ts +2 -0
  234. package/dist/components/tooltip/props.d.ts.map +1 -1
  235. package/dist/components/tooltip/style.css +11 -11
  236. package/dist/components/typography/main.d.ts.map +1 -1
  237. package/dist/components/typography/main.js +16 -6
  238. package/dist/components/typography/main.js.map +1 -1
  239. package/dist/components/typography/props.d.ts +2 -9
  240. package/dist/components/typography/props.d.ts.map +1 -1
  241. package/dist/components/typography/style.css +0 -120
  242. package/dist/components/utils/main.d.ts +34 -5
  243. package/dist/components/utils/main.d.ts.map +1 -1
  244. package/dist/components/utils/main.js +81 -12
  245. package/dist/components/utils/main.js.map +1 -1
  246. package/dist/components/utils/props.d.ts +4 -2
  247. package/dist/components/utils/props.d.ts.map +1 -1
  248. package/dist/components/utils/style.css +29 -16
  249. package/dist/components/viewport/input.d.ts +23 -0
  250. package/dist/components/viewport/input.d.ts.map +1 -0
  251. package/dist/components/viewport/input.js +95 -0
  252. package/dist/components/viewport/input.js.map +1 -0
  253. package/dist/components/viewport/main.d.ts +42 -9
  254. package/dist/components/viewport/main.d.ts.map +1 -1
  255. package/dist/components/viewport/main.js +488 -66
  256. package/dist/components/viewport/main.js.map +1 -1
  257. package/dist/components/viewport/padding.d.ts +50 -0
  258. package/dist/components/viewport/padding.d.ts.map +1 -0
  259. package/dist/components/viewport/padding.js +226 -0
  260. package/dist/components/viewport/padding.js.map +1 -0
  261. package/dist/components/viewport/props.d.ts +155 -7
  262. package/dist/components/viewport/props.d.ts.map +1 -1
  263. package/dist/components/viewport/style.css +172 -6
  264. package/dist/main.d.ts +0 -1
  265. package/dist/main.d.ts.map +1 -1
  266. package/dist/main.js.map +1 -1
  267. package/dist/styles.css +35 -2
  268. package/dist/styles.d.ts +2 -1
  269. package/dist/styles.d.ts.map +1 -1
  270. package/dist/styles.js +2 -1
  271. package/dist/styles.js.map +1 -1
  272. package/package.json +6 -13
@@ -4,10 +4,22 @@
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
 
13
25
  .uikit-list-group {
@@ -24,6 +36,12 @@
24
36
  margin-inline: var(--uikit-list-inset, 16px);
25
37
  }
26
38
 
39
+ /* A row (see Item): its parts in a line, in their order (a flexbox):
40
+ leading ones (edit controls, the image, `Leading`), its `Content`
41
+ (title, subtitle, text: taking the rest), trailing ones (details,
42
+ chevrons, grabbers, `Trailing`); or a `Span` across it; a `Below` on a
43
+ line of its own under them. Elements of other components only in these
44
+ slots. */
27
45
  .uikit-list-row {
28
46
  --uikit-list-min-height: var(--uikit-list-row-min-height, 52px);
29
47
 
@@ -39,15 +57,13 @@
39
57
  --uikit-button-plain-symbol-weight: 300;
40
58
 
41
59
  position: relative;
42
- display: grid;
60
+ display: flex;
43
61
  min-height: var(--uikit-list-min-height);
44
62
  box-sizing: border-box;
63
+ flex-wrap: wrap;
45
64
  align-content: center;
65
+ align-items: center;
46
66
  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;
51
67
 
52
68
  /* Indented by its level (see Item). */
53
69
  padding-inline-start: calc(
@@ -56,267 +72,280 @@
56
72
  );
57
73
 
58
74
  /* Figma Height=Tall (images keep their regular size) */
59
- &:has(> [data-list-part='subtitle']) {
75
+ &:has(> [data-list-part='content'] > [data-list-part='subtitle']) {
60
76
  --uikit-list-min-height: 68px;
61
-
62
- & > [data-list-part='title'] {
63
- align-self: end;
64
- grid-area: 1 / 3;
65
- }
66
77
  }
67
78
 
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']) {
79
+ /* Framework7 media list (Mail): the image and the trailing parts at the
80
+ top, the title emphasized (Framework7: 600), trailing details in
81
+ Subheadline. */
82
+ &:has(> [data-list-part='content'] > [data-list-part='text']) {
72
83
  --uikit-list-min-height: 0px;
73
84
 
74
85
  align-content: start;
75
- grid-template-rows: auto auto auto;
86
+ align-items: start;
76
87
  padding-block: 10px;
77
88
 
78
- &::after {
79
- grid-area: 1 / 1 / 2 / 4;
80
- }
81
-
82
- & > [data-list-part='edit'] {
83
- grid-area: 1 / 1 / 4;
89
+ & > [data-list-part='leading'] > [data-list-part='image'] {
90
+ margin-block: 0;
84
91
  }
85
92
 
86
- & > [data-list-part='image'] {
93
+ & > [data-list-part='leading'],
94
+ & > [data-list-part='trailing'] {
87
95
  align-self: start;
88
- grid-area: 1 / 2 / 4;
89
- margin-block: 0;
90
96
  }
91
97
 
92
- & > [data-list-part='title'] {
93
- align-self: center;
98
+ & > [data-list-part='content'] > [data-list-part='title'] {
94
99
  font-variation-settings: 'wght' 590;
95
100
  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
101
  }
103
102
 
104
- & > [data-list-part='subtitle'] {
103
+ & > [data-list-part='content'] > [data-list-part='subtitle'] {
105
104
  color: var(--color-ios-label);
106
- grid-area: 2 / 3 / 3 / 99;
107
- }
108
-
109
- & > [data-list-part='text'] {
110
- grid-area: 3 / 3 / 4 / 99;
111
105
  }
112
106
 
113
- & > [data-list-part='detail'] {
107
+ & > [data-list-part='trailing'] > [data-list-part='detail'] {
114
108
  font-size: var(--font-ios-subheadline-size);
115
109
  font-style: normal;
116
110
  font-variation-settings: 'wght' var(--font-ios-subheadline-weight);
117
111
  font-weight: round(down, var(--font-ios-subheadline-weight), 100);
118
112
  letter-spacing: var(--font-ios-subheadline-tracking);
119
113
  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;
144
114
  }
145
115
  }
146
116
 
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
- );
117
+ /* Fields (see TextField, its root rendering the row): its label in the
118
+ content, in Body, as wide as it; its control in a trailing slot filling
119
+ the rest of the row (its value at the end), the clear button 8px after
120
+ it; messages below. */
121
+ &:has(> [data-list-part='trailing'] > [data-text-field-part='control']) {
122
+ & > [data-list-part='content'] {
123
+ flex: none;
124
+ margin-inline-end: 16px;
175
125
  }
176
126
 
177
- & > [data-text-field-part='control'] {
178
- position: relative;
179
- align-self: center;
180
- margin: 0;
181
- grid-area: 1 / 4;
182
- }
183
-
184
- & > textarea[data-text-field-part='control'] {
185
- align-self: start;
127
+ & > [data-list-part='trailing']:has(> [data-text-field-part='control']) {
128
+ flex: 1 1 0;
129
+ margin-inline-start: 0;
186
130
  }
131
+ }
187
132
 
188
- &:not(:has(> [data-text-field-part='label']))
189
- > [data-text-field-part='control'] {
190
- grid-column: 3 / 5;
191
- }
133
+ & [data-text-field-part='label'] {
134
+ color: var(--color-ios-label);
135
+ font-size: var(--font-ios-body-size);
136
+ font-style: normal;
137
+ font-variation-settings: 'wght' var(--font-ios-body-weight);
138
+ font-weight: round(down, var(--font-ios-body-weight), 100);
139
+ letter-spacing: var(--font-ios-body-tracking);
140
+ line-height: var(--font-ios-body-line-height);
141
+ margin-block: 0;
142
+ }
192
143
 
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
- }
144
+ & > [data-list-part='trailing'] > [data-text-field-part='control'] {
145
+ position: relative;
146
+ min-width: 0;
147
+ flex: 1 1 0;
148
+ margin: 0;
149
+ }
199
150
 
200
- & > [data-text-field-part='clear'] {
201
- grid-row: 1;
202
- margin-block: 0;
203
- margin-inline-start: 8px;
204
- }
151
+ & > [data-list-part='trailing'] > textarea[data-text-field-part='control'] {
152
+ align-self: start;
153
+ }
205
154
 
206
- & > [data-text-field-part='description'],
207
- & > [data-text-field-part='error'] {
208
- margin: 4px 0 0;
209
- grid-column: 3 / -1;
210
- }
155
+ /* After an inline label, the value at the row's end (UIKit forms,
156
+ Settings). */
157
+ &:has(> [data-list-part='content'] > [data-text-field-part='label'])
158
+ > [data-list-part='trailing']
159
+ > input[data-text-field-part='control'] {
160
+ text-align: end;
161
+ }
211
162
 
212
- & > [data-text-field-part='description'] {
213
- grid-row: 2;
214
- }
163
+ & > [data-list-part='trailing'] > [data-text-field-part='clear'] {
164
+ margin-block: 0;
165
+ margin-inline-start: 8px;
166
+ }
215
167
 
216
- & > [data-text-field-part='error'] {
217
- grid-row: 3;
218
- }
168
+ & > [data-list-part='below'] > :is(
169
+ [data-text-field-part='description'],
170
+ [data-text-field-part='error']
171
+ ) {
172
+ margin: 4px 0 0;
219
173
  }
220
174
 
221
- /* Figma “_Separator”, from the text to 16px before the edge */
175
+ /* Figma “_Separator”, from the content (its text) to 16px before the
176
+ edge: its start anchored to the content (moving with it, e.g. in edit
177
+ mode); without anchor positioning, or content, the row's padding. */
222
178
  &::before {
223
179
  position: absolute;
224
180
  top: 0;
225
181
  border-top: 1px solid var(--color-ios-list-separator);
226
182
  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;
183
+ inset-inline: var(--uikit-list-row-padding-start, 16px) 16px;
232
184
 
233
185
  /* Hidden by its row's state (see StyledItem). */
234
186
  opacity: var(--uikit-list-separator-opacity, 1);
235
187
  transition: opacity 300ms;
236
188
  }
237
189
 
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;
190
+ @supports (anchor-name: --uikit-list-content) {
191
+ & > [data-list-part='content'] {
192
+ anchor-name: --uikit-list-content;
193
+ }
194
+
195
+ &::before {
196
+ inset-inline-start: anchor(
197
+ --uikit-list-content start,
198
+ var(--uikit-list-row-padding-start, 16px)
199
+ );
200
+ }
243
201
  }
244
202
 
245
- /* Above a pressable title's hit area, as trailing controls */
246
- & > [data-list-part='edit'] {
203
+ /* Slots before the content: what's in them in a line, above a
204
+ pressable title's hit area. Figma: an edit control 2px from the
205
+ start, 17px before what follows; the image 8px; other elements 12px
206
+ (8px apart). */
207
+ & > [data-list-part='leading'] {
247
208
  position: relative;
248
209
  z-index: 1;
249
- align-self: center;
250
- grid-area: 1 / 1 / 3;
251
- margin-inline: 2px 17px;
210
+ display: flex;
211
+ flex: none;
212
+ align-items: center;
213
+
214
+ & > [data-list-part='edit'] {
215
+ margin-inline: 2px 17px;
216
+ }
217
+
218
+ & > [data-list-part='image'] {
219
+ margin-inline-end: 8px;
220
+ }
221
+
222
+ & > :not([data-list-part='edit'], [data-list-part='image'], input) {
223
+ margin-inline-end: 12px;
224
+ }
225
+
226
+ & > :not([data-list-part='edit'], [data-list-part='image'], input)
227
+ + :not([data-list-part='edit'], [data-list-part='image'], input) {
228
+ margin-inline-start: -4px;
229
+ }
252
230
  }
253
231
 
254
- & > [data-list-part='image'] {
255
- align-self: center;
256
- grid-area: 1 / 2 / 3;
257
- margin-inline-end: 8px;
232
+ /* Its text: the title, the subtitle below it, a media row's text;
233
+ taking the rest of the line. (Not positioned: a pressable title's or
234
+ button's hit area covers the row.) */
235
+ & > [data-list-part='content'] {
236
+ display: flex;
237
+ min-width: 0;
238
+ flex: 1 1 0;
239
+ flex-direction: column;
240
+ justify-content: center;
258
241
  }
259
242
 
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;
243
+ /* Across the row (e.g. a Slider, a Segmented control, an inline
244
+ calendar): the row's line. */
245
+ & > [data-list-part='span'] {
246
+ display: flex;
247
+ min-width: 0;
248
+ flex: 1 1 100%;
249
+ align-items: center;
265
250
  }
266
251
 
267
- & > [data-list-part='subtitle'] {
268
- align-self: start;
269
- grid-area: 2 / 3;
252
+ /* A calendar (DatePicker, inline) has its own insets: across the row,
253
+ as wide as it is (its days narrower, with less room). */
254
+ & > [data-list-part='span'] > [data-date-picker-part='calendar'] {
255
+ min-width: 0;
256
+ flex: 1 1 auto;
257
+ margin: -12px -16px;
270
258
  }
271
259
 
272
- & > [data-list-part='button'] {
273
- grid-area: 1 / 3 / 3;
260
+ /* A roll (e.g. DatePicker's TimeRoll, inline): across the row, its
261
+ columns centered (iOS). */
262
+ & > [data-list-part='span'] > [data-roll-part='root'] {
263
+ flex: 1 1 auto;
274
264
  }
275
265
 
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
- ) {
266
+ /* Under the row's line, across it (e.g. a field's messages). Hidden
267
+ (`hidden`), collapsed: growing and shrinking (its content clipped
268
+ meanwhile; its track's least none, its content's margins
269
+ notwithstanding), fading. */
270
+ & > [data-list-part='below'] {
271
+ display: grid;
272
+ overflow: clip;
273
+ min-width: 0;
274
+ flex: 1 1 100%;
275
+ grid-template-rows: minmax(0, 1fr);
276
+ transition:
277
+ grid-template-rows 300ms ease,
278
+ opacity 300ms ease,
279
+ visibility 300ms;
280
+
281
+ &[hidden] {
282
+ grid-template-rows: minmax(0, 0fr);
283
+ opacity: 0;
284
+ visibility: hidden;
285
+ }
286
+
287
+ @media (prefers-reduced-motion: reduce) {
288
+ transition: none;
289
+ }
290
+ }
291
+
292
+ /* Slots after the content (Figma “Contents - Trailing”): what's in them
293
+ in a line, 16px apart (a grabber 12px), above a pressable title's hit
294
+ area. */
295
+ & > [data-list-part='trailing'] {
287
296
  position: relative;
288
297
  z-index: 1;
289
- align-self: center;
290
- grid-row: 1 / 3;
298
+ display: flex;
299
+ flex: none;
300
+ align-items: center;
291
301
  margin-block: -4px;
292
- margin-inline-start: 16px;
293
- }
294
302
 
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
- }
303
+ & > :not(input) {
304
+ margin-inline-start: 16px;
305
+ }
304
306
 
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;
307
+ & > [data-list-part='grabber'] {
308
+ margin-inline-start: 12px;
309
+ }
310
+
311
+ /* Controls filling their container elsewhere (e.g. Segmented) take
312
+ their content's width. */
313
+ & > [role='radiogroup'] {
314
+ width: auto;
315
+ }
309
316
  }
310
317
 
311
- /* Trailing controls filling their container elsewhere (e.g. Segmented)
312
- take their content's width. */
313
- & > [role='radiogroup'] {
314
- width: auto;
318
+ /* Edit mode (see Item: its sides, `data-edit-leading` and
319
+ `-trailing`, on or off; not managed, neither): a side's slots shown
320
+ only while it edits (`whileEditing="show"`, e.g. edit controls', a
321
+ grabber's) slide in from the row's edge (the group clips them), the
322
+ content making room; those hidden then (`hide`, e.g. a chevron's)
323
+ slide out; others stay (whatever they hold: placing is the slots').
324
+ Out, a slot takes no room (its margins cancel its width,
325
+ `--uikit-list-slot-size`, measured), beyond the row's edge, faded and
326
+ hidden. */
327
+ [data-sized] > & > :is([data-list-part='leading'], [data-list-part='trailing']) {
328
+ transition-duration: 300ms;
329
+ transition-property: margin, opacity, visibility;
330
+ transition-timing-function: ease;
331
+ }
332
+
333
+ [data-edit-leading='off'] > * > &
334
+ > [data-list-part='leading'][data-while-editing='show'],
335
+ [data-edit-leading='on'] > * > &
336
+ > [data-list-part='leading'][data-while-editing='hide'] {
337
+ margin-inline: calc(-1 * var(--uikit-list-slot-size, 0px) - 16px) 16px;
338
+ opacity: 0;
339
+ visibility: hidden;
315
340
  }
316
341
 
317
- /* Figma “_Grabber” */
318
- & > [data-list-part='grabber'] {
319
- margin-inline-start: 12px;
342
+ [data-edit-trailing='off'] > * > &
343
+ > [data-list-part='trailing'][data-while-editing='show'],
344
+ [data-edit-trailing='on'] > * > &
345
+ > [data-list-part='trailing'][data-while-editing='hide'] {
346
+ margin-inline: 16px calc(-1 * var(--uikit-list-slot-size, 0px) - 16px);
347
+ opacity: 0;
348
+ visibility: hidden;
320
349
  }
321
350
  }
322
351
 
@@ -383,17 +412,6 @@
383
412
  line-height: var(--font-ios-subheadline-line-height);
384
413
  overflow-wrap: break-word;
385
414
  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
415
  }
398
416
 
399
417
  .uikit-list-text {
@@ -412,17 +430,6 @@
412
430
  line-height: var(--font-ios-subheadline-line-height);
413
431
  overflow-wrap: break-word;
414
432
  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
433
  }
427
434
 
428
435
  .uikit-list-supertitle {
@@ -435,11 +442,6 @@
435
442
  letter-spacing: -0.45px;
436
443
  line-height: 20px;
437
444
  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
445
  }
444
446
 
445
447
  .uikit-list-detail {
@@ -451,15 +453,7 @@
451
453
  letter-spacing: var(--font-ios-body-tracking);
452
454
  line-height: var(--font-ios-body-line-height);
453
455
  pointer-events: none;
454
- stroke: currentcolor;
455
- stroke-linejoin: round;
456
- stroke-width: max(0px, (var(--font-ios-body-weight) - 400) / 326 * 1px);
457
456
  white-space: nowrap;
458
-
459
- --uikit-symbol-thinning: max(
460
- 0px,
461
- (400 - var(--font-ios-body-weight)) / 326 * 1px
462
- );
463
457
  }
464
458
 
465
459
  .uikit-list-checkmark {
@@ -472,11 +466,6 @@
472
466
  font-weight: round(down, 590, 100);
473
467
  place-items: center;
474
468
  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
469
  }
481
470
 
482
471
  .uikit-list-drill-in {
@@ -489,11 +478,6 @@
489
478
  font-weight: round(down, 590, 100);
490
479
  place-items: center;
491
480
  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
481
 
498
482
  &:dir(rtl) {
499
483
  scale: -1 1;
@@ -512,11 +496,6 @@
512
496
  font-weight: round(down, 590, 100);
513
497
  place-items: center;
514
498
  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
499
 
521
500
  &:dir(rtl) {
522
501
  --uikit-list-disclosure-turn: -90deg;
@@ -542,11 +521,17 @@
542
521
  font-variation-settings: 'wght' 400;
543
522
  font-weight: round(down, 400, 100);
544
523
  line-height: 18px;
545
- stroke: currentcolor;
546
- stroke-linejoin: round;
547
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
548
524
 
549
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
525
+ /* Its actions (buttons, alone in it): below the group, 16px from it,
526
+ stacked and centered, as wide as the group at most (a `fill` button
527
+ spanning it); the gap the list's, not the buttons'. */
528
+ &:has(> [data-button-part='root']):not(:has(> :not([data-button-part='root']))) {
529
+ display: flex;
530
+ flex-direction: column;
531
+ align-items: center;
532
+ padding: 16px var(--uikit-list-inset, 16px) 0;
533
+ gap: 8px;
534
+ }
550
535
  }
551
536
 
552
537
  /* An action's reveal (see `StyledSwipeAction`): scaling in, and its parts fading in (see `actionFade`). */
@@ -602,14 +587,14 @@
602
587
  );
603
588
  }
604
589
 
605
- &:where(:root[data-color-scheme='light'] *) {
590
+ &:where([data-color-scheme='light'], [data-color-scheme='light'] *) {
606
591
  --uikit-list-selected-background: var(
607
592
  --uikit-sidebar-selection,
608
593
  rgb(0 0 0 / 7%)
609
594
  );
610
595
  }
611
596
 
612
- &:where(:root[data-color-scheme='dark'] *) {
597
+ &:where([data-color-scheme='dark'], [data-color-scheme='dark'] *) {
613
598
  --uikit-list-selected-background: var(
614
599
  --uikit-sidebar-selection,
615
600
  rgb(255 255 255 / 12%)
@@ -638,32 +623,31 @@
638
623
 
639
624
  &
640
625
  [data-list-part='row']
626
+ > [data-list-part='leading']
641
627
  > [data-list-part='image'][data-variant='symbol'] {
642
628
  width: 34px;
643
629
  color: var(--color-ios-label);
644
630
  margin-inline-end: 4px;
645
631
  }
646
632
 
647
- & [data-selected] [data-list-part='row'] > [data-list-part='title'] {
633
+ & [data-selected]
634
+ [data-list-part='row']
635
+ > [data-list-part='content']
636
+ > [data-list-part='title'] {
648
637
  color: var(--color-ios-primary);
649
638
  font-variation-settings: 'wght' 590;
650
639
  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
640
  }
657
641
 
658
- & [data-selected] [data-list-part='row'] > [data-list-part='image'] {
642
+ & [data-selected]
643
+ [data-list-part='row']
644
+ > [data-list-part='leading']
645
+ > [data-list-part='image'] {
659
646
  color: var(--color-ios-primary);
660
647
  font-variation-settings: 'wght' 590;
661
648
  font-weight: round(down, 590, 100);
662
- stroke: currentcolor;
663
- stroke-linejoin: round;
664
- stroke-width: max(0px, (590 - 400) / 326 * 1px);
665
649
 
666
- --uikit-symbol-thinning: max(0px, (400 - 590) / 326 * 1px);
650
+ --uikit-symbol-emphasis: 1;
667
651
  }
668
652
 
669
653
  & [data-list-part='header'] {
@@ -680,15 +664,10 @@
680
664
  font-weight: round(down, 400, 100);
681
665
  letter-spacing: var(--font-ios-body-tracking);
682
666
  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);
688
667
  }
689
668
 
690
669
  /* Its selection circles (Figma “Edit Button”): 8px before the symbol. */
691
- & [data-list-part='row'] > [data-list-part='edit'] {
670
+ & [data-list-part='row'] > [data-list-part='leading'] > [data-list-part='edit'] {
692
671
  margin-inline: 0 8px;
693
672
  }
694
673
 
@@ -705,6 +684,7 @@
705
684
 
706
685
  &
707
686
  [data-list-part='row']
687
+ > [data-list-part='trailing']
708
688
  > [data-list-part='accessory']:has(> [data-list-part='disclosure']) {
709
689
  min-width: 18px;
710
690
  margin-inline-end: -4px;
@@ -805,17 +785,25 @@
805
785
  touch-action: pan-y;
806
786
  transition-duration: 300ms;
807
787
  transition-property: background-color;
788
+ -webkit-user-select: none;
808
789
  user-select: none;
809
790
 
791
+ /* Across it (a Span), what scrolls sideways too (e.g. an inline
792
+ calendar's months). */
793
+ &:has([data-list-part='span']) {
794
+ touch-action: pan-x pan-y;
795
+ }
796
+
810
797
  &[data-swipeable] {
811
798
  overflow: auto hidden;
812
799
  overscroll-behavior-x: contain;
813
800
  scroll-snap-type: x mandatory;
814
- scrollbar-width: none;
815
801
  touch-action: pan-x pan-y;
816
802
 
817
- &::-webkit-scrollbar {
818
- display: none;
803
+ /* Open, not swiped closed (see SwipeActions allowSwipe): closed by
804
+ its trigger or handle only (scrolled programmatically). */
805
+ &[data-swipe-locked] {
806
+ overflow-x: hidden;
819
807
  }
820
808
  }
821
809
 
@@ -835,8 +823,10 @@
835
823
  --uikit-list-separator-opacity: 0;
836
824
  }
837
825
 
838
- /* While reordering, by their order on screen (see useReorder) */
839
- &:first-child:not([data-reorder-edge]),
826
+ /* The first and last rows shown (closed collapsible rows aside, see
827
+ CollapsiblePanel); while reordering, by their order on screen (see
828
+ useReorder). */
829
+ &:nth-child(1 of :not([data-closed])):not([data-reorder-edge]),
840
830
  &[data-reorder-edge~='first'] {
841
831
  border-start-end-radius: var(
842
832
  --uikit-list-item-radius,
@@ -850,7 +840,7 @@
850
840
  --uikit-list-separator-opacity: 0;
851
841
  }
852
842
 
853
- &:last-child:not([data-reorder-edge]),
843
+ &:nth-last-child(1 of :not([data-closed])):not([data-reorder-edge]),
854
844
  &[data-reorder-edge~='last'] {
855
845
  border-end-end-radius: var(
856
846
  --uikit-list-item-radius,
@@ -864,9 +854,9 @@
864
854
 
865
855
  /* Pressed: a pressable title or button (a link or button title, or a
866
856
  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),
857
+ &:has(> * > * > * > a[href][data-list-part='title']:active),
858
+ &:has(> * > * > * > button[data-list-part='title']:enabled:active),
859
+ &:has(> * > * > * > button[data-list-part='button']:enabled:active),
870
860
  &[data-pressed] {
871
861
  --uikit-list-row-background: var(
872
862
  --uikit-list-pressed-background,
@@ -881,9 +871,9 @@
881
871
  }
882
872
  }
883
873
 
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) {
874
+ &:has(> * > * > * > a[href][data-list-part='title']:focus-visible),
875
+ &:has(> * > * > * > button[data-list-part='title']:enabled:focus-visible),
876
+ &:has(> * > * > * > button[data-list-part='button']:enabled:focus-visible) {
887
877
  outline: 2px solid var(--color-ios-primary);
888
878
  outline-offset: -2px;
889
879
  }
@@ -919,7 +909,8 @@
919
909
  color: var(--uikit-list-selected-title, inherit);
920
910
  }
921
911
 
922
- /* An expandable row, closed (see Expandable): no height, nor separator. */
912
+ /* A collapsible row, closed (see CollapsiblePanel): no height, nor
913
+ separator. */
923
914
  &[data-closed] {
924
915
  overflow: hidden;
925
916
  height: 0;
@@ -945,17 +936,9 @@
945
936
  letter-spacing: var(--font-ios-body-tracking);
946
937
  line-height: var(--font-ios-body-line-height);
947
938
  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
939
  text-align: inherit;
952
940
  text-decoration: none;
953
941
 
954
- --uikit-symbol-thinning: max(
955
- 0px,
956
- (400 - var(--font-ios-body-weight)) / 326 * 1px
957
- );
958
-
959
942
  a&,
960
943
  button&,
961
944
  label& {
@@ -989,11 +972,6 @@
989
972
  font-weight: round(down, 400, 100);
990
973
  place-items: center;
991
974
  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
975
 
998
976
  &:where([data-variant='circular']) {
999
977
  width: 42px;
@@ -1054,20 +1032,25 @@
1054
1032
  font-weight: round(down, 400, 100);
1055
1033
  line-height: var(--font-ios-body-line-height);
1056
1034
  place-items: center;
1057
- stroke: currentcolor;
1058
- stroke-linejoin: round;
1059
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
1060
1035
  text-align: inherit;
1061
1036
  text-decoration: none;
1062
1037
 
1063
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
1064
-
1065
1038
  &:is(a, button) {
1066
1039
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
1067
1040
 
1041
+ position: relative;
1042
+
1068
1043
  @media (hover: hover) {
1069
1044
  cursor: var(--uikit-utils-cursor);
1070
1045
  }
1046
+
1047
+ /* Hit region: at least 44×44px, centered (its parent's own pressable
1048
+ area beneath, e.g. a row's title's). */
1049
+ &::after {
1050
+ position: absolute;
1051
+ content: '';
1052
+ inset: min(0px, calc(50% - 22px));
1053
+ }
1071
1054
  }
1072
1055
 
1073
1056
  &:not(a, button) {
@@ -1076,6 +1059,7 @@
1076
1059
  }
1077
1060
 
1078
1061
  .uikit-list-grabber {
1062
+ position: relative;
1079
1063
  display: grid;
1080
1064
  min-width: 22px;
1081
1065
  min-height: 25px;
@@ -1084,9 +1068,6 @@
1084
1068
  font-variation-settings: 'wght' 400;
1085
1069
  font-weight: round(down, 400, 100);
1086
1070
  place-items: center;
1087
- stroke: currentcolor;
1088
- stroke-linejoin: round;
1089
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
1090
1071
  touch-action: none;
1091
1072
 
1092
1073
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), grab);
@@ -1095,7 +1076,13 @@
1095
1076
  cursor: var(--uikit-utils-cursor);
1096
1077
  }
1097
1078
 
1098
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
1079
+ /* Hit region: at least 44×44px, centered (its parent's own pressable
1080
+ area beneath, e.g. a row's title's). */
1081
+ &::after {
1082
+ position: absolute;
1083
+ content: '';
1084
+ inset: min(0px, calc(50% - 22px));
1085
+ }
1099
1086
  }
1100
1087
 
1101
1088
  .uikit-list-action {
@@ -1111,9 +1098,6 @@
1111
1098
  font-weight: round(down, var(--font-ios-body-weight), 100);
1112
1099
  letter-spacing: var(--font-ios-body-tracking);
1113
1100
  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);
1117
1101
  text-align: inherit;
1118
1102
  text-decoration: none;
1119
1103
  white-space: nowrap;
@@ -1124,11 +1108,6 @@
1124
1108
  cursor: var(--uikit-utils-cursor);
1125
1109
  }
1126
1110
 
1127
- --uikit-symbol-thinning: max(
1128
- 0px,
1129
- (400 - var(--font-ios-body-weight)) / 326 * 1px
1130
- );
1131
-
1132
1111
  &:disabled {
1133
1112
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
1134
1113
 
@@ -1151,16 +1130,9 @@
1151
1130
  letter-spacing: var(--font-ios-body-tracking);
1152
1131
  line-height: var(--font-ios-body-line-height);
1153
1132
  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
1133
  text-align: start;
1158
1134
  text-decoration: none;
1159
1135
 
1160
- --uikit-symbol-thinning: max(
1161
- 0px,
1162
- (400 - var(--font-ios-body-weight)) / 326 * 1px
1163
- );
1164
1136
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), pointer);
1165
1137
 
1166
1138
  @media (hover: hover) {
@@ -1189,12 +1161,22 @@
1189
1161
  }
1190
1162
 
1191
1163
  .uikit-list-edit-button {
1164
+ /* Rendered as no button (e.g. a span beside a row's List.Button):
1165
+ its circle only, pressing the row beneath it. */
1166
+ &:not(button) {
1167
+ pointer-events: none;
1168
+ }
1169
+
1170
+ position: relative;
1192
1171
  padding: 0;
1193
1172
  border: 0;
1194
1173
  margin: 0;
1195
1174
  background: none;
1196
- background-color: var(--color-ios-system-red);
1197
- color: #fff;
1175
+ background-color: var(
1176
+ --uikit-list-edit-tint,
1177
+ var(--color-ios-system-gray)
1178
+ );
1179
+ color: var(--uikit-list-edit-text-color, #fff);
1198
1180
  font-family: inherit;
1199
1181
  text-align: inherit;
1200
1182
  text-decoration: none;
@@ -1205,15 +1187,19 @@
1205
1187
  cursor: var(--uikit-utils-cursor);
1206
1188
  }
1207
1189
 
1208
- &:where([data-editing-style='insert']) {
1209
- background-color: var(--color-ios-system-green);
1210
- }
1211
-
1212
1190
  &:disabled {
1213
1191
  --uikit-utils-cursor: attr(cursor type(<custom-ident>), not-allowed);
1214
1192
 
1215
1193
  opacity: 0.5;
1216
1194
  }
1195
+
1196
+ /* Hit region: at least 44×44px, centered (its parent's own pressable
1197
+ area beneath, e.g. a row's title's). */
1198
+ &::after {
1199
+ position: absolute;
1200
+ content: '';
1201
+ inset: min(0px, calc(50% - 22px));
1202
+ }
1217
1203
  }
1218
1204
 
1219
1205
  .uikit-list-swipe-actions {
@@ -1375,15 +1361,10 @@
1375
1361
  line-height: 20px;
1376
1362
  padding-inline: 10px;
1377
1363
  place-items: center;
1378
- stroke: currentcolor;
1379
- stroke-linejoin: round;
1380
- stroke-width: max(0px, (400 - 400) / 326 * 1px);
1381
1364
  text-transform: uppercase;
1382
1365
  transition: width 150ms;
1383
1366
  white-space: nowrap;
1384
1367
 
1385
- --uikit-symbol-thinning: max(0px, (400 - 400) / 326 * 1px);
1386
-
1387
1368
  & > svg {
1388
1369
  font-size: var(--font-ios-body-size);
1389
1370
  }
@@ -1420,12 +1401,7 @@
1420
1401
  font-variation-settings: 'wght' 510;
1421
1402
  font-weight: round(down, 510, 100);
1422
1403
  line-height: 16px;
1423
- stroke: currentcolor;
1424
- stroke-linejoin: round;
1425
- stroke-width: max(0px, (510 - 400) / 326 * 1px);
1426
1404
  white-space: nowrap;
1427
-
1428
- --uikit-symbol-thinning: max(0px, (400 - 510) / 326 * 1px);
1429
1405
  }
1430
1406
  }
1431
1407
 
@@ -1453,11 +1429,6 @@
1453
1429
  font-weight: round(down, 700, 100);
1454
1430
  letter-spacing: -0.45px;
1455
1431
  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
1432
  }
1462
1433
  }
1463
1434
 
@@ -1472,11 +1443,6 @@
1472
1443
  font-weight: round(down, 590, 100);
1473
1444
  letter-spacing: var(--uikit-list-nested-tracking, 0);
1474
1445
  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
1446
  }
1481
1447
  }
1482
1448
 
@@ -1491,17 +1457,6 @@
1491
1457
  font-weight: round(down, var(--font-ios-title3-weight-emphasized), 100);
1492
1458
  letter-spacing: var(--font-ios-title3-tracking);
1493
1459
  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
- );
1505
1460
  }
1506
1461
  }
1507
1462
 
@@ -1610,14 +1565,6 @@
1610
1565
  line-height: var(--font-ios-body-line-height);
1611
1566
  margin-inline: var(--uikit-list-inset, 16px);
1612
1567
  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
1568
 
1622
1569
  &:where([data-strong]) {
1623
1570
  border-radius: var(--uikit-list-radius, 24px);
@@ -1644,6 +1591,7 @@
1644
1591
  justify-content: center;
1645
1592
  gap: 0;
1646
1593
  touch-action: none;
1594
+ -webkit-user-select: none;
1647
1595
  user-select: none;
1648
1596
 
1649
1597
  &:where([data-size='regular']) {
@@ -1666,12 +1614,6 @@
1666
1614
  font-weight: round(down, var(--font-ios-caption1-weight-emphasized), 100);
1667
1615
  letter-spacing: var(--font-ios-caption1-tracking);
1668
1616
  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
- );
1675
1617
  text-align: center;
1676
1618
  text-decoration: none;
1677
1619
 
@@ -1680,10 +1622,5 @@
1680
1622
  @media (hover: hover) {
1681
1623
  cursor: var(--uikit-utils-cursor);
1682
1624
  }
1683
-
1684
- --uikit-symbol-thinning: max(
1685
- 0px,
1686
- (400 - var(--font-ios-caption1-weight-emphasized)) / 326 * 1px
1687
- );
1688
1625
  }
1689
1626
  }