datocms-react-ui 3.1.0-next.5 → 4.0.0-next.7
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.
- package/README.md +2 -1
- package/dist/DateInput.d.ts +2 -0
- package/dist/DateInput.js +2 -0
- package/dist/DateTimeInput.d.ts +2 -0
- package/dist/DateTimeInput.js +2 -0
- package/dist/DateTimeRangeInput.d.ts +2 -0
- package/dist/DateTimeRangeInput.js +2 -0
- package/dist/FilterBuilder.d.ts +2 -0
- package/dist/FilterBuilder.js +2 -0
- package/dist/LICENSE-lucide.txt +43 -0
- package/dist/RecordRow.d.ts +2 -0
- package/dist/RecordRow.js +2 -0
- package/dist/UploadCard.js +2 -2
- package/dist/UploadPreview.d.ts +2 -2
- package/dist/UploadPreview.js +1 -1
- package/dist/UserRow.d.ts +2 -0
- package/dist/UserRow.js +2 -0
- package/dist/react-ui/src/Canvas.d.ts +7 -1
- package/dist/react-ui/src/Canvas.js +26 -4
- package/dist/react-ui/src/ctxAnswer.js +21 -0
- package/dist/react-ui/src/ctxDateSettings.js +7 -5
- package/dist/react-ui/src/ctxRecordPresentation.js +34 -0
- package/dist/react-ui/src/ctxUploads.js +23 -0
- package/dist/styles.css +627 -29
- package/dist/ui-public/icons/index.js +294 -367
- package/dist/ui-public/icons/lucide/app-window.js +33 -0
- package/dist/ui-public/icons/lucide/arrow-big-down.js +22 -0
- package/dist/ui-public/icons/lucide/arrow-down-a-z.js +28 -0
- package/dist/ui-public/icons/lucide/arrow-down-from-line.js +26 -0
- package/dist/ui-public/icons/lucide/arrow-down.js +22 -0
- package/dist/ui-public/icons/lucide/arrow-left.js +22 -0
- package/dist/ui-public/icons/lucide/arrow-right-left.js +27 -0
- package/dist/ui-public/icons/lucide/arrow-right.js +22 -0
- package/dist/ui-public/icons/lucide/arrow-up-down.js +27 -0
- package/dist/ui-public/icons/lucide/arrow-up-from-line.js +26 -0
- package/dist/ui-public/icons/lucide/arrow-up.js +22 -0
- package/dist/ui-public/icons/lucide/ban.js +26 -0
- package/dist/ui-public/icons/lucide/book.js +22 -0
- package/dist/ui-public/icons/lucide/bookmark.js +22 -0
- package/dist/ui-public/icons/lucide/calendar.js +33 -0
- package/dist/ui-public/icons/{regular → lucide}/check.js +9 -3
- package/dist/ui-public/icons/{regular → lucide}/chevron-down.js +9 -3
- package/dist/ui-public/icons/{regular → lucide}/chevron-left.js +9 -3
- package/dist/ui-public/icons/{regular → lucide}/chevron-right.js +9 -3
- package/dist/ui-public/icons/lucide/chevrons-down.js +22 -0
- package/dist/ui-public/icons/lucide/chevrons-left.js +22 -0
- package/dist/ui-public/icons/lucide/chevrons-right.js +22 -0
- package/dist/ui-public/icons/lucide/circle-arrow-up.js +30 -0
- package/dist/ui-public/icons/lucide/circle-check.js +26 -0
- package/dist/ui-public/icons/lucide/circle-dot.js +30 -0
- package/dist/ui-public/icons/lucide/circle-exclamation-point.js +40 -0
- package/dist/ui-public/icons/lucide/circle-question-mark.js +30 -0
- package/dist/ui-public/icons/lucide/clock.js +26 -0
- package/dist/ui-public/icons/lucide/code.js +22 -0
- package/dist/ui-public/icons/lucide/command.js +22 -0
- package/dist/ui-public/icons/lucide/copy-plus.js +44 -0
- package/dist/ui-public/icons/lucide/copy.js +29 -0
- package/dist/ui-public/icons/lucide/corner-left-up.js +22 -0
- package/dist/ui-public/icons/lucide/database.js +31 -0
- package/dist/ui-public/icons/lucide/download.js +26 -0
- package/dist/ui-public/icons/lucide/earth.js +31 -0
- package/dist/ui-public/icons/lucide/ellipsis-vertical.js +38 -0
- package/dist/ui-public/icons/lucide/ellipsis.js +38 -0
- package/dist/ui-public/icons/lucide/external-link.js +26 -0
- package/dist/ui-public/icons/lucide/eye-off.js +27 -0
- package/dist/ui-public/icons/lucide/eye.js +26 -0
- package/dist/ui-public/icons/lucide/file-code.js +27 -0
- package/dist/ui-public/icons/lucide/file-output.js +27 -0
- package/dist/ui-public/icons/lucide/flask-conical.js +26 -0
- package/dist/ui-public/icons/lucide/fold-vertical.js +31 -0
- package/dist/ui-public/icons/lucide/folder-open.js +22 -0
- package/dist/ui-public/icons/lucide/folder-plus.js +26 -0
- package/dist/ui-public/icons/lucide/folder.js +22 -0
- package/dist/ui-public/icons/lucide/folders.js +22 -0
- package/dist/ui-public/icons/lucide/funnel.js +22 -0
- package/dist/ui-public/icons/lucide/gift.js +33 -0
- package/dist/ui-public/icons/lucide/git-branch.js +34 -0
- package/dist/ui-public/icons/lucide/git-fork.js +40 -0
- package/dist/ui-public/icons/lucide/globe.js +30 -0
- package/dist/ui-public/icons/lucide/grip-vertical.js +53 -0
- package/dist/ui-public/icons/lucide/hand.js +27 -0
- package/dist/ui-public/icons/lucide/hard-hat.js +33 -0
- package/dist/ui-public/icons/lucide/heading-1.js +27 -0
- package/dist/ui-public/icons/lucide/heading-2.js +27 -0
- package/dist/ui-public/icons/lucide/heading-3.js +28 -0
- package/dist/ui-public/icons/lucide/heading-4.js +28 -0
- package/dist/ui-public/icons/lucide/heading-5.js +28 -0
- package/dist/ui-public/icons/lucide/heading-6.js +32 -0
- package/dist/ui-public/icons/lucide/highlighter.js +22 -0
- package/dist/ui-public/icons/lucide/hourglass.js +27 -0
- package/dist/ui-public/icons/lucide/house.js +22 -0
- package/dist/ui-public/icons/lucide/image.js +37 -0
- package/dist/ui-public/icons/lucide/images.js +38 -0
- package/dist/ui-public/icons/lucide/info.js +30 -0
- package/dist/ui-public/icons/lucide/italic.js +41 -0
- package/dist/ui-public/icons/lucide/keyboard.js +38 -0
- package/dist/ui-public/icons/lucide/languages.js +29 -0
- package/dist/ui-public/icons/lucide/layers.js +26 -0
- package/dist/ui-public/icons/lucide/layout-grid.js +51 -0
- package/dist/ui-public/icons/lucide/letter-b.js +22 -0
- package/dist/ui-public/icons/lucide/life-buoy.js +37 -0
- package/dist/ui-public/icons/lucide/link.js +22 -0
- package/dist/ui-public/icons/lucide/list-indent-decrease.js +27 -0
- package/dist/ui-public/icons/lucide/list-indent-increase.js +27 -0
- package/dist/ui-public/icons/lucide/list-ordered.js +29 -0
- package/dist/ui-public/icons/lucide/list-tree.js +28 -0
- package/dist/ui-public/icons/lucide/list.js +29 -0
- package/dist/ui-public/icons/lucide/log-out.js +26 -0
- package/dist/ui-public/icons/lucide/mail.js +28 -0
- package/dist/ui-public/icons/lucide/map-pin.js +26 -0
- package/dist/ui-public/icons/lucide/map-pinned.js +30 -0
- package/dist/ui-public/icons/lucide/maximize.js +27 -0
- package/dist/ui-public/icons/lucide/menu.js +26 -0
- package/dist/ui-public/icons/lucide/messages-square.js +22 -0
- package/dist/ui-public/icons/lucide/minimize.js +27 -0
- package/dist/ui-public/icons/lucide/minus.js +22 -0
- package/dist/ui-public/icons/lucide/notepad-text.js +36 -0
- package/dist/ui-public/icons/lucide/octagon-exclamation-point.js +26 -0
- package/dist/ui-public/icons/lucide/palette.js +48 -0
- package/dist/ui-public/icons/lucide/panel-left.js +28 -0
- package/dist/ui-public/icons/lucide/panel-right.js +28 -0
- package/dist/ui-public/icons/lucide/pause.js +34 -0
- package/dist/ui-public/icons/lucide/pen.js +22 -0
- package/dist/ui-public/icons/lucide/pilcrow.js +26 -0
- package/dist/ui-public/icons/lucide/pipette.js +26 -0
- package/dist/ui-public/icons/lucide/play.js +22 -0
- package/dist/ui-public/icons/lucide/plus.js +22 -0
- package/dist/ui-public/icons/lucide/quote.js +22 -0
- package/dist/ui-public/icons/lucide/redo-2.js +22 -0
- package/dist/ui-public/icons/lucide/refresh-cw.js +27 -0
- package/dist/ui-public/icons/lucide/rotate-ccw-clock.js +26 -0
- package/dist/ui-public/icons/lucide/rotate-ccw.js +22 -0
- package/dist/ui-public/icons/lucide/search.js +26 -0
- package/dist/ui-public/icons/lucide/send.js +22 -0
- package/dist/ui-public/icons/lucide/settings-2.js +35 -0
- package/dist/ui-public/icons/lucide/settings.js +26 -0
- package/dist/ui-public/icons/lucide/sliders-horizontal.js +32 -0
- package/dist/ui-public/icons/lucide/smartphone.js +29 -0
- package/dist/ui-public/icons/lucide/square-arrow-left.js +32 -0
- package/dist/ui-public/icons/lucide/square-arrow-up-right.js +32 -0
- package/dist/ui-public/icons/lucide/square-code.js +32 -0
- package/dist/ui-public/icons/lucide/square-dashed.js +35 -0
- package/dist/ui-public/icons/lucide/square-pen.js +22 -0
- package/dist/ui-public/icons/lucide/square-plus.js +32 -0
- package/dist/ui-public/icons/lucide/square-terminal.js +33 -0
- package/dist/ui-public/icons/lucide/store.js +26 -0
- package/dist/ui-public/icons/lucide/strikethrough.js +31 -0
- package/dist/ui-public/icons/lucide/table.js +33 -0
- package/dist/ui-public/icons/lucide/tag.js +27 -0
- package/dist/ui-public/icons/lucide/text-align-center.js +26 -0
- package/dist/ui-public/icons/lucide/text-align-end.js +26 -0
- package/dist/ui-public/icons/lucide/text-align-justify.js +26 -0
- package/dist/ui-public/icons/lucide/text-align-start.js +26 -0
- package/dist/ui-public/icons/lucide/toolbox.js +28 -0
- package/dist/ui-public/icons/lucide/trash.js +28 -0
- package/dist/ui-public/icons/lucide/triangle-exclamation-point.js +26 -0
- package/dist/ui-public/icons/lucide/underline.js +27 -0
- package/dist/ui-public/icons/lucide/undo-2.js +22 -0
- package/dist/ui-public/icons/lucide/unfold-vertical.js +31 -0
- package/dist/ui-public/icons/lucide/user-lock.js +37 -0
- package/dist/ui-public/icons/lucide/user-minus.js +35 -0
- package/dist/ui-public/icons/lucide/user-round-arrow-left.js +31 -0
- package/dist/ui-public/icons/lucide/user.js +26 -0
- package/dist/ui-public/icons/lucide/x.js +22 -0
- package/dist/ui-public/locales/en.js +45 -5
- package/dist/ui-public/src/Message.d.ts +3 -4
- package/dist/ui-public/src/UiTextKey.d.ts +1 -1
- package/dist/ui-public/src/actions/Actions/ActionTooltip.js +1 -1
- package/dist/ui-public/src/actions/Actions/registry.d.ts +2 -2
- package/dist/ui-public/src/actions/Actions/registry.js +2 -2
- package/dist/ui-public/src/actions/Button.d.ts +16 -11
- package/dist/ui-public/src/actions/Button.js +7 -1
- package/dist/ui-public/src/actions/Dropdown/Menu.d.ts +2 -2
- package/dist/ui-public/src/actions/Dropdown/Option.d.ts +7 -7
- package/dist/ui-public/src/actions/Dropdown/index.d.ts +1 -1
- package/dist/ui-public/src/actions/Dropdown/triggers/ButtonTrigger.d.ts +5 -5
- package/dist/ui-public/src/actions/Dropdown/triggers/DropdownTriggerButton.d.ts +2 -2
- package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.d.ts +6 -6
- package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.js +1 -1
- package/dist/ui-public/src/actions/EditorToolbar/Button.d.ts +1 -1
- package/dist/ui-public/src/actions/MultipleSelectionActionBar.d.ts +1 -1
- package/dist/ui-public/src/actions/SplitButton/Caret.js +2 -2
- package/dist/ui-public/src/actions/SplitButton/Halves.js +1 -1
- package/dist/ui-public/src/actions/SplitButton/index.d.ts +3 -3
- package/dist/ui-public/src/actions/disabledReason.d.ts +4 -4
- package/dist/ui-public/src/actions/disabledReason.js +1 -1
- package/dist/ui-public/src/content/Avatar.d.ts +3 -3
- package/dist/ui-public/src/content/Avatar.js +2 -2
- package/dist/ui-public/src/content/CodeSnippet.d.ts +1 -1
- package/dist/ui-public/src/content/CopyableValue.d.ts +1 -1
- package/dist/ui-public/src/content/EnvironmentPill.d.ts +1 -1
- package/dist/ui-public/src/content/EnvironmentPill.js +1 -1
- package/dist/ui-public/src/content/IconAvatar.d.ts +1 -1
- package/dist/ui-public/src/content/ItemStatus.d.ts +1 -1
- package/dist/ui-public/src/content/Pill.d.ts +1 -1
- package/dist/ui-public/src/content/SmartDate.d.ts +1 -1
- package/dist/ui-public/src/content/UploadPreview/asset.js +200 -0
- package/dist/ui-public/src/content/UploadPreview/audio.js +120 -0
- package/dist/ui-public/src/content/{UploadPreview.d.ts → UploadPreview/box.d.ts} +10 -10
- package/dist/ui-public/src/content/{UploadPreview.js → UploadPreview/box.js} +7 -7
- package/dist/ui-public/src/content/{uploadPreviewFit.d.ts → UploadPreview/fit.d.ts} +2 -2
- package/dist/ui-public/src/content/{uploadPreviewFit.js → UploadPreview/fit.js} +3 -3
- package/dist/ui-public/src/content/UploadPreview/index.d.ts +61 -0
- package/dist/ui-public/src/content/UploadPreview/index.js +36 -0
- package/dist/ui-public/src/content/UploadPreview/presentation.js +63 -0
- package/dist/ui-public/src/content/UploadPreview/thumbhash.js +91 -0
- package/dist/ui-public/src/content/UploadPreview/upload.d.ts +104 -0
- package/dist/ui-public/src/content/UploadPreview/upload.js +112 -0
- package/dist/ui-public/src/content/UploadThreatTriangle.js +1 -1
- package/dist/ui-public/src/content/UsageMeter.d.ts +1 -1
- package/dist/ui-public/src/content/ValidityTriangles.d.ts +1 -1
- package/dist/ui-public/src/content/ValidityTriangles.js +1 -1
- package/dist/ui-public/src/feedback/BlankSlate.d.ts +5 -5
- package/dist/ui-public/src/feedback/Callout.d.ts +5 -5
- package/dist/ui-public/src/feedback/Callout.js +1 -1
- package/dist/ui-public/src/feedback/ProgressBar.d.ts +4 -4
- package/dist/ui-public/src/feedback/Spinner.d.ts +6 -6
- package/dist/ui-public/src/feedback/Spinner.js +1 -1
- package/dist/ui-public/src/form/DateInput.d.ts +13 -0
- package/dist/ui-public/src/form/DateInput.js +16 -0
- package/dist/ui-public/src/form/DateTimeInput/Base.d.ts +89 -0
- package/dist/ui-public/src/form/DateTimeInput/Base.js +330 -0
- package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.d.ts +29 -0
- package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.js +195 -0
- package/dist/ui-public/src/form/DateTimeInput/dateText.js +38 -0
- package/dist/ui-public/src/form/DateTimeInput/index.d.ts +10 -0
- package/dist/ui-public/src/form/DateTimeInput/index.js +18 -0
- package/dist/ui-public/src/form/DateTimeInput/value.js +31 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/Panel.js +167 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/index.d.ts +123 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/index.js +186 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/rangeLabel.js +46 -0
- package/dist/ui-public/src/form/FieldHint.d.ts +2 -2
- package/dist/ui-public/src/form/FieldWrapper.d.ts +9 -9
- package/dist/ui-public/src/form/FieldWrapper.js +3 -3
- package/dist/ui-public/src/form/FilterBuilder/Editor.js +123 -0
- package/dist/ui-public/src/form/FilterBuilder/index.d.ts +9 -0
- package/dist/ui-public/src/form/FilterBuilder/index.js +294 -0
- package/dist/ui-public/src/form/FilterBuilder/types.d.ts +188 -0
- package/dist/ui-public/src/form/FilterBuilder/values.js +86 -0
- package/dist/ui-public/src/form/InputGroup.d.ts +2 -2
- package/dist/ui-public/src/form/InputGroup.js +1 -1
- package/dist/ui-public/src/form/KeyValueList.d.ts +1 -1
- package/dist/ui-public/src/form/Label.d.ts +2 -2
- package/dist/ui-public/src/form/PasswordInput.js +1 -9
- package/dist/ui-public/src/form/RadioGroupInput.d.ts +2 -2
- package/dist/ui-public/src/form/RadioGroupInput.js +1 -1
- package/dist/ui-public/src/form/SelectInput/SelectMenu.d.ts +2 -2
- package/dist/ui-public/src/form/SelectInput/index.d.ts +3 -3
- package/dist/ui-public/src/form/SwitchInput.d.ts +2 -2
- package/dist/ui-public/src/form/SwitchList.d.ts +1 -1
- package/dist/ui-public/src/form/SwitchList.js +1 -1
- package/dist/ui-public/src/form/TableList.d.ts +2 -2
- package/dist/ui-public/src/form/TextareaInput.js +1 -1
- package/dist/ui-public/src/form/inputProps.d.ts +6 -6
- package/dist/ui-public/src/hooks/useAsyncSelectOptions.d.ts +1 -1
- package/dist/ui-public/src/hooks/useSmartRowClick.d.ts +1 -1
- package/dist/ui-public/src/hooks/useSmartRowClick.js +1 -1
- package/dist/ui-public/src/layout/Page/PageGroup.d.ts +2 -2
- package/dist/ui-public/src/layout/Page/PageGroup.js +1 -1
- package/dist/ui-public/src/layout/Pane/FormHeader.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/FormHeader.js +1 -1
- package/dist/ui-public/src/layout/Pane/ListFilter.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/ListPresets.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/PaneHeader.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/index.d.ts +2 -2
- package/dist/ui-public/src/layout/SidebarPanel.d.ts +1 -1
- package/dist/ui-public/src/layout/SplitPane/Rail.js +1 -1
- package/dist/ui-public/src/layout/SplitPane/index.d.ts +6 -6
- package/dist/ui-public/src/layout/Toolbar/AddNewButton.d.ts +2 -2
- package/dist/ui-public/src/layout/Toolbar/FilterToggle.d.ts +1 -1
- package/dist/ui-public/src/layout/Toolbar/FilterToggle.js +12 -4
- package/dist/ui-public/src/layout/Toolbar/Help.d.ts +3 -3
- package/dist/ui-public/src/layout/Toolbar/Help.js +2 -2
- package/dist/ui-public/src/layout/Toolbar/Note.d.ts +1 -1
- package/dist/ui-public/src/layout/Toolbar/Note.js +1 -1
- package/dist/ui-public/src/layout/Toolbar/Pagination.d.ts +1 -1
- package/dist/ui-public/src/layout/Toolbar/Pagination.js +1 -1
- package/dist/ui-public/src/layout/Toolbar/PresetsTitle.d.ts +3 -3
- package/dist/ui-public/src/layout/Toolbar/PresetsTitle.js +2 -2
- package/dist/ui-public/src/layout/Toolbar/PrimaryButton.d.ts +3 -3
- package/dist/ui-public/src/layout/Toolbar/Root.d.ts +1 -1
- package/dist/ui-public/src/layout/Toolbar/Root.js +4 -1
- package/dist/ui-public/src/layout/Toolbar/ToolbarTitleTrigger.js +1 -1
- package/dist/ui-public/src/lists/CardList.d.ts +3 -3
- package/dist/ui-public/src/lists/EmptySlot.d.ts +1 -1
- package/dist/ui-public/src/lists/InfoList/User.d.ts +1 -1
- package/dist/ui-public/src/lists/InfoList/Value.d.ts +1 -1
- package/dist/ui-public/src/lists/InfoList/Value.js +1 -1
- package/dist/ui-public/src/lists/InfoList/index.d.ts +3 -3
- package/dist/ui-public/src/lists/InfoList/index.js +1 -1
- package/dist/ui-public/src/lists/MediaCard.d.ts +7 -7
- package/dist/ui-public/src/lists/RecordRow/Image.d.ts +24 -0
- package/dist/ui-public/src/lists/RecordRow/Image.js +22 -0
- package/dist/ui-public/src/lists/RecordRow/List.d.ts +26 -0
- package/dist/ui-public/src/lists/RecordRow/List.js +30 -0
- package/dist/ui-public/src/lists/RecordRow/context.js +31 -0
- package/dist/ui-public/src/lists/RecordRow/index.d.ts +94 -0
- package/dist/ui-public/src/lists/RecordRow/index.js +122 -0
- package/dist/ui-public/src/lists/RecordRow/presentation.js +73 -0
- package/dist/ui-public/src/lists/RecordRow/types.d.ts +58 -0
- package/dist/ui-public/src/lists/RowList.d.ts +5 -5
- package/dist/ui-public/src/lists/SettingsList.d.ts +3 -3
- package/dist/ui-public/src/lists/SettingsList.js +2 -2
- package/dist/ui-public/src/lists/Table/Row.d.ts +5 -5
- package/dist/ui-public/src/lists/Table/Table.d.ts +3 -3
- package/dist/ui-public/src/lists/Table/TreeToggle.d.ts +2 -2
- package/dist/ui-public/src/lists/Table/TreeToggle.js +1 -1
- package/dist/ui-public/src/lists/Table/cells/LinkCell.d.ts +1 -1
- package/dist/ui-public/src/lists/TreeRow/Action.d.ts +1 -1
- package/dist/ui-public/src/lists/TreeRow/Action.js +1 -1
- package/dist/ui-public/src/lists/TreeRow/Link.d.ts +1 -1
- package/dist/ui-public/src/lists/TreeRow/Link.js +1 -1
- package/dist/ui-public/src/lists/UploadCard.d.ts +66 -3
- package/dist/ui-public/src/lists/UploadCard.js +116 -7
- package/dist/ui-public/src/lists/UserRow.d.ts +122 -0
- package/dist/ui-public/src/lists/UserRow.js +104 -0
- package/dist/ui-public/src/lists/dnd/DragHandle.d.ts +2 -2
- package/dist/ui-public/src/lists/dnd/SortableList.d.ts +1 -1
- package/dist/ui-public/src/lists/dnd/dropTargetClassName.d.ts +1 -1
- package/dist/ui-public/src/lists/dnd/tree/SortableTree.d.ts +2 -2
- package/dist/ui-public/src/navigation/Chevron.d.ts +4 -4
- package/dist/ui-public/src/navigation/Chevron.js +1 -1
- package/dist/ui-public/src/navigation/Link.d.ts +5 -5
- package/dist/ui-public/src/navigation/Link.js +1 -1
- package/dist/ui-public/src/navigation/NavList.d.ts +1 -1
- package/dist/ui-public/src/navigation/NavList.js +1 -1
- package/dist/ui-public/src/navigation/NavigationProvider.d.ts +1 -1
- package/dist/ui-public/src/navigation/SegmentedControl.d.ts +2 -2
- package/dist/ui-public/src/navigation/SettingsMenu.d.ts +8 -8
- package/dist/ui-public/src/navigation/SettingsMenu.js +1 -1
- package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNode.d.ts +4 -4
- package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNodeActions.d.ts +3 -0
- package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNodeActions.js +2 -1
- package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.d.ts +1 -1
- package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.js +1 -1
- package/dist/ui-public/src/overlays/HoverCard/index.js +1 -1
- package/dist/ui-public/src/overlays/NewZIndex.d.ts +1 -1
- package/dist/ui-public/src/overlays/NewZIndex.js +1 -1
- package/dist/ui-public/src/overlays/Popover.d.ts +1 -1
- package/dist/ui-public/src/overlays/PortalWrapper.js +1 -1
- package/dist/ui-public/src/overlays/useModalClose.js +3 -3
- package/dist/ui-public/src/patterns/ListDetail/FloatingDetail.js +71 -0
- package/dist/ui-public/src/patterns/ListDetail/Overview.js +2 -2
- package/dist/ui-public/src/patterns/ListDetail/Page.d.ts +8 -9
- package/dist/ui-public/src/patterns/ListDetail/Page.js +12 -9
- package/dist/ui-public/src/patterns/ListDetail/Panel.d.ts +2 -2
- package/dist/ui-public/src/patterns/ListDetail/Panel.js +12 -11
- package/dist/ui-public/src/patterns/ListDetail/Split.d.ts +25 -11
- package/dist/ui-public/src/patterns/ListDetail/Split.js +99 -115
- package/dist/ui-public/src/patterns/ListDetail/index.d.ts +4 -3
- package/dist/ui-public/src/patterns/ListDetail/useDetailWidthDrag.js +43 -0
- package/dist/ui-public/src/patterns/ListFormPage.d.ts +3 -3
- package/dist/ui-public/src/patterns/ListFormPage.js +1 -1
- package/dist/ui-public/src/semantic/Heading.d.ts +1 -1
- package/dist/ui-public/src/semantic/Heading.js +1 -1
- package/dist/ui-public/src/semantic/Image.js +1 -1
- package/dist/ui-public/src/semantic/Nav.d.ts +3 -3
- package/dist/ui-public/src/semantic/Nav.js +3 -3
- package/dist/ui-public/src/semantic/RawButton.d.ts +3 -3
- package/dist/ui-public/src/semantic/RawButton.js +1 -1
- package/dist/ui-public/src/semantic/Search.d.ts +1 -1
- package/dist/ui-public/src/semantic/Search.js +1 -1
- package/dist/ui-public/src/utils/format.d.ts +21 -0
- package/dist/ui-public/src/utils/format.js +20 -0
- package/dist/ui-public/src/utils/formatDate.d.ts +10 -2
- package/dist/ui-public/src/utils/formatDate.js +4 -4
- package/dist/ui-public/src/utils/tickBatcher.js +44 -0
- package/dist/ui-public/src/utils/timezones.js +277 -0
- package/dist/ui-public/src/utils/weekStartForLocale.js +25 -0
- package/dist/utils/format.d.ts +1 -0
- package/dist/utils/format.js +2 -0
- package/package.json +3 -3
- package/dist/ui-public/icons/brands/gitlab.js +0 -15
- package/dist/ui-public/icons/brands/markdown.js +0 -15
- package/dist/ui-public/icons/custom/language.js +0 -16
- package/dist/ui-public/icons/custom/masonry.js +0 -21
- package/dist/ui-public/icons/light/eye-slash.js +0 -16
- package/dist/ui-public/icons/light/eye.js +0 -16
- package/dist/ui-public/icons/regular/align-left.js +0 -15
- package/dist/ui-public/icons/regular/arrow-down-a-z.js +0 -16
- package/dist/ui-public/icons/regular/arrow-down-from-line.js +0 -16
- package/dist/ui-public/icons/regular/arrow-down-to-line.js +0 -15
- package/dist/ui-public/icons/regular/arrow-down.js +0 -16
- package/dist/ui-public/icons/regular/arrow-left.js +0 -16
- package/dist/ui-public/icons/regular/arrow-right-arrow-left.js +0 -16
- package/dist/ui-public/icons/regular/arrow-right-from-bracket.js +0 -16
- package/dist/ui-public/icons/regular/arrow-right.js +0 -16
- package/dist/ui-public/icons/regular/arrow-rotate-left.js +0 -15
- package/dist/ui-public/icons/regular/arrow-rotate-right.js +0 -16
- package/dist/ui-public/icons/regular/arrow-turn-up.js +0 -16
- package/dist/ui-public/icons/regular/arrow-up-arrow-down.js +0 -16
- package/dist/ui-public/icons/regular/arrow-up-from-line.js +0 -16
- package/dist/ui-public/icons/regular/arrow-up-right-from-square.js +0 -16
- package/dist/ui-public/icons/regular/arrow-up-to-line.js +0 -15
- package/dist/ui-public/icons/regular/arrow-up.js +0 -16
- package/dist/ui-public/icons/regular/arrows-from-line.js +0 -16
- package/dist/ui-public/icons/regular/arrows-rotate.js +0 -16
- package/dist/ui-public/icons/regular/arrows-to-line.js +0 -16
- package/dist/ui-public/icons/regular/arrows-turn-to-dots.js +0 -15
- package/dist/ui-public/icons/regular/badge-check.js +0 -15
- package/dist/ui-public/icons/regular/ballot-check.js +0 -15
- package/dist/ui-public/icons/regular/ban.js +0 -16
- package/dist/ui-public/icons/regular/bars.js +0 -16
- package/dist/ui-public/icons/regular/bold.js +0 -15
- package/dist/ui-public/icons/regular/bolt.js +0 -15
- package/dist/ui-public/icons/regular/book.js +0 -16
- package/dist/ui-public/icons/regular/bookmark.js +0 -16
- package/dist/ui-public/icons/regular/brackets-curly.js +0 -15
- package/dist/ui-public/icons/regular/browser.js +0 -16
- package/dist/ui-public/icons/regular/calendar-clock.js +0 -15
- package/dist/ui-public/icons/regular/calendar.js +0 -16
- package/dist/ui-public/icons/regular/chart-area.js +0 -15
- package/dist/ui-public/icons/regular/chevrons-down.js +0 -16
- package/dist/ui-public/icons/regular/chevrons-left.js +0 -16
- package/dist/ui-public/icons/regular/chevrons-right.js +0 -16
- package/dist/ui-public/icons/regular/circle-arrow-up.js +0 -16
- package/dist/ui-public/icons/regular/circle-check.js +0 -16
- package/dist/ui-public/icons/regular/circle-dot.js +0 -16
- package/dist/ui-public/icons/regular/circle-exclamation.js +0 -16
- package/dist/ui-public/icons/regular/circle-info.js +0 -16
- package/dist/ui-public/icons/regular/circle-question.js +0 -16
- package/dist/ui-public/icons/regular/clapperboard-play.js +0 -15
- package/dist/ui-public/icons/regular/clipboard.js +0 -15
- package/dist/ui-public/icons/regular/clock-rotate-left.js +0 -16
- package/dist/ui-public/icons/regular/clock.js +0 -16
- package/dist/ui-public/icons/regular/clone.js +0 -16
- package/dist/ui-public/icons/regular/cloud-arrow-down.js +0 -15
- package/dist/ui-public/icons/regular/code-branch.js +0 -16
- package/dist/ui-public/icons/regular/code-fork.js +0 -16
- package/dist/ui-public/icons/regular/command.js +0 -16
- package/dist/ui-public/icons/regular/comments.js +0 -16
- package/dist/ui-public/icons/regular/copy.js +0 -16
- package/dist/ui-public/icons/regular/cube.js +0 -15
- package/dist/ui-public/icons/regular/cubes.js +0 -15
- package/dist/ui-public/icons/regular/dash.js +0 -16
- package/dist/ui-public/icons/regular/database.js +0 -16
- package/dist/ui-public/icons/regular/diamond.js +0 -15
- package/dist/ui-public/icons/regular/down.js +0 -16
- package/dist/ui-public/icons/regular/download.js +0 -16
- package/dist/ui-public/icons/regular/earth-europe.js +0 -16
- package/dist/ui-public/icons/regular/ellipsis-vertical.js +0 -16
- package/dist/ui-public/icons/regular/ellipsis.js +0 -16
- package/dist/ui-public/icons/regular/envelope.js +0 -16
- package/dist/ui-public/icons/regular/expand.js +0 -16
- package/dist/ui-public/icons/regular/eye-dropper.js +0 -16
- package/dist/ui-public/icons/regular/eye.js +0 -16
- package/dist/ui-public/icons/regular/file-export.js +0 -16
- package/dist/ui-public/icons/regular/file-lines.js +0 -15
- package/dist/ui-public/icons/regular/file-shield.js +0 -15
- package/dist/ui-public/icons/regular/file.js +0 -15
- package/dist/ui-public/icons/regular/filter.js +0 -16
- package/dist/ui-public/icons/regular/fire-flame-curved.js +0 -15
- package/dist/ui-public/icons/regular/flask-gear.js +0 -16
- package/dist/ui-public/icons/regular/flask.js +0 -16
- package/dist/ui-public/icons/regular/folder-gear.js +0 -15
- package/dist/ui-public/icons/regular/folder-magnifying-glass.js +0 -15
- package/dist/ui-public/icons/regular/folder-open.js +0 -16
- package/dist/ui-public/icons/regular/folder-plus.js +0 -16
- package/dist/ui-public/icons/regular/folder.js +0 -16
- package/dist/ui-public/icons/regular/folders.js +0 -16
- package/dist/ui-public/icons/regular/gear.js +0 -16
- package/dist/ui-public/icons/regular/gift.js +0 -16
- package/dist/ui-public/icons/regular/globe.js +0 -16
- package/dist/ui-public/icons/regular/grid-2.js +0 -16
- package/dist/ui-public/icons/regular/grip-dots-vertical.js +0 -16
- package/dist/ui-public/icons/regular/hand.js +0 -16
- package/dist/ui-public/icons/regular/hourglass-clock.js +0 -16
- package/dist/ui-public/icons/regular/house.js +0 -16
- package/dist/ui-public/icons/regular/images.js +0 -16
- package/dist/ui-public/icons/regular/input-numeric.js +0 -15
- package/dist/ui-public/icons/regular/input-text.js +0 -15
- package/dist/ui-public/icons/regular/keyboard.js +0 -16
- package/dist/ui-public/icons/regular/layer-group.js +0 -16
- package/dist/ui-public/icons/regular/life-ring.js +0 -16
- package/dist/ui-public/icons/regular/link-simple.js +0 -15
- package/dist/ui-public/icons/regular/link.js +0 -16
- package/dist/ui-public/icons/regular/list-tree.js +0 -16
- package/dist/ui-public/icons/regular/list.js +0 -16
- package/dist/ui-public/icons/regular/magnifying-glass-chart.js +0 -15
- package/dist/ui-public/icons/regular/magnifying-glass.js +0 -16
- package/dist/ui-public/icons/regular/map-location-dot.js +0 -16
- package/dist/ui-public/icons/regular/memo.js +0 -16
- package/dist/ui-public/icons/regular/mobile-screen-button.js +0 -16
- package/dist/ui-public/icons/regular/octagon-exclamation.js +0 -16
- package/dist/ui-public/icons/regular/palette.js +0 -16
- package/dist/ui-public/icons/regular/paper-plane.js +0 -16
- package/dist/ui-public/icons/regular/paragraph.js +0 -15
- package/dist/ui-public/icons/regular/paste.js +0 -15
- package/dist/ui-public/icons/regular/pause.js +0 -16
- package/dist/ui-public/icons/regular/pen-paintbrush.js +0 -15
- package/dist/ui-public/icons/regular/pen-to-square.js +0 -16
- package/dist/ui-public/icons/regular/pen.js +0 -16
- package/dist/ui-public/icons/regular/people-arrows.js +0 -16
- package/dist/ui-public/icons/regular/photo-film.js +0 -15
- package/dist/ui-public/icons/regular/play.js +0 -16
- package/dist/ui-public/icons/regular/puzzle-piece.js +0 -15
- package/dist/ui-public/icons/regular/receipt.js +0 -16
- package/dist/ui-public/icons/regular/rectangle-barcode.js +0 -15
- package/dist/ui-public/icons/regular/rectangle-list.js +0 -15
- package/dist/ui-public/icons/regular/right-left.js +0 -15
- package/dist/ui-public/icons/regular/rotate-left.js +0 -16
- package/dist/ui-public/icons/regular/shield.js +0 -15
- package/dist/ui-public/icons/regular/sidebar-flip.js +0 -16
- package/dist/ui-public/icons/regular/sidebar.js +0 -16
- package/dist/ui-public/icons/regular/sliders.js +0 -16
- package/dist/ui-public/icons/regular/sparkles.js +0 -15
- package/dist/ui-public/icons/regular/square-caret-down.js +0 -15
- package/dist/ui-public/icons/regular/square-check.js +0 -15
- package/dist/ui-public/icons/regular/square-dashed.js +0 -15
- package/dist/ui-public/icons/regular/square-left.js +0 -16
- package/dist/ui-public/icons/regular/square-terminal.js +0 -16
- package/dist/ui-public/icons/regular/square-up-right.js +0 -16
- package/dist/ui-public/icons/regular/store.js +0 -16
- package/dist/ui-public/icons/regular/swap-arrows.js +0 -15
- package/dist/ui-public/icons/regular/table.js +0 -16
- package/dist/ui-public/icons/regular/tag.js +0 -16
- package/dist/ui-public/icons/regular/toggle-on.js +0 -15
- package/dist/ui-public/icons/regular/toolbox.js +0 -16
- package/dist/ui-public/icons/regular/trash-undo.js +0 -15
- package/dist/ui-public/icons/regular/trash.js +0 -16
- package/dist/ui-public/icons/regular/triangle-exclamation.js +0 -16
- package/dist/ui-public/icons/regular/turn-up.js +0 -16
- package/dist/ui-public/icons/regular/user-group.js +0 -15
- package/dist/ui-public/icons/regular/user-helmet-safety.js +0 -16
- package/dist/ui-public/icons/regular/user-lock.js +0 -16
- package/dist/ui-public/icons/regular/user-minus.js +0 -16
- package/dist/ui-public/icons/regular/user-tie.js +0 -15
- package/dist/ui-public/icons/regular/user.js +0 -16
- package/dist/ui-public/icons/regular/users.js +0 -15
- package/dist/ui-public/icons/regular/video.js +0 -15
- package/dist/ui-public/icons/regular/webhook.js +0 -15
- package/dist/ui-public/icons/regular/wrench.js +0 -15
- package/dist/ui-public/icons/regular/xmark.js +0 -16
- package/dist/ui-public/icons/solid/align-center.js +0 -16
- package/dist/ui-public/icons/solid/align-justify.js +0 -16
- package/dist/ui-public/icons/solid/align-left.js +0 -16
- package/dist/ui-public/icons/solid/align-right.js +0 -16
- package/dist/ui-public/icons/solid/arrow-rotate-left.js +0 -16
- package/dist/ui-public/icons/solid/arrow-rotate-right.js +0 -16
- package/dist/ui-public/icons/solid/bold.js +0 -16
- package/dist/ui-public/icons/solid/circle-exclamation.js +0 -16
- package/dist/ui-public/icons/solid/closed-captioning.js +0 -15
- package/dist/ui-public/icons/solid/code.js +0 -16
- package/dist/ui-public/icons/solid/compress.js +0 -16
- package/dist/ui-public/icons/solid/download.js +0 -15
- package/dist/ui-public/icons/solid/expand.js +0 -16
- package/dist/ui-public/icons/solid/file-arrow-down.js +0 -15
- package/dist/ui-public/icons/solid/file-code.js +0 -16
- package/dist/ui-public/icons/solid/grid-2.js +0 -16
- package/dist/ui-public/icons/solid/h1.js +0 -16
- package/dist/ui-public/icons/solid/h2.js +0 -16
- package/dist/ui-public/icons/solid/h3.js +0 -16
- package/dist/ui-public/icons/solid/h4.js +0 -16
- package/dist/ui-public/icons/solid/h5.js +0 -16
- package/dist/ui-public/icons/solid/h6.js +0 -16
- package/dist/ui-public/icons/solid/highlighter.js +0 -16
- package/dist/ui-public/icons/solid/horizontal-rule.js +0 -16
- package/dist/ui-public/icons/solid/image.js +0 -16
- package/dist/ui-public/icons/solid/indent.js +0 -16
- package/dist/ui-public/icons/solid/italic.js +0 -16
- package/dist/ui-public/icons/solid/link.js +0 -16
- package/dist/ui-public/icons/solid/list-ol.js +0 -16
- package/dist/ui-public/icons/solid/list-ul.js +0 -16
- package/dist/ui-public/icons/solid/location-dot.js +0 -16
- package/dist/ui-public/icons/solid/music.js +0 -15
- package/dist/ui-public/icons/solid/outdent.js +0 -16
- package/dist/ui-public/icons/solid/paragraph.js +0 -16
- package/dist/ui-public/icons/solid/plus.js +0 -16
- package/dist/ui-public/icons/solid/quote-right.js +0 -16
- package/dist/ui-public/icons/solid/rectangle-code.js +0 -16
- package/dist/ui-public/icons/solid/square-plus.js +0 -16
- package/dist/ui-public/icons/solid/strikethrough.js +0 -16
- package/dist/ui-public/icons/solid/subtitles.js +0 -15
- package/dist/ui-public/icons/solid/table.js +0 -16
- package/dist/ui-public/icons/solid/triangle-exclamation.js +0 -16
- package/dist/ui-public/icons/solid/underline.js +0 -16
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/unfold-vertical.svg?react
|
|
4
|
+
var SvgUnfoldVertical = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-unfold-vertical",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("path", { d: "M12 22v-6" }),
|
|
20
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8V2" }),
|
|
21
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12H2" }),
|
|
22
|
+
/* @__PURE__ */ jsx("path", { d: "M10 12H8" }),
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M16 12h-2" }),
|
|
24
|
+
/* @__PURE__ */ jsx("path", { d: "M22 12h-2" }),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "m15 19-3 3-3-3" }),
|
|
26
|
+
/* @__PURE__ */ jsx("path", { d: "m15 5-3-3-3 3" })
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
var ForwardRef = forwardRef(SvgUnfoldVertical);
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/user-lock.svg?react
|
|
4
|
+
var SvgUserLock = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-user-lock",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("path", { d: "M19 16v-2a2 2 0 0 0-4 0v2" }),
|
|
20
|
+
/* @__PURE__ */ jsx("path", { d: "M9.5 15H7a4 4 0 0 0-4 4v2" }),
|
|
21
|
+
/* @__PURE__ */ jsx("circle", {
|
|
22
|
+
cx: 10,
|
|
23
|
+
cy: 7,
|
|
24
|
+
r: 4
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx("rect", {
|
|
27
|
+
x: 13,
|
|
28
|
+
y: 16,
|
|
29
|
+
width: 8,
|
|
30
|
+
height: 5,
|
|
31
|
+
rx: .899
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
var ForwardRef = forwardRef(SvgUserLock);
|
|
36
|
+
//#endregion
|
|
37
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/user-minus.svg?react
|
|
4
|
+
var SvgUserMinus = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-user-minus",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
|
|
20
|
+
/* @__PURE__ */ jsx("circle", {
|
|
21
|
+
cx: 9,
|
|
22
|
+
cy: 7,
|
|
23
|
+
r: 4
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ jsx("line", {
|
|
26
|
+
x1: 22,
|
|
27
|
+
x2: 16,
|
|
28
|
+
y1: 11,
|
|
29
|
+
y2: 11
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
var ForwardRef = forwardRef(SvgUserMinus);
|
|
34
|
+
//#endregion
|
|
35
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/user-round-arrow-left.svg?react
|
|
4
|
+
var SvgUserRoundArrowLeft = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-user-round-arrow-left",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("path", { d: "m19 16-3 3" }),
|
|
20
|
+
/* @__PURE__ */ jsx("path", { d: "M2 21a8 8 0 0 1 12.664-6.5" }),
|
|
21
|
+
/* @__PURE__ */ jsx("path", { d: "M22 19h-6l3 3" }),
|
|
22
|
+
/* @__PURE__ */ jsx("circle", {
|
|
23
|
+
cx: 10,
|
|
24
|
+
cy: 8,
|
|
25
|
+
r: 5
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
var ForwardRef = forwardRef(SvgUserRoundArrowLeft);
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/user.svg?react
|
|
4
|
+
var SvgUser = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-user",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }), /* @__PURE__ */ jsx("circle", {
|
|
19
|
+
cx: 12,
|
|
20
|
+
cy: 7,
|
|
21
|
+
r: 4
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
24
|
+
var ForwardRef = forwardRef(SvgUser);
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/x.svg?react
|
|
4
|
+
var SvgX = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-x",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })]
|
|
19
|
+
});
|
|
20
|
+
var ForwardRef = forwardRef(SvgX);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ForwardRef as default };
|
|
@@ -6,7 +6,7 @@ var en_default = {
|
|
|
6
6
|
"a11y.pagination.goToPage": "Go to page {page}",
|
|
7
7
|
"a11y.pagination.label": "{name} pagination",
|
|
8
8
|
"a11y.pagination.next": "Next page",
|
|
9
|
-
"a11y.pagination.perPage": "
|
|
9
|
+
"a11y.pagination.perPage": "Results per page",
|
|
10
10
|
"a11y.pagination.previous": "Previous page",
|
|
11
11
|
"a11y.selectInput.remove": "Remove",
|
|
12
12
|
"a11y.table.selectAll": "Select all rows",
|
|
@@ -15,18 +15,37 @@ var en_default = {
|
|
|
15
15
|
"activityLog.noResults.description": "Nothing matches your filters. Try different filters, or remove some of them.",
|
|
16
16
|
"activityLog.noResults.title": "No results",
|
|
17
17
|
"admin.listDetail.panel.close": "Hide details",
|
|
18
|
+
"admin.listDetail.panel.empty.description": "Click a row to see its details here.",
|
|
19
|
+
"admin.listDetail.panel.empty.title": "Nothing selected",
|
|
18
20
|
"admin.listDetail.panel.failed.text": "It may no longer exist, or the request failed.",
|
|
19
21
|
"admin.listDetail.panel.failed.title": "The event could not be loaded",
|
|
20
22
|
"admin.listDetail.panel.loading": "Loading the event…",
|
|
21
23
|
"admin.listPresets.all": "All",
|
|
24
|
+
"audioPlayer.pause": "Pause",
|
|
25
|
+
"audioPlayer.play": "Play",
|
|
22
26
|
"blankSlate.documentation": "Documentation",
|
|
23
|
-
"clipboard.copied": "Copied
|
|
27
|
+
"clipboard.copied": "Copied",
|
|
24
28
|
"clipboard.copy": "Copy",
|
|
25
29
|
"clipboard.copyId": "Copy ID",
|
|
26
30
|
"clipboard.open": "Open in a new tab",
|
|
27
31
|
"date.today": "Today",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
32
|
+
"dateTimeInput.calendar": "Calendar",
|
|
33
|
+
"dateTimeInput.currentMonth": "Current month",
|
|
34
|
+
"dateTimeInput.nextMonth": "Next month",
|
|
35
|
+
"dateTimeInput.openCalendar": "Open the calendar",
|
|
36
|
+
"dateTimeInput.previousMonth": "Previous month",
|
|
37
|
+
"dateTimeInput.time": "Time",
|
|
38
|
+
"dateTimeInput.timezone": "Time zone",
|
|
39
|
+
"dateTimeRangeInput.apply": "Apply",
|
|
40
|
+
"dateTimeRangeInput.custom": "Custom range",
|
|
41
|
+
"dateTimeRangeInput.end": "End date",
|
|
42
|
+
"dateTimeRangeInput.endTime": "End time",
|
|
43
|
+
"dateTimeRangeInput.from": "From {date}",
|
|
44
|
+
"dateTimeRangeInput.start": "Start date",
|
|
45
|
+
"dateTimeRangeInput.startTime": "Start time",
|
|
46
|
+
"dateTimeRangeInput.until": "Until {date}",
|
|
47
|
+
"dropdown.search": "Search…",
|
|
48
|
+
"dropdown.selectOption": "Select an option below:",
|
|
30
49
|
"editorToolbar.addImage": "Add image",
|
|
31
50
|
"editorToolbar.addTable": "Add table",
|
|
32
51
|
"editorToolbar.alignCenter": "Align center",
|
|
@@ -44,6 +63,16 @@ var en_default = {
|
|
|
44
63
|
"environment.primary": "Primary",
|
|
45
64
|
"environment.sandbox": "Sandbox",
|
|
46
65
|
"field.clearValue": "Clear",
|
|
66
|
+
"filterBuilder.add": "Add filter",
|
|
67
|
+
"filterBuilder.addMenu": "Choose what to filter by",
|
|
68
|
+
"filterBuilder.argument": "{argument} of {field}",
|
|
69
|
+
"filterBuilder.clear": "Clear filters",
|
|
70
|
+
"filterBuilder.condition": "{field} {operator}",
|
|
71
|
+
"filterBuilder.empty": "No filters set",
|
|
72
|
+
"filterBuilder.field": "Field",
|
|
73
|
+
"filterBuilder.operator": "Operator of {field}",
|
|
74
|
+
"filterBuilder.remove": "Remove the {field} filter",
|
|
75
|
+
"filterBuilder.value": "Value of {field}",
|
|
47
76
|
"form.localizedField": "The values for this field vary depending on the locale",
|
|
48
77
|
"form.optional": "(optional)",
|
|
49
78
|
"form.password.hide": "Hide password",
|
|
@@ -55,7 +84,7 @@ var en_default = {
|
|
|
55
84
|
"hotkeys.closePopover": "Close popover",
|
|
56
85
|
"hotkeys.filterList": "Filter the list",
|
|
57
86
|
"idText.label": "ID",
|
|
58
|
-
"imageMetadata.analyzingUpload": "Upload complete,
|
|
87
|
+
"imageMetadata.analyzingUpload": "Upload complete, analyzing…",
|
|
59
88
|
"imageMetadata.cancelUpload": "Cancel",
|
|
60
89
|
"imageMetadata.noMetadata": "No metadata set",
|
|
61
90
|
"imageMetadata.uploadInProgress": "{percent, plural, =0 {In queue…} one {Uploading ({percent}%)…} other {Uploading ({percent}%)…}}",
|
|
@@ -74,6 +103,8 @@ var en_default = {
|
|
|
74
103
|
"pagination.next": "Next",
|
|
75
104
|
"pagination.previous": "Previous",
|
|
76
105
|
"pagination.show": "Show: {perPage}",
|
|
106
|
+
"recordRow.fallbackTitle": "Record #{id}",
|
|
107
|
+
"recordRow.loading": "Loading the record…",
|
|
77
108
|
"selectInput.create": "Create “{value}”",
|
|
78
109
|
"selectInput.loading": "Loading…",
|
|
79
110
|
"selectInput.noOptions": "No options",
|
|
@@ -107,7 +138,16 @@ var en_default = {
|
|
|
107
138
|
"toolbar.help": "About this page",
|
|
108
139
|
"toolbar.learnMore": "Learn more",
|
|
109
140
|
"upload.threatDetected": "Threat detected",
|
|
141
|
+
"uploadCard.fallbackTitle": "Asset #{id}",
|
|
142
|
+
"uploadCard.loading": "Loading the asset…",
|
|
143
|
+
"uploadPreview.encodingVideo": "Encoding video…",
|
|
110
144
|
"usage.meterLabel": "{percent}% of the limit",
|
|
145
|
+
"userType.account": "Project owner",
|
|
146
|
+
"userType.apiToken": "API token",
|
|
147
|
+
"userType.organization": "Project owner",
|
|
148
|
+
"userType.siteInvitation": "Invitation",
|
|
149
|
+
"userType.ssoUser": "SSO user",
|
|
150
|
+
"userType.user": "Collaborator",
|
|
111
151
|
"validityTriangle.current": "Current version not valid",
|
|
112
152
|
"validityTriangle.invalidVersion": "This version is not valid",
|
|
113
153
|
"validityTriangle.published": "Published version not valid"
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* A translation key with its values, for example `{ id: 'button.save' }`.
|
|
4
|
-
* The texts adapter of the host gives the text of the key
|
|
5
|
-
*
|
|
6
|
-
* `BundledTexts`. See the "Texts provider" docs page.
|
|
4
|
+
* The texts adapter of the host gives the text of the key. See "Texts" on
|
|
5
|
+
* the `Canvas` docs page.
|
|
7
6
|
*/
|
|
8
7
|
export type IntlMessage = {
|
|
9
8
|
id: string;
|
|
@@ -21,7 +20,7 @@ export type HtmlMessage = {
|
|
|
21
20
|
*/
|
|
22
21
|
export type Message = string | ReactElement | IntlMessage | HtmlMessage;
|
|
23
22
|
/**
|
|
24
|
-
* A text that goes in an attribute (for example `aria-label`),
|
|
23
|
+
* A text that goes in an attribute (for example `aria-label`), so it cannot
|
|
25
24
|
* be a React element or HTML.
|
|
26
25
|
*/
|
|
27
26
|
export type TextMessage = string | IntlMessage;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** A key of a text of ui-public, as in `locales/en.json` */
|
|
2
|
-
export type UiTextKey = 'MultipleSelectionActionBar.changeSelection' | 'MultipleSelectionActionBar.deselectAll' | 'a11y.filterToggle' | 'a11y.pagination.goToPage' | 'a11y.pagination.label' | 'a11y.pagination.next' | 'a11y.pagination.perPage' | 'a11y.pagination.previous' | 'a11y.selectInput.remove' | 'a11y.table.selectAll' | 'actionGroups.general' | 'actionGroups.list' | 'activityLog.noResults.description' | 'activityLog.noResults.title' | 'admin.listDetail.panel.close' | 'admin.listDetail.panel.failed.text' | 'admin.listDetail.panel.failed.title' | 'admin.listDetail.panel.loading' | 'admin.listPresets.all' | 'blankSlate.documentation' | 'clipboard.copied' | 'clipboard.copy' | 'clipboard.copyId' | 'clipboard.open' | 'date.today' | 'dropdown.search' | 'dropdown.selectOption' | 'editorToolbar.addImage' | 'editorToolbar.addTable' | 'editorToolbar.alignCenter' | 'editorToolbar.alignJustify' | 'editorToolbar.alignLeft' | 'editorToolbar.alignRight' | 'editorToolbar.closeFullscreen' | 'editorToolbar.indent' | 'editorToolbar.label' | 'editorToolbar.openFullscreen' | 'editorToolbar.outdent' | 'editorToolbar.redo' | 'editorToolbar.source' | 'editorToolbar.undo' | 'environment.primary' | 'environment.sandbox' | 'field.clearValue' | 'form.localizedField' | 'form.optional' | 'form.password.hide' | 'form.password.show' | 'framedImage.enlarged' | 'fullTextQuery.close' | 'fullTextQuery.placeholder' | 'hotkeys.closeModal' | 'hotkeys.closePopover' | 'hotkeys.filterList' | 'idText.label' | 'imageMetadata.analyzingUpload' | 'imageMetadata.cancelUpload' | 'imageMetadata.noMetadata' | 'imageMetadata.uploadInProgress' | 'item.shortStatus.draft' | 'item.shortStatus.new' | 'item.shortStatus.published' | 'item.shortStatus.updated' | 'itemTable.columns.available' | 'itemTable.columns.displayed' | 'itemTable.columns.hide' | 'keyValueList.value' | 'listFilter.noResults.description' | 'listFilter.noResults.title' | 'messages.confirm.defaultCancel' | 'modal.close' | 'pagination.next' | 'pagination.previous' | 'pagination.show' | 'selectInput.create' | 'selectInput.loading' | 'selectInput.noOptions' | 'settingsMenu.needsAttention' | 'settingsMenu.opensNewTab' | 'shortcut.or' | 'shortcut.then' | 'shortcutsPanel.close' | 'shortcutsPanel.noResults' | 'shortcutsPanel.title' | 'sidebar.actions' | 'sidebar.hide' | 'sidebar.keepOpen' | 'sidebar.show' | 'sidebar.toggleLeft' | 'sidebar.toggleRight' | 'sidebarEditMode.reorder' | 'slate.slash.blockquote.title' | 'slate.toolbarButton.bulletedList' | 'slate.toolbarButton.code' | 'slate.toolbarButton.emphasis' | 'slate.toolbarButton.link' | 'slate.toolbarButton.numberedList' | 'slate.toolbarButton.strikethrough' | 'slate.toolbarButton.strong' | 'spinner.label' | 'splitButton.moreActions' | 'table.row.loading' | 'tableList.removeRow' | 'toolbar.goBack' | 'toolbar.help' | 'toolbar.learnMore' | 'upload.threatDetected' | 'usage.meterLabel' | 'validityTriangle.current' | 'validityTriangle.invalidVersion' | 'validityTriangle.published';
|
|
2
|
+
export type UiTextKey = 'MultipleSelectionActionBar.changeSelection' | 'MultipleSelectionActionBar.deselectAll' | 'a11y.filterToggle' | 'a11y.pagination.goToPage' | 'a11y.pagination.label' | 'a11y.pagination.next' | 'a11y.pagination.perPage' | 'a11y.pagination.previous' | 'a11y.selectInput.remove' | 'a11y.table.selectAll' | 'actionGroups.general' | 'actionGroups.list' | 'activityLog.noResults.description' | 'activityLog.noResults.title' | 'admin.listDetail.panel.close' | 'admin.listDetail.panel.empty.description' | 'admin.listDetail.panel.empty.title' | 'admin.listDetail.panel.failed.text' | 'admin.listDetail.panel.failed.title' | 'admin.listDetail.panel.loading' | 'admin.listPresets.all' | 'audioPlayer.pause' | 'audioPlayer.play' | 'blankSlate.documentation' | 'clipboard.copied' | 'clipboard.copy' | 'clipboard.copyId' | 'clipboard.open' | 'date.today' | 'dateTimeInput.calendar' | 'dateTimeInput.currentMonth' | 'dateTimeInput.nextMonth' | 'dateTimeInput.openCalendar' | 'dateTimeInput.previousMonth' | 'dateTimeInput.time' | 'dateTimeInput.timezone' | 'dateTimeRangeInput.apply' | 'dateTimeRangeInput.custom' | 'dateTimeRangeInput.end' | 'dateTimeRangeInput.endTime' | 'dateTimeRangeInput.from' | 'dateTimeRangeInput.start' | 'dateTimeRangeInput.startTime' | 'dateTimeRangeInput.until' | 'dropdown.search' | 'dropdown.selectOption' | 'editorToolbar.addImage' | 'editorToolbar.addTable' | 'editorToolbar.alignCenter' | 'editorToolbar.alignJustify' | 'editorToolbar.alignLeft' | 'editorToolbar.alignRight' | 'editorToolbar.closeFullscreen' | 'editorToolbar.indent' | 'editorToolbar.label' | 'editorToolbar.openFullscreen' | 'editorToolbar.outdent' | 'editorToolbar.redo' | 'editorToolbar.source' | 'editorToolbar.undo' | 'environment.primary' | 'environment.sandbox' | 'field.clearValue' | 'filterBuilder.add' | 'filterBuilder.addMenu' | 'filterBuilder.argument' | 'filterBuilder.clear' | 'filterBuilder.condition' | 'filterBuilder.empty' | 'filterBuilder.field' | 'filterBuilder.operator' | 'filterBuilder.remove' | 'filterBuilder.value' | 'form.localizedField' | 'form.optional' | 'form.password.hide' | 'form.password.show' | 'framedImage.enlarged' | 'fullTextQuery.close' | 'fullTextQuery.placeholder' | 'hotkeys.closeModal' | 'hotkeys.closePopover' | 'hotkeys.filterList' | 'idText.label' | 'imageMetadata.analyzingUpload' | 'imageMetadata.cancelUpload' | 'imageMetadata.noMetadata' | 'imageMetadata.uploadInProgress' | 'item.shortStatus.draft' | 'item.shortStatus.new' | 'item.shortStatus.published' | 'item.shortStatus.updated' | 'itemTable.columns.available' | 'itemTable.columns.displayed' | 'itemTable.columns.hide' | 'keyValueList.value' | 'listFilter.noResults.description' | 'listFilter.noResults.title' | 'messages.confirm.defaultCancel' | 'modal.close' | 'pagination.next' | 'pagination.previous' | 'pagination.show' | 'recordRow.fallbackTitle' | 'recordRow.loading' | 'selectInput.create' | 'selectInput.loading' | 'selectInput.noOptions' | 'settingsMenu.needsAttention' | 'settingsMenu.opensNewTab' | 'shortcut.or' | 'shortcut.then' | 'shortcutsPanel.close' | 'shortcutsPanel.noResults' | 'shortcutsPanel.title' | 'sidebar.actions' | 'sidebar.hide' | 'sidebar.keepOpen' | 'sidebar.show' | 'sidebar.toggleLeft' | 'sidebar.toggleRight' | 'sidebarEditMode.reorder' | 'slate.slash.blockquote.title' | 'slate.toolbarButton.bulletedList' | 'slate.toolbarButton.code' | 'slate.toolbarButton.emphasis' | 'slate.toolbarButton.link' | 'slate.toolbarButton.numberedList' | 'slate.toolbarButton.strikethrough' | 'slate.toolbarButton.strong' | 'spinner.label' | 'splitButton.moreActions' | 'table.row.loading' | 'tableList.removeRow' | 'toolbar.goBack' | 'toolbar.help' | 'toolbar.learnMore' | 'upload.threatDetected' | 'uploadCard.fallbackTitle' | 'uploadCard.loading' | 'uploadPreview.encodingVideo' | 'usage.meterLabel' | 'userType.account' | 'userType.apiToken' | 'userType.organization' | 'userType.siteInvitation' | 'userType.ssoUser' | 'userType.user' | 'validityTriangle.current' | 'validityTriangle.invalidVersion' | 'validityTriangle.published';
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region ../ui-public/src/actions/Actions/ActionTooltip.tsx
|
|
6
6
|
/**
|
|
7
7
|
* A tooltip with the name and the keys of an action of the registry.
|
|
8
|
-
* `label`
|
|
8
|
+
* `label` replaces the name (the label of an icon-only button).
|
|
9
9
|
* Without `label`, an action with no keys has no tooltip: the button already
|
|
10
10
|
* shows its name.
|
|
11
11
|
*/
|
|
@@ -65,7 +65,7 @@ export type Action = {
|
|
|
65
65
|
*/
|
|
66
66
|
layerSafe?: boolean;
|
|
67
67
|
/**
|
|
68
|
-
* The area of
|
|
68
|
+
* The area of DatoCMS that holds the page or the action, for example
|
|
69
69
|
* "Usage" for "By project". The command palette and the list of the
|
|
70
70
|
* shortcuts show it before the name, because a short name is not clear
|
|
71
71
|
* without its menu group.
|
|
@@ -128,7 +128,7 @@ export declare function ActionsProvider({ children }: {
|
|
|
128
128
|
* A layer of actions, for example a dialog. While it is open, the actions
|
|
129
129
|
* under it are off: all of them under a dialog, the page and the regions
|
|
130
130
|
* under a popover. An action with `layerSafe` stays on. A dialog that opens
|
|
131
|
-
* later is on top,
|
|
131
|
+
* later is on top, even when it is not inside the other dialogs in the tree.
|
|
132
132
|
*/
|
|
133
133
|
export declare function ActionLayer({ kind, actions, active, children, }: {
|
|
134
134
|
/**
|
|
@@ -213,7 +213,7 @@ var ActionsRegistry = class {
|
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
215
|
* The action with this id: the active one, else the one that would win.
|
|
216
|
-
* A menu runs an action of a region
|
|
216
|
+
* A menu runs an action of a region even when the pointer is in the menu.
|
|
217
217
|
* With an `origin` (the dropdown of the menu), only the regions that hold
|
|
218
218
|
* the origin count: each row of a list registers the same ids, and the
|
|
219
219
|
* menu of a row must not run the action of another row, nor a menu out of
|
|
@@ -345,7 +345,7 @@ function RootActionsProvider({ children }) {
|
|
|
345
345
|
* A layer of actions, for example a dialog. While it is open, the actions
|
|
346
346
|
* under it are off: all of them under a dialog, the page and the regions
|
|
347
347
|
* under a popover. An action with `layerSafe` stays on. A dialog that opens
|
|
348
|
-
* later is on top,
|
|
348
|
+
* later is on top, even when it is not inside the other dialogs in the tree.
|
|
349
349
|
*/
|
|
350
350
|
function ActionLayer({ kind, actions, active = true, children }) {
|
|
351
351
|
const registry = useContext(RegistryContext);
|
|
@@ -15,7 +15,7 @@ export type ButtonTone = 'soft' | 'ghost' | 'primary' | 'alert' | 'ghost-alert'
|
|
|
15
15
|
*/
|
|
16
16
|
export type ButtonSize = 'micro' | 'milli' | 'small' | 'field' | 'regular' | 'large';
|
|
17
17
|
/**
|
|
18
|
-
* The size of the buttons
|
|
18
|
+
* The size of the buttons in their container, when a button does not give one:
|
|
19
19
|
* "small" by default, "milli" in a toolbar (the toolbar is short: two
|
|
20
20
|
* insets plus one line of the title, and a "small" button almost touches
|
|
21
21
|
* its top and bottom edges), "field" in a toolbar of fields (a filter bar:
|
|
@@ -35,8 +35,8 @@ type WithLabel = {
|
|
|
35
35
|
tooltip?: ActionTooltipOptions;
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
|
-
* The name and the keys of an action of the registry (`
|
|
39
|
-
* the tooltip. An icon-only button shows its label
|
|
38
|
+
* The name and the keys of an action of the registry (`Actions`), in
|
|
39
|
+
* the tooltip. An icon-only button shows its label instead of the name.
|
|
40
40
|
* When the action has no keys or does not exist, the tooltip has no keys:
|
|
41
41
|
* an icon-only button shows its label, and a button with a label shows no
|
|
42
42
|
* tooltip.
|
|
@@ -54,10 +54,15 @@ export type ActionTooltipOptions = {
|
|
|
54
54
|
};
|
|
55
55
|
/** The tooltip of an icon-only button, with options */
|
|
56
56
|
type TooltipOptions =
|
|
57
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* A text (the label by default). "long" is for a paragraph or a list.
|
|
59
|
+
* With "interactive", the text shows in a HoverCard: the pointer can move
|
|
60
|
+
* into it, and the user can select the text.
|
|
61
|
+
*/
|
|
58
62
|
{
|
|
59
63
|
content?: Message;
|
|
60
64
|
long?: boolean;
|
|
65
|
+
interactive?: boolean;
|
|
61
66
|
placement?: Placement;
|
|
62
67
|
action?: never;
|
|
63
68
|
} | ActionTooltipOptions;
|
|
@@ -86,7 +91,7 @@ type ClickHandler = (event: React.MouseEvent<HTMLButtonElement>) => unknown;
|
|
|
86
91
|
/** The state of a button element. A link cannot show it. */
|
|
87
92
|
type ButtonElementState = {
|
|
88
93
|
/**
|
|
89
|
-
* The action runs: the button shows a spinner
|
|
94
|
+
* The action runs: the button shows a spinner instead of the icon
|
|
90
95
|
* (before the label when there is no icon), and it is disabled. An
|
|
91
96
|
* "onClick" that returns a promise sets it automatically.
|
|
92
97
|
*/
|
|
@@ -110,9 +115,9 @@ type ClickAction = ButtonElementState & {
|
|
|
110
115
|
submit?: never;
|
|
111
116
|
newTab?: never;
|
|
112
117
|
};
|
|
113
|
-
/** A link to a page of
|
|
118
|
+
/** A link to a page of DatoCMS */
|
|
114
119
|
type LinkAction = LinkElementState & {
|
|
115
|
-
/** The page of
|
|
120
|
+
/** The page of DatoCMS: the path with its query, for example "/editor?tab=x" */
|
|
116
121
|
to: string;
|
|
117
122
|
/** Opens the page in a new tab (for example from a modal, to keep it open) */
|
|
118
123
|
newTab?: boolean;
|
|
@@ -120,7 +125,7 @@ type LinkAction = LinkElementState & {
|
|
|
120
125
|
href?: never;
|
|
121
126
|
submit?: never;
|
|
122
127
|
};
|
|
123
|
-
/** A link to
|
|
128
|
+
/** A link to another site */
|
|
124
129
|
type ExternalLinkAction = LinkElementState & {
|
|
125
130
|
href: string;
|
|
126
131
|
/** Opens the page in a new tab (for example the docs) */
|
|
@@ -161,15 +166,15 @@ export type ButtonProps = {
|
|
|
161
166
|
*/
|
|
162
167
|
tone?: ButtonTone;
|
|
163
168
|
/**
|
|
164
|
-
* The size
|
|
165
|
-
*
|
|
169
|
+
* The default size: "milli" in a toolbar, "small" out of a toolbar (see
|
|
170
|
+
* useButtonSize)
|
|
166
171
|
*/
|
|
167
172
|
size?: ButtonSize;
|
|
168
173
|
/** The button fills the width of its container */
|
|
169
174
|
expand?: boolean;
|
|
170
175
|
/** Give a reason when the user must know why the button is disabled */
|
|
171
176
|
disabled?: Disabled;
|
|
172
|
-
/** Only for the
|
|
177
|
+
/** Only for the position of the button (margin, alignment), not for its look */
|
|
173
178
|
className?: string;
|
|
174
179
|
} & HtmlProps & ButtonContent & ButtonAction;
|
|
175
180
|
/** The classes of the look of a button. Button and ButtonTrigger use them. */
|
|
@@ -2,6 +2,7 @@ import { isHtmlMessage, isIntlMessage } from "../Message.js";
|
|
|
2
2
|
import { useTranslation } from "../i18n.js";
|
|
3
3
|
import Spinner_default from "../feedback/Spinner.js";
|
|
4
4
|
import Link from "../navigation/Link.js";
|
|
5
|
+
import HoverCard_default from "../overlays/HoverCard/index.js";
|
|
5
6
|
import Tooltip from "../overlays/Tooltip/index.js";
|
|
6
7
|
import RawButton from "../semantic/RawButton.js";
|
|
7
8
|
import { ActionTooltip } from "./Actions/ActionTooltip.js";
|
|
@@ -11,7 +12,7 @@ import classNames from "classnames";
|
|
|
11
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
//#region ../ui-public/src/actions/Button.tsx
|
|
13
14
|
/**
|
|
14
|
-
* The size of the buttons
|
|
15
|
+
* The size of the buttons in their container, when a button does not give one:
|
|
15
16
|
* "small" by default, "milli" in a toolbar (the toolbar is short: two
|
|
16
17
|
* insets plus one line of the title, and a "small" button almost touches
|
|
17
18
|
* its top and bottom edges), "field" in a toolbar of fields (a filter bar:
|
|
@@ -153,6 +154,11 @@ var Button = React.forwardRef(function Button({ tone = "soft", size, expand, dis
|
|
|
153
154
|
label: tooltip ?? iconOnlyLabel,
|
|
154
155
|
children: element
|
|
155
156
|
});
|
|
157
|
+
if (tooltip.interactive) return /* @__PURE__ */ jsx(HoverCard_default, {
|
|
158
|
+
content: /* @__PURE__ */ jsx(HoverCard_default.Body, { children: tooltip.content ? tc(tooltip.content) : iconOnlyLabel }),
|
|
159
|
+
placement: tooltip.placement,
|
|
160
|
+
children: element
|
|
161
|
+
});
|
|
156
162
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
157
163
|
label: tooltip.content ?? iconOnlyLabel,
|
|
158
164
|
long: tooltip.long,
|
|
@@ -8,7 +8,7 @@ export type MenuProps = {
|
|
|
8
8
|
/**
|
|
9
9
|
* The side of the trigger where the menu opens. When there is no space
|
|
10
10
|
* there, the menu goes to the other side. Use "bottom-end" for a trigger
|
|
11
|
-
*
|
|
11
|
+
* on the right of its container (the "⋮" of a row).
|
|
12
12
|
* @default "bottom-start"
|
|
13
13
|
*/
|
|
14
14
|
placement?: Placement;
|
|
@@ -20,7 +20,7 @@ export type MenuProps = {
|
|
|
20
20
|
/**
|
|
21
21
|
* A search field at the top of the menu. With "auto", it shows when the
|
|
22
22
|
* menu has more than 5 options. With "{ placeholder }", it always shows,
|
|
23
|
-
* with that text
|
|
23
|
+
* with that text instead of "Search...".
|
|
24
24
|
* @default "auto"
|
|
25
25
|
*/
|
|
26
26
|
contextualSearch?: ContextualSearch;
|
|
@@ -19,7 +19,7 @@ type PickAction = {
|
|
|
19
19
|
action?: never;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
* Runs an action of the registry (`
|
|
22
|
+
* Runs an action of the registry (`Actions`). The keys of the action
|
|
23
23
|
* show at the end of the option. The option is disabled while the action
|
|
24
24
|
* gives a reason, or when the action does not exist now.
|
|
25
25
|
*/
|
|
@@ -32,11 +32,11 @@ type RegistryAction = {
|
|
|
32
32
|
newTab?: never;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
|
-
* A link to a page of
|
|
35
|
+
* A link to a page of DatoCMS. When the page is open, the option gets
|
|
36
36
|
* aria-current="page".
|
|
37
37
|
*/
|
|
38
38
|
type LinkAction = {
|
|
39
|
-
/** The page of
|
|
39
|
+
/** The page of DatoCMS that the option opens */
|
|
40
40
|
to: string;
|
|
41
41
|
/** Opens the page in a new tab */
|
|
42
42
|
newTab?: boolean;
|
|
@@ -44,7 +44,7 @@ type LinkAction = {
|
|
|
44
44
|
href?: never;
|
|
45
45
|
action?: never;
|
|
46
46
|
};
|
|
47
|
-
/** A link to
|
|
47
|
+
/** A link to another site */
|
|
48
48
|
type ExternalLinkAction = {
|
|
49
49
|
/** The URL that the option opens */
|
|
50
50
|
href: string;
|
|
@@ -67,7 +67,7 @@ type NoAction = {
|
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
69
|
* The action of an option: a pick handler, an action of the registry, a
|
|
70
|
-
* page of
|
|
70
|
+
* page of DatoCMS, or another site. One option has one action.
|
|
71
71
|
*/
|
|
72
72
|
export type OptionAction = PickAction | RegistryAction | LinkAction | ExternalLinkAction | NoAction;
|
|
73
73
|
/** The place of an option in a sortable Dropdown.Group */
|
|
@@ -116,7 +116,7 @@ export type OptionProps = OptionAction & {
|
|
|
116
116
|
*/
|
|
117
117
|
sortable?: OptionSortable;
|
|
118
118
|
/**
|
|
119
|
-
* With a reason, the option is disabled and its tooltip
|
|
119
|
+
* With a reason, the option is disabled and its tooltip says why. With
|
|
120
120
|
* "interactive", the reason has links: it shows in a HoverCard.
|
|
121
121
|
*/
|
|
122
122
|
disabled?: Disabled;
|
|
@@ -143,7 +143,7 @@ export type OptionProps = OptionAction & {
|
|
|
143
143
|
*/
|
|
144
144
|
keywords?: string[];
|
|
145
145
|
/**
|
|
146
|
-
* Shows a chevron after the label, and a screen reader
|
|
146
|
+
* Shows a chevron after the label, and a screen reader says if the
|
|
147
147
|
* submenu is open. Dropdown.Submenu gives it.
|
|
148
148
|
*/
|
|
149
149
|
submenu?: OptionSubmenu;
|
|
@@ -25,7 +25,7 @@ type PropTypes<P extends AbstractTriggerComponentProps> = {
|
|
|
25
25
|
* it runs only when the menu opens.
|
|
26
26
|
*/
|
|
27
27
|
children: ReactElement | (() => ReactElement);
|
|
28
|
-
/** Only for the
|
|
28
|
+
/** Only for the position of the dropdown, not for its look */
|
|
29
29
|
className?: string;
|
|
30
30
|
/** Lets the parent open the menu from code (see DropdownHandle) */
|
|
31
31
|
controlRef?: React.Ref<DropdownHandle>;
|
|
@@ -32,15 +32,15 @@ export type ButtonTriggerProps = DropdownTriggerBaseProps & {
|
|
|
32
32
|
*/
|
|
33
33
|
tone?: Extract<ButtonTone, 'soft' | 'ghost' | 'primary'>;
|
|
34
34
|
/**
|
|
35
|
-
* The size
|
|
36
|
-
*
|
|
35
|
+
* The default size: "milli" in a toolbar, "small" out of a toolbar (see
|
|
36
|
+
* useButtonSize)
|
|
37
37
|
*/
|
|
38
38
|
size?: ButtonSize;
|
|
39
39
|
/** The button fills the width of its container */
|
|
40
40
|
expand?: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* The menu cannot open. Give a reason when the user must know why
|
|
43
|
-
*
|
|
42
|
+
* The menu cannot open. Give a reason when the user must know why. It
|
|
43
|
+
* replaces the tooltip.
|
|
44
44
|
*/
|
|
45
45
|
disabled?: Disabled;
|
|
46
46
|
/**
|
|
@@ -49,7 +49,7 @@ export type ButtonTriggerProps = DropdownTriggerBaseProps & {
|
|
|
49
49
|
* menu is open: the menu is in its place.
|
|
50
50
|
*/
|
|
51
51
|
tooltip?: Message | false | null | ActionTooltipOptions;
|
|
52
|
-
/** Only for the
|
|
52
|
+
/** Only for the position of the button, not for its look */
|
|
53
53
|
className?: string;
|
|
54
54
|
} & ButtonTriggerContent;
|
|
55
55
|
/** The trigger of a Dropdown with the look of a Button */
|
|
@@ -4,14 +4,14 @@ import { DropdownTriggerBaseProps } from './types.js';
|
|
|
4
4
|
export type DropdownTriggerButtonProps = DropdownTriggerBaseProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'id' | 'onMouseDown' | 'onClick' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'aria-controls' | 'disabled'> & {
|
|
5
5
|
/**
|
|
6
6
|
* The menu cannot open. With a reason, the button keeps the focus and
|
|
7
|
-
* its tooltip
|
|
7
|
+
* its tooltip says why.
|
|
8
8
|
*/
|
|
9
9
|
disabled?: Disabled;
|
|
10
10
|
};
|
|
11
11
|
declare const _default: React.NamedExoticComponent<DropdownTriggerBaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id" | "type" | "aria-controls" | "aria-expanded" | "aria-haspopup" | "onKeyDown" | "onClick" | "onMouseDown" | "disabled"> & {
|
|
12
12
|
/**
|
|
13
13
|
* The menu cannot open. With a reason, the button keeps the focus and
|
|
14
|
-
* its tooltip
|
|
14
|
+
* its tooltip says why.
|
|
15
15
|
*/
|
|
16
16
|
disabled?: Disabled;
|
|
17
17
|
} & React.RefAttributes<HTMLButtonElement>>;
|