@pantheon-systems/pds-toolkit-react 1.0.0-alpha.9 → 1.0.0-beta.1

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 (153) hide show
  1. package/_dist/components/Avatar/Avatar.d.ts +5 -5
  2. package/_dist/components/BranchDiff/BranchDiff.d.ts +9 -9
  3. package/_dist/components/CTALink/CTALink.d.ts +5 -5
  4. package/_dist/components/CTASlice/CTASlice.d.ts +5 -5
  5. package/_dist/components/Callout/Callout.d.ts +7 -7
  6. package/_dist/components/CodeBlock/CodeBlock.d.ts +5 -5
  7. package/_dist/components/ComparisonList/ComparisonList.d.ts +6 -6
  8. package/_dist/components/DashboardStat/DashboardStat.d.ts +9 -9
  9. package/_dist/components/FileDiff/FileDiff.d.ts +10 -10
  10. package/_dist/components/FlowSteps/FlowSteps.d.ts +9 -9
  11. package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +5 -5
  12. package/_dist/components/Modal/Modal.d.ts +5 -5
  13. package/_dist/components/Pagination/Pagination.d.ts +6 -6
  14. package/_dist/components/PantheonLogo/PantheonLogo.d.ts +5 -5
  15. package/_dist/components/Picture/Picture.d.ts +14 -14
  16. package/_dist/components/Popover/Popover.d.ts +19 -19
  17. package/_dist/components/PullQuote/PullQuote.d.ts +6 -6
  18. package/_dist/components/RefreshChecker/RefreshChecker.d.ts +9 -9
  19. package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +12 -8
  20. package/_dist/components/Skiplink/Skiplink.d.ts +5 -5
  21. package/_dist/components/SocialLinks/SocialLinks.d.ts +6 -6
  22. package/_dist/components/StatusIndicator/StatusIndicator.d.ts +5 -5
  23. package/_dist/components/Table/Table.d.ts +8 -8
  24. package/_dist/components/TableOfContents/TableOfContents.d.ts +7 -7
  25. package/_dist/components/Tabs/Tabs.d.ts +13 -13
  26. package/_dist/components/Tag/Tag.d.ts +7 -7
  27. package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +8 -8
  28. package/_dist/components/Tooltip/Tooltip.d.ts +5 -5
  29. package/_dist/components/VideoEmbed/VideoEmbed.d.ts +5 -5
  30. package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +6 -6
  31. package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +5 -5
  32. package/_dist/components/badges/Tally/Tally.d.ts +7 -7
  33. package/_dist/components/buttons/Button/Button.d.ts +5 -5
  34. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +6 -6
  35. package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +5 -5
  36. package/_dist/components/buttons/CloseButton/CloseButton.d.ts +5 -5
  37. package/_dist/components/buttons/IconButton/IconButton.d.ts +8 -8
  38. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +5 -5
  39. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +12 -12
  40. package/_dist/components/buttons/SplitButton/SplitButton.d.ts +5 -5
  41. package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +16 -10
  42. package/_dist/components/cards/Card/Card.d.ts +5 -5
  43. package/_dist/components/cards/CardHeading/CardHeading.d.ts +5 -5
  44. package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +9 -9
  45. package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +5 -5
  46. package/_dist/components/cards/LinksCard/LinksCard.d.ts +5 -5
  47. package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +10 -10
  48. package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +15 -15
  49. package/_dist/components/cards/PricingCard/PricingCard.d.ts +20 -20
  50. package/_dist/components/cards/SiteCard/SiteCard.d.ts +6 -7
  51. package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +6 -6
  52. package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +26 -26
  53. package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +13 -13
  54. package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +6 -6
  55. package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +6 -6
  56. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +9 -9
  57. package/_dist/components/icons/Icon/Icon.d.ts +6 -6
  58. package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +5 -5
  59. package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +2 -2
  60. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +6 -6
  61. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +8 -8
  62. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +6 -6
  63. package/_dist/components/inputs/Combobox/Combobox.d.ts +16 -16
  64. package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +11 -11
  65. package/_dist/components/inputs/Datepicker/Datepicker.d.ts +96 -0
  66. package/_dist/components/inputs/FileUpload/FileUpload.d.ts +5 -5
  67. package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +12 -12
  68. package/_dist/components/inputs/Select/Select.d.ts +12 -12
  69. package/_dist/components/inputs/Switch/Switch.d.ts +9 -7
  70. package/_dist/components/inputs/TextInput/TextInput.d.ts +6 -6
  71. package/_dist/components/inputs/Textarea/Textarea.d.ts +10 -10
  72. package/_dist/components/inputs/input-utilities.d.ts +29 -29
  73. package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +5 -5
  74. package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +5 -5
  75. package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +5 -5
  76. package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +5 -5
  77. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +5 -5
  78. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +1 -1
  79. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +9 -9
  80. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +5 -5
  81. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +5 -5
  82. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +7 -17
  83. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +1 -1
  84. package/_dist/components/navigation/Navbar/Navbar.d.ts +6 -6
  85. package/_dist/components/navigation/SideNav/SideNav.d.ts +5 -5
  86. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +5 -5
  87. package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -5
  88. package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +1 -1
  89. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +6 -6
  90. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +5 -5
  91. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +9 -9
  92. package/_dist/components/navigation/navigation-types.d.ts +12 -4
  93. package/_dist/components/notifications/Banner/Banner.d.ts +8 -8
  94. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +5 -5
  95. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +5 -5
  96. package/_dist/components/notifications/Toaster/Toast.d.ts +5 -5
  97. package/_dist/components/notifications/Toaster/Toaster.d.ts +5 -5
  98. package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
  99. package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +5 -5
  100. package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +5 -5
  101. package/_dist/components/panels/Panel/Panel.d.ts +6 -6
  102. package/_dist/components/panels/PanelList/PanelList.d.ts +5 -5
  103. package/_dist/components/panels/PanelList/PanelRow.d.ts +5 -5
  104. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +5 -5
  105. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +5 -5
  106. package/_dist/components/steppers/Stepper/Stepper.d.ts +6 -6
  107. package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +5 -5
  108. package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +5 -5
  109. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +8 -8
  110. package/_dist/components/tiles/Tile/Tile.d.ts +5 -5
  111. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +6 -6
  112. package/_dist/css/component-css/pds-avatar.css +1 -1
  113. package/_dist/css/component-css/pds-button.css +1 -1
  114. package/_dist/css/component-css/pds-checkbox.css +1 -1
  115. package/_dist/css/component-css/pds-code-block.css +1 -1
  116. package/_dist/css/component-css/pds-datepicker.css +3 -0
  117. package/_dist/css/component-css/pds-index.css +31 -11
  118. package/_dist/css/component-css/pds-indicator-badge.css +5 -3
  119. package/_dist/css/component-css/pds-input-utilities.css +1 -1
  120. package/_dist/css/component-css/pds-panel-list.css +1 -1
  121. package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
  122. package/_dist/css/component-css/pds-popover.css +1 -1
  123. package/_dist/css/component-css/pds-radio-group.css +1 -1
  124. package/_dist/css/component-css/pds-section-message.css +1 -1
  125. package/_dist/css/component-css/pds-segmented-button.css +1 -1
  126. package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
  127. package/_dist/css/component-css/pds-side-nav.css +1 -1
  128. package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -1
  129. package/_dist/css/component-css/pds-switch.css +17 -1
  130. package/_dist/css/component-css/pds-tabs.css +1 -1
  131. package/_dist/css/component-css/pds-utility-button.css +1 -1
  132. package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +7 -0
  133. package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +7 -0
  134. package/_dist/css/pds-components.css +31 -11
  135. package/_dist/css/pds-core.css +2 -2
  136. package/_dist/index.css +1 -1
  137. package/_dist/index.d.ts +1 -1
  138. package/_dist/index.js +6937 -6586
  139. package/_dist/index.js.map +1 -1
  140. package/_dist/layouts/AppLayout/AppLayout.d.ts +5 -5
  141. package/_dist/layouts/Container/Container.d.ts +5 -5
  142. package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +13 -13
  143. package/_dist/layouts/DashboardInner/DashboardInner.d.ts +5 -5
  144. package/_dist/layouts/DocsLayout/DocsLayout.d.ts +6 -6
  145. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +9 -9
  146. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +2 -2
  147. package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +5 -5
  148. package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +5 -5
  149. package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +5 -5
  150. package/_dist/libs/components/utility-components.d.ts +3 -3
  151. package/_dist/libs/types/custom-types.d.ts +7 -7
  152. package/_dist/utilities/color/color-preview-swatches.d.ts +1 -1
  153. package/package.json +16 -8
