@bioturing/components 0.15.0 → 0.15.1
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/components/Badge/component.js +21 -0
- package/dist/components/Badge/component.js.map +1 -0
- package/dist/components/Badge/style.css +1 -0
- package/dist/components/Breadcrumb/component.js +46 -0
- package/dist/components/Breadcrumb/component.js.map +1 -0
- package/dist/components/Breadcrumb/style.css +1 -0
- package/dist/components/Breadcrumb/useItemRender.js +27 -0
- package/dist/components/Breadcrumb/useItemRender.js.map +1 -0
- package/dist/components/Button/component.js +9 -0
- package/dist/components/Button/component.js.map +1 -0
- package/dist/components/Button/style.css +1 -0
- package/dist/components/Checkbox/component.js +11 -0
- package/dist/components/Checkbox/component.js.map +1 -0
- package/dist/components/Checkbox/style.css +1 -0
- package/dist/components/CodeBlock/component.js +127 -0
- package/dist/components/CodeBlock/component.js.map +1 -0
- package/dist/components/CodeBlock/style.css +1 -0
- package/dist/components/DSRoot/component.js +21 -0
- package/dist/components/DSRoot/component.js.map +1 -0
- package/dist/components/DSRoot/context.js +9 -0
- package/dist/components/DSRoot/context.js.map +1 -0
- package/dist/components/DSRoot/style.css +1 -0
- package/dist/components/DropdownMenu/component.js +103 -0
- package/dist/components/DropdownMenu/component.js.map +1 -0
- package/dist/components/DropdownMenu/style.css +1 -0
- package/dist/components/Empty/component.js +48 -0
- package/dist/components/Empty/component.js.map +1 -0
- package/dist/components/Empty/style.css +1 -0
- package/dist/components/Field/component.js +30 -0
- package/dist/components/Field/component.js.map +1 -0
- package/dist/components/Field/style.css +1 -0
- package/dist/components/Form/component.js +23 -0
- package/dist/components/Form/component.js.map +1 -0
- package/dist/components/Form/item.js +30 -0
- package/dist/components/Form/item.js.map +1 -0
- package/dist/components/Form/style.css +1 -0
- package/dist/components/IconButton/component.js +49 -0
- package/dist/components/IconButton/component.js.map +1 -0
- package/dist/components/IconButton/style.css +1 -0
- package/dist/components/Input/component.js +25 -0
- package/dist/components/Input/component.js.map +1 -0
- package/dist/components/Modal/Modal.js +161 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/ModalProvider.js +70 -0
- package/dist/components/Modal/ModalProvider.js.map +1 -0
- package/dist/components/Modal/ModalService.js +25 -0
- package/dist/components/Modal/ModalService.js.map +1 -0
- package/dist/components/Modal/constants.js +5 -0
- package/dist/components/Modal/constants.js.map +1 -0
- package/dist/components/Modal/functions.js +27 -0
- package/dist/components/Modal/functions.js.map +1 -0
- package/dist/components/Modal/index.js +20 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Modal/style.css +1 -0
- package/dist/components/Popover/component.js +12 -0
- package/dist/components/Popover/component.js.map +1 -0
- package/dist/components/PopupPanel/component.js +190 -0
- package/dist/components/PopupPanel/component.js.map +1 -0
- package/dist/components/PopupPanel/constants.js +5 -0
- package/dist/components/PopupPanel/constants.js.map +1 -0
- package/dist/components/PopupPanel/style.css +1 -0
- package/dist/components/Radio/component.js +22 -0
- package/dist/components/Radio/component.js.map +1 -0
- package/dist/components/Radio/style.css +1 -0
- package/dist/components/ScrollArea/component.js +40 -0
- package/dist/components/ScrollArea/component.js.map +1 -0
- package/dist/components/ScrollArea/style.css +1 -0
- package/dist/components/Segmented/component.js +9 -0
- package/dist/components/Segmented/component.js.map +1 -0
- package/dist/components/Segmented/style.css +1 -0
- package/dist/components/Select/component.js +135 -0
- package/dist/components/Select/component.js.map +1 -0
- package/dist/components/Select/style.css +1 -0
- package/dist/components/Slider/component.js +23 -0
- package/dist/components/Slider/component.js.map +1 -0
- package/dist/components/Spin/component.js +12 -0
- package/dist/components/Spin/component.js.map +1 -0
- package/dist/components/Spin/style.css +1 -0
- package/dist/components/Splitter/component.js +40 -0
- package/dist/components/Splitter/component.js.map +1 -0
- package/dist/components/Splitter/style.css +1 -0
- package/dist/components/Stack/Stack.js +37 -0
- package/dist/components/Stack/Stack.js.map +1 -0
- package/dist/components/Stack/StackChild.js +57 -0
- package/dist/components/Stack/StackChild.js.map +1 -0
- package/dist/components/Stack/index.js +9 -0
- package/dist/components/Stack/index.js.map +1 -0
- package/dist/components/Stack/style.css +1 -0
- package/dist/components/Switch/component.js +9 -0
- package/dist/components/Switch/component.js.map +1 -0
- package/dist/components/Switch/style.css +1 -0
- package/dist/components/Table/component.js +68 -0
- package/dist/components/Table/component.js.map +1 -0
- package/dist/components/Table/style.css +1 -0
- package/dist/components/Tag/component.js +30 -0
- package/dist/components/Tag/component.js.map +1 -0
- package/dist/components/Tag/style.css +1 -0
- package/dist/components/ThemeProvider/component.js +41 -0
- package/dist/components/ThemeProvider/component.js.map +1 -0
- package/dist/components/ThemeProvider/style.css +1 -0
- package/dist/components/Toast/component.js +101 -0
- package/dist/components/Toast/component.js.map +1 -0
- package/dist/components/Toast/function.js +25 -0
- package/dist/components/Toast/function.js.map +1 -0
- package/dist/components/Toast/style.css +1 -0
- package/dist/components/Tooltip/component.js +26 -0
- package/dist/components/Tooltip/component.js.map +1 -0
- package/dist/components/Tooltip/style.css +1 -0
- package/dist/components/Tour/component.js +35 -0
- package/dist/components/Tour/component.js.map +1 -0
- package/dist/components/Tour/style.css +1 -0
- package/dist/components/Transition/component.js +44 -0
- package/dist/components/Transition/component.js.map +1 -0
- package/dist/components/Tree/components.js +67 -0
- package/dist/components/Tree/components.js.map +1 -0
- package/dist/components/Tree/helpers.js +53 -0
- package/dist/components/Tree/helpers.js.map +1 -0
- package/dist/components/Tree/useTreeCommon.js +86 -0
- package/dist/components/Tree/useTreeCommon.js.map +1 -0
- package/dist/components/Tree/useUniqueKeysTree.js +142 -0
- package/dist/components/Tree/useUniqueKeysTree.js.map +1 -0
- package/dist/components/Truncate/component.js +93 -0
- package/dist/components/Truncate/component.js.map +1 -0
- package/dist/components/Truncate/helpers.js +36 -0
- package/dist/components/Truncate/helpers.js.map +1 -0
- package/dist/components/Truncate/style.css +1 -0
- package/dist/components/Upload/component.js +39 -0
- package/dist/components/Upload/component.js.map +1 -0
- package/dist/components/Upload/dragger.js +23 -0
- package/dist/components/Upload/dragger.js.map +1 -0
- package/dist/components/Upload/hooks.js +18 -0
- package/dist/components/Upload/hooks.js.map +1 -0
- package/dist/components/Upload/item.js +84 -0
- package/dist/components/Upload/item.js.map +1 -0
- package/dist/components/Upload/utils.js +7 -0
- package/dist/components/Upload/utils.js.map +1 -0
- package/dist/components/VerticalCollapsiblePanel/component.js +125 -0
- package/dist/components/VerticalCollapsiblePanel/component.js.map +1 -0
- package/dist/components/VerticalCollapsiblePanel/style.css +1 -0
- package/dist/components/hooks/antd.js +22 -0
- package/dist/components/hooks/antd.js.map +1 -0
- package/dist/components/hooks/base-ui.js +47 -0
- package/dist/components/hooks/base-ui.js.map +1 -0
- package/dist/components/hooks/useCharts.js +28 -0
- package/dist/components/hooks/useCharts.js.map +1 -0
- package/dist/components/hooks/useControlledState.js +15 -0
- package/dist/components/hooks/useControlledState.js.map +1 -0
- package/dist/components/utils/WithAntdTokens.js +24 -0
- package/dist/components/utils/WithAntdTokens.js.map +1 -0
- package/dist/components/utils/antdUtils.js +58 -0
- package/dist/components/utils/antdUtils.js.map +1 -0
- package/dist/components/utils/cn.js +27 -0
- package/dist/components/utils/cn.js.map +1 -0
- package/dist/components/utils/isTracebackError.js +10 -0
- package/dist/components/utils/isTracebackError.js.map +1 -0
- package/dist/components/utils/reactToString.js +23 -0
- package/dist/components/utils/reactToString.js.map +1 -0
- package/dist/index.d.ts +2497 -3
- package/dist/index.js +188 -4004
- package/dist/index.js.map +1 -0
- package/dist/metadata.js +513 -0
- package/dist/metadata.js.map +1 -0
- package/dist/tailwind.css +1 -121
- package/dist/tailwind.d.ts +1 -0
- package/dist/tokens/and-theme/tokens.js +351 -0
- package/dist/tokens/and-theme/tokens.js.map +1 -0
- package/dist/tokens/charts/index.js +18 -0
- package/dist/tokens/charts/index.js.map +1 -0
- package/dist/tokens/charts/tokens.js +208 -0
- package/dist/tokens/charts/tokens.js.map +1 -0
- package/dist/tokens/utils.js +37 -0
- package/dist/tokens/utils.js.map +1 -0
- package/package.json +10 -108
- package/dist/Badge.css +0 -6
- package/dist/Badge.js +0 -41
- package/dist/Breadcrumb.css +0 -83
- package/dist/Breadcrumb.js +0 -92
- package/dist/Checkbox.css +0 -13
- package/dist/Checkbox.js +0 -12
- package/dist/CodeBlock.css +0 -213
- package/dist/CodeBlock.js +0 -644
- package/dist/Collapse.css +0 -21
- package/dist/Collapse.js +0 -49
- package/dist/DSRoot.css +0 -667
- package/dist/DSRoot.js +0 -1428
- package/dist/DropdownMenu.css +0 -95
- package/dist/DropdownMenu.js +0 -211
- package/dist/Empty.css +0 -19
- package/dist/Empty.js +0 -53
- package/dist/Field.css +0 -14
- package/dist/Field.js +0 -66
- package/dist/Form.css +0 -64
- package/dist/Form.js +0 -125
- package/dist/IconButton.css +0 -52
- package/dist/IconButton.js +0 -82
- package/dist/Input.js +0 -48
- package/dist/Modal.css +0 -317
- package/dist/Modal.js +0 -677
- package/dist/Popover.js +0 -10
- package/dist/PopupPanel.css +0 -170
- package/dist/PopupPanel.js +0 -333
- package/dist/Radio.css +0 -14
- package/dist/Radio.js +0 -24
- package/dist/ScrollArea.css +0 -64
- package/dist/ScrollArea.js +0 -50
- package/dist/Segmented.css +0 -16
- package/dist/Segmented.js +0 -10
- package/dist/Select.css +0 -24
- package/dist/Select.js +0 -157
- package/dist/Slider.js +0 -39
- package/dist/Spin.css +0 -36
- package/dist/Spin.js +0 -33
- package/dist/Splitter.css +0 -6
- package/dist/Splitter.js +0 -47
- package/dist/Switch.css +0 -7
- package/dist/Switch.js +0 -10
- package/dist/Table.css +0 -116
- package/dist/Table.js +0 -126
- package/dist/Tag.css +0 -17
- package/dist/Tag.js +0 -24
- package/dist/ThemeProvider.css +0 -39
- package/dist/ThemeProvider.js +0 -403
- package/dist/Toast.css +0 -622
- package/dist/Toast.js +0 -1401
- package/dist/Tooltip.css +0 -6
- package/dist/Tooltip.js +0 -36
- package/dist/Tour.css +0 -73
- package/dist/Tour.js +0 -54
- package/dist/Tree.js +0 -318
- package/dist/Truncate.css +0 -31
- package/dist/Truncate.js +0 -216
- package/dist/Upload.css +0 -144
- package/dist/Upload.js +0 -516
- package/dist/VerticalCollapsiblePanel.css +0 -193
- package/dist/VerticalCollapsiblePanel.js +0 -469
- package/dist/components/Badge/component.d.ts +0 -4
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumb/component.d.ts +0 -6
- package/dist/components/Breadcrumb/index.d.ts +0 -2
- package/dist/components/Breadcrumb/types.d.ts +0 -18
- package/dist/components/Breadcrumb/useItemRender.d.ts +0 -6
- package/dist/components/Button/component.d.ts +0 -8
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/component.d.ts +0 -11
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/CodeBlock/component.d.ts +0 -3
- package/dist/components/CodeBlock/index.d.ts +0 -2
- package/dist/components/CodeBlock/types.d.ts +0 -59
- package/dist/components/Collapse/component.d.ts +0 -14
- package/dist/components/Collapse/index.d.ts +0 -1
- package/dist/components/DSRoot/component.d.ts +0 -14
- package/dist/components/DSRoot/context.d.ts +0 -7
- package/dist/components/DSRoot/index.d.ts +0 -1
- package/dist/components/DropdownMenu/component.d.ts +0 -31
- package/dist/components/DropdownMenu/index.d.ts +0 -2
- package/dist/components/Empty/component.d.ts +0 -13
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/Field/component.d.ts +0 -42
- package/dist/components/Field/index.d.ts +0 -1
- package/dist/components/Form/component.d.ts +0 -19
- package/dist/components/Form/index.d.ts +0 -1
- package/dist/components/Form/item.d.ts +0 -5
- package/dist/components/IconButton/component.d.ts +0 -30
- package/dist/components/IconButton/index.d.ts +0 -1
- package/dist/components/Input/component.d.ts +0 -30
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -84
- package/dist/components/Modal/ModalProvider.d.ts +0 -5
- package/dist/components/Modal/ModalService.d.ts +0 -33
- package/dist/components/Modal/constants.d.ts +0 -9
- package/dist/components/Modal/functions.d.ts +0 -27
- package/dist/components/Modal/index.d.ts +0 -15
- package/dist/components/Popover/component.d.ts +0 -9
- package/dist/components/Popover/index.d.ts +0 -1
- package/dist/components/PopupPanel/component.d.ts +0 -61
- package/dist/components/PopupPanel/constants.d.ts +0 -7
- package/dist/components/PopupPanel/index.d.ts +0 -1
- package/dist/components/Radio/component.d.ts +0 -8
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/interface.d.ts +0 -5
- package/dist/components/ScrollArea/component.d.ts +0 -32
- package/dist/components/ScrollArea/index.d.ts +0 -1
- package/dist/components/Segmented/component.d.ts +0 -10
- package/dist/components/Segmented/index.d.ts +0 -1
- package/dist/components/Select/component.d.ts +0 -24
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Slider/component.d.ts +0 -5
- package/dist/components/Slider/index.d.ts +0 -1
- package/dist/components/Spin/component.d.ts +0 -4
- package/dist/components/Spin/index.d.ts +0 -1
- package/dist/components/Splitter/component.d.ts +0 -13
- package/dist/components/Splitter/index.d.ts +0 -1
- package/dist/components/Stack/Stack.d.ts +0 -39
- package/dist/components/Stack/StackChild.d.ts +0 -30
- package/dist/components/Stack/index.d.ts +0 -8
- package/dist/components/Switch/component.d.ts +0 -9
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Table/component.d.ts +0 -20
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Tag/component.d.ts +0 -12
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/ThemeProvider/component.d.ts +0 -7
- package/dist/components/ThemeProvider/index.d.ts +0 -1
- package/dist/components/Toast/component.d.ts +0 -15
- package/dist/components/Toast/function.d.ts +0 -10
- package/dist/components/Toast/index.d.ts +0 -3
- package/dist/components/Toast/types.d.ts +0 -3
- package/dist/components/Tooltip/component.d.ts +0 -10
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/Tour/component.d.ts +0 -8
- package/dist/components/Tour/index.d.ts +0 -1
- package/dist/components/Transition/component.d.ts +0 -17
- package/dist/components/Transition/index.d.ts +0 -1
- package/dist/components/Tree/components.d.ts +0 -13
- package/dist/components/Tree/helpers.d.ts +0 -4
- package/dist/components/Tree/index.d.ts +0 -4
- package/dist/components/Tree/types.d.ts +0 -55
- package/dist/components/Tree/useTreeCommon.d.ts +0 -178
- package/dist/components/Tree/useUniqueKeysTree.d.ts +0 -33
- package/dist/components/Truncate/component.d.ts +0 -15
- package/dist/components/Truncate/helpers.d.ts +0 -5
- package/dist/components/Truncate/index.d.ts +0 -1
- package/dist/components/Upload/component.d.ts +0 -16
- package/dist/components/Upload/dragger.d.ts +0 -13
- package/dist/components/Upload/hooks.d.ts +0 -5
- package/dist/components/Upload/index.d.ts +0 -4
- package/dist/components/Upload/item.d.ts +0 -11
- package/dist/components/Upload/utils.d.ts +0 -1
- package/dist/components/VerticalCollapsiblePanel/component.d.ts +0 -65
- package/dist/components/VerticalCollapsiblePanel/index.d.ts +0 -1
- package/dist/components/hooks/antd.d.ts +0 -11
- package/dist/components/hooks/base-ui.d.ts +0 -7
- package/dist/components/hooks/index.d.ts +0 -4
- package/dist/components/hooks/useCharts.d.ts +0 -22
- package/dist/components/hooks/useControlledState.d.ts +0 -1
- package/dist/components/index.d.ts +0 -41
- package/dist/components/utils/WithAntdTokens.d.ts +0 -7
- package/dist/components/utils/antdUtils.d.ts +0 -15
- package/dist/components/utils/client.d.ts +0 -2
- package/dist/components/utils/cn.d.ts +0 -4
- package/dist/components/utils/index.d.ts +0 -3
- package/dist/components/utils/isTracebackError.d.ts +0 -1
- package/dist/components/utils/main.d.ts +0 -3
- package/dist/components/utils/reactToString.d.ts +0 -2
- package/dist/components/utils/types.d.ts +0 -9
- package/dist/hooks.js +0 -961
- package/dist/index.css +0 -1471
- package/dist/metadata.d.ts +0 -363
- package/dist/tokens/and-theme/index.d.ts +0 -1
- package/dist/tokens/and-theme/tokens.d.ts +0 -5
- package/dist/tokens/charts/index.d.ts +0 -6
- package/dist/tokens/charts/tokens.d.ts +0 -455
- package/dist/tokens/index.d.ts +0 -2
- package/dist/tokens/utils.d.ts +0 -16
- package/dist/utils.js +0 -120
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type BreadcrumbProps as AntBreadcrumbProps, type BreadcrumbItemProps as AntBreadcrumbItemProps } from "antd/es/breadcrumb";
|
|
2
|
-
import { type BreadcrumbItemType as AntdBreadcrumbItemType, type BreadcrumbSeparatorType } from "antd/es/breadcrumb/Breadcrumb";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
type AnyObject = Record<PropertyKey, any>;
|
|
5
|
-
type BaseBreadcrumbItemType = AntdBreadcrumbItemType & {
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export type BreadcrumbItemType = Partial<BaseBreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
9
|
-
export interface BreadcrumbProps<T extends AnyObject = AnyObject> extends Omit<AntBreadcrumbProps<T>, "items" | "itemRender"> {
|
|
10
|
-
/**
|
|
11
|
-
* No wrap
|
|
12
|
-
*/
|
|
13
|
-
noWrap?: boolean;
|
|
14
|
-
items: BreadcrumbItemType[];
|
|
15
|
-
itemRender?: (route: BreadcrumbItemType, params: T, routes: BreadcrumbItemType[], paths: string[]) => React.ReactNode;
|
|
16
|
-
}
|
|
17
|
-
export interface BreadcrumbItemProps extends AntBreadcrumbItemProps {
|
|
18
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BreadcrumbProps } from "./types";
|
|
2
|
-
type AddParameters<TFunction extends (...args: any) => any, TParameters extends [...args: any]> = (...args: [...Parameters<TFunction>, ...TParameters]) => ReturnType<TFunction>;
|
|
3
|
-
type ItemRender = NonNullable<BreadcrumbProps["itemRender"]>;
|
|
4
|
-
type InternalItemRenderParams = AddParameters<ItemRender, [href?: string]>;
|
|
5
|
-
export default function useItemRender(prefixCls: string, itemRender?: ItemRender): InternalItemRenderParams;
|
|
6
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps as AntdButtonProps } from "antd/es/button";
|
|
2
|
-
import "./style.css";
|
|
3
|
-
export type ButtonProps = AntdButtonProps;
|
|
4
|
-
declare const ButtonInner: ({ style, ...rest }: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const Button: (props: ButtonProps & {
|
|
6
|
-
ref?: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>;
|
|
7
|
-
}) => ReturnType<typeof ButtonInner>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Checkbox as AntCheckbox, type CheckboxProps as AntCheckboxProps } from "antd";
|
|
2
|
-
import "./style.css";
|
|
3
|
-
export interface CheckboxProps extends AntCheckboxProps {
|
|
4
|
-
}
|
|
5
|
-
declare const MainCheckboxInner: (props: CheckboxProps, ref: React.Ref<React.ComponentRef<typeof AntCheckbox>>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const Checkbox: ((props: CheckboxProps & {
|
|
7
|
-
ref?: React.ForwardedRef<React.ComponentRef<typeof AntCheckbox>>;
|
|
8
|
-
}) => ReturnType<typeof MainCheckboxInner>) & {
|
|
9
|
-
Group: <T = any>(props: import("antd/es/checkbox").CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { CodeBlockProps } from "./types";
|
|
2
|
-
import "./style.css";
|
|
3
|
-
export declare const CodeBlock: ({ code, children, lang: defaultLang, className, options, activeOption: controlledActiveOption, defaultActiveOption, onActiveOptionChange, copyText, copySuccessText, classNames, maxHeight, ...rest }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { HighlightProps } from "prism-react-renderer";
|
|
2
|
-
export interface CodeOption {
|
|
3
|
-
label: string;
|
|
4
|
-
code: string;
|
|
5
|
-
lang?: HighlightProps["language"];
|
|
6
|
-
}
|
|
7
|
-
export interface CodeBlockProps extends React.ComponentPropsWithRef<"div"> {
|
|
8
|
-
/**
|
|
9
|
-
* The code to be highlighted
|
|
10
|
-
*/
|
|
11
|
-
code?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The language of the code
|
|
14
|
-
* @default "tsx"
|
|
15
|
-
*/
|
|
16
|
-
lang?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Additional class name for the component
|
|
19
|
-
*/
|
|
20
|
-
className?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Options for the code block
|
|
23
|
-
* @default []
|
|
24
|
-
*/
|
|
25
|
-
options?: CodeOption[];
|
|
26
|
-
/**
|
|
27
|
-
* The active option when the component is controlled
|
|
28
|
-
*/
|
|
29
|
-
activeOption?: number;
|
|
30
|
-
/**
|
|
31
|
-
* The default active option when the component is uncontrolled
|
|
32
|
-
* @default 0
|
|
33
|
-
*/
|
|
34
|
-
defaultActiveOption?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Callback function when the active option changes
|
|
37
|
-
*/
|
|
38
|
-
onActiveOptionChange?: (option: number) => void;
|
|
39
|
-
/**
|
|
40
|
-
* Copy text label
|
|
41
|
-
*/
|
|
42
|
-
copyText?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Copy success text label
|
|
45
|
-
*/
|
|
46
|
-
copySuccessText?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Custom class names for each part of the code block
|
|
49
|
-
*/
|
|
50
|
-
classNames?: {
|
|
51
|
-
root?: string;
|
|
52
|
-
content?: string;
|
|
53
|
-
header?: string;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Maximum height of the code block
|
|
57
|
-
*/
|
|
58
|
-
maxHeight?: string | number;
|
|
59
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type CollapseProps as AntCollapseProps, type CollapsePanelProps as AntCollapsePanelProps } from "antd";
|
|
2
|
-
import { type ForwardedRef } from "react";
|
|
3
|
-
import "./style.css";
|
|
4
|
-
export interface CollapseProps extends AntCollapseProps {
|
|
5
|
-
}
|
|
6
|
-
export interface CollapsePanelProps extends AntCollapsePanelProps {
|
|
7
|
-
}
|
|
8
|
-
declare const CollapseInner: (props: CollapseProps, ref: ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const Collapse: ((props: CollapseProps & {
|
|
10
|
-
ref?: React.ForwardedRef<HTMLDivElement>;
|
|
11
|
-
}) => ReturnType<typeof CollapseInner>) & {
|
|
12
|
-
Panel: (props: CollapsePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ThemeProviderProps } from "../ThemeProvider/component";
|
|
2
|
-
import "./style.css";
|
|
3
|
-
export interface DSRootProps extends ThemeProviderProps {
|
|
4
|
-
/**
|
|
5
|
-
* Classname passed to App component
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Element to which the theme classes are appended
|
|
10
|
-
* @default "html"
|
|
11
|
-
*/
|
|
12
|
-
appendClassesTo?: string | HTMLElement;
|
|
13
|
-
}
|
|
14
|
-
export declare const DSRoot: ({ className, appendClassesTo, children, theme, ...props }: DSRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Menu } from "@base-ui-components/react/menu";
|
|
2
|
-
import { type PopoverProps } from "antd/es/popover";
|
|
3
|
-
import "./style.css";
|
|
4
|
-
export type DropdownMenuItemType = {
|
|
5
|
-
type: "item";
|
|
6
|
-
label?: React.ReactNode;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
icon?: React.ReactNode;
|
|
9
|
-
key: React.Key;
|
|
10
|
-
onClick?: React.HTMLAttributes<HTMLElement>["onClick"];
|
|
11
|
-
onMouseEnter?: React.HTMLAttributes<HTMLElement>["onMouseEnter"];
|
|
12
|
-
onMouseLeave?: React.HTMLAttributes<HTMLElement>["onMouseLeave"];
|
|
13
|
-
onMouseOver?: React.HTMLAttributes<HTMLElement>["onMouseOver"];
|
|
14
|
-
onMouseOut?: React.HTMLAttributes<HTMLElement>["onMouseOut"];
|
|
15
|
-
danger?: boolean;
|
|
16
|
-
ref?: React.Ref<HTMLElement>;
|
|
17
|
-
} | {
|
|
18
|
-
type: "divider";
|
|
19
|
-
} | {
|
|
20
|
-
type: "header";
|
|
21
|
-
title?: React.ReactNode;
|
|
22
|
-
};
|
|
23
|
-
export interface DropdownMenuProps {
|
|
24
|
-
items: DropdownMenuItemType[];
|
|
25
|
-
children?: React.ComponentProps<typeof Menu.Trigger>["render"];
|
|
26
|
-
placement?: PopoverProps["placement"];
|
|
27
|
-
openOnHover?: boolean;
|
|
28
|
-
open?: boolean;
|
|
29
|
-
onOpenChange?: (open: boolean) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const DropdownMenu: ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type EmptyProps as AntEmptyProps } from "antd/es/empty";
|
|
3
|
-
import "./style.css";
|
|
4
|
-
export interface EmptyProps extends AntEmptyProps {
|
|
5
|
-
/**
|
|
6
|
-
* Empty icon size
|
|
7
|
-
* @default 'medium'
|
|
8
|
-
*/
|
|
9
|
-
size?: "small" | "medium" | "large";
|
|
10
|
-
}
|
|
11
|
-
export declare const EmptyIcon: React.FC<React.ComponentPropsWithRef<"svg">>;
|
|
12
|
-
export declare const Empty: ({ image, size, className, ...rest }: EmptyProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default Empty;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { InputProps, InputRef, SelectProps } from "antd";
|
|
2
|
-
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
3
|
-
import { RefSelectProps } from "antd/es/select";
|
|
4
|
-
import { ForwardedRef } from "react";
|
|
5
|
-
import "./style.css";
|
|
6
|
-
export type FieldType = "input" | "select";
|
|
7
|
-
type RefType<T extends FieldType> = T extends "input" ? InputRef : T extends "select" ? RefSelectProps : never;
|
|
8
|
-
interface BaseFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Block or inline display
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
block?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Size of the field
|
|
17
|
-
* @default "small"
|
|
18
|
-
*/
|
|
19
|
-
size?: SizeType;
|
|
20
|
-
/**
|
|
21
|
-
* Colon after label
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
|
-
colon?: boolean;
|
|
25
|
-
}
|
|
26
|
-
type InputFieldProps = BaseFieldProps & {
|
|
27
|
-
type?: "input";
|
|
28
|
-
inputProps: InputProps;
|
|
29
|
-
};
|
|
30
|
-
type SelectFieldProps = BaseFieldProps & {
|
|
31
|
-
type: "select";
|
|
32
|
-
selectProps: SelectProps;
|
|
33
|
-
};
|
|
34
|
-
export type FieldProps<T extends FieldType = "input"> = T extends "input" ? InputFieldProps : SelectFieldProps;
|
|
35
|
-
/**
|
|
36
|
-
* Generic Field component that forwards ref to Input or Select
|
|
37
|
-
*/
|
|
38
|
-
declare const FieldInner: <T extends FieldType>({ label, className, size, colon, type, ...rest }: FieldProps<T>, ref: ForwardedRef<RefType<T>>) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
export declare const Field: <T extends FieldType>(props: FieldProps<T> & {
|
|
40
|
-
ref?: ForwardedRef<RefType<T>>;
|
|
41
|
-
}) => ReturnType<typeof FieldInner<T>>;
|
|
42
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FormProps as AntdFormProps, default as AntdInternalForm, useForm, useWatch } from "antd/es/form/Form";
|
|
2
|
-
import useFormInstance from "antd/es/form/hooks/useFormInstance";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { type FormItemProps } from "./item";
|
|
5
|
-
import "./style.css";
|
|
6
|
-
export interface FormProps<Values = any> extends AntdFormProps<Values> {
|
|
7
|
-
}
|
|
8
|
-
interface InternalFormProps<Values = any> extends React.ComponentProps<typeof AntdInternalForm<Values>> {
|
|
9
|
-
}
|
|
10
|
-
export declare const Form: (<Values = any>({ ...rest }: InternalFormProps<Values>) => import("react/jsx-runtime").JSX.Element) & {
|
|
11
|
-
useForm: typeof useForm;
|
|
12
|
-
useFormInstance: typeof useFormInstance;
|
|
13
|
-
useWatch: typeof useWatch;
|
|
14
|
-
Item: <Values = unknown>({ tooltip, label, optionalMark, ...rest }: FormItemProps<Values>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
List: React.FC<import("antd/es/form/FormList").FormListProps>;
|
|
16
|
-
ErrorList: React.FC<import("antd/es/form/ErrorList").ErrorListProps>;
|
|
17
|
-
Provider: React.FC<import("antd/es/form/context").FormProviderProps>;
|
|
18
|
-
};
|
|
19
|
-
export type { FormItemProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type FormItemProps as AntdFormItemProps } from "antd/es/form/FormItem";
|
|
2
|
-
export interface FormItemProps<Values = unknown> extends AntdFormItemProps<Values> {
|
|
3
|
-
optionalMark?: boolean | React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const FormItem: <Values = unknown>({ tooltip, label, optionalMark, ...rest }: FormItemProps<Values>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { type ElementType, type ComponentPropsWithoutRef, type ReactElement, type AnchorHTMLAttributes, ComponentPropsWithRef } from "react";
|
|
2
|
-
import { Tooltip } from "antd";
|
|
3
|
-
import "./style.css";
|
|
4
|
-
type IconButtonBaseProps = {
|
|
5
|
-
label?: React.ReactNode;
|
|
6
|
-
size?: "small" | "medium";
|
|
7
|
-
negativeMargin?: boolean;
|
|
8
|
-
tooltipProps?: React.ComponentProps<typeof Tooltip>;
|
|
9
|
-
};
|
|
10
|
-
type AnchorSpecificProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "rel" | "download" | "hrefLang" | "referrerPolicy">;
|
|
11
|
-
type WithHrefProps<E extends ElementType = "a"> = IconButtonBaseProps & {
|
|
12
|
-
href: string;
|
|
13
|
-
as?: E;
|
|
14
|
-
} & AnchorSpecificProps;
|
|
15
|
-
type WithoutHrefProps<E extends ElementType = "button"> = IconButtonBaseProps & {
|
|
16
|
-
href?: undefined;
|
|
17
|
-
as?: E;
|
|
18
|
-
} & {
|
|
19
|
-
[K in keyof AnchorSpecificProps]?: never;
|
|
20
|
-
};
|
|
21
|
-
type IconButtonOwnProps<E extends ElementType = ElementType> = WithHrefProps<E> | WithoutHrefProps<E>;
|
|
22
|
-
export type IconButtonProps<E extends ElementType = "button"> = IconButtonOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, keyof IconButtonOwnProps<E>>;
|
|
23
|
-
/**
|
|
24
|
-
* Type for wrapping the forwardRef implementation
|
|
25
|
-
*/
|
|
26
|
-
type IconButtonComponent = <E extends ElementType = "button">(props: IconButtonProps<E> & {
|
|
27
|
-
ref?: ComponentPropsWithRef<E>["ref"];
|
|
28
|
-
}) => ReactElement;
|
|
29
|
-
export declare const IconButton: IconButtonComponent;
|
|
30
|
-
export default IconButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type InputProps as AntInputProps, type InputRef } from "antd";
|
|
2
|
-
import { type PasswordProps as AntPasswordProps } from "antd/es/input";
|
|
3
|
-
import { type SearchProps as AntSearchProps } from "antd/es/input";
|
|
4
|
-
import { type TextAreaProps as AntTextAreaProps } from "antd/es/input";
|
|
5
|
-
export interface InputProps extends AntInputProps {
|
|
6
|
-
}
|
|
7
|
-
export interface PasswordProps extends AntPasswordProps {
|
|
8
|
-
}
|
|
9
|
-
export interface TextAreaProps extends AntTextAreaProps {
|
|
10
|
-
}
|
|
11
|
-
export interface SearchProps extends AntSearchProps {
|
|
12
|
-
}
|
|
13
|
-
declare const MainInputInner: (props: InputProps, ref: React.Ref<InputRef>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare const PasswordInner: (props: PasswordProps, ref: React.Ref<InputRef>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare const SearchInner: (props: SearchProps, ref: React.Ref<InputRef>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare const TextAreaInner: (props: TextAreaProps, ref: React.Ref<HTMLTextAreaElement>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare const Input: ((props: InputProps & {
|
|
18
|
-
ref?: React.ForwardedRef<InputRef>;
|
|
19
|
-
}) => ReturnType<typeof MainInputInner>) & {
|
|
20
|
-
Password: (props: PasswordProps & {
|
|
21
|
-
ref?: React.ForwardedRef<InputRef>;
|
|
22
|
-
}) => ReturnType<typeof PasswordInner>;
|
|
23
|
-
Search: (props: SearchProps & {
|
|
24
|
-
ref?: React.ForwardedRef<InputRef>;
|
|
25
|
-
}) => ReturnType<typeof SearchInner>;
|
|
26
|
-
TextArea: (props: TextAreaProps & {
|
|
27
|
-
ref?: React.ForwardedRef<HTMLTextAreaElement>;
|
|
28
|
-
}) => ReturnType<typeof TextAreaInner>;
|
|
29
|
-
};
|
|
30
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { type ModalProps as AntModalProps } from "antd/es/modal";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ModalType } from "./functions";
|
|
4
|
-
export interface ModalProps extends Omit<AntModalProps, "centered"> {
|
|
5
|
-
/**
|
|
6
|
-
* Predefined sizes for the modal
|
|
7
|
-
* - xsmall: 400px
|
|
8
|
-
* - small: 520px
|
|
9
|
-
* - medium: 640px (default)
|
|
10
|
-
* - large: 840px
|
|
11
|
-
* - xlarge: 1024px
|
|
12
|
-
* - fullscreen: 100vw (takes full screen width with margins)
|
|
13
|
-
* @default "medium" for default type, "xsmall" for other types
|
|
14
|
-
*/
|
|
15
|
-
size?: "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "fullscreen";
|
|
16
|
-
/**
|
|
17
|
-
* Mark modal as loading
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
loading?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Hide Ok button
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
hideOkButton?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Hide Cancel button
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
hideCancelButton?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Custom Content Padding
|
|
33
|
-
* @default "24px"
|
|
34
|
-
*/
|
|
35
|
-
contentPadding?: number | string | boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Add more content below the title
|
|
38
|
-
*/
|
|
39
|
-
afterTitle?: React.ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* Add more actions before close button
|
|
42
|
-
*/
|
|
43
|
-
beforeCloseButton?: React.ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Add more actions after close button
|
|
46
|
-
*/
|
|
47
|
-
afterCloseButton?: React.ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* Set header and footer to fixed position
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
defaultFixedHeaderFooter?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Centered Modal
|
|
55
|
-
* @default true
|
|
56
|
-
*/
|
|
57
|
-
centered?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Modal type
|
|
60
|
-
* @default "default"
|
|
61
|
-
*/
|
|
62
|
-
type?: ModalType;
|
|
63
|
-
/**
|
|
64
|
-
* Default open state for uncontrolled modal
|
|
65
|
-
* @default true
|
|
66
|
-
*/
|
|
67
|
-
defaultOpen?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Modal background
|
|
70
|
-
* @default "elevated" if size smaller than "medium", otherwise "container"
|
|
71
|
-
*/
|
|
72
|
-
background?: "elevated" | "container";
|
|
73
|
-
/**
|
|
74
|
-
* Modal old close callback
|
|
75
|
-
* @deprecated use onCancel instead
|
|
76
|
-
*/
|
|
77
|
-
onClose?: () => void;
|
|
78
|
-
/**
|
|
79
|
-
* Make modal body scrollable
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
bodyScrollable?: boolean;
|
|
83
|
-
}
|
|
84
|
-
export declare const Modal: ({ open: externalOpen, closeIcon, children, size: sizeProp, footer, width, style, styles, classNames, okButtonProps, cancelButtonProps, loading, onOk, onCancel, okText, okType, confirmLoading, cancelText, hideOkButton, hideCancelButton, contentPadding, title, afterTitle, beforeCloseButton, afterCloseButton, defaultFixedHeaderFooter, centered, type, defaultOpen, background: backgroundProp, bodyScrollable, ...rest }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { ModalFuncProps } from "./functions";
|
|
2
|
-
export type ModalConfig = ModalFuncProps & {
|
|
3
|
-
id: string;
|
|
4
|
-
trigger?: HTMLElement;
|
|
5
|
-
};
|
|
6
|
-
export type UpdateConfig = Partial<ModalFuncProps> | ((prev: ModalFuncProps) => ModalFuncProps);
|
|
7
|
-
export type ModalEvent = {
|
|
8
|
-
type: "add";
|
|
9
|
-
payload: ModalConfig;
|
|
10
|
-
} | {
|
|
11
|
-
type: "update";
|
|
12
|
-
payload: {
|
|
13
|
-
id: string;
|
|
14
|
-
config: UpdateConfig;
|
|
15
|
-
};
|
|
16
|
-
} | {
|
|
17
|
-
type: "destroy";
|
|
18
|
-
payload: {
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
} | {
|
|
22
|
-
type: "destroyAll";
|
|
23
|
-
};
|
|
24
|
-
type Listener = (event: ModalEvent) => void;
|
|
25
|
-
declare class ModalManager {
|
|
26
|
-
private listeners;
|
|
27
|
-
private counter;
|
|
28
|
-
subscribe(listener: Listener): () => void;
|
|
29
|
-
emit(event: ModalEvent): void;
|
|
30
|
-
generateId(): string;
|
|
31
|
-
}
|
|
32
|
-
export declare const modalManager: ModalManager;
|
|
33
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { ModalFuncProps as AntModalFuncProps } from "antd";
|
|
3
|
-
import { ModalProps } from "./Modal";
|
|
4
|
-
export type ModalType = NonNullable<AntModalFuncProps["type"]> | "default";
|
|
5
|
-
export type ModalFuncProps = ModalProps & {
|
|
6
|
-
/**
|
|
7
|
-
* Content to be displayed in the modal
|
|
8
|
-
* Similar to children prop in Modal component
|
|
9
|
-
* Keep this to be compatible with antd ModalFuncProps
|
|
10
|
-
*/
|
|
11
|
-
content?: React.ReactNode;
|
|
12
|
-
};
|
|
13
|
-
export type ModalUpdateConfig = Partial<ModalFuncProps> | ((prev: ModalFuncProps) => ModalFuncProps);
|
|
14
|
-
export interface ModalRef {
|
|
15
|
-
update: (config: ModalUpdateConfig) => void;
|
|
16
|
-
destroy: () => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const confirm: (config: ModalFuncProps) => ModalRef;
|
|
19
|
-
export declare const info: (config: ModalFuncProps) => ModalRef;
|
|
20
|
-
export declare const success: (config: ModalFuncProps) => ModalRef;
|
|
21
|
-
export declare const error: (config: ModalFuncProps) => ModalRef;
|
|
22
|
-
export declare const warning: (config: ModalFuncProps) => ModalRef;
|
|
23
|
-
/**
|
|
24
|
-
* Open a default (normal) modal
|
|
25
|
-
*/
|
|
26
|
-
export declare const open: (config: ModalFuncProps) => ModalRef;
|
|
27
|
-
export declare const destroyAll: () => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ModalFuncProps } from "./functions";
|
|
2
|
-
import { type ModalProviderProps } from "./ModalProvider";
|
|
3
|
-
import "./style.css";
|
|
4
|
-
export declare const Modal: (({ open: externalOpen, closeIcon, children, size: sizeProp, footer, width, style, styles, classNames, okButtonProps, cancelButtonProps, loading, onOk, onCancel, okText, okType, confirmLoading, cancelText, hideOkButton, hideCancelButton, contentPadding, title, afterTitle, beforeCloseButton, afterCloseButton, defaultFixedHeaderFooter, centered, type, defaultOpen, background: backgroundProp, bodyScrollable, ...rest }: import("./Modal").ModalProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
5
|
-
Provider: import("react").FC<ModalProviderProps>;
|
|
6
|
-
open: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
7
|
-
info: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
8
|
-
success: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
9
|
-
error: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
10
|
-
warning: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
11
|
-
confirm: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
12
|
-
destroyAll: () => void;
|
|
13
|
-
useModal: () => import("antd/es/modal/useModal").HookAPI;
|
|
14
|
-
};
|
|
15
|
-
export { ModalFuncProps, ModalProviderProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PopoverProps as AntPopoverProps } from "antd/es/popover";
|
|
2
|
-
export interface PopoverProps extends AntPopoverProps {
|
|
3
|
-
/**
|
|
4
|
-
* Arrow config for of the popover
|
|
5
|
-
* @default false
|
|
6
|
-
*/
|
|
7
|
-
arrow?: AntPopoverProps["arrow"];
|
|
8
|
-
}
|
|
9
|
-
export declare const Popover: ({ className, style, arrow, ...rest }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Popover } from "@base-ui-components/react/popover";
|
|
2
|
-
import { type PopoverProps } from "antd/es/popover";
|
|
3
|
-
import { PopupPanelSize } from "./constants";
|
|
4
|
-
import "./style.css";
|
|
5
|
-
export interface PopupPanelProps extends Omit<React.ComponentPropsWithRef<"div">, "title" | "content" | "children"> {
|
|
6
|
-
/** The trigger element that opens the popup panel */
|
|
7
|
-
children?: React.ComponentProps<typeof Popover.Trigger>["render"];
|
|
8
|
-
/** Placement of the popup panel relative to its trigger */
|
|
9
|
-
placement?: PopoverProps["placement"];
|
|
10
|
-
/** Whether to open the popup panel on hover */
|
|
11
|
-
openOnHover?: boolean;
|
|
12
|
-
/** Controls the open state of the popup panel */
|
|
13
|
-
open?: boolean;
|
|
14
|
-
/** Callback fired when the open state changes */
|
|
15
|
-
onOpenChange?: (open: boolean) => void;
|
|
16
|
-
/** Content to display inside the popup panel */
|
|
17
|
-
content?: React.ReactNode;
|
|
18
|
-
/** Title text or element to display in the panel header */
|
|
19
|
-
title?: React.ReactNode;
|
|
20
|
-
/** The event that triggers the popup panel */
|
|
21
|
-
/**
|
|
22
|
-
* @default "click"
|
|
23
|
-
*/
|
|
24
|
-
trigger?: "click" | "hover";
|
|
25
|
-
/** Custom anchor element for positioning the panel */
|
|
26
|
-
anchor?: Popover.Positioner.Props["anchor"];
|
|
27
|
-
/** Content to display before the close button */
|
|
28
|
-
beforeCloseButton?: React.ReactNode;
|
|
29
|
-
/** Content to display after the close button */
|
|
30
|
-
afterCloseButton?: React.ReactNode;
|
|
31
|
-
/** Content to display after the title */
|
|
32
|
-
afterTitle?: React.ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Predefined sizes for the popup panel
|
|
35
|
-
* - xsmall: 320px
|
|
36
|
-
* - small: 400px
|
|
37
|
-
* - medium: 480px (default)
|
|
38
|
-
* - large: 640px
|
|
39
|
-
* - xlarge: 840px
|
|
40
|
-
* @default "medium" for default type, "xsmall" for other types
|
|
41
|
-
*/
|
|
42
|
-
size?: keyof typeof PopupPanelSize;
|
|
43
|
-
/**
|
|
44
|
-
* Footer content for the popup panel
|
|
45
|
-
* Can be a React node or a function that returns a React node
|
|
46
|
-
*/
|
|
47
|
-
footer?: React.ReactNode | ((props: {
|
|
48
|
-
close: () => void;
|
|
49
|
-
}) => React.ReactNode);
|
|
50
|
-
/**
|
|
51
|
-
* Whether the panel should be open by default when uncontrolled
|
|
52
|
-
* @default false
|
|
53
|
-
*/
|
|
54
|
-
defaultOpen?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Whether the panel should be resizable
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
resizable?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, }: PopupPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|