@fragiola/primitives-react 0.0.0-stage → 0.0.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 +21 -0
- package/README.md +38 -2
- package/dist/accordion--E-5hjWo.js +210 -0
- package/dist/accordion--E-5hjWo.js.map +1 -0
- package/dist/accordion.d.ts +4 -0
- package/dist/accordion.js +1 -0
- package/dist/alert-dialog-7FIAj98B.js +37 -0
- package/dist/alert-dialog-7FIAj98B.js.map +1 -0
- package/dist/alert-dialog.d.ts +9 -0
- package/dist/alert-dialog.js +1 -0
- package/dist/aspect-ratio-CUADsevg.js +19 -0
- package/dist/aspect-ratio-CUADsevg.js.map +1 -0
- package/dist/aspect-ratio.d.ts +3 -0
- package/dist/aspect-ratio.js +1 -0
- package/dist/async-list-7ljWFMgA.js +35 -0
- package/dist/async-list-7ljWFMgA.js.map +1 -0
- package/dist/async-list.d.ts +2 -0
- package/dist/async-list.js +1 -0
- package/dist/autocomplete-virtual-BE8dDDgU.js +56 -0
- package/dist/autocomplete-virtual-BE8dDDgU.js.map +1 -0
- package/dist/autocomplete-virtual.d.ts +4 -0
- package/dist/autocomplete-virtual.js +3 -0
- package/dist/autocomplete.d.ts +9 -0
- package/dist/autocomplete.js +1 -0
- package/dist/avatar-CABjoLs9.js +101 -0
- package/dist/avatar-CABjoLs9.js.map +1 -0
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.js +1 -0
- package/dist/breadcrumbs-nG0Rq3kX.js +69 -0
- package/dist/breadcrumbs-nG0Rq3kX.js.map +1 -0
- package/dist/breadcrumbs.d.ts +3 -0
- package/dist/breadcrumbs.js +1 -0
- package/dist/button-B6h8UkhR.js +30 -0
- package/dist/button-B6h8UkhR.js.map +1 -0
- package/dist/button-props-DWfy1ZSo.js +69 -0
- package/dist/button-props-DWfy1ZSo.js.map +1 -0
- package/dist/button.d.ts +3 -0
- package/dist/button.js +1 -0
- package/dist/calendar-preset-Cs-hy-_0.js +70 -0
- package/dist/calendar-preset-Cs-hy-_0.js.map +1 -0
- package/dist/calendar-preset.d.ts +4 -0
- package/dist/calendar-preset.js +3 -0
- package/dist/calendar-root-base-CIkiSebb.js +515 -0
- package/dist/calendar-root-base-CIkiSebb.js.map +1 -0
- package/dist/calendar-row-BO5kyOgq.d.ts +84 -0
- package/dist/calendar-value-DCOjO7og.d.ts +23 -0
- package/dist/calendar-view-DT9i5Xg_.js +157 -0
- package/dist/calendar-view-DT9i5Xg_.js.map +1 -0
- package/dist/calendar-view.d.ts +6 -0
- package/dist/calendar-view.js +4 -0
- package/dist/calendar.d.ts +7 -0
- package/dist/calendar.js +1 -0
- package/dist/carousel-ClQsQ135.js +436 -0
- package/dist/carousel-ClQsQ135.js.map +1 -0
- package/dist/carousel.d.ts +4 -0
- package/dist/carousel.js +1 -0
- package/dist/cascade-select-DZlpKUok.js +582 -0
- package/dist/cascade-select-DZlpKUok.js.map +1 -0
- package/dist/cascade-select.d.ts +7 -0
- package/dist/cascade-select.js +1 -0
- package/dist/change-details-CPSkPCNw.d.ts +32 -0
- package/dist/checkbox-CbmkKNfv.js +165 -0
- package/dist/checkbox-CbmkKNfv.js.map +1 -0
- package/dist/checkbox-group-_UrFCUgQ.js +99 -0
- package/dist/checkbox-group-_UrFCUgQ.js.map +1 -0
- package/dist/checkbox-group-context-CoGqgxBM.js +6 -0
- package/dist/checkbox-group-context-CoGqgxBM.js.map +1 -0
- package/dist/checkbox-group.d.ts +4 -0
- package/dist/checkbox-group.js +1 -0
- package/dist/checkbox.d.ts +4 -0
- package/dist/checkbox.js +1 -0
- package/dist/clipboard-CvgO1qhh.js +189 -0
- package/dist/clipboard-CvgO1qhh.js.map +1 -0
- package/dist/clipboard.d.ts +4 -0
- package/dist/clipboard.js +1 -0
- package/dist/collapsible-Dh0TUP6l.js +112 -0
- package/dist/collapsible-Dh0TUP6l.js.map +1 -0
- package/dist/collapsible.d.ts +4 -0
- package/dist/collapsible.js +1 -0
- package/dist/color-area-BGo6tZxX.js +311 -0
- package/dist/color-area-BGo6tZxX.js.map +1 -0
- package/dist/color-area.d.ts +4 -0
- package/dist/color-area.js +1 -0
- package/dist/color-field-B9QEKyQ1.js +334 -0
- package/dist/color-field-B9QEKyQ1.js.map +1 -0
- package/dist/color-field.d.ts +4 -0
- package/dist/color-field.js +1 -0
- package/dist/color-picker-BNOtqWUK.js +276 -0
- package/dist/color-picker-BNOtqWUK.js.map +1 -0
- package/dist/color-picker-binding-D9xBS_my.js +6 -0
- package/dist/color-picker-binding-D9xBS_my.js.map +1 -0
- package/dist/color-picker-popover-CV_wP6KG.js +195 -0
- package/dist/color-picker-popover-CV_wP6KG.js.map +1 -0
- package/dist/color-picker-popover.d.ts +7 -0
- package/dist/color-picker-popover.js +1 -0
- package/dist/color-picker.d.ts +4 -0
- package/dist/color-picker.js +1 -0
- package/dist/color-slider-Bw940FJr.js +357 -0
- package/dist/color-slider-Bw940FJr.js.map +1 -0
- package/dist/color-slider.d.ts +4 -0
- package/dist/color-slider.js +1 -0
- package/dist/color-swatch-C9ws0xF4.js +37 -0
- package/dist/color-swatch-C9ws0xF4.js.map +1 -0
- package/dist/color-swatch-picker-CnmTr1SY.js +286 -0
- package/dist/color-swatch-picker-CnmTr1SY.js.map +1 -0
- package/dist/color-swatch-picker.d.ts +4 -0
- package/dist/color-swatch-picker.js +1 -0
- package/dist/color-swatch.d.ts +3 -0
- package/dist/color-swatch.js +1 -0
- package/dist/color-wheel--n8w5fIJ.js +247 -0
- package/dist/color-wheel--n8w5fIJ.js.map +1 -0
- package/dist/color-wheel.d.ts +4 -0
- package/dist/color-wheel.js +1 -0
- package/dist/combobox-virtual-BI-l10BE.js +61 -0
- package/dist/combobox-virtual-BI-l10BE.js.map +1 -0
- package/dist/combobox-virtual.d.ts +4 -0
- package/dist/combobox-virtual.js +3 -0
- package/dist/combobox.d.ts +9 -0
- package/dist/combobox.js +1 -0
- package/dist/command-virtual-CxNLxsih.js +56 -0
- package/dist/command-virtual-CxNLxsih.js.map +1 -0
- package/dist/command-virtual.d.ts +4 -0
- package/dist/command-virtual.js +3 -0
- package/dist/command.d.ts +5 -0
- package/dist/command.js +1 -0
- package/dist/context-menu-DGj2L-Sv.js +131 -0
- package/dist/context-menu-DGj2L-Sv.js.map +1 -0
- package/dist/context-menu.d.ts +8 -0
- package/dist/context-menu.js +1 -0
- package/dist/date-field-C1nhThPd.js +33 -0
- package/dist/date-field-C1nhThPd.js.map +1 -0
- package/dist/date-field-root-CzSo5iKL.d.ts +26 -0
- package/dist/date-field-root-base-B-050SUC.js +185 -0
- package/dist/date-field-root-base-B-050SUC.js.map +1 -0
- package/dist/date-field-segment-BoS-ohDh.d.ts +67 -0
- package/dist/date-field.d.ts +6 -0
- package/dist/date-field.js +1 -0
- package/dist/date-picker-input-BCaKff7A.js +29 -0
- package/dist/date-picker-input-BCaKff7A.js.map +1 -0
- package/dist/date-picker-input-root-base-Cc3mE-NR.d.ts +17 -0
- package/dist/date-picker-input-root-base-D4VaBnpf.js +361 -0
- package/dist/date-picker-input-root-base-D4VaBnpf.js.map +1 -0
- package/dist/date-picker-input.d.ts +7 -0
- package/dist/date-picker-input.js +3 -0
- package/dist/date-picker-trigger-BKPvZbRg.js +304 -0
- package/dist/date-picker-trigger-BKPvZbRg.js.map +1 -0
- package/dist/date-picker-trigger-DHsAhBf2.d.ts +51 -0
- package/dist/date-picker.d.ts +11 -0
- package/dist/date-picker.js +1 -0
- package/dist/date-range-field-C-ID01oa.js +34 -0
- package/dist/date-range-field-C-ID01oa.js.map +1 -0
- package/dist/date-range-field-input-BkLpldTx.js +33 -0
- package/dist/date-range-field-input-BkLpldTx.js.map +1 -0
- package/dist/date-range-field-input-BwCNo15l.d.ts +13 -0
- package/dist/date-range-field-root-CmZ3c7xn.d.ts +31 -0
- package/dist/date-range-field-root-base-DWH3nqmz.d.ts +23 -0
- package/dist/date-range-field-root-base-z8S5aSCs.js +261 -0
- package/dist/date-range-field-root-base-z8S5aSCs.js.map +1 -0
- package/dist/date-range-field.d.ts +9 -0
- package/dist/date-range-field.js +1 -0
- package/dist/date-range-picker-input-DlIdTD-J.js +30 -0
- package/dist/date-range-picker-input-DlIdTD-J.js.map +1 -0
- package/dist/date-range-picker-input.d.ts +10 -0
- package/dist/date-range-picker-input.js +3 -0
- package/dist/date-range-picker.d.ts +11 -0
- package/dist/date-range-picker.js +1 -0
- package/dist/dialog-DDE15qBB.js +33 -0
- package/dist/dialog-DDE15qBB.js.map +1 -0
- package/dist/dialog-root-base-DDMrqDC9.js +328 -0
- package/dist/dialog-root-base-DDMrqDC9.js.map +1 -0
- package/dist/dialog-title-BitK2i0A.d.ts +78 -0
- package/dist/dialog.d.ts +9 -0
- package/dist/dialog.js +1 -0
- package/dist/direction-BfW1BOg1.js +22 -0
- package/dist/direction-BfW1BOg1.js.map +1 -0
- package/dist/direction-context-CiRdNJmu.js +11 -0
- package/dist/direction-context-CiRdNJmu.js.map +1 -0
- package/dist/direction.d.ts +2 -0
- package/dist/direction.js +1 -0
- package/dist/drawer-CaPOhMl-.js +302 -0
- package/dist/drawer-CaPOhMl-.js.map +1 -0
- package/dist/drawer.d.ts +9 -0
- package/dist/drawer.js +1 -0
- package/dist/drop-zone-q0-5u2cs.js +86 -0
- package/dist/drop-zone-q0-5u2cs.js.map +1 -0
- package/dist/drop-zone.d.ts +4 -0
- package/dist/drop-zone.js +1 -0
- package/dist/editable-vU6vYZOD.js +403 -0
- package/dist/editable-vU6vYZOD.js.map +1 -0
- package/dist/editable.d.ts +4 -0
- package/dist/editable.js +1 -0
- package/dist/field-DibhXWF6.js +308 -0
- package/dist/field-DibhXWF6.js.map +1 -0
- package/dist/field.d.ts +4 -0
- package/dist/field.js +1 -0
- package/dist/fieldset-Cz80P2jc.js +53 -0
- package/dist/fieldset-Cz80P2jc.js.map +1 -0
- package/dist/fieldset-context-CeaxEBvi.js +6 -0
- package/dist/fieldset-context-CeaxEBvi.js.map +1 -0
- package/dist/fieldset.d.ts +3 -0
- package/dist/fieldset.js +1 -0
- package/dist/file-upload-BIRibICU.js +513 -0
- package/dist/file-upload-BIRibICU.js.map +1 -0
- package/dist/file-upload.d.ts +4 -0
- package/dist/file-upload.js +1 -0
- package/dist/form-DNAaFPpL.js +87 -0
- package/dist/form-DNAaFPpL.js.map +1 -0
- package/dist/form-context-BW-nK6kl.js +6 -0
- package/dist/form-context-BW-nK6kl.js.map +1 -0
- package/dist/form.d.ts +3 -0
- package/dist/form.js +1 -0
- package/dist/hover-card-CRDpA_zU.js +317 -0
- package/dist/hover-card-CRDpA_zU.js.map +1 -0
- package/dist/hover-card.d.ts +9 -0
- package/dist/hover-card.js +1 -0
- package/dist/index-0bXL0iXX.d.ts +25 -0
- package/dist/index-6f2s5HfF.d.ts +30 -0
- package/dist/index-9WYWziGt.d.ts +42 -0
- package/dist/index-B57uQVXT.d.ts +100 -0
- package/dist/index-BA629roy.d.ts +52 -0
- package/dist/index-BC5bS-vC.d.ts +30 -0
- package/dist/index-BDbTYsJR.d.ts +77 -0
- package/dist/index-BEaxabvv.d.ts +80 -0
- package/dist/index-BLRo_PJD.d.ts +58 -0
- package/dist/index-BMt816ZL.d.ts +51 -0
- package/dist/index-BQJrDd_G.d.ts +108 -0
- package/dist/index-BUJIeLCT.d.ts +37 -0
- package/dist/index-BZxd4oqB.d.ts +111 -0
- package/dist/index-B_JVgpGe.d.ts +13 -0
- package/dist/index-BdxleDV0.d.ts +104 -0
- package/dist/index-Be4w9GAc.d.ts +13 -0
- package/dist/index-Bht8ohW3.d.ts +31 -0
- package/dist/index-Bk1NBvxD.d.ts +75 -0
- package/dist/index-BmtcAsQr.d.ts +44 -0
- package/dist/index-BmuEv-h3.d.ts +35 -0
- package/dist/index-BnPLIkKG.d.ts +31 -0
- package/dist/index-BoJU86K5.d.ts +52 -0
- package/dist/index-Bq6yByLv.d.ts +50 -0
- package/dist/index-Bqt2th2p.d.ts +41 -0
- package/dist/index-BrXfSGo2.d.ts +51 -0
- package/dist/index-BsvcTJ_x.d.ts +17 -0
- package/dist/index-BxcCz-NS.d.ts +36 -0
- package/dist/index-C3y4g2fs.d.ts +21 -0
- package/dist/index-C8-b81Jh.d.ts +20 -0
- package/dist/index-C8KLM25T.d.ts +31 -0
- package/dist/index-C9TSddnB.d.ts +140 -0
- package/dist/index-CCnaczzE.d.ts +32 -0
- package/dist/index-CD6hgnl1.d.ts +86 -0
- package/dist/index-CEN3o4Pw.d.ts +35 -0
- package/dist/index-CFlhfs3y.d.ts +30 -0
- package/dist/index-CIQU06ga.d.ts +36 -0
- package/dist/index-CNUEsZ_M.d.ts +51 -0
- package/dist/index-CNYBtgVC.d.ts +53 -0
- package/dist/index-CQJHcuzo.d.ts +76 -0
- package/dist/index-CTw9ONha.d.ts +69 -0
- package/dist/index-CU9QnAha.d.ts +32 -0
- package/dist/index-CcwKZWPY.d.ts +92 -0
- package/dist/index-Cjl7RT2o.d.ts +17 -0
- package/dist/index-ClfKp-sZ.d.ts +21 -0
- package/dist/index-CqGIxPDB.d.ts +82 -0
- package/dist/index-CsXJJ0G8.d.ts +41 -0
- package/dist/index-Cyjcq7lp.d.ts +28 -0
- package/dist/index-CzB9dDcM.d.ts +22 -0
- package/dist/index-D1-zqp2Q.d.ts +44 -0
- package/dist/index-D59OFWyx.d.ts +53 -0
- package/dist/index-D9lx4wAU.d.ts +21 -0
- package/dist/index-DHrnPQEE.d.ts +128 -0
- package/dist/index-DHwyHITu.d.ts +131 -0
- package/dist/index-DQ68aV2P.d.ts +21 -0
- package/dist/index-DQAkgf9_.d.ts +14 -0
- package/dist/index-DRow1231.d.ts +31 -0
- package/dist/index-DTGZeJU7.d.ts +29 -0
- package/dist/index-DU7jtvI8.d.ts +24 -0
- package/dist/index-DVjhOpXu.d.ts +42 -0
- package/dist/index-DZoqbcd6.d.ts +26 -0
- package/dist/index-Da0eVQHO.d.ts +62 -0
- package/dist/index-DhNPJa6U.d.ts +31 -0
- package/dist/index-DnQAamhU.d.ts +27 -0
- package/dist/index-DoFrs7Az.d.ts +16 -0
- package/dist/index-DorcIjVk.d.ts +20 -0
- package/dist/index-Dx-yMTdt.d.ts +81 -0
- package/dist/index-J4LbimqY.d.ts +79 -0
- package/dist/index-L6Mp2njJ.d.ts +81 -0
- package/dist/index-OmXQjsNi.d.ts +37 -0
- package/dist/index-PpCPWRbt.d.ts +30 -0
- package/dist/index-Pq-ztBxR.d.ts +34 -0
- package/dist/index-Qgz-Dnsj.d.ts +73 -0
- package/dist/index-R3h8-VcD.d.ts +32 -0
- package/dist/index-WtAHbmtb.d.ts +88 -0
- package/dist/index-dKoYaA3K.d.ts +38 -0
- package/dist/index-fgqEotIa.d.ts +16 -0
- package/dist/index-gvpnQy8T.d.ts +87 -0
- package/dist/index-kY3Yo50q.d.ts +68 -0
- package/dist/index-ndFpL4W9.d.ts +15 -0
- package/dist/index-oLgwTyCz.d.ts +45 -0
- package/dist/index-pSrGVYre.d.ts +40 -0
- package/dist/index-t4CBZJDG.d.ts +65 -0
- package/dist/index-wC8PY0fW.d.ts +16 -0
- package/dist/index-wv0Lafz4.d.ts +46 -0
- package/dist/index-zEeZUMLc.d.ts +29 -0
- package/dist/index.d.ts +125 -0
- package/dist/index.js +104 -0
- package/dist/label-DN9tJMXl.js +24 -0
- package/dist/label-DN9tJMXl.js.map +1 -0
- package/dist/label.d.ts +3 -0
- package/dist/label.js +1 -0
- package/dist/link-D3xYrfPK.js +22 -0
- package/dist/link-D3xYrfPK.js.map +1 -0
- package/dist/link-props-Shu8RU_5.js +27 -0
- package/dist/link-props-Shu8RU_5.js.map +1 -0
- package/dist/link.d.ts +3 -0
- package/dist/link.js +1 -0
- package/dist/listbox-virtual-C4wz3TOa.js +281 -0
- package/dist/listbox-virtual-C4wz3TOa.js.map +1 -0
- package/dist/listbox-virtual.d.ts +6 -0
- package/dist/listbox-virtual.js +3 -0
- package/dist/listbox.d.ts +5 -0
- package/dist/listbox.js +1 -0
- package/dist/live-region-style-Xgiu9ttw.js +48 -0
- package/dist/live-region-style-Xgiu9ttw.js.map +1 -0
- package/dist/menu-bar-context-1duNlOWo.js +14 -0
- package/dist/menu-bar-context-1duNlOWo.js.map +1 -0
- package/dist/menu-oZj27rvf.js +123 -0
- package/dist/menu-oZj27rvf.js.map +1 -0
- package/dist/menu-separator-CzAc4jM8.d.ts +143 -0
- package/dist/menu-submenu-trigger-BykOQORL.js +672 -0
- package/dist/menu-submenu-trigger-BykOQORL.js.map +1 -0
- package/dist/menu.d.ts +10 -0
- package/dist/menu.js +1 -0
- package/dist/menubar-wjJF54GJ.js +213 -0
- package/dist/menubar-wjJF54GJ.js.map +1 -0
- package/dist/menubar.d.ts +3 -0
- package/dist/menubar.js +1 -0
- package/dist/meter-11PgO99t.js +120 -0
- package/dist/meter-11PgO99t.js.map +1 -0
- package/dist/meter.d.ts +3 -0
- package/dist/meter.js +1 -0
- package/dist/month-calendar-value-CNJcsqcv.d.ts +5 -0
- package/dist/month-calendar-value-D_au-Kbz.js +35 -0
- package/dist/month-calendar-value-D_au-Kbz.js.map +1 -0
- package/dist/month-calendar.d.ts +6 -0
- package/dist/month-calendar.js +1 -0
- package/dist/month-picker-DFjFvjo9.js +26 -0
- package/dist/month-picker-DFjFvjo9.js.map +1 -0
- package/dist/month-picker-root-base-CI7jcllI.js +162 -0
- package/dist/month-picker-root-base-CI7jcllI.js.map +1 -0
- package/dist/month-picker-root-base-SELhczoy.d.ts +28 -0
- package/dist/month-picker.d.ts +10 -0
- package/dist/month-picker.js +3 -0
- package/dist/month-range-calendar-BmnWB6OD.js +28 -0
- package/dist/month-range-calendar-BmnWB6OD.js.map +1 -0
- package/dist/month-range-calendar.d.ts +6 -0
- package/dist/month-range-calendar.js +3 -0
- package/dist/month-range-picker-TfMtxi2X.js +26 -0
- package/dist/month-range-picker-TfMtxi2X.js.map +1 -0
- package/dist/month-range-picker.d.ts +10 -0
- package/dist/month-range-picker.js +3 -0
- package/dist/multiple-calendar-EBsuTzYQ.js +133 -0
- package/dist/multiple-calendar-EBsuTzYQ.js.map +1 -0
- package/dist/multiple-calendar.d.ts +7 -0
- package/dist/multiple-calendar.js +3 -0
- package/dist/navigation-menu-82shSjXS.js +660 -0
- package/dist/navigation-menu-82shSjXS.js.map +1 -0
- package/dist/navigation-menu.d.ts +5 -0
- package/dist/navigation-menu.js +1 -0
- package/dist/number-field-BUNkL15K.js +491 -0
- package/dist/number-field-BUNkL15K.js.map +1 -0
- package/dist/number-field.d.ts +4 -0
- package/dist/number-field.js +1 -0
- package/dist/otp-field-BMKBhv0O.js +363 -0
- package/dist/otp-field-BMKBhv0O.js.map +1 -0
- package/dist/otp-field.d.ts +4 -0
- package/dist/otp-field.js +1 -0
- package/dist/overlay-handle-DOyqO4oY.js +62 -0
- package/dist/overlay-handle-DOyqO4oY.js.map +1 -0
- package/dist/overlay-handle-DzzlzKqP.d.ts +16 -0
- package/dist/pagination-CMWaQSpr.js +173 -0
- package/dist/pagination-CMWaQSpr.js.map +1 -0
- package/dist/pagination.d.ts +4 -0
- package/dist/pagination.js +1 -0
- package/dist/parts-B2E7RN77.d.ts +170 -0
- package/dist/parts-BHkvkEgf.js +485 -0
- package/dist/parts-BHkvkEgf.js.map +1 -0
- package/dist/parts-BJ94V7Kv.d.ts +24 -0
- package/dist/parts-BL0sXepP.d.ts +101 -0
- package/dist/parts-BjC20sfl.d.ts +19 -0
- package/dist/parts-BnbJ2FWv.d.ts +81 -0
- package/dist/parts-C688_OLH.js +24 -0
- package/dist/parts-C688_OLH.js.map +1 -0
- package/dist/parts-C81p8gpg.d.ts +147 -0
- package/dist/parts-CDVlldST.js +721 -0
- package/dist/parts-CDVlldST.js.map +1 -0
- package/dist/parts-CNp1lOIU.js +24 -0
- package/dist/parts-CNp1lOIU.js.map +1 -0
- package/dist/parts-CXjEfLf7.d.ts +125 -0
- package/dist/parts-CrriPiIL.js +29 -0
- package/dist/parts-CrriPiIL.js.map +1 -0
- package/dist/parts-DVNSEjIO.d.ts +19 -0
- package/dist/parts-DmQ9WqOP.js +512 -0
- package/dist/parts-DmQ9WqOP.js.map +1 -0
- package/dist/parts-DoQQN1Io.d.ts +96 -0
- package/dist/parts-VT0Ohb06.js +806 -0
- package/dist/parts-VT0Ohb06.js.map +1 -0
- package/dist/parts-XRa0gd47.js +350 -0
- package/dist/parts-XRa0gd47.js.map +1 -0
- package/dist/parts-_ZriSS4p.js +376 -0
- package/dist/parts-_ZriSS4p.js.map +1 -0
- package/dist/password-input-BQAySlmc.js +212 -0
- package/dist/password-input-BQAySlmc.js.map +1 -0
- package/dist/password-input.d.ts +4 -0
- package/dist/password-input.js +1 -0
- package/dist/picker-binding-context-7ci59zS0.js +22 -0
- package/dist/picker-binding-context-7ci59zS0.js.map +1 -0
- package/dist/popover-C5UaRJpT.js +295 -0
- package/dist/popover-C5UaRJpT.js.map +1 -0
- package/dist/popover.d.ts +9 -0
- package/dist/popover.js +1 -0
- package/dist/progress-2d64jFqb.js +141 -0
- package/dist/progress-2d64jFqb.js.map +1 -0
- package/dist/progress.d.ts +3 -0
- package/dist/progress.js +1 -0
- package/dist/radio-Mvw36nnF.js +128 -0
- package/dist/radio-Mvw36nnF.js.map +1 -0
- package/dist/radio-group-D7DchtVK.js +149 -0
- package/dist/radio-group-D7DchtVK.js.map +1 -0
- package/dist/radio-group-context-DRe2PyiF.js +6 -0
- package/dist/radio-group-context-DRe2PyiF.js.map +1 -0
- package/dist/radio-group.d.ts +4 -0
- package/dist/radio-group.js +1 -0
- package/dist/radio.d.ts +3 -0
- package/dist/radio.js +1 -0
- package/dist/range-calendar-BMxPzzAr.js +32 -0
- package/dist/range-calendar-BMxPzzAr.js.map +1 -0
- package/dist/range-calendar.d.ts +6 -0
- package/dist/range-calendar.js +1 -0
- package/dist/rating-DQdIL_nz.js +303 -0
- package/dist/rating-DQdIL_nz.js.map +1 -0
- package/dist/rating.d.ts +4 -0
- package/dist/rating.js +1 -0
- package/dist/render-C7XnxB7f.js +40 -0
- package/dist/render-C7XnxB7f.js.map +1 -0
- package/dist/render-element-DXbUbfgN.js +66 -0
- package/dist/render-element-DXbUbfgN.js.map +1 -0
- package/dist/render-element-Pwuv2wsL.d.ts +13 -0
- package/dist/render.d.ts +3 -0
- package/dist/render.js +1 -0
- package/dist/roving-context-BVp0I9UN.js +16 -0
- package/dist/roving-context-BVp0I9UN.js.map +1 -0
- package/dist/scroll-area-CGaVLKik.js +274 -0
- package/dist/scroll-area-CGaVLKik.js.map +1 -0
- package/dist/scroll-area.d.ts +3 -0
- package/dist/scroll-area.js +1 -0
- package/dist/search-field-DqGQt6pC.js +207 -0
- package/dist/search-field-DqGQt6pC.js.map +1 -0
- package/dist/search-field.d.ts +4 -0
- package/dist/search-field.js +1 -0
- package/dist/segmented-control-BYrnLASo.js +316 -0
- package/dist/segmented-control-BYrnLASo.js.map +1 -0
- package/dist/segmented-control.d.ts +4 -0
- package/dist/segmented-control.js +1 -0
- package/dist/select-virtual-9vDaEiye.js +55 -0
- package/dist/select-virtual-9vDaEiye.js.map +1 -0
- package/dist/select-virtual.d.ts +4 -0
- package/dist/select-virtual.js +3 -0
- package/dist/select.d.ts +8 -0
- package/dist/select.js +1 -0
- package/dist/separator-ChAJks2Q.js +18 -0
- package/dist/separator-ChAJks2Q.js.map +1 -0
- package/dist/separator.d.ts +3 -0
- package/dist/separator.js +1 -0
- package/dist/slider-DZiqQ18C.js +437 -0
- package/dist/slider-DZiqQ18C.js.map +1 -0
- package/dist/slider.d.ts +4 -0
- package/dist/slider.js +1 -0
- package/dist/state-attributes-DhboDeMS.js +14 -0
- package/dist/state-attributes-DhboDeMS.js.map +1 -0
- package/dist/steps-t_FxFH9P.js +251 -0
- package/dist/steps-t_FxFH9P.js.map +1 -0
- package/dist/steps.d.ts +4 -0
- package/dist/steps.js +1 -0
- package/dist/switch-D3zj8gtg.js +137 -0
- package/dist/switch-D3zj8gtg.js.map +1 -0
- package/dist/switch.d.ts +4 -0
- package/dist/switch.js +1 -0
- package/dist/tabs-o83wz1hF.js +285 -0
- package/dist/tabs-o83wz1hF.js.map +1 -0
- package/dist/tabs.d.ts +4 -0
- package/dist/tabs.js +1 -0
- package/dist/tag-group-gmBdCkE4.js +354 -0
- package/dist/tag-group-gmBdCkE4.js.map +1 -0
- package/dist/tag-group.d.ts +4 -0
- package/dist/tag-group.js +1 -0
- package/dist/tags-input-Co9pI732.js +555 -0
- package/dist/tags-input-Co9pI732.js.map +1 -0
- package/dist/tags-input.d.ts +4 -0
- package/dist/tags-input.js +1 -0
- package/dist/time-field-qqgemJB1.js +35 -0
- package/dist/time-field-qqgemJB1.js.map +1 -0
- package/dist/time-field.d.ts +5 -0
- package/dist/time-field.js +1 -0
- package/dist/time-range-field-BurnJee0.js +36 -0
- package/dist/time-range-field-BurnJee0.js.map +1 -0
- package/dist/time-range-field.d.ts +7 -0
- package/dist/time-range-field.js +1 -0
- package/dist/toast-ChdTo_Md.js +341 -0
- package/dist/toast-ChdTo_Md.js.map +1 -0
- package/dist/toast.d.ts +4 -0
- package/dist/toast.js +1 -0
- package/dist/toggle-W5tihPuD.js +65 -0
- package/dist/toggle-W5tihPuD.js.map +1 -0
- package/dist/toggle-group-DpJ794rw.js +73 -0
- package/dist/toggle-group-DpJ794rw.js.map +1 -0
- package/dist/toggle-group-context-Bp44l1NR.js +6 -0
- package/dist/toggle-group-context-Bp44l1NR.js.map +1 -0
- package/dist/toggle-group.d.ts +4 -0
- package/dist/toggle-group.js +1 -0
- package/dist/toggle.d.ts +4 -0
- package/dist/toggle.js +1 -0
- package/dist/toolbar-DfjePeEZ.js +178 -0
- package/dist/toolbar-DfjePeEZ.js.map +1 -0
- package/dist/toolbar.d.ts +3 -0
- package/dist/toolbar.js +1 -0
- package/dist/tooltip-CqZtSspz.js +320 -0
- package/dist/tooltip-CqZtSspz.js.map +1 -0
- package/dist/tooltip.d.ts +9 -0
- package/dist/tooltip.js +1 -0
- package/dist/use-color-picker-binding-D0R-FsfF.js +17 -0
- package/dist/use-color-picker-binding-D0R-FsfF.js.map +1 -0
- package/dist/use-controllable-state-Dm8eNkgP.js +36 -0
- package/dist/use-controllable-state-Dm8eNkgP.js.map +1 -0
- package/dist/use-element-tpFZ-kuA.js +10 -0
- package/dist/use-element-tpFZ-kuA.js.map +1 -0
- package/dist/use-field-control-CL_nOU7T.js +131 -0
- package/dist/use-field-control-CL_nOU7T.js.map +1 -0
- package/dist/use-overlay-portal-Cfv6qtTO.js +18 -0
- package/dist/use-overlay-portal-Cfv6qtTO.js.map +1 -0
- package/dist/use-overlay-portal-D8GjZ-m7.d.ts +13 -0
- package/dist/use-overlay-root-BDO5E_0S.d.ts +23 -0
- package/dist/use-overlay-root-eXuUlCpV.js +225 -0
- package/dist/use-overlay-root-eXuUlCpV.js.map +1 -0
- package/dist/use-overlay-trigger-CxW1Z6Q6.js +74 -0
- package/dist/use-overlay-trigger-CxW1Z6Q6.js.map +1 -0
- package/dist/use-overlay-trigger-PP99t2ZF.d.ts +11 -0
- package/dist/use-panel-transition-CKMdsqPR.js +145 -0
- package/dist/use-panel-transition-CKMdsqPR.js.map +1 -0
- package/dist/use-positioner-BpxM4U5Y.d.ts +11 -0
- package/dist/use-positioner-DtJR980s.js +56 -0
- package/dist/use-positioner-DtJR980s.js.map +1 -0
- package/dist/use-presence-Cwi_UTLe.js +97 -0
- package/dist/use-presence-Cwi_UTLe.js.map +1 -0
- package/dist/use-required-context-Cjd_CYnv.js +11 -0
- package/dist/use-required-context-Cjd_CYnv.js.map +1 -0
- package/dist/use-roving-composite-D0vtGxm8.js +82 -0
- package/dist/use-roving-composite-D0vtGxm8.js.map +1 -0
- package/dist/use-roving-item-Dxe3phsZ.js +42 -0
- package/dist/use-roving-item-Dxe3phsZ.js.map +1 -0
- package/dist/use-segment-group--unFuh-Z.js +307 -0
- package/dist/use-segment-group--unFuh-Z.js.map +1 -0
- package/dist/use-virtual-rows-B5N0qgmT.js +99 -0
- package/dist/use-virtual-rows-B5N0qgmT.js.map +1 -0
- package/dist/use-virtual-rows-BQFqR0_e.d.ts +16 -0
- package/dist/year-calendar-CroBMFMN.js +28 -0
- package/dist/year-calendar-CroBMFMN.js.map +1 -0
- package/dist/year-calendar.d.ts +6 -0
- package/dist/year-calendar.js +3 -0
- package/dist/year-picker-DJVxXtPh.js +26 -0
- package/dist/year-picker-DJVxXtPh.js.map +1 -0
- package/dist/year-picker.d.ts +10 -0
- package/dist/year-picker.js +3 -0
- package/dist/year-range-calendar-Cz2WYDV2.js +28 -0
- package/dist/year-range-calendar-Cz2WYDV2.js.map +1 -0
- package/dist/year-range-calendar.d.ts +6 -0
- package/dist/year-range-calendar.js +3 -0
- package/dist/year-range-picker-9f7L5Hgx.js +26 -0
- package/dist/year-range-picker-9f7L5Hgx.js.map +1 -0
- package/dist/year-range-picker.d.ts +10 -0
- package/dist/year-range-picker.js +3 -0
- package/package.json +553 -3
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { t as ChangeDetails } from "./change-details-CPSkPCNw.js";
|
|
2
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
3
|
+
interface SegmentedControlIndicatorState {
|
|
4
|
+
orientation: "horizontal" | "vertical";
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface SegmentedControlIndicatorProps extends PartProps<SegmentedControlIndicatorState> {
|
|
8
|
+
/**
|
|
9
|
+
* Places it before hydration in a server render (Base UI's name, as the Tabs Indicator): the
|
|
10
|
+
* server writes a small inline script inside it that measures the checked Item as the page
|
|
11
|
+
* parses, then removes itself (spec/segmented-control.md, "Server rendering"). Default `false`.
|
|
12
|
+
*/
|
|
13
|
+
renderBeforeHydration?: boolean;
|
|
14
|
+
/** The `nonce` of the `renderBeforeHydration` script (a Content Security Policy's). */
|
|
15
|
+
nonce?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Follows the checked Item through CSS variables measured from the Root's padding box
|
|
19
|
+
* (spec/segmented-control.md). It is rendered once the checked Item is measured (at once with
|
|
20
|
+
* `renderBeforeHydration`), and measured again on a resize of the Root or of the Item.
|
|
21
|
+
*/
|
|
22
|
+
declare function SegmentedControlIndicator({ renderBeforeHydration, nonce, ...props }: SegmentedControlIndicatorProps): import("react").ReactNode;
|
|
23
|
+
/** An Item's state, which its ItemText reads. */
|
|
24
|
+
interface SegmentedControlItemState {
|
|
25
|
+
checked: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
orientation: "horizontal" | "vertical";
|
|
28
|
+
}
|
|
29
|
+
interface SegmentedControlItemProps extends PartProps<SegmentedControlItemState> {
|
|
30
|
+
/** Its value in the control. */
|
|
31
|
+
value: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
id?: string;
|
|
34
|
+
}
|
|
35
|
+
/** A segment: a `radio` of the control (spec/segmented-control.md). */
|
|
36
|
+
declare function SegmentedControlItem({ value, disabled: disabledProp, ...props }: SegmentedControlItemProps): import("react").JSX.Element;
|
|
37
|
+
/** An Item's text (spec/segmented-control.md), with its Item's state. */
|
|
38
|
+
declare function SegmentedControlItemText(props: PartProps<SegmentedControlItemState>): import("react").ReactNode;
|
|
39
|
+
interface SegmentedControlRootState {
|
|
40
|
+
value: string | null;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
required: boolean;
|
|
43
|
+
orientation: "horizontal" | "vertical";
|
|
44
|
+
}
|
|
45
|
+
interface SegmentedControlRootProps extends PartProps<SegmentedControlRootState> {
|
|
46
|
+
/** The checked Item's value; `null` for none (controlled). */
|
|
47
|
+
value?: string | null;
|
|
48
|
+
/** The Item checked at first (default: none). */
|
|
49
|
+
defaultValue?: string | null;
|
|
50
|
+
/** The checked Item's value; `null` when a form reset returns the control to none. */
|
|
51
|
+
onValueChange?: (value: string | null, details: ChangeDetails) => void;
|
|
52
|
+
/** Disables every Item. */
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
/** The form's validation fails while no Item is checked. */
|
|
55
|
+
required?: boolean;
|
|
56
|
+
/** The hidden input's name. */
|
|
57
|
+
name?: string;
|
|
58
|
+
/** `aria-orientation` and `data-orientation` (default `"horizontal"`); it changes no key. */
|
|
59
|
+
orientation?: "horizontal" | "vertical";
|
|
60
|
+
/** The arrows wrap from the last Item to the first and back (default `true`). */
|
|
61
|
+
loopFocus?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* A single choice among segments, with an Indicator that follows the checked one
|
|
65
|
+
* (spec/segmented-control.md, the APG radio group): the `radiogroup`, one tab stop, the arrows
|
|
66
|
+
* move the focus and the check together, and a hidden input for native forms.
|
|
67
|
+
*/
|
|
68
|
+
declare function SegmentedControlRoot({ value: valueProp, defaultValue, onValueChange, disabled: disabledProp, required, name, orientation, loopFocus, children, ...props }: SegmentedControlRootProps): import("react").JSX.Element;
|
|
69
|
+
/** spec/segmented-control.md */
|
|
70
|
+
declare const SegmentedControl: {
|
|
71
|
+
Root: typeof SegmentedControlRoot;
|
|
72
|
+
Item: typeof SegmentedControlItem;
|
|
73
|
+
ItemText: typeof SegmentedControlItemText;
|
|
74
|
+
Indicator: typeof SegmentedControlIndicator;
|
|
75
|
+
};
|
|
76
|
+
export { SegmentedControlItemState as a, SegmentedControlItemProps as i, SegmentedControlRootProps as n, SegmentedControlIndicatorProps as o, SegmentedControlRootState as r, SegmentedControlIndicatorState as s, SegmentedControl as t };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { t as ChangeDetails } from "./change-details-CPSkPCNw.js";
|
|
2
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
3
|
+
/** Names the List (spec/tag-group.md); in a Field, the `Field.Label` does. */
|
|
4
|
+
declare function TagGroupLabel(props: PartProps<Record<string, never>>): import("react").ReactNode;
|
|
5
|
+
interface TagGroupListState {
|
|
6
|
+
empty: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The `grid` of tags, a `group` while it holds none (spec/tag-group.md): it takes the focus after
|
|
11
|
+
* the last removal.
|
|
12
|
+
*/
|
|
13
|
+
declare function TagGroupList(props: PartProps<TagGroupListState>): import("react").ReactNode;
|
|
14
|
+
interface TagGroupRemoveButtonState {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** Removes its Tag (spec/tag-group.md, "Pointer"); a press never takes the focus. */
|
|
18
|
+
declare function TagGroupRemoveButton(props: PartProps<TagGroupRemoveButtonState>): import("react").ReactNode;
|
|
19
|
+
/** How many tags a TagGroup selects (spec/tag-group.md, "API"). */
|
|
20
|
+
type TagGroupSelectionMode = "none" | "single" | "multiple";
|
|
21
|
+
interface TagGroupRootState {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
empty: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface TagGroupRootProps extends PartProps<TagGroupRootState> {
|
|
26
|
+
/** How many tags can be selected (default `"none"`). */
|
|
27
|
+
selectionMode?: TagGroupSelectionMode;
|
|
28
|
+
/** The selected tags' values, in the tags' order (an array in every mode). */
|
|
29
|
+
value?: readonly string[];
|
|
30
|
+
defaultValue?: readonly string[];
|
|
31
|
+
onValueChange?: (value: string[], details: ChangeDetails) => void;
|
|
32
|
+
/** The values of the disabled tags. */
|
|
33
|
+
disabledKeys?: readonly string[];
|
|
34
|
+
/** Every tag is disabled. */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** A tag asks to be removed: remove it in the handler, or keep it. */
|
|
37
|
+
onRemove?: (value: string, details: ChangeDetails) => void;
|
|
38
|
+
/** The arrows wrap from the last tag to the first and back (default `true`). */
|
|
39
|
+
loopFocus?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A focusable group of tags (spec/tag-group.md, React Aria's grid of tags): the selection, the
|
|
43
|
+
* roving focus, the removal and its focus rule, the Field binding.
|
|
44
|
+
*/
|
|
45
|
+
declare function TagGroupRoot(props: TagGroupRootProps): import("react").JSX.Element;
|
|
46
|
+
interface TagGroupTagState {
|
|
47
|
+
selected: boolean;
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface TagGroupTagProps extends PartProps<TagGroupTagState> {
|
|
51
|
+
/** The value it selects and removes (unique in the group). */
|
|
52
|
+
value: string;
|
|
53
|
+
/** Never focused, selected nor removed. */
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/** A `row`, focusable with a roving `tabindex` (spec/tag-group.md); holds one TagCell. */
|
|
57
|
+
declare function TagGroupTag({ value, disabled: disabledProp, ...props }: TagGroupTagProps): import("react").JSX.Element;
|
|
58
|
+
/** A Tag's one `gridcell`: holds its content and its RemoveButton (spec/tag-group.md). */
|
|
59
|
+
declare function TagGroupTagCell(props: PartProps<Record<string, never>>): import("react").ReactNode;
|
|
60
|
+
/** spec/tag-group.md */
|
|
61
|
+
declare const TagGroup: {
|
|
62
|
+
Root: typeof TagGroupRoot;
|
|
63
|
+
Label: typeof TagGroupLabel;
|
|
64
|
+
List: typeof TagGroupList;
|
|
65
|
+
Tag: typeof TagGroupTag;
|
|
66
|
+
TagCell: typeof TagGroupTagCell;
|
|
67
|
+
RemoveButton: typeof TagGroupRemoveButton;
|
|
68
|
+
};
|
|
69
|
+
export { TagGroupRootState as a, TagGroupListState as c, TagGroupRootProps as i, TagGroupTagProps as n, TagGroupSelectionMode as o, TagGroupTagState as r, TagGroupRemoveButtonState as s, TagGroup as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as ChangeDetails } from "./change-details-CPSkPCNw.js";
|
|
2
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
3
|
+
import { RovingOrientation, RovingOrientation as RovingOrientation$1 } from "@fragiola/primitives/collection";
|
|
4
|
+
interface ToggleGroupState {
|
|
5
|
+
value: string[];
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
orientation: RovingOrientation$1;
|
|
9
|
+
}
|
|
10
|
+
interface ToggleGroupProps extends PartProps<ToggleGroupState> {
|
|
11
|
+
/** The values of the pressed toggles (controlled). */
|
|
12
|
+
value?: readonly string[];
|
|
13
|
+
/** The values pressed at first (default `[]`). */
|
|
14
|
+
defaultValue?: readonly string[];
|
|
15
|
+
/** Every change of the pressed values (reason `none`). */
|
|
16
|
+
onValueChange?: (value: string[], details: ChangeDetails) => void;
|
|
17
|
+
/** Several toggles may be pressed (default `false`). */
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
/** Every toggle is disabled. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** The arrow keys' axis (default `"horizontal"`); a Toolbar's inside one. */
|
|
22
|
+
orientation?: RovingOrientation$1;
|
|
23
|
+
/** The arrows wrap from the last toggle to the first and back (default `true`). */
|
|
24
|
+
loopFocus?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Toggles sharing one value (spec/toggle-group.md, Base UI's ToggleGroup with the APG toolbar's
|
|
28
|
+
* keys): one tab stop, the arrows move the focus. Inside a Toolbar it opens no roving focus of
|
|
29
|
+
* its own: its Toggles are the toolbar's items (spec/toolbar.md, "Nested composites").
|
|
30
|
+
*/
|
|
31
|
+
declare function ToggleGroup({ value: valueProp, defaultValue, onValueChange, multiple, disabled: disabledProp, orientation: orientationProp, loopFocus, ...props }: ToggleGroupProps): import("react").JSX.Element;
|
|
32
|
+
export { ToggleGroupState as i, ToggleGroup as n, ToggleGroupProps as r, RovingOrientation as t };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { t as ChangeDetails } from "./change-details-CPSkPCNw.js";
|
|
2
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
3
|
+
import "@fragiola/primitives/number";
|
|
4
|
+
/** The state every part renders with (spec/number-field.md, "State attributes and ARIA"). */
|
|
5
|
+
interface NumberFieldState {
|
|
6
|
+
/** The value: a number, or `null` while empty. */
|
|
7
|
+
value: number | null;
|
|
8
|
+
/** The Input's text. */
|
|
9
|
+
inputValue: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
required: boolean;
|
|
13
|
+
scrubbing: boolean;
|
|
14
|
+
}
|
|
15
|
+
type NumberFieldDecrementProps = PartProps<NumberFieldState>;
|
|
16
|
+
/**
|
|
17
|
+
* Steps the value down, once or held (spec/number-field.md, "Pointer"); out of the tab order, its
|
|
18
|
+
* name the consumer's.
|
|
19
|
+
*/
|
|
20
|
+
declare function NumberFieldDecrement(props: NumberFieldDecrementProps): import("react").ReactNode;
|
|
21
|
+
type NumberFieldGroupProps = PartProps<NumberFieldState>;
|
|
22
|
+
/** Groups the Input with its buttons (`role="group"`, spec/number-field.md). */
|
|
23
|
+
declare function NumberFieldGroup(props: NumberFieldGroupProps): import("react").ReactNode;
|
|
24
|
+
type NumberFieldIncrementProps = PartProps<NumberFieldState>;
|
|
25
|
+
/**
|
|
26
|
+
* Steps the value up, once or held (spec/number-field.md, "Pointer"); out of the tab order, its
|
|
27
|
+
* name the consumer's.
|
|
28
|
+
*/
|
|
29
|
+
declare function NumberFieldIncrement(props: NumberFieldIncrementProps): import("react").ReactNode;
|
|
30
|
+
type NumberFieldInputProps = PartProps<NumberFieldState>;
|
|
31
|
+
/** The `spinbutton`: a text input with the formatted value (spec/number-field.md, the APG). */
|
|
32
|
+
declare function NumberFieldInput(props: NumberFieldInputProps): import("react").ReactNode;
|
|
33
|
+
interface NumberFieldRootProps extends PartProps<NumberFieldState> {
|
|
34
|
+
/** A number, or `null` while empty. */
|
|
35
|
+
value?: number | null;
|
|
36
|
+
defaultValue?: number | null;
|
|
37
|
+
onValueChange?: (value: number | null, details: ChangeDetails) => void;
|
|
38
|
+
min?: number;
|
|
39
|
+
max?: number;
|
|
40
|
+
/** The amount of a step (default `1`). */
|
|
41
|
+
step?: number;
|
|
42
|
+
/** The amount of a step with Alt (default `0.1`). */
|
|
43
|
+
smallStep?: number;
|
|
44
|
+
/** The amount of a step with Shift, Page Up and Page Down (default `10`). */
|
|
45
|
+
largeStep?: number;
|
|
46
|
+
/** A step from a value off the grid goes to the grid's next point. */
|
|
47
|
+
snapOnStep?: boolean;
|
|
48
|
+
/** A typed value outside `[min, max]` is clamped on blur (default `true`). */
|
|
49
|
+
clampOnBlur?: boolean;
|
|
50
|
+
/** How the Input writes the value; default: the plain number in the locale. */
|
|
51
|
+
format?: Intl.NumberFormatOptions;
|
|
52
|
+
/** The locale of the format and the parsing (BCP 47; default: the runtime's). */
|
|
53
|
+
locale?: string;
|
|
54
|
+
/** The mouse wheel steps the value over the focused Input. */
|
|
55
|
+
allowWheelScrub?: boolean;
|
|
56
|
+
required?: boolean;
|
|
57
|
+
readOnly?: boolean;
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
name?: string;
|
|
60
|
+
/** The Input's `id`. */
|
|
61
|
+
id?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Holds a NumberField's value, its text and its hidden form input (spec/number-field.md, the APG
|
|
65
|
+
* spinbutton).
|
|
66
|
+
*/
|
|
67
|
+
declare function NumberFieldRoot({ value: valueProp, defaultValue, onValueChange, min, max, step, smallStep, largeStep, snapOnStep, clampOnBlur, format, locale, allowWheelScrub, required, readOnly, disabled: disabledProp, name, id: idProp, children, ...props }: NumberFieldRootProps): import("react").JSX.Element;
|
|
68
|
+
interface NumberFieldScrubAreaProps extends PartProps<NumberFieldState> {
|
|
69
|
+
/** The axis the pointer scrubs along (default `"horizontal"`). */
|
|
70
|
+
direction?: "horizontal" | "vertical";
|
|
71
|
+
/** The pixels one step takes (default `2`). */
|
|
72
|
+
pixelSensitivity?: number;
|
|
73
|
+
}
|
|
74
|
+
/** A press dragged along it steps the value (spec/number-field.md, "Pointer": scrub). */
|
|
75
|
+
declare function NumberFieldScrubArea({ direction, pixelSensitivity, ...props }: NumberFieldScrubAreaProps): import("react").ReactNode;
|
|
76
|
+
type NumberFieldScrubAreaCursorProps = PartProps<NumberFieldState>;
|
|
77
|
+
/**
|
|
78
|
+
* The virtual cursor of a locked scrub (spec/number-field.md, "Pointer"), in a portal into `body`:
|
|
79
|
+
* rendered only while a mouse scrubs with the pointer locked.
|
|
80
|
+
*/
|
|
81
|
+
declare function NumberFieldScrubAreaCursor(props: NumberFieldScrubAreaCursorProps): import("react").ReactPortal | null;
|
|
82
|
+
/** spec/number-field.md */
|
|
83
|
+
declare const NumberField: {
|
|
84
|
+
Root: typeof NumberFieldRoot;
|
|
85
|
+
Group: typeof NumberFieldGroup;
|
|
86
|
+
Input: typeof NumberFieldInput;
|
|
87
|
+
Increment: typeof NumberFieldIncrement;
|
|
88
|
+
Decrement: typeof NumberFieldDecrement;
|
|
89
|
+
ScrubArea: typeof NumberFieldScrubArea;
|
|
90
|
+
ScrubAreaCursor: typeof NumberFieldScrubAreaCursor;
|
|
91
|
+
};
|
|
92
|
+
export { NumberFieldInputProps as a, NumberFieldDecrementProps as c, NumberFieldRootProps as i, NumberFieldState as l, NumberFieldScrubAreaCursorProps as n, NumberFieldIncrementProps as o, NumberFieldScrubAreaProps as r, NumberFieldGroupProps as s, NumberField as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
2
|
+
import { Color, Color as Color$1, ColorSpace, HsbColor, HslColor, RgbColor } from "@fragiola/primitives/color";
|
|
3
|
+
/** What a ColorSwatch renders with (spec/color-swatch.md). */
|
|
4
|
+
interface ColorSwatchState {
|
|
5
|
+
/** The color it shows. */
|
|
6
|
+
color: Color$1;
|
|
7
|
+
}
|
|
8
|
+
interface ColorSwatchProps extends PartProps<ColorSwatchState> {
|
|
9
|
+
/** The color it shows (default: an enclosing ColorPicker's, else transparent black). */
|
|
10
|
+
color?: Color$1 | string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A preview of a color (spec/color-swatch.md): an `img` the app names (else named by the color's
|
|
14
|
+
* CSS text), its color and its opaque color as CSS variables a recipe draws over a checkerboard.
|
|
15
|
+
*/
|
|
16
|
+
declare function ColorSwatch({ color: colorProp, ...props }: ColorSwatchProps): import("react").ReactNode;
|
|
17
|
+
export { RgbColor as a, ColorSwatchState as c, HslColor as i, ColorSpace as n, ColorSwatch as o, HsbColor as r, ColorSwatchProps as s, Color as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
2
|
+
interface FieldsetState {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}
|
|
5
|
+
interface FieldsetRootProps extends PartProps<FieldsetState> {
|
|
6
|
+
/** Disables the fieldset and every field inside it (a parent Fieldset's `disabled` too). */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** A native `fieldset`, a `group` named by its Legend, that disables its fields (spec/fieldset.md). */
|
|
10
|
+
declare function FieldsetRoot({ disabled: disabledProp, ...props }: FieldsetRootProps): import("react").JSX.Element;
|
|
11
|
+
interface FieldsetLegendProps extends PartProps<FieldsetState> {
|
|
12
|
+
id?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Names its Fieldset (`aria-labelledby`): a `div`, not a native `legend` (spec/fieldset.md). */
|
|
15
|
+
declare function FieldsetLegend({ id: idProp, ...props }: FieldsetLegendProps): import("react").ReactNode;
|
|
16
|
+
/** spec/fieldset.md */
|
|
17
|
+
declare const Fieldset: {
|
|
18
|
+
Root: typeof FieldsetRoot;
|
|
19
|
+
Legend: typeof FieldsetLegend;
|
|
20
|
+
};
|
|
21
|
+
export { FieldsetState as i, FieldsetLegendProps as n, FieldsetRootProps as r, Fieldset as t };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { t as OverlayPortalProps } from "./use-overlay-portal-D8GjZ-m7.js";
|
|
2
|
+
import { n as OverlayTriggerRootProps, t as OverlayRootProps } from "./use-overlay-root-BDO5E_0S.js";
|
|
3
|
+
import { t as OverlayTriggerProps } from "./use-overlay-trigger-PP99t2ZF.js";
|
|
4
|
+
import { t as PositionerProps } from "./use-positioner-BpxM4U5Y.js";
|
|
5
|
+
import { r as FocusTarget } from "./change-details-CPSkPCNw.js";
|
|
6
|
+
import { t as OverlayHandle } from "./overlay-handle-DzzlzKqP.js";
|
|
7
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
8
|
+
import { ReactNode } from "react";
|
|
9
|
+
import { Align, Side } from "@fragiola/primitives/positioning";
|
|
10
|
+
/** Points at the anchor; placed along the popup's edge by the positioner. */
|
|
11
|
+
declare function PopoverArrow(props: PartProps<{
|
|
12
|
+
side: string;
|
|
13
|
+
align: string;
|
|
14
|
+
}>): import("react").ReactNode;
|
|
15
|
+
declare function PopoverClose(props: PartProps<Record<string, never>>): import("react").ReactNode;
|
|
16
|
+
declare function PopoverDescription(props: PartProps<Record<string, never>>): import("react").ReactNode;
|
|
17
|
+
/** A Popover's handle: its detached Triggers and imperative opening (spec/popover.md). */
|
|
18
|
+
interface PopoverHandle<Payload = unknown> extends OverlayHandle<Payload> {
|
|
19
|
+
readonly component: "popover";
|
|
20
|
+
}
|
|
21
|
+
/** Creates a Popover handle (`Popover.createHandle`), for Triggers outside the Root. */
|
|
22
|
+
declare function createPopoverHandle<Payload = unknown>(): PopoverHandle<Payload>;
|
|
23
|
+
interface PopoverPopupState {
|
|
24
|
+
open: boolean;
|
|
25
|
+
side: string;
|
|
26
|
+
align: string;
|
|
27
|
+
}
|
|
28
|
+
interface PopoverPopupProps extends PartProps<PopoverPopupState> {
|
|
29
|
+
/** Focused on open (default: the first tabbable element, else the popup; `false`: none). */
|
|
30
|
+
initialFocus?: FocusTarget;
|
|
31
|
+
/** Focused when focus returns on close (default: the trigger). */
|
|
32
|
+
finalFocus?: FocusTarget;
|
|
33
|
+
}
|
|
34
|
+
/** The non-modal popover (spec/popover.md): not trapped, it closes when focus leaves it. */
|
|
35
|
+
declare function PopoverPopup({ initialFocus, finalFocus, ...props }: PopoverPopupProps): import("react").ReactNode;
|
|
36
|
+
interface PopoverPortalProps extends OverlayPortalProps {}
|
|
37
|
+
declare function PopoverPortal(props: PopoverPortalProps): import("react").ReactNode;
|
|
38
|
+
interface PopoverPositionerState {
|
|
39
|
+
open: boolean;
|
|
40
|
+
side: string;
|
|
41
|
+
align: string;
|
|
42
|
+
}
|
|
43
|
+
interface PopoverPositionerProps extends PartProps<PopoverPositionerState>, PositionerProps {}
|
|
44
|
+
/** Places the popup next to its anchor (spec/popover.md, "Positioning"). */
|
|
45
|
+
declare function PopoverPositioner({ side, align, sideOffset, alignOffset, collisionPadding, anchor, ...props }: PopoverPositionerProps): import("react").ReactNode;
|
|
46
|
+
interface PopoverRootProps<Payload = unknown> extends OverlayRootProps, OverlayTriggerRootProps {
|
|
47
|
+
/** Connects Triggers rendered outside the Root (spec/popover.md, "Detached triggers"). */
|
|
48
|
+
handle?: PopoverHandle<Payload>;
|
|
49
|
+
/** The content, or a function of the active trigger's payload. */
|
|
50
|
+
children?: ReactNode | ((state: {
|
|
51
|
+
payload: Payload | undefined;
|
|
52
|
+
}) => ReactNode);
|
|
53
|
+
}
|
|
54
|
+
/** Holds the popover's state; renders no element (spec/popover.md). */
|
|
55
|
+
declare function PopoverRoot<Payload = unknown>({ children, handle, ...props }: PopoverRootProps<Payload>): import("react").JSX.Element;
|
|
56
|
+
declare function PopoverTitle(props: PartProps<Record<string, never>>): import("react").ReactNode;
|
|
57
|
+
interface PopoverTriggerState {
|
|
58
|
+
open: boolean;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface PopoverTriggerProps<Payload = unknown> extends PartProps<PopoverTriggerState>, OverlayTriggerProps<PopoverHandle<Payload>, Payload> {
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Toggles the popover and anchors it; with a `handle`, from anywhere in the page. While open, Tab
|
|
66
|
+
* from the active trigger enters the popup (spec/popover.md).
|
|
67
|
+
*/
|
|
68
|
+
declare function PopoverTrigger<Payload = unknown>({ disabled, handle, payload, id: idProp, ...props }: PopoverTriggerProps<Payload>): import("react").ReactNode;
|
|
69
|
+
/** spec/popover.md */
|
|
70
|
+
declare const Popover: {
|
|
71
|
+
Root: typeof PopoverRoot;
|
|
72
|
+
Trigger: typeof PopoverTrigger;
|
|
73
|
+
Portal: typeof PopoverPortal;
|
|
74
|
+
Positioner: typeof PopoverPositioner;
|
|
75
|
+
Popup: typeof PopoverPopup;
|
|
76
|
+
Arrow: typeof PopoverArrow;
|
|
77
|
+
Title: typeof PopoverTitle;
|
|
78
|
+
Description: typeof PopoverDescription;
|
|
79
|
+
Close: typeof PopoverClose;
|
|
80
|
+
createHandle: typeof createPopoverHandle;
|
|
81
|
+
};
|
|
82
|
+
export { PopoverTriggerState as a, PopoverPositionerState as c, PopoverPopupState as d, PopoverHandle as f, PopoverTriggerProps as i, PopoverPortalProps as l, Side as n, PopoverRootProps as o, createPopoverHandle as p, Popover as r, PopoverPositionerProps as s, Align as t, PopoverPopupProps as u };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { t as ChangeDetails } from "./change-details-CPSkPCNw.js";
|
|
2
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
3
|
+
import { Color, Color as Color$1, ColorSpace, HsbColor, HslColor, RgbColor } from "@fragiola/primitives/color";
|
|
4
|
+
interface ColorSwatchPickerItemState {
|
|
5
|
+
color: Color$1;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
highlighted: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface ColorSwatchPickerItemProps extends PartProps<ColorSwatchPickerItemState> {
|
|
11
|
+
/** The color it selects. */
|
|
12
|
+
value: Color$1 | string;
|
|
13
|
+
/** Takes focus, never the selection. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** An `option` of the palette, focusable with a roving `tabindex` (spec/color-swatch-picker.md). */
|
|
17
|
+
declare function ColorSwatchPickerItem({ value, disabled: disabledProp, ...props }: ColorSwatchPickerItemProps): import("react").ReactNode;
|
|
18
|
+
interface ColorSwatchPickerRootState {
|
|
19
|
+
/** The selected color, or `null`. */
|
|
20
|
+
value: Color$1 | null;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface ColorSwatchPickerRootProps extends PartProps<ColorSwatchPickerRootState> {
|
|
24
|
+
value?: Color$1 | string | null;
|
|
25
|
+
defaultValue?: Color$1 | string | null;
|
|
26
|
+
onValueChange?: (value: Color$1 | null, details: ChangeDetails) => void;
|
|
27
|
+
/** Every option is disabled and none takes focus. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
name?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A palette of swatches for choosing one color (spec/color-swatch-picker.md, the APG listbox in
|
|
33
|
+
* single selection): its roving focus, the arrows along and between its rows, its hidden input.
|
|
34
|
+
*/
|
|
35
|
+
declare function ColorSwatchPickerRoot({ value: valueProp, defaultValue: defaultValueProp, onValueChange, disabled: disabledProp, name, children, ...props }: ColorSwatchPickerRootProps): import("react").JSX.Element;
|
|
36
|
+
/** spec/color-swatch-picker.md */
|
|
37
|
+
declare const ColorSwatchPicker: {
|
|
38
|
+
Root: typeof ColorSwatchPickerRoot;
|
|
39
|
+
Item: typeof ColorSwatchPickerItem;
|
|
40
|
+
};
|
|
41
|
+
export { RgbColor as a, ColorSwatchPickerRootState as c, HslColor as i, ColorSwatchPickerItemProps as l, ColorSpace as n, ColorSwatchPicker as o, HsbColor as r, ColorSwatchPickerRootProps as s, Color as t, ColorSwatchPickerItemState as u };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as ChangeDetails } from "./change-details-CPSkPCNw.js";
|
|
2
|
+
import "./render-element-Pwuv2wsL.js";
|
|
3
|
+
import { a as DateFieldInput, r as DateFieldRootSharedProps, t as DateFieldSegment } from "./date-field-segment-BoS-ohDh.js";
|
|
4
|
+
import { DateSegment, SegmentGranularity, SegmentGranularity as SegmentGranularity$1, SegmentType } from "@fragiola/primitives/segments";
|
|
5
|
+
import { PlainTime, PlainTime as PlainTime$1 } from "@fragiola/primitives/time";
|
|
6
|
+
interface TimeFieldRootProps extends DateFieldRootSharedProps {
|
|
7
|
+
/** A `PlainTime`; `null` while a segment is a placeholder. */
|
|
8
|
+
value?: PlainTime$1 | null;
|
|
9
|
+
defaultValue?: PlainTime$1 | null;
|
|
10
|
+
onValueChange?: (value: PlainTime$1 | null, details: ChangeDetails) => void;
|
|
11
|
+
/** `hour`, `minute` (the default) or `second`. */
|
|
12
|
+
granularity?: Exclude<SegmentGranularity$1, "day">;
|
|
13
|
+
/** What a placeholder segment's first step gives; default: midnight. */
|
|
14
|
+
placeholderValue?: PlainTime$1;
|
|
15
|
+
/** Times before it are invalid. */
|
|
16
|
+
min?: PlainTime$1;
|
|
17
|
+
/** Times after it are invalid. */
|
|
18
|
+
max?: PlainTime$1;
|
|
19
|
+
}
|
|
20
|
+
/** A time of day typed in segments (spec/date-field.md, TimeField). */
|
|
21
|
+
declare function TimeFieldRoot({ value, defaultValue, onValueChange, granularity, placeholderValue, min, max, ...props }: TimeFieldRootProps): import("react").JSX.Element;
|
|
22
|
+
/** spec/date-field.md: a time typed in segments, on DateField's Input and Segment */
|
|
23
|
+
declare const TimeField: {
|
|
24
|
+
Root: typeof TimeFieldRoot;
|
|
25
|
+
Input: typeof DateFieldInput;
|
|
26
|
+
Segment: typeof DateFieldSegment;
|
|
27
|
+
};
|
|
28
|
+
export { TimeField as a, SegmentType as i, PlainTime as n, TimeFieldRootProps as o, SegmentGranularity as r, DateSegment as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as VirtualListProps } from "./use-virtual-rows-BQFqR0_e.js";
|
|
2
|
+
import { a as CommandListState } from "./parts-DoQQN1Io.js";
|
|
3
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
4
|
+
import { ReactNode } from "react";
|
|
5
|
+
import { CommandEntry, CommandEntry as CommandEntry$1 } from "@fragiola/primitives/command";
|
|
6
|
+
interface CommandVirtualListProps<Entry extends CommandEntry$1 = CommandEntry$1> extends Omit<PartProps<CommandListState>, "children">, VirtualListProps {
|
|
7
|
+
/** The entries: the List filters them with the Root's text and `filter`. */
|
|
8
|
+
items: readonly Entry[];
|
|
9
|
+
/** A `Command.Item` for each matching entry in view. */
|
|
10
|
+
children: (entry: Entry, index: number) => ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Command's List rendering only the matching Items in view (spec/command.md, "Virtual list"):
|
|
14
|
+
* the ends, the highlighted Item with its neighbours and the best match stay rendered, so the
|
|
15
|
+
* Input's keys and the highlight behave as with every Item rendered.
|
|
16
|
+
*/
|
|
17
|
+
declare function CommandVirtualList<Entry extends CommandEntry$1 = CommandEntry$1>({ items, children, itemSize, measure, overscan, loading, onLoadMore, ref, ...props }: CommandVirtualListProps<Entry>): import("react").JSX.Element;
|
|
18
|
+
/** spec/command.md, "Virtual list" */
|
|
19
|
+
declare const CommandVirtual: {
|
|
20
|
+
List: typeof CommandVirtualList;
|
|
21
|
+
};
|
|
22
|
+
export { CommandVirtual as n, CommandVirtualListProps as r, CommandEntry as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { t as ChangeDetails } from "./change-details-CPSkPCNw.js";
|
|
2
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
3
|
+
import { Color, Color as Color$1, ColorSpace, HsbColor, HslColor, RgbColor } from "@fragiola/primitives/color";
|
|
4
|
+
/** The state every color wheel part shares. */
|
|
5
|
+
interface ColorWheelState {
|
|
6
|
+
/** The value, in the wheel's space. */
|
|
7
|
+
color: Color$1;
|
|
8
|
+
hue: number;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
dragging: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ColorWheelRootProps extends PartProps<ColorWheelState> {
|
|
13
|
+
value?: Color$1 | string;
|
|
14
|
+
defaultValue?: Color$1 | string;
|
|
15
|
+
onValueChange?: (value: Color$1, details: ChangeDetails) => void;
|
|
16
|
+
/** When a drag ends, or after a key changed the value. */
|
|
17
|
+
onValueCommit?: (value: Color$1, details: ChangeDetails) => void;
|
|
18
|
+
/** The space of the hue (default: the value's, else hsb). */
|
|
19
|
+
colorSpace?: "hsl" | "hsb";
|
|
20
|
+
/** The ring's outer radius, in px (default 100). */
|
|
21
|
+
outerRadius?: number;
|
|
22
|
+
/** The ring's inner radius, in px (default 75). */
|
|
23
|
+
innerRadius?: number;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
name?: string;
|
|
26
|
+
/** The locale of the hue's text (BCP 47; default: the runtime's). */
|
|
27
|
+
locale?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Holds a color wheel's value: the interactive square around the ring, and the hidden input with
|
|
31
|
+
* the color as hex (spec/color-wheel.md, the APG slider on a ring).
|
|
32
|
+
*/
|
|
33
|
+
declare function ColorWheelRoot({ value: valueProp, defaultValue: defaultValueProp, onValueChange, onValueCommit, colorSpace, outerRadius, innerRadius, disabled: disabledProp, name, locale, children, ...props }: ColorWheelRootProps): import("react").JSX.Element;
|
|
34
|
+
/** The `slider`: the hue, on the ring's middle circle (spec/color-wheel.md). */
|
|
35
|
+
declare function ColorWheelThumb(props: PartProps<ColorWheelState>): import("react").ReactNode;
|
|
36
|
+
/** The ring: its conic gradient, for the recipe to draw (spec/color-wheel.md). */
|
|
37
|
+
declare function ColorWheelTrack(props: PartProps<ColorWheelState>): import("react").ReactNode;
|
|
38
|
+
/** spec/color-wheel.md */
|
|
39
|
+
declare const ColorWheel: {
|
|
40
|
+
Root: typeof ColorWheelRoot;
|
|
41
|
+
Track: typeof ColorWheelTrack;
|
|
42
|
+
Thumb: typeof ColorWheelThumb;
|
|
43
|
+
};
|
|
44
|
+
export { RgbColor as a, ColorWheelState as c, HslColor as i, ColorSpace as n, ColorWheel as o, HsbColor as r, ColorWheelRootProps as s, Color as t };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { t as PartProps } from "./render-element-Pwuv2wsL.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { ProgressStatus, ProgressStatus as ProgressStatus$1 } from "@fragiola/primitives/range";
|
|
4
|
+
interface ProgressState {
|
|
5
|
+
/** The clamped value, `null` when indeterminate. */
|
|
6
|
+
value: number | null;
|
|
7
|
+
min: number;
|
|
8
|
+
max: number;
|
|
9
|
+
status: ProgressStatus$1;
|
|
10
|
+
}
|
|
11
|
+
type ProgressIndicatorProps = PartProps<ProgressState>;
|
|
12
|
+
/**
|
|
13
|
+
* The filled part, from the inline start (spec/progress.md): its structural style sets its
|
|
14
|
+
* inline size, and `--progress-indicator-size`; none while indeterminate.
|
|
15
|
+
*/
|
|
16
|
+
declare function ProgressIndicator(props: ProgressIndicatorProps): import("react").ReactNode;
|
|
17
|
+
interface ProgressLabelProps extends PartProps<ProgressState> {
|
|
18
|
+
id?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Names the progress bar (`aria-labelledby`, spec/progress.md). */
|
|
21
|
+
declare function ProgressLabel({ id: idProp, ...props }: ProgressLabelProps): import("react").ReactNode;
|
|
22
|
+
interface ProgressRootProps extends PartProps<ProgressState> {
|
|
23
|
+
/** A number, or `null` for an indeterminate progress; clamped to `[min, max]`. */
|
|
24
|
+
value: number | null;
|
|
25
|
+
min?: number;
|
|
26
|
+
max?: number;
|
|
27
|
+
/** How the value is written; default: a percentage of the range. */
|
|
28
|
+
format?: Intl.NumberFormatOptions;
|
|
29
|
+
/** The locale of `format` (BCP 47; default: the runtime's). */
|
|
30
|
+
locale?: string;
|
|
31
|
+
/** The Root's `aria-valuetext` instead of the formatted value. */
|
|
32
|
+
getAriaValueText?: (formattedValue: string, value: number | null) => string;
|
|
33
|
+
}
|
|
34
|
+
/** The `progressbar`: holds the value, its status and its formatted text (spec/progress.md). */
|
|
35
|
+
declare function ProgressRoot({ value: valueProp, min, max, format, locale, getAriaValueText, ...props }: ProgressRootProps): import("react").JSX.Element;
|
|
36
|
+
type ProgressTrackProps = PartProps<ProgressState>;
|
|
37
|
+
/** The rail the Indicator fills (spec/progress.md). */
|
|
38
|
+
declare function ProgressTrack(props: ProgressTrackProps): import("react").ReactNode;
|
|
39
|
+
interface ProgressValueProps extends Omit<PartProps<ProgressState>, "children"> {
|
|
40
|
+
/** Its content: a node, or a function of the formatted value and the value. */
|
|
41
|
+
children?: ReactNode | ((formattedValue: string, value: number | null) => ReactNode);
|
|
42
|
+
}
|
|
43
|
+
/** Shows the formatted value, empty while indeterminate (spec/progress.md). */
|
|
44
|
+
declare function ProgressValue({ children, ...props }: ProgressValueProps): ReactNode;
|
|
45
|
+
/** spec/progress.md */
|
|
46
|
+
declare const Progress: {
|
|
47
|
+
Root: typeof ProgressRoot;
|
|
48
|
+
Label: typeof ProgressLabel;
|
|
49
|
+
Value: typeof ProgressValue;
|
|
50
|
+
Track: typeof ProgressTrack;
|
|
51
|
+
Indicator: typeof ProgressIndicator;
|
|
52
|
+
};
|
|
53
|
+
export { ProgressRootProps as a, ProgressState as c, ProgressTrackProps as i, Progress as n, ProgressLabelProps as o, ProgressValueProps as r, ProgressIndicatorProps as s, ProgressStatus as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsyncListLoad, AsyncListLoad as AsyncListLoad$1, AsyncListPage, AsyncListRequest, AsyncListState, AsyncListState as AsyncListState$1, AsyncListStatus } from "@fragiola/primitives/async-list";
|
|
2
|
+
interface UseAsyncListOptions<Item, Cursor> {
|
|
3
|
+
/** Loads a page: `{ signal, filterText, cursor }` → `{ items, cursor? }`. */
|
|
4
|
+
load: AsyncListLoad$1<Item, Cursor>;
|
|
5
|
+
/** The first filter text (default `""`). */
|
|
6
|
+
filterText?: string;
|
|
7
|
+
}
|
|
8
|
+
interface AsyncListResult<Item> extends AsyncListState$1<Item> {
|
|
9
|
+
/** `status` is `loading` or `loading-more`. */
|
|
10
|
+
loading: boolean;
|
|
11
|
+
reload: () => void;
|
|
12
|
+
loadMore: () => void;
|
|
13
|
+
setFilterText: (text: string) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* An async list in React state (spec/virtual-lists.md, "The mechanisms"): the toolkit's
|
|
17
|
+
* `createAsyncList`, loading its first page once mounted and aborting the load in flight when
|
|
18
|
+
* unmounted. The first render (on a server too) is `loading`, with no items.
|
|
19
|
+
*/
|
|
20
|
+
declare function useAsyncList<Item, Cursor = unknown>(options: UseAsyncListOptions<Item, Cursor>): AsyncListResult<Item>;
|
|
21
|
+
export { AsyncListStatus as a, useAsyncList as c, AsyncListState as i, AsyncListPage as n, AsyncListResult as o, AsyncListRequest as r, UseAsyncListOptions as s, AsyncListLoad as t };
|