@pantheon-systems/pds-toolkit-react 1.0.0-dev.9998 → 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
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  This toolkit provides assets for use within a React project and a Storybook instance to preview the components.
6
6
 
7
- [Published Storybook](https://live-pds-toolkit-react.appa.pantheon.site/)
7
+ [Published Storybook](https://pds-react.pantheon.io/)
8
8
 
9
9
  ## Toolkit philosophy and scope
10
10
 
@@ -1,10 +1,14 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './avatar.css';
3
3
  export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
4
4
  /**
5
5
  * Aria label for the avatar when used as a link. This is required if using a link.
6
6
  */
7
7
  ariaLabel?: string;
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
8
12
  /**
9
13
  * If true, a user icon will be displayed with the fallback gradient when an image is not provided.
10
14
  */
@@ -25,12 +29,8 @@ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
25
29
  * Unique ID associated with the avatar. Can be workspace ID, user ID, email, etc.
26
30
  */
27
31
  uniqueId?: string;
28
- /**
29
- * Additional class names
30
- */
31
- className?: string;
32
32
  }
33
33
  /**
34
34
  * Avatar UI component
35
35
  */
36
- export declare const Avatar: ({ ariaLabel, hasUserFallback, imageSrc, linkContent, size, uniqueId, className, ...props }: AvatarProps) => React.JSX.Element;
36
+ export declare const Avatar: ({ ariaLabel, className, hasUserFallback, imageSrc, linkContent, size, uniqueId, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,17 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './branch-diff.css';
3
3
  /**
4
4
  * Prop types for BranchDiff
5
5
  */
6
6
  export interface BranchDiffProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * Additional class names
9
+ */
10
+ className?: string;
11
+ /**
12
+ * Custom width in rems for the component. This will override the default.
13
+ */
14
+ componentWidth?: number;
7
15
  /**
8
16
  * Is the component in the process of loading?
9
17
  */
@@ -28,16 +36,8 @@ export interface BranchDiffProps extends ComponentPropsWithoutRef<'div'> {
28
36
  * A description for the `numberBehind` value.
29
37
  */
30
38
  numberBehindDescription?: string;
31
- /**
32
- * Custom width in rems for the component. This will override the default.
33
- */
34
- componentWidth?: number;
35
- /**
36
- * Additional class names
37
- */
38
- className?: string;
39
39
  }
40
40
  /**
41
41
  * BranchDiff UI component
42
42
  */
43
- export declare const BranchDiff: ({ isLoading, loadingText, numberAhead, numberAheadDescription, numberBehind, numberBehindDescription, componentWidth, className, ...props }: BranchDiffProps) => React.JSX.Element;
43
+ export declare const BranchDiff: ({ className, componentWidth, isLoading, loadingText, numberAhead, numberAheadDescription, numberBehind, numberBehindDescription, ...props }: BranchDiffProps) => 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 './cta-link.css';
3
3
  export interface CTALinkProps extends ComponentPropsWithoutRef<'div'> {
4
+ /**
5
+ * Additional class names
6
+ */
7
+ className?: string;
4
8
  /**
5
9
  * A link element using the router of your choice.
6
10
  */
@@ -9,12 +13,8 @@ export interface CTALinkProps extends ComponentPropsWithoutRef<'div'> {
9
13
  * Size of link
10
14
  */
11
15
  size?: 'sm' | 'md';
12
- /**
13
- * Additional class names
14
- */
15
- className?: string;
16
16
  }
17
17
  /**
18
18
  * CTA Link UI component
19
19
  */
20
- export declare const CTALink: ({ linkContent, size, className, ...props }: CTALinkProps) => React.JSX.Element;
20
+ export declare const CTALink: ({ className, linkContent, size, ...props }: CTALinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { ContainerWidth, HeadingLevel } from '@libs/types/custom-types';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { ContainerWidth, HeadingLevel } from '../../libs/types/custom-types';
3
3
  import './../buttons/Button/button.css';
4
4
  import './cta-slice.css';
5
5
  interface CTASliceProps extends ComponentPropsWithoutRef<'div'> {
@@ -7,6 +7,10 @@ interface CTASliceProps extends ComponentPropsWithoutRef<'div'> {
7
7
  * Background color of slice
8
8
  */
9
9
  backgroundColor?: 'default' | 'secondary';
10
+ /**
11
+ * Additional class names
12
+ */
13
+ className?: string;
10
14
  /**
11
15
  * PDS container width.
12
16
  */
@@ -31,13 +35,9 @@ interface CTASliceProps extends ComponentPropsWithoutRef<'div'> {
31
35
  * Optional secondary link content
32
36
  */
33
37
  secondaryLinkContent?: ReactNode;
34
- /**
35
- * Additional class names
36
- */
37
- className?: string;
38
38
  }
39
39
  /**
40
40
  * CTA Slice UI component
41
41
  */
42
- export declare const CTASlice: ({ backgroundColor, containerWidth, headingLevel, headingText, leadText, primaryLinkContent, secondaryLinkContent, className, ...props }: CTASliceProps) => React.JSX.Element;
42
+ export declare const CTASlice: ({ backgroundColor, className, containerWidth, headingLevel, headingText, leadText, primaryLinkContent, secondaryLinkContent, ...props }: CTASliceProps) => import("react/jsx-runtime").JSX.Element;
43
43
  export {};
@@ -1,12 +1,17 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { StatusType } from '../../libs/types/custom-types';
2
3
  import './callout.css';
3
- type CalloutType = 'info' | 'success' | 'warning' | 'critical' | 'discovery' | 'code' | 'earlyAccess';
4
+ type CalloutType = StatusType | 'code' | 'earlyAccess';
4
5
  type TypeLabels = Record<CalloutType, string>;
5
6
  export interface CalloutProps extends ComponentPropsWithoutRef<'div'> {
6
7
  /**
7
8
  * Callout main content.
8
9
  */
9
- children: React.ReactNode;
10
+ children: ReactNode;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
10
15
  /**
11
16
  * Callout title.
12
17
  */
@@ -19,13 +24,9 @@ export interface CalloutProps extends ComponentPropsWithoutRef<'div'> {
19
24
  * Callout type labels. Provide translation strings if necessary.
20
25
  */
21
26
  typeLabels?: TypeLabels;
22
- /**
23
- * Additional class names
24
- */
25
- className?: string;
26
27
  }
27
28
  /**
28
29
  * Callout UI component
29
30
  */
30
- export declare const Callout: ({ children, title, type, typeLabels, className, ...props }: CalloutProps) => React.JSX.Element;
31
+ export declare const Callout: ({ children, className, title, type, typeLabels, ...props }: CalloutProps) => import("react/jsx-runtime").JSX.Element;
31
32
  export {};
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export declare const infoCalloutSample: React.JSX.Element;
1
+ export declare const infoCalloutSample: import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import 'prismjs/components/prism-bash';
3
3
  import 'prismjs/components/prism-diff';
4
4
  import './code-block.css';
@@ -8,6 +8,10 @@ type SupportedLanguages = 'bash' | 'css' | 'diff' | 'html' | 'js' | 'json' | 'js
8
8
  * Prop types for CodeBlock
9
9
  */
10
10
  export interface CodeBlockProps extends ComponentPropsWithoutRef<'div'> {
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * Code to display.
13
17
  */
@@ -73,13 +77,9 @@ export interface CodeBlockProps extends ComponentPropsWithoutRef<'div'> {
73
77
  * Default is false
74
78
  */
75
79
  shouldWrap?: boolean;
76
- /**
77
- * Additional class names
78
- */
79
- className?: string;
80
80
  }
81
81
  /**
82
82
  * CodeBlock UI component
83
83
  */
84
- export declare const CodeBlock: ({ code, colorType, copyButtonLabel, hasCopyButton, hasLineNumbers, hasPrompt, height, isLoading, language, loadingLineCount, maxHeight, promptSymbol, renderAsLegacy, shouldWrap, className, ...props }: CodeBlockProps) => React.JSX.Element;
84
+ export declare const CodeBlock: ({ className, code, colorType, copyButtonLabel, hasCopyButton, hasLineNumbers, hasPrompt, height, isLoading, language, loadingLineCount, maxHeight, promptSymbol, renderAsLegacy, shouldWrap, ...props }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
85
85
  export {};
@@ -1,9 +1,9 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './comparison-list.css';
3
3
  interface TypeLabels {
4
+ addon: string;
4
5
  included: string;
5
6
  notIncluded: string;
6
- addon: string;
7
7
  }
8
8
  export interface ListItems {
9
9
  text: string;
@@ -11,9 +11,9 @@ export interface ListItems {
11
11
  }
12
12
  export interface ComparisonListProps extends ComponentPropsWithoutRef<'div'> {
13
13
  /**
14
- * Icon labels
14
+ * Additional class names
15
15
  */
16
- typeLabels?: TypeLabels;
16
+ className?: string;
17
17
  /**
18
18
  * List items
19
19
  */
@@ -31,12 +31,12 @@ export interface ComparisonListProps extends ComponentPropsWithoutRef<'div'> {
31
31
  */
32
32
  renderTypeLabels?: boolean;
33
33
  /**
34
- * Additional class names
34
+ * Icon labels
35
35
  */
36
- className?: string;
36
+ typeLabels?: TypeLabels;
37
37
  }
38
38
  /**
39
39
  * ComparisonList UI component
40
40
  */
41
- export declare const ComparisonList: ({ listItems, listLabel, moreLink, renderTypeLabels, typeLabels, className, ...props }: ComparisonListProps) => React.JSX.Element;
41
+ export declare const ComparisonList: ({ className, listItems, listLabel, moreLink, renderTypeLabels, typeLabels, ...props }: ComparisonListProps) => import("react/jsx-runtime").JSX.Element;
42
42
  export {};
@@ -1,28 +1,28 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './dashboard-stat.css';
3
- export type DashBoardStatStatus = 'success' | 'warning' | 'launch' | 'error' | 'ready' | 'notReady';
3
+ export type DashboardStatStatus = 'success' | 'warning' | 'launch' | 'error' | 'ready' | 'notReady';
4
4
  /**
5
5
  * Prop types for DashboardStat
6
6
  */
7
7
  export interface DashboardStatProps extends ComponentPropsWithoutRef<'div'> {
8
8
  /**
9
- * Title of the stat, displayed as the main heading of the component.
10
- */
11
- title?: string;
12
- /**
13
- * Status of the stat, which determines the icon and icon color.
9
+ * Additional class names.
14
10
  */
15
- status?: DashBoardStatStatus;
11
+ className?: string;
16
12
  /**
17
13
  * Value of the stat, displayed next to the status icon.
18
14
  */
19
15
  stat?: string | number;
20
16
  /**
21
- * Additional class names.
17
+ * Status of the stat, which determines the icon and icon color.
22
18
  */
23
- className?: string;
19
+ status?: DashboardStatStatus;
20
+ /**
21
+ * Title of the stat, displayed as the main heading of the component.
22
+ */
23
+ title?: string;
24
24
  }
25
25
  /**
26
26
  * DashboardStat UI component
27
27
  */
28
- export declare const DashboardStat: ({ title, status, stat, className, ...props }: DashboardStatProps) => React.JSX.Element;
28
+ export declare const DashboardStat: ({ className, stat, status, title, ...props }: DashboardStatProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './file-diff.css';
3
3
  /**
4
4
  * Prop types for FileDiff
@@ -8,6 +8,14 @@ export interface FileDiffProps extends ComponentPropsWithoutRef<'div'> {
8
8
  * Number of added lines (green bar).
9
9
  */
10
10
  additions: number;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
15
+ /**
16
+ * Custom width in rems for the component. This will override the default.
17
+ */
18
+ componentWidth?: number;
11
19
  /**
12
20
  * Number of removed lines (red bar).
13
21
  */
@@ -16,20 +24,12 @@ export interface FileDiffProps extends ComponentPropsWithoutRef<'div'> {
16
24
  * Object with strings for tooltips and screen reader labels.
17
25
  */
18
26
  labelStrings?: {
19
- linesChanged?: string;
20
27
  additions?: string;
21
28
  deletions?: string;
29
+ linesChanged?: string;
22
30
  };
23
- /**
24
- * Custom width in rems for the component. This will override the default.
25
- */
26
- componentWidth?: number;
27
- /**
28
- * Additional class names
29
- */
30
- className?: string;
31
31
  }
32
32
  /**
33
33
  * FileDiff UI component
34
34
  */
35
- export declare const FileDiff: ({ additions, deletions, labelStrings, className, componentWidth, ...props }: FileDiffProps) => React.JSX.Element;
35
+ export declare const FileDiff: ({ additions, className, componentWidth, deletions, labelStrings, ...props }: FileDiffProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,23 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './flow-steps.css';
3
3
  export type FlowStep = {
4
- /**
5
- * The header text of the step
6
- */
7
- header: string | ReactNode;
8
4
  /**
9
5
  * The content of the step
10
6
  */
11
7
  content?: string | ReactNode;
8
+ /**
9
+ * The header text of the step
10
+ */
11
+ header: string | ReactNode;
12
12
  };
13
13
  /**
14
14
  * Prop types for FlowSteps
15
15
  */
16
16
  export interface FlowStepsProps extends ComponentPropsWithoutRef<'ol'> {
17
+ /**
18
+ * Additional class names
19
+ */
20
+ className?: string;
17
21
  /**
18
22
  * Alignment of the step content.
19
23
  */
@@ -26,12 +30,8 @@ export interface FlowStepsProps extends ComponentPropsWithoutRef<'ol'> {
26
30
  * The list of steps to display.
27
31
  */
28
32
  steps: FlowStep[];
29
- /**
30
- * Additional class names
31
- */
32
- className?: string;
33
33
  }
34
34
  /**
35
35
  * FlowSteps UI component
36
36
  */
37
- export declare const FlowSteps: ({ contentAlignment, layoutDirection, steps, className, ...props }: FlowStepsProps) => React.JSX.Element;
37
+ export declare const FlowSteps: ({ className, contentAlignment, layoutDirection, steps, ...props }: FlowStepsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,12 @@
1
- import React from 'react';
2
1
  export declare const stepsWithoutExtraContent: {
3
2
  header: string;
4
3
  }[];
5
4
  export declare const stepsWithCode: ({
6
5
  header: string;
7
- content: React.JSX.Element;
6
+ content: import("react/jsx-runtime").JSX.Element;
8
7
  } | {
9
- header: React.JSX.Element;
10
- content: React.JSX.Element;
8
+ header: import("react/jsx-runtime").JSX.Element;
9
+ content: import("react/jsx-runtime").JSX.Element;
11
10
  })[];
12
11
  export declare const stepsWithText: {
13
12
  header: string;
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './link-new-window.css';
3
3
  /**
4
4
  * Prop types for LinkNewWindow
@@ -8,6 +8,10 @@ export interface LinkNewWindowProps extends ComponentPropsWithoutRef<'a'> {
8
8
  * Content for the LinkNewWindow.
9
9
  */
10
10
  children?: ReactNode;
11
+ /**
12
+ * Additional class names
13
+ */
14
+ className?: string;
11
15
  /**
12
16
  * Optional font size for the LinkNewWindow. If not provided, the font size will be inherited from the parent element.
13
17
  */
@@ -24,12 +28,8 @@ export interface LinkNewWindowProps extends ComponentPropsWithoutRef<'a'> {
24
28
  * URL where the component should link to.
25
29
  */
26
30
  url: string;
27
- /**
28
- * Additional class names
29
- */
30
- className?: string;
31
31
  }
32
32
  /**
33
33
  * LinkNewWindow UI component
34
34
  */
35
- export declare const LinkNewWindow: ({ children, fontSize, isLoading, newWindowText, url, className, ...props }: LinkNewWindowProps) => React.JSX.Element;
35
+ export declare const LinkNewWindow: ({ children, className, fontSize, isLoading, newWindowText, url, ...props }: LinkNewWindowProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './modal.css';
3
3
  export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
4
4
  /**
@@ -9,6 +9,10 @@ export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
9
9
  * Main content for modal.
10
10
  */
11
11
  children?: ReactNode;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Text for close button aria-label attribute. Only used if hasCloseButton is true.
14
18
  */
@@ -43,12 +47,8 @@ export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
43
47
  * Text for modal title
44
48
  */
45
49
  title: string;
46
- /**
47
- * Additional class names
48
- */
49
- className?: string;
50
50
  }
51
51
  /**
52
52
  * Modal UI component
53
53
  */
54
- export declare const Modal: ({ ariaLabel, children, closeButtonLabel, contentMaxHeight, disableOutsideClick, hasCloseButton, modalIsOpen, setModalIsOpen, size, title, className, ...props }: ModalProps) => React.JSX.Element;
54
+ export declare const Modal: ({ ariaLabel, children, className, closeButtonLabel, contentMaxHeight, disableOutsideClick, hasCloseButton, modalIsOpen, setModalIsOpen, size, title, ...props }: ModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -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 './pagination.css';
4
4
  /**
5
5
  * Prop types for Pagination
@@ -10,6 +10,10 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
10
10
  * This will change the number of page buttons shown in total.
11
11
  */
12
12
  bufferCount?: number;
13
+ /**
14
+ * Additional class names.
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Current page number.
15
19
  */
@@ -30,8 +34,8 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
30
34
  * Label strings for previous and next buttons.
31
35
  */
32
36
  labelStrings?: {
33
- previous: string;
34
37
  next: string;
38
+ previous: string;
35
39
  };
36
40
  /**
37
41
  * Callback to handle page change.
@@ -43,12 +47,8 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
43
47
  * Total number of items to paginate.
44
48
  */
45
49
  totalItemCount: number;
46
- /**
47
- * Additional class names.
48
- */
49
- className?: string;
50
50
  }
51
51
  /**
52
52
  * Pagination UI component
53
53
  */
54
- export declare const Pagination: ({ bufferCount, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, totalItemCount, className, ...props }: PaginationProps) => React.JSX.Element;
54
+ export declare const Pagination: ({ bufferCount, className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, totalItemCount, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,14 @@
1
- import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './pantheon-logo.css';
3
3
  export type PantheonLogoDisplayType = 'full' | 'icon' | 'wordmark' | 'sub-brand' | 'sub-brand-small';
4
4
  /**
5
5
  * Prop types for PantheonLogo
6
6
  */
7
7
  export interface PantheonLogoProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
8
12
  /**
9
13
  * Color type. Use 'default' unless the logo is used on an approved dark background.
10
14
  */
@@ -21,12 +25,8 @@ export interface PantheonLogoProps extends ComponentPropsWithoutRef<'div'> {
21
25
  * Accepts a fully-formed link or a string (if a static site name is desired). Will only render if the `display-type` is set to 'sub-brand'.
22
26
  */
23
27
  subBrand?: ReactNode | string;
24
- /**
25
- * Additional class names
26
- */
27
- className?: string;
28
28
  }
29
29
  /**
30
30
  * PantheonLogo UI component
31
31
  */
32
- export declare const PantheonLogo: ({ colorType, displayType, linkContent, subBrand, className, ...props }: PantheonLogoProps) => React.JSX.Element;
32
+ export declare const PantheonLogo: ({ className, colorType, displayType, linkContent, subBrand, ...props }: PantheonLogoProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
- export declare const logoFull: React.JSX.Element;
3
- export declare const logoIcon: React.JSX.Element;
4
- export declare const logoWordmark: React.JSX.Element;
1
+ export declare const logoFull: import("react/jsx-runtime").JSX.Element;
2
+ export declare const logoIcon: import("react/jsx-runtime").JSX.Element;
3
+ export declare const logoWordmark: import("react/jsx-runtime").JSX.Element;
@@ -1,37 +1,37 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import './picture.css';
3
3
  /**
4
4
  * Prop types for Picture
5
5
  */
6
6
  export interface PictureProps extends ComponentPropsWithoutRef<'img'> {
7
- /**
8
- * The WebP image source (preferred for modern browsers)
9
- */
10
- srcWebp: string;
11
- /**
12
- * The fallback image source (e.g., PNG or JPG)
13
- */
14
- srcFallback: string;
15
7
  /**
16
8
  * Alt text for the image. Defaults to empty string for decorative images.
17
9
  */
18
10
  alt?: string;
19
11
  /**
20
- * Optional width for the image (CSS value, e.g., '100px', '50%', 'auto').
21
- * If not provided, the image will be sized responsively by its container.
12
+ * Additional class names
22
13
  */
23
- width?: string | number;
14
+ className?: string;
24
15
  /**
25
16
  * Optional height for the image (CSS value, e.g., '100px', '50%', 'auto').
26
17
  * If not provided, the image will be sized responsively by its container.
27
18
  */
28
19
  height?: string | number;
29
20
  /**
30
- * Additional class names
21
+ * The fallback image source (e.g., PNG or JPG)
31
22
  */
32
- className?: string;
23
+ srcFallback: string;
24
+ /**
25
+ * The WebP image source (preferred for modern browsers)
26
+ */
27
+ srcWebp: string;
28
+ /**
29
+ * Optional width for the image (CSS value, e.g., '100px', '50%', 'auto').
30
+ * If not provided, the image will be sized responsively by its container.
31
+ */
32
+ width?: string | number;
33
33
  }
34
34
  /**
35
35
  * Picture UI component
36
36
  */
37
- export declare const Picture: ({ srcWebp, srcFallback, alt, width, height, className, ...props }: PictureProps) => React.JSX.Element;
37
+ export declare const Picture: ({ alt, className, height, srcFallback, srcWebp, width, ...props }: PictureProps) => import("react/jsx-runtime").JSX.Element;