@echolab-auto/echo-prodoc 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/bin/echo-prodoc.js +2 -0
- package/package.json +49 -0
- package/packages/prodoc-cli/dist/index.d.ts +10 -0
- package/packages/prodoc-cli/dist/index.d.ts.map +1 -0
- package/packages/prodoc-cli/dist/index.js +251 -0
- package/packages/prodoc-cli/dist/index.js.map +1 -0
- package/packages/prodoc-cli/dist/server.d.ts +13 -0
- package/packages/prodoc-cli/dist/server.d.ts.map +1 -0
- package/packages/prodoc-cli/package.json +39 -0
- package/packages/prodoc-core/dist/index.cjs +1 -0
- package/packages/prodoc-core/dist/index.d.ts +12 -0
- package/packages/prodoc-core/dist/index.d.ts.map +1 -0
- package/packages/prodoc-core/dist/index.js +2 -0
- package/packages/prodoc-core/package.json +30 -0
- package/packages/prodoc-editor/dist/index.cjs +1 -0
- package/packages/prodoc-editor/dist/index.css +2 -0
- package/packages/prodoc-editor/dist/index.d.ts +10 -0
- package/packages/prodoc-editor/dist/index.d.ts.map +1 -0
- package/packages/prodoc-editor/dist/index.js +3 -0
- package/packages/prodoc-editor/package.json +40 -0
- package/packages/prodoc-renderer/dist/index.cjs +1 -0
- package/packages/prodoc-renderer/dist/index.css +2 -0
- package/packages/prodoc-renderer/dist/index.d.ts +11 -0
- package/packages/prodoc-renderer/dist/index.d.ts.map +1 -0
- package/packages/prodoc-renderer/dist/index.js +3 -0
- package/packages/prodoc-renderer/package.json +38 -0
- package/scripts/build-if-needed.js +37 -0
- package/scripts/install-ui-frame.js +269 -0
- package/scripts/link-system-bin.js +82 -0
- package/scripts/publish.sh +64 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismAlert.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismAutoComplete.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismAvatar.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismBadge.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismBreadcrumb.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismButton.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCanvas.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCard.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCheckbox.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCol.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismCollapse.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismContainer.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDatePicker.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDivider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDrawer.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismDropdown.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismEmpty.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismFieldError.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismFieldLabel.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismFormItem.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismInput.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismInputNumber.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismLayout.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismList.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismMenu.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismModal.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismNavMenu.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismPagination.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismPopover.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismProgress.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismRadioGroup.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSelect.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSkeleton.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSlider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSteps.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismSwitch.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTable.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTabs.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTag.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTextarea.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismThemeToggle.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismToastProvider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTooltip.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismTree.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismUpload.css +1 -0
- package/vendor/@echolab/ui-frame/dist/NeumorphismVirtualList.css +1 -0
- package/vendor/@echolab/ui-frame/dist/ThemeProvider.css +1 -0
- package/vendor/@echolab/ui-frame/dist/base.css +1 -0
- package/vendor/@echolab/ui-frame/dist/base.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/base.js +1 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAlert-C8gUjcJ9.js +130 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAutoComplete-DI9cIsCr.js +255 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAvatar-D7pr7n61.js +65 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismBadge-Br8ESUFf.js +64 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismBreadcrumb-PeUQHAqO.js +58 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismButton-CiIrdqlV.js +81 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCanvas-CBLkbovI.js +176 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCard-Cgy4dCPE.js +66 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCheckbox-Bo5Q7yC_.js +114 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCol-DwoaSc5J.js +117 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCollapse-BLSShHjJ.js +95 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismContainer-B1g0c9Ps.js +32 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDatePicker-TLkTC22A.js +315 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDivider-CjDyku2C.js +56 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDrawer-BmpGyAlZ.js +133 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDropdown-B_cuLYvV.js +120 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismEmpty-DAsVUAXw.js +49 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFieldError-BxamHjhs.js +20 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFieldLabel-CBF1nZs1.js +26 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFormItem-DjtFqfsK.js +149 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismInput-CV0AQcff.js +121 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismInputNumber-BLSDUrG2.js +119 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismLayout-C7hoaRIo.js +155 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismList-BPjiY2ok.js +106 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismMenu-xfgTqwex.js +294 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismModal-BejbU5Uw.js +139 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismNavMenu-D_aeJ9zj.js +297 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismPagination-Dj-JuN7F.js +162 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismPopover-RB48cpPq.js +197 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismProgress-jGoOJqN4.js +72 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismRadioGroup-BC-NFcXF.js +122 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSelect-D57-kOit.js +200 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSkeleton-CIBufbBR.js +56 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSlider-CJGJhgAY.js +163 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSteps-Eq8pY0Yo.js +147 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSwitch-HSJ9_0Zq.js +76 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTable-BEcMl0Sh.js +189 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTabs-DhV7RpfS.js +98 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTag-D-HO-n7l.js +83 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTextarea-hf4f9EM1.js +126 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismThemeToggle-B-lky48G.js +144 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismToastProvider-CJvxNDwJ.js +132 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTooltip-DEac8yVH.js +116 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTree-C5jKWadX.js +302 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismUpload-CK8GutG5.js +584 -0
- package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismVirtualList-BI322-e4.js +55 -0
- package/vendor/@echolab/ui-frame/dist/chunks/ThemeProvider-CCR_TjUs.js +30 -0
- package/vendor/@echolab/ui-frame/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/vendor/@echolab/ui-frame/dist/chunks/componentRegistry-XcPWEoEL.js +48 -0
- package/vendor/@echolab/ui-frame/dist/chunks/createComponent-jnXBYqCm.js +11 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/NeumorphismAlert.d.ts +78 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/NeumorphismAutoComplete.d.ts +83 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/NeumorphismAvatar.d.ts +50 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/NeumorphismBadge.d.ts +47 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/NeumorphismBreadcrumb.d.ts +45 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/NeumorphismButton.d.ts +74 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/NeumorphismCanvas.d.ts +85 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/NeumorphismCard.d.ts +83 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/NeumorphismCheckbox.d.ts +58 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/NeumorphismCollapse.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/NeumorphismContainer.d.ts +48 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/NeumorphismDatePicker.d.ts +69 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/NeumorphismDivider.d.ts +51 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/NeumorphismDrawer.d.ts +71 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/NeumorphismDropdown.d.ts +75 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/NeumorphismEmpty.d.ts +41 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/NeumorphismFieldError.d.ts +17 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/NeumorphismFieldLabel.d.ts +19 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/index.js +6 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/NeumorphismForm.d.ts +67 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/NeumorphismFormItem.d.ts +54 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/NeumorphismCol.d.ts +54 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/NeumorphismRow.d.ts +51 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/NeumorphismInput.d.ts +87 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/NeumorphismInputNumber.d.ts +85 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/NeumorphismLayout.d.ts +79 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/NeumorphismList.d.ts +74 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/NeumorphismMenu.d.ts +73 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/NeumorphismModal.d.ts +88 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/NeumorphismNavMenu.d.ts +63 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/NeumorphismPagination.d.ts +87 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/NeumorphismPopover.d.ts +78 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/NeumorphismProgress.d.ts +53 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/NeumorphismRadio.d.ts +52 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/NeumorphismRadioGroup.d.ts +53 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/NeumorphismSelect.d.ts +96 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/NeumorphismSkeleton.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/NeumorphismSlider.d.ts +76 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/NeumorphismSteps.d.ts +69 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/NeumorphismSwitch.d.ts +64 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/NeumorphismTable.d.ts +99 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/NeumorphismTabs.d.ts +71 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/NeumorphismTag.d.ts +65 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/NeumorphismTextarea.d.ts +80 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/NeumorphismThemeToggle.d.ts +52 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/NeumorphismToastProvider.d.ts +57 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/NeumorphismTooltip.d.ts +58 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/NeumorphismTree.d.ts +58 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/NeumorphismTreeNode.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/index.js +5 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/NeumorphismUpload.d.ts +126 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/NeumorphismVirtualList.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/ThemeProvider.d.ts +56 -0
- package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/index.d.ts +2 -0
- package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/index.js +4 -0
- package/vendor/@echolab/ui-frame/dist/components/index.d.ts +92 -0
- package/vendor/@echolab/ui-frame/dist/composables/injectionKeys.d.ts +27 -0
- package/vendor/@echolab/ui-frame/dist/composables/injectionKeys.js +6 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAlert.d.ts +30 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAlert.js +25 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAutoComplete.d.ts +50 -0
- package/vendor/@echolab/ui-frame/dist/composables/useAutoComplete.js +118 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCheckable.d.ts +17 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCheckable.js +17 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCollapse.d.ts +26 -0
- package/vendor/@echolab/ui-frame/dist/composables/useCollapse.js +25 -0
- package/vendor/@echolab/ui-frame/dist/composables/useConfig.d.ts +243 -0
- package/vendor/@echolab/ui-frame/dist/composables/useConfig.js +12 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDatePicker.d.ts +73 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDatePicker.js +118 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDrawer.d.ts +34 -0
- package/vendor/@echolab/ui-frame/dist/composables/useDrawer.js +97 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormField.d.ts +24 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormField.js +34 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormValidation.d.ts +18 -0
- package/vendor/@echolab/ui-frame/dist/composables/useFormValidation.js +44 -0
- package/vendor/@echolab/ui-frame/dist/composables/useLocale.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/composables/useLocale.js +34 -0
- package/vendor/@echolab/ui-frame/dist/composables/useMenu.d.ts +55 -0
- package/vendor/@echolab/ui-frame/dist/composables/useMenu.js +218 -0
- package/vendor/@echolab/ui-frame/dist/composables/useModal.d.ts +31 -0
- package/vendor/@echolab/ui-frame/dist/composables/useModal.js +93 -0
- package/vendor/@echolab/ui-frame/dist/composables/useNumberInput.d.ts +52 -0
- package/vendor/@echolab/ui-frame/dist/composables/useNumberInput.js +100 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePagination.d.ts +37 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePagination.js +40 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePopover.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/composables/usePopover.js +54 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSelect.d.ts +30 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSelect.js +76 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSlider.d.ts +39 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSlider.js +79 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSteps.d.ts +54 -0
- package/vendor/@echolab/ui-frame/dist/composables/useSteps.js +26 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTable.d.ts +78 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTable.js +103 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTabs.d.ts +33 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTabs.js +43 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTheme.d.ts +40 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTheme.js +81 -0
- package/vendor/@echolab/ui-frame/dist/composables/useToast.d.ts +44 -0
- package/vendor/@echolab/ui-frame/dist/composables/useToast.js +57 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTooltip.d.ts +29 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTooltip.js +27 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTouchDevice.d.ts +7 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTouchDevice.js +25 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTree.d.ts +50 -0
- package/vendor/@echolab/ui-frame/dist/composables/useTree.js +219 -0
- package/vendor/@echolab/ui-frame/dist/composables/useUpload.d.ts +81 -0
- package/vendor/@echolab/ui-frame/dist/composables/useUpload.js +169 -0
- package/vendor/@echolab/ui-frame/dist/composables/useVirtualList.d.ts +59 -0
- package/vendor/@echolab/ui-frame/dist/composables/useVirtualList.js +107 -0
- package/vendor/@echolab/ui-frame/dist/doc/DocEditor.d.ts +41 -0
- package/vendor/@echolab/ui-frame/dist/doc/DocViewer.d.ts +39 -0
- package/vendor/@echolab/ui-frame/dist/doc/MarkdownEditor.d.ts +37 -0
- package/vendor/@echolab/ui-frame/dist/doc/MarkdownRenderer.d.ts +42 -0
- package/vendor/@echolab/ui-frame/dist/doc/doc-tree.d.ts +8 -0
- package/vendor/@echolab/ui-frame/dist/doc/index.d.ts +27 -0
- package/vendor/@echolab/ui-frame/dist/doc/index.js +1055 -0
- package/vendor/@echolab/ui-frame/dist/doc/parser.d.ts +15 -0
- package/vendor/@echolab/ui-frame/dist/doc/tree-utils.d.ts +22 -0
- package/vendor/@echolab/ui-frame/dist/doc/types.d.ts +42 -0
- package/vendor/@echolab/ui-frame/dist/doc/useDocLayout.d.ts +38 -0
- package/vendor/@echolab/ui-frame/dist/extensions/componentRegistry.d.ts +39 -0
- package/vendor/@echolab/ui-frame/dist/extensions/createComponent.d.ts +43 -0
- package/vendor/@echolab/ui-frame/dist/extensions/index.d.ts +4 -0
- package/vendor/@echolab/ui-frame/dist/extensions/index.js +6 -0
- package/vendor/@echolab/ui-frame/dist/extensions/types.d.ts +56 -0
- package/vendor/@echolab/ui-frame/dist/index.css +1 -0
- package/vendor/@echolab/ui-frame/dist/index.d.ts +80 -0
- package/vendor/@echolab/ui-frame/dist/locales/en-US.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/locales/index.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/locales/index.js +171 -0
- package/vendor/@echolab/ui-frame/dist/locales/types.d.ts +89 -0
- package/vendor/@echolab/ui-frame/dist/locales/zh-CN.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/style.css +1 -0
- package/vendor/@echolab/ui-frame/dist/styles/base.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/styles/tokens.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/tokens.css +1 -0
- package/vendor/@echolab/ui-frame/dist/tokens.d.ts +1 -0
- package/vendor/@echolab/ui-frame/dist/tokens.js +1 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.css +1 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.d.ts +3 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.js +247 -0
- package/vendor/@echolab/ui-frame/dist/ui-frame.umd.cjs +3 -0
- package/vendor/@echolab/ui-frame/dist/utils/index.d.ts +14 -0
- package/vendor/@echolab/ui-frame/dist/utils/index.js +20 -0
- package/vendor/@echolab/ui-frame/package.json +131 -0
- package/vendor/fsevents-stub/index.d.ts +2 -0
- package/vendor/fsevents-stub/index.js +3 -0
- package/vendor/fsevents-stub/package.json +8 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProDocNode } from './types.js';
|
|
2
|
+
|
|
3
|
+
/** 解析 frontmatter 为对象 */
|
|
4
|
+
export declare function parseFrontmatter(content: string): {
|
|
5
|
+
meta: Record<string, unknown>;
|
|
6
|
+
body: string;
|
|
7
|
+
};
|
|
8
|
+
/** 从文件路径生成文档 ID */
|
|
9
|
+
export declare function pathToId(filePath: string): string;
|
|
10
|
+
/** 从文件内容解析出标题(H1 或 frontmatter title) */
|
|
11
|
+
export declare function extractTitle(body: string, meta: Record<string, unknown>): string;
|
|
12
|
+
/** 创建单个 ProDocNode */
|
|
13
|
+
export declare function createNode(filePath: string, content: string): ProDocNode;
|
|
14
|
+
/** 从文件结构构建文档树 */
|
|
15
|
+
export declare function buildDocTree(files: Record<string, string>): ProDocNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ProDocNode } from './types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 根据节点路径特征推断对应的图标
|
|
5
|
+
* @param node - ProDoc 文档节点
|
|
6
|
+
* @returns 对应的 emoji 图标
|
|
7
|
+
*/
|
|
8
|
+
export declare function getNodeIcon(node: ProDocNode): string;
|
|
9
|
+
/** 树节点数据结构(与 NeumorphismTree 的 TreeNodeData 兼容) */
|
|
10
|
+
export interface DocTreeNode {
|
|
11
|
+
key: string;
|
|
12
|
+
label: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
children: DocTreeNode[];
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 将 ProDocNode 递归转换为树形节点数据
|
|
19
|
+
* @param node - ProDoc 文档节点
|
|
20
|
+
* @returns 树形节点数据
|
|
21
|
+
*/
|
|
22
|
+
export declare function nodeToTreeData(node: ProDocNode): DocTreeNode;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Doc 模块核心类型定义
|
|
3
|
+
*
|
|
4
|
+
* 文档节点、文档树和配置选项的类型声明。
|
|
5
|
+
*/
|
|
6
|
+
/** 文档节点 */
|
|
7
|
+
export interface ProDocNode {
|
|
8
|
+
/** 唯一标识符 */
|
|
9
|
+
id: string;
|
|
10
|
+
/** 文档标题 */
|
|
11
|
+
title: string;
|
|
12
|
+
/** 文档路径(相对于 docs 根目录) */
|
|
13
|
+
path: string;
|
|
14
|
+
/** Markdown 原始内容 */
|
|
15
|
+
content: string;
|
|
16
|
+
/** 解析后的内容(不含 frontmatter) */
|
|
17
|
+
body: string;
|
|
18
|
+
/** frontmatter 元数据 */
|
|
19
|
+
meta: Record<string, unknown>;
|
|
20
|
+
/** 子文档 */
|
|
21
|
+
children: ProDocNode[];
|
|
22
|
+
/** 排序权重 */
|
|
23
|
+
order: number;
|
|
24
|
+
}
|
|
25
|
+
/** 文档树结构 */
|
|
26
|
+
export interface DocTree {
|
|
27
|
+
/** 根节点 */
|
|
28
|
+
root: ProDocNode;
|
|
29
|
+
/** 所有节点映射(path -> node) */
|
|
30
|
+
nodeMap: Map<string, ProDocNode>;
|
|
31
|
+
/** 根据路径查找节点 */
|
|
32
|
+
findByPath(path: string): ProDocNode | undefined;
|
|
33
|
+
/** 根据 ID 查找节点 */
|
|
34
|
+
findById(id: string): ProDocNode | undefined;
|
|
35
|
+
}
|
|
36
|
+
/** Doc 模块配置选项 */
|
|
37
|
+
export interface ProDocOptions {
|
|
38
|
+
/** 文档根目录路径 */
|
|
39
|
+
docsRoot?: string;
|
|
40
|
+
/** 首页路径 */
|
|
41
|
+
indexPath?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComputedRef, Ref, WritableComputedRef } from 'vue';
|
|
2
|
+
import { ProDocNode } from './types.js';
|
|
3
|
+
import { createDocTree } from './doc-tree.js';
|
|
4
|
+
import { TreeNodeData } from '../components/NeumorphismTree';
|
|
5
|
+
import { Theme } from '../composables/useTheme';
|
|
6
|
+
|
|
7
|
+
export interface UseDocLayoutOptions {
|
|
8
|
+
/** 文档树根节点 */
|
|
9
|
+
root: ProDocNode;
|
|
10
|
+
/** 初始选中的文档路径 */
|
|
11
|
+
initialPath?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UseDocLayoutReturn {
|
|
14
|
+
/** 当前选中的路径 */
|
|
15
|
+
selectedPath: Ref<string>;
|
|
16
|
+
/** 选中的 keys(用于 Tree 组件 v-model) */
|
|
17
|
+
selectedKeys: Ref<string[]>;
|
|
18
|
+
/** 展开的 keys */
|
|
19
|
+
expandedKeys: Ref<string[]>;
|
|
20
|
+
/** 树形数据 */
|
|
21
|
+
treeData: ComputedRef<TreeNodeData[]>;
|
|
22
|
+
/** 当前选中的节点 */
|
|
23
|
+
selectedNode: ComputedRef<ProDocNode | undefined>;
|
|
24
|
+
/** 当前显示的节点(默认第一个子节点) */
|
|
25
|
+
displayNode: ComputedRef<ProDocNode | undefined>;
|
|
26
|
+
/** 文档树索引 */
|
|
27
|
+
docTree: ComputedRef<ReturnType<typeof createDocTree>>;
|
|
28
|
+
/** 主题双向绑定模型 */
|
|
29
|
+
themeModel: WritableComputedRef<Theme>;
|
|
30
|
+
/** 处理树节点选择 */
|
|
31
|
+
handleTreeSelect: (key: string) => void;
|
|
32
|
+
/** 处理文档链接点击 */
|
|
33
|
+
handleDocLink: (emit: (e: 'docLink', path: string) => void, path: string) => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Doc 布局共享逻辑 — 管理树节点选择、主题、节点查找
|
|
37
|
+
*/
|
|
38
|
+
export declare function useDocLayout(options: UseDocLayoutOptions): UseDocLayoutReturn;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, App } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Runtime component registry that maps component names to implementations.
|
|
5
|
+
*
|
|
6
|
+
* Supports:
|
|
7
|
+
* - Registering or replacing components via `register()`
|
|
8
|
+
* - Looking up components via `get()` / `has()`
|
|
9
|
+
* - Bulk-installing onto a Vue App via `install(app, prefix?)`
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const registry = new ComponentRegistry()
|
|
14
|
+
* registry
|
|
15
|
+
* .register('NeumorphismButton', MyCustomButton)
|
|
16
|
+
* .register('MyWidget', MyWidget)
|
|
17
|
+
* registry.install(app, 'App')
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class ComponentRegistry {
|
|
21
|
+
private _map;
|
|
22
|
+
constructor(entries?: Iterable<readonly [string, Component]>);
|
|
23
|
+
/** Register or replace a component. Returns `this` for chaining. */
|
|
24
|
+
register(name: string, component: Component): this;
|
|
25
|
+
/** Retrieve a registered component by name. */
|
|
26
|
+
get(name: string): Component | undefined;
|
|
27
|
+
/** Check if a component name is registered. */
|
|
28
|
+
has(name: string): boolean;
|
|
29
|
+
/** Delete a registered component. Returns true if it existed. */
|
|
30
|
+
remove(name: string): boolean;
|
|
31
|
+
/** Number of registered components. */
|
|
32
|
+
get size(): number;
|
|
33
|
+
/** Iterate all [name, component] entries. */
|
|
34
|
+
entries(): IterableIterator<[string, Component]>;
|
|
35
|
+
/** Iterate all component names. */
|
|
36
|
+
names(): IterableIterator<string>;
|
|
37
|
+
/** Register all components onto a Vue App instance. */
|
|
38
|
+
install(app: App, prefix?: string): this;
|
|
39
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { useConfig, NeumorphismGlobalConfig } from '../composables/useConfig';
|
|
3
|
+
|
|
4
|
+
export { useConfig };
|
|
5
|
+
export type { NeumorphismGlobalConfig };
|
|
6
|
+
/**
|
|
7
|
+
* Context provided by `useNeumorphismSetup()` for building custom components
|
|
8
|
+
* that follow the library's prop-resolution cascade.
|
|
9
|
+
*/
|
|
10
|
+
export interface NeumorphismSetupContext {
|
|
11
|
+
/** The global config injected at app level via `app.use(UI, { config })`. */
|
|
12
|
+
config: ComputedRef<NeumorphismGlobalConfig>;
|
|
13
|
+
/**
|
|
14
|
+
* Resolve a prop value using the standard cascade:
|
|
15
|
+
* explicit prop > global config > hardcoded default.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const size = computed(() => resolveProp(props.size, config.value.input?.size, 'medium'))
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
resolveProp: <T>(explicit: T | undefined, configValue: T | undefined, defaultValue: T) => T;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Setup helper for building custom components that participate in the
|
|
26
|
+
* neumorphism global config system.
|
|
27
|
+
*
|
|
28
|
+
* Provides the same config resolution as every built-in library component:
|
|
29
|
+
* explicit prop > global config > hardcoded default.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```vue
|
|
33
|
+
* <script setup lang="ts">
|
|
34
|
+
* import { computed } from 'vue'
|
|
35
|
+
* import { useNeumorphismSetup } from '@echolab/ui-frame'
|
|
36
|
+
*
|
|
37
|
+
* const props = withDefaults(defineProps<{ size?: 'sm' | 'md' | 'lg' }>(), { size: 'md' })
|
|
38
|
+
* const { config, resolveProp } = useNeumorphismSetup()
|
|
39
|
+
* const size = computed(() => resolveProp(props.size, config.value.myComp?.size, 'md'))
|
|
40
|
+
* </script>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function useNeumorphismSetup(): NeumorphismSetupContext;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ComponentRegistry } from './componentRegistry';
|
|
2
|
+
export { useNeumorphismSetup } from './createComponent';
|
|
3
|
+
export type { NeumorphismSetupContext } from './createComponent';
|
|
4
|
+
export type { ComponentOverrides, NeumorphismPluginOptions, ExtendedConfig } from './types';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { NeumorphismGlobalConfig } from '../composables/useConfig';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Map of component names to component definitions.
|
|
6
|
+
* Keys matching library component names replace them.
|
|
7
|
+
* New keys register additional components.
|
|
8
|
+
*/
|
|
9
|
+
export interface ComponentOverrides {
|
|
10
|
+
[componentName: string]: Component;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Extended plugin options for app.use().
|
|
14
|
+
*
|
|
15
|
+
* @example Legacy format (still supported)
|
|
16
|
+
* ```ts
|
|
17
|
+
* app.use(NeumorphismUI, { button: { size: 'large' } })
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example New structured format
|
|
21
|
+
* ```ts
|
|
22
|
+
* app.use(NeumorphismUI, {
|
|
23
|
+
* config: { button: { size: 'large' } },
|
|
24
|
+
* components: { NeumorphismButton: MyCustomButton },
|
|
25
|
+
* prefix: 'App',
|
|
26
|
+
* })
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export interface NeumorphismPluginOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Global default props for all library components.
|
|
32
|
+
* Same shape as the legacy second argument to app.use().
|
|
33
|
+
*/
|
|
34
|
+
config?: NeumorphismGlobalConfig;
|
|
35
|
+
/**
|
|
36
|
+
* Override existing library components or register new ones.
|
|
37
|
+
* Keys matching library component names replace those components globally.
|
|
38
|
+
* New keys are registered as additional global components.
|
|
39
|
+
*/
|
|
40
|
+
components?: ComponentOverrides;
|
|
41
|
+
/**
|
|
42
|
+
* Optional prefix prepended to all registered component tag names.
|
|
43
|
+
* `prefix: 'App'` registers `<AppNeumorphismButton>` instead of `<NeumorphismButton>`.
|
|
44
|
+
*/
|
|
45
|
+
prefix?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Type helper to merge a custom config section into the global config type.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* interface MyWidgetConfig { myWidget?: { color?: string; size?: 'sm' | 'lg' } }
|
|
53
|
+
* type MyFullConfig = ExtendedConfig<MyWidgetConfig>
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export type ExtendedConfig<T extends Record<string, unknown>> = NeumorphismGlobalConfig & T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.neumorphism-markdown{display:flex;gap:28px;align-items:flex-start}.neumorphism-markdown-body{flex:1;min-width:0}.neumorphism-toc{width:220px;min-width:200px;flex-shrink:0;position:sticky;top:20px;align-self:flex-start;max-height:calc(100vh - 100px);overflow-y:auto;z-index:10;scrollbar-width:thin;scrollbar-color:var(--nm-surface-raised) transparent}.neumorphism-toc--fixed{position:fixed}.neumorphism-toc-card{background-color:var(--nm-surface-raised)}.neumorphism-toc-header{display:flex;align-items:center;justify-content:space-between;padding:0 16px 10px;font-size:10px;font-weight:700;color:var(--nm-text-placeholder);text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid var(--nm-border-subtle);margin-bottom:8px}.neumorphism-toc-list{list-style:none;margin:0;padding:0}.neumorphism-toc-item a{display:flex;align-items:center;gap:4px;padding:5px 12px 5px 0;font-size:13px;color:var(--nm-text-secondary);text-decoration:none;border-right:2px solid transparent;transition:color .2s ease,border-right-color .2s ease,background-color .2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.neumorphism-toc-item.level-1 a{padding-left:16px}.neumorphism-toc-item.level-2 a{padding-left:32px}.neumorphism-toc-item.level-3 a{padding-left:48px}.neumorphism-toc-item.level-4 a{padding-left:64px}.neumorphism-toc-item.level-5 a{padding-left:80px}.neumorphism-toc-item.level-6 a{padding-left:96px}.neumorphism-toc-item.has-children>a .toc-text{font-weight:500}.toc-toggle{flex-shrink:0;width:16px;height:16px;padding:0;margin:0;border:none;border-radius:var(--nm-border-radius-sm);background:transparent;color:var(--nm-text-placeholder);font-size:10px;line-height:16px;text-align:center;cursor:pointer;font-family:monospace;transition:color .15s ease,background-color .15s ease}.toc-toggle:hover{color:var(--nm-primary-color);background-color:color-mix(in srgb,var(--nm-primary-color) 10%,transparent)}.toc-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.neumorphism-toc-item a:hover{color:var(--nm-primary-color);border-right-color:color-mix(in srgb,var(--nm-primary-color) 15%,transparent)}.neumorphism-toc-item.active a{color:var(--nm-primary-color);border-right-color:var(--nm-primary-color);background:color-mix(in srgb,var(--nm-primary-color) 12%,transparent)}.neumorphism-markdown-content{line-height:1.75;color:var(--nm-text-primary);font-size:15px}.neumorphism-markdown-content h1,.neumorphism-markdown-content h2,.neumorphism-markdown-content h3,.neumorphism-markdown-content h4,.neumorphism-markdown-content h5,.neumorphism-markdown-content h6{margin-top:36px;margin-bottom:16px;font-weight:600;color:var(--nm-text-primary);line-height:1.25;letter-spacing:-.3px;position:relative}.neumorphism-markdown-content h1{font-size:26px}.neumorphism-markdown-content h2{font-size:22px}.neumorphism-markdown-content h3{font-size:18px}.neumorphism-markdown-content h4{font-size:16px}.neumorphism-markdown-content h5{font-size:15px}.neumorphism-markdown-content h6{font-size:14px;color:var(--nm-text-secondary)}.heading-anchor{position:absolute;right:-22px;top:50%;transform:translateY(-50%);color:var(--nm-text-placeholder);text-decoration:none;font-size:16px;font-weight:400;opacity:0;transition:opacity .2s ease,color .2s ease}.neumorphism-markdown-content h1:hover .heading-anchor,.neumorphism-markdown-content h2:hover .heading-anchor,.neumorphism-markdown-content h3:hover .heading-anchor,.neumorphism-markdown-content h4:hover .heading-anchor,.neumorphism-markdown-content h5:hover .heading-anchor,.neumorphism-markdown-content h6:hover .heading-anchor{opacity:1}.heading-anchor:hover{color:var(--nm-primary-color)}.neumorphism-markdown-content p{margin:0 0 16px;color:var(--nm-text-primary)}.neumorphism-markdown-content a{color:var(--nm-primary-color);text-decoration:none;transition:opacity .2s ease}.neumorphism-markdown-content a:hover{text-decoration:underline;opacity:.85}.neumorphism-markdown-content ul,.neumorphism-markdown-content ol{margin:0 0 16px;padding-left:24px;color:var(--nm-text-primary)}.neumorphism-markdown-content li{margin-bottom:6px}.neumorphism-markdown-content li::marker{color:var(--nm-text-placeholder)}.task-list-item{list-style:none;padding-left:0;margin-left:-4px}.task-checkbox{display:flex;align-items:center;gap:10px;cursor:default}.task-checkbox input{position:absolute;opacity:0;width:1px;height:1px}.checkmark{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--nm-border-radius-sm);flex-shrink:0;background-color:var(--nm-surface-color);border:1px solid var(--nm-border-medium);transition:background-color .2s ease,border-color .2s ease}.task-checkbox input:checked+.checkmark{background-color:var(--nm-primary-color);border-color:var(--nm-primary-color)}.checkmark:after{content:"";width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px);opacity:0;transition:opacity .2s ease}.task-checkbox input:checked+.checkmark:after{opacity:1}.task-text{color:var(--nm-text-primary)}.task-checkbox input:checked~.task-text{text-decoration:line-through;color:var(--nm-text-placeholder)}.inline-code{background-color:var(--nm-surface-color);padding:3px 8px;border-radius:var(--nm-border-radius-sm);font-size:.88em;font-family:SF Mono,Cascadia Code,Monaco,Fira Code,Cousine,monospace;color:var(--nm-primary-color);border:1px solid var(--nm-border-subtle)}.code-block-wrapper{margin:0 0 20px;border-radius:var(--nm-border-radius-lg);overflow:hidden;background-color:var(--nm-surface-color);border:1px solid var(--nm-border-subtle)}.code-block-header{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-bottom:1px solid var(--nm-border-subtle)}.code-lang{font-size:11px;font-weight:700;color:var(--nm-primary-color);text-transform:uppercase;letter-spacing:.5px;font-family:SF Mono,Cascadia Code,Monaco,Fira Code,Cousine,monospace}.code-lines{font-size:11px;color:var(--nm-text-placeholder);font-family:SF Mono,Cascadia Code,Monaco,Fira Code,Cousine,monospace;margin-left:auto;margin-right:12px}.code-copy-btn{padding:4px 10px;border:none;border-radius:var(--nm-border-radius-sm);font-size:11px;font-weight:500;color:var(--nm-text-secondary);background-color:var(--nm-surface-color);cursor:pointer;transition:color .2s ease,background-color .2s ease}.code-copy-btn:hover{color:var(--nm-primary-color)}.code-copy-btn.copied{background-color:var(--nm-primary-color);color:#fff}.code-block-body{display:flex;overflow-x:auto}.line-numbers{display:flex;flex-direction:column;padding:14px 0 14px 14px;flex-shrink:0;-webkit-user-select:none;user-select:none;border-right:1px solid var(--nm-border-subtle)}.line-num{font-size:12px;line-height:1.65;color:var(--nm-text-placeholder);font-family:SF Mono,Cascadia Code,Monaco,Fira Code,Cousine,monospace;text-align:right;padding-right:14px;min-width:28px}.code-block-body pre{flex:1;margin:0;padding:14px 20px;background:transparent;overflow-x:auto;box-shadow:none}.code-block-body pre code{display:block;font-size:13px;line-height:1.65;font-family:SF Mono,Cascadia Code,Monaco,Fira Code,Cousine,monospace;background:transparent;padding:0;box-shadow:none}.token-comment{color:var(--nm-code-comment);font-style:italic}.token-string{color:var(--nm-code-string)}.token-keyword{color:var(--nm-code-keyword);font-weight:600}.token-function{color:var(--nm-code-function)}.token-number{color:var(--nm-code-number)}.token-type{color:var(--nm-code-type)}.token-operator{color:var(--nm-code-operator)}.token-punctuation{color:var(--nm-code-punctuation)}.neumorphism-markdown-content blockquote{margin:0 0 18px;padding:16px 22px;border-left:3px solid var(--nm-primary-color);background-color:var(--nm-surface-color);color:var(--nm-text-primary);border-radius:0 var(--nm-border-radius-lg) var(--nm-border-radius-lg) 0}.neumorphism-markdown-content blockquote p:last-child{margin-bottom:0}.neumorphism-markdown-content table{width:100%;border-collapse:separate;border-spacing:0;margin:0 0 18px;border-radius:var(--nm-border-radius-lg);overflow:hidden;background-color:var(--nm-surface-color);border:1px solid var(--nm-border-subtle)}.neumorphism-markdown-content th,.neumorphism-markdown-content td{padding:12px 16px;border-bottom:1px solid var(--nm-border-subtle);text-align:left}.neumorphism-markdown-content th{background-color:var(--nm-bg-color);font-weight:600;color:var(--nm-text-primary);font-size:12px;text-transform:uppercase;letter-spacing:.5px}.neumorphism-markdown-content td{color:var(--nm-text-primary);font-size:14px}.neumorphism-markdown-content tr:last-child td{border-bottom:none}.neumorphism-markdown-content tr:nth-child(2n) td{background-color:color-mix(in srgb,var(--nm-text-placeholder) 4%,transparent)}.neumorphism-markdown-content img{max-width:100%;height:auto;border-radius:var(--nm-border-radius-lg)}.neumorphism-markdown-content hr{border:none;border-top:1px solid var(--nm-border-subtle);margin:32px 0}.neumorphism-markdown-content strong{color:var(--nm-text-primary);font-weight:600}.neumorphism-markdown-content del,.neumorphism-markdown-content s{color:var(--nm-text-placeholder);text-decoration-color:var(--nm-text-secondary)}.neumorphism-toc-item a:focus-visible,.neumorphism-markdown-content a:focus-visible,.code-copy-btn:focus-visible,.heading-anchor:focus-visible,.neumorphism-toc-mobile-btn:focus-visible,.neumorphism-toc-mobile-close:focus-visible{outline:2px solid var(--nm-primary-color);outline-offset:2px;border-radius:var(--nm-border-radius-sm)}.neumorphism-markdown-content a:focus-visible{border-radius:2px}.neumorphism-toc-mobile-btn{display:none;position:fixed;right:20px;bottom:20px;z-index:100;width:48px;height:48px;border-radius:50%;border:none;font-size:20px;cursor:pointer;background-color:var(--nm-surface-color);box-shadow:6px 6px 12px var(--nm-shadow-dark),-6px -6px 12px var(--nm-shadow-light);transition:transform .2s ease,box-shadow .2s ease}.neumorphism-toc-mobile-btn:hover{transform:scale(1.05)}.neumorphism-toc-mobile-btn.active{background-color:var(--nm-primary-color)}.neumorphism-toc-mobile-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:99;background-color:#0000004d;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.neumorphism-toc-mobile-panel{position:absolute;right:16px;bottom:80px;width:280px;max-height:60vh;overflow-y:auto;background-color:var(--nm-surface-raised)}.neumorphism-toc-mobile-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--nm-border-subtle)}.neumorphism-toc-mobile-title{font-size:12px;font-weight:700;color:var(--nm-text-placeholder);text-transform:uppercase;letter-spacing:1px}.neumorphism-toc-mobile-close{width:28px;height:28px;border-radius:50%;border:none;background-color:var(--nm-surface-color);color:var(--nm-text-secondary);cursor:pointer;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;transition:color .2s ease,background-color .2s ease}.neumorphism-toc-mobile-close:hover{color:var(--nm-primary-color)}.neumorphism-toc-drawer-enter-active,.neumorphism-toc-drawer-leave-active{transition:opacity .2s ease}.neumorphism-toc-drawer-enter-from,.neumorphism-toc-drawer-leave-to{opacity:0}.neumorphism-markdown-content table{display:block;overflow-x:auto;white-space:nowrap}.neumorphism-markdown-content th,.neumorphism-markdown-content td{white-space:normal}@media (max-width: 1100px){.neumorphism-toc{display:none}.neumorphism-toc-mobile-btn,.neumorphism-toc-mobile-overlay{display:block}}@media (prefers-reduced-motion: reduce){.neumorphism-toc-item a,.heading-anchor,.code-copy-btn,.checkmark,.neumorphism-toc-mobile-btn,.neumorphism-toc-drawer-enter-active,.neumorphism-toc-drawer-leave-active{transition:none!important}.neumorphism-toc-drawer-enter-from,.neumorphism-toc-drawer-leave-to{opacity:1}}.neumorphism-doc-viewer[data-v-aa1a5e08]{height:100vh;width:100vw;overflow:hidden}.neumorphism-header-brand[data-v-aa1a5e08]{font-weight:700;font-size:17px}.neumorphism-sider-content[data-v-aa1a5e08]{padding:12px}.neumorphism-sider-collapsed[data-v-aa1a5e08]{display:flex;align-items:center;justify-content:center;height:100%;padding-top:16px;font-size:20px}.neumorphism-main-container[data-v-aa1a5e08]{padding:24px 20px}.neumorphism-content-card[data-v-aa1a5e08]{min-height:100%;overflow:visible}.neumorphism-doc-header[data-v-aa1a5e08]{padding:20px 28px 0}.neumorphism-doc-title[data-v-aa1a5e08]{margin:0 0 12px;font-size:28px;font-weight:700;color:var(--nm-text-primary)}.neumorphism-doc-meta[data-v-aa1a5e08]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.neumorphism-doc-body[data-v-aa1a5e08]{padding:32px 28px}.neumorphism-empty-state[data-v-aa1a5e08]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:400px;text-align:center;color:var(--nm-text-placeholder)}.neumorphism-empty-icon[data-v-aa1a5e08]{width:80px;height:80px;display:flex;align-items:center;justify-content:center}.neumorphism-empty-emoji[data-v-aa1a5e08]{font-size:40px}.neumorphism-doc-switch-enter-active[data-v-aa1a5e08],.neumorphism-doc-switch-leave-active[data-v-aa1a5e08]{transition:opacity .2s ease,transform .2s ease}.neumorphism-doc-switch-enter-from[data-v-aa1a5e08]{opacity:0;transform:translateY(8px)}.neumorphism-doc-switch-leave-to[data-v-aa1a5e08]{opacity:0;transform:translateY(-4px)}@media (max-width: 768px){.neumorphism-main-container[data-v-aa1a5e08]{padding:16px 12px}.neumorphism-doc-header[data-v-aa1a5e08]{padding:16px 20px 0}.neumorphism-doc-title[data-v-aa1a5e08]{font-size:22px}.neumorphism-doc-body[data-v-aa1a5e08]{padding:20px}}@media (prefers-reduced-motion: reduce){.neumorphism-doc-switch-enter-active[data-v-aa1a5e08],.neumorphism-doc-switch-leave-active[data-v-aa1a5e08]{transition:none!important}.neumorphism-doc-switch-enter-from[data-v-aa1a5e08],.neumorphism-doc-switch-leave-to[data-v-aa1a5e08]{opacity:1;transform:none}}.neumorphism-markdown-editor[data-v-c47cd884]{display:flex;flex-direction:column;height:100%;min-height:0}.neumorphism-editor-toolbar[data-v-c47cd884]{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;flex-shrink:0;background-color:var(--nm-surface-color);border-bottom:1px solid var(--nm-border-subtle)}.neumorphism-editor-mode-tabs[data-v-c47cd884]{max-width:280px}.editor-stat[data-v-c47cd884]{font-size:12px;color:var(--nm-text-placeholder);font-family:SF Mono,Monaco,monospace}.neumorphism-editor-panels[data-v-c47cd884]{flex:1;display:flex;overflow:hidden;min-height:0;gap:16px;padding:16px;background-color:var(--nm-bg-color)}.neumorphism-editor-panel[data-v-c47cd884]{flex:1;min-width:0;display:flex;flex-direction:column}.neumorphism-editor-panel.hidden[data-v-c47cd884]{display:none}.edit-card[data-v-c47cd884],.preview-card[data-v-c47cd884]{flex:1;overflow:hidden;display:flex;flex-direction:column}.edit-card[data-v-c47cd884]{background-color:var(--nm-surface-raised)}.preview-card[data-v-c47cd884]{background-color:var(--nm-surface-raised);padding:24px;overflow-y:auto}.neumorphism-editor-textarea[data-v-c47cd884] .nm-textarea__field{font-family:SF Mono,Monaco,Cascadia Code,monospace;font-size:14px;line-height:1.65;resize:none;height:100%}.neumorphism-mode-edit .neumorphism-editor-panel--edit[data-v-c47cd884],.neumorphism-mode-preview .neumorphism-editor-panel--preview[data-v-c47cd884]{max-width:100%}@media (max-width: 768px){.neumorphism-editor-panels.neumorphism-mode-split[data-v-c47cd884]{flex-direction:column}.neumorphism-editor-panels.neumorphism-mode-split .neumorphism-editor-panel[data-v-c47cd884]{flex:none;height:50%}.neumorphism-editor-toolbar[data-v-c47cd884]{flex-wrap:wrap;gap:8px}}.neumorphism-doc-editor[data-v-974c39ef]{height:100vh;width:100vw;overflow:hidden}.neumorphism-editor-brand[data-v-974c39ef]{font-weight:700;font-size:17px}.neumorphism-editor-actions[data-v-974c39ef]{display:flex;align-items:center;gap:14px}.neumorphism-editor-sider[data-v-974c39ef]{padding:12px}.neumorphism-editor-sider-collapsed[data-v-974c39ef]{display:flex;align-items:center;justify-content:center;height:100%;padding-top:16px;font-size:20px}.neumorphism-editor-container[data-v-974c39ef]{padding:20px}.neumorphism-editor-card[data-v-974c39ef]{height:100%}.neumorphism-editor-layout[data-v-974c39ef]{display:flex;flex-direction:column;height:100%}.neumorphism-editor-header[data-v-974c39ef]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 24px 16px}.neumorphism-editor-title[data-v-974c39ef]{margin:0 0 10px;font-size:22px;font-weight:700;color:var(--nm-text-primary)}.neumorphism-editor-meta[data-v-974c39ef]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.neumorphism-editor-body[data-v-974c39ef]{flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:0}.neumorphism-editor-empty[data-v-974c39ef]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:400px;text-align:center;color:var(--nm-text-placeholder)}.neumorphism-editor-empty-icon[data-v-974c39ef]{width:80px;height:80px;display:flex;align-items:center;justify-content:center}.neumorphism-editor-empty-emoji[data-v-974c39ef]{font-size:40px}@media (max-width: 768px){.neumorphism-editor-container[data-v-974c39ef]{padding:12px}.neumorphism-editor-header[data-v-974c39ef]{padding:16px}.neumorphism-editor-title[data-v-974c39ef]{font-size:20px}}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { NeumorphismGlobalConfig } from './composables/useConfig';
|
|
3
|
+
import { NeumorphismPluginOptions } from './extensions/types';
|
|
4
|
+
|
|
5
|
+
export * from './components';
|
|
6
|
+
export type * from './components';
|
|
7
|
+
export { useTheme, provideTheme, createTheme } from './composables/useTheme';
|
|
8
|
+
export type { Theme, ThemeOptions, ThemeContext } from './composables/useTheme';
|
|
9
|
+
export { useSelect } from './composables/useSelect';
|
|
10
|
+
export type { UseSelectOptions, UseSelectReturn, SelectOption } from './composables/useSelect';
|
|
11
|
+
export { useTabs } from './composables/useTabs';
|
|
12
|
+
export type { UseTabsOptions, UseTabsReturn, TabItem as HeadlessTabItem, } from './composables/useTabs';
|
|
13
|
+
export { usePagination } from './composables/usePagination';
|
|
14
|
+
export type { UsePaginationOptions, UsePaginationReturn } from './composables/usePagination';
|
|
15
|
+
export { useTree } from './composables/useTree';
|
|
16
|
+
export type { UseTreeOptions, UseTreeReturn, TreeNodeData as HeadlessTreeNodeData, } from './composables/useTree';
|
|
17
|
+
export { useTable } from './composables/useTable';
|
|
18
|
+
export type { UseTableOptions, UseTableReturn, TableColumn, SortDirection, SortState, SelectionMode, } from './composables/useTable';
|
|
19
|
+
export { useCollapse } from './composables/useCollapse';
|
|
20
|
+
export type { UseCollapseOptions, UseCollapseReturn, CollapseItem as HeadlessCollapseItem, } from './composables/useCollapse';
|
|
21
|
+
export { useModal } from './composables/useModal';
|
|
22
|
+
export type { UseModalOptions, UseModalReturn } from './composables/useModal';
|
|
23
|
+
export { useToast } from './composables/useToast';
|
|
24
|
+
export type { UseToastOptions, UseToastReturn, ToastOptions as HeadlessToastOptions, ToastItem as HeadlessToastItem, ToastType as HeadlessToastType, ToastPosition as HeadlessToastPosition, } from './composables/useToast';
|
|
25
|
+
export { useAlert } from './composables/useAlert';
|
|
26
|
+
export type { UseAlertOptions, UseAlertReturn, AlertType as HeadlessAlertType, } from './composables/useAlert';
|
|
27
|
+
export { useTooltip } from './composables/useTooltip';
|
|
28
|
+
export type { UseTooltipOptions, UseTooltipReturn, TooltipPosition as HeadlessTooltipPosition, TooltipTrigger as HeadlessTooltipTrigger, } from './composables/useTooltip';
|
|
29
|
+
export { useTouchDevice } from './composables/useTouchDevice';
|
|
30
|
+
export { useCheckable } from './composables/useCheckable';
|
|
31
|
+
export type { UseCheckableOptions } from './composables/useCheckable';
|
|
32
|
+
export { useFormField } from './composables/useFormField';
|
|
33
|
+
export type { FormFieldConfig, FieldSize } from './composables/useFormField';
|
|
34
|
+
export { useSlider } from './composables/useSlider';
|
|
35
|
+
export type { UseSliderOptions, UseSliderReturn } from './composables/useSlider';
|
|
36
|
+
export { useNumberInput } from './composables/useNumberInput';
|
|
37
|
+
export type { UseNumberInputOptions, UseNumberInputReturn } from './composables/useNumberInput';
|
|
38
|
+
export { usePopover } from './composables/usePopover';
|
|
39
|
+
export type { UsePopoverOptions, UsePopoverReturn, PopoverPosition, PopoverTrigger, } from './composables/usePopover';
|
|
40
|
+
export { useSteps } from './composables/useSteps';
|
|
41
|
+
export type { UseStepsOptions, UseStepsReturn, StepItem as HeadlessStepItem, StepStatus as HeadlessStepStatus, } from './composables/useSteps';
|
|
42
|
+
export { useDrawer } from './composables/useDrawer';
|
|
43
|
+
export type { UseDrawerOptions, UseDrawerReturn, DrawerPosition } from './composables/useDrawer';
|
|
44
|
+
export { useMenu } from './composables/useMenu';
|
|
45
|
+
export type { UseMenuOptions, UseMenuReturn, MenuItem as HeadlessMenuItem, } from './composables/useMenu';
|
|
46
|
+
export { useVirtualList } from './composables/useVirtualList';
|
|
47
|
+
export type { UseVirtualListOptions, UseVirtualListReturn } from './composables/useVirtualList';
|
|
48
|
+
export { useDatePicker } from './composables/useDatePicker';
|
|
49
|
+
export type { UseDatePickerOptions, UseDatePickerReturn, DayCell, } from './composables/useDatePicker';
|
|
50
|
+
export { useUpload } from './composables/useUpload';
|
|
51
|
+
export type { UseUploadOptions, UseUploadReturn, UploadFile, UploadStatus, } from './composables/useUpload';
|
|
52
|
+
export { useAutoComplete } from './composables/useAutoComplete';
|
|
53
|
+
export type { AutoCompleteOption, UseAutoCompleteOptions, UseAutoCompleteReturn, } from './composables/useAutoComplete';
|
|
54
|
+
export { validateFieldValue } from './composables/useFormValidation';
|
|
55
|
+
export type { FormRule as HeadlessFormRule } from './composables/useFormValidation';
|
|
56
|
+
export { useLocale, provideLocale, getLocaleMessages, LocaleKey } from './composables/useLocale';
|
|
57
|
+
export type { LocaleMessages, Locale } from './locales';
|
|
58
|
+
export { zhCN, enUS } from './locales';
|
|
59
|
+
export { generateId, debounce, isEmpty } from './utils';
|
|
60
|
+
export { useConfig, ConfigKey } from './composables/useConfig';
|
|
61
|
+
export type { NeumorphismGlobalConfig } from './composables/useConfig';
|
|
62
|
+
export { ComponentRegistry } from './extensions/componentRegistry';
|
|
63
|
+
export { useNeumorphismSetup } from './extensions/createComponent';
|
|
64
|
+
export type { NeumorphismSetupContext } from './extensions/createComponent';
|
|
65
|
+
export type { ComponentOverrides, NeumorphismPluginOptions, ExtendedConfig, } from './extensions/types';
|
|
66
|
+
export { RadioGroupKey, FormKey, RowGutterKey } from './composables/injectionKeys';
|
|
67
|
+
export type { RadioGroupContext, FormContext, RowGutterContext } from './composables/injectionKeys';
|
|
68
|
+
/**
|
|
69
|
+
* Register all built-in components plus any consumer-provided overrides.
|
|
70
|
+
*
|
|
71
|
+
* Supports both legacy and new plugin option formats:
|
|
72
|
+
* - `app.use(NeumorphismUI, { button: { size: 'large' } })` (legacy, unchanged)
|
|
73
|
+
* - `app.use(NeumorphismUI, { config: {...}, components: {...}, prefix: 'X' })` (new)
|
|
74
|
+
*/
|
|
75
|
+
export declare function install(app: App, options?: NeumorphismGlobalConfig | NeumorphismPluginOptions): void;
|
|
76
|
+
declare const _default: {
|
|
77
|
+
install: typeof install;
|
|
78
|
+
version: string;
|
|
79
|
+
};
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
// Badge
|
|
3
|
+
badgeOnline: "在线",
|
|
4
|
+
badgeUnread: "未读 {count}",
|
|
5
|
+
badgeAvatar: "头像",
|
|
6
|
+
// Skeleton
|
|
7
|
+
skeletonLoading: "加载中",
|
|
8
|
+
// ThemeToggle
|
|
9
|
+
themeToggleLight: "亮色",
|
|
10
|
+
themeToggleAuto: "自动",
|
|
11
|
+
themeToggleDark: "暗色",
|
|
12
|
+
themeToggleLabel: "主题切换",
|
|
13
|
+
// Canvas
|
|
14
|
+
canvasZoomOut: "缩小",
|
|
15
|
+
canvasZoomIn: "放大",
|
|
16
|
+
canvasZoomReset: "重置缩放",
|
|
17
|
+
// Tree
|
|
18
|
+
treeExpandAll: "全部展开",
|
|
19
|
+
treeCollapseAll: "全部折叠",
|
|
20
|
+
treeSearchPlaceholder: "搜索...",
|
|
21
|
+
treeEmpty: "暂无数据",
|
|
22
|
+
treeClearSearch: "清除搜索",
|
|
23
|
+
treeExpand: "展开",
|
|
24
|
+
treeCollapse: "折叠",
|
|
25
|
+
treeLabel: "树形导航",
|
|
26
|
+
// Table
|
|
27
|
+
tableLoading: "加载中...",
|
|
28
|
+
tableEmpty: "暂无数据",
|
|
29
|
+
// Select
|
|
30
|
+
selectPlaceholder: "请选择",
|
|
31
|
+
selectEmpty: "暂无选项",
|
|
32
|
+
selectClear: "清除选择",
|
|
33
|
+
selectListLabel: "选项列表",
|
|
34
|
+
// Modal
|
|
35
|
+
modalClose: "关闭",
|
|
36
|
+
modalCancel: "取消",
|
|
37
|
+
modalConfirm: "确认",
|
|
38
|
+
// Pagination
|
|
39
|
+
paginationPrev: "上一页",
|
|
40
|
+
paginationNext: "下一页",
|
|
41
|
+
paginationTotal: "共 {total} 条",
|
|
42
|
+
paginationLabel: "分页导航",
|
|
43
|
+
paginationPageLabel: "第 {page} 页",
|
|
44
|
+
// Toast
|
|
45
|
+
toastClose: "关闭通知",
|
|
46
|
+
// Tabs
|
|
47
|
+
tabsNavLabel: "标签导航",
|
|
48
|
+
// Tag
|
|
49
|
+
tagClose: "移除标签",
|
|
50
|
+
// Alert
|
|
51
|
+
alertClose: "关闭提示",
|
|
52
|
+
// Layout
|
|
53
|
+
layoutExpandSider: "展开侧边栏",
|
|
54
|
+
layoutCollapseSider: "折叠侧边栏",
|
|
55
|
+
// Breadcrumb
|
|
56
|
+
breadcrumbLabel: "面包屑导航",
|
|
57
|
+
// Form validation
|
|
58
|
+
formRequired: "必填字段",
|
|
59
|
+
formMinLength: "最少 {min} 个字符",
|
|
60
|
+
formMaxLength: "最多 {max} 个字符",
|
|
61
|
+
formPattern: "格式不正确",
|
|
62
|
+
formMin: "不能小于 {min}",
|
|
63
|
+
formMax: "不能大于 {max}",
|
|
64
|
+
formValidator: "验证失败",
|
|
65
|
+
// Progress
|
|
66
|
+
progressLabel: "进度 {percentage}%",
|
|
67
|
+
// DatePicker
|
|
68
|
+
datePickerPlaceholder: "请选择日期",
|
|
69
|
+
datePickerClear: "清除日期",
|
|
70
|
+
datePickerToday: "今天",
|
|
71
|
+
datePickerPrevMonth: "上个月",
|
|
72
|
+
datePickerNextMonth: "下个月",
|
|
73
|
+
datePickerPrevYear: "上一年",
|
|
74
|
+
datePickerNextYear: "下一年",
|
|
75
|
+
// Upload
|
|
76
|
+
uploadSelectFile: "点击或拖拽上传",
|
|
77
|
+
uploadDropFile: "释放文件上传",
|
|
78
|
+
uploadRemove: "移除",
|
|
79
|
+
uploadPreview: "预览",
|
|
80
|
+
// List
|
|
81
|
+
listLoading: "加载中...",
|
|
82
|
+
listEmpty: "暂无数据",
|
|
83
|
+
listLabel: "列表"
|
|
84
|
+
}, a = {
|
|
85
|
+
// Badge
|
|
86
|
+
badgeOnline: "Online",
|
|
87
|
+
badgeUnread: "Unread {count}",
|
|
88
|
+
badgeAvatar: "Avatar",
|
|
89
|
+
// Skeleton
|
|
90
|
+
skeletonLoading: "Loading",
|
|
91
|
+
// ThemeToggle
|
|
92
|
+
themeToggleLight: "Light",
|
|
93
|
+
themeToggleAuto: "Auto",
|
|
94
|
+
themeToggleDark: "Dark",
|
|
95
|
+
themeToggleLabel: "Theme toggle",
|
|
96
|
+
// Canvas
|
|
97
|
+
canvasZoomOut: "Zoom out",
|
|
98
|
+
canvasZoomIn: "Zoom in",
|
|
99
|
+
canvasZoomReset: "Reset zoom",
|
|
100
|
+
// Tree
|
|
101
|
+
treeExpandAll: "Expand all",
|
|
102
|
+
treeCollapseAll: "Collapse all",
|
|
103
|
+
treeSearchPlaceholder: "Search...",
|
|
104
|
+
treeEmpty: "No data",
|
|
105
|
+
treeClearSearch: "Clear search",
|
|
106
|
+
treeExpand: "Expand",
|
|
107
|
+
treeCollapse: "Collapse",
|
|
108
|
+
treeLabel: "Tree navigation",
|
|
109
|
+
// Table
|
|
110
|
+
tableLoading: "Loading...",
|
|
111
|
+
tableEmpty: "No data",
|
|
112
|
+
// Select
|
|
113
|
+
selectPlaceholder: "Please select",
|
|
114
|
+
selectEmpty: "No options",
|
|
115
|
+
selectClear: "Clear selection",
|
|
116
|
+
selectListLabel: "Option list",
|
|
117
|
+
// Modal
|
|
118
|
+
modalClose: "Close",
|
|
119
|
+
modalCancel: "Cancel",
|
|
120
|
+
modalConfirm: "Confirm",
|
|
121
|
+
// Pagination
|
|
122
|
+
paginationPrev: "Previous",
|
|
123
|
+
paginationNext: "Next",
|
|
124
|
+
paginationTotal: "Total {total}",
|
|
125
|
+
paginationLabel: "Pagination",
|
|
126
|
+
paginationPageLabel: "Page {page}",
|
|
127
|
+
// Toast
|
|
128
|
+
toastClose: "Close notification",
|
|
129
|
+
// Tabs
|
|
130
|
+
tabsNavLabel: "Tab navigation",
|
|
131
|
+
// Tag
|
|
132
|
+
tagClose: "Remove tag",
|
|
133
|
+
// Alert
|
|
134
|
+
alertClose: "Close alert",
|
|
135
|
+
// Layout
|
|
136
|
+
layoutExpandSider: "Expand sidebar",
|
|
137
|
+
layoutCollapseSider: "Collapse sidebar",
|
|
138
|
+
// Breadcrumb
|
|
139
|
+
breadcrumbLabel: "Breadcrumb navigation",
|
|
140
|
+
// Form validation
|
|
141
|
+
formRequired: "Required field",
|
|
142
|
+
formMinLength: "Minimum {min} characters",
|
|
143
|
+
formMaxLength: "Maximum {max} characters",
|
|
144
|
+
formPattern: "Invalid format",
|
|
145
|
+
formMin: "Cannot be less than {min}",
|
|
146
|
+
formMax: "Cannot be greater than {max}",
|
|
147
|
+
formValidator: "Validation failed",
|
|
148
|
+
// Progress
|
|
149
|
+
progressLabel: "Progress {percentage}%",
|
|
150
|
+
// DatePicker
|
|
151
|
+
datePickerPlaceholder: "Select date",
|
|
152
|
+
datePickerClear: "Clear date",
|
|
153
|
+
datePickerToday: "Today",
|
|
154
|
+
datePickerPrevMonth: "Previous month",
|
|
155
|
+
datePickerNextMonth: "Next month",
|
|
156
|
+
datePickerPrevYear: "Previous year",
|
|
157
|
+
datePickerNextYear: "Next year",
|
|
158
|
+
// Upload
|
|
159
|
+
uploadSelectFile: "Click or drag to upload",
|
|
160
|
+
uploadDropFile: "Drop files here",
|
|
161
|
+
uploadRemove: "Remove",
|
|
162
|
+
uploadPreview: "Preview",
|
|
163
|
+
// List
|
|
164
|
+
listLoading: "Loading...",
|
|
165
|
+
listEmpty: "No data",
|
|
166
|
+
listLabel: "List"
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
a as enUS,
|
|
170
|
+
e as zhCN
|
|
171
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale message keys used across the component library.
|
|
3
|
+
* All messages are flat strings (no nested objects) for easy overriding.
|
|
4
|
+
*/
|
|
5
|
+
export interface LocaleMessages {
|
|
6
|
+
/** Badge */
|
|
7
|
+
badgeOnline?: string;
|
|
8
|
+
badgeUnread?: string;
|
|
9
|
+
badgeAvatar?: string;
|
|
10
|
+
/** Skeleton */
|
|
11
|
+
skeletonLoading?: string;
|
|
12
|
+
/** ThemeToggle */
|
|
13
|
+
themeToggleLight?: string;
|
|
14
|
+
themeToggleAuto?: string;
|
|
15
|
+
themeToggleDark?: string;
|
|
16
|
+
themeToggleLabel?: string;
|
|
17
|
+
/** Canvas */
|
|
18
|
+
canvasZoomOut?: string;
|
|
19
|
+
canvasZoomIn?: string;
|
|
20
|
+
canvasZoomReset?: string;
|
|
21
|
+
/** Tree */
|
|
22
|
+
treeExpandAll?: string;
|
|
23
|
+
treeCollapseAll?: string;
|
|
24
|
+
treeSearchPlaceholder?: string;
|
|
25
|
+
treeEmpty?: string;
|
|
26
|
+
treeClearSearch?: string;
|
|
27
|
+
treeExpand?: string;
|
|
28
|
+
treeCollapse?: string;
|
|
29
|
+
treeLabel?: string;
|
|
30
|
+
/** Table */
|
|
31
|
+
tableLoading?: string;
|
|
32
|
+
tableEmpty?: string;
|
|
33
|
+
/** Select */
|
|
34
|
+
selectPlaceholder?: string;
|
|
35
|
+
selectEmpty?: string;
|
|
36
|
+
selectClear?: string;
|
|
37
|
+
selectListLabel?: string;
|
|
38
|
+
/** Modal */
|
|
39
|
+
modalClose?: string;
|
|
40
|
+
modalCancel?: string;
|
|
41
|
+
modalConfirm?: string;
|
|
42
|
+
/** Pagination */
|
|
43
|
+
paginationPrev?: string;
|
|
44
|
+
paginationNext?: string;
|
|
45
|
+
paginationTotal?: string;
|
|
46
|
+
paginationLabel?: string;
|
|
47
|
+
paginationPageLabel?: string;
|
|
48
|
+
/** Toast */
|
|
49
|
+
toastClose?: string;
|
|
50
|
+
/** Tabs */
|
|
51
|
+
tabsNavLabel?: string;
|
|
52
|
+
/** Alert */
|
|
53
|
+
alertClose?: string;
|
|
54
|
+
/** Tag */
|
|
55
|
+
tagClose?: string;
|
|
56
|
+
/** Layout */
|
|
57
|
+
layoutExpandSider?: string;
|
|
58
|
+
layoutCollapseSider?: string;
|
|
59
|
+
/** Breadcrumb */
|
|
60
|
+
breadcrumbLabel?: string;
|
|
61
|
+
/** Form validation */
|
|
62
|
+
formRequired?: string;
|
|
63
|
+
formMinLength?: string;
|
|
64
|
+
formMaxLength?: string;
|
|
65
|
+
formPattern?: string;
|
|
66
|
+
formMin?: string;
|
|
67
|
+
formMax?: string;
|
|
68
|
+
formValidator?: string;
|
|
69
|
+
/** Progress */
|
|
70
|
+
progressLabel?: string;
|
|
71
|
+
/** DatePicker */
|
|
72
|
+
datePickerPlaceholder?: string;
|
|
73
|
+
datePickerClear?: string;
|
|
74
|
+
datePickerToday?: string;
|
|
75
|
+
datePickerPrevMonth?: string;
|
|
76
|
+
datePickerNextMonth?: string;
|
|
77
|
+
datePickerPrevYear?: string;
|
|
78
|
+
datePickerNextYear?: string;
|
|
79
|
+
/** Upload */
|
|
80
|
+
uploadSelectFile?: string;
|
|
81
|
+
uploadDropFile?: string;
|
|
82
|
+
uploadRemove?: string;
|
|
83
|
+
uploadPreview?: string;
|
|
84
|
+
/** List */
|
|
85
|
+
listLoading?: string;
|
|
86
|
+
listEmpty?: string;
|
|
87
|
+
listLabel?: string;
|
|
88
|
+
}
|
|
89
|
+
export type Locale = 'zh-CN' | 'en-US';
|