@bioturing/components 0.39.1 → 0.40.1
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/base.d.ts +35 -1
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +47 -1
- package/dist/base.js.map +1 -1
- package/dist/components/base-menu/component.d.ts +1 -1
- package/dist/components/base-menu/index.d.ts +1 -1
- package/dist/components/base-menu/index.d.ts.map +1 -1
- package/dist/components/base-menu/item.d.ts +1 -1
- package/dist/components/base-menu/item.d.ts.map +1 -1
- package/dist/components/base-menu/item.js +1 -1
- package/dist/components/base-menu/item.js.map +1 -1
- package/dist/components/button/component.d.ts +1 -1
- package/dist/components/button/component.d.ts.map +1 -1
- package/dist/components/button/component.js +18 -17
- package/dist/components/button/component.js.map +1 -1
- package/dist/components/checkbox/component.d.ts.map +1 -1
- package/dist/components/choice-list/component.d.ts +8 -4
- package/dist/components/choice-list/component.d.ts.map +1 -1
- package/dist/components/choice-list/component.js +89 -94
- package/dist/components/choice-list/component.js.map +1 -1
- package/dist/components/color-select/component.js +6 -6
- package/dist/components/combobox/component.js +1 -1
- package/dist/components/combobox/component.js.map +1 -1
- package/dist/components/command-palette/component.d.ts +6 -0
- package/dist/components/command-palette/component.d.ts.map +1 -1
- package/dist/components/command-palette/component.js +182 -63
- package/dist/components/command-palette/component.js.map +1 -1
- package/dist/components/command-palette/index.d.ts +3 -1
- package/dist/components/command-palette/index.d.ts.map +1 -1
- package/dist/components/command-palette/style.css +1 -1
- package/dist/components/drag-drop/draggable.js +1 -1
- package/dist/components/drag-drop/draggable.js.map +1 -1
- package/dist/components/drag-drop/droppable.js +1 -1
- package/dist/components/drag-drop/droppable.js.map +1 -1
- package/dist/components/drag-drop/types.d.ts +1 -1
- package/dist/components/drag-drop/types.d.ts.map +1 -1
- package/dist/components/drag-drop/value.js +13 -13
- package/dist/components/dropdown-menu/component.d.ts +1 -1
- package/dist/components/dropdown-menu/component.d.ts.map +1 -1
- package/dist/components/dropdown-menu/component.js +162 -135
- package/dist/components/dropdown-menu/component.js.map +1 -1
- package/dist/components/dropdown-menu/divider.js +2 -2
- package/dist/components/dropdown-menu/divider.js.map +1 -1
- package/dist/components/dropdown-menu/item.js +2 -2
- package/dist/components/dropdown-menu/item.js.map +1 -1
- package/dist/components/dropdown-menu/style.css +1 -1
- package/dist/components/dropdown-menu/useDropdownMenu.js +1 -1
- package/dist/components/dropdown-menu/useDropdownMenu.js.map +1 -1
- package/dist/components/hooks/antd.d.ts.map +1 -1
- package/dist/components/hooks/index.d.ts +1 -0
- package/dist/components/hooks/index.d.ts.map +1 -1
- package/dist/components/hooks/useBaseUIPlacement.d.ts +64 -0
- package/dist/components/hooks/useBaseUIPlacement.d.ts.map +1 -0
- package/dist/components/hooks/useBaseUIPlacement.js +61 -0
- package/dist/components/hooks/useBaseUIPlacement.js.map +1 -0
- package/dist/components/hooks/useControlledState.d.ts +1 -0
- package/dist/components/hooks/useControlledState.d.ts.map +1 -1
- package/dist/components/hooks/useControlledState.js +16 -16
- package/dist/components/hooks/useControlledState.js.map +1 -1
- package/dist/components/hooks/useTransitionStatus.js +2 -2
- package/dist/components/hooks/useTransitionStatus.js.map +1 -1
- package/dist/components/icon-button/style.css +1 -1
- package/dist/components/nav/index.d.ts.map +1 -1
- package/dist/components/nav/item.d.ts +1 -1
- package/dist/components/nav/item.d.ts.map +1 -1
- package/dist/components/nav/item.js +1 -1
- package/dist/components/nav/item.js.map +1 -1
- package/dist/components/popup-panel/component.d.ts +4 -4
- package/dist/components/popup-panel/component.d.ts.map +1 -1
- package/dist/components/popup-panel/component.js +142 -152
- package/dist/components/popup-panel/component.js.map +1 -1
- package/dist/components/resizable/component.js +1 -1
- package/dist/components/resizable/component.js.map +1 -1
- package/dist/components/scroll-area/component.d.ts +1 -1
- package/dist/components/scroll-area/component.d.ts.map +1 -1
- package/dist/components/scroll-area/component.js +1 -1
- package/dist/components/scroll-area/component.js.map +1 -1
- package/dist/components/select/component.d.ts.map +1 -1
- package/dist/components/select/component.js +153 -138
- package/dist/components/select/component.js.map +1 -1
- package/dist/components/select/item.js +13 -13
- package/dist/components/select-trigger/component.js +19 -19
- package/dist/components/splitter/splitter.d.ts.map +1 -1
- package/dist/components/splitter/splitter.js +53 -51
- package/dist/components/splitter/splitter.js.map +1 -1
- package/dist/components/stack/StackChild.js +2 -2
- package/dist/components/stack/StackChild.js.map +1 -1
- package/dist/components/toast/component.d.ts +1 -1
- package/dist/components/toast/component.d.ts.map +1 -1
- package/dist/components/toast/component.js +1 -1
- package/dist/components/toast/component.js.map +1 -1
- package/dist/components/toast/function.d.ts +2 -2
- package/dist/components/toast/function.d.ts.map +1 -1
- package/dist/components/toast/function.js +1 -1
- package/dist/components/toast/function.js.map +1 -1
- package/dist/components/transition/component.d.ts +1 -1
- package/dist/components/transition/component.d.ts.map +1 -1
- package/dist/components/transition/component.js +2 -2
- package/dist/components/transition/component.js.map +1 -1
- package/dist/components/tree/useTreeCommon.d.ts.map +1 -1
- package/dist/components/utils/WithRenderProp.d.ts +1 -1
- package/dist/components/utils/WithRenderProp.d.ts.map +1 -1
- package/dist/components/utils/WithRenderProp.js +1 -1
- package/dist/components/utils/WithRenderProp.js.map +1 -1
- package/dist/components/utils/index.d.ts +1 -0
- package/dist/components/utils/index.d.ts.map +1 -1
- package/dist/components/utils/renderProp.d.ts +24 -0
- package/dist/components/utils/renderProp.d.ts.map +1 -0
- package/dist/components/utils/renderProp.js +19 -0
- package/dist/components/utils/renderProp.js.map +1 -0
- package/dist/components/vertical-collapsible-panel/component.js +1 -1
- package/dist/components/vertical-collapsible-panel/component.js.map +1 -1
- package/dist/index.js +162 -158
- package/dist/index.js.map +1 -1
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js +14 -14
- package/dist/metadata.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/tailwind.css +125 -1
- package/package.json +3 -3
- package/dist/components/cmdk/command-score.d.ts +0 -2
- package/dist/components/cmdk/command-score.d.ts.map +0 -1
- package/dist/components/cmdk/command-score.js +0 -48
- package/dist/components/cmdk/command-score.js.map +0 -1
- package/dist/components/cmdk/index.d.ts +0 -440
- package/dist/components/cmdk/index.d.ts.map +0 -1
- package/dist/components/cmdk/index.js +0 -595
- package/dist/components/cmdk/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithRenderProp.d.ts","sourceRoot":"","sources":["../../../src/components/utils/WithRenderProp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WithRenderProp.d.ts","sourceRoot":"","sources":["../../../src/components/utils/WithRenderProp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EACnC,KAAK,SAAS,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAC9D,MAAM,EACN,OAAO,CACR,IACC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,GAAG;IACtC,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACrC,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,mBAAmB,GACvB,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EACnC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAE/D,OAAO,mBAAmB,CAAC,CAAC,EAAE,KAAK,CAAC,EACpC,KAAK,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAW3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAsC,CAC/D,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EACnC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAE/D,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG;IACrC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1C,KACE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { forwardRef as s } from "react";
|
|
2
|
-
import { useRender as m } from "@base-ui
|
|
2
|
+
import { useRender as m } from "@base-ui/react/use-render";
|
|
3
3
|
const p = (e, r) => {
|
|
4
4
|
const { render: t, as: n = "div", state: o, ...d } = e;
|
|
5
5
|
return m({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithRenderProp.js","sources":["../../../src/components/utils/WithRenderProp.tsx"],"sourcesContent":["import React, { forwardRef, JSX } from \"react\";\nimport { useRender } from \"@base-ui
|
|
1
|
+
{"version":3,"file":"WithRenderProp.js","sources":["../../../src/components/utils/WithRenderProp.tsx"],"sourcesContent":["import React, { forwardRef, JSX } from \"react\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { ElementTypeToDOMType } from \"./types\";\n\nexport type WithRenderPropProps<\n T extends React.ElementType = \"div\",\n State extends Record<string | number | symbol, unknown> = Record<\n string,\n unknown\n >\n> = React.ComponentPropsWithoutRef<T> & {\n render?: useRender.RenderProp<State>;\n as?: T;\n state?: State;\n};\n\nconst WithRenderPropInner = <\n T extends React.ElementType = \"div\",\n State extends Record<string, unknown> = Record<string, unknown>\n>(\n props: WithRenderPropProps<T, State>,\n ref: React.ForwardedRef<T>\n) => {\n const { render, as = \"div\", state, ...etc } = props;\n const renderedElement = useRender({\n render: render,\n props: etc,\n state,\n ref: ref as unknown as React.Ref<ElementTypeToDOMType<T>>,\n defaultTagName: as as keyof JSX.IntrinsicElements,\n });\n return renderedElement;\n};\n\nexport const WithRenderProp = forwardRef(WithRenderPropInner) as <\n T extends React.ElementType = \"div\",\n State extends Record<string, unknown> = Record<string, unknown>\n>(\n props: WithRenderPropProps<T, State> & {\n ref?: React.Ref<ElementTypeToDOMType<T>>;\n }\n) => ReturnType<typeof WithRenderPropInner>;\n"],"names":["WithRenderPropInner","props","ref","render","as","state","etc","useRender","WithRenderProp","forwardRef"],"mappings":";;AAgBA,MAAMA,IAAsB,CAI1BC,GACAC,MACG;AACH,QAAM,EAAE,QAAAC,GAAQ,IAAAC,IAAK,OAAO,OAAAC,GAAO,GAAGC,MAAQL;AAQ9C,SAPwBM,EAAU;AAAA,IAChC,QAAAJ;AAAA,IACA,OAAOG;AAAA,IACP,OAAAD;AAAA,IACA,KAAAH;AAAA,IACA,gBAAgBE;AAAA,EAAA,CACjB;AAEH,GAEaI,IAAiBC,EAAWT,CAAmB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Utility function to handle render prop patterns with proper TypeScript typing.
|
|
4
|
+
* Supports both function render props and ReactElement children.
|
|
5
|
+
*
|
|
6
|
+
* @param children - Either a render function or a ReactElement
|
|
7
|
+
* @param props - Props to pass to the render function or merge with the ReactElement
|
|
8
|
+
* @param state - Optional state to pass to the render function
|
|
9
|
+
* @returns The rendered element
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // With function children
|
|
13
|
+
* <Component>
|
|
14
|
+
* {(props, state) => <button {...props}>Click me</button>}
|
|
15
|
+
* </Component>
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* // With ReactElement children
|
|
19
|
+
* <Component>
|
|
20
|
+
* <button>Click me</button>
|
|
21
|
+
* </Component>
|
|
22
|
+
*/
|
|
23
|
+
export declare function createRenderProp<TProps extends object = object, TState = unknown>(children: ((props: TProps, state: TState) => React.ReactElement) | React.ReactElement, props: TProps, state?: TState): React.ReactElement;
|
|
24
|
+
//# sourceMappingURL=renderProp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderProp.d.ts","sourceRoot":"","sources":["../../../src/components/utils/renderProp.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,MAAM,GAAG,OAAO,EAEhB,QAAQ,EACJ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,YAAY,CAAC,GACtD,KAAK,CAAC,YAAY,EACtB,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,GACb,KAAK,CAAC,YAAY,CA0BpB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { clsx as r } from "./cn.js";
|
|
4
|
+
function f(s, e, t) {
|
|
5
|
+
if (typeof s == "function")
|
|
6
|
+
return s(e, t);
|
|
7
|
+
{
|
|
8
|
+
const a = s, l = "className" in e ? e.className : void 0, o = r(l, a.props.className), { className: N, ...c } = e, { className: i, ...m } = a.props;
|
|
9
|
+
return n.cloneElement(a, {
|
|
10
|
+
...c,
|
|
11
|
+
...m,
|
|
12
|
+
className: o
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
f as createRenderProp
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=renderProp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderProp.js","sources":["../../../src/components/utils/renderProp.tsx"],"sourcesContent":["\"use client\";\nimport React from \"react\";\nimport { clsx } from \"./cn\";\nimport type { ClassValue } from \"./types\";\n\n/**\n * Utility function to handle render prop patterns with proper TypeScript typing.\n * Supports both function render props and ReactElement children.\n *\n * @param children - Either a render function or a ReactElement\n * @param props - Props to pass to the render function or merge with the ReactElement\n * @param state - Optional state to pass to the render function\n * @returns The rendered element\n *\n * @example\n * // With function children\n * <Component>\n * {(props, state) => <button {...props}>Click me</button>}\n * </Component>\n *\n * @example\n * // With ReactElement children\n * <Component>\n * <button>Click me</button>\n * </Component>\n */\nexport function createRenderProp<\n TProps extends object = object,\n TState = unknown\n>(\n children:\n | ((props: TProps, state: TState) => React.ReactElement)\n | React.ReactElement,\n props: TProps,\n state?: TState\n): React.ReactElement {\n if (typeof children === \"function\") {\n return children(props, state as TState);\n } else {\n const childElement = children as React.ReactElement<{\n className?: ClassValue;\n }>;\n const propsClassName =\n \"className\" in props ? (props.className as ClassValue) : undefined;\n const mergedClassName = clsx(propsClassName, childElement.props.className);\n\n // Remove className from both props and child props to handle it separately\n const { className: _propsClassName, ...propsWithoutClassName } =\n props as any;\n const { className: _childClassName, ...childPropsWithoutClassName } =\n childElement.props;\n\n // Spread trigger props first, then child props on top to preserve child's explicit props\n // This ensures that props like 'type', 'size', etc. from the child element are preserved\n const clonedElement = React.cloneElement(childElement, {\n ...propsWithoutClassName,\n ...childPropsWithoutClassName,\n className: mergedClassName,\n });\n return clonedElement;\n }\n}\n"],"names":["createRenderProp","children","props","state","childElement","propsClassName","mergedClassName","clsx","_propsClassName","propsWithoutClassName","_childClassName","childPropsWithoutClassName","React"],"mappings":";;;AA0BO,SAASA,EAIdC,GAGAC,GACAC,GACoB;AACpB,MAAI,OAAOF,KAAa;AACtB,WAAOA,EAASC,GAAOC,CAAe;AACjC;AACL,UAAMC,IAAeH,GAGfI,IACJ,eAAeH,IAASA,EAAM,YAA2B,QACrDI,IAAkBC,EAAKF,GAAgBD,EAAa,MAAM,SAAS,GAGnE,EAAE,WAAWI,GAAiB,GAAGC,MACrCP,GACI,EAAE,WAAWQ,GAAiB,GAAGC,EAAA,IACrCP,EAAa;AASf,WALsBQ,EAAM,aAAaR,GAAc;AAAA,MACrD,GAAGK;AAAA,MACH,GAAGE;AAAA,MACH,WAAWL;AAAA,IAAA,CACZ;AAAA,EAEH;AACF;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { useState as S, useRef as A, useEffect as E } from "react";
|
|
4
|
-
import { Collapsible as m } from "@base-ui
|
|
4
|
+
import { Collapsible as m } from "@base-ui/react";
|
|
5
5
|
import { MinusCircleIcon as T, PlusCircleIcon as V } from "@bioturing/assets";
|
|
6
6
|
import { useControlledState as $ } from "../hooks/useControlledState.js";
|
|
7
7
|
import './style.css';/* empty css */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../../src/components/vertical-collapsible-panel/component.tsx"],"sourcesContent":["\"use client\";\nimport React, { useEffect, useRef, useState } from \"react\";\nimport { Collapsible } from \"@base-ui-components/react\";\nimport {\n MinusCircle,\n MinusCircleIcon,\n PlusCircle,\n PlusCircleIcon,\n} from \"@bioturing/assets\";\nimport { useCls, clsx } from \"../utils\";\nimport { useControlledState } from \"../hooks/useControlledState\";\nimport { Transition } from \"../transition\";\nimport { useAnimationsFinished } from \"../hooks\";\nimport { IconButton } from \"../icon-button\";\nimport { Truncate } from \"../truncate\";\n\n// Import component-specific styles\nimport \"./style.css\";\n\nexport interface VerticalCollapsiblePanelProps {\n /**\n * The content of the panel that will be toggled\n */\n children: React.ReactNode;\n /**\n * The header of the panel\n */\n title?: React.ReactNode;\n /**\n * Indicate if the title should be used as a trigger\n * @default true\n */\n useTitleAsTrigger?: boolean;\n /**\n * Custom Content Padding\n * @default \"24px\"\n */\n contentPadding?: number | string | boolean;\n /**\n * Add more content below the title\n * Only show when panel is open\n */\n afterTitle?: React.ReactNode;\n\n /**\n * Whether the panel is expanded by default\n */\n defaultOpen?: boolean;\n /**\n * Control the open state (makes the component controlled)\n */\n open?: boolean;\n /**\n * Callback when the open state changes\n */\n onOpenChange?: (open: boolean) => void;\n /**\n * Additional class name for the component\n */\n className?: string;\n /**\n * Addtional class name for the header\n */\n headerClassName?: string;\n /**\n * Addtional class name for the header\n */\n headerInnerClassName?: string;\n /**\n * Addtional class name for the body\n * */\n bodyClassName?: string;\n /**\n * Actions to be displayed in the header\n * Only show when panel is open\n */\n actions?: React.ReactNode;\n /**\n * Keeping it as mounted, just hide the content\n */\n keepMounted?: boolean;\n /**\n * Custom expand icon\n */\n expandIcon?:\n | React.ReactNode\n | ((props: { open: boolean; className?: string }) => React.ReactNode);\n /**\n * Custom collapse icon\n */\n collapseIcon?:\n | React.ReactNode\n | ((props: { open: boolean; className?: string }) => React.ReactNode);\n}\n\nexport const VerticalCollapsiblePanel: React.FC<\n VerticalCollapsiblePanelProps\n> = ({\n children,\n title,\n defaultOpen = false,\n open: controlledOpen,\n onOpenChange,\n className,\n headerClassName,\n headerInnerClassName,\n bodyClassName,\n contentPadding = \"16px\",\n afterTitle,\n actions,\n useTitleAsTrigger = true,\n keepMounted = false,\n expandIcon,\n collapseIcon,\n}) => {\n const cls = useCls();\n // Use useControlledState for open state\n const [isOpen, setIsOpen] = useControlledState(\n controlledOpen,\n onOpenChange,\n defaultOpen\n );\n const [isBodyOpen, setIsBodyOpen] = useState(isOpen);\n const ref = useRef<HTMLDivElement>(null);\n const runOnceAnimationsFinish = useAnimationsFinished(ref, {\n waitForNextTick: isOpen,\n });\n useEffect(() => {\n runOnceAnimationsFinish(() => {\n setIsBodyOpen(isOpen);\n });\n }, [isOpen, runOnceAnimationsFinish]);\n const iconClassName = cls(\n \"collapsible-panel-caret\",\n isOpen && cls(\"collapsible-panel-caret-open\")\n );\n const expandIconRender =\n typeof expandIcon === \"function\"\n ? expandIcon({\n open: isOpen,\n className: iconClassName,\n })\n : expandIcon;\n const collapseIconRender =\n typeof collapseIcon === \"function\"\n ? collapseIcon({\n open: isOpen,\n className: iconClassName,\n })\n : collapseIcon || expandIconRender;\n return (\n <Collapsible.Root\n className={clsx(cls(\"collapsible-panel\"), className)}\n open={isOpen}\n onOpenChange={setIsOpen}\n ref={ref}\n >\n <div className={clsx(cls(\"collapsible-panel-header\"), headerClassName)}>\n <div\n className={clsx(\n cls(\"collapsible-panel-header-inner\"),\n headerInnerClassName\n )}\n >\n <div\n className={cls(\"collapsible-panel-header-text\")}\n onClick={\n useTitleAsTrigger ? () => setIsOpen((open) => !open) : undefined\n }\n style={\n useTitleAsTrigger\n ? {\n cursor: \"pointer\",\n }\n : {}\n }\n >\n {typeof title == \"string\" ? <Truncate>{title}</Truncate> : title}\n </div>\n <div className={cls(\"collapsible-panel-header-actions\")}>\n {isOpen && actions}\n <Collapsible.Trigger\n className={cls(\"collapsible-panel-trigger\")}\n render={\n isOpen ? (\n <IconButton>\n {collapseIconRender ? (\n collapseIconRender\n ) : (\n <MinusCircleIcon\n weight=\"regular\"\n className={iconClassName}\n />\n )}\n </IconButton>\n ) : (\n <IconButton>\n {expandIconRender ? (\n expandIconRender\n ) : (\n <PlusCircleIcon\n weight=\"regular\"\n className={iconClassName}\n />\n )}\n </IconButton>\n )\n }\n ></Collapsible.Trigger>\n </div>\n </div>\n {isOpen && afterTitle && (\n <div className={cls(\"collapsible-panel-header-after\")}>\n {afterTitle}\n </div>\n )}\n </div>\n <Collapsible.Panel\n className={cls(\"collapsible-panel-content\")}\n style={\n (typeof contentPadding != \"undefined\"\n ? {\n \"--ds-content-padding\":\n contentPadding === false || contentPadding === 0\n ? \"0\"\n : typeof contentPadding == \"number\"\n ? `${contentPadding}px`\n : contentPadding,\n }\n : {}) as React.CSSProperties\n }\n keepMounted={keepMounted}\n >\n <Transition\n show={isBodyOpen}\n className={clsx(cls(\"collapsible-panel-body\"), bodyClassName)}\n keepMounted\n >\n <div>{children}</div>\n </Transition>\n </Collapsible.Panel>\n </Collapsible.Root>\n );\n};\n"],"names":["VerticalCollapsiblePanel","children","title","defaultOpen","controlledOpen","onOpenChange","className","headerClassName","headerInnerClassName","bodyClassName","contentPadding","afterTitle","actions","useTitleAsTrigger","keepMounted","expandIcon","collapseIcon","cls","useCls","isOpen","setIsOpen","useControlledState","isBodyOpen","setIsBodyOpen","useState","ref","useRef","runOnceAnimationsFinish","useAnimationsFinished","useEffect","iconClassName","expandIconRender","collapseIconRender","jsxs","Collapsible","clsx","jsx","open","Truncate","IconButton","MinusCircleIcon","PlusCircleIcon","Transition"],"mappings":";;;;;;;;;;;;;AA+FO,MAAMA,KAET,CAAC;AAAA,EACH,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,MAAMC;AAAA,EACN,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,aAAAC,IAAc;AAAA,EACd,YAAAC;AAAA,EACA,cAAAC;AACF,MAAM;AACJ,QAAMC,IAAMC,EAAA,GAEN,CAACC,GAAQC,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R,CAAa;AAAA,gBAC5D,aAAW;AAAA,gBAEX,UAAA,gBAAA2B,EAAC,SAAK,UAAAnC,EAAA,CAAS;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../../src/components/vertical-collapsible-panel/component.tsx"],"sourcesContent":["\"use client\";\nimport React, { useEffect, useRef, useState } from \"react\";\nimport { Collapsible } from \"@base-ui/react\";\nimport {\n MinusCircle,\n MinusCircleIcon,\n PlusCircle,\n PlusCircleIcon,\n} from \"@bioturing/assets\";\nimport { useCls, clsx } from \"../utils\";\nimport { useControlledState } from \"../hooks/useControlledState\";\nimport { Transition } from \"../transition\";\nimport { useAnimationsFinished } from \"../hooks\";\nimport { IconButton } from \"../icon-button\";\nimport { Truncate } from \"../truncate\";\n\n// Import component-specific styles\nimport \"./style.css\";\n\nexport interface VerticalCollapsiblePanelProps {\n /**\n * The content of the panel that will be toggled\n */\n children: React.ReactNode;\n /**\n * The header of the panel\n */\n title?: React.ReactNode;\n /**\n * Indicate if the title should be used as a trigger\n * @default true\n */\n useTitleAsTrigger?: boolean;\n /**\n * Custom Content Padding\n * @default \"24px\"\n */\n contentPadding?: number | string | boolean;\n /**\n * Add more content below the title\n * Only show when panel is open\n */\n afterTitle?: React.ReactNode;\n\n /**\n * Whether the panel is expanded by default\n */\n defaultOpen?: boolean;\n /**\n * Control the open state (makes the component controlled)\n */\n open?: boolean;\n /**\n * Callback when the open state changes\n */\n onOpenChange?: (open: boolean) => void;\n /**\n * Additional class name for the component\n */\n className?: string;\n /**\n * Addtional class name for the header\n */\n headerClassName?: string;\n /**\n * Addtional class name for the header\n */\n headerInnerClassName?: string;\n /**\n * Addtional class name for the body\n * */\n bodyClassName?: string;\n /**\n * Actions to be displayed in the header\n * Only show when panel is open\n */\n actions?: React.ReactNode;\n /**\n * Keeping it as mounted, just hide the content\n */\n keepMounted?: boolean;\n /**\n * Custom expand icon\n */\n expandIcon?:\n | React.ReactNode\n | ((props: { open: boolean; className?: string }) => React.ReactNode);\n /**\n * Custom collapse icon\n */\n collapseIcon?:\n | React.ReactNode\n | ((props: { open: boolean; className?: string }) => React.ReactNode);\n}\n\nexport const VerticalCollapsiblePanel: React.FC<\n VerticalCollapsiblePanelProps\n> = ({\n children,\n title,\n defaultOpen = false,\n open: controlledOpen,\n onOpenChange,\n className,\n headerClassName,\n headerInnerClassName,\n bodyClassName,\n contentPadding = \"16px\",\n afterTitle,\n actions,\n useTitleAsTrigger = true,\n keepMounted = false,\n expandIcon,\n collapseIcon,\n}) => {\n const cls = useCls();\n // Use useControlledState for open state\n const [isOpen, setIsOpen] = useControlledState(\n controlledOpen,\n onOpenChange,\n defaultOpen\n );\n const [isBodyOpen, setIsBodyOpen] = useState(isOpen);\n const ref = useRef<HTMLDivElement>(null);\n const runOnceAnimationsFinish = useAnimationsFinished(ref, {\n waitForNextTick: isOpen,\n });\n useEffect(() => {\n runOnceAnimationsFinish(() => {\n setIsBodyOpen(isOpen);\n });\n }, [isOpen, runOnceAnimationsFinish]);\n const iconClassName = cls(\n \"collapsible-panel-caret\",\n isOpen && cls(\"collapsible-panel-caret-open\")\n );\n const expandIconRender =\n typeof expandIcon === \"function\"\n ? expandIcon({\n open: isOpen,\n className: iconClassName,\n })\n : expandIcon;\n const collapseIconRender =\n typeof collapseIcon === \"function\"\n ? collapseIcon({\n open: isOpen,\n className: iconClassName,\n })\n : collapseIcon || expandIconRender;\n return (\n <Collapsible.Root\n className={clsx(cls(\"collapsible-panel\"), className)}\n open={isOpen}\n onOpenChange={setIsOpen}\n ref={ref}\n >\n <div className={clsx(cls(\"collapsible-panel-header\"), headerClassName)}>\n <div\n className={clsx(\n cls(\"collapsible-panel-header-inner\"),\n headerInnerClassName\n )}\n >\n <div\n className={cls(\"collapsible-panel-header-text\")}\n onClick={\n useTitleAsTrigger ? () => setIsOpen((open) => !open) : undefined\n }\n style={\n useTitleAsTrigger\n ? {\n cursor: \"pointer\",\n }\n : {}\n }\n >\n {typeof title == \"string\" ? <Truncate>{title}</Truncate> : title}\n </div>\n <div className={cls(\"collapsible-panel-header-actions\")}>\n {isOpen && actions}\n <Collapsible.Trigger\n className={cls(\"collapsible-panel-trigger\")}\n render={\n isOpen ? (\n <IconButton>\n {collapseIconRender ? (\n collapseIconRender\n ) : (\n <MinusCircleIcon\n weight=\"regular\"\n className={iconClassName}\n />\n )}\n </IconButton>\n ) : (\n <IconButton>\n {expandIconRender ? (\n expandIconRender\n ) : (\n <PlusCircleIcon\n weight=\"regular\"\n className={iconClassName}\n />\n )}\n </IconButton>\n )\n }\n ></Collapsible.Trigger>\n </div>\n </div>\n {isOpen && afterTitle && (\n <div className={cls(\"collapsible-panel-header-after\")}>\n {afterTitle}\n </div>\n )}\n </div>\n <Collapsible.Panel\n className={cls(\"collapsible-panel-content\")}\n style={\n (typeof contentPadding != \"undefined\"\n ? {\n \"--ds-content-padding\":\n contentPadding === false || contentPadding === 0\n ? \"0\"\n : typeof contentPadding == \"number\"\n ? `${contentPadding}px`\n : contentPadding,\n }\n : {}) as React.CSSProperties\n }\n keepMounted={keepMounted}\n >\n <Transition\n show={isBodyOpen}\n className={clsx(cls(\"collapsible-panel-body\"), bodyClassName)}\n keepMounted\n >\n <div>{children}</div>\n </Transition>\n </Collapsible.Panel>\n </Collapsible.Root>\n );\n};\n"],"names":["VerticalCollapsiblePanel","children","title","defaultOpen","controlledOpen","onOpenChange","className","headerClassName","headerInnerClassName","bodyClassName","contentPadding","afterTitle","actions","useTitleAsTrigger","keepMounted","expandIcon","collapseIcon","cls","useCls","isOpen","setIsOpen","useControlledState","isBodyOpen","setIsBodyOpen","useState","ref","useRef","runOnceAnimationsFinish","useAnimationsFinished","useEffect","iconClassName","expandIconRender","collapseIconRender","jsxs","Collapsible","clsx","jsx","open","Truncate","IconButton","MinusCircleIcon","PlusCircleIcon","Transition"],"mappings":";;;;;;;;;;;;;AA+FO,MAAMA,K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AAA,GAEJ;AAAA,QACA,gBAAAyB;AAAA,UAACF,EAAY;AAAA,UAAZ;AAAA,YACC,WAAWjB,EAAI,2BAA2B;AAAA,YAC1C,OACG,OAAOP,IAAkB,MACtB;AAAA,cACE,wBACEA,MAAmB,MAASA,MAAmB,IAC3C,MACA,OAAOA,KAAkB,WACzB,GAAGA,CAAc,OACjBA;AAAA,YAAA,IAER,CAAA;AAAA,YAEN,aAAAI;AAAA,YAEA,UAAA,gBAAAsB;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,MAAMpB;AAAA,gBACN,WAAWa,EAAKlB,EAAI,wBAAwB,GAAGR,CAAa;AAAA,gBAC5D,aAAW;AAAA,gBAEX,UAAA,gBAAA2B,EAAC,SAAK,UAAAnC,EAAA,CAAS;AAAA,cAAA;AAAA,YAAA;AAAA,UACjB;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { componentMetadata as r, getComponentsByCategory as t } from "./metadata.js";
|
|
2
2
|
import { default as m } from "./components/utils/createSyntheticClickEvent.js";
|
|
3
|
-
import { Affix as f, Alert as x, Anchor as s, App as l, AutoComplete as n, Avatar as i, BackTop as C, Calendar as c, Card as u, Carousel as T, Cascader as d, Col as g, ColorPicker as S, ConfigProvider as h, DatePicker as A, Descriptions as
|
|
3
|
+
import { Affix as f, Alert as x, Anchor as s, App as l, AutoComplete as n, Avatar as i, BackTop as C, Calendar as c, Card as u, Carousel as T, Cascader as d, Col as g, ColorPicker as S, ConfigProvider as h, DatePicker as A, Descriptions as P, Divider as E, Drawer as b, Dropdown as R, Flex as k, FloatButton as D, Grid as I, InputNumber as L, Layout as B, List as O, Mentions as v, Menu as y, Pagination as N, Popconfirm as M, Progress as w, QRCode as _, Rate as U, Result as W, Row as F, Skeleton as V, Space as K, Statistic as q, Steps as z, Tabs as G, TimePicker as Q, Timeline as H, Transfer as j, TreeSelect as J, Typography as X, Watermark as Y, message as Z, notification as $, theme as ee, unstableSetRender as oe, version as re } from "antd";
|
|
4
4
|
import { DataTable as ae } from "./components/data-table/component.js";
|
|
5
5
|
import { Select as pe } from "./components/select/component.js";
|
|
6
6
|
import { Modal as xe } from "./components/modal/index.js";
|
|
@@ -10,11 +10,11 @@ import { Checkbox as ce } from "./components/checkbox/component.js";
|
|
|
10
10
|
import { Segmented as Te } from "./components/segmented/component.js";
|
|
11
11
|
import { Table as ge } from "./components/table/component.js";
|
|
12
12
|
import { Tag as he } from "./components/tag/component.js";
|
|
13
|
-
import { TagList as
|
|
13
|
+
import { TagList as Pe } from "./components/tag/list.js";
|
|
14
14
|
import { ThemeProvider as be } from "./components/theme-provider/component.js";
|
|
15
15
|
import { ThemeContext as ke, useTheme as De } from "./components/theme-provider/context/themeStore.js";
|
|
16
16
|
import { ThemeContextProvider as Le } from "./components/theme-provider/context/provider.js";
|
|
17
|
-
import { Split as
|
|
17
|
+
import { Split as Oe, Splitter as ve } from "./components/splitter/component.js";
|
|
18
18
|
import { Truncate as Ne } from "./components/truncate/component.js";
|
|
19
19
|
import { DropdownMenu as we } from "./components/dropdown-menu/component.js";
|
|
20
20
|
import { DropdownMenuItem as Ue } from "./components/dropdown-menu/item.js";
|
|
@@ -33,64 +33,66 @@ import { default as no } from "merge-refs";
|
|
|
33
33
|
import { useAntdCssVarClassname as Co, useCls as co, useGetPrefixCls as uo } from "./components/utils/antdUtils.js";
|
|
34
34
|
import { changeThemeWithoutTransition as go } from "./components/utils/theme.js";
|
|
35
35
|
import { moveTypingCursorToEnd as ho } from "./components/utils/selectionRange.js";
|
|
36
|
-
import { DROPDOWN_COLLISION_AVOIDANCE as
|
|
36
|
+
import { DROPDOWN_COLLISION_AVOIDANCE as Po, POPUP_COLLISION_AVOIDANCE as Eo } from "./components/utils/constants.js";
|
|
37
37
|
import { buildAntdPlacement as Ro, parseAntdPlacement as ko } from "./components/utils/placement.js";
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
38
|
+
import { createRenderProp as Io } from "./components/utils/renderProp.js";
|
|
39
|
+
import { ScrollArea as Bo } from "./components/scroll-area/component.js";
|
|
40
|
+
import { Popover as vo } from "./components/popover/component.js";
|
|
41
|
+
import { Slider as No } from "./components/slider/component.js";
|
|
42
|
+
import { Tooltip as wo } from "./components/tooltip/component.js";
|
|
43
|
+
import { Breadcrumb as Uo } from "./components/breadcrumb/component.js";
|
|
44
|
+
import { BreadcrumbItem as Fo } from "./components/breadcrumb/item.js";
|
|
45
|
+
import { useUniqueKeysTree as Ko } from "./components/tree/useUniqueKeysTree.js";
|
|
46
|
+
import { getUniqueKeysFromOriginals as zo, processTreeData as Go } from "./components/tree/helpers.js";
|
|
47
|
+
import { Tree as Ho } from "./components/tree/components.js";
|
|
48
|
+
import { Spin as Jo } from "./components/spin/component.js";
|
|
49
|
+
import { Empty as Yo } from "./components/empty/component.js";
|
|
50
|
+
import { Form as $o } from "./components/form/component.js";
|
|
51
|
+
import { Field as or } from "./components/field/component.js";
|
|
52
|
+
import { Tour as tr } from "./components/tour/component.js";
|
|
53
|
+
import { Toast as mr } from "./components/toast/component.js";
|
|
54
|
+
import { toast as fr, toastManager as xr } from "./components/toast/function.js";
|
|
55
|
+
import { VerticalCollapsiblePanel as lr } from "./components/vertical-collapsible-panel/component.js";
|
|
56
|
+
import { PopupPanel as ir } from "./components/popup-panel/component.js";
|
|
57
|
+
import { CodeBlock as cr } from "./components/code-block/component.js";
|
|
58
|
+
import { StackChild as Tr } from "./components/stack/StackChild.js";
|
|
59
|
+
import { Stack as gr } from "./components/stack/index.js";
|
|
60
|
+
import { Collapse as hr } from "./components/collapse/component.js";
|
|
61
|
+
import { Input as Pr } from "./components/input/component.js";
|
|
62
|
+
import { Badge as br, InternalBadge as Rr } from "./components/badge/component.js";
|
|
63
|
+
import { Radio as Dr } from "./components/radio/component.js";
|
|
64
|
+
import { Button as Lr } from "./components/button/component.js";
|
|
65
|
+
import { DSRoot as Or } from "./components/ds-root/component.js";
|
|
66
|
+
import { useDS as yr } from "./components/ds-root/hook.js";
|
|
67
|
+
import { DragDrop as Mr, DragDropRoot as wr } from "./components/drag-drop/index.js";
|
|
68
|
+
import { ColorSelect as Ur } from "./components/color-select/component.js";
|
|
69
|
+
import { Nav as Fr } from "./components/nav/index.js";
|
|
70
|
+
import { ChoiceList as Kr } from "./components/choice-list/component.js";
|
|
71
|
+
import { StatusIcon as zr } from "./components/status-icon/component.js";
|
|
72
|
+
import { Resizable as Qr } from "./components/resizable/component.js";
|
|
73
|
+
import { Combobox as jr } from "./components/combobox/component.js";
|
|
74
|
+
import { SelectTrigger as Xr, SelectTriggerArrow as Yr, SelectTriggerClear as Zr, SelectTriggerContent as $r, SelectTriggerRoot as et } from "./components/select-trigger/component.js";
|
|
75
|
+
import { Loader as rt } from "./components/loader/component.js";
|
|
76
|
+
import { WindowPortal as at } from "./components/window-portal/component.js";
|
|
77
|
+
import { useForm as pt, useWatch as ft } from "antd/es/form/Form";
|
|
78
|
+
import { useMessage as st, useModal as lt, useToken as nt } from "./components/hooks/antd.js";
|
|
79
|
+
import { default as Ct } from "antd/es/app/useApp";
|
|
80
|
+
import { useAnimationsFinished as ut, useEnhancedEffect as Tt, useEventCallback as dt, useLatestRef as gt } from "./components/hooks/base-ui.js";
|
|
81
|
+
import { useControlledState as ht } from "./components/hooks/useControlledState.js";
|
|
82
|
+
import { useCharts as Pt } from "./components/hooks/useCharts.js";
|
|
83
|
+
import { useCSSVariables as bt } from "./components/hooks/useCSSVariables.js";
|
|
84
|
+
import { useHover as kt } from "./components/hooks/useHover.js";
|
|
85
|
+
import { useDraggable as It } from "./components/hooks/useDraggable.js";
|
|
86
|
+
import { BREAKPOINTS as Bt, useBreakpoint as Ot } from "./components/hooks/useBreakpoint.js";
|
|
87
|
+
import { useWindowSize as yt } from "./components/hooks/useWindowSize.js";
|
|
88
|
+
import { useElementSize as Mt, useResizeObserver as wt } from "./components/hooks/useResizeObserver.js";
|
|
89
|
+
import { useBaseUIPlacement as Ut } from "./components/hooks/useBaseUIPlacement.js";
|
|
90
|
+
import { antdColorTokens as Ft, darkTheme as Vt, lightTheme as Kt } from "./tokens/and-theme/tokens.js";
|
|
91
|
+
import { categoricalChartColorKeys as zt, categoricalChartColorTokens as Gt, categoricalChartsColors as Qt, chartColorTokens as Ht, rawChartColorTokens as jt } from "./tokens/charts/palettes/cloudscape.js";
|
|
92
|
+
import { COLORBREWER as Xt } from "./tokens/charts/palettes/colorbrewer.js";
|
|
93
|
+
import { tab10 as Zt, tab20 as $t, tab20b as ea, tab20c as oa } from "./tokens/charts/palettes/tableau.js";
|
|
94
|
+
import { CATEGORICAL_PALETTES as ta, CATEGORICAL_PALETTE_NAMES as aa, SEQUENTIAL_PALETTES as ma, SEQUENTIAL_PALETTE_NAMES as pa, getAllCategoricalChartColors as fa, getAllSequentialChartColors as xa, getCategoricalChartColors as sa, getSequentialChartColors as la } from "./tokens/charts/palettes/index.js";
|
|
95
|
+
import { getColorsByTheme as ia, getTokensByTheme as Ca, resolveColorTokens as ca } from "./tokens/utils.js";
|
|
94
96
|
export {
|
|
95
97
|
f as Affix,
|
|
96
98
|
x as Alert,
|
|
@@ -98,185 +100,187 @@ export {
|
|
|
98
100
|
l as App,
|
|
99
101
|
n as AutoComplete,
|
|
100
102
|
i as Avatar,
|
|
101
|
-
|
|
103
|
+
Bt as BREAKPOINTS,
|
|
102
104
|
C as BackTop,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
br as Badge,
|
|
106
|
+
Uo as Breadcrumb,
|
|
107
|
+
Fo as BreadcrumbItem,
|
|
108
|
+
Lr as Button,
|
|
109
|
+
ta as CATEGORICAL_PALETTES,
|
|
110
|
+
aa as CATEGORICAL_PALETTE_NAMES,
|
|
111
|
+
Xt as COLORBREWER,
|
|
110
112
|
c as Calendar,
|
|
111
113
|
u as Card,
|
|
112
114
|
T as Carousel,
|
|
113
115
|
d as Cascader,
|
|
114
116
|
ce as Checkbox,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
Kr as ChoiceList,
|
|
118
|
+
cr as CodeBlock,
|
|
117
119
|
g as Col,
|
|
118
|
-
|
|
120
|
+
hr as Collapse,
|
|
119
121
|
S as ColorPicker,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
Ur as ColorSelect,
|
|
123
|
+
jr as Combobox,
|
|
122
124
|
Fe as CommandPalette,
|
|
123
125
|
h as ConfigProvider,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
Po as DROPDOWN_COLLISION_AVOIDANCE,
|
|
127
|
+
Or as DSRoot,
|
|
126
128
|
ae as DataTable,
|
|
127
129
|
A as DatePicker,
|
|
128
130
|
Qe as DefaultUpload,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
P as Descriptions,
|
|
132
|
+
E as Divider,
|
|
133
|
+
Mr as DragDrop,
|
|
134
|
+
wr as DragDropRoot,
|
|
133
135
|
b as Drawer,
|
|
134
136
|
R as Dropdown,
|
|
135
137
|
we as DropdownMenu,
|
|
136
138
|
Ue as DropdownMenuItem,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
Yo as Empty,
|
|
140
|
+
or as Field,
|
|
139
141
|
k as Flex,
|
|
140
142
|
D as FloatButton,
|
|
141
|
-
|
|
143
|
+
$o as Form,
|
|
142
144
|
I as Grid,
|
|
143
145
|
le as IconButton,
|
|
144
|
-
|
|
146
|
+
Pr as Input,
|
|
145
147
|
L as InputNumber,
|
|
146
|
-
|
|
148
|
+
Rr as InternalBadge,
|
|
147
149
|
Ke as KeyboardShortcut,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
B as Layout,
|
|
151
|
+
O as List,
|
|
152
|
+
rt as Loader,
|
|
151
153
|
v as Mentions,
|
|
152
154
|
y as Menu,
|
|
153
155
|
xe as Modal,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
Fr as Nav,
|
|
157
|
+
Eo as POPUP_COLLISION_AVOIDANCE,
|
|
156
158
|
N as Pagination,
|
|
157
159
|
M as Popconfirm,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
vo as Popover,
|
|
161
|
+
ir as PopupPanel,
|
|
160
162
|
w as Progress,
|
|
161
163
|
_ as QRCode,
|
|
162
|
-
|
|
164
|
+
Dr as Radio,
|
|
163
165
|
U as Rate,
|
|
164
|
-
|
|
166
|
+
Qr as Resizable,
|
|
165
167
|
W as Result,
|
|
166
168
|
F as Row,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
ma as SEQUENTIAL_PALETTES,
|
|
170
|
+
pa as SEQUENTIAL_PALETTE_NAMES,
|
|
171
|
+
Bo as ScrollArea,
|
|
170
172
|
Te as Segmented,
|
|
171
173
|
pe as Select,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
Xr as SelectTrigger,
|
|
175
|
+
Yr as SelectTriggerArrow,
|
|
176
|
+
Zr as SelectTriggerClear,
|
|
177
|
+
$r as SelectTriggerContent,
|
|
178
|
+
et as SelectTriggerRoot,
|
|
177
179
|
V as Skeleton,
|
|
178
|
-
|
|
180
|
+
No as Slider,
|
|
179
181
|
K as Space,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
Jo as Spin,
|
|
183
|
+
Oe as Split,
|
|
182
184
|
ve as Splitter,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
gr as Stack,
|
|
186
|
+
Tr as StackChild,
|
|
185
187
|
q as Statistic,
|
|
186
|
-
|
|
188
|
+
zr as StatusIcon,
|
|
187
189
|
z as Steps,
|
|
188
190
|
ie as Switch,
|
|
189
191
|
ge as Table,
|
|
190
192
|
G as Tabs,
|
|
191
193
|
he as Tag,
|
|
192
|
-
|
|
194
|
+
Pe as TagList,
|
|
193
195
|
ke as ThemeContext,
|
|
194
196
|
Le as ThemeContextProvider,
|
|
195
197
|
be as ThemeProvider,
|
|
196
198
|
Q as TimePicker,
|
|
197
199
|
H as Timeline,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
mr as Toast,
|
|
201
|
+
wo as Tooltip,
|
|
202
|
+
tr as Tour,
|
|
201
203
|
j as Transfer,
|
|
202
204
|
ze as Transition,
|
|
203
|
-
|
|
205
|
+
Ho as Tree,
|
|
204
206
|
J as TreeSelect,
|
|
205
207
|
Ne as Truncate,
|
|
206
208
|
X as Typography,
|
|
207
209
|
He as Upload,
|
|
208
|
-
|
|
210
|
+
lr as VerticalCollapsiblePanel,
|
|
209
211
|
Y as Watermark,
|
|
210
|
-
|
|
212
|
+
at as WindowPortal,
|
|
211
213
|
fo as WithRenderProp,
|
|
212
|
-
|
|
214
|
+
Ft as antdColorTokens,
|
|
213
215
|
Ro as buildAntdPlacement,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
216
|
+
zt as categoricalChartColorKeys,
|
|
217
|
+
Gt as categoricalChartColorTokens,
|
|
218
|
+
Qt as categoricalChartsColors,
|
|
217
219
|
go as changeThemeWithoutTransition,
|
|
218
|
-
|
|
220
|
+
Ht as chartColorTokens,
|
|
219
221
|
Ye as clsx,
|
|
220
222
|
Ze as cn,
|
|
221
223
|
r as componentMetadata,
|
|
224
|
+
Io as createRenderProp,
|
|
222
225
|
m as createSyntheticClickEvent,
|
|
223
226
|
$e as cx,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
Vt as darkTheme,
|
|
228
|
+
fa as getAllCategoricalChartColors,
|
|
229
|
+
xa as getAllSequentialChartColors,
|
|
230
|
+
sa as getCategoricalChartColors,
|
|
231
|
+
ia as getColorsByTheme,
|
|
229
232
|
t as getComponentsByCategory,
|
|
230
233
|
so as getReactElementProp,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
+
la as getSequentialChartColors,
|
|
235
|
+
Ca as getTokensByTheme,
|
|
236
|
+
zo as getUniqueKeysFromOriginals,
|
|
234
237
|
to as isTracebackError,
|
|
235
238
|
mo as isValidHexColor,
|
|
236
|
-
|
|
239
|
+
Kt as lightTheme,
|
|
237
240
|
no as mergeRefs,
|
|
238
241
|
Z as message,
|
|
239
242
|
ho as moveTypingCursorToEnd,
|
|
240
243
|
$ as notification,
|
|
241
244
|
ko as parseAntdPlacement,
|
|
242
|
-
|
|
243
|
-
|
|
245
|
+
Go as processTreeData,
|
|
246
|
+
jt as rawChartColorTokens,
|
|
244
247
|
oo as reactNodeToString,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
ca as resolveColorTokens,
|
|
249
|
+
Zt as tab10,
|
|
250
|
+
$t as tab20,
|
|
251
|
+
ea as tab20b,
|
|
252
|
+
oa as tab20c,
|
|
250
253
|
ee as theme,
|
|
251
|
-
|
|
252
|
-
|
|
254
|
+
fr as toast,
|
|
255
|
+
xr as toastManager,
|
|
253
256
|
oe as unstableSetRender,
|
|
254
|
-
|
|
257
|
+
ut as useAnimationsFinished,
|
|
255
258
|
Co as useAntdCssVarClassname,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
259
|
+
Ct as useApp,
|
|
260
|
+
Ut as useBaseUIPlacement,
|
|
261
|
+
Ot as useBreakpoint,
|
|
262
|
+
bt as useCSSVariables,
|
|
263
|
+
Pt as useCharts,
|
|
260
264
|
co as useCls,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
ht as useControlledState,
|
|
266
|
+
yr as useDS,
|
|
267
|
+
It as useDraggable,
|
|
268
|
+
Mt as useElementSize,
|
|
269
|
+
Tt as useEnhancedEffect,
|
|
270
|
+
dt as useEventCallback,
|
|
271
|
+
pt as useForm,
|
|
268
272
|
uo as useGetPrefixCls,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
273
|
+
kt as useHover,
|
|
274
|
+
gt as useLatestRef,
|
|
275
|
+
st as useMessage,
|
|
276
|
+
lt as useModal,
|
|
277
|
+
wt as useResizeObserver,
|
|
274
278
|
De as useTheme,
|
|
275
|
-
|
|
276
|
-
|
|
279
|
+
nt as useToken,
|
|
280
|
+
Ko as useUniqueKeysTree,
|
|
277
281
|
Je as useUploadItemRender,
|
|
278
|
-
|
|
279
|
-
|
|
282
|
+
ft as useWatch,
|
|
283
|
+
yt as useWindowSize,
|
|
280
284
|
re as version
|
|
281
285
|
};
|
|
282
286
|
//# 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/dist/metadata.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,UAAU,GACV,SAAS,GACT,SAAS,CAAC;AAEd,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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