@bioturing/components 0.17.1 → 0.19.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.
Files changed (40) hide show
  1. package/dist/components/Button/component.js +34 -24
  2. package/dist/components/Button/component.js.map +1 -1
  3. package/dist/components/Button/style.css +1 -1
  4. package/dist/components/ColorSelect/component.js +198 -109
  5. package/dist/components/ColorSelect/component.js.map +1 -1
  6. package/dist/components/ColorSelect/style.css +1 -1
  7. package/dist/components/DragDrop/draggable.js +21 -20
  8. package/dist/components/DragDrop/draggable.js.map +1 -1
  9. package/dist/components/DragDrop/droppable.js +69 -37
  10. package/dist/components/DragDrop/droppable.js.map +1 -1
  11. package/dist/components/DragDrop/hooks.js +61 -55
  12. package/dist/components/DragDrop/hooks.js.map +1 -1
  13. package/dist/components/DragDrop/index.js +23 -18
  14. package/dist/components/DragDrop/index.js.map +1 -1
  15. package/dist/components/DragDrop/style.css +1 -1
  16. package/dist/components/DragDrop/value.js +84 -0
  17. package/dist/components/DragDrop/value.js.map +1 -0
  18. package/dist/components/Nav/item.js +28 -27
  19. package/dist/components/Nav/item.js.map +1 -1
  20. package/dist/components/Stack/StackChild.js +37 -37
  21. package/dist/components/Stack/StackChild.js.map +1 -1
  22. package/dist/components/Tag/component.js +55 -47
  23. package/dist/components/Tag/component.js.map +1 -1
  24. package/dist/components/Tag/style.css +1 -1
  25. package/dist/components/Toast/component.js +13 -13
  26. package/dist/components/Toast/component.js.map +1 -1
  27. package/dist/components/Toast/style.css +1 -1
  28. package/dist/components/hooks/useCSSVariables.js +12 -0
  29. package/dist/components/hooks/useCSSVariables.js.map +1 -0
  30. package/dist/components/hooks/useCharts.js.map +1 -1
  31. package/dist/components/utils/selectionRange.js +9 -0
  32. package/dist/components/utils/selectionRange.js.map +1 -0
  33. package/dist/components/utils/theme.js +22 -0
  34. package/dist/components/utils/theme.js.map +1 -0
  35. package/dist/index.d.ts +65 -9
  36. package/dist/index.js +153 -147
  37. package/dist/index.js.map +1 -1
  38. package/dist/tokens/and-theme/tokens.js +12 -12
  39. package/dist/tokens/and-theme/tokens.js.map +1 -1
  40. package/package.json +5 -2
package/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ import { CascaderAutoProps } from 'antd';
36
36
  import { CascaderPanelAutoProps } from 'antd';
37
37
  import { CascaderPanelProps } from 'antd';
38
38
  import { CascaderProps } from 'antd';
39
- import { CheckableTagProps as CheckableTagProps_2 } from 'antd/es/tag';
39
+ import { CheckableTagProps as CheckableTagProps_2 } from 'antd/es/tag/CheckableTag';
40
40
  import { Checkbox as Checkbox_2 } from 'antd';
41
41
  import { CheckboxChangeEvent } from 'antd';
42
42
  import { CheckboxGroupProps } from 'antd/es/checkbox';
@@ -74,6 +74,7 @@ import { DescriptionsProps } from 'antd';
74
74
  import { DirectoryTreeProps as DirectoryTreeProps_2 } from 'antd/es/tree';
75
75
  import { Divider } from 'antd';
76
76
  import { DividerProps } from 'antd';
77
+ import { DragDropValueProps as DragDropValueProps_2 } from './types';
77
78
  import { DraggerProps } from './dragger';
78
79
  import { Drawer } from 'antd';
79
80
  import { DrawerProps } from 'antd';
@@ -338,7 +339,7 @@ export declare const Button: (props: ButtonProps & {
338
339
  ref?: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>;
339
340
  }) => ReturnType<typeof ButtonInner>;
340
341
 
