[WEB-4844] fix: export prople package dist (#7712)
* fix: export prople package dist * fix: code refactor
This commit is contained in:
parent
59ace4f411
commit
473535fcfa
6 changed files with 42 additions and 43 deletions
|
|
@ -16,22 +16,22 @@
|
|||
"build-storybook": "storybook build"
|
||||
},
|
||||
"exports": {
|
||||
"./avatar": "./src/avatar/index.ts",
|
||||
"./charts/*": "./src/charts/*/index.ts",
|
||||
"./dialog": "./src/dialog/index.ts",
|
||||
"./menu": "./src/menu/index.ts",
|
||||
"./table": "./src/table/index.ts",
|
||||
"./tabs": "./src/tabs/index.ts",
|
||||
"./popover": "./src/popover/index.ts",
|
||||
"./command": "./src/command/index.ts",
|
||||
"./combobox": "./src/combobox/index.ts",
|
||||
"./tooltip": "./src/tooltip/index.ts",
|
||||
"./styles/fonts": "./src/styles/fonts/index.css",
|
||||
"./switch": "./src/switch/index.ts",
|
||||
"./emoji-icon-picker": "./src/emoji-icon-picker/index.ts",
|
||||
"./utils": "./src/utils/index.ts",
|
||||
"./accordion": "./src/accordion/index.ts",
|
||||
"./card": "./src/card/index.ts"
|
||||
"./accordion": "./dist/accordion/index.ts",
|
||||
"./avatar": "./dist/avatar/index.ts",
|
||||
"./card": "./dist/card/index.ts",
|
||||
"./charts/*": "./dist/charts/*/index.ts",
|
||||
"./combobox": "./dist/combobox/index.ts",
|
||||
"./command": "./dist/command/index.ts",
|
||||
"./dialog": "./dist/dialog/index.ts",
|
||||
"./emoji-icon-picker": "./dist/emoji-icon-picker/index.ts",
|
||||
"./menu": "./dist/menu/index.ts",
|
||||
"./popover": "./dist/popover/index.ts",
|
||||
"./styles/fonts": "./dist/styles/fonts/index.css",
|
||||
"./switch": "./dist/switch/index.ts",
|
||||
"./table": "./dist/table/index.ts",
|
||||
"./tabs": "./dist/tabs/index.ts",
|
||||
"./tooltip": "./dist/tooltip/index.ts",
|
||||
"./utils": "./dist/utils/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@base-ui-components/react": "^1.0.0-beta.2",
|
||||
|
|
|
|||
|
|
@ -1,23 +1,25 @@
|
|||
import { TPlacement, TSide, TAlign } from "../utils/placement";
|
||||
|
||||
export enum EmojiIconPickerTypes {
|
||||
EMOJI = "emoji",
|
||||
ICON = "icon",
|
||||
}
|
||||
export const EmojiIconPickerTypes = {
|
||||
EMOJI: "emoji",
|
||||
ICON: "icon",
|
||||
} as const;
|
||||
|
||||
export type TChangeHandlerProps =
|
||||
| {
|
||||
type: EmojiIconPickerTypes.EMOJI;
|
||||
type: typeof EmojiIconPickerTypes.EMOJI;
|
||||
value: string;
|
||||
}
|
||||
| {
|
||||
type: EmojiIconPickerTypes.ICON;
|
||||
type: typeof EmojiIconPickerTypes.ICON;
|
||||
value: {
|
||||
name: string;
|
||||
color: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type TEmojiIconPickerTypes = typeof EmojiIconPickerTypes.EMOJI | typeof EmojiIconPickerTypes.ICON;
|
||||
|
||||
export type TCustomEmojiPicker = {
|
||||
isOpen: boolean;
|
||||
handleToggle: (value: boolean) => void;
|
||||
|
|
@ -25,7 +27,7 @@ export type TCustomEmojiPicker = {
|
|||
className?: string;
|
||||
closeOnSelect?: boolean;
|
||||
defaultIconColor?: string;
|
||||
defaultOpen?: EmojiIconPickerTypes;
|
||||
defaultOpen?: TEmojiIconPickerTypes;
|
||||
disabled?: boolean;
|
||||
dropdownClassName?: string;
|
||||
label: React.ReactNode;
|
||||
|
|
|
|||
|
|
@ -2,20 +2,24 @@ import { defineConfig } from "tsdown";
|
|||
|
||||
export default defineConfig({
|
||||
entry: [
|
||||
"src/accordion/index.ts",
|
||||
"src/avatar/index.ts",
|
||||
"src/charts/index.ts",
|
||||
"src/card/index.ts",
|
||||
"src/charts/*/index.ts",
|
||||
"src/combobox/index.ts",
|
||||
"src/command/index.ts",
|
||||
"src/dialog/index.ts",
|
||||
"src/emoji-icon-picker/index.ts",
|
||||
"src/menu/index.ts",
|
||||
"src/popover/index.ts",
|
||||
"src/switch/index.ts",
|
||||
"src/table/index.ts",
|
||||
"src/tabs/index.ts",
|
||||
"src/popover/index.ts",
|
||||
"src/command/index.ts",
|
||||
"src/combobox/index.ts",
|
||||
"src/tooltip/index.ts",
|
||||
"src/card/index.ts",
|
||||
"src/switch/index.ts",
|
||||
"src/utils/index.ts",
|
||||
],
|
||||
outDir: "dist",
|
||||
format: ["esm", "cjs"],
|
||||
dts: true,
|
||||
copy: ["src/styles"],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue