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

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 (252) hide show
  1. package/README.md +3 -2
  2. package/dist/DateInput.d.ts +2 -0
  3. package/dist/DateInput.js +2 -0
  4. package/dist/DateTimeInput.d.ts +2 -0
  5. package/dist/DateTimeInput.js +2 -0
  6. package/dist/DateTimeRangeInput.d.ts +2 -0
  7. package/dist/DateTimeRangeInput.js +2 -0
  8. package/dist/FieldTypeAvatar.d.ts +2 -0
  9. package/dist/FieldTypeAvatar.js +2 -0
  10. package/dist/FieldTypeName.d.ts +2 -0
  11. package/dist/FieldTypeName.js +2 -0
  12. package/dist/FilterBuilder.d.ts +2 -0
  13. package/dist/FilterBuilder.js +2 -0
  14. package/dist/RecordRow.d.ts +2 -0
  15. package/dist/RecordRow.js +2 -0
  16. package/dist/UploadCard.js +2 -2
  17. package/dist/UploadPreview.d.ts +2 -2
  18. package/dist/UploadPreview.js +1 -1
  19. package/dist/UserRow.d.ts +2 -0
  20. package/dist/UserRow.js +2 -0
  21. package/dist/react-ui/src/Canvas.d.ts +7 -1
  22. package/dist/react-ui/src/Canvas.js +26 -4
  23. package/dist/react-ui/src/ctxAnswer.js +21 -0
  24. package/dist/react-ui/src/ctxDateSettings.js +7 -5
  25. package/dist/react-ui/src/ctxRecordPresentation.js +34 -0
  26. package/dist/react-ui/src/ctxUploads.js +23 -0
  27. package/dist/styles.css +634 -45
  28. package/dist/ui-public/icons/index.js +285 -280
  29. package/dist/ui-public/icons/lucide/braces.js +22 -0
  30. package/dist/ui-public/icons/lucide/hash.js +47 -0
  31. package/dist/ui-public/icons/lucide/letter-text.js +28 -0
  32. package/dist/ui-public/icons/lucide/rows-3.js +32 -0
  33. package/dist/ui-public/icons/lucide/toggle-right.js +32 -0
  34. package/dist/ui-public/locales/en.js +74 -5
  35. package/dist/ui-public/src/Message.d.ts +3 -4
  36. package/dist/ui-public/src/UiTextKey.d.ts +1 -1
  37. package/dist/ui-public/src/actions/Actions/ActionTooltip.js +1 -1
  38. package/dist/ui-public/src/actions/Actions/registry.d.ts +2 -2
  39. package/dist/ui-public/src/actions/Actions/registry.js +2 -2
  40. package/dist/ui-public/src/actions/Button.d.ts +10 -10
  41. package/dist/ui-public/src/actions/Button.js +1 -1
  42. package/dist/ui-public/src/actions/Dropdown/Menu.d.ts +2 -2
  43. package/dist/ui-public/src/actions/Dropdown/Option.d.ts +7 -7
  44. package/dist/ui-public/src/actions/Dropdown/index.d.ts +1 -1
  45. package/dist/ui-public/src/actions/Dropdown/triggers/ButtonTrigger.d.ts +5 -5
  46. package/dist/ui-public/src/actions/Dropdown/triggers/DropdownTriggerButton.d.ts +2 -2
  47. package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.d.ts +6 -6
  48. package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.js +1 -1
  49. package/dist/ui-public/src/actions/EditorToolbar/Button.d.ts +1 -1
  50. package/dist/ui-public/src/actions/MultipleSelectionActionBar.d.ts +1 -1
  51. package/dist/ui-public/src/actions/SplitButton/Caret.js +2 -2
  52. package/dist/ui-public/src/actions/SplitButton/Halves.js +1 -1
  53. package/dist/ui-public/src/actions/SplitButton/index.d.ts +3 -3
  54. package/dist/ui-public/src/actions/disabledReason.d.ts +4 -4
  55. package/dist/ui-public/src/content/Avatar.d.ts +3 -3
  56. package/dist/ui-public/src/content/Avatar.js +2 -2
  57. package/dist/ui-public/src/content/CodeSnippet.d.ts +1 -1
  58. package/dist/ui-public/src/content/CopyableValue.d.ts +1 -1
  59. package/dist/ui-public/src/content/EnvironmentPill.d.ts +1 -1
  60. package/dist/ui-public/src/content/EnvironmentPill.js +1 -1
  61. package/dist/ui-public/src/content/FieldTypeAvatar.d.ts +22 -0
  62. package/dist/ui-public/src/content/FieldTypeAvatar.js +35 -0
  63. package/dist/ui-public/src/content/FieldTypeName.d.ts +19 -0
  64. package/dist/ui-public/src/content/FieldTypeName.js +25 -0
  65. package/dist/ui-public/src/content/IconAvatar.d.ts +3 -2
  66. package/dist/ui-public/src/content/ItemStatus.d.ts +1 -1
  67. package/dist/ui-public/src/content/Pill.d.ts +1 -1
  68. package/dist/ui-public/src/content/SmartDate.d.ts +1 -1
  69. package/dist/ui-public/src/content/UploadPreview/asset.js +200 -0
  70. package/dist/ui-public/src/content/UploadPreview/audio.js +120 -0
  71. package/dist/ui-public/src/content/{UploadPreview.d.ts → UploadPreview/box.d.ts} +10 -10
  72. package/dist/ui-public/src/content/{UploadPreview.js → UploadPreview/box.js} +7 -7
  73. package/dist/ui-public/src/content/{uploadPreviewFit.d.ts → UploadPreview/fit.d.ts} +2 -2
  74. package/dist/ui-public/src/content/{uploadPreviewFit.js → UploadPreview/fit.js} +3 -3
  75. package/dist/ui-public/src/content/UploadPreview/index.d.ts +61 -0
  76. package/dist/ui-public/src/content/UploadPreview/index.js +36 -0
  77. package/dist/ui-public/src/content/UploadPreview/presentation.js +63 -0
  78. package/dist/ui-public/src/content/UploadPreview/thumbhash.js +91 -0
  79. package/dist/ui-public/src/content/UploadPreview/upload.d.ts +104 -0
  80. package/dist/ui-public/src/content/UploadPreview/upload.js +112 -0
  81. package/dist/ui-public/src/content/UsageMeter.d.ts +1 -1
  82. package/dist/ui-public/src/content/ValidityTriangles.d.ts +1 -1
  83. package/dist/ui-public/src/feedback/BlankSlate.d.ts +5 -5
  84. package/dist/ui-public/src/feedback/Callout.d.ts +5 -5
  85. package/dist/ui-public/src/feedback/Callout.js +1 -1
  86. package/dist/ui-public/src/feedback/ProgressBar.d.ts +4 -4
  87. package/dist/ui-public/src/feedback/Spinner.d.ts +6 -6
  88. package/dist/ui-public/src/feedback/Spinner.js +1 -1
  89. package/dist/ui-public/src/form/DateInput.d.ts +13 -0
  90. package/dist/ui-public/src/form/DateInput.js +16 -0
  91. package/dist/ui-public/src/form/DateTimeInput/Base.d.ts +89 -0
  92. package/dist/ui-public/src/form/DateTimeInput/Base.js +330 -0
  93. package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.d.ts +29 -0
  94. package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.js +195 -0
  95. package/dist/ui-public/src/form/DateTimeInput/dateText.js +38 -0
  96. package/dist/ui-public/src/form/DateTimeInput/index.d.ts +10 -0
  97. package/dist/ui-public/src/form/DateTimeInput/index.js +18 -0
  98. package/dist/ui-public/src/form/DateTimeInput/value.js +31 -0
  99. package/dist/ui-public/src/form/DateTimeRangeInput/Panel.js +167 -0
  100. package/dist/ui-public/src/form/DateTimeRangeInput/index.d.ts +123 -0
  101. package/dist/ui-public/src/form/DateTimeRangeInput/index.js +186 -0
  102. package/dist/ui-public/src/form/DateTimeRangeInput/rangeLabel.js +46 -0
  103. package/dist/ui-public/src/form/FieldHint.d.ts +2 -2
  104. package/dist/ui-public/src/form/FieldWrapper.d.ts +9 -9
  105. package/dist/ui-public/src/form/FieldWrapper.js +3 -3
  106. package/dist/ui-public/src/form/FilterBuilder/Editor.js +123 -0
  107. package/dist/ui-public/src/form/FilterBuilder/index.d.ts +9 -0
  108. package/dist/ui-public/src/form/FilterBuilder/index.js +294 -0
  109. package/dist/ui-public/src/form/FilterBuilder/types.d.ts +188 -0
  110. package/dist/ui-public/src/form/FilterBuilder/values.js +86 -0
  111. package/dist/ui-public/src/form/InputGroup.d.ts +2 -2
  112. package/dist/ui-public/src/form/InputGroup.js +1 -1
  113. package/dist/ui-public/src/form/KeyValueList.d.ts +1 -1
  114. package/dist/ui-public/src/form/Label.d.ts +2 -2
  115. package/dist/ui-public/src/form/RadioGroupInput.d.ts +2 -2
  116. package/dist/ui-public/src/form/RadioGroupInput.js +1 -1
  117. package/dist/ui-public/src/form/SelectInput/SelectMenu.d.ts +2 -2
  118. package/dist/ui-public/src/form/SelectInput/index.d.ts +3 -3
  119. package/dist/ui-public/src/form/SwitchInput.d.ts +2 -2
  120. package/dist/ui-public/src/form/SwitchList.d.ts +1 -1
  121. package/dist/ui-public/src/form/SwitchList.js +1 -1
  122. package/dist/ui-public/src/form/TableList.d.ts +2 -2
  123. package/dist/ui-public/src/form/TextareaInput.js +1 -1
  124. package/dist/ui-public/src/form/inputProps.d.ts +6 -6
  125. package/dist/ui-public/src/hooks/useAsyncSelectOptions.d.ts +1 -1
  126. package/dist/ui-public/src/hooks/useSmartRowClick.d.ts +1 -1
  127. package/dist/ui-public/src/hooks/useSmartRowClick.js +1 -1
  128. package/dist/ui-public/src/layout/Page/PageGroup.d.ts +2 -2
  129. package/dist/ui-public/src/layout/Page/PageGroup.js +1 -1
  130. package/dist/ui-public/src/layout/Pane/FormHeader.d.ts +1 -1
  131. package/dist/ui-public/src/layout/Pane/FormHeader.js +1 -1
  132. package/dist/ui-public/src/layout/Pane/ListFilter.d.ts +1 -1
  133. package/dist/ui-public/src/layout/Pane/ListPresets.d.ts +1 -1
  134. package/dist/ui-public/src/layout/Pane/PaneHeader.d.ts +1 -1
  135. package/dist/ui-public/src/layout/Pane/index.d.ts +8 -8
  136. package/dist/ui-public/src/layout/Pane/index.js +17 -8
  137. package/dist/ui-public/src/layout/SidebarPanel.d.ts +1 -1
  138. package/dist/ui-public/src/layout/SplitPane/Rail.js +1 -1
  139. package/dist/ui-public/src/layout/SplitPane/index.d.ts +6 -6
  140. package/dist/ui-public/src/layout/SplitPane/index.js +16 -2
  141. package/dist/ui-public/src/layout/Toolbar/AddNewButton.d.ts +2 -2
  142. package/dist/ui-public/src/layout/Toolbar/Help.d.ts +3 -3
  143. package/dist/ui-public/src/layout/Toolbar/Help.js +2 -2
  144. package/dist/ui-public/src/layout/Toolbar/Note.d.ts +1 -1
  145. package/dist/ui-public/src/layout/Toolbar/Note.js +1 -1
  146. package/dist/ui-public/src/layout/Toolbar/Pagination.d.ts +1 -1
  147. package/dist/ui-public/src/layout/Toolbar/Pagination.js +1 -1
  148. package/dist/ui-public/src/layout/Toolbar/PresetsTitle.d.ts +3 -3
  149. package/dist/ui-public/src/layout/Toolbar/PresetsTitle.js +2 -2
  150. package/dist/ui-public/src/layout/Toolbar/PrimaryButton.d.ts +3 -3
  151. package/dist/ui-public/src/layout/Toolbar/Root.d.ts +1 -1
  152. package/dist/ui-public/src/layout/Toolbar/Root.js +4 -1
  153. package/dist/ui-public/src/layout/Toolbar/ToolbarTitleTrigger.js +1 -1
  154. package/dist/ui-public/src/lists/CardList.d.ts +3 -3
  155. package/dist/ui-public/src/lists/EmptySlot.d.ts +1 -1
  156. package/dist/ui-public/src/lists/InfoList/User.d.ts +1 -1
  157. package/dist/ui-public/src/lists/InfoList/Value.d.ts +1 -1
  158. package/dist/ui-public/src/lists/InfoList/Value.js +1 -1
  159. package/dist/ui-public/src/lists/InfoList/index.d.ts +3 -3
  160. package/dist/ui-public/src/lists/InfoList/index.js +1 -1
  161. package/dist/ui-public/src/lists/MediaCard.d.ts +7 -7
  162. package/dist/ui-public/src/lists/RecordRow/Image.d.ts +24 -0
  163. package/dist/ui-public/src/lists/RecordRow/Image.js +22 -0
  164. package/dist/ui-public/src/lists/RecordRow/List.d.ts +26 -0
  165. package/dist/ui-public/src/lists/RecordRow/List.js +30 -0
  166. package/dist/ui-public/src/lists/RecordRow/context.js +31 -0
  167. package/dist/ui-public/src/lists/RecordRow/index.d.ts +94 -0
  168. package/dist/ui-public/src/lists/RecordRow/index.js +122 -0
  169. package/dist/ui-public/src/lists/RecordRow/presentation.js +73 -0
  170. package/dist/ui-public/src/lists/RecordRow/types.d.ts +58 -0
  171. package/dist/ui-public/src/lists/RowList.d.ts +5 -5
  172. package/dist/ui-public/src/lists/SettingsList.d.ts +3 -3
  173. package/dist/ui-public/src/lists/SettingsList.js +2 -2
  174. package/dist/ui-public/src/lists/Table/Row.d.ts +5 -5
  175. package/dist/ui-public/src/lists/Table/Table.d.ts +3 -3
  176. package/dist/ui-public/src/lists/Table/TreeToggle.d.ts +2 -2
  177. package/dist/ui-public/src/lists/Table/TreeToggle.js +5 -4
  178. package/dist/ui-public/src/lists/Table/cells/LinkCell.d.ts +1 -1
  179. package/dist/ui-public/src/lists/TreeRow/Action.d.ts +1 -1
  180. package/dist/ui-public/src/lists/TreeRow/Action.js +1 -1
  181. package/dist/ui-public/src/lists/TreeRow/Link.d.ts +1 -1
  182. package/dist/ui-public/src/lists/TreeRow/Link.js +1 -1
  183. package/dist/ui-public/src/lists/UploadCard.d.ts +66 -3
  184. package/dist/ui-public/src/lists/UploadCard.js +116 -7
  185. package/dist/ui-public/src/lists/UserRow.d.ts +122 -0
  186. package/dist/ui-public/src/lists/UserRow.js +104 -0
  187. package/dist/ui-public/src/lists/dnd/DragHandle.d.ts +2 -2
  188. package/dist/ui-public/src/lists/dnd/SortableList.d.ts +1 -1
  189. package/dist/ui-public/src/lists/dnd/dropTargetClassName.d.ts +1 -1
  190. package/dist/ui-public/src/lists/dnd/tree/SortableTree.d.ts +2 -2
  191. package/dist/ui-public/src/navigation/Chevron.d.ts +4 -4
  192. package/dist/ui-public/src/navigation/Chevron.js +1 -1
  193. package/dist/ui-public/src/navigation/Link.d.ts +5 -5
  194. package/dist/ui-public/src/navigation/Link.js +1 -1
  195. package/dist/ui-public/src/navigation/NavList.d.ts +1 -1
  196. package/dist/ui-public/src/navigation/NavList.js +1 -1
  197. package/dist/ui-public/src/navigation/NavigationProvider.d.ts +1 -1
  198. package/dist/ui-public/src/navigation/SegmentedControl.d.ts +2 -2
  199. package/dist/ui-public/src/navigation/SettingsMenu.d.ts +8 -8
  200. package/dist/ui-public/src/navigation/SettingsMenu.js +1 -1
  201. package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNode.d.ts +4 -4
  202. package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.d.ts +1 -1
  203. package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.js +1 -1
  204. package/dist/ui-public/src/overlays/NewZIndex.d.ts +1 -1
  205. package/dist/ui-public/src/overlays/NewZIndex.js +1 -1
  206. package/dist/ui-public/src/overlays/Popover.d.ts +1 -1
  207. package/dist/ui-public/src/overlays/PortalWrapper.js +1 -1
  208. package/dist/ui-public/src/overlays/useModalClose.js +3 -3
  209. package/dist/ui-public/src/patterns/ListDetail/FloatingDetail.js +2 -2
  210. package/dist/ui-public/src/patterns/ListDetail/Page.d.ts +8 -9
  211. package/dist/ui-public/src/patterns/ListDetail/Page.js +4 -5
  212. package/dist/ui-public/src/patterns/ListDetail/Panel.d.ts +2 -2
  213. package/dist/ui-public/src/patterns/ListDetail/Panel.js +1 -1
  214. package/dist/ui-public/src/patterns/ListDetail/Split.d.ts +9 -10
  215. package/dist/ui-public/src/patterns/ListDetail/Split.js +5 -5
  216. package/dist/ui-public/src/patterns/ListFormPage.d.ts +3 -3
  217. package/dist/ui-public/src/patterns/ListFormPage.js +1 -1
  218. package/dist/ui-public/src/semantic/Heading.d.ts +1 -1
  219. package/dist/ui-public/src/semantic/Heading.js +1 -1
  220. package/dist/ui-public/src/semantic/Image.js +1 -1
  221. package/dist/ui-public/src/semantic/Nav.d.ts +3 -3
  222. package/dist/ui-public/src/semantic/Nav.js +3 -3
  223. package/dist/ui-public/src/semantic/RawButton.d.ts +3 -3
  224. package/dist/ui-public/src/semantic/RawButton.js +1 -1
  225. package/dist/ui-public/src/semantic/Search.d.ts +1 -1
  226. package/dist/ui-public/src/semantic/Search.js +1 -1
  227. package/dist/ui-public/src/utils/fieldTypes.d.ts +29 -0
  228. package/dist/ui-public/src/utils/fieldTypes.js +94 -0
  229. package/dist/ui-public/src/utils/format.d.ts +21 -0
  230. package/dist/ui-public/src/utils/format.js +20 -0
  231. package/dist/ui-public/src/utils/formatDate.d.ts +10 -2
  232. package/dist/ui-public/src/utils/formatDate.js +4 -4
  233. package/dist/ui-public/src/utils/tickBatcher.js +44 -0
  234. package/dist/ui-public/src/utils/timezones.js +277 -0
  235. package/dist/ui-public/src/utils/weekStartForLocale.js +25 -0
  236. package/dist/utils/fieldTypes.d.ts +1 -0
  237. package/dist/utils/fieldTypes.js +2 -0
  238. package/dist/utils/format.d.ts +1 -0
  239. package/dist/utils/format.js +2 -0
  240. package/package.json +2 -2
  241. package/dist/ui-public/icons/custom/fieldgroup-boolean.js +0 -18
  242. package/dist/ui-public/icons/custom/fieldgroup-color.js +0 -18
  243. package/dist/ui-public/icons/custom/fieldgroup-datetime.js +0 -49
  244. package/dist/ui-public/icons/custom/fieldgroup-json.js +0 -18
  245. package/dist/ui-public/icons/custom/fieldgroup-location.js +0 -19
  246. package/dist/ui-public/icons/custom/fieldgroup-media.js +0 -18
  247. package/dist/ui-public/icons/custom/fieldgroup-number.js +0 -18
  248. package/dist/ui-public/icons/custom/fieldgroup-reference.js +0 -18
  249. package/dist/ui-public/icons/custom/fieldgroup-rich_text.js +0 -18
  250. package/dist/ui-public/icons/custom/fieldgroup-seo.js +0 -22
  251. package/dist/ui-public/icons/custom/fieldgroup-structured_text.js +0 -61
  252. package/dist/ui-public/icons/lucide/receipt.js +0 -26
