@pantheon-systems/pds-toolkit-react 1.0.0-dev.9999 → 1.1.0

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 (193) hide show
  1. package/README.md +1 -1
  2. package/_dist/components/Avatar/Avatar.d.ts +6 -6
  3. package/_dist/components/BranchDiff/BranchDiff.d.ts +10 -10
  4. package/_dist/components/CTALink/CTALink.d.ts +6 -6
  5. package/_dist/components/CTASlice/CTASlice.d.ts +7 -7
  6. package/_dist/components/Callout/Callout.d.ts +9 -8
  7. package/_dist/components/Callout/sample-callout-content.d.ts +1 -2
  8. package/_dist/components/CodeBlock/CodeBlock.d.ts +6 -6
  9. package/_dist/components/ComparisonList/ComparisonList.d.ts +7 -7
  10. package/_dist/components/DashboardStat/DashboardStat.d.ts +11 -11
  11. package/_dist/components/FileDiff/FileDiff.d.ts +11 -11
  12. package/_dist/components/FlowSteps/FlowSteps.d.ts +10 -10
  13. package/_dist/components/FlowSteps/example-steps.d.ts +3 -4
  14. package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +6 -6
  15. package/_dist/components/Modal/Modal.d.ts +6 -6
  16. package/_dist/components/Pagination/Pagination.d.ts +8 -8
  17. package/_dist/components/PantheonLogo/PantheonLogo.d.ts +6 -6
  18. package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +3 -4
  19. package/_dist/components/Picture/Picture.d.ts +15 -15
  20. package/_dist/components/Popover/Popover.d.ts +22 -23
  21. package/_dist/components/PullQuote/PullQuote.d.ts +7 -7
  22. package/_dist/components/RefreshChecker/RefreshChecker.d.ts +10 -10
  23. package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +17 -12
  24. package/_dist/components/Skiplink/Skiplink.d.ts +6 -6
  25. package/_dist/components/SocialLinks/SocialLinks.d.ts +8 -8
  26. package/_dist/components/StatusIndicator/StatusIndicator.d.ts +8 -7
  27. package/_dist/components/Table/Table.d.ts +9 -9
  28. package/_dist/components/TableOfContents/TableOfContents.d.ts +9 -9
  29. package/_dist/components/Tabs/Tabs.d.ts +15 -15
  30. package/_dist/components/Tag/Tag.d.ts +8 -8
  31. package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +9 -9
  32. package/_dist/components/Tooltip/Tooltip.d.ts +7 -7
  33. package/_dist/components/VideoEmbed/VideoEmbed.d.ts +6 -6
  34. package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +7 -7
  35. package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +8 -7
  36. package/_dist/components/badges/Tally/Tally.d.ts +8 -8
  37. package/_dist/components/buttons/Button/Button.d.ts +11 -10
  38. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +8 -8
  39. package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +6 -6
  40. package/_dist/components/buttons/CloseButton/CloseButton.d.ts +6 -6
  41. package/_dist/components/buttons/IconButton/IconButton.d.ts +12 -11
  42. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +11 -11
  43. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +13 -14
  44. package/_dist/components/buttons/SplitButton/SplitButton.d.ts +9 -9
  45. package/_dist/components/buttons/SplitButton/split-button-sample-data.d.ts +1 -2
  46. package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +25 -11
  47. package/_dist/components/cards/Card/Card.d.ts +7 -7
  48. package/_dist/components/cards/CardHeading/CardHeading.d.ts +6 -7
  49. package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +10 -10
  50. package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +7 -7
  51. package/_dist/components/cards/LinksCard/LinksCard.d.ts +7 -7
  52. package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +12 -12
  53. package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +16 -16
  54. package/_dist/components/cards/PricingCard/PricingCard.d.ts +22 -22
  55. package/_dist/components/cards/SiteCard/SiteCard.d.ts +13 -8
  56. package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +9 -9
  57. package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +27 -27
  58. package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +15 -15
  59. package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +7 -7
  60. package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +7 -7
  61. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +11 -11
  62. package/_dist/components/footer/SiteFooter/footer-content.d.ts +1 -2
  63. package/_dist/components/icons/Icon/Icon.d.ts +19 -8
  64. package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +6 -6
  65. package/_dist/components/icons/PaymentIcon/svgData.d.ts +5 -6
  66. package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +3 -3
  67. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +7 -7
  68. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +9 -9
  69. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +8 -8
  70. package/_dist/components/inputs/Combobox/Combobox.d.ts +22 -17
  71. package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +12 -12
  72. package/_dist/components/inputs/Datepicker/Datepicker.d.ts +96 -0
  73. package/_dist/components/inputs/FileUpload/FileUpload.d.ts +6 -6
  74. package/_dist/components/inputs/InputGroup/InputGroup.d.ts +2 -2
  75. package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +13 -13
  76. package/_dist/components/inputs/Select/Select.d.ts +23 -14
  77. package/_dist/components/inputs/Select/select-sample-data.d.ts +6 -0
  78. package/_dist/components/inputs/Switch/Switch.d.ts +9 -7
  79. package/_dist/components/inputs/TextInput/TextInput.d.ts +9 -9
  80. package/_dist/components/inputs/Textarea/Textarea.d.ts +14 -13
  81. package/_dist/components/inputs/input-utilities.d.ts +35 -35
  82. package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +7 -7
  83. package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +6 -6
  84. package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +6 -6
  85. package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +7 -7
  86. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +6 -6
  87. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +5 -6
  88. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +12 -12
  89. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +7 -7
  90. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +8 -18
  91. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +4 -4
  92. package/_dist/components/navigation/Navbar/Navbar.d.ts +8 -8
  93. package/_dist/components/navigation/SideNav/SideNav.d.ts +7 -7
  94. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +7 -7
  95. package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +6 -6
  96. package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +5 -6
  97. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +10 -10
  98. package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +4 -5
  99. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +7 -7
  100. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +24 -10
  101. package/_dist/components/navigation/navigation-utilities.d.ts +3 -3
  102. package/_dist/components/notifications/Banner/Banner.d.ts +11 -9
  103. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +8 -7
  104. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +9 -8
  105. package/_dist/components/notifications/Toaster/Toast.d.ts +6 -6
  106. package/_dist/components/notifications/Toaster/Toaster.d.ts +6 -6
  107. package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
  108. package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +6 -6
  109. package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +6 -6
  110. package/_dist/components/panels/Panel/Panel.d.ts +16 -9
  111. package/_dist/components/panels/PanelList/PanelList.d.ts +8 -4
  112. package/_dist/components/panels/PanelList/PanelRow.d.ts +6 -6
  113. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +8 -7
  114. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +6 -6
  115. package/_dist/components/steppers/Stepper/Stepper.d.ts +7 -7
  116. package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +7 -7
  117. package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +6 -6
  118. package/_dist/components/steppers/VerticalStepper/vertical-stepper-sample-data.d.ts +3 -4
  119. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +9 -9
  120. package/_dist/components/tiles/Tile/Tile.d.ts +7 -7
  121. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +8 -8
  122. package/_dist/css/component-css/pds-avatar.css +1 -1
  123. package/_dist/css/component-css/pds-button.css +1 -1
  124. package/_dist/css/component-css/pds-checkbox.css +1 -1
  125. package/_dist/css/component-css/pds-code-block.css +1 -1
  126. package/_dist/css/component-css/pds-combobox-multiselect.css +1 -1
  127. package/_dist/css/component-css/pds-combobox.css +1 -1
  128. package/_dist/css/component-css/pds-dashboard-nav.css +1 -1
  129. package/_dist/css/component-css/pds-dashboard-search.css +1 -1
  130. package/_dist/css/component-css/pds-datepicker.css +3 -0
  131. package/_dist/css/component-css/pds-index.css +34 -16
  132. package/_dist/css/component-css/pds-indicator-badge.css +5 -3
  133. package/_dist/css/component-css/pds-input-utilities.css +1 -1
  134. package/_dist/css/component-css/pds-menu-button.css +1 -2
  135. package/_dist/css/component-css/pds-navbar.css +1 -1
  136. package/_dist/css/component-css/pds-panel-list.css +1 -1
  137. package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
  138. package/_dist/css/component-css/pds-popover.css +1 -1
  139. package/_dist/css/component-css/pds-progress-bar.css +1 -1
  140. package/_dist/css/component-css/pds-progress-ring.css +1 -1
  141. package/_dist/css/component-css/pds-radio-group.css +1 -1
  142. package/_dist/css/component-css/pds-section-message.css +1 -1
  143. package/_dist/css/component-css/pds-segmented-button.css +1 -1
  144. package/_dist/css/component-css/pds-select.css +1 -1
  145. package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
  146. package/_dist/css/component-css/pds-side-nav-global.css +1 -1
  147. package/_dist/css/component-css/pds-side-nav.css +1 -2
  148. package/_dist/css/component-css/pds-site-card.css +1 -1
  149. package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -1
  150. package/_dist/css/component-css/pds-switch.css +17 -1
  151. package/_dist/css/component-css/pds-tab-menu.css +1 -1
  152. package/_dist/css/component-css/pds-table.css +1 -1
  153. package/_dist/css/component-css/pds-tabs.css +1 -1
  154. package/_dist/css/component-css/pds-utility-button.css +1 -1
  155. package/_dist/css/component-css/pds-workspace-selector.css +1 -1
  156. package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +7 -0
  157. package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +7 -0
  158. package/_dist/css/pds-components.css +34 -16
  159. package/_dist/css/pds-core.css +2 -2
  160. package/_dist/css/pds-layouts.css +1 -1
  161. package/_dist/index.css +1 -1
  162. package/_dist/index.d.ts +5 -2
  163. package/_dist/index.js +8309 -8595
  164. package/_dist/index.js.map +1 -1
  165. package/_dist/layouts/AppLayout/AppLayout.d.ts +7 -7
  166. package/_dist/layouts/Container/Container.d.ts +7 -7
  167. package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +13 -13
  168. package/_dist/layouts/DashboardInner/DashboardInner.d.ts +8 -7
  169. package/_dist/layouts/DocsLayout/DocsLayout.d.ts +7 -7
  170. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +11 -11
  171. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +3 -3
  172. package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +9 -8
  173. package/_dist/layouts/StepperLayout/StepperLayout.d.ts +2 -2
  174. package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +7 -7
  175. package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +7 -7
  176. package/_dist/{components/navigation/DashboardSearch → libs/components/SiteOptionDisplay}/SiteOptionDisplay.d.ts +11 -7
  177. package/_dist/libs/components/sb-docs-toc-layout.d.ts +2 -2
  178. package/_dist/libs/components/utility-components.d.ts +4 -4
  179. package/_dist/libs/types/custom-types.d.ts +46 -10
  180. package/_dist/{components/navigation → libs/types}/navigation-types.d.ts +15 -7
  181. package/_dist/mocks/data/navigation-items.d.ts +58 -147
  182. package/_dist/mocks/markup/dashboard-main-content.d.ts +3 -4
  183. package/_dist/mocks/markup/dashboard-navigation.d.ts +3 -4
  184. package/_dist/mocks/markup/inputs.d.ts +1 -2
  185. package/_dist/mocks/markup/modal.d.ts +1 -2
  186. package/_dist/mocks/markup/panel-row-content.d.ts +5 -6
  187. package/_dist/utilities/color/color-preview-swatches.d.ts +3 -4
  188. package/_dist/utilities/context-providers/OverlayContext/OverlayContext.d.ts +12 -0
  189. package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +1 -1
  190. package/_dist/vars/animation.d.ts +2 -2
  191. package/package.json +50 -43
  192. /package/_dist/{components/inputs → libs/types}/input-types.d.ts +0 -0
  193. /package/_dist/{layouts → libs/types}/layout-types.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ContainerWidth } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { ContainerWidth } from '../../libs/types/custom-types';
