@bioturing/components 0.20.0 → 0.20.2

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
@@ -5,7 +5,6 @@ import { Alert } from 'antd';
5
5
  import { AlertProps } from 'antd';
6
6
  import { AliasToken } from 'antd/es/theme/internal';
7
7
  import { Anchor } from 'antd';
8
- import { AnchorHTMLAttributes } from 'react';
9
8
  import { AnchorLinkProps } from 'antd';
10
9
  import { AnchorProps } from 'antd';
11
10
  import { App } from 'antd';
@@ -265,8 +264,6 @@ export { AnchorLinkProps }
265
264
 
266
265
  export { AnchorProps }
267
266
 
268
- declare type AnchorSpecificProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "rel" | "download" | "hrefLang" | "referrerPolicy">;
269
-
270
267
  export declare const antdColorTokens: ColorTokens;
271
268
 
272
269
  declare type AnyFunction = (...args: any[]) => any;
@@ -1556,6 +1553,14 @@ export { DrawerProps }
1556
1553
 
1557
1554
  export { Dropdown }
1558
1555
 
1556
+ /**
1557
+ * Used for dropdowns that usually strictly prefer top/bottom placements and
1558
+ * use `var(--available-height)` to limit their height.
1559
+ */
1560
+ export declare const DROPDOWN_COLLISION_AVOIDANCE: {
1561
+ readonly fallbackAxisSide: "none";
1562
+ };
1563
+
1559
1564
  export declare const DropdownMenu: ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, className, itemRender, classNames, size, showSearch, searchProps, }: DropdownMenuProps) => JSX.Element;
1560
1565
 