package/dist/styles.css CHANGED
@@ -126,8 +126,6 @@
126
126
  /* Code is a little smaller than the text around it, because the
127
127
  monospaced font looks larger. For inline code and for code blocks. */
128
128
  --monospaced-font-size: 0.9em;
129
- --cursive-font-family:
130
- "Pangolin", "noto-script-fallback", "noto-script-fallback-static", cursive;
131
129
  /* The weight of the text. */
132
130
  --font-weight-regular: 340;
133
131
  /* The weight of titles, labels and words with emphasis. */
@@ -253,8 +251,8 @@
253
251
  :root {
254
252
  --z-index-notifications: 10500;
255
253
  }
256
- /* The plugins use ABC Oracle and Geist Mono, as the cms. Geist, Pangolin
257
- and the noto-script-fallback families do not ship, thus the stacks go to
254
+ /* The plugins use ABC Oracle and Geist Mono, as the cms. Geist and the
255
+ noto-script-fallback families do not ship, thus the stacks go to
258
256
  the system fonts after them. The weights are the ones of
259
257
  ../../ui-public/styles/_css-variables.css. */
260
258
  :root {
@@ -263,7 +261,6 @@
263
261
  --monospaced-font-family:
264
262
  "Geist Mono Variable", "Menlo", "Bitstream Vera Sans Mono", Consolas,
265
263
  Courier, monospace;
266
- --cursive-font-family: cursive;
267
264
  }
