@pantheon-systems/pds-toolkit-react 1.0.0-dev.9999 → 1.0.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 (192) 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 +10 -10
  89. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +7 -7
  90. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +7 -7
  91. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +8 -18
  92. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +4 -4
  93. package/_dist/components/navigation/Navbar/Navbar.d.ts +8 -8
  94. package/_dist/components/navigation/SideNav/SideNav.d.ts +7 -7
  95. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +7 -7
  96. package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +6 -6
  97. package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +5 -6
  98. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +10 -10
  99. package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +4 -5
  100. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +7 -7
  101. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +24 -10
  102. package/_dist/components/navigation/navigation-utilities.d.ts +3 -3
  103. package/_dist/components/notifications/Banner/Banner.d.ts +11 -9
  104. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +8 -7
  105. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +9 -8
  106. package/_dist/components/notifications/Toaster/Toast.d.ts +6 -6
  107. package/_dist/components/notifications/Toaster/Toaster.d.ts +6 -6
  108. package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
  109. package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +6 -6
  110. package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +6 -6
  111. package/_dist/components/panels/Panel/Panel.d.ts +16 -9
  112. package/_dist/components/panels/PanelList/PanelList.d.ts +8 -4
  113. package/_dist/components/panels/PanelList/PanelRow.d.ts +6 -6
  114. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +8 -7
  115. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +6 -6
  116. package/_dist/components/steppers/Stepper/Stepper.d.ts +7 -7
  117. package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +7 -7
  118. package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +6 -6
  119. package/_dist/components/steppers/VerticalStepper/vertical-stepper-sample-data.d.ts +3 -4
  120. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +9 -9
  121. package/_dist/components/tiles/Tile/Tile.d.ts +7 -7
  122. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +8 -8
  123. package/_dist/css/component-css/pds-avatar.css +1 -1
  124. package/_dist/css/component-css/pds-button.css +1 -1
  125. package/_dist/css/component-css/pds-checkbox.css +1 -1
  126. package/_dist/css/component-css/pds-code-block.css +1 -1
  127. package/_dist/css/component-css/pds-combobox-multiselect.css +1 -1
  128. package/_dist/css/component-css/pds-combobox.css +1 -1
  129. package/_dist/css/component-css/pds-dashboard-nav.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 +4 -2
  163. package/_dist/index.js +8372 -8581
  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/libs/components/sb-docs-toc-layout.d.ts +2 -2
  177. package/_dist/libs/components/utility-components.d.ts +4 -4
  178. package/_dist/libs/types/custom-types.d.ts +46 -10
  179. package/_dist/{components/navigation → libs/types}/navigation-types.d.ts +15 -7
  180. package/_dist/mocks/data/navigation-items.d.ts +58 -147
  181. package/_dist/mocks/markup/dashboard-main-content.d.ts +3 -4
  182. package/_dist/mocks/markup/dashboard-navigation.d.ts +3 -4
  183. package/_dist/mocks/markup/inputs.d.ts +1 -2
  184. package/_dist/mocks/markup/modal.d.ts +1 -2
  185. package/_dist/mocks/markup/panel-row-content.d.ts +5 -6
  186. package/_dist/utilities/color/color-preview-swatches.d.ts +3 -4
  187. package/_dist/utilities/context-providers/OverlayContext/OverlayContext.d.ts +12 -0
  188. package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +1 -1
  189. package/_dist/vars/animation.d.ts +2 -2
  190. package/package.json +50 -43
  191. /package/_dist/{components/inputs → libs/types}/input-types.d.ts +0 -0
  192. /package/_dist/{layouts → libs/types}/layout-types.d.ts +0 -0
@@ -1,15 +1,23 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { FuiPlacement } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { FuiPlacement } from '../../libs/types/custom-types';
3
3
  import './popover.css';
4
- interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
4
+ export interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
5
5
  /**
6
- * Content to display in the popover.
6
+ * Additional class names.
7
7
  */
8
- content?: ReactNode;
8
+ className?: string;
9
+ /**
10
+ * Additional class names for the Popover Container.
11
+ */
12
+ classNameContainer?: string;
9
13
  /**
10
14
  * Text for close button aria-label attribute. Only used if hasCloseButton is true.
11
15
  */
12
16
  closeButtonLabel?: string;
17
+ /**
18
+ * Content to display in the popover.
19
+ */
20
+ content?: ReactNode;
13
21
  /**
14
22
  * Text or HTML content to use as the trigger instead of an icon. Leave null to use the icon. This allows passing HTML content to customize the trigger appearance or functionality.
15
23
  */
