@bioturing/components 0.14.1 → 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 -2
- package/dist/index.js +188 -3376
- 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 -4
- 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.js +0 -41
- package/dist/Breadcrumb.js +0 -92
- package/dist/Checkbox.js +0 -12
- package/dist/CodeBlock.js +0 -641
- package/dist/Collapse.js +0 -49
- package/dist/DSRoot.js +0 -1181
- package/dist/DropdownMenu.js +0 -211
- package/dist/Empty.js +0 -53
- package/dist/Field.js +0 -66
- package/dist/Form.js +0 -125
- package/dist/IconButton.js +0 -82
- package/dist/Input.js +0 -48
- package/dist/Modal.js +0 -430
- package/dist/Popover.js +0 -10
- package/dist/PopupPanel.css +0 -116
- package/dist/PopupPanel.js +0 -333
- package/dist/Radio.js +0 -24
- package/dist/ScrollArea.js +0 -50
- package/dist/Segmented.js +0 -10
- package/dist/Select.js +0 -157
- package/dist/Slider.js +0 -39
- package/dist/Spin.js +0 -33
- package/dist/Splitter.js +0 -47
- package/dist/Switch.js +0 -10
- package/dist/Table.js +0 -126
- package/dist/Tag.js +0 -24
- package/dist/ThemeProvider.js +0 -403
- package/dist/Toast.js +0 -1154
- package/dist/Tooltip.js +0 -36
- package/dist/Tour.js +0 -54
- package/dist/Tree.js +0 -318
- package/dist/Truncate.js +0 -160
- package/dist/Upload.js +0 -460
- package/dist/VerticalCollapsiblePanel.js +0 -413
- package/dist/components/Badge/component.d.ts +0 -3
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumb/component.d.ts +0 -5
- 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 -7
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/component.d.ts +0 -10
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/CodeBlock/component.d.ts +0 -2
- package/dist/components/CodeBlock/index.d.ts +0 -2
- package/dist/components/CodeBlock/types.d.ts +0 -47
- package/dist/components/Collapse/component.d.ts +0 -13
- package/dist/components/Collapse/index.d.ts +0 -1
- package/dist/components/DSRoot/component.d.ts +0 -13
- 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 -30
- package/dist/components/DropdownMenu/index.d.ts +0 -2
- package/dist/components/Empty/component.d.ts +0 -12
- package/dist/components/Empty/index.d.ts +0 -1
- package/dist/components/Field/component.d.ts +0 -41
- package/dist/components/Field/index.d.ts +0 -1
- package/dist/components/Form/component.d.ts +0 -18
- 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 -29
- 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 -14
- 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 -7
- 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 -10
- package/dist/components/ScrollArea/index.d.ts +0 -1
- package/dist/components/Segmented/component.d.ts +0 -9
- package/dist/components/Segmented/index.d.ts +0 -1
- package/dist/components/Select/component.d.ts +0 -23
- 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 -3
- package/dist/components/Spin/index.d.ts +0 -1
- package/dist/components/Splitter/component.d.ts +0 -12
- package/dist/components/Splitter/index.d.ts +0 -1
- package/dist/components/Switch/component.d.ts +0 -8
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Table/component.d.ts +0 -19
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Tag/component.d.ts +0 -11
- package/dist/components/Tag/index.d.ts +0 -1
- package/dist/components/ThemeProvider/component.d.ts +0 -6
- package/dist/components/ThemeProvider/index.d.ts +0 -1
- package/dist/components/Toast/component.d.ts +0 -14
- 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 -9
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/Tour/component.d.ts +0 -7
- 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 -12
- 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 -3
- 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 -64
- 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 -40
- 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 -116
- package/dist/style.css +0 -1392
- package/dist/style.js +0 -0
- package/dist/tailwind.js +0 -0
- 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,41 +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
|
-
export type FieldType = "input" | "select";
|
|
6
|
-
type RefType<T extends FieldType> = T extends "input" ? InputRef : T extends "select" ? RefSelectProps : never;
|
|
7
|
-
interface BaseFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
label?: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Block or inline display
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
block?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Size of the field
|
|
16
|
-
* @default "small"
|
|
17
|
-
*/
|
|
18
|
-
size?: SizeType;
|
|
19
|
-
/**
|
|
20
|
-
* Colon after label
|
|
21
|
-
* @default true
|
|
22
|
-
*/
|
|
23
|
-
colon?: boolean;
|
|
24
|
-
}
|
|
25
|
-
type InputFieldProps = BaseFieldProps & {
|
|
26
|
-
type?: "input";
|
|
27
|
-
inputProps: InputProps;
|
|
28
|
-
};
|
|
29
|
-
type SelectFieldProps = BaseFieldProps & {
|
|
30
|
-
type: "select";
|
|
31
|
-
selectProps: SelectProps;
|
|
32
|
-
};
|
|
33
|
-
export type FieldProps<T extends FieldType = "input"> = T extends "input" ? InputFieldProps : SelectFieldProps;
|
|
34
|
-
/**
|
|
35
|
-
* Generic Field component that forwards ref to Input or Select
|
|
36
|
-
*/
|
|
37
|
-
declare const FieldInner: <T extends FieldType>({ label, className, size, colon, type, ...rest }: FieldProps<T>, ref: ForwardedRef<RefType<T>>) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export declare const Field: <T extends FieldType>(props: FieldProps<T> & {
|
|
39
|
-
ref?: ForwardedRef<RefType<T>>;
|
|
40
|
-
}) => ReturnType<typeof FieldInner<T>>;
|
|
41
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,18 +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
|
-
export interface FormProps<Values = any> extends AntdFormProps<Values> {
|
|
6
|
-
}
|
|
7
|
-
interface InternalFormProps<Values = any> extends React.ComponentProps<typeof AntdInternalForm<Values>> {
|
|
8
|
-
}
|
|
9
|
-
export declare const Form: (<Values = any>({ ...rest }: InternalFormProps<Values>) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
|
-
useForm: typeof useForm;
|
|
11
|
-
useFormInstance: typeof useFormInstance;
|
|
12
|
-
useWatch: typeof useWatch;
|
|
13
|
-
Item: <Values = unknown>({ tooltip, label, optionalMark, ...rest }: FormItemProps<Values>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
List: React.FC<import("antd/es/form/FormList").FormListProps>;
|
|
15
|
-
ErrorList: React.FC<import("antd/es/form/ErrorList").ErrorListProps>;
|
|
16
|
-
Provider: React.FC<import("antd/es/form/context").FormProviderProps>;
|
|
17
|
-
};
|
|
18
|
-
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,29 +0,0 @@
|
|
|
1
|
-
import React, { type ElementType, type ComponentPropsWithoutRef, type ReactElement, type AnchorHTMLAttributes, ComponentPropsWithRef } from "react";
|
|
2
|
-
import { Tooltip } from "antd";
|
|
3
|
-
type IconButtonBaseProps = {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
size?: "small" | "medium";
|
|
6
|
-
negativeMargin?: boolean;
|
|
7
|
-
tooltipProps?: React.ComponentProps<typeof Tooltip>;
|
|
8
|
-
};
|
|
9
|
-
type AnchorSpecificProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "rel" | "download" | "hrefLang" | "referrerPolicy">;
|
|
10
|
-
type WithHrefProps<E extends ElementType = "a"> = IconButtonBaseProps & {
|
|
11
|
-
href: string;
|
|
12
|
-
as?: E;
|
|
13
|
-
} & AnchorSpecificProps;
|
|
14
|
-
type WithoutHrefProps<E extends ElementType = "button"> = IconButtonBaseProps & {
|
|
15
|
-
href?: undefined;
|
|
16
|
-
as?: E;
|
|
17
|
-
} & {
|
|
18
|
-
[K in keyof AnchorSpecificProps]?: never;
|
|
19
|
-
};
|
|
20
|
-
type IconButtonOwnProps<E extends ElementType = ElementType> = WithHrefProps<E> | WithoutHrefProps<E>;
|
|
21
|
-
export type IconButtonProps<E extends ElementType = "button"> = IconButtonOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, keyof IconButtonOwnProps<E>>;
|
|
22
|
-
/**
|
|
23
|
-
* Type for wrapping the forwardRef implementation
|
|
24
|
-
*/
|
|
25
|
-
type IconButtonComponent = <E extends ElementType = "button">(props: IconButtonProps<E> & {
|
|
26
|
-
ref?: ComponentPropsWithRef<E>["ref"];
|
|
27
|
-
}) => ReactElement;
|
|
28
|
-
export declare const IconButton: IconButtonComponent;
|
|
29
|
-
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,14 +0,0 @@
|
|
|
1
|
-
import { type ModalFuncProps } from "./functions";
|
|
2
|
-
import { type ModalProviderProps } from "./ModalProvider";
|
|
3
|
-
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) & {
|
|
4
|
-
Provider: import("react").FC<ModalProviderProps>;
|
|
5
|
-
open: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
6
|
-
info: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
7
|
-
success: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
8
|
-
error: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
9
|
-
warning: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
10
|
-
confirm: (config: ModalFuncProps) => import("./functions").ModalRef;
|
|
11
|
-
destroyAll: () => void;
|
|
12
|
-
useModal: () => import("antd/es/modal/useModal").HookAPI;
|
|
13
|
-
};
|
|
14
|
-
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";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { RadioGroupProps } from "./interface";
|
|
2
|
-
export declare const Radio: import("react").ForwardRefExoticComponent<import("antd/es/radio").RadioProps & import("react").RefAttributes<import("antd/es/radio").RadioRef>> & {
|
|
3
|
-
Group: (props: RadioGroupProps & {
|
|
4
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
Button: import("react").ForwardRefExoticComponent<import("antd/es/radio").RadioProps & import("react").RefAttributes<import("antd/es/radio").RadioRef>>;
|
|
7
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { RadioProps as AntdRadioProps, RadioRef as AntdRadioRef, RadioGroupProps as AntdRadioGroupProps, RadioChangeEvent as AntdRadioChangeEvent } from "antd/es/radio";
|
|
2
|
-
export type RadioProps = AntdRadioProps;
|
|
3
|
-
export type RadioRef = AntdRadioRef;
|
|
4
|
-
export type RadioGroupProps = AntdRadioGroupProps;
|
|
5
|
-
export type RadioChangeEvent = AntdRadioChangeEvent;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface ScrollAreaProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
viewportClassName?: string;
|
|
6
|
-
scrollbarClassName?: string;
|
|
7
|
-
thumbClassName?: string;
|
|
8
|
-
orientation?: "vertical" | "horizontal";
|
|
9
|
-
}
|
|
10
|
-
export declare const ScrollArea: ({ children, className, viewportClassName, thumbClassName, scrollbarClassName, orientation, }: ScrollAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as AntSegmented, type SegmentedProps as AntSegmentedProps } from "antd/es/segmented";
|
|
2
|
-
export type RcSegmentedValue = string | number;
|
|
3
|
-
export interface SegmentedProps<T = RcSegmentedValue> extends AntSegmentedProps<T> {
|
|
4
|
-
}
|
|
5
|
-
declare const MainSegmentedInner: <T>({ className, ...rest }: SegmentedProps<T>, ref: React.Ref<React.ComponentRef<typeof AntSegmented>>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const Segmented: <T = RcSegmentedValue>(props: SegmentedProps<T> & {
|
|
7
|
-
ref?: React.Ref<React.ComponentRef<typeof AntSegmented>>;
|
|
8
|
-
}) => ReturnType<typeof MainSegmentedInner>;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as AntSelect, type BaseOptionType, type DefaultOptionType, type SelectProps as AntSelectProps } from "antd/es/select";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { PopupPanelSize } from "../PopupPanel/constants";
|
|
4
|
-
export interface SelectProps<ValueType = unknown, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends AntSelectProps<ValueType, OptionType> {
|
|
5
|
-
/**
|
|
6
|
-
* Whether to enhance the positioner using floating-ui
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
|
-
enhancePositioner?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Size of the popup panel
|
|
12
|
-
* Will be ignored if enhancePositioner is false
|
|
13
|
-
*/
|
|
14
|
-
popupSize?: string | number | PopupPanelSize;
|
|
15
|
-
}
|
|
16
|
-
export type { BaseOptionType as SelectBaseOptionType, DefaultOptionType as SelectDefaultOptionType, };
|
|
17
|
-
declare const MainSelectInner: <ValueType = unknown, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>({ mode, className, open: openProp, defaultOpen, onOpenChange, popupClassName, onDropdownVisibleChange, enhancePositioner, getPopupContainer, popupSize, popupRender, dropdownRender, classNames, styles, ...rest }: SelectProps<ValueType, OptionType>, ref: React.Ref<React.ComponentRef<typeof AntSelect>>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const Select: (<ValueType = unknown, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
|
|
19
|
-
ref?: React.ForwardedRef<React.ComponentRef<typeof AntSelect>>;
|
|
20
|
-
}) => ReturnType<typeof MainSelectInner>) & {
|
|
21
|
-
Option: import("rc-select/lib/Option").OptionFC;
|
|
22
|
-
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type SliderSingleProps, type SliderRangeProps } from "antd/es/slider";
|
|
2
|
-
export type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
3
|
-
export type { SliderSingleProps, SliderRangeProps };
|
|
4
|
-
declare const Slider: ({ className, tooltip, style, ...rest }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export { Slider };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { SplitterProps as AntdSplitterProps, PanelProps as AntdSplitterPanelProps } from "antd/es/splitter/interface";
|
|
3
|
-
export type SplitterProps = React.PropsWithChildren<AntdSplitterProps> & {
|
|
4
|
-
showSplitBar?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export type SplitterPanelProps = React.PropsWithChildren<AntdSplitterPanelProps>;
|
|
7
|
-
export declare const Splitter: React.FC<SplitterProps> & {
|
|
8
|
-
Panel: React.FC<SplitterPanelProps>;
|
|
9
|
-
};
|
|
10
|
-
export declare const Split: React.FC<SplitterProps> & {
|
|
11
|
-
Panel: React.FC<SplitterPanelProps>;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as AntSwitch, type SwitchProps as AntSwitchProps } from "antd/es/switch";
|
|
2
|
-
export interface SwitchProps extends AntSwitchProps {
|
|
3
|
-
}
|
|
4
|
-
declare const MainSwitchInner: ({ ...rest }: SwitchProps, ref: React.Ref<React.ComponentRef<typeof AntSwitch>>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const Switch: (props: SwitchProps & {
|
|
6
|
-
ref?: React.ForwardedRef<React.ComponentRef<typeof AntSwitch>>;
|
|
7
|
-
}) => ReturnType<typeof MainSwitchInner>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { default as AntTable, type TableProps as AntTableProps } from "antd/es/table";
|
|
2
|
-
export interface TableProps<RecordType extends object = object> extends AntTableProps<RecordType> {
|
|
3
|
-
/**
|
|
4
|
-
* Add empty description for the table
|
|
5
|
-
*/
|
|
6
|
-
emptyDescription?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const InternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, scroll, ...rest }: TableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const Table: typeof InternalTable & {
|
|
10
|
-
Column: typeof AntTable.Column;
|
|
11
|
-
ColumnGroup: typeof AntTable.ColumnGroup;
|
|
12
|
-
SELECTION_COLUMN: typeof AntTable.SELECTION_COLUMN;
|
|
13
|
-
EXPAND_COLUMN: typeof AntTable.EXPAND_COLUMN;
|
|
14
|
-
SELECTION_ALL: typeof AntTable.SELECTION_ALL;
|
|
15
|
-
SELECTION_INVERT: typeof AntTable.SELECTION_INVERT;
|
|
16
|
-
SELECTION_NONE: typeof AntTable.SELECTION_NONE;
|
|
17
|
-
Summary: typeof AntTable.Summary;
|
|
18
|
-
};
|
|
19
|
-
export default Table;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type TagProps as AntTagProps } from "antd/es/tag";
|
|
2
|
-
export interface TagProps extends AntTagProps {
|
|
3
|
-
/**
|
|
4
|
-
* Indicates if the tag is active
|
|
5
|
-
* @default false
|
|
6
|
-
*/
|
|
7
|
-
active?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const Tag: (({ className, active, color, style, closeIcon, closable, ...rest }: TagProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
|
-
CheckableTag: import("react").ForwardRefExoticComponent<import("antd/es/tag").CheckableTagProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ConfigProviderProps } from "antd/es/config-provider";
|
|
2
|
-
export interface ThemeProviderProps extends Omit<ConfigProviderProps, "theme" | "prefixCls"> {
|
|
3
|
-
theme: "light" | "dark";
|
|
4
|
-
appendClassesTo?: string | HTMLElement;
|
|
5
|
-
}
|
|
6
|
-
export declare const ThemeProvider: ({ theme, appendClassesTo, children, }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Toast as BaseToast } from "@base-ui-components/react";
|
|
2
|
-
import { ToastData } from "./types";
|
|
3
|
-
declare function InnerToast({ toast, }: {
|
|
4
|
-
toast: BaseToast.Root.ToastObject<ToastData>;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function ToastList({ className }: {
|
|
7
|
-
className?: string;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function ToastProvider(props: BaseToast.Provider.Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const Toast: typeof InnerToast & {
|
|
11
|
-
List: typeof ToastList;
|
|
12
|
-
Provider: typeof ToastProvider;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Toast as BaseToast } from "@base-ui-components/react";
|
|
2
|
-
import type { ToastData } from "./types";
|
|
3
|
-
export declare const toastManager: BaseToast.createToastManager.ToastManager;
|
|
4
|
-
export declare const toast: ((message: string, options?: Omit<BaseToast.useToastManager.AddOptions<ToastData>, "data" | "description">) => string) & {
|
|
5
|
-
info: (message: string, options?: Omit<BaseToast.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
|
|
6
|
-
success: (message: string, options?: Omit<BaseToast.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
|
|
7
|
-
error: (message: string, options?: Omit<BaseToast.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
|
|
8
|
-
warning: (message: string, options?: Omit<BaseToast.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
|
|
9
|
-
progress: (message: string, options?: Omit<BaseToast.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
|
|
10
|
-
};
|