@pantheon-systems/pds-toolkit-react 1.0.0-dev.99 → 1.0.0-dev.9998

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 (286) hide show
  1. package/_dist/components/Avatar/Avatar.d.ts +36 -0
  2. package/_dist/components/BranchDiff/BranchDiff.d.ts +43 -0
  3. package/_dist/components/CTALink/CTALink.d.ts +20 -0
  4. package/_dist/components/CTASlice/CTASlice.d.ts +43 -0
  5. package/_dist/components/Callout/Callout.d.ts +31 -0
  6. package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
  7. package/_dist/components/CodeBlock/CodeBlock.d.ts +85 -0
  8. package/_dist/components/CodeBlock/code-examples.d.ts +6 -0
  9. package/_dist/components/CodeBlock/themes/index.d.ts +2 -0
  10. package/_dist/components/CodeBlock/themes/pdsDark.d.ts +2 -0
  11. package/_dist/components/CodeBlock/themes/pdsLight.d.ts +2 -0
  12. package/_dist/components/ComparisonList/ComparisonList.d.ts +42 -0
  13. package/_dist/components/DashboardStat/DashboardStat.d.ts +28 -0
  14. package/_dist/components/FileDiff/FileDiff.d.ts +35 -0
  15. package/_dist/components/FlowSteps/FlowSteps.d.ts +37 -0
  16. package/_dist/components/FlowSteps/example-steps.d.ts +15 -0
  17. package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +35 -0
  18. package/_dist/components/Modal/Modal.d.ts +54 -0
  19. package/_dist/components/Pagination/Pagination.d.ts +54 -0
  20. package/_dist/components/Pagination/usePagination.d.ts +7 -0
  21. package/_dist/components/PantheonLogo/PantheonLogo.d.ts +32 -0
  22. package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +4 -0
  23. package/_dist/components/Picture/Picture.d.ts +37 -0
  24. package/_dist/components/Popover/Popover.d.ts +66 -0
  25. package/_dist/components/PullQuote/PullQuote.d.ts +34 -0
  26. package/_dist/components/RefreshChecker/RefreshChecker.d.ts +54 -0
  27. package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +57 -0
  28. package/_dist/components/Skiplink/Skiplink.d.ts +21 -0
  29. package/_dist/components/SocialLinks/SocialLinks.d.ts +23 -0
  30. package/_dist/components/StatusIndicator/StatusIndicator.d.ts +24 -0
  31. package/_dist/components/Table/Table.d.ts +27 -0
  32. package/_dist/components/TableOfContents/TableOfContents.d.ts +45 -0
  33. package/_dist/components/Tabs/Tabs.d.ts +63 -0
  34. package/_dist/components/Tag/Tag.d.ts +39 -0
  35. package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +32 -0
  36. package/_dist/components/Tooltip/Tooltip.d.ts +51 -0
  37. package/_dist/components/VideoEmbed/VideoEmbed.d.ts +28 -0
  38. package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +27 -0
  39. package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +35 -0
  40. package/_dist/components/badges/Tally/Tally.d.ts +38 -0
  41. package/_dist/components/buttons/Button/Button.d.ts +66 -0
  42. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +48 -0
  43. package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +31 -0
  44. package/_dist/components/buttons/CloseButton/CloseButton.d.ts +27 -0
  45. package/_dist/components/buttons/IconButton/IconButton.d.ts +50 -0
  46. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +75 -0
  47. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +63 -0
  48. package/_dist/components/buttons/SplitButton/SplitButton.d.ts +41 -0
  49. package/_dist/components/buttons/SplitButton/split-button-sample-data.d.ts +17 -0
  50. package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +56 -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/EmptyStateCard/EmptyStateCard.d.ts +36 -0
  55. package/_dist/components/cards/LinksCard/LinksCard.d.ts +29 -0
  56. package/_dist/components/cards/LinksCard/links-card-sample-data.d.ts +2 -0
  57. package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +57 -0
  58. package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +47 -0
  59. package/_dist/components/cards/PricingCard/PricingCard.d.ts +90 -0
  60. package/_dist/components/cards/SiteCard/SiteCard.d.ts +45 -0
  61. package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +37 -0
  62. package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +69 -0
  63. package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +47 -0
  64. package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +22 -0
  65. package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +26 -0
  66. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +30 -0
  67. package/_dist/components/footer/SiteFooter/footer-content.d.ts +2 -0
  68. package/_dist/components/icons/Icon/Icon.d.ts +732 -0
  69. package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +21 -0
  70. package/_dist/components/icons/PaymentIcon/svgData.d.ts +8 -0
  71. package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +12 -0
  72. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +96 -0
  73. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +64 -0
  74. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +80 -0
  75. package/_dist/components/inputs/Combobox/Combobox.d.ts +138 -0
  76. package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +83 -0
  77. package/_dist/components/inputs/FileUpload/FileUpload.d.ts +93 -0
  78. package/_dist/components/inputs/InputGroup/InputGroup.d.ts +19 -0
  79. package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +104 -0
  80. package/_dist/components/inputs/Select/Select.d.ts +122 -0
  81. package/_dist/components/inputs/Switch/Switch.d.ts +74 -0
  82. package/_dist/components/inputs/TextInput/TextInput.d.ts +139 -0
  83. package/_dist/components/inputs/Textarea/Textarea.d.ts +110 -0
  84. package/_dist/components/inputs/input-types.d.ts +1 -0
  85. package/_dist/components/inputs/input-utilities.d.ts +96 -0
  86. package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +62 -0
  87. package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +32 -0
  88. package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +23 -0
  89. package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +29 -0
  90. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +35 -0
  91. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +25 -0
  92. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +70 -0
  93. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +39 -0
  94. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +28 -0
  95. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +43 -0
  96. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +24 -0
  97. package/_dist/components/navigation/Navbar/Navbar.d.ts +60 -0
  98. package/_dist/components/navigation/SideNav/SideNav.d.ts +39 -0
  99. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +53 -0
  100. package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +50 -0
  101. package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +25 -0
  102. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +43 -0
  103. package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +33 -0
  104. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +69 -0
  105. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +89 -0
  106. package/_dist/components/navigation/navigation-types.d.ts +29 -0
  107. package/_dist/components/navigation/navigation-utilities.d.ts +90 -0
  108. package/_dist/components/notifications/Banner/Banner.d.ts +47 -0
  109. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +37 -0
  110. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +53 -0
  111. package/_dist/components/notifications/Toaster/Toast.d.ts +46 -0
  112. package/_dist/components/notifications/Toaster/Toaster.d.ts +29 -0
  113. package/_dist/components/notifications/Toaster/useToast.d.ts +10 -0
  114. package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +32 -0
  115. package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +24 -0
  116. package/_dist/components/panels/Panel/Panel.d.ts +35 -0
  117. package/_dist/components/panels/PanelList/PanelList.d.ts +28 -0
  118. package/_dist/components/panels/PanelList/PanelRow.d.ts +27 -0
  119. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +53 -0
  120. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +41 -0
  121. package/_dist/components/steppers/Stepper/Stepper.d.ts +54 -0
  122. package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +52 -0
  123. package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +28 -0
  124. package/_dist/components/steppers/VerticalStepper/vertical-stepper-sample-data.d.ts +27 -0
  125. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +28 -0
  126. package/_dist/components/tiles/Tile/Tile.d.ts +42 -0
  127. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +29 -0
  128. package/_dist/css/component-css/pds-avatar-tile-list.css +1 -1
  129. package/_dist/css/component-css/pds-avatar.css +1 -1
  130. package/_dist/css/component-css/pds-banner.css +1 -1
  131. package/_dist/css/component-css/pds-branch-diff.css +1 -0
  132. package/_dist/css/component-css/pds-breadcrumb.css +1 -0
  133. package/_dist/css/component-css/pds-button-link.css +1 -1
  134. package/_dist/css/component-css/pds-button-nav.css +1 -0
  135. package/_dist/css/component-css/pds-button.css +33 -69
  136. package/_dist/css/component-css/pds-callout.css +1 -1
  137. package/_dist/css/component-css/pds-card-heading.css +1 -0
  138. package/_dist/css/component-css/pds-card-select-group.css +1 -1
  139. package/_dist/css/component-css/pds-card.css +1 -1
  140. package/_dist/css/component-css/pds-checkbox-group.css +1 -1
  141. package/_dist/css/component-css/pds-checkbox.css +1 -1
  142. package/_dist/css/component-css/pds-clipboard-button.css +0 -0
  143. package/_dist/css/component-css/pds-close-button.css +1 -0
  144. package/_dist/css/component-css/pds-code-block-legacy.css +1 -0
  145. package/_dist/css/component-css/pds-code-block.css +1 -0
  146. package/_dist/css/component-css/pds-combobox-multiselect.css +2 -0
  147. package/_dist/css/component-css/pds-combobox.css +1 -0
  148. package/_dist/css/component-css/pds-compact-empty-state.css +1 -0
  149. package/_dist/css/component-css/pds-comparison-list.css +1 -1
  150. package/_dist/css/component-css/pds-cta-link.css +1 -1
  151. package/_dist/css/component-css/pds-cta-slice.css +1 -1
  152. package/_dist/css/component-css/pds-dashboard-nav.css +5 -0
  153. package/_dist/css/component-css/pds-dashboard-search.css +1 -0
  154. package/_dist/css/component-css/pds-dashboard-stat.css +1 -0
  155. package/_dist/css/component-css/pds-dropdown-menu.css +2 -0
  156. package/_dist/css/component-css/pds-empty-state-card.css +1 -0
  157. package/_dist/css/component-css/pds-expansion-panel-group.css +1 -1
  158. package/_dist/css/component-css/pds-expansion-panel.css +1 -1
  159. package/_dist/css/component-css/pds-file-diff.css +1 -0
  160. package/_dist/css/component-css/pds-file-upload.css +7 -0
  161. package/_dist/css/component-css/pds-flow-steps.css +1 -0
  162. package/_dist/css/component-css/pds-footer-heading.css +1 -1
  163. package/_dist/css/component-css/pds-footer-links.css +1 -1
  164. package/_dist/css/component-css/pds-horizontal-empty-state.css +1 -0
  165. package/_dist/css/component-css/pds-icon-button.css +13 -5
  166. package/_dist/css/component-css/pds-icon-story-only.css +1 -1
  167. package/_dist/css/component-css/pds-index.css +83 -118
  168. package/_dist/css/component-css/pds-indicator-badge.css +15 -21
  169. package/_dist/css/component-css/pds-inline-message.css +1 -0
  170. package/_dist/css/component-css/pds-input-group.css +1 -1
  171. package/_dist/css/component-css/pds-input-utilities.css +1 -0
  172. package/_dist/css/component-css/pds-link-new-window.css +1 -0
  173. package/_dist/css/component-css/pds-links-card.css +1 -1
  174. package/_dist/css/component-css/pds-menu-button.css +2 -2
  175. package/_dist/css/component-css/pds-modal.css +1 -1
  176. package/_dist/css/component-css/pds-nav-menu.css +5 -1
  177. package/_dist/css/component-css/pds-navbar.css +1 -5
  178. package/_dist/css/component-css/pds-new-site-card.css +1 -1
  179. package/_dist/css/component-css/pds-pagination.css +1 -0
  180. package/_dist/css/component-css/pds-panel-list.css +1 -0
  181. package/_dist/css/component-css/pds-panel.css +1 -1
  182. package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
  183. package/_dist/css/component-css/pds-payment-card.css +1 -0
  184. package/_dist/css/component-css/pds-payment-icon.css +1 -0
  185. package/_dist/css/component-css/pds-picture.css +1 -0
  186. package/_dist/css/component-css/pds-popover.css +1 -1
  187. package/_dist/css/component-css/pds-pricing-card.css +1 -1
  188. package/_dist/css/component-css/pds-progress-bar.css +1 -1
  189. package/_dist/css/component-css/pds-progress-ring.css +1 -1
  190. package/_dist/css/component-css/pds-pull-quote.css +1 -1
  191. package/_dist/css/component-css/pds-radio-group.css +1 -1
  192. package/_dist/css/component-css/pds-refresh-checker.css +1 -0
  193. package/_dist/css/component-css/pds-section-message.css +1 -1
  194. package/_dist/css/component-css/pds-segmented-button.css +1 -0
  195. package/_dist/css/component-css/pds-select.css +1 -4
  196. package/_dist/css/component-css/pds-side-nav-compact.css +1 -0
  197. package/_dist/css/component-css/pds-side-nav-global.css +5 -0
  198. package/_dist/css/component-css/pds-side-nav.css +2 -1
  199. package/_dist/css/component-css/pds-site-card.css +1 -1
  200. package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -0
  201. package/_dist/css/component-css/pds-site-footer.css +1 -1
  202. package/_dist/css/component-css/pds-skeleton.css +1 -0
  203. package/_dist/css/component-css/pds-skiplink.css +1 -0
  204. package/_dist/css/component-css/pds-social-links.css +1 -1
  205. package/_dist/css/component-css/pds-spinner.css +1 -1
  206. package/_dist/css/component-css/pds-split-button.css +1 -1
  207. package/_dist/css/component-css/pds-status-badge.css +1 -9
  208. package/_dist/css/component-css/pds-status-indicator.css +1 -1
  209. package/_dist/css/component-css/pds-stepper.css +1 -1
  210. package/_dist/css/component-css/pds-switch.css +1 -0
  211. package/_dist/css/component-css/pds-tab-menu.css +2 -0
  212. package/_dist/css/component-css/pds-table-of-contents.css +1 -1
  213. package/_dist/css/component-css/pds-table.css +1 -1
  214. package/_dist/css/component-css/pds-tabs.css +1 -1
  215. package/_dist/css/component-css/pds-tag.css +1 -1
  216. package/_dist/css/component-css/pds-tally.css +1 -0
  217. package/_dist/css/component-css/pds-text-input.css +1 -0
  218. package/_dist/css/component-css/pds-textarea.css +1 -1
  219. package/_dist/css/component-css/pds-theme-switcher.css +1 -0
  220. package/_dist/css/component-css/pds-tile.css +1 -1
  221. package/_dist/css/component-css/pds-tiles-common.css +1 -1
  222. package/_dist/css/component-css/pds-toaster.css +1 -1
  223. package/_dist/css/component-css/pds-tooltip.css +1 -1
  224. package/_dist/css/component-css/pds-user-menu-story-only.css +1 -0
  225. package/_dist/css/component-css/pds-user-menu.css +1 -0
  226. package/_dist/css/component-css/pds-utility-button.css +1 -0
  227. package/_dist/css/component-css/pds-vertical-empty-state.css +1 -0
  228. package/_dist/css/component-css/pds-vertical-stepper.css +1 -0
  229. package/_dist/css/component-css/pds-video-embed.css +1 -0
  230. package/_dist/css/component-css/pds-workspace-selector.css +1 -1
  231. package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +219 -0
  232. package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +328 -0
  233. package/_dist/css/design-tokens/pds-design-tokens.css +130 -0
  234. package/_dist/css/pds-components.css +83 -118
  235. package/_dist/css/pds-core.css +4 -4
  236. package/_dist/css/pds-layouts.css +9 -1
  237. package/_dist/index.css +1 -0
  238. package/_dist/index.d.ts +124 -0
  239. package/_dist/index.js +12518 -0
  240. package/_dist/index.js.map +1 -0
  241. package/_dist/layouts/AppLayout/AppLayout.d.ts +73 -0
  242. package/_dist/layouts/Container/Container.d.ts +25 -0
  243. package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +57 -0
  244. package/_dist/layouts/DashboardInner/DashboardInner.d.ts +29 -0
  245. package/_dist/layouts/DocsLayout/DocsLayout.d.ts +30 -0
  246. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +72 -0
  247. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
  248. package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +36 -0
  249. package/_dist/layouts/StepperLayout/StepperLayout.d.ts +20 -0
  250. package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +30 -0
  251. package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +34 -0
  252. package/_dist/layouts/layout-types.d.ts +2 -0
  253. package/_dist/libs/components/sb-docs-toc-layout.d.ts +4 -0
  254. package/_dist/libs/components/utility-components.d.ts +15 -0
  255. package/_dist/libs/components/utils.d.ts +7 -0
  256. package/_dist/libs/types/custom-types.d.ts +107 -0
  257. package/_dist/mocks/data/navigation-items.d.ts +367 -0
  258. package/_dist/mocks/data/pagination-items.d.ts +16 -0
  259. package/_dist/mocks/markup/dashboard-main-content.d.ts +10 -0
  260. package/_dist/mocks/markup/dashboard-navigation.d.ts +11 -0
  261. package/_dist/mocks/markup/inputs.d.ts +2 -0
  262. package/_dist/mocks/markup/modal.d.ts +2 -0
  263. package/_dist/mocks/markup/panel-row-content.d.ts +16 -0
  264. package/_dist/utilities/color/color-preview-swatches.d.ts +13 -0
  265. package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
  266. package/_dist/utilities/hooks/useClipboard.d.ts +6 -0
  267. package/_dist/utilities/hooks/useKeyPress.d.ts +1 -0
  268. package/_dist/utilities/hooks/useWindowWidth.d.ts +1 -0
  269. package/_dist/vars/animation.d.ts +5 -0
  270. package/_dist/vars/spacing.d.ts +36 -0
  271. package/_dist/vars/type-scale.d.ts +28 -0
  272. package/_dist/vars/z-index.d.ts +16 -0
  273. package/package.json +83 -44
  274. package/_dist/cjs/index.js +0 -93
  275. package/_dist/cjs/index.js.map +0 -1
  276. package/_dist/css/component-css/pds-animated-button.css +0 -7
  277. package/_dist/css/component-css/pds-breadcrumbs.css +0 -1
  278. package/_dist/css/component-css/pds-heading.css +0 -1
  279. package/_dist/css/component-css/pds-inputs-common.css +0 -1
  280. package/_dist/css/component-css/pds-pager.css +0 -1
  281. package/_dist/css/component-css/pds-stats-tile-list.css +0 -1
  282. package/_dist/css/component-css/pds-toast.css +0 -1
  283. package/_dist/css/component-css/pds-toggle-button.css +0 -1
  284. package/_dist/css/component-css/pds-toggle-switch.css +0 -3
  285. package/_dist/esm/index.js +0 -93
  286. package/_dist/esm/index.js.map +0 -1