@@ -30,18 +38,6 @@ interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'>
30
38
  * Preferred placement of the popover in relation to the trigger. Will be modified if there is not enough space.
31
39
  */
32
40
  placement?: FuiPlacement;
33
- /**
34
- * Text for popover title.
35
- */
36
- title?: string;
37
- /**
38
- * The accessible text for the trigger. Only necessary when the trigger is an icon.
39
- */
40
- triggerAccessibleText?: string;
41
- /**
42
- * The icon to use as the trigger.
43
- */
44
- triggerIcon?: 'circleInfo' | 'circleQuestion';
45
41
  /**
46
42
  * Boolean to determine if the Popover is open by default.
47
43
  */
@@ -51,16 +47,19 @@ interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'>
51
47
  */
52
48
  setPopoverIsOpen?: (isOpen: boolean) => void;
53
49
  /**
54
- * Additional class names.
50
+ * Text for popover title.
55
51
  */
56
- className?: string;
52
+ title?: string;
57
53
  /**
58
- * Additional class names for the Popover Container.
54
+ * The accessible text for the trigger. Only necessary when the trigger is an icon.
59
55
  */
60
- classNameContainer?: string;
56
+ triggerAccessibleText?: string;
57
+ /**
58
+ * The icon to use as the trigger.
59
+ */
60
+ triggerIcon?: 'circleInfo' | 'circleQuestion';
61
61
  }
62
62
  /**
63
63
  * Popover UI component
64
64
  */