@@ -1,11 +1,15 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { Popover } from '@components/Popover/Popover';
3
2
  import { SitePlanLevel, SiteType } from '@libs/types/custom-types';
3
+ import { Popover } from '@components/Popover/Popover';
4
4
  import './site-dashboard-heading.css';
5
5
  /**
6
6
  * Prop types for SiteDashboardHeading
7
7
  */
8
8
  export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div'> {
9
+ /**
10
+ * Additional class names
11
+ */
12
+ className?: string;
9
13
  /**
10
14
  * Function to handle upgrade click.
11
15
  */
@@ -14,14 +18,14 @@ export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div
14
18
  * Function to handle popover content.
15
19
  */
16
20
  popoverContent?: ReactNode;
17
- /**
18
- * Title for the popover.
19
- */
20
- popoverTitle?: string;
21
21
  /**
22
22
  * Function to handle popover open state.
23
23
  */
24
24
  popoverIsOpen?: boolean;
25
+ /**
26
+ * Title for the popover.
27
+ */
28
+ popoverTitle?: string;
25
29
  /**
26
30
  * Function to set popover open state.
27
31
  */
@@ -47,11 +51,11 @@ export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div
47
51
  */
48
52
  upgradeLabel: string;
49
53
  /**
50
- * Additional class names
54
+ * Name of the workspace.
51
55
  */
