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