@pantheon-systems/pds-toolkit-react 2.0.0-alpha.0 → 2.0.0-alpha.10

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 (331) hide show
  1. package/README.md +3 -3
  2. package/dist/components/Avatar/Avatar.d.ts +1 -1
  3. package/dist/components/ComparisonList/ComparisonList.d.ts +5 -1
  4. package/dist/components/Drawer/Drawer.d.ts +58 -0
  5. package/dist/components/Modal/Modal.d.ts +1 -1
  6. package/dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +1 -1
  7. package/dist/components/StatusIndicator/StatusIndicator.d.ts +2 -2
  8. package/dist/components/Table/Table.d.ts +1 -1
  9. package/dist/components/badges/Badge/Badge.d.ts +28 -0
  10. package/dist/components/buttons/CloseButton/CloseButton.d.ts +6 -6
  11. package/dist/components/cards/Card/Card.d.ts +1 -1
  12. package/dist/components/cards/NewSiteCard/NewSiteCard.d.ts +1 -1
  13. package/dist/components/cards/PricingCard/PricingCard.d.ts +6 -1
  14. package/dist/components/footer/SiteFooter/SiteFooter.d.ts +5 -1
  15. package/dist/components/icons/Icon/Icon.d.ts +10 -730
  16. package/dist/components/icons/Icon/IconSearch.d.ts +1 -0
  17. package/dist/components/icons/Icon/custom-icons.d.ts +46 -0
  18. package/dist/components/icons/Icon/generated-icon-data.d.ts +1429 -0
  19. package/dist/components/icons/Icon/icon-registry.d.ts +34 -0
  20. package/dist/components/inputs/Checkbox/Checkbox.d.ts +2 -2
  21. package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +27 -5
  22. package/dist/components/inputs/Select/Select.d.ts +5 -1
  23. package/dist/components/inputs/Select/select-sample-data.d.ts +1 -0
  24. package/dist/components/inputs/TagsInput/TagsInput.d.ts +100 -0
  25. package/dist/components/inputs/TextInput/TextInput.d.ts +4 -0
  26. package/dist/components/inputs/Textarea/Textarea.d.ts +4 -0
  27. package/dist/components/inputs/input-utilities.d.ts +3 -3
  28. package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +6 -7
  29. package/dist/components/notifications/Banner/Banner.d.ts +32 -12
  30. package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +6 -2
  31. package/dist/components/notifications/Toaster/Toast.d.ts +1 -1
  32. package/dist/components/notifications/Toaster/Toaster.d.ts +2 -2
  33. package/dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +5 -1
  34. package/dist/components/panels/Panel/Panel.d.ts +1 -18
  35. package/dist/css/component-css/pds-avatar.css +1 -1
  36. package/dist/css/component-css/pds-badge.css +1 -0
  37. package/dist/css/component-css/pds-banner.css +1 -1
  38. package/dist/css/component-css/pds-breadcrumb.css +1 -1
  39. package/dist/css/component-css/pds-button-link.css +1 -1
  40. package/dist/css/component-css/pds-button-nav.css +1 -1
  41. package/dist/css/component-css/pds-button.css +9 -3
  42. package/dist/css/component-css/pds-callout.css +1 -1
  43. package/dist/css/component-css/pds-card-select-group.css +1 -1
  44. package/dist/css/component-css/pds-card.css +1 -1
  45. package/dist/css/component-css/pds-checkbox.css +1 -1
  46. package/dist/css/component-css/pds-close-button.css +1 -1
  47. package/dist/css/component-css/pds-combobox-multiselect.css +2 -2
  48. package/dist/css/component-css/pds-compact-empty-state.css +1 -1
  49. package/dist/css/component-css/pds-comparison-list.css +1 -1
  50. package/dist/css/component-css/pds-cta-link.css +1 -1
  51. package/dist/css/component-css/pds-dashboard-nav.css +2 -2
  52. package/dist/css/component-css/pds-datepicker.css +1 -1
  53. package/dist/css/component-css/pds-drawer.css +1 -0
  54. package/dist/css/component-css/pds-expansion-panel.css +1 -1
  55. package/dist/css/component-css/pds-file-upload.css +2 -2
  56. package/dist/css/component-css/pds-flow-steps.css +1 -1
  57. package/dist/css/component-css/pds-footer-links.css +1 -1
  58. package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
  59. package/dist/css/component-css/pds-icon-button.css +4 -4
  60. package/dist/css/component-css/pds-icon-story-only.css +1 -1
  61. package/dist/css/component-css/pds-icon.css +1 -0
  62. package/dist/css/component-css/pds-index.css +29 -45
  63. package/dist/css/component-css/pds-inline-message.css +1 -1
  64. package/dist/css/component-css/pds-input-utilities.css +1 -1
  65. package/dist/css/component-css/pds-menu-button.css +1 -1
  66. package/dist/css/component-css/pds-modal.css +1 -1
  67. package/dist/css/component-css/pds-pagination.css +1 -1
  68. package/dist/css/component-css/pds-panel.css +1 -1
  69. package/dist/css/component-css/pds-pantheon-logo.css +1 -1
  70. package/dist/css/component-css/pds-pricing-card.css +1 -1
  71. package/dist/css/component-css/pds-progress-bar.css +1 -1
  72. package/dist/css/component-css/pds-pull-quote.css +1 -1
  73. package/dist/css/component-css/pds-radio-group.css +1 -1
  74. package/dist/css/component-css/pds-refresh-checker.css +1 -1
  75. package/dist/css/component-css/pds-section-message.css +1 -1
  76. package/dist/css/component-css/pds-segmented-button.css +1 -1
  77. package/dist/css/component-css/pds-select.css +1 -1
  78. package/dist/css/component-css/pds-side-nav-compact.css +1 -1
  79. package/dist/css/component-css/pds-side-nav-global.css +7 -5
  80. package/dist/css/component-css/pds-side-nav.css +1 -1
  81. package/dist/css/component-css/pds-site-footer.css +1 -1
  82. package/dist/css/component-css/pds-skiplink.css +1 -1
  83. package/dist/css/component-css/pds-spinner.css +1 -1
  84. package/dist/css/component-css/pds-sso-button.css +1 -1
  85. package/dist/css/component-css/pds-status-badge.css +1 -1
  86. package/dist/css/component-css/pds-status-indicator.css +1 -1
  87. package/dist/css/component-css/pds-stepper.css +1 -1
  88. package/dist/css/component-css/pds-tab-menu.css +1 -1
  89. package/dist/css/component-css/pds-table-of-contents.css +1 -1
  90. package/dist/css/component-css/pds-tabs.css +1 -1
  91. package/dist/css/component-css/pds-tag.css +1 -1
  92. package/dist/css/component-css/pds-tags-input.css +1 -0
  93. package/dist/css/component-css/pds-text-input.css +1 -1
  94. package/dist/css/component-css/pds-textarea.css +1 -1
  95. package/dist/css/component-css/pds-toaster.css +1 -1
  96. package/dist/css/component-css/pds-tooltip.css +1 -1
  97. package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
  98. package/dist/css/component-css/pds-workspace-selector.css +1 -1
  99. package/dist/css/design-tokens/fonts.css +1 -1
  100. package/dist/css/design-tokens/variables.dark.css +155 -28
  101. package/dist/css/design-tokens/variables.global.css +4 -3
  102. package/dist/css/design-tokens/variables.light.css +130 -25
  103. package/dist/css/design-tokens/variables.typography.css +8 -5
  104. package/dist/css/layout-css/pds-app-layout.css +2 -0
  105. package/dist/css/layout-css/pds-dashboard-global.css +8 -0
  106. package/dist/css/layout-css/pds-dashboard-inner.css +1 -0
  107. package/dist/css/layout-css/pds-docs-layout.css +1 -0
  108. package/dist/css/layout-css/pds-flex-container.css +1 -0
  109. package/dist/css/layout-css/pds-index.css +9 -0
  110. package/dist/css/layout-css/pds-stepper-layout.css +1 -0
  111. package/dist/css/layout-css/pds-three-item-layout.css +1 -0
  112. package/dist/css/layout-css/pds-two-item-layout.css +1 -0
  113. package/dist/css/pds-components.css +29 -45
  114. package/dist/css/pds-core.css +2 -2
  115. package/dist/css/pds-layouts.css +2 -2
  116. package/dist/index.css +1 -1
  117. package/dist/index.d.ts +32 -0
  118. package/dist/index.js +5436 -1673
  119. package/dist/index.js.map +1 -1
  120. package/dist/index.source.d.ts +3 -1
  121. package/dist/layouts/AppLayout/AppLayout.d.ts +11 -6
  122. package/dist/libs/types/custom-types.d.ts +2 -2
  123. package/dist/svg/angleDown.svg +3 -0
  124. package/dist/svg/angleLeft.svg +3 -0
  125. package/dist/svg/angleRight.svg +3 -0
  126. package/dist/svg/angleUp.svg +3 -0
  127. package/dist/svg/anglesLeft.svg +3 -0
  128. package/dist/svg/anglesRight.svg +3 -0
  129. package/dist/svg/arrowDownToLine.svg +3 -0
  130. package/dist/svg/arrowLeft.svg +3 -0
  131. package/dist/svg/arrowRight.svg +3 -0
  132. package/dist/svg/arrowsRetweet.svg +3 -0
  133. package/dist/svg/asterisk.svg +3 -0
  134. package/dist/svg/banBug.svg +3 -0
  135. package/dist/svg/bars.svg +3 -0
  136. package/dist/svg/barsFilter.svg +3 -0
  137. package/dist/svg/bell.svg +3 -0
  138. package/dist/svg/billboard.svg +3 -0
  139. package/dist/svg/bitbucket.svg +3 -0
  140. package/dist/svg/bluesky.svg +3 -0
  141. package/dist/svg/bolt.svg +3 -0
  142. package/dist/svg/boltPantheon.svg +3 -0
  143. package/dist/svg/boltSolid.svg +3 -0
  144. package/dist/svg/book.svg +3 -0
  145. package/dist/svg/books.svg +3 -0
  146. package/dist/svg/bracketRight.svg +3 -0
  147. package/dist/svg/bracketsSquare.svg +3 -0
  148. package/dist/svg/brainCircuit.svg +3 -0
  149. package/dist/svg/broomWide.svg +3 -0
  150. package/dist/svg/building.svg +3 -0
  151. package/dist/svg/buildings.svg +3 -0
  152. package/dist/svg/bullhorn.svg +3 -0
  153. package/dist/svg/calendarDays.svg +3 -0
  154. package/dist/svg/caretDown.svg +3 -0
  155. package/dist/svg/caretLeft.svg +3 -0
  156. package/dist/svg/caretRight.svg +3 -0
  157. package/dist/svg/caretUp.svg +3 -0
  158. package/dist/svg/ccAmex.svg +3 -0
  159. package/dist/svg/ccApplePay.svg +3 -0
  160. package/dist/svg/ccDiscover.svg +3 -0
  161. package/dist/svg/ccGeneric.svg +3 -0
  162. package/dist/svg/ccMC.svg +3 -0
  163. package/dist/svg/ccPaypal.svg +3 -0
  164. package/dist/svg/ccVisa.svg +3 -0
  165. package/dist/svg/chartLine.svg +3 -0
  166. package/dist/svg/chartNetwork.svg +3 -0
  167. package/dist/svg/chartSimple.svg +3 -0
  168. package/dist/svg/check.svg +3 -0
  169. package/dist/svg/circle.svg +3 -0
  170. package/dist/svg/circleCheck.svg +3 -0
  171. package/dist/svg/circleExclamation.svg +3 -0
  172. package/dist/svg/circleInfo.svg +3 -0
  173. package/dist/svg/circleMinus.svg +3 -0
  174. package/dist/svg/circleNotch.svg +3 -0
  175. package/dist/svg/circlePlus.svg +3 -0
  176. package/dist/svg/circleQuestion.svg +3 -0
  177. package/dist/svg/circleUser.svg +3 -0
  178. package/dist/svg/circleXmark.svg +3 -0
  179. package/dist/svg/cloud.svg +3 -0
  180. package/dist/svg/cloudArrowDown.svg +3 -0
  181. package/dist/svg/cloudArrowUp.svg +3 -0
  182. package/dist/svg/cloudPlus.svg +3 -0
  183. package/dist/svg/code.svg +3 -0
  184. package/dist/svg/codeBranch.svg +3 -0
  185. package/dist/svg/codeMerge.svg +3 -0
  186. package/dist/svg/command.svg +3 -0
  187. package/dist/svg/comment.svg +3 -0
  188. package/dist/svg/copy.svg +3 -0
  189. package/dist/svg/desktop.svg +3 -0
  190. package/dist/svg/diamondExclamation.svg +3 -0
  191. package/dist/svg/diamonds4.svg +3 -0
  192. package/dist/svg/discourse.svg +3 -0
  193. package/dist/svg/display.svg +3 -0
  194. package/dist/svg/dollarSign.svg +3 -0
  195. package/dist/svg/download.svg +3 -0
  196. package/dist/svg/drupal.svg +3 -0
  197. package/dist/svg/ellipsis.svg +3 -0
  198. package/dist/svg/ellipsisVertical.svg +3 -0
  199. package/dist/svg/emptySet.svg +3 -0
  200. package/dist/svg/envelope.svg +3 -0
  201. package/dist/svg/envelopeOpen.svg +3 -0
  202. package/dist/svg/exclamation.svg +3 -0
  203. package/dist/svg/expand.svg +3 -0
  204. package/dist/svg/expandFromCenter.svg +3 -0
  205. package/dist/svg/externalLink.svg +3 -0
  206. package/dist/svg/eye.svg +3 -0
  207. package/dist/svg/eyeSlash.svg +3 -0
  208. package/dist/svg/facebook.svg +3 -0
  209. package/dist/svg/file.svg +3 -0
  210. package/dist/svg/fileCSV.svg +3 -0
  211. package/dist/svg/fileCheck.svg +3 -0
  212. package/dist/svg/fileContract.svg +3 -0
  213. package/dist/svg/fileDiff.svg +3 -0
  214. package/dist/svg/fileExport.svg +3 -0
  215. package/dist/svg/fileImport.svg +3 -0
  216. package/dist/svg/fileLines.svg +3 -0
  217. package/dist/svg/filePDF.svg +3 -0
  218. package/dist/svg/fileZip.svg +3 -0
  219. package/dist/svg/folder.svg +3 -0
  220. package/dist/svg/folderTree.svg +3 -0
  221. package/dist/svg/gear.svg +3 -0
  222. package/dist/svg/gem.svg +3 -0
  223. package/dist/svg/github.svg +3 -0
  224. package/dist/svg/gitlab.svg +3 -0
  225. package/dist/svg/globe.svg +3 -0
  226. package/dist/svg/graduationCap.svg +3 -0
  227. package/dist/svg/grid.svg +3 -0
  228. package/dist/svg/gripDots.svg +3 -0
  229. package/dist/svg/gripDotsVertical.svg +3 -0
  230. package/dist/svg/heart.svg +3 -0
  231. package/dist/svg/heartSolid.svg +3 -0
  232. package/dist/svg/house.svg +3 -0
  233. package/dist/svg/idCard.svg +3 -0
  234. package/dist/svg/image.svg +3 -0
  235. package/dist/svg/inputText.svg +3 -0
  236. package/dist/svg/instagram.svg +3 -0
  237. package/dist/svg/keySkeleton.svg +3 -0
  238. package/dist/svg/laptop.svg +3 -0
  239. package/dist/svg/laptopCode.svg +3 -0
  240. package/dist/svg/leaf.svg +3 -0
  241. package/dist/svg/lifeRing.svg +3 -0
  242. package/dist/svg/linkSimple.svg +3 -0
  243. package/dist/svg/linkSimpleSlash.svg +3 -0
  244. package/dist/svg/linkedin.svg +3 -0
  245. package/dist/svg/listCheck.svg +3 -0
  246. package/dist/svg/locationCrosshairs.svg +3 -0
  247. package/dist/svg/lock.svg +3 -0
  248. package/dist/svg/lockOpen.svg +3 -0
  249. package/dist/svg/magnifyingGlass.svg +3 -0
  250. package/dist/svg/medal.svg +3 -0
  251. package/dist/svg/memo.svg +3 -0
  252. package/dist/svg/messages.svg +3 -0
  253. package/dist/svg/minus.svg +3 -0
  254. package/dist/svg/moon.svg +3 -0
  255. package/dist/svg/nextJs.svg +3 -0
  256. package/dist/svg/paperPlane.svg +3 -0
  257. package/dist/svg/paperclip.svg +3 -0
  258. package/dist/svg/pen.svg +3 -0
  259. package/dist/svg/penField.svg +3 -0
  260. package/dist/svg/phone.svg +3 -0
  261. package/dist/svg/play.svg +3 -0
  262. package/dist/svg/plus.svg +3 -0
  263. package/dist/svg/question.svg +3 -0
  264. package/dist/svg/quotesLeft.svg +3 -0
  265. package/dist/svg/quotesRight.svg +3 -0
  266. package/dist/svg/rectangleList.svg +3 -0
  267. package/dist/svg/reply.svg +3 -0
  268. package/dist/svg/robot.svg +3 -0
  269. package/dist/svg/rocketLaunch.svg +3 -0
  270. package/dist/svg/rotate.svg +3 -0
  271. package/dist/svg/rotateClock.svg +3 -0
  272. package/dist/svg/rotateLeft.svg +3 -0
  273. package/dist/svg/rotateRight.svg +3 -0
  274. package/dist/svg/rss.svg +3 -0
  275. package/dist/svg/save.svg +3 -0
  276. package/dist/svg/server.svg +3 -0
  277. package/dist/svg/shareNodes.svg +3 -0
  278. package/dist/svg/shield.svg +3 -0
  279. package/dist/svg/shieldQuartered.svg +3 -0
  280. package/dist/svg/shovel.svg +3 -0
  281. package/dist/svg/siren.svg +3 -0
  282. package/dist/svg/sirenOn.svg +3 -0
  283. package/dist/svg/sitemap.svg +3 -0
  284. package/dist/svg/slack.svg +3 -0
  285. package/dist/svg/slashForward.svg +3 -0
  286. package/dist/svg/slidersSimple.svg +3 -0
  287. package/dist/svg/snowflake.svg +3 -0
  288. package/dist/svg/sparkles.svg +3 -0
  289. package/dist/svg/squareCheck.svg +3 -0
  290. package/dist/svg/squareCode.svg +3 -0
  291. package/dist/svg/squareMinus.svg +3 -0
  292. package/dist/svg/squarePen.svg +3 -0
  293. package/dist/svg/squareQuestion.svg +3 -0
  294. package/dist/svg/squareTerminal.svg +3 -0
  295. package/dist/svg/star.svg +3 -0
  296. package/dist/svg/starSolid.svg +3 -0
  297. package/dist/svg/sun.svg +3 -0
  298. package/dist/svg/sunBright.svg +3 -0
  299. package/dist/svg/table.svg +3 -0
  300. package/dist/svg/tableRows.svg +3 -0
  301. package/dist/svg/terminal.svg +3 -0
  302. package/dist/svg/text.svg +3 -0
  303. package/dist/svg/threads.svg +3 -0
  304. package/dist/svg/thumbsDown.svg +3 -0
  305. package/dist/svg/thumbsUp.svg +3 -0
  306. package/dist/svg/trash.svg +3 -0
  307. package/dist/svg/triangleExclamation.svg +3 -0
  308. package/dist/svg/twitter.svg +3 -0
  309. package/dist/svg/upload.svg +3 -0
  310. package/dist/svg/user.svg +3 -0
  311. package/dist/svg/userAstronaut.svg +3 -0
  312. package/dist/svg/userGear.svg +3 -0
  313. package/dist/svg/userPlus.svg +3 -0
  314. package/dist/svg/users.svg +3 -0
  315. package/dist/svg/video.svg +3 -0
  316. package/dist/svg/wavePulse.svg +3 -0
  317. package/dist/svg/windowRestore.svg +3 -0
  318. package/dist/svg/wordpress.svg +3 -0
  319. package/dist/svg/wreathLaurel.svg +3 -0
  320. package/dist/svg/wrench.svg +3 -0
  321. package/dist/svg/xTwitter.svg +3 -0
  322. package/dist/svg/xmark.svg +3 -0
  323. package/dist/svg/xmarkLarge.svg +3 -0
  324. package/dist/svg/youtube.svg +3 -0
  325. package/package.json +38 -22
  326. package/tailwind/README.md +220 -0
  327. package/tailwind/TESTING.md +457 -0
  328. package/tailwind/v3/preset.cjs +258 -0
  329. package/tailwind/v4/theme.css +230 -0
  330. package/dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +0 -27
  331. package/dist/css/component-css/pds-indicator-badge.css +0 -25
