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.
Files changed (157) hide show
  1. package/dist/_util/useLayoutEffect.d.ts +1 -1
  2. package/dist/_util/useLayoutEffect.js +1 -1
  3. package/dist/action-bar/index.d.ts +2 -2
  4. package/dist/action-bar/index.js +3 -1
  5. package/dist/agent-think/CircleIcon.d.ts +2 -2
  6. package/dist/agent-think/CircleIcon.js +1 -1
  7. package/dist/agent-think/JellyTriangleIcon.d.ts +2 -2
  8. package/dist/agent-think/JellyTriangleIcon.js +1 -1
  9. package/dist/agent-think/ThinkingDoneIcon.d.ts +2 -2
  10. package/dist/agent-think/ThinkingDoneIcon.js +1 -1
  11. package/dist/agent-think/ThinkingIcon.d.ts +2 -2
  12. package/dist/agent-think/ThinkingIcon.js +1 -1
  13. package/dist/agent-think/index.d.ts +2 -2
  14. package/dist/agent-think/index.js +6 -3
  15. package/dist/approval/index.d.ts +1 -1
  16. package/dist/approval/index.js +1 -1
  17. package/dist/artifact/icons/ArtifactFileIcon.d.ts +2 -2
  18. package/dist/artifact/icons/ArtifactFileIcon.js +1 -0
  19. package/dist/artifact/index.d.ts +2 -2
  20. package/dist/artifact/index.js +1 -1
  21. package/dist/attachments/index.d.ts +2 -2
  22. package/dist/attachments/index.js +5 -1
  23. package/dist/avatar/primitive.d.ts +1 -1
  24. package/dist/avatar/primitive.js +1 -1
  25. package/dist/button/index.d.ts +1 -1
  26. package/dist/button/index.js +1 -1
  27. package/dist/card/header.d.ts +1 -1
  28. package/dist/card/header.js +5 -5
  29. package/dist/card/index.d.ts +1 -1
  30. package/dist/card/index.js +1 -1
  31. package/dist/cascader/fork/Cascader.js +1 -1
  32. package/dist/cascader/fork/OptionList/Checkbox.d.ts +1 -1
  33. package/dist/cascader/fork/OptionList/Checkbox.js +1 -1
  34. package/dist/cascader/fork/OptionList/Column.d.ts +1 -1
  35. package/dist/cascader/fork/OptionList/Column.js +1 -1
  36. package/dist/cascader/fork/OptionList/List.js +1 -1
  37. package/dist/cascader/fork/OptionList/index.js +1 -1
  38. package/dist/cascader/fork/OptionList/useActive.js +1 -1
  39. package/dist/cascader/fork/Panel.js +1 -1
  40. package/dist/cascader/fork/hooks/useValues.js +2 -2
  41. package/dist/chart/bar.d.ts +1 -1
  42. package/dist/chart/bar.js +1 -1
  43. package/dist/chart/bullet.d.ts +1 -1
  44. package/dist/chart/bullet.js +1 -1
  45. package/dist/chart/butterfly.d.ts +1 -1
  46. package/dist/chart/butterfly.js +1 -1
  47. package/dist/chart/dual-line.d.ts +1 -1
  48. package/dist/chart/dual-line.js +1 -1
  49. package/dist/chart/host.d.ts +1 -1
  50. package/dist/chart/host.js +1 -1
  51. package/dist/chart/line.d.ts +1 -1
  52. package/dist/chart/line.js +1 -1
  53. package/dist/chart/pie.d.ts +1 -1
  54. package/dist/chart/pie.js +1 -1
  55. package/dist/chart/quadrant.d.ts +1 -1
  56. package/dist/chart/quadrant.js +1 -1
  57. package/dist/chart/radar.d.ts +1 -1
  58. package/dist/chart/radar.js +1 -1
  59. package/dist/chart/ripple.d.ts +1 -1
  60. package/dist/chart/ripple.js +1 -1
  61. package/dist/chart/sankey.d.ts +1 -1
  62. package/dist/chart/sankey.js +1 -1
  63. package/dist/chart/symmetric.d.ts +1 -1
  64. package/dist/chart/symmetric.js +1 -1
  65. package/dist/chart/treemap.d.ts +1 -1
  66. package/dist/chart/treemap.js +1 -1
  67. package/dist/chart/word-cloud.d.ts +1 -1
  68. package/dist/chart/word-cloud.js +1 -1
  69. package/dist/chat-group/index.d.ts +2 -2
  70. package/dist/chat-group/index.js +1 -1
  71. package/dist/chat-group/presence-list.d.ts +3 -3
  72. package/dist/chat-group/presence-list.js +1 -1
  73. package/dist/chat-item/index.d.ts +3 -3
  74. package/dist/chat-item/index.js +1 -1
  75. package/dist/chat-list/index.d.ts +2 -2
  76. package/dist/chat-list/index.js +1 -1
  77. package/dist/checkbox/Context.d.ts +1 -1
  78. package/dist/checkbox/Context.js +1 -1
  79. package/dist/clarify-dock/index.d.ts +1 -1
  80. package/dist/clarify-dock/index.js +1 -2
  81. package/dist/code-block/index.d.ts +2 -2
  82. package/dist/code-block/index.js +2 -1
  83. package/dist/collapse/primitive.d.ts +1 -1
  84. package/dist/collapse/primitive.js +1 -1
  85. package/dist/composer/editor.d.ts +2 -2
  86. package/dist/composer/editor.js +1 -1
  87. package/dist/composer/index.d.ts +2 -2
  88. package/dist/composer/index.js +1 -1
  89. package/dist/composer/inline-ref.d.ts +2 -2
  90. package/dist/composer/inline-ref.js +1 -0
  91. package/dist/config-provider/index.d.ts +1 -1
  92. package/dist/config-provider/index.js +1 -1
  93. package/dist/dropdown/index.d.ts +1 -1
  94. package/dist/dropdown/index.js +1 -2
  95. package/dist/empty/index.d.ts +1 -1
  96. package/dist/empty/index.js +19 -26
  97. package/dist/error-block/index.d.ts +2 -2
  98. package/dist/error-block/index.js +2 -0
  99. package/dist/form/index.d.ts +1 -1
  100. package/dist/form/index.js +3 -3
  101. package/dist/image/index.d.ts +2 -3
  102. package/dist/image/index.js +1 -1
  103. package/dist/invocation/index.d.ts +2 -2
  104. package/dist/invocation/index.js +1 -0
  105. package/dist/invocation/param-popover.d.ts +2 -2
  106. package/dist/invocation/param-popover.js +1 -1
  107. package/dist/link/index.d.ts +1 -1
  108. package/dist/link/index.js +1 -1
  109. package/dist/loading/index.d.ts +1 -1
  110. package/dist/loading/index.js +1 -1
  111. package/dist/mention/index.d.ts +2 -2
  112. package/dist/mention/index.js +1 -0
  113. package/dist/message-image/image-viewer.d.ts +2 -2
  114. package/dist/message-image/image-viewer.js +1 -1
  115. package/dist/message-image/index.d.ts +2 -2
  116. package/dist/message-image/index.js +2 -2
  117. package/dist/overlay-vertical-scrollbar/index.d.ts +2 -2
  118. package/dist/overlay-vertical-scrollbar/index.js +1 -1
  119. package/dist/pop-base/mergeProps.d.ts +1 -1
  120. package/dist/pop-base/mergeProps.js +2 -0
  121. package/dist/pop-base/useForkRef.d.ts +1 -1
  122. package/dist/pop-base/useForkRef.js +4 -4
  123. package/dist/preview-panel/CsvPreviewTable.d.ts +2 -2
  124. package/dist/preview-panel/CsvPreviewTable.js +1 -0
  125. package/dist/preview-panel/index.d.ts +2 -2
  126. package/dist/preview-panel/index.js +1 -1
  127. package/dist/provenance/index.d.ts +2 -2
  128. package/dist/provenance/index.js +1 -0
  129. package/dist/radio/primitive.d.ts +2 -2
  130. package/dist/radio/primitive.js +2 -2
  131. package/dist/scroll-area/index.d.ts +1 -1
  132. package/dist/scroll-area/index.js +1 -1
  133. package/dist/select/useIcons.d.ts +5 -6
  134. package/dist/select/useIcons.js +3 -4
  135. package/dist/skill-card/index.d.ts +1 -1
  136. package/dist/skill-card/index.js +1 -1
  137. package/dist/skill-slot/index.d.ts +2 -2
  138. package/dist/skill-slot/index.js +1 -1
  139. package/dist/sources/index.d.ts +2 -2
  140. package/dist/sources/index.js +1 -1
  141. package/dist/stream-pulse/index.d.ts +2 -2
  142. package/dist/stream-pulse/index.js +1 -0
  143. package/dist/suggestions/index.d.ts +2 -2
  144. package/dist/suggestions/index.js +2 -0
  145. package/dist/switch/index.d.ts +1 -1
  146. package/dist/switch/index.js +2 -2
  147. package/dist/text-swap/index.d.ts +1 -1
  148. package/dist/text-swap/index.js +1 -1
  149. package/dist/user-bubble/index.d.ts +2 -2
  150. package/dist/user-bubble/index.js +2 -1
  151. package/dist/user-bubble/render-segments.d.ts +1 -1
  152. package/dist/user-bubble/render-segments.js +1 -0
  153. package/dist/virtual-list/index.d.ts +1 -1
  154. package/dist/virtual-list/index.js +1 -1
  155. package/dist/welcome/index.d.ts +2 -2
  156. package/dist/welcome/index.js +2 -1
  157. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
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
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import canUseDom from "./canUseDom";
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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): import("react").JSX.Element;
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
  }
