@appcircle/mosaic 0.0.0-stage → 1.0.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/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,51 @@
|
|
|
1
|
+
import type { CSSProperties, ElementType, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Values drawn from the spacing scale. A number outside this union is a
|
|
4
|
+
* compile error — that is the whole point of the type. There is no escape
|
|
5
|
+
* hatch, because the escape hatch is how a codebase ends up with 34 distinct
|
|
6
|
+
* padding values.
|
|
7
|
+
*/
|
|
8
|
+
export type Space = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16;
|
|
9
|
+
export type StackProps = HTMLAttributes<HTMLElement> & {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/** Main axis. Defaults to `column`. */
|
|
12
|
+
direction?: "row" | "column";
|
|
13
|
+
/** Space between children. */
|
|
14
|
+
gap?: Space;
|
|
15
|
+
/** Padding on all sides. */
|
|
16
|
+
padding?: Space;
|
|
17
|
+
/** Horizontal padding. Overrides `padding` on the inline axis. */
|
|
18
|
+
paddingX?: Space;
|
|
19
|
+
/** Vertical padding. Overrides `padding` on the block axis. */
|
|
20
|
+
paddingY?: Space;
|
|
21
|
+
/** Cross-axis alignment. */
|
|
22
|
+
align?: "start" | "center" | "end" | "stretch" | "baseline";
|
|
23
|
+
/** Main-axis distribution. */
|
|
24
|
+
justify?: "start" | "center" | "end" | "between" | "around";
|
|
25
|
+
/** Allow children to wrap onto more lines. */
|
|
26
|
+
wrap?: boolean;
|
|
27
|
+
/** Grow to fill the parent's main axis. */
|
|
28
|
+
grow?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Children share the main axis equally, each one as wide as the next whatever it holds.
|
|
31
|
+
* For a row of tiles or panels that measure against each other, where a column that is
|
|
32
|
+
* wider because its label is longer reads as a difference in the data.
|
|
33
|
+
*
|
|
34
|
+
* Not for a row of controls: a button sized to its neighbour's label is a button with the
|
|
35
|
+
* wrong hit area. Pair it with `wrap` only if a ragged last line is acceptable, since a
|
|
36
|
+
* wrapped line shares its own width and not the row's.
|
|
37
|
+
*/
|
|
38
|
+
equal?: boolean;
|
|
39
|
+
/** Rendered element. Use a semantic tag where one applies. */
|
|
40
|
+
as?: ElementType;
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: CSSProperties;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The layout primitive. Replaces one-off flex containers and spacer elements.
|
|
46
|
+
*
|
|
47
|
+
* Spacing arrives through custom properties rather than a class per value, so
|
|
48
|
+
* adding a step to the scale does not multiply the stylesheet.
|
|
49
|
+
*/
|
|
50
|
+
export declare function Stack({ children, direction, gap, padding, paddingX, paddingY, align, justify, wrap, grow, equal, as: Tag, className, style, ...rest }: StackProps): import("react").JSX.Element;
|
|
51
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,cAAc,EACd,SAAS,EACV,MAAM,OAAO,CAAC;AAIf;;;;;GAKG;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uCAAuC;IACvC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,8BAA8B;IAC9B,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,4BAA4B;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;IAC5D,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC5D,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2CAA2C;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8DAA8D;IAC9D,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAuBF;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,SAAoB,EACpB,GAAG,EACH,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,EACP,IAAY,EACZ,IAAY,EACZ,KAAa,EACb,EAAE,EAAE,GAAW,EACf,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,UAAU,+BA0BZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type StatProps = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Already formatted. `Stat` never formats, because the product's tiles put four
|
|
6
|
+
* unrelated kinds of thing in this slot: a count, a duration written as `2m 14s` or
|
|
7
|
+
* `149h 12m`, a plan tier (`Standard`), and a locale date. A component that tried to
|
|
8
|
+
* cover all of those would be a formatting library with a box around it, and every one
|
|
9
|
+
* of those formats is a product decision rather than a design-system one.
|
|
10
|
+
*/
|
|
11
|
+
value: ReactNode;
|
|
12
|
+
/** Trailing and quiet — "minutes", "builds". */
|
|
13
|
+
unit?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The value has not arrived yet, so the tile draws a bar in its place and keeps its label.
|
|
16
|
+
*
|
|
17
|
+
* **A number is not a loading state.** These tiles read from a store the reports share, so a page
|
|
18
|
+
* arriving after another one painted the *previous* report's totals for as long as its own
|
|
19
|
+
* request took - "Total apps 0, Total downloads 174" on a report that has 5 and 46 (UAT). Zero
|
|
20
|
+
* would be no better: it is a fact the reader has no reason to doubt. The rule the product
|
|
21
|
+
* already follows for a table is the same one here - shape until the answer, then the answer.
|
|
22
|
+
*/
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The quota the value is measured against. Numbers, unlike `value`: the bar needs one
|
|
26
|
+
* and so does `aria-valuenow`. That is not the same quantity written twice — it is the
|
|
27
|
+
* quantity and its rendering, which for a duration are genuinely different strings.
|
|
28
|
+
*
|
|
29
|
+
* Everything derived from it is derived here, once: the percentage, the guard for a limit of
|
|
30
|
+
* zero, and whether it has been exceeded. The product computes that percentage from the same
|
|
31
|
+
* licence array in three separate components with the same copy-pasted formula, and each carries
|
|
32
|
+
* its own patch for the two edge cases — one clamps the bar at 100 and lets the number run past
|
|
33
|
+
* it, another guards `NaN`.
|
|
34
|
+
*/
|
|
35
|
+
quota?: {
|
|
36
|
+
used: number;
|
|
37
|
+
limit: number;
|
|
38
|
+
/**
|
|
39
|
+
* The limit written for the eye, for when `value` is written that way too. Defaults to
|
|
40
|
+
* the number as-is — which is right for a count and wrong the moment `value` carries a
|
|
41
|
+
* thousands separator, because then the tile reads `6,200 / 5000`. Formatting both or
|
|
42
|
+
* neither is the consumer's call, and this is the slot that lets them make it.
|
|
43
|
+
*/
|
|
44
|
+
limitLabel?: ReactNode;
|
|
45
|
+
};
|
|
46
|
+
/** Overrides what the bar announces. Default "N of M used". */
|
|
47
|
+
quotaLabel?: (used: number, limit: number) => string;
|
|
48
|
+
/** Report tiles centre their label; dashboard tiles do not. */
|
|
49
|
+
align?: "start" | "center";
|
|
50
|
+
className?: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* A label and a number: the tile that reports one measured quantity.
|
|
54
|
+
*
|
|
55
|
+
* The product has five separate implementations of this. `ReportCard` is the shared one — 26 tiles
|
|
56
|
+
* across ten report modules, label over value over unit. `NewDashboardCard` adds a limit and a bar
|
|
57
|
+
* along its top edge, `UsageCard` adds a bar and an upgrade link, `LicenseInfoBox` takes a
|
|
58
|
+
* `progress` prop and never renders it, and `BuildProfileDetailInfoBox` puts its count inside a
|
|
59
|
+
* sentence.
|
|
60
|
+
*
|
|
61
|
+
* **It draws its own `Card`.** The first version did not, on the grounds that whatever
|
|
62
|
+
* holds a component should draw its frame — which is right for `Command`, and was the
|
|
63
|
+
* wrong precedent to borrow. `Command` opens inside a `Sheet`, a `Popover` and a `Dialog`,
|
|
64
|
+
* so its frame genuinely varies. All five of the product's stat tiles are in a box, so the
|
|
65
|
+
* frame does not vary at all, and asking thirty-six call sites to write
|
|
66
|
+
* `<Card><Card.Content>` around one number is boilerplate for a decision nobody makes.
|
|
67
|
+
*
|
|
68
|
+
* **This is the component; the row of them is the block.** The tile is imported and
|
|
69
|
+
* configured with the same three fields at every one of those call sites — that is a
|
|
70
|
+
* component, and copying it instead is precisely how the product arrived at five. What is
|
|
71
|
+
* a block here is the grid: `auto-fit` columns, a skeleton, an empty case, all of which
|
|
72
|
+
* the product hardcodes to six tiles in three separate files including its skeleton. It
|
|
73
|
+
* cannot be written yet — a block earns its place after three *migrated* modules have
|
|
74
|
+
* assembled it by hand, and none has been migrated.
|
|
75
|
+
*
|
|
76
|
+
* **What none of the five has, and this does not either: a trend.** No sparkline, no
|
|
77
|
+
* period-over-period delta, no up-or-down arrow appears anywhere in the product. Adding
|
|
78
|
+
* one here would be designing a feature rather than describing what exists, and the
|
|
79
|
+
* shape it should take depends on data nothing currently loads.
|
|
80
|
+
*/
|
|
81
|
+
export declare function Stat({ label, value, loading, unit, quota, quotaLabel, align, className }: StatProps): import("react").JSX.Element;
|
|
82
|
+
//# sourceMappingURL=Stat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../../src/components/Stat/Stat.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB;;;;;;OAMG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB,gDAAgD;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd;;;;;WAKG;QACH,UAAU,CAAC,EAAE,SAAS,CAAC;KACxB,CAAC;IACF,+DAA+D;IAC/D,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,KAAK,EACL,OAAe,EACf,IAAI,EACJ,KAAK,EACL,UAAwD,EACxD,KAAe,EACf,SAAS,EACV,EAAE,SAAS,+BAsFX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How one run ended.
|
|
3
|
+
*
|
|
4
|
+
* `warning` is a run that succeeded and had something to say about it, which the product
|
|
5
|
+
* models as `buildStatus: 0` plus `hasWarning` — a separate axis rather than a status, and
|
|
6
|
+
* flattened into one here because a mark can only be one thing.
|
|
7
|
+
*/
|
|
8
|
+
export type RunStatus = "success" | "warning" | "failed" | "canceled" | "unknown";
|
|
9
|
+
export type StatusHistoryItem = {
|
|
10
|
+
status: RunStatus;
|
|
11
|
+
/** This run, in words — a date, a build number. Unused by the marks; see `labels`. */
|
|
12
|
+
label?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The product's build statuses, as outcomes.
|
|
16
|
+
*
|
|
17
|
+
* `CommitBuildStatus` is `Success = 0, Failed = 1, Canceled = 2, Timeout = 3, Building = 4,
|
|
18
|
+
* Running = 91`, and `hasWarning` is a separate axis on top of it. This is the shape of the
|
|
19
|
+
* product's data rather than its words, which is the line a component here may cross — and
|
|
20
|
+
* the alternative is what the original does: the same nine comparisons written out again in
|
|
21
|
+
* each module that draws them.
|
|
22
|
+
*
|
|
23
|
+
* A *timeout* reads as a failure, as it did before: it did not finish. A build that
|
|
24
|
+
* succeeded *with warnings* is `warning`, which is where this differs from the original —
|
|
25
|
+
* that draws it with the grey "unknown" mark, saying nothing happened when in fact it
|
|
26
|
+
* succeeded and had something to report.
|
|
27
|
+
*/
|
|
28
|
+
export declare function runStatusFromBuildStatus(buildStatus?: number | null, hasWarning?: boolean): RunStatus;
|
|
29
|
+
export type StatusHistoryLabels = {
|
|
30
|
+
/** Names the strip. Receives how many runs are in it. */
|
|
31
|
+
summary?: (count: number) => string;
|
|
32
|
+
success?: string;
|
|
33
|
+
warning?: string;
|
|
34
|
+
failed?: string;
|
|
35
|
+
canceled?: string;
|
|
36
|
+
unknown?: string;
|
|
37
|
+
};
|
|
38
|
+
export type StatusHistoryProps = {
|
|
39
|
+
/** Oldest first, newest last — the order they are drawn in. */
|
|
40
|
+
items: StatusHistoryItem[];
|
|
41
|
+
size?: "sm" | "md";
|
|
42
|
+
/** Replaces the whole computed name. For a summary this component cannot phrase. */
|
|
43
|
+
label?: string;
|
|
44
|
+
labels?: StatusHistoryLabels;
|
|
45
|
+
className?: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The last few outcomes of something that runs repeatedly, newest last.
|
|
49
|
+
*
|
|
50
|
+
* The product draws this on every build profile card — six marks and the most recent one larger —
|
|
51
|
+
* from four fixed-colour SVG components and a chain of `buildStatus === n` comparisons, one copy in
|
|
52
|
+
* the grid card and another in the list card. The marks are also used one at a time elsewhere (the
|
|
53
|
+
* publish module has eight such uses); a single `StatusMark` belongs here too, and will be split
|
|
54
|
+
* out of this when a module that needs one is migrated rather than guessed at now.
|
|
55
|
+
*
|
|
56
|
+
* **One name for the strip, not one per mark.** Thirty cards × six marks is 180 things for
|
|
57
|
+
* a screen reader to walk through, each saying only "image". The marks are `aria-hidden`
|
|
58
|
+
* and the strip carries a summary — "Last 6 runs: 4 succeeded, 2 failed" — which is the
|
|
59
|
+
* sentence somebody reading the card actually wants. `label` replaces it outright and
|
|
60
|
+
* `labels` translates its parts, because a component here may know the shape of the
|
|
61
|
+
* product's data and must not know its strings.
|
|
62
|
+
*
|
|
63
|
+
* The colours are the status tokens at 3:1 against the card, which is the requirement for
|
|
64
|
+
* a mark rather than for text.
|
|
65
|
+
*/
|
|
66
|
+
export declare function StatusHistory({ items, size, label, labels, className }: StatusHistoryProps): import("react").JSX.Element;
|
|
67
|
+
//# sourceMappingURL=StatusHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusHistory.d.ts","sourceRoot":"","sources":["../../../src/components/StatusHistory/StatusHistory.tsx"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAElF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,EAC3B,UAAU,CAAC,EAAE,OAAO,GACnB,SAAS,CAYX;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,yDAAyD;IACzD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+DAA+D;IAC/D,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAaF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,IAAW,EACX,KAAK,EACL,MAAM,EACN,SAAS,EACV,EAAE,kBAAkB,+BAkDpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusHistory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,SAAS,EACV,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type StepCardProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
/** What the step does, from the component's own metadata. Two lines, then clipped. */
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Leading slot, outside the card's own edge — the control that adds this step to the
|
|
8
|
+
* workflow or takes it out again. Empty while the board is only being read.
|
|
9
|
+
*/
|
|
10
|
+
leading?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Trailing slot: the mark that says what pressing does. A chevron while the list is read,
|
|
13
|
+
* a grip while it can be reordered.
|
|
14
|
+
*/
|
|
15
|
+
trailing?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Trailing, above the card's own hit area — a link to the step's documentation. Quiet
|
|
18
|
+
* until the card is pointed at or focused, and always reachable by keyboard.
|
|
19
|
+
*/
|
|
20
|
+
action?: ReactNode;
|
|
21
|
+
/** Opens the step. Omit for a card that is only dragged. */
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/** The step is switched off in the workflow: it is listed, and it will not run. */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** It can be picked up. Draws the grab cursor; the dragging itself is the caller's. */
|
|
26
|
+
draggable?: boolean;
|
|
27
|
+
/** It is being dragged: what is left behind stays legible but plainly not in place. */
|
|
28
|
+
dragging?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* This is the gap the dragged card would land in — an outline, with the card inside it
|
|
31
|
+
* hidden. It keeps the space rather than collapsing it, so the list does not jump under
|
|
32
|
+
* the pointer.
|
|
33
|
+
*/
|
|
34
|
+
placeholder?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Why this step cannot sit here — a rule conflict, drawn as a filled band across the top of the
|
|
37
|
+
* card, with the card outlined in the same tone.
|
|
38
|
+
*
|
|
39
|
+
* **The message itself, not an `Alert`.** `Alert` is the quiet form — a `surface-3` box with a
|
|
40
|
+
* toned border, built to sit in a column of form fields — and above a step card it read as a
|
|
41
|
+
* second card that happened to be grey, with nothing tying it to the step it was about (product
|
|
42
|
+
* call, 2026-08-29). The band and the card are one object here, so the card draws it: pass the
|
|
43
|
+
* sentence, and a list of what it names if there is one.
|
|
44
|
+
*/
|
|
45
|
+
alert?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* What the message means. `danger` — the default — is "this will not run"; `warning` is "this
|
|
48
|
+
* will run, but". The tone paints the band and the outline around both.
|
|
49
|
+
*/
|
|
50
|
+
alertTone?: "danger" | "warning";
|
|
51
|
+
className?: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* One step of a workflow, as a card: what it is called, what it does, and whatever the
|
|
55
|
+
* surrounding board lets you do to it.
|
|
56
|
+
*
|
|
57
|
+
* **Why this is not `Item`.** A step card carries states no summary row has — `dragging`, the
|
|
58
|
+
* gap a dragged card would land in — and a message attached to its top edge, and it is a *drag
|
|
59
|
+
* source*, which changes what its hit area may be. Sharing one component would mean four props
|
|
60
|
+
* on `Item` that only this ever sets.
|
|
61
|
+
*
|
|
62
|
+
* **The hit area follows from that.** `Item` always stretches its control over the row; here
|
|
63
|
+
* it is stretched only while the card is clickable, which is exactly when it is *not* being
|
|
64
|
+
* dragged — the board hands out `onClick` while the list is read and drag handles while it is
|
|
65
|
+
* edited, never both. So a read card is clickable across its whole surface, and a draggable one
|
|
66
|
+
* has nothing covering the element `useDrag` is attached to.
|
|
67
|
+
*
|
|
68
|
+
* **The drag belongs to the application.** Mosaic ships no drag-and-drop: the product drives these
|
|
69
|
+
* with `react-dnd`, and a library that took that dependency would be choosing the consumer's dnd
|
|
70
|
+
* engine for them. What is here is the *appearance* of each state — grab cursor, the dragged card,
|
|
71
|
+
* the gap it would land in — and a forwarded ref, which is all `useDrag`/`useDrop` need to attach
|
|
72
|
+
* to.
|
|
73
|
+
*
|
|
74
|
+
* **What it replaces.** `WorkflowStep` in the product — 226 lines of `div`s with hand-built class
|
|
75
|
+
* strings (`"WorkflowStep-confirmDelete--" + confirmDelete`, five of them per card), a 300-line
|
|
76
|
+
* stylesheet, and a delete confirmation that slides a red panel out of the card's right edge. Two
|
|
77
|
+
* modules draw it: the build module's workflow editor and the publish module's flow editor.
|
|
78
|
+
*/
|
|
79
|
+
export declare const StepCard: import("react").ForwardRefExoticComponent<StepCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
80
|
+
//# sourceMappingURL=StepCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepCard.d.ts","sourceRoot":"","sources":["../../../src/components/StepCard/StepCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,sFAAsF;IACtF,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uFAAuF;IACvF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,QAAQ,0GAyFpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StepCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Where one step of a run has got to.
|
|
4
|
+
*
|
|
5
|
+
* `skipped` is a step the run passed over — either switched off in the workflow or left
|
|
6
|
+
* behind when an earlier step failed. It is a fifth status rather than a flag on `waiting`
|
|
7
|
+
* because the two mean opposite things: `waiting` is "not yet", `skipped` is "not at all",
|
|
8
|
+
* and drawing them the same way is what made a failed build's tail read as still pending.
|
|
9
|
+
*/
|
|
10
|
+
export type StepStatus = "waiting" | "running" | "success" | "failed" | "skipped";
|
|
11
|
+
export type StepListItem = {
|
|
12
|
+
/** The step's name. */
|
|
13
|
+
name: ReactNode;
|
|
14
|
+
status: StepStatus;
|
|
15
|
+
/** Under the name, quiet — when the run started, for the row that opens a log. */
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* How long it took, **already formatted**. A duration is a product decision — `<1s`,
|
|
19
|
+
* `00:01:23`, `2s` — and one this component must not make; what it does own is that the
|
|
20
|
+
* column does not jitter as a running step counts up, which is `font-variant-numeric`.
|
|
21
|
+
*/
|
|
22
|
+
duration?: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export type StepListLabels = {
|
|
25
|
+
/** Names the list. */
|
|
26
|
+
list?: string;
|
|
27
|
+
/** Announced beside a running step. */
|
|
28
|
+
running?: string;
|
|
29
|
+
waiting?: string;
|
|
30
|
+
success?: string;
|
|
31
|
+
failed?: string;
|
|
32
|
+
skipped?: string;
|
|
33
|
+
};
|
|
34
|
+
export type StepListProps = {
|
|
35
|
+
items: StepListItem[];
|
|
36
|
+
/** The step whose output is showing beside this list. */
|
|
37
|
+
selectedIndex?: number;
|
|
38
|
+
/** A step was chosen. Omit for a list that only reports progress. */
|
|
39
|
+
onSelect?: (index: number) => void;
|
|
40
|
+
labels?: StepListLabels;
|
|
41
|
+
className?: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The steps of one run, in order, with where each got to and how long it took.
|
|
45
|
+
*
|
|
46
|
+
* **What it replaces.** The product draws this list twice — once in `@appcircle/ui` over parsed log
|
|
47
|
+
* sections and once in the build module over streamed workflow events — and the two files are the
|
|
48
|
+
* same file: the same `div` with a hand-built class string (`"Logs_sections_section-selected--" +
|
|
49
|
+
* !!isSelected`), the same three-way status icon switch, the same 10%/75%/15% column widths.
|
|
50
|
+
* Neither row is a control, so the list cannot be reached with Tab at all, and the status is
|
|
51
|
+
* carried by an SVG's fill alone.
|
|
52
|
+
*
|
|
53
|
+
* **Every row is a button** — that is the substance of the change, not the styling. A run's
|
|
54
|
+
* steps are how its log is navigated, and a list navigated with the pointer only is one a
|
|
55
|
+
* keyboard cannot read. A skipped step's button is `disabled`, which is what the original
|
|
56
|
+
* expressed as `pointer-events: none` and therefore said only to a mouse.
|
|
57
|
+
*
|
|
58
|
+
* **Nothing is drawn between or through the rows.** There was a rail — one vertical line
|
|
59
|
+
* behind the marks saying "sequence" — and it went with the rest of the product's drawn
|
|
60
|
+
* dividers (2026-08-23): the order of the rows already says the order of the run, and the
|
|
61
|
+
* line read as machinery. Rows divide by rhythm, like every other list.
|
|
62
|
+
*
|
|
63
|
+
* Product knowledge stays out: statuses are `StepStatus`, durations arrive formatted, and
|
|
64
|
+
* the strings are `labels`. What maps a workflow event or a parsed log section onto this is
|
|
65
|
+
* the application's, beside the data it already holds.
|
|
66
|
+
*/
|
|
67
|
+
export declare function StepList({ items, selectedIndex, onSelect, labels, className }: StepListProps): import("react").JSX.Element;
|
|
68
|
+
//# sourceMappingURL=StepList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepList.d.ts","sourceRoot":"","sources":["../../../src/components/StepList/StepList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IACzB,uBAAuB;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,kFAAkF;IAClF,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAWF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA6BF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,aAAa,EACb,QAAQ,EACR,MAAM,EACN,SAAS,EACV,EAAE,aAAa,+BAqEf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StepList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,UAAU,EACX,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type SwitchProps = Omit<InputHTMLAttributes<HTMLInputElement>, "className" | "style" | "type" | "children" | "role"> & {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
/** Label before the track instead of after it — for a settings row. */
|
|
6
|
+
labelPosition?: "start" | "end";
|
|
7
|
+
/**
|
|
8
|
+
* Why it cannot be switched. Giving one disables it and says the sentence - linked to the input
|
|
9
|
+
* through `aria-describedby` at all times, and shown as a tooltip under the switch itself (not
|
|
10
|
+
* under the row it sits in) on hover and focus.
|
|
11
|
+
*/
|
|
12
|
+
disabledReason?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A checkbox with `role="switch"`, which is what the ARIA spec asks for: a
|
|
17
|
+
* control with two states that takes effect immediately, rather than one that
|
|
18
|
+
* is submitted with a form. Screen readers announce it as "on"/"off" instead
|
|
19
|
+
* of "checked"/"unchecked".
|
|
20
|
+
*
|
|
21
|
+
* The product's Switch is a `div` with an `onClick`; `role="switch"` appears nowhere in the
|
|
22
|
+
* codebase. So today it cannot be reached by Tab, cannot be toggled with Space, and announces
|
|
23
|
+
* nothing at all.
|
|
24
|
+
*/
|
|
25
|
+
export declare function Switch({ children, description, labelPosition, checked, disabled: disabledProp, disabledReason, className, ...rest }: SwitchProps): import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5D,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CACrD,GAAG;IACF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,uEAAuE;IACvE,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAChC;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,WAAW,EACX,aAAqB,EACrB,OAAO,EACP,QAAQ,EAAE,YAAY,EACtB,cAAc,EACd,SAAS,EACT,GAAG,IAAI,EACR,EAAE,WAAW,+BAgEb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type SwitchPanelProps = {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
/** Secondary line under the title. */
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
checked: boolean;
|
|
7
|
+
onChange: (checked: boolean) => void;
|
|
8
|
+
/** The settings the switch reveals. */
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Keep the body mounted while the switch is off, hidden instead of removed.
|
|
12
|
+
*
|
|
13
|
+
* **For a body of form fields.** Removing them is right for content — it is genuinely absent, not
|
|
14
|
+
* quietly readable — and wrong for fields, because a form's payload is built from the fields that
|
|
15
|
+
* are mounted: an unmounted one stops contributing, so switching a setting off would also drop
|
|
16
|
+
* the value beside it from the request. The product's versioning tab hit exactly this and worked
|
|
17
|
+
* around it by leaving its fields outside the panel altogether (2026-08-27).
|
|
18
|
+
*/
|
|
19
|
+
keepBody?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Why it cannot be switched - passed to the `Switch`; see its `disabledReason`. */
|
|
22
|
+
disabledReason?: ReactNode;
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A setting that reveals its own configuration when switched on. The busiest component in the
|
|
27
|
+
* product at 122 uses.
|
|
28
|
+
*
|
|
29
|
+
* Reading the original settled a design question: `isSelected` drives both the
|
|
30
|
+
* switch and the visibility of the body, so this is not a disclosure with a
|
|
31
|
+
* switch beside it — **the switch is the control**, and the panel appearing is a
|
|
32
|
+
* consequence of turning the feature on. There is nothing extra to expand.
|
|
33
|
+
*
|
|
34
|
+
* The switch carries `aria-controls` but deliberately not `aria-expanded`: ARIA
|
|
35
|
+
* does not support that state on `role="switch"`, and conflating "on" with
|
|
36
|
+
* "expanded" would announce the same fact twice under two different names. The
|
|
37
|
+
* body is removed from the DOM when off rather than hidden with CSS, so it is
|
|
38
|
+
* genuinely absent instead of quietly readable.
|
|
39
|
+
*/
|
|
40
|
+
export declare function SwitchPanel({ title, description, checked, onChange, children, keepBody, disabled, disabledReason, className }: SwitchPanelProps): import("react").JSX.Element;
|
|
41
|
+
//# sourceMappingURL=SwitchPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwitchPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchPanel/SwitchPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB,sCAAsC;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,uCAAuC;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oFAAoF;IACpF,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,QAAQ,EACR,cAAc,EACd,SAAS,EACV,EAAE,gBAAgB,+BAoClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type TabItem = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Trailing count or state — a number, a word, or a `Badge` when the state deserves a chip.
|
|
7
|
+
*
|
|
8
|
+
* The slot itself paints nothing: whatever is passed keeps its own shape, and a bare count
|
|
9
|
+
* arrives as quiet text. See the stylesheet for why it stopped being a pill of its own.
|
|
10
|
+
*/
|
|
11
|
+
badge?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* A dot beside the label — "this tab has something unsaved".
|
|
14
|
+
*
|
|
15
|
+
* **Not `badge`.** That slot is a trailing chip with its own width, and what a form needs here
|
|
16
|
+
* is a mark that appears on the first keystroke and disappears on save: as a badge it pushed the
|
|
17
|
+
* title sideways every time, and as a bare `<span/>` inside a badge it drew an empty grey
|
|
18
|
+
* capsule with nothing in it. Its space is reserved whether or not it is shown, so the title
|
|
19
|
+
* never moves (see the stylesheet).
|
|
20
|
+
*
|
|
21
|
+
* Two panels in the product hand-rolled this — the build configuration sheet and the triggers
|
|
22
|
+
* sheet, each with an absolutely positioned 4px dot in its own stylesheet, which is how it came
|
|
23
|
+
* to be invisible in practice (2026-09-01). It is 8px here, the same disc `Dot` draws everywhere
|
|
24
|
+
* else.
|
|
25
|
+
*/
|
|
26
|
+
marked?: boolean;
|
|
27
|
+
/** What the mark means, for a screen reader. Defaults to "unsaved changes". */
|
|
28
|
+
markLabel?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Why the tab cannot be opened. Given, the tab is disabled and says the sentence - linked
|
|
32
|
+
* through `aria-describedby`, shown as a tooltip (see `Button`'s `disabledReason`) - and the
|
|
33
|
+
* arrow keys pass over it like any disabled tab.
|
|
34
|
+
*/
|
|
35
|
+
disabledReason?: ReactNode;
|
|
36
|
+
};
|
|
37
|
+
export type TabsVariant = "line" | "enclosed";
|
|
38
|
+
export type TabsSize = "sm" | "md";
|
|
39
|
+
export type TabsProviderProps = {
|
|
40
|
+
items: TabItem[];
|
|
41
|
+
value: string;
|
|
42
|
+
onChange: (value: string) => void;
|
|
43
|
+
variant?: TabsVariant;
|
|
44
|
+
size?: TabsSize;
|
|
45
|
+
/** Defaults to true for `line` and false for `enclosed` - see `TabsProvider`. */
|
|
46
|
+
fullWidth?: boolean;
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The state and the id wiring, **and no element of its own**.
|
|
51
|
+
*
|
|
52
|
+
* `Tabs` is the ordinary way in: a strip with its panel under it, one box. This exists for the
|
|
53
|
+
* arrangement that box cannot express — a strip and a panel with something between them in the
|
|
54
|
+
* DOM. A `Sheet`'s sections are that: the strip belongs in a band under the header where it
|
|
55
|
+
* stays put, and the panel is the body that scrolls beneath it, and those two are siblings of
|
|
56
|
+
* `Sheet.Header` rather than of each other. A wrapper around both would sit between `Sheet`'s
|
|
57
|
+
* flex column and its parts, so the provider renders nothing at all.
|
|
58
|
+
*
|
|
59
|
+
* It is not a second way to draw tabs. `Tabs.List` and `Tabs.Panel` are the same two components
|
|
60
|
+
* `Tabs` itself is built from, so there is one implementation of each and one place the
|
|
61
|
+
* `aria-controls`/`aria-labelledby` pair is decided — which is the part a caller wiring ids by
|
|
62
|
+
* hand gets wrong.
|
|
63
|
+
*/
|
|
64
|
+
export declare function TabsProvider({ items, value, onChange, variant, size, fullWidth, children }: TabsProviderProps): import("react").JSX.Element;
|
|
65
|
+
export type TabsListProps = {
|
|
66
|
+
/** Names the set of tabs. Required when the surrounding heading does not. */
|
|
67
|
+
"aria-label"?: string;
|
|
68
|
+
className?: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* The strip.
|
|
72
|
+
*
|
|
73
|
+
* Two things are easy to get wrong and are what the tests here pin down:
|
|
74
|
+
*
|
|
75
|
+
* - **One tab stop, not one per tab.** Only the selected tab is reachable with
|
|
76
|
+
* Tab; the arrow keys move between them. A strip of eight tabs that each take
|
|
77
|
+
* a tab stop puts eight presses between the content before it and after it.
|
|
78
|
+
* - **Selection follows focus.** For panels whose content is already present,
|
|
79
|
+
* arrowing selects as it moves, which is what the pattern recommends and what
|
|
80
|
+
* a pointer user gets anyway.
|
|
81
|
+
*/
|
|
82
|
+
export declare function TabsList({ className, ...rest }: TabsListProps): import("react").JSX.Element;
|
|
83
|
+
export type TabsPanelProps = {
|
|
84
|
+
children?: ReactNode;
|
|
85
|
+
className?: string;
|
|
86
|
+
};
|
|
87
|
+
/** The selected tab's content. One panel, named by the tab that controls it. */
|
|
88
|
+
export declare function TabsPanel({ children, className }: TabsPanelProps): import("react").JSX.Element;
|
|
89
|
+
export type TabsProps = Omit<TabsProviderProps, "children"> & {
|
|
90
|
+
/**
|
|
91
|
+
* The selected tab's content. Omit for a strip whose panel is somewhere else in the DOM —
|
|
92
|
+
* and reach for `Tabs.Provider` when it is, so the panel is still wired to its tab.
|
|
93
|
+
*/
|
|
94
|
+
children?: ReactNode;
|
|
95
|
+
/** Names the set of tabs. Required when the surrounding heading does not. */
|
|
96
|
+
"aria-label"?: string;
|
|
97
|
+
className?: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* A tab strip and its panel.
|
|
101
|
+
*
|
|
102
|
+
* The ARIA tabs pattern, none of which exists in the product — `role="tab"`, `role="tablist"` and
|
|
103
|
+
* `role="tabpanel"` each appear zero times, so its tabs are divs and a screen reader is told
|
|
104
|
+
* neither that they are tabs nor which one is current.
|
|
105
|
+
*
|
|
106
|
+
* The strip and the panel are `Tabs.List` and `Tabs.Panel`; this is the two of them in one box,
|
|
107
|
+
* which is what almost every caller wants. Where they cannot be siblings — a `Sheet`, whose
|
|
108
|
+
* strip belongs in a band above the body that scrolls under it — use `Tabs.Provider` with the
|
|
109
|
+
* two parts placed by hand.
|
|
110
|
+
*/
|
|
111
|
+
export declare function Tabs({ items, value, onChange, variant, size, fullWidth, children, className, ...rest }: TabsProps): import("react").JSX.Element;
|
|
112
|
+
export declare namespace Tabs {
|
|
113
|
+
export { TabsProvider as Provider };
|
|
114
|
+
export { TabsList as List };
|
|
115
|
+
export { TabsPanel as Panel };
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=Tabs.d.ts.map
|