3
3
  import './app-layout.css';
4
4
  /**
5
5
  * Prop types for AppLayout
@@ -9,6 +9,10 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Children to render in the layout.
10
10
  */
11
11
  children: ReactNode;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * PDS container width.
14
18
  */
@@ -61,13 +65,9 @@ interface AppLayoutProps extends ComponentPropsWithoutRef<'div'> {
61
65
  * Additional props for the sidebar `<div>` element.
62
66
  */
63
67
  sidebarProps?: ComponentPropsWithoutRef<'div'>;
64
- /**
65
- * Additional class names
66
- */
67
- className?: string;
68
68
  }
69
69
  /**
70
70
  * AppLayout UI component
71
71
  */
72
- export declare const AppLayout: ({ children, containerWidth, hasSidebarToggle, isSidebarCollapsed, labels, mainContentElement, mainContentProps, onSidebarToggle, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMin, sidebarProps, className, ...props }: AppLayoutProps) => React.JSX.Element;
72
+ export declare const AppLayout: ({ children, className, containerWidth, hasSidebarToggle, isSidebarCollapsed, labels, mainContentElement, mainContentProps, onSidebarToggle, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarExpandedWidthMin, sidebarProps, ...props }: AppLayoutProps) => import("react/jsx-runtime").JSX.Element;
73
73
  export {};
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ContainerWidth } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { ContainerWidth } from '../../libs/types/custom-types';
3
3
  import '../../utilities/container.css';