52
- className?: string;
56
+ workspaceName?: string;
53
57
  }
54
58
  /**
55
59
  * SiteDashboardHeading UI component
56
60
  */
57
- export declare const SiteDashboardHeading: ({ popoverContent, popoverIsOpen, popoverTitle, handleUpgradeClick, setPopoverIsOpen, siteName, sitePlanLevel, siteType, triggerProps, upgradeLabel, className, ...props }: SiteDashboardHeadingProps) => import("react/jsx-runtime").JSX.Element;
61
+ 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
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) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const Skiplink: ({ className, destination, text, ...props }: SkiplinkProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -2,22 +2,22 @@ import { ComponentPropsWithoutRef } from 'react';
2
2
  import { PDSIcon } from '@components/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) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const SocialLinks: ({ className, linkItems, ...props }: SocialLinksProps) => import("react/jsx-runtime").JSX.Element;
23
23
  export {};
@@ -1,6 +1,10 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  import './status-indicator.css';
3
3
  export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
4
+ /**
5
+ * Additional class names
6
+ */
7
+ className?: string;
4
8
  /**
5
9
  * Status label text
6
10
  */
@@ -13,12 +17,8 @@ export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
13
17
  * Sets status type
14
18
  */
15
19
  type: 'critical' | 'info' | 'neutral' | 'new' | 'success' | 'warning' | 'working';
16
- /**
17
- * Additional class names
18
- */
19
- className?: string;
20
20
  }
21
21
  /**
22
22
  * StatusIndicator UI component
23
23
  */
