@pantheon-systems/pds-toolkit-react 2.0.0-beta.14 → 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 (208) 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 +1 -1
  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 +1882 -1430
  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/ThreeItemLayout/ThreeItemLayout.d.ts +1 -1
  192. package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +1 -1
  193. package/dist/libs/components/SelectorPanel/SelectorPanel.d.ts +52 -0
  194. package/dist/libs/components/SiteOptionDisplay/SiteOptionDisplay.d.ts +1 -1
  195. package/dist/libs/components/StatusDot/StatusDot.d.ts +1 -1
  196. package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +2 -2
  197. package/dist/libs/components/utility-components.d.ts +1 -1
  198. package/dist/libs/components/utils.d.ts +1 -0
  199. package/dist/libs/types/custom-types.d.ts +2 -1
  200. package/dist/libs/types/layout-types.d.ts +1 -1
  201. package/dist/svg/arrowRightArrowLeft.svg +3 -0
  202. package/dist/utilities/Container/Container.d.ts +1 -1
  203. package/dist/utilities/FlexContainer/FlexContainer.d.ts +1 -1
  204. package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +1 -1
  205. package/dist/utilities/auto-grid/AutoGrid.d.ts +1 -1
  206. package/dist/utilities/grid/Grid.d.ts +1 -1
  207. package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +7 -1
  208. package/package.json +15 -14
@@ -1,10 +1,17 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { AvatarProps } from '../../identity/Avatar/Avatar';
2
+ import { AgentAvatarProps } from '../AgentAvatar/AgentAvatar.js';
3
+ import { AvatarProps } from '../Avatar/Avatar.js';
3
4
  import './avatar-label.css';
4
5
  /**
5
6
  * Prop types for AvatarLabel
6
7
  */
