@pantheon-systems/pds-toolkit-react 2.0.0-beta.2 → 2.0.0-beta.20
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/codemods/v1-to-v2/css-token-renames.js +4 -4
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.output.tsx +1 -1
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.output.tsx +7 -2
- package/codemods/v1-to-v2/transforms/component-renames.js +2 -1
- package/codemods/v1-to-v2/transforms/icon-name-updates.js +1 -0
- package/codemods/v1-to-v2/transforms/prop-renames.js +1 -0
- package/codemods/v1-to-v2/transforms/prop-value-standardization.js +2 -1
- package/codemods/v1-to-v2/transforms/removed-prop-values.js +2 -1
- package/dist/components/badges/Badge/Badge.d.ts +7 -2
- package/dist/components/badges/StatusBadge/StatusBadge.d.ts +1 -1
- package/dist/components/buttons/Button/Button.d.ts +15 -5
- package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +9 -4
- package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +6 -1
- package/dist/components/buttons/FilterButton/FilterButton.d.ts +3 -2
- package/dist/components/buttons/IconButton/IconButton.d.ts +3 -3
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +5 -5
- package/dist/components/buttons/MenuButton/menu-button-sample-data.d.ts +1 -1
- package/dist/components/buttons/SSOButton/SSOButton.d.ts +8 -2
- package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +1 -1
- package/dist/components/buttons/SelectButton/SelectButton.d.ts +3 -2
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +2 -2
- package/dist/components/buttons/UtilityButton/UtilityButton.d.ts +11 -3
- package/dist/components/cards/ActionCard/ActionCard.d.ts +2 -2
- package/dist/components/cards/Card/Card.d.ts +1 -1
- package/dist/components/cards/CardSelect/CardSelect.d.ts +1 -1
- package/dist/components/charts/AreaChart/AreaChart.d.ts +19 -0
- package/dist/components/charts/ScatterPlot/ScatterAccessibleTable.d.ts +32 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.d.ts +59 -0
- package/dist/components/charts/Sparkline/Sparkline.d.ts +62 -0
- package/dist/components/charts/shared/ChartActiveDot.d.ts +17 -0
- package/dist/components/charts/shared/ChartLegend.d.ts +4 -2
- package/dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +2 -2
- package/dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +2 -2
- package/dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +46 -8
- package/dist/components/icons/Icon/Icon.d.ts +1 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +44 -2
- package/dist/components/identity/AgentAvatar/AgentAvatar.d.ts +44 -0
- package/dist/components/identity/Avatar/Avatar.d.ts +9 -1
- package/dist/components/identity/AvatarLabel/AvatarLabel.d.ts +32 -5
- package/dist/components/identity/IdentityBlock/IdentityBlock.d.ts +18 -4
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +1 -1
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/inputs/Combobox/Combobox.d.ts +1 -1
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +19 -19
- package/dist/components/inputs/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/inputs/Select/Select.d.ts +2 -2
- package/dist/components/{SiteSearch → inputs/SiteSearch}/SiteSearch.d.ts +1 -1
- package/dist/components/inputs/Switch/Switch.d.ts +7 -0
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +1 -1
- package/dist/components/inputs/Textarea/Textarea.d.ts +1 -1
- package/dist/components/{ThemeSwitcher → inputs/ThemeSwitcher}/ThemeSwitcher.d.ts +1 -1
- package/dist/components/inputs/Timepicker/Timepicker.d.ts +4 -4
- package/dist/components/inputs/WorkspacePicker/WorkspacePicker.d.ts +90 -0
- package/dist/components/inputs/input-utilities.d.ts +1 -1
- package/dist/components/lists/Timeline/Timeline.d.ts +29 -0
- package/dist/components/lists/Timeline/TimelineItem.d.ts +68 -0
- package/dist/components/lists/Timeline/timeline-context.d.ts +6 -0
- package/dist/components/loading-indicators/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/loading-indicators/ThinkingState/ThinkingState.d.ts +49 -0
- package/dist/components/media/Illustration/Illustration.d.ts +37 -0
- package/dist/components/media/Illustration/generated-illustration-data.d.ts +16 -0
- package/dist/components/media/Illustration/illustration-registry.d.ts +19 -0
- package/dist/components/navigation/BASwitcher/BASwitcher.d.ts +104 -0
- package/dist/components/navigation/BookmarksMenu/BookmarksMenu.d.ts +1 -1
- package/dist/components/navigation/ButtonNav/ButtonNav.d.ts +1 -1
- package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/dist/components/navigation/Navbar/Navbar.d.ts +2 -2
- package/dist/components/navigation/SideNav/SideNav.d.ts +7 -2
- package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +2 -2
- package/dist/components/{SiteFooter → navigation/SiteFooter}/SiteFooter.d.ts +1 -1
- package/dist/components/navigation/SiteMenu/SiteMenu.d.ts +2 -2
- package/dist/components/navigation/SiteMenu/SiteMenuDropdown.d.ts +1 -1
- package/dist/components/navigation/TabMenu/TabMenu.d.ts +2 -2
- package/dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +1 -1
- package/dist/components/{TableOfContents → navigation/TableOfContents}/TableOfContents.d.ts +4 -1
- package/dist/components/{Tabs → navigation/Tabs}/Tabs.d.ts +1 -1
- package/dist/components/navigation/TreeNav/TreeNav.d.ts +1 -1
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +2 -2
- package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +1 -1
- package/dist/components/navigation/navigation-utilities.d.ts +2 -2
- package/dist/components/notifications/Banner/Banner.d.ts +2 -2
- package/dist/components/{Callout → notifications/Callout}/Callout.d.ts +1 -1
- package/dist/components/notifications/InlineMessage/InlineMessage.d.ts +1 -1
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +32 -7
- package/dist/components/notifications/Toaster/Toast.d.ts +1 -1
- package/dist/components/notifications/Toaster/Toaster.d.ts +2 -2
- package/dist/components/{Dropdown → overlays/Dropdown}/Dropdown.d.ts +3 -3
- package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.d.ts +1 -1
- package/dist/components/{Popover → overlays/Popover}/Popover.d.ts +1 -1
- package/dist/components/{Tooltip → overlays/Tooltip}/Tooltip.d.ts +1 -1
- package/dist/components/pagination/Pagination/Pagination.d.ts +1 -1
- package/dist/components/pagination/PaginationChapter/PaginationChapter.d.ts +1 -1
- package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +1 -1
- package/dist/components/panels/BASelectorPanel/BASelectorPanel.d.ts +39 -0
- package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +14 -2
- package/dist/components/panels/FeaturePanel/FeaturePanel.d.ts +3 -3
- package/dist/components/panels/Panel/Panel.d.ts +13 -4
- package/dist/components/panels/PanelList/PanelRow.d.ts +1 -1
- package/dist/components/{StatPanel → panels/StatPanel}/StatPanel.d.ts +12 -3
- package/dist/components/panels/WidgetPanel/WidgetPanel.d.ts +1 -1
- package/dist/components/panels/WorkspaceSelectorPanel/WorkspaceSelectorPanel.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +1 -1
- package/dist/components/{StatusChecker → status/StatusChecker}/StatusChecker.d.ts +8 -1
- package/dist/components/{StatusIndicator → status/StatusIndicator}/StatusIndicator.d.ts +1 -1
- package/dist/components/steppers/VerticalStepper/VerticalStep.d.ts +1 -1
- package/dist/components/{RowActionsMenu → tables/RowActionsMenu}/RowActionsMenu.d.ts +1 -1
- package/dist/components/{Table → tables/Table}/Table.d.ts +38 -10
- package/dist/components/{UtilityBar → tables/UtilityBar}/UtilityBar.d.ts +1 -1
- package/dist/css/component-css/pds-agent-avatar.css +1 -0
- package/dist/css/component-css/pds-area-chart.css +1 -0
- package/dist/css/component-css/pds-avatar-label.css +1 -1
- package/dist/css/component-css/pds-avatar.css +1 -1
- package/dist/css/component-css/pds-ba-selector-panel.css +1 -0
- package/dist/css/component-css/pds-ba-switcher.css +1 -0
- package/dist/css/component-css/pds-badge.css +1 -1
- package/dist/css/component-css/pds-banner.css +1 -1
- package/dist/css/component-css/pds-bookmarks-menu.css +1 -1
- package/dist/css/component-css/pds-bookmarks-panel.css +1 -1
- package/dist/css/component-css/pds-bottom-sheet.css +1 -1
- package/dist/css/component-css/pds-branch-diff.css +1 -1
- package/dist/css/component-css/pds-bulk-action-bar.css +1 -1
- package/dist/css/component-css/pds-button-link.css +1 -1
- package/dist/css/component-css/pds-button.css +5 -5
- package/dist/css/component-css/pds-callout.css +1 -1
- package/dist/css/component-css/pds-card-select.css +1 -2
- package/dist/css/component-css/pds-checkbox.css +1 -1
- package/dist/css/component-css/pds-combobox-multiselect.css +1 -3
- package/dist/css/component-css/pds-compact-empty-state.css +1 -1
- package/dist/css/component-css/pds-datepicker.css +1 -1
- package/dist/css/component-css/pds-drawer.css +1 -1
- package/dist/css/component-css/pds-dropdown-menu.css +1 -2
- package/dist/css/component-css/pds-dropdown.css +1 -3
- package/dist/css/component-css/pds-expansion-panel.css +1 -2
- package/dist/css/component-css/pds-feature-panel.css +1 -15
- package/dist/css/component-css/pds-file-diff.css +1 -1
- package/dist/css/component-css/pds-filter-button.css +1 -1
- package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
- package/dist/css/component-css/pds-icon-button.css +2 -4
- package/dist/css/component-css/pds-identity-block.css +1 -1
- package/dist/css/component-css/pds-illustration.css +1 -0
- package/dist/css/component-css/pds-index.css +25 -136
- package/dist/css/component-css/pds-inline-message.css +1 -1
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-menu-button.css +1 -11
- package/dist/css/component-css/pds-modal.css +1 -1
- package/dist/css/component-css/pds-nav-menu.css +1 -1
- package/dist/css/component-css/pds-navbar.css +1 -4
- package/dist/css/component-css/pds-pagination-chapter.css +1 -3
- package/dist/css/component-css/pds-panel-list.css +1 -1
- package/dist/css/component-css/pds-panel.css +1 -2
- package/dist/css/component-css/pds-pantheon-logo.css +1 -1
- package/dist/css/component-css/pds-pie-chart.css +1 -1
- package/dist/css/component-css/pds-popover.css +1 -1
- package/dist/css/component-css/pds-proportion-bar.css +1 -1
- package/dist/css/component-css/pds-radio-group.css +1 -1
- package/dist/css/component-css/pds-row-actions-menu.css +1 -2
- package/dist/css/component-css/pds-scatter-plot.css +1 -0
- package/dist/css/component-css/pds-section-message.css +5 -1
- package/dist/css/component-css/pds-segmented-button.css +1 -2
- package/dist/css/component-css/pds-select-button.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-side-nav.css +9 -3
- package/dist/css/component-css/pds-site-footer.css +1 -1
- package/dist/css/component-css/pds-site-search.css +1 -1
- package/dist/css/component-css/pds-sortable-list.css +1 -8
- package/dist/css/component-css/pds-sparkline.css +1 -0
- package/dist/css/component-css/pds-spinner.css +1 -1
- package/dist/css/component-css/pds-split-button.css +1 -1
- package/dist/css/component-css/pds-sso-button.css +1 -1
- package/dist/css/component-css/pds-stat-panel.css +1 -1
- package/dist/css/component-css/pds-status-badge.css +1 -1
- package/dist/css/component-css/pds-status-checker.css +1 -1
- package/dist/css/component-css/pds-status-scrim.css +1 -1
- package/dist/css/component-css/pds-stepper.css +2 -4
- package/dist/css/component-css/pds-switch.css +2 -12
- package/dist/css/component-css/pds-tab-menu.css +1 -2
- package/dist/css/component-css/pds-table-of-contents.css +1 -1
- package/dist/css/component-css/pds-table.css +1 -7
- package/dist/css/component-css/pds-tabs.css +1 -1
- package/dist/css/component-css/pds-tag.css +1 -1
- package/dist/css/component-css/pds-tags-input.css +2 -1
- package/dist/css/component-css/pds-tally.css +1 -1
- package/dist/css/component-css/pds-thinking-state.css +1 -0
- package/dist/css/component-css/pds-timeline.css +1 -0
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/component-css/pds-tooltip.css +1 -1
- package/dist/css/component-css/pds-user-menu-story-only.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +1 -32
- package/dist/css/component-css/pds-utility-button.css +1 -3
- package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
- package/dist/css/component-css/pds-vertical-stepper.css +1 -1
- package/dist/css/component-css/pds-workspace-picker.css +1 -0
- package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +1 -23
- package/dist/css/design-tokens/variables.dark.css +3 -0
- package/dist/css/design-tokens/variables.light.css +3 -0
- package/dist/css/layout-css/pds-app-layout.css +1 -3
- package/dist/css/layout-css/pds-docs-layout.css +1 -1
- package/dist/css/layout-css/pds-index.css +1 -3
- package/dist/css/layout-css/pds-sidebar-layout.css +1 -13
- package/dist/css/layout-css/pds-stat-panel-group.css +1 -1
- package/dist/css/layout-css/pds-stepper-layout.css +1 -1
- package/dist/css/pds-components.css +25 -136
- package/dist/css/pds-core.css +2 -2
- package/dist/css/pds-layouts.css +1 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +39 -28
- package/dist/index.js +7989 -5734
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +39 -28
- package/dist/layouts/AppLayout/AppLayout.d.ts +1 -1
- package/dist/layouts/DocsLayout/DocsLayout.d.ts +9 -1
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +1 -1
- package/dist/layouts/StepperLayout/StepperLayout.d.ts +4 -2
- package/dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +1 -1
- package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +1 -1
- package/dist/libs/components/DocsLayoutContext.d.ts +8 -0
- package/dist/libs/components/SelectorPanel/SelectorPanel.d.ts +52 -0
- package/dist/libs/components/SiteOptionDisplay/SiteOptionDisplay.d.ts +1 -1
- package/dist/libs/components/StatusDot/StatusDot.d.ts +1 -1
- package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +8 -7
- package/dist/libs/components/utility-components.d.ts +1 -1
- package/dist/libs/components/utils.d.ts +1 -0
- package/dist/libs/types/custom-types.d.ts +2 -1
- package/dist/libs/types/layout-types.d.ts +1 -1
- package/dist/svg/arrowRightArrowLeft.svg +3 -0
- package/dist/svg/badgePercent.svg +3 -0
- package/dist/svg/circleDollar.svg +3 -0
- package/dist/svg/gaugeSimpleHigh.svg +3 -0
- package/dist/svg/handWave.svg +3 -0
- package/dist/svg/sparklesSolid.svg +3 -0
- package/dist/utilities/Container/Container.d.ts +1 -1
- package/dist/utilities/FlexContainer/FlexContainer.d.ts +1 -1
- package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +1 -1
- package/dist/utilities/auto-grid/AutoGrid.d.ts +1 -1
- package/dist/utilities/grid/Grid.d.ts +1 -1
- package/dist/utilities/hooks/useBreakpoint/useBreakpoint.d.ts +3 -0
- package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +7 -1
- package/dist/utilities/hooks/useKeyboardShortcut/useKeyboardShortcut.d.ts +5 -1
- package/dist/utilities/hooks/useMediaQuery/subscribeToMediaQuery.d.ts +6 -0
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.d.ts +0 -16
- package/package.json +45 -39
- /package/dist/components/{Tag → badges/Tag}/Tag.d.ts +0 -0
- /package/dist/components/{BranchDiff → code-display/BranchDiff}/BranchDiff.d.ts +0 -0
- /package/dist/components/{CodeBlock → code-display/CodeBlock}/CodeBlock.d.ts +0 -0
- /package/dist/components/{CodeBlock → code-display/CodeBlock}/code-examples.d.ts +0 -0
- /package/dist/components/{CodeBlock → code-display/CodeBlock}/prism-setup.d.ts +0 -0
- /package/dist/components/{CodeBlock → code-display/CodeBlock}/themes/index.d.ts +0 -0
- /package/dist/components/{CodeBlock → code-display/CodeBlock}/themes/pds.d.ts +0 -0
- /package/dist/components/{FileDiff → code-display/FileDiff}/FileDiff.d.ts +0 -0
- /package/dist/components/{ComparisonList → lists/ComparisonList}/ComparisonList.d.ts +0 -0
- /package/dist/components/{SortableList → lists/SortableList}/SortableList.d.ts +0 -0
- /package/dist/components/{SortableList → lists/SortableList}/SortableListHeader.d.ts +0 -0
- /package/dist/components/{SortableList → lists/SortableList}/SortableRow.d.ts +0 -0
- /package/dist/components/{SortableList → lists/SortableList}/sortable-utils.d.ts +0 -0
- /package/dist/components/{SortableList → lists/SortableList}/types.d.ts +0 -0
- /package/dist/components/{SortableList → lists/SortableList}/useSortableTree.d.ts +0 -0
- /package/dist/components/{steppers → lists}/StepList/StepList.d.ts +0 -0
- /package/dist/components/{steppers → lists}/StepList/example-steps.d.ts +0 -0
- /package/dist/components/{PantheonLogo → media/PantheonLogo}/PantheonLogo.d.ts +0 -0
- /package/dist/components/{PantheonLogo → media/PantheonLogo}/pantheon-logo-data.d.ts +0 -0
- /package/dist/components/{Callout → notifications/Callout}/sample-callout-content.d.ts +0 -0
- /package/dist/components/{Dropdown → overlays/Dropdown}/DropdownSelectedIcon.d.ts +0 -0
- /package/dist/components/{StatusScrim → status/StatusScrim}/StatusScrim.d.ts +0 -0
- /package/dist/components/{ResultCount → tables/ResultCount}/ResultCount.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface ChartActiveDotProps {
|
|
2
|
+
/** Series color */
|
|
3
|
+
color: string;
|
|
4
|
+
/** Center x position, supplied by Recharts */
|
|
5
|
+
cx?: number;
|
|
6
|
+
/** Center y position, supplied by Recharts */
|
|
7
|
+
cy?: number;
|
|
8
|
+
/** Lighten the outline toward the surface color */
|
|
9
|
+
isTinted?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Hover dot for line and area charts. The white ring separates the dot from
|
|
13
|
+
* a same-colored line or band, and the series-colored outline keeps the dot's
|
|
14
|
+
* edge visible against the white chart background.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ChartActiveDot: ({ color, cx, cy, isTinted, }: ChartActiveDotProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartDataPoint, SeriesConfig } from './types';
|
|
1
|
+
import type { ChartDataPoint, ColorPalette, SeriesConfig } from './types';
|
|
2
2
|
import './chart-legend.css';
|
|
3
3
|
export type LegendVariant = 'inline' | 'table';
|
|
4
4
|
interface ChartLegendProps {
|
|
@@ -8,6 +8,8 @@ interface ChartLegendProps {
|
|
|
8
8
|
* visible legend table purely a sighted-user convenience.
|
|
9
9
|
*/
|
|
10
10
|
ariaHidden?: boolean;
|
|
11
|
+
/** Palette the series colors come from — needed to map `paletteIndex` onto palettes with fill-only steps removed */
|
|
12
|
+
colorPalette?: ColorPalette;
|
|
11
13
|
/** Chart data — used to calculate totals for table variant */
|
|
12
14
|
data?: ChartDataPoint[];
|
|
13
15
|
/** Series definitions */
|
|
@@ -27,5 +29,5 @@ interface ChartLegendProps {
|
|
|
27
29
|
* Renders a chart legend in either inline (horizontal list) or
|
|
28
30
|
* table (rows with totals) format.
|
|
29
31
|
*/
|
|
30
|
-
export declare const ChartLegend: ({ ariaHidden, data, series, seriesColors, tableHeader, valueFormatter, variant, }: ChartLegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const ChartLegend: ({ ariaHidden, colorPalette, data, series, seriesColors, tableHeader, valueFormatter, variant, }: ChartLegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
33
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
3
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
4
4
|
import './compact-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for CompactEmptyState
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevel } from '../../../libs/types/custom-types';
|
|
3
|
-
import { VideoEmbedProps } from '../../media/VideoEmbed/VideoEmbed';
|
|
2
|
+
import { HeadingLevel } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { VideoEmbedProps } from '../../media/VideoEmbed/VideoEmbed.js';
|
|
4
4
|
import './horizontal-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for HorizontalEmptyState
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevel } from '../../../libs/types/custom-types';
|
|
2
|
+
import { HeadingLevel } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { PDSIllustration } from '../../media/Illustration/Illustration.js';
|
|
3
4
|
import './vertical-empty-state.css';
|
|
4
5
|
/**
|
|
5
6
|
* Prop types for VerticalEmptyState
|
|
@@ -14,6 +15,20 @@ export interface VerticalEmptyStateProps extends ComponentPropsWithoutRef<'div'>
|
|
|
14
15
|
* This should be a Button, ButtonLink, or two items wrapped in a `pds-button-group` div.
|
|
15
16
|
*/
|
|
16
17
|
ctaRegion?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Grows this component to fill its parent's available height and
|
|
20
|
+
* vertically centers its content within it — for a full-page empty state
|
|
21
|
+
* (404, access denied, etc.) that should sit centered in the remaining
|
|
22
|
+
* viewport rather than top-aligned.
|
|
23
|
+
*
|
|
24
|
+
* Only takes effect when the immediate parent is itself a flex container
|
|
25
|
+
* with room to grow into (e.g. `AppLayout`'s `main-inner`) — otherwise
|
|
26
|
+
* `flex: 1` has nothing to act on and this is a no-op. Prefer this over
|
|
27
|
+
* hand-rolled centering CSS (a guessed `height`/`min-height` calc, or
|
|
28
|
+
* wrapping in `FlexContainer`), which breaks whenever real content grows
|
|
29
|
+
* taller than the guess.
|
|
30
|
+
*/
|
|
31
|
+
fillHeight?: boolean;
|
|
17
32
|
/**
|
|
18
33
|
* heading to explain the empty state.
|
|
19
34
|
*/
|
|
@@ -23,20 +38,43 @@ export interface VerticalEmptyStateProps extends ComponentPropsWithoutRef<'div'>
|
|
|
23
38
|
*/
|
|
24
39
|
headingLevel?: HeadingLevel;
|
|
25
40
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
41
|
+
* Which illustration to show above the heading, using the toolkit's
|
|
42
|
+
* `Illustration` component — the preferred way to provide media here.
|
|
43
|
+
* Decorative (no accessible name). Takes precedence over `image` if both
|
|
44
|
+
* are set.
|
|
45
|
+
*/
|
|
46
|
+
illustration?: PDSIllustration;
|
|
47
|
+
/**
|
|
48
|
+
* Width of `illustration` (CSS value). Height follows automatically from
|
|
49
|
+
* its aspect ratio.
|
|
50
|
+
*/
|
|
51
|
+
illustrationWidth?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Media to display above the heading. Can be a string (a link to an SVG
|
|
54
|
+
* file, either from Brandfolder or local) or a React node, such as
|
|
55
|
+
* `Picture` for a raster image. Prefer `illustration`/`isLoading` for a
|
|
56
|
+
* new illustration or loading state — `image` is a legacy fallback for
|
|
57
|
+
* anything else, slated for eventual deprecation.
|
|
58
|
+
*
|
|
59
|
+
* `imageWidth`/`imageHeight` size the container a string `image` renders
|
|
60
|
+
* into; it fills that container's height, scaling width proportionally.
|
|
61
|
+
* Any React node is responsible for its own sizing within it (pass
|
|
62
|
+
* matching `width`/`height` if you want it to fill the container).
|
|
30
63
|
*/
|
|
31
64
|
image?: string | ReactNode;
|
|
32
65
|
/**
|
|
33
|
-
* Height of the image (CSS value like '
|
|
66
|
+
* Height of the image container (CSS value like '120px', '50%', etc.)
|
|
34
67
|
*/
|
|
35
68
|
imageHeight?: string;
|
|
36
69
|
/**
|
|
37
|
-
* Width of the image (CSS value like '200px', '50%', etc.)
|
|
70
|
+
* Width of the image container (CSS value like '200px', '50%', etc.)
|
|
38
71
|
*/
|
|
39
72
|
imageWidth?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Shows a loading spinner instead of `illustration`/`image`, for an
|
|
75
|
+
* in-progress empty state. Takes precedence over both.
|
|
76
|
+
*/
|
|
77
|
+
isLoading?: boolean;
|
|
40
78
|
/**
|
|
41
79
|
* Message to display below the heading.
|
|
42
80
|
*/
|
|
@@ -45,4 +83,4 @@ export interface VerticalEmptyStateProps extends ComponentPropsWithoutRef<'div'>
|
|
|
45
83
|
/**
|
|
46
84
|
* VerticalEmptyState UI component
|
|
47
85
|
*/
|
|
48
|
-
export declare const VerticalEmptyState: ({ className, ctaRegion, heading, headingLevel, image, imageHeight, imageWidth, message, ...props }: VerticalEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
export declare const VerticalEmptyState: ({ className, ctaRegion, fillHeight, heading, headingLevel, illustration, illustrationWidth, image, imageHeight, imageWidth, isLoading, message, ...props }: VerticalEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { Display, IconSize } from '../../../libs/types/custom-types';
|
|
2
|
+
import { Display, IconSize } from '../../../libs/types/custom-types.js';
|
|
3
3
|
import { iconList, type PDSIconName } from './generated-icon-data';
|
|
4
4
|
import './icon.css';
|
|
5
5
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated by: npm run generate:icon-data
|
|
5
5
|
* Source: icon-registry.ts + Font Awesome packages + custom-icons.tsx
|
|
6
|
-
* Generated: 2026-
|
|
6
|
+
* Generated: 2026-11-10T00:24:47.805Z
|
|
7
7
|
*/
|
|
8
8
|
import { customIcons } from './custom-icons';
|
|
9
9
|
export { customIcons };
|
|
@@ -92,6 +92,13 @@ export declare const iconData: {
|
|
|
92
92
|
readonly svgPathData: "M505 273c9.4-9.4 9.4-24.6 0-33.9L337 71c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l127 127-406.1 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l406.1 0-127 127c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L505 273z";
|
|
93
93
|
readonly width: 512;
|
|
94
94
|
};
|
|
95
|
+
readonly arrowRightArrowLeft: {
|
|
96
|
+
readonly aliases: readonly ["swap", "switch", "exchange", "transfer"];
|
|
97
|
+
readonly categories: readonly ["actions", "arrows"];
|
|
98
|
+
readonly height: 512;
|
|
99
|
+
readonly svgPathData: "M367 41l63 63-406.1 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l406.1 0-63 63c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L505 145c9.4-9.4 9.4-24.6 0-33.9L401 7c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zM145 297c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L7 367c-9.4 9.4-9.4 24.6 0 33.9L111 505c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-63-63 406.1 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-406.1 0 63-63z";
|
|
100
|
+
readonly width: 512;
|
|
101
|
+
};
|
|
95
102
|
readonly arrowsRetweet: {
|
|
96
103
|
readonly aliases: readonly ["retweet", "swap", "exchange"];
|
|
97
104
|
readonly categories: readonly ["actions", "arrows"];
|
|
@@ -113,6 +120,13 @@ export declare const iconData: {
|
|
|
113
120
|
readonly svgPathData: "M224 0c13.3 0 24 10.7 24 24l0 190.3 164-95.1c11.5-6.7 26.2-2.7 32.8 8.7s2.7 26.2-8.7 32.8L271.8 256 436 351.2c11.5 6.6 15.4 21.3 8.7 32.8s-21.3 15.4-32.8 8.7L248 297.7 248 488c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-190.3-164 95.1c-11.5 6.7-26.2 2.7-32.8-8.7S.5 357.9 12 351.2L176.2 256 12 160.8C.5 154.1-3.4 139.4 3.2 128s21.3-15.4 32.8-8.7L200 214.3 200 24c0-13.3 10.7-24 24-24z";
|
|
114
121
|
readonly width: 448;
|
|
115
122
|
};
|
|
123
|
+
readonly badgePercent: {
|
|
124
|
+
readonly aliases: readonly ["discount", "sale"];
|
|
125
|
+
readonly categories: readonly ["financial"];
|
|
126
|
+
readonly height: 512;
|
|
127
|
+
readonly svgPathData: "M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5c5.4 10.2 17.2 15.1 28.2 11.7 21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2 20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7c-10.2 5.4-15.1 17.2-11.7 28.2 6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5c-5.4-10.2-17.2-15.1-28.2-11.7-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2-20-10.6-33.5-31.6-33.5-55.7s13.5-45.1 33.5-55.7c10.2-5.4 15.1-17.2 11.7-28.2-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM192 224a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM320 352a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm17-177c-9.4-9.4-24.6-9.4-33.9 0L175 303c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L337 209c9.4-9.4 9.4-24.6 0-33.9z";
|
|
128
|
+
readonly width: 512;
|
|
129
|
+
};
|
|
116
130
|
readonly banBug: {
|
|
117
131
|
readonly aliases: readonly ["no bugs", "debug"];
|
|
118
132
|
readonly categories: readonly ["development", "security"];
|
|
@@ -400,6 +414,13 @@ export declare const iconData: {
|
|
|
400
414
|
readonly svgPathData: "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-464a208 208 0 1 0 0 416 208 208 0 1 0 0-416zm70.7 121.9c7.8-10.7 22.8-13.1 33.5-5.3 10.7 7.8 13.1 22.8 5.3 33.5L243.4 366.1c-4.1 5.7-10.5 9.3-17.5 9.8-7 .5-13.9-2-18.8-6.9l-55.9-55.9c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36 36 105.6-145.2z";
|
|
401
415
|
readonly width: 512;
|
|
402
416
|
};
|
|
417
|
+
readonly circleDollar: {
|
|
418
|
+
readonly aliases: readonly ["coin", "money"];
|
|
419
|
+
readonly categories: readonly ["financial"];
|
|
420
|
+
readonly height: 512;
|
|
421
|
+
readonly svgPathData: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm24-368c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 8.3c-31.5 3.3-56 29.9-56 62.2 0 31.1 22.9 57.5 53.7 61.9l45.8 6.5c7.2 1 12.5 7.2 12.5 14.4 0 8-6.5 14.6-14.6 14.6L208 312c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8.3c31.5-3.3 56-29.9 56-62.2 0-31.1-22.9-57.5-53.7-61.9L236.5 229c-7.2-1-12.5-7.2-12.5-14.4 0-8 6.5-14.6 14.6-14.6l57.4 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0-8z";
|
|
422
|
+
readonly width: 512;
|
|
423
|
+
};
|
|
403
424
|
readonly circleExclamation: {
|
|
404
425
|
readonly aliases: readonly ["warning", "error", "alert"];
|
|
405
426
|
readonly categories: readonly ["status"];
|
|
@@ -834,6 +855,13 @@ export declare const iconData: {
|
|
|
834
855
|
readonly svgPathData: "M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 392c0 30.9 25.1 56 56 56l184 0 0-48-184 0c-4.4 0-8-3.6-8-8l0-232 192 0 0-48-192 0 0-88zM385.5 48l31.9 21.3c10.5 7 22.9 10.7 35.5 10.7l75.2 0 0 96-192 0 0-128 49.5 0zM288 48l0 128c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-75.2 0c-3.2 0-6.2-.9-8.9-2.7L412.1 8.1C404.2 2.8 394.9 0 385.5 0L336 0c-26.5 0-48 21.5-48 48zm97.5 288l33.9 22.6c9.2 6.1 20 9.4 31.1 9.4l77.6 0 0 96-192 0 0-128 49.5 0zM288 336l0 128c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-77.6 0c-1.6 0-3.1-.5-4.4-1.3l-33.9-22.6c-7.9-5.3-17.1-8.1-26.6-8.1L336 288c-26.5 0-48 21.5-48 48z";
|
|
835
856
|
readonly width: 576;
|
|
836
857
|
};
|
|
858
|
+
readonly gaugeSimpleHigh: {
|
|
859
|
+
readonly aliases: readonly ["speedometer", "dashboard"];
|
|
860
|
+
readonly categories: readonly ["data", "status"];
|
|
861
|
+
readonly height: 512;
|
|
862
|
+
readonly svgPathData: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm56-160c0-14.4-5.4-27.5-14.4-37.5l60.5-145.3c5.1-12.2-.7-26.3-12.9-31.4s-26.3 .7-31.4 12.9L253.3 296.1c-29.7 1.4-53.3 25.9-53.3 55.9 0 30.9 25.1 56 56 56s56-25.1 56-56z";
|
|
863
|
+
readonly width: 512;
|
|
864
|
+
};
|
|
837
865
|
readonly gear: {
|
|
838
866
|
readonly aliases: readonly ["settings", "preferences", "config"];
|
|
839
867
|
readonly categories: readonly ["actions", "objects"];
|
|
@@ -904,6 +932,13 @@ export declare const iconData: {
|
|
|
904
932
|
readonly svgPathData: "M128 64A64 64 0 1 0 0 64 64 64 0 1 0 128 64zm0 192a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zM0 448c0 35.3 28.7 64 64 64s64-28.7 64-64-28.7-64-64-64-64 28.7-64 64zM320 64a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zM192 256a64 64 0 1 0 128 0 64 64 0 1 0 -128 0zM320 448c0-35.3-28.7-64-64-64s-64 28.7-64 64 28.7 64 64 64 64-28.7 64-64z";
|
|
905
933
|
readonly width: 320;
|
|
906
934
|
};
|
|
935
|
+
readonly handWave: {
|
|
936
|
+
readonly aliases: readonly ["hello", "discovery", "hand"];
|
|
937
|
+
readonly categories: readonly ["communication", "objects"];
|
|
938
|
+
readonly height: 512;
|
|
939
|
+
readonly svgPathData: "M376.2 67.4L375 58.9c-2.5-17.6-16.3-31.4-33.9-33.9l-8.5-1.2c-13.1-1.9-22.2-14-20.4-27.2s14-22.2 27.2-20.4l8.5 1.2c38.7 5.5 69.1 36 74.7 74.7l1.2 8.5c1.9 13.1-7.2 25.3-20.4 27.2s-25.3-7.2-27.2-20.4zM112 68.7c17.9-17.9 43.8-23 66.2-15.2 3.1-6.8 7.4-13.1 13-18.7 25-25 65.5-25 90.5 0L400 153 400 147.9c0-35.3 28.7-64 64-64s64 28.7 64 64l0 157.7c0 1.6 0 3.1-.1 4.7 0 .6 .1 1.1 .1 1.7 0 109.9-88.7 199.2-198.5 200l-.5 0-7.6 0c-53 0-103.9-21.1-141.4-58.6L66.7 340.2c-25-25-25-65.5 0-90.5 3.9-3.9 8.2-7.2 12.7-9.9l-1.4-1.4c-25-25-25-65.5 0-90.5 5.6-5.6 11.9-9.9 18.7-13-7.7-22.4-2.7-48.3 15.2-66.2zm79.3 56.7l-.1-.1-22.6-22.6c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l22.5 22.5 .1 .1 96.2 96.2c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-96.1-96.1-.1-.1c-6.2-6.2-16.4-6.2-22.6 0-6.2 6.2-6.2 16.4 0 22.6l39.5 39.5 .1 .1 56.6 56.6c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-50.8-50.8-.1-.1c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L213.9 419.5C242.4 448 281.1 464 321.4 464l7.5 0c82.8-.5 149.9-67.1 151.1-149.8-.1-1-.1-2.1-.1-3.1 .1-1.8 .1-3.6 .1-5.5l0-157.7c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 63.1c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2L247.8 68.7c-6.2-6.2-16.4-6.2-22.6 0-6.2 6.2-6.2 16.3-.1 22.6l96.2 96.2c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-96.1-96.1zM28.6 376.2c13.1-1.9 25.3 7.2 27.2 20.4l1.2 8.5c2.5 17.6 16.3 31.4 33.9 33.9l8.5 1.2c13.1 1.9 22.2 14 20.4 27.2s-14 22.2-27.2 20.4l-8.5-1.2C45.4 481 15 450.6 9.5 411.9l-1.2-8.5c-1.9-13.1 7.2-25.3 20.4-27.2z";
|
|
940
|
+
readonly width: 576;
|
|
941
|
+
};
|
|
907
942
|
readonly heart: {
|
|
908
943
|
readonly aliases: readonly ["favorite", "like", "love"];
|
|
909
944
|
readonly categories: readonly ["actions", "objects", "status"];
|
|
@@ -1380,6 +1415,13 @@ export declare const iconData: {
|
|
|
1380
1415
|
readonly svgPathData: "M391.5 53.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L448 96 469.2 152.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L512 96 568.5 74.8c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L512 32 490.8-24.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L448 32 391.5 53.2zM167.9 208.5l24.1-52.1 24.1 52.1c4.8 10.4 13.1 18.7 23.5 23.5l52.1 24.1-52.1 24.1c-10.4 4.8-18.7 13.1-23.5 23.5l-24.1 52.1-24.1-52.1c-4.8-10.4-13.1-18.7-23.5-23.5L92.3 256 144.5 231.9c10.4-4.8 18.7-13.1 23.5-23.5zM165.6 99.1l-41.2 89.3-89.3 41.2-.6 .3c-3.9 1.8-12.3 5.7-25.2 11.6-5.7 2.6-9.3 8.3-9.3 14.5s3.6 11.9 9.3 14.5c12.9 5.9 21.2 9.8 25.2 11.6l.6 .3 89.3 41.2 41.2 89.3 .3 .6c1.8 3.9 5.7 12.3 11.6 25.2 2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3c14.4-31.1 15.1-32.7 53.1-115l89.3-41.2 .6-.3c3.9-1.8 12.3-5.7 25.2-11.6 5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5c-31.1-14.4-32.7-15.1-115-53.1l-41.2-89.3-.3-.6c-1.8-3.9-5.7-12.3-11.6-25.2-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3c-13.8 29.8-11.5 25-11.9 25.8zM416 416l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 480 437.2 536.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 480 536.5 458.8c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 416 458.8 359.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 416z";
|
|
1381
1416
|
readonly width: 576;
|
|
1382
1417
|
};
|
|
1418
|
+
readonly sparklesSolid: {
|
|
1419
|
+
readonly aliases: readonly ["ai", "magic", "new", "highlight"];
|
|
1420
|
+
readonly categories: readonly ["actions", "development"];
|
|
1421
|
+
readonly height: 512;
|
|
1422
|
+
readonly svgPathData: "M391.5 53.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L448 96 469.2 152.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L512 96 568.5 74.8c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L512 32 490.8-24.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L448 32 391.5 53.2zm-185 20.1c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3l-53.1 115-115 53.1C3.6 244.1 0 249.8 0 256s3.6 11.9 9.3 14.5l115 53.1 53.1 115c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l53.1-115 115-53.1c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5l-115-53.1-53.1-115zM416 416l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 480 437.2 536.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 480 536.5 458.8c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 416 458.8 359.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 416z";
|
|
1423
|
+
readonly width: 576;
|
|
1424
|
+
};
|
|
1383
1425
|
readonly squareCheck: {
|
|
1384
1426
|
readonly aliases: readonly ["checkbox", "checked", "selected"];
|
|
1385
1427
|
readonly categories: readonly ["actions", "status"];
|
|
@@ -1668,7 +1710,7 @@ export declare const iconData: {
|
|
|
1668
1710
|
readonly width: 374;
|
|
1669
1711
|
};
|
|
1670
1712
|
};
|
|
1671
|
-
export declare const iconList: readonly ["angleDown", "angleLeft", "angleRight", "anglesDown", "anglesLeft", "anglesRight", "anglesUp", "angleUp", "arrowDownToLine", "arrowDownWideShort", "arrowLeft", "arrowRight", "arrowsRetweet", "arrowUpShortWide", "asterisk", "banBug", "bars", "barsFilter", "barsStaggered", "bell", "billboard", "bitbucket", "bluesky", "bolt", "boltPantheon", "boltSolid", "book", "bookmark", "bookmarkSolid", "books", "box", "bracketRight", "bracketsSquare", "brainCircuit", "broomWide", "building", "buildings", "bullhorn", "calendarDays", "caretDown", "caretLeft", "caretRight", "caretUp", "ccAmex", "ccApplePay", "ccDiscover", "ccGeneric", "ccMC", "ccPaypal", "ccVisa", "chartLine", "chartNetwork", "chartSimple", "check", "circle", "circleCheck", "circleExclamation", "circleExclamationSolid", "circleHalfStroke", "circleInfo", "circleInfoSolid", "circleMinus", "circleNotch", "circlePlus", "circleQuestion", "circleQuestionSolid", "circleUser", "circleXmark", "claude", "clock", "cloud", "cloudArrowDown", "cloudArrowUp", "cloudPlus", "code", "codeBranch", "codeMerge", "collapseToCenter", "command", "comment", "compress", "copy", "desktop", "diagramVenn", "diamondExclamation", "diamonds4", "discourse", "display", "dollarSign", "download", "drupal", "ellipsis", "ellipsisVertical", "emptySet", "envelope", "envelopeOpen", "exclamation", "expand", "expandFromCenter", "externalLink", "eye", "eyeSlash", "facebook", "file", "fileCheck", "fileContract", "fileCSV", "fileDiff", "fileExport", "fileImport", "fileLines", "filePDF", "files", "fileZip", "floppyDisk", "folder", "folders", "folderTree", "gear", "gem", "github", "gitlab", "globe", "graduationCap", "grid", "grid2", "gripDots", "gripDotsVertical", "heart", "heartSolid", "house", "idCard", "image", "inputText", "instagram", "keySkeleton", "landmark", "laptop", "laptopCode", "leaf", "lifeRing", "link", "linkedin", "list", "listCheck", "locationCrosshairs", "lock", "lockOpen", "magnifyingGlass", "medal", "memo", "messages", "minus", "moon", "move", "nextJs", "octagonExclamation", "openai", "paperclip", "paperPlane", "pause", "pen", "penField", "penPaintbrush", "phone", "play", "plus", "question", "quotesLeft", "quotesRight", "rectangleList", "rectanglesMixed", "reply", "robot", "rocketLaunch", "rotate", "rotateClock", "rotateLeft", "rotateRight", "rss", "save", "server", "shareNodes", "shield", "shieldQuartered", "shovel", "sidebar", "siren", "sirenOn", "sitemap", "slack", "slashForward", "slider", "slidersSimple", "snowflake", "sparkles", "squareCheck", "squareCode", "squareDashed", "squareMinus", "squarePen", "squareQuestion", "squareTerminal", "star", "starSolid", "sun", "sunBright", "table", "tableColumns", "tableRows", "terminal", "text", "threads", "thumbsDown", "thumbsUp", "trash", "triangleExclamation", "twitter", "unlink", "upload", "user", "userAstronaut", "userGear", "userPlus", "users", "userSolid", "video", "wavePulse", "windowRestore", "wordpress", "wreathLaurel", "wrench", "xmark", "xmarkLarge", "xTwitter", "youtube", "zappy"];
|
|
1713
|
+
export declare const iconList: readonly ["angleDown", "angleLeft", "angleRight", "anglesDown", "anglesLeft", "anglesRight", "anglesUp", "angleUp", "arrowDownToLine", "arrowDownWideShort", "arrowLeft", "arrowRight", "arrowRightArrowLeft", "arrowsRetweet", "arrowUpShortWide", "asterisk", "badgePercent", "banBug", "bars", "barsFilter", "barsStaggered", "bell", "billboard", "bitbucket", "bluesky", "bolt", "boltPantheon", "boltSolid", "book", "bookmark", "bookmarkSolid", "books", "box", "bracketRight", "bracketsSquare", "brainCircuit", "broomWide", "building", "buildings", "bullhorn", "calendarDays", "caretDown", "caretLeft", "caretRight", "caretUp", "ccAmex", "ccApplePay", "ccDiscover", "ccGeneric", "ccMC", "ccPaypal", "ccVisa", "chartLine", "chartNetwork", "chartSimple", "check", "circle", "circleCheck", "circleDollar", "circleExclamation", "circleExclamationSolid", "circleHalfStroke", "circleInfo", "circleInfoSolid", "circleMinus", "circleNotch", "circlePlus", "circleQuestion", "circleQuestionSolid", "circleUser", "circleXmark", "claude", "clock", "cloud", "cloudArrowDown", "cloudArrowUp", "cloudPlus", "code", "codeBranch", "codeMerge", "collapseToCenter", "command", "comment", "compress", "copy", "desktop", "diagramVenn", "diamondExclamation", "diamonds4", "discourse", "display", "dollarSign", "download", "drupal", "ellipsis", "ellipsisVertical", "emptySet", "envelope", "envelopeOpen", "exclamation", "expand", "expandFromCenter", "externalLink", "eye", "eyeSlash", "facebook", "file", "fileCheck", "fileContract", "fileCSV", "fileDiff", "fileExport", "fileImport", "fileLines", "filePDF", "files", "fileZip", "floppyDisk", "folder", "folders", "folderTree", "gaugeSimpleHigh", "gear", "gem", "github", "gitlab", "globe", "graduationCap", "grid", "grid2", "gripDots", "gripDotsVertical", "handWave", "heart", "heartSolid", "house", "idCard", "image", "inputText", "instagram", "keySkeleton", "landmark", "laptop", "laptopCode", "leaf", "lifeRing", "link", "linkedin", "list", "listCheck", "locationCrosshairs", "lock", "lockOpen", "magnifyingGlass", "medal", "memo", "messages", "minus", "moon", "move", "nextJs", "octagonExclamation", "openai", "paperclip", "paperPlane", "pause", "pen", "penField", "penPaintbrush", "phone", "play", "plus", "question", "quotesLeft", "quotesRight", "rectangleList", "rectanglesMixed", "reply", "robot", "rocketLaunch", "rotate", "rotateClock", "rotateLeft", "rotateRight", "rss", "save", "server", "shareNodes", "shield", "shieldQuartered", "shovel", "sidebar", "siren", "sirenOn", "sitemap", "slack", "slashForward", "slider", "slidersSimple", "snowflake", "sparkles", "sparklesSolid", "squareCheck", "squareCode", "squareDashed", "squareMinus", "squarePen", "squareQuestion", "squareTerminal", "star", "starSolid", "sun", "sunBright", "table", "tableColumns", "tableRows", "terminal", "text", "threads", "thumbsDown", "thumbsUp", "trash", "triangleExclamation", "twitter", "unlink", "upload", "user", "userAstronaut", "userGear", "userPlus", "users", "userSolid", "video", "wavePulse", "windowRestore", "wordpress", "wreathLaurel", "wrench", "xmark", "xmarkLarge", "xTwitter", "youtube", "zappy"];
|
|
1672
1714
|
export type PDSIconName = (typeof iconList)[number];
|
|
1673
1715
|
export declare const categoryList: readonly ["actions", "arrows", "brands", "communication", "custom", "data", "development", "documents", "financial", "media", "navigation", "objects", "security", "status", "users"];
|
|
1674
1716
|
export type IconCategory = (typeof categoryList)[number];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { AgenticIcon } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import './agent-avatar.css';
|
|
4
|
+
export interface AgentAvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
/**
|
|
6
|
+
* Accessible name when the avatar is a link. Falls back to `label`.
|
|
7
|
+
*/
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Additional class names
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Show the AI gradient ring around the avatar.
|
|
15
|
+
*/
|
|
16
|
+
hasHalo?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Icon inside the avatar. `zappy` for Pantheon agents, `sparklesSolid` for
|
|
19
|
+
* other (third-party) agents.
|
|
20
|
+
*/
|
|
21
|
+
iconName?: AgenticIcon;
|
|
22
|
+
/**
|
|
23
|
+
* Screen reader text that says this is an agent. Pass it translated.
|
|
24
|
+
*/
|
|
25
|
+
label: string;
|
|
26
|
+
/**
|
|
27
|
+
* A link element using the router of your choice. Leave empty for no link.
|
|
28
|
+
*/
|
|
29
|
+
linkContent?: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Avatar shape.
|
|
32
|
+
*/
|
|
33
|
+
shape?: 'circle' | 'square';
|
|
34
|
+
/**
|
|
35
|
+
* Avatar size. `xs` = 16px, `s` = 20px (default), `m` = 24px, `l` = 32px,
|
|
36
|
+
* `xl` = 40px.
|
|
37
|
+
*/
|
|
38
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* AgentAvatar UI component. Identifies an AI agent as the actor in activity
|
|
42
|
+
* logs, threads, and lists.
|
|
43
|
+
*/
|
|
44
|
+
export declare const AgentAvatar: ({ ariaLabel, className, hasHalo, iconName, label, linkContent, shape, size, ...props }: AgentAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './avatar.css';
|
|
3
|
+
export type AvatarFallbackIcon = 'user' | 'business-account';
|
|
3
4
|
export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
5
|
/**
|
|
5
6
|
* Aria label for the avatar when used as a link. This is required if using a link.
|
|
@@ -10,6 +11,13 @@ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
10
11
|
*/
|
|
11
12
|
className?: string;
|
|
12
13
|
/**
|
|
14
|
+
* Icon displayed over the fallback gradient when an image is not provided.
|
|
15
|
+
* Takes precedence over `hasUserFallback`.
|
|
16
|
+
* @default null
|
|
17
|
+
*/
|
|
18
|
+
fallbackIcon?: AvatarFallbackIcon | null;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Use `fallbackIcon="user"` instead.
|
|
13
21
|
* If true, a user icon will be displayed with the fallback gradient when an image is not provided.
|
|
14
22
|
*/
|
|
15
23
|
hasUserFallback?: boolean;
|
|
@@ -38,4 +46,4 @@ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
38
46
|
/**
|
|
39
47
|
* Avatar UI component
|
|
40
48
|
*/
|
|
41
|
-
export declare const Avatar: ({ ariaLabel, className, hasUserFallback, imageSrc, linkContent, shape, size, uniqueId, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare const Avatar: ({ ariaLabel, className, fallbackIcon, hasUserFallback, imageSrc, linkContent, shape, size, uniqueId, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AgentAvatarProps } from '../AgentAvatar/AgentAvatar.js';
|
|
3
|
+
import { AvatarProps } from '../Avatar/Avatar.js';
|
|
3
4
|
import './avatar-label.css';
|
|
4
5
|
/**
|
|
5
6
|
* Prop types for AvatarLabel
|
|
6
7
|
*/
|
|
7
8
|
export interface AvatarLabelProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
|
+
/**
|
|
10
|
+
* Screen reader text that says this is an agent (for example "Agent"),
|
|
11
|
+
* announced before the label. Only used with `isAgent`, and kept in the
|
|
12
|
+
* page when `hasAvatar` is `false`. Pass it translated.
|
|
13
|
+
*/
|
|
14
|
+
agentLabel?: string;
|
|
8
15
|
/**
|
|
9
16
|
* Aria label for the whole component when used as a link via
|
|
10
17
|
* `linkContent`. Only needed if the visible `label` text isn't already a
|
|
@@ -12,14 +19,34 @@ export interface AvatarLabelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
12
19
|
*/
|
|
13
20
|
ariaLabel?: string;
|
|
14
21
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
22
|
+
* Optional text after the label that says who the agent is acting for (for
|
|
23
|
+
* example "on behalf of alex@example.com"). Pass the whole phrase, since
|
|
24
|
+
* the wording and word order change by language. Shown in the secondary
|
|
25
|
+
* text color and truncates before the label does.
|
|
26
|
+
*/
|
|
27
|
+
attribution?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Props to pass to the Avatar component, or to AgentAvatar when `isAgent`
|
|
30
|
+
* is true. `size` is set automatically based on AvatarLabel's own `size`
|
|
31
|
+
* prop and cannot be overridden here.
|
|
17
32
|
*/
|
|
18
|
-
avatarProps?: Omit<AvatarProps, 'ariaLabel' | 'linkContent' | 'size'>;
|
|
33
|
+
avatarProps?: Omit<AvatarProps, 'ariaLabel' | 'linkContent' | 'size'> | Omit<AgentAvatarProps, 'ariaLabel' | 'label' | 'linkContent' | 'size'>;
|
|
19
34
|
/**
|
|
20
35
|
* Additional class names
|
|
21
36
|
*/
|
|
22
37
|
className?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Show the avatar? Set to `false` to show only the label (and attribution),
|
|
40
|
+
* for example when the avatar is already shown on a neighboring item. For
|
|
41
|
+
* an agent, the avatar's `label` stays in the page as screen-reader-only
|
|
42
|
+
* text.
|
|
43
|
+
*/
|
|
44
|
+
hasAvatar?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Show an AgentAvatar instead of an Avatar. `avatarProps` then takes
|
|
47
|
+
* AgentAvatar props. Use `agentLabel` to say it is an agent to screen readers.
|
|
48
|
+
*/
|
|
49
|
+
isAgent?: boolean;
|
|
23
50
|
/**
|
|
24
51
|
* Text label displayed next to the avatar.
|
|
25
52
|
*/
|
|
@@ -39,4 +66,4 @@ export interface AvatarLabelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
39
66
|
/**
|
|
40
67
|
* AvatarLabel UI component
|
|
41
68
|
*/
|
|
42
|
-
export declare const AvatarLabel: ({ ariaLabel, avatarProps, className, label, linkContent, size, ...props }: AvatarLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare const AvatarLabel: ({ agentLabel, ariaLabel, attribution, avatarProps, className, hasAvatar, isAgent, label, linkContent, size, ...props }: AvatarLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AgentAvatarProps } from '../AgentAvatar/AgentAvatar.js';
|
|
3
|
+
import { AvatarProps } from '../Avatar/Avatar.js';
|
|
3
4
|
import './identity-block.css';
|
|
4
5
|
/**
|
|
5
6
|
* Prop types for IdentityBlock
|
|
6
7
|
*/
|
|
7
8
|
export interface IdentityBlockProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Screen reader text that says this is an agent (for example "Agent"),
|
|
11
|
+
* announced before the text. Only used with `isAgent`, and still read when
|
|
12
|
+
* only the avatar is shown. Pass it translated.
|
|
10
13
|
*/
|
|
11
|
-
|
|
14
|
+
agentLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Props to pass to the Avatar component, or to AgentAvatar when `isAgent`
|
|
17
|
+
* is true. `size` is set automatically.
|
|
18
|
+
*/
|
|
19
|
+
avatarProps?: AvatarProps | Omit<AgentAvatarProps, 'ariaLabel' | 'label' | 'linkContent' | 'size'>;
|
|
12
20
|
/**
|
|
13
21
|
* Additional class names
|
|
14
22
|
*/
|
|
15
23
|
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Show an AgentAvatar instead of an Avatar. `avatarProps` then takes
|
|
26
|
+
* AgentAvatar props. Use `agentLabel` to say it is an agent to screen
|
|
27
|
+
* readers.
|
|
28
|
+
*/
|
|
29
|
+
isAgent?: boolean;
|
|
16
30
|
/**
|
|
17
31
|
* When true, only the avatar is shown (text is hidden).
|
|
18
32
|
*/
|
|
@@ -34,4 +48,4 @@ export interface IdentityBlockProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
34
48
|
/**
|
|
35
49
|
* IdentityBlock UI component
|
|
36
50
|
*/
|
|
37
|
-
export declare const IdentityBlock: ({ avatarProps, className, isSidebarCollapsed, isSingleLine, primaryText, secondaryText, ...props }: IdentityBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare const IdentityBlock: ({ agentLabel, avatarProps, className, isAgent, isSidebarCollapsed, isSingleLine, primaryText, secondaryText, ...props }: IdentityBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './checkbox.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for Checkbox
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import '../CheckboxGroup/checkbox-group.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for CheckboxFieldset
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './checkbox-group.css';
|
|
4
4
|
export type CheckboxOption = {
|
|
5
5
|
checked?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ChangeEvent, ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './combobox.css';
|
|
4
4
|
export type ComboboxSize = 's' | 'm';
|
|
5
5
|
type LabelStrings = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
4
4
|
import './datepicker.css';
|
|
5
5
|
/**
|
|
6
6
|
* A date range, as plain native `Date` objects. Replaces `react-day-picker`'s
|
|
@@ -204,10 +204,28 @@ interface DatepickerSharedProps extends DatepickerHTMLProps {
|
|
|
204
204
|
* Maximum selectable date.
|
|
205
205
|
*/
|
|
206
206
|
maxDate?: Date;
|
|
207
|
+
/**
|
|
208
|
+
* Helper text displayed below the input.
|
|
209
|
+
*/
|
|
210
|
+
message?: string | ReactNode;
|
|
207
211
|
/**
|
|
208
212
|
* Minimum selectable date.
|
|
209
213
|
*/
|
|
210
214
|
minDate?: Date;
|
|
215
|
+
/**
|
|
216
|
+
* Fired when the viewer toggles the `showTimeZoneSwitcher` control,
|
|
217
|
+
* reporting the newly selected zone. `timeZone` is the resolved IANA
|
|
218
|
+
* identifier to format your own UI in (`'UTC'`, or the viewer's own
|
|
219
|
+
* browser zone for the "Local" side); `mode` is which side was
|
|
220
|
+
* chosen. Called once per toggle, and only for a real viewer change — not
|
|
221
|
+
* when the `timeZone` prop changes underneath it. The switcher stays
|
|
222
|
+
* internally managed; mirror the zone into your own state from here (e.g.
|
|
223
|
+
* an Edge Logs table labelling its timestamp column to match the picker).
|
|
224
|
+
* `onChange` deliberately does *not* fire for a zone toggle, since the
|
|
225
|
+
* selected instant is unchanged. Has no effect unless
|
|
226
|
+
* `showTimeZoneSwitcher` (and therefore `showTime`) is set.
|
|
227
|
+
*/
|
|
228
|
+
onTimeZoneChange?: (timeZone: string, mode: 'local' | 'utc') => void;
|
|
211
229
|
/**
|
|
212
230
|
* Placeholder text for the trigger button.
|
|
213
231
|
*/
|
|
@@ -268,24 +286,6 @@ interface DatepickerSharedProps extends DatepickerHTMLProps {
|
|
|
268
286
|
* date. Has no effect unless `showTime` is also true.
|
|
269
287
|
*/
|
|
270
288
|
showTimeZoneSwitcher?: boolean;
|
|
271
|
-
/**
|
|
272
|
-
* Fired when the viewer toggles the `showTimeZoneSwitcher` control,
|
|
273
|
-
* reporting the newly selected zone. `timeZone` is the resolved IANA
|
|
274
|
-
* identifier to format your own UI in (`'UTC'`, or the viewer's own
|
|
275
|
-
* browser zone for the "Local" side); `mode` is which side was
|
|
276
|
-
* chosen. Called once per toggle, and only for a real viewer change — not
|
|
277
|
-
* when the `timeZone` prop changes underneath it. The switcher stays
|
|
278
|
-
* internally managed; mirror the zone into your own state from here (e.g.
|
|
279
|
-
* an Edge Logs table labelling its timestamp column to match the picker).
|
|
280
|
-
* `onChange` deliberately does *not* fire for a zone toggle, since the
|
|
281
|
-
* selected instant is unchanged. Has no effect unless
|
|
282
|
-
* `showTimeZoneSwitcher` (and therefore `showTime`) is set.
|
|
283
|
-
*/
|
|
284
|
-
onTimeZoneChange?: (timeZone: string, mode: 'local' | 'utc') => void;
|
|
285
|
-
/**
|
|
286
|
-
* Helper text displayed below the input.
|
|
287
|
-
*/
|
|
288
|
-
message?: string | ReactNode;
|
|
289
289
|
/**
|
|
290
290
|
* Whether the calendar footer includes its "Today" button. Defaults to
|
|
291
291
|
* `true`. Set to `false` to leave only the end-aligned buttons —
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './file-upload.css';
|
|
4
4
|
export type FileUploadSize = 's' | 'm';
|
|
5
5
|
type LabelStrings = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './radio-group.css';
|
|
4
4
|
export interface RadioOption {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
4
4
|
import './select.css';
|
|
5
5
|
export type SelectIconType = PDSIcon | 'google' | 'microsoft';
|
|
6
6
|
export type SelectSize = 's' | 'm';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { SiteOption } from '
|
|
2
|
+
import { SiteOption } from '../../../libs/components/SiteOptionDisplay/SiteOptionDisplay.js';
|
|
3
3
|
import './site-search.css';
|
|
4
4
|
type LabelStrings = {
|
|
5
5
|
clearButton?: string;
|
|
@@ -46,6 +46,13 @@ export interface SwitchProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
46
46
|
* Label of the switch field.
|
|
47
47
|
*/
|
|
48
48
|
label: string;
|
|
49
|
+
/**
|
|
50
|
+
* Visual treatment of the label. `'default'` matches other form field
|
|
51
|
+
* labels. `'heading'` is semibold and a size up, for a switch that reads as
|
|
52
|
+
* its own setting among a list of settings rather than a form field. It
|
|
53
|
+
* stays a `<label>`, not a heading element.
|
|
54
|
+
*/
|
|
55
|
+
labelVariant?: 'default' | 'heading';
|
|
49
56
|
/**
|
|
50
57
|
* Message or description used to help clarify the usage of the input.
|
|
51
58
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './tags-input.css';
|
|
4
4
|
type LabelStrings = {
|
|
5
5
|
inputInstructions: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './text-input.css';
|
|
4
4
|
type LabelStrings = {
|
|
5
5
|
clearButton: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
3
3
|
import './textarea.css';
|
|
4
4
|
type LabelStrings = {
|
|
5
5
|
clearButton: string;
|