@patternfly/patternfly-doc-core 1.11.1 → 1.12.1

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 (461) hide show
  1. package/.astro/collections/{examples.schema.json → react-component-docs.schema.json} +4 -3
  2. package/.astro/content-modules.mjs +84 -2
  3. package/.astro/content.d.ts +3 -11
  4. package/cli/cli.ts +35 -16
  5. package/cli/convertToMDX.ts +13 -2
  6. package/cli/createCollectionContent.ts +2 -1
  7. package/dist/cli/cli.js +17 -6
  8. package/dist/cli/convertToMDX.js +10 -2
  9. package/dist/cli/createCollectionContent.js +2 -1
  10. package/dist/docs/_astro/AutoLinkHeader.BijNRLMB.js +1 -0
  11. package/dist/docs/_astro/CSSTable.-Emc9iTg.js +1 -0
  12. package/dist/docs/_astro/DropdownList.DP2npVYh.js +1 -0
  13. package/dist/docs/_astro/Label.CM_es7Cu.js +1 -0
  14. package/dist/docs/_astro/LiveExample.B5R4Dzng.js +263 -0
  15. package/dist/docs/_astro/Navigation.B2RHZcqO.js +1 -0
  16. package/dist/docs/_astro/PageSidebarBody.DgDLnRuY.js +1 -0
  17. package/dist/docs/_astro/PropsTables.D6ZI3FGj.css +1 -0
  18. package/dist/docs/_astro/PropsTables.YkW1puJk.js +1 -0
  19. package/dist/docs/_astro/SearchInput.CQ7aDztp.js +1 -0
  20. package/dist/docs/_astro/SectionGallery.B0I2mi5J.js +1 -0
  21. package/dist/docs/_astro/StackItem.CMxajCCo.js +1 -0
  22. package/dist/docs/_astro/Toolbar.BNjGRsAQ.js +1 -0
  23. package/dist/docs/_astro/ToolbarContent.CAAHjZHW.js +1 -0
  24. package/dist/{_astro/_page_.D1z73Byz.css → docs/_astro/_page_.BG_fQ4i5.css} +1 -1
  25. package/dist/docs/_astro/angle-down-icon.Dqz5ba9D.js +1 -0
  26. package/dist/docs/_astro/c_table__sticky_cell_InsetInlineStart.DGzYmtkF.js +8 -0
  27. package/dist/{_astro/divider.BLVh3KnH.js → docs/_astro/divider.BP4XR7uq.js} +1 -1
  28. package/dist/docs/_astro/index.DGdw5tfb.js +16 -0
  29. package/dist/{_astro/patternfly_charts.Dp3KzAU6.js → docs/_astro/patternfly_charts.CpLYMsW2.js} +23 -30
  30. package/dist/docs/_astro/resizeObserver.BgQpxO8W.js +1 -0
  31. package/dist/{_routes.json → docs/_routes.json} +1 -3
  32. package/dist/{_worker.js → docs/_worker.js}/_@astrojs-ssr-adapter.mjs +1 -1
  33. package/dist/{_worker.js → docs/_worker.js}/_astro-internal_middleware.mjs +3 -3
  34. package/dist/docs/_worker.js/chunks/Backdrop_ByJvccKQ.mjs +1 -0
  35. package/dist/docs/_worker.js/chunks/Backdrop_D12wBLrB.mjs +1 -0
  36. package/dist/docs/_worker.js/chunks/BackgroundImage_7zaRIuh-.mjs +1 -0
  37. package/dist/docs/_worker.js/chunks/BackgroundImage_BFUrU51J.mjs +1 -0
  38. package/dist/docs/_worker.js/chunks/Badge_DloPmeMn.mjs +1 -0
  39. package/dist/docs/_worker.js/chunks/Badge_DxGDbEGv.mjs +1 -0
  40. package/dist/docs/_worker.js/chunks/Banner_4Te4yy7I.mjs +1 -0
  41. package/dist/docs/_worker.js/chunks/Banner_FbFCGml0.mjs +1 -0
  42. package/dist/docs/_worker.js/chunks/Brand_Cjeb58fX.mjs +1 -0
  43. package/dist/docs/_worker.js/chunks/Brand_DZEvbkMH.mjs +1 -0
  44. package/dist/docs/_worker.js/chunks/Breadcrumb_DkNDUMw0.mjs +1 -0
  45. package/dist/docs/_worker.js/chunks/Breadcrumb_bVSwIfTk.mjs +1 -0
  46. package/dist/docs/_worker.js/chunks/Button_BqggYTWh.mjs +1 -0
  47. package/dist/docs/_worker.js/chunks/Button_DbZb-z5h.mjs +1 -0
  48. package/dist/docs/_worker.js/chunks/CalendarMonth_BdoIQD1o.mjs +1 -0
  49. package/dist/docs/_worker.js/chunks/CalendarMonth_BqZc2rYW.mjs +1 -0
  50. package/dist/docs/_worker.js/chunks/Card_BW6WmwTW.mjs +1 -0
  51. package/dist/docs/_worker.js/chunks/Card_CEDol7Xx.mjs +1 -0
  52. package/dist/docs/_worker.js/chunks/Checkbox_BqVpiIvF.mjs +1 -0
  53. package/dist/docs/_worker.js/chunks/Checkbox_DSYhfv7p.mjs +1 -0
  54. package/dist/docs/_worker.js/chunks/Chip_BciXepRF.mjs +1 -0
  55. package/dist/docs/_worker.js/chunks/Chip_C23BxFTk.mjs +1 -0
  56. package/dist/docs/_worker.js/chunks/ClipboardCopy_BjySfoK1.mjs +1 -0
  57. package/dist/docs/_worker.js/chunks/ClipboardCopy_CvrD2b3T.mjs +1 -0
  58. package/dist/docs/_worker.js/chunks/CodeBlock_CuH1PrfL.mjs +1 -0
  59. package/dist/docs/_worker.js/chunks/CodeBlock_DK5AauFn.mjs +1 -0
  60. package/dist/docs/_worker.js/chunks/Content_BfZIFUr8.mjs +1 -0
  61. package/dist/docs/_worker.js/chunks/Content_lBUC3eEp.mjs +1 -0
  62. package/dist/docs/_worker.js/chunks/DataList_CSJAkMMZ.mjs +1 -0
  63. package/dist/docs/_worker.js/chunks/DataList_CaFvg0uz.mjs +1 -0
  64. package/dist/docs/_worker.js/chunks/DatePicker_Cw2abdEU.mjs +1 -0
  65. package/dist/docs/_worker.js/chunks/DatePicker_bYwsFHXL.mjs +1 -0
  66. package/dist/docs/_worker.js/chunks/DescriptionList_BTTyevMb.mjs +1 -0
  67. package/dist/docs/_worker.js/chunks/DescriptionList_Dr51d-67.mjs +1 -0
  68. package/dist/docs/_worker.js/chunks/Divider_BgOt1--F.mjs +1 -0
  69. package/dist/docs/_worker.js/chunks/Divider_Bh7n4QTo.mjs +1 -0
  70. package/dist/docs/_worker.js/chunks/DragDrop_BF-aF6Z8.mjs +1 -0
  71. package/dist/docs/_worker.js/chunks/DragDrop_DId590rN.mjs +1 -0
  72. package/dist/docs/_worker.js/chunks/Drawer_BVywTMVo.mjs +1 -0
  73. package/dist/docs/_worker.js/chunks/Drawer_RrCnySEa.mjs +1 -0
  74. package/dist/docs/_worker.js/chunks/Dropdown_BjtqviYW.mjs +1 -0
  75. package/dist/docs/_worker.js/chunks/Dropdown_GiUvjFPw.mjs +1 -0
  76. package/dist/docs/_worker.js/chunks/DualListSelector_8uLukfP0.mjs +1 -0
  77. package/dist/docs/_worker.js/chunks/DualListSelector_Bgj1IWqe.mjs +1 -0
  78. package/dist/docs/_worker.js/chunks/DualListSelector_C5QjTplp.mjs +1 -0
  79. package/dist/docs/_worker.js/chunks/DualListSelector_DLgspM0s.mjs +1 -0
  80. package/dist/docs/_worker.js/chunks/EmptyState_Ct_PJba3.mjs +1 -0
  81. package/dist/docs/_worker.js/chunks/EmptyState_Dk3hKJlg.mjs +1 -0
  82. package/dist/docs/_worker.js/chunks/ExpandableSection_DSw76PjZ.mjs +1 -0
  83. package/dist/docs/_worker.js/chunks/ExpandableSection_vUQO3FgG.mjs +1 -0
  84. package/dist/docs/_worker.js/chunks/FileUpload_CEvZ0G-d.mjs +1 -0
  85. package/dist/docs/_worker.js/chunks/FileUpload_Ci_s8Ghd.mjs +1 -0
  86. package/dist/docs/_worker.js/chunks/FormSelect_C2YPRAlw.mjs +1 -0
  87. package/dist/docs/_worker.js/chunks/FormSelect_DWShl8Fb.mjs +1 -0
  88. package/dist/docs/_worker.js/chunks/Form_Dyb98Nez.mjs +1 -0
  89. package/dist/docs/_worker.js/chunks/Form_olaoRN4o.mjs +1 -0
  90. package/dist/docs/_worker.js/chunks/HelperText_2CcHVaih.mjs +1 -0
  91. package/dist/docs/_worker.js/chunks/HelperText_DthGttZo.mjs +1 -0
  92. package/dist/docs/_worker.js/chunks/Hint_BXDZKYhJ.mjs +1 -0
  93. package/dist/docs/_worker.js/chunks/Hint_DHoiYdn6.mjs +1 -0
  94. package/dist/docs/_worker.js/chunks/Icon_C4IPnIAg.mjs +1 -0
  95. package/dist/docs/_worker.js/chunks/Icon_C_Dqbg9w.mjs +1 -0
  96. package/dist/docs/_worker.js/chunks/InputGroup_CDKP-uXZ.mjs +1 -0
  97. package/dist/docs/_worker.js/chunks/InputGroup_CmZgaEyr.mjs +1 -0
  98. package/dist/docs/_worker.js/chunks/JumpLinks_DvM3PVg0.mjs +1 -0
  99. package/dist/docs/_worker.js/chunks/JumpLinks_Dvdlxdps.mjs +1 -0
  100. package/dist/docs/_worker.js/chunks/Label_C7fP9Jp9.mjs +1 -0
  101. package/dist/docs/_worker.js/chunks/Label_Cxir7_Q4.mjs +1 -0
  102. package/dist/docs/_worker.js/chunks/List_CUgwFnXa.mjs +1 -0
  103. package/dist/docs/_worker.js/chunks/List_CWAsiYnN.mjs +1 -0
  104. package/dist/docs/_worker.js/chunks/LoginPage_BDfliKtU.mjs +1 -0
  105. package/dist/docs/_worker.js/chunks/LoginPage_BjIl_nF9.mjs +1 -0
  106. package/dist/docs/_worker.js/chunks/Masthead_BWjm5CFj.mjs +1 -0
  107. package/dist/docs/_worker.js/chunks/Masthead_BZnYzDu_.mjs +1 -0
  108. package/dist/docs/_worker.js/chunks/MenuToggle_DeKwv469.mjs +1 -0
  109. package/dist/docs/_worker.js/chunks/MenuToggle_DmJISlPR.mjs +1 -0
  110. package/dist/docs/_worker.js/chunks/Menu_DRRoq5PM.mjs +1 -0
  111. package/dist/docs/_worker.js/chunks/Menu_Sl-QVQ_w.mjs +1 -0
  112. package/dist/docs/_worker.js/chunks/Modal_6WZzoDHU.mjs +1 -0
  113. package/dist/docs/_worker.js/chunks/Modal_BI2dVPRJ.mjs +1 -0
  114. package/dist/docs/_worker.js/chunks/Modal_CdokBUDP.mjs +1 -0
  115. package/dist/docs/_worker.js/chunks/Modal_DJRobnfc.mjs +1 -0
  116. package/dist/docs/_worker.js/chunks/MultipleFileUpload_BaHVtkF_.mjs +1 -0
  117. package/dist/docs/_worker.js/chunks/MultipleFileUpload_BznvLbsj.mjs +1 -0
  118. package/dist/docs/_worker.js/chunks/Nav_DwqATcJ4.mjs +1 -0
  119. package/dist/docs/_worker.js/chunks/Nav_GZ0nRYXE.mjs +1 -0
  120. package/dist/docs/_worker.js/chunks/NotificationBadge_DO4OLgvO.mjs +1 -0
  121. package/dist/docs/_worker.js/chunks/NotificationBadge_DjINhOQ5.mjs +1 -0
  122. package/dist/docs/_worker.js/chunks/NotificationDrawer_BtpQ4pmZ.mjs +1 -0
  123. package/dist/docs/_worker.js/chunks/NotificationDrawer_D1lmMCgd.mjs +1 -0
  124. package/dist/docs/_worker.js/chunks/NumberInput_CggpJ5ge.mjs +1 -0
  125. package/dist/docs/_worker.js/chunks/NumberInput_zMcSUUwH.mjs +1 -0
  126. package/dist/docs/_worker.js/chunks/OverflowMenu_BX4nwFvK.mjs +1 -0
  127. package/dist/docs/_worker.js/chunks/OverflowMenu_DnQ7wMy-.mjs +1 -0
  128. package/dist/docs/_worker.js/chunks/Page_Cw_XTB6Y.mjs +1 -0
  129. package/dist/docs/_worker.js/chunks/Page_UhywZXdY.mjs +1 -0
  130. package/dist/docs/_worker.js/chunks/Pagination_7rr0n7-V.mjs +1 -0
  131. package/dist/docs/_worker.js/chunks/Pagination_Dc5L6yaI.mjs +1 -0
  132. package/dist/docs/_worker.js/chunks/Panel_Bl_LqCWS.mjs +1 -0
  133. package/dist/docs/_worker.js/chunks/Panel_s8-TwBlS.mjs +1 -0
  134. package/dist/docs/_worker.js/chunks/Popover_CjipqBWs.mjs +1 -0
  135. package/dist/docs/_worker.js/chunks/Popover_DvQgGJTf.mjs +1 -0
  136. package/dist/docs/_worker.js/chunks/ProgressStepper_DXBI4K2w.mjs +1 -0
  137. package/dist/docs/_worker.js/chunks/ProgressStepper_lBd5mTHE.mjs +1 -0
  138. package/dist/docs/_worker.js/chunks/Progress_BZA5taDC.mjs +1 -0
  139. package/dist/docs/_worker.js/chunks/Progress_CIgybc-D.mjs +1 -0
  140. package/dist/docs/_worker.js/chunks/Radio_3tPx1coq.mjs +1 -0
  141. package/dist/docs/_worker.js/chunks/Radio_BG7VZAk6.mjs +1 -0
  142. package/dist/docs/_worker.js/chunks/SearchInput_BZ43-Elo.mjs +1 -0
  143. package/dist/docs/_worker.js/chunks/SearchInput_aCFv-N1U.mjs +1 -0
  144. package/dist/docs/_worker.js/chunks/Select_B4cumL7U.mjs +1 -0
  145. package/dist/docs/_worker.js/chunks/Select_CJ78kBVM.mjs +1 -0
  146. package/dist/docs/_worker.js/chunks/Sidebar_Bto2_gKJ.mjs +1 -0
  147. package/dist/docs/_worker.js/chunks/Sidebar_DOfifBRA.mjs +1 -0
  148. package/dist/docs/_worker.js/chunks/SimpleList_CVkO5Odp.mjs +1 -0
  149. package/dist/docs/_worker.js/chunks/SimpleList_oJajk3_z.mjs +1 -0
  150. package/dist/docs/_worker.js/chunks/Skeleton_CCJNka-d.mjs +1 -0
  151. package/dist/docs/_worker.js/chunks/Skeleton_N02yA_k6.mjs +1 -0
  152. package/dist/docs/_worker.js/chunks/SkipToContent_DvOYRCWm.mjs +1 -0
  153. package/dist/docs/_worker.js/chunks/SkipToContent_o7vh-U_u.mjs +1 -0
  154. package/dist/docs/_worker.js/chunks/Slider_C0bH-JMY.mjs +1 -0
  155. package/dist/docs/_worker.js/chunks/Slider_CWRDqhx4.mjs +1 -0
  156. package/dist/docs/_worker.js/chunks/Spinner_B-x8bJt0.mjs +1 -0
  157. package/dist/docs/_worker.js/chunks/Spinner_hzAAbZdS.mjs +1 -0
  158. package/dist/docs/_worker.js/chunks/Switch_Cpr1OETy.mjs +1 -0
  159. package/dist/docs/_worker.js/chunks/Switch_Du7AKJ4O.mjs +1 -0
  160. package/dist/docs/_worker.js/chunks/Tabs_CzDrfKA-.mjs +1 -0
  161. package/dist/docs/_worker.js/chunks/Tabs_KXDkISY4.mjs +1 -0
  162. package/dist/docs/_worker.js/chunks/TextArea_C1dmG8mr.mjs +1 -0
  163. package/dist/docs/_worker.js/chunks/TextArea_Dtm0m8LO.mjs +1 -0
  164. package/dist/docs/_worker.js/chunks/TextInputGroup_D0NXU95v.mjs +1 -0
  165. package/dist/docs/_worker.js/chunks/TextInputGroup_mJpBrogC.mjs +1 -0
  166. package/dist/docs/_worker.js/chunks/TextInput_B0XLYaVA.mjs +1 -0
  167. package/dist/docs/_worker.js/chunks/TextInput_CmLcsUiv.mjs +1 -0
  168. package/dist/docs/_worker.js/chunks/Tile_CF_12LPU.mjs +1 -0
  169. package/dist/docs/_worker.js/chunks/Tile_DJ0LawLW.mjs +1 -0
  170. package/dist/docs/_worker.js/chunks/TimePicker_CijfSKJQ.mjs +1 -0
  171. package/dist/docs/_worker.js/chunks/TimePicker_VX9VE-Uy.mjs +1 -0
  172. package/dist/docs/_worker.js/chunks/Timestamp_D7uyrIK7.mjs +1 -0
  173. package/dist/docs/_worker.js/chunks/Timestamp_c2Mozpr4.mjs +1 -0
  174. package/dist/docs/_worker.js/chunks/Title_DbrwFEEy.mjs +1 -0
  175. package/dist/docs/_worker.js/chunks/Title_DlFn7G9R.mjs +1 -0
  176. package/dist/docs/_worker.js/chunks/ToggleGroup_DpLWzfAW.mjs +1 -0
  177. package/dist/docs/_worker.js/chunks/ToggleGroup_j1ooRpX3.mjs +1 -0
  178. package/dist/docs/_worker.js/chunks/Toolbar_BEIh7r7J.mjs +1 -0
  179. package/dist/docs/_worker.js/chunks/Toolbar_mjrD3_l-.mjs +1 -0
  180. package/dist/docs/_worker.js/chunks/Tooltip_Bp5XOVoV.mjs +1 -0
  181. package/dist/docs/_worker.js/chunks/Tooltip_BrFKk02i.mjs +1 -0
  182. package/dist/docs/_worker.js/chunks/TreeView_BImfKPD_.mjs +1 -0
  183. package/dist/docs/_worker.js/chunks/TreeView_CgO4iC1E.mjs +1 -0
  184. package/dist/docs/_worker.js/chunks/Truncate_Bn55QoeZ.mjs +1 -0
  185. package/dist/docs/_worker.js/chunks/Truncate_S939OotH.mjs +1 -0
  186. package/dist/docs/_worker.js/chunks/Wizard_B28f3non.mjs +1 -0
  187. package/dist/docs/_worker.js/chunks/Wizard_B4Dw5Yc8.mjs +1 -0
  188. package/dist/docs/_worker.js/chunks/Wizard_BOCBVIjJ.mjs +1 -0
  189. package/dist/docs/_worker.js/chunks/Wizard_C2sit354.mjs +1 -0
  190. package/dist/{_worker.js/renderers.mjs → docs/_worker.js/chunks/_@astro-renderers_D4IG6Oyo.mjs} +55 -3
  191. package/dist/{_worker.js/chunks/_@astrojs-ssr-adapter_IMtcR503.mjs → docs/_worker.js/chunks/_@astrojs-ssr-adapter_CBRUgCDy.mjs} +4 -4
  192. package/dist/docs/_worker.js/chunks/_astro_assets_tcq0nD7B.mjs +1 -0
  193. package/dist/docs/_worker.js/chunks/_astro_data-layer-content_gjMewtSO.mjs +1 -0
  194. package/dist/{_worker.js/chunks/astro/server_YsSSp7Ny.mjs → docs/_worker.js/chunks/astro/server_CVEnF9i1.mjs} +1 -3
  195. package/dist/{_worker.js/chunks/astro-designed-error-pages_MEt0E9xn.mjs → docs/_worker.js/chunks/astro-designed-error-pages_CXRddWNa.mjs} +1 -1
  196. package/dist/docs/_worker.js/chunks/content-assets_XqCgPAV2.mjs +1 -0
  197. package/dist/docs/_worker.js/chunks/content-modules_D0Eecfsp.mjs +1 -0
  198. package/dist/{_worker.js/chunks/index_BE2AHcwI.mjs → docs/_worker.js/chunks/index_CYXMeXT4.mjs} +2 -2
  199. package/dist/{_worker.js/chunks/noop-middleware_CMUpAQ6F.mjs → docs/_worker.js/chunks/noop-middleware_DIXVCvyq.mjs} +1 -1
  200. package/dist/docs/_worker.js/chunks/sharp_BPZD2zgR.mjs +1 -0
  201. package/dist/{_worker.js → docs/_worker.js}/index.js +4 -8
  202. package/dist/docs/_worker.js/manifest_DGS5MtBy.mjs +100 -0
  203. package/dist/{_worker.js → docs/_worker.js}/pages/_image.astro.mjs +1 -1
  204. package/dist/docs/_worker.js/pages/_section_/_---page_.astro.mjs +1 -0
  205. package/dist/docs/_worker.js/pages/_section_/_page_/_---tab_.astro.mjs +1 -0
  206. package/dist/docs/_worker.js/pages/index.astro.mjs +1 -0
  207. package/dist/{_worker.js → docs/_worker.js}/pages/props.astro.mjs +1 -1
  208. package/dist/docs/_worker.js/renderers.mjs +2 -0
  209. package/dist/docs/components/about-modal/index.html +56 -0
  210. package/dist/docs/components/about-modal/react/index.html +56 -0
  211. package/dist/docs/components/accordion/index.html +62 -0
  212. package/dist/docs/components/accordion/react/index.html +62 -0
  213. package/dist/docs/components/action-list/index.html +59 -0
  214. package/dist/docs/components/action-list/react/index.html +59 -0
  215. package/dist/docs/components/alert/index.html +428 -0
  216. package/dist/docs/components/alert/react/index.html +428 -0
  217. package/dist/docs/components/avatar/index.html +56 -0
  218. package/dist/docs/components/avatar/react/index.html +56 -0
  219. package/dist/docs/components/back-to-top/index.html +53 -0
  220. package/dist/docs/components/back-to-top/react/index.html +53 -0
  221. package/dist/docs/components/backdrop/index.html +49 -0
  222. package/dist/docs/components/backdrop/react/index.html +49 -0
  223. package/dist/docs/components/background-image/index.html +49 -0
  224. package/dist/docs/components/background-image/react/index.html +49 -0
  225. package/dist/docs/components/badge/index.html +57 -0
  226. package/dist/docs/components/badge/react/index.html +57 -0
  227. package/dist/docs/components/banner/index.html +57 -0
  228. package/dist/docs/components/banner/react/index.html +57 -0
  229. package/dist/docs/components/brand/index.html +55 -0
  230. package/dist/docs/components/brand/react/index.html +55 -0
  231. package/dist/docs/components/breadcrumb/index.html +59 -0
  232. package/dist/docs/components/breadcrumb/react/index.html +59 -0
  233. package/dist/docs/components/button/index.html +152 -0
  234. package/dist/docs/components/button/react/index.html +152 -0
  235. package/dist/docs/components/calendar-month/index.html +55 -0
  236. package/dist/docs/components/calendar-month/react/index.html +55 -0
  237. package/dist/docs/components/card/index.html +159 -0
  238. package/dist/docs/components/card/react/index.html +159 -0
  239. package/dist/docs/components/checkbox/index.html +78 -0
  240. package/dist/docs/components/checkbox/react/index.html +78 -0
  241. package/dist/docs/components/chip/index.html +61 -0
  242. package/dist/docs/components/chip/react-deprecated/index.html +61 -0
  243. package/dist/docs/components/clipboard-copy/index.html +84 -0
  244. package/dist/docs/components/clipboard-copy/react/index.html +84 -0
  245. package/dist/docs/components/code-block/index.html +55 -0
  246. package/dist/docs/components/code-block/react/index.html +55 -0
  247. package/dist/docs/components/content/index.html +79 -0
  248. package/dist/docs/components/content/react/index.html +79 -0
  249. package/dist/docs/components/data-list/index.html +86 -0
  250. package/dist/docs/components/data-list/react/index.html +86 -0
  251. package/dist/docs/components/date-picker/index.html +77 -0
  252. package/dist/docs/components/date-picker/react/index.html +77 -0
  253. package/dist/docs/components/description-list/index.html +135 -0
  254. package/dist/docs/components/description-list/react/index.html +135 -0
  255. package/dist/docs/components/divider/index.html +74 -0
  256. package/dist/docs/components/divider/react/index.html +74 -0
  257. package/dist/docs/components/drag-and-drop/index.html +69 -0
  258. package/dist/docs/components/drag-and-drop/react-deprecated/index.html +69 -0
  259. package/dist/docs/components/drawer/index.html +108 -0
  260. package/dist/docs/components/drawer/react/index.html +108 -0
  261. package/dist/docs/components/dropdown/index.html +71 -0
  262. package/dist/docs/components/dropdown/react/index.html +71 -0
  263. package/dist/docs/components/dual-list-selector/index.html +89 -0
  264. package/dist/docs/components/dual-list-selector/react/index.html +89 -0
  265. package/dist/docs/components/dual-list-selector/react-deprecated/index.html +106 -0
  266. package/dist/docs/components/empty-state/index.html +71 -0
  267. package/dist/docs/components/empty-state/react/index.html +71 -0
  268. package/dist/docs/components/expandable-section/index.html +76 -0
  269. package/dist/docs/components/expandable-section/react/index.html +76 -0
  270. package/dist/docs/components/form/index.html +87 -0
  271. package/dist/docs/components/form/react/index.html +87 -0
  272. package/dist/docs/components/form-select/index.html +59 -0
  273. package/dist/docs/components/form-select/react/index.html +59 -0
  274. package/dist/docs/components/helper-text/index.html +57 -0
  275. package/dist/docs/components/helper-text/react/index.html +57 -0
  276. package/dist/docs/components/hint/index.html +59 -0
  277. package/dist/docs/components/hint/react/index.html +59 -0
  278. package/dist/docs/components/icon/index.html +80 -0
  279. package/dist/docs/components/icon/react/index.html +80 -0
  280. package/dist/docs/components/input-group/index.html +62 -0
  281. package/dist/docs/components/input-group/react/index.html +62 -0
  282. package/dist/docs/components/jump-links/index.html +66 -0
  283. package/dist/docs/components/jump-links/react/index.html +66 -0
  284. package/dist/docs/components/label/index.html +103 -0
  285. package/dist/docs/components/label/react/index.html +103 -0
  286. package/dist/docs/components/list/index.html +68 -0
  287. package/dist/docs/components/list/react/index.html +68 -0
  288. package/dist/docs/components/login-page/index.html +56 -0
  289. package/dist/docs/components/login-page/react/index.html +56 -0
  290. package/dist/docs/components/masthead/index.html +76 -0
  291. package/dist/docs/components/masthead/react/index.html +76 -0
  292. package/dist/docs/components/menu/index.html +160 -0
  293. package/dist/docs/components/menu/react/index.html +160 -0
  294. package/dist/docs/components/menu-toggle/index.html +201 -0
  295. package/dist/docs/components/menu-toggle/react/index.html +201 -0
  296. package/dist/docs/components/modal/index.html +113 -0
  297. package/dist/docs/components/modal/react/index.html +113 -0
  298. package/dist/docs/components/modal/react-deprecated/index.html +117 -0
  299. package/dist/docs/components/multiple-file-upload/index.html +84 -0
  300. package/dist/docs/components/multiple-file-upload/react/index.html +84 -0
  301. package/dist/docs/components/navigation/index.html +89 -0
  302. package/dist/docs/components/navigation/react/index.html +89 -0
  303. package/dist/docs/components/notification-badge/index.html +65 -0
  304. package/dist/docs/components/notification-badge/react/index.html +65 -0
  305. package/dist/docs/components/notification-drawer/index.html +56 -0
  306. package/dist/docs/components/notification-drawer/react/index.html +56 -0
  307. package/dist/docs/components/number-input/index.html +72 -0
  308. package/dist/docs/components/number-input/react/index.html +72 -0
  309. package/dist/docs/components/overflow-menu/index.html +64 -0
  310. package/dist/docs/components/overflow-menu/react/index.html +64 -0
  311. package/dist/docs/components/page/index.html +114 -0
  312. package/dist/docs/components/page/react/index.html +114 -0
  313. package/dist/docs/components/pagination/index.html +77 -0
  314. package/dist/docs/components/pagination/react/index.html +77 -0
  315. package/dist/docs/components/panel/index.html +196 -0
  316. package/dist/docs/components/panel/react/index.html +196 -0
  317. package/dist/docs/components/popover/index.html +89 -0
  318. package/dist/docs/components/popover/react/index.html +89 -0
  319. package/dist/docs/components/progress/index.html +101 -0
  320. package/dist/docs/components/progress/react/index.html +101 -0
  321. package/dist/docs/components/progress-stepper/index.html +74 -0
  322. package/dist/docs/components/progress-stepper/react/index.html +74 -0
  323. package/dist/docs/components/radio/index.html +75 -0
  324. package/dist/docs/components/radio/react/index.html +75 -0
  325. package/dist/docs/components/search-input/index.html +76 -0
  326. package/dist/docs/components/search-input/react/index.html +76 -0
  327. package/dist/docs/components/select/index.html +129 -0
  328. package/dist/docs/components/select/react/index.html +129 -0
  329. package/dist/docs/components/sidebar/index.html +77 -0
  330. package/dist/docs/components/sidebar/react/index.html +77 -0
  331. package/dist/docs/components/simple-file-upload/index.html +93 -0
  332. package/dist/docs/components/simple-file-upload/react/index.html +93 -0
  333. package/dist/docs/components/simple-list/index.html +59 -0
  334. package/dist/docs/components/simple-list/react/index.html +59 -0
  335. package/dist/docs/components/skeleton/index.html +62 -0
  336. package/dist/docs/components/skeleton/react/index.html +62 -0
  337. package/dist/docs/components/skip-to-content/index.html +49 -0
  338. package/dist/docs/components/skip-to-content/react/index.html +49 -0
  339. package/dist/docs/components/slider/index.html +78 -0
  340. package/dist/docs/components/slider/react/index.html +78 -0
  341. package/dist/docs/components/spinner/index.html +59 -0
  342. package/dist/docs/components/spinner/react/index.html +59 -0
  343. package/dist/docs/components/switch/index.html +66 -0
  344. package/dist/docs/components/switch/react/index.html +66 -0
  345. package/dist/docs/components/tabs/index.html +169 -0
  346. package/dist/docs/components/tabs/react/index.html +169 -0
  347. package/dist/docs/components/text-area/index.html +77 -0
  348. package/dist/docs/components/text-area/react/index.html +77 -0
  349. package/dist/docs/components/text-input/index.html +71 -0
  350. package/dist/docs/components/text-input/react/index.html +71 -0
  351. package/dist/docs/components/text-input-group/index.html +68 -0
  352. package/dist/docs/components/text-input-group/react/index.html +68 -0
  353. package/dist/docs/components/tile/index.html +153 -0
  354. package/dist/docs/components/tile/react-deprecated/index.html +153 -0
  355. package/dist/docs/components/time-picker/index.html +67 -0
  356. package/dist/docs/components/time-picker/react/index.html +67 -0
  357. package/dist/docs/components/timestamp/index.html +75 -0
  358. package/dist/docs/components/timestamp/react/index.html +75 -0
  359. package/dist/docs/components/title/index.html +53 -0
  360. package/dist/docs/components/title/react/index.html +53 -0
  361. package/dist/docs/components/toggle-group/index.html +74 -0
  362. package/dist/docs/components/toggle-group/react/index.html +74 -0
  363. package/dist/docs/components/toolbar/index.html +111 -0
  364. package/dist/docs/components/toolbar/react/index.html +111 -0
  365. package/dist/docs/components/tooltip/index.html +65 -0
  366. package/dist/docs/components/tooltip/react/index.html +65 -0
  367. package/dist/docs/components/tree-view/index.html +93 -0
  368. package/dist/docs/components/tree-view/react/index.html +93 -0
  369. package/dist/docs/components/truncate/index.html +80 -0
  370. package/dist/docs/components/truncate/react/index.html +80 -0
  371. package/dist/docs/components/wizard/index.html +120 -0
  372. package/dist/docs/components/wizard/react/index.html +120 -0
  373. package/dist/docs/components/wizard/react-deprecated/index.html +372 -0
  374. package/dist/docs/index.html +43 -0
  375. package/dist/props.json +1 -0
  376. package/package.json +8 -4
  377. package/src/components/AutoLinkHeader.tsx +3 -11
  378. package/src/components/DocsTables.astro +10 -4
  379. package/src/components/LiveExample.tsx +2 -0
  380. package/src/components/PropsTables.tsx +62 -0
  381. package/src/content.config.ts +5 -3
  382. package/src/content.ts +1 -15
  383. package/src/layouts/Main.astro +1 -0
  384. package/src/pages/[section]/[...page].astro +1 -5
  385. package/src/pages/[section]/[page]/[...tab].astro +1 -1
  386. package/.astro/collections/textContent.schema.json +0 -59
  387. package/dist/_astro/CSSTable.E6iSHjec.js +0 -1
  388. package/dist/_astro/DropdownList.-xE7qrND.js +0 -1
  389. package/dist/_astro/LiveExample.CVVccYEB.js +0 -259
  390. package/dist/_astro/Navigation.CONcolRR.js +0 -1
  391. package/dist/_astro/PageSidebarBody.CDWZuFeK.js +0 -1
  392. package/dist/_astro/SearchInput.BNt7BTX_.js +0 -1
  393. package/dist/_astro/SectionGallery.Dwb-QA5z.js +0 -1
  394. package/dist/_astro/Toolbar.DNd68Ck-.js +0 -1
  395. package/dist/_astro/ToolbarContent.C58gpKLu.js +0 -1
  396. package/dist/_astro/_page_.CtheD08_.css +0 -1
  397. package/dist/_astro/index.jm6QVFFy.js +0 -16
  398. package/dist/_worker.js/chunks/AutoLinkHeader_DLgn_YRm.mjs +0 -739
  399. package/dist/_worker.js/chunks/Button_CBcC0ViE.mjs +0 -709
  400. package/dist/_worker.js/chunks/CSSTable_C1dV02qV.mjs +0 -18
  401. package/dist/_worker.js/chunks/DocsTables_Br4g5x5_.mjs +0 -20
  402. package/dist/_worker.js/chunks/PropsTables_Dcd7znAq.mjs +0 -6628
  403. package/dist/_worker.js/chunks/angle-down-icon_VyCXUC7F.mjs +0 -3686
  404. package/dist/_worker.js/chunks/index_CBCp_CJ0.mjs +0 -57
  405. package/dist/_worker.js/manifest_0KWZohUX.mjs +0 -100
  406. package/dist/components/accordion/index.html +0 -60
  407. package/dist/components/accordion/react/index.html +0 -60
  408. package/dist/components/all-components/index.html +0 -47
  409. package/dist/design-foundations/typography/index.html +0 -198
  410. package/dist/design-foundations/usage-and-behavior/index.html +0 -347
  411. package/dist/get-started/contribute/index.html +0 -94
  412. package/dist/index.html +0 -43
  413. package/src/components/PropsTables.astro +0 -52
  414. /package/{README.md → README.mdx} +0 -0
  415. /package/dist/{.assetsignore → docs/.assetsignore} +0 -0
  416. /package/dist/{PF-HorizontalLogo-Color.svg → docs/PF-HorizontalLogo-Color.svg} +0 -0
  417. /package/dist/{PF-HorizontalLogo-Reverse.svg → docs/PF-HorizontalLogo-Reverse.svg} +0 -0
  418. /package/dist/{_astro/_page_.Chv_bGyU.css → docs/_astro/AutoLinkHeader.Chv_bGyU.css} +0 -0
  419. /package/dist/{_astro → docs/_astro}/Button.BVfR1y85.js +0 -0
  420. /package/dist/{_astro → docs/_astro}/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +0 -0
  421. /package/dist/{_astro → docs/_astro}/Content.CYLxURqU.js +0 -0
  422. /package/dist/{_astro → docs/_astro}/LiveExample.CxJsMvEq.css +0 -0
  423. /package/dist/{_astro → docs/_astro}/PageContext.BUbWpNW2.js +0 -0
  424. /package/dist/{_astro → docs/_astro}/PageToggle.Dnbvoa7R.js +0 -0
  425. /package/dist/{_astro → docs/_astro}/RedHatDisplayVF-Italic.CRpusWc8.woff2 +0 -0
  426. /package/dist/{_astro → docs/_astro}/RedHatDisplayVF.CYDHf1NI.woff2 +0 -0
  427. /package/dist/{_astro → docs/_astro}/RedHatMonoVF-Italic.DGQo2ogW.woff2 +0 -0
  428. /package/dist/{_astro → docs/_astro}/RedHatMonoVF.C4fMH6Vz.woff2 +0 -0
  429. /package/dist/{_astro → docs/_astro}/RedHatTextVF-Italic.Dkj_WqbA.woff2 +0 -0
  430. /package/dist/{_astro → docs/_astro}/RedHatTextVF.wYvZ7prR.woff2 +0 -0
  431. /package/dist/{_astro → docs/_astro}/_page_.DxJDkZPc.css +0 -0
  432. /package/dist/{_astro → docs/_astro}/angle-left-icon.CfKwuSCS.js +0 -0
  433. /package/dist/{_astro → docs/_astro}/bars-icon.wdJgEs3A.js +0 -0
  434. /package/dist/{_astro → docs/_astro}/client.DN8ES6L5.js +0 -0
  435. /package/dist/{_astro → docs/_astro}/fa-solid-900.DguXoeIz.woff2 +0 -0
  436. /package/dist/{_astro → docs/_astro}/github-icon.DzpohUp_.js +0 -0
  437. /package/dist/{_astro → docs/_astro}/index.BQFV5hT1.js +0 -0
  438. /package/dist/{_astro → docs/_astro}/index.CAChmxYj.js +0 -0
  439. /package/dist/{_astro → docs/_astro}/index.eCxJ45ll.js +0 -0
  440. /package/dist/{_astro → docs/_astro}/page.BTC3Kf3x.js +0 -0
  441. /package/dist/{_astro → docs/_astro}/pf-v6-pficon.Dy6oiu9u.woff2 +0 -0
  442. /package/dist/{_worker.js → docs/_worker.js}/_noop-actions.mjs +0 -0
  443. /package/dist/{_worker.js/chunks/Accordion_CQUal4ef.mjs → docs/_worker.js/chunks/AboutModal_CrdYiVZ2.mjs} +0 -0
  444. /package/dist/{_worker.js/chunks/Accordion_R7bP3pwr.mjs → docs/_worker.js/chunks/AboutModal_D3R-r6ju.mjs} +0 -0
  445. /package/dist/{_worker.js/chunks/AllComponents_BDKlE-WJ.mjs → docs/_worker.js/chunks/Accordion_Dbx8tdfD.mjs} +0 -0
  446. /package/dist/{_worker.js/chunks/AllComponents_DWDph25H.mjs → docs/_worker.js/chunks/Accordion_sjy0EnPK.mjs} +0 -0
  447. /package/dist/{_worker.js/chunks/_astro_assets_CfTVyruF.mjs → docs/_worker.js/chunks/ActionList_Bx7eAKgV.mjs} +0 -0
  448. /package/dist/{_worker.js/chunks/_astro_data-layer-content_CgXoS6Mm.mjs → docs/_worker.js/chunks/ActionList_CuygbYGp.mjs} +0 -0
  449. /package/dist/{_worker.js/chunks/content-assets_XqCgPAV2.mjs → docs/_worker.js/chunks/Alert_Cgh0pfMA.mjs} +0 -0
  450. /package/dist/{_worker.js/chunks/content-modules_BbCqcGJp.mjs → docs/_worker.js/chunks/Alert_CplJ22O9.mjs} +0 -0
  451. /package/dist/{_worker.js/chunks/sharp_MEdXG7Td.mjs → docs/_worker.js/chunks/Avatar_BszzDSZB.mjs} +0 -0
  452. /package/dist/{_worker.js/pages/_section_/_---page_.astro.mjs → docs/_worker.js/chunks/Avatar_DuNXB-Tl.mjs} +0 -0
  453. /package/dist/{_worker.js/pages/_section_/_page_/_---tab_.astro.mjs → docs/_worker.js/chunks/BackToTop_B_0NN1kJ.mjs} +0 -0
  454. /package/dist/{_worker.js/pages/index.astro.mjs → docs/_worker.js/chunks/BackToTop_DKY1zHBL.mjs} +0 -0
  455. /package/dist/{_worker.js → docs/_worker.js}/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +0 -0
  456. /package/dist/{_worker.js → docs/_worker.js}/chunks/parse_EttCPxrw.mjs +0 -0
  457. /package/dist/{_worker.js → docs/_worker.js}/chunks/path_C-ZOwaTP.mjs +0 -0
  458. /package/dist/{avatarImg.svg → docs/avatarImg.svg} +0 -0
  459. /package/dist/{avatarImgDark.svg → docs/avatarImgDark.svg} +0 -0
  460. /package/dist/{content → docs/content}/typography/line-height.png +0 -0
  461. /package/dist/{favicon.svg → docs/favicon.svg} +0 -0
