@appcircle/mosaic 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +90 -2
- package/dist/blocks/AISummary/AISummary.d.ts +92 -0
- package/dist/blocks/AISummary/AISummary.d.ts.map +1 -0
- package/dist/blocks/AISummary/index.d.ts +3 -0
- package/dist/blocks/AISummary/index.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts +95 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts +3 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts +52 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/index.d.ts +3 -0
- package/dist/blocks/AppcircleLayout/index.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts +169 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/index.d.ts +3 -0
- package/dist/blocks/BuildBranchList/index.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts +175 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts +3 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts +64 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts +3 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts +81 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts +3 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts +82 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/index.d.ts +3 -0
- package/dist/blocks/DashboardSummary/index.d.ts.map +1 -0
- package/dist/blocks/Directory/Directory.d.ts +53 -0
- package/dist/blocks/Directory/Directory.d.ts.map +1 -0
- package/dist/blocks/Directory/index.d.ts +3 -0
- package/dist/blocks/Directory/index.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts +283 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/index.d.ts +3 -0
- package/dist/blocks/ManagedListPanel/index.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts +98 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/index.d.ts +3 -0
- package/dist/blocks/NotificationCenter/index.d.ts.map +1 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts +82 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts.map +1 -0
- package/dist/blocks/Onboarding/index.d.ts +3 -0
- package/dist/blocks/Onboarding/index.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts +83 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts +3 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts.map +1 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts +69 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts.map +1 -0
- package/dist/blocks/PlanCard/index.d.ts +3 -0
- package/dist/blocks/PlanCard/index.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts +211 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts +36 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/index.d.ts +5 -0
- package/dist/blocks/ProfileCard/index.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts +255 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/index.d.ts +3 -0
- package/dist/blocks/ReportFilterBar/index.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts +57 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/index.d.ts +3 -0
- package/dist/blocks/RestrictedArea/index.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts +118 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/index.d.ts +3 -0
- package/dist/blocks/SearchLayout/index.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts +46 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/index.d.ts +3 -0
- package/dist/blocks/UpgradeDialog/index.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts +29 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/index.d.ts +3 -0
- package/dist/blocks/VersionIdentity/index.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +87 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +37 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +55 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +191 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/CopyButton.d.ts +43 -0
- package/dist/components/Button/CopyButton.d.ts.map +1 -0
- package/dist/components/Button/IconButton.d.ts +70 -0
- package/dist/components/Button/IconButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +7 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +99 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +85 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/CardGrid/CardGrid.d.ts +28 -0
- package/dist/components/CardGrid/CardGrid.d.ts.map +1 -0
- package/dist/components/CardGrid/index.d.ts +3 -0
- package/dist/components/CardGrid/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +64 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +34 -0
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/dist/components/Collapsible/index.d.ts +3 -0
- package/dist/components/Collapsible/index.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +126 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/MultiSelect.d.ts +81 -0
- package/dist/components/Combobox/MultiSelect.d.ts.map +1 -0
- package/dist/components/Combobox/index.d.ts +5 -0
- package/dist/components/Combobox/index.d.ts.map +1 -0
- package/dist/components/Combobox/keyboard.d.ts +24 -0
- package/dist/components/Combobox/keyboard.d.ts.map +1 -0
- package/dist/components/Command/Command.d.ts +160 -0
- package/dist/components/Command/Command.d.ts.map +1 -0
- package/dist/components/Command/CommandDialog.d.ts +25 -0
- package/dist/components/Command/CommandDialog.d.ts.map +1 -0
- package/dist/components/Command/index.d.ts +5 -0
- package/dist/components/Command/index.d.ts.map +1 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts +114 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts.map +1 -0
- package/dist/components/CommandFilter/FilterChip.d.ts +66 -0
- package/dist/components/CommandFilter/FilterChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/ValueChip.d.ts +31 -0
- package/dist/components/CommandFilter/ValueChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/index.d.ts +7 -0
- package/dist/components/CommandFilter/index.d.ts.map +1 -0
- package/dist/components/CommandSort/CommandSort.d.ts +66 -0
- package/dist/components/CommandSort/CommandSort.d.ts.map +1 -0
- package/dist/components/CommandSort/index.d.ts +3 -0
- package/dist/components/CommandSort/index.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +326 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/components/DataTable/RowActions.d.ts +30 -0
- package/dist/components/DataTable/RowActions.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +5 -0
- package/dist/components/DataTable/index.d.ts.map +1 -0
- package/dist/components/Dialog/AlertDialog.d.ts +117 -0
- package/dist/components/Dialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +107 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/index.d.ts +5 -0
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/DonutChart/DonutChart.d.ts +51 -0
- package/dist/components/DonutChart/DonutChart.d.ts.map +1 -0
- package/dist/components/DonutChart/index.d.ts +3 -0
- package/dist/components/DonutChart/index.d.ts.map +1 -0
- package/dist/components/Dot/Dot.d.ts +37 -0
- package/dist/components/Dot/Dot.d.ts.map +1 -0
- package/dist/components/Dot/index.d.ts +3 -0
- package/dist/components/Dot/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +119 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +3 -0
- package/dist/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/components/Empty/Empty.d.ts +76 -0
- package/dist/components/Empty/Empty.d.ts.map +1 -0
- package/dist/components/Empty/index.d.ts +3 -0
- package/dist/components/Empty/index.d.ts.map +1 -0
- package/dist/components/Field/Field.d.ts +143 -0
- package/dist/components/Field/Field.d.ts.map +1 -0
- package/dist/components/Field/index.d.ts +3 -0
- package/dist/components/Field/index.d.ts.map +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +102 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload/index.d.ts +3 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -0
- package/dist/components/Gallery/Gallery.d.ts +97 -0
- package/dist/components/Gallery/Gallery.d.ts.map +1 -0
- package/dist/components/Gallery/index.d.ts +3 -0
- package/dist/components/Gallery/index.d.ts.map +1 -0
- package/dist/components/HoverCard/HoverCard.d.ts +40 -0
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/components/HoverCard/index.d.ts +3 -0
- package/dist/components/HoverCard/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +70 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/InfoBox/InfoBox.d.ts +58 -0
- package/dist/components/InfoBox/InfoBox.d.ts.map +1 -0
- package/dist/components/InfoBox/index.d.ts +3 -0
- package/dist/components/InfoBox/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +203 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Item/Item.d.ts +125 -0
- package/dist/components/Item/Item.d.ts.map +1 -0
- package/dist/components/Item/index.d.ts +3 -0
- package/dist/components/Item/index.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +50 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/ListField/ListField.d.ts +80 -0
- package/dist/components/ListField/ListField.d.ts.map +1 -0
- package/dist/components/ListField/index.d.ts +3 -0
- package/dist/components/ListField/index.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +58 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +3 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +60 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +64 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Progress/Progress.d.ts +43 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +3 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts +94 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts.map +1 -0
- package/dist/components/ProgressBand/index.d.ts +3 -0
- package/dist/components/ProgressBand/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +66 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +36 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +44 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Separator/Separator.d.ts +28 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/index.d.ts +3 -0
- package/dist/components/Separator/index.d.ts.map +1 -0
- package/dist/components/Sheet/Sheet.d.ts +103 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +3 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +329 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar/index.d.ts +3 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts +126 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts.map +1 -0
- package/dist/components/SimpleListItem/index.d.ts +3 -0
- package/dist/components/SimpleListItem/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +42 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +21 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +3 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Stack/Stack.d.ts +51 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +3 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Stat/Stat.d.ts +82 -0
- package/dist/components/Stat/Stat.d.ts.map +1 -0
- package/dist/components/Stat/index.d.ts +3 -0
- package/dist/components/Stat/index.d.ts.map +1 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts +67 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts.map +1 -0
- package/dist/components/StatusHistory/index.d.ts +3 -0
- package/dist/components/StatusHistory/index.d.ts.map +1 -0
- package/dist/components/StepCard/StepCard.d.ts +80 -0
- package/dist/components/StepCard/StepCard.d.ts.map +1 -0
- package/dist/components/StepCard/index.d.ts +3 -0
- package/dist/components/StepCard/index.d.ts.map +1 -0
- package/dist/components/StepList/StepList.d.ts +68 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/index.d.ts +3 -0
- package/dist/components/StepList/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +26 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts +41 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts.map +1 -0
- package/dist/components/SwitchPanel/index.d.ts +3 -0
- package/dist/components/SwitchPanel/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +117 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/TagsInput/TagsInput.d.ts +76 -0
- package/dist/components/TagsInput/TagsInput.d.ts.map +1 -0
- package/dist/components/TagsInput/index.d.ts +3 -0
- package/dist/components/TagsInput/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +89 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Toaster/Toaster.d.ts +99 -0
- package/dist/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster/index.d.ts +3 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +91 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/dist/components/ToggleGroup/index.d.ts +3 -0
- package/dist/components/ToggleGroup/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +56 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/icons/index.d.ts +257 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15988 -0
- package/dist/internal/ClippedText.d.ts +40 -0
- package/dist/internal/ClippedText.d.ts.map +1 -0
- package/dist/internal/DisabledReason.d.ts +50 -0
- package/dist/internal/DisabledReason.d.ts.map +1 -0
- package/dist/internal/InlineSearch.d.ts +27 -0
- package/dist/internal/InlineSearch.d.ts.map +1 -0
- package/dist/internal/children.d.ts +22 -0
- package/dist/internal/children.d.ts.map +1 -0
- package/dist/internal/mergeRefs.d.ts +32 -0
- package/dist/internal/mergeRefs.d.ts.map +1 -0
- package/dist/internal/modality.d.ts +18 -0
- package/dist/internal/modality.d.ts.map +1 -0
- package/dist/internal/useDismissModality.d.ts +23 -0
- package/dist/internal/useDismissModality.d.ts.map +1 -0
- package/dist/internal/useHoverOpen.d.ts +75 -0
- package/dist/internal/useHoverOpen.d.ts.map +1 -0
- package/dist/internal/useModalDialog.d.ts +40 -0
- package/dist/internal/useModalDialog.d.ts.map +1 -0
- package/dist/internal/usePopover.d.ts +43 -0
- package/dist/internal/usePopover.d.ts.map +1 -0
- package/dist/mosaic.css +2 -0
- package/package.json +81 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAuBnC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,iFAAiF;IACjF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAoB,EACpB,IAAW,EACX,SAAS,EACT,QAAQ,EACT,EAAE,iBAAiB,+BAiCnB;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BAwF7D;AAwHD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gFAAgF;AAChF,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,cAAc,+BAkBhE;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG;IAC5D;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAoB,EACpB,IAAW,EAEX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,SAAS,+BAgBX;yBA3Be,IAAI;aA6BJ,YAAY;aAChB,QAAQ;aACP,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjE,YAAY,EACV,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,WAAW,EACX,QAAQ,EACR,OAAO,EACR,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type TagsInputProps = {
|
|
3
|
+
value: string[];
|
|
4
|
+
onChange: (value: string[]) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Splits typed and pasted text. Typing one of these characters commits the tag,
|
|
7
|
+
* which is also what makes pasting a comma-separated list work — a paste arrives
|
|
8
|
+
* as a change like any other.
|
|
9
|
+
*/
|
|
10
|
+
separator?: RegExp;
|
|
11
|
+
/**
|
|
12
|
+
* Return a message to reject the candidate, or `null` to accept it. It receives
|
|
13
|
+
* the list as it stands, so a duplicate rule belongs here too — which is why
|
|
14
|
+
* there is no `allowDuplicates` prop and no built-in copy. Mosaic ships no product
|
|
15
|
+
* strings, and "already added" is one.
|
|
16
|
+
*/
|
|
17
|
+
validate?: (candidate: string, current: string[]) => string | null;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Shows the tags with no input and no remove buttons. */
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
/** Names each remove button. */
|
|
23
|
+
removeLabel?: (tag: string) => string;
|
|
24
|
+
/**
|
|
25
|
+
* Tags drawn before `value`, inside the same box, that cannot be removed - not by their own
|
|
26
|
+
* button, which they do not have, and not by Backspace. They are not part of `value`: the
|
|
27
|
+
* consumer's list stays the reader's own tags. A binary's tags written by its build are the
|
|
28
|
+
* case (2026-10-14).
|
|
29
|
+
*/
|
|
30
|
+
readOnlyTags?: string[];
|
|
31
|
+
/** Shown inside each read-only tag - pass `<Icon icon={icons.lock} />`. */
|
|
32
|
+
readOnlyIcon?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Block padding equal to the inline padding, for a box that is expected to hold several rows
|
|
35
|
+
* of tags and stands alone rather than in a row of 28px controls. Off by default: a one-row box
|
|
36
|
+
* is the `Input` beside it's height (rule 19).
|
|
37
|
+
*/
|
|
38
|
+
spacious?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The text currently typed but not yet committed as a tag.
|
|
41
|
+
*
|
|
42
|
+
* The draft stays internal - that is the field's one exception to the controlled rule - but a
|
|
43
|
+
* consumer whose *other* control depends on it needs to see it. The testing groups page is the
|
|
44
|
+
* case: its Add button is disabled while the field is empty, and without this an address that
|
|
45
|
+
* has been typed and not yet separated reads as empty, so the button the reader is aiming at is
|
|
46
|
+
* still disabled when they get there (2026-09-11).
|
|
47
|
+
*/
|
|
48
|
+
onDraftChange?: (text: string) => void;
|
|
49
|
+
/** Set only outside a `Field`; inside one it comes from context. */
|
|
50
|
+
invalid?: boolean;
|
|
51
|
+
autoFocus?: boolean;
|
|
52
|
+
className?: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* A list of short values built one at a time. The product calls this `TaggableTextField` — 1,058
|
|
56
|
+
* lines across five files, 18 call sites.
|
|
57
|
+
*
|
|
58
|
+
* Most of that size was API surface that nothing used. `deletable` and `isWorkflow`
|
|
59
|
+
* have zero call sites. `deleteTag` duplicates `onChange`, so removal travelled a
|
|
60
|
+
* second channel that a consumer had to wire separately. `dashBorder` draws a
|
|
61
|
+
* dashed border and is passed as `dashBorder={hasTag?.length > 0}` — a dashed box
|
|
62
|
+
* *because* the field is populated, which is drift rather than a decision, so it is
|
|
63
|
+
* not carried over. `suggestions` has one call site and is Combobox's job.
|
|
64
|
+
*
|
|
65
|
+
* What it gains is the part that was missing: the tags are announced. Committing a
|
|
66
|
+
* tag with Enter changed nothing observable to a screen reader before — no live
|
|
67
|
+
* region, and the close control was an unlabelled `<svg onClick>` that Tab could
|
|
68
|
+
* not reach, so tags could be added but never removed without a mouse.
|
|
69
|
+
*
|
|
70
|
+
* The draft text is internal state, which is the one exception to the controlled
|
|
71
|
+
* rule: the field's value is the tag list, and that stays controlled. The original
|
|
72
|
+
* exposes the draft as `text`/`onTextChange` and one call site uses it — the cost
|
|
73
|
+
* being that every other consumer still had to thread a second state through.
|
|
74
|
+
*/
|
|
75
|
+
export declare function TagsInput({ value, onChange, separator, validate, placeholder, disabled, readOnly, removeLabel, readOnlyTags, readOnlyIcon, spacious, onDraftChange, invalid, autoFocus, className }: TagsInputProps): import("react").JSX.Element;
|
|
76
|
+
//# sourceMappingURL=TagsInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagsInput.d.ts","sourceRoot":"","sources":["../../../src/components/TagsInput/TagsInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAC;AAM/E,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,GAAG,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,SAAoB,EACpB,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,WAAsC,EACtC,YAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,OAAO,EACP,SAAS,EACT,SAAS,EACV,EAAE,cAAc,+BA2LhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TagsInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { TextareaHTMLAttributes } from "react";
|
|
2
|
+
export type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "className" | "style"> & {
|
|
3
|
+
/** Set only outside a `Field`; inside one it comes from context. */
|
|
4
|
+
invalid?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Shows a live character count when `maxLength` is set. On by default, and the
|
|
7
|
+
* reason is in the component's doc comment — a silent limit is the problem, not the
|
|
8
|
+
* counter.
|
|
9
|
+
*/
|
|
10
|
+
showCount?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The box grows with what is typed rather than scrolling inside a fixed height, up to a cap.
|
|
13
|
+
*
|
|
14
|
+
* For a field whose content has no natural length - release notes, a message to testers.
|
|
15
|
+
* `rows` still says where it starts. See `.autoGrow` in the stylesheet for the cap and for
|
|
16
|
+
* what happens where the browser does not support it.
|
|
17
|
+
*/
|
|
18
|
+
autoGrow?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Takes the height of its container rather than its `rows`, and scrolls inside it.
|
|
21
|
+
*
|
|
22
|
+
* For a panel that swaps a text for this field in place and must not change size doing it -
|
|
23
|
+
* the message to testers, whose edit made the card jump (UAT, 2026-09-29). The container sets
|
|
24
|
+
* the height; the counter keeps its line under the box.
|
|
25
|
+
*/
|
|
26
|
+
fill?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* A multi-line text field.
|
|
31
|
+
*
|
|
32
|
+
* The product has seven `<textarea>` elements and no shared component, so each carries its own
|
|
33
|
+
* styling: the release-notes field, the beta submission notes, the message to testers, and four
|
|
34
|
+
* more inside `TextField`, `TextInput` and the two `TaggableTextArea` variants.
|
|
35
|
+
*
|
|
36
|
+
* Inside a `Field` the id, `aria-describedby`, `aria-invalid` and `required` come from
|
|
37
|
+
* context rather than being passed in, the same contract as `Input`.
|
|
38
|
+
*
|
|
39
|
+
* **The counter is not decoration.** `maxLength` makes the browser stop accepting input
|
|
40
|
+
* without saying anything: keystrokes simply stop appearing, which reads as a broken
|
|
41
|
+
* field rather than a full one. Two of the product's textareas set it. So when there is a
|
|
42
|
+
* limit there is a count, and it is wired into `aria-describedby` so it is read when the
|
|
43
|
+
* field is focused.
|
|
44
|
+
*
|
|
45
|
+
* It is deliberately **not** a live region. Announcing the remaining characters on every
|
|
46
|
+
* keystroke would talk over the typing it is describing; the count is there to be read on
|
|
47
|
+
* arrival and checked on demand.
|
|
48
|
+
*
|
|
49
|
+
* **It was taken out for a day and asked back.** On 2026-09-23 the count was removed on the
|
|
50
|
+
* argument that it added a row to a field's height its neighbours did not have and bought a
|
|
51
|
+
* number nobody reads until they are already at the end of it. The publish metadata panels
|
|
52
|
+
* answered that the next day: their limits are Apple's, a reader filling in a 4000-character
|
|
53
|
+
* description is writing *to* the limit rather than bumping into it, and a box that silently
|
|
54
|
+
* stops accepting characters reads as broken (product call, 2026-09-24). So the rule stands as
|
|
55
|
+
* written above - where there is a limit there is a count - and the height it costs is the
|
|
56
|
+
* price of saying what the limit is.
|
|
57
|
+
*
|
|
58
|
+
* Resizing is vertical only. A textarea that can be dragged wider than the form around it
|
|
59
|
+
* takes the layout with it, and the horizontal handle is the browser's default rather
|
|
60
|
+
* than anyone's decision.
|
|
61
|
+
*/
|
|
62
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "className" | "style"> & {
|
|
63
|
+
/** Set only outside a `Field`; inside one it comes from context. */
|
|
64
|
+
invalid?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Shows a live character count when `maxLength` is set. On by default, and the
|
|
67
|
+
* reason is in the component's doc comment — a silent limit is the problem, not the
|
|
68
|
+
* counter.
|
|
69
|
+
*/
|
|
70
|
+
showCount?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The box grows with what is typed rather than scrolling inside a fixed height, up to a cap.
|
|
73
|
+
*
|
|
74
|
+
* For a field whose content has no natural length - release notes, a message to testers.
|
|
75
|
+
* `rows` still says where it starts. See `.autoGrow` in the stylesheet for the cap and for
|
|
76
|
+
* what happens where the browser does not support it.
|
|
77
|
+
*/
|
|
78
|
+
autoGrow?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Takes the height of its container rather than its `rows`, and scrolls inside it.
|
|
81
|
+
*
|
|
82
|
+
* For a panel that swaps a text for this field in place and must not change size doing it -
|
|
83
|
+
* the message to testers, whose edit made the card jump (UAT, 2026-09-29). The container sets
|
|
84
|
+
* the height; the counter keeps its line under the box.
|
|
85
|
+
*/
|
|
86
|
+
fill?: boolean;
|
|
87
|
+
className?: string;
|
|
88
|
+
} & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
89
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAKpD,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,WAAW,GAAG,OAAO,CACtB,GAAG;IACF,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,QAAQ;IA5DnB,oEAAoE;cAC1D,OAAO;IACjB;;;;OAIG;gBACS,OAAO;IACnB;;;;;;OAMG;eACQ,OAAO;IAClB;;;;;;OAMG;WACI,OAAO;gBACF,MAAM;uDAwGnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type ToastTone = "info" | "success" | "warning" | "danger";
|
|
3
|
+
export type ToastItem = {
|
|
4
|
+
/** Stable identity. Used as the React key and passed back to `onDismiss`. */
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The voice, and with it the glyph: each tone leads with its own icon — ⓘ, a circled
|
|
8
|
+
* check, the warning triangle, a circled cross — chosen here and not customizable
|
|
9
|
+
* (product decision, 2026-08-24, on the HeroUI model): a toast is the system speaking,
|
|
10
|
+
* and the system speaks one way.
|
|
11
|
+
*/
|
|
12
|
+
tone?: ToastTone;
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
/** The optional second line. A toast is one line or two, never a paragraph. */
|
|
15
|
+
description?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* One action. A real `<button>`, not a link styled as one — the product's toast renders its
|
|
18
|
+
* "Restart" action as a `<div onClick>` with inline borders, which cannot be reached with Tab and
|
|
19
|
+
* is announced as nothing.
|
|
20
|
+
*
|
|
21
|
+
* A toast carrying an action never dismisses itself, whatever `duration` says: a
|
|
22
|
+
* button that disappears while you are moving towards it is worse than no button.
|
|
23
|
+
*/
|
|
24
|
+
action?: {
|
|
25
|
+
label: string;
|
|
26
|
+
onAction: () => void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Milliseconds before it dismisses itself. `0` keeps it until dismissed.
|
|
30
|
+
*
|
|
31
|
+
* The default is 4000 - Sonner's, shadcn's toast (2026-09-28) - against the original's 2000.
|
|
32
|
+
* Two seconds is not long enough to
|
|
33
|
+
* notice a message, move your eyes to it and read it, and there is no way to ask for
|
|
34
|
+
* more time — see the component's note on WCAG 2.2.1.
|
|
35
|
+
*/
|
|
36
|
+
duration?: number;
|
|
37
|
+
};
|
|
38
|
+
export type ToasterProps = {
|
|
39
|
+
toasts: ToastItem[];
|
|
40
|
+
onDismiss: (id: string) => void;
|
|
41
|
+
/**
|
|
42
|
+
* How far to hold off the bottom edge — any CSS length, including a `var()`.
|
|
43
|
+
*
|
|
44
|
+
* For a host that has something else fixed along that edge. The product keeps a status bar across
|
|
45
|
+
* the foot of every page, and the stack came up flush against it; the offset moves the
|
|
46
|
+
* *viewport*, so the toasts keep their own padding and their own animation.
|
|
47
|
+
*
|
|
48
|
+
* This exists so that a host does not have to reach into this component with a stylesheet
|
|
49
|
+
* of its own. The application had a `mosaic-bridge.css` doing exactly that, which is a file
|
|
50
|
+
* whose whole job is to know both sides — and the first thing to break when either moves.
|
|
51
|
+
*/
|
|
52
|
+
offset?: string;
|
|
53
|
+
/** Names the region so it can be jumped to. */
|
|
54
|
+
"aria-label"?: string;
|
|
55
|
+
/** Names each toast's close button — `Dismiss` by default, a plain string for
|
|
56
|
+
react-intl hosts. It was a per-toast function once, and nothing ever varied it. */
|
|
57
|
+
dismissLabel?: string;
|
|
58
|
+
className?: string;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Transient messages, always in the bottom-end corner. The product calls this through `showToast`,
|
|
62
|
+
* at 109 call sites.
|
|
63
|
+
*
|
|
64
|
+
* **One corner, no `position` prop** (product decision, 2026-08-24): the prop existed and
|
|
65
|
+
* every message in the product came from the same place. A choice nobody makes is API
|
|
66
|
+
* surface for free — the HeroUI model this rewrite leans on makes the same call in spirit:
|
|
67
|
+
* the *system's* messages have one home.
|
|
68
|
+
*
|
|
69
|
+
* **Controlled, unlike shadcn's.** shadcn pairs a `<Toaster />` with a `useToast()` hook that owns
|
|
70
|
+
* the queue. Here the queue is a prop, because the product already keeps it — `ToastService` reads
|
|
71
|
+
* from `useNotificationsModel()` — and a library that brought its own store would mean two, with
|
|
72
|
+
* the app's one no longer the truth. Same reasoning as the form layer: Mosaic renders, the app
|
|
73
|
+
* remembers.
|
|
74
|
+
*
|
|
75
|
+
* **What the original is missing, in the order it matters.**
|
|
76
|
+
*
|
|
77
|
+
* *Nothing is announced.* There is no `aria-live`, no `role="status"` and no
|
|
78
|
+
* `role="alert"` anywhere in it, so every one of those 109 messages is silent to a
|
|
79
|
+
* screen reader. Here the stack sits in one persistent `aria-live="polite"` region and a
|
|
80
|
+
* failing tone additionally carries `role="alert"`, which interrupts from inside it. Two
|
|
81
|
+
* separate containers was the first attempt and it lost the order — see the comment on
|
|
82
|
+
* the region below.
|
|
83
|
+
*
|
|
84
|
+
* *The close button is not a button.* It is a bare `<svg className="toast__close">` with
|
|
85
|
+
* no handler at all — the click handler is on the whole toast — so it cannot be focused,
|
|
86
|
+
* has no name, and only looks like a control.
|
|
87
|
+
*
|
|
88
|
+
* *Nothing pauses.* `setTimeout(..., 2000)` and that is that. WCAG 2.2.1 asks that a
|
|
89
|
+
* time limit can be turned off, adjusted or extended; hovering anywhere in the stack
|
|
90
|
+
* pauses every timer here, as Sonner (shadcn's toast) does. Not focus: a focused ✕ that
|
|
91
|
+
* removes its own toast sends no `blur`, and the stack stayed paused (2026-09-28).
|
|
92
|
+
*
|
|
93
|
+
* One thing deliberately not carried over: the original's `ToastComponentWithConfirm`,
|
|
94
|
+
* a toast that asks "Are you sure?" and offers Restart. A decision belongs in an
|
|
95
|
+
* `AlertDialog` — something that auto-dismisses and can be missed entirely is the wrong
|
|
96
|
+
* place to ask a question.
|
|
97
|
+
*/
|
|
98
|
+
export declare function Toaster({ toasts, onDismiss, offset, dismissLabel, className, ...rest }: ToasterProps): import("react").JSX.Element;
|
|
99
|
+
//# sourceMappingURL=Toaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../src/components/Toaster/Toaster.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAQtD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG;IACtB,6EAA6E;IAC7E,EAAE,EAAE,MAAM,CAAC;IACX;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACjD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;0FACsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAYF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,OAAO,CAAC,EACtB,MAAM,EACN,SAAS,EACT,MAAM,EACN,YAAwB,EACxB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,YAAY,+BAwEd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toaster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type ToggleGroupItem = {
|
|
3
|
+
value: string;
|
|
4
|
+
/**
|
|
5
|
+
* Required, and required even when `hideLabel` is set — then it is read but not shown.
|
|
6
|
+
*
|
|
7
|
+
* This is the one prop that exists to stop a bug rather than to enable a design.
|
|
8
|
+
* `SwitchButtonList` is icon-only with no text alternative anywhere, and the theme
|
|
9
|
+
* picker is three 15×15 unlabelled `<div>`s. Neither has anything to announce, and
|
|
10
|
+
* neither call site had a place to put it. Making the label the required thing and the
|
|
11
|
+
* *showing* of it optional means there is nowhere for that to happen.
|
|
12
|
+
*/
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export type ToggleGroupProps = {
|
|
17
|
+
items: ToggleGroupItem[];
|
|
18
|
+
/**
|
|
19
|
+
* The chosen value. Not an index — `InlineTabButtonGroup` is index-based, and every one
|
|
20
|
+
* of its fourteen call sites pays for it with an `index === 0 ? "iphone" : "ipad"` on
|
|
21
|
+
* the way in and another on the way out.
|
|
22
|
+
*
|
|
23
|
+
* A value matching no item means nothing is chosen, which is a real state and is
|
|
24
|
+
* rendered as one. `SortBox` writes `value.view || "grid"`, so with no view stored the
|
|
25
|
+
* Board button lights up as though it had been picked.
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
onChange: (value: string) => void;
|
|
29
|
+
/** Shows the icons only. The labels are still there, and still announced. */
|
|
30
|
+
hideLabels?: boolean;
|
|
31
|
+
/** The whole control. Per-item disabling is not a thing the product does. */
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Why the whole control is disabled. The group is described by it at all times and shows it as
|
|
35
|
+
* a tooltip under the group; its options give up the pointer so the hover reaches the group.
|
|
36
|
+
*/
|
|
37
|
+
disabledReason?: ReactNode;
|
|
38
|
+
className?: string;
|
|
39
|
+
} & ToggleGroupNaming;
|
|
40
|
+
/**
|
|
41
|
+
* Named on screen or named to assistive technology, and one of the two is required: a
|
|
42
|
+
* radiogroup with no name announces only its options.
|
|
43
|
+
*
|
|
44
|
+
* `label` exists because the obvious alternative does not work. Wrapping this in a `Field`
|
|
45
|
+
* looks right and produces a `<label for>` pointing at nothing — a `Field` labels a control by
|
|
46
|
+
* its id, and a group of buttons has no single control to point at. Measured in the ordering
|
|
47
|
+
* panel: `for="_r_5_-control"`, and no element with that id. `RadioGroup` already avoids this
|
|
48
|
+
* by rendering its own `fieldset` and `legend`; this is the same decision.
|
|
49
|
+
*/
|
|
50
|
+
export type ToggleGroupNaming = {
|
|
51
|
+
/** Shown above the options, and the group's accessible name. */
|
|
52
|
+
label: ReactNode;
|
|
53
|
+
"aria-label"?: never;
|
|
54
|
+
} | {
|
|
55
|
+
label?: never;
|
|
56
|
+
"aria-label": string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* A row of mutually exclusive buttons that choose a value — a view switcher, a mode, a
|
|
60
|
+
* billing period.
|
|
61
|
+
*
|
|
62
|
+
* The product has five implementations of this across **eighteen** instances, and not one of them
|
|
63
|
+
* is reachable from a keyboard. There is no `aria-pressed`, no `role="radiogroup"`, no
|
|
64
|
+
* `role="group"` and no `tabIndex` anywhere in the codebase, and three of the five are `<div
|
|
65
|
+
* onClick>`.
|
|
66
|
+
*
|
|
67
|
+
* **`role="radiogroup"`, not `tablist`.** This corrects something recorded earlier in this
|
|
68
|
+
* library: `InlineTabButtonGroup` was read as `Tabs enclosed`, and it is used as both.
|
|
69
|
+
* Request/Response in the webhook modal swaps a panel and is tabs. Variable/File chooses
|
|
70
|
+
* the *type* of a variable that then gets submitted with the form, and month/year chooses
|
|
71
|
+
* a billing period — those are values, not panels, and giving them `tablist` promises a
|
|
72
|
+
* `tabpanel` that does not exist. One component doing two semantically different jobs is
|
|
73
|
+
* why neither of them got the right roles.
|
|
74
|
+
*
|
|
75
|
+
* The visual distinction is none: this looks like `Tabs enclosed` on purpose, because in
|
|
76
|
+
* the product they are the same pill row. The difference is entirely in what selecting one
|
|
77
|
+
* means, and therefore entirely in the roles and the keyboard.
|
|
78
|
+
*
|
|
79
|
+
* **Controlled, with no state of its own.** `InlineTabButtonGroup` keeps a copy of
|
|
80
|
+
* `selectedIndex` in `useState` and fires `onChange` from an effect, so every parent gets
|
|
81
|
+
* a change callback on first render for a change nobody made. That failure needs internal
|
|
82
|
+
* state to exist.
|
|
83
|
+
*
|
|
84
|
+
* **shadcn's `type="multiple"` is not here.** It would be a different keyboard contract,
|
|
85
|
+
* not a flag: `role="group"` with `aria-pressed` buttons that are each their own tab stop,
|
|
86
|
+
* against one tab stop and arrow keys that also select. The product has no button-shaped
|
|
87
|
+
* multi-select to justify writing it — its multi-selects are all rows of switches and
|
|
88
|
+
* checkboxes, which is `Switch` and `Checkbox`.
|
|
89
|
+
*/
|
|
90
|
+
export declare function ToggleGroup({ items, value, onChange, hideLabels, disabled: disabledProp, disabledReason, label, className, ...rest }: ToggleGroupProps): import("react").JSX.Element;
|
|
91
|
+
//# sourceMappingURL=ToggleGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleGroup/ToggleGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB;;;;;;;;OAQG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,iBAAiB,CAAC;AAEtB;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACzB;IACE,gEAAgE;IAChE,KAAK,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,GACD;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,QAAQ,EACR,UAAkB,EAClB,QAAQ,EAAE,YAAoB,EAC9B,cAAc,EACd,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACR,EAAE,gBAAgB,+BAyHlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
export type TooltipProps = {
|
|
3
|
+
/** The described control. It receives a ref and `aria-describedby`, so it must forward its ref. */
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
/**
|
|
6
|
+
* Anything else is passed straight through to the control, which is what lets this be
|
|
7
|
+
* wrapped *around* another wrapper's trigger:
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Popover trigger={<Tooltip content="Filter"><IconButton … /></Tooltip>} />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* `Popover` clones its trigger to add a ref, `aria-expanded` and an `onClick`. Without this
|
|
14
|
+
* they landed on `Tooltip`, which owned none of them and dropped them — so the button did
|
|
15
|
+
* nothing when pressed and the panel had nothing to anchor to. Handlers are composed rather
|
|
16
|
+
* than replaced, and refs merged, so the tooltip's own hover behaviour survives.
|
|
17
|
+
*/
|
|
18
|
+
[prop: string]: unknown;
|
|
19
|
+
/**
|
|
20
|
+
* Supplementary text. Never the only place something is said: a tooltip is
|
|
21
|
+
* unavailable on touch and easy to miss.
|
|
22
|
+
*/
|
|
23
|
+
content: ReactNode;
|
|
24
|
+
align?: "start" | "center" | "end";
|
|
25
|
+
/** Skip the tooltip entirely, e.g. when the label is already visible. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the open bubble is added to the control's `aria-describedby`. On by default.
|
|
29
|
+
*
|
|
30
|
+
* Off only where the control already carries the same words through a description of its own,
|
|
31
|
+
* which is what a `disabledReason` does: the reason is linked permanently, open or not, and a
|
|
32
|
+
* bubble linked as well would have a screen reader say the sentence twice while it is showing.
|
|
33
|
+
*/
|
|
34
|
+
describes?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* A hint attached to a control.
|
|
39
|
+
*
|
|
40
|
+
* Three requirements from WCAG 1.4.13 (Content on Hover or Focus) drive the design, and all three
|
|
41
|
+
* are missing from the product, where 85 tooltips are a CSS `:hover` on a `data-tooltip` attribute:
|
|
42
|
+
*
|
|
43
|
+
* - **Dismissible.** Escape hides it without moving the pointer or focus. A
|
|
44
|
+
* CSS `:hover` tooltip cannot be dismissed at all, so it can sit on top of
|
|
45
|
+
* the thing you are trying to read.
|
|
46
|
+
* - **Hoverable.** The pointer can move onto the bubble without it vanishing,
|
|
47
|
+
* which is what the leave delay is for.
|
|
48
|
+
* - **Persistent.** It stays until dismissed or the trigger loses hover and
|
|
49
|
+
* focus — it does not time out.
|
|
50
|
+
*
|
|
51
|
+
* It also opens on focus, not only hover. A `:hover` tooltip is invisible to
|
|
52
|
+
* anyone using a keyboard, which is the single biggest problem with the 85 in
|
|
53
|
+
* the product today.
|
|
54
|
+
*/
|
|
55
|
+
export declare function Tooltip({ children, content, align, disabled, describes, className, ...rest }: TooltipProps): import("react").JSX.Element;
|
|
56
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAkErD,MAAM,MAAM,YAAY,GAAG;IACzB,mGAAmG;IACnG,QAAQ,EAAE,YAAY,CAAC;IACvB;;;;;;;;;;;;OAYG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,KAAgB,EAChB,QAAgB,EAChB,SAAgB,EAChB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,YAAY,+BA4Id"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|