@pantheon-systems/pds-toolkit-react 2.0.0-alpha.9 → 2.0.0-alpha.91

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 (441) hide show
  1. package/bin/pds-codemod.cjs +58 -0
  2. package/codemods/v1-to-v2/css-token-renames.js +186 -0
  3. package/codemods/v1-to-v2/mappings.json +1824 -0
  4. package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/basic.input.tsx +33 -0
  5. package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/basic.output.tsx +33 -0
  6. package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/only.input.tsx +8 -0
  7. package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/only.output.tsx +8 -0
  8. package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-removals/basic.input.tsx +55 -0
  9. package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-removals/basic.output.tsx +55 -0
  10. package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-renames/basic.input.tsx +60 -0
  11. package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-renames/basic.output.tsx +60 -0
  12. package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/basic.input.tsx +35 -0
  13. package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/basic.output.tsx +35 -0
  14. package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/only.input.tsx +8 -0
  15. package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/only.output.tsx +8 -0
  16. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/basic.input.tsx +28 -0
  17. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/basic.output.tsx +28 -0
  18. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/only.input.tsx +8 -0
  19. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/only.output.tsx +8 -0
  20. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.input.tsx +37 -0
  21. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.output.tsx +37 -0
  22. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/only.input.tsx +21 -0
  23. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/only.output.tsx +21 -0
  24. package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.input.tsx +60 -0
  25. package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.output.tsx +51 -0
  26. package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/only.input.tsx +8 -0
  27. package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/only.output.tsx +8 -0
  28. package/codemods/v1-to-v2/transforms/__tests__/component-renames.test.js +15 -0
  29. package/codemods/v1-to-v2/transforms/__tests__/css-class-removals.test.js +6 -0
  30. package/codemods/v1-to-v2/transforms/__tests__/css-class-renames.test.js +6 -0
  31. package/codemods/v1-to-v2/transforms/__tests__/icon-name-updates.test.js +15 -0
  32. package/codemods/v1-to-v2/transforms/__tests__/prop-renames.test.js +15 -0
  33. package/codemods/v1-to-v2/transforms/__tests__/prop-value-standardization.test.js +16 -0
  34. package/codemods/v1-to-v2/transforms/__tests__/removed-prop-values.test.js +15 -0
  35. package/codemods/v1-to-v2/transforms/component-renames.js +166 -0
  36. package/codemods/v1-to-v2/transforms/css-class-removals.js +262 -0
  37. package/codemods/v1-to-v2/transforms/css-class-renames.js +178 -0
  38. package/codemods/v1-to-v2/transforms/icon-name-updates.js +124 -0
  39. package/codemods/v1-to-v2/transforms/prop-renames.js +109 -0
  40. package/codemods/v1-to-v2/transforms/prop-value-standardization.js +143 -0
  41. package/codemods/v1-to-v2/transforms/removed-prop-values.js +206 -0
  42. package/dist/components/Callout/Callout.d.ts +6 -2
  43. package/dist/components/CodeBlock/CodeBlock.d.ts +10 -5
  44. package/dist/components/CodeBlock/code-examples.d.ts +2 -1
  45. package/dist/components/CodeBlock/prism-setup.d.ts +2 -0
  46. package/dist/components/CodeBlock/themes/index.d.ts +1 -2
  47. package/dist/components/CodeBlock/themes/{pdsDark.d.ts → pds.d.ts} +1 -1
  48. package/dist/components/ComparisonList/ComparisonList.d.ts +6 -1
  49. package/dist/components/Dropdown/Dropdown.d.ts +257 -0
  50. package/dist/components/Dropdown/DropdownSelectedIcon.d.ts +7 -0
  51. package/dist/components/FileDiff/FileDiff.d.ts +2 -2
  52. package/dist/components/PantheonLogo/PantheonLogo.d.ts +5 -4
  53. package/dist/components/Popover/Popover.d.ts +6 -2
  54. package/dist/components/ResultCount/ResultCount.d.ts +53 -0
  55. package/dist/components/RowActionsMenu/RowActionsMenu.d.ts +46 -0
  56. package/dist/components/SiteFooter/SiteFooter.d.ts +45 -0
  57. package/dist/components/{navigation/DashboardSearch/DashboardSearch.d.ts → SiteSearch/SiteSearch.d.ts} +6 -11
  58. package/dist/components/SortableList/SortableList.d.ts +8 -0
  59. package/dist/components/SortableList/SortableListHeader.d.ts +7 -0
  60. package/dist/components/SortableList/SortableRow.d.ts +16 -0
  61. package/dist/components/SortableList/sortable-utils.d.ts +19 -0
  62. package/dist/components/SortableList/types.d.ts +142 -0
  63. package/dist/components/SortableList/useSortableTree.d.ts +18 -0
  64. package/dist/components/StatPanel/StatPanel.d.ts +70 -0
  65. package/dist/components/{RefreshChecker/RefreshChecker.d.ts → StatusChecker/StatusChecker.d.ts} +6 -19
  66. package/dist/components/StatusIndicator/StatusIndicator.d.ts +7 -4
  67. package/dist/components/StatusScrim/StatusScrim.d.ts +22 -0
  68. package/dist/components/Table/Table.d.ts +386 -17
  69. package/dist/components/TableOfContents/TableOfContents.d.ts +1 -5
  70. package/dist/components/Tag/Tag.d.ts +21 -3
  71. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +29 -8
  72. package/dist/components/Tooltip/Tooltip.d.ts +15 -4
  73. package/dist/components/UtilityBar/UtilityBar.d.ts +26 -0
  74. package/dist/components/badges/Badge/Badge.d.ts +10 -3
  75. package/dist/components/badges/StatusBadge/StatusBadge.d.ts +2 -1
  76. package/dist/components/buttons/Button/Button.d.ts +15 -0
  77. package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +1 -3
  78. package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +5 -1
  79. package/dist/components/buttons/CloseButton/CloseButton.d.ts +2 -2
  80. package/dist/components/buttons/FilterButton/FilterButton.d.ts +92 -0
  81. package/dist/components/buttons/IconButton/IconButton.d.ts +13 -1
  82. package/dist/components/buttons/MenuButton/MenuButton.d.ts +70 -20
  83. package/dist/components/buttons/SSOButton/SSOButton.d.ts +9 -1
  84. package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +44 -8
  85. package/dist/components/buttons/SelectButton/SelectButton.d.ts +81 -0
  86. package/dist/components/buttons/SplitButton/SplitButton.d.ts +26 -1
  87. package/dist/components/cards/ActionCard/ActionCard.d.ts +64 -0
  88. package/dist/components/cards/Card/Card.d.ts +10 -4
  89. package/dist/components/cards/CardSelect/CardSelect.d.ts +100 -0
  90. package/dist/components/charts/BarChart/BarChart.d.ts +21 -0
  91. package/dist/components/charts/LineChart/LineChart.d.ts +22 -0
  92. package/dist/components/charts/PieChart/PieChart.d.ts +59 -0
  93. package/dist/components/charts/ProportionBar/ProportionBar.d.ts +57 -0
  94. package/dist/components/charts/shared/ChartAccessibleTable.d.ts +17 -0
  95. package/dist/components/charts/shared/ChartLegend.d.ts +31 -0
  96. package/dist/components/charts/shared/ChartSkeleton.d.ts +11 -0
  97. package/dist/components/charts/shared/chart-colors.d.ts +30 -0
  98. package/dist/components/charts/shared/chart-styles.d.ts +24 -0
  99. package/dist/components/charts/shared/formatters.d.ts +12 -0
  100. package/dist/components/charts/shared/types.d.ts +128 -0
  101. package/dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +13 -8
  102. package/dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +3 -2
  103. package/dist/components/icons/Icon/Icon.d.ts +2 -2
  104. package/dist/components/icons/Icon/custom-icons.d.ts +1 -1
  105. package/dist/components/icons/Icon/generated-icon-data.d.ts +253 -15
  106. package/dist/components/icons/PaymentIcon/PaymentIcon.d.ts +7 -3
  107. package/dist/components/icons/PlatformIcon/PlatformIcon.d.ts +6 -6
  108. package/dist/components/{Avatar → identity/Avatar}/Avatar.d.ts +8 -3
  109. package/dist/components/identity/AvatarLabel/AvatarLabel.d.ts +42 -0
  110. package/dist/components/identity/IdentityBlock/IdentityBlock.d.ts +37 -0
  111. package/dist/components/inputs/Checkbox/Checkbox.d.ts +11 -1
  112. package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +20 -2
  113. package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +20 -2
  114. package/dist/components/inputs/Combobox/Combobox.d.ts +33 -7
  115. package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +26 -5
  116. package/dist/components/inputs/Datepicker/Datepicker.d.ts +280 -16
  117. package/dist/components/inputs/FileUpload/FileUpload.d.ts +16 -1
  118. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +20 -2
  119. package/dist/components/inputs/Select/Select.d.ts +35 -3
  120. package/dist/components/inputs/Switch/Switch.d.ts +15 -5
  121. package/dist/components/inputs/TagsInput/TagsInput.d.ts +16 -1
  122. package/dist/components/inputs/TextInput/TextInput.d.ts +14 -4
  123. package/dist/components/inputs/Textarea/Textarea.d.ts +12 -2
  124. package/dist/components/inputs/Timepicker/Timepicker.d.ts +104 -0
  125. package/dist/components/inputs/input-utilities.d.ts +16 -1
  126. package/dist/components/{CTALink → links/CTALink}/CTALink.d.ts +2 -2
  127. package/dist/components/{LinkNewWindow → links/LinkNewWindow}/LinkNewWindow.d.ts +1 -1
  128. package/dist/components/loading-indicators/Spinner/Spinner.d.ts +5 -4
  129. package/dist/components/navigation/BookmarksMenu/BookmarksMenu.d.ts +151 -0
  130. package/dist/components/navigation/ButtonNav/ButtonNav.d.ts +11 -5
  131. package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -0
  132. package/dist/components/navigation/Navbar/Navbar.d.ts +16 -15
  133. package/dist/components/navigation/SideNav/SideNav.d.ts +7 -1
  134. package/dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -15
  135. package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +15 -1
  136. package/dist/components/navigation/SiteMenu/SiteMenu.d.ts +26 -0
  137. package/dist/components/navigation/SiteMenu/SiteMenuDropdown.d.ts +23 -0
  138. package/dist/components/navigation/TreeNav/TreeNav.d.ts +48 -0
  139. package/dist/components/navigation/UserMenu/UserMenu.d.ts +31 -5
  140. package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +13 -16
  141. package/dist/components/navigation/navigation-utilities.d.ts +15 -2
  142. package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +12 -4
  143. package/dist/components/notifications/Toaster/Toast.d.ts +12 -1
  144. package/dist/components/notifications/Toaster/Toaster.d.ts +16 -7
  145. package/dist/components/notifications/Toaster/useToast.d.ts +2 -0
  146. package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +66 -0
  147. package/dist/components/overlays/BulkActionBar/BulkActionBar.d.ts +48 -0
  148. package/dist/components/{Drawer → overlays/Drawer}/Drawer.d.ts +4 -4
  149. package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.d.ts +45 -0
  150. package/dist/components/{Modal → overlays/Modal}/Modal.d.ts +3 -1
  151. package/dist/components/{Pagination → pagination/Pagination}/Pagination.d.ts +7 -2
  152. package/dist/components/pagination/PaginationChapter/PaginationChapter.d.ts +55 -0
  153. package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +67 -0
  154. package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +67 -0
  155. package/dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +1 -2
  156. package/dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +1 -2
  157. package/dist/components/panels/FeaturePanel/FeaturePanel.d.ts +72 -0
  158. package/dist/components/panels/Panel/Panel.d.ts +3 -3
  159. package/dist/components/panels/PanelList/PanelList.d.ts +2 -2
  160. package/dist/components/panels/PanelList/PanelRow.d.ts +9 -1
  161. package/dist/components/panels/PanelStack/PanelStack.d.ts +19 -0
  162. package/dist/components/panels/WidgetPanel/WidgetPanel.d.ts +39 -0
  163. package/dist/components/panels/WorkspaceSelectorPanel/WorkspaceSelectorPanel.d.ts +57 -0
  164. package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +4 -5
  165. package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +12 -4
  166. package/dist/components/{FlowSteps/FlowSteps.d.ts → steppers/StepList/StepList.d.ts} +7 -7
  167. package/dist/css/component-css/pds-Table.stories.css +1 -0
  168. package/dist/css/component-css/pds-action-card.css +1 -0
  169. package/dist/css/component-css/pds-avatar-label.css +1 -0
  170. package/dist/css/component-css/pds-avatar.css +1 -1
  171. package/dist/css/component-css/pds-badge.css +1 -1
  172. package/dist/css/component-css/pds-banner.css +1 -1
  173. package/dist/css/component-css/pds-bar-chart.css +1 -0
  174. package/dist/css/component-css/pds-bookmarks-menu.css +1 -0
  175. package/dist/css/component-css/pds-bookmarks-panel.css +1 -0
  176. package/dist/css/component-css/pds-bottom-sheet.css +1 -0
  177. package/dist/css/component-css/pds-branch-diff.css +1 -1
  178. package/dist/css/component-css/pds-breadcrumb.css +1 -1
  179. package/dist/css/component-css/pds-bulk-action-bar.css +1 -0
  180. package/dist/css/component-css/pds-button-link.css +1 -1
  181. package/dist/css/component-css/pds-button-nav.css +1 -1
  182. package/dist/css/component-css/pds-button.css +46 -14
  183. package/dist/css/component-css/pds-callout.css +1 -1
  184. package/dist/css/component-css/pds-card-select.css +2 -0
  185. package/dist/css/component-css/pds-card.css +1 -1
  186. package/dist/css/component-css/pds-chart-legend.css +1 -0
  187. package/dist/css/component-css/pds-chart-wrapper.css +1 -0
  188. package/dist/css/component-css/pds-checkbox-group.css +1 -1
  189. package/dist/css/component-css/pds-checkbox.css +1 -1
  190. package/dist/css/component-css/pds-close-button.css +1 -1
  191. package/dist/css/component-css/pds-code-block-legacy.css +1 -1
  192. package/dist/css/component-css/pds-code-block.css +1 -1
  193. package/dist/css/component-css/pds-combobox-multiselect.css +3 -2
  194. package/dist/css/component-css/pds-combobox.css +1 -1
  195. package/dist/css/component-css/pds-compact-empty-state.css +1 -1
  196. package/dist/css/component-css/pds-comparison-list.css +1 -1
  197. package/dist/css/component-css/pds-cta-link.css +1 -1
  198. package/dist/css/component-css/pds-datepicker.css +1 -3
  199. package/dist/css/component-css/pds-drawer.css +1 -1
  200. package/dist/css/component-css/pds-dropdown-menu.css +2 -2
  201. package/dist/css/component-css/pds-dropdown.css +3 -0
  202. package/dist/css/component-css/pds-expansion-panel-group.css +1 -1
  203. package/dist/css/component-css/pds-expansion-panel.css +2 -1
  204. package/dist/css/component-css/pds-feature-panel.css +15 -0
  205. package/dist/css/component-css/pds-file-diff.css +1 -1
  206. package/dist/css/component-css/pds-file-upload.css +1 -7
  207. package/dist/css/component-css/pds-filter-button.css +1 -0
  208. package/dist/css/component-css/pds-full-screen-overlay.css +1 -0
  209. package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
  210. package/dist/css/component-css/pds-icon-button.css +22 -14
  211. package/dist/css/component-css/pds-icon-story-only.css +1 -1
  212. package/dist/css/component-css/pds-icon.css +1 -1
  213. package/dist/css/component-css/pds-identity-block.css +1 -0
  214. package/dist/css/component-css/pds-index.css +189 -63
  215. package/dist/css/component-css/pds-inline-message.css +1 -1
  216. package/dist/css/component-css/pds-input-group.css +1 -1
  217. package/dist/css/component-css/pds-input-utilities.css +1 -1
  218. package/dist/css/component-css/pds-line-chart.css +1 -0
  219. package/dist/css/component-css/pds-link-new-window.css +1 -1
  220. package/dist/css/component-css/pds-menu-button.css +11 -1
  221. package/dist/css/component-css/pds-modal.css +1 -1
  222. package/dist/css/component-css/pds-nav-menu.css +1 -5
  223. package/dist/css/component-css/pds-navbar.css +4 -1
  224. package/dist/css/component-css/pds-pagination-chapter.css +3 -0
  225. package/dist/css/component-css/pds-pagination-compact.css +1 -0
  226. package/dist/css/component-css/pds-pagination.css +1 -1
  227. package/dist/css/component-css/pds-panel-list.css +1 -1
  228. package/dist/css/component-css/pds-panel-stack.css +1 -0
  229. package/dist/css/component-css/pds-panel.css +2 -1
  230. package/dist/css/component-css/pds-pantheon-logo.css +1 -1
  231. package/dist/css/component-css/pds-payment-icon.css +1 -1
  232. package/dist/css/component-css/pds-picture.css +1 -1
  233. package/dist/css/component-css/pds-pie-chart.css +1 -0
  234. package/dist/css/component-css/pds-platform-icon.css +1 -1
  235. package/dist/css/component-css/pds-popover.css +1 -1
  236. package/dist/css/component-css/pds-progress-bar.css +1 -1
  237. package/dist/css/component-css/pds-progress-ring.css +1 -1
  238. package/dist/css/component-css/pds-proportion-bar.css +1 -0
  239. package/dist/css/component-css/pds-radio-group.css +1 -1
  240. package/dist/css/component-css/pds-result-count.css +1 -0
  241. package/dist/css/component-css/pds-row-actions-menu.css +2 -0
  242. package/dist/css/component-css/pds-section-message.css +1 -1
  243. package/dist/css/component-css/pds-segmented-button.css +2 -1
  244. package/dist/css/component-css/pds-select-button.css +1 -0
  245. package/dist/css/component-css/pds-select.css +1 -1
  246. package/dist/css/component-css/pds-side-nav-global.css +3 -7
  247. package/dist/css/component-css/pds-side-nav.css +3 -1
  248. package/dist/css/component-css/pds-site-footer.css +1 -1
  249. package/dist/css/component-css/pds-site-search.css +1 -0
  250. package/dist/css/component-css/pds-skeleton.css +1 -1
  251. package/dist/css/component-css/pds-skiplink.css +1 -1
  252. package/dist/css/component-css/pds-sortable-list.css +8 -0
  253. package/dist/css/component-css/pds-spinner.css +1 -1
  254. package/dist/css/component-css/pds-split-button.css +1 -1
  255. package/dist/css/component-css/pds-sso-button.css +2 -2
  256. package/dist/css/component-css/pds-stat-panel.css +1 -0
  257. package/dist/css/component-css/pds-status-badge.css +1 -1
  258. package/dist/css/component-css/pds-status-checker.css +1 -0
  259. package/dist/css/component-css/pds-status-indicator.css +1 -1
  260. package/dist/css/component-css/pds-status-scrim.css +1 -0
  261. package/dist/css/component-css/pds-step-list.css +1 -0
  262. package/dist/css/component-css/pds-stepper.css +5 -1
  263. package/dist/css/component-css/pds-switch.css +6 -11
  264. package/dist/css/component-css/pds-tab-menu.css +2 -2
  265. package/dist/css/component-css/pds-table-of-contents.css +1 -1
  266. package/dist/css/component-css/pds-table.css +7 -1
  267. package/dist/css/component-css/pds-tabs.css +1 -1
  268. package/dist/css/component-css/pds-tag.css +1 -1
  269. package/dist/css/component-css/pds-tags-input.css +1 -1
  270. package/dist/css/component-css/pds-tally.css +1 -1
  271. package/dist/css/component-css/pds-text-input.css +1 -1
  272. package/dist/css/component-css/pds-textarea.css +1 -1
  273. package/dist/css/component-css/pds-theme-switcher.css +1 -1
  274. package/dist/css/component-css/pds-timepicker.css +1 -0
  275. package/dist/css/component-css/pds-toaster.css +1 -1
  276. package/dist/css/component-css/pds-tooltip.css +1 -1
  277. package/dist/css/component-css/pds-tree-nav.css +1 -0
  278. package/dist/css/component-css/pds-user-menu-story-only.css +1 -1
  279. package/dist/css/component-css/pds-user-menu.css +32 -1
  280. package/dist/css/component-css/pds-utility-bar.css +1 -0
  281. package/dist/css/component-css/pds-utility-button.css +3 -1
  282. package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
  283. package/dist/css/component-css/pds-vertical-stepper.css +1 -1
  284. package/dist/css/component-css/pds-video-embed.css +1 -1
  285. package/dist/css/component-css/pds-widget-panel.css +1 -0
  286. package/dist/css/component-css/pds-workspace-selector-panel.css +1 -0
  287. package/dist/css/component-css/pds-workspace-selector.css +23 -1
  288. package/dist/css/design-tokens/variables.dark.css +371 -340
  289. package/dist/css/design-tokens/variables.global.css +10 -19
  290. package/dist/css/design-tokens/variables.light.css +367 -316
  291. package/dist/css/design-tokens/variables.typography.css +1 -2
  292. package/dist/css/layout-css/pds-app-layout.css +3 -2
  293. package/dist/css/layout-css/pds-docs-layout.css +1 -1
  294. package/dist/css/layout-css/pds-index.css +3 -9
  295. package/dist/css/layout-css/pds-sidebar-layout.css +13 -0
  296. package/dist/css/layout-css/pds-stat-panel-group.css +1 -0
  297. package/dist/css/layout-css/pds-stepper-layout.css +1 -1
  298. package/dist/css/layout-css/pds-three-item-layout.css +1 -1
  299. package/dist/css/layout-css/pds-two-item-layout.css +1 -1
  300. package/dist/css/pds-components.css +189 -63
  301. package/dist/css/pds-core.css +3 -2
  302. package/dist/css/pds-layouts.css +3 -9
  303. package/dist/index.css +5 -1
  304. package/dist/index.d.ts +101 -9
  305. package/dist/index.js +13601 -6078
  306. package/dist/index.js.map +1 -1
  307. package/dist/index.source.d.ts +59 -42
  308. package/dist/layouts/AppLayout/AppLayout.d.ts +85 -10
  309. package/dist/layouts/DocsLayout/DocsLayout.d.ts +9 -7
  310. package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +41 -7
  311. package/dist/layouts/StatPanelGroup/StatPanelGroup.d.ts +32 -0
  312. package/dist/layouts/StepperLayout/StepperLayout.d.ts +13 -1
  313. package/dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +3 -3
  314. package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +3 -3
  315. package/dist/libs/components/NavAccordion/NavAccordion.d.ts +27 -0
  316. package/dist/libs/components/NestedOverlayContext.d.ts +14 -0
  317. package/dist/libs/components/StatusDot/StatusDot.d.ts +15 -0
  318. package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +40 -0
  319. package/dist/libs/components/useOverlayZIndex.d.ts +16 -0
  320. package/dist/libs/components/utils.d.ts +1 -1
  321. package/dist/libs/types/custom-types.d.ts +11 -5
  322. package/dist/libs/types/layout-types.d.ts +6 -1
  323. package/dist/libs/types/navigation-types.d.ts +17 -1
  324. package/dist/svg/anglesDown.svg +3 -0
  325. package/dist/svg/anglesUp.svg +3 -0
  326. package/dist/svg/arrowDownWideShort.svg +3 -0
  327. package/dist/svg/arrowUpShortWide.svg +3 -0
  328. package/dist/svg/barsStaggered.svg +3 -0
  329. package/dist/svg/bookmark.svg +3 -0
  330. package/dist/svg/bookmarkSolid.svg +3 -0
  331. package/dist/svg/box.svg +3 -0
  332. package/dist/svg/circleExclamationSolid.svg +3 -0
  333. package/dist/svg/circleHalfStroke.svg +3 -0
  334. package/dist/svg/circleInfoSolid.svg +3 -0
  335. package/dist/svg/circleQuestionSolid.svg +3 -0
  336. package/dist/svg/claude.svg +3 -0
  337. package/dist/svg/clock.svg +3 -0
  338. package/dist/svg/collapseToCenter.svg +3 -0
  339. package/dist/svg/compress.svg +3 -0
  340. package/dist/svg/diagramVenn.svg +3 -0
  341. package/dist/svg/files.svg +3 -0
  342. package/dist/svg/floppyDisk.svg +3 -0
  343. package/dist/svg/folders.svg +3 -0
  344. package/dist/svg/grid.svg +2 -2
  345. package/dist/svg/grid2.svg +3 -0
  346. package/dist/svg/landmark.svg +3 -0
  347. package/dist/svg/list.svg +3 -0
  348. package/dist/svg/move.svg +3 -0
  349. package/dist/svg/octagonExclamation.svg +3 -0
  350. package/dist/svg/openai.svg +3 -0
  351. package/dist/svg/pause.svg +3 -0
  352. package/dist/svg/penPaintbrush.svg +3 -0
  353. package/dist/svg/rectanglesMixed.svg +3 -0
  354. package/dist/svg/sidebar.svg +3 -0
  355. package/dist/svg/slider.svg +3 -0
  356. package/dist/svg/squareDashed.svg +3 -0
  357. package/dist/svg/tableColumns.svg +3 -0
  358. package/dist/svg/userSolid.svg +3 -0
  359. package/dist/{layouts → utilities}/FlexContainer/FlexContainer.d.ts +7 -7
  360. package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +35 -0
  361. package/dist/utilities/ai-visuals/AiVisualsDemo.d.ts +8 -0
  362. package/dist/utilities/auto-grid/AutoGrid.d.ts +48 -0
  363. package/dist/utilities/context-providers/ThemeContext/ThemeContext.d.ts +113 -0
  364. package/dist/utilities/grid/Grid.d.ts +56 -0
  365. package/dist/utilities/grid/GridItem.d.ts +57 -0
  366. package/dist/utilities/hooks/useDropdown/index.d.ts +1 -0
  367. package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +154 -0
  368. package/dist/utilities/hooks/useIsMobile/useIsMobile.d.ts +16 -0
  369. package/dist/utilities/hooks/useKeyPress/useKeyPress.d.ts +6 -0
  370. package/dist/utilities/hooks/useKeyboardShortcut/useKeyboardShortcut.d.ts +29 -0
  371. package/package.json +82 -46
  372. package/dist/components/CTASlice/CTASlice.d.ts +0 -43
  373. package/dist/components/CodeBlock/themes/pdsLight.d.ts +0 -2
  374. package/dist/components/DashboardStat/DashboardStat.d.ts +0 -28
  375. package/dist/components/PullQuote/PullQuote.d.ts +0 -34
  376. package/dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +0 -62
  377. package/dist/components/SocialLinks/SocialLinks.d.ts +0 -23
  378. package/dist/components/cards/CardHeading/CardHeading.d.ts +0 -31
  379. package/dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +0 -60
  380. package/dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +0 -36
  381. package/dist/components/cards/LinksCard/LinksCard.d.ts +0 -29
  382. package/dist/components/cards/LinksCard/links-card-sample-data.d.ts +0 -2
  383. package/dist/components/cards/NewSiteCard/NewSiteCard.d.ts +0 -61
  384. package/dist/components/cards/PaymentCard/PaymentCard.d.ts +0 -47
  385. package/dist/components/cards/PricingCard/PricingCard.d.ts +0 -95
  386. package/dist/components/cards/SiteCard/SiteCard.d.ts +0 -50
  387. package/dist/components/footer/FooterHeading/FooterHeading.d.ts +0 -22
  388. package/dist/components/footer/FooterLinks/FooterLinks.d.ts +0 -26
  389. package/dist/components/footer/SiteFooter/SiteFooter.d.ts +0 -34
  390. package/dist/components/footer/SiteFooter/footer-content.d.ts +0 -1
  391. package/dist/components/navigation/DashboardNav/DashboardNav.d.ts +0 -35
  392. package/dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +0 -24
  393. package/dist/components/navigation/NavMenu/NavMenu.d.ts +0 -33
  394. package/dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +0 -24
  395. package/dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +0 -53
  396. package/dist/components/notifications/NotificationHubIcon/NotificationHubIcon.d.ts +0 -38
  397. package/dist/components/notifications/NotificationsPopover/NotificationsPopover.d.ts +0 -118
  398. package/dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +0 -28
  399. package/dist/components/tiles/Tile/Tile.d.ts +0 -42
  400. package/dist/components/tiles/TileGrid/TileGrid.d.ts +0 -29
  401. package/dist/css/component-css/pds-avatar-tile-list.css +0 -1
  402. package/dist/css/component-css/pds-card-heading.css +0 -1
  403. package/dist/css/component-css/pds-card-select-group.css +0 -1
  404. package/dist/css/component-css/pds-cta-slice.css +0 -1
  405. package/dist/css/component-css/pds-dashboard-nav.css +0 -5
  406. package/dist/css/component-css/pds-dashboard-search.css +0 -1
  407. package/dist/css/component-css/pds-dashboard-stat.css +0 -1
  408. package/dist/css/component-css/pds-empty-state-card.css +0 -1
  409. package/dist/css/component-css/pds-flow-steps.css +0 -1
  410. package/dist/css/component-css/pds-footer-heading.css +0 -1
  411. package/dist/css/component-css/pds-footer-links.css +0 -1
  412. package/dist/css/component-css/pds-links-card.css +0 -1
  413. package/dist/css/component-css/pds-new-site-card.css +0 -1
  414. package/dist/css/component-css/pds-notification-hub-icon.css +0 -1
  415. package/dist/css/component-css/pds-notifications-popover.css +0 -1
  416. package/dist/css/component-css/pds-payment-card.css +0 -1
  417. package/dist/css/component-css/pds-pricing-card-local.css +0 -1
  418. package/dist/css/component-css/pds-pricing-card.css +0 -1
  419. package/dist/css/component-css/pds-pull-quote.css +0 -1
  420. package/dist/css/component-css/pds-refresh-checker.css +0 -1
  421. package/dist/css/component-css/pds-side-nav-compact.css +0 -1
  422. package/dist/css/component-css/pds-site-card.css +0 -1
  423. package/dist/css/component-css/pds-site-dashboard-heading.css +0 -1
  424. package/dist/css/component-css/pds-social-links.css +0 -1
  425. package/dist/css/component-css/pds-tile.css +0 -1
  426. package/dist/css/component-css/pds-tiles-common.css +0 -1
  427. package/dist/css/layout-css/pds-dashboard-global.css +0 -8
  428. package/dist/css/layout-css/pds-dashboard-inner.css +0 -1
  429. package/dist/css/layout-css/pds-flex-container.css +0 -1
  430. package/dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +0 -57
  431. package/dist/layouts/DashboardInner/DashboardInner.d.ts +0 -30
  432. package/dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +0 -19
  433. package/dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +0 -6
  434. /package/dist/components/{Skiplink → links/Skiplink}/Skiplink.d.ts +0 -0
  435. /package/dist/components/{Picture → media/Picture}/Picture.d.ts +0 -0
  436. /package/dist/components/{VideoEmbed → media/VideoEmbed}/VideoEmbed.d.ts +0 -0
  437. /package/dist/components/{Pagination → pagination/Pagination}/usePagination.d.ts +0 -0
  438. /package/dist/components/{FlowSteps → steppers/StepList}/example-steps.d.ts +0 -0
  439. /package/dist/svg/{linkSimple.svg → link.svg} +0 -0
  440. /package/dist/svg/{linkSimpleSlash.svg → unlink.svg} +0 -0
  441. /package/dist/{layouts → utilities}/Container/Container.d.ts +0 -0
