@bioturing/components 0.17.1 → 0.18.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.
@@ -1 +1 @@
1
- @layer components{.ds-tag{display:inline-flex;align-items:center;font-size:var(--ds-font-size-sm);padding:.0625rem .4375rem}.ds-tag[data-active]{background-color:var(--ds-color-primary-bg);border-color:var(--ds-color-primary);color:var(--ds-color-primary)}.ds-tag .ds-tag-close-icon{color:var(--ds-color-icon)}.ds-tag.ds-tag-medium{padding:.1875rem .4375rem}.ds-tag.ds-tag-large{font-size:var(--ds-font-size);padding:.1875rem .4375rem}.ds-tag:is(.ds-tag-magenta,.ds-tag-red,.ds-tag-volcano,.ds-tag-orange,.ds-tag-gold,.ds-tag-lime,.ds-tag-green,.ds-tag-cyan,.ds-tag-blue,.ds-tag-geekblue,.ds-tag-purple) .ds-tag-close-icon{color:currentColor}.ds-tag.ds-tag-empty .ds-tag-close-icon{margin-left:0}}
1
+ @layer components{.ds-tag{display:inline-flex;align-items:center;font-size:var(--ds-font-size-sm);padding:.0625rem .4375rem}.ds-tag[data-active]{background-color:var(--ds-color-primary-bg);border-color:var(--ds-color-primary);color:var(--ds-color-primary)}.ds-tag .ds-tag-close-icon{color:var(--ds-color-icon)}.ds-tag.ds-tag-medium{padding:.1875rem .4375rem}.ds-tag.ds-tag-large{font-size:var(--ds-font-size);padding:.1875rem .4375rem}.ds-tag:is(.ds-tag-magenta,.ds-tag-red,.ds-tag-volcano,.ds-tag-orange,.ds-tag-gold,.ds-tag-lime,.ds-tag-green,.ds-tag-cyan,.ds-tag-blue,.ds-tag-geekblue,.ds-tag-purple) .ds-tag-close-icon{color:currentColor}.ds-tag.ds-tag-empty .ds-tag-close-icon{margin-left:0}.ds-tag .ds-tag-icon{margin-right:.25rem}}
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ function o(t) {
3
+ let e, n;
4
+ document.createRange && (e = document.createRange(), e.selectNodeContents(t), e.collapse(!1), n = window.getSelection(), n && (n.removeAllRanges(), n.addRange(e)));
5
+ }
6
+ export {
7
+ o as moveTypingCursorToEnd
8
+ };
9
+ //# sourceMappingURL=selectionRange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectionRange.js","sources":["../../../src/components/utils/selectionRange.ts"],"sourcesContent":["\"use client\";\n\nexport function moveTypingCursorToEnd(contentEditableElement: HTMLElement) {\n let range: Range;\n let selection: Selection | null;\n if (document.createRange) {\n range = document.createRange();\n range.selectNodeContents(contentEditableElement); //Select the entire contents of the element with the range\n range.collapse(false); //collapse the range to the end point. false means collapse to end rather than the start\n selection = window.getSelection(); //get the selection object (allows you to change selection)\n if (selection) {\n selection.removeAllRanges(); //remove any selections already made\n selection.addRange(range); //make the range you have just created the visible selection\n }\n }\n}\n"],"names":["moveTypingCursorToEnd","contentEditableElement","range","selection"],"mappings":";AAEO,SAASA,EAAsBC,GAAqC;AACrE,MAAAC,GACAC;AACJ,EAAI,SAAS,gBACXD,IAAQ,SAAS,YAAY,GAC7BA,EAAM,mBAAmBD,CAAsB,GAC/CC,EAAM,SAAS,EAAK,GACpBC,IAAY,OAAO,aAAa,GAC5BA,MACFA,EAAU,gBAAgB,GAC1BA,EAAU,SAASD,CAAK;AAG9B;"}
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { flushSync as e } from "react-dom";
3
+ const i = (n) => {
4
+ const t = document.createElement("style");
5
+ t.appendChild(
6
+ document.createTextNode(
7
+ `* {
8
+ -webkit-transition: none !important;
9
+ -moz-transition: none !important;
10
+ -o-transition: none !important;
11
+ -ms-transition: none !important;
12
+ transition: none !important;
13
+ }`
14
+ )
15
+ ), document.head.appendChild(t), e(() => {
16
+ n();
17
+ }), window.getComputedStyle(t).opacity, document.head.removeChild(t);
18
+ };
19
+ export {
20
+ i as changeThemeWithoutTransition
21
+ };
22
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sources":["../../../src/components/utils/theme.ts"],"sourcesContent":["\"use client\";\n\nimport { flushSync } from \"react-dom\";\n\n/**\n * Changes the theme without transition\n * @param fn Callback function to change the theme\n */\nexport const changeThemeWithoutTransition = (fn: () => void) => {\n // https://paco.me/writing/disable-theme-transitions\n const css = document.createElement(\"style\");\n css.appendChild(\n document.createTextNode(\n `* {\n -webkit-transition: none !important;\n -moz-transition: none !important;\n -o-transition: none !important;\n -ms-transition: none !important;\n transition: none !important;\n }`\n )\n );\n document.head.appendChild(css);\n flushSync(() => {\n fn();\n });\n // force reflow\n const _ = window.getComputedStyle(css).opacity;\n document.head.removeChild(css);\n};\n"],"names":["changeThemeWithoutTransition","fn","css","flushSync"],"mappings":";;AAQa,MAAAA,IAA+B,CAACC,MAAmB;AAExD,QAAAC,IAAM,SAAS,cAAc,OAAO;AACtC,EAAAA,EAAA;AAAA,IACF,SAAS;AAAA,MACP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAA;AAAA,EAQJ,GACS,SAAA,KAAK,YAAYA,CAAG,GAC7BC,EAAU,MAAM;AACX,IAAAF,EAAA;AAAA,EAAA,CACJ,GAES,OAAO,iBAAiBC,CAAG,EAAE,SAC9B,SAAA,KAAK,YAAYA,CAAG;AAC/B;"}
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';
@@ -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,6 +1968,8 @@ 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>;
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 D, InputNumber as b, 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 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";
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";
@@ -12,210 +12,214 @@ 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
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";
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";
19
+ import { parseAntdPlacement as _o, useAntdCssVarClassname as Oo, useCls as Wo, useGetPrefixCls as qo } from "./components/utils/antdUtils.js";
20
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";
21
+ import { changeThemeWithoutTransition as Vo } 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 De } 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 Ke } from "./components/Stack/index.js";
46
+ import { Collapse as Ve } 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 Dr, useLatestRef as br } 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 { antdColorTokens as Mr, darkTheme as Fr, lightTheme as Nr } from "./tokens/and-theme/tokens.js";
63
+ import { categoricalChartColorKeys as wr, categoricalChartColorTokens as _r, categoricalChartsColors as Or, chartColorTokens as Wr, rawChartColorTokens as qr } from "./tokens/charts/palettes/cloudscape.js";
64
+ import { COLORBREWER as Kr } from "./tokens/charts/palettes/colorbrewer.js";
65
+ import { tab10 as Vr, tab20 as Hr, tab20b as jr, tab20c as zr } from "./tokens/charts/palettes/tableau.js";
66
+ import { CATEGORICAL_PALETTES as Xr, CATEGORICAL_PALETTE_NAMES as Yr, SEQUENTIAL_PALETTES as Zr, SEQUENTIAL_PALETTE_NAMES as $r, getAllCategoricalChartColors as ot, getAllSequentialChartColors as et, getCategoricalChartColors as rt, getSequentialChartColors as tt } from "./tokens/charts/palettes/index.js";
67
+ import { getColorsByTheme as pt, getTokensByTheme as mt, resolveColorTokens as st } from "./tokens/utils.js";
66
68
  export {
67
69
  p as Affix,
68
70
  m as Alert,
69
71
  s as Anchor,
70
- l as App,
71
- f as AutoComplete,
72
+ f as App,
73
+ l as AutoComplete,
72
74
  n as Avatar,
73
75
  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,
76
+ Je as Badge,
77
+ ne as Breadcrumb,
78
+ or as Button,
79
+ Xr as CATEGORICAL_PALETTES,
80
+ Yr as CATEGORICAL_PALETTE_NAMES,
81
+ Kr as COLORBREWER,
80
82
  i as Calendar,
81
83
  C as Card,
82
84
  c as Carousel,
83
85
  T as Cascader,
84
86
  no as Checkbox,
85
- Ne as CodeBlock,
87
+ Oe as CodeBlock,
86
88
  u as Col,
87
- Ge as Collapse,
89
+ Ve as Collapse,
88
90
  d as ColorPicker,
89
- mr as ColorSelect,
91
+ nr as ColorSelect,
90
92
  g as ConfigProvider,
91
- Ze as DSRoot,
92
- or as DSRootContextProvider,
93
+ rr as DSRoot,
94
+ ar as DSRootContextProvider,
93
95
  S as DatePicker,
94
- jo as DefaultUpload,
96
+ Yo as DefaultUpload,
95
97
  h as Descriptions,
96
98
  A as Divider,
97
- tr as DragDrop,
98
- ar as DragDropRoot,
99
+ sr as DragDrop,
100
+ fr as DragDropRoot,
99
101
  E as Drawer,
100
102
  k as Dropdown,
101
103
  Do as DropdownMenu,
102
- de as Empty,
103
- ge as EmptyIcon,
104
- Ee as Field,
104
+ Ae as Empty,
105
+ Ee as EmptyIcon,
106
+ De as Field,
105
107
  P as Flex,
106
108
  R as FloatButton,
107
- he as Form,
109
+ Pe as Form,
108
110
  D as Grid,
109
111
  mo as IconButton,
110
- Ke as Input,
112
+ je as Input,
111
113
  b as InputNumber,
112
- He as InternalBadge,
113
- B as Layout,
114
- y as List,
114
+ Xe as InternalBadge,
115
+ y as Layout,
116
+ B as List,
115
117
  L as Mentions,
116
118
  v as Menu,
117
119
  ao as Modal,
118
- lr as Nav,
120
+ ir as Nav,
119
121
  I as Pagination,
120
122
  M as Popconfirm,
121
- oe as Popover,
122
- Me as PopupPanel,
123
+ ae as Popover,
124
+ we as PopupPanel,
123
125
  F as Progress,
124
126
  N as QRCode,
125
- ze as Radio,
127
+ Ze as Radio,
126
128
  U as Rate,
127
129
  w as Result,
128
130
  _ as Row,
129
- zr as SEQUENTIAL_PALETTES,
130
- Jr as SEQUENTIAL_PALETTE_NAMES,
131
- Zo as ScrollArea,
131
+ Zr as SEQUENTIAL_PALETTES,
132
+ $r as SEQUENTIAL_PALETTE_NAMES,
133
+ re as ScrollArea,
132
134
  io as Segmented,
133
135
  ro as Select,
134
136
  O as Skeleton,
135
- re as Slider,
136
- q as Space,
137
- Te as Spin,
137
+ me as Slider,
138
+ W as Space,
139
+ Se as Spin,
138
140
  Ao as Split,
139
141
  Eo as Splitter,
140
- Oe as Stack,
141
- we as StackChild,
142
- G as Statistic,
143
- W as Steps,
144
- lo as Switch,
142
+ Ke as Stack,
143
+ qe as StackChild,
144
+ q as Statistic,
145
+ G as Steps,
146
+ fo as Switch,
145
147
  co as Table,
146
148
  K as Tabs,
147
149
  uo as Tag,
148
150
  So as ThemeProvider,
149
151
  Q as TimePicker,
150
152
  V as Timeline,
151
- De as Toast,
152
- ae as Tooltip,
153
- Pe as Tour,
153
+ Le as Toast,
154
+ fe as Tooltip,
155
+ ye as Tour,
154
156
  H as Transfer,
155
- Vo as Transition,
156
- Ce as Tree,
157
+ Jo as Transition,
158
+ de as Tree,
157
159
  j as TreeSelect,
158
160
  Po as Truncate,
159
161
  z as Typography,
160
- zo as Upload,
161
- ve as VerticalCollapsiblePanel,
162
+ Zo as Upload,
163
+ Ne as VerticalCollapsiblePanel,
162
164
  J as Watermark,
163
165
  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
+ Mr as antdColorTokens,
167
+ wr as categoricalChartColorKeys,
168
+ _r as categoricalChartColorTokens,
169
+ Or as categoricalChartsColors,
170
+ Vo as changeThemeWithoutTransition,
171
+ Wr as chartColorTokens,
172
+ yo as clsx,
173
+ Bo as cn,
171
174
  r as componentMetadata,
172
175
  Lo as cx,
173
- Lr as darkTheme,
174
- Xr as getAllCategoricalChartColors,
175
- Yr as getAllSequentialChartColors,
176
- Zr as getCategoricalChartColors,
177
- et as getColorsByTheme,
176
+ Fr as darkTheme,
177
+ ot as getAllCategoricalChartColors,
178
+ et as getAllSequentialChartColors,
179
+ rt as getCategoricalChartColors,
180
+ pt as getColorsByTheme,
178
181
  t as getComponentsByCategory,
179
- $r as getSequentialChartColors,
180
- rt as getTokensByTheme,
181
- ne as getUniqueKeysFromOriginals,
182
+ tt as getSequentialChartColors,
183
+ mt as getTokensByTheme,
184
+ ce as getUniqueKeysFromOriginals,
182
185
  Fo as isTracebackError,
183
186
  Uo as isValidHexColor,
184
- vr as lightTheme,
187
+ Nr as lightTheme,
185
188
  X as message,
189
+ jo as moveTypingCursorToEnd,
186
190
  Y as notification,
187
191
  _o as parseAntdPlacement,
188
- xe as processTreeData,
189
- wr as rawChartColorTokens,
192
+ Te as processTreeData,
193
+ qr as rawChartColorTokens,
190
194
  Io as reactNodeToString,
191
- tt as resolveColorTokens,
192
- Gr as tab10,
193
- Wr as tab20,
194
- Kr as tab20b,
195
- Qr as tab20c,
195
+ st as resolveColorTokens,
196
+ Vr as tab10,
197
+ Hr as tab20,
198
+ jr as tab20b,
199
+ zr as tab20c,
196
200
  Z as theme,
197
- Be as toast,
198
- ye as toastManager,
201
+ Ie as toast,
202
+ Me as toastManager,
199
203
  $ as unstableSetRender,
200
- hr as useAnimationsFinished,
204
+ Pr as useAnimationsFinished,
201
205
  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,
206
+ Er as useApp,
207
+ dr as useBreakpoint,
208
+ vr as useCharts,
209
+ Wo as useCls,
210
+ Br as useControlledState,
211
+ pr as useDS,
212
+ Rr as useEnhancedEffect,
213
+ Dr as useEventCallback,
214
+ cr as useForm,
215
+ qo as useGetPrefixCls,
216
+ br as useLatestRef,
217
+ gr as useMessage,
218
+ Sr as useModal,
219
+ hr as useToken,
220
+ ie as useUniqueKeysTree,
221
+ oe as useUploadItemRender,
222
+ Tr as useWatch,
219
223
  oo as version
220
224
  };
221
225
  //# 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.17.1",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",