@chassis-ui/react 0.2.0 → 0.4.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.d.ts +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +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.d.ts +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.d.ts +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 → Button-BuZ_GOHS.d.ts} +3 -2
- 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-B0Y1xgYi.d.ts → Link-CKymd2ru.d.ts} +8 -6
- package/dist/chunks/Link-CZsWCnQb.js +2 -0
- package/dist/chunks/Link-CZsWCnQb.js.map +1 -0
- 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-CGk8szzR.js +2 -0
- package/dist/chunks/breakpoints-CGk8szzR.js.map +1 -0
- package/dist/chunks/breakpoints-ECy4lKQT.d.ts +6 -0
- package/dist/chunks/button-group-BGppPrIv.js +2 -0
- package/dist/chunks/button-group-BGppPrIv.js.map +1 -0
- package/dist/chunks/card-CobeDpf1.js +2 -0
- package/dist/chunks/card-CobeDpf1.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-ZyQn5Ku5.js +2 -0
- package/dist/chunks/checkbox-ZyQn5Ku5.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-B52oLCCC.js +2 -0
- package/dist/chunks/flex-B52oLCCC.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-C7tO-ppc.js +2 -0
- package/dist/chunks/grid-C7tO-ppc.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-BKMW0rkw.d.ts → index-0jbACjYQ.d.ts} +5 -3
- 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-D9PZHY_I.d.ts → index-B19ZH3fm.d.ts} +3 -2
- package/dist/chunks/{index-COsIPd8L.d.ts → index-B1kw0jzM.d.ts} +3 -2
- package/dist/chunks/index-B2K-O9kl.d.ts +59 -0
- package/dist/chunks/{index-CJzKu7QI.d.ts → index-B5bF1JxF.d.ts} +3 -2
- 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-Ctuk1xBU.d.ts → index-BLS1jhSJ.d.ts} +10 -7
- package/dist/chunks/{index-JllMXhVx.d.ts → index-BMkbJVHg.d.ts} +22 -5
- package/dist/chunks/{index-DB_ToPdz.d.ts → index-BNf0jIIL.d.ts} +12 -1
- package/dist/chunks/{index-t_x6jj7l.d.ts → index-BOx8v-oT.d.ts} +3 -2
- package/dist/chunks/index-BSLneLYu.d.ts +79 -0
- 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-XjLvaH4G.d.ts → index-BfEJYF4c.d.ts} +7 -6
- package/dist/chunks/index-Bi8FFadV.d.ts +2 -1
- package/dist/chunks/index-Bkj17NEQ.d.ts +2 -1
- 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-CRfm7W6C.d.ts → index-C9gzVqwX.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-8PhBSbNQ.d.ts → index-CHQR8x8_.d.ts} +16 -17
- package/dist/chunks/{index-BTTeKpiE.d.ts → index-CIwzgZJi.d.ts} +3 -2
- package/dist/chunks/{index-dh3TKanY.d.ts → index-CTpwB1yR.d.ts} +3 -2
- package/dist/chunks/{index-DR8sYtvd.d.ts → index-CYvVmTPR.d.ts} +20 -87
- 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-DKma0jQw.d.ts → index-CjT_4IZx.d.ts} +4 -3
- 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-CxjNw4ss.d.ts +216 -0
- 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-DHcztR18.d.ts +208 -0
- package/dist/chunks/index-DJfga0Ce.d.ts +57 -0
- package/dist/chunks/{index-DJJocp_q.d.ts → index-DM01FX3a.d.ts} +4 -3
- package/dist/chunks/index-DMbdEm__.d.ts +119 -0
- package/dist/chunks/{index-BlgkO3dn.d.ts → index-DP5xugE-.d.ts} +25 -34
- package/dist/chunks/index-DPCwFiJL.d.ts +95 -0
- package/dist/chunks/{index-BTDgfLxK.d.ts → index-DQImhbhy.d.ts} +21 -5
- package/dist/chunks/index-DaHQdNul.d.ts +182 -0
- package/dist/chunks/index-Dcc_W6Kv.d.ts +2 -1
- package/dist/chunks/index-Ddd7iWfm.d.ts +32 -0
- package/dist/chunks/index-Dfg4Ftb8.d.ts +2 -1
- package/dist/chunks/index-DtbUXxjz.d.ts +2 -1
- package/dist/chunks/{index-DPV62IdF.d.ts → index-DtvHH_Mb.d.ts} +12 -10
- package/dist/chunks/index-Du9fBqkT.d.ts +56 -0
- package/dist/chunks/index-HrKN6s8z.d.ts +2 -1
- package/dist/chunks/{index-ClT3E_hv.d.ts → index-NGgDkhyn.d.ts} +19 -25
- package/dist/chunks/{index-Dfy1YW5j.d.ts → index-U27Ar174.d.ts} +3 -2
- package/dist/chunks/{index-CsMIgBsd.d.ts → index-YJ9QdBuq.d.ts} +10 -10
- package/dist/chunks/{index-Dh5CaHTP.d.ts → index-aRdgpeRb.d.ts} +3 -2
- package/dist/chunks/index-g74gO0pc.d.ts +36 -0
- package/dist/chunks/{index-BO9jLOIb.d.ts → index-lSPcxiii.d.ts} +3 -2
- package/dist/chunks/{index-nklPDKlC.d.ts → index-x0vZRyoU.d.ts} +4 -3
- 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-Dbci5Ka3.js +2 -0
- package/dist/chunks/notification-Dbci5Ka3.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-B6gJdtoN.js +2 -0
- package/dist/chunks/radio-B6gJdtoN.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-nKgpa_a3.d.ts} +4 -3
- 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-CmZBLJwp.js +2 -0
- package/dist/chunks/skeleton-CmZBLJwp.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-DK5F53VT.js +2 -0
- package/dist/chunks/stack-DK5F53VT.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 → types-D6FM7bYR.d.ts} +16 -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.d.ts +1 -1
- 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.d.ts +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 +61 -49
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/spinner.js +1 -1
- package/dist/stack.d.ts +1 -1
- package/dist/stack.js +1 -1
- package/dist/static-table.d.ts +1 -1
- package/dist/stepper.d.ts +1 -1
- package/dist/stepper.js +1 -1
- package/dist/style.css +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.d.ts +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/breakpoints-o_2Ev7ir.js +0 -1
- package/dist/chunks/button-group-CPZYA6aZ.js +0 -1
- package/dist/chunks/card-DfF2K_5p.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/flex-BTvpgaRv.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-CVUMS0x7.d.ts +0 -73
- package/dist/chunks/index-D949AidR.d.ts +0 -40
- package/dist/chunks/index-DEb9zXlC.d.ts +0 -210
- 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/stack-D3retZ-W.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,2 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./useForkedRef-DVEfT-KI.js";import t,{forwardRef as n,useEffect as r,useId as i,useMemo as a,useRef as o,useState as s}from"react";import c from"classnames";import{useCheckbox as l}from"react-aria";import{useToggleState as u}from"react-stately";import{Cell as d,CheckboxContext as f,Column as p,Row as m,Table as h,TableBody as g,TableHeader as _,TableLayout as v,TableLoadMoreItem as y,Virtualizer as b,useSlottedContext as x}from"react-aria-components";const S=/^\d+(\.\d+)?%?$/,C=e=>e!=null&&(typeof e==`number`||S.test(e)),w=(e,t)=>typeof e==`number`?e:e.endsWith(`%`)?parseFloat(e)/100*t:parseFloat(e);function T(e,t){let n=new Map,r=0,i=!0;for(let a of e){if(!i||!C(a.defaultWidth)){i=!1,n.set(a.id,null);continue}let e=w(a.defaultWidth,t);C(a.minWidth)&&(e=Math.max(e,w(a.minWidth,t))),C(a.maxWidth)&&(e=Math.min(e,w(a.maxWidth,t))),n.set(a.id,{id:a.id,offset:r,width:e}),r+=e}return n}const E=e=>{let t=new Map;return e.querySelectorAll(`[role="columnheader"]`).forEach(e=>{let n=Number(e.getAttribute(`aria-colindex`));!Number.isInteger(n)||n<1||t.set(n-1,{offset:e.offsetLeft,width:e.offsetWidth})}),t};function D(e,t){let[n,i]=s(0),[o,c]=s(()=>new Map);r(()=>{let e=t.current;if(!e||typeof ResizeObserver>`u`)return;let n=()=>{i(e.clientWidth),c(E(e))};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[t]);let l=a(()=>T(e,n),[e,n]);return a(()=>{let t=new Map;return e.forEach((e,n)=>{let r=l.get(e.id),i=o.get(n);r?t.set(e.id,r):i&&t.set(e.id,{id:e.id,...i})}),t},[e,l,o])}const O=e=>`[aria-colindex="${e+1}"]`,k=({header:e,instanceClassName:n,containerRef:i})=>{let o=e.props.children,s=a(()=>typeof o==`function`?[]:t.Children.toArray(o),[o]),c=s.map(e=>{if(!t.isValidElement(e))return``;let{defaultWidth:n,maxWidth:r,minWidth:i,pin:a}=e.props;return`${n??``}/${i??``}/${r??``}/${a??``}`}).join(`|`),{all:l,endIndices:u,startIndices:d}=a(()=>{let e={all:[],endIndices:[],startIndices:[]};return s.forEach((n,r)=>{if(!t.isValidElement(n))return;let{defaultWidth:i,maxWidth:a,minWidth:o,pin:s}=n.props;e.all.push({id:r,defaultWidth:i,maxWidth:a,minWidth:o}),s===`start`?e.startIndices.push(r):s===`end`&&e.endIndices.push(r)}),e},[c]),f=D(l,i),p=a(()=>{let e=new Map,t=0;for(let n=u.length-1;n>=0;n--){let r=u[n];if(r==null)continue;let i=f.get(r)?.width??0;e.set(r,{index:r,rightOffset:t}),t+=i}return e},[u,f]);if(r(()=>{let e=i.current;if(!e||p.size===0)return;let t=null,n=new Set,r=()=>{t=null;let r=e.clientWidth,i=e.scrollLeft;e.querySelectorAll(`[role="row"]`).forEach(e=>{p.forEach(({index:t,rightOffset:a})=>{let o=e.querySelector(O(t))?.parentElement;if(!o)return;let s=f.get(t);if(!s)return;let c=s.offset+s.width,l=r-a-c+i;o.style.transform=`translateX(${l}px)`,o.style.zIndex=`2`,n.add(o)})})},a=()=>{t??=requestAnimationFrame(r)};a(),e.addEventListener(`scroll`,a,{passive:!0});let o=typeof ResizeObserver>`u`?null:new ResizeObserver(a);o?.observe(e);let s=typeof MutationObserver>`u`?null:new MutationObserver(a);return s?.observe(e,{childList:!0,subtree:!0}),()=>{t!=null&&cancelAnimationFrame(t),e.removeEventListener(`scroll`,a),o?.disconnect(),s?.disconnect(),n.forEach(e=>{e.style.transform=``,e.style.zIndex=``})}},[i,p,f]),d.length===0&&u.length===0)return null;let m=[];if(d.length>0){let e=Math.max(...d);m.push(`.${n}.datagrid-scrolled-start ${O(e)} { box-shadow: var(--datagrid-pin-cue-shadow-start); }`)}if(u.length>0){let e=Math.min(...u);m.push(`.${n}.datagrid-scrolled-end ${O(e)} { box-shadow: var(--datagrid-pin-cue-shadow-end); }`)}return t.createElement(`style`,null,m.join(`
|
|
2
|
-
`))};var A=class extends v{isStickyColumn(e){let t=e.type===`column`?e.index:e.colIndex??e.index;return t!=null&&this.collection.columns[t]?.props?.pin===`start`}};const j=n(({align:n,bordered:l,borderless:u,children:d,className:f,color:p,disabledKeys:m,estimatedRowHeight:g,footer:_,hover:v,onSelectionChange:y,onSortChange:x,rowHeight:S,selectedKeys:C,selectionMode:w=`none`,sm:T,sortDescriptor:E,...D},O)=>{let j=S===`auto`,M=a(()=>new A(j?{estimatedRowHeight:g,headingHeight:g}:{rowHeight:S}),[j,S,g]),N=o(null),P=e(O,N),F=`datagrid-${i().replace(/[^a-zA-Z0-9]/g,``)}`,[I,L]=s(!1),[R,z]=s(!1);r(()=>{let e=N.current;if(!e)return;let t=()=>{L(e.scrollLeft>0),z(Math.ceil(e.scrollLeft+e.clientWidth)<e.scrollWidth)};t(),e.addEventListener(`scroll`,t,{passive:!0});let n=typeof ResizeObserver>`u`?null:new ResizeObserver(t);return n?.observe(e),()=>{e.removeEventListener(`scroll`,t),n?.disconnect()}},[]);let B=c(`datagrid`,F,p,{[`align-${n}`]:n,bordered:l,borderless:u,hoverable:v,sm:T,"datagrid-scrolled-start":I,"datagrid-scrolled-end":R},f);return t.createElement(b,{layout:M,shouldObserveItemSize:j},t.createElement(h,{"aria-label":D[`aria-label`],"aria-labelledby":D[`aria-labelledby`],className:B||void 0,disabledKeys:m,onSelectionChange:y,onSortChange:x,ref:P,selectedKeys:C,selectionMode:w,sortDescriptor:E},d),_&&t.createElement(`div`,{className:c(`datagrid-footer`,{borderless:u})},_),t.createElement(k,{containerRef:N,header:d[0],instanceClassName:F}))});j.displayName=`DataGrid`;const M={id:`__datagrid-body-loader__`},N=({children:e,className:n,dependencies:r,isLoading:i,items:o,loadingContent:s,onLoadMore:l,renderEmptyState:u})=>{let d=l!=null&&o!=null,f=a(()=>d?[...o,M]:o,[d,o]),p=a(()=>d?[...r??[],i,l,s]:r,[r,d,i,l,s]),m=d?n=>n===M?t.createElement(y,{className:`datagrid-loader`,isLoading:i,onLoadMore:i?void 0:l},s):e(n):e;return t.createElement(g,{className:c(`datagrid-body`,n),dependencies:p,items:f,renderEmptyState:u},m)},P=({children:e,className:n,colSpan:r,id:i,textValue:a})=>t.createElement(d,{className:c(`datagrid-cell`,n),colSpan:r,id:i,textValue:a},e),F=({allowsSorting:e,children:n,className:r,defaultWidth:i,id:a,isRowHeader:o,maxWidth:s,minWidth:l,pin:u,textValue:d})=>t.createElement(p,{allowsSorting:e,className:c(`datagrid-col`,u&&`datagrid-col-pinned-${u}`,r),defaultWidth:i,id:a,isRowHeader:o,maxWidth:s,minWidth:l,textValue:d,pin:u},e?({sortDirection:e})=>t.createElement(t.Fragment,null,n,t.createElement(`span`,{"aria-hidden":`true`,className:`datagrid-sort-icon`},e===`ascending`?`▲`:e===`descending`?`▼`:`⇅`)):n),I=({children:e,className:n,columns:r,dependencies:i})=>t.createElement(_,{className:c(`datagrid-header`,n),columns:r,dependencies:i},e),L=({children:e,className:n,columns:r,id:i,textValue:a})=>t.createElement(m,{className:c(`datagrid-row`,n),columns:r,id:i,textValue:a},e),R=e=>{let t=x(f,`selection`);if(!t)throw Error(`${e} must be rendered inside a DataGrid with selection enabled.`);return t},z=({className:e})=>{let n=R(`DataGridSelectionCell`);return t.createElement(V,{checkboxProps:n,className:e})},B=({className:e})=>{let n=R(`DataGridSelectAllCell`);return t.createElement(V,{checkboxProps:n,className:e})},V=({checkboxProps:e,className:n})=>{let r=u(e),i=o(null),{inputProps:a}=l(e,r,i);return t.createElement(`input`,{...a,className:n??`check-input`,ref:i})};export{F as a,j as c,I as i,z as n,P as o,L as r,N as s,B 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{i as n,n as r}from"./overlayPlacement-BtS90IVf.js";import{t as i}from"./renderFormField-wiaxvvLG.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./RangeCalendar-COnSfurr.js";import{t as d}from"./validationClassName-gRGs4KBm.js";import f,{forwardRef as p,useMemo as m,useRef as h,useState as g}from"react";import _ from"classnames";import{FocusScope as v,mergeProps as y,useButton as b,useDateField as x,useDateFormatter as S,useDatePicker as C,useDateRangePicker as w,useDateSegment as T,useDialog as E,useLocale as D,useOverlay as O,useOverlayPosition as k}from"react-aria";import{useDateFieldState as ee,useDatePickerState as te,useDateRangePickerState as A,useOverlayTriggerState as j}from"react-stately";import{createCalendar as M,getLocalTimeZone as N}from"@internationalized/date";const ne=({overlayRef:e,state:t,triggerRef:i})=>{let{overlayProps:a}=O({isDismissable:!0,isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,shouldCloseOnInteractOutside:e=>!i.current?.contains(e)},e),{overlayProps:o,placement:s}=k({isOpen:t.isOpen,offset:2,onClose:null,overlayRef:e,placement:n(`bottom-start`),targetRef:i}),{style:c,...l}=y(a,o);return{overlayStyle:{position:c?.position,top:c?.top,left:c?.left},placementAttr:r(`bottom-start`,s),overlayDismissProps:l}},P=p(({buttonProps:t,state:n},r)=>{let i=h(null),a=e(i,r),{buttonProps:o}=b({...t,onPress:()=>n.toggle()},i);return f.createElement(`button`,{...o,className:`input-adorn`,ref:a,type:`button`},f.createElement(`svg`,{fill:`none`,height:`16`,viewBox:`0 0 16 16`,width:`16`,xmlns:`http://www.w3.org/2000/svg`},f.createElement(`rect`,{height:`12`,rx:`1.5`,stroke:`currentColor`,strokeWidth:`1.25`,width:`13`,x:`1.5`,y:`3`}),f.createElement(`path`,{d:`M1.5 6.5h13`,stroke:`currentColor`,strokeWidth:`1.25`}),f.createElement(`path`,{d:`M4.5 1.5v3M11.5 1.5v3`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.25`})))});P.displayName=`CalendarToggleButton`;const re=({isDisabled:e,onPress:t})=>{let n=h(null),r=c(),{buttonProps:i}=b({"aria-label":r.clear,isDisabled:e,onPress:t},n);return f.createElement(`button`,{...i,className:`input-adorn`,ref:n,type:`button`},f.createElement(`svg`,{fill:`none`,height:`16`,viewBox:`0 0 16 16`,width:`16`,xmlns:`http://www.w3.org/2000/svg`},f.createElement(`path`,{d:`M4 4l8 8M12 4l-8 8`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.25`})))},F=({fieldProps:e})=>{let{locale:t}=D(),n=ee({...e,createCalendar:M,locale:t}),r=h(null),{fieldProps:i}=x(e,n,r);return f.createElement(`div`,{...i,className:`datepicker-field`,ref:r},n.segments.map((e,t)=>f.createElement(I,{key:t,segment:e,state:n})))},I=({segment:e,state:t})=>{let n=h(null),{segmentProps:r}=T(e,t,n);return f.createElement(`span`,{...r,className:_(`datepicker-segment`,{placeholder:e.isPlaceholder}),ref:n},e.text)},ie=({calendar:e,className:t,clearButton:n,disabled:r,field:i,fieldClassName:a,groupProps:o,groupRef:s,invalid:c,isOpen:l,overlayDismissProps:u,overlayRef:p,overlayStyle:m,placementAttr:h,size:g,toggleButton:y,valid:b})=>f.createElement(f.Fragment,null,f.createElement(`div`,{...o,className:_(`form-input`,g,{disabled:r},d(c,b),t),ref:s},f.createElement(`div`,{className:a},i),n,y),f.createElement(`div`,{className:`datepicker`,"data-cx-placement":h,hidden:!l,ref:p,...u,style:m},l&&f.createElement(v,{contain:!0,restoreFocus:!0},e))),L=p((e,t)=>e.selectionMode===`multiple`?f.createElement(z,{...e,ref:t}):f.createElement(R,{...e,ref:t}));L.displayName=`DatePicker`;const R=p(({className:n,defaultOpen:r,defaultValue:a,disabled:c,firstDayOfWeek:u,help:d,id:p,invalid:g,invalidFeedback:_,isDateUnavailable:v,isOpen:b,label:x,labels:S,maxValue:w,minValue:T,name:D,onChange:O,onOpenChange:k,selectionMode:ee,size:A,unavailableDates:j,valid:M,validFeedback:N,value:I,visibleMonths:L,...R},z)=>{let B=m(()=>l(j,v),[j,v]),V=te({defaultOpen:r,defaultValue:a,isDateUnavailable:B,isDisabled:c,isOpen:b,maxValue:w,minValue:T,onChange:O,onOpenChange:k,value:I}),H=h(null),ae=e(z,H),U=h(null),W=h(null),G=h(null),{describedBy:K,feedbackId:q,helpId:oe,inputId:J,labelId:Y,labelledBy:X}=t({ariaDescribedBy:R[`aria-describedby`],ariaLabelledBy:R[`aria-labelledby`],help:d,id:p,invalid:g,invalidFeedback:_,label:x,valid:M,validFeedback:N}),{groupProps:se,fieldProps:ce,buttonProps:le,calendarProps:Z,dialogProps:Q}=C({"aria-label":R[`aria-label`],"aria-labelledby":X,defaultValue:a,id:J,isDateUnavailable:B,isDisabled:c,isInvalid:g,maxValue:w,minValue:T,onChange:O,value:I},V,H),{overlayStyle:$,placementAttr:ue,overlayDismissProps:de}=ne({overlayRef:W,state:V,triggerRef:H}),{dialogProps:fe}=E(Q,U);return f.createElement(o,{labels:S},i({children:f.createElement(f.Fragment,null,ie({calendar:f.createElement(s,{...fe,autoFocus:!0,disabled:c,firstDayOfWeek:u,isDateUnavailable:B,maxValue:w,minValue:T,onChange:Z.onChange,ref:U,value:Z.value,visibleMonths:L}),className:n,clearButton:V.value&&!c&&f.createElement(re,{onPress:()=>{V.setValue(null),G.current?.focus()}}),disabled:c,field:f.createElement(F,{fieldProps:ce}),fieldClassName:`w-100 overflow-x-scroll`,groupProps:{...y(se,R),"aria-describedby":K,"aria-labelledby":X},groupRef:ae,invalid:g,isOpen:V.isOpen,overlayDismissProps:de,overlayRef:W,overlayStyle:$,placementAttr:ue,size:A,toggleButton:f.createElement(P,{buttonProps:le,ref:G,state:V}),valid:M}),D&&f.createElement(`input`,{disabled:c,name:D,type:`hidden`,value:V.value?V.value.toString():``})),help:d,ids:{feedback:q,help:oe,label:Y},invalid:g,invalidFeedback:_,label:x,valid:M,validFeedback:N}))});R.displayName=`DatePickerSingle`;const z=p(({className:n,defaultOpen:r,defaultValue:c,disabled:u,firstDayOfWeek:d,help:p,id:_,invalid:v,invalidFeedback:b,isDateUnavailable:x,isOpen:S,label:C,labels:w,maxValue:T,minValue:D,name:O,onChange:k,onOpenChange:ee,selectionMode:te,size:A,unavailableDates:M,valid:N,validFeedback:F,value:I,visibleMonths:L,...R},z)=>{let B=m(()=>l(M,x),[M,x]),H=I!==void 0,[ae,U]=g(c??[]),W=H?I??[]:ae,G=e=>{H||U(e),k?.(e)},K=j({defaultOpen:r,isOpen:S,onOpenChange:ee}),q=h(null),oe=e(z,q),J=h(null),Y=h(null),X=h(null),{describedBy:se,feedbackId:ce,helpId:le,inputId:Z,labelId:Q,labelledBy:$}=t({ariaDescribedBy:R[`aria-describedby`],ariaLabelledBy:R[`aria-labelledby`],help:p,id:_,invalid:v,invalidFeedback:b,label:C,valid:N,validFeedback:F}),{overlayStyle:ue,placementAttr:de,overlayDismissProps:fe}=ne({overlayRef:Y,state:K,triggerRef:q}),{dialogProps:pe}=E({"aria-label":R[`aria-label`],"aria-labelledby":$},J),me={...a,...w},he={"aria-expanded":K.isOpen,"aria-haspopup":`dialog`,"aria-label":me.calendar,isDisabled:u};return f.createElement(o,{labels:w},i({children:f.createElement(f.Fragment,null,ie({calendar:f.createElement(s,{...pe,autoFocus:!0,disabled:u,firstDayOfWeek:d,isDateUnavailable:B,maxValue:T,minValue:D,onChange:G,ref:J,selectionMode:`multiple`,value:W,visibleMonths:L}),className:n,clearButton:W.length>0&&!u&&f.createElement(re,{onPress:()=>{G([]),X.current?.focus()}}),disabled:u,field:f.createElement(V,{values:W}),fieldClassName:`w-100 overflow-x-scroll`,groupProps:{...y(R),"aria-describedby":se,"aria-disabled":u||void 0,"aria-labelledby":$,id:Z,role:`group`},groupRef:oe,invalid:v,isOpen:K.isOpen,overlayDismissProps:fe,overlayRef:Y,overlayStyle:ue,placementAttr:de,size:A,toggleButton:f.createElement(P,{buttonProps:he,ref:X,state:K}),valid:N}),O&&W.map(e=>f.createElement(`input`,{disabled:u,key:e.toString(),name:O,type:`hidden`,value:e.toString()}))),help:p,ids:{feedback:ce,help:le,label:Q},invalid:v,invalidFeedback:b,label:C,valid:N,validFeedback:F}))});z.displayName=`DatePickerMultiple`;const B=e=>`timeZone`in e?e.toDate():e.toDate(N()),V=({values:e})=>{let t=S({dateStyle:`medium`});return f.createElement(`div`,{className:`datepicker-field`},e.length>0&&f.createElement(f.Fragment,null,e.slice().sort((e,t)=>e.compare(t)).map(e=>t.format(B(e))).join(`, `)))},H=p(({className:n,defaultOpen:r,defaultValue:a,disabled:s,firstDayOfWeek:c,help:d,id:p,invalid:g,invalidFeedback:_,isDateUnavailable:v,isOpen:b,label:x,labels:S,maxValue:C,minValue:T,name:D,onChange:O,onOpenChange:k,presets:ee,size:te,unavailableDates:j,valid:M,validFeedback:N,value:I,visibleMonths:L,...R},z)=>{let B=m(()=>l(j,v),[j,v]),V=A({defaultOpen:r,defaultValue:a,isDateUnavailable:B,isDisabled:s,isOpen:b,maxValue:C,minValue:T,onChange:O,onOpenChange:k,value:I}),H=h(null),ae=e(z,H),U=h(null),W=h(null),G=h(null),{describedBy:K,feedbackId:q,helpId:oe,inputId:J,labelId:Y,labelledBy:X}=t({ariaDescribedBy:R[`aria-describedby`],ariaLabelledBy:R[`aria-labelledby`],help:d,id:p,invalid:g,invalidFeedback:_,label:x,valid:M,validFeedback:N}),{groupProps:se,startFieldProps:ce,endFieldProps:le,buttonProps:Z,calendarProps:Q,dialogProps:$}=w({"aria-label":R[`aria-label`],"aria-labelledby":X,defaultValue:a,id:J,isDateUnavailable:B,isDisabled:s,isInvalid:g,maxValue:C,minValue:T,onChange:O,value:I},V,H),{overlayStyle:ue,placementAttr:de,overlayDismissProps:fe}=ne({overlayRef:W,state:V,triggerRef:H}),{dialogProps:pe}=E($,U);return f.createElement(o,{labels:S},i({children:f.createElement(f.Fragment,null,ie({calendar:f.createElement(u,{...pe,autoFocus:!0,disabled:s,firstDayOfWeek:c,isDateUnavailable:B,maxValue:C,minValue:T,onChange:Q.onChange,presets:ee,ref:U,value:Q.value,visibleMonths:L}),className:n,clearButton:(V.value?.start||V.value?.end)&&!s&&f.createElement(re,{onPress:()=>{V.setValue(null),G.current?.focus()}}),disabled:s,field:f.createElement(f.Fragment,null,f.createElement(F,{fieldProps:ce}),f.createElement(`span`,{"aria-hidden":`true`,className:`daterangepicker-separator`},`–`),f.createElement(F,{fieldProps:le})),fieldClassName:`d-flex w-100`,groupProps:{...y(se,R),"aria-describedby":K,"aria-labelledby":X},groupRef:ae,invalid:g,isOpen:V.isOpen,overlayDismissProps:fe,overlayRef:W,overlayStyle:ue,placementAttr:de,size:te,toggleButton:f.createElement(P,{buttonProps:Z,ref:G,state:V}),valid:M}),D&&f.createElement(f.Fragment,null,f.createElement(`input`,{disabled:s,name:`${D}Start`,type:`hidden`,value:V.value?.start?V.value.start.toString():``}),f.createElement(`input`,{disabled:s,name:`${D}End`,type:`hidden`,value:V.value?.end?V.value.end.toString():``}))),help:d,ids:{feedback:q,help:oe,label:Y},invalid:g,invalidFeedback:_,label:x,valid:M,validFeedback:N}))});H.displayName=`DateRangePicker`;export{L as n,H as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useState as e}from"react";function t(t,n,r){let i=t!==void 0,[a,o]=e(n);return[i?t:a,e=>{i||o(e),r?.(e)}]}function n(e){return getComputedStyle(e).direction===`rtl`}export{t as n,n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useDialogElement-BRIU60cT.js";import{t as n}from"./CloseButton-DJM7FRKh.js";import r,{createContext as i,forwardRef as a,useContext as o,useEffect as s,useId as c,useRef as l}from"react";import u from"classnames";const d=i({close:()=>{}}),f=new Set,p=a(({children:e,backdrop:n=!0,className:i,fitContent:a,fullscreen:o,instant:p,keyboard:m=!0,onClick:h,onClose:g,onClosePrevented:_,onHidden:v,onShow:y,onShown:b,placement:x,responsive:S,scroll:C=!1,sheet:w,translucent:T,visible:E,...D},O)=>{let{close:k,dialogRef:A,forkedRef:j,handleBackdropClick:M,handleCancel:N,hiding:P,staticBounce:F}=t({backdrop:n,instant:p,isModal:!!n||!C,keyboard:m,onBeforeShow:e=>{for(let t of f)t.dialog!==e&&t.close()},onClick:h,onClose:g,onClosePrevented:_,onHidden:v,onShow:y,onShown:b,ref:O,visible:E}),I=c(),L=l(k);L.current=k,s(()=>{let e=A.current;if(!e)return;let t={dialog:e,close:()=>L.current()};return f.add(t),()=>{f.delete(t)}},[A]);let R=u(S?`max-${S}:drawer`:`drawer`,`drawer-${x}`,{fullscreen:o,sheet:w,translucent:T,instant:p,"drawer-fit-content":a,nonmodal:!(n||!C),static:F,hiding:P},i);return r.createElement(d.Provider,{value:{close:k,titleId:I}},r.createElement(`dialog`,{"aria-labelledby":I,...D,className:R,onCancel:N,onClick:M,ref:j},e))});p.displayName=`Drawer`;const m=()=>o(d);function h({children:e,className:t,component:n,...i},a){let o=n??`div`,s=u(`drawer-body`,t);return r.createElement(o,{className:s,...i,ref:a},e)}const g=e(h,`DrawerBody`);function _({children:e,className:t,component:n,stacked:i,...a},o){let s=n??`div`,c=u(`drawer-footer`,{stacked:i},t);return r.createElement(s,{className:c,...a,ref:o},e)}const v=e(_,`DrawerFooter`);function y({children:e,className:t,closeButton:i=!0,closeLabel:a,component:o,...s},c){let l=o??`div`,{close:d}=m(),f=u(`drawer-header`,t);return r.createElement(l,{className:f,...s,ref:c},e,i&&r.createElement(n,{label:a,onClick:d}))}const b=e(y,`DrawerHeader`);function x({children:e,component:t,className:n,id:i,...a},o){let{titleId:s}=m(),c=t??`h2`,l=u(`drawer-title`,n);return r.createElement(c,{className:l,id:i??s,...a,ref:o},e)}const S=e(x,`DrawerTitle`);export{m as a,g as i,b as n,p as o,v as r,S 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{t as n}from"./spacingClassName-DVhk8m3P.js";import r from"react";import i from"classnames";const a=({direction:e,wrap:t,justify:r,align:i,alignContent:a,gap:o,rowGap:s,columnGap:c},l)=>[e&&`${l}flex-${e}`,t&&`${l}flex-${t}`,r&&`${l}justify-content-${r}`,i&&`${l}align-items-${i}`,a&&`${l}align-content-${a}`,n(`gap`,o,l),n(`row-gap`,s,l),n(`column-gap`,c,l)];function o({children:e,className:n,component:o,inline:s,direction:c,wrap:l,justify:u,align:d,alignContent:f,gap:p,rowGap:m,columnGap:h,responsive:g,..._},v){let y=o??`div`,b=i(s?`d-inline-flex`:`d-flex`,t(a,{direction:c,wrap:l,justify:u,align:d,alignContent:f,gap:p,rowGap:m,columnGap:h},g),n);return r.createElement(y,{className:b,..._,ref:v},e)}const s=e(o,`Flex`);export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{r as e}from"./polymorphic-CACPOv1_.js";import{t}from"./FormLabel-CYcQiFUI.js";import{t as n}from"./renderFormField-wiaxvvLG.js";import r,{forwardRef as i}from"react";import a from"classnames";const o=i(({children:i,className:o,help:s,ids:c,invalid:l,invalidFeedback:u,label:d,valid:f,validFeedback:p,...m},h)=>(e(!c?.input&&!c?.label,"FloatingInput: `ids.input`/`ids.label` are not set — the rendered label won't be associated with your control (no `htmlFor`, no `aria-labelledby` target). Pass `ids={{ input: yourControlId }}` (or `ids.label` for a group with no single input) so the label has something to point at."),n({children:r.createElement(`div`,{className:a(`form-floating`,o),...m,ref:h},r.createElement(t,{htmlFor:c?.input,id:c?.label},d),i),help:s,ids:{feedback:c?.feedback,help:c?.help},invalid:l,invalidFeedback:u,valid:f,validFeedback:p})));o.displayName=`FloatingInput`;export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{r as e}from"./polymorphic-CACPOv1_.js";import{t}from"./renderFormField-wiaxvvLG.js";const n=({children:n,className:r,help:i,ids:a,invalid:o,invalidFeedback:s,label:c,valid:l,validFeedback:u})=>(e(!!c&&!a?.input&&!a?.label,"FormField: `label` is set but `ids.input`/`ids.label` are not — the rendered label won't be associated with your control (no `htmlFor`, no `aria-labelledby` target). Pass `ids={{ input: yourControlId }}` (or `ids.label` for a group with no single input) so the label has something to point at."),t({children:n,className:r,help:i,ids:a,invalid:o,invalidFeedback:s,label:c,valid:l,validFeedback:u}));n.displayName=`FormField`;export{n 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{t as n}from"./spacingClassName-DVhk8m3P.js";import r,{forwardRef as i}from"react";import a from"classnames";const o=({span:e,offset:t,order:n},r)=>[typeof e==`number`||typeof e==`string`?`${r}col-${e}`:null,e===!0?`${r}col`:null,typeof t==`number`||typeof t==`string`?`${r}offset-${t}`:null,typeof n==`number`||typeof n==`string`?`${r}order-${n}`:null],s=i(({children:e,className:n,span:i,offset:s,order:c,responsive:l,...u},d)=>{let f=t(o,{span:i,offset:s,order:c},l),p=a(i===void 0&&`col`,f,n);return r.createElement(`div`,{className:p,...u,ref:d},e)});s.displayName=`Col`;function c({children:e,className:t,component:n,fluidUntil:i,fluid:o,...s},c){let l=n??`div`,u=a(`container`,o&&`fluid`,i,t);return r.createElement(l,{className:u,...s,ref:c},e)}const l=e(c,`Container`),u=new Set([`zero`,`4xs`,`3xs`,`2xs`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`]),d=e=>u.has(e)?`var(--cx-space-${e})`:e;function f({children:e,className:t,component:n,columns:i,rows:o,gap:s,fill:c,style:l,...u},f){let p=n??`div`,m=a(c?`grid-fill`:`grid`,t),h={...l};return c?s!==void 0&&(h[`--cx-gap`]=d(s)):(i!==void 0&&(h[`--cx-grid-columns`]=i),o!==void 0&&(h[`--cx-grid-rows`]=o),s!==void 0&&(h[`--cx-grid-gap`]=d(s))),r.createElement(p,{className:m,style:h,...u,ref:f},e)}const p=e(f,`Grid`),m=({span:e,start:t},n)=>[typeof e==`number`?`${n}g-col-${e}`:null,typeof t==`number`?`${n}g-start-${t}`:null];function h({children:e,className:n,component:i,span:o,start:s,responsive:c,subgrid:l,rows:u,gap:f,style:p,...h},g){let _=i??`div`,v=a(t(m,{span:o,start:s},c),l&&`grid grid-cols-subgrid`,n),y={...p};return l&&(u!==void 0&&(y[`--cx-grid-rows`]=u),f!==void 0&&(y[`--cx-grid-gap`]=d(f))),r.createElement(_,{className:v,style:y,...h,ref:g},e)}const g=e(h,`GridItem`),_=({cols:e,gutter:t,gutterX:r,gutterY:i},a)=>[e?`${a}row-cols-${e}`:null,n(`g`,t,a),n(`gx`,r,a),n(`gy`,i,a)],v=i(({children:e,className:n,cols:i,gutter:o,gutterX:s,gutterY:c,responsive:l,...u},d)=>{let f=a(`row`,t(_,{cols:i,gutter:o,gutterX:s,gutterY:c},l),n);return r.createElement(`div`,{className:f,...u,ref:d},e)});v.displayName=`Row`;export{s as a,l as i,g as n,p as r,v as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./Icon-BIwkD-kx.js";import r,{cloneElement as i}from"react";import{mergeProps as a}from"react-aria";function o({value:t,...o}){let{component:s}=e(),c={"aria-hidden":!0,...o};if(typeof t!=`string`){let e=t;return i(e,a(c,e.props))}return s?r.createElement(s,{name:t,...c}):r.createElement(n,{name:t,...c})}function s({icon:n,override:i,...a}){let{icons:s}=e();return r.createElement(o,{value:i??s?.[n]??t[n],...a})}export{o as n,s as t};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
-
import { t as Placement } from "./overlayPlacement-B7843a-Q.js";
|
|
3
|
-
import { FC, HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
4
|
-
//#region src/components/popover/Popover.d.ts
|
|
5
|
-
interface PopoverProps extends Pick<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'aria-labelledby'> {
|
|
6
|
-
children: ReactElement;
|
|
7
|
-
/**
|
|
8
|
-
* Content node for your component.
|
|
9
|
-
*/
|
|
10
|
-
content: ReactNode | string;
|
|
11
|
-
/**
|
|
12
|
-
* Offset of the popover relative to its target, as `[crossAxis, mainAxis]`.
|
|
13
|
-
*/
|
|
14
|
-
offset?: [number, number];
|
|
15
|
-
/**
|
|
16
|
-
* Callback fired when the component requests to be hidden.
|
|
17
|
-
*/
|
|
18
|
-
onHide?: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* Callback fired when the component requests to be shown.
|
|
21
|
-
*/
|
|
22
|
-
onShow?: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* Title node for your component.
|
|
25
|
-
*/
|
|
26
|
-
title?: ReactNode | string;
|
|
27
|
-
/**
|
|
28
|
-
* Describes the preferred placement of your component. Chassis will flip it to keep it in
|
|
29
|
-
* view.
|
|
30
|
-
*/
|
|
31
|
-
placement?: Placement;
|
|
32
|
-
/**
|
|
33
|
-
* Toggle the visibility of popover component.
|
|
34
|
-
*/
|
|
35
|
-
visible?: boolean;
|
|
36
|
-
}
|
|
37
|
-
declare const Popover: FC<PopoverProps>;
|
|
38
|
-
//#endregion
|
|
39
|
-
export { PopoverProps as n, Popover as t };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
-
import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
-
import { s as Spacing, t as Breakpoint } from "./types-CS_40Txv.js";
|
|
4
|
-
import { ElementType, ReactElement } from "react";
|
|
5
|
-
//#region src/components/flex/Flex.d.ts
|
|
6
|
-
interface FlexLayout {
|
|
7
|
-
/**
|
|
8
|
-
* Sets `flex-direction`. Omit for the browser default (`row`).
|
|
9
|
-
*/
|
|
10
|
-
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
11
|
-
/**
|
|
12
|
-
* Sets `flex-wrap`. Omit for the browser default (`nowrap`).
|
|
13
|
-
*/
|
|
14
|
-
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
15
|
-
/**
|
|
16
|
-
* Sets `justify-content`, aligning items along the main axis.
|
|
17
|
-
*/
|
|
18
|
-
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
19
|
-
/**
|
|
20
|
-
* Sets `align-items`, aligning items along the cross axis.
|
|
21
|
-
*/
|
|
22
|
-
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
23
|
-
/**
|
|
24
|
-
* Sets `align-content`, distributing wrapped lines along the cross axis. Has no effect on
|
|
25
|
-
* single-line (non-wrapping) containers.
|
|
26
|
-
*/
|
|
27
|
-
alignContent?: 'start' | 'end' | 'center' | 'between' | 'around' | 'stretch';
|
|
28
|
-
/**
|
|
29
|
-
* Spacing between children on both axes, mapped to the `gap-*` utility classes. Overridden per
|
|
30
|
-
* axis by `rowGap`/`columnGap` where set.
|
|
31
|
-
*/
|
|
32
|
-
gap?: Spacing | 0;
|
|
33
|
-
/**
|
|
34
|
-
* Spacing between rows (the cross axis when wrapped), mapped to the `row-gap-*` utility
|
|
35
|
-
* classes. Independent of `gap`/`columnGap`.
|
|
36
|
-
*/
|
|
37
|
-
rowGap?: Spacing | 0;
|
|
38
|
-
/**
|
|
39
|
-
* Spacing between columns (the main axis), mapped to the `column-gap-*` utility classes.
|
|
40
|
-
* Independent of `gap`/`rowGap`.
|
|
41
|
-
*/
|
|
42
|
-
columnGap?: Spacing | 0;
|
|
43
|
-
}
|
|
44
|
-
type FlexOwnProps<C extends ElementType> = FlexLayout & {
|
|
45
|
-
/**
|
|
46
|
-
* A string of all className you want applied to the component.
|
|
47
|
-
*/
|
|
48
|
-
className?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
51
|
-
*/
|
|
52
|
-
component?: C;
|
|
53
|
-
/**
|
|
54
|
-
* Renders an inline flex container (`.d-inline-flex`) instead of a block-level one (`.d-flex`,
|
|
55
|
-
* the default).
|
|
56
|
-
*/
|
|
57
|
-
inline?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Overrides any of `direction`/`wrap`/`justify`/`align`/`alignContent`/`gap`/`rowGap`/
|
|
60
|
-
* `columnGap` at one or more breakpoints, via regular viewport media queries (unlike `Stack`'s
|
|
61
|
-
* `responsive` prop, this doesn't require a `.contains-inline` ancestor).
|
|
62
|
-
*/
|
|
63
|
-
responsive?: Partial<Record<Breakpoint, FlexLayout>>;
|
|
64
|
-
};
|
|
65
|
-
type FlexProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, FlexOwnProps<C>>;
|
|
66
|
-
type FlexComponent = (<C extends ElementType = 'div'>(props: FlexProps<C> & {
|
|
67
|
-
ref?: PolymorphicRef<C>;
|
|
68
|
-
}) => ReactElement | null) & {
|
|
69
|
-
displayName?: string;
|
|
70
|
-
};
|
|
71
|
-
declare const Flex: FlexComponent;
|
|
72
|
-
//#endregion
|
|
73
|
-
export { FlexProps as n, Flex as t };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
-
import { t as Placement } from "./overlayPlacement-B7843a-Q.js";
|
|
3
|
-
import { FC, ReactElement, ReactNode } from "react";
|
|
4
|
-
//#region src/components/tooltip/Tooltip.d.ts
|
|
5
|
-
interface TooltipProps {
|
|
6
|
-
children: ReactElement;
|
|
7
|
-
/**
|
|
8
|
-
* Content node for your component.
|
|
9
|
-
*/
|
|
10
|
-
content: ReactNode | string;
|
|
11
|
-
/**
|
|
12
|
-
* Offset of the tooltip relative to its target, as `[crossAxis, mainAxis]`.
|
|
13
|
-
*/
|
|
14
|
-
offset?: [number, number];
|
|
15
|
-
/**
|
|
16
|
-
* Callback fired when the component requests to be hidden.
|
|
17
|
-
*/
|
|
18
|
-
onHide?: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* Callback fired when the component requests to be shown.
|
|
21
|
-
*/
|
|
22
|
-
onShow?: () => void;
|
|
23
|
-
/**
|
|
24
|
-
* Describes the preferred placement of your component. Chassis will flip it to keep it in
|
|
25
|
-
* view.
|
|
26
|
-
*/
|
|
27
|
-
placement?: Placement;
|
|
28
|
-
/**
|
|
29
|
-
* Tooltips always show on focus, since keyboard/screen-reader users need them too. Set to
|
|
30
|
-
* `'focus'` to disable the hover trigger and show on focus only.
|
|
31
|
-
*/
|
|
32
|
-
trigger?: 'hover' | 'focus';
|
|
33
|
-
/**
|
|
34
|
-
* Toggle the visibility of the tooltip component.
|
|
35
|
-
*/
|
|
36
|
-
visible?: boolean;
|
|
37
|
-
}
|
|
38
|
-
declare const Tooltip: FC<TooltipProps>;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { TooltipProps as n, Tooltip as t };
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import "./focus-ring-SR_LwaN7.js";
|
|
2
|
-
import { n as PolymorphicRef, t as PolymorphicComponentProps } from "./polymorphic-CVHbTHSN.js";
|
|
3
|
-
import { s as Spacing, t as Breakpoint } from "./types-CS_40Txv.js";
|
|
4
|
-
import { n as Span } from "./breakpoints-SLMTNHF9.js";
|
|
5
|
-
import React, { ElementType, HTMLAttributes, ReactElement } from "react";
|
|
6
|
-
//#region src/components/grid/Col.d.ts
|
|
7
|
-
interface ColLayout {
|
|
8
|
-
/**
|
|
9
|
-
* Columns (of 12) this Col spans, or `'auto'`/`true` for a natural-width column.
|
|
10
|
-
*
|
|
11
|
-
* @type { 'auto' | number | string | boolean }
|
|
12
|
-
*/
|
|
13
|
-
span?: Span;
|
|
14
|
-
/**
|
|
15
|
-
* Columns to offset the start of this Col by.
|
|
16
|
-
*/
|
|
17
|
-
offset?: number | string;
|
|
18
|
-
/**
|
|
19
|
-
* Visual order relative to sibling columns.
|
|
20
|
-
*
|
|
21
|
-
* @type { 'first' | 'last' | number | string }
|
|
22
|
-
*/
|
|
23
|
-
order?: 'first' | 'last' | number | string;
|
|
24
|
-
}
|
|
25
|
-
interface ColProps extends HTMLAttributes<HTMLDivElement>, ColLayout {
|
|
26
|
-
/**
|
|
27
|
-
* A string of all className you want applied to the base component.
|
|
28
|
-
*/
|
|
29
|
-
className?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Overrides `span`/`offset`/`order` at a breakpoint and up.
|
|
32
|
-
*
|
|
33
|
-
* @type { Partial<Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', { span?: 'auto' | number | string | boolean, offset?: number | string, order?: 'first' | 'last' | number | string }>> }
|
|
34
|
-
*/
|
|
35
|
-
responsive?: Partial<Record<Breakpoint, ColLayout>>;
|
|
36
|
-
}
|
|
37
|
-
declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/grid/Container.d.ts
|
|
40
|
-
type ContainerOwnProps<C extends ElementType> = {
|
|
41
|
-
/**
|
|
42
|
-
* A string of all className you want applied to the base component.
|
|
43
|
-
*/
|
|
44
|
-
className?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
47
|
-
*/
|
|
48
|
-
component?: C;
|
|
49
|
-
/**
|
|
50
|
-
* Set container 100% wide until the given breakpoint, after which it scales up with `max-width`
|
|
51
|
-
* at every larger breakpoint.
|
|
52
|
-
*
|
|
53
|
-
* @type Breakpoint
|
|
54
|
-
*/
|
|
55
|
-
fluidUntil?: Breakpoint;
|
|
56
|
-
/**
|
|
57
|
-
* Set container 100% wide, spanning the entire width of the viewport.
|
|
58
|
-
*/
|
|
59
|
-
fluid?: boolean;
|
|
60
|
-
};
|
|
61
|
-
type ContainerProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, ContainerOwnProps<C>>;
|
|
62
|
-
type ContainerComponent = (<C extends ElementType = 'div'>(props: ContainerProps<C> & {
|
|
63
|
-
ref?: PolymorphicRef<C>;
|
|
64
|
-
}) => ReactElement | null) & {
|
|
65
|
-
displayName?: string;
|
|
66
|
-
};
|
|
67
|
-
declare const Container: ContainerComponent;
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/components/grid/Grid.d.ts
|
|
70
|
-
type GridOwnProps<C extends ElementType> = {
|
|
71
|
-
/**
|
|
72
|
-
* A string of all className you want applied to the base component.
|
|
73
|
-
*/
|
|
74
|
-
className?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
77
|
-
*/
|
|
78
|
-
component?: C;
|
|
79
|
-
/**
|
|
80
|
-
* Number of columns in the grid template, set via the `--cx-grid-columns` custom property
|
|
81
|
-
* (defaults to `12` in CSS when omitted). Has no effect when `fill` is set.
|
|
82
|
-
*/
|
|
83
|
-
columns?: number;
|
|
84
|
-
/**
|
|
85
|
-
* Number of rows in the grid template, set via the `--cx-grid-rows` custom property (defaults
|
|
86
|
-
* to `1` in CSS when omitted). Has no effect when `fill` is set.
|
|
87
|
-
*/
|
|
88
|
-
rows?: number;
|
|
89
|
-
/**
|
|
90
|
-
* Gap between grid items, set via the `--cx-grid-gap` custom property (or `--cx-gap` when
|
|
91
|
-
* `fill` is set). Accepts a `Spacing` token (mapped to the matching `--cx-space-*` custom
|
|
92
|
-
* property) or any raw CSS `gap` value, including a `"{row} {column}"` pair.
|
|
93
|
-
*
|
|
94
|
-
* @type { Spacing | string }
|
|
95
|
-
*/
|
|
96
|
-
gap?: Spacing | (string & {});
|
|
97
|
-
/**
|
|
98
|
-
* Renders `.grid-fill` instead of `.grid` — columns expand equally to fill the available
|
|
99
|
-
* width, with the column count determined by the number of children rather than `columns`.
|
|
100
|
-
*/
|
|
101
|
-
fill?: boolean;
|
|
102
|
-
};
|
|
103
|
-
type GridProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, GridOwnProps<C>>;
|
|
104
|
-
type GridComponent = (<C extends ElementType = 'div'>(props: GridProps<C> & {
|
|
105
|
-
ref?: PolymorphicRef<C>;
|
|
106
|
-
}) => ReactElement | null) & {
|
|
107
|
-
displayName?: string;
|
|
108
|
-
};
|
|
109
|
-
declare const Grid: GridComponent;
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region src/components/grid/GridItem.d.ts
|
|
112
|
-
interface GridItemLayout {
|
|
113
|
-
/**
|
|
114
|
-
* Number of grid column tracks (of the parent `<Grid>`'s `columns`) this item spans, mapped to
|
|
115
|
-
* the `g-col-{n}` class.
|
|
116
|
-
*/
|
|
117
|
-
span?: number;
|
|
118
|
-
/**
|
|
119
|
-
* Grid column line to start this item at, mapped to the `g-start-{n}` class.
|
|
120
|
-
*/
|
|
121
|
-
start?: number;
|
|
122
|
-
}
|
|
123
|
-
type GridItemOwnProps<C extends ElementType> = GridItemLayout & {
|
|
124
|
-
/**
|
|
125
|
-
* A string of all className you want applied to the base component.
|
|
126
|
-
*/
|
|
127
|
-
className?: string;
|
|
128
|
-
/**
|
|
129
|
-
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
130
|
-
*/
|
|
131
|
-
component?: C;
|
|
132
|
-
/**
|
|
133
|
-
* Overrides `span`/`start` at a breakpoint and up.
|
|
134
|
-
*
|
|
135
|
-
* @type { Partial<Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', { span?: number, start?: number }>> }
|
|
136
|
-
*/
|
|
137
|
-
responsive?: Partial<Record<Breakpoint, GridItemLayout>>;
|
|
138
|
-
/**
|
|
139
|
-
* Turns this item into a nested subgrid: adds `.grid`/`.grid-cols-subgrid` alongside its
|
|
140
|
-
* `g-col-{n}`/`g-start-{n}` placement classes, so its own children inherit the parent
|
|
141
|
-
* `<Grid>`'s column tracks instead of defining new ones. Combine with `span` — a subgrid
|
|
142
|
-
* item must itself be a grid item of the parent for `grid-template-columns: subgrid` to take
|
|
143
|
-
* effect, which is why `subgrid` lives on `<GridItem>` (the element actually placed as a grid
|
|
144
|
-
* item) rather than on a `<Grid>` nested inside it.
|
|
145
|
-
*/
|
|
146
|
-
subgrid?: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Number of rows in the subgrid's own row template, set via the `--cx-grid-rows` custom
|
|
149
|
-
* property (defaults to `1` in CSS when omitted). Only relevant when `subgrid` is set —
|
|
150
|
-
* subgrid only inherits the parent's column tracks, not its rows.
|
|
151
|
-
*/
|
|
152
|
-
rows?: number;
|
|
153
|
-
/**
|
|
154
|
-
* Gap between the subgrid's children, set via the `--cx-grid-gap` custom property. Only
|
|
155
|
-
* relevant when `subgrid` is set — a subgrid doesn't inherit its parent's gap.
|
|
156
|
-
*
|
|
157
|
-
* @type { Spacing | string }
|
|
158
|
-
*/
|
|
159
|
-
gap?: Spacing | (string & {});
|
|
160
|
-
};
|
|
161
|
-
type GridItemProps<C extends ElementType = 'div'> = PolymorphicComponentProps<C, GridItemOwnProps<C>>;
|
|
162
|
-
type GridItemComponent = (<C extends ElementType = 'div'>(props: GridItemProps<C> & {
|
|
163
|
-
ref?: PolymorphicRef<C>;
|
|
164
|
-
}) => ReactElement | null) & {
|
|
165
|
-
displayName?: string;
|
|
166
|
-
};
|
|
167
|
-
declare const GridItem: GridItemComponent;
|
|
168
|
-
//#endregion
|
|
169
|
-
//#region src/components/grid/Row.d.ts
|
|
170
|
-
interface RowLayout {
|
|
171
|
-
/**
|
|
172
|
-
* Equal-width columns per row, or `'auto'` for content-sized columns.
|
|
173
|
-
*
|
|
174
|
-
* @type { 'auto' | number | string }
|
|
175
|
-
*/
|
|
176
|
-
cols?: 'auto' | number | string;
|
|
177
|
-
/**
|
|
178
|
-
* Gutter width on both axes.
|
|
179
|
-
*
|
|
180
|
-
* @type { Spacing | 0 }
|
|
181
|
-
*/
|
|
182
|
-
gutter?: Spacing | 0;
|
|
183
|
-
/**
|
|
184
|
-
* Horizontal gutter width.
|
|
185
|
-
*
|
|
186
|
-
* @type { Spacing | 0 }
|
|
187
|
-
*/
|
|
188
|
-
gutterX?: Spacing | 0;
|
|
189
|
-
/**
|
|
190
|
-
* Vertical gutter width.
|
|
191
|
-
*
|
|
192
|
-
* @type { Spacing | 0 }
|
|
193
|
-
*/
|
|
194
|
-
gutterY?: Spacing | 0;
|
|
195
|
-
}
|
|
196
|
-
interface RowProps extends HTMLAttributes<HTMLDivElement>, RowLayout {
|
|
197
|
-
/**
|
|
198
|
-
* A string of all className you want applied to the base component.
|
|
199
|
-
*/
|
|
200
|
-
className?: string;
|
|
201
|
-
/**
|
|
202
|
-
* Overrides `cols`/`gutter`/`gutterX`/`gutterY` at a breakpoint and up.
|
|
203
|
-
*
|
|
204
|
-
* @type { Partial<Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', { cols?: 'auto' | number | string, gutter?: Spacing | 0, gutterX?: Spacing | 0, gutterY?: Spacing | 0 }>> }
|
|
205
|
-
*/
|
|
206
|
-
responsive?: Partial<Record<Breakpoint, RowLayout>>;
|
|
207
|
-
}
|
|
208
|
-
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
|
|
209
|
-
//#endregion
|
|
210
|
-
export { GridItemProps as a, Container as c, ColProps as d, GridItemLayout as i, ContainerProps as l, RowProps as n, Grid as o, GridItem as r, GridProps as s, Row as t, Col as u };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./Link-Cq7FNWpm.js";import n,{Children as r,isValidElement as i}from"react";import a from"classnames";function o({children:e,active:r,className:i,disabled:o,color:s,component:c,...l},u){let d=c??`li`,f=d===`a`||d===`button`,p=a(`list-item`,s&&`context`,s,{"list-action":f,active:r,disabled:o},i),m=f?t:d,h={...f&&{active:r,disabled:o,component:d},...r&&{"aria-current":`page`},...o&&{"aria-disabled":!0},...l};return n.createElement(m,{className:p,...h,ref:u},e)}const s=e(o,`ListItem`);function c({children:e,className:t,component:o,color:c,variant:l,flush:u,items:d,layout:f,numbered:p,plain:m,...h},g){let _=d?d.some(e=>!!e.href):r.toArray(e).some(e=>i(e)&&e.type===s&&(e.props.component===`a`||e.props.component===`button`)),v=o??(_?`div`:`ul`),y=v===`ul`||v===`ol`,b=a(`list`,c&&`context`,c,l,f,{flush:u,plain:m,numbered:p},t),x=(d?d.map((e,t)=>{let r=a(`list-item`,e.color&&`context`,e.color,{"list-action":!!e.href,active:e.active,disabled:e.disabled}),i=e.href?`a`:y?`li`:`div`;return n.createElement(i,{key:e.id??t,className:r,...e.href?{href:e.href}:{},...e.active?{"aria-current":`page`}:{},...e.disabled?{"aria-disabled":!0}:{}},e.label)}):null)??(y?e:r.map(e,e=>i(e)&&e.type===s?n.cloneElement(e,{component:e.props.component??`div`}):e));return n.createElement(v,{className:b,...h,ref:g},x)}const l=e(c,`List`);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"./useForkedRef-DVEfT-KI.js";import{t as n}from"./useIsomorphicLayoutEffect-BbqRwuqn.js";import{t as r}from"./dialogTransition-i9vw0i2Z.js";import{i,r as a}from"./overlayPlacement-BtS90IVf.js";import{t as o}from"./renderMenuItemContent-CmqT3YUQ.js";import{t as s}from"./Link-Cq7FNWpm.js";import{t as c}from"./Button-I0aUy5h-.js";import l,{Fragment as u,createContext as d,forwardRef as f,useCallback as p,useContext as m,useEffect as h,useId as g,useMemo as _,useRef as v,useState as y}from"react";import b from"classnames";import{mergeProps as x,useButton as S,useLocale as C,useMenuTrigger as w,useOverlayPosition as T}from"react-aria";import{createPortal as E}from"react-dom";import{useMenuTriggerState as D}from"react-stately";const O=()=>void 0,k=d({autoClose:!0,close:O,focusStrategy:null,hide:O,menuId:``,menuStyle:{},menuTriggerProps:{},overlayRef:{current:null},placementAttr:`bottom-start`,reference:`toggle`,registerOverlay:O,show:O,targetRef:{current:null},toggle:O,toggleNodeRef:{current:null},triggerId:``,visible:!1});function A({children:e,autoClose:o=!0,className:s,component:c,container:d,offset:f=[0,2],onHide:p,onHidden:m,onShow:g,onShown:y,placement:x=`bottom-start`,reference:S=`toggle`,visible:C,...E},O){let A=c??u,j=v(null),M=t(O,j),N=v(null),P=v(null),F=v(null),I=v(new Map),L=(e,t)=>{t?I.current.set(e,t):I.current.delete(e)},R=D({defaultOpen:!!C}),{menuTriggerProps:z,menuProps:B}=w({},R,N);h(()=>{C!==void 0&&(C?R.open():R.close())},[C]),n(()=>{S===`parent`&&(P.current=j.current)},[S]);let V=v(!1);h(()=>{let e=F.current,t=!V.current;if(V.current=!0,!t){if(R.isOpen){if(g?.(),!e){y?.();return}return r(e,()=>y?.(),!0)}if(p?.(),!e){m?.();return}return r(e,()=>m?.(),!0)}},[R.isOpen]);let{overlayProps:H,placement:U}=T({targetRef:P,overlayRef:F,placement:i(x),offset:f[1],crossOffset:f[0],containerPadding:8,isOpen:R.isOpen,onClose:null}),{menuStyle:W,placementAttr:G}=a(H.style,x,U),ee=e=>R.open(e),K=()=>R.close(),q=e=>R.toggle(e),J=()=>{R.close(),N.current?.focus()};h(()=>{if(!R.isOpen||o===!1)return;let e=e=>{if(e instanceof KeyboardEvent&&e.key!==`Tab`)return;let t=e.target,n=N.current,r=F.current;if(n?.contains(t))return;let i=!!r?.contains(t)||Array.from(I.current.values()).some(e=>e.contains(t));(o!==`inside`||i)&&(o===`outside`&&i||i&&(e instanceof KeyboardEvent&&e.key===`Tab`||/input|select|option|textarea|form/i.test(t.tagName??``))||K())},t=window.setTimeout(()=>{window.addEventListener(`click`,e),window.addEventListener(`keyup`,e)});return()=>{window.clearTimeout(t),window.removeEventListener(`click`,e),window.removeEventListener(`keyup`,e)}},[R.isOpen,o]),h(()=>{if(!R.isOpen)return;let e=e=>{e.key===`Escape`&&J()};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[R.isOpen]);let te=_(()=>({autoClose:o,close:J,container:d,focusStrategy:R.focusStrategy,hide:K,menuId:B.id??``,menuStyle:W,menuTriggerProps:z,overlayRef:F,placementAttr:G,reference:S,registerOverlay:L,show:ee,targetRef:P,toggle:q,toggleNodeRef:N,triggerId:z.id??``,visible:R.isOpen}),[o,d,R.focusStrategy,B.id,W,z,G,S,R.isOpen]);return l.createElement(k.Provider,{value:te},A===u?e:l.createElement(A,{className:b(s,{show:R.isOpen}),...E,ref:M},e))}const j=e(A,`Menu`),M=f(({className:e,...t},n)=>{let r=b(`menu-divider`,e);return l.createElement(`hr`,{className:r,...t,ref:n})});M.displayName=`MenuDivider`;function N({children:e,className:t,component:n,role:r=`presentation`,...i},a){let o=n??`h4`,s=b(`menu-header`,t);return l.createElement(o,{className:s,role:r,...i,ref:a},e)}const P=e(N,`MenuHeader`);function F({children:e,className:t,component:n,description:r,href:i,icon:a,onClick:c,selected:u,...d},f){let p=b(`menu-item`,{selected:u},t);return l.createElement(s,{role:`menuitem`,component:n,href:i,onClick:e=>{i===`#`&&e.preventDefault(),c?.(e)},...d,className:p,ref:f},o({icon:a,label:e,description:r}))}const I=e(F,`MenuItem`),L=`:is(.menu-item, .submenu-back):not(.disabled):not(:disabled)`,R=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),z=e=>{if(!e)return[];let t=[];for(let n of Array.from(e.children))if(n.matches(L))t.push(n);else if(n.classList.contains(`submenu`)){let e=Array.from(n.children).find(e=>e.matches(L));e&&t.push(e)}return t.filter(R)},B=(e,t)=>{e.length&&(t===`first`?e[0]:e[e.length-1]).focus()},V=(e,{onArrowLeft:t,onArrowRight:n,onEscape:r})=>{let i=e.currentTarget,a=e.target;switch(e.key){case`ArrowDown`:case`ArrowUp`:{e.preventDefault(),e.stopPropagation();let t=z(i);if(!t.length)return;let n=t.indexOf(a);t[n===-1?e.key===`ArrowDown`?0:t.length-1:(n+(e.key===`ArrowDown`?1:-1)+t.length)%t.length].focus();return}case`Home`:case`End`:e.preventDefault(),e.stopPropagation(),B(z(i),e.key===`Home`?`first`:`last`);return;case`Escape`:if(!r)return;e.preventDefault(),e.stopPropagation(),r();return;case`ArrowLeft`:if(!t)return;e.preventDefault(),e.stopPropagation(),t();return;case`ArrowRight`:if(!n)return;e.preventDefault(),e.stopPropagation(),n();return}},H=d(null),U=()=>{let e=v(null);if(!e.current){let t=new Map;e.current={register:(e,n)=>(t.set(e,n),()=>{t.delete(e)}),notifyOpen:e=>{t.forEach((t,n)=>{n!==e&&t()})}}}return e.current},W=d(null),G=e=>e.type===`header`?l.createElement(P,{key:e.id},e.label):e.type===`divider`?l.createElement(M,{key:e.id}):l.createElement(I,{key:e.id,component:e.href?`a`:`button`,href:e.href,disabled:e.disabled,selected:e.selected,onClick:e.onClick},o({icon:e.icon,label:e.label,description:e.description,selected:e.selected}));function ee({children:e,className:n,component:r,items:i,onKeyDown:a,...o},s){let c=r??`div`,{close:u,container:d,focusStrategy:f,menuId:p,menuStyle:g,overlayRef:_,placementAttr:v,triggerId:y,visible:x}=m(k),S=t(s,_),C=U();h(()=>{x&&f&&B(z(_.current),f===`last`?`last`:`first`)},[x,f]);let w=e=>{V(e,{onEscape:u}),a?.(e)},T=l.createElement(c,{role:`menu`,id:p,"aria-labelledby":y,className:b(`menu`,{show:x},n),style:g,"data-cx-placement":v,"aria-hidden":!x,...o,onKeyDown:w,ref:S},l.createElement(H.Provider,{value:C},i?i.map(G):e));return d?typeof window>`u`?null:E(T,d===!0?document.body:d):T}const K=e(ee,`MenuList`);function q({children:e,className:t,component:n,...r},i){let a=n??`span`,o=b(`menu-text`,t);return l.createElement(a,{className:o,...r,ref:i},e)}const J=e(q,`MenuText`);function te({children:e,className:n,component:r,onClick:i,onKeyDown:a,...o},s){let{hide:u,menuTriggerProps:d,reference:f,targetRef:p,toggleNodeRef:h,visible:g}=m(k),_=r??c,y=v(null),{buttonProps:C}=S({...d,elementType:_===c?`button`:`a`},y),w=v(!1),T=t(s,e=>{y.current=e,h.current=e,f!==`parent`&&(p.current=e)}),E=e=>{w.current=e.pointerType!==`touch`&&g},D=e=>{e.preventDefault(),e.stopPropagation(),w.current&&(w.current=!1,u()),i?.(e)};return l.createElement(_,{..._===c?{type:`button`}:{},className:b(`caret`,{show:g},n),...x({onPointerDown:E},o,C,{onClick:D,onKeyDown:a}),ref:T},e)}const ne=e(te,`MenuToggle`),re=f(({children:e,activation:t=`both`,className:n,disabled:r,offset:o=[-4,0],placement:s,stacked:c,submenuDelay:u=100,trigger:d,...f},_)=>{let x=g(),S=`${x}-trigger`,w=`${x}-menu`,[D,O]=y(!1),[A,j]=y(!1),M=v(void 0),N=v(void 0),P=v(null),F=v(null),I=m(H),L=U(),{registerOverlay:R,visible:G}=m(k),{direction:ee}=C(),K=ee===`rtl`,q=s??(K?`left-start`:`right-start`),{overlayProps:J,placement:te}=T({targetRef:P,overlayRef:F,placement:i(q),offset:o[1],crossOffset:o[0],containerPadding:8,isOpen:D,onClose:null}),{menuStyle:ne,placementAttr:re}=a(J.style,q,te),Y=p(()=>{M.current!==void 0&&(window.clearTimeout(M.current),M.current=void 0)},[]),X=p(()=>{N.current!==void 0&&(cancelAnimationFrame(N.current),N.current=void 0)},[]),Z=p(()=>{Y(),X(),O(!1)},[Y,X]),ie=()=>{r||D||(Y(),I?.notifyOpen(x),O(!0))},ae=()=>{Y(),M.current=window.setTimeout(Z,u)};h(()=>I?.register(x,Z),[I,x,Z]),h(()=>Y,[Y]),h(()=>X,[X]),h(()=>j(!0),[]),h(()=>{G||Z()},[G,Z]);let Q=typeof window<`u`&&!!window.matchMedia&&window.matchMedia(`(hover: hover)`).matches&&(t===`hover`||t===`both`),oe=t===`click`||t===`both`,se=()=>{ie(),X(),N.current=requestAnimationFrame(()=>{N.current=void 0,B(z(F.current),`first`)})},$=()=>{Z(),P.current?.focus()},ce=e=>{oe&&!r&&(e.preventDefault(),e.stopPropagation(),D?Z():se())},le=K?`ArrowLeft`:`ArrowRight`,ue=e=>{r||(e.key===`Enter`||e.key===` `||e.key===le)&&(e.preventDefault(),e.stopPropagation(),se())},de={close:$};return l.createElement(`div`,{className:b(`submenu`,{show:D},n),...f,ref:_},l.createElement(`button`,{type:`button`,id:S,role:`menuitem`,className:`menu-item`,"aria-expanded":D,"aria-haspopup":`true`,"aria-controls":D?w:void 0,disabled:r,onClick:ce,onKeyDown:ue,onMouseEnter:Q?ie:void 0,onMouseLeave:Q?ae:void 0,ref:e=>{P.current=e}},d),(()=>{let t=l.createElement(`div`,{role:`menu`,id:w,"aria-labelledby":S,className:b(`menu`,{show:D,"submenu-stacked":c}),style:ne,"data-cx-placement":re,"aria-hidden":!D,onKeyDown:e=>V(e,{onEscape:$,...K?{onArrowRight:$}:{onArrowLeft:$}}),onMouseEnter:Q?Y:void 0,onMouseLeave:Q?ae:void 0,ref:e=>{F.current=e,R(w,e)}},l.createElement(W.Provider,{value:de},l.createElement(H.Provider,{value:L},e)));return A&&!c?E(t,document.body):t})())});re.displayName=`MenuSubmenu`;const Y=f(({children:e,className:t,onClick:n,type:r=`button`,...i},a)=>{let o=m(W),s=e=>{n?.(e),o?.close()};return l.createElement(`button`,{type:r,role:`menuitem`,className:b(`submenu-back`,`menu-item`,t),...i,onClick:s,ref:a},e)});Y.displayName=`MenuSubmenuBack`;export{K as a,M as c,J as i,j as l,re as n,I as o,ne as r,P as s,Y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./useDialogElement-BRIU60cT.js";import{t as n}from"./CloseButton-DJM7FRKh.js";import r,{createContext as i,forwardRef as a,useContext as o,useId as s}from"react";import c from"classnames";const l=i({close:()=>{}}),u=a(({children:e,backdrop:n=!0,className:i,fullscreen:a,instant:o,keyboard:u=!0,modal:d=!0,onClick:f,onClose:p,onClosePrevented:m,onHidden:h,onShow:g,onShown:_,scrollable:v,size:y,visible:b,...x},S)=>{let{close:C,forkedRef:w,handleBackdropClick:T,handleCancel:E,hiding:D,staticBounce:O}=t({backdrop:n,instant:o,isModal:d,keyboard:u,onClick:f,onClose:p,onClosePrevented:m,onHidden:h,onShow:g,onShown:_,ref:S,visible:b}),k=s(),A=c(`modal`,`dialog`,{[typeof a==`boolean`?`fullscreen`:`max-${a}:fullscreen`]:a,[`${y}`]:y,instant:o,nonmodal:!d,scrollable:v,hiding:D,"dialog-static":O},i);return r.createElement(l.Provider,{value:{close:C,titleId:k}},r.createElement(`dialog`,{"aria-labelledby":k,...x,className:A,onCancel:E,onClick:T,ref:w},e))});u.displayName=`Modal`;const d=()=>o(l);function f({children:e,className:t,component:n,...i},a){let o=n??`div`,s=c(`modal-body`,t);return r.createElement(o,{className:s,...i,ref:a},e)}const p=e(f,`ModalBody`);function m({children:e,className:t,component:n,stacked:i,...a},o){let s=n??`div`,l=c(`modal-footer`,{stacked:i},t);return r.createElement(s,{className:l,...a,ref:o},e)}const h=e(m,`ModalFooter`);function g({children:e,className:t,closeButton:i=!0,closeLabel:a,component:o,...s},l){let u=o??`div`,{close:f}=d(),p=c(`modal-header`,t);return r.createElement(u,{className:p,...s,ref:l},e,i&&r.createElement(n,{label:a,onClick:f}))}const _=e(g,`ModalHeader`);function v({children:e,component:t,className:n,id:i,...a},o){let{titleId:s}=d(),l=t??`h2`,u=c(`modal-title`,n);return r.createElement(l,{className:u,id:i??s,...a,ref:o},e)}const y=e(v,`ModalTitle`);export{d as a,p as i,_ as n,u as o,h as r,y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./focus-ring-SR_LwaN7.js";import{t as e}from"./polymorphic-CACPOv1_.js";import{t}from"./Link-Cq7FNWpm.js";import n,{forwardRef as r}from"react";import i from"classnames";function a({children:e,className:r,...a},o){let s=i(`nav-link`,r);return n.createElement(t,{className:s,...a,ref:o},e)}const o=e(a,`NavLink`);function s({children:e,className:t,...r},a){let s=i(`nav-item`,t),{href:c}=r;return c?n.createElement(`li`,{className:s,ref:a},n.createElement(o,r,e)):n.createElement(`li`,{className:s,...r,ref:a},e)}const c=r(s);c.displayName=`NavItem`;function l({children:e,className:t,component:r,items:a,layout:o,variant:s,...l},u){let d=r??`ul`,f=i(`nav`,{[`nav-${o}`]:o,[`nav-${s}`]:s},t),p=a?a.map((e,t)=>n.createElement(c,{key:t,active:e.active,disabled:e.disabled,href:e.href},e.label)):null;return n.createElement(d,{className:f,role:`navigation`,...l,ref:u},p??e)}const u=e(l,`Nav`),d=r(({children:e,className:t,...r},a)=>{let o=i(`nav-title`,t);return n.createElement(`li`,{className:o,...r,ref:a},e)});d.displayName=`NavTitle`;export{o as i,u as n,c as r,d as t};
|
|
@@ -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}from"./breakpoints-o_2Ev7ir.js";import{t as n}from"./spacingClassName-DVhk8m3P.js";import r from"react";import i from"classnames";const a=(e,t)=>[`${t}${e===`vertical`?`vstack`:`hstack`}`];function o({children:e,className:o,component:s,direction:c=`horizontal`,gap:l,responsive:u,...d},f){let p=s??`div`,m=i(t(a,c,u),n(`gap`,l),o);return r.createElement(p,{className:m,...d,ref:f},e)}const s=e(o,`Stack`);export{s 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};
|