one-design-next 0.0.105 → 0.0.106
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/_util/useLayoutEffect.d.ts +1 -1
- package/dist/_util/useLayoutEffect.js +1 -1
- package/dist/approval/index.d.ts +1 -1
- package/dist/approval/index.js +1 -1
- package/dist/avatar/primitive.d.ts +1 -1
- package/dist/avatar/primitive.js +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +1 -1
- package/dist/card/header.d.ts +1 -1
- package/dist/card/header.js +5 -5
- package/dist/card/index.d.ts +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cascader/fork/Cascader.js +1 -1
- package/dist/cascader/fork/OptionList/Checkbox.d.ts +1 -1
- package/dist/cascader/fork/OptionList/Checkbox.js +1 -1
- package/dist/cascader/fork/OptionList/Column.d.ts +1 -1
- package/dist/cascader/fork/OptionList/Column.js +1 -1
- package/dist/cascader/fork/OptionList/List.js +1 -1
- package/dist/cascader/fork/OptionList/index.js +1 -1
- package/dist/cascader/fork/OptionList/useActive.js +1 -1
- package/dist/cascader/fork/Panel.js +1 -1
- package/dist/cascader/fork/hooks/useValues.js +2 -2
- package/dist/chart/bar.d.ts +1 -1
- package/dist/chart/bar.js +1 -1
- package/dist/chart/bullet.d.ts +1 -1
- package/dist/chart/bullet.js +1 -1
- package/dist/chart/butterfly.d.ts +1 -1
- package/dist/chart/butterfly.js +1 -1
- package/dist/chart/dual-line.d.ts +1 -1
- package/dist/chart/dual-line.js +1 -1
- package/dist/chart/host.d.ts +1 -1
- package/dist/chart/host.js +1 -1
- package/dist/chart/line.d.ts +1 -1
- package/dist/chart/line.js +1 -1
- package/dist/chart/pie.d.ts +1 -1
- package/dist/chart/pie.js +1 -1
- package/dist/chart/quadrant.d.ts +1 -1
- package/dist/chart/quadrant.js +1 -1
- package/dist/chart/radar.d.ts +1 -1
- package/dist/chart/radar.js +1 -1
- package/dist/chart/ripple.d.ts +1 -1
- package/dist/chart/ripple.js +1 -1
- package/dist/chart/sankey.d.ts +1 -1
- package/dist/chart/sankey.js +1 -1
- package/dist/chart/symmetric.d.ts +1 -1
- package/dist/chart/symmetric.js +1 -1
- package/dist/chart/treemap.d.ts +1 -1
- package/dist/chart/treemap.js +1 -1
- package/dist/chart/word-cloud.d.ts +1 -1
- package/dist/chart/word-cloud.js +1 -1
- package/dist/checkbox/Context.d.ts +1 -1
- package/dist/checkbox/Context.js +1 -1
- package/dist/clarify-dock/index.d.ts +1 -1
- package/dist/clarify-dock/index.js +1 -2
- package/dist/collapse/primitive.d.ts +1 -1
- package/dist/collapse/primitive.js +1 -1
- package/dist/config-provider/index.d.ts +1 -1
- package/dist/config-provider/index.js +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/index.js +1 -2
- package/dist/empty/index.d.ts +1 -1
- package/dist/empty/index.js +19 -26
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +3 -3
- package/dist/link/index.d.ts +1 -1
- package/dist/link/index.js +1 -1
- package/dist/loading/index.d.ts +1 -1
- package/dist/loading/index.js +1 -1
- package/dist/pop-base/mergeProps.d.ts +1 -1
- package/dist/pop-base/mergeProps.js +2 -0
- package/dist/pop-base/useForkRef.d.ts +1 -1
- package/dist/pop-base/useForkRef.js +4 -4
- package/dist/radio/primitive.d.ts +2 -2
- package/dist/radio/primitive.js +2 -2
- package/dist/scroll-area/index.d.ts +1 -1
- package/dist/scroll-area/index.js +1 -1
- package/dist/select/useIcons.d.ts +5 -6
- package/dist/select/useIcons.js +3 -4
- package/dist/skill-card/index.d.ts +1 -1
- package/dist/skill-card/index.js +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/virtual-list/index.d.ts +1 -1
- package/dist/virtual-list/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const useLayoutEffect: (callback: (mount: boolean) => void | VoidFunction, deps?: React.DependencyList) => void;
|
|
3
3
|
export declare const useLayoutUpdateEffect: typeof React.useEffect;
|
|
4
4
|
export default useLayoutEffect;
|
package/dist/approval/index.d.ts
CHANGED
package/dist/approval/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare const AvatarRoot: React.ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react/avatar").AvatarRootProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
4
|
declare function AvatarImage(props: React.ComponentProps<typeof AvatarPrimitive.Image>): React.JSX.Element;
|
|
5
5
|
declare function AvatarFallback(props: React.ComponentProps<typeof AvatarPrimitive.Fallback>): React.JSX.Element;
|
package/dist/avatar/primitive.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
var AvatarRoot = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7
7
|
return /*#__PURE__*/React.createElement(AvatarPrimitive.Root, _extends({
|
|
8
8
|
ref: ref,
|
package/dist/button/index.d.ts
CHANGED
package/dist/button/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["className", "size", "intent", "light", "asChild", "disabled", "loading", "icon", "rightIcon", "children"];
|
|
4
4
|
import { Slot, Slottable } from '@radix-ui/react-slot';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import HoverFill from "../hover-fill";
|
|
7
7
|
import Icon from "../icon";
|
|
8
8
|
import "./style";
|
package/dist/card/header.d.ts
CHANGED
package/dist/card/header.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["className", "title", "subTitle", "topContent", "children", "size"];
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
var CardHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7
7
|
var className = _ref.className,
|
|
8
8
|
title = _ref.title,
|
|
@@ -12,7 +12,7 @@ var CardHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12
12
|
_ref$size = _ref.size,
|
|
13
13
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
14
14
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
-
var showTitleRow = title
|
|
15
|
+
var showTitleRow = title !== undefined && title !== null && title !== '';
|
|
16
16
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
17
17
|
ref: ref,
|
|
18
18
|
"data-odn-card-header": true,
|
|
@@ -24,11 +24,11 @@ var CardHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
24
24
|
"data-odn-card-header-top": true
|
|
25
25
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26
26
|
"data-odn-card-title": true
|
|
27
|
-
}, title), subTitle
|
|
27
|
+
}, title), subTitle !== undefined && subTitle !== null && subTitle !== '' && /*#__PURE__*/React.createElement("div", {
|
|
28
28
|
"data-odn-card-subtitle": true
|
|
29
|
-
}, subTitle)), topContent
|
|
29
|
+
}, subTitle)), topContent !== undefined && topContent !== null && topContent !== '' && /*#__PURE__*/React.createElement("div", {
|
|
30
30
|
"data-odn-card-top-content": true
|
|
31
|
-
}, topContent)), children
|
|
31
|
+
}, topContent)), children !== undefined && children !== null && children !== '' && /*#__PURE__*/React.createElement("div", {
|
|
32
32
|
"data-odn-card-header-children": true
|
|
33
33
|
}, children));
|
|
34
34
|
});
|
package/dist/card/index.d.ts
CHANGED
package/dist/card/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["className", "elevation", "interactive", "children"];
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import CardHeader from "./header";
|
|
7
7
|
import "./style";
|
|
8
8
|
/**
|
|
@@ -16,7 +16,7 @@ import { BaseSelect } from 'rc-select';
|
|
|
16
16
|
import useId from 'rc-select/es/hooks/useId';
|
|
17
17
|
import useEvent from 'rc-util/es/hooks/useEvent';
|
|
18
18
|
import useMergedState from 'rc-util/es/hooks/useMergedState';
|
|
19
|
-
import
|
|
19
|
+
import React from 'react';
|
|
20
20
|
import useSelect from "./hooks/useSelect";
|
|
21
21
|
import useValues from "./hooks/useValues";
|
|
22
22
|
import OptionList from "./OptionList";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import CascaderContext from 'rc-cascader/es/context';
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
export default function Checkbox(_ref) {
|
|
6
6
|
var prefixCls = _ref.prefixCls,
|
|
7
7
|
checked = _ref.checked,
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import CascaderContext from 'rc-cascader/es/context';
|
|
5
5
|
import { SEARCH_MARK } from 'rc-cascader/es/hooks/useSearchOptions';
|
|
6
6
|
import { isLeaf, toPathKey } from 'rc-cascader/es/utils/commonUtil';
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import Checkbox from "./Checkbox";
|
|
9
9
|
export var FIX_LABEL = '__cascader_fix_label__';
|
|
10
10
|
export default function Column(_ref) {
|
|
@@ -10,7 +10,7 @@ import CacheContent from 'rc-cascader/es/OptionList/CacheContent';
|
|
|
10
10
|
import useKeyboard from 'rc-cascader/es/OptionList/useKeyboard';
|
|
11
11
|
import { getFullPathKeys, isLeaf, scrollIntoParentView, toPathKey, toPathKeys, toPathValueStr } from 'rc-cascader/es/utils/commonUtil';
|
|
12
12
|
import { toPathOptions } from 'rc-cascader/es/utils/treeUtil';
|
|
13
|
-
import
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import Column, { FIX_LABEL } from "./Column";
|
|
15
15
|
import useActive from "./useActive";
|
|
16
16
|
var RawOptionList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
2
2
|
import { useBaseProps } from 'rc-select';
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import RawOptionList from "./List";
|
|
5
5
|
var RefOptionList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6
6
|
var baseProps = useBaseProps();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import CascaderContext from 'rc-cascader/es/context';
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
4
|
var getStrictActivePath = function getStrictActivePath(path) {
|
|
5
5
|
if (!(path !== null && path !== void 0 && path.length)) {
|
|
6
6
|
return [];
|
|
@@ -7,7 +7,7 @@ import useOptions from 'rc-cascader/es/hooks/useOptions';
|
|
|
7
7
|
import { fillFieldNames, toRawValues } from 'rc-cascader/es/utils/commonUtil';
|
|
8
8
|
import { toPathOptions } from 'rc-cascader/es/utils/treeUtil';
|
|
9
9
|
import { useEvent, useMergedState } from 'rc-util';
|
|
10
|
-
import
|
|
10
|
+
import React from 'react';
|
|
11
11
|
import useSelect from "./hooks/useSelect";
|
|
12
12
|
import useValues from "./hooks/useValues";
|
|
13
13
|
import RawOptionList from "./OptionList/List";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import { conductCheck } from 'rc-tree/es/utils/conductUtil';
|
|
3
|
-
import * as React from 'react';
|
|
4
2
|
import { toPathKeys } from 'rc-cascader/es/utils/commonUtil';
|
|
3
|
+
import { conductCheck } from 'rc-tree/es/utils/conductUtil';
|
|
4
|
+
import React from 'react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @param {boolean} multiple
|
package/dist/chart/bar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EChartsOption } from 'echarts';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type ChartHostProps } from './host';
|
|
4
4
|
import { type ChartSeries } from './option';
|
|
5
5
|
export interface ChartBarProps extends Omit<ChartHostProps, 'option'> {
|
package/dist/chart/bar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["categories", "series", "option"];
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import ChartHost from "./host";
|
|
6
6
|
import { cartesianOption, mergeOption } from "./option";
|
|
7
7
|
var ChartBar = function ChartBar(_ref) {
|
package/dist/chart/bullet.d.ts
CHANGED
package/dist/chart/bullet.js
CHANGED
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
5
5
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
6
6
|
var _excluded = ["data", "nameLabel", "valueLabel", "rateLabel", "benchLabel", "nameWidth", "valueWidth", "hideValue", "hideAxisLabel", "hideTopBarBorder", "maxBodyHeight", "className", "style"];
|
|
7
7
|
import clsx from 'clsx';
|
|
8
|
-
import
|
|
8
|
+
import React from 'react';
|
|
9
9
|
import { createPortal } from 'react-dom';
|
|
10
10
|
import Empty from "../empty";
|
|
11
11
|
import HoverFill from "../hover-fill";
|
package/dist/chart/butterfly.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
4
|
var _excluded = ["categories", "leftValues", "rightValues", "leftLabel", "rightLabel", "leftReferenceValue", "leftReferenceLabel", "option"];
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import ChartHost from "./host";
|
|
7
7
|
import { mergeOption } from "./option";
|
|
8
8
|
import { readToken } from "./tokens";
|
package/dist/chart/dual-line.js
CHANGED
|
@@ -7,7 +7,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
7
7
|
var _excluded = ["title", "titleForDate", "leftMetric", "rightMetric", "breakdown", "data", "leftLegend", "rightLegend", "leftAxisLabel", "rightAxisLabel", "showRight", "onHover", "renderDetail", "className", "style"];
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { motion } from 'motion/react';
|
|
10
|
-
import
|
|
10
|
+
import React from 'react';
|
|
11
11
|
import Button from "../button";
|
|
12
12
|
import "../button/style";
|
|
13
13
|
import Card from "../card";
|
package/dist/chart/host.d.ts
CHANGED
package/dist/chart/host.js
CHANGED
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
var _excluded = ["className", "option", "height", "style", "disabled"];
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import ReactECharts from 'echarts-for-react';
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import Empty from "../empty";
|
|
9
9
|
import { echarts } from "./echarts";
|
|
10
10
|
import "./style";
|
package/dist/chart/line.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EChartsOption } from 'echarts';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type ChartHostProps } from './host';
|
|
4
4
|
import { type ChartSeries } from './option';
|
|
5
5
|
export interface ChartLineProps extends Omit<ChartHostProps, 'option'> {
|
package/dist/chart/line.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["categories", "series", "option"];
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import ChartHost from "./host";
|
|
6
6
|
import { cartesianOption, mergeOption } from "./option";
|
|
7
7
|
var ChartLine = function ChartLine(_ref) {
|
package/dist/chart/pie.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EChartsOption } from 'echarts';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type ChartHostProps } from './host';
|
|
4
4
|
import { type ChartNamedPoint } from './option';
|
|
5
5
|
export interface ChartPieProps extends Omit<ChartHostProps, 'option'> {
|
package/dist/chart/pie.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["data", "option"];
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import ChartHost from "./host";
|
|
6
6
|
import { mergeOption, pieOption } from "./option";
|
|
7
7
|
var ChartPie = function ChartPie(_ref) {
|
package/dist/chart/quadrant.d.ts
CHANGED
package/dist/chart/quadrant.js
CHANGED
|
@@ -7,7 +7,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
7
7
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
8
8
|
var _excluded = ["data", "variant", "quadrants", "topText", "bottomText", "leftText", "rightText", "height", "popupRightText", "mergedCornerText", "mergedTitles", "onDotClick", "className", "style"];
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import
|
|
10
|
+
import React from 'react';
|
|
11
11
|
import Empty from "../empty";
|
|
12
12
|
import HoverFill from "../hover-fill";
|
|
13
13
|
import Popover from "../popover";
|
package/dist/chart/radar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EChartsOption } from 'echarts';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { type ChartHostProps } from './host';
|
|
4
4
|
import { type ChartRadarSeries } from './option';
|
|
5
5
|
export interface ChartRadarProps extends Omit<ChartHostProps, 'option'> {
|
package/dist/chart/radar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["indicators", "series", "option"];
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import ChartHost from "./host";
|
|
6
6
|
import { mergeOption, radarOption } from "./option";
|
|
7
7
|
var ChartRadar = function ChartRadar(_ref) {
|
package/dist/chart/ripple.d.ts
CHANGED
package/dist/chart/ripple.js
CHANGED
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["seed", "data", "height", "showLegend", "renderPopup", "onNodeClick", "className", "style"];
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import Empty from "../empty";
|
|
9
9
|
import Popover from "../popover";
|
|
10
10
|
import { formatRipplePercent, formatRippleWan, layoutRipple } from "./ripple-layout";
|
package/dist/chart/sankey.d.ts
CHANGED
package/dist/chart/sankey.js
CHANGED
|
@@ -6,7 +6,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
6
6
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
7
7
|
var _excluded = ["inLabels", "outLabels", "valueMatrix", "statusMatrix", "heightMode", "minStripHeight", "maxStripHeight", "gapHeight", "className", "style"];
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import
|
|
9
|
+
import React from 'react';
|
|
10
10
|
import { createPortal } from 'react-dom';
|
|
11
11
|
import Empty from "../empty";
|
|
12
12
|
import { buildSankeyLayout, resolveSankeyStatus } from "./sankey-layout";
|
package/dist/chart/symmetric.js
CHANGED
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["data", "leftName", "rightName", "leftColor", "rightColor", "className", "style"];
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import
|
|
6
|
+
import React from 'react';
|
|
7
7
|
import Empty from "../empty";
|
|
8
8
|
import "./style";
|
|
9
9
|
function formatCount(value) {
|
package/dist/chart/treemap.d.ts
CHANGED
package/dist/chart/treemap.js
CHANGED
|
@@ -6,7 +6,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
7
|
var _excluded = ["data", "height", "gap", "minW", "minH", "maxItems", "onCellClick", "className", "style"];
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import
|
|
9
|
+
import React from 'react';
|
|
10
10
|
import Empty from "../empty";
|
|
11
11
|
import Popover from "../popover";
|
|
12
12
|
import "./style";
|
package/dist/chart/word-cloud.js
CHANGED
|
@@ -6,7 +6,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
7
|
var _excluded = ["data", "height", "maxWords", "tooltipValueLabel", "formatter", "className", "style"];
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import
|
|
9
|
+
import React from 'react';
|
|
10
10
|
import WordCloud from 'react-d3-cloud';
|
|
11
11
|
import { createPortal } from 'react-dom';
|
|
12
12
|
import Empty from "../empty";
|
package/dist/checkbox/Context.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export var GroupContext = /*#__PURE__*/React.createContext({});
|
|
@@ -3,8 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import { useReducedMotion } from 'motion/react';
|
|
6
|
-
import
|
|
7
|
-
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
6
|
+
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
8
7
|
import Button from "../button";
|
|
9
8
|
import DatePicker from "../date-picker";
|
|
10
9
|
import DateRangePicker from "../date-range-picker";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
|
|
2
2
|
import { type HTMLMotionProps, type Transition } from 'motion/react';
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
4
|
type CollapsibleContextType = {
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
setIsOpen: (isOpen: boolean) => void;
|
|
@@ -10,7 +10,7 @@ var _excluded = ["children", "asChild", "nativeButton"],
|
|
|
10
10
|
import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
|
|
11
11
|
import { Slot } from '@radix-ui/react-slot';
|
|
12
12
|
import { motion } from 'motion/react';
|
|
13
|
-
import
|
|
13
|
+
import React from 'react';
|
|
14
14
|
function assignRef(ref, value) {
|
|
15
15
|
if (!ref) return;
|
|
16
16
|
if (typeof ref === 'function') {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children", "icons", "hoverFill"];
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
/**
|
|
6
6
|
* 三个 param,权重依次递减
|
|
7
7
|
*/
|
package/dist/dropdown/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 多选的设计稿来源于互选需求:https://www.figma.com/design/DBgqcGDjdPnr7XObtGY7ES/%F0%9F%94%B5%E3%80%90%E5%B9%BF%E5%91%8A%E4%B8%BB%E4%BE%A7%E3%80%91%E4%BA%92%E9%80%89%E5%B9%B3%E5%8F%B0---%E4%BD%93%E9%AA%8C%E5%8D%87%E7%BA%A7%E4%B8%93%E9%A1%B9?node-id=461-72709&t=r6iaLWzcmAk5VXR6-4
|
|
3
3
|
*/
|
|
4
4
|
import { Menu } from '@base-ui/react/menu';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import './style';
|
|
7
7
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof Menu.Root>): React.JSX.Element;
|
|
8
8
|
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof Menu.Portal>): React.JSX.Element;
|
package/dist/dropdown/index.js
CHANGED
|
@@ -23,8 +23,7 @@ var _excluded = ["asChild", "children"],
|
|
|
23
23
|
_excluded11 = ["style"];
|
|
24
24
|
import { Menu } from '@base-ui/react/menu';
|
|
25
25
|
import { Slot } from '@radix-ui/react-slot';
|
|
26
|
-
import
|
|
27
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
26
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
28
27
|
import Checkbox from "../checkbox";
|
|
29
28
|
import HoverFill from "../hover-fill";
|
|
30
29
|
import Icon from "../icon";
|
package/dist/empty/index.d.ts
CHANGED
package/dist/empty/index.js
CHANGED
|
@@ -2,13 +2,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["className", "type", "size", "title", "description", "extra", "image"];
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import "./style";
|
|
7
7
|
// ─── SVG 占位插槽 ────────────────────────────────────────────────────────────
|
|
8
8
|
// 每个类型对应一个独立的 SVG 组件,size 可取 'large' | 'medium' | 'small'
|
|
9
9
|
|
|
10
|
-
var EmptySvgSearch = function EmptySvgSearch(
|
|
11
|
-
var _ = _ref.size;
|
|
10
|
+
var EmptySvgSearch = function EmptySvgSearch() {
|
|
12
11
|
// TODO: 填入搜索为空 SVG
|
|
13
12
|
return /*#__PURE__*/React.createElement("svg", {
|
|
14
13
|
width: "72",
|
|
@@ -347,8 +346,7 @@ var EmptySvgSearch = function EmptySvgSearch(_ref) {
|
|
|
347
346
|
stopColor: "#C4C7CC"
|
|
348
347
|
}))));
|
|
349
348
|
};
|
|
350
|
-
var EmptySvgData = function EmptySvgData(
|
|
351
|
-
var _ = _ref2.size;
|
|
349
|
+
var EmptySvgData = function EmptySvgData() {
|
|
352
350
|
// TODO: 填入数据为空 SVG
|
|
353
351
|
return /*#__PURE__*/React.createElement("svg", {
|
|
354
352
|
width: "66",
|
|
@@ -672,8 +670,7 @@ var EmptySvgData = function EmptySvgData(_ref2) {
|
|
|
672
670
|
stopColor: "#C4C7CC"
|
|
673
671
|
}))));
|
|
674
672
|
};
|
|
675
|
-
var EmptySvgCrowd = function EmptySvgCrowd(
|
|
676
|
-
var _ = _ref3.size;
|
|
673
|
+
var EmptySvgCrowd = function EmptySvgCrowd() {
|
|
677
674
|
// TODO: 填入人群为空 SVG
|
|
678
675
|
return /*#__PURE__*/React.createElement("svg", {
|
|
679
676
|
width: "72",
|
|
@@ -1176,8 +1173,7 @@ var EmptySvgCrowd = function EmptySvgCrowd(_ref3) {
|
|
|
1176
1173
|
stopColor: "white"
|
|
1177
1174
|
}))));
|
|
1178
1175
|
};
|
|
1179
|
-
var EmptySvgAddress = function EmptySvgAddress(
|
|
1180
|
-
var _ = _ref4.size;
|
|
1176
|
+
var EmptySvgAddress = function EmptySvgAddress() {
|
|
1181
1177
|
// TODO: 填入地址为空 SVG
|
|
1182
1178
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1183
1179
|
width: "72",
|
|
@@ -1510,8 +1506,7 @@ var EmptySvgAddress = function EmptySvgAddress(_ref4) {
|
|
|
1510
1506
|
stopColor: "white"
|
|
1511
1507
|
}))));
|
|
1512
1508
|
};
|
|
1513
|
-
var EmptySvgMessage = function EmptySvgMessage(
|
|
1514
|
-
var _ = _ref5.size;
|
|
1509
|
+
var EmptySvgMessage = function EmptySvgMessage() {
|
|
1515
1510
|
// TODO: 填入消息为空 SVG
|
|
1516
1511
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1517
1512
|
width: "72",
|
|
@@ -1918,8 +1913,7 @@ var EmptySvgMessage = function EmptySvgMessage(_ref5) {
|
|
|
1918
1913
|
stopColor: "white"
|
|
1919
1914
|
}))));
|
|
1920
1915
|
};
|
|
1921
|
-
var EmptySvgImage = function EmptySvgImage(
|
|
1922
|
-
var _ = _ref6.size;
|
|
1916
|
+
var EmptySvgImage = function EmptySvgImage() {
|
|
1923
1917
|
// TODO: 填入图片为空 SVG
|
|
1924
1918
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1925
1919
|
width: "69",
|
|
@@ -2082,8 +2076,7 @@ var EmptySvgImage = function EmptySvgImage(_ref6) {
|
|
|
2082
2076
|
stopColor: "#C4C7CC"
|
|
2083
2077
|
}))));
|
|
2084
2078
|
};
|
|
2085
|
-
var EmptySvgImageError = function EmptySvgImageError(
|
|
2086
|
-
var _ = _ref7.size;
|
|
2079
|
+
var EmptySvgImageError = function EmptySvgImageError() {
|
|
2087
2080
|
// TODO: 填入图片加载失败 SVG
|
|
2088
2081
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2089
2082
|
width: "69",
|
|
@@ -2360,17 +2353,17 @@ var svgMap = {
|
|
|
2360
2353
|
|
|
2361
2354
|
// ─── 主组件 ──────────────────────────────────────────────────────────────────
|
|
2362
2355
|
|
|
2363
|
-
var Empty = /*#__PURE__*/React.forwardRef(function (
|
|
2364
|
-
var className =
|
|
2365
|
-
|
|
2366
|
-
type =
|
|
2367
|
-
|
|
2368
|
-
size =
|
|
2369
|
-
title =
|
|
2370
|
-
description =
|
|
2371
|
-
extra =
|
|
2372
|
-
image =
|
|
2373
|
-
props = _objectWithoutProperties(
|
|
2356
|
+
var Empty = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2357
|
+
var className = _ref.className,
|
|
2358
|
+
_ref$type = _ref.type,
|
|
2359
|
+
type = _ref$type === void 0 ? 'search' : _ref$type,
|
|
2360
|
+
_ref$size = _ref.size,
|
|
2361
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
2362
|
+
title = _ref.title,
|
|
2363
|
+
description = _ref.description,
|
|
2364
|
+
extra = _ref.extra,
|
|
2365
|
+
image = _ref.image,
|
|
2366
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
2374
2367
|
var SvgComponent = svgMap[type];
|
|
2375
2368
|
var illustration = image !== null && image !== void 0 ? image : /*#__PURE__*/React.createElement(SvgComponent, {
|
|
2376
2369
|
size: size
|
package/dist/form/index.d.ts
CHANGED
package/dist/form/index.js
CHANGED
|
@@ -8,11 +8,11 @@ import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIt
|
|
|
8
8
|
var _excluded = ["validationMode", "errors", "onFormSubmit", "labelSize", "labelAlign", "children", "className"],
|
|
9
9
|
_excluded2 = ["name", "label", "labelAlign", "labelWidth", "labelMaxChars", "required", "tooltip", "help", "error", "validate", "validationMode", "disabled", "display", "children", "className", "style"],
|
|
10
10
|
_excluded3 = ["children"];
|
|
11
|
-
import * as React from 'react';
|
|
12
|
-
import { Form as BaseForm } from '@base-ui/react/form';
|
|
13
11
|
import { Field as BaseField } from '@base-ui/react/field';
|
|
14
|
-
import
|
|
12
|
+
import { Form as BaseForm } from '@base-ui/react/form';
|
|
13
|
+
import React from 'react';
|
|
15
14
|
import Icon from "../icon";
|
|
15
|
+
import Tooltip from "../tooltip";
|
|
16
16
|
import "./style";
|
|
17
17
|
|
|
18
18
|
// ---- Context ----
|
package/dist/link/index.d.ts
CHANGED
package/dist/link/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["prefixIcon", "suffixIcon", "children", "disabled", "href", "hover", "underline", "onClick"];
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import Icon from "../icon";
|
|
6
6
|
import "./style";
|
|
7
7
|
/**
|
package/dist/loading/index.d.ts
CHANGED
package/dist/loading/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["className", "type", "theme", "size", "tip", "tipPosition"];
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import Icon from "../icon";
|
|
7
7
|
import "./style";
|
|
8
8
|
var iconSizeMap = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define, @typescript-eslint/ban-types, eqeqeq -- 现有实现,本次只改 React 导入 */
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* Adds a `preventBaseUIHandler` method to all event handlers.
|
|
6
8
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Merges refs into a single memoized callback ref or `null`.
|
|
@@ -10,7 +10,7 @@ export function useForkRef() {
|
|
|
10
10
|
var cleanupRef = React.useRef(undefined);
|
|
11
11
|
var refEffect = React.useCallback(function (instance) {
|
|
12
12
|
var cleanups = refs.map(function (ref) {
|
|
13
|
-
if (ref
|
|
13
|
+
if (ref === null || ref === undefined) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
if (typeof ref === 'function') {
|
|
@@ -34,7 +34,7 @@ export function useForkRef() {
|
|
|
34
34
|
}, refs);
|
|
35
35
|
return React.useMemo(function () {
|
|
36
36
|
if (refs.every(function (ref) {
|
|
37
|
-
return ref
|
|
37
|
+
return ref === null || ref === undefined;
|
|
38
38
|
})) {
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
@@ -43,7 +43,7 @@ export function useForkRef() {
|
|
|
43
43
|
cleanupRef.current();
|
|
44
44
|
cleanupRef.current = undefined;
|
|
45
45
|
}
|
|
46
|
-
if (value
|
|
46
|
+
if (value !== null && value !== undefined) {
|
|
47
47
|
cleanupRef.current = refEffect(value);
|
|
48
48
|
}
|
|
49
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
2
1
|
import { Radio as RadioPrimitive } from '@base-ui/react/radio';
|
|
3
|
-
import
|
|
2
|
+
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
declare const RadioGroupPrimitive: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<RadioGroup.Props<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
|
|
5
5
|
declare const RadioGroupItemPrimitive: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<RadioPrimitive.Root.Props<unknown>, "ref"> & React.RefAttributes<HTMLSpanElement>>>;
|
|
6
6
|
export { RadioGroupItemPrimitive, RadioGroupPrimitive };
|
package/dist/radio/primitive.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
var _excluded = ["className"];
|
|
6
|
-
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
7
6
|
import { Radio as RadioPrimitive } from '@base-ui/react/radio';
|
|
8
|
-
import
|
|
7
|
+
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
8
|
+
import React from 'react';
|
|
9
9
|
var RadioGroupPrimitive = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
10
|
return /*#__PURE__*/React.createElement(RadioGroup, _extends({
|
|
11
11
|
"data-odn-radio-group": true
|
|
@@ -6,7 +6,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
6
6
|
var _excluded = ["className", "children", "onScroll", "progressiveBlur", "insetShadow", "autoHide", "autoFollow", "followThreshold", "onFollowChange", "controlRef"],
|
|
7
7
|
_excluded2 = ["className", "orientation"];
|
|
8
8
|
import { ScrollArea as ScrollAreaPrimitive } from '@base-ui/react/scroll-area';
|
|
9
|
-
import
|
|
9
|
+
import React from 'react';
|
|
10
10
|
import "./style";
|
|
11
11
|
var ScrollArea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12
12
|
var className = _ref.className,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as React from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
3
2
|
type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
|
|
4
3
|
export default function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, multiple, hasFeedback, prefixCls, showSuffixIcon, feedbackIcon, showArrow, }: {
|
|
5
4
|
suffixIcon?: React.ReactNode;
|
|
@@ -14,12 +13,12 @@ export default function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon,
|
|
|
14
13
|
showSuffixIcon?: boolean;
|
|
15
14
|
showArrow?: boolean;
|
|
16
15
|
}): {
|
|
17
|
-
clearIcon: string | number | boolean | Iterable<ReactNode> | React.JSX.Element | ((props: any) => ReactNode);
|
|
18
|
-
suffixIcon: React.JSX.Element | ((
|
|
16
|
+
clearIcon: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | ((props: any) => React.ReactNode);
|
|
17
|
+
suffixIcon: React.JSX.Element | ((props: {
|
|
19
18
|
open: boolean;
|
|
20
19
|
showSearch: boolean;
|
|
21
20
|
}) => React.JSX.Element | null) | null;
|
|
22
|
-
itemIcon: string | number | boolean | Iterable<ReactNode> | React.JSX.Element | ((props: any) => ReactNode) | null;
|
|
23
|
-
removeIcon: string | number | boolean | Iterable<ReactNode> | React.JSX.Element | ((props: any) => ReactNode) | null;
|
|
21
|
+
itemIcon: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
22
|
+
removeIcon: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | ((props: any) => React.ReactNode) | null;
|
|
24
23
|
};
|
|
25
24
|
export {};
|
package/dist/select/useIcons.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import Icon from "../icon";
|
|
3
3
|
export default function useIcons(_ref) {
|
|
4
4
|
var suffixIcon = _ref.suffixIcon,
|
|
@@ -37,9 +37,8 @@ export default function useIcons(_ref) {
|
|
|
37
37
|
}));
|
|
38
38
|
} else {
|
|
39
39
|
var iconCls = "".concat(prefixCls, "-suffix");
|
|
40
|
-
mergedSuffixIcon = function mergedSuffixIcon(
|
|
41
|
-
|
|
42
|
-
showSearch = _ref2.showSearch;
|
|
40
|
+
mergedSuffixIcon = function mergedSuffixIcon(props) {
|
|
41
|
+
void props;
|
|
43
42
|
// if (open && showSearch) {
|
|
44
43
|
// return getSuffixIconNode(<Icon name="search" className={iconCls} />);
|
|
45
44
|
// }
|
package/dist/skill-card/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
var _excluded = ["name", "nameEn", "description", "icon", "avatarUrl", "tags", "statusLabel", "operations", "button", "control", "onOpen", "className", "style"];
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import Button from "../button";
|
|
9
9
|
import Card from "../card";
|
|
10
10
|
import Dropdown from "../dropdown";
|
package/dist/switch/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import './style';
|
|
4
4
|
export interface SwitchProps extends Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, 'onCheckedChange' | 'className' | 'style'> {
|
|
5
5
|
/** 外层包裹层样式(非 Switch 轨道) */
|
package/dist/switch/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["size", "checkedLabel", "uncheckedLabel", "commonLabel", "onChange", "id", "defaultChecked", "checked", "className", "style"];
|
|
4
4
|
import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
|
|
5
|
-
import
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import "./style";
|
|
7
7
|
var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8
8
|
var _ref$size = _ref.size,
|
|
@@ -39,7 +39,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
39
39
|
"data-odn-switch": true,
|
|
40
40
|
"data-odn-switch-size": size,
|
|
41
41
|
"data-slot": "switch",
|
|
42
|
-
onCheckedChange: function onCheckedChange(next
|
|
42
|
+
onCheckedChange: function onCheckedChange(next) {
|
|
43
43
|
return onChange === null || onChange === void 0 ? void 0 : onChange(next);
|
|
44
44
|
},
|
|
45
45
|
checked: checked,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ListRef } from 'rc-virtual-list';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import './style';
|
|
4
4
|
export type VirtualListRef = ListRef;
|
|
5
5
|
export interface VirtualListProps<T = unknown> extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
@@ -3,7 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["component", "className", "styles", "showScrollBar"];
|
|
5
5
|
import RcVirtualList from 'rc-virtual-list';
|
|
6
|
-
import
|
|
6
|
+
import React from 'react';
|
|
7
7
|
import "./style";
|
|
8
8
|
/**
|
|
9
9
|
* VirtualList 虚拟列表
|