@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, ReactElement } from 'react';
2
- import { NavigationItem } from '@components/navigation/navigation-types';
1
+ import { ComponentPropsWithoutRef, ReactElement } from 'react';
2
+ import { NavigationItem } from '../../../libs/types/navigation-types';
3
3
  import './side-nav.css';
4
4
  /**
5
5
  * Prop types for SideNav
@@ -9,6 +9,10 @@ export interface SideNavProps extends ComponentPropsWithoutRef<'nav'> {
9
9
  * Aria label for the navigation.
10
10
  */
11
11
  ariaLabel: string;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Heading text. If a link is passed, it will be rendered as a link.
14
18
  */
@@ -28,12 +32,8 @@ export interface SideNavProps extends ComponentPropsWithoutRef<'nav'> {
28
32
  * Text to display in the mobile menu trigger button when no active link is found.
29
33
  */
30
34
  mobileMenuSelectTextFallback?: string;
31
- /**
32
- * Additional class names
33
- */
34
- className?: string;
35
35
  }
36
36
  /**
37
37
  * SideNav UI component
38
38
  */
39
- export declare const SideNav: ({ ariaLabel, headingText, labels, menuItems, mobileMenuSelectTextFallback, className, ...props }: SideNavProps) => React.JSX.Element;
39
+ export declare const SideNav: ({ ariaLabel, className, headingText, labels, menuItems, mobileMenuSelectTextFallback, ...props }: SideNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactElement } from 'react';
2
- import { NavigationItem } from '@components/navigation/navigation-types';
1
+ import { ComponentPropsWithoutRef, ReactElement } from 'react';
2
+ import { NavigationItem } from '../../../libs/types/navigation-types';
3
3
  import './side-nav-compact.css';
