@bioturing/components 0.28.1 → 0.29.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/breadcrumb/style.css +1 -1
- package/dist/components/checkbox/style.css +1 -1
- package/dist/components/choice-list/component.js +102 -42
- package/dist/components/choice-list/component.js.map +1 -1
- package/dist/components/choice-list/style.css +1 -1
- package/dist/components/color-select/style.css +1 -1
- package/dist/components/combobox/component.js +171 -141
- package/dist/components/combobox/component.js.map +1 -1
- package/dist/components/combobox/style.css +1 -1
- package/dist/components/drag-drop/style.css +1 -1
- package/dist/components/dropdown-menu/component.js +113 -105
- package/dist/components/dropdown-menu/component.js.map +1 -1
- package/dist/components/dropdown-menu/item.css +1 -1
- package/dist/components/dropdown-menu/style.css +1 -1
- package/dist/components/ds-root/component.js +22 -17
- package/dist/components/ds-root/component.js.map +1 -1
- package/dist/components/ds-root/style.css +1 -1
- package/dist/components/form/style.css +1 -1
- package/dist/components/modal/style.css +1 -1
- package/dist/components/nav/style.css +1 -1
- package/dist/components/scroll-area/component.js +70 -24
- package/dist/components/scroll-area/component.js.map +1 -1
- package/dist/components/scroll-area/style.css +1 -1
- package/dist/components/select-trigger/component.js +150 -0
- package/dist/components/select-trigger/component.js.map +1 -0
- package/dist/components/select-trigger/style.css +1 -0
- package/dist/components/switch/style.css +1 -1
- package/dist/components/table/style.css +1 -1
- package/dist/components/theme-provider/component.js.map +1 -1
- package/dist/components/theme-provider/style.css +1 -1
- package/dist/components/tour/style.css +1 -1
- package/dist/components/utils/WithRenderProp.js.map +1 -1
- package/dist/index.d.ts +72 -41
- package/dist/index.js +125 -125
- package/dist/tokens/and-theme/tokens.js +12 -12
- package/dist/tokens/and-theme/tokens.js.map +1 -1
- package/package.json +6 -6
- package/dist/components/combobox/trigger.js +0 -89
- package/dist/components/combobox/trigger.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -248,6 +248,7 @@ import { useLayoutEffect } from 'react';
|
|
|
248
248
|
import { useRender } from '@base-ui-components/react/use-render';
|
|
249
249
|
import { useRender as useRender_2 } from '@base-ui-components/react';
|
|
250
250
|
import { useWatch } from 'antd/es/form/Form';
|
|
251
|
+
import { ValidateStatus } from 'antd/es/form/FormItem';
|
|
251
252
|
import { version } from 'antd';
|
|
252
253
|
import { Watermark } from 'antd';
|
|
253
254
|
import { WatermarkProps } from 'antd';
|
|
@@ -455,19 +456,26 @@ declare type Children = {
|
|
|
455
456
|
children?: default_2.ReactNode;
|
|
456
457
|
};
|
|
457
458
|
|
|
458
|
-
export declare const ChoiceList: <M extends boolean = false>({ items, multiple, value, onChange, searchProps, className, ...rest }: ChoiceListProps<M>) => JSX.Element;
|
|
459
|
+
export declare const ChoiceList: <M extends boolean = false>({ items, multiple, value, defaultValue, onChange, searchProps, showSelectAll, className, placeholder, ...rest }: ChoiceListProps<M>) => JSX.Element;
|
|
459
460
|
|
|
460
461
|
export declare type ChoiceListItem = {
|
|
461
462
|
label: React.ReactNode;
|
|
462
463
|
value?: string;
|
|
463
464
|
};
|
|
464
465
|
|
|
465
|
-
export declare interface ChoiceListProps<M extends boolean = false> extends Omit<CommandProps, "value" | "onChange"> {
|
|
466
|
+
export declare interface ChoiceListProps<M extends boolean = false> extends Omit<CommandProps, "value" | "onChange" | "defaultValue"> {
|
|
466
467
|
items: ChoiceListItem[];
|
|
467
468
|
multiple?: M;
|
|
468
469
|
value?: M extends true ? string[] : string;
|
|
470
|
+
defaultValue?: M extends true ? string[] : string;
|
|
469
471
|
onChange?: (value: M extends true ? string[] : string) => void;
|
|
470
472
|
searchProps?: React.ComponentProps<typeof pkg.Input>;
|
|
473
|
+
/**
|
|
474
|
+
* Show select all option when in multiple mode
|
|
475
|
+
* @default false
|
|
476
|
+
*/
|
|
477
|
+
showSelectAll?: boolean;
|
|
478
|
+
placeholder?: string;
|
|
471
479
|
}
|
|
472
480
|
|
|
473
481
|
export declare interface ClassArray extends Array<ClassValue> {
|
|
@@ -975,6 +983,8 @@ export declare interface ComboboxProps {
|
|
|
975
983
|
placeholder?: string;
|
|
976
984
|
/** Whether the combobox is disabled */
|
|
977
985
|
disabled?: boolean;
|
|
986
|
+
/** Validation status */
|
|
987
|
+
status?: ValidateStatus;
|
|
978
988
|
/** Whether to allow clearing the selection */
|
|
979
989
|
allowClear?: boolean;
|
|
980
990
|
/** Whether to allow multiple selections */
|
|
@@ -1022,7 +1032,7 @@ export declare interface ComboboxProps {
|
|
|
1022
1032
|
/**
|
|
1023
1033
|
* Props to pass to the combobox trigger
|
|
1024
1034
|
*/
|
|
1025
|
-
triggerProps?:
|
|
1035
|
+
triggerProps?: default_2.ComponentPropsWithoutRef<typeof SelectTrigger>;
|
|
1026
1036
|
searchProps?: {
|
|
1027
1037
|
placeholder?: string;
|
|
1028
1038
|
onValueChange?: (value: string) => void;
|
|
@@ -1054,39 +1064,6 @@ export declare interface ComboboxProps {
|
|
|
1054
1064
|
}) => default_2.ReactNode;
|
|
1055
1065
|
}
|
|
1056
1066
|
|
|
1057
|
-
export declare const ComboboxTrigger: default_2.ForwardRefExoticComponent<ComboboxTriggerProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
1058
|
-
|
|
1059
|
-
export declare interface ComboboxTriggerProps extends default_2.ComponentPropsWithoutRef<"button"> {
|
|
1060
|
-
/** Selected options */
|
|
1061
|
-
selectedOptions: ComboboxOption[];
|
|
1062
|
-
/** Placeholder text */
|
|
1063
|
-
placeholder?: string;
|
|
1064
|
-
/** Whether multiple selection is enabled */
|
|
1065
|
-
multiple?: boolean;
|
|
1066
|
-
/** Whether the component is disabled */
|
|
1067
|
-
disabled?: boolean;
|
|
1068
|
-
/** Whether the dropdown is open */
|
|
1069
|
-
open?: boolean;
|
|
1070
|
-
/** Size variant */
|
|
1071
|
-
size?: "small" | "middle" | "large";
|
|
1072
|
-
/** Whether to show clear button */
|
|
1073
|
-
allowClear?: boolean;
|
|
1074
|
-
/** Custom suffix icon */
|
|
1075
|
-
suffixIcon?: default_2.ReactNode;
|
|
1076
|
-
/** Custom clear icon */
|
|
1077
|
-
clearIcon?: default_2.ReactNode;
|
|
1078
|
-
/** Custom class names */
|
|
1079
|
-
classNames?: {
|
|
1080
|
-
trigger?: string;
|
|
1081
|
-
};
|
|
1082
|
-
/** Clear handler */
|
|
1083
|
-
onClear?: () => void;
|
|
1084
|
-
/** Show selection summary instead of individual tags when multiple */
|
|
1085
|
-
showSelectionSummary?: boolean;
|
|
1086
|
-
/** Render function for the selection summary in multiple case */
|
|
1087
|
-
selectionSummaryRender?: (selectedValues: Array<string | number>) => default_2.ReactNode;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
1067
|
declare type CommandFilter = (value: string, search: string, keywords?: string[]) => number;
|
|
1091
1068
|
|
|
1092
1069
|
declare type CommandProps = Children & DivProps & {
|
|
@@ -1570,7 +1547,7 @@ export { Descriptions }
|
|
|
1570
1547
|
|
|
1571
1548
|
export { DescriptionsProps }
|
|
1572
1549
|
|
|
1573
|
-
declare const DirectoryTreeInner: <T extends DataNode =
|
|
1550
|
+
declare const DirectoryTreeInner: <T extends DataNode = TreeDataNode>(props: DirectoryTreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
1574
1551
|
|
|
1575
1552
|
export declare interface DirectoryTreeProps<T extends DataNode = TreeDataNode> extends Omit<DirectoryTreeProps_2<T>, "treeData" | "expandedKeys" | "defaultExpandedKeys" | "onExpand" | "checkedKeys" | "defaultCheckedKeys" | "onCheck" | "draggable"> {
|
|
1576
1553
|
treeData?: T[];
|
|
@@ -2282,7 +2259,7 @@ declare const MainSelectInner: <ValueType = unknown, OptionType extends SelectBa
|
|
|
2282
2259
|
|
|
2283
2260
|
declare const MainSwitchInner: ({ ...rest }: SwitchProps, ref: React.Ref<React.ComponentRef<typeof default_4>>) => JSX.Element;
|
|
2284
2261
|
|
|
2285
|
-
declare const MainTreeInner: <T extends DataNode =
|
|
2262
|
+
declare const MainTreeInner: <T extends DataNode = TreeDataNode>(props: TreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
2286
2263
|
|
|
2287
2264
|
export { MappingAlgorithm }
|
|
2288
2265
|
|
|
@@ -2785,7 +2762,8 @@ declare enum PopupPanelSize {
|
|
|
2785
2762
|
xlarge = "840px"
|
|
2786
2763
|
}
|
|
2787
2764
|
|
|
2788
|
-
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>,
|
|
2765
|
+
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>, // Use Set for faster lookups
|
|
2766
|
+
parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
|
|
2789
2767
|
|
|
2790
2768
|
export { Progress }
|
|
2791
2769
|
|
|
@@ -3367,7 +3345,7 @@ export { Row }
|
|
|
3367
3345
|
|
|
3368
3346
|
export { RowProps }
|
|
3369
3347
|
|
|
3370
|
-
export declare const ScrollArea: ({ children, className, classNames, orientation, }: ScrollAreaProps) => JSX.Element;
|
|
3348
|
+
export declare const ScrollArea: ({ children, className, classNames, orientation, fadeEdges, onScroll, }: ScrollAreaProps) => JSX.Element;
|
|
3371
3349
|
|
|
3372
3350
|
export declare interface ScrollAreaProps {
|
|
3373
3351
|
children: ReactNode;
|
|
@@ -3397,6 +3375,15 @@ export declare interface ScrollAreaProps {
|
|
|
3397
3375
|
* @default "vertical"
|
|
3398
3376
|
*/
|
|
3399
3377
|
orientation?: "vertical" | "horizontal";
|
|
3378
|
+
/**
|
|
3379
|
+
* Enable fade-out effect at scrollable edges
|
|
3380
|
+
* @default false
|
|
3381
|
+
*/
|
|
3382
|
+
fadeEdges?: boolean;
|
|
3383
|
+
/**
|
|
3384
|
+
* Callback fired when the scroll position changes
|
|
3385
|
+
*/
|
|
3386
|
+
onScroll?: (event: Event) => void;
|
|
3400
3387
|
}
|
|
3401
3388
|
|
|
3402
3389
|
declare const SearchInner: ({ enterButton, onSearch, prefix, onPressEnter, onClear, loading, ...rest }: SearchProps, ref: React.Ref<InputRef>) => JSX.Element;
|
|
@@ -3463,6 +3450,50 @@ export declare interface SelectProps<ValueType = unknown, OptionType extends Sel
|
|
|
3463
3450
|
}) => default_2.ReactNode;
|
|
3464
3451
|
}
|
|
3465
3452
|
|
|
3453
|
+
export declare const SelectTrigger: default_2.ForwardRefExoticComponent<SelectTriggerProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
3454
|
+
|
|
3455
|
+
export declare interface SelectTriggerProps extends Omit<WithRenderPropProps<"button", SelectTriggerState>, "value" | "prefix"> {
|
|
3456
|
+
/** Size variant */
|
|
3457
|
+
size?: "small" | "middle" | "large";
|
|
3458
|
+
/** Whether the component is disabled */
|
|
3459
|
+
disabled?: boolean;
|
|
3460
|
+
/** Whether the dropdown/popup is open */
|
|
3461
|
+
open?: boolean;
|
|
3462
|
+
/** Validation status */
|
|
3463
|
+
status?: ValidateStatus;
|
|
3464
|
+
/** Placeholder text */
|
|
3465
|
+
placeholder?: string;
|
|
3466
|
+
/** Current value/content to display */
|
|
3467
|
+
value?: default_2.ReactNode;
|
|
3468
|
+
/** Prefix content to display before the value (e.g., icon) */
|
|
3469
|
+
prefix?: default_2.ReactNode;
|
|
3470
|
+
/** Whether to show clear button when there's a value */
|
|
3471
|
+
allowClear?: boolean;
|
|
3472
|
+
/** Custom suffix icon (arrow icon) */
|
|
3473
|
+
suffixIcon?: default_2.ReactNode;
|
|
3474
|
+
/** Custom clear icon */
|
|
3475
|
+
clearIcon?: default_2.ReactNode;
|
|
3476
|
+
/** Clear handler */
|
|
3477
|
+
onClear?: () => void;
|
|
3478
|
+
/** Open state change handler */
|
|
3479
|
+
onOpenChange?: (open: boolean) => void;
|
|
3480
|
+
/** Custom class names */
|
|
3481
|
+
classNames?: {
|
|
3482
|
+
trigger?: string;
|
|
3483
|
+
content?: string;
|
|
3484
|
+
suffix?: string;
|
|
3485
|
+
placeholder?: string;
|
|
3486
|
+
value?: string;
|
|
3487
|
+
};
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3490
|
+
export declare type SelectTriggerState = {
|
|
3491
|
+
disabled: boolean;
|
|
3492
|
+
open: boolean;
|
|
3493
|
+
hasValue: boolean;
|
|
3494
|
+
size: "small" | "middle" | "large";
|
|
3495
|
+
};
|
|
3496
|
+
|
|
3466
3497
|
export declare const SEQUENTIAL_PALETTE_NAMES: readonly ["YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"];
|
|
3467
3498
|
|
|
3468
3499
|
export declare const SEQUENTIAL_PALETTES: Record<SequentialPaletteName, Record<Theme, string[]>>;
|
|
@@ -4141,7 +4172,7 @@ export declare const WithRenderProp: <T extends default_2.ElementType = "div", S
|
|
|
4141
4172
|
|
|
4142
4173
|
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;
|
|
4143
4174
|
|
|
4144
|
-
export declare type WithRenderPropProps<T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>> = default_2.ComponentPropsWithoutRef<T> & {
|
|
4175
|
+
export declare type WithRenderPropProps<T extends default_2.ElementType = "div", State extends Record<string | number | symbol, unknown> = Record<string, unknown>> = default_2.ComponentPropsWithoutRef<T> & {
|
|
4145
4176
|
render?: useRender.RenderProp<State>;
|
|
4146
4177
|
as?: T;
|
|
4147
4178
|
state?: State;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { componentMetadata as
|
|
2
|
-
import { Affix as p, Alert as m, Anchor as f, App as s, AutoComplete as x, Avatar as l, BackTop as n, Calendar as i, Card as C, Carousel as c, Cascader as u, Col as T, ColorPicker as d, ConfigProvider as g, DatePicker as S, Descriptions as h, Divider as A, Drawer as E, Dropdown as P, Flex as
|
|
3
|
-
import { Select as
|
|
1
|
+
import { componentMetadata as r, getComponentsByCategory as t } from "./metadata.js";
|
|
2
|
+
import { Affix as p, Alert as m, Anchor as f, App as s, AutoComplete as x, Avatar as l, BackTop as n, Calendar as i, Card as C, Carousel as c, Cascader as u, Col as T, ColorPicker as d, ConfigProvider as g, DatePicker as S, Descriptions as h, Divider as A, Drawer as E, Dropdown as P, Flex as k, FloatButton as D, Grid as b, InputNumber as R, Layout as I, List as L, Mentions as O, Menu as y, Pagination as B, Popconfirm as v, Progress as N, QRCode as M, Rate as _, Result as U, Row as w, Skeleton as F, Space as W, Statistic as V, Steps as q, Tabs as G, TimePicker as K, Timeline as Q, Transfer as H, TreeSelect as z, Typography as j, Watermark as J, message as X, notification as Y, theme as Z, unstableSetRender as $, version as oo } from "antd";
|
|
3
|
+
import { Select as ro } 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";
|
|
6
6
|
import { Switch as so } from "./components/switch/component.js";
|
|
@@ -10,8 +10,8 @@ import { Table as co } from "./components/table/component.js";
|
|
|
10
10
|
import { Tag as To } from "./components/tag/component.js";
|
|
11
11
|
import { ThemeProvider as So } 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
|
|
13
|
+
import { Truncate as ko } from "./components/truncate/component.js";
|
|
14
|
+
import { DropdownMenu as bo } from "./components/dropdown-menu/component.js";
|
|
15
15
|
import { DropdownMenuItem as Io } from "./components/dropdown-menu/item.js";
|
|
16
16
|
import { Transition as Oo } from "./components/transition/component.js";
|
|
17
17
|
import { DefaultUpload as Bo, Upload as vo } from "./components/upload/component.js";
|
|
@@ -23,60 +23,60 @@ import { isValidHexColor as Qo } from "./components/utils/colors.js";
|
|
|
23
23
|
import { WithRenderProp as zo } from "./components/utils/WithRenderProp.js";
|
|
24
24
|
import { getReactElementProp as Jo } from "./components/utils/reactElement.js";
|
|
25
25
|
import { useAntdCssVarClassname as Yo, useCls as Zo, useGetPrefixCls as $o } from "./components/utils/antdUtils.js";
|
|
26
|
-
import { WithAntdTokens as
|
|
27
|
-
import { changeThemeWithoutTransition as
|
|
28
|
-
import { moveTypingCursorToEnd as
|
|
29
|
-
import { DROPDOWN_COLLISION_AVOIDANCE as
|
|
30
|
-
import { buildAntdPlacement as
|
|
31
|
-
import { ScrollArea as
|
|
32
|
-
import { Popover as
|
|
33
|
-
import { Slider as
|
|
34
|
-
import { Tooltip as
|
|
35
|
-
import { Breadcrumb as
|
|
36
|
-
import { useUniqueKeysTree as
|
|
37
|
-
import { getUniqueKeysFromOriginals as
|
|
38
|
-
import { Tree as
|
|
39
|
-
import { Spin as
|
|
40
|
-
import { Empty as
|
|
41
|
-
import { Form as
|
|
42
|
-
import { Field as
|
|
43
|
-
import { Tour as
|
|
44
|
-
import { Toast as
|
|
45
|
-
import { toast as
|
|
46
|
-
import { VerticalCollapsiblePanel as
|
|
47
|
-
import { PopupPanel as
|
|
48
|
-
import { CodeBlock as
|
|
49
|
-
import { StackChild as
|
|
50
|
-
import { Stack as
|
|
51
|
-
import { Collapse as
|
|
52
|
-
import { Input as
|
|
53
|
-
import { Badge as
|
|
54
|
-
import { Radio as
|
|
55
|
-
import { Button as
|
|
56
|
-
import { DSRoot as
|
|
57
|
-
import { DSRootContextProvider as
|
|
58
|
-
import { DragDrop as
|
|
59
|
-
import { ColorSelect as
|
|
60
|
-
import { Nav as
|
|
61
|
-
import { ChoiceList as
|
|
62
|
-
import { StatusIcon as
|
|
63
|
-
import { Resizable as
|
|
64
|
-
import { Combobox as
|
|
65
|
-
import {
|
|
66
|
-
import { useForm as
|
|
67
|
-
import { useBreakpoint as
|
|
68
|
-
import { default as
|
|
69
|
-
import { useAnimationsFinished as
|
|
70
|
-
import { useControlledState as
|
|
71
|
-
import { useCharts as
|
|
26
|
+
import { WithAntdTokens as ee } from "./components/utils/WithAntdTokens.js";
|
|
27
|
+
import { changeThemeWithoutTransition as te } from "./components/utils/theme.js";
|
|
28
|
+
import { moveTypingCursorToEnd as pe } from "./components/utils/selectionRange.js";
|
|
29
|
+
import { DROPDOWN_COLLISION_AVOIDANCE as fe, POPUP_COLLISION_AVOIDANCE as se } from "./components/utils/constants.js";
|
|
30
|
+
import { buildAntdPlacement as le, parseAntdPlacement as ne } from "./components/utils/placement.js";
|
|
31
|
+
import { ScrollArea as Ce } from "./components/scroll-area/component.js";
|
|
32
|
+
import { Popover as ue } from "./components/popover/component.js";
|
|
33
|
+
import { Slider as de } from "./components/slider/component.js";
|
|
34
|
+
import { Tooltip as Se } from "./components/tooltip/component.js";
|
|
35
|
+
import { Breadcrumb as Ae } from "./components/breadcrumb/component.js";
|
|
36
|
+
import { useUniqueKeysTree as Pe } from "./components/tree/useUniqueKeysTree.js";
|
|
37
|
+
import { getUniqueKeysFromOriginals as De, processTreeData as be } from "./components/tree/helpers.js";
|
|
38
|
+
import { Tree as Ie } from "./components/tree/components.js";
|
|
39
|
+
import { Spin as Oe } from "./components/spin/component.js";
|
|
40
|
+
import { Empty as Be, EmptyIcon as ve } from "./components/empty/component.js";
|
|
41
|
+
import { Form as Me } from "./components/form/component.js";
|
|
42
|
+
import { Field as Ue } from "./components/field/component.js";
|
|
43
|
+
import { Tour as Fe } from "./components/tour/component.js";
|
|
44
|
+
import { Toast as Ve } from "./components/toast/component.js";
|
|
45
|
+
import { toast as Ge, toastManager as Ke } from "./components/toast/function.js";
|
|
46
|
+
import { VerticalCollapsiblePanel as He } from "./components/vertical-collapsible-panel/component.js";
|
|
47
|
+
import { PopupPanel as je } from "./components/popup-panel/component.js";
|
|
48
|
+
import { CodeBlock as Xe } from "./components/code-block/component.js";
|
|
49
|
+
import { StackChild as Ze } from "./components/stack/StackChild.js";
|
|
50
|
+
import { Stack as or } from "./components/stack/index.js";
|
|
51
|
+
import { Collapse as rr } from "./components/collapse/component.js";
|
|
52
|
+
import { Input as ar } from "./components/input/component.js";
|
|
53
|
+
import { Badge as mr, InternalBadge as fr } from "./components/badge/component.js";
|
|
54
|
+
import { Radio as xr } from "./components/radio/component.js";
|
|
55
|
+
import { Button as nr } from "./components/button/component.js";
|
|
56
|
+
import { DSRoot as Cr } from "./components/ds-root/component.js";
|
|
57
|
+
import { DSRootContextProvider as ur, useDS as Tr } from "./components/ds-root/context.js";
|
|
58
|
+
import { DragDrop as gr, DragDropRoot as Sr } from "./components/drag-drop/index.js";
|
|
59
|
+
import { ColorSelect as Ar } from "./components/color-select/component.js";
|
|
60
|
+
import { Nav as Pr } from "./components/nav/index.js";
|
|
61
|
+
import { ChoiceList as Dr } from "./components/choice-list/component.js";
|
|
62
|
+
import { StatusIcon as Rr } from "./components/status-icon/component.js";
|
|
63
|
+
import { Resizable as Lr } from "./components/resizable/component.js";
|
|
64
|
+
import { Combobox as yr } from "./components/combobox/component.js";
|
|
65
|
+
import { SelectTrigger as vr } from "./components/select-trigger/component.js";
|
|
66
|
+
import { useForm as Mr, useWatch as _r } from "antd/es/form/Form";
|
|
67
|
+
import { useBreakpoint as wr, useMessage as Fr, useModal as Wr, useToken as Vr } from "./components/hooks/antd.js";
|
|
68
|
+
import { default as Gr } from "antd/es/app/useApp";
|
|
69
|
+
import { useAnimationsFinished as Qr, useEnhancedEffect as Hr, useEventCallback as zr, useLatestRef as jr } from "./components/hooks/base-ui.js";
|
|
70
|
+
import { useControlledState as Xr } from "./components/hooks/useControlledState.js";
|
|
71
|
+
import { useCharts as Zr } from "./components/hooks/useCharts.js";
|
|
72
72
|
import { useCSSVariables as ot } from "./components/hooks/useCSSVariables.js";
|
|
73
|
-
import { useHover as
|
|
73
|
+
import { useHover as rt } from "./components/hooks/useHover.js";
|
|
74
74
|
import { useDraggable as at } from "./components/hooks/useDraggable.js";
|
|
75
75
|
import { antdColorTokens as mt, darkTheme as ft, lightTheme as st } from "./tokens/and-theme/tokens.js";
|
|
76
76
|
import { categoricalChartColorKeys as lt, categoricalChartColorTokens as nt, categoricalChartsColors as it, chartColorTokens as Ct, rawChartColorTokens as ct } from "./tokens/charts/palettes/cloudscape.js";
|
|
77
77
|
import { COLORBREWER as Tt } from "./tokens/charts/palettes/colorbrewer.js";
|
|
78
78
|
import { tab10 as gt, tab20 as St, tab20b as ht, tab20c as At } from "./tokens/charts/palettes/tableau.js";
|
|
79
|
-
import { CATEGORICAL_PALETTES as Pt, CATEGORICAL_PALETTE_NAMES as
|
|
79
|
+
import { CATEGORICAL_PALETTES as Pt, CATEGORICAL_PALETTE_NAMES as kt, SEQUENTIAL_PALETTES as Dt, SEQUENTIAL_PALETTE_NAMES as bt, getAllCategoricalChartColors as Rt, getAllSequentialChartColors as It, getCategoricalChartColors as Lt, getSequentialChartColors as Ot } from "./tokens/charts/palettes/index.js";
|
|
80
80
|
import { getColorsByTheme as Bt, getTokensByTheme as vt, resolveColorTokens as Nt } from "./tokens/utils.js";
|
|
81
81
|
export {
|
|
82
82
|
p as Affix,
|
|
@@ -86,83 +86,83 @@ export {
|
|
|
86
86
|
x as AutoComplete,
|
|
87
87
|
l as Avatar,
|
|
88
88
|
n as BackTop,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
mr as Badge,
|
|
90
|
+
Ae as Breadcrumb,
|
|
91
|
+
nr as Button,
|
|
92
92
|
Pt as CATEGORICAL_PALETTES,
|
|
93
|
-
|
|
93
|
+
kt as CATEGORICAL_PALETTE_NAMES,
|
|
94
94
|
Tt as COLORBREWER,
|
|
95
95
|
i as Calendar,
|
|
96
96
|
C as Card,
|
|
97
97
|
c as Carousel,
|
|
98
98
|
u as Cascader,
|
|
99
99
|
lo as Checkbox,
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
Dr as ChoiceList,
|
|
101
|
+
Xe as CodeBlock,
|
|
102
102
|
T as Col,
|
|
103
|
-
|
|
103
|
+
rr as Collapse,
|
|
104
104
|
d as ColorPicker,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
ve as ComboboxTrigger,
|
|
105
|
+
Ar as ColorSelect,
|
|
106
|
+
yr as Combobox,
|
|
108
107
|
g as ConfigProvider,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
fe as DROPDOWN_COLLISION_AVOIDANCE,
|
|
109
|
+
Cr as DSRoot,
|
|
110
|
+
ur as DSRootContextProvider,
|
|
112
111
|
S as DatePicker,
|
|
113
112
|
Bo as DefaultUpload,
|
|
114
113
|
h as Descriptions,
|
|
115
114
|
A as Divider,
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
gr as DragDrop,
|
|
116
|
+
Sr as DragDropRoot,
|
|
118
117
|
E as Drawer,
|
|
119
118
|
P as Dropdown,
|
|
120
|
-
|
|
119
|
+
bo as DropdownMenu,
|
|
121
120
|
Io as DropdownMenuItem,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
Be as Empty,
|
|
122
|
+
ve as EmptyIcon,
|
|
123
|
+
Ue as Field,
|
|
124
|
+
k as Flex,
|
|
125
|
+
D as FloatButton,
|
|
126
|
+
Me as Form,
|
|
127
|
+
b as Grid,
|
|
129
128
|
mo as IconButton,
|
|
130
|
-
|
|
129
|
+
ar as Input,
|
|
131
130
|
R as InputNumber,
|
|
132
|
-
|
|
131
|
+
fr as InternalBadge,
|
|
133
132
|
I as Layout,
|
|
134
133
|
L as List,
|
|
135
134
|
O as Mentions,
|
|
136
135
|
y as Menu,
|
|
137
136
|
ao as Modal,
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
Pr as Nav,
|
|
138
|
+
se as POPUP_COLLISION_AVOIDANCE,
|
|
140
139
|
B as Pagination,
|
|
141
140
|
v as Popconfirm,
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
ue as Popover,
|
|
142
|
+
je as PopupPanel,
|
|
144
143
|
N as Progress,
|
|
145
144
|
M as QRCode,
|
|
146
|
-
|
|
145
|
+
xr as Radio,
|
|
147
146
|
_ as Rate,
|
|
148
|
-
|
|
147
|
+
Lr as Resizable,
|
|
149
148
|
U as Result,
|
|
150
149
|
w as Row,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
Dt as SEQUENTIAL_PALETTES,
|
|
151
|
+
bt as SEQUENTIAL_PALETTE_NAMES,
|
|
152
|
+
Ce as ScrollArea,
|
|
154
153
|
io as Segmented,
|
|
155
|
-
|
|
154
|
+
ro as Select,
|
|
155
|
+
vr as SelectTrigger,
|
|
156
156
|
F as Skeleton,
|
|
157
|
-
|
|
157
|
+
de as Slider,
|
|
158
158
|
W as Space,
|
|
159
|
-
|
|
159
|
+
Oe as Spin,
|
|
160
160
|
Ao as Split,
|
|
161
161
|
Eo as Splitter,
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
or as Stack,
|
|
163
|
+
Ze as StackChild,
|
|
164
164
|
V as Statistic,
|
|
165
|
-
|
|
165
|
+
Rr as StatusIcon,
|
|
166
166
|
q as Steps,
|
|
167
167
|
so as Switch,
|
|
168
168
|
co as Table,
|
|
@@ -171,30 +171,30 @@ export {
|
|
|
171
171
|
So as ThemeProvider,
|
|
172
172
|
K as TimePicker,
|
|
173
173
|
Q as Timeline,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
Ve as Toast,
|
|
175
|
+
Se as Tooltip,
|
|
176
|
+
Fe as Tour,
|
|
177
177
|
H as Transfer,
|
|
178
178
|
Oo as Transition,
|
|
179
|
-
|
|
179
|
+
Ie as Tree,
|
|
180
180
|
z as TreeSelect,
|
|
181
|
-
|
|
181
|
+
ko as Truncate,
|
|
182
182
|
j as Typography,
|
|
183
183
|
vo as Upload,
|
|
184
|
-
|
|
184
|
+
He as VerticalCollapsiblePanel,
|
|
185
185
|
J as Watermark,
|
|
186
|
-
|
|
186
|
+
ee as WithAntdTokens,
|
|
187
187
|
zo as WithRenderProp,
|
|
188
188
|
mt as antdColorTokens,
|
|
189
|
-
|
|
189
|
+
le as buildAntdPlacement,
|
|
190
190
|
lt as categoricalChartColorKeys,
|
|
191
191
|
nt as categoricalChartColorTokens,
|
|
192
192
|
it as categoricalChartsColors,
|
|
193
|
-
|
|
193
|
+
te as changeThemeWithoutTransition,
|
|
194
194
|
Ct as chartColorTokens,
|
|
195
195
|
Uo as clsx,
|
|
196
196
|
wo as cn,
|
|
197
|
-
|
|
197
|
+
r as componentMetadata,
|
|
198
198
|
Fo as cx,
|
|
199
199
|
ft as darkTheme,
|
|
200
200
|
Rt as getAllCategoricalChartColors,
|
|
@@ -205,15 +205,15 @@ export {
|
|
|
205
205
|
Jo as getReactElementProp,
|
|
206
206
|
Ot as getSequentialChartColors,
|
|
207
207
|
vt as getTokensByTheme,
|
|
208
|
-
|
|
208
|
+
De as getUniqueKeysFromOriginals,
|
|
209
209
|
Go as isTracebackError,
|
|
210
210
|
Qo as isValidHexColor,
|
|
211
211
|
st as lightTheme,
|
|
212
212
|
X as message,
|
|
213
|
-
|
|
213
|
+
pe as moveTypingCursorToEnd,
|
|
214
214
|
Y as notification,
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
ne as parseAntdPlacement,
|
|
216
|
+
be as processTreeData,
|
|
217
217
|
ct as rawChartColorTokens,
|
|
218
218
|
Vo as reactNodeToString,
|
|
219
219
|
Nt as resolveColorTokens,
|
|
@@ -222,31 +222,31 @@ export {
|
|
|
222
222
|
ht as tab20b,
|
|
223
223
|
At as tab20c,
|
|
224
224
|
Z as theme,
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
Ge as toast,
|
|
226
|
+
Ke as toastManager,
|
|
227
227
|
$ as unstableSetRender,
|
|
228
|
-
|
|
228
|
+
Qr as useAnimationsFinished,
|
|
229
229
|
Yo as useAntdCssVarClassname,
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
Gr as useApp,
|
|
231
|
+
wr as useBreakpoint,
|
|
232
232
|
ot as useCSSVariables,
|
|
233
|
-
|
|
233
|
+
Zr as useCharts,
|
|
234
234
|
Zo as useCls,
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
Xr as useControlledState,
|
|
236
|
+
Tr as useDS,
|
|
237
237
|
at as useDraggable,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
Hr as useEnhancedEffect,
|
|
239
|
+
zr as useEventCallback,
|
|
240
|
+
Mr as useForm,
|
|
241
241
|
$o as useGetPrefixCls,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
242
|
+
rt as useHover,
|
|
243
|
+
jr as useLatestRef,
|
|
244
|
+
Fr as useMessage,
|
|
245
|
+
Wr as useModal,
|
|
246
|
+
Vr as useToken,
|
|
247
|
+
Pe as useUniqueKeysTree,
|
|
248
248
|
Mo as useUploadItemRender,
|
|
249
|
-
|
|
249
|
+
_r as useWatch,
|
|
250
250
|
oo as version
|
|
251
251
|
};
|
|
252
252
|
//# sourceMappingURL=index.js.map
|
|
@@ -295,16 +295,16 @@ const o = {
|
|
|
295
295
|
cssVar: !0,
|
|
296
296
|
components: {
|
|
297
297
|
Input: {
|
|
298
|
-
activeBorderColor: "var(--ds-
|
|
299
|
-
activeShadow: "var(--ds-
|
|
300
|
-
errorActiveShadow: "var(--ds-
|
|
301
|
-
warningActiveShadow: "var(--ds-
|
|
298
|
+
activeBorderColor: "var(--ds-control-color-border-active)",
|
|
299
|
+
activeShadow: "var(--ds-control-shadow-active)",
|
|
300
|
+
errorActiveShadow: "var(--ds-control-shadow-error-active)",
|
|
301
|
+
warningActiveShadow: "var(--ds-control-shadow-warning-active)"
|
|
302
302
|
},
|
|
303
303
|
InputNumber: {
|
|
304
|
-
activeBorderColor: "var(--ds-
|
|
305
|
-
activeShadow: "var(--ds-
|
|
306
|
-
errorActiveShadow: "var(--ds-
|
|
307
|
-
warningActiveShadow: "var(--ds-
|
|
304
|
+
activeBorderColor: "var(--ds-control-color-border-active)",
|
|
305
|
+
activeShadow: "var(--ds-control-shadow-active)",
|
|
306
|
+
errorActiveShadow: "var(--ds-control-shadow-error-active)",
|
|
307
|
+
warningActiveShadow: "var(--ds-control-shadow-warning-active)"
|
|
308
308
|
},
|
|
309
309
|
Button: {
|
|
310
310
|
defaultShadow: void 0,
|
|
@@ -336,13 +336,13 @@ const o = {
|
|
|
336
336
|
labelColor: "var(--ds-color-text)"
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
},
|
|
339
|
+
}, t = {
|
|
340
340
|
token: {
|
|
341
341
|
...r(o, "light"),
|
|
342
342
|
...a
|
|
343
343
|
},
|
|
344
344
|
...l
|
|
345
|
-
},
|
|
345
|
+
}, i = {
|
|
346
346
|
token: {
|
|
347
347
|
...r(o, "dark"),
|
|
348
348
|
...a
|
|
@@ -351,7 +351,7 @@ const o = {
|
|
|
351
351
|
};
|
|
352
352
|
export {
|
|
353
353
|
o as antdColorTokens,
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
i as darkTheme,
|
|
355
|
+
t as lightTheme
|
|
356
356
|
};
|
|
357
357
|
//# sourceMappingURL=tokens.js.map
|