@pantheon-systems/pds-toolkit-react 1.0.0-dev.19 → 1.0.0-dev.190

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 (235) hide show
  1. package/README.md +31 -1
  2. package/_dist/components/Avatar/Avatar.d.ts +33 -0
  3. package/_dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
  4. package/_dist/components/Breadcrumbs/BreadcrumbsContent.d.ts +12 -0
  5. package/_dist/components/Breadcrumbs/BreadcrumbsContext.d.ts +17 -0
  6. package/_dist/components/Breadcrumbs/ListItem.d.ts +14 -0
  7. package/_dist/components/Breadcrumbs/MobileCrumbs.d.ts +2 -0
  8. package/_dist/components/CTALink/CTALink.d.ts +20 -0
  9. package/_dist/components/CTASlice/CTASlice.d.ts +51 -0
  10. package/_dist/components/Callout/Callout.d.ts +24 -0
  11. package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
  12. package/_dist/components/ComparisonList/ComparisonList.d.ts +42 -0
  13. package/_dist/components/Heading/Heading.d.ts +15 -0
  14. package/_dist/components/Icon/Icon.d.ts +640 -0
  15. package/_dist/components/Icon/iconList.d.ts +1 -0
  16. package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +27 -0
  17. package/_dist/components/Modal/Modal.d.ts +40 -0
  18. package/_dist/components/Pager/AdvancedPagination.d.ts +4 -0
  19. package/_dist/components/Pager/BasicPagination.d.ts +4 -0
  20. package/_dist/components/Pager/MiniPagination.d.ts +4 -0
  21. package/_dist/components/Pager/NavigationButton.d.ts +13 -0
  22. package/_dist/components/Pager/Pager.d.ts +24 -0
  23. package/_dist/components/Pager/PagerContext.d.ts +23 -0
  24. package/_dist/components/Pager/PagerItem.d.ts +14 -0
  25. package/_dist/components/Pager/usePaginationUI.d.ts +1 -0
  26. package/_dist/components/Panel/Panel.d.ts +30 -0
  27. package/_dist/components/PantheonLogo/PantheonLogo.d.ts +32 -0
  28. package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +4 -0
  29. package/_dist/components/PlatformIcon/PlatformIcon.d.ts +12 -0
  30. package/_dist/components/Popover/Popover.d.ts +58 -0
  31. package/_dist/components/PullQuote/PullQuote.d.ts +34 -0
  32. package/_dist/components/Skiplink/Skiplink.d.ts +21 -0
  33. package/_dist/components/SocialLinks/SocialLinks.d.ts +23 -0
  34. package/_dist/components/StatusIndicator/StatusIndicator.d.ts +20 -0
  35. package/_dist/components/Stepper/Stepper.d.ts +49 -0
  36. package/_dist/components/Table/Table.d.ts +15 -0
  37. package/_dist/components/TableOfContents/TableOfContents.d.ts +25 -0
  38. package/_dist/components/Tabs/Tabs.d.ts +63 -0
  39. package/_dist/components/Tag/Tag.d.ts +39 -0
  40. package/_dist/components/Tooltip/Tooltip.d.ts +51 -0
  41. package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +27 -0
  42. package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +35 -0
  43. package/_dist/components/badges/Tally/Tally.d.ts +35 -0
  44. package/_dist/components/buttons/Button/Button.d.ts +58 -0
  45. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +44 -0
  46. package/_dist/components/buttons/IconButton/IconButton.d.ts +53 -0
  47. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +63 -0
  48. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +53 -0
  49. package/_dist/components/buttons/SplitButton/SplitButton.d.ts +36 -0
  50. package/_dist/components/buttons/ToggleButton/ToggleButton.d.ts +35 -0
  51. package/_dist/components/cards/Card/Card.d.ts +29 -0
  52. package/_dist/components/cards/CardHeading/CardHeading.d.ts +32 -0
  53. package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +60 -0
  54. package/_dist/components/cards/LinksCard/LinksCard.d.ts +29 -0
  55. package/_dist/components/cards/LinksCard/links-card-sample-data.d.ts +2 -0
  56. package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +25 -0
  57. package/_dist/components/cards/PricingCard/PricingCard.d.ts +64 -0
  58. package/_dist/components/cards/SiteCard/SiteCard.d.ts +45 -0
  59. package/_dist/components/expansion-panels/ExpansionPanel/ExpansionPanel.d.ts +32 -0
  60. package/_dist/components/expansion-panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +24 -0
  61. package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +15 -0
  62. package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +17 -0
  63. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +26 -0
  64. package/_dist/components/footer/SiteFooter/footer-content.d.ts +2 -0
  65. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +92 -0
  66. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +60 -0
  67. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +76 -0
  68. package/_dist/components/inputs/Combobox/Combobox.d.ts +134 -0
  69. package/_dist/components/inputs/FileUpload/FileUpload.d.ts +77 -0
  70. package/_dist/components/inputs/InputFormatted/InputFormatted.d.ts +35 -0
  71. package/_dist/components/inputs/InputGroup/InputGroup.d.ts +19 -0
  72. package/_dist/components/inputs/InputObscured/InputObscured.d.ts +33 -0
  73. package/_dist/components/inputs/InputText/InputText.d.ts +75 -0
  74. package/_dist/components/inputs/InputWrapper/InputWrapper.d.ts +5 -0
  75. package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +92 -0
  76. package/_dist/components/inputs/Select/Select.d.ts +99 -0
  77. package/_dist/components/inputs/Switch/Switch.d.ts +74 -0
  78. package/_dist/components/inputs/TextInput/TextInput.d.ts +127 -0
  79. package/_dist/components/inputs/Textarea/Textarea.d.ts +107 -0
  80. package/_dist/components/inputs/ToggleSwitch/ToggleSwitch.d.ts +33 -0
  81. package/_dist/components/inputs/input-types.d.ts +1 -0
  82. package/_dist/components/inputs/input-utilities.d.ts +88 -0
  83. package/_dist/components/inputs/inputs-common.d.ts +40 -0
  84. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +35 -0
  85. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +25 -0
  86. package/_dist/components/navigation/DashboardNav/dashboard-nav-sample-content.d.ts +30 -0
  87. package/_dist/components/navigation/DashboardNav/dashboard-nav-utilities.d.ts +4 -0
  88. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +70 -0
  89. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +35 -0
  90. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +28 -0
  91. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +19 -0
  92. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +14 -0
  93. package/_dist/components/navigation/Navbar/Navbar.d.ts +60 -0
  94. package/_dist/components/navigation/SideNav/SideNav.d.ts +47 -0
  95. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +47 -0
  96. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +43 -0
  97. package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +33 -0
  98. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +69 -0
  99. package/_dist/components/navigation/UserMenu/user-menu-sample-content.d.ts +2 -0
  100. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +58 -0
  101. package/_dist/components/navigation/navigation-types.d.ts +29 -0
  102. package/_dist/components/navigation/navigation-utilities.d.ts +7 -0
  103. package/_dist/components/notifications/Banner/Banner.d.ts +47 -0
  104. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +37 -0
  105. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +47 -0
  106. package/_dist/components/notifications/Toaster/Toast.d.ts +46 -0
  107. package/_dist/components/notifications/Toaster/Toaster.d.ts +29 -0
  108. package/_dist/components/notifications/Toaster/useToast.d.ts +13 -0
  109. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +53 -0
  110. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +41 -0
  111. package/_dist/components/progress-indicators/Spinner/Spinner.d.ts +33 -0
  112. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +22 -0
  113. package/_dist/components/tiles/StatsTileList/StatsTileList.d.ts +26 -0
  114. package/_dist/components/tiles/Tile/Tile.d.ts +42 -0
  115. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +29 -0
  116. package/_dist/css/component-css/pds-avatar-tile-list.css +1 -0
  117. package/_dist/css/component-css/pds-avatar.css +1 -0
  118. package/_dist/css/component-css/pds-banner.css +1 -0
  119. package/_dist/css/component-css/pds-breadcrumbs.css +1 -0
  120. package/_dist/css/component-css/pds-button-link.css +1 -0
  121. package/_dist/css/component-css/pds-button.css +81 -0
  122. package/_dist/css/component-css/pds-callout.css +1 -0
  123. package/_dist/css/component-css/pds-card-heading.css +1 -0
  124. package/_dist/css/component-css/pds-card-select-group.css +1 -0
  125. package/_dist/css/component-css/pds-card.css +1 -0
  126. package/_dist/css/component-css/pds-checkbox-group.css +1 -0
  127. package/_dist/css/component-css/pds-checkbox.css +1 -0
  128. package/_dist/css/component-css/pds-combobox.css +1 -0
  129. package/_dist/css/component-css/pds-comparison-list.css +1 -0
  130. package/_dist/css/component-css/pds-cta-link.css +1 -0
  131. package/_dist/css/component-css/pds-cta-slice.css +1 -0
  132. package/_dist/css/component-css/pds-dashboard-nav.css +5 -0
  133. package/_dist/css/component-css/pds-dashboard-search.css +1 -0
  134. package/_dist/css/component-css/pds-dropdown-menu.css +2 -0
  135. package/_dist/css/component-css/pds-expansion-panel-group.css +1 -0
  136. package/_dist/css/component-css/pds-expansion-panel.css +1 -0
  137. package/_dist/css/component-css/pds-file-upload.css +7 -0
  138. package/_dist/css/component-css/pds-footer-heading.css +1 -0
  139. package/_dist/css/component-css/pds-footer-links.css +1 -0
  140. package/_dist/css/component-css/pds-heading.css +1 -0
  141. package/_dist/css/component-css/pds-icon-button.css +17 -0
  142. package/_dist/css/component-css/pds-icon-story-only.css +1 -0
  143. package/_dist/css/component-css/pds-index.css +162 -0
  144. package/_dist/css/component-css/pds-indicator-badge.css +39 -0
  145. package/_dist/css/component-css/pds-inline-message.css +1 -0
  146. package/_dist/css/component-css/pds-input-group.css +1 -0
  147. package/_dist/css/component-css/pds-input-text.css +1 -0
  148. package/_dist/css/component-css/pds-input-utilities.css +1 -0
  149. package/_dist/css/component-css/pds-input-wrapper.css +1 -0
  150. package/_dist/css/component-css/pds-inputs-common-deprecated.css +1 -0
  151. package/_dist/css/component-css/pds-inputs-common.css +1 -0
  152. package/_dist/css/component-css/pds-link-new-window.css +1 -0
  153. package/_dist/css/component-css/pds-links-card.css +1 -0
  154. package/_dist/css/component-css/pds-menu-button.css +1 -0
  155. package/_dist/css/component-css/pds-modal.css +1 -0
  156. package/_dist/css/component-css/pds-nav-menu.css +1 -0
  157. package/_dist/css/component-css/pds-navbar.css +3 -0
  158. package/_dist/css/component-css/pds-new-site-card.css +1 -0
  159. package/_dist/css/component-css/pds-pager.css +1 -0
  160. package/_dist/css/component-css/pds-panel.css +1 -0
  161. package/_dist/css/component-css/pds-pantheon-logo.css +1 -0
  162. package/_dist/css/component-css/pds-platform-icon.css +1 -0
  163. package/_dist/css/component-css/pds-popover.css +1 -0
  164. package/_dist/css/component-css/pds-pricing-card-local.css +1 -0
  165. package/_dist/css/component-css/pds-pricing-card.css +1 -0
  166. package/_dist/css/component-css/pds-progress-bar.css +1 -0
  167. package/_dist/css/component-css/pds-progress-ring.css +1 -0
  168. package/_dist/css/component-css/pds-pull-quote.css +1 -0
  169. package/_dist/css/component-css/pds-radio-group.css +1 -0
  170. package/_dist/css/component-css/pds-section-message.css +1 -0
  171. package/_dist/css/component-css/pds-segmented-button.css +1 -0
  172. package/_dist/css/component-css/pds-select.css +1 -0
  173. package/_dist/css/component-css/pds-side-nav-compact.css +1 -0
  174. package/_dist/css/component-css/pds-side-nav.css +1 -0
  175. package/_dist/css/component-css/pds-site-card.css +1 -0
  176. package/_dist/css/component-css/pds-site-footer.css +1 -0
  177. package/_dist/css/component-css/pds-skiplink.css +1 -0
  178. package/_dist/css/component-css/pds-social-links.css +1 -0
  179. package/_dist/css/component-css/pds-spinner.css +1 -0
  180. package/_dist/css/component-css/pds-split-button.css +2 -0
  181. package/_dist/css/component-css/pds-stats-tile-list.css +1 -0
  182. package/_dist/css/component-css/pds-status-badge.css +9 -0
  183. package/_dist/css/component-css/pds-status-indicator.css +1 -0
  184. package/_dist/css/component-css/pds-stepper.css +1 -0
  185. package/_dist/css/component-css/pds-switch.css +3 -0
  186. package/_dist/css/component-css/pds-tab-menu.css +2 -0
  187. package/_dist/css/component-css/pds-table-of-contents.css +1 -0
  188. package/_dist/css/component-css/pds-table.css +1 -0
  189. package/_dist/css/component-css/pds-tabs.css +1 -0
  190. package/_dist/css/component-css/pds-tag.css +1 -0
  191. package/_dist/css/component-css/pds-tally.css +1 -0
  192. package/_dist/css/component-css/pds-text-input.css +1 -0
  193. package/_dist/css/component-css/pds-textarea.css +1 -0
  194. package/_dist/css/component-css/pds-tile.css +1 -0
  195. package/_dist/css/component-css/pds-tiles-common.css +1 -0
  196. package/_dist/css/component-css/pds-toaster.css +1 -0
  197. package/_dist/css/component-css/pds-toggle-button.css +1 -0
  198. package/_dist/css/component-css/pds-toggle-switch.css +3 -0
  199. package/_dist/css/component-css/pds-tooltip.css +1 -0
  200. package/_dist/css/component-css/pds-user-menu-story-only.css +1 -0
  201. package/_dist/css/component-css/pds-user-menu.css +1 -0
  202. package/_dist/css/component-css/pds-workspace-selector.css +1 -0
  203. package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +272 -0
  204. package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +521 -0
  205. package/_dist/css/design-tokens/pds-design-tokens.css +105 -0
  206. package/_dist/css/pds-components.css +125 -70
  207. package/_dist/css/pds-core.css +54 -2
  208. package/_dist/css/pds-layouts.css +2 -1
  209. package/_dist/index.css +1 -0
  210. package/_dist/index.d.ts +98 -0
  211. package/_dist/index.js +10650 -0
  212. package/_dist/index.js.map +1 -0
  213. package/_dist/layouts/Container/Container.d.ts +25 -0
  214. package/_dist/layouts/DashboardLayout/DashboardLayout.d.ts +48 -0
  215. package/_dist/layouts/DashboardLayout/DemoContent.d.ts +2 -0
  216. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +72 -0
  217. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
  218. package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +36 -0
  219. package/_dist/layouts/StepperLayout/StepperLayout.d.ts +17 -0
  220. package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +25 -0
  221. package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +29 -0
  222. package/_dist/layouts/layout-types.d.ts +1 -0
  223. package/_dist/libs/components/customPropTypes.d.ts +85 -0
  224. package/_dist/libs/components/utility-components.d.ts +12 -0
  225. package/_dist/libs/components/utils.d.ts +4 -0
  226. package/_dist/libs/types/custom-types.d.ts +13 -0
  227. package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
  228. package/_dist/utilities/hooks/useWindowWidth.d.ts +1 -0
  229. package/_dist/vars/spacing.d.ts +17 -0
  230. package/_dist/vars/z-index.d.ts +5 -0
  231. package/package.json +85 -44
  232. package/_dist/cjs/index.js +0 -98
  233. package/_dist/cjs/index.js.map +0 -1
  234. package/_dist/esm/index.js +0 -98
  235. package/_dist/esm/index.js.map +0 -1