@@ -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
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface CircleIconProps {
3
3
  size?: number;
4
4
  className?: string;
5
5
  }
6
- export declare const CircleIcon: import("react").MemoExoticComponent<({ size, ...rest }: CircleIconProps) => import("react").JSX.Element>;
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
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface JellyTriangleIconProps {
3
3
  size?: number;
4
4
  speed?: number;
5
5
  }
6
- export declare const JellyTriangleIcon: import("react").MemoExoticComponent<({ size, speed }: JellyTriangleIconProps) => import("react").JSX.Element>;
6
+ export declare const JellyTriangleIcon: React.MemoExoticComponent<({ size, speed }: JellyTriangleIconProps) => React.JSX.Element>;
7
7
  export default JellyTriangleIcon;
@@ -1,4 +1,4 @@
1
- import { memo } from 'react';
1
+ import React, { memo } from 'react';
2
2
  export var JellyTriangleIcon = /*#__PURE__*/memo(function (_ref) {
3
3
  var _ref$size = _ref.size,
4
4
  size = _ref$size === void 0 ? 30 : _ref$size,
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ThinkingDoneIconProps {
3
3
  size?: number;
4
4
  className?: string;
5
5
  }
6
- export declare const ThinkingDoneIcon: import("react").MemoExoticComponent<({ size, ...rest }: ThinkingDoneIconProps) => import("react").JSX.Element>;
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
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ThinkingIconProps {
3
3
  size?: number;
4
4
  className?: string;
5
5
  }
6
- export declare const ThinkingIcon: import("react").MemoExoticComponent<({ size, ...rest }: ThinkingIconProps) => import("react").JSX.Element>;
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
- /// <reference types="react" />
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): import("react").JSX.Element;
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 != null ? Math.round(durationProp / 1000) : 0),
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 != null) return;
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({
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import './style';
3
3
  export type ApprovalDecision = 'approve' | 'reject';
4
4
  /** 参数摘要一行:Host 已格式化的 label → 展示文案(可含换行) */
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import clsx from 'clsx';
3
- import * as React from 'react';
3
+ import React from 'react';
4
4
  import Button from "../button";
5
5
  import Icon from "../icon";
6
6
  import "./style";
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
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): import("react").JSX.Element;
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: {
@@ -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): import("react").JSX.Element;
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
  }
