one-design-next 0.0.104 → 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/action-bar/index.d.ts +2 -2
- package/dist/action-bar/index.js +3 -1
- package/dist/agent-think/CircleIcon.d.ts +2 -2
- package/dist/agent-think/CircleIcon.js +1 -1
- package/dist/agent-think/JellyTriangleIcon.d.ts +2 -2
- package/dist/agent-think/JellyTriangleIcon.js +1 -1
- package/dist/agent-think/ThinkingDoneIcon.d.ts +2 -2
- package/dist/agent-think/ThinkingDoneIcon.js +1 -1
- package/dist/agent-think/ThinkingIcon.d.ts +2 -2
- package/dist/agent-think/ThinkingIcon.js +1 -1
- package/dist/agent-think/index.d.ts +2 -2
- package/dist/agent-think/index.js +6 -3
- package/dist/approval/index.d.ts +1 -1
- package/dist/approval/index.js +1 -1
- package/dist/artifact/icons/ArtifactFileIcon.d.ts +2 -2
- package/dist/artifact/icons/ArtifactFileIcon.js +1 -0
- package/dist/artifact/index.d.ts +2 -2
- package/dist/artifact/index.js +1 -1
- package/dist/attachments/index.d.ts +2 -2
- package/dist/attachments/index.js +5 -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/chat-group/index.d.ts +2 -2
- package/dist/chat-group/index.js +1 -1
- package/dist/chat-group/presence-list.d.ts +3 -3
- package/dist/chat-group/presence-list.js +1 -1
- package/dist/chat-item/index.d.ts +3 -3
- package/dist/chat-item/index.js +1 -1
- package/dist/chat-list/index.d.ts +2 -2
- package/dist/chat-list/index.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/code-block/index.d.ts +2 -2
- package/dist/code-block/index.js +2 -1
- package/dist/collapse/primitive.d.ts +1 -1
- package/dist/collapse/primitive.js +1 -1
- package/dist/composer/editor.d.ts +2 -2
- package/dist/composer/editor.js +1 -1
- package/dist/composer/index.d.ts +2 -2
- package/dist/composer/index.js +1 -1
- package/dist/composer/inline-ref.d.ts +2 -2
- package/dist/composer/inline-ref.js +1 -0
- 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/error-block/index.d.ts +2 -2
- package/dist/error-block/index.js +2 -0
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +3 -3
- package/dist/image/index.d.ts +2 -3
- package/dist/image/index.js +1 -1
- package/dist/invocation/index.d.ts +2 -2
- package/dist/invocation/index.js +1 -0
- package/dist/invocation/param-popover.d.ts +2 -2
- package/dist/invocation/param-popover.js +1 -1
- 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/mention/index.d.ts +2 -2
- package/dist/mention/index.js +1 -0
- package/dist/message-image/image-viewer.d.ts +2 -2
- package/dist/message-image/image-viewer.js +1 -1
- package/dist/message-image/index.d.ts +2 -2
- package/dist/message-image/index.js +2 -2
- package/dist/overlay-vertical-scrollbar/index.d.ts +2 -2
- package/dist/overlay-vertical-scrollbar/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/preview-panel/CsvPreviewTable.d.ts +2 -2
- package/dist/preview-panel/CsvPreviewTable.js +1 -0
- package/dist/preview-panel/index.d.ts +2 -2
- package/dist/preview-panel/index.js +1 -1
- package/dist/provenance/index.d.ts +2 -2
- package/dist/provenance/index.js +1 -0
- 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/skill-slot/index.d.ts +2 -2
- package/dist/skill-slot/index.js +1 -1
- package/dist/sources/index.d.ts +2 -2
- package/dist/sources/index.js +1 -1
- package/dist/stream-pulse/index.d.ts +2 -2
- package/dist/stream-pulse/index.js +1 -0
- package/dist/suggestions/index.d.ts +2 -2
- package/dist/suggestions/index.js +2 -0
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/text-swap/index.d.ts +1 -1
- package/dist/text-swap/index.js +1 -1
- package/dist/user-bubble/index.d.ts +2 -2
- package/dist/user-bubble/index.js +2 -1
- package/dist/user-bubble/render-segments.d.ts +1 -1
- package/dist/user-bubble/render-segments.js +1 -0
- package/dist/virtual-list/index.d.ts +1 -1
- package/dist/virtual-list/index.js +1 -1
- package/dist/welcome/index.d.ts +2 -2
- package/dist/welcome/index.js +2 -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './style';
|
|
3
3
|
export interface ActionBarProps {
|
|
4
4
|
content: string;
|
|
@@ -10,7 +10,7 @@ export interface ActionBarProps {
|
|
|
10
10
|
currentVersion?: number;
|
|
11
11
|
onVersionChange?: (index: number) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function ActionBar({ content, onRegenerate, feedback: feedbackProp, onFeedback, versionCount, currentVersion, onVersionChange, }: ActionBarProps):
|
|
13
|
+
export declare function ActionBar({ content, onRegenerate, feedback: feedbackProp, onFeedback, versionCount, currentVersion, onVersionChange, }: ActionBarProps): React.JSX.Element;
|
|
14
14
|
export declare namespace ActionBar {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
package/dist/action-bar/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
-
import { useCallback, useRef, useState } from 'react';
|
|
4
|
+
import React, { useCallback, useRef, useState } from 'react';
|
|
5
5
|
import Button from "../button";
|
|
6
6
|
import Icon from "../icon";
|
|
7
7
|
import Tooltip from "../tooltip";
|
|
@@ -130,6 +130,7 @@ export function ActionBar(_ref) {
|
|
|
130
130
|
}), /*#__PURE__*/React.createElement("div", {
|
|
131
131
|
"data-odn-action-bar-pager": true
|
|
132
132
|
}, /*#__PURE__*/React.createElement("button", {
|
|
133
|
+
type: "button",
|
|
133
134
|
onClick: function onClick() {
|
|
134
135
|
return onVersionChange === null || onVersionChange === void 0 ? void 0 : onVersionChange(currentVersion - 1);
|
|
135
136
|
},
|
|
@@ -142,6 +143,7 @@ export function ActionBar(_ref) {
|
|
|
142
143
|
})), /*#__PURE__*/React.createElement("span", {
|
|
143
144
|
"data-odn-action-bar-pager-text": true
|
|
144
145
|
}, currentVersion + 1, "/", versionCount), /*#__PURE__*/React.createElement("button", {
|
|
146
|
+
type: "button",
|
|
145
147
|
onClick: function onClick() {
|
|
146
148
|
return onVersionChange === null || onVersionChange === void 0 ? void 0 : onVersionChange(currentVersion + 1);
|
|
147
149
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface CircleIconProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const CircleIcon:
|
|
6
|
+
export declare const CircleIcon: React.MemoExoticComponent<({ size, ...rest }: CircleIconProps) => React.JSX.Element>;
|
|
7
7
|
export default CircleIcon;
|
|
@@ -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 = ["size"];
|
|
4
|
-
import { memo } from 'react';
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
export var CircleIcon = /*#__PURE__*/memo(function (_ref) {
|
|
6
6
|
var _ref$size = _ref.size,
|
|
7
7
|
size = _ref$size === void 0 ? 14 : _ref$size,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface JellyTriangleIconProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
speed?: number;
|
|
5
5
|
}
|
|
6
|
-
export declare const JellyTriangleIcon:
|
|
6
|
+
export declare const JellyTriangleIcon: React.MemoExoticComponent<({ size, speed }: JellyTriangleIconProps) => React.JSX.Element>;
|
|
7
7
|
export default JellyTriangleIcon;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface ThinkingDoneIconProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const ThinkingDoneIcon:
|
|
6
|
+
export declare const ThinkingDoneIcon: React.MemoExoticComponent<({ size, ...rest }: ThinkingDoneIconProps) => React.JSX.Element>;
|
|
7
7
|
export default ThinkingDoneIcon;
|
|
@@ -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 = ["size"];
|
|
4
|
-
import { memo } from 'react';
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
export var ThinkingDoneIcon = /*#__PURE__*/memo(function (_ref) {
|
|
6
6
|
var _ref$size = _ref.size,
|
|
7
7
|
size = _ref$size === void 0 ? 18 : _ref$size,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface ThinkingIconProps {
|
|
3
3
|
size?: number;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const ThinkingIcon:
|
|
6
|
+
export declare const ThinkingIcon: React.MemoExoticComponent<({ size, ...rest }: ThinkingIconProps) => React.JSX.Element>;
|
|
7
7
|
export default ThinkingIcon;
|
|
@@ -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 = ["size"];
|
|
4
|
-
import { memo } from 'react';
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
export var ThinkingIcon = /*#__PURE__*/memo(function (_ref) {
|
|
6
6
|
var _ref$size = _ref.size,
|
|
7
7
|
size = _ref$size === void 0 ? 18 : _ref$size,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './style';
|
|
3
3
|
export interface AgentThinkProps {
|
|
4
4
|
content: string;
|
|
@@ -8,7 +8,7 @@ export interface AgentThinkProps {
|
|
|
8
8
|
variant?: 'block' | 'inline';
|
|
9
9
|
icon?: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare function AgentThink({ content, isThinking, duration: durationProp, defaultOpen, variant, icon }: AgentThinkProps):
|
|
11
|
+
export declare function AgentThink({ content, isThinking, duration: durationProp, defaultOpen, variant, icon, }: AgentThinkProps): React.JSX.Element;
|
|
12
12
|
export declare namespace AgentThink {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import { useState, useEffect, useRef, useCallback } from 'react';
|
|
4
3
|
import { AnimatePresence, motion } from 'motion/react';
|
|
4
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import HoverFill from "../hover-fill";
|
|
6
6
|
import Icon from "../icon";
|
|
7
7
|
import "./style";
|
|
@@ -19,6 +19,8 @@ export function AgentThink(_ref) {
|
|
|
19
19
|
"data-odn-agent-think-inline": true
|
|
20
20
|
}, content.replace(/\n{2,}/g, '\n'));
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define -- 内联变体先短路,块实现放在下方
|
|
22
24
|
return /*#__PURE__*/React.createElement(AgentThinkBlock, {
|
|
23
25
|
content: content,
|
|
24
26
|
isThinking: isThinking,
|
|
@@ -38,7 +40,7 @@ function AgentThinkBlock(_ref2) {
|
|
|
38
40
|
_useState2 = _slicedToArray(_useState, 2),
|
|
39
41
|
collapsed = _useState2[0],
|
|
40
42
|
setCollapsed = _useState2[1];
|
|
41
|
-
var _useState3 = useState(durationProp
|
|
43
|
+
var _useState3 = useState(durationProp !== undefined && durationProp !== null ? Math.round(durationProp / 1000) : 0),
|
|
42
44
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
45
|
seconds = _useState4[0],
|
|
44
46
|
setSeconds = _useState4[1];
|
|
@@ -46,7 +48,7 @@ function AgentThinkBlock(_ref2) {
|
|
|
46
48
|
var userToggledRef = useRef(false);
|
|
47
49
|
var scrollRef = useRef(null);
|
|
48
50
|
useEffect(function () {
|
|
49
|
-
if (durationProp
|
|
51
|
+
if (durationProp !== undefined && durationProp !== null) return;
|
|
50
52
|
if (isThinking) {
|
|
51
53
|
if (!startRef.current) startRef.current = Date.now();
|
|
52
54
|
var timer = setInterval(function () {
|
|
@@ -114,6 +116,7 @@ function AgentThinkBlock(_ref2) {
|
|
|
114
116
|
"data-odn-agent-think-trigger-wrap": true,
|
|
115
117
|
bgClassName: "odn-agent-think-trigger-bg"
|
|
116
118
|
}, /*#__PURE__*/React.createElement("button", {
|
|
119
|
+
type: "button",
|
|
117
120
|
onClick: handleToggle,
|
|
118
121
|
"data-odn-agent-think-trigger": true
|
|
119
122
|
}, /*#__PURE__*/React.createElement("span", null, "\u5DF2\u5B8C\u6210\u601D\u8003", timeLabel), /*#__PURE__*/React.createElement(Icon, _extends({
|
package/dist/approval/index.d.ts
CHANGED
package/dist/approval/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
2
|
import { type ArtifactFileIconSize, type ArtifactFileIconType } from './file-icons';
|
|
3
3
|
export interface ArtifactFileIconProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
4
4
|
type: ArtifactFileIconType;
|
|
@@ -10,7 +10,7 @@ export interface ArtifactFileIconProps extends Omit<HTMLAttributes<HTMLSpanEleme
|
|
|
10
10
|
* - medium:占位 32×36,源 38×39
|
|
11
11
|
* - small:占位 14×16,源 17×18
|
|
12
12
|
*/
|
|
13
|
-
export declare function ArtifactFileIcon({ type, size, className, style, ...rest }: ArtifactFileIconProps):
|
|
13
|
+
export declare function ArtifactFileIcon({ type, size, className, style, ...rest }: ArtifactFileIconProps): React.JSX.Element;
|
|
14
14
|
export declare namespace ArtifactFileIcon {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["type", "size", "className", "style"];
|
|
5
|
+
import React from 'react';
|
|
5
6
|
import { ARTIFACT_FILE_ICON_MEDIUM_SIZE, ARTIFACT_FILE_ICON_MEDIUM_VIEWBOX, ARTIFACT_FILE_ICON_SMALL_SIZE, ARTIFACT_FILE_ICON_SMALL_VIEWBOX, artifactFileIcons } from "./file-icons";
|
|
6
7
|
var ICON_LAYOUT = {
|
|
7
8
|
medium: {
|
package/dist/artifact/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CSSProperties } from 'react';
|
|
1
|
+
import React, { type CSSProperties } from 'react';
|
|
2
2
|
import { type ArtifactActionKind } from './actions';
|
|
3
3
|
import { type ArtifactFileIconType } from './icons';
|
|
4
4
|
import './style';
|
|
@@ -42,7 +42,7 @@ export interface ArtifactProps {
|
|
|
42
42
|
* - medium / Card:左 Icon + 右标题 / 大小·日期;可点 hover 时 Icon 后退缩小、文案左移遮罩,右侧浮出操作预期
|
|
43
43
|
* - small / Small:无底色/描边;hover 用 HoverFill(Navi 默认色);不可预览类型额外浮出下载 Icon
|
|
44
44
|
*/
|
|
45
|
-
export declare function Artifact({ title, actionKind, fileType, fileSize, date, size, status, onOpen, className, style, }: ArtifactProps):
|
|
45
|
+
export declare function Artifact({ title, actionKind, fileType, fileSize, date, size, status, onOpen, className, style, }: ArtifactProps): React.JSX.Element;
|
|
46
46
|
export declare namespace Artifact {
|
|
47
47
|
var displayName: string;
|
|
48
48
|
}
|
package/dist/artifact/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
-
import { useCallback, useRef, useState } from 'react';
|
|
5
|
+
import React, { useCallback, useRef, useState } from 'react';
|
|
6
6
|
import HoverFill from "../hover-fill";
|
|
7
7
|
import Icon from "../icon";
|
|
8
8
|
import Tooltip from "../tooltip";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { Attachment } from '../_genui-types';
|
|
3
3
|
import './style';
|
|
4
4
|
export interface AttachmentsProps {
|
|
@@ -11,7 +11,7 @@ export interface AttachmentsProps {
|
|
|
11
11
|
onDownload?: (attachment: Attachment) => void;
|
|
12
12
|
compact?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare function Attachments({ attachments, onRemove, onFileClick,
|
|
14
|
+
export declare function Attachments({ attachments, onRemove, onFileClick, onDownload, compact, }: AttachmentsProps): React.JSX.Element | null;
|
|
15
15
|
export declare namespace Attachments {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import HoverFill from "../hover-fill";
|
|
3
4
|
import Icon from "../icon";
|
|
4
5
|
import Image from "../image";
|
|
@@ -143,7 +144,6 @@ export function Attachments(_ref2) {
|
|
|
143
144
|
var attachments = _ref2.attachments,
|
|
144
145
|
onRemove = _ref2.onRemove,
|
|
145
146
|
onFileClick = _ref2.onFileClick,
|
|
146
|
-
onRetry = _ref2.onRetry,
|
|
147
147
|
onDownload = _ref2.onDownload,
|
|
148
148
|
_ref2$compact = _ref2.compact,
|
|
149
149
|
compact = _ref2$compact === void 0 ? false : _ref2$compact;
|
|
@@ -217,6 +217,7 @@ export function Attachments(_ref2) {
|
|
|
217
217
|
"data-odn-attachments-thumb-card-image": isImage || undefined,
|
|
218
218
|
"data-odn-attachments-error": isError || undefined
|
|
219
219
|
}, thumbCardInner), onRemove && /*#__PURE__*/React.createElement("button", {
|
|
220
|
+
type: "button",
|
|
220
221
|
onClick: function onClick() {
|
|
221
222
|
return onRemove(i);
|
|
222
223
|
},
|
|
@@ -287,6 +288,7 @@ export function Attachments(_ref2) {
|
|
|
287
288
|
name: "alert-triangle",
|
|
288
289
|
size: 16
|
|
289
290
|
}))), onRemove && /*#__PURE__*/React.createElement("button", {
|
|
291
|
+
type: "button",
|
|
290
292
|
onClick: function onClick() {
|
|
291
293
|
return onRemove(i);
|
|
292
294
|
},
|
|
@@ -412,6 +414,7 @@ export function Attachments(_ref2) {
|
|
|
412
414
|
}, reportInner) : /*#__PURE__*/React.createElement("div", {
|
|
413
415
|
"data-odn-attachments-report-card": true
|
|
414
416
|
}, reportInner), onRemove && /*#__PURE__*/React.createElement("button", {
|
|
417
|
+
type: "button",
|
|
415
418
|
onClick: function onClick() {
|
|
416
419
|
return onRemove(i);
|
|
417
420
|
},
|
|
@@ -478,6 +481,7 @@ export function Attachments(_ref2) {
|
|
|
478
481
|
"data-odn-attachments-card": true,
|
|
479
482
|
"data-odn-attachments-error": isError || undefined
|
|
480
483
|
}, fileCardInner), onRemove && /*#__PURE__*/React.createElement("button", {
|
|
484
|
+
type: "button",
|
|
481
485
|
onClick: function onClick() {
|
|
482
486
|
return onRemove(i);
|
|
483
487
|
},
|
|
@@ -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'> {
|