@feugene/granularity 0.11.0 → 0.13.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/dist/GrBadge.css +1 -1
- package/dist/GrFormFile.css +1 -1
- package/dist/GrToaster.css +1 -1
- package/dist/GrTree.css +1 -1
- package/dist/chunks/{config-ClhKPJvg.js → config-23WtUiAL.js} +1 -1
- package/dist/chunks/config-23WtUiAL.js.map +1 -0
- package/dist/chunks/config-8Pcutu1j.js.map +1 -0
- package/dist/chunks/{config-1uSYl98Y.js → config-B0i5r8kH.js} +1 -1
- package/dist/chunks/config-B0i5r8kH.js.map +1 -0
- package/dist/chunks/{config-BOlr7qw7.js → config-B5Rknzkd.js} +33 -39
- package/dist/chunks/config-B5Rknzkd.js.map +1 -0
- package/dist/chunks/config-B7W9VlZ7.js +5 -0
- package/dist/chunks/config-B7W9VlZ7.js.map +1 -0
- package/dist/chunks/config-BDSHekVC.js +84 -0
- package/dist/chunks/config-BDSHekVC.js.map +1 -0
- package/dist/chunks/config-BLHqZhy-.js.map +1 -0
- package/dist/chunks/{config-eYLZYOUS2.js → config-BMKNHFMD2.js} +15 -15
- package/dist/chunks/config-BMKNHFMD2.js.map +1 -0
- package/dist/chunks/config-BUHuGBik2.js.map +1 -0
- package/dist/chunks/config-BWiPnygb.js +5 -0
- package/dist/chunks/config-BWiPnygb.js.map +1 -0
- package/dist/chunks/config-BX1JTrkV.js.map +1 -0
- package/dist/chunks/config-BZFUM3Ky.js +75 -0
- package/dist/chunks/config-BZFUM3Ky.js.map +1 -0
- package/dist/chunks/{config-DUcu1D68.js → config-BmNT0Fmx.js} +2 -2
- package/dist/chunks/config-BmNT0Fmx.js.map +1 -0
- package/dist/chunks/{config-C49QUoJL.js → config-BvVq2gbd.js} +1 -1
- package/dist/chunks/{config-C49QUoJL.js.map → config-BvVq2gbd.js.map} +1 -1
- package/dist/chunks/{config-CrG1XiE7.js → config-C4hJxXDa.js} +5 -5
- package/dist/chunks/config-C4hJxXDa.js.map +1 -0
- package/dist/chunks/config-CB4RVt9M.js +66 -0
- package/dist/chunks/config-CB4RVt9M.js.map +1 -0
- package/dist/chunks/config-COE_vZ-l.js +52 -0
- package/dist/chunks/config-COE_vZ-l.js.map +1 -0
- package/dist/chunks/{config-CziwTDDL.js → config-CPdmr7tC.js} +1 -1
- package/dist/chunks/{config-CziwTDDL.js.map → config-CPdmr7tC.js.map} +1 -1
- package/dist/chunks/{config-BIRO0vDJ2.js → config-DPDFYzIa.js} +2 -2
- package/dist/chunks/config-DPDFYzIa.js.map +1 -0
- package/dist/chunks/{config-DnvPqu4g.js → config-DRKXJ9PW2.js} +1 -1
- package/dist/chunks/config-DRKXJ9PW2.js.map +1 -0
- package/dist/chunks/config-DToHb81g.js +45 -0
- package/dist/chunks/config-DToHb81g.js.map +1 -0
- package/dist/chunks/{config-jBp9wVv-.js → config-D_myOZbA.js} +1 -1
- package/dist/chunks/{config-jBp9wVv-.js.map → config-D_myOZbA.js.map} +1 -1
- package/dist/chunks/{config-D_R56_gT.js → config-Dg_6FTvJ.js} +1 -1
- package/dist/chunks/config-Dg_6FTvJ.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-DpqOnJiz.js.map +1 -0
- package/dist/chunks/config-Dqy0rPPO2.js.map +1 -0
- package/dist/chunks/config-Droqn55j.js +8 -0
- package/dist/chunks/config-Droqn55j.js.map +1 -0
- package/dist/chunks/{config-C4snOIXg.js → config-KXuionN3.js} +1 -1
- package/dist/chunks/{config-C4snOIXg.js.map → config-KXuionN3.js.map} +1 -1
- package/dist/chunks/config-LGrZIdaZ.js.map +1 -0
- package/dist/chunks/{config-DezDih8_.js → config-LqDC_rvp.js} +2 -2
- package/dist/chunks/config-LqDC_rvp.js.map +1 -0
- package/dist/chunks/config-QaIc_gRa2.js.map +1 -0
- package/dist/chunks/config-U4m9PSql2.js.map +1 -0
- package/dist/chunks/{config-B7IIWGt_2.js → config-XmTv4pnI.js} +2 -2
- package/dist/chunks/config-XmTv4pnI.js.map +1 -0
- package/dist/chunks/config-eXB87DOi.js +9 -0
- package/dist/chunks/config-eXB87DOi.js.map +1 -0
- package/dist/chunks/{config-C7NpDrfO.js → config-gZWR75Bh2.js} +1 -1
- package/dist/chunks/config-gZWR75Bh2.js.map +1 -0
- package/dist/chunks/config-ipvU0lzP.js.map +1 -0
- package/dist/chunks/config-xR4XVmcy2.js.map +1 -0
- package/dist/chunks/context-Bfrgsluh.js +9 -0
- package/dist/chunks/context-Bfrgsluh.js.map +1 -0
- package/dist/chunks/context-DdNIxa1w.js +9 -0
- package/dist/chunks/context-DdNIxa1w.js.map +1 -0
- package/dist/chunks/context-DfWYCBB-.js +129 -0
- package/dist/chunks/context-DfWYCBB-.js.map +1 -0
- package/dist/chunks/{en-BdtiS2d3.js → en-Cr6EkG8c.js} +52 -4
- package/dist/chunks/en-Cr6EkG8c.js.map +1 -0
- package/dist/chunks/{es-DBhctWg-.js → es-DuYb1Qju.js} +3 -3
- package/dist/chunks/{es-DBhctWg-.js.map → es-DuYb1Qju.js.map} +1 -1
- package/dist/chunks/{es-BGRMZbe9.js → es-i08e9Sdo.js} +52 -4
- package/dist/chunks/es-i08e9Sdo.js.map +1 -0
- package/dist/chunks/{grBadgeStyles-DrycBuKT.js → grBadgeStyles-D3dFjr_N.js} +12 -12
- package/dist/chunks/grBadgeStyles-D3dFjr_N.js.map +1 -0
- package/dist/chunks/{grButtonStyles-C7Yga_Q1.js → grButtonStyles-DRBgDmOp.js} +28 -28
- package/dist/chunks/grButtonStyles-DRBgDmOp.js.map +1 -0
- package/dist/chunks/{grDropdownStyles-B_-DKytw.js → grDropdownStyles-HBPkghVr.js} +2 -2
- package/dist/chunks/{grDropdownStyles-B_-DKytw.js.map → grDropdownStyles-HBPkghVr.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-DWd3i05Q.js → grModalStyles-D8-shx9A.js} +1 -1
- package/dist/chunks/grModalStyles-D8-shx9A.js.map +1 -0
- package/dist/chunks/{grSelectStyles-CLK5hRd3.js → grSelectStyles-CwMUQrBZ.js} +12 -12
- package/dist/chunks/grSelectStyles-CwMUQrBZ.js.map +1 -0
- package/dist/chunks/{grStyle-Blc9otAx.js → grStyle-CdvxTXPH.js} +2 -2
- package/dist/chunks/grStyle-CdvxTXPH.js.map +1 -0
- package/dist/chunks/{granularityI18n-DoV7Ca2m.js → granularityI18n-SH0I--GW.js} +1 -1
- package/dist/chunks/{granularityI18n-DoV7Ca2m.js.map → granularityI18n-SH0I--GW.js.map} +1 -1
- package/dist/chunks/{ru-BFCnOiML.js → ru-B5XOOYZt.js} +52 -4
- package/dist/chunks/ru-B5XOOYZt.js.map +1 -0
- package/dist/chunks/{safelist-Do2RtzLB.js → safelist-BvO8HPnE.js} +1 -1
- package/dist/chunks/{safelist-Do2RtzLB.js.map → safelist-BvO8HPnE.js.map} +1 -1
- package/dist/chunks/shared-D-v9lit0.js +188 -0
- package/dist/chunks/shared-D-v9lit0.js.map +1 -0
- package/dist/chunks/{transition-TLFw4KBn.js → useScrollLock-K7kaP2Ud.js} +52 -1
- package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js +251 -0
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js +499 -0
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js.map +1 -0
- package/dist/components/GrAutocomplete/index.js +3 -0
- package/dist/components/GrAvatar/chunks/{GrAvatar-96CpTCq5.js → GrAvatar-CTOUVBF7.js} +1 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-CTOUVBF7.js.map +1 -0
- package/dist/components/GrAvatar/index.js +1 -1
- package/dist/components/GrBadge/chunks/{GrBadge-B77XlaqE.js → GrBadge-D1jefy4S.js} +12 -8
- package/dist/components/GrBadge/chunks/GrBadge-D1jefy4S.js.map +1 -0
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-CcktMOdg.js → GrBadgeWrap-DWDxHdiQ.js} +1 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DWDxHdiQ.js.map +1 -0
- package/dist/components/GrBadgeWrap/index.js +1 -1
- package/dist/components/GrBottomNav/chunks/{GrBottomNav-usuMgG8_.js → GrBottomNav-vSE4LXmk.js} +2 -2
- package/dist/components/GrBottomNav/chunks/GrBottomNav-vSE4LXmk.js.map +1 -0
- package/dist/components/GrBottomNav/index.js +1 -1
- package/dist/components/GrButton/chunks/{GrButton-BlffdeJr.js → GrButton-DCi4CUpo.js} +18 -14
- package/dist/components/GrButton/chunks/GrButton-DCi4CUpo.js.map +1 -0
- package/dist/components/GrButton/index.js +4 -4
- package/dist/components/GrCard/chunks/{GrCard-DUNMkuHW.js → GrCard-CxCjyHMb.js} +1 -1
- package/dist/components/GrCard/chunks/GrCard-CxCjyHMb.js.map +1 -0
- package/dist/components/GrCard/index.js +1 -1
- package/dist/components/GrCheckbox/chunks/{GrCheckbox-DJhzZZdO.js → GrCheckbox-BbIDRXtl.js} +5 -5
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BbIDRXtl.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +1 -1
- package/dist/components/GrCollapse/chunks/{GrCollapse-CPPLh_xU.js → GrCollapse-DApXztn8.js} +6 -6
- package/dist/components/GrCollapse/chunks/GrCollapse-DApXztn8.js.map +1 -0
- package/dist/components/GrCollapse/index.js +2 -2
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js +410 -0
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +3 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js +57 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js.map +1 -0
- package/dist/components/GrConfigProvider/index.js +4 -0
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-BWYKCsHd.js → GrConfirmDialog-e4120mWw.js} +5 -5
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-e4120mWw.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +1 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js +307 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-5DAS-1Lb.js → GrDialog-BPMvDHOz.js} +6 -6
- package/dist/components/GrDialog/chunks/GrDialog-BPMvDHOz.js.map +1 -0
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/{GrDialogService-DY_fmaMu.js → GrDialogService-CYXCTGm3.js} +36 -11
- package/dist/components/GrDialogService/chunks/GrDialogService-CYXCTGm3.js.map +1 -0
- package/dist/components/GrDialogService/index.js +2 -2
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js +54 -0
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js.map +1 -0
- package/dist/components/GrDivider/index.js +3 -0
- package/dist/components/GrDrawer/chunks/{GrDrawer-D1kzsjXN.js → GrDrawer-KevdZ5BB.js} +41 -17
- package/dist/components/GrDrawer/chunks/GrDrawer-KevdZ5BB.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/{GrDropdown-BXb5Cxxf.js → GrDropdown-BKoy8hm-.js} +91 -5
- package/dist/components/GrDropdown/chunks/GrDropdown-BKoy8hm-.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-DFEJLPcV.js → GrDropdownMenu-zCatXzmt.js} +11 -11
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-zCatXzmt.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +1 -1
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-CA3BiTV7.js → GrEmptyState-CNb0BzjG.js} +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CNb0BzjG.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +1 -1
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-DvWPpiJS.js → GrFileUpload-CnLgUGDF.js} +12 -12
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CnLgUGDF.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +1 -1
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js +234 -0
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js.map +1 -0
- package/dist/components/GrForm/index.js +4 -0
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js +100 -0
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -2
- package/dist/components/GrFormFile/chunks/{GrFormFile-CXcqqdvV.js → GrFormFile-CqacSbUl.js} +9 -9
- package/dist/components/GrFormFile/chunks/GrFormFile-CqacSbUl.js.map +1 -0
- package/dist/components/GrFormFile/index.js +1 -1
- package/dist/components/GrFormSection/chunks/{GrFormSection-Ce21jcgo.js → GrFormSection-C3w9DQJf.js} +1 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-C3w9DQJf.js.map +1 -0
- package/dist/components/GrFormSection/index.js +1 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-OCUIrNh2.js → GrImageViewer-DDLJkvIU.js} +312 -223
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DDLJkvIU.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js +337 -0
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-zMgFqp2g.js → GrInputTag-BMk9jm42.js} +6 -6
- package/dist/components/GrInputTag/chunks/GrInputTag-BMk9jm42.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js +22 -0
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -0
- package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js → GrLink-BP0YrnL9.js} +1 -1
- package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js.map → GrLink-BP0YrnL9.js.map} +1 -1
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-Dx772Ns4.js → GrList-5RA-tZzE.js} +3 -3
- package/dist/components/GrList/chunks/GrList-5RA-tZzE.js.map +1 -0
- package/dist/components/GrList/index.js +1 -1
- package/dist/components/GrLoading/chunks/{GrLoading--X_7rdbb.js → GrLoading-fRDtVfi7.js} +3 -3
- package/dist/components/GrLoading/chunks/GrLoading-fRDtVfi7.js.map +1 -0
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/{GrModal-BkjW9jZS.js → GrModal-BTu1-5eY.js} +4 -57
- package/dist/components/GrModal/chunks/GrModal-BTu1-5eY.js.map +1 -0
- package/dist/components/GrModal/index.js +3 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-DW3MiIIf.js → GrNavbar-keKT_mIM.js} +3 -3
- package/dist/components/GrNavbar/chunks/GrNavbar-keKT_mIM.js.map +1 -0
- package/dist/components/GrNavbar/index.js +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-CldPIWQx.js → GrNumberInput-l9ZOHG9D.js} +112 -28
- package/dist/components/GrNumberInput/chunks/GrNumberInput-l9ZOHG9D.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-Bu9wv6it.js → GrPagination-C5Y69CuK.js} +59 -16
- package/dist/components/GrPagination/chunks/GrPagination-C5Y69CuK.js.map +1 -0
- package/dist/components/GrPagination/index.js +1 -1
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-CC3z-Zqp.js → GrProgressBar-Dqg4Fj9S.js} +2 -2
- package/dist/components/GrProgressBar/chunks/GrProgressBar-Dqg4Fj9S.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-TmWXbpEP.js → GrPromptDialog-DNUjRVB9.js} +7 -7
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DNUjRVB9.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-CPTixXaY.js → GrRadio-DlhxPGqf.js} +5 -7
- package/dist/components/GrRadio/chunks/GrRadio-DlhxPGqf.js.map +1 -0
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-vKZCbkCp.js → GrRadioGroup-BXt9iw4q.js} +7 -5
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BXt9iw4q.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js +241 -0
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js.map +1 -0
- package/dist/components/GrRating/index.js +3 -0
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js → GrResponseErrorBanner-2CvM7Z08.js} +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js.map → GrResponseErrorBanner-2CvM7Z08.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js → GrResponseErrorBanner-C8NGx8pE.js} +3 -3
- package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js.map → GrResponseErrorBanner-C8NGx8pE.js.map} +1 -1
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-C1y0UXpQ.js → GrSegmented-CTd3n4PA.js} +14 -11
- package/dist/components/GrSegmented/chunks/GrSegmented-CTd3n4PA.js.map +1 -0
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-RShK21lK.js → GrSelect-Dn3FgJ3Z.js} +293 -87
- package/dist/components/GrSelect/chunks/GrSelect-Dn3FgJ3Z.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/{GrSidebar-DkWozzwA.js → GrSidebar-cvnzBfj3.js} +7 -7
- package/dist/components/GrSidebar/chunks/GrSidebar-cvnzBfj3.js.map +1 -0
- package/dist/components/GrSidebar/index.js +1 -1
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-DsN-_CDZ.js → GrSkeleton-BucA5F4J.js} +1 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-BucA5F4J.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js +286 -0
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js.map +1 -0
- package/dist/components/GrSlider/index.js +3 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js +128 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js.map +1 -0
- package/dist/components/GrStatistic/index.js +3 -0
- package/dist/components/GrSwitch/chunks/{GrSwitch-DAioyccZ.js → GrSwitch-CJdRvS0s.js} +16 -7
- package/dist/components/GrSwitch/chunks/GrSwitch-CJdRvS0s.js.map +1 -0
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js +68 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +3 -0
- package/dist/components/GrTable/chunks/{GrTable-Db3hRnKA.js → GrTable-sNvsA8wa.js} +24 -11
- package/dist/components/GrTable/chunks/GrTable-sNvsA8wa.js.map +1 -0
- package/dist/components/GrTable/index.js +2 -2
- package/dist/components/GrTabs/chunks/{GrTabs-Z-FDJUr_.js → GrTabs-BqTak0SR.js} +9 -4
- package/dist/components/GrTabs/chunks/GrTabs-BqTak0SR.js.map +1 -0
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-D56YxhKq.js → GrTextarea-DIYBAPpP.js} +16 -6
- package/dist/components/GrTextarea/chunks/GrTextarea-DIYBAPpP.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/{GrToaster-eI8YvnIo.js → GrToaster-BVHjIHcM.js} +52 -11
- package/dist/components/GrToaster/chunks/GrToaster-BVHjIHcM.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-BeyZ8ssR.js → GrTooltip-BMKH2lIx.js} +3 -3
- package/dist/components/GrTooltip/chunks/GrTooltip-BMKH2lIx.js.map +1 -0
- package/dist/components/GrTooltip/index.js +1 -1
- package/dist/components/GrTree/chunks/{GrTree-D3ODe2dB.js → GrTree-_12ChXRQ.js} +108 -9
- package/dist/components/GrTree/chunks/GrTree-_12ChXRQ.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-B2xBKs5Q.js → GrTreeSelect-CdaLG7Xq.js} +10 -10
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-CdaLG7Xq.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useToast.js +3 -1
- package/dist/composables/useToast.js.map +1 -1
- package/dist/directives/loading.js +1 -1
- package/dist/granular-provider-node.js +6 -6
- package/dist/granular-provider-node.js.map +1 -1
- package/dist/granular-provider.js +1 -1
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.js +112 -87
- package/dist/index.js.map +1 -1
- package/dist/styles/base.css +30 -8
- package/dist/styles/index.css +6 -3
- package/dist/styles/preflight.css +8 -4
- package/dist/styles/themes/dark.css +52 -40
- package/dist/styles/themes/light.css +70 -45
- package/dist/styles/tokens.css +20 -20
- package/dist/types/src/components/GrAlert/GrAlert.vue.d.ts +26 -14
- package/dist/types/src/components/GrAlert/defaults.d.ts +17 -0
- package/dist/types/src/components/GrAlert/grAlertStyles.d.ts +55 -0
- package/dist/types/src/components/GrAlert/index.d.ts +4 -1
- package/dist/types/src/components/GrAutocomplete/GrAutocomplete.vue.d.ts +153 -0
- package/dist/types/src/components/GrAutocomplete/config.d.ts +1 -0
- package/dist/types/src/components/GrAutocomplete/defaults.d.ts +15 -0
- package/dist/types/src/components/GrAutocomplete/grAutocompleteStyles.d.ts +27 -0
- package/dist/types/src/components/GrAutocomplete/index.d.ts +6 -0
- package/dist/types/src/components/GrAutocomplete/safelist.d.ts +1 -0
- package/dist/types/src/components/GrAvatar/GrAvatar.vue.d.ts +1 -1
- package/dist/types/src/components/GrBadge/GrBadge.vue.d.ts +7 -7
- package/dist/types/src/components/GrBadge/defaults.d.ts +15 -0
- package/dist/types/src/components/GrBadge/index.d.ts +1 -0
- package/dist/types/src/components/GrBadgeWrap/GrBadgeWrap.vue.d.ts +1 -1
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +12 -12
- package/dist/types/src/components/GrButton/defaults.d.ts +25 -0
- package/dist/types/src/components/GrButton/grButtonStyles.d.ts +2 -2
- package/dist/types/src/components/GrButton/index.d.ts +1 -0
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +4 -4
- package/dist/types/src/components/GrCollapse/GrCollapse.vue.d.ts +2 -2
- package/dist/types/src/components/GrCollapse/GrCollapseItem.vue.d.ts +1 -1
- package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +128 -0
- package/dist/types/src/components/GrCommandPalette/config.d.ts +1 -0
- package/dist/types/src/components/GrCommandPalette/filtering.d.ts +35 -0
- package/dist/types/src/components/GrCommandPalette/grCommandPaletteStyles.d.ts +20 -0
- package/dist/types/src/components/GrCommandPalette/hotkey.d.ts +23 -0
- package/dist/types/src/components/GrCommandPalette/index.d.ts +6 -0
- package/dist/types/src/components/GrCommandPalette/safelist.d.ts +1 -0
- package/dist/types/src/components/GrConfigProvider/GrConfigProvider.vue.d.ts +59 -0
- package/dist/types/src/components/GrConfigProvider/config.d.ts +1 -0
- package/dist/types/src/components/GrConfigProvider/context.d.ts +131 -0
- package/dist/types/src/components/GrConfigProvider/index.d.ts +5 -0
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +2 -2
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +48 -4
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +1 -1
- package/dist/types/src/components/GrDialogService/store.d.ts +18 -0
- 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 +5 -5
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +8 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +7 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +1 -1
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +3 -3
- package/dist/types/src/components/GrForm/GrForm.vue.d.ts +93 -0
- package/dist/types/src/components/GrForm/config.d.ts +1 -0
- package/dist/types/src/components/GrForm/context.d.ts +27 -0
- package/dist/types/src/components/GrForm/index.d.ts +6 -0
- package/dist/types/src/components/GrForm/validation.d.ts +52 -0
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +25 -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 +4 -4
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +7 -3
- 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 +49 -10
- package/dist/types/src/components/GrInput/defaults.d.ts +18 -0
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +1 -1
- package/dist/types/src/components/GrInput/index.d.ts +1 -0
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +3 -3
- 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 +3 -3
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +3 -3
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +25 -9
- package/dist/types/src/components/GrNumberInput/defaults.d.ts +14 -0
- package/dist/types/src/components/GrNumberInput/index.d.ts +1 -0
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +18 -0
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +4 -4
- package/dist/types/src/components/GrRadio/GrRadio.vue.d.ts +5 -5
- package/dist/types/src/components/GrRadio/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRadio/grRadioStyles.d.ts +3 -3
- package/dist/types/src/components/GrRadio/index.d.ts +1 -0
- package/dist/types/src/components/GrRadioGroup/GrRadioGroup.vue.d.ts +4 -4
- package/dist/types/src/components/GrRadioGroup/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRadioGroup/index.d.ts +1 -0
- package/dist/types/src/components/GrRating/GrRating.vue.d.ts +124 -0
- package/dist/types/src/components/GrRating/config.d.ts +1 -0
- package/dist/types/src/components/GrRating/defaults.d.ts +14 -0
- package/dist/types/src/components/GrRating/grRatingStyles.d.ts +21 -0
- package/dist/types/src/components/GrRating/index.d.ts +6 -0
- package/dist/types/src/components/GrRating/safelist.d.ts +1 -0
- package/dist/types/src/components/GrResponseErrorBanner/GrUploadErrorBanner.vue.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +7 -7
- package/dist/types/src/components/GrSegmented/defaults.d.ts +15 -0
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/index.d.ts +1 -0
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +57 -17
- package/dist/types/src/components/GrSelect/defaults.d.ts +17 -0
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +3 -3
- package/dist/types/src/components/GrSelect/index.d.ts +1 -0
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +2 -2
- package/dist/types/src/components/GrSkeleton/GrSkeleton.vue.d.ts +1 -1
- package/dist/types/src/components/GrSlider/GrSlider.vue.d.ts +88 -0
- package/dist/types/src/components/GrSlider/config.d.ts +1 -0
- package/dist/types/src/components/GrSlider/defaults.d.ts +14 -0
- package/dist/types/src/components/GrSlider/grSliderStyles.d.ts +36 -0
- package/dist/types/src/components/GrSlider/index.d.ts +6 -0
- package/dist/types/src/components/GrSlider/safelist.d.ts +1 -0
- package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +116 -0
- package/dist/types/src/components/GrStatistic/config.d.ts +1 -0
- package/dist/types/src/components/GrStatistic/formatStatisticValue.d.ts +16 -0
- package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +24 -0
- package/dist/types/src/components/GrStatistic/index.d.ts +6 -0
- package/dist/types/src/components/GrStatistic/safelist.d.ts +1 -0
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +4 -4
- package/dist/types/src/components/GrSwitch/defaults.d.ts +14 -0
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
- package/dist/types/src/components/GrSwitch/index.d.ts +1 -0
- 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/GrTable/GrTable.vue.d.ts +16 -0
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -0
- package/dist/types/src/components/GrTextarea/GrTextarea.vue.d.ts +5 -5
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +19 -2
- package/dist/types/src/components/GrToaster/index.d.ts +1 -1
- package/dist/types/src/components/GrTooltip/GrTooltip.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 +1 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
- package/dist/types/src/composables/internal/useScrollLock.d.ts +24 -0
- package/dist/types/src/composables/useToast.d.ts +24 -0
- package/dist/types/src/granular-provider/shared.d.ts +10 -0
- package/dist/types/src/i18n/messages/en.d.ts +84 -0
- package/dist/types/src/i18n/messages/es.d.ts +84 -0
- package/dist/types/src/i18n/messages/ru.d.ts +84 -0
- package/dist/types/src/index.d.ts +10 -0
- package/dist/web-types.json +1642 -356
- package/package.json +41 -1
- package/dist/chunks/config-1uSYl98Y.js.map +0 -1
- package/dist/chunks/config-8Pcutu1j2.js.map +0 -1
- package/dist/chunks/config-B7IIWGt_2.js.map +0 -1
- package/dist/chunks/config-BIRO0vDJ2.js.map +0 -1
- package/dist/chunks/config-BLHqZhy-2.js.map +0 -1
- package/dist/chunks/config-BOlr7qw7.js.map +0 -1
- package/dist/chunks/config-BUHuGBik.js.map +0 -1
- package/dist/chunks/config-BX1JTrkV2.js.map +0 -1
- package/dist/chunks/config-C7NpDrfO.js.map +0 -1
- package/dist/chunks/config-ClhKPJvg.js.map +0 -1
- package/dist/chunks/config-Cpi9Mh2J.js.map +0 -1
- package/dist/chunks/config-CrG1XiE7.js.map +0 -1
- package/dist/chunks/config-DUcu1D68.js.map +0 -1
- package/dist/chunks/config-D_R56_gT.js.map +0 -1
- package/dist/chunks/config-DezDih8_.js.map +0 -1
- package/dist/chunks/config-DnvPqu4g.js.map +0 -1
- package/dist/chunks/config-DpqOnJiz2.js.map +0 -1
- package/dist/chunks/config-LGrZIdaZ2.js.map +0 -1
- package/dist/chunks/config-QaIc_gRa.js.map +0 -1
- package/dist/chunks/config-U4m9PSql.js.map +0 -1
- package/dist/chunks/config-eYLZYOUS2.js.map +0 -1
- package/dist/chunks/config-ipvU0lzP2.js.map +0 -1
- package/dist/chunks/config-xR4XVmcy.js.map +0 -1
- package/dist/chunks/en-BdtiS2d3.js.map +0 -1
- package/dist/chunks/es-BGRMZbe9.js.map +0 -1
- package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +0 -1
- package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +0 -1
- package/dist/chunks/grModalStyles-DWd3i05Q.js.map +0 -1
- package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +0 -1
- package/dist/chunks/grStyle-Blc9otAx.js.map +0 -1
- package/dist/chunks/ru-BFCnOiML.js.map +0 -1
- package/dist/chunks/shared-ChvcQgDl.js +0 -168
- package/dist/chunks/shared-ChvcQgDl.js.map +0 -1
- package/dist/chunks/transition-TLFw4KBn.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js +0 -163
- package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +0 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-96CpTCq5.js.map +0 -1
- package/dist/components/GrBadge/chunks/GrBadge-B77XlaqE.js.map +0 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CcktMOdg.js.map +0 -1
- package/dist/components/GrBottomNav/chunks/GrBottomNav-usuMgG8_.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +0 -1
- package/dist/components/GrCollapse/chunks/GrCollapse-CPPLh_xU.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-BWYKCsHd.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-ptbARmJ3.js +0 -179
- package/dist/components/GrDataTable/chunks/GrDataTable-ptbARmJ3.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-5DAS-1Lb.js.map +0 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-DY_fmaMu.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-D1kzsjXN.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BXb5Cxxf.js.map +0 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-DFEJLPcV.js.map +0 -1
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CA3BiTV7.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-BujNQrw8.js +0 -35
- package/dist/components/GrFormField/chunks/GrFormField-BujNQrw8.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +0 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-Ce21jcgo.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-OCUIrNh2.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js +0 -188
- package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +0 -1
- package/dist/components/GrList/chunks/GrList-Dx772Ns4.js.map +0 -1
- package/dist/components/GrLoading/chunks/GrLoading--X_7rdbb.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-BkjW9jZS.js.map +0 -1
- package/dist/components/GrNavbar/chunks/GrNavbar-DW3MiIIf.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CldPIWQx.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-Bu9wv6it.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-CC3z-Zqp.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-TmWXbpEP.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-CPTixXaY.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-vKZCbkCp.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-C1y0UXpQ.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-RShK21lK.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +0 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DsN-_CDZ.js.map +0 -1
- package/dist/components/GrSwitch/chunks/GrSwitch-DAioyccZ.js.map +0 -1
- package/dist/components/GrTable/chunks/GrTable-Db3hRnKA.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-Z-FDJUr_.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-D56YxhKq.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-eI8YvnIo.js.map +0 -1
- package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-D3ODe2dB.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-B2xBKs5Q.js.map +0 -1
- package/dist/chunks/{config-8Pcutu1j2.js → config-8Pcutu1j.js} +0 -0
- package/dist/chunks/{config-BLHqZhy-2.js → config-BLHqZhy-.js} +0 -0
- package/dist/chunks/{config-BUHuGBik.js → config-BUHuGBik2.js} +0 -0
- package/dist/chunks/{config-BX1JTrkV2.js → config-BX1JTrkV.js} +0 -0
- package/dist/chunks/{config-DpqOnJiz2.js → config-DpqOnJiz.js} +0 -0
- package/dist/chunks/{config-Cpi9Mh2J.js → config-Dqy0rPPO2.js} +1 -1
- /package/dist/chunks/{config-LGrZIdaZ2.js → config-LGrZIdaZ.js} +0 -0
- /package/dist/chunks/{config-QaIc_gRa.js → config-QaIc_gRa2.js} +0 -0
- /package/dist/chunks/{config-U4m9PSql.js → config-U4m9PSql2.js} +0 -0
- /package/dist/chunks/{config-ipvU0lzP2.js → config-ipvU0lzP.js} +0 -0
- /package/dist/chunks/{config-xR4XVmcy.js → config-xR4XVmcy2.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type GrAutocompleteSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
2
|
+
/** Опция автокомплита. Значение и метка — строки (как у `GrSelect`). */
|
|
3
|
+
export type GrAutocompleteOption = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type GrAutocompleteModelValue = string | string[];
|
|
9
|
+
/**
|
|
10
|
+
* Оболочка (визуально повторяет `GrInput`): бордер + focus-ring по `focus-within`,
|
|
11
|
+
* т.к. фокус живёт на вложенном `<input role="combobox">`. Flex-контейнер с
|
|
12
|
+
* `flex-wrap` — чтобы chips в multiple-режиме переносились и коробка росла в высоту.
|
|
13
|
+
*/
|
|
14
|
+
export declare const autocompleteShellBase = "relative flex w-full flex-wrap items-center gap-1 rounded-md border bg-[var(--gr-bg)] text-[var(--gr-fg)] transition-colors duration-150 focus-within:ring-2 focus-within:ring-[var(--gr-ring)]";
|
|
15
|
+
export declare const autocompleteSizeClassBySize: Record<GrAutocompleteSize, string>;
|
|
16
|
+
export declare const autocompleteChipClass = "inline-flex max-w-full items-center gap-1 rounded-[6px] bg-[color-mix(in_srgb,var(--gr-muted)_35%,transparent)] px-1.5 py-0.5 text-[12px] leading-tight text-[var(--gr-fg)]";
|
|
17
|
+
export declare function autocompleteShellClass(options: {
|
|
18
|
+
size: GrAutocompleteSize;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
invalid: boolean;
|
|
21
|
+
}): string;
|
|
22
|
+
/**
|
|
23
|
+
* Панель списка опций — тот же «язык» поверхностей, что у `GrSelect`
|
|
24
|
+
* (card + бордер + shadow-2 + скругление). Держим локальную копию строки,
|
|
25
|
+
* чтобы не тянуть зависимость от `GrSelect` (компоненты гранулярно независимы).
|
|
26
|
+
*/
|
|
27
|
+
export declare const autocompletePanelClasses = "rounded-[var(--gr-radius-xl)] border border-[var(--gr-brd)] bg-[var(--gr-card)] text-[var(--gr-card-fg)] shadow-[var(--gr-shadow-2)] overflow-hidden";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './GrAutocomplete.vue';
|
|
2
|
+
export { default as GrAutocomplete } from './GrAutocomplete.vue';
|
|
3
|
+
export { grAutocompleteConfig } from './config';
|
|
4
|
+
export type { GrAutocompleteConfigurableProps } from './defaults';
|
|
5
|
+
export type { GrAutocompleteModelValue, GrAutocompleteOption, GrAutocompleteProps, GrAutocompleteSize, } from './GrAutocomplete.vue';
|
|
6
|
+
export { grAutocompleteSafelist } from './safelist';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grAutocompleteSafelist: string[];
|
|
@@ -21,8 +21,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
21
21
|
shape: string;
|
|
22
22
|
}>>> & Readonly<{}>, {
|
|
23
23
|
size: number;
|
|
24
|
-
src: string;
|
|
25
24
|
alt: string;
|
|
25
|
+
src: string;
|
|
26
26
|
shape: GrAvatarShape;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -11,20 +11,20 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
default?: (props: typeof __VLS_1) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
14
|
-
tone:
|
|
14
|
+
tone: undefined;
|
|
15
15
|
dark: boolean;
|
|
16
|
-
size:
|
|
17
|
-
radius:
|
|
16
|
+
size: undefined;
|
|
17
|
+
radius: undefined;
|
|
18
18
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
19
|
-
tone:
|
|
19
|
+
tone: undefined;
|
|
20
20
|
dark: boolean;
|
|
21
|
-
size:
|
|
22
|
-
radius:
|
|
21
|
+
size: undefined;
|
|
22
|
+
radius: undefined;
|
|
23
23
|
}>>> & Readonly<{}>, {
|
|
24
24
|
tone: GrBadgeTone;
|
|
25
25
|
size: GrBadgeSize;
|
|
26
|
-
dark: boolean;
|
|
27
26
|
radius: GrBadgeRadius;
|
|
27
|
+
dark: boolean;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GrBadgeRadius, GrBadgeSize, GrBadgeTone } from './grBadgeStyles';
|
|
2
|
+
/**
|
|
3
|
+
* Пропы `GrBadge`, настраиваемые глобально через `componentDefaults`.
|
|
4
|
+
* Только оформление — см. `GrButton/defaults.ts`.
|
|
5
|
+
*/
|
|
6
|
+
export interface GrBadgeConfigurableProps {
|
|
7
|
+
tone: GrBadgeTone;
|
|
8
|
+
size: GrBadgeSize;
|
|
9
|
+
radius: GrBadgeRadius;
|
|
10
|
+
}
|
|
11
|
+
declare module '../GrConfigProvider/context' {
|
|
12
|
+
interface GrComponentDefaultsRegistry {
|
|
13
|
+
GrBadge: GrBadgeConfigurableProps;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default } from './GrBadge.vue';
|
|
2
2
|
export { default as GrBadge } from './GrBadge.vue';
|
|
3
3
|
export { grBadgeConfig } from './config';
|
|
4
|
+
export type { GrBadgeConfigurableProps } from './defaults';
|
|
4
5
|
export type { GrBadgeRadius, GrBadgeSize, GrBadgeTone } from './grBadgeStyles';
|
|
5
6
|
export { grBadgeSafelist } from './safelist';
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
13
13
|
value: undefined;
|
|
14
14
|
dot: boolean;
|
|
15
15
|
}>>> & Readonly<{}>, {
|
|
16
|
-
value: string | number;
|
|
17
16
|
dot: boolean;
|
|
17
|
+
value: string | number;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -23,12 +23,12 @@ type __VLS_Slots = {} & {
|
|
|
23
23
|
default?: (props: typeof __VLS_15) => any;
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
26
|
-
variant:
|
|
27
|
-
tone:
|
|
28
|
-
size:
|
|
26
|
+
variant: undefined;
|
|
27
|
+
tone: undefined;
|
|
28
|
+
size: undefined;
|
|
29
29
|
loading: boolean;
|
|
30
30
|
disabled: boolean;
|
|
31
|
-
square:
|
|
31
|
+
square: undefined;
|
|
32
32
|
type: string;
|
|
33
33
|
ariaLabel: undefined;
|
|
34
34
|
as: undefined;
|
|
@@ -37,12 +37,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
37
37
|
rel: undefined;
|
|
38
38
|
external: boolean;
|
|
39
39
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
40
|
-
variant:
|
|
41
|
-
tone:
|
|
42
|
-
size:
|
|
40
|
+
variant: undefined;
|
|
41
|
+
tone: undefined;
|
|
42
|
+
size: undefined;
|
|
43
43
|
loading: boolean;
|
|
44
44
|
disabled: boolean;
|
|
45
|
-
square:
|
|
45
|
+
square: undefined;
|
|
46
46
|
type: string;
|
|
47
47
|
ariaLabel: undefined;
|
|
48
48
|
as: undefined;
|
|
@@ -53,15 +53,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
53
53
|
}>>> & Readonly<{}>, {
|
|
54
54
|
tone: GrButtonTone;
|
|
55
55
|
variant: GrButtonVariant;
|
|
56
|
-
type: "button" | "submit" | "reset";
|
|
57
|
-
square: boolean;
|
|
58
56
|
size: GrButtonSize;
|
|
57
|
+
square: boolean;
|
|
58
|
+
type: "button" | "submit" | "reset";
|
|
59
|
+
target: string;
|
|
60
|
+
href: string;
|
|
59
61
|
loading: boolean;
|
|
60
62
|
disabled: boolean;
|
|
61
63
|
ariaLabel: string;
|
|
62
64
|
as: string | Component;
|
|
63
|
-
href: string;
|
|
64
|
-
target: string;
|
|
65
65
|
rel: string;
|
|
66
66
|
external: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { GrButtonSize, GrButtonTone, GrButtonVariant } from './grButtonStyles';
|
|
2
|
+
/**
|
|
3
|
+
* Пропы `GrButton`, которые можно задать глобально через
|
|
4
|
+
* `<GrConfigProvider :component-defaults="{ GrButton: { … } }">`.
|
|
5
|
+
*
|
|
6
|
+
* Набор закрытый и осознанный: только оформление. `modelValue`, обработчики и
|
|
7
|
+
* всё, что относится к конкретному экземпляру, через конфиг настраиваться не
|
|
8
|
+
* должно — иначе получим глобальное состояние, которое ищется часами.
|
|
9
|
+
*/
|
|
10
|
+
export interface GrButtonConfigurableProps {
|
|
11
|
+
variant: GrButtonVariant;
|
|
12
|
+
tone: GrButtonTone;
|
|
13
|
+
size: GrButtonSize;
|
|
14
|
+
square: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Регистрация контракта в открытом реестре провайдера. Живёт здесь, а не в
|
|
18
|
+
* `GrConfigProvider`, чтобы провайдер не знал про конкретные компоненты: тип
|
|
19
|
+
* приезжает к потребителю ровно тогда, когда он импортирует сам `GrButton`.
|
|
20
|
+
*/
|
|
21
|
+
declare module '../GrConfigProvider/context' {
|
|
22
|
+
interface GrComponentDefaultsRegistry {
|
|
23
|
+
GrButton: GrButtonConfigurableProps;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -22,8 +22,8 @@ export type GrButtonToneTokens = {
|
|
|
22
22
|
borderHover: string;
|
|
23
23
|
borderActive: string;
|
|
24
24
|
};
|
|
25
|
-
export declare const base = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-50 disabled:cursor-not-allowed";
|
|
26
|
-
export declare const grButtonBaseClass = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-50 disabled:cursor-not-allowed";
|
|
25
|
+
export declare const base = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] disabled:opacity-50 disabled:cursor-not-allowed";
|
|
26
|
+
export declare const grButtonBaseClass = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] disabled:opacity-50 disabled:cursor-not-allowed";
|
|
27
27
|
export declare const sizes: Record<GrButtonSize, string>;
|
|
28
28
|
export declare const squareSizes: Record<GrButtonSize, string>;
|
|
29
29
|
export declare const tones: Record<GrButtonTone, GrButtonToneTokens>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default } from './GrButton.vue';
|
|
2
2
|
export { default as GrButton } from './GrButton.vue';
|
|
3
3
|
export { grButtonConfig } from './config';
|
|
4
|
+
export type { GrButtonConfigurableProps } from './defaults';
|
|
4
5
|
export type { GrButtonSize, GrButtonTone, GrButtonVariant } from './grButtonStyles';
|
|
5
6
|
export { grButtonClass } from './grButtonStyles';
|
|
6
7
|
export { grButtonClassTokens, grButtonSafelist } from './safelist';
|
|
@@ -38,12 +38,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
38
38
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
form: string;
|
|
41
|
-
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
disabled: boolean;
|
|
42
44
|
modelValue: boolean;
|
|
45
|
+
value: string;
|
|
43
46
|
required: boolean;
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
name: string;
|
|
46
|
-
id: string;
|
|
47
47
|
indeterminate: boolean;
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
49
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -31,11 +31,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
31
31
|
disabled: boolean;
|
|
32
32
|
divided: boolean;
|
|
33
33
|
}>>> & Readonly<{
|
|
34
|
-
"onUpdate:modelValue"?: ((value: GrCollapseModelValue) => any) | undefined;
|
|
35
34
|
onChange?: ((value: GrCollapseModelValue) => any) | undefined;
|
|
35
|
+
"onUpdate:modelValue"?: ((value: GrCollapseModelValue) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
modelValue: GrCollapseValue | GrCollapseValue[];
|
|
38
37
|
disabled: boolean;
|
|
38
|
+
modelValue: GrCollapseValue | GrCollapseValue[];
|
|
39
39
|
accordion: boolean;
|
|
40
40
|
divided: boolean;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
}>>> & Readonly<{}>, {
|
|
29
29
|
title: string;
|
|
30
|
-
disabled: boolean;
|
|
31
30
|
name: GrCollapseValue;
|
|
31
|
+
disabled: boolean;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { type GrCommandFilter, type GrCommandItem } from './filtering';
|
|
2
|
+
import { type GrCommandPaletteSize } from './grCommandPaletteStyles';
|
|
3
|
+
export type { GrCommandFilter, GrCommandGroup, GrCommandItem } from './filtering';
|
|
4
|
+
export type { GrCommandPaletteSize } from './grCommandPaletteStyles';
|
|
5
|
+
/**
|
|
6
|
+
* Публичный GR-примитив «Command palette» (⌘K) — модальный поиск по командам
|
|
7
|
+
* приложения с группировкой, подсказками сочетаний и клавиатурной навигацией.
|
|
8
|
+
*
|
|
9
|
+
* A11y: WAI-ARIA combobox поверх модалки — `role="combobox"` на поле ввода,
|
|
10
|
+
* `role="listbox"` на списке, `aria-activedescendant` на активной команде
|
|
11
|
+
* (фокус остаётся в поле). Esc, фокус-ловушка и блокировка скролла приходят
|
|
12
|
+
* из `GrModal`.
|
|
13
|
+
*
|
|
14
|
+
* Открытие по глобальному сочетанию (`hotkey`, по умолчанию `mod+k` — Cmd на
|
|
15
|
+
* macOS, Ctrl на прочих) компонент берёт на себя; передайте `hotkey: null`,
|
|
16
|
+
* чтобы управлять открытием только через `v-model`.
|
|
17
|
+
*/
|
|
18
|
+
export interface GrCommandPaletteProps {
|
|
19
|
+
/** Открыта ли палитра. */
|
|
20
|
+
modelValue: boolean;
|
|
21
|
+
/** Плоский список команд; группировка — по полю `group` самой команды. */
|
|
22
|
+
items?: GrCommandItem[];
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
size?: GrCommandPaletteSize;
|
|
25
|
+
/** Глобальное сочетание открытия. `null` — не вешать слушатель. */
|
|
26
|
+
hotkey?: string | null;
|
|
27
|
+
/** Локальная фильтрация по запросу. `false` — фильтрует владелец по событию `search`. */
|
|
28
|
+
filterable?: boolean;
|
|
29
|
+
/** Кастомный матчер локальной фильтрации. */
|
|
30
|
+
filter?: GrCommandFilter;
|
|
31
|
+
/** Внешне управляемое состояние загрузки (для remote-поиска). */
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
/** Закрывать палитру после выбора команды. */
|
|
34
|
+
closeOnSelect?: boolean;
|
|
35
|
+
/** Максимальная высота списка, px. */
|
|
36
|
+
maxHeight?: number;
|
|
37
|
+
/** Показывать подсказку сочетания в поле ввода. */
|
|
38
|
+
showHotkeyHint?: boolean;
|
|
39
|
+
emptyText?: string;
|
|
40
|
+
ariaLabel?: string;
|
|
41
|
+
}
|
|
42
|
+
declare var __VLS_16: {
|
|
43
|
+
item: GrCommandItem;
|
|
44
|
+
active: boolean;
|
|
45
|
+
}, __VLS_24: {
|
|
46
|
+
query: string;
|
|
47
|
+
}, __VLS_26: {};
|
|
48
|
+
type __VLS_Slots = {} & {
|
|
49
|
+
item?: (props: typeof __VLS_16) => any;
|
|
50
|
+
} & {
|
|
51
|
+
empty?: (props: typeof __VLS_24) => any;
|
|
52
|
+
} & {
|
|
53
|
+
footer?: (props: typeof __VLS_26) => any;
|
|
54
|
+
};
|
|
55
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrCommandPaletteProps>, {
|
|
56
|
+
items: undefined;
|
|
57
|
+
placeholder: undefined;
|
|
58
|
+
size: string;
|
|
59
|
+
hotkey: string;
|
|
60
|
+
filterable: boolean;
|
|
61
|
+
filter: undefined;
|
|
62
|
+
loading: boolean;
|
|
63
|
+
closeOnSelect: boolean;
|
|
64
|
+
maxHeight: number;
|
|
65
|
+
showHotkeyHint: boolean;
|
|
66
|
+
emptyText: undefined;
|
|
67
|
+
ariaLabel: undefined;
|
|
68
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
|
+
"update:modelValue": (value: boolean) => void;
|
|
70
|
+
select: (item: GrCommandItem) => void;
|
|
71
|
+
search: (query: string) => void;
|
|
72
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrCommandPaletteProps>, {
|
|
73
|
+
items: undefined;
|
|
74
|
+
placeholder: undefined;
|
|
75
|
+
size: string;
|
|
76
|
+
hotkey: string;
|
|
77
|
+
filterable: boolean;
|
|
78
|
+
filter: undefined;
|
|
79
|
+
loading: boolean;
|
|
80
|
+
closeOnSelect: boolean;
|
|
81
|
+
maxHeight: number;
|
|
82
|
+
showHotkeyHint: boolean;
|
|
83
|
+
emptyText: undefined;
|
|
84
|
+
ariaLabel: undefined;
|
|
85
|
+
}>>> & Readonly<{
|
|
86
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
87
|
+
onSelect?: ((item: GrCommandItem) => any) | undefined;
|
|
88
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
size: GrCommandPaletteSize;
|
|
91
|
+
filter: GrCommandFilter;
|
|
92
|
+
loading: boolean;
|
|
93
|
+
maxHeight: number;
|
|
94
|
+
placeholder: string;
|
|
95
|
+
ariaLabel: string;
|
|
96
|
+
filterable: boolean;
|
|
97
|
+
closeOnSelect: boolean;
|
|
98
|
+
items: GrCommandItem[];
|
|
99
|
+
hotkey: string | null;
|
|
100
|
+
showHotkeyHint: boolean;
|
|
101
|
+
emptyText: string;
|
|
102
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
103
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
104
|
+
declare const _default: typeof __VLS_export;
|
|
105
|
+
export default _default;
|
|
106
|
+
type __VLS_TypePropsToOption<T> = {
|
|
107
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
108
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
109
|
+
} : {
|
|
110
|
+
type: import('vue').PropType<T[K]>;
|
|
111
|
+
required: true;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
type __VLS_WithDefaults<P, D> = {
|
|
115
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
116
|
+
default: D[K];
|
|
117
|
+
}> : P[K];
|
|
118
|
+
};
|
|
119
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
120
|
+
new (): {
|
|
121
|
+
$slots: S;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
125
|
+
[K in keyof T]: T[K];
|
|
126
|
+
} : {
|
|
127
|
+
[K in keyof T as K]: T[K];
|
|
128
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grCommandPaletteConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrCommandPalette">;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Команда палитры. `id` обязателен — он же ключ рендера и цель `aria-activedescendant`. */
|
|
2
|
+
export type GrCommandItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** Пояснение под меткой. */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** UnoCSS-класс иконки (например `i-lucide-file-plus`). */
|
|
8
|
+
icon?: string;
|
|
9
|
+
/** Подсказка сочетания клавиш — массив клавиш, каждая рисуется отдельным `GrKbd`. */
|
|
10
|
+
shortcut?: string[];
|
|
11
|
+
/** Заголовок группы, под которой команда показывается в списке. */
|
|
12
|
+
group?: string;
|
|
13
|
+
/** Дополнительные слова для поиска (синонимы, транслитерация). */
|
|
14
|
+
keywords?: string[];
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Команды, сгруппированные для рендера: порядок групп — порядок первого вхождения. */
|
|
18
|
+
export type GrCommandGroup = {
|
|
19
|
+
/** `undefined` — команды без группы (рендерятся без заголовка). */
|
|
20
|
+
name: string | undefined;
|
|
21
|
+
items: GrCommandItem[];
|
|
22
|
+
};
|
|
23
|
+
export type GrCommandFilter = (item: GrCommandItem, query: string) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Матчер по умолчанию: подстрока (без учёта регистра) в метке, описании,
|
|
26
|
+
* названии группы или ключевых словах.
|
|
27
|
+
*/
|
|
28
|
+
export declare function matchCommandItem(item: GrCommandItem, query: string): boolean;
|
|
29
|
+
export declare function filterCommandItems(items: GrCommandItem[], query: string, filter?: GrCommandFilter): GrCommandItem[];
|
|
30
|
+
/**
|
|
31
|
+
* Раскладывает плоский список по группам, сохраняя порядок первого появления
|
|
32
|
+
* группы. Команды без `group` собираются в единственную безымянную группу,
|
|
33
|
+
* которая остаётся на своём месте в общем порядке.
|
|
34
|
+
*/
|
|
35
|
+
export declare function groupCommandItems(items: GrCommandItem[]): GrCommandGroup[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type GrCommandPaletteSize = 'md' | 'lg' | 'xl';
|
|
2
|
+
/**
|
|
3
|
+
* Кастомизация через CSS-переменные:
|
|
4
|
+
*
|
|
5
|
+
* - `--gr-command-active-bg` — фон активной (подсвеченной) команды.
|
|
6
|
+
* - `--gr-command-list-max-height` — максимальная высота списка (иначе — проп `maxHeight`).
|
|
7
|
+
*/
|
|
8
|
+
export declare const commandPaletteModalSizeBySize: Record<GrCommandPaletteSize, 'md' | 'lg' | 'xl'>;
|
|
9
|
+
export declare const commandSearchRowClass = "flex items-center gap-2 border-b border-[var(--gr-brd)] px-4";
|
|
10
|
+
export declare const commandSearchInputClass = "min-w-0 flex-1 bg-transparent py-3.5 text-[15px] text-[var(--gr-fg)] placeholder:text-[var(--gr-muted-fg)] focus:outline-none";
|
|
11
|
+
export declare const commandGroupLabelClass = "px-3 pb-1 pt-3 text-[11px] font-medium uppercase tracking-wide text-[var(--gr-muted-fg)]";
|
|
12
|
+
export declare const commandItemBaseClass = "flex w-full items-center gap-3 rounded-[10px] px-3 py-2 text-left text-[14px] text-[var(--gr-fg)]";
|
|
13
|
+
export declare const commandItemActiveClass = "bg-[var(--gr-command-active-bg,color-mix(in_srgb,var(--gr-muted)_45%,transparent))]";
|
|
14
|
+
export declare const commandItemDisabledClass = "cursor-not-allowed opacity-50";
|
|
15
|
+
export declare function commandItemClass(options: {
|
|
16
|
+
active: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
}): string;
|
|
19
|
+
export declare const commandEmptyClass = "px-4 py-10 text-center text-[13px] text-[var(--gr-muted-fg)]";
|
|
20
|
+
export declare const commandFooterClass = "flex items-center gap-3 border-t border-[var(--gr-brd)] px-4 py-2 text-[11px] text-[var(--gr-muted-fg)]";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Разбор и матчинг сочетания открытия палитры.
|
|
3
|
+
*
|
|
4
|
+
* Директива `v-hotkey` здесь не подходит: ей нужен смонтированный элемент, а
|
|
5
|
+
* палитра в закрытом состоянии не рендерит ничего (весь UI живёт внутри
|
|
6
|
+
* `GrModal`, который скрыт). Поэтому — минимальный собственный матчер на
|
|
7
|
+
* `window`, с тем же синтаксисом комбинаций плюс токен `mod`.
|
|
8
|
+
*/
|
|
9
|
+
export type ParsedCommandHotkey = {
|
|
10
|
+
key: string;
|
|
11
|
+
ctrl: boolean;
|
|
12
|
+
meta: boolean;
|
|
13
|
+
alt: boolean;
|
|
14
|
+
shift: boolean;
|
|
15
|
+
/** `mod` — Cmd на macOS, Ctrl на остальных платформах. */
|
|
16
|
+
mod: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function parseCommandHotkey(combo: string): ParsedCommandHotkey | null;
|
|
19
|
+
/** macOS определяем по платформе — от неё зависит, чем является `mod`. */
|
|
20
|
+
export declare function isAppleDevice(): boolean;
|
|
21
|
+
export declare function matchesCommandHotkey(event: KeyboardEvent, hotkey: ParsedCommandHotkey, apple?: boolean): boolean;
|
|
22
|
+
/** Человекочитаемые клавиши для подсказки в поле ввода (`⌘` / `Ctrl`). */
|
|
23
|
+
export declare function formatCommandHotkey(hotkey: ParsedCommandHotkey, apple?: boolean): string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './GrCommandPalette.vue';
|
|
2
|
+
export { default as GrCommandPalette } from './GrCommandPalette.vue';
|
|
3
|
+
export { grCommandPaletteConfig } from './config';
|
|
4
|
+
export { filterCommandItems, groupCommandItems, matchCommandItem, } from './filtering';
|
|
5
|
+
export type { GrCommandFilter, GrCommandGroup, GrCommandItem, GrCommandPaletteProps, GrCommandPaletteSize, } from './GrCommandPalette.vue';
|
|
6
|
+
export { grCommandPaletteSafelist } from './safelist';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grCommandPaletteSafelist: string[];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type GranularityI18nAdapter } from '../../i18n/adapter';
|
|
2
|
+
import { type GrComponentDefaults, type GrComponentSize } from './context';
|
|
3
|
+
export type { GrComponentDefaults, GrComponentSize } from './context';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** Дефолтный размер контролов для вложенных компонентов. */
|
|
6
|
+
size?: GrComponentSize;
|
|
7
|
+
/** Дефолтные пропсы по компонентам: `{ GrButton: { variant: 'secondary' } }`. */
|
|
8
|
+
componentDefaults?: GrComponentDefaults;
|
|
9
|
+
/** Адаптер переводов (fint-i18n-совместимый). Прокидывается вложенным компонентам. */
|
|
10
|
+
i18n?: GranularityI18nAdapter | null;
|
|
11
|
+
/** Тег обёртки. По умолчанию прозрачный `<div style="display:contents">`. */
|
|
12
|
+
tag?: string;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_8: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_8) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
19
|
+
size: undefined;
|
|
20
|
+
componentDefaults: undefined;
|
|
21
|
+
i18n: undefined;
|
|
22
|
+
tag: string;
|
|
23
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
24
|
+
size: undefined;
|
|
25
|
+
componentDefaults: undefined;
|
|
26
|
+
i18n: undefined;
|
|
27
|
+
tag: string;
|
|
28
|
+
}>>> & Readonly<{}>, {
|
|
29
|
+
size: GrComponentSize;
|
|
30
|
+
componentDefaults: GrComponentDefaults;
|
|
31
|
+
tag: string;
|
|
32
|
+
i18n: GranularityI18nAdapter | null;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_TypePropsToOption<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
40
|
+
} : {
|
|
41
|
+
type: import('vue').PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
}> : P[K];
|
|
49
|
+
};
|
|
50
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
56
|
+
[K in keyof T]: T[K];
|
|
57
|
+
} : {
|
|
58
|
+
[K in keyof T as K]: T[K];
|
|
59
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grConfigProviderConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrConfigProvider">;
|