@@ -0,0 +1,48 @@
1
+ import { ComponentPropsWithoutRef, ReactElement } from 'react';
2
+ import { NavigationItem } from '../../../libs/types/navigation-types';
3
+ import './tree-nav.css';
4
+ export type TreeNavItem = NavigationItem & {
5
+ /**
6
+ * A unique identifier for this item — typically its route or URL path (e.g. `/guides/overview`).
7
+ *
8
+ * Required on any item that has children (`links` array). The component uses this to
9
+ * re-find the item's DOM node after a re-render and restore its expanded/collapsed state.
10
+ * Without it, a user-opened nested submenu will collapse whenever the component re-renders.
11
+ *
12
+ * Leaf items (no `links`) do not need `path`.
13
+ */
14
+ path?: string;
15
+ };
16
+ /**
17
+ * Prop types for TreeNav
18
+ */
19
+ export interface TreeNavProps extends ComponentPropsWithoutRef<'nav'> {
20
+ /**
21
+ * Aria label for the navigation.
22
+ */
23
+ ariaLabel: string;
24
+ /**
25
+ * Additional class names
26
+ */
27
+ className?: string;
28
+ /**
29
+ * Heading text. If a link is passed, it will be rendered as a link.
30
+ */
31
+ headingText?: string | ReactElement;
32
+ /**
33
+ * Labels for translatable strings.
34
+ */
35
+ labels?: {
36
+ submenu: string;
37
+ toggle: string;
38
+ };
39
+ /**
40
+ * Menu items to render.
41
+ */
42
+ menuItems: TreeNavItem[];
43
+ }
44
+ /**
45
+ * TreeNav UI component — a multi-level collapsible tree navigation for dense
46
+ * hierarchical content such as documentation sites.
47
+ */
48
+ export declare const TreeNav: ({ ariaLabel, className, headingText, labels, menuItems, ...props }: TreeNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { PDSIcon } from '../../icons/Icon/Icon';
3
+ import { ThemeSwitcherProps } from '../../ThemeSwitcher/ThemeSwitcher';
3
4
  import './user-menu.css';
4
5
  /**
5
6
  * Prop types for UserMenuItem
@@ -42,10 +43,39 @@ export interface UserMenuProps extends ComponentPropsWithoutRef<'span'> {
42
43
  * Additional class names.
43
44
  */
44
45
  className?: string;
46
+ /**
47
+ * Opt in to swapping the trigger + floating dropdown panel for an inline
48
+ * accordion at the mobile breakpoint. Defaults to `false` — UserMenu
49
+ * always renders its normal trigger + dropdown otherwise, regardless of
50
+ * viewport. Set this explicitly when placing UserMenu inside a mobile nav
51
+ * menu that provides the accordion's expected layout (e.g. `Navbar`'s own
52
+ * mobile menu) — typically `isMobileAccordion={useIsMobile()}`, using the
53
+ * `useIsMobile` hook, so the swap only takes effect at the mobile
54
+ * breakpoint.
55
+ */
56
+ isMobileAccordion?: boolean;
45
57
  /**
46
58
  * Array of menu items.
47
59
  */
48
60
  menuItems?: UserMenuItem[];
61
+ /**
62
+ * Callback fired when the theme changes. Provide together with `theme` to
63
+ * render the theme switcher row at the top of the menu.
64
+ */
65
+ onThemeChange?: ThemeSwitcherProps['onChange'];
66
+ /**
67
+ * The currently active theme. Provide together with `onThemeChange` to
68
+ * render the theme switcher row at the top of the menu.
69
+ */
70
+ theme?: ThemeSwitcherProps['theme'];
71
+ /**
72
+ * Label for the theme switcher row. Defaults to `'Theme'`.
73
+ */
74
+ themeLabel?: string;
75
+ /**
76
+ * Translation strings for the theme switcher options.
77
+ */
78
+ themeLabelStrings?: ThemeSwitcherProps['labelStrings'];
49
79
  /**
50
80
  * User email address.
51
81
  */
@@ -58,12 +88,8 @@ export interface UserMenuProps extends ComponentPropsWithoutRef<'span'> {
58
88
  * User display name.
59
89
  */
60
90
  userName?: string;
61
- /**
62
- * If true, the workspace selector will be styled and rendered to work with the mobile version of the navbar menu. Defaults to true.
63
- */
64
- withinNavbar?: boolean;
65
91
  }
66
92
  /**
67
93
  * UserMenu UI component
68
94
  */
69
- export declare const UserMenu: ({ ariaLabel, className, menuItems, userEmail, userImageSrc, userName, withinNavbar, ...props }: UserMenuProps) => import("react/jsx-runtime").JSX.Element;
95
+ export declare const UserMenu: ({ ariaLabel, className, isMobileAccordion, menuItems, onThemeChange, theme, themeLabel, themeLabelStrings, userEmail, userImageSrc, userName, ...props }: UserMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
2
- import { BadgeColor } from '../../badges/Badge/Badge';
2
+ import '@components/Dropdown/dropdown.css';
3
3
  import './workspace-selector.css';
4
- declare const tierConfig: Record<string, {
5
- color: BadgeColor;
6
- label: string;
7
- }>;
8
- export type PlanTiers = keyof typeof tierConfig;
9
4
  export type WorkspaceSelectorItem = {
10
5
  /**
11
6
  * Name of the workspace.
@@ -32,10 +27,6 @@ export type WorkspaceSelectorItem = {
32
27
  * Only used when isRestricted is true.
33
28
  */
34
29
  onRestrictedSelection?: () => void;
35
- /**
36
- * Account plan tier.
37
- */
38
- planTier?: PlanTiers;
39
30
  /**
40
31
  * Visually-hidden label to indicate restricted access.
41
32
  * @default 'Restricted'
@@ -74,6 +65,17 @@ export interface WorkspaceSelectorProps extends ComponentPropsWithoutRef<'span'>
74
65
  * Placeholder text for the filter input.
75
66
  */
76
67
  filterPlaceholder?: string;
68
+ /**
69
+ * Opt in to swapping the trigger + floating dropdown panel for an inline
70
+ * accordion at the mobile breakpoint. Defaults to `false` — WorkspaceSelector
71
+ * always renders its normal trigger + dropdown otherwise, regardless of
72
+ * viewport. Set this explicitly when placing WorkspaceSelector inside a
73
+ * mobile nav menu that provides the accordion's expected layout (e.g.
74
+ * `Navbar`'s own mobile menu) — typically `isMobileAccordion={useIsMobile()}`,
75
+ * using the `useIsMobile` hook, so the swap only takes effect at the
76
+ * mobile breakpoint.
77
+ */
78
+ isMobileAccordion?: boolean;
77
79
  /**
78
80
  * Heading for the workspace dropdown menu.
79
81
  */
@@ -86,10 +88,6 @@ export interface WorkspaceSelectorProps extends ComponentPropsWithoutRef<'span'>
86
88
  * Text to display when no results are found.
87
89
  */
88
90
  noResultsText?: string;
89
- /**
90
- * Is this component located in the top nav? Only applies when using the Navbar component from this toolkit. Defaults to true per design.
91
- */
92
- withinNavbar?: boolean;
93
91
  /**
94
92
  * List of all workspaces for a user.
95
93
  */
@@ -98,5 +96,4 @@ export interface WorkspaceSelectorProps extends ComponentPropsWithoutRef<'span'>
98
96
  /**
99
97
  * WorkspaceSelector UI component
100
98
  */
101
- export declare const WorkspaceSelector: ({ ariaLabel, className, createWorkspaceLink, filterLabel, filterPlaceholder, menuHeading, minFilterItems, noResultsText, withinNavbar, workspaceList, ...props }: WorkspaceSelectorProps) => import("react/jsx-runtime").JSX.Element;
102
- export {};
99
+ export declare const WorkspaceSelector: ({ ariaLabel, className, createWorkspaceLink, filterLabel, filterPlaceholder, isMobileAccordion, menuHeading, minFilterItems, noResultsText, workspaceList, ...props }: WorkspaceSelectorProps) => import("react/jsx-runtime").JSX.Element;
@@ -39,15 +39,28 @@ export declare const isActiveItem: (item: NavigationItem) => boolean;
39
39
  * const inActiveTrail = isActiveTrail(parentItem); // True if parent or any child is active
40
40
  */
41
41
  export declare const isActiveTrail: (item: NavigationItem) => boolean;
42
+ /**
43
+ * Serializes the active state of an entire menu tree into a string signature.
44
+ * The signature changes on any route change — including navigation between two
45
+ * routes under the same top-level item — not just when a different top-level
46
+ * item enters the active trail. Used to reset user-driven expansion overrides
47
+ * so submenu expansion follows the active trail again after navigation.
48
+ * @param items - Array of navigation items to serialize
49
+ * @returns A string signature representing the tree's active state
50
+ * @example
51
+ * const signature = buildActiveSignature(menuItems);
52
+ */
53
+ export declare const buildActiveSignature: (items: NavigationItem[]) => string;
42
54
  /**
43
55
  * Checks if the provided content is an interactive element (link, button, etc.)
44
56
  * @param content - The React content to examine
45
57
  * @returns True if the content is an interactive element, false otherwise
46
- * @description Currently detects:
58
+ * @description Detects:
47
59
  * - Native anchor elements (`<a>`)
48
- * - React Router Link components (by displayName)
60
+ * - React Router Link/NavLink components (by displayName or by `to`/`href` props)
49
61
  * @example
50
62
  * const isInteractive = isInteractiveElement(<Link to="/home">Home</Link>); // true
63
+ * const isInteractive = isInteractiveElement(<NavLink to="/home">Home</NavLink>); // true
51
64
  * const isInteractive = isInteractiveElement(<span>Label</span>); // false
52
65
  * const isInteractive = isInteractiveElement("Plain text"); // false
53
66
  */
@@ -1,6 +1,7 @@
1
1
  import { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
2
- import { DataContext, StatusType } from '../../../libs/types/custom-types';
2
+ import { StatusType } from '../../../libs/types/custom-types';
3
3
  import { Button } from '../../buttons/Button/Button';
4
+ import { PDSIcon } from '../../icons/Icon/Icon';
4
5
  import './section-message.css';
5
6
  export type SectionMessageType = StatusType;
6
7
  type TypeLabels = Record<SectionMessageType, string>;
@@ -15,9 +16,10 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
15
16
  */
16
17
  ctaButton?: ComponentPropsWithoutRef<typeof Button>;
17
18
  /**
18
- * Data context for sizing. Marketing context increases all sizes by one step.
19
+ * Optional leading icon for `ctaButton`. Always colored to match the
20
+ * section message's own foreground color.
19
21
  */
20
- dataContext?: DataContext;
22
+ ctaIcon?: PDSIcon;
21
23
  /**
22
24
  * Label for dismiss button. Provide a translation string if needed.
23
25
  */
@@ -38,6 +40,12 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
38
40
  * Callback function when message is dismissed.
39
41
  */
40
42
  onDismiss?: (event: MouseEvent<HTMLButtonElement>, id: string) => void;
43
+ /**
44
+ * Props for an optional secondary action, rendered before `ctaButton` so the
45
+ * more prominent action sits on the outside. Can include any Button props
46
+ * except for size. Defaults to the `link` variant.
47
+ */
48
+ secondaryCta?: ComponentPropsWithoutRef<typeof Button>;
41
49
  /**
42
50
  * Message title.
43
51
  */
@@ -54,5 +62,5 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
54
62
  /**
55
63
  * SectionMessage UI component
56
64
  */
57
- export declare const SectionMessage: ({ className, ctaButton, dataContext, dismissLabel, id, isDismissible, message, onDismiss, title, type, typeLabels, ...props }: SectionMessageProps) => import("react/jsx-runtime").JSX.Element;
65
+ export declare const SectionMessage: ({ className, ctaButton, ctaIcon, dismissLabel, id, isDismissible, message, onDismiss, secondaryCta, title, type, typeLabels, ...props }: SectionMessageProps) => import("react/jsx-runtime").JSX.Element;
58
66
  export {};
@@ -18,6 +18,12 @@ declare const defaultTypeLabels: {
18
18
  * Prop types for Toast
19
19
  */
20
20
  interface ToastProps extends ComponentPropsWithoutRef<'div'> {
21
+ /**
22
+ * Duration in milliseconds before the toast auto-dismisses. When set, shows
23
+ * a progress bar and pause button. Populated automatically by useToast —
24
+ * consumers do not need to set this.
25
+ */
26
+ autoCloseDuration?: number;
21
27
  /**
22
28
  * Toast message content.
23
29
  */
@@ -30,6 +36,11 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
30
36
  * ID of individual toast.
31
37
  */
32
38
  id?: string;
39
+ /**
40
+ * React-Toastify toast ID, used to control the pause/resume timer.
41
+ * Populated automatically by useToast — consumers do not need to set this.
42
+ */
43
+ toastId?: string | number;
33
44
  /**
34
45
  * Type of toast to show.
35
46
  */
@@ -42,5 +53,5 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
42
53
  /**
43
54
  * Toast UI component
44
55
  */
45
- export declare const Toast: ({ children, className, id, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
56
+ export declare const Toast: ({ autoCloseDuration, children, className, id, toastId, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
46
57
  export {};
@@ -1,18 +1,27 @@
1
- import { ComponentPropsWithoutRef } from 'react';
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
2
  import 'react-toastify/dist/ReactToastify.css';
3
3
  import './toaster.css';
4
+ export declare const MIN_AUTO_CLOSE_DURATION = 30000;
5
+ type PauseResumeLabels = {
6
+ pause: string;
7
+ resume: string;
8
+ };
9
+ export interface ToasterContextValue {
10
+ labelStrings: PauseResumeLabels;
11
+ }
12
+ export declare const ToasterContext: React.Context<ToasterContextValue>;
4
13
  /**
5
- * Prop types for Toast
14
+ * Prop types for Toaster
6
15
  */
7
16
  interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
8
- /**
9
- * Duration in milliseconds before the toast will auto-close. Set to `false` to disable auto-close (default).
10
- */
11
- autoCloseDuration?: number | false;
12
17
  /**
13
18
  * Additional class names
14
19
  */
15
20
  className?: string;
21
+ /**
22
+ * Label strings for the pause and resume buttons. Provide translation strings if needed.
23
+ */
24
+ labelStrings?: PauseResumeLabels;
16
25
  /**
17
26
  * Maximum number of toasts that can be displayed at once.
18
27
  */
@@ -25,5 +34,5 @@ interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
25
34
  /**
26
35
  * Toaster UI component
27
36
  */
28
- export declare const Toaster: ({ autoCloseDuration, className, limit, position, }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
37
+ export declare const Toaster: ({ className, labelStrings, limit, position, }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
29
38
  export {};
@@ -1,5 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { cssTransition, toast as toastApi, ToastOptions } from 'react-toastify';
3
+ import { MIN_AUTO_CLOSE_DURATION } from './Toaster';
4
+ export { MIN_AUTO_CLOSE_DURATION };
3
5
  export declare enum ToastType {
4
6
  Critical = "critical",
5
7
  Info = "info",
@@ -0,0 +1,66 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './bottom-sheet.css';
3
+ export interface BottomSheetProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
4
+ /**
5
+ * Aria label that describes the sheet. Falls back to `title` if not provided.
6
+ */
7
+ ariaLabel?: string;
8
+ /**
9
+ * Main content for the sheet. Pass a `slot="footer"` child for footer content
10
+ * (e.g. Prev/Next navigation), same pattern as `Drawer`.
11
+ */
12
+ children?: ReactNode;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
17
+ /**
18
+ * Text for the close button's aria-label attribute. Defaults to `'Close'`.
19
+ */
20
+ closeButtonLabel?: string;
21
+ /**
22
+ * If true, clicking the scrim will not close the sheet.
23
+ */
24
+ disableOutsideClick?: boolean;
25
+ /**
26
+ * Height while expanded (dragged past the expand threshold, or the grabber
27
+ * tapped/activated once). Accepts any valid CSS value. Defaults to `'96dvh'`.
28
+ * Pass `null` to disable expansion entirely — the sheet can then only be
29
+ * dragged smaller (toward dismissal), never past its default `height`.
30
+ */
31
+ expandedHeight?: string | null;
32
+ /**
33
+ * Indicates if the built-in close button will be shown.
34
+ */
35
+ hasCloseButton?: boolean;
36
+ /**
37
+ * Default (collapsed) height. Accepts any valid CSS value. Defaults to `'62dvh'`.
38
+ */
39
+ height?: string;
40
+ /**
41
+ * Is the sheet open?
42
+ */
43
+ isOpen?: boolean;
44
+ /**
45
+ * Accessible label for the drag handle. Dragging resizes the sheet, but
46
+ * that's a pointer-only enhancement — for keyboard/screen reader users,
47
+ * activating this handle (Enter/Space) closes the sheet outright, the
48
+ * same as dragging it down past the dismiss threshold. Defaults to
49
+ * `'Close sheet'`.
50
+ */
51
+ resizeLabel?: string;
52
+ /**
53
+ * Function to set the sheet's open state.
54
+ */
55
+ setIsOpen?: (isOpen: boolean) => void;
56
+ /**
57
+ * Title for the sheet. Accepts a string or ReactNode. Leave empty for no title.
58
+ */
59
+ title?: ReactNode;
60
+ }
61
+ /**
62
+ * BottomSheet UI component. A mobile-oriented overlay that slides up from the
63
+ * bottom of the viewport, with a draggable handle to resize between a default
64
+ * and an expanded height, or drag down past a threshold to dismiss.
65
+ */
66
+ export declare const BottomSheet: ({ ariaLabel, children, className, closeButtonLabel, disableOutsideClick, expandedHeight, hasCloseButton, height, isOpen: isOpenProp, resizeLabel, setIsOpen: setIsOpenProp, title, ...props }: BottomSheetProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,48 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './bulk-action-bar.css';
3
+ /**
4
+ * Prop types for BulkActionBar
5
+ */
6
+ export interface BulkActionBarProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Action content (e.g. `MenuButton`s) rendered between the count and the
9
+ * clear button. Not opinionated about what it contains — this component
10
+ * only owns the count, the clear button, and the surrounding chrome.
11
+ * Since the bar always renders on a reverse (dark) surface, content
12
+ * should use variants suited to that — e.g. `MenuButton`'s
13
+ * `reverse-secondary`, `IconButton`'s `reverse`.
14
+ */
15
+ children?: ReactNode;
16
+ /**
17
+ * Additional class names
18
+ */
19
+ className?: string;
20
+ /**
21
+ * Accessible label for the built-in clear button. Defaults to `'Clear
22
+ * selection'`. Override for translation.
23
+ */
24
+ clearLabel?: string;
25
+ /**
26
+ * Number of items currently selected.
27
+ */
28
+ count: number;
29
+ /**
30
+ * Returns the visible count label. Defaults to `(count) => \`${count} selected\``.
31
+ * Override for translation, or to describe what's selected (e.g. "3 sites selected").
32
+ */
33
+ getCountLabel?: (count: number) => string;
34
+ /**
35
+ * Called when the clear button is activated. Typically clears the
36
+ * selection; whether that also exits any "select mode" the consumer has
37
+ * is up to them — this component has no opinion on that state.
38
+ */
39
+ onClear: () => void;
40
+ }
41
+ /**
42
+ * BulkActionBar UI component — a floating bar that surfaces a selection
43
+ * count and bulk actions once at least one item is selected. Pinned to the
44
+ * bottom of the viewport, content scrolls behind it. Mounting/unmounting
45
+ * based on selection state is the consumer's responsibility; this component
46
+ * always renders what it's given.
47
+ */
48
+ export declare const BulkActionBar: ({ children, className, clearLabel, count, getCountLabel, onClear, ...props }: BulkActionBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './drawer.css';
3
3
  export type DrawerPlacement = 'left' | 'right';
4
4
  export type DrawerSize = 's' | 'm' | 'l';
5
- export interface DrawerProps extends ComponentPropsWithoutRef<'div'> {
5
+ export interface DrawerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
6
6
  /**
7
7
  * Aria label that describes the drawer. Will default to the title if not provided.
8
8
  */
@@ -44,9 +44,9 @@ export interface DrawerProps extends ComponentPropsWithoutRef<'div'> {
44
44
  */
45
45
  size?: DrawerSize;
46
46
  /**
47
- * Text for the drawer title. Leave empty for no title.
47
+ * Title for the drawer. Accepts a string or ReactNode (e.g., a logo). Leave empty for no title.
48
48
  */
49
- title?: string;
49
+ title?: ReactNode;
50
50
  /**
51
51
  * Custom width for the drawer. Accepts any valid CSS value (e.g. '50vw', '800px', '40rem'). Overrides the `size` prop.
52
52
  */
@@ -55,4 +55,4 @@ export interface DrawerProps extends ComponentPropsWithoutRef<'div'> {
55
55
  /**
56
56
  * Drawer UI component
57
57
  */
58
- export declare const Drawer: ({ ariaLabel, children, className, closeButtonLabel, disableOutsideClick, hasCloseButton, isOpen: isOpenProp, placement, setIsOpen: setIsOpenProp, size, title, width, ...props }: DrawerProps) => any;
58
+ export declare const Drawer: ({ ariaLabel, children, className, closeButtonLabel, disableOutsideClick, hasCloseButton, isOpen: isOpenProp, placement, setIsOpen: setIsOpenProp, size, title, width, ...props }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,45 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { PDSIcon } from '../../icons/Icon/Icon';
3
+ import './full-screen-overlay.css';
4
+ export interface FullScreenOverlayProps extends ComponentPropsWithoutRef<'div'> {
5
+ /**
6
+ * Accessible label for the overlay.
7
+ */
8
+ ariaLabel: string;
9
+ /**
10
+ * Background color of the overlay surface.
11
+ * - 'default': white / dark-mode dark (default)
12
+ * - 'default-secondary': slightly off-white / dark-mode slightly lighter dark
13
+ */
14
+ background?: 'default' | 'default-secondary';
15
+ /**
16
+ * Content rendered inside the overlay.
17
+ */
18
+ children: ReactNode;
19
+ /**
20
+ * Additional class names.
21
+ */
22
+ className?: string;
23
+ /**
24
+ * Accessible label for the close button.
25
+ */
26
+ closeButtonLabel?: string;
27
+ /**
28
+ * Icon to use for the close button. Defaults to 'compress'.
29
+ */
30
+ closeIconName?: PDSIcon;
31
+ /**
32
+ * Whether to show the built-in close button. Set to false when providing
33
+ * your own close control (e.g. in a UtilityBar).
34
+ */
35
+ hasCloseButton?: boolean;
36
+ /**
37
+ * Whether the overlay is currently open.
38
+ */
39
+ isOpen: boolean;
40
+ /**
41
+ * Callback when the overlay should close.
42
+ */
43
+ onClose: () => void;
44
+ }
45
+ export declare const FullScreenOverlay: ({ ariaLabel, background, children, className, closeButtonLabel, closeIconName, hasCloseButton, isOpen, onClose, ...props }: FullScreenOverlayProps) => import("react/jsx-runtime").JSX.Element;
@@ -40,7 +40,9 @@ export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
40
40
  */
41
41
  setModalIsOpen?: (isOpen: boolean) => void;
42
42
  /**
43
- * The width of the modal.
43
+ * The width of the modal at the medium breakpoint and above. Below that
44
+ * (`--pds-bp-s-only`), every size renders at the same width regardless
45
+ * of this prop.
44
46
  */
45
47
  size?: 's' | 'm' | 'l' | 'xl';
46
48
  /**
@@ -1,6 +1,7 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { HeadingLevelCommon } from '../../libs/types/custom-types';
2
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
3
  import './pagination.css';
4
+ export type PaginationSize = 's' | 'm';
4
5
  /**
5
6
  * Prop types for Pagination
6
7
  */
@@ -43,6 +44,10 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
43
44
  * For example: `onPageChange={(page) => setCurrentPage(page)}`
44
45
  */
45
46
  onPageChange?: (page: number) => void;
47
+ /**
48
+ * Size of the pagination items.
49
+ */
50
+ size?: PaginationSize;
46
51
  /**
47
52
  * Total number of items to paginate.
48
53
  */
@@ -51,4 +56,4 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
51
56
  /**
52
57
  * Pagination UI component
53
58
  */
54
- export declare const Pagination: ({ bufferCount, className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, totalItemCount, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
59
+ export declare const Pagination: ({ bufferCount, className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, size, totalItemCount, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,55 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
+ import './pagination-chapter.css';
4
+ /**
5
+ * Prop types for PaginationChapter
6
+ */
7
+ export interface PaginationChapterProps extends ComponentPropsWithoutRef<'nav'> {
8
+ /**
9
+ * Additional class names.
10
+ */
11
+ className?: string;
12
+ /**
13
+ * Current page number.
14
+ */
15
+ currentPage: number;
16
+ /**
17
+ * Heading level. Defaults to `h2`.
18
+ */
19
+ headingLevel?: HeadingLevelCommon;
20
+ /**
21
+ * Heading text for the pagination component. Will only be accessible to screen readers.
22
+ */
23
+ headingText?: string;
24
+ /**
25
+ * Number of items per page.
26
+ */
27
+ itemsPerPage?: number;
28
+ /**
29
+ * Translatable label strings.
30
+ */
31
+ labelStrings?: {
32
+ next: string;
33
+ previous: string;
34
+ };
35
+ /**
36
+ * Title of the next page. Displayed as the clickable label on the next button.
37
+ */
38
+ nextPage?: string;
39
+ /**
40
+ * Callback to handle page change.
41
+ */
42
+ onPageChange?: (page: number) => void;
43
+ /**
44
+ * Title of the previous page. Displayed as the clickable label on the previous button.
45
+ */
46
+ previousPage?: string;
47
+ /**
48
+ * Total number of items to paginate.
49
+ */
50
+ totalItemCount: number;
51
+ }
52
+ /**
53
+ * PaginationChapter UI component — previous/next navigation with page labels.
54
+ */
55
+ export declare const PaginationChapter: ({ className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, nextPage, onPageChange, previousPage, totalItemCount, ...props }: PaginationChapterProps) => import("react/jsx-runtime").JSX.Element;