4
4
  /**
5
5
  * Prop types for Container
@@ -9,17 +9,17 @@ interface ContainerProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Container content.
10
10
  */
11
11
  children?: ReactNode;
12
- /**
13
- * Width of the container.
14
- */
15
- width?: ContainerWidth;
16
12
  /**
17
13
  * Additional class names
18
14
  */
19
15
  className?: string;
16
+ /**
17
+ * Width of the container.
18
+ */
19
+ width?: ContainerWidth;
20
20
  }
21
21
  /**
22
22
  * Container UI component
23
23
  */
24
- export declare const Container: ({ children, width, className, ...props }: ContainerProps) => React.JSX.Element;
24
+ export declare const Container: ({ children, className, width, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -10,25 +10,29 @@ interface DashboardGlobalProps extends ComponentPropsWithoutRef<'div'> {
10
10
  */
11
11
  children: ReactNode;
12
12
  /**
13
- * Is the dashboard in admin mode?
13
+ * Additional class names. Will be merged with existing component root classes.
14
14
  */
15
- isAdmin?: boolean;
15
+ className?: string;
16
16
  /**
17
- * Is the sidebar expanded?
17
+ * Whether to include a sidebar toggle button.
18
18
  */
19
- isSidebarExpanded?: boolean;
19
+ hasSidebarToggle?: boolean;
20
20
  /**
21
- * Function to set the sidebar expanded state.
21
+ * Is the dashboard in admin mode?
22
22
  */
23
- setIsSidebarExpanded?: (isOpen: boolean) => void;
23
+ isAdmin?: boolean;
24
24
  /**
25
- * Whether to include a sidebar toggle button.
25
+ * Is the sidebar expanded?
26
26
  */
27
- hasSidebarToggle?: boolean;
27
+ isSidebarExpanded?: boolean;
28
28
  /**
29
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
30
  */
31
31
  logoLinkContent?: ReactNode;
32
+ /**
33
+ * Function to set the sidebar expanded state.
34
+ */
35
+ setIsSidebarExpanded?: (isOpen: boolean) => void;
32
36
  /**
33
37
  * Width of the sidebar when collapsed in rems. This should not need to be modified.
34
38
  */
@@ -45,13 +49,9 @@ interface DashboardGlobalProps extends ComponentPropsWithoutRef<'div'> {
45
49
  * Translatable string for skiplink.
46
50
  */
47
51
  skiplinkText?: string;
48
- /**
49
- * Additional class names. Will be merged with existing component root classes.
50
- */
51
- className?: string;
52
52
  }
53
53
  /**
54
54
  * DashboardGlobal UI component
55
55
  */
56
- export declare const DashboardGlobal: ({ children, hasSidebarToggle, isAdmin, logoLinkContent, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarToggleLabel, skiplinkText, isSidebarExpanded, setIsSidebarExpanded, className, ...props }: DashboardGlobalProps) => React.JSX.Element;
56
+ export declare const DashboardGlobal: ({ children, className, hasSidebarToggle, isAdmin, isSidebarExpanded, logoLinkContent, setIsSidebarExpanded, sidebarCollapsedWidth, sidebarExpandedWidth, sidebarToggleLabel, skiplinkText, ...props }: DashboardGlobalProps) => import("react/jsx-runtime").JSX.Element;
57
57
  export {};
@@ -1,13 +1,18 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './dashboard-inner.css';
3
3
  /**
4
4
  * Prop types for DashboardInner
5
5
  */
6
6
  interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
7
7
  /**
8
- * Child elements to be assigned to named slots.
8
+ * Child elements. Main content can be passed without a slot attribute (unslotted).
9
+ * Optional named slots: `header-left`, `header-right`, `content` (for backwards compatibility).
9
10
  */
10
11
  children: ReactNode;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
11
16
  /**
12
17
  * Whether to apply bottom spacing to the second-to-last content child.
13
18
  * This prop provides flexibility for different dashboard layouts:
@@ -17,13 +22,9 @@ interface DashboardInnerProps extends ComponentPropsWithoutRef<'div'> {
17
22
  * @default false
18
23
  */
19
24
  hasContentSpacing?: boolean;
20
- /**
21
- * Additional class names
22
- */
23
- className?: string;
24
25
  }
25
26
  /**
26
27
  * DashboardInner UI component
27
28
  */
28
- export declare const DashboardInner: ({ children, hasContentSpacing, className, ...props }: DashboardInnerProps) => React.JSX.Element;
29
+ export declare const DashboardInner: ({ children, className, hasContentSpacing, ...props }: DashboardInnerProps) => import("react/jsx-runtime").JSX.Element;
29
30
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './docs-layout.css';
3
3
  /**
4
4
  * Prop types for DocsLayout
@@ -9,22 +9,22 @@ interface DocsLayoutProps extends ComponentPropsWithoutRef<'div'> {
9
9
  */
10
10
  children: ReactNode;
11
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).
12
+ * Additional class names
14
13
  */
15
- sidebarWidth?: string;
14
+ className?: string;
16
15
  /**
17
16
  * Minimum width of the sidebar when expanded in rems.
18
17
  * This is also the min-width of the sidebar when it is not collapsable (hasSidebarToggle is false).
19
18
  */
20
19
  sidebarMinWidth?: number;
21
20
  /**
22
- * Additional class names
21
+ * Width of the sidebar when expanded as a percentage.
22
+ * This is also the width of the sidebar when it is not collapsable (hasSidebarToggle is false).
23
23
  */
24
- className?: string;
24
+ sidebarWidth?: string;
25
25
  }