@@ -0,0 +1,38 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import './tally.css';
3
+ interface TypeLabels {
4
+ info?: string;
5
+ success?: string;
6
+ neutral?: string;
7
+ warning?: string;
8
+ critical?: string;
9
+ }
10
+ /**
11
+ * Prop types for Tally
12
+ */
13
+ export interface TallyProps extends ComponentPropsWithoutRef<'div'> {
14
+ /**
15
+ * Label text
16
+ */
17
+ label: string | number;
18
+ /**
19
+ * Notification type
20
+ */
21
+ type: 'neutral' | 'critical' | 'warning' | 'info' | 'success';
22
+ /**
23
+ * Message type labels.
24
+ */
25
+ typeLabels?: TypeLabels;
26
+ /**
27
+ * Additional class names
28
+ */
29
+ className?: string;
30
+ }
31
+ /**
32
+ * Tally UI component
33
+ */
34
+ export declare const Tally: {
35
+ ({ label, type, typeLabels, className, ...props }: TallyProps): React.JSX.Element;
36
+ displayName: string;
37
+ };
38
+ export {};
@@ -0,0 +1,66 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode, MouseEvent } from 'react';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
+ import './button.css';
4
+ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
5
+ /**
6
+ * Aria-label attribute.
7
+ */
8
+ ariaLabel?: string;
9
+ /**
10
+ * Type of button
11
+ */
12
+ buttonType?: 'button' | 'submit' | 'reset';
13
+ /**
14
+ * Is the button disabled?
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * How the button is displayed.
19
+ */
20
+ displayType?: 'label-only' | 'icon-start' | 'icon-end';
21
+ /**
22
+ * Which icon to render
23
+ */
24
+ iconName?: PDSIcon;
25
+ /**
26
+ * is the button full width?
27
+ */
28
+ isFullWidth?: boolean;
29
+ /**
30
+ * Is the button in a loading state?
31
+ */
32
+ isLoading?: boolean;
33
+ /**
34
+ * Will this be used for a split button?
35
+ */
36
+ isSplitButton?: boolean;
37
+ /**
38
+ * The text of the button
39
+ */
40
+ label: ReactNode;
41
+ /**
42
+ * Click event handler callback
43
+ */
44
+ onClick?: (e: MouseEvent<HTMLElement>) => void;
45
+ /**
46
+ * Which size of button to render
47
+ */
48
+ size?: 'sm' | 'md' | 'lg';
49
+ /**
50
+ * Text for an optional tooltip to be displayed when the button is `disabled` or `isLoading`.
51
+ */
52
+ tooltipText?: string;
53
+ /**
54
+ * Which variant of button to render
55
+ */
56
+ variant?: 'primary' | 'secondary' | 'subtle' | 'brand' | 'brand-secondary' | 'critical' | 'critical-secondary' | 'navbar' | 'inline';
57
+ /**
58
+ * Additional class names
59
+ */
60
+ className?: string;
61
+ }
62
+ /**
63
+ * A Component used to render a Button
64
+ */
65
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
66
+ export {};
@@ -0,0 +1,48 @@
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';
4
+ import '../Button/button.css';
5
+ import './button-link.css';
6
+ type ButtonLinkVariant = Exclude<ButtonVariant, 'navbar' | 'inline'>;
7
+ /**
8
+ * Prop types for ButtonLink
9
+ */
10
+ export interface ButtonLinkProps extends ComponentPropsWithoutRef<'span'> {
11
+ /**
12
+ * Is the link disabled?
13
+ */
14
+ disabled?: boolean;
15
+ /**
16
+ * Display type of the button.
17
+ */
18
+ displayType?: ButtonDisplayType;
19
+ /**
20
+ * Icon to render in the button. Only necessary if `displayType` is 'icon-start' or 'icon-end'.
21
+ */
22
+ iconName?: PDSIcon;
23
+ /**
24
+ * A link element using the router of your choice.
25
+ */
26
+ linkContent: ReactNode;
27
+ /**
28
+ * Size of the button.
29
+ */
30
+ size?: ButtonSize;
31
+ /**
32
+ * Text for an optional tooltip to be displayed when the button is `disabled`.
33
+ */
34
+ tooltipText?: string;
35
+ /**
36
+ * Variant of the button.
37
+ */
38
+ variant?: ButtonLinkVariant;
39
+ /**
40
+ * Additional class names
41
+ */
42
+ className?: string;
43
+ }
44
+ /**
45
+ * ButtonLink UI component
46
+ */
47
+ export declare const ButtonLink: ({ disabled, displayType, iconName, linkContent, size, tooltipText, variant, className, ...props }: ButtonLinkProps) => React.JSX.Element;
48
+ export {};
@@ -0,0 +1,31 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import './clipboard-button.css';
3
+ /**
4
+ * Prop types for ClipboardButton
5
+ */
6
+ export interface ClipboardButtonProps extends ComponentPropsWithoutRef<'button'> {
7
+ /**
8
+ * Translation string for aria-label attribute and tooltip text.
9
+ */
10
+ ariaLabel: string;
11
+ /**
12
+ * Text to copy to clipboard.
13
+ */
14
+ clipboardText?: string;
15
+ /**
16
+ * Is the button disabled?
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Which variant of button to render.
21
+ */
22
+ variant?: 'standard' | 'reverse';
23
+ /**
24
+ * Additional class names
25
+ */
26
+ className?: string;
27
+ }
28
+ /**
29
+ * ClipboardButton UI component
30
+ */
31
+ export declare const ClipboardButton: ({ ariaLabel, clipboardText, disabled, variant, className, ...props }: ClipboardButtonProps) => React.JSX.Element;
@@ -0,0 +1,27 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import './close-button.css';
3
+ /**
4
+ * Prop types for CloseButton
5
+ */
6
+ export interface CloseButtonProps extends ComponentPropsWithoutRef<'button'> {
7
+ /**
8
+ * Aria-label attribute.
9
+ */
10
+ ariaLabel?: string;
11
+ /**
12
+ * Size of the icon.
13
+ */
14
+ iconSize?: 'md' | 'lg' | 'xl';
15
+ /**
16
+ * Click event callback function.
17
+ */
18
+ onClick?: () => void;
19
+ /**
20
+ * Additional class names.
21
+ */
22
+ className?: string;
23
+ }
24
+ /**
25
+ * CloseButton UI component
26
+ */
27
+ export declare const CloseButton: ({ ariaLabel, iconSize, onClick, className, ...props }: CloseButtonProps) => React.JSX.Element;
@@ -0,0 +1,50 @@
1
+ import React, { ComponentPropsWithoutRef, MouseEvent } from 'react';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
+ import './icon-button.css';
4
+ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
5
+ /**
6
+ * Aria-label attribute.
7
+ */
8
+ ariaLabel: string;
9
+ /**
10
+ * Type of button
11
+ */
12
+ buttonType?: 'button' | 'submit' | 'reset';
13
+ /**
14
+ * Is the button disabled?
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * Show tooltip on hover. If false, the title attribute will be used.
19
+ */
20
+ hasTooltip?: boolean;
21
+ /**
22
+ * Which icon to render.
23
+ */
24
+ iconName: PDSIcon;
25
+ /**
26
+ * Which icon to render second. If this is set, the button will be animated.
27
+ */
28
+ icon2Name?: PDSIcon;
29
+ /**
30
+ * Click event handler callback.
31
+ */
32
+ onClick?: (e: MouseEvent<HTMLElement>) => void;
33
+ /**
34
+ * Which size of button to render.
35
+ */
36
+ size?: 'sm' | 'md' | 'lg';
37
+ /**
38
+ * Which variant of button to render.
39
+ */
40
+ variant?: 'standard' | 'reverse' | 'critical' | 'critical-hover';
41
+ /**
42
+ * Additional class names.
43
+ */
44
+ className?: string;
45
+ }
46
+ /**
47
+ * IconButton UI component
48
+ */
49
+ export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
50
+ export {};
@@ -0,0 +1,75 @@
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';
4
+ import './menu-button.css';
5
+ /**
6
+ * Prop types for MenuButton
7
+ */
8
+ export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
9
+ /**
10
+ * Is the button disabled?
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * How the button is displayed.
15
+ */
16
+ displayType?: 'icon-end' | 'icon-only';
17
+ /**
18
+ * Icon name for icon-only buttons.
19
+ */
20
+ iconName?: PDSIcon;
21
+ /**
22
+ * ID value for this component.
23
+ */
24
+ id: string;
25
+ /**
26
+ * Will this be used for a split button?
27
+ */
28
+ isSplitButton?: boolean;
29
+ /**
30
+ * The text of the button
31
+ */
32
+ label: ReactNode;
33
+ /**
34
+ * Array of menu items
35
+ */
36
+ menuItems: Array<HeadingItemType | LinkItemType | MenuItemType | NodeItemType | SeparatorItemType>;
37
+ /**
38
+ * Horizontal position of the menu relative to the button. Applies to breakpoints `md` and up.
39
+ */
40
+ menuPosition?: 'start' | 'end';
41
+ /**
42
+ * Optional callback function for when the button is clicked or activated by the keyboard.
43
+ */
44
+ onClick?: () => void;
45
+ /**
46
+ * Which size of button to render.
47
+ */
48
+ size?: 'sm' | 'md';
49
+ /**
50
+ * Optional `data-testid` value for this component.
51
+ */
52
+ testId?: string;
53
+ /**
54
+ * Translatable string for description of unlabeled group of menu items.
55
+ */
56
+ undefinedLabel?: string;
57
+ /**
58
+ * Which variant of button to render — only valid for icon-end (default) display type.
59
+ */
60
+ variant?: 'primary' | 'secondary' | 'navbar';
61
+ /**
62
+ * Is this button located with the Navbar component?
63
+ * This will adjust the styling and position of the dropdown.
64
+ * Omit this prop for the Dashboard application. It only applies to the standard Navbar component with a bottom border.
65
+ */
66
+ withinNavbar?: boolean;
67
+ /**
68
+ * Additional class names
69
+ */
70
+ className?: string;
71
+ }
72
+ /**
73
+ * MenuButton UI component - Modernized with Floating UI
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;
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
+ import './segmented-button.css';
4
+ /**
5
+ * Structure for each option in the SegmentedButton component.
6
+ */
7
+ interface OptionType {
8
+ id?: string;
9
+ value: string;
10
+ label: string;
11
+ disabled?: boolean;
12
+ iconName?: PDSIcon;
13
+ tally?: {
14
+ label: string | number;
15
+ type: 'neutral' | 'critical' | 'warning' | 'info' | 'success';
16
+ };
17
+ }
18
+ /**
19
+ * Prop types for SegmentedButton
20
+ */
21
+ export interface SegmentedButtonProps {
22
+ /**
23
+ * Is the SegmentedButton disabled?
24
+ */
25
+ disabled?: boolean;
26
+ /**
27
+ * Unique ID for the SegmentedButton.
28
+ */
29
+ id: string;
30
+ /**
31
+ * Optional initial selected option value.
32
+ */
33
+ defaultValue?: string;
34
+ /**
35
+ * Label for the SegmentedButton — visually hidden, used for screen readers only.
36
+ */
37
+ label: string;
38
+ /**
39
+ * Callback function that will return the updated value from the instance when it changes.
40
+ */
41
+ onChange?: (value: string) => void;
42
+ /**
43
+ * Array of button options — must be between 2 and 6 options.
44
+ */
45
+ options: OptionType[];
46
+ /**
47
+ * Size of the SegmentedButton.
48
+ */
49
+ size?: 'sm' | 'md';
50
+ /**
51
+ * 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
+ */
53
+ value?: string;
54
+ /**
55
+ * Additional class names
56
+ */
57
+ className?: string;
58
+ }
59
+ /**
60
+ * SegmentedButton UI component
61
+ */
62
+ export declare const SegmentedButton: ({ disabled, id, defaultValue, label, onChange, options, size, value, className, ...props }: SegmentedButtonProps) => React.JSX.Element;
63
+ export {};
@@ -0,0 +1,41 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { LinkItemType, MenuItemType } from '@libs/types/custom-types';
3
+ import './split-button.css';
4
+ /**
5
+ * Prop types for SplitButton
6
+ */
7
+ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
8
+ /**
9
+ * Array of menu items
10
+ */
11
+ actionItems: Array<LinkItemType | MenuItemType>;
12
+ /**
13
+ * Is the button disabled?
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * ID value for this component.
18
+ */
19
+ id: string;
20
+ /**
21
+ * Label for the buttons additional actions menu.
22
+ */
23
+ moreActionsLabel?: string;
24
+ /**
25
+ * Which size of button to render
26
+ */
27
+ size?: 'sm' | 'md';
28
+ /**
29
+ * Which variant of button to render
30
+ */
31
+ variant?: 'primary' | 'secondary';
32
+ /**
33
+ * Additional class names
34
+ */
35
+ className?: string;
36
+ }
37
+ /**
38
+ * A component used to render a button with a primary action and a menu of additional options
39
+ */
40
+ export declare const SplitButton: ({ actionItems, disabled, id, moreActionsLabel, size, variant, className, ...props }: SplitButtonProps) => React.JSX.Element;
41
+ export {};
@@ -0,0 +1,17 @@
1
+ export const dialogMsgBase: "Activated action => ";
2
+ export const sampleActionItems: {
3
+ label: string;
4
+ callback: (item: any) => void;
5
+ }[];
6
+ export const linkActionItems: ({
7
+ linkContent: React.JSX.Element;
8
+ isLink: boolean;
9
+ label?: undefined;
10
+ callback?: undefined;
11
+ } | {
12
+ label: string;
13
+ callback: (item: any) => void;
14
+ linkContent?: undefined;
15
+ isLink?: undefined;
16
+ })[];
17
+ import React from 'react';
@@ -0,0 +1,56 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
+ import './utility-button.css';
4
+ /**
5
+ * Prop types for UtilityButton
6
+ */
7
+ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional props for the button element.
10
+ */
11
+ buttonProps?: ComponentPropsWithoutRef<'button'>;
12
+ /**
13
+ * Is the button disabled?
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * Which icon to render.
18
+ */
19
+ iconName?: PDSIcon;
20
+ /**
21
+ * Is the button critical? If true, the button will be styled as critical on hover and focus.
22
+ */
23
+ isCritical?: boolean;
24
+ /**
25
+ * Is the button in the process of an initial load?
26
+ */
27
+ isLoading?: boolean;
28
+ /**
29
+ * Is the button in the process of performing a task and should be disabled?
30
+ */
31
+ isWorking?: boolean;
32
+ /**
33
+ * Should the button label use the monospace font?
34
+ */
35
+ isMonospace?: boolean;
36
+ /**
37
+ * The text of the button.
38
+ */
39
+ label: string;
40
+ /**
41
+ * Click event handler callback.
42
+ */
43
+ onClick?: () => void;
44
+ /**
45
+ * Tooltip text.
46
+ */
47
+ tooltipText?: string;
48
+ /**
49
+ * Additional class names
50
+ */
51
+ className?: string;
52
+ }
53
+ /**
54
+ * UtilityButton UI component
55
+ */
56
+ export declare const UtilityButton: ({ buttonProps, disabled, iconName, isCritical, isLoading, isWorking, isMonospace, label, onClick, tooltipText, className, ...props }: UtilityButtonProps) => React.JSX.Element;
@@ -0,0 +1,29 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { GridGapOptions } from '@layouts/layout-types';
3
+ import './card.css';
4
+ export type CardBackground = 'default' | 'mint-gradient' | 'sundown-gradient' | 'yellow-gradient' | 'transparent';
5
+ /**
6
+ * Prop types for Card
7
+ */
8
+ export interface CardProps extends ComponentPropsWithoutRef<'div'> {
9
+ /**
10
+ * Background color or gradient for the card.
11
+ */
12
+ background?: CardBackground;
13
+ /**
14
+ * Child elements to be assigned to named slots.
15
+ */
16
+ children: ReactNode;
17
+ /**
18
+ * Relative padding for the `main` slot.
19
+ */
20
+ padding?: GridGapOptions;
21
+ /**
22
+ * Additional class names
23
+ */
24
+ className?: string;
25
+ }
26
+ /**
27
+ * Card UI component
28
+ */
29
+ export declare const Card: ({ background, children, padding, className, ...props }: CardProps) => React.JSX.Element;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { HeadingLevelCommon } from '@libs/types/custom-types';
3
+ import './card-heading.css';
4
+ /**
5
+ * Prop types for CardHeading
6
+ */
7
+ export interface CardHeadingProps {
8
+ /**
9
+ * Font size of the heading. Default is `XL`.
10
+ */
11
+ fontSize?: 'L' | 'XL';
12
+ /**
13
+ * Font weight of the heading. Default is `bold`.
14
+ */
15
+ fontWeight?: 'bold' | 'semibold';
16
+ /**
17
+ * Heading level or `span`.
18
+ */
19
+ level?: HeadingLevelCommon;
20
+ /**
21
+ * Heading text.
22
+ */
23
+ text?: string;
24
+ /**
25
+ * Additional class names
26
+ */
27
+ className?: string;
28
+ }
29
+ /**
30
+ * CardHeading UI component
31
+ */
32
+ export declare const CardHeading: ({ fontSize, fontWeight, level, text, className, ...props }: CardHeadingProps) => React.JSX.Element;
@@ -0,0 +1,60 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './card-select-group.css';
3
+ export interface CardOption {
4
+ /**
5
+ * Unique ID for the option
6
+ * @default ''
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Option label
11
+ */
12
+ label: string | ReactNode;
13
+ /**
14
+ * Option description
15
+ */
16
+ description?: string | ReactNode;
17
+ /**
18
+ * Option value
19
+ */
20
+ value: string;
21
+ }
22
+ export interface CardSelectGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> {
23
+ /**
24
+ * Optional initial selected option value
25
+ */
26
+ defaultValue?: string;
27
+ /**
28
+ * Unique ID for the card select group
29
+ */
30
+ id: string;
31
+ /**
32
+ * Label for the card select group
33
+ */
34
+ label: string;
35
+ /**
36
+ * Display of the component label. `hidden` visually hides the label but keeps it accessible to screen readers.
37
+ */
38
+ labelDisplay?: 'left' | 'center' | 'hidden';
39
+ /**
40
+ * Column layout of the cards at breakpoints medium and above.
41
+ */
42
+ layout?: 'auto' | 'twoAcross' | 'threeAcross';
43
+ /**
44
+ * Callback function that will return the updated value from the instance when it changes.
45
+ * Function should have the shape of: `(value) => { <do stuff here> } `.
46
+ */
47
+ onChange?: (value: string) => void;
48
+ /**
49
+ * Array of card options
50
+ */
51
+ options?: CardOption[];
52
+ /**
53
+ * Additional class names
54
+ */
55
+ className?: string;
56
+ }
57
+ /**
58
+ * CardSelectGroup UI component
59
+ */
60
+ export declare const CardSelectGroup: ({ id, defaultValue, label, labelDisplay, layout, onChange, options, className, ...props }: CardSelectGroupProps) => React.JSX.Element;
@@ -0,0 +1,36 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { HeadingLevelCommon } from '@libs/types/custom-types';
3
+ import './empty-state-card.css';
4
+ /**
5
+ * Prop types for EmptyStateCard
6
+ */
7
+ export interface EmptyStateCardProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Heading level or `span`.
10
+ */
11
+ headingLevel?: HeadingLevelCommon;
12
+ /**
13
+ * Heading text.
14
+ */
15
+ headingText: string;
16
+ /**
17
+ * Whether the link is external or not.
18
+ */
19
+ isLinkExternal?: boolean;
20
+ /**
21
+ * A link element using the router of your choice.
22
+ */
23
+ linkContent: ReactNode;
24
+ /**
25
+ * Summary paragraph.
26
+ */
27
+ summary: string;
28
+ /**
29
+ * Additional class names
30
+ */
31
+ className?: string;
32
+ }
33
+ /**
34
+ * EmptyStateCard UI component
35
+ */
36
+ export declare const EmptyStateCard: ({ headingLevel, headingText, isLinkExternal, linkContent, summary, className, ...props }: EmptyStateCardProps) => React.JSX.Element;