@@ -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
- /// <reference types="react" />
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, onRetry, onDownload, compact }: AttachmentsProps): import("react").JSX.Element | null;
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 * as React from 'react';
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;
@@ -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 * as React from 'react';
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,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { IconProps } from '../icon';
3
3
  import './style';
4
4
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -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 * as React from 'react';
5
+ import React from 'react';
6
6
  import HoverFill from "../hover-fill";
7
7
  import Icon from "../icon";
8
8
  import "./style";
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export type CardHeaderSize = 'mini' | 'small' | 'medium' | 'large';
3
3
  export interface CardHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
4
4
  /**
@@ -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 * as React from 'react';
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 != null && 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 != null && subTitle !== '' && /*#__PURE__*/React.createElement("div", {
27
+ }, title), subTitle !== undefined && subTitle !== null && subTitle !== '' && /*#__PURE__*/React.createElement("div", {
28
28
  "data-odn-card-subtitle": true
29
- }, subTitle)), topContent != null && topContent !== '' && /*#__PURE__*/React.createElement("div", {
29
+ }, subTitle)), topContent !== undefined && topContent !== null && topContent !== '' && /*#__PURE__*/React.createElement("div", {
30
30
  "data-odn-card-top-content": true
31
- }, topContent)), children != null && children !== '' && /*#__PURE__*/React.createElement("div", {
31
+ }, topContent)), children !== undefined && children !== null && children !== '' && /*#__PURE__*/React.createElement("div", {
32
32
  "data-odn-card-header-children": true
33
33
  }, children));