26
26
  /**
27
27
  * DocsLayout UI component
28
28
  */
29
- export declare const DocsLayout: ({ children, sidebarWidth, sidebarMinWidth, className, ...props }: DocsLayoutProps) => React.JSX.Element;
29
+ export declare const DocsLayout: ({ children, className, sidebarMinWidth, sidebarWidth, ...props }: DocsLayoutProps) => import("react/jsx-runtime").JSX.Element;
30
30
  export {};
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { GridGapOptions } from '@layouts/layout-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions } from '../../libs/types/layout-types';
3
3
  import './flex-container.css';
4
4
  type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';
5
5
  type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
@@ -16,6 +16,14 @@ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
16
16
  * Aligns items on the cross axis.
17
17
  */
18
18
  alignItems?: FlexAlignItems;
19
+ /**
20
+ * Container content.
21
+ */
22
+ children?: ReactNode;
23
+ /**
24
+ * Additional class names
25
+ */
26
+ className?: string;
19
27
  /**
20
28
  * Establishes the main-axis, thus defining the direction flex items are placed in the flex container.
21
29
  */
@@ -56,17 +64,9 @@ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
56
64
  * Justify content for mobile. If not set, will default to the same value as `justifyContent`.
57
65
  */
58
66
  mobileJustifyContent?: FlexJustifyContent;
