@pantheon-systems/pds-toolkit-react 2.0.0-beta.13 → 2.0.0-beta.15

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.
Files changed (209) hide show
  1. package/codemods/v1-to-v2/css-token-renames.js +4 -4
  2. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.output.tsx +1 -1
  3. package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.output.tsx +7 -2
  4. package/codemods/v1-to-v2/transforms/component-renames.js +2 -1
  5. package/codemods/v1-to-v2/transforms/icon-name-updates.js +1 -0
  6. package/codemods/v1-to-v2/transforms/prop-renames.js +1 -0
  7. package/codemods/v1-to-v2/transforms/prop-value-standardization.js +2 -1
  8. package/codemods/v1-to-v2/transforms/removed-prop-values.js +2 -1
  9. package/dist/components/Callout/Callout.d.ts +1 -1
  10. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  11. package/dist/components/Popover/Popover.d.ts +1 -1
  12. package/dist/components/RowActionsMenu/RowActionsMenu.d.ts +1 -1
  13. package/dist/components/SiteFooter/SiteFooter.d.ts +1 -1
  14. package/dist/components/SiteSearch/SiteSearch.d.ts +1 -1
  15. package/dist/components/StatPanel/StatPanel.d.ts +12 -3
  16. package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
  17. package/dist/components/Table/Table.d.ts +1 -1
  18. package/dist/components/TableOfContents/TableOfContents.d.ts +1 -1
  19. package/dist/components/Tabs/Tabs.d.ts +1 -1
  20. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +1 -1
  21. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  22. package/dist/components/UtilityBar/UtilityBar.d.ts +1 -1
  23. package/dist/components/badges/Badge/Badge.d.ts +7 -2
  24. package/dist/components/badges/StatusBadge/StatusBadge.d.ts +1 -1
  25. package/dist/components/buttons/Button/Button.d.ts +4 -4
  26. package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +2 -2
  27. package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +1 -1
  28. package/dist/components/buttons/IconButton/IconButton.d.ts +2 -2
  29. package/dist/components/buttons/MenuButton/MenuButton.d.ts +4 -4
  30. package/dist/components/buttons/MenuButton/menu-button-sample-data.d.ts +1 -1
  31. package/dist/components/buttons/SSOButton/SSOButton.d.ts +1 -1
  32. package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +1 -1
  33. package/dist/components/buttons/SplitButton/SplitButton.d.ts +2 -2
  34. package/dist/components/buttons/UtilityButton/UtilityButton.d.ts +1 -1
  35. package/dist/components/cards/ActionCard/ActionCard.d.ts +2 -2
  36. package/dist/components/cards/Card/Card.d.ts +1 -1
  37. package/dist/components/cards/CardSelect/CardSelect.d.ts +1 -1
  38. package/dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +2 -2
  39. package/dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +2 -2
  40. package/dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +2 -2
  41. package/dist/components/icons/Icon/Icon.d.ts +1 -1
  42. package/dist/components/icons/Icon/generated-icon-data.d.ts +9 -2
  43. package/dist/components/identity/AgentAvatar/AgentAvatar.d.ts +44 -0
  44. package/dist/components/identity/Avatar/Avatar.d.ts +9 -1
  45. package/dist/components/identity/AvatarLabel/AvatarLabel.d.ts +32 -5
  46. package/dist/components/identity/IdentityBlock/IdentityBlock.d.ts +18 -4
  47. package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -1
  48. package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +1 -1
  49. package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  50. package/dist/components/inputs/Combobox/Combobox.d.ts +1 -1
  51. package/dist/components/inputs/Datepicker/Datepicker.d.ts +1 -1
  52. package/dist/components/inputs/FileUpload/FileUpload.d.ts +1 -1
  53. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -1
  54. package/dist/components/inputs/Select/Select.d.ts +2 -2
  55. package/dist/components/inputs/TagsInput/TagsInput.d.ts +1 -1
  56. package/dist/components/inputs/TextInput/TextInput.d.ts +1 -1
  57. package/dist/components/inputs/Textarea/Textarea.d.ts +1 -1
  58. package/dist/components/inputs/Timepicker/Timepicker.d.ts +1 -1
  59. package/dist/components/inputs/WorkspacePicker/WorkspacePicker.d.ts +1 -1
  60. package/dist/components/loading-indicators/Skeleton/Skeleton.d.ts +1 -1
  61. package/dist/components/loading-indicators/ThinkingState/ThinkingState.d.ts +49 -0
  62. package/dist/components/media/Illustration/generated-illustration-data.d.ts +1 -1
  63. package/dist/components/navigation/BASwitcher/BASwitcher.d.ts +104 -0
  64. package/dist/components/navigation/BookmarksMenu/BookmarksMenu.d.ts +1 -1
  65. package/dist/components/navigation/ButtonNav/ButtonNav.d.ts +1 -1
  66. package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -1
  67. package/dist/components/navigation/Navbar/Navbar.d.ts +2 -2
  68. package/dist/components/navigation/SideNav/SideNav.d.ts +1 -1
  69. package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +2 -2
  70. package/dist/components/navigation/SiteMenu/SiteMenu.d.ts +1 -1
  71. package/dist/components/navigation/SiteMenu/SiteMenuDropdown.d.ts +1 -1
  72. package/dist/components/navigation/TabMenu/TabMenu.d.ts +2 -2
  73. package/dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +1 -1
  74. package/dist/components/navigation/TreeNav/TreeNav.d.ts +1 -1
  75. package/dist/components/navigation/UserMenu/UserMenu.d.ts +2 -2
  76. package/dist/components/navigation/navigation-utilities.d.ts +2 -2
  77. package/dist/components/notifications/Banner/Banner.d.ts +2 -2
  78. package/dist/components/notifications/InlineMessage/InlineMessage.d.ts +1 -1
  79. package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +3 -3
  80. package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.d.ts +1 -1
  81. package/dist/components/pagination/Pagination/Pagination.d.ts +1 -1
  82. package/dist/components/pagination/PaginationChapter/PaginationChapter.d.ts +1 -1
  83. package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +1 -1
  84. package/dist/components/panels/BASelectorPanel/BASelectorPanel.d.ts +39 -0
  85. package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +1 -1
  86. package/dist/components/panels/FeaturePanel/FeaturePanel.d.ts +3 -3
  87. package/dist/components/panels/Panel/Panel.d.ts +1 -1
  88. package/dist/components/panels/PanelList/PanelRow.d.ts +1 -1
  89. package/dist/components/panels/WidgetPanel/WidgetPanel.d.ts +1 -1
  90. package/dist/components/panels/WorkspaceSelectorPanel/WorkspaceSelectorPanel.d.ts +1 -1
  91. package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +1 -1
  92. package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +1 -1
  93. package/dist/components/steppers/VerticalStepper/VerticalStep.d.ts +1 -1
  94. package/dist/css/component-css/pds-agent-avatar.css +1 -0
  95. package/dist/css/component-css/pds-avatar-label.css +1 -1
  96. package/dist/css/component-css/pds-avatar.css +1 -1
  97. package/dist/css/component-css/pds-ba-selector-panel.css +1 -0
  98. package/dist/css/component-css/pds-ba-switcher.css +1 -0
  99. package/dist/css/component-css/pds-badge.css +1 -1
  100. package/dist/css/component-css/pds-banner.css +1 -1
  101. package/dist/css/component-css/pds-bookmarks-menu.css +1 -1
  102. package/dist/css/component-css/pds-bookmarks-panel.css +1 -1
  103. package/dist/css/component-css/pds-bottom-sheet.css +1 -1
  104. package/dist/css/component-css/pds-branch-diff.css +1 -1
  105. package/dist/css/component-css/pds-bulk-action-bar.css +1 -1
  106. package/dist/css/component-css/pds-button-link.css +1 -1
  107. package/dist/css/component-css/pds-button.css +5 -5
  108. package/dist/css/component-css/pds-callout.css +1 -1
  109. package/dist/css/component-css/pds-card-select.css +1 -2
  110. package/dist/css/component-css/pds-checkbox.css +1 -1
  111. package/dist/css/component-css/pds-combobox-multiselect.css +1 -3
  112. package/dist/css/component-css/pds-compact-empty-state.css +1 -1
  113. package/dist/css/component-css/pds-datepicker.css +1 -1
  114. package/dist/css/component-css/pds-drawer.css +1 -1
  115. package/dist/css/component-css/pds-dropdown-menu.css +1 -2
  116. package/dist/css/component-css/pds-dropdown.css +1 -3
  117. package/dist/css/component-css/pds-expansion-panel.css +1 -2
  118. package/dist/css/component-css/pds-feature-panel.css +1 -15
  119. package/dist/css/component-css/pds-file-diff.css +1 -1
  120. package/dist/css/component-css/pds-filter-button.css +1 -1
  121. package/dist/css/component-css/pds-icon-button.css +2 -4
  122. package/dist/css/component-css/pds-identity-block.css +1 -1
  123. package/dist/css/component-css/pds-index.css +19 -138
  124. package/dist/css/component-css/pds-inline-message.css +1 -1
  125. package/dist/css/component-css/pds-input-utilities.css +1 -1
  126. package/dist/css/component-css/pds-menu-button.css +1 -11
  127. package/dist/css/component-css/pds-modal.css +1 -1
  128. package/dist/css/component-css/pds-nav-menu.css +1 -1
  129. package/dist/css/component-css/pds-navbar.css +1 -4
  130. package/dist/css/component-css/pds-pagination-chapter.css +1 -3
  131. package/dist/css/component-css/pds-panel-list.css +1 -1
  132. package/dist/css/component-css/pds-panel.css +1 -2
  133. package/dist/css/component-css/pds-pantheon-logo.css +1 -1
  134. package/dist/css/component-css/pds-pie-chart.css +1 -1
  135. package/dist/css/component-css/pds-popover.css +1 -1
  136. package/dist/css/component-css/pds-proportion-bar.css +1 -1
  137. package/dist/css/component-css/pds-radio-group.css +1 -1
  138. package/dist/css/component-css/pds-row-actions-menu.css +1 -2
  139. package/dist/css/component-css/pds-section-message.css +5 -1
  140. package/dist/css/component-css/pds-segmented-button.css +1 -2
  141. package/dist/css/component-css/pds-select-button.css +1 -1
  142. package/dist/css/component-css/pds-side-nav-global.css +1 -1
  143. package/dist/css/component-css/pds-side-nav.css +1 -3
  144. package/dist/css/component-css/pds-site-footer.css +1 -1
  145. package/dist/css/component-css/pds-site-search.css +1 -1
  146. package/dist/css/component-css/pds-sortable-list.css +1 -8
  147. package/dist/css/component-css/pds-spinner.css +1 -1
  148. package/dist/css/component-css/pds-split-button.css +1 -1
  149. package/dist/css/component-css/pds-sso-button.css +1 -1
  150. package/dist/css/component-css/pds-stat-panel.css +1 -1
  151. package/dist/css/component-css/pds-status-badge.css +1 -1
  152. package/dist/css/component-css/pds-status-checker.css +1 -1
  153. package/dist/css/component-css/pds-status-scrim.css +1 -1
  154. package/dist/css/component-css/pds-stepper.css +2 -4
  155. package/dist/css/component-css/pds-switch.css +2 -12
  156. package/dist/css/component-css/pds-tab-menu.css +1 -2
  157. package/dist/css/component-css/pds-table-of-contents.css +1 -1
  158. package/dist/css/component-css/pds-table.css +1 -7
  159. package/dist/css/component-css/pds-tabs.css +1 -1
  160. package/dist/css/component-css/pds-tag.css +1 -1
  161. package/dist/css/component-css/pds-tags-input.css +2 -1
  162. package/dist/css/component-css/pds-tally.css +1 -1
  163. package/dist/css/component-css/pds-thinking-state.css +1 -0
  164. package/dist/css/component-css/pds-toaster.css +1 -1
  165. package/dist/css/component-css/pds-tooltip.css +1 -1
  166. package/dist/css/component-css/pds-user-menu-story-only.css +1 -1
  167. package/dist/css/component-css/pds-user-menu.css +1 -32
  168. package/dist/css/component-css/pds-utility-button.css +1 -3
  169. package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
  170. package/dist/css/component-css/pds-vertical-stepper.css +1 -1
  171. package/dist/css/component-css/pds-workspace-picker.css +1 -1
  172. package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
  173. package/dist/css/component-css/pds-workspace-selector.css +1 -23
  174. package/dist/css/layout-css/pds-app-layout.css +1 -3
  175. package/dist/css/layout-css/pds-docs-layout.css +1 -1
  176. package/dist/css/layout-css/pds-index.css +1 -3
  177. package/dist/css/layout-css/pds-sidebar-layout.css +1 -13
  178. package/dist/css/layout-css/pds-stat-panel-group.css +1 -1
  179. package/dist/css/layout-css/pds-stepper-layout.css +1 -1
  180. package/dist/css/pds-components.css +19 -138
  181. package/dist/css/pds-core.css +2 -2
  182. package/dist/css/pds-layouts.css +1 -3
  183. package/dist/index.css +1 -1
  184. package/dist/index.d.ts +4 -0
  185. package/dist/index.js +1888 -1435
  186. package/dist/index.js.map +1 -1
  187. package/dist/index.source.d.ts +4 -0
  188. package/dist/layouts/AppLayout/AppLayout.d.ts +1 -1
  189. package/dist/layouts/DocsLayout/DocsLayout.d.ts +9 -1
  190. package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +1 -1
  191. package/dist/layouts/StepperLayout/StepperLayout.d.ts +4 -2
  192. package/dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +1 -1
  193. package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +1 -1
  194. package/dist/libs/components/SelectorPanel/SelectorPanel.d.ts +52 -0
  195. package/dist/libs/components/SiteOptionDisplay/SiteOptionDisplay.d.ts +1 -1
  196. package/dist/libs/components/StatusDot/StatusDot.d.ts +1 -1
  197. package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +2 -2
  198. package/dist/libs/components/utility-components.d.ts +1 -1
  199. package/dist/libs/components/utils.d.ts +1 -0
  200. package/dist/libs/types/custom-types.d.ts +2 -1
  201. package/dist/libs/types/layout-types.d.ts +1 -1
  202. package/dist/svg/arrowRightArrowLeft.svg +3 -0
  203. package/dist/utilities/Container/Container.d.ts +1 -1
  204. package/dist/utilities/FlexContainer/FlexContainer.d.ts +1 -1
  205. package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +1 -1
  206. package/dist/utilities/auto-grid/AutoGrid.d.ts +1 -1
  207. package/dist/utilities/grid/Grid.d.ts +1 -1
  208. package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +7 -1
  209. package/package.json +15 -14
