@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,9 +1,14 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { StatusType } from '../../../libs/types/custom-types';
2
3
  import './status-badge.css';
3
4
  /**
4
5
  * StatusBadge component props
5
6
  */
6
7
  export interface StatusBadgeProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
7
12
  /**
8
13
  * Background color for badge
9
14
  */
@@ -23,13 +28,9 @@ export interface StatusBadgeProps extends ComponentPropsWithoutRef<'div'> {
23
28
  /**
24
29
  * Status type for badge. Only renders if `hasStatusIndicator` is true.
25
30
  */
26
- statusType?: 'success' | 'info' | 'frozen' | 'critical' | 'warning' | 'discovery' | 'disabled';
27
- /**
28
- * Additional class names
29
- */
30
- className?: string;
31
+ statusType?: StatusType | 'frozen' | 'disabled';
31
32
  }
32
33
  /**
33
34
  * StatusBadge UI component
34
35
  */
35
- export declare const StatusBadge: ({ color, hasStatusIndicator, label, statusIndicatorText, statusType, className, ...props }: StatusBadgeProps) => React.JSX.Element;
36
+ export declare const StatusBadge: ({ className, color, hasStatusIndicator, label, statusIndicatorText, statusType, ...props }: StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,20 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
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): React.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,5 +1,6 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode, MouseEvent } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
1
+ import React, { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
2
+ import { ButtonDisplayType, ButtonSize, ButtonType, ButtonVariant } from '../../../libs/types/custom-types';
3
+ import { PDSIcon } from '../../icons/Icon/Icon';
3
4
  import './button.css';
4
5
  interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
5
6
  /**
@@ -9,7 +10,11 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
9
10
  /**
10
11
  * Type of button
11
12
  */
12
- buttonType?: 'button' | 'submit' | 'reset';
13
+ buttonType?: ButtonType;
14
+ /**
15
+ * Additional class names
16
+ */
17
+ className?: string;
13
18
  /**
14
19
  * Is the button disabled?
15
20
  */
@@ -17,7 +22,7 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
17
22
  /**
18
23
  * How the button is displayed.
19
24
  */
20
- displayType?: 'label-only' | 'icon-start' | 'icon-end';
25
+ displayType?: ButtonDisplayType;
21
26
  /**
22
27
  * Which icon to render
23
28
  */
@@ -45,7 +50,7 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
45
50
  /**
46
51
  * Which size of button to render
47
52
  */
48
- size?: 'sm' | 'md' | 'lg';
53
+ size?: ButtonSize;
49
54
  /**
50
55
  * Text for an optional tooltip to be displayed when the button is `disabled` or `isLoading`.
51
56
  */
@@ -53,11 +58,7 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
53
58
  /**
54
59
  * Which variant of button to render
55
60
  */
56
- variant?: 'primary' | 'secondary' | 'subtle' | 'brand' | 'brand-secondary' | 'critical' | 'critical-secondary' | 'navbar' | 'inline';
57
- /**
58
- * Additional class names
59
- */
60
- className?: string;
61
+ variant?: ButtonVariant;
61
62
  }
62
63
  /**
63
64
  * A Component used to render a Button
@@ -1,6 +1,6 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
3
- import { ButtonDisplayType, ButtonSize, ButtonVariant } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { ButtonDisplayType, ButtonSize, ButtonVariant } from '../../../libs/types/custom-types';
3
+ import { PDSIcon } from '../../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) => React.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 {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './clipboard-button.css';
3
3
  /**
4
4
  * Prop types for ClipboardButton
@@ -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) => React.JSX.Element;
31
+ export declare const ClipboardButton: ({ ariaLabel, className, clipboardText, disabled, variant, ...props }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './close-button.css';
3
3
  /**
4
4
  * Prop types for CloseButton
@@ -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) => React.JSX.Element;
27
+ export declare const CloseButton: ({ ariaLabel, className, iconSize, onClick, ...props }: CloseButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React, { ComponentPropsWithoutRef, MouseEvent } from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
2
+ import { ButtonSize, ButtonType } from '../../../libs/types/custom-types';
3
+ import { PDSIcon } from '../../icons/Icon/Icon';
3
4
  import './icon-button.css';
4
5
  interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
5
6
  /**
@@ -9,7 +10,11 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
9
10
  /**
10
11
  * Type of button
11
12
  */
12
- buttonType?: 'button' | 'submit' | 'reset';
13
+ buttonType?: ButtonType;
14
+ /**
15
+ * Additional class names.
16
+ */
17
+ className?: string;
13
18
  /**
14
19
  * Is the button disabled?
15
20
  */
@@ -18,14 +23,14 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
18
23
  * Show tooltip on hover. If false, the title attribute will be used.
19
24
  */
20
25
  hasTooltip?: boolean;
