@appcircle/mosaic 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +90 -2
- package/dist/blocks/AISummary/AISummary.d.ts +92 -0
- package/dist/blocks/AISummary/AISummary.d.ts.map +1 -0
- package/dist/blocks/AISummary/index.d.ts +3 -0
- package/dist/blocks/AISummary/index.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts +95 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts +3 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts +52 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/index.d.ts +3 -0
- package/dist/blocks/AppcircleLayout/index.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts +169 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/index.d.ts +3 -0
- package/dist/blocks/BuildBranchList/index.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts +175 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts +3 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts +64 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts +3 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts +81 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts +3 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts +82 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/index.d.ts +3 -0
- package/dist/blocks/DashboardSummary/index.d.ts.map +1 -0
- package/dist/blocks/Directory/Directory.d.ts +53 -0
- package/dist/blocks/Directory/Directory.d.ts.map +1 -0
- package/dist/blocks/Directory/index.d.ts +3 -0
- package/dist/blocks/Directory/index.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts +283 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/index.d.ts +3 -0
- package/dist/blocks/ManagedListPanel/index.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts +98 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/index.d.ts +3 -0
- package/dist/blocks/NotificationCenter/index.d.ts.map +1 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts +82 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts.map +1 -0
- package/dist/blocks/Onboarding/index.d.ts +3 -0
- package/dist/blocks/Onboarding/index.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts +83 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts +3 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts.map +1 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts +69 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts.map +1 -0
- package/dist/blocks/PlanCard/index.d.ts +3 -0
- package/dist/blocks/PlanCard/index.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts +211 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts +36 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/index.d.ts +5 -0
- package/dist/blocks/ProfileCard/index.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts +255 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/index.d.ts +3 -0
- package/dist/blocks/ReportFilterBar/index.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts +57 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/index.d.ts +3 -0
- package/dist/blocks/RestrictedArea/index.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts +118 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/index.d.ts +3 -0
- package/dist/blocks/SearchLayout/index.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts +46 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/index.d.ts +3 -0
- package/dist/blocks/UpgradeDialog/index.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts +29 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/index.d.ts +3 -0
- package/dist/blocks/VersionIdentity/index.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +87 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +37 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +55 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +191 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/CopyButton.d.ts +43 -0
- package/dist/components/Button/CopyButton.d.ts.map +1 -0
- package/dist/components/Button/IconButton.d.ts +70 -0
- package/dist/components/Button/IconButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +7 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +99 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +85 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/CardGrid/CardGrid.d.ts +28 -0
- package/dist/components/CardGrid/CardGrid.d.ts.map +1 -0
- package/dist/components/CardGrid/index.d.ts +3 -0
- package/dist/components/CardGrid/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +64 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +34 -0
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/dist/components/Collapsible/index.d.ts +3 -0
- package/dist/components/Collapsible/index.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +126 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/MultiSelect.d.ts +81 -0
- package/dist/components/Combobox/MultiSelect.d.ts.map +1 -0
- package/dist/components/Combobox/index.d.ts +5 -0
- package/dist/components/Combobox/index.d.ts.map +1 -0
- package/dist/components/Combobox/keyboard.d.ts +24 -0
- package/dist/components/Combobox/keyboard.d.ts.map +1 -0
- package/dist/components/Command/Command.d.ts +160 -0
- package/dist/components/Command/Command.d.ts.map +1 -0
- package/dist/components/Command/CommandDialog.d.ts +25 -0
- package/dist/components/Command/CommandDialog.d.ts.map +1 -0
- package/dist/components/Command/index.d.ts +5 -0
- package/dist/components/Command/index.d.ts.map +1 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts +114 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts.map +1 -0
- package/dist/components/CommandFilter/FilterChip.d.ts +66 -0
- package/dist/components/CommandFilter/FilterChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/ValueChip.d.ts +31 -0
- package/dist/components/CommandFilter/ValueChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/index.d.ts +7 -0
- package/dist/components/CommandFilter/index.d.ts.map +1 -0
- package/dist/components/CommandSort/CommandSort.d.ts +66 -0
- package/dist/components/CommandSort/CommandSort.d.ts.map +1 -0
- package/dist/components/CommandSort/index.d.ts +3 -0
- package/dist/components/CommandSort/index.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +326 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/components/DataTable/RowActions.d.ts +30 -0
- package/dist/components/DataTable/RowActions.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +5 -0
- package/dist/components/DataTable/index.d.ts.map +1 -0
- package/dist/components/Dialog/AlertDialog.d.ts +117 -0
- package/dist/components/Dialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +107 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/index.d.ts +5 -0
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/DonutChart/DonutChart.d.ts +51 -0
- package/dist/components/DonutChart/DonutChart.d.ts.map +1 -0
- package/dist/components/DonutChart/index.d.ts +3 -0
- package/dist/components/DonutChart/index.d.ts.map +1 -0
- package/dist/components/Dot/Dot.d.ts +37 -0
- package/dist/components/Dot/Dot.d.ts.map +1 -0
- package/dist/components/Dot/index.d.ts +3 -0
- package/dist/components/Dot/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +119 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +3 -0
- package/dist/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/components/Empty/Empty.d.ts +76 -0
- package/dist/components/Empty/Empty.d.ts.map +1 -0
- package/dist/components/Empty/index.d.ts +3 -0
- package/dist/components/Empty/index.d.ts.map +1 -0
- package/dist/components/Field/Field.d.ts +143 -0
- package/dist/components/Field/Field.d.ts.map +1 -0
- package/dist/components/Field/index.d.ts +3 -0
- package/dist/components/Field/index.d.ts.map +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +102 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload/index.d.ts +3 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -0
- package/dist/components/Gallery/Gallery.d.ts +97 -0
- package/dist/components/Gallery/Gallery.d.ts.map +1 -0
- package/dist/components/Gallery/index.d.ts +3 -0
- package/dist/components/Gallery/index.d.ts.map +1 -0
- package/dist/components/HoverCard/HoverCard.d.ts +40 -0
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/components/HoverCard/index.d.ts +3 -0
- package/dist/components/HoverCard/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +70 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/InfoBox/InfoBox.d.ts +58 -0
- package/dist/components/InfoBox/InfoBox.d.ts.map +1 -0
- package/dist/components/InfoBox/index.d.ts +3 -0
- package/dist/components/InfoBox/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +203 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Item/Item.d.ts +125 -0
- package/dist/components/Item/Item.d.ts.map +1 -0
- package/dist/components/Item/index.d.ts +3 -0
- package/dist/components/Item/index.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +50 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/ListField/ListField.d.ts +80 -0
- package/dist/components/ListField/ListField.d.ts.map +1 -0
- package/dist/components/ListField/index.d.ts +3 -0
- package/dist/components/ListField/index.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +58 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +3 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +60 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +64 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Progress/Progress.d.ts +43 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +3 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts +94 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts.map +1 -0
- package/dist/components/ProgressBand/index.d.ts +3 -0
- package/dist/components/ProgressBand/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +66 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +36 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +44 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Separator/Separator.d.ts +28 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/index.d.ts +3 -0
- package/dist/components/Separator/index.d.ts.map +1 -0
- package/dist/components/Sheet/Sheet.d.ts +103 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +3 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +329 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar/index.d.ts +3 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts +126 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts.map +1 -0
- package/dist/components/SimpleListItem/index.d.ts +3 -0
- package/dist/components/SimpleListItem/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +42 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +21 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +3 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Stack/Stack.d.ts +51 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +3 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Stat/Stat.d.ts +82 -0
- package/dist/components/Stat/Stat.d.ts.map +1 -0
- package/dist/components/Stat/index.d.ts +3 -0
- package/dist/components/Stat/index.d.ts.map +1 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts +67 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts.map +1 -0
- package/dist/components/StatusHistory/index.d.ts +3 -0
- package/dist/components/StatusHistory/index.d.ts.map +1 -0
- package/dist/components/StepCard/StepCard.d.ts +80 -0
- package/dist/components/StepCard/StepCard.d.ts.map +1 -0
- package/dist/components/StepCard/index.d.ts +3 -0
- package/dist/components/StepCard/index.d.ts.map +1 -0
- package/dist/components/StepList/StepList.d.ts +68 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/index.d.ts +3 -0
- package/dist/components/StepList/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +26 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts +41 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts.map +1 -0
- package/dist/components/SwitchPanel/index.d.ts +3 -0
- package/dist/components/SwitchPanel/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +117 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/TagsInput/TagsInput.d.ts +76 -0
- package/dist/components/TagsInput/TagsInput.d.ts.map +1 -0
- package/dist/components/TagsInput/index.d.ts +3 -0
- package/dist/components/TagsInput/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +89 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Toaster/Toaster.d.ts +99 -0
- package/dist/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster/index.d.ts +3 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +91 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/dist/components/ToggleGroup/index.d.ts +3 -0
- package/dist/components/ToggleGroup/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +56 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/icons/index.d.ts +257 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15988 -0
- package/dist/internal/ClippedText.d.ts +40 -0
- package/dist/internal/ClippedText.d.ts.map +1 -0
- package/dist/internal/DisabledReason.d.ts +50 -0
- package/dist/internal/DisabledReason.d.ts.map +1 -0
- package/dist/internal/InlineSearch.d.ts +27 -0
- package/dist/internal/InlineSearch.d.ts.map +1 -0
- package/dist/internal/children.d.ts +22 -0
- package/dist/internal/children.d.ts.map +1 -0
- package/dist/internal/mergeRefs.d.ts +32 -0
- package/dist/internal/mergeRefs.d.ts.map +1 -0
- package/dist/internal/modality.d.ts +18 -0
- package/dist/internal/modality.d.ts.map +1 -0
- package/dist/internal/useDismissModality.d.ts +23 -0
- package/dist/internal/useDismissModality.d.ts.map +1 -0
- package/dist/internal/useHoverOpen.d.ts +75 -0
- package/dist/internal/useHoverOpen.d.ts.map +1 -0
- package/dist/internal/useModalDialog.d.ts +40 -0
- package/dist/internal/useModalDialog.d.ts.map +1 -0
- package/dist/internal/usePopover.d.ts +43 -0
- package/dist/internal/usePopover.d.ts.map +1 -0
- package/dist/mosaic.css +2 -0
- package/package.json +81 -4
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type ManagedListItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
/**
|
|
6
|
+
* This row is being named rather than read — a row that has just been created and has no
|
|
7
|
+
* name yet, which is how all three of the product's lists add one.
|
|
8
|
+
*
|
|
9
|
+
* Driven from outside rather than held here, because the row that needs it is created by the
|
|
10
|
+
* caller: pressing New prepends an item with a suggested name and this flag set, and the
|
|
11
|
+
* request is only made once the name is committed.
|
|
12
|
+
*/
|
|
13
|
+
renaming?: boolean;
|
|
14
|
+
/** Trailing and quiet — a count, a timestamp. Not interactive. */
|
|
15
|
+
meta?: ReactNode;
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Which of the list's actions cannot be used **on this row**, by id.
|
|
19
|
+
*
|
|
20
|
+
* This is the other half of `ManagedListAction.disabled`, which says an action is unavailable
|
|
21
|
+
* across the whole list — a condition, not a missing scope, which hides the action instead.
|
|
22
|
+
* Some reasons are the row's own: a variable group shared from a parent organization cannot be
|
|
23
|
+
* renamed or deleted by the organization it was shared *to*, and one holding nothing has
|
|
24
|
+
* nothing to share.
|
|
25
|
+
*
|
|
26
|
+
* Still `disabled` rather than absent, for the reason the action's own flag is: the menu holds
|
|
27
|
+
* the same items on every row, so it is read once, and the reason a particular one is greyed out
|
|
28
|
+
* is where the reader is already looking. A menu whose *contents* changed per row would be one
|
|
29
|
+
* people have to re-read every time.
|
|
30
|
+
*/
|
|
31
|
+
disabledActions?: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Why an action cannot be used **on this row**, by action id - the sentence `disabledActions`
|
|
34
|
+
* leaves unsaid. An id with a reason here is disabled whether or not it is also listed there,
|
|
35
|
+
* and the item says the reason (see `DropdownMenu.Item`'s `disabledReason`). Takes precedence
|
|
36
|
+
* over the action's own `disabledReason`: the row's reason is the more particular one.
|
|
37
|
+
*/
|
|
38
|
+
disabledReasons?: Record<string, ReactNode>;
|
|
39
|
+
/**
|
|
40
|
+
* Why the row cannot be opened. Given, the row stays a control - reachable, `aria-disabled`,
|
|
41
|
+
* saying the sentence (see `Item`'s `disabledReason`) - and `onSelect` is not called for it.
|
|
42
|
+
* Ignored without `onSelect`, where no row is a control to refuse. A row that looked pressable
|
|
43
|
+
* and silently did nothing is what this replaces.
|
|
44
|
+
*/
|
|
45
|
+
openDisabledReason?: ReactNode;
|
|
46
|
+
};
|
|
47
|
+
export type ManagedListAction = {
|
|
48
|
+
id: string;
|
|
49
|
+
label: string;
|
|
50
|
+
/**
|
|
51
|
+
* `rename` is handled by the panel: it puts the row into its rename state rather than
|
|
52
|
+
* reporting the press. Any other id is reported through `onAction`.
|
|
53
|
+
*/
|
|
54
|
+
tone?: "default" | "danger";
|
|
55
|
+
/**
|
|
56
|
+
* Drawn and disabled rather than left out. Which actions exist is a property of the *list*,
|
|
57
|
+
* and a menu whose contents change per row is one people have to re-read; the reason a
|
|
58
|
+
* particular one cannot be used belongs on the item, not in its absence.
|
|
59
|
+
*
|
|
60
|
+
* **Not for a missing scope** since 2026-10-06: an action the viewer has no scope for is
|
|
61
|
+
* hidden, so the caller leaves it out of `actions` - and with none left, the row menus and the
|
|
62
|
+
* Edit toggle go too. This flag is for a *condition* across the list.
|
|
63
|
+
*/
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Why the action is unavailable across the whole list - a condition, never a missing scope
|
|
67
|
+
* (leave the action out of `actions` for that). Giving one disables it and says the sentence
|
|
68
|
+
* on every row.
|
|
69
|
+
*/
|
|
70
|
+
disabledReason?: ReactNode;
|
|
71
|
+
};
|
|
72
|
+
export type ManagedListCreateOption = {
|
|
73
|
+
id: string;
|
|
74
|
+
label: string;
|
|
75
|
+
};
|
|
76
|
+
export type ManagedListLabels = {
|
|
77
|
+
/** The create button. */
|
|
78
|
+
create: string;
|
|
79
|
+
/** The button that turns the row menus on. */
|
|
80
|
+
manage: string;
|
|
81
|
+
/** The same button once they are on. */
|
|
82
|
+
done: string;
|
|
83
|
+
/** Names each row's menu, given the row's name. */
|
|
84
|
+
rowMenu: (name: string) => string;
|
|
85
|
+
/** Names the field while a row is being renamed. */
|
|
86
|
+
rename: string;
|
|
87
|
+
/** Announced while the list is being re-read. */
|
|
88
|
+
loading: string;
|
|
89
|
+
/** The button at the end of a paged list. */
|
|
90
|
+
loadMore: string;
|
|
91
|
+
};
|
|
92
|
+
/** The action id the panel acts on itself rather than reporting. */
|
|
93
|
+
export declare const MANAGED_LIST_RENAME = "rename";
|
|
94
|
+
export type ManagedListPanelProps = {
|
|
95
|
+
items: ManagedListItem[];
|
|
96
|
+
/**
|
|
97
|
+
* A row was opened. Not called while the list is in manage mode — see `rowActions`.
|
|
98
|
+
*
|
|
99
|
+
* Leave it out and rows are not pressable - e.g. the viewer cannot open them: each row is plain
|
|
100
|
+
* text, with no pointer, no hover, no tab stop, no `button` role and no open mark (2026-10-06).
|
|
101
|
+
* A row that looks pressable and opens nothing is a control that does nothing.
|
|
102
|
+
*/
|
|
103
|
+
onSelect?: (id: string) => void;
|
|
104
|
+
/** The row whose contents are showing beside or after this panel. */
|
|
105
|
+
selectedId?: string;
|
|
106
|
+
/**
|
|
107
|
+
* What the create button offers. One option presses straight through; several open a menu.
|
|
108
|
+
*
|
|
109
|
+
* Omit for a list whose New button is somewhere else — the publish module's is in the page
|
|
110
|
+
* header above this panel, which is the third call site and the reason this is optional
|
|
111
|
+
* rather than assumed.
|
|
112
|
+
*/
|
|
113
|
+
create?: {
|
|
114
|
+
options: ManagedListCreateOption[];
|
|
115
|
+
onSelect: (optionId: string) => void;
|
|
116
|
+
/**
|
|
117
|
+
* `false` draws no create control at all, neither the button nor its menu: an action the viewer
|
|
118
|
+
* has no scope for is hidden, not disabled (product call, 2026-10-06). It was drawn disabled
|
|
119
|
+
* until then, on the reading that the reason lives on the button - but a greyed New says
|
|
120
|
+
* nothing about the reason, it only invites a second press.
|
|
121
|
+
*/
|
|
122
|
+
can?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Why New cannot be pressed **right now** - a condition, never a missing scope (that is
|
|
125
|
+
* `can: false`, which hides it). Given, the button is drawn disabled and says the sentence -
|
|
126
|
+
* see `Button`'s `disabledReason`.
|
|
127
|
+
*/
|
|
128
|
+
disabledReason?: ReactNode;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* When a row's menu is reachable, and the two answers are genuinely different lists.
|
|
132
|
+
*
|
|
133
|
+
* `managed` — the default — puts the menus behind the Edit/Done toggle. That suits a list which
|
|
134
|
+
* is read far more often than it is edited: a configuration or a workflow is opened dozens of
|
|
135
|
+
* times for every rename, and a `⋯` on every row all the time argues with the chevron that says
|
|
136
|
+
* "press me and this opens".
|
|
137
|
+
*
|
|
138
|
+
* `always` draws a menu on every row and keeps the row's own press. No mode, no toggle, and —
|
|
139
|
+
* this is the part `managed` cannot do — the row still opens while its menu is there. Reach for
|
|
140
|
+
* it where the row's actions are used about as often as the row is opened, which is what the
|
|
141
|
+
* product's variable groups are: the group's name, its sharing and its copy are all changed from
|
|
142
|
+
* the list, and it was asked for by name after `managed` put three button groups in one 23rem
|
|
143
|
+
* header.
|
|
144
|
+
*/
|
|
145
|
+
rowActions?: "managed" | "always";
|
|
146
|
+
/**
|
|
147
|
+
* Whether the row menus are showing. Controlled, because two of the call sites report it
|
|
148
|
+
* outward — the surrounding panel dims other affordances while the list is being managed.
|
|
149
|
+
*
|
|
150
|
+
* Omit `onManagingChange` for a list that is never managed and the button is not drawn. Ignored
|
|
151
|
+
* under `rowActions="always"`, which has no mode to be in.
|
|
152
|
+
*
|
|
153
|
+
* The button is not drawn either when `actions` is empty: what the mode turns on is the row
|
|
154
|
+
* menus, and a viewer whose scopes leave none would be toggled into a mode with nothing in it.
|
|
155
|
+
*/
|
|
156
|
+
managing?: boolean;
|
|
157
|
+
onManagingChange?: (managing: boolean) => void;
|
|
158
|
+
/** The row menu. Empty or omitted draws no menu at all, in either `rowActions` mode. */
|
|
159
|
+
actions?: ManagedListAction[];
|
|
160
|
+
/** Any action other than `rename`. */
|
|
161
|
+
onAction?: (actionId: string, id: string) => void;
|
|
162
|
+
/**
|
|
163
|
+
* A name was committed. The panel leaves its rename state as soon as this is called — the
|
|
164
|
+
* request's outcome is the caller's to show, through `loading` and through the list itself.
|
|
165
|
+
*/
|
|
166
|
+
onRename?: (id: string, name: string) => void;
|
|
167
|
+
/**
|
|
168
|
+
* The rename was abandoned: Escape, or a blur with the name unchanged. A row that was
|
|
169
|
+
* created only to be named is removed by the caller here.
|
|
170
|
+
*
|
|
171
|
+
* A row marked `renaming` is never abandoned for being unchanged — it has no name on the server
|
|
172
|
+
* to be unchanged from, so its commit goes through. See `commit`.
|
|
173
|
+
*/
|
|
174
|
+
onRenameCancel?: (id: string) => void;
|
|
175
|
+
/**
|
|
176
|
+
* Why the typed name cannot be used, or `null`. Called on every keystroke; the row cannot be
|
|
177
|
+
* committed while it returns a message.
|
|
178
|
+
*
|
|
179
|
+
* The message is not *shown* on every keystroke, though: it appears once the reader has tried to
|
|
180
|
+
* commit the name, and clears itself as soon as the name is usable. A new row opens empty, and
|
|
181
|
+
* empty is invalid — see `attempted` in `Row`.
|
|
182
|
+
*/
|
|
183
|
+
validateName?: (name: string, item: ManagedListItem) => string | null;
|
|
184
|
+
/**
|
|
185
|
+
* The mark at the end of every row that can be opened — a chevron, in all three of the lists
|
|
186
|
+
* this replaces.
|
|
187
|
+
*
|
|
188
|
+
* Taken as a prop because the library ships no icons of its own inside a component, and it is
|
|
189
|
+
* worth having rather than leaving to `item.meta`: it is one decision for the whole list, it is
|
|
190
|
+
* *not* drawn while the list is in manage mode — there the row's press belongs to the menu beside
|
|
191
|
+
* it, so a mark saying "this opens" would be lying — and it is what the block's motion is
|
|
192
|
+
* attached to. Under `rowActions="always"` it stays, because there the press still opens the row.
|
|
193
|
+
* Omit for a list whose rows do not open.
|
|
194
|
+
*/
|
|
195
|
+
openIcon?: ReactNode;
|
|
196
|
+
/**
|
|
197
|
+
* The glyph on a row's menu button.
|
|
198
|
+
*
|
|
199
|
+
* A prop for the reason every other glyph here is one — the library ships no icons — and it
|
|
200
|
+
* matters more than it looks: the fallback is the *character* `⋯`, which is a piece of text
|
|
201
|
+
* drawn in the reader's font, so it does not match the dotted glyph the product's own menus use
|
|
202
|
+
* a few pixels away in the same page. Pass `<Icon icon={icons.dots} />` and the three menus on a
|
|
203
|
+
* page are one mark.
|
|
204
|
+
*/
|
|
205
|
+
menuIcon?: ReactNode;
|
|
206
|
+
/** Sentence above the list saying what these things are. */
|
|
207
|
+
description?: ReactNode;
|
|
208
|
+
/**
|
|
209
|
+
* How far the rows are inset — **which pane the panel is standing in, not what it contains.**
|
|
210
|
+
*
|
|
211
|
+
* `"sheet"` (the default) is a sheet's own gutter: the rows' fills share their edges with the
|
|
212
|
+
* sheet's header and with the note, if there is one. `"pane"` is for a panel that *is* the
|
|
213
|
+
* content of a narrow surface with a gutter of its own — the variable groups aside inside a
|
|
214
|
+
* `Card` — where a second sheet-sized inset leaves the names floating in the middle of the
|
|
215
|
+
* column.
|
|
216
|
+
*
|
|
217
|
+
* **This used to be inferred from `description == null`**, and the inference broke the moment the
|
|
218
|
+
* product removed the sentence above two lists that are still in sheets (2026-09-01). Dropping a
|
|
219
|
+
* sentence is a copy decision; it silently pulled the rows 20px out towards both edges. Two
|
|
220
|
+
* unrelated things under one flag, so now the pane is said out loud.
|
|
221
|
+
*/
|
|
222
|
+
inset?: "sheet" | "pane";
|
|
223
|
+
/**
|
|
224
|
+
* The list is being re-read. Shown on the divider above the rows and taking no height, not as a
|
|
225
|
+
* veil over the rows — the names being compared stay readable while one of them is renamed.
|
|
226
|
+
*/
|
|
227
|
+
loading?: boolean;
|
|
228
|
+
/** Drawn in place of the rows when there are none. An `Empty`, usually. */
|
|
229
|
+
empty?: ReactNode;
|
|
230
|
+
/**
|
|
231
|
+
* The server has another page. Draws a button at the end of the list.
|
|
232
|
+
*
|
|
233
|
+
* A button rather than a scroll listener, the same call `BuildBranchList` makes: on a list of a
|
|
234
|
+
* thousand groups, loading on scroll takes the scrollbar away from anyone trying to reach the
|
|
235
|
+
* end of what is already there. The list this arrived for pages a hundred at a time and its
|
|
236
|
+
* original loaded the next page when a sentinel came into view — which also meant the next page
|
|
237
|
+
* arrived while a row three screens up was being renamed.
|
|
238
|
+
*/
|
|
239
|
+
hasMore?: boolean;
|
|
240
|
+
/** That page is on its way. The button says so and cannot be pressed twice. */
|
|
241
|
+
loadingMore?: boolean;
|
|
242
|
+
onLoadMore?: () => void;
|
|
243
|
+
labels?: Partial<ManagedListLabels>;
|
|
244
|
+
/**
|
|
245
|
+
* How the rows are drawn.
|
|
246
|
+
*
|
|
247
|
+
* `list` — the default — is `SimpleListItem`'s recipe: 36px rows divided by rhythm, the rounded
|
|
248
|
+
* hover fill the only paint. Right for a pane beside content, where the rows are one column of a
|
|
249
|
+
* larger page.
|
|
250
|
+
*
|
|
251
|
+
* `cards` draws each row as an outlined card — the `Item variant="outline"` a stack sheet's
|
|
252
|
+
* landing page uses (2026-09-06). For a sheet whose whole body is this list: a handful of named
|
|
253
|
+
* things to open, and nothing else on the panel to align with. Everything else — the menu,
|
|
254
|
+
* renaming, New, the skeleton — is the same.
|
|
255
|
+
*/
|
|
256
|
+
variant?: "list" | "cards";
|
|
257
|
+
className?: string;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* A list of named things that can be created, renamed, cloned and deleted, and opened to
|
|
261
|
+
* reveal what each one holds.
|
|
262
|
+
*
|
|
263
|
+
* **Three copies of this exist in the product and they are the same file.**
|
|
264
|
+
* `BuildConfigurationList` (491 lines), `WorkflowList` (325) and the publish module's `FlowList`
|
|
265
|
+
* (110) each wrap a shared row component in their own header, their own New menu, their own
|
|
266
|
+
* Edit/Done toggle and their own `createCopyName` call — and between the first two, roughly 120
|
|
267
|
+
* lines are identical including the inline `style` objects. That is the bar for a block: the same
|
|
268
|
+
* composition assembled by hand three times.
|
|
269
|
+
*
|
|
270
|
+
* **Manage mode is the shape worth keeping.** The rows do two different things — pressing one opens
|
|
271
|
+
* it, and pressing its menu acts on it — so the product puts the second behind an Edit/Done toggle
|
|
272
|
+
* rather than showing a `⋯` on every row all the time. That is a real decision and not an accident:
|
|
273
|
+
* a list of six configurations is read far more often than it is edited, and the chevron on every
|
|
274
|
+
* row says "open me" without a menu beside it arguing.
|
|
275
|
+
*
|
|
276
|
+
* What is *not* carried over is the plumbing. The originals reach for a data grid to draw a list of
|
|
277
|
+
* names — `BasicDataGridWithProgress` with `withSelection={false}` and `singleSelection`, a row
|
|
278
|
+
* template, and a `shouldFocusbySelector` callback returning a CSS class to scroll to. Here the rows
|
|
279
|
+
* are `Item`s in a `Stack`, so a row is a real link-shaped control with its name as its accessible
|
|
280
|
+
* name, and the newly created one is scrolled to by ref.
|
|
281
|
+
*/
|
|
282
|
+
export declare function ManagedListPanel({ items, onSelect, selectedId, create, managing, onManagingChange, rowActions, actions, onAction, onRename, onRenameCancel, validateName, openIcon, menuIcon, description, inset, loading, empty, hasMore, loadingMore, onLoadMore, labels, variant, className }: ManagedListPanelProps): import("react").JSX.Element;
|
|
283
|
+
//# sourceMappingURL=ManagedListPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManagedListPanel.d.ts","sourceRoot":"","sources":["../../../src/blocks/ManagedListPanel/ManagedListPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAatD,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;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S,CAAC;IAExB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,MAAM,EACN,QAAgB,EAChB,gBAAgB,EAChB,UAAsB,EACtB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAe,EACf,OAAe,EACf,KAAK,EACL,OAAe,EACf,WAAmB,EACnB,UAAU,EACV,MAAM,EACN,OAAgB,EAChB,SAAS,EACV,EAAE,qBAAqB,+BA6NvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/ManagedListPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
/** How a notification reads at a glance. The dot's colour, and its name in the tree. */
|
|
3
|
+
export type NotificationTone = "success" | "warning" | "danger" | "info";
|
|
4
|
+
export type NotificationAction = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
/** Sets it apart as destructive — the delete entry. */
|
|
8
|
+
tone?: "danger";
|
|
9
|
+
onSelect: () => void;
|
|
10
|
+
};
|
|
11
|
+
export type NotificationItem = {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
message?: string;
|
|
15
|
+
tone?: NotificationTone;
|
|
16
|
+
/**
|
|
17
|
+
* When it arrived, already in words. The product formats with moment; there is no date
|
|
18
|
+
* library in here, and a `Date` would only move the same decision one level down.
|
|
19
|
+
*/
|
|
20
|
+
at?: string;
|
|
21
|
+
read?: boolean;
|
|
22
|
+
/** What the row's `⋯` menu holds. No menu is rendered when this is empty. */
|
|
23
|
+
actions?: NotificationAction[];
|
|
24
|
+
};
|
|
25
|
+
/** Notifications under a heading — a day, usually. */
|
|
26
|
+
export type NotificationGroup = {
|
|
27
|
+
id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
items: NotificationItem[];
|
|
30
|
+
};
|
|
31
|
+
export type NotificationCenterLabels = {
|
|
32
|
+
/** The panel's heading and its accessible name. */
|
|
33
|
+
title?: string;
|
|
34
|
+
clearAll?: string;
|
|
35
|
+
/** Why "Clear all" is disabled on an empty panel - its `disabledReason`. */
|
|
36
|
+
nothingToClear?: string;
|
|
37
|
+
empty?: string;
|
|
38
|
+
loading?: string;
|
|
39
|
+
loadMore?: string;
|
|
40
|
+
unread?: string;
|
|
41
|
+
/** Names a row's `⋯` menu. Receives the notification's title. */
|
|
42
|
+
actions?: (title: string) => string;
|
|
43
|
+
/** Names the tone on the row's dot, so the colour is not the only carrier of it. */
|
|
44
|
+
tones?: Partial<Record<NotificationTone, string>>;
|
|
45
|
+
};
|
|
46
|
+
export type NotificationCenterProps = {
|
|
47
|
+
/** Grouped, in the order they should be drawn. */
|
|
48
|
+
groups: NotificationGroup[];
|
|
49
|
+
/** The control that opens the panel. */
|
|
50
|
+
trigger: ReactElement;
|
|
51
|
+
/**
|
|
52
|
+
* Controlled, because the product opens this from elsewhere: a toast anywhere in the
|
|
53
|
+
* application opens the centre, and the trigger is in the sidebar.
|
|
54
|
+
*/
|
|
55
|
+
open?: boolean;
|
|
56
|
+
onOpenChange?: (open: boolean) => void;
|
|
57
|
+
onClearAll?: () => void;
|
|
58
|
+
onLoadMore?: () => void;
|
|
59
|
+
loading?: boolean;
|
|
60
|
+
labels?: NotificationCenterLabels;
|
|
61
|
+
/**
|
|
62
|
+
* The control that narrows the list — a `CommandFilter` in the product (2026-08-29).
|
|
63
|
+
*
|
|
64
|
+
* A named slot rather than `children`, which is what this was while it stood empty: the panel
|
|
65
|
+
* places it, so it lands on its own row under the title, inside the header's sticky band, at the
|
|
66
|
+
* panel's own gutter. Left to the caller, a control dropped in here sat flush against the
|
|
67
|
+
* panel's edge and against the title above it — a filter is part of this panel's chrome, and
|
|
68
|
+
* where the chrome sits is the panel's decision.
|
|
69
|
+
*/
|
|
70
|
+
filter?: ReactNode;
|
|
71
|
+
className?: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* The notification centre: a panel of what happened, newest first, each row with its own
|
|
75
|
+
* menu.
|
|
76
|
+
*
|
|
77
|
+
* What it replaces in the product is a plain `<div className="NotificationsListWindow">` with no
|
|
78
|
+
* role, no name, no Escape and nothing that moves focus — opening it left the keyboard in the
|
|
79
|
+
* status bar, so "Clear All" was reachable only by tabbing past everything after the bell.
|
|
80
|
+
* `Popover` settles all of that: a named `dialog`, focus in on open and back to the trigger on
|
|
81
|
+
* close.
|
|
82
|
+
*
|
|
83
|
+
* **Each row's actions are one `⋯` menu.** The original put up to four icon buttons on every
|
|
84
|
+
* row and hid them until it was hovered: four tab stops per notification, undiscoverable
|
|
85
|
+
* without pointing at it, and hidden for good on a touch screen. One menu is one tab stop,
|
|
86
|
+
* always visible, and needs no hover rules at all.
|
|
87
|
+
*
|
|
88
|
+
* **The type is on the dot, not printed beside it.** Printed as text it took a third of the
|
|
89
|
+
* row's width away from the message; as the dot's accessible name it takes none and is still
|
|
90
|
+
* in the tree, which colour alone would not be (WCAG 1.4.1). Same for unread, which the
|
|
91
|
+
* original marked with a coloured pip and nothing else.
|
|
92
|
+
*
|
|
93
|
+
* The header stays put while the list moves under it, rule included. The original's header
|
|
94
|
+
* was outside the scrolled area, and on a long list "Clear all" scrolling out of reach would
|
|
95
|
+
* be a step backwards from it.
|
|
96
|
+
*/
|
|
97
|
+
export declare function NotificationCenter({ groups, trigger, open, onOpenChange, onClearAll, onLoadMore, loading, labels, filter, className }: NotificationCenterProps): import("react").JSX.Element;
|
|
98
|
+
//# sourceMappingURL=NotificationCenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/blocks/NotificationCenter/NotificationCenter.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAerD,wFAAwF;AACxF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEzE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAA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AC,EAAE,MAAM,CAAC;CACpB,CAAC;AAiBF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,OAAe,EACf,MAAM,EACN,MAAM,EACN,SAAS,EACV,EAAE,uBAAuB,+BAyJzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/NotificationCenter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DialogSize } from "../../components/Dialog";
|
|
3
|
+
export type OnboardingLabels = {
|
|
4
|
+
/**
|
|
5
|
+
* How the progress is announced to assistive technology - it is not drawn on screen.
|
|
6
|
+
* Default: "Step 1 of 3".
|
|
7
|
+
*/
|
|
8
|
+
progress?: (step: number, totalSteps: number) => string;
|
|
9
|
+
};
|
|
10
|
+
export type OnboardingProps = {
|
|
11
|
+
open: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Called for every dismissal route the dialog allows. A flow that must be answered passes
|
|
14
|
+
* `dismissible={false}`, and then this only fires when the caller decides it should.
|
|
15
|
+
*/
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
/** Set false for a flow that has to be finished rather than closed. */
|
|
18
|
+
dismissible?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The mark in the header, and **the fixed point of the flow**: it is drawn in the same place
|
|
21
|
+
* on every screen, so pressing Next moves the question under it and nothing else.
|
|
22
|
+
*
|
|
23
|
+
* Defaults to Appcircle's own glyph, which is the one case where a block naming the product
|
|
24
|
+
* is the point: this is the first screen of the product, and the mark is what says so. Pass
|
|
25
|
+
* your own node to replace it. `null` removes it, which costs the flow its anchor - a screen
|
|
26
|
+
* without it is a screen where everything below shifts up.
|
|
27
|
+
*/
|
|
28
|
+
media?: ReactNode;
|
|
29
|
+
title: ReactNode;
|
|
30
|
+
/** Sits under the title, before the controls. */
|
|
31
|
+
description?: ReactNode;
|
|
32
|
+
/** The screen's own controls: a radio group, a set of checkboxes, an input. */
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Where this screen sits in the flow. Both are needed for the bar to appear, so a screen
|
|
36
|
+
* outside the count - a welcome, a closing thank-you - simply omits them.
|
|
37
|
+
*
|
|
38
|
+
* Counted from 1, and `step` may equal `totalSteps`: the bar is full on the last screen,
|
|
39
|
+
* which is the honest reading of "you are on the last one".
|
|
40
|
+
*/
|
|
41
|
+
step?: number;
|
|
42
|
+
totalSteps?: number;
|
|
43
|
+
/** The header's back affordance. Omitted on the first screen, which has nowhere to go back to. */
|
|
44
|
+
onBack?: () => void;
|
|
45
|
+
/** The footer's buttons, in the order they should read. */
|
|
46
|
+
actions?: ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* `sm` by default, which is the width the flow already had: a first-run dialog is read
|
|
49
|
+
* once, in a column of short questions, and the wider box only spreads them out.
|
|
50
|
+
*/
|
|
51
|
+
size?: DialogSize;
|
|
52
|
+
labels?: OnboardingLabels;
|
|
53
|
+
className?: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* One screen of a first-run flow: a mark, a question, its controls, and the way forward.
|
|
57
|
+
*
|
|
58
|
+
* **The bar counts what the reader clicks.** The flow this replaced showed "Step 1 of 3" while
|
|
59
|
+
* five screens stood between the reader and the end, because two of them - the welcome and the
|
|
60
|
+
* question that decided the total - were left out of the count, and the bar sat at 0% through
|
|
61
|
+
* both. A screen either takes part in the count or it does not: pass `step` and `totalSteps`
|
|
62
|
+
* and it is counted, omit them and no progress is drawn at all.
|
|
63
|
+
*
|
|
64
|
+
* The count is drawn as the bar alone and said in full to assistive technology (`valueText`).
|
|
65
|
+
* A printed "Step 1 of 4" beside a bar that already shows the same fraction is the label of a
|
|
66
|
+
* thing standing next to the thing - and the numbers it prints are the ones that change when a
|
|
67
|
+
* flow branches, which is exactly when a reader least wants to be told arithmetic.
|
|
68
|
+
*
|
|
69
|
+
* **The header and the footer are the dialog's own.** The flow this replaced drew a 118px hero
|
|
70
|
+
* band with its own gradient, its own logo size and a progress bar rendered on top of its bottom
|
|
71
|
+
* border - four decisions that no other dialog in the product makes, and that drifted from the
|
|
72
|
+
* rest of it the moment either side was touched. Here the header is `Dialog.Header` and the footer
|
|
73
|
+
* is `Dialog.Footer`, so this dialog ages with every other one. The header holds the mark and the
|
|
74
|
+
* back button; the title sits in the body, under the bar, because it is the one thing that
|
|
75
|
+
* changes on every screen and the header is what has to stay still.
|
|
76
|
+
*
|
|
77
|
+
* The block holds no answers and no step index: `open`, `step` and the controls are all the
|
|
78
|
+
* caller's, which is what lets one component draw a welcome screen, a radio question and a
|
|
79
|
+
* closing form without knowing what any of them mean.
|
|
80
|
+
*/
|
|
81
|
+
export declare function Onboarding({ open, onClose, dismissible, media, title, description, children, step, totalSteps, onBack, actions, size, labels, className }: OnboardingProps): import("react").JSX.Element;
|
|
82
|
+
//# sourceMappingURL=Onboarding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Onboarding.d.ts","sourceRoot":"","sources":["../../../src/blocks/Onboarding/Onboarding.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAM1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uEAAuE;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,iDAAiD;IACjD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kGAAkG;IAClG,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAKF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,WAAW,EACX,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,MAAM,EACN,OAAO,EACP,IAAW,EACX,MAAM,EACN,SAAS,EACV,EAAE,eAAe,+BA0DjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/Onboarding/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,gBAAgB,EACjB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
export type SwitchableOrganization = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
/**
|
|
6
|
+
* The organization this one sits under, if any. A sub-organization *is* an organization
|
|
7
|
+
* here — it carries its parent's name — so this is what tells the two apart.
|
|
8
|
+
*/
|
|
9
|
+
parentName?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The parent's `id`, when the parent is also in the list. What actually nests the rows:
|
|
12
|
+
* `parentName` is a name, and two roots are free to share one.
|
|
13
|
+
*
|
|
14
|
+
* A sub-organization whose parent is not listed — the session cannot enter the parent, or
|
|
15
|
+
* only the child was returned — keeps `parentName` and is drawn at the top level with the
|
|
16
|
+
* parent's name beneath it. Nothing is indented under a row that is not there.
|
|
17
|
+
*/
|
|
18
|
+
parentId?: string;
|
|
19
|
+
/** Members in this organization. Shown quietly at the row's end when given. */
|
|
20
|
+
memberCount?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Cannot be switched into from this session — in the product, an organization reached
|
|
23
|
+
* through its own SSO, which the organizations API marks as such when you are signed in
|
|
24
|
+
* with personal credentials.
|
|
25
|
+
*
|
|
26
|
+
* **A row like this is not drawn at all** (product call, 2026-08-29). It used to be listed with
|
|
27
|
+
* an `SSO` badge and to refuse the press, on the reasoning that hiding it would read as lost
|
|
28
|
+
* membership. That is the weaker half of the trade: this panel answers "where can I go", and a
|
|
29
|
+
* row that filters like the others, takes a press and does nothing is a dead end offered as a
|
|
30
|
+
* destination. Membership is a question for the organization page, which can explain it; a
|
|
31
|
+
* switcher can only refuse.
|
|
32
|
+
*
|
|
33
|
+
* The flag stays a property of the organization rather than something each caller filters
|
|
34
|
+
* out, so the rule lives here and every consumer gets the same answer. `disabledLabel` went
|
|
35
|
+
* with the badge.
|
|
36
|
+
*/
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export type OrganizationSwitcherLabels = {
|
|
40
|
+
/** The panel's heading, and its accessible name. */
|
|
41
|
+
title?: string;
|
|
42
|
+
filterPlaceholder?: string;
|
|
43
|
+
empty?: string;
|
|
44
|
+
/** The row's trailing count. Given the number, returns the whole phrase. */
|
|
45
|
+
memberCount?: (count: number) => string;
|
|
46
|
+
};
|
|
47
|
+
export type OrganizationSwitcherProps = {
|
|
48
|
+
organizations: SwitchableOrganization[];
|
|
49
|
+
/** Which one you are in now. It gets the tick. */
|
|
50
|
+
currentId?: string;
|
|
51
|
+
/** Not called for the current one — switching into where you already are is not a change. */
|
|
52
|
+
onSelect: (id: string) => void;
|
|
53
|
+
/** The control that opens the panel. In the product, the sidebar's header row. */
|
|
54
|
+
trigger: ReactElement;
|
|
55
|
+
/** Controlled, when something other than the trigger has to open it. */
|
|
56
|
+
open?: boolean;
|
|
57
|
+
onOpenChange?: (open: boolean) => void;
|
|
58
|
+
labels?: OrganizationSwitcherLabels;
|
|
59
|
+
className?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The list of organizations you can switch into, behind whatever opens it.
|
|
63
|
+
*
|
|
64
|
+
* **`Command` is this list.** What the product had was a filter field over rows with a tick
|
|
65
|
+
* on the current one, in the status bar — and an input over a filtered list is the whole of
|
|
66
|
+
* what `Command` is. Arriving at it this way brings the parts the original had no room for:
|
|
67
|
+
* the arrow keys walk the list, Enter chooses, the result count is announced after each
|
|
68
|
+
* keystroke, and it is a named `listbox` rather than a stack of `<div onClick>`.
|
|
69
|
+
*
|
|
70
|
+
* **Nested, and not grouped** (product call, 2026-09-09). Each root organization is a row, and the
|
|
71
|
+
* ones under it are the same row a step in, against the hairline the sidebar's sublists use.
|
|
72
|
+
* `Command`'s groups were the other way to draw this and cannot: a group heading is not selectable,
|
|
73
|
+
* and a root organization is somewhere you can go. It was flat before, with each parent's name
|
|
74
|
+
* repeated beneath every one of its children — the same fact printed once per row.
|
|
75
|
+
*
|
|
76
|
+
* **Nothing expands.** Two levels, both always open. A collapse control on a list of four
|
|
77
|
+
* organizations hides the answer behind a press, and the panel exists to answer in one look.
|
|
78
|
+
*
|
|
79
|
+
* **No avatar column.** An organization has no picture in the product, so the alternative is
|
|
80
|
+
* initials in a square — a second, blockier copy of the name already on the row.
|
|
81
|
+
*/
|
|
82
|
+
export declare function OrganizationSwitcher({ organizations, currentId, onSelect, trigger, open: controlledOpen, onOpenChange, labels, className }: OrganizationSwitcherProps): import("react").JSX.Element;
|
|
83
|
+
//# sourceMappingURL=OrganizationSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationSwitcher.d.ts","sourceRoot":"","sources":["../../../src/blocks/OrganizationSwitcher/OrganizationSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ1C,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,sBAAsB,EAAE,CAAC;IACxC,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,kFAAkF;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