65
- export declare const Popover: ({ content, closeButtonLabel, customTrigger, hasCloseButton, offsetValue, onClose, placement, title, triggerIcon, triggerAccessibleText, popoverIsOpen, setPopoverIsOpen, className, classNameContainer, ...props }: PopoverProps) => React.JSX.Element;
66
- export {};
65
+ export declare const Popover: ({ className, classNameContainer, closeButtonLabel, content, customTrigger, hasCloseButton, offsetValue, onClose, placement, popoverIsOpen, setPopoverIsOpen, title, triggerAccessibleText, triggerIcon, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,19 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './pull-quote.css';
3
3
  interface Attribution {
4
4
  name: string;
5
- title: string;
6
5
  org: string;
6
+ title: string;
7
7
  }
8
8
  interface PullQuoteProps extends ComponentPropsWithoutRef<'div'> {
9
9
  /**
10
10
  * Attribution for the quote
11
11
  */
12
12
  attribution?: Attribution;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Image src. For stand-alone layout only, will not render for inline layout.
15
19
  */
@@ -22,13 +26,9 @@ interface PullQuoteProps extends ComponentPropsWithoutRef<'div'> {
22
26
  * The quote text
23
27
  */
24
28
  quote: string;
25
- /**
26
- * Additional class names
27
- */
28
- className?: string;
29
29
  }
30
30
  /**
31
31
  * PullQuote UI component
32
32
  */
33
- export declare const PullQuote: ({ attribution, image, layoutType, quote, className, ...props }: PullQuoteProps) => React.JSX.Element;
33
+ export declare const PullQuote: ({ attribution, className, image, layoutType, quote, ...props }: PullQuoteProps) => import("react/jsx-runtime").JSX.Element;
34
34
  export {};
@@ -1,12 +1,12 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './refresh-checker.css';
3
3
  /**
4
4
  * Enum for RefreshChecker states
5
5
  */
6
6
  export declare enum RefreshCheckerState {
7
+ CHECKED = "checked",
7
8
  DEFAULT = "default",
8
- WORKING = "working",
9
- CHECKED = "checked"
9
+ WORKING = "working"
10
10
  }
11
11
  /**
12
12
  * Prop types for RefreshChecker
@@ -16,6 +16,10 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
16
16
  * Alignment of the component. Default is left.
17
17
  */
18
18
  alignment?: 'left' | 'right';
19
+ /**
20
+ * Additional class names
21
+ */
22
+ className?: string;
19
23
  /**
20
24
  * Custom width in rems for the component. This will override the default.
21
25
  */
@@ -24,11 +28,11 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
24
28
  * Internationalization props for labels.
25
29
  */
26
30
  labelStrings?: {
31
+ ariaLabel?: string;
32
+ checked?: string;
27
33
  checkForUpdates?: string;
28
34
  checking?: string;
29
- checked?: string;
30
35
  tooltipContent?: string;
31
- ariaLabel?: string;
32
36
  };
33
37
  /**
34
38
  * Last checked timestamp
@@ -42,13 +46,9 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
42
46
  * State of the component
43
47
  */
44
48
  state?: `${RefreshCheckerState}`;
45
- /**
46
- * Additional class names
47
- */
48
- className?: string;
49
49
  }
50
50
  /**
51
51
  * RefreshChecker UI component
52
52
  */
53
- export declare const RefreshChecker: ({ alignment, componentWidth, labelStrings, lastChecked, onCheck, state, className, ...props }: RefreshCheckerProps) => React.JSX.Element;
53
+ export declare const RefreshChecker: ({ alignment, className, componentWidth, labelStrings, lastChecked, onCheck, state, ...props }: RefreshCheckerProps) => import("react/jsx-runtime").JSX.Element;
54
54
  export {};
@@ -1,11 +1,14 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { Popover } from '@components/Popover/Popover';
3
- import { SitePlanLevel, SiteType } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { SitePlanLevel, SiteType } from '../../libs/types/custom-types';
4
3
  import './site-dashboard-heading.css';
5
4
  /**
6
5
  * Prop types for SiteDashboardHeading
7
6
  */
8
7
  export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
9
12
  /**
10
13
  * Function to handle upgrade click.
11
14
  */
@@ -14,14 +17,14 @@ export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div
14
17
  * Function to handle popover content.
15
18
  */
16
19
  popoverContent?: ReactNode;
17
- /**
18
- * Title for the popover.
19
- */
20
- popoverTitle?: string;
21
20
  /**
22
21
  * Function to handle popover open state.
23
22
  */
24
23
  popoverIsOpen?: boolean;
24
+ /**
25
+ * Title for the popover.
26
+ */
27
+ popoverTitle?: string;
25
28
  /**
26
29
  * Function to set popover open state.
27
30
  */
@@ -39,19 +42,21 @@ export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div
39
42
  */
40
43
  siteType?: SiteType;
41
44
  /**
42
- * Additional props to pass to the trigger component.
45
+ * Additional props to pass to the trigger component. Accepts any HTML div attributes.
43
46
  */
44
- triggerProps?: Omit<ComponentPropsWithoutRef<typeof Popover>, 'content' | 'title' | 'placement' | 'triggerIcon'>;
47
+ triggerProps?: ComponentPropsWithoutRef<'div'> & {
48
+ [key: `data-${string}`]: string | undefined;
49
+ };
45
50
  /**
46
51
  * Label for the upgrade button.
47
52
  */
48
53
  upgradeLabel: string;
49
54
  /**
50
- * Additional class names
55
+ * Name of the workspace.
51
56
  */
52
- className?: string;
57
+ workspaceName?: string;
53
58
  }
54
59
  /**
55
60
  * SiteDashboardHeading UI component
56
61
  */
57
- export declare const SiteDashboardHeading: ({ popoverContent, popoverIsOpen, popoverTitle, handleUpgradeClick, setPopoverIsOpen, siteName, sitePlanLevel, siteType, triggerProps, upgradeLabel, className, ...props }: SiteDashboardHeadingProps) => React.JSX.Element;
62
+ export declare const SiteDashboardHeading: ({ className, handleUpgradeClick, popoverContent, popoverIsOpen, popoverTitle, setPopoverIsOpen, siteName, sitePlanLevel, siteType, triggerProps, upgradeLabel, workspaceName, ...props }: SiteDashboardHeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,10 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './skiplink.css';
3
3
  interface SkiplinkProps extends ComponentPropsWithoutRef<'a'> {
4
+ /**
5
+ * Additional class names
6
+ */
7
+ className?: string;
4
8
  /**
5
9
  * The ID of the element to skip to.
6
10
  */
@@ -9,13 +13,9 @@ interface SkiplinkProps extends ComponentPropsWithoutRef<'a'> {
9
13
  * The text of the skip link.
10
14
  */
11
15
  text: string;
12
- /**
13
- * Additional class names
14
- */
15
- className?: string;
16
16
  }
17
17
  /**
18
18
  * Skiplink UI component
19
19
  */
20
- export declare const Skiplink: ({ destination, text, className, ...props }: SkiplinkProps) => React.JSX.Element;
20
+ export declare const Skiplink: ({ className, destination, text, ...props }: SkiplinkProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -1,23 +1,23 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { PDSIcon } from '../icons/Icon/Icon';
3
3
  import './social-links.css';
4
4
  interface SocialLinksProps extends ComponentPropsWithoutRef<'ul'> {
5
- /**
6
- * Array of social media links
7
- */
8
- linkItems?: (keyof typeof socialData)[];
9
5
  /**
10
6
  * Additional class names
11
7
  */
12
8
  className?: string;
9
+ /**
10
+ * Array of social media links
11
+ */
12
+ linkItems?: (keyof typeof socialData)[];
13
13
  }
14
14
  declare const socialData: Record<string, {
15
15
  icon: PDSIcon;
16
- url: string;
17
16
  label: string;
17
+ url: string;
18
18
  }>;
19
19
  /**
20
20
  * SocialLinks UI component
21
21
  */
22
- export declare const SocialLinks: ({ linkItems, className, ...props }: SocialLinksProps) => React.JSX.Element;
22
+ export declare const SocialLinks: ({ className, linkItems, ...props }: SocialLinksProps) => import("react/jsx-runtime").JSX.Element;
23
23
  export {};
@@ -1,6 +1,11 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { StatusType } from '../../libs/types/custom-types';
2
3
  import './status-indicator.css';
3
4
  export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
5
+ /**
6
+ * Additional class names
7
+ */
8
+ className?: string;
4
9
  /**
5
10
  * Status label text
6
11
  */
@@ -12,13 +17,9 @@ export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
12
17
  /**
13
18
  * Sets status type
14
19
  */
15
- type: 'critical' | 'info' | 'neutral' | 'new' | 'success' | 'warning' | 'working';
16
- /**
17
- * Additional class names
18
- */
19
- className?: string;
20
+ type: Exclude<StatusType, 'discovery'> | 'neutral' | 'new' | 'working';
20
21
  }
21
22
  /**
22
23
  * StatusIndicator UI component
23
24
  */
24
- export declare const StatusIndicator: ({ label, size, type, className, ...props }: StatusIndicatorProps) => React.JSX.Element;
25
+ export declare const StatusIndicator: ({ className, label, size, type, ...props }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,27 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './table.css';
3
3
  /**
4
4
  * Prop types for Table
5
5
  */
6
6
  interface TableProps extends ComponentPropsWithoutRef<'table'> {
7
+ /**
8
+ * Additional class names
9
+ */
10
+ className?: string;
7
11
  /**
8
12
  * Table headers
9
13
  */
10
14
  headers?: Array<{
11
- title: string;
12
15
  sortable?: boolean;
16
+ title: string;
13
17
  }>;
14
18
  /**
15
- * Table row data
19
+ * Table row data - array of rows, where each row is an array of cell values
16
20
  */
17
- rowData?: ReactNode[];
18
- /**
19
- * Additional class names
20
- */
21
- className?: string;
21
+ rowData?: Array<Array<string | ReactNode>>;
22
22
  }
23
23
  /**
24
24
  * Table UI component
25
25
  */
26
- export declare const Table: ({ headers, rowData, className, ...props }: TableProps) => React.JSX.Element;
26
+ export declare const Table: ({ className, headers, rowData, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
27
27
  export {};
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
- import { HeadingLevelCommon } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { HeadingLevelCommon } from '../../libs/types/custom-types';
3
3
  import './table-of-contents.css';
4
4
  /**
5
5
  * Prop types for TableOfContents
@@ -14,9 +14,9 @@ interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
14
14
  */
15
15
  ariaLabel?: string;
16
16
  /**
17
- * Whether the heading should be visible or not. If not visible it will still be presented to screen readers.
17
+ * Additional class names.
18
18
  */
19
- showHeading?: boolean;
19
+ className?: string;
20
20
  /**
21
21
  * Heading level for TOC heading.
22
22
  */
@@ -30,16 +30,16 @@ interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
30
30
  */
31
31
  ignoreClass?: string;
32
32
  /**
33
- * ID name of content region to be indexed.
33
+ * Whether the heading should be visible or not. If not visible it will still be presented to screen readers.
34
34
  */
35
- sourceID?: string;
35
+ showHeading?: boolean;
36
36
  /**
37
- * Additional class names.
37
+ * ID name of content region to be indexed.
38
38
  */
39
- className?: string;
39
+ sourceID?: string;
40
40
  }
41
41
  /**
42
42
  * TableOfContents UI component
43
43
  */
44
- export declare const TableOfContents: ({ appendIds, ariaLabel, headingLevel, headingText, ignoreClass, showHeading, sourceID, className, ...props }: TableOfContentsProps) => React.JSX.Element;
44
+ export declare const TableOfContents: ({ appendIds, ariaLabel, className, headingLevel, headingText, ignoreClass, showHeading, sourceID, ...props }: TableOfContentsProps) => import("react/jsx-runtime").JSX.Element;
45
45
  export {};
@@ -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 './tabs.css';
4
4
  interface Tabs {
5
5
  /**
@@ -14,14 +14,14 @@ interface Tabs {
14
14
  * Sets content inside tab
15
15
  */
16
16
  panelContent: ReactNode;
17
- /**
18
- * Sets tab label
19
- */
20
- tabLabel: string | ReactNode;
21
17
  /**
22
18
  * Sets id for tab.
23
19
  */
24
20
  tabId?: string;
21
+ /**
22
+ * Sets tab label
23
+ */
24
+ tabLabel: string | ReactNode;
25
25
  /**
26
26
  * Sets optional tab tally.
27
27
  */
@@ -31,18 +31,22 @@ interface Tabs {
31
31
  };
32
32
  }
33
33
  interface TabsProps extends ComponentPropsWithoutRef<'div'> {
34
- /**
35
- * Function to call when the active tab changes
36
- */
37
- onActiveTabChange?: (activeTabIndex: number) => void;
38
34
  /**
39
35
  * Sets tabset aria label
40
36
  */
41
37
  ariaLabel: string;
38
+ /**
39
+ * Additional class names
40
+ */
41
+ className?: string;
42
42
  /**
43
43
  * Sets default selected tab using a zero-based index, defaults to 0
44
44
  */
45
45
  defaultSelected?: number;
46
+ /**
47
+ * Function to call when the active tab changes
48
+ */
49
+ onActiveTabChange?: (activeTabIndex: number) => void;
46
50
  /**
47
51
  * Sets currently selected tab using a zero-based index
48
52
  */
@@ -51,13 +55,9 @@ interface TabsProps extends ComponentPropsWithoutRef<'div'> {
51
55
  * Array of objects for tab data
52
56
  */
53
57
  tabs: Tabs[];
54
- /**
55
- * Additional class names
56
- */
57
- className?: string;
58
58
  }
59
59
  /**
60
60
  * Tabs UI component
61
61
  */
62
- export declare const Tabs: ({ ariaLabel, defaultSelected, onActiveTabChange, selectedTab, tabs, className, ...props }: TabsProps) => React.JSX.Element;
62
+ export declare const Tabs: ({ ariaLabel, className, defaultSelected, onActiveTabChange, selectedTab, tabs, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
63
63
  export {};
@@ -1,16 +1,20 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './tag.css';
3
3
  export declare const tagColors: string[];
4
4
  type TagColor = (typeof tagColors)[number];
5
5
  interface TagProps extends ComponentPropsWithoutRef<'div'> {
6
6
  /**
7
- * Should the tag be a link? If yes, provide a link element.
7
+ * Additional class names
8
8
  */
9
- linkContent?: ReactNode;
9
+ className?: string;
10
10
  /**
11
11
  * Should the tag be removable?
12
12
  */
13
13
  isRemovable?: boolean;
14
+ /**
15
+ * Should the tag be a link? If yes, provide a link element.
16
+ */
17
+ linkContent?: ReactNode;
14
18
  /**
15
19
  * Function to execute when the tag is removed.
16
20
  */
@@ -27,13 +31,9 @@ interface TagProps extends ComponentPropsWithoutRef<'div'> {
27
31
  * Tag text
28
32
  */
29
33
  tagLabel: string;
30
- /**
31
- * Additional class names
32
- */
33
- className?: string;
34
34
  }
35
35
  /**
36
36
  * Tag UI component
37
37
  */
38
- export declare const Tag: ({ linkContent, isRemovable, onRemove, removeLabel, tagColor, tagLabel, className, ...props }: TagProps) => React.JSX.Element;
38
+ export declare const Tag: ({ className, isRemovable, linkContent, onRemove, removeLabel, tagColor, tagLabel, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
39
39
  export {};
@@ -1,32 +1,32 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './theme-switcher.css';
3
3
  /**
4
4
  * Prop types for ThemeSwitcher
5
5
  */
6
6
  export interface ThemeSwitcherProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {
7
7
  /**
8
- * The current theme
8
+ * Additional class names
9
9
  */
10
- theme?: 'light' | 'dark' | 'system';
10
+ className?: string;
11
11
  /**
12
12
  * Callback triggered when the theme changes
13
13
  */
14
14
  onChange?: (theme: 'light' | 'dark' | 'system') => void;
15
+ /**
16
+ * The current theme
17
+ */
18
+ theme?: 'light' | 'dark' | 'system';
15
19
  /**
16
20
  * Translation strings for theme options
17
21
  */
18
22
  translations?: {
19
- light: string;
20
23
  dark: string;
24
+ light: string;
21
25
  system: string;
22
26
  tooltip?: string;
23
27
  };
24
- /**
25
- * Additional class names
26
- */
27
- className?: string;
28
28
  }
29
29
  /**
30
30
  * ThemeSwitcher UI component
31
31
  */
32
- export declare const ThemeSwitcher: ({ theme, onChange, translations, className, ...props }: ThemeSwitcherProps) => React.JSX.Element;
32
+ export declare const ThemeSwitcher: ({ className, onChange, theme, translations, ...props }: ThemeSwitcherProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,12 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { Placement } from '@floating-ui/react';
3
- import { FuiOffset } from '@libs/types/custom-types';
3
+ import { FuiOffset } from '../../libs/types/custom-types';
4
4
  import './tooltip.css';
5
5
  interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
6
+ /**
7
+ * Additional class names
8
+ */
9
+ className?: string;
6
10
  /**
7
11
  * Text to display in tooltip container.
8
12
  */
@@ -39,13 +43,9 @@ interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
39
43
  * Z-index value for the tooltip container. In most cases, the default value should be retained.
40
44
  */
41
45
  zIndex?: number;
42
- /**
43
- * Additional class names
44
- */
45
- className?: string;
46
46
  }
47
47
  /**
48
48
  * Tooltip UI component
49
49
  */
50
- export declare const Tooltip: ({ content, customTrigger, offsetValue, preferredPlacement, triggerAccessibleText, triggerIcon, triggerIconColor, triggerIconSize, zIndex, className, ...props }: TooltipProps) => React.JSX.Element;
50
+ export declare const Tooltip: ({ className, content, customTrigger, offsetValue, preferredPlacement, triggerAccessibleText, triggerIcon, triggerIconColor, triggerIconSize, zIndex, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
51
51
  export {};
@@ -1,9 +1,13 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './video-embed.css';
3
3
  /**
4
4
  * Prop types for VideoEmbed
5
5
  */
6
6
  export interface VideoEmbedProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Additional class names
9
+ */
10
+ className?: string;
7
11
  /**
8
12
  * Video hosting platform.
9
13
  */
@@ -17,12 +21,8 @@ export interface VideoEmbedProps extends ComponentPropsWithoutRef<'div'> {
17
21
  * If none is provided it will default to `"[platform] video player"`
18
22
  */
19
23
  videoTitle?: string;
20
- /**
21
- * Additional class names
22
- */
23
- className?: string;
24
24
  }
25
25
  /**
26
26
  * VideoEmbed UI component
27
27
  */
28
- export declare const VideoEmbed: ({ platform, videoId, videoTitle, className, ...props }: VideoEmbedProps) => React.JSX.Element;
28
+ export declare const VideoEmbed: ({ className, platform, videoId, videoTitle, ...props }: VideoEmbedProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,17 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './indicator-badge.css';
3
3
  /**
4
4
  * IndicatorBadge component props
5
5
  */
6
6
  export interface IndicatorBadgeProps extends ComponentPropsWithoutRef<'span'> {
7
+ /**
8
+ * Additional class names
9
+ */
10
+ className?: string;
7
11
  /**
8
12
  * Badge color
9
13
  */
10
- color: 'critical' | 'info' | 'success' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond';
14
+ color: 'critical' | 'info' | 'success' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond' | 'default';
11
15
  /**
12
16
  * Badge text.
13
17
  */
@@ -16,12 +20,8 @@ export interface IndicatorBadgeProps extends ComponentPropsWithoutRef<'span'> {
16
20
  * Badge size
17
21
  */
18
22
  size?: 'sm' | 'md';
19
- /**
20
- * Additional class names
21
- */
22
- className?: string;
23
23
  }
24
24
  /**
25
25
  * IndicatorBadge UI component
26
26
  */
27
- export declare const IndicatorBadge: ({ label, size, color, className, ...props }: IndicatorBadgeProps) => React.JSX.Element;
27
+ export declare const IndicatorBadge: ({ className, color, label, size, ...props }: IndicatorBadgeProps) => import("react/jsx-runtime").JSX.Element;