@bioturing/components 0.20.0 → 0.20.2
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/code-block/component.js +12 -12
- package/dist/components/dropdown-menu/component.js +146 -130
- package/dist/components/dropdown-menu/component.js.map +1 -1
- package/dist/components/dropdown-menu/style.css +1 -1
- package/dist/components/form/item.js.map +1 -1
- package/dist/components/hooks/useCharts.js +23 -19
- package/dist/components/hooks/useCharts.js.map +1 -1
- package/dist/components/icon-button/component.js +38 -35
- package/dist/components/icon-button/component.js.map +1 -1
- package/dist/components/nav/group.js +24 -9
- package/dist/components/nav/group.js.map +1 -1
- package/dist/components/nav/item.js +2 -2
- package/dist/components/nav/item.js.map +1 -1
- package/dist/components/nav/style.css +1 -1
- package/dist/components/stack/StackChild.js +31 -34
- package/dist/components/stack/StackChild.js.map +1 -1
- package/dist/components/table/style.css +1 -1
- package/dist/components/utils/WithRenderProp.js +10 -9
- package/dist/components/utils/WithRenderProp.js.map +1 -1
- package/dist/components/utils/constants.js +10 -0
- package/dist/components/utils/constants.js.map +1 -0
- package/dist/index.d.ts +49 -45
- package/dist/index.js +163 -160
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { Alert } from 'antd';
|
|
|
5
5
|
import { AlertProps } from 'antd';
|
|
6
6
|
import { AliasToken } from 'antd/es/theme/internal';
|
|
7
7
|
import { Anchor } from 'antd';
|
|
8
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
9
8
|
import { AnchorLinkProps } from 'antd';
|
|
10
9
|
import { AnchorProps } from 'antd';
|
|
11
10
|
import { App } from 'antd';
|
|
@@ -265,8 +264,6 @@ export { AnchorLinkProps }
|
|
|
265
264
|
|
|
266
265
|
export { AnchorProps }
|
|
267
266
|
|
|
268
|
-
declare type AnchorSpecificProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "rel" | "download" | "hrefLang" | "referrerPolicy">;
|
|
269
|
-
|
|
270
267
|
export declare const antdColorTokens: ColorTokens;
|
|
271
268
|
|
|
272
269
|
declare type AnyFunction = (...args: any[]) => any;
|
|
@@ -1556,6 +1553,14 @@ export { DrawerProps }
|
|
|
1556
1553
|
|
|
1557
1554
|
export { Dropdown }
|
|
1558
1555
|
|
|
1556
|
+
/**
|
|
1557
|
+
* Used for dropdowns that usually strictly prefer top/bottom placements and
|
|
1558
|
+
* use `var(--available-height)` to limit their height.
|
|
1559
|
+
*/
|
|
1560
|
+
export declare const DROPDOWN_COLLISION_AVOIDANCE: {
|
|
1561
|
+
readonly fallbackAxisSide: "none";
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1559
1564
|
export declare const DropdownMenu: ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, className, itemRender, classNames, size, showSearch, searchProps, }: DropdownMenuProps) => JSX.Element;
|
|
1560
1565
|
|
|
1561
1566
|
export declare type DropdownMenuItemType = {
|
|
@@ -1663,7 +1668,7 @@ export declare interface DSRootProps extends ThemeProviderProps {
|
|
|
1663
1668
|
appendClassesTo?: string | HTMLElement;
|
|
1664
1669
|
}
|
|
1665
1670
|
|
|
1666
|
-
declare type ElementTypeToDOMType<T extends
|
|
1671
|
+
export declare type ElementTypeToDOMType<T extends React.ElementType> = T extends keyof JSX_2.IntrinsicElements ? JSX_2.IntrinsicElements[T] extends React.DetailedHTMLProps<infer _Props, infer Element> ? Element : never : never;
|
|
1667
1672
|
|
|
1668
1673
|
export declare const Empty: ({ image, size, className, ...rest }: EmptyProps) => JSX.Element;
|
|
1669
1674
|
|
|
@@ -1722,6 +1727,10 @@ export declare const Form: (<Values = any>({ ...rest }: InternalFormProps<Values
|
|
|
1722
1727
|
export { FormInstance }
|
|
1723
1728
|
|
|
1724
1729
|
export declare interface FormItemProps<Values = unknown> extends FormItemProps_2<Values> {
|
|
1730
|
+
/**
|
|
1731
|
+
* Whether the field is optional. If true, the label will be marked as optional.
|
|
1732
|
+
* @default false
|
|
1733
|
+
*/
|
|
1725
1734
|
optionalMark?: boolean | React.ReactNode;
|
|
1726
1735
|
}
|
|
1727
1736
|
|
|
@@ -1770,9 +1779,18 @@ export { GlobalToken }
|
|
|
1770
1779
|
|
|
1771
1780
|
export { Grid }
|
|
1772
1781
|
|
|
1773
|
-
export declare const IconButton:
|
|
1782
|
+
export declare const IconButton: <E extends ElementType = "button">(props: IconButtonProps<E> & {
|
|
1783
|
+
ref?: ComponentPropsWithRef<E>["ref"];
|
|
1784
|
+
}) => ReturnType<typeof IconButtonImpl>;
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Implementation of the IconButton component
|
|
1788
|
+
*/
|
|
1789
|
+
declare const IconButtonImpl: <E extends ElementType = "button">({ label, size, negativeMargin, children, className, tooltipProps, as, href, target, rel, download, hrefLang, referrerPolicy, loading, render, ...rest }: IconButtonProps<E>, ref: Ref<ElementTypeToDOMType<E>>) => JSX.Element;
|
|
1774
1790
|
|
|
1775
|
-
declare type
|
|
1791
|
+
export declare type IconButtonProps<E extends ElementType = "button"> = WithRenderPropProps<E, {
|
|
1792
|
+
loading: boolean;
|
|
1793
|
+
}> & {
|
|
1776
1794
|
/**
|
|
1777
1795
|
* Label text or element to display within tooltip
|
|
1778
1796
|
* @default undefined
|
|
@@ -1797,25 +1815,8 @@ declare type IconButtonBaseProps = {
|
|
|
1797
1815
|
* Props to pass to the Tooltip component when wrapping the button
|
|
1798
1816
|
*/
|
|
1799
1817
|
tooltipProps?: TooltipProps;
|
|
1800
|
-
/**
|
|
1801
|
-
* Custom render function for the button
|
|
1802
|
-
*/
|
|
1803
|
-
render?: useRender.RenderProp<{
|
|
1804
|
-
loading: boolean;
|
|
1805
|
-
}>;
|
|
1806
1818
|
};
|
|
1807
1819
|
|
|
1808
|
-
/**
|
|
1809
|
-
* Type for wrapping the forwardRef implementation
|
|
1810
|
-
*/
|
|
1811
|
-
declare type IconButtonComponent = <E extends ElementType = "button">(props: IconButtonProps<E> & {
|
|
1812
|
-
ref?: ComponentPropsWithRef<E>["ref"];
|
|
1813
|
-
}) => ReactElement;
|
|
1814
|
-
|
|
1815
|
-
declare type IconButtonOwnProps<E extends ElementType = ElementType> = WithHrefProps<E> | WithoutHrefProps<E>;
|
|
1816
|
-
|
|
1817
|
-
export declare type IconButtonProps<E extends ElementType = "button"> = IconButtonOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, keyof IconButtonOwnProps<E>>;
|
|
1818
|
-
|
|
1819
1820
|
declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, className, variant, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
|
|
1820
1821
|
|
|
1821
1822
|
declare function InnerToast({ toast, }: {
|
|
@@ -2090,8 +2091,9 @@ export declare interface PasswordProps extends PasswordProps_2 {
|
|
|
2090
2091
|
}
|
|
2091
2092
|
|
|
2092
2093
|
declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2093
|
-
render?: useRender_2.RenderProp
|
|
2094
|
+
render?: useRender_2.RenderProp<Record<string, unknown>>;
|
|
2094
2095
|
as?: "div";
|
|
2096
|
+
state?: Record<string, unknown>;
|
|
2095
2097
|
} & {
|
|
2096
2098
|
/**
|
|
2097
2099
|
* Accessible label for this command menu. Not shown visibly.
|
|
@@ -2134,8 +2136,9 @@ declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2
|
|
|
2134
2136
|
vimBindings?: boolean;
|
|
2135
2137
|
} & default_2.RefAttributes<HTMLDivElement>> & {
|
|
2136
2138
|
List: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2137
|
-
render?: useRender_2.RenderProp
|
|
2139
|
+
render?: useRender_2.RenderProp<Record<string, unknown>>;
|
|
2138
2140
|
as?: "div";
|
|
2141
|
+
state?: Record<string, unknown>;
|
|
2139
2142
|
} & {
|
|
2140
2143
|
/**
|
|
2141
2144
|
* Accessible label for this List of suggestions. Not shown visibly.
|
|
@@ -2176,15 +2179,17 @@ declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2
|
|
|
2176
2179
|
forceMount?: boolean;
|
|
2177
2180
|
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
2178
2181
|
Separator: default_2.ForwardRefExoticComponent<Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2179
|
-
render?: useRender_2.RenderProp
|
|
2182
|
+
render?: useRender_2.RenderProp<Record<string, unknown>>;
|
|
2180
2183
|
as?: "div";
|
|
2184
|
+
state?: Record<string, unknown>;
|
|
2181
2185
|
} & {
|
|
2182
2186
|
/** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
|
|
2183
2187
|
alwaysRender?: boolean;
|
|
2184
2188
|
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
2185
2189
|
Dialog: default_2.ForwardRefExoticComponent<Dialog.Root.Props & Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2186
|
-
render?: useRender_2.RenderProp
|
|
2190
|
+
render?: useRender_2.RenderProp<Record<string, unknown>>;
|
|
2187
2191
|
as?: "div";
|
|
2192
|
+
state?: Record<string, unknown>;
|
|
2188
2193
|
} & {
|
|
2189
2194
|
/**
|
|
2190
2195
|
* Accessible label for this command menu. Not shown visibly.
|
|
@@ -2234,12 +2239,14 @@ declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2
|
|
|
2234
2239
|
container?: HTMLElement;
|
|
2235
2240
|
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
2236
2241
|
Empty: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2237
|
-
render?: useRender_2.RenderProp
|
|
2242
|
+
render?: useRender_2.RenderProp<Record<string, unknown>>;
|
|
2238
2243
|
as?: "div";
|
|
2244
|
+
state?: Record<string, unknown>;
|
|
2239
2245
|
} & default_2.RefAttributes<HTMLDivElement>>;
|
|
2240
2246
|
Loading: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2241
|
-
render?: useRender_2.RenderProp
|
|
2247
|
+
render?: useRender_2.RenderProp<Record<string, unknown>>;
|
|
2242
2248
|
as?: "div";
|
|
2249
|
+
state?: Record<string, unknown>;
|
|
2243
2250
|
} & {
|
|
2244
2251
|
/** Estimated progress of loading asynchronous options. */
|
|
2245
2252
|
progress?: number;
|
|
@@ -2264,6 +2271,14 @@ export declare interface PopoverProps extends PopoverProps_2 {
|
|
|
2264
2271
|
arrow?: PopoverProps_2["arrow"];
|
|
2265
2272
|
}
|
|
2266
2273
|
|
|
2274
|
+
/**
|
|
2275
|
+
* Used by regular popups that usually aren't scrollable and are allowed to
|
|
2276
|
+
* freely flip to any axis of placement.
|
|
2277
|
+
*/
|
|
2278
|
+
export declare const POPUP_COLLISION_AVOIDANCE: {
|
|
2279
|
+
readonly fallbackAxisSide: "end";
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2267
2282
|
export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, classNames, modal, closeOnClickOutside, }: PopupPanelProps) => JSX.Element;
|
|
2268
2283
|
|
|
2269
2284
|
export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRef<"div">, "title" | "content" | "children"> {
|
|
@@ -3567,27 +3582,16 @@ export declare type WidthAntdTokensProps<T extends IntrinsicElement> = {
|
|
|
3567
3582
|
|
|
3568
3583
|
export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) => null;
|
|
3569
3584
|
|
|
3570
|
-
declare
|
|
3571
|
-
href: string;
|
|
3572
|
-
as?: E;
|
|
3573
|
-
} & AnchorSpecificProps;
|
|
3574
|
-
|
|
3575
|
-
declare type WithoutHrefProps<E extends ElementType = "button"> = IconButtonBaseProps & {
|
|
3576
|
-
href?: undefined;
|
|
3577
|
-
as?: E;
|
|
3578
|
-
} & {
|
|
3579
|
-
[K in keyof AnchorSpecificProps]?: never;
|
|
3580
|
-
};
|
|
3581
|
-
|
|
3582
|
-
export declare const WithRenderProp: <T extends default_2.ElementType = "div">(props: WithRenderPropProps<T> & {
|
|
3585
|
+
export declare const WithRenderProp: <T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>>(props: WithRenderPropProps<T, State> & {
|
|
3583
3586
|
ref?: default_2.Ref<ElementTypeToDOMType<T>>;
|
|
3584
3587
|
}) => ReturnType<typeof WithRenderPropInner>;
|
|
3585
3588
|
|
|
3586
|
-
declare const WithRenderPropInner: <T extends default_2.ElementType = "div">(props: WithRenderPropProps<T>, ref: default_2.ForwardedRef<T>) => null;
|
|
3589
|
+
declare const WithRenderPropInner: <T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>>(props: WithRenderPropProps<T, State>, ref: default_2.ForwardedRef<T>) => null;
|
|
3587
3590
|
|
|
3588
|
-
export declare type WithRenderPropProps<T extends default_2.ElementType = "div"> = default_2.ComponentPropsWithoutRef<T> & {
|
|
3589
|
-
render?: useRender.RenderProp
|
|
3591
|
+
export declare type WithRenderPropProps<T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>> = default_2.ComponentPropsWithoutRef<T> & {
|
|
3592
|
+
render?: useRender.RenderProp<State>;
|
|
3590
3593
|
as?: T;
|
|
3594
|
+
state?: State;
|
|
3591
3595
|
};
|
|
3592
3596
|
|
|
3593
3597
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { componentMetadata as e, getComponentsByCategory as t } from "./metadata.js";
|
|
2
|
-
import { Affix as p, Alert as m, Anchor as s, App as f, AutoComplete as l, Avatar as n, BackTop as x, Calendar as i, Card as C, Carousel as c, Cascader as T, Col as u, ColorPicker as d, ConfigProvider as
|
|
2
|
+
import { Affix as p, Alert as m, Anchor as s, App as f, AutoComplete as l, Avatar as n, BackTop as x, Calendar as i, Card as C, Carousel as c, Cascader as T, Col as u, ColorPicker as d, ConfigProvider as S, DatePicker as g, Descriptions as h, Divider as A, Drawer as E, Dropdown as P, Flex as k, FloatButton as D, Grid as R, InputNumber as L, Layout as I, List as b, Mentions as O, Menu as y, Pagination as B, Popconfirm as N, Progress as v, QRCode as M, Rate as _, Result as U, Row as F, Skeleton as W, Space as w, Statistic as V, Steps as q, Tabs as G, TimePicker as K, Timeline as Q, Transfer as H, TreeSelect as j, Typography as z, Watermark as J, message as X, notification as Y, theme as Z, unstableSetRender as $, version as oo } from "antd";
|
|
3
3
|
import { Select as eo } from "./components/select/component.js";
|
|
4
4
|
import { Modal as ao } from "./components/modal/index.js";
|
|
5
5
|
import { IconButton as mo } from "./components/icon-button/component.js";
|
|
@@ -8,66 +8,67 @@ import { Checkbox as no } from "./components/checkbox/component.js";
|
|
|
8
8
|
import { Segmented as io } from "./components/segmented/component.js";
|
|
9
9
|
import { Table as co } from "./components/table/component.js";
|
|
10
10
|
import { Tag as uo } from "./components/tag/component.js";
|
|
11
|
-
import { ThemeProvider as
|
|
11
|
+
import { ThemeProvider as go } from "./components/theme-provider/component.js";
|
|
12
12
|
import { Split as Ao, Splitter as Eo } from "./components/splitter/component.js";
|
|
13
|
-
import { Truncate as
|
|
14
|
-
import { DropdownMenu as
|
|
15
|
-
import { clsx as
|
|
16
|
-
import { reactNodeToString as
|
|
17
|
-
import { isTracebackError as
|
|
18
|
-
import { isValidHexColor as
|
|
19
|
-
import { WithRenderProp as
|
|
20
|
-
import { parseAntdPlacement as
|
|
13
|
+
import { Truncate as ko } from "./components/truncate/component.js";
|
|
14
|
+
import { DropdownMenu as Ro } from "./components/dropdown-menu/component.js";
|
|
15
|
+
import { clsx as Io, cn as bo, cx as Oo } from "./components/utils/cn.js";
|
|
16
|
+
import { reactNodeToString as Bo } from "./components/utils/reactToString.js";
|
|
17
|
+
import { isTracebackError as vo } from "./components/utils/isTracebackError.js";
|
|
18
|
+
import { isValidHexColor as _o } from "./components/utils/colors.js";
|
|
19
|
+
import { WithRenderProp as Fo } from "./components/utils/WithRenderProp.js";
|
|
20
|
+
import { parseAntdPlacement as wo, useAntdCssVarClassname as Vo, useCls as qo, useGetPrefixCls as Go } from "./components/utils/antdUtils.js";
|
|
21
21
|
import { WithAntdTokens as Qo } from "./components/utils/WithAntdTokens.js";
|
|
22
22
|
import { changeThemeWithoutTransition as jo } from "./components/utils/theme.js";
|
|
23
23
|
import { moveTypingCursorToEnd as Jo } from "./components/utils/selectionRange.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
24
|
+
import { DROPDOWN_COLLISION_AVOIDANCE as Yo, POPUP_COLLISION_AVOIDANCE as Zo } from "./components/utils/constants.js";
|
|
25
|
+
import { Transition as or } from "./components/transition/component.js";
|
|
26
|
+
import { DefaultUpload as er, Upload as tr } from "./components/upload/component.js";
|
|
27
|
+
import { useUploadItemRender as pr } from "./components/upload/hooks.js";
|
|
28
|
+
import { ScrollArea as sr } from "./components/scroll-area/component.js";
|
|
29
|
+
import { Popover as lr } from "./components/popover/component.js";
|
|
30
|
+
import { Slider as xr } from "./components/slider/component.js";
|
|
31
|
+
import { Tooltip as Cr } from "./components/tooltip/component.js";
|
|
32
|
+
import { Breadcrumb as Tr } from "./components/breadcrumb/component.js";
|
|
33
|
+
import { useUniqueKeysTree as dr } from "./components/tree/useUniqueKeysTree.js";
|
|
34
|
+
import { getUniqueKeysFromOriginals as gr, processTreeData as hr } from "./components/tree/helpers.js";
|
|
35
|
+
import { Tree as Er } from "./components/tree/components.js";
|
|
36
|
+
import { Spin as kr } from "./components/spin/component.js";
|
|
37
|
+
import { Empty as Rr, EmptyIcon as Lr } from "./components/empty/component.js";
|
|
37
38
|
import { Form as br } from "./components/form/component.js";
|
|
38
39
|
import { Field as yr } from "./components/field/component.js";
|
|
39
|
-
import { Tour as
|
|
40
|
-
import { Toast as
|
|
41
|
-
import { toast as
|
|
40
|
+
import { Tour as Nr } from "./components/tour/component.js";
|
|
41
|
+
import { Toast as Mr } from "./components/toast/component.js";
|
|
42
|
+
import { toast as Ur, toastManager as Fr } from "./components/toast/function.js";
|
|
42
43
|
import { VerticalCollapsiblePanel as wr } from "./components/vertical-collapsible-panel/component.js";
|
|
43
|
-
import { PopupPanel as
|
|
44
|
-
import { CodeBlock as
|
|
45
|
-
import { StackChild as
|
|
46
|
-
import { Stack as
|
|
47
|
-
import { Collapse as
|
|
48
|
-
import { Input as
|
|
49
|
-
import { Badge as
|
|
50
|
-
import { Radio as
|
|
51
|
-
import { Button as
|
|
52
|
-
import { DSRoot as
|
|
53
|
-
import { DSRootContextProvider as
|
|
54
|
-
import { DragDrop as
|
|
55
|
-
import { ColorSelect as
|
|
56
|
-
import { Nav as
|
|
57
|
-
import { ChoiceList as
|
|
58
|
-
import { useForm as
|
|
59
|
-
import { useBreakpoint as
|
|
44
|
+
import { PopupPanel as qr } from "./components/popup-panel/component.js";
|
|
45
|
+
import { CodeBlock as Kr } from "./components/code-block/component.js";
|
|
46
|
+
import { StackChild as Hr } from "./components/stack/StackChild.js";
|
|
47
|
+
import { Stack as zr } from "./components/stack/index.js";
|
|
48
|
+
import { Collapse as Xr } from "./components/collapse/component.js";
|
|
49
|
+
import { Input as Zr } from "./components/input/component.js";
|
|
50
|
+
import { Badge as oe, InternalBadge as re } from "./components/badge/component.js";
|
|
51
|
+
import { Radio as te } from "./components/radio/component.js";
|
|
52
|
+
import { Button as pe } from "./components/button/component.js";
|
|
53
|
+
import { DSRoot as se } from "./components/ds-root/component.js";
|
|
54
|
+
import { DSRootContextProvider as le, useDS as ne } from "./components/ds-root/context.js";
|
|
55
|
+
import { DragDrop as ie, DragDropRoot as Ce } from "./components/drag-drop/index.js";
|
|
56
|
+
import { ColorSelect as Te } from "./components/color-select/component.js";
|
|
57
|
+
import { Nav as de } from "./components/nav/index.js";
|
|
58
|
+
import { ChoiceList as ge } from "./components/choice-list/component.js";
|
|
59
|
+
import { useForm as Ae, useWatch as Ee } from "antd/es/form/Form";
|
|
60
|
+
import { useBreakpoint as ke, useMessage as De, useModal as Re, useToken as Le } from "./components/hooks/antd.js";
|
|
60
61
|
import { default as be } from "antd/es/app/useApp";
|
|
61
|
-
import { useAnimationsFinished as ye, useEnhancedEffect as Be, useEventCallback as
|
|
62
|
-
import { useControlledState as
|
|
63
|
-
import { useCharts as
|
|
62
|
+
import { useAnimationsFinished as ye, useEnhancedEffect as Be, useEventCallback as Ne, useLatestRef as ve } from "./components/hooks/base-ui.js";
|
|
63
|
+
import { useControlledState as _e } from "./components/hooks/useControlledState.js";
|
|
64
|
+
import { useCharts as Fe } from "./components/hooks/useCharts.js";
|
|
64
65
|
import { useCSSVariables as we } from "./components/hooks/useCSSVariables.js";
|
|
65
|
-
import { antdColorTokens as
|
|
66
|
-
import { categoricalChartColorKeys as
|
|
67
|
-
import { COLORBREWER as
|
|
68
|
-
import { tab10 as
|
|
69
|
-
import { CATEGORICAL_PALETTES as
|
|
70
|
-
import { getColorsByTheme as
|
|
66
|
+
import { antdColorTokens as qe, darkTheme as Ge, lightTheme as Ke } from "./tokens/and-theme/tokens.js";
|
|
67
|
+
import { categoricalChartColorKeys as He, categoricalChartColorTokens as je, categoricalChartsColors as ze, chartColorTokens as Je, rawChartColorTokens as Xe } from "./tokens/charts/palettes/cloudscape.js";
|
|
68
|
+
import { COLORBREWER as Ze } from "./tokens/charts/palettes/colorbrewer.js";
|
|
69
|
+
import { tab10 as ot, tab20 as rt, tab20b as et, tab20c as tt } from "./tokens/charts/palettes/tableau.js";
|
|
70
|
+
import { CATEGORICAL_PALETTES as pt, CATEGORICAL_PALETTE_NAMES as mt, SEQUENTIAL_PALETTES as st, SEQUENTIAL_PALETTE_NAMES as ft, getAllCategoricalChartColors as lt, getAllSequentialChartColors as nt, getCategoricalChartColors as xt, getSequentialChartColors as it } from "./tokens/charts/palettes/index.js";
|
|
71
|
+
import { getColorsByTheme as ct, getTokensByTheme as Tt, resolveColorTokens as ut } from "./tokens/utils.js";
|
|
71
72
|
export {
|
|
72
73
|
p as Affix,
|
|
73
74
|
m as Alert,
|
|
@@ -76,156 +77,158 @@ export {
|
|
|
76
77
|
l as AutoComplete,
|
|
77
78
|
n as Avatar,
|
|
78
79
|
x as BackTop,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
oe as Badge,
|
|
81
|
+
Tr as Breadcrumb,
|
|
82
|
+
pe as Button,
|
|
83
|
+
pt as CATEGORICAL_PALETTES,
|
|
84
|
+
mt as CATEGORICAL_PALETTE_NAMES,
|
|
85
|
+
Ze as COLORBREWER,
|
|
85
86
|
i as Calendar,
|
|
86
87
|
C as Card,
|
|
87
88
|
c as Carousel,
|
|
88
89
|
T as Cascader,
|
|
89
90
|
no as Checkbox,
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
ge as ChoiceList,
|
|
92
|
+
Kr as CodeBlock,
|
|
92
93
|
u as Col,
|
|
93
|
-
|
|
94
|
+
Xr as Collapse,
|
|
94
95
|
d as ColorPicker,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
Te as ColorSelect,
|
|
97
|
+
S as ConfigProvider,
|
|
98
|
+
Yo as DROPDOWN_COLLISION_AVOIDANCE,
|
|
99
|
+
se as DSRoot,
|
|
100
|
+
le as DSRootContextProvider,
|
|
101
|
+
g as DatePicker,
|
|
102
|
+
er as DefaultUpload,
|
|
101
103
|
h as Descriptions,
|
|
102
104
|
A as Divider,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
ie as DragDrop,
|
|
106
|
+
Ce as DragDropRoot,
|
|
105
107
|
E as Drawer,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
P as Dropdown,
|
|
109
|
+
Ro as DropdownMenu,
|
|
110
|
+
Rr as Empty,
|
|
111
|
+
Lr as EmptyIcon,
|
|
110
112
|
yr as Field,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
k as Flex,
|
|
114
|
+
D as FloatButton,
|
|
113
115
|
br as Form,
|
|
114
|
-
|
|
116
|
+
R as Grid,
|
|
115
117
|
mo as IconButton,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
Zr as Input,
|
|
119
|
+
L as InputNumber,
|
|
120
|
+
re as InternalBadge,
|
|
121
|
+
I as Layout,
|
|
122
|
+
b as List,
|
|
123
|
+
O as Mentions,
|
|
124
|
+
y as Menu,
|
|
123
125
|
ao as Modal,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
126
|
+
de as Nav,
|
|
127
|
+
Zo as POPUP_COLLISION_AVOIDANCE,
|
|
128
|
+
B as Pagination,
|
|
129
|
+
N as Popconfirm,
|
|
130
|
+
lr as Popover,
|
|
131
|
+
qr as PopupPanel,
|
|
132
|
+
v as Progress,
|
|
133
|
+
M as QRCode,
|
|
134
|
+
te as Radio,
|
|
135
|
+
_ as Rate,
|
|
136
|
+
U as Result,
|
|
137
|
+
F as Row,
|
|
138
|
+
st as SEQUENTIAL_PALETTES,
|
|
139
|
+
ft as SEQUENTIAL_PALETTE_NAMES,
|
|
140
|
+
sr as ScrollArea,
|
|
138
141
|
io as Segmented,
|
|
139
142
|
eo as Select,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
W as Skeleton,
|
|
144
|
+
xr as Slider,
|
|
145
|
+
w as Space,
|
|
146
|
+
kr as Spin,
|
|
144
147
|
Ao as Split,
|
|
145
148
|
Eo as Splitter,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
zr as Stack,
|
|
150
|
+
Hr as StackChild,
|
|
151
|
+
V as Statistic,
|
|
152
|
+
q as Steps,
|
|
150
153
|
fo as Switch,
|
|
151
154
|
co as Table,
|
|
152
|
-
|
|
155
|
+
G as Tabs,
|
|
153
156
|
uo as Tag,
|
|
154
|
-
|
|
157
|
+
go as ThemeProvider,
|
|
155
158
|
K as TimePicker,
|
|
156
159
|
Q as Timeline,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
Mr as Toast,
|
|
161
|
+
Cr as Tooltip,
|
|
162
|
+
Nr as Tour,
|
|
160
163
|
H as Transfer,
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
or as Transition,
|
|
165
|
+
Er as Tree,
|
|
163
166
|
j as TreeSelect,
|
|
164
|
-
|
|
167
|
+
ko as Truncate,
|
|
165
168
|
z as Typography,
|
|
166
|
-
|
|
169
|
+
tr as Upload,
|
|
167
170
|
wr as VerticalCollapsiblePanel,
|
|
168
171
|
J as Watermark,
|
|
169
172
|
Qo as WithAntdTokens,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
Fo as WithRenderProp,
|
|
174
|
+
qe as antdColorTokens,
|
|
175
|
+
He as categoricalChartColorKeys,
|
|
176
|
+
je as categoricalChartColorTokens,
|
|
177
|
+
ze as categoricalChartsColors,
|
|
175
178
|
jo as changeThemeWithoutTransition,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
Je as chartColorTokens,
|
|
180
|
+
Io as clsx,
|
|
181
|
+
bo as cn,
|
|
179
182
|
e as componentMetadata,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
Oo as cx,
|
|
184
|
+
Ge as darkTheme,
|
|
185
|
+
lt as getAllCategoricalChartColors,
|
|
186
|
+
nt as getAllSequentialChartColors,
|
|
187
|
+
xt as getCategoricalChartColors,
|
|
188
|
+
ct as getColorsByTheme,
|
|
186
189
|
t as getComponentsByCategory,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
it as getSequentialChartColors,
|
|
191
|
+
Tt as getTokensByTheme,
|
|
192
|
+
gr as getUniqueKeysFromOriginals,
|
|
193
|
+
vo as isTracebackError,
|
|
194
|
+
_o as isValidHexColor,
|
|
195
|
+
Ke as lightTheme,
|
|
193
196
|
X as message,
|
|
194
197
|
Jo as moveTypingCursorToEnd,
|
|
195
198
|
Y as notification,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
199
|
+
wo as parseAntdPlacement,
|
|
200
|
+
hr as processTreeData,
|
|
201
|
+
Xe as rawChartColorTokens,
|
|
202
|
+
Bo as reactNodeToString,
|
|
203
|
+
ut as resolveColorTokens,
|
|
204
|
+
ot as tab10,
|
|
205
|
+
rt as tab20,
|
|
206
|
+
et as tab20b,
|
|
207
|
+
tt as tab20c,
|
|
205
208
|
Z as theme,
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
Ur as toast,
|
|
210
|
+
Fr as toastManager,
|
|
208
211
|
$ as unstableSetRender,
|
|
209
212
|
ye as useAnimationsFinished,
|
|
210
|
-
|
|
213
|
+
Vo as useAntdCssVarClassname,
|
|
211
214
|
be as useApp,
|
|
212
|
-
|
|
215
|
+
ke as useBreakpoint,
|
|
213
216
|
we as useCSSVariables,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
Fe as useCharts,
|
|
218
|
+
qo as useCls,
|
|
219
|
+
_e as useControlledState,
|
|
220
|
+
ne as useDS,
|
|
218
221
|
Be as useEnhancedEffect,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
Ne as useEventCallback,
|
|
223
|
+
Ae as useForm,
|
|
224
|
+
Go as useGetPrefixCls,
|
|
222
225
|
ve as useLatestRef,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
De as useMessage,
|
|
227
|
+
Re as useModal,
|
|
228
|
+
Le as useToken,
|
|
229
|
+
dr as useUniqueKeysTree,
|
|
230
|
+
pr as useUploadItemRender,
|
|
231
|
+
Ee as useWatch,
|
|
229
232
|
oo as version
|
|
230
233
|
};
|
|
231
234
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|