@feugene/granularity 0.16.0 → 0.19.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/chunks/chevron-left-D8AUBAM7.js +23 -0
- package/dist/chunks/chevron-left-D8AUBAM7.js.map +1 -0
- package/dist/chunks/{chevron-right-BfqMVpbB.js → chevron-right-C6Z01h0X.js} +1 -22
- package/dist/chunks/chevron-right-C6Z01h0X.js.map +1 -0
- package/dist/chunks/config-8Pcutu1j2.js.map +1 -0
- package/dist/chunks/{config-K0C2tcLB.js → config-9PYRZlKE.js} +1 -1
- package/dist/chunks/{config-K0C2tcLB.js.map → config-9PYRZlKE.js.map} +1 -1
- package/dist/chunks/{config-Zc_bUvZY2.js → config-BDfTXHo12.js} +1 -1
- package/dist/chunks/{config-Zc_bUvZY2.js.map → config-BDfTXHo12.js.map} +1 -1
- package/dist/chunks/config-BE6n20np2.js.map +1 -0
- package/dist/chunks/config-BJ7Bv_G2.js +148 -0
- package/dist/chunks/config-BJ7Bv_G2.js.map +1 -0
- package/dist/chunks/config-BKvX0q102.js.map +1 -0
- package/dist/chunks/{config-CpwwkFBO.js → config-Baj7Wvx-.js} +1 -1
- package/dist/chunks/{config-CpwwkFBO.js.map → config-Baj7Wvx-.js.map} +1 -1
- package/dist/chunks/{config-D8tSR2uS.js → config-Be9k9bOf.js} +2 -8
- package/dist/chunks/config-Be9k9bOf.js.map +1 -0
- package/dist/chunks/config-BoNR7_PD2.js.map +1 -0
- package/dist/chunks/{config-DxCTVBfx.js → config-BsPDQ0dS.js} +2 -2
- package/dist/chunks/config-BsPDQ0dS.js.map +1 -0
- package/dist/chunks/{config-DpqOnJiz2.js → config-CDat1wXf2.js} +1 -1
- package/dist/chunks/config-CDat1wXf2.js.map +1 -0
- package/dist/chunks/config-CN2ULSQL.js.map +1 -0
- package/dist/chunks/{config-Cw6TDzWv2.js → config-COpuWGr_.js} +1 -1
- package/dist/chunks/config-COpuWGr_.js.map +1 -0
- package/dist/chunks/config-CY0_6cMi2.js.map +1 -0
- package/dist/chunks/{config-B-g6lT19.js → config-DA6SnEoy.js} +5 -2
- package/dist/chunks/config-DA6SnEoy.js.map +1 -0
- package/dist/chunks/config-DAX8Deh1.js +68 -0
- package/dist/chunks/config-DAX8Deh1.js.map +1 -0
- package/dist/chunks/config-DKdlqXiY.js.map +1 -1
- package/dist/chunks/{config-CvC0sX8p.js → config-MRvhUl-O.js} +1 -1
- package/dist/chunks/{config-CvC0sX8p.js.map → config-MRvhUl-O.js.map} +1 -1
- package/dist/chunks/config-Rw9OyW702.js.map +1 -0
- package/dist/chunks/config-ScuvHw6k2.js +42 -0
- package/dist/chunks/config-ScuvHw6k2.js.map +1 -0
- package/dist/chunks/config-T3qdQBgU2.js.map +1 -0
- package/dist/chunks/config-eXB87DOi.js.map +1 -0
- package/dist/chunks/context-BSYR7RZs.js.map +1 -1
- package/dist/chunks/{en-B3xMeswz.js → en-COdzxgAX.js} +30 -5
- package/dist/chunks/en-COdzxgAX.js.map +1 -0
- package/dist/chunks/{es-CA-mkU--.js → es-ClqJ-4hr.js} +30 -5
- package/dist/chunks/es-ClqJ-4hr.js.map +1 -0
- package/dist/chunks/{es-Bv8vvqdT.js → es-DGMHwknJ.js} +3 -3
- package/dist/chunks/{es-Bv8vvqdT.js.map → es-DGMHwknJ.js.map} +1 -1
- package/dist/chunks/generated-BRkbhyxk.js +3270 -0
- package/dist/chunks/generated-BRkbhyxk.js.map +1 -0
- package/dist/chunks/grKbdStyles-CeZhGQHr.js +43 -0
- package/dist/chunks/grKbdStyles-CeZhGQHr.js.map +1 -0
- package/dist/chunks/{grTextareaStyles-CWI2SqC8.js → grTextareaStyles-iOcHuVMM.js} +2 -2
- package/dist/chunks/{grTextareaStyles-CWI2SqC8.js.map → grTextareaStyles-iOcHuVMM.js.map} +1 -1
- package/dist/chunks/{granular-provider-CtrXGa7c.js → granular-provider-C6uAujdJ.js} +23 -21
- package/dist/chunks/granular-provider-C6uAujdJ.js.map +1 -0
- package/dist/chunks/grip-vertical-lRha2S7q.js +16 -0
- package/dist/chunks/grip-vertical-lRha2S7q.js.map +1 -0
- package/dist/chunks/icon-Dag2tIMs.js +21 -0
- package/dist/chunks/icon-Dag2tIMs.js.map +1 -0
- package/dist/chunks/{keyboard-zYvvyHd4.js → keyboard-DE2yhz_b.js} +10 -1
- package/dist/chunks/keyboard-DE2yhz_b.js.map +1 -0
- package/dist/chunks/{optionFilter-BVY988pC.js → optionFilter-DYw9XPPx.js} +1 -71
- package/dist/chunks/optionFilter-DYw9XPPx.js.map +1 -0
- package/dist/chunks/{useOverlayLayer-BupuP_hs.js → overlayStack-C8cfsqXa.js} +11 -61
- package/dist/chunks/overlayStack-C8cfsqXa.js.map +1 -0
- package/dist/chunks/{portalRoot-CWD4zHBm.js → portalRoot-CVhCgdG6.js} +10 -1
- package/dist/chunks/{portalRoot-CWD4zHBm.js.map → portalRoot-CVhCgdG6.js.map} +1 -1
- package/dist/chunks/{ru-COWxgh2A.js → ru-9z8ix45c.js} +30 -5
- package/dist/chunks/ru-9z8ix45c.js.map +1 -0
- package/dist/chunks/useDragSort-0l47h4yb.js +265 -0
- package/dist/chunks/useDragSort-0l47h4yb.js.map +1 -0
- package/dist/chunks/{useModalOverlay-DCM4d3yA.js → useModalOverlay-DrQVYwwA.js} +2 -2
- package/dist/chunks/{useModalOverlay-DCM4d3yA.js.map → useModalOverlay-DrQVYwwA.js.map} +1 -1
- package/dist/chunks/{usePortalTarget-RyzEgNTb.js → usePortalTarget-Cn-Wiz5d.js} +1 -1
- package/dist/chunks/{usePortalTarget-RyzEgNTb.js.map → usePortalTarget-Cn-Wiz5d.js.map} +1 -1
- package/dist/components/GrAutocomplete/chunks/{GrAutocomplete-CQ9T7Lly.js → GrAutocomplete-gY4Xopza.js} +35 -26
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-gY4Xopza.js.map +1 -0
- package/dist/components/GrAutocomplete/index.js +1 -1
- package/dist/components/GrAutocomplete/styles.css +1 -1
- package/dist/components/GrBreadcrumbs/chunks/{GrBreadcrumbs-BCNGDS6k.js → GrBreadcrumbs-DS_-PBVt.js} +8 -7
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-DS_-PBVt.js.map +1 -0
- package/dist/components/GrBreadcrumbs/index.js +1 -1
- package/dist/components/GrCollapse/chunks/{GrCollapse-B2Fc6A9r.js.map → GrCollapse-Kk0DE8tb.js.map} +1 -1
- package/dist/components/GrCollapse/index.js +1 -1
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-bnYBRGk8.js → GrColorPicker-CkBTzkqn.js} +4 -4
- package/dist/components/GrColorPicker/chunks/{GrColorPicker-bnYBRGk8.js.map → GrColorPicker-CkBTzkqn.js.map} +1 -1
- package/dist/components/GrColorPicker/index.js +2 -2
- package/dist/components/GrCommandPalette/chunks/{GrCommandPalette-MWDYDPNC.js → GrCommandPalette-BugTlGdj.js} +41 -16
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-BugTlGdj.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +2 -2
- package/dist/components/GrCommandPalette/styles.css +1 -1
- package/dist/components/GrConfigProvider/index.js +2 -2
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-DaQmlp1_.js → GrConfirmDialog-Ds5T0GiR.js} +1 -1
- package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-DaQmlp1_.js.map → GrConfirmDialog-Ds5T0GiR.js.map} +1 -1
- package/dist/components/GrConfirmDialog/index.js +1 -1
- package/dist/components/GrDataTable/chunks/{GrDataTable-DVFho9Cj.js → GrDataTable-CYe2A2WA.js} +498 -48
- package/dist/components/GrDataTable/chunks/GrDataTable-CYe2A2WA.js.map +1 -0
- package/dist/components/GrDataTable/index.js +2 -2
- package/dist/components/GrDialog/chunks/{GrDialog-AE1gIZuz.js → GrDialog-C3tYaA8v.js} +1 -1
- package/dist/components/GrDialog/chunks/{GrDialog-AE1gIZuz.js.map → GrDialog-C3tYaA8v.js.map} +1 -1
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/{GrDialogService-B4DYWDkA.js → GrDialogService-CTBiiJDI.js} +3 -3
- package/dist/components/GrDialogService/chunks/{GrDialogService-B4DYWDkA.js.map → GrDialogService-CTBiiJDI.js.map} +1 -1
- package/dist/components/GrDialogService/index.js +1 -1
- package/dist/components/GrDivider/chunks/{GrDivider-B2Xwc_QO.js → GrDivider-xxq1_fIl.js} +1 -1
- package/dist/components/GrDivider/chunks/{GrDivider-B2Xwc_QO.js.map → GrDivider-xxq1_fIl.js.map} +1 -1
- package/dist/components/GrDivider/index.js +2 -2
- package/dist/components/GrDrawer/chunks/{GrDrawer-DQwi6aRw.js → GrDrawer-BSSuiNHU.js} +1 -1
- package/dist/components/GrDrawer/chunks/{GrDrawer-DQwi6aRw.js.map → GrDrawer-BSSuiNHU.js.map} +1 -1
- package/dist/components/GrDrawer/index.js +1 -1
- package/dist/components/GrDropdown/chunks/{GrDropdown-BLng6V1m.js → GrDropdown-Bh6UK2M5.js} +3 -3
- package/dist/components/GrDropdown/chunks/{GrDropdown-BLng6V1m.js.map → GrDropdown-Bh6UK2M5.js.map} +1 -1
- package/dist/components/GrDropdown/index.js +1 -1
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-BImk2Vs7.js → GrDropdownMenu-LyfEFUbg.js} +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-BImk2Vs7.js.map → GrDropdownMenu-LyfEFUbg.js.map} +1 -1
- package/dist/components/GrDropdownMenu/index.js +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-D0B-BEsd.js → GrFileUpload-DuDzC43S.js} +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-D0B-BEsd.js.map → GrFileUpload-DuDzC43S.js.map} +1 -1
- package/dist/components/GrFileUpload/index.js +1 -1
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-BeCnE8XQ.js → GrImageViewer-DfD4euH5.js} +48 -23
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DfD4euH5.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +1 -1
- package/dist/components/GrInput/chunks/{GrInput-DD2gYdqS.js → GrInput-2wd7Crs0.js} +1 -1
- package/dist/components/GrInput/chunks/GrInput-2wd7Crs0.js.map +1 -0
- package/dist/components/GrInput/index.js +1 -1
- package/dist/components/GrInputTag/chunks/{GrInputTag-DmNunixz.js → GrInputTag-CyV2eY7Z.js} +20 -33
- package/dist/components/GrInputTag/chunks/GrInputTag-CyV2eY7Z.js.map +1 -0
- package/dist/components/GrInputTag/index.js +1 -1
- package/dist/components/GrKbd/chunks/{GrKbd-DRFPvW3G.js → GrKbd-DU2lBkRV.js} +218 -52
- package/dist/components/GrKbd/chunks/GrKbd-DU2lBkRV.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -3
- package/dist/components/GrModal/chunks/{GrModal-B8I78T0N.js → GrModal-CbMMr6W1.js} +1 -1
- package/dist/components/GrModal/chunks/{GrModal-B8I78T0N.js.map → GrModal-CbMMr6W1.js.map} +1 -1
- package/dist/components/GrModal/index.js +1 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-CZOyPz4J.js → GrNumberInput-B5CHZDBj.js} +2 -1
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-CZOyPz4J.js.map → GrNumberInput-B5CHZDBj.js.map} +1 -1
- package/dist/components/GrNumberInput/index.js +1 -1
- package/dist/components/GrPagination/chunks/{GrPagination-B6N0QZBf.js → GrPagination-BM4FrD6Q.js} +4 -4
- package/dist/components/GrPagination/chunks/GrPagination-BM4FrD6Q.js.map +1 -0
- package/dist/components/GrPagination/index.js +1 -1
- package/dist/components/GrPopover/chunks/{GrPopover-B1eRCOoO.js → GrPopover-DMH4Jjst.js} +1 -1
- package/dist/components/GrPopover/chunks/{GrPopover-B1eRCOoO.js.map → GrPopover-DMH4Jjst.js.map} +1 -1
- package/dist/components/GrPopover/index.js +1 -1
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-BiHnaitu.js → GrProgressBar-xwbNM9QB.js} +1 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-xwbNM9QB.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +1 -1
- package/dist/components/GrProgressCircle/chunks/{GrProgressCircle-CTogjcHz.js → GrProgressCircle-B8olXRo5.js} +1 -1
- package/dist/components/GrProgressCircle/chunks/{GrProgressCircle-CTogjcHz.js.map → GrProgressCircle-B8olXRo5.js.map} +1 -1
- package/dist/components/GrProgressCircle/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-Ct174NVD.js → GrPromptDialog-Pwr9NPxK.js} +3 -3
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-Ct174NVD.js.map → GrPromptDialog-Pwr9NPxK.js.map} +1 -1
- package/dist/components/GrPromptDialog/index.js +1 -1
- package/dist/components/GrRadio/chunks/{GrRadio-DksDro_U.js → GrRadio-DWiRaMzt.js} +8 -32
- package/dist/components/GrRadio/chunks/GrRadio-DWiRaMzt.js.map +1 -0
- package/dist/components/GrRadio/index.js +1 -1
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-BOIhejE6.js → GrRadioGroup-DIuBw0wk.js} +34 -27
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-DIuBw0wk.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +1 -1
- package/dist/components/GrRating/chunks/{GrRating-JrHXz0Rv.js → GrRating-DVFH3lYu.js} +10 -9
- package/dist/components/GrRating/chunks/GrRating-DVFH3lYu.js.map +1 -0
- package/dist/components/GrRating/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-BQIlH5KI.js → GrSegmented-CQw3ijqa.js} +47 -65
- package/dist/components/GrSegmented/chunks/GrSegmented-CQw3ijqa.js.map +1 -0
- package/dist/components/GrSegmented/index.js +1 -1
- package/dist/components/GrSelect/chunks/{GrSelect-aqkPCqjd.js → GrSelect-B-Voni7D.js} +69 -55
- package/dist/components/GrSelect/chunks/GrSelect-B-Voni7D.js.map +1 -0
- package/dist/components/GrSelect/index.js +1 -1
- package/dist/components/GrSelect/styles.css +1 -1
- package/dist/components/GrSidebar/chunks/{GrSidebar-DRGnnViw.js → GrSidebar-i7AxjhY_.js} +3 -2
- package/dist/components/GrSidebar/chunks/{GrSidebar-DRGnnViw.js.map → GrSidebar-i7AxjhY_.js.map} +1 -1
- package/dist/components/GrSidebar/index.js +2 -2
- package/dist/components/GrSkeleton/index.js +1 -1
- package/dist/components/GrSlider/chunks/{GrSlider-DkU9IQSX.js → GrSlider-CyhVsNKn.js} +21 -34
- package/dist/components/GrSlider/chunks/GrSlider-CyhVsNKn.js.map +1 -0
- package/dist/components/GrSlider/index.js +2 -2
- package/dist/components/GrSortableList/chunks/GrSortableList-XB7mXM1W.js +277 -0
- package/dist/components/GrSortableList/chunks/GrSortableList-XB7mXM1W.js.map +1 -0
- package/dist/components/GrSortableList/index.js +3 -0
- package/dist/components/GrSplitter/chunks/{GrSplitter-7To8jbJ8.js → GrSplitter-BzxVQwbY.js} +17 -37
- package/dist/components/GrSplitter/chunks/GrSplitter-BzxVQwbY.js.map +1 -0
- package/dist/components/GrSplitter/index.js +2 -2
- package/dist/components/GrStatistic/chunks/{GrStatistic-CttyoYPT.js → GrStatistic-DOsM6s5V.js} +54 -7
- package/dist/components/GrStatistic/chunks/GrStatistic-DOsM6s5V.js.map +1 -0
- package/dist/components/GrStatistic/index.js +2 -2
- package/dist/components/GrSwitch/chunks/{GrSwitch-B9TYbiih.js → GrSwitch-DpyvVrZG.js} +1 -1
- package/dist/components/GrSwitch/chunks/{GrSwitch-B9TYbiih.js.map → GrSwitch-DpyvVrZG.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/index.js +1 -1
- package/dist/components/GrTable/chunks/{GrTable-BB-mI_NM.js → GrTable-BfqgwETQ.js} +7 -1
- package/dist/components/GrTable/chunks/GrTable-BfqgwETQ.js.map +1 -0
- package/dist/components/GrTable/index.js +1 -1
- package/dist/components/GrTabs/chunks/{GrTabs-B8CDq2D9.js → GrTabs-f3-oQenu.js} +55 -65
- package/dist/components/GrTabs/chunks/GrTabs-f3-oQenu.js.map +1 -0
- package/dist/components/GrTabs/index.js +1 -1
- package/dist/components/GrTextarea/chunks/{GrTextarea-DUh5Tlo4.js → GrTextarea-DSvd1nSy.js} +1 -1
- package/dist/components/GrTextarea/chunks/{GrTextarea-DUh5Tlo4.js.map → GrTextarea-DSvd1nSy.js.map} +1 -1
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrTimeline/chunks/{GrTimeline-CE9b3s18.js → GrTimeline-B-h2Yanw.js} +1 -1
- package/dist/components/GrTimeline/chunks/{GrTimeline-CE9b3s18.js.map → GrTimeline-B-h2Yanw.js.map} +1 -1
- package/dist/components/GrTimeline/index.js +2 -2
- package/dist/components/GrToaster/chunks/{GrToaster-BKQy3Srm.js → GrToaster-Dqja0Lf9.js} +114 -13
- package/dist/components/GrToaster/chunks/GrToaster-Dqja0Lf9.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrToaster/styles.css +1 -1
- package/dist/components/GrTooltip/chunks/{GrTooltip-DEbejfhA.js → GrTooltip-Cn08heWz.js} +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-DEbejfhA.js.map → GrTooltip-Cn08heWz.js.map} +1 -1
- package/dist/components/GrTooltip/index.js +2 -2
- package/dist/components/GrTree/chunks/{GrTree-wfdbvygw.js → GrTree-BR9a2pay.js} +148 -111
- package/dist/components/GrTree/chunks/GrTree-BR9a2pay.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTree/styles.css +1 -1
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-lLWmAMtI.js → GrTreeSelect--muUeB0v.js} +28 -14
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect--muUeB0v.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +1 -1
- package/dist/composables/useAnnouncer.js +1 -1
- package/dist/composables/useComboboxNavigation.js +71 -0
- package/dist/composables/useComboboxNavigation.js.map +1 -0
- package/dist/composables/useDismissible.js +1 -1
- package/dist/composables/useDragGesture.js +55 -0
- package/dist/composables/useDragGesture.js.map +1 -0
- package/dist/composables/useDragSort.js +2 -0
- package/dist/composables/useFloating.js +22 -1
- package/dist/composables/useFloating.js.map +1 -1
- package/dist/composables/useGrComponentConfig.js +2 -0
- package/dist/composables/useGranularityTranslations.js +2 -0
- package/dist/composables/useOverlayLayer.js +64 -1
- package/dist/composables/useOverlayLayer.js.map +1 -0
- package/dist/composables/usePortalTarget.js +1 -1
- package/dist/composables/useRovingFocus.js +150 -0
- package/dist/composables/useRovingFocus.js.map +1 -0
- package/dist/directives/hotkey.js +13 -7
- package/dist/directives/hotkey.js.map +1 -1
- package/dist/directives/loading.js +1 -1
- package/dist/granular-provider-node.js +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 +77 -68
- package/dist/styles/themes/dark.css +6 -1
- package/dist/testing.js +199 -0
- package/dist/testing.js.map +1 -0
- package/dist/theme-apply.js +33 -0
- package/dist/theme-apply.js.map +1 -0
- package/dist/theme.js +501 -0
- package/dist/theme.js.map +1 -0
- package/dist/tokens.js +1 -3131
- package/dist/types/src/components/GrAlert/defaults.d.ts +1 -1
- package/dist/types/src/components/GrAutocomplete/defaults.d.ts +1 -1
- package/dist/types/src/components/GrAvatar/defaults.d.ts +1 -1
- package/dist/types/src/components/GrBadge/defaults.d.ts +1 -1
- package/dist/types/src/components/GrBottomNav/defaults.d.ts +1 -1
- package/dist/types/src/components/GrBreadcrumbs/defaults.d.ts +1 -1
- package/dist/types/src/components/GrBreadcrumbs/grBreadcrumbsStyles.d.ts +5 -2
- package/dist/types/src/components/GrButton/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCard/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCheckbox/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCheckboxGroup/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCollapse/defaults.d.ts +1 -1
- package/dist/types/src/components/GrColorPicker/defaults.d.ts +1 -1
- package/dist/types/src/components/GrColorPicker/grColorPickerStyles.d.ts +2 -2
- package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +6 -6
- package/dist/types/src/components/GrCommandPalette/defaults.d.ts +1 -1
- package/dist/types/src/components/GrCommandPalette/filtering.d.ts +6 -2
- package/dist/types/src/components/GrConfigProvider/context.d.ts +6 -22
- package/dist/types/src/components/GrConfigProvider/index.d.ts +1 -1
- package/dist/types/src/components/GrConfirmDialog/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +53 -0
- package/dist/types/src/components/GrDataTable/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDataTable/grDataTableStyles.d.ts +38 -0
- package/dist/types/src/components/GrDialog/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDivider/defaults.d.ts +1 -1
- package/dist/types/src/components/GrDrawer/defaults.d.ts +1 -1
- package/dist/types/src/components/GrEmptyState/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFileUpload/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFormField/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFormFile/defaults.d.ts +1 -1
- package/dist/types/src/components/GrFormSection/defaults.d.ts +1 -1
- package/dist/types/src/components/GrIcon/defaults.d.ts +1 -1
- package/dist/types/src/components/GrImageViewer/composables/usePointerGestures.d.ts +1 -0
- package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +1 -2
- package/dist/types/src/components/GrInput/defaults.d.ts +1 -1
- package/dist/types/src/components/GrInputTag/defaults.d.ts +1 -1
- package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +18 -3
- package/dist/types/src/components/GrKbd/defaults.d.ts +1 -1
- package/dist/types/src/components/GrKbd/grKbdStyles.d.ts +20 -3
- package/dist/types/src/components/GrKbd/index.d.ts +6 -0
- package/dist/types/src/components/GrLink/defaults.d.ts +1 -1
- package/dist/types/src/components/GrModal/defaults.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/defaults.d.ts +1 -1
- package/dist/types/src/components/GrPagination/defaults.d.ts +1 -1
- package/dist/types/src/components/GrPopover/GrPopover.vue.d.ts +1 -1
- package/dist/types/src/components/GrPopover/defaults.d.ts +1 -1
- package/dist/types/src/components/GrProgressBar/defaults.d.ts +1 -1
- package/dist/types/src/components/GrProgressCircle/defaults.d.ts +1 -1
- package/dist/types/src/components/GrProgressCircle/grProgressCircleStyles.d.ts +1 -1
- package/dist/types/src/components/GrPromptDialog/defaults.d.ts +1 -1
- package/dist/types/src/components/GrRadio/defaults.d.ts +1 -1
- package/dist/types/src/components/GrRadio/grRadioGroupContext.d.ts +12 -4
- package/dist/types/src/components/GrRadioGroup/defaults.d.ts +1 -1
- package/dist/types/src/components/GrRating/GrRating.vue.d.ts +9 -4
- package/dist/types/src/components/GrRating/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSelect/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSlider/defaults.d.ts +1 -1
- package/dist/types/src/components/GrSortableList/GrSortableList.vue.d.ts +68 -0
- package/dist/types/src/components/GrSortableList/config.d.ts +1 -0
- package/dist/types/src/components/GrSortableList/grSortableListStyles.d.ts +37 -0
- package/dist/types/src/components/GrSortableList/index.d.ts +9 -0
- package/dist/types/src/components/GrSortableList/safelist.d.ts +1 -0
- package/dist/types/src/components/GrSplitter/defaults.d.ts +1 -1
- package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +12 -9
- package/dist/types/src/components/GrStatistic/defaults.d.ts +1 -1
- package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +1 -2
- package/dist/types/src/components/GrSwitch/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTable/GrTable.vue.d.ts +13 -0
- package/dist/types/src/components/GrTable/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -2
- package/dist/types/src/components/GrTabs/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTextarea/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTextarea/grTextareaStyles.d.ts +2 -2
- package/dist/types/src/components/GrTimeline/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTimeline/grTimelineStyles.d.ts +1 -1
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +8 -0
- package/dist/types/src/components/GrToaster/grToasterStyles.d.ts +27 -0
- package/dist/types/src/components/GrTooltip/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTree/defaults.d.ts +1 -1
- package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +0 -1
- package/dist/types/src/components/GrTree/grTreeProps.d.ts +11 -4
- package/dist/types/src/components/GrTree/safelist.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/defaults.d.ts +1 -1
- package/dist/types/src/components/shared/hotkey.d.ts +7 -15
- package/dist/types/src/components/shared/hotkeyTokens.d.ts +37 -0
- package/dist/types/src/components/shared/icon.d.ts +13 -0
- package/dist/types/src/composables/internal/dragSortGeometry.d.ts +59 -0
- package/dist/types/src/composables/internal/overlayStack.d.ts +11 -0
- package/dist/types/src/composables/useDragGesture.d.ts +63 -0
- package/dist/types/src/composables/useDragSort.d.ts +80 -0
- package/dist/types/src/composables/useFloating.d.ts +5 -1
- package/dist/types/src/composables/useGrComponentConfig.d.ts +41 -0
- package/dist/types/src/composables/useGranularityTranslations.d.ts +13 -0
- package/dist/types/src/composables/useRovingFocus.d.ts +108 -0
- package/dist/types/src/granular-provider/shared.d.ts +1 -0
- package/dist/types/src/i18n/messages/en.d.ts +48 -0
- package/dist/types/src/i18n/messages/es.d.ts +48 -0
- package/dist/types/src/i18n/messages/ru.d.ts +48 -0
- package/dist/types/src/index.d.ts +12 -0
- package/dist/types/src/internal/keyboard.d.ts +6 -0
- package/dist/types/src/testing/announcer.d.ts +10 -0
- package/dist/types/src/testing/context.d.ts +36 -0
- package/dist/types/src/testing/env.d.ts +25 -0
- package/dist/types/src/testing/geometry.d.ts +23 -0
- package/dist/types/src/testing/index.d.ts +12 -0
- package/dist/types/src/testing/pointer.d.ts +31 -0
- package/dist/types/src/theme/apply.d.ts +27 -0
- package/dist/types/src/theme/color.d.ts +35 -0
- package/dist/types/src/theme/extendTheme.d.ts +63 -0
- package/dist/types/src/theme/index.d.ts +22 -0
- package/dist/types/src/theme/roles.d.ts +16 -0
- package/dist/types/src/theme/tone.d.ts +32 -0
- package/dist/types/src/theme/validate.d.ts +16 -0
- package/dist/types/src/tokens/types.d.ts +8 -0
- package/dist/web-types.json +214 -13
- package/package.json +47 -4
- package/tokens/themes/dark.json +2 -1
- package/dist/chunks/chevron-right-BfqMVpbB.js.map +0 -1
- package/dist/chunks/config-8Pcutu1j.js.map +0 -1
- package/dist/chunks/config-B-g6lT19.js.map +0 -1
- package/dist/chunks/config-BE6n20np.js.map +0 -1
- package/dist/chunks/config-BKvX0q10.js.map +0 -1
- package/dist/chunks/config-BNfQwyL4.js +0 -97
- package/dist/chunks/config-BNfQwyL4.js.map +0 -1
- package/dist/chunks/config-BoNR7_PD.js.map +0 -1
- package/dist/chunks/config-CN2ULSQL2.js.map +0 -1
- package/dist/chunks/config-CY0_6cMi.js.map +0 -1
- package/dist/chunks/config-Cw6TDzWv2.js.map +0 -1
- package/dist/chunks/config-D8tSR2uS.js.map +0 -1
- package/dist/chunks/config-DpqOnJiz2.js.map +0 -1
- package/dist/chunks/config-DxCTVBfx.js.map +0 -1
- package/dist/chunks/config-LGrZIdaZ.js +0 -21
- package/dist/chunks/config-LGrZIdaZ.js.map +0 -1
- package/dist/chunks/config-Rw9OyW70.js.map +0 -1
- package/dist/chunks/config-T3qdQBgU.js.map +0 -1
- package/dist/chunks/config-eXB87DOi2.js.map +0 -1
- package/dist/chunks/en-B3xMeswz.js.map +0 -1
- package/dist/chunks/es-CA-mkU--.js.map +0 -1
- package/dist/chunks/grKbdStyles-DAoxiytu.js +0 -31
- package/dist/chunks/grKbdStyles-DAoxiytu.js.map +0 -1
- package/dist/chunks/granular-provider-CtrXGa7c.js.map +0 -1
- package/dist/chunks/keyboard-zYvvyHd4.js.map +0 -1
- package/dist/chunks/optionFilter-BVY988pC.js.map +0 -1
- package/dist/chunks/ru-COWxgh2A.js.map +0 -1
- package/dist/chunks/useOverlayLayer-BupuP_hs.js.map +0 -1
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CQ9T7Lly.js.map +0 -1
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-BCNGDS6k.js.map +0 -1
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-MWDYDPNC.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-DVFho9Cj.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BeCnE8XQ.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-DD2gYdqS.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-DmNunixz.js.map +0 -1
- package/dist/components/GrKbd/chunks/GrKbd-DRFPvW3G.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-B6N0QZBf.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-BiHnaitu.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-DksDro_U.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BOIhejE6.js.map +0 -1
- package/dist/components/GrRating/chunks/GrRating-JrHXz0Rv.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-BQIlH5KI.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-aqkPCqjd.js.map +0 -1
- package/dist/components/GrSlider/chunks/GrSlider-DkU9IQSX.js.map +0 -1
- package/dist/components/GrSplitter/chunks/GrSplitter-7To8jbJ8.js.map +0 -1
- package/dist/components/GrStatistic/chunks/GrStatistic-CttyoYPT.js.map +0 -1
- package/dist/components/GrTable/chunks/GrTable-BB-mI_NM.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-B8CDq2D9.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-BKQy3Srm.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-wfdbvygw.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-lLWmAMtI.js.map +0 -1
- package/dist/tokens.js.map +0 -1
- package/dist/chunks/{config-8Pcutu1j.js → config-8Pcutu1j2.js} +0 -0
- package/dist/chunks/{config-BE6n20np.js → config-BE6n20np2.js} +0 -0
- package/dist/chunks/{config-BKvX0q10.js → config-BKvX0q102.js} +0 -0
- package/dist/chunks/{config-BoNR7_PD.js → config-BoNR7_PD2.js} +0 -0
- package/dist/chunks/{config-CN2ULSQL2.js → config-CN2ULSQL.js} +0 -0
- package/dist/chunks/{config-CY0_6cMi.js → config-CY0_6cMi2.js} +0 -0
- package/dist/chunks/{config-Rw9OyW70.js → config-Rw9OyW702.js} +0 -0
- package/dist/chunks/{config-T3qdQBgU.js → config-T3qdQBgU2.js} +0 -0
- package/dist/chunks/{config-eXB87DOi2.js → config-eXB87DOi.js} +0 -0
- package/dist/components/GrCollapse/chunks/{GrCollapse-B2Fc6A9r.js → GrCollapse-Kk0DE8tb.js} +1 -1
- /package/dist/types/src/composables/{internal/useComboboxNavigation.d.ts → useComboboxNavigation.d.ts} +0 -0
|
@@ -5,11 +5,28 @@ import type { GrComponentSize } from '../shared/sizes';
|
|
|
5
5
|
* Шкала полная (`xs…lg`), а не «sm и всё остальное»: тип пропа обещает четыре
|
|
6
6
|
* ступени, и `xs`/`lg` не должны молча рендериться как `md`.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const GR_KBD_VARIANTS: readonly ["merged", "split", "sequence"];
|
|
9
|
+
/**
|
|
10
|
+
* `merged` — сочетание одной плашкой (`⌘K`), как его пишут сами системы;
|
|
11
|
+
* `split` — по плашке на клавишу; `sequence` — аккорд «G затем I».
|
|
12
|
+
*/
|
|
13
|
+
export type GrKbdVariant = typeof GR_KBD_VARIANTS[number];
|
|
14
|
+
export declare const keyBaseClass = "inline-flex items-center justify-center rounded-[var(--gr-radius-control)] border border-[var(--gr-brd)] bg-[var(--gr-muted)] font-medium leading-none text-[var(--gr-muted-fg)] shadow-[var(--gr-shadow-1)] tabular-nums";
|
|
9
15
|
export declare const keySizes: Record<GrComponentSize, string>;
|
|
10
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Клавиша внутри общей плашки: ни рамки, ни фона, ни собственной ширины —
|
|
18
|
+
* иначе `⌘K` разъехалось бы зазорами внутри одного чипа.
|
|
19
|
+
*/
|
|
20
|
+
export declare const mergedKeyClass = "inline-flex items-center justify-center";
|
|
21
|
+
/** Обёртка `split`: сама рамки не имеет — её рисуют вложенные клавиши. */
|
|
11
22
|
export declare const comboBaseClass = "inline-flex items-center align-middle";
|
|
12
23
|
export declare const comboGaps: Record<GrComponentSize, string>;
|
|
24
|
+
/** Зазор внутри общей плашки: между глифами он меньше, чем между плашками. */
|
|
25
|
+
export declare const mergedGaps: Record<GrComponentSize, string>;
|
|
13
26
|
export declare const separatorClass = "select-none text-[var(--gr-muted-fg)]";
|
|
27
|
+
/** Слово-разделитель аккорда стоит между плашками и не липнет к ним. */
|
|
28
|
+
export declare const sequenceSeparatorClass = "select-none px-1 text-[var(--gr-muted-fg)]";
|
|
14
29
|
export declare function grKbdKeyClass(size: GrComponentSize): string;
|
|
15
|
-
export declare function grKbdComboClass(size: GrComponentSize): string;
|
|
30
|
+
export declare function grKbdComboClass(size: GrComponentSize, variant: GrKbdVariant): string;
|
|
31
|
+
/** Класс клавиши внутри сочетания: в общей плашке она без собственной рамки. */
|
|
32
|
+
export declare function grKbdInnerKeyClass(size: GrComponentSize, variant: GrKbdVariant): string;
|
|
@@ -4,4 +4,10 @@ export type { GrKbdPlatform, GrKbdSize } from './GrKbd.vue';
|
|
|
4
4
|
export { grKbdConfig } from './config';
|
|
5
5
|
export type { GrKbdConfigurableProps } from './defaults';
|
|
6
6
|
export { grKbdSafelist } from './safelist';
|
|
7
|
+
/**
|
|
8
|
+
* Каталог поддерживаемых клавиш: по нему витрина и дока строят список, а не
|
|
9
|
+
* держат свою копию.
|
|
10
|
+
*/
|
|
11
|
+
export { findKbdToken, GR_KBD_TOKENS } from '../shared/hotkeyTokens';
|
|
12
|
+
export type { GrKbdKeyName, GrKbdTokenGroup, GrKbdTokenSpec } from '../shared/hotkeyTokens';
|
|
7
13
|
export type { GrKbdProps } from './GrKbd.vue';
|
|
@@ -7,7 +7,7 @@ import type { GrLinkSize } from './grLinkStyles';
|
|
|
7
7
|
export interface GrLinkConfigurableProps {
|
|
8
8
|
size: GrLinkSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrLink: GrLinkConfigurableProps;
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrModalSize } from './grModalStyles';
|
|
|
7
7
|
export interface GrModalConfigurableProps {
|
|
8
8
|
size: GrModalSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrModal: GrModalConfigurableProps;
|
|
13
13
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrNumberInputConfigurableProps {
|
|
|
8
8
|
size: GrNumberInputSize;
|
|
9
9
|
clearable: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrNumberInput: GrNumberInputConfigurableProps;
|
|
14
14
|
}
|
|
@@ -3,7 +3,7 @@ import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
|
3
3
|
export interface GrPaginationConfigurableProps {
|
|
4
4
|
size: GrComponentSize;
|
|
5
5
|
}
|
|
6
|
-
declare module '
|
|
6
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
7
7
|
interface GrComponentDefaultsRegistry {
|
|
8
8
|
GrPagination: GrPaginationConfigurableProps;
|
|
9
9
|
}
|
|
@@ -118,10 +118,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
118
118
|
}>, {
|
|
119
119
|
size: GrPopoverSize;
|
|
120
120
|
role: GrPopoverRole;
|
|
121
|
+
modal: boolean;
|
|
121
122
|
placement: UseFloatingPlacement;
|
|
122
123
|
open: boolean;
|
|
123
124
|
disabled: boolean;
|
|
124
|
-
modal: boolean;
|
|
125
125
|
ariaLabel: string;
|
|
126
126
|
labelledBy: string;
|
|
127
127
|
offsetPx: number;
|
|
@@ -8,7 +8,7 @@ import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
|
8
8
|
export interface GrPopoverConfigurableProps {
|
|
9
9
|
size: GrComponentSize;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrPopover: GrPopoverConfigurableProps;
|
|
14
14
|
}
|
|
@@ -4,7 +4,7 @@ export interface GrProgressBarConfigurableProps {
|
|
|
4
4
|
size: GrComponentSize;
|
|
5
5
|
borderless: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare module '
|
|
7
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
8
8
|
interface GrComponentDefaultsRegistry {
|
|
9
9
|
GrProgressBar: GrProgressBarConfigurableProps;
|
|
10
10
|
}
|
|
@@ -11,7 +11,7 @@ export interface GrProgressCircleConfigurableProps {
|
|
|
11
11
|
shape: GrProgressCircleShape;
|
|
12
12
|
trackless: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare module '
|
|
14
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
15
15
|
interface GrComponentDefaultsRegistry {
|
|
16
16
|
GrProgressCircle: GrProgressCircleConfigurableProps;
|
|
17
17
|
}
|
|
@@ -30,5 +30,5 @@ export declare const svgClass = "block h-full w-full";
|
|
|
30
30
|
* сам по себе кликов не ловит: интерактив в слоте включает их себе обратно.
|
|
31
31
|
*/
|
|
32
32
|
export declare const centerClass = "pointer-events-none absolute inset-0 flex flex-col items-center justify-center gap-0.5 text-center";
|
|
33
|
-
export declare const valueClass = "font-600 text-[var(--gr-fg)]
|
|
33
|
+
export declare const valueClass = "font-600 text-[var(--gr-fg)] tabular-nums";
|
|
34
34
|
export declare function grProgressCircleArcColor(tone: GrProgressCircleTone): string;
|
|
@@ -7,7 +7,7 @@ import type { GrDialogSize } from '../GrDialog/dialogShared';
|
|
|
7
7
|
export interface GrPromptDialogConfigurableProps {
|
|
8
8
|
size: GrDialogSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrPromptDialog: GrPromptDialogConfigurableProps;
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrButtonSize } from '../GrButton/grButtonStyles';
|
|
|
7
7
|
export interface GrRadioConfigurableProps {
|
|
8
8
|
size: GrButtonSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrRadio: GrRadioConfigurableProps;
|
|
13
13
|
}
|
|
@@ -10,6 +10,12 @@ export type GrRadioValue = string | number | boolean;
|
|
|
10
10
|
export type GrRadioEntry = {
|
|
11
11
|
value: () => GrRadioValue;
|
|
12
12
|
disabled: () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Корневой узел переключателя. Геттер, а не значение: регистрация идёт в
|
|
15
|
+
* `setup`, когда элемента ещё нет. Благодаря ему группа переносит фокус, не
|
|
16
|
+
* обходя DOM селекторами.
|
|
17
|
+
*/
|
|
18
|
+
el: () => HTMLElement | null;
|
|
13
19
|
};
|
|
14
20
|
export type GrRadioGroupContext = {
|
|
15
21
|
modelValue: ComputedRef<GrRadioValue>;
|
|
@@ -37,9 +43,11 @@ export type GrRadioGroupContext = {
|
|
|
37
43
|
* выбрано ничего, остановкой становится первый доступный переключатель.
|
|
38
44
|
*/
|
|
39
45
|
rovingValue: ComputedRef<GrRadioValue | undefined>;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Стрелки, `Home`, `End`: переносят выбор и фокус на соседний доступный
|
|
48
|
+
* переключатель. Вернул `true` — клавиша обработана (с `preventDefault`).
|
|
49
|
+
* Кольцо ведёт группа, а не переключатель: только она знает состав.
|
|
50
|
+
*/
|
|
51
|
+
handleNavigationKeys: (event: KeyboardEvent) => boolean;
|
|
44
52
|
};
|
|
45
53
|
export declare const GR_RADIO_GROUP_CONTEXT: InjectionKey<GrRadioGroupContext>;
|
|
@@ -7,7 +7,7 @@ import type { GrButtonSize } from '../GrButton/grButtonStyles';
|
|
|
7
7
|
export interface GrRadioGroupConfigurableProps {
|
|
8
8
|
size: GrButtonSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrRadioGroup: GrRadioGroupConfigurableProps;
|
|
13
13
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
1
2
|
import { type GrRatingSize, type GrRatingTone } from './grRatingStyles';
|
|
2
3
|
export type { GrRatingSize, GrRatingTone, } from './grRatingStyles';
|
|
3
4
|
/**
|
|
@@ -10,7 +11,7 @@ export type { GrRatingSize, GrRatingTone, } from './grRatingStyles';
|
|
|
10
11
|
*
|
|
11
12
|
* Символ по умолчанию рисуется инлайновым SVG (звезда с `fill="currentColor"`) —
|
|
12
13
|
* иконочные шрифты-маски `i-lucide-star` дают только контур. Свой символ
|
|
13
|
-
* задаётся пропом `icon` (
|
|
14
|
+
* задаётся пропом `icon` (Vue-компонент или класс иконки) либо слотом `#symbol`.
|
|
14
15
|
*/
|
|
15
16
|
export interface GrRatingProps {
|
|
16
17
|
/** Текущая оценка. Дробная (`3.5`) поддерживается при `allowHalf`. */
|
|
@@ -31,8 +32,12 @@ export interface GrRatingProps {
|
|
|
31
32
|
required?: boolean;
|
|
32
33
|
/** Повторный клик по текущей оценке сбрасывает её в `0`. */
|
|
33
34
|
clearable?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Символ вместо встроенной звезды: Vue-компонент либо класс иконки вашей
|
|
37
|
+
* UnoCSS-сборки (`'i-lucide-heart'` — тогда нужен ваш `presetIcons`,
|
|
38
|
+
* см. `docs/installation.md`).
|
|
39
|
+
*/
|
|
40
|
+
icon?: string | Component;
|
|
36
41
|
/** Показывать числовую подпись справа от шкалы. */
|
|
37
42
|
showText?: boolean;
|
|
38
43
|
/** Формат подписи. По умолчанию — само значение. Сильнее `texts`. */
|
|
@@ -131,7 +136,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
131
136
|
tone: GrRatingTone;
|
|
132
137
|
size: GrRatingSize;
|
|
133
138
|
clearable: boolean;
|
|
134
|
-
icon: string;
|
|
139
|
+
icon: string | Component;
|
|
135
140
|
readonly: boolean;
|
|
136
141
|
name: string;
|
|
137
142
|
invalid: boolean;
|
|
@@ -7,7 +7,7 @@ import type { GrRatingSize } from './grRatingStyles';
|
|
|
7
7
|
export interface GrRatingConfigurableProps {
|
|
8
8
|
size: GrRatingSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrRating: GrRatingConfigurableProps;
|
|
13
13
|
}
|
|
@@ -8,7 +8,7 @@ export interface GrSegmentedConfigurableProps {
|
|
|
8
8
|
size: GrSegmentedSize;
|
|
9
9
|
variant: GrSegmentedVariant;
|
|
10
10
|
}
|
|
11
|
-
declare module '
|
|
11
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
12
12
|
interface GrComponentDefaultsRegistry {
|
|
13
13
|
GrSegmented: GrSegmentedConfigurableProps;
|
|
14
14
|
}
|
|
@@ -10,7 +10,7 @@ export interface GrSelectConfigurableProps {
|
|
|
10
10
|
underline: GrSelectUnderline;
|
|
11
11
|
clearable: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare module '
|
|
13
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
14
14
|
interface GrComponentDefaultsRegistry {
|
|
15
15
|
GrSelect: GrSelectConfigurableProps;
|
|
16
16
|
}
|
|
@@ -7,7 +7,7 @@ import type { GrSliderSize } from './grSliderStyles';
|
|
|
7
7
|
export interface GrSliderConfigurableProps {
|
|
8
8
|
size: GrSliderSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrSlider: GrSliderConfigurableProps;
|
|
13
13
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type GrCardVariant } from '../GrCard';
|
|
2
|
+
import type { GrSortableOrientation } from './grSortableListStyles';
|
|
3
|
+
export interface GrSortableListProps<TItem = unknown> {
|
|
4
|
+
/** Набор в текущем порядке. `v-model`: наружу уходит новый массив, вход не мутируется. */
|
|
5
|
+
modelValue: TItem[];
|
|
6
|
+
/** Ключ элемента: имя поля или функция. Без него — индекс. */
|
|
7
|
+
itemKey?: string | ((item: TItem, index: number) => string | number);
|
|
8
|
+
/** Список только для чтения: ни указателем, ни с клавиатуры. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Ось переноса. `horizontal` — ряд с переносом по ширине. */
|
|
11
|
+
orientation?: GrSortableOrientation;
|
|
12
|
+
/** Поверхность под списком — вариант карточки. */
|
|
13
|
+
variant?: GrCardVariant;
|
|
14
|
+
/** Разделители между строками. */
|
|
15
|
+
divided?: boolean;
|
|
16
|
+
/** Тянуть можно только за ручку. Выключено — тянется вся строка. */
|
|
17
|
+
handleOnly?: boolean;
|
|
18
|
+
/** Высота видимой части: список становится скроллером с автопрокруткой при переносе. */
|
|
19
|
+
maxHeight?: number | string;
|
|
20
|
+
/** Текст пустого состояния. Слот `#empty` сильнее. */
|
|
21
|
+
emptyText?: string;
|
|
22
|
+
/** Имя списка для скринридера. Не задано — берётся из локали. */
|
|
23
|
+
ariaLabel?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GrSortableListEmits<TItem = unknown> {
|
|
26
|
+
(e: 'update:modelValue', value: TItem[]): void;
|
|
27
|
+
(e: 'move', from: number, to: number): void;
|
|
28
|
+
(e: 'change', value: TItem[]): void;
|
|
29
|
+
}
|
|
30
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
31
|
+
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrSortableListProps<T> & {
|
|
32
|
+
onChange?: ((value: T[]) => any) | undefined;
|
|
33
|
+
onMove?: ((from: number, to: number) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
35
|
+
}> & (typeof globalThis extends {
|
|
36
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
37
|
+
} ? P : {});
|
|
38
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
39
|
+
/** Программная перестановка — та же, что делает перенос. */
|
|
40
|
+
move: (from: number, to: number) => void;
|
|
41
|
+
focusItem: (index: number) => Promise<void>;
|
|
42
|
+
}>) => void;
|
|
43
|
+
attrs: any;
|
|
44
|
+
slots: {
|
|
45
|
+
item?: (props: {
|
|
46
|
+
item: T;
|
|
47
|
+
index: number;
|
|
48
|
+
dragging: boolean;
|
|
49
|
+
grabbed: boolean;
|
|
50
|
+
}) => any;
|
|
51
|
+
handle?: (props: {
|
|
52
|
+
item: T;
|
|
53
|
+
index: number;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
}) => any;
|
|
56
|
+
empty?: () => any;
|
|
57
|
+
};
|
|
58
|
+
emit: GrSortableListEmits<T>;
|
|
59
|
+
}>) => import("vue").VNode & {
|
|
60
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
61
|
+
};
|
|
62
|
+
declare const _default: typeof __VLS_export;
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
65
|
+
[K in keyof T]: T[K];
|
|
66
|
+
} : {
|
|
67
|
+
[K in keyof T as K]: T[K];
|
|
68
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grSortableListConfig: import("@feugene/unocss-preset-granular/contract").GranularComponentDescriptor<"GrSortableList">;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type GrSortableOrientation = 'horizontal' | 'vertical';
|
|
2
|
+
/**
|
|
3
|
+
* Классы `GrSortableList`. Единственный источник правды для шаблона и
|
|
4
|
+
* `safelist.ts`: литерал, живущий только здесь, до скана UnoCSS не доходит —
|
|
5
|
+
* хелпер уезжает в общий чанк `dist/chunks/`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const listClass: Record<GrSortableOrientation, string>;
|
|
8
|
+
export declare const rowLayoutClass = "relative flex items-center gap-2 px-4 py-3 transition-colors duration-[var(--gr-duration-fast)]";
|
|
9
|
+
/**
|
|
10
|
+
* Строка — остановка роверного фокуса, поэтому кольцо на ней, а не на ручке:
|
|
11
|
+
* с клавиатуры берут строку целиком, ручка остаётся affordance для мыши.
|
|
12
|
+
*/
|
|
13
|
+
export declare const rowFocusClass = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] focus-visible:ring-inset";
|
|
14
|
+
export declare const rowDraggingClass = "bg-[var(--gr-sortable-row-bg-active,var(--gr-muted))]";
|
|
15
|
+
/** Взятая с клавиатуры строка обязана отличаться от просто сфокусированной. */
|
|
16
|
+
export declare const rowGrabbedClass = "bg-[var(--gr-sortable-row-bg-active,var(--gr-muted))] ring-2 ring-[var(--gr-ring)] ring-inset";
|
|
17
|
+
export declare const rowDisabledClass = "cursor-not-allowed bg-[var(--gr-muted)] text-[var(--gr-muted-fg)]";
|
|
18
|
+
export declare const dividedClass = "divide-y divide-[var(--gr-brd)]";
|
|
19
|
+
export declare const emptyClass = "px-4 py-6 text-center text-[length:var(--gr-text-sm)] text-[var(--gr-muted-fg)]";
|
|
20
|
+
/**
|
|
21
|
+
* Ручка не табируется: внутри роверного композита свой таб-стоп сломал бы
|
|
22
|
+
* правило «один Tab на список» — тот же приём, что у ручки `GrTree`.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* `[touch-action:none]` вместо `touch-none`: утилиты нет ни в `presetMini`, ни
|
|
26
|
+
* в extra-rules, класс молча не превратился бы в CSS — и вертикальный свайп по
|
|
27
|
+
* ручке ушёл бы в прокрутку страницы. Тот же приём у дорожки `GrSlider`.
|
|
28
|
+
*/
|
|
29
|
+
export declare const handleClass = "flex shrink-0 items-center justify-center rounded-[var(--gr-radius-sm)] text-[var(--gr-sortable-handle-color,var(--gr-muted-fg))] size-[var(--gr-sortable-handle-size,1.5rem)] cursor-grab [touch-action:none] focus:outline-none";
|
|
30
|
+
export declare const handleDisabledClass = "cursor-not-allowed text-[var(--gr-muted-fg)]";
|
|
31
|
+
export declare const contentClass = "min-w-0 flex-1 text-[length:var(--gr-text-sm)]";
|
|
32
|
+
/**
|
|
33
|
+
* Куда встанет строка — псевдоэлемент самой строки, а не отдельный узел:
|
|
34
|
+
* лишний узел между строками ломает и `divide-y`, и подсчёт позиций.
|
|
35
|
+
*/
|
|
36
|
+
export declare const indicatorBeforeClass = "before:absolute before:inset-x-0 before:top-0 before:h-[var(--gr-sortable-indicator-width,2px)] before:bg-[var(--gr-sortable-indicator,var(--gr-primary))] before:content-empty";
|
|
37
|
+
export declare const indicatorAfterClass = "after:absolute after:inset-x-0 after:bottom-0 after:h-[var(--gr-sortable-indicator-width,2px)] after:bg-[var(--gr-sortable-indicator,var(--gr-primary))] after:content-empty";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentExposed } from '../shared/instance';
|
|
2
|
+
import type GrSortableListComponent from './GrSortableList.vue';
|
|
3
|
+
export { default } from './GrSortableList.vue';
|
|
4
|
+
export { default as GrSortableList } from './GrSortableList.vue';
|
|
5
|
+
export type { GrSortableListEmits, GrSortableListProps } from './GrSortableList.vue';
|
|
6
|
+
export type { GrSortableOrientation } from './grSortableListStyles';
|
|
7
|
+
export { grSortableListConfig } from './config';
|
|
8
|
+
export { grSortableListSafelist } from './safelist';
|
|
9
|
+
export type GrSortableListInstance = ComponentExposed<typeof GrSortableListComponent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const grSortableListSafelist: string[];
|
|
@@ -9,7 +9,7 @@ export interface GrSplitterConfigurableProps {
|
|
|
9
9
|
orientation: GrSplitterOrientation;
|
|
10
10
|
collapsible: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare module '
|
|
12
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
13
13
|
interface GrComponentDefaultsRegistry {
|
|
14
14
|
GrSplitter: GrSplitterConfigurableProps;
|
|
15
15
|
}
|
|
@@ -29,8 +29,11 @@ export interface GrStatisticProps {
|
|
|
29
29
|
prefix?: string;
|
|
30
30
|
/** Приписка после значения (единица измерения, `%`). */
|
|
31
31
|
suffix?: string;
|
|
32
|
-
/**
|
|
33
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Иконка слева от блока: Vue-компонент либо класс иконки вашей UnoCSS-сборки
|
|
34
|
+
* (`'i-lucide-users'` — тогда нужен ваш `presetIcons`, см. `docs/installation.md`).
|
|
35
|
+
*/
|
|
36
|
+
icon?: string | Component;
|
|
34
37
|
size?: GrStatisticSize;
|
|
35
38
|
/** Тон значения; точечно перекрывается `--gr-statistic-value-color`. */
|
|
36
39
|
tone?: GrStatisticTone;
|
|
@@ -61,19 +64,19 @@ export interface GrStatisticProps {
|
|
|
61
64
|
export interface GrStatisticEmits {
|
|
62
65
|
(e: 'click', event: MouseEvent): void;
|
|
63
66
|
}
|
|
64
|
-
declare var __VLS_10: {},
|
|
67
|
+
declare var __VLS_10: {}, __VLS_23: {}, __VLS_42: {}, __VLS_44: {}, __VLS_46: {}, __VLS_48: {};
|
|
65
68
|
type __VLS_Slots = {} & {
|
|
66
69
|
icon?: (props: typeof __VLS_10) => any;
|
|
67
70
|
} & {
|
|
68
|
-
title?: (props: typeof
|
|
71
|
+
title?: (props: typeof __VLS_23) => any;
|
|
69
72
|
} & {
|
|
70
|
-
prefix?: (props: typeof
|
|
73
|
+
prefix?: (props: typeof __VLS_42) => any;
|
|
71
74
|
} & {
|
|
72
|
-
default?: (props: typeof
|
|
75
|
+
default?: (props: typeof __VLS_44) => any;
|
|
73
76
|
} & {
|
|
74
|
-
suffix?: (props: typeof
|
|
77
|
+
suffix?: (props: typeof __VLS_46) => any;
|
|
75
78
|
} & {
|
|
76
|
-
trend?: (props: typeof
|
|
79
|
+
trend?: (props: typeof __VLS_48) => any;
|
|
77
80
|
};
|
|
78
81
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrStatisticProps>, {
|
|
79
82
|
title: undefined;
|
|
@@ -121,7 +124,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
121
124
|
tone: GrStatisticTone;
|
|
122
125
|
size: GrStatisticSize;
|
|
123
126
|
title: string;
|
|
124
|
-
icon: string;
|
|
127
|
+
icon: string | Component;
|
|
125
128
|
animate: boolean;
|
|
126
129
|
href: string;
|
|
127
130
|
loading: boolean;
|
|
@@ -7,7 +7,7 @@ import type { GrStatisticSize } from './grStatisticStyles';
|
|
|
7
7
|
export interface GrStatisticConfigurableProps {
|
|
8
8
|
size: GrStatisticSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrStatistic: GrStatisticConfigurableProps;
|
|
13
13
|
}
|
|
@@ -17,7 +17,6 @@ export declare const statisticPlaceholderHeightBySize: Record<GrStatisticSize, s
|
|
|
17
17
|
export declare const statisticTrendSizeBySize: Record<GrStatisticSize, string>;
|
|
18
18
|
export declare const statisticValueClassByTone: Record<GrStatisticTone, string>;
|
|
19
19
|
export declare const statisticTrendClassByTrend: Record<GrStatisticTrend, string>;
|
|
20
|
-
export declare const statisticTrendIconByTrend: Record<GrStatisticTrend, string>;
|
|
21
20
|
export declare const statisticTitleClass = "font-medium tracking-wide text-[var(--gr-statistic-title-color,var(--gr-muted-fg))]";
|
|
22
21
|
export declare const statisticRootBase = "flex items-start gap-3 text-left";
|
|
23
22
|
/**
|
|
@@ -30,7 +29,7 @@ export declare function statisticRootClass(options: {
|
|
|
30
29
|
interactive: boolean;
|
|
31
30
|
}): string;
|
|
32
31
|
/** `tabular-nums` держит ширину строки при переборе чисел и при смене значения. */
|
|
33
|
-
export declare const statisticValueTypographyClass = "font-semibold
|
|
32
|
+
export declare const statisticValueTypographyClass = "font-semibold tabular-nums";
|
|
34
33
|
export declare function statisticValueClass(options: {
|
|
35
34
|
size: GrStatisticSize;
|
|
36
35
|
tone: GrStatisticTone;
|
|
@@ -7,7 +7,7 @@ import type { GrSwitchSize } from './grSwitchStyles';
|
|
|
7
7
|
export interface GrSwitchConfigurableProps {
|
|
8
8
|
size: GrSwitchSize;
|
|
9
9
|
}
|
|
10
|
-
declare module '
|
|
10
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
11
11
|
interface GrComponentDefaultsRegistry {
|
|
12
12
|
GrSwitch: GrSwitchConfigurableProps;
|
|
13
13
|
}
|
|
@@ -57,6 +57,16 @@ export interface GrTableProps {
|
|
|
57
57
|
* `presetMini` нет, и класс молча не превратился бы в CSS.
|
|
58
58
|
*/
|
|
59
59
|
fixedLayout?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Минимальная ширина самой таблицы (число — пиксели).
|
|
62
|
+
*
|
|
63
|
+
* Нужна при `fixedLayout`: с фиксированной раскладкой и шириной `auto`
|
|
64
|
+
* браузер вписывает таблицу в контейнер и делит место между колонками
|
|
65
|
+
* пропорционально — то есть заданные ширины молча ужимаются, а
|
|
66
|
+
* горизонтальной прокрутки, на которой держатся закреплённые колонки, не
|
|
67
|
+
* возникает вовсе.
|
|
68
|
+
*/
|
|
69
|
+
tableMinWidth?: string | number;
|
|
60
70
|
/**
|
|
61
71
|
* Максимальная высота скролл-контейнера (включает вертикальный скролл).
|
|
62
72
|
* Число трактуется как пиксели. Нужен для работы `stickyHeader`.
|
|
@@ -96,6 +106,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
96
106
|
maxHeight: undefined;
|
|
97
107
|
rowCount: undefined;
|
|
98
108
|
fixedLayout: boolean;
|
|
109
|
+
tableMinWidth: undefined;
|
|
99
110
|
}>>, {
|
|
100
111
|
/** Прокрутить скролл-контейнер таблицы — тот же контракт, что у `GrDataTable`. */
|
|
101
112
|
scrollTo: typeof scrollTo;
|
|
@@ -118,6 +129,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
118
129
|
maxHeight: undefined;
|
|
119
130
|
rowCount: undefined;
|
|
120
131
|
fixedLayout: boolean;
|
|
132
|
+
tableMinWidth: undefined;
|
|
121
133
|
}>>> & Readonly<{}>, {
|
|
122
134
|
size: GrTableSize;
|
|
123
135
|
caption: string;
|
|
@@ -135,6 +147,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
135
147
|
stickyHeader: boolean;
|
|
136
148
|
rowCount: number;
|
|
137
149
|
fixedLayout: boolean;
|
|
150
|
+
tableMinWidth: string | number;
|
|
138
151
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
139
152
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
140
153
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,7 +3,7 @@ import type { GrComponentSize } from '../GrConfigProvider/context';
|
|
|
3
3
|
export interface GrTableConfigurableProps {
|
|
4
4
|
size: GrComponentSize;
|
|
5
5
|
}
|
|
6
|
-
declare module '
|
|
6
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
7
7
|
interface GrComponentDefaultsRegistry {
|
|
8
8
|
GrTable: GrTableConfigurableProps;
|
|
9
9
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
1
2
|
import { type GrTabsOrientation, type GrTabsSize, type GrTabsVariant } from './grTabsStyles';
|
|
2
3
|
export interface GrTab {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
5
6
|
badge?: string;
|
|
6
|
-
/**
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Иконка слева от подписи: Vue-компонент либо класс иконки вашей UnoCSS-сборки
|
|
9
|
+
* (`'i-lucide-user'` — тогда нужен ваш `presetIcons`, см. `docs/installation.md`).
|
|
10
|
+
*/
|
|
11
|
+
icon?: string | Component;
|
|
8
12
|
disabled?: boolean;
|
|
9
13
|
/** Перекрывает `closable` ряда в обе стороны: закрепить вкладку или закрыть одну её. */
|
|
10
14
|
closable?: boolean;
|
|
@@ -5,7 +5,7 @@ export interface GrTabsConfigurableProps {
|
|
|
5
5
|
size: GrComponentSize;
|
|
6
6
|
variant: GrTabsVariant;
|
|
7
7
|
}
|
|
8
|
-
declare module '
|
|
8
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
9
9
|
interface GrComponentDefaultsRegistry {
|
|
10
10
|
GrTabs: GrTabsConfigurableProps;
|
|
11
11
|
}
|
|
@@ -11,7 +11,7 @@ export interface GrTextareaConfigurableProps {
|
|
|
11
11
|
/** Кнопка очистки значения. */
|
|
12
12
|
clearable: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare module '
|
|
14
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
15
15
|
interface GrComponentDefaultsRegistry {
|
|
16
16
|
GrTextarea: GrTextareaConfigurableProps;
|
|
17
17
|
}
|
|
@@ -30,8 +30,8 @@ export declare const disabledSurfaceClass = "bg-[var(--gr-muted)] text-[var(--gr
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const countRowClass = "mt-1 flex items-baseline justify-between gap-3";
|
|
32
32
|
/** Счётчик строк. Слева, потому что читается раньше: сначала «сколько строк», потом лимит символов. */
|
|
33
|
-
export declare const lineCountClass = "text-[length:var(--gr-control-text-xs)] leading-[var(--gr-leading-xs)] text-[var(--gr-muted-fg)]
|
|
34
|
-
export declare const countClass = "mt-1 text-right text-[length:var(--gr-control-text-xs)] leading-[var(--gr-leading-xs)] text-[var(--gr-muted-fg)]
|
|
33
|
+
export declare const lineCountClass = "text-[length:var(--gr-control-text-xs)] leading-[var(--gr-leading-xs)] text-[var(--gr-muted-fg)] tabular-nums";
|
|
34
|
+
export declare const countClass = "mt-1 text-right text-[length:var(--gr-control-text-xs)] leading-[var(--gr-leading-xs)] text-[var(--gr-muted-fg)] tabular-nums";
|
|
35
35
|
export declare function grTextareaClass(options: {
|
|
36
36
|
state: GrTextareaState;
|
|
37
37
|
invalid: boolean;
|
|
@@ -12,7 +12,7 @@ export interface GrTimelineConfigurableProps {
|
|
|
12
12
|
density: GrTimelineDensity;
|
|
13
13
|
groupHeadingLevel: GrTimelineHeadingLevel;
|
|
14
14
|
}
|
|
15
|
-
declare module '
|
|
15
|
+
declare module '../../composables/useGrComponentConfig' {
|
|
16
16
|
interface GrComponentDefaultsRegistry {
|
|
17
17
|
GrTimeline: GrTimelineConfigurableProps;
|
|
18
18
|
}
|