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

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 +13602 -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 +81 -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
@@ -1,47 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import './payment-card.css';
3
- /**
4
- * Prop types for PaymentCard
5
- */
6
- export interface PaymentCardProps extends ComponentPropsWithoutRef<'div'> {
7
- /**
8
- * The name of the cardholder.
9
- */
10
- cardholderName?: string;
11
- /**
12
- * The last four digits of the card number.
13
- */
14
- cardNumber?: number;
15
- /**
16
- * The type of payment icon to display.
17
- */
18
- cardType?: 'visa' | 'mastercard' | 'amex' | 'discover';
19
- /**
20
- * A string for the lower left corner.
21
- */
22
- cardUsage?: string;
23
- /**
24
- * Additional class names
25
- */
26
- className?: string;
27
- /**
28
- * Function for when “view details” is clicked
29
- */
30
- detailsCallback?: () => void;
31
- /**
32
- * Translation string for “view details”
33
- */
34
- detailsLabel?: string;
35
- /**
36
- * Expiration date of the card in MM/YY format.
37
- */
38
- expDate?: string;
39
- /**
40
- * Function for when this card is selected
41
- */
42
- selectionCallback?: () => void;
43
- }
44
- /**
45
- * PaymentCard UI component
46
- */
47
- export declare const PaymentCard: ({ cardholderName, cardNumber, cardType, cardUsage, className, detailsCallback, detailsLabel, expDate, selectionCallback, ...props }: PaymentCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,95 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
- import { ListItems } from '../../ComparisonList/ComparisonList';
4
- import './pricing-card.css';
5
- interface PrimaryCallToAction {
6
- buttonAction?: () => void;
7
- disabled?: boolean;
8
- label?: string;
9
- linkTarget?: string;
10
- linkUrl?: string;
11
- type?: 'button' | 'link';
12
- variant?: 'primary' | 'secondary';
13
- }
14
- interface SecondaryCallToAction {
15
- buttonAction?: () => void;
16
- label?: string;
17
- linkTarget?: string;
18
- linkUrl?: string;
19
- type?: 'button' | 'link';
20
- }
21
- interface PlanPricingData {
22
- customActionLabel?: string;
23
- label?: string;
24
- listItems?: ListItems[];
25
- listLabel?: string;
26
- price?: string;
27
- priceDetails?: string;
28
- pricePrefix?: string;
29
- savingsBadgeLabel?: string;
30
- savingsDetails?: string;
31
- }
32
- interface StatusBadgeLabels {
33
- currentPlan?: string;
34
- mostPopular?: string;
35
- }
36
- interface PricingCardProps extends ComponentPropsWithoutRef<'div'> {
37
- /**
38
- * The primary call to action.
39
- */
40
- actionPrimary?: PrimaryCallToAction;
41
- /**
42
- * An optional secondary call to action.
43
- */
44
- actionSecondary?: SecondaryCallToAction;
45
- /**
46
- * Additional class names for the card item.
47
- */
48
- className?: string;
49
- /**
50
- * Additional class names for the card container.
51
- */
52
- containerClassName?: string;
53
- /**
54
- * Has comparison list. Will be rendered below the card if true.
55
- * Add corresponding `comparisonListId` to each planPricingData object.
56
- */
57
- hasComparisonList?: boolean;
58
- /**
59
- * Heading level for the plan name.
60
- */
61
- headingLevel?: HeadingLevelCommon;
62
- /**
63
- * Optional function to handle the change event of the select input. Only valid when multiple tiers of planPricingData are present.
64
- */
65
- onTierChange?: (value: any) => void;
66
- /**
67
- * A brief description of the plan.
68
- */
69
- planDescription?: string;
70
- /**
71
- * The name of the plan.
72
- */
73
- planName?: string;
74
- /**
75
- * Plan pricing data. An array of objects.
76
- */
77
- planPricingData: PlanPricingData[];
78
- /**
79
- * Label for the plan size select dropdown. Available to screen readers only. Provide translation string if needed.
80
- */
81
- selectLabel?: string;
82
- /**
83
- * Status badge labels. Provide translation strings if needed.
84
- */
85
- statusBadgeLabels: StatusBadgeLabels;
86
- /**
87
- * Status badge type. Leave empty for no badge. Only one badge of each type should be used in a group of Pricing Cards.
88
- */
89
- statusBadgeType?: 'currentPlan' | 'mostPopular';
90
- }
91
- /**
92
- * PricingCard UI component
93
- */
94
- export declare const PricingCard: ({ actionPrimary, actionSecondary, className, hasComparisonList, headingLevel, onTierChange, planDescription, planName, planPricingData, selectLabel, statusBadgeLabels, statusBadgeType, ...props }: PricingCardProps) => import("react/jsx-runtime").JSX.Element;
95
- export {};
@@ -1,50 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { HeadingLevelCommon, SiteStatus } from '../../../libs/types/custom-types';
3
- import './site-card.css';
4
- /**
5
- * Prop types for SiteCard
6
- */
7
- export interface SiteCardProps extends ComponentPropsWithoutRef<'div'> {
8
- /**
9
- * Additional class names
10
- */
11
- className?: string;
12
- /**
13
- * Translatable text for the "Go to" link.
14
- */
15
- gotoText?: string;
16
- /**
17
- * Heading level of the card title.
18
- */
19
- headingLevel?: HeadingLevelCommon;
20
- /**
21
- * Callback for when the card is clicked.
22
- * Should only be used for special handling of restricted sites.
23
- * Will override the default link behavior if provided.
24
- */
25
- onClick?: () => void;
26
- /**
27
- * Image URL for the site.
28
- */
29
- siteImage?: string;
30
- /**
31
- * Link to the site dashboard.
32
- */
33
- siteLink: ReactNode;
34
- /**
35
- * Name of the site.
36
- */
37
- siteName?: string;
38
- /**
39
- * Plan of the site.
40
- */
41
- sitePlan?: string;
42
- /**
43
- * Status of the site.
44
- */
45
- siteStatus?: SiteStatus;
46
- }
47
- /**
48
- * SiteCard UI component
49
- */
50
- export declare const SiteCard: ({ className, gotoText, headingLevel, onClick, siteImage, siteLink, siteName, sitePlan, siteStatus, ...props }: SiteCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import type { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
- import './footer-heading.css';
4
- interface FooterHeadingProps {
5
- /**
6
- * Additional class names
7
- */
8
- className?: string;
9
- /**
10
- * Heading level
11
- */
12
- headingLevel?: HeadingLevelCommon;
13
- /**
14
- * Heading text
15
- */
16
- headingText: string;
17
- }
18
- /**
19
- * Footer Heading UI component
20
- */
21
- export declare const FooterHeading: ({ className, headingLevel, headingText, ...props }: FooterHeadingProps & ComponentPropsWithoutRef<HeadingLevelCommon>) => import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1,26 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import type { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
- import './footer-links.css';
4
- interface FooterLinksProps extends ComponentPropsWithoutRef<'div'> {
5
- /**
6
- * Additional class names
7
- */
8
- className?: string;
9
- /**
10
- * Heading level
11
- */
12
- headingLevel?: HeadingLevelCommon;
13
- /**
14
- * Heading text
15
- */
16
- headingText: string;
17
- /**
18
- * Array of links
19
- */
20
- linkItems?: ReactNode[];
21
- }
22
- /**
23
- * Footer Links UI component
24
- */
25
- export declare const FooterLinks: ({ className, headingLevel, headingText, linkItems, ...props }: FooterLinksProps) => import("react/jsx-runtime").JSX.Element;
26
- export {};
@@ -1,34 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ContainerWidth } from '../../../libs/types/custom-types';
3
- import './site-footer.css';
4
- interface SiteFooterProps extends ComponentPropsWithoutRef<'footer'> {
5
- /**
6
- * HTML element to render. Use 'footer' for standalone usage or 'div' when nested inside another footer landmark.
7
- */
8
- as?: 'footer' | 'div';
9
- /**
10
- * Footer content.
11
- */
12
- children?: ReactNode;
13
- /**
14
- * Additional class names
15
- */
16
- className?: string;
17
- /**
18
- * PDS container width.
19
- */
20
- containerWidth?: ContainerWidth;
21
- /**
22
- * Should the footer have a top border?
23
- */
24
- hasTopBorder?: boolean;
25
- /**
26
- * Legal policy links.
27
- */
28
- legalLinks?: Array<'privacy' | 'dataSubjectRequest' | 'cookiePolicy' | 'termsOfUse' | 'acceptableUse' | 'accessibilityStatement'>;
29
- }
30
- /**
31
- * SiteFooter UI component
32
- */
33
- export declare const SiteFooter: ({ as: Element, children, className, containerWidth, hasTopBorder, legalLinks, ...props }: SiteFooterProps) => import("react/jsx-runtime").JSX.Element;
34
- export {};
@@ -1 +0,0 @@
1
- export declare const docsFooterContent: import("react/jsx-runtime").JSX.Element;
@@ -1,35 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { DashboardNavItemProps } from './DashboardNavItem';
3
- import './dashboard-nav.css';
4
- /**
5
- * Prop types for DashboardNav
6
- */
7
- export interface DashboardNavProps extends ComponentPropsWithoutRef<'nav'> {
8
- /**
9
- * Aria label for the navigation.
10
- */
11
- ariaLabel: string;
12
- /**
13
- * Additional class names
14
- */
15
- className?: string;
16
- /**
17
- * Labels for translatable strings.
18
- */
19
- labels?: {
20
- submenu: string;
21
- toggle: string;
22
- };
23
- /**
24
- * Menu items to render.
25
- */
26
- menuItems: DashboardNavItemProps[];
27
- /**
28
- * Text to display in the mobile menu trigger button when no active link is found.
29
- */
30
- mobileMenuSelectTextFallback?: string;
31
- }
32
- /**
33
- * DashboardNav UI component
34
- */
35
- export declare const DashboardNav: ({ ariaLabel, className, labels, menuItems, mobileMenuSelectTextFallback, ...props }: DashboardNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,24 +0,0 @@
1
- import { NavigationItem } from '../../../libs/types/navigation-types';
2
- import { PDSIcon } from '../../icons/Icon/Icon';
3
- import './dashboard-nav.css';
4
- export interface DashboardNavItemProps extends NavigationItem {
5
- /**
6
- * Icon to display next to the link content.
7
- */
8
- icon?: PDSIcon;
9
- /**
10
- * Flag indicating whether the sidebar is expanded.
11
- */
12
- isSidebarExpanded?: boolean;
13
- /**
14
- * Labels for translatable strings.
15
- */
16
- labels?: {
17
- submenu: string;
18
- toggle: string;
19
- };
20
- }
21
- /**
22
- * DashboardNavItem UI component
23
- */
24
- export declare const DashboardNavItem: ({ icon, isActive, isSidebarExpanded, labels, linkContent, links, }: DashboardNavItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,33 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { NavMenuItem } from '../../../libs/types/navigation-types';
3
- import './nav-menu.css';
4
- /**
5
- * Prop types for NavMenu
6
- */
7
- interface NavMenuProps extends ComponentPropsWithoutRef<'nav'> {
8
- /**
9
- * Aria label for `nav` element.
10
- */
11
- ariaLabel: string;
12
- /**
13
- * Additional class names
14
- */
15
- className?: string;
16
- /**
17
- * Color scheme.
18
- */
19
- colorType?: 'default' | 'reverse';
20
- /**
21
- * Menu Items.
22
- */
23
- menuItems?: NavMenuItem[];
24
- /**
25
- * Mobile menu will be enabled when viewport is at or below this number in pixels.
26
- */
27
- mobileMenuMaxWidth?: number;
28
- }
29
- /**
30
- * NavMenu UI component
31
- */
32
- export declare const NavMenu: ({ ariaLabel, className, colorType, menuItems, mobileMenuMaxWidth, ...props }: NavMenuProps) => import("react/jsx-runtime").JSX.Element;
33
- export {};
@@ -1,24 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { NavMenuItem } from '../../../libs/types/navigation-types';
3
- /**
4
- * Prop types for NavMenuDropdown
5
- */
6
- interface NavMenuDropdownProps extends ComponentPropsWithoutRef<'button'> {
7
- /**
8
- * Dropdown items.
9
- */
10
- items?: NavMenuItem[];
11
- /**
12
- * Dropdown label.
13
- */
14
- label?: string;
15
- /**
16
- * Mobile menu will be enabled when viewport is at or below this number in pixels.
17
- */
18
- mobileMenuMaxWidth?: number;
19
- }
20
- /**
21
- * NavMenuDropdown UI component
22
- */
23
- export declare const NavMenuDropdown: ({ items, label, mobileMenuMaxWidth, }: NavMenuDropdownProps) => import("react/jsx-runtime").JSX.Element;
24
- export {};
@@ -1,53 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactElement } from 'react';
2
- import { NavigationItem } from '../../../libs/types/navigation-types';
3
- import './side-nav-compact.css';
4
- export type SideNavCompactItem = NavigationItem & {
5
- /**
6
- * A boolean indicating whether the item is a submenu.
7
- */
8
- path?: string;
9
- };
10
- /**
11
- * Prop types for SideNavCompact
12
- */
13
- export interface SideNavCompactProps extends ComponentPropsWithoutRef<'nav'> {
14
- /**
15
- * Aria label for the navigation.
16
- */
17
- ariaLabel: string;
18
- /**
19
- * Additional class names
20
- */
21
- className?: string;
22
- /**
23
- * Whether the menu should be rendered as a mobile menu when the viewport is at or below the mobileMenuMaxWidth.
24
- */
25
- hasMobileMenu?: boolean;
26
- /**
27
- * Heading text. If a link is passed, it will be rendered as a link.
28
- */
29
- headingText?: string | ReactElement;
30
- /**
31
- * Labels for translatable strings.
32
- */
33
- labels?: {
34
- submenu: string;
35
- toggle: string;
36
- };
37
- /**
38
- * Menu items to render.
39
- */
40
- menuItems: SideNavCompactItem[];
41
- /**
42
- * Mobile menu will be enabled when viewport is at or below this number in pixels.
43
- */
44
- mobileMenuMaxWidth?: number;
45
- /**
46
- * Text to display in the mobile menu trigger button when no active link is found.
47
- */
48
- mobileMenuSelectTextFallback?: string;
49
- }
50
- /**
51
- * SideNavCompact UI component
52
- */
53
- export declare const SideNavCompact: ({ ariaLabel, className, hasMobileMenu, headingText, labels, menuItems, mobileMenuMaxWidth, mobileMenuSelectTextFallback, ...props }: SideNavCompactProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,38 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import './notification-hub-icon.css';
3
- /**
4
- * Notification categories
5
- */
6
- export type NotificationCategory = 'billing' | 'code-pipeline' | 'deployment' | 'platform';
7
- /**
8
- * Notification type levels
9
- */
10
- export type NotificationType = 'critical' | 'info' | 'warning';
11
- /**
12
- * Prop types for NotificationHubIcon
13
- */
14
- export interface NotificationHubIconProps extends ComponentPropsWithoutRef<'span'> {
15
- /**
16
- * Category of the notification (determines icon)
17
- */
18
- category: NotificationCategory;
19
- /**
20
- * Additional class names
21
- */
22
- className?: string;
23
- /**
24
- * Display variant for the icon
25
- * @default 'inbox'
26
- */
27
- displayType?: 'inbox' | 'popover';
28
- /**
29
- * Type of the notification (determines color)
30
- */
31
- type?: NotificationType;
32
- }
33
- /**
34
- * NotificationHubIcon UI component
35
- *
36
- * Icon representing a notification's category with color based on type.
37
- */
38
- export declare const NotificationHubIcon: ({ category, className, displayType, type, ...props }: NotificationHubIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,118 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { NotificationCategory, NotificationType } from '../../notifications/NotificationHubIcon/NotificationHubIcon';
3
- import './notifications-popover.css';
4
- /**
5
- * Notification item type
6
- */
7
- export type NotificationItem = {
8
- /**
9
- * Category of the notification (determines icon)
10
- */
11
- category: NotificationCategory;
12
- /**
13
- * Unique identifier for the notification
14
- */
15
- id: string;
16
- /**
17
- * Whether the notification has been read
18
- */
19
- read: boolean;
20
- /**
21
- * Optional site name associated with the notification
22
- */
23
- siteName?: string;
24
- /**
25
- * Timestamp of the notification (should be formatted string)
26
- */
27
- timestamp: string;
28
- /**
29
- * Title/message of the notification
30
- */
31
- title: string;
32
- /**
33
- * Type of the notification (determines color)
34
- */
35
- type: NotificationType;
36
- };
37
- /**
38
- * Prop types for NotificationsPopover
39
- */
40
- export interface NotificationsPopoverProps extends ComponentPropsWithoutRef<'span'> {
41
- /**
42
- * Aria label for the trigger button
43
- * @default 'Notifications'
44
- */
45
- ariaLabel?: string;
46
- /**
47
- * Auto-close popover when a notification is clicked
48
- * @default true
49
- */
50
- autoCloseOnClick?: boolean;
51
- /**
52
- * Additional class names
53
- */
54
- className?: string;
55
- /**
56
- * Text to display when there are no notifications
57
- * @default 'No notifications'
58
- */
59
- emptyText?: string;
60
- /**
61
- * Text to display while loading
62
- * @default 'Loading notifications...'
63
- */
64
- loadingText?: string;
65
- /**
66
- * Maximum number of notifications to display in the list
67
- * @default 10
68
- */
69
- maxVisibleItems?: number;
70
- /**
71
- * Heading text for the popover panel
72
- * @default 'Notifications'
73
- */
74
- menuHeading?: string;
75
- /**
76
- * Array of notification items to display
77
- */
78
- notifications?: NotificationItem[];
79
- /**
80
- * Callback function when a notification is clicked
81
- */
82
- onNotificationClick?: (notification: NotificationItem) => void;
83
- /**
84
- * Callback function when the "View All" button is clicked
85
- */
86
- onViewAllClick?: () => void;
87
- /**
88
- * Whether the notifications are currently loading
89
- */
90
- showLoading?: boolean;
91
- /**
92
- * Can be used to show a total number of unread notifications across all notifications (not just visible ones)
93
- * Leave undefined to calculate from the notifications array
94
- * Will use the greater of this value or the calculated count from the notifications array
95
- */
96
- unreadCount?: number;
97
- /**
98
- * Label for unread status (screen reader only)
99
- * @default 'unread'
100
- */
101
- unreadLabel?: string;
102
- /**
103
- * Text for the "View All" button
104
- * @default 'View all'
105
- */
106
- viewAllText?: string;
107
- /**
108
- * If true, the component will be styled and rendered to work with the mobile version of the navbar menu
109
- * @default true
110
- */
111
- withinNavbar?: boolean;
112
- }
113
- /**
114
- * NotificationsPopover UI component
115
- *
116
- * Bell icon trigger that opens a popover showing recent notifications.
117
- */
118
- export declare const NotificationsPopover: ({ ariaLabel, autoCloseOnClick, className, emptyText, loadingText, maxVisibleItems, menuHeading, notifications, onNotificationClick, onViewAllClick, showLoading, unreadCount, unreadLabel, viewAllText, withinNavbar, ...props }: NotificationsPopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import '../tiles-common.css';
3
- import './avatar-tile-list.css';
4
- export type AvatarTileListItem = {
5
- alt?: string;
6
- image?: string;
7
- linkContent?: ReactNode;
8
- name?: string;
9
- org?: string;
10
- title?: string;
11
- };
12
- /**
13
- * Prop types for AvatarTileList
14
- */
15
- export interface AvatarTileListProps extends ComponentPropsWithoutRef<'div'> {
16
- /**
17
- * Additional class names
18
- */
19
- className?: string;
20
- /**
21
- * List of items for each tile.
22
- */
23
- listItems: AvatarTileListItem[];
24
- }
25
- /**
26
- * AvatarTileList UI component
27
- */
28
- export declare const AvatarTileList: ({ className, listItems, ...props }: AvatarTileListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,42 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
- import './../tiles-common.css';
4
- import './tile.css';
5
- export type TileDisplayType = 'border' | 'clean' | 'clean-static';
6
- /**
7
- * Prop types for Tile
8
- */
9
- export interface TileProps extends ComponentPropsWithoutRef<'div'> {
10
- /**
11
- * Additional class names
12
- */
13
- className?: string;
14
- /**
15
- * Display type.
16
- */
17
- displayType?: TileDisplayType;
18
- /**
19
- * Heading level or `span`.
20
- */
21
- headingLevel?: HeadingLevelCommon;
22
- /**
23
- * Heading text.
24
- */
25
- headingText?: string;
26
- /**
27
- * Image source.
28
- */
29
- imageSrc?: string;
30
- /**
31
- * A link element using the router of your choice.
32
- */
33
- linkContent?: ReactNode;
34
- /**
35
- * Summary paragraph.
36
- */
37
- summary?: string;
38
- }
39
- /**
40
- * Tile UI component
41
- */
42
- export declare const Tile: ({ className, displayType, headingLevel, headingText, imageSrc, linkContent, summary, ...props }: TileProps) => import("react/jsx-runtime").JSX.Element;