datocms-react-ui 3.1.0-next.4 → 3.1.0-next.6

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 (384) hide show
  1. package/dist/LICENSE-lucide.txt +43 -0
  2. package/dist/styles.css +382 -176
  3. package/dist/ui-public/icons/custom/dato_symbol.js +22 -0
  4. package/dist/ui-public/icons/index.js +296 -367
  5. package/dist/ui-public/icons/lucide/app-window.js +33 -0
  6. package/dist/ui-public/icons/lucide/arrow-big-down.js +22 -0
  7. package/dist/ui-public/icons/lucide/arrow-down-a-z.js +28 -0
  8. package/dist/ui-public/icons/lucide/arrow-down-from-line.js +26 -0
  9. package/dist/ui-public/icons/lucide/arrow-down.js +22 -0
  10. package/dist/ui-public/icons/lucide/arrow-left.js +22 -0
  11. package/dist/ui-public/icons/lucide/arrow-right-left.js +27 -0
  12. package/dist/ui-public/icons/lucide/arrow-right.js +22 -0
  13. package/dist/ui-public/icons/lucide/arrow-up-down.js +27 -0
  14. package/dist/ui-public/icons/lucide/arrow-up-from-line.js +26 -0
  15. package/dist/ui-public/icons/lucide/arrow-up.js +22 -0
  16. package/dist/ui-public/icons/lucide/ban.js +26 -0
  17. package/dist/ui-public/icons/lucide/book.js +22 -0
  18. package/dist/ui-public/icons/lucide/bookmark.js +22 -0
  19. package/dist/ui-public/icons/lucide/calendar.js +33 -0
  20. package/dist/ui-public/icons/{regular → lucide}/check.js +9 -3
  21. package/dist/ui-public/icons/{regular → lucide}/chevron-down.js +9 -3
  22. package/dist/ui-public/icons/{regular → lucide}/chevron-left.js +9 -3
  23. package/dist/ui-public/icons/{regular → lucide}/chevron-right.js +9 -3
  24. package/dist/ui-public/icons/lucide/chevrons-down.js +22 -0
  25. package/dist/ui-public/icons/lucide/chevrons-left.js +22 -0
  26. package/dist/ui-public/icons/lucide/chevrons-right.js +22 -0
  27. package/dist/ui-public/icons/lucide/circle-arrow-up.js +30 -0
  28. package/dist/ui-public/icons/lucide/circle-check.js +26 -0
  29. package/dist/ui-public/icons/lucide/circle-dot.js +30 -0
  30. package/dist/ui-public/icons/lucide/circle-exclamation-point.js +40 -0
  31. package/dist/ui-public/icons/lucide/circle-question-mark.js +30 -0
  32. package/dist/ui-public/icons/lucide/clock.js +26 -0
  33. package/dist/ui-public/icons/lucide/code.js +22 -0
  34. package/dist/ui-public/icons/lucide/command.js +22 -0
  35. package/dist/ui-public/icons/lucide/copy-plus.js +44 -0
  36. package/dist/ui-public/icons/lucide/copy.js +29 -0
  37. package/dist/ui-public/icons/lucide/corner-left-up.js +22 -0
  38. package/dist/ui-public/icons/lucide/database.js +31 -0
  39. package/dist/ui-public/icons/lucide/download.js +26 -0
  40. package/dist/ui-public/icons/lucide/earth.js +31 -0
  41. package/dist/ui-public/icons/lucide/ellipsis-vertical.js +38 -0
  42. package/dist/ui-public/icons/lucide/ellipsis.js +38 -0
  43. package/dist/ui-public/icons/lucide/external-link.js +26 -0
  44. package/dist/ui-public/icons/lucide/eye-off.js +27 -0
  45. package/dist/ui-public/icons/lucide/eye.js +26 -0
  46. package/dist/ui-public/icons/lucide/file-code.js +27 -0
  47. package/dist/ui-public/icons/lucide/file-output.js +27 -0
  48. package/dist/ui-public/icons/lucide/flask-conical.js +26 -0
  49. package/dist/ui-public/icons/lucide/fold-vertical.js +31 -0
  50. package/dist/ui-public/icons/lucide/folder-open.js +22 -0
  51. package/dist/ui-public/icons/lucide/folder-plus.js +26 -0
  52. package/dist/ui-public/icons/lucide/folder.js +22 -0
  53. package/dist/ui-public/icons/lucide/folders.js +22 -0
  54. package/dist/ui-public/icons/lucide/funnel.js +22 -0
  55. package/dist/ui-public/icons/lucide/gift.js +33 -0
  56. package/dist/ui-public/icons/lucide/git-branch.js +34 -0
  57. package/dist/ui-public/icons/lucide/git-fork.js +40 -0
  58. package/dist/ui-public/icons/lucide/globe.js +30 -0
  59. package/dist/ui-public/icons/lucide/grip-vertical.js +53 -0
  60. package/dist/ui-public/icons/lucide/hand.js +27 -0
  61. package/dist/ui-public/icons/lucide/hard-hat.js +33 -0
  62. package/dist/ui-public/icons/lucide/heading-1.js +27 -0
  63. package/dist/ui-public/icons/lucide/heading-2.js +27 -0
  64. package/dist/ui-public/icons/lucide/heading-3.js +28 -0
  65. package/dist/ui-public/icons/lucide/heading-4.js +28 -0
  66. package/dist/ui-public/icons/lucide/heading-5.js +28 -0
  67. package/dist/ui-public/icons/lucide/heading-6.js +32 -0
  68. package/dist/ui-public/icons/lucide/highlighter.js +22 -0
  69. package/dist/ui-public/icons/lucide/hourglass.js +27 -0
  70. package/dist/ui-public/icons/lucide/house.js +22 -0
  71. package/dist/ui-public/icons/lucide/image.js +37 -0
  72. package/dist/ui-public/icons/lucide/images.js +38 -0
  73. package/dist/ui-public/icons/lucide/info.js +30 -0
  74. package/dist/ui-public/icons/lucide/italic.js +41 -0
  75. package/dist/ui-public/icons/lucide/keyboard.js +38 -0
  76. package/dist/ui-public/icons/lucide/languages.js +29 -0
  77. package/dist/ui-public/icons/lucide/layers.js +26 -0
  78. package/dist/ui-public/icons/lucide/layout-grid.js +51 -0
  79. package/dist/ui-public/icons/lucide/letter-b.js +22 -0
  80. package/dist/ui-public/icons/lucide/life-buoy.js +37 -0
  81. package/dist/ui-public/icons/lucide/link.js +22 -0
  82. package/dist/ui-public/icons/lucide/list-indent-decrease.js +27 -0
  83. package/dist/ui-public/icons/lucide/list-indent-increase.js +27 -0
  84. package/dist/ui-public/icons/lucide/list-ordered.js +29 -0
  85. package/dist/ui-public/icons/lucide/list-tree.js +28 -0
  86. package/dist/ui-public/icons/lucide/list.js +29 -0
  87. package/dist/ui-public/icons/lucide/log-out.js +26 -0
  88. package/dist/ui-public/icons/lucide/mail.js +28 -0
  89. package/dist/ui-public/icons/lucide/map-pin.js +26 -0
  90. package/dist/ui-public/icons/lucide/map-pinned.js +30 -0
  91. package/dist/ui-public/icons/lucide/maximize.js +27 -0
  92. package/dist/ui-public/icons/lucide/menu.js +26 -0
  93. package/dist/ui-public/icons/lucide/messages-square.js +22 -0
  94. package/dist/ui-public/icons/lucide/minimize.js +27 -0
  95. package/dist/ui-public/icons/lucide/minus.js +22 -0
  96. package/dist/ui-public/icons/lucide/notepad-text.js +36 -0
  97. package/dist/ui-public/icons/lucide/octagon-exclamation-point.js +26 -0
  98. package/dist/ui-public/icons/lucide/palette.js +48 -0
  99. package/dist/ui-public/icons/lucide/panel-left.js +28 -0
  100. package/dist/ui-public/icons/lucide/panel-right.js +28 -0
  101. package/dist/ui-public/icons/lucide/pause.js +34 -0
  102. package/dist/ui-public/icons/lucide/pen.js +22 -0
  103. package/dist/ui-public/icons/lucide/pilcrow.js +26 -0
  104. package/dist/ui-public/icons/lucide/pipette.js +26 -0
  105. package/dist/ui-public/icons/lucide/play.js +22 -0
  106. package/dist/ui-public/icons/lucide/plus.js +22 -0
  107. package/dist/ui-public/icons/lucide/quote.js +22 -0
  108. package/dist/ui-public/icons/lucide/receipt.js +26 -0
  109. package/dist/ui-public/icons/lucide/redo-2.js +22 -0
  110. package/dist/ui-public/icons/lucide/refresh-cw.js +27 -0
  111. package/dist/ui-public/icons/lucide/rotate-ccw-clock.js +26 -0
  112. package/dist/ui-public/icons/lucide/rotate-ccw.js +22 -0
  113. package/dist/ui-public/icons/lucide/search.js +26 -0
  114. package/dist/ui-public/icons/lucide/send.js +22 -0
  115. package/dist/ui-public/icons/lucide/settings-2.js +35 -0
  116. package/dist/ui-public/icons/lucide/settings.js +26 -0
  117. package/dist/ui-public/icons/lucide/sliders-horizontal.js +32 -0
  118. package/dist/ui-public/icons/lucide/smartphone.js +29 -0
  119. package/dist/ui-public/icons/lucide/square-arrow-left.js +32 -0
  120. package/dist/ui-public/icons/lucide/square-arrow-up-right.js +32 -0
  121. package/dist/ui-public/icons/lucide/square-code.js +32 -0
  122. package/dist/ui-public/icons/lucide/square-dashed.js +35 -0
  123. package/dist/ui-public/icons/lucide/square-pen.js +22 -0
  124. package/dist/ui-public/icons/lucide/square-plus.js +32 -0
  125. package/dist/ui-public/icons/lucide/square-terminal.js +33 -0
  126. package/dist/ui-public/icons/lucide/store.js +26 -0
  127. package/dist/ui-public/icons/lucide/strikethrough.js +31 -0
  128. package/dist/ui-public/icons/lucide/table.js +33 -0
  129. package/dist/ui-public/icons/lucide/tag.js +27 -0
  130. package/dist/ui-public/icons/lucide/text-align-center.js +26 -0
  131. package/dist/ui-public/icons/lucide/text-align-end.js +26 -0
  132. package/dist/ui-public/icons/lucide/text-align-justify.js +26 -0
  133. package/dist/ui-public/icons/lucide/text-align-start.js +26 -0
  134. package/dist/ui-public/icons/lucide/toolbox.js +28 -0
  135. package/dist/ui-public/icons/lucide/trash.js +28 -0
  136. package/dist/ui-public/icons/lucide/triangle-exclamation-point.js +26 -0
  137. package/dist/ui-public/icons/lucide/underline.js +27 -0
  138. package/dist/ui-public/icons/lucide/undo-2.js +22 -0
  139. package/dist/ui-public/icons/lucide/unfold-vertical.js +31 -0
  140. package/dist/ui-public/icons/lucide/user-lock.js +37 -0
  141. package/dist/ui-public/icons/lucide/user-minus.js +35 -0
  142. package/dist/ui-public/icons/lucide/user-round-arrow-left.js +31 -0
  143. package/dist/ui-public/icons/lucide/user.js +26 -0
  144. package/dist/ui-public/icons/lucide/x.js +22 -0
  145. package/dist/ui-public/locales/en.js +2 -0
  146. package/dist/ui-public/src/UiTextKey.d.ts +1 -1
  147. package/dist/ui-public/src/actions/Button.d.ts +10 -2
  148. package/dist/ui-public/src/actions/Button.js +7 -1
  149. package/dist/ui-public/src/actions/Dropdown/Menu.js +2 -1
  150. package/dist/ui-public/src/actions/Dropdown/MenuContent.d.ts +2 -1
  151. package/dist/ui-public/src/actions/Dropdown/MenuContent.js +13 -3
  152. package/dist/ui-public/src/actions/Dropdown/Submenu.js +5 -2
  153. package/dist/ui-public/src/actions/disabledReason.js +1 -1
  154. package/dist/ui-public/src/content/UploadThreatTriangle.js +1 -1
  155. package/dist/ui-public/src/content/ValidityTriangles.js +1 -1
  156. package/dist/ui-public/src/form/PasswordInput.js +1 -9
  157. package/dist/ui-public/src/form/SwitchInput.js +4 -2
  158. package/dist/ui-public/src/layout/Pagination.d.ts +6 -1
  159. package/dist/ui-public/src/layout/Pagination.js +4 -2
  160. package/dist/ui-public/src/layout/Toolbar/FilterToggle.d.ts +1 -1
  161. package/dist/ui-public/src/layout/Toolbar/FilterToggle.js +12 -4
  162. package/dist/ui-public/src/layout/Toolbar/Pagination.d.ts +4 -1
  163. package/dist/ui-public/src/layout/Toolbar/Pagination.js +30 -26
  164. package/dist/ui-public/src/lists/CardList.js +4 -1
  165. package/dist/ui-public/src/lists/SettingsList.d.ts +4 -3
  166. package/dist/ui-public/src/navigation/SegmentedControl.js +4 -1
  167. package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNodeActions.d.ts +3 -0
  168. package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNodeActions.js +2 -1
  169. package/dist/ui-public/src/navigation/Tabs.js +23 -1
  170. package/dist/ui-public/src/overlays/HoverCard/index.js +1 -1
  171. package/dist/ui-public/src/patterns/ListDetail/FloatingDetail.js +71 -0
  172. package/dist/ui-public/src/patterns/ListDetail/Overview.js +2 -2
  173. package/dist/ui-public/src/patterns/ListDetail/Page.js +8 -4
  174. package/dist/ui-public/src/patterns/ListDetail/Panel.js +11 -10
  175. package/dist/ui-public/src/patterns/ListDetail/Split.d.ts +23 -8
  176. package/dist/ui-public/src/patterns/ListDetail/Split.js +99 -115
  177. package/dist/ui-public/src/patterns/ListDetail/index.d.ts +4 -3
  178. package/dist/ui-public/src/patterns/ListDetail/useDetailWidthDrag.js +43 -0
  179. package/package.json +2 -2
  180. package/dist/ui-public/icons/brands/gitlab.js +0 -15
  181. package/dist/ui-public/icons/brands/markdown.js +0 -15
  182. package/dist/ui-public/icons/custom/color_d_icon.js +0 -20
  183. package/dist/ui-public/icons/custom/language.js +0 -16
  184. package/dist/ui-public/icons/custom/masonry.js +0 -21
  185. package/dist/ui-public/icons/light/eye-slash.js +0 -16
  186. package/dist/ui-public/icons/light/eye.js +0 -16
  187. package/dist/ui-public/icons/regular/align-left.js +0 -15
  188. package/dist/ui-public/icons/regular/arrow-down-a-z.js +0 -16
  189. package/dist/ui-public/icons/regular/arrow-down-from-line.js +0 -16
  190. package/dist/ui-public/icons/regular/arrow-down-to-line.js +0 -15
  191. package/dist/ui-public/icons/regular/arrow-down.js +0 -16
  192. package/dist/ui-public/icons/regular/arrow-left.js +0 -16
  193. package/dist/ui-public/icons/regular/arrow-right-arrow-left.js +0 -16
  194. package/dist/ui-public/icons/regular/arrow-right-from-bracket.js +0 -16
  195. package/dist/ui-public/icons/regular/arrow-right.js +0 -16
  196. package/dist/ui-public/icons/regular/arrow-rotate-left.js +0 -15
  197. package/dist/ui-public/icons/regular/arrow-rotate-right.js +0 -16
  198. package/dist/ui-public/icons/regular/arrow-turn-up.js +0 -16
  199. package/dist/ui-public/icons/regular/arrow-up-arrow-down.js +0 -16
  200. package/dist/ui-public/icons/regular/arrow-up-from-line.js +0 -16
  201. package/dist/ui-public/icons/regular/arrow-up-right-from-square.js +0 -16
  202. package/dist/ui-public/icons/regular/arrow-up-to-line.js +0 -15
  203. package/dist/ui-public/icons/regular/arrow-up.js +0 -16
  204. package/dist/ui-public/icons/regular/arrows-from-line.js +0 -16
  205. package/dist/ui-public/icons/regular/arrows-rotate.js +0 -16
  206. package/dist/ui-public/icons/regular/arrows-to-line.js +0 -16
  207. package/dist/ui-public/icons/regular/arrows-turn-to-dots.js +0 -15
  208. package/dist/ui-public/icons/regular/badge-check.js +0 -15
  209. package/dist/ui-public/icons/regular/ballot-check.js +0 -15
  210. package/dist/ui-public/icons/regular/ban.js +0 -16
  211. package/dist/ui-public/icons/regular/bars.js +0 -16
  212. package/dist/ui-public/icons/regular/bold.js +0 -15
  213. package/dist/ui-public/icons/regular/bolt.js +0 -15
  214. package/dist/ui-public/icons/regular/book.js +0 -16
  215. package/dist/ui-public/icons/regular/bookmark.js +0 -16
  216. package/dist/ui-public/icons/regular/brackets-curly.js +0 -15
  217. package/dist/ui-public/icons/regular/browser.js +0 -16
  218. package/dist/ui-public/icons/regular/calendar-clock.js +0 -15
  219. package/dist/ui-public/icons/regular/calendar.js +0 -16
  220. package/dist/ui-public/icons/regular/chart-area.js +0 -15
  221. package/dist/ui-public/icons/regular/chevrons-down.js +0 -16
  222. package/dist/ui-public/icons/regular/chevrons-left.js +0 -16
  223. package/dist/ui-public/icons/regular/chevrons-right.js +0 -16
  224. package/dist/ui-public/icons/regular/circle-arrow-up.js +0 -16
  225. package/dist/ui-public/icons/regular/circle-check.js +0 -16
  226. package/dist/ui-public/icons/regular/circle-dot.js +0 -16
  227. package/dist/ui-public/icons/regular/circle-exclamation.js +0 -16
  228. package/dist/ui-public/icons/regular/circle-info.js +0 -16
  229. package/dist/ui-public/icons/regular/circle-question.js +0 -16
  230. package/dist/ui-public/icons/regular/clapperboard-play.js +0 -15
  231. package/dist/ui-public/icons/regular/clipboard.js +0 -15
  232. package/dist/ui-public/icons/regular/clock-rotate-left.js +0 -16
  233. package/dist/ui-public/icons/regular/clock.js +0 -16
  234. package/dist/ui-public/icons/regular/clone.js +0 -16
  235. package/dist/ui-public/icons/regular/cloud-arrow-down.js +0 -15
  236. package/dist/ui-public/icons/regular/code-branch.js +0 -16
  237. package/dist/ui-public/icons/regular/code-fork.js +0 -16
  238. package/dist/ui-public/icons/regular/command.js +0 -16
  239. package/dist/ui-public/icons/regular/comments.js +0 -16
  240. package/dist/ui-public/icons/regular/copy.js +0 -16
  241. package/dist/ui-public/icons/regular/cube.js +0 -15
  242. package/dist/ui-public/icons/regular/cubes.js +0 -15
  243. package/dist/ui-public/icons/regular/dash.js +0 -16
  244. package/dist/ui-public/icons/regular/database.js +0 -16
  245. package/dist/ui-public/icons/regular/diamond.js +0 -15
  246. package/dist/ui-public/icons/regular/down.js +0 -16
  247. package/dist/ui-public/icons/regular/download.js +0 -16
  248. package/dist/ui-public/icons/regular/earth-europe.js +0 -16
  249. package/dist/ui-public/icons/regular/ellipsis-vertical.js +0 -16
  250. package/dist/ui-public/icons/regular/ellipsis.js +0 -16
  251. package/dist/ui-public/icons/regular/envelope.js +0 -16
  252. package/dist/ui-public/icons/regular/expand.js +0 -16
  253. package/dist/ui-public/icons/regular/eye-dropper.js +0 -16
  254. package/dist/ui-public/icons/regular/eye.js +0 -16
  255. package/dist/ui-public/icons/regular/file-export.js +0 -16
  256. package/dist/ui-public/icons/regular/file-lines.js +0 -15
  257. package/dist/ui-public/icons/regular/file-shield.js +0 -15
  258. package/dist/ui-public/icons/regular/file.js +0 -15
  259. package/dist/ui-public/icons/regular/filter.js +0 -16
  260. package/dist/ui-public/icons/regular/fire-flame-curved.js +0 -15
  261. package/dist/ui-public/icons/regular/flask-gear.js +0 -16
  262. package/dist/ui-public/icons/regular/flask.js +0 -16
  263. package/dist/ui-public/icons/regular/folder-gear.js +0 -15
  264. package/dist/ui-public/icons/regular/folder-magnifying-glass.js +0 -15
  265. package/dist/ui-public/icons/regular/folder-open.js +0 -16
  266. package/dist/ui-public/icons/regular/folder-plus.js +0 -16
  267. package/dist/ui-public/icons/regular/folder.js +0 -16
  268. package/dist/ui-public/icons/regular/folders.js +0 -16
  269. package/dist/ui-public/icons/regular/gear.js +0 -16
  270. package/dist/ui-public/icons/regular/gift.js +0 -16
  271. package/dist/ui-public/icons/regular/globe.js +0 -16
  272. package/dist/ui-public/icons/regular/grid-2.js +0 -16
  273. package/dist/ui-public/icons/regular/grip-dots-vertical.js +0 -16
  274. package/dist/ui-public/icons/regular/hand.js +0 -16
  275. package/dist/ui-public/icons/regular/hourglass-clock.js +0 -16
  276. package/dist/ui-public/icons/regular/house.js +0 -16
  277. package/dist/ui-public/icons/regular/images.js +0 -16
  278. package/dist/ui-public/icons/regular/input-numeric.js +0 -15
  279. package/dist/ui-public/icons/regular/input-text.js +0 -15
  280. package/dist/ui-public/icons/regular/keyboard.js +0 -16
  281. package/dist/ui-public/icons/regular/layer-group.js +0 -16
  282. package/dist/ui-public/icons/regular/life-ring.js +0 -16
  283. package/dist/ui-public/icons/regular/link-simple.js +0 -15
  284. package/dist/ui-public/icons/regular/link.js +0 -16
  285. package/dist/ui-public/icons/regular/list-tree.js +0 -16
  286. package/dist/ui-public/icons/regular/list.js +0 -16
  287. package/dist/ui-public/icons/regular/magnifying-glass-chart.js +0 -15
  288. package/dist/ui-public/icons/regular/magnifying-glass.js +0 -16
  289. package/dist/ui-public/icons/regular/map-location-dot.js +0 -16
  290. package/dist/ui-public/icons/regular/memo.js +0 -16
  291. package/dist/ui-public/icons/regular/mobile-screen-button.js +0 -16
  292. package/dist/ui-public/icons/regular/octagon-exclamation.js +0 -16
  293. package/dist/ui-public/icons/regular/palette.js +0 -16
  294. package/dist/ui-public/icons/regular/paper-plane.js +0 -16
  295. package/dist/ui-public/icons/regular/paragraph.js +0 -15
  296. package/dist/ui-public/icons/regular/paste.js +0 -15
  297. package/dist/ui-public/icons/regular/pause.js +0 -16
  298. package/dist/ui-public/icons/regular/pen-paintbrush.js +0 -15
  299. package/dist/ui-public/icons/regular/pen-to-square.js +0 -16
  300. package/dist/ui-public/icons/regular/pen.js +0 -16
  301. package/dist/ui-public/icons/regular/people-arrows.js +0 -16
  302. package/dist/ui-public/icons/regular/photo-film.js +0 -15
  303. package/dist/ui-public/icons/regular/play.js +0 -16
  304. package/dist/ui-public/icons/regular/puzzle-piece.js +0 -15
  305. package/dist/ui-public/icons/regular/receipt.js +0 -16
  306. package/dist/ui-public/icons/regular/rectangle-barcode.js +0 -15
  307. package/dist/ui-public/icons/regular/rectangle-list.js +0 -15
  308. package/dist/ui-public/icons/regular/right-left.js +0 -15
  309. package/dist/ui-public/icons/regular/rotate-left.js +0 -16
  310. package/dist/ui-public/icons/regular/shield.js +0 -15
  311. package/dist/ui-public/icons/regular/sidebar-flip.js +0 -16
  312. package/dist/ui-public/icons/regular/sidebar.js +0 -16
  313. package/dist/ui-public/icons/regular/sliders.js +0 -16
  314. package/dist/ui-public/icons/regular/sparkles.js +0 -15
  315. package/dist/ui-public/icons/regular/square-caret-down.js +0 -15
  316. package/dist/ui-public/icons/regular/square-check.js +0 -15
  317. package/dist/ui-public/icons/regular/square-dashed.js +0 -15
  318. package/dist/ui-public/icons/regular/square-left.js +0 -16
  319. package/dist/ui-public/icons/regular/square-terminal.js +0 -16
  320. package/dist/ui-public/icons/regular/square-up-right.js +0 -16
  321. package/dist/ui-public/icons/regular/store.js +0 -16
  322. package/dist/ui-public/icons/regular/swap-arrows.js +0 -15
  323. package/dist/ui-public/icons/regular/table.js +0 -16
  324. package/dist/ui-public/icons/regular/tag.js +0 -16
  325. package/dist/ui-public/icons/regular/toggle-on.js +0 -15
  326. package/dist/ui-public/icons/regular/toolbox.js +0 -16
  327. package/dist/ui-public/icons/regular/trash-undo.js +0 -15
  328. package/dist/ui-public/icons/regular/trash.js +0 -16
  329. package/dist/ui-public/icons/regular/triangle-exclamation.js +0 -16
  330. package/dist/ui-public/icons/regular/turn-up.js +0 -16
  331. package/dist/ui-public/icons/regular/user-group.js +0 -15
  332. package/dist/ui-public/icons/regular/user-helmet-safety.js +0 -16
  333. package/dist/ui-public/icons/regular/user-lock.js +0 -16
  334. package/dist/ui-public/icons/regular/user-minus.js +0 -16
  335. package/dist/ui-public/icons/regular/user-tie.js +0 -15
  336. package/dist/ui-public/icons/regular/user.js +0 -16
  337. package/dist/ui-public/icons/regular/users.js +0 -15
  338. package/dist/ui-public/icons/regular/video.js +0 -15
  339. package/dist/ui-public/icons/regular/webhook.js +0 -15
  340. package/dist/ui-public/icons/regular/wrench.js +0 -15
  341. package/dist/ui-public/icons/regular/xmark.js +0 -16
  342. package/dist/ui-public/icons/solid/align-center.js +0 -16
  343. package/dist/ui-public/icons/solid/align-justify.js +0 -16
  344. package/dist/ui-public/icons/solid/align-left.js +0 -16
  345. package/dist/ui-public/icons/solid/align-right.js +0 -16
  346. package/dist/ui-public/icons/solid/arrow-rotate-left.js +0 -16
  347. package/dist/ui-public/icons/solid/arrow-rotate-right.js +0 -16
  348. package/dist/ui-public/icons/solid/bold.js +0 -16
  349. package/dist/ui-public/icons/solid/circle-exclamation.js +0 -16
  350. package/dist/ui-public/icons/solid/closed-captioning.js +0 -15
  351. package/dist/ui-public/icons/solid/code.js +0 -16
  352. package/dist/ui-public/icons/solid/compress.js +0 -16
  353. package/dist/ui-public/icons/solid/download.js +0 -15
  354. package/dist/ui-public/icons/solid/expand.js +0 -16
  355. package/dist/ui-public/icons/solid/file-arrow-down.js +0 -15
  356. package/dist/ui-public/icons/solid/file-code.js +0 -16
  357. package/dist/ui-public/icons/solid/grid-2.js +0 -16
  358. package/dist/ui-public/icons/solid/h1.js +0 -16
  359. package/dist/ui-public/icons/solid/h2.js +0 -16
  360. package/dist/ui-public/icons/solid/h3.js +0 -16
  361. package/dist/ui-public/icons/solid/h4.js +0 -16
  362. package/dist/ui-public/icons/solid/h5.js +0 -16
  363. package/dist/ui-public/icons/solid/h6.js +0 -16
  364. package/dist/ui-public/icons/solid/highlighter.js +0 -16
  365. package/dist/ui-public/icons/solid/horizontal-rule.js +0 -16
  366. package/dist/ui-public/icons/solid/image.js +0 -16
  367. package/dist/ui-public/icons/solid/indent.js +0 -16
  368. package/dist/ui-public/icons/solid/italic.js +0 -16
  369. package/dist/ui-public/icons/solid/link.js +0 -16
  370. package/dist/ui-public/icons/solid/list-ol.js +0 -16
  371. package/dist/ui-public/icons/solid/list-ul.js +0 -16
  372. package/dist/ui-public/icons/solid/location-dot.js +0 -16
  373. package/dist/ui-public/icons/solid/music.js +0 -15
  374. package/dist/ui-public/icons/solid/outdent.js +0 -16
  375. package/dist/ui-public/icons/solid/paragraph.js +0 -16
  376. package/dist/ui-public/icons/solid/plus.js +0 -16
  377. package/dist/ui-public/icons/solid/quote-right.js +0 -16
  378. package/dist/ui-public/icons/solid/rectangle-code.js +0 -16
  379. package/dist/ui-public/icons/solid/square-plus.js +0 -16
  380. package/dist/ui-public/icons/solid/strikethrough.js +0 -16
  381. package/dist/ui-public/icons/solid/subtitles.js +0 -15
  382. package/dist/ui-public/icons/solid/table.js +0 -16
  383. package/dist/ui-public/icons/solid/triangle-exclamation.js +0 -16
  384. package/dist/ui-public/icons/solid/underline.js +0 -16
