@appcircle/mosaic 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +90 -2
- package/dist/blocks/AISummary/AISummary.d.ts +92 -0
- package/dist/blocks/AISummary/AISummary.d.ts.map +1 -0
- package/dist/blocks/AISummary/index.d.ts +3 -0
- package/dist/blocks/AISummary/index.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts +95 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts +3 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts +52 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/index.d.ts +3 -0
- package/dist/blocks/AppcircleLayout/index.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts +169 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/index.d.ts +3 -0
- package/dist/blocks/BuildBranchList/index.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts +175 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts +3 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts +64 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts +3 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts +81 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts +3 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts +82 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/index.d.ts +3 -0
- package/dist/blocks/DashboardSummary/index.d.ts.map +1 -0
- package/dist/blocks/Directory/Directory.d.ts +53 -0
- package/dist/blocks/Directory/Directory.d.ts.map +1 -0
- package/dist/blocks/Directory/index.d.ts +3 -0
- package/dist/blocks/Directory/index.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts +283 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/index.d.ts +3 -0
- package/dist/blocks/ManagedListPanel/index.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts +98 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/index.d.ts +3 -0
- package/dist/blocks/NotificationCenter/index.d.ts.map +1 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts +82 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts.map +1 -0
- package/dist/blocks/Onboarding/index.d.ts +3 -0
- package/dist/blocks/Onboarding/index.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts +83 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts +3 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts.map +1 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts +69 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts.map +1 -0
- package/dist/blocks/PlanCard/index.d.ts +3 -0
- package/dist/blocks/PlanCard/index.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts +211 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts +36 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/index.d.ts +5 -0
- package/dist/blocks/ProfileCard/index.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts +255 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/index.d.ts +3 -0
- package/dist/blocks/ReportFilterBar/index.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts +57 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/index.d.ts +3 -0
- package/dist/blocks/RestrictedArea/index.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts +118 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/index.d.ts +3 -0
- package/dist/blocks/SearchLayout/index.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts +46 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/index.d.ts +3 -0
- package/dist/blocks/UpgradeDialog/index.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts +29 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/index.d.ts +3 -0
- package/dist/blocks/VersionIdentity/index.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +87 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +37 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +55 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +191 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/CopyButton.d.ts +43 -0
- package/dist/components/Button/CopyButton.d.ts.map +1 -0
- package/dist/components/Button/IconButton.d.ts +70 -0
- package/dist/components/Button/IconButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +7 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +99 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +85 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/CardGrid/CardGrid.d.ts +28 -0
- package/dist/components/CardGrid/CardGrid.d.ts.map +1 -0
- package/dist/components/CardGrid/index.d.ts +3 -0
- package/dist/components/CardGrid/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +64 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +34 -0
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/dist/components/Collapsible/index.d.ts +3 -0
- package/dist/components/Collapsible/index.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +126 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/MultiSelect.d.ts +81 -0
- package/dist/components/Combobox/MultiSelect.d.ts.map +1 -0
- package/dist/components/Combobox/index.d.ts +5 -0
- package/dist/components/Combobox/index.d.ts.map +1 -0
- package/dist/components/Combobox/keyboard.d.ts +24 -0
- package/dist/components/Combobox/keyboard.d.ts.map +1 -0
- package/dist/components/Command/Command.d.ts +160 -0
- package/dist/components/Command/Command.d.ts.map +1 -0
- package/dist/components/Command/CommandDialog.d.ts +25 -0
- package/dist/components/Command/CommandDialog.d.ts.map +1 -0
- package/dist/components/Command/index.d.ts +5 -0
- package/dist/components/Command/index.d.ts.map +1 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts +114 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts.map +1 -0
- package/dist/components/CommandFilter/FilterChip.d.ts +66 -0
- package/dist/components/CommandFilter/FilterChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/ValueChip.d.ts +31 -0
- package/dist/components/CommandFilter/ValueChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/index.d.ts +7 -0
- package/dist/components/CommandFilter/index.d.ts.map +1 -0
- package/dist/components/CommandSort/CommandSort.d.ts +66 -0
- package/dist/components/CommandSort/CommandSort.d.ts.map +1 -0
- package/dist/components/CommandSort/index.d.ts +3 -0
- package/dist/components/CommandSort/index.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +326 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/components/DataTable/RowActions.d.ts +30 -0
- package/dist/components/DataTable/RowActions.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +5 -0
- package/dist/components/DataTable/index.d.ts.map +1 -0
- package/dist/components/Dialog/AlertDialog.d.ts +117 -0
- package/dist/components/Dialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +107 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/index.d.ts +5 -0
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/DonutChart/DonutChart.d.ts +51 -0
- package/dist/components/DonutChart/DonutChart.d.ts.map +1 -0
- package/dist/components/DonutChart/index.d.ts +3 -0
- package/dist/components/DonutChart/index.d.ts.map +1 -0
- package/dist/components/Dot/Dot.d.ts +37 -0
- package/dist/components/Dot/Dot.d.ts.map +1 -0
- package/dist/components/Dot/index.d.ts +3 -0
- package/dist/components/Dot/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +119 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +3 -0
- package/dist/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/components/Empty/Empty.d.ts +76 -0
- package/dist/components/Empty/Empty.d.ts.map +1 -0
- package/dist/components/Empty/index.d.ts +3 -0
- package/dist/components/Empty/index.d.ts.map +1 -0
- package/dist/components/Field/Field.d.ts +143 -0
- package/dist/components/Field/Field.d.ts.map +1 -0
- package/dist/components/Field/index.d.ts +3 -0
- package/dist/components/Field/index.d.ts.map +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +102 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload/index.d.ts +3 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -0
- package/dist/components/Gallery/Gallery.d.ts +97 -0
- package/dist/components/Gallery/Gallery.d.ts.map +1 -0
- package/dist/components/Gallery/index.d.ts +3 -0
- package/dist/components/Gallery/index.d.ts.map +1 -0
- package/dist/components/HoverCard/HoverCard.d.ts +40 -0
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/components/HoverCard/index.d.ts +3 -0
- package/dist/components/HoverCard/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +70 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/InfoBox/InfoBox.d.ts +58 -0
- package/dist/components/InfoBox/InfoBox.d.ts.map +1 -0
- package/dist/components/InfoBox/index.d.ts +3 -0
- package/dist/components/InfoBox/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +203 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Item/Item.d.ts +125 -0
- package/dist/components/Item/Item.d.ts.map +1 -0
- package/dist/components/Item/index.d.ts +3 -0
- package/dist/components/Item/index.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +50 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/ListField/ListField.d.ts +80 -0
- package/dist/components/ListField/ListField.d.ts.map +1 -0
- package/dist/components/ListField/index.d.ts +3 -0
- package/dist/components/ListField/index.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +58 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +3 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +60 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +64 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Progress/Progress.d.ts +43 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +3 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts +94 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts.map +1 -0
- package/dist/components/ProgressBand/index.d.ts +3 -0
- package/dist/components/ProgressBand/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +66 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +36 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +44 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Separator/Separator.d.ts +28 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/index.d.ts +3 -0
- package/dist/components/Separator/index.d.ts.map +1 -0
- package/dist/components/Sheet/Sheet.d.ts +103 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +3 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +329 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar/index.d.ts +3 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts +126 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts.map +1 -0
- package/dist/components/SimpleListItem/index.d.ts +3 -0
- package/dist/components/SimpleListItem/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +42 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +21 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +3 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Stack/Stack.d.ts +51 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +3 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Stat/Stat.d.ts +82 -0
- package/dist/components/Stat/Stat.d.ts.map +1 -0
- package/dist/components/Stat/index.d.ts +3 -0
- package/dist/components/Stat/index.d.ts.map +1 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts +67 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts.map +1 -0
- package/dist/components/StatusHistory/index.d.ts +3 -0
- package/dist/components/StatusHistory/index.d.ts.map +1 -0
- package/dist/components/StepCard/StepCard.d.ts +80 -0
- package/dist/components/StepCard/StepCard.d.ts.map +1 -0
- package/dist/components/StepCard/index.d.ts +3 -0
- package/dist/components/StepCard/index.d.ts.map +1 -0
- package/dist/components/StepList/StepList.d.ts +68 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/index.d.ts +3 -0
- package/dist/components/StepList/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +26 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts +41 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts.map +1 -0
- package/dist/components/SwitchPanel/index.d.ts +3 -0
- package/dist/components/SwitchPanel/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +117 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/TagsInput/TagsInput.d.ts +76 -0
- package/dist/components/TagsInput/TagsInput.d.ts.map +1 -0
- package/dist/components/TagsInput/index.d.ts +3 -0
- package/dist/components/TagsInput/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +89 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Toaster/Toaster.d.ts +99 -0
- package/dist/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster/index.d.ts +3 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +91 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/dist/components/ToggleGroup/index.d.ts +3 -0
- package/dist/components/ToggleGroup/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +56 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/icons/index.d.ts +257 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15988 -0
- package/dist/internal/ClippedText.d.ts +40 -0
- package/dist/internal/ClippedText.d.ts.map +1 -0
- package/dist/internal/DisabledReason.d.ts +50 -0
- package/dist/internal/DisabledReason.d.ts.map +1 -0
- package/dist/internal/InlineSearch.d.ts +27 -0
- package/dist/internal/InlineSearch.d.ts.map +1 -0
- package/dist/internal/children.d.ts +22 -0
- package/dist/internal/children.d.ts.map +1 -0
- package/dist/internal/mergeRefs.d.ts +32 -0
- package/dist/internal/mergeRefs.d.ts.map +1 -0
- package/dist/internal/modality.d.ts +18 -0
- package/dist/internal/modality.d.ts.map +1 -0
- package/dist/internal/useDismissModality.d.ts +23 -0
- package/dist/internal/useDismissModality.d.ts.map +1 -0
- package/dist/internal/useHoverOpen.d.ts +75 -0
- package/dist/internal/useHoverOpen.d.ts.map +1 -0
- package/dist/internal/useModalDialog.d.ts +40 -0
- package/dist/internal/useModalDialog.d.ts.map +1 -0
- package/dist/internal/usePopover.d.ts +43 -0
- package/dist/internal/usePopover.d.ts.map +1 -0
- package/dist/mosaic.css +2 -0
- package/package.json +81 -4
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type InputSize = "sm" | "md" | "lg";
|
|
3
|
+
export type InputLabels = {
|
|
4
|
+
copy: string;
|
|
5
|
+
copied: string;
|
|
6
|
+
show: string;
|
|
7
|
+
hide: string;
|
|
8
|
+
};
|
|
9
|
+
export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "className" | "style" | "size" | "onCopy"> & {
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
/**
|
|
12
|
+
* Set only when the input is used outside a `Field`. Inside one it comes from
|
|
13
|
+
* context, so the two cannot disagree.
|
|
14
|
+
*/
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Slots inside the input's box. The product solves this twice — once with a separate
|
|
18
|
+
* IconTextField and once with icon classes inside Input — which is how SearchField and a password
|
|
19
|
+
* reveal ended up unable to share anything.
|
|
20
|
+
*
|
|
21
|
+
* Decorative content only. Anything interactive belongs in a real `<button>`
|
|
22
|
+
* passed in — or, for the two the product keeps asking for, in `copyable`
|
|
23
|
+
* and `reveal` below.
|
|
24
|
+
*/
|
|
25
|
+
startAdornment?: ReactNode;
|
|
26
|
+
endAdornment?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* A copy button at the trailing edge, copying what the field holds.
|
|
29
|
+
*
|
|
30
|
+
* **Because it is never the field's own business.** A webhook URL, a trace id, an SSH key, an
|
|
31
|
+
* API token: the value is there to be taken somewhere else, and the alternative is a button
|
|
32
|
+
* beside every one of those fields, hand-wired to the clipboard and worded differently each
|
|
33
|
+
* time. It reads the input rather than a prop, so it is right for a controlled and an
|
|
34
|
+
* uncontrolled field alike.
|
|
35
|
+
*/
|
|
36
|
+
copyable?: boolean;
|
|
37
|
+
/** Called after a successful copy, with the text that was copied. */
|
|
38
|
+
onCopy?: (value: string) => void;
|
|
39
|
+
/**
|
|
40
|
+
* One more control at the trailing edge, drawn with the built-in two's own recipe.
|
|
41
|
+
*
|
|
42
|
+
* **For the errand that belongs to the field and is neither copy nor reveal** — regenerating the
|
|
43
|
+
* key a field holds, which is the third one the product asked for (2026-08-29, on the webhook
|
|
44
|
+
* dialog). Without it the only way to put a third button on that row was an `IconButton` *beside*
|
|
45
|
+
* the input: a 28px control next to a 28px field, which reads as a second control rather than as
|
|
46
|
+
* part of this one, and which cannot line up with the copy button that sits inside the box.
|
|
47
|
+
*
|
|
48
|
+
* Not `endAdornment`, which is decorative — and a caller cannot reach the trailing button's
|
|
49
|
+
* recipe from outside this module, so a hand-rolled button in that slot would be a
|
|
50
|
+
* differently-sized, differently-hovering neighbour of the copy button. This is the same recipe,
|
|
51
|
+
* so the two read as one pair.
|
|
52
|
+
*
|
|
53
|
+
* It is drawn first: the thing that *changes* the value, then the things that take it away.
|
|
54
|
+
*/
|
|
55
|
+
action?: {
|
|
56
|
+
icon: ReactNode;
|
|
57
|
+
/** Its accessible name. Say what pressing it does — "Generate a new key", not "Refresh". */
|
|
58
|
+
label: string;
|
|
59
|
+
onClick: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Only while its own work is in flight. Held back by the state: `disabledReason`. No
|
|
62
|
+
* permission for it: leave `action` out (rule 35).
|
|
63
|
+
*/
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
/** Why it cannot be pressed - see `Button`'s `disabledReason`. */
|
|
66
|
+
disabledReason?: ReactNode;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* The show/hide toggle on a password field.
|
|
70
|
+
*
|
|
71
|
+
* **On by default when `type="password"`**, which is the point: a password nobody can read back
|
|
72
|
+
* is a password typed wrong, and leaving it to the call site means half the product has the
|
|
73
|
+
* affordance and half does not. Pass `false` where revealing is not wanted — a confirmation
|
|
74
|
+
* field, where the reader is meant to type it again rather than compare it by eye.
|
|
75
|
+
*/
|
|
76
|
+
reveal?: boolean;
|
|
77
|
+
/** The four words these two buttons say. Override for a non-English UI. */
|
|
78
|
+
labels?: Partial<InputLabels>;
|
|
79
|
+
/**
|
|
80
|
+
* A live character count under the field, when `maxLength` is set.
|
|
81
|
+
*
|
|
82
|
+
* **Opt-in here, and on by default in `Textarea`.** The reason for a count is the same in both -
|
|
83
|
+
* `maxLength` stops accepting keystrokes without saying anything - but the fields are not: a
|
|
84
|
+
* one-line box is usually limited at a length nobody is going to reach (a name at 31, a key at
|
|
85
|
+
* 64), and a counter under every one of those is noise under a field that will never be full.
|
|
86
|
+
* Ask for it where the limit is part of what is being written and the reader is working up to
|
|
87
|
+
* it - a store listing's keywords at 100 characters, which sits under three textareas that all
|
|
88
|
+
* count (2026-09-19).
|
|
89
|
+
*
|
|
90
|
+
* Only a controlled field can be counted: an uncontrolled one's length is not knowable without
|
|
91
|
+
* holding state here, which is the thing this component does not do.
|
|
92
|
+
*/
|
|
93
|
+
showCount?: boolean;
|
|
94
|
+
className?: string;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* A controlled text input: `value` and `onChange`, no internal state, no validation, no form
|
|
98
|
+
* engine. Those belong to the consumer — which is what lets The product keep its own form layer and
|
|
99
|
+
* bind to this in an adapter.
|
|
100
|
+
*
|
|
101
|
+
* The one exception is the pair of trailing affordances, `copyable` and `reveal`, which own the
|
|
102
|
+
* little state they need — whether the password is showing, whether the copy just happened. They
|
|
103
|
+
* are here rather than at the call sites because they are the same two errands every time, and the
|
|
104
|
+
* product had them written out by hand, differently, wherever somebody remembered
|
|
105
|
+
* (product request, 2026-08-27).
|
|
106
|
+
*
|
|
107
|
+
* Inside a `Field`, the id, `aria-describedby`, `aria-invalid` and `required`
|
|
108
|
+
* come from context rather than being passed in, so a labelled field cannot be
|
|
109
|
+
* assembled incorrectly.
|
|
110
|
+
*
|
|
111
|
+
* The border and height live on a wrapper rather than the input, so an
|
|
112
|
+
* adornment sits inside the visible box. The wrapper is always present, even
|
|
113
|
+
* with no adornments: one DOM shape and one set of focus styles beats two
|
|
114
|
+
* code paths that drift.
|
|
115
|
+
*/
|
|
116
|
+
export declare const Input: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "className" | "onCopy" | "size" | "style"> & {
|
|
117
|
+
size?: InputSize;
|
|
118
|
+
/**
|
|
119
|
+
* Set only when the input is used outside a `Field`. Inside one it comes from
|
|
120
|
+
* context, so the two cannot disagree.
|
|
121
|
+
*/
|
|
122
|
+
invalid?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Slots inside the input's box. The product solves this twice — once with a separate
|
|
125
|
+
* IconTextField and once with icon classes inside Input — which is how SearchField and a password
|
|
126
|
+
* reveal ended up unable to share anything.
|
|
127
|
+
*
|
|
128
|
+
* Decorative content only. Anything interactive belongs in a real `<button>`
|
|
129
|
+
* passed in — or, for the two the product keeps asking for, in `copyable`
|
|
130
|
+
* and `reveal` below.
|
|
131
|
+
*/
|
|
132
|
+
startAdornment?: ReactNode;
|
|
133
|
+
endAdornment?: ReactNode;
|
|
134
|
+
/**
|
|
135
|
+
* A copy button at the trailing edge, copying what the field holds.
|
|
136
|
+
*
|
|
137
|
+
* **Because it is never the field's own business.** A webhook URL, a trace id, an SSH key, an
|
|
138
|
+
* API token: the value is there to be taken somewhere else, and the alternative is a button
|
|
139
|
+
* beside every one of those fields, hand-wired to the clipboard and worded differently each
|
|
140
|
+
* time. It reads the input rather than a prop, so it is right for a controlled and an
|
|
141
|
+
* uncontrolled field alike.
|
|
142
|
+
*/
|
|
143
|
+
copyable?: boolean;
|
|
144
|
+
/** Called after a successful copy, with the text that was copied. */
|
|
145
|
+
onCopy?: (value: string) => void;
|
|
146
|
+
/**
|
|
147
|
+
* One more control at the trailing edge, drawn with the built-in two's own recipe.
|
|
148
|
+
*
|
|
149
|
+
* **For the errand that belongs to the field and is neither copy nor reveal** — regenerating the
|
|
150
|
+
* key a field holds, which is the third one the product asked for (2026-08-29, on the webhook
|
|
151
|
+
* dialog). Without it the only way to put a third button on that row was an `IconButton` *beside*
|
|
152
|
+
* the input: a 28px control next to a 28px field, which reads as a second control rather than as
|
|
153
|
+
* part of this one, and which cannot line up with the copy button that sits inside the box.
|
|
154
|
+
*
|
|
155
|
+
* Not `endAdornment`, which is decorative — and a caller cannot reach the trailing button's
|
|
156
|
+
* recipe from outside this module, so a hand-rolled button in that slot would be a
|
|
157
|
+
* differently-sized, differently-hovering neighbour of the copy button. This is the same recipe,
|
|
158
|
+
* so the two read as one pair.
|
|
159
|
+
*
|
|
160
|
+
* It is drawn first: the thing that *changes* the value, then the things that take it away.
|
|
161
|
+
*/
|
|
162
|
+
action?: {
|
|
163
|
+
icon: ReactNode;
|
|
164
|
+
/** Its accessible name. Say what pressing it does — "Generate a new key", not "Refresh". */
|
|
165
|
+
label: string;
|
|
166
|
+
onClick: () => void;
|
|
167
|
+
/**
|
|
168
|
+
* Only while its own work is in flight. Held back by the state: `disabledReason`. No
|
|
169
|
+
* permission for it: leave `action` out (rule 35).
|
|
170
|
+
*/
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
/** Why it cannot be pressed - see `Button`'s `disabledReason`. */
|
|
173
|
+
disabledReason?: ReactNode;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* The show/hide toggle on a password field.
|
|
177
|
+
*
|
|
178
|
+
* **On by default when `type="password"`**, which is the point: a password nobody can read back
|
|
179
|
+
* is a password typed wrong, and leaving it to the call site means half the product has the
|
|
180
|
+
* affordance and half does not. Pass `false` where revealing is not wanted — a confirmation
|
|
181
|
+
* field, where the reader is meant to type it again rather than compare it by eye.
|
|
182
|
+
*/
|
|
183
|
+
reveal?: boolean;
|
|
184
|
+
/** The four words these two buttons say. Override for a non-English UI. */
|
|
185
|
+
labels?: Partial<InputLabels>;
|
|
186
|
+
/**
|
|
187
|
+
* A live character count under the field, when `maxLength` is set.
|
|
188
|
+
*
|
|
189
|
+
* **Opt-in here, and on by default in `Textarea`.** The reason for a count is the same in both -
|
|
190
|
+
* `maxLength` stops accepting keystrokes without saying anything - but the fields are not: a
|
|
191
|
+
* one-line box is usually limited at a length nobody is going to reach (a name at 31, a key at
|
|
192
|
+
* 64), and a counter under every one of those is noise under a field that will never be full.
|
|
193
|
+
* Ask for it where the limit is part of what is being written and the reader is working up to
|
|
194
|
+
* it - a store listing's keywords at 100 characters, which sits under three textareas that all
|
|
195
|
+
* count (2026-09-19).
|
|
196
|
+
*
|
|
197
|
+
* Only a controlled field can be counted: an uncontrolled one's length is not knowable without
|
|
198
|
+
* holding state here, which is the thing this component does not do.
|
|
199
|
+
*/
|
|
200
|
+
showCount?: boolean;
|
|
201
|
+
className?: string;
|
|
202
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
203
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ5D,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAYF,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAC1C,GAAG;IACF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,SAAS,CAAC;QAChB,4FAA4F;QAC5F,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB;;;WAGG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,kEAAkE;QAClE,cAAc,CAAC,EAAE,SAAS,CAAC;KAC5B,CAAC;IACF;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,KAAK;WA3GT,SAAS;IAChB;;;OAGG;cACO,OAAO;IACjB;;;;;;;;OAQG;qBACc,SAAS;mBACX,SAAS;IACxB;;;;;;;;OAQG;eACQ,OAAO;IAClB,qEAAqE;aAC5D,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAChC;;;;;;;;;;;;;;;OAeG;aACM;QACP,IAAI,EAAE,SAAS,CAAC;QAChB,4FAA4F;QAC5F,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB;;;WAGG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,kEAAkE;QAClE,cAAc,CAAC,EAAE,SAAS,CAAC;KAC5B;IACD;;;;;;;OAOG;aACM,OAAO;IAChB,2EAA2E;aAClE,OAAO,CAAC,WAAW,CAAC;IAC7B;;;;;;;;;;;;;OAaG;gBACS,OAAO;gBACP,MAAM;oDA0NnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* How the row is separated from what is behind it.
|
|
4
|
+
*
|
|
5
|
+
* `plain` for a row inside something that has already separated itself from the page — a panel, a
|
|
6
|
+
* card, the notification sheet — which is most rows and so is the default. `outline` for a row on a
|
|
7
|
+
* surface that draws nothing else, which is what the delete dialogs' evidence lists sit on.
|
|
8
|
+
* `muted` for a row that is a statement rather than one of a list: the build configuration sheet's
|
|
9
|
+
* machine plan.
|
|
10
|
+
*
|
|
11
|
+
* There was a `raised` here — a shadow and no line — and it was removed (2026-08-27) with the
|
|
12
|
+
* stories that were its only caller. Its doc named `BuildProfileHeader` and that block draws its
|
|
13
|
+
* own tiles; nothing in the product ever asked a *row* to lift off the page, and a card is what
|
|
14
|
+
* draws the thing that does.
|
|
15
|
+
*/
|
|
16
|
+
export type ItemVariant = "plain" | "outline" | "muted";
|
|
17
|
+
/**
|
|
18
|
+
* Everything a row does not name itself is passed to its root, and `ref` with it.
|
|
19
|
+
*
|
|
20
|
+
* A row is something things are attached *to* - a tooltip that has to open from it, a menu
|
|
21
|
+
* anchored to it - and those all arrive as handlers and a ref on the element. Without this
|
|
22
|
+
* they were dropped silently: a `Tooltip` around one cloned its handlers onto a component that
|
|
23
|
+
* threw them away, and the row simply never showed a hint (2026-09-18).
|
|
24
|
+
*/
|
|
25
|
+
export type ItemProps = Omit<HTMLAttributes<HTMLElement>, "title" | "onClick" | "className"> & {
|
|
26
|
+
ref?: Ref<HTMLElement>;
|
|
27
|
+
/**
|
|
28
|
+
* Leading slot — an icon, an avatar, a status dot — and always the consumer's,
|
|
29
|
+
* because Mosaic ships no icons. Whatever is passed takes its size and colour from the
|
|
30
|
+
* component through `currentColor`, so it is right in both themes without being
|
|
31
|
+
* told and cannot arrive at a different size in each place it is used.
|
|
32
|
+
*/
|
|
33
|
+
media?: ReactNode;
|
|
34
|
+
title: ReactNode;
|
|
35
|
+
description?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Trailing, and **not** interactive: a badge, a count, a timestamp. It sits under the item's
|
|
38
|
+
* hit area, so a click on it still activates the item — which the panel row needs, since the
|
|
39
|
+
* badge and the count sit right where a reader aiming at the row will click.
|
|
40
|
+
*
|
|
41
|
+
* Centred against the row rather than aligned to the title's first line. See the stylesheet:
|
|
42
|
+
* the panel row is one line and its badge has to sit level with the name, and a notification's
|
|
43
|
+
* timestamp reads no worse centred than it did top-aligned.
|
|
44
|
+
*/
|
|
45
|
+
meta?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Trailing, and interactive: buttons, a menu. It sits *above* the hit area, so its
|
|
48
|
+
* own controls receive their clicks instead of the item swallowing them.
|
|
49
|
+
*
|
|
50
|
+
* The split between this and `meta` is not decoration. It is the whole reason the
|
|
51
|
+
* stretched hit area below is safe — see the component's doc comment.
|
|
52
|
+
*/
|
|
53
|
+
actions?: ReactNode;
|
|
54
|
+
/** Makes the item a link. The title becomes the accessible name. */
|
|
55
|
+
href?: string;
|
|
56
|
+
/** Makes the item a button. Ignored when `href` is set. */
|
|
57
|
+
onClick?: () => void;
|
|
58
|
+
/**
|
|
59
|
+
* Why the current state holds the item back. Given, the item is still drawn as a button - so a
|
|
60
|
+
* keyboard reader reaches it - but `aria-disabled`, its press withheld (`href` and `onClick`
|
|
61
|
+
* both), and the sentence linked through `aria-describedby` and shown as a tooltip (see
|
|
62
|
+
* `Button`'s `disabledReason`). A row the reader has no permission to open is not this: the
|
|
63
|
+
* caller leaves the row out (rule 35).
|
|
64
|
+
*/
|
|
65
|
+
disabledReason?: ReactNode;
|
|
66
|
+
target?: string;
|
|
67
|
+
variant?: ItemVariant;
|
|
68
|
+
/**
|
|
69
|
+
* The row the list is currently showing, in a list that drives something beside it.
|
|
70
|
+
*
|
|
71
|
+
* Its own fill (`--mos-color-surface-4`) plus `aria-current` on the control, because
|
|
72
|
+
* a fill is not a state to anything that cannot see it. Chosen is not the same as hovered
|
|
73
|
+
* and not the same as focused, and the token exists for exactly this — see the note beside
|
|
74
|
+
* it for why `surface-sunken` was the wrong slot and made a hovered neighbour read as the
|
|
75
|
+
* chosen one.
|
|
76
|
+
*/
|
|
77
|
+
selected?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Something is running on this row. Sets `aria-busy`, and the row's own controls stay
|
|
80
|
+
* live — a build in progress is still a row you can unpin.
|
|
81
|
+
*/
|
|
82
|
+
busy?: boolean;
|
|
83
|
+
/** `li` when the item is one of a list — pair it with `<Stack as="ul">`. */
|
|
84
|
+
as?: "div" | "li";
|
|
85
|
+
className?: string;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* A row that summarises one thing: media, a title, a line about it, and something
|
|
89
|
+
* trailing. shadcn calls this `Item`.
|
|
90
|
+
*
|
|
91
|
+
* Four shapes in the product are this, and they arrived at it independently, which is what makes
|
|
92
|
+
* it a component rather than a block: the panel row (`ManagedListPanel` — variable groups, build
|
|
93
|
+
* configurations, workflows, publish flows), the directory row (`Directory` — the Help page and the
|
|
94
|
+
* empty build profile), the dialog's evidence list (what a deletion touches), and the notification
|
|
95
|
+
* row. The build profile's branch list and the dashboard's panels compose their own contents into
|
|
96
|
+
* the title and take the rest.
|
|
97
|
+
*
|
|
98
|
+
* **The part that took thinking.** A summary row usually has to be clickable across
|
|
99
|
+
* its whole surface, and it often also holds its own buttons. Doing both the obvious
|
|
100
|
+
* way produces invalid HTML — a `<button>` inside an `<a>` — and shadcn's answer is
|
|
101
|
+
* `asChild`, which hands the problem back to the caller.
|
|
102
|
+
*
|
|
103
|
+
* Here the control is only the title, and its hit area is stretched over the row by a
|
|
104
|
+
* `::after` that covers it. So there is one link with the title as its name, reachable
|
|
105
|
+
* with Tab and announced correctly, and the row is clickable everywhere. `actions` is
|
|
106
|
+
* positioned, and a positioned later sibling paints above an earlier sibling's
|
|
107
|
+
* pseudo-element, so its buttons keep their own clicks with no z-index involved.
|
|
108
|
+
*
|
|
109
|
+
* `meta` is deliberately *not* positioned, so the badge and the count there do not become a dead
|
|
110
|
+
* spot in the middle of the item's own hit area.
|
|
111
|
+
*
|
|
112
|
+
* **No hover-reveal, on purpose.** There was a `showActionsOnHover` prop here and it
|
|
113
|
+
* was removed. Hiding actions until the row is hovered *can* be done correctly —
|
|
114
|
+
* `opacity` rather than `display: none`, so they stay in the accessibility tree and the
|
|
115
|
+
* tab order; `:focus-within` as well as `:hover`, so tabbing to one does not focus an
|
|
116
|
+
* invisible element; and all of it inside `@media (hover: hover)`, so a touch screen
|
|
117
|
+
* does not hide them for good. But that is a correct implementation of a weak idea. A
|
|
118
|
+
* row with three hidden buttons costs four tab stops, cannot be discovered until you
|
|
119
|
+
* happen to point at it, and needs three separate rules to avoid excluding somebody.
|
|
120
|
+
*
|
|
121
|
+
* One `⋯` menu in `actions` costs one tab stop, is visible without being pointed at,
|
|
122
|
+
* and needs no special rules at all. Put row actions in a `DropdownMenu`.
|
|
123
|
+
*/
|
|
124
|
+
export declare function Item({ media, title, description, meta, actions, href, onClick, disabledReason, target, variant, selected, busy, as: Tag, className, ...rest }: ItemProps): import("react").JSX.Element;
|
|
125
|
+
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/components/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAK5D;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,cAAc,CAAC,WAAW,CAAC,EAC3B,OAAO,GAAG,SAAS,GAAG,WAAW,CAClC,GAAG;IACF,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACvB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4EAA4E;IAC5E,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,OAAO,EACP,cAAc,EACd,MAAM,EACN,OAAiB,EACjB,QAAgB,EAChB,IAAY,EACZ,EAAE,EAAE,GAAW,EACf,SAAS,EACT,GAAG,IAAI,EACR,EAAE,SAAS,+BA0EX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ElementType, ReactElement, ReactNode, Ref } from "react";
|
|
2
|
+
type LinkOwnProps = {
|
|
3
|
+
/**
|
|
4
|
+
* `always` is the default because the link colour is only 1.25:1 against
|
|
5
|
+
* body text. Colour alone cannot mark a link (WCAG 1.4.1), so the underline
|
|
6
|
+
* is doing the work. Use `hover` only where the link is not inside a
|
|
7
|
+
* sentence — a standalone nav item, a table cell that is entirely a link.
|
|
8
|
+
*/
|
|
9
|
+
underline?: "always" | "hover";
|
|
10
|
+
/**
|
|
11
|
+
* Why it cannot be followed. Given, it is no link at all - no `href`, nothing to follow - but
|
|
12
|
+
* stays reachable as `role="link"` `aria-disabled`, shows the not-allowed cursor and says the
|
|
13
|
+
* sentence (see `Button`'s `disabledReason`). For a condition: a page that does not exist yet
|
|
14
|
+
* (a build still queued has no logs to open). A page the reader has no permission to open is
|
|
15
|
+
* not a disabled link; the name is drawn as plain text, or not at all (rule 35).
|
|
16
|
+
*/
|
|
17
|
+
disabledReason?: ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Polymorphic so a router's link component can stand in. The generic is what
|
|
22
|
+
* makes the substitution typecheck: with `as={RouterLink}`, `to` is accepted
|
|
23
|
+
* and `href` is not, because the props come from whatever `as` is.
|
|
24
|
+
*/
|
|
25
|
+
export type LinkProps<E extends ElementType = "a"> = LinkOwnProps & {
|
|
26
|
+
as?: E;
|
|
27
|
+
} & Omit<ComponentPropsWithoutRef<E>, keyof LinkOwnProps | "as">;
|
|
28
|
+
/**
|
|
29
|
+
* A navigation control. Renders an anchor, which is the entire point: a `div`
|
|
30
|
+
* with an `onClick` cannot be focused, does not respond to Enter, is missing
|
|
31
|
+
* from a screen reader's list of links, and cannot be opened in a new tab.
|
|
32
|
+
*
|
|
33
|
+
* Font size and family are inherited, so a link inside a sentence matches the
|
|
34
|
+
* sentence. There is no `size` prop for that reason.
|
|
35
|
+
*
|
|
36
|
+
* Forwards its ref, which it has to: `Tooltip` and `HoverCard` anchor to their
|
|
37
|
+
* trigger through one, and without it they position against nothing and land in the
|
|
38
|
+
* corner of the viewport. That failed silently — the card rendered, it was simply in
|
|
39
|
+
* the wrong place — so `tests/tooltip.spec.ts` pins a Link trigger specifically.
|
|
40
|
+
*/
|
|
41
|
+
export declare const Link: <E extends ElementType = "a">(
|
|
42
|
+
/**
|
|
43
|
+
* The cast is what keeps the polymorphic generic: `forwardRef` erases it, so
|
|
44
|
+
* `as={RouterLink}` would stop typechecking its own props without this.
|
|
45
|
+
*/
|
|
46
|
+
props: LinkProps<E> & {
|
|
47
|
+
ref?: Ref<Element>;
|
|
48
|
+
}) => ReactElement;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EAEX,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAKf,KAAK,YAAY,GAAG;IAClB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC/B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,IAAI,YAAY,GAAG;IAClE,EAAE,CAAC,EAAE,CAAC,CAAC;CACR,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,YAAY,GAAG,IAAI,CAAC,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,IAAI,EAiDX,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG;AAChC;;;GAGG;AACH,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CAAE,KACzC,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Link/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type ListFieldProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The group's name — a `<legend>`, because one label cannot name several controls.
|
|
5
|
+
*
|
|
6
|
+
* Optional, and often better left out: a legend over a note that already says what the rows are
|
|
7
|
+
* ("ADD PROVISIONING PROFILE" above "Select a provisioning profile to enable the signing of
|
|
8
|
+
* archive files") is the sentence twice, once in capitals (2026-09-01). Leave it off only when
|
|
9
|
+
* the note and the add control name the list between them, as they do there — each row still
|
|
10
|
+
* carries its own accessible name.
|
|
11
|
+
*/
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
/** The sentence that explains what choosing these does. Drawn in the note. */
|
|
14
|
+
help?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* A second line in the note: the fact the choices are being made *against*.
|
|
17
|
+
*
|
|
18
|
+
* The signing tab's is "Build scheme name: Appcircle" — which was a floating `<p>` between the
|
|
19
|
+
* help text and the first row, belonging to neither.
|
|
20
|
+
*/
|
|
21
|
+
note?: ReactNode;
|
|
22
|
+
/** Shown under the rows, and announced. */
|
|
23
|
+
error?: ReactNode;
|
|
24
|
+
/** The words on the add control. */
|
|
25
|
+
addLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Adding another row. Omit for a list that cannot grow — a read-only view of what was chosen.
|
|
28
|
+
*
|
|
29
|
+
* Whether it is *offered* is `canAdd`: a row already waiting to be filled in, or nothing left to
|
|
30
|
+
* choose, are both reasons to draw it and refuse it rather than to hide it.
|
|
31
|
+
*/
|
|
32
|
+
onAdd?: () => void;
|
|
33
|
+
canAdd?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Why adding is refused, said on the add button (see `Button`'s `disabledReason`) - a
|
|
36
|
+
* row still waiting, nothing left to choose. A missing permission is not one: the caller leaves
|
|
37
|
+
* `onAdd` out and the button is not drawn.
|
|
38
|
+
*/
|
|
39
|
+
addDisabledReason?: ReactNode;
|
|
40
|
+
/** Removing row `index`. Omit for rows that cannot be removed. */
|
|
41
|
+
onRemove?: (index: number) => void;
|
|
42
|
+
/** The remove button's accessible name for row `index`. Say what is being removed. */
|
|
43
|
+
removeLabel?: (index: number) => string;
|
|
44
|
+
/** Why the rows cannot be removed, said on each remove button - see `Button`'s `disabledReason`. */
|
|
45
|
+
removeDisabledReason?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* The remove button's glyph, and the consumer's — Mosaic ships no icons (rule 2). Without one it
|
|
48
|
+
* draws the same two crossed bars `Alert`'s dismiss does, so a caller with no icon set still gets
|
|
49
|
+
* a usable control.
|
|
50
|
+
*/
|
|
51
|
+
removeIcon?: ReactNode;
|
|
52
|
+
/** The add button's glyph, on the same terms. Without one, two bars crossed at right angles. */
|
|
53
|
+
addIcon?: ReactNode;
|
|
54
|
+
/** One child per row: the control that chooses that row's value. */
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
className?: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* A labelled group whose value is a list: one control per row, a remove beside each, and one
|
|
61
|
+
* button that adds another.
|
|
62
|
+
*
|
|
63
|
+
* **The shape three places in the product build by hand** — the signing tab's provisioning
|
|
64
|
+
* profiles, its certificates, and the triggers panel's rows — and each builds it differently: a
|
|
65
|
+
* `Field` here, a floating paragraph of context there, an add button that is sometimes a link and
|
|
66
|
+
* sometimes hidden when it cannot be pressed.
|
|
67
|
+
*
|
|
68
|
+
* **The arrangement is `ManagedListPanel`'s** (product call, 2026-08-27): the sentence and the
|
|
69
|
+
* control that acts on the whole list go in one note, and the rows sit under it — outside the box,
|
|
70
|
+
* one per line. The answer to the question is yes, and it is the same answer that panel gives, so
|
|
71
|
+
* the two read as one idea in two places.
|
|
72
|
+
*
|
|
73
|
+
* **Not `ManagedListPanel` itself**, though, and this is the line: that block's rows are *named
|
|
74
|
+
* things* — created, renamed, cloned, deleted, with a `⋯` each. These rows are *choices*, and a
|
|
75
|
+
* choice is a control that has to be visible: hiding a signing identity behind a row you must click
|
|
76
|
+
* to discover is not the same field. So this composes the same parts — `Field`, `Alert`, the row
|
|
77
|
+
* with its remove — rather than teaching that block a second kind of row.
|
|
78
|
+
*/
|
|
79
|
+
export declare function ListField({ label, help, note, error, addLabel, onAdd, canAdd, addDisabledReason, onRemove, removeLabel, removeDisabledReason, removeIcon, addIcon, children, disabled, className }: ListFieldProps): import("react").JSX.Element;
|
|
80
|
+
//# sourceMappingURL=ListField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListField.d.ts","sourceRoot":"","sources":["../../../src/components/ListField/ListField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sFAAsF;IACtF,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,oGAAoG;IACpG,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,gGAAgG;IAChG,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,QAAgB,EAChB,KAAK,EACL,MAAa,EACb,iBAAiB,EACjB,QAAQ,EACR,WAAkD,EAClD,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,QAAQ,EACR,QAAgB,EAChB,SAAS,EACV,EAAE,cAAc,+BAsFhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ListField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type PageHeaderProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The page's name. Becomes its `h1` — one per page, and this is it.
|
|
5
|
+
*
|
|
6
|
+
* Optional, because a page whose name is already on screen should not print it twice: in The
|
|
7
|
+
* product the module's name is in the sidebar and again in the breadcrumb, and a third copy at
|
|
8
|
+
* the top of the list is the row's widest element saying the least. Left out, the header is its
|
|
9
|
+
* toolbar, and the toolbar keeps the trailing edge it had.
|
|
10
|
+
*/
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
/** A line under the title. */
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* What sits immediately after the title, on its line — a framework mark, a quick link to
|
|
16
|
+
* the repository, a webhook shortcut. Outside the `h1`, so a button here does not become
|
|
17
|
+
* part of the page's accessible name.
|
|
18
|
+
*/
|
|
19
|
+
beside?: ReactNode;
|
|
20
|
+
/** Trailing controls: the primary action, usually one button. */
|
|
21
|
+
actions?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* The controls that narrow the page down — a filter, an order. They sit on the same line as
|
|
24
|
+
* the title and the primary action, at the trailing edge and just before it.
|
|
25
|
+
*
|
|
26
|
+
* One row rather than two, and it is a decision rather than a saving. A second row of controls
|
|
27
|
+
* reads as a second header: the product's list pages have one, and on them the eye passes the
|
|
28
|
+
* title, then a strip of unrelated widgets, before reaching the list. With the controls beside
|
|
29
|
+
* the action, everything that acts on the page is in one place and the list starts immediately.
|
|
30
|
+
*
|
|
31
|
+
* **Icons, not words.** A row that reads "Filter · Last build · Descending · Add a New Build
|
|
32
|
+
* Profile" spends most of its width restating what its controls are, next to the one control
|
|
33
|
+
* that is an action. `IconButton` requires an `aria-label`, so nothing is lost to anyone
|
|
34
|
+
* reading the page with assistive technology, and a `Tooltip` puts the word back on hover
|
|
35
|
+
* and on focus for anyone who wants it.
|
|
36
|
+
*
|
|
37
|
+
* **Give a form control a width here.** `Input` and `Select` are `inline-size: 100%`
|
|
38
|
+
* because they fill the `Field` they normally live in, and a `select` left to itself
|
|
39
|
+
* measured 483px in this row — which then set the whole group's width and wrapped the other
|
|
40
|
+
* controls underneath it. Wrap it in something sized: `<span style={{inlineSize: "14rem"}}>`.
|
|
41
|
+
*/
|
|
42
|
+
inputs?: ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The top of a list page: what it is, what you can do to it, and how to narrow it.
|
|
47
|
+
*
|
|
48
|
+
* The product has one of these per module inside `SearchLayout` (576 lines), which draws the title,
|
|
49
|
+
* the search box, the filter and sort triggers, the view switch, the add button, the help link, the
|
|
50
|
+
* YouTube link and the empty state — for six modules at once, through twenty-nine props. That is a
|
|
51
|
+
* page template rather than a header, and it is why moving one module means touching all six.
|
|
52
|
+
*
|
|
53
|
+
* This is only the header. Its slots are `title`, `description`, `beside`, `actions` and
|
|
54
|
+
* `inputs`; a page arranges its own contents underneath. The heading is an `h1` because a list page's name is
|
|
55
|
+
* the page's name — `SearchLayout` renders it as a `div`, so those pages have no `h1` at all.
|
|
56
|
+
*/
|
|
57
|
+
export declare function PageHeader({ title, description, beside, actions, inputs, className }: PageHeaderProps): import("react").JSX.Element;
|
|
58
|
+
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iEAAiE;IACjE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,MAAM,EACN,OAAO,EACP,MAAM,EACN,SAAS,EACV,EAAE,eAAe,+BA6BjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type PaginationProps = {
|
|
2
|
+
/** 1-based, to match what the buttons say. */
|
|
3
|
+
page: number;
|
|
4
|
+
pageCount: number;
|
|
5
|
+
onPageChange: (page: number) => void;
|
|
6
|
+
/**
|
|
7
|
+
* How many numbered buttons to draw, counting the first and last. Honoured exactly — the
|
|
8
|
+
* product's equivalent is `pageRangeDisplayed`, whose loop runs one past its own window, so
|
|
9
|
+
* asking for five draws six. That is the `1 2 3 4 5 6` in the product today.
|
|
10
|
+
*/
|
|
11
|
+
visiblePages?: number;
|
|
12
|
+
/** Names the landmark. Give each pagination on a page its own. */
|
|
13
|
+
"aria-label"?: string;
|
|
14
|
+
/** Overridable for translation. */
|
|
15
|
+
previousLabel?: string;
|
|
16
|
+
nextLabel?: string;
|
|
17
|
+
pageLabel?: (page: number) => string;
|
|
18
|
+
currentPageLabel?: (page: number) => string;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const GAP: "gap";
|
|
22
|
+
type Item = number | typeof GAP;
|
|
23
|
+
/**
|
|
24
|
+
* Which page numbers to draw. The count of numbers is exactly
|
|
25
|
+
* `min(visiblePages, pageCount)` — that is the property worth pinning, and the one
|
|
26
|
+
* the original gets wrong.
|
|
27
|
+
*
|
|
28
|
+
* The first and last pages are always among them, which is why there are no
|
|
29
|
+
* first/last arrows: every page is at most one click plus one hop away, and `<<` and
|
|
30
|
+
* `>>` would only repeat what the `1` and `50` buttons already do. That removes both
|
|
31
|
+
* `hideGoToFirstArrow` and `hideGoToLastArrow`.
|
|
32
|
+
*
|
|
33
|
+
* A gap standing in for a single omitted page is possible — "1 2 3 4 … 6" — and is
|
|
34
|
+
* left alone deliberately: special-casing it would break the exact count above for a
|
|
35
|
+
* cosmetic gain.
|
|
36
|
+
*/
|
|
37
|
+
export declare function pageItems(page: number, pageCount: number, visiblePages: number): Item[];
|
|
38
|
+
/**
|
|
39
|
+
* Page navigation. The product's version has four faults that are invisible on screen and total:
|
|
40
|
+
*
|
|
41
|
+
* - **It cannot be used from a keyboard.** Every control is an `<a>` with no
|
|
42
|
+
* `href` and a click handler — on the `<li>` for numbers, on the anchor for
|
|
43
|
+
* arrows. An anchor without an href is not focusable and has no role, so Tab
|
|
44
|
+
* never reaches it and Enter does nothing.
|
|
45
|
+
* - **A disabled arrow becomes a `<div>`.** It leaves the accessibility tree
|
|
46
|
+
* entirely instead of being announced as unavailable, so on page one the
|
|
47
|
+
* "previous" control does not exist rather than being off.
|
|
48
|
+
* - **Nothing says which page you are on.** The current page carries a class named
|
|
49
|
+
* `active` and no `aria-current`.
|
|
50
|
+
* - **It is not a landmark.** A bare `<ul>`, with no `<nav>` and no name, so it
|
|
51
|
+
* cannot be jumped to.
|
|
52
|
+
*
|
|
53
|
+
* It also holds its own page in state *and* reports changes upward, so the component
|
|
54
|
+
* and the URL can disagree — with a `useLayoutEffect` that resets to page one
|
|
55
|
+
* whenever a `filterParams` prop changes, which exists only to paper over that. Here
|
|
56
|
+
* `page` is a prop, so there is nothing to fall out of step and no reset hook.
|
|
57
|
+
*/
|
|
58
|
+
export declare function Pagination({ page, pageCount, onPageChange, visiblePages, previousLabel, nextLabel, pageLabel, currentPageLabel, className, ...rest }: PaginationProps): import("react").JSX.Element | null;
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=Pagination.d.ts.map
|