34
34
  });
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import CardHeader from './header';
3
3
  import './style';
4
4
  export type CardElevation = 0 | 1 | 2 | 3 | 4;
@@ -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 * as React from 'react';
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 * as React from 'react';
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,5 +1,5 @@
1
1
  import type { DefaultOptionType } from 'rc-cascader';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  export interface CascaderCheckboxProps {
4
4
  prefixCls: string;
5
5
  checked?: boolean;
@@ -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 * as React from 'react';
4
+ import React from 'react';
5
5
  export default function Checkbox(_ref) {
6
6
  var prefixCls = _ref.prefixCls,
7
7
  checked = _ref.checked,
@@ -1,5 +1,5 @@
1
1
  import type { DefaultOptionType } from 'rc-cascader';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  export declare const FIX_LABEL = "__cascader_fix_label__";
4
4
  export interface ColumnProps {
5
5
  prefixCls: string;
@@ -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 * as React from 'react';
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 * as React from 'react';
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 * as React from 'react';
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 * as React from 'react';
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 * as React from 'react';
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
@@ -1,5 +1,5 @@
1
1
  import type { EChartsOption } from 'echarts';
2
- import * as React from 'react';
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 * as React from 'react';
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) {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '../pop-base/style';
3
3
  import './style';
4
4
  export type ChartBulletItem = {
@@ -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 * as React from 'react';
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";
@@ -1,5 +1,5 @@
1
1
  import type { EChartsOption } from 'echarts';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  import { type ChartHostProps } from './host';
4
4
  export interface ChartButterflyProps extends Omit<ChartHostProps, 'option'> {
5
5
  categories: string[];
@@ -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 * as React from 'react';
5
+ import React from 'react';
6
6
  import ChartHost from "./host";
7
7
  import { mergeOption } from "./option";
8
8
  import { readToken } from "./tokens";
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '../button/style';
3
3
  import '../card/style';
4
4
  import '../pop-base/style';
@@ -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 * as React from 'react';
10
+ import React from 'react';
11
11
  import Button from "../button";
12
12
  import "../button/style";
13
13
  import Card from "../card";
@@ -1,5 +1,5 @@
1
1
  import type { EChartsOption } from 'echarts';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  import './style';
4
4
  export interface ChartHostProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
5
5
  /** ECharts option。空或不传则显示空态。 */
@@ -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 * as React from 'react';
7
+ import React from 'react';
8
8
  import Empty from "../empty";
9
9
  import { echarts } from "./echarts";
10
10
  import "./style";
@@ -1,5 +1,5 @@
1
1
  import type { EChartsOption } from 'echarts';
2
- import * as React from 'react';
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'> {