341
- declare const ButtonInner: ({ negativeMargin, type, size, variant, ...rest }: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
342
+ declare const ButtonInner: ({ negativeMargin, type, size, variant, icon, ...rest }: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
342
343
 
343
344
  export declare interface ButtonProps extends ButtonProps_2 {
344
345
  /**
@@ -384,6 +385,12 @@ export declare const categoricalChartsColors: ColorTokenValue[];
384
385
 
385
386
  export declare type CategoricalPaletteName = (typeof CATEGORICAL_PALETTE_NAMES)[number];
386
387
 
388
+ /**
389
+ * Changes the theme without transition
390
+ * @param fn Callback function to change the theme
391
+ */
392
+ export declare const changeThemeWithoutTransition: (fn: () => void) => void;
393
+
387
394
  export declare const chartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50", ColorTokenValue>;
388
395
 
389
396
  export declare interface CheckableTagProps extends CheckableTagProps_2 {
@@ -1339,7 +1346,13 @@ export declare const DragDrop: typeof DragDropRoot & {
1339
1346
  /**
1340
1347
  * Zone where items can be dropped
1341
1348
  */
1342
- Droppable: <T extends DragData = unknown>({ id, children, className, disabled, placeholder, icon, render, onDrop, validate, ...rest }: DragDropDroppableProps<T>) => null;
1349
+ Droppable: <T extends DragData = unknown, M extends boolean = false>({ id, children, className, disabled, placeholder, icon, render, onDrop, validate, multiple, value, onChange, renderValueLabel, renderValueIcon, ...rest }: DragDropDroppableProps<T, M>) => null;
1350
+ /**
1351
+ * Value component to display the value of the dragged item
1352
+ */
1353
+ Value: <T extends DragData, M extends boolean>(props: DragDropValueProps_2<T, M> & {
1354
+ ref?: ForwardedRef<HTMLDivElement>;
1355
+ }) => ReturnType<(<T_1 extends DragData, M_1 extends boolean>({ value, onChange, multiple, renderValueLabel, renderValueIcon, className, style, ...rest }: DragDropValueProps_2<T_1, M_1> & ComponentPropsWithoutRef<"div">, ref: ForwardedRef<HTMLDivElement>) => JSX.Element)>;
1343
1356
  };
1344
1357
 
1345
1358
  /**
@@ -1385,10 +1398,17 @@ export declare interface DragDropDraggableProps<T extends DragData = DragData> e
1385
1398
  onlyIndicatorDraggable?: boolean;
1386
1399
  }
1387
1400
 
1401
+ declare type DragDropDropableRenderFnProps<T extends DragData = DragData, M extends boolean = false> = {
1402
+ isOver: boolean;
1403
+ id: UniqueIdentifier;
1404
+ value: M extends true ? T[] : T;
1405
+ onChange: (value: M extends true ? T[] : T) => void;
1406
+ };
1407
+
1388
1408
  /**
1389
1409
  * Props for the DropZone component
1390
1410
  */
1391
- export declare interface DragDropDroppableProps<T extends DragData = DragData> extends Omit<React.ComponentPropsWithoutRef<"div">, "id" | "onDragEnter" | "onDragOver" | "onDragLeave" | "onDrop"> {
1411
+ export declare interface DragDropDroppableProps<T extends DragData = DragData, M extends boolean = false> extends Omit<React.ComponentPropsWithoutRef<"div">, "id" | "onDragEnter" | "onDragOver" | "onDragLeave" | "onDrop" | "onChange">, Omit<DragDropValueProps<T, M>, "id"> {
1392
1412
  /**
1393
1413
  * Unique identifier for the droppable area
1394
1414
  */
@@ -1410,10 +1430,7 @@ export declare interface DragDropDroppableProps<T extends DragData = DragData> e
1410
1430
  /**
1411
1431
  * Custom render function
1412
1432
  */
1413
- render?: useRender.RenderProp<{
1414
- isOver: boolean;
1415
- id: string;
1416
- }>;
1433
+ render?: useRender.RenderProp<DragDropDropableRenderFnProps<T, M>>;
1417
1434
  /**
1418
1435
  * Callback fired when an item is dropped on this zone
1419
1436
  */
@@ -1425,6 +1442,10 @@ export declare interface DragDropDroppableProps<T extends DragData = DragData> e
1425
1442
  * Validate if the item can be dropped
1426
1443
  */
1427
1444
  validate?: (item: DraggableInfo<T>) => boolean;
1445
+ /**
1446
+ * Maximum number of items that can be dropped
1447
+ */
1448
+ maxItems?: number;
1428
1449
  }
1429
1450
 
1430
1451
  /**
@@ -1463,6 +1484,14 @@ export declare interface DragDropProps<T extends DragData = DragData> {
1463
1484
  */
1464
1485
  export declare function DragDropRoot<T extends DragData = DragData>({ children, onDragEnd: _onDragEnd, onDragStart: _onDragStart, onDrop: _onDrop, className, }: DragDropProps<T>): JSX.Element;
1465
1486
 
1487
+ declare interface DragDropValueProps<T extends DragData = DragData, M extends boolean = false> extends Omit<ComponentPropsWithoutRef<"div">, "onDragEnter" | "onDragOver" | "onDragLeave" | "onDrop" | "onChange"> {
1488
+ multiple?: M;
1489
+ value?: M extends true ? T[] : T;
1490
+ onChange?: M extends true ? (value: T[]) => void : (value: T) => void;
1491
+ renderValueLabel?: (singleValue: T) => ReactElement | string;
1492
+ renderValueIcon?: (singleValue: T) => ReactElement;
1493
+ }
1494
+
1466
1495
  export declare interface DragEndEvent<T extends DragData = DragData> {
1467
1496
  active: {
1468
1497
  id: UniqueIdentifier;
@@ -1939,10 +1968,12 @@ export declare interface ModalProviderProps {
1939
1968
 
1940
1969
  declare type ModalType = NonNullable<ModalFuncProps["type"]> | "default";
1941
1970
 
1971
+ export declare function moveTypingCursorToEnd(contentEditableElement: HTMLElement): void;
1972
+
1942
1973
  export declare const Nav: {
1943
1974
  Item: <T extends HTMLElement>(props: NavItemProps & {
1944
1975
  ref?: React.Ref<T>;
1945
- }) => ReturnType<(<T_1 extends HTMLElement>({ icon, active, render, onClick, className, children, ...rest }: NavItemProps, ref: React.Ref<T_1>) => null)>;
1976
+ }) => ReturnType<(<T_1 extends HTMLElement>({ icon, active, render, onClick, className, children, changeIconWeightOnActive, ...rest }: NavItemProps, ref: React.Ref<T_1>) => null)>;
1946
1977
  Heading: ({ children, className, ...rest }: NavHeadingProps) => JSX.Element;
1947
1978
  Group: ForwardRefExoticComponent<NavGroupProps & RefAttributes<HTMLDivElement>>;
1948
1979
  };
@@ -1964,13 +1995,31 @@ export declare interface NavHeadingProps extends default_2.HTMLAttributes<HTMLHe
1964
1995
  }
1965
1996
 
1966
1997
  export declare interface NavItemProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
1998
+ /**
1999
+ * The icon to display in the nav item
2000
+ */
1967
2001
  icon?: default_2.ReactNode;
2002
+ /**
2003
+ * Whether the nav item is active
2004
+ */
1968
2005
  active?: boolean;
2006
+ /**
2007
+ * The render prop to render the nav item
2008
+ */
1969
2009
  render?: useRender.RenderProp<{
1970
2010
  active: boolean;
1971
2011
  icon?: default_2.ReactNode;
1972
2012
  }>;
2013
+ /**
2014
+ * The size of the nav item
2015
+ * @default "medium"
2016
+ */
1973
2017
  size?: "small" | "medium" | "large";
2018
+ /**
2019
+ * Whether to change the icon weight on active state
2020
+ * @default true
2021
+ */
2022
+ changeIconWeightOnActive?: boolean;
1974
2023
  }
1975
2024
 
1976
2025
  export { notification }
@@ -3159,6 +3208,13 @@ T | undefined,
3159
3208
  (value: T | ((prev: T | undefined) => T), ...args: K | []) => void
3160
3209
  ];
3161
3210
 
3211
+ /**
3212
+ * Get CSS variables from the document
3213
+ * @param variables CSS variable names
3214
+ * @returns CSS variable values
3215
+ */
3216
+ export declare const useCSSVariables: (variables: string | string[]) => Record<string, string>;
3217
+
3162
3218
  export declare const useDS: () => {
3163
3219
  theme: "light" | "dark";
3164
3220
  };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { componentMetadata as r, getComponentsByCategory as t } from "./metadata.js";
2
- import { Affix as p, Alert as m, Anchor as s, App as l, AutoComplete as f, Avatar as n, BackTop as x, Calendar as i, Card as C, Carousel as c, Cascader as T, Col as u, ColorPicker as d, ConfigProvider as g, DatePicker as S, Descriptions as h, Divider as A, Drawer as E, Dropdown as k, Flex as P, FloatButton as R, Grid as D, InputNumber as b, Layout as B, List as y, Mentions as L, Menu as v, Pagination as I, Popconfirm as M, Progress as F, QRCode as N, Rate as U, Result as w, Row as _, Skeleton as O, Space as q, Statistic as G, Steps as W, Tabs as K, TimePicker as Q, Timeline as V, Transfer as H, TreeSelect as j, Typography as z, Watermark as J, message as X, notification as Y, theme as Z, unstableSetRender as $, version as oo } from "antd";
2
+ import { Affix as p, Alert as m, Anchor as s, App as f, AutoComplete as l, Avatar as n, BackTop as x, Calendar as i, Card as C, Carousel as c, Cascader as T, Col as u, ColorPicker as d, ConfigProvider as g, DatePicker as S, Descriptions as h, Divider as A, Drawer as E, Dropdown as k, Flex as P, FloatButton as R, Grid as b, InputNumber as D, Layout as y, List as B, Mentions as L, Menu as v, Pagination as I, Popconfirm as M, Progress as F, QRCode as N, Rate as U, Result as w, Row as _, Skeleton as O, Space as W, Statistic as q, Steps as G, Tabs as V, TimePicker as K, Timeline as Q, Transfer as H, TreeSelect as j, Typography as z, Watermark as J, message as X, notification as Y, theme as Z, unstableSetRender as $, version as oo } from "antd";
3
3
  import { Select as 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/IconButton/component.js";
6
- import { Switch as lo } from "./components/Switch/component.js";
6
+ import { Switch as fo } from "./components/Switch/component.js";
7
7
  import { Checkbox as no } from "./components/Checkbox/component.js";
8
8
  import { Segmented as io } from "./components/Segmented/component.js";
9
9
  import { Table as co } from "./components/Table/component.js";
@@ -11,211 +11,217 @@ import { Tag as uo } from "./components/Tag/component.js";
11
11
  import { ThemeProvider as So } from "./components/ThemeProvider/component.js";
12
12
  import { Split as Ao, Splitter as Eo } from "./components/Splitter/component.js";
13
13
  import { Truncate as Po } from "./components/Truncate/component.js";
14
- import { DropdownMenu as Do } from "./components/DropdownMenu/component.js";
15
- import { clsx as Bo, cn as yo, cx as Lo } from "./components/utils/cn.js";
14
+ import { DropdownMenu as bo } from "./components/DropdownMenu/component.js";
15
+ import { clsx as yo, cn as Bo, cx as Lo } from "./components/utils/cn.js";
16
16
  import { reactNodeToString as Io } from "./components/utils/reactToString.js";
17
17
  import { isTracebackError as Fo } from "./components/utils/isTracebackError.js";
18
18
  import { isValidHexColor as Uo } from "./components/utils/colors.js";
19
- import { parseAntdPlacement as _o, useAntdCssVarClassname as Oo, useCls as qo, useGetPrefixCls as Go } from "./components/utils/antdUtils.js";
20
- import { WithAntdTokens as Ko } from "./components/utils/WithAntdTokens.js";
21
- import { Transition as Vo } from "./components/Transition/component.js";
22
- import { DefaultUpload as jo, Upload as zo } from "./components/Upload/component.js";
23
- import { useUploadItemRender as Xo } from "./components/Upload/hooks.js";
24
- import { ScrollArea as Zo } from "./components/ScrollArea/component.js";
25
- import { Popover as oe } from "./components/Popover/component.js";
26
- import { Slider as re } from "./components/Slider/component.js";
27
- import { Tooltip as ae } from "./components/Tooltip/component.js";
28
- import { Breadcrumb as me } from "./components/Breadcrumb/component.js";
29
- import { useUniqueKeysTree as le } from "./components/Tree/useUniqueKeysTree.js";
30
- import { getUniqueKeysFromOriginals as ne, processTreeData as xe } from "./components/Tree/helpers.js";
31
- import { Tree as Ce } from "./components/Tree/components.js";
32
- import { Spin as Te } from "./components/Spin/component.js";
33
- import { Empty as de, EmptyIcon as ge } from "./components/Empty/component.js";
34
- import { Form as he } from "./components/Form/component.js";
35
- import { Field as Ee } from "./components/Field/component.js";
36
- import { Tour as Pe } from "./components/Tour/component.js";
37
- import { Toast as De } from "./components/Toast/component.js";
38
- import { toast as Be, toastManager as ye } from "./components/Toast/function.js";
39
- import { VerticalCollapsiblePanel as ve } from "./components/VerticalCollapsiblePanel/component.js";
40
- import { PopupPanel as Me } from "./components/PopupPanel/component.js";
41
- import { CodeBlock as Ne } from "./components/CodeBlock/component.js";
42
- import { StackChild as we } from "./components/Stack/StackChild.js";
43
- import { Stack as Oe } from "./components/Stack/index.js";
44
- import { Collapse as Ge } from "./components/Collapse/component.js";
45
- import { Input as Ke } from "./components/Input/component.js";
46
- import { Badge as Ve, InternalBadge as He } from "./components/Badge/component.js";
47
- import { Radio as ze } from "./components/Radio/component.js";
48
- import { Button as Xe } from "./components/Button/component.js";
49
- import { DSRoot as Ze } from "./components/DSRoot/component.js";
50
- import { DSRootContextProvider as or, useDS as er } from "./components/DSRoot/context.js";
51
- import { DragDrop as tr, DragDropRoot as ar } from "./components/DragDrop/index.js";
52
- import { ColorSelect as mr } from "./components/ColorSelect/component.js";
53
- import { Nav as lr } from "./components/Nav/index.js";
54
- import { useForm as nr, useWatch as xr } from "antd/es/form/Form";
55
- import { useBreakpoint as Cr, useMessage as cr, useModal as Tr, useToken as ur } from "./components/hooks/antd.js";
56
- import { default as gr } from "antd/es/app/useApp";
57
- import { useAnimationsFinished as hr, useEnhancedEffect as Ar, useEventCallback as Er, useLatestRef as kr } from "./components/hooks/base-ui.js";
58
- import { useControlledState as Rr } from "./components/hooks/useControlledState.js";
59
- import { useCharts as br } from "./components/hooks/useCharts.js";
60
- import { antdColorTokens as yr, darkTheme as Lr, lightTheme as vr } from "./tokens/and-theme/tokens.js";
61
- import { categoricalChartColorKeys as Mr, categoricalChartColorTokens as Fr, categoricalChartsColors as Nr, chartColorTokens as Ur, rawChartColorTokens as wr } from "./tokens/charts/palettes/cloudscape.js";
62
- import { COLORBREWER as Or } from "./tokens/charts/palettes/colorbrewer.js";
63
- import { tab10 as Gr, tab20 as Wr, tab20b as Kr, tab20c as Qr } from "./tokens/charts/palettes/tableau.js";
64
- import { CATEGORICAL_PALETTES as Hr, CATEGORICAL_PALETTE_NAMES as jr, SEQUENTIAL_PALETTES as zr, SEQUENTIAL_PALETTE_NAMES as Jr, getAllCategoricalChartColors as Xr, getAllSequentialChartColors as Yr, getCategoricalChartColors as Zr, getSequentialChartColors as $r } from "./tokens/charts/palettes/index.js";
65
- import { getColorsByTheme as et, getTokensByTheme as rt, resolveColorTokens as tt } from "./tokens/utils.js";
19
+ import { parseAntdPlacement as _o, useAntdCssVarClassname as Oo, useCls as Wo, useGetPrefixCls as qo } from "./components/utils/antdUtils.js";
20
+ import { WithAntdTokens as Vo } from "./components/utils/WithAntdTokens.js";
21
+ import { changeThemeWithoutTransition as Qo } from "./components/utils/theme.js";
22
+ import { moveTypingCursorToEnd as jo } from "./components/utils/selectionRange.js";
23
+ import { Transition as Jo } from "./components/Transition/component.js";
24
+ import { DefaultUpload as Yo, Upload as Zo } from "./components/Upload/component.js";
25
+ import { useUploadItemRender as oe } from "./components/Upload/hooks.js";
26
+ import { ScrollArea as re } from "./components/ScrollArea/component.js";
27
+ import { Popover as ae } from "./components/Popover/component.js";
28
+ import { Slider as me } from "./components/Slider/component.js";
29
+ import { Tooltip as fe } from "./components/Tooltip/component.js";
30
+ import { Breadcrumb as ne } from "./components/Breadcrumb/component.js";
31
+ import { useUniqueKeysTree as ie } from "./components/Tree/useUniqueKeysTree.js";
32
+ import { getUniqueKeysFromOriginals as ce, processTreeData as Te } from "./components/Tree/helpers.js";
33
+ import { Tree as de } from "./components/Tree/components.js";
34
+ import { Spin as Se } from "./components/Spin/component.js";
35
+ import { Empty as Ae, EmptyIcon as Ee } from "./components/Empty/component.js";
36
+ import { Form as Pe } from "./components/Form/component.js";
37
+ import { Field as be } from "./components/Field/component.js";
38
+ import { Tour as ye } from "./components/Tour/component.js";
39
+ import { Toast as Le } from "./components/Toast/component.js";
40
+ import { toast as Ie, toastManager as Me } from "./components/Toast/function.js";
41
+ import { VerticalCollapsiblePanel as Ne } from "./components/VerticalCollapsiblePanel/component.js";
42
+ import { PopupPanel as we } from "./components/PopupPanel/component.js";
43
+ import { CodeBlock as Oe } from "./components/CodeBlock/component.js";
44
+ import { StackChild as qe } from "./components/Stack/StackChild.js";
45
+ import { Stack as Ve } from "./components/Stack/index.js";
46
+ import { Collapse as Qe } from "./components/Collapse/component.js";
47
+ import { Input as je } from "./components/Input/component.js";
48
+ import { Badge as Je, InternalBadge as Xe } from "./components/Badge/component.js";
49
+ import { Radio as Ze } from "./components/Radio/component.js";
50
+ import { Button as or } from "./components/Button/component.js";
51
+ import { DSRoot as rr } from "./components/DSRoot/component.js";
52
+ import { DSRootContextProvider as ar, useDS as pr } from "./components/DSRoot/context.js";
53
+ import { DragDrop as sr, DragDropRoot as fr } from "./components/DragDrop/index.js";
54
+ import { ColorSelect as nr } from "./components/ColorSelect/component.js";
55
+ import { Nav as ir } from "./components/Nav/index.js";
56
+ import { useForm as cr, useWatch as Tr } from "antd/es/form/Form";
57
+ import { useBreakpoint as dr, useMessage as gr, useModal as Sr, useToken as hr } from "./components/hooks/antd.js";
58
+ import { default as Er } from "antd/es/app/useApp";
59
+ import { useAnimationsFinished as Pr, useEnhancedEffect as Rr, useEventCallback as br, useLatestRef as Dr } from "./components/hooks/base-ui.js";
60
+ import { useControlledState as Br } from "./components/hooks/useControlledState.js";
61
+ import { useCharts as vr } from "./components/hooks/useCharts.js";
62
+ import { useCSSVariables as Mr } from "./components/hooks/useCSSVariables.js";
63
+ import { antdColorTokens as Nr, darkTheme as Ur, lightTheme as wr } from "./tokens/and-theme/tokens.js";
64
+ import { categoricalChartColorKeys as Or, categoricalChartColorTokens as Wr, categoricalChartsColors as qr, chartColorTokens as Gr, rawChartColorTokens as Vr } from "./tokens/charts/palettes/cloudscape.js";
65
+ import { COLORBREWER as Qr } from "./tokens/charts/palettes/colorbrewer.js";
66
+ import { tab10 as jr, tab20 as zr, tab20b as Jr, tab20c as Xr } from "./tokens/charts/palettes/tableau.js";
67
+ import { CATEGORICAL_PALETTES as Zr, CATEGORICAL_PALETTE_NAMES as $r, SEQUENTIAL_PALETTES as ot, SEQUENTIAL_PALETTE_NAMES as et, getAllCategoricalChartColors as rt, getAllSequentialChartColors as tt, getCategoricalChartColors as at, getSequentialChartColors as pt } from "./tokens/charts/palettes/index.js";
68
+ import { getColorsByTheme as st, getTokensByTheme as ft, resolveColorTokens as lt } from "./tokens/utils.js";
66
69
  export {
67
70
  p as Affix,
68
71
  m as Alert,
69
72
  s as Anchor,
70
- l as App,
71
- f as AutoComplete,
73
+ f as App,
74
+ l as AutoComplete,
72
75
  n as Avatar,
73
76
  x as BackTop,
74
- Ve as Badge,
75
- me as Breadcrumb,
76
- Xe as Button,
77
- Hr as CATEGORICAL_PALETTES,
78
- jr as CATEGORICAL_PALETTE_NAMES,
79
- Or as COLORBREWER,
77
+ Je as Badge,
78
+ ne as Breadcrumb,
79
+ or as Button,
80
+ Zr as CATEGORICAL_PALETTES,
81
+ $r as CATEGORICAL_PALETTE_NAMES,
82
+ Qr as COLORBREWER,
80
83
  i as Calendar,
81
84
  C as Card,
82
85
  c as Carousel,
83
86
  T as Cascader,
84
87
  no as Checkbox,
85
- Ne as CodeBlock,
88
+ Oe as CodeBlock,
86
89
  u as Col,
87
- Ge as Collapse,
90
+ Qe as Collapse,
88
91
  d as ColorPicker,
89
- mr as ColorSelect,
92
+ nr as ColorSelect,
90
93
  g as ConfigProvider,
91
- Ze as DSRoot,
92
- or as DSRootContextProvider,
94
+ rr as DSRoot,
95
+ ar as DSRootContextProvider,
93
96
  S as DatePicker,
94
- jo as DefaultUpload,
97
+ Yo as DefaultUpload,
95
98
  h as Descriptions,
96
99
  A as Divider,
97
- tr as DragDrop,
98
- ar as DragDropRoot,
100
+ sr as DragDrop,
101
+ fr as DragDropRoot,
99
102
  E as Drawer,
100
103
  k as Dropdown,
101
- Do as DropdownMenu,
102
- de as Empty,
103
- ge as EmptyIcon,
104
- Ee as Field,
104
+ bo as DropdownMenu,
105
+ Ae as Empty,
106
+ Ee as EmptyIcon,
107
+ be as Field,
105
108
  P as Flex,
106
109
  R as FloatButton,
107
- he as Form,
108
- D as Grid,
110
+ Pe as Form,
111
+ b as Grid,
109
112
  mo as IconButton,
110
- Ke as Input,
111
- b as InputNumber,
112
- He as InternalBadge,
113
- B as Layout,
114
- y as List,
113
+ je as Input,
114
+ D as InputNumber,
115
+ Xe as InternalBadge,
116
+ y as Layout,
117
+ B as List,
115
118
  L as Mentions,
116
119
  v as Menu,
117
120
  ao as Modal,
118
- lr as Nav,
121
+ ir as Nav,
119
122
  I as Pagination,
120
123
  M as Popconfirm,
121
- oe as Popover,
122
- Me as PopupPanel,
124
+ ae as Popover,
125
+ we as PopupPanel,
123
126
  F as Progress,
124
127
  N as QRCode,
125
- ze as Radio,
128
+ Ze as Radio,
126
129
  U as Rate,
127
130
  w as Result,
128
131
  _ as Row,
129
- zr as SEQUENTIAL_PALETTES,
130
- Jr as SEQUENTIAL_PALETTE_NAMES,
131
- Zo as ScrollArea,
132
+ ot as SEQUENTIAL_PALETTES,
133
+ et as SEQUENTIAL_PALETTE_NAMES,
134
+ re as ScrollArea,
132
135
  io as Segmented,
133
136
  ro as Select,
134
137
  O as Skeleton,
135
- re as Slider,
136
- q as Space,
137
- Te as Spin,
138
+ me as Slider,
139
+ W as Space,
140
+ Se as Spin,
138
141
  Ao as Split,
139
142
  Eo as Splitter,
140
- Oe as Stack,
141
- we as StackChild,
142
- G as Statistic,
143
- W as Steps,
144
- lo as Switch,
143
+ Ve as Stack,
144
+ qe as StackChild,
145
+ q as Statistic,
146
+ G as Steps,
147
+ fo as Switch,
145
148
  co as Table,
146
- K as Tabs,
149
+ V as Tabs,
147
150
  uo as Tag,
148
151
  So as ThemeProvider,
149
- Q as TimePicker,
150
- V as Timeline,
151
- De as Toast,
152
- ae as Tooltip,
153
- Pe as Tour,
152
+ K as TimePicker,
153
+ Q as Timeline,
154
+ Le as Toast,
155
+ fe as Tooltip,
156
+ ye as Tour,
154
157
  H as Transfer,
155
- Vo as Transition,
156
- Ce as Tree,
158
+ Jo as Transition,
159
+ de as Tree,
157
160
  j as TreeSelect,
158
161
  Po as Truncate,
159
162
  z as Typography,
160
- zo as Upload,
161
- ve as VerticalCollapsiblePanel,
163
+ Zo as Upload,
164
+ Ne as VerticalCollapsiblePanel,
162
165
  J as Watermark,
163
- Ko as WithAntdTokens,
164
- yr as antdColorTokens,
165
- Mr as categoricalChartColorKeys,
166
- Fr as categoricalChartColorTokens,
167
- Nr as categoricalChartsColors,
168
- Ur as chartColorTokens,
169
- Bo as clsx,
170
- yo as cn,
166
+ Vo as WithAntdTokens,
167
+ Nr as antdColorTokens,
168
+ Or as categoricalChartColorKeys,
169
+ Wr as categoricalChartColorTokens,
170
+ qr as categoricalChartsColors,
171
+ Qo as changeThemeWithoutTransition,
172
+ Gr as chartColorTokens,
173
+ yo as clsx,
174
+ Bo as cn,
171
175
  r as componentMetadata,
172
176
  Lo as cx,
173
- Lr as darkTheme,
174
- Xr as getAllCategoricalChartColors,
175
- Yr as getAllSequentialChartColors,
176
- Zr as getCategoricalChartColors,
177
- et as getColorsByTheme,
177
+ Ur as darkTheme,
178
+ rt as getAllCategoricalChartColors,
179
+ tt as getAllSequentialChartColors,
180
+ at as getCategoricalChartColors,
181
+ st as getColorsByTheme,
178
182
  t as getComponentsByCategory,
179
- $r as getSequentialChartColors,
180
- rt as getTokensByTheme,
181
- ne as getUniqueKeysFromOriginals,
183
+ pt as getSequentialChartColors,
184
+ ft as getTokensByTheme,
185
+ ce as getUniqueKeysFromOriginals,
182
186
  Fo as isTracebackError,
183
187
  Uo as isValidHexColor,
184
- vr as lightTheme,
188
+ wr as lightTheme,
185
189
  X as message,
190
+ jo as moveTypingCursorToEnd,
186
191
  Y as notification,
187
192
  _o as parseAntdPlacement,
188
- xe as processTreeData,
189
- wr as rawChartColorTokens,
193
+ Te as processTreeData,
194
+ Vr as rawChartColorTokens,
190
195
  Io as reactNodeToString,
191
- tt as resolveColorTokens,
192
- Gr as tab10,
193
- Wr as tab20,
194
- Kr as tab20b,
195
- Qr as tab20c,
196
+ lt as resolveColorTokens,
197
+ jr as tab10,
198
+ zr as tab20,
199
+ Jr as tab20b,
200
+ Xr as tab20c,
196
201
  Z as theme,
197
- Be as toast,
198
- ye as toastManager,
202
+ Ie as toast,
203
+ Me as toastManager,
199
204
  $ as unstableSetRender,
200
- hr as useAnimationsFinished,
205
+ Pr as useAnimationsFinished,
201
206
  Oo as useAntdCssVarClassname,
202
- gr as useApp,
203
- Cr as useBreakpoint,
204
- br as useCharts,
205
- qo as useCls,
206
- Rr as useControlledState,
207
- er as useDS,
208
- Ar as useEnhancedEffect,
209
- Er as useEventCallback,
210
- nr as useForm,
211
- Go as useGetPrefixCls,
212
- kr as useLatestRef,
213
- cr as useMessage,
214
- Tr as useModal,
215
- ur as useToken,
216
- le as useUniqueKeysTree,
217
- Xo as useUploadItemRender,
218
- xr as useWatch,
207
+ Er as useApp,
208
+ dr as useBreakpoint,
209
+ Mr as useCSSVariables,
210
+ vr as useCharts,
211
+ Wo as useCls,
212
+ Br as useControlledState,
213
+ pr as useDS,
214
+ Rr as useEnhancedEffect,
215
+ br as useEventCallback,
216
+ cr as useForm,
217
+ qo as useGetPrefixCls,
218
+ Dr as useLatestRef,
219
+ gr as useMessage,
220
+ Sr as useModal,
221
+ hr as useToken,
222
+ ie as useUniqueKeysTree,
223
+ oe as useUploadItemRender,
224
+ Tr as useWatch,
219
225
  oo as version
220
226
  };
221
227
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@ const o = {
3
3
  // Text colors
4
4
  colorText: {
5
5
  light: "rgba(0, 0, 0, 0.88)",
6
- dark: "rgba(255, 255, 255, 0.85)"
6
+ dark: "rgba(255, 255, 255, 0.88)"
7
7
  },
8
8
  colorTextSecondary: {
9
9
  light: "rgba(0, 0, 0, 0.65)",
@@ -234,38 +234,38 @@ const o = {
234
234
  },
235
235
  // Icon colors
236
236
  colorIcon: {
237
- light: "rgba(0, 0, 0, 0.58)",
237
+ light: "rgba(0, 0, 0, 0.50)",
238
238
  dark: "rgba(255, 255, 255, 0.58)"
239
239
  },
240
240
  colorIconHover: {
241
- light: "rgba(0, 0, 0, 0.88)",
241
+ light: "rgba(0, 0, 0, 0.80)",
242
242
  dark: "rgba(255, 255, 255, 0.88)"
243
243
  },
244
+ colorBgBase: {
245
+ light: "#FFFFFF",
246
+ dark: "#111113"
247
+ },
244
248
  // Background colors
245
249
  colorBgContainer: {
246
250
  light: "#FFFFFF",
247
- dark: "#26262C"
251
+ dark: "#242429"
248
252
  },
249
253
  colorBgElevated: {
250
254
  light: "#FFFFFF",
251
- dark: "#2F2F37"
255
+ dark: "#2B2B31"
252
256
  },
253
257
  colorBgLayout: {
254
- light: "#F5F5F5",
255
- dark: "#1A1A1E"
258
+ light: "#F4F4F5",
259
+ dark: "#18181B"
256
260
  },
257
261
  colorBgSpotlight: {
258
262
  light: "rgba(0, 0, 0, 0.85)",
259
- dark: "#505D5D"
263
+ dark: "#484851"
260
264
  },
261
265
  colorBgMask: {
262
266
  light: "rgba(0, 0, 0, 0.45)",
263
267
  dark: "rgba(0, 0, 0, 0.45)"
264
268
  },
265
- colorBgBase: {
266
- light: "#FFFFFF",
267
- dark: "#13131A"
268
- },
269
269
  // Control
270
270
  controlOutline: {
271
271
  light: "rgba(0, 0, 0, 0.12)",