24
- export declare const StatusIndicator: ({ label, size, type, className, ...props }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const StatusIndicator: ({ className, label, size, type, ...props }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,24 +4,24 @@ import './table.css';
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) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const Table: ({ className, headers, rowData, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
27
27
  export {};
@@ -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) => import("react/jsx-runtime").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 {};
@@ -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) => import("react/jsx-runtime").JSX.Element;
62
+ export declare const Tabs: ({ ariaLabel, className, defaultSelected, onActiveTabChange, selectedTab, tabs, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
63
63
  export {};
@@ -4,13 +4,17 @@ 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) => import("react/jsx-runtime").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 {};
@@ -5,28 +5,28 @@ import './theme-switcher.css';
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) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const ThemeSwitcher: ({ className, onChange, theme, translations, ...props }: ThemeSwitcherProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,10 @@ import { Placement } from '@floating-ui/react';
3
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) => import("react/jsx-runtime").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 {};
@@ -4,6 +4,10 @@ import './video-embed.css';
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) => import("react/jsx-runtime").JSX.Element;
28
+ export declare const VideoEmbed: ({ className, platform, videoId, videoTitle, ...props }: VideoEmbedProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,10 +4,14 @@ import './indicator-badge.css';
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) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const IndicatorBadge: ({ className, color, label, size, ...props }: IndicatorBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,10 @@ import './status-badge.css';
4
4
  * StatusBadge component props
5
5
  */
6
6
  export interface StatusBadgeProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Additional class names
9
+ */
10
+ className?: string;
7
11
  /**
8
12
  * Background color for badge
9
13
  */
@@ -24,12 +28,8 @@ export interface StatusBadgeProps extends ComponentPropsWithoutRef<'div'> {
24
28
  * Status type for badge. Only renders if `hasStatusIndicator` is true.
25
29
  */
26
30
  statusType?: 'success' | 'info' | 'frozen' | 'critical' | 'warning' | 'discovery' | 'disabled';
27
- /**
28
- * Additional class names
29
- */
30
- className?: string;
31
31
  }
32
32
  /**
33
33
  * StatusBadge UI component
34
34
  */
35
- export declare const StatusBadge: ({ color, hasStatusIndicator, label, statusIndicatorText, statusType, className, ...props }: StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const StatusBadge: ({ className, color, hasStatusIndicator, label, statusIndicatorText, statusType, ...props }: StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,20 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  import './tally.css';
3
3
  interface TypeLabels {
4
+ critical?: string;
4
5
  info?: string;
5
- success?: string;
6
6
  neutral?: string;
7
+ success?: string;
7
8
  warning?: string;
8
- critical?: string;
9
9
  }
10
10
  /**
11
11
  * Prop types for Tally
12
12
  */
13
13
  export interface TallyProps extends ComponentPropsWithoutRef<'div'> {
14
+ /**
15
+ * Additional class names
16
+ */
17
+ className?: string;
14
18
  /**
15
19
  * Label text
16
20
  */
@@ -23,16 +27,12 @@ export interface TallyProps extends ComponentPropsWithoutRef<'div'> {
23
27
  * Message type labels.
24
28
  */
25
29
  typeLabels?: TypeLabels;
26
- /**
27
- * Additional class names
28
- */
29
- className?: string;
30
30
  }
31
31
  /**
32
32
  * Tally UI component
33
33
  */
34
34
  export declare const Tally: {
35
- ({ label, type, typeLabels, className, ...props }: TallyProps): import("react/jsx-runtime").JSX.Element;
35
+ ({ className, label, type, typeLabels, ...props }: TallyProps): import("react/jsx-runtime").JSX.Element;
36
36
  displayName: string;
37
37
  };
38
38
  export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode, MouseEvent } from 'react';
1
+ import React, { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
2
2
  import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './button.css';
4
4
  interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
@@ -10,6 +10,10 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
10
10
  * Type of button
11
11
  */
12
12
  buttonType?: 'button' | 'submit' | 'reset';
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Is the button disabled?
15
19
  */
@@ -54,10 +58,6 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
54
58
  * Which variant of button to render
55
59
  */
56
60
  variant?: 'primary' | 'secondary' | 'subtle' | 'brand' | 'brand-secondary' | 'critical' | 'critical-secondary' | 'navbar' | 'inline';
57
- /**
58
- * Additional class names
59
- */
60
- className?: string;
61
61
  }
62
62
  /**
63
63
  * A Component used to render a Button
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
3
2
  import { ButtonDisplayType, ButtonSize, ButtonVariant } from '@libs/types/custom-types';
3
+ import { PDSIcon } from '@components/icons/Icon/Icon';
4
4
  import '../Button/button.css';
5
5
  import './button-link.css';
6
6
  type ButtonLinkVariant = Exclude<ButtonVariant, 'navbar' | 'inline'>;
@@ -8,6 +8,10 @@ type ButtonLinkVariant = Exclude<ButtonVariant, 'navbar' | 'inline'>;
8
8
  * Prop types for ButtonLink
9
9
  */
10
10
  export interface ButtonLinkProps extends ComponentPropsWithoutRef<'span'> {
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * Is the link disabled?
13
17
  */
@@ -36,13 +40,9 @@ export interface ButtonLinkProps extends ComponentPropsWithoutRef<'span'> {
36
40
  * Variant of the button.
37
41
  */
38
42
  variant?: ButtonLinkVariant;
39
- /**
40
- * Additional class names
41
- */
42
- className?: string;
43
43
  }
44
44
  /**
45
45
  * ButtonLink UI component
46
46
  */
47
- export declare const ButtonLink: ({ disabled, displayType, iconName, linkContent, size, tooltipText, variant, className, ...props }: ButtonLinkProps) => import("react/jsx-runtime").JSX.Element;
47
+ export declare const ButtonLink: ({ className, disabled, displayType, iconName, linkContent, size, tooltipText, variant, ...props }: ButtonLinkProps) => import("react/jsx-runtime").JSX.Element;
48
48
  export {};
@@ -8,6 +8,10 @@ export interface ClipboardButtonProps extends ComponentPropsWithoutRef<'button'>
8
8
  * Translation string for aria-label attribute and tooltip text.
9
9
  */
10
10
  ariaLabel: string;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * Text to copy to clipboard.
13
17
  */
@@ -20,12 +24,8 @@ export interface ClipboardButtonProps extends ComponentPropsWithoutRef<'button'>
20
24
  * Which variant of button to render.
21
25
  */
22
26
  variant?: 'standard' | 'reverse';
23
- /**
24
- * Additional class names
25
- */
26
- className?: string;
27
27
  }
28
28
  /**
29
29
  * ClipboardButton UI component
30
30
  */
31
- export declare const ClipboardButton: ({ ariaLabel, clipboardText, disabled, variant, className, ...props }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const ClipboardButton: ({ ariaLabel, className, clipboardText, disabled, variant, ...props }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,10 @@ export interface CloseButtonProps extends ComponentPropsWithoutRef<'button'> {
8
8
  * Aria-label attribute.
9
9
  */
10
10
  ariaLabel?: string;
11
+ /**
12
+ * Additional class names.
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * Size of the icon.
13
17
  */
@@ -16,12 +20,8 @@ export interface CloseButtonProps extends ComponentPropsWithoutRef<'button'> {
16
20
  * Click event callback function.
17
21
  */
18
22
  onClick?: () => void;
19
- /**
20
- * Additional class names.
21
- */
22
- className?: string;
23
23
  }
24
24
  /**
25
25
  * CloseButton UI component
26
26
  */
27
- export declare const CloseButton: ({ ariaLabel, iconSize, onClick, className, ...props }: CloseButtonProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const CloseButton: ({ ariaLabel, className, iconSize, onClick, ...props }: CloseButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,10 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
10
10
  * Type of button
11
11
  */
12
12
  buttonType?: 'button' | 'submit' | 'reset';
13
+ /**
14
+ * Additional class names.
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Is the button disabled?
15
19
  */
@@ -18,14 +22,14 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
18
22
  * Show tooltip on hover. If false, the title attribute will be used.
19
23
  */
20
24
  hasTooltip?: boolean;
21
- /**
22
- * Which icon to render.
23
- */
24
- iconName: PDSIcon;
25
25
  /**
26
26
  * Which icon to render second. If this is set, the button will be animated.
27
27
  */
28
28
  icon2Name?: PDSIcon;
29
+ /**
30
+ * Which icon to render.
31
+ */
32
+ iconName: PDSIcon;
29
33
  /**
30
34
  * Click event handler callback.
31
35
  */
@@ -38,10 +42,6 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
38
42
  * Which variant of button to render.
39
43
  */
40
44
  variant?: 'standard' | 'reverse' | 'critical' | 'critical-hover';
41
- /**
42
- * Additional class names.
43
- */
44
- className?: string;
45
45
  }
46
46
  /**
47
47
  * IconButton UI component
@@ -6,6 +6,10 @@ import './menu-button.css';
6
6
  * Prop types for MenuButton
7
7
  */
8
8
  export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
9
+ /**
10
+ * Additional class names
11
+ */
12
+ className?: string;
9
13
  /**
10
14
  * Is the button disabled?
11
15
  */
@@ -64,12 +68,8 @@ export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
64
68
  * Omit this prop for the Dashboard application. It only applies to the standard Navbar component with a bottom border.
65
69
  */
66
70
  withinNavbar?: boolean;
67
- /**
68
- * Additional class names
69
- */
70
- className?: string;
71
71
  }
72
72
  /**
73
73
  * MenuButton UI component
74
74
  */
75
- export declare const MenuButton: ({ disabled, displayType, iconName, id, isSplitButton, label, menuItems, menuPosition, onClick, size, testId, undefinedLabel, variant, withinNavbar, className, ...props }: MenuButtonProps) => import("react/jsx-runtime").JSX.Element;
75
+ export declare const MenuButton: ({ className, disabled, displayType, iconName, id, isSplitButton, label, menuItems, menuPosition, onClick, size, testId, undefinedLabel, variant, withinNavbar, ...props }: MenuButtonProps) => import("react/jsx-runtime").JSX.Element;