@fragiola/primitives-vue 0.0.0-stage → 0.1.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/CHANGELOG.md +67 -0
- package/LICENSE +21 -0
- package/README.md +41 -2
- package/dist/accordion-CmKuKHkK.js +278 -0
- package/dist/accordion-CmKuKHkK.js.map +1 -0
- package/dist/accordion.d.ts +4 -0
- package/dist/accordion.js +1 -0
- package/dist/alert-dialog-CPG51QOk.js +38 -0
- package/dist/alert-dialog-CPG51QOk.js.map +1 -0
- package/dist/alert-dialog.d.ts +9 -0
- package/dist/alert-dialog.js +1 -0
- package/dist/aspect-ratio-Ba7GaRnV.js +37 -0
- package/dist/aspect-ratio-Ba7GaRnV.js.map +1 -0
- package/dist/aspect-ratio.d.ts +3 -0
- package/dist/aspect-ratio.js +1 -0
- package/dist/async-list-Dc8wqcxe.js +39 -0
- package/dist/async-list-Dc8wqcxe.js.map +1 -0
- package/dist/async-list.d.ts +2 -0
- package/dist/async-list.js +1 -0
- package/dist/autocomplete-virtual-D_2Wuih7.js +55 -0
- package/dist/autocomplete-virtual-D_2Wuih7.js.map +1 -0
- package/dist/autocomplete-virtual.d.ts +2 -0
- package/dist/autocomplete-virtual.js +3 -0
- package/dist/autocomplete.d.ts +6 -0
- package/dist/autocomplete.js +1 -0
- package/dist/avatar-DdDGa6x7.js +166 -0
- package/dist/avatar-DdDGa6x7.js.map +1 -0
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.js +1 -0
- package/dist/breadcrumbs-BFAjlnC_.js +131 -0
- package/dist/breadcrumbs-BFAjlnC_.js.map +1 -0
- package/dist/breadcrumbs.d.ts +3 -0
- package/dist/breadcrumbs.js +1 -0
- package/dist/button-DVUcUCXc.js +56 -0
- package/dist/button-DVUcUCXc.js.map +1 -0
- package/dist/button-attributes-Ue6sUse5.js +83 -0
- package/dist/button-attributes-Ue6sUse5.js.map +1 -0
- package/dist/button.d.ts +3 -0
- package/dist/button.js +1 -0
- package/dist/calendar-preset-Bjc7rcNX.js +84 -0
- package/dist/calendar-preset-Bjc7rcNX.js.map +1 -0
- package/dist/calendar-preset.d.ts +3 -0
- package/dist/calendar-preset.js +3 -0
- package/dist/calendar-prev-button-jluYmM-3.js +307 -0
- package/dist/calendar-prev-button-jluYmM-3.js.map +1 -0
- package/dist/calendar-root-base-C9dfkl55.js +310 -0
- package/dist/calendar-root-base-C9dfkl55.js.map +1 -0
- package/dist/calendar-view-Djy5iHGK.js +160 -0
- package/dist/calendar-view-Djy5iHGK.js.map +1 -0
- package/dist/calendar-view.d.ts +4 -0
- package/dist/calendar-view.js +4 -0
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +1 -0
- package/dist/carousel-BOacnCmz.js +553 -0
- package/dist/carousel-BOacnCmz.js.map +1 -0
- package/dist/carousel.d.ts +4 -0
- package/dist/carousel.js +1 -0
- package/dist/cascade-select-B-Nf6eOA.js +697 -0
- package/dist/cascade-select-B-Nf6eOA.js.map +1 -0
- package/dist/cascade-select.d.ts +6 -0
- package/dist/cascade-select.js +1 -0
- package/dist/change-details-Bc4-Xzdm.d.ts +37 -0
- package/dist/checkbox-D5NvqFgS.js +230 -0
- package/dist/checkbox-D5NvqFgS.js.map +1 -0
- package/dist/checkbox-group-C3XftlZd.js +104 -0
- package/dist/checkbox-group-C3XftlZd.js.map +1 -0
- package/dist/checkbox-group-context-C0Z5sWM1.js +5 -0
- package/dist/checkbox-group-context-C0Z5sWM1.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-BM-4-lTv.js +195 -0
- package/dist/clipboard-BM-4-lTv.js.map +1 -0
- package/dist/clipboard.d.ts +4 -0
- package/dist/clipboard.js +1 -0
- package/dist/collapsible-DSCxhlQN.js +158 -0
- package/dist/collapsible-DSCxhlQN.js.map +1 -0
- package/dist/collapsible.d.ts +4 -0
- package/dist/collapsible.js +1 -0
- package/dist/color-area-uEHPo-Nq.js +350 -0
- package/dist/color-area-uEHPo-Nq.js.map +1 -0
- package/dist/color-area.d.ts +4 -0
- package/dist/color-area.js +1 -0
- package/dist/color-field-Di2IbTa3.js +384 -0
- package/dist/color-field-Di2IbTa3.js.map +1 -0
- package/dist/color-field.d.ts +4 -0
- package/dist/color-field.js +1 -0
- package/dist/color-picker-BgFgq5R0.js +311 -0
- package/dist/color-picker-BgFgq5R0.js.map +1 -0
- package/dist/color-picker-binding-CJ-Cbxbj.js +5 -0
- package/dist/color-picker-binding-CJ-Cbxbj.js.map +1 -0
- package/dist/color-picker-popover-Dx6LX0V3.js +233 -0
- package/dist/color-picker-popover-Dx6LX0V3.js.map +1 -0
- package/dist/color-picker-popover.d.ts +6 -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-BCqoolnY.js +410 -0
- package/dist/color-slider-BCqoolnY.js.map +1 -0
- package/dist/color-slider.d.ts +4 -0
- package/dist/color-slider.js +1 -0
- package/dist/color-swatch-C-8IN28V.js +54 -0
- package/dist/color-swatch-C-8IN28V.js.map +1 -0
- package/dist/color-swatch-picker-CU1wrhjX.js +312 -0
- package/dist/color-swatch-picker-CU1wrhjX.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-F_BoXKON.js +284 -0
- package/dist/color-wheel-F_BoXKON.js.map +1 -0
- package/dist/color-wheel.d.ts +4 -0
- package/dist/color-wheel.js +1 -0
- package/dist/combobox-virtual-DTRTVq5N.js +56 -0
- package/dist/combobox-virtual-DTRTVq5N.js.map +1 -0
- package/dist/combobox-virtual.d.ts +2 -0
- package/dist/combobox-virtual.js +3 -0
- package/dist/combobox.d.ts +6 -0
- package/dist/combobox.js +1 -0
- package/dist/command-virtual-LoTBDEY5.js +59 -0
- package/dist/command-virtual-LoTBDEY5.js.map +1 -0
- package/dist/command-virtual.d.ts +3 -0
- package/dist/command-virtual.js +3 -0
- package/dist/command.d.ts +4 -0
- package/dist/command.js +1 -0
- package/dist/context-menu-zdHIGS9E.js +151 -0
- package/dist/context-menu-zdHIGS9E.js.map +1 -0
- package/dist/context-menu.d.ts +7 -0
- package/dist/context-menu.js +1 -0
- package/dist/date-field-pgSTZiPb.js +78 -0
- package/dist/date-field-pgSTZiPb.js.map +1 -0
- package/dist/date-field-root-base-CYLuAykm.js +212 -0
- package/dist/date-field-root-base-CYLuAykm.js.map +1 -0
- package/dist/date-field.d.ts +4 -0
- package/dist/date-field.js +1 -0
- package/dist/date-picker-input-CiuuRiWZ.js +16 -0
- package/dist/date-picker-input-CiuuRiWZ.js.map +1 -0
- package/dist/date-picker-input-root-base-ExPSLeKw.js +318 -0
- package/dist/date-picker-input-root-base-ExPSLeKw.js.map +1 -0
- package/dist/date-picker-input.d.ts +4 -0
- package/dist/date-picker-input.js +3 -0
- package/dist/date-picker-trigger-C2BlzvfR.js +349 -0
- package/dist/date-picker-trigger-C2BlzvfR.js.map +1 -0
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +1 -0
- package/dist/date-range-field-Bygmkl5c.js +80 -0
- package/dist/date-range-field-Bygmkl5c.js.map +1 -0
- package/dist/date-range-field-input-CivpQMYd.js +69 -0
- package/dist/date-range-field-input-CivpQMYd.js.map +1 -0
- package/dist/date-range-field-root-base-BP26TSWz.js +267 -0
- package/dist/date-range-field-root-base-BP26TSWz.js.map +1 -0
- package/dist/date-range-field.d.ts +4 -0
- package/dist/date-range-field.js +1 -0
- package/dist/date-range-picker-input-BUNCCXUY.js +17 -0
- package/dist/date-range-picker-input-BUNCCXUY.js.map +1 -0
- package/dist/date-range-picker-input.d.ts +4 -0
- package/dist/date-range-picker-input.js +3 -0
- package/dist/date-range-picker.d.ts +7 -0
- package/dist/date-range-picker.js +1 -0
- package/dist/dialog-MNjIMCfA.js +38 -0
- package/dist/dialog-MNjIMCfA.js.map +1 -0
- package/dist/dialog-root-base-jbZipaoQ.js +329 -0
- package/dist/dialog-root-base-jbZipaoQ.js.map +1 -0
- package/dist/dialog-viewport-tYqWTs9Q.d.ts +54 -0
- package/dist/dialog.d.ts +9 -0
- package/dist/dialog.js +1 -0
- package/dist/direction-CN_deiZU.js +30 -0
- package/dist/direction-CN_deiZU.js.map +1 -0
- package/dist/direction-context-D-C_P6Lm.js +19 -0
- package/dist/direction-context-D-C_P6Lm.js.map +1 -0
- package/dist/direction.d.ts +2 -0
- package/dist/direction.js +1 -0
- package/dist/drawer-BcnuGtEt.js +357 -0
- package/dist/drawer-BcnuGtEt.js.map +1 -0
- package/dist/drawer.d.ts +9 -0
- package/dist/drawer.js +1 -0
- package/dist/drop-zone-vFJ5Kvsy.js +98 -0
- package/dist/drop-zone-vFJ5Kvsy.js.map +1 -0
- package/dist/drop-zone.d.ts +4 -0
- package/dist/drop-zone.js +1 -0
- package/dist/editable-CabzXgiN.js +436 -0
- package/dist/editable-CabzXgiN.js.map +1 -0
- package/dist/editable.d.ts +4 -0
- package/dist/editable.js +1 -0
- package/dist/field-DQ2d5nhC.js +397 -0
- package/dist/field-DQ2d5nhC.js.map +1 -0
- package/dist/field.d.ts +4 -0
- package/dist/field.js +1 -0
- package/dist/fieldset-CmmDzOPs.js +80 -0
- package/dist/fieldset-CmmDzOPs.js.map +1 -0
- package/dist/fieldset-context-DtEOoG6M.js +5 -0
- package/dist/fieldset-context-DtEOoG6M.js.map +1 -0
- package/dist/fieldset.d.ts +3 -0
- package/dist/fieldset.js +1 -0
- package/dist/file-upload-_Hh-STdv.js +644 -0
- package/dist/file-upload-_Hh-STdv.js.map +1 -0
- package/dist/file-upload.d.ts +4 -0
- package/dist/file-upload.js +1 -0
- package/dist/form-context-DBnVT1lw.js +5 -0
- package/dist/form-context-DBnVT1lw.js.map +1 -0
- package/dist/form-s9HijjTL.js +92 -0
- package/dist/form-s9HijjTL.js.map +1 -0
- package/dist/form.d.ts +3 -0
- package/dist/form.js +1 -0
- package/dist/hover-card-rmd0fD17.js +355 -0
- package/dist/hover-card-rmd0fD17.js.map +1 -0
- package/dist/hover-card.d.ts +9 -0
- package/dist/hover-card.js +1 -0
- package/dist/index-5WtjXdX9.d.ts +63 -0
- package/dist/index-5eBkkEtv.d.ts +36 -0
- package/dist/index-B-vqAG6g.d.ts +33 -0
- package/dist/index-B1uYYVtV.d.ts +18 -0
- package/dist/index-B8E3X1CK.d.ts +66 -0
- package/dist/index-B8Ufhgzu.d.ts +36 -0
- package/dist/index-BJz7OWbi.d.ts +88 -0
- package/dist/index-BMjRueuv.d.ts +40 -0
- package/dist/index-BP7Tmb0E.d.ts +95 -0
- package/dist/index-Bbb1Zgwo.d.ts +50 -0
- package/dist/index-BdJFU5tH.d.ts +28 -0
- package/dist/index-BdfnRo-h.d.ts +55 -0
- package/dist/index-BniQvFN-.d.ts +38 -0
- package/dist/index-Bt0B-8RV.d.ts +14 -0
- package/dist/index-BuWJcRPC.d.ts +18 -0
- package/dist/index-Byf0GNd9.d.ts +41 -0
- package/dist/index-BzHLkAWU.d.ts +35 -0
- package/dist/index-C-QYKtWy.d.ts +28 -0
- package/dist/index-C7nh2Oil.d.ts +40 -0
- package/dist/index-CDKebSlA.d.ts +41 -0
- package/dist/index-CFPqV6qJ.d.ts +72 -0
- package/dist/index-CRJv_zWm.d.ts +37 -0
- package/dist/index-CTzUalDO.d.ts +76 -0
- package/dist/index-CZHLD5cJ.d.ts +17 -0
- package/dist/index-Cgwn5qgy.d.ts +88 -0
- package/dist/index-Ch4h1DFC.d.ts +55 -0
- package/dist/index-Cj3B9gY_.d.ts +50 -0
- package/dist/index-Cj6NwCBD.d.ts +44 -0
- package/dist/index-CkDThwop.d.ts +21 -0
- package/dist/index-Cn-D14iz.d.ts +13 -0
- package/dist/index-CpTiLSql.d.ts +53 -0
- package/dist/index-CqP363e5.d.ts +118 -0
- package/dist/index-Cv4dRdEa.d.ts +72 -0
- package/dist/index-CyI637MF.d.ts +37 -0
- package/dist/index-D11YCkvR.d.ts +42 -0
- package/dist/index-D3yyJGzf.d.ts +74 -0
- package/dist/index-D5PbKxcs.d.ts +26 -0
- package/dist/index-DAYklR-H.d.ts +18 -0
- package/dist/index-DIZSgXHM.d.ts +79 -0
- package/dist/index-DZckp3H0.d.ts +37 -0
- package/dist/index-DaqoBvQf.d.ts +56 -0
- package/dist/index-Df9i45Gr.d.ts +65 -0
- package/dist/index-DqI6n06W.d.ts +59 -0
- package/dist/index-Drp7svmT.d.ts +30 -0
- package/dist/index-DxsUcSGT.d.ts +99 -0
- package/dist/index-Dyyi-1mv.d.ts +35 -0
- package/dist/index-I2ewgOGz.d.ts +76 -0
- package/dist/index-JGhlANKo.d.ts +24 -0
- package/dist/index-KASc7z5u.d.ts +38 -0
- package/dist/index-LTcmDERY.d.ts +65 -0
- package/dist/index-Mf2RPgmw.d.ts +38 -0
- package/dist/index-NdY27G_d.d.ts +58 -0
- package/dist/index-QO79pDtI.d.ts +70 -0
- package/dist/index-S0FIwOSw.d.ts +59 -0
- package/dist/index-UxsyZS_A.d.ts +23 -0
- package/dist/index-W8aOtVIu.d.ts +40 -0
- package/dist/index-WC9xwMaX.d.ts +34 -0
- package/dist/index-Xwb9OtVU.d.ts +7 -0
- package/dist/index-ZWJJ2V_J.d.ts +49 -0
- package/dist/index-_Q_N8ZbU.d.ts +35 -0
- package/dist/index-bC3hHzam.d.ts +101 -0
- package/dist/index-baY49J-s.d.ts +15 -0
- package/dist/index-dCTvA7uS.d.ts +20 -0
- package/dist/index-mhpoLESL.d.ts +77 -0
- package/dist/index-p3t0BKd4.d.ts +22 -0
- package/dist/index-sgaMj_3p.d.ts +69 -0
- package/dist/index-tSLNRqTo.d.ts +33 -0
- package/dist/index-t_lSQgLA.d.ts +1346 -0
- package/dist/index-uL1dEAhG.d.ts +28 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +106 -0
- package/dist/label-Ce-gIayi.js +35 -0
- package/dist/label-Ce-gIayi.js.map +1 -0
- package/dist/label.d.ts +3 -0
- package/dist/label.js +1 -0
- package/dist/labelled-part-DB2rXJFG.js +56 -0
- package/dist/labelled-part-DB2rXJFG.js.map +1 -0
- package/dist/link-CZ3ISaPX.js +42 -0
- package/dist/link-CZ3ISaPX.js.map +1 -0
- package/dist/link-attributes-D9UusWws.js +29 -0
- package/dist/link-attributes-D9UusWws.js.map +1 -0
- package/dist/link.d.ts +3 -0
- package/dist/link.js +1 -0
- package/dist/listbox-virtual-He6BWlPj.js +291 -0
- package/dist/listbox-virtual-He6BWlPj.js.map +1 -0
- package/dist/listbox-virtual.d.ts +5 -0
- package/dist/listbox-virtual.js +3 -0
- package/dist/listbox.d.ts +4 -0
- package/dist/listbox.js +1 -0
- package/dist/live-region-style-9ofmajhO.js +46 -0
- package/dist/live-region-style-9ofmajhO.js.map +1 -0
- package/dist/menu-D7TVxPdb.js +144 -0
- package/dist/menu-D7TVxPdb.js.map +1 -0
- package/dist/menu-bar-context-k5vMlwmW.js +13 -0
- package/dist/menu-bar-context-k5vMlwmW.js.map +1 -0
- package/dist/menu-submenu-trigger-ClI2Pm4X.js +885 -0
- package/dist/menu-submenu-trigger-ClI2Pm4X.js.map +1 -0
- package/dist/menu-submenu-trigger-DNH8_uUB.d.ts +127 -0
- package/dist/menu.d.ts +10 -0
- package/dist/menu.js +1 -0
- package/dist/menubar-CQn3AOiQ.js +212 -0
- package/dist/menubar-CQn3AOiQ.js.map +1 -0
- package/dist/menubar.d.ts +3 -0
- package/dist/menubar.js +1 -0
- package/dist/meter-7Qd_WaUY.js +202 -0
- package/dist/meter-7Qd_WaUY.js.map +1 -0
- package/dist/meter.d.ts +3 -0
- package/dist/meter.js +1 -0
- package/dist/month-calendar-root-base-VcD8ZNW5.js +354 -0
- package/dist/month-calendar-root-base-VcD8ZNW5.js.map +1 -0
- package/dist/month-calendar.d.ts +5 -0
- package/dist/month-calendar.js +1 -0
- package/dist/month-picker-DzOYqW1S.js +15 -0
- package/dist/month-picker-DzOYqW1S.js.map +1 -0
- package/dist/month-picker-root-base-ByMK_Mfq.js +158 -0
- package/dist/month-picker-root-base-ByMK_Mfq.js.map +1 -0
- package/dist/month-picker.d.ts +7 -0
- package/dist/month-picker.js +3 -0
- package/dist/month-range-calendar-CJAWu1-Z.js +18 -0
- package/dist/month-range-calendar-CJAWu1-Z.js.map +1 -0
- package/dist/month-range-calendar.d.ts +5 -0
- package/dist/month-range-calendar.js +3 -0
- package/dist/month-range-picker-CRJDG2HG.js +15 -0
- package/dist/month-range-picker-CRJDG2HG.js.map +1 -0
- package/dist/month-range-picker.d.ts +8 -0
- package/dist/month-range-picker.js +3 -0
- package/dist/multiple-calendar-BIb2zfBH.js +176 -0
- package/dist/multiple-calendar-BIb2zfBH.js.map +1 -0
- package/dist/multiple-calendar.d.ts +5 -0
- package/dist/multiple-calendar.js +3 -0
- package/dist/navigation-menu-COTxGol_.js +727 -0
- package/dist/navigation-menu-COTxGol_.js.map +1 -0
- package/dist/navigation-menu.d.ts +5 -0
- package/dist/navigation-menu.js +1 -0
- package/dist/number-field-CqxEnwiS.js +581 -0
- package/dist/number-field-CqxEnwiS.js.map +1 -0
- package/dist/number-field.d.ts +4 -0
- package/dist/number-field.js +1 -0
- package/dist/otp-field-DIDuypLU.js +420 -0
- package/dist/otp-field-DIDuypLU.js.map +1 -0
- package/dist/otp-field.d.ts +4 -0
- package/dist/otp-field.js +1 -0
- package/dist/overlay-handle-DUptsQOb.js +42 -0
- package/dist/overlay-handle-DUptsQOb.js.map +1 -0
- package/dist/overlay-handle-DzC9LJQo.d.ts +16 -0
- package/dist/overlay-portal-Cmn7Dt7E.d.ts +30 -0
- package/dist/overlay-portal-ZNtXmoFd.js +32 -0
- package/dist/overlay-portal-ZNtXmoFd.js.map +1 -0
- package/dist/pagination-BNUjFYxK.js +264 -0
- package/dist/pagination-BNUjFYxK.js.map +1 -0
- package/dist/pagination.d.ts +4 -0
- package/dist/pagination.js +1 -0
- package/dist/parts--mC44S1N.js +1023 -0
- package/dist/parts--mC44S1N.js.map +1 -0
- package/dist/parts-BP00C3Q5.js +874 -0
- package/dist/parts-BP00C3Q5.js.map +1 -0
- package/dist/parts-CMh29O5y.js +14 -0
- package/dist/parts-CMh29O5y.js.map +1 -0
- package/dist/parts-CZqNGRqe.js +20 -0
- package/dist/parts-CZqNGRqe.js.map +1 -0
- package/dist/parts-DMy2yQZs.js +254 -0
- package/dist/parts-DMy2yQZs.js.map +1 -0
- package/dist/parts-DVv0aov9.js +14 -0
- package/dist/parts-DVv0aov9.js.map +1 -0
- package/dist/parts-M3ThgZzl.js +489 -0
- package/dist/parts-M3ThgZzl.js.map +1 -0
- package/dist/parts-stPOp8dr.js +451 -0
- package/dist/parts-stPOp8dr.js.map +1 -0
- package/dist/parts-uxRkRrFr.js +668 -0
- package/dist/parts-uxRkRrFr.js.map +1 -0
- package/dist/password-input-DC39W-do.js +231 -0
- package/dist/password-input-DC39W-do.js.map +1 -0
- package/dist/password-input.d.ts +4 -0
- package/dist/password-input.js +1 -0
- package/dist/popover-BaQTGAYJ.js +328 -0
- package/dist/popover-BaQTGAYJ.js.map +1 -0
- package/dist/popover.d.ts +9 -0
- package/dist/popover.js +1 -0
- package/dist/progress-DH1Xrj73.js +219 -0
- package/dist/progress-DH1Xrj73.js.map +1 -0
- package/dist/progress.d.ts +3 -0
- package/dist/progress.js +1 -0
- package/dist/public-component-AV8E7mGp.js +8 -0
- package/dist/public-component-AV8E7mGp.js.map +1 -0
- package/dist/public-component-DYpU9aDh.d.ts +33 -0
- package/dist/radio-B9YCSnFs.js +159 -0
- package/dist/radio-B9YCSnFs.js.map +1 -0
- package/dist/radio-group-CmSF4FTc.js +173 -0
- package/dist/radio-group-CmSF4FTc.js.map +1 -0
- package/dist/radio-group-context-C196JZ9D.js +5 -0
- package/dist/radio-group-context-C196JZ9D.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-BDbNdL75.js +20 -0
- package/dist/range-calendar-BDbNdL75.js.map +1 -0
- package/dist/range-calendar.d.ts +5 -0
- package/dist/range-calendar.js +1 -0
- package/dist/rating-oC2t52av.js +351 -0
- package/dist/rating-oC2t52av.js.map +1 -0
- package/dist/rating.d.ts +4 -0
- package/dist/rating.js +1 -0
- package/dist/render-part-B5XVbHaS.js +36 -0
- package/dist/render-part-B5XVbHaS.js.map +1 -0
- package/dist/render-part-BaTKiWBp.d.ts +28 -0
- package/dist/render.d.ts +3 -0
- package/dist/render.js +3 -0
- package/dist/roving-context-LyHQFJqZ.js +32 -0
- package/dist/roving-context-LyHQFJqZ.js.map +1 -0
- package/dist/scroll-area-_EApTP33.js +328 -0
- package/dist/scroll-area-_EApTP33.js.map +1 -0
- package/dist/scroll-area.d.ts +3 -0
- package/dist/scroll-area.js +1 -0
- package/dist/search-field-DJIr926A.js +221 -0
- package/dist/search-field-DJIr926A.js.map +1 -0
- package/dist/search-field.d.ts +4 -0
- package/dist/search-field.js +1 -0
- package/dist/segmented-control-BMvmqBpR.js +389 -0
- package/dist/segmented-control-BMvmqBpR.js.map +1 -0
- package/dist/segmented-control.d.ts +4 -0
- package/dist/segmented-control.js +1 -0
- package/dist/select-virtual-BwZrX4bh.js +53 -0
- package/dist/select-virtual-BwZrX4bh.js.map +1 -0
- package/dist/select-virtual.d.ts +3 -0
- package/dist/select-virtual.js +3 -0
- package/dist/select.d.ts +6 -0
- package/dist/select.js +1 -0
- package/dist/separator-SgHyzEHB.js +42 -0
- package/dist/separator-SgHyzEHB.js.map +1 -0
- package/dist/separator.d.ts +3 -0
- package/dist/separator.js +1 -0
- package/dist/slider-DU5Cx7yj.js +539 -0
- package/dist/slider-DU5Cx7yj.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-Dl_mMqRB.js +363 -0
- package/dist/steps-Dl_mMqRB.js.map +1 -0
- package/dist/steps.d.ts +4 -0
- package/dist/steps.js +1 -0
- package/dist/switch-CT9QBKOs.js +183 -0
- package/dist/switch-CT9QBKOs.js.map +1 -0
- package/dist/switch.d.ts +4 -0
- package/dist/switch.js +1 -0
- package/dist/tabs-BhVbQ7AV.js +369 -0
- package/dist/tabs-BhVbQ7AV.js.map +1 -0
- package/dist/tabs.d.ts +4 -0
- package/dist/tabs.js +1 -0
- package/dist/tag-group-DdpjWmzb.js +422 -0
- package/dist/tag-group-DdpjWmzb.js.map +1 -0
- package/dist/tag-group.d.ts +4 -0
- package/dist/tag-group.js +1 -0
- package/dist/tags-input-Iw3mST3A.js +627 -0
- package/dist/tags-input-Iw3mST3A.js.map +1 -0
- package/dist/tags-input.d.ts +4 -0
- package/dist/tags-input.js +1 -0
- package/dist/time-field-5Ghk_4SZ.js +76 -0
- package/dist/time-field-5Ghk_4SZ.js.map +1 -0
- package/dist/time-field.d.ts +4 -0
- package/dist/time-field.js +1 -0
- package/dist/time-range-field-DNOZQK4F.js +77 -0
- package/dist/time-range-field-DNOZQK4F.js.map +1 -0
- package/dist/time-range-field.d.ts +4 -0
- package/dist/time-range-field.js +1 -0
- package/dist/toast-DBKxX79M.js +426 -0
- package/dist/toast-DBKxX79M.js.map +1 -0
- package/dist/toast.d.ts +3 -0
- package/dist/toast.js +1 -0
- package/dist/toggle-Cca0PFQv.js +101 -0
- package/dist/toggle-Cca0PFQv.js.map +1 -0
- package/dist/toggle-group-DTUrLX_H.js +102 -0
- package/dist/toggle-group-DTUrLX_H.js.map +1 -0
- package/dist/toggle-group-context-gMEC8r-Z.js +5 -0
- package/dist/toggle-group-context-gMEC8r-Z.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-WU8JwFd0.js +272 -0
- package/dist/toolbar-WU8JwFd0.js.map +1 -0
- package/dist/toolbar.d.ts +3 -0
- package/dist/toolbar.js +1 -0
- package/dist/tooltip-C1kKsTSh.js +358 -0
- package/dist/tooltip-C1kKsTSh.js.map +1 -0
- package/dist/tooltip.d.ts +9 -0
- package/dist/tooltip.js +1 -0
- package/dist/use-color-picker-binding-BrG-whys.js +32 -0
- package/dist/use-color-picker-binding-BrG-whys.js.map +1 -0
- package/dist/use-controllable-B46G4v0A.js +30 -0
- package/dist/use-controllable-B46G4v0A.js.map +1 -0
- package/dist/use-field-control-CdYqr0dK.js +109 -0
- package/dist/use-field-control-CdYqr0dK.js.map +1 -0
- package/dist/use-overlay-root-BkyTQIsX.js +296 -0
- package/dist/use-overlay-root-BkyTQIsX.js.map +1 -0
- package/dist/use-overlay-trigger-D9OXZ_6K.d.ts +12 -0
- package/dist/use-overlay-trigger-KM35pX0a.js +61 -0
- package/dist/use-overlay-trigger-KM35pX0a.js.map +1 -0
- package/dist/use-panel-transition-DF7f1nmF.js +112 -0
- package/dist/use-panel-transition-DF7f1nmF.js.map +1 -0
- package/dist/use-panel-transition-r_BlVRob.d.ts +2 -0
- package/dist/use-positioner-BD24G6q1.js +73 -0
- package/dist/use-positioner-BD24G6q1.js.map +1 -0
- package/dist/use-positioner-D98pYl_K.d.ts +12 -0
- package/dist/use-presence-BcvBOTDI.d.ts +3 -0
- package/dist/use-required-context-CPpEkr4Q.js +11 -0
- package/dist/use-required-context-CPpEkr4Q.js.map +1 -0
- package/dist/use-roving-composite-CW0mE_VU.js +71 -0
- package/dist/use-roving-composite-CW0mE_VU.js.map +1 -0
- package/dist/use-roving-item-B9Cil5Rq.js +42 -0
- package/dist/use-roving-item-B9Cil5Rq.js.map +1 -0
- package/dist/use-segment-group-CAlwM3KP.js +304 -0
- package/dist/use-segment-group-CAlwM3KP.js.map +1 -0
- package/dist/use-virtual-rows-DesBexmk.js +142 -0
- package/dist/use-virtual-rows-DesBexmk.js.map +1 -0
- package/dist/virtual-list-BNvYqnFf.js +49 -0
- package/dist/virtual-list-BNvYqnFf.js.map +1 -0
- package/dist/year-calendar-cYl3WHEM.js +18 -0
- package/dist/year-calendar-cYl3WHEM.js.map +1 -0
- package/dist/year-calendar.d.ts +5 -0
- package/dist/year-calendar.js +3 -0
- package/dist/year-picker-DYQZbF1h.js +15 -0
- package/dist/year-picker-DYQZbF1h.js.map +1 -0
- package/dist/year-picker.d.ts +8 -0
- package/dist/year-picker.js +3 -0
- package/dist/year-range-calendar-ODgfmdiv.js +18 -0
- package/dist/year-range-calendar-ODgfmdiv.js.map +1 -0
- package/dist/year-range-calendar.d.ts +5 -0
- package/dist/year-range-calendar.js +3 -0
- package/dist/year-range-picker-DKXlcy7I.js +15 -0
- package/dist/year-range-picker-DKXlcy7I.js.map +1 -0
- package/dist/year-range-picker.d.ts +8 -0
- package/dist/year-range-picker.js +3 -0
- package/package.json +548 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parts-uxRkRrFr.js","names":[],"sources":["../src/components/select/select-context.ts","../src/components/select/select-group.ts","../src/components/select/select-group-label.ts","../src/components/select/select-item.ts","../src/components/select/select-item-indicator.ts","../src/components/select/select-item-text.ts","../src/components/select/select-list.ts","../src/components/select/select-popup.ts","../src/components/select/select-portal.ts","../src/components/select/select-positioner.ts","../src/components/select/select-root.ts","../src/components/select/select-separator.ts","../src/components/select/select-trigger.ts","../src/components/select/select-value.ts","../src/components/select/parts.ts"],"sourcesContent":["import type { Align, Side } from \"@fragiola/primitives/positioning\";\nimport type { ComputedRef, InjectionKey, Ref } from \"vue\";\nimport type { FieldControlBinding } from \"../../composables/use-field-control.ts\";\nimport type { OverlayRoot } from \"../../composables/use-overlay-root.ts\";\nimport type { ChangeReason } from \"../../utils/change-details.ts\";\n\n/** One item of the Root's `items` (spec/select.md, \"API\"). */\nexport interface SelectItemData {\n value: string;\n label: string;\n disabled?: boolean;\n}\n\n/** An Item that registered itself (a Select without `items`: spec/select.md, \"API\"). */\nexport interface RegisteredItem extends SelectItemData {\n element: HTMLElement;\n}\n\nexport interface SelectContext extends OverlayRoot {\n /** The enclosing field's binding, for the trigger (spec/field.md). */\n field: FieldControlBinding;\n /** The Root's `items`, else the registered Items, in DOM order. */\n items: () => readonly SelectItemData[];\n /** Whether the Items register themselves (no `items` on the Root). */\n registers: () => boolean;\n /** Registers an Item (without `items`); returns its unregistration. */\n registerItem: (item: RegisteredItem) => () => void;\n value: ComputedRef<string | null>;\n disabled: () => boolean;\n required: () => boolean;\n /** spec/select.md, \"Modal\". */\n modal: () => boolean;\n highlighted: Ref<string | null>;\n /** Opens the list with this item highlighted. */\n openOn: (value: string | null, reason: ChangeReason, event?: Event) => void;\n /** Chooses an enabled item and closes. */\n choose: (value: string, reason: ChangeReason, event?: Event) => void;\n listId: string;\n /** The id of item `value`'s option element. */\n itemId: (value: string) => string;\n placed: Ref<{ side: Side; align: Align }>;\n}\n\nexport const SelectKey: InjectionKey<SelectContext> = Symbol(\"Select\");\n\nexport interface SelectItemState {\n selected: boolean;\n highlighted: boolean;\n disabled: boolean;\n}\n\n/** What a Group gives its GroupLabel: where the label reports its id. */\nexport const SelectGroupKey: InjectionKey<Ref<string | undefined>> =\n Symbol(\"SelectGroup\");\n\nexport const SelectItemKey: InjectionKey<ComputedRef<SelectItemState>> =\n Symbol(\"SelectItem\");\n\n/** The item to highlight when the list opens: the selected one, else the first enabled one. */\nexport function initialHighlight(\n items: readonly SelectItemData[],\n value: string | null,\n): string | null {\n if (value !== null && items.some((item) => item.value === value)) {\n return value;\n }\n return items.find((item) => !item.disabled)?.value ?? null;\n}\n","import { defineComponent, provide, ref } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { SelectGroupKey } from \"./select-context.ts\";\n\n/** A `group` of items, named by its GroupLabel (spec/select.md). */\nexport const SelectGroup: PartComponent<\n Record<never, never>,\n Record<never, never>\n> = publicComponent(\n defineComponent({\n name: \"SelectGroup\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const labelId = ref<string>();\n provide(SelectGroupKey, labelId);\n return () =>\n renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n {},\n {\n role: \"group\",\n \"aria-labelledby\": labelId.value,\n \"data-primitives-part\": \"select-group\",\n },\n );\n },\n }),\n);\n","import {\n defineComponent,\n inject,\n onBeforeUnmount,\n onMounted,\n useId,\n} from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { SelectGroupKey } from \"./select-context.ts\";\n\n/** Names its Group (spec/select.md). */\nexport const SelectGroupLabel: PartComponent<\n Record<never, never>,\n Record<never, never>\n> = publicComponent(\n defineComponent({\n name: \"SelectGroupLabel\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const labelId = inject(SelectGroupKey, null);\n const generated = useId();\n const id = () => (attrs.id as string | undefined) ?? generated;\n onMounted(() => {\n if (labelId) {\n labelId.value = id();\n }\n });\n onBeforeUnmount(() => {\n if (labelId) {\n labelId.value = undefined;\n }\n });\n return () =>\n renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n {},\n { id: id(), \"data-primitives-part\": \"select-group-label\" },\n );\n },\n }),\n);\n","import { scrollIntoViewWithin } from \"@fragiola/primitives/collection\";\nimport {\n computed,\n defineComponent,\n onBeforeUnmount,\n onMounted,\n onUpdated,\n provide,\n shallowRef,\n watch,\n} from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport type { SelectItemState } from \"./select-context.ts\";\nimport { SelectItemKey, SelectKey } from \"./select-context.ts\";\n\nexport interface SelectItemProps {\n value: string;\n /**\n * The label the Value shows and typeahead matches, without the Root's `items` (default: its\n * ItemText's text, else its text content).\n */\n label?: string;\n /** Can be highlighted, never chosen (default: the Root item's `disabled`). */\n disabled?: boolean;\n}\n\n/** An `option` (spec/select.md). */\nexport const SelectItem: PartComponent<SelectItemProps, SelectItemState> =\n publicComponent(\n defineComponent({\n name: \"SelectItem\",\n inheritAttrs: false,\n props: {\n ...asProp,\n value: { type: String, required: true },\n /** The label without the Root's `items` (default: its ItemText's text). */\n label: { type: String, default: undefined },\n /** Can be highlighted, never chosen (default: the Root item's `disabled`). */\n disabled: { type: Boolean, default: undefined },\n },\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(SelectKey, \"Select.Item\");\n const element = shallowRef<HTMLElement | null>(null);\n const setElement = elementSetter(element);\n const state = computed(() => ({\n highlighted: context.highlighted.value === props.value,\n selected: context.value.value === props.value,\n disabled:\n props.disabled ??\n context\n .items()\n .find((item) => item.value === props.value)\n ?.disabled ??\n false,\n }));\n provide(SelectItemKey, state);\n // without `items`: registers its value, label and disabled state, read once\n // rendered\n let registration: {\n value: string;\n label: string;\n disabled: boolean;\n element: HTMLElement;\n unregister: () => void;\n } | null = null;\n const register = () => {\n const node = element.value;\n if (!context.registers() || node === null) {\n registration?.unregister();\n registration = null;\n return;\n }\n const text = node.querySelector(\n '[data-primitives-part=\"select-item-text\"]',\n );\n const label = (\n props.label ??\n (text ?? node).textContent ??\n \"\"\n ).trim();\n const disabled = props.disabled ?? false;\n const previous = registration;\n if (\n previous?.label === label &&\n previous.disabled === disabled &&\n previous.value === props.value &&\n previous.element === node\n ) {\n return;\n }\n previous?.unregister();\n registration = {\n value: props.value,\n label,\n disabled,\n element: node,\n unregister: context.registerItem({\n value: props.value,\n label,\n disabled,\n element: node,\n }),\n };\n };\n onMounted(register);\n onUpdated(register);\n onBeforeUnmount(() => {\n registration?.unregister();\n registration = null;\n });\n watch(\n () =>\n [\n state.value.highlighted,\n element.value,\n context.positioner.value,\n ] as const,\n ([highlighted]) => {\n // within the popup only (a list that mounts before it is placed never\n // scrolls the page), and on mount: an item can mount already highlighted\n if (highlighted && element.value) {\n scrollIntoViewWithin(\n element.value,\n context.positioner.value,\n );\n }\n },\n { flush: \"post\", immediate: true },\n );\n return () => {\n const { highlighted, selected, disabled } = state.value;\n return renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n state.value,\n {\n role: \"option\",\n id: context.itemId(props.value),\n \"aria-selected\": selected ? \"true\" : \"false\",\n \"aria-disabled\": disabled ? \"true\" : undefined,\n \"data-primitives-part\": \"select-item\",\n ...stateAttributes({\n highlighted,\n selected,\n disabled,\n }),\n onPointermove: () => {\n if (!state.value.highlighted) {\n context.highlighted.value = props.value;\n }\n },\n // the trigger keeps DOM focus\n onPointerdown: (event: PointerEvent) =>\n event.preventDefault(),\n onClick: (event: MouseEvent) => {\n if (!state.value.disabled) {\n context.choose(\n props.value,\n \"item-press\",\n event,\n );\n }\n },\n ref: setElement,\n },\n );\n };\n },\n }),\n );\n","import { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { SelectItemKey } from \"./select-context.ts\";\n\nexport interface SelectItemIndicatorState {\n selected: boolean;\n}\n\nexport interface SelectItemIndicatorProps {\n /** Rendered while the item is not selected too. */\n keepMounted?: boolean;\n}\n\n/** Marks the selected item; hidden from assistive technologies (spec/select.md). */\nexport const SelectItemIndicator: PartComponent<\n SelectItemIndicatorProps,\n SelectItemIndicatorState\n> = publicComponent(\n defineComponent({\n name: \"SelectItemIndicator\",\n inheritAttrs: false,\n props: {\n ...asProp,\n /** Rendered while the item is not selected too. */\n keepMounted: { type: Boolean, default: false },\n },\n setup(props, { attrs, slots }) {\n const item = useRequiredContext(\n SelectItemKey,\n \"Select.ItemIndicator\",\n );\n return () => {\n const selected = item.value.selected;\n if (!selected && !props.keepMounted) {\n return null;\n }\n return renderPart(\n \"span\",\n { attrs, slots },\n props.as,\n { selected },\n {\n \"aria-hidden\": \"true\",\n \"data-primitives-part\": \"select-item-indicator\",\n },\n );\n };\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** The text of an Item that is its label (spec/select.md). */\nexport const SelectItemText: PartComponent<\n Record<never, never>,\n Record<never, never>\n> = publicComponent(\n defineComponent({\n name: \"SelectItemText\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"span\",\n { attrs, slots },\n props.as,\n {},\n { \"data-primitives-part\": \"select-item-text\" },\n );\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { SelectKey } from \"./select-context.ts\";\n\nexport interface SelectListState {\n open: boolean;\n}\n\n/** The `listbox`, named by the trigger's labels (spec/select.md). */\nexport const SelectList: PartComponent<\n Record<never, never>,\n SelectListState\n> = publicComponent(\n defineComponent({\n name: \"SelectList\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(SelectKey, \"Select.List\");\n return () =>\n renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n { open: context.open.value },\n {\n role: \"listbox\",\n id: context.listId,\n \"aria-labelledby\": context.trigger.value?.id,\n \"data-primitives-part\": \"select-list\",\n },\n );\n },\n }),\n);\n","import type { Align, Side } from \"@fragiola/primitives/positioning\";\nimport { defineComponent } from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport { SelectKey } from \"./select-context.ts\";\n\nexport interface SelectPopupState {\n open: boolean;\n side: Side;\n align: Align;\n}\n\n/** The floating container of the list (no role of its own; spec/select.md). */\nexport const SelectPopup: PartComponent<\n Record<never, never>,\n SelectPopupState\n> = publicComponent(\n defineComponent({\n name: \"SelectPopup\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(SelectKey, \"Select.Popup\");\n const setPopup = elementSetter(context.popup);\n return () => {\n const open = context.open.value;\n const status = context.presence.status.value;\n const placed = context.placed.value;\n return renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n { open, ...placed },\n {\n \"data-primitives-part\": \"select-popup\",\n ...stateAttributes({\n open,\n closed: !open,\n side: placed.side,\n align: placed.align,\n \"starting-style\": status === \"starting\",\n \"ending-style\": status === \"ending\",\n }),\n ref: setPopup,\n },\n );\n };\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type OverlayPortalProps,\n overlayPortalProps,\n useOverlayPortal,\n} from \"../../utils/overlay-portal.ts\";\nimport {\n type ContentSlots,\n type PublicComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { SelectKey } from \"./select-context.ts\";\n\nexport interface SelectPortalProps extends OverlayPortalProps {}\n\n/** Moves the content to `container` (default: the body) while mounted, or always with `keep-mounted`. */\nexport const SelectPortal: PublicComponent<SelectPortalProps, ContentSlots> =\n publicComponent(\n defineComponent({\n name: \"SelectPortal\",\n props: overlayPortalProps,\n setup(props, { slots }) {\n const context = useRequiredContext(SelectKey, \"Select.Portal\");\n return useOverlayPortal(context.presence.mounted, props, slots);\n },\n }),\n );\n","import { blockOutsidePointer } from \"@fragiola/primitives/inert\";\nimport { openOverlaySession } from \"@fragiola/primitives/overlay\";\nimport type { Align, Side } from \"@fragiola/primitives/positioning\";\nimport { lockScroll } from \"@fragiola/primitives/scroll-lock\";\nimport { defineComponent, watch } from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport type { PositionerProps } from \"../../composables/use-positioner.ts\";\nimport {\n positionerProps,\n usePositioner,\n} from \"../../composables/use-positioner.ts\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport { SelectKey } from \"./select-context.ts\";\n\n// a modal select's outside press reaches nothing: the press would leave focus on the body, so it\n// goes back to the trigger, which keeps it (spec/select.md, \"Modal\")\nconst MODAL_RETURNS_FOCUS_UNFOCUSED = new Set([\"outside-press\"]);\nconst NEVER = new Set<string>();\n\nexport interface SelectPositionerState {\n open: boolean;\n side: Side;\n align: Align;\n}\n\n/**\n * Places the list below the trigger (spec/select.md, \"Item alignment\"); the open list is a layer\n * (Escape, outside press).\n */\nexport const SelectPositioner: PartComponent<\n PositionerProps,\n SelectPositionerState\n> = publicComponent(\n defineComponent({\n name: \"SelectPositioner\",\n inheritAttrs: false,\n props: {\n ...asProp,\n ...positionerProps,\n sideOffset: { type: Number, default: 4 },\n },\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(SelectKey, \"Select.Positioner\");\n const setPositioner = elementSetter(context.positioner);\n const placed = usePositioner(\n props,\n { side: \"bottom\", align: \"start\" },\n context.trigger,\n context.positioner,\n null,\n context.presence.mounted,\n );\n watch(placed, (value) => (context.placed.value = value), {\n immediate: true,\n });\n watch(\n () => [context.open.value, context.positioner.value] as const,\n ([open, positioner], _, onCleanup) => {\n if (!open || positioner === null) {\n return;\n }\n const session = openOverlaySession(\n positioner.ownerDocument,\n {\n elements: () => [positioner],\n ignore: () => [context.trigger.value],\n dismiss: (reason, event) =>\n context.setOpen(false, reason, event),\n returnFocus: {\n when: NEVER,\n whenUnfocused: () =>\n context.modal()\n ? MODAL_RETURNS_FOCUS_UNFOCUSED\n : undefined,\n reason: () => context.lastReason.current,\n to: () => context.trigger.value,\n },\n },\n );\n onCleanup(session.end);\n },\n { flush: \"post\", immediate: true },\n );\n // spec/select.md, \"Modal\": the scroll lock and the outside pointer block, on their own, so\n // toggling `modal` while open keeps the session as it is\n watch(\n () =>\n [\n context.open.value,\n context.positioner.value,\n context.modal(),\n ] as const,\n ([open, positioner, modal], _, onCleanup) => {\n if (!open || positioner === null || !modal) {\n return;\n }\n const doc = positioner.ownerDocument;\n const unlock = lockScroll(doc);\n const unblock = blockOutsidePointer(doc);\n onCleanup(() => {\n unblock();\n unlock();\n });\n },\n { flush: \"post\", immediate: true },\n );\n return () => {\n const open = context.open.value;\n return renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n { open, ...placed.value },\n {\n role: \"presentation\",\n hidden: context.presence.mounted.value\n ? undefined\n : true,\n // a modal select blocks the pointer outside; its list takes it back\n // (spec/select.md)\n style: context.modal()\n ? { pointerEvents: \"auto\" }\n : undefined,\n \"data-primitives-part\": \"select-positioner\",\n ...stateAttributes({\n open,\n closed: !open,\n side: placed.value.side,\n align: placed.value.align,\n }),\n ref: setPositioner,\n },\n );\n };\n },\n }),\n);\n","import {\n bridgeForm,\n VISUALLY_HIDDEN_INPUT_STYLE,\n} from \"@fragiola/primitives/form\";\nimport type { Align, Side } from \"@fragiola/primitives/positioning\";\nimport {\n computed,\n defineComponent,\n Fragment,\n h,\n type PropType,\n provide,\n ref,\n shallowRef,\n useId,\n watch,\n} from \"vue\";\nimport { useControllable } from \"../../composables/use-controllable.ts\";\nimport { useFieldControl } from \"../../composables/use-field-control.ts\";\nimport {\n overlayRootEmits,\n overlayRootProps,\n useOverlayRoot,\n} from \"../../composables/use-overlay-root.ts\";\nimport type {\n ChangeDetails,\n OpenChangeDetails,\n} from \"../../utils/change-details.ts\";\nimport {\n type ContentSlots,\n type PublicComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport {\n type RegisteredItem,\n type SelectItemData,\n SelectKey,\n} from \"./select-context.ts\";\n\nexport interface SelectRootProps {\n open?: boolean;\n defaultOpen?: boolean;\n value?: string | null;\n defaultValue?: string | null;\n /**\n * Every item: the labels known while the list is closed. Without it, the Items register\n * themselves while mounted (keep the list mounted: `Portal keep-mounted`).\n */\n items?: readonly SelectItemData[];\n name?: string;\n required?: boolean;\n disabled?: boolean;\n /** spec/select.md, \"Modal\" (default `false`). */\n modal?: boolean;\n}\n\nexport type SelectRootEmits = {\n \"update:open\": (open: boolean) => true;\n openChange: (open: boolean, details: OpenChangeDetails) => true;\n openChangeComplete: (open: boolean) => true;\n \"update:value\": (value: string | null) => true;\n valueChange: (value: string | null, details: ChangeDetails) => true;\n};\n\n/** Holds the select's state (`v-model:value`, `v-model:open`); renders its hidden input (spec/select.md). */\nexport const SelectRoot: PublicComponent<\n SelectRootProps,\n ContentSlots,\n SelectRootEmits\n> = publicComponent(\n defineComponent({\n name: \"SelectRoot\",\n props: {\n ...overlayRootProps,\n value: {\n type: String as PropType<string | null>,\n default: undefined,\n },\n defaultValue: {\n type: String as PropType<string | null>,\n default: null,\n },\n /** Every item; without it, the Items register themselves while mounted. */\n items: {\n type: Array as PropType<readonly SelectItemData[]>,\n default: undefined,\n },\n name: { type: String, default: undefined },\n required: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n /**\n * Locks the page's scroll and blocks the pointer outside while open (default `false`: the\n * APG select-only combobox is non-modal; spec/select.md, \"Modal\").\n */\n modal: { type: Boolean, default: false },\n },\n emits: {\n ...overlayRootEmits,\n \"update:value\": (_value: string | null) => true,\n valueChange: (_value: string | null, _details: ChangeDetails) =>\n true,\n },\n setup(props, { emit, slots, expose }) {\n const root = useOverlayRoot(props, emit);\n // without `items`, the Items register themselves (Base UI), in DOM order\n const registered = shallowRef<readonly RegisteredItem[]>([]);\n const registerItem = (item: RegisteredItem) => {\n registered.value = [\n ...registered.value.filter(\n (entry) => entry.element !== item.element,\n ),\n item,\n ].sort((a, b) =>\n a.element.compareDocumentPosition(b.element) &\n Node.DOCUMENT_POSITION_FOLLOWING\n ? -1\n : 1,\n );\n return () => {\n registered.value = registered.value.filter(\n (entry) => entry !== item,\n );\n };\n };\n const items = (): readonly SelectItemData[] =>\n props.items ?? registered.value;\n // a template ref on the Root: `close()` and `unmount()` (spec/README.md, \"Lifecycle\")\n expose(root.actions);\n const state = useControllable<string | null, ChangeDetails>(\n () => props.value,\n props.defaultValue,\n (next, details) => {\n emit(\"update:value\", next);\n emit(\"valueChange\", next, details);\n },\n );\n const value = computed(() => state.value.value);\n const input = shallowRef<HTMLInputElement | null>(null);\n const field = useFieldControl({\n // the trigger's rendered id: the consumer's, else the generated one\n id: () => root.trigger.value?.id || root.triggerId,\n labelable: true,\n value: () => value.value,\n filled: () => value.value !== null,\n input: () => input.value,\n focusTarget: () => root.trigger.value,\n });\n const disabled = () => props.disabled || field.disabled();\n const highlighted = ref<string | null>(null);\n const baseId = useId();\n const listId = `${baseId}-list`;\n provide(SelectKey, {\n ...root,\n field,\n items,\n registers: () => props.items === undefined,\n registerItem,\n value,\n disabled,\n required: () => props.required,\n modal: () => props.modal,\n highlighted,\n openOn(entry, reason, event) {\n // highlighted only when the opening happened (a canceled one did not)\n if (root.setOpen(true, reason, event)) {\n highlighted.value = entry;\n }\n },\n choose(entry, reason, event) {\n const item = items().find(\n (candidate) => candidate.value === entry,\n );\n if (item === undefined || item.disabled) {\n return;\n }\n state.set(entry, { reason, event });\n root.setOpen(false, reason, event);\n },\n listId,\n itemId: (entry) =>\n `${baseId}-item-${items().findIndex((item) => item.value === entry)}`,\n placed: ref<{ side: Side; align: Align }>({\n side: \"bottom\",\n align: \"start\",\n }),\n });\n\n watch(\n input,\n (element, _, onCleanup) => {\n if (element === null) {\n return;\n }\n onCleanup(\n bridgeForm(element, {\n reset: () => {\n field.reset();\n state.set(props.defaultValue, {\n reason: \"none\",\n });\n element.value = props.defaultValue ?? \"\";\n },\n invalid: () => root.trigger.value,\n }),\n );\n },\n { flush: \"post\" },\n );\n return () =>\n h(Fragment, [\n slots.default?.(),\n h(\"input\", {\n ref: (element: unknown) => {\n input.value = element as HTMLInputElement | null;\n },\n \"aria-hidden\": \"true\",\n tabindex: -1,\n name: field.name() ?? props.name,\n value: value.value ?? \"\",\n required: props.required,\n disabled: disabled(),\n style: VISUALLY_HIDDEN_INPUT_STYLE,\n \"data-primitives-part\": \"select-input\",\n }),\n ]);\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\n\n/** Between items or groups; no role of its own (a `listbox` owns only groups and options). */\nexport const SelectSeparator: PartComponent<\n Record<never, never>,\n Record<never, never>\n> = publicComponent(\n defineComponent({\n name: \"SelectSeparator\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n return () =>\n renderPart(\n \"div\",\n { attrs, slots },\n props.as,\n {},\n {\n role: \"presentation\",\n \"data-orientation\": \"horizontal\",\n \"data-primitives-part\": \"select-separator\",\n },\n );\n },\n }),\n);\n","import {\n createTypeahead,\n menuKeyTarget,\n} from \"@fragiola/primitives/collection\";\nimport { defineComponent } from \"vue\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport { initialHighlight, SelectKey } from \"./select-context.ts\";\n\n// Within this time after a typed character, Space continues the typeahead instead of choosing.\nconst TYPEAHEAD_SPACE = 500;\n\nexport interface SelectTriggerState {\n open: boolean;\n disabled: boolean;\n placeholder: boolean;\n}\n\n/**\n * The select-only `combobox`: keeps DOM focus while the list is open; the highlighted item is\n * announced with `aria-activedescendant` (spec/select.md, \"Keyboard\").\n */\nexport const SelectTrigger: PartComponent<\n Record<never, never>,\n SelectTriggerState\n> = publicComponent(\n defineComponent({\n name: \"SelectTrigger\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(SelectKey, \"Select.Trigger\");\n const setTrigger = elementSetter(context.trigger);\n const typeahead = createTypeahead();\n let lastTyped = 0;\n\n const typeTo = (key: string, event: Event) => {\n const items = context.items();\n const open = context.open.value;\n const from = items.findIndex(\n (item) =>\n item.value ===\n (open\n ? context.highlighted.value\n : context.value.value),\n );\n const match = typeahead.match(\n key,\n items.map((item) => item.label),\n from,\n );\n lastTyped = Date.now();\n const target = items[match]?.value;\n if (target === undefined) {\n return;\n }\n if (open) {\n context.highlighted.value = target;\n } else {\n context.openOn(target, \"list-navigation\", event);\n }\n };\n\n const onKeydown = (event: KeyboardEvent) => {\n if (context.disabled()) {\n return;\n }\n const items = context.items();\n const open = context.open.value;\n const typing =\n event.key === \" \" &&\n Date.now() - lastTyped < TYPEAHEAD_SPACE;\n if ((event.key.length === 1 && event.key !== \" \") || typing) {\n if (event.ctrlKey || event.metaKey || event.altKey) {\n return;\n }\n event.preventDefault();\n typeTo(event.key, event);\n return;\n }\n if (!open) {\n switch (event.key) {\n case \"ArrowDown\":\n case \"ArrowUp\":\n case \"Enter\":\n case \" \":\n event.preventDefault();\n context.openOn(\n initialHighlight(items, context.value.value),\n \"list-navigation\",\n event,\n );\n return;\n case \"Home\":\n case \"End\":\n event.preventDefault();\n context.openOn(\n (event.key === \"Home\" ? items[0] : items.at(-1))\n ?.value ?? null,\n \"list-navigation\",\n event,\n );\n return;\n default:\n return;\n }\n }\n const index = items.findIndex(\n (item) => item.value === context.highlighted.value,\n );\n switch (event.key) {\n case \"ArrowDown\":\n case \"ArrowUp\":\n case \"Home\":\n case \"End\": {\n event.preventDefault();\n const next = menuKeyTarget(\n event.key,\n index,\n items.length,\n {\n loop: false,\n },\n );\n const target = next === null ? undefined : items[next];\n if (target !== undefined) {\n context.highlighted.value = target.value;\n }\n return;\n }\n case \"Enter\":\n case \" \":\n event.preventDefault();\n if (context.highlighted.value !== null) {\n context.choose(\n context.highlighted.value,\n \"item-press\",\n event,\n );\n }\n return;\n case \"Tab\": {\n // APG: Tab chooses the highlighted option, then focus moves on\n const item = items[index];\n if (item !== undefined && !item.disabled) {\n context.choose(item.value, \"focus-out\", event);\n } else {\n context.setOpen(false, \"focus-out\", event);\n }\n return;\n }\n default:\n }\n };\n\n return () => {\n const open = context.open.value;\n const disabled = context.disabled();\n const value = context.value.value;\n const highlighted = context.highlighted.value;\n const placeholder = value === null;\n return renderPart(\n \"button\",\n { attrs, slots },\n props.as,\n { open, disabled, placeholder },\n {\n type: \"button\",\n id: context.triggerId,\n role: \"combobox\",\n disabled,\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": open ? \"true\" : \"false\",\n \"aria-controls\": open ? context.listId : undefined,\n \"aria-activedescendant\":\n open && highlighted !== null\n ? context.itemId(highlighted)\n : undefined,\n \"aria-required\": context.required()\n ? \"true\"\n : undefined,\n // a modal select blocks the pointer outside; its trigger still toggles\n // (spec/select.md)\n style:\n context.modal() && open\n ? { pointerEvents: \"auto\" }\n : undefined,\n ...context.field.aria(),\n \"data-primitives-part\": \"select-trigger\",\n ...context.field.attributes(),\n ...stateAttributes({\n \"popup-open\": open,\n disabled,\n placeholder,\n }),\n onClick: (event: MouseEvent) => {\n if (context.open.value) {\n context.setOpen(false, \"trigger-press\", event);\n } else {\n context.openOn(\n initialHighlight(\n context.items(),\n context.value.value,\n ),\n \"trigger-press\",\n event,\n );\n }\n },\n onKeydown,\n onFocus: context.field.onFocus,\n onBlur: context.field.onBlur,\n ref: setTrigger,\n },\n );\n };\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport { SelectKey } from \"./select-context.ts\";\n\nexport interface SelectValueState {\n placeholder: boolean;\n}\n\nexport interface SelectValueProps {\n /** Shown while nothing is selected. */\n placeholder?: string;\n}\n\n/** The selected item's label, or the placeholder (spec/select.md). */\nexport const SelectValue: PartComponent<SelectValueProps, SelectValueState> =\n publicComponent(\n defineComponent({\n name: \"SelectValue\",\n inheritAttrs: false,\n props: {\n ...asProp,\n /** Shown while nothing is selected. */\n placeholder: { type: String, default: undefined },\n },\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(SelectKey, \"Select.Value\");\n return () => {\n // without `items`, the raw value until the selected Item has rendered (Base UI)\n const label =\n context\n .items()\n .find((item) => item.value === context.value.value)\n ?.label ??\n (context.registers()\n ? (context.value.value ?? undefined)\n : undefined);\n const placeholder = label === undefined;\n return renderPart(\n \"span\",\n { attrs, slots },\n props.as,\n { placeholder },\n {\n \"data-primitives-part\": \"select-value\",\n ...stateAttributes({ placeholder }),\n },\n () =>\n slots.default?.({ placeholder }) ??\n (placeholder ? props.placeholder : label),\n );\n };\n },\n }),\n );\n","import { SelectGroup } from \"./select-group.ts\";\nimport { SelectGroupLabel } from \"./select-group-label.ts\";\nimport { SelectItem } from \"./select-item.ts\";\nimport { SelectItemIndicator } from \"./select-item-indicator.ts\";\nimport { SelectItemText } from \"./select-item-text.ts\";\nimport { SelectList } from \"./select-list.ts\";\nimport { SelectPopup } from \"./select-popup.ts\";\nimport { SelectPortal } from \"./select-portal.ts\";\nimport { SelectPositioner } from \"./select-positioner.ts\";\nimport { SelectRoot } from \"./select-root.ts\";\nimport { SelectSeparator } from \"./select-separator.ts\";\nimport { SelectTrigger } from \"./select-trigger.ts\";\nimport { SelectValue } from \"./select-value.ts\";\n\n/** spec/select.md */\nexport const Select = {\n Root: SelectRoot,\n Trigger: SelectTrigger,\n Value: SelectValue,\n Portal: SelectPortal,\n Positioner: SelectPositioner,\n Popup: SelectPopup,\n List: SelectList,\n Item: SelectItem,\n ItemText: SelectItemText,\n ItemIndicator: SelectItemIndicator,\n Group: SelectGroup,\n GroupLabel: SelectGroupLabel,\n Separator: SelectSeparator,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AA2CA,MAAa,YAAyC,OAAO,QAAQ;;AASrE,MAAa,iBACT,OAAO,aAAa;AAExB,MAAa,gBACT,OAAO,YAAY;;AAGvB,SAAgB,iBACZ,OACA,OACa;CACb,IAAI,UAAU,QAAQ,MAAM,MAAM,SAAS,KAAK,UAAU,KAAK,GAC3D,OAAO;CAEX,OAAO,MAAM,MAAM,SAAS,CAAC,KAAK,QAAQ,CAAC,EAAE,SAAS;AAC1D;;;AC1DA,MAAa,cAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,MAAM,UAAU,IAAY;EAC5B,QAAQ,gBAAgB,OAAO;EAC/B,aACI,WACI,OACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,CAAC,GACD;GACI,MAAM;GACN,mBAAmB,QAAQ;GAC3B,wBAAwB;EAC5B,CACJ;CACR;AACJ,CAAC,CACL;;;ACnBA,MAAa,mBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,MAAM,UAAU,OAAO,gBAAgB,IAAI;EAC3C,MAAM,YAAY,MAAM;EACxB,MAAM,WAAY,MAAM,MAA6B;EACrD,gBAAgB;GACZ,IAAI,SACA,QAAQ,QAAQ,GAAG;EAE3B,CAAC;EACD,sBAAsB;GAClB,IAAI,SACA,QAAQ,QAAQ,KAAA;EAExB,CAAC;EACD,aACI,WACI,OACA;GAAE;GAAO;EAAM,GACf,MAAM,IACN,CAAC,GACD;GAAE,IAAI,GAAG;GAAG,wBAAwB;EAAqB,CAC7D;CACR;AACJ,CAAC,CACL;;;ACbA,MAAa,aACT,gBACI,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;EACH,G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G,gBAAgB;MACf,cAAc;MACd;MACA;KACJ,CAAC;KACD,UAAU,UAAsB;MAC5B,IAAI,QAAQ,KAAK,OACb,QAAQ,QAAQ,OAAO,iBAAiB,KAAK;WAE7C,QAAQ,OACJ,iBACI,QAAQ,MAAM,GACd,QAAQ,MAAM,KAClB,GACA,iBACA,KACJ;KAER;KACA;KACA,SAAS,QAAQ,MAAM;KACvB,QAAQ,QAAQ,MAAM;KACtB,KAAK;IACT,CACJ;GACJ;EACJ;CACJ,CAAC,CE9MQ;CACT,ODGA,gBACI,gBAAgB;EACZ,MAAM;EACN,cAAc;EACd,OAAO;GACH,GAAG;;GAEH,aAAa;IAAE,MAAM;IAAQ,SAAS,KAAA;GAAU;EACpD;EACA,MAAM,OAAO,EAAE,OAAO,SAAS;GAC3B,MAAM,UAAU,mBAAmB,WAAW,cAAc;GAC5D,aAAa;IAET,MAAM,QACF,QACK,MAAM,CAAC,CACP,MAAM,SAAS,KAAK,UAAU,QAAQ,MAAM,KAAK,CAAC,EACjD,UACL,QAAQ,UAAU,IACZ,QAAQ,MAAM,SAAS,KAAA,IACxB,KAAA;IACV,MAAM,cAAc,UAAU,KAAA;IAC9B,OAAO,WACH,QACA;KAAE;KAAO;IAAM,GACf,MAAM,IACN,EAAE,YAAY,GACd;KACI,wBAAwB;KACxB,GAAG,gBAAgB,EAAE,YAAY,CAAC;IACtC,SAEI,MAAM,UAAU,EAAE,YAAY,CAAC,MAC9B,cAAc,MAAM,cAAc,MAC3C;GACJ;EACJ;CACJ,CAAC,CCxCE;CACP,QAAQ;CACR,YAAY;CACZ,OAAO;CACP,MAAM;CACN,MAAM;CACN,UAAU;CACV,eAAe;CACf,OAAO;CACP,YAAY;CACZ,WAAW;AACf"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { t as useRequiredContext } from "./use-required-context-CPpEkr4Q.js";
|
|
2
|
+
import { t as publicComponent } from "./public-component-AV8E7mGp.js";
|
|
3
|
+
import { n as renderPart, t as asProp } from "./render-part-B5XVbHaS.js";
|
|
4
|
+
import { t as useControllable } from "./use-controllable-B46G4v0A.js";
|
|
5
|
+
import { n as useFieldControl } from "./use-field-control-CdYqr0dK.js";
|
|
6
|
+
import { t as elementSetter } from "./use-overlay-root-BkyTQIsX.js";
|
|
7
|
+
import { t as stateAttributes } from "./state-attributes-DhboDeMS.js";
|
|
8
|
+
import { computed, defineComponent, nextTick, provide, shallowRef, useId, watch } from "vue";
|
|
9
|
+
import { bridgeForm } from "@fragiola/primitives/form";
|
|
10
|
+
// src/components/password-input/password-input-context.ts
|
|
11
|
+
const PasswordInputKey = Symbol("PasswordInput");
|
|
12
|
+
// src/components/password-input/password-input-input.ts
|
|
13
|
+
/** The text field: `type="password"`, or `"text"` while visible (spec/password-input.md). */
|
|
14
|
+
const PasswordInputInput = publicComponent(defineComponent({
|
|
15
|
+
name: "PasswordInputInput",
|
|
16
|
+
inheritAttrs: false,
|
|
17
|
+
props: asProp,
|
|
18
|
+
setup(props, { attrs, slots }) {
|
|
19
|
+
const context = useRequiredContext(PasswordInputKey, "PasswordInput.Input");
|
|
20
|
+
const { field } = context;
|
|
21
|
+
return () => {
|
|
22
|
+
const state = context.state.value;
|
|
23
|
+
return renderPart("input", {
|
|
24
|
+
attrs,
|
|
25
|
+
slots
|
|
26
|
+
}, props.as, state, {
|
|
27
|
+
id: context.inputId(),
|
|
28
|
+
type: state.visible ? "text" : "password",
|
|
29
|
+
name: context.name(),
|
|
30
|
+
value: state.value,
|
|
31
|
+
disabled: state.disabled,
|
|
32
|
+
readonly: state.readOnly,
|
|
33
|
+
required: state.required,
|
|
34
|
+
autocapitalize: "off",
|
|
35
|
+
spellcheck: "false",
|
|
36
|
+
...field.aria(),
|
|
37
|
+
"data-primitives-part": "password-input-input",
|
|
38
|
+
...context.attributes.value,
|
|
39
|
+
...field.attributes(),
|
|
40
|
+
onInput: (event) => context.onInputText(event.target.value, event),
|
|
41
|
+
onFocus: field.onFocus,
|
|
42
|
+
onBlur: field.onBlur,
|
|
43
|
+
ref: context.setInput
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
// src/components/password-input/parts.ts
|
|
49
|
+
/** spec/password-input.md */
|
|
50
|
+
const PasswordInput = {
|
|
51
|
+
Root: publicComponent(defineComponent({
|
|
52
|
+
name: "PasswordInputRoot",
|
|
53
|
+
inheritAttrs: false,
|
|
54
|
+
props: {
|
|
55
|
+
...asProp,
|
|
56
|
+
value: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
60
|
+
defaultValue: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: ""
|
|
63
|
+
},
|
|
64
|
+
visible: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: void 0
|
|
67
|
+
},
|
|
68
|
+
defaultVisible: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
72
|
+
disabled: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false
|
|
75
|
+
},
|
|
76
|
+
readOnly: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: false
|
|
79
|
+
},
|
|
80
|
+
required: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: false
|
|
83
|
+
},
|
|
84
|
+
name: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: void 0
|
|
87
|
+
},
|
|
88
|
+
id: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: void 0
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
emits: {
|
|
94
|
+
"update:value": (_value) => true,
|
|
95
|
+
valueChange: (_value, _details) => true,
|
|
96
|
+
"update:visible": (_visible) => true,
|
|
97
|
+
visibleChange: (_visible, _details) => true
|
|
98
|
+
},
|
|
99
|
+
setup(props, { attrs, slots, emit }) {
|
|
100
|
+
const generatedId = useId();
|
|
101
|
+
const inputId = () => props.id ?? generatedId;
|
|
102
|
+
const value = useControllable(() => props.value, props.defaultValue, (next, details) => {
|
|
103
|
+
emit("update:value", next);
|
|
104
|
+
emit("valueChange", next, details);
|
|
105
|
+
});
|
|
106
|
+
const visible = useControllable(() => props.visible, props.defaultVisible, (next, details) => {
|
|
107
|
+
emit("update:visible", next);
|
|
108
|
+
emit("visibleChange", next, details);
|
|
109
|
+
});
|
|
110
|
+
const input = shallowRef(null);
|
|
111
|
+
const field = useFieldControl({
|
|
112
|
+
id: inputId,
|
|
113
|
+
labelable: true,
|
|
114
|
+
value: () => value.value.value,
|
|
115
|
+
filled: () => value.value.value !== "",
|
|
116
|
+
input: () => input.value,
|
|
117
|
+
focusTarget: () => input.value
|
|
118
|
+
});
|
|
119
|
+
const disabled = () => props.disabled || field.disabled();
|
|
120
|
+
let selection = null;
|
|
121
|
+
watch(() => visible.value.value, () => {
|
|
122
|
+
const saved = selection;
|
|
123
|
+
selection = null;
|
|
124
|
+
const element = input.value;
|
|
125
|
+
if (saved === null || element === null || saved.start === null) return;
|
|
126
|
+
element.setSelectionRange(saved.start, saved.end ?? saved.start, saved.direction ?? void 0);
|
|
127
|
+
}, { flush: "post" });
|
|
128
|
+
watch(input, (element, _, onCleanup) => {
|
|
129
|
+
if (!(element instanceof HTMLInputElement)) return;
|
|
130
|
+
const cleanup = bridgeForm(element, { reset: () => {
|
|
131
|
+
field.reset();
|
|
132
|
+
value.set(props.defaultValue, { reason: "none" });
|
|
133
|
+
visible.set(props.defaultVisible, { reason: "none" });
|
|
134
|
+
element.value = value.value.value;
|
|
135
|
+
} });
|
|
136
|
+
const form = element.form;
|
|
137
|
+
const onSubmit = (event) => {
|
|
138
|
+
if (visible.value.value) visible.set(false, {
|
|
139
|
+
reason: "none",
|
|
140
|
+
event
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
form?.addEventListener("submit", onSubmit);
|
|
144
|
+
onCleanup(() => {
|
|
145
|
+
cleanup();
|
|
146
|
+
form?.removeEventListener("submit", onSubmit);
|
|
147
|
+
});
|
|
148
|
+
}, { flush: "post" });
|
|
149
|
+
const state = computed(() => ({
|
|
150
|
+
value: value.value.value,
|
|
151
|
+
visible: visible.value.value,
|
|
152
|
+
disabled: disabled(),
|
|
153
|
+
readOnly: props.readOnly,
|
|
154
|
+
required: props.required
|
|
155
|
+
}));
|
|
156
|
+
const attributes = computed(() => stateAttributes({
|
|
157
|
+
visible: state.value.visible,
|
|
158
|
+
disabled: state.value.disabled,
|
|
159
|
+
readonly: state.value.readOnly,
|
|
160
|
+
required: state.value.required
|
|
161
|
+
}));
|
|
162
|
+
provide(PasswordInputKey, {
|
|
163
|
+
state,
|
|
164
|
+
inputId,
|
|
165
|
+
name: () => field.name() ?? props.name,
|
|
166
|
+
field,
|
|
167
|
+
attributes,
|
|
168
|
+
onInputText: (text, event) => {
|
|
169
|
+
value.set(text, {
|
|
170
|
+
reason: "input-change",
|
|
171
|
+
event
|
|
172
|
+
});
|
|
173
|
+
const element = input.value;
|
|
174
|
+
nextTick().then(() => {
|
|
175
|
+
if (element !== null && element.value !== value.value.value) element.value = value.value.value;
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
toggle: (event) => {
|
|
179
|
+
if (disabled()) return;
|
|
180
|
+
const element = input.value;
|
|
181
|
+
selection = element === null ? null : {
|
|
182
|
+
start: element.selectionStart,
|
|
183
|
+
end: element.selectionEnd,
|
|
184
|
+
direction: element.selectionDirection
|
|
185
|
+
};
|
|
186
|
+
visible.set(!visible.value.value, {
|
|
187
|
+
reason: "trigger-press",
|
|
188
|
+
event
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
setInput: elementSetter(input)
|
|
192
|
+
});
|
|
193
|
+
return () => renderPart("div", {
|
|
194
|
+
attrs,
|
|
195
|
+
slots
|
|
196
|
+
}, props.as, state.value, {
|
|
197
|
+
"data-primitives-part": "password-input-root",
|
|
198
|
+
...attributes.value,
|
|
199
|
+
...field.attributes()
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
})),
|
|
203
|
+
Input: PasswordInputInput,
|
|
204
|
+
VisibilityTrigger: publicComponent(defineComponent({
|
|
205
|
+
name: "PasswordInputVisibilityTrigger",
|
|
206
|
+
inheritAttrs: false,
|
|
207
|
+
props: asProp,
|
|
208
|
+
setup(props, { attrs, slots }) {
|
|
209
|
+
const context = useRequiredContext(PasswordInputKey, "PasswordInput.VisibilityTrigger");
|
|
210
|
+
return () => {
|
|
211
|
+
const state = context.state.value;
|
|
212
|
+
return renderPart("button", {
|
|
213
|
+
attrs,
|
|
214
|
+
slots
|
|
215
|
+
}, props.as, state, {
|
|
216
|
+
type: "button",
|
|
217
|
+
"aria-pressed": state.visible ? "true" : "false",
|
|
218
|
+
"aria-controls": context.inputId(),
|
|
219
|
+
disabled: state.disabled,
|
|
220
|
+
"data-primitives-part": "password-input-visibility-trigger",
|
|
221
|
+
...context.attributes.value,
|
|
222
|
+
onMousedown: (event) => event.preventDefault(),
|
|
223
|
+
onClick: (event) => context.toggle(event)
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
}))
|
|
228
|
+
};
|
|
229
|
+
export { PasswordInput as t };
|
|
230
|
+
|
|
231
|
+
//# sourceMappingURL=password-input-DC39W-do.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-input-DC39W-do.js","names":[],"sources":["../src/components/password-input/password-input-context.ts","../src/components/password-input/password-input-input.ts","../src/components/password-input/password-input-root.ts","../src/components/password-input/password-input-visibility-trigger.ts","../src/components/password-input/parts.ts"],"sourcesContent":["import type { ComputedRef, InjectionKey } from \"vue\";\nimport type { FieldControlBinding } from \"../../composables/use-field-control.ts\";\n\n/** The state every part renders with (spec/password-input.md, \"API\"). */\nexport interface PasswordInputState {\n value: string;\n visible: boolean;\n disabled: boolean;\n readOnly: boolean;\n required: boolean;\n}\n\nexport interface PasswordInputContext {\n state: ComputedRef<PasswordInputState>;\n inputId: () => string;\n name: () => string | undefined;\n field: FieldControlBinding;\n /** The state attributes, for every part. */\n attributes: ComputedRef<Record<string, string>>;\n onInputText: (text: string, event: Event) => void;\n /** The VisibilityTrigger's press. */\n toggle: (event: Event) => void;\n setInput: (element: unknown) => void;\n}\n\nexport const PasswordInputKey: InjectionKey<PasswordInputContext> =\n Symbol(\"PasswordInput\");\n","import { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport {\n PasswordInputKey,\n type PasswordInputState,\n} from \"./password-input-context.ts\";\n\n/** The text field: `type=\"password\"`, or `\"text\"` while visible (spec/password-input.md). */\nexport const PasswordInputInput: PartComponent<\n Record<never, never>,\n PasswordInputState\n> = publicComponent(\n defineComponent({\n name: \"PasswordInputInput\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(\n PasswordInputKey,\n \"PasswordInput.Input\",\n );\n const { field } = context;\n return () => {\n const state = context.state.value;\n return renderPart(\"input\", { attrs, slots }, props.as, state, {\n id: context.inputId(),\n type: state.visible ? \"text\" : \"password\",\n name: context.name(),\n value: state.value,\n disabled: state.disabled,\n readonly: state.readOnly,\n required: state.required,\n autocapitalize: \"off\",\n spellcheck: \"false\",\n ...field.aria(),\n \"data-primitives-part\": \"password-input-input\",\n ...context.attributes.value,\n ...field.attributes(),\n onInput: (event: Event) =>\n context.onInputText(\n (event.target as HTMLInputElement).value,\n event,\n ),\n onFocus: field.onFocus,\n onBlur: field.onBlur,\n ref: context.setInput,\n });\n };\n },\n }),\n);\n","import { bridgeForm } from \"@fragiola/primitives/form\";\nimport {\n computed,\n defineComponent,\n nextTick,\n provide,\n shallowRef,\n useId,\n watch,\n} from \"vue\";\nimport { useControllable } from \"../../composables/use-controllable.ts\";\nimport { useFieldControl } from \"../../composables/use-field-control.ts\";\nimport { elementSetter } from \"../../composables/use-overlay-root.ts\";\nimport type { ChangeDetails } from \"../../utils/change-details.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport { stateAttributes } from \"../../utils/state-attributes.ts\";\nimport {\n PasswordInputKey,\n type PasswordInputState,\n} from \"./password-input-context.ts\";\n\nexport interface PasswordInputRootProps {\n /** The text (controlled; `v-model:value`). */\n value?: string;\n defaultValue?: string;\n /** Whether the text is shown (controlled; `v-model:visible`). */\n visible?: boolean;\n defaultVisible?: boolean;\n disabled?: boolean;\n readOnly?: boolean;\n required?: boolean;\n /** The Input's `name`. */\n name?: string;\n /** The Input's `id`. */\n id?: string;\n}\n\nexport type PasswordInputRootEmits = {\n \"update:value\": (value: string) => true;\n valueChange: (value: string, details: ChangeDetails) => true;\n \"update:visible\": (visible: boolean) => true;\n visibleChange: (visible: boolean, details: ChangeDetails) => true;\n};\n\n/**\n * Holds a PasswordInput's text and whether it is shown (spec/password-input.md): its Input is the\n * form control, its VisibilityTrigger a toggle button.\n */\nexport const PasswordInputRoot: PartComponent<\n PasswordInputRootProps,\n PasswordInputState,\n PasswordInputRootEmits\n> = publicComponent(\n defineComponent({\n name: \"PasswordInputRoot\",\n inheritAttrs: false,\n props: {\n ...asProp,\n value: { type: String, default: undefined },\n defaultValue: { type: String, default: \"\" },\n visible: { type: Boolean, default: undefined },\n defaultVisible: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n readOnly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n name: { type: String, default: undefined },\n id: { type: String, default: undefined },\n },\n emits: {\n \"update:value\": (_value: string) => true,\n valueChange: (_value: string, _details: ChangeDetails) => true,\n \"update:visible\": (_visible: boolean) => true,\n visibleChange: (_visible: boolean, _details: ChangeDetails) => true,\n },\n setup(props, { attrs, slots, emit }) {\n const generatedId = useId();\n const inputId = () => props.id ?? generatedId;\n const value = useControllable<string, ChangeDetails>(\n () => props.value,\n props.defaultValue,\n (next, details) => {\n emit(\"update:value\", next);\n emit(\"valueChange\", next, details);\n },\n );\n const visible = useControllable<boolean, ChangeDetails>(\n () => props.visible,\n props.defaultVisible,\n (next, details) => {\n emit(\"update:visible\", next);\n emit(\"visibleChange\", next, details);\n },\n );\n const input = shallowRef<HTMLElement | null>(null);\n const field = useFieldControl({\n id: inputId,\n labelable: true,\n value: () => value.value.value,\n filled: () => value.value.value !== \"\",\n input: () => input.value as HTMLInputElement | null,\n focusTarget: () => input.value,\n });\n const disabled = () => props.disabled || field.disabled();\n\n // the Input's selection before its type changed, put back once it rendered\n // (spec/password-input.md, \"Focus\")\n let selection: {\n start: number | null;\n end: number | null;\n direction: \"forward\" | \"backward\" | \"none\" | null;\n } | null = null;\n watch(\n () => visible.value.value,\n () => {\n const saved = selection;\n selection = null;\n const element = input.value as HTMLInputElement | null;\n if (\n saved === null ||\n element === null ||\n saved.start === null\n ) {\n return;\n }\n element.setSelectionRange(\n saved.start,\n saved.end ?? saved.start,\n saved.direction ?? undefined,\n );\n },\n { flush: \"post\" },\n );\n\n // a form reset returns the text and the visibility to their defaults; a submission\n // hides the text (spec/password-input.md, \"Forms\")\n watch(\n input,\n (element, _, onCleanup) => {\n if (!(element instanceof HTMLInputElement)) {\n return;\n }\n const cleanup = bridgeForm(element, {\n reset: () => {\n field.reset();\n value.set(props.defaultValue, { reason: \"none\" });\n visible.set(props.defaultVisible, {\n reason: \"none\",\n });\n // the browser reset the input to its default: write the rendered\n // value back (a patch follows a change)\n element.value = value.value.value;\n },\n });\n const form = element.form;\n const onSubmit = (event: Event) => {\n if (visible.value.value) {\n visible.set(false, { reason: \"none\", event });\n }\n };\n form?.addEventListener(\"submit\", onSubmit);\n onCleanup(() => {\n cleanup();\n form?.removeEventListener(\"submit\", onSubmit);\n });\n },\n { flush: \"post\" },\n );\n\n const state = computed<PasswordInputState>(() => ({\n value: value.value.value,\n visible: visible.value.value,\n disabled: disabled(),\n readOnly: props.readOnly,\n required: props.required,\n }));\n const attributes = computed(() =>\n stateAttributes({\n visible: state.value.visible,\n disabled: state.value.disabled,\n readonly: state.value.readOnly,\n required: state.value.required,\n }),\n );\n provide(PasswordInputKey, {\n state,\n inputId,\n name: () => field.name() ?? props.name,\n field,\n attributes,\n onInputText: (text, event) => {\n value.set(text, { reason: \"input-change\", event });\n // a controlled value the consumer kept does not re-render the input\n const element = input.value as HTMLInputElement | null;\n void nextTick().then(() => {\n if (\n element !== null &&\n element.value !== value.value.value\n ) {\n element.value = value.value.value;\n }\n });\n },\n toggle: (event) => {\n if (disabled()) {\n return;\n }\n const element = input.value as HTMLInputElement | null;\n selection =\n element === null\n ? null\n : {\n start: element.selectionStart,\n end: element.selectionEnd,\n direction: element.selectionDirection,\n };\n visible.set(!visible.value.value, {\n reason: \"trigger-press\",\n event,\n });\n },\n setInput: elementSetter(input),\n });\n\n return () =>\n renderPart(\"div\", { attrs, slots }, props.as, state.value, {\n \"data-primitives-part\": \"password-input-root\",\n ...attributes.value,\n ...field.attributes(),\n });\n },\n }),\n);\n","import { defineComponent } from \"vue\";\nimport { useRequiredContext } from \"../../composables/use-required-context.ts\";\nimport {\n type PartComponent,\n publicComponent,\n} from \"../../utils/public-component.ts\";\nimport { asProp, renderPart } from \"../../utils/render-part.ts\";\nimport {\n PasswordInputKey,\n type PasswordInputState,\n} from \"./password-input-context.ts\";\n\n/**\n * The toggle button that shows and hides the text: `aria-pressed`, `aria-controls` the Input; a\n * pointer press leaves the focus where it was (spec/password-input.md, \"Focus\").\n */\nexport const PasswordInputVisibilityTrigger: PartComponent<\n Record<never, never>,\n PasswordInputState\n> = publicComponent(\n defineComponent({\n name: \"PasswordInputVisibilityTrigger\",\n inheritAttrs: false,\n props: asProp,\n setup(props, { attrs, slots }) {\n const context = useRequiredContext(\n PasswordInputKey,\n \"PasswordInput.VisibilityTrigger\",\n );\n return () => {\n const state = context.state.value;\n return renderPart(\"button\", { attrs, slots }, props.as, state, {\n type: \"button\",\n \"aria-pressed\": state.visible ? \"true\" : \"false\",\n \"aria-controls\": context.inputId(),\n disabled: state.disabled,\n \"data-primitives-part\": \"password-input-visibility-trigger\",\n ...context.attributes.value,\n onMousedown: (event: MouseEvent) => event.preventDefault(),\n onClick: (event: MouseEvent) => context.toggle(event),\n });\n };\n },\n }),\n);\n","import { PasswordInputInput } from \"./password-input-input.ts\";\nimport { PasswordInputRoot } from \"./password-input-root.ts\";\nimport { PasswordInputVisibilityTrigger } from \"./password-input-visibility-trigger.ts\";\n\n/** spec/password-input.md */\nexport const PasswordInput = {\n Root: PasswordInputRoot,\n Input: PasswordInputInput,\n VisibilityTrigger: PasswordInputVisibilityTrigger,\n};\n"],"mappings":";;;;;;;;;;AAyBA,MAAa,mBACT,OAAO,eAAe;;;ACb1B,MAAa,qBAGT,gBACA,gBAAgB;CACZ,MAAM;CACN,cAAc;CACd,OAAO;CACP,MAAM,OAAO,EAAE,OAAO,SAAS;EAC3B,MAAM,UAAU,mBACZ,kBACA,qBACJ;EACA,MAAM,EAAE,UAAU;EAClB,aAAa;GACT,MAAM,QAAQ,QAAQ,MAAM;GAC5B,OAAO,WAAW,SAAS;IAAE;IAAO;GAAM,GAAG,MAAM,IAAI,OAAO;IAC1D,IAAI,QAAQ,QAAQ;IACpB,MAAM,MAAM,UAAU,SAAS;IAC/B,MAAM,QAAQ,KAAK;IACnB,OAAO,MAAM;IACb,UAAU,MAAM;IAChB,UAAU,MAAM;IAChB,UAAU,MAAM;IAChB,gBAAgB;IAChB,YAAY;IACZ,GAAG,MAAM,KAAK;IACd,wBAAwB;IACxB,GAAG,QAAQ,WAAW;IACtB,GAAG,MAAM,WAAW;IACpB,UAAU,UACN,QAAQ,YACH,MAAM,OAA4B,OACnC,KACJ;IACJ,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,KAAK,QAAQ;GACjB,CAAC;EACL;CACJ;AACJ,CAAC,CACL;;;AGlDA,MAAa,gBAAgB;CACzB,MFkDA,gBACA,gBAAgB;EACZ,MAAM;EACN,cAAc;EACd,OAAO;GACH,GAAG;GACH,OAAO;IAAE,MAAM;IAAQ,SAAS,KAAA;GAAU;GAC1C,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OAE9B,QAAQ,QAAQ,MAAM,MAAM;KAEpC,CAAC;IACL;IACA,SAAS,UAAU;KACf,IAAI,SAAS,GACT;KAEJ,MAAM,UAAU,MAAM;KACtB,YACI,YAAY,OACN,OACA;MACI,OAAO,QAAQ;MACf,KAAK,QAAQ;MACb,WAAW,QAAQ;KACvB;KACV,QAAQ,IAAI,CAAC,QAAQ,MAAM,OAAO;MAC9B,QAAQ;MACR;KACJ,CAAC;IACL;IACA,UAAU,cAAc,KAAK;GACjC,CAAC;GAED,aACI,WAAW,OAAO;IAAE;IAAO;GAAM,GAAG,MAAM,IAAI,MAAM,OAAO;IACvD,wBAAwB;IACxB,GAAG,WAAW;IACd,GAAG,MAAM,WAAW;GACxB,CAAC;EACT;CACJ,CAAC,CEpOK;CACN,OAAO;CACP,mBDWA,gBACA,gBAAgB;EACZ,MAAM;EACN,cAAc;EACd,OAAO;EACP,MAAM,OAAO,EAAE,OAAO,SAAS;GAC3B,MAAM,UAAU,mBACZ,kBACA,iCACJ;GACA,aAAa;IACT,MAAM,QAAQ,QAAQ,MAAM;IAC5B,OAAO,WAAW,UAAU;KAAE;KAAO;IAAM,GAAG,MAAM,IAAI,OAAO;KAC3D,MAAM;KACN,gBAAgB,MAAM,UAAU,SAAS;KACzC,iBAAiB,QAAQ,QAAQ;KACjC,UAAU,MAAM;KAChB,wBAAwB;KACxB,GAAG,QAAQ,WAAW;KACtB,cAAc,UAAsB,MAAM,eAAe;KACzD,UAAU,UAAsB,QAAQ,OAAO,KAAK;IACxD,CAAC;GACL;EACJ;CACJ,CAAC,CCnCkB;AACvB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { n as ChangeReason, t as ChangeDetails } from "./change-details-Bc4-Xzdm.js";
|
|
2
|
+
import { n as RenderSlotProps } from "./render-part-BaTKiWBp.js";
|
|
3
|
+
import { i as PasswordInputState, n as PasswordInputRootEmits, r as PasswordInputRootProps, t as PasswordInput } from "./index-W8aOtVIu.js";
|
|
4
|
+
export { type ChangeDetails, type ChangeReason, PasswordInput, type PasswordInputRootEmits, type PasswordInputRootProps, type PasswordInputState, type RenderSlotProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as PasswordInput } from "./password-input-DC39W-do.js";
|