@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 @@
|
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type RowActionsProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The row's menu — the `…` that every row in the column has, which is what the column is
|
|
5
|
+
* lined up on.
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The controls only *some* rows carry: the ▶ that starts a flow on a release candidate, a
|
|
10
|
+
* retry, a download. They sit to the left of the menu.
|
|
11
|
+
*/
|
|
12
|
+
leading?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The actions column's layout: **the menu keeps the column's centre line whether or not the row
|
|
17
|
+
* has a second control.**
|
|
18
|
+
*
|
|
19
|
+
* A row of actions centred as a group moves the `…` by half the width of everything beside it, so
|
|
20
|
+
* a table where one row in six can be started reads as a column of dots with one of them nudged
|
|
21
|
+
* out of line (product feedback, 2026-09-21, the publish version list). The dots are the one
|
|
22
|
+
* control every row has, so they are what the column is aligned on, and the occasional extra
|
|
23
|
+
* control hangs off the left.
|
|
24
|
+
*
|
|
25
|
+
* A three-track grid rather than absolute positioning: the menu is the middle track and the
|
|
26
|
+
* leading controls end the first one, so the centre is the cell's centre — the same centre the
|
|
27
|
+
* header's text is on — and nothing overlaps when a row carries two extra controls.
|
|
28
|
+
*/
|
|
29
|
+
export declare function RowActions({ children, leading, className }: RowActionsProps): import("react").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=RowActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowActions.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/RowActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,+BAS3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* `danger` and `warning` each take over the dialog's appearance: no header, and the icon
|
|
4
|
+
* beside the title, both in the tone's colour. `confirm` is the plain one - a regular
|
|
5
|
+
* header, and the destructive styling nowhere.
|
|
6
|
+
*
|
|
7
|
+
* The two toned values differ only in colour, which is the honest description of the distinction
|
|
8
|
+
* the product draws: the product's WarningModalDialog (12 uses) and its ConfirmationModalDialog
|
|
9
|
+
* differ by the colour and nothing else.
|
|
10
|
+
*/
|
|
11
|
+
export type AlertDialogTone = "danger" | "warning" | "confirm";
|
|
12
|
+
export type AlertDialogProps = {
|
|
13
|
+
open: boolean;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
onConfirm: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* **`sm` is the default** (2026-09-23). A confirmation is a question, the thing it concerns and -
|
|
18
|
+
* at most - its name typed back: three short lines, which 560px leaves floating in a panel sized
|
|
19
|
+
* for a form. The logout dialog took `sm` first (2026-08-25) and the build profile delete
|
|
20
|
+
* followed (2026-08-26); by the time the product looked at the rest, forty-one call sites were
|
|
21
|
+
* passing `sm` and **not one** was passing `md` on purpose - the seventeen still drawn at 560px
|
|
22
|
+
* had simply never been given a size. So the default was the bug, and flipping it is the fix
|
|
23
|
+
* rather than seventeen more props.
|
|
24
|
+
*
|
|
25
|
+
* Reach for `md` deliberately, and only for a body the narrow panel would actually cramp: a
|
|
26
|
+
* form, a table, a wide list. Prose and a column of names are not that - the affected-profile
|
|
27
|
+
* dialogs read fine at 400px, which is what moved them.
|
|
28
|
+
*/
|
|
29
|
+
size?: "sm" | "md";
|
|
30
|
+
title: ReactNode;
|
|
31
|
+
/** The consequence, stated plainly. Omit only if the title says everything. */
|
|
32
|
+
description?: ReactNode;
|
|
33
|
+
tone?: AlertDialogTone;
|
|
34
|
+
confirmLabel?: string;
|
|
35
|
+
cancelLabel?: string;
|
|
36
|
+
/** Disables both actions while the confirmed action is in flight. */
|
|
37
|
+
busy?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The confirm cannot be pressed, because of the current state - prefer `confirmDisabledReason`.
|
|
40
|
+
*
|
|
41
|
+
* A condition, never a permission (rule 35): a reader without the permission never gets this
|
|
42
|
+
* far, because the control that opens the dialog is not drawn for them. When the state holds
|
|
43
|
+
* the action back, the panel still states what would happen, and the sentence saying why is
|
|
44
|
+
* `confirmDisabledReason`; this bare flag is for a body that already says why in its
|
|
45
|
+
* `description`. Not for a *typed* confirmation, which has its own gate in `confirmPhrase`.
|
|
46
|
+
*/
|
|
47
|
+
confirmDisabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Why the confirming button cannot be pressed, said on it (see `Button`'s `disabledReason`).
|
|
50
|
+
* Giving one disables it, so it is `confirmDisabled` with the sentence: the reader who pressed
|
|
51
|
+
* the control that opened this panel is told why it stops here.
|
|
52
|
+
*/
|
|
53
|
+
confirmDisabledReason?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* The glyph beside the title. Defaults to the product's warning triangle; pass another to
|
|
56
|
+
* replace it, or `null` for the title alone. Ignored when there is no tone - an untoned
|
|
57
|
+
* confirmation has a plain header and nothing to illustrate.
|
|
58
|
+
*/
|
|
59
|
+
icon?: ReactNode;
|
|
60
|
+
/**
|
|
61
|
+
* Makes the confirmation deliberate: the phrase has to be typed exactly before the action
|
|
62
|
+
* is allowed. For the destructive ones that cannot be undone - clearing every
|
|
63
|
+
* notification, deleting a profile.
|
|
64
|
+
*
|
|
65
|
+
* The product does this in `SimpleDeleteModalDialog` and five siblings in the same 58 KB file,
|
|
66
|
+
* each with the check written out again. It belongs with the dialog.
|
|
67
|
+
*/
|
|
68
|
+
confirmPhrase?: string;
|
|
69
|
+
/**
|
|
70
|
+
* What the field asks for, as its placeholder and its accessible name. Receives the phrase,
|
|
71
|
+
* since an instruction that does not name it explains nothing.
|
|
72
|
+
*/
|
|
73
|
+
confirmPhraseLabel?: (phrase: string) => string;
|
|
74
|
+
/**
|
|
75
|
+
* Shows the phrase above the field, with a button that copies it.
|
|
76
|
+
*
|
|
77
|
+
* **On by default, because the phrase is nearly always a name.** Safari would not let one be
|
|
78
|
+
* dragged and copied out of the dialog (support feedback, 2026-09-16: "profil isminin ustune
|
|
79
|
+
* tiklayip secip kopyalayamiyormus insanlar"), and a name like `new_parser_logic_apk-v2` typed
|
|
80
|
+
* by eye is a name typed wrong. Turn it off for a fixed word - `delete`, `Clear Notification` -
|
|
81
|
+
* where there is nothing worth handing over and the placeholder already says it.
|
|
82
|
+
*
|
|
83
|
+
* **Above the field rather than inside it** (2026-09-16: "input'a yazacagimiz textin saginda copy
|
|
84
|
+
* olmali"). In the field's trailing slot the button sat next to the *empty box*, which is the one
|
|
85
|
+
* thing on the panel it does not hand over: the reader reaches for it while looking at the name,
|
|
86
|
+
* finds nothing there, and the affordance is beside the answer instead of beside the question.
|
|
87
|
+
* Here it is on the phrase itself, which is also the line a caller would otherwise have to draw
|
|
88
|
+
* for itself - and did, in every one of the product's delete dialogs.
|
|
89
|
+
*/
|
|
90
|
+
confirmPhraseCopy?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* A glyph for the phrase's own line - a profile's avatar, an app's icon.
|
|
93
|
+
*
|
|
94
|
+
* Only drawn with the phrase, so it follows `confirmPhraseCopy`. It exists because the
|
|
95
|
+
* callers that used to draw this line drew an image on it, and moving the line here without
|
|
96
|
+
* the slot would have taken that away.
|
|
97
|
+
*/
|
|
98
|
+
confirmPhraseIcon?: ReactNode;
|
|
99
|
+
/** Extra content between the description and the actions. */
|
|
100
|
+
children?: ReactNode;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* One dialog for the whole confirm family. The product has six of these in a single 58 KB file -
|
|
104
|
+
* DeleteModalDialog, DeleteModalDialogForAppleDevices, SimpleDeleteModalDialog, SimpleRejectModal,
|
|
105
|
+
* SimpleDeleteModalDialogV2 and DeleteModalDialogForDeleteUser - because each hard-coded its own
|
|
106
|
+
* copy and its own entity. The entity-specific parts belong in the app; the shape is this.
|
|
107
|
+
*
|
|
108
|
+
* `role="alertdialog"` tells assistive technology this dialog interrupts to ask
|
|
109
|
+
* something, rather than being one the user opened.
|
|
110
|
+
*
|
|
111
|
+
* Dismissing stays enabled, including by backdrop click: for a confirmation,
|
|
112
|
+
* dismissing means *not* performing the action, which is the safe outcome. A
|
|
113
|
+
* dialog that traps the user is only warranted when cancelling is the dangerous
|
|
114
|
+
* choice, which is rare.
|
|
115
|
+
*/
|
|
116
|
+
export declare function AlertDialog({ open, onClose, onConfirm, size, title, description, tone, confirmLabel, cancelLabel, busy, confirmDisabled, confirmDisabledReason, icon, confirmPhrase, confirmPhraseLabel, confirmPhraseCopy, confirmPhraseIcon, children }: AlertDialogProps): import("react").JSX.Element;
|
|
117
|
+
//# sourceMappingURL=AlertDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/AlertDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AA0B/D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAChD;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,SAAS,EACT,IAAW,EACX,KAAK,EACL,WAAW,EACX,IAAgB,EAChB,YAAY,EACZ,WAAsB,EACtB,IAAY,EACZ,eAAuB,EACvB,qBAAqB,EACrB,IAAI,EACJ,aAAa,EACb,kBAA8D,EAC9D,iBAAwB,EACxB,iBAAiB,EACjB,QAAQ,EACT,EAAE,gBAAgB,+BAgJlB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { DialogHTMLAttributes, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
/** `sm` and `md` only (product call, 2026-08-25): `lg` and `full` were escape hatches —
|
|
3
|
+
a panel that needs a page's width is a page, or a `Sheet`. */
|
|
4
|
+
export type DialogSize = "sm" | "md";
|
|
5
|
+
export type DialogProps = Omit<DialogHTMLAttributes<HTMLDialogElement>, "open" | "onClose" | "className" | "style"> & {
|
|
6
|
+
open: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Called for every dismissal route: Escape and a click on the backdrop — a dialog draws no ✕
|
|
9
|
+
* (product call, 2026-08-25; both routes already close it, and the button was the tallest thing
|
|
10
|
+
* in the header). The component holds no open state of its own — the consumer owns it, which is
|
|
11
|
+
* what lets the product keep driving modals from the URL.
|
|
12
|
+
*/
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
size?: DialogSize;
|
|
15
|
+
/** Set false for a modal that must be resolved by an action, not dismissed. */
|
|
16
|
+
dismissible?: boolean;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Use only when no `Dialog.Header` title is present to label the dialog. */
|
|
20
|
+
"aria-label"?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Built on the native `<dialog>` element, which the browser gives us for free:
|
|
24
|
+
* a focus trap, Escape-to-close, focus restored to the trigger on close, an
|
|
25
|
+
* inert background, implicit `aria-modal="true"`, and placement in the top
|
|
26
|
+
* layer — so a modal needs no z-index at all, and nested modals stack by open
|
|
27
|
+
* order rather than by a number someone keeps incrementing.
|
|
28
|
+
*
|
|
29
|
+
* That is why `--mos-layer-modal` is not referenced here. The token remains
|
|
30
|
+
* for overlays that are not dialogs.
|
|
31
|
+
*
|
|
32
|
+
* One consequence worth knowing: the top layer sits above everything, so a menu
|
|
33
|
+
* or tooltip opened *inside* a modal has to render inside the dialog element
|
|
34
|
+
* (or use the popover API). One portalled to `document.body` appears behind it.
|
|
35
|
+
*/
|
|
36
|
+
export declare function Dialog({ open, onClose, size, dismissible, children, className, ...rest }: DialogProps): import("react").JSX.Element;
|
|
37
|
+
export declare namespace Dialog {
|
|
38
|
+
export { DialogHeader as Header };
|
|
39
|
+
export { DialogBody as Body };
|
|
40
|
+
export { DialogFooter as Footer };
|
|
41
|
+
}
|
|
42
|
+
/** `title` is omitted from the HTML attributes: ours is a heading node, not the
|
|
43
|
+
browser's tooltip attribute, and the two would intersect to `string & ReactNode`. */
|
|
44
|
+
export type DialogHeaderProps = Omit<HTMLAttributes<HTMLElement>, "title"> & {
|
|
45
|
+
title?: ReactNode;
|
|
46
|
+
/** Shown when this modal is one page of a flow. */
|
|
47
|
+
onBack?: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* A link to the documentation for whatever this dialog does, at the header's trailing edge.
|
|
50
|
+
*
|
|
51
|
+
* The product's `ModalWindow` has an `infoUrl` prop for this and around forty of its modals set
|
|
52
|
+
* it, so it is part of the shape rather than one screen's decoration. It is here — rather than
|
|
53
|
+
* left to each caller to pass an anchor as `children` — because the *look* is the point: it has
|
|
54
|
+
* to read as dialog chrome, which means the 28px button box and the muted ink. A caller's own
|
|
55
|
+
* `<a>` gets neither — the first migration proved it: a link-coloured glyph in the header read as
|
|
56
|
+
* a mistake.
|
|
57
|
+
*
|
|
58
|
+
* Always a new tab, so `rel="noopener noreferrer"` is set here — a `target="_blank"` without it
|
|
59
|
+
* hands the opened page a handle on this one.
|
|
60
|
+
*/
|
|
61
|
+
info?: {
|
|
62
|
+
href: string;
|
|
63
|
+
/** Mosaic ships no icons — `<Icon icon={icons.docs} />`. */
|
|
64
|
+
icon?: ReactNode;
|
|
65
|
+
/** Its accessible name. Say what the documentation is *about*, not "info". */
|
|
66
|
+
label?: string;
|
|
67
|
+
};
|
|
68
|
+
/** Mosaic ships no icons, so the affordance is a text glyph. Pass your own to replace it. */
|
|
69
|
+
backIcon?: ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* The severity of a dialog that tells rather than asks - one whose only button is Close, so it
|
|
72
|
+
* cannot be an `AlertDialog`. Draws the toned `AlertDialog`'s icon before the title, in the
|
|
73
|
+
* tone's colour, so a warning reads the same whether or not it asks a question. The title keeps
|
|
74
|
+
* the ink every other title takes.
|
|
75
|
+
*/
|
|
76
|
+
tone?: "warning" | "danger";
|
|
77
|
+
className?: string;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* No ✕ (product call, 2026-08-25): Escape and the backdrop already close the dialog, and
|
|
81
|
+
* removing the button is what let the header stop being a 52px band — the title now sits
|
|
82
|
+
* over the content the way the toned alert's question does.
|
|
83
|
+
*/
|
|
84
|
+
declare function DialogHeader({ title, onBack, info, backIcon, tone, children, className, ...rest }: DialogHeaderProps): import("react").JSX.Element;
|
|
85
|
+
export type DialogBodyProps = HTMLAttributes<HTMLDivElement> & {
|
|
86
|
+
className?: string;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The scrolling region. Native overflow rather than a custom scrollbar
|
|
90
|
+
* library, and a container query context so content inside responds to the
|
|
91
|
+
* panel's width instead of the window's.
|
|
92
|
+
*/
|
|
93
|
+
declare function DialogBody({ children, className, ...rest }: DialogBodyProps): import("react").JSX.Element;
|
|
94
|
+
export type DialogFooterProps = HTMLAttributes<HTMLElement> & {
|
|
95
|
+
className?: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* A layout slot, nothing more. The product's DialogFooter renders a submit button with translated
|
|
99
|
+
* labels and form state; that belongs in the adapter layer, not here.
|
|
100
|
+
*
|
|
101
|
+
* **Nothing to hold, no band** (2026-10-06): an action the viewer has no scope for is hidden,
|
|
102
|
+
* so a footer whose every button is gated would otherwise draw its hairline round nothing.
|
|
103
|
+
* `false`, `null` and empty fragments count as empty; see `hasChildren`.
|
|
104
|
+
*/
|
|
105
|
+
declare function DialogFooter({ children, className, ...rest }: DialogFooterProps): import("react").JSX.Element | null;
|
|
106
|
+
export {};
|
|
107
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAEd,SAAS,EACV,MAAM,OAAO,CAAC;AASf;iEACiE;AACjE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAGrC,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAC3C,GAAG;IACF,IAAI,EAAE,OAAO,CAAC;IACd;;;;;OAKG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,OAAO,EACP,IAAW,EACX,WAAkB,EAClB,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,WAAW,+BA6Eb;yBArFe,MAAM;aAkON,YAAY;aACd,UAAU;aACR,YAAY;;AA7I5B;wFACwF;AACxF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,GAAG;IAC3E,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,4DAA4D;QAC5D,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,8EAA8E;QAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAOF;;;;GAIG;AACH,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,MAAM,EACN,IAAI,EACJ,QAAc,EACd,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,iBAAiB,+BA0CnB;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAMpE;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,iBAAiB,sCAOxE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Dialog } from "./Dialog";
|
|
2
|
+
export type { DialogProps, DialogSize, DialogHeaderProps, DialogBodyProps, DialogFooterProps } from "./Dialog";
|
|
3
|
+
export { AlertDialog } from "./AlertDialog";
|
|
4
|
+
export type { AlertDialogProps, AlertDialogTone } from "./AlertDialog";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type DonutChartSlice = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
/** Any CSS colour. Left out, the slice takes the next of the six default series. */
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
export type DonutChartProps = {
|
|
8
|
+
data: DonutChartSlice[];
|
|
9
|
+
/** What the chart is of - "Downloads by platform". The canvas announces it. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** The word under the centre number while no slice is picked. */
|
|
12
|
+
totalLabel?: string;
|
|
13
|
+
/** Written for the eye: `1,284`, `7.2 MB`. Defaults to `toLocaleString`. */
|
|
14
|
+
formatValue?: (value: number) => string;
|
|
15
|
+
/** The rows under the ring. Off, the ring stands alone and the centre still reads the total. */
|
|
16
|
+
legend?: boolean;
|
|
17
|
+
/** The ring's diameter in pixels. */
|
|
18
|
+
size?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* A ring of slices with the total in the hole, and a legend that picks one out.
|
|
23
|
+
*
|
|
24
|
+
* shadcn draws this as "Pie Chart - Donut" with an interactive select; here the legend is the
|
|
25
|
+
* select, because the legend is where the eye already is and a second control naming the
|
|
26
|
+
* same slices twice is noise. Pressing a row (or its arc) puts that slice's value in the
|
|
27
|
+
* centre and lifts the arc; pressing it again returns to the total.
|
|
28
|
+
*
|
|
29
|
+
* **The series is the accent, twice stepped down, then the inks** (rule 33): the three largest
|
|
30
|
+
* slices are Appcircle's orange at three strengths a reader can tell apart, and the rest are the
|
|
31
|
+
* greys the page already writes in, so a chart is the product's colour rather than a rainbow. Chart.js paints a canvas, which cannot read a CSS custom property, so the accent
|
|
32
|
+
* is declared on the root as a local property (rule 14), read back with `getComputedStyle` at
|
|
33
|
+
* render and again whenever `data-theme` changes on the document, and mixed here. A slice with
|
|
34
|
+
* its own `color` is painted as given - the build outcomes, say, where green and red mean things.
|
|
35
|
+
*
|
|
36
|
+
* **Nothing is written on the slices.** A percentage over the accent is unreadable on half the
|
|
37
|
+
* tints, so the share sits in the legend beside the value, and pointing at an arc raises Mosaic's
|
|
38
|
+
* own tooltip bubble with the same three facts (2026-09-15). Chart.js's legend and tooltip are off:
|
|
39
|
+
* the bubble is Mosaic's, through the popover API, so it is the one hint the product has everywhere
|
|
40
|
+
* else rather than a canvas-drawn imitation.
|
|
41
|
+
*
|
|
42
|
+
* **The canvas is an image.** It carries `role="img"` and a sentence naming every slice, so
|
|
43
|
+
* what the ring says is also said; the legend repeats it in real elements a reader can tab
|
|
44
|
+
* through.
|
|
45
|
+
*
|
|
46
|
+
* **An empty chart is still a ring.** With no data, or a total of zero, one grey arc is drawn
|
|
47
|
+
* and the centre reads `0`: the space the chart will fill is held, and a report with nothing
|
|
48
|
+
* in it looks like a report with nothing in it rather than a hole in the page.
|
|
49
|
+
*/
|
|
50
|
+
export declare function DonutChart({ data, label, totalLabel, formatValue, legend, size, className }: DonutChartProps): import("react").JSX.Element;
|
|
51
|
+
//# sourceMappingURL=DonutChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../src/components/DonutChart/DonutChart.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAwBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,UAAoB,EACpB,WAA6C,EAC7C,MAAa,EACb,IAAU,EACV,SAAS,EACV,EAAE,eAAe,+BA0NjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DonutChart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The five the application's status palette has: `--mos-color-success`, `-warning` and
|
|
3
|
+
* `-danger`, with `running` on `--mos-color-ink-muted` and `neutral` on `--mos-color-ink-subtle`
|
|
4
|
+
* (see `Dot.module.css`). Not `BadgeTone`: that scale has an `info` and no
|
|
5
|
+
* `running`, and its `warning` is the amber a callout is drawn in rather than the orange this
|
|
6
|
+
* product writes a canceled build in. A status dot belongs to the status palette.
|
|
7
|
+
*
|
|
8
|
+
* The same five `buildStatusTone` returns, so a panel can hand its own row tone straight to a
|
|
9
|
+
* dot and the two cannot disagree.
|
|
10
|
+
*/
|
|
11
|
+
export type DotTone = "neutral" | "success" | "warning" | "danger" | "running";
|
|
12
|
+
export type DotProps = {
|
|
13
|
+
tone?: DotTone;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A small filled disc in one of the status colours — the mark that sits before a status in a
|
|
18
|
+
* list, a menu or a chip.
|
|
19
|
+
*
|
|
20
|
+
* **It is decoration, and it is `aria-hidden`.** Colour is not information everyone receives
|
|
21
|
+
* (WCAG 1.4.1), so this may only ever accompany the words it colours: `● Canceled`, never `●`
|
|
22
|
+
* alone. That is the same rule `Badge` states for its tone, and the reason `StatusHistory` —
|
|
23
|
+
* which *is* the only thing saying how a run ended — gives every status a distinct shape
|
|
24
|
+
* instead of a colour. Reach for this where the label is already there and the dot is what
|
|
25
|
+
* makes the list scannable; reach for `StatusHistory` where the mark is the whole message.
|
|
26
|
+
*
|
|
27
|
+
* The known contrast trade-off on those tokens is recorded beside them in `light.css`: on white,
|
|
28
|
+
* `success` (2.4:1) and `warning` (1.6:1) are under 4.5:1 as text and under 3:1 as non-text,
|
|
29
|
+
* while `danger` clears AA at 5.15:1 and `running` is `ink-muted`, full-contrast ink. It applies
|
|
30
|
+
* here too, and it is the reason this component may not be the only thing saying what a status is.
|
|
31
|
+
*
|
|
32
|
+
* A `<span>` rather than an svg: it is a circle, and a border-radius draws a circle. Sized in
|
|
33
|
+
* `rem` so it does not shrink inside a smaller type scale — a 6px dot beside `text-xs` reads
|
|
34
|
+
* as dirt on the screen.
|
|
35
|
+
*/
|
|
36
|
+
export declare function Dot({ tone, className }: DotProps): import("react").JSX.Element;
|
|
37
|
+
//# sourceMappingURL=Dot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../../src/components/Dot/Dot.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,MAAM,OAAO,GACf,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,GAAG,CAAC,EAAE,IAAgB,EAAE,SAAS,EAAE,EAAE,QAAQ,+BAI5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
export type DropdownMenuProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The control that opens the menu. It receives a ref, `aria-haspopup`,
|
|
5
|
+
* `aria-expanded` and the handlers, so it must forward its ref — Mosaic's
|
|
6
|
+
* `Button` and `IconButton` do.
|
|
7
|
+
*/
|
|
8
|
+
trigger: ReactElement;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/** Which edge of the trigger the menu lines up with. */
|
|
11
|
+
align?: "start" | "end";
|
|
12
|
+
/**
|
|
13
|
+
* Which axis the menu opens on. `block` drops it under the trigger — the default, and
|
|
14
|
+
* right almost everywhere. `inline` opens it *beside* the trigger, top edges level, on
|
|
15
|
+
* whichever side has room.
|
|
16
|
+
*
|
|
17
|
+
* `inline` exists for one geometry: a `⋯` menu in a stack of tight rows — a table's
|
|
18
|
+
* pinned actions column, a list panel. Dropped underneath, the menu lands exactly on the
|
|
19
|
+
* next rows' `⋯` buttons, and a press meant for those goes into the open menu instead:
|
|
20
|
+
* at best it is swallowed, at worst it lands on a menu item and runs the wrong row's
|
|
21
|
+
* action (found on the admin agent list, 2026-08-23 — "row one works, rows two and three
|
|
22
|
+
* don't"). Beside the trigger, the actions column stays clear, so pressing another row's
|
|
23
|
+
* `⋯` dismisses this menu and opens that one in the same gesture.
|
|
24
|
+
*/
|
|
25
|
+
side?: "block" | "inline";
|
|
26
|
+
className?: string;
|
|
27
|
+
/** Names the menu for assistive technology when the trigger is icon-only. */
|
|
28
|
+
"aria-label"?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* A menu of actions.
|
|
32
|
+
*
|
|
33
|
+
* Unlike `Combobox`, focus really moves into the items. That is the difference
|
|
34
|
+
* between the two ARIA patterns: a combobox keeps focus on its input and points
|
|
35
|
+
* at an option with `aria-activedescendant`, while a menu moves focus and the
|
|
36
|
+
* items are the tab-stop-free targets. Getting these the wrong way round is the
|
|
37
|
+
* usual reason a menu is unusable with a screen reader.
|
|
38
|
+
*
|
|
39
|
+
* The product has neither: `role="menu"`, `role="menuitem"`, `role="separator"` and `aria-haspopup`
|
|
40
|
+
* each appear zero times in the codebase, so today its ContextMenu is a stack of divs with click
|
|
41
|
+
* handlers.
|
|
42
|
+
*
|
|
43
|
+
* The active item is tracked by querying the DOM rather than by bookkeeping an
|
|
44
|
+
* index per child. Separators, conditional items and nested fragments all just
|
|
45
|
+
* work, and there is no registration protocol to get out of step.
|
|
46
|
+
*
|
|
47
|
+
* **No items, nothing drawn** - not the trigger either. See `isEmptyMenu`. What it does not do
|
|
48
|
+
* is tidy the separators of a menu that *has* items: a leading, trailing or doubled separator is
|
|
49
|
+
* the caller's to leave out, because only the caller knows which group each one closes.
|
|
50
|
+
*/
|
|
51
|
+
export declare function DropdownMenu({ trigger, children, align, side, className, ...rest }: DropdownMenuProps): import("react").JSX.Element | null;
|
|
52
|
+
export declare namespace DropdownMenu {
|
|
53
|
+
export { DropdownMenuItem as Item };
|
|
54
|
+
export { DropdownMenuSub as Sub };
|
|
55
|
+
export { DropdownMenuSeparator as Separator };
|
|
56
|
+
export { DropdownMenuLabel as Label };
|
|
57
|
+
}
|
|
58
|
+
export type DropdownMenuItemProps = {
|
|
59
|
+
children: ReactNode;
|
|
60
|
+
onSelect?: () => void;
|
|
61
|
+
/**
|
|
62
|
+
* `danger` for a destructive action. The product carries four booleans for this — `isDelete`,
|
|
63
|
+
* `isSuccess`, `isRevoke`, `isWarning` — which can be set in combinations that mean nothing.
|
|
64
|
+
*/
|
|
65
|
+
tone?: "default" | "danger";
|
|
66
|
+
icon?: ReactNode;
|
|
67
|
+
/** Trailing text: a shortcut, a count, a state. */
|
|
68
|
+
hint?: ReactNode;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Why the item cannot be chosen. Giving one disables it and says the sentence - linked through
|
|
72
|
+
* `aria-describedby` at all times, shown as a tooltip on hover and when the arrow keys reach it.
|
|
73
|
+
* A disabled item with a reason stays in the arrow-key sequence for that reason; one without is
|
|
74
|
+
* passed over. See `Button`'s `disabledReason` for why the product draws these at all.
|
|
75
|
+
*/
|
|
76
|
+
disabledReason?: ReactNode;
|
|
77
|
+
className?: string;
|
|
78
|
+
};
|
|
79
|
+
declare function DropdownMenuItem({ children, onSelect, tone, icon, hint, disabled: disabledProp, disabledReason, className }: DropdownMenuItemProps): import("react").JSX.Element;
|
|
80
|
+
export type DropdownMenuSubProps = {
|
|
81
|
+
/** The row's text. Also names the submenu, through `aria-labelledby`. */
|
|
82
|
+
label: ReactNode;
|
|
83
|
+
children: ReactNode;
|
|
84
|
+
icon?: ReactNode;
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
/** Why the row cannot be opened - see `DropdownMenu.Item`'s `disabledReason`. */
|
|
87
|
+
disabledReason?: ReactNode;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* A row that opens a menu of its own. The product has these on the filter rows of the build list —
|
|
91
|
+
* `Platform ›`, `Last Build Status ›`.
|
|
92
|
+
*
|
|
93
|
+
* Opens on ArrowRight, Enter, Space or a click, and on hover after a moment. Closes on
|
|
94
|
+
* ArrowLeft or Escape, which return to the row, and when the pointer has left both the
|
|
95
|
+
* row and the panel.
|
|
96
|
+
*
|
|
97
|
+
* **The pointer leaving is answered late, not straight away.** Getting from the row to
|
|
98
|
+
* the panel means crossing a gap, and often passing over a neighbouring row on the way.
|
|
99
|
+
* Closing the instant the row is left would make the submenu unreachable by mouse for
|
|
100
|
+
* exactly the diagonal path everyone takes. So a leave schedules a close, and the arrival
|
|
101
|
+
* on the panel cancels it — which also means a neighbouring row does not need to know
|
|
102
|
+
* this submenu exists in order to close it.
|
|
103
|
+
*
|
|
104
|
+
* **Not `useHoverOpen`, which already implements that delay.** That hook opens on focus
|
|
105
|
+
* as well, immediately and by design: a tooltip's whole job is to appear when its control
|
|
106
|
+
* is reached. Here arrowing down a menu passes *through* this row on the way to the next
|
|
107
|
+
* one, and a submenu that sprang open each time would make the menu unusable from the
|
|
108
|
+
* keyboard. The two disagree on the central question, so this is not the same machine
|
|
109
|
+
* with different numbers.
|
|
110
|
+
*/
|
|
111
|
+
declare function DropdownMenuSub({ label, children, icon, disabled: disabledProp, disabledReason }: DropdownMenuSubProps): import("react").JSX.Element | null;
|
|
112
|
+
/** A grouping line. `role="separator"` keeps it out of the item sequence. */
|
|
113
|
+
declare function DropdownMenuSeparator(): import("react").JSX.Element;
|
|
114
|
+
/** A heading for a run of items. Not focusable, not an item. */
|
|
115
|
+
declare function DropdownMenuLabel({ children }: {
|
|
116
|
+
children: ReactNode;
|
|
117
|
+
}): import("react").JSX.Element;
|
|
118
|
+
export {};
|
|
119
|
+
//# sourceMappingURL=DropdownMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA6B,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAwGhF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,wDAAwD;IACxD,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACxB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,QAAQ,EACR,KAAa,EACb,IAAc,EACd,SAAS,EACT,GAAG,IAAI,EACR,EAAE,iBAAiB,sCAkKnB;yBAzKe,YAAY;aA6cR,gBAAgB;aACjB,eAAe;aACT,qBAAqB;aACzB,iBAAiB;;AArStC,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACxB,QAAQ,EACR,QAAQ,EACR,IAAgB,EAChB,IAAI,EACJ,IAAI,EACJ,QAAQ,EAAE,YAAY,EACtB,cAAc,EACd,SAAS,EACV,EAAE,qBAAqB,+BA0CvB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,yEAAyE;IACzE,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iFAAiF;IACjF,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,eAAe,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EAAE,YAAY,EACtB,cAAc,EACf,EAAE,oBAAoB,sCAqKtB;AAED,6EAA6E;AAC7E,iBAAS,qBAAqB,gCAE7B;AAED,gEAAgE;AAChE,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAE/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type EmptyProps = {
|
|
3
|
+
/**
|
|
4
|
+
* An illustration. Mosaic ships no icons, so pass one — it takes its size and colour
|
|
5
|
+
* from the component, unlike the original's `fill="#A5B5C9" width={150}`.
|
|
6
|
+
*/
|
|
7
|
+
media?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Optional since 2026-08-23: an empty region inside something else — a table body — can be
|
|
10
|
+
* one quiet sentence in the `description` voice, and a bold heading over it read as a
|
|
11
|
+
* dialog in the middle of a list. Leave the title out and no heading element is rendered,
|
|
12
|
+
* so the document outline gains nothing either.
|
|
13
|
+
*/
|
|
14
|
+
title?: ReactNode;
|
|
15
|
+
description?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The way out: the primary action, as a `Button` (its default variant). Never a link — see
|
|
18
|
+
* `docs` for where to read more.
|
|
19
|
+
*
|
|
20
|
+
* `false`, `null` and an empty fragment are no action, and draw no actions row: the action a
|
|
21
|
+
* viewer has no scope for is hidden, and `{canCreate && <Button />}` is what that leaves
|
|
22
|
+
* (2026-10-06). The row is still drawn for `docs` alone.
|
|
23
|
+
*/
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The documentation, as a **secondary button at the bottom** of the block, beside the action.
|
|
27
|
+
*
|
|
28
|
+
* The exception to rule 20, and the reason it is a prop rather than a caller's own anchor: an
|
|
29
|
+
* empty state has no chrome for the corner `ⓘ` to sit in — drawn there it hung in the air above a
|
|
30
|
+
* centred sentence, unattached to anything (2026-09-06). And a worded *link* under the sentence
|
|
31
|
+
* is what the rule was against in the first place: "Learn more on creating an App Store Connect
|
|
32
|
+
* API Key" competed with the action for the eye.
|
|
33
|
+
*
|
|
34
|
+
* So: one primary action, and next to it one quiet button that says where to read. The button
|
|
35
|
+
* is drawn here so every empty state gets the same one.
|
|
36
|
+
*/
|
|
37
|
+
docs?: {
|
|
38
|
+
href: string;
|
|
39
|
+
/** The button's text. Defaults to "More info". */
|
|
40
|
+
label?: string;
|
|
41
|
+
};
|
|
42
|
+
/** Which heading element the title becomes, as in `Card`. */
|
|
43
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
44
|
+
className?: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* What to show where there is nothing yet: an illustration, a line saying so, a line
|
|
48
|
+
* saying why it matters, and the way out.
|
|
49
|
+
*
|
|
50
|
+
* The product has at least six of these and no shared one — `modules/empty/Empty.tsx` (whose props
|
|
51
|
+
* are typed `any`), `ESAuthEmpty`, `ReportNoData`, `NewDashboardEmptyApps`,
|
|
52
|
+
* `NewDashboardEmptyBuilds`, and both `WelcomePage` and `WellcomePage`. The last of those is a fair
|
|
53
|
+
* sample of all of them:
|
|
54
|
+
*
|
|
55
|
+
* ```tsx
|
|
56
|
+
* style={{ marginTop: 31 }} // and marginTop: 19 below it
|
|
57
|
+
* className={Style.secondaryText + " acBlock acBlock-text-size--normal .acBlock-"}
|
|
58
|
+
* <SvgBuild fill="#A5B5C9" width={150} height={150} />
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* Two arbitrary pixel margins, a broken empty class name left in a concatenated
|
|
62
|
+
* string, and an icon sized and coloured at the call site. The spacing here comes from
|
|
63
|
+
* the scale, and the illustration takes its size from the component and its colour from
|
|
64
|
+
* `currentColor`.
|
|
65
|
+
*
|
|
66
|
+
* **One size (product call, 2026-08-25).** There were two, and the page-filling `md` was the
|
|
67
|
+
* default — so an `Empty` arriving in a pane that had not settled yet ballooned to a poster. What
|
|
68
|
+
* was `sm` is now the only appearance: an empty state is an answer, not a hero.
|
|
69
|
+
*
|
|
70
|
+
* One thing left to the consumer on purpose: whether this is a *change*. "No results
|
|
71
|
+
* for that search" appears in response to something the user did and should be inside
|
|
72
|
+
* a live region so it is announced; "no build profiles yet" is just what the page says
|
|
73
|
+
* on arrival and should not be. The component cannot tell which, so it claims neither.
|
|
74
|
+
*/
|
|
75
|
+
export declare function Empty({ media, title, description, children, docs, headingLevel, className }: EmptyProps): import("react").JSX.Element;
|
|
76
|
+
//# sourceMappingURL=Empty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Empty.d.ts","sourceRoot":"","sources":["../../../src/components/Empty/Empty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,kDAAkD;QAClD,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,6DAA6D;IAC7D,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,YAAgB,EAChB,SAAS,EACV,EAAE,UAAU,+BA8BZ"}
|