@@ -33,6 +33,7 @@ export * from './components/FileDiff/FileDiff';
33
33
  export * from './components/icons/Icon/Icon';
34
34
  export * from './components/icons/PaymentIcon/PaymentIcon';
35
35
  export * from './components/icons/PlatformIcon/PlatformIcon';
36
+ export * from './components/identity/AgentAvatar/AgentAvatar';
36
37
  export * from './components/identity/Avatar/Avatar';
37
38
  export * from './components/identity/AvatarLabel/AvatarLabel';
38
39
  export * from './components/identity/IdentityBlock/IdentityBlock';
@@ -57,9 +58,11 @@ export * from './components/links/LinkNewWindow/LinkNewWindow';
57
58
  export * from './components/links/Skiplink/Skiplink';
58
59
  export * from './components/loading-indicators/Skeleton/Skeleton';
59
60
  export * from './components/loading-indicators/Spinner/Spinner';
61
+ export * from './components/loading-indicators/ThinkingState/ThinkingState';
60
62
  export * from './components/media/Illustration/Illustration';
61
63
  export * from './components/media/Picture/Picture';
62
64
  export * from './components/media/VideoEmbed/VideoEmbed';
65
+ export * from './components/navigation/BASwitcher/BASwitcher';
63
66
  export * from './components/navigation/BookmarksMenu/BookmarksMenu';
