@appcircle/mosaic 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +90 -2
- package/dist/blocks/AISummary/AISummary.d.ts +92 -0
- package/dist/blocks/AISummary/AISummary.d.ts.map +1 -0
- package/dist/blocks/AISummary/index.d.ts +3 -0
- package/dist/blocks/AISummary/index.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts +95 -0
- package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts.map +1 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts +3 -0
- package/dist/blocks/ActiveProcessPanel/index.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts +52 -0
- package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts.map +1 -0
- package/dist/blocks/AppcircleLayout/index.d.ts +3 -0
- package/dist/blocks/AppcircleLayout/index.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts +169 -0
- package/dist/blocks/BuildBranchList/BuildBranchList.d.ts.map +1 -0
- package/dist/blocks/BuildBranchList/index.d.ts +3 -0
- package/dist/blocks/BuildBranchList/index.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts +175 -0
- package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts.map +1 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts +3 -0
- package/dist/blocks/BuildProfileHeader/index.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts +64 -0
- package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts.map +1 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts +3 -0
- package/dist/blocks/BuildTriggerCard/index.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts +81 -0
- package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts.map +1 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts +3 -0
- package/dist/blocks/BuildVariableGroupsLayout/index.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts +82 -0
- package/dist/blocks/DashboardSummary/DashboardSummary.d.ts.map +1 -0
- package/dist/blocks/DashboardSummary/index.d.ts +3 -0
- package/dist/blocks/DashboardSummary/index.d.ts.map +1 -0
- package/dist/blocks/Directory/Directory.d.ts +53 -0
- package/dist/blocks/Directory/Directory.d.ts.map +1 -0
- package/dist/blocks/Directory/index.d.ts +3 -0
- package/dist/blocks/Directory/index.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts +283 -0
- package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts.map +1 -0
- package/dist/blocks/ManagedListPanel/index.d.ts +3 -0
- package/dist/blocks/ManagedListPanel/index.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts +98 -0
- package/dist/blocks/NotificationCenter/NotificationCenter.d.ts.map +1 -0
- package/dist/blocks/NotificationCenter/index.d.ts +3 -0
- package/dist/blocks/NotificationCenter/index.d.ts.map +1 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts +82 -0
- package/dist/blocks/Onboarding/Onboarding.d.ts.map +1 -0
- package/dist/blocks/Onboarding/index.d.ts +3 -0
- package/dist/blocks/Onboarding/index.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts +83 -0
- package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts +3 -0
- package/dist/blocks/OrganizationSwitcher/index.d.ts.map +1 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts +69 -0
- package/dist/blocks/PlanCard/PlanCard.d.ts.map +1 -0
- package/dist/blocks/PlanCard/index.d.ts +3 -0
- package/dist/blocks/PlanCard/index.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts +211 -0
- package/dist/blocks/ProfileCard/ProfileCard.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts +36 -0
- package/dist/blocks/ProfileCard/ProfileMark.d.ts.map +1 -0
- package/dist/blocks/ProfileCard/index.d.ts +5 -0
- package/dist/blocks/ProfileCard/index.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts +255 -0
- package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts.map +1 -0
- package/dist/blocks/ReportFilterBar/index.d.ts +3 -0
- package/dist/blocks/ReportFilterBar/index.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts +57 -0
- package/dist/blocks/RestrictedArea/RestrictedArea.d.ts.map +1 -0
- package/dist/blocks/RestrictedArea/index.d.ts +3 -0
- package/dist/blocks/RestrictedArea/index.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts +118 -0
- package/dist/blocks/SearchLayout/SearchLayout.d.ts.map +1 -0
- package/dist/blocks/SearchLayout/index.d.ts +3 -0
- package/dist/blocks/SearchLayout/index.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts +46 -0
- package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts.map +1 -0
- package/dist/blocks/UpgradeDialog/index.d.ts +3 -0
- package/dist/blocks/UpgradeDialog/index.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts +29 -0
- package/dist/blocks/VersionIdentity/VersionIdentity.d.ts.map +1 -0
- package/dist/blocks/VersionIdentity/index.d.ts +3 -0
- package/dist/blocks/VersionIdentity/index.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +87 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +37 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +55 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +191 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/CopyButton.d.ts +43 -0
- package/dist/components/Button/CopyButton.d.ts.map +1 -0
- package/dist/components/Button/IconButton.d.ts +70 -0
- package/dist/components/Button/IconButton.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +7 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +99 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +85 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/CardGrid/CardGrid.d.ts +28 -0
- package/dist/components/CardGrid/CardGrid.d.ts.map +1 -0
- package/dist/components/CardGrid/index.d.ts +3 -0
- package/dist/components/CardGrid/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +64 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +34 -0
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/dist/components/Collapsible/index.d.ts +3 -0
- package/dist/components/Collapsible/index.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +126 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/MultiSelect.d.ts +81 -0
- package/dist/components/Combobox/MultiSelect.d.ts.map +1 -0
- package/dist/components/Combobox/index.d.ts +5 -0
- package/dist/components/Combobox/index.d.ts.map +1 -0
- package/dist/components/Combobox/keyboard.d.ts +24 -0
- package/dist/components/Combobox/keyboard.d.ts.map +1 -0
- package/dist/components/Command/Command.d.ts +160 -0
- package/dist/components/Command/Command.d.ts.map +1 -0
- package/dist/components/Command/CommandDialog.d.ts +25 -0
- package/dist/components/Command/CommandDialog.d.ts.map +1 -0
- package/dist/components/Command/index.d.ts +5 -0
- package/dist/components/Command/index.d.ts.map +1 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts +114 -0
- package/dist/components/CommandFilter/CommandFilter.d.ts.map +1 -0
- package/dist/components/CommandFilter/FilterChip.d.ts +66 -0
- package/dist/components/CommandFilter/FilterChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/ValueChip.d.ts +31 -0
- package/dist/components/CommandFilter/ValueChip.d.ts.map +1 -0
- package/dist/components/CommandFilter/index.d.ts +7 -0
- package/dist/components/CommandFilter/index.d.ts.map +1 -0
- package/dist/components/CommandSort/CommandSort.d.ts +66 -0
- package/dist/components/CommandSort/CommandSort.d.ts.map +1 -0
- package/dist/components/CommandSort/index.d.ts +3 -0
- package/dist/components/CommandSort/index.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +326 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/components/DataTable/RowActions.d.ts +30 -0
- package/dist/components/DataTable/RowActions.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +5 -0
- package/dist/components/DataTable/index.d.ts.map +1 -0
- package/dist/components/Dialog/AlertDialog.d.ts +117 -0
- package/dist/components/Dialog/AlertDialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +107 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/index.d.ts +5 -0
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/DonutChart/DonutChart.d.ts +51 -0
- package/dist/components/DonutChart/DonutChart.d.ts.map +1 -0
- package/dist/components/DonutChart/index.d.ts +3 -0
- package/dist/components/DonutChart/index.d.ts.map +1 -0
- package/dist/components/Dot/Dot.d.ts +37 -0
- package/dist/components/Dot/Dot.d.ts.map +1 -0
- package/dist/components/Dot/index.d.ts +3 -0
- package/dist/components/Dot/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +119 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
- package/dist/components/DropdownMenu/index.d.ts +3 -0
- package/dist/components/DropdownMenu/index.d.ts.map +1 -0
- package/dist/components/Empty/Empty.d.ts +76 -0
- package/dist/components/Empty/Empty.d.ts.map +1 -0
- package/dist/components/Empty/index.d.ts +3 -0
- package/dist/components/Empty/index.d.ts.map +1 -0
- package/dist/components/Field/Field.d.ts +143 -0
- package/dist/components/Field/Field.d.ts.map +1 -0
- package/dist/components/Field/index.d.ts +3 -0
- package/dist/components/Field/index.d.ts.map +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +102 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload/index.d.ts +3 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -0
- package/dist/components/Gallery/Gallery.d.ts +97 -0
- package/dist/components/Gallery/Gallery.d.ts.map +1 -0
- package/dist/components/Gallery/index.d.ts +3 -0
- package/dist/components/Gallery/index.d.ts.map +1 -0
- package/dist/components/HoverCard/HoverCard.d.ts +40 -0
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/components/HoverCard/index.d.ts +3 -0
- package/dist/components/HoverCard/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +70 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/InfoBox/InfoBox.d.ts +58 -0
- package/dist/components/InfoBox/InfoBox.d.ts.map +1 -0
- package/dist/components/InfoBox/index.d.ts +3 -0
- package/dist/components/InfoBox/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +203 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Item/Item.d.ts +125 -0
- package/dist/components/Item/Item.d.ts.map +1 -0
- package/dist/components/Item/index.d.ts +3 -0
- package/dist/components/Item/index.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +50 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/ListField/ListField.d.ts +80 -0
- package/dist/components/ListField/ListField.d.ts.map +1 -0
- package/dist/components/ListField/index.d.ts +3 -0
- package/dist/components/ListField/index.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +58 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +3 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +60 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +64 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Progress/Progress.d.ts +43 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +3 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts +94 -0
- package/dist/components/ProgressBand/ProgressBand.d.ts.map +1 -0
- package/dist/components/ProgressBand/index.d.ts +3 -0
- package/dist/components/ProgressBand/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +66 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +36 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +44 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Separator/Separator.d.ts +28 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/index.d.ts +3 -0
- package/dist/components/Separator/index.d.ts.map +1 -0
- package/dist/components/Sheet/Sheet.d.ts +103 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +3 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +329 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar/index.d.ts +3 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts +126 -0
- package/dist/components/SimpleListItem/SimpleListItem.d.ts.map +1 -0
- package/dist/components/SimpleListItem/index.d.ts +3 -0
- package/dist/components/SimpleListItem/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +42 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +21 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +3 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Stack/Stack.d.ts +51 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +3 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Stat/Stat.d.ts +82 -0
- package/dist/components/Stat/Stat.d.ts.map +1 -0
- package/dist/components/Stat/index.d.ts +3 -0
- package/dist/components/Stat/index.d.ts.map +1 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts +67 -0
- package/dist/components/StatusHistory/StatusHistory.d.ts.map +1 -0
- package/dist/components/StatusHistory/index.d.ts +3 -0
- package/dist/components/StatusHistory/index.d.ts.map +1 -0
- package/dist/components/StepCard/StepCard.d.ts +80 -0
- package/dist/components/StepCard/StepCard.d.ts.map +1 -0
- package/dist/components/StepCard/index.d.ts +3 -0
- package/dist/components/StepCard/index.d.ts.map +1 -0
- package/dist/components/StepList/StepList.d.ts +68 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/index.d.ts +3 -0
- package/dist/components/StepList/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +26 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts +41 -0
- package/dist/components/SwitchPanel/SwitchPanel.d.ts.map +1 -0
- package/dist/components/SwitchPanel/index.d.ts +3 -0
- package/dist/components/SwitchPanel/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +117 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/TagsInput/TagsInput.d.ts +76 -0
- package/dist/components/TagsInput/TagsInput.d.ts.map +1 -0
- package/dist/components/TagsInput/index.d.ts +3 -0
- package/dist/components/TagsInput/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +89 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +3 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Toaster/Toaster.d.ts +99 -0
- package/dist/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster/index.d.ts +3 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +91 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/dist/components/ToggleGroup/index.d.ts +3 -0
- package/dist/components/ToggleGroup/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +56 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/icons/index.d.ts +257 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15988 -0
- package/dist/internal/ClippedText.d.ts +40 -0
- package/dist/internal/ClippedText.d.ts.map +1 -0
- package/dist/internal/DisabledReason.d.ts +50 -0
- package/dist/internal/DisabledReason.d.ts.map +1 -0
- package/dist/internal/InlineSearch.d.ts +27 -0
- package/dist/internal/InlineSearch.d.ts.map +1 -0
- package/dist/internal/children.d.ts +22 -0
- package/dist/internal/children.d.ts.map +1 -0
- package/dist/internal/mergeRefs.d.ts +32 -0
- package/dist/internal/mergeRefs.d.ts.map +1 -0
- package/dist/internal/modality.d.ts +18 -0
- package/dist/internal/modality.d.ts.map +1 -0
- package/dist/internal/useDismissModality.d.ts +23 -0
- package/dist/internal/useDismissModality.d.ts.map +1 -0
- package/dist/internal/useHoverOpen.d.ts +75 -0
- package/dist/internal/useHoverOpen.d.ts.map +1 -0
- package/dist/internal/useModalDialog.d.ts +40 -0
- package/dist/internal/useModalDialog.d.ts.map +1 -0
- package/dist/internal/usePopover.d.ts +43 -0
- package/dist/internal/usePopover.d.ts.map +1 -0
- package/dist/mosaic.css +2 -0
- package/package.json +81 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Empty/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* What a control needs to know to be correctly associated with its label, its help text and its
|
|
4
|
+
* error. Every one of these is absent from the product: across the whole app `htmlFor`,
|
|
5
|
+
* `aria-describedby`, `aria-invalid` and `aria-required` appear zero times, and `<label>` twelve.
|
|
6
|
+
* So no form field is announced with its name, and no error message is announced at all.
|
|
7
|
+
*
|
|
8
|
+
* Field exists to make that impossible to get wrong rather than possible to
|
|
9
|
+
* get right.
|
|
10
|
+
*/
|
|
11
|
+
export type FieldControlProps = {
|
|
12
|
+
/** Absent in `fieldset` mode: a group's members carry their own ids. */
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Points at the help text, the error, or both. */
|
|
15
|
+
"aria-describedby": string | undefined;
|
|
16
|
+
"aria-invalid": boolean | undefined;
|
|
17
|
+
required: boolean | undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Read by controls inside a `Field`. Returns undefined when the control is used
|
|
21
|
+
* standalone, so a control never depends on being wrapped.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useFieldControl(): FieldControlProps | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The ids and wiring a labelled group of controls needs. Shared with
|
|
26
|
+
* CheckboxGroup and RadioGroup, which render their own `fieldset` but need
|
|
27
|
+
* exactly the same description and error plumbing.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useFieldWiring(opts: {
|
|
30
|
+
help?: ReactNode;
|
|
31
|
+
error?: ReactNode;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
disabledReason?: ReactNode;
|
|
34
|
+
}): {
|
|
35
|
+
controlId: string;
|
|
36
|
+
helpId: string;
|
|
37
|
+
errorId: string;
|
|
38
|
+
reasonId: string;
|
|
39
|
+
invalid: boolean;
|
|
40
|
+
describedBy: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
export type FieldProps = {
|
|
43
|
+
label?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* **`fieldset` only:** draw the label, and the help under it, as a band inside the group's own
|
|
46
|
+
* box instead of as a line above it.
|
|
47
|
+
*
|
|
48
|
+
* For the sets that are a box of their own - `CheckboxGroup`/`RadioGroup` with `variant="list"`.
|
|
49
|
+
* A title floating above a bordered box reads as a caption for whatever follows rather than as
|
|
50
|
+
* the box's own name, and the product had already drawn this header by hand twice, inside the
|
|
51
|
+
* box, to say so (2026-09-17).
|
|
52
|
+
*
|
|
53
|
+
* The band is still the `<legend>` - floated, which is what makes a legend render as an
|
|
54
|
+
* ordinary block inside the box rather than in the border's notch - so the group is named to a
|
|
55
|
+
* screen reader by the same words the reader sees, with nothing written twice.
|
|
56
|
+
*/
|
|
57
|
+
headed?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Guidance, shown between the label and the control — an instruction is read before the
|
|
60
|
+
* field is filled in, not after.
|
|
61
|
+
*
|
|
62
|
+
* That is where the product puts it, in 262 of the 271 places it has one, and it also happens to
|
|
63
|
+
* be right. What the product does *not* do is worth copying: in all 262 the tip is nested
|
|
64
|
+
* **inside** the label element. Those are `<div>`s today, so nothing is named at all — but the
|
|
65
|
+
* moment one is turned into a real `<label>`, the instruction becomes part of the field's
|
|
66
|
+
* accessible name, and landing on the field announces "Organization Select the organizations that
|
|
67
|
+
* the user will become a member of, edit text" every single time. `aria-describedby` exists so
|
|
68
|
+
* that text is a *description*: read after the name, and silenceable. Nesting it in the label
|
|
69
|
+
* throws that away.
|
|
70
|
+
*/
|
|
71
|
+
help?: ReactNode;
|
|
72
|
+
/** Announced when it appears. Shown below the control, unlike `help` — see the component. */
|
|
73
|
+
error?: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* Whether that error is *shown* — which is a different question from whether it exists.
|
|
76
|
+
*
|
|
77
|
+
* **Leave it out and the field decides**, which is the answer to "why is this not solved
|
|
78
|
+
* centrally?" (2026-09-01). Every dialog in the product was keeping its own `touched` map beside
|
|
79
|
+
* its own `submitted` flag, and each got it slightly wrong: a field the reader had not typed a
|
|
80
|
+
* word into announced "Required" the moment focus passed over it, and one they were halfway
|
|
81
|
+
* through typing called itself too short on the first keystroke.
|
|
82
|
+
*
|
|
83
|
+
* The rule the field applies on its own (2026-09-06): **say nothing while they are in the field;
|
|
84
|
+
* speak when they leave it; fall silent again when they come back to fix it.** So the first
|
|
85
|
+
* keystroke never earns a "too short", a field never typed in stays quiet however many times
|
|
86
|
+
* focus passes over it, and the message is a verdict on what they left behind rather than a
|
|
87
|
+
* commentary on what they are typing. Its turn for an untouched field comes at submit, which is
|
|
88
|
+
* what `showError` is for.
|
|
89
|
+
*
|
|
90
|
+
* `true` shows it now (a form that has been submitted, an error the server sent back, a rule that
|
|
91
|
+
* is wrong before anyone types); `false` never shows it. Both are for cases where the caller
|
|
92
|
+
* genuinely knows better. See `FormFieldShell` in the product.
|
|
93
|
+
*/
|
|
94
|
+
showError?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* **Why the control cannot be changed.** The caller still disables the control; this says why.
|
|
97
|
+
* The sentence joins the control's `aria-describedby`, after the help and the error, so it is
|
|
98
|
+
* there without any hover, and it is shown as a tooltip while the pointer is over the control.
|
|
99
|
+
* A disabled `<input>` or `<button>` takes no pointer events of its own, so the box around it
|
|
100
|
+
* listens instead. Nothing is drawn under the field: a read-only form would otherwise repeat the
|
|
101
|
+
* same sentence under every one of its fields.
|
|
102
|
+
*/
|
|
103
|
+
disabledReason?: ReactNode;
|
|
104
|
+
/**
|
|
105
|
+
* Draw the error as the control's own red edge, with no line of text under it.
|
|
106
|
+
*
|
|
107
|
+
* For a short form whose rules are obvious from the box itself — a name that is too long or has a
|
|
108
|
+
* character it may not have (2026-09-01). Three fields, three sentences appearing and
|
|
109
|
+
* disappearing under them as the reader types, all saying what the reader can already see: the
|
|
110
|
+
* box went red as the twenty-sixth character went in.
|
|
111
|
+
*
|
|
112
|
+
* **The message is still written, just not drawn.** It stays in the DOM, visually hidden, with
|
|
113
|
+
* `role="alert"` and the same `aria-describedby` wiring — so a screen reader still hears *what*
|
|
114
|
+
* is wrong, which a red border cannot convey (WCAG 3.3.1 asks for the error to be described in
|
|
115
|
+
* text, and colour alone fails 1.4.1). Never use this for a rule the reader cannot infer from
|
|
116
|
+
* the field — "this name is already taken", a server's refusal — where the sentence is the only
|
|
117
|
+
* way to know.
|
|
118
|
+
*/
|
|
119
|
+
quietError?: boolean;
|
|
120
|
+
required?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* `fieldset` for a group of controls that share one label — checkboxes,
|
|
123
|
+
* radios. The label becomes a `<legend>`, which is what gives the group its
|
|
124
|
+
* accessible name; a `<label>` cannot name more than one control.
|
|
125
|
+
*/
|
|
126
|
+
as?: "div" | "fieldset";
|
|
127
|
+
/**
|
|
128
|
+
* Names the group when its name is written somewhere else - a `Card`'s own header, most often.
|
|
129
|
+
*
|
|
130
|
+
* A `fieldset` is named by its `<legend>`, so a group given no `label` has no accessible name at
|
|
131
|
+
* all. That is the right shape when the words are already on screen directly above the box: a
|
|
132
|
+
* card whose header reads "Certificates" around a group also labelled "Certificates" writes it
|
|
133
|
+
* twice, and dropping the legend without this would take the name away from anyone who cannot
|
|
134
|
+
* see the header. Only meaningful with `as="fieldset"`; a plain `div` is not a named region and
|
|
135
|
+
* an `aria-label` on one is announced by nothing.
|
|
136
|
+
*/
|
|
137
|
+
"aria-label"?: string;
|
|
138
|
+
/** The control, or the group of them. Reads its wiring from context. */
|
|
139
|
+
children: ReactNode;
|
|
140
|
+
className?: string;
|
|
141
|
+
};
|
|
142
|
+
export declare function Field({ label, help, error, showError, quietError, required, disabledReason, as, headed, "aria-label": ariaLabel, children, className }: FieldProps): import("react").JSX.Element;
|
|
143
|
+
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wEAAwE;IACxE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAIF;;;GAGG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,GAAG,SAAS,CAE/D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B;;;;;;;EAwBA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6FAA6F;IAC7F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;;;;;;;;;;;OAcG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;IACxB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,SAAS,EACT,UAAkB,EAClB,QAAQ,EACR,cAAc,EACd,EAAU,EACV,MAAc,EACd,YAAY,EAAE,SAAS,EACvB,QAAQ,EACR,SAAS,EACV,EAAE,UAAU,+BAgLZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACjE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Where the upload has got to.
|
|
4
|
+
*
|
|
5
|
+
* Controlled by the caller, because only the caller knows: the request belongs to it, and in this
|
|
6
|
+
* product it is a task in a queue with a progress event and an error body. `idle` and the drag state
|
|
7
|
+
* are the component's own - it knows about those.
|
|
8
|
+
*
|
|
9
|
+
* `selected` is the state the two-step uploads need: the certificate is chosen, and it is not sent
|
|
10
|
+
* until a password has been typed beside it.
|
|
11
|
+
*/
|
|
12
|
+
export type FileUploadStatus = "idle" | "selected" | "uploading" | "uploaded" | "error";
|
|
13
|
+
export type FileUploadLabels = {
|
|
14
|
+
browse: string;
|
|
15
|
+
change: string;
|
|
16
|
+
retry: string;
|
|
17
|
+
selected: string;
|
|
18
|
+
uploading: string;
|
|
19
|
+
uploaded: string;
|
|
20
|
+
/** Shown in place of the file name when `fileName` holds more than one. `{count}` is replaced. */
|
|
21
|
+
files: string;
|
|
22
|
+
/** `{extensions}` is replaced with the accepted list. */
|
|
23
|
+
wrongType: string;
|
|
24
|
+
};
|
|
25
|
+
export type FileUploadProps = {
|
|
26
|
+
/**
|
|
27
|
+
* The extensions taken, with the dot - `[".mobileprovision"]`. Two jobs: the picker's own filter,
|
|
28
|
+
* and the check on a dropped file, which the picker cannot do.
|
|
29
|
+
*/
|
|
30
|
+
accept?: string[];
|
|
31
|
+
/** The bold line. Omit for a one-line zone. */
|
|
32
|
+
title?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Which of the two shapes the zone takes: `"zone"` is the padded block, `"field"` the one-row
|
|
35
|
+
* control that sits among text fields. Inferred from `title` when it is not given - a titled
|
|
36
|
+
* zone is a block, a bare one is a field - and passed explicitly by a caller that wants the
|
|
37
|
+
* block without a heading over it (2026-09-08: the CodePush release sheet, where the sheet's
|
|
38
|
+
* own title already says what is being uploaded).
|
|
39
|
+
*/
|
|
40
|
+
size?: "field" | "zone";
|
|
41
|
+
/** The line under it - what to drop here. */
|
|
42
|
+
hint?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* The leading glyph, and the consumer's: `<Icon icon={icons.upload} />`. One glyph - the legacy
|
|
45
|
+
* component took an *array* and drew a large document outline per accepted extension.
|
|
46
|
+
*/
|
|
47
|
+
media?: ReactNode;
|
|
48
|
+
status?: FileUploadStatus;
|
|
49
|
+
/** 0–100 while `uploading`. Omit for a request with no progress events. */
|
|
50
|
+
progress?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The file this is about - shown in every state after a choice. A zone that takes several
|
|
53
|
+
* (`multiple`) passes the list: one name is shown as it is, more than one is a count - "3 files
|
|
54
|
+
* selected" - with the names in its tooltip, since a row of names joined by commas runs off the
|
|
55
|
+
* zone after the second one. One prop for both, so a caller never has two to keep in agreement.
|
|
56
|
+
*/
|
|
57
|
+
fileName?: string | string[];
|
|
58
|
+
/**
|
|
59
|
+
* Takes several files at once - from the picker and from a drop. Off by default: every other
|
|
60
|
+
* upload in the product sends one file, and a picker that let you choose three would be lying.
|
|
61
|
+
* `onSelect` is called once per accepted file, so a caller gathers them as they come.
|
|
62
|
+
*/
|
|
63
|
+
multiple?: boolean;
|
|
64
|
+
/** Why it failed. Shown in `error`, beside the retry. */
|
|
65
|
+
error?: ReactNode;
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Why the zone cannot take a file. Giving one disables it; the file input is described by the
|
|
69
|
+
* sentence at all times and the zone shows it as a tooltip (see `Button`'s `disabledReason`).
|
|
70
|
+
*/
|
|
71
|
+
disabledReason?: ReactNode;
|
|
72
|
+
onSelect?: (file: File) => void;
|
|
73
|
+
/** Pressing retry. Without it the retry offers the picker again instead. */
|
|
74
|
+
onRetry?: () => void;
|
|
75
|
+
labels?: Partial<FileUploadLabels>;
|
|
76
|
+
className?: string;
|
|
77
|
+
/** Names the zone. Omit inside a `Field`, which names it already. */
|
|
78
|
+
"aria-label"?: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* A drop zone with a real file input in it.
|
|
82
|
+
*
|
|
83
|
+
* **What it replaces**: `AddNewFile` (449 lines, ~60 call sites) and the `FileExtensionIcon` beside
|
|
84
|
+
* it (a 512×512 hand-drawn document outline with the extension lettered across it, `#212121` welded
|
|
85
|
+
* into two paths so it stayed black in the dark theme). Between them they carried nine statuses, a
|
|
86
|
+
* task-manager subscription, four `react-intl` message lookups and a `TextButton`; what a caller
|
|
87
|
+
* wanted from all that was "let me pick a file, and tell me how it is going".
|
|
88
|
+
*
|
|
89
|
+
* **The input is the control, not a div with a click handler.** It sits visually hidden inside the
|
|
90
|
+
* zone: a keyboard user tabs to it and presses Enter, a pointer user clicks anywhere on the zone,
|
|
91
|
+
* and the visible "Browse" is a `<label>` for it - so the picker opens by three routes and none of
|
|
92
|
+
* them is a JavaScript-only affordance. The zone draws the focus ring for it (`:has(:focus-visible)`,
|
|
93
|
+
* rule 8), because a ring around a hidden input is a ring around nothing.
|
|
94
|
+
*
|
|
95
|
+
* **A drop is validated here**, since `accept` filters the picker and says nothing about drag and
|
|
96
|
+
* drop - the one place the legacy component was actually right, and the reason `accept` is a list
|
|
97
|
+
* rather than a raw `accept` string.
|
|
98
|
+
*
|
|
99
|
+
* The status line is a live region: an upload finishing is a change nobody is looking at.
|
|
100
|
+
*/
|
|
101
|
+
export declare function FileUpload({ accept, title, size, hint, media, status, progress, fileName: fileNameProp, multiple, error, disabled: disabledProp, disabledReason, onSelect, onRetry, labels, className, ...rest }: FileUploadProps): import("react").JSX.Element;
|
|
102
|
+
//# sourceMappingURL=FileUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAQlD;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,UAAU,GACV,WAAW,GACX,UAAU,GACV,OAAO,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,kGAAkG;IAClG,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAaF,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAChC,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,MAAe,EACf,QAAQ,EACR,QAAQ,EAAE,YAAY,EACtB,QAAgB,EAChB,KAAK,EACL,QAAQ,EAAE,YAAoB,EAC9B,cAAc,EACd,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EACR,EAAE,eAAe,+BAqPjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* What a gallery shows.
|
|
4
|
+
*
|
|
5
|
+
* `text` is anything meant to be read as characters - a `.json` payload, a `.log`, an `.xml`
|
|
6
|
+
* report. It is fetched and printed, and JSON is indented on the way (2026-09-09: "json da
|
|
7
|
+
* preview edebilsin").
|
|
8
|
+
*
|
|
9
|
+
* `other` is not a failure - a `.zip` of crash reports arrives in the same list as the
|
|
10
|
+
* screenshots, and the viewer's answer for it is the download it already draws.
|
|
11
|
+
*/
|
|
12
|
+
export type GalleryMediaKind = "image" | "video" | "text" | "other";
|
|
13
|
+
export type GalleryItem = {
|
|
14
|
+
/** Stable across renders; the key, and what `onIndexChange` is read against. */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Where the media is. Whatever the browser can fetch - a URL, a blob, a data URI. */
|
|
17
|
+
src: string;
|
|
18
|
+
/** The item's name. The dialog's title, and what a download is called. */
|
|
19
|
+
name: string;
|
|
20
|
+
kind: GalleryMediaKind;
|
|
21
|
+
/**
|
|
22
|
+
* What the picture shows, for a reader who cannot see it. Absent, the image is marked
|
|
23
|
+
* decorative - which is the honest answer when the caller has only a filename, since
|
|
24
|
+
* `screenshot_3.png` read aloud is noise rather than a description.
|
|
25
|
+
*/
|
|
26
|
+
alt?: string;
|
|
27
|
+
/** The still a video shows before it plays. */
|
|
28
|
+
poster?: string;
|
|
29
|
+
/**
|
|
30
|
+
* A `text` item's content, when the caller already has it.
|
|
31
|
+
*
|
|
32
|
+
* Given, nothing is fetched. Absent, the gallery reads `src` itself when the item is shown -
|
|
33
|
+
* which is the same act the `<img>` and `<video>` beside it perform, just without an element
|
|
34
|
+
* that does it for us. Only the item on screen is read, and only once.
|
|
35
|
+
*/
|
|
36
|
+
text?: string;
|
|
37
|
+
};
|
|
38
|
+
export type GalleryLabels = {
|
|
39
|
+
previous: string;
|
|
40
|
+
next: string;
|
|
41
|
+
download: string;
|
|
42
|
+
/** `2 of 7`, said in the caller's language. */
|
|
43
|
+
position: (index: number, total: number) => string;
|
|
44
|
+
/** Over an item the browser cannot play or draw. */
|
|
45
|
+
unsupported: string;
|
|
46
|
+
/** The `<video>` fallback, for a browser that cannot play the file. */
|
|
47
|
+
videoUnsupported: string;
|
|
48
|
+
/** Said when a `text` item could not be read. */
|
|
49
|
+
textFailed: string;
|
|
50
|
+
};
|
|
51
|
+
export type GalleryProps = {
|
|
52
|
+
open: boolean;
|
|
53
|
+
onClose: () => void;
|
|
54
|
+
items: GalleryItem[];
|
|
55
|
+
/** Which item is showing. Controlled - rule 3. */
|
|
56
|
+
index: number;
|
|
57
|
+
onIndexChange: (index: number) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Offered on every item. Absent, no download is drawn - a caller whose media is not a file
|
|
60
|
+
* the reader may keep should not have a button saying it is.
|
|
61
|
+
*
|
|
62
|
+
* The caller does the saving: the URL may need a token appended, a filename the item does
|
|
63
|
+
* not carry, or the application's own `file-saver`. None of that is Mosaic's to know.
|
|
64
|
+
*/
|
|
65
|
+
onDownload?: (item: GalleryItem) => void;
|
|
66
|
+
/** Mosaic ships no icons - rule 2. */
|
|
67
|
+
previousIcon?: ReactNode;
|
|
68
|
+
nextIcon?: ReactNode;
|
|
69
|
+
downloadIcon?: ReactNode;
|
|
70
|
+
/** Drawn on the stage for an item of kind `other`, and for an image that fails to load. */
|
|
71
|
+
fileIcon?: ReactNode;
|
|
72
|
+
labels?: Partial<GalleryLabels>;
|
|
73
|
+
className?: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* One media item at a time, over the page, with a way to the next.
|
|
77
|
+
*
|
|
78
|
+
* **The name.** shadcn has none for this (rule 10), so it is ours. The web's own word is *lightbox*
|
|
79
|
+
* - Lightbox2, PhotoSwipe, `yet-another-react-lightbox` - and this was called that for a day; the
|
|
80
|
+
* product asked for `Gallery` instead (2026-09-09), which says what it holds rather than what the
|
|
81
|
+
* page behind it does, and reads as a plain English word to anyone who has not met the jargon.
|
|
82
|
+
*
|
|
83
|
+
* **A `Dialog`, so the modal parts are not written twice** (rule 12): the focus trap, Escape, the
|
|
84
|
+
* inert page and the top layer are the native `<dialog>`'s, through the component that already
|
|
85
|
+
* owns it. What this adds is the stage.
|
|
86
|
+
*
|
|
87
|
+
* **The stage does not resize** (product call, 2026-09-09). Its width and height are fixed and the
|
|
88
|
+
* media is fitted inside with `object-fit: contain`, so a portrait screenshot after a landscape one
|
|
89
|
+
* does not make the panel jump - and the Previous button stays under the cursor that just pressed
|
|
90
|
+
* it. The cost is letterboxing, which is what every viewer of this kind trades for a still frame.
|
|
91
|
+
*
|
|
92
|
+
* **Left and Right move through the list**, wrapping at both ends. The keys are bound here
|
|
93
|
+
* rather than left to the caller because they are the control: a viewer that has to be clicked
|
|
94
|
+
* through is a viewer that was not finished.
|
|
95
|
+
*/
|
|
96
|
+
export declare function Gallery({ open, onClose, items, index, onIndexChange, onDownload, previousIcon, nextIcon, downloadIcon, fileIcon, labels, className }: GalleryProps): import("react").JSX.Element | null;
|
|
97
|
+
//# sourceMappingURL=Gallery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC;;;;;;;;;GASG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG;IACxB,gFAAgF;IAChF,EAAE,EAAE,MAAM,CAAC;IACX,sFAAsF;IACtF,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,gBAAgB,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AA6EF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,sCAAsC;IACtC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,SAAS,EACV,EAAE,YAAY,sCAwId"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,gBAAgB,EACjB,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
export type HoverCardProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The thing being previewed. **Must be focusable** — a link, a button — because
|
|
5
|
+
* that is what lets the card be opened and entered from the keyboard. Must forward
|
|
6
|
+
* its ref.
|
|
7
|
+
*/
|
|
8
|
+
children: ReactElement;
|
|
9
|
+
/** The card's content. Interactive content is allowed here, unlike in a Tooltip. */
|
|
10
|
+
content: ReactNode;
|
|
11
|
+
align?: "start" | "center" | "end";
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A preview panel that opens on hover or focus. For content — a heading, a few
|
|
17
|
+
* facts, a link — rather than for a word of explanation, which is `Tooltip`.
|
|
18
|
+
*
|
|
19
|
+
* **This is the part to be careful about.** shadcn's version, and the Radix primitive
|
|
20
|
+
* under it, deliberately hide the card's content from screen readers and are not
|
|
21
|
+
* keyboard operable; their guidance is to reach for a Popover instead when the
|
|
22
|
+
* content matters. Building that here would mean shipping a component whose content
|
|
23
|
+
* exists only for people using a mouse and eyes.
|
|
24
|
+
*
|
|
25
|
+
* So this one opens on focus as well as hover, and its content is genuinely
|
|
26
|
+
* reachable. That falls out of where the card sits in the DOM: it is rendered as the
|
|
27
|
+
* trigger's next sibling, and the Popover API moves only the painting to the top
|
|
28
|
+
* layer, not the element — so tab order still follows the source and Tab from the
|
|
29
|
+
* trigger lands inside the card. The trigger carries `aria-expanded` and
|
|
30
|
+
* `aria-controls`, so it announces that there is something to enter.
|
|
31
|
+
*
|
|
32
|
+
* Escape dismisses it without moving focus, and the pointer can cross onto the card
|
|
33
|
+
* without it closing. Those are WCAG 1.4.13's three requirements, and they live in
|
|
34
|
+
* `useHoverOpen`, shared with `Tooltip`.
|
|
35
|
+
*
|
|
36
|
+
* What it must not be: the only place something is said. Hover is unavailable on
|
|
37
|
+
* touch, and a preview is a shortcut, never the sole route to the information.
|
|
38
|
+
*/
|
|
39
|
+
export declare function HoverCard({ children, content, align, disabled, className }: HoverCardProps): import("react").JSX.Element;
|
|
40
|
+
//# sourceMappingURL=HoverCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HoverCard.d.ts","sourceRoot":"","sources":["../../../src/components/HoverCard/HoverCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAerD,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB,oFAAoF;IACpF,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,OAAO,EACP,KAAgB,EAChB,QAAgB,EAChB,SAAS,EACV,EAAE,cAAc,+BAuEhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HoverCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
export type IconData = {
|
|
3
|
+
/** The glyph's own coordinate box. Kept as drawn — see `src/icons`. */
|
|
4
|
+
viewBox: string;
|
|
5
|
+
/** One or more subpaths, drawn filled. The Appcircle and brand glyphs are this shape. */
|
|
6
|
+
paths?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Stroke-drawn elements, in Lucide's own data shape: `[tag, attributes]` pairs. Lucide's
|
|
9
|
+
* glyphs are 2px round-capped strokes rather than fills, and they are more than paths —
|
|
10
|
+
* circles, lines, rects — so they render as generic elements with the stroke inherited
|
|
11
|
+
* from `currentColor`. Exactly one of `paths`/`nodes` is set.
|
|
12
|
+
*/
|
|
13
|
+
nodes?: readonly (readonly [string, Record<string, string | number>])[];
|
|
14
|
+
/**
|
|
15
|
+
* The glyph is drawn with holes cut by overlapping subpaths — a key's bit, a ring. Without
|
|
16
|
+
* it the browser's default `nonzero` fills them in and the glyph comes out as a blob.
|
|
17
|
+
*/
|
|
18
|
+
evenodd?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The transform chain the geometry was drawn under, when its coordinates only land inside
|
|
21
|
+
* the viewBox after being moved.
|
|
22
|
+
*
|
|
23
|
+
* Thirteen of the product's icons are like this: exported from a design tool with nested
|
|
24
|
+
* `<g transform="translate(...)">` wrappers, so the path data alone sits hundreds of units
|
|
25
|
+
* outside the box. Taking the path and dropping the transform renders nothing at all —
|
|
26
|
+
* which is how `warning` came out blank here, and it looked exactly like an icon that had
|
|
27
|
+
* failed to load.
|
|
28
|
+
*
|
|
29
|
+
* Several transforms compose in order in one attribute the same way they compose nested,
|
|
30
|
+
* so the chain is flattened to a single string rather than to nested groups.
|
|
31
|
+
*/
|
|
32
|
+
transform?: string;
|
|
33
|
+
};
|
|
34
|
+
export type IconProps = Omit<SVGProps<SVGSVGElement>, "viewBox" | "children" | "fill" | "aria-label"> & {
|
|
35
|
+
icon: IconData;
|
|
36
|
+
/**
|
|
37
|
+
* Names the icon, for the case where it is the only thing saying something — a button with
|
|
38
|
+
* no text.
|
|
39
|
+
*
|
|
40
|
+
* Left off, the icon is `aria-hidden`, which is right far more often than not: an icon
|
|
41
|
+
* beside a label is decoration, and announcing it repeats the label. This defaults to the
|
|
42
|
+
* quiet case because the loud one is the one that has to be chosen deliberately.
|
|
43
|
+
*/
|
|
44
|
+
label?: string;
|
|
45
|
+
className?: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* One component for every icon, against 213 components for 173 icons.
|
|
49
|
+
*
|
|
50
|
+
* It exists to supply the three things a glyph cannot supply for itself, and that The product's
|
|
51
|
+
* icon components take away rather than provide:
|
|
52
|
+
*
|
|
53
|
+
* **Colour.** `fill="currentColor"`, always. The product hardcodes 151 colour attributes
|
|
54
|
+
* across 39 distinct colours, so an icon on a danger button stays `#5B799E` unless the call
|
|
55
|
+
* site knows to override it — and the override is a raw hex too.
|
|
56
|
+
*
|
|
57
|
+
* **Size.** `1em`, so the glyph follows the type it sits in. 123 of the product's icons
|
|
58
|
+
* hardcode `width` and `height`, and 55 have no `viewBox` at all, which puts them beyond
|
|
59
|
+
* scaling by any means. Containers that want a fixed box still set one; this is the default,
|
|
60
|
+
* not a ceiling.
|
|
61
|
+
*
|
|
62
|
+
* **A name, or the absence of one.** 13 of the product's icons accept `props` and never
|
|
63
|
+
* spread them, so they cannot be labelled at all.
|
|
64
|
+
*
|
|
65
|
+
* No `id` is emitted. The product's icons carry 28 of them and they repeat — `id="Layer_1"`
|
|
66
|
+
* appears in five, `id="Group"` in six — so two on one page is invalid markup and breaks
|
|
67
|
+
* anything that resolves by id.
|
|
68
|
+
*/
|
|
69
|
+
export declare function Icon({ icon, label, className, ...rest }: IconProps): import("react").JSX.Element;
|
|
70
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAItC,MAAM,MAAM,QAAQ,GAAG;IACrB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACxE;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,QAAQ,CAAC,aAAa,CAAC,EACvB,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,CAC/C,GAAG;IACF,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BA+ClE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type InfoBoxItem = {
|
|
3
|
+
/** What the fact is called - "Certificate type". The dark line. */
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/** The fact itself - "Development". The quiet line under it. */
|
|
6
|
+
value: ReactNode;
|
|
7
|
+
/** Something beside the value that is not prose: a `Badge` for an expiry, most often. */
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* A second line under the value, in the value's own type: a figure the fact is measured by -
|
|
11
|
+
* "33 of 20000 used", "Renews on 10/1/2026" - which belongs to the fact rather than describing
|
|
12
|
+
* it, so it reads as its own line and not as a continuation of the sentence above.
|
|
13
|
+
*
|
|
14
|
+
* Set apart from the value by a line's worth of space; several lines may be stacked inside it.
|
|
15
|
+
*/
|
|
16
|
+
note?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The row's own controls, at its trailing edge - a `DropdownMenu`'s trigger, most often.
|
|
19
|
+
*
|
|
20
|
+
* **Quiet until the row is pointed at or focused**, the same reading `DataTable` gives a row's
|
|
21
|
+
* actions: a column of `…` triggers down a box of facts is a column of identical marks
|
|
22
|
+
* competing with the facts, and only one of them is ever wanted at a time. Revealed on hover,
|
|
23
|
+
* on focus within the row, and whenever the menu itself is open (`[data-state="open"]`), so a
|
|
24
|
+
* menu cannot be opened and then vanish under the pointer that left the row.
|
|
25
|
+
*/
|
|
26
|
+
actions?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* A measure of the value, drawn on its own line under it and across the row's full width.
|
|
29
|
+
*
|
|
30
|
+
* For a fact that is a quantity against a limit - a quota's `Progress`, most often - where the
|
|
31
|
+
* bar has to be as wide as the row rather than sharing the value's line with it. Prose does not
|
|
32
|
+
* belong here; that is `value`.
|
|
33
|
+
*/
|
|
34
|
+
measure?: ReactNode;
|
|
35
|
+
};
|
|
36
|
+
export type InfoBoxProps = {
|
|
37
|
+
items: InfoBoxItem[];
|
|
38
|
+
/** Names the list for assistive technology when the surrounding text does not. */
|
|
39
|
+
"aria-label"?: string;
|
|
40
|
+
className?: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Read-only facts about one thing, in one outlined box: a name over its value, and the
|
|
44
|
+
* rows stacked with a hairline between them.
|
|
45
|
+
*
|
|
46
|
+
* **One component for what the product wrote three ways** (2026-09-08, on the signing
|
|
47
|
+
* identities sheets): an `Alert` in the info tone carrying a certificate's name, a column of
|
|
48
|
+
* outlined `Item`s one fact each, and a hand-made `label: value` row reading sideways. None
|
|
49
|
+
* was wrong on its own and together they were three type scales for the same fact. An
|
|
50
|
+
* `Alert` is for something that happened; an `Item` is a row in a list; this is neither - it
|
|
51
|
+
* is a description list, which is what the markup says: a `<dl>` of `<dt>`/`<dd>` pairs.
|
|
52
|
+
*
|
|
53
|
+
* The pair is 14/11: the label at `md` in the ink every title takes, the value in the
|
|
54
|
+
* subtle ink under it. Stacked, never side by side - a two-column key/value layout breaks the
|
|
55
|
+
* moment a value wraps, and certificate names do.
|
|
56
|
+
*/
|
|
57
|
+
export declare function InfoBox({ items, className, ...rest }: InfoBoxProps): import("react").JSX.Element;
|
|
58
|
+
//# sourceMappingURL=InfoBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoBox.d.ts","sourceRoot":"","sources":["../../../src/components/InfoBox/InfoBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,WAAW,GAAG;IACxB,mEAAmE;IACnE,KAAK,EAAE,SAAS,CAAC;IACjB,gEAAgE;IAChE,KAAK,EAAE,SAAS,CAAC;IACjB,yFAAyF;IACzF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,+BAyBlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InfoBox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|