datocms-react-ui 3.0.1-alpha.0 → 3.1.0-next.1
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 +125 -9
- package/dist/Actions.d.ts +1 -0
- package/dist/Actions.js +4 -0
- package/dist/ApiKey.d.ts +2 -0
- package/dist/ApiKey.js +2 -0
- package/dist/Aside.d.ts +2 -0
- package/dist/Aside.js +2 -0
- package/dist/AutosizeInput.d.ts +2 -0
- package/dist/AutosizeInput.js +2 -0
- package/dist/Avatar.d.ts +2 -0
- package/dist/Avatar.js +2 -0
- package/dist/BlankSlate.d.ts +2 -0
- package/dist/BlankSlate.js +2 -0
- package/dist/Button.d.ts +2 -0
- package/dist/Button.js +2 -0
- package/dist/Callout.d.ts +2 -0
- package/dist/Callout.js +2 -0
- package/dist/Canvas.d.ts +2 -0
- package/dist/Canvas.js +3 -0
- package/dist/CardList.d.ts +2 -0
- package/dist/CardList.js +2 -0
- package/dist/Chevron.d.ts +1 -0
- package/dist/Chevron.js +2 -0
- package/dist/CodeSnippet.d.ts +2 -0
- package/dist/CodeSnippet.js +2 -0
- package/dist/ContextInspector.d.ts +2 -0
- package/dist/ContextInspector.js +2 -0
- package/dist/CopyButton.d.ts +2 -0
- package/dist/CopyButton.js +2 -0
- package/dist/CopyableId.d.ts +2 -0
- package/dist/CopyableId.js +2 -0
- package/dist/CopyableValue.d.ts +2 -0
- package/dist/CopyableValue.js +2 -0
- package/dist/DateSettings.d.ts +1 -0
- package/dist/DateSettings.js +2 -0
- package/dist/DebouncedTextInput.d.ts +2 -0
- package/dist/DebouncedTextInput.js +2 -0
- package/dist/Dropdown/triggers/ButtonTrigger.d.ts +2 -0
- package/dist/Dropdown/triggers/ButtonTrigger.js +2 -0
- package/dist/Dropdown/triggers/DropdownTriggerButton.d.ts +2 -0
- package/dist/Dropdown/triggers/DropdownTriggerButton.js +2 -0
- package/dist/Dropdown/triggers/IconTrigger.d.ts +2 -0
- package/dist/Dropdown/triggers/IconTrigger.js +2 -0
- package/dist/Dropdown/triggers/PillTrigger.d.ts +2 -0
- package/dist/Dropdown/triggers/PillTrigger.js +2 -0
- package/dist/Dropdown/triggers/TextualTrigger.d.ts +2 -0
- package/dist/Dropdown/triggers/TextualTrigger.js +2 -0
- package/dist/Dropdown/triggers/types.d.ts +1 -0
- package/dist/Dropdown.d.ts +1 -0
- package/dist/Dropdown.js +4 -0
- package/dist/EditorToolbar.d.ts +1 -0
- package/dist/EditorToolbar.js +3 -0
- package/dist/EmptySlot.d.ts +2 -0
- package/dist/EmptySlot.js +2 -0
- package/dist/EntityRow.d.ts +2 -0
- package/dist/EntityRow.js +2 -0
- package/dist/EntitySummary.d.ts +2 -0
- package/dist/EntitySummary.js +2 -0
- package/dist/FeedbackDot.d.ts +2 -0
- package/dist/FeedbackDot.js +2 -0
- package/dist/FieldHint.d.ts +2 -0
- package/dist/FieldHint.js +2 -0
- package/dist/FieldWrapper.d.ts +2 -0
- package/dist/FieldWrapper.js +2 -0
- package/dist/FramedImage.d.ts +2 -0
- package/dist/FramedImage.js +2 -0
- package/dist/FullscreenModal.d.ts +2 -0
- package/dist/FullscreenModal.js +2 -0
- package/dist/Heading.d.ts +2 -0
- package/dist/Heading.js +2 -0
- package/dist/HoverCard.d.ts +2 -0
- package/dist/HoverCard.js +2 -0
- package/dist/IconAvatar.d.ts +2 -0
- package/dist/IconAvatar.js +2 -0
- package/dist/IdText.d.ts +2 -0
- package/dist/IdText.js +2 -0
- package/dist/InfoList.d.ts +2 -0
- package/dist/InfoList.js +2 -0
- package/dist/InitialsAvatar.d.ts +2 -0
- package/dist/InitialsAvatar.js +2 -0
- package/dist/InputGroup.d.ts +2 -0
- package/dist/InputGroup.js +2 -0
- package/dist/InsertGap.d.ts +2 -0
- package/dist/InsertGap.js +2 -0
- package/dist/KeyValueList.d.ts +2 -0
- package/dist/KeyValueList.js +2 -0
- package/dist/Label.d.ts +2 -0
- package/dist/Label.js +2 -0
- package/dist/Link.d.ts +2 -0
- package/dist/Link.js +2 -0
- package/dist/ListArea.d.ts +2 -0
- package/dist/ListArea.js +2 -0
- package/dist/ListDetail.d.ts +1 -0
- package/dist/ListDetail.js +5 -0
- package/dist/ListFormPage.d.ts +2 -0
- package/dist/ListFormPage.js +2 -0
- package/dist/ListOrOverview.d.ts +2 -0
- package/dist/ListOrOverview.js +2 -0
- package/dist/Main.d.ts +2 -0
- package/dist/Main.js +2 -0
- package/dist/MediaCard.d.ts +2 -0
- package/dist/MediaCard.js +2 -0
- package/dist/Message.d.ts +1 -0
- package/dist/Message.js +2 -0
- package/dist/Modal.d.ts +2 -0
- package/dist/Modal.js +2 -0
- package/dist/MultipleSelectionActionBar.d.ts +2 -0
- package/dist/MultipleSelectionActionBar.js +2 -0
- package/dist/Nav.d.ts +2 -0
- package/dist/Nav.js +2 -0
- package/dist/NavList.d.ts +2 -0
- package/dist/NavList.js +2 -0
- package/dist/NewZIndex.d.ts +2 -0
- package/dist/NewZIndex.js +2 -0
- package/dist/NumberInput.d.ts +2 -0
- package/dist/NumberInput.js +2 -0
- package/dist/Page.d.ts +1 -0
- package/dist/Page.js +2 -0
- package/dist/Pane.d.ts +2 -0
- package/dist/Pane.js +5 -0
- package/dist/PasswordInput.d.ts +2 -0
- package/dist/PasswordInput.js +2 -0
- package/dist/Pill.d.ts +2 -0
- package/dist/Pill.js +2 -0
- package/dist/Popover.d.ts +2 -0
- package/dist/Popover.js +2 -0
- package/dist/Portal.d.ts +2 -0
- package/dist/Portal.js +2 -0
- package/dist/ProgressBar.d.ts +2 -0
- package/dist/ProgressBar.js +2 -0
- package/dist/RadioGroupInput.d.ts +2 -0
- package/dist/RadioGroupInput.js +2 -0
- package/dist/RawButton.d.ts +2 -0
- package/dist/RawButton.js +2 -0
- package/dist/RowList.d.ts +2 -0
- package/dist/RowList.js +2 -0
- package/dist/Search.d.ts +2 -0
- package/dist/Search.js +2 -0
- package/dist/SegmentedControl.d.ts +2 -0
- package/dist/SegmentedControl.js +2 -0
- package/dist/SelectInput.d.ts +2 -0
- package/dist/SelectInput.js +3 -0
- package/dist/SettingsList.d.ts +2 -0
- package/dist/SettingsList.js +2 -0
- package/dist/SettingsMenu.d.ts +2 -0
- package/dist/SettingsMenu.js +2 -0
- package/dist/SidebarPanel.d.ts +2 -0
- package/dist/SidebarPanel.js +3 -0
- package/dist/SidebarTree.d.ts +1 -0
- package/dist/SidebarTree.js +3 -0
- package/dist/SmartDate.d.ts +2 -0
- package/dist/SmartDate.js +2 -0
- package/dist/Spinner.d.ts +2 -0
- package/dist/Spinner.js +2 -0
- package/dist/SplitButton.d.ts +2 -0
- package/dist/SplitButton.js +2 -0
- package/dist/SplitPane.d.ts +2 -0
- package/dist/SplitPane.js +2 -0
- package/dist/StringInput.d.ts +2 -0
- package/dist/StringInput.js +2 -0
- package/dist/SwitchInput.d.ts +2 -0
- package/dist/SwitchInput.js +2 -0
- package/dist/SwitchList.d.ts +2 -0
- package/dist/SwitchList.js +2 -0
- package/dist/Table/cells/IconCell.d.ts +2 -0
- package/dist/Table/cells/IconCell.js +2 -0
- package/dist/Table/cells/LinkCell.d.ts +2 -0
- package/dist/Table/cells/LinkCell.js +2 -0
- package/dist/Table/cells/StatusCell.d.ts +2 -0
- package/dist/Table/cells/StatusCell.js +2 -0
- package/dist/Table/cells/TimeCell.d.ts +2 -0
- package/dist/Table/cells/TimeCell.js +2 -0
- package/dist/Table.d.ts +1 -0
- package/dist/Table.js +5 -0
- package/dist/TableList.d.ts +2 -0
- package/dist/TableList.js +2 -0
- package/dist/Tabs.d.ts +1 -0
- package/dist/Tabs.js +2 -0
- package/dist/TextareaInput.d.ts +2 -0
- package/dist/TextareaInput.js +2 -0
- package/dist/Toolbar.d.ts +2 -0
- package/dist/Toolbar.js +3 -0
- package/dist/Tooltip.d.ts +2 -0
- package/dist/Tooltip.js +2 -0
- package/dist/UploadThreatTriangle.d.ts +2 -0
- package/dist/UploadThreatTriangle.js +2 -0
- package/dist/UsageMeter.d.ts +1 -0
- package/dist/UsageMeter.js +2 -0
- package/dist/ValidityTriangles.d.ts +1 -0
- package/dist/ValidityTriangles.js +2 -0
- package/dist/dnd.d.ts +1 -0
- package/dist/dnd.js +17 -0
- package/dist/hooks/useAsyncSelectOptions.d.ts +1 -0
- package/dist/hooks/useAsyncSelectOptions.js +2 -0
- package/dist/hooks/useClickOutside.d.ts +1 -0
- package/dist/hooks/useClickOutside.js +2 -0
- package/dist/hooks/useCopyToClipboard.d.ts +1 -0
- package/dist/hooks/useCopyToClipboard.js +2 -0
- package/dist/hooks/useDebounceOnBoolean.d.ts +1 -0
- package/dist/hooks/useDebounceOnBoolean.js +2 -0
- package/dist/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/hooks/useDebouncedCallback.js +2 -0
- package/dist/hooks/useDebouncedValue.d.ts +1 -0
- package/dist/hooks/useDebouncedValue.js +2 -0
- package/dist/hooks/useDeepCompareEffect.d.ts +1 -0
- package/dist/hooks/useDeepCompareEffect.js +2 -0
- package/dist/hooks/useDidUpdateEffect.d.ts +1 -0
- package/dist/hooks/useDidUpdateEffect.js +2 -0
- package/dist/hooks/useElementLayout.d.ts +1 -0
- package/dist/hooks/useElementLayout.js +2 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hooks/useMediaQuery.js +2 -0
- package/dist/hooks/useRovingKeyDown.d.ts +1 -0
- package/dist/hooks/useRovingKeyDown.js +2 -0
- package/dist/hooks/useShallowEqual.d.ts +1 -0
- package/dist/hooks/useShallowEqual.js +2 -0
- package/dist/hooks/useSmartRowClick.d.ts +1 -0
- package/dist/hooks/useSmartRowClick.js +2 -0
- package/dist/internal/BundledTexts.d.ts +2 -0
- package/dist/internal/BundledTexts.js +2 -0
- package/dist/internal/DateSettings.d.ts +1 -0
- package/dist/internal/DateSettings.js +2 -0
- package/dist/internal/NavigationProvider.d.ts +2 -0
- package/dist/internal/NavigationProvider.js +2 -0
- package/dist/internal/TextsProvider.d.ts +2 -0
- package/dist/internal/TextsProvider.js +2 -0
- package/dist/react-ui/locales/en.js +12 -0
- package/dist/react-ui/src/Canvas.d.ts +51 -0
- package/dist/react-ui/src/Canvas.js +148 -0
- package/dist/react-ui/src/ContextInspector.d.ts +16 -0
- package/dist/react-ui/src/ContextInspector.js +147 -0
- package/dist/react-ui/src/ctx.d.ts +18 -0
- package/dist/react-ui/src/ctx.js +25 -0
- package/dist/react-ui/src/ctxDateSettings.js +24 -0
- package/dist/react-ui/src/ctxHostServices.js +60 -0
- package/dist/react-ui/src/ctxNavigation.js +37 -0
- package/dist/react-ui/src/messageText.js +36 -0
- package/dist/styles.css +8620 -0
- package/dist/ui/icons/brands/gitlab.js +15 -0
- package/dist/ui/icons/brands/markdown.js +15 -0
- package/dist/ui/icons/custom/color_d_icon.js +20 -0
- package/dist/ui/icons/custom/fieldgroup-boolean.js +18 -0
- package/dist/ui/icons/custom/fieldgroup-color.js +18 -0
- package/dist/ui/icons/custom/fieldgroup-datetime.js +49 -0
- package/dist/ui/icons/custom/fieldgroup-json.js +18 -0
- package/dist/ui/icons/custom/fieldgroup-location.js +19 -0
- package/dist/ui/icons/custom/fieldgroup-media.js +18 -0
- package/dist/ui/icons/custom/fieldgroup-number.js +18 -0
- package/dist/ui/icons/custom/fieldgroup-reference.js +18 -0
- package/dist/ui/icons/custom/fieldgroup-rich_text.js +18 -0
- package/dist/ui/icons/custom/fieldgroup-seo.js +22 -0
- package/dist/ui/icons/custom/fieldgroup-structured_text.js +61 -0
- package/dist/ui/icons/custom/language.js +16 -0
- package/dist/ui/icons/custom/masonry.js +21 -0
- package/dist/ui/icons/custom/netlify.js +33 -0
- package/dist/ui/icons/custom/twitter-verified.js +18 -0
- package/dist/ui/icons/custom/vercel.js +15 -0
- package/dist/ui/icons/index.js +402 -0
- package/dist/ui/icons/light/eye-slash.js +16 -0
- package/dist/ui/icons/light/eye.js +16 -0
- package/dist/ui/icons/regular/align-left.js +15 -0
- package/dist/ui/icons/regular/arrow-down-a-z.js +16 -0
- package/dist/ui/icons/regular/arrow-down-to-line.js +15 -0
- package/dist/ui/icons/regular/arrow-down.js +16 -0
- package/dist/ui/icons/regular/arrow-left.js +16 -0
- package/dist/ui/icons/regular/arrow-right-arrow-left.js +16 -0
- package/dist/ui/icons/regular/arrow-right-from-bracket.js +16 -0
- package/dist/ui/icons/regular/arrow-right.js +16 -0
- package/dist/ui/icons/regular/arrow-rotate-left.js +15 -0
- package/dist/ui/icons/regular/arrow-rotate-right.js +16 -0
- package/dist/ui/icons/regular/arrow-turn-up.js +16 -0
- package/dist/ui/icons/regular/arrow-up-arrow-down.js +16 -0
- package/dist/ui/icons/regular/arrow-up-right-from-square.js +16 -0
- package/dist/ui/icons/regular/arrow-up-to-line.js +15 -0
- package/dist/ui/icons/regular/arrow-up.js +16 -0
- package/dist/ui/icons/regular/arrows-from-line.js +16 -0
- package/dist/ui/icons/regular/arrows-rotate.js +16 -0
- package/dist/ui/icons/regular/arrows-to-line.js +16 -0
- package/dist/ui/icons/regular/arrows-turn-to-dots.js +15 -0
- package/dist/ui/icons/regular/badge-check.js +15 -0
- package/dist/ui/icons/regular/ballot-check.js +15 -0
- package/dist/ui/icons/regular/ban.js +16 -0
- package/dist/ui/icons/regular/bars.js +16 -0
- package/dist/ui/icons/regular/bold.js +15 -0
- package/dist/ui/icons/regular/bolt.js +15 -0
- package/dist/ui/icons/regular/book.js +16 -0
- package/dist/ui/icons/regular/bookmark.js +16 -0
- package/dist/ui/icons/regular/brackets-curly.js +15 -0
- package/dist/ui/icons/regular/browser.js +16 -0
- package/dist/ui/icons/regular/calendar-clock.js +15 -0
- package/dist/ui/icons/regular/calendar.js +16 -0
- package/dist/ui/icons/regular/chart-area.js +15 -0
- package/dist/ui/icons/regular/check.js +16 -0
- package/dist/ui/icons/regular/chevron-down.js +16 -0
- package/dist/ui/icons/regular/chevron-left.js +16 -0
- package/dist/ui/icons/regular/chevron-right.js +16 -0
- package/dist/ui/icons/regular/chevrons-down.js +16 -0
- package/dist/ui/icons/regular/chevrons-left.js +16 -0
- package/dist/ui/icons/regular/chevrons-right.js +16 -0
- package/dist/ui/icons/regular/circle-arrow-up.js +16 -0
- package/dist/ui/icons/regular/circle-check.js +16 -0
- package/dist/ui/icons/regular/circle-dot.js +16 -0
- package/dist/ui/icons/regular/circle-exclamation.js +16 -0
- package/dist/ui/icons/regular/circle-info.js +16 -0
- package/dist/ui/icons/regular/circle-question.js +16 -0
- package/dist/ui/icons/regular/clapperboard-play.js +15 -0
- package/dist/ui/icons/regular/clipboard.js +15 -0
- package/dist/ui/icons/regular/clock-rotate-left.js +16 -0
- package/dist/ui/icons/regular/clock.js +16 -0
- package/dist/ui/icons/regular/clone.js +16 -0
- package/dist/ui/icons/regular/cloud-arrow-down.js +15 -0
- package/dist/ui/icons/regular/code-branch.js +16 -0
- package/dist/ui/icons/regular/code-fork.js +16 -0
- package/dist/ui/icons/regular/command.js +16 -0
- package/dist/ui/icons/regular/comments.js +16 -0
- package/dist/ui/icons/regular/copy.js +16 -0
- package/dist/ui/icons/regular/cube.js +15 -0
- package/dist/ui/icons/regular/cubes.js +15 -0
- package/dist/ui/icons/regular/dash.js +16 -0
- package/dist/ui/icons/regular/database.js +15 -0
- package/dist/ui/icons/regular/diamond.js +15 -0
- package/dist/ui/icons/regular/down.js +16 -0
- package/dist/ui/icons/regular/download.js +16 -0
- package/dist/ui/icons/regular/earth-europe.js +16 -0
- package/dist/ui/icons/regular/ellipsis-vertical.js +16 -0
- package/dist/ui/icons/regular/ellipsis.js +16 -0
- package/dist/ui/icons/regular/envelope.js +16 -0
- package/dist/ui/icons/regular/expand.js +16 -0
- package/dist/ui/icons/regular/eye-dropper.js +16 -0
- package/dist/ui/icons/regular/file-export.js +16 -0
- package/dist/ui/icons/regular/file-lines.js +15 -0
- package/dist/ui/icons/regular/file-shield.js +15 -0
- package/dist/ui/icons/regular/file.js +15 -0
- package/dist/ui/icons/regular/filter.js +16 -0
- package/dist/ui/icons/regular/fire-flame-curved.js +15 -0
- package/dist/ui/icons/regular/flask-gear.js +15 -0
- package/dist/ui/icons/regular/flask.js +15 -0
- package/dist/ui/icons/regular/folder-gear.js +15 -0
- package/dist/ui/icons/regular/folder-magnifying-glass.js +15 -0
- package/dist/ui/icons/regular/folder-open.js +16 -0
- package/dist/ui/icons/regular/folder-plus.js +16 -0
- package/dist/ui/icons/regular/folder.js +16 -0
- package/dist/ui/icons/regular/folders.js +16 -0
- package/dist/ui/icons/regular/gear.js +16 -0
- package/dist/ui/icons/regular/gift.js +16 -0
- package/dist/ui/icons/regular/globe.js +16 -0
- package/dist/ui/icons/regular/grid-2.js +16 -0
- package/dist/ui/icons/regular/grip-dots-vertical.js +16 -0
- package/dist/ui/icons/regular/hand.js +16 -0
- package/dist/ui/icons/regular/hourglass-clock.js +16 -0
- package/dist/ui/icons/regular/house.js +16 -0
- package/dist/ui/icons/regular/images.js +15 -0
- package/dist/ui/icons/regular/input-numeric.js +15 -0
- package/dist/ui/icons/regular/input-text.js +15 -0
- package/dist/ui/icons/regular/keyboard.js +16 -0
- package/dist/ui/icons/regular/layer-group.js +15 -0
- package/dist/ui/icons/regular/life-ring.js +16 -0
- package/dist/ui/icons/regular/link-simple.js +15 -0
- package/dist/ui/icons/regular/link.js +16 -0
- package/dist/ui/icons/regular/list-tree.js +16 -0
- package/dist/ui/icons/regular/list.js +16 -0
- package/dist/ui/icons/regular/magnifying-glass-chart.js +15 -0
- package/dist/ui/icons/regular/magnifying-glass.js +16 -0
- package/dist/ui/icons/regular/map-location-dot.js +16 -0
- package/dist/ui/icons/regular/memo.js +16 -0
- package/dist/ui/icons/regular/octagon-exclamation.js +16 -0
- package/dist/ui/icons/regular/palette.js +16 -0
- package/dist/ui/icons/regular/paper-plane.js +16 -0
- package/dist/ui/icons/regular/paragraph.js +15 -0
- package/dist/ui/icons/regular/paste.js +15 -0
- package/dist/ui/icons/regular/pause.js +16 -0
- package/dist/ui/icons/regular/pen-paintbrush.js +15 -0
- package/dist/ui/icons/regular/pen-to-square.js +15 -0
- package/dist/ui/icons/regular/pen.js +16 -0
- package/dist/ui/icons/regular/people-arrows.js +16 -0
- package/dist/ui/icons/regular/photo-film.js +15 -0
- package/dist/ui/icons/regular/play.js +16 -0
- package/dist/ui/icons/regular/puzzle-piece.js +15 -0
- package/dist/ui/icons/regular/receipt.js +16 -0
- package/dist/ui/icons/regular/rectangle-barcode.js +15 -0
- package/dist/ui/icons/regular/rectangle-list.js +15 -0
- package/dist/ui/icons/regular/right-left.js +15 -0
- package/dist/ui/icons/regular/rotate-left.js +16 -0
- package/dist/ui/icons/regular/shield.js +15 -0
- package/dist/ui/icons/regular/sidebar-flip.js +16 -0
- package/dist/ui/icons/regular/sidebar.js +16 -0
- package/dist/ui/icons/regular/sliders.js +16 -0
- package/dist/ui/icons/regular/sparkles.js +15 -0
- package/dist/ui/icons/regular/square-caret-down.js +15 -0
- package/dist/ui/icons/regular/square-check.js +15 -0
- package/dist/ui/icons/regular/square-dashed.js +15 -0
- package/dist/ui/icons/regular/square-left.js +16 -0
- package/dist/ui/icons/regular/square-terminal.js +16 -0
- package/dist/ui/icons/regular/square-up-right.js +16 -0
- package/dist/ui/icons/regular/store.js +16 -0
- package/dist/ui/icons/regular/swap-arrows.js +15 -0
- package/dist/ui/icons/regular/table.js +16 -0
- package/dist/ui/icons/regular/tag.js +16 -0
- package/dist/ui/icons/regular/toggle-on.js +15 -0
- package/dist/ui/icons/regular/toolbox.js +16 -0
- package/dist/ui/icons/regular/trash-undo.js +15 -0
- package/dist/ui/icons/regular/trash.js +16 -0
- package/dist/ui/icons/regular/triangle-exclamation.js +16 -0
- package/dist/ui/icons/regular/turn-up.js +16 -0
- package/dist/ui/icons/regular/user-group.js +15 -0
- package/dist/ui/icons/regular/user-helmet-safety.js +16 -0
- package/dist/ui/icons/regular/user-lock.js +16 -0
- package/dist/ui/icons/regular/user-minus.js +16 -0
- package/dist/ui/icons/regular/user-tie.js +15 -0
- package/dist/ui/icons/regular/user.js +16 -0
- package/dist/ui/icons/regular/users.js +15 -0
- package/dist/ui/icons/regular/video.js +15 -0
- package/dist/ui/icons/regular/webhook.js +15 -0
- package/dist/ui/icons/regular/wrench.js +15 -0
- package/dist/ui/icons/regular/xmark.js +16 -0
- package/dist/ui/icons/solid/align-center.js +16 -0
- package/dist/ui/icons/solid/align-justify.js +16 -0
- package/dist/ui/icons/solid/align-left.js +16 -0
- package/dist/ui/icons/solid/align-right.js +16 -0
- package/dist/ui/icons/solid/arrow-rotate-left.js +16 -0
- package/dist/ui/icons/solid/arrow-rotate-right.js +16 -0
- package/dist/ui/icons/solid/bold.js +16 -0
- package/dist/ui/icons/solid/circle-exclamation.js +16 -0
- package/dist/ui/icons/solid/closed-captioning.js +15 -0
- package/dist/ui/icons/solid/code.js +16 -0
- package/dist/ui/icons/solid/compress.js +16 -0
- package/dist/ui/icons/solid/download.js +15 -0
- package/dist/ui/icons/solid/expand.js +16 -0
- package/dist/ui/icons/solid/file-arrow-down.js +15 -0
- package/dist/ui/icons/solid/file-code.js +16 -0
- package/dist/ui/icons/solid/grid-2.js +16 -0
- package/dist/ui/icons/solid/h1.js +16 -0
- package/dist/ui/icons/solid/h2.js +16 -0
- package/dist/ui/icons/solid/h3.js +16 -0
- package/dist/ui/icons/solid/h4.js +16 -0
- package/dist/ui/icons/solid/h5.js +16 -0
- package/dist/ui/icons/solid/h6.js +16 -0
- package/dist/ui/icons/solid/highlighter.js +16 -0
- package/dist/ui/icons/solid/horizontal-rule.js +16 -0
- package/dist/ui/icons/solid/image.js +16 -0
- package/dist/ui/icons/solid/indent.js +16 -0
- package/dist/ui/icons/solid/italic.js +16 -0
- package/dist/ui/icons/solid/link.js +16 -0
- package/dist/ui/icons/solid/list-ol.js +16 -0
- package/dist/ui/icons/solid/list-ul.js +16 -0
- package/dist/ui/icons/solid/location-dot.js +16 -0
- package/dist/ui/icons/solid/music.js +15 -0
- package/dist/ui/icons/solid/outdent.js +16 -0
- package/dist/ui/icons/solid/paragraph.js +16 -0
- package/dist/ui/icons/solid/plus.js +16 -0
- package/dist/ui/icons/solid/quote-right.js +16 -0
- package/dist/ui/icons/solid/rectangle-code.js +16 -0
- package/dist/ui/icons/solid/square-plus.js +16 -0
- package/dist/ui/icons/solid/strikethrough.js +16 -0
- package/dist/ui/icons/solid/subtitles.js +15 -0
- package/dist/ui/icons/solid/table.js +16 -0
- package/dist/ui/icons/solid/triangle-exclamation.js +16 -0
- package/dist/ui/icons/solid/underline.js +16 -0
- package/dist/ui/locales/en.js +106 -0
- package/dist/ui/src/BundledTexts.d.ts +26 -0
- package/dist/ui/src/BundledTexts.js +57 -0
- package/dist/ui/src/HostServicesProvider.js +26 -0
- package/dist/ui/src/Message.d.ts +29 -0
- package/dist/ui/src/Message.js +9 -0
- package/dist/ui/src/TextsProvider.d.ts +32 -0
- package/dist/ui/src/TextsProvider.js +22 -0
- package/dist/ui/src/UiTextKey.d.ts +2 -0
- package/dist/ui/src/actions/Actions/ActionTooltip.js +24 -0
- package/dist/ui/src/actions/Actions/Shortcut.d.ts +23 -0
- package/dist/ui/src/actions/Actions/Shortcut.js +45 -0
- package/dist/ui/src/actions/Actions/index.d.ts +3 -0
- package/dist/ui/src/actions/Actions/index.js +3 -0
- package/dist/ui/src/actions/Actions/registry.d.ts +211 -0
- package/dist/ui/src/actions/Actions/registry.js +580 -0
- package/dist/ui/src/actions/Actions/shortcuts.d.ts +85 -0
- package/dist/ui/src/actions/Actions/shortcuts.js +284 -0
- package/dist/ui/src/actions/Button.d.ts +191 -0
- package/dist/ui/src/actions/Button.js +164 -0
- package/dist/ui/src/actions/Dropdown/DropdownContext.js +12 -0
- package/dist/ui/src/actions/Dropdown/Footer.d.ts +15 -0
- package/dist/ui/src/actions/Dropdown/Footer.js +14 -0
- package/dist/ui/src/actions/Dropdown/Group.d.ts +26 -0
- package/dist/ui/src/actions/Dropdown/Group.js +19 -0
- package/dist/ui/src/actions/Dropdown/Menu.d.ts +47 -0
- package/dist/ui/src/actions/Dropdown/Menu.js +105 -0
- package/dist/ui/src/actions/Dropdown/MenuContent.d.ts +21 -0
- package/dist/ui/src/actions/Dropdown/MenuContent.js +150 -0
- package/dist/ui/src/actions/Dropdown/MenuContext.d.ts +9 -0
- package/dist/ui/src/actions/Dropdown/MenuContext.js +12 -0
- package/dist/ui/src/actions/Dropdown/MenuParts.d.ts +36 -0
- package/dist/ui/src/actions/Dropdown/MenuParts.js +77 -0
- package/dist/ui/src/actions/Dropdown/MenuSheet.js +26 -0
- package/dist/ui/src/actions/Dropdown/Option.d.ts +157 -0
- package/dist/ui/src/actions/Dropdown/Option.js +216 -0
- package/dist/ui/src/actions/Dropdown/OptionAction.d.ts +24 -0
- package/dist/ui/src/actions/Dropdown/OptionAction.js +31 -0
- package/dist/ui/src/actions/Dropdown/Separator.js +15 -0
- package/dist/ui/src/actions/Dropdown/Submenu.d.ts +16 -0
- package/dist/ui/src/actions/Dropdown/Submenu.js +92 -0
- package/dist/ui/src/actions/Dropdown/Text.js +12 -0
- package/dist/ui/src/actions/Dropdown/index.d.ts +71 -0
- package/dist/ui/src/actions/Dropdown/index.js +117 -0
- package/dist/ui/src/actions/Dropdown/placementStyle.js +18 -0
- package/dist/ui/src/actions/Dropdown/triggers/ButtonTrigger.d.ts +57 -0
- package/dist/ui/src/actions/Dropdown/triggers/ButtonTrigger.js +53 -0
- package/dist/ui/src/actions/Dropdown/triggers/DropdownTriggerButton.d.ts +18 -0
- package/dist/ui/src/actions/Dropdown/triggers/DropdownTriggerButton.js +40 -0
- package/dist/ui/src/actions/Dropdown/triggers/IconTrigger.d.ts +35 -0
- package/dist/ui/src/actions/Dropdown/triggers/IconTrigger.js +27 -0
- package/dist/ui/src/actions/Dropdown/triggers/PillTrigger.d.ts +20 -0
- package/dist/ui/src/actions/Dropdown/triggers/PillTrigger.js +28 -0
- package/dist/ui/src/actions/Dropdown/triggers/TextualTrigger.d.ts +16 -0
- package/dist/ui/src/actions/Dropdown/triggers/TextualTrigger.js +26 -0
- package/dist/ui/src/actions/Dropdown/triggers/handleDropdownTriggerKeyDown.js +12 -0
- package/dist/ui/src/actions/Dropdown/triggers/types.d.ts +7 -0
- package/dist/ui/src/actions/Dropdown/useCloseMenu.d.ts +7 -0
- package/dist/ui/src/actions/Dropdown/useCloseMenu.js +14 -0
- package/dist/ui/src/actions/Dropdown/useDropdownRegistry.js +15 -0
- package/dist/ui/src/actions/Dropdown/useTriggerLang.js +14 -0
- package/dist/ui/src/actions/EditorToolbar/Button.d.ts +36 -0
- package/dist/ui/src/actions/EditorToolbar/Button.js +42 -0
- package/dist/ui/src/actions/EditorToolbar/Buttons.d.ts +23 -0
- package/dist/ui/src/actions/EditorToolbar/Buttons.js +138 -0
- package/dist/ui/src/actions/EditorToolbar/Group.js +11 -0
- package/dist/ui/src/actions/EditorToolbar/hooks.d.ts +15 -0
- package/dist/ui/src/actions/EditorToolbar/hooks.js +48 -0
- package/dist/ui/src/actions/EditorToolbar/index.d.ts +67 -0
- package/dist/ui/src/actions/EditorToolbar/index.js +147 -0
- package/dist/ui/src/actions/MultipleSelectionActionBar.d.ts +92 -0
- package/dist/ui/src/actions/MultipleSelectionActionBar.js +123 -0
- package/dist/ui/src/actions/SplitButton/Caret.js +29 -0
- package/dist/ui/src/actions/SplitButton/index.d.ts +52 -0
- package/dist/ui/src/actions/SplitButton/index.js +38 -0
- package/dist/ui/src/actions/disabledReason.d.ts +28 -0
- package/dist/ui/src/actions/disabledReason.js +30 -0
- package/dist/ui/src/color/generateColorMapper.js +6 -0
- package/dist/ui/src/color/oklch.js +9 -0
- package/dist/ui/src/color/utils.js +15 -0
- package/dist/ui/src/content/ApiKey.d.ts +8 -0
- package/dist/ui/src/content/ApiKey.js +12 -0
- package/dist/ui/src/content/Avatar.d.ts +57 -0
- package/dist/ui/src/content/Avatar.js +55 -0
- package/dist/ui/src/content/CodeSnippet.d.ts +26 -0
- package/dist/ui/src/content/CodeSnippet.js +27 -0
- package/dist/ui/src/content/CopyButton.d.ts +8 -0
- package/dist/ui/src/content/CopyButton.js +22 -0
- package/dist/ui/src/content/CopyableId.d.ts +13 -0
- package/dist/ui/src/content/CopyableId.js +33 -0
- package/dist/ui/src/content/CopyableValue.d.ts +36 -0
- package/dist/ui/src/content/CopyableValue.js +58 -0
- package/dist/ui/src/content/DateSettings.d.ts +20 -0
- package/dist/ui/src/content/DateSettings.js +26 -0
- package/dist/ui/src/content/FeedbackDot.d.ts +19 -0
- package/dist/ui/src/content/FeedbackDot.js +25 -0
- package/dist/ui/src/content/FramedImage.d.ts +22 -0
- package/dist/ui/src/content/FramedImage.js +44 -0
- package/dist/ui/src/content/IconAvatar.d.ts +42 -0
- package/dist/ui/src/content/IconAvatar.js +36 -0
- package/dist/ui/src/content/IdText.d.ts +14 -0
- package/dist/ui/src/content/IdText.js +30 -0
- package/dist/ui/src/content/InitialsAvatar.d.ts +42 -0
- package/dist/ui/src/content/InitialsAvatar.js +69 -0
- package/dist/ui/src/content/Pill.d.ts +47 -0
- package/dist/ui/src/content/Pill.js +40 -0
- package/dist/ui/src/content/SmartDate.d.ts +34 -0
- package/dist/ui/src/content/SmartDate.js +24 -0
- package/dist/ui/src/content/UploadThreatTriangle.d.ts +8 -0
- package/dist/ui/src/content/UploadThreatTriangle.js +25 -0
- package/dist/ui/src/content/UsageMeter.d.ts +36 -0
- package/dist/ui/src/content/UsageMeter.js +67 -0
- package/dist/ui/src/content/ValidityTriangles.d.ts +38 -0
- package/dist/ui/src/content/ValidityTriangles.js +56 -0
- package/dist/ui/src/content/pillClassName.js +15 -0
- package/dist/ui/src/feedback/BlankSlate.d.ts +93 -0
- package/dist/ui/src/feedback/BlankSlate.js +93 -0
- package/dist/ui/src/feedback/Callout.d.ts +35 -0
- package/dist/ui/src/feedback/Callout.js +33 -0
- package/dist/ui/src/feedback/ProgressBar.d.ts +35 -0
- package/dist/ui/src/feedback/ProgressBar.js +28 -0
- package/dist/ui/src/feedback/Spinner.d.ts +66 -0
- package/dist/ui/src/feedback/Spinner.js +77 -0
- package/dist/ui/src/form/AutosizeInput.d.ts +22 -0
- package/dist/ui/src/form/AutosizeInput.js +14 -0
- package/dist/ui/src/form/DebouncedTextInput.d.ts +13 -0
- package/dist/ui/src/form/DebouncedTextInput.js +52 -0
- package/dist/ui/src/form/FieldHint.d.ts +28 -0
- package/dist/ui/src/form/FieldHint.js +56 -0
- package/dist/ui/src/form/FieldWrapper.d.ts +332 -0
- package/dist/ui/src/form/FieldWrapper.js +115 -0
- package/dist/ui/src/form/FormAppContext.js +9 -0
- package/dist/ui/src/form/InputGroup.d.ts +78 -0
- package/dist/ui/src/form/InputGroup.js +98 -0
- package/dist/ui/src/form/KeyValueList.d.ts +60 -0
- package/dist/ui/src/form/KeyValueList.js +80 -0
- package/dist/ui/src/form/Label.d.ts +45 -0
- package/dist/ui/src/form/Label.js +46 -0
- package/dist/ui/src/form/NumberInput.d.ts +23 -0
- package/dist/ui/src/form/NumberInput.js +54 -0
- package/dist/ui/src/form/PasswordInput.d.ts +16 -0
- package/dist/ui/src/form/PasswordInput.js +54 -0
- package/dist/ui/src/form/RadioGroupInput.d.ts +42 -0
- package/dist/ui/src/form/RadioGroupInput.js +85 -0
- package/dist/ui/src/form/SelectInput/Context.js +8 -0
- package/dist/ui/src/form/SelectInput/SelectClearIndicator.js +17 -0
- package/dist/ui/src/form/SelectInput/SelectDropdownIndicator.js +14 -0
- package/dist/ui/src/form/SelectInput/SelectEmpty.js +10 -0
- package/dist/ui/src/form/SelectInput/SelectGroup.js +13 -0
- package/dist/ui/src/form/SelectInput/SelectInputElement.js +15 -0
- package/dist/ui/src/form/SelectInput/SelectMenu.d.ts +46 -0
- package/dist/ui/src/form/SelectInput/SelectMenu.js +89 -0
- package/dist/ui/src/form/SelectInput/SelectMultiValueRemove.js +27 -0
- package/dist/ui/src/form/SelectInput/SelectOption.js +22 -0
- package/dist/ui/src/form/SelectInput/SortableMultiValue.js +30 -0
- package/dist/ui/src/form/SelectInput/SortableValueContainer.js +19 -0
- package/dist/ui/src/form/SelectInput/index.d.ts +112 -0
- package/dist/ui/src/form/SelectInput/index.js +181 -0
- package/dist/ui/src/form/SelectInput/useSelectClassNames.js +63 -0
- package/dist/ui/src/form/SelectInput/useSelectValueAdapter.js +48 -0
- package/dist/ui/src/form/StringInput.d.ts +23 -0
- package/dist/ui/src/form/StringInput.js +29 -0
- package/dist/ui/src/form/SwitchInput.d.ts +35 -0
- package/dist/ui/src/form/SwitchInput.js +84 -0
- package/dist/ui/src/form/SwitchList.d.ts +16 -0
- package/dist/ui/src/form/SwitchList.js +25 -0
- package/dist/ui/src/form/TableList.d.ts +206 -0
- package/dist/ui/src/form/TableList.js +273 -0
- package/dist/ui/src/form/TextareaInput.d.ts +35 -0
- package/dist/ui/src/form/TextareaInput.js +73 -0
- package/dist/ui/src/form/getEditState.js +12 -0
- package/dist/ui/src/form/inputProps.d.ts +119 -0
- package/dist/ui/src/form/useTextInputHandlers.js +37 -0
- package/dist/ui/src/hooks/useAsyncSelectOptions.d.ts +52 -0
- package/dist/ui/src/hooks/useAsyncSelectOptions.js +85 -0
- package/dist/ui/src/hooks/useAutoincrementIntegerId.js +11 -0
- package/dist/ui/src/hooks/useClickOutside.d.ts +1 -0
- package/dist/ui/src/hooks/useClickOutside.js +21 -0
- package/dist/ui/src/hooks/useCopyToClipboard.d.ts +4 -0
- package/dist/ui/src/hooks/useCopyToClipboard.js +22 -0
- package/dist/ui/src/hooks/useDebounceOnBoolean.d.ts +1 -0
- package/dist/ui/src/hooks/useDebounceOnBoolean.js +26 -0
- package/dist/ui/src/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/ui/src/hooks/useDebouncedCallback.js +12 -0
- package/dist/ui/src/hooks/useDebouncedValue.d.ts +6 -0
- package/dist/ui/src/hooks/useDebouncedValue.js +17 -0
- package/dist/ui/src/hooks/useDeepCompareEffect.d.ts +2 -0
- package/dist/ui/src/hooks/useDeepCompareEffect.js +14 -0
- package/dist/ui/src/hooks/useDidUpdateEffect.d.ts +2 -0
- package/dist/ui/src/hooks/useDidUpdateEffect.js +13 -0
- package/dist/ui/src/hooks/useElementLayout.d.ts +8 -0
- package/dist/ui/src/hooks/useElementLayout.js +56 -0
- package/dist/ui/src/hooks/useMediaQuery.d.ts +13 -0
- package/dist/ui/src/hooks/useMediaQuery.js +52 -0
- package/dist/ui/src/hooks/useRovingKeyDown.d.ts +9 -0
- package/dist/ui/src/hooks/useRovingKeyDown.js +55 -0
- package/dist/ui/src/hooks/useShallowEqual.d.ts +2 -0
- package/dist/ui/src/hooks/useShallowEqual.js +15 -0
- package/dist/ui/src/hooks/useSmartRowClick.d.ts +16 -0
- package/dist/ui/src/hooks/useSmartRowClick.js +31 -0
- package/dist/ui/src/i18n.js +84 -0
- package/dist/ui/src/layout/ListOrOverview.d.ts +49 -0
- package/dist/ui/src/layout/ListOrOverview.js +26 -0
- package/dist/ui/src/layout/Page/Page.d.ts +21 -0
- package/dist/ui/src/layout/Page/Page.js +20 -0
- package/dist/ui/src/layout/Page/PageContent.d.ts +7 -0
- package/dist/ui/src/layout/Page/PageContent.js +13 -0
- package/dist/ui/src/layout/Page/PageGroup.d.ts +74 -0
- package/dist/ui/src/layout/Page/PageGroup.js +62 -0
- package/dist/ui/src/layout/Page/PageSection.d.ts +47 -0
- package/dist/ui/src/layout/Page/PageSection.js +48 -0
- package/dist/ui/src/layout/Page/index.d.ts +16 -0
- package/dist/ui/src/layout/Page/index.js +15 -0
- package/dist/ui/src/layout/Pagination.d.ts +27 -0
- package/dist/ui/src/layout/Pagination.js +64 -0
- package/dist/ui/src/layout/Pane/FormHeader.d.ts +72 -0
- package/dist/ui/src/layout/Pane/FormHeader.js +69 -0
- package/dist/ui/src/layout/Pane/ListFilter.d.ts +48 -0
- package/dist/ui/src/layout/Pane/ListFilter.js +106 -0
- package/dist/ui/src/layout/Pane/ListPresets.d.ts +45 -0
- package/dist/ui/src/layout/Pane/ListPresets.js +35 -0
- package/dist/ui/src/layout/Pane/PaneAriaLabel.d.ts +2 -0
- package/dist/ui/src/layout/Pane/PaneAriaLabel.js +9 -0
- package/dist/ui/src/layout/Pane/PaneHeader.d.ts +64 -0
- package/dist/ui/src/layout/Pane/PaneHeader.js +111 -0
- package/dist/ui/src/layout/Pane/PaneRegion.d.ts +14 -0
- package/dist/ui/src/layout/Pane/PaneRegion.js +23 -0
- package/dist/ui/src/layout/Pane/PaneTitleId.js +9 -0
- package/dist/ui/src/layout/Pane/index.d.ts +167 -0
- package/dist/ui/src/layout/Pane/index.js +104 -0
- package/dist/ui/src/layout/SidebarPanel.d.ts +96 -0
- package/dist/ui/src/layout/SidebarPanel.js +81 -0
- package/dist/ui/src/layout/SplitPane.d.ts +76 -0
- package/dist/ui/src/layout/SplitPane.js +319 -0
- package/dist/ui/src/layout/SplitView/SashActionButton.js +58 -0
- package/dist/ui/src/layout/SplitView/SplitView.js +197 -0
- package/dist/ui/src/layout/SplitView/SplitViewPane.js +12 -0
- package/dist/ui/src/layout/SplitView/SplitViewSash.js +56 -0
- package/dist/ui/src/layout/Toolbar/AddNewButton.d.ts +41 -0
- package/dist/ui/src/layout/Toolbar/AddNewButton.js +43 -0
- package/dist/ui/src/layout/Toolbar/Button.js +17 -0
- package/dist/ui/src/layout/Toolbar/Divider.d.ts +8 -0
- package/dist/ui/src/layout/Toolbar/Divider.js +16 -0
- package/dist/ui/src/layout/Toolbar/DotsDropdown.d.ts +20 -0
- package/dist/ui/src/layout/Toolbar/DotsDropdown.js +25 -0
- package/dist/ui/src/layout/Toolbar/Fill.d.ts +13 -0
- package/dist/ui/src/layout/Toolbar/Fill.js +16 -0
- package/dist/ui/src/layout/Toolbar/FilterInput.d.ts +38 -0
- package/dist/ui/src/layout/Toolbar/FilterInput.js +80 -0
- package/dist/ui/src/layout/Toolbar/FilterToggle.d.ts +33 -0
- package/dist/ui/src/layout/Toolbar/FilterToggle.js +97 -0
- package/dist/ui/src/layout/Toolbar/GoBack.d.ts +32 -0
- package/dist/ui/src/layout/Toolbar/GoBack.js +33 -0
- package/dist/ui/src/layout/Toolbar/Group.d.ts +18 -0
- package/dist/ui/src/layout/Toolbar/Group.js +17 -0
- package/dist/ui/src/layout/Toolbar/Help.d.ts +29 -0
- package/dist/ui/src/layout/Toolbar/Help.js +55 -0
- package/dist/ui/src/layout/Toolbar/Note.d.ts +10 -0
- package/dist/ui/src/layout/Toolbar/Note.js +16 -0
- package/dist/ui/src/layout/Toolbar/Pagination.d.ts +31 -0
- package/dist/ui/src/layout/Toolbar/Pagination.js +53 -0
- package/dist/ui/src/layout/Toolbar/PresetsTitle.d.ts +38 -0
- package/dist/ui/src/layout/Toolbar/PresetsTitle.js +48 -0
- package/dist/ui/src/layout/Toolbar/PrimaryButton.d.ts +53 -0
- package/dist/ui/src/layout/Toolbar/PrimaryButton.js +57 -0
- package/dist/ui/src/layout/Toolbar/Root.d.ts +30 -0
- package/dist/ui/src/layout/Toolbar/Root.js +35 -0
- package/dist/ui/src/layout/Toolbar/Search.d.ts +20 -0
- package/dist/ui/src/layout/Toolbar/Search.js +27 -0
- package/dist/ui/src/layout/Toolbar/Space.d.ts +4 -0
- package/dist/ui/src/layout/Toolbar/Space.js +9 -0
- package/dist/ui/src/layout/Toolbar/Spinner.d.ts +8 -0
- package/dist/ui/src/layout/Toolbar/Spinner.js +13 -0
- package/dist/ui/src/layout/Toolbar/Subtitle.d.ts +10 -0
- package/dist/ui/src/layout/Toolbar/Subtitle.js +12 -0
- package/dist/ui/src/layout/Toolbar/TextualDropdown.d.ts +13 -0
- package/dist/ui/src/layout/Toolbar/TextualDropdown.js +20 -0
- package/dist/ui/src/layout/Toolbar/Title.d.ts +23 -0
- package/dist/ui/src/layout/Toolbar/Title.js +43 -0
- package/dist/ui/src/layout/Toolbar/ToolbarTitleTrigger.js +23 -0
- package/dist/ui/src/layout/Toolbar/context.js +10 -0
- package/dist/ui/src/layout/Toolbar/index.d.ts +48 -0
- package/dist/ui/src/layout/Toolbar/index.js +51 -0
- package/dist/ui/src/layout/sidebarPanelStorage.d.ts +6 -0
- package/dist/ui/src/layout/sidebarPanelStorage.js +33 -0
- package/dist/ui/src/lists/ActionOrMenu.d.ts +34 -0
- package/dist/ui/src/lists/CardList.d.ts +120 -0
- package/dist/ui/src/lists/CardList.js +138 -0
- package/dist/ui/src/lists/EmptySlot.d.ts +35 -0
- package/dist/ui/src/lists/EmptySlot.js +54 -0
- package/dist/ui/src/lists/EntityRow.d.ts +57 -0
- package/dist/ui/src/lists/EntityRow.js +48 -0
- package/dist/ui/src/lists/EntitySummary.d.ts +16 -0
- package/dist/ui/src/lists/EntitySummary.js +27 -0
- package/dist/ui/src/lists/InfoList.d.ts +45 -0
- package/dist/ui/src/lists/InfoList.js +58 -0
- package/dist/ui/src/lists/InsertGap.d.ts +41 -0
- package/dist/ui/src/lists/InsertGap.js +74 -0
- package/dist/ui/src/lists/ListArea.d.ts +17 -0
- package/dist/ui/src/lists/ListArea.js +18 -0
- package/dist/ui/src/lists/MediaCard.d.ts +139 -0
- package/dist/ui/src/lists/MediaCard.js +144 -0
- package/dist/ui/src/lists/RowList.d.ts +63 -0
- package/dist/ui/src/lists/RowList.js +72 -0
- package/dist/ui/src/lists/SettingsList.d.ts +40 -0
- package/dist/ui/src/lists/SettingsList.js +47 -0
- package/dist/ui/src/lists/Table/Body.d.ts +21 -0
- package/dist/ui/src/lists/Table/Body.js +47 -0
- package/dist/ui/src/lists/Table/Cell.d.ts +47 -0
- package/dist/ui/src/lists/Table/Cell.js +42 -0
- package/dist/ui/src/lists/Table/ColumnsMenu.js +48 -0
- package/dist/ui/src/lists/Table/Header.d.ts +22 -0
- package/dist/ui/src/lists/Table/Header.js +132 -0
- package/dist/ui/src/lists/Table/HeaderCell.js +67 -0
- package/dist/ui/src/lists/Table/Row.d.ts +139 -0
- package/dist/ui/src/lists/Table/Row.js +211 -0
- package/dist/ui/src/lists/Table/Table.d.ts +61 -0
- package/dist/ui/src/lists/Table/Table.js +100 -0
- package/dist/ui/src/lists/Table/TableContext.js +17 -0
- package/dist/ui/src/lists/Table/TreeToggle.d.ts +34 -0
- package/dist/ui/src/lists/Table/TreeToggle.js +49 -0
- package/dist/ui/src/lists/Table/cells/IconCell.d.ts +11 -0
- package/dist/ui/src/lists/Table/cells/IconCell.js +17 -0
- package/dist/ui/src/lists/Table/cells/LinkCell.d.ts +11 -0
- package/dist/ui/src/lists/Table/cells/LinkCell.js +15 -0
- package/dist/ui/src/lists/Table/cells/StatusCell.d.ts +12 -0
- package/dist/ui/src/lists/Table/cells/StatusCell.js +14 -0
- package/dist/ui/src/lists/Table/cells/TimeCell.d.ts +9 -0
- package/dist/ui/src/lists/Table/cells/TimeCell.js +18 -0
- package/dist/ui/src/lists/Table/index.d.ts +17 -0
- package/dist/ui/src/lists/Table/index.js +18 -0
- package/dist/ui/src/lists/Table/layout.d.ts +19 -0
- package/dist/ui/src/lists/Table/layout.js +115 -0
- package/dist/ui/src/lists/Table/storage.d.ts +7 -0
- package/dist/ui/src/lists/Table/storage.js +26 -0
- package/dist/ui/src/lists/Table/types.d.ts +55 -0
- package/dist/ui/src/lists/Table/useClientSort.d.ts +14 -0
- package/dist/ui/src/lists/Table/useClientSort.js +31 -0
- package/dist/ui/src/lists/dnd/DragHandle.d.ts +19 -0
- package/dist/ui/src/lists/dnd/DragHandle.js +19 -0
- package/dist/ui/src/lists/dnd/DropIndicator.d.ts +21 -0
- package/dist/ui/src/lists/dnd/DropIndicator.js +18 -0
- package/dist/ui/src/lists/dnd/SortableList.d.ts +101 -0
- package/dist/ui/src/lists/dnd/SortableList.js +238 -0
- package/dist/ui/src/lists/dnd/autoScroll.js +53 -0
- package/dist/ui/src/lists/dnd/dropTargetClassName.d.ts +25 -0
- package/dist/ui/src/lists/dnd/dropTargetClassName.js +18 -0
- package/dist/ui/src/lists/dnd/getGapTo.js +14 -0
- package/dist/ui/src/lists/dnd/index.d.ts +16 -0
- package/dist/ui/src/lists/dnd/index.js +16 -0
- package/dist/ui/src/lists/dnd/reorder.d.ts +7 -0
- package/dist/ui/src/lists/dnd/reorder.js +16 -0
- package/dist/ui/src/lists/dnd/tree/SortableTree.d.ts +69 -0
- package/dist/ui/src/lists/dnd/tree/SortableTree.js +331 -0
- package/dist/ui/src/lists/dnd/tree/TreeRowContext.d.ts +8 -0
- package/dist/ui/src/lists/dnd/tree/TreeRowContext.js +10 -0
- package/dist/ui/src/lists/dnd/tree/types.d.ts +53 -0
- package/dist/ui/src/lists/dnd/tree/useTreeKeyboardNavigation.js +59 -0
- package/dist/ui/src/lists/dnd/tree/utils.d.ts +8 -0
- package/dist/ui/src/lists/dnd/tree/utils.js +96 -0
- package/dist/ui/src/lists/dnd/types.d.ts +7 -0
- package/dist/ui/src/lists/dnd/types.js +6 -0
- package/dist/ui/src/lists/dnd/useDragMonitor.d.ts +11 -0
- package/dist/ui/src/lists/dnd/useDragMonitor.js +40 -0
- package/dist/ui/src/lists/dnd/useDraggable.d.ts +17 -0
- package/dist/ui/src/lists/dnd/useDraggable.js +66 -0
- package/dist/ui/src/lists/dnd/useDropTarget.d.ts +19 -0
- package/dist/ui/src/lists/dnd/useDropTarget.js +53 -0
- package/dist/ui/src/lists/dnd/useFileDropTarget.d.ts +20 -0
- package/dist/ui/src/lists/dnd/useFileDropTarget.js +53 -0
- package/dist/ui/src/lists/dnd/useFilePicker.d.ts +15 -0
- package/dist/ui/src/lists/dnd/useFilePicker.js +28 -0
- package/dist/ui/src/lists/dnd/useIsFileDragActive.d.ts +1 -0
- package/dist/ui/src/lists/dnd/useIsFileDragActive.js +28 -0
- package/dist/ui/src/navigation/Chevron.d.ts +40 -0
- package/dist/ui/src/navigation/Chevron.js +56 -0
- package/dist/ui/src/navigation/Link.d.ts +58 -0
- package/dist/ui/src/navigation/Link.js +40 -0
- package/dist/ui/src/navigation/NavList.d.ts +29 -0
- package/dist/ui/src/navigation/NavList.js +31 -0
- package/dist/ui/src/navigation/NavigationProvider.d.ts +61 -0
- package/dist/ui/src/navigation/NavigationProvider.js +55 -0
- package/dist/ui/src/navigation/SegmentedControl.d.ts +70 -0
- package/dist/ui/src/navigation/SegmentedControl.js +58 -0
- package/dist/ui/src/navigation/SettingsMenu.d.ts +107 -0
- package/dist/ui/src/navigation/SettingsMenu.js +91 -0
- package/dist/ui/src/navigation/SidebarTree/SidebarTreeNode.d.ts +114 -0
- package/dist/ui/src/navigation/SidebarTree/SidebarTreeNode.js +173 -0
- package/dist/ui/src/navigation/SidebarTree/SidebarTreeNodeActions.d.ts +30 -0
- package/dist/ui/src/navigation/SidebarTree/SidebarTreeNodeActions.js +62 -0
- package/dist/ui/src/navigation/SidebarTree/index.d.ts +6 -0
- package/dist/ui/src/navigation/SidebarTree/index.js +9 -0
- package/dist/ui/src/navigation/Tabs.d.ts +125 -0
- package/dist/ui/src/navigation/Tabs.js +151 -0
- package/dist/ui/src/overlays/FullscreenModal.d.ts +41 -0
- package/dist/ui/src/overlays/FullscreenModal.js +81 -0
- package/dist/ui/src/overlays/HoverCard.d.ts +55 -0
- package/dist/ui/src/overlays/HoverCard.js +70 -0
- package/dist/ui/src/overlays/Modal.d.ts +56 -0
- package/dist/ui/src/overlays/Modal.js +134 -0
- package/dist/ui/src/overlays/NewZIndex.d.ts +14 -0
- package/dist/ui/src/overlays/NewZIndex.js +19 -0
- package/dist/ui/src/overlays/Popover.d.ts +50 -0
- package/dist/ui/src/overlays/Popover.js +77 -0
- package/dist/ui/src/overlays/Portal.d.ts +12 -0
- package/dist/ui/src/overlays/Portal.js +33 -0
- package/dist/ui/src/overlays/PortalWrapper.js +22 -0
- package/dist/ui/src/overlays/Tooltip.d.ts +58 -0
- package/dist/ui/src/overlays/Tooltip.js +93 -0
- package/dist/ui/src/overlays/confirmQuestion.js +61 -0
- package/dist/ui/src/overlays/floatingTrigger.d.ts +3 -0
- package/dist/ui/src/overlays/floatingTrigger.js +13 -0
- package/dist/ui/src/overlays/useModalClose.js +134 -0
- package/dist/ui/src/patterns/ListDetail/Overview.js +16 -0
- package/dist/ui/src/patterns/ListDetail/Page.d.ts +118 -0
- package/dist/ui/src/patterns/ListDetail/Page.js +132 -0
- package/dist/ui/src/patterns/ListDetail/Panel.d.ts +62 -0
- package/dist/ui/src/patterns/ListDetail/Panel.js +72 -0
- package/dist/ui/src/patterns/ListDetail/Split.d.ts +37 -0
- package/dist/ui/src/patterns/ListDetail/Split.js +175 -0
- package/dist/ui/src/patterns/ListDetail/Widths.d.ts +13 -0
- package/dist/ui/src/patterns/ListDetail/Widths.js +21 -0
- package/dist/ui/src/patterns/ListDetail/index.d.ts +12 -0
- package/dist/ui/src/patterns/ListDetail/index.js +14 -0
- package/dist/ui/src/patterns/ListFormPage.d.ts +38 -0
- package/dist/ui/src/patterns/ListFormPage.js +29 -0
- package/dist/ui/src/semantic/Aside.d.ts +28 -0
- package/dist/ui/src/semantic/Aside.js +19 -0
- package/dist/ui/src/semantic/Heading.d.ts +22 -0
- package/dist/ui/src/semantic/Heading.js +26 -0
- package/dist/ui/src/semantic/Main.d.ts +12 -0
- package/dist/ui/src/semantic/Main.js +67 -0
- package/dist/ui/src/semantic/Nav.d.ts +24 -0
- package/dist/ui/src/semantic/Nav.js +20 -0
- package/dist/ui/src/semantic/NavigationFocusProvider.js +9 -0
- package/dist/ui/src/semantic/RawButton.d.ts +91 -0
- package/dist/ui/src/semantic/RawButton.js +57 -0
- package/dist/ui/src/semantic/Search.d.ts +26 -0
- package/dist/ui/src/semantic/Search.js +20 -0
- package/dist/ui/src/utils/escapeHtml.js +6 -0
- package/dist/ui/src/utils/events.js +6 -0
- package/dist/ui/src/utils/formatDate.d.ts +62 -0
- package/dist/ui/src/utils/formatDate.js +95 -0
- package/dist/ui/src/utils/isDefined.js +6 -0
- package/dist/ui/src/utils/localeDirection.js +11 -0
- package/dist/ui/src/utils/mouseHoverProps.js +13 -0
- package/dist/ui/src/utils/pointerNearGap.d.ts +5 -0
- package/dist/ui/src/utils/pointerNearGap.js +56 -0
- package/dist/ui/src/utils/randomKey.js +10 -0
- package/dist/ui/src/utils/times.js +6 -0
- package/dist/ui/src/utils/types.d.ts +11 -0
- package/dist/utils/formatDate.d.ts +1 -0
- package/dist/utils/formatDate.js +2 -0
- package/package.json +71 -43
- package/LICENSE.md +0 -21
- package/dist/cjs/Button/index.js +0 -94
- package/dist/cjs/Button/index.js.map +0 -1
- package/dist/cjs/Button/styles.module.css.json +0 -1
- package/dist/cjs/ButtonGroup/Button/index.js +0 -19
- package/dist/cjs/ButtonGroup/Button/index.js.map +0 -1
- package/dist/cjs/ButtonGroup/Button/styles.module.css.json +0 -1
- package/dist/cjs/ButtonGroup/Group/index.js +0 -29
- package/dist/cjs/ButtonGroup/Group/index.js.map +0 -1
- package/dist/cjs/ButtonGroup/Group/styles.module.css.json +0 -1
- package/dist/cjs/ButtonGroup/index.js +0 -8
- package/dist/cjs/ButtonGroup/index.js.map +0 -1
- package/dist/cjs/Canvas/index.js +0 -458
- package/dist/cjs/Canvas/index.js.map +0 -1
- package/dist/cjs/Canvas/styles.module.css.json +0 -1
- package/dist/cjs/ContextInspector/index.js +0 -142
- package/dist/cjs/ContextInspector/index.js.map +0 -1
- package/dist/cjs/ContextInspector/styles.module.css.json +0 -1
- package/dist/cjs/Dropdown/Dropdown.js +0 -135
- package/dist/cjs/Dropdown/Dropdown.js.map +0 -1
- package/dist/cjs/Dropdown/DropdownContext.js +0 -9
- package/dist/cjs/Dropdown/DropdownContext.js.map +0 -1
- package/dist/cjs/Dropdown/Group.js +0 -16
- package/dist/cjs/Dropdown/Group.js.map +0 -1
- package/dist/cjs/Dropdown/Menu.js +0 -248
- package/dist/cjs/Dropdown/Menu.js.map +0 -1
- package/dist/cjs/Dropdown/MenuContext.js +0 -12
- package/dist/cjs/Dropdown/MenuContext.js.map +0 -1
- package/dist/cjs/Dropdown/Option.js +0 -104
- package/dist/cjs/Dropdown/Option.js.map +0 -1
- package/dist/cjs/Dropdown/OptionAction.js +0 -29
- package/dist/cjs/Dropdown/OptionAction.js.map +0 -1
- package/dist/cjs/Dropdown/Portal.js +0 -35
- package/dist/cjs/Dropdown/Portal.js.map +0 -1
- package/dist/cjs/Dropdown/Separator.js +0 -41
- package/dist/cjs/Dropdown/Separator.js.map +0 -1
- package/dist/cjs/Dropdown/Text.js +0 -14
- package/dist/cjs/Dropdown/Text.js.map +0 -1
- package/dist/cjs/Dropdown/index.js +0 -18
- package/dist/cjs/Dropdown/index.js.map +0 -1
- package/dist/cjs/Dropdown/styles.module.css.json +0 -1
- package/dist/cjs/FieldError/index.js +0 -14
- package/dist/cjs/FieldError/index.js.map +0 -1
- package/dist/cjs/FieldError/styles.module.css.json +0 -1
- package/dist/cjs/FieldGroup/index.js +0 -40
- package/dist/cjs/FieldGroup/index.js.map +0 -1
- package/dist/cjs/FieldGroup/styles.module.css.json +0 -1
- package/dist/cjs/FieldHint/index.js +0 -14
- package/dist/cjs/FieldHint/index.js.map +0 -1
- package/dist/cjs/FieldHint/styles.module.css.json +0 -1
- package/dist/cjs/FieldWrapper/index.js +0 -29
- package/dist/cjs/FieldWrapper/index.js.map +0 -1
- package/dist/cjs/Form/index.js +0 -173
- package/dist/cjs/Form/index.js.map +0 -1
- package/dist/cjs/Form/styles.module.css.json +0 -1
- package/dist/cjs/FormLabel/index.js +0 -45
- package/dist/cjs/FormLabel/index.js.map +0 -1
- package/dist/cjs/FormLabel/styles.module.css.json +0 -1
- package/dist/cjs/HotKey/index.js +0 -105
- package/dist/cjs/HotKey/index.js.map +0 -1
- package/dist/cjs/HotKey/styles.module.css.json +0 -1
- package/dist/cjs/Section/index.js +0 -70
- package/dist/cjs/Section/index.js.map +0 -1
- package/dist/cjs/Section/styles.module.css.json +0 -1
- package/dist/cjs/SelectField/index.js +0 -44
- package/dist/cjs/SelectField/index.js.map +0 -1
- package/dist/cjs/SelectInput/index.js +0 -158
- package/dist/cjs/SelectInput/index.js.map +0 -1
- package/dist/cjs/SidebarPanel/index.js +0 -85
- package/dist/cjs/SidebarPanel/index.js.map +0 -1
- package/dist/cjs/SidebarPanel/styles.module.css.json +0 -1
- package/dist/cjs/Spinner/index.js +0 -64
- package/dist/cjs/Spinner/index.js.map +0 -1
- package/dist/cjs/Spinner/styles.module.css.json +0 -1
- package/dist/cjs/SplitView/SplitViewPane/index.js +0 -14
- package/dist/cjs/SplitView/SplitViewPane/index.js.map +0 -1
- package/dist/cjs/SplitView/SplitViewPane/styles.module.css.json +0 -1
- package/dist/cjs/SplitView/SplitViewSash/index.js +0 -76
- package/dist/cjs/SplitView/SplitViewSash/index.js.map +0 -1
- package/dist/cjs/SplitView/SplitViewSash/styles.module.css.json +0 -1
- package/dist/cjs/SplitView/index.js +0 -206
- package/dist/cjs/SplitView/index.js.map +0 -1
- package/dist/cjs/SplitView/styles.module.css.json +0 -1
- package/dist/cjs/SplitView/types.js +0 -3
- package/dist/cjs/SplitView/types.js.map +0 -1
- package/dist/cjs/SwitchField/index.js +0 -34
- package/dist/cjs/SwitchField/index.js.map +0 -1
- package/dist/cjs/SwitchField/styles.module.css.json +0 -1
- package/dist/cjs/SwitchInput/index.js +0 -61
- package/dist/cjs/SwitchInput/index.js.map +0 -1
- package/dist/cjs/SwitchInput/styles.module.css.json +0 -1
- package/dist/cjs/TextField/index.js +0 -26
- package/dist/cjs/TextField/index.js.map +0 -1
- package/dist/cjs/TextInput/index.js +0 -49
- package/dist/cjs/TextInput/index.js.map +0 -1
- package/dist/cjs/TextInput/styles.module.css.json +0 -1
- package/dist/cjs/TextareaField/index.js +0 -26
- package/dist/cjs/TextareaField/index.js.map +0 -1
- package/dist/cjs/TextareaInput/index.js +0 -49
- package/dist/cjs/TextareaInput/index.js.map +0 -1
- package/dist/cjs/TextareaInput/styles.module.css.json +0 -1
- package/dist/cjs/Toolbar/Button/index.js +0 -15
- package/dist/cjs/Toolbar/Button/index.js.map +0 -1
- package/dist/cjs/Toolbar/Button/styles.module.css.json +0 -1
- package/dist/cjs/Toolbar/Stack/index.js +0 -19
- package/dist/cjs/Toolbar/Stack/index.js.map +0 -1
- package/dist/cjs/Toolbar/Stack/styles.module.css.json +0 -1
- package/dist/cjs/Toolbar/Title/index.js +0 -15
- package/dist/cjs/Toolbar/Title/index.js.map +0 -1
- package/dist/cjs/Toolbar/Title/styles.module.css.json +0 -1
- package/dist/cjs/Toolbar/Toolbar/index.js +0 -99
- package/dist/cjs/Toolbar/Toolbar/index.js.map +0 -1
- package/dist/cjs/Toolbar/Toolbar/styles.module.css.json +0 -1
- package/dist/cjs/Toolbar/index.js +0 -12
- package/dist/cjs/Toolbar/index.js.map +0 -1
- package/dist/cjs/Tooltip/Tooltip/index.js +0 -116
- package/dist/cjs/Tooltip/Tooltip/index.js.map +0 -1
- package/dist/cjs/Tooltip/TooltipContent/index.js +0 -147
- package/dist/cjs/Tooltip/TooltipContent/index.js.map +0 -1
- package/dist/cjs/Tooltip/TooltipContent/styles.module.css.json +0 -1
- package/dist/cjs/Tooltip/TooltipDelayGroup/index.js +0 -140
- package/dist/cjs/Tooltip/TooltipDelayGroup/index.js.map +0 -1
- package/dist/cjs/Tooltip/TooltipTrigger/index.js +0 -102
- package/dist/cjs/Tooltip/TooltipTrigger/index.js.map +0 -1
- package/dist/cjs/Tooltip/index.js +0 -12
- package/dist/cjs/Tooltip/index.js.map +0 -1
- package/dist/cjs/Tooltip/utils.js +0 -165
- package/dist/cjs/Tooltip/utils.js.map +0 -1
- package/dist/cjs/VerticalSplit/index.js +0 -337
- package/dist/cjs/VerticalSplit/index.js.map +0 -1
- package/dist/cjs/VerticalSplit/styles.module.css.json +0 -1
- package/dist/cjs/generateStyleFromCtx/index.js +0 -169
- package/dist/cjs/generateStyleFromCtx/index.js.map +0 -1
- package/dist/cjs/icons.js +0 -56
- package/dist/cjs/icons.js.map +0 -1
- package/dist/cjs/index.js +0 -47
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/mergeRefs/index.js +0 -20
- package/dist/cjs/mergeRefs/index.js.map +0 -1
- package/dist/cjs/useClickOutside/index.js +0 -25
- package/dist/cjs/useClickOutside/index.js.map +0 -1
- package/dist/cjs/useMediaQuery/index.js +0 -158
- package/dist/cjs/useMediaQuery/index.js.map +0 -1
- package/dist/esm/Button/index.d.ts +0 -91
- package/dist/esm/Button/index.js +0 -86
- package/dist/esm/Button/index.js.map +0 -1
- package/dist/esm/Button/styles.module.css.json +0 -1
- package/dist/esm/ButtonGroup/Button/index.d.ts +0 -10
- package/dist/esm/ButtonGroup/Button/index.js +0 -12
- package/dist/esm/ButtonGroup/Button/index.js.map +0 -1
- package/dist/esm/ButtonGroup/Button/styles.module.css.json +0 -1
- package/dist/esm/ButtonGroup/Group/index.d.ts +0 -21
- package/dist/esm/ButtonGroup/Group/index.js +0 -22
- package/dist/esm/ButtonGroup/Group/index.js.map +0 -1
- package/dist/esm/ButtonGroup/Group/styles.module.css.json +0 -1
- package/dist/esm/ButtonGroup/index.d.ts +0 -4
- package/dist/esm/ButtonGroup/index.js +0 -3
- package/dist/esm/ButtonGroup/index.js.map +0 -1
- package/dist/esm/Canvas/index.d.ts +0 -408
- package/dist/esm/Canvas/index.js +0 -427
- package/dist/esm/Canvas/index.js.map +0 -1
- package/dist/esm/Canvas/styles.module.css.json +0 -1
- package/dist/esm/ContextInspector/index.d.ts +0 -6
- package/dist/esm/ContextInspector/index.js +0 -111
- package/dist/esm/ContextInspector/index.js.map +0 -1
- package/dist/esm/ContextInspector/styles.module.css.json +0 -1
- package/dist/esm/Dropdown/Dropdown.d.ts +0 -113
- package/dist/esm/Dropdown/Dropdown.js +0 -128
- package/dist/esm/Dropdown/Dropdown.js.map +0 -1
- package/dist/esm/Dropdown/DropdownContext.d.ts +0 -6
- package/dist/esm/Dropdown/DropdownContext.js +0 -6
- package/dist/esm/Dropdown/DropdownContext.js.map +0 -1
- package/dist/esm/Dropdown/Group.d.ts +0 -7
- package/dist/esm/Dropdown/Group.js +0 -9
- package/dist/esm/Dropdown/Group.js.map +0 -1
- package/dist/esm/Dropdown/Menu.d.ts +0 -6
- package/dist/esm/Dropdown/Menu.js +0 -218
- package/dist/esm/Dropdown/Menu.js.map +0 -1
- package/dist/esm/Dropdown/MenuContext.d.ts +0 -8
- package/dist/esm/Dropdown/MenuContext.js +0 -9
- package/dist/esm/Dropdown/MenuContext.js.map +0 -1
- package/dist/esm/Dropdown/Option.d.ts +0 -13
- package/dist/esm/Dropdown/Option.js +0 -74
- package/dist/esm/Dropdown/Option.js.map +0 -1
- package/dist/esm/Dropdown/OptionAction.d.ts +0 -12
- package/dist/esm/Dropdown/OptionAction.js +0 -22
- package/dist/esm/Dropdown/OptionAction.js.map +0 -1
- package/dist/esm/Dropdown/Portal.d.ts +0 -5
- package/dist/esm/Dropdown/Portal.js +0 -28
- package/dist/esm/Dropdown/Portal.js.map +0 -1
- package/dist/esm/Dropdown/Separator.d.ts +0 -2
- package/dist/esm/Dropdown/Separator.js +0 -11
- package/dist/esm/Dropdown/Separator.js.map +0 -1
- package/dist/esm/Dropdown/Text.d.ts +0 -5
- package/dist/esm/Dropdown/Text.js +0 -7
- package/dist/esm/Dropdown/Text.js.map +0 -1
- package/dist/esm/Dropdown/index.d.ts +0 -9
- package/dist/esm/Dropdown/index.js +0 -9
- package/dist/esm/Dropdown/index.js.map +0 -1
- package/dist/esm/Dropdown/styles.module.css.json +0 -1
- package/dist/esm/FieldError/index.d.ts +0 -6
- package/dist/esm/FieldError/index.js +0 -7
- package/dist/esm/FieldError/index.js.map +0 -1
- package/dist/esm/FieldError/styles.module.css.json +0 -1
- package/dist/esm/FieldGroup/index.d.ts +0 -7
- package/dist/esm/FieldGroup/index.js +0 -33
- package/dist/esm/FieldGroup/index.js.map +0 -1
- package/dist/esm/FieldGroup/styles.module.css.json +0 -1
- package/dist/esm/FieldHint/index.d.ts +0 -6
- package/dist/esm/FieldHint/index.js +0 -7
- package/dist/esm/FieldHint/index.js.map +0 -1
- package/dist/esm/FieldHint/styles.module.css.json +0 -1
- package/dist/esm/FieldWrapper/index.d.ts +0 -13
- package/dist/esm/FieldWrapper/index.js +0 -22
- package/dist/esm/FieldWrapper/index.js.map +0 -1
- package/dist/esm/Form/index.d.ts +0 -109
- package/dist/esm/Form/index.js +0 -143
- package/dist/esm/Form/index.js.map +0 -1
- package/dist/esm/Form/styles.module.css.json +0 -1
- package/dist/esm/FormLabel/index.d.ts +0 -10
- package/dist/esm/FormLabel/index.js +0 -38
- package/dist/esm/FormLabel/index.js.map +0 -1
- package/dist/esm/FormLabel/styles.module.css.json +0 -1
- package/dist/esm/HotKey/index.d.ts +0 -70
- package/dist/esm/HotKey/index.js +0 -75
- package/dist/esm/HotKey/index.js.map +0 -1
- package/dist/esm/HotKey/styles.module.css.json +0 -1
- package/dist/esm/Section/index.d.ts +0 -63
- package/dist/esm/Section/index.js +0 -63
- package/dist/esm/Section/index.js.map +0 -1
- package/dist/esm/Section/styles.module.css.json +0 -1
- package/dist/esm/SelectField/index.d.ts +0 -60
- package/dist/esm/SelectField/index.js +0 -34
- package/dist/esm/SelectField/index.js.map +0 -1
- package/dist/esm/SelectInput/index.d.ts +0 -17
- package/dist/esm/SelectInput/index.js +0 -125
- package/dist/esm/SelectInput/index.js.map +0 -1
- package/dist/esm/SidebarPanel/index.d.ts +0 -43
- package/dist/esm/SidebarPanel/index.js +0 -55
- package/dist/esm/SidebarPanel/index.js.map +0 -1
- package/dist/esm/SidebarPanel/styles.module.css.json +0 -1
- package/dist/esm/Spinner/index.d.ts +0 -27
- package/dist/esm/Spinner/index.js +0 -57
- package/dist/esm/Spinner/index.js.map +0 -1
- package/dist/esm/Spinner/styles.module.css.json +0 -1
- package/dist/esm/SplitView/SplitViewPane/index.d.ts +0 -7
- package/dist/esm/SplitView/SplitViewPane/index.js +0 -7
- package/dist/esm/SplitView/SplitViewPane/index.js.map +0 -1
- package/dist/esm/SplitView/SplitViewPane/styles.module.css.json +0 -1
- package/dist/esm/SplitView/SplitViewSash/index.d.ts +0 -17
- package/dist/esm/SplitView/SplitViewSash/index.js +0 -46
- package/dist/esm/SplitView/SplitViewSash/index.js.map +0 -1
- package/dist/esm/SplitView/SplitViewSash/styles.module.css.json +0 -1
- package/dist/esm/SplitView/index.d.ts +0 -16
- package/dist/esm/SplitView/index.js +0 -176
- package/dist/esm/SplitView/index.js.map +0 -1
- package/dist/esm/SplitView/styles.module.css.json +0 -1
- package/dist/esm/SplitView/types.d.ts +0 -8
- package/dist/esm/SplitView/types.js +0 -2
- package/dist/esm/SplitView/types.js.map +0 -1
- package/dist/esm/SwitchField/index.d.ts +0 -16
- package/dist/esm/SwitchField/index.js +0 -27
- package/dist/esm/SwitchField/index.js.map +0 -1
- package/dist/esm/SwitchField/styles.module.css.json +0 -1
- package/dist/esm/SwitchInput/index.d.ts +0 -10
- package/dist/esm/SwitchInput/index.js +0 -54
- package/dist/esm/SwitchInput/index.js.map +0 -1
- package/dist/esm/SwitchInput/styles.module.css.json +0 -1
- package/dist/esm/TextField/index.d.ts +0 -17
- package/dist/esm/TextField/index.js +0 -19
- package/dist/esm/TextField/index.js.map +0 -1
- package/dist/esm/TextInput/index.d.ts +0 -15
- package/dist/esm/TextInput/index.js +0 -42
- package/dist/esm/TextInput/index.js.map +0 -1
- package/dist/esm/TextInput/styles.module.css.json +0 -1
- package/dist/esm/TextareaField/index.d.ts +0 -17
- package/dist/esm/TextareaField/index.js +0 -19
- package/dist/esm/TextareaField/index.js.map +0 -1
- package/dist/esm/TextareaInput/index.d.ts +0 -14
- package/dist/esm/TextareaInput/index.js +0 -42
- package/dist/esm/TextareaInput/index.js.map +0 -1
- package/dist/esm/TextareaInput/styles.module.css.json +0 -1
- package/dist/esm/Toolbar/Button/index.d.ts +0 -8
- package/dist/esm/Toolbar/Button/index.js +0 -8
- package/dist/esm/Toolbar/Button/index.js.map +0 -1
- package/dist/esm/Toolbar/Button/styles.module.css.json +0 -1
- package/dist/esm/Toolbar/Stack/index.d.ts +0 -8
- package/dist/esm/Toolbar/Stack/index.js +0 -12
- package/dist/esm/Toolbar/Stack/index.js.map +0 -1
- package/dist/esm/Toolbar/Stack/styles.module.css.json +0 -1
- package/dist/esm/Toolbar/Title/index.d.ts +0 -7
- package/dist/esm/Toolbar/Title/index.js +0 -8
- package/dist/esm/Toolbar/Title/index.js.map +0 -1
- package/dist/esm/Toolbar/Title/styles.module.css.json +0 -1
- package/dist/esm/Toolbar/Toolbar/index.d.ts +0 -91
- package/dist/esm/Toolbar/Toolbar/index.js +0 -92
- package/dist/esm/Toolbar/Toolbar/index.js.map +0 -1
- package/dist/esm/Toolbar/Toolbar/styles.module.css.json +0 -1
- package/dist/esm/Toolbar/index.d.ts +0 -8
- package/dist/esm/Toolbar/index.js +0 -5
- package/dist/esm/Toolbar/index.js.map +0 -1
- package/dist/esm/Tooltip/Tooltip/index.d.ts +0 -74
- package/dist/esm/Tooltip/Tooltip/index.js +0 -89
- package/dist/esm/Tooltip/Tooltip/index.js.map +0 -1
- package/dist/esm/Tooltip/TooltipContent/index.d.ts +0 -68
- package/dist/esm/Tooltip/TooltipContent/index.js +0 -118
- package/dist/esm/Tooltip/TooltipContent/index.js.map +0 -1
- package/dist/esm/Tooltip/TooltipContent/styles.module.css.json +0 -1
- package/dist/esm/Tooltip/TooltipDelayGroup/index.d.ts +0 -118
- package/dist/esm/Tooltip/TooltipDelayGroup/index.js +0 -113
- package/dist/esm/Tooltip/TooltipDelayGroup/index.js.map +0 -1
- package/dist/esm/Tooltip/TooltipTrigger/index.d.ts +0 -45
- package/dist/esm/Tooltip/TooltipTrigger/index.js +0 -76
- package/dist/esm/Tooltip/TooltipTrigger/index.js.map +0 -1
- package/dist/esm/Tooltip/index.d.ts +0 -8
- package/dist/esm/Tooltip/index.js +0 -5
- package/dist/esm/Tooltip/index.js.map +0 -1
- package/dist/esm/Tooltip/utils.d.ts +0 -166
- package/dist/esm/Tooltip/utils.js +0 -135
- package/dist/esm/Tooltip/utils.js.map +0 -1
- package/dist/esm/VerticalSplit/index.d.ts +0 -238
- package/dist/esm/VerticalSplit/index.js +0 -307
- package/dist/esm/VerticalSplit/index.js.map +0 -1
- package/dist/esm/VerticalSplit/styles.module.css.json +0 -1
- package/dist/esm/generateStyleFromCtx/index.d.ts +0 -3
- package/dist/esm/generateStyleFromCtx/index.js +0 -165
- package/dist/esm/generateStyleFromCtx/index.js.map +0 -1
- package/dist/esm/icons.d.ts +0 -15
- package/dist/esm/icons.js +0 -42
- package/dist/esm/icons.js.map +0 -1
- package/dist/esm/index.d.ts +0 -30
- package/dist/esm/index.js +0 -31
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/mergeRefs/index.d.ts +0 -2
- package/dist/esm/mergeRefs/index.js +0 -16
- package/dist/esm/mergeRefs/index.js.map +0 -1
- package/dist/esm/useClickOutside/index.d.ts +0 -2
- package/dist/esm/useClickOutside/index.js +0 -21
- package/dist/esm/useClickOutside/index.js.map +0 -1
- package/dist/esm/useMediaQuery/index.d.ts +0 -8
- package/dist/esm/useMediaQuery/index.js +0 -149
- package/dist/esm/useMediaQuery/index.js.map +0 -1
- package/dist/types/Button/index.d.ts +0 -91
- package/dist/types/ButtonGroup/Button/index.d.ts +0 -10
- package/dist/types/ButtonGroup/Group/index.d.ts +0 -21
- package/dist/types/ButtonGroup/index.d.ts +0 -4
- package/dist/types/Canvas/index.d.ts +0 -408
- package/dist/types/ContextInspector/index.d.ts +0 -6
- package/dist/types/Dropdown/Dropdown.d.ts +0 -113
- package/dist/types/Dropdown/DropdownContext.d.ts +0 -6
- package/dist/types/Dropdown/Group.d.ts +0 -7
- package/dist/types/Dropdown/Menu.d.ts +0 -6
- package/dist/types/Dropdown/MenuContext.d.ts +0 -8
- package/dist/types/Dropdown/Option.d.ts +0 -13
- package/dist/types/Dropdown/OptionAction.d.ts +0 -12
- package/dist/types/Dropdown/Portal.d.ts +0 -5
- package/dist/types/Dropdown/Separator.d.ts +0 -2
- package/dist/types/Dropdown/Text.d.ts +0 -5
- package/dist/types/Dropdown/index.d.ts +0 -9
- package/dist/types/FieldError/index.d.ts +0 -6
- package/dist/types/FieldGroup/index.d.ts +0 -7
- package/dist/types/FieldHint/index.d.ts +0 -6
- package/dist/types/FieldWrapper/index.d.ts +0 -13
- package/dist/types/Form/index.d.ts +0 -109
- package/dist/types/FormLabel/index.d.ts +0 -10
- package/dist/types/HotKey/index.d.ts +0 -70
- package/dist/types/Section/index.d.ts +0 -63
- package/dist/types/SelectField/index.d.ts +0 -60
- package/dist/types/SelectInput/index.d.ts +0 -17
- package/dist/types/SidebarPanel/index.d.ts +0 -43
- package/dist/types/Spinner/index.d.ts +0 -27
- package/dist/types/SplitView/SplitViewPane/index.d.ts +0 -7
- package/dist/types/SplitView/SplitViewSash/index.d.ts +0 -17
- package/dist/types/SplitView/index.d.ts +0 -16
- package/dist/types/SplitView/types.d.ts +0 -8
- package/dist/types/SwitchField/index.d.ts +0 -16
- package/dist/types/SwitchInput/index.d.ts +0 -10
- package/dist/types/TextField/index.d.ts +0 -17
- package/dist/types/TextInput/index.d.ts +0 -15
- package/dist/types/TextareaField/index.d.ts +0 -17
- package/dist/types/TextareaInput/index.d.ts +0 -14
- package/dist/types/Toolbar/Button/index.d.ts +0 -8
- package/dist/types/Toolbar/Stack/index.d.ts +0 -8
- package/dist/types/Toolbar/Title/index.d.ts +0 -7
- package/dist/types/Toolbar/Toolbar/index.d.ts +0 -91
- package/dist/types/Toolbar/index.d.ts +0 -8
- package/dist/types/Tooltip/Tooltip/index.d.ts +0 -74
- package/dist/types/Tooltip/TooltipContent/index.d.ts +0 -68
- package/dist/types/Tooltip/TooltipDelayGroup/index.d.ts +0 -118
- package/dist/types/Tooltip/TooltipTrigger/index.d.ts +0 -45
- package/dist/types/Tooltip/index.d.ts +0 -8
- package/dist/types/Tooltip/utils.d.ts +0 -166
- package/dist/types/VerticalSplit/index.d.ts +0 -238
- package/dist/types/generateStyleFromCtx/index.d.ts +0 -3
- package/dist/types/icons.d.ts +0 -15
- package/dist/types/index.d.ts +0 -30
- package/dist/types/mergeRefs/index.d.ts +0 -2
- package/dist/types/useClickOutside/index.d.ts +0 -2
- package/dist/types/useMediaQuery/index.d.ts +0 -8
- package/src/Button/index.tsx +0 -170
- package/src/Button/styles.module.css +0 -149
- package/src/Button/styles.module.css.json +0 -1
- package/src/ButtonGroup/Button/index.tsx +0 -44
- package/src/ButtonGroup/Button/styles.module.css +0 -70
- package/src/ButtonGroup/Button/styles.module.css.json +0 -1
- package/src/ButtonGroup/Group/index.tsx +0 -31
- package/src/ButtonGroup/Group/styles.module.css +0 -6
- package/src/ButtonGroup/Group/styles.module.css.json +0 -1
- package/src/ButtonGroup/index.ts +0 -4
- package/src/Canvas/index.tsx +0 -464
- package/src/Canvas/styles.module.css +0 -136
- package/src/Canvas/styles.module.css.json +0 -1
- package/src/ContextInspector/index.tsx +0 -211
- package/src/ContextInspector/styles.module.css +0 -90
- package/src/ContextInspector/styles.module.css.json +0 -1
- package/src/Dropdown/Dropdown.tsx +0 -152
- package/src/Dropdown/DropdownContext.tsx +0 -10
- package/src/Dropdown/Group.tsx +0 -17
- package/src/Dropdown/Menu.tsx +0 -341
- package/src/Dropdown/MenuContext.tsx +0 -18
- package/src/Dropdown/Option.tsx +0 -147
- package/src/Dropdown/OptionAction.tsx +0 -43
- package/src/Dropdown/Portal.tsx +0 -47
- package/src/Dropdown/Separator.tsx +0 -13
- package/src/Dropdown/Text.tsx +0 -8
- package/src/Dropdown/index.tsx +0 -26
- package/src/Dropdown/styles.module.css +0 -258
- package/src/Dropdown/styles.module.css.json +0 -1
- package/src/FieldError/index.tsx +0 -10
- package/src/FieldError/styles.module.css +0 -6
- package/src/FieldError/styles.module.css.json +0 -1
- package/src/FieldGroup/index.tsx +0 -27
- package/src/FieldGroup/styles.module.css +0 -12
- package/src/FieldGroup/styles.module.css.json +0 -1
- package/src/FieldHint/index.tsx +0 -10
- package/src/FieldHint/styles.module.css +0 -14
- package/src/FieldHint/styles.module.css.json +0 -1
- package/src/FieldWrapper/index.tsx +0 -38
- package/src/Form/index.tsx +0 -154
- package/src/Form/styles.module.css +0 -19
- package/src/Form/styles.module.css.json +0 -1
- package/src/FormLabel/index.tsx +0 -36
- package/src/FormLabel/styles.module.css +0 -31
- package/src/FormLabel/styles.module.css.json +0 -1
- package/src/HotKey/index.tsx +0 -95
- package/src/HotKey/styles.module.css +0 -22
- package/src/HotKey/styles.module.css.json +0 -1
- package/src/Section/index.tsx +0 -104
- package/src/Section/styles.module.css +0 -100
- package/src/Section/styles.module.css.json +0 -1
- package/src/SelectField/index.tsx +0 -242
- package/src/SelectInput/index.tsx +0 -263
- package/src/SidebarPanel/index.tsx +0 -85
- package/src/SidebarPanel/styles.module.css +0 -49
- package/src/SidebarPanel/styles.module.css.json +0 -1
- package/src/Spinner/index.tsx +0 -68
- package/src/Spinner/styles.module.css +0 -31
- package/src/Spinner/styles.module.css.json +0 -1
- package/src/SplitView/SplitViewPane/index.tsx +0 -19
- package/src/SplitView/SplitViewPane/styles.module.css +0 -6
- package/src/SplitView/SplitViewPane/styles.module.css.json +0 -1
- package/src/SplitView/SplitViewSash/index.tsx +0 -99
- package/src/SplitView/SplitViewSash/styles.module.css +0 -68
- package/src/SplitView/SplitViewSash/styles.module.css.json +0 -1
- package/src/SplitView/index.tsx +0 -256
- package/src/SplitView/styles.module.css +0 -22
- package/src/SplitView/styles.module.css.json +0 -1
- package/src/SplitView/types.ts +0 -9
- package/src/SwitchField/index.tsx +0 -67
- package/src/SwitchField/styles.module.css +0 -25
- package/src/SwitchField/styles.module.css.json +0 -1
- package/src/SwitchInput/index.tsx +0 -74
- package/src/SwitchInput/styles.module.css +0 -103
- package/src/SwitchInput/styles.module.css.json +0 -1
- package/src/TextField/index.tsx +0 -56
- package/src/TextField/styles.module.css.json +0 -1
- package/src/TextInput/index.tsx +0 -82
- package/src/TextInput/styles.module.css +0 -54
- package/src/TextInput/styles.module.css.json +0 -1
- package/src/TextareaField/index.tsx +0 -56
- package/src/TextareaField/styles.module.css +0 -0
- package/src/TextareaField/styles.module.css.json +0 -1
- package/src/TextareaInput/index.tsx +0 -71
- package/src/TextareaInput/styles.module.css +0 -54
- package/src/TextareaInput/styles.module.css.json +0 -1
- package/src/Toolbar/Button/index.tsx +0 -36
- package/src/Toolbar/Button/styles.module.css +0 -43
- package/src/Toolbar/Button/styles.module.css.json +0 -1
- package/src/Toolbar/Stack/index.tsx +0 -33
- package/src/Toolbar/Stack/styles.module.css +0 -18
- package/src/Toolbar/Stack/styles.module.css.json +0 -1
- package/src/Toolbar/Title/index.tsx +0 -17
- package/src/Toolbar/Title/styles.module.css +0 -12
- package/src/Toolbar/Title/styles.module.css.json +0 -1
- package/src/Toolbar/Toolbar/index.tsx +0 -112
- package/src/Toolbar/Toolbar/styles.module.css +0 -15
- package/src/Toolbar/Toolbar/styles.module.css.json +0 -1
- package/src/Toolbar/index.ts +0 -8
- package/src/Tooltip/Tooltip/index.tsx +0 -85
- package/src/Tooltip/TooltipContent/index.tsx +0 -145
- package/src/Tooltip/TooltipContent/styles.module.css +0 -10
- package/src/Tooltip/TooltipContent/styles.module.css.json +0 -1
- package/src/Tooltip/TooltipDelayGroup/index.tsx +0 -128
- package/src/Tooltip/TooltipTrigger/index.tsx +0 -71
- package/src/Tooltip/index.ts +0 -8
- package/src/Tooltip/utils.ts +0 -176
- package/src/VerticalSplit/index.tsx +0 -401
- package/src/VerticalSplit/styles.module.css +0 -99
- package/src/VerticalSplit/styles.module.css.json +0 -1
- package/src/base.css +0 -89
- package/src/generateStyleFromCtx/index.ts +0 -182
- package/src/global.css +0 -31
- package/src/icons.tsx +0 -176
- package/src/index.ts +0 -30
- package/src/mergeRefs/index.ts +0 -9
- package/src/useClickOutside/index.ts +0 -30
- package/src/useMediaQuery/index.ts +0 -187
- package/styles.css +0 -29
- package/types.json +0 -25988
- /package/{src/TextField/styles.module.css → dist/Dropdown/triggers/types.js} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
//#region ../ui/src/hooks/useMediaQuery.ts
|
|
3
|
+
var list = {};
|
|
4
|
+
function useMediaQuery(media, fallback = null) {
|
|
5
|
+
const mediaQueryList = React$1.useMemo(() => {
|
|
6
|
+
if (list[media]) return list[media].mql;
|
|
7
|
+
if (typeof window !== "undefined") return window.matchMedia(media);
|
|
8
|
+
return fallback || {
|
|
9
|
+
matches: true,
|
|
10
|
+
media
|
|
11
|
+
};
|
|
12
|
+
}, [media, fallback]);
|
|
13
|
+
const [, update] = React$1.useState({});
|
|
14
|
+
React$1.useLayoutEffect(() => {
|
|
15
|
+
if (list[media]) list[media].notifiers.push(update);
|
|
16
|
+
else {
|
|
17
|
+
list[media] = {
|
|
18
|
+
mql: mediaQueryList,
|
|
19
|
+
notifiers: [update],
|
|
20
|
+
listener: (mql) => {
|
|
21
|
+
const match = list[mql.media];
|
|
22
|
+
if (match) match.notifiers.forEach((updateFn) => {
|
|
23
|
+
updateFn({});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const entry = list[media];
|
|
28
|
+
if ("addListener" in entry.mql) entry.mql.addListener(entry.listener);
|
|
29
|
+
}
|
|
30
|
+
return () => {
|
|
31
|
+
const entry = list[media];
|
|
32
|
+
if (!entry) return;
|
|
33
|
+
const notifierIndex = entry.notifiers.indexOf(update);
|
|
34
|
+
if (notifierIndex > -1) entry.notifiers.splice(notifierIndex, 1);
|
|
35
|
+
if (entry.notifiers.length === 0) {
|
|
36
|
+
if ("removeListener" in entry.mql) entry.mql.removeListener(entry.listener);
|
|
37
|
+
list[media] = void 0;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}, [media, mediaQueryList]);
|
|
41
|
+
return mediaQueryList;
|
|
42
|
+
}
|
|
43
|
+
var PHONE_MEDIA_QUERY = "(max-width: 479.98px)";
|
|
44
|
+
function useIsPhone() {
|
|
45
|
+
return useMediaQuery(PHONE_MEDIA_QUERY).matches;
|
|
46
|
+
}
|
|
47
|
+
var SMALL_VIEWPORT_MEDIA_QUERY = "(max-width: 1024px)";
|
|
48
|
+
function useIsSmallViewport() {
|
|
49
|
+
return useMediaQuery(SMALL_VIEWPORT_MEDIA_QUERY).matches;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { PHONE_MEDIA_QUERY, SMALL_VIEWPORT_MEDIA_QUERY, useIsPhone, useIsSmallViewport, useMediaQuery };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Gives the keydown handler of a group with a roving tabIndex (a tablist, a
|
|
4
|
+
* radiogroup). Put it on the group element. The arrow keys, Home and End
|
|
5
|
+
* move the focus to an item that matches `itemSelector` and click it. Only
|
|
6
|
+
* the left and right arrows move the focus, unless `vertical` is true: then
|
|
7
|
+
* the up and down arrows move it too.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useRovingKeyDown(itemSelector: string, vertical?: boolean): (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
//#region ../ui/src/hooks/useRovingKeyDown.ts
|
|
3
|
+
/**
|
|
4
|
+
* Gives the keydown handler of a group with a roving tabIndex (a tablist, a
|
|
5
|
+
* radiogroup). Put it on the group element. The arrow keys, Home and End
|
|
6
|
+
* move the focus to an item that matches `itemSelector` and click it. Only
|
|
7
|
+
* the left and right arrows move the focus, unless `vertical` is true: then
|
|
8
|
+
* the up and down arrows move it too.
|
|
9
|
+
*/
|
|
10
|
+
function useRovingKeyDown(itemSelector, vertical = false) {
|
|
11
|
+
return useCallback((e) => {
|
|
12
|
+
const target = e.target;
|
|
13
|
+
if (!target.matches(itemSelector)) return;
|
|
14
|
+
const items = Array.from(e.currentTarget.querySelectorAll(itemSelector));
|
|
15
|
+
const currentIndex = items.indexOf(target);
|
|
16
|
+
const next = (currentIndex + 1) % items.length;
|
|
17
|
+
const previous = (currentIndex - 1 + items.length) % items.length;
|
|
18
|
+
let nextIndex;
|
|
19
|
+
switch (e.key) {
|
|
20
|
+
case "ArrowRight":
|
|
21
|
+
nextIndex = next;
|
|
22
|
+
break;
|
|
23
|
+
case "ArrowLeft":
|
|
24
|
+
nextIndex = previous;
|
|
25
|
+
break;
|
|
26
|
+
case "ArrowDown":
|
|
27
|
+
if (!vertical) return;
|
|
28
|
+
nextIndex = next;
|
|
29
|
+
break;
|
|
30
|
+
case "ArrowUp":
|
|
31
|
+
if (!vertical) return;
|
|
32
|
+
nextIndex = previous;
|
|
33
|
+
break;
|
|
34
|
+
case "Home":
|
|
35
|
+
nextIndex = 0;
|
|
36
|
+
break;
|
|
37
|
+
case "End":
|
|
38
|
+
nextIndex = items.length - 1;
|
|
39
|
+
break;
|
|
40
|
+
default: return;
|
|
41
|
+
}
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
const nextItem = items[nextIndex];
|
|
44
|
+
const nextItemId = nextItem.id;
|
|
45
|
+
nextItem.focus();
|
|
46
|
+
nextItem.click();
|
|
47
|
+
if (!nextItemId) return;
|
|
48
|
+
requestAnimationFrame(() => {
|
|
49
|
+
const item = document.getElementById(nextItemId);
|
|
50
|
+
if (item && item !== document.activeElement) item.focus();
|
|
51
|
+
});
|
|
52
|
+
}, [itemSelector, vertical]);
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { useRovingKeyDown };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useRef } from "react";
|
|
2
|
+
import { shallowEqualArrays, shallowEqualObjects } from "shallow-equal";
|
|
3
|
+
//#region ../ui/src/hooks/useShallowEqual.ts
|
|
4
|
+
var useShallowEqualObject = (value) => {
|
|
5
|
+
const ref = useRef(value);
|
|
6
|
+
if (!shallowEqualObjects(ref.current, value)) ref.current = value;
|
|
7
|
+
return ref.current;
|
|
8
|
+
};
|
|
9
|
+
var useShallowEqualArray = (value) => {
|
|
10
|
+
const ref = useRef(value);
|
|
11
|
+
if (!shallowEqualArrays(ref.current, value)) ref.current = value;
|
|
12
|
+
return ref.current;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useShallowEqualArray, useShallowEqualObject };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the `onClick` handler of a row that opens (or toggles) on a click.
|
|
4
|
+
* The handler calls `handler` only for a "plain" click on the row. It ignores
|
|
5
|
+
* these clicks:
|
|
6
|
+
*
|
|
7
|
+
* - A click on a node that is not in the row. A portal (for example a menu)
|
|
8
|
+
* sends its React events to the row, but its DOM nodes are not in the row.
|
|
9
|
+
* - A click on an interactive child (a button, a link, a field). The child
|
|
10
|
+
* does its own action.
|
|
11
|
+
* - A click that ends a text selection (for example, to copy a value).
|
|
12
|
+
*
|
|
13
|
+
* When `enabled` is false, the hook returns `undefined`, thus the row has no
|
|
14
|
+
* click handler. The handler is stable: it always calls the latest `handler`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useSmartRowClick<T extends HTMLElement = HTMLElement>(handler: () => void, enabled?: boolean): React.MouseEventHandler<T> | undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useCallback, useLayoutEffect, useRef } from "react";
|
|
2
|
+
//#region ../ui/src/hooks/useSmartRowClick.ts
|
|
3
|
+
var INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role=\"button\"]";
|
|
4
|
+
/**
|
|
5
|
+
* Returns the `onClick` handler of a row that opens (or toggles) on a click.
|
|
6
|
+
* The handler calls `handler` only for a "plain" click on the row. It ignores
|
|
7
|
+
* these clicks:
|
|
8
|
+
*
|
|
9
|
+
* - A click on a node that is not in the row. A portal (for example a menu)
|
|
10
|
+
* sends its React events to the row, but its DOM nodes are not in the row.
|
|
11
|
+
* - A click on an interactive child (a button, a link, a field). The child
|
|
12
|
+
* does its own action.
|
|
13
|
+
* - A click that ends a text selection (for example, to copy a value).
|
|
14
|
+
*
|
|
15
|
+
* When `enabled` is false, the hook returns `undefined`, thus the row has no
|
|
16
|
+
* click handler. The handler is stable: it always calls the latest `handler`.
|
|
17
|
+
*/
|
|
18
|
+
function useSmartRowClick(handler, enabled = true) {
|
|
19
|
+
const handlerRef = useRef(handler);
|
|
20
|
+
useLayoutEffect(() => {
|
|
21
|
+
handlerRef.current = handler;
|
|
22
|
+
});
|
|
23
|
+
const onClick = useCallback((event) => {
|
|
24
|
+
const target = event.target;
|
|
25
|
+
if (!event.currentTarget.contains(target) || target.closest(INTERACTIVE_SELECTOR) || window.getSelection()?.toString()) return;
|
|
26
|
+
handlerRef.current();
|
|
27
|
+
}, []);
|
|
28
|
+
return enabled ? onClick : void 0;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { useSmartRowClick };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { isHtmlMessage, isIntlMessage } from "./Message.js";
|
|
2
|
+
import { useTexts } from "./TextsProvider.js";
|
|
3
|
+
import { escapeHtml } from "./utils/escapeHtml.js";
|
|
4
|
+
import React, { isValidElement, useCallback, useMemo } from "react";
|
|
5
|
+
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
6
|
+
import filterXSS from "xss";
|
|
7
|
+
//#region ../ui/src/i18n.tsx
|
|
8
|
+
/**
|
|
9
|
+
* The texts of the nearest `TextsProvider`, with `tm` and `tc` for a
|
|
10
|
+
* component that gets a `TextMessage` or a `Message` prop. The apps and the
|
|
11
|
+
* package import this one, never the one of react-i18next.
|
|
12
|
+
*/
|
|
13
|
+
function useTranslation() {
|
|
14
|
+
const { t } = useTexts();
|
|
15
|
+
const tm = useCallback((message) => typeof message === "string" ? message : t(message.id, message.values), [t]);
|
|
16
|
+
return useMemo(() => ({
|
|
17
|
+
t,
|
|
18
|
+
tm,
|
|
19
|
+
tc
|
|
20
|
+
}), [t, tm]);
|
|
21
|
+
}
|
|
22
|
+
function tc(message) {
|
|
23
|
+
if (isIntlMessage(message)) return /* @__PURE__ */ jsx(FormattedHTMLMessage, {
|
|
24
|
+
id: message.id,
|
|
25
|
+
values: message.values
|
|
26
|
+
});
|
|
27
|
+
if (isHtmlMessage(message)) return /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: filterXSS(message.html) } });
|
|
28
|
+
return message;
|
|
29
|
+
}
|
|
30
|
+
var PLACEHOLDER_PREFIX = "\0__REACT_";
|
|
31
|
+
var PLACEHOLDER_SUFFIX = "__\0";
|
|
32
|
+
var PLACEHOLDER_REGEX = new RegExp(`${PLACEHOLDER_PREFIX}(\\w+)${PLACEHOLDER_SUFFIX}`, "g");
|
|
33
|
+
var textOptions = {
|
|
34
|
+
processValue: (value) => value,
|
|
35
|
+
processResult: (result) => result,
|
|
36
|
+
renderStringPart: (part) => part
|
|
37
|
+
};
|
|
38
|
+
function FormattedMessage({ id, values, children, defaultValue }) {
|
|
39
|
+
const { t } = useTranslation();
|
|
40
|
+
if (children) return /* @__PURE__ */ jsx(Fragment$1, { children: children(t(id, {
|
|
41
|
+
...values,
|
|
42
|
+
defaultValue
|
|
43
|
+
})) });
|
|
44
|
+
return /* @__PURE__ */ jsx("span", { children: interpolateReactElements(values, (processedValues) => t(id, {
|
|
45
|
+
...processedValues,
|
|
46
|
+
defaultValue
|
|
47
|
+
}), textOptions) });
|
|
48
|
+
}
|
|
49
|
+
var htmlOptions = {
|
|
50
|
+
processValue: (value) => escapeHtml(String(value)),
|
|
51
|
+
processResult: (result) => result.replace("target='_blank'", "target=\"_blank\""),
|
|
52
|
+
renderStringPart: (part, index) => /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: part } }, `html-${index}`)
|
|
53
|
+
};
|
|
54
|
+
function FormattedHTMLMessage({ id, values, children }) {
|
|
55
|
+
const { t } = useTranslation();
|
|
56
|
+
if (children) {
|
|
57
|
+
const result = values ? t(id, Object.fromEntries(Object.entries(values).map(([key, value]) => [key, escapeHtml(String(value))]))) : t(id);
|
|
58
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: children(result) });
|
|
59
|
+
}
|
|
60
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: interpolateReactElements(values, (processedValues) => t(id, processedValues), htmlOptions) });
|
|
61
|
+
}
|
|
62
|
+
function interpolateReactElements(values, translate, options) {
|
|
63
|
+
const reactElements = {};
|
|
64
|
+
const processedValues = {};
|
|
65
|
+
for (const [key, value] of Object.entries(values ?? {})) if (isValidElement(value)) {
|
|
66
|
+
reactElements[key] = value;
|
|
67
|
+
processedValues[key] = `${PLACEHOLDER_PREFIX}${key}${PLACEHOLDER_SUFFIX}`;
|
|
68
|
+
} else processedValues[key] = options.processValue(value);
|
|
69
|
+
const result = options.processResult(translate(values ? processedValues : void 0));
|
|
70
|
+
if (Object.keys(reactElements).length === 0) return options.renderStringPart(result, 0);
|
|
71
|
+
const parts = [];
|
|
72
|
+
let lastIndex = 0;
|
|
73
|
+
let partIndex = 0;
|
|
74
|
+
for (const match of result.matchAll(PLACEHOLDER_REGEX)) {
|
|
75
|
+
if (match.index > lastIndex) parts.push(options.renderStringPart(result.slice(lastIndex, match.index), partIndex++));
|
|
76
|
+
const key = match[1];
|
|
77
|
+
if (reactElements[key]) parts.push(/* @__PURE__ */ jsx(React.Fragment, { children: reactElements[key] }, key));
|
|
78
|
+
lastIndex = match.index + match[0].length;
|
|
79
|
+
}
|
|
80
|
+
if (lastIndex < result.length) parts.push(options.renderStringPart(result.slice(lastIndex), partIndex));
|
|
81
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: parts });
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { FormattedHTMLMessage, FormattedMessage, useTranslation };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The state of a section with a list:
|
|
4
|
+
* - "loading": the first load did not end. Zero elements does not mean that
|
|
5
|
+
* the section is empty.
|
|
6
|
+
* - "empty": the section has no elements.
|
|
7
|
+
* - "ready": the section has elements. A filter that keeps no element is
|
|
8
|
+
* also "ready", because the section is not empty.
|
|
9
|
+
*/
|
|
10
|
+
export type ListOrOverviewState = 'loading' | 'empty' | 'ready';
|
|
11
|
+
/**
|
|
12
|
+
* The state from the first load and the number of the elements. Give
|
|
13
|
+
* "loaded" true only after the first load ends.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getListOrOverviewState(loaded: boolean, empty: boolean): ListOrOverviewState;
|
|
16
|
+
/**
|
|
17
|
+
* The state and the overview. Only a list that can be empty has the "empty"
|
|
18
|
+
* state, and then it must give the overview.
|
|
19
|
+
*/
|
|
20
|
+
export type ListOrOverviewContent =
|
|
21
|
+
/** A list that can be empty */
|
|
22
|
+
{
|
|
23
|
+
/** The state of the section (see getListOrOverviewState) */
|
|
24
|
+
state: ListOrOverviewState;
|
|
25
|
+
/**
|
|
26
|
+
* All the area of the section when the section is empty: a BlankSlate
|
|
27
|
+
* with titleLevel={1}, a description, the docs and the action that
|
|
28
|
+
* adds the first element. It has no title bar.
|
|
29
|
+
*/
|
|
30
|
+
overview: ReactElement;
|
|
31
|
+
}
|
|
32
|
+
/** A list that cannot be empty, for example the collaborators */
|
|
33
|
+
| {
|
|
34
|
+
state: Exclude<ListOrOverviewState, 'empty'>;
|
|
35
|
+
overview?: never;
|
|
36
|
+
};
|
|
37
|
+
export type ListOrOverviewProps = ListOrOverviewContent & {
|
|
38
|
+
/** The list and the detail (a split pane), when the section has elements */
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* The content of a section with a list. The list and its detail show only
|
|
43
|
+
* when the section has elements: an empty section shows only the overview,
|
|
44
|
+
* because a list with no elements and a "No … selected" detail have no use.
|
|
45
|
+
* Before the first load, it shows a spinner.
|
|
46
|
+
*/
|
|
47
|
+
declare function ListOrOverview({ state, overview, children }: ListOrOverviewProps): React.JSX.Element;
|
|
48
|
+
declare const _default: React.MemoExoticComponent<typeof ListOrOverview>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Spinner_default from "../feedback/Spinner.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region ../ui/src/layout/ListOrOverview.tsx
|
|
5
|
+
/**
|
|
6
|
+
* The state from the first load and the number of the elements. Give
|
|
7
|
+
* "loaded" true only after the first load ends.
|
|
8
|
+
*/
|
|
9
|
+
function getListOrOverviewState(loaded, empty) {
|
|
10
|
+
if (!empty) return "ready";
|
|
11
|
+
return loaded ? "empty" : "loading";
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The content of a section with a list. The list and its detail show only
|
|
15
|
+
* when the section has elements: an empty section shows only the overview,
|
|
16
|
+
* because a list with no elements and a "No … selected" detail have no use.
|
|
17
|
+
* Before the first load, it shows a spinner.
|
|
18
|
+
*/
|
|
19
|
+
function ListOrOverview({ state, overview, children }) {
|
|
20
|
+
if (state === "loading") return /* @__PURE__ */ jsx(Spinner_default, {});
|
|
21
|
+
if (state === "empty") return /* @__PURE__ */ jsx(Fragment$1, { children: overview });
|
|
22
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
23
|
+
}
|
|
24
|
+
var ListOrOverview_default = React.memo(ListOrOverview);
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ListOrOverview_default as default, getListOrOverviewState };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PageProps = {
|
|
3
|
+
/** A Page.Content */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The largest width of the page: 650px without it, 800px for `large`,
|
|
8
|
+
* 1200px for `wide`
|
|
9
|
+
*/
|
|
10
|
+
variant?: 'large' | 'wide';
|
|
11
|
+
/**
|
|
12
|
+
* The position of the page in its area. `start` puts the page at the
|
|
13
|
+
* left, next to the sidebar.
|
|
14
|
+
*/
|
|
15
|
+
align?: 'center' | 'start';
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The column of a page of content: settings, a form, a dashboard. It gives
|
|
19
|
+
* the largest width and the space around the content.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Page({ children, className, variant, align, }: PageProps): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region ../ui/src/layout/Page/Page.tsx
|
|
5
|
+
/**
|
|
6
|
+
* The column of a page of content: settings, a form, a dashboard. It gives
|
|
7
|
+
* the largest width and the space around the content.
|
|
8
|
+
*/
|
|
9
|
+
function Page({ children, className, variant, align = "center" }) {
|
|
10
|
+
return /* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: classNames("Page", {
|
|
12
|
+
"Page--large": variant === "large",
|
|
13
|
+
"Page--wide": variant === "wide",
|
|
14
|
+
"Page--start": align === "start"
|
|
15
|
+
}, className),
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Page };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PageContentProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
/** The content of a Page: its sections and groups */
|
|
7
|
+
export declare function PageContent({ children, className }: PageContentProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region ../ui/src/layout/Page/PageContent.tsx
|
|
5
|
+
/** The content of a Page: its sections and groups */
|
|
6
|
+
function PageContent({ children, className }) {
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
className: classNames("Page__content", className),
|
|
9
|
+
children
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { PageContent };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Message } from '../../Message.js';
|
|
3
|
+
import { type HeadingLevel } from '../../semantic/Heading.js';
|
|
4
|
+
import { type PageCollapse } from './PageSection.js';
|
|
5
|
+
export type PageGroupProps = {
|
|
6
|
+
/** The title of the group, at the top left of the card */
|
|
7
|
+
title: Message;
|
|
8
|
+
/**
|
|
9
|
+
* The level of the heading of the title. Give 3 for a group under a level
|
|
10
|
+
* 2 heading.
|
|
11
|
+
* @default 2
|
|
12
|
+
*/
|
|
13
|
+
titleLevel?: HeadingLevel;
|
|
14
|
+
/**
|
|
15
|
+
* Buttons at the top right of the card. Use ghost or soft buttons. They get
|
|
16
|
+
* the micro size: the header is a thin strip.
|
|
17
|
+
*/
|
|
18
|
+
actions?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* A strip at the bottom of the card, for what belongs to the whole group
|
|
21
|
+
* (a note, a link, details that open). Without it, the card has no strip.
|
|
22
|
+
*/
|
|
23
|
+
footer?: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* A colored border and a tint in the corner. `danger` (red) is for the
|
|
26
|
+
* group of the destructive actions of a page (the "Danger zone") and for
|
|
27
|
+
* a problem with the billing that the user must fix (for example "Action
|
|
28
|
+
* required" when some invoices are due). `warning` (amber) is for other
|
|
29
|
+
* problems that need an action of the user. Put the actions in the rows
|
|
30
|
+
* of a SettingsList, not in a Callout.
|
|
31
|
+
*/
|
|
32
|
+
tone?: 'danger' | 'warning';
|
|
33
|
+
/**
|
|
34
|
+
* A short status at the right of the title. Put a Pill here, in the color
|
|
35
|
+
* of the tone (for example `<Pill tone="danger">Unpaid</Pill>`). Use it
|
|
36
|
+
* for a problem that the user must fix, not for the "Danger zone". A group
|
|
37
|
+
* without a tone can show its state (for example a `success` pill for a
|
|
38
|
+
* step that is done in a wizard).
|
|
39
|
+
*/
|
|
40
|
+
status?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* The body has no padding. Use it for a Table or a CardList: its rows go
|
|
43
|
+
* from edge to edge of the card. Put the other parts of the body in a
|
|
44
|
+
* Page.GroupInset.
|
|
45
|
+
*/
|
|
46
|
+
flush?: boolean;
|
|
47
|
+
children: React.ReactNode;
|
|
48
|
+
className?: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Only for a group that opens and closes. When the group is closed, it
|
|
52
|
+
* shows only its header: the body and the footer do not show. Without
|
|
53
|
+
* `onToggle`, the group cannot close (for example, it shows an error) and
|
|
54
|
+
* the chevron is disabled.
|
|
55
|
+
*/
|
|
56
|
+
collapse?: PageCollapse;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* A group of related content in a card, with its own title. Use it in a
|
|
60
|
+
* Page.Content in place of a Page.Section when the content of the group has
|
|
61
|
+
* more than one part (for example a summary and a chart), so the parts read
|
|
62
|
+
* as one thing. The parts inside the card have no card of their own.
|
|
63
|
+
*/
|
|
64
|
+
export declare function PageGroup({ title, titleLevel, actions, footer, tone, status, flush, children, className, id, collapse, }: PageGroupProps): React.JSX.Element;
|
|
65
|
+
export type PageGroupInsetProps = {
|
|
66
|
+
children: React.ReactNode;
|
|
67
|
+
className?: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* The padding of the body of a group, in a `flush` group. Use it for the
|
|
71
|
+
* parts that are not from edge to edge of the card (for example a
|
|
72
|
+
* SettingsList before a CardList).
|
|
73
|
+
*/
|
|
74
|
+
export declare function PageGroupInset({ children, className }: PageGroupInsetProps): React.JSX.Element;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useTranslation } from "../../i18n.js";
|
|
2
|
+
import { ButtonSizeContext } from "../../actions/Button.js";
|
|
3
|
+
import Heading from "../../semantic/Heading.js";
|
|
4
|
+
import { PageCollapseToggle } from "./PageSection.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region ../ui/src/layout/Page/PageGroup.tsx
|
|
9
|
+
/**
|
|
10
|
+
* A group of related content in a card, with its own title. Use it in a
|
|
11
|
+
* Page.Content in place of a Page.Section when the content of the group has
|
|
12
|
+
* more than one part (for example a summary and a chart), so the parts read
|
|
13
|
+
* as one thing. The parts inside the card have no card of their own.
|
|
14
|
+
*/
|
|
15
|
+
function PageGroup({ title, titleLevel = 2, actions, footer, tone, status, flush, children, className, id, collapse }) {
|
|
16
|
+
const { tc } = useTranslation();
|
|
17
|
+
const open = collapse ? collapse.open : true;
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: classNames("Page__group", { [`Page__group--${tone}`]: tone }, className),
|
|
20
|
+
id,
|
|
21
|
+
children: [/* @__PURE__ */ jsxs("header", {
|
|
22
|
+
className: "Page__group__header",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsx(Heading, {
|
|
25
|
+
level: titleLevel,
|
|
26
|
+
className: "Page__group__title",
|
|
27
|
+
children: collapse ? /* @__PURE__ */ jsx(PageCollapseToggle, {
|
|
28
|
+
collapse,
|
|
29
|
+
children: tc(title)
|
|
30
|
+
}) : tc(title)
|
|
31
|
+
}),
|
|
32
|
+
status,
|
|
33
|
+
actions && /* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: "Page__group__actions",
|
|
35
|
+
children: /* @__PURE__ */ jsx(ButtonSizeContext.Provider, {
|
|
36
|
+
value: "micro",
|
|
37
|
+
children: actions
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
}), open && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: classNames("Page__group__body", { "Page__group__body--flush": flush }),
|
|
43
|
+
children
|
|
44
|
+
}), footer && /* @__PURE__ */ jsx("footer", {
|
|
45
|
+
className: "Page__group__footer",
|
|
46
|
+
children: footer
|
|
47
|
+
})] })]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The padding of the body of a group, in a `flush` group. Use it for the
|
|
52
|
+
* parts that are not from edge to edge of the card (for example a
|
|
53
|
+
* SettingsList before a CardList).
|
|
54
|
+
*/
|
|
55
|
+
function PageGroupInset({ children, className }) {
|
|
56
|
+
return /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: classNames("Page__group__inset", className),
|
|
58
|
+
children
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { PageGroup, PageGroupInset };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PageSectionProps = {
|
|
3
|
+
/** A Page.SectionTitle, an optional Page.SectionDescription and the content */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
/** The ID of the element, for a link to the section */
|
|
7
|
+
id?: string;
|
|
8
|
+
};
|
|
9
|
+
/** A part of a page with one piece of content, under a title with hairlines */
|
|
10
|
+
export declare function PageSection({ children, className, id }: PageSectionProps): React.JSX.Element;
|
|
11
|
+
export type PageSectionTitleProps = {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
/** The `id` of the heading, for example the target of `aria-labelledby` */
|
|
15
|
+
id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Only for a section that opens and closes. The title becomes a button
|
|
18
|
+
* with a chevron, and the parent shows the content only when `open` is
|
|
19
|
+
* true. Without `onToggle`, the section cannot close (for example, it
|
|
20
|
+
* shows an error) and the chevron is disabled.
|
|
21
|
+
*/
|
|
22
|
+
collapse?: PageCollapse;
|
|
23
|
+
};
|
|
24
|
+
/** The state of a title that opens and closes its content */
|
|
25
|
+
export type PageCollapse = {
|
|
26
|
+
/** The content shows */
|
|
27
|
+
open: boolean;
|
|
28
|
+
/** Opens or closes the content. Without it, the chevron is disabled. */
|
|
29
|
+
onToggle?: () => void;
|
|
30
|
+
};
|
|
31
|
+
/** The title of a Page.Section, between two hairlines */
|
|
32
|
+
export declare function PageSectionTitle({ children, className, id, collapse, }: PageSectionTitleProps): React.JSX.Element;
|
|
33
|
+
type PageCollapseToggleProps = {
|
|
34
|
+
collapse: PageCollapse;
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
};
|
|
37
|
+
export declare function PageCollapseToggle({ collapse, children, }: PageCollapseToggleProps): React.JSX.Element;
|
|
38
|
+
export type PageSectionDescriptionProps = {
|
|
39
|
+
children: React.ReactNode;
|
|
40
|
+
className?: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* The description under a Page.SectionTitle: what the section is for. For a
|
|
44
|
+
* message about the current data, use Callout.
|
|
45
|
+
*/
|
|
46
|
+
export declare function PageSectionDescription({ children, className, }: PageSectionDescriptionProps): React.JSX.Element;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import RawButton from "../../semantic/RawButton.js";
|
|
2
|
+
import Heading from "../../semantic/Heading.js";
|
|
3
|
+
import { DisclosureChevron } from "../../navigation/Chevron.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import classNames from "classnames";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region ../ui/src/layout/Page/PageSection.tsx
|
|
8
|
+
/** A part of a page with one piece of content, under a title with hairlines */
|
|
9
|
+
function PageSection({ children, className, id }) {
|
|
10
|
+
return /* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: classNames("Page__content__section", className),
|
|
12
|
+
id,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/** The title of a Page.Section, between two hairlines */
|
|
17
|
+
function PageSectionTitle({ children, className, id, collapse }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Heading, {
|
|
19
|
+
level: 2,
|
|
20
|
+
id,
|
|
21
|
+
className: classNames("Page__content__section__title", className),
|
|
22
|
+
children: collapse ? /* @__PURE__ */ jsx(PageCollapseToggle, {
|
|
23
|
+
collapse,
|
|
24
|
+
children
|
|
25
|
+
}) : /* @__PURE__ */ jsx("span", { children })
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function PageCollapseToggle({ collapse, children }) {
|
|
29
|
+
return /* @__PURE__ */ jsxs(RawButton, {
|
|
30
|
+
className: "Page__collapseToggle",
|
|
31
|
+
onClick: collapse.onToggle,
|
|
32
|
+
expandable: { open: collapse.open },
|
|
33
|
+
disabled: !collapse.onToggle,
|
|
34
|
+
children: [/* @__PURE__ */ jsx(DisclosureChevron, { open: collapse.open }), children]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The description under a Page.SectionTitle: what the section is for. For a
|
|
39
|
+
* message about the current data, use Callout.
|
|
40
|
+
*/
|
|
41
|
+
function PageSectionDescription({ children, className }) {
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
className: classNames("Page__content__section__description", className),
|
|
44
|
+
children
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { PageCollapseToggle, PageSection, PageSectionDescription, PageSectionTitle };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Page as BasePage } from './Page.js';
|
|
2
|
+
import { PageContent } from './PageContent.js';
|
|
3
|
+
import { PageGroup, PageGroupInset } from './PageGroup.js';
|
|
4
|
+
import { PageSection, PageSectionDescription, PageSectionTitle } from './PageSection.js';
|
|
5
|
+
export type { PageProps } from './Page.js';
|
|
6
|
+
export type { PageContentProps } from './PageContent.js';
|
|
7
|
+
export type { PageGroupInsetProps, PageGroupProps } from './PageGroup.js';
|
|
8
|
+
export type { PageCollapse, PageSectionDescriptionProps, PageSectionProps, PageSectionTitleProps, } from './PageSection.js';
|
|
9
|
+
export declare const Page: typeof BasePage & {
|
|
10
|
+
Content: typeof PageContent;
|
|
11
|
+
Group: typeof PageGroup;
|
|
12
|
+
GroupInset: typeof PageGroupInset;
|
|
13
|
+
Section: typeof PageSection;
|
|
14
|
+
SectionTitle: typeof PageSectionTitle;
|
|
15
|
+
SectionDescription: typeof PageSectionDescription;
|
|
16
|
+
};
|