@feugene/granularity 0.10.0 → 0.12.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/README.md +44 -45
- package/dist/GrButtonGroup.css +1 -1
- package/dist/GrFormFile.css +1 -1
- package/dist/GrIcon.css +1 -1
- package/dist/GrLoading.css +1 -1
- package/dist/GrSkeleton.css +1 -1
- package/dist/GrToaster.css +1 -0
- package/dist/GrTree.css +1 -1
- package/dist/chunks/{adapter-BqqjEZGU.js.map → adapter-CAOxmn2G.js.map} +1 -1
- package/dist/chunks/arrow-up-C_G4jg8M.js.map +1 -0
- package/dist/chunks/{classTokens-BPeBXNzu.js.map → classTokens-BzazaERD.js.map} +1 -1
- package/dist/chunks/{config-A-iei0Ux.js → config-1uSYl98Y2.js} +5 -5
- package/dist/chunks/config-1uSYl98Y2.js.map +1 -0
- package/dist/chunks/{config-DZrlovR42.js.map → config-8Pcutu1j2.js.map} +1 -1
- package/dist/chunks/{config-VJuoznpH.js.map → config-B0qIpo8m.js.map} +1 -1
- package/dist/chunks/{config-C8MM2Dg0.js → config-B7IIWGt_2.js} +3 -3
- package/dist/chunks/config-B7IIWGt_2.js.map +1 -0
- package/dist/chunks/{config-DbghHyY_.js.map → config-BEegFP74.js.map} +1 -1
- package/dist/chunks/{config-D_Pafsjq2.js → config-BIRO0vDJ.js} +6 -6
- package/dist/chunks/config-BIRO0vDJ.js.map +1 -0
- package/dist/chunks/{config-BeBsN0c12.js.map → config-BLHqZhy-2.js.map} +1 -1
- package/dist/chunks/{config-BV4vBzdm.js.map → config-BNu8lFQB.js.map} +1 -1
- package/dist/chunks/config-BOlr7qw7.js +106 -0
- package/dist/chunks/config-BOlr7qw7.js.map +1 -0
- package/dist/chunks/{config-DhQc1TRY.js.map → config-BUHuGBik.js.map} +1 -1
- package/dist/chunks/{config-CPSdAjUi.js.map → config-BWGGp7uV.js.map} +1 -1
- package/dist/chunks/config-BWiPnygb.js +5 -0
- package/dist/chunks/config-BWiPnygb.js.map +1 -0
- package/dist/chunks/config-BX1JTrkV2.js +14 -0
- package/dist/chunks/config-BX1JTrkV2.js.map +1 -0
- package/dist/chunks/config-BXtAmU3s2.js.map +1 -0
- package/dist/chunks/{config-CzgNEHKi.js.map → config-Bah4oHwL.js.map} +1 -1
- package/dist/chunks/{config-C_egzT_K.js → config-C49QUoJL.js} +3 -3
- package/dist/chunks/{config-C_egzT_K.js.map → config-C49QUoJL.js.map} +1 -1
- package/dist/chunks/{config-3I3vqDW4.js → config-C4snOIXg.js} +1 -1
- package/dist/chunks/{config-3I3vqDW4.js.map → config-C4snOIXg.js.map} +1 -1
- package/dist/chunks/{config-DvDNney3.js → config-C7NpDrfO.js} +5 -5
- package/dist/chunks/{config-DvDNney3.js.map → config-C7NpDrfO.js.map} +1 -1
- package/dist/chunks/{config-lMDE_8A5.js.map → config-C86UzUYf.js.map} +1 -1
- package/dist/chunks/{config-BgBWt9-A.js.map → config-C9AcVDkv.js.map} +1 -1
- package/dist/chunks/config-CGHLoBlH.js.map +1 -0
- package/dist/chunks/{config-ChQxl75m.js.map → config-CThzliFi.js.map} +1 -1
- package/dist/chunks/{config-DDwBSoc_.js.map → config-Cb2PAlSD.js.map} +1 -1
- package/dist/chunks/{config-XspHtPsU.js → config-ClhKPJvg.js} +5 -5
- package/dist/chunks/{config-XspHtPsU.js.map → config-ClhKPJvg.js.map} +1 -1
- package/dist/chunks/{config-58Mj2rGH.js → config-Cpi9Mh2J.js} +3 -3
- package/dist/chunks/{config-58Mj2rGH.js.map → config-Cpi9Mh2J.js.map} +1 -1
- package/dist/chunks/{config-nrOj9p6I.js → config-CrG1XiE72.js} +4 -4
- package/dist/chunks/config-CrG1XiE72.js.map +1 -0
- package/dist/chunks/{config-DRpkoSvq.js → config-CziwTDDL.js} +3 -3
- package/dist/chunks/{config-DRpkoSvq.js.map → config-CziwTDDL.js.map} +1 -1
- package/dist/chunks/{config-C5-ujXCI.js.map → config-D7GZO-Dx.js.map} +1 -1
- package/dist/chunks/{config-CUwF4E4R.js.map → config-DBmdgoVf.js.map} +1 -1
- package/dist/chunks/{config-C9MblwGq.js.map → config-DICOd-2X.js.map} +1 -1
- package/dist/chunks/{config-C6zT56Jc2.js → config-DUcu1D682.js} +3 -3
- package/dist/chunks/{config-C6zT56Jc2.js.map → config-DUcu1D682.js.map} +1 -1
- package/dist/chunks/{config-8f8624RN.js → config-D_R56_gT.js} +5 -5
- package/dist/chunks/{config-8f8624RN.js.map → config-D_R56_gT.js.map} +1 -1
- package/dist/chunks/{config-RjfJFv1Y.js → config-DezDih8_.js} +4 -4
- package/dist/chunks/config-DezDih8_.js.map +1 -0
- package/dist/chunks/config-Dlm49Jp5.js +5 -0
- package/dist/chunks/config-Dlm49Jp5.js.map +1 -0
- package/dist/chunks/{config-B0uUCaJW.js → config-DnvPqu4g2.js} +3 -3
- package/dist/chunks/config-DnvPqu4g2.js.map +1 -0
- package/dist/chunks/config-DpqOnJiz.js.map +1 -0
- package/dist/chunks/{config-V3LF-b_F.js.map → config-Dxuwwepq.js.map} +1 -1
- package/dist/chunks/{config-Doa_gU40.js.map → config-HZto2PVy.js.map} +1 -1
- package/dist/chunks/{config-Dl5aZ5VR.js.map → config-JOtB4mzs.js.map} +1 -1
- package/dist/chunks/config-JpHA4Xx02.js.map +1 -0
- package/dist/chunks/{config-DkeLkzxj2.js → config-LGrZIdaZ.js} +1 -1
- package/dist/chunks/config-LGrZIdaZ.js.map +1 -0
- package/dist/chunks/{config-B3dn-gdC.js.map → config-PFg39mYo.js.map} +1 -1
- package/dist/chunks/{config-CU_CBd0k.js → config-QYGvEBu5.js} +2 -2
- package/dist/chunks/{config-CU_CBd0k.js.map → config-QYGvEBu5.js.map} +1 -1
- package/dist/chunks/{config-Bh4NWWsQ.js.map → config-QaIc_gRa.js.map} +1 -1
- package/dist/chunks/{config-vcDVCYXo.js.map → config-U4m9PSql.js.map} +1 -1
- package/dist/chunks/{config-C_q_4FrU.js.map → config-ZiXWIRBX.js.map} +1 -1
- package/dist/chunks/config-eXB87DOi2.js +9 -0
- package/dist/chunks/config-eXB87DOi2.js.map +1 -0
- package/dist/chunks/{config-hSlCXHoG.js → config-eYLZYOUS2.js} +63 -63
- package/dist/chunks/config-eYLZYOUS2.js.map +1 -0
- package/dist/chunks/{config-DDUPnue12.js.map → config-ipvU0lzP2.js.map} +1 -1
- package/dist/chunks/{config-B61cX08u.js → config-jBp9wVv-.js} +4 -4
- package/dist/chunks/{config-B61cX08u.js.map → config-jBp9wVv-.js.map} +1 -1
- package/dist/chunks/{config-D5ek7VSi.js.map → config-xR4XVmcy.js.map} +1 -1
- package/dist/chunks/context-DdNIxa1w.js +9 -0
- package/dist/chunks/context-DdNIxa1w.js.map +1 -0
- package/dist/chunks/{dialogShared-BtXUk6Zc.js.map → dialogShared-CxW62PQE.js.map} +1 -1
- package/dist/chunks/en-CfkDa4GX.js +144 -0
- package/dist/chunks/en-CfkDa4GX.js.map +1 -0
- package/dist/chunks/{es-CISK11Nv.js → es-CgaLnFYx.js} +3 -3
- package/dist/chunks/{es-CISK11Nv.js.map → es-CgaLnFYx.js.map} +1 -1
- package/dist/chunks/es-FkgECuCm.js +144 -0
- package/dist/chunks/es-FkgECuCm.js.map +1 -0
- package/dist/chunks/{fileValidation-c_iBg74s.js → fileValidation-C3WFaWU2.js} +2 -1
- package/dist/chunks/{fileValidation-c_iBg74s.js.map → fileValidation-C3WFaWU2.js.map} +1 -1
- package/dist/chunks/{grBadgeStyles-Cq0hH2Ls.js → grBadgeStyles-DrycBuKT.js} +13 -13
- package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +1 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js +191 -0
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +1 -0
- package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js → grDropdownStyles-B_-DKytw.js} +2 -2
- package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js.map → grDropdownStyles-B_-DKytw.js.map} +1 -1
- package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js.map → grLoadingStyles-R5sreH__.js.map} +1 -1
- package/dist/chunks/grModalEscStack-BXk-9mv7.js +43 -0
- package/dist/chunks/grModalEscStack-BXk-9mv7.js.map +1 -0
- package/dist/chunks/{grModalStyles-FgaKqx50.js → grModalStyles-DWd3i05Q.js} +6 -6
- package/dist/chunks/{grModalStyles-FgaKqx50.js.map → grModalStyles-DWd3i05Q.js.map} +1 -1
- package/dist/chunks/{grSelectStyles-AjWWl007.js → grSelectStyles-CLK5hRd3.js} +3 -3
- package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +1 -0
- package/dist/chunks/{grStyle-D-gPHdyW.js → grStyle-Blc9otAx.js} +6 -6
- package/dist/chunks/grStyle-Blc9otAx.js.map +1 -0
- package/dist/chunks/{granularityI18n-D_7jowK2.js → granularityI18n-DoV7Ca2m.js} +1 -1
- package/dist/chunks/{granularityI18n-D_7jowK2.js.map → granularityI18n-DoV7Ca2m.js.map} +1 -1
- package/dist/chunks/info-Be2OccTu.js.map +1 -0
- package/dist/chunks/loader-circle-CfVLz7lb.js.map +1 -0
- package/dist/chunks/ru-Bl8CxpEa.js +144 -0
- package/dist/chunks/ru-Bl8CxpEa.js.map +1 -0
- package/dist/chunks/{safelist-_UVzJrgE2.js → safelist-CkF4v7DC.js} +3 -3
- package/dist/chunks/safelist-CkF4v7DC.js.map +1 -0
- package/dist/chunks/{safelist-DccvJqCE.js → safelist-Do2RtzLB.js} +3 -3
- package/dist/chunks/{safelist-DccvJqCE.js.map → safelist-Do2RtzLB.js.map} +1 -1
- package/dist/chunks/shared-B6Ay2081.js +174 -0
- package/dist/chunks/shared-B6Ay2081.js.map +1 -0
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js +65 -0
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +1 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js +27 -0
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +1 -0
- package/dist/chunks/{useFloating-CLtbU7eD.js → useFloating-DtM6TyE4.js} +19 -4
- package/dist/chunks/{useFloating-CLtbU7eD.js.map → useFloating-DtM6TyE4.js.map} +1 -1
- package/dist/chunks/{transition-mJ3PZCHH.js → useScrollLock-K7kaP2Ud.js} +78 -13
- package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +1 -0
- package/dist/chunks/x-2KXnqxiD.js.map +1 -0
- package/dist/chunks/x-circle-BCBURwyX.js.map +1 -0
- package/dist/components/GrAlert/chunks/{GrAlert-HyCjYJeL.js → GrAlert-DPJSU_fG.js} +40 -37
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js → GrAvatar-96CpTCq5.js} +2 -2
- package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js.map → GrAvatar-96CpTCq5.js.map} +1 -1
- package/dist/components/GrAvatar/index.js +2 -2
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js → GrBadge-B77XlaqE.js} +3 -3
- package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js.map → GrBadge-B77XlaqE.js.map} +1 -1
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js → GrBadgeWrap-CcktMOdg.js} +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js.map → GrBadgeWrap-CcktMOdg.js.map} +1 -1
- package/dist/components/GrBadgeWrap/index.js +2 -2
- package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js.map → GrBottomNav-usuMgG8_.js.map} +1 -1
- package/dist/components/GrBottomNav/index.js +2 -2
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js +124 -0
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +1 -0
- package/dist/components/GrButton/index.js +4 -4
- package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CPOH6V-P.js → GrButtonGroup-Bs9dEKfA.js} +1 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +1 -0
- package/dist/components/GrButtonGroup/index.js +2 -2
- package/dist/components/GrCard/chunks/{GrCard-6yk1RRAQ.js → GrCard-DUNMkuHW.js} +3 -3
- package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +1 -0
- package/dist/components/GrCard/index.js +2 -2
- package/dist/components/GrCheckbox/chunks/{GrCheckbox-Bt3d7ckE.js → GrCheckbox-DJhzZZdO.js} +66 -18
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +2 -2
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js → GrCollapse-CPPLh_xU.js} +12 -12
- package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js.map → GrCollapse-CPPLh_xU.js.map} +1 -1
- package/dist/components/GrCollapse/index.js +2 -2
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-Bi2KLumL.js → GrConfirmDialog-D8CkOtqv.js} +20 -14
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-D8CkOtqv.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +2 -2
- package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js → GrDataTable-Ds5OeGat.js} +49 -23
- package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-CxK4Lj4F.js → GrDialog-Ctucxju9.js} +14 -12
- package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js.map +1 -0
- package/dist/components/GrDialog/index.js +3 -3
- package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js +425 -0
- package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js.map +1 -0
- package/dist/components/GrDialogService/index.js +3 -0
- package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js +54 -0
- package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js.map +1 -0
- package/dist/components/GrDivider/index.js +3 -0
- package/dist/components/GrDrawer/chunks/{GrDrawer-BW3wtI7h.js → GrDrawer-SLGKCY2A.js} +54 -26
- package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js +181 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js → GrDropdownMenu--g9Vofcq.js} +10 -10
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js.map → GrDropdownMenu--g9Vofcq.js.map} +1 -1
- package/dist/components/GrDropdownMenu/index.js +2 -2
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js → GrEmptyState-CA3BiTV7.js} +3 -3
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js.map → GrEmptyState-CA3BiTV7.js.map} +1 -1
- package/dist/components/GrEmptyState/index.js +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-CBKK3dgC.js → GrFileUpload-DvWPpiJS.js} +26 -23
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +3 -3
- package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js +73 -0
- package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js.map +1 -0
- package/dist/components/GrFormField/index.js +4 -3
- package/dist/components/GrFormFile/chunks/{GrFormFile-CkR6cYqf.js → GrFormFile-CXcqqdvV.js} +38 -31
- package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +1 -0
- package/dist/components/GrFormFile/index.js +2 -2
- package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js → GrFormSection-Ce21jcgo.js} +1 -1
- package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js.map → GrFormSection-Ce21jcgo.js.map} +1 -1
- package/dist/components/GrFormSection/index.js +2 -2
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js → GrIcon-D9AWQLk2.js} +3 -3
- package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js.map → GrIcon-D9AWQLk2.js.map} +1 -1
- package/dist/components/GrIcon/index.js +2 -2
- package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js +650 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +2 -2
- package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js +334 -0
- package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-g-KdUI_Z.js → GrInputTag-zMgFqp2g.js} +27 -24
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js +22 -0
- package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -0
- package/dist/components/GrLink/chunks/{GrLink-KSTmk9Yq.js → GrLink-CYUe-Q8k.js} +14 -7
- package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js.map +1 -0
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js → GrList-Dx772Ns4.js} +1 -1
- package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js.map → GrList-Dx772Ns4.js.map} +1 -1
- package/dist/components/GrList/index.js +2 -2
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js → GrLoading--X_7rdbb.js} +7 -7
- package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js.map → GrLoading--X_7rdbb.js.map} +1 -1
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/{GrModal-CSOL3fHQ.js → GrModal-C0GZrHN3.js} +9 -62
- package/dist/components/GrModal/chunks/GrModal-C0GZrHN3.js.map +1 -0
- package/dist/components/GrModal/index.js +3 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js → GrNavbar-DW3MiIIf.js} +6 -6
- package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js.map → GrNavbar-DW3MiIIf.js.map} +1 -1
- package/dist/components/GrNavbar/index.js +2 -2
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-ClPBwkxx.js → GrNumberInput-DxCEvL7V.js} +144 -72
- package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-D2GS0ShQ.js → GrPagination-mlyfLjQY.js} +76 -25
- package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js.map +1 -0
- package/dist/components/GrPagination/index.js +2 -2
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js → GrProgressBar-CC3z-Zqp.js} +3 -3
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js.map → GrProgressBar-CC3z-Zqp.js.map} +1 -1
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-D_TFqKsF.js → GrPromptDialog-C-_BMNuY.js} +31 -23
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js → GrRadio-Dr-pvs_9.js} +6 -6
- package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js.map → GrRadio-Dr-pvs_9.js.map} +1 -1
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js → GrRadioGroup-nOdvfV_g.js} +3 -3
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js.map → GrRadioGroup-nOdvfV_g.js.map} +1 -1
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-K1uZ1mYD.js → GrResponseErrorBanner-BWJNe2gr.js} +21 -18
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js → GrResponseErrorBanner-Cdu9ekK9.js} +5 -5
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js.map → GrResponseErrorBanner-Cdu9ekK9.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js → GrSegmented-C1y0UXpQ.js} +5 -5
- package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js.map → GrSegmented-C1y0UXpQ.js.map} +1 -1
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-DSz7jvUb.js → GrSelect-BVCmitqa.js} +227 -87
- package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js +238 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js → GrSkeleton-DsN-_CDZ.js} +1 -1
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js.map → GrSkeleton-DsN-_CDZ.js.map} +1 -1
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js → GrSwitch-DAioyccZ.js} +10 -10
- package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js.map → GrSwitch-DAioyccZ.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js +68 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +3 -0
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js → GrTable-Db3hRnKA.js} +3 -3
- package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js.map → GrTable-Db3hRnKA.js.map} +1 -1
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/{GrTabs-BfeVNMFJ.js → GrTabs-DsLwWoRz.js} +9 -4
- package/dist/components/GrTabs/chunks/GrTabs-DsLwWoRz.js.map +1 -0
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-CBBzpF2S.js → GrTextarea-CKukGlNl.js} +17 -7
- package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js +189 -0
- package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js → GrTooltip-BeyZ8ssR.js} +10 -10
- package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js.map → GrTooltip-BeyZ8ssR.js.map} +1 -1
- package/dist/components/GrTooltip/index.js +2 -2
- package/dist/components/GrTree/chunks/{GrTree-uZr5SyQI.js → GrTree-B2_yW6g1.js} +145 -41
- package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js → GrTreeSelect-0aM62xyu.js} +16 -16
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js.map → GrTreeSelect-0aM62xyu.js.map} +1 -1
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useTheme.js +48 -8
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/composables/useToast.js +88 -26
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/autofocus.js.map +1 -1
- package/dist/directives/autosize.js.map +1 -1
- package/dist/directives/clickOutside.js.map +1 -1
- package/dist/directives/dropzone.js +6 -5
- package/dist/directives/dropzone.js.map +1 -1
- package/dist/directives/hotkey.js +24 -7
- package/dist/directives/hotkey.js.map +1 -1
- package/dist/directives/loading.js +2 -2
- package/dist/directives/loading.js.map +1 -1
- package/dist/fileValidation/index.js +1 -1
- package/dist/granular-provider-node.js +7 -7
- package/dist/granular-provider-node.js.map +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/granular-provider.js.map +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/all.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/index.js +116 -534
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +54 -0
- package/dist/styles/index.css +15 -0
- package/dist/styles/preflight.css +33 -0
- package/dist/styles/themes/dark.css +107 -0
- package/dist/styles/themes/light.css +98 -0
- package/dist/styles/tokens.css +135 -0
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +25 -2
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +7 -2
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +8 -8
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +29 -5
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +2 -2
- package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +2 -2
- package/dist/types/src/components/GrDivider/GrDivider.vue.d.ts +58 -0
- package/dist/types/src/components/GrDivider/config.d.ts +1 -0
- package/dist/types/src/components/GrDivider/index.d.ts +4 -0
- package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +6 -6
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +7 -0
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +6 -0
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +4 -4
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +15 -2
- package/dist/types/src/components/GrFormField/context.d.ts +20 -0
- package/dist/types/src/components/GrFormField/index.d.ts +1 -0
- package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +11 -11
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +22 -18
- package/dist/types/src/components/GrImageViewer/composables/useViewerKeyboard.d.ts +20 -0
- package/dist/types/src/components/GrImageViewer/composables/useWheelGesture.d.ts +16 -0
- package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +50 -0
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +55 -2
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +3 -3
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +2 -2
- package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +46 -0
- package/dist/types/src/components/GrKbd/config.d.ts +1 -0
- package/dist/types/src/components/GrKbd/index.d.ts +4 -0
- package/dist/types/src/components/GrLink/GrLink.vue.d.ts +12 -6
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +31 -3
- package/dist/types/src/components/GrLink/index.d.ts +1 -1
- package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +1 -1
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +33 -4
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +13 -1
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +12 -12
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +5 -5
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +3 -3
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +2 -1
- package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +33 -10
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +64 -0
- package/dist/types/src/components/GrSidebar/index.d.ts +1 -0
- package/dist/types/src/components/GrSidebar/sidebarContext.d.ts +9 -0
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +1 -1
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
- package/dist/types/src/components/GrTabPanels/GrTabPanel.vue.d.ts +46 -0
- package/dist/types/src/components/GrTabPanels/GrTabPanels.vue.d.ts +51 -0
- package/dist/types/src/components/GrTabPanels/config.d.ts +5 -0
- package/dist/types/src/components/GrTabPanels/context.d.ts +9 -0
- package/dist/types/src/components/GrTabPanels/index.d.ts +6 -0
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -0
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +9 -4
- package/dist/types/src/components/GrTree/GrTree.vue.d.ts +1 -1
- package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +2 -0
- package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +2 -2
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +1 -1
- package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +18 -0
- package/dist/types/src/composables/internal/useEscapeToClose.d.ts +11 -0
- package/dist/types/src/composables/internal/useScrollLock.d.ts +24 -0
- package/dist/types/src/composables/useTheme.d.ts +5 -2
- package/dist/types/src/composables/useToast.d.ts +33 -1
- package/dist/types/src/directives/hotkey.d.ts +14 -0
- package/dist/types/src/granular-provider/shared.d.ts +4 -3
- package/dist/types/src/i18n/messages/en.d.ts +130 -0
- package/dist/types/src/i18n/messages/es.d.ts +130 -0
- package/dist/types/src/i18n/messages/ru.d.ts +130 -0
- package/dist/types/src/index.d.ts +5 -2
- package/dist/vue/index.js.map +1 -1
- package/dist/web-types.json +4922 -0
- package/package.json +38 -20
- package/dist/chunks/arrow-up-DZdIrpaF.js.map +0 -1
- package/dist/chunks/config-A-iei0Ux.js.map +0 -1
- package/dist/chunks/config-B0uUCaJW.js.map +0 -1
- package/dist/chunks/config-BLa1TEGm2.js.map +0 -1
- package/dist/chunks/config-BduXEXjt.js.map +0 -1
- package/dist/chunks/config-BuoIngj32.js.map +0 -1
- package/dist/chunks/config-C8MM2Dg0.js.map +0 -1
- package/dist/chunks/config-CWTfyPNI.js.map +0 -1
- package/dist/chunks/config-D_Pafsjq2.js.map +0 -1
- package/dist/chunks/config-DkeLkzxj2.js.map +0 -1
- package/dist/chunks/config-NkbzVFZo.js +0 -59
- package/dist/chunks/config-NkbzVFZo.js.map +0 -1
- package/dist/chunks/config-RjfJFv1Y.js.map +0 -1
- package/dist/chunks/config-hSlCXHoG.js.map +0 -1
- package/dist/chunks/config-nrOj9p6I.js.map +0 -1
- package/dist/chunks/en-B_fSdoTi.js +0 -72
- package/dist/chunks/en-B_fSdoTi.js.map +0 -1
- package/dist/chunks/es-DKP6fLir.js +0 -72
- package/dist/chunks/es-DKP6fLir.js.map +0 -1
- package/dist/chunks/grBadgeStyles-Cq0hH2Ls.js.map +0 -1
- package/dist/chunks/grButtonStyles-DKuXUemw.js +0 -191
- package/dist/chunks/grButtonStyles-DKuXUemw.js.map +0 -1
- package/dist/chunks/grSelectStyles-AjWWl007.js.map +0 -1
- package/dist/chunks/grStyle-D-gPHdyW.js.map +0 -1
- package/dist/chunks/info-C0bHmdZq.js.map +0 -1
- package/dist/chunks/loader-circle-BUntgosj.js.map +0 -1
- package/dist/chunks/ru-S6VlnurJ.js +0 -72
- package/dist/chunks/ru-S6VlnurJ.js.map +0 -1
- package/dist/chunks/safelist-_UVzJrgE2.js.map +0 -1
- package/dist/chunks/shared-DpjTvFno.js +0 -169
- package/dist/chunks/shared-DpjTvFno.js.map +0 -1
- package/dist/chunks/transition-mJ3PZCHH.js.map +0 -1
- package/dist/chunks/x-Pa6C2hwi.js.map +0 -1
- package/dist/chunks/x-circle-DQSlBLmX.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-HyCjYJeL.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js +0 -83
- package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js.map +0 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CPOH6V-P.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-6yk1RRAQ.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Bi2KLumL.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-ClcYiyc8.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-CxK4Lj4F.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-BW3wtI7h.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js +0 -105
- package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CBKK3dgC.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js +0 -35
- package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CkR6cYqf.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js +0 -550
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js +0 -211
- package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-g-KdUI_Z.js.map +0 -1
- package/dist/components/GrLink/chunks/GrLink-KSTmk9Yq.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-CSOL3fHQ.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-ClPBwkxx.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-D2GS0ShQ.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-D_TFqKsF.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-K1uZ1mYD.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-DSz7jvUb.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js +0 -44
- package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-BfeVNMFJ.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-CBBzpF2S.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js +0 -172
- package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-uZr5SyQI.js.map +0 -1
- /package/dist/chunks/{_plugin-vue_export-helper-DQR7Sy7Q.js → _plugin-vue_export-helper-BOaGB7Aw.js} +0 -0
- /package/dist/chunks/{adapter-BqqjEZGU.js → adapter-CAOxmn2G.js} +0 -0
- /package/dist/chunks/{arrow-up-DZdIrpaF.js → arrow-up-C_G4jg8M.js} +0 -0
- /package/dist/chunks/{classTokens-BPeBXNzu.js → classTokens-BzazaERD.js} +0 -0
- /package/dist/chunks/{config-DZrlovR42.js → config-8Pcutu1j2.js} +0 -0
- /package/dist/chunks/{config-VJuoznpH.js → config-B0qIpo8m.js} +0 -0
- /package/dist/chunks/{config-DbghHyY_.js → config-BEegFP74.js} +0 -0
- /package/dist/chunks/{config-BeBsN0c12.js → config-BLHqZhy-2.js} +0 -0
- /package/dist/chunks/{config-BV4vBzdm.js → config-BNu8lFQB.js} +0 -0
- /package/dist/chunks/{config-DhQc1TRY.js → config-BUHuGBik.js} +0 -0
- /package/dist/chunks/{config-CPSdAjUi.js → config-BWGGp7uV.js} +0 -0
- /package/dist/chunks/{config-BduXEXjt.js → config-BXtAmU3s2.js} +0 -0
- /package/dist/chunks/{config-CzgNEHKi.js → config-Bah4oHwL.js} +0 -0
- /package/dist/chunks/{config-lMDE_8A5.js → config-C86UzUYf.js} +0 -0
- /package/dist/chunks/{config-BgBWt9-A.js → config-C9AcVDkv.js} +0 -0
- /package/dist/chunks/{config-BuoIngj32.js → config-CGHLoBlH.js} +0 -0
- /package/dist/chunks/{config-ChQxl75m.js → config-CThzliFi.js} +0 -0
- /package/dist/chunks/{config-DDwBSoc_.js → config-Cb2PAlSD.js} +0 -0
- /package/dist/chunks/{config-C5-ujXCI.js → config-D7GZO-Dx.js} +0 -0
- /package/dist/chunks/{config-CUwF4E4R.js → config-DBmdgoVf.js} +0 -0
- /package/dist/chunks/{config-C9MblwGq.js → config-DICOd-2X.js} +0 -0
- /package/dist/chunks/{config-BLa1TEGm2.js → config-DpqOnJiz.js} +0 -0
- /package/dist/chunks/{config-V3LF-b_F.js → config-Dxuwwepq.js} +0 -0
- /package/dist/chunks/{config-Doa_gU40.js → config-HZto2PVy.js} +0 -0
- /package/dist/chunks/{config-Dl5aZ5VR.js → config-JOtB4mzs.js} +0 -0
- /package/dist/chunks/{config-CWTfyPNI.js → config-JpHA4Xx02.js} +0 -0
- /package/dist/chunks/{config-B3dn-gdC.js → config-PFg39mYo.js} +0 -0
- /package/dist/chunks/{config-Bh4NWWsQ.js → config-QaIc_gRa.js} +0 -0
- /package/dist/chunks/{config-vcDVCYXo.js → config-U4m9PSql.js} +0 -0
- /package/dist/chunks/{config-C_q_4FrU.js → config-ZiXWIRBX.js} +0 -0
- /package/dist/chunks/{config-DDUPnue12.js → config-ipvU0lzP2.js} +0 -0
- /package/dist/chunks/{config-D5ek7VSi.js → config-xR4XVmcy.js} +0 -0
- /package/dist/chunks/{dialogShared-BtXUk6Zc.js → dialogShared-CxW62PQE.js} +0 -0
- /package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js → grLoadingStyles-R5sreH__.js} +0 -0
- /package/dist/chunks/{info-C0bHmdZq.js → info-Be2OccTu.js} +0 -0
- /package/dist/chunks/{loader-circle-BUntgosj.js → loader-circle-CfVLz7lb.js} +0 -0
- /package/dist/chunks/{x-Pa6C2hwi.js → x-2KXnqxiD.js} +0 -0
- /package/dist/chunks/{x-circle-DQSlBLmX.js → x-circle-BCBURwyX.js} +0 -0
- /package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js → GrBottomNav-usuMgG8_.js} +0 -0
|
@@ -8,23 +8,46 @@ type __VLS_Props = {
|
|
|
8
8
|
autocomplete?: string;
|
|
9
9
|
inputmode?: InputHTMLAttributes['inputmode'];
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
/** Только для чтения: значение видно и выделяемо, но не редактируется. */
|
|
12
|
+
readonly?: boolean;
|
|
11
13
|
invalid?: boolean;
|
|
12
14
|
state?: 'default' | 'success' | 'warning' | 'danger';
|
|
13
15
|
name?: string;
|
|
14
16
|
id?: string;
|
|
15
17
|
size?: GrInputSize;
|
|
18
|
+
/** Показывать кнопку очистки, когда есть значение (и не disabled/readonly). */
|
|
19
|
+
clearable?: boolean;
|
|
20
|
+
/** i18n aria-label кнопки очистки. */
|
|
21
|
+
clearLabel?: string;
|
|
22
|
+
/** Ограничение длины + основа для счётчика символов. */
|
|
23
|
+
maxlength?: number;
|
|
24
|
+
/** Показывать счётчик символов (`len` или `len/maxlength`). */
|
|
25
|
+
showCount?: boolean;
|
|
26
|
+
/** Кнопка показать/скрыть пароль (только при `type="password"`). */
|
|
27
|
+
passwordToggle?: boolean;
|
|
28
|
+
/** i18n aria-label кнопки показать/скрыть пароль. */
|
|
29
|
+
passwordShowLabel?: string;
|
|
30
|
+
passwordHideLabel?: string;
|
|
16
31
|
textAlign?: GrInputTextAlign;
|
|
17
32
|
prefixMinWidth?: string;
|
|
18
33
|
prefixMaxWidth?: string;
|
|
19
34
|
suffixMinWidth?: string;
|
|
20
35
|
suffixMaxWidth?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Фиксированная ширина у prefix/suffix: аддон получает жёсткую ширину
|
|
38
|
+
* (из `*MaxWidth` → `*MinWidth` → дефолт), а контент обрезается по краю
|
|
39
|
+
* (prefix — справа, suffix — слева). По умолчанию аддоны «растягиваются»
|
|
40
|
+
* под контент (в пределах min/max), а излишек клипается оболочкой.
|
|
41
|
+
*/
|
|
42
|
+
prefixFixed?: boolean;
|
|
43
|
+
suffixFixed?: boolean;
|
|
21
44
|
};
|
|
22
45
|
declare function focus(): void;
|
|
23
|
-
declare var __VLS_1: {},
|
|
46
|
+
declare var __VLS_1: {}, __VLS_18: {};
|
|
24
47
|
type __VLS_Slots = {} & {
|
|
25
48
|
prefix?: (props: typeof __VLS_1) => any;
|
|
26
49
|
} & {
|
|
27
|
-
suffix?: (props: typeof
|
|
50
|
+
suffix?: (props: typeof __VLS_18) => any;
|
|
28
51
|
};
|
|
29
52
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
30
53
|
type: string;
|
|
@@ -32,16 +55,26 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
32
55
|
autocomplete: undefined;
|
|
33
56
|
inputmode: undefined;
|
|
34
57
|
disabled: boolean;
|
|
58
|
+
readonly: boolean;
|
|
35
59
|
invalid: boolean;
|
|
36
60
|
state: string;
|
|
37
61
|
name: undefined;
|
|
38
62
|
id: undefined;
|
|
39
63
|
size: string;
|
|
64
|
+
clearable: boolean;
|
|
65
|
+
clearLabel: undefined;
|
|
66
|
+
maxlength: undefined;
|
|
67
|
+
showCount: boolean;
|
|
68
|
+
passwordToggle: boolean;
|
|
69
|
+
passwordShowLabel: undefined;
|
|
70
|
+
passwordHideLabel: undefined;
|
|
40
71
|
textAlign: string;
|
|
41
72
|
prefixMinWidth: undefined;
|
|
42
73
|
prefixMaxWidth: undefined;
|
|
43
74
|
suffixMinWidth: undefined;
|
|
44
75
|
suffixMaxWidth: undefined;
|
|
76
|
+
prefixFixed: boolean;
|
|
77
|
+
suffixFixed: boolean;
|
|
45
78
|
}>>, {
|
|
46
79
|
focus: typeof focus;
|
|
47
80
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -52,19 +85,30 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
52
85
|
autocomplete: undefined;
|
|
53
86
|
inputmode: undefined;
|
|
54
87
|
disabled: boolean;
|
|
88
|
+
readonly: boolean;
|
|
55
89
|
invalid: boolean;
|
|
56
90
|
state: string;
|
|
57
91
|
name: undefined;
|
|
58
92
|
id: undefined;
|
|
59
93
|
size: string;
|
|
94
|
+
clearable: boolean;
|
|
95
|
+
clearLabel: undefined;
|
|
96
|
+
maxlength: undefined;
|
|
97
|
+
showCount: boolean;
|
|
98
|
+
passwordToggle: boolean;
|
|
99
|
+
passwordShowLabel: undefined;
|
|
100
|
+
passwordHideLabel: undefined;
|
|
60
101
|
textAlign: string;
|
|
61
102
|
prefixMinWidth: undefined;
|
|
62
103
|
prefixMaxWidth: undefined;
|
|
63
104
|
suffixMinWidth: undefined;
|
|
64
105
|
suffixMaxWidth: undefined;
|
|
106
|
+
prefixFixed: boolean;
|
|
107
|
+
suffixFixed: boolean;
|
|
65
108
|
}>>> & Readonly<{
|
|
66
109
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
67
110
|
}>, {
|
|
111
|
+
readonly: boolean;
|
|
68
112
|
type: "text" | "email" | "password" | "number" | "search";
|
|
69
113
|
size: GrInputSize;
|
|
70
114
|
disabled: boolean;
|
|
@@ -75,11 +119,20 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
75
119
|
placeholder: string;
|
|
76
120
|
autocomplete: string;
|
|
77
121
|
state: "default" | "success" | "warning" | "danger";
|
|
122
|
+
clearable: boolean;
|
|
123
|
+
clearLabel: string;
|
|
124
|
+
maxlength: number;
|
|
125
|
+
showCount: boolean;
|
|
126
|
+
passwordToggle: boolean;
|
|
127
|
+
passwordShowLabel: string;
|
|
128
|
+
passwordHideLabel: string;
|
|
78
129
|
textAlign: GrInputTextAlign;
|
|
79
130
|
prefixMinWidth: string;
|
|
80
131
|
prefixMaxWidth: string;
|
|
81
132
|
suffixMinWidth: string;
|
|
82
133
|
suffixMaxWidth: string;
|
|
134
|
+
prefixFixed: boolean;
|
|
135
|
+
suffixFixed: boolean;
|
|
83
136
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
137
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
138
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,7 +11,7 @@ export declare const textAlign: {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const states: {
|
|
13
13
|
readonly default: "border-[var(--brd)]";
|
|
14
|
-
readonly success: "border-[var(--
|
|
15
|
-
readonly warning: "border-[var(--
|
|
16
|
-
readonly danger: "border-[var(--
|
|
14
|
+
readonly success: "border-[var(--gr-success)] focus-visible:ring-[var(--gr-success)]";
|
|
15
|
+
readonly warning: "border-[var(--gr-warning)] focus-visible:ring-[var(--gr-warning)]";
|
|
16
|
+
readonly danger: "border-[var(--gr-danger)] focus-visible:ring-[var(--gr-danger)]";
|
|
17
17
|
};
|
|
@@ -55,7 +55,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
55
55
|
tagSize: string;
|
|
56
56
|
tagRadius: string;
|
|
57
57
|
tagClosable: boolean;
|
|
58
|
-
removeTagLabel:
|
|
58
|
+
removeTagLabel: undefined;
|
|
59
59
|
}>>, {
|
|
60
60
|
focus: typeof focus;
|
|
61
61
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -80,7 +80,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
80
80
|
tagSize: string;
|
|
81
81
|
tagRadius: string;
|
|
82
82
|
tagClosable: boolean;
|
|
83
|
-
removeTagLabel:
|
|
83
|
+
removeTagLabel: undefined;
|
|
84
84
|
}>>> & Readonly<{
|
|
85
85
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
86
86
|
onAdd?: ((value: string) => any) | undefined;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GrKbd — GR-примитив для отображения клавиш/сочетаний (`<kbd>`).
|
|
3
|
+
*
|
|
4
|
+
* Пример: `<GrKbd>⌘</GrKbd> <GrKbd>K</GrKbd>`.
|
|
5
|
+
*/
|
|
6
|
+
export type GrKbdSize = 'sm' | 'md';
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
size?: GrKbdSize;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
15
|
+
size: string;
|
|
16
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
17
|
+
size: string;
|
|
18
|
+
}>>> & Readonly<{}>, {
|
|
19
|
+
size: GrKbdSize;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_TypePropsToOption<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} : {
|
|
45
|
+
[K in keyof T as K]: T[K];
|
|
46
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grKbdConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrKbd">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* GrLink —
|
|
2
|
+
* GrLink — GR-примитив ссылки.
|
|
3
3
|
*
|
|
4
4
|
* Корневой тег зависит от пропов:
|
|
5
5
|
* - кастомный компонент/тег из пропа `as` — когда `as` передан и не `disabled`
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
* не участвовала в порядке табуляции. Учтите это в внешних CSS-селекторах.
|
|
13
13
|
*
|
|
14
14
|
* Проп `as` нужен для интеграции с роутерами (Inertia, Vue Router и пр.):
|
|
15
|
-
* стили/поведение
|
|
15
|
+
* стили/поведение GR остаются едиными, а тег корня подменяется. Все
|
|
16
16
|
* специфичные для роутера атрибуты (`method`, `replace`, `preserve-scroll` и т.п.)
|
|
17
17
|
* проходят через fallthrough-attrs.
|
|
18
18
|
*/
|
|
19
19
|
import { type Component } from 'vue';
|
|
20
|
-
import { type GrLinkSize, type GrLinkUnderline, type GrLinkVariant } from './grLinkStyles';
|
|
20
|
+
import { type GrLinkSize, type GrLinkTone, type GrLinkUnderline, type GrLinkVariant } from './grLinkStyles';
|
|
21
21
|
type __VLS_Props = {
|
|
22
22
|
/**
|
|
23
23
|
* Кастомный корневой тег/компонент. Если передан и компонент не `disabled` —
|
|
@@ -30,6 +30,9 @@ type __VLS_Props = {
|
|
|
30
30
|
rel?: string;
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
ariaLabel?: string;
|
|
33
|
+
/** Семантический цвет ссылки из палитры `GrTone`. */
|
|
34
|
+
tone?: GrLinkTone;
|
|
35
|
+
/** Уровень акцента: `default` (окрашен) или `muted` (приглушён, акцент на hover). */
|
|
33
36
|
variant?: GrLinkVariant;
|
|
34
37
|
underline?: GrLinkUnderline;
|
|
35
38
|
size?: GrLinkSize;
|
|
@@ -46,6 +49,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
46
49
|
rel: undefined;
|
|
47
50
|
disabled: boolean;
|
|
48
51
|
ariaLabel: undefined;
|
|
52
|
+
tone: string;
|
|
49
53
|
variant: string;
|
|
50
54
|
underline: string;
|
|
51
55
|
size: string;
|
|
@@ -57,20 +61,22 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
57
61
|
rel: undefined;
|
|
58
62
|
disabled: boolean;
|
|
59
63
|
ariaLabel: undefined;
|
|
64
|
+
tone: string;
|
|
60
65
|
variant: string;
|
|
61
66
|
underline: string;
|
|
62
67
|
size: string;
|
|
63
68
|
}>>> & Readonly<{}>, {
|
|
69
|
+
tone: GrLinkTone;
|
|
64
70
|
variant: GrLinkVariant;
|
|
65
71
|
size: GrLinkSize;
|
|
66
72
|
disabled: boolean;
|
|
67
73
|
ariaLabel: string;
|
|
68
74
|
as: string | Component;
|
|
69
|
-
target: string;
|
|
70
75
|
href: string;
|
|
71
|
-
|
|
72
|
-
external: boolean;
|
|
76
|
+
target: string;
|
|
73
77
|
rel: string;
|
|
78
|
+
external: boolean;
|
|
79
|
+
underline: GrLinkUnderline;
|
|
74
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
75
81
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
76
82
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,15 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
import { GR_TONES, type GrTone } from '../shared/tones';
|
|
2
|
+
/**
|
|
3
|
+
* Архитектура цвета GrLink (согласована с остальной GR, ср. GrButton):
|
|
4
|
+
*
|
|
5
|
+
* - `tone` — семантический ЦВЕТ из общей палитры `GrTone`
|
|
6
|
+
* (`primary | neutral | success | warning | danger | info | slate | azure`).
|
|
7
|
+
* - `variant` — уровень акцента (СТРУКТУРА), независимый от цвета:
|
|
8
|
+
* - `default` — текст окрашен в `tone` в покое, `tone-hover`/`tone-active` при
|
|
9
|
+
* наведении/нажатии (обычная акцентная ссылка);
|
|
10
|
+
* - `muted` — приглушённый текст (`--muted-fg`) в покое, окрашивается в `tone`
|
|
11
|
+
* при наведении (вторичные/inline-ссылки в плотных областях).
|
|
12
|
+
*
|
|
13
|
+
* Раньше `variant` смешивал цвет и акцент (`primary/default/muted/muted-primary/danger`).
|
|
14
|
+
* Теперь это ортогональные оси: `tone` × `variant`.
|
|
15
|
+
*/
|
|
16
|
+
export type GrLinkTone = GrTone;
|
|
17
|
+
export type GrLinkVariant = 'default' | 'muted';
|
|
2
18
|
export type GrLinkUnderline = 'auto' | 'always' | 'none';
|
|
3
19
|
export type GrLinkSize = 'sm' | 'md' | 'lg';
|
|
4
20
|
export declare const baseRootClass = "inline-flex items-center gap-1 rounded-[6px] transition-colors duration-150";
|
|
5
21
|
export declare const focusRingClass = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]";
|
|
6
22
|
export declare const sizeClassBySize: Record<GrLinkSize, string>;
|
|
7
|
-
export declare const
|
|
23
|
+
export declare const colorClass = "text-[var(--gr-link-color)] visited:text-[var(--gr-link-color)] hover:text-[var(--gr-link-color-hover)] active:text-[var(--gr-link-color-active)]";
|
|
24
|
+
type GrLinkToneColors = {
|
|
25
|
+
base: string;
|
|
26
|
+
hover: string;
|
|
27
|
+
active: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const linkToneColors: Record<GrLinkTone, GrLinkToneColors>;
|
|
30
|
+
/** Инлайновые CSS-переменные цвета для текущей комбинации `tone` × `variant`. */
|
|
31
|
+
export declare function grLinkColorStyle(options: {
|
|
32
|
+
tone: GrLinkTone;
|
|
33
|
+
variant: GrLinkVariant;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
}): Record<string, string>;
|
|
8
36
|
export declare const disabledStateClass = "cursor-not-allowed opacity-60 text-[var(--muted-fg)]";
|
|
9
37
|
export declare const underlineClasses: readonly string[];
|
|
10
38
|
export declare function grLinkClass(options: {
|
|
11
39
|
size: GrLinkSize;
|
|
12
40
|
underline: GrLinkUnderline;
|
|
13
|
-
variant: GrLinkVariant;
|
|
14
41
|
disabled: boolean;
|
|
15
42
|
}): string;
|
|
43
|
+
export { GR_TONES };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default } from './GrLink.vue';
|
|
2
2
|
export { default as GrLink } from './GrLink.vue';
|
|
3
3
|
export { grLinkConfig } from './config';
|
|
4
|
-
export type { GrLinkSize, GrLinkUnderline, GrLinkVariant } from './grLinkStyles';
|
|
4
|
+
export type { GrLinkSize, GrLinkTone, GrLinkUnderline, GrLinkVariant } from './grLinkStyles';
|
|
5
5
|
export { grLinkSafelist } from './safelist';
|
|
@@ -11,7 +11,7 @@ export interface GrLoadingProps {
|
|
|
11
11
|
spinner?: Component;
|
|
12
12
|
/** Extra classes for the spinner element. */
|
|
13
13
|
spinnerClass?: string;
|
|
14
|
-
/** When `true` (default), the default spinner rotates via `@keyframes
|
|
14
|
+
/** When `true` (default), the default spinner rotates via `@keyframes gr-loading-spin`. */
|
|
15
15
|
animated?: boolean;
|
|
16
16
|
/** Custom CSS `background-color`. When set, disables the default `bg-black/25` dim. */
|
|
17
17
|
background?: string;
|
|
@@ -19,7 +19,7 @@ export declare const panelTransition: {
|
|
|
19
19
|
readonly leaveFrom: "opacity-100 translate-y-0 sm:scale-100";
|
|
20
20
|
readonly leaveTo: "opacity-0 translate-y-2 sm:translate-y-0 sm:scale-95";
|
|
21
21
|
};
|
|
22
|
-
export declare const panelBase = "w-full overflow-hidden relative z-10 border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--
|
|
22
|
+
export declare const panelBase = "w-full overflow-hidden relative z-10 border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--gr-shadow-2)] outline-none";
|
|
23
23
|
export declare const panelWidthBySize: Record<GrModalSize, string>;
|
|
24
24
|
export declare const panelRadiusBySize: Record<GrModalSize, string>;
|
|
25
25
|
export declare const panelHeightBySize: Partial<Record<GrModalSize, string>>;
|
|
@@ -19,6 +19,16 @@ export interface GrNumberInputProps {
|
|
|
19
19
|
min?: number;
|
|
20
20
|
max?: number;
|
|
21
21
|
precision?: number;
|
|
22
|
+
/**
|
|
23
|
+
* BCP-47 локаль для отображения значения (группировка разрядов и разделители
|
|
24
|
+
* через `Intl.NumberFormat`). Работает вместе с `useGrouping`.
|
|
25
|
+
*/
|
|
26
|
+
locale?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Группировать разряды при отображении (когда поле не в фокусе). При фокусе
|
|
29
|
+
* показывается «сырое» значение для редактирования. По умолчанию выключено.
|
|
30
|
+
*/
|
|
31
|
+
useGrouping?: boolean;
|
|
22
32
|
/** Показывать кнопки +/-. */
|
|
23
33
|
controls?: boolean;
|
|
24
34
|
controlsDirection?: GrNumberInputControlsDirection;
|
|
@@ -26,6 +36,13 @@ export interface GrNumberInputProps {
|
|
|
26
36
|
prefixMaxWidth?: string;
|
|
27
37
|
suffixMinWidth?: string;
|
|
28
38
|
suffixMaxWidth?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Фиксированная ширина у prefix/suffix: жёсткая ширина (из `*MaxWidth` →
|
|
41
|
+
* `*MinWidth` → дефолт) + обрезка контента по краю (prefix — справа,
|
|
42
|
+
* suffix — слева). По умолчанию аддоны растягиваются под контент.
|
|
43
|
+
*/
|
|
44
|
+
prefixFixed?: boolean;
|
|
45
|
+
suffixFixed?: boolean;
|
|
29
46
|
/** i18n-friendly aria-label для кнопки "увеличить". */
|
|
30
47
|
increaseLabel?: string;
|
|
31
48
|
/** i18n-friendly aria-label для кнопки "уменьшить". */
|
|
@@ -54,14 +71,18 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
54
71
|
min: undefined;
|
|
55
72
|
max: undefined;
|
|
56
73
|
precision: undefined;
|
|
74
|
+
locale: undefined;
|
|
75
|
+
useGrouping: boolean;
|
|
57
76
|
controls: boolean;
|
|
58
77
|
controlsDirection: string;
|
|
59
78
|
prefixMinWidth: undefined;
|
|
60
79
|
prefixMaxWidth: undefined;
|
|
61
80
|
suffixMinWidth: undefined;
|
|
62
81
|
suffixMaxWidth: undefined;
|
|
63
|
-
|
|
64
|
-
|
|
82
|
+
prefixFixed: boolean;
|
|
83
|
+
suffixFixed: boolean;
|
|
84
|
+
increaseLabel: undefined;
|
|
85
|
+
decreaseLabel: undefined;
|
|
65
86
|
}>>, {
|
|
66
87
|
focus: typeof focus;
|
|
67
88
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -83,14 +104,18 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
83
104
|
min: undefined;
|
|
84
105
|
max: undefined;
|
|
85
106
|
precision: undefined;
|
|
107
|
+
locale: undefined;
|
|
108
|
+
useGrouping: boolean;
|
|
86
109
|
controls: boolean;
|
|
87
110
|
controlsDirection: string;
|
|
88
111
|
prefixMinWidth: undefined;
|
|
89
112
|
prefixMaxWidth: undefined;
|
|
90
113
|
suffixMinWidth: undefined;
|
|
91
114
|
suffixMaxWidth: undefined;
|
|
92
|
-
|
|
93
|
-
|
|
115
|
+
prefixFixed: boolean;
|
|
116
|
+
suffixFixed: boolean;
|
|
117
|
+
increaseLabel: undefined;
|
|
118
|
+
decreaseLabel: undefined;
|
|
94
119
|
}>>> & Readonly<{
|
|
95
120
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
96
121
|
onChange?: ((value: string) => any) | undefined;
|
|
@@ -110,10 +135,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
110
135
|
prefixMaxWidth: string;
|
|
111
136
|
suffixMinWidth: string;
|
|
112
137
|
suffixMaxWidth: string;
|
|
138
|
+
prefixFixed: boolean;
|
|
139
|
+
suffixFixed: boolean;
|
|
113
140
|
min: number;
|
|
114
141
|
decimalSeparator: string;
|
|
115
142
|
step: number;
|
|
116
143
|
precision: number;
|
|
144
|
+
locale: string;
|
|
145
|
+
useGrouping: boolean;
|
|
117
146
|
controls: boolean;
|
|
118
147
|
controlsDirection: GrNumberInputControlsDirection;
|
|
119
148
|
increaseLabel: string;
|
|
@@ -2,26 +2,38 @@
|
|
|
2
2
|
* Пропы пагинации.
|
|
3
3
|
*
|
|
4
4
|
* `total` интерпретируется как общее количество элементов; число страниц
|
|
5
|
-
* вычисляется из `total` и `pageSize`.
|
|
5
|
+
* вычисляется из `total` и `pageSize`. Номера усекаются многоточием
|
|
6
|
+
* (алгоритм boundary/sibling, как у MUI): всегда видны первая/последняя страница
|
|
7
|
+
* и `siblingCount` соседей вокруг текущей.
|
|
6
8
|
*/
|
|
7
9
|
export interface GrPaginationProps {
|
|
8
10
|
page: number;
|
|
9
11
|
pageSize: number;
|
|
10
12
|
total: number;
|
|
11
13
|
pageSizes?: number[];
|
|
14
|
+
/** Сколько соседних страниц показывать вокруг текущей. По умолчанию `1`. */
|
|
15
|
+
siblingCount?: number;
|
|
16
|
+
/** Сколько крайних страниц всегда показывать с каждого края. По умолчанию `1`. */
|
|
17
|
+
boundaryCount?: number;
|
|
12
18
|
}
|
|
13
19
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrPaginationProps>, {
|
|
14
20
|
pageSizes: () => number[];
|
|
21
|
+
siblingCount: number;
|
|
22
|
+
boundaryCount: number;
|
|
15
23
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
24
|
"update:page": (value: number) => void;
|
|
17
25
|
"update:pageSize": (value: number) => void;
|
|
18
26
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrPaginationProps>, {
|
|
19
27
|
pageSizes: () => number[];
|
|
28
|
+
siblingCount: number;
|
|
29
|
+
boundaryCount: number;
|
|
20
30
|
}>>> & Readonly<{
|
|
21
31
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
22
32
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
23
33
|
}>, {
|
|
24
34
|
pageSizes: number[];
|
|
35
|
+
siblingCount: number;
|
|
36
|
+
boundaryCount: number;
|
|
25
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
38
|
declare const _default: typeof __VLS_export;
|
|
27
39
|
export default _default;
|
|
@@ -57,9 +57,9 @@ type __VLS_Slots = {} & {
|
|
|
57
57
|
footer?: (props: typeof __VLS_33) => any;
|
|
58
58
|
};
|
|
59
59
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrPromptDialogProps>, {
|
|
60
|
-
title:
|
|
60
|
+
title: undefined;
|
|
61
61
|
description: undefined;
|
|
62
|
-
label:
|
|
62
|
+
label: undefined;
|
|
63
63
|
placeholder: undefined;
|
|
64
64
|
closeOnBackdrop: boolean;
|
|
65
65
|
closeOnEsc: boolean;
|
|
@@ -69,11 +69,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
69
69
|
headerConfig: undefined;
|
|
70
70
|
footerConfig: undefined;
|
|
71
71
|
bodyConfig: undefined;
|
|
72
|
-
closeLabel:
|
|
72
|
+
closeLabel: undefined;
|
|
73
73
|
buttonSize: undefined;
|
|
74
|
-
confirmText:
|
|
75
|
-
cancelText:
|
|
76
|
-
requiredErrorText:
|
|
74
|
+
confirmText: undefined;
|
|
75
|
+
cancelText: undefined;
|
|
76
|
+
requiredErrorText: undefined;
|
|
77
77
|
confirmVariant: string;
|
|
78
78
|
confirmTone: string;
|
|
79
79
|
required: boolean;
|
|
@@ -88,9 +88,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
88
88
|
confirm: (value: string) => void;
|
|
89
89
|
cancel: () => void;
|
|
90
90
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrPromptDialogProps>, {
|
|
91
|
-
title:
|
|
91
|
+
title: undefined;
|
|
92
92
|
description: undefined;
|
|
93
|
-
label:
|
|
93
|
+
label: undefined;
|
|
94
94
|
placeholder: undefined;
|
|
95
95
|
closeOnBackdrop: boolean;
|
|
96
96
|
closeOnEsc: boolean;
|
|
@@ -100,11 +100,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
100
100
|
headerConfig: undefined;
|
|
101
101
|
footerConfig: undefined;
|
|
102
102
|
bodyConfig: undefined;
|
|
103
|
-
closeLabel:
|
|
103
|
+
closeLabel: undefined;
|
|
104
104
|
buttonSize: undefined;
|
|
105
|
-
confirmText:
|
|
106
|
-
cancelText:
|
|
107
|
-
requiredErrorText:
|
|
105
|
+
confirmText: undefined;
|
|
106
|
+
cancelText: undefined;
|
|
107
|
+
requiredErrorText: undefined;
|
|
108
108
|
confirmVariant: string;
|
|
109
109
|
confirmTone: string;
|
|
110
110
|
required: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type GrSegmentedOption, type GrSegmentedSize, type GrSegmentedValue, type GrSegmentedVariant } from './grSegmentedStyles';
|
|
2
2
|
/**
|
|
3
|
-
* Пропсы публичного
|
|
3
|
+
* Пропсы публичного GR-примитива «Segmented».
|
|
4
4
|
*/
|
|
5
5
|
export interface GrSegmentedProps {
|
|
6
6
|
modelValue: GrSegmentedValue;
|
|
@@ -8,16 +8,16 @@ export type GrSegmentedOption = {
|
|
|
8
8
|
icon?: Component;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const rootBaseClass = "relative inline-grid min-w-0 grid-flow-col items-stretch rounded-[var(--
|
|
11
|
+
export declare const rootBaseClass = "relative inline-grid min-w-0 grid-flow-col items-stretch rounded-[var(--gr-segmented-radius)] p-[var(--gr-segmented-padding)] transition-colors duration-150";
|
|
12
12
|
export declare const rootVariantClassMap: Record<GrSegmentedVariant, string>;
|
|
13
13
|
export declare const rootBlockClass = "w-full";
|
|
14
|
-
export declare const indicatorBaseClass = "pointer-events-none absolute left-0 top-0 rounded-[calc(var(--
|
|
14
|
+
export declare const indicatorBaseClass = "pointer-events-none absolute left-0 top-0 rounded-[calc(var(--gr-segmented-radius)-var(--gr-segmented-padding))] transition-[transform,width,height,opacity] ease-out";
|
|
15
15
|
export declare const indicatorVariantClassMap: Record<GrSegmentedVariant, string>;
|
|
16
|
-
export declare const itemBaseClass = "group/segmented-item relative z-[1] inline-flex min-h-[var(--
|
|
16
|
+
export declare const itemBaseClass = "group/segmented-item relative z-[1] inline-flex min-h-[var(--gr-segmented-min-height)] min-w-0 items-center justify-center gap-2 rounded-[calc(var(--gr-segmented-radius)-var(--gr-segmented-padding))] px-[var(--gr-segmented-item-px)] py-[var(--gr-segmented-item-py)] text-[length:var(--gr-segmented-font-size)] leading-[var(--gr-segmented-line-height)] font-[var(--gr-segmented-font-weight)] text-[var(--gr-segmented-item-color)] transition-colors duration-150 select-none focus:outline-none focus-visible:shadow-[0_0_0_2px_var(--ring),0_0_0_4px_var(--bg)]";
|
|
17
17
|
export declare const itemVariantClassMap: Record<GrSegmentedVariant, string>;
|
|
18
|
-
export declare const itemSelectedClass = "text-[var(--
|
|
18
|
+
export declare const itemSelectedClass = "text-[var(--gr-segmented-item-selected-color)]";
|
|
19
19
|
export declare const itemDisabledClass = "cursor-not-allowed opacity-50";
|
|
20
|
-
export declare const itemEnabledClass = "cursor-pointer hover:text-[var(--
|
|
20
|
+
export declare const itemEnabledClass = "cursor-pointer hover:text-[var(--gr-segmented-item-hover-color)]";
|
|
21
21
|
export declare const itemLabelClass = "truncate";
|
|
22
22
|
export declare const itemIconClass = "h-4 w-4 shrink-0";
|
|
23
23
|
export declare const iconOnlyClass = "gap-0";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type GrSelectModelValue, type GrSelectOption, type GrSelectOptionOrGroup, type GrSelectOptionsView, type GrSelectSize, type GrSelectUnderline, type GrSelectVariant, type GrSelectView } from './grSelectStyles';
|
|
2
2
|
export type { GrSelectModelValue, GrSelectOption, GrSelectOptionGroup, GrSelectOptionOrGroup, GrSelectOptionsView, GrSelectSize, GrSelectUnderline, GrSelectVariant, GrSelectView, } from './grSelectStyles';
|
|
3
3
|
/**
|
|
4
|
-
* Пропсы публичного
|
|
4
|
+
* Пропсы публичного GR-примитива «Select».
|
|
5
5
|
*/
|
|
6
6
|
export interface GrSelectProps {
|
|
7
7
|
modelValue: GrSelectModelValue;
|
|
@@ -102,6 +102,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
102
102
|
disabled: boolean;
|
|
103
103
|
ariaLabel: string;
|
|
104
104
|
placeholder: string;
|
|
105
|
+
clearable: boolean;
|
|
106
|
+
clearLabel: string;
|
|
105
107
|
options: GrSelectOptionOrGroup[];
|
|
106
108
|
underline: GrSelectUnderline;
|
|
107
109
|
multiple: boolean;
|
|
@@ -110,8 +112,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
110
112
|
customValuePlaceholder: string;
|
|
111
113
|
dropdownMaxHeight: number;
|
|
112
114
|
closeOnSelect: boolean;
|
|
113
|
-
clearable: boolean;
|
|
114
|
-
clearLabel: string;
|
|
115
115
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
116
116
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
117
117
|
declare const _default: typeof __VLS_export;
|
|
@@ -6,6 +6,7 @@ export type GrSelectOptionsView = 'native' | 'panel';
|
|
|
6
6
|
export type GrSelectOption = {
|
|
7
7
|
value: string;
|
|
8
8
|
label: string;
|
|
9
|
+
disabled?: boolean;
|
|
9
10
|
};
|
|
10
11
|
/** Группа опций: заголовок `label` + вложенные опции `options`. */
|
|
11
12
|
export type GrSelectOptionGroup = {
|
|
@@ -66,4 +67,4 @@ export declare function grSelectTriggerClass(options: {
|
|
|
66
67
|
variant: GrSelectVariant;
|
|
67
68
|
underline: GrSelectUnderline;
|
|
68
69
|
}): string;
|
|
69
|
-
export declare const grSelectPanelClasses = "rounded-[var(--
|
|
70
|
+
export declare const grSelectPanelClasses = "rounded-[var(--gr-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--gr-shadow-2)] overflow-hidden";
|