package/dist/styles.css CHANGED
@@ -580,12 +580,11 @@ input {
580
580
  height: auto;
581
581
  }
582
582
  }
583
+ /* We do not set box-sizing here. A search input keeps the border-box of
584
+ the other text inputs (_base.css), thus it fits its container. */
583
585
  &[type="search"] {
584
- box-sizing: content-box;
585
586
  -webkit-appearance: textfield;
586
587
 
587
- /* 2*/
588
-
589
588
  &::-webkit-search-cancel-button,
590
589
  &::-webkit-search-decoration {
591
590
  -moz-appearance: none;
@@ -609,8 +608,7 @@ input {
609
608
  * decrement button to change from `default` to `text`.*/
610
609
 
611
610
  /**
612
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
613
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.*/
611
+ * Address `appearance` set to `searchfield` in Safari and Chrome.*/
614
612
 
615
613
  /**
616
614
  * Remove inner padding and search cancel button in Safari and Chrome on OS X.
@@ -665,7 +663,6 @@ th {
665
663
  }
666
664
  html,
667
665
  body {
668
- height: 100%;
669
666
  background-color: var(--color--surface);
670
667
  }
671
668
  /* On a phone, all the interface is a step smaller. The sizes and the spaces
@@ -683,10 +680,13 @@ body {
683
680
  font-synthesis-weight: none;
684
681
  font-size: var(--font-size-m);
685
682
  -webkit-text-size-adjust: 100%;
686
- height: 100%;
687
683
  line-height: 1.4;
688
684
  color: var(--color--ink);
689
685
  text-rendering: optimizeLegibility;
686
+ /* A long word (a URL, an id) breaks only when it does not fit in its
687
+ line. "anywhere" would also change the min-content width, and the
688
+ grid and flex layouts would change. */
689
+ overflow-wrap: break-word;
690
690
  }
691
691
  /* Selected text has the colors of a selected row, thus it follows the brand
692
692
  hue and the color scheme */
@@ -986,8 +986,25 @@ input:-webkit-autofill {
986
986
  color: inherit !important;
987
987
  background-color: transparent !important;
988
988
  }
989
- svg {
990
- fill: var(--color--ink);
989
+ /* An icon takes the color of its text: set "color" on an icon, not "fill".
990
+ The value goes down as the keyword, thus each icon reads its own color.
991
+ It is not a rule on svg: that rule would win over the fill attribute of
992
+ an icon, and an outline icon (fill="none") would become a solid shape.
993
+ The rule is also on each link, because of a bug of Chrome: when a link
994
+ becomes visited while the page is open (the router pushes its URL), Chrome
995
+ keeps the initial black for the visited fill of the link if the fill only
996
+ comes down from an ancestor, and the icons inside the link paint black.
997
+ A fill declared on the link sets its visited fill too. */
998
+ html,
999
+ :any-link {
1000
+ fill: currentColor;
1001
+ }
1002
+ /* The stroke width of all the Lucide icons. Change it here only. At 2 the
1003
+ icons have the weight of the text next to them. At 1.75 or 1.5 they look
1004
+ light next to the text of the UI. The selector reads the attributes of
1005
+ the Lucide file, because a className of the caller replaces its class. */
1006
+ svg[fill="none"][stroke="currentColor"][stroke-width="2"] {
1007
+ stroke-width: 2;
991
1008
  }
992
1009
  button {
993
1010
  box-sizing: border-box;
@@ -1151,7 +1168,6 @@ button {
1151
1168
  svg {
1152
1169
  width: 32px;
1153
1170
  height: 32px;
1154
- fill: currentColor;
1155
1171
  }
1156
1172
  }
1157
1173
  /* Spinner--centered is "position: absolute" at 50%. This box holds the
@@ -1186,11 +1202,14 @@ button {
1186
1202
  gap: var(--spacing-m);
1187
1203
  align-items: flex-start;
1188
1204
  }
1205
+ /* The slate centers its parts and makes them as wide as their content, thus
1206
+ a long button gets an ellipsis only with "max-width" */
1189
1207
  .blank-slate__actions {
1190
1208
  display: flex;
1191
1209
  flex-wrap: wrap;
1192
1210
  gap: var(--spacing-s);
1193
1211
  align-items: center;
1212
+ max-width: 100%;
1194
1213
  margin-top: var(--spacing-s);
1195
1214
  }
1196
1215
  /* The content can have a form, thus it uses all the width */
@@ -1249,7 +1268,14 @@ button {
1249
1268
  --chevron-color: currentColor;
1250
1269
 
1251
1270
  box-sizing: border-box;
1252
- display: inline-block;
1271
+ /* A button is never wider than its container: the label gets the
1272
+ ellipsis, and the icons and the chevron keep their size. A button
1273
+ element is as wide as its content, also as a block, thus it needs
1274
+ "max-width". */
1275
+ display: inline-flex;
1276
+ align-items: center;
1277
+ justify-content: center;
1278
+ max-width: 100%;
1253
1279
  padding: var(--button-pad-y) var(--button-pad-x);
1254
1280
  font-family: inherit;
1255
1281
  font-size: 1.1em;
@@ -1280,14 +1306,17 @@ button {
1280
1306
  > span {
1281
1307
  position: relative;
1282
1308
  top: 0.06em;
1309
+ min-width: 0;
1310
+ overflow: hidden;
1311
+ text-overflow: ellipsis;
1283
1312
  }
1284
1313
  svg,
1285
1314
  i,
1286
1315
  .Spinner {
1287
1316
  display: inline-block;
1317
+ flex: none;
1288
1318
  line-height: 0.6;
1289
1319
  vertical-align: middle;
1290
- fill: var(--color--primary-soft--ink);
1291
1320
 
1292
1321
  &:first-child {
1293
1322
  margin-right: 0.5em;
@@ -1300,9 +1329,14 @@ button {
1300
1329
  margin-left: 0;
1301
1330
  }
1302
1331
  }
1332
+ /* Only the svg takes the color. The bars of a .Spinner paint with
1333
+ currentColor, thus they keep the color of the text of the button. */
1334
+ svg {
1335
+ color: var(--color--primary-soft--ink);
1336
+ }
1303
1337
  > .Pill:last-child {
1338
+ flex: none;
1304
1339
  margin-left: 0.5em;
1305
- vertical-align: middle;
1306
1340
  }
1307
1341
  }
1308
1342
  .button--micro,
@@ -1355,14 +1389,9 @@ button {
1355
1389
  .button--large {
1356
1390
  font-size: 1.2em;
1357
1391
  }
1358
- .button--ellipsis {
1359
- overflow: hidden;
1360
- text-overflow: ellipsis;
1361
- }
1362
1392
  .button--expand {
1363
- display: block;
1393
+ display: flex;
1364
1394
  width: 100%;
1365
- text-align: center;
1366
1395
  }
1367
1396
  .button--expand-on-mobile {
1368
1397
  width: 100%;
@@ -1371,6 +1400,28 @@ button {
1371
1400
  width: auto;
1372
1401
  }
1373
1402
  }
1403
+ /* A soft toggle that is on has the recipe of a selected row: the solid
1404
+ recipe would make it look like the primary action. The rule comes after
1405
+ the states of the soft tone, thus a focused toggle keeps it: the focus
1406
+ stays on the button after the click. The border is an inset shadow, thus
1407
+ the size of the button does not change. */
1408
+ .button--soft[aria-pressed="true"] {
1409
+ --button-pressed-border: inset 0 0 0 1px var(--color--selected--border);
1410
+
1411
+ color: var(--color--selected--ink);
1412
+ background-color: var(--color--selected--surface);
1413
+ box-shadow: var(--button-pressed-border);
1414
+
1415
+ svg {
1416
+ color: var(--color--selected--ink);
1417
+ }
1418
+ &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):hover {
1419
+ background-color: var(--color--selected--surface-hover);
1420
+ }
1421
+ &:focus-visible {
1422
+ box-shadow: var(--button-pressed-border), var(--focus-ring);
1423
+ }
1424
+ }
1374
1425
  .button--primary {
1375
1426
  color: var(--color--primary--ink);
1376
1427
  background-color: var(--color--primary--surface);
@@ -1392,18 +1443,18 @@ button {
1392
1443
  }
1393
1444
 
1394
1445
  svg {
1395
- fill: var(--color--primary--ink);
1446
+ color: var(--color--primary--ink);
1396
1447
  }
1397
1448
  }
1398
1449
  .button--accent-color {
1399
1450
  svg {
1400
- fill: var(--color--ink);
1451
+ color: var(--color--ink);
1401
1452
  }
1402
1453
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):hover {
1403
1454
  color: var(--color--ink-link);
1404
1455
 
1405
1456
  svg {
1406
- fill: var(--color--ink-link);
1457
+ color: var(--color--ink-link);
1407
1458
  }
1408
1459
  }
1409
1460
  }
@@ -1412,7 +1463,7 @@ button {
1412
1463
  background: var(--color--overlay--surface);
1413
1464
 
1414
1465
  svg {
1415
- fill: var(--color--overlay--ink);
1466
+ color: var(--color--overlay--ink);
1416
1467
  }
1417
1468
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):hover {
1418
1469
  background: var(--color--overlay--surface-hover);
@@ -1428,7 +1479,7 @@ button {
1428
1479
  border-width: 0;
1429
1480
 
1430
1481
  svg {
1431
- fill: var(--color--primary-inverse--ink);
1482
+ color: var(--color--primary-inverse--ink);
1432
1483
  }
1433
1484
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):hover,
1434
1485
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):focus {
@@ -1444,7 +1495,7 @@ button {
1444
1495
  border-width: 0;
1445
1496
 
1446
1497
  svg {
1447
- fill: var(--color--danger--ink);
1498
+ color: var(--color--danger--ink);
1448
1499
  }
1449
1500
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):hover,
1450
1501
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):focus,
@@ -1453,7 +1504,7 @@ button {
1453
1504
  background-color: var(--color--danger--surface);
1454
1505
 
1455
1506
  svg {
1456
- fill: var(--color--danger--ink);
1507
+ color: var(--color--danger--ink);
1457
1508
  }
1458
1509
  }
1459
1510
  }
@@ -1465,7 +1516,7 @@ button {
1465
1516
  color: var(--color--ink);
1466
1517
 
1467
1518
  svg {
1468
- fill: var(--color--ink);
1519
+ color: var(--color--ink);
1469
1520
  }
1470
1521
  }
1471
1522
  }
@@ -1473,7 +1524,7 @@ button {
1473
1524
  color: var(--color--ink-subtle);
1474
1525
 
1475
1526
  svg {
1476
- fill: var(--color--ink-subtle);
1527
+ color: var(--color--ink-subtle);
1477
1528
  }
1478
1529
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):hover,
1479
1530
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):focus,
@@ -1489,7 +1540,8 @@ button {
1489
1540
  Do not write the states again in the block:
1490
1541
  --button-ghost-ink the text and the icon at rest
1491
1542
  --button-ghost-hover-ink the text and the icon on hover and focus
1492
- --button-ghost-hover-surface the surface on hover and focus
1543
+ --button-ghost-hover-surface the surface on hover and focus, and while
1544
+ the button is pressed or its menu is open
1493
1545
  --button-ghost-active-surface the surface while the pointer is down
1494
1546
  --button-ghost-pressed-ink the text and the icon while the button is
1495
1547
  pressed or its menu is open */
@@ -1503,7 +1555,7 @@ button {
1503
1555
  transition: background-color 0.2s var(--material-ease);
1504
1556
 
1505
1557
  svg {
1506
- fill: var(--button-ghost-ink, var(--color--ink-subtle));
1558
+ color: var(--button-ghost-ink, var(--color--ink-subtle));
1507
1559
  }
1508
1560
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):focus {
1509
1561
  background-color: transparent;
@@ -1518,7 +1570,7 @@ button {
1518
1570
  );
1519
1571
 
1520
1572
  svg {
1521
- fill: var(--button-ghost-hover-ink, var(--color--ink));
1573
+ color: var(--button-ghost-hover-ink, var(--color--ink));
1522
1574
  }
1523
1575
  }
1524
1576
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):active {
@@ -1527,12 +1579,18 @@ button {
1527
1579
  var(--button-ghost-hover-surface, var(--color--surface-hover))
1528
1580
  );
1529
1581
  }
1582
+ /* The hover surface stays while the button is on. The ink alone does not
1583
+ show the state in the dark scheme: the link ink is near the subtle ink. */
1530
1584
  &[aria-pressed="true"],
1531
1585
  &[aria-expanded="true"] {
1532
1586
  color: var(--button-ghost-pressed-ink, var(--color--ink-link));
1587
+ background-color: var(
1588
+ --button-ghost-hover-surface,
1589
+ var(--color--surface-hover)
1590
+ );
1533
1591
 
1534
1592
  svg {
1535
- fill: var(--button-ghost-pressed-ink, var(--color--ink-link));
1593
+ color: var(--button-ghost-pressed-ink, var(--color--ink-link));
1536
1594
  }
1537
1595
  }
1538
1596
  }
@@ -1579,6 +1637,7 @@ button {
1579
1637
  the surface behind the buttons shows through it, thus it is correct for
1580
1638
  each type of button. */
1581
1639
  gap: 1px;
1640
+ max-width: 100%;
1582
1641
 
1583
1642
  /* The caret is in the root element of its Dropdown */
1584
1643
  & > * {
@@ -1597,6 +1656,11 @@ button {
1597
1656
  .button--sub {
1598
1657
  border-radius: 0;
1599
1658
  }
1659
+ /* A long label of the main half gets the ellipsis, thus the caret stays in
1660
+ the container. */
1661
+ .button--container > .button--sub {
1662
+ min-width: 0;
1663
+ }
1600
1664
  /* A disabled button keeps the colors of its variant and fades, thus a
1601
1665
  disabled primary button still reads as the primary action. The rules of
1602
1666
  the variants show the hover only on an enabled button (see ":--enabled"),
@@ -1640,7 +1704,7 @@ button {
1640
1704
  two classes. Thus they have more priority than a rule of a container that
1641
1705
  sets the size or the color of all its icons.
1642
1706
 
1643
- Do not set the fill of a chevron out of this file: set --chevron-color.
1707
+ Do not set the color of a chevron out of this file: set --chevron-color.
1644
1708
  A colored surface (a button, a pill, the navigation bar) sets it to
1645
1709
  currentColor: the chevron then has the color of the text in all the
1646
1710
  states. A control that is not a button or a link sets it to
@@ -1649,12 +1713,14 @@ button {
1649
1713
  .Chevron:is(.Chevron--disclosure, .Chevron--menu, .Chevron--load-more) {
1650
1714
  display: inline-block;
1651
1715
  flex: none;
1652
- width: max(10px, 0.75em);
1653
- height: max(10px, 0.75em);
1716
+ /* A Lucide chevron fills only the middle of its box, thus the box is larger
1717
+ than the text, as in shadcn/ui (16px next to a text of 14px) */
1718
+ width: max(14px, 1.125em);
1719
+ height: max(14px, 1.125em);
1654
1720
  vertical-align: middle;
1655
- fill: var(--chevron-color, var(--color--ink-subtle));
1721
+ color: var(--chevron-color, var(--color--ink-subtle));
1656
1722
  transition:
1657
- fill 0.2s var(--material-ease),
1723
+ color 0.2s var(--material-ease),
1658
1724
  transform 0.2s var(--material-ease);
1659
1725
  }
1660
1726
 
@@ -1666,7 +1732,7 @@ button {
1666
1732
  .Chevron:is(.Chevron--disclosure, .Chevron--menu, .Chevron--load-more),
1667
1733
  :is(button, [role="button"])[aria-expanded="true"] .Chevron.Chevron--menu,
1668
1734
  .SelectInput__control.is-open .Chevron.Chevron--menu {
1669
- fill: var(--chevron-color, var(--color--ink));
1735
+ color: var(--chevron-color, var(--color--ink));
1670
1736
  }
1671
1737
 
1672
1738
  /* The chevron reads the state of its control: aria-expanded, :disabled,
@@ -1674,7 +1740,7 @@ button {
1674
1740
  classes tell the state. */
1675
1741
  :is(:disabled, [aria-disabled="true"], .SelectInput__control.is-disabled)
1676
1742
  .Chevron:is(.Chevron--disclosure, .Chevron--menu, .Chevron--load-more) {
1677
- fill: var(--chevron-color, var(--color--ink-disabled));
1743
+ color: var(--chevron-color, var(--color--ink-disabled));
1678
1744
  }
1679
1745
 
1680
1746
  /* The spinner is larger than the box of the chevron: it goes out of the box
@@ -1684,14 +1750,15 @@ button {
1684
1750
  align-items: center;
1685
1751
  justify-content: center;
1686
1752
  }
1687
- /* The actions also show when the menu of an action is open
1688
- (.Dropdown.is-open). */
1753
+ /* The message and the actions are in the same cell of the grid, one on the
1754
+ other. Thus the slot gets the height of the taller one: actions that wrap
1755
+ on two lines make the slot taller and do not go out of it. The actions
1756
+ also show when the menu of an action is open (.Dropdown.is-open). */
1689
1757
  .EmptySlot {
1690
- position: relative;
1691
1758
  box-sizing: border-box;
1692
- display: flex;
1693
- align-items: center;
1694
- justify-content: center;
1759
+ display: grid;
1760
+ grid-template-columns: minmax(0, 1fr);
1761
+ place-items: center;
1695
1762
  width: 100%;
1696
1763
  min-height: calc(4 * var(--space-unit));
1697
1764
  padding: 0 var(--spacing-m);
@@ -1716,18 +1783,22 @@ button.EmptySlot {
1716
1783
  box-shadow: var(--focus-ring);
1717
1784
  }
1718
1785
  }
1786
+ .EmptySlot > * {
1787
+ grid-area: 1 / 1;
1788
+ }
1719
1789
  .EmptySlot__message {
1720
1790
  font-size: var(--font-size-m);
1721
1791
  color: var(--color--ink-subtle);
1722
1792
  transition: opacity 0.15s ease-out;
1723
1793
  }
1724
1794
  .EmptySlot__actions {
1725
- position: absolute;
1726
- inset: 0;
1727
1795
  display: flex;
1796
+ flex-wrap: wrap;
1728
1797
  gap: var(--spacing-s);
1729
1798
  align-items: center;
1730
1799
  justify-content: center;
1800
+ max-width: 100%;
1801
+ padding-block: var(--spacing-s);
1731
1802
  opacity: 0;
1732
1803
  transition: opacity 0.15s ease-out;
1733
1804
 
@@ -2030,24 +2101,38 @@ button.EmptySlot {
2030
2101
  width: 1rem;
2031
2102
 
2032
2103
  svg {
2033
- fill: var(--color--ink-subtle);
2104
+ color: var(--color--ink-subtle);
2034
2105
  }
2035
2106
  }
2036
- .CardList__title {
2107
+ /* The parts of the header and the trailing part of a row share the width
2108
+ in equal parts, and a part that needs less gives the rest to the others
2109
+ (see .EntityRow__title). Thus a short title stays whole next to a long
2110
+ API key, and no part becomes 0px wide. */
2111
+ :is(.CardList__title, .CardList__aside, .CardList__trailing) {
2112
+ flex: 1 1 0;
2037
2113
  min-width: 0;
2114
+ max-width: max-content;
2115
+ }
2116
+ .CardList__title {
2038
2117
  overflow: hidden;
2039
2118
  text-overflow: ellipsis;
2040
2119
  font-weight: var(--font-weight-strong);
2041
2120
  white-space: nowrap;
2042
2121
  }
2043
2122
  .CardList__aside {
2044
- flex: none;
2123
+ overflow: hidden;
2124
+ text-overflow: ellipsis;
2045
2125
  color: var(--color--ink-subtle);
2126
+ white-space: nowrap;
2046
2127
  }
2128
+ /* The pills of the part share its width as the parts of an EntityRow
2129
+ title. The gap is the gap of the header or of the row. */
2047
2130
  .CardList__trailing {
2048
- display: flex;
2049
- flex: none;
2050
- gap: var(--spacing-s);
2131
+ display: grid;
2132
+ grid-auto-columns: minmax(0, max-content);
2133
+ grid-auto-flow: column;
2134
+ gap: inherit;
2135
+ align-items: center;
2051
2136
  margin-left: auto;
2052
2137
  }
2053
2138
 
@@ -2314,7 +2399,7 @@ button.EmptySlot {
2314
2399
  display: block;
2315
2400
  width: 1em;
2316
2401
  height: 1em;
2317
- fill: var(--color--ink-subtle);
2402
+ color: var(--color--ink-subtle);
2318
2403
  }
2319
2404
  .InsertGap:is([data-near],
2320
2405
  :hover,
@@ -2328,7 +2413,7 @@ button.EmptySlot {
2328
2413
  background-color: var(--color--primary-soft--surface);
2329
2414
 
2330
2415
  svg {
2331
- fill: var(--color--primary-soft--ink);
2416
+ color: var(--color--primary-soft--ink);
2332
2417
  }
2333
2418
  }
2334
2419
  .InsertGap__bar:focus-visible & {
@@ -2381,10 +2466,19 @@ button.EmptySlot {
2381
2466
  --InsertGap-on: 1;
2382
2467
  }
2383
2468
  }
2469
+ /* A key has no spaces, thus a long key does not wrap: it ends with an
2470
+ ellipsis at the edge of its place. "clip" does not make a scroll
2471
+ container, thus the key stays on the baseline of the text around it. */
2384
2472
  .ApiKey {
2473
+ display: inline-block;
2474
+ min-width: 0;
2475
+ max-width: 100%;
2476
+ overflow: clip;
2477
+ text-overflow: ellipsis;
2385
2478
  font-family: var(--monospaced-font-family);
2386
2479
  font-size: var(--font-size-xs);
2387
2480
  color: var(--color--ink-subtle);
2481
+ white-space: nowrap;
2388
2482
  }
2389
2483
  .form {
2390
2484
  fieldset {
@@ -2430,7 +2524,7 @@ button.EmptySlot {
2430
2524
 
2431
2525
  svg {
2432
2526
  display: block;
2433
- fill: var(--color--ink-subtle);
2527
+ color: var(--color--ink-subtle);
2434
2528
  }
2435
2529
  }
2436
2530
  .form__label__info {
@@ -2466,8 +2560,11 @@ button.EmptySlot {
2466
2560
  between the fields uses it to keep the rhythm of the form. */
2467
2561
  --form-field-gap: var(--spacing-l);
2468
2562
  }
2563
+ /* In a flex row or in a grid, the field is never wider than its place, also
2564
+ when its input holds a long value without spaces */
2469
2565
  .form__field {
2470
2566
  position: relative;
2567
+ min-width: 0;
2471
2568
  margin-bottom: var(--form-field-gap);
2472
2569
  scroll-margin-top: var(--spacing-xxxl);
2473
2570
 
@@ -2642,7 +2739,7 @@ textarea:focus {
2642
2739
  display: inline-block;
2643
2740
  margin-right: 0.5em;
2644
2741
  vertical-align: middle;
2645
- fill: var(--color--ink-link);
2742
+ color: var(--color--ink-link);
2646
2743
  }
2647
2744
  }
2648
2745
  .form__hint__warning {
@@ -2656,7 +2753,7 @@ textarea:focus {
2656
2753
  display: inline-block;
2657
2754
  margin-right: 0.5em;
2658
2755
  vertical-align: middle;
2659
- fill: var(--color--warning-soft--ink);
2756
+ color: var(--color--warning-soft--ink);
2660
2757
  }
2661
2758
  }
2662
2759
  .form__input--large.form__input--large {
@@ -3060,9 +3157,12 @@ textarea:focus {
3060
3157
  .Page__content > :last-child > .Page__group:last-child {
3061
3158
  margin-bottom: 0;
3062
3159
  }
3160
+ /* When the title and the actions do not fit on one line, the actions go
3161
+ under the title. The title never shrinks under them. */
3063
3162
  .Page__group__header {
3064
3163
  display: flex;
3065
- gap: var(--spacing-m);
3164
+ flex-wrap: wrap;
3165
+ gap: var(--spacing-s) var(--spacing-m);
3066
3166
  align-items: center;
3067
3167
  justify-content: space-between;
3068
3168
  padding: var(--spacing-m) var(--Page__group-padding);
@@ -3090,17 +3190,21 @@ textarea:focus {
3090
3190
  }
3091
3191
  }
3092
3192
  .Page__group__title {
3093
- flex: 1;
3193
+ flex: 1 1 auto;
3094
3194
  min-width: 0;
3095
3195
  margin: 0;
3096
3196
  font-size: var(--font-size-l);
3097
3197
  font-weight: var(--font-weight-strong);
3098
3198
  line-height: 1.2;
3199
+ /* A word longer than the line (a German compound) breaks in its box */
3200
+ overflow-wrap: anywhere;
3099
3201
  }
3100
3202
  .Page__group__count {
3101
3203
  margin-left: var(--spacing-s);
3102
3204
  font-weight: var(--font-weight-regular);
3103
3205
  color: var(--color--ink-subtle);
3206
+ /* The title breaks anywhere, but the number stays whole */
3207
+ white-space: nowrap;
3104
3208
  }
3105
3209
  .Page__group__actions {
3106
3210
  display: flex;
@@ -3499,7 +3603,7 @@ button.Toolbar__tab {
3499
3603
  cursor: grab;
3500
3604
 
3501
3605
  svg {
3502
- fill: var(--color--ink-subtle);
3606
+ color: var(--color--ink-subtle);
3503
3607
  }
3504
3608
 
3505
3609
  @media (hover: hover) {
@@ -3794,7 +3898,7 @@ button.Toolbar__tab {
3794
3898
  }
3795
3899
  & .SidebarTree__node__icon svg,
3796
3900
  & .SidebarTree__node__actions .button:not(:hover, :focus-visible) svg {
3797
- fill: var(--color--selected--ink);
3901
+ color: var(--color--selected--ink);
3798
3902
  }
3799
3903
 
3800
3904
  &:hover {
@@ -3812,7 +3916,7 @@ button.Toolbar__tab {
3812
3916
  cursor: inherit;
3813
3917
 
3814
3918
  svg {
3815
- fill: var(--color--ink-subtle);
3919
+ color: var(--color--ink-subtle);
3816
3920
  }
3817
3921
  }
3818
3922
  /* The link or button of the row. Its "::after" covers all the row, thus a
@@ -3925,7 +4029,7 @@ span.SidebarTree__node__toggle {
3925
4029
 
3926
4030
  /* The subtle ink, as every other grip (see .DragHandle) */
3927
4031
  svg {
3928
- fill: var(--color--ink-subtle);
4032
+ color: var(--color--ink-subtle);
3929
4033
  }
3930
4034
  }
3931
4035
  .SidebarTree__node--editing {
@@ -4129,7 +4233,7 @@ span.SidebarTree__node__toggle {
4129
4233
  width: 55%;
4130
4234
  height: 55%;
4131
4235
  margin: auto;
4132
- fill: var(--Avatar-ink);
4236
+ color: var(--Avatar-ink);
4133
4237
  }
4134
4238
  }
4135
4239
  .Avatar__icon--primary {
@@ -4435,9 +4539,11 @@ span.SidebarTree__node__toggle {
4435
4539
  background-color: var(--color--surface-hover);
4436
4540
  }
4437
4541
 
4542
+ /* The hint and the error stay in the column of the label: the switch
4543
+ column is empty under the switch */
4438
4544
  .form__hint,
4439
4545
  .form__error {
4440
- margin-left: 0;
4546
+ margin-inline: 0 calc(var(--switch-width) + var(--switch-gap));
4441
4547
  }
4442
4548
 
4443
4549
  /* The switch makes the row taller than the label, thus the hint needs no
@@ -4455,10 +4561,11 @@ span.SidebarTree__node__toggle {
4455
4561
  }
4456
4562
  .SwitchInput--row {
4457
4563
  position: static;
4458
- gap: var(--spacing-m);
4564
+ gap: var(--switch-gap);
4459
4565
 
4460
4566
  .SwitchInput__label {
4461
4567
  position: static;
4568
+ flex: 1 1 auto;
4462
4569
  min-width: 0;
4463
4570
  margin-left: 0;
4464
4571
  line-height: inherit;
@@ -4478,21 +4585,20 @@ span.SidebarTree__node__toggle {
4478
4585
  .SwitchList :is(.SwitchInput__reason, .form__hint) a {
4479
4586
  position: relative;
4480
4587
  }
4588
+ /* The reason is at the end of the line of the label, because the label
4589
+ grows. When the two do not fit on one line, the reason wraps under the
4590
+ label: the width of the row decides, not the width of the window. */
4591
+ .SwitchInput__text {
4592
+ display: flex;
4593
+ flex: 1;
4594
+ flex-wrap: wrap;
4595
+ column-gap: var(--switch-gap);
4596
+ align-items: baseline;
4597
+ min-width: 0;
4598
+ }
4481
4599
  .SwitchInput__reason {
4482
- flex: none;
4600
+ flex: 0 1 auto;
4483
4601
  color: var(--color--ink-subtle);
4484
- text-align: right;
4485
- }
4486
- /* On a phone, a long reason does not push the label into a thin column */
4487
- @media (max-width: 479px) {
4488
- .SwitchInput--row {
4489
- flex-wrap: wrap;
4490
- }
4491
- .SwitchInput__reason {
4492
- flex: 1 1 100%;
4493
- order: 1;
4494
- text-align: left;
4495
- }
4496
4602
  }
4497
4603
  /* The row also has the "RowList__item" class, so it looks like a row of a
4498
4604
  RowList. The indent of the level is the left padding of the row, so the
@@ -4523,7 +4629,7 @@ span.SidebarTree__node__toggle {
4523
4629
  width: calc(1rem + var(--spacing-m) - var(--row-inset));
4524
4630
 
4525
4631
  .RowList__item--selected & svg {
4526
- fill: var(--color--selected--ink);
4632
+ color: var(--color--selected--ink);
4527
4633
  }
4528
4634
  }
4529
4635
  /* It fills all the column, so the area for a click or a drag is large. The
@@ -4547,7 +4653,7 @@ span.SidebarTree__node__toggle {
4547
4653
  cursor: not-allowed;
4548
4654
 
4549
4655
  svg {
4550
- fill: var(--color--ink-disabled);
4656
+ color: var(--color--ink-disabled);
4551
4657
  }
4552
4658
  }
4553
4659
  /* Without an image, the icon is in line with the first line of the title,
@@ -4606,13 +4712,13 @@ span.SidebarTree__node__toggle {
4606
4712
  height: 0.7em;
4607
4713
  }
4608
4714
  .ItemStatus__dot--published {
4609
- fill: var(--color--status-published--ink);
4715
+ color: var(--color--status-published--ink);
4610
4716
  }
4611
4717
  .ItemStatus__dot--outdated {
4612
- fill: var(--color--status-outdated--ink);
4718
+ color: var(--color--status-outdated--ink);
4613
4719
  }
4614
4720
  .ItemStatus__dot--draft {
4615
- fill: var(--color--status-draft--ink);
4721
+ color: var(--color--status-draft--ink);
4616
4722
  }
4617
4723
  /* See EntityRow.tsx. It has no surface and no hover: the container gives
4618
4724
  them. */
@@ -4677,7 +4783,13 @@ span.SidebarTree__node__toggle {
4677
4783
  white-space: nowrap;
4678
4784
  }
4679
4785
  .EntityRow__title {
4680
- display: flex;
4786
+ /* Each part of the line (the title, a pill, the aside) gets an equal
4787
+ share of the width, and a part that needs less gives the rest to the
4788
+ others. Thus a short title stays whole next to long pills, and no part
4789
+ becomes 0px wide: the long parts end with an ellipsis. */
4790
+ display: grid;
4791
+ grid-auto-columns: minmax(0, max-content);
4792
+ grid-auto-flow: column;
4681
4793
  gap: var(--spacing-s);
4682
4794
  align-items: center;
4683
4795
  min-width: 0;
@@ -4688,8 +4800,6 @@ span.SidebarTree__node__toggle {
4688
4800
  }
4689
4801
  }
4690
4802
  .EntityRow__title__text {
4691
- flex: 0 1 auto;
4692
- min-width: 0;
4693
4803
  overflow: hidden;
4694
4804
  text-overflow: ellipsis;
4695
4805
  white-space: nowrap;
@@ -4701,7 +4811,8 @@ span.SidebarTree__node__toggle {
4701
4811
  white-space: normal;
4702
4812
  }
4703
4813
  .EntityRow__aside {
4704
- flex: none;
4814
+ overflow: hidden;
4815
+ text-overflow: ellipsis;
4705
4816
  font-size: var(--font-size-xs);
4706
4817
  color: var(--color--ink-subtle);
4707
4818
  white-space: nowrap;
@@ -4838,7 +4949,7 @@ span.SidebarTree__node__toggle {
4838
4949
  background-color: var(--color--primary--surface);
4839
4950
  }
4840
4951
  .RowList__handle svg {
4841
- fill: var(--color--selected--ink);
4952
+ color: var(--color--selected--ink);
4842
4953
  }
4843
4954
 
4844
4955
  &:hover,
@@ -4882,7 +4993,7 @@ span.SidebarTree__node__toggle {
4882
4993
  width: 0.7em;
4883
4994
  min-width: 0.7em;
4884
4995
  }
4885
- /* The fill goes on the circle, not on the svg. A Button gives a fill to
4996
+ /* The fill goes on the circle, not on the svg. A Button gives a color to
4886
4997
  each svg in it (the color of its icons), with a stronger selector. */
4887
4998
  .FeedbackDot--success > circle {
4888
4999
  fill: var(--color--fill-success);
@@ -4900,7 +5011,8 @@ span.SidebarTree__node__toggle {
4900
5011
  .ValidityTriangle--current,
4901
5012
  .ValidityTriangle--threat {
4902
5013
  vertical-align: text-top;
4903
- fill: var(--color--fill-danger);
5014
+ /* token-audit-disable-next-line mismatch -- the triangle is a graphic mark, and its color paints its fill */
5015
+ color: var(--color--fill-danger);
4904
5016
  }
4905
5017
  .ValidityTriangle__wrapper {
4906
5018
  display: inline-flex;
@@ -5144,7 +5256,7 @@ span.SidebarTree__node__toggle {
5144
5256
  box-shadow: var(--shadow--floating);
5145
5257
 
5146
5258
  svg {
5147
- fill: var(--color--ink);
5259
+ color: var(--color--ink);
5148
5260
  }
5149
5261
  &:hover,
5150
5262
  &:focus-visible,
@@ -5183,7 +5295,6 @@ span.SidebarTree__node__toggle {
5183
5295
  flex-shrink: 0;
5184
5296
  width: 0.9em;
5185
5297
  height: 0.9em;
5186
- fill: currentColor;
5187
5298
  }
5188
5299
 
5189
5300
  span {
@@ -5406,7 +5517,7 @@ span.SidebarTree__node__toggle {
5406
5517
  cursor: not-allowed;
5407
5518
 
5408
5519
  svg {
5409
- fill: var(--color--ink-disabled);
5520
+ color: var(--color--ink-disabled);
5410
5521
  }
5411
5522
  }
5412
5523
  .Table__header {
@@ -5451,7 +5562,7 @@ span.SidebarTree__node__toggle {
5451
5562
  width: max(10px, 0.75em);
5452
5563
  height: max(10px, 0.75em);
5453
5564
  vertical-align: middle;
5454
- fill: var(--color--ink-subtle);
5565
+ color: var(--color--ink-subtle);
5455
5566
  }
5456
5567
  .Table__header-cell__cell {
5457
5568
  flex: 1;
@@ -5586,7 +5697,7 @@ span.SidebarTree__node__toggle {
5586
5697
  flex: none;
5587
5698
  width: max(10px, 0.75em);
5588
5699
  height: max(10px, 0.75em);
5589
- fill: var(--color--ink-subtle);
5700
+ color: var(--color--ink-subtle);
5590
5701
  }
5591
5702
  .Table__cell--color-transparent {
5592
5703
  opacity: 0;
@@ -5669,7 +5780,7 @@ span.SidebarTree__node__toggle {
5669
5780
  position: relative;
5670
5781
  /* The right padding keeps the place of the chevron, thus the select does
5671
5782
  not change its width on hover */
5672
- padding: var(--spacing-s) calc(var(--spacing-m) + 0.75em) var(--spacing-s)
5783
+ padding: var(--spacing-s) calc(var(--spacing-m) + 1.125em) var(--spacing-s)
5673
5784
  var(--spacing-s);
5674
5785
  margin-right: var(--spacing-l);
5675
5786
  border: 1px solid transparent;
@@ -5711,6 +5822,15 @@ span.SidebarTree__node__toggle {
5711
5822
  }
5712
5823
  }
5713
5824
  }
5825
+ /* The full layout with ten page numbers and the "Show" select needs about
5826
+ 44em. In a narrower toolbar, the pagination shows fewer page numbers and
5827
+ no select (see Toolbar/Pagination.tsx). */
5828
+ @container toolbar-pagination (max-width: 45em) {
5829
+ .Pagination__per-page,
5830
+ .Pagination__button--wide-only {
5831
+ display: none;
5832
+ }
5833
+ }
5714
5834
  /* See InfoList/index.tsx. The list is a description list: the margins of the
5715
5835
  browser go away. */
5716
5836
  .InfoList {
@@ -5784,21 +5904,9 @@ span.SidebarTree__node__toggle {
5784
5904
  }
5785
5905
  /* A value that opens a menu (see TextualTrigger.tsx) is a block, thus
5786
5906
  "text-align" does not move it. The automatic margin puts it at the right,
5787
- as the other values. A long value in the trigger (for example a domain)
5788
- stays on one line with an ellipsis and does not go out of the row. The text clips, not the button
5789
- (the surface of the button is out of its box). */
5907
+ as the other values. */
5790
5908
  .InfoList__row__content .Dropdown__textual-trigger {
5791
- max-width: 100%;
5792
5909
  margin-left: auto;
5793
-
5794
- > span {
5795
- min-width: 0;
5796
- overflow: hidden;
5797
- text-overflow: ellipsis;
5798
- }
5799
- > svg {
5800
- flex: none;
5801
- }
5802
5910
  }
5803
5911
  /* The smart tags of an asset (see UploadSmartTags.tsx): the tags go on
5804
5912
  more lines, at the right as the other values. The title stays at the level
@@ -5820,7 +5928,9 @@ span.SidebarTree__node__toggle {
5820
5928
  padding-right: 8px;
5821
5929
  font-weight: var(--font-weight-regular);
5822
5930
  color: var(--color--ink-subtle);
5823
- white-space: nowrap;
5931
+ /* The title wraps, thus its min-content width is small and the
5932
+ fit-content(70%) column of .InfoList__row can stop it at 70% */
5933
+ overflow-wrap: anywhere;
5824
5934
  }
5825
5935
  /* A value in a row (InfoList.Value and InfoList.User). With "is-editable"
5826
5936
  and ".button--ghost-inline" it is a button. */
@@ -5845,10 +5955,12 @@ span.SidebarTree__node__toggle {
5845
5955
  text-overflow: ellipsis;
5846
5956
  white-space: nowrap;
5847
5957
  }
5848
- /* See SettingsList.tsx */
5958
+ /* See SettingsList.tsx. The layout follows the width of the list, not of
5959
+ the viewport: a list in a narrow column gets the layout of a phone too. */
5849
5960
  .SettingsList {
5850
5961
  padding: 0;
5851
5962
  margin: 0;
5963
+ container: settings-list / inline-size;
5852
5964
  list-style: none;
5853
5965
  }
5854
5966
  /* On a narrow page, the value and the action go under the text and stay at
@@ -5890,23 +6002,23 @@ span.SidebarTree__node__toggle {
5890
6002
  text-align: right;
5891
6003
  white-space: nowrap;
5892
6004
  }
6005
+ /* A label longer than the row gets an ellipsis from the button */
5893
6006
  .SettingsList__action {
5894
6007
  flex: none;
6008
+ max-width: 100%;
5895
6009
  }
5896
6010
  /* Without a value, the action goes to the right */
5897
6011
  .SettingsList__text + .SettingsList__action {
5898
6012
  margin-left: auto;
5899
6013
  }
5900
- /* On a phone, the text, the value and the action are one under the other.
5901
- With a value, the action stays at the right of the value. Without a value,
5902
- the text of a ghost button starts on the line of the title. */
5903
- @media (max-width: 479px) {
5904
- .SettingsList__row {
5905
- display: grid;
5906
- grid-template-columns: minmax(0, 1fr) auto;
5907
- }
6014
+ /* In a narrow list, the text is on a line of its own. The value is at the
6015
+ left, and the action at the right of the value, or under it when the two
6016
+ do not fit. Without a value, the text of a ghost button starts on the
6017
+ line of the title. Under 480px, the text, the value and the action do
6018
+ not fit on one line. */
6019
+ @container settings-list (max-width: 479px) {
5908
6020
  .SettingsList__text {
5909
- grid-column: 1 / -1;
6021
+ flex-basis: 100%;
5910
6022
  }
5911
6023
  .SettingsList__value {
5912
6024
  margin-left: 0;
@@ -5914,13 +6026,16 @@ span.SidebarTree__node__toggle {
5914
6026
  overflow-wrap: anywhere;
5915
6027
  white-space: normal;
5916
6028
  }
6029
+ .SettingsList__value + .SettingsList__action {
6030
+ margin-left: auto;
6031
+ }
5917
6032
  .SettingsList__text + .SettingsList__action {
5918
- grid-column: 1;
5919
- justify-self: start;
5920
6033
  margin-left: 0;
5921
6034
 
6035
+ /* A negative margin makes the action narrower than the button, and the
6036
+ label gets an ellipsis. The translate moves only the picture. */
5922
6037
  > :is(.button--ghost, .button--ghost-alert) {
5923
- margin-left: calc(-1 * var(--button-pad-x));
6038
+ translate: calc(-1 * var(--button-pad-x));
5924
6039
  }
5925
6040
  }
5926
6041
  }
@@ -5983,6 +6098,10 @@ span.SidebarTree__node__toggle {
5983
6098
  display: flex;
5984
6099
  align-items: stretch;
5985
6100
  width: fit-content;
6101
+ /* Long labels (a translation) shrink the options, not the container: the
6102
+ control stays in its container, also as a flex item */
6103
+ min-width: 0;
6104
+ max-width: 100%;
5986
6105
  font-size: var(--font-size-m);
5987
6106
  }
5988
6107
  .SegmentedControl__button {
@@ -5990,6 +6109,7 @@ span.SidebarTree__node__toggle {
5990
6109
  gap: 0.5em;
5991
6110
  align-items: center;
5992
6111
  justify-content: center;
6112
+ min-width: 0;
5993
6113
  /* The size class sets the variables (see _button.css). The fallbacks are
5994
6114
  the values of the plain ".button" ("regular" and "large"). */
5995
6115
  padding: var(--button-pad-y, 0.7em) var(--button-pad-x, 1em);
@@ -6004,9 +6124,9 @@ span.SidebarTree__node__toggle {
6004
6124
  transition: background-color 0.2s var(--material-ease);
6005
6125
 
6006
6126
  svg {
6127
+ flex: none;
6007
6128
  width: 1em;
6008
6129
  height: 1em;
6009
- fill: currentColor;
6010
6130
  }
6011
6131
  &:hover:not(:disabled),
6012
6132
  &:focus-visible {
@@ -6024,15 +6144,25 @@ span.SidebarTree__node__toggle {
6024
6144
  opacity: var(--disabled-opacity);
6025
6145
  }
6026
6146
  }
6147
+ /* The accessible name of the option keeps the full label */
6148
+ .SegmentedControl__label {
6149
+ overflow: hidden;
6150
+ text-overflow: ellipsis;
6151
+ }
6152
+ /* Each option starts from the width of its label and gets an equal part of
6153
+ the free space. With "flex: 1" the options are equal, thus a long label
6154
+ ends in "…" in a container as wide as the sum of the options (a dropdown
6155
+ menu), and a short label gets a wide empty box. */
6027
6156
  .SegmentedControl--fill {
6028
6157
  width: auto;
6029
6158
 
6030
6159
  .SegmentedControl__button {
6031
- flex: 1;
6160
+ flex: auto;
6032
6161
  }
6033
6162
  }
6034
6163
  /* An option with only an icon is a square, as ".button--icon-only" */
6035
6164
  .SegmentedControl--icon-only .SegmentedControl__button {
6165
+ flex-shrink: 0;
6036
6166
  width: calc(1lh + 2 * var(--button-pad-y, 0.7em));
6037
6167
  padding-inline: 0;
6038
6168
  }
@@ -6053,6 +6183,10 @@ span.SidebarTree__node__toggle {
6053
6183
  .SelectInput {
6054
6184
  --SelectInput-value-margin: 2px;
6055
6185
  --SelectInput-indicator-padding: 8px;
6186
+
6187
+ /* In a flex row or in a grid, the select is never wider than its place: a
6188
+ long value or chip ends with an ellipsis, and the indicators stay */
6189
+ min-width: 0;
6056
6190
  }
6057
6191
  .SelectInput--autosize {
6058
6192
  display: flex;
@@ -6186,7 +6320,6 @@ span.SidebarTree__node__toggle {
6186
6320
  display: block;
6187
6321
  width: max(13px, 1em);
6188
6322
  height: max(13px, 1em);
6189
- fill: currentColor;
6190
6323
  }
6191
6324
 
6192
6325
  /* The chip of a value of a multiple select. The wrapper (see
@@ -6327,7 +6460,7 @@ span.SidebarTree__node__toggle {
6327
6460
 
6328
6461
  svg {
6329
6462
  font-size: 14px;
6330
- fill: var(--color--ink-subtle);
6463
+ color: var(--color--ink-subtle);
6331
6464
  }
6332
6465
  }
6333
6466
  .SelectInput__menu-action__label {
@@ -6343,7 +6476,7 @@ span.SidebarTree__node__toggle {
6343
6476
 
6344
6477
  svg {
6345
6478
  font-size: 12px;
6346
- fill: var(--color--ink-subtle);
6479
+ color: var(--color--ink-subtle);
6347
6480
  }
6348
6481
  }
6349
6482
  /* It is the title of the second list. */
@@ -6357,6 +6490,9 @@ span.SidebarTree__node__toggle {
6357
6490
  this file. */
6358
6491
  .Dropdown {
6359
6492
  position: relative;
6493
+ /* A parent that is as wide as its content (a column with "align-items:
6494
+ flex-start") can otherwise give the trigger the full width of its label */
6495
+ max-width: 100%;
6360
6496
  }
6361
6497
  .Dropdown__spacer {
6362
6498
  position: absolute;
@@ -6369,18 +6505,24 @@ span.SidebarTree__node__toggle {
6369
6505
  align-items: center;
6370
6506
  width: 100%;
6371
6507
  width: auto;
6508
+ max-width: 100%;
6372
6509
  padding: 0;
6373
6510
  white-space: nowrap;
6374
6511
 
6512
+ /* A long value gets an ellipsis, and the chevron always shows */
6375
6513
  > span {
6376
6514
  position: relative;
6377
6515
  top: 0.06em;
6516
+ min-width: 0;
6517
+ overflow: hidden;
6518
+ text-overflow: ellipsis;
6378
6519
  }
6379
6520
  svg {
6380
6521
  display: inline-block;
6522
+ flex: none;
6381
6523
  line-height: 0.6;
6382
6524
  vertical-align: middle;
6383
- fill: var(--color--ink-subtle);
6525
+ color: var(--color--ink-subtle);
6384
6526
  }
6385
6527
  }
6386
6528
 
@@ -6544,7 +6686,6 @@ span.SidebarTree__node__toggle {
6544
6686
  > svg {
6545
6687
  flex: none;
6546
6688
  font-size: 12px;
6547
- fill: currentColor;
6548
6689
  }
6549
6690
 
6550
6691
  /* The line separates the stuck title from the options that scroll below
@@ -6624,8 +6765,8 @@ span.SidebarTree__node__toggle {
6624
6765
  top: 50%;
6625
6766
  left: 12px;
6626
6767
  font-size: 15px;
6768
+ color: var(--color--ink-subtle);
6627
6769
  pointer-events: none;
6628
- fill: var(--color--ink-subtle);
6629
6770
  transform: translateY(-50%);
6630
6771
  }
6631
6772
  /* Two classes, so this rule is stronger than the global rules of the text
@@ -6688,7 +6829,7 @@ span.SidebarTree__node__toggle {
6688
6829
  color: var(--color--ink-danger);
6689
6830
 
6690
6831
  .Dropdown__menu__option__content > svg {
6691
- fill: currentColor;
6832
+ color: inherit;
6692
6833
  }
6693
6834
  }
6694
6835
  &.is-dangerous.is-hover,
@@ -6705,7 +6846,7 @@ span.SidebarTree__node__toggle {
6705
6846
  top: 50%;
6706
6847
  /* Puts the 14px grip at the center of the gutter */
6707
6848
  left: calc((var(--Dropdown-gutter) - 14px) / 2);
6708
- fill: var(--color--ink-subtle);
6849
+ color: var(--color--ink-subtle);
6709
6850
  transform: translateY(-50%);
6710
6851
 
6711
6852
  @media (hover: hover) {
@@ -6740,7 +6881,6 @@ span.SidebarTree__node__toggle {
6740
6881
 
6741
6882
  svg {
6742
6883
  font-size: 12px;
6743
- fill: currentColor;
6744
6884
  }
6745
6885
  }
6746
6886
  .Dropdown__menu__option__chevron {
@@ -6752,7 +6892,7 @@ span.SidebarTree__node__toggle {
6752
6892
 
6753
6893
  svg {
6754
6894
  font-size: 12px;
6755
- fill: var(--color--ink-subtle);
6895
+ color: var(--color--ink-subtle);
6756
6896
  }
6757
6897
  }
6758
6898
  .Dropdown__menu__option__validity_icon {
@@ -6776,19 +6916,14 @@ span.SidebarTree__node__toggle {
6776
6916
  flex: none;
6777
6917
  font-size: 16px;
6778
6918
  vertical-align: middle;
6779
- fill: var(--color--ink-subtle);
6919
+ color: var(--color--ink-subtle);
6780
6920
  }
6781
6921
  /* Plugin-injected actions render their icon through .PluginIcon; normalize it
6782
- to match native option icons (muted fill, sizing and spacing). */
6922
+ to match native option icons (muted color, sizing and spacing). */
6783
6923
  .PluginIcon {
6784
6924
  margin-right: 0;
6785
6925
  font-size: 16px;
6786
6926
  }
6787
- /* The rule of _PluginIcon.css (fill: currentColor) comes later in the
6788
- styles: the two classes make this rule stronger */
6789
- > .PluginIcon.PluginIcon--svg {
6790
- fill: var(--color--ink-subtle);
6791
- }
6792
6927
  /* At a 16px font size, the emoji glyph fills the box as much as an SVG
6793
6928
  icon */
6794
6929
  > .ItemTypeEmoji,
@@ -6854,7 +6989,7 @@ span.SidebarTree__node__toggle {
6854
6989
  border-radius: var(--radius-s);
6855
6990
 
6856
6991
  svg {
6857
- fill: var(--color--ink-subtle);
6992
+ color: var(--color--ink-subtle);
6858
6993
  }
6859
6994
  }
6860
6995
  /* The button is a square as tall as the option. The negative margin takes
@@ -6878,16 +7013,16 @@ button.Dropdown__menu__option__icon {
6878
7013
  background-color: var(--color--surface-raised-active);
6879
7014
 
6880
7015
  svg {
6881
- fill: var(--color--ink);
7016
+ color: var(--color--ink);
6882
7017
  }
6883
7018
  }
6884
7019
  }
6885
7020
  .Dropdown__menu__option__icon--delete svg {
6886
- fill: var(--color--danger-soft--ink);
7021
+ color: var(--color--danger-soft--ink);
6887
7022
  }
6888
7023
  button.Dropdown__menu__option__icon--delete:hover svg,
6889
7024
  button.Dropdown__menu__option__icon--delete:focus-visible svg {
6890
- fill: var(--color--danger-soft--ink);
7025
+ color: var(--color--danger-soft--ink);
6891
7026
  }
6892
7027
  .Dropdown__menu__separator {
6893
7028
  height: 1px;
@@ -7145,7 +7280,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7145
7280
  background: var(--color--surface-muted);
7146
7281
 
7147
7282
  & .Callout__icon svg {
7148
- fill: var(--color--ink-subtle);
7283
+ color: var(--color--ink-subtle);
7149
7284
  }
7150
7285
  }
7151
7286
 
@@ -7156,7 +7291,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7156
7291
  background: var(--color--success-soft--surface);
7157
7292
 
7158
7293
  & .Callout__icon svg {
7159
- fill: var(--color--success-soft--ink);
7294
+ color: var(--color--success-soft--ink);
7160
7295
  }
7161
7296
  }
7162
7297
 
@@ -7165,7 +7300,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7165
7300
  background: var(--color--warning-soft--surface);
7166
7301
 
7167
7302
  & .Callout__icon svg {
7168
- fill: var(--color--warning-soft--ink);
7303
+ color: var(--color--warning-soft--ink);
7169
7304
  }
7170
7305
  }
7171
7306
 
@@ -7174,7 +7309,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7174
7309
  background: var(--color--danger-soft--surface);
7175
7310
 
7176
7311
  & .Callout__icon svg {
7177
- fill: var(--color--danger-soft--ink);
7312
+ color: var(--color--danger-soft--ink);
7178
7313
  }
7179
7314
  }
7180
7315
  .SidebarPanel {
@@ -7269,7 +7404,9 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7269
7404
  flex-direction: row;
7270
7405
  gap: var(--spacing-m);
7271
7406
  align-items: center;
7272
- justify-content: center;
7407
+ /* Content that is too wide starts at the left edge: an overflow past the
7408
+ left edge cannot scroll into view. */
7409
+ justify-content: safe center;
7273
7410
  min-width: 0;
7274
7411
  min-height: var(--Toolbar-height);
7275
7412
  > *:last-child {
@@ -7401,14 +7538,14 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7401
7538
  & svg {
7402
7539
  width: 12px;
7403
7540
  height: 12px;
7404
- fill: var(--color--ink-subtle);
7541
+ color: var(--color--ink-subtle);
7405
7542
  }
7406
7543
  &:hover,
7407
7544
  &.is-open {
7408
7545
  background: var(--color--surface-hover);
7409
7546
 
7410
7547
  & svg {
7411
- fill: var(--color--ink);
7548
+ color: var(--color--ink);
7412
7549
  }
7413
7550
  }
7414
7551
  }
@@ -7455,8 +7592,12 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7455
7592
  white-space: nowrap;
7456
7593
  }
7457
7594
  /* A subtitle that opens a menu (see TextualDropdown.tsx): it must not clip
7458
- the hover surface of its trigger */
7595
+ the hover surface of its trigger. It shrinks with the title, and its
7596
+ trigger gets the ellipsis, thus a long value does not push the title to
7597
+ 0px. */
7459
7598
  .Toolbar__subtitle--dropdown {
7599
+ flex-shrink: 1;
7600
+ min-width: 0;
7460
7601
  overflow: visible;
7461
7602
  }
7462
7603
  /* A long name of a saved filter shows an ellipsis, thus the title keeps its
@@ -7474,13 +7615,60 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7474
7615
  .Toolbar__space {
7475
7616
  flex: 1;
7476
7617
  }
7618
+ /* It takes the free width of the toolbar, thus it is the container of the
7619
+ narrow layout of the pagination (see "_Pagination.css"). After a title,
7620
+ the pages go at the right end, as after a Toolbar.Space. */
7621
+ .Toolbar__pagination {
7622
+ display: flex;
7623
+ flex: 1;
7624
+ gap: var(--spacing-m);
7625
+ align-items: center;
7626
+ justify-content: safe center;
7627
+ min-width: 0;
7628
+ container: toolbar-pagination / inline-size;
7629
+
7630
+ &:not(:only-child) {
7631
+ justify-content: safe flex-end;
7632
+ }
7633
+ }
7477
7634
  .Toolbar__fill {
7478
7635
  display: flex;
7479
7636
  flex: 1;
7480
7637
  }
7638
+ /* The widths of the two edge fades of .Toolbar__tabs. They must be
7639
+ registered: an animation cannot interpolate a custom property that is not
7640
+ registered. */
7641
+ @property --Toolbar__tabs-fade-start {
7642
+ syntax: "<length>";
7643
+ inherits: false;
7644
+ initial-value: 0px;
7645
+ }
7646
+ @property --Toolbar__tabs-fade-end {
7647
+ syntax: "<length>";
7648
+ inherits: false;
7649
+ initial-value: 0px;
7650
+ }
7651
+ @keyframes Toolbar__tabs-fade-start {
7652
+ to {
7653
+ --Toolbar__tabs-fade-start: var(--Toolbar__tabs-fade);
7654
+ }
7655
+ }
7656
+ @keyframes Toolbar__tabs-fade-end {
7657
+ from {
7658
+ --Toolbar__tabs-fade-end: var(--Toolbar__tabs-fade);
7659
+ }
7660
+ }
7481
7661
  /* It fills the full height of the toolbar, thus the line under the active tab
7482
- touches the bottom border of the toolbar. */
7662
+ touches the bottom border of the toolbar.
7663
+
7664
+ The scrollbar is hidden, thus an edge fades when tabs are hidden past it.
7665
+ The fade is a mask, thus it works on any background. Each fade follows
7666
+ the scroll of the strip: it grows in the first and the last
7667
+ --Toolbar__tabs-fade of the scroll. A strip that does not scroll has no
7668
+ active timeline, thus no fade. */
7483
7669
  .Toolbar__tabs {
7670
+ --Toolbar__tabs-fade: var(--spacing-xl);
7671
+
7484
7672
  display: flex;
7485
7673
  flex: 0 1 auto;
7486
7674
  align-self: stretch;
@@ -7489,6 +7677,20 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7489
7677
  overflow-x: auto;
7490
7678
  white-space: nowrap;
7491
7679
  scrollbar-width: none;
7680
+ mask-image: linear-gradient(
7681
+ to right,
7682
+ transparent,
7683
+ #000 var(--Toolbar__tabs-fade-start),
7684
+ #000 calc(100% - var(--Toolbar__tabs-fade-end)),
7685
+ transparent
7686
+ );
7687
+ animation:
7688
+ Toolbar__tabs-fade-start linear both,
7689
+ Toolbar__tabs-fade-end linear both;
7690
+ animation-timeline: scroll(self inline), scroll(self inline);
7691
+ animation-range:
7692
+ 0 var(--Toolbar__tabs-fade),
7693
+ calc(100% - var(--Toolbar__tabs-fade)) 100%;
7492
7694
  -webkit-overflow-scrolling: touch;
7493
7695
  -ms-overflow-style: -ms-autohiding-scrollbar;
7494
7696
 
@@ -7540,10 +7742,13 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7540
7742
  background-color: var(--color--primary--surface);
7541
7743
  }
7542
7744
  }
7745
+ /* A button element is as wide as its content, also as a flex box, thus it
7746
+ needs "max-width" to stay in the title. */
7543
7747
  .Toolbar__title--dropdown {
7544
7748
  display: flex;
7545
7749
  align-items: center;
7546
7750
  min-width: 0;
7751
+ max-width: 100%;
7547
7752
  padding: 0;
7548
7753
  font: inherit;
7549
7754
  color: inherit;
@@ -7604,7 +7809,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7604
7809
  font-size: 1.1em;
7605
7810
 
7606
7811
  svg {
7607
- fill: var(--color--ink);
7812
+ color: var(--color--ink);
7608
7813
  }
7609
7814
  }
7610
7815
  /* The filter has no field look, so the disabled state only dims it. The
@@ -7619,7 +7824,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7619
7824
  }
7620
7825
  }
7621
7826
  .Toolbar__filter__icon--disabled svg {
7622
- fill: var(--color--ink-disabled);
7827
+ color: var(--color--ink-disabled);
7623
7828
  }
7624
7829
 
7625
7830
  /* The menu of the title. Its button has no surface until hover, thus the
@@ -7764,11 +7969,11 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7764
7969
  }
7765
7970
  svg:first-child {
7766
7971
  margin-right: 10px;
7767
- fill: var(--color--ink);
7972
+ color: var(--color--ink);
7768
7973
  }
7769
7974
  svg:last-child {
7770
7975
  margin-left: 10px;
7771
- fill: var(--color--ink-subtle);
7976
+ color: var(--color--ink-subtle);
7772
7977
  }
7773
7978
  svg:first-child:last-child {
7774
7979
  margin-right: 0;
@@ -7793,7 +7998,6 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7793
7998
  }
7794
7999
  svg {
7795
8000
  display: block;
7796
- fill: currentColor;
7797
8001
  }
7798
8002
  &:is(:not(:where(:disabled, .is-disabled, [aria-disabled='true']))):hover {
7799
8003
  background: var(--color--surface-hover);
@@ -7858,7 +8062,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7858
8062
  > svg {
7859
8063
  flex: none;
7860
8064
  font-size: 16px;
7861
- fill: var(--color--ink-subtle);
8065
+ color: var(--color--ink-subtle);
7862
8066
  }
7863
8067
  }
7864
8068
  .EntitySummary__image {
@@ -7997,11 +8201,13 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7997
8201
  svg {
7998
8202
  width: 2em;
7999
8203
  height: 2em;
8000
- fill: currentColor;
8001
8204
  }
8002
8205
  }
8206
+ /* The text can wrap a long word, thus the option is never wider than the
8207
+ group */
8003
8208
  .RadioGroupInput__body {
8004
8209
  align-self: center;
8210
+ min-width: 0;
8005
8211
  margin-left: calc(1.5 * var(--space-unit));
8006
8212
  }
8007
8213
  .RadioGroupInput__label {
@@ -8136,7 +8342,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
8136
8342
  flex-shrink: 0;
8137
8343
  width: 1rem;
8138
8344
  height: 1rem;
8139
- fill: var(--color--ink-subtle);
8345
+ color: var(--color--ink-subtle);
8140
8346
  }
8141
8347
  }
8142
8348
  /* The padding is the inset above the first group and below the last group:
@@ -8162,7 +8368,7 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
8162
8368
  .SettingsMenu__end--new-tab svg {
8163
8369
  width: 0.75em;
8164
8370
  height: 0.75em;
8165
- fill: var(--color--ink-subtle);
8371
+ color: var(--color--ink-subtle);
8166
8372
  }
8167
8373
  .IdText {
8168
8374
  font-family: var(--monospaced-font-family);
@@ -8507,7 +8713,6 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
8507
8713
 
8508
8714
  svg {
8509
8715
  display: block;
8510
- fill: currentColor;
8511
8716
  }
8512
8717
  .SplitViewSash__content:hover & {
8513
8718
  color: var(--color--ink);
@@ -8575,7 +8780,6 @@ body.SplitView--disable-select {
8575
8780
 
8576
8781
  svg {
8577
8782
  display: block;
8578
- fill: currentColor;
8579
8783
  }
8580
8784
  }
8581
8785
 
@@ -8733,7 +8937,6 @@ body.SplitView--disable-select {
8733
8937
  }
8734
8938
  > svg {
8735
8939
  flex: none;
8736
- fill: currentColor;
8737
8940
  }
8738
8941
  > .ItemTypeEmoji {
8739
8942
  flex: none;
@@ -8877,20 +9080,19 @@ body.SplitView--disable-select {
8877
9080
  }
8878
9081
 
8879
9082
  /* The area of the overview of an empty section. It has the largest width of
8880
- the split, and the line at its right edge as the detail. */
9083
+ the split. It has no line at its right edge, because no content ends
9084
+ there. */
8881
9085
  .ListDetailOverview {
8882
9086
  position: absolute;
8883
9087
  inset: 0;
8884
9088
  right: auto;
8885
9089
  box-sizing: border-box;
8886
9090
  width: 100%;
8887
- border-right: 1px solid var(--color--border);
8888
9091
  }
8889
9092
 
8890
9093
  /* The detail at the right of the list. The split gives its width (the user
8891
9094
  resizes it with the sash on its right border); more space at its right
8892
- stays empty. The line shows where the detail ends, also without an open
8893
- row. */
9095
+ stays empty. Without an open row, it holds a blank slate. */
8894
9096
  .ListDetailSplit__detail {
8895
9097
  position: relative;
8896
9098
  box-sizing: border-box;
@@ -8903,20 +9105,24 @@ body.SplitView--disable-select {
8903
9105
  border-right: 0;
8904
9106
  }
8905
9107
  }
9108
+ /* Without an open row, no content ends at the right edge of the detail */
9109
+ .ListDetailSplit__detail--empty {
9110
+ border-right: 0;
9111
+ }
8906
9112
  /* The sash on the right border of the detail goes out of the detail. When
8907
9113
  the detail fills its pane, the pane does not scroll for it. */
8908
9114
  .SplitViewPane:has(> .ListDetailSplit__detail) {
8909
9115
  overflow-x: clip;
8910
9116
  }
8911
9117
 
8912
- /* On a small viewport, the list uses all the width and the detail goes over
8913
- it */
9118
+ /* With the "over" placement, the list uses all the width and the detail goes
9119
+ over it. The split gives the width of a detail that the user resizes. */
8914
9120
  .ListDetailSplit__list {
8915
9121
  position: relative;
8916
9122
  flex: 1 1 auto;
8917
9123
  min-width: 0;
8918
9124
  }
8919
- .ListDetailSplit--overlay .ListDetailSplit__detail {
9125
+ .ListDetailSplit--over .ListDetailSplit__detail {
8920
9126
  position: absolute;
8921
9127
  top: 0;
8922
9128
  right: 0;