@@ -0,0 +1,64 @@
1
+ export function PricingCard({ actionPrimary, actionSecondary, hasComparisonList, onTierChange, planDescription, planName, planPricingData, statusBadgeLabels, selectLabel, statusBadgeType, className, ...props }: {
2
+ [x: string]: any;
3
+ actionPrimary: any;
4
+ actionSecondary: any;
5
+ hasComparisonList?: boolean;
6
+ onTierChange: any;
7
+ planDescription: any;
8
+ planName: any;
9
+ planPricingData: any;
10
+ statusBadgeLabels?: {
11
+ currentPlan: string;
12
+ mostPopular: string;
13
+ };
14
+ selectLabel?: string;
15
+ statusBadgeType: any;
16
+ className: any;
17
+ }): React.JSX.Element;
18
+ export namespace PricingCard {
19
+ namespace propTypes {
20
+ let actionPrimary: PropTypes.Requireable<PropTypes.InferProps<{
21
+ type: PropTypes.Requireable<string>;
22
+ variant: PropTypes.Requireable<string>;
23
+ label: PropTypes.Requireable<string>;
24
+ buttonAction: PropTypes.Requireable<(...args: any[]) => any>;
25
+ linkUrl: PropTypes.Requireable<string>;
26
+ linkTarget: PropTypes.Requireable<string>;
27
+ disabled: PropTypes.Requireable<boolean>;
28
+ }>>;
29
+ let actionSecondary: PropTypes.Requireable<PropTypes.InferProps<{
30
+ type: PropTypes.Requireable<string>;
31
+ label: PropTypes.Requireable<string>;
32
+ buttonAction: PropTypes.Requireable<(...args: any[]) => any>;
33
+ linkUrl: PropTypes.Requireable<string>;
34
+ linkTarget: PropTypes.Requireable<string>;
35
+ }>>;
36
+ let hasComparisonList: PropTypes.Requireable<boolean>;
37
+ let onTierChange: PropTypes.Requireable<(...args: any[]) => any>;
38
+ let planDescription: PropTypes.Requireable<string>;
39
+ let planName: PropTypes.Requireable<string>;
40
+ let planPricingData: PropTypes.Requireable<PropTypes.InferProps<{
41
+ customActionLabel: PropTypes.Requireable<string>;
42
+ label: PropTypes.Requireable<string>;
43
+ price: PropTypes.Requireable<string>;
44
+ priceDetails: PropTypes.Requireable<string>;
45
+ savingsBadgeLabel: PropTypes.Requireable<string>;
46
+ savingsDetails: PropTypes.Requireable<string>;
47
+ listLabel: PropTypes.Requireable<string>;
48
+ listItems: PropTypes.Requireable<PropTypes.InferProps<{
49
+ text: PropTypes.Requireable<string>;
50
+ type: PropTypes.Requireable<string>;
51
+ }>[]>;
52
+ }>[]>;
53
+ let selectLabel: PropTypes.Requireable<string>;
54
+ let statusBadgeLabels: PropTypes.Requireable<PropTypes.InferProps<{
55
+ currentPlan: PropTypes.Requireable<string>;
56
+ mostPopular: PropTypes.Requireable<string>;
57
+ }>>;
58
+ let statusBadgeType: PropTypes.Requireable<string>;
59
+ let className: PropTypes.Requireable<string>;
60
+ let containerClassName: PropTypes.Requireable<string>;
61
+ }
62
+ }
63
+ import React from 'react';
64
+ import PropTypes from 'prop-types';
@@ -0,0 +1,45 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { HeadingLevel } from '@libs/types/custom-types';
3
+ import { SiteStatus } from '@libs/types/custom-types';
4
+ import './site-card.css';
5
+ /**
6
+ * Prop types for SiteCard
7
+ */
8
+ export interface SiteCardProps extends ComponentPropsWithoutRef<'div'> {
9
+ /**
10
+ * Translatable text for the "Go to" link.
11
+ */
12
+ gotoText?: string;
13
+ /**
14
+ * Heading level of the card title.
15
+ */
16
+ headingLevel?: HeadingLevel;
17
+ /**
18
+ * Image URL for the site.
19
+ */
20
+ siteImage?: string;
21
+ /**
22
+ * Link to the site dashboard.
23
+ */
24
+ siteLink: ReactNode;
25
+ /**
26
+ * Name of the site.
27
+ */
28
+ siteName?: string;
29
+ /**
30
+ * Plan of the site.
31
+ */
32
+ sitePlan?: string;
33
+ /**
34
+ * Status of the site.
35
+ */
36
+ siteStatus?: SiteStatus;
37
+ /**
38
+ * Additional class names
39
+ */
40
+ className?: string;
41
+ }
42
+ /**
43
+ * SiteCard UI component
44
+ */
45
+ export declare const SiteCard: ({ gotoText, headingLevel, siteImage, siteLink, siteName, sitePlan, siteStatus, className, ...props }: SiteCardProps) => React.JSX.Element;
@@ -0,0 +1,32 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './expansion-panel.css';
3
+ /**
4
+ * Prop types for ExpansionPanel
5
+ */
6
+ interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * The content of the expansion panel.
9
+ */
10
+ children?: ReactNode;
11
+ /**
12
+ * The ID of the expansion panel. If not provided, a unique ID will be generated.
13
+ */
14
+ id?: string;
15
+ /**
16
+ * Whether the expansion panel is open or not.
17
+ */
18
+ isOpen?: boolean;
19
+ /**
20
+ * The summary label of the expansion panel.
21
+ */
22
+ summary?: string | ReactNode;
23
+ /**
24
+ * Additional class names
25
+ */
26
+ className?: string;
27
+ }
28
+ /**
29
+ * ExpansionPanel UI component
30
+ */
31
+ export declare const ExpansionPanel: ({ children, id, isOpen, summary, className, ...props }: ExpansionPanelProps) => React.JSX.Element;
32
+ export {};
@@ -0,0 +1,24 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './expansion-panel-group.css';
3
+ /**
4
+ * Prop types for ExpansionPanelGroup
5
+ */
6
+ interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * The content of the expansion panel group. This should be a series of ExpansionPanel components.
9
+ */
10
+ children?: ReactNode;
11
+ /**
12
+ * The display type of the expansion panel group.
13
+ */
14
+ displayType?: 'standard' | 'no-border' | 'stacked';
15
+ /**
16
+ * Additional class names
17
+ */
18
+ className?: string;
19
+ }
20
+ /**
21
+ * ExpansionPanelGroup UI component
22
+ */
23
+ export declare const ExpansionPanelGroup: ({ children, displayType, className, ...props }: ExpansionPanelGroupProps) => React.JSX.Element;
24
+ export {};
@@ -0,0 +1,15 @@
1
+ export function FooterHeading({ headingLevel, headingText, className, ...props }: {
2
+ [x: string]: any;
3
+ headingLevel?: string;
4
+ headingText: any;
5
+ className: any;
6
+ }): React.JSX.Element;
7
+ export namespace FooterHeading {
8
+ namespace propTypes {
9
+ let headingLevel: PropTypes.Requireable<string>;
10
+ let headingText: PropTypes.Validator<string>;
11
+ let className: PropTypes.Requireable<string>;
12
+ }
13
+ }
14
+ import React from 'react';
15
+ import PropTypes from 'prop-types';
@@ -0,0 +1,17 @@
1
+ export function FooterLinks({ headingLevel, headingText, linkItems, className, ...props }: {
2
+ [x: string]: any;
3
+ headingLevel: any;
4
+ headingText: any;
5
+ linkItems: any;
6
+ className: any;
7
+ }): React.JSX.Element;
8
+ export namespace FooterLinks {
9
+ namespace propTypes {
10
+ let headingLevel: PropTypes.Requireable<string>;
11
+ let headingText: PropTypes.Validator<string>;
12
+ let linkItems: PropTypes.Requireable<PropTypes.ReactNodeLike[]>;
13
+ let className: PropTypes.Requireable<string>;
14
+ }
15
+ }
16
+ import React from 'react';
17
+ import PropTypes from 'prop-types';
@@ -0,0 +1,26 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { ContainerWidth } from '@libs/types/custom-types';
3
+ import './site-footer.css';
4
+ interface SiteFooterProps extends ComponentPropsWithoutRef<'footer'> {
5
+ /**
6
+ * PDS container width.
7
+ */
8
+ containerWidth?: ContainerWidth;
9
+ /**
10
+ * Footer content.
11
+ */
12
+ children?: React.ReactNode;
13
+ /**
14
+ * Legal policy links.
15
+ */
16
+ legalLinks?: Array<'privacy' | 'dataSubjectRequest' | 'cookiePolicy' | 'termsOfUse' | 'acceptableUse' | 'accessibilityStatement'>;
17
+ /**
18
+ * Additional class names
19
+ */
20
+ className?: string;
21
+ }
22
+ /**
23
+ * SiteFooter UI component
24
+ */
25
+ export declare const SiteFooter: ({ containerWidth, children, legalLinks, className, ...props }: SiteFooterProps) => React.JSX.Element;
26
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const docsFooterContent: React.JSX.Element;
@@ -0,0 +1,92 @@
1
+ import React, { ComponentPropsWithoutRef, ChangeEvent, FocusEvent } from 'react';
2
+ import { ValidationStatus } from '../input-types';
3
+ import './checkbox.css';
4
+ /**
5
+ * Prop types for Checkbox
6
+ */
7
+ export interface CheckboxProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Checked state of the input. Used to set the checked status of the input field when controlled. Cannot be used in conjunction with the `defaultChecked` prop.
10
+ */
11
+ checked?: boolean;
12
+ /**
13
+ * Default checked state. Setting this prop automatically makes the input uncontrolled. Cannot be used with the checked prop.
14
+ */
15
+ defaultChecked?: boolean;
16
+ /**
17
+ * Is the field disabled?
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * The ID of the checkbox.
22
+ */
23
+ id: string;
24
+ /**
25
+ * Indeterminate state
26
+ */
27
+ indeterminate?: boolean;
28
+ /**
29
+ * Additional props for the `<input>` element.
30
+ */
31
+ inputProps?: ComponentPropsWithoutRef<'input'>;
32
+ /**
33
+ * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
34
+ */
35
+ inputWidth?: number;
36
+ /**
37
+ * Input label.
38
+ */
39
+ label: string;
40
+ /**
41
+ * Input message. Used to provide supplemental text. Will be displayed below the input field.
42
+ */
43
+ message?: string;
44
+ /**
45
+ * Name attribute of the checkbox.
46
+ */
47
+ name?: string;
48
+ /**
49
+ * Indent level of the checkbox. Visual styles for creating nested checkboxes. Styles are only applied when the checkbox is an ancestor of a div with the class `pds-checkbox-group`.
50
+ */
51
+ nestingLevel?: 0 | 1 | 2;
52
+ /**
53
+ * onBlur event handler
54
+ */
55
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
56
+ /**
57
+ * onChange event handler
58
+ */
59
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
60
+ /**
61
+ * onFocus event handler
62
+ */
63
+ onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
64
+ /**
65
+ * Is the field required?
66
+ */
67
+ required?: boolean;
68
+ /**
69
+ * Should the label be visible? If false, it will render for screen readers only.
70
+ */
71
+ showLabel?: boolean;
72
+ /**
73
+ * Validation message for the input field based on the validation status.
74
+ */
75
+ validationMessage?: string;
76
+ /**
77
+ * Validation status of the input field.
78
+ */
79
+ validationStatus?: ValidationStatus;
80
+ /**
81
+ * Value attribute of the checkbox.
82
+ */
83
+ value?: string;
84
+ /**
85
+ * Additional class names
86
+ */
87
+ className?: string;
88
+ }
89
+ /**
90
+ * Checkbox UI component
91
+ */
92
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,60 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { ValidationStatus } from '../input-types';
3
+ import '../CheckboxGroup/checkbox-group.css';
4
+ /**
5
+ * Prop types for CheckboxFieldset
6
+ */
7
+ export interface CheckboxGroupWrapperProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Individual checkboxes to be rendered within the group.
10
+ */
11
+ children: React.ReactNode;
12
+ /**
13
+ * Is the field disabled?
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * Additional props for the `<fieldset>` element.
18
+ */
19
+ fieldsetProps?: ComponentPropsWithoutRef<'fieldset'>;
20
+ /**
21
+ * The ID of the checkbox group.
22
+ */
23
+ id: string;
24
+ /**
25
+ * Width of the field. Accepts a number in pixels. Leave blank for width: 100%.
26
+ */
27
+ inputWidth?: number;
28
+ /**
29
+ * Field label. Will be rendered as the fieldset legend.
30
+ */
31
+ label: string;
32
+ /**
33
+ * Input message. Used to provide supplemental text. Will be displayed below the field.
34
+ */
35
+ message?: string;
36
+ /**
37
+ * Is the field required?
38
+ */
39
+ required?: boolean;
40
+ /**
41
+ * Should the label (legend) be visible? If false, it will render for screen readers only.
42
+ */
43
+ showLabel?: boolean;
44
+ /**
45
+ * Validation message for the input field based on the validation status.
46
+ */
47
+ validationMessage?: string;
48
+ /**
49
+ * Validation status of the input field.
50
+ */
51
+ validationStatus?: ValidationStatus;
52
+ /**
53
+ * Additional class names
54
+ */
55
+ className?: string;
56
+ }
57
+ /**
58
+ * CheckboxFieldset UI component
59
+ */
60
+ export declare const CheckboxFieldset: ({ children, disabled, fieldsetProps, id, inputWidth, label, message, required, showLabel, validationMessage, validationStatus, className, ...props }: CheckboxGroupWrapperProps) => React.JSX.Element;
@@ -0,0 +1,76 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { ValidationStatus } from '../input-types';
3
+ import './checkbox-group.css';
4
+ export type CheckboxOption = {
5
+ checked?: boolean;
6
+ disabled?: boolean;
7
+ id?: string;
8
+ label: string;
9
+ name?: string;
10
+ value: string;
11
+ };
12
+ /**
13
+ * Prop types for CheckboxGroup
14
+ */
15
+ export interface CheckboxGroupProps extends ComponentPropsWithoutRef<'div'> {
16
+ /**
17
+ * Is the field disabled?
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Additional props for the `<fieldset>` element.
22
+ */
23
+ fieldsetProps?: ComponentPropsWithoutRef<'fieldset'>;
24
+ /**
25
+ * The ID of the checkbox group.
26
+ */
27
+ id: string;
28
+ /**
29
+ * Width of the field. Accepts a number in pixels. Leave blank for width: 100%.
30
+ */
31
+ inputWidth?: number;
32
+ /**
33
+ * Field label. Will be rendered as the fieldset legend.
34
+ */
35
+ label: string;
36
+ /**
37
+ * Input message. Used to provide supplemental text. Will be displayed below the field.
38
+ */
39
+ message?: string;
40
+ /**
41
+ * onGroupBlur function. Called when all checkboxes have lost focus. Provides an array of checked values.
42
+ */
43
+ onGroupBlur?: (checkedOptions: string[]) => void;
44
+ /**
45
+ * onValueChange function. Called when the value of any checkbox changes. Provides an array of checked values.
46
+ */
47
+ onValueChange?: (updatedOptions: string[]) => void;
48
+ /**
49
+ * Array of checkbox options for group.
50
+ */
51
+ options: CheckboxOption[];
52
+ /**
53
+ * Is the field required?
54
+ */
55
+ required?: boolean;
56
+ /**
57
+ * Should the label (legend) be visible? If false, it will render for screen readers only.
58
+ */
59
+ showLabel?: boolean;
60
+ /**
61
+ * Validation message for the input field based on the validation status.
62
+ */
63
+ validationMessage?: string;
64
+ /**
65
+ * Validation status of the input field.
66
+ */
67
+ validationStatus?: ValidationStatus;
68
+ /**
69
+ * Additional class names
70
+ */
71
+ className?: string;
72
+ }
73
+ /**
74
+ * CheckboxGroup UI component
75
+ */
76
+ export declare const CheckboxGroup: ({ disabled, fieldsetProps, id, inputWidth, label, message, onGroupBlur, onValueChange, options, required, showLabel, validationMessage, validationStatus, className, ...props }: CheckboxGroupProps) => React.JSX.Element;
@@ -0,0 +1,134 @@
1
+ import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
2
+ import { ValidationStatus } from '../input-types';
3
+ import './combobox.css';
4
+ type LabelStrings = {
5
+ clearButton?: string;
6
+ inputInstructions?: string;
7
+ searchShortcut?: string;
8
+ triggerButton?: string;
9
+ };
10
+ export type ComboboxOption = {
11
+ label: string;
12
+ optionDisplay?: ReactNode;
13
+ searchIndex?: string[];
14
+ value: string;
15
+ [otherOptions: string]: unknown;
16
+ };
17
+ /**
18
+ * Prop types for Combobox
19
+ */
20
+ export interface ComboboxProps extends ComponentPropsWithoutRef<'div'> {
21
+ /**
22
+ * Optional default value for the field.
23
+ */
24
+ defaultValue?: string;
25
+ /**
26
+ * Is the field disabled?
27
+ */
28
+ disabled?: boolean;
29
+ /**
30
+ * Should the combobox have a clear button?
31
+ */
32
+ hasClearButton?: boolean;
33
+ /**
34
+ * Should the combobox have a dropdown trigger?
35
+ */
36
+ hasDropdownTrigger?: boolean;
37
+ /**
38
+ * Should the combobox have a search icon?
39
+ */
40
+ hasSearchIcon?: boolean;
41
+ /**
42
+ * Should the combobox have a search shortcut?
43
+ */
44
+ hasSearchShortcut?: boolean;
45
+ /**
46
+ * ID of the combobox
47
+ */
48
+ id: string;
49
+ /**
50
+ * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
51
+ */
52
+ inputWidth?: number;
53
+ /**
54
+ * Are the options in the process of being loaded?
55
+ */
56
+ isLoading?: boolean;
57
+ /**
58
+ * Text to display when options are still loading.
59
+ */
60
+ loadingText?: string;
61
+ /**
62
+ * Field label.
63
+ */
64
+ label: string;
65
+ /**
66
+ * Translation strings for various labels or other visually-hidden text.
67
+ */
68
+ labelStrings?: LabelStrings;
69
+ /**
70
+ * Message or description used to help clarify the usage of the input.
71
+ */
72
+ message?: string;
73
+ /**
74
+ * Text to display when there are no results.
75
+ */
76
+ noResultsText?: string;
77
+ /**
78
+ * onChange event handler.
79
+ */
80
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
81
+ /**
82
+ * onBlur event handler.
83
+ */
84
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
85
+ /**
86
+ * Callback when the input is cleared.
87
+ */
88
+ onClear?: () => void;
89
+ /**
90
+ * onFocus event handler.
91
+ */
92
+ onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
93
+ /**
94
+ * Callback when an option is selected. Returns the selected option object.
95
+ */
96
+ onOptionSelect?: (option: ComboboxOption) => void;
97
+ /**
98
+ * Array of options to display in the dropdown.
99
+ */
100
+ options?: ComboboxOption[];
101
+ /**
102
+ * Optional placeholder text to display when the input field is empty.
103
+ */
104
+ placeholder?: string;
105
+ /**
106
+ * Is this field required?
107
+ */
108
+ required?: boolean;
109
+ /**
110
+ * Should the label be visible? If false, it will render for screen readers only.
111
+ */
112
+ showLabel?: boolean;
113
+ /**
114
+ * Value attribute of input
115
+ */
116
+ value?: string;
117
+ /**
118
+ * Validation message for the input field based on the validation status.
119
+ */
120
+ validationMessage?: string;
121
+ /**
122
+ * Validation status of the input field.
123
+ */
124
+ validationStatus?: ValidationStatus;
125
+ /**
126
+ * Additional class names
127
+ */
128
+ className?: string;
129
+ }
130
+ /**
131
+ * Combobox UI component
132
+ */
133
+ export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLSpanElement>>;
134
+ export {};
@@ -0,0 +1,77 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { ValidationStatus } from '../input-types';
3
+ import './file-upload.css';
4
+ type LabelStrings = {
5
+ chooseFile: string;
6
+ clearButton: string;
7
+ };
8
+ /**
9
+ * Prop types for FileUpload
10
+ */
11
+ export interface FileUploadProps extends ComponentPropsWithoutRef<'div'> {
12
+ /**
13
+ * File types the input should accept. Leave null for all file types.
14
+ */
15
+ accept?: string;
16
+ /**
17
+ * Is the field disabled?
18
+ */
19
+ disabled?: boolean;
20
+ /**
21
+ * Label to be rendered above the input field. Describes the fields purpose. Optional.
22
+ */
23
+ fieldLabel?: string;
24
+ /**
25
+ * Input ID.
26
+ */
27
+ id: string;
28
+ /**
29
+ * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
30
+ */
31
+ inputWidth?: number;
32
+ /**
33
+ * Translation strings for various labels or other visually-hidden text.
34
+ */
35
+ labelStrings?: LabelStrings;
36
+ /**
37
+ * Message or description used to help clarify the usage of the input.
38
+ */
39
+ message?: string;
40
+ /**
41
+ * Should the input accept multiple files?
42
+ */
43
+ multiple?: boolean;
44
+ /**
45
+ * Callback function that will run when the clear button is clicked.
46
+ */
47
+ onClear?: () => void;
48
+ /**
49
+ * Callback function that will run when the file input changes.
50
+ */
51
+ onFileChange?: (files: FileList) => void;
52
+ /**
53
+ * Is the field required?
54
+ */
55
+ required?: boolean;
56
+ /**
57
+ * Should the label be visible? If false, it will render for screen readers only.
58
+ */
59
+ showLabel?: boolean;
60
+ /**
61
+ * Validation message for the input field based on the validation status.
62
+ */
63
+ validationMessage?: string;
64
+ /**
65
+ * Validation status of the input field.
66
+ */
67
+ validationStatus?: ValidationStatus;
68
+ /**
69
+ * Additional class names
70
+ */
71
+ className?: string;
72
+ }
73
+ /**
74
+ * FileUpload UI component
75
+ */
76
+ export declare const FileUpload: ({ accept, disabled, fieldLabel, id, inputWidth, labelStrings, message, multiple, onClear, onFileChange, required, showLabel, validationMessage, validationStatus, className, ...props }: FileUploadProps) => React.JSX.Element;
77
+ export {};