4
4
  export type SideNavCompactItem = NavigationItem & {
5
5
  /**
@@ -15,6 +15,10 @@ export interface SideNavCompactProps extends ComponentPropsWithoutRef<'nav'> {
15
15
  * Aria label for the navigation.
16
16
  */
17
17
  ariaLabel: string;
18
+ /**
19
+ * Additional class names
20
+ */
21
+ className?: string;
18
22
  /**
19
23
  * Whether the menu should be rendered as a mobile menu when the viewport is at or below the mobileMenuMaxWidth.
20
24
  */
@@ -42,12 +46,8 @@ export interface SideNavCompactProps extends ComponentPropsWithoutRef<'nav'> {
42
46
  * Text to display in the mobile menu trigger button when no active link is found.
43
47
  */
44
48
  mobileMenuSelectTextFallback?: string;
45
- /**
46
- * Additional class names
47
- */
48
- className?: string;
49
49
  }
50
50
  /**
51
51
  * SideNavCompact UI component
52
52
  */
53
- export declare const SideNavCompact: ({ ariaLabel, hasMobileMenu, headingText, labels, menuItems, mobileMenuMaxWidth, mobileMenuSelectTextFallback, className, ...props }: SideNavCompactProps) => React.JSX.Element;
53
+ export declare const SideNavCompact: ({ ariaLabel, className, hasMobileMenu, headingText, labels, menuItems, mobileMenuMaxWidth, mobileMenuSelectTextFallback, ...props }: SideNavCompactProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { SideNavGlobalItemProps } from './SideNavGlobalItem';
3
3
  import './side-nav-global.css';
4
4
  /**
@@ -9,6 +9,10 @@ export interface SideNavGlobalProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Aria label for the navigation.
10
10
  */
11
11
  ariaLabel: string;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Should the Pantheon logo be displayed above the menu items?
14
18
  * It will not be displayed in the mobile view regardless of this value.
@@ -39,12 +43,8 @@ export interface SideNavGlobalProps extends ComponentPropsWithoutRef<'div'> {
39
43
  * Text to display in the mobile menu trigger button when no active link is found.
40
44
  */
41
45
  mobileMenuSelectTextFallback?: string;
42
- /**
43
- * Additional class names
44
- */
45
- className?: string;
46
46
  }
47
47
  /**
48
48
  * SideNavGlobal UI component
49
49
  */
50
- export declare const SideNavGlobal: ({ ariaLabel, hasLogo, isSidebarCollapsed, labels, logoLinkContent, menuItems, mobileMenuSelectTextFallback, className, ...props }: SideNavGlobalProps) => React.JSX.Element;
50
+ export declare const SideNavGlobal: ({ ariaLabel, className, hasLogo, isSidebarCollapsed, labels, logoLinkContent, menuItems, mobileMenuSelectTextFallback, ...props }: SideNavGlobalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- import { NavigationItem } from '@components/navigation/navigation-types';
3
- import { PDSIcon } from '@components/icons/Icon/Icon';
1
+ import { PDSIcon } from '../../icons/Icon/Icon';
2
+ import { NavigationItem } from '../../../libs/types/navigation-types';
4
3
  import './side-nav-global.css';
5
- export type SideNavGlobalItemProps = NavigationItem & {
4
+ export interface SideNavGlobalItemProps extends NavigationItem {
6
5
  /**
7
6
  * Icon to display next to the link content.
8
7
  */
@@ -18,8 +17,8 @@ export type SideNavGlobalItemProps = NavigationItem & {
18
17
  submenu: string;
19
18
  toggle: string;
20
19
  };
21
- };
20
+ }
22
21
  /**
23
22
  * SideNavGlobalItem UI component
24
23
  */
25
- export declare const SideNavGlobalItem: ({ icon, isActive, isSidebarCollapsed, labels, linkContent, links, }: SideNavGlobalItemProps) => React.JSX.Element;
24
+ export declare const SideNavGlobalItem: ({ icon, isActive, isSidebarCollapsed, labels, linkContent, links, }: SideNavGlobalItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { NavigationItem } from '../../../libs/types/navigation-types';
3
+ import { PDSIcon } from '../../icons/Icon/Icon';
3
4
  import { TabMenuDropdownProps } from './TabMenuDropdown';
4
- import { NavigationItem } from '@components/navigation/navigation-types';
5
5
  import './tab-menu.css';
6
6
  type DropdownSettings = Omit<TabMenuDropdownProps, 'links'>;
7
- export type TabMenuItemProps = NavigationItem & {
7
+ export interface TabMenuItemProps extends NavigationItem {
8
8
  /**
9
9
  * Settings for dropdown menu. Leave null if no dropdown is needed.
10
10
  */
@@ -18,7 +18,7 @@ export type TabMenuItemProps = NavigationItem & {
18
18
  * If true, the top-level menu will display the active child link instead of the parent link. If using this approach, it is recommended to also include the parent link as the first child link.
19
19
  */
20
20
  promoteActiveChildLink?: boolean;
21
- };
21
+ }
22
22
  /**
23
23
  * Prop types for TabMenu.
24
24
  */
@@ -27,17 +27,17 @@ export interface TabMenuProps extends ComponentPropsWithoutRef<'nav'> {
27
27
  * Aria label for the navigation.
28
28
  */
29
29
  ariaLabel: string;
30
- /**
31
- * Menu items to render.
32
- */
33
- menuItems?: TabMenuItemProps[];
34
30
  /**
35
31
  * Additional class names
36
32
  */
37
33
  className?: string;
34
+ /**
35
+ * Menu items to render.
36
+ */
37
+ menuItems?: TabMenuItemProps[];
38
38
  }
39
39
  /**
40
40
  * TabMenu UI component.
41
41
  */
42
- export declare const TabMenu: ({ ariaLabel, menuItems, className, ...props }: TabMenuProps) => React.JSX.Element;
42
+ export declare const TabMenu: ({ ariaLabel, className, menuItems, ...props }: TabMenuProps) => import("react/jsx-runtime").JSX.Element;
43
43
  export {};
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
- import { NavigationItem } from '@components/navigation/navigation-types';
1
+ import { NavigationItem } from '../../../libs/types/navigation-types';
3
2
  import './tab-menu.css';
4
- export type TabMenuDropdownProps = {
3
+ export interface TabMenuDropdownProps {
5
4
  /**
6
5
  * Button label for the dropdown trigger.
7
6
  */
@@ -26,8 +25,8 @@ export type TabMenuDropdownProps = {
26
25
  * Text to display when no results are found.
27
26
  */
28
27
  noResultsText?: string;
29
- };
28
+ }
30
29
  /**
31
30
  * TabMenuDropdown UI component
32
31
  */
33
- export declare const TabMenuDropdown: ({ buttonLabel, filterLabel, filterPlaceholder, links, minFilterItems, noResultsText, }: TabMenuDropdownProps) => React.JSX.Element;
32
+ export declare const TabMenuDropdown: ({ buttonLabel, filterLabel, filterPlaceholder, links, minFilterItems, noResultsText, }: TabMenuDropdownProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { PDSIcon } from '../../icons/Icon/Icon';
3
3
  import './user-menu.css';
4
4
  /**
5
5
  * Prop types for UserMenuItem
@@ -38,6 +38,10 @@ export interface UserMenuProps extends ComponentPropsWithoutRef<'span'> {
38
38
  * Aria label for the user menu.
39
39
  */
40
40
  ariaLabel?: string;
41
+ /**
42
+ * Additional class names.
43
+ */
44
+ className?: string;
41
45
  /**
42
46
  * Array of menu items.
43
47
  */
@@ -58,12 +62,8 @@ export interface UserMenuProps extends ComponentPropsWithoutRef<'span'> {
58
62
  * If true, the workspace selector will be styled and rendered to work with the mobile version of the navbar menu. Defaults to true.
59
63
  */
60
64
  withinNavbar?: boolean;
61
- /**
62
- * Additional class names.
63
- */
64
- className?: string;
65
65
  }
66
66
  /**
67
67
  * UserMenu UI component
68
68
  */
69
- export declare const UserMenu: ({ ariaLabel, menuItems, userEmail, userImageSrc, userName, withinNavbar, className, ...props }: UserMenuProps) => React.JSX.Element;
69
+ export declare const UserMenu: ({ ariaLabel, className, menuItems, userEmail, userImageSrc, userName, withinNavbar, ...props }: UserMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
2
2
  import './workspace-selector.css';
3
3
  declare const tierLabels: {
4
4
  silver: string;
@@ -20,14 +20,28 @@ export type WorkspaceSelectorItem = {
20
20
  * Is this the currently selected workspace?
21
21
  */
22
22
  isActive?: boolean;
23
+ /**
24
+ * This workspace has restricted access.
25
+ */
26
+ isRestricted?: boolean;
23
27
  /**
24
28
  * This user does not have access to this workspace.
25
29
  */
26
30
  isUnprivileged?: boolean;
31
+ /**
32
+ * Callback function to run when a restricted workspace is clicked.
33
+ * Only used when isRestricted is true.
34
+ */
35
+ onRestrictedSelection?: () => void;
27
36
  /**
28
37
  * Account plan tier.
29
38
  */
30
39
  planTier?: PlanTiers;
40
+ /**
41
+ * Visually-hidden label to indicate restricted access.
42
+ * @default 'Restricted'
43
+ */
44
+ restrictedLabel?: string;
31
45
  /**
32
46
  * Id of the workspace.
33
47
  */
@@ -46,17 +60,21 @@ export interface WorkspaceSelectorProps extends ComponentPropsWithoutRef<'span'>
46
60
  */
47
61
  ariaLabel?: string;
48
62
  /**
49
- * Link to create a new workspace. A link element using the router of your choice.
63
+ * Additional class names.
50
64
  */
51
- createWorkspaceLink?: ReactNode;
65
+ className?: string;
52
66
  /**
53
- * Placeholder text for the filter input.
67
+ * Link to create a new workspace. A link element using the router of your choice.
54
68
  */
55
- filterPlaceholder?: string;
69
+ createWorkspaceLink?: ReactNode;
56
70
  /**
57
71
  * Label for the filter input.
58
72
  */
59
73
  filterLabel?: string;
74
+ /**
75
+ * Placeholder text for the filter input.
76
+ */
77
+ filterPlaceholder?: string;
60
78
  /**
61
79
  * Heading for the workspace dropdown menu.
62
80
  */
@@ -77,13 +95,9 @@ export interface WorkspaceSelectorProps extends ComponentPropsWithoutRef<'span'>
77
95
  * List of all workspaces for a user.
78
96
  */
79
97
  workspaceList?: WorkspaceSelectorItem[];
80
- /**
81
- * Additional class names.
82
- */
83
- className?: string;
84
98
  }
85
99
  /**
86
100
  * WorkspaceSelector UI component
87
101
  */
88
- export declare const WorkspaceSelector: ({ ariaLabel, createWorkspaceLink, filterPlaceholder, filterLabel, menuHeading, minFilterItems, noResultsText, withinNavbar, workspaceList, className, ...props }: WorkspaceSelectorProps) => React.JSX.Element;
102
+ export declare const WorkspaceSelector: ({ ariaLabel, className, createWorkspaceLink, filterLabel, filterPlaceholder, menuHeading, minFilterItems, noResultsText, withinNavbar, workspaceList, ...props }: WorkspaceSelectorProps) => import("react/jsx-runtime").JSX.Element;
89
103
  export {};
@@ -1,6 +1,6 @@
1
1
  import React, { ReactElement, ReactNode } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
3
- import { NavigationItem } from '@components/navigation/navigation-types';
2
+ import { PDSIcon } from '../icons/Icon/Icon';
3
+ import { NavigationItem } from '../../libs/types/navigation-types';
4
4
  /**
5
5
  * Recursively searches through navigation items to find the first active link
6
6
  * @param items - Array of navigation items to search through
@@ -87,4 +87,4 @@ export declare const processNavLinkContent: (linkContent: ReactElement | string,
87
87
  * // React element with icon
88
88
  * const item = processSideNavGlobalLinkContent('nav', <Link to="/about">About</Link>, null, 'info');
89
89
  */
90
- export declare const processSideNavGlobalLinkContent: (baseClass: string, linkContent: ReactElement | string, links?: NavigationItem[], icon?: PDSIcon) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
90
+ export declare const processSideNavGlobalLinkContent: (baseClass: string, linkContent: ReactElement | string, links?: NavigationItem[], icon?: PDSIcon) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
@@ -1,11 +1,13 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { StatusType } from '../../../libs/types/custom-types';
2
3
  import './banner.css';
4
+ type BannerType = Exclude<StatusType, 'success' | 'discovery'>;
3
5
  type Banner = {
4
6
  id: string;
5
7
  isDismissible?: boolean;
6
- message: string | React.ReactNode;
8
+ message: string | ReactNode;
7
9
  onDismiss?: () => void;
8
- type?: 'info' | 'warning' | 'critical';
10
+ type?: BannerType;
9
11
  };
10
12
  /**
11
13
  * Prop types for Banner
@@ -15,6 +17,10 @@ export interface BannerProps extends ComponentPropsWithoutRef<'div'> {
15
17
  * Array of banner objects
16
18
  */
17
19
  banners: Banner[];
20
+ /**
21
+ * Additional class names
22
+ */
23
+ className?: string;
18
24
  /**
19
25
  * Label for the dismiss button
20
26
  */
@@ -31,17 +37,13 @@ export interface BannerProps extends ComponentPropsWithoutRef<'div'> {
31
37
  * Type labels
32
38
  */
33
39
  typeLabels?: {
40
+ critical: string;
34
41
  info: string;
35
42
  warning: string;
36
- critical: string;
37
43
  };
38
- /**
39
- * Additional class names
40
- */
41
- className?: string;
42
44
  }
43
45
  /**
44
46
  * Banner UI component
45
47
  */
46
- export declare const Banner: ({ banners, dismissLabel, labelNext, labelPrevious, typeLabels, className, ...props }: BannerProps) => React.JSX.Element;
48
+ export declare const Banner: ({ banners, className, dismissLabel, labelNext, labelPrevious, typeLabels, ...props }: BannerProps) => import("react/jsx-runtime").JSX.Element;
47
49
  export {};
@@ -1,14 +1,19 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { StatusType } from '../../../libs/types/custom-types';
2
3
  import './inline-message.css';
3
4
  /**
4
5
  * The type of message to display.
5
6
  */
6
- export type InlineMessageType = 'info' | 'success' | 'warning' | 'critical' | 'working';
7
+ export type InlineMessageType = Exclude<StatusType, 'discovery'> | 'working';
7
8
  /**
8
9
  * Labels for each message type.
9
10
  */
10
11
  type TypeLabels = Record<InlineMessageType, string>;
11
12
  export interface InlineMessageProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
12
17
  /**
13
18
  * Message body.
14
19
  */
@@ -25,13 +30,9 @@ export interface InlineMessageProps extends Omit<ComponentPropsWithoutRef<'div'>
25
30
  * Message type labels. Provide translation strings if needed.
26
31
  */
27
32
  typeLabels?: TypeLabels;
28
- /**
29
- * Additional class names
30
- */
31
- className?: string;
32
33
  }
33
34
  /**
34
35
  * InlineMessage UI component
35
36
  */
36
- export declare const InlineMessage: ({ title, message, type, typeLabels, className, ...props }: InlineMessageProps) => React.JSX.Element;
37
+ export declare const InlineMessage: ({ className, message, title, type, typeLabels, ...props }: InlineMessageProps) => import("react/jsx-runtime").JSX.Element;
37
38
  export {};
@@ -1,9 +1,14 @@
1
- import React, { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
2
- import { Button } from '@components/buttons/Button/Button';
1
+ import { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
2
+ import { StatusType } from '../../../libs/types/custom-types';
3
+ import { Button } from '../../buttons/Button/Button';
3
4
  import './section-message.css';
4
- export type SectionMessageType = 'info' | 'success' | 'warning' | 'critical' | 'discovery';
5
+ export type SectionMessageType = StatusType;
5
6
  type TypeLabels = Record<SectionMessageType, string>;
6
7
  export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional class names.
10
+ */
11
+ className?: string;
7
12
  /**
8
13
  * Props for optional call to action button.
9
14
  * Can include any Button props except for size and variant.
@@ -41,13 +46,9 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
41
46
  * Message type labels. Provide translation strings if needed.
42
47
  */
43
48
  typeLabels?: TypeLabels;
44
- /**
45
- * Additional class names.
46
- */
47
- className?: string;
48
49
  }
49
50
  /**
50
51
  * SectionMessage UI component
51
52
  */
52
- export declare const SectionMessage: ({ ctaButton, dismissLabel, id, isDismissible, onDismiss, message, title, type, typeLabels, className, ...props }: SectionMessageProps) => React.JSX.Element;
53
+ export declare const SectionMessage: ({ className, ctaButton, dismissLabel, id, isDismissible, message, onDismiss, title, type, typeLabels, ...props }: SectionMessageProps) => import("react/jsx-runtime").JSX.Element;
53
54
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './toaster.css';
3
3
  declare const iconTypes: {
4
4
  readonly info: "circleInfo";
@@ -22,6 +22,10 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
22
22
  * Toast message content.
23
23
  */
24
24
  children?: ReactNode;
25
+ /**
26
+ * Additional class names
27
+ */
28
+ className?: string;
25
29
  /**
26
30
  * ID of individual toast.
27
31
  */
@@ -34,13 +38,9 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
34
38
  * Toast type labels. Provide translation strings if needed.
35
39
  */
36
40
  typeLabels?: Partial<typeof defaultTypeLabels>;
37
- /**
38
- * Additional class names
39
- */
40
- className?: string;
41
41
  }
42
42
  /**
43
43
  * Toast UI component
44
44
  */
45
- export declare const Toast: ({ children, id, type, typeLabels, className, }: ToastProps) => React.JSX.Element;
45
+ export declare const Toast: ({ children, className, id, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
46
46
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import 'react-toastify/dist/ReactToastify.css';
3
3
  import './toaster.css';
4
4
  /**
@@ -9,6 +9,10 @@ interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Duration in milliseconds before the toast will auto-close.
10
10
  */
11
11
  autoCloseDuration?: number;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Maximum number of toasts that can be displayed at once.
14
18
  */
@@ -17,13 +21,9 @@ interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
17
21
  * Location toast objects will show in the UI.
18
22
  */
19
23
  position?: 'bottom-right' | 'top-right';
20
- /**
21
- * Additional class names
22
- */
23
- className?: string;
24
24
  }
25
25
  /**
26
26
  * Toaster UI component
27
27
  */
28
- export declare const Toaster: ({ autoCloseDuration, limit, position, className, }: ToasterProps) => React.JSX.Element;
28
+ export declare const Toaster: ({ autoCloseDuration, className, limit, position, }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
29
29
  export {};
@@ -2,9 +2,9 @@ import { ReactElement } from 'react';
2
2
  import { cssTransition, toast as toastApi, ToastOptions } from 'react-toastify';
3
3
  export declare enum ToastType {
4
4
  Critical = "critical",
5
- Warning = "warning",
6
- Working = "working",
5
+ Info = "info",
7
6
  Success = "success",
8
- Info = "info"
7
+ Warning = "warning",
8
+ Working = "working"
9
9
  }
10
10
  export declare const useToast: () => [(type: ToastType, message: string | ReactElement, options?: ToastOptions) => string | number, typeof toastApi, ReturnType<typeof cssTransition>];
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './expansion-panel.css';
3
3
  /**
4
4
  * Prop types for ExpansionPanel
@@ -8,6 +8,10 @@ interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
8
8
  * The content of the expansion panel.
9
9
  */
10
10
  children?: ReactNode;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * The ID of the expansion panel. If not provided, a unique ID will be generated.
13
17
  */
@@ -20,13 +24,9 @@ interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
20
24
  * The summary label of the expansion panel.
21
25
  */
22
26
  summary?: string | ReactNode;
23
- /**
24
- * Additional class names
25
- */
26
- className?: string;
27
27
  }
28
28
  /**
29
29
  * ExpansionPanel UI component
30
30
  */
31
- export declare const ExpansionPanel: ({ children, id, isOpen, summary, className, ...props }: ExpansionPanelProps) => React.JSX.Element;
31
+ export declare const ExpansionPanel: ({ children, className, id, isOpen, summary, ...props }: ExpansionPanelProps) => import("react/jsx-runtime").JSX.Element;
32
32
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './expansion-panel-group.css';
3
3
  /**
4
4
  * Prop types for ExpansionPanelGroup
@@ -8,17 +8,17 @@ interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
8
8
  * The content of the expansion panel group. This should be a series of ExpansionPanel components.
9
9
  */
10
10
  children?: ReactNode;
11
- /**
12
- * The display type of the expansion panel group.
13
- */
14
- displayType?: 'standard' | 'no-border' | 'stacked';
15
11
  /**
16
12
  * Additional class names
17
13
  */
18
14
  className?: string;
15
+ /**
16
+ * The display type of the expansion panel group.
17
+ */
18
+ displayType?: 'standard' | 'no-border' | 'stacked';
19
19
  }
20
20
  /**
21
21
  * ExpansionPanelGroup UI component
22
22
  */
23
- export declare const ExpansionPanelGroup: ({ children, displayType, className, ...props }: ExpansionPanelGroupProps) => React.JSX.Element;
23
+ export declare const ExpansionPanelGroup: ({ children, className, displayType, ...props }: ExpansionPanelGroupProps) => import("react/jsx-runtime").JSX.Element;
24
24
  export {};
@@ -1,12 +1,18 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { StatusType } from '../../../libs/types/custom-types';
3
+ import { GridGapOptions } from '../../../libs/types/layout-types';
2
4
  import './panel.css';
3
- import { GridGapOptions } from '@layouts/layout-types';
4
- type StatusType = 'info' | 'success' | 'warning' | 'critical' | 'neutral';
5
+ export type PanelStatusType = Exclude<StatusType, 'discovery'> | 'neutral';
6
+ type TypeLabels = Record<Exclude<StatusType, 'discovery'>, string>;
5
7
  export interface PanelProps extends ComponentPropsWithoutRef<'div'> {
6
8
  /**
7
9
  * Panel content.
8
10
  */
9
11
  children: ReactNode;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
10
16
  /**
11
17
  * Should the panel show a status indicator.
12
18
  */
@@ -18,18 +24,19 @@ export interface PanelProps extends ComponentPropsWithoutRef<'div'> {
18
24
  /**
19
25
  * Status type for panel. Only renders if `hasStatusIndicator` is true.
20
26
  */
21
- statusType?: StatusType;
27
+ statusType?: PanelStatusType;
22
28
  /**
23
- * Which variant of panel to render
29
+ * Status type labels for screen readers. Provide translation strings if needed.
30
+ * Set to empty string ('') to create a visual-only indicator.
24
31
  */
25
- variant?: 'default' | 'sunken' | 'raised' | 'overlay' | 'critical';
32
+ typeLabels?: TypeLabels;
26
33
  /**
27
- * Additional class names
34
+ * Which variant of panel to render
28
35
  */
29
- className?: string;
36
+ variant?: 'default' | 'sunken' | 'raised' | 'overlay' | 'critical';
30
37
  }
31
38
  /**
32
39
  * Panel UI component
33
40
  */
34
- export declare const Panel: ({ children, hasStatusIndicator, padding, statusType, variant, className, ...props }: PanelProps) => React.JSX.Element;
41
+ export declare const Panel: ({ children, className, hasStatusIndicator, padding, statusType, typeLabels, variant, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
35
42
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './panel-list.css';
3
3
  export type PanelListBackground = 'default' | 'secondary' | 'transparent';
4
4
  /**
@@ -13,16 +13,20 @@ export interface PanelListProps extends ComponentPropsWithoutRef<'ul'> {
13
13
  * Children components. These should be PanelRow components.
14
14
  */
15
15
  children?: ReactNode;
16
+ /**
17
+ * Additional class names.
18
+ */
19
+ className?: string;
16
20
  /**
17
21
  * Whether to have an outside border. There will always be a border between rows.
18
22
  */
19
23
  hasBorder?: boolean;
20
24
  /**
21
- * Additional class names.
25
+ * Panel list size variants for block padding only.
22
26
  */
23
- className?: string;
27
+ paddingSize?: '4xs' | '3xs' | '2xs' | 'xs' | 'sm' | 'md' | 'lg';
24
28
  }
25
29
  /**
26
30
  * PanelList UI component
27
31
  */
28
- export declare const PanelList: ({ background, children, hasBorder, className, ...props }: PanelListProps) => React.JSX.Element;
32
+ export declare const PanelList: ({ background, children, className, hasBorder, paddingSize, ...props }: PanelListProps) => import("react/jsx-runtime").JSX.Element;