@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,64 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, "className" | "style" | "type" | "children"> & {
|
|
3
|
+
/** Sits beside the control, inside its own `<label>`. */
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
/** Secondary line under the label. */
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Neither checked nor unchecked — a "select all" above a partial selection.
|
|
9
|
+
* A DOM property rather than an attribute, so it is applied through a ref.
|
|
10
|
+
*/
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Why it cannot be ticked - `Switch`'s `disabledReason`, on the same terms: linked to the input
|
|
15
|
+
* through `aria-describedby` at all times, shown as a tooltip under the box itself.
|
|
16
|
+
*/
|
|
17
|
+
disabledReason?: ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A native `<input type="checkbox">` with its appearance replaced.
|
|
22
|
+
*
|
|
23
|
+
* The product contains zero native checkboxes — `type="checkbox"` appears no times in the codebase,
|
|
24
|
+
* and every checkbox is a `div` with an `onClick`. So none of them can be focused or toggled with
|
|
25
|
+
* the keyboard, none announce a checked state, and none take part in form submission. Building on
|
|
26
|
+
* the native element is how all of that comes back, and none of it is our code.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Checkbox({ children, description, indeterminate, invalid, checked, value, disabled, disabledReason, onChange, className, ...rest }: CheckboxProps): import("react").JSX.Element;
|
|
29
|
+
export declare namespace Checkbox {
|
|
30
|
+
export { CheckboxGroup as Group };
|
|
31
|
+
}
|
|
32
|
+
export type CheckboxGroupProps = {
|
|
33
|
+
/** Becomes the group's `<legend>` — a `<label>` cannot name several controls. */
|
|
34
|
+
label?: ReactNode;
|
|
35
|
+
help?: ReactNode;
|
|
36
|
+
error?: ReactNode;
|
|
37
|
+
/** The checked members, by `value`. */
|
|
38
|
+
value: string[];
|
|
39
|
+
onChange: (value: string[]) => void;
|
|
40
|
+
name?: string;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* A set that has to be answered. Marks the legend, the way `Field` marks a label.
|
|
44
|
+
*
|
|
45
|
+
* Not put on the checkboxes themselves: the native `required` on a checkbox means *that* box
|
|
46
|
+
* must be ticked, which is a different statement from "tick at least one of these". The mark
|
|
47
|
+
* is what is said here; the form is what enforces it.
|
|
48
|
+
*/
|
|
49
|
+
required?: boolean;
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* A labelled group of checkboxes. Renders a real `fieldset`/`legend`, of which The product has none
|
|
55
|
+
* — so today a group of checkboxes is announced as a loose run of controls with no indication of
|
|
56
|
+
* what they belong to.
|
|
57
|
+
*
|
|
58
|
+
* **One arrangement, not two** — see `RadioGroup`, which lost its `variant` on the same day and for
|
|
59
|
+
* the same reason (2026-09-23). The box, a rule between rows, the label leading and the control
|
|
60
|
+
* trailing: that is what a group looks like, and it is what all 36 of this component's
|
|
61
|
+
* variant-naming call sites had already asked for.
|
|
62
|
+
*/
|
|
63
|
+
export declare function CheckboxGroup({ label, help, error, value, onChange, name, disabled, required, children, className }: CheckboxGroupProps): import("react").JSX.Element;
|
|
64
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAe5D,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAC5C,GAAG;IACF,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sCAAsC;IACtC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,WAAW,EACX,aAAqB,EACrB,OAAO,EACP,OAAO,EACP,KAAK,EACL,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,+BA6Ef;yBAzFe,QAAQ;aA+KP,aAAa;;AApF9B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,iFAAiF;IACjF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uCAAuC;IACvC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACV,EAAE,kBAAkB,+BAuCpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type CollapsibleProps = {
|
|
3
|
+
/** The always-visible line. */
|
|
4
|
+
summary: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Secondary line under the summary. */
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/** Uncontrolled starting state. */
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
/** Controlled state. Pass with `onOpenChange`. */
|
|
11
|
+
open?: boolean;
|
|
12
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A section that expands.
|
|
17
|
+
*
|
|
18
|
+
* Built on `<details>`/`<summary>`, which supplies the open state, Enter and
|
|
19
|
+
* Space, the expanded state in the accessibility tree, and the fact that
|
|
20
|
+
* collapsed content is genuinely absent rather than merely invisible — none of it
|
|
21
|
+
* our code.
|
|
22
|
+
*
|
|
23
|
+
* Worth knowing, because it is easy to assume otherwise: `<details>` does *not* write an
|
|
24
|
+
* `aria-expanded` attribute. The state is computed from the `open` attribute, so `open` is the
|
|
25
|
+
* thing to read and to assert on. The product has no `<details>` and no `aria-expanded` anywhere,
|
|
26
|
+
* so its expanding panels report nothing about being open.
|
|
27
|
+
*
|
|
28
|
+
* Not animated. `<details>` cannot be transitioned without `::details-content`,
|
|
29
|
+
* which is not baseline, and a section that snaps open is not worse — it is
|
|
30
|
+
* quicker. When the pseudo-element is baseline, a transition goes here and
|
|
31
|
+
* nothing else changes.
|
|
32
|
+
*/
|
|
33
|
+
export declare function Collapsible({ summary, children, description, defaultOpen, open, onOpenChange, className }: CollapsibleProps): import("react").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=Collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/Collapsible.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+BAA+B;IAC/B,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,wCAAwC;IACxC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mCAAmC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kDAAkD;IAClD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,SAAS,EACV,EAAE,gBAAgB,+BAqClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type ComboboxOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** Second line. The product calls this `expression`. */
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/** Leading slot: a platform mark, a status dot. */
|
|
8
|
+
media?: ReactNode;
|
|
9
|
+
/** Trailing and quiet — an expiry date, a count. */
|
|
10
|
+
meta?: ReactNode;
|
|
11
|
+
/** Extra terms that should match — an id, an alias, a bundle identifier. */
|
|
12
|
+
keywords?: string[];
|
|
13
|
+
/** Options sharing a group are rendered under one heading. */
|
|
14
|
+
group?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* A control inside the row, acting on it without choosing it — see `CommandItem.action`.
|
|
18
|
+
*
|
|
19
|
+
* For a list the reader *edits*: the publish module's languages, where picking a row adds
|
|
20
|
+
* the locale to the listing and this removes it. Both operations then live in the one place
|
|
21
|
+
* the reader already opened to see which locales there are, instead of the removal being a
|
|
22
|
+
* button beside the closed field that acts on whatever is currently shown.
|
|
23
|
+
*/
|
|
24
|
+
action?: {
|
|
25
|
+
icon: ReactNode;
|
|
26
|
+
/** Names the button — "Remove English (U.S.)". */
|
|
27
|
+
label: string;
|
|
28
|
+
onAction: () => void;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type ComboboxProps = {
|
|
32
|
+
options: ComboboxOption[];
|
|
33
|
+
value: string | undefined;
|
|
34
|
+
onChange: (value: string) => void;
|
|
35
|
+
/** What the trigger says with nothing chosen. */
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/** The search field inside the panel. Defaults to `Search`. */
|
|
38
|
+
searchPlaceholder?: string;
|
|
39
|
+
/**
|
|
40
|
+
* A value the list does not offer can be typed in and chosen anyway.
|
|
41
|
+
*
|
|
42
|
+
* This is what the product's `editable` meant, and it is a real requirement rather than a
|
|
43
|
+
* convenience: the build configuration's project and scheme fields are populated from the
|
|
44
|
+
* repository when it can be parsed and typed by hand when it cannot — "Enter a New Project" is
|
|
45
|
+
* the placeholder the product shows. Off, which is the right default and what 58 of its roughly
|
|
46
|
+
* 81 call sites already were.
|
|
47
|
+
*/
|
|
48
|
+
creatable?: boolean;
|
|
49
|
+
/** What the create row says. Receives what has been typed. */
|
|
50
|
+
createLabel?: (query: string) => string;
|
|
51
|
+
/**
|
|
52
|
+
* The label for `value` when `options` does not contain it.
|
|
53
|
+
*
|
|
54
|
+
* **Because the list a control offers is not always the list its current value came from.**
|
|
55
|
+
* The provisioning-profile selector removes every profile already chosen by a sibling row
|
|
56
|
+
* from its own options — otherwise the same profile could be picked twice — which includes
|
|
57
|
+
* *this* row's value. Without this the trigger would fall back to showing a raw GUID.
|
|
58
|
+
*
|
|
59
|
+
* It also carries the case where the value is not an id at all: the same selector shows
|
|
60
|
+
* "Provisioning Profile Not Found" (with `invalid`) where the stored id names a profile that
|
|
61
|
+
* has been deleted since.
|
|
62
|
+
*/
|
|
63
|
+
valueLabel?: ReactNode;
|
|
64
|
+
size?: "sm" | "md" | "lg";
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Why the control cannot be changed. Giving one disables it and says the sentence on the
|
|
68
|
+
* trigger (see `Button`'s `disabledReason`); the panel is not drawn at all. For a combobox
|
|
69
|
+
* outside a `Field` - inside one, `Field`'s own `disabledReason` says it.
|
|
70
|
+
*/
|
|
71
|
+
disabledReason?: ReactNode;
|
|
72
|
+
invalid?: boolean;
|
|
73
|
+
/** Shown when filtering leaves nothing. */
|
|
74
|
+
emptyMessage?: string;
|
|
75
|
+
/**
|
|
76
|
+
* What has been typed in the panel's search field.
|
|
77
|
+
*
|
|
78
|
+
* For a list the *server* narrows. Mosaic filters what it is given, which is enough for a list
|
|
79
|
+
* the caller holds in full; an LDAP's groups arrive a page at a time from an endpoint that
|
|
80
|
+
* takes the search term, and filtering only the page in hand would hide every match that
|
|
81
|
+
* happens to be on the next one. The caller re-fetches and hands back new `options`; the
|
|
82
|
+
* built-in filtering still runs over them, which costs nothing once the server has matched.
|
|
83
|
+
*/
|
|
84
|
+
onSearchChange?: (query: string) => void;
|
|
85
|
+
/**
|
|
86
|
+
* A trailing row that asks for the next page of the same server-paged list.
|
|
87
|
+
*
|
|
88
|
+
* Choosing it does not close the panel: the reader asked for *more of this list*, so ending up
|
|
89
|
+
* with the list shut is the one outcome that cannot be what they meant.
|
|
90
|
+
*/
|
|
91
|
+
hasMore?: boolean;
|
|
92
|
+
onLoadMore?: () => void;
|
|
93
|
+
/** What the load-more row says. */
|
|
94
|
+
loadMoreLabel?: string;
|
|
95
|
+
className?: string;
|
|
96
|
+
/** Names the trigger and the list. Omit inside a `Field`, which names it already. */
|
|
97
|
+
"aria-label"?: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* A single-select whose panel is a `cmdk` search over the options.
|
|
101
|
+
*
|
|
102
|
+
* **The panel is `Command`**, which is the same list `CommandFilter` and `CommandSort` open and the
|
|
103
|
+
* same package the product already filters with — so every list in the product narrows the same
|
|
104
|
+
* way, with the same substring rule, the same keyboard and the same result announcement. That is
|
|
105
|
+
* the whole reason this is not a hand-written listbox any more: it was one, ~200 lines of
|
|
106
|
+
* `aria-activedescendant` bookkeeping and scroll-into-view, duplicating a component beside it.
|
|
107
|
+
*
|
|
108
|
+
* **The trigger is a button that looks like an `Input`.** Shaped like a field so it lines up in a
|
|
109
|
+
* form, and a button because it is not typed into — what is typed goes in the panel's own search
|
|
110
|
+
* field. Its accessible name comes from the enclosing `Field`'s `<label for>`, which works
|
|
111
|
+
* because `button` is a labelable element.
|
|
112
|
+
*
|
|
113
|
+
* A disclosure button — `aria-expanded` and `aria-haspopup="dialog"` from `Popover` — and
|
|
114
|
+
* deliberately **not** `role="combobox"`. cmdk's input is itself a `role="combobox"`, and it
|
|
115
|
+
* writes that attribute after the caller's props so it cannot be overridden; a control with two
|
|
116
|
+
* of them, the outer one claiming to own a listbox it does not, is worse than a button that
|
|
117
|
+
* announces exactly what it opens. `dialog` rather than `listbox` for the same reason: the panel
|
|
118
|
+
* really is one, holding a search field and the list. The shape is `CommandFilter`'s, one
|
|
119
|
+
* component along.
|
|
120
|
+
*
|
|
121
|
+
* The panel is a `Popover`, so it is in the top layer and draws above a `Dialog` or a `Sheet`;
|
|
122
|
+
* `matchTriggerWidth` makes it the field's own width, which a menu does not want and a list of
|
|
123
|
+
* options does.
|
|
124
|
+
*/
|
|
125
|
+
export declare function Combobox({ options, value, onChange, placeholder, searchPlaceholder, creatable, createLabel, valueLabel, size, disabled, disabledReason, invalid, emptyMessage, onSearchChange, hasMore, onLoadMore, loadMoreLabel, className, ...rest }: ComboboxProps): import("react").JSX.Element;
|
|
126
|
+
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mDAAmD;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,SAAS,CAAC;QAChB,kDAAkD;QAClD,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,mCAAmC;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAQF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAuB,EACvB,iBAAiB,EACjB,SAAiB,EACjB,WAAyC,EACzC,UAAU,EACV,IAAW,EACX,QAAQ,EACR,cAAc,EACd,OAAO,EACP,YAA2B,EAC3B,cAAc,EACd,OAAe,EACf,UAAU,EACV,aAA2B,EAC3B,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,+BAuOf"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ComboboxOption } from "./Combobox";
|
|
2
|
+
export type MultiSelectLabels = {
|
|
3
|
+
/** Names each chip's ✕, given what it removes. */
|
|
4
|
+
remove: (label: string) => string;
|
|
5
|
+
/** The trailing chip when the field is too narrow for all of them — `(3) => "+3 more"`. */
|
|
6
|
+
overflow: (count: number) => string;
|
|
7
|
+
};
|
|
8
|
+
export type MultiSelectProps = {
|
|
9
|
+
options: ComboboxOption[];
|
|
10
|
+
/** Chosen values, in the order they were chosen. */
|
|
11
|
+
value: string[];
|
|
12
|
+
onChange: (value: string[]) => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
searchPlaceholder?: string;
|
|
15
|
+
/**
|
|
16
|
+
* How many chips the trigger draws before the rest become a count.
|
|
17
|
+
*
|
|
18
|
+
* A cap rather than wrapping, because the field is one control on a form row and a control
|
|
19
|
+
* that grows to four lines as values are added moves everything under it. `0` draws no chips
|
|
20
|
+
* at all and only the count, for a genuinely narrow field.
|
|
21
|
+
*/
|
|
22
|
+
maxChips?: number;
|
|
23
|
+
size?: "sm" | "md" | "lg";
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
invalid?: boolean;
|
|
26
|
+
emptyMessage?: string;
|
|
27
|
+
/**
|
|
28
|
+
* A value the list does not offer can be typed in and added anyway - `Combobox`'s `creatable`,
|
|
29
|
+
* for a field that holds a set.
|
|
30
|
+
*
|
|
31
|
+
* The product's case is sharing a build: the recipients are testing groups *or* individual
|
|
32
|
+
* email addresses, and no list can offer every address. A created value is its own label, so
|
|
33
|
+
* what comes back in `value` is the text as typed.
|
|
34
|
+
*/
|
|
35
|
+
creatable?: boolean;
|
|
36
|
+
/** What the create row says. Receives what has been typed. */
|
|
37
|
+
createLabel?: (query: string) => string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether what has been typed may be added at all. Without it anything non-empty may be, which
|
|
40
|
+
* is right for a free label and wrong for a field that takes addresses: the row is simply not
|
|
41
|
+
* offered until the text is one.
|
|
42
|
+
*/
|
|
43
|
+
canCreate?: (query: string) => boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Splits what has been typed into several values before adding them.
|
|
46
|
+
*
|
|
47
|
+
* Without it the text becomes one value, which is right for a name and wrong for a field that
|
|
48
|
+
* takes addresses: the control this replaced committed on a comma or a semicolon, so pasting a
|
|
49
|
+
* list of recipients added them all, and losing that was a real regression (2026-09-11). Every
|
|
50
|
+
* part has to pass `canCreate` - one bad address in a pasted list offers nothing, rather than
|
|
51
|
+
* adding the good ones and dropping the rest silently.
|
|
52
|
+
*/
|
|
53
|
+
createSeparator?: RegExp;
|
|
54
|
+
labels?: Partial<MultiSelectLabels>;
|
|
55
|
+
className?: string;
|
|
56
|
+
/** Names the trigger and the list. Omit inside a `Field`, which names it already. */
|
|
57
|
+
"aria-label"?: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Several values from one list, shown as chips in the field.
|
|
61
|
+
*
|
|
62
|
+
* `Combobox`'s sibling and built from the same two parts — its trigger and a `Command` — with
|
|
63
|
+
* the two differences that matter: the panel stays open as values are chosen, and the trigger
|
|
64
|
+
* holds what has been chosen rather than a single label. In `Combobox`'s folder because it *is*
|
|
65
|
+
* `Combobox` with a set instead of a value; a separate folder would be two copies of the
|
|
66
|
+
* trigger and the placement.
|
|
67
|
+
*
|
|
68
|
+
* **This replaces a pairing rather than a component.** The product builds a multi-select out of
|
|
69
|
+
* `AutoSuggestionField` wrapped around `TaggableTextField` — a free-text tag field with a
|
|
70
|
+
* suggestion list bolted to the outside, so the control's own value is text that happens to match
|
|
71
|
+
* an option. Which means a typo is a value: the build configuration's distribution picker will
|
|
72
|
+
* accept "Internal Tesers" and hand it to the request. Here the value is always an option's id, and
|
|
73
|
+
* what is typed only filters.
|
|
74
|
+
*
|
|
75
|
+
* **A chip is removable from the field itself**, without opening the panel — the common edit is
|
|
76
|
+
* "not that one", and making it cost a panel and a search is the wrong shape. The chips are
|
|
77
|
+
* buttons *beside* the trigger rather than inside it: a button inside a button is invalid, and
|
|
78
|
+
* `Popover` clones the trigger to add its own handler.
|
|
79
|
+
*/
|
|
80
|
+
export declare function MultiSelect({ options, value, onChange, placeholder, searchPlaceholder, maxChips, size, disabled, invalid, emptyMessage, creatable, createLabel, canCreate, createSeparator, labels, className, ...rest }: MultiSelectProps): import("react").JSX.Element;
|
|
81
|
+
//# sourceMappingURL=MultiSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/MultiSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAQjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kDAAkD;IAClD,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,2FAA2F;IAC3F,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACrC,CAAC;AAOF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,oDAAoD;IACpD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACvC;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAuB,EACvB,iBAAiB,EACjB,QAAY,EACZ,IAAW,EACX,QAAQ,EACR,OAAO,EACP,YAA2B,EAC3B,SAAiB,EACjB,WAAyC,EACzC,SAAS,EACT,eAAe,EACf,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EACR,EAAE,gBAAgB,+BAiNlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { KeyboardEvent as ReactKeyboardEvent } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The keyboard a `<select>` has and a button-plus-popover does not.
|
|
4
|
+
*
|
|
5
|
+
* `Combobox` and `MultiSelect` are triggers that open a `Command`. cmdk owns the keyboard *inside*
|
|
6
|
+
* the panel — the arrows, Home/End, Enter to choose, type-to-filter — and all of it works. What was
|
|
7
|
+
* missing is the pair of keys either side of it, and the gap is why the control read as "options
|
|
8
|
+
* cannot be chosen with the keyboard" (2026-08-27):
|
|
9
|
+
*
|
|
10
|
+
* - **the arrows did not open it.** A native select opens on ArrowDown, ArrowUp and Alt+ArrowDown,
|
|
11
|
+
* and so does every listbox in ARIA's own combobox patterns. Ours answered Enter and Space and
|
|
12
|
+
* nothing else, so a reader who tabbed to the field and pressed ArrowDown — which is what the
|
|
13
|
+
* control looks like it wants — got no response at all and had no reason to try another key.
|
|
14
|
+
* - **Tab out of the open panel stranded the keyboard.** The panel is a `Popover`, which
|
|
15
|
+
* deliberately does not trap focus, and it is portalled to the end of the document — so Tab from
|
|
16
|
+
* the search field moved focus to `<body>` with the list still open behind it. That is right for
|
|
17
|
+
* a popover holding a form (the page behind stays usable) and wrong for a select, whose panel is
|
|
18
|
+
* a modal errand: nothing else is to be reached while it is open.
|
|
19
|
+
*
|
|
20
|
+
* Kept here rather than in `Popover` because both are corrections *to* what `Popover` is: it has a
|
|
21
|
+
* test for not trapping focus and a decision recorded beside it. This is the select's own layer.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useSelectKeyboard(open: boolean, setOpen: (next: boolean) => void): (event: ReactKeyboardEvent<HTMLButtonElement>) => void;
|
|
24
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/keyboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,WAyBjB,kBAAkB,CAAC,iBAAiB,CAAC,UAOrD"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type CommandItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
/** Shown, and matched against what is typed. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Extra terms that should match — a repository name, an alias, an id. */
|
|
7
|
+
keywords?: string[];
|
|
8
|
+
/** Leading slot: an icon, an avatar, a platform mark. */
|
|
9
|
+
media?: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** Trailing and quiet — "Last Build: 2 days ago". */
|
|
12
|
+
meta?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* A control at the trailing edge that acts *on* the row without choosing it.
|
|
15
|
+
*
|
|
16
|
+
* For a list whose rows are a set the reader edits rather than a set they pick from: the publish
|
|
17
|
+
* module's language picker, where every locale in the list is either part of the listing or not,
|
|
18
|
+
* and the panel is the only place that membership is changed. Choosing a row adds the locale;
|
|
19
|
+
* this removes it — and doing the removal anywhere else means opening the list, reading which
|
|
20
|
+
* locale is current, closing it, and pressing a separate button, which is how the product shipped
|
|
21
|
+
* it for a while (2026-09-16).
|
|
22
|
+
*
|
|
23
|
+
* Only the rows that offer it carry it, so the same list can hold rows that can be removed
|
|
24
|
+
* and rows that cannot — a primary locale, a value in use elsewhere.
|
|
25
|
+
*
|
|
26
|
+
* `icon` rather than a glyph of our own: the library ships no icons (see CLAUDE.md), and
|
|
27
|
+
* `label` names the button, which is the whole of its accessible name.
|
|
28
|
+
*/
|
|
29
|
+
action?: {
|
|
30
|
+
icon: ReactNode;
|
|
31
|
+
/** Names the button — "Remove English (U.S.)". Not decoration: it is the only name it has. */
|
|
32
|
+
label: string;
|
|
33
|
+
onAction: () => void;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* This row sits under the one above it: a step in, against a hairline, exactly as the
|
|
37
|
+
* sidebar draws its sublists.
|
|
38
|
+
*
|
|
39
|
+
* A flat list with a step in it rather than a `CommandGroup`, because the parent here is
|
|
40
|
+
* itself a destination — `OrganizationSwitcher`'s root organization is something you can
|
|
41
|
+
* switch into, and a group heading is not selectable. One level only: the rule is a
|
|
42
|
+
* boolean, not a depth, because past one step the indentation is doing the work an
|
|
43
|
+
* expandable tree should be doing.
|
|
44
|
+
*/
|
|
45
|
+
indent?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether this value is currently chosen: a tick at the trailing edge and `aria-checked`.
|
|
48
|
+
* Left undefined by a list that has no notion of selection, which reports neither.
|
|
49
|
+
*/
|
|
50
|
+
selected?: boolean;
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
onSelect: () => void;
|
|
53
|
+
};
|
|
54
|
+
export type CommandGroup = {
|
|
55
|
+
id: string;
|
|
56
|
+
/** Omit for a group that is just a run of items. */
|
|
57
|
+
label?: string;
|
|
58
|
+
items: CommandItem[];
|
|
59
|
+
};
|
|
60
|
+
export type CommandProps = {
|
|
61
|
+
/**
|
|
62
|
+
* The flat case. Ignored when `groups` is given.
|
|
63
|
+
*
|
|
64
|
+
* A discriminated union would state that only one of these is meant, and it was written
|
|
65
|
+
* that way first — but it cannot survive Storybook: `meta.args` has to satisfy the type,
|
|
66
|
+
* so every story inherits an `items` and a grouped one then carries both, matching
|
|
67
|
+
* neither branch. Documented precedence beats a type that fights the tool the stories
|
|
68
|
+
* are written in.
|
|
69
|
+
*/
|
|
70
|
+
items?: CommandItem[];
|
|
71
|
+
/** Groups of items, with optional headings. Takes precedence over `items`. */
|
|
72
|
+
groups?: CommandGroup[];
|
|
73
|
+
/**
|
|
74
|
+
* Several values can be chosen at once, and choosing one does not put the list away —
|
|
75
|
+
* a faceted filter rather than a search.
|
|
76
|
+
*
|
|
77
|
+
* It sets `aria-multiselectable`, and nothing else: whether a row is *marked* as chosen is
|
|
78
|
+
* `CommandItem.selected`'s business, in either mode. That was not always true — the tick and
|
|
79
|
+
* `aria-checked` were once gated on this flag, which left a single-select category's chosen
|
|
80
|
+
* value with no mark on it.
|
|
81
|
+
*/
|
|
82
|
+
multiple?: boolean;
|
|
83
|
+
placeholder?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the list opens with a search field. On by default. Off is for a list short
|
|
86
|
+
* enough that typing at it is slower than reading it — a direction, a handful of sort
|
|
87
|
+
* fields — where the field read as apparatus (product request, 2026-08-22).
|
|
88
|
+
*/
|
|
89
|
+
searchable?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* The search field is what the reader lands on.
|
|
92
|
+
*
|
|
93
|
+
* For a list that arrives *with* the surface it is in — `CommandDialog`, which sets it — where
|
|
94
|
+
* the field is the whole top of the panel and typing is the only reason it opened. A `Popover`
|
|
95
|
+
* needs nothing here: it focuses the field on the way in itself.
|
|
96
|
+
*/
|
|
97
|
+
autoFocus?: boolean;
|
|
98
|
+
/** Names the list. Required: a listbox with no name is announced as "list box". */
|
|
99
|
+
"aria-label": string;
|
|
100
|
+
/** Shown when what is typed matches nothing. */
|
|
101
|
+
empty?: ReactNode;
|
|
102
|
+
/** Announced after filtering — "6 results". Override for translation. */
|
|
103
|
+
countLabel?: (count: number) => string;
|
|
104
|
+
/**
|
|
105
|
+
* Reports what has been typed, for a list that is fetched rather than held.
|
|
106
|
+
*
|
|
107
|
+
* The field stays uncontrolled either way — cmdk owns the text, and this only tells the
|
|
108
|
+
* consumer about it. Pair it with `shouldFilter={false}` when the server has already done
|
|
109
|
+
* the narrowing; leaving both on filters the answer a second time and hides rows the
|
|
110
|
+
* server matched on something the label does not show.
|
|
111
|
+
*/
|
|
112
|
+
onQueryChange?: (query: string) => void;
|
|
113
|
+
/**
|
|
114
|
+
* The search text, when the caller owns it.
|
|
115
|
+
*
|
|
116
|
+
* cmdk keeps the text itself, which is right for a panel that only filters. A panel that
|
|
117
|
+
* *consumes* what was typed needs to clear it - `MultiSelect` adding a typed-in address - and
|
|
118
|
+
* the alternative, remounting this component to reset the field, takes the focus out of it
|
|
119
|
+
* between one entry and the next.
|
|
120
|
+
*/
|
|
121
|
+
query?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Off, every item given is rendered in the order given. For a list the consumer has already
|
|
124
|
+
* filtered — the product's build search asks the API past two characters and gets back the whole
|
|
125
|
+
* matching set.
|
|
126
|
+
*/
|
|
127
|
+
shouldFilter?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Whether an already-chosen row is lifted to the top of its group. On by default; see the
|
|
130
|
+
* `hoisted` set below for why a faceted filter wants it.
|
|
131
|
+
*
|
|
132
|
+
* Off for a list whose order carries meaning of its own. `OrganizationSwitcher` nests each
|
|
133
|
+
* organization under its root, and hoisting the current one tore it out of that tree and
|
|
134
|
+
* left it above the list, still indented and under nothing.
|
|
135
|
+
*/
|
|
136
|
+
hoistSelected?: boolean;
|
|
137
|
+
className?: string;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* A search field over a list of things to do or go to.
|
|
141
|
+
*
|
|
142
|
+
* Two shapes in the product are this. The magnifier in the build module opens a flat search over
|
|
143
|
+
* profiles — icon, name, framework, repository, and the last build on the right. And `CommandBox`,
|
|
144
|
+
* 678 lines across six call sites, is the faceted filter: categories of values, some multi-select.
|
|
145
|
+
* Both are an input over a filtered list, which is what this is; the difference is what selecting
|
|
146
|
+
* an item does.
|
|
147
|
+
*
|
|
148
|
+
* **Built on `cmdk`**, which is the same package the product already filters with, so the two
|
|
149
|
+
* behave identically while both exist. What it brings is the part that was hand-written here and is
|
|
150
|
+
* easy to get subtly wrong: the active-descendant bookkeeping, the re-sort as results are scored,
|
|
151
|
+
* Home/End/`loop` arrows, and keeping the cursor on a real row as the list changes under it. What
|
|
152
|
+
* stays ours is everything visible — the markup inside each row, the CSS, the result announcement,
|
|
153
|
+
* and the substring rule above.
|
|
154
|
+
*
|
|
155
|
+
* **The result count is announced.** Typing filters the list silently otherwise: a sighted
|
|
156
|
+
* user sees six rows become one, and a screen reader user hears nothing at all until they
|
|
157
|
+
* go looking. That is the part this pattern usually gets wrong, and cmdk does not do it.
|
|
158
|
+
*/
|
|
159
|
+
export declare function Command({ items, groups, multiple, placeholder, searchable, autoFocus, empty, countLabel, onQueryChange, query, shouldFilter, hoistSelected, className, ...rest }: CommandProps): import("react").JSX.Element;
|
|
160
|
+
//# sourceMappingURL=Command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../src/components/Command/Command.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,yDAAyD;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,qDAAqD;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,SAAS,CAAC;QAChB,8FAA8F;QAC9F,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mFAAmF;IACnF,YAAY,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,yEAAyE;IACzE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAoDF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,MAAM,EACN,QAAgB,EAChB,WAAsB,EACtB,UAAiB,EACjB,SAAiB,EACjB,KAAqB,EACrB,UAAsD,EACtD,aAAa,EACb,KAAK,EACL,YAAmB,EACnB,aAAoB,EACpB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,YAAY,+BAsNd"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CommandProps } from "./Command";
|
|
2
|
+
export type CommandDialogProps = CommandProps & {
|
|
3
|
+
open: boolean;
|
|
4
|
+
/** Escape, a press on the backdrop, and choosing a result all arrive here. */
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The command palette: the same list, opened over the page instead of under a trigger.
|
|
9
|
+
*
|
|
10
|
+
* This is what the magnifier in the product's list pages becomes. It was a text field sitting in
|
|
11
|
+
* the header — 16rem of the row spent on a control that is empty almost all of the time, and one
|
|
12
|
+
* that can only ever search the page it is on. A button that opens this costs an icon, and what
|
|
13
|
+
* opens is the full width of a dialog with room for the icon, the name, the framework and the last
|
|
14
|
+
* build on every row.
|
|
15
|
+
*
|
|
16
|
+
* Mosaic's own `Dialog` rather than cmdk's, which is a Radix dialog: this one is the native
|
|
17
|
+
* `<dialog>` in the top layer, so a palette opened from inside a `Sheet` or another dialog
|
|
18
|
+
* stacks by open order instead of by z-index, and the focus trap is the browser's.
|
|
19
|
+
*
|
|
20
|
+
* Choosing is the consumer's business, including whether it closes — `onSelect` on the item
|
|
21
|
+
* does what the page needs and calls `onClose` if that is one of the things. A palette that
|
|
22
|
+
* closed itself would be wrong for the multi-select case, which is the same component.
|
|
23
|
+
*/
|
|
24
|
+
export declare function CommandDialog({ open, onClose, ...command }: CommandDialogProps): import("react").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=CommandDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandDialog.d.ts","sourceRoot":"","sources":["../../../src/components/Command/CommandDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,8EAA8E;IAC9E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,kBAAkB,+BAsC9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|