package/README.md CHANGED
@@ -8,11 +8,11 @@ This toolkit provides assets for use within a React project and a Storybook inst
8
8
 
9
9
  ## Toolkit philosophy and scope
10
10
 
11
- The intent of this toolkit is to provide a React-based implementation of the Pantheon Design System (PDS) with a focus on semantics, accessibility, visual design, and user-interface design.
11
+ The toolkit provides a React implementation of the Pantheon Design System (PDS) focused on semantics, accessibility, visual design, and user-interface design.
12
12
 
13
- This toolkit should not contain processes or mechanisms used for data manipulation, business logic, or similar. Therefore, processes such as form handling, routing, and language translation should be handled within the application that is consuming the toolkit.
13
+ The toolkit does not include data manipulation, business logic, form handling, routing, or language translation. These concerns are handled by the consuming application.
14
14
 
15
- Each component will contain a documentation page within Storybook that provides usage notes, implementation instructions, and expected data structure for that particular component.
15
+ Each component has a documentation page within Storybook that provides usage notes, implementation instructions, and expected data structure.
16
16
 
17
17
  ### Content within components
18
18
 
@@ -24,7 +24,7 @@ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
24
24
  /**
25
25
  * Avatar size.
26
26
  */
27
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
27
+ size?: 'xs' | 's' | 'm' | 'l';
28
28
  /**
29
29
  * Unique ID associated with the avatar. Can be workspace ID, user ID, email, etc.
30
30
  */
