@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,191 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Five variants, matching what the product actually uses.
|
|
4
|
+
*
|
|
5
|
+
* `primary` the orange action. The product called this ButtonType.WARNING
|
|
6
|
+
* (146 uses) — the action colour all along, misnamed because
|
|
7
|
+
* orange had been registered as the warning token. Since
|
|
8
|
+
* 2026-08-23 it is drawn quiet: brand label, empty inside,
|
|
9
|
+
* filling with the orange only under the press — a solid
|
|
10
|
+
* orange pill at rest grated on the eye everywhere it stood.
|
|
11
|
+
* (`primaryOutline`, its earlier second name, was retired on
|
|
12
|
+
* 2026-08-25: two names for one appearance was API surface for
|
|
13
|
+
* free.)
|
|
14
|
+
* `secondary` surface fill, neutral border. The low-emphasis action next to
|
|
15
|
+
* a primary one: "Download logs", "Cancel and keep".
|
|
16
|
+
* `danger` destructive. `ghost` no fill, no border. The product's TextButton.
|
|
17
|
+
* `field` not an action at all: a button that **stands in for a form
|
|
18
|
+
* control** - the trigger of a picker that sits in a row of
|
|
19
|
+
* inputs. It is drawn as the field it replaces: the page's own
|
|
20
|
+
* ground, the control boundary, the field corner, and its label
|
|
21
|
+
* at the start with the chevron pushed to the end. A `secondary`
|
|
22
|
+
* pill beside an `Input` read as a different kit (2026-09-19, the
|
|
23
|
+
* organization filter on Profile and team).
|
|
24
|
+
*
|
|
25
|
+
* There is deliberately no `success`: the product has no green button, so a
|
|
26
|
+
* green variant would mean inventing a colour to fill a slot nobody asked for.
|
|
27
|
+
* `--mos-color-success` still exists as a status colour for badges and text.
|
|
28
|
+
*/
|
|
29
|
+
export type ButtonVariant = "primary" | "secondary" | "danger" | "ghost" | "field";
|
|
30
|
+
/**
|
|
31
|
+
* What the button's accent says. `default` is the brand; `danger` turns the same drawing red.
|
|
32
|
+
*
|
|
33
|
+
* **Two reds, and the difference is what the press does** (product call, 2026-09-19). A destructive
|
|
34
|
+
* flow has two steps and they are not the same button:
|
|
35
|
+
*
|
|
36
|
+
* - the one that *opens the question* - "Delete organization" in a menu or a panel header -
|
|
37
|
+
* is a quiet button with a red label: `<Button tone="danger">`. Pressing it costs nothing;
|
|
38
|
+
* it raises the dialog;
|
|
39
|
+
* - the one that *does the thing* - the dialog's own confirm - is the filled red
|
|
40
|
+
* `variant="danger"`, and stays as it is.
|
|
41
|
+
*
|
|
42
|
+
* Read on its own, a filled red button says the press is final, so the opener cannot be one:
|
|
43
|
+
* every menu in the product would then look like it deletes on contact.
|
|
44
|
+
*
|
|
45
|
+
* The word is the library's own: `DropdownMenu.Item` has carried `tone="danger"` since the
|
|
46
|
+
* menus arrived, and this is the same mark on a button. It applies to the quiet variants -
|
|
47
|
+
* `primary`, `secondary`, `ghost` - which is also where the row's trash `IconButton` gets its
|
|
48
|
+
* colour from. On `variant="danger"` it is already the fill, so it changes nothing there.
|
|
49
|
+
*/
|
|
50
|
+
export type ButtonTone = "default" | "danger";
|
|
51
|
+
export type ButtonSize = "sm" | "md" | "lg";
|
|
52
|
+
export type ButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className" | "style"> & {
|
|
53
|
+
variant?: ButtonVariant;
|
|
54
|
+
/** See `ButtonTone`: the same drawing, in the danger colour. */
|
|
55
|
+
tone?: ButtonTone;
|
|
56
|
+
size?: ButtonSize;
|
|
57
|
+
/**
|
|
58
|
+
* Mosaic ships no icons. Pass one in; it inherits the button's text colour
|
|
59
|
+
* through `currentColor`, so it is correct in every variant and theme.
|
|
60
|
+
*/
|
|
61
|
+
icon?: ReactNode;
|
|
62
|
+
iconPosition?: "start" | "end";
|
|
63
|
+
/** Fill the available inline space instead of sizing to content. */
|
|
64
|
+
fullWidth?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The request this press started is still out: a spinner takes the icon's seat, the label stays
|
|
67
|
+
* put so the button does not change width, and the button cannot be pressed again (2026-08-26).
|
|
68
|
+
* `aria-busy` carries it to assistive technology. Ignored on the anchor form — a link has no
|
|
69
|
+
* in-flight state.
|
|
70
|
+
*/
|
|
71
|
+
loading?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* **Makes it a link.** Same shape, different element — an affordance that navigates has
|
|
74
|
+
* to be an anchor: a `button` whose `onClick` assigns `location` cannot be middle-clicked,
|
|
75
|
+
* copied, or opened in a new tab, and a screen reader lists it among the buttons rather
|
|
76
|
+
* than among the page's links.
|
|
77
|
+
*
|
|
78
|
+
* `Item` takes `href` for the same reason and draws the same conclusion, and this is the
|
|
79
|
+
* second arrival: the Configurations panel's Help control is a documentation link that the
|
|
80
|
+
* product draws as an outline button. The alternative is an anchor passed through some
|
|
81
|
+
* slot and restyled at the call site, which is the override this library exists to remove.
|
|
82
|
+
*
|
|
83
|
+
* The props stay the button's rather than splitting into a union, because a union cannot
|
|
84
|
+
* be spread — `<Button {...args} />` in a story stops typechecking the moment one exists.
|
|
85
|
+
*
|
|
86
|
+
* **`disabled` works here too**, and used to be documented as not working: the `href` is
|
|
87
|
+
* withheld, so the anchor is out of the tab order and has nothing to navigate to, and
|
|
88
|
+
* `aria-disabled` carries the state. See the branch that renders it.
|
|
89
|
+
*/
|
|
90
|
+
href?: string;
|
|
91
|
+
target?: string;
|
|
92
|
+
rel?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Why the current state holds it back - never a missing permission (hide it) or a plan limit
|
|
95
|
+
* (keep it enabled).
|
|
96
|
+
*
|
|
97
|
+
* Giving one disables the button and says the sentence: it is
|
|
98
|
+
* linked to the button through `aria-describedby` at all times, and shown as a tooltip on hover
|
|
99
|
+
* and keyboard focus. `null`, `false` and `""` mean there is no reason, so
|
|
100
|
+
* `disabledReason={nothingSelected && "…"}` gives the working button back once the condition
|
|
101
|
+
* clears.
|
|
102
|
+
*
|
|
103
|
+
* **The button stays focusable**, which is the point: it is drawn `aria-disabled` rather than
|
|
104
|
+
* `disabled`. A native `disabled` button is out of the tab order and, in most browsers, deaf to
|
|
105
|
+
* the pointer, so the one control a keyboard or mouse reader needs explained could never show
|
|
106
|
+
* its explanation. The press is withheld instead - no `onClick`, no `onKeyDown`, and
|
|
107
|
+
* `type="button"` whatever was asked for, so it submits no form and the sheet's ⌘S (which looks
|
|
108
|
+
* for an enabled `type="submit"`) passes over it.
|
|
109
|
+
*
|
|
110
|
+
* **For a condition, never for a permission.** A visible-but-disabled control is the product's
|
|
111
|
+
* rule for an action the current state does not allow - nothing selected, nothing to distribute,
|
|
112
|
+
* a run in progress, no branch - and a grey button without a reason leaves the reader to guess
|
|
113
|
+
* why. An action the reader lacks the permission for is not drawn at all: the caller leaves the
|
|
114
|
+
* control out (product call, 2026-10-06).
|
|
115
|
+
*/
|
|
116
|
+
disabledReason?: ReactNode;
|
|
117
|
+
className?: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Width is derived from content, never dictated. There is no `min-width` in
|
|
121
|
+
* this component's stylesheet — the old button's fixed 170px/220px/300px
|
|
122
|
+
* widths are why "OK" and "Create distribution profile" came out the same size.
|
|
123
|
+
*/
|
|
124
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className" | "style"> & {
|
|
125
|
+
variant?: ButtonVariant;
|
|
126
|
+
/** See `ButtonTone`: the same drawing, in the danger colour. */
|
|
127
|
+
tone?: ButtonTone;
|
|
128
|
+
size?: ButtonSize;
|
|
129
|
+
/**
|
|
130
|
+
* Mosaic ships no icons. Pass one in; it inherits the button's text colour
|
|
131
|
+
* through `currentColor`, so it is correct in every variant and theme.
|
|
132
|
+
*/
|
|
133
|
+
icon?: ReactNode;
|
|
134
|
+
iconPosition?: "start" | "end";
|
|
135
|
+
/** Fill the available inline space instead of sizing to content. */
|
|
136
|
+
fullWidth?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* The request this press started is still out: a spinner takes the icon's seat, the label stays
|
|
139
|
+
* put so the button does not change width, and the button cannot be pressed again (2026-08-26).
|
|
140
|
+
* `aria-busy` carries it to assistive technology. Ignored on the anchor form — a link has no
|
|
141
|
+
* in-flight state.
|
|
142
|
+
*/
|
|
143
|
+
loading?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* **Makes it a link.** Same shape, different element — an affordance that navigates has
|
|
146
|
+
* to be an anchor: a `button` whose `onClick` assigns `location` cannot be middle-clicked,
|
|
147
|
+
* copied, or opened in a new tab, and a screen reader lists it among the buttons rather
|
|
148
|
+
* than among the page's links.
|
|
149
|
+
*
|
|
150
|
+
* `Item` takes `href` for the same reason and draws the same conclusion, and this is the
|
|
151
|
+
* second arrival: the Configurations panel's Help control is a documentation link that the
|
|
152
|
+
* product draws as an outline button. The alternative is an anchor passed through some
|
|
153
|
+
* slot and restyled at the call site, which is the override this library exists to remove.
|
|
154
|
+
*
|
|
155
|
+
* The props stay the button's rather than splitting into a union, because a union cannot
|
|
156
|
+
* be spread — `<Button {...args} />` in a story stops typechecking the moment one exists.
|
|
157
|
+
*
|
|
158
|
+
* **`disabled` works here too**, and used to be documented as not working: the `href` is
|
|
159
|
+
* withheld, so the anchor is out of the tab order and has nothing to navigate to, and
|
|
160
|
+
* `aria-disabled` carries the state. See the branch that renders it.
|
|
161
|
+
*/
|
|
162
|
+
href?: string;
|
|
163
|
+
target?: string;
|
|
164
|
+
rel?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Why the current state holds it back - never a missing permission (hide it) or a plan limit
|
|
167
|
+
* (keep it enabled).
|
|
168
|
+
*
|
|
169
|
+
* Giving one disables the button and says the sentence: it is
|
|
170
|
+
* linked to the button through `aria-describedby` at all times, and shown as a tooltip on hover
|
|
171
|
+
* and keyboard focus. `null`, `false` and `""` mean there is no reason, so
|
|
172
|
+
* `disabledReason={nothingSelected && "…"}` gives the working button back once the condition
|
|
173
|
+
* clears.
|
|
174
|
+
*
|
|
175
|
+
* **The button stays focusable**, which is the point: it is drawn `aria-disabled` rather than
|
|
176
|
+
* `disabled`. A native `disabled` button is out of the tab order and, in most browsers, deaf to
|
|
177
|
+
* the pointer, so the one control a keyboard or mouse reader needs explained could never show
|
|
178
|
+
* its explanation. The press is withheld instead - no `onClick`, no `onKeyDown`, and
|
|
179
|
+
* `type="button"` whatever was asked for, so it submits no form and the sheet's ⌘S (which looks
|
|
180
|
+
* for an enabled `type="submit"`) passes over it.
|
|
181
|
+
*
|
|
182
|
+
* **For a condition, never for a permission.** A visible-but-disabled control is the product's
|
|
183
|
+
* rule for an action the current state does not allow - nothing selected, nothing to distribute,
|
|
184
|
+
* a run in progress, no branch - and a grey button without a reason leaves the reader to guess
|
|
185
|
+
* why. An action the reader lacks the permission for is not drawn at all: the caller leaves the
|
|
186
|
+
* control out (product call, 2026-10-06).
|
|
187
|
+
*/
|
|
188
|
+
disabledReason?: ReactNode;
|
|
189
|
+
className?: string;
|
|
190
|
+
} & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
191
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,oBAAoB,EACpB,SAAS,EACV,MAAM,OAAO,CAAC;AAUf;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,CAAC;AAEZ;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAI5C,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,WAAW,GAAG,OAAO,CACtB,GAAG;IACF,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,gEAAgE;IAChE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC/B,oEAAoE;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAUF;;;;GAIG;AACH,eAAO,MAAM,MAAM;cAhFP,aAAa;IACvB,gEAAgE;WACzD,UAAU;WACV,UAAU;IACjB;;;OAGG;WACI,SAAS;mBACD,OAAO,GAAG,KAAK;IAC9B,oEAAoE;gBACxD,OAAO;IACnB;;;;;OAKG;cACO,OAAO;IACjB;;;;;;;;;;;;;;;;;OAiBG;WACI,MAAM;aACJ,MAAM;UACT,MAAM;IACZ;;;;;;;;;;;;;;;;;;;;;;OAsBG;qBACc,SAAS;gBACd,MAAM;yEAgLnB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ButtonSize, ButtonVariant } from "./Button";
|
|
3
|
+
export type CopyButtonProps = {
|
|
4
|
+
/** What lands on the clipboard. */
|
|
5
|
+
value: string;
|
|
6
|
+
/**
|
|
7
|
+
* Names the control — "Copy the Trace-id", not "Copy". A page with six copy buttons
|
|
8
|
+
* gives a screen reader six identical names otherwise.
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/** Announced and shown after a successful copy. */
|
|
12
|
+
copiedLabel?: string;
|
|
13
|
+
/** Set for a button with text; leave it off for an icon-only one. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
variant?: ButtonVariant;
|
|
17
|
+
size?: ButtonSize;
|
|
18
|
+
/** How long the confirmation stays, in milliseconds. */
|
|
19
|
+
resetAfter?: number;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* A button that copies something and says it did.
|
|
24
|
+
*
|
|
25
|
+
* **Why this is not a `Button` variant.** A variant is appearance — a different fill for
|
|
26
|
+
* the same behaviour. This has behaviour of its own: it reaches for the clipboard, holds
|
|
27
|
+
* a "copied" state, starts a timer to drop it, and has to announce the result. None of
|
|
28
|
+
* that can live in a class name, and a `variant="copy"` that did nothing but change
|
|
29
|
+
* colour would leave every caller to write the same twelve lines.
|
|
30
|
+
*
|
|
31
|
+
* It sits in `Button/` rather than its own folder for the reason `AlertDialog` sits in
|
|
32
|
+
* `Dialog/`: it is the same component with a fixed behaviour attached.
|
|
33
|
+
*
|
|
34
|
+
* **The part that is usually missing.** Copy buttons almost always confirm with a tick,
|
|
35
|
+
* and a tick is invisible to a screen reader — the user presses the button and is told
|
|
36
|
+
* nothing at all. The confirmation here goes into a live region as well as onto the
|
|
37
|
+
* button, so both audiences learn the same fact.
|
|
38
|
+
*
|
|
39
|
+
* The product has this pattern in at least three places: the Trace-id in a notification row, and
|
|
40
|
+
* the Description and Role cells in the activity log. All three are bare icons today.
|
|
41
|
+
*/
|
|
42
|
+
export declare function CopyButton({ value, label, copiedLabel, children, icon, variant, size, resetAfter, className }: CopyButtonProps): import("react").JSX.Element;
|
|
43
|
+
//# sourceMappingURL=CopyButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../../src/components/Button/CopyButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG1D,MAAM,MAAM,eAAe,GAAG;IAC5B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,WAAsB,EACtB,QAAQ,EACR,IAAI,EACJ,OAAiB,EACjB,IAAW,EACX,UAAiB,EACjB,SAAS,EACV,EAAE,eAAe,+BAkEjB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ElementType, ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { ButtonSize, ButtonVariant } from "./Button";
|
|
3
|
+
export type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "className" | "style" | "children" | "aria-label"> & {
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* What an `href` renders as. A router's `Link` keeps an in-app address (a routed modal's
|
|
7
|
+
* `?search`) inside the SPA; the default `<a>` is right for a foreign host. It receives
|
|
8
|
+
* both `href` and `to`, the two names routers answer to.
|
|
9
|
+
*/
|
|
10
|
+
linkAs?: ElementType;
|
|
11
|
+
/**
|
|
12
|
+
* Required. An icon-only control with no accessible name is invisible to
|
|
13
|
+
* assistive technology, so the type will not let you omit it. The equivalent
|
|
14
|
+
* prop existed in the old codebase and was used zero times.
|
|
15
|
+
*/
|
|
16
|
+
"aria-label": string;
|
|
17
|
+
variant?: ButtonVariant;
|
|
18
|
+
size?: ButtonSize;
|
|
19
|
+
/**
|
|
20
|
+
* **Makes it a link**, on the same terms as `Button`'s — an affordance that navigates has to
|
|
21
|
+
* be an anchor. It matters more here than there: an icon-only control that opens
|
|
22
|
+
* documentation is exactly the one a reader wants to middle-click, and `aria-label` is
|
|
23
|
+
* already required, so the link arrives correctly named.
|
|
24
|
+
*/
|
|
25
|
+
href?: string;
|
|
26
|
+
target?: string;
|
|
27
|
+
rel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Why it cannot be pressed - `Button`'s own `disabledReason`, on the same terms: the button is
|
|
30
|
+
* drawn `aria-disabled` and stays focusable, the reason is linked through `aria-describedby`
|
|
31
|
+
* and shown as a tooltip. Ignored on the anchor form.
|
|
32
|
+
*/
|
|
33
|
+
disabledReason?: ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
};
|
|
36
|
+
/** A square, icon-only button. Same visual language as `Button`. */
|
|
37
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "aria-label" | "children" | "className" | "style"> & {
|
|
38
|
+
icon: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* What an `href` renders as. A router's `Link` keeps an in-app address (a routed modal's
|
|
41
|
+
* `?search`) inside the SPA; the default `<a>` is right for a foreign host. It receives
|
|
42
|
+
* both `href` and `to`, the two names routers answer to.
|
|
43
|
+
*/
|
|
44
|
+
linkAs?: ElementType;
|
|
45
|
+
/**
|
|
46
|
+
* Required. An icon-only control with no accessible name is invisible to
|
|
47
|
+
* assistive technology, so the type will not let you omit it. The equivalent
|
|
48
|
+
* prop existed in the old codebase and was used zero times.
|
|
49
|
+
*/
|
|
50
|
+
"aria-label": string;
|
|
51
|
+
variant?: ButtonVariant;
|
|
52
|
+
size?: ButtonSize;
|
|
53
|
+
/**
|
|
54
|
+
* **Makes it a link**, on the same terms as `Button`'s — an affordance that navigates has to
|
|
55
|
+
* be an anchor. It matters more here than there: an icon-only control that opens
|
|
56
|
+
* documentation is exactly the one a reader wants to middle-click, and `aria-label` is
|
|
57
|
+
* already required, so the link arrives correctly named.
|
|
58
|
+
*/
|
|
59
|
+
href?: string;
|
|
60
|
+
target?: string;
|
|
61
|
+
rel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Why it cannot be pressed - `Button`'s own `disabledReason`, on the same terms: the button is
|
|
64
|
+
* drawn `aria-disabled` and stays focusable, the reason is linked through `aria-describedby`
|
|
65
|
+
* and shown as a tooltip. Ignored on the anchor form.
|
|
66
|
+
*/
|
|
67
|
+
disabledReason?: ReactNode;
|
|
68
|
+
className?: string;
|
|
69
|
+
} & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
70
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/Button/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAEvB,oBAAoB,EACpB,SAAS,EACV,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,CAClD,GAAG;IACF,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,UAAU;UAlCf,SAAS;IACf;;;;OAIG;aACM,WAAW;IACpB;;;;OAIG;kBACW,MAAM;cACV,aAAa;WAChB,UAAU;IACjB;;;;;OAKG;WACI,MAAM;aACJ,MAAM;UACT,MAAM;IACZ;;;;OAIG;qBACc,SAAS;gBACd,MAAM;yEA+FlB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Button } from "./Button";
|
|
2
|
+
export type { ButtonProps, ButtonVariant, ButtonSize } from "./Button";
|
|
3
|
+
export { IconButton } from "./IconButton";
|
|
4
|
+
export type { IconButtonProps } from "./IconButton";
|
|
5
|
+
export { CopyButton } from "./CopyButton";
|
|
6
|
+
export type { CopyButtonProps } from "./CopyButton";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two days and what is between them. shadcn's shape, and `null` for an end that has not been
|
|
3
|
+
* picked yet — a range being chosen has a `from` and no `to`, and that is a value the caller
|
|
4
|
+
* holds rather than a state hidden in here.
|
|
5
|
+
*/
|
|
6
|
+
export type DateRange = {
|
|
7
|
+
from: Date | null;
|
|
8
|
+
to: Date | null;
|
|
9
|
+
};
|
|
10
|
+
type CalendarBase = {
|
|
11
|
+
/**
|
|
12
|
+
* The month on screen. Omit it and the calendar keeps its own — this is view state, not the
|
|
13
|
+
* field state the controlled rule is about, and `Popover` and `DropdownMenu` make the same
|
|
14
|
+
* call about their open state. Pass it and it is the answer, with `onMonthChange` the only
|
|
15
|
+
* way it moves.
|
|
16
|
+
*/
|
|
17
|
+
month?: Date;
|
|
18
|
+
onMonthChange?: (month: Date) => void;
|
|
19
|
+
/** Where an uncontrolled calendar opens. Defaults to the selection's month, then to today. */
|
|
20
|
+
defaultMonth?: Date;
|
|
21
|
+
/** Bounds, inclusive. A day outside them cannot be chosen and is announced as unavailable. */
|
|
22
|
+
min?: Date;
|
|
23
|
+
max?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Anything else that cannot be chosen — a weekend, a date already taken. A predicate rather
|
|
26
|
+
* than shadcn's matcher objects: one signature covers every matcher they enumerate, and a
|
|
27
|
+
* caller that wants `{ before: x }` writes `(d) => d < x`.
|
|
28
|
+
*/
|
|
29
|
+
disabled?: (date: Date) => boolean;
|
|
30
|
+
/** Drives the month and weekday names. Defaults to the browser's. */
|
|
31
|
+
locale?: string;
|
|
32
|
+
/**
|
|
33
|
+
* How many months are on screen, side by side. One by default; two for choosing a range, where
|
|
34
|
+
* a single grid means paging back and forth to see both ends of it.
|
|
35
|
+
*/
|
|
36
|
+
numberOfMonths?: 1 | 2;
|
|
37
|
+
/** Names the grid — "Start date", not "Calendar". Required, because a page can hold two. */
|
|
38
|
+
"aria-label": string;
|
|
39
|
+
className?: string;
|
|
40
|
+
};
|
|
41
|
+
export type CalendarSingleProps = CalendarBase & {
|
|
42
|
+
/** One day. The default, and what every existing call site means. */
|
|
43
|
+
mode?: "single";
|
|
44
|
+
/**
|
|
45
|
+
* The selected day. shadcn's name for it, and `null` rather than `undefined` for "nothing
|
|
46
|
+
* selected", so a cleared field is a value the caller can pass rather than a prop it drops.
|
|
47
|
+
*/
|
|
48
|
+
selected?: Date | null;
|
|
49
|
+
onSelect?: (date: Date) => void;
|
|
50
|
+
};
|
|
51
|
+
export type CalendarRangeProps = CalendarBase & {
|
|
52
|
+
/**
|
|
53
|
+
* A period, chosen in two presses: the first starts it, the second closes it. Pressing again
|
|
54
|
+
* after that starts a new one — the same behaviour shadcn's range calendar has, and the one
|
|
55
|
+
* thing a reader tries when they got the first end wrong.
|
|
56
|
+
*/
|
|
57
|
+
mode: "range";
|
|
58
|
+
selected?: DateRange | null;
|
|
59
|
+
onSelect?: (range: DateRange) => void;
|
|
60
|
+
};
|
|
61
|
+
export type CalendarProps = CalendarSingleProps | CalendarRangeProps;
|
|
62
|
+
/**
|
|
63
|
+
* A month grid for choosing one day.
|
|
64
|
+
*
|
|
65
|
+
* shadcn builds theirs on `react-day-picker`; this is written out because the whole of what that
|
|
66
|
+
* dependency would bring is the arithmetic above and a class-name mapping — and because the
|
|
67
|
+
* keyboard behaviour below is the part that has to be *ours* to test. The names are shadcn's
|
|
68
|
+
* where they exist (`selected`, `onSelect`, `month`, `disabled`), so a model that has seen their
|
|
69
|
+
* calendar can write this one.
|
|
70
|
+
*
|
|
71
|
+
* **It is a grid, and it is operated like one** (WAI-ARIA's Date Picker pattern): one tab stop,
|
|
72
|
+
* arrows between days, and the month turning when they run off the edge.
|
|
73
|
+
*
|
|
74
|
+
* The product's picker — `react-day-picker` v7 behind `DayPickerInput` — already does more of that
|
|
75
|
+
* than it looks: read rather than assumed, its days carry `role="gridcell"`, `aria-label`,
|
|
76
|
+
* `aria-selected` and `aria-disabled`, only the 1st of the month is tabbable, and the four arrow
|
|
77
|
+
* keys move focus. Three things are genuinely different here:
|
|
78
|
+
*
|
|
79
|
+
* - **Real elements.** A day is a `<button>` in a `<td>`, not a `<div role="gridcell">`. The
|
|
80
|
+
* semantics are then the platform's — operable by Enter *and* Space, named without an
|
|
81
|
+
* `aria-label`, and correct in a browser whose ARIA support has a gap.
|
|
82
|
+
* - **Home/End and PageUp/PageDown.** v7 handles the four arrows, Enter and Space, and nothing
|
|
83
|
+
* else: there is no way to reach the end of a week or the next month from the keyboard.
|
|
84
|
+
* - **A fixed six-week grid**, so nothing under the calendar moves as the month turns. v7 draws
|
|
85
|
+
* the weeks the month happens to occupy unless `fixedWeeks` is passed, and the licence panel
|
|
86
|
+
* did not pass it.
|
|
87
|
+
*
|
|
88
|
+
* **Ranges came later, under shadcn's names** (2026-09-14): `mode="range"` with `{ from, to }`
|
|
89
|
+
* as the selection, two presses to make one, and `numberOfMonths={2}` for the pair of grids a
|
|
90
|
+
* period is usually picked across. The report filter bar's period field is what asked for it —
|
|
91
|
+
* a download report offers an arbitrary window, which no list of named periods can express.
|
|
92
|
+
*
|
|
93
|
+
* **What it still does not do**, where shadcn does: multiple selection, a month/year dropdown
|
|
94
|
+
* caption, week numbers, RTL. Each is a shape to maintain and none has a call site — and each is
|
|
95
|
+
* additive when one turns up, under shadcn's own names.
|
|
96
|
+
*/
|
|
97
|
+
export declare function Calendar({ mode, selected, onSelect, month, onMonthChange, defaultMonth, min, max, disabled, locale, numberOfMonths, className, ...rest }: CalendarProps): import("react").JSX.Element;
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAAC,EAAE,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,CAAC;AAE/D,KAAK,YAAY,GAAG;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC,8FAA8F;IAC9F,YAAY,CAAC,EAAE,IAAI,CAAC;IAEpB,8FAA8F;IAC9F,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IAEnC,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAEvB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG;IAC/C,qEAAqE;IACrE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C;;;;OAIG;IACH,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAkDrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAe,EACf,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,aAAa,EACb,YAAY,EACZ,GAAG,EACH,GAAG,EACH,QAAQ,EACR,MAAM,EACN,cAAkB,EAClB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,+BA6Rf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACV,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type CardVariant = "outlined" | "raised" | "filled" | "flush";
|
|
3
|
+
export type CardProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* How the card's edge is drawn, and `raised` (the raised fill, no line, no shadow) is the default.
|
|
7
|
+
*
|
|
8
|
+
* One rung of the surface ladder is what separates a card from its page (the shadow went on
|
|
9
|
+
* 2026-09-19), and a card outlined in a light line beside the rest of the library read as the odd
|
|
10
|
+
* one out. `outlined` is for a card **inside** another raised surface, where a second raised fill
|
|
11
|
+
* would not read as a step.
|
|
12
|
+
*
|
|
13
|
+
* Not a `shadow` boolean: the two are alternatives rather than an addition, and a card with
|
|
14
|
+
* both reads as an outlined card that has come unstuck.
|
|
15
|
+
*
|
|
16
|
+
* `filled` is the quietest box that is still a box: the raised fill with no shadow and no line —
|
|
17
|
+
* the way Linear draws a stat tile or a licence card. For a surface that belongs *to* the page
|
|
18
|
+
* rather than floating above it, but still needs its own ground. The product asked for it twice
|
|
19
|
+
* on one day (2026-08-23): the report tiles read raised, then the hairline of `outlined` was not
|
|
20
|
+
* wanted either, and `PlanCard`'s shadow went with it.
|
|
21
|
+
*
|
|
22
|
+
* `flush` is not a floating box at all: no shadow, no corner, no fill of its own — the page's
|
|
23
|
+
* canvas shows through. For a card that has become a *region* of the page, divided from its
|
|
24
|
+
* neighbour by a hairline the layout draws (product decision, 2026-08-23: the build detail
|
|
25
|
+
* page's two panels split the space under the header 1/4–3/4 instead of floating in a gap).
|
|
26
|
+
* Still a `Card` rather than a `div` so the header/content/footer anatomy and the internal
|
|
27
|
+
* scroll behaviour survive the change of surface.
|
|
28
|
+
*/
|
|
29
|
+
variant?: CardVariant;
|
|
30
|
+
className?: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* A raised surface that groups content, with an optional header and footer.
|
|
34
|
+
*
|
|
35
|
+
* The product has no shared version of this and 26 hand-rolled ones — `UsageCard`, `ESAuthCard`,
|
|
36
|
+
* `ProfileCard`, `EnterpriseStoreSettingCard`, `InnovationBox`,
|
|
37
|
+
* `BuildProfileDetailProfileNameInfoBox` and so on, each with its own stylesheet. They do not agree
|
|
38
|
+
* with each other: the same corner is written six ways across them — `0.438rem`, `rem-calc(7)` and
|
|
39
|
+
* `7px`, which are the same seven pixels spelled three ways, plus `rem-calc(5)`, `rem-calc(3)` and
|
|
40
|
+
* `3px`.
|
|
41
|
+
*
|
|
42
|
+
* Follows `Dialog`'s shape rather than shadcn's: the header takes `title` and
|
|
43
|
+
* `description` as props instead of there being a `Card.Title` and a
|
|
44
|
+
* `Card.Description` component. Fewer parts, and consistent with the compound
|
|
45
|
+
* component Mosaic already has.
|
|
46
|
+
*/
|
|
47
|
+
export declare function Card({ children, variant, className, ...rest }: CardProps): import("react").JSX.Element;
|
|
48
|
+
export declare namespace Card {
|
|
49
|
+
export { CardHeader as Header };
|
|
50
|
+
export { CardContent as Content };
|
|
51
|
+
export { CardFooter as Footer };
|
|
52
|
+
}
|
|
53
|
+
export type CardHeaderProps = Omit<HTMLAttributes<HTMLElement>, "title"> & {
|
|
54
|
+
title?: ReactNode;
|
|
55
|
+
/** A secondary line under the title. */
|
|
56
|
+
description?: ReactNode;
|
|
57
|
+
/** The header's trailing slot — a button, a menu, a badge. */
|
|
58
|
+
action?: ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Which heading element the title becomes. A card title is a heading in the
|
|
61
|
+
* document's outline, and the right level depends on what is above it on the page,
|
|
62
|
+
* so it cannot be decided here. `3` assumes a page title and a section title above.
|
|
63
|
+
*/
|
|
64
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
65
|
+
children?: ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
};
|
|
68
|
+
declare function CardHeader({ title, description, action, headingLevel, children, className, ...rest }: CardHeaderProps): import("react").JSX.Element;
|
|
69
|
+
export type CardContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
70
|
+
/**
|
|
71
|
+
* Drops the content padding, for content that draws its own edges — a `DataTable`,
|
|
72
|
+
* whose header row runs to the card's border rather than floating inside it.
|
|
73
|
+
*/
|
|
74
|
+
flush?: boolean;
|
|
75
|
+
children: ReactNode;
|
|
76
|
+
className?: string;
|
|
77
|
+
};
|
|
78
|
+
declare function CardContent({ flush, children, className, ...rest }: CardContentProps): import("react").JSX.Element;
|
|
79
|
+
export type CardFooterProps = HTMLAttributes<HTMLElement> & {
|
|
80
|
+
children: ReactNode;
|
|
81
|
+
className?: string;
|
|
82
|
+
};
|
|
83
|
+
declare function CardFooter({ children, className, ...rest }: CardFooterProps): import("react").JSX.Element;
|
|
84
|
+
export {};
|
|
85
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACvD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAkB,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAMnF;yBANe,IAAI;aA+EN,UAAU;aACT,WAAW;aACZ,UAAU;;AAzExB,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,GAAG;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wCAAwC;IACxC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,WAAW,EACX,MAAM,EACN,YAAgB,EAChB,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,eAAe,+BAcjB;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,iBAAS,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,+BAM7E;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IAC1D,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAMpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,eAAe,EAChB,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { Space } from "../Stack";
|
|
3
|
+
export type CardGridProps = HTMLAttributes<HTMLElement> & {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* The narrowest a column may be, in rem. Columns fill the row and wrap when the next one
|
|
7
|
+
* would be narrower than this — so the count follows the width and is never declared.
|
|
8
|
+
*/
|
|
9
|
+
minColumn?: number;
|
|
10
|
+
gap?: Space;
|
|
11
|
+
/** Rendered element. A grid of things is usually a list. */
|
|
12
|
+
as?: "div" | "ul";
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A responsive grid of cards.
|
|
17
|
+
*
|
|
18
|
+
* The product writes this out per module — `repeat(auto-fill, minmax(rem-calc(360), 1fr))` in the
|
|
19
|
+
* profiles grid, again in the dashboard, again in the store — and spaces the cells with
|
|
20
|
+
* `margin-bottom` and `margin-left` on the children rather than with `gap`, which is why the first
|
|
21
|
+
* column sits 16px in from the edge and the last row hangs 16px below the content. `gap` puts the
|
|
22
|
+
* space *between* cells and nowhere else.
|
|
23
|
+
*
|
|
24
|
+
* `Stack` cannot do this: a flex row wraps but cannot give every item in a row the same
|
|
25
|
+
* width, so the last row of a wrapped flex grid is a different shape from the others.
|
|
26
|
+
*/
|
|
27
|
+
export declare function CardGrid({ children, minColumn, gap, as, className, style, ...rest }: CardGridProps): import("react").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=CardGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAUtC,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACxD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,4DAA4D;IAC5D,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,SAAc,EAId,GAAO,EACP,EAAU,EACV,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,aAAa,+BAef"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|