21
- /**
22
- * Which icon to render.
23
- */
24
- iconName: PDSIcon;
25
26
  /**
26
27
  * Which icon to render second. If this is set, the button will be animated.
27
28
  */
28
29
  icon2Name?: PDSIcon;
30
+ /**
31
+ * Which icon to render.
32
+ */
33
+ iconName: PDSIcon;
29
34
  /**
30
35
  * Click event handler callback.
31
36
  */
@@ -33,15 +38,11 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
33
38
  /**
34
39
  * Which size of button to render.
35
40
  */
36
- size?: 'sm' | 'md' | 'lg';
41
+ size?: ButtonSize;
37
42
  /**
38
43
  * Which variant of button to render.
39
44
  */
40
45
  variant?: 'standard' | 'reverse' | 'critical' | 'critical-hover';
41
- /**
42
- * Additional class names.
43
- */
44
- className?: string;
45
46
  }
46
47
  /**
47
48
  * IconButton UI component
@@ -1,11 +1,15 @@
1
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
- import { HeadingItemType, LinkItemType, MenuItemType, NodeItemType, SeparatorItemType } from '@libs/types/custom-types';
3
- import { PDSIcon } from '@components/icons/Icon/Icon';
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { ButtonSize, ButtonVariant, HeadingItemType, LinkItemType, MenuItemType, NodeItemType, SeparatorItemType } from '../../../libs/types/custom-types';
3
+ import { PDSIcon } from '../../icons/Icon/Icon';
4
4
  import './menu-button.css';
5
5
  /**
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
  */
@@ -45,7 +49,7 @@ export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
45
49
  /**
46
50
  * Which size of button to render.
47
51
  */
48
- size?: 'sm' | 'md';
52
+ size?: Exclude<ButtonSize, 'lg'>;
49
53
  /**
50
54
  * Optional `data-testid` value for this component.
51
55
  */
@@ -57,19 +61,15 @@ export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
57
61
  /**
58
62
  * Which variant of button to render — only valid for icon-end (default) display type.
59
63
  */
60
- variant?: 'primary' | 'secondary' | 'navbar';
64
+ variant?: Extract<ButtonVariant, 'primary' | 'secondary' | 'navbar'>;
61
65
  /**
62
66
  * Is this button located with the Navbar component?
63
67
  * This will adjust the styling and position of the dropdown.
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
- * MenuButton UI component - Modernized with Floating UI
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) => React.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;
@@ -1,24 +1,31 @@
1
- import React from 'react';
2
- import { PDSIcon } from '@components/icons/Icon/Icon';
1
+ import { PDSIcon } from '../../icons/Icon/Icon';
3
2
  import './segmented-button.css';
4
3
  /**
5
4
  * Structure for each option in the SegmentedButton component.
6
5
  */
7
6
  interface OptionType {
8
- id?: string;
9
- value: string;
10
- label: string;
11
7
  disabled?: boolean;
12
8
  iconName?: PDSIcon;
9
+ id?: string;
10
+ label: string;
13
11
  tally?: {
14
12
  label: string | number;
15
13
  type: 'neutral' | 'critical' | 'warning' | 'info' | 'success';
16
14
  };
15
+ value: string;
17
16
  }
18
17
  /**
19
18
  * Prop types for SegmentedButton
20
19
  */