@@ -1,709 +0,0 @@
1
- globalThis.process ??= {}; globalThis.process.env ??= {};
2
- import { a as requireReact, r as reactExports } from './index_CBCp_CJ0.mjs';
3
- /* empty css */
4
-
5
- /******************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */
19
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
20
-
21
-
22
- function __rest(s, e) {
23
- var t = {};
24
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
25
- t[p] = s[p];
26
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
27
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
29
- t[p[i]] = s[p[i]];
30
- }
31
- return t;
32
- }
33
-
34
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
35
- var e = new Error(message);
36
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
37
- };
38
-
39
- var jsxRuntime = {exports: {}};
40
-
41
- var reactJsxRuntime_production_min = {};
42
-
43
- /**
44
- * @license React
45
- * react-jsx-runtime.production.min.js
46
- *
47
- * Copyright (c) Facebook, Inc. and its affiliates.
48
- *
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */
52
-
53
- var hasRequiredReactJsxRuntime_production_min;
54
-
55
- function requireReactJsxRuntime_production_min () {
56
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
57
- hasRequiredReactJsxRuntime_production_min = 1;
58
- var f=requireReact(),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
59
- function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
60
- return reactJsxRuntime_production_min;
61
- }
62
-
63
- var hasRequiredJsxRuntime;
64
-
65
- function requireJsxRuntime () {
66
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
67
- hasRequiredJsxRuntime = 1;
68
- {
69
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
70
- }
71
- return jsxRuntime.exports;
72
- }
73
-
74
- var jsxRuntimeExports = requireJsxRuntime();
75
-
76
- /** Joins args into a className string
77
- *
78
- * @param {any} args list of objects, string, or arrays to reduce
79
- */
80
- function css(...args) {
81
- // Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
82
- const classes = [];
83
- const hasOwn = {}.hasOwnProperty;
84
- args.filter(Boolean).forEach((arg) => {
85
- const argType = typeof arg;
86
- if (argType === 'string' || argType === 'number') {
87
- classes.push(arg);
88
- }
89
- else if (Array.isArray(arg) && arg.length) {
90
- const inner = css(...arg);
91
- if (inner) {
92
- classes.push(inner);
93
- }
94
- }
95
- else if (argType === 'object') {
96
- for (const key in arg) {
97
- if (hasOwn.call(arg, key) && arg[key]) {
98
- classes.push(key);
99
- }
100
- }
101
- }
102
- });
103
- return classes.join(' ');
104
- }
105
-
106
- const t_global_breakpoint_sm = {
107
- "value": "36rem"};
108
-
109
- const t_global_breakpoint_md = {
110
- "value": "48rem"};
111
-
112
- const t_global_breakpoint_lg = {
113
- "value": "62rem"};
114
-
115
- const t_global_breakpoint_xl = {
116
- "value": "75rem"};
117
-
118
- const t_global_breakpoint_2xl = {
119
- "value": "90.625rem"};
120
-
121
- const t_global_breakpoint_height_sm = {
122
- "value": "0rem"};
123
-
124
- const t_global_breakpoint_height_md = {
125
- "value": "40rem"};
126
-
127
- const t_global_breakpoint_height_lg = {
128
- "value": "48rem"};
129
-
130
- const t_global_breakpoint_height_xl = {
131
- "value": "60rem"};
132
-
133
- const t_global_breakpoint_height_2xl = {
134
- "value": "80rem"};
135
-
136
- let currentId = 0;
137
- /**
138
- * Factory to create Icon class components for consumers
139
- */
140
- function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath }) {
141
- var _a;
142
- return _a = class SVGIcon extends reactExports.Component {
143
- constructor() {
144
- super(...arguments);
145
- this.id = `icon-title-${currentId++}`;
146
- }
147
- render() {
148
- const _b = this.props, { title, className } = _b, props = __rest(_b, ["title", "className"]);
149
- const classes = className ? `pf-v6-svg ${className}` : 'pf-v6-svg';
150
- const hasTitle = Boolean(title);
151
- const viewBox = [xOffset, yOffset, width, height].join(' ');
152
- return (jsxRuntimeExports.jsxs("svg", Object.assign({ className: classes, viewBox: viewBox, fill: "currentColor", "aria-labelledby": hasTitle ? this.id : null, "aria-hidden": hasTitle ? null : true, role: "img", width: "1em", height: "1em" }, props, { children: [hasTitle && jsxRuntimeExports.jsx("title", { id: this.id, children: title }), jsxRuntimeExports.jsx("path", { d: svgPath })] })));
153
- }
154
- },
155
- _a.displayName = name,
156
- _a;
157
- }
158
-
159
- const CheckCircleIconConfig = {
160
- name: 'CheckCircleIcon',
161
- height: 512,
162
- width: 512,
163
- svgPath: 'M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z',
164
- yOffset: 0,
165
- xOffset: 0,
166
- };
167
-
168
- const CheckCircleIcon = createIcon(CheckCircleIconConfig);
169
-
170
- const ExclamationCircleIconConfig = {
171
- name: 'ExclamationCircleIcon',
172
- height: 512,
173
- width: 512,
174
- svgPath: 'M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z',
175
- yOffset: 0,
176
- xOffset: 0,
177
- };
178
-
179
- const ExclamationCircleIcon = createIcon(ExclamationCircleIconConfig);
180
-
181
- const ExclamationTriangleIconConfig = {
182
- name: 'ExclamationTriangleIcon',
183
- height: 512,
184
- width: 576,
185
- svgPath: 'M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z',
186
- yOffset: 0,
187
- xOffset: 0,
188
- };
189
-
190
- const ExclamationTriangleIcon = createIcon(ExclamationTriangleIconConfig);
191
-
192
- const InfoCircleIconConfig = {
193
- name: 'InfoCircleIcon',
194
- height: 512,
195
- width: 512,
196
- svgPath: 'M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z',
197
- yOffset: 0,
198
- xOffset: 0,
199
- };
200
-
201
- const InfoCircleIcon = createIcon(InfoCircleIconConfig);
202
-
203
- const BellIconConfig = {
204
- name: 'BellIcon',
205
- height: 1024,
206
- width: 896,
207
- svgPath: 'M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z',
208
- yOffset: 0,
209
- xOffset: 0,
210
- };
211
-
212
- const BellIcon = createIcon(BellIconConfig);
213
-
214
- var ValidatedOptions;
215
- (function (ValidatedOptions) {
216
- ValidatedOptions["success"] = "success";
217
- ValidatedOptions["error"] = "error";
218
- ValidatedOptions["warning"] = "warning";
219
- ValidatedOptions["default"] = "default";
220
- })(ValidatedOptions || (ValidatedOptions = {}));
221
- const KeyTypes = {
222
- Space: ' ',
223
- Escape: 'Escape',
224
- Enter: 'Enter'};
225
- const globalWidthBreakpoints = {
226
- sm: parseInt(t_global_breakpoint_sm.value) * 16,
227
- md: parseInt(t_global_breakpoint_md.value) * 16,
228
- lg: parseInt(t_global_breakpoint_lg.value) * 16,
229
- xl: parseInt(t_global_breakpoint_xl.value) * 16,
230
- '2xl': parseInt(t_global_breakpoint_2xl.value) * 16
231
- };
232
- const globalHeightBreakpoints = {
233
- sm: parseInt(t_global_breakpoint_height_sm.value) * 16,
234
- md: parseInt(t_global_breakpoint_height_md.value) * 16,
235
- lg: parseInt(t_global_breakpoint_height_lg.value) * 16,
236
- xl: parseInt(t_global_breakpoint_height_xl.value) * 16,
237
- '2xl': parseInt(t_global_breakpoint_height_2xl.value) * 16
238
- };
239
- const statusIcons = {
240
- success: CheckCircleIcon,
241
- danger: ExclamationCircleIcon,
242
- warning: ExclamationTriangleIcon,
243
- info: InfoCircleIcon,
244
- custom: BellIcon
245
- };
246
-
247
- /**
248
- * @param {string} prefix - String to prefix ID with
249
- */
250
- function getUniqueId(prefix = 'pf') {
251
- const uid = new Date().getTime() + Math.random().toString(36).slice(2);
252
- return `${prefix}-${uid}`;
253
- }
254
- /**
255
- * This function is a helper for turning arrays of breakpointMod objects for flex and grid into style object
256
- *
257
- * @param {object} mods The modifiers object
258
- * @param {string} css-variable The appropriate css variable for the component
259
- */
260
- const setBreakpointCssVars = (mods, cssVar) => Object.entries(mods || {}).reduce((acc, [breakpoint, value]) => breakpoint === 'default' ? Object.assign(Object.assign({}, acc), { [cssVar]: value }) : Object.assign(Object.assign({}, acc), { [`${cssVar}-on-${breakpoint}`]: value }), {});
261
- /**
262
- * This function is a helper for turning arrays of breakpointMod objects for data toolbar and flex into classes
263
- *
264
- * @param {object} mods The modifiers object
265
- * @param {any} styles The appropriate styles object for the component
266
- */
267
- const formatBreakpointMods = (mods, styles, stylePrefix = '', breakpoint, vertical) => {
268
- if (!mods) {
269
- return '';
270
- }
271
- if (breakpoint && !vertical) {
272
- if (breakpoint in mods) {
273
- return styles.modifiers[toCamel(`${stylePrefix}${mods[breakpoint]}`)];
274
- }
275
- // the current breakpoint is not specified in mods, so we try to find the next nearest
276
- const breakpointsOrder = ['2xl', 'xl', 'lg', 'md', 'sm', 'default'];
277
- const breakpointsIndex = breakpointsOrder.indexOf(breakpoint);
278
- for (let i = breakpointsIndex; i < breakpointsOrder.length; i++) {
279
- if (breakpointsOrder[i] in mods) {
280
- return styles.modifiers[toCamel(`${stylePrefix}${mods[breakpointsOrder[i]]}`)];
281
- }
282
- }
283
- return '';
284
- }
285
- return Object.entries(mods || {})
286
- .map(([breakpoint, mod]) => `${stylePrefix}${mod}${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}${vertical && breakpoint !== 'default' ? '-height' : ''}`)
287
- .map(toCamel)
288
- .map((mod) => mod.replace(/-?(\dxl)/gi, (_res, group) => `_${group}`))
289
- .map((modifierKey) => styles.modifiers[modifierKey])
290
- .filter(Boolean)
291
- .join(' ');
292
- };
293
- /**
294
- * Return the breakpoint for the given height
295
- *
296
- * @param {number | null} height The height to check
297
- * @returns {'default' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'} The breakpoint
298
- */
299
- const getVerticalBreakpoint = (height) => {
300
- if (height === null) {
301
- return null;
302
- }
303
- if (height >= globalHeightBreakpoints['2xl']) {
304
- return '2xl';
305
- }
306
- if (height >= globalHeightBreakpoints.xl) {
307
- return 'xl';
308
- }
309
- if (height >= globalHeightBreakpoints.lg) {
310
- return 'lg';
311
- }
312
- if (height >= globalHeightBreakpoints.md) {
313
- return 'md';
314
- }
315
- if (height >= globalHeightBreakpoints.sm) {
316
- return 'sm';
317
- }
318
- return 'default';
319
- };
320
- /**
321
- * Return the breakpoint for the given width
322
- *
323
- * @param {number | null} width The width to check
324
- * @returns {'default' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'} The breakpoint
325
- */
326
- const getBreakpoint = (width) => {
327
- if (width === null) {
328
- return null;
329
- }
330
- if (width >= globalWidthBreakpoints['2xl']) {
331
- return '2xl';
332
- }
333
- if (width >= globalWidthBreakpoints.xl) {
334
- return 'xl';
335
- }
336
- if (width >= globalWidthBreakpoints.lg) {
337
- return 'lg';
338
- }
339
- if (width >= globalWidthBreakpoints.md) {
340
- return 'md';
341
- }
342
- if (width >= globalWidthBreakpoints.sm) {
343
- return 'sm';
344
- }
345
- return 'default';
346
- };
347
- const camelize = (s) => s.toUpperCase().replace('-', '').replace('_', '');
348
- /**
349
- *
350
- * @param {string} s string to make camelCased
351
- */
352
- const toCamel = (s) => s.replace(/([-_][a-z])/gi, camelize);
353
- /**
354
- * Copied from exenv
355
- */
356
- const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
357
- /**
358
- * Calculate the width of the text
359
- * Example:
360
- * getTextWidth('my text', node)
361
- *
362
- * @param {string} text The text to calculate the width for
363
- * @param {HTMLElement} node The HTML element
364
- */
365
- const getTextWidth = (text, node) => {
366
- const computedStyle = getComputedStyle(node);
367
- // Firefox returns the empty string for .font, so this function creates the .font property manually
368
- const getFontFromComputedStyle = () => {
369
- let computedFont = '';
370
- // Firefox uses percentages for font-stretch, but Canvas does not accept percentages
371
- // so convert to keywords, as listed at:
372
- // https://developer.mozilla.org/en-US/docs/Web/CSS/font-stretch
373
- const fontStretchLookupTable = {
374
- '50%': 'ultra-condensed',
375
- '62.5%': 'extra-condensed',
376
- '75%': 'condensed',
377
- '87.5%': 'semi-condensed',
378
- '100%': 'normal',
379
- '112.5%': 'semi-expanded',
380
- '125%': 'expanded',
381
- '150%': 'extra-expanded',
382
- '200%': 'ultra-expanded'
383
- };
384
- // If the retrieved font-stretch percentage isn't found in the lookup table, use
385
- // 'normal' as a last resort.
386
- let fontStretch;
387
- if (computedStyle.fontStretch in fontStretchLookupTable) {
388
- fontStretch = fontStretchLookupTable[computedStyle.fontStretch];
389
- }
390
- else {
391
- fontStretch = 'normal';
392
- }
393
- computedFont =
394
- computedStyle.fontStyle +
395
- ' ' +
396
- computedStyle.fontVariant +
397
- ' ' +
398
- computedStyle.fontWeight +
399
- ' ' +
400
- fontStretch +
401
- ' ' +
402
- computedStyle.fontSize +
403
- '/' +
404
- computedStyle.lineHeight +
405
- ' ' +
406
- computedStyle.fontFamily;
407
- return computedFont;
408
- };
409
- const canvas = document.createElement('canvas');
410
- const context = canvas.getContext('2d');
411
- context.font = computedStyle.font || getFontFromComputedStyle();
412
- return context.measureText(text).width;
413
- };
414
- /**
415
- * Get the inner dimensions of an element
416
- *
417
- * @param {HTMLElement} node HTML element to calculate the inner dimensions for
418
- */
419
- const innerDimensions = (node) => {
420
- const computedStyle = getComputedStyle(node);
421
- let width = node.clientWidth; // width with padding
422
- let height = node.clientHeight; // height with padding
423
- height -= parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom);
424
- width -= parseFloat(computedStyle.paddingLeft) + parseFloat(computedStyle.paddingRight);
425
- return { height, width };
426
- };
427
- /**
428
- * This function is a helper for truncating text content on the left, leaving the right side of the content in view
429
- *
430
- * @param {HTMLElement} node HTML element
431
- * @param {string} value The original text value
432
- */
433
- const trimLeft = (node, value) => {
434
- const availableWidth = innerDimensions(node).width;
435
- let newValue = value;
436
- if (getTextWidth(value, node) > availableWidth) {
437
- // we have text overflow, trim the text to the left and add ... in the front until it fits
438
- while (getTextWidth(`...${newValue}`, node) > availableWidth) {
439
- newValue = newValue.substring(1);
440
- }
441
- // replace text with our truncated text
442
- if (node.value) {
443
- node.value = `...${newValue}`;
444
- }
445
- else {
446
- node.innerText = `...${newValue}`;
447
- }
448
- }
449
- else {
450
- if (node.value) {
451
- node.value = value;
452
- }
453
- else {
454
- node.innerText = value;
455
- }
456
- }
457
- };
458
- /**
459
- * @param {React.RefObject<any>[]} timeoutRefs - Timeout refs to clear
460
- */
461
- const clearTimeouts = (timeoutRefs) => {
462
- timeoutRefs.forEach((ref) => {
463
- if (ref.current) {
464
- clearTimeout(ref.current);
465
- }
466
- });
467
- };
468
- /**
469
- * Helper function to get the language direction of a given element, useful for figuring out if left-to-right
470
- * or right-to-left specific logic should be applied.
471
- *
472
- * @param {HTMLElement} targetElement - Element the helper will get the language direction of
473
- * @param {'ltr' | 'rtl'} defaultDirection - Language direction to assume if one can't be determined, defaults to 'ltr'
474
- * @returns {'ltr' | 'rtl'} - The language direction of the target element
475
- */
476
- const getLanguageDirection = (targetElement, defaultDirection = 'ltr') => {
477
- if (!targetElement) {
478
- return defaultDirection;
479
- }
480
- const computedDirection = getComputedStyle(targetElement).getPropertyValue('direction');
481
- if (['ltr', 'rtl'].includes(computedDirection)) {
482
- return computedDirection;
483
- }
484
- return defaultDirection;
485
- };
486
-
487
- let uid = 0;
488
- const ouiaPrefix = 'OUIA-Generated-';
489
- const ouiaIdByRoute = {};
490
- /** Get props to conform to OUIA spec
491
- *
492
- * For functional components, use the useOUIAProps function instead
493
- *
494
- * In class based components, create a state variable ouiaStateId to create a static generated ID:
495
- * state = {
496
- * ouiaStateId: getDefaultOUIAId(Chip.displayName)
497
- * }
498
- * This generated ID should remain alive as long as the component is not unmounted.
499
- *
500
- * Then add the attributes to the component
501
- * {...getOUIAProps('OverflowChip', this.props.ouiaId !== undefined ? this.props.ouiaId : this.state.ouiaStateId)}
502
- *
503
- * @param {string} componentType OUIA component type
504
- * @param {number|string} id OUIA component id
505
- * @param {boolean} ouiaSafe false if in animation
506
- */
507
- function getOUIAProps(componentType, id, ouiaSafe = true) {
508
- return {
509
- 'data-ouia-component-type': `PF6/${componentType}`,
510
- 'data-ouia-safe': ouiaSafe,
511
- 'data-ouia-component-id': id
512
- };
513
- }
514
- /**
515
- * Hooks version of the getOUIAProps function that also memoizes the generated ID
516
- * Can only be used in functional components
517
- *
518
- * @param {string} componentType OUIA component type
519
- * @param {number|string} id OUIA component id
520
- * @param {boolean} ouiaSafe false if in animation
521
- * @param {string} variant Optional variant to add to the generated ID
522
- */
523
- const useOUIAProps = (componentType, id, ouiaSafe = true, variant) => ({
524
- 'data-ouia-component-type': `PF6/${componentType}`,
525
- 'data-ouia-safe': ouiaSafe,
526
- 'data-ouia-component-id': useOUIAId(componentType, id, variant)
527
- });
528
- /**
529
- * Returns the ID or the memoized generated ID
530
- *
531
- * @param {string} componentType OUIA component type
532
- * @param {number|string} id OUIA component id
533
- * @param {string} variant Optional variant to add to the generated ID
534
- */
535
- const useOUIAId = (componentType, id, variant) => {
536
- const defaultOUIAId = reactExports.useMemo(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
537
- return id !== null && id !== void 0 ? id : defaultOUIAId;
538
- };
539
- /**
540
- * Returns a generated id based on the URL location
541
- *
542
- * @param {string} componentType OUIA component type
543
- * @param {string} variant Optional variant to add to the generated ID
544
- */
545
- function getDefaultOUIAId(componentType, variant) {
546
- /*
547
- ouiaIdByRoute = {
548
- [route+componentType]: [number]
549
- }
550
- */
551
- try {
552
- let key;
553
- if (typeof window !== 'undefined') {
554
- // browser environments
555
- key = `${window.location.href}-${componentType}-${variant || ''}`;
556
- }
557
- else {
558
- // node/SSR environments
559
- key = `${componentType}-${variant || ''}`;
560
- }
561
- if (!ouiaIdByRoute[key]) {
562
- ouiaIdByRoute[key] = 0;
563
- }
564
- return `${ouiaPrefix}${componentType}-${variant ? `${variant}-` : ''}${++ouiaIdByRoute[key]}`;
565
- }
566
- catch (exception) {
567
- return `${ouiaPrefix}${componentType}-${variant ? `${variant}-` : ''}${++uid}`;
568
- }
569
- }
570
-
571
- const styles$2 = {
572
- "button": "pf-v6-c-button",
573
- "buttonCount": "pf-v6-c-button__count",
574
- "buttonIcon": "pf-v6-c-button__icon",
575
- "buttonProgress": "pf-v6-c-button__progress",
576
- "modifiers": {
577
- "primary": "pf-m-primary",
578
- "unread": "pf-m-unread",
579
- "secondary": "pf-m-secondary",
580
- "danger": "pf-m-danger",
581
- "tertiary": "pf-m-tertiary",
582
- "link": "pf-m-link",
583
- "inline": "pf-m-inline",
584
- "displayLg": "pf-m-display-lg",
585
- "warning": "pf-m-warning",
586
- "control": "pf-m-control",
587
- "stateful": "pf-m-stateful",
588
- "read": "pf-m-read",
589
- "attention": "pf-m-attention",
590
- "plain": "pf-m-plain",
591
- "noPadding": "pf-m-no-padding",
592
- "block": "pf-m-block",
593
- "small": "pf-m-small",
594
- "favorite": "pf-m-favorite",
595
- "favorited": "pf-m-favorited",
596
- "clicked": "pf-m-clicked",
597
- "disabled": "pf-m-disabled",
598
- "ariaDisabled": "pf-m-aria-disabled",
599
- "progress": "pf-m-progress",
600
- "inProgress": "pf-m-in-progress",
601
- "notify": "pf-m-notify",
602
- "start": "pf-m-start",
603
- "end": "pf-m-end"
604
- }};
605
-
606
- const styles$1 = {
607
- "modifiers": {
608
- "inline": "pf-m-inline",
609
- "sm": "pf-m-sm",
610
- "md": "pf-m-md",
611
- "lg": "pf-m-lg",
612
- "xl": "pf-m-xl"
613
- },
614
- "spinner": "pf-v6-c-spinner",
615
- "spinnerPath": "pf-v6-c-spinner__path"
616
- };
617
-
618
- const c_spinner_diameter = {
619
- "name": "--pf-v6-c-spinner--diameter"};
620
-
621
- var spinnerSize;
622
- (function (spinnerSize) {
623
- spinnerSize["sm"] = "sm";
624
- spinnerSize["md"] = "md";
625
- spinnerSize["lg"] = "lg";
626
- spinnerSize["xl"] = "xl";
627
- })(spinnerSize || (spinnerSize = {}));
628
- const Spinner = (_a) => {
629
- var { className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest(_a, ["className", "size", 'aria-valuetext', "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
630
- return (jsxRuntimeExports.jsx("svg", Object.assign({ className: css(styles$1.spinner, isInline ? styles$1.modifiers.inline : styles$1.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { [c_spinner_diameter.name]: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props, { children: jsxRuntimeExports.jsx("circle", { className: styles$1.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" }) })));
631
- };
632
- Spinner.displayName = 'Spinner';
633
-
634
- const styles = {
635
- "badge": "pf-v6-c-badge",
636
- "modifiers": {
637
- "read": "pf-m-read",
638
- "unread": "pf-m-unread",
639
- "disabled": "pf-m-disabled"
640
- }
641
- };
642
-
643
- const Badge = (_a) => {
644
- var { isRead = false, isDisabled = false, className = '', children = '', screenReaderText } = _a, props = __rest(_a, ["isRead", "isDisabled", "className", "children", "screenReaderText"]);
645
- return (jsxRuntimeExports.jsxs("span", Object.assign({}, props, { className: css(styles.badge, (isRead ? styles.modifiers.read : styles.modifiers.unread), isDisabled && styles.modifiers.disabled, className), children: [children, screenReaderText && jsxRuntimeExports.jsx("span", { className: "pf-v6-screen-reader", children: screenReaderText })] })));
646
- };
647
- Badge.displayName = 'Badge';
648
-
649
- var ButtonVariant;
650
- (function (ButtonVariant) {
651
- ButtonVariant["primary"] = "primary";
652
- ButtonVariant["secondary"] = "secondary";
653
- ButtonVariant["tertiary"] = "tertiary";
654
- ButtonVariant["danger"] = "danger";
655
- ButtonVariant["warning"] = "warning";
656
- ButtonVariant["link"] = "link";
657
- ButtonVariant["plain"] = "plain";
658
- ButtonVariant["control"] = "control";
659
- ButtonVariant["stateful"] = "stateful";
660
- })(ButtonVariant || (ButtonVariant = {}));
661
- var ButtonType;
662
- (function (ButtonType) {
663
- ButtonType["button"] = "button";
664
- ButtonType["submit"] = "submit";
665
- ButtonType["reset"] = "reset";
666
- })(ButtonType || (ButtonType = {}));
667
- var ButtonSize;
668
- (function (ButtonSize) {
669
- ButtonSize["default"] = "default";
670
- ButtonSize["sm"] = "sm";
671
- ButtonSize["lg"] = "lg";
672
- })(ButtonSize || (ButtonSize = {}));
673
- var ButtonState;
674
- (function (ButtonState) {
675
- ButtonState["read"] = "read";
676
- ButtonState["unread"] = "unread";
677
- ButtonState["attention"] = "attention";
678
- })(ButtonState || (ButtonState = {}));
679
- const ButtonBase = (_a) => {
680
- var { children = null, className = '', component = 'button', isClicked = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, spinnerAriaLabelledBy, spinnerAriaLabel, size = ButtonSize.default, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, state = ButtonState.unread, hasNoPadding = false, iconPosition = 'start', 'aria-label': ariaLabel = null, icon = null, role, ouiaId, ouiaSafe = true, tabIndex = null, innerRef, countOptions } = _a, props = __rest(_a, ["children", "className", "component", "isClicked", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "spinnerAriaLabelledBy", "spinnerAriaLabel", "size", "inoperableEvents", "isInline", "type", "variant", "state", "hasNoPadding", "iconPosition", 'aria-label', "icon", "role", "ouiaId", "ouiaSafe", "tabIndex", "innerRef", "countOptions"]);
681
- const ouiaProps = useOUIAProps(Button.displayName, ouiaId, ouiaSafe, variant);
682
- const Component = component;
683
- const isButtonElement = Component === 'button';
684
- const isInlineSpan = isInline && Component === 'span';
685
- const isIconAlignedAtEnd = iconPosition === 'end' || iconPosition === 'right';
686
- const preventedEvents = inoperableEvents.reduce((handlers, eventToPrevent) => (Object.assign(Object.assign({}, handlers), { [eventToPrevent]: (event) => {
687
- event.preventDefault();
688
- } })), {});
689
- const getDefaultTabIdx = () => {
690
- if (isDisabled) {
691
- return isButtonElement ? null : -1;
692
- }
693
- else if (isAriaDisabled) {
694
- return null;
695
- }
696
- else if (isInlineSpan) {
697
- return 0;
698
- }
699
- };
700
- const _icon = icon && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonIcon, children && styles$2.modifiers[isIconAlignedAtEnd ? 'end' : 'start']), children: icon }));
701
- const _children = children && jsxRuntimeExports.jsx("span", { className: css('pf-v6-c-button__text'), children: children });
702
- // We only want to render the aria-disabled attribute when true, similar to the disabled attribute natively.
703
- const shouldRenderAriaDisabled = isAriaDisabled || (!isButtonElement && isDisabled);
704
- return (jsxRuntimeExports.jsxs(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), (shouldRenderAriaDisabled && { 'aria-disabled': true }), { "aria-label": ariaLabel, className: css(styles$2.button, styles$2.modifiers[variant], isBlock && styles$2.modifiers.block, isDisabled && !isButtonElement && styles$2.modifiers.disabled, isAriaDisabled && styles$2.modifiers.ariaDisabled, isClicked && styles$2.modifiers.clicked, isInline && variant === ButtonVariant.link && styles$2.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && styles$2.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && styles$2.modifiers.progress, isLoading && styles$2.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && styles$2.modifiers.noPadding, variant === ButtonVariant.stateful && styles$2.modifiers[state], size === ButtonSize.sm && styles$2.modifiers.small, size === ButtonSize.lg && styles$2.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps, { children: [isLoading && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonProgress), children: jsxRuntimeExports.jsx(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }) })), isIconAlignedAtEnd ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [_children, _icon] })) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [_icon, _children] })), countOptions && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonCount, countOptions.className), children: jsxRuntimeExports.jsx(Badge, { isRead: countOptions.isRead, isDisabled: isDisabled, children: countOptions.count }) }))] })));
705
- };
706
- const Button = reactExports.forwardRef((props, ref) => jsxRuntimeExports.jsx(ButtonBase, Object.assign({ innerRef: ref }, props)));
707
- Button.displayName = 'Button';
708
-
709
- export { Button as B, CheckCircleIcon as C, ExclamationTriangleIcon as E, InfoCircleIcon as I, KeyTypes as K, Spinner as S, ValidatedOptions as V, __rest as _, canUseDOM as a, createIcon as b, css as c, ExclamationCircleIcon as d, getOUIAProps as e, statusIcons as f, getDefaultOUIAId as g, ButtonVariant as h, Badge as i, jsxRuntimeExports as j, getVerticalBreakpoint as k, getBreakpoint as l, formatBreakpointMods as m, t_global_breakpoint_2xl as n, t_global_breakpoint_xl as o, t_global_breakpoint_lg as p, t_global_breakpoint_md as q, toCamel as r, setBreakpointCssVars as s, trimLeft as t, useOUIAProps as u, getUniqueId as v, BellIcon as w, getLanguageDirection as x, clearTimeouts as y };