@feugene/granularity 0.4.0 → 0.4.1
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/chunks/_plugin-vue_export-helper-BG_EqiDU.js +8 -0
- package/dist/chunks/adapter-C7fKeUa4.js +6 -0
- package/dist/chunks/adapter-C7fKeUa4.js.map +1 -0
- package/dist/chunks/arrow-up-DNXrMoAI.js +25 -0
- package/dist/chunks/arrow-up-DNXrMoAI.js.map +1 -0
- package/dist/chunks/classTokens-BPeBXNzu.js +8 -0
- package/dist/chunks/classTokens-BPeBXNzu.js.map +1 -0
- package/dist/chunks/config-2wgwWaAB.js +10 -0
- package/dist/chunks/config-2wgwWaAB.js.map +1 -0
- package/dist/chunks/config-BKRmlivc.js +10 -0
- package/dist/chunks/config-BKRmlivc.js.map +1 -0
- package/dist/chunks/config-BRU5PR8_.js +10 -0
- package/dist/chunks/config-BRU5PR8_.js.map +1 -0
- package/dist/chunks/config-BUGfFjmC.js +16 -0
- package/dist/chunks/config-BUGfFjmC.js.map +1 -0
- package/dist/chunks/config-BXffa3ta.js +60 -0
- package/dist/chunks/config-BXffa3ta.js.map +1 -0
- package/dist/chunks/config-BaMO9dQh.js +22 -0
- package/dist/chunks/config-BaMO9dQh.js.map +1 -0
- package/dist/chunks/config-BbtK511H.js +11 -0
- package/dist/chunks/config-BbtK511H.js.map +1 -0
- package/dist/chunks/config-BcFOkUhh.js +15 -0
- package/dist/chunks/config-BcFOkUhh.js.map +1 -0
- package/dist/chunks/config-BcpRsZTe.js +10 -0
- package/dist/chunks/config-BcpRsZTe.js.map +1 -0
- package/dist/chunks/config-BhubOeci.js +15 -0
- package/dist/chunks/config-BhubOeci.js.map +1 -0
- package/dist/chunks/config-BhvNm4Pp.js +173 -0
- package/dist/chunks/config-BhvNm4Pp.js.map +1 -0
- package/dist/chunks/config-Bv2G0OU6.js +10 -0
- package/dist/chunks/config-Bv2G0OU6.js.map +1 -0
- package/dist/chunks/config-Bv5Dok4j.js +41 -0
- package/dist/chunks/config-Bv5Dok4j.js.map +1 -0
- package/dist/chunks/config-BzQ4S4Hb.js +11 -0
- package/dist/chunks/config-BzQ4S4Hb.js.map +1 -0
- package/dist/chunks/config-BzZGpWsj.js +11 -0
- package/dist/chunks/config-BzZGpWsj.js.map +1 -0
- package/dist/chunks/config-C0b_3LJV.js +42 -0
- package/dist/chunks/config-C0b_3LJV.js.map +1 -0
- package/dist/chunks/config-C2JKq8-2.js +60 -0
- package/dist/chunks/config-C2JKq8-2.js.map +1 -0
- package/dist/chunks/config-C6SBJxcH.js +10 -0
- package/dist/chunks/config-C6SBJxcH.js.map +1 -0
- package/dist/chunks/config-CJbjLC5X.js +55 -0
- package/dist/chunks/config-CJbjLC5X.js.map +1 -0
- package/dist/chunks/config-CJeyaUTp.js +40 -0
- package/dist/chunks/config-CJeyaUTp.js.map +1 -0
- package/dist/chunks/config-CMZE2fu0.js +11 -0
- package/dist/chunks/config-CMZE2fu0.js.map +1 -0
- package/dist/chunks/config-CU_CBd0k.js +24 -0
- package/dist/chunks/config-CU_CBd0k.js.map +1 -0
- package/dist/chunks/config-CYPU3ztl.js +26 -0
- package/dist/chunks/config-CYPU3ztl.js.map +1 -0
- package/dist/chunks/config-CcmeMlic.js +19 -0
- package/dist/chunks/config-CcmeMlic.js.map +1 -0
- package/dist/chunks/config-CdAx6ify2.js +11 -0
- package/dist/chunks/config-CdAx6ify2.js.map +1 -0
- package/dist/chunks/config-CxCAfXZ1.js +23 -0
- package/dist/chunks/config-CxCAfXZ1.js.map +1 -0
- package/dist/chunks/config-D1gSaT52.js +11 -0
- package/dist/chunks/config-D1gSaT52.js.map +1 -0
- package/dist/chunks/config-D7iuXJbl.js +11 -0
- package/dist/chunks/config-D7iuXJbl.js.map +1 -0
- package/dist/chunks/config-D7tRu8u3.js +11 -0
- package/dist/chunks/config-D7tRu8u3.js.map +1 -0
- package/dist/chunks/config-DBYCntwl.js +10 -0
- package/dist/chunks/config-DBYCntwl.js.map +1 -0
- package/dist/chunks/config-DFRYOcrP.js +11 -0
- package/dist/chunks/config-DFRYOcrP.js.map +1 -0
- package/dist/chunks/config-DW_RqmUp.js +10 -0
- package/dist/chunks/config-DW_RqmUp.js.map +1 -0
- package/dist/chunks/config-Dkq0HeLe.js +11 -0
- package/dist/chunks/config-Dkq0HeLe.js.map +1 -0
- package/dist/chunks/config-DlLE49_I.js +11 -0
- package/dist/chunks/config-DlLE49_I.js.map +1 -0
- package/dist/chunks/config-DvTUDLT1.js +46 -0
- package/dist/chunks/config-DvTUDLT1.js.map +1 -0
- package/dist/chunks/config-DwB5-qdP2.js +10 -0
- package/dist/chunks/config-DwB5-qdP2.js.map +1 -0
- package/dist/chunks/config-DxqMXzNV2.js +25 -0
- package/dist/chunks/config-DxqMXzNV2.js.map +1 -0
- package/dist/chunks/config-DxqpV-KM.js +47 -0
- package/dist/chunks/config-DxqpV-KM.js.map +1 -0
- package/dist/chunks/config-Dzz9P-GV2.js +11 -0
- package/dist/chunks/config-Dzz9P-GV2.js.map +1 -0
- package/dist/chunks/config-KGTIAFD92.js +10 -0
- package/dist/chunks/config-KGTIAFD92.js.map +1 -0
- package/dist/chunks/config-TyzU6gLf.js +10 -0
- package/dist/chunks/config-TyzU6gLf.js.map +1 -0
- package/dist/chunks/config-cn6knwud.js +37 -0
- package/dist/chunks/config-cn6knwud.js.map +1 -0
- package/dist/chunks/config-dD6Po-Cq.js +10 -0
- package/dist/chunks/config-dD6Po-Cq.js.map +1 -0
- package/dist/chunks/config-rFwazRKi.js +11 -0
- package/dist/chunks/config-rFwazRKi.js.map +1 -0
- package/dist/chunks/config-rQlbnEKn.js +10 -0
- package/dist/chunks/config-rQlbnEKn.js.map +1 -0
- package/dist/chunks/config-rxFL-6yF2.js +80 -0
- package/dist/chunks/config-rxFL-6yF2.js.map +1 -0
- package/dist/chunks/config-ug8O8epd.js +13 -0
- package/dist/chunks/config-ug8O8epd.js.map +1 -0
- package/dist/chunks/dialogShared-BtXUk6Zc.js +34 -0
- package/dist/chunks/dialogShared-BtXUk6Zc.js.map +1 -0
- package/dist/chunks/directives-Cuib0yOO.js +728 -0
- package/dist/chunks/directives-Cuib0yOO.js.map +1 -0
- package/dist/chunks/en-BMjJZttK.js +50 -0
- package/dist/chunks/en-BMjJZttK.js.map +1 -0
- package/dist/chunks/es-Cu_RlgIr.js +22 -0
- package/dist/chunks/es-Cu_RlgIr.js.map +1 -0
- package/dist/chunks/es-EYCf8G_1.js +50 -0
- package/dist/chunks/es-EYCf8G_1.js.map +1 -0
- package/dist/chunks/fileValidation-CgjTGoUx.js +221 -0
- package/dist/chunks/fileValidation-CgjTGoUx.js.map +1 -0
- package/dist/chunks/{grBadgeStyles-Bu4H8bFc.js → grBadgeStyles-pqqbVgLk.js} +20 -13
- package/dist/chunks/grBadgeStyles-pqqbVgLk.js.map +1 -0
- package/dist/chunks/{grButtonStyles-C5k0bN2e.js → grButtonStyles-BxZW2x0-.js} +62 -52
- package/dist/chunks/grButtonStyles-BxZW2x0-.js.map +1 -0
- package/dist/chunks/grDropdownStyles-DQfLh-bp.js +34 -0
- package/dist/chunks/grDropdownStyles-DQfLh-bp.js.map +1 -0
- package/dist/chunks/grLoadingStyles-CERsxyk9.js +19 -0
- package/dist/chunks/grLoadingStyles-CERsxyk9.js.map +1 -0
- package/dist/chunks/grModalStyles-Dv2NXBKi.js +49 -0
- package/dist/chunks/grModalStyles-Dv2NXBKi.js.map +1 -0
- package/dist/chunks/grSelectStyles-C1zNEkV7.js +52 -0
- package/dist/chunks/grSelectStyles-C1zNEkV7.js.map +1 -0
- package/dist/chunks/granularityI18n-BEWP9aJs.js +28 -0
- package/dist/chunks/granularityI18n-BEWP9aJs.js.map +1 -0
- package/dist/chunks/info-C0bHmdZq.js +28 -0
- package/dist/chunks/info-C0bHmdZq.js.map +1 -0
- package/dist/chunks/loader-circle-B2rWDk5u.js +25 -0
- package/dist/chunks/loader-circle-B2rWDk5u.js.map +1 -0
- package/dist/chunks/ru-DKswMSdd.js +50 -0
- package/dist/chunks/ru-DKswMSdd.js.map +1 -0
- package/dist/chunks/safelist-BF822K15.js +15 -0
- package/dist/chunks/safelist-BF822K15.js.map +1 -0
- package/dist/chunks/safelist-BY7z8fOl.js +26 -0
- package/dist/chunks/safelist-BY7z8fOl.js.map +1 -0
- package/dist/chunks/{shared-BqUqjuxn.js → shared-Bvjkhhm2.js} +151 -111
- package/dist/chunks/shared-Bvjkhhm2.js.map +1 -0
- package/dist/chunks/transition-mJ3PZCHH.js +1694 -0
- package/dist/chunks/transition-mJ3PZCHH.js.map +1 -0
- package/dist/chunks/x-Pa6C2hwi.js +25 -0
- package/dist/chunks/x-Pa6C2hwi.js.map +1 -0
- package/dist/chunks/x-circle-DQSlBLmX.js +69 -0
- package/dist/chunks/x-circle-DQSlBLmX.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js +148 -0
- package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js.map +1 -0
- package/dist/components/GrAlert/index.js +3 -3
- package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js +43 -0
- package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js.map +1 -0
- package/dist/components/GrAvatar/index.js +3 -3
- package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js +34 -0
- package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js.map +1 -0
- package/dist/components/GrBadge/index.js +3 -3
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js +35 -0
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js.map +1 -0
- package/dist/components/GrBadgeWrap/index.js +3 -3
- package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js +33 -0
- package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js.map +1 -0
- package/dist/components/GrBottomNav/index.js +3 -3
- package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js +85 -0
- package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js.map +1 -0
- package/dist/components/GrButton/index.js +5 -5
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js +23 -0
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js.map +1 -0
- package/dist/components/GrButtonGroup/index.js +3 -3
- package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js +13 -0
- package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js.map +1 -0
- package/dist/components/GrCard/index.js +3 -3
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js +136 -0
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +3 -3
- package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js +207 -0
- package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js.map +1 -0
- package/dist/components/GrCollapse/index.js +3 -3
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js +133 -0
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +3 -3
- package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js +181 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js.map +1 -0
- package/dist/components/GrDataTable/index.js +3 -3
- package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js +223 -0
- package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js.map +1 -0
- package/dist/components/GrDialog/index.js +4 -4
- package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js +158 -0
- package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js.map +1 -0
- package/dist/components/GrDrawer/index.js +3 -3
- package/dist/components/GrDropdown/chunks/GrDropdown-DVTU32T_.js +153 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-DVTU32T_.js.map +1 -0
- package/dist/components/GrDropdown/index.js +3 -3
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-fePQRcgh.js +311 -0
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-fePQRcgh.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-Bs8d3tgb.js +64 -0
- package/dist/components/GrEmptyState/chunks/GrEmptyState-Bs8d3tgb.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +3 -3
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DVv8yXpl.js +370 -0
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DVv8yXpl.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +4 -4
- package/dist/components/GrFormField/chunks/GrFormField-BzezYcS8.js +37 -0
- package/dist/components/GrFormField/chunks/GrFormField-BzezYcS8.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -3
- package/dist/components/GrFormFile/chunks/GrFormFile-DtZOypJW.js +315 -0
- package/dist/components/GrFormFile/chunks/GrFormFile-DtZOypJW.js.map +1 -0
- package/dist/components/GrFormFile/index.js +3 -3
- package/dist/components/GrFormSection/chunks/GrFormSection-BIPB1RIk.js +37 -0
- package/dist/components/GrFormSection/chunks/GrFormSection-BIPB1RIk.js.map +1 -0
- package/dist/components/GrFormSection/index.js +3 -3
- package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js +34 -0
- package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js.map +1 -0
- package/dist/components/GrIcon/index.js +3 -3
- package/dist/components/GrImageViewer/chunks/GrImageViewer-fn8ilJTA.js +399 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-fn8ilJTA.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +3 -3
- package/dist/components/GrInput/chunks/GrInput-DLLRrH1A.js +213 -0
- package/dist/components/GrInput/chunks/GrInput-DLLRrH1A.js.map +1 -0
- package/dist/components/GrInput/index.js +3 -3
- package/dist/components/GrInputTag/chunks/GrInputTag-CzrrBxgU.js +259 -0
- package/dist/components/GrInputTag/chunks/GrInputTag-CzrrBxgU.js.map +1 -0
- package/dist/components/GrInputTag/index.js +3 -3
- package/dist/components/GrLink/chunks/GrLink-Dhkid3Mp.js +82 -0
- package/dist/components/GrLink/chunks/GrLink-Dhkid3Mp.js.map +1 -0
- package/dist/components/GrLink/index.js +3 -3
- package/dist/components/GrList/chunks/GrList-CjgeVjhY.js +79 -0
- package/dist/components/GrList/chunks/GrList-CjgeVjhY.js.map +1 -0
- package/dist/components/GrList/index.js +3 -3
- package/dist/components/GrLoading/chunks/GrLoading-DihGX3ol.js +71 -0
- package/dist/components/GrLoading/chunks/GrLoading-DihGX3ol.js.map +1 -0
- package/dist/components/GrLoading/index.js +3 -3
- package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js +170 -0
- package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js.map +1 -0
- package/dist/components/GrModal/index.js +4 -4
- package/dist/components/GrNavbar/chunks/GrNavbar-CQOAfO6y.js +77 -0
- package/dist/components/GrNavbar/chunks/GrNavbar-CQOAfO6y.js.map +1 -0
- package/dist/components/GrNavbar/index.js +3 -3
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CyHgUotG.js +399 -0
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CyHgUotG.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +3 -3
- package/dist/components/GrPagination/chunks/GrPagination-C5cxRJsF.js +116 -0
- package/dist/components/GrPagination/chunks/GrPagination-C5cxRJsF.js.map +1 -0
- package/dist/components/GrPagination/index.js +3 -3
- package/dist/components/GrProgressBar/chunks/GrProgressBar-C9wAAFxR.js +41 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-C9wAAFxR.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +3 -3
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Cfq9bvL3.js +192 -0
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Cfq9bvL3.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +3 -3
- package/dist/components/GrRadio/chunks/GrRadio-B_t_ZNVl.js +186 -0
- package/dist/components/GrRadio/chunks/GrRadio-B_t_ZNVl.js.map +1 -0
- package/dist/components/GrRadio/index.js +3 -3
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CVlgpUBr.js +82 -0
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CVlgpUBr.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +3 -3
- package/dist/components/GrSegmented/chunks/GrSegmented-BPl1koHc.js +325 -0
- package/dist/components/GrSegmented/chunks/GrSegmented-BPl1koHc.js.map +1 -0
- package/dist/components/GrSegmented/index.js +3 -3
- package/dist/components/GrSelect/chunks/GrSelect-aVqUL-1F.js +445 -0
- package/dist/components/GrSelect/chunks/GrSelect-aVqUL-1F.js.map +1 -0
- package/dist/components/GrSelect/index.js +3 -3
- package/dist/components/GrSidebar/chunks/GrSidebar-DVucgcfV.js +46 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DVucgcfV.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/GrSkeleton-CDTvCSoH.js +35 -0
- package/dist/components/GrSkeleton/chunks/GrSkeleton-CDTvCSoH.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +3 -3
- package/dist/components/GrSwitch/chunks/GrSwitch-Bnamgqb2.js +81 -0
- package/dist/components/GrSwitch/chunks/GrSwitch-Bnamgqb2.js.map +1 -0
- package/dist/components/GrSwitch/index.js +3 -3
- package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js +59 -0
- package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js.map +1 -0
- package/dist/components/GrTable/index.js +3 -3
- package/dist/components/GrTabs/chunks/GrTabs-CiGmcmvm.js +120 -0
- package/dist/components/GrTabs/chunks/GrTabs-CiGmcmvm.js.map +1 -0
- package/dist/components/GrTabs/index.js +3 -3
- package/dist/components/GrTextarea/chunks/GrTextarea-VBSc6A7D.js +73 -0
- package/dist/components/GrTextarea/chunks/GrTextarea-VBSc6A7D.js.map +1 -0
- package/dist/components/GrTextarea/index.js +3 -3
- package/dist/components/GrToaster/chunks/GrToaster-I1e-zCpf.js +173 -0
- package/dist/components/GrToaster/chunks/GrToaster-I1e-zCpf.js.map +1 -0
- package/dist/components/GrToaster/index.js +3 -3
- package/dist/components/GrTooltip/chunks/GrTooltip-CrV1gI_c.js +57 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-CrV1gI_c.js.map +1 -0
- package/dist/components/GrTooltip/index.js +3 -3
- package/dist/components/GrTree/chunks/GrTree-Dlev9oBd.js +736 -0
- package/dist/components/GrTree/chunks/GrTree-Dlev9oBd.js.map +1 -0
- package/dist/components/GrTree/index.js +3 -3
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DN6XFjOD.js +456 -0
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DN6XFjOD.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +3 -3
- package/dist/composables/useTheme.js +41 -30
- package/dist/composables/useTheme.js.map +1 -0
- package/dist/composables/useToast.js +43 -34
- package/dist/composables/useToast.js.map +1 -0
- package/dist/directives/index.js +2 -2
- package/dist/fileValidation/index.js +2 -2
- package/dist/granular-provider-node.js +25 -14
- package/dist/granular-provider-node.js.map +1 -0
- package/dist/granular-provider.js +5 -3
- package/dist/granular-provider.js.map +1 -0
- package/dist/i18n/all.js +8 -6
- package/dist/i18n/all.js.map +1 -0
- package/dist/i18n/index.js +3 -3
- package/dist/index.js +105 -105
- package/dist/vue/index.js +66 -26
- package/dist/vue/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunks/_plugin-vue_export-helper-CHO2XVys.js +0 -8
- package/dist/chunks/adapter-D5uYoOZj.js +0 -4
- package/dist/chunks/arrow-up-Dv3dC3hu.js +0 -23
- package/dist/chunks/classTokens-CT1tqF2j.js +0 -6
- package/dist/chunks/config-B5JCvHys.js +0 -13
- package/dist/chunks/config-BDXa5Sna2.js +0 -9
- package/dist/chunks/config-BG5_FuZ-.js +0 -34
- package/dist/chunks/config-BMYKG1oB.js +0 -10
- package/dist/chunks/config-BQREEXFD.js +0 -8
- package/dist/chunks/config-BUZtbeTr.js +0 -40
- package/dist/chunks/config-BVXycfiO.js +0 -9
- package/dist/chunks/config-BZW-RL6E.js +0 -14
- package/dist/chunks/config-BhbfV-Is.js +0 -48
- package/dist/chunks/config-BmYFupZh.js +0 -8
- package/dist/chunks/config-BsZc_QQ-2.js +0 -20
- package/dist/chunks/config-C1Sn7mn-.js +0 -27
- package/dist/chunks/config-C4_REX-3.js +0 -9
- package/dist/chunks/config-CBFllZZ4.js +0 -9
- package/dist/chunks/config-CDyD_fCt.js +0 -8
- package/dist/chunks/config-CJeG727i.js +0 -149
- package/dist/chunks/config-CLawBqde.js +0 -21
- package/dist/chunks/config-CMz46RPG.js +0 -8
- package/dist/chunks/config-CO-7HRZd2.js +0 -8
- package/dist/chunks/config-CS7E7LME.js +0 -9
- package/dist/chunks/config-CVy124Xj.js +0 -8
- package/dist/chunks/config-CcixQGaN.js +0 -47
- package/dist/chunks/config-CiVXZxyQ.js +0 -9
- package/dist/chunks/config-CoMQmunP.js +0 -8
- package/dist/chunks/config-Cq6ufYtp.js +0 -9
- package/dist/chunks/config-D8CIEWcb.js +0 -8
- package/dist/chunks/config-D8hKc39m.js +0 -18
- package/dist/chunks/config-D9MxGwCJ.js +0 -8
- package/dist/chunks/config-DBXTZE36.js +0 -15
- package/dist/chunks/config-DK9C8O7L.js +0 -9
- package/dist/chunks/config-DTegOmx2.js +0 -8
- package/dist/chunks/config-DYI8XADo.js +0 -47
- package/dist/chunks/config-DlidGf7P.js +0 -8
- package/dist/chunks/config-DtNe7EIX.js +0 -35
- package/dist/chunks/config-EdWeK_ge.js +0 -17
- package/dist/chunks/config-FGAkxHFh.js +0 -8
- package/dist/chunks/config-M76gNxd2.js +0 -37
- package/dist/chunks/config-NuqoO_Of.js +0 -33
- package/dist/chunks/config-QsovJrku2.js +0 -66
- package/dist/chunks/config-R6F6zRJk.js +0 -9
- package/dist/chunks/config-SLwkDc4Q2.js +0 -9
- package/dist/chunks/config-aJ7sb62Y.js +0 -8
- package/dist/chunks/config-b9nc87Oc.js +0 -9
- package/dist/chunks/config-dSI8RttH2.js +0 -8
- package/dist/chunks/config-im2VHeSM.js +0 -9
- package/dist/chunks/config-vKeQ035f.js +0 -9
- package/dist/chunks/config-vMcxHlWi.js +0 -14
- package/dist/chunks/dialogShared-CONROtU2.js +0 -26
- package/dist/chunks/directives-Dr5NPOT8.js +0 -530
- package/dist/chunks/en-j3simI0h.js +0 -41
- package/dist/chunks/es-CIT9s_vo.js +0 -4
- package/dist/chunks/es-CLpJj7KP.js +0 -41
- package/dist/chunks/fileValidation-LFD-vwil.js +0 -193
- package/dist/chunks/grDropdownStyles-149X1NeB.js +0 -31
- package/dist/chunks/grLoadingStyles-Bjo7ylmq.js +0 -15
- package/dist/chunks/grModalStyles-Dmd4havY.js +0 -38
- package/dist/chunks/grSelectStyles-C3QKIn1J.js +0 -40
- package/dist/chunks/granularityI18n-8_v1B11L.js +0 -24
- package/dist/chunks/info-CNJnuTYC.js +0 -26
- package/dist/chunks/loader-circle-C5vCCMfB.js +0 -23
- package/dist/chunks/ru-CiOZPnBu.js +0 -41
- package/dist/chunks/safelist-Bq32hAXc.js +0 -13
- package/dist/chunks/safelist-CLcTRYB-.js +0 -22
- package/dist/chunks/transition-BJXMi52x.js +0 -1617
- package/dist/chunks/x--kxrj3ez.js +0 -23
- package/dist/chunks/x-circle-ChJ87u1v.js +0 -61
- package/dist/components/GrAlert/chunks/GrAlert-DLHkusb-.js +0 -129
- package/dist/components/GrAvatar/chunks/GrAvatar-BFYH3HJw.js +0 -32
- package/dist/components/GrBadge/chunks/GrBadge-D_AoqGrn.js +0 -27
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C_N0QJfA.js +0 -26
- package/dist/components/GrBottomNav/chunks/GrBottomNav-Chpu3SVd.js +0 -21
- package/dist/components/GrButton/chunks/GrButton-BXVVt6Od.js +0 -67
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CmnYHVH7.js +0 -16
- package/dist/components/GrCard/chunks/GrCard-DEpN6Ptf.js +0 -10
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DF3vJApB.js +0 -111
- package/dist/components/GrCollapse/chunks/GrCollapse-D7QYRqNa.js +0 -150
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-C7Eh8-Vn.js +0 -111
- package/dist/components/GrDataTable/chunks/GrDataTable-Dxsg1NMP.js +0 -142
- package/dist/components/GrDialog/chunks/GrDialog-BSd4-uP5.js +0 -169
- package/dist/components/GrDrawer/chunks/GrDrawer-DBBSwe1s.js +0 -135
- package/dist/components/GrDropdown/chunks/GrDropdown-BELyRP4A.js +0 -110
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-B8fuk7iP.js +0 -233
- package/dist/components/GrEmptyState/chunks/GrEmptyState-BPGoafJI.js +0 -49
- package/dist/components/GrFileUpload/chunks/GrFileUpload-BPzx3LEM.js +0 -294
- package/dist/components/GrFormField/chunks/GrFormField-Cn8g9eFP.js +0 -28
- package/dist/components/GrFormFile/chunks/GrFormFile-DfinD5Iv.js +0 -248
- package/dist/components/GrFormSection/chunks/GrFormSection-dKpQw-vh.js +0 -27
- package/dist/components/GrIcon/chunks/GrIcon-CXIHuG7L.js +0 -25
- package/dist/components/GrImageViewer/chunks/GrImageViewer-CQSNx-D7.js +0 -322
- package/dist/components/GrInput/chunks/GrInput-CLKX1inm.js +0 -158
- package/dist/components/GrInputTag/chunks/GrInputTag-BAtLody2.js +0 -214
- package/dist/components/GrLink/chunks/GrLink-BpXnly-Y.js +0 -59
- package/dist/components/GrList/chunks/GrList-BrFc7VdS.js +0 -55
- package/dist/components/GrLoading/chunks/GrLoading-dFuoryMY.js +0 -53
- package/dist/components/GrModal/chunks/GrModal-uaWXH08K.js +0 -136
- package/dist/components/GrNavbar/chunks/GrNavbar-KzLHgdjX.js +0 -62
- package/dist/components/GrNumberInput/chunks/GrNumberInput-rENn1802.js +0 -315
- package/dist/components/GrPagination/chunks/GrPagination-DP0x3rx6.js +0 -93
- package/dist/components/GrProgressBar/chunks/GrProgressBar-DpW93sOi.js +0 -29
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-ASfBwyzQ.js +0 -158
- package/dist/components/GrRadio/chunks/GrRadio-8BOo97XV.js +0 -147
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BymbUmqI.js +0 -66
- package/dist/components/GrSegmented/chunks/GrSegmented-CK5C_lN7.js +0 -250
- package/dist/components/GrSelect/chunks/GrSelect-BMfc1-vs.js +0 -314
- package/dist/components/GrSidebar/chunks/GrSidebar-C4SXXhfO.js +0 -29
- package/dist/components/GrSkeleton/chunks/GrSkeleton-QlieOdpY.js +0 -25
- package/dist/components/GrSwitch/chunks/GrSwitch-Cefiutzu.js +0 -64
- package/dist/components/GrTable/chunks/GrTable-k_FUiJQk.js +0 -44
- package/dist/components/GrTabs/chunks/GrTabs-B46P-lUc.js +0 -98
- package/dist/components/GrTextarea/chunks/GrTextarea-BX7L1MJk.js +0 -57
- package/dist/components/GrToaster/chunks/GrToaster-C4l_BjOh.js +0 -139
- package/dist/components/GrTooltip/chunks/GrTooltip-BqRAzuLT.js +0 -37
- package/dist/components/GrTree/chunks/GrTree-C2CXR_vW.js +0 -614
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DAAay-QB.js +0 -353
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrTreeSelect/grTreeSelectStyles.ts
|
|
4
|
+
var sizeClassBySize = {
|
|
5
|
+
xs: "h-7 px-2.5 text-[12px]",
|
|
6
|
+
sm: "h-8 px-3 text-[13px]",
|
|
7
|
+
md: "h-10 px-3 text-[14px]",
|
|
8
|
+
lg: "h-11 px-4 text-[16px]"
|
|
9
|
+
};
|
|
10
|
+
var borderClassByState = {
|
|
11
|
+
default: "border-[var(--brd)]",
|
|
12
|
+
success: "border-[var(--ds-success)] focus-visible:ring-[var(--ds-success)]",
|
|
13
|
+
warning: "border-[var(--ds-warning)] focus-visible:ring-[var(--ds-warning)]",
|
|
14
|
+
danger: "border-[var(--ds-danger)] focus-visible:ring-[var(--ds-danger)]"
|
|
15
|
+
};
|
|
16
|
+
function grTreeSelectClass(options) {
|
|
17
|
+
return [
|
|
18
|
+
sizeClassBySize[options.size],
|
|
19
|
+
"pr-9",
|
|
20
|
+
options.invalid ? borderClassByState.danger : borderClassByState[options.state]
|
|
21
|
+
].join(" ");
|
|
22
|
+
}
|
|
23
|
+
var grTreeSelectPanelClass = "rounded-[var(--ds-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--ds-shadow-2)] overflow-hidden";
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/GrTreeSelect/safelist.ts
|
|
26
|
+
var grTreeSelectSafelist = [...new Set([
|
|
27
|
+
...Object.values(sizeClassBySize).flatMap(splitClassTokens),
|
|
28
|
+
...Object.values(borderClassByState).flatMap(splitClassTokens),
|
|
29
|
+
"pr-9",
|
|
30
|
+
...splitClassTokens(grTreeSelectPanelClass)
|
|
31
|
+
])];
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/GrTreeSelect/config.ts
|
|
34
|
+
var grTreeSelectConfig = defineGranularComponent(import.meta.url, {
|
|
35
|
+
name: "GrTreeSelect",
|
|
36
|
+
safelist: grTreeSelectSafelist,
|
|
37
|
+
dependencies: ["GrInput", "GrTree"]
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { grTreeSelectPanelClass as i, grTreeSelectSafelist as n, grTreeSelectClass as r, grTreeSelectConfig as t };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=config-C0b_3LJV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-C0b_3LJV.js","names":[],"sources":["../../src/components/GrTreeSelect/grTreeSelectStyles.ts","../../src/components/GrTreeSelect/safelist.ts","../../src/components/GrTreeSelect/config.ts"],"sourcesContent":["import type { GrInputSize } from '../GrInput'\n\nexport type GrTreeSelectState = 'default' | 'success' | 'warning' | 'danger'\n\nexport const sizeClassBySize: Record<GrInputSize, string> = {\n xs: 'h-7 px-2.5 text-[12px]',\n sm: 'h-8 px-3 text-[13px]',\n md: 'h-10 px-3 text-[14px]',\n lg: 'h-11 px-4 text-[16px]',\n}\n\nexport const borderClassByState: Record<GrTreeSelectState, string> = {\n default: 'border-[var(--brd)]',\n success: 'border-[var(--ds-success)] focus-visible:ring-[var(--ds-success)]',\n warning: 'border-[var(--ds-warning)] focus-visible:ring-[var(--ds-warning)]',\n danger: 'border-[var(--ds-danger)] focus-visible:ring-[var(--ds-danger)]',\n}\n\nexport function grTreeSelectClass(options: { size: GrInputSize, state: GrTreeSelectState, invalid: boolean }): string {\n return [\n sizeClassBySize[options.size],\n 'pr-9',\n options.invalid ? borderClassByState.danger : borderClassByState[options.state],\n ].join(' ')\n}\n\nexport const grTreeSelectPanelClass = 'rounded-[var(--ds-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--ds-shadow-2)] overflow-hidden'\n","import { splitClassTokens } from '../shared/classTokens'\nimport { borderClassByState, grTreeSelectPanelClass, sizeClassBySize } from './grTreeSelectStyles'\n\nexport const grTreeSelectSafelist = [...new Set([\n ...Object.values(sizeClassBySize).flatMap(splitClassTokens),\n ...Object.values(borderClassByState).flatMap(splitClassTokens),\n 'pr-9',\n ...splitClassTokens(grTreeSelectPanelClass),\n])]\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grTreeSelectSafelist } from './safelist'\n\nexport const grTreeSelectConfig = defineGranularComponent(import.meta.url, {\n name: 'GrTreeSelect',\n safelist: grTreeSelectSafelist,\n dependencies: ['GrInput', 'GrTree'],\n})"],"mappings":";;;AAIA,IAAa,kBAA+C;CAC1D,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAED,IAAa,qBAAwD;CACnE,SAAS;CACT,SAAS;CACT,SAAS;CACT,QAAQ;CACT;AAED,SAAgB,kBAAkB,SAAoF;AACpH,QAAO;EACL,gBAAgB,QAAQ;EACxB;EACA,QAAQ,UAAU,mBAAmB,SAAS,mBAAmB,QAAQ;EAC1E,CAAC,KAAK,IAAI;;AAGb,IAAa,yBAAyB;;;ACvBtC,IAAa,uBAAuB,CAAC,GAAG,IAAI,IAAI;CAC9C,GAAG,OAAO,OAAO,gBAAgB,CAAC,QAAQ,iBAAiB;CAC3D,GAAG,OAAO,OAAO,mBAAmB,CAAC,QAAQ,iBAAiB;CAC9D;CACA,GAAG,iBAAiB,uBAAuB;CAC5C,CAAC,CAAC;;;ACJH,IAAa,qBAAqB,wBAAwB,OAAO,KAAK,KAAK;CACzE,MAAM;CACN,UAAU;CACV,cAAc,CAAC,WAAW,SAAS;CACpC,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrLink/grLinkStyles.ts
|
|
4
|
+
var baseRootClass = "inline-flex items-center gap-1 rounded-[6px] transition-colors duration-150";
|
|
5
|
+
var focusRingClass = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]";
|
|
6
|
+
var sizeClassBySize = {
|
|
7
|
+
sm: "text-sm",
|
|
8
|
+
md: "text-[14px]",
|
|
9
|
+
lg: "text-base"
|
|
10
|
+
};
|
|
11
|
+
var variantClassByVariant = {
|
|
12
|
+
primary: "text-[var(--primary)] visited:text-[var(--primary)] hover:text-[var(--primary-hover)] active:text-[var(--primary-active)]",
|
|
13
|
+
default: "text-[var(--fg)] hover:text-[var(--primary)] active:text-[var(--primary-active)]",
|
|
14
|
+
muted: "text-[var(--muted-fg)] hover:text-[var(--fg)] active:text-[var(--fg)]",
|
|
15
|
+
danger: "text-[var(--ds-danger)] hover:text-[var(--ds-danger-hover)] active:text-[var(--ds-danger-active)]"
|
|
16
|
+
};
|
|
17
|
+
var disabledStateClass = "cursor-not-allowed opacity-60 text-[var(--muted-fg)]";
|
|
18
|
+
var UNDERLINE_VALUES = [
|
|
19
|
+
"auto",
|
|
20
|
+
"always",
|
|
21
|
+
"none"
|
|
22
|
+
];
|
|
23
|
+
function underlineClass(underline, disabled) {
|
|
24
|
+
if (disabled) return "no-underline";
|
|
25
|
+
if (underline === "always") return "underline underline-offset-4";
|
|
26
|
+
if (underline === "none") return "no-underline";
|
|
27
|
+
return "no-underline hover:underline hover:underline-offset-4";
|
|
28
|
+
}
|
|
29
|
+
var underlineClasses = [...new Set(UNDERLINE_VALUES.flatMap((u) => [underlineClass(u, false), underlineClass(u, true)]))];
|
|
30
|
+
function disabledClass(disabled) {
|
|
31
|
+
return disabled ? disabledStateClass : "";
|
|
32
|
+
}
|
|
33
|
+
function grLinkClass(options) {
|
|
34
|
+
return [
|
|
35
|
+
sizeClassBySize[options.size],
|
|
36
|
+
underlineClass(options.underline, options.disabled),
|
|
37
|
+
variantClassByVariant[options.variant],
|
|
38
|
+
disabledClass(options.disabled)
|
|
39
|
+
].filter(Boolean).join(" ");
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/GrLink/safelist.ts
|
|
43
|
+
var grLinkSafelist = [...new Set([
|
|
44
|
+
...splitClassTokens(baseRootClass),
|
|
45
|
+
...splitClassTokens(focusRingClass),
|
|
46
|
+
...Object.values(sizeClassBySize).flatMap(splitClassTokens),
|
|
47
|
+
...underlineClasses.flatMap(splitClassTokens),
|
|
48
|
+
...Object.values(variantClassByVariant).flatMap(splitClassTokens),
|
|
49
|
+
...splitClassTokens(disabledStateClass)
|
|
50
|
+
])];
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/components/GrLink/config.ts
|
|
53
|
+
var grLinkConfig = defineGranularComponent(import.meta.url, {
|
|
54
|
+
name: "GrLink",
|
|
55
|
+
safelist: grLinkSafelist
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
export { grLinkClass as a, focusRingClass as i, grLinkSafelist as n, baseRootClass as r, grLinkConfig as t };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=config-C2JKq8-2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-C2JKq8-2.js","names":[],"sources":["../../src/components/GrLink/grLinkStyles.ts","../../src/components/GrLink/safelist.ts","../../src/components/GrLink/config.ts"],"sourcesContent":["export type GrLinkVariant = 'primary' | 'default' | 'muted' | 'danger'\nexport type GrLinkUnderline = 'auto' | 'always' | 'none'\nexport type GrLinkSize = 'sm' | 'md' | 'lg'\n\n// Базовые классы корневого элемента (`<a>`/`<span>`). Вынесены сюда,\n// чтобы быть единственным источником истины как для шаблона, так и для safelist.\nexport const baseRootClass = 'inline-flex items-center gap-1 rounded-[6px] transition-colors duration-150'\nexport const focusRingClass = 'focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]'\n\nexport const sizeClassBySize: Record<GrLinkSize, string> = {\n sm: 'text-sm',\n md: 'text-[14px]',\n lg: 'text-base',\n}\n\nexport const variantClassByVariant: Record<GrLinkVariant, string> = {\n primary:\n 'text-[var(--primary)] visited:text-[var(--primary)] hover:text-[var(--primary-hover)] active:text-[var(--primary-active)]',\n default: 'text-[var(--fg)] hover:text-[var(--primary)] active:text-[var(--primary-active)]',\n muted: 'text-[var(--muted-fg)] hover:text-[var(--fg)] active:text-[var(--fg)]',\n danger: 'text-[var(--ds-danger)] hover:text-[var(--ds-danger-hover)] active:text-[var(--ds-danger-active)]',\n}\n\nexport const disabledStateClass = 'cursor-not-allowed opacity-60 text-[var(--muted-fg)]'\n\nconst UNDERLINE_VALUES: readonly GrLinkUnderline[] = ['auto', 'always', 'none']\n\nfunction underlineClass(underline: GrLinkUnderline, disabled: boolean): string {\n if (disabled) return 'no-underline'\n if (underline === 'always') return 'underline underline-offset-4'\n if (underline === 'none') return 'no-underline'\n return 'no-underline hover:underline hover:underline-offset-4'\n}\n\n// Derived from `underlineClass` so that there is a single source of truth:\n// any change/extension of the underline logic is automatically reflected\n// in the safelist without manual updates.\nexport const underlineClasses: readonly string[] = [...new Set(\n UNDERLINE_VALUES.flatMap(u => [underlineClass(u, false), underlineClass(u, true)]),\n)]\n\nfunction disabledClass(disabled: boolean): string {\n return disabled ? disabledStateClass : ''\n}\n\nexport function grLinkClass(options: { size: GrLinkSize, underline: GrLinkUnderline, variant: GrLinkVariant, disabled: boolean }): string {\n return [\n sizeClassBySize[options.size],\n underlineClass(options.underline, options.disabled),\n variantClassByVariant[options.variant],\n disabledClass(options.disabled),\n ]\n .filter(Boolean)\n .join(' ')\n}\n","import { splitClassTokens } from '../shared/classTokens'\nimport {\n baseRootClass,\n disabledStateClass,\n focusRingClass,\n sizeClassBySize,\n underlineClasses,\n variantClassByVariant,\n} from './grLinkStyles'\n\nexport const grLinkSafelist = [...new Set([\n ...splitClassTokens(baseRootClass),\n ...splitClassTokens(focusRingClass),\n ...Object.values(sizeClassBySize).flatMap(splitClassTokens),\n ...underlineClasses.flatMap(splitClassTokens),\n ...Object.values(variantClassByVariant).flatMap(splitClassTokens),\n ...splitClassTokens(disabledStateClass),\n])]\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grLinkSafelist } from './safelist'\n\nexport const grLinkConfig = defineGranularComponent(import.meta.url, {\n name: 'GrLink',\n safelist: grLinkSafelist,\n})"],"mappings":";;;AAMA,IAAa,gBAAgB;AAC7B,IAAa,iBAAiB;AAE9B,IAAa,kBAA8C;CACzD,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAED,IAAa,wBAAuD;CAClE,SACE;CACF,SAAS;CACT,OAAO;CACP,QAAQ;CACT;AAED,IAAa,qBAAqB;AAElC,IAAM,mBAA+C;CAAC;CAAQ;CAAU;CAAO;AAE/E,SAAS,eAAe,WAA4B,UAA2B;AAC7E,KAAI,SAAU,QAAO;AACrB,KAAI,cAAc,SAAU,QAAO;AACnC,KAAI,cAAc,OAAQ,QAAO;AACjC,QAAO;;AAMT,IAAa,mBAAsC,CAAC,GAAG,IAAI,IACzD,iBAAiB,SAAQ,MAAK,CAAC,eAAe,GAAG,MAAM,EAAE,eAAe,GAAG,KAAK,CAAC,CAAC,CACnF,CAAC;AAEF,SAAS,cAAc,UAA2B;AAChD,QAAO,WAAW,qBAAqB;;AAGzC,SAAgB,YAAY,SAA8G;AACxI,QAAO;EACL,gBAAgB,QAAQ;EACxB,eAAe,QAAQ,WAAW,QAAQ,SAAS;EACnD,sBAAsB,QAAQ;EAC9B,cAAc,QAAQ,SAAS;EAChC,CACE,OAAO,QAAQ,CACf,KAAK,IAAI;;;;AC3Cd,IAAa,iBAAiB,CAAC,GAAG,IAAI,IAAI;CACxC,GAAG,iBAAiB,cAAc;CAClC,GAAG,iBAAiB,eAAe;CACnC,GAAG,OAAO,OAAO,gBAAgB,CAAC,QAAQ,iBAAiB;CAC3D,GAAG,iBAAiB,QAAQ,iBAAiB;CAC7C,GAAG,OAAO,OAAO,sBAAsB,CAAC,QAAQ,iBAAiB;CACjE,GAAG,iBAAiB,mBAAmB;CACxC,CAAC,CAAC;;;ACbH,IAAa,eAAe,wBAAwB,OAAO,KAAK,KAAK;CACnE,MAAM;CACN,UAAU;CACX,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrAlert/config.ts
|
|
3
|
+
var grAlertConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrAlert",
|
|
5
|
+
safelist: []
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { grAlertConfig as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=config-C6SBJxcH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-C6SBJxcH.js","names":[],"sources":["../../src/components/GrAlert/config.ts"],"sourcesContent":["import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nexport const grAlertConfig = defineGranularComponent(import.meta.url, {\n name: 'GrAlert',\n safelist: [],\n})\n"],"mappings":";;AAEA,IAAa,gBAAgB,wBAAwB,OAAO,KAAK,KAAK;CAClE,MAAM;CACN,UAAU,EAAE;CACf,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrInputTag/grInputTagStyles.ts
|
|
4
|
+
var wrapperSizeClassBySize = {
|
|
5
|
+
xs: "min-h-7 px-2.5 py-1 gap-1.5",
|
|
6
|
+
sm: "min-h-8 px-3 py-1 gap-1.5",
|
|
7
|
+
md: "min-h-10 px-3 py-1.5 gap-2",
|
|
8
|
+
lg: "min-h-11 px-4 py-2 gap-2"
|
|
9
|
+
};
|
|
10
|
+
var inputSizeClassBySize = {
|
|
11
|
+
xs: "text-[12px]",
|
|
12
|
+
sm: "text-[13px]",
|
|
13
|
+
md: "text-[14px]",
|
|
14
|
+
lg: "text-[16px]"
|
|
15
|
+
};
|
|
16
|
+
var wrapperBorderClassByState = {
|
|
17
|
+
default: "border-[var(--brd)]",
|
|
18
|
+
success: "border-[var(--ds-success)] focus-within:ring-[var(--ds-success)]",
|
|
19
|
+
warning: "border-[var(--ds-warning)] focus-within:ring-[var(--ds-warning)]",
|
|
20
|
+
danger: "border-[var(--ds-danger)] focus-within:ring-[var(--ds-danger)]"
|
|
21
|
+
};
|
|
22
|
+
function grInputTagWrapperClass(options) {
|
|
23
|
+
return [
|
|
24
|
+
wrapperSizeClassBySize[options.size],
|
|
25
|
+
options.invalid ? wrapperBorderClassByState.danger : wrapperBorderClassByState[options.state],
|
|
26
|
+
options.disabled ? "opacity-50 cursor-not-allowed" : "cursor-text"
|
|
27
|
+
].join(" ");
|
|
28
|
+
}
|
|
29
|
+
function grInputTagInputClass(size) {
|
|
30
|
+
return inputSizeClassBySize[size];
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/GrInputTag/safelist.ts
|
|
34
|
+
var grInputTagSafelist = [...new Set([
|
|
35
|
+
...Object.values(wrapperSizeClassBySize).flatMap(splitClassTokens),
|
|
36
|
+
...Object.values(inputSizeClassBySize).flatMap(splitClassTokens),
|
|
37
|
+
...Object.values(wrapperBorderClassByState).flatMap(splitClassTokens),
|
|
38
|
+
...splitClassTokens("opacity-50 cursor-not-allowed"),
|
|
39
|
+
...splitClassTokens("cursor-text")
|
|
40
|
+
])];
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/GrInputTag/config.ts
|
|
43
|
+
var grInputTagConfig = defineGranularComponent(import.meta.url, {
|
|
44
|
+
name: "GrInputTag",
|
|
45
|
+
dependencies: [
|
|
46
|
+
"GrBadge",
|
|
47
|
+
"GrIcon",
|
|
48
|
+
"GrInput"
|
|
49
|
+
],
|
|
50
|
+
safelist: grInputTagSafelist
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { grInputTagWrapperClass as i, grInputTagSafelist as n, grInputTagInputClass as r, grInputTagConfig as t };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=config-CJbjLC5X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CJbjLC5X.js","names":[],"sources":["../../src/components/GrInputTag/grInputTagStyles.ts","../../src/components/GrInputTag/safelist.ts","../../src/components/GrInputTag/config.ts"],"sourcesContent":["import type { GrInputSize } from '../GrInput/GrInput.vue'\nexport type GrInputTagSize = GrInputSize\nexport type GrInputTagState = 'default' | 'success' | 'warning' | 'danger'\nexport const wrapperSizeClassBySize: Record<GrInputTagSize, string> = {\n xs: 'min-h-7 px-2.5 py-1 gap-1.5',\n sm: 'min-h-8 px-3 py-1 gap-1.5',\n md: 'min-h-10 px-3 py-1.5 gap-2',\n lg: 'min-h-11 px-4 py-2 gap-2',\n}\nexport const inputSizeClassBySize: Record<GrInputTagSize, string> = {\n xs: 'text-[12px]',\n sm: 'text-[13px]',\n md: 'text-[14px]',\n lg: 'text-[16px]',\n}\nexport const wrapperBorderClassByState: Record<GrInputTagState, string> = {\n default: 'border-[var(--brd)]',\n success: 'border-[var(--ds-success)] focus-within:ring-[var(--ds-success)]',\n warning: 'border-[var(--ds-warning)] focus-within:ring-[var(--ds-warning)]',\n danger: 'border-[var(--ds-danger)] focus-within:ring-[var(--ds-danger)]',\n}\nexport function grInputTagWrapperClass(options: { size: GrInputTagSize, state: GrInputTagState, invalid: boolean, disabled: boolean }): string {\n return [\n wrapperSizeClassBySize[options.size],\n options.invalid ? wrapperBorderClassByState.danger : wrapperBorderClassByState[options.state],\n options.disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-text',\n ].join(' ')\n}\nexport function grInputTagInputClass(size: GrInputTagSize): string {\n return inputSizeClassBySize[size]\n}\n","import { splitClassTokens } from '../shared/classTokens'\nimport {\n inputSizeClassBySize,\n wrapperBorderClassByState,\n wrapperSizeClassBySize,\n} from './grInputTagStyles'\n\nexport const grInputTagSafelist = [...new Set([\n ...Object.values(wrapperSizeClassBySize).flatMap(splitClassTokens),\n ...Object.values(inputSizeClassBySize).flatMap(splitClassTokens),\n ...Object.values(wrapperBorderClassByState).flatMap(splitClassTokens),\n ...splitClassTokens('opacity-50 cursor-not-allowed'),\n ...splitClassTokens('cursor-text'),\n])]\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grInputTagSafelist } from './safelist'\n\nexport const grInputTagConfig = defineGranularComponent(import.meta.url, {\n name: 'GrInputTag',\n dependencies: ['GrBadge', 'GrIcon', 'GrInput'],\n safelist: grInputTagSafelist,\n})"],"mappings":";;;AAGA,IAAa,yBAAyD;CACpE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AACD,IAAa,uBAAuD;CAClE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AACD,IAAa,4BAA6D;CACxE,SAAS;CACT,SAAS;CACT,SAAS;CACT,QAAQ;CACT;AACD,SAAgB,uBAAuB,SAAwG;AAC7I,QAAO;EACL,uBAAuB,QAAQ;EAC/B,QAAQ,UAAU,0BAA0B,SAAS,0BAA0B,QAAQ;EACvF,QAAQ,WAAW,kCAAkC;EACtD,CAAC,KAAK,IAAI;;AAEb,SAAgB,qBAAqB,MAA8B;AACjE,QAAO,qBAAqB;;;;ACtB9B,IAAa,qBAAqB,CAAC,GAAG,IAAI,IAAI;CAC5C,GAAG,OAAO,OAAO,uBAAuB,CAAC,QAAQ,iBAAiB;CAClE,GAAG,OAAO,OAAO,qBAAqB,CAAC,QAAQ,iBAAiB;CAChE,GAAG,OAAO,OAAO,0BAA0B,CAAC,QAAQ,iBAAiB;CACrE,GAAG,iBAAiB,gCAAgC;CACpD,GAAG,iBAAiB,cAAc;CACnC,CAAC,CAAC;;;ACTH,IAAa,mBAAmB,wBAAwB,OAAO,KAAK,KAAK;CACvE,MAAM;CACN,cAAc;EAAC;EAAW;EAAU;EAAU;CAC9C,UAAU;CACX,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrProgressBar/grStyle.ts
|
|
4
|
+
function withVar(token) {
|
|
5
|
+
return `[${token}]`;
|
|
6
|
+
}
|
|
7
|
+
var toneVars = {
|
|
8
|
+
primary: "var(--pb-bg,var(--primary))",
|
|
9
|
+
neutral: "var(--pb-neutral-bg,var(--secondary))",
|
|
10
|
+
success: "var(--pb-success-bg,var(--ds-success))",
|
|
11
|
+
warning: "var(--pb-warning-bg,var(--ds-warning))",
|
|
12
|
+
danger: "var(--pb-danger-bg,var(--ds-danger))",
|
|
13
|
+
info: "var(--pb-info-bg,var(--ds-info))",
|
|
14
|
+
slate: "var(--pb-slate-bg,var(--ds-slate))",
|
|
15
|
+
azure: "var(--pb-azure-bg,var(--ds-azure))"
|
|
16
|
+
};
|
|
17
|
+
function grProgressBarFillClass(tone) {
|
|
18
|
+
return `bg-${withVar(toneVars[tone])}`;
|
|
19
|
+
}
|
|
20
|
+
var grProgressBarClassTokens = { fill: [
|
|
21
|
+
"primary",
|
|
22
|
+
"neutral",
|
|
23
|
+
"success",
|
|
24
|
+
"warning",
|
|
25
|
+
"danger",
|
|
26
|
+
"info",
|
|
27
|
+
"slate",
|
|
28
|
+
"azure"
|
|
29
|
+
].flatMap((tone) => splitClassTokens(grProgressBarFillClass(tone))) };
|
|
30
|
+
var grProgressBarSafelist = [...new Set([...grProgressBarClassTokens.fill])];
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/GrProgressBar/config.ts
|
|
33
|
+
var grProgressBarConfig = defineGranularComponent(import.meta.url, {
|
|
34
|
+
name: "GrProgressBar",
|
|
35
|
+
safelist: grProgressBarSafelist
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { grProgressBarSafelist as n, grProgressBarFillClass as r, grProgressBarConfig as t };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=config-CJeyaUTp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CJeyaUTp.js","names":[],"sources":["../../src/components/GrProgressBar/grStyle.ts","../../src/components/GrProgressBar/safelist.ts","../../src/components/GrProgressBar/config.ts"],"sourcesContent":["export type GrProgressBarTone = 'primary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info' | 'slate' | 'azure'\n\nfunction withVar(token: string): string {\n return `[${token}]`\n}\n\nconst toneVars: Record<GrProgressBarTone, string> = {\n primary: 'var(--pb-bg,var(--primary))',\n neutral: 'var(--pb-neutral-bg,var(--secondary))',\n success: 'var(--pb-success-bg,var(--ds-success))',\n warning: 'var(--pb-warning-bg,var(--ds-warning))',\n danger: 'var(--pb-danger-bg,var(--ds-danger))',\n info: 'var(--pb-info-bg,var(--ds-info))',\n slate: 'var(--pb-slate-bg,var(--ds-slate))',\n azure: 'var(--pb-azure-bg,var(--ds-azure))',\n}\n\nexport function grProgressBarFillClass(tone: GrProgressBarTone): string {\n return `bg-${withVar(toneVars[tone])}`\n}\n","import { splitClassTokens } from '../shared/classTokens'\nimport { grProgressBarFillClass, type GrProgressBarTone } from './grStyle'\n\nconst TONES: GrProgressBarTone[] = ['primary', 'neutral', 'success', 'warning', 'danger', 'info', 'slate', 'azure']\n\nconst fillTokens = TONES.flatMap(tone => splitClassTokens(grProgressBarFillClass(tone)))\n\nexport const grProgressBarClassTokens = {\n fill: fillTokens,\n} as const\n\nexport const grProgressBarSafelist = [...new Set([\n ...grProgressBarClassTokens.fill,\n])] as const\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grProgressBarSafelist } from './safelist'\n\nexport const grProgressBarConfig = defineGranularComponent(import.meta.url, {\n name: 'GrProgressBar',\n safelist: grProgressBarSafelist,\n})"],"mappings":";;;AAEA,SAAS,QAAQ,OAAuB;AACtC,QAAO,IAAI,MAAM;;AAGnB,IAAM,WAA8C;CAClD,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACT,QAAQ;CACR,MAAM;CACN,OAAO;CACP,OAAO;CACR;AAED,SAAgB,uBAAuB,MAAiC;AACtE,QAAO,MAAM,QAAQ,SAAS,MAAM;;ACXtC,IAAa,2BAA2B,EACtC,MALiC;CAAC;CAAW;CAAW;CAAW;CAAW;CAAU;CAAQ;CAAS;CAAQ,CAE1F,SAAQ,SAAQ,iBAAiB,uBAAuB,KAAK,CAAC,CAAC,EAIvF;AAED,IAAa,wBAAwB,CAAC,GAAG,IAAI,IAAI,CAC/C,GAAG,yBAAyB,KAC7B,CAAC,CAAC;;;ACTH,IAAa,sBAAsB,wBAAwB,OAAO,KAAK,KAAK;CAC1E,MAAM;CACN,UAAU;CACX,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrDataTable/config.ts
|
|
3
|
+
var grDataTableConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrDataTable",
|
|
5
|
+
safelist: [],
|
|
6
|
+
dependencies: ["GrTable", "GrIcon"]
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grDataTableConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-CMZE2fu0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CMZE2fu0.js","names":[],"sources":["../../src/components/GrDataTable/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\n// safelist пустой — все классы прописаны литералами в шаблоне, UnoCSS находит сканом\nexport const grDataTableConfig = defineGranularComponent(import.meta.url, {\n name: 'GrDataTable',\n safelist: [],\n dependencies: ['GrTable', 'GrIcon'],\n})\n"],"mappings":";;AAGA,IAAa,oBAAoB,wBAAwB,OAAO,KAAK,KAAK;CACxE,MAAM;CACN,UAAU,EAAE;CACZ,cAAc,CAAC,WAAW,SAAS;CACpC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrAvatar/grAvatarStyles.ts
|
|
4
|
+
var shapes = {
|
|
5
|
+
circle: "rounded-full",
|
|
6
|
+
square: "rounded-[10px]"
|
|
7
|
+
};
|
|
8
|
+
function grAvatarClass(shape) {
|
|
9
|
+
return [shapes[shape]].join(" ");
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/GrAvatar/safelist.ts
|
|
13
|
+
var grAvatarClassTokens = { shapes: Object.values(shapes).flatMap(splitClassTokens) };
|
|
14
|
+
var grAvatarSafelist = [...new Set([...grAvatarClassTokens.shapes])];
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/GrAvatar/config.ts
|
|
17
|
+
var grAvatarConfig = defineGranularComponent(import.meta.url, {
|
|
18
|
+
name: "GrAvatar",
|
|
19
|
+
safelist: grAvatarSafelist
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { grAvatarSafelist as n, grAvatarClass as r, grAvatarConfig as t };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=config-CU_CBd0k.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CU_CBd0k.js","names":[],"sources":["../../src/components/GrAvatar/grAvatarStyles.ts","../../src/components/GrAvatar/safelist.ts","../../src/components/GrAvatar/config.ts"],"sourcesContent":["export type GrAvatarShape = 'circle' | 'square'\n\nexport const shapes: Record<GrAvatarShape, string> = {\n circle: 'rounded-full',\n square: 'rounded-[10px]',\n}\n\nexport function grAvatarClass(shape: GrAvatarShape): string {\n return [shapes[shape]].join(' ')\n}\n","import { splitClassTokens } from '../shared/classTokens'\nimport { shapes } from './grAvatarStyles'\n\nexport const grAvatarClassTokens = {\n shapes: Object.values(shapes).flatMap(splitClassTokens),\n} as const\n\nexport const grAvatarSafelist = [...new Set([\n ...grAvatarClassTokens.shapes,\n])]\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grAvatarSafelist } from './safelist'\n\nexport const grAvatarConfig = defineGranularComponent(import.meta.url, {\n name: 'GrAvatar',\n safelist: grAvatarSafelist,\n})"],"mappings":";;;AAEA,IAAa,SAAwC;CACjD,QAAQ;CACR,QAAQ;CACX;AAED,SAAgB,cAAc,OAA8B;AACxD,QAAO,CAAC,OAAO,OAAO,CAAC,KAAK,IAAI;;;;ACLpC,IAAa,sBAAsB,EAC/B,QAAQ,OAAO,OAAO,OAAO,CAAC,QAAQ,iBAAiB,EAC1D;AAED,IAAa,mBAAmB,CAAC,GAAG,IAAI,IAAI,CACxC,GAAG,oBAAoB,OAC1B,CAAC,CAAC;;;ACLH,IAAa,iBAAiB,wBAAwB,OAAO,KAAK,KAAK;CACrE,MAAM;CACN,UAAU;CACX,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { c as selectSizeClassBySize, o as selectLinkSizeClassBySize, s as selectLinkVariantClassByVariant } from "./grSelectStyles-C1zNEkV7.js";
|
|
3
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
4
|
+
//#region src/components/GrSelect/safelist.ts
|
|
5
|
+
var grSelectSafelist = [...new Set([
|
|
6
|
+
...Object.values(selectSizeClassBySize).flatMap(splitClassTokens),
|
|
7
|
+
...Object.values(selectLinkSizeClassBySize).flatMap(splitClassTokens),
|
|
8
|
+
...Object.values(selectLinkVariantClassByVariant).flatMap(splitClassTokens),
|
|
9
|
+
...splitClassTokens("no-underline underline underline-offset-4 hover:underline hover:underline-offset-4"),
|
|
10
|
+
...splitClassTokens("disabled:opacity-60 disabled:cursor-not-allowed disabled:text-[var(--muted-fg)] disabled:no-underline"),
|
|
11
|
+
...splitClassTokens("disabled:opacity-50 disabled:cursor-not-allowed"),
|
|
12
|
+
...splitClassTokens("appearance-none pr-9"),
|
|
13
|
+
...splitClassTokens("inline-flex items-center gap-1 text-left"),
|
|
14
|
+
...splitClassTokens("flex items-center justify-between text-left")
|
|
15
|
+
])];
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/GrSelect/config.ts
|
|
18
|
+
var grSelectConfig = defineGranularComponent(import.meta.url, {
|
|
19
|
+
name: "GrSelect",
|
|
20
|
+
dependencies: ["GrInput"],
|
|
21
|
+
safelist: grSelectSafelist
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { grSelectSafelist as n, grSelectConfig as t };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=config-CYPU3ztl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CYPU3ztl.js","names":[],"sources":["../../src/components/GrSelect/safelist.ts","../../src/components/GrSelect/config.ts"],"sourcesContent":["import { splitClassTokens } from '../shared/classTokens'\nimport {\n selectLinkSizeClassBySize,\n selectLinkVariantClassByVariant,\n selectSizeClassBySize,\n} from './grSelectStyles'\n\n// Правило: литералы из шаблонов (`defaultBaseClass`/`linkBaseClass`/`grSelectPanelClasses`\n// и прочие статические строки) в safelist не дублируем — UnoCSS находит их сканом.\n// Сюда попадают только токены, которые собираются в рантайме через `grSelectClass*`.\nexport const grSelectSafelist = [...new Set([\n ...Object.values(selectSizeClassBySize).flatMap(splitClassTokens),\n ...Object.values(selectLinkSizeClassBySize).flatMap(splitClassTokens),\n ...Object.values(selectLinkVariantClassByVariant).flatMap(splitClassTokens),\n ...splitClassTokens('no-underline underline underline-offset-4 hover:underline hover:underline-offset-4'),\n ...splitClassTokens('disabled:opacity-60 disabled:cursor-not-allowed disabled:text-[var(--muted-fg)] disabled:no-underline'),\n ...splitClassTokens('disabled:opacity-50 disabled:cursor-not-allowed'),\n ...splitClassTokens('appearance-none pr-9'),\n ...splitClassTokens('inline-flex items-center gap-1 text-left'),\n ...splitClassTokens('flex items-center justify-between text-left'),\n])]\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grSelectSafelist } from './safelist'\n\nexport const grSelectConfig = defineGranularComponent(import.meta.url, {\n name: 'GrSelect',\n dependencies: ['GrInput'],\n safelist: grSelectSafelist,\n})"],"mappings":";;;;AAUA,IAAa,mBAAmB,CAAC,GAAG,IAAI,IAAI;CAC1C,GAAG,OAAO,OAAO,sBAAsB,CAAC,QAAQ,iBAAiB;CACjE,GAAG,OAAO,OAAO,0BAA0B,CAAC,QAAQ,iBAAiB;CACrE,GAAG,OAAO,OAAO,gCAAgC,CAAC,QAAQ,iBAAiB;CAC3E,GAAG,iBAAiB,qFAAqF;CACzG,GAAG,iBAAiB,wGAAwG;CAC5H,GAAG,iBAAiB,kDAAkD;CACtE,GAAG,iBAAiB,uBAAuB;CAC3C,GAAG,iBAAiB,2CAA2C;CAC/D,GAAG,iBAAiB,8CAA8C;CACnE,CAAC,CAAC;;;AChBH,IAAa,iBAAiB,wBAAwB,OAAO,KAAK,KAAK;CACrE,MAAM;CACN,cAAc,CAAC,UAAU;CACzB,UAAU;CACX,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { i as rootModeClass, n as rootBackdropBlurClass, r as rootBackgroundClass } from "./grLoadingStyles-CERsxyk9.js";
|
|
3
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
4
|
+
//#region src/components/GrLoading/safelist.ts
|
|
5
|
+
var grLoadingSafelist = [...new Set([
|
|
6
|
+
...Object.values(rootModeClass).flatMap(splitClassTokens),
|
|
7
|
+
...splitClassTokens(rootBackgroundClass),
|
|
8
|
+
...splitClassTokens(rootBackdropBlurClass)
|
|
9
|
+
])];
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/GrLoading/config.ts
|
|
12
|
+
var grLoadingConfig = defineGranularComponent(import.meta.url, {
|
|
13
|
+
name: "GrLoading",
|
|
14
|
+
safelist: grLoadingSafelist
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { grLoadingSafelist as n, grLoadingConfig as t };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=config-CcmeMlic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CcmeMlic.js","names":[],"sources":["../../src/components/GrLoading/safelist.ts","../../src/components/GrLoading/config.ts"],"sourcesContent":["import {splitClassTokens} from '../shared/classTokens'\nimport {rootBackdropBlurClass, rootBackgroundClass, rootModeClass} from './grLoadingStyles'\n\nexport const grLoadingSafelist = [...new Set([\n ...Object.values(rootModeClass).flatMap(splitClassTokens),\n ...splitClassTokens(rootBackgroundClass),\n ...splitClassTokens(rootBackdropBlurClass),\n])]\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grLoadingSafelist } from './safelist'\n\nexport const grLoadingConfig = defineGranularComponent(import.meta.url, {\n name: 'GrLoading',\n safelist: grLoadingSafelist,\n})"],"mappings":";;;;AAGA,IAAa,oBAAoB,CAAC,GAAG,IAAI,IAAI;CACzC,GAAG,OAAO,OAAO,cAAc,CAAC,QAAQ,iBAAiB;CACzD,GAAG,iBAAiB,oBAAoB;CACxC,GAAG,iBAAiB,sBAAsB;CAC7C,CAAC,CAAC;;;ACHH,IAAa,kBAAkB,wBAAwB,OAAO,KAAK,KAAK;CACtE,MAAM;CACN,UAAU;CACX,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrEmptyState/config.ts
|
|
3
|
+
var grEmptyStateConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrEmptyState",
|
|
5
|
+
dependencies: ["GrIcon"],
|
|
6
|
+
safelist: []
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grEmptyStateConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-CdAx6ify2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CdAx6ify2.js","names":[],"sources":["../../src/components/GrEmptyState/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\nexport const grEmptyStateConfig = defineGranularComponent(import.meta.url, {\n name: 'GrEmptyState',\n dependencies: ['GrIcon'],\n safelist: [],\n})\n"],"mappings":";;AAEA,IAAa,qBAAqB,wBAAwB,OAAO,KAAK,KAAK;CACzE,MAAM;CACN,cAAc,CAAC,SAAS;CACxB,UAAU,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrToaster/grToasterStyles.ts
|
|
4
|
+
var PLACEMENT_CLASS = {
|
|
5
|
+
"top-right": "right-4 top-4",
|
|
6
|
+
"top-left": "left-4 top-4",
|
|
7
|
+
"bottom-right": "right-4 bottom-4",
|
|
8
|
+
"bottom-left": "left-4 bottom-4"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/GrToaster/safelist.ts
|
|
12
|
+
var grToasterSafelist = [...new Set(Object.values(PLACEMENT_CLASS).flatMap(splitClassTokens))];
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/GrToaster/config.ts
|
|
15
|
+
var grToasterConfig = defineGranularComponent(import.meta.url, {
|
|
16
|
+
name: "GrToaster",
|
|
17
|
+
dependencies: ["GrButton", "GrIcon"],
|
|
18
|
+
safelist: grToasterSafelist
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { grToasterSafelist as n, PLACEMENT_CLASS as r, grToasterConfig as t };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=config-CxCAfXZ1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CxCAfXZ1.js","names":[],"sources":["../../src/components/GrToaster/grToasterStyles.ts","../../src/components/GrToaster/safelist.ts","../../src/components/GrToaster/config.ts"],"sourcesContent":["export type GrToasterPlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'\n\n// Классы позиционирования контейнера по углам экрана.\n// Вынесены в отдельный модуль, чтобы быть единственным источником истины\n// для шаблона `GrToaster.vue` и для safelist.\nexport const PLACEMENT_CLASS: Record<GrToasterPlacement, string> = {\n 'top-right': 'right-4 top-4',\n 'top-left': 'left-4 top-4',\n 'bottom-right': 'right-4 bottom-4',\n 'bottom-left': 'left-4 bottom-4',\n}\n","import { splitClassTokens } from '../shared/classTokens'\nimport { PLACEMENT_CLASS } from './grToasterStyles'\n\n// В safelist попадают только те классы, которые приходят в шаблон динамически\n// (через `:class`/`PLACEMENT_CLASS`). Литералы из шаблона (`class=\"...\"`)\n// UnoCSS находит статическим сканом и дублировать их здесь не нужно.\nexport const grToasterSafelist = [...new Set(\n Object.values(PLACEMENT_CLASS).flatMap(splitClassTokens),\n)]\n","import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\nimport { grToasterSafelist } from './safelist'\n\nexport const grToasterConfig = defineGranularComponent(import.meta.url, {\n name: 'GrToaster',\n dependencies: ['GrButton', 'GrIcon'],\n safelist: grToasterSafelist,\n})\n"],"mappings":";;;AAKA,IAAa,kBAAsD;CACjE,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,eAAe;CAChB;;;ACJD,IAAa,oBAAoB,CAAC,GAAG,IAAI,IACvC,OAAO,OAAO,gBAAgB,CAAC,QAAQ,iBAAiB,CACzD,CAAC;;;ACJF,IAAa,kBAAkB,wBAAwB,OAAO,KAAK,KAAK;CACtE,MAAM;CACN,cAAc,CAAC,YAAY,SAAS;CACpC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrTable/config.ts
|
|
3
|
+
var grTableConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrTable",
|
|
5
|
+
dependencies: [],
|
|
6
|
+
safelist: []
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grTableConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-D1gSaT52.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-D1gSaT52.js","names":[],"sources":["../../src/components/GrTable/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\n// Все классы GrTable — статические литералы в шаблоне, UnoCSS найдёт их сканом.\nexport const grTableConfig = defineGranularComponent(import.meta.url, {\n name: 'GrTable',\n dependencies: [],\n safelist: [],\n})\n"],"mappings":";;AAGA,IAAa,gBAAgB,wBAAwB,OAAO,KAAK,KAAK;CACpE,MAAM;CACN,cAAc,EAAE;CAChB,UAAU,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrPagination/config.ts
|
|
3
|
+
var grPaginationConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrPagination",
|
|
5
|
+
dependencies: ["GrButton", "GrSelect"],
|
|
6
|
+
safelist: []
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grPaginationConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-D7iuXJbl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-D7iuXJbl.js","names":[],"sources":["../../src/components/GrPagination/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\nexport const grPaginationConfig = defineGranularComponent(import.meta.url, {\n name: 'GrPagination',\n dependencies: ['GrButton', 'GrSelect'],\n safelist: [],\n})\n"],"mappings":";;AAEA,IAAa,qBAAqB,wBAAwB,OAAO,KAAK,KAAK;CACzE,MAAM;CACN,cAAc,CAAC,YAAY,WAAW;CACtC,UAAU,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrRadioGroup/config.ts
|
|
3
|
+
var grRadioGroupConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrRadioGroup",
|
|
5
|
+
dependencies: ["GrButtonGroup", "GrRadio"],
|
|
6
|
+
safelist: []
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grRadioGroupConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-D7tRu8u3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-D7tRu8u3.js","names":[],"sources":["../../src/components/GrRadioGroup/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\nexport const grRadioGroupConfig = defineGranularComponent(import.meta.url, {\n name: 'GrRadioGroup',\n dependencies: ['GrButtonGroup', 'GrRadio'],\n safelist: [],\n})\n"],"mappings":";;AAEA,IAAa,qBAAqB,wBAAwB,OAAO,KAAK,KAAK;CACzE,MAAM;CACN,cAAc,CAAC,iBAAiB,UAAU;CAC1C,UAAU,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrImageViewer/config.ts
|
|
3
|
+
var grImageViewerConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrImageViewer",
|
|
5
|
+
safelist: []
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { grImageViewerConfig as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=config-DBYCntwl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DBYCntwl.js","names":[],"sources":["../../src/components/GrImageViewer/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\nexport const grImageViewerConfig = defineGranularComponent(import.meta.url, {\n name: 'GrImageViewer',\n // Литералы из шаблона UnoCSS находит сканом — safelist не нужен.\n safelist: [],\n})\n"],"mappings":";;AAEA,IAAa,sBAAsB,wBAAwB,OAAO,KAAK,KAAK;CAC1E,MAAM;CAEN,UAAU,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrConfirmDialog/config.ts
|
|
3
|
+
var grConfirmDialogConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrConfirmDialog",
|
|
5
|
+
dependencies: ["GrButton", "GrDialog"],
|
|
6
|
+
safelist: []
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grConfirmDialogConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-DFRYOcrP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DFRYOcrP.js","names":[],"sources":["../../src/components/GrConfirmDialog/config.ts"],"sourcesContent":["import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nexport const grConfirmDialogConfig = defineGranularComponent(import.meta.url, {\n name: 'GrConfirmDialog',\n dependencies: ['GrButton', 'GrDialog'],\n safelist: [],\n})"],"mappings":";;AAEA,IAAa,wBAAwB,wBAAwB,OAAO,KAAK,KAAK;CAC1E,MAAM;CACN,cAAc,CAAC,YAAY,WAAW;CACtC,UAAU,EAAE;CACf,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrBadgeWrap/config.ts
|
|
3
|
+
var grBadgeWrapConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrBadgeWrap",
|
|
5
|
+
safelist: []
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { grBadgeWrapConfig as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=config-DW_RqmUp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DW_RqmUp.js","names":[],"sources":["../../src/components/GrBadgeWrap/config.ts"],"sourcesContent":["import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nexport const grBadgeWrapConfig = defineGranularComponent(import.meta.url, {\n name: 'GrBadgeWrap',\n safelist: [],\n})"],"mappings":";;AAEA,IAAa,oBAAoB,wBAAwB,OAAO,KAAK,KAAK;CACxE,MAAM;CACN,UAAU,EAAE;CACb,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as grButtonSafelist } from "./safelist-BY7z8fOl.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrButton/config.ts
|
|
4
|
+
var grButtonConfig = defineGranularComponent(import.meta.url, {
|
|
5
|
+
name: "GrButton",
|
|
6
|
+
safelist: grButtonSafelist
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grButtonConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-Dkq0HeLe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-Dkq0HeLe.js","names":[],"sources":["../../src/components/GrButton/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\nimport { grButtonSafelist } from './safelist'\n\nexport const grButtonConfig = defineGranularComponent(import.meta.url, {\n name: 'GrButton',\n safelist: grButtonSafelist,\n})\n"],"mappings":";;;AAGA,IAAa,iBAAiB,wBAAwB,OAAO,KAAK,KAAK;CACrE,MAAM;CACN,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrNavbar/config.ts
|
|
3
|
+
var grNavbarConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrNavbar",
|
|
5
|
+
dependencies: ["GrButton", "GrIcon"],
|
|
6
|
+
safelist: []
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export { grNavbarConfig as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=config-DlLE49_I.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DlLE49_I.js","names":[],"sources":["../../src/components/GrNavbar/config.ts"],"sourcesContent":["import { defineGranularComponent } from '@feugene/unocss-preset-granular/contract'\n\nexport const grNavbarConfig = defineGranularComponent(import.meta.url, {\n name: 'GrNavbar',\n dependencies: ['GrButton', 'GrIcon'],\n safelist: [],\n})\n"],"mappings":";;AAEA,IAAa,iBAAiB,wBAAwB,OAAO,KAAK,KAAK;CACrE,MAAM;CACN,cAAc,CAAC,YAAY,SAAS;CACpC,UAAU,EAAE;CACb,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { t as splitClassTokens } from "./classTokens-BPeBXNzu.js";
|
|
2
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
3
|
+
//#region src/components/GrNumberInput/grNumberInputStyles.ts
|
|
4
|
+
var sizeClassBySize = {
|
|
5
|
+
xs: "h-7 px-2.5 text-[12px]",
|
|
6
|
+
sm: "h-8 px-3 text-[13px]",
|
|
7
|
+
md: "h-10 px-3 text-[14px]",
|
|
8
|
+
lg: "h-11 px-4 text-[16px]"
|
|
9
|
+
};
|
|
10
|
+
var textAlignClassByAlign = {
|
|
11
|
+
left: "text-left",
|
|
12
|
+
center: "text-center",
|
|
13
|
+
right: "text-right"
|
|
14
|
+
};
|
|
15
|
+
var borderClassByState = {
|
|
16
|
+
default: "border-[var(--brd)]",
|
|
17
|
+
success: "border-[var(--ds-success)] focus-within:ring-[var(--ds-success)]",
|
|
18
|
+
warning: "border-[var(--ds-warning)] focus-within:ring-[var(--ds-warning)]",
|
|
19
|
+
danger: "border-[var(--ds-danger)] focus-within:ring-[var(--ds-danger)]"
|
|
20
|
+
};
|
|
21
|
+
/** Динамические классы для disabled-состояния shell'а — выбираются в рантайме. */
|
|
22
|
+
var disabledShellClass = "opacity-50 cursor-not-allowed";
|
|
23
|
+
function grNumberInputShellClass(options) {
|
|
24
|
+
return [options.disabled ? disabledShellClass : "", borderClassByState[options.state]].filter(Boolean).join(" ");
|
|
25
|
+
}
|
|
26
|
+
function grNumberInputInputClass(options) {
|
|
27
|
+
return [sizeClassBySize[options.size], textAlignClassByAlign[options.textAlign]].join(" ");
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/GrNumberInput/safelist.ts
|
|
31
|
+
var grNumberInputSafelist = [...new Set([
|
|
32
|
+
...Object.values(sizeClassBySize).flatMap(splitClassTokens),
|
|
33
|
+
...Object.values(textAlignClassByAlign).flatMap(splitClassTokens),
|
|
34
|
+
...Object.values(borderClassByState).flatMap(splitClassTokens),
|
|
35
|
+
...splitClassTokens(disabledShellClass)
|
|
36
|
+
])];
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/GrNumberInput/config.ts
|
|
39
|
+
var grNumberInputConfig = defineGranularComponent(import.meta.url, {
|
|
40
|
+
name: "GrNumberInput",
|
|
41
|
+
safelist: grNumberInputSafelist
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { grNumberInputShellClass as i, grNumberInputSafelist as n, grNumberInputInputClass as r, grNumberInputConfig as t };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=config-DvTUDLT1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-DvTUDLT1.js","names":[],"sources":["../../src/components/GrNumberInput/grNumberInputStyles.ts","../../src/components/GrNumberInput/safelist.ts","../../src/components/GrNumberInput/config.ts"],"sourcesContent":["export type GrNumberInputState = 'default' | 'success' | 'warning' | 'danger'\nexport type GrNumberInputSize = 'xs' | 'sm' | 'md' | 'lg'\nexport type GrNumberInputControlsDirection = 'vertical' | 'horizontal'\nexport type GrNumberInputTextAlign = 'left' | 'center' | 'right'\n\n// Backward-compatible type aliases.\nexport type NumberInputSize = GrNumberInputSize\nexport type NumberInputControlsDirection = GrNumberInputControlsDirection\n\nexport const sizeClassBySize: Record<GrNumberInputSize, string> = {\n xs: 'h-7 px-2.5 text-[12px]',\n sm: 'h-8 px-3 text-[13px]',\n md: 'h-10 px-3 text-[14px]',\n lg: 'h-11 px-4 text-[16px]',\n}\n\nexport const textAlignClassByAlign: Record<GrNumberInputTextAlign, string> = {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n}\n\nexport const borderClassByState: Record<GrNumberInputState, string> = {\n default: 'border-[var(--brd)]',\n success: 'border-[var(--ds-success)] focus-within:ring-[var(--ds-success)]',\n warning: 'border-[var(--ds-warning)] focus-within:ring-[var(--ds-warning)]',\n danger: 'border-[var(--ds-danger)] focus-within:ring-[var(--ds-danger)]',\n}\n\n/** Динамические классы для disabled-состояния shell'а — выбираются в рантайме. */\nexport const disabledShellClass = 'opacity-50 cursor-not-allowed'\n\nexport function grNumberInputShellClass(options: { disabled: boolean, state: GrNumberInputState }): string {\n return [\n options.disabled ? disabledShellClass : '',\n borderClassByState[options.state],\n ]\n .filter(Boolean)\n .join(' ')\n}\n\nexport function grNumberInputInputClass(options: { size: GrNumberInputSize, textAlign: GrNumberInputTextAlign }): string {\n return [\n sizeClassBySize[options.size],\n textAlignClassByAlign[options.textAlign],\n ].join(' ')\n}\n","import { splitClassTokens } from '../shared/classTokens'\nimport {\n borderClassByState,\n disabledShellClass,\n sizeClassBySize,\n textAlignClassByAlign,\n} from './grNumberInputStyles'\n\n// В safelist кладём только динамические токены, выбираемые по ключам в рантайме\n// (`size`/`textAlign`/`state`/`disabled`). Литералы shell/input/controls прописаны\n// статически в шаблоне — UnoCSS находит их сканом.\nexport const grNumberInputSafelist = [...new Set([\n ...Object.values(sizeClassBySize).flatMap(splitClassTokens),\n ...Object.values(textAlignClassByAlign).flatMap(splitClassTokens),\n ...Object.values(borderClassByState).flatMap(splitClassTokens),\n ...splitClassTokens(disabledShellClass),\n])]\n","import {defineGranularComponent} from '@feugene/unocss-preset-granular/contract'\n\nimport { grNumberInputSafelist } from './safelist'\n\nexport const grNumberInputConfig = defineGranularComponent(import.meta.url, {\n name: 'GrNumberInput',\n safelist: grNumberInputSafelist,\n})"],"mappings":";;;AASA,IAAa,kBAAqD;CAChE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAED,IAAa,wBAAgE;CAC3E,MAAM;CACN,QAAQ;CACR,OAAO;CACR;AAED,IAAa,qBAAyD;CACpE,SAAS;CACT,SAAS;CACT,SAAS;CACT,QAAQ;CACT;;AAGD,IAAa,qBAAqB;AAElC,SAAgB,wBAAwB,SAAmE;AACzG,QAAO,CACL,QAAQ,WAAW,qBAAqB,IACxC,mBAAmB,QAAQ,OAC5B,CACE,OAAO,QAAQ,CACf,KAAK,IAAI;;AAGd,SAAgB,wBAAwB,SAAiF;AACvH,QAAO,CACL,gBAAgB,QAAQ,OACxB,sBAAsB,QAAQ,WAC/B,CAAC,KAAK,IAAI;;;;AClCb,IAAa,wBAAwB,CAAC,GAAG,IAAI,IAAI;CAC/C,GAAG,OAAO,OAAO,gBAAgB,CAAC,QAAQ,iBAAiB;CAC3D,GAAG,OAAO,OAAO,sBAAsB,CAAC,QAAQ,iBAAiB;CACjE,GAAG,OAAO,OAAO,mBAAmB,CAAC,QAAQ,iBAAiB;CAC9D,GAAG,iBAAiB,mBAAmB;CACxC,CAAC,CAAC;;;ACZH,IAAa,sBAAsB,wBAAwB,OAAO,KAAK,KAAK;CAC1E,MAAM;CACN,UAAU;CACX,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineGranularComponent } from "@feugene/unocss-preset-granular/contract";
|
|
2
|
+
//#region src/components/GrTabs/config.ts
|
|
3
|
+
var grTabsConfig = defineGranularComponent(import.meta.url, {
|
|
4
|
+
name: "GrTabs",
|
|
5
|
+
safelist: []
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { grTabsConfig as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=config-DwB5-qdP2.js.map
|