7
8
  export interface AvatarLabelProps extends ComponentPropsWithoutRef<'div'> {
9
+ /**
10
+ * Screen reader text that says this is an agent (for example "Agent"),
11
+ * announced before the label. Only used with `isAgent`, and kept in the
12
+ * page when `hasAvatar` is `false`. Pass it translated.
13
+ */
14
+ agentLabel?: string;
8
15
  /**
9
16
  * Aria label for the whole component when used as a link via
10
17
  * `linkContent`. Only needed if the visible `label` text isn't already a
@@ -12,14 +19,34 @@ export interface AvatarLabelProps extends ComponentPropsWithoutRef<'div'> {
12
19
  */
13
20
  ariaLabel?: string;
14
21
  /**
15
- * Props to pass to the Avatar component. `size` is set automatically
16
- * based on AvatarLabel's own `size` prop and cannot be overridden here.
22
+ * Optional text after the label that says who the agent is acting for (for
23
+ * example "on behalf of alex@example.com"). Pass the whole phrase, since
24
+ * the wording and word order change by language. Shown in the secondary
25
+ * text color and truncates before the label does.
26
+ */
27
+ attribution?: ReactNode;
28
+ /**
29
+ * Props to pass to the Avatar component, or to AgentAvatar when `isAgent`
30
+ * is true. `size` is set automatically based on AvatarLabel's own `size`
31
+ * prop and cannot be overridden here.
17
32
  */
18
- avatarProps?: Omit<AvatarProps, 'ariaLabel' | 'linkContent' | 'size'>;
33
+ avatarProps?: Omit<AvatarProps, 'ariaLabel' | 'linkContent' | 'size'> | Omit<AgentAvatarProps, 'ariaLabel' | 'label' | 'linkContent' | 'size'>;
19
34
  /**
20
35
  * Additional class names
21
36
  */
22
37
  className?: string;
38
+ /**
39
+ * Show the avatar? Set to `false` to show only the label (and attribution),
40
+ * for example when the avatar is already shown on a neighboring item. For
41
+ * an agent, the avatar's `label` stays in the page as screen-reader-only
42
+ * text.
43
+ */
44
+ hasAvatar?: boolean;
45
+ /**
46
+ * Show an AgentAvatar instead of an Avatar. `avatarProps` then takes
47
+ * AgentAvatar props. Use `agentLabel` to say it is an agent to screen readers.
48
+ */
49
+ isAgent?: boolean;
23
50
  /**
24
51
  * Text label displayed next to the avatar.
25
52
  */
@@ -39,4 +66,4 @@ export interface AvatarLabelProps extends ComponentPropsWithoutRef<'div'> {
39
66
  /**
40
67
  * AvatarLabel UI component
41
68
  */
42
- export declare const AvatarLabel: ({ ariaLabel, avatarProps, className, label, linkContent, size, ...props }: AvatarLabelProps) => import("react/jsx-runtime").JSX.Element;
69
+ export declare const AvatarLabel: ({ agentLabel, ariaLabel, attribution, avatarProps, className, hasAvatar, isAgent, label, linkContent, size, ...props }: AvatarLabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,32 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { AvatarProps } from '../../identity/Avatar/Avatar';
2
+ import { AgentAvatarProps } from '../AgentAvatar/AgentAvatar.js';
3
+ import { AvatarProps } from '../Avatar/Avatar.js';
3
4
  import './identity-block.css';
4
5
  /**
5
6
  * Prop types for IdentityBlock
6
7
  */
7
8
  export interface IdentityBlockProps extends ComponentPropsWithoutRef<'div'> {
8
9
  /**
9
- * Props to pass to the Avatar component.
10
+ * Screen reader text that says this is an agent (for example "Agent"),
11
+ * announced before the text. Only used with `isAgent`, and still read when
12
+ * only the avatar is shown. Pass it translated.
10
13
  */
11
- avatarProps?: AvatarProps;
14
+ agentLabel?: string;
15
+ /**
16
+ * Props to pass to the Avatar component, or to AgentAvatar when `isAgent`
17
+ * is true. `size` is set automatically.
18
+ */
19
+ avatarProps?: AvatarProps | Omit<AgentAvatarProps, 'ariaLabel' | 'label' | 'linkContent' | 'size'>;
12
20
  /**
13
21
  * Additional class names
14
22
  */
15
23
  className?: string;
24
+ /**
25
+ * Show an AgentAvatar instead of an Avatar. `avatarProps` then takes
26
+ * AgentAvatar props. Use `agentLabel` to say it is an agent to screen
27
+ * readers.
28
+ */
29
+ isAgent?: boolean;
16
30
  /**
17
31
  * When true, only the avatar is shown (text is hidden).
18
32
  */
@@ -34,4 +48,4 @@ export interface IdentityBlockProps extends ComponentPropsWithoutRef<'div'> {
34
48
  /**
35
49
  * IdentityBlock UI component
36
50
  */
37
- export declare const IdentityBlock: ({ avatarProps, className, isSidebarCollapsed, isSingleLine, primaryText, secondaryText, ...props }: IdentityBlockProps) => import("react/jsx-runtime").JSX.Element;
51
+ export declare const IdentityBlock: ({ agentLabel, avatarProps, className, isAgent, isSidebarCollapsed, isSingleLine, primaryText, secondaryText, ...props }: IdentityBlockProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './checkbox.css';
4
4
  /**
5
5
  * Prop types for Checkbox
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import '../CheckboxGroup/checkbox-group.css';
4
4
  /**
5
5
  * Prop types for CheckboxFieldset
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './checkbox-group.css';
4
4
  export type CheckboxOption = {
5
5
  checked?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React, { ChangeEvent, ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './combobox.css';
4
4
  export type ComboboxSize = 's' | 'm';
5
5
  type LabelStrings = {
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { Locale } from 'date-fns';
3
- import { ValidationStatus } from '../../../libs/types/input-types';
3
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
4
4
  import './datepicker.css';
5
5
  /**
6
6
  * A date range, as plain native `Date` objects. Replaces `react-day-picker`'s
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './file-upload.css';
4
4
  export type FileUploadSize = 's' | 'm';
5
5
  type LabelStrings = {
@@ -1,5 +1,5 @@
1
1
  import { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './radio-group.css';
4
4
  export interface RadioOption {
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
3
- import { PDSIcon } from '../../icons/Icon/Icon';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
+ import { PDSIcon } from '../../icons/Icon/Icon.js';
4
4
  import './select.css';
5
5
  export type SelectIconType = PDSIcon | 'google' | 'microsoft';
6
6
  export type SelectSize = 's' | 'm';
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './tags-input.css';
4
4
  type LabelStrings = {
5
5
  inputInstructions: string;
@@ -1,5 +1,5 @@
1
1
  import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './text-input.css';
4
4
  type LabelStrings = {
5
5
  clearButton: string;
@@ -1,5 +1,5 @@
1
1
  import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
2
- import { ValidationStatus } from '../../../libs/types/input-types';
2
+ import { ValidationStatus } from '../../../libs/types/input-types.js';
3
3
  import './textarea.css';
4
4
  type LabelStrings = {
5
5
  clearButton: string;
@@ -1,6 +1,6 @@
1
1
  import { 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
  /**
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import type { WorkspaceSelectorItem } from '../../navigation/WorkspaceSelector/WorkspaceSelector';
2
+ import type { WorkspaceSelectorItem } from '../../navigation/WorkspaceSelector/WorkspaceSelector.js';
3
3
  import './workspace-picker.css';
4
4
  /**
5
5
  * Prop types for WorkspacePicker
@@ -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;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generated by: npm run generate:illustration-data
5
5
  * Source: illustration-registry.ts + illustrations/*.svg
6
- * Generated: 2026-10-16T22:20:40.469Z
6
+ * Generated: 2026-10-30T00:48:38.188Z
7
7
  */
8
8
  import React from 'react';
9
9
  export interface IllustrationData {
@@ -0,0 +1,104 @@
1
+ import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
2
+ import type { WorkspaceSelectorItem } from '../WorkspaceSelector/WorkspaceSelector.js';
3
+ import '@components/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,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 '@components/Dropdown/dropdown.css';
4
4
  import './dropdown-menu.css';
5
5
  /**
@@ -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, 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
@@ -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 } from 'react';
2
- import { NavMenuItem } from '../../../libs/types/navigation-types';
2
+ import { NavMenuItem } from '../../../libs/types/navigation-types.js';
3
3
  import '@components/Dropdown/dropdown.css';
4
4
  import './nav-menu.css';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { NavMenuItem } from '../../../libs/types/navigation-types';
2
+ import { NavMenuItem } from '../../../libs/types/navigation-types.js';
3
3
  /**
4
4
  * Prop types for SiteMenuDropdown
5
5
  */
@@ -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,4 +1,4 @@
1
- import { NavigationItem } from '../../../libs/types/navigation-types';
1
+ import { NavigationItem } from '../../../libs/types/navigation-types.js';
2
2
  import './tab-menu.css';
3
3
  export interface TabMenuDropdownProps {
4
4
  /**
@@ -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 '../../ThemeSwitcher/ThemeSwitcher.js';
4
4
  import './user-menu.css';
5
5
  /**
6
6
  * Prop types for UserMenuItem
@@ -1,6 +1,6 @@
1
1
  import React, { ReactElement, ReactNode } 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
  /**
5
5
  * Recursively searches through navigation items to find the first active link
6
6
  * @param items - Array of navigation items to search through
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { DataContext, StatusType } from '../../../libs/types/custom-types';
3
- import { PDSIcon } from '../../icons/Icon/Icon';
2
+ import { DataContext, StatusType } from '../../../libs/types/custom-types.js';
3
+ import { PDSIcon } from '../../icons/Icon/Icon.js';
4
4
  import './banner.css';
5
5
  type BannerVariant = Exclude<StatusType, 'success'> | 'neutral';
6
6
  export interface BannerItemType {
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { StatusType } from '../../../libs/types/custom-types';
2
+ import { StatusType } from '../../../libs/types/custom-types.js';
3
3
  import './inline-message.css';
4
4
  /**
5
5
  * The type of message to display.
@@ -1,7 +1,7 @@
1
1
  import { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
2
- import { StatusType } from '../../../libs/types/custom-types';
3
- import { Button } from '../../buttons/Button/Button';
4
- import { PDSIcon } from '../../icons/Icon/Icon';
2
+ import { StatusType } from '../../../libs/types/custom-types.js';
3
+ import { Button } from '../../buttons/Button/Button.js';
4
+ import { PDSIcon } from '../../icons/Icon/Icon.js';
5
5
  import './section-message.css';
6
6
  export type SectionMessageType = StatusType;
7
7
  type TypeLabels = Record<SectionMessageType, string>;
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PDSIcon } from '../../icons/Icon/Icon';
2
+ import { PDSIcon } from '../../icons/Icon/Icon.js';
3
3
  import './full-screen-overlay.css';
4
4
  export interface FullScreenOverlayProps extends ComponentPropsWithoutRef<'div'> {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { HeadingLevelCommon } from '../../../libs/types/custom-types';
2
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types.js';
3
3
  import './pagination.css';
4
4
  export type PaginationSize = 's' | 'm';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { HeadingLevelCommon } from '../../../libs/types/custom-types';
2
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types.js';
3
3
  import './pagination-chapter.css';
4
4
  /**
5
5
  * Prop types for PaginationChapter
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { HeadingLevelCommon } from '../../../libs/types/custom-types';
2
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types.js';
3
3
  import './pagination-compact.css';
4
4
  export type PaginationCompactPageControlType = 'dropdown' | 'input' | 'static';
5
5
  /**
@@ -0,0 +1,39 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import type { BASwitcherBusinessAccount } from '../../navigation/BASwitcher/BASwitcher.js';
3
+ import './ba-selector-panel.css';
4
+ /**
5
+ * Prop types for BASelectorPanel
6
+ */
7
+ export interface BASelectorPanelProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * List of all business accounts for a user. Each links to its own page
10
+ * with `linkContent`.
11
+ */
12
+ businessAccounts?: BASwitcherBusinessAccount[];
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
17
+ /**
18
+ * Caps the height of the content region (the list) only -- the header and
19
+ * footer stay fixed-size. Set in `vh`, `rem`, or `px`. Passed straight
20
+ * through to WidgetPanel.
21
+ */
22
+ contentMaxHeight?: string;
23
+ /**
24
+ * Link to create a new business account. A link element using the router
25
+ * of your choice. Renders in the panel's footer.
26
+ */
27
+ createBusinessAccountLink?: ReactNode;
28
+ /**
29
+ * Heading for the panel.
30
+ * @default 'Business accounts'
31
+ */
32
+ heading?: string;
33
+ }
34
+ /**
35
+ * BASelectorPanel UI component. A persistently-visible, embedded list of
36
+ * business accounts for homepage/sidebar widget slots. Renders a plain
37
+ * list/nav rather than a menu, like `WorkspaceSelectorPanel`.
38
+ */
39
+ export declare const BASelectorPanel: ({ businessAccounts, className, contentMaxHeight, createBusinessAccountLink, heading, ...props }: BASelectorPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { BookmarkItem } from '../../navigation/BookmarksMenu/BookmarksMenu';
2
+ import { BookmarkItem } from '../../navigation/BookmarksMenu/BookmarksMenu.js';
3
3
  import './bookmarks-panel.css';
4
4
  /**
5
5
  * Prop types for BookmarksPanel
@@ -1,7 +1,7 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ImageDisplayVariant } from '../../../libs/types/layout-types';
3
- import { Button } from '../../buttons/Button/Button';
4
- import { ButtonLink } from '../../buttons/ButtonLink/ButtonLink';
2
+ import { ImageDisplayVariant } from '../../../libs/types/layout-types.js';
3
+ import { Button } from '../../buttons/Button/Button.js';
4
+ import { ButtonLink } from '../../buttons/ButtonLink/ButtonLink.js';
5
5
  import './feature-panel.css';
6
6
  /**
7
7
  * Prop types for FeaturePanel