@pantheon-systems/pds-toolkit-react 2.0.0-beta.2 → 2.0.0-beta.21
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/{RowActionsMenu → navigation/RowActionsMenu}/RowActionsMenu.d.ts +1 -1
- 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/{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 +7992 -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 +46 -40
- /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
package/dist/index.source.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './components/badges/Badge/Badge';
|
|
2
2
|
export * from './components/badges/StatusBadge/StatusBadge';
|
|
3
|
+
export * from './components/badges/Tag/Tag';
|
|
3
4
|
export * from './components/badges/Tally/Tally';
|
|
4
|
-
export * from './components/BranchDiff/BranchDiff';
|
|
5
5
|
export * from './components/buttons/Button/Button';
|
|
6
6
|
export * from './components/buttons/ButtonLink/ButtonLink';
|
|
7
7
|
export * from './components/buttons/ClipboardButton/ClipboardButton';
|
|
@@ -14,25 +14,27 @@ export * from './components/buttons/SelectButton/SelectButton';
|
|
|
14
14
|
export * from './components/buttons/SplitButton/SplitButton';
|
|
15
15
|
export * from './components/buttons/SSOButton/SSOButton';
|
|
16
16
|
export * from './components/buttons/UtilityButton/UtilityButton';
|
|
17
|
-
export * from './components/Callout/Callout';
|
|
18
17
|
export * from './components/cards/ActionCard/ActionCard';
|
|
19
18
|
export * from './components/cards/Card/Card';
|
|
20
19
|
export * from './components/cards/CardSelect/CardSelect';
|
|
20
|
+
export * from './components/charts/AreaChart/AreaChart';
|
|
21
21
|
export * from './components/charts/BarChart/BarChart';
|
|
22
22
|
export * from './components/charts/LineChart/LineChart';
|
|
23
23
|
export * from './components/charts/PieChart/PieChart';
|
|
24
24
|
export * from './components/charts/ProportionBar/ProportionBar';
|
|
25
|
+
export * from './components/charts/ScatterPlot/ScatterPlot';
|
|
25
26
|
export * from './components/charts/shared/types';
|
|
26
|
-
export * from './components/
|
|
27
|
-
export * from './components/
|
|
28
|
-
export * from './components/
|
|
27
|
+
export * from './components/charts/Sparkline/Sparkline';
|
|
28
|
+
export * from './components/code-display/BranchDiff/BranchDiff';
|
|
29
|
+
export * from './components/code-display/CodeBlock/CodeBlock';
|
|
30
|
+
export * from './components/code-display/FileDiff/FileDiff';
|
|
29
31
|
export * from './components/empty-states/CompactEmptyState/CompactEmptyState';
|
|
30
32
|
export * from './components/empty-states/HorizontalEmptyState/HorizontalEmptyState';
|
|
31
33
|
export * from './components/empty-states/VerticalEmptyState/VerticalEmptyState';
|
|
32
|
-
export * from './components/FileDiff/FileDiff';
|
|
33
34
|
export * from './components/icons/Icon/Icon';
|
|
34
35
|
export * from './components/icons/PaymentIcon/PaymentIcon';
|
|
35
36
|
export * from './components/icons/PlatformIcon/PlatformIcon';
|
|
37
|
+
export * from './components/identity/AgentAvatar/AgentAvatar';
|
|
36
38
|
export * from './components/identity/Avatar/Avatar';
|
|
37
39
|
export * from './components/identity/AvatarLabel/AvatarLabel';
|
|
38
40
|
export * from './components/identity/IdentityBlock/IdentityBlock';
|
|
@@ -46,32 +48,52 @@ export * from './components/inputs/FileUpload/FileUpload';
|
|
|
46
48
|
export * from './components/inputs/InputGroup/InputGroup';
|
|
47
49
|
export * from './components/inputs/RadioGroup/RadioGroup';
|
|
48
50
|
export * from './components/inputs/Select/Select';
|
|
51
|
+
export * from './components/inputs/SiteSearch/SiteSearch';
|
|
49
52
|
export * from './components/inputs/Switch/Switch';
|
|
50
53
|
export * from './components/inputs/TagsInput/TagsInput';
|
|
51
54
|
export * from './components/inputs/Textarea/Textarea';
|
|
52
55
|
export * from './components/inputs/TextInput/TextInput';
|
|
56
|
+
export * from './components/inputs/ThemeSwitcher/ThemeSwitcher';
|
|
53
57
|
export * from './components/inputs/Timepicker/Timepicker';
|
|
58
|
+
export * from './components/inputs/WorkspacePicker/WorkspacePicker';
|
|
54
59
|
export * from './components/links/CTALink/CTALink';
|
|
55
60
|
export * from './components/links/LinkNewWindow/LinkNewWindow';
|
|
56
61
|
export * from './components/links/Skiplink/Skiplink';
|
|
62
|
+
export * from './components/lists/ComparisonList/ComparisonList';
|
|
63
|
+
export * from './components/lists/SortableList/SortableList';
|
|
64
|
+
export * from './components/lists/SortableList/SortableListHeader';
|
|
65
|
+
export * from './components/lists/SortableList/SortableRow';
|
|
66
|
+
export * from './components/lists/SortableList/types';
|
|
67
|
+
export * from './components/lists/StepList/StepList';
|
|
68
|
+
export * from './components/lists/Timeline/Timeline';
|
|
69
|
+
export * from './components/lists/Timeline/TimelineItem';
|
|
57
70
|
export * from './components/loading-indicators/Skeleton/Skeleton';
|
|
58
71
|
export * from './components/loading-indicators/Spinner/Spinner';
|
|
72
|
+
export * from './components/loading-indicators/ThinkingState/ThinkingState';
|
|
73
|
+
export * from './components/media/Illustration/Illustration';
|
|
74
|
+
export * from './components/media/PantheonLogo/PantheonLogo';
|
|
59
75
|
export * from './components/media/Picture/Picture';
|
|
60
76
|
export * from './components/media/VideoEmbed/VideoEmbed';
|
|
77
|
+
export * from './components/navigation/BASwitcher/BASwitcher';
|
|
61
78
|
export * from './components/navigation/BookmarksMenu/BookmarksMenu';
|
|
62
79
|
export * from './components/navigation/Breadcrumb/Breadcrumb';
|
|
63
80
|
export * from './components/navigation/ButtonNav/ButtonNav';
|
|
64
81
|
export * from './components/navigation/DropdownMenu/DropdownMenu';
|
|
65
82
|
export * from './components/navigation/Navbar/Navbar';
|
|
83
|
+
export * from './components/navigation/RowActionsMenu/RowActionsMenu';
|
|
66
84
|
export * from './components/navigation/SideNav/SideNav';
|
|
67
85
|
export * from './components/navigation/SideNavGlobal/SideNavGlobal';
|
|
68
86
|
export * from './components/navigation/SideNavGlobal/SideNavGlobalItem';
|
|
87
|
+
export * from './components/navigation/SiteFooter/SiteFooter';
|
|
69
88
|
export * from './components/navigation/SiteMenu/SiteMenu';
|
|
89
|
+
export * from './components/navigation/TableOfContents/TableOfContents';
|
|
70
90
|
export * from './components/navigation/TabMenu/TabMenu';
|
|
91
|
+
export * from './components/navigation/Tabs/Tabs';
|
|
71
92
|
export * from './components/navigation/TreeNav/TreeNav';
|
|
72
93
|
export * from './components/navigation/UserMenu/UserMenu';
|
|
73
94
|
export * from './components/navigation/WorkspaceSelector/WorkspaceSelector';
|
|
74
95
|
export * from './components/notifications/Banner/Banner';
|
|
96
|
+
export * from './components/notifications/Callout/Callout';
|
|
75
97
|
export * from './components/notifications/InlineMessage/InlineMessage';
|
|
76
98
|
export * from './components/notifications/SectionMessage/SectionMessage';
|
|
77
99
|
export * from './components/notifications/Toaster/Toast';
|
|
@@ -80,11 +102,15 @@ export * from './components/notifications/Toaster/useToast';
|
|
|
80
102
|
export * from './components/overlays/BottomSheet/BottomSheet';
|
|
81
103
|
export * from './components/overlays/BulkActionBar/BulkActionBar';
|
|
82
104
|
export * from './components/overlays/Drawer/Drawer';
|
|
105
|
+
export * from './components/overlays/Dropdown/Dropdown';
|
|
83
106
|
export * from './components/overlays/FullScreenOverlay/FullScreenOverlay';
|
|
84
107
|
export * from './components/overlays/Modal/Modal';
|
|
108
|
+
export * from './components/overlays/Popover/Popover';
|
|
109
|
+
export * from './components/overlays/Tooltip/Tooltip';
|
|
85
110
|
export * from './components/pagination/Pagination/Pagination';
|
|
86
111
|
export * from './components/pagination/PaginationChapter/PaginationChapter';
|
|
87
112
|
export * from './components/pagination/PaginationCompact/PaginationCompact';
|
|
113
|
+
export * from './components/panels/BASelectorPanel/BASelectorPanel';
|
|
88
114
|
export * from './components/panels/BookmarksPanel/BookmarksPanel';
|
|
89
115
|
export * from './components/panels/ExpansionPanel/ExpansionPanel';
|
|
90
116
|
export * from './components/panels/ExpansionPanelGroup/ExpansionPanelGroup';
|
|
@@ -93,34 +119,19 @@ export * from './components/panels/Panel/Panel';
|
|
|
93
119
|
export * from './components/panels/PanelList/PanelList';
|
|
94
120
|
export * from './components/panels/PanelList/PanelRow';
|
|
95
121
|
export * from './components/panels/PanelStack/PanelStack';
|
|
122
|
+
export * from './components/panels/StatPanel/StatPanel';
|
|
96
123
|
export * from './components/panels/WidgetPanel/WidgetPanel';
|
|
97
124
|
export * from './components/panels/WorkspaceSelectorPanel/WorkspaceSelectorPanel';
|
|
98
|
-
export * from './components/PantheonLogo/PantheonLogo';
|
|
99
|
-
export * from './components/Popover/Popover';
|
|
100
125
|
export * from './components/progress-indicators/ProgressBar/ProgressBar';
|
|
101
126
|
export * from './components/progress-indicators/ProgressRing/ProgressRing';
|
|
102
|
-
export * from './components/
|
|
103
|
-
export * from './components/
|
|
104
|
-
export * from './components/
|
|
105
|
-
export * from './components/SiteSearch/SiteSearch';
|
|
106
|
-
export * from './components/SortableList/SortableList';
|
|
107
|
-
export * from './components/SortableList/SortableListHeader';
|
|
108
|
-
export * from './components/SortableList/SortableRow';
|
|
109
|
-
export * from './components/SortableList/types';
|
|
110
|
-
export * from './components/StatPanel/StatPanel';
|
|
111
|
-
export * from './components/StatusChecker/StatusChecker';
|
|
112
|
-
export * from './components/StatusIndicator/StatusIndicator';
|
|
113
|
-
export * from './components/StatusScrim/StatusScrim';
|
|
114
|
-
export * from './components/steppers/StepList/StepList';
|
|
127
|
+
export * from './components/status/StatusChecker/StatusChecker';
|
|
128
|
+
export * from './components/status/StatusIndicator/StatusIndicator';
|
|
129
|
+
export * from './components/status/StatusScrim/StatusScrim';
|
|
115
130
|
export * from './components/steppers/Stepper/Stepper';
|
|
116
131
|
export * from './components/steppers/VerticalStepper/VerticalStepper';
|
|
117
|
-
export * from './components/
|
|
118
|
-
export * from './components/
|
|
119
|
-
export * from './components/
|
|
120
|
-
export * from './components/Tag/Tag';
|
|
121
|
-
export * from './components/ThemeSwitcher/ThemeSwitcher';
|
|
122
|
-
export * from './components/Tooltip/Tooltip';
|
|
123
|
-
export * from './components/UtilityBar/UtilityBar';
|
|
132
|
+
export * from './components/tables/ResultCount/ResultCount';
|
|
133
|
+
export * from './components/tables/Table/Table';
|
|
134
|
+
export * from './components/tables/UtilityBar/UtilityBar';
|
|
124
135
|
export * from './libs/components/SiteOptionDisplay/SiteOptionDisplay';
|
|
125
136
|
export * from './layouts/AppLayout/AppLayout';
|
|
126
137
|
export * from './layouts/DocsLayout/DocsLayout';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { DrawerProps } from '../../components/overlays/Drawer/Drawer';
|
|
2
|
+
import { DrawerProps } from '../../components/overlays/Drawer/Drawer.js';
|
|
3
3
|
import './app-layout.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for AppLayout
|
|
@@ -12,6 +12,10 @@ interface DocsLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
12
12
|
* Additional class names
|
|
13
13
|
*/
|
|
14
14
|
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Accessible name for the sidebar landmark. Distinguishes it from the table of contents landmark for assistive technology.
|
|
17
|
+
*/
|
|
18
|
+
sidebarLabel?: string;
|
|
15
19
|
/**
|
|
16
20
|
* Width of the sidebar as a percentage.
|
|
17
21
|
*/
|
|
@@ -24,9 +28,13 @@ interface DocsLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
24
28
|
* Minimum width of the sidebar in rems. Ensures the sidebar remains usable on medium-sized screens.
|
|
25
29
|
*/
|
|
26
30
|
sidebarWidthMin?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Accessible name for the table of contents landmark. Distinguishes it from the sidebar landmark for assistive technology.
|
|
33
|
+
*/
|
|
34
|
+
tocLabel?: string;
|
|
27
35
|
}
|
|
28
36
|
/**
|
|
29
37
|
* DocsLayout UI component
|
|
30
38
|
*/
|
|
31
|
-
export declare const DocsLayout: ({ children, className, sidebarWidth, sidebarWidthMax, sidebarWidthMin, style, ...props }: DocsLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const DocsLayout: ({ children, className, sidebarLabel, sidebarWidth, sidebarWidthMax, sidebarWidthMin, style, tocLabel, ...props }: DocsLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
40
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types';
|
|
2
|
+
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types.js';
|
|
3
3
|
import './sidebar-layout.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for SidebarLayout
|
|
@@ -17,9 +17,11 @@ interface StepperLayoutProps {
|
|
|
17
17
|
* reading width for traditional form fields; `full` lets the form content
|
|
18
18
|
* span the full stepper container width. Use `full` only for non-form
|
|
19
19
|
* content such as a group of cards or other visual treatment prescribed by
|
|
20
|
-
* design.
|
|
20
|
+
* design. `wide` also suits a group of cards, but fills the panel with a
|
|
21
|
+
* small gutter and aligns the buttons to the content edges instead of the
|
|
22
|
+
* stepper's end nodes.
|
|
21
23
|
*/
|
|
22
|
-
formWidth?: 'standard' | 'full';
|
|
24
|
+
formWidth?: 'standard' | 'full' | 'wide';
|
|
23
25
|
/**
|
|
24
26
|
* Wrap the entire experience (stepper, form, and buttons) in a Panel.
|
|
25
27
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GapScale, VerticalAlignOptions } from '../../libs/types/layout-types';
|
|
2
|
+
import { GapScale, VerticalAlignOptions } from '../../libs/types/layout-types.js';
|
|
3
3
|
import '../../utilities/grid/grid.css';
|
|
4
4
|
import './three-item-layout.css';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GapScale, VerticalAlignOptions } from '../../libs/types/layout-types';
|
|
2
|
+
import { GapScale, VerticalAlignOptions } from '../../libs/types/layout-types.js';
|
|
3
3
|
import '../../utilities/grid/grid.css';
|
|
4
4
|
import './two-item-layout.css';
|
|
5
5
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True when a `DocsLayout` is below its desktop width and has moved its
|
|
3
|
+
* table of contents under the page title. Provided by `DocsLayout` so a
|
|
4
|
+
* `TableOfContents` inside it can switch to its dropdown presentation without
|
|
5
|
+
* the rest of the page having to be in the mobile layout.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DocsLayoutContext: import("react").Context<boolean>;
|
|
8
|
+
export declare const useIsDocsLayoutCompact: () => boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { WidgetPanelProps } from '../../../components/panels/WidgetPanel/WidgetPanel.js';
|
|
3
|
+
import './selector-panel.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for SelectorPanel
|
|
6
|
+
*/
|
|
7
|
+
export interface SelectorPanelProps extends Omit<WidgetPanelProps, 'children'> {
|
|
8
|
+
/**
|
|
9
|
+
* Link to create a new item. A link element using the router of your
|
|
10
|
+
* choice. Renders in the panel's footer.
|
|
11
|
+
*/
|
|
12
|
+
createLink?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Text shown when `items` is empty. Without it, nothing renders in place
|
|
15
|
+
* of the list.
|
|
16
|
+
*/
|
|
17
|
+
emptyText?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Content above the list, such as a filter input.
|
|
20
|
+
*/
|
|
21
|
+
filter?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Rows for the list, each a `SelectorPanelItem`.
|
|
24
|
+
*/
|
|
25
|
+
items: ReactNode[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Prop types for SelectorPanelItem
|
|
29
|
+
*/
|
|
30
|
+
export interface SelectorPanelItemProps extends Omit<React.ComponentPropsWithoutRef<'li'>, 'onSelect'> {
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Link element the row navigates with. Ignored when `onSelect` is set.
|
|
34
|
+
*/
|
|
35
|
+
link?: ReactElement;
|
|
36
|
+
/**
|
|
37
|
+
* Renders the row as a button that runs this instead of navigating.
|
|
38
|
+
*/
|
|
39
|
+
onSelect?: () => void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Shared shell for the embedded selector panels (`WorkspaceSelectorPanel`,
|
|
43
|
+
* `BASelectorPanel`): a `WidgetPanel` holding an optional filter, a plain
|
|
44
|
+
* `nav`/`ul` list of rows, and a footer create link. Not a menu -- an
|
|
45
|
+
* always-visible list has no menu roles or arrow-key navigation.
|
|
46
|
+
*/
|
|
47
|
+
export declare const SelectorPanel: ({ className, createLink, emptyText, filter, heading, items, ...props }: SelectorPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
/**
|
|
49
|
+
* Row for `SelectorPanel`: an `li` wrapping a link, or a button when
|
|
50
|
+
* `onSelect` is set.
|
|
51
|
+
*/
|
|
52
|
+
export declare const SelectorPanelItem: ({ children, className, link, onSelect, ...props }: SelectorPanelItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { StatusType } from '../../types/custom-types';
|
|
2
|
+
import { StatusType } from '../../types/custom-types.js';
|
|
3
3
|
import './status-dot.css';
|
|
4
4
|
export type StatusDotType = StatusType | 'neutral';
|
|
5
5
|
export interface StatusDotProps extends ComponentPropsWithoutRef<'span'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { AvatarProps } from '../../../components/identity/Avatar/Avatar';
|
|
3
|
-
import type { WorkspaceSelectorItem } from '../../../components/navigation/WorkspaceSelector/WorkspaceSelector';
|
|
2
|
+
import { AvatarProps } from '../../../components/identity/Avatar/Avatar.js';
|
|
3
|
+
import type { WorkspaceSelectorItem } from '../../../components/navigation/WorkspaceSelector/WorkspaceSelector.js';
|
|
4
4
|
import './workspace-list-item.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for WorkspaceListItem
|
|
@@ -31,10 +31,11 @@ export interface WorkspaceListItemProps extends ComponentPropsWithoutRef<'div'>
|
|
|
31
31
|
workspace: WorkspaceSelectorItem;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Shared avatar/name/status markup for a single workspace, used by
|
|
35
|
-
* `WorkspaceSelector` (dropdown menu item)
|
|
36
|
-
* (embedded list item)
|
|
37
|
-
* semantics, or ARIA role of
|
|
38
|
-
*
|
|
34
|
+
* Shared avatar/name/status markup for a single workspace, used by
|
|
35
|
+
* `WorkspaceSelector` (dropdown menu item), `WorkspaceSelectorPanel`
|
|
36
|
+
* (embedded list item), and `WorkspacePicker` (selectable list item).
|
|
37
|
+
* Intentionally has no interactive wrapper, list semantics, or ARIA role of
|
|
38
|
+
* its own -- each caller owns those, since their items differ (menuitem vs.
|
|
39
|
+
* plain list item vs. selectable button).
|
|
39
40
|
*/
|
|
40
41
|
export declare const WorkspaceListItem: ({ avatarSize, className, showActiveState, workspace, ...props }: WorkspaceListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PDSIcon } from '../../components/icons/Icon/Icon';
|
|
2
|
+
import { PDSIcon } from '../../components/icons/Icon/Icon.js';
|
|
3
|
+
export type AgenticIcon = Extract<PDSIcon, 'zappy' | 'sparklesSolid'>;
|
|
3
4
|
export type ButtonDisplayType = 'label-only' | 'icon-start' | 'icon-end';
|
|
4
5
|
export type ButtonSize = 'xs' | 's' | 'm' | 'l';
|
|
5
6
|
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type GapScale = 'none' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
1
|
+
export type GapScale = 'none' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
2
2
|
export type ContainerStackBreakpoint = 's' | 'm' | 'l' | 'xl';
|
|
3
3
|
export type PaddingScale = 'none' | 'condensed' | 'standard' | 'spacious';
|
|
4
4
|
export type CardPaddingScale = Exclude<PaddingScale, 'none'>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="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"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="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"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="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"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="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"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="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"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor" aria-hidden="true" focusable="false" role="img">
|
|
2
|
+
<path d="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"/>
|
|
3
|
+
</svg>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ContainerWidth } from '../../libs/types/custom-types';
|
|
2
|
+
import { ContainerWidth } from '../../libs/types/custom-types.js';
|
|
3
3
|
import '../../utilities/container.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for Container
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types';
|
|
2
|
+
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types.js';
|
|
3
3
|
import './flex-container.css';
|
|
4
4
|
type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
|
|
5
5
|
type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types';
|
|
2
|
+
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types.js';
|
|
3
3
|
import './grid.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for Grid
|
|
@@ -8,6 +8,9 @@ export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
8
8
|
* - lg: 1280-1439px (desktop)
|
|
9
9
|
* - xl: 1440px+ (large desktop)
|
|
10
10
|
*
|
|
11
|
+
* Server-rendered output and the first hydration render use `lg`; the real
|
|
12
|
+
* breakpoint applies right after hydration.
|
|
13
|
+
*
|
|
11
14
|
* @returns {Breakpoint} Current breakpoint name
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
@@ -32,6 +32,12 @@ export interface UseDropdownOptions {
|
|
|
32
32
|
* Enable typeahead character search via useTypeahead.
|
|
33
33
|
*/
|
|
34
34
|
enableTypeahead?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Like `matchReferenceWidth`, but sets the reference element's width as
|
|
37
|
+
* a minimum so the panel can grow wider to fit its content. Ignored when
|
|
38
|
+
* `matchReferenceWidth` is set.
|
|
39
|
+
*/
|
|
40
|
+
matchReferenceMinWidth?: boolean;
|
|
35
41
|
/**
|
|
36
42
|
* Set the floating panel's width to exactly match the reference
|
|
37
43
|
* (trigger) element's width, applied via inline style. Needed any time
|
|
@@ -151,4 +157,4 @@ export interface UseDropdownReturn {
|
|
|
151
157
|
*/
|
|
152
158
|
transitionStyles: React.CSSProperties;
|
|
153
159
|
}
|
|
154
|
-
export declare const useDropdown: ({ allowEscape, enableClick, enableListNavigation, enableShift, enableTransition, enableTypeahead, matchReferenceWidth, maxHeightValue, offsetValue, openOnHover, placement, role, selectedIndex, shiftPadding, variant, virtual, }?: UseDropdownOptions) => UseDropdownReturn;
|
|
160
|
+
export declare const useDropdown: ({ allowEscape, enableClick, enableListNavigation, enableShift, enableTransition, enableTypeahead, matchReferenceMinWidth, matchReferenceWidth, maxHeightValue, offsetValue, openOnHover, placement, role, selectedIndex, shiftPadding, variant, virtual, }?: UseDropdownOptions) => UseDropdownReturn;
|
|
@@ -12,6 +12,10 @@ export type UseKeyboardShortcutOptions = Options;
|
|
|
12
12
|
* - **Overlay-aware.** Shortcuts auto-suppress while any PDS overlay (modal,
|
|
13
13
|
* drawer, mobile menu, etc.) is open, so callers never have to thread
|
|
14
14
|
* `hasOpenOverlay` through their own `enabled` flag.
|
|
15
|
+
* - **Punctuation matches the typed character.** Shortcuts like `/` or `[`
|
|
16
|
+
* follow the character the user types, so they work on any keyboard layout.
|
|
17
|
+
* Letters, digits, and named keys follow the physical key. Override with the
|
|
18
|
+
* `useKey` option.
|
|
15
19
|
*
|
|
16
20
|
* The full `react-hotkeys-hook` option surface (scopes, key sequences,
|
|
17
21
|
* `description`, cross-platform `mod`, etc.) is available via `options`.
|
|
@@ -26,4 +30,4 @@ export type UseKeyboardShortcutOptions = Options;
|
|
|
26
30
|
* @param dependencies - Optional dependency array for the callback, forwarded to
|
|
27
31
|
* `react-hotkeys-hook`.
|
|
28
32
|
*/
|
|
29
|
-
export declare const useKeyboardShortcut: (keys: Keys, callback: HotkeyCallback, options?: UseKeyboardShortcutOptions, dependencies?: unknown[]) => (
|
|
33
|
+
export declare const useKeyboardShortcut: (keys: Keys, callback: HotkeyCallback, options?: UseKeyboardShortcutOptions, dependencies?: unknown[]) => import("react").RefCallback<HTMLElement>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscribes to changes of a media query and returns the cleanup function.
|
|
3
|
+
* Shared by `useMediaQuery` and `useBreakpoint`; browser-only, so call it from
|
|
4
|
+
* a `useSyncExternalStore` subscribe function, never during render.
|
|
5
|
+
*/
|
|
6
|
+
export declare const subscribeToMediaQuery: (query: string, onChange: () => void) => (() => void);
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for matching CSS media queries in JavaScript.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} query - CSS media query string (e.g., "(min-width: 768px)")
|
|
5
|
-
* @returns {boolean} Whether the media query currently matches
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* // Using with breakpoint constants
|
|
9
|
-
* import { BP_M } from '@pantheon-systems/pds-design-tokens/build/js/variables.global.js';
|
|
10
|
-
* const isTabletOrLarger = useMediaQuery(`(min-width: ${BP_M}px)`);
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* // Using with custom query
|
|
14
|
-
* const prefersReducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');
|
|
15
|
-
* const isDarkMode = useMediaQuery('(prefers-color-scheme: dark)');
|
|
16
|
-
*/
|
|
17
1
|
export declare const useMediaQuery: (query: string) => boolean;
|