@chassis-ui/react 0.2.0 → 0.3.0
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.
- package/LICENSE +1 -1
- package/README.md +56 -23
- package/dist/accordion.js +1 -1
- package/dist/alert.d.ts +2 -0
- package/dist/alert.js +1 -0
- package/dist/autocomplete.d.ts +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-group.d.ts +1 -1
- package/dist/button-group.js +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +1 -1
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.js +1 -1
- package/dist/chip-input.js +1 -1
- package/dist/chip.js +1 -1
- package/dist/chunks/Button-BoymWE-L.js +2 -0
- package/dist/chunks/Button-BoymWE-L.js.map +1 -0
- package/dist/chunks/Button-Cptd4Yk7.d.ts +2 -1
- package/dist/chunks/Chip-DCaWaBqo.js +2 -0
- package/dist/chunks/Chip-DCaWaBqo.js.map +1 -0
- package/dist/chunks/CloseButton-DPgQztE0.js +2 -0
- package/dist/chunks/CloseButton-DPgQztE0.js.map +1 -0
- package/dist/chunks/ComboboxItem-C9TpoJOI.d.ts +2 -1
- package/dist/chunks/ComboboxListBox-Cm3L1ULl.js +2 -0
- package/dist/chunks/ComboboxListBox-Cm3L1ULl.js.map +1 -0
- package/dist/chunks/DateSegment-2agXAd0f.js +2 -0
- package/dist/chunks/DateSegment-2agXAd0f.js.map +1 -0
- package/dist/chunks/{FormHelp-Be2PQL0y.js → FormHelp-AE6_iSLJ.js} +2 -1
- package/dist/chunks/FormHelp-AE6_iSLJ.js.map +1 -0
- package/dist/chunks/FormLabel-CYcQiFUI.js +2 -1
- package/dist/chunks/FormLabel-CYcQiFUI.js.map +1 -0
- package/dist/chunks/Icon-CioraWLF.d.ts +2 -1
- package/dist/chunks/Icon-DLB1f88W.js +2 -0
- package/dist/chunks/Icon-DLB1f88W.js.map +1 -0
- package/dist/chunks/Link-CZsWCnQb.js +2 -0
- package/dist/chunks/Link-CZsWCnQb.js.map +1 -0
- package/dist/chunks/{Link-B0Y1xgYi.d.ts → Link-nrd0JWlO.d.ts} +7 -5
- package/dist/chunks/Menu-CSBg2Zmc.js +2 -0
- package/dist/chunks/Menu-CSBg2Zmc.js.map +1 -0
- package/dist/chunks/Menu-QeYOzrUL.d.ts +95 -0
- package/dist/chunks/MenuItemDef-D0VDtYIQ.d.ts +2 -1
- package/dist/chunks/MenuToggle-BdQtF7FV.js +2 -0
- package/dist/chunks/MenuToggle-BdQtF7FV.js.map +1 -0
- package/dist/chunks/Portal-CgeR1WXV.js +2 -0
- package/dist/chunks/Portal-CgeR1WXV.js.map +1 -0
- package/dist/chunks/RangeCalendar-BJl-j4W2.js +2 -0
- package/dist/chunks/RangeCalendar-BJl-j4W2.js.map +1 -0
- package/dist/chunks/VisuallyHidden-C2dM7HhC.js +2 -0
- package/dist/chunks/VisuallyHidden-C2dM7HhC.js.map +1 -0
- package/dist/chunks/accordion-B8UWyvQB.js +2 -0
- package/dist/chunks/accordion-B8UWyvQB.js.map +1 -0
- package/dist/chunks/alert-BXI-_qlt.js +2 -0
- package/dist/chunks/alert-BXI-_qlt.js.map +1 -0
- package/dist/chunks/autocomplete-Baf9VSHN.js +2 -0
- package/dist/chunks/autocomplete-Baf9VSHN.js.map +1 -0
- package/dist/chunks/avatar-S3dGy6Qc.js +2 -0
- package/dist/chunks/avatar-S3dGy6Qc.js.map +1 -0
- package/dist/chunks/{badge-Bj8mf8lu.js → badge-D2oztCvs.js} +2 -1
- package/dist/chunks/badge-D2oztCvs.js.map +1 -0
- package/dist/chunks/{breadcrumb-DDxnx_iS.js → breadcrumb-s6J9itez.js} +2 -1
- package/dist/chunks/breadcrumb-s6J9itez.js.map +1 -0
- package/dist/chunks/breakpoints-CJ-498B7.d.ts +7 -0
- package/dist/chunks/breakpoints-o_2Ev7ir.js +2 -1
- package/dist/chunks/breakpoints-o_2Ev7ir.js.map +1 -0
- package/dist/chunks/button-group-BGppPrIv.js +2 -0
- package/dist/chunks/button-group-BGppPrIv.js.map +1 -0
- package/dist/chunks/{card-DfF2K_5p.js → card-YXn3bj_d.js} +2 -1
- package/dist/chunks/card-YXn3bj_d.js.map +1 -0
- package/dist/chunks/carousel-fTVPqnSV.js +2 -0
- package/dist/chunks/carousel-fTVPqnSV.js.map +1 -0
- package/dist/chunks/checkbox-ChACalAw.js +2 -0
- package/dist/chunks/checkbox-ChACalAw.js.map +1 -0
- package/dist/chunks/chip-input-BpVDRERg.js +2 -0
- package/dist/chunks/chip-input-BpVDRERg.js.map +1 -0
- package/dist/chunks/collapse--Go2Y73B.js +2 -0
- package/dist/chunks/collapse--Go2Y73B.js.map +1 -0
- package/dist/chunks/{color-input-CyRaLR_G.js → color-input-Bwl5ef5B.js} +2 -1
- package/dist/chunks/color-input-Bwl5ef5B.js.map +1 -0
- package/dist/chunks/combobox-Bp1tIaiW.js +2 -0
- package/dist/chunks/combobox-Bp1tIaiW.js.map +1 -0
- package/dist/chunks/context-menu-B4a0tS-h.js +2 -0
- package/dist/chunks/context-menu-B4a0tS-h.js.map +1 -0
- package/dist/chunks/datagrid-CH3Cy-q7.js +3 -0
- package/dist/chunks/datagrid-CH3Cy-q7.js.map +1 -0
- package/dist/chunks/dateRangePresets-R1FtA1zp.d.ts +2 -1
- package/dist/chunks/datepicker-bOiM_zhJ.js +2 -0
- package/dist/chunks/datepicker-bOiM_zhJ.js.map +1 -0
- package/dist/chunks/dialogTransition-i9vw0i2Z.js +2 -1
- package/dist/chunks/dialogTransition-i9vw0i2Z.js.map +1 -0
- package/dist/chunks/direction-LN6uwsK5.js +2 -0
- package/dist/chunks/direction-LN6uwsK5.js.map +1 -0
- package/dist/chunks/divider-CjbF4OfA.js +2 -0
- package/dist/chunks/divider-CjbF4OfA.js.map +1 -0
- package/dist/chunks/drawer-C7Tz4XU_.js +2 -0
- package/dist/chunks/drawer-C7Tz4XU_.js.map +1 -0
- package/dist/chunks/{file-input-RRqZSzjH.js → file-input-CDM6qrmV.js} +2 -1
- package/dist/chunks/file-input-CDM6qrmV.js.map +1 -0
- package/dist/chunks/{flex-BTvpgaRv.js → flex-CmlJbKVj.js} +2 -1
- package/dist/chunks/flex-CmlJbKVj.js.map +1 -0
- package/dist/chunks/floating-input-DmSZZc27.js +2 -0
- package/dist/chunks/floating-input-DmSZZc27.js.map +1 -0
- package/dist/chunks/focus-ring-SR_LwaN7.js +2 -1
- package/dist/chunks/focus-ring-SR_LwaN7.js.map +1 -0
- package/dist/chunks/focusRedirect-BrvK3U_o.js +2 -1
- package/dist/chunks/focusRedirect-BrvK3U_o.js.map +1 -0
- package/dist/chunks/form-GpdAyWWi.js +2 -1
- package/dist/chunks/form-GpdAyWWi.js.map +1 -0
- package/dist/chunks/form-field-CNPGTMiW.js +2 -0
- package/dist/chunks/form-field-CNPGTMiW.js.map +1 -0
- package/dist/chunks/grid-DK_vxz-4.js +2 -0
- package/dist/chunks/grid-DK_vxz-4.js.map +1 -0
- package/dist/chunks/{icon-mxYpL5nL.js → icon-BQsT6YtE.js} +2 -1
- package/dist/chunks/icon-BQsT6YtE.js.map +1 -0
- package/dist/chunks/{iconConfig-Bu6Pt9o3.d.ts → iconConfig-C6gbYhsD.d.ts} +5 -3
- package/dist/chunks/iconSlot-BNu2MrFI.js +2 -0
- package/dist/chunks/iconSlot-BNu2MrFI.js.map +1 -0
- package/dist/chunks/{index-BO_1MN66.d.ts → index-4cKG9KWB.d.ts} +3 -5
- package/dist/chunks/index-6uob77s9.d.ts +2 -1
- package/dist/chunks/{index-tOodmT36.d.ts → index-91YA-jkp.d.ts} +4 -6
- package/dist/chunks/index-9rQeMqVI.d.ts +42 -0
- package/dist/chunks/index-B0-8n-Gs.d.ts +2 -1
- package/dist/chunks/index-B2K-O9kl.d.ts +59 -0
- package/dist/chunks/index-B8uaSJA9.d.ts +2 -1
- package/dist/chunks/index-BA-raEMm.d.ts +2 -1
- package/dist/chunks/{index-C61tPIJ-.d.ts → index-BAsbRx5n.d.ts} +6 -2
- package/dist/chunks/index-BF3OWUVc.d.ts +66 -0
- package/dist/chunks/{index-DB_ToPdz.d.ts → index-BNf0jIIL.d.ts} +12 -1
- package/dist/chunks/index-BO9jLOIb.d.ts +2 -1
- package/dist/chunks/index-BTTeKpiE.d.ts +2 -1
- package/dist/chunks/index-BVGGIaPX.d.ts +2 -1
- package/dist/chunks/{index-qgZ5VGmc.d.ts → index-B_UzbGOa.d.ts} +20 -2
- package/dist/chunks/index-Bi8FFadV.d.ts +2 -1
- package/dist/chunks/index-Bkj17NEQ.d.ts +2 -1
- package/dist/chunks/{index-BKMW0rkw.d.ts → index-Bm2NpgND.d.ts} +4 -2
- package/dist/chunks/{index-XjLvaH4G.d.ts → index-BnR7wjax.d.ts} +6 -5
- package/dist/chunks/{index--0_IpTDT.d.ts → index-BxROljJI.d.ts} +3 -2
- package/dist/chunks/index-Bz8MDq0H.d.ts +85 -0
- package/dist/chunks/{index-Cf2n0l0U.d.ts → index-C4Dks__B.d.ts} +3 -2
- package/dist/chunks/index-CCXJXToc.d.ts +2 -1
- package/dist/chunks/{index-COsYSDrz.d.ts → index-CFnQubsV.d.ts} +17 -3
- package/dist/chunks/{index-DPV62IdF.d.ts → index-CJXKl97l.d.ts} +11 -9
- package/dist/chunks/index-CJzKu7QI.d.ts +2 -1
- package/dist/chunks/{index-ClT3E_hv.d.ts → index-CKx1KHED.d.ts} +4 -3
- package/dist/chunks/index-COsIPd8L.d.ts +2 -1
- package/dist/chunks/index-CRfm7W6C.d.ts +2 -1
- package/dist/chunks/{index-dh3TKanY.d.ts → index-CTpwB1yR.d.ts} +3 -2
- package/dist/chunks/index-CVUMS0x7.d.ts +2 -1
- package/dist/chunks/{index-BlgkO3dn.d.ts → index-CYgBmZ8w.d.ts} +24 -33
- package/dist/chunks/{index-Dum6Y9XR.d.ts → index-Cc4SSslb.d.ts} +20 -2
- package/dist/chunks/index-CftERHnE.d.ts +2 -1
- package/dist/chunks/{index-CaQ1JY5D.d.ts → index-Ci7AEgEc.d.ts} +4 -6
- package/dist/chunks/{index-BxTlIaZu.d.ts → index-CqZ68Z8R.d.ts} +125 -11
- package/dist/chunks/{index-D2VVO8rx.d.ts → index-CsARGAzD.d.ts} +3 -2
- package/dist/chunks/index-CsMIgBsd.d.ts +2 -1
- package/dist/chunks/index-D9PZHY_I.d.ts +2 -1
- package/dist/chunks/index-DAoPg59I.d.ts +2 -1
- package/dist/chunks/index-DHGgezXU.d.ts +2 -1
- package/dist/chunks/index-DHOG_rjE.d.ts +121 -0
- package/dist/chunks/index-DJfga0Ce.d.ts +57 -0
- package/dist/chunks/{index-BTDgfLxK.d.ts → index-DJr_ZK4b.d.ts} +21 -5
- package/dist/chunks/index-DMbdEm__.d.ts +119 -0
- package/dist/chunks/{index-DJJocp_q.d.ts → index-DXjbI7Yv.d.ts} +3 -2
- package/dist/chunks/index-DaHQdNul.d.ts +182 -0
- package/dist/chunks/index-Dcc_W6Kv.d.ts +2 -1
- package/dist/chunks/{index-nklPDKlC.d.ts → index-DceCODH9.d.ts} +3 -2
- package/dist/chunks/index-Ddd7iWfm.d.ts +32 -0
- package/dist/chunks/index-Dfg4Ftb8.d.ts +2 -1
- package/dist/chunks/index-Dfy1YW5j.d.ts +2 -1
- package/dist/chunks/index-DgHvXzVh.d.ts +208 -0
- package/dist/chunks/index-Dh5CaHTP.d.ts +2 -1
- package/dist/chunks/{index-8PhBSbNQ.d.ts → index-DjXRq-n3.d.ts} +15 -10
- package/dist/chunks/{index-JllMXhVx.d.ts → index-DjrEvKd-.d.ts} +21 -4
- package/dist/chunks/index-DtbUXxjz.d.ts +2 -1
- package/dist/chunks/index-Du9fBqkT.d.ts +56 -0
- package/dist/chunks/index-FKh7iFQE.d.ts +95 -0
- package/dist/chunks/index-HrKN6s8z.d.ts +2 -1
- package/dist/chunks/{index-DR8sYtvd.d.ts → index-I-H3VJ-L.d.ts} +20 -87
- package/dist/chunks/{index-DEb9zXlC.d.ts → index-RHJhkSY-.d.ts} +79 -16
- package/dist/chunks/{index-Ctuk1xBU.d.ts → index-e7SJkI_m.d.ts} +9 -6
- package/dist/chunks/index-g74gO0pc.d.ts +36 -0
- package/dist/chunks/{index-DKma0jQw.d.ts → index-qMq_-GY2.d.ts} +3 -2
- package/dist/chunks/index-t_x6jj7l.d.ts +2 -1
- package/dist/chunks/{input-adorn-C_EHML68.js → input-adorn-DwdX-jxA.js} +2 -1
- package/dist/chunks/input-adorn-DwdX-jxA.js.map +1 -0
- package/dist/chunks/{input-group-iI7azfvE.js → input-group-Cuiuf4Dl.js} +2 -1
- package/dist/chunks/input-group-Cuiuf4Dl.js.map +1 -0
- package/dist/chunks/lazyElement-tfMG21pZ.js +2 -0
- package/dist/chunks/lazyElement-tfMG21pZ.js.map +1 -0
- package/dist/chunks/list-BQCkwWjF.js +2 -0
- package/dist/chunks/list-BQCkwWjF.js.map +1 -0
- package/dist/chunks/menu-98EAD9nj.js +2 -0
- package/dist/chunks/menu-98EAD9nj.js.map +1 -0
- package/dist/chunks/modal-bgDR29Jh.js +2 -0
- package/dist/chunks/modal-bgDR29Jh.js.map +1 -0
- package/dist/chunks/nav-TiZuTHC6.js +2 -0
- package/dist/chunks/nav-TiZuTHC6.js.map +1 -0
- package/dist/chunks/nav-overflow-Ay5mM5Gc.js +2 -0
- package/dist/chunks/nav-overflow-Ay5mM5Gc.js.map +1 -0
- package/dist/chunks/navOverflow-B5krZe6D.js +2 -0
- package/dist/chunks/navOverflow-B5krZe6D.js.map +1 -0
- package/dist/chunks/navVariant-CnD21GBS.d.ts +5 -0
- package/dist/chunks/navVariant-DeGTk9B7.js +2 -0
- package/dist/chunks/navVariant-DeGTk9B7.js.map +1 -0
- package/dist/chunks/navbar-DxIwt0sc.js +2 -0
- package/dist/chunks/navbar-DxIwt0sc.js.map +1 -0
- package/dist/chunks/notification-Ds24wnPq.js +2 -0
- package/dist/chunks/notification-Ds24wnPq.js.map +1 -0
- package/dist/chunks/number-field-IBIX2IWH.js +2 -0
- package/dist/chunks/number-field-IBIX2IWH.js.map +1 -0
- package/dist/chunks/otp-input-ws393uPB.js +2 -0
- package/dist/chunks/otp-input-ws393uPB.js.map +1 -0
- package/dist/chunks/overlayPlacement-BtS90IVf.js +2 -1
- package/dist/chunks/overlayPlacement-BtS90IVf.js.map +1 -0
- package/dist/chunks/{overlayPlacement-B7843a-Q.d.ts → overlayPlacement-CIsLpycT.d.ts} +3 -2
- package/dist/chunks/pagination-BkOquk-x.js +2 -0
- package/dist/chunks/pagination-BkOquk-x.js.map +1 -0
- package/dist/chunks/password-strength-DDK8pHRq.js +2 -0
- package/dist/chunks/password-strength-DDK8pHRq.js.map +1 -0
- package/dist/chunks/placeholder-BCr83sUn.js +2 -0
- package/dist/chunks/placeholder-BCr83sUn.js.map +1 -0
- package/dist/chunks/polymorphic-BhGNZQja.js +2 -0
- package/dist/chunks/polymorphic-BhGNZQja.js.map +1 -0
- package/dist/chunks/polymorphic-CVHbTHSN.d.ts +2 -1
- package/dist/chunks/popover-Bdg8D4sm.js +2 -0
- package/dist/chunks/popover-Bdg8D4sm.js.map +1 -0
- package/dist/chunks/{progress-DlrZ71aV.js → progress-zWkTltor.js} +2 -1
- package/dist/chunks/progress-zWkTltor.js.map +1 -0
- package/dist/chunks/radio-DOFYCfJi.js +2 -0
- package/dist/chunks/radio-DOFYCfJi.js.map +1 -0
- package/dist/chunks/{range-input-BN3430j-.js → range-input-CT_8TKL7.js} +2 -1
- package/dist/chunks/range-input-CT_8TKL7.js.map +1 -0
- package/dist/chunks/renderFormCheck-DN_-V62U.js +2 -0
- package/dist/chunks/renderFormCheck-DN_-V62U.js.map +1 -0
- package/dist/chunks/{renderFormCheck-CYWG-Rbt.d.ts → renderFormCheck-DZh_5Df8.d.ts} +3 -2
- package/dist/chunks/renderFormField-Brkw1yA6.js +2 -0
- package/dist/chunks/renderFormField-Brkw1yA6.js.map +1 -0
- package/dist/chunks/{renderFormField-fBEny6JV.d.ts → renderFormField-ChNagAFN.d.ts} +3 -2
- package/dist/chunks/{renderMenuItemContent-CmqT3YUQ.js → renderMenuItemContent-DUezZrpj.js} +2 -1
- package/dist/chunks/renderMenuItemContent-DUezZrpj.js.map +1 -0
- package/dist/chunks/scrollspy-C2HmrnZ4.js +2 -0
- package/dist/chunks/scrollspy-C2HmrnZ4.js.map +1 -0
- package/dist/chunks/scrollspy-D_lPjb92.js +2 -0
- package/dist/chunks/scrollspy-D_lPjb92.js.map +1 -0
- package/dist/chunks/search-field--nDoCI_E.js +2 -0
- package/dist/chunks/search-field--nDoCI_E.js.map +1 -0
- package/dist/chunks/select-BwJIfv9f.js +2 -0
- package/dist/chunks/select-BwJIfv9f.js.map +1 -0
- package/dist/chunks/skeleton-BrD2JwNx.js +2 -0
- package/dist/chunks/skeleton-BrD2JwNx.js.map +1 -0
- package/dist/chunks/slot-CNhFZdHF.js +2 -0
- package/dist/chunks/slot-CNhFZdHF.js.map +1 -0
- package/dist/chunks/spacingClassName-DVhk8m3P.js +2 -1
- package/dist/chunks/spacingClassName-DVhk8m3P.js.map +1 -0
- package/dist/chunks/spinner-DblhvrHL.js +2 -0
- package/dist/chunks/spinner-DblhvrHL.js.map +1 -0
- package/dist/chunks/{stack-D3retZ-W.js → stack-CsMiQbpq.js} +2 -1
- package/dist/chunks/stack-CsMiQbpq.js.map +1 -0
- package/dist/chunks/static-table-D0M4oc_t.js +2 -1
- package/dist/chunks/static-table-D0M4oc_t.js.map +1 -0
- package/dist/chunks/stepper-CVXMJ2yg.js +2 -0
- package/dist/chunks/stepper-CVXMJ2yg.js.map +1 -0
- package/dist/chunks/switch-C6s3LxEv.js +2 -0
- package/dist/chunks/switch-C6s3LxEv.js.map +1 -0
- package/dist/chunks/table-Cy6uEuEP.js +2 -0
- package/dist/chunks/table-Cy6uEuEP.js.map +1 -0
- package/dist/chunks/tableClassName-CZA2Bse8.js +2 -1
- package/dist/chunks/tableClassName-CZA2Bse8.js.map +1 -0
- package/dist/chunks/tabs-91T7-8qq.js +2 -0
- package/dist/chunks/tabs-91T7-8qq.js.map +1 -0
- package/dist/chunks/text-input-B4pTv6SU.js +2 -0
- package/dist/chunks/text-input-B4pTv6SU.js.map +1 -0
- package/dist/chunks/textarea-1A1nABQE.js +2 -0
- package/dist/chunks/textarea-1A1nABQE.js.map +1 -0
- package/dist/chunks/time-field-B3MA7ED_.js +2 -0
- package/dist/chunks/time-field-B3MA7ED_.js.map +1 -0
- package/dist/chunks/toast-CGHl3-oU.js +2 -0
- package/dist/chunks/toast-CGHl3-oU.js.map +1 -0
- package/dist/chunks/tooltip-Bc-u6nIW.js +2 -0
- package/dist/chunks/tooltip-Bc-u6nIW.js.map +1 -0
- package/dist/chunks/tree-Cql1veeZ.js +2 -0
- package/dist/chunks/tree-Cql1veeZ.js.map +1 -0
- package/dist/chunks/types-CS_40Txv.d.ts +2 -1
- package/dist/chunks/unhandledProps-9Kdj7WVf.js +2 -0
- package/dist/chunks/unhandledProps-9Kdj7WVf.js.map +1 -0
- package/dist/chunks/useButtonSemantics-CILM_lhi.js +2 -1
- package/dist/chunks/useButtonSemantics-CILM_lhi.js.map +1 -0
- package/dist/chunks/useControllableState-CPUJxfKW.js +2 -0
- package/dist/chunks/useControllableState-CPUJxfKW.js.map +1 -0
- package/dist/chunks/useDialogElement-CgOnJAzu.js +2 -0
- package/dist/chunks/useDialogElement-CgOnJAzu.js.map +1 -0
- package/dist/chunks/useDisabledAnchorGuard-Cz58UCXy.js +2 -1
- package/dist/chunks/useDisabledAnchorGuard-Cz58UCXy.js.map +1 -0
- package/dist/chunks/useFloatingOverlay-DLIvwx-8.js +2 -0
- package/dist/chunks/useFloatingOverlay-DLIvwx-8.js.map +1 -0
- package/dist/chunks/useForkedRef-DVEfT-KI.js +2 -1
- package/dist/chunks/useForkedRef-DVEfT-KI.js.map +1 -0
- package/dist/chunks/useFormField-BOqmBTC4.js +2 -1
- package/dist/chunks/useFormField-BOqmBTC4.js.map +1 -0
- package/dist/chunks/useIsomorphicLayoutEffect-BbqRwuqn.js +2 -1
- package/dist/chunks/useIsomorphicLayoutEffect-BbqRwuqn.js.map +1 -0
- package/dist/chunks/useOpenStateProps-DykUbnPJ.js +2 -0
- package/dist/chunks/useOpenStateProps-DykUbnPJ.js.map +1 -0
- package/dist/chunks/useToastRegionQueue-CIV5SdiE.js +2 -0
- package/dist/chunks/useToastRegionQueue-CIV5SdiE.js.map +1 -0
- package/dist/chunks/useTransitionState-e5ToY7eX.js +2 -0
- package/dist/chunks/useTransitionState-e5ToY7eX.js.map +1 -0
- package/dist/chunks/validationClassName-gRGs4KBm.js +2 -1
- package/dist/chunks/validationClassName-gRGs4KBm.js.map +1 -0
- package/dist/chunks/visibleState-B_i1zHu2.js +2 -0
- package/dist/chunks/visibleState-B_i1zHu2.js.map +1 -0
- package/dist/close-button.d.ts +1 -1
- package/dist/close-button.js +1 -1
- package/dist/collapse.js +1 -1
- package/dist/color-input.js +1 -1
- package/dist/combobox.js +1 -1
- package/dist/context-menu.d.ts +2 -0
- package/dist/context-menu.js +1 -0
- package/dist/datagrid.js +1 -1
- package/dist/datepicker.d.ts +1 -1
- package/dist/datepicker.js +1 -1
- package/dist/divider.d.ts +2 -0
- package/dist/divider.js +1 -0
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.js +1 -1
- package/dist/file-input.js +1 -1
- package/dist/flex.js +1 -1
- package/dist/floating-input.d.ts +1 -1
- package/dist/floating-input.js +1 -1
- package/dist/form-field.d.ts +1 -1
- package/dist/form-field.js +1 -1
- package/dist/form.js +1 -1
- package/dist/grid.d.ts +2 -2
- package/dist/grid.js +1 -1
- package/dist/icon.d.ts +2 -2
- package/dist/icon.js +1 -1
- package/dist/index.d.ts +50 -38
- package/dist/index.js +1 -1
- package/dist/input-adorn.js +1 -1
- package/dist/input-group.js +1 -1
- package/dist/link.d.ts +1 -1
- package/dist/link.js +1 -1
- package/dist/list.d.ts +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.d.ts +2 -1
- package/dist/menu.js +1 -1
- package/dist/modal.d.ts +1 -1
- package/dist/modal.js +1 -1
- package/dist/nav-overflow.d.ts +2 -0
- package/dist/nav-overflow.js +1 -0
- package/dist/nav.d.ts +2 -2
- package/dist/nav.js +1 -1
- package/dist/navbar.d.ts +1 -1
- package/dist/navbar.js +1 -1
- package/dist/notification.d.ts +1 -1
- package/dist/notification.js +1 -1
- package/dist/number-field.d.ts +2 -0
- package/dist/number-field.js +1 -0
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +1 -1
- package/dist/password-strength.d.ts +1 -1
- package/dist/password-strength.js +1 -1
- package/dist/placeholder.d.ts +1 -1
- package/dist/placeholder.js +1 -1
- package/dist/popover.d.ts +1 -1
- package/dist/popover.js +1 -1
- package/dist/portal.d.ts +2 -0
- package/dist/portal.js +1 -0
- package/dist/progress.js +1 -1
- package/dist/radio.d.ts +1 -1
- package/dist/radio.js +1 -1
- package/dist/range-input.js +1 -1
- package/dist/scrollspy.d.ts +2 -0
- package/dist/scrollspy.js +1 -0
- package/dist/search-field.d.ts +2 -0
- package/dist/search-field.js +1 -0
- package/dist/select.js +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/spinner.js +1 -1
- package/dist/stack.js +1 -1
- package/dist/stepper.d.ts +1 -1
- package/dist/stepper.js +1 -1
- package/dist/style.css +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-input.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/time-field.d.ts +2 -0
- package/dist/time-field.js +1 -0
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/tree.d.ts +2 -0
- package/dist/tree.js +1 -0
- package/dist/visually-hidden.d.ts +2 -0
- package/dist/visually-hidden.js +1 -0
- package/package.json +61 -52
- package/dist/chunks/Button-I0aUy5h-.js +0 -1
- package/dist/chunks/Chip-D0Cw0mAr.js +0 -1
- package/dist/chunks/CloseButton-DJM7FRKh.js +0 -1
- package/dist/chunks/ComboboxListBox-BhO8uRNg.js +0 -1
- package/dist/chunks/Icon-BIwkD-kx.js +0 -1
- package/dist/chunks/Link-Cq7FNWpm.js +0 -1
- package/dist/chunks/RangeCalendar-COnSfurr.js +0 -1
- package/dist/chunks/accordion-okRicuG5.js +0 -1
- package/dist/chunks/autocomplete-B0xTc6kg.js +0 -1
- package/dist/chunks/avatar-Bjm0DlPO.js +0 -1
- package/dist/chunks/breakpoints-SLMTNHF9.d.ts +0 -5
- package/dist/chunks/button-group-CPZYA6aZ.js +0 -1
- package/dist/chunks/carousel-DEvwcA7H.js +0 -1
- package/dist/chunks/checkbox-BFPS0pD6.js +0 -1
- package/dist/chunks/chip-input-CB1lE6vP.js +0 -1
- package/dist/chunks/collapse-WifcChO8.js +0 -1
- package/dist/chunks/combobox-DWEj-Sv7.js +0 -1
- package/dist/chunks/datagrid-nbnNThsT.js +0 -2
- package/dist/chunks/datepicker-CslLKMm1.js +0 -1
- package/dist/chunks/direction-CPhdeL3A.js +0 -1
- package/dist/chunks/drawer-zReFjoJG.js +0 -1
- package/dist/chunks/floating-input-CIC9Lm2a.js +0 -1
- package/dist/chunks/form-field-BjQ9SIjx.js +0 -1
- package/dist/chunks/grid-CuFw89yV.js +0 -1
- package/dist/chunks/iconSlot-BmWxJh27.js +0 -1
- package/dist/chunks/index-BDfh8YBc.d.ts +0 -39
- package/dist/chunks/index-D949AidR.d.ts +0 -40
- package/dist/chunks/list-CMr-wB9d.js +0 -1
- package/dist/chunks/menu-CXUc-Gva.js +0 -1
- package/dist/chunks/modal-ByIj71Mq.js +0 -1
- package/dist/chunks/nav-BldxFo_B.js +0 -1
- package/dist/chunks/navbar-BwcsQuBk.js +0 -1
- package/dist/chunks/notification-DdqigVB1.js +0 -1
- package/dist/chunks/otp-input-CXe_wkII.js +0 -1
- package/dist/chunks/pagination-BOpEAYW2.js +0 -1
- package/dist/chunks/password-strength-BfLiYiGj.js +0 -1
- package/dist/chunks/placeholder-pg95KELl.js +0 -1
- package/dist/chunks/polymorphic-CACPOv1_.js +0 -1
- package/dist/chunks/popover-BpSfnZzk.js +0 -1
- package/dist/chunks/radio-BV7Sq6D1.js +0 -1
- package/dist/chunks/renderFormCheck-BXBs6_ov.js +0 -1
- package/dist/chunks/renderFormField-wiaxvvLG.js +0 -1
- package/dist/chunks/select-CclIIux8.js +0 -1
- package/dist/chunks/skeleton-CKq76sE_.js +0 -1
- package/dist/chunks/spinner-BEq4PAlu.js +0 -1
- package/dist/chunks/stepper-CTa6e8uv.js +0 -1
- package/dist/chunks/switch-BmHpq4tL.js +0 -1
- package/dist/chunks/table-Fme9GbAR.js +0 -1
- package/dist/chunks/tabs-BnbMJM_b.js +0 -1
- package/dist/chunks/text-input-DD3d08Yf.js +0 -1
- package/dist/chunks/textarea-C0qQdCcu.js +0 -1
- package/dist/chunks/toast-BQhZ2pv5.js +0 -1
- package/dist/chunks/tooltip-DHtVAYUo.js +0 -1
- package/dist/chunks/triggerElement-BIqA4KqZ.js +0 -1
- package/dist/chunks/useDialogElement-BRIU60cT.js +0 -1
- package/dist/chunks/useFloatingOverlay-CcmDZKMK.js +0 -1
- package/dist/chunks/useToastRegionQueue-BH6bWZ73.js +0 -1
- package/src/components/accordion/Accordion.tsx +0 -190
- package/src/components/accordion/AccordionBody.tsx +0 -46
- package/src/components/accordion/AccordionHeader.tsx +0 -21
- package/src/components/accordion/AccordionItem.tsx +0 -59
- package/src/components/accordion/context.ts +0 -8
- package/src/components/accordion/index.ts +0 -12
- package/src/components/autocomplete/Autocomplete.tsx +0 -464
- package/src/components/autocomplete/AutocompleteGroup.tsx +0 -20
- package/src/components/autocomplete/AutocompleteItem.tsx +0 -18
- package/src/components/autocomplete/index.ts +0 -10
- package/src/components/avatar/Avatar.tsx +0 -137
- package/src/components/avatar/AvatarImage.tsx +0 -19
- package/src/components/avatar/AvatarStack.tsx +0 -98
- package/src/components/avatar/index.ts +0 -10
- package/src/components/badge/Badge.tsx +0 -94
- package/src/components/badge/index.ts +0 -6
- package/src/components/breadcrumb/Breadcrumb.tsx +0 -68
- package/src/components/breadcrumb/BreadcrumbItem.tsx +0 -38
- package/src/components/breadcrumb/index.ts +0 -8
- package/src/components/button/Button.tsx +0 -232
- package/src/components/button/index.ts +0 -6
- package/src/components/button-group/ButtonGroup.tsx +0 -55
- package/src/components/button-group/ButtonToolbar.tsx +0 -47
- package/src/components/button-group/index.ts +0 -8
- package/src/components/calendar/Calendar.scss +0 -57
- package/src/components/calendar/Calendar.tsx +0 -338
- package/src/components/calendar/CalendarMonthBlock.tsx +0 -57
- package/src/components/calendar/CalendarMonthGrid.tsx +0 -94
- package/src/components/calendar/CalendarMonthYearPicker.tsx +0 -164
- package/src/components/calendar/CalendarNavButton.tsx +0 -24
- package/src/components/calendar/CalendarWeekGrid.tsx +0 -58
- package/src/components/calendar/CalendarYearGrid.tsx +0 -128
- package/src/components/calendar/RangeCalendar.scss +0 -95
- package/src/components/calendar/RangeCalendar.tsx +0 -373
- package/src/components/calendar/index.ts +0 -10
- package/src/components/calendar/labels.tsx +0 -71
- package/src/components/card/Card.tsx +0 -173
- package/src/components/card/CardBody.tsx +0 -75
- package/src/components/card/CardFooter.tsx +0 -47
- package/src/components/card/CardGroup.tsx +0 -51
- package/src/components/card/CardHeader.tsx +0 -47
- package/src/components/card/CardImage.tsx +0 -70
- package/src/components/card/CardImageOverlay.tsx +0 -47
- package/src/components/card/CardLink.tsx +0 -40
- package/src/components/card/CardSubtitle.tsx +0 -47
- package/src/components/card/CardText.tsx +0 -47
- package/src/components/card/CardTitle.tsx +0 -47
- package/src/components/card/index.ts +0 -26
- package/src/components/carousel/Carousel.tsx +0 -753
- package/src/components/carousel/CarouselControlButton.tsx +0 -81
- package/src/components/carousel/CarouselControlNext.tsx +0 -28
- package/src/components/carousel/CarouselControlPrev.tsx +0 -28
- package/src/components/carousel/CarouselIndicators.tsx +0 -44
- package/src/components/carousel/CarouselInner.tsx +0 -56
- package/src/components/carousel/CarouselItem.tsx +0 -51
- package/src/components/carousel/CarouselOverlay.tsx +0 -51
- package/src/components/carousel/CarouselPlayPause.tsx +0 -84
- package/src/components/carousel/carouselEngine.ts +0 -170
- package/src/components/carousel/context.ts +0 -29
- package/src/components/carousel/index.ts +0 -25
- package/src/components/checkbox/Checkbox.tsx +0 -252
- package/src/components/checkbox/CheckboxGroup.tsx +0 -145
- package/src/components/checkbox/context.ts +0 -14
- package/src/components/checkbox/index.ts +0 -8
- package/src/components/chip/Chip.tsx +0 -184
- package/src/components/chip/index.ts +0 -6
- package/src/components/chip-input/ChipInput.tsx +0 -371
- package/src/components/chip-input/ChipList.tsx +0 -95
- package/src/components/chip-input/index.ts +0 -6
- package/src/components/close-button/CloseButton.tsx +0 -205
- package/src/components/close-button/index.ts +0 -6
- package/src/components/collapse/Collapse.tsx +0 -128
- package/src/components/collapse/index.ts +0 -6
- package/src/components/color-input/ColorInput.tsx +0 -106
- package/src/components/color-input/index.ts +0 -6
- package/src/components/combobox/Combobox.tsx +0 -320
- package/src/components/combobox/ComboboxGroup.tsx +0 -27
- package/src/components/combobox/ComboboxItem.tsx +0 -44
- package/src/components/combobox/ComboboxListBox.tsx +0 -98
- package/src/components/combobox/index.ts +0 -10
- package/src/components/datagrid/DataGrid.scss +0 -203
- package/src/components/datagrid/DataGrid.tsx +0 -259
- package/src/components/datagrid/DataGridBody.tsx +0 -162
- package/src/components/datagrid/DataGridCell.tsx +0 -47
- package/src/components/datagrid/DataGridColumn.tsx +0 -109
- package/src/components/datagrid/DataGridHeader.tsx +0 -47
- package/src/components/datagrid/DataGridPinBehavior.tsx +0 -225
- package/src/components/datagrid/DataGridRow.tsx +0 -48
- package/src/components/datagrid/DataGridSelectionCell.tsx +0 -74
- package/src/components/datagrid/DataGridTableLayout.ts +0 -30
- package/src/components/datagrid/index.ts +0 -18
- package/src/components/datagrid/useColumnGeometry.ts +0 -161
- package/src/components/datepicker/CalendarToggleButton.tsx +0 -58
- package/src/components/datepicker/ClearButton.tsx +0 -38
- package/src/components/datepicker/DateField.tsx +0 -54
- package/src/components/datepicker/DatePicker.scss +0 -51
- package/src/components/datepicker/DatePicker.tsx +0 -606
- package/src/components/datepicker/DateRangePicker.scss +0 -11
- package/src/components/datepicker/DateRangePicker.tsx +0 -361
- package/src/components/datepicker/index.ts +0 -8
- package/src/components/datepicker/renderDatePickerShell.tsx +0 -104
- package/src/components/drawer/Drawer.tsx +0 -213
- package/src/components/drawer/DrawerBody.tsx +0 -47
- package/src/components/drawer/DrawerFooter.tsx +0 -51
- package/src/components/drawer/DrawerHeader.tsx +0 -60
- package/src/components/drawer/DrawerTitle.tsx +0 -49
- package/src/components/drawer/index.ts +0 -18
- package/src/components/file-input/FileInput.tsx +0 -100
- package/src/components/file-input/index.ts +0 -6
- package/src/components/flex/Flex.tsx +0 -134
- package/src/components/flex/index.ts +0 -6
- package/src/components/floating-input/FloatingInput.tsx +0 -94
- package/src/components/floating-input/index.ts +0 -6
- package/src/components/form/Form.tsx +0 -26
- package/src/components/form/FormFeedback.tsx +0 -64
- package/src/components/form/FormHelp.tsx +0 -46
- package/src/components/form/FormLabel.tsx +0 -26
- package/src/components/form/index.ts +0 -12
- package/src/components/form/renderFormCheck.tsx +0 -86
- package/src/components/form-field/FormField.tsx +0 -84
- package/src/components/form-field/index.ts +0 -6
- package/src/components/form-field/renderFormField.tsx +0 -85
- package/src/components/grid/Col.tsx +0 -69
- package/src/components/grid/Container.tsx +0 -59
- package/src/components/grid/Grid.tsx +0 -86
- package/src/components/grid/GridItem.tsx +0 -123
- package/src/components/grid/Row.tsx +0 -71
- package/src/components/grid/gap.ts +0 -8
- package/src/components/grid/index.ts +0 -14
- package/src/components/icon/Icon.tsx +0 -105
- package/src/components/icon/IconProvider.tsx +0 -40
- package/src/components/icon/index.ts +0 -9
- package/src/components/input-adorn/InputAdorn.tsx +0 -55
- package/src/components/input-adorn/index.ts +0 -6
- package/src/components/input-group/InputGroup.tsx +0 -50
- package/src/components/input-group/InputGroupAddon.tsx +0 -50
- package/src/components/input-group/index.ts +0 -8
- package/src/components/link/Link.tsx +0 -148
- package/src/components/link/index.ts +0 -6
- package/src/components/list/List.tsx +0 -193
- package/src/components/list/ListItem.tsx +0 -91
- package/src/components/list/index.ts +0 -8
- package/src/components/menu/Menu.tsx +0 -408
- package/src/components/menu/MenuDivider.tsx +0 -19
- package/src/components/menu/MenuHeader.tsx +0 -55
- package/src/components/menu/MenuItem.tsx +0 -85
- package/src/components/menu/MenuItemDef.ts +0 -83
- package/src/components/menu/MenuList.tsx +0 -142
- package/src/components/menu/MenuSubmenu.tsx +0 -284
- package/src/components/menu/MenuSubmenuBack.tsx +0 -39
- package/src/components/menu/MenuText.tsx +0 -47
- package/src/components/menu/MenuToggle.tsx +0 -148
- package/src/components/menu/index.ts +0 -23
- package/src/components/menu/menuNavigation.ts +0 -106
- package/src/components/menu/submenuGroup.ts +0 -43
- package/src/components/modal/Modal.tsx +0 -164
- package/src/components/modal/ModalBody.tsx +0 -47
- package/src/components/modal/ModalFooter.tsx +0 -51
- package/src/components/modal/ModalHeader.tsx +0 -60
- package/src/components/modal/ModalTitle.tsx +0 -49
- package/src/components/modal/index.ts +0 -18
- package/src/components/nav/Nav.tsx +0 -97
- package/src/components/nav/NavItem.tsx +0 -42
- package/src/components/nav/NavLink.tsx +0 -48
- package/src/components/nav/NavTitle.tsx +0 -22
- package/src/components/nav/index.ts +0 -11
- package/src/components/navbar/Navbar.tsx +0 -112
- package/src/components/navbar/NavbarBrand.tsx +0 -58
- package/src/components/navbar/NavbarNav.tsx +0 -47
- package/src/components/navbar/NavbarText.tsx +0 -47
- package/src/components/navbar/NavbarToggler.tsx +0 -40
- package/src/components/navbar/index.ts +0 -14
- package/src/components/notification/Notification.scss +0 -15
- package/src/components/notification/Notification.tsx +0 -188
- package/src/components/notification/NotificationIcon.tsx +0 -21
- package/src/components/notification/NotificationStack.tsx +0 -66
- package/src/components/notification/NotificationText.tsx +0 -47
- package/src/components/notification/NotificationTitle.tsx +0 -47
- package/src/components/notification/context.ts +0 -14
- package/src/components/notification/index.ts +0 -25
- package/src/components/notification/notificationQueue.ts +0 -48
- package/src/components/otp-input/OtpBox.tsx +0 -68
- package/src/components/otp-input/OtpInput.tsx +0 -342
- package/src/components/otp-input/index.ts +0 -6
- package/src/components/pagination/Pagination.tsx +0 -212
- package/src/components/pagination/PaginationItem.tsx +0 -152
- package/src/components/pagination/index.ts +0 -12
- package/src/components/password-strength/PasswordStrength.tsx +0 -155
- package/src/components/password-strength/index.ts +0 -6
- package/src/components/password-strength/strengthScore.ts +0 -79
- package/src/components/placeholder/Placeholder.tsx +0 -178
- package/src/components/placeholder/index.ts +0 -6
- package/src/components/popover/Popover.tsx +0 -269
- package/src/components/popover/index.ts +0 -6
- package/src/components/progress/Progress.tsx +0 -154
- package/src/components/progress/ProgressBar.tsx +0 -88
- package/src/components/progress/index.ts +0 -8
- package/src/components/radio/Radio.tsx +0 -98
- package/src/components/radio/RadioGroup.tsx +0 -142
- package/src/components/radio/context.ts +0 -14
- package/src/components/radio/index.ts +0 -8
- package/src/components/range-input/RangeInput.tsx +0 -109
- package/src/components/range-input/index.ts +0 -6
- package/src/components/select/Select.tsx +0 -277
- package/src/components/select/index.ts +0 -6
- package/src/components/skeleton/Skeleton.tsx +0 -89
- package/src/components/skeleton/SkeletonLoader.tsx +0 -98
- package/src/components/skeleton/index.ts +0 -8
- package/src/components/spinner/Spinner.tsx +0 -77
- package/src/components/spinner/index.ts +0 -6
- package/src/components/stack/Stack.tsx +0 -81
- package/src/components/stack/index.ts +0 -6
- package/src/components/static-table/StaticTable.tsx +0 -78
- package/src/components/static-table/index.ts +0 -8
- package/src/components/stepper/Stepper.tsx +0 -172
- package/src/components/stepper/StepperItem.tsx +0 -66
- package/src/components/stepper/index.ts +0 -8
- package/src/components/switch/Switch.tsx +0 -259
- package/src/components/switch/index.ts +0 -6
- package/src/components/table/Table.css +0 -39
- package/src/components/table/Table.tsx +0 -405
- package/src/components/table/TableBody.tsx +0 -25
- package/src/components/table/TableCell.tsx +0 -27
- package/src/components/table/TableColumn.tsx +0 -31
- package/src/components/table/TableHeader.tsx +0 -26
- package/src/components/table/TableRow.tsx +0 -24
- package/src/components/table/index.ts +0 -16
- package/src/components/tabs/Tab.tsx +0 -36
- package/src/components/tabs/TabList.tsx +0 -76
- package/src/components/tabs/TabPanel.tsx +0 -68
- package/src/components/tabs/Tabs.tsx +0 -136
- package/src/components/tabs/context.ts +0 -24
- package/src/components/tabs/index.ts +0 -12
- package/src/components/text-input/TextInput.tsx +0 -188
- package/src/components/text-input/index.ts +0 -6
- package/src/components/textarea/Textarea.tsx +0 -145
- package/src/components/textarea/index.ts +0 -6
- package/src/components/toast/Toast.tsx +0 -220
- package/src/components/toast/ToastBody.tsx +0 -64
- package/src/components/toast/ToastFooter.tsx +0 -47
- package/src/components/toast/ToastHeader.tsx +0 -105
- package/src/components/toast/ToastIcon.tsx +0 -21
- package/src/components/toast/Toaster.tsx +0 -87
- package/src/components/toast/context.ts +0 -14
- package/src/components/toast/index.ts +0 -26
- package/src/components/toast/toastQueue.ts +0 -56
- package/src/components/tooltip/Tooltip.tsx +0 -171
- package/src/components/tooltip/index.ts +0 -6
- package/src/global.d.ts +0 -2
- package/src/hooks/index.ts +0 -57
- package/src/hooks/useAutoDismiss.ts +0 -91
- package/src/hooks/useButtonSemantics.ts +0 -33
- package/src/hooks/useControllableState.ts +0 -24
- package/src/hooks/useDialogElement.ts +0 -226
- package/src/hooks/useDisabledAnchorGuard.ts +0 -22
- package/src/hooks/useDismissibleTransition.ts +0 -126
- package/src/hooks/useDrawer.ts +0 -9
- package/src/hooks/useFloatingOverlay.ts +0 -125
- package/src/hooks/useForkedRef.ts +0 -50
- package/src/hooks/useFormField.ts +0 -89
- package/src/hooks/useIconConfig.ts +0 -6
- package/src/hooks/useIsomorphicLayoutEffect.ts +0 -9
- package/src/hooks/useModal.ts +0 -9
- package/src/hooks/useNotification.ts +0 -10
- package/src/hooks/useOverlayPlacement.ts +0 -93
- package/src/hooks/usePagination.ts +0 -89
- package/src/hooks/useToast.ts +0 -9
- package/src/hooks/useToastRegionQueue.ts +0 -27
- package/src/index.ts +0 -522
- package/src/types.ts +0 -133
- package/src/utils/breakpoints.ts +0 -43
- package/src/utils/comboboxCollection.tsx +0 -152
- package/src/utils/dateRangePresets.ts +0 -6
- package/src/utils/devWarning.ts +0 -58
- package/src/utils/dialogTransition.ts +0 -39
- package/src/utils/direction.ts +0 -14
- package/src/utils/focusRedirect.ts +0 -23
- package/src/utils/iconConfig.ts +0 -88
- package/src/utils/iconSlot.tsx +0 -41
- package/src/utils/isWholeUnitDisabled.ts +0 -17
- package/src/utils/mergeIsDateUnavailable.ts +0 -15
- package/src/utils/overlayPlacement.ts +0 -93
- package/src/utils/pointerInteraction.ts +0 -21
- package/src/utils/polymorphic.ts +0 -100
- package/src/utils/renderMenuItemContent.tsx +0 -57
- package/src/utils/setVisibleRangeStart.ts +0 -64
- package/src/utils/slot.tsx +0 -78
- package/src/utils/spacingClassName.ts +0 -14
- package/src/utils/suppressFocusRingGlobally.ts +0 -84
- package/src/utils/tableClassName.ts +0 -93
- package/src/utils/triggerElement.ts +0 -25
- package/src/utils/validationClassName.ts +0 -8
- package/src/utils/virtualFocusStyle.ts +0 -16
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./iconSlot-BmWxJh27.js";import n,{forwardRef as r}from"react";import i from"classnames";function a({children:e,className:t,color:r,component:a,container:o,expand:s,placement:c,translucent:l,variant:u,...d},f){let p=a??`nav`,m=i(`navbar`,r,{context:!!r,solid:u===`solid`,smooth:u===`smooth`,outline:u===`outline`,translucent:l,[typeof s==`boolean`?`navbar-expand`:`${s}:navbar-expand`]:s},c,t),h;return h=o?n.createElement(`div`,{className:`container${o===!0?``:`-`+o}`},e):e,n.createElement(p,{className:m,...d,ref:f},h)}const o=e(a,`Navbar`);function s({children:e,component:t,className:r,href:a,...o},s){let c=t??(a?`a`:`span`),l=i(`navbar-brand`,r);return n.createElement(c,{className:l,href:a,...o,ref:s},e)}const c=e(s,`NavbarBrand`);function l({children:e,component:t,className:r,...a},o){let s=t??`ul`,c=i(`navbar-nav`,r);return n.createElement(s,{className:c,...a,ref:o},e)}const u=e(l,`NavbarNav`);function d({children:e,className:t,component:r,...a},o){let s=r??`span`,c=i(`navbar-text`,t);return n.createElement(s,{className:c,...a,ref:o},e)}const f=e(d,`NavbarText`),p=r(({children:e,className:r,icon:a,label:o=`Toggle navigation`,...s},c)=>{let l=i(`button icon-only navbar-toggler`,r);return n.createElement(`button`,{type:`button`,className:l,...s,ref:c},e??n.createElement(n.Fragment,null,n.createElement(t,{icon:`menu`,override:a,className:`navbar-toggler-icon`}),n.createElement(`span`,{className:`visually-hidden`},o)))});p.displayName=`NavbarToggler`;export{o as a,c as i,f as n,u as r,p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{n as t,r as n,t as r}from"./useToastRegionQueue-BH6bWZ73.js";import{t as i}from"./Icon-BIwkD-kx.js";import{n as a}from"./iconSlot-BmWxJh27.js";import{t as o}from"./CloseButton-DJM7FRKh.js";import{t as s}from"./stack-D3retZ-W.js";import c,{createContext as l,forwardRef as u,useContext as d}from"react";import f from"classnames";import{mergeProps as p}from"react-aria";import{ToastQueue as m}from"react-stately";import{Transition as h}from"react-transition-group";const g=l({close:()=>{}}),_=()=>d(g);function v({children:e,component:t,className:n,...r},i){let a=t??`div`,o=f(`notification-text`,n);return c.createElement(a,{className:o,...r,ref:i},e)}const y=e(v,`NotificationText`);function b({children:e,className:t,component:n,...r},i){let a=n??`h4`,o=f(`notification-title`,t);return c.createElement(a,{className:o,...r,ref:i},e)}const x=e(b,`NotificationTitle`),S=u(({actions:e,autohide:r=!1,children:i,className:s,closeLabel:l=`Close`,color:u=`primary`,delay:d=5e3,dismissible:m,icon:_,solid:v,text:b,title:S,titleComponent:C=`h4`,role:w=`status`,visible:T=!0,onClose:E,onShow:D,...O},k)=>{let{close:A,entered:j,forkedRef:M,getTransitionClass:N,textId:P,titleId:F,transitionProps:I,visible:L}=t({onClose:E,onShow:D,ref:k,visible:T}),R=n({enabled:r,delay:d,visible:L&&j,onHide:A}),z=f(`notification`,`fade`,u,{solid:v},s);return c.createElement(h,{...I,mountOnEnter:!0,timeout:150},t=>{let n=N(t);return c.createElement(g.Provider,{value:{visible:L,close:A}},c.createElement(`div`,{className:f(z,n),role:w,"aria-labelledby":S?F:void 0,"aria-describedby":S&&b?P:void 0,...p(O,R),ref:M},_&&(typeof _==`string`?c.createElement(a,{value:_,className:f(`notification-icon`,{"align-self-start":!!S})}):_),S&&c.createElement(x,{id:F,component:C},S),b&&c.createElement(y,{id:P},b),i,e,m&&c.createElement(o,{label:l,onClick:A})))})});S.displayName=`Notification`;const C=u(({className:e,...t},n)=>{let r=f(`notification-icon`,e);return c.createElement(i,{className:r,...t,ref:n})});C.displayName=`NotificationIcon`;const w=new m;function T(e,t={}){return w.add({children:e,...t})}function E(e){w.close(e)}const D=u(({children:e,className:t,reverse:n,...i},a)=>{let{forkedRef:o,regionProps:l,state:u}=r(w,a);if(u.visibleToasts.length===0&&!e)return null;let d=n?[...u.visibleToasts].reverse():u.visibleToasts;return c.createElement(s,{direction:`vertical`,gap:`sm`,className:t,...l,...i,ref:o},e,d.map(e=>{let{children:t,...n}=e.content;return c.createElement(S,{key:e.key,...n,onClose:()=>u.close(e.key)},t)}))});D.displayName=`NotificationStack`;export{C as a,y as c,w as i,_ as l,T as n,S as o,E as r,x as s,D as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,t as n}from"./direction-CPhdeL3A.js";import{t as r}from"./useFormField-BOqmBTC4.js";import{t as i}from"./renderFormField-wiaxvvLG.js";import{t as a}from"./validationClassName-gRGs4KBm.js";import o,{Fragment as s,forwardRef as c,useMemo as l,useRef as u}from"react";import d from"classnames";import{mergeProps as f,useFocusRing as p,useObjectRef as m,useTextField as h}from"react-aria";const g=c(({disabled:e,index:t,invalid:n,mask:r,onChangeValue:i,onKeyDownBox:s,onPasteBox:c,size:l,valid:u,value:g},_)=>{let v=m(_),{focusProps:y,isFocusVisible:b}=p(),{inputProps:x}=h({"aria-label":`Digit ${t+1}`,autoComplete:t===0?`one-time-code`:`off`,isDisabled:e,isInvalid:n,maxLength:1,onChange:i,onFocus:e=>e.target.select(),onKeyDown:s,type:r?`password`:`text`,value:g},v);return o.createElement(`input`,{...f(x,y),className:d(`form-input`,l,a(n,u)),"data-focus-visible":b||void 0,inputMode:`numeric`,onPaste:c,pattern:`\\d*`,ref:v})});g.displayName=`OtpBox`;const _=e=>e.replace(/\D/g,``),v=(e,t)=>{let n=[..._(e)].slice(0,t);return Array.from({length:t},(e,t)=>n[t]??``)},y=c(({className:c,defaultValue:f,disabled:p,groupSizes:m,help:h,id:y,inputGroup:b,invalid:x,invalidFeedback:S,label:C,length:w=6,mask:T,name:E,onChange:D,onComplete:O,separator:k=`–`,size:A,valid:j,validFeedback:M,value:N,...P},F)=>{let I=m&&m.length>0?m.reduce((e,t)=>e+t,0):w,[L,R]=t(N,f??``,D),z=l(()=>v(L,I),[L,I]),B=u([]),V=e=>B.current[e]?.focus(),H=u(null),U=e(F,H),W=e=>{let t=e.join(``);R(t),e.length===I&&e.every(e=>e!==``)&&O?.(t)},G=(e,t)=>{let n=_(t);if(n.length>1){let t=[...n],r=[...z];for(let n=0;n<t.length&&e+n<I;n++)r[e+n]=t[n];W(r),V(Math.min(e+t.length,I-1));return}let r=[...z];r[e]=n,W(r),n&&e<I-1&&V(e+1)},K=(e,t)=>{if(!p)switch(t.key){case`Backspace`:if(!z[e]&&e>0){t.preventDefault();let n=[...z];n[e-1]=``,W(n),V(e-1)}break;case`Delete`:{t.preventDefault();let n=[...z];for(let t=e;t<I-1;t++)n[t]=n[t+1];n[I-1]=``,W(n);break}case`ArrowLeft`:case`ArrowRight`:{let r=t.key===`ArrowRight`===n(t.currentTarget)?e-1:e+1;r>=0&&r<I&&(t.preventDefault(),V(r));break}}},q=e=>{if(e.preventDefault(),p)return;let t=_(e.clipboardData.getData(`text`)).slice(0,I);t&&(W(v(t,I)),V(Math.min(t.length,I)-1))},J=(e,t)=>Array.from({length:t},(t,n)=>e+n).map(e=>o.createElement(g,{disabled:p,index:e,invalid:x,key:e,mask:T,onChangeValue:t=>G(e,t),onKeyDownBox:t=>K(e,t),onPasteBox:q,ref:t=>{B.current[e]=t},size:A,valid:j,value:z[e]??``})),Y;if(m&&m.length>0){let e=0;Y=m.map((t,n)=>{let r=e;return e+=t,o.createElement(s,{key:n},n>0&&o.createElement(`span`,{className:`form-otp-separator`},k),b?o.createElement(`div`,{className:`input-group`},J(r,t)):J(r,t))})}else Y=J(0,I);let{describedBy:X,feedbackId:Z,helpId:Q,inputId:$,labelId:ee,labelledBy:te}=r({ariaDescribedBy:P[`aria-describedby`],ariaLabelledBy:P[`aria-labelledby`],help:h,id:y,invalid:x,invalidFeedback:S,label:C,valid:j,validFeedback:M});return i({children:o.createElement(`div`,{...P,"aria-describedby":X,"aria-labelledby":te,className:d(`form-otp`,{"input-group":b&&!(m&&m.length>0)},a(x,j),c),id:$,ref:U,role:`group`},Y,E&&o.createElement(`input`,{disabled:p,name:E,type:`hidden`,value:z.join(``)})),help:h,ids:{feedback:Z,help:Q,label:ee},invalid:x,invalidFeedback:S,label:C,valid:j,validFeedback:M})});y.displayName=`OtpInput`;export{y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useButtonSemantics-CILM_lhi.js";import{t as n}from"./focusRedirect-BrvK3U_o.js";import{t as r}from"./iconSlot-BmWxJh27.js";import i,{forwardRef as a,useEffect as o,useRef as s}from"react";import c from"classnames";import{mergeProps as l}from"react-aria";function u({prevDisabled:e,nextDisabled:t,onPrev:r,onNext:i}){let a=s(null),c=s(null),l=s(null);return o(()=>{let r=l.current;l.current=null,r&&(r.from===`prev`&&e?n(c.current,r.viaPointer):r.from===`next`&&t&&n(a.current,r.viaPointer))}),{prevRef:a,nextRef:c,handlePrevClick:e=>{l.current={from:`prev`,viaPointer:e.detail!==0},r()},handleNextClick:e=>{l.current={from:`next`,viaPointer:e.detail!==0},i()}}}function d({active:e,children:n,className:r,component:a,disabled:o,href:s,onClick:u,...d},f){let p=c(`pagination-item`,{active:e,disabled:o},r),m=a??(s?`a`:`button`),h=e=>{if(m===`a`&&o){e.preventDefault();return}u?.(e)},g=m!==`button`&&m!==`a`&&!!u,{buttonProps:_,forkedRef:v}=t(f,{disabled:o,onClick:u}),y=e?{"aria-current":`page`}:{};return i.createElement(`li`,{className:p},m===`button`?i.createElement(`button`,{...d,className:`pagination-link`,type:`button`,disabled:o,onClick:h,...y,ref:f},n):m===`a`?i.createElement(`a`,{...d,className:`pagination-link`,href:s,onClick:h,...o&&{"aria-disabled":!0,tabIndex:-1},...y,ref:f},n):i.createElement(m,{className:`pagination-link`,...l(d,g?_:{}),...!g&&{onClick:h},...y,ref:g?v:f},n))}const f=e(d,`PaginationItem`);function p(e,t,n){let r=Math.max(1,n);if(t<=r)return Array.from({length:t},(e,t)=>t+1);let i=Math.floor(r/2),a=Math.max(1,e-i),o=Math.min(t,a+r-1);o-a<r-1&&(a=Math.max(1,o-r+1));let s=[];a>1&&(s.push(1),a>2&&s.push(`...`));for(let e=a;e<=o;e++)s.push(e);return o<t&&(o<t-1&&s.push(`...`),s.push(t)),s}const m=a(({activePage:e=1,align:t,"aria-label":n=`Pagination`,children:a,className:o,maxVisiblePages:s=5,nextIcon:l,nextLabel:d=`Next`,onActivePageChange:m,pages:h,previousIcon:g,previousLabel:_=`Previous`,showPageNumbers:v=!0,showPrevNext:y=!0,size:b,...x},S)=>{let C=c(`pagination`,b,{[`justify-content-${t}`]:t},o),w=h?Math.min(Math.max(e,1),h):e,T=h?w<=1:!1,E=h?w>=h:!1,{prevRef:D,nextRef:O,handlePrevClick:k,handleNextClick:A}=u({prevDisabled:T,nextDisabled:E,onPrev:()=>m&&m(w-1),onNext:()=>m&&m(w+1)}),j=h?i.createElement(i.Fragment,null,y&&i.createElement(f,{ref:D,disabled:T,onClick:k,"aria-label":_},i.createElement(r,{icon:`previous`,override:g,className:`directional-icon`})),v&&p(w,h,s).map((e,t)=>e===`...`?i.createElement(f,{key:`ellipsis-${t}`,disabled:!0,component:`span`,"aria-hidden":`true`},`…`):i.createElement(f,{key:e,active:e===w,onClick:()=>m&&m(e)},e)),y&&i.createElement(f,{ref:O,disabled:E,onClick:A,"aria-label":d},i.createElement(r,{icon:`next`,override:l,className:`directional-icon`}))):null;return i.createElement(`nav`,{"aria-label":n,ref:S,...x},i.createElement(`ul`,{className:C},j??a))});m.displayName=`Pagination`;export{f as n,u as r,m as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import e,{Fragment as t,useEffect as n,useMemo as r,useRef as i}from"react";import a from"classnames";import{useMeter as o}from"react-aria";const s=[`weak`,`fair`,`good`,`strong`],c={extraLength:1,lowercase:1,longPassword:1,minLength:1,multipleSpecial:1,numbers:1,special:1,uppercase:1},l={fair:`Fair`,good:`Good`,strong:`Strong`,weak:`Weak`},u=[2,4,6],d=/[!"#$%&()*,.:<>?@^{|}]/,f=/[!"#$%&()*,.:<>?@^{|}].*[!"#$%&()*,.:<>?@^{|}]/,p=(e,{minLength:t,scorer:n,weights:r})=>{if(!e)return 0;if(n)return n(e);let i=0;return e.length>=t&&(i+=r.minLength),e.length>=t+4&&(i+=r.extraLength),/[a-z]/.test(e)&&(i+=r.lowercase),/[A-Z]/.test(e)&&(i+=r.uppercase),/\d/.test(e)&&(i+=r.numbers),d.test(e)&&(i+=r.special),f.test(e)&&(i+=r.multipleSpecial),e.length>=16&&(i+=r.longPassword),i},m=(e,t)=>{if(e===0)return null;let[n,r,i]=t;return e<=n?`weak`:e<=r?`fair`:e<=i?`good`:`strong`},h=({"aria-label":d=`Password strength`,className:f,id:h,maxScore:g,messages:_,minLength:v=8,onStrengthChange:y,scorer:b,showText:x=!0,thresholds:S=u,value:C,variant:w=`segmented`,weights:T,...E})=>{let D=r(()=>({...c,...T}),[T]),O=r(()=>({...l,..._}),[_]),k=r(()=>p(C,{minLength:v,scorer:b,weights:D}),[C,v,b,D]),A=r(()=>m(k,S),[k,S]),j=r(()=>g??Object.values(D).reduce((e,t)=>e+t,0),[g,D]),M=i(void 0);n(()=>{M.current!==A&&(M.current=A,y?.({score:k,strength:A}))},[A,k,y]);let{meterProps:N}=o({"aria-label":d,maxValue:j,minValue:0,value:k,valueLabel:A?O[A]:void 0}),P=A?s.indexOf(A):-1;return e.createElement(t,null,e.createElement(`div`,{...N,className:a(w===`bar`?`strength-bar`:`strength`,f),"data-cx-strength":A??void 0,id:h,...E},w===`segmented`&&s.map((t,n)=>e.createElement(`div`,{className:a(`strength-segment`,{active:n<=P}),key:t}))),x&&e.createElement(`span`,{"aria-live":`polite`,className:`strength-text`,"data-cx-strength":A??void 0},A?O[A]:``))};h.displayName=`PasswordStrength`;export{h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";const r=e=>[e===`start`||e===`end`?`float-${e}`:null,e===`center`?`d-block mx-auto`:null];function i({align:e,alt:i,className:a,color:o,component:s,fluid:c,height:l,rounded:u,src:d,text:f,thumbnail:p,title:m=`Placeholder`,variant:h,width:g,..._},v){let y=m!==!1,b=f===!1?void 0:f??(g!==void 0&&l!==void 0?`${g}x${l}`:void 0),x=b!==void 0,S=[y&&m,x&&b].filter(Boolean).join(`: `)||void 0;if(d){let o=s??`img`,f=n({image:c||p,fluid:c,rounded:u,thumbnail:p},r(e),a);return t.createElement(o,{src:d,width:g,height:l,alt:i??S??``,className:f,..._,ref:v})}let C=n(`image`,{context:!!(o||h)},o,h||`bg-evident`,`fg-subtle`,a);return t.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:g,height:l,"aria-label":S,"aria-hidden":!S||void 0,className:C,preserveAspectRatio:`xMidYMid slice`,role:S?`img`:void 0,..._,ref:v},y&&t.createElement(`title`,null,m),x&&t.createElement(`text`,{dy:`.3em`,fill:`currentColor`,textAnchor:`middle`,x:`50%`,y:`50%`},b))}const a=e(i,`Placeholder`);export{a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./useForkedRef-DVEfT-KI.js";import t,{Fragment as n,cloneElement as r,createContext as i,createElement as a,forwardRef as o,isValidElement as s,useContext as c,version as l}from"react";import{mergeProps as u}from"react-aria";const d=process.env.NODE_ENV!==`production`,f=new Set;function p(e,t){d&&e&&!f.has(t)&&(f.add(t),console.warn(t))}function m(e,t){d&&e&&!f.has(t)&&(f.add(t),console.error(t))}const h=i(null),g=h.Provider,_=parseInt(l,10)>=19;function v(e){return _?e.props.ref:e.ref}const y=o(function({children:n,...i},a){let o=c(h),s=e(a,o?v(o):void 0);return o?t.createElement(h.Provider,{value:null},r(o,{...u(i,o.props),ref:s},n)):null});function b(e,t){return s(e)&&e.type!==n?e:(p(!0,`${t}: \`asChild\` expects exactly one React element as its child (not text, a fragment, or several elements); rendering the default element instead.`),null)}function x(e,t){let n=o(({asChild:n,...r},i)=>{let o=n?b(r.children,t):null;return o?(p(r.component!==void 0,`${t}: both \`asChild\` and \`component\` were passed; \`asChild\` wins and \`component\` is ignored.`),a(g,{value:o},e({...r,component:y,children:o.props.children},i))):e(r,i)});return n.displayName=t,n}export{m as n,p as r,x as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,r as n,t as r}from"./useFloatingOverlay-CcmDZKMK.js";import{i,n as a}from"./overlayPlacement-BtS90IVf.js";import{n as o,t as s}from"./triggerElement-BIqA4KqZ.js";import c,{useCallback as l,useEffect as u,useRef as d}from"react";import f from"classnames";import{mergeProps as p,useDialog as m,useOverlayPosition as h,useOverlayTrigger as g}from"react-aria";import{createPortal as _}from"react-dom";import{useOverlayTriggerState as v}from"react-stately";import{Transition as y}from"react-transition-group";const b=({arrowProps:e,content:t,overlayRef:n,overlayTriggerProps:i,title:a,...o})=>{let{dialogProps:s,titleProps:l}=m({},n);return c.createElement(`div`,{...p(i,s,o),ref:n},c.createElement(`div`,{className:`popover-arrow`,...e,style:r(e)}),a&&c.createElement(`div`,{className:`popover-header`,...l},a),c.createElement(`div`,{className:`popover-body`},t))},x=({children:r,content:m,placement:x=`right`,offset:S=[0,8],onHide:C,onShow:w,title:T,visible:E,...D})=>{let O=d(null),k=d(null),A=d(null),j=l(e=>{k.current=e},[]),M=s(r),N=e(j,o(M)),P=v({defaultOpen:!!E}),{triggerProps:{onPress:F,...I},overlayProps:L}=g({type:`dialog`},P,k),R=n({close:P.close,isOpen:P.isOpen,open:P.open,onHide:C,onShow:w,triggerRef:k,visible:E});u(()=>{if(!P.isOpen)return;let e=e=>{e.key===`Escape`&&P.close()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[P.isOpen,P.close]),u(()=>{if(!P.isOpen)return;let e=e=>{let t=e.target;k.current?.contains(t)||A.current?.contains(t)||P.close()},t=window.setTimeout(()=>{window.addEventListener(`click`,e)});return()=>{window.clearTimeout(t),window.removeEventListener(`click`,e)}},[P.isOpen,P.close]);let{overlayProps:z,arrowProps:B,placement:V}=h({targetRef:k,overlayRef:A,placement:i(x),offset:S[1],crossOffset:S[0],arrowSize:8,arrowRef:O,isOpen:P.isOpen,onClose:null}),H={position:z.style?.position,top:z.style?.top,left:z.style?.left},U=a(x,V);return c.createElement(c.Fragment,null,c.cloneElement(M,{...p(M.props,I,{onClick:()=>P.toggle()}),ref:N}),typeof window<`u`&&_(c.createElement(y,{in:P.isOpen,mountOnEnter:!0,nodeRef:A,onExited:()=>{let e=k.current;if(!e||!document.contains(e))return;let t=document.activeElement,n=!t||t===document.body,r=!!t&&!!A.current?.contains(t);(n||r)&&e.focus()},timeout:{enter:0,exit:200},unmountOnExit:!0},e=>{let n=t(e);return c.createElement(b,{className:f(`popover cx-popover-auto`,n),"data-cx-placement":U,style:H,overlayTriggerProps:L,overlayRef:A,arrowProps:B,title:T,content:m,...D})}),R??document.body))};x.displayName=`Popover`;export{x as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,t as n}from"./FormHelp-Be2PQL0y.js";import{t as r}from"./validationClassName-gRGs4KBm.js";import{t as i}from"./renderFormCheck-BXBs6_ov.js";import{t as a}from"./flex-BTvpgaRv.js";import o,{createContext as s,forwardRef as c,useContext as l,useRef as u}from"react";import d from"classnames";import{useRadio as f,useRadioGroup as p}from"react-aria";import{useRadioGroupState as m}from"react-stately";const h=s(null),g=c(({button:t,children:n,className:a,color:s,disabled:c,id:p,label:m,size:g,..._},v)=>{let y=l(h);if(!y)throw Error(`Radio must be rendered inside a RadioGroup.`);let{state:b,valid:x}=y,S=b.isInvalid,C=u(null),w=e(v,C),T=m??n,{inputProps:E}=f({..._,children:T,isDisabled:c},b,C),D=d(r(S,x));return i({button:t,className:a,color:s,input:o.createElement(`input`,{...E,className:D,id:p,ref:w}),invalid:S,label:T,size:g,valid:x})});g.displayName=`Radio`;const _=c(({children:e,className:i,defaultValue:s,description:c,disabled:l,errorMessage:u,invalid:f,label:g,name:_,onChange:v,orientation:y,required:b,valid:x,value:S,...C},w)=>{let T={...C,defaultValue:s,description:c,errorMessage:u,isDisabled:l,isInvalid:f,isRequired:b,label:g,name:_,onChange:v,orientation:y,value:S},E=m(T),{radioGroupProps:D,labelProps:O,descriptionProps:k,errorMessageProps:A}=p(T,E),j=d(`form-field`,r(f,x),i),M=o.createElement(h.Provider,{value:{state:E,valid:x}},e);return o.createElement(`fieldset`,{...C,...D,className:j,ref:w},g&&o.createElement(`legend`,{className:`form-label`,...O},g),y===`horizontal`?o.createElement(a,{gap:`md`},M):M,c&&o.createElement(n,k,c),f&&u&&o.createElement(t,{invalid:!0,...A},u))});_.displayName=`RadioGroup`;export{g as n,_ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./FormLabel-CYcQiFUI.js";import{t}from"./validationClassName-gRGs4KBm.js";import n from"react";import r from"classnames";const i=({button:i,className:a,color:o,input:s,invalid:c,label:l,size:u,valid:d})=>{if(i){let o=r(`button`,`button-check`,i.color,i.variant,i.size,i.shape,t(c,d),a);return n.createElement(e,{customClassName:o},s,l)}let f=r(`check-input`,o,t(c,d));if(!l)return n.createElement(`span`,{className:f},s);let p=r(`form-check`,u,t(c,d),a);return n.createElement(e,{customClassName:p},n.createElement(`span`,{className:f},s),l)};export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./FormHelp-Be2PQL0y.js";import{t as n}from"./FormLabel-CYcQiFUI.js";import r from"react";import i from"classnames";const a=({children:a,className:o,help:s,ids:c={},invalid:l,invalidFeedback:u,label:d,valid:f,validFeedback:p})=>{let m=!!(l&&u),h=!!(f&&p)&&!m;return!d&&!s&&!m&&!h&&!o?a:r.createElement(`div`,{className:i(`form-field`,o)},d&&r.createElement(n,{htmlFor:c.input,id:c.label},d),a,s&&r.createElement(t,{id:c.help},s),m&&r.createElement(e,{id:c.feedback,invalid:!0},u),h&&r.createElement(e,{id:c.feedback,valid:!0},p))};export{a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{r as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useForkedRef-DVEfT-KI.js";import{t as n}from"./useFormField-BOqmBTC4.js";import{t as r}from"./renderFormField-wiaxvvLG.js";import{t as i}from"./validationClassName-gRGs4KBm.js";import a,{forwardRef as o,useRef as s}from"react";import c from"classnames";const l=o(({adornEnd:o,adornStart:l,children:u,className:d,help:f,htmlSize:p,id:m,invalid:h,invalidFeedback:g,label:_,multiple:v,options:y,placeholder:b,size:x,valid:S,validFeedback:C,...w},T)=>{let E=s(null),D=t(T,E),O=Array.isArray(y)?y.filter(e=>typeof e==`object`&&!!e.selected).map(e=>String(e.value??``)):[];e(!v&&O.length>1,"Select: more than one option has `selected: true` but `multiple` is not set — only the last one will be selected, matching native <select> behavior.");let k=O.length&&w.value===void 0&&w.defaultValue===void 0?v?O:O[O.length-1]:void 0,{describedBy:A,feedbackId:j,helpId:M,inputId:N}=n({ariaDescribedBy:w[`aria-describedby`],help:f,id:m,invalid:h,invalidFeedback:g,valid:S,validFeedback:C}),P=l!=null||o!=null,F=!v&&(!p||p<=1),I=c(P?`ghost-input`:`form-input`,!P&&x,i(h,S),!P&&d),L=e=>{let t=E.current,n=e.target;if(t&&!t.disabled&&F&&n!==t&&!n.closest(`button, a`)){t.focus();try{t.showPicker?.()}catch{}}},R=a.createElement(`select`,{...w,"aria-describedby":A,"aria-invalid":h||void 0,className:I,id:N,multiple:v,ref:D,size:p,...k!==void 0&&{defaultValue:k}},b&&a.createElement(`option`,{value:``,disabled:!0},b),y?y.map((e,t)=>a.createElement(`option`,{...typeof e==`object`&&e.disabled&&{disabled:e.disabled},...typeof e==`object`&&e.value!=null&&{value:e.value},key:t},typeof e==`string`?e:e.label??String(e.value??``))):u),z=P?a.createElement(`div`,{className:c(`form-input`,F&&`form-caret`,x,d),onClick:L},l,R,o):R;return r({children:z,help:f,ids:{feedback:j,help:M,input:N},invalid:h,invalidFeedback:g,label:_,valid:S,validFeedback:C})});l.displayName=`Select`;export{l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./breakpoints-o_2Ev7ir.js";import n,{Fragment as r}from"react";import i from"classnames";const a=(e,t)=>[typeof e==`number`||typeof e==`string`?`${t}col-${e}`:null,e===!0?`${t}col`:null];function o({children:e,animation:r,className:o,color:s,component:c,span:l,responsive:u,...d},f){let p=c??`span`,m=i(`skeleton`,r&&`skeleton-${r}`,{[`bg-${s}`]:s},t(a,l,u),o);return n.createElement(p,{className:m,...d,ref:f},e)}const s=e(o,`Skeleton`);function c({children:e,color:t,component:i,loading:a,spans:o,...c}){if(!a)return n.createElement(n.Fragment,null,e);let l=o===void 0?[void 0]:Array.isArray(o)?o:[o];return n.createElement(n.Fragment,null,l.map((e,a)=>n.createElement(r,{key:a},a>0&&` `,n.createElement(s,{component:i,span:e,color:t,...c}))))}const l=c;l.displayName=`SkeletonLoader`;export{s as n,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t from"react";import n from"classnames";function r({className:e,color:r,component:i,size:a,variant:o=`border`,visuallyHiddenLabel:s=`Loading...`,...c},l){let u=i??`div`,d=n(`spinner-${o}`,r?`fg-${r}`:null,a&&`spinner-${o}-${a}`,e);return t.createElement(u,{className:d,role:`status`,...c,ref:l},t.createElement(`span`,{className:`visually-hidden`},s))}const i=e(r,`Spinner`);export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import t,{Children as n,isValidElement as r}from"react";import i from"classnames";function a({active:e,children:n,className:r,color:a,component:o,href:s,...c},l){let u=o??`li`,d=i(`stepper-item`,a&&`context`,a,{active:e},r),f={...s?{href:s}:{},...e?{"aria-current":`step`}:{},...c};return t.createElement(u,{className:d,...f,ref:l},n)}const o=e(a,`StepperItem`);function s({children:e,className:a,component:s,color:c,icon:l,items:u,layout:d,overflow:f,...p},m){let h=u?u.some(e=>!!e.href):n.toArray(e).some(e=>r(e)&&e.type===o&&(e.props.component===`a`||e.props.component===`button`)),g=s??(h?`div`:`ol`),_=g===`ol`||g===`ul`,v=i(`stepper`,c&&`context`,c,d,{"icon-stepper":l},a),y=(u?u.map((e,n)=>t.createElement(o,{key:n,active:e.active,color:e.color,component:e.href?`a`:_?`li`:`div`,href:e.href},e.label)):null)??(_?e:n.map(e,e=>r(e)&&e.type===o?t.cloneElement(e,{component:e.props.component??`div`}):e)),b=t.createElement(g,{className:v,...p,ref:m},y);return f?t.createElement(`div`,{className:`stepper-overflow`},b):b}const c=e(s,`Stepper`);export{o as n,c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./FormLabel-CYcQiFUI.js";import{t as n}from"./validationClassName-gRGs4KBm.js";import r,{forwardRef as i,useRef as a}from"react";import o from"classnames";import{useSwitch as s}from"react-aria";import{useToggleState as c}from"react-stately";const l=({checkInputClassName:e,className:n,input:i,label:a})=>a?r.createElement(t,{customClassName:n},r.createElement(`span`,{className:e},i),a):r.createElement(`span`,{className:e},i),u=({className:e,color:t,forkedRef:i,id:a,inputProps:s,invalid:c,label:u,size:d,valid:f})=>{let p=o(n(c,f)),m=o(`check-input`,t,n(c,f)),h=o(`form-check form-switch`,d,n(c,f),e);return l({checkInputClassName:m,className:h,input:r.createElement(`input`,{...s,className:p,id:a,ref:i}),label:u})},d=i(({className:t,children:n,color:r,defaultSelected:i,disabled:o,id:l,invalid:d,isSelected:f,label:p,onChange:m,size:h,valid:g,..._},v)=>{let y=a(null),b=e(v,y),x=p??n,S=c({defaultSelected:i,isDisabled:o,isSelected:f,onChange:m}),{inputProps:C}=s({..._,children:x,isDisabled:o,isInvalid:d,value:_.value},S,y);return u({className:t,color:r,forkedRef:b,id:l,inputProps:C,invalid:d,label:x,size:h,valid:g})});d.displayName=`SwitchCheckbox`;const f=i(({children:t,className:n,color:r,defaultSelected:i,disabled:o,id:s,invalid:c,isSelected:l,label:d,onChange:f,size:p,valid:m,...h},g)=>{let _=a(null),v=e(g,_),y=d??t,b={...h,"aria-invalid":c,checked:l,defaultChecked:i,disabled:o,onChange:f?e=>f(e.target.checked):void 0,role:`switch`,type:`radio`};return u({className:n,color:r,forkedRef:v,id:s,inputProps:b,invalid:c,label:y,size:p,valid:m})});f.displayName=`SwitchRadio`;const p=i(({type:e=`checkbox`,...t},n)=>e===`radio`?r.createElement(f,{...t,ref:n}):r.createElement(d,{...t,ref:n}));p.displayName=`Switch`;export{p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,t as n}from"./tableClassName-CZA2Bse8.js";import r,{forwardRef as i,useRef as a}from"react";import o from"classnames";import{useCheckbox as s,useTable as c,useTableCell as l,useTableColumnHeader as u,useTableHeaderRow as d,useTableRow as f,useTableRowGroup as p,useTableSelectAllCheckbox as m,useTableSelectionCheckbox as h}from"react-aria";import{Cell as g,Column as _,Row as v,TableBody as y,TableHeader as b,useTableState as x,useToggleState as S}from"react-stately";const C=i(({align:i,bordered:o,borderless:s,caption:l,children:u,className:d,color:f,disabledKeys:p,footer:m,hover:h,id:g,onSelectionChange:_,onSortChange:v,responsive:y,selectedKeys:b,selectionMode:S=`none`,sm:C,sortDescriptor:j,stacked:M,striped:N,...P},F)=>{let I=x({children:u,disabledKeys:p,onSelectionChange:_,onSortChange:v,selectedKeys:b,selectionMode:S,showSelectionCheckboxes:S===`multiple`,sortDescriptor:j}),L=a(null),R=e(L,F),{gridProps:z}=c({"aria-label":P[`aria-label`],"aria-labelledby":P[`aria-labelledby`],id:g},I,L),B=n({align:i,bordered:o,borderless:s,className:d,color:f,hover:h,sm:C,stacked:M,striped:N}),V=r.createElement(`table`,{...z,className:B,ref:R},l&&r.createElement(`caption`,null,l),r.createElement(w,{className:u[0].props.className,type:`thead`},I.collection.headerRows.map(e=>r.createElement(T,{key:e.key,item:e,state:I},[...I.collection.getChildren?.(e.key)??[]].map(e=>e.props?.isSelectionCell?r.createElement(D,{key:e.key,column:e,state:I}):r.createElement(E,{key:e.key,column:e,state:I}))))),r.createElement(w,{className:u[1].props.className,type:`tbody`},[...I.collection.body.childNodes].map(e=>r.createElement(O,{key:e.key,item:e,state:I},[...I.collection.getChildren?.(e.key)??[]].map(e=>e.props?.isSelectionCell?r.createElement(A,{key:e.key,cell:e,state:I}):r.createElement(k,{key:e.key,cell:e,stacked:!!M,state:I}))))),m&&r.createElement(`tfoot`,null,m)),H=t({responsive:y,stacked:M});return H?r.createElement(`div`,{className:H},V):V});C.displayName=`Table`;const w=({className:e,type:t,children:n})=>{let{rowGroupProps:i}=p();return r.createElement(t,{...i,className:e||void 0},n)},T=({children:e,item:t,state:n})=>{let i=a(null),{rowProps:o}=d({node:t},n,i);return r.createElement(`tr`,{...o,ref:i},e)},E=({column:e,state:t})=>{let n=a(null),{columnHeaderProps:i}=u({node:e},t,n),o=t.sortDescriptor?.column===e.key,s=t.sortDescriptor?.direction===`ascending`?`▲`:`▼`;return r.createElement(`th`,{...i,className:e.props?.className||void 0,colSpan:e.colSpan??void 0,scope:`col`,ref:n},e.rendered,e.props?.allowsSorting&&r.createElement(`span`,{"aria-hidden":`true`,className:`table-sort-icon`},o?s:`⇅`))},D=({column:e,state:t})=>{let n=a(null),{columnHeaderProps:i}=u({node:e},t,n),{checkboxProps:o}=m(t);return r.createElement(`th`,{...i,className:`table-selection-cell`,scope:`col`,suppressHydrationWarning:!0,ref:n},r.createElement(j,{checkboxProps:o}))},O=({children:e,item:t,state:n})=>{let i=a(null),{rowProps:s}=f({node:t},n,i),c=n.selectionManager.isSelected(t.key);return r.createElement(`tr`,{...s,className:o({active:c},t.props?.className),ref:i},e)},k=({cell:e,stacked:t,state:n})=>{let i=a(null),{gridCellProps:o}=l({node:e},n,i);return r.createElement(`td`,{...o,className:e.props?.className||void 0,"data-cell":t&&e.column?.textValue||void 0,ref:i},e.rendered)},A=({cell:e,state:t})=>{let n=a(null),{gridCellProps:i}=l({node:e},t,n),{checkboxProps:o}=h({key:e.parentKey},t);return r.createElement(`td`,{...i,className:`table-selection-cell`,suppressHydrationWarning:!0,ref:n},r.createElement(j,{checkboxProps:o}))},j=({checkboxProps:e})=>{let t=S(e),n=a(null),{inputProps:i}=s(e,t,n);return r.createElement(`input`,{...i,className:`check-input`,ref:n})},M=y,N=g,P=_,F=b,I=v;export{M as a,N as i,F as n,C as o,P as r,I as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useForkedRef-DVEfT-KI.js";import n,{createContext as r,forwardRef as i,useContext as a,useEffect as o,useRef as s}from"react";import c from"classnames";import{useTab as l,useTabList as u,useTabPanel as d}from"react-aria";import{Item as f,useTabListState as p}from"react-stately";import{Transition as m}from"react-transition-group";const h=r(null),g=()=>{let e=a(h);if(!e)throw Error(`TabList and TabPanel must be rendered inside a Tabs`);return e},_=i(({className:e,variant:r=`tabs`,...i},a)=>{let{keyboardActivation:o,orientation:l,state:d}=g(),f=s(null),p=t(a,f),{tabListProps:m}=u({keyboardActivation:o,orientation:l,...i},d,f),h=c(`nav`,`nav-${r}`,e);return n.createElement(`ul`,{className:h,...m,ref:p},[...d.collection].map(e=>n.createElement(v,{key:e.key,item:e})))});_.displayName=`TabList`;const v=({item:e})=>{let{state:t}=g(),r=s(null),{tabProps:i,isSelected:a,isDisabled:o}=l({key:e.key},t,r);return n.createElement(`li`,{className:`nav-item`,role:`presentation`},n.createElement(`a`,{className:c(`nav-link`,{active:a,disabled:o}),...i,ref:r},e.rendered))};function y({children:e,className:t,component:r,defaultSelectedKey:i,disabledKeys:a,keyboardActivation:c,onSelectionChange:l,orientation:u,selectedKey:d,...m},g){let v=r??`div`,y=n.Children.toArray(e),b=y.find(e=>n.isValidElement(e)&&e.type===_),x=y.filter(e=>e!==b),S=(b?n.Children.toArray(b.props.children):[]).filter(e=>n.isValidElement(e)),C=S.filter(e=>e.props.disabled).map(e=>e.props.id),w=a?[...a,...C]:C,T=p({children:e=>n.createElement(f,{key:e.props.id,textValue:typeof e.props.children==`string`?e.props.children:void 0},e.props.children),items:S,defaultSelectedKey:i,disabledKeys:w,selectedKey:d,onSelectionChange:l}),E=s(!0);return o(()=>{E.current=!1},[]),n.createElement(h.Provider,{value:{keyboardActivation:c,orientation:u,state:T,isInitialSelectionRef:E}},n.createElement(v,{className:t,...m,ref:g},b,n.createElement(`div`,{className:`tab-content`},x)))}const b=e(y,`Tabs`),x=e=>null;x.displayName=`Tab`;const S=i(({children:e,className:r,id:i,...a},o)=>{let{state:l,isInitialSelectionRef:u}=g(),f=s(null),p=t(o,f),{tabPanelProps:h}=d({id:i},l,f);return l.selectedKey===i?n.createElement(m,{in:!0,appear:!u.current,nodeRef:f,timeout:150},t=>n.createElement(`div`,{className:c(`tab-pane`,`fade`,`active`,{show:t===`entered`},r),...h,...a,ref:p},e)):null});S.displayName=`TabPanel`;export{_ as i,x as n,b as r,S as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./useFormField-BOqmBTC4.js";import{t as n}from"./renderFormField-wiaxvvLG.js";import{t as r}from"./validationClassName-gRGs4KBm.js";import i,{forwardRef as a,useRef as o}from"react";import s from"classnames";import{useTextField as c}from"react-aria";const l=a(({adornEnd:a,adornStart:l,className:u,disabled:d,help:f,id:p,invalid:m,invalidFeedback:h,label:g,plainText:_,readOnly:v,size:y,type:b=`text`,valid:x,validFeedback:S,...C},w)=>{let T=o(null),E=e(w,T),{describedBy:D,feedbackId:O,helpId:k,inputId:A,labelId:j,labelledBy:M}=t({ariaDescribedBy:C[`aria-describedby`],ariaLabelledBy:C[`aria-labelledby`],help:f,id:p,invalid:m,invalidFeedback:h,label:g,valid:x,validFeedback:S}),{inputProps:N}=c({...C,"aria-describedby":D,"aria-labelledby":M,id:A,isDisabled:d,isInvalid:m,isReadOnly:v,type:b},T),P=l!=null||a!=null,F=s(P?`ghost-input`:`form-input`,!P&&_&&`plaintext`,!P&&y,r(m,x),!P&&u),I=i.createElement(`input`,{...N,className:F,ref:E}),L=P?i.createElement(`div`,{className:s(`form-input`,_&&`plaintext`,y,u)},l,I,a):I;return n({children:L,help:f,ids:{feedback:O,help:k,input:A,label:j},invalid:m,invalidFeedback:h,label:g,valid:x,validFeedback:S})});l.displayName=`TextInput`;export{l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./useFormField-BOqmBTC4.js";import{t as n}from"./renderFormField-wiaxvvLG.js";import{t as r}from"./validationClassName-gRGs4KBm.js";import i,{forwardRef as a,useRef as o}from"react";import s from"classnames";import{useTextField as c}from"react-aria";const l=a(({className:a,disabled:l,help:u,id:d,invalid:f,invalidFeedback:p,label:m,plainText:h,readOnly:g,rows:_,size:v,valid:y,validFeedback:b,...x},S)=>{let C=o(null),w=e(S,C),{describedBy:T,feedbackId:E,helpId:D,inputId:O,labelId:k,labelledBy:A}=t({ariaDescribedBy:x[`aria-describedby`],ariaLabelledBy:x[`aria-labelledby`],help:u,id:d,invalid:f,invalidFeedback:p,label:m,valid:y,validFeedback:b}),{inputProps:j}=c({...x,"aria-describedby":T,"aria-labelledby":A,id:O,inputElementType:`textarea`,isDisabled:l,isInvalid:f,isReadOnly:g},C),M=s(`form-input`,h&&`plaintext`,v,r(f,y),a);return n({children:i.createElement(`textarea`,{...j,rows:_,className:M,ref:w}),help:u,ids:{feedback:E,help:D,input:O,label:k},invalid:f,invalidFeedback:p,label:m,valid:y,validFeedback:b})});l.displayName=`Textarea`;export{l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{n as t,r as n,t as r}from"./useToastRegionQueue-BH6bWZ73.js";import{t as i}from"./Icon-BIwkD-kx.js";import{n as a}from"./iconSlot-BmWxJh27.js";import{t as o}from"./CloseButton-DJM7FRKh.js";import s,{createContext as c,forwardRef as l,useContext as u}from"react";import d from"classnames";import{mergeProps as f}from"react-aria";import{createPortal as p}from"react-dom";import{ToastQueue as m}from"react-stately";import{Transition as h}from"react-transition-group";const g=c({close:()=>{}}),_=()=>u(g);function v({children:e,className:t,closeButton:n,closeLabel:r,component:i,...a},c){let{close:l}=_(),u=i??`div`,f=d(`toast-body`,{"d-flex align-items-start justify-content-between gap-sm":n},t);return s.createElement(u,{className:f,...a,ref:c},n?s.createElement(`div`,null,e):e,n&&s.createElement(o,{label:r,onClick:l}))}const y=e(v,`ToastBody`);function b({children:e,className:t,component:n,...r},i){let a=n??`div`,o=d(`toast-footer`,t);return s.createElement(a,{className:o,...r,ref:i},e)}const x=e(b,`ToastFooter`);function S({children:e,className:t,closeButton:n,closeLabel:r,component:i,icon:c,time:l,titleId:u,...f},p){let{close:m}=_(),h=i??`div`,g=d(`toast-header`,t);return s.createElement(h,{className:g,...f,ref:p},c!=null&&(typeof c==`string`?s.createElement(`span`,{"aria-hidden":`true`,className:`me-sm`},s.createElement(a,{value:c,className:`toast-icon`})):s.createElement(`span`,{className:`me-sm`},c)),e!=null&&s.createElement(`strong`,{id:u,className:`me-auto`},e),l!=null&&s.createElement(`small`,null,l),n&&s.createElement(o,{label:r,onClick:m}))}const C=e(S,`ToastHeader`),w=l(({children:e,animation:r=!0,autohide:i=!0,className:a,closeButton:o,closeLabel:c,color:l,delay:u=5e3,footer:p,icon:m,message:_,role:v=`status`,solid:b,time:S,title:w,translucent:T,visible:E=!1,onClose:D,onShow:O,...k},A)=>{let{close:j,entered:M,forkedRef:N,getTransitionClass:P,textId:F,titleId:I,transitionProps:L,visible:R}=t({onClose:D,onShow:O,ref:A,visible:E}),z=n({enabled:i,delay:u,visible:R&&M,onHide:j}),B={visible:R,close:j},V=d(`toast`,{fade:r,context:!!l,solid:!!(b&&l),translucent:T},l,a),H=m!=null||w!=null||S!=null,U=o&&(H||_==null),W=o&&!H&&_!=null,G=H||U;return s.createElement(h,{...L,timeout:250},t=>{let n=P(t);return s.createElement(g.Provider,{value:B},s.createElement(`div`,{className:d(V,n),role:v,"aria-labelledby":w==null?void 0:I,"aria-describedby":w!=null&&_!=null?F:void 0,...f(k,z),ref:N},G&&s.createElement(C,{icon:m,time:S,titleId:w==null?void 0:I,closeButton:U,closeLabel:c},w),_!=null&&s.createElement(y,{id:w!=null&&_!=null?F:void 0,closeButton:W,closeLabel:c},_),e,p!=null&&s.createElement(x,null,typeof p==`function`?p(j):p)))})});w.displayName=`Toast`;const T=l(({className:e,...t},n)=>{let r=d(`toast-icon`,e);return s.createElement(i,{className:r,...t,ref:n})});T.displayName=`ToastIcon`;const E=new m;function D(e,t={}){return E.add({children:e,...t})}function O(e){E.close(e)}const k=l(({children:e,className:t,placement:n,...i},a)=>{let{forkedRef:o,regionProps:c,state:l}=r(E,a),u=d(`toaster toast-container p-md`,{"position-fixed":n,"position-static":!n,"top-0":n&&n.includes(`top`),"top-50 translate-middle-y":n&&n.includes(`middle`),"bottom-0":n&&n.includes(`bottom`),"start-0":n&&n.includes(`start`),"start-50 translate-middle-x":n&&n.includes(`center`),"end-0":n&&n.includes(`end`)},t),f=t=>l.visibleToasts.length>0||e?s.createElement(`div`,{className:u,...c,...i,ref:t},e,l.visibleToasts.map(e=>{let{children:t,...n}=e.content;return s.createElement(w,{key:e.key,visible:!0,...n,onClose:()=>l.close(e.key)},t)})):null;return typeof window<`u`&&n?p(f(o),document.body):f(o)});k.displayName=`Toaster`;export{T as a,x as c,E as i,y as l,D as n,w as o,O as r,C as s,k as t,_ as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import{n as t,r as n,t as r}from"./useFloatingOverlay-CcmDZKMK.js";import{i,n as a}from"./overlayPlacement-BtS90IVf.js";import{n as o,t as s}from"./triggerElement-BIqA4KqZ.js";import c,{useCallback as l,useRef as u}from"react";import d from"classnames";import{mergeProps as f,useOverlayPosition as p,useTooltip as m,useTooltipTrigger as h}from"react-aria";import{createPortal as g}from"react-dom";import{useTooltipTriggerState as _}from"react-stately";import{Transition as v}from"react-transition-group";const y=({children:y,content:b,placement:x=`top`,offset:S=[0,6],onHide:C,onShow:w,trigger:T,visible:E,...D})=>{let O=u(null),k=u(null),A=u(null),j=l(e=>{k.current=e},[]),M=s(y),N=e(j,o(M)),P=_({trigger:T,delay:0,closeDelay:0}),{triggerProps:F,tooltipProps:I}=h({trigger:T},P,k),{tooltipProps:L}=m({},P),R=n({close:()=>P.close(!0),isOpen:P.isOpen,open:()=>P.open(!0),onHide:C,onShow:w,triggerRef:k,visible:E}),{overlayProps:z,arrowProps:B,placement:V}=p({targetRef:k,overlayRef:A,placement:i(x),offset:S[1],crossOffset:S[0],arrowSize:8,arrowRef:O,isOpen:P.isOpen}),H={position:z.style?.position,top:z.style?.top,left:z.style?.left},U=a(x,V);return c.createElement(c.Fragment,null,c.cloneElement(M,{...f(M.props,F),ref:N}),typeof window<`u`&&g(c.createElement(v,{in:P.isOpen,mountOnEnter:!0,nodeRef:A,timeout:{enter:0,exit:200},unmountOnExit:!0},e=>{let n=t(e);return c.createElement(`div`,{className:d(`tooltip cx-tooltip-auto`,n),"data-cx-placement":U,ref:A,style:H,...f(I,L),...D},c.createElement(`div`,{className:`tooltip-arrow`,...B,style:r(B)}),c.createElement(`div`,{className:`tooltip-inner`},b))}),R??document.body))};y.displayName=`Tooltip`;export{y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{version as e}from"react";const t=e=>e,n=parseInt(e,10)>=19,r=e=>n?e.props.ref:e.ref;export{r as n,t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./useForkedRef-DVEfT-KI.js";import{t}from"./useIsomorphicLayoutEffect-BbqRwuqn.js";import{t as n}from"./dialogTransition-i9vw0i2Z.js";import{useEffect as r,useRef as i,useState as a}from"react";import{usePreventScroll as o}from"react-aria";const s=({backdrop:s,instant:c,isModal:l,keyboard:u=!0,onBeforeShow:d,onClick:f,onClose:p,onClosePrevented:m,onHidden:h,onShow:g,onShown:_,ref:v,visible:y})=>{let b=i(null),x=e(v,b),[S,C]=a(y),[w,T]=a(!1),[E,D]=a(!1),[O,k]=a(!1),A=i(!1),j=i(null);o({isDisabled:!O}),r(()=>{C(y)},[y]);let M=()=>{p?.()},N=()=>{m?.();let e=b.current;e&&(D(!0),n(e,()=>D(!1),!c))},P=i(M);P.current=M;let F=i(N);return F.current=N,t(()=>{let e=b.current;if(e){if(S){if(e.open)return;d?.(e),j.current=document.activeElement instanceof HTMLElement?document.activeElement:null,A.current=l,l?(e.showModal(),k(!0)):e.show();let t=e.querySelector(`[autofocus]`);return t?t.focus():(e.setAttribute(`tabindex`,`-1`),e.focus()),g?.(),T(!1),n(e,()=>_?.(),!c)}e.open&&T(!0)}},[S]),r(()=>{let e=b.current;if(w&&e)return n(e,()=>{e.open&&e.close(),A.current&&k(!1),T(!1),h?.();let t=j.current;t&&document.contains(t)&&t.focus()},!c)},[w]),r(()=>{let e=b.current;if(!e)return;let t=e=>{if(!(e.key!==`Escape`||A.current)){if(e.preventDefault(),!u){F.current();return}P.current()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[u]),{close:M,dialogRef:b,forkedRef:x,handleBackdropClick:e=>{if(f?.(e),e.target===b.current&&A.current){if(s===`static`){N();return}M()}},handleCancel:e=>{if(e.preventDefault(),!u){N();return}M()},hiding:w,staticBounce:E}};export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useEffect as e,useRef as t,useState as n}from"react";function r({close:r,isOpen:i,open:a,onHide:o,onShow:s,triggerRef:c,visible:l}){let[u,d]=n(null),f=()=>c.current?.closest(`dialog[open]`)??document.body;e(()=>{l!==void 0&&(d(f()),l?a():r())},[l]);let p=t(!1);e(()=>{let e=!p.current;p.current=!0,i?(d(f()),e||s?.()):e||o?.()},[i]);let m=t(r);return m.current=r,e(()=>{let e=u?.closest(`dialog`);if(!i||!e)return;let t=()=>m.current();return e.addEventListener(`close`,t),()=>e.removeEventListener(`close`,t)},[i,u]),u}function i(e){return{position:`absolute`,...e.style,transform:e.style?.top===void 0?`translateX(-50%)`:`translateY(-50%)`}}function a(e){return e===`entering`?`fade`:e===`entered`?`fade show`:`fade`}export{a as n,r,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./useForkedRef-DVEfT-KI.js";import{useCallback as t,useEffect as n,useId as r,useRef as i,useState as a}from"react";import{useToastRegion as o}from"react-aria";import{useToastQueue as s}from"react-stately";function c({enabled:e=!1,delay:r=5e3,visible:a,onHide:o}){let s=i(void 0),c=i(!1),l=i(!1),u=t(()=>{clearTimeout(s.current),s.current=void 0},[]),d=t(()=>{u(),!(!e||c.current||l.current)&&(s.current=window.setTimeout(o,r))},[e,r,o,u]);return n(()=>u,[u]),n(()=>{a?d():u()},[a,e,r,d,u]),{onMouseEnter:t(()=>{c.current=!0,u()},[u]),onMouseLeave:t(()=>{c.current=!1,d()},[d]),onFocus:t(()=>{l.current=!0,u()},[u]),onBlur:t(()=>{l.current=!1,d()},[d])}}function l({onClose:o,onShow:s,ref:c,visible:l=!1}){let[u,d]=a(l),[f,p]=a(!1),m=i(null),h=e(c,m),g=r(),_=r();return n(()=>{d(l)},[l]),{close:t(()=>d(!1),[]),entered:f,forkedRef:h,getTransitionClass:e=>e===`entering`||e===`exiting`?`show showing`:e===`entered`?`show`:void 0,textId:_,titleId:g,transitionProps:{appear:!0,in:u,nodeRef:m,onEnter:()=>s?.(),onEntered:()=>p(!0),onExit:()=>p(!1),onExited:()=>o?.(),unmountOnExit:!0},visible:u}}function u(t,n){let r=s(t),a=i(null),{regionProps:c}=o({},r,a);return{forkedRef:e(n,a),regionProps:c,state:r}}export{l as n,c as r,u as t};
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, HTMLAttributes, ReactNode, useId, useRef, useState } from 'react'
|
|
2
|
-
import classNames from 'classnames'
|
|
3
|
-
|
|
4
|
-
import { AccordionBody } from './AccordionBody'
|
|
5
|
-
import { AccordionHeader } from './AccordionHeader'
|
|
6
|
-
import { AccordionItem } from './AccordionItem'
|
|
7
|
-
import { AccordionContext } from './context'
|
|
8
|
-
|
|
9
|
-
export interface AccordionItemDef {
|
|
10
|
-
/**
|
|
11
|
-
* Let this item stay open when another item opens, overriding the accordion's `alwaysOpen` setting.
|
|
12
|
-
*/
|
|
13
|
-
alwaysOpen?: boolean
|
|
14
|
-
/**
|
|
15
|
-
* Body content, rendered inside a `AccordionBody`.
|
|
16
|
-
*/
|
|
17
|
-
body: ReactNode
|
|
18
|
-
/**
|
|
19
|
-
* A string of all className you want applied to this item.
|
|
20
|
-
*/
|
|
21
|
-
className?: string
|
|
22
|
-
/**
|
|
23
|
-
* Header content, rendered inside a `AccordionHeader`.
|
|
24
|
-
*/
|
|
25
|
-
header: ReactNode
|
|
26
|
-
/**
|
|
27
|
-
* React key for this item. Falls back to its index when omitted.
|
|
28
|
-
*/
|
|
29
|
-
id?: number | string
|
|
30
|
-
/**
|
|
31
|
-
* The group this item shares with other items so only one can be open at a time, overriding the
|
|
32
|
-
* accordion's shared `name`.
|
|
33
|
-
*/
|
|
34
|
-
name?: string
|
|
35
|
-
/**
|
|
36
|
-
* Callback fired when this item's open state changes. Chained after `Accordion`'s own handling
|
|
37
|
-
* of `expandedKeys`/`onExpandedChange`, so it fires regardless of whether those are used.
|
|
38
|
-
*/
|
|
39
|
-
onToggle?: (event: React.SyntheticEvent<HTMLDetailsElement>) => void
|
|
40
|
-
/**
|
|
41
|
-
* Start the item in the open state (uncontrolled). Ignored for items whose key is included in
|
|
42
|
-
* `expandedKeys`/`defaultExpandedKeys` on the parent `Accordion`.
|
|
43
|
-
*/
|
|
44
|
-
open?: boolean
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
48
|
-
/**
|
|
49
|
-
* Make accordion items stay open when another item is opened.
|
|
50
|
-
*/
|
|
51
|
-
alwaysOpen?: boolean
|
|
52
|
-
/**
|
|
53
|
-
* Move the caret icon to the end of the header.
|
|
54
|
-
*/
|
|
55
|
-
caretEnd?: boolean
|
|
56
|
-
/**
|
|
57
|
-
* A string of all className you want applied to the base component.
|
|
58
|
-
*/
|
|
59
|
-
className?: string
|
|
60
|
-
/**
|
|
61
|
-
* The keys of the initially expanded items (uncontrolled). Only applies to items rendered via
|
|
62
|
-
* the `items` prop — a composed `AccordionItem` already supports native controlled `open`/
|
|
63
|
-
* `onToggle` directly.
|
|
64
|
-
*/
|
|
65
|
-
defaultExpandedKeys?: Array<number | string>
|
|
66
|
-
/**
|
|
67
|
-
* The keys of the currently expanded items (controlled). Only applies to items rendered via the
|
|
68
|
-
* `items` prop — a composed `AccordionItem` already supports native controlled `open`/`onToggle`
|
|
69
|
-
* directly.
|
|
70
|
-
*/
|
|
71
|
-
expandedKeys?: Array<number | string>
|
|
72
|
-
/**
|
|
73
|
-
* Removes the default background-context, some borders, and some rounded corners to render accordions edge-to-edge with their parent container.
|
|
74
|
-
*/
|
|
75
|
-
flush?: boolean
|
|
76
|
-
/**
|
|
77
|
-
* Array of item definitions for data-driven rendering. When provided, children are ignored.
|
|
78
|
-
*/
|
|
79
|
-
items?: AccordionItemDef[]
|
|
80
|
-
/**
|
|
81
|
-
* The shared group name used by items that don't set their own `name`. Defaults to an auto-generated id.
|
|
82
|
-
*/
|
|
83
|
-
name?: string
|
|
84
|
-
/**
|
|
85
|
-
* Callback fired with the updated set of expanded item keys, reflecting the native `<details>`
|
|
86
|
-
* elements' actual open state (including items the browser closed itself via a shared `name`
|
|
87
|
-
* group). Only fires for items rendered via the `items` prop.
|
|
88
|
-
*/
|
|
89
|
-
onExpandedChange?: (keys: Array<number | string>) => void
|
|
90
|
-
/**
|
|
91
|
-
* Size the component sm or lg.
|
|
92
|
-
*/
|
|
93
|
-
size?: 'sm' | 'lg'
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export const Accordion = forwardRef<HTMLDivElement, AccordionProps>(
|
|
97
|
-
(
|
|
98
|
-
{
|
|
99
|
-
children,
|
|
100
|
-
alwaysOpen = false,
|
|
101
|
-
caretEnd,
|
|
102
|
-
className,
|
|
103
|
-
defaultExpandedKeys,
|
|
104
|
-
expandedKeys,
|
|
105
|
-
flush,
|
|
106
|
-
items,
|
|
107
|
-
name,
|
|
108
|
-
onExpandedChange,
|
|
109
|
-
size,
|
|
110
|
-
...rest
|
|
111
|
-
},
|
|
112
|
-
ref
|
|
113
|
-
) => {
|
|
114
|
-
const generatedName = useId()
|
|
115
|
-
const groupName = name ?? generatedName
|
|
116
|
-
const _className = classNames('accordion', { flush, 'caret-end': caretEnd }, size, className)
|
|
117
|
-
|
|
118
|
-
const isExpandedControlled = expandedKeys !== undefined
|
|
119
|
-
const isTrackingExpanded =
|
|
120
|
-
isExpandedControlled || defaultExpandedKeys !== undefined || onExpandedChange !== undefined
|
|
121
|
-
|
|
122
|
-
const [uncontrolledExpandedKeys, setUncontrolledExpandedKeys] = useState<
|
|
123
|
-
Array<number | string>
|
|
124
|
-
>(
|
|
125
|
-
() =>
|
|
126
|
-
defaultExpandedKeys ??
|
|
127
|
-
items?.filter((item) => item.open).map((item, index) => item.id ?? index) ??
|
|
128
|
-
[]
|
|
129
|
-
)
|
|
130
|
-
const currentExpandedKeys = isExpandedControlled ? expandedKeys : uncontrolledExpandedKeys
|
|
131
|
-
|
|
132
|
-
// Keyed by each item's id (or index) so a toggle handler can read every sibling's *actual*
|
|
133
|
-
// DOM open state — the browser settles a whole shared-`name` group's open attributes
|
|
134
|
-
// synchronously before dispatching any `toggle` events, so this is always the true next set,
|
|
135
|
-
// regardless of which affected item's handler happens to run first.
|
|
136
|
-
const itemRefs = useRef(new Map<number | string, HTMLDetailsElement | null>())
|
|
137
|
-
|
|
138
|
-
const handleItemToggle =
|
|
139
|
-
(id: number | string, itemOnToggle?: AccordionItemDef['onToggle']) =>
|
|
140
|
-
(event: React.SyntheticEvent<HTMLDetailsElement>) => {
|
|
141
|
-
itemOnToggle?.(event)
|
|
142
|
-
if (!items) return
|
|
143
|
-
const next = items
|
|
144
|
-
.map((item, index) => item.id ?? index)
|
|
145
|
-
.filter((key) => itemRefs.current.get(key)?.open)
|
|
146
|
-
if (isExpandedControlled) {
|
|
147
|
-
// React doesn't intercept a native <details> click the way it does controlled form
|
|
148
|
-
// inputs, so the DOM has already toggled by the time this fires. Snap this element back
|
|
149
|
-
// to the still-current controlled value — if the consumer's onExpandedChange updates
|
|
150
|
-
// `expandedKeys` in response, the next render sets it back to the new value anyway.
|
|
151
|
-
;(event.currentTarget as HTMLDetailsElement).open = expandedKeys.includes(id)
|
|
152
|
-
} else {
|
|
153
|
-
setUncontrolledExpandedKeys(next)
|
|
154
|
-
}
|
|
155
|
-
onExpandedChange?.(next)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const content = items
|
|
159
|
-
? items.map((item, index) => {
|
|
160
|
-
const id = item.id ?? index
|
|
161
|
-
return (
|
|
162
|
-
<AccordionItem
|
|
163
|
-
key={id}
|
|
164
|
-
className={item.className}
|
|
165
|
-
open={isTrackingExpanded ? currentExpandedKeys.includes(id) : item.open}
|
|
166
|
-
name={item.name}
|
|
167
|
-
alwaysOpen={item.alwaysOpen}
|
|
168
|
-
onToggle={handleItemToggle(id, item.onToggle)}
|
|
169
|
-
ref={(node) => {
|
|
170
|
-
itemRefs.current.set(id, node)
|
|
171
|
-
}}
|
|
172
|
-
>
|
|
173
|
-
<AccordionHeader>{item.header}</AccordionHeader>
|
|
174
|
-
<AccordionBody>{item.body}</AccordionBody>
|
|
175
|
-
</AccordionItem>
|
|
176
|
-
)
|
|
177
|
-
})
|
|
178
|
-
: children
|
|
179
|
-
|
|
180
|
-
return (
|
|
181
|
-
<div className={_className} {...rest} ref={ref}>
|
|
182
|
-
<AccordionContext.Provider value={{ alwaysOpen, name: groupName }}>
|
|
183
|
-
{content}
|
|
184
|
-
</AccordionContext.Provider>
|
|
185
|
-
</div>
|
|
186
|
-
)
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
|
|
190
|
-
Accordion.displayName = 'Accordion'
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React, { ElementType, ForwardRefRenderFunction, ReactElement } from 'react'
|
|
2
|
-
import classNames from 'classnames'
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
createPolymorphicComponent,
|
|
6
|
-
PolymorphicComponentProps,
|
|
7
|
-
PolymorphicRef
|
|
8
|
-
} from '../../utils/polymorphic'
|
|
9
|
-
|
|
10
|
-
type AccordionBodyOwnProps<C extends ElementType> = {
|
|
11
|
-
/**
|
|
12
|
-
* A string of all className you want applied to the base component.
|
|
13
|
-
*/
|
|
14
|
-
className?: string
|
|
15
|
-
/**
|
|
16
|
-
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
17
|
-
*/
|
|
18
|
-
component?: C
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type AccordionBodyProps<C extends ElementType = 'div'> = PolymorphicComponentProps<
|
|
22
|
-
C,
|
|
23
|
-
AccordionBodyOwnProps<C>
|
|
24
|
-
>
|
|
25
|
-
|
|
26
|
-
type AccordionBodyComponent = (<C extends ElementType = 'div'>(
|
|
27
|
-
props: AccordionBodyProps<C> & { ref?: PolymorphicRef<C> }
|
|
28
|
-
) => ReactElement | null) & { displayName?: string }
|
|
29
|
-
|
|
30
|
-
function AccordionBodyRender<C extends ElementType = 'div'>(
|
|
31
|
-
{ children, className, component, ...rest }: AccordionBodyProps<C>,
|
|
32
|
-
ref: PolymorphicRef<C>
|
|
33
|
-
) {
|
|
34
|
-
const Component = component ?? 'div'
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<Component className={classNames('accordion-body', className)} {...rest} ref={ref}>
|
|
38
|
-
{children}
|
|
39
|
-
</Component>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const AccordionBody = createPolymorphicComponent<AccordionBodyComponent>(
|
|
44
|
-
AccordionBodyRender as ForwardRefRenderFunction<Element, AccordionBodyProps<ElementType>>,
|
|
45
|
-
'AccordionBody'
|
|
46
|
-
)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, HTMLAttributes } from 'react'
|
|
2
|
-
import classNames from 'classnames'
|
|
3
|
-
|
|
4
|
-
export interface AccordionHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
-
/**
|
|
6
|
-
* A string of all className you want applied to the base component.
|
|
7
|
-
*/
|
|
8
|
-
className?: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const AccordionHeader = forwardRef<HTMLElement, AccordionHeaderProps>(
|
|
12
|
-
({ children, className, ...rest }, ref) => {
|
|
13
|
-
return (
|
|
14
|
-
<summary className={classNames(className) || undefined} {...rest} ref={ref}>
|
|
15
|
-
<span className="accordion-title">{children}</span>
|
|
16
|
-
</summary>
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
AccordionHeader.displayName = 'AccordionHeader'
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, DetailsHTMLAttributes, useContext } from 'react'
|
|
2
|
-
import classNames from 'classnames'
|
|
3
|
-
|
|
4
|
-
import { AccordionContext } from './context'
|
|
5
|
-
import { devWarning } from '../../utils/devWarning'
|
|
6
|
-
|
|
7
|
-
export interface AccordionItemProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Let this item stay open when another item opens, overriding the accordion's `alwaysOpen` setting.
|
|
10
|
-
*/
|
|
11
|
-
alwaysOpen?: boolean
|
|
12
|
-
/**
|
|
13
|
-
* A string of all className you want applied to the base component.
|
|
14
|
-
*/
|
|
15
|
-
className?: string
|
|
16
|
-
/**
|
|
17
|
-
* The group this item shares with other items so only one can be open at a time, overriding the
|
|
18
|
-
* accordion's shared `name`.
|
|
19
|
-
*/
|
|
20
|
-
name?: string
|
|
21
|
-
/**
|
|
22
|
-
* Start the item in the open state.
|
|
23
|
-
*/
|
|
24
|
-
open?: boolean
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated No longer used. The native details element manages its own state.
|
|
27
|
-
*/
|
|
28
|
-
itemKey?: number | string
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export const AccordionItem = forwardRef<HTMLDetailsElement, AccordionItemProps>(
|
|
32
|
-
({ children, alwaysOpen, className, name, open, itemKey: _itemKey, ...rest }, ref) => {
|
|
33
|
-
devWarning(
|
|
34
|
-
_itemKey !== undefined,
|
|
35
|
-
'AccordionItem: the itemKey prop is deprecated and no longer used — the native ' +
|
|
36
|
-
'<details> element manages its own state. It will be removed in a future major version.'
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
const context = useContext(AccordionContext)
|
|
40
|
-
const isAlwaysOpen = alwaysOpen ?? context.alwaysOpen
|
|
41
|
-
const groupName = name ?? context.name
|
|
42
|
-
|
|
43
|
-
const groupProps = isAlwaysOpen ? {} : { name: groupName }
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<details
|
|
47
|
-
className={classNames('accordion-item', className)}
|
|
48
|
-
open={open}
|
|
49
|
-
{...(groupProps as React.HTMLAttributes<HTMLDetailsElement>)}
|
|
50
|
-
{...rest}
|
|
51
|
-
ref={ref}
|
|
52
|
-
>
|
|
53
|
-
{children}
|
|
54
|
-
</details>
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
AccordionItem.displayName = 'AccordionItem'
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import '../../utils/suppressFocusRingGlobally'
|
|
4
|
-
|
|
5
|
-
export { Accordion } from './Accordion'
|
|
6
|
-
export type { AccordionProps, AccordionItemDef } from './Accordion'
|
|
7
|
-
export { AccordionBody } from './AccordionBody'
|
|
8
|
-
export type { AccordionBodyProps } from './AccordionBody'
|
|
9
|
-
export { AccordionHeader } from './AccordionHeader'
|
|
10
|
-
export type { AccordionHeaderProps } from './AccordionHeader'
|
|
11
|
-
export { AccordionItem } from './AccordionItem'
|
|
12
|
-
export type { AccordionItemProps } from './AccordionItem'
|