@pantheon-systems/pds-toolkit-react 1.0.0-dev.99 → 1.0.0-dev.9998

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 (286) hide show
  1. package/_dist/components/Avatar/Avatar.d.ts +36 -0
  2. package/_dist/components/BranchDiff/BranchDiff.d.ts +43 -0
  3. package/_dist/components/CTALink/CTALink.d.ts +20 -0
  4. package/_dist/components/CTASlice/CTASlice.d.ts +43 -0
  5. package/_dist/components/Callout/Callout.d.ts +31 -0
  6. package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
  7. package/_dist/components/CodeBlock/CodeBlock.d.ts +85 -0
  8. package/_dist/components/CodeBlock/code-examples.d.ts +6 -0
  9. package/_dist/components/CodeBlock/themes/index.d.ts +2 -0
  10. package/_dist/components/CodeBlock/themes/pdsDark.d.ts +2 -0
  11. package/_dist/components/CodeBlock/themes/pdsLight.d.ts +2 -0
  12. package/_dist/components/ComparisonList/ComparisonList.d.ts +42 -0
  13. package/_dist/components/DashboardStat/DashboardStat.d.ts +28 -0
  14. package/_dist/components/FileDiff/FileDiff.d.ts +35 -0
  15. package/_dist/components/FlowSteps/FlowSteps.d.ts +37 -0
  16. package/_dist/components/FlowSteps/example-steps.d.ts +15 -0
  17. package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +35 -0
  18. package/_dist/components/Modal/Modal.d.ts +54 -0
  19. package/_dist/components/Pagination/Pagination.d.ts +54 -0
  20. package/_dist/components/Pagination/usePagination.d.ts +7 -0
  21. package/_dist/components/PantheonLogo/PantheonLogo.d.ts +32 -0
  22. package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +4 -0
  23. package/_dist/components/Picture/Picture.d.ts +37 -0
  24. package/_dist/components/Popover/Popover.d.ts +66 -0
  25. package/_dist/components/PullQuote/PullQuote.d.ts +34 -0
  26. package/_dist/components/RefreshChecker/RefreshChecker.d.ts +54 -0
  27. package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +57 -0
  28. package/_dist/components/Skiplink/Skiplink.d.ts +21 -0
  29. package/_dist/components/SocialLinks/SocialLinks.d.ts +23 -0
  30. package/_dist/components/StatusIndicator/StatusIndicator.d.ts +24 -0
  31. package/_dist/components/Table/Table.d.ts +27 -0
  32. package/_dist/components/TableOfContents/TableOfContents.d.ts +45 -0
  33. package/_dist/components/Tabs/Tabs.d.ts +63 -0
  34. package/_dist/components/Tag/Tag.d.ts +39 -0
  35. package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +32 -0
  36. package/_dist/components/Tooltip/Tooltip.d.ts +51 -0
  37. package/_dist/components/VideoEmbed/VideoEmbed.d.ts +28 -0
  38. package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +27 -0
  39. package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +35 -0
  40. package/_dist/components/badges/Tally/Tally.d.ts +38 -0
  41. package/_dist/components/buttons/Button/Button.d.ts +66 -0
  42. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +48 -0
  43. package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +31 -0
  44. package/_dist/components/buttons/CloseButton/CloseButton.d.ts +27 -0
  45. package/_dist/components/buttons/IconButton/IconButton.d.ts +50 -0
  46. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +75 -0
  47. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +63 -0
  48. package/_dist/components/buttons/SplitButton/SplitButton.d.ts +41 -0
  49. package/_dist/components/buttons/SplitButton/split-button-sample-data.d.ts +17 -0
  50. package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +56 -0
  51. package/_dist/components/cards/Card/Card.d.ts +29 -0
  52. package/_dist/components/cards/CardHeading/CardHeading.d.ts +32 -0
  53. package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +60 -0
  54. package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +36 -0
  55. package/_dist/components/cards/LinksCard/LinksCard.d.ts +29 -0
  56. package/_dist/components/cards/LinksCard/links-card-sample-data.d.ts +2 -0
  57. package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +57 -0
  58. package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +47 -0
  59. package/_dist/components/cards/PricingCard/PricingCard.d.ts +90 -0
  60. package/_dist/components/cards/SiteCard/SiteCard.d.ts +45 -0
  61. package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +37 -0
  62. package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +69 -0
  63. package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +47 -0
  64. package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +22 -0
  65. package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +26 -0
  66. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +30 -0
  67. package/_dist/components/footer/SiteFooter/footer-content.d.ts +2 -0
  68. package/_dist/components/icons/Icon/Icon.d.ts +732 -0
  69. package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +21 -0
  70. package/_dist/components/icons/PaymentIcon/svgData.d.ts +8 -0
  71. package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +12 -0
  72. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +96 -0
  73. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +64 -0
  74. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +80 -0
  75. package/_dist/components/inputs/Combobox/Combobox.d.ts +138 -0
  76. package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +83 -0
  77. package/_dist/components/inputs/FileUpload/FileUpload.d.ts +93 -0
  78. package/_dist/components/inputs/InputGroup/InputGroup.d.ts +19 -0
  79. package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +104 -0
  80. package/_dist/components/inputs/Select/Select.d.ts +122 -0
  81. package/_dist/components/inputs/Switch/Switch.d.ts +74 -0
  82. package/_dist/components/inputs/TextInput/TextInput.d.ts +139 -0
  83. package/_dist/components/inputs/Textarea/Textarea.d.ts +110 -0
  84. package/_dist/components/inputs/input-types.d.ts +1 -0
  85. package/_dist/components/inputs/input-utilities.d.ts +96 -0
  86. package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +62 -0
  87. package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +32 -0
  88. package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +23 -0
  89. package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +29 -0
  90. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +35 -0
  91. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +25 -0
  92. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +70 -0
  93. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +39 -0
  94. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +28 -0
  95. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +43 -0
  96. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +24 -0
  97. package/_dist/components/navigation/Navbar/Navbar.d.ts +60 -0
  98. package/_dist/components/navigation/SideNav/SideNav.d.ts +39 -0
  99. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +53 -0
  100. package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +50 -0
  101. package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +25 -0
  102. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +43 -0
  103. package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +33 -0
  104. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +69 -0
  105. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +89 -0
  106. package/_dist/components/navigation/navigation-types.d.ts +29 -0
  107. package/_dist/components/navigation/navigation-utilities.d.ts +90 -0
  108. package/_dist/components/notifications/Banner/Banner.d.ts +47 -0
  109. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +37 -0
  110. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +53 -0
  111. package/_dist/components/notifications/Toaster/Toast.d.ts +46 -0
  112. package/_dist/components/notifications/Toaster/Toaster.d.ts +29 -0
  113. package/_dist/components/notifications/Toaster/useToast.d.ts +10 -0
  114. package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +32 -0
  115. package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +24 -0
  116. package/_dist/components/panels/Panel/Panel.d.ts +35 -0
  117. package/_dist/components/panels/PanelList/PanelList.d.ts +28 -0
  118. package/_dist/components/panels/PanelList/PanelRow.d.ts +27 -0
  119. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +53 -0
  120. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +41 -0
  121. package/_dist/components/steppers/Stepper/Stepper.d.ts +54 -0
  122. package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +52 -0
  123. package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +28 -0
  124. package/_dist/components/steppers/VerticalStepper/vertical-stepper-sample-data.d.ts +27 -0
  125. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +28 -0
  126. package/_dist/components/tiles/Tile/Tile.d.ts +42 -0
  127. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +29 -0
  128. package/_dist/css/component-css/pds-avatar-tile-list.css +1 -1
  129. package/_dist/css/component-css/pds-avatar.css +1 -1
  130. package/_dist/css/component-css/pds-banner.css +1 -1
  131. package/_dist/css/component-css/pds-branch-diff.css +1 -0
  132. package/_dist/css/component-css/pds-breadcrumb.css +1 -0
  133. package/_dist/css/component-css/pds-button-link.css +1 -1
  134. package/_dist/css/component-css/pds-button-nav.css +1 -0
  135. package/_dist/css/component-css/pds-button.css +33 -69
  136. package/_dist/css/component-css/pds-callout.css +1 -1
  137. package/_dist/css/component-css/pds-card-heading.css +1 -0
  138. package/_dist/css/component-css/pds-card-select-group.css +1 -1
  139. package/_dist/css/component-css/pds-card.css +1 -1
  140. package/_dist/css/component-css/pds-checkbox-group.css +1 -1
  141. package/_dist/css/component-css/pds-checkbox.css +1 -1
  142. package/_dist/css/component-css/pds-clipboard-button.css +0 -0
  143. package/_dist/css/component-css/pds-close-button.css +1 -0
  144. package/_dist/css/component-css/pds-code-block-legacy.css +1 -0
  145. package/_dist/css/component-css/pds-code-block.css +1 -0
  146. package/_dist/css/component-css/pds-combobox-multiselect.css +2 -0
  147. package/_dist/css/component-css/pds-combobox.css +1 -0
  148. package/_dist/css/component-css/pds-compact-empty-state.css +1 -0
  149. package/_dist/css/component-css/pds-comparison-list.css +1 -1
  150. package/_dist/css/component-css/pds-cta-link.css +1 -1
  151. package/_dist/css/component-css/pds-cta-slice.css +1 -1
  152. package/_dist/css/component-css/pds-dashboard-nav.css +5 -0
  153. package/_dist/css/component-css/pds-dashboard-search.css +1 -0
  154. package/_dist/css/component-css/pds-dashboard-stat.css +1 -0
  155. package/_dist/css/component-css/pds-dropdown-menu.css +2 -0
  156. package/_dist/css/component-css/pds-empty-state-card.css +1 -0
  157. package/_dist/css/component-css/pds-expansion-panel-group.css +1 -1
  158. package/_dist/css/component-css/pds-expansion-panel.css +1 -1
  159. package/_dist/css/component-css/pds-file-diff.css +1 -0
  160. package/_dist/css/component-css/pds-file-upload.css +7 -0
  161. package/_dist/css/component-css/pds-flow-steps.css +1 -0
  162. package/_dist/css/component-css/pds-footer-heading.css +1 -1
  163. package/_dist/css/component-css/pds-footer-links.css +1 -1
  164. package/_dist/css/component-css/pds-horizontal-empty-state.css +1 -0
  165. package/_dist/css/component-css/pds-icon-button.css +13 -5
  166. package/_dist/css/component-css/pds-icon-story-only.css +1 -1
  167. package/_dist/css/component-css/pds-index.css +83 -118
  168. package/_dist/css/component-css/pds-indicator-badge.css +15 -21
  169. package/_dist/css/component-css/pds-inline-message.css +1 -0
  170. package/_dist/css/component-css/pds-input-group.css +1 -1
  171. package/_dist/css/component-css/pds-input-utilities.css +1 -0
  172. package/_dist/css/component-css/pds-link-new-window.css +1 -0
  173. package/_dist/css/component-css/pds-links-card.css +1 -1
  174. package/_dist/css/component-css/pds-menu-button.css +2 -2
  175. package/_dist/css/component-css/pds-modal.css +1 -1
  176. package/_dist/css/component-css/pds-nav-menu.css +5 -1
  177. package/_dist/css/component-css/pds-navbar.css +1 -5
  178. package/_dist/css/component-css/pds-new-site-card.css +1 -1
  179. package/_dist/css/component-css/pds-pagination.css +1 -0
  180. package/_dist/css/component-css/pds-panel-list.css +1 -0
  181. package/_dist/css/component-css/pds-panel.css +1 -1
  182. package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
  183. package/_dist/css/component-css/pds-payment-card.css +1 -0
  184. package/_dist/css/component-css/pds-payment-icon.css +1 -0
  185. package/_dist/css/component-css/pds-picture.css +1 -0
  186. package/_dist/css/component-css/pds-popover.css +1 -1
  187. package/_dist/css/component-css/pds-pricing-card.css +1 -1
  188. package/_dist/css/component-css/pds-progress-bar.css +1 -1
  189. package/_dist/css/component-css/pds-progress-ring.css +1 -1
  190. package/_dist/css/component-css/pds-pull-quote.css +1 -1
  191. package/_dist/css/component-css/pds-radio-group.css +1 -1
  192. package/_dist/css/component-css/pds-refresh-checker.css +1 -0
  193. package/_dist/css/component-css/pds-section-message.css +1 -1
  194. package/_dist/css/component-css/pds-segmented-button.css +1 -0
  195. package/_dist/css/component-css/pds-select.css +1 -4
  196. package/_dist/css/component-css/pds-side-nav-compact.css +1 -0
  197. package/_dist/css/component-css/pds-side-nav-global.css +5 -0
  198. package/_dist/css/component-css/pds-side-nav.css +2 -1
  199. package/_dist/css/component-css/pds-site-card.css +1 -1
  200. package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -0
  201. package/_dist/css/component-css/pds-site-footer.css +1 -1
  202. package/_dist/css/component-css/pds-skeleton.css +1 -0
  203. package/_dist/css/component-css/pds-skiplink.css +1 -0
  204. package/_dist/css/component-css/pds-social-links.css +1 -1
  205. package/_dist/css/component-css/pds-spinner.css +1 -1
  206. package/_dist/css/component-css/pds-split-button.css +1 -1
  207. package/_dist/css/component-css/pds-status-badge.css +1 -9
  208. package/_dist/css/component-css/pds-status-indicator.css +1 -1
  209. package/_dist/css/component-css/pds-stepper.css +1 -1
  210. package/_dist/css/component-css/pds-switch.css +1 -0
  211. package/_dist/css/component-css/pds-tab-menu.css +2 -0
  212. package/_dist/css/component-css/pds-table-of-contents.css +1 -1
  213. package/_dist/css/component-css/pds-table.css +1 -1
  214. package/_dist/css/component-css/pds-tabs.css +1 -1
  215. package/_dist/css/component-css/pds-tag.css +1 -1
  216. package/_dist/css/component-css/pds-tally.css +1 -0
  217. package/_dist/css/component-css/pds-text-input.css +1 -0
  218. package/_dist/css/component-css/pds-textarea.css +1 -1
  219. package/_dist/css/component-css/pds-theme-switcher.css +1 -0
  220. package/_dist/css/component-css/pds-tile.css +1 -1
  221. package/_dist/css/component-css/pds-tiles-common.css +1 -1
  222. package/_dist/css/component-css/pds-toaster.css +1 -1
  223. package/_dist/css/component-css/pds-tooltip.css +1 -1
  224. package/_dist/css/component-css/pds-user-menu-story-only.css +1 -0
  225. package/_dist/css/component-css/pds-user-menu.css +1 -0
  226. package/_dist/css/component-css/pds-utility-button.css +1 -0
  227. package/_dist/css/component-css/pds-vertical-empty-state.css +1 -0
  228. package/_dist/css/component-css/pds-vertical-stepper.css +1 -0
  229. package/_dist/css/component-css/pds-video-embed.css +1 -0
  230. package/_dist/css/component-css/pds-workspace-selector.css +1 -1
  231. package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +219 -0
  232. package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +328 -0
  233. package/_dist/css/design-tokens/pds-design-tokens.css +130 -0
  234. package/_dist/css/pds-components.css +83 -118
  235. package/_dist/css/pds-core.css +4 -4
  236. package/_dist/css/pds-layouts.css +9 -1
  237. package/_dist/index.css +1 -0
  238. package/_dist/index.d.ts +124 -0
  239. package/_dist/index.js +12518 -0
  240. package/_dist/index.js.map +1 -0
  241. package/_dist/layouts/AppLayout/AppLayout.d.ts +73 -0
  242. package/_dist/layouts/Container/Container.d.ts +25 -0
  243. package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +57 -0
  244. package/_dist/layouts/DashboardInner/DashboardInner.d.ts +29 -0
  245. package/_dist/layouts/DocsLayout/DocsLayout.d.ts +30 -0
  246. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +72 -0
  247. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
  248. package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +36 -0
  249. package/_dist/layouts/StepperLayout/StepperLayout.d.ts +20 -0
  250. package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +30 -0
  251. package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +34 -0
  252. package/_dist/layouts/layout-types.d.ts +2 -0
  253. package/_dist/libs/components/sb-docs-toc-layout.d.ts +4 -0
  254. package/_dist/libs/components/utility-components.d.ts +15 -0
  255. package/_dist/libs/components/utils.d.ts +7 -0
  256. package/_dist/libs/types/custom-types.d.ts +107 -0
  257. package/_dist/mocks/data/navigation-items.d.ts +367 -0
  258. package/_dist/mocks/data/pagination-items.d.ts +16 -0
  259. package/_dist/mocks/markup/dashboard-main-content.d.ts +10 -0
  260. package/_dist/mocks/markup/dashboard-navigation.d.ts +11 -0
  261. package/_dist/mocks/markup/inputs.d.ts +2 -0
  262. package/_dist/mocks/markup/modal.d.ts +2 -0
  263. package/_dist/mocks/markup/panel-row-content.d.ts +16 -0
  264. package/_dist/utilities/color/color-preview-swatches.d.ts +13 -0
  265. package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
  266. package/_dist/utilities/hooks/useClipboard.d.ts +6 -0
  267. package/_dist/utilities/hooks/useKeyPress.d.ts +1 -0
  268. package/_dist/utilities/hooks/useWindowWidth.d.ts +1 -0
  269. package/_dist/vars/animation.d.ts +5 -0
  270. package/_dist/vars/spacing.d.ts +36 -0
  271. package/_dist/vars/type-scale.d.ts +28 -0
  272. package/_dist/vars/z-index.d.ts +16 -0
  273. package/package.json +83 -44
  274. package/_dist/cjs/index.js +0 -93
  275. package/_dist/cjs/index.js.map +0 -1
  276. package/_dist/css/component-css/pds-animated-button.css +0 -7
  277. package/_dist/css/component-css/pds-breadcrumbs.css +0 -1
  278. package/_dist/css/component-css/pds-heading.css +0 -1
  279. package/_dist/css/component-css/pds-inputs-common.css +0 -1
  280. package/_dist/css/component-css/pds-pager.css +0 -1
  281. package/_dist/css/component-css/pds-stats-tile-list.css +0 -1
  282. package/_dist/css/component-css/pds-toast.css +0 -1
  283. package/_dist/css/component-css/pds-toggle-button.css +0 -1
  284. package/_dist/css/component-css/pds-toggle-switch.css +0 -3
  285. package/_dist/esm/index.js +0 -93
  286. package/_dist/esm/index.js.map +0 -1
