@parallelworks/ui 0.44.0 → 0.46.0
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 +348 -25
- package/dist/ai/agent/diff.d.ts +2 -1
- package/dist/ai/agent/diff.js +4 -12
- package/dist/ai/agent/diffHighlight.d.ts +1 -1
- package/dist/ai/agent/diffHighlight.js +4 -3
- package/dist/ai/agent/index.d.ts +2 -1
- package/dist/ai/agent/permissions.d.ts +1 -1
- package/dist/ai/agent/permissions.js +1 -1
- package/dist/ai/agent/toolStrings.d.ts +37 -0
- package/dist/ai/agent/toolStrings.js +35 -0
- package/dist/ai/agent/toolfmt.d.ts +8 -3
- package/dist/ai/agent/toolfmt.js +50 -65
- package/dist/ai/ai.css +22 -35
- package/dist/ai/components/AllocationSelector.js +2 -2
- package/dist/ai/components/AttachmentManager.js +28 -29
- package/dist/ai/components/AttachmentUpload.js +25 -30
- package/dist/ai/components/BlockedGroupBanner.js +2 -2
- package/dist/ai/components/BranchNavigator.js +3 -4
- package/dist/ai/components/ChatEmptyState.js +8 -7
- package/dist/ai/components/ChatInput.js +10 -12
- package/dist/ai/components/ChatLayout.js +3 -3
- package/dist/ai/components/ChatMessage.js +49 -61
- package/dist/ai/components/ChatMessageList.js +46 -42
- package/dist/ai/components/ChatSidebar.js +26 -34
- package/dist/ai/components/ChatStage.d.ts +1 -1
- package/dist/ai/components/ChatStage.js +2 -2
- package/dist/ai/components/ComposerChrome.js +3 -4
- package/dist/ai/components/DragOverlay.js +6 -4
- package/dist/ai/components/ModelSelector.js +14 -15
- package/dist/ai/components/PastedText.js +18 -14
- package/dist/ai/components/ProviderIssueBanner.js +3 -4
- package/dist/ai/components/Reasoning.d.ts +12 -6
- package/dist/ai/components/Reasoning.js +31 -18
- package/dist/ai/components/ShareDialog.js +25 -28
- package/dist/ai/components/SlashMenu.js +3 -3
- package/dist/ai/components/agent/ActivityLine.d.ts +0 -5
- package/dist/ai/components/agent/ActivityLine.js +17 -54
- package/dist/ai/components/agent/AgentMessageParts.js +139 -149
- package/dist/ai/components/conversationActions.js +16 -16
- package/dist/ai/core/ChatProvider.d.ts +2 -4
- package/dist/ai/core/ChatProvider.js +25 -38
- package/dist/ai/core/exportConversation.js +4 -4
- package/dist/ai/core/pasteLanguage.d.ts +1 -1
- package/dist/ai/core/pasteLanguage.js +1 -1
- package/dist/ai/core/sidebarState.d.ts +8 -6
- package/dist/ai/core/sidebarState.js +21 -28
- package/dist/ai/core/useKeyboardShortcuts.js +14 -5
- package/dist/ai/index.d.ts +4 -5
- package/dist/ai/index.js +7 -7
- package/dist/ai/strings.d.ts +14 -31
- package/dist/ai/strings.js +19 -39
- package/dist/ai/types.d.ts +0 -5
- package/dist/ai/ui/ConversationSidebar.d.ts +12 -9
- package/dist/ai/ui/ConversationSidebar.js +43 -87
- package/dist/ai/ui/Markdown.d.ts +3 -6
- package/dist/ai/ui/Markdown.js +6 -73
- package/dist/ai/ui/Notice.js +10 -12
- package/dist/ai/ui/chip.d.ts +2 -2
- package/dist/ai/ui/chip.js +1 -1
- package/dist/ai/ui/sidebar.d.ts +4 -20
- package/dist/ai/ui/sidebar.js +30 -67
- package/dist/ai/utils.d.ts +0 -1
- package/dist/ai/utils.js +1 -14
- package/dist/brandIcons.d.ts +51 -0
- package/dist/brandIcons.js +75 -0
- package/dist/components/Avatar.d.ts +3 -1
- package/dist/components/Avatar.js +34 -28
- package/dist/components/Button.d.ts +12 -7
- package/dist/components/Button.js +39 -44
- package/dist/components/Callout.js +18 -12
- package/dist/components/Card.d.ts +18 -8
- package/dist/components/Card.js +17 -6
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox.js +30 -0
- package/dist/components/Combobox.d.ts +9 -1
- package/dist/components/Combobox.js +71 -44
- package/dist/components/ConfirmModal.js +11 -11
- package/dist/components/ContextMenu.d.ts +2 -8
- package/dist/components/ContextMenu.js +2 -29
- package/dist/components/CopyToClipboard.js +17 -36
- package/dist/components/CreateModal.d.ts +3 -24
- package/dist/components/CreateModal.js +46 -113
- package/dist/components/DatePicker.d.ts +31 -0
- package/dist/components/DatePicker.js +191 -0
- package/dist/components/DescriptionList.js +4 -4
- package/dist/components/Disclosure.d.ts +34 -0
- package/dist/components/Disclosure.js +46 -0
- package/dist/components/Drawer.d.ts +47 -0
- package/dist/components/Drawer.js +120 -0
- package/dist/components/EmptyState.d.ts +15 -10
- package/dist/components/EmptyState.js +13 -8
- package/dist/components/ExternalLink.d.ts +8 -0
- package/dist/components/ExternalLink.js +29 -0
- package/dist/components/Field.d.ts +70 -0
- package/dist/components/Field.js +159 -0
- package/dist/components/HoverCard.js +11 -14
- package/dist/components/IconButton.d.ts +16 -13
- package/dist/components/IconButton.js +27 -18
- package/dist/components/InfoTip.js +16 -23
- package/dist/components/Input.d.ts +10 -9
- package/dist/components/Input.js +54 -96
- package/dist/components/LetterBadge.js +2 -2
- package/dist/components/Loader.d.ts +15 -8
- package/dist/components/Loader.js +29 -19
- package/dist/components/Markdown.d.ts +7 -1
- package/dist/components/Markdown.js +2 -0
- package/dist/components/MarkdownImpl.d.ts +1 -1
- package/dist/components/MarkdownImpl.js +55 -14
- package/dist/components/Menu.js +13 -15
- package/dist/components/MenuEntries.js +11 -16
- package/dist/components/Meter.d.ts +48 -0
- package/dist/components/Meter.js +94 -0
- package/dist/components/Modal.js +11 -14
- package/dist/components/NumberInput.d.ts +25 -0
- package/dist/components/NumberInput.js +55 -0
- package/dist/components/Overview.js +12 -10
- package/dist/components/PageHeader.d.ts +2 -3
- package/dist/components/PageHeader.js +30 -21
- package/dist/components/Pagination.d.ts +27 -14
- package/dist/components/Pagination.js +86 -25
- package/dist/components/Popover.d.ts +47 -0
- package/dist/components/Popover.js +63 -0
- package/dist/components/Provider.d.ts +200 -83
- package/dist/components/Provider.js +203 -121
- package/dist/components/Radio.d.ts +1 -1
- package/dist/components/Radio.js +4 -4
- package/dist/components/RefreshButton.d.ts +15 -0
- package/dist/components/RefreshButton.js +53 -0
- package/dist/components/RunStatusIcon.d.ts +12 -0
- package/dist/components/RunStatusIcon.js +84 -0
- package/dist/components/SearchInput.d.ts +16 -0
- package/dist/components/SearchInput.js +52 -0
- package/dist/components/Section.d.ts +28 -0
- package/dist/components/Section.js +76 -0
- package/dist/components/SegmentedControl.d.ts +7 -11
- package/dist/components/SegmentedControl.js +25 -56
- package/dist/components/Select.d.ts +5 -1
- package/dist/components/Select.js +43 -44
- package/dist/components/SettingModeOption.d.ts +3 -5
- package/dist/components/SettingModeOption.js +5 -6
- package/dist/components/SettingsCard.d.ts +32 -19
- package/dist/components/SettingsCard.js +40 -13
- package/dist/components/Skeleton.d.ts +22 -0
- package/dist/components/Skeleton.js +34 -0
- package/dist/components/Slider.d.ts +16 -0
- package/dist/components/Slider.js +30 -0
- package/dist/components/Sort.js +4 -6
- package/dist/components/StatusBadge.d.ts +5 -3
- package/dist/components/StatusBadge.js +10 -33
- package/dist/components/StatusIcons.d.ts +0 -4
- package/dist/components/StatusIcons.js +5 -13
- package/dist/components/Switch.d.ts +5 -1
- package/dist/components/Switch.js +23 -6
- package/dist/components/Table.js +13 -20
- package/dist/components/Tabs.d.ts +52 -0
- package/dist/components/Tabs.js +75 -0
- package/dist/components/ThemeEditor.d.ts +29 -0
- package/dist/components/ThemeEditor.js +397 -0
- package/dist/components/Toast.d.ts +57 -0
- package/dist/components/Toast.js +203 -0
- package/dist/components/Tooltip.js +12 -15
- package/dist/components/buttonClasses.d.ts +18 -0
- package/dist/components/buttonClasses.js +31 -0
- package/dist/components/codeTheme.d.ts +5 -0
- package/dist/components/codeTheme.js +93 -0
- package/dist/components/comboboxItems.d.ts +1 -1
- package/dist/components/fieldBox.d.ts +14 -0
- package/dist/components/fieldBox.js +29 -0
- package/dist/components/floating.d.ts +26 -5
- package/dist/components/floating.js +31 -9
- package/dist/{ai/ui/codeBreaks.js → components/markdownCodeBreaks.js} +1 -1
- package/dist/components/persistedState.d.ts +2 -0
- package/dist/components/persistedState.js +63 -0
- package/dist/components/relativeTime.d.ts +36 -8
- package/dist/components/relativeTime.js +106 -23
- package/dist/components/segmented.d.ts +17 -0
- package/dist/components/segmented.js +27 -0
- package/dist/components/shortcutKey.d.ts +4 -0
- package/dist/components/shortcutKey.js +27 -0
- package/dist/components/splitter.d.ts +26 -0
- package/dist/components/splitter.js +69 -0
- package/dist/components/tone.d.ts +9 -0
- package/dist/components/tone.js +30 -0
- package/dist/components/useCopy.d.ts +14 -0
- package/dist/components/useCopy.js +31 -0
- package/dist/components/useCssIsDark.d.ts +2 -0
- package/dist/components/useCssIsDark.js +2 -1
- package/dist/components/useTheme.d.ts +10 -0
- package/dist/components/useTheme.js +40 -0
- package/dist/cx.d.ts +5 -0
- package/dist/cx.js +11 -0
- package/dist/editing.d.ts +1 -1
- package/dist/editor/Editor.js +2 -2
- package/dist/editor/EditorField.js +7 -10
- package/dist/editor/FormCodePanel.js +10 -23
- package/dist/editor/Monaco.js +7 -4
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.js +2 -2
- package/dist/editor/themes.d.ts +4 -0
- package/dist/editor/themes.js +75 -76
- package/dist/file-explorer/FileExplorer.js +180 -187
- package/dist/file-explorer/FileExplorerContext.js +45 -67
- package/dist/file-explorer/FilePreview/CodePreviewEditor.js +2 -1
- package/dist/file-explorer/FilePreview/Inline.js +9 -7
- package/dist/file-explorer/FilePreview/StreamedBadge.js +2 -2
- package/dist/file-explorer/FilePreview/Viewer.js +32 -34
- package/dist/file-explorer/FilePreview/index.js +60 -92
- package/dist/file-explorer/FilePreview/useObjectBlobUrl.js +4 -4
- package/dist/file-explorer/FilePreview/useObjectText.js +4 -4
- package/dist/file-explorer/FilePreview/usePresignedUrl.js +4 -4
- package/dist/file-explorer/FileRow.js +10 -15
- package/dist/file-explorer/FileRowsWindow.js +2 -6
- package/dist/file-explorer/FileTable.js +2 -2
- package/dist/file-explorer/FileTableHeaders.js +8 -11
- package/dist/file-explorer/LoadMoreRow.js +8 -9
- package/dist/file-explorer/TreeView.js +16 -16
- package/dist/file-explorer/helpers.d.ts +1 -4
- package/dist/file-explorer/helpers.js +101 -114
- package/dist/file-explorer/lib/types.d.ts +2 -2
- package/dist/file-explorer/lib/utils.d.ts +0 -2
- package/dist/file-explorer/lib/utils.js +1 -25
- package/dist/file-explorer/toasts.js +109 -190
- package/dist/form/Fields/BooleanField.js +12 -14
- package/dist/form/Fields/CheckboxGroupField.d.ts +1 -1
- package/dist/form/Fields/CheckboxGroupField.js +16 -18
- package/dist/form/Fields/ColorField.js +11 -11
- package/dist/form/Fields/DropdownField.d.ts +1 -1
- package/dist/form/Fields/DropdownField.js +20 -36
- package/dist/form/Fields/DurationField.d.ts +1 -1
- package/dist/form/Fields/DurationField.js +36 -50
- package/dist/form/Fields/LabelField.js +2 -2
- package/dist/form/Fields/MultiDropdownField.d.ts +1 -1
- package/dist/form/Fields/MultiDropdownField.js +9 -14
- package/dist/form/Fields/NumberField.d.ts +1 -1
- package/dist/form/Fields/NumberField.js +13 -48
- package/dist/form/Fields/ObjectField.js +3 -3
- package/dist/form/Fields/RadioField.d.ts +1 -1
- package/dist/form/Fields/RadioField.js +15 -18
- package/dist/form/Fields/RangeField.js +34 -35
- package/dist/form/Fields/StringField.d.ts +1 -1
- package/dist/form/Fields/StringField.js +15 -25
- package/dist/form/Fields/TextAreaField.js +10 -15
- package/dist/form/Form.d.ts +7 -2
- package/dist/form/Form.js +144 -49
- package/dist/form/FormLayout.js +18 -12
- package/dist/form/Wizard/WizardContainer.js +44 -18
- package/dist/form/Wizard/WizardNavigation.d.ts +1 -1
- package/dist/form/Wizard/WizardNavigation.js +31 -56
- package/dist/form/Wizard/WizardStepIndicator.d.ts +3 -0
- package/dist/form/Wizard/WizardStepIndicator.js +98 -114
- package/dist/form/Wizard/types.d.ts +2 -2
- package/dist/form/fieldFrame.d.ts +7 -0
- package/dist/form/fieldFrame.js +19 -0
- package/dist/form/index.d.ts +5 -5
- package/dist/form/index.js +4 -6
- package/dist/form/layoutCSS.js +5 -4
- package/dist/form/types/fieldComponentTypes.d.ts +5 -3
- package/dist/form/useChoiceField.js +2 -3
- package/dist/form/useFieldValue.d.ts +3 -0
- package/dist/form/useFieldValue.js +24 -7
- package/dist/form/utils/duration.d.ts +2 -2
- package/dist/form/utils/duration.js +3 -3
- package/dist/form/utils/fieldItems.d.ts +1 -1
- package/dist/form/utils/fieldPath.d.ts +5 -3
- package/dist/form/utils/fieldPath.js +18 -3
- package/dist/form/utils/secondaryField.d.ts +0 -7
- package/dist/form/utils/secondaryField.js +1 -12
- package/dist/form/validation.d.ts +29 -0
- package/dist/form/validation.js +14 -0
- package/dist/format.d.ts +28 -0
- package/dist/format.js +64 -0
- package/dist/graph/AnnotationBanner.js +20 -31
- package/dist/graph/Connectors.js +1 -1
- package/dist/graph/DependencyGraph.js +51 -65
- package/dist/graph/GraphEditor.js +24 -28
- package/dist/graph/GraphEditorDialogs.js +239 -245
- package/dist/graph/InputDialog.js +93 -112
- package/dist/graph/InputsEditor.js +83 -84
- package/dist/graph/JobSummary.js +10 -11
- package/dist/graph/MatrixGroup.js +3 -3
- package/dist/graph/ProblemsButton.js +9 -10
- package/dist/graph/ShortcutsButton.js +12 -17
- package/dist/graph/SuggestionInput.d.ts +2 -3
- package/dist/graph/SuggestionInput.js +2 -4
- package/dist/graph/TreeView.js +47 -45
- package/dist/graph/WorkflowSettingsDialog.js +97 -102
- package/dist/graph/editorChrome.js +10 -12
- package/dist/graph/editorFields.d.ts +19 -16
- package/dist/graph/editorFields.js +97 -135
- package/dist/graph/editorPrimitives.d.ts +2 -2
- package/dist/graph/editorPrimitives.js +3 -3
- package/dist/graph/editorRows.js +22 -25
- package/dist/graph/editorStrings.d.ts +18 -21
- package/dist/graph/editorStrings.js +15 -27
- package/dist/graph/fieldProblems.js +2 -2
- package/dist/graph/graphEditorState.d.ts +4 -4
- package/dist/graph/inputRefs.d.ts +0 -13
- package/dist/graph/inputRefs.js +122 -160
- package/dist/graph/settingsViews.js +5 -3
- package/dist/graph/stepWith.js +100 -100
- package/dist/graph/toolbarPanel.d.ts +8 -0
- package/dist/graph/toolbarPanel.js +11 -0
- package/dist/icons.d.ts +234 -23
- package/dist/icons.js +249 -264
- package/dist/index.d.ts +38 -21
- package/dist/index.js +42 -21
- package/dist/list/ActionToolbar.d.ts +1 -5
- package/dist/list/ActionToolbar.js +21 -20
- package/dist/list/ListPage.js +7 -7
- package/dist/list/ListTable.d.ts +3 -2
- package/dist/list/ListTable.js +33 -29
- package/dist/list/ListViewControls.d.ts +0 -17
- package/dist/list/ListViewControls.js +50 -118
- package/dist/list/UserHoverCard.js +24 -32
- package/dist/list/index.d.ts +2 -4
- package/dist/list/index.js +3 -5
- package/dist/list/listSearch.d.ts +1 -1
- package/dist/list/listSearch.js +19 -14
- package/dist/list/rowMenu.js +20 -26
- package/dist/logviewer/LogViewer.js +268 -382
- package/dist/logviewer/logviewer.css +53 -41
- package/dist/logviewer/segments.d.ts +1 -1
- package/dist/logviewer/segments.js +1 -1
- package/dist/styles/base.css +16 -40
- package/dist/styles/theme.css +75 -106
- package/dist/styles.css +1 -1
- package/dist/theme/color.d.ts +40 -0
- package/dist/theme/color.js +228 -0
- package/dist/theme/contrast.d.ts +42 -0
- package/dist/theme/contrast.js +145 -0
- package/dist/theme/derive.d.ts +25 -0
- package/dist/theme/derive.js +475 -0
- package/dist/theme/fit.d.ts +35 -0
- package/dist/theme/fit.js +185 -0
- package/dist/theme/index.d.ts +14 -29
- package/dist/theme/index.js +20 -279
- package/dist/theme/model.d.ts +64 -0
- package/dist/theme/model.js +219 -0
- package/package.json +9 -5
- package/dist/ai/ui/Avatar.d.ts +0 -7
- package/dist/ai/ui/Avatar.js +0 -24
- package/dist/components/Filter.d.ts +0 -15
- package/dist/components/Filter.js +0 -32
- package/dist/components/FilterPill.d.ts +0 -7
- package/dist/components/FilterPill.js +0 -14
- package/dist/components/Indicator.d.ts +0 -4
- package/dist/components/Indicator.js +0 -44
- package/dist/components/SectionHeader.d.ts +0 -8
- package/dist/components/SectionHeader.js +0 -11
- package/dist/components/SettingRow.d.ts +0 -18
- package/dist/components/SettingRow.js +0 -35
- package/dist/components/SettingsGroup.d.ts +0 -8
- package/dist/components/SettingsGroup.js +0 -17
- package/dist/components/ghostButton.d.ts +0 -4
- package/dist/components/ghostButton.js +0 -7
- package/dist/components/inputClasses.d.ts +0 -1
- package/dist/components/inputClasses.js +0 -4
- package/dist/duration.d.ts +0 -3
- package/dist/duration.js +0 -17
- package/dist/form/FieldGroup.d.ts +0 -11
- package/dist/form/FieldGroup.js +0 -36
- package/dist/form/FieldWrapper.d.ts +0 -16
- package/dist/form/FieldWrapper.js +0 -55
- package/dist/form/fieldContext.d.ts +0 -19
- package/dist/form/fieldContext.js +0 -26
- package/dist/graph/Collapse.d.ts +0 -7
- package/dist/graph/Collapse.js +0 -15
- package/dist/graph/ToolbarPopover.d.ts +0 -13
- package/dist/graph/ToolbarPopover.js +0 -39
- package/dist/icons/ai/AiOutlineRollback.js +0 -16
- package/dist/icons/bi/BiBell.js +0 -16
- package/dist/icons/bi/BiBellOff.js +0 -16
- package/dist/icons/bi/BiBuildings.js +0 -20
- package/dist/icons/bi/BiError.js +0 -20
- package/dist/icons/bi/BiExpandVertical.js +0 -16
- package/dist/icons/bi/BiPause.js +0 -16
- package/dist/icons/bi/BiPlay.js +0 -16
- package/dist/icons/bi/BiRedo.js +0 -16
- package/dist/icons/bi/BiSolidCheckShield.js +0 -16
- package/dist/icons/bi/BiSolidTrashAlt.js +0 -16
- package/dist/icons/bi/BiStop.js +0 -16
- package/dist/icons/bi/BiUndo.js +0 -16
- package/dist/icons/bs/BsArrowsCollapse.js +0 -22
- package/dist/icons/bs/BsBank2.js +0 -19
- package/dist/icons/bs/BsBriefcase.js +0 -19
- package/dist/icons/bs/BsBucket.js +0 -19
- package/dist/icons/bs/BsCalendarX.js +0 -23
- package/dist/icons/bs/BsChatLeft.js +0 -19
- package/dist/icons/bs/BsChevronDoubleDown.js +0 -29
- package/dist/icons/bs/BsChevronDoubleUp.js +0 -29
- package/dist/icons/bs/BsClipboardCheck.js +0 -34
- package/dist/icons/bs/BsCurrencyDollar.js +0 -19
- package/dist/icons/bs/BsDash.js +0 -19
- package/dist/icons/bs/BsFileEarmarkZip.js +0 -23
- package/dist/icons/bs/BsFiles.js +0 -19
- package/dist/icons/bs/BsGeoAlt.js +0 -23
- package/dist/icons/bs/BsGrid.js +0 -19
- package/dist/icons/bs/BsLayers.js +0 -19
- package/dist/icons/bs/BsLayoutThreeColumns.js +0 -19
- package/dist/icons/bs/BsListUl.js +0 -22
- package/dist/icons/bs/BsMortarboard.js +0 -23
- package/dist/icons/bs/BsMusicNoteBeamed.js +0 -34
- package/dist/icons/bs/BsOpenai.js +0 -19
- package/dist/icons/bs/BsPersonPlus.js +0 -26
- package/dist/icons/bs/BsSearch.js +0 -19
- package/dist/icons/bs/BsSend.js +0 -19
- package/dist/icons/bs/BsShieldSlash.js +0 -22
- package/dist/icons/bs/BsStar.js +0 -19
- package/dist/icons/bs/BsStarFill.js +0 -19
- package/dist/icons/bs/BsStopCircle.js +0 -23
- package/dist/icons/bs/BsTag.js +0 -23
- package/dist/icons/bs/BsTelephone.js +0 -19
- package/dist/icons/bs/BsTerminal.js +0 -23
- package/dist/icons/bs/BsTerminalFill.js +0 -19
- package/dist/icons/bs/BsThreeDots.js +0 -19
- package/dist/icons/bs/BsThreeDotsVertical.js +0 -19
- package/dist/icons/bs/BsZoomIn.js +0 -37
- package/dist/icons/fa/FaAmazon.js +0 -16
- package/dist/icons/fa/FaAngleDown.js +0 -16
- package/dist/icons/fa/FaAngleLeft.js +0 -16
- package/dist/icons/fa/FaAngleRight.js +0 -16
- package/dist/icons/fa/FaAngleUp.js +0 -16
- package/dist/icons/fa/FaArrowDown.js +0 -16
- package/dist/icons/fa/FaArrowLeft.js +0 -16
- package/dist/icons/fa/FaArrowRight.js +0 -16
- package/dist/icons/fa/FaArrowUp.js +0 -16
- package/dist/icons/fa/FaBalanceScale.js +0 -16
- package/dist/icons/fa/FaCaretDown.js +0 -16
- package/dist/icons/fa/FaCentos.js +0 -16
- package/dist/icons/fa/FaChartLine.js +0 -16
- package/dist/icons/fa/FaChartPie.js +0 -16
- package/dist/icons/fa/FaCheck.js +0 -16
- package/dist/icons/fa/FaChevronDown.js +0 -16
- package/dist/icons/fa/FaChevronUp.js +0 -16
- package/dist/icons/fa/FaChrome.js +0 -16
- package/dist/icons/fa/FaCircleNotch.js +0 -16
- package/dist/icons/fa/FaCloud.js +0 -16
- package/dist/icons/fa/FaCloudDownloadAlt.js +0 -16
- package/dist/icons/fa/FaCog.js +0 -16
- package/dist/icons/fa/FaCogs.js +0 -16
- package/dist/icons/fa/FaComments.js +0 -16
- package/dist/icons/fa/FaCompress.js +0 -16
- package/dist/icons/fa/FaDesktop.js +0 -16
- package/dist/icons/fa/FaDocker.js +0 -16
- package/dist/icons/fa/FaDollarSign.js +0 -16
- package/dist/icons/fa/FaEdge.js +0 -16
- package/dist/icons/fa/FaEdit.js +0 -16
- package/dist/icons/fa/FaExclamationTriangle.js +0 -16
- package/dist/icons/fa/FaExpand.js +0 -16
- package/dist/icons/fa/FaEye.js +0 -16
- package/dist/icons/fa/FaEyeSlash.js +0 -16
- package/dist/icons/fa/FaFile.js +0 -16
- package/dist/icons/fa/FaFilePdf.js +0 -16
- package/dist/icons/fa/FaFilter.js +0 -16
- package/dist/icons/fa/FaFirefoxBrowser.js +0 -16
- package/dist/icons/fa/FaFlask.js +0 -16
- package/dist/icons/fa/FaFolder.js +0 -16
- package/dist/icons/fa/FaGithub.js +0 -16
- package/dist/icons/fa/FaGitlab.js +0 -16
- package/dist/icons/fa/FaGlobe.js +0 -16
- package/dist/icons/fa/FaGlobeAmericas.js +0 -16
- package/dist/icons/fa/FaImage.js +0 -16
- package/dist/icons/fa/FaInfoCircle.js +0 -16
- package/dist/icons/fa/FaKey.js +0 -16
- package/dist/icons/fa/FaLayerGroup.js +0 -16
- package/dist/icons/fa/FaLink.js +0 -16
- package/dist/icons/fa/FaLinkedin.js +0 -16
- package/dist/icons/fa/FaLinux.js +0 -16
- package/dist/icons/fa/FaList.js +0 -16
- package/dist/icons/fa/FaLock.js +0 -16
- package/dist/icons/fa/FaOpenid.js +0 -16
- package/dist/icons/fa/FaOpera.js +0 -16
- package/dist/icons/fa/FaPaperclip.js +0 -16
- package/dist/icons/fa/FaPlus.js +0 -16
- package/dist/icons/fa/FaPowerOff.js +0 -16
- package/dist/icons/fa/FaPrint.js +0 -16
- package/dist/icons/fa/FaQrcode.js +0 -16
- package/dist/icons/fa/FaQuestionCircle.js +0 -16
- package/dist/icons/fa/FaRedhat.js +0 -16
- package/dist/icons/fa/FaRegCircle.js +0 -16
- package/dist/icons/fa/FaRegFileImage.js +0 -16
- package/dist/icons/fa/FaRegFolder.js +0 -16
- package/dist/icons/fa/FaRobot.js +0 -16
- package/dist/icons/fa/FaRocket.js +0 -16
- package/dist/icons/fa/FaRunning.js +0 -16
- package/dist/icons/fa/FaSafari.js +0 -16
- package/dist/icons/fa/FaSave.js +0 -16
- package/dist/icons/fa/FaSearch.js +0 -16
- package/dist/icons/fa/FaShieldAlt.js +0 -16
- package/dist/icons/fa/FaSlack.js +0 -16
- package/dist/icons/fa/FaStar.js +0 -16
- package/dist/icons/fa/FaStop.js +0 -16
- package/dist/icons/fa/FaSuse.js +0 -16
- package/dist/icons/fa/FaTerminal.js +0 -16
- package/dist/icons/fa/FaTimes.js +0 -16
- package/dist/icons/fa/FaUbuntu.js +0 -16
- package/dist/icons/fa/FaUndoAlt.js +0 -16
- package/dist/icons/fa/FaUnlink.js +0 -16
- package/dist/icons/fa/FaUser.js +0 -16
- package/dist/icons/fa/FaUsers.js +0 -16
- package/dist/icons/fa/FaWindows.js +0 -16
- package/dist/icons/fa6/FaApple.js +0 -16
- package/dist/icons/fa6/FaArrowsRotate.js +0 -16
- package/dist/icons/fa6/FaDebian.js +0 -16
- package/dist/icons/fa6/FaFilterCircleXmark.js +0 -16
- package/dist/icons/fa6/FaInbox.js +0 -16
- package/dist/icons/fa6/FaLocationDot.js +0 -16
- package/dist/icons/fa6/FaRegFilePdf.js +0 -16
- package/dist/icons/fa6/FaRegFolderOpen.js +0 -16
- package/dist/icons/fa6/FaUpRightFromSquare.js +0 -16
- package/dist/icons/fa6/FaWandMagicSparkles.js +0 -16
- package/dist/icons/fa6/FaXTwitter.js +0 -16
- package/dist/icons/fi/FiActivity.js +0 -23
- package/dist/icons/fi/FiAlertCircle.js +0 -49
- package/dist/icons/fi/FiChevronDown.js +0 -23
- package/dist/icons/fi/FiClock.js +0 -31
- package/dist/icons/fi/FiCopy.js +0 -34
- package/dist/icons/fi/FiDownload.js +0 -40
- package/dist/icons/fi/FiFile.js +0 -27
- package/dist/icons/fi/FiFileText.js +0 -55
- package/dist/icons/fi/FiHardDrive.js +0 -55
- package/dist/icons/fi/FiRotateCcw.js +0 -27
- package/dist/icons/fi/FiUpload.js +0 -40
- package/dist/icons/fi/FiX.js +0 -37
- package/dist/icons/fi/FiZap.js +0 -23
- package/dist/icons/gi/GiSpy.js +0 -16
- package/dist/icons/go/GoGitCommit.js +0 -16
- package/dist/icons/go/GoGitPullRequest.js +0 -20
- package/dist/icons/go/GoIssueOpened.js +0 -16
- package/dist/icons/go/GoPlus.js +0 -16
- package/dist/icons/go/GoRepoForked.js +0 -28
- package/dist/icons/go/GoSignOut.js +0 -16
- package/dist/icons/go/GoSkip.js +0 -20
- package/dist/icons/go/GoVideo.js +0 -20
- package/dist/icons/gr/GrCloudComputer.js +0 -20
- package/dist/icons/gr/GrInbox.js +0 -20
- package/dist/icons/gr/GrServerCluster.js +0 -20
- package/dist/icons/gr/GrStorage.js +0 -20
- package/dist/icons/gr/GrTasks.js +0 -20
- package/dist/icons/hi/HiCog.js +0 -24
- package/dist/icons/hi/HiDuplicate.js +0 -24
- package/dist/icons/hi/HiOutlineArchive.js +0 -26
- package/dist/icons/hi/HiOutlineClipboardCopy.js +0 -26
- package/dist/icons/hi/HiOutlineHome.js +0 -26
- package/dist/icons/hi/HiQuestionMarkCircle.js +0 -24
- package/dist/icons/hi/HiServer.js +0 -24
- package/dist/icons/hi2/HiMiniCheckCircle.js +0 -24
- package/dist/icons/hi2/HiMiniLanguage.js +0 -28
- package/dist/icons/hi2/HiMiniMinusCircle.js +0 -24
- package/dist/icons/hi2/HiMiniXCircle.js +0 -24
- package/dist/icons/hi2/HiSparkles.js +0 -24
- package/dist/icons/im/ImSpinner5.js +0 -19
- package/dist/icons/io/IoIosNotifications.js +0 -16
- package/dist/icons/io/IoMdBuild.js +0 -16
- package/dist/icons/io/IoMdClose.js +0 -16
- package/dist/icons/io5/IoCloudUploadOutline.js +0 -32
- package/dist/icons/io5/IoDocumentTextOutline.js +0 -31
- package/dist/icons/io5/IoFileTrayFullOutline.js +0 -31
- package/dist/icons/io5/IoHeart.js +0 -16
- package/dist/icons/io5/IoHeartDislike.js +0 -16
- package/dist/icons/io5/IoHeartOutline.js +0 -22
- package/dist/icons/io5/IoInformationCircleOutline.js +0 -50
- package/dist/icons/io5/IoSettingsOutline.js +0 -22
- package/dist/icons/io5/IoWarningOutline.js +0 -40
- package/dist/icons/lu/LuArrowRight.js +0 -27
- package/dist/icons/lu/LuBadgeCheck.js +0 -27
- package/dist/icons/lu/LuBraces.js +0 -27
- package/dist/icons/lu/LuBrainCircuit.js +0 -101
- package/dist/icons/lu/LuCalendar.js +0 -46
- package/dist/icons/lu/LuCheck.js +0 -23
- package/dist/icons/lu/LuChevronLeft.js +0 -23
- package/dist/icons/lu/LuChevronRight.js +0 -23
- package/dist/icons/lu/LuCode.js +0 -27
- package/dist/icons/lu/LuExternalLink.js +0 -35
- package/dist/icons/lu/LuEye.js +0 -31
- package/dist/icons/lu/LuEyeOff.js +0 -40
- package/dist/icons/lu/LuFolderTree.js +0 -40
- package/dist/icons/lu/LuIdCard.js +0 -55
- package/dist/icons/lu/LuKeyboard.js +0 -71
- package/dist/icons/lu/LuLogs.js +0 -65
- package/dist/icons/lu/LuMail.js +0 -33
- package/dist/icons/lu/LuMegaphone.js +0 -27
- package/dist/icons/lu/LuMoon.js +0 -23
- package/dist/icons/lu/LuNetwork.js +0 -63
- package/dist/icons/lu/LuPartyPopper.js +0 -65
- package/dist/icons/lu/LuSettings2.js +0 -48
- package/dist/icons/lu/LuSheet.js +0 -72
- package/dist/icons/lu/LuShield.js +0 -23
- package/dist/icons/lu/LuSun.js +0 -69
- package/dist/icons/lu/LuTextCursorInput.js +0 -45
- package/dist/icons/lu/LuX.js +0 -27
- package/dist/icons/lu/LuZoomIn.js +0 -59
- package/dist/icons/lu/LuZoomOut.js +0 -49
- package/dist/icons/md/MdClear.js +0 -23
- package/dist/icons/md/MdDragHandle.js +0 -23
- package/dist/icons/md/MdInstallDesktop.js +0 -31
- package/dist/icons/md/MdOutlineAttachMoney.js +0 -23
- package/dist/icons/md/MdOutlineMoneyOff.js +0 -23
- package/dist/icons/md/MdPieChart.js +0 -23
- package/dist/icons/md/MdRefresh.js +0 -23
- package/dist/icons/md/MdReplay.js +0 -23
- package/dist/icons/md/MdSmartphone.js +0 -23
- package/dist/icons/pi/PiArrowBendUpRightBold.js +0 -19
- package/dist/icons/pi/PiPlugsConnectedFill.js +0 -19
- package/dist/icons/pi/PiRectangleDashed.js +0 -19
- package/dist/icons/pi/PiShareBold.js +0 -19
- package/dist/icons/si/SiAnthropic.js +0 -19
- package/dist/icons/si/SiHelm.js +0 -19
- package/dist/icons/si/SiKubernetes.js +0 -19
- package/dist/icons/tb/TbAlertTriangle.js +0 -35
- package/dist/icons/tb/TbAlertTriangleFilled.js +0 -19
- package/dist/icons/tb/TbApi.js +0 -40
- package/dist/icons/tb/TbBrain.js +0 -50
- package/dist/icons/tb/TbBuildingTunnel.js +0 -65
- package/dist/icons/tb/TbEdit.js +0 -35
- package/dist/icons/tb/TbLayoutSidebar.js +0 -27
- package/dist/icons/tb/TbLayoutSidebarLeftCollapse.js +0 -35
- package/dist/icons/tb/TbLayoutSidebarRightCollapse.js +0 -35
- package/dist/icons/tb/TbUser.js +0 -27
- package/dist/icons/tb/TbUserOff.js +0 -35
- package/dist/icons/tb/TbWorldShare.js +0 -55
- package/dist/icons/tb/TbWorldWww.js +0 -65
- package/dist/icons/ti/TiArrowSortedDown.js +0 -20
- package/dist/icons/ti/TiArrowSortedUp.js +0 -20
- package/dist/icons/ti/TiArrowUnsorted.js +0 -20
- package/dist/icons/ti/TiCancel.js +0 -20
- package/dist/icons/vsc/VscChromeMinimize.js +0 -19
- package/dist/icons/vsc/VscJson.js +0 -19
- package/dist/icons/vsc/VscLayoutSidebarLeft.js +0 -19
- package/dist/icons/vsc/VscPass.js +0 -27
- package/dist/icons/vsc/VscSplitHorizontal.js +0 -19
- package/dist/icons/vsc/VscTerminalPowershell.js +0 -19
- package/dist/list/ListPager.d.ts +0 -14
- package/dist/list/ListPager.js +0 -62
- package/dist/list/textEntry.d.ts +0 -2
- package/dist/list/textEntry.js +0 -10
- /package/dist/{ai/ui/codeBreaks.d.ts → components/markdownCodeBreaks.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,52 +1,69 @@
|
|
|
1
1
|
export { ActionMenu } from './components/ActionMenu.js';
|
|
2
2
|
export { Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, avatarInitials, } from './components/Avatar.js';
|
|
3
3
|
export { BreadcrumbProvider, type IBreadcrumbItem, useBreadcrumb, useClearBreadcrumbs, useHideBreadcrumbs, useSetBreadcrumbs, useSetDefaultBreadcrumbs, } from './components/Breadcrumbs.js';
|
|
4
|
-
export { Button, MethodButton } from './components/Button.js';
|
|
4
|
+
export { Button, type ButtonProps, MethodButton } from './components/Button.js';
|
|
5
|
+
export { type ButtonSize, type ButtonStyle, type ButtonVariant, buttonClasses, } from './components/buttonClasses.js';
|
|
5
6
|
export { default as Callout } from './components/Callout.js';
|
|
6
|
-
export { Card, CardHeader } from './components/Card.js';
|
|
7
|
+
export { Card, CardHeader, type CardProps } from './components/Card.js';
|
|
8
|
+
export { Checkbox, CheckboxGroup, type CheckboxProps } from './components/Checkbox.js';
|
|
7
9
|
export { Autocomplete, type AutocompleteProps, Combobox, type ComboboxGroup, type ComboboxItem, type ComboboxItems, type ComboboxProps, } from './components/Combobox.js';
|
|
8
10
|
export { ConfirmModal } from './components/ConfirmModal.js';
|
|
9
|
-
export { type
|
|
11
|
+
export { type OpenMenu, type OpenMenuOptions, useContextMenu, } from './components/ContextMenu.js';
|
|
10
12
|
export { CopyCodeBlock, default as CopyToClipboard } from './components/CopyToClipboard.js';
|
|
11
|
-
export { CreateModal,
|
|
13
|
+
export { CreateModal, CreateModalSelect, CreateModalSwitch, } from './components/CreateModal.js';
|
|
14
|
+
export { DatePicker, type DatePickerProps } from './components/DatePicker.js';
|
|
12
15
|
export { DescriptionListItem, default as DescriptionList } from './components/DescriptionList.js';
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
16
|
+
export { Disclosure, DisclosurePanel, type DisclosureProps } from './components/Disclosure.js';
|
|
17
|
+
export { Drawer, type DrawerProps } from './components/Drawer.js';
|
|
18
|
+
export { EmptyState, type EmptyStateProps } from './components/EmptyState.js';
|
|
19
|
+
export { ExternalLink, type ExternalLinkProps } from './components/ExternalLink.js';
|
|
20
|
+
export { Field, type FieldControlProps, type FieldLayout, FieldOption, type FieldProps, RevealToggle, useFieldControl, } from './components/Field.js';
|
|
21
|
+
export { type FieldBoxOptions, type FieldBoxSize, fieldBox } from './components/fieldBox.js';
|
|
22
|
+
export type { FloatingAnchor } from './components/floating.js';
|
|
17
23
|
export { HoverCard, type HoverCardProps } from './components/HoverCard.js';
|
|
18
|
-
export { IconButton } from './components/IconButton.js';
|
|
19
|
-
export { Indicator } from './components/Indicator.js';
|
|
24
|
+
export { IconButton, type IconButtonProps } from './components/IconButton.js';
|
|
20
25
|
export { formatInfoTipContent, InfoTip } from './components/InfoTip.js';
|
|
21
|
-
export { Input, Textarea } from './components/Input.js';
|
|
22
|
-
export { inputClasses } from './components/inputClasses.js';
|
|
26
|
+
export { Input, type InputProps, Textarea, type TextareaProps } from './components/Input.js';
|
|
23
27
|
export { LetterBadge } from './components/LetterBadge.js';
|
|
24
|
-
export {
|
|
28
|
+
export { Loader, type LoaderProps } from './components/Loader.js';
|
|
25
29
|
export type { MarkdownProps } from './components/Markdown.js';
|
|
26
30
|
export { default as Markdown } from './components/Markdown.js';
|
|
27
31
|
export { MenuCheckboxItem, MenuGroupLabel, MenuItem, MenuLinkItem, MenuPopup, type MenuPopupProps, MenuRadioItem, MenuSeparator, MenuSubmenuTrigger, } from './components/Menu.js';
|
|
28
32
|
export { type MenuAction, type MenuDivider, MenuEntries, type MenuEntry, MenuFilter, type MenuSearch, type MenuSubmenu, menuDivider, } from './components/MenuEntries.js';
|
|
33
|
+
export { type BarSize, type BarTone, levelTone, Meter, ProgressBar, } from './components/Meter.js';
|
|
29
34
|
export { Modal, ModalDescription, type ModalProps, ModalTitle, modalPanelClassName, } from './components/Modal.js';
|
|
35
|
+
export { NumberInput, type NumberInputProps } from './components/NumberInput.js';
|
|
30
36
|
export { Overview } from './components/Overview.js';
|
|
31
|
-
export { BreadcrumbsActionButton, BreadcrumbsRightAction, BreadcrumbsTitleAction, HeaderActionMenu, HeaderAddButton, HeaderEditButton,
|
|
32
|
-
export { Pagination } from './components/Pagination.js';
|
|
33
|
-
export {
|
|
37
|
+
export { BreadcrumbsActionButton, BreadcrumbsRightAction, BreadcrumbsTitleAction, HeaderActionMenu, HeaderAddButton, HeaderEditButton, PageHeader, type PageHeaderBreadcrumb, type PageHeaderCrumb, } from './components/PageHeader.js';
|
|
38
|
+
export { PAGE_SIZES, Pagination, type PaginationProps } from './components/Pagination.js';
|
|
39
|
+
export { Popover, PopoverClose, type PopoverProps, useClosePopover, } from './components/Popover.js';
|
|
40
|
+
export { type PersistedStateHook, type RunFileResult, type UIData, type UILinkComponent, type UINavigation, UIProvider, type UISlots, type UIStrings, useNavigation, useOptionalWorkflowEngine, usePersistedState, useProvisionCorsRules, useRunFile, useSlots, useStrings, useWorkflowActions, useWorkflowEditing, useWorkflowEngine, useWorkflowEngineLoader, type WorkflowEngineSource, type WorkflowJsonRef, } from './components/Provider.js';
|
|
34
41
|
export { Radio, RadioGroup, type RadioProps } from './components/Radio.js';
|
|
42
|
+
export { RefreshButton, type RefreshButtonProps } from './components/RefreshButton.js';
|
|
35
43
|
export { RequiredMark } from './components/RequiredMark.js';
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
44
|
+
export { RunStatusIcon, runStatusTone } from './components/RunStatusIcon.js';
|
|
45
|
+
export { Elapsed, RelativeTime, type RelativeTimeFormat, useClock, useElapsed, useRelativeTime, } from './components/relativeTime.js';
|
|
46
|
+
export { SearchInput, type SearchInputProps } from './components/SearchInput.js';
|
|
47
|
+
export { Section, type SectionProps, type SectionVariant, } from './components/Section.js';
|
|
38
48
|
export { SegmentedControl, type SegmentedOption } from './components/SegmentedControl.js';
|
|
39
49
|
export { Select, type SelectItem, type SelectProps } from './components/Select.js';
|
|
40
50
|
export { SettingModeOption } from './components/SettingModeOption.js';
|
|
41
|
-
export { SettingRow,
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
51
|
+
export { SettingRow, SettingsCard, type SettingsCardProps, SettingsHeading, } from './components/SettingsCard.js';
|
|
52
|
+
export { LoadingRegion, Skeleton, type SkeletonProps } from './components/Skeleton.js';
|
|
53
|
+
export { Slider, type SliderProps } from './components/Slider.js';
|
|
44
54
|
export { default as Sort, type TDirection } from './components/Sort.js';
|
|
45
55
|
export { type BadgeVariant, StatusBadge, StatusDot, statusTextClass, } from './components/StatusBadge.js';
|
|
46
56
|
export { Switch, type SwitchProps } from './components/Switch.js';
|
|
57
|
+
export { isTextEntryContext, useShortcutKey } from './components/shortcutKey.js';
|
|
47
58
|
export { CompactTable, Table } from './components/Table.js';
|
|
59
|
+
export { type TabItem, TabPanel, Tabs, type TabsProps } from './components/Tabs.js';
|
|
60
|
+
export { ThemeEditor, type ThemeEditorProps, ThemePreview } from './components/ThemeEditor.js';
|
|
61
|
+
export { type ToastAction, type Toaster, type ToastOptions, type ToastTone, type ToastUpdate, toast, } from './components/Toast.js';
|
|
48
62
|
export { Tooltip, type TooltipProps, TooltipProvider, type TooltipSide, } from './components/Tooltip.js';
|
|
63
|
+
export { type CopyOptions, useCopy } from './components/useCopy.js';
|
|
49
64
|
export { useCssIsDark } from './components/useCssIsDark.js';
|
|
65
|
+
export { useApplyTheme, useColorMode } from './components/useTheme.js';
|
|
50
66
|
export type { EditRefusalReason, FieldPatch, GraphEdit, GraphEditResult, GraphEditState, GraphLayout, GraphPosition, GraphSlot, InputEdit, InputPath, LintFix, NeedRef, StepRef, WorkflowAction, WorkflowActionInput, WorkflowEditing, WorkflowLintContext, WorkflowLintProblem, } from './editing.js';
|
|
51
67
|
export type { EngineJob, EngineStep, EvaluateOptions, ExpansionKeys, LogCommand, LogSegment, MatrixGroup, ProcessedLogLine, RunStatus, WorkflowEngine, WorkflowVariable, WorkflowVariables, } from './engine.js';
|
|
68
|
+
export { formatBytes, formatCount, formatDateTime, formatDuration, formatTimeLeft, type TimeValue, } from './format.js';
|
|
52
69
|
export * from './theme/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { MenuCheckboxItem, MenuGroupLabel, MenuItem, MenuLinkItem, MenuPopup, MenuRadioItem, MenuSeparator, MenuSubmenuTrigger } from "./components/Menu.js";
|
|
2
|
+
import { EmptyState } from "./components/EmptyState.js";
|
|
3
|
+
import { buttonClasses } from "./components/buttonClasses.js";
|
|
4
|
+
import { Loader } from "./components/Loader.js";
|
|
5
|
+
import { toast } from "./components/Toast.js";
|
|
2
6
|
import { Tooltip, TooltipProvider } from "./components/Tooltip.js";
|
|
3
|
-
import { UIProvider, useNavigation,
|
|
7
|
+
import { UIProvider, useNavigation, useOptionalWorkflowEngine, usePersistedState, useProvisionCorsRules, useRunFile, useSlots, useStrings, useWorkflowActions, useWorkflowEditing, useWorkflowEngine, useWorkflowEngineLoader } from "./components/Provider.js";
|
|
8
|
+
import { useCopy } from "./components/useCopy.js";
|
|
4
9
|
import { MenuEntries, MenuFilter, menuDivider } from "./components/MenuEntries.js";
|
|
5
10
|
import { ActionMenu } from "./components/ActionMenu.js";
|
|
6
11
|
import { Avatar, avatarInitials } from "./components/Avatar.js";
|
|
@@ -8,43 +13,59 @@ import { BreadcrumbProvider, useBreadcrumb, useClearBreadcrumbs, useHideBreadcru
|
|
|
8
13
|
import { Button, MethodButton } from "./components/Button.js";
|
|
9
14
|
import Callout from "./components/Callout.js";
|
|
10
15
|
import { Card, CardHeader } from "./components/Card.js";
|
|
16
|
+
import { Checkbox, CheckboxGroup } from "./components/Checkbox.js";
|
|
17
|
+
import { fieldBox } from "./components/fieldBox.js";
|
|
11
18
|
import { Autocomplete, Combobox } from "./components/Combobox.js";
|
|
12
|
-
import { dangerButtonClasses, ghostButtonClasses, primaryButtonClasses } from "./components/ghostButton.js";
|
|
13
19
|
import { Modal, ModalDescription, ModalTitle, modalPanelClassName } from "./components/Modal.js";
|
|
14
20
|
import { ConfirmModal } from "./components/ConfirmModal.js";
|
|
15
21
|
import { useContextMenu } from "./components/ContextMenu.js";
|
|
16
22
|
import CopyToClipboard, { CopyCodeBlock } from "./components/CopyToClipboard.js";
|
|
17
|
-
import {
|
|
23
|
+
import { Disclosure, DisclosurePanel } from "./components/Disclosure.js";
|
|
18
24
|
import { Switch } from "./components/Switch.js";
|
|
19
|
-
import { CreateModal,
|
|
25
|
+
import { CreateModal, CreateModalSelect, CreateModalSwitch } from "./components/CreateModal.js";
|
|
26
|
+
import { DatePicker } from "./components/DatePicker.js";
|
|
27
|
+
import { ExternalLink } from "./components/ExternalLink.js";
|
|
28
|
+
import { Popover, PopoverClose, useClosePopover } from "./components/Popover.js";
|
|
29
|
+
import { InfoTip, formatInfoTipContent } from "./components/InfoTip.js";
|
|
20
30
|
import DescriptionList, { DescriptionListItem } from "./components/DescriptionList.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
31
|
+
import { Drawer } from "./components/Drawer.js";
|
|
32
|
+
import { RequiredMark } from "./components/RequiredMark.js";
|
|
33
|
+
import { Field, FieldOption, RevealToggle, useFieldControl } from "./components/Field.js";
|
|
24
34
|
import { HoverCard } from "./components/HoverCard.js";
|
|
35
|
+
import { isTextEntryContext, useShortcutKey } from "./components/shortcutKey.js";
|
|
25
36
|
import { IconButton } from "./components/IconButton.js";
|
|
26
|
-
import { Indicator } from "./components/Indicator.js";
|
|
27
|
-
import { RequiredMark } from "./components/RequiredMark.js";
|
|
28
37
|
import { Input, Textarea } from "./components/Input.js";
|
|
29
|
-
import { inputClasses } from "./components/inputClasses.js";
|
|
30
38
|
import { LetterBadge } from "./components/LetterBadge.js";
|
|
31
|
-
import Loader from "./components/Loader.js";
|
|
32
39
|
import Markdown from "./components/Markdown.js";
|
|
40
|
+
import { Meter, ProgressBar, levelTone } from "./components/Meter.js";
|
|
41
|
+
import { NumberInput } from "./components/NumberInput.js";
|
|
42
|
+
import { LoadingRegion, Skeleton } from "./components/Skeleton.js";
|
|
33
43
|
import { Overview } from "./components/Overview.js";
|
|
34
|
-
import { BreadcrumbsActionButton, BreadcrumbsRightAction, BreadcrumbsTitleAction, HeaderActionMenu, HeaderAddButton, HeaderEditButton, PageHeader
|
|
35
|
-
import {
|
|
44
|
+
import { BreadcrumbsActionButton, BreadcrumbsRightAction, BreadcrumbsTitleAction, HeaderActionMenu, HeaderAddButton, HeaderEditButton, PageHeader } from "./components/PageHeader.js";
|
|
45
|
+
import { Select } from "./components/Select.js";
|
|
46
|
+
import { PAGE_SIZES, Pagination } from "./components/Pagination.js";
|
|
36
47
|
import { Radio, RadioGroup } from "./components/Radio.js";
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
48
|
+
import { formatBytes, formatCount, formatDateTime, formatDuration, formatTimeLeft } from "./format.js";
|
|
49
|
+
import { Elapsed, RelativeTime, useClock, useElapsed, useRelativeTime } from "./components/relativeTime.js";
|
|
50
|
+
import { RefreshButton } from "./components/RefreshButton.js";
|
|
51
|
+
import { RunStatusIcon, runStatusTone } from "./components/RunStatusIcon.js";
|
|
52
|
+
import { SearchInput } from "./components/SearchInput.js";
|
|
53
|
+
import { Section } from "./components/Section.js";
|
|
39
54
|
import { SegmentedControl } from "./components/SegmentedControl.js";
|
|
40
|
-
import { Select } from "./components/Select.js";
|
|
41
55
|
import { SettingModeOption } from "./components/SettingModeOption.js";
|
|
42
|
-
import { SettingRow,
|
|
43
|
-
import
|
|
44
|
-
import SettingsGroup from "./components/SettingsGroup.js";
|
|
56
|
+
import { SettingRow, SettingsCard, SettingsHeading } from "./components/SettingsCard.js";
|
|
57
|
+
import { Slider } from "./components/Slider.js";
|
|
45
58
|
import Sort from "./components/Sort.js";
|
|
46
59
|
import { StatusBadge, StatusDot, statusTextClass } from "./components/StatusBadge.js";
|
|
47
60
|
import { CompactTable, Table } from "./components/Table.js";
|
|
61
|
+
import { TabPanel, Tabs } from "./components/Tabs.js";
|
|
62
|
+
import { JND, composite, deltaE, parseColor, toHex, toP3 } from "./theme/color.js";
|
|
63
|
+
import { apcaContrast, contrastRatio, isDarkColor } from "./theme/contrast.js";
|
|
64
|
+
import { CODE_STYLES, DEFAULT_CONTRAST, DEFAULT_PRESET, DEFAULT_THEME, THEME_PRESETS, modeOf, parseTheme, resolveMode, schemeFor, serializeTheme } from "./theme/model.js";
|
|
65
|
+
import { SIDEBAR_TOKENS, THEME_TOKENS, deriveTheme, generateTheme, themeStylesheet } from "./theme/derive.js";
|
|
66
|
+
import { fitSeed } from "./theme/fit.js";
|
|
67
|
+
import { applyTheme, prefersWideGamut } from "./theme/index.js";
|
|
68
|
+
import { ThemeEditor, ThemePreview } from "./components/ThemeEditor.js";
|
|
48
69
|
import { useCssIsDark } from "./components/useCssIsDark.js";
|
|
49
|
-
import {
|
|
50
|
-
export { ActionMenu, Autocomplete, Avatar, BreadcrumbProvider, BreadcrumbsActionButton, BreadcrumbsRightAction, BreadcrumbsTitleAction, Button, Callout, Card, CardHeader, Combobox, CompactTable, ConfirmModal, CopyCodeBlock, CopyToClipboard, CreateModal,
|
|
70
|
+
import { useApplyTheme, useColorMode } from "./components/useTheme.js";
|
|
71
|
+
export { ActionMenu, Autocomplete, Avatar, BreadcrumbProvider, BreadcrumbsActionButton, BreadcrumbsRightAction, BreadcrumbsTitleAction, Button, CODE_STYLES, Callout, Card, CardHeader, Checkbox, CheckboxGroup, Combobox, CompactTable, ConfirmModal, CopyCodeBlock, CopyToClipboard, CreateModal, CreateModalSelect, CreateModalSwitch, DEFAULT_CONTRAST, DEFAULT_PRESET, DEFAULT_THEME, DatePicker, DescriptionList, DescriptionListItem, Disclosure, DisclosurePanel, Drawer, Elapsed, EmptyState, ExternalLink, Field, FieldOption, HeaderActionMenu, HeaderAddButton, HeaderEditButton, HoverCard, IconButton, InfoTip, Input, JND, LetterBadge, Loader, LoadingRegion, Markdown, MenuCheckboxItem, MenuEntries, MenuFilter, MenuGroupLabel, MenuItem, MenuLinkItem, MenuPopup, MenuRadioItem, MenuSeparator, MenuSubmenuTrigger, Meter, MethodButton, Modal, ModalDescription, ModalTitle, NumberInput, Overview, PAGE_SIZES, PageHeader, Pagination, Popover, PopoverClose, ProgressBar, Radio, RadioGroup, RefreshButton, RelativeTime, RequiredMark, RevealToggle, RunStatusIcon, SIDEBAR_TOKENS, SearchInput, Section, SegmentedControl, Select, SettingModeOption, SettingRow, SettingsCard, SettingsHeading, Skeleton, Slider, Sort, StatusBadge, StatusDot, Switch, THEME_PRESETS, THEME_TOKENS, TabPanel, Table, Tabs, Textarea, ThemeEditor, ThemePreview, Tooltip, TooltipProvider, UIProvider, apcaContrast, applyTheme, avatarInitials, buttonClasses, composite, contrastRatio, deltaE, deriveTheme, fieldBox, fitSeed, formatBytes, formatCount, formatDateTime, formatDuration, formatInfoTipContent, formatTimeLeft, generateTheme, isDarkColor, isTextEntryContext, levelTone, menuDivider, modalPanelClassName, modeOf, parseColor, parseTheme, prefersWideGamut, resolveMode, runStatusTone, schemeFor, serializeTheme, statusTextClass, themeStylesheet, toHex, toP3, toast, useApplyTheme, useBreadcrumb, useClearBreadcrumbs, useClock, useClosePopover, useColorMode, useContextMenu, useCopy, useCssIsDark, useElapsed, useFieldControl, useHideBreadcrumbs, useNavigation, useOptionalWorkflowEngine, usePersistedState, useProvisionCorsRules, useRelativeTime, useRunFile, useSetBreadcrumbs, useSetDefaultBreadcrumbs, useShortcutKey, useSlots, useStrings, useWorkflowActions, useWorkflowEditing, useWorkflowEngine, useWorkflowEngineLoader };
|
|
@@ -17,11 +17,7 @@ export declare function ToolbarButton({ action }: {
|
|
|
17
17
|
action: ToolbarAction;
|
|
18
18
|
}): import("react").JSX.Element;
|
|
19
19
|
/** Pins a detail-page toolbar just below the sticky breadcrumb strip (top-10 matches the strip's 40px height). */
|
|
20
|
-
export declare const stickyToolbarClasses = "sticky top-10 z-
|
|
21
|
-
/** Pins a detail-page tabs row under the pinned toolbar (top-22 = 40px strip + 48px toolbar block). */
|
|
22
|
-
export declare const stickyTabsClasses = "sticky top-22 z-10 bg-(--theme-app-bg)";
|
|
23
|
-
/** Pins a detail-page tabs row directly under the breadcrumb strip when the page has no pinned toolbar (top-10 = the strip's height). */
|
|
24
|
-
export declare const stickyTabsUnderHeaderClasses = "sticky top-10 z-10 bg-(--theme-app-bg)";
|
|
20
|
+
export declare const stickyToolbarClasses = "sticky top-10 z-(--layer-sticky) bg-(--theme-app-bg)";
|
|
25
21
|
/** Action groups left, secondary actions right (collapsing into a `…` menu). */
|
|
26
22
|
export declare function ActionToolbar({ groups, right, sticky, }: {
|
|
27
23
|
groups: ToolbarItem[][];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cx } from "../cx.js";
|
|
2
|
+
import { MoreIcon } from "../icons.js";
|
|
2
3
|
import { MenuPopup } from "../components/Menu.js";
|
|
4
|
+
import { buttonClasses } from "../components/buttonClasses.js";
|
|
3
5
|
import { Tooltip } from "../components/Tooltip.js";
|
|
4
6
|
import { useLink, useStrings } from "../components/Provider.js";
|
|
5
7
|
import { MenuEntries } from "../components/MenuEntries.js";
|
|
8
|
+
import { Button } from "../components/Button.js";
|
|
6
9
|
import { Menu } from "@base-ui/react/menu";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
11
|
import { Fragment as Fragment$1, createContext, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
10
|
-
import { Button } from "@base-ui/react/button";
|
|
11
12
|
import { Toggle } from "@base-ui/react/toggle";
|
|
12
13
|
//#region src/list/ActionToolbar.tsx
|
|
13
14
|
var OverflowMenuContext = createContext(false);
|
|
@@ -20,12 +21,11 @@ function ToolbarButton({ action }) {
|
|
|
20
21
|
const inOverflowMenu = useContext(OverflowMenuContext);
|
|
21
22
|
const Link = useLink();
|
|
22
23
|
if (inOverflowMenu) return /* @__PURE__ */ jsx(MenuEntries, { entries: [action] });
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}), action.label] });
|
|
24
|
+
const className = buttonClasses({
|
|
25
|
+
variant: action.checked === false ? "outline" : "primary",
|
|
26
|
+
size: "md"
|
|
27
|
+
});
|
|
28
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [action.icon, action.label] });
|
|
29
29
|
let control;
|
|
30
30
|
if (action.href && !action.disabled) control = /* @__PURE__ */ jsx(Link, {
|
|
31
31
|
href: action.href,
|
|
@@ -40,10 +40,11 @@ function ToolbarButton({ action }) {
|
|
|
40
40
|
children: content
|
|
41
41
|
});
|
|
42
42
|
else control = /* @__PURE__ */ jsx(Button, {
|
|
43
|
+
variant: "primary",
|
|
44
|
+
size: "md",
|
|
43
45
|
onClick: action.onClick,
|
|
44
46
|
disabled: action.disabled,
|
|
45
47
|
focusableWhenDisabled: true,
|
|
46
|
-
className,
|
|
47
48
|
children: content
|
|
48
49
|
});
|
|
49
50
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -58,9 +59,13 @@ function OverflowMenu({ items }) {
|
|
|
58
59
|
content: t.moreActions,
|
|
59
60
|
children: /* @__PURE__ */ jsx(Menu.Trigger, {
|
|
60
61
|
"aria-label": t.moreActions,
|
|
61
|
-
className:
|
|
62
|
+
className: buttonClasses({
|
|
63
|
+
variant: "outline",
|
|
64
|
+
size: "md",
|
|
65
|
+
iconOnly: true
|
|
66
|
+
}),
|
|
62
67
|
"data-testid": "action-toolbar-menu-button",
|
|
63
|
-
children: /* @__PURE__ */ jsx(
|
|
68
|
+
children: /* @__PURE__ */ jsx(MoreIcon, {})
|
|
64
69
|
})
|
|
65
70
|
}), /* @__PURE__ */ jsx(MenuPopup, {
|
|
66
71
|
keepMounted: true,
|
|
@@ -72,7 +77,7 @@ function OverflowMenu({ items }) {
|
|
|
72
77
|
})
|
|
73
78
|
})] });
|
|
74
79
|
}
|
|
75
|
-
var MENU_BUTTON_WIDTH =
|
|
80
|
+
var MENU_BUTTON_WIDTH = 40;
|
|
76
81
|
var ITEM_GAP = 4;
|
|
77
82
|
function fitCount(widths, available, gap, menuWidth) {
|
|
78
83
|
if (widths.length === 0) return 0;
|
|
@@ -125,17 +130,13 @@ function CollapsibleRight({ items }) {
|
|
|
125
130
|
});
|
|
126
131
|
}
|
|
127
132
|
/** Pins a detail-page toolbar just below the sticky breadcrumb strip (top-10 matches the strip's 40px height). */
|
|
128
|
-
var stickyToolbarClasses = "sticky top-10 z-
|
|
129
|
-
/** Pins a detail-page tabs row under the pinned toolbar (top-22 = 40px strip + 48px toolbar block). */
|
|
130
|
-
var stickyTabsClasses = "sticky top-22 z-10 bg-(--theme-app-bg)";
|
|
131
|
-
/** Pins a detail-page tabs row directly under the breadcrumb strip when the page has no pinned toolbar (top-10 = the strip's height). */
|
|
132
|
-
var stickyTabsUnderHeaderClasses = "sticky top-10 z-10 bg-(--theme-app-bg)";
|
|
133
|
+
var stickyToolbarClasses = "sticky top-10 z-(--layer-sticky) bg-(--theme-app-bg)";
|
|
133
134
|
/** Action groups left, secondary actions right (collapsing into a `…` menu). */
|
|
134
135
|
function ActionToolbar({ groups, right = [], sticky = false }) {
|
|
135
136
|
const visibleGroups = groups.map((group) => group.filter((a) => !a.hidden)).filter((group) => group.length > 0);
|
|
136
137
|
const visibleRight = right.filter((a) => !a.hidden);
|
|
137
138
|
return /* @__PURE__ */ jsxs("div", {
|
|
138
|
-
className:
|
|
139
|
+
className: cx("flex items-center gap-2.5", sticky && cx("sticky top-10 z-(--layer-sticky) bg-(--theme-app-bg)", "py-1.5")),
|
|
139
140
|
children: [visibleGroups.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
140
141
|
className: "flex items-center gap-2.5 shrink-0",
|
|
141
142
|
children: visibleGroups.map((group, i) => /* @__PURE__ */ jsxs(Fragment$1, { children: [i > 0 && /* @__PURE__ */ jsx("div", { className: "w-px h-5 bg-(--theme-border)" }), /* @__PURE__ */ jsx("div", {
|
|
@@ -146,4 +147,4 @@ function ActionToolbar({ groups, right = [], sticky = false }) {
|
|
|
146
147
|
});
|
|
147
148
|
}
|
|
148
149
|
//#endregion
|
|
149
|
-
export { ActionToolbar, ToolbarButton,
|
|
150
|
+
export { ActionToolbar, ToolbarButton, stickyToolbarClasses };
|
package/dist/list/ListPage.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cx } from "../cx.js";
|
|
1
2
|
import { Tooltip } from "../components/Tooltip.js";
|
|
2
3
|
import { useLink, useNavigation } from "../components/Provider.js";
|
|
3
4
|
import { isMenuDivider, isMenuSubmenu } from "../components/MenuEntries.js";
|
|
@@ -5,7 +6,6 @@ import { PageHeader } from "../components/PageHeader.js";
|
|
|
5
6
|
import { Table } from "../components/Table.js";
|
|
6
7
|
import { ListActionsHeader } from "./ListTable.js";
|
|
7
8
|
import { MoreButton, rowContextMenuProps, useRowMenuActive } from "./rowMenu.js";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { Children, cloneElement, createContext, isValidElement, useContext, useMemo } from "react";
|
|
11
11
|
//#region src/list/ListPage.tsx
|
|
@@ -53,7 +53,7 @@ function ListRowActionsProvider({ view, children }) {
|
|
|
53
53
|
function ListPage({ section = "main", shellPadded, embedded = false, breadcrumbs, title, titleAction, actions, toolbar, view, children }) {
|
|
54
54
|
const cancelShellPadding = shellPadded ?? SECTION_SHELL_PADDED[section];
|
|
55
55
|
return /* @__PURE__ */ jsxs("div", {
|
|
56
|
-
className:
|
|
56
|
+
className: cx("flex h-full min-h-0 flex-col", cancelShellPadding && "-m-4"),
|
|
57
57
|
children: [embedded ? toolbar && /* @__PURE__ */ jsx("div", {
|
|
58
58
|
className: "px-4 py-1.5",
|
|
59
59
|
children: toolbar
|
|
@@ -87,14 +87,14 @@ function ListRow({ href, onActivate, items, goTo, openMenu, pinnedActions, selec
|
|
|
87
87
|
if (!isValidElement(child) || !cls && !(i === 0 && stacked.length > 0)) return child;
|
|
88
88
|
const el = child;
|
|
89
89
|
if (i === 0 && stacked.length > 0) return cloneElement(el, {
|
|
90
|
-
className:
|
|
90
|
+
className: cx(el.props.className, cls),
|
|
91
91
|
children: /* @__PURE__ */ jsxs(Fragment, { children: [el.props.children, stacked.map((content, j) => /* @__PURE__ */ jsx("div", {
|
|
92
92
|
className: "mt-1 @[36rem]:hidden",
|
|
93
93
|
"data-stacked": true,
|
|
94
94
|
children: content
|
|
95
95
|
}, j))] })
|
|
96
96
|
});
|
|
97
|
-
return cloneElement(el, { className:
|
|
97
|
+
return cloneElement(el, { className: cx(el.props.className, cls) });
|
|
98
98
|
});
|
|
99
99
|
const handleRowClick = (e) => {
|
|
100
100
|
if (e.target.closest("a,button,input,label")) return;
|
|
@@ -108,7 +108,7 @@ function ListRow({ href, onActivate, items, goTo, openMenu, pinnedActions, selec
|
|
|
108
108
|
const pinnedLabels = new Set((pinnedActions ?? []).map((a) => a.label));
|
|
109
109
|
const hasOverflowItems = items.some((item) => !isMenuDivider(item) && (isMenuSubmenu(item) || !pinnedLabels.has(item.label)));
|
|
110
110
|
return /* @__PURE__ */ jsxs("tr", {
|
|
111
|
-
className:
|
|
111
|
+
className: cx("group", selected ? "bg-blue-500/5" : menuActive ? "theme-hover" : "hover:theme-hover", (href || onActivate || selectionActive) && "cursor-pointer", className),
|
|
112
112
|
onClick: handleRowClick,
|
|
113
113
|
...rowContextMenuProps(openRowMenu, items),
|
|
114
114
|
children: [
|
|
@@ -140,7 +140,7 @@ function PinnedActionButton({ action, visible }) {
|
|
|
140
140
|
const reason = action.disabled ? action.disabledReason : void 0;
|
|
141
141
|
const props = {
|
|
142
142
|
"aria-label": reason ? `${action.label}. ${reason}` : action.label,
|
|
143
|
-
className:
|
|
143
|
+
className: cx("rounded p-1 cursor-pointer text-(--theme-muted-text-color) transition-colors hover:bg-(--theme-muted-panel-bg) hover:text-(--theme-app) aria-disabled:cursor-not-allowed aria-disabled:opacity-20 aria-disabled:hover:bg-transparent aria-disabled:hover:text-(--theme-muted-text-color) [&>svg]:h-4 [&>svg]:w-4", visible ? "opacity-100" : "opacity-0 group-hover:opacity-100 focus-visible:opacity-100")
|
|
144
144
|
};
|
|
145
145
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
146
146
|
content: reason ?? action.label,
|
|
@@ -165,7 +165,7 @@ function PinnedActionButton({ action, visible }) {
|
|
|
165
165
|
function ListColumns({ view }) {
|
|
166
166
|
return /* @__PURE__ */ jsxs(Fragment, { children: [view.visibleColumns.map((col, i) => /* @__PURE__ */ jsx(Table.Header, {
|
|
167
167
|
caps: false,
|
|
168
|
-
className:
|
|
168
|
+
className: cx(col.headerClassName, view.columnClasses[i]),
|
|
169
169
|
style: col.alwaysVisible ? { minWidth: 200 } : void 0,
|
|
170
170
|
children: col.label
|
|
171
171
|
}, col.key)), /* @__PURE__ */ jsx(ListActionsHeader, { view })] });
|
package/dist/list/ListTable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
/** table-auto + horizontal scroll; the name column has a min-width floor so it can't be crushed. */
|
|
3
3
|
export declare const listTableProps: {
|
|
4
4
|
readonly borderless: true;
|
|
@@ -51,7 +51,8 @@ export declare function actionsColumnWidth(count: number): number;
|
|
|
51
51
|
export declare function RowSelectCheckbox({ checked, label, onToggle, }: {
|
|
52
52
|
checked: boolean;
|
|
53
53
|
label: string;
|
|
54
|
-
|
|
54
|
+
/** Gets the press, a click or a key, so a host can extend a range on Shift. */
|
|
55
|
+
onToggle: (event: Event) => void;
|
|
55
56
|
}): import("react").JSX.Element;
|
|
56
57
|
/** Sizes to fit pinned buttons + ⋯; below ~44rem only ⋯ remains. Pass a view's
|
|
57
58
|
* chrome (structurally: showActions + actionsWidth) or actionCount. */
|
package/dist/list/ListTable.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cx } from "../cx.js";
|
|
2
|
+
import { ErrorIcon } from "../icons.js";
|
|
2
3
|
import { positionKeys } from "../components/keys.js";
|
|
3
4
|
import { useLink, useStrings } from "../components/Provider.js";
|
|
5
|
+
import { Checkbox } from "../components/Checkbox.js";
|
|
6
|
+
import { LoadingRegion, Skeleton } from "../components/Skeleton.js";
|
|
4
7
|
import { Table } from "../components/Table.js";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
9
|
//#region src/list/ListTable.tsx
|
|
8
10
|
var NAME_TEXT = "font-medium text-[13px] leading-tight text-(--theme-app) truncate";
|
|
@@ -29,7 +31,7 @@ function NameCell({ icon, name, subtitle, href, badge, title, children }) {
|
|
|
29
31
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
30
32
|
className: "flex min-w-0 items-center gap-1.5",
|
|
31
33
|
children: [/* @__PURE__ */ jsx("div", {
|
|
32
|
-
className:
|
|
34
|
+
className: cx(NAME_TEXT, href && "group-hover/namecell:text-(--theme-link)"),
|
|
33
35
|
title,
|
|
34
36
|
children: name
|
|
35
37
|
}), badge]
|
|
@@ -78,7 +80,7 @@ function ListError({ error, noun = "data" }) {
|
|
|
78
80
|
const message = error && typeof error === "object" && "message" in error ? String(error.message) : void 0;
|
|
79
81
|
return /* @__PURE__ */ jsxs("div", {
|
|
80
82
|
className: "flex flex-col items-center justify-center gap-3 py-20 text-center",
|
|
81
|
-
children: [/* @__PURE__ */ jsx(
|
|
83
|
+
children: [/* @__PURE__ */ jsx(ErrorIcon, { className: "h-10 w-10 text-red-400 opacity-80" }), /* @__PURE__ */ jsxs("div", {
|
|
82
84
|
className: "space-y-1",
|
|
83
85
|
children: [/* @__PURE__ */ jsx("p", {
|
|
84
86
|
className: "text-sm font-medium text-(--theme-app)",
|
|
@@ -91,26 +93,32 @@ function ListError({ error, noun = "data" }) {
|
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
95
|
function ListSkeleton({ rows = 6 }) {
|
|
94
|
-
|
|
95
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
96
|
-
role: "status",
|
|
97
|
-
"aria-label": loading,
|
|
96
|
+
return /* @__PURE__ */ jsx(LoadingRegion, {
|
|
98
97
|
className: "divide-y border-b border-(--theme-border) divide-(--theme-border)",
|
|
99
|
-
children:
|
|
100
|
-
"
|
|
101
|
-
className: "flex items-center gap-3 px-4 py-2.5 animate-pulse",
|
|
98
|
+
children: positionKeys(rows, "skeleton").map((key) => /* @__PURE__ */ jsxs("div", {
|
|
99
|
+
className: "flex items-center gap-3 px-4 py-2.5",
|
|
102
100
|
children: [
|
|
103
|
-
/* @__PURE__ */ jsx(
|
|
101
|
+
/* @__PURE__ */ jsx(Skeleton, {
|
|
102
|
+
width: 20,
|
|
103
|
+
height: 20
|
|
104
|
+
}),
|
|
104
105
|
/* @__PURE__ */ jsxs("div", {
|
|
105
106
|
className: "space-y-1.5",
|
|
106
|
-
children: [/* @__PURE__ */ jsx(
|
|
107
|
+
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
108
|
+
width: 160,
|
|
109
|
+
height: 12
|
|
110
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
111
|
+
width: 96,
|
|
112
|
+
height: 10
|
|
113
|
+
})]
|
|
107
114
|
}),
|
|
108
|
-
/* @__PURE__ */ jsx(
|
|
115
|
+
/* @__PURE__ */ jsx(Skeleton, {
|
|
116
|
+
width: 80,
|
|
117
|
+
height: 12,
|
|
118
|
+
className: "ml-auto"
|
|
119
|
+
})
|
|
109
120
|
]
|
|
110
|
-
}, key))
|
|
111
|
-
className: "sr-only",
|
|
112
|
-
children: loading
|
|
113
|
-
})]
|
|
121
|
+
}, key))
|
|
114
122
|
});
|
|
115
123
|
}
|
|
116
124
|
/** Prevents the name column from being crushed under table-auto layout during horizontal overflow. */
|
|
@@ -128,24 +136,20 @@ function actionsColumnWidth(count) {
|
|
|
128
136
|
/** Shared leading selection checkbox for multi-select rows: stops the row-click
|
|
129
137
|
* and suppresses shift-click text selection. Wrap in <Table.Item> for `leading`. */
|
|
130
138
|
function RowSelectCheckbox({ checked, label, onToggle }) {
|
|
131
|
-
return /* @__PURE__ */ jsx(
|
|
132
|
-
type: "checkbox",
|
|
139
|
+
return /* @__PURE__ */ jsx(Checkbox, {
|
|
133
140
|
"aria-label": label,
|
|
134
141
|
checked,
|
|
135
|
-
|
|
136
|
-
onClick: (e) =>
|
|
137
|
-
e.stopPropagation();
|
|
138
|
-
onToggle(e);
|
|
139
|
-
},
|
|
142
|
+
onCheckedChange: (_, details) => onToggle(details.event),
|
|
143
|
+
onClick: (e) => e.stopPropagation(),
|
|
140
144
|
onMouseDown: (e) => {
|
|
141
145
|
if (e.shiftKey) e.preventDefault();
|
|
142
|
-
}
|
|
143
|
-
className: "h-4 w-4 shrink-0 rounded border-(--theme-border) text-blue-500 focus:ring-blue-500 focus:ring-offset-0 cursor-pointer"
|
|
146
|
+
}
|
|
144
147
|
});
|
|
145
148
|
}
|
|
146
149
|
/** Sizes to fit pinned buttons + ⋯; below ~44rem only ⋯ remains. Pass a view's
|
|
147
150
|
* chrome (structurally: showActions + actionsWidth) or actionCount. */
|
|
148
151
|
function ListActionsHeader({ view, actionCount = 0, className }) {
|
|
152
|
+
const { common } = useStrings();
|
|
149
153
|
if (view && !view.showActions) return null;
|
|
150
154
|
const width = view ? view.actionsWidth : actionsColumnWidth(actionCount);
|
|
151
155
|
return /* @__PURE__ */ jsx(Table.Header, {
|
|
@@ -154,10 +158,10 @@ function ListActionsHeader({ view, actionCount = 0, className }) {
|
|
|
154
158
|
width,
|
|
155
159
|
minWidth: width
|
|
156
160
|
},
|
|
157
|
-
className:
|
|
161
|
+
className: cx("relative py-2 text-right @max-[43rem]:w-[52px]! @max-[43rem]:min-w-[52px]!", className),
|
|
158
162
|
children: /* @__PURE__ */ jsx("span", {
|
|
159
163
|
className: "sr-only",
|
|
160
|
-
children:
|
|
164
|
+
children: common.actions
|
|
161
165
|
})
|
|
162
166
|
});
|
|
163
167
|
}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import type { ListView } from './listView.js';
|
|
3
|
-
/** Shared chrome for the toolbar control buttons (Filter, Display, Search) so
|
|
4
|
-
* they read as a consistent button cluster — matched by ListSearchControl. */
|
|
5
|
-
export declare const listControlButtonClasses = "relative flex h-7 w-7 items-center justify-center rounded-md border border-(--theme-border) text-(--theme-muted-text-color) hover:bg-(--theme-muted-panel-bg) hover:text-(--theme-app) transition-colors";
|
|
6
|
-
/** A header-strip button that opens a panel under it. The panel is a
|
|
7
|
-
* non-modal dialog named by the button, not a menu: it holds switches,
|
|
8
|
-
* pills and text rather than menu items. */
|
|
9
|
-
export declare function AnchoredPopover({ icon, label, active, shortcut, panelClassName: panelClass, children, }: {
|
|
10
|
-
icon: ReactNode;
|
|
11
|
-
label: string;
|
|
12
|
-
active?: boolean;
|
|
13
|
-
/** Single-key shortcut (e.g. 'd') that opens the popover; also shown in the
|
|
14
|
-
* tooltip. */
|
|
15
|
-
shortcut?: string;
|
|
16
|
-
panelClassName?: string;
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
}): import("react").JSX.Element;
|
|
19
2
|
export declare function ListDisplayMenu<T>({ view, label }: {
|
|
20
3
|
view: ListView<T>;
|
|
21
4
|
label?: string;
|