1561
1566
  export declare type DropdownMenuItemType = {
@@ -1663,7 +1668,7 @@ export declare interface DSRootProps extends ThemeProviderProps {
1663
1668
  appendClassesTo?: string | HTMLElement;
1664
1669
  }
1665
1670
 
1666
- declare type ElementTypeToDOMType<T extends default_2.ElementType> = T extends keyof JSX_2.IntrinsicElements ? JSX_2.IntrinsicElements[T] extends default_2.DetailedHTMLProps<infer Props, infer Element> ? Element : never : never;
1671
+ export declare type ElementTypeToDOMType<T extends React.ElementType> = T extends keyof JSX_2.IntrinsicElements ? JSX_2.IntrinsicElements[T] extends React.DetailedHTMLProps<infer _Props, infer Element> ? Element : never : never;
1667
1672
 
1668
1673
  export declare const Empty: ({ image, size, className, ...rest }: EmptyProps) => JSX.Element;
1669
1674
 
@@ -1722,6 +1727,10 @@ export declare const Form: (<Values = any>({ ...rest }: InternalFormProps<Values
1722
1727
  export { FormInstance }
1723
1728
 
1724
1729
  export declare interface FormItemProps<Values = unknown> extends FormItemProps_2<Values> {
1730
+ /**
1731
+ * Whether the field is optional. If true, the label will be marked as optional.
1732
+ * @default false
1733
+ */
1725
1734
  optionalMark?: boolean | React.ReactNode;
1726
1735
  }
1727
1736
 
@@ -1770,9 +1779,18 @@ export { GlobalToken }
1770
1779
 
1771
1780
  export { Grid }
1772
1781
 
1773
- export declare const IconButton: IconButtonComponent;
1782
+ export declare const IconButton: <E extends ElementType = "button">(props: IconButtonProps<E> & {
1783
+ ref?: ComponentPropsWithRef<E>["ref"];
1784
+ }) => ReturnType<typeof IconButtonImpl>;
1785
+
1786
+ /**
1787
+ * Implementation of the IconButton component
1788
+ */
1789
+ declare const IconButtonImpl: <E extends ElementType = "button">({ label, size, negativeMargin, children, className, tooltipProps, as, href, target, rel, download, hrefLang, referrerPolicy, loading, render, ...rest }: IconButtonProps<E>, ref: Ref<ElementTypeToDOMType<E>>) => JSX.Element;
1774
1790
 
1775
- declare type IconButtonBaseProps = {
1791
+ export declare type IconButtonProps<E extends ElementType = "button"> = WithRenderPropProps<E, {
1792
+ loading: boolean;
1793
+ }> & {
1776
1794
  /**
1777
1795
  * Label text or element to display within tooltip
1778
1796
  * @default undefined
@@ -1797,25 +1815,8 @@ declare type IconButtonBaseProps = {
1797
1815
  * Props to pass to the Tooltip component when wrapping the button
1798
1816
  */
1799
1817
  tooltipProps?: TooltipProps;
1800
- /**
1801
- * Custom render function for the button
1802
- */
1803
- render?: useRender.RenderProp<{
1804
- loading: boolean;
1805
- }>;
1806
1818
  };
1807
1819
 
1808
- /**
1809
- * Type for wrapping the forwardRef implementation
1810
- */
1811
- declare type IconButtonComponent = <E extends ElementType = "button">(props: IconButtonProps<E> & {
1812
- ref?: ComponentPropsWithRef<E>["ref"];
1813
- }) => ReactElement;
1814
-
1815
- declare type IconButtonOwnProps<E extends ElementType = ElementType> = WithHrefProps<E> | WithoutHrefProps<E>;
1816
-
1817
- export declare type IconButtonProps<E extends ElementType = "button"> = IconButtonOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, keyof IconButtonOwnProps<E>>;
1818
-
1819
1820
  declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, className, variant, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
1820
1821
 
1821
1822
  declare function InnerToast({ toast, }: {
@@ -2090,8 +2091,9 @@ export declare interface PasswordProps extends PasswordProps_2 {
2090
2091
  }
2091
2092
 
2092
2093
  declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2093
- render?: useRender_2.RenderProp;
2094
+ render?: useRender_2.RenderProp<Record<string, unknown>>;
2094
2095
  as?: "div";
2096
+ state?: Record<string, unknown>;
2095
2097
  } & {
2096
2098
  /**
2097
2099
  * Accessible label for this command menu. Not shown visibly.
@@ -2134,8 +2136,9 @@ declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2
2134
2136
  vimBindings?: boolean;
2135
2137
  } & default_2.RefAttributes<HTMLDivElement>> & {
2136
2138
  List: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2137
- render?: useRender_2.RenderProp;
2139
+ render?: useRender_2.RenderProp<Record<string, unknown>>;
2138
2140
  as?: "div";
2141
+ state?: Record<string, unknown>;
2139
2142
  } & {
2140
2143
  /**
2141
2144
  * Accessible label for this List of suggestions. Not shown visibly.
@@ -2176,15 +2179,17 @@ declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2
2176
2179
  forceMount?: boolean;
2177
2180
  } & default_2.RefAttributes<HTMLDivElement>>;
2178
2181
  Separator: default_2.ForwardRefExoticComponent<Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2179
- render?: useRender_2.RenderProp;
2182
+ render?: useRender_2.RenderProp<Record<string, unknown>>;
2180
2183
  as?: "div";
2184
+ state?: Record<string, unknown>;
2181
2185
  } & {
2182
2186
  /** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
2183
2187
  alwaysRender?: boolean;
2184
2188
  } & default_2.RefAttributes<HTMLDivElement>>;
2185
2189
  Dialog: default_2.ForwardRefExoticComponent<Dialog.Root.Props & Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2186
- render?: useRender_2.RenderProp;
2190
+ render?: useRender_2.RenderProp<Record<string, unknown>>;
2187
2191
  as?: "div";
2192
+ state?: Record<string, unknown>;
2188
2193
  } & {
2189
2194
  /**
2190
2195
  * Accessible label for this command menu. Not shown visibly.
@@ -2234,12 +2239,14 @@ declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2
2234
2239
  container?: HTMLElement;
2235
2240
  } & default_2.RefAttributes<HTMLDivElement>>;
2236
2241
  Empty: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2237
- render?: useRender_2.RenderProp;
2242
+ render?: useRender_2.RenderProp<Record<string, unknown>>;
2238
2243
  as?: "div";
2244
+ state?: Record<string, unknown>;
2239
2245
  } & default_2.RefAttributes<HTMLDivElement>>;
2240
2246
  Loading: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2241
- render?: useRender_2.RenderProp;
2247
+ render?: useRender_2.RenderProp<Record<string, unknown>>;
2242
2248
  as?: "div";
2249
+ state?: Record<string, unknown>;
2243
2250
  } & {
2244
2251
  /** Estimated progress of loading asynchronous options. */
2245
2252
  progress?: number;
@@ -2264,6 +2271,14 @@ export declare interface PopoverProps extends PopoverProps_2 {
2264
2271
  arrow?: PopoverProps_2["arrow"];
2265
2272
  }
2266
2273
 
2274
+ /**
2275
+ * Used by regular popups that usually aren't scrollable and are allowed to
2276
+ * freely flip to any axis of placement.
2277
+ */
2278
+ export declare const POPUP_COLLISION_AVOIDANCE: {
2279
+ readonly fallbackAxisSide: "end";
2280
+ };
2281
+
2267
2282
  export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, classNames, modal, closeOnClickOutside, }: PopupPanelProps) => JSX.Element;
2268
2283
 
2269
2284
  export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRef<"div">, "title" | "content" | "children"> {
@@ -3567,27 +3582,16 @@ export declare type WidthAntdTokensProps<T extends IntrinsicElement> = {
3567
3582
 
3568
3583
  export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) => null;
3569
3584
 
3570
- declare type WithHrefProps<E extends ElementType = "a"> = IconButtonBaseProps & {
3571
- href: string;
3572
- as?: E;
3573
- } & AnchorSpecificProps;
3574
-
3575
- declare type WithoutHrefProps<E extends ElementType = "button"> = IconButtonBaseProps & {
3576
- href?: undefined;
3577
- as?: E;
3578
- } & {
3579
- [K in keyof AnchorSpecificProps]?: never;
3580
- };
3581
-
3582
- export declare const WithRenderProp: <T extends default_2.ElementType = "div">(props: WithRenderPropProps<T> & {
3585
+ export declare const WithRenderProp: <T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>>(props: WithRenderPropProps<T, State> & {
3583
3586
  ref?: default_2.Ref<ElementTypeToDOMType<T>>;
3584
3587
  }) => ReturnType<typeof WithRenderPropInner>;
3585
3588
 
3586
- declare const WithRenderPropInner: <T extends default_2.ElementType = "div">(props: WithRenderPropProps<T>, ref: default_2.ForwardedRef<T>) => null;
3589
+ declare const WithRenderPropInner: <T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>>(props: WithRenderPropProps<T, State>, ref: default_2.ForwardedRef<T>) => null;
3587
3590
 
3588
- export declare type WithRenderPropProps<T extends default_2.ElementType = "div"> = default_2.ComponentPropsWithoutRef<T> & {
3589
- render?: useRender.RenderProp;
3591
+ export declare type WithRenderPropProps<T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>> = default_2.ComponentPropsWithoutRef<T> & {
3592
+ render?: useRender.RenderProp<State>;
3590
3593
  as?: T;
3594
+ state?: State;
3591
3595
  };
3592
3596
 
3593
3597
  export { }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { componentMetadata as e, getComponentsByCategory as t } from "./metadata.js";
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 W, Skeleton as _, Space as O, 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";
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 S, DatePicker as g, Descriptions as h, Divider as A, Drawer as E, Dropdown as P, Flex as k, FloatButton as D, Grid as R, InputNumber as L, Layout as I, List as b, Mentions as O, Menu as y, Pagination as B, Popconfirm as N, Progress as v, QRCode as M, Rate as _, Result as U, Row as F, Skeleton as W, Space as w, Statistic as V, Steps as q, Tabs as G, 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 eo } from "./components/select/component.js";
4
4
  import { Modal as ao } from "./components/modal/index.js";
5
5
  import { IconButton as mo } from "./components/icon-button/component.js";
@@ -8,66 +8,67 @@ 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";
10
10
  import { Tag as uo } from "./components/tag/component.js";
11
- import { ThemeProvider as So } from "./components/theme-provider/component.js";
11
+ import { ThemeProvider as go } from "./components/theme-provider/component.js";
12
12
  import { Split as Ao, Splitter as Eo } from "./components/splitter/component.js";
13
- import { Truncate as Po } from "./components/truncate/component.js";
14
- import { DropdownMenu as bo } from "./components/dropdown-menu/component.js";
15
- import { clsx as yo, cn as Bo, cx as Lo } from "./components/utils/cn.js";
16
- import { reactNodeToString as Io } from "./components/utils/reactToString.js";
17
- import { isTracebackError as Fo } from "./components/utils/isTracebackError.js";
18
- import { isValidHexColor as Uo } from "./components/utils/colors.js";
19
- import { WithRenderProp as Wo } from "./components/utils/WithRenderProp.js";
20
- import { parseAntdPlacement as Oo, useAntdCssVarClassname as qo, useCls as Go, useGetPrefixCls as Vo } from "./components/utils/antdUtils.js";
13
+ import { Truncate as ko } from "./components/truncate/component.js";
14
+ import { DropdownMenu as Ro } from "./components/dropdown-menu/component.js";
15
+ import { clsx as Io, cn as bo, cx as Oo } from "./components/utils/cn.js";
16
+ import { reactNodeToString as Bo } from "./components/utils/reactToString.js";
17
+ import { isTracebackError as vo } from "./components/utils/isTracebackError.js";
18
+ import { isValidHexColor as _o } from "./components/utils/colors.js";
19
+ import { WithRenderProp as Fo } from "./components/utils/WithRenderProp.js";
20
+ import { parseAntdPlacement as wo, useAntdCssVarClassname as Vo, useCls as qo, useGetPrefixCls as Go } from "./components/utils/antdUtils.js";
21
21
  import { WithAntdTokens as Qo } from "./components/utils/WithAntdTokens.js";
22
22
  import { changeThemeWithoutTransition as jo } from "./components/utils/theme.js";
23
23
  import { moveTypingCursorToEnd as Jo } from "./components/utils/selectionRange.js";
24
- import { Transition as Yo } from "./components/transition/component.js";
25
- import { DefaultUpload as $o, Upload as or } from "./components/upload/component.js";
26
- import { useUploadItemRender as er } from "./components/upload/hooks.js";
27
- import { ScrollArea as ar } from "./components/scroll-area/component.js";
28
- import { Popover as mr } from "./components/popover/component.js";
29
- import { Slider as fr } from "./components/slider/component.js";
30
- import { Tooltip as nr } from "./components/tooltip/component.js";
31
- import { Breadcrumb as ir } from "./components/breadcrumb/component.js";
32
- import { useUniqueKeysTree as cr } from "./components/tree/useUniqueKeysTree.js";
33
- import { getUniqueKeysFromOriginals as ur, processTreeData as dr } from "./components/tree/helpers.js";
34
- import { Tree as Sr } from "./components/tree/components.js";
35
- import { Spin as Ar } from "./components/spin/component.js";
36
- import { Empty as kr, EmptyIcon as Pr } from "./components/empty/component.js";
24
+ import { DROPDOWN_COLLISION_AVOIDANCE as Yo, POPUP_COLLISION_AVOIDANCE as Zo } from "./components/utils/constants.js";
25
+ import { Transition as or } from "./components/transition/component.js";
26
+ import { DefaultUpload as er, Upload as tr } from "./components/upload/component.js";
27
+ import { useUploadItemRender as pr } from "./components/upload/hooks.js";
28
+ import { ScrollArea as sr } from "./components/scroll-area/component.js";
29
+ import { Popover as lr } from "./components/popover/component.js";
30
+ import { Slider as xr } from "./components/slider/component.js";
31
+ import { Tooltip as Cr } from "./components/tooltip/component.js";
32
+ import { Breadcrumb as Tr } from "./components/breadcrumb/component.js";
33
+ import { useUniqueKeysTree as dr } from "./components/tree/useUniqueKeysTree.js";
34
+ import { getUniqueKeysFromOriginals as gr, processTreeData as hr } from "./components/tree/helpers.js";
35
+ import { Tree as Er } from "./components/tree/components.js";
36
+ import { Spin as kr } from "./components/spin/component.js";
37
+ import { Empty as Rr, EmptyIcon as Lr } from "./components/empty/component.js";
37
38
  import { Form as br } from "./components/form/component.js";
38
39
  import { Field as yr } from "./components/field/component.js";
39
- import { Tour as Lr } from "./components/tour/component.js";
40
- import { Toast as Ir } from "./components/toast/component.js";
41
- import { toast as Fr, toastManager as Nr } from "./components/toast/function.js";
40
+ import { Tour as Nr } from "./components/tour/component.js";
41
+ import { Toast as Mr } from "./components/toast/component.js";
42
+ import { toast as Ur, toastManager as Fr } from "./components/toast/function.js";
42
43
  import { VerticalCollapsiblePanel as wr } from "./components/vertical-collapsible-panel/component.js";
43
- import { PopupPanel as _r } from "./components/popup-panel/component.js";
44
- import { CodeBlock as qr } from "./components/code-block/component.js";
45
- import { StackChild as Vr } from "./components/stack/StackChild.js";
46
- import { Stack as Qr } from "./components/stack/index.js";
47
- import { Collapse as jr } from "./components/collapse/component.js";
48
- import { Input as Jr } from "./components/input/component.js";
49
- import { Badge as Yr, InternalBadge as Zr } from "./components/badge/component.js";
50
- import { Radio as oe } from "./components/radio/component.js";
51
- import { Button as ee } from "./components/button/component.js";
52
- import { DSRoot as ae } from "./components/ds-root/component.js";
53
- import { DSRootContextProvider as me, useDS as se } from "./components/ds-root/context.js";
54
- import { DragDrop as le, DragDropRoot as ne } from "./components/drag-drop/index.js";
55
- import { ColorSelect as ie } from "./components/color-select/component.js";
56
- import { Nav as ce } from "./components/nav/index.js";
57
- import { ChoiceList as ue } from "./components/choice-list/component.js";
58
- import { useForm as ge, useWatch as Se } from "antd/es/form/Form";
59
- import { useBreakpoint as Ae, useMessage as Ee, useModal as ke, useToken as Pe } from "./components/hooks/antd.js";
44
+ import { PopupPanel as qr } from "./components/popup-panel/component.js";
45
+ import { CodeBlock as Kr } from "./components/code-block/component.js";
46
+ import { StackChild as Hr } from "./components/stack/StackChild.js";
47
+ import { Stack as zr } from "./components/stack/index.js";
48
+ import { Collapse as Xr } from "./components/collapse/component.js";
49
+ import { Input as Zr } from "./components/input/component.js";
50
+ import { Badge as oe, InternalBadge as re } from "./components/badge/component.js";
51
+ import { Radio as te } from "./components/radio/component.js";
52
+ import { Button as pe } from "./components/button/component.js";
53
+ import { DSRoot as se } from "./components/ds-root/component.js";
54
+ import { DSRootContextProvider as le, useDS as ne } from "./components/ds-root/context.js";
55
+ import { DragDrop as ie, DragDropRoot as Ce } from "./components/drag-drop/index.js";
56
+ import { ColorSelect as Te } from "./components/color-select/component.js";
57
+ import { Nav as de } from "./components/nav/index.js";
58
+ import { ChoiceList as ge } from "./components/choice-list/component.js";
59
+ import { useForm as Ae, useWatch as Ee } from "antd/es/form/Form";
60
+ import { useBreakpoint as ke, useMessage as De, useModal as Re, useToken as Le } from "./components/hooks/antd.js";
60
61
  import { default as be } from "antd/es/app/useApp";
61
- import { useAnimationsFinished as ye, useEnhancedEffect as Be, useEventCallback as Le, useLatestRef as ve } from "./components/hooks/base-ui.js";
62
- import { useControlledState as Me } from "./components/hooks/useControlledState.js";
63
- import { useCharts as Ne } from "./components/hooks/useCharts.js";
62
+ import { useAnimationsFinished as ye, useEnhancedEffect as Be, useEventCallback as Ne, useLatestRef as ve } from "./components/hooks/base-ui.js";
63
+ import { useControlledState as _e } from "./components/hooks/useControlledState.js";
64
+ import { useCharts as Fe } from "./components/hooks/useCharts.js";
64
65
  import { useCSSVariables as we } from "./components/hooks/useCSSVariables.js";
65
- import { antdColorTokens as _e, darkTheme as Oe, lightTheme as qe } from "./tokens/and-theme/tokens.js";
66
- import { categoricalChartColorKeys as Ve, categoricalChartColorTokens as Ke, categoricalChartsColors as Qe, chartColorTokens as He, rawChartColorTokens as je } from "./tokens/charts/palettes/cloudscape.js";
67
- import { COLORBREWER as Je } from "./tokens/charts/palettes/colorbrewer.js";
68
- import { tab10 as Ye, tab20 as Ze, tab20b as $e, tab20c as ot } from "./tokens/charts/palettes/tableau.js";
69
- import { CATEGORICAL_PALETTES as et, CATEGORICAL_PALETTE_NAMES as tt, SEQUENTIAL_PALETTES as at, SEQUENTIAL_PALETTE_NAMES as pt, getAllCategoricalChartColors as mt, getAllSequentialChartColors as st, getCategoricalChartColors as ft, getSequentialChartColors as lt } from "./tokens/charts/palettes/index.js";
70
- import { getColorsByTheme as xt, getTokensByTheme as it, resolveColorTokens as Ct } from "./tokens/utils.js";
66
+ import { antdColorTokens as qe, darkTheme as Ge, lightTheme as Ke } from "./tokens/and-theme/tokens.js";
67
+ import { categoricalChartColorKeys as He, categoricalChartColorTokens as je, categoricalChartsColors as ze, chartColorTokens as Je, rawChartColorTokens as Xe } from "./tokens/charts/palettes/cloudscape.js";
68
+ import { COLORBREWER as Ze } from "./tokens/charts/palettes/colorbrewer.js";
69
+ import { tab10 as ot, tab20 as rt, tab20b as et, tab20c as tt } from "./tokens/charts/palettes/tableau.js";
70
+ import { CATEGORICAL_PALETTES as pt, CATEGORICAL_PALETTE_NAMES as mt, SEQUENTIAL_PALETTES as st, SEQUENTIAL_PALETTE_NAMES as ft, getAllCategoricalChartColors as lt, getAllSequentialChartColors as nt, getCategoricalChartColors as xt, getSequentialChartColors as it } from "./tokens/charts/palettes/index.js";
71
+ import { getColorsByTheme as ct, getTokensByTheme as Tt, resolveColorTokens as ut } from "./tokens/utils.js";
71
72
  export {
72
73
  p as Affix,
73
74
  m as Alert,
@@ -76,156 +77,158 @@ export {
76
77
  l as AutoComplete,
77
78
  n as Avatar,
78
79
  x as BackTop,
79
- Yr as Badge,
80
- ir as Breadcrumb,
81
- ee as Button,
82
- et as CATEGORICAL_PALETTES,
83
- tt as CATEGORICAL_PALETTE_NAMES,
84
- Je as COLORBREWER,
80
+ oe as Badge,
81
+ Tr as Breadcrumb,
82
+ pe as Button,
83
+ pt as CATEGORICAL_PALETTES,
84
+ mt as CATEGORICAL_PALETTE_NAMES,
85
+ Ze as COLORBREWER,
85
86
  i as Calendar,
86
87
  C as Card,
87
88
  c as Carousel,
88
89
  T as Cascader,
89
90
  no as Checkbox,
90
- ue as ChoiceList,
91
- qr as CodeBlock,
91
+ ge as ChoiceList,
92
+ Kr as CodeBlock,
92
93
  u as Col,
93
- jr as Collapse,
94
+ Xr as Collapse,
94
95
  d as ColorPicker,
95
- ie as ColorSelect,
96
- g as ConfigProvider,
97
- ae as DSRoot,
98
- me as DSRootContextProvider,
99
- S as DatePicker,
100
- $o as DefaultUpload,
96
+ Te as ColorSelect,
97
+ S as ConfigProvider,
98
+ Yo as DROPDOWN_COLLISION_AVOIDANCE,
99
+ se as DSRoot,
100
+ le as DSRootContextProvider,
101
+ g as DatePicker,
102
+ er as DefaultUpload,
101
103
  h as Descriptions,
102
104
  A as Divider,
103
- le as DragDrop,
104
- ne as DragDropRoot,
105
+ ie as DragDrop,
106
+ Ce as DragDropRoot,
105
107
  E as Drawer,
106
- k as Dropdown,
107
- bo as DropdownMenu,
108
- kr as Empty,
109
- Pr as EmptyIcon,
108
+ P as Dropdown,
109
+ Ro as DropdownMenu,
110
+ Rr as Empty,
111
+ Lr as EmptyIcon,
110
112
  yr as Field,
111
- P as Flex,
112
- R as FloatButton,
113
+ k as Flex,
114
+ D as FloatButton,
113
115
  br as Form,
114
- b as Grid,
116
+ R as Grid,
115
117
  mo as IconButton,
116
- Jr as Input,
117
- D as InputNumber,
118
- Zr as InternalBadge,
119
- y as Layout,
120
- B as List,
121
- L as Mentions,
122
- v as Menu,
118
+ Zr as Input,
119
+ L as InputNumber,
120
+ re as InternalBadge,
121
+ I as Layout,
122
+ b as List,
123
+ O as Mentions,
124
+ y as Menu,
123
125
  ao as Modal,
124
- ce as Nav,
125
- I as Pagination,
126
- M as Popconfirm,
127
- mr as Popover,
128
- _r as PopupPanel,
129
- F as Progress,
130
- N as QRCode,
131
- oe as Radio,
132
- U as Rate,
133
- w as Result,
134
- W as Row,
135
- at as SEQUENTIAL_PALETTES,
136
- pt as SEQUENTIAL_PALETTE_NAMES,
137
- ar as ScrollArea,
126
+ de as Nav,
127
+ Zo as POPUP_COLLISION_AVOIDANCE,
128
+ B as Pagination,
129
+ N as Popconfirm,
130
+ lr as Popover,
131
+ qr as PopupPanel,
132
+ v as Progress,
133
+ M as QRCode,
134
+ te as Radio,
135
+ _ as Rate,
136
+ U as Result,
137
+ F as Row,
138
+ st as SEQUENTIAL_PALETTES,
139
+ ft as SEQUENTIAL_PALETTE_NAMES,
140
+ sr as ScrollArea,
138
141
  io as Segmented,
139
142
  eo as Select,
140
- _ as Skeleton,
141
- fr as Slider,
142
- O as Space,
143
- Ar as Spin,
143
+ W as Skeleton,
144
+ xr as Slider,
145
+ w as Space,
146
+ kr as Spin,
144
147
  Ao as Split,
145
148
  Eo as Splitter,
146
- Qr as Stack,
147
- Vr as StackChild,
148
- q as Statistic,
149
- G as Steps,
149
+ zr as Stack,
150
+ Hr as StackChild,
151
+ V as Statistic,
152
+ q as Steps,
150
153
  fo as Switch,
151
154
  co as Table,
152
- V as Tabs,
155
+ G as Tabs,
153
156
  uo as Tag,
154
- So as ThemeProvider,
157
+ go as ThemeProvider,
155
158
  K as TimePicker,
156
159
  Q as Timeline,
157
- Ir as Toast,
158
- nr as Tooltip,
159
- Lr as Tour,
160
+ Mr as Toast,
161
+ Cr as Tooltip,
162
+ Nr as Tour,
160
163
  H as Transfer,
161
- Yo as Transition,
162
- Sr as Tree,
164
+ or as Transition,
165
+ Er as Tree,
163
166
  j as TreeSelect,
164
- Po as Truncate,
167
+ ko as Truncate,
165
168
  z as Typography,
166
- or as Upload,
169
+ tr as Upload,
167
170
  wr as VerticalCollapsiblePanel,
168
171
  J as Watermark,
169
172
  Qo as WithAntdTokens,
170
- Wo as WithRenderProp,
171
- _e as antdColorTokens,
172
- Ve as categoricalChartColorKeys,
173
- Ke as categoricalChartColorTokens,
174
- Qe as categoricalChartsColors,
173
+ Fo as WithRenderProp,
174
+ qe as antdColorTokens,
175
+ He as categoricalChartColorKeys,
176
+ je as categoricalChartColorTokens,
177
+ ze as categoricalChartsColors,
175
178
  jo as changeThemeWithoutTransition,
176
- He as chartColorTokens,
177
- yo as clsx,
178
- Bo as cn,
179
+ Je as chartColorTokens,
180
+ Io as clsx,
181
+ bo as cn,
179
182
  e as componentMetadata,
180
- Lo as cx,
181
- Oe as darkTheme,
182
- mt as getAllCategoricalChartColors,
183
- st as getAllSequentialChartColors,
184
- ft as getCategoricalChartColors,
185
- xt as getColorsByTheme,
183
+ Oo as cx,
184
+ Ge as darkTheme,
185
+ lt as getAllCategoricalChartColors,
186
+ nt as getAllSequentialChartColors,
187
+ xt as getCategoricalChartColors,
188
+ ct as getColorsByTheme,
186
189
  t as getComponentsByCategory,
187
- lt as getSequentialChartColors,
188
- it as getTokensByTheme,
189
- ur as getUniqueKeysFromOriginals,
190
- Fo as isTracebackError,
191
- Uo as isValidHexColor,
192
- qe as lightTheme,
190
+ it as getSequentialChartColors,
191
+ Tt as getTokensByTheme,
192
+ gr as getUniqueKeysFromOriginals,
193
+ vo as isTracebackError,
194
+ _o as isValidHexColor,
195
+ Ke as lightTheme,
193
196
  X as message,
194
197
  Jo as moveTypingCursorToEnd,
195
198
  Y as notification,
196
- Oo as parseAntdPlacement,
197
- dr as processTreeData,
198
- je as rawChartColorTokens,
199
- Io as reactNodeToString,
200
- Ct as resolveColorTokens,
201
- Ye as tab10,
202
- Ze as tab20,
203
- $e as tab20b,
204
- ot as tab20c,
199
+ wo as parseAntdPlacement,
200
+ hr as processTreeData,
201
+ Xe as rawChartColorTokens,
202
+ Bo as reactNodeToString,
203
+ ut as resolveColorTokens,
204
+ ot as tab10,
205
+ rt as tab20,
206
+ et as tab20b,
207
+ tt as tab20c,
205
208
  Z as theme,
206
- Fr as toast,
207
- Nr as toastManager,
209
+ Ur as toast,
210
+ Fr as toastManager,
208
211
  $ as unstableSetRender,
209
212
  ye as useAnimationsFinished,
210
- qo as useAntdCssVarClassname,
213
+ Vo as useAntdCssVarClassname,
211
214
  be as useApp,
212
- Ae as useBreakpoint,
215
+ ke as useBreakpoint,
213
216
  we as useCSSVariables,
214
- Ne as useCharts,
215
- Go as useCls,
216
- Me as useControlledState,
217
- se as useDS,
217
+ Fe as useCharts,
218
+ qo as useCls,
219
+ _e as useControlledState,
220
+ ne as useDS,
218
221
  Be as useEnhancedEffect,
219
- Le as useEventCallback,
220
- ge as useForm,
221
- Vo as useGetPrefixCls,
222
+ Ne as useEventCallback,
223
+ Ae as useForm,
224
+ Go as useGetPrefixCls,
222
225
  ve as useLatestRef,
223
- Ee as useMessage,
224
- ke as useModal,
225
- Pe as useToken,
226
- cr as useUniqueKeysTree,
227
- er as useUploadItemRender,
228
- Se as useWatch,
226
+ De as useMessage,
227
+ Re as useModal,
228
+ Le as useToken,
229
+ dr as useUniqueKeysTree,
230
+ pr as useUploadItemRender,
231
+ Ee as useWatch,
229
232
  oo as version
230
233
  };
231
234
  //# 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.20.0",
3
+ "version": "0.20.2",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",