@@ -30,6 +30,10 @@ export interface ComparisonListProps extends ComponentPropsWithoutRef<'div'> {
30
30
  * Render the icon labels for screen readers.
31
31
  */
32
32
  renderTypeLabels?: boolean;
33
+ /**
34
+ * Whether to show the border on list items.
35
+ */
36
+ showBorder?: boolean;
33
37
  /**
34
38
  * Icon labels
35
39
  */
@@ -38,5 +42,5 @@ export interface ComparisonListProps extends ComponentPropsWithoutRef<'div'> {
38
42
  /**
39
43
  * ComparisonList UI component
40
44
  */
41
- export declare const ComparisonList: ({ className, listItems, listLabel, moreLink, renderTypeLabels, typeLabels, ...props }: ComparisonListProps) => import("react/jsx-runtime").JSX.Element;
45
+ export declare const ComparisonList: ({ className, listItems, listLabel, moreLink, renderTypeLabels, showBorder, typeLabels, ...props }: ComparisonListProps) => import("react/jsx-runtime").JSX.Element;
42
46
  export {};
@@ -0,0 +1,58 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './drawer.css';
3
+ export type DrawerPlacement = 'left' | 'right';
4
+ export type DrawerSize = 's' | 'm' | 'l';
5
+ export interface DrawerProps extends ComponentPropsWithoutRef<'div'> {
6
+ /**
7
+ * Aria label that describes the drawer. Will default to the title if not provided.
8
+ */
9
+ ariaLabel?: string;
10
+ /**
11
+ * Main content for the drawer.
12
+ */
13
+ children?: ReactNode;
14
+ /**
15
+ * Additional class names
16
+ */
17
+ className?: string;
18
+ /**
19
+ * Text for close button aria-label attribute.
20
+ */
21
+ closeButtonLabel?: string;
22
+ /**
23
+ * If true, clicking outside the drawer will not close it.
24
+ */
25
+ disableOutsideClick?: boolean;
26
+ /**
27
+ * Indicates if the built-in close button will be shown.
28
+ */
29
+ hasCloseButton?: boolean;
30
+ /**
31
+ * Is the drawer open?
32
+ */
33
+ isOpen?: boolean;
34
+ /**
35
+ * Which edge of the screen the drawer slides in from.
36
+ */
37
+ placement?: DrawerPlacement;
38
+ /**
39
+ * Function to set the drawer open state.
40
+ */
41
+ setIsOpen?: (isOpen: boolean) => void;
42
+ /**
43
+ * Preset width of the drawer. Overridden by the `width` prop if provided.
44
+ */
45
+ size?: DrawerSize;
46
+ /**
47
+ * Text for the drawer title. Leave empty for no title.
48
+ */
49
+ title?: string;
50
+ /**
51
+ * Custom width for the drawer. Accepts any valid CSS value (e.g. '50vw', '800px', '40rem'). Overrides the `size` prop.
52
+ */
53
+ width?: string;
54
+ }
55
+ /**
56
+ * Drawer UI component
57
+ */
58
+ export declare const Drawer: ({ ariaLabel, children, className, closeButtonLabel, disableOutsideClick, hasCloseButton, isOpen: isOpenProp, placement, setIsOpen: setIsOpenProp, size, title, width, ...props }: DrawerProps) => any;
@@ -42,7 +42,7 @@ export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
42
42
  /**
43
43
  * The width of the modal.
44
44
  */
45
- size?: 'sm' | 'md' | 'lg' | 'xl';
45
+ size?: 's' | 'm' | 'l' | 'xl';
46
46
  /**
47
47
  * Text for modal title
48
48
  */
@@ -36,7 +36,7 @@ export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div
36
36
  /**
37
37
  * Site plan level.
38
38
  */
39
- sitePlanLevel?: SitePlanLevel;
39
+ sitePlanLevel?: SitePlanLevel | (string & {});
40
40
  /**
41
41
  * Site type.
42
42
  */
@@ -13,11 +13,11 @@ export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
13
13
  /**
14
14
  * Sets the size
15
15
  */
16
- size?: 'sm' | 'md';
16
+ size?: 'xs' | 's';
17
17
  /**
18
18
  * Sets status type
19
19
  */
20
- type: Exclude<StatusType, 'discovery'> | 'neutral' | 'new' | 'working';
20
+ type: StatusType | 'disabled' | 'neutral' | 'working';
21
21
  }
22
22
  /**
23
23
  * StatusIndicator UI component
@@ -13,7 +13,7 @@ interface TableProps extends ComponentPropsWithoutRef<'table'> {
13
13
  */
14
14
  headers?: Array<{
15
15
  sortable?: boolean;
16
- title: string;
16
+ title: ReactNode;
17
17
  }>;
18
18
  /**
19
19
  * Table row data - array of rows, where each row is an array of cell values
@@ -0,0 +1,28 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import './badge.css';
3
+ export type BadgeColor = 'aether' | 'aether-secondary' | 'amber' | 'amber-secondary' | 'apollo' | 'apollo-secondary' | 'critical' | 'critical-secondary' | 'discovery' | 'discovery-secondary' | 'gaia' | 'gaia-secondary' | 'hypnos' | 'hypnos-secondary' | 'indigo' | 'indigo-secondary' | 'info' | 'info-secondary' | 'iris' | 'iris-secondary' | 'lime' | 'lime-secondary' | 'mint' | 'mint-secondary' | 'orange' | 'orange-secondary' | 'rose' | 'rose-secondary' | 'sand' | 'sand-secondary' | 'silver' | 'silver-secondary' | 'sky' | 'sky-secondary' | 'slate' | 'slate-secondary' | 'stone' | 'stone-secondary' | 'success' | 'success-secondary' | 'teal' | 'teal-secondary' | 'warning' | 'warning-secondary' | 'feature';
4
+ /**
5
+ * Badge component props
6
+ */
7
+ export interface BadgeProps extends ComponentPropsWithoutRef<'span'> {
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
12
+ /**
13
+ * Badge color
14
+ */
15
+ color: BadgeColor;
16
+ /**
17
+ * Badge text or content.
18
+ */
19
+ label: ReactNode;
20
+ /**
21
+ * Badge size
22
+ */
23
+ size?: 'xs' | 's' | 'm';
24
+ }
25
+ /**
26
+ * Badge UI component
27
+ */
28
+ export declare const Badge: ({ className, color, label, size, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef } from 'react';
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
2
  import './close-button.css';
3
3
  /**
4
4
  * Prop types for CloseButton
@@ -13,15 +13,15 @@ export interface CloseButtonProps extends ComponentPropsWithoutRef<'button'> {
13
13
  */
14
14
  className?: string;
15
15
  /**
16
- * Size of the icon.
16
+ * Click event callback function.
17
17
  */
18
- iconSize?: 'm' | 'l' | 'xl';
18
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
19
19
  /**
20
- * Click event callback function.
20
+ * Size of the icon.
21
21
  */
22
- onClick?: () => void;
22
+ size?: 'm' | 'l' | 'xl';
23
23
  }
24
24
  /**
25
25
  * CloseButton UI component
26
26
  */
27
- export declare const CloseButton: ({ ariaLabel, className, iconSize, onClick, ...props }: CloseButtonProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const CloseButton: ({ ariaLabel, className, onClick, size, ...props }: CloseButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { GridGapOptions } from '../../../libs/types/layout-types';
3
3
  import './card.css';
4
- export type CardBackground = 'default' | 'mint-gradient' | 'sundown-gradient' | 'yellow-gradient' | 'transparent';
4
+ export type CardBackground = 'default' | 'transparent';
5
5
  /**
6
6
  * Prop types for Card
7
7
  */
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ReactElement } from 'react';
2
- import { BadgeColor } from '../../../libs/types/custom-types';
2
+ import { BadgeColor } from '../../badges/Badge/Badge';
3
3
  import './new-site-card.css';
4
4
  interface BadgeValueType {
5
5
  color: BadgeColor;
@@ -1,4 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
+ import { HeadingLevelCommon } from '../../../libs/types/custom-types';
2
3
  import { ListItems } from '../../ComparisonList/ComparisonList';
3
4
  import './pricing-card.css';
4
5
  interface PrimaryCallToAction {
@@ -54,6 +55,10 @@ interface PricingCardProps extends ComponentPropsWithoutRef<'div'> {
54
55
  * Add corresponding `comparisonListId` to each planPricingData object.
55
56
  */
56
57
  hasComparisonList?: boolean;
58
+ /**
59
+ * Heading level for the plan name.
60
+ */
61
+ headingLevel?: HeadingLevelCommon;
57
62
  /**
58
63
  * Optional function to handle the change event of the select input. Only valid when multiple tiers of planPricingData are present.
59
64
  */
@@ -86,5 +91,5 @@ interface PricingCardProps extends ComponentPropsWithoutRef<'div'> {
86
91
  /**
87
92
  * PricingCard UI component
88
93
  */
89
- export declare const PricingCard: ({ actionPrimary, actionSecondary, className, hasComparisonList, onTierChange, planDescription, planName, planPricingData, selectLabel, statusBadgeLabels, statusBadgeType, ...props }: PricingCardProps) => import("react/jsx-runtime").JSX.Element;
94
+ export declare const PricingCard: ({ actionPrimary, actionSecondary, className, hasComparisonList, headingLevel, onTierChange, planDescription, planName, planPricingData, selectLabel, statusBadgeLabels, statusBadgeType, ...props }: PricingCardProps) => import("react/jsx-runtime").JSX.Element;
90
95
  export {};
@@ -2,6 +2,10 @@ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { ContainerWidth } from '../../../libs/types/custom-types';
3
3
  import './site-footer.css';
4
4
  interface SiteFooterProps extends ComponentPropsWithoutRef<'footer'> {
5
+ /**
6
+ * HTML element to render. Use 'footer' for standalone usage or 'div' when nested inside another footer landmark.
7
+ */
8
+ as?: 'footer' | 'div';
5
9
  /**
6
10
  * Footer content.
7
11
  */
@@ -26,5 +30,5 @@ interface SiteFooterProps extends ComponentPropsWithoutRef<'footer'> {
26
30
  /**
27
31
  * SiteFooter UI component
28
32
  */
29
- export declare const SiteFooter: ({ children, className, containerWidth, hasTopBorder, legalLinks, ...props }: SiteFooterProps) => import("react/jsx-runtime").JSX.Element;
33
+ export declare const SiteFooter: ({ as: Element, children, className, containerWidth, hasTopBorder, legalLinks, ...props }: SiteFooterProps) => import("react/jsx-runtime").JSX.Element;
30
34
  export {};