@hashicorp/mds-react 0.9.0 → 0.9.2

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 (535) hide show
  1. package/{dist/components → components}/accordion/index.d.ts +1 -1
  2. package/{dist/components → components}/accordion/item/index.d.ts +1 -1
  3. package/{dist/components → components}/alert/icon.d.ts +2 -2
  4. package/{dist/components → components}/alert/index.d.ts +6 -6
  5. package/{dist/components → components}/badge/index.d.ts +1 -1
  6. package/{dist/components → components}/badge-count/index.d.ts +1 -1
  7. package/{dist/components → components}/breadcrumbs/index.d.ts +2 -2
  8. package/{dist/components → components}/breadcrumbs/item/index.d.ts +1 -1
  9. package/{dist/components → components}/breadcrumbs/truncation-button/index.d.ts +1 -1
  10. package/{dist/components → components}/breadcrumbs/types/index.d.ts +1 -1
  11. package/{dist/components → components}/button/index.d.ts +2 -2
  12. package/{dist/components → components}/card/card-thumbnail/index.d.ts +1 -1
  13. package/components/card/index.d.ts +3 -0
  14. package/{dist/components → components}/card/types.d.ts +3 -3
  15. package/{dist/components → components}/code-block/code-lines/index.d.ts +8 -1
  16. package/{dist/components → components}/code-block/code-lines/utils/split-html-into-lines.d.ts +1 -1
  17. package/{dist/components → components}/code-block/code-lines/utils/split-jsx-into-lines.d.ts +1 -1
  18. package/components/code-block/hidden-copy-content/index.d.ts +5 -0
  19. package/{dist/components → components}/code-block/index.d.ts +1 -1
  20. package/{dist/components → components}/combo-box-primitive/index.d.ts +0 -1
  21. package/{dist/components → components}/dialog-primitive/index.d.ts +1 -1
  22. package/{dist/components → components}/disclosure-primitive/index.d.ts +2 -1
  23. package/{dist/components → components}/disclosure-primitive/use-disclosure-primitive.d.ts +2 -2
  24. package/{dist/components → components}/dismiss-button/index.d.ts +0 -1
  25. package/{dist/components → components}/dropdown/index.d.ts +6 -6
  26. package/{dist/components → components}/dropdown/list-item/custom.d.ts +1 -1
  27. package/{dist/components → components}/dropdown/list-item/index.d.ts +4 -4
  28. package/{dist/components → components}/dropdown/list-item/interactive.d.ts +1 -1
  29. package/{dist/components → components}/dropdown/list-item/separator.d.ts +1 -1
  30. package/{dist/components → components}/dropdown/list-item/title.d.ts +1 -1
  31. package/{dist/components → components}/dropdown/toggle-button/index.d.ts +2 -2
  32. package/{dist/components → components}/flight-icon/index.d.ts +2 -2
  33. package/{dist/components → components}/form/checkbox/index.d.ts +1 -1
  34. package/{dist/components → components}/form/error/index.d.ts +1 -1
  35. package/{dist/components → components}/form/field/index.d.ts +1 -1
  36. package/{dist/components → components}/form/fieldset/index.d.ts +1 -1
  37. package/{dist/components → components}/form/file-input/index.d.ts +1 -1
  38. package/{dist/components → components}/form/helper-text/index.d.ts +1 -1
  39. package/{dist/components → components}/form/label/index.d.ts +1 -1
  40. package/{dist/components → components}/form/legend/index.d.ts +1 -1
  41. package/{dist/components → components}/form/radio/index.d.ts +1 -1
  42. package/{dist/components → components}/form/radio-card/group.d.ts +1 -1
  43. package/{dist/components → components}/form/radio-card/index.d.ts +2 -2
  44. package/{dist/components → components}/form/select/index.d.ts +1 -1
  45. package/{dist/components → components}/form/super-select/index.d.ts +2 -2
  46. package/{dist/components → components}/form/text-input/index.d.ts +1 -1
  47. package/{dist/components → components}/form/textarea/index.d.ts +1 -1
  48. package/{dist/components → components}/form/toggle/index.d.ts +1 -1
  49. package/{dist/components → components}/hds/wrappers/tooltip.d.ts +4 -3
  50. package/{dist/components → components}/icon-tile/index.d.ts +1 -1
  51. package/components/index.js +77 -0
  52. package/{dist/components → components}/inline-link/index.d.ts +1 -1
  53. package/{dist/components → components}/interactive/index.d.ts +4 -3
  54. package/{dist/components → components}/legacy-button/index.d.ts +3 -3
  55. package/{dist/components → components}/legacy-button/types.d.ts +1 -1
  56. package/{dist/components → components}/legacy-button/utils.d.ts +1 -1
  57. package/{dist/components → components}/menu-primitive/index.d.ts +1 -1
  58. package/{dist/components → components}/menu-primitive/use-menu-primitive.d.ts +2 -2
  59. package/{dist/components → components}/modal/index.d.ts +1 -1
  60. package/{dist/components → components}/modal/use-modal.d.ts +2 -2
  61. package/{dist/components → components}/separator/index.d.ts +1 -1
  62. package/{dist/components → components}/standalone-link/index.d.ts +2 -2
  63. package/{dist/components → components}/table/index.d.ts +5 -5
  64. package/{dist/components → components}/table/td.d.ts +2 -2
  65. package/{dist/components → components}/table/th.d.ts +2 -2
  66. package/{dist/components → components}/table/tr.d.ts +1 -1
  67. package/{dist/components → components}/tabs/index.d.ts +3 -3
  68. package/{dist/components → components}/tabs/tab-panel.d.ts +1 -1
  69. package/{dist/components → components}/tabs/tab.d.ts +2 -2
  70. package/{dist/components → components}/tabs/use-tabs-context.d.ts +2 -2
  71. package/{dist/components → components}/text/index.d.ts +6 -6
  72. package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/index.d.ts +0 -1
  73. package/{dist/components → components}/visualizations/bar-chart/index.d.ts +1 -1
  74. package/components/visualizations/donut-chart/components/arc-tooltip/index.d.ts +3 -0
  75. package/components/visualizations/donut-chart/components/external-arc-label/index.d.ts +3 -0
  76. package/components/visualizations/donut-chart/components/internal-arc-label/index.d.ts +3 -0
  77. package/{dist/components → components}/visualizations/donut-chart/index.d.ts +1 -1
  78. package/index-B9mPJh9w.js +579 -0
  79. package/index-B9mPJh9w.js.map +1 -0
  80. package/index-BHBlMMNF.js +16 -0
  81. package/index-BHBlMMNF.js.map +1 -0
  82. package/index-C4GBbW3N.js +3567 -0
  83. package/index-C4GBbW3N.js.map +1 -0
  84. package/{dist/utils/mds-context/index.js → index-DBjAbGt7.js} +19 -20
  85. package/index-DBjAbGt7.js.map +1 -0
  86. package/index-WkGIywHj.js +767 -0
  87. package/index-WkGIywHj.js.map +1 -0
  88. package/index.js +105 -0
  89. package/{dist/patterns/index.js.map → index.js.map} +1 -1
  90. package/package.json +72 -108
  91. package/{dist/patterns → patterns}/card/newsroom-card/index.d.ts +1 -1
  92. package/{dist/patterns → patterns}/card/partner-card/index.d.ts +2 -2
  93. package/{dist/patterns → patterns}/card/person-card/index.d.ts +1 -1
  94. package/{dist/patterns → patterns}/card/primitives.d.ts +5 -5
  95. package/{dist/patterns → patterns}/card/promo-card/index.d.ts +1 -1
  96. package/{dist/patterns → patterns}/card/resource-card/index.d.ts +1 -1
  97. package/{dist/patterns → patterns}/card/thumbnails/index.d.ts +1 -1
  98. package/{dist/patterns → patterns}/card/types.d.ts +6 -6
  99. package/{dist/patterns → patterns}/card/unified-card/index.d.ts +1 -1
  100. package/{dist/patterns → patterns}/copy-button/clipboard.d.ts +1 -1
  101. package/{dist/patterns → patterns}/copy-button/index.d.ts +1 -1
  102. package/patterns/index.js +25 -0
  103. package/patterns/index.js.map +1 -0
  104. package/patterns/layout/index.d.ts +69 -0
  105. package/patterns/product-logo/index.d.ts +48 -0
  106. package/{dist/patterns → patterns}/related-content/index.d.ts +1 -1
  107. package/{dist/patterns → patterns}/related-content/types.d.ts +1 -1
  108. package/style.css +1 -0
  109. package/use-screen-size-BOnkX_K-.js +9 -0
  110. package/use-screen-size-BOnkX_K-.js.map +1 -0
  111. package/utils/i18n/index.d.ts +1 -0
  112. package/utils/index.js +10 -0
  113. package/utils/index.js.map +1 -0
  114. package/{dist/utils → utils}/make-normalizer/index.d.ts +6 -6
  115. package/{dist/utils → utils}/mds-context/index.d.ts +1 -1
  116. package/dist/components/accordion/index.js +0 -9
  117. package/dist/components/accordion/index.js.map +0 -1
  118. package/dist/components/accordion/item/button.js +0 -44
  119. package/dist/components/accordion/item/button.js.map +0 -1
  120. package/dist/components/accordion/item/index.js +0 -59
  121. package/dist/components/accordion/item/index.js.map +0 -1
  122. package/dist/components/accordion/style.module.scss.js +0 -24
  123. package/dist/components/accordion/style.module.scss.js.map +0 -1
  124. package/dist/components/alert/alert.module.scss.js +0 -29
  125. package/dist/components/alert/alert.module.scss.js.map +0 -1
  126. package/dist/components/alert/icon.js +0 -34
  127. package/dist/components/alert/icon.js.map +0 -1
  128. package/dist/components/alert/index.js +0 -97
  129. package/dist/components/alert/index.js.map +0 -1
  130. package/dist/components/badge/index.js +0 -50
  131. package/dist/components/badge/index.js.map +0 -1
  132. package/dist/components/badge/style.module.scss.js +0 -22
  133. package/dist/components/badge/style.module.scss.js.map +0 -1
  134. package/dist/components/badge-count/index.js +0 -29
  135. package/dist/components/badge-count/index.js.map +0 -1
  136. package/dist/components/badge-count/style.module.scss.js +0 -15
  137. package/dist/components/badge-count/style.module.scss.js.map +0 -1
  138. package/dist/components/breadcrumbs/index.js +0 -38
  139. package/dist/components/breadcrumbs/index.js.map +0 -1
  140. package/dist/components/breadcrumbs/item/index.js +0 -32
  141. package/dist/components/breadcrumbs/item/index.js.map +0 -1
  142. package/dist/components/breadcrumbs/style.module.scss.js +0 -27
  143. package/dist/components/breadcrumbs/style.module.scss.js.map +0 -1
  144. package/dist/components/breadcrumbs/truncation-button/index.js +0 -25
  145. package/dist/components/breadcrumbs/truncation-button/index.js.map +0 -1
  146. package/dist/components/button/index.js +0 -119
  147. package/dist/components/button/index.js.map +0 -1
  148. package/dist/components/button/styles.module.scss.js +0 -32
  149. package/dist/components/button/styles.module.scss.js.map +0 -1
  150. package/dist/components/card/card-thumbnail/card-thumbnail.module.css.js +0 -8
  151. package/dist/components/card/card-thumbnail/card-thumbnail.module.css.js.map +0 -1
  152. package/dist/components/card/card-thumbnail/index.js +0 -23
  153. package/dist/components/card/card-thumbnail/index.js.map +0 -1
  154. package/dist/components/card/index.d.ts +0 -3
  155. package/dist/components/card/index.js +0 -157
  156. package/dist/components/card/index.js.map +0 -1
  157. package/dist/components/card/styles.module.css.js +0 -29
  158. package/dist/components/card/styles.module.css.js.map +0 -1
  159. package/dist/components/code-block/code-block.module.scss.js +0 -34
  160. package/dist/components/code-block/code-block.module.scss.js.map +0 -1
  161. package/dist/components/code-block/code-lines/index.js +0 -59
  162. package/dist/components/code-block/code-lines/index.js.map +0 -1
  163. package/dist/components/code-block/code-lines/utils/split-html-into-lines.js +0 -19
  164. package/dist/components/code-block/code-lines/utils/split-html-into-lines.js.map +0 -1
  165. package/dist/components/code-block/code-lines/utils/split-jsx-into-lines.js +0 -31
  166. package/dist/components/code-block/code-lines/utils/split-jsx-into-lines.js.map +0 -1
  167. package/dist/components/code-block/hidden-copy-content/index.d.ts +0 -5
  168. package/dist/components/code-block/hidden-copy-content/index.js +0 -13
  169. package/dist/components/code-block/hidden-copy-content/index.js.map +0 -1
  170. package/dist/components/code-block/index.js +0 -88
  171. package/dist/components/code-block/index.js.map +0 -1
  172. package/dist/components/code-block/utils/parse-highlighted-lines.js +0 -39
  173. package/dist/components/code-block/utils/parse-highlighted-lines.js.map +0 -1
  174. package/dist/components/code-block/utils/process-snippet.js +0 -20
  175. package/dist/components/code-block/utils/process-snippet.js.map +0 -1
  176. package/dist/components/code-block/utils/shellwords.js +0 -33
  177. package/dist/components/code-block/utils/shellwords.js.map +0 -1
  178. package/dist/components/combo-box-primitive/index.js +0 -302
  179. package/dist/components/combo-box-primitive/index.js.map +0 -1
  180. package/dist/components/dialog-primitive/dialog.module.scss.js +0 -12
  181. package/dist/components/dialog-primitive/dialog.module.scss.js.map +0 -1
  182. package/dist/components/dialog-primitive/index.js +0 -15
  183. package/dist/components/dialog-primitive/index.js.map +0 -1
  184. package/dist/components/disclosure-primitive/index.js +0 -57
  185. package/dist/components/disclosure-primitive/index.js.map +0 -1
  186. package/dist/components/disclosure-primitive/styles.module.css.js +0 -7
  187. package/dist/components/disclosure-primitive/styles.module.css.js.map +0 -1
  188. package/dist/components/disclosure-primitive/use-disclosure-primitive.js +0 -17
  189. package/dist/components/disclosure-primitive/use-disclosure-primitive.js.map +0 -1
  190. package/dist/components/dismiss-button/index.js +0 -22
  191. package/dist/components/dismiss-button/index.js.map +0 -1
  192. package/dist/components/dismiss-button/styles.module.scss.js +0 -7
  193. package/dist/components/dismiss-button/styles.module.scss.js.map +0 -1
  194. package/dist/components/dropdown/index.js +0 -79
  195. package/dist/components/dropdown/index.js.map +0 -1
  196. package/dist/components/dropdown/list-item/custom.js +0 -9
  197. package/dist/components/dropdown/list-item/custom.js.map +0 -1
  198. package/dist/components/dropdown/list-item/index.js +0 -14
  199. package/dist/components/dropdown/list-item/index.js.map +0 -1
  200. package/dist/components/dropdown/list-item/interactive.js +0 -49
  201. package/dist/components/dropdown/list-item/interactive.js.map +0 -1
  202. package/dist/components/dropdown/list-item/separator.js +0 -17
  203. package/dist/components/dropdown/list-item/separator.js.map +0 -1
  204. package/dist/components/dropdown/list-item/styles.module.css.js +0 -26
  205. package/dist/components/dropdown/list-item/styles.module.css.js.map +0 -1
  206. package/dist/components/dropdown/list-item/title.js +0 -9
  207. package/dist/components/dropdown/list-item/title.js.map +0 -1
  208. package/dist/components/dropdown/styles.module.css.js +0 -24
  209. package/dist/components/dropdown/styles.module.css.js.map +0 -1
  210. package/dist/components/dropdown/toggle-button/index.js +0 -54
  211. package/dist/components/dropdown/toggle-button/index.js.map +0 -1
  212. package/dist/components/dropdown/toggle-button/styles.module.scss.js +0 -14
  213. package/dist/components/dropdown/toggle-button/styles.module.scss.js.map +0 -1
  214. package/dist/components/flight-icon/flight-icon.module.css.js +0 -12
  215. package/dist/components/flight-icon/flight-icon.module.css.js.map +0 -1
  216. package/dist/components/flight-icon/index.js +0 -58
  217. package/dist/components/flight-icon/index.js.map +0 -1
  218. package/dist/components/form/checkbox/form-checkbox.module.css.js +0 -8
  219. package/dist/components/form/checkbox/form-checkbox.module.css.js.map +0 -1
  220. package/dist/components/form/checkbox/index.js +0 -109
  221. package/dist/components/form/checkbox/index.js.map +0 -1
  222. package/dist/components/form/error/form-error.module.css.js +0 -14
  223. package/dist/components/form/error/form-error.module.css.js.map +0 -1
  224. package/dist/components/form/error/index.js +0 -22
  225. package/dist/components/form/error/index.js.map +0 -1
  226. package/dist/components/form/field/form-field.module.css.js +0 -17
  227. package/dist/components/form/field/form-field.module.css.js.map +0 -1
  228. package/dist/components/form/field/index.js +0 -46
  229. package/dist/components/form/field/index.js.map +0 -1
  230. package/dist/components/form/fieldset/form-fieldset.module.css.js +0 -19
  231. package/dist/components/form/fieldset/form-fieldset.module.css.js.map +0 -1
  232. package/dist/components/form/fieldset/index.js +0 -65
  233. package/dist/components/form/fieldset/index.js.map +0 -1
  234. package/dist/components/form/file-input/form-file-input.module.scss.js +0 -7
  235. package/dist/components/form/file-input/form-file-input.module.scss.js.map +0 -1
  236. package/dist/components/form/file-input/index.js +0 -68
  237. package/dist/components/form/file-input/index.js.map +0 -1
  238. package/dist/components/form/helper-text/form-helper-text.module.css.js +0 -7
  239. package/dist/components/form/helper-text/form-helper-text.module.css.js.map +0 -1
  240. package/dist/components/form/helper-text/index.js +0 -22
  241. package/dist/components/form/helper-text/index.js.map +0 -1
  242. package/dist/components/form/indicator/form-indicator.module.css.js +0 -8
  243. package/dist/components/form/indicator/form-indicator.module.css.js.map +0 -1
  244. package/dist/components/form/indicator/index.js +0 -22
  245. package/dist/components/form/indicator/index.js.map +0 -1
  246. package/dist/components/form/label/form-label.module.css.js +0 -10
  247. package/dist/components/form/label/form-label.module.css.js.map +0 -1
  248. package/dist/components/form/label/index.js +0 -33
  249. package/dist/components/form/label/index.js.map +0 -1
  250. package/dist/components/form/legend/form-legend.module.css.js +0 -10
  251. package/dist/components/form/legend/form-legend.module.css.js.map +0 -1
  252. package/dist/components/form/legend/index.js +0 -19
  253. package/dist/components/form/legend/index.js.map +0 -1
  254. package/dist/components/form/radio/form-radio.module.scss.js +0 -8
  255. package/dist/components/form/radio/form-radio.module.scss.js.map +0 -1
  256. package/dist/components/form/radio/index.js +0 -100
  257. package/dist/components/form/radio/index.js.map +0 -1
  258. package/dist/components/form/radio-card/description.js +0 -10
  259. package/dist/components/form/radio-card/description.js.map +0 -1
  260. package/dist/components/form/radio-card/form-radio-card.module.css.js +0 -30
  261. package/dist/components/form/radio-card/form-radio-card.module.css.js.map +0 -1
  262. package/dist/components/form/radio-card/group.js +0 -31
  263. package/dist/components/form/radio-card/group.js.map +0 -1
  264. package/dist/components/form/radio-card/index.js +0 -67
  265. package/dist/components/form/radio-card/index.js.map +0 -1
  266. package/dist/components/form/radio-card/label.js +0 -10
  267. package/dist/components/form/radio-card/label.js.map +0 -1
  268. package/dist/components/form/select/form-select.module.css.js +0 -14
  269. package/dist/components/form/select/form-select.module.css.js.map +0 -1
  270. package/dist/components/form/select/index.js +0 -79
  271. package/dist/components/form/select/index.js.map +0 -1
  272. package/dist/components/form/super-select/form-super-select.module.css.js +0 -22
  273. package/dist/components/form/super-select/form-super-select.module.css.js.map +0 -1
  274. package/dist/components/form/super-select/index.js +0 -170
  275. package/dist/components/form/super-select/index.js.map +0 -1
  276. package/dist/components/form/text-input/index.js +0 -91
  277. package/dist/components/form/text-input/index.js.map +0 -1
  278. package/dist/components/form/text-input/styles.module.css.js +0 -15
  279. package/dist/components/form/text-input/styles.module.css.js.map +0 -1
  280. package/dist/components/form/textarea/form-textarea.module.css.js +0 -14
  281. package/dist/components/form/textarea/form-textarea.module.css.js.map +0 -1
  282. package/dist/components/form/textarea/index.js +0 -74
  283. package/dist/components/form/textarea/index.js.map +0 -1
  284. package/dist/components/form/toggle/form-toggle.module.scss.js +0 -12
  285. package/dist/components/form/toggle/form-toggle.module.scss.js.map +0 -1
  286. package/dist/components/form/toggle/index.js +0 -102
  287. package/dist/components/form/toggle/index.js.map +0 -1
  288. package/dist/components/hds/wrappers/tooltip.js +0 -51
  289. package/dist/components/hds/wrappers/tooltip.js.map +0 -1
  290. package/dist/components/icon-tile/index.js +0 -50
  291. package/dist/components/icon-tile/index.js.map +0 -1
  292. package/dist/components/icon-tile/style.module.scss.js +0 -29
  293. package/dist/components/icon-tile/style.module.scss.js.map +0 -1
  294. package/dist/components/index.js +0 -119
  295. package/dist/components/index.js.map +0 -1
  296. package/dist/components/inline-link/index.js +0 -33
  297. package/dist/components/inline-link/index.js.map +0 -1
  298. package/dist/components/inline-link/inline-link.module.css.js +0 -11
  299. package/dist/components/inline-link/inline-link.module.css.js.map +0 -1
  300. package/dist/components/interactive/index.js +0 -59
  301. package/dist/components/interactive/index.js.map +0 -1
  302. package/dist/components/legacy-button/index.js +0 -65
  303. package/dist/components/legacy-button/index.js.map +0 -1
  304. package/dist/components/legacy-button/utils.js +0 -39
  305. package/dist/components/legacy-button/utils.js.map +0 -1
  306. package/dist/components/menu-primitive/index.js +0 -68
  307. package/dist/components/menu-primitive/index.js.map +0 -1
  308. package/dist/components/menu-primitive/styles.module.css.js +0 -12
  309. package/dist/components/menu-primitive/styles.module.css.js.map +0 -1
  310. package/dist/components/menu-primitive/use-menu-primitive.js +0 -17
  311. package/dist/components/menu-primitive/use-menu-primitive.js.map +0 -1
  312. package/dist/components/modal/index.js +0 -61
  313. package/dist/components/modal/index.js.map +0 -1
  314. package/dist/components/modal/modal.module.css.js +0 -8
  315. package/dist/components/modal/modal.module.css.js.map +0 -1
  316. package/dist/components/modal/use-modal.js +0 -17
  317. package/dist/components/modal/use-modal.js.map +0 -1
  318. package/dist/components/separator/index.js +0 -15
  319. package/dist/components/separator/index.js.map +0 -1
  320. package/dist/components/separator/separator.module.css.js +0 -10
  321. package/dist/components/separator/separator.module.css.js.map +0 -1
  322. package/dist/components/standalone-link/index.js +0 -54
  323. package/dist/components/standalone-link/index.js.map +0 -1
  324. package/dist/components/standalone-link/styles.module.scss.js +0 -17
  325. package/dist/components/standalone-link/styles.module.scss.js.map +0 -1
  326. package/dist/components/table/index.js +0 -52
  327. package/dist/components/table/index.js.map +0 -1
  328. package/dist/components/table/table.module.scss.js +0 -33
  329. package/dist/components/table/table.module.scss.js.map +0 -1
  330. package/dist/components/table/td.js +0 -28
  331. package/dist/components/table/td.js.map +0 -1
  332. package/dist/components/table/th-button-tooltip.js +0 -24
  333. package/dist/components/table/th-button-tooltip.js.map +0 -1
  334. package/dist/components/table/th.js +0 -43
  335. package/dist/components/table/th.js.map +0 -1
  336. package/dist/components/table/tr.js +0 -9
  337. package/dist/components/table/tr.js.map +0 -1
  338. package/dist/components/table/utils.js +0 -28
  339. package/dist/components/table/utils.js.map +0 -1
  340. package/dist/components/tabs/index.js +0 -117
  341. package/dist/components/tabs/index.js.map +0 -1
  342. package/dist/components/tabs/tab-panel.js +0 -35
  343. package/dist/components/tabs/tab-panel.js.map +0 -1
  344. package/dist/components/tabs/tab.js +0 -70
  345. package/dist/components/tabs/tab.js.map +0 -1
  346. package/dist/components/tabs/tabs.module.scss.js +0 -22
  347. package/dist/components/tabs/tabs.module.scss.js.map +0 -1
  348. package/dist/components/tabs/use-tabs-context.js +0 -16
  349. package/dist/components/tabs/use-tabs-context.js.map +0 -1
  350. package/dist/components/text/index.js +0 -112
  351. package/dist/components/text/index.js.map +0 -1
  352. package/dist/components/text/style.module.scss.js +0 -9
  353. package/dist/components/text/style.module.scss.js.map +0 -1
  354. package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/index.js +0 -62
  355. package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/index.js.map +0 -1
  356. package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/style.module.css.js +0 -20
  357. package/dist/components/visualizations/bar-chart/horizontal-chart/dataset-value/style.module.css.js.map +0 -1
  358. package/dist/components/visualizations/bar-chart/horizontal-chart/index.js +0 -104
  359. package/dist/components/visualizations/bar-chart/horizontal-chart/index.js.map +0 -1
  360. package/dist/components/visualizations/bar-chart/horizontal-chart/legend/index.js +0 -13
  361. package/dist/components/visualizations/bar-chart/horizontal-chart/legend/index.js.map +0 -1
  362. package/dist/components/visualizations/bar-chart/horizontal-chart/legend/style.module.css.js +0 -14
  363. package/dist/components/visualizations/bar-chart/horizontal-chart/legend/style.module.css.js.map +0 -1
  364. package/dist/components/visualizations/bar-chart/horizontal-chart/style.module.css.js +0 -28
  365. package/dist/components/visualizations/bar-chart/horizontal-chart/style.module.css.js.map +0 -1
  366. package/dist/components/visualizations/bar-chart/index.js +0 -37
  367. package/dist/components/visualizations/bar-chart/index.js.map +0 -1
  368. package/dist/components/visualizations/bar-chart/style.module.css.js +0 -12
  369. package/dist/components/visualizations/bar-chart/style.module.css.js.map +0 -1
  370. package/dist/components/visualizations/donut-chart/components/arc-tooltip/index.d.ts +0 -3
  371. package/dist/components/visualizations/donut-chart/components/arc-tooltip/index.js +0 -14
  372. package/dist/components/visualizations/donut-chart/components/arc-tooltip/index.js.map +0 -1
  373. package/dist/components/visualizations/donut-chart/components/arc-tooltip/styles.module.css.js +0 -10
  374. package/dist/components/visualizations/donut-chart/components/arc-tooltip/styles.module.css.js.map +0 -1
  375. package/dist/components/visualizations/donut-chart/components/external-arc-label/index.d.ts +0 -3
  376. package/dist/components/visualizations/donut-chart/components/external-arc-label/index.js +0 -58
  377. package/dist/components/visualizations/donut-chart/components/external-arc-label/index.js.map +0 -1
  378. package/dist/components/visualizations/donut-chart/components/external-arc-label/styles.module.css.js +0 -16
  379. package/dist/components/visualizations/donut-chart/components/external-arc-label/styles.module.css.js.map +0 -1
  380. package/dist/components/visualizations/donut-chart/components/internal-arc-label/index.d.ts +0 -3
  381. package/dist/components/visualizations/donut-chart/components/internal-arc-label/index.js +0 -42
  382. package/dist/components/visualizations/donut-chart/components/internal-arc-label/index.js.map +0 -1
  383. package/dist/components/visualizations/donut-chart/components/internal-arc-label/styles.module.css.js +0 -14
  384. package/dist/components/visualizations/donut-chart/components/internal-arc-label/styles.module.css.js.map +0 -1
  385. package/dist/components/visualizations/donut-chart/index.js +0 -90
  386. package/dist/components/visualizations/donut-chart/index.js.map +0 -1
  387. package/dist/components/visualizations/donut-chart/styles.module.css.js +0 -20
  388. package/dist/components/visualizations/donut-chart/styles.module.css.js.map +0 -1
  389. package/dist/hooks/use-media-query/index.js +0 -16
  390. package/dist/hooks/use-media-query/index.js.map +0 -1
  391. package/dist/index.js +0 -158
  392. package/dist/index.js.map +0 -1
  393. package/dist/patterns/card/newsroom-card/index.js +0 -26
  394. package/dist/patterns/card/newsroom-card/index.js.map +0 -1
  395. package/dist/patterns/card/newsroom-card/style.module.css.js +0 -8
  396. package/dist/patterns/card/newsroom-card/style.module.css.js.map +0 -1
  397. package/dist/patterns/card/partner-card/index.js +0 -42
  398. package/dist/patterns/card/partner-card/index.js.map +0 -1
  399. package/dist/patterns/card/partner-card/style.module.css.js +0 -12
  400. package/dist/patterns/card/partner-card/style.module.css.js.map +0 -1
  401. package/dist/patterns/card/person-card/index.js +0 -52
  402. package/dist/patterns/card/person-card/index.js.map +0 -1
  403. package/dist/patterns/card/person-card/style.module.css.js +0 -12
  404. package/dist/patterns/card/person-card/style.module.css.js.map +0 -1
  405. package/dist/patterns/card/primitives.js +0 -77
  406. package/dist/patterns/card/primitives.js.map +0 -1
  407. package/dist/patterns/card/promo-card/index.js +0 -36
  408. package/dist/patterns/card/promo-card/index.js.map +0 -1
  409. package/dist/patterns/card/resource-card/index.js +0 -26
  410. package/dist/patterns/card/resource-card/index.js.map +0 -1
  411. package/dist/patterns/card/style.module.css.js +0 -30
  412. package/dist/patterns/card/style.module.css.js.map +0 -1
  413. package/dist/patterns/card/thumbnails/index.js +0 -25
  414. package/dist/patterns/card/thumbnails/index.js.map +0 -1
  415. package/dist/patterns/card/unified-card/index.js +0 -37
  416. package/dist/patterns/card/unified-card/index.js.map +0 -1
  417. package/dist/patterns/copy-button/clipboard.js +0 -78
  418. package/dist/patterns/copy-button/clipboard.js.map +0 -1
  419. package/dist/patterns/copy-button/index.js +0 -57
  420. package/dist/patterns/copy-button/index.js.map +0 -1
  421. package/dist/patterns/copy-button/style.module.css.js +0 -13
  422. package/dist/patterns/copy-button/style.module.css.js.map +0 -1
  423. package/dist/patterns/index.js +0 -35
  424. package/dist/patterns/layout/index.d.ts +0 -69
  425. package/dist/patterns/layout/index.js +0 -47
  426. package/dist/patterns/layout/index.js.map +0 -1
  427. package/dist/patterns/layout/layout.module.css.js +0 -20
  428. package/dist/patterns/layout/layout.module.css.js.map +0 -1
  429. package/dist/patterns/product-badge/index.js +0 -22
  430. package/dist/patterns/product-badge/index.js.map +0 -1
  431. package/dist/patterns/product-badge/style.module.css.js +0 -8
  432. package/dist/patterns/product-badge/style.module.css.js.map +0 -1
  433. package/dist/patterns/product-logo/index.d.ts +0 -48
  434. package/dist/patterns/product-logo/index.js +0 -130
  435. package/dist/patterns/product-logo/index.js.map +0 -1
  436. package/dist/patterns/product-logo/product-logo.module.css.js +0 -13
  437. package/dist/patterns/product-logo/product-logo.module.css.js.map +0 -1
  438. package/dist/patterns/related-content/index.js +0 -65
  439. package/dist/patterns/related-content/index.js.map +0 -1
  440. package/dist/patterns/related-content/style.module.css.js +0 -22
  441. package/dist/patterns/related-content/style.module.css.js.map +0 -1
  442. package/dist/style.css +0 -1
  443. package/dist/utils/get-contrast-yiq.js +0 -13
  444. package/dist/utils/get-contrast-yiq.js.map +0 -1
  445. package/dist/utils/hooks/use-screen-size.js +0 -10
  446. package/dist/utils/hooks/use-screen-size.js.map +0 -1
  447. package/dist/utils/i18n/index.d.ts +0 -1
  448. package/dist/utils/i18n/index.js +0 -41
  449. package/dist/utils/i18n/index.js.map +0 -1
  450. package/dist/utils/index.js +0 -10
  451. package/dist/utils/make-normalizer/index.js +0 -34
  452. package/dist/utils/make-normalizer/index.js.map +0 -1
  453. package/dist/utils/mds-context/index.js.map +0 -1
  454. /package/{dist/components → components}/accordion/item/button.d.ts +0 -0
  455. /package/{dist/components → components}/accordion/style.module.scss +0 -0
  456. /package/{dist/components → components}/alert/alert.module.scss +0 -0
  457. /package/{dist/components → components}/badge/style.module.scss +0 -0
  458. /package/{dist/components → components}/badge-count/style.module.scss +0 -0
  459. /package/{dist/components → components}/breadcrumbs/style.module.scss +0 -0
  460. /package/{dist/components → components}/button/styles.module.scss +0 -0
  461. /package/{dist/components → components}/card/card-thumbnail/card-thumbnail.module.css +0 -0
  462. /package/{dist/components → components}/card/styles.module.css +0 -0
  463. /package/{dist/components → components}/code-block/code-block.module.scss +0 -0
  464. /package/{dist/components → components}/code-block/utils/parse-highlighted-lines.d.ts +0 -0
  465. /package/{dist/components → components}/code-block/utils/process-snippet.d.ts +0 -0
  466. /package/{dist/components → components}/code-block/utils/shellwords.d.ts +0 -0
  467. /package/{dist/components → components}/dialog-primitive/dialog.module.scss +0 -0
  468. /package/{dist/components → components}/disclosure-primitive/styles.module.css +0 -0
  469. /package/{dist/components → components}/dismiss-button/styles.module.scss +0 -0
  470. /package/{dist/components → components}/dropdown/list-item/styles.module.css +0 -0
  471. /package/{dist/components → components}/dropdown/styles.module.css +0 -0
  472. /package/{dist/components → components}/dropdown/toggle-button/styles.module.scss +0 -0
  473. /package/{dist/components → components}/flight-icon/flight-icon.module.css +0 -0
  474. /package/{dist/components → components}/form/checkbox/form-checkbox.module.css +0 -0
  475. /package/{dist/components → components}/form/error/form-error.module.css +0 -0
  476. /package/{dist/components → components}/form/field/form-field.module.css +0 -0
  477. /package/{dist/components → components}/form/fieldset/form-fieldset.module.css +0 -0
  478. /package/{dist/components → components}/form/file-input/form-file-input.module.scss +0 -0
  479. /package/{dist/components → components}/form/helper-text/form-helper-text.module.css +0 -0
  480. /package/{dist/components → components}/form/indicator/form-indicator.module.css +0 -0
  481. /package/{dist/components → components}/form/indicator/index.d.ts +0 -0
  482. /package/{dist/components → components}/form/label/form-label.module.css +0 -0
  483. /package/{dist/components → components}/form/legend/form-legend.module.css +0 -0
  484. /package/{dist/components → components}/form/radio/form-radio.module.scss +0 -0
  485. /package/{dist/components → components}/form/radio-card/description.d.ts +0 -0
  486. /package/{dist/components → components}/form/radio-card/form-radio-card.module.css +0 -0
  487. /package/{dist/components → components}/form/radio-card/label.d.ts +0 -0
  488. /package/{dist/components → components}/form/select/form-select.module.css +0 -0
  489. /package/{dist/components → components}/form/super-select/form-super-select.module.css +0 -0
  490. /package/{dist/components → components}/form/text-input/styles.module.css +0 -0
  491. /package/{dist/components → components}/form/textarea/form-textarea.module.css +0 -0
  492. /package/{dist/components → components}/form/toggle/form-toggle.module.scss +0 -0
  493. /package/{dist/components → components}/icon-tile/style.module.scss +0 -0
  494. /package/{dist/components → components}/index.d.ts +0 -0
  495. /package/{dist/utils → components}/index.js.map +0 -0
  496. /package/{dist/components → components}/inline-link/inline-link.module.css +0 -0
  497. /package/{dist/components → components}/menu-primitive/styles.module.css +0 -0
  498. /package/{dist/components → components}/modal/modal.module.css +0 -0
  499. /package/{dist/components → components}/separator/separator.module.css +0 -0
  500. /package/{dist/components → components}/standalone-link/styles.module.scss +0 -0
  501. /package/{dist/components → components}/table/table.module.scss +0 -0
  502. /package/{dist/components → components}/table/th-button-tooltip.d.ts +0 -0
  503. /package/{dist/components → components}/table/utils.d.ts +0 -0
  504. /package/{dist/components → components}/tabs/tabs.module.scss +0 -0
  505. /package/{dist/components → components}/text/style.module.scss +0 -0
  506. /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/dataset-value/index.d.ts +0 -0
  507. /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/dataset-value/style.module.css +0 -0
  508. /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/legend/index.d.ts +0 -0
  509. /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/legend/style.module.css +0 -0
  510. /package/{dist/components → components}/visualizations/bar-chart/horizontal-chart/style.module.css +0 -0
  511. /package/{dist/components → components}/visualizations/bar-chart/style.module.css +0 -0
  512. /package/{dist/components → components}/visualizations/donut-chart/components/arc-tooltip/styles.module.css +0 -0
  513. /package/{dist/components → components}/visualizations/donut-chart/components/external-arc-label/styles.module.css +0 -0
  514. /package/{dist/components → components}/visualizations/donut-chart/components/index.d.ts +0 -0
  515. /package/{dist/components → components}/visualizations/donut-chart/components/internal-arc-label/styles.module.css +0 -0
  516. /package/{dist/components → components}/visualizations/donut-chart/styles.module.css +0 -0
  517. /package/{dist/components → components}/visualizations/donut-chart/types.d.ts +0 -0
  518. /package/{dist/index.d.ts → index.d.ts} +0 -0
  519. /package/{dist/patterns → patterns}/card/index.d.ts +0 -0
  520. /package/{dist/patterns → patterns}/card/newsroom-card/style.module.css +0 -0
  521. /package/{dist/patterns → patterns}/card/partner-card/style.module.css +0 -0
  522. /package/{dist/patterns → patterns}/card/person-card/style.module.css +0 -0
  523. /package/{dist/patterns → patterns}/card/style.module.css +0 -0
  524. /package/{dist/patterns → patterns}/copy-button/style.module.css +0 -0
  525. /package/{dist/patterns → patterns}/index.d.ts +0 -0
  526. /package/{dist/patterns → patterns}/layout/layout.module.css +0 -0
  527. /package/{dist/patterns → patterns}/product-badge/index.d.ts +0 -0
  528. /package/{dist/patterns → patterns}/product-badge/style.module.css +0 -0
  529. /package/{dist/patterns → patterns}/product-logo/product-logo.module.css +0 -0
  530. /package/{dist/patterns → patterns}/related-content/style.module.css +0 -0
  531. /package/{dist/styles → styles}/mixins/button.scss +0 -0
  532. /package/{dist/styles → styles}/mixins/focus-ring.scss +0 -0
  533. /package/{dist/utils → utils}/get-contrast-yiq.d.ts +0 -0
  534. /package/{dist/utils → utils}/hooks/use-screen-size.d.ts +0 -0
  535. /package/{dist/utils → utils}/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
