datocms-react-ui 3.1.0-next.5 → 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.
- package/README.md +3 -2
- 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/FieldTypeAvatar.d.ts +2 -0
- package/dist/FieldTypeAvatar.js +2 -0
- package/dist/FieldTypeName.d.ts +2 -0
- package/dist/FieldTypeName.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 +669 -63
- package/dist/ui-public/icons/index.js +313 -379
- 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/braces.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/hash.js +47 -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/letter-text.js +28 -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/rows-3.js +32 -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/toggle-right.js +32 -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 +76 -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/FieldTypeAvatar.d.ts +22 -0
- package/dist/ui-public/src/content/FieldTypeAvatar.js +35 -0
- package/dist/ui-public/src/content/FieldTypeName.d.ts +19 -0
- package/dist/ui-public/src/content/FieldTypeName.js +25 -0
- package/dist/ui-public/src/content/IconAvatar.d.ts +3 -2
- 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 +8 -8
- package/dist/ui-public/src/layout/Pane/index.js +17 -8
- 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/SplitPane/index.js +16 -2
- 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 +5 -4
- 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/fieldTypes.d.ts +29 -0
- package/dist/ui-public/src/utils/fieldTypes.js +94 -0
- 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/fieldTypes.d.ts +1 -0
- package/dist/utils/fieldTypes.js +2 -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/fieldgroup-boolean.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-color.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-datetime.js +0 -49
- package/dist/ui-public/icons/custom/fieldgroup-json.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-location.js +0 -19
- package/dist/ui-public/icons/custom/fieldgroup-media.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-number.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-reference.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-rich_text.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-seo.js +0 -22
- package/dist/ui-public/icons/custom/fieldgroup-structured_text.js +0 -61
- 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
|
@@ -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>>;
|
|
@@ -10,25 +10,25 @@ export type IconTriggerProps = DropdownTriggerBaseProps & {
|
|
|
10
10
|
/**
|
|
11
11
|
* The accessible name of the button and the text of its tooltip. If you
|
|
12
12
|
* do not give a label, the button gets the generic name "Actions" and no
|
|
13
|
-
* tooltip
|
|
13
|
+
* tooltip, because "Actions" says nothing that the "⋮" does not say.
|
|
14
14
|
*/
|
|
15
15
|
label?: TextMessage;
|
|
16
|
-
/** The size
|
|
16
|
+
/** The default size in a toolbar, "micro" outside a toolbar */
|
|
17
17
|
size?: ButtonSize;
|
|
18
18
|
/**
|
|
19
|
-
* The menu cannot open. Give a reason when the user must know why
|
|
20
|
-
*
|
|
19
|
+
* The menu cannot open. Give a reason when the user must know why. It
|
|
20
|
+
* replaces the tooltip.
|
|
21
21
|
*/
|
|
22
22
|
disabled?: Disabled;
|
|
23
23
|
/**
|
|
24
|
-
* Only for the
|
|
24
|
+
* Only for the position or the surface of the button (for example on a
|
|
25
25
|
* media card)
|
|
26
26
|
*/
|
|
27
27
|
className?: string;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* A ghost icon-only ButtonTrigger (the "⋮" of a row, a card or a toolbar).
|
|
31
|
-
* It has the size
|
|
31
|
+
* It has the default size in a toolbar, and "micro" outside a toolbar
|
|
32
32
|
* (the actions of a row or a card).
|
|
33
33
|
*/
|
|
34
34
|
declare const IconTrigger: ({ icon, label, size, disabled, className, open, onTrigger, }: IconTriggerProps) => React.JSX.Element;
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region ../ui-public/src/actions/Dropdown/triggers/IconTrigger.tsx
|
|
6
6
|
/**
|
|
7
7
|
* A ghost icon-only ButtonTrigger (the "⋮" of a row, a card or a toolbar).
|
|
8
|
-
* It has the size
|
|
8
|
+
* It has the default size in a toolbar, and "micro" outside a toolbar
|
|
9
9
|
* (the actions of a row or a card).
|
|
10
10
|
*/
|
|
11
11
|
var IconTrigger = ({ icon, label, size, disabled, className, open, onTrigger }) => {
|
|
@@ -10,7 +10,7 @@ interface ButtonBaseProps {
|
|
|
10
10
|
shortcut?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Runs the command of the button. The button keeps the focus and the
|
|
13
|
-
* selection in the editor,
|
|
13
|
+
* selection in the editor, so do not call `preventDefault()`.
|
|
14
14
|
*/
|
|
15
15
|
onClick?: (event: React.MouseEvent) => void;
|
|
16
16
|
}
|
|
@@ -14,7 +14,7 @@ type ActionBehavior =
|
|
|
14
14
|
action?: never;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Runs an action of the registry (`
|
|
17
|
+
* Runs an action of the registry (`Actions`). The tooltip of the
|
|
18
18
|
* button and the option of the ⋮ menu show its keys.
|
|
19
19
|
*/
|
|
20
20
|
| {
|
|
@@ -6,11 +6,11 @@ import React from "react";
|
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region ../ui-public/src/actions/SplitButton/Caret.tsx
|
|
9
|
-
/** The accessible name of the caret when
|
|
9
|
+
/** The accessible name of the caret when you give none */
|
|
10
10
|
var defaultCaretLabel = { id: "splitButton.moreActions" };
|
|
11
11
|
/**
|
|
12
12
|
* The caret half of a SplitButton. It has the tone and the size of the main
|
|
13
|
-
* half,
|
|
13
|
+
* half, so the two halves read as one button.
|
|
14
14
|
*/
|
|
15
15
|
var Caret = React.memo(function Caret({ open, onTrigger, tone, size, ariaLabel, disabled }) {
|
|
16
16
|
const { tm } = useTranslation();
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../ui-public/src/actions/SplitButton/Halves.tsx
|
|
6
6
|
/**
|
|
7
|
-
* The main half and the
|
|
7
|
+
* The main half and the caret. `SplitButton` and its picture
|
|
8
8
|
* at rest (`Static.tsx`) render it.
|
|
9
9
|
*/
|
|
10
10
|
var SplitButtonHalves = React.forwardRef(function SplitButtonHalves({ main, className, children }, ref) {
|
|
@@ -29,8 +29,8 @@ export type SplitButtonProps = {
|
|
|
29
29
|
*/
|
|
30
30
|
tone?: Extract<ButtonTone, 'primary' | 'soft'>;
|
|
31
31
|
/**
|
|
32
|
-
* The size of the two halves. The size
|
|
33
|
-
*
|
|
32
|
+
* The size of the two halves. The default size is "milli" in a toolbar
|
|
33
|
+
* and "small" out of a toolbar (see useButtonSize).
|
|
34
34
|
*/
|
|
35
35
|
size?: ButtonSize;
|
|
36
36
|
/**
|
|
@@ -38,7 +38,7 @@ export type SplitButtonProps = {
|
|
|
38
38
|
* to disable it too. Give a reason when the user must know why.
|
|
39
39
|
*/
|
|
40
40
|
disabled?: ButtonProps['disabled'];
|
|
41
|
-
/** Only for the
|
|
41
|
+
/** Only for the position of the split button, not for its look */
|
|
42
42
|
className?: string;
|
|
43
43
|
/** The caret and its menu */
|
|
44
44
|
menu?: SplitButtonMenu;
|
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import { type Message } from '../Message.js';
|
|
4
4
|
import type { FloatingTrigger } from '../overlays/floatingTrigger.js';
|
|
5
5
|
/**
|
|
6
|
-
* A disabled control that
|
|
7
|
-
* ("aria-disabled"
|
|
8
|
-
* reason,
|
|
9
|
-
* With "interactive", the reason has links
|
|
6
|
+
* A disabled control that says why. It keeps the focus and the hover
|
|
7
|
+
* ("aria-disabled" instead of "disabled"), so its tooltip shows the
|
|
8
|
+
* reason, even to the keyboard and screen reader users.
|
|
9
|
+
* With "interactive", the reason has links. It shows in a HoverCard, so
|
|
10
10
|
* the pointer can move into it.
|
|
11
11
|
*/
|
|
12
12
|
export type DisabledWithReason = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTranslation } from "../i18n.js";
|
|
2
|
-
import Tooltip from "../overlays/Tooltip/index.js";
|
|
3
2
|
import HoverCard_default from "../overlays/HoverCard/index.js";
|
|
3
|
+
import Tooltip from "../overlays/Tooltip/index.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../ui-public/src/actions/disabledReason.tsx
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
* "small" is 20px, "regular" is 30px, "large" is 40px, "xlarge" is 48px.
|
|
4
4
|
* The regular and the large avatars have a ring, so avatars in a stack stay
|
|
5
5
|
* apart. The xlarge avatar is for a single person, for example the header of
|
|
6
|
-
* a profile,
|
|
6
|
+
* a profile, so it has no ring.
|
|
7
7
|
*/
|
|
8
8
|
export type AvatarSize = 'small' | 'regular' | 'large' | 'xlarge';
|
|
9
9
|
/** The side of each size in pixels, for example to ask an image of that size */
|
|
@@ -53,8 +53,8 @@ export type AvatarProps = AvatarIdentity & {
|
|
|
53
53
|
labelled?: boolean;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
|
-
* The avatar of a person. It does not know where the person comes from
|
|
57
|
-
*
|
|
56
|
+
* The avatar of a person. It does not know where the person comes from. You
|
|
57
|
+
* read the name, the email and the image URL and give them.
|
|
58
58
|
*/
|
|
59
59
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
60
|
export default Avatar;
|
|
@@ -20,8 +20,8 @@ function gravatarUrl(email, pixels) {
|
|
|
20
20
|
})}`;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* The avatar of a person. It does not know where the person comes from
|
|
24
|
-
*
|
|
23
|
+
* The avatar of a person. It does not know where the person comes from. You
|
|
24
|
+
* read the name, the email and the image URL and give them.
|
|
25
25
|
*/
|
|
26
26
|
var Avatar = forwardRef(({ size = "regular", active = false, name, email, imageUrl, gravatar, labelled = false }, ref) => {
|
|
27
27
|
const url = gravatar ? email ? gravatarUrl(email, AVATAR_SIZE_IN_PIXELS[size] * 2) : null : imageUrl;
|
|
@@ -5,7 +5,7 @@ export type CodeSnippetProps = {
|
|
|
5
5
|
code: string;
|
|
6
6
|
/**
|
|
7
7
|
* The name of the box for screen readers, for example "Request body". The
|
|
8
|
-
* box is a region that the keyboard can focus,
|
|
8
|
+
* box is a region that the keyboard can focus, so the arrow keys
|
|
9
9
|
* scroll it.
|
|
10
10
|
*/
|
|
11
11
|
ariaLabel: TextMessage;
|
|
@@ -10,7 +10,7 @@ type CopyableValueName =
|
|
|
10
10
|
hint?: Message;
|
|
11
11
|
ariaLabel?: never;
|
|
12
12
|
}
|
|
13
|
-
/** No visible label, for example a link under a text that
|
|
13
|
+
/** No visible label, for example a link under a text that says it */
|
|
14
14
|
| {
|
|
15
15
|
/** The name of the field for screen readers */
|
|
16
16
|
ariaLabel: TextMessage;
|
|
@@ -9,7 +9,7 @@ export type EnvironmentPillProps = {
|
|
|
9
9
|
*/
|
|
10
10
|
label?: Message;
|
|
11
11
|
};
|
|
12
|
-
/** A pill that
|
|
12
|
+
/** A pill that shows the type of an environment, with its icon */
|
|
13
13
|
declare function EnvironmentPill({ primary, label }: EnvironmentPillProps): React.JSX.Element;
|
|
14
14
|
declare const _default: React.MemoExoticComponent<typeof EnvironmentPill>;
|
|
15
15
|
export default _default;
|
|
@@ -4,7 +4,7 @@ import Pill_default from "./Pill.js";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region ../ui-public/src/content/EnvironmentPill.tsx
|
|
7
|
-
/** A pill that
|
|
7
|
+
/** A pill that shows the type of an environment, with its icon */
|
|
8
8
|
function EnvironmentPill({ primary, label }) {
|
|
9
9
|
const { tc } = useTranslation();
|
|
10
10
|
const Icon = primary ? Environments.PrimaryEnvironmentIcon : Environments.SandboxEnvironmentIcon;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TextMessage } from '../Message.js';
|
|
3
|
+
import { type FieldType } from '../utils/fieldTypes.js';
|
|
4
|
+
export type FieldTypeAvatarProps = {
|
|
5
|
+
/** The `field_type` of the field, as the CMA gives it, for example `"rich_text"` */
|
|
6
|
+
fieldType: FieldType | (string & {});
|
|
7
|
+
/** The side of the square in pixels, for example 32 in the image of an EntityRow */
|
|
8
|
+
size: number;
|
|
9
|
+
/**
|
|
10
|
+
* The name for the screen readers. Use it only when no text near the
|
|
11
|
+
* avatar says the type of the field. Without it, the screen readers do
|
|
12
|
+
* not read the avatar.
|
|
13
|
+
*/
|
|
14
|
+
ariaLabel?: TextMessage;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The icon of the group of a field type, on the colors of the group, as
|
|
18
|
+
* DatoCMS shows a field type. A type that the component does not know
|
|
19
|
+
* gets a generic icon on the neutral surface.
|
|
20
|
+
*/
|
|
21
|
+
declare function FieldTypeAvatar({ fieldType, size, ariaLabel }: FieldTypeAvatarProps): React.JSX.Element;
|
|
22
|
+
export default FieldTypeAvatar;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FieldGroup, Generic } from "../../icons/index.js";
|
|
2
|
+
import IconAvatar from "./IconAvatar.js";
|
|
3
|
+
import { fieldGroupOf, fieldTypeSurface } from "../utils/fieldTypes.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region ../ui-public/src/content/FieldTypeAvatar.tsx
|
|
7
|
+
var groupIcons = {
|
|
8
|
+
boolean: FieldGroup.BooleanGroupIcon,
|
|
9
|
+
color: FieldGroup.ColorGroupIcon,
|
|
10
|
+
datetime: FieldGroup.DatetimeGroupIcon,
|
|
11
|
+
json: FieldGroup.JsonGroupIcon,
|
|
12
|
+
location: FieldGroup.LocationGroupIcon,
|
|
13
|
+
media: FieldGroup.MediaGroupIcon,
|
|
14
|
+
number: FieldGroup.NumberGroupIcon,
|
|
15
|
+
reference: FieldGroup.ReferenceGroupIcon,
|
|
16
|
+
rich_text: FieldGroup.RichTextGroupIcon,
|
|
17
|
+
seo: FieldGroup.SeoGroupIcon,
|
|
18
|
+
text: FieldGroup.StructuredTextGroupIcon
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The icon of the group of a field type, on the colors of the group, as
|
|
22
|
+
* DatoCMS shows a field type. A type that the component does not know
|
|
23
|
+
* gets a generic icon on the neutral surface.
|
|
24
|
+
*/
|
|
25
|
+
function FieldTypeAvatar({ fieldType, size, ariaLabel }) {
|
|
26
|
+
const group = fieldGroupOf(fieldType);
|
|
27
|
+
return /* @__PURE__ */ jsx(IconAvatar, {
|
|
28
|
+
icon: group ? groupIcons[group] : Generic.CircleQuestionIcon,
|
|
29
|
+
size,
|
|
30
|
+
surface: fieldTypeSurface(fieldType),
|
|
31
|
+
ariaLabel
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { FieldTypeAvatar as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FieldType } from '../utils/fieldTypes.js';
|
|
3
|
+
export type FieldTypeNameProps = {
|
|
4
|
+
/** The `field_type` of the field, as the CMA gives it, for example `"rich_text"` */
|
|
5
|
+
fieldType: FieldType | (string & {});
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Gives a function that returns the name of a field type as a string, in
|
|
9
|
+
* the language of the user. Use it when the name is a part of a string, for
|
|
10
|
+
* example the text of a tooltip. In JSX, use `FieldTypeName`. A type that
|
|
11
|
+
* the function does not know gives its `field_type` string.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useFieldTypeName(): (fieldType: FieldType | (string & {})) => string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of a field type as text, in the language of the user. A type
|
|
16
|
+
* that the component does not know shows its `field_type` string.
|
|
17
|
+
*/
|
|
18
|
+
declare function FieldTypeName({ fieldType }: FieldTypeNameProps): React.JSX.Element;
|
|
19
|
+
export default FieldTypeName;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useTranslation } from "../i18n.js";
|
|
2
|
+
import { fieldTypeMessage } from "../utils/fieldTypes.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region ../ui-public/src/content/FieldTypeName.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Gives a function that returns the name of a field type as a string, in
|
|
8
|
+
* the language of the user. Use it when the name is a part of a string, for
|
|
9
|
+
* example the text of a tooltip. In JSX, use `FieldTypeName`. A type that
|
|
10
|
+
* the function does not know gives its `field_type` string.
|
|
11
|
+
*/
|
|
12
|
+
function useFieldTypeName() {
|
|
13
|
+
const { tm } = useTranslation();
|
|
14
|
+
return useCallback((fieldType) => tm(fieldTypeMessage(fieldType)), [tm]);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The name of a field type as text, in the language of the user. A type
|
|
18
|
+
* that the component does not know shows its `field_type` string.
|
|
19
|
+
*/
|
|
20
|
+
function FieldTypeName({ fieldType }) {
|
|
21
|
+
const fieldTypeName = useFieldTypeName();
|
|
22
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: fieldTypeName(fieldType) });
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { FieldTypeName as default, useFieldTypeName };
|
|
@@ -13,7 +13,8 @@ export type IconAvatarSurface =
|
|
|
13
13
|
/**
|
|
14
14
|
* A surface and an ink from the data or from a context of tokens, for
|
|
15
15
|
* example `{ color: 'var(--color--field-group-media--surface)', ink:
|
|
16
|
-
* 'var(--color--field-group-media--ink)' }`
|
|
16
|
+
* 'var(--color--field-group-media--ink)' }`. `fieldTypeSurface` gives
|
|
17
|
+
* this pair for the group of a field type.
|
|
17
18
|
*/
|
|
18
19
|
| {
|
|
19
20
|
color: string;
|
|
@@ -28,7 +29,7 @@ export type IconAvatarProps = {
|
|
|
28
29
|
surface?: IconAvatarSurface;
|
|
29
30
|
/**
|
|
30
31
|
* The name for the screen readers. Use it only when no text near the
|
|
31
|
-
* avatar
|
|
32
|
+
* avatar says what the icon shows. Without it, the screen readers do not
|
|
32
33
|
* read the avatar.
|
|
33
34
|
*/
|
|
34
35
|
ariaLabel?: TextMessage;
|
|
@@ -9,7 +9,7 @@ type Display =
|
|
|
9
9
|
display?: 'dot';
|
|
10
10
|
/**
|
|
11
11
|
* The name of the status, for example "Published". It goes in the
|
|
12
|
-
* tooltip and in `aria-label`,
|
|
12
|
+
* tooltip and in `aria-label`, so it is a text.
|
|
13
13
|
* @default the name of the status: "Published", "Unpublished changes", "Draft" or "New"
|
|
14
14
|
*/
|
|
15
15
|
label?: TextMessage;
|
|
@@ -36,7 +36,7 @@ export type PillProps = {
|
|
|
36
36
|
icon?: React.ReactNode;
|
|
37
37
|
/**
|
|
38
38
|
* A hint in a tooltip, on hover and on keyboard focus. A static pill with a
|
|
39
|
-
* tooltip takes the focus,
|
|
39
|
+
* tooltip takes the focus, so the keyboard can reach the hint.
|
|
40
40
|
*/
|
|
41
41
|
tooltip?: Message;
|
|
42
42
|
/** The text of the pill. Keep it short: a long text gets an ellipsis. */
|
|
@@ -19,7 +19,7 @@ export type SmartDateProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
withSeconds?: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Show "Today, 09:30"
|
|
22
|
+
* Show "Today, 09:30" instead of the date and the time when the date is
|
|
23
23
|
* today. It has an effect only with `show="dateTime"`.
|
|
24
24
|
* @default true
|
|
25
25
|
*/
|