@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/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 './Modal';
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 = ModalProps_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 ModalProps_2 extends Omit<ModalProps_3, "centered"> {
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, maxHeight, minWidth, minHeight, onResize, maintainAspectRatio, ...rest }: ResizableProps) => JSX.Element;
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
- export declare const useBreakpoint: () => Partial<Record<Breakpoint, boolean>>;
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 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";
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 ao } from "./components/modal/index.js";
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 So } from "./components/theme-provider/component.js";
12
- import { Split as Ao, Splitter as Eo } from "./components/splitter/component.js";
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 Bo, Upload as vo } from "./components/upload/component.js";
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 Uo, cn as wo, cx as Fo } from "./components/utils/cn.js";
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 Go } from "./components/utils/isTracebackError.js";
22
- import { isValidHexColor as Qo } from "./components/utils/colors.js";
23
- import { WithRenderProp as zo } from "./components/utils/WithRenderProp.js";
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 pe } from "./components/utils/selectionRange.js";
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 Se } from "./components/tooltip/component.js";
35
- import { Breadcrumb as Ae } from "./components/breadcrumb/component.js";
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 De, processTreeData as be } from "./components/tree/helpers.js";
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 Be, EmptyIcon as ve } from "./components/empty/component.js";
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 Ue } from "./components/field/component.js";
43
- import { Tour as Fe } from "./components/tour/component.js";
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 Ge, toastManager as Ke } from "./components/toast/function.js";
46
- import { VerticalCollapsiblePanel as He } from "./components/vertical-collapsible-panel/component.js";
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 ar } from "./components/input/component.js";
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 gr, DragDropRoot as Sr } from "./components/drag-drop/index.js";
59
- import { ColorSelect as Ar } from "./components/color-select/component.js";
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 Dr } from "./components/choice-list/component.js";
62
- import { StatusIcon as Rr } from "./components/status-icon/component.js";
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 yr } from "./components/combobox/component.js";
65
- import { SelectTrigger as vr } from "./components/select-trigger/component.js";
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 { 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
- import { useCSSVariables as ot } from "./components/hooks/useCSSVariables.js";
73
- import { useHover as rt } from "./components/hooks/useHover.js";
74
- import { useDraggable as at } from "./components/hooks/useDraggable.js";
75
- import { antdColorTokens as mt, darkTheme as ft, lightTheme as st } from "./tokens/and-theme/tokens.js";
76
- import { categoricalChartColorKeys as lt, categoricalChartColorTokens as nt, categoricalChartsColors as it, chartColorTokens as Ct, rawChartColorTokens as ct } from "./tokens/charts/palettes/cloudscape.js";
77
- import { COLORBREWER as Tt } from "./tokens/charts/palettes/colorbrewer.js";
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 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
- import { getColorsByTheme as Bt, getTokensByTheme as vt, resolveColorTokens as Nt } from "./tokens/utils.js";
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
- p as Affix,
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
- Ae as Breadcrumb,
94
+ he as Breadcrumb,
91
95
  nr as Button,
92
- Pt as CATEGORICAL_PALETTES,
93
- kt as CATEGORICAL_PALETTE_NAMES,
94
- Tt as COLORBREWER,
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
- Dr as ChoiceList,
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
- Ar as ColorSelect,
106
- yr as Combobox,
107
- g as ConfigProvider,
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
- S as DatePicker,
112
- Bo as DefaultUpload,
113
- h as Descriptions,
114
- A as Divider,
115
- gr as DragDrop,
116
- Sr as DragDropRoot,
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
- Be as Empty,
122
- ve as EmptyIcon,
123
- Ue as Field,
125
+ ve as Empty,
126
+ ye as EmptyIcon,
127
+ we as Field,
124
128
  k as Flex,
125
- D as FloatButton,
129
+ R as FloatButton,
126
130
  Me as Form,
127
131
  b as Grid,
128
132
  mo as IconButton,
129
- ar as Input,
130
- R as InputNumber,
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
- y as Menu,
136
- ao as Modal,
139
+ B as Menu,
140
+ po as Modal,
137
141
  Pr as Nav,
138
142
  se as POPUP_COLLISION_AVOIDANCE,
139
- B as Pagination,
140
- v as Popconfirm,
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
- U as Result,
149
- w as Row,
150
- Dt as SEQUENTIAL_PALETTES,
151
- bt as SEQUENTIAL_PALETTE_NAMES,
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
- vr as SelectTrigger,
156
- F as Skeleton,
159
+ yr as SelectTrigger,
160
+ W as Skeleton,
157
161
  de as Slider,
158
- W as Space,
162
+ F as Space,
159
163
  Oe as Spin,
160
- Ao as Split,
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
- Rr as StatusIcon,
169
+ Dr as StatusIcon,
166
170
  q as Steps,
167
171
  so as Switch,
168
172
  co as Table,
169
- G as Tabs,
173
+ z as Tabs,
170
174
  To as Tag,
171
- So as ThemeProvider,
172
- K as TimePicker,
173
- Q as Timeline,
175
+ go as ThemeProvider,
176
+ G as TimePicker,
177
+ K as Timeline,
174
178
  Ve as Toast,
175
- Se as Tooltip,
176
- Fe as Tour,
177
- H as Transfer,
179
+ ge as Tooltip,
180
+ We as Tour,
181
+ Q as Transfer,
178
182
  Oo as Transition,
179
183
  Ie as Tree,
180
- z as TreeSelect,
184
+ H as TreeSelect,
181
185
  ko as Truncate,
182
186
  j as Typography,
183
- vo as Upload,
184
- He as VerticalCollapsiblePanel,
187
+ yo as Upload,
188
+ Qe as VerticalCollapsiblePanel,
185
189
  J as Watermark,
186
190
  ee as WithAntdTokens,
187
- zo as WithRenderProp,
188
- mt as antdColorTokens,
191
+ Ho as WithRenderProp,
192
+ Ct as antdColorTokens,
189
193
  le as buildAntdPlacement,
190
- lt as categoricalChartColorKeys,
191
- nt as categoricalChartColorTokens,
192
- it as categoricalChartsColors,
194
+ dt as categoricalChartColorKeys,
195
+ St as categoricalChartColorTokens,
196
+ gt as categoricalChartsColors,
193
197
  te as changeThemeWithoutTransition,
194
- Ct as chartColorTokens,
195
- Uo as clsx,
196
- wo as cn,
198
+ At as chartColorTokens,
199
+ wo as clsx,
200
+ Uo as cn,
197
201
  r as componentMetadata,
198
- Fo as cx,
199
- ft as darkTheme,
200
- Rt as getAllCategoricalChartColors,
201
- It as getAllSequentialChartColors,
202
- Lt as getCategoricalChartColors,
203
- Bt as getColorsByTheme,
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
- Ot as getSequentialChartColors,
207
- vt as getTokensByTheme,
208
- De as getUniqueKeysFromOriginals,
209
- Go as isTracebackError,
210
- Qo as isValidHexColor,
211
- st as lightTheme,
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
- pe as moveTypingCursorToEnd,
217
+ ae as moveTypingCursorToEnd,
214
218
  Y as notification,
215
219
  ne as parseAntdPlacement,
216
220
  be as processTreeData,
217
- ct as rawChartColorTokens,
221
+ ht as rawChartColorTokens,
218
222
  Vo as reactNodeToString,
219
- Nt as resolveColorTokens,
220
- gt as tab10,
221
- St as tab20,
222
- ht as tab20b,
223
- At as tab20c,
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
- Ge as toast,
226
- Ke as toastManager,
229
+ ze as toast,
230
+ Ge as toastManager,
227
231
  $ as unstableSetRender,
228
- Qr as useAnimationsFinished,
232
+ Gr as useAnimationsFinished,
229
233
  Yo as useAntdCssVarClassname,
230
- Gr as useApp,
231
- wr as useBreakpoint,
232
- ot as useCSSVariables,
233
- Zr as useCharts,
234
+ qr as useApp,
235
+ mt as useBreakpoint,
236
+ $r as useCSSVariables,
237
+ Yr as useCharts,
234
238
  Zo as useCls,
235
- Xr as useControlledState,
239
+ Jr as useControlledState,
236
240
  Tr as useDS,
237
- at as useDraggable,
238
- Hr as useEnhancedEffect,
239
- zr as useEventCallback,
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
- rt as useHover,
243
- jr as useLatestRef,
244
- Fr as useMessage,
247
+ et as useHover,
248
+ Hr as useLatestRef,
249
+ Ur as useMessage,
245
250
  Wr as useModal,
246
- Vr as useToken,
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bioturing/components",
3
- "version": "0.29.1",
3
+ "version": "0.30.0",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",