@@ -0,0 +1,73 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { ContainerWidth } from '@libs/types/custom-types';
3
+ import './app-layout.css';
4
+ /**
5
+ * Prop types for AppLayout
6
+ */
7
+ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Children to render in the layout.
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * PDS container width.
14
+ */
15
+ containerWidth?: ContainerWidth;
16
+ /**
17
+ * Is the sidebar able to be collapsed and expanded by the user?
18
+ * If false or not provided, the sidebar will always be expanded.
19
+ */
20
+ hasSidebarToggle?: boolean;
21
+ /**
22
+ * Is the sidebar collapsed?
23
+ * This is only relevant if `hasSidebarToggle` is true.
24
+ */
25
+ isSidebarCollapsed?: boolean;
26
+ /**
27
+ * Labels for translatable strings.
28
+ */
29
+ labels?: {
30
+ collapseSidebar: string;
31
+ expandSidebar: string;
32
+ };
33
+ /**
34
+ * Element type for the main content area.
35
+ */
36
+ mainContentElement: 'div' | 'main';
37
+ /**
38
+ * Additional props for the main content element.
39
+ */
40
+ mainContentProps?: ComponentPropsWithoutRef<'div'> | ComponentPropsWithoutRef<'main'>;
41
+ /**
42
+ * Callback function to handle sidebar toggle.
43
+ * If not provided, the sidebar will use an internal function to manage collapsed state.
44
+ */
45
+ onSidebarToggle?: () => void;
46
+ /**
47
+ * Width of the sidebar when collapsed in rems. This should not need to be modified.
48
+ */
49
+ sidebarCollapsedWidth?: number;
50
+ /**
51
+ * Width of the sidebar when expanded as a percentage.
52
+ * This is also the width of the sidebar when it is not collapsable (hasSidebarToggle is false).
53
+ */
54
+ sidebarExpandedWidth?: string;
55
+ /**
56
+ * Minimum width of the sidebar when expanded in rems.
57
+ * This is also the min-width of the sidebar when it is not collapsable (hasSidebarToggle is false).
58
+ */
59
+ sidebarExpandedWidthMin?: number;
60
+ /**
61
+ * Additional props for the sidebar `<div>` element.
62
+ */
63
+ sidebarProps?: ComponentPropsWithoutRef<'div'>;
64
+ /**
65
+ * Additional class names
66
+ */
67
+ className?: string;
68
+ }
69
+ /**
70
+ * AppLayout UI component
71
+ */
72
+ export declare const AppLayout: ({ children, containerWidth, hasSidebarToggle, isSidebarCollapsed, labels, mainContentElement, mainContentProps, onSidebarToggle, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMin, sidebarProps, className, ...props }: AppLayoutProps) => React.JSX.Element;
73
+ export {};
@@ -0,0 +1,25 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { ContainerWidth } from '@libs/types/custom-types';
3
+ import '../../utilities/container.css';
4
+ /**
5
+ * Prop types for Container
6
+ */
7
+ interface ContainerProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Container content.
10
+ */
11
+ children?: ReactNode;
12
+ /**
13
+ * Width of the container.
14
+ */
15
+ width?: ContainerWidth;
16
+ /**
17
+ * Additional class names
18
+ */
19
+ className?: string;
20
+ }
21
+ /**
22
+ * Container UI component
23
+ */
24
+ export declare const Container: ({ children, width, className, ...props }: ContainerProps) => React.JSX.Element;
25
+ export {};
@@ -0,0 +1,57 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export declare const DashboardContext: React.Context<any>;
3
+ import './dashboard-global.css';
4
+ /**
5
+ * Prop types for DashboardGlobal
6
+ */
7
+ interface DashboardGlobalProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Child elements to be assigned to named slots.
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * Is the dashboard in admin mode?
14
+ */
15
+ isAdmin?: boolean;
16
+ /**
17
+ * Is the sidebar expanded?
18
+ */
19
+ isSidebarExpanded?: boolean;
20
+ /**
21
+ * Function to set the sidebar expanded state.
22
+ */
23
+ setIsSidebarExpanded?: (isOpen: boolean) => void;
24
+ /**
25
+ * Whether to include a sidebar toggle button.
26
+ */
27
+ hasSidebarToggle?: boolean;
28
+ /**
29
+ * A fully-formed link element using the router of your choice. The link text will be used as the aria-label. If the logo should not be a link, set to `null`.
30
+ */
31
+ logoLinkContent?: ReactNode;
32
+ /**
33
+ * Width of the sidebar when collapsed in rems. This should not need to be modified.
34
+ */
35
+ sidebarCollapsedWidth?: number;
36
+ /**
37
+ * Width of the sidebar when expanded in rems. This should not need to be modified, unless slightly to accommodate longer top-level navigation items.
38
+ */
39
+ sidebarExpandedWidth?: number;
40
+ /**
41
+ * Translatable string for sidebar toggle button.
42
+ */
43
+ sidebarToggleLabel?: string;
44
+ /**
45
+ * Translatable string for skiplink.
46
+ */
47
+ skiplinkText?: string;
48
+ /**
49
+ * Additional class names. Will be merged with existing component root classes.
50
+ */
51
+ className?: string;
52
+ }
53
+ /**
54
+ * DashboardGlobal UI component
55
+ */
56
+ export declare const DashboardGlobal: ({ children, hasSidebarToggle, isAdmin, logoLinkContent, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarToggleLabel, skiplinkText, isSidebarExpanded, setIsSidebarExpanded, className, ...props }: DashboardGlobalProps) => React.JSX.Element;
57
+ export {};
@@ -0,0 +1,29 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './dashboard-inner.css';
3
+ /**
4
+ * Prop types for DashboardInner
5
+ */
6
+ interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Child elements to be assigned to named slots.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Whether to apply bottom spacing to the second-to-last content child.
13
+ * This prop provides flexibility for different dashboard layouts:
14
+ * - When true: Adds consistent spacing between content sections while preventing
15
+ * unnecessary spacing after the last element
16
+ * - When false: Removes all content spacing for layouts that require custom spacing
17
+ * @default false
18
+ */
19
+ hasContentSpacing?: boolean;
20
+ /**
21
+ * Additional class names
22
+ */
23
+ className?: string;
24
+ }
25
+ /**
26
+ * DashboardInner UI component
27
+ */
28
+ export declare const DashboardInner: ({ children, hasContentSpacing, className, ...props }: DashboardInnerProps) => React.JSX.Element;
29
+ export {};
@@ -0,0 +1,30 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './docs-layout.css';
3
+ /**
4
+ * Prop types for DocsLayout
5
+ */
6
+ interface DocsLayoutProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Children to render in the layout.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Width of the sidebar when expanded as a percentage.
13
+ * This is also the width of the sidebar when it is not collapsable (hasSidebarToggle is false).
14
+ */
15
+ sidebarWidth?: string;
16
+ /**
17
+ * Minimum width of the sidebar when expanded in rems.
18
+ * This is also the min-width of the sidebar when it is not collapsable (hasSidebarToggle is false).
19
+ */
20
+ sidebarMinWidth?: number;
21
+ /**
22
+ * Additional class names
23
+ */
24
+ className?: string;
25
+ }
26
+ /**
27
+ * DocsLayout UI component
28
+ */
29
+ export declare const DocsLayout: ({ children, sidebarWidth, sidebarMinWidth, className, ...props }: DocsLayoutProps) => React.JSX.Element;
30
+ export {};
@@ -0,0 +1,72 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions } from '@layouts/layout-types';
3
+ import './flex-container.css';
4
+ type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
5
+ type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
6
+ type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
7
+ type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
8
+ type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
9
+ type FlexGapOptions = GridGapOptions | 'minimal' | 'none';
10
+ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
11
+ /**
12
+ * Aligns content when there is extra space in the cross-axis.
13
+ */
14
+ alignContent?: FlexAlignContent;
15
+ /**
16
+ * Aligns items on the cross axis.
17
+ */
18
+ alignItems?: FlexAlignItems;
19
+ /**
20
+ * Establishes the main-axis, thus defining the direction flex items are placed in the flex container.
21
+ */
22
+ flexDirection?: FlexDirection;
23
+ /**
24
+ * If the items do not fit in one line (row or column, depending on flexDirection), how should they wrap.
25
+ */
26
+ flexWrap?: FlexWrap;
27
+ /**
28
+ * Gap between items.
29
+ */
30
+ gap?: FlexGapOptions;
31
+ /**
32
+ * Alignment along the main axis.
33
+ */
34
+ justifyContent?: FlexJustifyContent;
35
+ /**
36
+ * Align content on mobile. If not set, will default to the same value as `alignContent`.
37
+ */
38
+ mobileAlignContent?: FlexAlignContent;
39
+ /**
40
+ * Align items on mobile. If not set, will default to the same value as `alignItems`.
41
+ */
42
+ mobileAlignItems?: FlexAlignItems;
43
+ /**
44
+ * Flex direction for mobile.
45
+ */
46
+ mobileFlexDirection?: FlexDirection;
47
+ /**
48
+ * Flex wrap for mobile. If not set, will default to the same value as `flexWrap`.
49
+ */
50
+ mobileFlexWrap?: FlexWrap;
51
+ /**
52
+ * Gap between items on mobile. If not set, will default to the same value as `gap`.
53
+ */
54
+ mobileGap?: FlexGapOptions;
55
+ /**
56
+ * Justify content for mobile. If not set, will default to the same value as `justifyContent`.
57
+ */
58
+ mobileJustifyContent?: FlexJustifyContent;
59
+ /**
60
+ * Container content.
61
+ */
62
+ children?: ReactNode;
63
+ /**
64
+ * Additional class names
65
+ */
66
+ className?: string;
67
+ }
68
+ /**
69
+ * Flex Container UI component
70
+ */
71
+ export declare const FlexContainer: ({ alignContent, alignItems, flexDirection, flexWrap, gap, justifyContent, mobileAlignItems, mobileAlignContent, mobileFlexDirection, mobileFlexWrap, mobileGap, mobileJustifyContent, children, className, ...props }: FlexContainerProps) => React.JSX.Element;
72
+ export {};
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ /**
3
+ * Prop types for GlobalWrapper
4
+ */
5
+ interface GlobalWrapperProps {
6
+ /**
7
+ * Child components
8
+ */
9
+ children: React.ReactNode;
10
+ /**
11
+ * Mobile menu will be enabled when viewport is at or below this number in pixels.
12
+ */
13
+ mobileMenuMaxWidth?: number;
14
+ }
15
+ /**
16
+ * GlobalWrapper wrapper component.
17
+ */
18
+ export declare const GlobalWrapper: ({ children, mobileMenuMaxWidth, }: GlobalWrapperProps) => React.JSX.Element;
19
+ export {};
@@ -0,0 +1,36 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions } from '@layouts/layout-types';
3
+ /**
4
+ * Prop types for SidebarLayout
5
+ */
6
+ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Children to render in the layout. All children must be assigned to a named slot — either 'sidebar' or 'content'.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Gap between grid items
13
+ */
14
+ gridGap?: GridGapOptions;
15
+ /**
16
+ * Sidebar location.
17
+ */
18
+ sidebarLocation?: 'left' | 'right';
19
+ /**
20
+ * Sidebar location on mobile.
21
+ */
22
+ sidebarMobileLocation?: 'before' | 'after';
23
+ /**
24
+ * Sidebar width.
25
+ */
26
+ sidebarWidth?: 'narrow' | 'standard' | 'wide';
27
+ /**
28
+ * Additional class names
29
+ */
30
+ className?: string;
31
+ }
32
+ /**
33
+ * SidebarLayout UI component
34
+ */
35
+ export declare const SidebarLayout: ({ children, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, className, ...props }: SidebarLayoutProps) => React.JSX.Element;
36
+ export {};
@@ -0,0 +1,20 @@
1
+ import React, { ReactNode } from 'react';
2
+ import './stepper-layout.css';
3
+ /**
4
+ * Prop types for StepperLayout
5
+ */
6
+ interface StepperLayoutProps {
7
+ /**
8
+ * Layout content.
9
+ */
10
+ children?: ReactNode;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
15
+ }
16
+ /**
17
+ * StepperLayout UI component
18
+ */
19
+ export declare const StepperLayout: ({ children, className, ...props }: StepperLayoutProps) => React.JSX.Element;
20
+ export {};
@@ -0,0 +1,30 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions, VerticalAlignOptions } from '@layouts/layout-types';
3
+ import '../../utilities/grid/grid.css';
4
+ import './three-item-layout.css';
5
+ /**
6
+ * Prop types for TwoItemLayout
7
+ */
8
+ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
9
+ /**
10
+ * Item content.
11
+ */
12
+ children?: ReactNode;
13
+ /**
14
+ * Width of gap between items.
15
+ */
16
+ gridGap?: GridGapOptions;
17
+ /**
18
+ * Vertical alignment of items.
19
+ */
20
+ verticalAlign?: VerticalAlignOptions;
21
+ /**
22
+ * Additional class names
23
+ */
24
+ className?: string;
25
+ }
26
+ /**
27
+ * ThreeItemLayout UI component.
28
+ */
29
+ export declare const ThreeItemLayout: ({ children, gridGap, verticalAlign, className, ...props }: TwoItemLayoutProps) => React.JSX.Element;
30
+ export {};
@@ -0,0 +1,34 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions, VerticalAlignOptions } from '@layouts/layout-types';
3
+ import '../../utilities/grid/grid.css';
4
+ import './two-item-layout.css';
5
+ /**
6
+ * Prop types for TwoItemLayout
7
+ */
8
+ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
9
+ /**
10
+ * Item content.
11
+ */
12
+ children?: ReactNode;
13
+ /**
14
+ * Width of gap between items.
15
+ */
16
+ gridGap?: GridGapOptions;
17
+ /**
18
+ * Layout variant for column widths.
19
+ */
20
+ layoutVariant?: 'equal' | 'one-third-start' | 'one-third-end';
21
+ /**
22
+ * Vertical alignment of items.
23
+ */
24
+ verticalAlign?: VerticalAlignOptions;
25
+ /**
26
+ * Additional class names
27
+ */
28
+ className?: string;
29
+ }
30
+ /**
31
+ * TwoItemLayout UI component.
32
+ */
33
+ export declare const TwoItemLayout: ({ children, gridGap, layoutVariant, verticalAlign, className, ...props }: TwoItemLayoutProps) => React.JSX.Element;
34
+ export {};
@@ -0,0 +1,2 @@
1
+ export type GridGapOptions = 'wide' | 'standard' | 'narrow';
2
+ export type VerticalAlignOptions = 'start' | 'center' | 'end';
@@ -0,0 +1,4 @@
1
+ import React, { ReactNode } from 'react';
2
+ export declare const SbDocsTocLayout: ({ children }: {
3
+ children: ReactNode;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { HeadingLevel } from '@libs/types/custom-types';
3
+ interface HxProps {
4
+ baseClass?: string;
5
+ children?: ReactNode;
6
+ id?: string;
7
+ level: HeadingLevel;
8
+ className?: string;
9
+ }
10
+ export declare const Hx: ({ baseClass, children, id, level, className, ...props }: HxProps) => React.DetailedReactHTMLElement<{
11
+ className: any;
12
+ id: string;
13
+ }, HTMLElement>;
14
+ export declare const extractText: (node: ReactNode) => string;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ export function createRandomID(): string;
2
+ export function getDescendants(node: any, collect: any): any;
3
+ export function initiateSlots(children: any): {
4
+ __unslotted: any[];
5
+ };
6
+ export function mergeClasses(styles: any): any;
7
+ export function isValidImageSrc(uri: any): boolean;
@@ -0,0 +1,107 @@
1
+ import { ReactNode } from 'react';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
+ export type BadgeColor = 'success' | 'critical' | 'info' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond';
4
+ export type ButtonDisplayType = 'label-only' | 'icon-start' | 'icon-end';
5
+ export type ButtonSize = 'sm' | 'md' | 'lg';
6
+ export type ButtonType = 'button' | 'submit' | 'reset';
7
+ export type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'brand' | 'brand-secondary' | 'critical' | 'navbar' | 'inline';
8
+ export type ContainerWidth = 'narrow' | 'standard' | 'wide' | 'x-wide' | 'full';
9
+ export type Display = 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'flow-root' | 'none' | 'contents' | 'table' | 'table-row' | 'table-cell' | 'table-caption' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row-group' | 'list-item' | 'inherit' | 'initial' | 'revert' | 'unset';
10
+ export type FuiOffset = number | {
11
+ mainAxis?: number;
12
+ crossAxis?: number;
13
+ alignmentAxis?: number | null;
14
+ };
15
+ export type FuiPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
16
+ export type HeadingItemType = {
17
+ /**
18
+ * Label for a menu item
19
+ */
20
+ label: string;
21
+ /**
22
+ * Is the item a heading?
23
+ */
24
+ isHeading: boolean;
25
+ };
26
+ export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
27
+ export type HeadingLevelCommon = Exclude<HeadingLevel, 'h1' | 'h5' | 'h6'>;
28
+ export type LinkItemType = {
29
+ /**
30
+ * Description of the item
31
+ */
32
+ description?: string;
33
+ /**
34
+ * Is this item disabled?
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * Optional icon for this item. Choose from available icons in the Icon component.
39
+ */
40
+ iconName?: PDSIcon;
41
+ /**
42
+ * Is the item a link?
43
+ */
44
+ isLink: boolean;
45
+ /**
46
+ * The content of the link.
47
+ */
48
+ linkContent?: ReactNode;
49
+ /**
50
+ * Optional `data-testid` value for this item.
51
+ */
52
+ testId?: string;
53
+ };
54
+ export type MenuItemType = {
55
+ /**
56
+ * (optional) Callback function to execute when menu item is activated
57
+ */
58
+ callback?: () => void;
59
+ /**
60
+ * Description of the item
61
+ */
62
+ description?: string;
63
+ /**
64
+ * Is this item disabled?
65
+ */
66
+ disabled?: boolean;
67
+ /**
68
+ * Optional icon for this item. Choose from available icons in the Icon component.
69
+ */
70
+ iconName?: PDSIcon;
71
+ /**
72
+ * Optional ID value for this item.
73
+ */
74
+ id?: string;
75
+ /**
76
+ * Label for a menu item
77
+ */
78
+ label: string;
79
+ /**
80
+ * Optional `data-testid` value for this item.
81
+ */
82
+ testId?: string;
83
+ };
84
+ export type NodeItemType = {
85
+ /**
86
+ * Is the item a node?
87
+ */
88
+ isNode: boolean;
89
+ /**
90
+ * The content of the node.
91
+ */
92
+ nodeContent?: ReactNode;
93
+ };
94
+ export type SeparatorItemType = {
95
+ /**
96
+ * Is the item a separator?
97
+ */
98
+ isSeparator: boolean;
99
+ };
100
+ export type SitePlanLevel = 'sandbox' | 'basic' | 'performance-small' | 'performance-medium' | 'performance-large' | 'performance-xl' | 'performance-2xl' | 'elite';
101
+ export declare const SitePlanLevelLabel: Record<SitePlanLevel, string>;
102
+ export type SiteStatus = 'active' | 'frozen';
103
+ export type SiteType = 'drupal' | 'wordpress' | 'gatsby' | 'nextjs';
104
+ export declare const SiteTypeLabel: Record<SiteType, string>;
105
+ export declare const SiteTypeIcon: Record<SiteType, PDSIcon>;
106
+ export type SpacingScaleOptions = '6xs' | '5xs' | '4xs' | '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl';
107
+ export type TypeScaleOptions = 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';