59
- /**
60
- * Container content.
61
- */
62
- children?: ReactNode;
63
- /**
64
- * Additional class names
65
- */
66
- className?: string;
67
67
  }
68
68
  /**
69
69
  * Flex Container UI component
70
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;
71
+ export declare const FlexContainer: ({ alignContent, alignItems, children, className, flexDirection, flexWrap, gap, justifyContent, mobileAlignContent, mobileAlignItems, mobileFlexDirection, mobileFlexWrap, mobileGap, mobileJustifyContent, ...props }: FlexContainerProps) => import("react/jsx-runtime").JSX.Element;
72
72
  export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { ReactNode } from 'react';
2
2
  /**
3
3
  * Prop types for GlobalWrapper
4
4
  */
@@ -6,7 +6,7 @@ interface GlobalWrapperProps {
6
6
  /**
7
7
  * Child components
8
8
  */
9
- children: React.ReactNode;
9
+ children: ReactNode;
10
10
  /**
11
11
  * Mobile menu will be enabled when viewport is at or below this number in pixels.
12
12
  */
@@ -15,5 +15,5 @@ interface GlobalWrapperProps {
15
15
  /**
16
16
  * GlobalWrapper wrapper component.
17
17
  */
18
- export declare const GlobalWrapper: ({ children, mobileMenuMaxWidth, }: GlobalWrapperProps) => React.JSX.Element;
18
+ export declare const GlobalWrapper: ({ children, mobileMenuMaxWidth, }: GlobalWrapperProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -1,13 +1,18 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { GridGapOptions } from '@layouts/layout-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions } from '../../libs/types/layout-types';
3
3
  /**
4
4
  * Prop types for SidebarLayout
5
5
  */
6
6
  interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
7
7
  /**
8
- * Children to render in the layout. All children must be assigned to a named slot either 'sidebar' or 'content'.
8
+ * Children to render in the layout. Main content can be passed without a slot attribute (unslotted).
9
+ * Optional named slots: `sidebar` for sidebar content, `content` for backwards compatibility.
9
10
  */
10
11
  children: ReactNode;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
11
16
  /**
12
17
  * Gap between grid items
13
18
  */
@@ -24,13 +29,9 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
24
29
  * Sidebar width.
25
30
  */
26
31
  sidebarWidth?: 'narrow' | 'standard' | 'wide';
27
- /**
28
- * Additional class names
29
- */
30
- className?: string;
31
32
  }
32
33
  /**
33
34
  * SidebarLayout UI component
34
35
  */
35
- export declare const SidebarLayout: ({ children, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, className, ...props }: SidebarLayoutProps) => React.JSX.Element;
36
+ export declare const SidebarLayout: ({ children, className, gridGap, sidebarLocation, sidebarMobileLocation, sidebarWidth, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
36
37
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import './stepper-layout.css';
3
3
  /**
4
4
  * Prop types for StepperLayout
@@ -16,5 +16,5 @@ interface StepperLayoutProps {
16
16
  /**
17
17
  * StepperLayout UI component
18
18
  */
19
- export declare const StepperLayout: ({ children, className, ...props }: StepperLayoutProps) => React.JSX.Element;
19
+ export declare const StepperLayout: ({ children, className, ...props }: StepperLayoutProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export {};
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { GridGapOptions, VerticalAlignOptions } from '@layouts/layout-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions, VerticalAlignOptions } from '../../libs/types/layout-types';
3
3
  import '../../utilities/grid/grid.css';
4
4
  import './three-item-layout.css';
5
5
  /**
@@ -10,6 +10,10 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
10
10
  * Item content.
11
11
  */
12
12
  children?: ReactNode;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Width of gap between items.
15
19
  */
@@ -18,13 +22,9 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
18
22
  * Vertical alignment of items.
19
23
  */
20
24
  verticalAlign?: VerticalAlignOptions;
21
- /**
22
- * Additional class names
23
- */
24
- className?: string;
25
25
  }
26
26
  /**
27
27
  * ThreeItemLayout UI component.
28
28
  */
29
- export declare const ThreeItemLayout: ({ children, gridGap, verticalAlign, className, ...props }: TwoItemLayoutProps) => React.JSX.Element;
29
+ export declare const ThreeItemLayout: ({ children, className, gridGap, verticalAlign, ...props }: TwoItemLayoutProps) => import("react/jsx-runtime").JSX.Element;
30
30
  export {};
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { GridGapOptions, VerticalAlignOptions } from '@layouts/layout-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions, VerticalAlignOptions } from '../../libs/types/layout-types';
3
3
  import '../../utilities/grid/grid.css';
4
4
  import './two-item-layout.css';
5
5
  /**
@@ -10,6 +10,10 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
10
10
  * Item content.
11
11
  */
12
12
  children?: ReactNode;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Width of gap between items.
15
19
  */
@@ -22,13 +26,9 @@ interface TwoItemLayoutProps extends ComponentPropsWithoutRef<'div'> {
22
26
  * Vertical alignment of items.
23
27
  */
24
28
  verticalAlign?: VerticalAlignOptions;
25
- /**
26
- * Additional class names
27
- */
28
- className?: string;
29
29
  }
30
30
  /**
31
31
  * TwoItemLayout UI component.
32
32
  */
33
- export declare const TwoItemLayout: ({ children, gridGap, layoutVariant, verticalAlign, className, ...props }: TwoItemLayoutProps) => React.JSX.Element;
33
+ export declare const TwoItemLayout: ({ children, className, gridGap, layoutVariant, verticalAlign, ...props }: TwoItemLayoutProps) => import("react/jsx-runtime").JSX.Element;
34
34
  export {};
@@ -1,5 +1,9 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
- import { SiteStatus, SiteType } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { SiteStatus, SiteType } from '../../types/custom-types';
3
+ import './site-option-display.css';
4
+ /**
5
+ * Site option item type.
6
+ */
3
7
  export type SiteOption = {
4
8
  /**
5
9
  * ID of the site.
@@ -24,16 +28,16 @@ export type SiteOption = {
24
28
  };
25
29
  /** Site option display props. */
26
30
  export interface SiteOptionDisplayProps extends ComponentPropsWithoutRef<'div'> {
27
- /**
28
- * Site option to display.
29
- */
30
- option: SiteOption;
31
31
  /**
32
32
  * Additional class names
33
33
  */
34
34
  className?: string;
35
+ /**
36
+ * Site option to display.
37
+ */
38
+ option: SiteOption;
35
39
  }
36
40
  /**
37
41
  * UI component to display site options.
38
42
  */
39
- export declare const SiteOptionDisplay: ({ option, className, ...props }: SiteOptionDisplayProps) => React.JSX.Element;
43
+ export declare const SiteOptionDisplay: ({ className, option, ...props }: SiteOptionDisplayProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  export declare const SbDocsTocLayout: ({ children }: {
3
3
  children: ReactNode;
4
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,13 @@
1
- import React, { ReactNode } from 'react';
2
- import { HeadingLevel } from '@libs/types/custom-types';
1
+ import { ReactNode } from 'react';
2
+ import { HeadingLevel } from '../types/custom-types';
3
3
  interface HxProps {
4
4
  baseClass?: string;
5
5
  children?: ReactNode;
6
+ className?: string;
6
7
  id?: string;
7
8
  level: HeadingLevel;
8
- className?: string;
9
9
  }
10
- export declare const Hx: ({ baseClass, children, id, level, className, ...props }: HxProps) => React.DetailedReactHTMLElement<{
10
+ export declare const Hx: ({ baseClass, children, className, id, level, ...props }: HxProps) => import("react").DetailedReactHTMLElement<{
11
11
  className: any;
12
12
  id: string;
13
13
  }, HTMLElement>;
@@ -1,31 +1,38 @@
1
1
  import { ReactNode } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
2
+ import { PDSIcon } from '../../components/icons/Icon/Icon';
3
3
  export type BadgeColor = 'success' | 'critical' | 'info' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond';
4
4
  export type ButtonDisplayType = 'label-only' | 'icon-start' | 'icon-end';
5
5
  export type ButtonSize = 'sm' | 'md' | 'lg';
6
6
  export type ButtonType = 'button' | 'submit' | 'reset';
7
- export type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'brand' | 'brand-secondary' | 'critical' | 'navbar' | 'inline';
7
+ export type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'brand' | 'brand-secondary' | 'critical' | 'critical-secondary' | 'navbar' | 'inline';
8
8
  export type ContainerWidth = 'narrow' | 'standard' | 'wide' | 'x-wide' | 'full';
9
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 StatusType = 'info' | 'success' | 'warning' | 'critical' | 'discovery';
11
+ export type StatusTypeExtended = StatusType | 'neutral' | 'working';
12
+ export declare const StatusTypeLabels: Record<StatusType, string>;
10
13
  export type FuiOffset = number | {
11
- mainAxis?: number;
12
- crossAxis?: number;
13
14
  alignmentAxis?: number | null;
15
+ crossAxis?: number;
16
+ mainAxis?: number;
14
17
  };
15
18
  export type FuiPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
16
19
  export type HeadingItemType = {
17
- /**
18
- * Label for a menu item
19
- */
20
- label: string;
21
20
  /**
22
21
  * Is the item a heading?
23
22
  */
24
23
  isHeading: boolean;
24
+ /**
25
+ * Label for a menu item
26
+ */
27
+ label: string;
25
28
  };
26
29
  export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
27
30
  export type HeadingLevelCommon = Exclude<HeadingLevel, 'h1' | 'h5' | 'h6'>;
28
31
  export type LinkItemType = {
32
+ /**
33
+ * Screen reader label for critical items. Only used when isCritical is true.
34
+ */
35
+ criticalLabel?: string;
29
36
  /**
30
37
  * Description of the item
31
38
  */
@@ -38,6 +45,10 @@ export type LinkItemType = {
38
45
  * Optional icon for this item. Choose from available icons in the Icon component.
39
46
  */
40
47
  iconName?: PDSIcon;
48
+ /**
49
+ * Is this a critical action item?
50
+ */
51
+ isCritical?: boolean;
41
52
  /**
42
53
  * Is the item a link?
43
54
  */
@@ -56,6 +67,10 @@ export type MenuItemType = {
56
67
  * (optional) Callback function to execute when menu item is activated
57
68
  */
58
69
  callback?: () => void;
70
+ /**
71
+ * Screen reader label for critical items. Only used when isCritical is true.
72
+ */
73
+ criticalLabel?: string;
59
74
  /**
60
75
  * Description of the item
61
76
  */
@@ -72,6 +87,10 @@ export type MenuItemType = {
72
87
  * Optional ID value for this item.
73
88
  */
74
89
  id?: string;
90
+ /**
91
+ * Is this a critical action item?
92
+ */
93
+ isCritical?: boolean;
75
94
  /**
76
95
  * Label for a menu item
77
96
  */
@@ -82,6 +101,18 @@ export type MenuItemType = {
82
101
  testId?: string;
83
102
  };
84
103
  export type NodeItemType = {
104
+ /**
105
+ * Screen reader label for critical items. Only used when isCritical is true.
106
+ */
107
+ criticalLabel?: string;
108
+ /**
109
+ * Is this item disabled?
110
+ */
111
+ disabled?: boolean;
112
+ /**
113
+ * Is this a critical action item?
114
+ */
115
+ isCritical?: boolean;
85
116
  /**
86
117
  * Is the item a node?
87
118
  */
@@ -97,9 +128,14 @@ export type SeparatorItemType = {
97
128
  */
98
129
  isSeparator: boolean;
99
130
  };
100
- export type SitePlanLevel = 'sandbox' | 'basic' | 'performance-small' | 'performance-medium' | 'performance-large' | 'performance-xl' | 'performance-2xl' | 'elite';
131
+ export type MenuItem = HeadingItemType | LinkItemType | MenuItemType | NodeItemType | SeparatorItemType;
132
+ export declare const isSeparatorItemType: (item: MenuItem) => item is SeparatorItemType;
133
+ export declare const isHeadingItemType: (item: MenuItem) => item is HeadingItemType;
134
+ export declare const isLinkItemType: (item: MenuItem) => item is LinkItemType;
135
+ export declare const isNodeItemType: (item: MenuItem) => item is NodeItemType;
136
+ export type SitePlanLevel = 'sandbox' | 'basic' | 'performance-small' | 'performance-medium' | 'performance-large' | 'performance-xl' | 'performance-2xl' | 'elite' | 'pro' | 'business' | 'flagship-performance';
101
137
  export declare const SitePlanLevelLabel: Record<SitePlanLevel, string>;
102
- export type SiteStatus = 'active' | 'frozen';
138
+ export type SiteStatus = 'active' | 'frozen' | 'restricted';
103
139
  export type SiteType = 'drupal' | 'wordpress' | 'gatsby' | 'nextjs';
104
140
  export declare const SiteTypeLabel: Record<SiteType, string>;
105
141
  export declare const SiteTypeIcon: Record<SiteType, PDSIcon>;
@@ -3,11 +3,11 @@ export type NavigationItem = {
3
3
  /**
4
4
  * A boolean indicating whether the item is the active item.
5
5
  */
6
- isActive?: boolean;
6
+ isActive?: boolean | null;
7
7
  /**
8
8
  * Link content — a fully-formed link element using the router of your choice. If a string is provided instead, the item will be rendered as a link that navigates to the first child item.
9
9
  */
10
- linkContent: ReactElement | string;
10
+ linkContent?: ReactElement | string;
11
11
  /**
12
12
  * Submenu items.
13
13
  */
@@ -17,13 +17,21 @@ export type FlattenedNavigationItem = {
17
17
  /**
18
18
  * A boolean indicating whether the item is the active item.
19
19
  */
20
- isActive?: boolean;
21
- /**
22
- * Link content — a fully-formed link element using the router of your choice.
23
- */
24
- linkContent: ReactElement;
20
+ isActive?: boolean | null;
25
21
  /**
26
22
  * Nesting level of the item.
27
23
  */
28
24
  level: 'top-level' | 'second-level' | 'third-level' | 'fourth-level';
25
+ /**
26
+ * Link content — a fully-formed link element using the router of your choice.
27
+ */
28
+ linkContent?: ReactElement;
29
29
  };
30
+ export interface NavMenuItem {
31
+ id?: string;
32
+ isActive?: boolean | null;
33
+ isSeparator?: boolean;
34
+ label: string;
35
+ linkContent?: ReactElement;
36
+ links?: NavMenuItem[];
37
+ }