64
67
  export * from './components/navigation/Breadcrumb/Breadcrumb';
65
68
  export * from './components/navigation/ButtonNav/ButtonNav';
@@ -87,6 +90,7 @@ export * from './components/overlays/Modal/Modal';
87
90
  export * from './components/pagination/Pagination/Pagination';
88
91
  export * from './components/pagination/PaginationChapter/PaginationChapter';
89
92
  export * from './components/pagination/PaginationCompact/PaginationCompact';
93
+ export * from './components/panels/BASelectorPanel/BASelectorPanel';
90
94
  export * from './components/panels/BookmarksPanel/BookmarksPanel';
91
95
  export * from './components/panels/ExpansionPanel/ExpansionPanel';
92
96
  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
@@ -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,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 { SiteStatus, SiteType } from '../../types/custom-types';
2
+ import { SiteStatus, SiteType } from '../../types/custom-types.js';
3
3
  import './site-option-display.css';
4
4
  /**
5
5
  * Site option item type.
@@ -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,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { HeadingLevel } from '../types/custom-types';
2
+ import { HeadingLevel } from '../types/custom-types.js';
3
3
  interface HxProps {
4
4
  baseClass?: string;
5
5
  children?: ReactNode;
@@ -1,4 +1,5 @@
1
1
  export function getDescendants(node: any, collect: any): any;
2
+ export function titleWhenTruncated(e: any): void;
2
3
  export function initiateSlots(children: any): {
3
4
  __unslotted: any[];
4
5
  };
@@ -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 { ReactNode } from 'react';
2
- import { ThemeContextProviderProps } from '../context-providers/ThemeContext/ThemeContext';
2
+ import { ThemeContextProviderProps } from '../context-providers/ThemeContext/ThemeContext.js';
3
3
  /**
4
4
  * Prop types for GlobalWrapper
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { GapScale } from '../../libs/types/layout-types';
2
+ import { GapScale } from '../../libs/types/layout-types.js';
3
3
  import './auto-grid.css';
4
4
  /**
5
5
  * Prop types for AutoGrid
@@ -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.13",
4
+ "version": "2.0.0-beta.15",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -103,7 +103,7 @@
103
103
  "test:codemods": "jest --testPathPatterns=codemods/",
104
104
  "test:version-switcher": "bash scripts/test-version-switcher.sh",
105
105
  "pack:local": "bash scripts/pack-local.sh",
106
- "prepare": "husky install",
106
+ "prepare": "husky",
107
107
  "chromatic": "npx chromatic --project-token=chpt_8f57e9785118676"
108
108
  },
109
109
  "jest": {
@@ -113,21 +113,23 @@
113
113
  "testEnvironment": "node"
114
114
  },
115
115
  "devDependencies": {
116
- "@arethetypeswrong/cli": "^0.15.3",
116
+ "@arethetypeswrong/cli": "^0.18.5",
117
117
  "@axe-core/playwright": "^4.11.3",
118
118
  "@babel/generator": "^8.0.6",
119
119
  "@babel/parser": "^7.29.9",
120
- "@babel/preset-env": "^7.29.5",
120
+ "@babel/preset-env": "^8.0.7",
121
121
  "@babel/preset-react": "^7.18.6",
122
122
  "@babel/preset-typescript": "^7.28.5",
123
123
  "@babel/traverse": "^8.0.6",
124
124
  "@babel/types": "^8.0.6",
125
125
  "@csstools/postcss-design-tokens": "^2.0.4",
126
126
  "@csstools/postcss-global-data": "^1.0.3",
127
+ "@eslint/compat": "^2.1.1",
128
+ "@eslint/js": "^10.0.1",
127
129
  "@fortawesome/free-brands-svg-icons": "7.2.0",
128
130
  "@fortawesome/pro-regular-svg-icons": "7.2.0",
129
131
  "@fortawesome/pro-solid-svg-icons": "7.2.0",
130
- "@playwright/test": "^1.60.0",
132
+ "@playwright/test": "^1.64.1",
131
133
  "@storybook/addon-a11y": "^10.4.0",
132
134
  "@storybook/addon-docs": "^10.4.0",
133
135
  "@storybook/addon-links": "^10.4.0",
@@ -146,8 +148,8 @@
146
148
  "axe-html-reporter": "^2.2.3",
147
149
  "chromatic": "^13.3.4",
148
150
  "concurrently": "^8.0.1",
149
- "cssnano": "^6.0.1",
150
- "eslint": "^9.39.4",
151
+ "cssnano": "^9.9.0",
152
+ "eslint": "^10.13.0",
151
153
  "eslint-config-prettier": "^9.1.0",
152
154
  "eslint-import-resolver-typescript": "^4.4.4",
153
155
  "eslint-plugin-import": "^2.32.0",
@@ -155,24 +157,24 @@
155
157
  "eslint-plugin-react": "^7.32.2",
156
158
  "eslint-plugin-react-google-translate": "^1.1.0",
157
159
  "eslint-plugin-react-hooks": "^7.1.1",
158
- "eslint-plugin-simple-import-sort": "^12.1.1",
160
+ "eslint-plugin-simple-import-sort": "^14.0.0",
159
161
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
160
162
  "eslint-plugin-storybook": "^10.4.0",
161
163
  "eslint-plugin-typescript-sort-keys": "^3.3.0",
162
164
  "fast-glob": "^3.3.2",
163
- "husky": "^8.0.3",
165
+ "husky": "^9.1.7",
164
166
  "jest": "^30.4.2",
165
167
  "jscodeshift": "^17.3.0",
166
168
  "lint-staged": "^13.2.3",
167
169
  "pino-pretty": "^13.1.3",
168
- "plop": "^3.1.2",
170
+ "plop": "^4.0.5",
169
171
  "postcss": "^8.5.14",
170
- "postcss-cli": "^10.1.0",
172
+ "postcss-cli": "^12.0.0",
171
173
  "postcss-custom-media": "^9.1.3",
172
174
  "postcss-import": "^15.1.0",
173
175
  "postcss-insert": "^1.0.0",
174
176
  "postcss-loader": "^8.2.1",
175
- "postcss-nested": "^6.0.1",
177
+ "postcss-nested": "^9.0.0",
176
178
  "prettier": "^3.8.3",
177
179
  "prettier-plugin-css-order": "^2.2.0",
178
180
  "react": "^18.2.0",
@@ -192,8 +194,7 @@
192
194
  "@dnd-kit/core": "^6.3.1",
193
195
  "@dnd-kit/sortable": "^10.0.0",
194
196
  "@dnd-kit/utilities": "^3.2.2",
195
- "@floating-ui/react": "^0.24.3",
196
- "@floating-ui/react-dom": "~1.3.0",
197
+ "@floating-ui/react": "^0.27.20",
197
198
  "@internationalized/date": "^3.12.2",
198
199
  "@pantheon-systems/pds-design-tokens": "^2.0.0-beta.1",
199
200
  "@reactuses/core": "^5.0.15",