21
20
  export interface SegmentedButtonProps {
21
+ /**
22
+ * Additional class names
23
+ */
24
+ className?: string;
25
+ /**
26
+ * Optional initial selected option value.
27
+ */
28
+ defaultValue?: string;
22
29
  /**
23
30
  * Is the SegmentedButton disabled?
24
31
  */
@@ -27,10 +34,6 @@ export interface SegmentedButtonProps {
27
34
  * Unique ID for the SegmentedButton.
28
35
  */
29
36
  id: string;
30
- /**
31
- * Optional initial selected option value.
32
- */
33
- defaultValue?: string;
34
37
  /**
35
38
  * Label for the SegmentedButton — visually hidden, used for screen readers only.
36
39
  */
@@ -51,13 +54,9 @@ export interface SegmentedButtonProps {
51
54
  * Value of the Segmented Button. Used to set the value of the field when controlled. Cannot be used in conjunction with the `defaultValue` prop.
52
55
  */
53
56
  value?: string;
54
- /**
55
- * Additional class names
56
- */
57
- className?: string;
58
57
  }
59
58
  /**
60
59
  * SegmentedButton UI component
61
60
  */
62
- export declare const SegmentedButton: ({ disabled, id, defaultValue, label, onChange, options, size, value, className, ...props }: SegmentedButtonProps) => React.JSX.Element;
61
+ export declare const SegmentedButton: ({ className, defaultValue, disabled, id, label, onChange, options, size, value, ...props }: SegmentedButtonProps) => import("react/jsx-runtime").JSX.Element;
63
62
  export {};
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
2
- import { LinkItemType, MenuItemType } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { ButtonSize, ButtonVariant, LinkItemType, MenuItemType } from '../../../libs/types/custom-types';
3
3
  import './split-button.css';
4
4
  /**
5
5
  * Prop types for SplitButton
@@ -9,6 +9,10 @@ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
9
9
  * Array of menu items
10
10
  */
11
11
  actionItems: Array<LinkItemType | MenuItemType>;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Is the button disabled?
14
18
  */
@@ -24,18 +28,14 @@ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
24
28
  /**
25
29
  * Which size of button to render
26
30
  */
27
- size?: 'sm' | 'md';
31
+ size?: Exclude<ButtonSize, 'lg'>;
28
32
  /**
29
33
  * Which variant of button to render
30
34
  */
31
- variant?: 'primary' | 'secondary';
32
- /**
33
- * Additional class names
34
- */
35
- className?: string;
35
+ variant?: Extract<ButtonVariant, 'primary' | 'secondary'>;
36
36
  }
37
37
  /**
38
38
  * A component used to render a button with a primary action and a menu of additional options
39
39
  */
40
- export declare const SplitButton: ({ actionItems, disabled, id, moreActionsLabel, size, variant, className, ...props }: SplitButtonProps) => React.JSX.Element;
40
+ export declare const SplitButton: ({ actionItems, className, disabled, id, moreActionsLabel, size, variant, ...props }: SplitButtonProps) => import("react/jsx-runtime").JSX.Element;
41
41
  export {};
@@ -4,7 +4,7 @@ export const sampleActionItems: {
4
4
  callback: (item: any) => void;
5
5
  }[];
6
6
  export const linkActionItems: ({
7
- linkContent: React.JSX.Element;
7
+ linkContent: import("react/jsx-runtime").JSX.Element;
8
8
  isLink: boolean;
9
9
  label?: undefined;
10
10
  callback?: undefined;
@@ -14,4 +14,3 @@ export const linkActionItems: ({
14
14
  linkContent?: undefined;
15
15
  isLink?: undefined;
16
16
  })[];
17
- import React from 'react';
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef } 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 './utility-button.css';
4
4
  /**
5
5
  * Prop types for UtilityButton
@@ -9,14 +9,26 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Additional props for the button element.
10
10
  */
11
11
  buttonProps?: ComponentPropsWithoutRef<'button'>;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Is the button disabled?
14
18
  */
15
19
  disabled?: boolean;
20
+ /**
21
+ * Should the button have a border?
22
+ */
23
+ hasBorder?: boolean;
16
24
  /**
17
25
  * Which icon to render.
18
26
  */
19
27
  iconName?: PDSIcon;
28
+ /**
29
+ * Position of the icon relative to the label.
30
+ */
31
+ iconPosition?: 'before' | 'after';
20
32
  /**
21
33
  * Is the button critical? If true, the button will be styled as critical on hover and focus.
22
34
  */
@@ -25,18 +37,24 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
25
37
  * Is the button in the process of an initial load?
26
38
  */
27
39
  isLoading?: boolean;
40
+ /**
41
+ * Should the button label use the monospace font?
42
+ */
43
+ isMonospace?: boolean;
28
44
  /**
29
45
  * Is the button in the process of performing a task and should be disabled?
30
46
  */
31
47
  isWorking?: boolean;
32
48
  /**
33
- * Should the button label use the monospace font?
49
+ * The text of the button.
34
50
  */
35
- isMonospace?: boolean;
51
+ label?: string;
36
52
  /**
37
- * The text of the button.
53
+ * A link element using the router of your choice.
54
+ * Use `linkContent` to render a link instead of text.
55
+ * In this case, the `buttonProps`, `label`, and `onClick` props will be ignored.
38
56
  */
39
- label: string;
57
+ linkContent?: ReactNode;
40
58
  /**
41
59
  * Click event handler callback.
42
60
  */
@@ -45,12 +63,8 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
45
63
  * Tooltip text.
46
64
  */
47
65
  tooltipText?: string;
48
- /**
49
- * Additional class names
50
- */
51
- className?: string;
52
66
  }
53
67
  /**
54
68
  * UtilityButton UI component
55
69
  */
56
- export declare const UtilityButton: ({ buttonProps, disabled, iconName, isCritical, isLoading, isWorking, isMonospace, label, onClick, tooltipText, className, ...props }: UtilityButtonProps) => React.JSX.Element;
70
+ export declare const UtilityButton: ({ buttonProps, className, disabled, hasBorder, iconName, iconPosition, isCritical, isLoading, isMonospace, isWorking, label, linkContent, onClick, tooltipText, ...props }: UtilityButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { GridGapOptions } from '@layouts/layout-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions } from '../../../libs/types/layout-types';
3
3
  import './card.css';
4
4
  export type CardBackground = 'default' | 'mint-gradient' | 'sundown-gradient' | 'yellow-gradient' | 'transparent';
5
5
  /**
@@ -14,16 +14,16 @@ export interface CardProps extends ComponentPropsWithoutRef<'div'> {
14
14
  * Child elements to be assigned to named slots.
15
15
  */
16
16
  children: ReactNode;
17
- /**
18
- * Relative padding for the `main` slot.
19
- */
20
- padding?: GridGapOptions;
21
17
  /**
22
18
  * Additional class names
23
19
  */
24
20
  className?: string;
21
+ /**
22
+ * Relative padding for the `main` slot.
23
+ */
24
+ padding?: GridGapOptions;
25
25
  }
26
26
  /**
27
27
  * Card UI component
28
28
  */
29
- export declare const Card: ({ background, children, padding, className, ...props }: CardProps) => React.JSX.Element;
29
+ export declare const Card: ({ background, children, className, padding, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,13 @@
1
- import React from 'react';
2
- import { HeadingLevelCommon } from '@libs/types/custom-types';
1
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
2
  import './card-heading.css';
4
3
  /**
5
4
  * Prop types for CardHeading
6
5
  */
7
6
  export interface CardHeadingProps {
7
+ /**
8
+ * Additional class names
9
+ */
10
+ className?: string;
8
11
  /**
9
12
  * Font size of the heading. Default is `XL`.
10
13
  */
@@ -21,12 +24,8 @@ export interface CardHeadingProps {
21
24
  * Heading text.
22
25
  */
23
26
  text?: string;
24
- /**
25
- * Additional class names
26
- */
27
- className?: string;
28
27
  }
29
28
  /**
30
29
  * CardHeading UI component
31
30
  */
32
- export declare const CardHeading: ({ fontSize, fontWeight, level, text, className, ...props }: CardHeadingProps) => React.JSX.Element;
31
+ export declare const CardHeading: ({ className, fontSize, fontWeight, level, text, ...props }: CardHeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,10 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './card-select-group.css';
3
3
  export interface CardOption {
4
+ /**
5
+ * Option description
6
+ */
7
+ description?: string | ReactNode;
4
8
  /**
5
9
  * Unique ID for the option
6
10
  * @default ''
@@ -10,16 +14,16 @@ export interface CardOption {
10
14
  * Option label
11
15
  */
12
16
  label: string | ReactNode;
13
- /**
14
- * Option description
15
- */
16
- description?: string | ReactNode;
17
17
  /**
18
18
  * Option value
19
19
  */
20
20
  value: string;
21
21
  }
22
22
  export interface CardSelectGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> {
23
+ /**
24
+ * Additional class names
25
+ */
26
+ className?: string;
23
27
  /**
24
28
  * Optional initial selected option value
25
29
  */
@@ -49,12 +53,8 @@ export interface CardSelectGroupProps extends Omit<ComponentPropsWithoutRef<'fie
49
53
  * Array of card options
50
54
  */
51
55
  options?: CardOption[];
52
- /**
53
- * Additional class names
54
- */
55
- className?: string;
56
56
  }
57
57
  /**
58
58
  * CardSelectGroup UI component
59
59
  */
60
- export declare const CardSelectGroup: ({ id, defaultValue, label, labelDisplay, layout, onChange, options, className, ...props }: CardSelectGroupProps) => React.JSX.Element;
60
+ export declare const CardSelectGroup: ({ className, defaultValue, id, label, labelDisplay, layout, onChange, options, ...props }: CardSelectGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,14 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { HeadingLevelCommon } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types';
3
3
  import './empty-state-card.css';
4
4
  /**
5
5
  * Prop types for EmptyStateCard
6
6
  */
7
7
  export interface EmptyStateCardProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
8
12
  /**
9
13
  * Heading level or `span`.
10
14
  */
@@ -25,12 +29,8 @@ export interface EmptyStateCardProps extends ComponentPropsWithoutRef<'div'> {
25
29
  * Summary paragraph.
26
30
  */
27
31
  summary: string;
28
- /**
29
- * Additional class names
30
- */
31
- className?: string;
32
32
  }
33
33
  /**
34
34
  * EmptyStateCard UI component
35
35
  */
36
- export declare const EmptyStateCard: ({ headingLevel, headingText, isLinkExternal, linkContent, summary, className, ...props }: EmptyStateCardProps) => React.JSX.Element;
36
+ export declare const EmptyStateCard: ({ className, headingLevel, headingText, isLinkExternal, linkContent, summary, ...props }: EmptyStateCardProps) => import("react/jsx-runtime").JSX.Element;