@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
|
@@ -7,27 +7,39 @@
|
|
|
7
7
|
.theme-dark,
|
|
8
8
|
.dark {
|
|
9
9
|
/* Surface roles */
|
|
10
|
-
--bg: #0f172a;
|
|
11
|
-
--fg: #f8fafc;
|
|
12
|
-
--card: #1e293b;
|
|
13
|
-
--card-fg: #f8fafc;
|
|
14
|
-
--popover: #1e293b;
|
|
15
|
-
--popover-fg: #f8fafc;
|
|
16
|
-
--muted: #334155;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
10
|
+
--gr-bg: #0f172a;
|
|
11
|
+
--gr-fg: #f8fafc;
|
|
12
|
+
--gr-card: #1e293b;
|
|
13
|
+
--gr-card-fg: #f8fafc;
|
|
14
|
+
--gr-popover: #1e293b;
|
|
15
|
+
--gr-popover-fg: #f8fafc;
|
|
16
|
+
--gr-muted: #334155;
|
|
17
|
+
/* Симметрично light: минимум по фону `--gr-muted`/`--gr-secondary` (#334155).
|
|
18
|
+
Прежний #94a3b8 давал там 4.04, #aab6c7 даёт 5.04. */
|
|
19
|
+
--gr-muted-fg: #aab6c7;
|
|
20
|
+
--gr-secondary: #334155;
|
|
21
|
+
--gr-secondary-fg: #f1f5f9;
|
|
22
|
+
--gr-brd: #334155;
|
|
23
|
+
--gr-input: #334155;
|
|
24
|
+
--gr-ring: #818cf8;
|
|
23
25
|
|
|
24
26
|
/* Action roles */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
/*
|
|
28
|
+
* Primary был единственным тоном, выпадавшим из конвенции тёмной темы
|
|
29
|
+
* (светлая заливка + тёмный текст, как у success/warning/danger/info/azure):
|
|
30
|
+
* оставался светло-тёмным индиго #6366f1 с белым текстом и проваливал сразу
|
|
31
|
+
* все три роли — текст на фоне 4.00, текст на карточке 3.27, белый на
|
|
32
|
+
* заливке 4.47. Светлый индиго с тёмным `-fg` даёт 6.38 / 5.23 / 6.38.
|
|
33
|
+
* Не indigo-400 (#818cf8): это ровно `--gr-info` тёмной темы, и solid-бейджи
|
|
34
|
+
* Primary и Info стали бы неотличимы.
|
|
35
|
+
* Кнопок не касается: GrButton задаёт свой `--gr-button-primary-bg`.
|
|
36
|
+
*/
|
|
37
|
+
--gr-primary: #9d8bfa;
|
|
38
|
+
--gr-primary-fg: #0f172a;
|
|
39
|
+
--gr-accent: #1e1b4b;
|
|
40
|
+
--gr-accent-fg: #c7d2fe;
|
|
41
|
+
--gr-destructive: #ef4444;
|
|
42
|
+
--gr-destructive-fg: #ffffff;
|
|
31
43
|
|
|
32
44
|
/* Status roles */
|
|
33
45
|
--gr-success: #34d399;
|
|
@@ -56,21 +68,21 @@
|
|
|
56
68
|
--gr-azure-text: #bae6fd;
|
|
57
69
|
|
|
58
70
|
/* Data visualization roles */
|
|
59
|
-
--chart-1: #6366f1;
|
|
60
|
-
--chart-2: #34d399;
|
|
61
|
-
--chart-3: #fb923c;
|
|
62
|
-
--chart-4: #818cf8;
|
|
63
|
-
--chart-5: #a78bfa;
|
|
71
|
+
--gr-chart-1: #6366f1;
|
|
72
|
+
--gr-chart-2: #34d399;
|
|
73
|
+
--gr-chart-3: #fb923c;
|
|
74
|
+
--gr-chart-4: #818cf8;
|
|
75
|
+
--gr-chart-5: #a78bfa;
|
|
64
76
|
|
|
65
77
|
/* Navigation roles */
|
|
66
|
-
--sidebar: #1e293b;
|
|
67
|
-
--sidebar-fg: #f8fafc;
|
|
68
|
-
--sidebar-primary: #6366f1;
|
|
69
|
-
--sidebar-primary-fg: #ffffff;
|
|
70
|
-
--sidebar-accent: #334155;
|
|
71
|
-
--sidebar-accent-fg: #f1f5f9;
|
|
72
|
-
--sidebar-brd: #334155;
|
|
73
|
-
--sidebar-ring: #818cf8;
|
|
78
|
+
--gr-sidebar: #1e293b;
|
|
79
|
+
--gr-sidebar-fg: #f8fafc;
|
|
80
|
+
--gr-sidebar-primary: #6366f1;
|
|
81
|
+
--gr-sidebar-primary-fg: #ffffff;
|
|
82
|
+
--gr-sidebar-accent: #334155;
|
|
83
|
+
--gr-sidebar-accent-fg: #f1f5f9;
|
|
84
|
+
--gr-sidebar-brd: #334155;
|
|
85
|
+
--gr-sidebar-ring: #818cf8;
|
|
74
86
|
}
|
|
75
87
|
|
|
76
88
|
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
|
|
@@ -78,14 +90,14 @@
|
|
|
78
90
|
.dark,
|
|
79
91
|
[data-theme='dark'] {
|
|
80
92
|
/* Action role fallbacks */
|
|
81
|
-
--primary-hover: #
|
|
82
|
-
--primary-active: #
|
|
83
|
-
--secondary-hover: #435062;
|
|
84
|
-
--secondary-active: #535f70;
|
|
85
|
-
--brd-hover: #6e7987;
|
|
86
|
-
--brd-active: #8c94a0;
|
|
87
|
-
--destructive-hover: #f05353;
|
|
88
|
-
--destructive-active: #f06161;
|
|
93
|
+
--gr-primary-hover: #a494fa;
|
|
94
|
+
--gr-primary-active: #ac9dfa;
|
|
95
|
+
--gr-secondary-hover: #435062;
|
|
96
|
+
--gr-secondary-active: #535f70;
|
|
97
|
+
--gr-brd-hover: #6e7987;
|
|
98
|
+
--gr-brd-active: #8c94a0;
|
|
99
|
+
--gr-destructive-hover: #f05353;
|
|
100
|
+
--gr-destructive-active: #f06161;
|
|
89
101
|
|
|
90
102
|
/* Status role fallbacks */
|
|
91
103
|
--gr-success-hover: #44d6a1;
|
|
@@ -1,35 +1,51 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/* Surface roles */
|
|
3
|
-
--bg: #f8fafc;
|
|
4
|
-
--fg: #0f172a;
|
|
5
|
-
--card: #ffffff;
|
|
6
|
-
--card-fg: #0f172a;
|
|
7
|
-
--popover: #ffffff;
|
|
8
|
-
--popover-fg: #0f172a;
|
|
9
|
-
--muted: #f1f5f9;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
--gr-bg: #f8fafc;
|
|
4
|
+
--gr-fg: #0f172a;
|
|
5
|
+
--gr-card: #ffffff;
|
|
6
|
+
--gr-card-fg: #0f172a;
|
|
7
|
+
--gr-popover: #ffffff;
|
|
8
|
+
--gr-popover-fg: #0f172a;
|
|
9
|
+
--gr-muted: #f1f5f9;
|
|
10
|
+
/*
|
|
11
|
+
* Вторичный текст обязан проходить AA на САМОМ ТЁМНОМ из фонов, на которых
|
|
12
|
+
* он появляется, а это не страница, а `--gr-secondary` (#e2e8f0). Прежний
|
|
13
|
+
* #64748b держался только на `--gr-bg` (4.55) и `--gr-card` (4.76), но
|
|
14
|
+
* проваливался на `--gr-muted` (4.34) и `--gr-secondary` (3.86) — то есть
|
|
15
|
+
* ровно там, где вторичный текст и живёт: чипы, таблицы, подписи в панелях.
|
|
16
|
+
* #556275 даёт минимум 5.02 по всем четырём фонам.
|
|
17
|
+
*/
|
|
18
|
+
--gr-muted-fg: #556275;
|
|
19
|
+
--gr-secondary: #e2e8f0;
|
|
20
|
+
--gr-secondary-fg: #1e293b;
|
|
21
|
+
--gr-brd: #e2e8f0;
|
|
22
|
+
--gr-input: #e2e8f0;
|
|
23
|
+
--gr-ring: #6366f1;
|
|
16
24
|
|
|
17
25
|
/* Action roles */
|
|
18
|
-
--primary: #4f46e5;
|
|
19
|
-
--primary-fg: #ffffff;
|
|
20
|
-
--accent: #eef2ff;
|
|
21
|
-
--accent-fg: #3730a3;
|
|
22
|
-
--destructive: #dc2626;
|
|
23
|
-
--destructive-fg: #ffffff;
|
|
26
|
+
--gr-primary: #4f46e5;
|
|
27
|
+
--gr-primary-fg: #ffffff;
|
|
28
|
+
--gr-accent: #eef2ff;
|
|
29
|
+
--gr-accent-fg: #3730a3;
|
|
30
|
+
--gr-destructive: #dc2626;
|
|
31
|
+
--gr-destructive-fg: #ffffff;
|
|
24
32
|
|
|
25
33
|
/* Status roles */
|
|
34
|
+
/*
|
|
35
|
+
* `-fg` — цвет текста НА сплошной заливке тоном. У светлых заливок он обязан
|
|
36
|
+
* быть тёмным: белый на `--gr-success` даёт 2.54:1, на `--gr-warning` 2.80:1
|
|
37
|
+
* при пороге AA 4.5 — а это solid-кнопки и бейджи (`grButtonStyles.ts`,
|
|
38
|
+
* `grBadgeStyles.ts`). С `--gr-fg` получаем 7.04 и 6.37, и hover/active,
|
|
39
|
+
* которые уводят заливку в тёмную сторону, остаются выше порога (5.30 / 4.79).
|
|
40
|
+
* В `dark.css` эти токены уже тёмные — там заливки светлее фона.
|
|
41
|
+
*/
|
|
26
42
|
--gr-success: #10b981;
|
|
27
43
|
--gr-success-light: #d1fae5;
|
|
28
|
-
--gr-success-fg: #
|
|
44
|
+
--gr-success-fg: #0f172a;
|
|
29
45
|
--gr-success-text: #065f46;
|
|
30
46
|
--gr-warning: #f97316;
|
|
31
47
|
--gr-warning-light: #ffedd5;
|
|
32
|
-
--gr-warning-fg: #
|
|
48
|
+
--gr-warning-fg: #0f172a;
|
|
33
49
|
--gr-warning-text: #7c2d12;
|
|
34
50
|
--gr-danger: #dc2626;
|
|
35
51
|
--gr-danger-light: #fee2e2;
|
|
@@ -43,40 +59,49 @@
|
|
|
43
59
|
--gr-slate-light: #e2e8f0;
|
|
44
60
|
--gr-slate-fg: #ffffff;
|
|
45
61
|
--gr-slate-text: #334155;
|
|
46
|
-
|
|
62
|
+
/*
|
|
63
|
+
* Azure — единственный тон, который не чинится сменой `-fg`. Тёмный текст
|
|
64
|
+
* проходит на базе (6.44), но hover/active уводят заливку вниз и ломают его
|
|
65
|
+
* (4.36 / 3.01); белый же не проходит на базе (2.77). Выход один — сама
|
|
66
|
+
* заливка: sky-500 `#0ea5e9` слишком светлая для белого текста. `#0077b6` —
|
|
67
|
+
* самое светлое значение, дающее запас по всем трём состояниям
|
|
68
|
+
* (4.87 / 5.44 / 6.02) и заодно поднимающее azure-иконку на `-light`
|
|
69
|
+
* подложке с 2.42 до 4.24. Оттенок остаётся отличимым от `--gr-info`.
|
|
70
|
+
*/
|
|
71
|
+
--gr-azure: #0077b6;
|
|
47
72
|
--gr-azure-light: #e0f2fe;
|
|
48
73
|
--gr-azure-fg: #ffffff;
|
|
49
74
|
--gr-azure-text: #075985;
|
|
50
75
|
|
|
51
76
|
/* Data visualization roles */
|
|
52
|
-
--chart-1: #4f46e5;
|
|
53
|
-
--chart-2: #10b981;
|
|
54
|
-
--chart-3: #f97316;
|
|
55
|
-
--chart-4: #6366f1;
|
|
56
|
-
--chart-5: #8b5cf6;
|
|
77
|
+
--gr-chart-1: #4f46e5;
|
|
78
|
+
--gr-chart-2: #10b981;
|
|
79
|
+
--gr-chart-3: #f97316;
|
|
80
|
+
--gr-chart-4: #6366f1;
|
|
81
|
+
--gr-chart-5: #8b5cf6;
|
|
57
82
|
|
|
58
83
|
/* Navigation roles */
|
|
59
|
-
--sidebar: #ffffff;
|
|
60
|
-
--sidebar-fg: #0f172a;
|
|
61
|
-
--sidebar-primary: #4f46e5;
|
|
62
|
-
--sidebar-primary-fg: #ffffff;
|
|
63
|
-
--sidebar-accent: #f1f5f9;
|
|
64
|
-
--sidebar-accent-fg: #1e293b;
|
|
65
|
-
--sidebar-brd: #e2e8f0;
|
|
66
|
-
--sidebar-ring: #6366f1;
|
|
84
|
+
--gr-sidebar: #ffffff;
|
|
85
|
+
--gr-sidebar-fg: #0f172a;
|
|
86
|
+
--gr-sidebar-primary: #4f46e5;
|
|
87
|
+
--gr-sidebar-primary-fg: #ffffff;
|
|
88
|
+
--gr-sidebar-accent: #f1f5f9;
|
|
89
|
+
--gr-sidebar-accent-fg: #1e293b;
|
|
90
|
+
--gr-sidebar-brd: #e2e8f0;
|
|
91
|
+
--gr-sidebar-ring: #6366f1;
|
|
67
92
|
}
|
|
68
93
|
|
|
69
94
|
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
|
|
70
95
|
:root {
|
|
71
96
|
/* Action role fallbacks */
|
|
72
|
-
--primary-hover: #4a42d6;
|
|
73
|
-
--primary-active: #453ec7;
|
|
74
|
-
--secondary-hover: #d1d7e0;
|
|
75
|
-
--secondary-active: #c0c7d0;
|
|
76
|
-
--brd-hover: #a3a9b5;
|
|
77
|
-
--brd-active: #838a97;
|
|
78
|
-
--destructive-hover: #cc2526;
|
|
79
|
-
--destructive-active: #bb2427;
|
|
97
|
+
--gr-primary-hover: #4a42d6;
|
|
98
|
+
--gr-primary-active: #453ec7;
|
|
99
|
+
--gr-secondary-hover: #d1d7e0;
|
|
100
|
+
--gr-secondary-active: #c0c7d0;
|
|
101
|
+
--gr-brd-hover: #a3a9b5;
|
|
102
|
+
--gr-brd-active: #838a97;
|
|
103
|
+
--gr-destructive-hover: #cc2526;
|
|
104
|
+
--gr-destructive-active: #bb2427;
|
|
80
105
|
|
|
81
106
|
/* Status role fallbacks */
|
|
82
107
|
--gr-success-hover: #10ac7a;
|
|
@@ -89,8 +114,8 @@
|
|
|
89
114
|
--gr-info-active: #5659d1;
|
|
90
115
|
--gr-slate-hover: #435062;
|
|
91
116
|
--gr-slate-active: #3d4a5b;
|
|
92
|
-
--gr-azure-hover: #
|
|
93
|
-
--gr-azure-active: #
|
|
117
|
+
--gr-azure-hover: #016fab;
|
|
118
|
+
--gr-azure-active: #0268a0;
|
|
94
119
|
|
|
95
120
|
/* Component semantic fallbacks */
|
|
96
121
|
/*--gr-category-tree-branch-line-active-color: #c4cdf7;*/
|
package/dist/styles/tokens.css
CHANGED
|
@@ -110,26 +110,26 @@
|
|
|
110
110
|
--gr-z-toast: 1200;
|
|
111
111
|
|
|
112
112
|
/* Derived interaction formulas: action roles */
|
|
113
|
-
--primary-hover: color-mix(in srgb, var(--primary) 92%, var(--fg));
|
|
114
|
-
--primary-active: color-mix(in srgb, var(--primary) 84%, var(--fg));
|
|
115
|
-
--secondary-hover: color-mix(in srgb, var(--secondary) 92%, var(--fg));
|
|
116
|
-
--secondary-active: color-mix(in srgb, var(--secondary) 84%, var(--fg));
|
|
117
|
-
--brd-hover: color-mix(in srgb, var(--brd) 70%, var(--fg));
|
|
118
|
-
--brd-active: color-mix(in srgb, var(--brd) 55%, var(--fg));
|
|
119
|
-
--destructive-hover: color-mix(in srgb, var(--destructive) 92%, var(--fg));
|
|
120
|
-
--destructive-active: color-mix(in srgb, var(--destructive) 84%, var(--fg));
|
|
113
|
+
--gr-primary-hover: color-mix(in srgb, var(--gr-primary) 92%, var(--gr-fg));
|
|
114
|
+
--gr-primary-active: color-mix(in srgb, var(--gr-primary) 84%, var(--gr-fg));
|
|
115
|
+
--gr-secondary-hover: color-mix(in srgb, var(--gr-secondary) 92%, var(--gr-fg));
|
|
116
|
+
--gr-secondary-active: color-mix(in srgb, var(--gr-secondary) 84%, var(--gr-fg));
|
|
117
|
+
--gr-brd-hover: color-mix(in srgb, var(--gr-brd) 70%, var(--gr-fg));
|
|
118
|
+
--gr-brd-active: color-mix(in srgb, var(--gr-brd) 55%, var(--gr-fg));
|
|
119
|
+
--gr-destructive-hover: color-mix(in srgb, var(--gr-destructive) 92%, var(--gr-fg));
|
|
120
|
+
--gr-destructive-active: color-mix(in srgb, var(--gr-destructive) 84%, var(--gr-fg));
|
|
121
121
|
|
|
122
122
|
/* Derived interaction formulas: status roles */
|
|
123
|
-
--gr-success-hover: color-mix(in srgb, var(--gr-success) 92%, var(--fg));
|
|
124
|
-
--gr-success-active: color-mix(in srgb, var(--gr-success) 84%, var(--fg));
|
|
125
|
-
--gr-warning-hover: color-mix(in srgb, var(--gr-warning) 92%, var(--fg));
|
|
126
|
-
--gr-warning-active: color-mix(in srgb, var(--gr-warning) 84%, var(--fg));
|
|
127
|
-
--gr-danger-hover: color-mix(in srgb, var(--gr-danger) 92%, var(--fg));
|
|
128
|
-
--gr-danger-active: color-mix(in srgb, var(--gr-danger) 84%, var(--fg));
|
|
129
|
-
--gr-info-hover: color-mix(in srgb, var(--gr-info) 92%, var(--fg));
|
|
130
|
-
--gr-info-active: color-mix(in srgb, var(--gr-info) 84%, var(--fg));
|
|
131
|
-
--gr-slate-hover: color-mix(in srgb, var(--gr-slate) 92%, var(--fg));
|
|
132
|
-
--gr-slate-active: color-mix(in srgb, var(--gr-slate) 84%, var(--fg));
|
|
133
|
-
--gr-azure-hover: color-mix(in srgb, var(--gr-azure) 92%, var(--fg));
|
|
134
|
-
--gr-azure-active: color-mix(in srgb, var(--gr-azure) 84%, var(--fg));
|
|
123
|
+
--gr-success-hover: color-mix(in srgb, var(--gr-success) 92%, var(--gr-fg));
|
|
124
|
+
--gr-success-active: color-mix(in srgb, var(--gr-success) 84%, var(--gr-fg));
|
|
125
|
+
--gr-warning-hover: color-mix(in srgb, var(--gr-warning) 92%, var(--gr-fg));
|
|
126
|
+
--gr-warning-active: color-mix(in srgb, var(--gr-warning) 84%, var(--gr-fg));
|
|
127
|
+
--gr-danger-hover: color-mix(in srgb, var(--gr-danger) 92%, var(--gr-fg));
|
|
128
|
+
--gr-danger-active: color-mix(in srgb, var(--gr-danger) 84%, var(--gr-fg));
|
|
129
|
+
--gr-info-hover: color-mix(in srgb, var(--gr-info) 92%, var(--gr-fg));
|
|
130
|
+
--gr-info-active: color-mix(in srgb, var(--gr-info) 84%, var(--gr-fg));
|
|
131
|
+
--gr-slate-hover: color-mix(in srgb, var(--gr-slate) 92%, var(--gr-fg));
|
|
132
|
+
--gr-slate-active: color-mix(in srgb, var(--gr-slate) 84%, var(--gr-fg));
|
|
133
|
+
--gr-azure-hover: color-mix(in srgb, var(--gr-azure) 92%, var(--gr-fg));
|
|
134
|
+
--gr-azure-active: color-mix(in srgb, var(--gr-azure) 84%, var(--gr-fg));
|
|
135
135
|
}
|
|
@@ -1,34 +1,45 @@
|
|
|
1
1
|
import type { GrTone } from '../shared/tones';
|
|
2
|
+
import type { GrAlertVariantInput } from './grAlertStyles';
|
|
3
|
+
import './defaults';
|
|
2
4
|
export type GrAlertTone = GrTone;
|
|
3
|
-
export type GrAlertVariant
|
|
4
|
-
|
|
5
|
+
export type { GrAlertVariant, GrAlertVariantInput } from './grAlertStyles';
|
|
6
|
+
/**
|
|
7
|
+
* Режим объявления сообщения скринридеру.
|
|
8
|
+
* `auto` — по тону: `warning`/`danger` перебивают речь (`role="alert"`),
|
|
9
|
+
* остальные ждут паузы (`role="status"`).
|
|
10
|
+
*/
|
|
11
|
+
export type GrAlertLive = 'auto' | 'assertive' | 'polite' | 'off';
|
|
12
|
+
export interface GrAlertProps {
|
|
5
13
|
tone?: GrAlertTone;
|
|
6
|
-
variant?:
|
|
14
|
+
variant?: GrAlertVariantInput;
|
|
7
15
|
title?: string;
|
|
8
16
|
closable?: boolean;
|
|
17
|
+
live?: GrAlertLive;
|
|
9
18
|
backgroundColor?: string;
|
|
10
19
|
textColor?: string;
|
|
11
20
|
borderColor?: string;
|
|
12
|
-
}
|
|
21
|
+
}
|
|
13
22
|
declare var __VLS_6: {};
|
|
14
23
|
type __VLS_Slots = {} & {
|
|
15
24
|
default?: (props: typeof __VLS_6) => any;
|
|
16
25
|
};
|
|
17
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<
|
|
18
|
-
tone:
|
|
19
|
-
variant:
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrAlertProps>, {
|
|
27
|
+
tone: undefined;
|
|
28
|
+
variant: undefined;
|
|
20
29
|
title: undefined;
|
|
21
|
-
closable:
|
|
30
|
+
closable: undefined;
|
|
31
|
+
live: string;
|
|
22
32
|
backgroundColor: undefined;
|
|
23
33
|
textColor: undefined;
|
|
24
34
|
borderColor: undefined;
|
|
25
35
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
36
|
close: () => void;
|
|
27
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<
|
|
28
|
-
tone:
|
|
29
|
-
variant:
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrAlertProps>, {
|
|
38
|
+
tone: undefined;
|
|
39
|
+
variant: undefined;
|
|
30
40
|
title: undefined;
|
|
31
|
-
closable:
|
|
41
|
+
closable: undefined;
|
|
42
|
+
live: string;
|
|
32
43
|
backgroundColor: undefined;
|
|
33
44
|
textColor: undefined;
|
|
34
45
|
borderColor: undefined;
|
|
@@ -36,9 +47,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
36
47
|
onClose?: (() => any) | undefined;
|
|
37
48
|
}>, {
|
|
38
49
|
tone: GrAlertTone;
|
|
39
|
-
variant:
|
|
40
|
-
title: string;
|
|
50
|
+
variant: GrAlertVariantInput;
|
|
41
51
|
closable: boolean;
|
|
52
|
+
title: string;
|
|
53
|
+
live: GrAlertLive;
|
|
42
54
|
backgroundColor: string;
|
|
43
55
|
textColor: string;
|
|
44
56
|
borderColor: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GrTone } from '../shared/tones';
|
|
2
|
+
import type { GrAlertVariantInput } from './grAlertStyles';
|
|
3
|
+
/**
|
|
4
|
+
* Пропы `GrAlert`, настраиваемые глобально через
|
|
5
|
+
* `<GrConfigProvider :component-defaults="{ GrAlert: { … } }">`.
|
|
6
|
+
* Только оформление — см. `GrButton/defaults.ts`.
|
|
7
|
+
*/
|
|
8
|
+
export interface GrAlertConfigurableProps {
|
|
9
|
+
tone: GrTone;
|
|
10
|
+
variant: GrAlertVariantInput;
|
|
11
|
+
closable: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare module '../GrConfigProvider/context' {
|
|
14
|
+
interface GrComponentDefaultsRegistry {
|
|
15
|
+
GrAlert: GrAlertConfigurableProps;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { GrTone } from '../shared/tones';
|
|
2
|
+
/**
|
|
3
|
+
* Цветовая модель `GrAlert`.
|
|
4
|
+
*
|
|
5
|
+
* Модуль намеренно чистый: он оперирует **строками CSS-значений**, а не
|
|
6
|
+
* utility-классами UnoCSS. Классы, живущие только строковыми литералами в
|
|
7
|
+
* `.ts`, не сканируются `granularContent` и требуют ручного safelist — здесь
|
|
8
|
+
* этой проблемы нет по построению, а логику цветов можно тестировать без
|
|
9
|
+
* монтирования компонента.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* `soft` — залитая тоном подложка, тональный текст. Основной вариант.
|
|
13
|
+
* `outline` — фон страницы, тон несут рамка и иконка; текст нейтральный.
|
|
14
|
+
*
|
|
15
|
+
* `light` (устаревший) нормализуется в `soft`: раньше он существовал ровно для
|
|
16
|
+
* одного тона (`warning`) и был набран hex-литералами, то есть не реагировал на
|
|
17
|
+
* смену темы. См. {@link normalizeGrAlertVariant}.
|
|
18
|
+
*/
|
|
19
|
+
export declare const GR_ALERT_VARIANTS: readonly ["soft", "outline"];
|
|
20
|
+
export type GrAlertVariant = typeof GR_ALERT_VARIANTS[number];
|
|
21
|
+
/** То, что компонент принимает в проп `variant`, включая устаревший алиас. */
|
|
22
|
+
export type GrAlertVariantInput = GrAlertVariant | 'light';
|
|
23
|
+
/** Ключ иконки тона. Сама иконка резолвится в SFC — модуль остаётся чистым. */
|
|
24
|
+
export type GrAlertIconKey = 'info' | 'success' | 'warning' | 'danger';
|
|
25
|
+
/** Разрешённые цвета одного алерта — ровно то, что уходит в CSS-переменные. */
|
|
26
|
+
export type GrAlertColors = {
|
|
27
|
+
bg: string;
|
|
28
|
+
border: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
title: string;
|
|
31
|
+
text: string;
|
|
32
|
+
close: string;
|
|
33
|
+
closeHover: string;
|
|
34
|
+
closeHoverBg: string;
|
|
35
|
+
};
|
|
36
|
+
/** Пользовательские переопределения цвета (пропы-эскейпы). */
|
|
37
|
+
export type GrAlertColorOverrides = {
|
|
38
|
+
backgroundColor?: string;
|
|
39
|
+
textColor?: string;
|
|
40
|
+
borderColor?: string;
|
|
41
|
+
};
|
|
42
|
+
export declare function normalizeGrAlertVariant(variant: GrAlertVariantInput): GrAlertVariant;
|
|
43
|
+
export declare function grAlertIconKey(tone: GrTone): GrAlertIconKey;
|
|
44
|
+
export declare function resolveGrAlertColors(tone: GrTone, variant: GrAlertVariant): GrAlertColors;
|
|
45
|
+
/**
|
|
46
|
+
* Пропы-эскейпы поверх тона. `textColor` красит весь текстовый слой целиком
|
|
47
|
+
* (иконка, заголовок, текст, кнопка закрытия) — иначе пользовательский цвет
|
|
48
|
+
* соседствовал бы с тональным и давал грязь.
|
|
49
|
+
*/
|
|
50
|
+
export declare function applyGrAlertOverrides(colors: GrAlertColors, overrides: GrAlertColorOverrides): GrAlertColors;
|
|
51
|
+
/**
|
|
52
|
+
* Публичный контракт кастомизации: переменные `--gr-alert-*` можно
|
|
53
|
+
* переопределить снаружи так же, как их задаёт компонент.
|
|
54
|
+
*/
|
|
55
|
+
export declare function grAlertCssVars(colors: GrAlertColors): Record<string, string>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { default } from './GrAlert.vue';
|
|
2
2
|
export { default as GrAlert } from './GrAlert.vue';
|
|
3
3
|
export { grAlertConfig } from './config';
|
|
4
|
-
export type {
|
|
4
|
+
export type { GrAlertLive, GrAlertProps, GrAlertTone } from './GrAlert.vue';
|
|
5
|
+
export type { GrAlertConfigurableProps } from './defaults';
|
|
6
|
+
export { applyGrAlertOverrides, GR_ALERT_VARIANTS, grAlertCssVars, grAlertIconKey, normalizeGrAlertVariant, resolveGrAlertColors, } from './grAlertStyles';
|
|
7
|
+
export type { GrAlertColorOverrides, GrAlertColors, GrAlertIconKey, GrAlertVariant, GrAlertVariantInput, } from './grAlertStyles';
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { type GrAutocompleteModelValue, type GrAutocompleteOption, type GrAutocompleteSize } from './grAutocompleteStyles';
|
|
2
|
+
export type { GrAutocompleteModelValue, GrAutocompleteOption, GrAutocompleteSize, } from './grAutocompleteStyles';
|
|
3
|
+
/**
|
|
4
|
+
* Публичный GR-примитив «Autocomplete / Combobox» (WAI-ARIA editable combobox).
|
|
5
|
+
*
|
|
6
|
+
* В отличие от `GrSelect` (select-only combobox с кнопкой-триггером), здесь
|
|
7
|
+
* combobox-ом является сам текстовый `<input>`: набранный текст — это поисковый
|
|
8
|
+
* запрос, а выбор опции заполняет поле. Поддерживает локальную фильтрацию,
|
|
9
|
+
* удалённую (async) загрузку через событие `search` + внешний проп `loading`,
|
|
10
|
+
* произвольные значения (`allowCustomValue`) и multiple с удаляемыми chips.
|
|
11
|
+
*/
|
|
12
|
+
export interface GrAutocompleteProps {
|
|
13
|
+
/** Выбранное значение (single — строка, multiple — массив строк). */
|
|
14
|
+
modelValue: GrAutocompleteModelValue;
|
|
15
|
+
/**
|
|
16
|
+
* Доступные опции. Для локального режима — полный список (фильтруется на клиенте).
|
|
17
|
+
* Для remote-режима (`filterable=false`) — список, который родитель обновляет
|
|
18
|
+
* в ответ на событие `search`.
|
|
19
|
+
*/
|
|
20
|
+
options?: GrAutocompleteOption[];
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
size?: GrAutocompleteSize;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
ariaLabel?: string;
|
|
26
|
+
/** Кнопка очистки выбранного значения/запроса. */
|
|
27
|
+
clearable?: boolean;
|
|
28
|
+
/** Внешне управляемое состояние загрузки (для async-сценариев). */
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Локальная фильтрация опций по введённому запросу. Отключите (`false`) для
|
|
32
|
+
* чисто удалённого поиска — тогда `options` показываются как есть, а фильтрацию
|
|
33
|
+
* выполняет сервер по событию `search`.
|
|
34
|
+
*/
|
|
35
|
+
filterable?: boolean;
|
|
36
|
+
/** Кастомный матчер локальной фильтрации. По умолчанию — подстрока в `label`/`value`. */
|
|
37
|
+
filter?: (option: GrAutocompleteOption, query: string) => boolean;
|
|
38
|
+
/** Минимальная длина запроса до эмита `search` (для дебаунса remote-загрузки). */
|
|
39
|
+
minQueryLength?: number;
|
|
40
|
+
/** Задержка дебаунса события `search`, мс. */
|
|
41
|
+
debounce?: number;
|
|
42
|
+
/** Разрешить ввод/коммит значения, которого нет в `options`. */
|
|
43
|
+
allowCustomValue?: boolean;
|
|
44
|
+
/** Закрывать панель после выбора (single всегда закрывает). */
|
|
45
|
+
closeOnSelect?: boolean;
|
|
46
|
+
/** Максимальная высота панели, px. */
|
|
47
|
+
dropdownMaxHeight?: number;
|
|
48
|
+
/** i18n-тексты состояний панели / aria. */
|
|
49
|
+
loadingText?: string;
|
|
50
|
+
noResultsText?: string;
|
|
51
|
+
clearLabel?: string;
|
|
52
|
+
}
|
|
53
|
+
declare var __VLS_13: {
|
|
54
|
+
option: GrAutocompleteOption;
|
|
55
|
+
selected: boolean;
|
|
56
|
+
}, __VLS_15: {}, __VLS_17: {};
|
|
57
|
+
type __VLS_Slots = {} & {
|
|
58
|
+
option?: (props: typeof __VLS_13) => any;
|
|
59
|
+
} & {
|
|
60
|
+
loading?: (props: typeof __VLS_15) => any;
|
|
61
|
+
} & {
|
|
62
|
+
empty?: (props: typeof __VLS_17) => any;
|
|
63
|
+
};
|
|
64
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrAutocompleteProps>, {
|
|
65
|
+
options: undefined;
|
|
66
|
+
multiple: boolean;
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
size: undefined;
|
|
69
|
+
placeholder: undefined;
|
|
70
|
+
ariaLabel: undefined;
|
|
71
|
+
clearable: undefined;
|
|
72
|
+
loading: boolean;
|
|
73
|
+
filterable: boolean;
|
|
74
|
+
filter: undefined;
|
|
75
|
+
minQueryLength: number;
|
|
76
|
+
debounce: number;
|
|
77
|
+
allowCustomValue: boolean;
|
|
78
|
+
closeOnSelect: boolean;
|
|
79
|
+
dropdownMaxHeight: number;
|
|
80
|
+
loadingText: undefined;
|
|
81
|
+
noResultsText: undefined;
|
|
82
|
+
clearLabel: undefined;
|
|
83
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
"update:modelValue": (value: GrAutocompleteModelValue) => void;
|
|
85
|
+
search: (query: string) => void;
|
|
86
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrAutocompleteProps>, {
|
|
87
|
+
options: undefined;
|
|
88
|
+
multiple: boolean;
|
|
89
|
+
disabled: boolean;
|
|
90
|
+
size: undefined;
|
|
91
|
+
placeholder: undefined;
|
|
92
|
+
ariaLabel: undefined;
|
|
93
|
+
clearable: undefined;
|
|
94
|
+
loading: boolean;
|
|
95
|
+
filterable: boolean;
|
|
96
|
+
filter: undefined;
|
|
97
|
+
minQueryLength: number;
|
|
98
|
+
debounce: number;
|
|
99
|
+
allowCustomValue: boolean;
|
|
100
|
+
closeOnSelect: boolean;
|
|
101
|
+
dropdownMaxHeight: number;
|
|
102
|
+
loadingText: undefined;
|
|
103
|
+
noResultsText: undefined;
|
|
104
|
+
clearLabel: undefined;
|
|
105
|
+
}>>> & Readonly<{
|
|
106
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
107
|
+
"onUpdate:modelValue"?: ((value: GrAutocompleteModelValue) => any) | undefined;
|
|
108
|
+
}>, {
|
|
109
|
+
size: GrAutocompleteSize;
|
|
110
|
+
clearable: boolean;
|
|
111
|
+
filter: (option: GrAutocompleteOption, query: string) => boolean;
|
|
112
|
+
loading: boolean;
|
|
113
|
+
options: GrAutocompleteOption[];
|
|
114
|
+
multiple: boolean;
|
|
115
|
+
disabled: boolean;
|
|
116
|
+
placeholder: string;
|
|
117
|
+
ariaLabel: string;
|
|
118
|
+
filterable: boolean;
|
|
119
|
+
minQueryLength: number;
|
|
120
|
+
debounce: number;
|
|
121
|
+
allowCustomValue: boolean;
|
|
122
|
+
closeOnSelect: boolean;
|
|
123
|
+
dropdownMaxHeight: number;
|
|
124
|
+
loadingText: string;
|
|
125
|
+
noResultsText: string;
|
|
126
|
+
clearLabel: string;
|
|
127
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
128
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
129
|
+
declare const _default: typeof __VLS_export;
|
|
130
|
+
export default _default;
|
|
131
|
+
type __VLS_TypePropsToOption<T> = {
|
|
132
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
133
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
134
|
+
} : {
|
|
135
|
+
type: import('vue').PropType<T[K]>;
|
|
136
|
+
required: true;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
type __VLS_WithDefaults<P, D> = {
|
|
140
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
141
|
+
default: D[K];
|
|
142
|
+
}> : P[K];
|
|
143
|
+
};
|
|
144
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
145
|
+
new (): {
|
|
146
|
+
$slots: S;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
150
|
+
[K in keyof T]: T[K];
|
|
151
|
+
} : {
|
|
152
|
+
[K in keyof T as K]: T[K];
|
|
153
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grAutocompleteConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrAutocomplete">;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GrAutocompleteSize } from './grAutocompleteStyles';
|
|
2
|
+
/**
|
|
3
|
+
* Пропы `GrAutocomplete`, настраиваемые глобально через
|
|
4
|
+
* `<GrConfigProvider :component-defaults="{ GrAutocomplete: { … } }">`.
|
|
5
|
+
* Только оформление и поведение по умолчанию — см. `GrButton/defaults.ts`.
|
|
6
|
+
*/
|
|
7
|
+
export interface GrAutocompleteConfigurableProps {
|
|
8
|
+
size: GrAutocompleteSize;
|
|
9
|
+
clearable: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare module '../GrConfigProvider/context' {
|
|
12
|
+
interface GrComponentDefaultsRegistry {
|
|
13
|
+
GrAutocomplete: GrAutocompleteConfigurableProps;
|
|
14
|
+
}
|
|
15
|
+
}
|