This commit is contained in:
2026-11-29 08:09:42 +08:00
parent 0026089761
commit 6377409adc
7 changed files with 12 additions and 26 deletions
-1
View File
@@ -1,2 +1 @@
registry=https://registry.npmmirror.com registry=https://registry.npmmirror.com
shamefully-hoist = true
+1 -1
View File
@@ -1,6 +1,7 @@
import { ButtonGallery } from "./gallery/button-gallery"; import { ButtonGallery } from "./gallery/button-gallery";
import { MenuGallery } from "./gallery/menu-gallery"; import { MenuGallery } from "./gallery/menu-gallery";
import { PopoverGallery } from "./gallery/popover-gallery"; import { PopoverGallery } from "./gallery/popover-gallery";
import {} from "@dg/ui-react";
function App() { function App() {
return ( return (
@@ -15,4 +16,3 @@ function App() {
} }
export default App; export default App;
@@ -1,16 +1,5 @@
import { import { IW } from "../common/iw";
Button, import { OW } from "../common/ow";
FileSvg,
Menu,
MenuCheckItem,
MenuDropdown,
MenuItem,
MenuRadioItem,
MenuRadioItemGroup,
MenuTrigger,
} from "../../../ui-react/src";
import { IW } from "./iw";
import { OW } from "./ow";
export const MenuGallery = () => { export const MenuGallery = () => {
return ( return (
@@ -1,10 +1,5 @@
import { IW } from "../common/iw";
import { Button } from "../../../ui-react/src/components/button/button"; import { OW } from "../common/ow";
import { Popover } from "../../../ui-react/src/components/popover/popover";
import { PopoverDropdown } from "../../../ui-react/src/components/popover/popover-dropdown";
import { PopoverTrigger } from "../../../ui-react/src/components/popover/popover-trigger";
import { IW } from "./iw";
import { OW } from "./ow";
export const PopoverGallery = () => { export const PopoverGallery = () => {
return ( return (
@@ -14,9 +9,7 @@ export const PopoverGallery = () => {
<PopoverTrigger> <PopoverTrigger>
<Button>Open Popover</Button> <Button>Open Popover</Button>
</PopoverTrigger> </PopoverTrigger>
<PopoverDropdown> <PopoverDropdown>This is Popover Content !</PopoverDropdown>
This is Popover Content !
</PopoverDropdown>
</Popover> </Popover>
</IW> </IW>
</OW> </OW>
+4
View File
@@ -13,6 +13,7 @@
"docs/[^.]*", "docs/[^.]*",
"doc/[^.]*" "doc/[^.]*"
], ],
"typings": "index.d.ts",
"exports": { "exports": {
".": { ".": {
"import": { "import": {
@@ -26,6 +27,9 @@
}, },
"./index.css": "./dist/index.css" "./index.css": "./dist/index.css"
}, },
"scripts": {
"build": "tsc --project tsconfig.build.json"
},
"dependencies": { "dependencies": {
"@floating-ui/react": "^0.27.20", "@floating-ui/react": "^0.27.20",
"react-hotkeys-hook": "^5.4.0" "react-hotkeys-hook": "^5.4.0"
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -19,7 +19,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
// 转换 jsx 时,使用 17+ 的新语法导入 react 。 // 转换 jsx 时,使用 17+ 的新语法导入 react 。
"jsx": "react-jsx", "jsx": "react-jsx",
// 可作为子项目,被其他项目引用,但建议使用 workspace dep 模式,不是写 references 。 // 可作被其他项目引用源码,但有潜在的 ts 版本问题,建议使用 workspace dep 模式,而不是写 references 。
"composite": false, "composite": false,
// 只加载指定类型的声明包,避免加载无用类型,提升编译速度 // 只加载指定类型的声明包,避免加载无用类型,提升编译速度
"types": ["node", "vite/client"], "types": ["node", "vite/client"],