@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { SegmentedButtonSize } from '
|
|
2
|
+
import { SegmentedButtonSize } from '../../buttons/SegmentedButton/SegmentedButton.js';
|
|
3
3
|
import './theme-switcher.css';
|
|
4
4
|
type Theme = 'light' | 'dark' | 'system';
|
|
5
5
|
type ThemeSwitcherVariant = 'dropdown' | 'toggle';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { CalendarDate } from '@internationalized/date';
|
|
3
|
-
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
|
+
import { ValidationStatus } from '../../../libs/types/input-types.js';
|
|
4
4
|
import './timepicker.css';
|
|
5
5
|
export type TimepickerSize = 's' | 'm';
|
|
6
6
|
/**
|
|
7
7
|
* Prop types for Timepicker
|
|
8
8
|
*/
|
|
9
|
-
export interface TimepickerProps {
|
|
9
|
+
export interface TimepickerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'defaultValue' | 'onBlur' | 'onChange' | 'onFocus'> {
|
|
10
10
|
/**
|
|
11
11
|
* Anchor calendar date used for DST-safe conversion math when `timeZone` changes. Defaults to today (in the previous timezone) if omitted — correct for the vast majority of scheduling UIs. Pass a real date (e.g. from Datepicker's selection) for full precision on/near DST transition dates.
|
|
12
12
|
*/
|
|
@@ -101,4 +101,4 @@ export interface TimepickerProps {
|
|
|
101
101
|
/**
|
|
102
102
|
* Timepicker UI component
|
|
103
103
|
*/
|
|
104
|
-
export declare const Timepicker: ({ anchorDate, className, defaultValue, disabled, hourCycle, id, inputWidth, inputWidthMin, label, message, onBlur, onChange, onFocus, required, showLabel, size, timeZone, tooltipText, validationMessage, validationStatus, value, }: TimepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
export declare const Timepicker: ({ anchorDate, className, defaultValue, disabled, hourCycle, id, inputWidth, inputWidthMin, label, message, onBlur, onChange, onFocus, required, showLabel, size, timeZone, tooltipText, validationMessage, validationStatus, value, ...props }: TimepickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import type { WorkspaceSelectorItem } from '../../navigation/WorkspaceSelector/WorkspaceSelector.js';
|
|
3
|
+
import './workspace-picker.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for WorkspacePicker
|
|
6
|
+
*/
|
|
7
|
+
export interface WorkspacePickerProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Accessible label for the `<nav>` landmark, distinct from `label` (the
|
|
10
|
+
* visible field legend). Optional since the legend already names the
|
|
11
|
+
* picker as a whole -- set this only if the nav landmark itself needs a
|
|
12
|
+
* different name.
|
|
13
|
+
*/
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Additional class names
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Label for the filter input.
|
|
21
|
+
*/
|
|
22
|
+
filterLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Placeholder text for the filter input.
|
|
25
|
+
*/
|
|
26
|
+
filterPlaceholder?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Unique ID for the picker.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Maximum width of the input field in pixels. The input fills its
|
|
33
|
+
* container up to this cap, then shrinks below it rather than
|
|
34
|
+
* overflowing in a tight flex/grid layout. When omitted, the input
|
|
35
|
+
* fills its container with no cap.
|
|
36
|
+
*/
|
|
37
|
+
inputWidth?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Minimum width of the input field in pixels, in a tight flex/grid layout
|
|
40
|
+
* that wraps (e.g. flexWrap="wrap"). Has no effect without inputWidth,
|
|
41
|
+
* and no effect on its own without a wrapping layout.
|
|
42
|
+
*/
|
|
43
|
+
inputWidthMin?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Label for the picker. Will be rendered as the fieldset legend.
|
|
46
|
+
*/
|
|
47
|
+
label: string;
|
|
48
|
+
/**
|
|
49
|
+
* Input message. Used to provide supplemental text. Will be displayed
|
|
50
|
+
* below the picker.
|
|
51
|
+
*/
|
|
52
|
+
message?: string | ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Minimum number of items before the filter input is shown.
|
|
55
|
+
* @default 8
|
|
56
|
+
*/
|
|
57
|
+
minFilterItems?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Text to display when no results are found.
|
|
60
|
+
*/
|
|
61
|
+
noResultsText?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Called when a workspace without its own `workspaceLink` is selected
|
|
64
|
+
* (e.g. picking a workspace as a value rather than navigating to it).
|
|
65
|
+
*/
|
|
66
|
+
onSelectWorkspace?: (workspace: WorkspaceSelectorItem) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Should the label (legend) be visible? If false, it will render for
|
|
69
|
+
* screen readers only.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
showLabel?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Number of whole item rows visible before the list scrolls.
|
|
75
|
+
* @default 6
|
|
76
|
+
*/
|
|
77
|
+
visibleItemCount?: number;
|
|
78
|
+
/**
|
|
79
|
+
* List of all workspaces for a user.
|
|
80
|
+
*/
|
|
81
|
+
workspaceList?: WorkspaceSelectorItem[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* WorkspacePicker UI component. A standalone search + selectable list of
|
|
85
|
+
* workspaces, for use as an input (e.g. choosing a workspace before creating
|
|
86
|
+
* a site) rather than navigation -- unlike `WorkspaceSelector`'s dropdown
|
|
87
|
+
* menu or `WorkspaceSelectorPanel`'s embedded display, both of which select
|
|
88
|
+
* a workspace by linking to it.
|
|
89
|
+
*/
|
|
90
|
+
export declare const WorkspacePicker: ({ ariaLabel, className, filterLabel, filterPlaceholder, id, inputWidth, inputWidthMin, label, message, minFilterItems, noResultsText, onSelectWorkspace, showLabel, visibleItemCount, workspaceList, ...props }: WorkspacePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { SelectOptionGroupType, SelectOptionType } from './Select/Select';
|
|
3
|
-
import '@components/Dropdown/dropdown.css';
|
|
3
|
+
import '@components/overlays/Dropdown/dropdown.css';
|
|
4
4
|
import './input-utilities.css';
|
|
5
5
|
export declare const inputCommonClasses: {
|
|
6
6
|
base: string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import type { TimelineSubtitlePosition, TimelineVariant } from './TimelineItem';
|
|
3
|
+
import './timeline.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for Timeline
|
|
6
|
+
*/
|
|
7
|
+
export interface TimelineProps extends ComponentPropsWithoutRef<'ol'> {
|
|
8
|
+
/**
|
|
9
|
+
* Children components. These should be TimelineItem components.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Where each timeline item's subtitle goes: above or below its title.
|
|
18
|
+
*/
|
|
19
|
+
subtitlePosition?: TimelineSubtitlePosition;
|
|
20
|
+
/**
|
|
21
|
+
* Whether timeline items sit on a card or directly on the line. A timeline item can
|
|
22
|
+
* override this.
|
|
23
|
+
*/
|
|
24
|
+
variant?: TimelineVariant;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Timeline UI component
|
|
28
|
+
*/
|
|
29
|
+
export declare const Timeline: ({ children, className, subtitlePosition, variant, ...props }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { BadgeColor } from '../../badges/Badge/Badge.js';
|
|
4
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
5
|
+
import './timeline.css';
|
|
6
|
+
export type TimelineSubtitlePosition = 'above' | 'below';
|
|
7
|
+
export type TimelineVariant = 'card' | 'flat';
|
|
8
|
+
/**
|
|
9
|
+
* Prop types for TimelineItem
|
|
10
|
+
*/
|
|
11
|
+
export interface TimelineItemProps extends Omit<ComponentPropsWithoutRef<'li'>, 'title'> {
|
|
12
|
+
/**
|
|
13
|
+
* Color of the badge beside the subtitle. Only used when `badgeLabel` is set.
|
|
14
|
+
*/
|
|
15
|
+
badgeColor?: BadgeColor;
|
|
16
|
+
/**
|
|
17
|
+
* Optional leading icon for the badge. Only shown when `badgeLabel` is set.
|
|
18
|
+
*/
|
|
19
|
+
badgeIcon?: PDSIcon;
|
|
20
|
+
/**
|
|
21
|
+
* Optional badge text shown beside the subtitle, such as "You're here" or a
|
|
22
|
+
* status.
|
|
23
|
+
*/
|
|
24
|
+
badgeLabel?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Content under the title. Plain text is styled as a paragraph. Blocks
|
|
27
|
+
* inside it sit a small, fixed distance apart.
|
|
28
|
+
*/
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Additional class names
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Heading level of the title. Pick the one that fits the page's outline, or
|
|
36
|
+
* `span` to render the title without a heading.
|
|
37
|
+
*/
|
|
38
|
+
headingLevel?: HeadingLevelCommon;
|
|
39
|
+
/**
|
|
40
|
+
* Whether this is the timeline item in focus, such as the current step. Gives
|
|
41
|
+
* the dot an accent fill and ring, and sets `aria-current='step'`.
|
|
42
|
+
*/
|
|
43
|
+
isActive?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Short label hanging beside the dot, left of the line, such as a date. The
|
|
46
|
+
* list makes room for it automatically. On small screens it moves above the
|
|
47
|
+
* title.
|
|
48
|
+
*/
|
|
49
|
+
sideLabel?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Quiet line next to the title, such as a stage or a description. Its
|
|
52
|
+
* position comes from the list's `subtitlePosition`.
|
|
53
|
+
*/
|
|
54
|
+
subtitle?: ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Title of the timeline item.
|
|
57
|
+
*/
|
|
58
|
+
title: ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the timeline item sits on a card or directly on the line. Overrides
|
|
61
|
+
* the list's `variant`.
|
|
62
|
+
*/
|
|
63
|
+
variant?: TimelineVariant;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* TimelineItem UI component
|
|
67
|
+
*/
|
|
68
|
+
export declare const TimelineItem: ({ badgeColor, badgeIcon, badgeLabel, children, className, headingLevel, isActive, sideLabel, subtitle, title, variant: variantProp, ...props }: TimelineItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TimelineSubtitlePosition, TimelineVariant } from './TimelineItem';
|
|
2
|
+
export interface TimelineContextValue {
|
|
3
|
+
subtitlePosition: TimelineSubtitlePosition;
|
|
4
|
+
variant: TimelineVariant;
|
|
5
|
+
}
|
|
6
|
+
export declare const TimelineContext: import("react").Context<TimelineContextValue>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { SpacingScaleOptions, TypeScaleOptions } from '../../../libs/types/custom-types';
|
|
2
|
+
import { SpacingScaleOptions, TypeScaleOptions } from '../../../libs/types/custom-types.js';
|
|
3
3
|
import './skeleton.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for Skeleton
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { AgenticIcon } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import './thinking-state.css';
|
|
4
|
+
export type ThinkingStateSize = 'xs' | 's' | 'm';
|
|
5
|
+
export type ThinkingStateState = 'active' | 'completed' | 'stopped';
|
|
6
|
+
export interface ThinkingStateProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Additional class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Which icon to render before the label.
|
|
13
|
+
*/
|
|
14
|
+
iconName?: AgenticIcon;
|
|
15
|
+
/**
|
|
16
|
+
* What the agent is doing (for example "Thinking..."). Changes to it are
|
|
17
|
+
* announced to screen readers.
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Should the elapsed time be shown? It only renders when `time` is also set.
|
|
22
|
+
*/
|
|
23
|
+
showTimer?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Size. Sets the text size, and the icon size follows it (the icon is the
|
|
26
|
+
* same height as the text); the time is one step smaller and the gap grows
|
|
27
|
+
* with the size.
|
|
28
|
+
*/
|
|
29
|
+
size?: ThinkingStateSize;
|
|
30
|
+
/**
|
|
31
|
+
* Where the run is. `active` sweeps a shimmer across the label (a highlight
|
|
32
|
+
* moving through the text itself) and pulses the icon. `completed` shows
|
|
33
|
+
* the same text without motion. `stopped` is for a run the user cut off:
|
|
34
|
+
* no motion, and the icon and label are muted to show it did not finish.
|
|
35
|
+
*/
|
|
36
|
+
state?: ThinkingStateState;
|
|
37
|
+
/**
|
|
38
|
+
* Live elapsed time, formatted by the consumer (for example "17.1s"). Hidden
|
|
39
|
+
* from screen readers while the state is `active`, so a ticking value isn't
|
|
40
|
+
* announced. For a finished run, put the duration in `label` instead
|
|
41
|
+
* ("Thought for 17.1s") and turn `showTimer` off.
|
|
42
|
+
*/
|
|
43
|
+
time?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* ThinkingState UI component. Shows that an agent is working: an icon, what it
|
|
47
|
+
* is doing, and how long it has been at it.
|
|
48
|
+
*/
|
|
49
|
+
export declare const ThinkingState: ({ className, iconName, label, showTimer, size, state, time, ...props }: ThinkingStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { type PDSIllustrationName } from './generated-illustration-data';
|
|
3
|
+
import './illustration.css';
|
|
4
|
+
export type PDSIllustration = PDSIllustrationName;
|
|
5
|
+
/**
|
|
6
|
+
* Prop types for Illustration
|
|
7
|
+
*/
|
|
8
|
+
export interface IllustrationProps extends ComponentPropsWithoutRef<'svg'> {
|
|
9
|
+
/**
|
|
10
|
+
* Accessible name for the illustration. Defaults to '' (decorative,
|
|
11
|
+
* hidden from assistive tech). When provided, renders an SVG <title>
|
|
12
|
+
* and exposes the illustration as role="img" with that accessible name.
|
|
13
|
+
*/
|
|
14
|
+
alt?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Additional class names
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional height (CSS value). If not provided, the illustration is
|
|
21
|
+
* sized by its intrinsic viewBox, same as Picture.
|
|
22
|
+
*/
|
|
23
|
+
height?: string | number;
|
|
24
|
+
/**
|
|
25
|
+
* Which illustration to render.
|
|
26
|
+
*/
|
|
27
|
+
name: PDSIllustration;
|
|
28
|
+
/**
|
|
29
|
+
* Optional width (CSS value). If not provided, the illustration is
|
|
30
|
+
* sized by its intrinsic viewBox, same as Picture.
|
|
31
|
+
*/
|
|
32
|
+
width?: string | number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Illustration UI component
|
|
36
|
+
*/
|
|
37
|
+
export declare const Illustration: ({ alt, className, height, name, width, ...props }: IllustrationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated illustration data - DO NOT EDIT MANUALLY
|
|
3
|
+
*
|
|
4
|
+
* Generated by: npm run generate:illustration-data
|
|
5
|
+
* Source: illustration-registry.ts + illustrations/*.svg
|
|
6
|
+
* Generated: 2026-11-17T21:44:03.877Z
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
export interface IllustrationData {
|
|
10
|
+
height: number;
|
|
11
|
+
render: () => React.ReactNode;
|
|
12
|
+
width: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const illustrationData: Record<string, IllustrationData>;
|
|
15
|
+
export declare const illustrationList: readonly ["createEnvLive", "createEnvMultidev", "createEnvTest", "underConstruction"];
|
|
16
|
+
export type PDSIllustrationName = (typeof illustrationList)[number];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Illustration Registry - Source of truth for PDS illustration mappings.
|
|
3
|
+
*
|
|
4
|
+
* Maps PDS camelCase illustration names to their raw SVG source file.
|
|
5
|
+
*
|
|
6
|
+
* To add an illustration:
|
|
7
|
+
* 1. Export the polished SVG from Figma into illustrations/<kebab-case-name>.svg
|
|
8
|
+
* 2. Run: npm run generate:illustration
|
|
9
|
+
* (prompts for a PDS name — suggests one from the filename — adds the
|
|
10
|
+
* entry below, and runs generate:illustration-data for you)
|
|
11
|
+
* 3. Commit the SVG, this file, and generated-illustration-data.tsx
|
|
12
|
+
*
|
|
13
|
+
* To add an entry manually instead: add it below, then run
|
|
14
|
+
* npm run generate:illustration-data yourself.
|
|
15
|
+
*/
|
|
16
|
+
export interface IllustrationRegistryEntry {
|
|
17
|
+
file: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const illustrationRegistry: Record<string, IllustrationRegistryEntry>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { WorkspaceSelectorItem } from '../WorkspaceSelector/WorkspaceSelector.js';
|
|
3
|
+
import '@components/overlays/Dropdown/dropdown.css';
|
|
4
|
+
import './ba-switcher.css';
|
|
5
|
+
export type BASwitcherBusinessAccount = {
|
|
6
|
+
/**
|
|
7
|
+
* Id of the business account.
|
|
8
|
+
*/
|
|
9
|
+
businessAccountId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the business account.
|
|
12
|
+
*/
|
|
13
|
+
displayName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Image src for the business account.
|
|
16
|
+
*/
|
|
17
|
+
imageSrc?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Is this the currently selected business account?
|
|
20
|
+
*/
|
|
21
|
+
isActive?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Link to the business account. A link element via the router of your
|
|
24
|
+
* choice.
|
|
25
|
+
*/
|
|
26
|
+
linkContent?: ReactElement;
|
|
27
|
+
/**
|
|
28
|
+
* Workspaces in this business account. The menu lists the workspaces of the
|
|
29
|
+
* active business account.
|
|
30
|
+
*/
|
|
31
|
+
workspaces?: BASwitcherWorkspace[];
|
|
32
|
+
};
|
|
33
|
+
export type BASwitcherWorkspace = WorkspaceSelectorItem;
|
|
34
|
+
/**
|
|
35
|
+
* Prop types for BASwitcher
|
|
36
|
+
*/
|
|
37
|
+
export interface BASwitcherProps extends ComponentPropsWithoutRef<'div'> {
|
|
38
|
+
/**
|
|
39
|
+
* Aria label for the switcher menu.
|
|
40
|
+
*/
|
|
41
|
+
ariaLabel?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Label for the row that returns from the business account list to the main
|
|
44
|
+
* menu in the mobile panel.
|
|
45
|
+
*/
|
|
46
|
+
backLabel?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Every business account the user can access, each with its own
|
|
49
|
+
* `workspaces`. Shown in the order passed. The switcher renders nothing when
|
|
50
|
+
* this is empty. Pass the same data on every page.
|
|
51
|
+
*/
|
|
52
|
+
businessAccounts?: BASwitcherBusinessAccount[];
|
|
53
|
+
/**
|
|
54
|
+
* Heading for the business account list.
|
|
55
|
+
*/
|
|
56
|
+
businessAccountsHeading?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Additional class names.
|
|
59
|
+
*/
|
|
60
|
+
className?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Link to create a new business account. A link element using the router of
|
|
63
|
+
* your choice.
|
|
64
|
+
*/
|
|
65
|
+
createBusinessAccountLinkContent?: ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Link to create a new workspace in the active business account. A link
|
|
68
|
+
* element using the router of your choice.
|
|
69
|
+
*/
|
|
70
|
+
createWorkspaceLinkContent?: ReactNode;
|
|
71
|
+
/**
|
|
72
|
+
* Label for the filter input.
|
|
73
|
+
*/
|
|
74
|
+
filterLabel?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Placeholder text for the filter input.
|
|
77
|
+
*/
|
|
78
|
+
filterPlaceholder?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Swaps the dropdown for an inline panel at the mobile breakpoint. Set to
|
|
81
|
+
* `false` to keep the dropdown at every width.
|
|
82
|
+
*/
|
|
83
|
+
isMobilePanel?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Minimum number of workspaces to show the filter input.
|
|
86
|
+
*/
|
|
87
|
+
minFilterItems?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Text to display when the filter finds no workspaces.
|
|
90
|
+
*/
|
|
91
|
+
noResultsText?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Label for the row that opens the business account list.
|
|
94
|
+
*/
|
|
95
|
+
switchBusinessAccountLabel?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Heading for the workspaces group.
|
|
98
|
+
*/
|
|
99
|
+
workspacesHeading?: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* BASwitcher UI component
|
|
103
|
+
*/
|
|
104
|
+
export declare const BASwitcher: (props: BASwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { MenuItemType } from '../../../libs/types/custom-types';
|
|
2
|
+
import { MenuItemType } from '../../../libs/types/custom-types.js';
|
|
3
3
|
import './bookmarks-menu.css';
|
|
4
4
|
/**
|
|
5
5
|
* A single bookmark row, shared by `BookmarksMenu` and `BookmarksPanel`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types.js';
|
|
3
3
|
import './button-nav.css';
|
|
4
4
|
export type ButtonNavItem = Omit<NavigationItem, 'links'>;
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
|
-
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
3
|
-
import '@components/Dropdown/dropdown.css';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types.js';
|
|
3
|
+
import '@components/overlays/Dropdown/dropdown.css';
|
|
4
4
|
import './dropdown-menu.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for DropdownMenu
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ContainerWidth } from '../../../libs/types/custom-types';
|
|
3
|
-
import { GapScale } from '../../../libs/types/layout-types';
|
|
2
|
+
import { ContainerWidth } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { GapScale } from '../../../libs/types/layout-types.js';
|
|
4
4
|
import './navbar.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for Navbar
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { MenuButton } from '
|
|
2
|
+
import { MenuButton } from '../../buttons/MenuButton/MenuButton.js';
|
|
3
3
|
import './row-actions-menu.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for RowActionsMenu
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
|
-
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types.js';
|
|
3
3
|
import './side-nav.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for SideNav
|
|
@@ -38,8 +38,13 @@ export interface SideNavProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
38
38
|
* Text to display in the mobile menu trigger button when no active link is found.
|
|
39
39
|
*/
|
|
40
40
|
mobileMenuSelectTextFallback?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Color treatment for hover and active states. Use `neutral` on a white
|
|
43
|
+
* background; `default` is tuned for a gray background.
|
|
44
|
+
*/
|
|
45
|
+
variant?: 'default' | 'neutral';
|
|
41
46
|
}
|
|
42
47
|
/**
|
|
43
48
|
* SideNav UI component
|
|
44
49
|
*/
|
|
45
|
-
export declare const SideNav: ({ ariaLabel, className, hasMobileDropdown, headingText, labels, menuItems, mobileMenuSelectTextFallback, ...props }: SideNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare const SideNav: ({ ariaLabel, className, hasMobileDropdown, headingText, labels, menuItems, mobileMenuSelectTextFallback, variant, ...props }: SideNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
2
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
1
|
+
import { NavigationItem } from '../../../libs/types/navigation-types.js';
|
|
2
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
3
3
|
import './side-nav-global.css';
|
|
4
4
|
export interface SideNavGlobalItemProps extends NavigationItem {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ContainerWidth } from '
|
|
2
|
+
import { ContainerWidth } from '../../../libs/types/custom-types.js';
|
|
3
3
|
import './site-footer.css';
|
|
4
4
|
type LegalLinkKey = 'privacy' | 'dataSubjectRequest' | 'cookiePolicy' | 'termsOfUse' | 'acceptableUse' | 'accessibilityStatement';
|
|
5
5
|
export interface SiteFooterProps extends ComponentPropsWithoutRef<'footer'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { NavMenuItem } from '../../../libs/types/navigation-types';
|
|
3
|
-
import '@components/Dropdown/dropdown.css';
|
|
2
|
+
import { NavMenuItem } from '../../../libs/types/navigation-types.js';
|
|
3
|
+
import '@components/overlays/Dropdown/dropdown.css';
|
|
4
4
|
import './nav-menu.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for SiteMenu
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
3
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types.js';
|
|
3
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
4
4
|
import { TabMenuDropdownProps } from './TabMenuDropdown';
|
|
5
5
|
import './tab-menu.css';
|
|
6
6
|
type DropdownSettings = Omit<TabMenuDropdownProps, 'links'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types.js';
|
|
3
3
|
import './table-of-contents.css';
|
|
4
4
|
export interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
5
5
|
/**
|
|
@@ -37,5 +37,8 @@ export interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* TableOfContents UI component
|
|
40
|
+
*
|
|
41
|
+
* At the mobile breakpoint, and at tablet widths inside a `DocsLayout`, the
|
|
42
|
+
* list becomes a dropdown whose trigger shows the current section.
|
|
40
43
|
*/
|
|
41
44
|
export declare const TableOfContents: ({ appendIds, ariaLabel, className, headingLevel, headingText, ignoreClass, showHeading, sourceID, ...props }: TableOfContentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
|
-
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types.js';
|
|
3
3
|
import './tree-nav.css';
|
|
4
4
|
export type TreeNavItem = NavigationItem & {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
3
|
-
import { ThemeSwitcherProps } from '../../ThemeSwitcher/ThemeSwitcher';
|
|
2
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
3
|
+
import { ThemeSwitcherProps } from '../../inputs/ThemeSwitcher/ThemeSwitcher.js';
|
|
4
4
|
import './user-menu.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for UserMenuItem
|