@pantheon-systems/pds-toolkit-react 2.0.0-beta.14 → 2.0.0-beta.16
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/Callout/Callout.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/RowActionsMenu/RowActionsMenu.d.ts +1 -1
- package/dist/components/SiteFooter/SiteFooter.d.ts +1 -1
- package/dist/components/SiteSearch/SiteSearch.d.ts +1 -1
- package/dist/components/StatPanel/StatPanel.d.ts +12 -3
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/TableOfContents/TableOfContents.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/UtilityBar/UtilityBar.d.ts +1 -1
- package/dist/components/badges/Badge/Badge.d.ts +1 -1
- package/dist/components/badges/StatusBadge/StatusBadge.d.ts +1 -1
- package/dist/components/buttons/Button/Button.d.ts +4 -4
- package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +2 -2
- package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +1 -1
- package/dist/components/buttons/IconButton/IconButton.d.ts +2 -2
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +4 -4
- package/dist/components/buttons/MenuButton/menu-button-sample-data.d.ts +1 -1
- package/dist/components/buttons/SSOButton/SSOButton.d.ts +1 -1
- package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +2 -2
- package/dist/components/buttons/UtilityButton/UtilityButton.d.ts +1 -1
- 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/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 +2 -2
- package/dist/components/icons/Icon/Icon.d.ts +1 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +9 -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 +1 -1
- 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/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/inputs/Timepicker/Timepicker.d.ts +1 -1
- package/dist/components/inputs/WorkspacePicker/WorkspacePicker.d.ts +1 -1
- 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/generated-illustration-data.d.ts +1 -1
- 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 +1 -1
- package/dist/components/navigation/Navbar/Navbar.d.ts +2 -2
- package/dist/components/navigation/SideNav/SideNav.d.ts +1 -1
- package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +2 -2
- package/dist/components/navigation/SiteMenu/SiteMenu.d.ts +1 -1
- 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/navigation/TreeNav/TreeNav.d.ts +1 -1
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +2 -2
- package/dist/components/navigation/navigation-utilities.d.ts +2 -2
- package/dist/components/notifications/Banner/Banner.d.ts +2 -2
- package/dist/components/notifications/InlineMessage/InlineMessage.d.ts +1 -1
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +3 -3
- package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.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 +1 -1
- package/dist/components/panels/FeaturePanel/FeaturePanel.d.ts +3 -3
- package/dist/components/panels/Panel/Panel.d.ts +1 -1
- package/dist/components/panels/PanelList/PanelRow.d.ts +1 -1
- 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/steppers/VerticalStepper/VerticalStep.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-icon-button.css +2 -4
- package/dist/css/component-css/pds-identity-block.css +1 -1
- package/dist/css/component-css/pds-index.css +19 -138
- 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 +1 -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-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-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 -1
- 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/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 +19 -138
- 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 +6 -0
- package/dist/index.js +2905 -2084
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +6 -0
- 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/ThreeItemLayout/ThreeItemLayout.d.ts +1 -1
- package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +1 -1
- 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 +2 -2
- 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/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/useDropdown/useDropdown.d.ts +7 -1
- package/package.json +17 -15
package/dist/index.source.d.ts
CHANGED
|
@@ -18,10 +18,12 @@ export * from './components/Callout/Callout';
|
|
|
18
18
|
export * from './components/cards/ActionCard/ActionCard';
|
|
19
19
|
export * from './components/cards/Card/Card';
|
|
20
20
|
export * from './components/cards/CardSelect/CardSelect';
|
|
21
|
+
export * from './components/charts/AreaChart/AreaChart';
|
|
21
22
|
export * from './components/charts/BarChart/BarChart';
|
|
22
23
|
export * from './components/charts/LineChart/LineChart';
|
|
23
24
|
export * from './components/charts/PieChart/PieChart';
|
|
24
25
|
export * from './components/charts/ProportionBar/ProportionBar';
|
|
26
|
+
export * from './components/charts/ScatterPlot/ScatterPlot';
|
|
25
27
|
export * from './components/charts/shared/types';
|
|
26
28
|
export * from './components/CodeBlock/CodeBlock';
|
|
27
29
|
export * from './components/ComparisonList/ComparisonList';
|
|
@@ -33,6 +35,7 @@ export * from './components/FileDiff/FileDiff';
|
|
|
33
35
|
export * from './components/icons/Icon/Icon';
|
|
34
36
|
export * from './components/icons/PaymentIcon/PaymentIcon';
|
|
35
37
|
export * from './components/icons/PlatformIcon/PlatformIcon';
|
|
38
|
+
export * from './components/identity/AgentAvatar/AgentAvatar';
|
|
36
39
|
export * from './components/identity/Avatar/Avatar';
|
|
37
40
|
export * from './components/identity/AvatarLabel/AvatarLabel';
|
|
38
41
|
export * from './components/identity/IdentityBlock/IdentityBlock';
|
|
@@ -57,9 +60,11 @@ export * from './components/links/LinkNewWindow/LinkNewWindow';
|
|
|
57
60
|
export * from './components/links/Skiplink/Skiplink';
|
|
58
61
|
export * from './components/loading-indicators/Skeleton/Skeleton';
|
|
59
62
|
export * from './components/loading-indicators/Spinner/Spinner';
|
|
63
|
+
export * from './components/loading-indicators/ThinkingState/ThinkingState';
|
|
60
64
|
export * from './components/media/Illustration/Illustration';
|
|
61
65
|
export * from './components/media/Picture/Picture';
|
|
62
66
|
export * from './components/media/VideoEmbed/VideoEmbed';
|
|
67
|
+
export * from './components/navigation/BASwitcher/BASwitcher';
|
|
63
68
|
export * from './components/navigation/BookmarksMenu/BookmarksMenu';
|
|
64
69
|
export * from './components/navigation/Breadcrumb/Breadcrumb';
|
|
65
70
|
export * from './components/navigation/ButtonNav/ButtonNav';
|
|
@@ -87,6 +92,7 @@ export * from './components/overlays/Modal/Modal';
|
|
|
87
92
|
export * from './components/pagination/Pagination/Pagination';
|
|
88
93
|
export * from './components/pagination/PaginationChapter/PaginationChapter';
|
|
89
94
|
export * from './components/pagination/PaginationCompact/PaginationCompact';
|
|
95
|
+
export * from './components/panels/BASelectorPanel/BASelectorPanel';
|
|
90
96
|
export * from './components/panels/BookmarksPanel/BookmarksPanel';
|
|
91
97
|
export * from './components/panels/ExpansionPanel/ExpansionPanel';
|
|
92
98
|
export * from './components/panels/ExpansionPanelGroup/ExpansionPanelGroup';
|
|
@@ -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
|
|
@@ -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,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
|
|
@@ -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>
|
|
@@ -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
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantheon-systems/pds-toolkit-react",
|
|
3
3
|
"technology": "React",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.16",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -80,7 +80,8 @@
|
|
|
80
80
|
"pretest:a11y:generate": "npm run build:css",
|
|
81
81
|
"test:a11y:generate": "DISABLE_A11Y_ADDON=true npm run build && node __tests__/a11y/a11y.generate-tests.js",
|
|
82
82
|
"test:a11y": "USE_STATIC_STORYBOOK=true DISABLE_A11Y_ADDON=true playwright test --project 'a11y'",
|
|
83
|
-
"test:render": "playwright test --project
|
|
83
|
+
"test:render": "playwright test --project=render",
|
|
84
|
+
"test:interaction": "playwright test --project=interaction",
|
|
84
85
|
"test:a11y:results": "npx http-server ./__tests__/a11y/results/",
|
|
85
86
|
"eslint": "eslint",
|
|
86
87
|
"eslint:all": "eslint src --cache",
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
"test:codemods": "jest --testPathPatterns=codemods/",
|
|
104
105
|
"test:version-switcher": "bash scripts/test-version-switcher.sh",
|
|
105
106
|
"pack:local": "bash scripts/pack-local.sh",
|
|
106
|
-
"prepare": "husky
|
|
107
|
+
"prepare": "husky",
|
|
107
108
|
"chromatic": "npx chromatic --project-token=chpt_8f57e9785118676"
|
|
108
109
|
},
|
|
109
110
|
"jest": {
|
|
@@ -113,21 +114,23 @@
|
|
|
113
114
|
"testEnvironment": "node"
|
|
114
115
|
},
|
|
115
116
|
"devDependencies": {
|
|
116
|
-
"@arethetypeswrong/cli": "^0.
|
|
117
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
117
118
|
"@axe-core/playwright": "^4.11.3",
|
|
118
119
|
"@babel/generator": "^8.0.6",
|
|
119
120
|
"@babel/parser": "^7.29.9",
|
|
120
|
-
"@babel/preset-env": "^
|
|
121
|
+
"@babel/preset-env": "^8.0.7",
|
|
121
122
|
"@babel/preset-react": "^7.18.6",
|
|
122
123
|
"@babel/preset-typescript": "^7.28.5",
|
|
123
124
|
"@babel/traverse": "^8.0.6",
|
|
124
125
|
"@babel/types": "^8.0.6",
|
|
125
126
|
"@csstools/postcss-design-tokens": "^2.0.4",
|
|
126
127
|
"@csstools/postcss-global-data": "^1.0.3",
|
|
128
|
+
"@eslint/compat": "^2.1.1",
|
|
129
|
+
"@eslint/js": "^10.0.1",
|
|
127
130
|
"@fortawesome/free-brands-svg-icons": "7.2.0",
|
|
128
131
|
"@fortawesome/pro-regular-svg-icons": "7.2.0",
|
|
129
132
|
"@fortawesome/pro-solid-svg-icons": "7.2.0",
|
|
130
|
-
"@playwright/test": "^1.
|
|
133
|
+
"@playwright/test": "^1.64.1",
|
|
131
134
|
"@storybook/addon-a11y": "^10.4.0",
|
|
132
135
|
"@storybook/addon-docs": "^10.4.0",
|
|
133
136
|
"@storybook/addon-links": "^10.4.0",
|
|
@@ -146,8 +149,8 @@
|
|
|
146
149
|
"axe-html-reporter": "^2.2.3",
|
|
147
150
|
"chromatic": "^13.3.4",
|
|
148
151
|
"concurrently": "^8.0.1",
|
|
149
|
-
"cssnano": "^
|
|
150
|
-
"eslint": "^
|
|
152
|
+
"cssnano": "^9.9.0",
|
|
153
|
+
"eslint": "^10.13.0",
|
|
151
154
|
"eslint-config-prettier": "^9.1.0",
|
|
152
155
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
153
156
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -155,24 +158,24 @@
|
|
|
155
158
|
"eslint-plugin-react": "^7.32.2",
|
|
156
159
|
"eslint-plugin-react-google-translate": "^1.1.0",
|
|
157
160
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
158
|
-
"eslint-plugin-simple-import-sort": "^
|
|
161
|
+
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
159
162
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
160
163
|
"eslint-plugin-storybook": "^10.4.0",
|
|
161
164
|
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
162
165
|
"fast-glob": "^3.3.2",
|
|
163
|
-
"husky": "^
|
|
166
|
+
"husky": "^9.1.7",
|
|
164
167
|
"jest": "^30.4.2",
|
|
165
168
|
"jscodeshift": "^17.3.0",
|
|
166
169
|
"lint-staged": "^13.2.3",
|
|
167
170
|
"pino-pretty": "^13.1.3",
|
|
168
|
-
"plop": "^
|
|
171
|
+
"plop": "^4.0.5",
|
|
169
172
|
"postcss": "^8.5.14",
|
|
170
|
-
"postcss-cli": "^
|
|
173
|
+
"postcss-cli": "^12.0.0",
|
|
171
174
|
"postcss-custom-media": "^9.1.3",
|
|
172
175
|
"postcss-import": "^15.1.0",
|
|
173
176
|
"postcss-insert": "^1.0.0",
|
|
174
177
|
"postcss-loader": "^8.2.1",
|
|
175
|
-
"postcss-nested": "^
|
|
178
|
+
"postcss-nested": "^9.0.0",
|
|
176
179
|
"prettier": "^3.8.3",
|
|
177
180
|
"prettier-plugin-css-order": "^2.2.0",
|
|
178
181
|
"react": "^18.2.0",
|
|
@@ -192,8 +195,7 @@
|
|
|
192
195
|
"@dnd-kit/core": "^6.3.1",
|
|
193
196
|
"@dnd-kit/sortable": "^10.0.0",
|
|
194
197
|
"@dnd-kit/utilities": "^3.2.2",
|
|
195
|
-
"@floating-ui/react": "^0.
|
|
196
|
-
"@floating-ui/react-dom": "~1.3.0",
|
|
198
|
+
"@floating-ui/react": "^0.27.20",
|
|
197
199
|
"@internationalized/date": "^3.12.2",
|
|
198
200
|
"@pantheon-systems/pds-design-tokens": "^2.0.0-beta.1",
|
|
199
201
|
"@reactuses/core": "^5.0.15",
|