4
  * optional class name to add to the accordion
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
3
3
  ariaLabel?: string;
4
4
  isOpen?: boolean;
@@ -1,5 +1,5 @@
1
- import { AlertColor, AlertProps } from '.';
2
- import { FlightIconName } from '../flight-icon';
1
+ import type { AlertColor, AlertProps } from '.';
2
+ import type { FlightIconName } from '../flight-icon';
3
3
  interface IconProps {
4
4
  icon?: FlightIconName | false;
5
5
  color: AlertColor;
@@ -1,7 +1,7 @@
1
- import { StandaloneLinkProps } from '../standalone-link';
2
- import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
3
- import { ButtonProps } from '../button';
4
- import { FlightIconName } from '../flight-icon';
1
+ import { type StandaloneLinkProps } from '../standalone-link';
2
+ import type { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
3
+ import type { ButtonProps } from '../button';
4
+ import type { FlightIconName } from '../flight-icon';
5
5
  type AlertColor = 'neutral' | 'highlight' | 'success' | 'warning' | 'critical';
6
6
  interface CommonAlertProps extends HTMLAttributes<HTMLDivElement> {
7
7
  /**
@@ -51,11 +51,11 @@ declare const AlertActions: {
51
51
  displayName: string;
52
52
  };
53
53
  declare const AlertButton: {
54
- ({ ...props }: Exclude<ButtonProps, 'size'>): import("react/jsx-runtime").JSX.Element;
54
+ ({ ...props }: Exclude<ButtonProps, "size">): import("react/jsx-runtime").JSX.Element;
55
55
  displayName: string;
56
56
  };
57
57
  declare const AlertStandaloneLink: {
58
- ({ ...props }: Exclude<StandaloneLinkProps, 'size'>): import("react/jsx-runtime").JSX.Element;
58
+ ({ ...props }: Exclude<StandaloneLinkProps, "size">): import("react/jsx-runtime").JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  export { Alert, AlertActions, AlertButton, AlertStandaloneLink };
@@ -1,4 +1,4 @@
1
- import { FlightIconName } from '../flight-icon';
1
+ import type { FlightIconName } from '../flight-icon';
2
2
  declare const BADGE_SIZES: readonly ["small", "medium", "large"];
3
3
  type BadgeSize = (typeof BADGE_SIZES)[number];
4
4
  declare const BADGE_TYPES: readonly ["filled", "inverted", "outlined"];
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  interface BadgeCountProps extends HTMLAttributes<HTMLDivElement> {
3
3
  size?: 'small' | 'medium' | 'large';
4
4
  type?: 'filled' | 'inverted' | 'outlined';
@@ -1,7 +1,7 @@
1
- import { BreadcrumbProps, BreadcrumbTruncationProps } from './types';
1
+ import type { BreadcrumbProps, BreadcrumbTruncationProps } from './types';
2
2
  declare const Breadcrumbs: {
3
3
  Root: ({ itemsCanWrap, ariaLabel, children, className, ...rest }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
4
- Item: ({ maxWidth, current, icon, text, url, ...rest }: import('./types').BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ Item: ({ maxWidth, current, icon, text, url, ...rest }: import("./types").BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
5
5
  Truncation: ({ ariaLabel, children, ...rest }: BreadcrumbTruncationProps) => import("react/jsx-runtime").JSX.Element;
6
6
  };
7
7
  export { Breadcrumbs };
@@ -1,2 +1,2 @@
1
- import { BreadcrumbItemProps } from '../types';
1
+ import type { BreadcrumbItemProps } from '../types';
2
2
  export declare const Item: ({ maxWidth, current, icon, text, url, ...rest }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare const TruncationButton: ({ ariaLabel, }: {
2
- ariaLabel?: string | undefined;
2
+ ariaLabel?: string;
3
3
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
1
+ import type { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
2
2
  export interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
3
3
  /**
4
4
  * This controls if the Breadcrumb Items can wrap if they don’t fit within the container.
@@ -1,4 +1,4 @@
1
- import { ForwardRefExoticComponent } from 'react';
1
+ import type { ForwardRefExoticComponent } from 'react';
2
2
  export declare const BUTTON_SIZES: readonly ["small", "medium", "large"];
3
3
  export type ButtonSize = (typeof BUTTON_SIZES)[number];
4
4
  export declare const BUTTON_ICON_POSITIONS: readonly ["leading", "trailing"];
@@ -27,5 +27,5 @@ interface ButtonPrimitiveProps {
27
27
  export interface ButtonProps extends Omit<ButtonPrimitiveProps, 'color'> {
28
28
  color?: ButtonColor;
29
29
  }
30
- export declare const Button: ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
30
+ export declare const Button: ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
31
31
  export {};
@@ -1,2 +1,2 @@
1
- import { CardThumbnailProps } from '../types';
1
+ import type { CardThumbnailProps } from '../types';
2
2
  export declare const CardThumbnail: ({ alt, aspectRatio, src, }: CardThumbnailProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import type { CardProps } from './types';
2
+ declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export { Card };
@@ -1,6 +1,6 @@
1
- import { BadgeProps } from '../badge';
2
- import { ReactNode } from 'react';
3
- import { StandaloneLinkProps } from '../standalone-link';
1
+ import type { BadgeProps } from '../badge';
2
+ import type { ReactNode } from 'react';
3
+ import type { StandaloneLinkProps } from '../standalone-link';
4
4
  interface CardPropsBase {
5
5
  className?: string;
6
6
  ctaLabel?: string;
@@ -1,4 +1,11 @@
1
- import { ReactNode } from 'react';
1
+ /**
2
+ * Note: lines of code are expected to be stable. If we need to work with
3
+ * dynamic code blocks in the future, we could assign random unique IDs
4
+ * to each line during the `linesOfCode` `useMemo` function.
5
+ *
6
+ * For now, we disable react/no-array-index key for the entire file.
7
+ */
8
+ import { type ReactNode } from 'react';
2
9
  interface CodeLinesProps {
3
10
  value: ReactNode;
4
11
  hasLineNumbers?: boolean;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  /**
3
3
  * Given a string of HTML, split it on newlines,
4
4
  * and return an array of React <span> elements,
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * Given an array of React children,
4
4
  * split the array on newlines, grouping consecutive
@@ -0,0 +1,5 @@
1
+ import { type ReactNode } from 'react';
2
+ declare const HiddenCopyContent: import("react").ForwardRefExoticComponent<{
3
+ code: ReactNode;
4
+ } & import("react").RefAttributes<HTMLPreElement>>;
5
+ export { HiddenCopyContent };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * ALERT: This component is a combination of logic from the official HashiCorp
4
4
  * Design System CodeBlock component and the CodeBlock component written by the
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type TComboBoxItem = {
3
2
  id: string;
4
3
  value: string;
@@ -1,4 +1,4 @@
1
- import { DetailedHTMLProps, DialogHTMLAttributes } from 'react';
1
+ import type { DetailedHTMLProps, DialogHTMLAttributes } from 'react';
2
2
  interface OverlayProps {
3
3
  className?: string;
4
4
  }
@@ -1,4 +1,5 @@
1
- import { PropsWithChildren, HTMLAttributes } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
+ import { type HTMLAttributes } from 'react';
2
3
  interface DisclosurePrimitiveProviderProps extends HTMLAttributes<HTMLDivElement> {
3
4
  /**
4
5
  * Callback fired when the disclosure is closed (optional)
@@ -1,4 +1,4 @@
1
- import { MouseEventHandler } from 'react';
1
+ import { type MouseEventHandler } from 'react';
2
2
  export interface DisclosurePrimitiveContextState {
3
3
  isOpen: boolean;
4
4
  onClickToggle: MouseEventHandler<HTMLButtonElement>;
@@ -7,5 +7,5 @@ export interface DisclosurePrimitiveContextState {
7
7
  containsInteractive: boolean;
8
8
  ariaLabel: string;
9
9
  }
10
- export declare const DisclosurePrimitiveContext: import('react').Context<DisclosurePrimitiveContextState | undefined>;
10
+ export declare const DisclosurePrimitiveContext: import("react").Context<DisclosurePrimitiveContextState | undefined>;
11
11
  export declare function useDisclosurePrimitive(): DisclosurePrimitiveContextState;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DismissButtonProps {
3
2
  ariaLabel?: string;
4
3
  onClick: React.MouseEventHandler<HTMLButtonElement>;
@@ -1,5 +1,5 @@
1
- import { DropdownToggleButtonProps } from './toggle-button';
2
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import type { DropdownToggleButtonProps } from './toggle-button';
2
+ import type { HTMLAttributes, ReactNode } from 'react';
3
3
  interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * If true, container is given full width styles. (Added by web presence team)
@@ -51,19 +51,19 @@ declare const Dropdown: {
51
51
  };
52
52
  ListItem: {
53
53
  Interactive: {
54
- ({ text, color, icon, isLoading, trailingIcon, ...rest }: import('./list-item/interactive').ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
54
+ ({ text, color, icon, isLoading, trailingIcon, ...rest }: import("./list-item/interactive").ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
55
55
  displayName: string;
56
56
  };
57
57
  Title: {
58
- ({ text, ...rest }: import('./list-item/title').ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
58
+ ({ text, ...rest }: import("./list-item/title").ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
59
59
  displayName: string;
60
60
  };
61
61
  Separator: {
62
- (props: import('./list-item/separator').ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
62
+ (props: import("./list-item/separator").ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
63
63
  displayName: string;
64
64
  };
65
65
  Custom: {
66
- ({ children }: import('./list-item/custom').ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
66
+ ({ children }: import("./list-item/custom").ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
67
67
  displayName: string;
68
68
  };
69
69
  };
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface ListItemCustomProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,18 +1,18 @@
1
1
  declare const ListItem: {
2
2
  Interactive: {
3
- ({ text, color, icon, isLoading, trailingIcon, ...rest }: import('./interactive').ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ text, color, icon, isLoading, trailingIcon, ...rest }: import("./interactive").ListItemInteractiveProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  Title: {
7
- ({ text, ...rest }: import('./title').ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
7
+ ({ text, ...rest }: import("./title").ListItemTitleProps): import("react/jsx-runtime").JSX.Element;
8
8
  displayName: string;
9
9
  };
10
10
  Separator: {
11
- (props: import('./separator').ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
11
+ (props: import("./separator").ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  Custom: {
15
- ({ children }: import('./custom').ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
15
+ ({ children }: import("./custom").ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  };
@@ -1,4 +1,4 @@
1
- import { InteractiveProps } from '../../interactive';
1
+ import { type InteractiveProps } from '../../interactive';
2
2
  interface ListItemInteractiveProps extends Omit<InteractiveProps, 'children'> {
3
3
  /**
4
4
  * Text to be used in the item. If no text value is defined, an error will be thrown.
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  type ListItemSeparatorProps = Omit<HTMLAttributes<HTMLLIElement>, 'className' | 'aria-hidden' | 'role'>;
3
3
  declare const ListItemSeparator: {
4
4
  (props: ListItemSeparatorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  interface ListItemTitleProps extends Omit<HTMLAttributes<HTMLLIElement>, 'className'> {
3
3
  text: string;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { FlightIconName } from '../../flight-icon';
2
- import { ButtonHTMLAttributes } from 'react';
1
+ import type { FlightIconName } from '../../flight-icon';
2
+ import type { ButtonHTMLAttributes } from 'react';
3
3
  interface DropdownToggleButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  /**
5
5
  * Text of the ToggleButton. If no text value is defined, an error will be thrown.
@@ -1,5 +1,5 @@
1
- import { SVGProps } from 'react';
2
- import { IconName } from '@hashicorp/flight-icons/svg';
1
+ import { type SVGProps } from 'react';
2
+ import type { IconName } from '@hashicorp/flight-icons/svg';
3
3
  declare const FLIGHT_ICON_SIZES: readonly [12, 16, 24, 32];
4
4
  type FlightIconSize = (typeof FLIGHT_ICON_SIZES)[number];
5
5
  type FlightIconName = IconName | (string & Record<never, never>);
@@ -1,4 +1,4 @@
1
- import { ComponentProps, HTMLProps, ReactNode } from 'react';
1
+ import { type ComponentProps, type HTMLProps, type ReactNode } from 'react';
2
2
  import { Fieldset } from '../fieldset';
3
3
  interface CheckboxBaseProps {
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface ErrorMessageProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface FieldProps {
3
3
  badgeText?: string;
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface FieldsetProps {
3
3
  isRequired?: boolean;
4
4
  isOptional?: boolean;
@@ -1,4 +1,4 @@
1
- import { HTMLProps, ReactNode } from 'react';
1
+ import type { HTMLProps, ReactNode } from 'react';
2
2
  interface FileInputBaseProps {
3
3
  isRequired?: boolean;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface HelperTextProps {
3
3
  children: ReactNode;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface LabelProps {
3
3
  badgeText?: string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface LegendProps {
3
3
  className?: string;
4
4
  isRequired?: boolean;
@@ -1,4 +1,4 @@
1
- import { ComponentProps, HTMLProps, ReactNode } from 'react';
1
+ import { type ComponentProps, type HTMLProps, type ReactNode } from 'react';
2
2
  import { Fieldset } from '../fieldset';
3
3
  interface RadioBaseProps {
4
4
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { Fieldset } from '../fieldset';
2
- import { ComponentProps, ReactNode } from 'react';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
3
  export interface RadioCardGroupProps extends ComponentProps<typeof Fieldset> {
4
4
  children: ReactNode;
5
5
  legend: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { RadioCardGroup } from './group';
2
- import { HTMLProps, ReactNode } from 'react';
3
- import { BadgeProps } from '../../badge';
2
+ import type { HTMLProps, ReactNode } from 'react';
3
+ import type { BadgeProps } from '../../badge';
4
4
  export declare const DEFAULT_CONTROL_POSITION = "bottom";
5
5
  export declare const DEFAULT_ALIGNMENT = "left";
6
6
  export declare const CONTROL_POSITIONS: readonly ["bottom", "left"];
@@ -1,4 +1,4 @@
1
- import { HTMLProps, ReactNode } from 'react';
1
+ import type { HTMLProps, ReactNode } from 'react';
2
2
  interface SelectFieldProps {
3
3
  isInvalid?: boolean;
4
4
  isLoading?: boolean;
@@ -1,5 +1,5 @@
1
- import { TComboBoxItem, ComboBoxSearchInputProps } from '../../combo-box-primitive';
2
- import { FieldProps } from '../field';
1
+ import type { TComboBoxItem, ComboBoxSearchInputProps } from '../../combo-box-primitive';
2
+ import type { FieldProps } from '../field';
3
3
  type SuperSelectSearchInputProps = ComboBoxSearchInputProps;
4
4
  interface SuperSelectOptionProps extends TComboBoxItem {
5
5
  isLoading?: boolean;
@@ -1,4 +1,4 @@
1
- import { HTMLInputTypeAttribute, HTMLProps, ReactNode } from 'react';
1
+ import type { HTMLInputTypeAttribute, HTMLProps, ReactNode } from 'react';
2
2
  interface TextInputBaseProps {
3
3
  /**
4
4
  * Sets the native HTML `type` of the `<input>`.
@@ -1,4 +1,4 @@
1
- import { HTMLProps, ReactNode } from 'react';
1
+ import type { HTMLProps, ReactNode } from 'react';
2
2
  interface TextAreaFieldProps {
3
3
  isInvalid?: boolean;
4
4
  isLoading?: boolean;
@@ -1,4 +1,4 @@
1
- import { ReactNode, HTMLProps, ComponentProps } from 'react';
1
+ import type { ReactNode, HTMLProps, ComponentProps } from 'react';
2
2
  import { Fieldset } from '../fieldset';
3
3
  interface ToggleBaseProps {
4
4
  id?: string;
@@ -1,6 +1,7 @@
1
- import { TippyProps } from '@tippyjs/react';
2
- import { Plugin } from 'tippy.js';
3
- import { ReactElement } from 'react';
1
+ import { type TippyProps } from '@tippyjs/react';
2
+ import { type Plugin } from 'tippy.js';
3
+ import type { ReactElement } from 'react';
4
+ import 'tippy.js/dist/svg-arrow.css';
4
5
  export interface TooltipProps {
5
6
  options?: TippyProps;
6
7
  children: TippyProps['children'];
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  type BaseProps = {
3
3
  size: 'small' | 'medium' | 'large';
4
4
  iconSecondary?: string;
@@ -0,0 +1,77 @@
1
+ import { A as e, a as o, b as t, c as i, d as r, e as l, f as n, g as d, B as T, _ as S, h as I, l as c, j as A, k as O, C as u, D as B, $ as C, i as g, E as _, F as N, m as L, o as p, n as E, H as F, J as D, I as x, K as b, L as m, p as G, M as R, N as k, q as h, s as P, t as H, r as Z, R as f, S as v, P as K, v as M, Q as U, Y as X, x as j, T as w, w as y, z, y as V, G as W, U as Y, V as q, W as J, X as Q, u as $, O as aa, Z as sa } from "../index-C4GBbW3N.js";
2
+ import { B as oa, a as ta, b as ia, e as ra, f as la, g as na, c as da, d as Ta, C as Sa, F as Ia, h as ca, i as Aa, j as Oa, k as ua, S as Ba, l as Ca, m as ga, T as _a } from "../index-WkGIywHj.js";
3
+ export {
4
+ e as Accordion,
5
+ o as AccordionContent,
6
+ t as AccordionItem,
7
+ i as AccordionToggle,
8
+ r as Alert,
9
+ l as AlertActions,
10
+ n as AlertButton,
11
+ d as AlertStandaloneLink,
12
+ oa as BADGE_COLORS,
13
+ ta as BADGE_SIZES,
14
+ ia as BADGE_TYPES,
15
+ ra as BUTTON_COLORS,
16
+ la as BUTTON_ICON_POSITIONS,
17
+ na as BUTTON_SIZES,
18
+ da as Badge,
19
+ T as BadgeCount,
20
+ S as BarChart,
21
+ I as Breadcrumbs,
22
+ Ta as Button,
23
+ Sa as Card,
24
+ c as CheckboxBase,
25
+ A as CheckboxField,
26
+ O as CheckboxGroup,
27
+ u as CodeBlock,
28
+ B as DisclosurePrimitive,
29
+ C as DonutChart,
30
+ g as Dropdown,
31
+ _ as Error,
32
+ Ia as FLIGHT_ICON_SIZES,
33
+ N as Field,
34
+ L as Fieldset,
35
+ p as FileInputBase,
36
+ E as FileInputField,
37
+ ca as FlightIcon,
38
+ F as HelperText,
39
+ D as IconTile,
40
+ x as Indicator,
41
+ b as InlineLink,
42
+ m as Label,
43
+ G as Legend,
44
+ R as MDSButton,
45
+ k as ModalProvider,
46
+ h as RadioBase,
47
+ P as RadioCard,
48
+ H as RadioCardGroup,
49
+ Z as RadioField,
50
+ f as RadioGroup,
51
+ Aa as STANDALONE_LINK_COLORS,
52
+ Oa as STANDALONE_LINK_ICON_POSITIONS,
53
+ ua as STANDALONE_LINK_SIZES,
54
+ v as SelectField,
55
+ K as Separator,
56
+ Ba as StandaloneLink,
57
+ M as SuperSelectField,
58
+ Ca as TEXT_COLORS,
59
+ ga as TEXT_WEIGHTS,
60
+ U as Table,
61
+ X as Tabs,
62
+ _a as Text,
63
+ j as TextAreaField,
64
+ w as TextInput,
65
+ y as TextInputBase,
66
+ z as ToggleBase,
67
+ V as ToggleField,
68
+ W as ToggleGroup,
69
+ Y as getDensity,
70
+ q as getHorizontalAlignment,
71
+ J as getScope,
72
+ Q as getVerticalAlignment,
73
+ $ as useDisclosurePrimitive,
74
+ aa as useModal,
75
+ sa as useTabsContext
76
+ };
77
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { FlightIconName } from '../flight-icon';
1
+ import type { FlightIconName } from '../flight-icon';
2
2
  interface InlineLinkProps {
3
3
  /**
4
4
  * There are two available colors for an `<InlineLink />`: primary and secondary.
@@ -1,4 +1,5 @@
1
- import { ForwardRefExoticComponent, ButtonHTMLAttributes, MouseEventHandler } from 'react';
1
+ import { type ForwardRefExoticComponent } from 'react';
2
+ import type { ButtonHTMLAttributes, MouseEventHandler } from 'react';
2
3
  interface InteractiveProps extends React.HTMLAttributes<HTMLElement> {
3
4
  isHrefExternal?: boolean;
4
5
  href?: string;
@@ -7,7 +8,7 @@ interface InteractiveProps extends React.HTMLAttributes<HTMLElement> {
7
8
  prefetch?: boolean;
8
9
  locale?: string;
9
10
  }
10
- declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
11
+ declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
11
12
  /**
12
13
  * Smaller, local version of our getLocalizedLinkProps util,
13
14
  * cloned here to work around a cyclic dependency issue
@@ -20,7 +21,7 @@ declare const Interactive: ForwardRefExoticComponent<InteractiveProps & import('
20
21
  export declare const getLocalizedLinkProps: (href: string, locale?: string, isHrefExternal?: boolean) => {
21
22
  href: string;
22
23
  hrefLang: string | undefined;
23
- isHrefExternal?: boolean | undefined;
24
+ isHrefExternal?: boolean;
24
25
  };
25
26
  export type { InteractiveProps };
26
27
  export { Interactive };
@@ -1,5 +1,5 @@
1
- import { ForwardRefExoticComponent } from 'react';
2
- import { ButtonProps } from './types';
1
+ import { type ForwardRefExoticComponent } from 'react';
2
+ import type { ButtonProps } from './types';
3
3
  /** @deprecated Use <Button> from '@hashicorp/mds-react/button' instead. Will be removed in v1.0. */
4
- declare const MDSButton: ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
4
+ declare const MDSButton: ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
5
5
  export { MDSButton };
@@ -1,4 +1,4 @@
1
- import { COLORS } from './utils';
1
+ import type { COLORS } from './utils';
2
2
  type HashiCorpProduct = 'hashicorp' | 'boundary' | 'consul' | 'nomad' | 'packer' | 'terraform' | 'vault' | 'vagrant' | 'waypoint';
3
3
  export type Size = 'medium' | 'small';
4
4
  export type ThemeBackground = 'light' | 'dark' | 'brand';
@@ -1,4 +1,4 @@
1
- import { ButtonColor, Theme } from './types';
1
+ import type { ButtonColor, Theme } from './types';
2
2
  export declare const COLORS: readonly ["primary", "primary-black", "primary-white", "secondary", "secondary-high-contrast", "secondary-white", "secondary-black", "tertiary", "critical", "boundary", "consul", "nomad", "packer", "terraform", "vagrant", "vault", "waypoint", "hashicorp"];
3
3
  export declare function determineColor(theme?: Theme): ButtonColor;
4
4
  export declare const LINK_TYPE_ICON_MAP: {
@@ -1,4 +1,4 @@
1
- import { ReactNode, HTMLAttributes } from 'react';
1
+ import { type ReactNode, type HTMLAttributes } from 'react';
2
2
  interface MenuPrimitiveProps extends HTMLAttributes<HTMLDivElement> {
3
3
  onClose?: () => void;
4
4
  isFullWidth?: boolean;
@@ -1,9 +1,9 @@
1
- import { MouseEventHandler, RefObject } from 'react';
1
+ import { type MouseEventHandler, type RefObject } from 'react';
2
2
  export interface MenuPrimitiveContextState {
3
3
  isOpen: boolean;
4
4
  onClickToggle: MouseEventHandler<HTMLButtonElement>;
5
5
  toggleRef: RefObject<HTMLDivElement>;
6
6
  closeMenu: () => void;
7
7
  }
8
- export declare const MenuPrimitiveContext: import('react').Context<MenuPrimitiveContextState | undefined>;
8
+ export declare const MenuPrimitiveContext: import("react").Context<MenuPrimitiveContextState | undefined>;
9
9
  export declare function useMenuPrimitive(): MenuPrimitiveContextState;