@bioturing/components 0.29.1 → 0.30.0
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/choice-list/component.js +132 -105
- package/dist/components/choice-list/component.js.map +1 -1
- package/dist/components/code-block/component.js +8 -8
- package/dist/components/dropdown-menu/component.js +28 -26
- package/dist/components/dropdown-menu/component.js.map +1 -1
- package/dist/components/dropdown-menu/item.js +52 -49
- package/dist/components/dropdown-menu/item.js.map +1 -1
- package/dist/components/hooks/antd.js +9 -11
- package/dist/components/hooks/antd.js.map +1 -1
- package/dist/components/hooks/useBreakpoint.js +50 -0
- package/dist/components/hooks/useBreakpoint.js.map +1 -0
- package/dist/components/hooks/useResizeObserver.js +52 -0
- package/dist/components/hooks/useResizeObserver.js.map +1 -0
- package/dist/components/hooks/useWindowSize.js +23 -0
- package/dist/components/hooks/useWindowSize.js.map +1 -0
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/resizable/component.js +108 -90
- package/dist/components/resizable/component.js.map +1 -1
- package/dist/components/toast/component.js +13 -13
- package/dist/components/toast/component.js.map +1 -1
- package/dist/index.d.ts +90 -10
- package/dist/index.js +132 -125
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { BreadcrumbItemProps as BreadcrumbItemProps_2 } from 'antd/es/breadcrumb
|
|
|
21
21
|
import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
|
22
22
|
import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd/es/breadcrumb';
|
|
23
23
|
import { BreadcrumbSeparatorType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
24
|
-
import { Breakpoint } from 'antd';
|
|
25
24
|
import { ButtonProps as ButtonProps_2 } from 'antd/es/button';
|
|
26
25
|
import { Calendar } from 'antd';
|
|
27
26
|
import { CalendarMode } from 'antd';
|
|
@@ -134,8 +133,7 @@ import { message } from 'antd';
|
|
|
134
133
|
import { MessageArgsProps } from 'antd';
|
|
135
134
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
136
135
|
import { ModalFuncProps } from 'antd';
|
|
137
|
-
import { ModalProps } from '
|
|
138
|
-
import { ModalProps as ModalProps_3 } from 'antd/es/modal';
|
|
136
|
+
import { ModalProps as ModalProps_2 } from 'antd/es/modal';
|
|
139
137
|
import { ModalRef } from './functions';
|
|
140
138
|
import { MoveValues } from 'react-use-resizable';
|
|
141
139
|
import { notification } from 'antd';
|
|
@@ -173,6 +171,7 @@ import { RefAttributes } from 'react';
|
|
|
173
171
|
import { RefObject } from 'react';
|
|
174
172
|
import { RefSelectProps } from 'antd';
|
|
175
173
|
import { RefSelectProps as RefSelectProps_2 } from 'antd/es/select';
|
|
174
|
+
import { ResizableProps as ResizableProps_2 } from 'react-use-resizable';
|
|
176
175
|
import { Result } from 'antd';
|
|
177
176
|
import { ResultProps } from 'antd';
|
|
178
177
|
import { RibbonProps } from 'antd/es/badge/Ribbon';
|
|
@@ -350,6 +349,16 @@ export declare interface BreadcrumbProps<T extends AnyObject = AnyObject> extend
|
|
|
350
349
|
itemRender?: (route: BreadcrumbItemType, params: T, routes: BreadcrumbItemType[], paths: string[]) => React.ReactNode;
|
|
351
350
|
}
|
|
352
351
|
|
|
352
|
+
declare type Breakpoint = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
353
|
+
|
|
354
|
+
export declare const BREAKPOINTS: {
|
|
355
|
+
sm: number;
|
|
356
|
+
md: number;
|
|
357
|
+
lg: number;
|
|
358
|
+
xl: number;
|
|
359
|
+
"2xl": number;
|
|
360
|
+
};
|
|
361
|
+
|
|
353
362
|
/**
|
|
354
363
|
* Build Antd placement string from BaseUI side and align values
|
|
355
364
|
* @param placement - Object with side and align properties
|
|
@@ -456,7 +465,7 @@ declare type Children = {
|
|
|
456
465
|
children?: default_2.ReactNode;
|
|
457
466
|
};
|
|
458
467
|
|
|
459
|
-
export declare const ChoiceList: <M extends boolean = false>({ items, multiple, value, defaultValue, onChange, searchProps, showSelectAll, className, placeholder, ...rest }: ChoiceListProps<M>) => JSX.Element;
|
|
468
|
+
export declare const ChoiceList: <M extends boolean = false>({ items, multiple, value, defaultValue, onChange, searchProps, showSelectAll, className, placeholder, disabled: disabledProp, status: statusProp, getItemKeywords, ...rest }: ChoiceListProps<M>) => JSX.Element;
|
|
460
469
|
|
|
461
470
|
export declare type ChoiceListItem = {
|
|
462
471
|
label: React.ReactNode;
|
|
@@ -476,6 +485,20 @@ export declare interface ChoiceListProps<M extends boolean = false> extends Omit
|
|
|
476
485
|
*/
|
|
477
486
|
showSelectAll?: boolean;
|
|
478
487
|
placeholder?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Whether the choice list is disabled
|
|
490
|
+
* @default false
|
|
491
|
+
*/
|
|
492
|
+
disabled?: boolean;
|
|
493
|
+
/**
|
|
494
|
+
* Validation status
|
|
495
|
+
*/
|
|
496
|
+
status?: "error" | "warning" | "success" | "validating";
|
|
497
|
+
/**
|
|
498
|
+
* Function to extract keywords from the item for search filtering
|
|
499
|
+
* @default (item) => [item.value, reactNodeToString(item.label)]
|
|
500
|
+
*/
|
|
501
|
+
getItemKeywords?: (item: ChoiceListItem) => string[];
|
|
479
502
|
}
|
|
480
503
|
|
|
481
504
|
export declare interface ClassArray extends Array<ClassValue> {
|
|
@@ -1787,7 +1810,7 @@ export declare const DROPDOWN_COLLISION_AVOIDANCE: {
|
|
|
1787
1810
|
readonly fallbackAxisSide: "none";
|
|
1788
1811
|
};
|
|
1789
1812
|
|
|
1790
|
-
export declare const DropdownMenu: ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, className, itemRender, classNames, size, showSearch, searchProps, popupMatchTriggerWidth, beforeList, afterList, keepOpenOnSelect, highlightedItemKey, selectedItemKeys, showCheckbox, }: DropdownMenuProps) => JSX.Element;
|
|
1813
|
+
export declare const DropdownMenu: ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, className, itemRender, classNames, size, showSearch, searchProps, popupMatchTriggerWidth, beforeList, afterList, keepOpenOnSelect, highlightedItemKey, selectedItemKeys, showCheckbox, getItemKeywords, }: DropdownMenuProps) => JSX.Element;
|
|
1791
1814
|
|
|
1792
1815
|
export declare const DropdownMenuItem: default_2.FC<DropdownMenuItemProps>;
|
|
1793
1816
|
|
|
@@ -1829,6 +1852,13 @@ export declare interface DropdownMenuItemProps {
|
|
|
1829
1852
|
* @default false
|
|
1830
1853
|
*/
|
|
1831
1854
|
indeterminate?: boolean;
|
|
1855
|
+
/**
|
|
1856
|
+
* Function to extract keywords from the item for search filtering
|
|
1857
|
+
* @default (item) => [String(item.key), reactNodeToString(item.label)]
|
|
1858
|
+
*/
|
|
1859
|
+
getItemKeywords?: (item: DropdownMenuItemType & {
|
|
1860
|
+
type: "item";
|
|
1861
|
+
}) => string[];
|
|
1832
1862
|
}
|
|
1833
1863
|
|
|
1834
1864
|
export declare type DropdownMenuItemType = {
|
|
@@ -1996,6 +2026,13 @@ export declare interface DropdownMenuProps {
|
|
|
1996
2026
|
* @default false
|
|
1997
2027
|
*/
|
|
1998
2028
|
showCheckbox?: boolean;
|
|
2029
|
+
/**
|
|
2030
|
+
* Function to extract keywords from the item for search filtering
|
|
2031
|
+
* @default (item) => [String(item.key), reactNodeToString(item.label)]
|
|
2032
|
+
*/
|
|
2033
|
+
getItemKeywords?: (item: DropdownMenuItemType & {
|
|
2034
|
+
type: "item";
|
|
2035
|
+
}) => string[];
|
|
1999
2036
|
}
|
|
2000
2037
|
|
|
2001
2038
|
export { DropDownProps }
|
|
@@ -2297,7 +2334,7 @@ export declare const Modal: (({ open: externalOpen, closeIcon, children, size: s
|
|
|
2297
2334
|
|
|
2298
2335
|
export { ModalFuncProps }
|
|
2299
2336
|
|
|
2300
|
-
declare type ModalFuncProps_2 =
|
|
2337
|
+
declare type ModalFuncProps_2 = ModalProps & {
|
|
2301
2338
|
/**
|
|
2302
2339
|
* Content to be displayed in the modal
|
|
2303
2340
|
* Similar to children prop in Modal component
|
|
@@ -2306,7 +2343,7 @@ declare type ModalFuncProps_2 = ModalProps_2 & {
|
|
|
2306
2343
|
content?: default_2.ReactNode;
|
|
2307
2344
|
};
|
|
2308
2345
|
|
|
2309
|
-
declare interface
|
|
2346
|
+
export declare interface ModalProps extends Omit<ModalProps_2, "centered"> {
|
|
2310
2347
|
/**
|
|
2311
2348
|
* Predefined sizes for the modal
|
|
2312
2349
|
* - xsmall: 400px
|
|
@@ -2451,6 +2488,8 @@ export { notification }
|
|
|
2451
2488
|
|
|
2452
2489
|
export { NotificationArgsProps }
|
|
2453
2490
|
|
|
2491
|
+
declare type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>;
|
|
2492
|
+
|
|
2454
2493
|
export { Pagination }
|
|
2455
2494
|
|
|
2456
2495
|
export { PaginationProps }
|
|
@@ -3263,9 +3302,9 @@ export { RefSelectProps }
|
|
|
3263
3302
|
|
|
3264
3303
|
declare type RefType<T extends FieldType> = T extends "input" ? InputRef : T extends "select" ? RefSelectProps_2 : never;
|
|
3265
3304
|
|
|
3266
|
-
export declare const Resizable: ({ children, resizable, handles, absolutePositioning, classNames, className: containerClassName, style: containerStyle, resetKey, maxWidth,
|
|
3305
|
+
export declare const Resizable: ({ children, resizable, handles, absolutePositioning, classNames, className: containerClassName, style: containerStyle, resetKey, maxHeight, maxWidth, minHeight, minWidth, lockHorizontal, lockVertical, onResize, onDragEnd: onDragEndProp, onDragStart: onDragStartProp, disabled, maintainAspectRatio, interval, initialHeight: initialHeightProp, initialWidth: initialWidthProp, ...rest }: ResizableProps) => JSX.Element;
|
|
3267
3306
|
|
|
3268
|
-
export declare interface ResizableProps extends WithRenderPropProps {
|
|
3307
|
+
export declare interface ResizableProps extends Omit<WithRenderPropProps, keyof ResizableProps_2>, ResizableProps_2 {
|
|
3269
3308
|
/**
|
|
3270
3309
|
* Single React element child that will be enhanced with resize handles
|
|
3271
3310
|
*/
|
|
@@ -3950,7 +3989,35 @@ export declare const useAntdCssVarClassname: () => string;
|
|
|
3950
3989
|
|
|
3951
3990
|
export { useApp }
|
|
3952
3991
|
|
|
3953
|
-
|
|
3992
|
+
/**
|
|
3993
|
+
* A responsive breakpoint hook using window.matchMedia for optimal performance.
|
|
3994
|
+
*
|
|
3995
|
+
* @param ssrBreakpoint - The breakpoint to use during SSR and before hydration.
|
|
3996
|
+
* Defaults to "lg" for better SEO (search engines typically use desktop viewports).
|
|
3997
|
+
*
|
|
3998
|
+
* @example
|
|
3999
|
+
* ```tsx
|
|
4000
|
+
* // Default: uses "lg" for SSR
|
|
4001
|
+
* const bp = useBreakpoint();
|
|
4002
|
+
*
|
|
4003
|
+
* // Custom SSR breakpoint
|
|
4004
|
+
* const bp = useBreakpoint("md");
|
|
4005
|
+
*
|
|
4006
|
+
* // Usage
|
|
4007
|
+
* bp.breakpoint // Current breakpoint: "sm" | "md" | "lg" | "xl" | "2xl"
|
|
4008
|
+
* bp.up("md") // true if screen >= 768px
|
|
4009
|
+
* bp.down("lg") // true if screen < 1024px
|
|
4010
|
+
* bp.between("md", "xl") // true if 768px <= screen < 1280px
|
|
4011
|
+
* bp.only("lg") // true if screen is exactly in "lg" range
|
|
4012
|
+
* ```
|
|
4013
|
+
*/
|
|
4014
|
+
export declare const useBreakpoint: (ssrBreakpoint?: Breakpoint) => {
|
|
4015
|
+
breakpoint: Breakpoint;
|
|
4016
|
+
up: (bp: Breakpoint) => boolean;
|
|
4017
|
+
down: (bp: Breakpoint) => boolean;
|
|
4018
|
+
between: (minBp: Breakpoint, maxBp: Breakpoint) => boolean;
|
|
4019
|
+
only: (bp: Breakpoint) => boolean;
|
|
4020
|
+
};
|
|
3954
4021
|
|
|
3955
4022
|
/**
|
|
3956
4023
|
* Get chart colors and axis configuration based on the current theme.
|
|
@@ -4023,6 +4090,12 @@ export declare const useDS: () => {
|
|
|
4023
4090
|
theme: "light" | "dark";
|
|
4024
4091
|
};
|
|
4025
4092
|
|
|
4093
|
+
export declare function useElementSize<T extends HTMLElement = any>(options?: ResizeObserverOptions): {
|
|
4094
|
+
ref: RefObject<T>;
|
|
4095
|
+
width: number;
|
|
4096
|
+
height: number;
|
|
4097
|
+
};
|
|
4098
|
+
|
|
4026
4099
|
export declare const useEnhancedEffect: typeof useLayoutEffect;
|
|
4027
4100
|
|
|
4028
4101
|
export declare function useEventCallback<Fn extends AnyFunction>(fn?: Fn): Fn;
|
|
@@ -4044,6 +4117,8 @@ export declare const useMessage: () => MessageInstance;
|
|
|
4044
4117
|
|
|
4045
4118
|
export declare const useModal: () => HookAPI;
|
|
4046
4119
|
|
|
4120
|
+
export declare function useResizeObserver<T extends HTMLElement = any>(options?: ResizeObserverOptions): readonly [RefObject<T>, ObserverRect];
|
|
4121
|
+
|
|
4047
4122
|
export declare const useToken: () => {
|
|
4048
4123
|
theme: Theme_2<SeedToken, AliasToken>;
|
|
4049
4124
|
token: GlobalToken;
|
|
@@ -4089,6 +4164,11 @@ export declare type UseUploadItemRenderProps = {
|
|
|
4089
4164
|
|
|
4090
4165
|
export { useWatch }
|
|
4091
4166
|
|
|
4167
|
+
export declare function useWindowSize(): {
|
|
4168
|
+
width: any;
|
|
4169
|
+
height: any;
|
|
4170
|
+
};
|
|
4171
|
+
|
|
4092
4172
|
export { version }
|
|
4093
4173
|
|
|
4094
4174
|
export declare const VerticalCollapsiblePanel: default_2.FC<VerticalCollapsiblePanelProps>;
|
package/dist/index.js
CHANGED
|
@@ -1,143 +1,147 @@
|
|
|
1
1
|
import { componentMetadata as r, getComponentsByCategory as t } from "./metadata.js";
|
|
2
|
-
import { Affix as
|
|
2
|
+
import { Affix as a, 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 S, DatePicker as g, Descriptions as A, Divider as h, Drawer as E, Dropdown as P, Flex as k, FloatButton as R, Grid as b, InputNumber as D, Layout as I, List as L, Mentions as O, Menu as B, Pagination as v, Popconfirm as y, Progress as N, QRCode as M, Rate as _, Result as w, Row as U, Skeleton as W, Space as F, Statistic as V, Steps as q, Tabs as z, TimePicker as G, Timeline as K, Transfer as Q, TreeSelect as H, Typography as j, Watermark as J, message as X, notification as Y, theme as Z, unstableSetRender as $, version as oo } from "antd";
|
|
3
3
|
import { Select as ro } from "./components/select/component.js";
|
|
4
|
-
import { Modal as
|
|
4
|
+
import { Modal as po } 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";
|
|
7
7
|
import { Checkbox as lo } 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 To } from "./components/tag/component.js";
|
|
11
|
-
import { ThemeProvider as
|
|
12
|
-
import { Split as
|
|
11
|
+
import { ThemeProvider as go } from "./components/theme-provider/component.js";
|
|
12
|
+
import { Split as ho, Splitter as Eo } from "./components/splitter/component.js";
|
|
13
13
|
import { Truncate as ko } from "./components/truncate/component.js";
|
|
14
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
|
-
import { DefaultUpload as
|
|
17
|
+
import { DefaultUpload as vo, Upload as yo } from "./components/upload/component.js";
|
|
18
18
|
import { useUploadItemRender as Mo } from "./components/upload/hooks.js";
|
|
19
|
-
import { clsx as
|
|
19
|
+
import { clsx as wo, cn as Uo, cx as Wo } from "./components/utils/cn.js";
|
|
20
20
|
import { reactNodeToString as Vo } from "./components/utils/reactToString.js";
|
|
21
|
-
import { isTracebackError as
|
|
22
|
-
import { isValidHexColor as
|
|
23
|
-
import { WithRenderProp as
|
|
21
|
+
import { isTracebackError as zo } from "./components/utils/isTracebackError.js";
|
|
22
|
+
import { isValidHexColor as Ko } from "./components/utils/colors.js";
|
|
23
|
+
import { WithRenderProp as Ho } 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
26
|
import { WithAntdTokens as ee } from "./components/utils/WithAntdTokens.js";
|
|
27
27
|
import { changeThemeWithoutTransition as te } from "./components/utils/theme.js";
|
|
28
|
-
import { moveTypingCursorToEnd as
|
|
28
|
+
import { moveTypingCursorToEnd as ae } from "./components/utils/selectionRange.js";
|
|
29
29
|
import { DROPDOWN_COLLISION_AVOIDANCE as fe, POPUP_COLLISION_AVOIDANCE as se } from "./components/utils/constants.js";
|
|
30
30
|
import { buildAntdPlacement as le, parseAntdPlacement as ne } from "./components/utils/placement.js";
|
|
31
31
|
import { ScrollArea as Ce } from "./components/scroll-area/component.js";
|
|
32
32
|
import { Popover as ue } from "./components/popover/component.js";
|
|
33
33
|
import { Slider as de } from "./components/slider/component.js";
|
|
34
|
-
import { Tooltip as
|
|
35
|
-
import { Breadcrumb as
|
|
34
|
+
import { Tooltip as ge } from "./components/tooltip/component.js";
|
|
35
|
+
import { Breadcrumb as he } from "./components/breadcrumb/component.js";
|
|
36
36
|
import { useUniqueKeysTree as Pe } from "./components/tree/useUniqueKeysTree.js";
|
|
37
|
-
import { getUniqueKeysFromOriginals as
|
|
37
|
+
import { getUniqueKeysFromOriginals as Re, processTreeData as be } from "./components/tree/helpers.js";
|
|
38
38
|
import { Tree as Ie } from "./components/tree/components.js";
|
|
39
39
|
import { Spin as Oe } from "./components/spin/component.js";
|
|
40
|
-
import { Empty as
|
|
40
|
+
import { Empty as ve, EmptyIcon as ye } from "./components/empty/component.js";
|
|
41
41
|
import { Form as Me } from "./components/form/component.js";
|
|
42
|
-
import { Field as
|
|
43
|
-
import { Tour as
|
|
42
|
+
import { Field as we } from "./components/field/component.js";
|
|
43
|
+
import { Tour as We } from "./components/tour/component.js";
|
|
44
44
|
import { Toast as Ve } from "./components/toast/component.js";
|
|
45
|
-
import { toast as
|
|
46
|
-
import { VerticalCollapsiblePanel as
|
|
45
|
+
import { toast as ze, toastManager as Ge } from "./components/toast/function.js";
|
|
46
|
+
import { VerticalCollapsiblePanel as Qe } from "./components/vertical-collapsible-panel/component.js";
|
|
47
47
|
import { PopupPanel as je } from "./components/popup-panel/component.js";
|
|
48
48
|
import { CodeBlock as Xe } from "./components/code-block/component.js";
|
|
49
49
|
import { StackChild as Ze } from "./components/stack/StackChild.js";
|
|
50
50
|
import { Stack as or } from "./components/stack/index.js";
|
|
51
51
|
import { Collapse as rr } from "./components/collapse/component.js";
|
|
52
|
-
import { Input as
|
|
52
|
+
import { Input as pr } from "./components/input/component.js";
|
|
53
53
|
import { Badge as mr, InternalBadge as fr } from "./components/badge/component.js";
|
|
54
54
|
import { Radio as xr } from "./components/radio/component.js";
|
|
55
55
|
import { Button as nr } from "./components/button/component.js";
|
|
56
56
|
import { DSRoot as Cr } from "./components/ds-root/component.js";
|
|
57
57
|
import { DSRootContextProvider as ur, useDS as Tr } from "./components/ds-root/context.js";
|
|
58
|
-
import { DragDrop as
|
|
59
|
-
import { ColorSelect as
|
|
58
|
+
import { DragDrop as Sr, DragDropRoot as gr } from "./components/drag-drop/index.js";
|
|
59
|
+
import { ColorSelect as hr } from "./components/color-select/component.js";
|
|
60
60
|
import { Nav as Pr } from "./components/nav/index.js";
|
|
61
|
-
import { ChoiceList as
|
|
62
|
-
import { StatusIcon as
|
|
61
|
+
import { ChoiceList as Rr } from "./components/choice-list/component.js";
|
|
62
|
+
import { StatusIcon as Dr } from "./components/status-icon/component.js";
|
|
63
63
|
import { Resizable as Lr } from "./components/resizable/component.js";
|
|
64
|
-
import { Combobox as
|
|
65
|
-
import { SelectTrigger as
|
|
64
|
+
import { Combobox as Br } from "./components/combobox/component.js";
|
|
65
|
+
import { SelectTrigger as yr } from "./components/select-trigger/component.js";
|
|
66
66
|
import { useForm as Mr, useWatch as _r } from "antd/es/form/Form";
|
|
67
|
-
import {
|
|
68
|
-
import { default as
|
|
69
|
-
import { useAnimationsFinished as
|
|
70
|
-
import { useControlledState as
|
|
71
|
-
import { useCharts as
|
|
72
|
-
import { useCSSVariables as
|
|
73
|
-
import { useHover as
|
|
74
|
-
import { useDraggable as
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
67
|
+
import { useMessage as Ur, useModal as Wr, useToken as Fr } from "./components/hooks/antd.js";
|
|
68
|
+
import { default as qr } from "antd/es/app/useApp";
|
|
69
|
+
import { useAnimationsFinished as Gr, useEnhancedEffect as Kr, useEventCallback as Qr, useLatestRef as Hr } from "./components/hooks/base-ui.js";
|
|
70
|
+
import { useControlledState as Jr } from "./components/hooks/useControlledState.js";
|
|
71
|
+
import { useCharts as Yr } from "./components/hooks/useCharts.js";
|
|
72
|
+
import { useCSSVariables as $r } from "./components/hooks/useCSSVariables.js";
|
|
73
|
+
import { useHover as et } from "./components/hooks/useHover.js";
|
|
74
|
+
import { useDraggable as tt } from "./components/hooks/useDraggable.js";
|
|
75
|
+
import { BREAKPOINTS as at, useBreakpoint as mt } from "./components/hooks/useBreakpoint.js";
|
|
76
|
+
import { useWindowSize as st } from "./components/hooks/useWindowSize.js";
|
|
77
|
+
import { useElementSize as lt, useResizeObserver as nt } from "./components/hooks/useResizeObserver.js";
|
|
78
|
+
import { antdColorTokens as Ct, darkTheme as ct, lightTheme as ut } from "./tokens/and-theme/tokens.js";
|
|
79
|
+
import { categoricalChartColorKeys as dt, categoricalChartColorTokens as St, categoricalChartsColors as gt, chartColorTokens as At, rawChartColorTokens as ht } from "./tokens/charts/palettes/cloudscape.js";
|
|
80
|
+
import { COLORBREWER as Pt } from "./tokens/charts/palettes/colorbrewer.js";
|
|
81
|
+
import { tab10 as Rt, tab20 as bt, tab20b as Dt, tab20c as It } from "./tokens/charts/palettes/tableau.js";
|
|
82
|
+
import { CATEGORICAL_PALETTES as Ot, CATEGORICAL_PALETTE_NAMES as Bt, SEQUENTIAL_PALETTES as vt, SEQUENTIAL_PALETTE_NAMES as yt, getAllCategoricalChartColors as Nt, getAllSequentialChartColors as Mt, getCategoricalChartColors as _t, getSequentialChartColors as wt } from "./tokens/charts/palettes/index.js";
|
|
83
|
+
import { getColorsByTheme as Wt, getTokensByTheme as Ft, resolveColorTokens as Vt } from "./tokens/utils.js";
|
|
81
84
|
export {
|
|
82
|
-
|
|
85
|
+
a as Affix,
|
|
83
86
|
m as Alert,
|
|
84
87
|
f as Anchor,
|
|
85
88
|
s as App,
|
|
86
89
|
x as AutoComplete,
|
|
87
90
|
l as Avatar,
|
|
91
|
+
at as BREAKPOINTS,
|
|
88
92
|
n as BackTop,
|
|
89
93
|
mr as Badge,
|
|
90
|
-
|
|
94
|
+
he as Breadcrumb,
|
|
91
95
|
nr as Button,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
Ot as CATEGORICAL_PALETTES,
|
|
97
|
+
Bt as CATEGORICAL_PALETTE_NAMES,
|
|
98
|
+
Pt as COLORBREWER,
|
|
95
99
|
i as Calendar,
|
|
96
100
|
C as Card,
|
|
97
101
|
c as Carousel,
|
|
98
102
|
u as Cascader,
|
|
99
103
|
lo as Checkbox,
|
|
100
|
-
|
|
104
|
+
Rr as ChoiceList,
|
|
101
105
|
Xe as CodeBlock,
|
|
102
106
|
T as Col,
|
|
103
107
|
rr as Collapse,
|
|
104
108
|
d as ColorPicker,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
hr as ColorSelect,
|
|
110
|
+
Br as Combobox,
|
|
111
|
+
S as ConfigProvider,
|
|
108
112
|
fe as DROPDOWN_COLLISION_AVOIDANCE,
|
|
109
113
|
Cr as DSRoot,
|
|
110
114
|
ur as DSRootContextProvider,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
g as DatePicker,
|
|
116
|
+
vo as DefaultUpload,
|
|
117
|
+
A as Descriptions,
|
|
118
|
+
h as Divider,
|
|
119
|
+
Sr as DragDrop,
|
|
120
|
+
gr as DragDropRoot,
|
|
117
121
|
E as Drawer,
|
|
118
122
|
P as Dropdown,
|
|
119
123
|
bo as DropdownMenu,
|
|
120
124
|
Io as DropdownMenuItem,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
ve as Empty,
|
|
126
|
+
ye as EmptyIcon,
|
|
127
|
+
we as Field,
|
|
124
128
|
k as Flex,
|
|
125
|
-
|
|
129
|
+
R as FloatButton,
|
|
126
130
|
Me as Form,
|
|
127
131
|
b as Grid,
|
|
128
132
|
mo as IconButton,
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
pr as Input,
|
|
134
|
+
D as InputNumber,
|
|
131
135
|
fr as InternalBadge,
|
|
132
136
|
I as Layout,
|
|
133
137
|
L as List,
|
|
134
138
|
O as Mentions,
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
B as Menu,
|
|
140
|
+
po as Modal,
|
|
137
141
|
Pr as Nav,
|
|
138
142
|
se as POPUP_COLLISION_AVOIDANCE,
|
|
139
|
-
|
|
140
|
-
|
|
143
|
+
v as Pagination,
|
|
144
|
+
y as Popconfirm,
|
|
141
145
|
ue as Popover,
|
|
142
146
|
je as PopupPanel,
|
|
143
147
|
N as Progress,
|
|
@@ -145,108 +149,111 @@ export {
|
|
|
145
149
|
xr as Radio,
|
|
146
150
|
_ as Rate,
|
|
147
151
|
Lr as Resizable,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
w as Result,
|
|
153
|
+
U as Row,
|
|
154
|
+
vt as SEQUENTIAL_PALETTES,
|
|
155
|
+
yt as SEQUENTIAL_PALETTE_NAMES,
|
|
152
156
|
Ce as ScrollArea,
|
|
153
157
|
io as Segmented,
|
|
154
158
|
ro as Select,
|
|
155
|
-
|
|
156
|
-
|
|
159
|
+
yr as SelectTrigger,
|
|
160
|
+
W as Skeleton,
|
|
157
161
|
de as Slider,
|
|
158
|
-
|
|
162
|
+
F as Space,
|
|
159
163
|
Oe as Spin,
|
|
160
|
-
|
|
164
|
+
ho as Split,
|
|
161
165
|
Eo as Splitter,
|
|
162
166
|
or as Stack,
|
|
163
167
|
Ze as StackChild,
|
|
164
168
|
V as Statistic,
|
|
165
|
-
|
|
169
|
+
Dr as StatusIcon,
|
|
166
170
|
q as Steps,
|
|
167
171
|
so as Switch,
|
|
168
172
|
co as Table,
|
|
169
|
-
|
|
173
|
+
z as Tabs,
|
|
170
174
|
To as Tag,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
go as ThemeProvider,
|
|
176
|
+
G as TimePicker,
|
|
177
|
+
K as Timeline,
|
|
174
178
|
Ve as Toast,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
179
|
+
ge as Tooltip,
|
|
180
|
+
We as Tour,
|
|
181
|
+
Q as Transfer,
|
|
178
182
|
Oo as Transition,
|
|
179
183
|
Ie as Tree,
|
|
180
|
-
|
|
184
|
+
H as TreeSelect,
|
|
181
185
|
ko as Truncate,
|
|
182
186
|
j as Typography,
|
|
183
|
-
|
|
184
|
-
|
|
187
|
+
yo as Upload,
|
|
188
|
+
Qe as VerticalCollapsiblePanel,
|
|
185
189
|
J as Watermark,
|
|
186
190
|
ee as WithAntdTokens,
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
Ho as WithRenderProp,
|
|
192
|
+
Ct as antdColorTokens,
|
|
189
193
|
le as buildAntdPlacement,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
194
|
+
dt as categoricalChartColorKeys,
|
|
195
|
+
St as categoricalChartColorTokens,
|
|
196
|
+
gt as categoricalChartsColors,
|
|
193
197
|
te as changeThemeWithoutTransition,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
198
|
+
At as chartColorTokens,
|
|
199
|
+
wo as clsx,
|
|
200
|
+
Uo as cn,
|
|
197
201
|
r as componentMetadata,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
Wo as cx,
|
|
203
|
+
ct as darkTheme,
|
|
204
|
+
Nt as getAllCategoricalChartColors,
|
|
205
|
+
Mt as getAllSequentialChartColors,
|
|
206
|
+
_t as getCategoricalChartColors,
|
|
207
|
+
Wt as getColorsByTheme,
|
|
204
208
|
t as getComponentsByCategory,
|
|
205
209
|
Jo as getReactElementProp,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
wt as getSequentialChartColors,
|
|
211
|
+
Ft as getTokensByTheme,
|
|
212
|
+
Re as getUniqueKeysFromOriginals,
|
|
213
|
+
zo as isTracebackError,
|
|
214
|
+
Ko as isValidHexColor,
|
|
215
|
+
ut as lightTheme,
|
|
212
216
|
X as message,
|
|
213
|
-
|
|
217
|
+
ae as moveTypingCursorToEnd,
|
|
214
218
|
Y as notification,
|
|
215
219
|
ne as parseAntdPlacement,
|
|
216
220
|
be as processTreeData,
|
|
217
|
-
|
|
221
|
+
ht as rawChartColorTokens,
|
|
218
222
|
Vo as reactNodeToString,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
Vt as resolveColorTokens,
|
|
224
|
+
Rt as tab10,
|
|
225
|
+
bt as tab20,
|
|
226
|
+
Dt as tab20b,
|
|
227
|
+
It as tab20c,
|
|
224
228
|
Z as theme,
|
|
225
|
-
|
|
226
|
-
|
|
229
|
+
ze as toast,
|
|
230
|
+
Ge as toastManager,
|
|
227
231
|
$ as unstableSetRender,
|
|
228
|
-
|
|
232
|
+
Gr as useAnimationsFinished,
|
|
229
233
|
Yo as useAntdCssVarClassname,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
+
qr as useApp,
|
|
235
|
+
mt as useBreakpoint,
|
|
236
|
+
$r as useCSSVariables,
|
|
237
|
+
Yr as useCharts,
|
|
234
238
|
Zo as useCls,
|
|
235
|
-
|
|
239
|
+
Jr as useControlledState,
|
|
236
240
|
Tr as useDS,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
241
|
+
tt as useDraggable,
|
|
242
|
+
lt as useElementSize,
|
|
243
|
+
Kr as useEnhancedEffect,
|
|
244
|
+
Qr as useEventCallback,
|
|
240
245
|
Mr as useForm,
|
|
241
246
|
$o as useGetPrefixCls,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
247
|
+
et as useHover,
|
|
248
|
+
Hr as useLatestRef,
|
|
249
|
+
Ur as useMessage,
|
|
245
250
|
Wr as useModal,
|
|
246
|
-
|
|
251
|
+
nt as useResizeObserver,
|
|
252
|
+
Fr as useToken,
|
|
247
253
|
Pe as useUniqueKeysTree,
|
|
248
254
|
Mo as useUploadItemRender,
|
|
249
255
|
_r as useWatch,
|
|
256
|
+
st as useWindowSize,
|
|
250
257
|
oo as version
|
|
251
258
|
};
|
|
252
259
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|