268
265
  /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css*/
269
266
 
@@ -2520,7 +2517,9 @@ button.EmptySlot {
2520
2517
  .form__label__icon {
2521
2518
  display: inline-block;
2522
2519
  margin-left: var(--spacing-s);
2523
- vertical-align: text-top;
2520
+ /* The same alignment as the buttons in the label (FieldValidations of the
2521
+ cms), thus the icons are on one line */
2522
+ vertical-align: middle;
2524
2523
 
2525
2524
  svg {
2526
2525
  display: block;
@@ -3145,16 +3144,19 @@ textarea:focus {
3145
3144
  --Page__group-tint: var(--color--warning-soft--surface);
3146
3145
  --Page__group-outline: var(--color--warning-soft--outline);
3147
3146
  }
3148
- /* The content before a group can have no margin under it (a CardList). The
3149
- margins collapse, thus between two groups the space stays the same. */
3147
+ /* The content before a group can have no margin under it (a CardList or a
3148
+ switch). The margins collapse, thus between two groups the space stays
3149
+ the same. */
3150
3150
  .Page__content > * + .Page__group,
3151
- .Page__content > * + :has(> .Page__group:first-child) {
3151
+ .Page__content > * + :has(> .Page__group:first-child),
3152
+ .Page__content__section > * + .Page__group {
3152
3153
  margin-top: var(--spacing-l);
3153
3154
  }
3154
3155
  /* A form can be around one group (the group is its last child), thus only
3155
- the last group of the content loses the space under it */
3156
+ the last group of the content or of a section loses the space under it */
3156
3157
  .Page__content > .Page__group:last-child,
3157
- .Page__content > :last-child > .Page__group:last-child {
3158
+ .Page__content > :last-child > .Page__group:last-child,
3159
+ .Page__content__section > .Page__group:last-child {
3158
3160
  margin-bottom: 0;
3159
3161
  }
3160
3162
  /* When the title and the actions do not fit on one line, the actions go
@@ -4227,11 +4229,19 @@ span.SidebarTree__node__toggle {
4227
4229
  /* The icon is centered with the margins, not with flex: the box of the
4228
4230
  caller can set the display of the square (the image of an EntityRow
4229
4231
  makes it a block), and the icon stays at the center. */
4232
+ /* The icon fills 55% of a large square. In a small square (20px in a
4233
+ menu or in a line of text) 55% is too small to read, thus the icon
4234
+ gets at least 14px and keeps a 3px margin on each side. */
4230
4235
  svg {
4236
+ --Avatar-glyph-size: min(
4237
+ calc(var(--Avatar-icon-size) - 6px),
4238
+ max(55%, 14px)
4239
+ );
4240
+
4231
4241
  position: absolute;
4232
4242
  inset: 0;
4233
- width: 55%;
4234
- height: 55%;
4243
+ width: var(--Avatar-glyph-size);
4244
+ height: var(--Avatar-glyph-size);
4235
4245
  margin: auto;
4236
4246
  color: var(--Avatar-ink);
4237
4247
  }
@@ -4245,75 +4255,75 @@ span.SidebarTree__node__toggle {
4245
4255
  a pale surface and a saturated ink. Dark mode has a deep surface and a
4246
4256
  light ink. */
4247
4257
  .Avatar__initials--hue-1 {
4248
- --Avatar-surface: #fff8d6;
4249
- --Avatar-ink: #998100;
4258
+ --Avatar-surface: #f8f1cf;
4259
+ --Avatar-ink: #796501;
4250
4260
 
4251
4261
  [data-color-scheme="dark"] & {
4252
- --Avatar-surface: #2d2500;
4253
- --Avatar-ink: #e6c840;
4262
+ --Avatar-surface: #292101;
4263
+ --Avatar-ink: #d4b625;
4254
4264
  }
4255
4265
  }
4256
4266
  .Avatar__initials--hue-2 {
4257
- --Avatar-surface: #defce2;
4258
- --Avatar-ink: #1d9f2f;
4267
+ --Avatar-surface: #dcf9e0;
4268
+ --Avatar-ink: #01781a;
4259
4269
 
4260
4270
  [data-color-scheme="dark"] & {
4261
- --Avatar-surface: #003909;
4262
- --Avatar-ink: #72d980;
4271
+ --Avatar-surface: #002b05;
4272
+ --Avatar-ink: #68d077;
4263
4273
  }
4264
4274
  }
4265
4275
  .Avatar__initials--hue-3 {
4266
- --Avatar-surface: #e5fbf9;
4267
- --Avatar-ink: #38ada3;
4276
+ --Avatar-surface: #e0f5f3;
4277
+ --Avatar-ink: #02736c;
4268
4278
 
4269
4279
  [data-color-scheme="dark"] & {
4270
- --Avatar-surface: #00322f;
4271
- --Avatar-ink: #70d9d2;
4280
+ --Avatar-surface: #012826;
4281
+ --Avatar-ink: #60cac3;
4272
4282
  }
4273
4283
  }
4274
4284
  .Avatar__initials--hue-4 {
4275
- --Avatar-surface: #ddecfc;
4276
- --Avatar-ink: #1b5899;
4285
+ --Avatar-surface: #e5f2ff;
4286
+ --Avatar-ink: #2d68ab;
4277
4287
 
4278
4288
  [data-color-scheme="dark"] & {
4279
- --Avatar-surface: #00183d;
4280
- --Avatar-ink: #7db2f2;
4289
+ --Avatar-surface: #052046;
4290
+ --Avatar-ink: #85bafb;
4281
4291
  }
4282
4292
  }
4283
4293
  .Avatar__initials--hue-5 {
4284
- --Avatar-surface: #e2e2fa;
4285
- --Avatar-ink: #38388d;
4294
+ --Avatar-surface: #eeeefe;
4295
+ --Avatar-ink: #585db6;
4286
4296
 
4287
4297
  [data-color-scheme="dark"] & {
4288
- --Avatar-surface: #11113d;
4289
- --Avatar-ink: #9a9ae8;
4298
+ --Avatar-surface: #191b48;
4299
+ --Avatar-ink: #aeaffe;
4290
4300
  }
4291
4301
  }
4292
4302
  .Avatar__initials--hue-6 {
4293
- --Avatar-surface: #fef0e2;
4294
- --Avatar-ink: #d76f0e;
4303
+ --Avatar-surface: #fceee0;
4304
+ --Avatar-ink: #a15002;
4295
4305
 
4296
4306
  [data-color-scheme="dark"] & {
4297
- --Avatar-surface: #3a1e00;
4298
- --Avatar-ink: #f5b96a;
4307
+ --Avatar-surface: #341a00;
4308
+ --Avatar-ink: #e7ab5c;
4299
4309
  }
4300
4310
  }
4301
4311
  .Avatar__initials--hue-7 {
4302
- --Avatar-surface: #fde5e3;
4303
- --Avatar-ink: #c82b1d;
4312
+ --Avatar-surface: #ffebe9;
4313
+ --Avatar-ink: #c42719;
4304
4314
 
4305
4315
  [data-color-scheme="dark"] & {
4306
- --Avatar-surface: #3d0a06;
4307
- --Avatar-ink: #f4a9a3;
4316
+ --Avatar-surface: #400d08;
4317
+ --Avatar-ink: #eda29c;
4308
4318
  }
4309
4319
  }
4310
4320
  .Avatar__initials--hue-8 {
4311
- --Avatar-surface: #f8dffa;
4312
- --Avatar-ink: #7e2e86;
4321
+ --Avatar-surface: #fde8ff;
4322
+ --Avatar-ink: #95459d;
4313
4323
 
4314
4324
  [data-color-scheme="dark"] & {
4315
- --Avatar-surface: #280030;
4316
- --Avatar-ink: #de9de6;
4325
+ --Avatar-surface: #350b3d;
4326
+ --Avatar-ink: #df9ee7;
4317
4327
  }
4318
4328
  }
4319
4329
  .Avatar--small {
@@ -4755,6 +4765,13 @@ span.SidebarTree__node__toggle {
4755
4765
  width: 100%;
4756
4766
  height: 100%;
4757
4767
  }
4768
+
4769
+ /* The rule above has the specificity of .UploadPreview, thus without this
4770
+ rule the import order of the two blocks decides if the asset is in the
4771
+ center. Keep the display of .UploadPreview (_UploadPreview.css). */
4772
+ > .UploadPreview {
4773
+ display: flex;
4774
+ }
4758
4775
  }
4759
4776
  .EntityRow--inline .EntityRow__image {
4760
4777
  border-radius: var(--radius-xs);
@@ -4830,6 +4847,26 @@ span.SidebarTree__node__toggle {
4830
4847
  display: none;
4831
4848
  }
4832
4849
  }
4850
+ /* See RecordRow/Image.tsx. Its container gives the size of the square. */
4851
+ .RecordRow__image {
4852
+ width: 100%;
4853
+ height: 100%;
4854
+ background-repeat: no-repeat;
4855
+ background-position: center center;
4856
+ background-size: cover;
4857
+ }
4858
+ .RecordRow__image--placeholder {
4859
+ background-color: var(--color--surface-muted);
4860
+ }
4861
+ .RecordRow__loading {
4862
+ display: inline-block;
4863
+ width: 8em;
4864
+ max-width: 100%;
4865
+ height: 0.8em;
4866
+ vertical-align: middle;
4867
+ background-color: var(--color--surface-muted);
4868
+ border-radius: var(--radius-s);
4869
+ }
4833
4870
  /* RowList, and NavList that renders a RowList */
4834
4871
  .RowList {
4835
4872
  display: flex;
@@ -7635,6 +7672,21 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7635
7672
  display: flex;
7636
7673
  flex: 1;
7637
7674
  }
7675
+ /* The parts of a filter row are bare (see the Filter section of the Toolbar
7676
+ page), thus the row gives them the gap of a toolbar. */
7677
+ .Toolbar--fields > .Toolbar__fill {
7678
+ gap: var(--spacing-m);
7679
+ align-items: flex-start;
7680
+
7681
+ /* Each part is at least as tall as a field of one line, and centers its
7682
+ own content in that height. Thus the parts stay on the first line of the
7683
+ tiles when the tiles wrap. Toolbar.Divider stretches to the full height
7684
+ of the row. */
7685
+ > * {
7686
+ box-sizing: border-box;
7687
+ min-height: var(--control-height);
7688
+ }
7689
+ }
7638
7690
  /* The widths of the two edge fades of .Toolbar__tabs. They must be
7639
7691
  registered: an animation cannot interpolate a custom property that is not
7640
7692
  registered. */
@@ -7839,6 +7891,132 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7839
7891
  .Toolbar__spinner {
7840
7892
  margin-left: var(--spacing-m);
7841
7893
  }
7894
+ .FilterBuilder {
7895
+ display: flex;
7896
+ flex: 3;
7897
+ gap: var(--spacing-m);
7898
+ align-items: flex-start;
7899
+ min-width: 0;
7900
+ }
7901
+ /* The funnel and the clear button stay on the first line of the tiles when
7902
+ the tiles wrap */
7903
+ .FilterBuilder__icon,
7904
+ .FilterBuilder__clear {
7905
+ display: flex;
7906
+ flex: none;
7907
+ align-items: center;
7908
+ min-height: var(--control-height);
7909
+ }
7910
+ .FilterBuilder__icon svg {
7911
+ display: block;
7912
+ color: var(--color--ink-subtle);
7913
+ }
7914
+ /* The padding and the row gap keep a space of 4px around each line of
7915
+ tiles. With one line, the line fills the min-height and its tiles are in
7916
+ the center. */
7917
+ .FilterBuilder__box {
7918
+ box-sizing: border-box;
7919
+ display: flex;
7920
+ flex: 1;
7921
+ flex-wrap: wrap;
7922
+ gap: 4px var(--spacing-m);
7923
+ align-items: center;
7924
+ min-width: 0;
7925
+ min-height: var(--control-height);
7926
+ padding-block: 4px;
7927
+ }
7928
+ .FilterBuilder__empty {
7929
+ color: var(--color--ink-subtle);
7930
+ }
7931
+ .FilterBuilder__add {
7932
+ display: flex;
7933
+ }
7934
+ .FilterBuilder__tile {
7935
+ position: relative;
7936
+ display: flex;
7937
+ align-items: stretch;
7938
+ max-width: 100%;
7939
+ background-color: var(--color--surface-raised);
7940
+ border: 1px solid var(--color--primary-soft--border);
7941
+ border-radius: var(--radius-s);
7942
+ transition:
7943
+ border-color 0.1s ease-out,
7944
+ box-shadow 0.1s ease-out;
7945
+
7946
+ &:hover {
7947
+ border-color: var(--color--focus--border);
7948
+ }
7949
+ /* The small selects of the tile draw no focus ring, thus the tile draws
7950
+ it for all its inputs */
7951
+ &:focus-within {
7952
+ border-color: var(--color--focus--border);
7953
+ box-shadow: var(--focus-ring);
7954
+ }
7955
+ /* A read-only tile has no hover look, as the other read-only inputs */
7956
+ .FilterBuilder.is-read-only &:hover:not(:focus-within) {
7957
+ border-color: var(--color--primary-soft--border);
7958
+ }
7959
+ }
7960
+ .FilterBuilder__field,
7961
+ .FilterBuilder__operator {
7962
+ position: relative;
7963
+ border-right: 1px solid var(--color--primary-soft--border);
7964
+ }
7965
+ /* The tile has a border of 1px, thus the inner radius is 1px smaller */
7966
+ .FilterBuilder__field {
7967
+ border-radius: calc(var(--radius-s) - 1px) 0 0 calc(var(--radius-s) - 1px);
7968
+ }
7969
+ .FilterBuilder__operator--static {
7970
+ display: flex;
7971
+ align-items: center;
7972
+ padding: 0 10px;
7973
+ font-size: var(--font-size-xs);
7974
+ color: var(--color--ink-subtle);
7975
+ }
7976
+ /* The value keeps a minimum width, even when it is empty, thus the user can
7977
+ find it and click it */
7978
+ .FilterBuilder__value {
7979
+ display: flex;
7980
+ align-items: stretch;
7981
+ min-width: 80px;
7982
+
7983
+ > * {
7984
+ flex: 1 0 auto;
7985
+ }
7986
+ }
7987
+ .FilterBuilder__argument {
7988
+ display: flex;
7989
+ align-items: center;
7990
+ margin-inline: 10px;
7991
+ }
7992
+ .FilterBuilder__argument-label {
7993
+ padding-right: 8px;
7994
+ font-size: var(--font-size-xs);
7995
+ }
7996
+ /* The text inputs have no field look: the tile is the field */
7997
+ .FilterBuilder__value > .AutosizeInput,
7998
+ .FilterBuilder__argument > .AutosizeInput {
7999
+ --autosize-input-padding-inline: 10px;
8000
+ --autosize-input-border-inline: 0px;
8001
+ min-width: 80px;
8002
+ max-width: 30vw;
8003
+ font-size: var(--font-size-xs);
8004
+
8005
+ > input[type="text"] {
8006
+ padding-block: 5px;
8007
+ appearance: none;
8008
+ background-color: transparent;
8009
+ border: none;
8010
+
8011
+ &:focus {
8012
+ box-shadow: none;
8013
+ }
8014
+ }
8015
+ }
8016
+ .FilterBuilder__remove {
8017
+ align-self: center;
8018
+ margin-right: 4px;
8019
+ }
7842
8020
  .UploadPreview {
7843
8021
  position: relative;
7844
8022
  box-sizing: border-box;
@@ -7874,6 +8052,69 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
7874
8052
  font-size: var(--font-size-m);
7875
8053
  color: var(--color--ink-subtle);
7876
8054
  }
8055
+ /* The waveform is always the same picture, not the sound of the file */
8056
+
8057
+ /* A registered percentage, so the played part grows smoothly between two
8058
+ updates of the time */
8059
+ @property --AudioPlayPause-progress {
8060
+ syntax: "<percentage>";
8061
+ inherits: false;
8062
+ initial-value: 0%;
8063
+ }
8064
+ .AudioPlayPause {
8065
+ position: relative;
8066
+ display: flex;
8067
+ align-items: center;
8068
+ justify-content: center;
8069
+ }
8070
+ /* The picture is a mask: the background gives the colors of the bars */
8071
+ .AudioPlayPause__wave {
8072
+ width: 80%;
8073
+ aspect-ratio: 174 / 40;
8074
+ /* token-audit-disable-next-line mismatch -- the mask makes the background the bars of a picture, so it's foreground */
8075
+ background: linear-gradient(
8076
+ to right,
8077
+ var(--color--progress--fill) var(--AudioPlayPause-progress),
8078
+ var(--color--ink-placeholder) var(--AudioPlayPause-progress)
8079
+ );
8080
+ mask:
8081
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 174 40'%3E%3Crect x='0' y='15.9' width='2' height='8.2' rx='1'/%3E%3Crect x='4' y='16.15' width='2' height='7.7' rx='1'/%3E%3Crect x='8' y='15.25' width='2' height='9.5' rx='1'/%3E%3Crect x='12' y='11.05' width='2' height='17.9' rx='1'/%3E%3Crect x='16' y='10' width='2' height='20' rx='1'/%3E%3Crect x='20' y='11.85' width='2' height='16.3' rx='1'/%3E%3Crect x='24' y='7.5' width='2' height='25' rx='1'/%3E%3Crect x='28' y='6.15' width='2' height='27.7' rx='1'/%3E%3Crect x='32' y='12.25' width='2' height='15.5' rx='1'/%3E%3Crect x='36' y='14.35' width='2' height='11.3' rx='1'/%3E%3Crect x='40' y='11.65' width='2' height='16.7' rx='1'/%3E%3Crect x='44' y='6' width='2' height='28' rx='1'/%3E%3Crect x='48' y='2.2' width='2' height='35.6' rx='1'/%3E%3Crect x='52' y='6.95' width='2' height='26.1' rx='1'/%3E%3Crect x='56' y='15.35' width='2' height='9.3' rx='1'/%3E%3Crect x='60' y='16.6' width='2' height='6.8' rx='1'/%3E%3Crect x='64' y='11.45' width='2' height='17.1' rx='1'/%3E%3Crect x='68' y='6.3' width='2' height='27.4' rx='1'/%3E%3Crect x='72' y='8.25' width='2' height='23.5' rx='1'/%3E%3Crect x='76' y='14.1' width='2' height='11.8' rx='1'/%3E%3Crect x='80' y='15.2' width='2' height='9.6' rx='1'/%3E%3Crect x='84' y='12.8' width='2' height='14.4' rx='1'/%3E%3Crect x='88' y='10.1' width='2' height='19.8' rx='1'/%3E%3Crect x='92' y='5.65' width='2' height='28.7' rx='1'/%3E%3Crect x='96' y='6.15' width='2' height='27.7' rx='1'/%3E%3Crect x='100' y='6.5' width='2' height='27' rx='1'/%3E%3Crect x='104' y='3.35' width='2' height='33.3' rx='1'/%3E%3Crect x='108' y='3.85' width='2' height='32.3' rx='1'/%3E%3Crect x='112' y='5.65' width='2' height='28.7' rx='1'/%3E%3Crect x='116' y='8.7' width='2' height='22.6' rx='1'/%3E%3Crect x='120' y='11.35' width='2' height='17.3' rx='1'/%3E%3Crect x='124' y='9.85' width='2' height='20.3' rx='1'/%3E%3Crect x='128' y='9.4' width='2' height='21.2' rx='1'/%3E%3Crect x='132' y='10.95' width='2' height='18.1' rx='1'/%3E%3Crect x='136' y='8.25' width='2' height='23.5' rx='1'/%3E%3Crect x='140' y='6.7' width='2' height='26.6' rx='1'/%3E%3Crect x='144' y='11.2' width='2' height='17.6' rx='1'/%3E%3Crect x='148' y='15.45' width='2' height='9.1' rx='1'/%3E%3Crect x='152' y='14' width='2' height='12' rx='1'/%3E%3Crect x='156' y='10.15' width='2' height='19.7' rx='1'/%3E%3Crect x='160' y='11.65' width='2' height='16.7' rx='1'/%3E%3Crect x='164' y='15.8' width='2' height='8.4' rx='1'/%3E%3Crect x='168' y='16.6' width='2' height='6.8' rx='1'/%3E%3Crect x='172' y='14.65' width='2' height='10.7' rx='1'/%3E%3C/svg%3E")
8082
+ center / 100% 100% no-repeat;
8083
+ transition: --AudioPlayPause-progress 0.3s linear;
8084
+ }
8085
+ .AudioPlayPause__button {
8086
+ position: absolute;
8087
+ }
8088
+ /* The audio play button is the only button with fully round corners (see
8089
+ also AudioPlayer) */
8090
+ .AudioPlayPause.big .AudioPlayPause__button {
8091
+ top: 50%;
8092
+ left: 50%;
8093
+ border-radius: var(--radius-full);
8094
+ transform: translate(-50%, -50%);
8095
+ }
8096
+ /* A small preview (a row of a table) has no room for a round button: all
8097
+ the preview is the button, and the icon is on the waveform */
8098
+ .AudioPlayPause.small {
8099
+ .AudioPlayPause__wave {
8100
+ opacity: 0.5;
8101
+ }
8102
+ .AudioPlayPause__button {
8103
+ inset: 0;
8104
+ display: flex;
8105
+ align-items: center;
8106
+ justify-content: center;
8107
+ font-size: 15px;
8108
+
8109
+ svg {
8110
+ color: var(--color--ink-subtle);
8111
+ }
8112
+ &:hover svg,
8113
+ &:focus-visible svg {
8114
+ color: var(--color--ink-link);
8115
+ }
8116
+ }
8117
+ }
7877
8118
  /* The button and the dropdown are also in the balloon toolbar of the
7878
8119
  structured text editor. */
7879
8120
  .EditorToolbar {
@@ -8225,6 +8466,354 @@ button.Dropdown__menu__option__icon--delete:focus-visible svg {
8225
8466
  color: var(--color--disabled-field--ink-placeholder);
8226
8467
  }
8227
8468
  }
8469
+ .DateTimeInput {
8470
+ position: relative;
8471
+ display: flex;
8472
+ width: 100%;
8473
+ }
8474
+ .DateTimeInput--autosize {
8475
+ display: inline-flex;
8476
+ width: auto;
8477
+ max-width: 100%;
8478
+ }
8479
+ .DateTimeInput__field {
8480
+ flex: 1;
8481
+ padding: 0 4px;
8482
+
8483
+ /* The timezone select is not an InputFrame__input, but its focus also
8484
+ shows the focus ring of the frame */
8485
+ &:has(.DateTimeInput__timezone :focus) {
8486
+ border-color: var(--color--focus--border);
8487
+ box-shadow: var(--focus-ring);
8488
+ }
8489
+ /* A disabled or read-only field has no focus ring. These rules have the
8490
+ specificity of the focus rules of _InputFrame.css, and they come after
8491
+ them, thus they win. */
8492
+ .DateTimeInput.is-disabled &,
8493
+ .DateTimeInput.is-read-only & {
8494
+ border-color: var(--color--border);
8495
+ box-shadow: none;
8496
+ }
8497
+ }
8498
+ /* The date and the time have the width of their text (see sizerText in
8499
+ src/form/DateTimeInput/Base.tsx). Thus no empty space comes between the time and
8500
+ the timezone, and a long format does not get cut. The date, the time and
8501
+ the timezone read as one value: no line separates them. */
8502
+ .DateTimeInput__sizer {
8503
+ --autosize-input-padding-inline: 6px;
8504
+ --autosize-input-border-inline: 0px;
8505
+ flex: none;
8506
+ font-variant-numeric: tabular-nums;
8507
+ }
8508
+ /* The rules of the timezone have three classes, thus they are stronger than
8509
+ the styles of react-select */
8510
+ .DateTimeInput__timezone {
8511
+ flex: none;
8512
+ }
8513
+ /* When the field is wider than its parts, the empty space comes before the
8514
+ clear button. Thus the button stays at the right
8515
+ end, and the value stays together at the left. */
8516
+ .DateTimeInput__clear {
8517
+ margin-left: auto;
8518
+ }
8519
+ .DateTimeInput__field
8520
+ .DateTimeInput__timezone
8521
+ .DateTimeInput__timezone__control {
8522
+ min-height: 0;
8523
+ padding: 2px 4px 2px 8px;
8524
+ color: var(--color--ink-subtle);
8525
+ cursor: pointer;
8526
+ background-color: transparent;
8527
+ border-radius: var(--radius-s);
8528
+ box-shadow: none;
8529
+ transition: background-color 0.2s var(--material-ease);
8530
+
8531
+ &:hover,
8532
+ &.DateTimeInput__timezone__control--menu-is-open {
8533
+ color: var(--color--ink);
8534
+ background-color: var(--color--surface-hover);
8535
+ }
8536
+ /* A disabled timezone is a value, not a button */
8537
+ &.DateTimeInput__timezone__control--is-disabled {
8538
+ color: var(--color--disabled-field--ink);
8539
+ cursor: default;
8540
+ background-color: transparent;
8541
+ }
8542
+ }
8543
+ /* The timezone is at the right end of the field, and its menu is wider than
8544
+ it. Thus the menu aligns with the right edge of the timezone and opens to
8545
+ the left: when the field is near the right edge of the screen, the menu
8546
+ stays in the screen. */
8547
+ .DateTimeInput__field .DateTimeInput__timezone .DateTimeInput__timezone__menu {
8548
+ right: 0;
8549
+ left: auto;
8550
+ }
8551
+ .DateTimeInput__field
8552
+ .DateTimeInput__timezone
8553
+ .DateTimeInput__timezone__single-value {
8554
+ font-variant-numeric: tabular-nums;
8555
+ color: inherit;
8556
+ }
8557
+ .DateTimeInput__field
8558
+ .DateTimeInput__timezone
8559
+ .DateTimeInput__timezone__value-container {
8560
+ padding: 0;
8561
+ }
8562
+ .DateTimeInput__field
8563
+ .DateTimeInput__timezone
8564
+ .DateTimeInput__timezone__dropdown-indicator {
8565
+ padding: 0 0 0 4px;
8566
+ color: inherit;
8567
+
8568
+ svg {
8569
+ width: 14px;
8570
+ height: 14px;
8571
+ }
8572
+ }
8573
+
8574
+ .DateTimeInput--smaller {
8575
+ .DateTimeInput__field {
8576
+ padding: 0;
8577
+ background-color: transparent;
8578
+ border: 0;
8579
+ box-shadow: none;
8580
+ }
8581
+ .DateTimeInput__sizer {
8582
+ --autosize-input-padding-inline: 5px;
8583
+ font-size: var(--font-size-xs);
8584
+ }
8585
+ .DateTimeInput__date,
8586
+ .DateTimeInput__time {
8587
+ padding-block: 5px;
8588
+ }
8589
+ }
8590
+
8591
+ .DateTimeInput__date-popper {
8592
+ box-sizing: border-box;
8593
+ width: 272px;
8594
+ padding: 8px;
8595
+ background-color: var(--color--surface-raised);
8596
+ border: 1px solid var(--color--border-raised);
8597
+ border-radius: var(--radius-m);
8598
+ box-shadow: var(--shadow--floating);
8599
+ }
8600
+ .DateTimeInput__CalendarHeader {
8601
+ display: flex;
8602
+ align-items: center;
8603
+ margin-bottom: 4px;
8604
+ }
8605
+ .DateTimeInput__CalendarHeader__title {
8606
+ flex: 1;
8607
+ padding-left: 6px;
8608
+ font-weight: var(--font-weight-strong);
8609
+ }
8610
+ .DateTimeInput__CalendarHeader__actions {
8611
+ display: flex;
8612
+ }
8613
+ .DateTimeInput__CalendarHeader__action--today svg {
8614
+ font-size: 0.8em;
8615
+ }
8616
+ .DateTimeInput__CalendarGrid {
8617
+ display: grid;
8618
+ grid-template-columns: repeat(7, 1fr);
8619
+ gap: 2px;
8620
+ text-align: center;
8621
+ }
8622
+ /* The rows and the cells of the grid role give no box: the days are the
8623
+ items of the CSS grid */
8624
+ .DateTimeInput__CalendarRow,
8625
+ .DateTimeInput__CalendarCell {
8626
+ display: contents;
8627
+ }
8628
+ .DateTimeInput__CalendarWeekDay {
8629
+ padding: 6px 0;
8630
+ font-size: var(--font-size-xs);
8631
+ color: var(--color--ink-subtle);
8632
+ }
8633
+ .DateTimeInput__CalendarDayCell {
8634
+ position: relative;
8635
+ height: 32px;
8636
+ padding: 0;
8637
+ font-variant-numeric: tabular-nums;
8638
+ color: var(--color--ink);
8639
+ cursor: pointer;
8640
+ background: none;
8641
+ border: 0;
8642
+ border-radius: var(--radius-s);
8643
+
8644
+ &:hover {
8645
+ background-color: var(--color--surface-hover);
8646
+ }
8647
+ &:focus-visible {
8648
+ box-shadow: var(--focus-ring);
8649
+ }
8650
+ &[disabled],
8651
+ &[aria-disabled="true"] {
8652
+ color: var(--color--ink-disabled);
8653
+ cursor: not-allowed;
8654
+
8655
+ &:hover {
8656
+ background: none;
8657
+ }
8658
+ }
8659
+ }
8660
+ .DateTimeInput__CalendarDayCell--inAdjacentMonth {
8661
+ color: var(--color--ink-subtle);
8662
+ }
8663
+ .DateTimeInput__CalendarDayCell--isToday {
8664
+ font-weight: var(--font-weight-strong);
8665
+ box-shadow: inset 0 0 0 1px var(--color--selected--border);
8666
+ }
8667
+ .DateTimeInput__CalendarDayCell--inRange {
8668
+ background-color: var(--color--selected--surface);
8669
+ }
8670
+ .DateTimeInput__CalendarDayCell--isSelected {
8671
+ font-weight: var(--font-weight-strong);
8672
+ color: var(--color--primary--ink);
8673
+ background-color: var(--color--primary--surface);
8674
+ box-shadow: none;
8675
+
8676
+ &:hover {
8677
+ background-color: var(--color--primary--surface);
8678
+ }
8679
+ }
8680
+ .DateTimeRangeInput {
8681
+ position: relative;
8682
+ display: flex;
8683
+ width: 100%;
8684
+ }
8685
+ .DateTimeRangeInput--autosize {
8686
+ display: inline-flex;
8687
+ width: auto;
8688
+ max-width: 100%;
8689
+ }
8690
+ .DateTimeRangeInput__dropdown {
8691
+ display: flex;
8692
+ flex: 1;
8693
+ min-width: 0;
8694
+ }
8695
+
8696
+ /* The trigger has the look of a field, so it has the height of a field (see
8697
+ --control-height) */
8698
+ .DateTimeRangeInput__trigger {
8699
+ box-sizing: border-box;
8700
+ display: flex;
8701
+ flex: 1;
8702
+ gap: 8px;
8703
+ align-items: center;
8704
+ min-width: 0;
8705
+ min-height: var(--control-height);
8706
+ padding: 10px;
8707
+ font-size: var(--font-size-m);
8708
+ color: var(--color--ink);
8709
+ cursor: pointer;
8710
+ background: var(--color--surface-raised);
8711
+ border: 1px solid var(--color--border);
8712
+ border-radius: var(--radius-s);
8713
+ transition: border-color 0.15s ease;
8714
+
8715
+ &:hover {
8716
+ border-color: var(--color--border-hover);
8717
+ }
8718
+ &[aria-expanded="true"] {
8719
+ border-color: var(--color--focus--border);
8720
+ }
8721
+ &:focus-visible {
8722
+ border-color: var(--color--focus--border);
8723
+ box-shadow: var(--focus-ring);
8724
+ }
8725
+
8726
+ svg {
8727
+ color: var(--color--ink-subtle);
8728
+ }
8729
+
8730
+ /* A locked trigger is a field that the user cannot change: the value stays
8731
+ readable */
8732
+ .DateTimeRangeInput.is-disabled &,
8733
+ .DateTimeRangeInput.is-read-only & {
8734
+ cursor: default;
8735
+ border-color: var(--color--border);
8736
+ }
8737
+ .DateTimeRangeInput.is-disabled & {
8738
+ color: var(--color--disabled-field--ink);
8739
+ background: var(--color--disabled-field--surface);
8740
+ }
8741
+ }
8742
+ .DateTimeRangeInput__trigger-icon {
8743
+ flex-shrink: 0;
8744
+ width: 14px;
8745
+ height: 14px;
8746
+ }
8747
+ .DateTimeRangeInput__trigger-label {
8748
+ flex: 1;
8749
+ overflow: hidden;
8750
+ text-overflow: ellipsis;
8751
+ text-align: left;
8752
+ white-space: nowrap;
8753
+ }
8754
+
8755
+ /* The clear button is over the right end of the trigger, where the chevron
8756
+ is in the other states. The trigger keeps space for it, so the label does
8757
+ not go below it. */
8758
+ .DateTimeRangeInput--clearable .DateTimeRangeInput__trigger {
8759
+ padding-right: calc(10px + 1lh + 2 * 0.3em);
8760
+ }
8761
+ .DateTimeRangeInput__clear {
8762
+ position: absolute;
8763
+ top: 50%;
8764
+ right: 6px;
8765
+ transform: translateY(-50%);
8766
+ }
8767
+
8768
+ /* The box around a filter draws the focus ring, as for the other inputs of
8769
+ the filter look */
8770
+ .DateTimeRangeInput--filter .DateTimeRangeInput__trigger {
8771
+ min-height: 0;
8772
+ padding: 5px;
8773
+ font-size: var(--font-size-xs);
8774
+ background: transparent;
8775
+ border: 0;
8776
+ box-shadow: none;
8777
+ }
8778
+
8779
+ .DateTimeRangeInput__panel {
8780
+ box-sizing: border-box;
8781
+ width: 280px;
8782
+ padding: 12px;
8783
+ background: var(--color--surface-raised);
8784
+ border: 1px solid var(--color--border-raised);
8785
+ border-radius: var(--radius-m);
8786
+ box-shadow: var(--shadow--floating);
8787
+ }
8788
+ .DateTimeRangeInput__edges {
8789
+ display: flex;
8790
+ flex-direction: column;
8791
+ gap: 8px;
8792
+ margin-top: 12px;
8793
+ }
8794
+ .DateTimeRangeInput__edge-label {
8795
+ display: block;
8796
+ margin-bottom: 4px;
8797
+ font-weight: var(--font-weight-strong);
8798
+ color: var(--color--ink-subtle);
8799
+ }
8800
+ .DateTimeRangeInput__edge-inputs {
8801
+ display: flex;
8802
+ gap: 6px;
8803
+ }
8804
+ .DateTimeRangeInput__edge-date {
8805
+ flex: 1.3;
8806
+ min-width: 0;
8807
+
8808
+ /* The next pick in the calendar sets the end of this text */
8809
+ &.is-active {
8810
+ border-color: var(--color--focus--border);
8811
+ }
8812
+ }
8813
+ .DateTimeRangeInput__edge-time {
8814
+ flex: 0.7;
8815
+ min-width: 0;
8816
+ }
8228
8817
  /* All are kbd elements: the normalize sheet gives a kbd the monospace font */
8229
8818
  .Shortcut,
8230
8819
  .Shortcut__key {