one-design-next 0.0.116 → 0.0.118

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.
@@ -10,7 +10,7 @@ export interface AgentStepProps {
10
10
  isFirst?: boolean;
11
11
  isLast?: boolean;
12
12
  }
13
- export declare function AgentStep({ tool, defaultOpen, expandWhileRunning, onRetry, isFirst, isLast }: AgentStepProps): React.JSX.Element;
13
+ export declare function AgentStep({ tool, defaultOpen, expandWhileRunning, onRetry, isFirst, isLast, }: AgentStepProps): React.JSX.Element;
14
14
  export declare namespace AgentStep {
15
15
  var displayName: string;
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import _typeof from "@babel/runtime/helpers/esm/typeof";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
- import React, { useEffect, useState, useRef } from 'react';
3
+ import React, { useEffect, useRef, useState } from 'react';
4
4
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../collapse";
5
5
  import HoverFill from "../hover-fill";
6
6
  import Icon from "../icon";
@@ -52,7 +52,7 @@ function formatParams(params) {
52
52
  /** 折叠区内是否有可展示内容(与下方渲染条件一致) */
53
53
  function toolHasExpandableBody(tool) {
54
54
  var p = tool.params;
55
- var hasParams = p != null && _typeof(p) === 'object' && Object.keys(p).length > 0;
55
+ var hasParams = p !== null && p !== undefined && _typeof(p) === 'object' && Object.keys(p).length > 0;
56
56
  return hasParams || Boolean(tool.result) || Boolean(tool.error);
57
57
  }
58
58
  function RunningTimer(_ref3) {
@@ -214,7 +214,7 @@ function AgentStepGroup(_ref5) {
214
214
  _useState6 = _slicedToArray(_useState5, 2),
215
215
  settledDone = _useState6[0],
216
216
  setSettledDone = _useState6[1];
217
- var settleTimerRef = useRef();
217
+ var settleTimerRef = useRef(undefined);
218
218
  if (tools.some(function (t) {
219
219
  return t.status === 'running';
220
220
  })) {
@@ -71,7 +71,6 @@ var Calendar = function Calendar(_ref) {
71
71
  };
72
72
  var handleCaptionHoverEnter = function handleCaptionHoverEnter(e) {
73
73
  var _popupRef$current, _popupRef$current2;
74
- e.persist();
75
74
  clearTimeout(navHoverFillTimer.current);
76
75
  if (!navHoverFillInnerRef.current || !navHoverFillRef.current) {
77
76
  return;
@@ -106,7 +105,6 @@ var Calendar = function Calendar(_ref) {
106
105
  }
107
106
  };
108
107
  var handleCaptionHoverLeave = function handleCaptionHoverLeave(e) {
109
- e.persist();
110
108
  clearTimeout(navHoverFillTimer.current);
111
109
  if (!navHoverFillInnerRef.current || !navHoverFillRef.current) {
112
110
  return;
@@ -133,7 +131,6 @@ var Calendar = function Calendar(_ref) {
133
131
  };
134
132
  var handleTdHoverEnter = function handleTdHoverEnter(e) {
135
133
  var _popupRef$current3, _popupRef$current4;
136
- e.persist();
137
134
  clearTimeout(tdHoverFillTimer.current);
138
135
  if (!tdHoverFillInnerRef.current || !tdHoverFillRef.current) {
139
136
  return;
@@ -167,7 +164,6 @@ var Calendar = function Calendar(_ref) {
167
164
  }
168
165
  };
169
166
  var handleTdHoverLeave = function handleTdHoverLeave(e) {
170
- e.persist();
171
167
  clearTimeout(tdHoverFillTimer.current);
172
168
  if (!tdHoverFillInnerRef.current || !tdHoverFillRef.current) {
173
169
  return;
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
3
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
@@ -36,12 +37,7 @@ export var CodeBlock = /*#__PURE__*/forwardRef(function (_ref, ref) {
36
37
  return _ref2.apply(this, arguments);
37
38
  };
38
39
  }(), []);
39
- return /*#__PURE__*/React.createElement("div", {
40
- ref: ref,
41
- "data-odn-code-block": true
42
- }, /*#__PURE__*/React.createElement("div", {
43
- "data-odn-code-block-header": true
44
- }, /*#__PURE__*/React.createElement("span", null, language !== null && language !== void 0 ? language : 'code'), /*#__PURE__*/React.createElement(HoverFill, {
40
+ var copyControl = /*#__PURE__*/React.createElement(HoverFill, {
45
41
  "data-odn-code-block-copy-wrap": true,
46
42
  bgClassName: "odn-code-block-copy-bg"
47
43
  }, /*#__PURE__*/React.createElement("button", {
@@ -59,7 +55,17 @@ export var CodeBlock = /*#__PURE__*/forwardRef(function (_ref, ref) {
59
55
  }, "\u5DF2\u590D\u5236")) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
60
56
  name: "copy",
61
57
  size: 14
62
- }), /*#__PURE__*/React.createElement("span", null, "\u590D\u5236"))))), /*#__PURE__*/React.createElement("pre", {
58
+ }), /*#__PURE__*/React.createElement("span", null, "\u590D\u5236"))));
59
+ return /*#__PURE__*/React.createElement("div", _extends({
60
+ ref: ref,
61
+ "data-odn-code-block": true
62
+ }, language ? {} : {
63
+ 'data-odn-code-block-plain': ''
64
+ }), language ? /*#__PURE__*/React.createElement("div", {
65
+ "data-odn-code-block-header": true
66
+ }, /*#__PURE__*/React.createElement("span", null, language), copyControl) : /*#__PURE__*/React.createElement("div", {
67
+ "data-odn-code-block-copy-anchor": true
68
+ }, copyControl), /*#__PURE__*/React.createElement("pre", {
63
69
  "data-odn-code-block-pre": true
64
70
  }, /*#__PURE__*/React.createElement("code", null, code)));
65
71
  });
@@ -15,6 +15,15 @@
15
15
  color: var(--odn-color-black-9);
16
16
  }
17
17
 
18
+ [data-odn-code-block-copy-anchor] {
19
+ position: absolute;
20
+ top: 4px;
21
+ right: 8px;
22
+ z-index: 1;
23
+ font-size: 12px;
24
+ color: var(--odn-color-black-9);
25
+ }
26
+
18
27
  [data-odn-code-block-copy-wrap] {
19
28
  display: inline-flex;
20
29
  }
@@ -62,5 +71,9 @@
62
71
  background: transparent;
63
72
  }
64
73
  [data-odn-code-block-pre] code {
65
- font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
74
+ font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
75
+ }
76
+
77
+ [data-odn-code-block-plain] [data-odn-code-block-pre] {
78
+ padding-right: 84px;
66
79
  }
@@ -25,7 +25,7 @@ type CollapsibleContentProps = Omit<HTMLMotionProps<'div'>, 'children' | 'ref' |
25
25
  children?: React.ReactNode;
26
26
  transition?: Transition;
27
27
  };
28
- declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<HTMLMotionProps<"div">, "ref" | "children" | "transition"> & {
28
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<HTMLMotionProps<"div">, "children" | "ref" | "transition"> & {
29
29
  children?: React.ReactNode;
30
30
  transition?: Transition | undefined;
31
31
  } & React.RefAttributes<HTMLDivElement>>;
@@ -482,7 +482,6 @@ var DatePicker = function DatePicker(props) {
482
482
  };
483
483
  var handleCaptionHoverEnter = function handleCaptionHoverEnter(e) {
484
484
  var _popupRef$current2, _popupRef$current3;
485
- e.persist();
486
485
  clearTimeout(navHoverFillTimer.current);
487
486
  if (!navHoverFillInnerRef.current || !navHoverFillRef.current) {
488
487
  return;
@@ -517,7 +516,6 @@ var DatePicker = function DatePicker(props) {
517
516
  }
518
517
  };
519
518
  var handleCaptionHoverLeave = function handleCaptionHoverLeave(e) {
520
- e.persist();
521
519
  clearTimeout(navHoverFillTimer.current);
522
520
  if (!navHoverFillInnerRef.current || !navHoverFillRef.current) {
523
521
  return;
@@ -567,7 +565,6 @@ var DatePicker = function DatePicker(props) {
567
565
  };
568
566
  var handleTdHoverEnter = function handleTdHoverEnter(e) {
569
567
  var _popupRef$current4, _popupRef$current5, _target$parentElement;
570
- e.persist();
571
568
  clearTimeout(tdHoverFillTimer.current);
572
569
  if (!tdHoverFillInnerRef.current || !tdHoverFillRef.current) {
573
570
  return;
@@ -607,7 +604,6 @@ var DatePicker = function DatePicker(props) {
607
604
  }
608
605
  };
609
606
  var handleTdHoverLeave = function handleTdHoverLeave(e) {
610
- e.persist();
611
607
  clearTimeout(tdHoverFillTimer.current);
612
608
  if (!tdHoverFillInnerRef.current || !tdHoverFillRef.current) {
613
609
  return;
@@ -340,7 +340,6 @@ var DateRangePicker = function DateRangePicker(_ref) {
340
340
  };
341
341
  var handleCaptionHoverEnter = function handleCaptionHoverEnter(e) {
342
342
  var _popupRef$current2, _popupRef$current3;
343
- e.persist();
344
343
  clearTimeout(navHoverFillTimer.current);
345
344
  if (!navHoverFillInnerRef.current || !navHoverFillRef.current) {
346
345
  return;
@@ -375,7 +374,6 @@ var DateRangePicker = function DateRangePicker(_ref) {
375
374
  }
376
375
  };
377
376
  var handleCaptionHoverLeave = function handleCaptionHoverLeave(e) {
378
- e.persist();
379
377
  clearTimeout(navHoverFillTimer.current);
380
378
  if (!navHoverFillInnerRef.current || !navHoverFillRef.current) {
381
379
  return;
@@ -425,7 +423,6 @@ var DateRangePicker = function DateRangePicker(_ref) {
425
423
  };
426
424
  var handleTdHoverEnter = function handleTdHoverEnter(e) {
427
425
  var _popupRef$current4, _popupRef$current5;
428
- e.persist();
429
426
  clearTimeout(tdHoverFillTimer.current);
430
427
  if (!tdHoverFillInnerRef.current || !tdHoverFillRef.current) {
431
428
  return;
@@ -459,7 +456,6 @@ var DateRangePicker = function DateRangePicker(_ref) {
459
456
  }
460
457
  };
461
458
  var handleTdHoverLeave = function handleTdHoverLeave(e) {
462
- e.persist();
463
459
  clearTimeout(tdHoverFillTimer.current);
464
460
  if (!tdHoverFillInnerRef.current || !tdHoverFillRef.current) {
465
461
  return;
@@ -612,7 +612,7 @@ var Dropdown = function Dropdown(props) {
612
612
  _useState2 = _slicedToArray(_useState, 2),
613
613
  hoverOpen = _useState2[0],
614
614
  setHoverOpen = _useState2[1];
615
- var hoverTimeoutRef = useRef();
615
+ var hoverTimeoutRef = useRef(undefined);
616
616
  var containerRef = useRef(null);
617
617
 
618
618
  // 检查是否为选择模式
@@ -8,6 +8,7 @@ var _excluded = ["bgClassName", "bgStyle", "children", "onMouseEnter", "onMouseL
8
8
  import React, { forwardRef, useCallback, useContext, useEffect, useLayoutEffect, useRef } from 'react';
9
9
  import { observeResize } from "../_util/sharedResizeObserver";
10
10
  import { ConfigContext } from "../config-provider";
11
+ import { useForkRef } from "../pop-base/useForkRef";
11
12
  import "./style";
12
13
  var DEFAULT_HOVER_COLOR = 'var(--odn-color-black-2)';
13
14
  var DEFAULT_ACTIVE_COLOR = 'var(--odn-color-black-6)';
@@ -141,7 +142,10 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
141
142
  _useContext$hoverFill = _useContext.hoverFill,
142
143
  hoverFillConfig = _useContext$hoverFill === void 0 ? {} : _useContext$hoverFill;
143
144
  var innerRef = useRef(null);
144
- var ref = outerRef || innerRef;
145
+ /* Keep innerRef for .current; merge outer (Popover/Tooltip setReference)
146
+ * via useForkRef. `outerRef || innerRef` breaks when outerRef is a
147
+ * callback under React 19 / floating-ui. */
148
+ var setRef = useForkRef(outerRef, innerRef);
145
149
  var bgRef = useRef(null);
146
150
  var disabledRef = useRef(disabled);
147
151
  var hoverColorRef = useRef(hoverColor);
@@ -149,7 +153,7 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
149
153
  hoverColorRef.current = hoverColor;
150
154
  var syncBgSize = useCallback(function () {
151
155
  var _window$odnHoverFillS4;
152
- var root = ref.current;
156
+ var root = innerRef.current;
153
157
  if (!root || !bgRef.current) {
154
158
  return;
155
159
  }
@@ -157,17 +161,16 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
157
161
  bgRef.current.style.width = "".concat(root.offsetWidth, "px");
158
162
  bgRef.current.style.height = "".concat(root.offsetHeight, "px");
159
163
  }
160
- }, [ref]);
164
+ }, []);
161
165
  var handleMouseEnter = function handleMouseEnter(e) {
162
166
  var _window$odnHoverFillS5;
163
- e.persist();
164
167
  if (disabled) {
165
168
  return;
166
169
  }
167
170
  if ((_window$odnHoverFillS5 = window.odnHoverFillState) !== null && _window$odnHoverFillS5 !== void 0 && _window$odnHoverFillS5.timer) {
168
171
  clearTimeout(window.odnHoverFillState.timer);
169
172
  }
170
- var root = ref.current || e.currentTarget;
173
+ var root = innerRef.current || e.currentTarget;
171
174
  if (onMouseEnter) {
172
175
  onMouseEnter(e);
173
176
  }
@@ -246,11 +249,10 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
246
249
  };
247
250
  var handleMouseLeave = function handleMouseLeave(e) {
248
251
  var _window$odnHoverFillS9;
249
- e.persist();
250
252
  if (disabled) {
251
253
  return;
252
254
  }
253
- var root = ref.current || e.currentTarget;
255
+ var root = innerRef.current || e.currentTarget;
254
256
  if (root && e.relatedTarget instanceof Node && root.contains(e.relatedTarget)) {
255
257
  return;
256
258
  }
@@ -338,7 +340,7 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
338
340
  if (!bg) {
339
341
  return;
340
342
  }
341
- var root = ref.current;
343
+ var root = innerRef.current;
342
344
  var hovering = Boolean(root === null || root === void 0 ? void 0 : root.matches(':hover'));
343
345
  bg.style.background = hovering ? hoverColorRef.current : 'transparent';
344
346
  if (!hovering && (state === null || state === void 0 ? void 0 : state.bgNode) === bg) {
@@ -347,7 +349,6 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
347
349
  });
348
350
  };
349
351
  var handleMouseDown = function handleMouseDown(e) {
350
- e.persist();
351
352
  if (disabled) {
352
353
  return;
353
354
  }
@@ -379,12 +380,12 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
379
380
  };
380
381
  }, []);
381
382
  useEffect(function () {
382
- var root = ref.current;
383
+ var root = innerRef.current;
383
384
  if (!root) {
384
385
  return;
385
386
  }
386
387
  return observeResize(root, syncBgSize);
387
- }, [ref, syncBgSize]);
388
+ }, [syncBgSize]);
388
389
  useLayoutEffect(function () {
389
390
  if (!disabled) {
390
391
  return;
@@ -392,7 +393,7 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
392
393
  cancelPendingHandoff();
393
394
  resetBgInline(bgRef.current);
394
395
  var state = window.odnHoverFillState;
395
- var root = ref.current;
396
+ var root = innerRef.current;
396
397
  if (state !== null && state !== void 0 && state.bgVisible && root !== null && root !== void 0 && root.matches(':hover')) {
397
398
  clearHoverFillState(true);
398
399
  return;
@@ -400,16 +401,16 @@ var HoverFill = /*#__PURE__*/forwardRef(function (_ref, outerRef) {
400
401
  if ((state === null || state === void 0 ? void 0 : state.bgNode) === bgRef.current || (state === null || state === void 0 ? void 0 : state.baseNode) === root) {
401
402
  clearHoverFillState(true);
402
403
  }
403
- }, [disabled, ref]);
404
- return /*#__PURE__*/React.createElement("div", _extends({
405
- ref: ref,
404
+ }, [disabled]);
405
+ return /*#__PURE__*/React.createElement("div", _extends({}, props, {
406
+ ref: setRef,
406
407
  "data-odn-hover-fill": true,
407
408
  "data-odn-hover-fill-disabled": disabled,
408
409
  onMouseEnter: handleMouseEnter,
409
410
  onMouseLeave: handleMouseLeave,
410
411
  onMouseDown: handleMouseDown,
411
412
  style: _objectSpread(_objectSpread({}, props.style), {}, _defineProperty({}, '--odn-hoverfill-cursor', hoverCursor))
412
- }, props), /*#__PURE__*/React.createElement("div", {
413
+ }), /*#__PURE__*/React.createElement("div", {
413
414
  "data-odn-hover-fill-content": true
414
415
  }, children), /*#__PURE__*/React.createElement("i", {
415
416
  ref: bgRef,
@@ -1,3 +1,3 @@
1
1
  import { svgData } from './svg-data';
2
2
  export type IconName = keyof typeof svgData;
3
- export declare const iconNames: ("code" | "data" | "form" | "link" | "map" | "menu" | "option" | "search" | "section" | "table" | "template" | "time" | "video" | "filter" | "image" | "stop" | "text" | "view" | "key" | "draggable" | "target" | "type" | "radius" | "x" | "download" | "list" | "frame" | "replace" | "split" | "repeat" | "anchor" | "bold" | "send" | "group" | "heading" | "presentation" | "timer" | "location" | "copy" | "move" | "baseline" | "bottom" | "left" | "right" | "top" | "scroll" | "history" | "sort" | "container" | "power" | "custom" | "ellipsis" | "pointer" | "zoom-in" | "zoom-out" | "italic" | "underline" | "dot" | "sheet" | "toolbox" | "square" | "addressBook" | "AIFile" | "alarmClock" | "alert-circle" | "alert-circle-filled" | "alert-triangle" | "archive" | "arrow-down" | "arrow-up" | "arrow-up-right" | "arrowDown" | "arrowDown-filled" | "arrowLeft" | "arrowLeft-filled" | "arrowRight" | "arrowRight-filled" | "arrowUp" | "arrowUp-filled" | "asset-square" | "assetProtecting" | "autoAD-square-filled" | "bar-chart-3" | "bell" | "bell-filled" | "bidding" | "biz-cancel" | "biz-magic" | "biz-send" | "biz-stop" | "biz-time" | "bottom-filled" | "calendar" | "cancel" | "cancel-circle" | "cancel-circle-filled" | "card-distribute" | "channels" | "channels-square-filled" | "chart" | "chatBubble-filled" | "check" | "check-circle" | "check-circle-filled" | "checkBadge" | "chevron-down" | "chevron-left" | "chevron-right" | "clock" | "clock-4" | "comments" | "compare" | "copy-new" | "custom-filled" | "customColumn" | "dataAuth" | "dataBoard" | "dataBox" | "dataFolder" | "dataReport" | "dataReport-filled" | "dataRising" | "delete" | "deleteAD-filled" | "detect" | "doubleLeft" | "doubleLeft-filled" | "doubleRight" | "doubleRight-filled" | "down" | "down-bold" | "down-filled" | "download-1" | "download-2" | "download-filled" | "edit" | "exchange" | "exposure-filled" | "extendedConfig" | "fall-filled" | "file" | "file-code" | "file-filled" | "file-text" | "filter-filled" | "flag" | "flame" | "fold" | "folderZip" | "folderzip-bold" | "fullScreen" | "globe" | "guideBook" | "help-circle" | "help-circle-filled" | "histogram" | "hosting" | "hot" | "hot-filled" | "icon-outlined" | "idea" | "idea-bold" | "image-bold" | "image-filled" | "images" | "import" | "info" | "info-circle" | "info-circle-filled" | "keyword" | "LandingPage" | "languages" | "layers" | "left-bold" | "left-filled" | "leftFirst" | "leftFirst-filled" | "linkSquare" | "loader" | "lock" | "logout" | "magic" | "magic-filled" | "maxSize" | "menuLeft" | "menuLeft-bold" | "menuRight" | "menuRight-bold" | "message-circle-plus" | "messages-square" | "minigame-filled" | "miniProgram" | "minus" | "minus-circle" | "minus-circle-filled" | "mobile" | "mobile-filled" | "mobilePage" | "modify" | "modify-bold" | "moments-filled" | "more" | "more-vertical" | "mouse-pointer-click" | "multiCreate" | "mute" | "mutiImage" | "mutiImage-filled" | "mutiSelect" | "mutiSelect-filled" | "notepad" | "notepad-bold" | "offiaccount-filled" | "panel-left" | "panel-left-close" | "panel-right" | "paperclip" | "pause-filled" | "play-filled" | "playing" | "plus" | "plus-circle" | "plus-circle-filled" | "pointerLeft-filled" | "pointerRight-filled" | "puzzle" | "QRcode" | "qualification" | "quickFile" | "refresh" | "report" | "reportBook" | "right-bold" | "right-filled" | "rightLast" | "rightLast-filled" | "ringStruckture" | "rise-filled" | "rotate-ccw" | "save" | "search-bold" | "search-filled" | "searchAD" | "searchAD-filled" | "setting" | "share" | "shield" | "shield-filled" | "shop" | "shopping" | "sound" | "sparkle" | "sparkles" | "square-filled" | "star" | "star-filled" | "sticker" | "sticker-filled" | "subdivide" | "support-bold" | "tag" | "tag-filled" | "targeting" | "task" | "task-filled" | "templateBag" | "thumbDown" | "thumbDown-filled" | "thumbs-down" | "thumbs-up" | "thumbUp" | "thumbUp-filled" | "time-bold" | "top-filled" | "treeStructure" | "unfold" | "unfold-filled" | "up" | "up-bold" | "up-filled" | "user-add" | "user-circle" | "user-edit" | "user-pack" | "userList" | "userPack" | "users" | "users-bold" | "verify" | "videoBag-filled" | "videoScreenshot" | "viewMask" | "wallet" | "wand-sparkles" | "warning" | "warning-filled" | "wechatBubble" | "wechatBubble-filled" | "wechatSearch" | "writing" | "x-circle" | "zap" | "zoomIn" | "zoomOut" | "accessibility" | "baby" | "badge-info" | "badge-question-mark" | "circle-question-mark" | "closed-caption" | "contrast" | "ear" | "ear-off" | "eclipse" | "eye" | "eye-closed" | "eye-off" | "glasses" | "hand" | "life-buoy" | "moon" | "moon-star" | "person-standing" | "scan-eye" | "scan-search" | "speech" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "activity" | "at-sign" | "award" | "badge" | "badge-alert" | "ban" | "bell-check" | "bell-dot" | "book-user" | "bookmark" | "bookmark-check" | "bookmark-minus" | "bookmark-off" | "bookmark-plus" | "bookmark-x" | "circle-user" | "circle-user-round" | "cog" | "contact" | "contact-round" | "cookie" | "credit-card" | "file-user" | "fingerprint-pattern" | "flag-off" | "frown" | "gift" | "hand-coins" | "handshake" | "heart-handshake" | "heart-minus" | "heart-plus" | "id-card" | "id-card-lanyard" | "inbox" | "key-round" | "key-square" | "link-2" | "log-in" | "log-out" | "mail" | "map-pin" | "map-pin-check" | "map-pin-check-inside" | "map-pin-house" | "map-pin-minus" | "map-pin-minus-inside" | "map-pin-pen" | "map-pin-plus" | "map-pin-plus-inside" | "map-pin-search" | "map-pin-x" | "map-pin-x-inside" | "map-pinned" | "message-circle-check" | "message-circle-x" | "message-square-check" | "notebook-tabs" | "pin" | "rotate-ccw-key" | "scan-face" | "scan-qr-code" | "settings" | "settings-2" | "share-2" | "shield-alert" | "shield-ban" | "shield-check" | "shield-cog" | "shield-cog-corner" | "shield-ellipsis" | "shield-half" | "shield-minus" | "shield-off" | "shield-plus" | "shield-question-mark" | "shield-user" | "shield-x" | "sliders-horizontal" | "sliders-vertical" | "smile" | "square-user" | "square-user-round" | "tags" | "ticket" | "tickets" | "toggle-left" | "toggle-right" | "user" | "user-check" | "user-cog" | "user-key" | "user-lock" | "user-minus" | "user-pen" | "user-plus" | "user-round" | "user-round-check" | "user-round-cog" | "user-round-key" | "user-round-minus" | "user-round-pen" | "user-round-plus" | "user-round-search" | "user-round-x" | "user-search" | "user-star" | "user-x" | "users-round" | "venetian-mask" | "vibrate" | "vibrate-off" | "wallet-cards" | "wallet-minimal" | "wallpaper" | "waypoints" | "wrench" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down-0-1" | "arrow-down-1-0" | "arrow-down-a-z" | "arrow-down-from-line" | "arrow-down-left" | "arrow-down-narrow-wide" | "arrow-down-right" | "arrow-down-to-dot" | "arrow-down-to-line" | "arrow-down-up" | "arrow-down-wide-narrow" | "arrow-down-z-a" | "arrow-left" | "arrow-left-from-line" | "arrow-left-right" | "arrow-left-to-line" | "arrow-right" | "arrow-right-from-line" | "arrow-right-left" | "arrow-right-to-line" | "arrow-up-0-1" | "arrow-up-1-0" | "arrow-up-a-z" | "arrow-up-down" | "arrow-up-from-dot" | "arrow-up-from-line" | "arrow-up-left" | "arrow-up-narrow-wide" | "arrow-up-to-line" | "arrow-up-wide-narrow" | "arrow-up-z-a" | "arrows-up-from-line" | "calendar-sync" | "chevron-first" | "chevron-last" | "chevron-up" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-fading-arrow-up" | "clipboard-copy" | "clipboard-paste" | "cloud-backup" | "cloud-download" | "cloud-sync" | "cloud-upload" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "database-backup" | "decimals-arrow-left" | "decimals-arrow-right" | "expand" | "external-link" | "fast-forward" | "file-down" | "file-input" | "file-output" | "file-up" | "fold-horizontal" | "fold-vertical" | "folder-down" | "folder-input" | "folder-output" | "folder-sync" | "folder-up" | "git-compare-arrows" | "git-pull-request-arrow" | "git-pull-request-create-arrow" | "hard-drive-download" | "hard-drive-upload" | "iteration-ccw" | "iteration-cw" | "lasso-select" | "list-chevrons-down-up" | "list-chevrons-up-down" | "maximize-2" | "merge" | "milestone" | "minimize-2" | "mouse-pointer" | "mouse-pointer-2" | "mouse-pointer-2-off" | "mouse-pointer-ban" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "panel-bottom-close" | "panel-bottom-open" | "panel-left-open" | "panel-right-close" | "panel-right-open" | "panel-top-close" | "panel-top-open" | "phone-forwarded" | "phone-incoming" | "phone-outgoing" | "play" | "redo" | "redo-2" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "repeat-2" | "repeat-off" | "rewind" | "rotate-ccw-square" | "rotate-cw" | "rotate-cw-square" | "separator-horizontal" | "separator-vertical" | "shrink" | "shuffle" | "signpost" | "signpost-big" | "skip-back" | "skip-forward" | "spline-pointer" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-right-enter" | "square-arrow-right-exit" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-dashed-mouse-pointer" | "square-mouse-pointer" | "square-play" | "step-back" | "step-forward" | "sunrise" | "sunset" | "text-wrap" | "trending-down" | "trending-up" | "trending-up-down" | "undo" | "undo-2" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "upload" | "chart-area" | "chart-bar" | "chart-bar-big" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-bar-stacked" | "chart-candlestick" | "chart-column" | "chart-column-big" | "chart-column-decreasing" | "chart-column-increasing" | "chart-column-stacked" | "chart-gantt" | "chart-line" | "chart-network" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-scatter" | "chart-spline" | "folder-kanban" | "kanban" | "square-chart-gantt" | "square-dashed-kanban" | "square-kanban" | "antenna" | "audio-lines" | "audio-waveform" | "camera" | "camera-off" | "chevrons-left-right-ellipsis" | "circle-fading-plus" | "ethernet-port" | "hand-fist" | "headphone-off" | "mic" | "mic-off" | "newspaper" | "nfc" | "notebook" | "phone" | "phone-call" | "phone-missed" | "phone-off" | "projector" | "radar" | "screen-share" | "screen-share-off" | "send-horizontal" | "smartphone-nfc" | "smile-plus" | "spotlight" | "switch-camera" | "tv" | "video-off" | "volume" | "volume-1" | "volume-2" | "volume-off" | "volume-x" | "webcam" | "airplay" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-warning" | "bluetooth" | "bluetooth-connected" | "bluetooth-off" | "bluetooth-searching" | "cable" | "cast" | "circle-power" | "cloud-off" | "globe-off" | "globe-x" | "headphones" | "headset" | "house-wifi" | "monitor" | "monitor-check" | "monitor-cloud" | "monitor-cog" | "monitor-dot" | "monitor-down" | "monitor-off" | "monitor-pause" | "monitor-play" | "monitor-smartphone" | "monitor-speaker" | "monitor-stop" | "monitor-up" | "monitor-x" | "power-off" | "router" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "smartphone" | "smartphone-charging" | "square-power" | "voicemail" | "wifi" | "wifi-cog" | "wifi-high" | "wifi-low" | "wifi-off" | "wifi-pen" | "wifi-sync" | "wifi-zero" | "zap-off" | "circle-plus" | "hand-grab" | "lasso" | "loader-circle" | "loader-pinwheel" | "pen-tool" | "pencil" | "pencil-off" | "pointer-off" | "square-dashed-text" | "stamp" | "text-cursor" | "a-arrow-down" | "a-arrow-up" | "a-large-small" | "app-window" | "app-window-mac" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "blend" | "book-type" | "bring-to-front" | "brush" | "brush-cleaning" | "columns-2" | "columns-3" | "columns-3-cog" | "columns-4" | "component" | "crop" | "dock" | "drafting-compass" | "flip-horizontal-2" | "flip-vertical-2" | "fullscreen" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "grid-2x2" | "grid-3x2" | "grid-3x3" | "heart-x" | "highlighter" | "layers-2" | "layers-minus" | "layers-plus" | "layout-dashboard" | "layout-grid" | "layout-list" | "layout-panel-left" | "line-style" | "magnet" | "maximize" | "minimize" | "paint-bucket" | "paint-roller" | "paintbrush" | "paintbrush-vertical" | "palette" | "panel-top" | "panels-top-left" | "pen" | "pen-line" | "pen-off" | "pencil-line" | "pencil-ruler" | "pipette" | "proportions" | "ratio" | "rectangle-horizontal" | "rectangle-vertical" | "rows-2" | "rows-3" | "rows-4" | "ruler" | "scaling" | "scissors" | "scissors-line-dashed" | "send-to-back" | "spray-can" | "square-dashed" | "square-scissors" | "squares-exclude" | "squares-intersect" | "squares-subtract" | "squares-unite" | "swatch-book" | "tablet-smartphone" | "vector-square" | "asterisk" | "astroid" | "binary" | "blocks" | "book" | "book-alert" | "book-check" | "book-copy" | "book-dashed" | "book-down" | "book-key" | "book-lock" | "book-marked" | "book-minus" | "book-open" | "book-open-check" | "book-open-text" | "book-plus" | "book-search" | "book-up" | "book-up-2" | "bot" | "bot-message-square" | "bot-off" | "box" | "boxes" | "braces" | "brackets" | "brain-circuit" | "brain-cog" | "bug" | "bug-off" | "bug-play" | "case-lower" | "case-upper" | "circle-dashed" | "circle-dot" | "circle-ellipsis" | "circle-slash" | "circle-slash-2" | "circle-x" | "circuit-board" | "cloud-alert" | "cloud-check" | "cloud-cog" | "code-xml" | "combine" | "command" | "computer" | "construction" | "database" | "database-search" | "database-zap" | "diff" | "divide" | "earth-lock" | "equal" | "equal-not" | "file-braces" | "file-diff" | "file-digit" | "file-sliders" | "file-stack" | "file-terminal" | "folder-code" | "folder-dot" | "folder-open-dot" | "folder-root" | "gem" | "git-branch" | "git-branch-minus" | "git-branch-plus" | "git-commit-horizontal" | "git-commit-vertical" | "git-compare" | "git-fork" | "git-graph" | "git-merge" | "git-merge-conflict" | "git-pull-request" | "git-pull-request-closed" | "git-pull-request-create" | "git-pull-request-draft" | "globe-lock" | "hard-drive" | "hexagon" | "keyboard" | "keyboard-off" | "library" | "library-big" | "list-indent-decrease" | "list-indent-increase" | "message-circle-code" | "message-square-code" | "message-square-diff" | "network" | "package" | "package-2" | "package-check" | "package-minus" | "package-open" | "package-plus" | "package-search" | "package-x" | "parentheses" | "percent" | "plug" | "plug-2" | "qr-code" | "regex" | "rocket" | "rss" | "scroll-text" | "search-code" | "server" | "server-cog" | "server-crash" | "server-off" | "shell" | "slash" | "spell-check" | "spell-check-2" | "square-code" | "square-dot" | "square-function" | "square-library" | "square-minus" | "square-plus" | "square-slash" | "square-stack" | "square-terminal" | "table-properties" | "terminal" | "tool-case" | "triangle-alert" | "unplug" | "variable" | "webhook" | "webhook-off" | "workflow" | "archive-restore" | "archive-x" | "book-image" | "calendar-fold" | "file-archive" | "file-badge" | "file-box" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-chart-pie" | "file-check" | "file-clock" | "file-cog" | "file-headphone" | "file-image" | "file-key" | "file-lock" | "file-minus" | "file-pen" | "file-pen-line" | "file-play" | "file-plus" | "file-scan" | "file-search" | "file-spreadsheet" | "file-symlink" | "file-type" | "file-x" | "files" | "folder" | "folder-archive" | "folder-bookmark" | "folder-check" | "folder-clock" | "folder-closed" | "folder-cog" | "folder-key" | "folder-lock" | "folder-minus" | "folder-open" | "folder-pen" | "folder-plus" | "folder-search" | "folder-search-2" | "folder-tree" | "folder-x" | "folders" | "image-down" | "image-minus" | "image-off" | "image-play" | "image-plus" | "image-up" | "list-tree" | "music" | "save-all" | "save-off" | "table-cells-merge" | "table-cells-split" | "table-columns-split" | "table-rows-split" | "trash" | "trash-2" | "ungroup" | "align-center-horizontal" | "align-center-vertical" | "align-end-horizontal" | "align-end-vertical" | "align-horizontal-distribute-center" | "align-horizontal-distribute-end" | "align-horizontal-distribute-start" | "align-horizontal-justify-center" | "align-horizontal-justify-end" | "align-horizontal-justify-start" | "align-horizontal-space-around" | "align-horizontal-space-between" | "align-start-horizontal" | "align-start-vertical" | "align-vertical-distribute-center" | "align-vertical-distribute-end" | "align-vertical-distribute-start" | "align-vertical-justify-center" | "align-vertical-justify-end" | "align-vertical-justify-start" | "align-vertical-space-around" | "align-vertical-space-between" | "ellipsis-vertical" | "funnel" | "funnel-plus" | "funnel-x" | "grid-2x2-check" | "grid-2x2-plus" | "grid-2x2-x" | "grip" | "grip-horizontal" | "grip-vertical" | "layout-panel-top" | "layout-template" | "list-filter-plus" | "panel-bottom" | "panels-left-bottom" | "panels-right-bottom" | "square-menu" | "square-split-horizontal" | "square-split-vertical" | "stretch-horizontal" | "stretch-vertical" | "text-cursor-input" | "forward" | "mail-check" | "mail-minus" | "mail-open" | "mail-plus" | "mail-question-mark" | "mail-search" | "mail-warning" | "mail-x" | "mailbox" | "mails" | "reply" | "reply-all" | "alarm-clock" | "alarm-clock-check" | "alarm-clock-minus" | "alarm-clock-off" | "alarm-clock-plus" | "bell-electric" | "bell-minus" | "bell-off" | "bell-plus" | "bell-ring" | "check-check" | "check-line" | "circle-alert" | "circle-check" | "circle-check-big" | "copy-check" | "copy-x" | "laptop-minimal-check" | "megaphone" | "megaphone-off" | "message-circle-warning" | "message-square-dot" | "message-square-warning" | "octagon-alert" | "octagon-x" | "square-check" | "square-check-big" | "square-x" | "badge-check" | "badge-minus" | "badge-percent" | "badge-plus" | "badge-x" | "book-heart" | "circle-percent" | "hand-heart" | "hash" | "heart" | "heart-off" | "message-circle" | "message-circle-dashed" | "message-circle-heart" | "message-circle-more" | "message-circle-off" | "message-circle-question-mark" | "message-circle-reply" | "message-square" | "message-square-dashed" | "message-square-heart" | "message-square-lock" | "message-square-more" | "message-square-off" | "message-square-plus" | "message-square-quote" | "message-square-reply" | "message-square-share" | "message-square-text" | "message-square-x" | "notebook-pen" | "notebook-text" | "notepad-text" | "notepad-text-dashed" | "podcast" | "scan" | "menu-line" | "search-line" | "search-alert" | "search-check" | "search-slash" | "search-x" | "square-activity" | "square-percent" | "star-half" | "star-off" | "sticky-note" | "store" | "shopping-bag" | "vote" | "book-text" | "book-x" | "case-sensitive" | "clipboard" | "clipboard-check" | "clipboard-clock" | "clipboard-list" | "clipboard-minus" | "clipboard-pen" | "clipboard-pen-line" | "clipboard-plus" | "clipboard-type" | "clipboard-x" | "copy-minus" | "copy-plus" | "copyright" | "eraser" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "link-2-off" | "list-check" | "list-checks" | "list-collapse" | "list-end" | "list-filter" | "list-minus" | "list-ordered" | "list-plus" | "list-restart" | "list-start" | "list-todo" | "list-x" | "logs" | "quote" | "remove-formatting" | "replace-all" | "scan-text" | "sigma" | "signature" | "square-pen" | "strikethrough" | "subscript" | "superscript" | "table-of-contents" | "text-align-center" | "text-align-end" | "text-align-justify" | "text-align-start" | "text-quote" | "text-search" | "unlink" | "unlink-2" | "whole-word" | "calendar-1" | "calendar-arrow-down" | "calendar-arrow-up" | "calendar-check" | "calendar-check-2" | "calendar-clock" | "calendar-cog" | "calendar-days" | "calendar-minus" | "calendar-off" | "calendar-plus" | "calendar-range" | "calendar-search" | "calendar-x" | "calendars" | "clock-alert" | "clock-arrow-down" | "clock-arrow-up" | "clock-check" | "clock-plus" | "hourglass" | "timeline" | "timer-off" | "timer-reset" | "watch" | "bolt" | "diamond-minus" | "diamond-plus" | "hammer" | "telescope")[];
3
+ export declare const iconNames: ("history" | "code" | "data" | "form" | "link" | "map" | "menu" | "option" | "search" | "section" | "table" | "template" | "time" | "video" | "filter" | "image" | "stop" | "text" | "view" | "sort" | "group" | "replace" | "split" | "repeat" | "anchor" | "bold" | "scroll" | "type" | "key" | "bottom" | "container" | "left" | "right" | "top" | "x" | "radius" | "power" | "draggable" | "custom" | "heading" | "list" | "presentation" | "timer" | "send" | "location" | "copy" | "move" | "baseline" | "pointer" | "zoom-in" | "zoom-out" | "italic" | "square" | "underline" | "dot" | "ellipsis" | "sheet" | "toolbox" | "addressBook" | "AIFile" | "alarmClock" | "alert-circle" | "alert-circle-filled" | "alert-triangle" | "archive" | "arrow-down" | "arrow-up" | "arrow-up-right" | "arrowDown" | "arrowDown-filled" | "arrowLeft" | "arrowLeft-filled" | "arrowRight" | "arrowRight-filled" | "arrowUp" | "arrowUp-filled" | "asset-square" | "assetProtecting" | "autoAD-square-filled" | "bar-chart-3" | "bell" | "bell-filled" | "bidding" | "biz-cancel" | "biz-magic" | "biz-send" | "biz-stop" | "biz-time" | "bottom-filled" | "calendar" | "cancel" | "cancel-circle" | "cancel-circle-filled" | "card-distribute" | "channels" | "channels-square-filled" | "chart" | "chatBubble-filled" | "check" | "check-circle" | "check-circle-filled" | "checkBadge" | "chevron-down" | "chevron-left" | "chevron-right" | "clock" | "clock-4" | "comments" | "compare" | "copy-new" | "custom-filled" | "customColumn" | "dataAuth" | "dataBoard" | "dataBox" | "dataFolder" | "dataReport" | "dataReport-filled" | "dataRising" | "delete" | "deleteAD-filled" | "detect" | "doubleLeft" | "doubleLeft-filled" | "doubleRight" | "doubleRight-filled" | "down" | "down-bold" | "down-filled" | "download" | "download-1" | "download-2" | "download-filled" | "edit" | "exchange" | "exposure-filled" | "extendedConfig" | "fall-filled" | "file" | "file-code" | "file-filled" | "file-text" | "filter-filled" | "flag" | "flame" | "fold" | "folderZip" | "folderzip-bold" | "fullScreen" | "globe" | "guideBook" | "help-circle" | "help-circle-filled" | "histogram" | "hosting" | "hot" | "hot-filled" | "icon-outlined" | "idea" | "idea-bold" | "image-bold" | "image-filled" | "images" | "import" | "info" | "info-circle" | "info-circle-filled" | "keyword" | "LandingPage" | "languages" | "layers" | "left-bold" | "left-filled" | "leftFirst" | "leftFirst-filled" | "linkSquare" | "loader" | "lock" | "logout" | "magic" | "magic-filled" | "maxSize" | "menuLeft" | "menuLeft-bold" | "menuRight" | "menuRight-bold" | "message-circle-plus" | "messages-square" | "minigame-filled" | "miniProgram" | "minus" | "minus-circle" | "minus-circle-filled" | "mobile" | "mobile-filled" | "mobilePage" | "modify" | "modify-bold" | "moments-filled" | "more" | "more-vertical" | "mouse-pointer-click" | "multiCreate" | "mute" | "mutiImage" | "mutiImage-filled" | "mutiSelect" | "mutiSelect-filled" | "notepad" | "notepad-bold" | "offiaccount-filled" | "panel-left" | "panel-left-close" | "panel-right" | "paperclip" | "pause-filled" | "play-filled" | "playing" | "plus" | "plus-circle" | "plus-circle-filled" | "pointerLeft-filled" | "pointerRight-filled" | "puzzle" | "QRcode" | "qualification" | "quickFile" | "refresh" | "report" | "reportBook" | "right-bold" | "right-filled" | "rightLast" | "rightLast-filled" | "ringStruckture" | "rise-filled" | "rotate-ccw" | "save" | "search-bold" | "search-filled" | "searchAD" | "searchAD-filled" | "setting" | "share" | "shield" | "shield-filled" | "shop" | "shopping" | "sound" | "sparkle" | "sparkles" | "square-filled" | "star" | "star-filled" | "sticker" | "sticker-filled" | "subdivide" | "support-bold" | "tag" | "tag-filled" | "target" | "targeting" | "task" | "task-filled" | "templateBag" | "thumbDown" | "thumbDown-filled" | "thumbs-down" | "thumbs-up" | "thumbUp" | "thumbUp-filled" | "time-bold" | "top-filled" | "treeStructure" | "unfold" | "unfold-filled" | "up" | "up-bold" | "up-filled" | "user-add" | "user-circle" | "user-edit" | "user-pack" | "userList" | "userPack" | "users" | "users-bold" | "verify" | "videoBag-filled" | "videoScreenshot" | "viewMask" | "wallet" | "wand-sparkles" | "warning" | "warning-filled" | "wechatBubble" | "wechatBubble-filled" | "wechatSearch" | "writing" | "x-circle" | "zap" | "zoomIn" | "zoomOut" | "accessibility" | "baby" | "badge-info" | "badge-question-mark" | "circle-question-mark" | "closed-caption" | "contrast" | "ear" | "ear-off" | "eclipse" | "eye" | "eye-closed" | "eye-off" | "glasses" | "hand" | "life-buoy" | "moon" | "moon-star" | "person-standing" | "scan-eye" | "scan-search" | "speech" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "activity" | "at-sign" | "award" | "badge" | "badge-alert" | "ban" | "bell-check" | "bell-dot" | "book-user" | "bookmark" | "bookmark-check" | "bookmark-minus" | "bookmark-off" | "bookmark-plus" | "bookmark-x" | "circle-user" | "circle-user-round" | "cog" | "contact" | "contact-round" | "cookie" | "credit-card" | "file-user" | "fingerprint-pattern" | "flag-off" | "frown" | "gift" | "hand-coins" | "handshake" | "heart-handshake" | "heart-minus" | "heart-plus" | "id-card" | "id-card-lanyard" | "inbox" | "key-round" | "key-square" | "link-2" | "log-in" | "log-out" | "mail" | "map-pin" | "map-pin-check" | "map-pin-check-inside" | "map-pin-house" | "map-pin-minus" | "map-pin-minus-inside" | "map-pin-pen" | "map-pin-plus" | "map-pin-plus-inside" | "map-pin-search" | "map-pin-x" | "map-pin-x-inside" | "map-pinned" | "message-circle-check" | "message-circle-x" | "message-square-check" | "notebook-tabs" | "pin" | "rotate-ccw-key" | "scan-face" | "scan-qr-code" | "settings" | "settings-2" | "share-2" | "shield-alert" | "shield-ban" | "shield-check" | "shield-cog" | "shield-cog-corner" | "shield-ellipsis" | "shield-half" | "shield-minus" | "shield-off" | "shield-plus" | "shield-question-mark" | "shield-user" | "shield-x" | "sliders-horizontal" | "sliders-vertical" | "smile" | "square-user" | "square-user-round" | "tags" | "ticket" | "tickets" | "toggle-left" | "toggle-right" | "user" | "user-check" | "user-cog" | "user-key" | "user-lock" | "user-minus" | "user-pen" | "user-plus" | "user-round" | "user-round-check" | "user-round-cog" | "user-round-key" | "user-round-minus" | "user-round-pen" | "user-round-plus" | "user-round-search" | "user-round-x" | "user-search" | "user-star" | "user-x" | "users-round" | "venetian-mask" | "vibrate" | "vibrate-off" | "wallet-cards" | "wallet-minimal" | "wallpaper" | "waypoints" | "wrench" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down-0-1" | "arrow-down-1-0" | "arrow-down-a-z" | "arrow-down-from-line" | "arrow-down-left" | "arrow-down-narrow-wide" | "arrow-down-right" | "arrow-down-to-dot" | "arrow-down-to-line" | "arrow-down-up" | "arrow-down-wide-narrow" | "arrow-down-z-a" | "arrow-left" | "arrow-left-from-line" | "arrow-left-right" | "arrow-left-to-line" | "arrow-right" | "arrow-right-from-line" | "arrow-right-left" | "arrow-right-to-line" | "arrow-up-0-1" | "arrow-up-1-0" | "arrow-up-a-z" | "arrow-up-down" | "arrow-up-from-dot" | "arrow-up-from-line" | "arrow-up-left" | "arrow-up-narrow-wide" | "arrow-up-to-line" | "arrow-up-wide-narrow" | "arrow-up-z-a" | "arrows-up-from-line" | "calendar-sync" | "chevron-first" | "chevron-last" | "chevron-up" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-fading-arrow-up" | "clipboard-copy" | "clipboard-paste" | "cloud-backup" | "cloud-download" | "cloud-sync" | "cloud-upload" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "database-backup" | "decimals-arrow-left" | "decimals-arrow-right" | "expand" | "external-link" | "fast-forward" | "file-down" | "file-input" | "file-output" | "file-up" | "fold-horizontal" | "fold-vertical" | "folder-down" | "folder-input" | "folder-output" | "folder-sync" | "folder-up" | "git-compare-arrows" | "git-pull-request-arrow" | "git-pull-request-create-arrow" | "hard-drive-download" | "hard-drive-upload" | "iteration-ccw" | "iteration-cw" | "lasso-select" | "list-chevrons-down-up" | "list-chevrons-up-down" | "maximize-2" | "merge" | "milestone" | "minimize-2" | "mouse-pointer" | "mouse-pointer-2" | "mouse-pointer-2-off" | "mouse-pointer-ban" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "panel-bottom-close" | "panel-bottom-open" | "panel-left-open" | "panel-right-close" | "panel-right-open" | "panel-top-close" | "panel-top-open" | "phone-forwarded" | "phone-incoming" | "phone-outgoing" | "play" | "redo" | "redo-2" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "repeat-2" | "repeat-off" | "rewind" | "rotate-ccw-square" | "rotate-cw" | "rotate-cw-square" | "separator-horizontal" | "separator-vertical" | "shrink" | "shuffle" | "signpost" | "signpost-big" | "skip-back" | "skip-forward" | "spline-pointer" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-right-enter" | "square-arrow-right-exit" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-dashed-mouse-pointer" | "square-mouse-pointer" | "square-play" | "step-back" | "step-forward" | "sunrise" | "sunset" | "text-wrap" | "trending-down" | "trending-up" | "trending-up-down" | "undo" | "undo-2" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "upload" | "chart-area" | "chart-bar" | "chart-bar-big" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-bar-stacked" | "chart-candlestick" | "chart-column" | "chart-column-big" | "chart-column-decreasing" | "chart-column-increasing" | "chart-column-stacked" | "chart-gantt" | "chart-line" | "chart-network" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-scatter" | "chart-spline" | "folder-kanban" | "kanban" | "square-chart-gantt" | "square-dashed-kanban" | "square-kanban" | "antenna" | "audio-lines" | "audio-waveform" | "camera" | "camera-off" | "chevrons-left-right-ellipsis" | "circle-fading-plus" | "ethernet-port" | "hand-fist" | "headphone-off" | "mic" | "mic-off" | "newspaper" | "nfc" | "notebook" | "phone" | "phone-call" | "phone-missed" | "phone-off" | "projector" | "radar" | "screen-share" | "screen-share-off" | "send-horizontal" | "smartphone-nfc" | "smile-plus" | "spotlight" | "switch-camera" | "tv" | "video-off" | "volume" | "volume-1" | "volume-2" | "volume-off" | "volume-x" | "webcam" | "airplay" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-warning" | "bluetooth" | "bluetooth-connected" | "bluetooth-off" | "bluetooth-searching" | "cable" | "cast" | "circle-power" | "cloud-off" | "globe-off" | "globe-x" | "headphones" | "headset" | "house-wifi" | "monitor" | "monitor-check" | "monitor-cloud" | "monitor-cog" | "monitor-dot" | "monitor-down" | "monitor-off" | "monitor-pause" | "monitor-play" | "monitor-smartphone" | "monitor-speaker" | "monitor-stop" | "monitor-up" | "monitor-x" | "power-off" | "router" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "smartphone" | "smartphone-charging" | "square-power" | "voicemail" | "wifi" | "wifi-cog" | "wifi-high" | "wifi-low" | "wifi-off" | "wifi-pen" | "wifi-sync" | "wifi-zero" | "zap-off" | "circle-plus" | "hand-grab" | "lasso" | "loader-circle" | "loader-pinwheel" | "pen-tool" | "pencil" | "pencil-off" | "pointer-off" | "square-dashed-text" | "stamp" | "text-cursor" | "a-arrow-down" | "a-arrow-up" | "a-large-small" | "app-window" | "app-window-mac" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "blend" | "book-type" | "bring-to-front" | "brush" | "brush-cleaning" | "columns-2" | "columns-3" | "columns-3-cog" | "columns-4" | "component" | "crop" | "dock" | "drafting-compass" | "flip-horizontal-2" | "flip-vertical-2" | "frame" | "fullscreen" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "grid-2x2" | "grid-3x2" | "grid-3x3" | "heart-x" | "highlighter" | "layers-2" | "layers-minus" | "layers-plus" | "layout-dashboard" | "layout-grid" | "layout-list" | "layout-panel-left" | "line-style" | "magnet" | "maximize" | "minimize" | "paint-bucket" | "paint-roller" | "paintbrush" | "paintbrush-vertical" | "palette" | "panel-top" | "panels-top-left" | "pen" | "pen-line" | "pen-off" | "pencil-line" | "pencil-ruler" | "pipette" | "proportions" | "ratio" | "rectangle-horizontal" | "rectangle-vertical" | "rows-2" | "rows-3" | "rows-4" | "ruler" | "scaling" | "scissors" | "scissors-line-dashed" | "send-to-back" | "spray-can" | "square-dashed" | "square-scissors" | "squares-exclude" | "squares-intersect" | "squares-subtract" | "squares-unite" | "swatch-book" | "tablet-smartphone" | "vector-square" | "asterisk" | "astroid" | "binary" | "blocks" | "book" | "book-alert" | "book-check" | "book-copy" | "book-dashed" | "book-down" | "book-key" | "book-lock" | "book-marked" | "book-minus" | "book-open" | "book-open-check" | "book-open-text" | "book-plus" | "book-search" | "book-up" | "book-up-2" | "bot" | "bot-message-square" | "bot-off" | "box" | "boxes" | "braces" | "brackets" | "brain-circuit" | "brain-cog" | "bug" | "bug-off" | "bug-play" | "case-lower" | "case-upper" | "circle-dashed" | "circle-dot" | "circle-ellipsis" | "circle-slash" | "circle-slash-2" | "circle-x" | "circuit-board" | "cloud-alert" | "cloud-check" | "cloud-cog" | "code-xml" | "combine" | "command" | "computer" | "construction" | "database" | "database-search" | "database-zap" | "diff" | "divide" | "earth-lock" | "equal" | "equal-not" | "file-braces" | "file-diff" | "file-digit" | "file-sliders" | "file-stack" | "file-terminal" | "folder-code" | "folder-dot" | "folder-open-dot" | "folder-root" | "gem" | "git-branch" | "git-branch-minus" | "git-branch-plus" | "git-commit-horizontal" | "git-commit-vertical" | "git-compare" | "git-fork" | "git-graph" | "git-merge" | "git-merge-conflict" | "git-pull-request" | "git-pull-request-closed" | "git-pull-request-create" | "git-pull-request-draft" | "globe-lock" | "hard-drive" | "hexagon" | "keyboard" | "keyboard-off" | "library" | "library-big" | "list-indent-decrease" | "list-indent-increase" | "message-circle-code" | "message-square-code" | "message-square-diff" | "network" | "package" | "package-2" | "package-check" | "package-minus" | "package-open" | "package-plus" | "package-search" | "package-x" | "parentheses" | "percent" | "plug" | "plug-2" | "qr-code" | "regex" | "rocket" | "rss" | "scroll-text" | "search-code" | "server" | "server-cog" | "server-crash" | "server-off" | "shell" | "slash" | "spell-check" | "spell-check-2" | "square-code" | "square-dot" | "square-function" | "square-library" | "square-minus" | "square-plus" | "square-slash" | "square-stack" | "square-terminal" | "table-properties" | "terminal" | "tool-case" | "triangle-alert" | "unplug" | "variable" | "webhook" | "webhook-off" | "workflow" | "archive-restore" | "archive-x" | "book-image" | "calendar-fold" | "file-archive" | "file-badge" | "file-box" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-chart-pie" | "file-check" | "file-clock" | "file-cog" | "file-headphone" | "file-image" | "file-key" | "file-lock" | "file-minus" | "file-pen" | "file-pen-line" | "file-play" | "file-plus" | "file-scan" | "file-search" | "file-spreadsheet" | "file-symlink" | "file-type" | "file-x" | "files" | "folder" | "folder-archive" | "folder-bookmark" | "folder-check" | "folder-clock" | "folder-closed" | "folder-cog" | "folder-key" | "folder-lock" | "folder-minus" | "folder-open" | "folder-pen" | "folder-plus" | "folder-search" | "folder-search-2" | "folder-tree" | "folder-x" | "folders" | "image-down" | "image-minus" | "image-off" | "image-play" | "image-plus" | "image-up" | "list-tree" | "music" | "save-all" | "save-off" | "table-cells-merge" | "table-cells-split" | "table-columns-split" | "table-rows-split" | "trash" | "trash-2" | "ungroup" | "align-center-horizontal" | "align-center-vertical" | "align-end-horizontal" | "align-end-vertical" | "align-horizontal-distribute-center" | "align-horizontal-distribute-end" | "align-horizontal-distribute-start" | "align-horizontal-justify-center" | "align-horizontal-justify-end" | "align-horizontal-justify-start" | "align-horizontal-space-around" | "align-horizontal-space-between" | "align-start-horizontal" | "align-start-vertical" | "align-vertical-distribute-center" | "align-vertical-distribute-end" | "align-vertical-distribute-start" | "align-vertical-justify-center" | "align-vertical-justify-end" | "align-vertical-justify-start" | "align-vertical-space-around" | "align-vertical-space-between" | "ellipsis-vertical" | "funnel" | "funnel-plus" | "funnel-x" | "grid-2x2-check" | "grid-2x2-plus" | "grid-2x2-x" | "grip" | "grip-horizontal" | "grip-vertical" | "layout-panel-top" | "layout-template" | "list-filter-plus" | "panel-bottom" | "panels-left-bottom" | "panels-right-bottom" | "square-menu" | "square-split-horizontal" | "square-split-vertical" | "stretch-horizontal" | "stretch-vertical" | "text-cursor-input" | "forward" | "mail-check" | "mail-minus" | "mail-open" | "mail-plus" | "mail-question-mark" | "mail-search" | "mail-warning" | "mail-x" | "mailbox" | "mails" | "reply" | "reply-all" | "alarm-clock" | "alarm-clock-check" | "alarm-clock-minus" | "alarm-clock-off" | "alarm-clock-plus" | "bell-electric" | "bell-minus" | "bell-off" | "bell-plus" | "bell-ring" | "check-check" | "check-line" | "circle-alert" | "circle-check" | "circle-check-big" | "copy-check" | "copy-x" | "laptop-minimal-check" | "megaphone" | "megaphone-off" | "message-circle-warning" | "message-square-dot" | "message-square-warning" | "octagon-alert" | "octagon-x" | "square-check" | "square-check-big" | "square-x" | "badge-check" | "badge-minus" | "badge-percent" | "badge-plus" | "badge-x" | "book-heart" | "circle-percent" | "hand-heart" | "hash" | "heart" | "heart-off" | "message-circle" | "message-circle-dashed" | "message-circle-heart" | "message-circle-more" | "message-circle-off" | "message-circle-question-mark" | "message-circle-reply" | "message-square" | "message-square-dashed" | "message-square-heart" | "message-square-lock" | "message-square-more" | "message-square-off" | "message-square-plus" | "message-square-quote" | "message-square-reply" | "message-square-share" | "message-square-text" | "message-square-x" | "notebook-pen" | "notebook-text" | "notepad-text" | "notepad-text-dashed" | "podcast" | "scan" | "menu-line" | "search-line" | "search-alert" | "search-check" | "search-slash" | "search-x" | "square-activity" | "square-percent" | "star-half" | "star-off" | "sticky-note" | "store" | "shopping-bag" | "vote" | "book-text" | "book-x" | "case-sensitive" | "clipboard" | "clipboard-check" | "clipboard-clock" | "clipboard-list" | "clipboard-minus" | "clipboard-pen" | "clipboard-pen-line" | "clipboard-plus" | "clipboard-type" | "clipboard-x" | "copy-minus" | "copy-plus" | "copyright" | "eraser" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "link-2-off" | "list-check" | "list-checks" | "list-collapse" | "list-end" | "list-filter" | "list-minus" | "list-ordered" | "list-plus" | "list-restart" | "list-start" | "list-todo" | "list-x" | "logs" | "quote" | "remove-formatting" | "replace-all" | "scan-text" | "sigma" | "signature" | "square-pen" | "strikethrough" | "subscript" | "superscript" | "table-of-contents" | "text-align-center" | "text-align-end" | "text-align-justify" | "text-align-start" | "text-quote" | "text-search" | "unlink" | "unlink-2" | "whole-word" | "calendar-1" | "calendar-arrow-down" | "calendar-arrow-up" | "calendar-check" | "calendar-check-2" | "calendar-clock" | "calendar-cog" | "calendar-days" | "calendar-minus" | "calendar-off" | "calendar-plus" | "calendar-range" | "calendar-search" | "calendar-x" | "calendars" | "clock-alert" | "clock-arrow-down" | "clock-arrow-up" | "clock-check" | "clock-plus" | "hourglass" | "timeline" | "timer-off" | "timer-reset" | "watch" | "bolt" | "diamond-minus" | "diamond-plus" | "hammer" | "telescope")[];
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import './style';
2
2
  export { Collapsible, CollapsibleContent, CollapsibleTrigger, } from './collapse';
3
3
  export { iconNames } from './icon';
4
4
  export type { IconName } from './icon';
5
- export { Message, MessageReact16, type MessageIntent, type MessageProps, type odnMessageState, } from './message';
5
+ export { Message, type MessageIntent, type MessageProps, type odnMessageState, } from './message';
6
6
  export { ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, } from './modal-base';
7
7
  export { type PopoverProps } from './pop-base';
8
8
  export { MONTHS, convertDateRangeToString, convertDateToString, convertMonthToString, convertQuarterToString, convertYearToString, getDefaultMaxDate, getDefaultMinDate, getEndOfQuarter, getEndOfWeek, getStartOfQuarter, getStartOfWeek, isDayAfter, isDayBefore, isLegalDateRangeString, isLegalDateString, isLegalMonthString, isLegalQuarterString, isLegalWeekString, isLegalYearString, isSameDay, isSameMonth, parseMonthStringToRange, parseQuarterStringToRange, parseWeekStringToRange, parseYearStringToRange, } from './_util/date';
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ if (!React.useInsertionEffect) {
7
7
  import "./style";
8
8
  export { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapse";
9
9
  export { iconNames } from "./icon";
10
- export { Message, MessageReact16 } from "./message";
10
+ export { Message } from "./message";
11
11
  export { ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, ModalTrigger } from "./modal-base";
12
12
  export { MONTHS, convertDateRangeToString, convertDateToString, convertMonthToString, convertQuarterToString, convertYearToString, getDefaultMaxDate, getDefaultMinDate, getEndOfQuarter, getEndOfWeek, getStartOfQuarter, getStartOfWeek, isDayAfter, isDayBefore, isLegalDateRangeString, isLegalDateString, isLegalMonthString, isLegalQuarterString, isLegalWeekString, isLegalYearString, isSameDay, isSameMonth, parseMonthStringToRange, parseQuarterStringToRange, parseWeekStringToRange, parseYearStringToRange } from "./_util/date";
13
13
  export { isLegalTimeString, isTimeAfter, isTimeBefore, isTimeEqual, secondsToTime, timeToSeconds } from "./_util/time";
@@ -3,8 +3,7 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
- var _excluded = ["autoComplete", "autoFocus", "className", "type", "intent", "size", "onFocus", "onBlur", "placeholder", "disabled", "light", "leftElement", "rightElement", "allowClear", "clearIconName", "clearIcon", "count", "style", "id", "name", "onChange", "onKeyDown", "onPressEnter", "required", "value"],
7
- _excluded2 = ["autoComplete", "autoFocus", "className", "intent", "size", "onFocus", "onBlur", "placeholder", "disabled", "light", "allowClear", "clearIconName", "clearIcon", "count", "autoSize", "topElement", "bottomElement", "style", "id", "name", "onChange", "onKeyDown", "onPressEnter", "required", "value", "rows"];
6
+ var _excluded = ["autoComplete", "autoFocus", "className", "type", "intent", "size", "onFocus", "onBlur", "placeholder", "disabled", "light", "leftElement", "rightElement", "allowClear", "clearIconName", "clearIcon", "count", "style", "id", "name", "onChange", "onKeyDown", "onPressEnter", "required", "value"];
8
7
  import React, { useImperativeHandle, useRef, useState } from 'react';
9
8
  import Icon from "../icon";
10
9
  import "./style";
@@ -31,7 +30,7 @@ export function triggerFocus(element, option) {
31
30
  }
32
31
 
33
32
  // 公共的 Input 组件逻辑
34
- var useInputCommon = function useInputCommon(props, elementRef) {
33
+ var useInputCommon = function useInputCommon(props) {
35
34
  var _useState = useState(false),
36
35
  _useState2 = _slicedToArray(_useState, 2),
37
36
  inputFocused = _useState2[0],
@@ -115,7 +114,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
115
114
  clearIconName: clearIconName,
116
115
  clearIcon: clearIcon,
117
116
  value: value
118
- }, inputRef),
117
+ }),
119
118
  inputFocused = _useInputCommon.inputFocused,
120
119
  handleFocus = _useInputCommon.handleFocus,
121
120
  handleBlur = _useInputCommon.handleBlur,
@@ -248,8 +247,7 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
248
247
  required = _ref3.required,
249
248
  value = _ref3.value,
250
249
  _ref3$rows = _ref3.rows,
251
- rows = _ref3$rows === void 0 ? 3 : _ref3$rows,
252
- props = _objectWithoutProperties(_ref3, _excluded2);
250
+ rows = _ref3$rows === void 0 ? 3 : _ref3$rows;
253
251
  var wrapperRef = useRef(null);
254
252
  var textareaRef = useRef(null);
255
253
  var _useInputCommon2 = useInputCommon({
@@ -260,7 +258,7 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
260
258
  clearIconName: clearIconName,
261
259
  clearIcon: clearIcon,
262
260
  value: value
263
- }, textareaRef),
261
+ }),
264
262
  inputFocused = _useInputCommon2.inputFocused,
265
263
  handleFocus = _useInputCommon2.handleFocus,
266
264
  handleBlur = _useInputCommon2.handleBlur,
@@ -7,21 +7,19 @@ import { addStaticMethods, createNewInstance, Message } from "./MessageBase";
7
7
  // 存储 root 实例的 Map
8
8
  var rootMap = new WeakMap();
9
9
 
10
- // React 18+ 渲染器(兼容 React 16)
10
+ // React 18+ createRoot 渲染器
11
11
  var react18Renderer = {
12
12
  render: function () {
13
13
  var _render = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(element, container) {
14
- var _yield$import, createRoot, root, ReactDOM, tempDiv;
14
+ var _yield$import, createRoot, root;
15
15
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16
16
  while (1) switch (_context.prev = _context.next) {
17
17
  case 0:
18
- _context.prev = 0;
19
- _context.next = 3;
18
+ _context.next = 2;
20
19
  return import('react-dom/client');
21
- case 3:
20
+ case 2:
22
21
  _yield$import = _context.sent;
23
22
  createRoot = _yield$import.createRoot;
24
- // 检查容器是否已经有 root 实例
25
23
  root = rootMap.get(container);
26
24
  if (!root) {
27
25
  root = createRoot(container);
@@ -29,30 +27,11 @@ var react18Renderer = {
29
27
  }
30
28
  root.render(element);
31
29
  return _context.abrupt("return", root);
32
- case 11:
33
- _context.prev = 11;
34
- _context.t0 = _context["catch"](0);
35
- _context.prev = 13;
36
- _context.next = 16;
37
- return import('react-dom');
38
- case 16:
39
- ReactDOM = _context.sent;
40
- ReactDOM.render(element, container);
41
- return _context.abrupt("return", null);
42
- case 21:
43
- _context.prev = 21;
44
- _context.t1 = _context["catch"](13);
45
- // 如果连 react-dom 都不可用,直接渲染到容器
46
- container.innerHTML = '';
47
- tempDiv = document.createElement('div');
48
- tempDiv.appendChild(element);
49
- container.appendChild(tempDiv);
50
- return _context.abrupt("return", null);
51
- case 28:
30
+ case 8:
52
31
  case "end":
53
32
  return _context.stop();
54
33
  }
55
- }, _callee, null, [[0, 11], [13, 21]]);
34
+ }, _callee);
56
35
  }));
57
36
  function render(_x, _x2) {
58
37
  return _render.apply(this, arguments);
@@ -62,22 +41,10 @@ var react18Renderer = {
62
41
  unmount: function unmount(container) {
63
42
  var root = rootMap.get(container);
64
43
  if (root) {
65
- // React 18+ 方式
66
44
  root.unmount();
67
45
  rootMap.delete(container);
68
46
  } else {
69
- // React 16/17 方式
70
- try {
71
- // 使用动态 import 而不是 require
72
- import('react-dom').then(function (ReactDOM) {
73
- ReactDOM.unmountComponentAtNode(container);
74
- }).catch(function () {
75
- // 如果失败,清空容器
76
- container.innerHTML = '';
77
- });
78
- } catch (error) {
79
- // 忽略错误
80
- }
47
+ container.innerHTML = '';
81
48
  }
82
49
  }
83
50
  };
@@ -1,3 +1,2 @@
1
- export { default as MessageReact16 } from './MessageReact16';
2
1
  export { default as Message } from './MessageReact18';
3
2
  export type { MessageIntent, MessageProps, odnMessageState, } from './MessageBase';
@@ -1,7 +1,6 @@
1
- // 导出 React 16 版本
2
- export { default as MessageReact16 } from "./MessageReact16";
1
+ 'use client';
3
2
 
4
- // 导出默认的 Message 组件(React 18+)
3
+ // 默认 Message(React 18+ createRoot)
5
4
  export { default as Message } from "./MessageReact18";
6
5
 
7
6
  // 重新导出类型定义
@@ -51,7 +51,7 @@ var ModalOverlay = /*#__PURE__*/React.forwardRef(function ModalOverlay(_ref, ref
51
51
  _ref$lockScroll = _ref.lockScroll,
52
52
  lockScroll = _ref$lockScroll === void 0 ? true : _ref$lockScroll,
53
53
  props = _objectWithoutProperties(_ref, _excluded);
54
- var bodyTimer = useRef();
54
+ var bodyTimer = useRef(undefined);
55
55
  useEffect(function () {
56
56
  if (!lockScroll) {
57
57
  window.clearTimeout(bodyTimer.current);
@@ -56,7 +56,6 @@ var Pagination = function Pagination(_ref) {
56
56
  var isPrevDisabled = value === 1 && type === 'default';
57
57
  var isNextDisabled = value === pageNumber && type === 'default';
58
58
  var handleItemMouseEnter = function handleItemMouseEnter(e) {
59
- e.persist();
60
59
  clearTimeout(itemLeaveTimer.current);
61
60
  if (!hoverFillBgRef.current || !hoverFillRef.current) {
62
61
  return;
@@ -78,7 +77,6 @@ var Pagination = function Pagination(_ref) {
78
77
  }
79
78
  };
80
79
  var handleItemMouseLeave = function handleItemMouseLeave(e) {
81
- e.persist();
82
80
  clearTimeout(itemLeaveTimer.current);
83
81
  if (!hoverFillBgRef.current || !hoverFillRef.current) {
84
82
  return;
@@ -88,7 +88,7 @@ var getTransformOrigin = function getTransformOrigin(_ref) {
88
88
  return "".concat(xOrigin, " ").concat(yOrigin);
89
89
  };
90
90
  var PopBase = /*#__PURE__*/React.forwardRef(function (_ref2, refProp) {
91
- var _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$arrow4, _middlewareData$arrow5, _middlewareData$arrow6, _arrowOffset$x, _arrowOffset$y;
91
+ var _props, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$arrow4, _middlewareData$arrow5, _middlewareData$arrow6, _arrowOffset$x, _arrowOffset$y;
92
92
  var _ref2$autoPlacements = _ref2.autoPlacements,
93
93
  autoPlacements = _ref2$autoPlacements === void 0 ? defaultProps.autoPlacements : _ref2$autoPlacements,
94
94
  _ref2$arrowed = _ref2.arrowed,
@@ -239,7 +239,18 @@ var PopBase = /*#__PURE__*/React.forwardRef(function (_ref2, refProp) {
239
239
  var _useInteractions = useInteractions([hover, focus, click, dismiss]),
240
240
  getReferenceProps = _useInteractions.getReferenceProps,
241
241
  getFloatingProps = _useInteractions.getFloatingProps;
242
- var childrenRef = children === null || children === void 0 ? void 0 : children.ref;
242
+
243
+ /* React 19: `ref` is a regular prop; `element.ref` is always undefined.
244
+ * Spreading `...children.props` *after* our merged ref overwrites
245
+ * floating-ui's setReference and parks Tooltip/Popover at (0,0).
246
+ * Bare Tooltip/Popover demos often wrap children *without* an explicit
247
+ * ref, so props has nothing to overwrite and the bug stays hidden.
248
+ * Composer skill tooltip (`ref={skillTriggerRef}`) and `/` slash menu
249
+ * (`ref={triggerAnchorRef}`) both attach refs — those paths break.
250
+ * Gate props.ref reads on major≥19: on React ≤18 that access warns
251
+ * ("ref is not a prop") and the value is always undefined anyway. */
252
+ var reactMajor = getReactVersion();
253
+ var childrenRef = /*#__PURE__*/React.isValidElement(children) ? reactMajor >= 19 ? (_props = children.props) === null || _props === void 0 ? void 0 : _props.ref : children.ref : undefined;
243
254
  var referenceCallbackRef = React.useCallback(function (node) {
244
255
  if (node && getPopupContainer) {
245
256
  setPortalContainer(getPopupContainer(node));
@@ -248,9 +259,15 @@ var PopBase = /*#__PURE__*/React.forwardRef(function (_ref2, refProp) {
248
259
  var ref = useMergeRefs([context.refs.setReference, childrenRef, referenceCallbackRef]);
249
260
  var child = null;
250
261
  if ( /*#__PURE__*/React.isValidElement(children) && children.type !== React.Fragment) {
251
- child = /*#__PURE__*/React.cloneElement(children, getReferenceProps(_objectSpread(_objectSpread({
252
- ref: ref
253
- }, children.props), {}, {
262
+ var _children$props;
263
+ var rawProps = (_children$props = children.props) !== null && _children$props !== void 0 ? _children$props : {};
264
+ var childPropsWithoutRef = reactMajor >= 19 && 'ref' in rawProps ? Object.fromEntries(Object.entries(rawProps).filter(function (_ref4) {
265
+ var _ref5 = _slicedToArray(_ref4, 1),
266
+ key = _ref5[0];
267
+ return key !== 'ref';
268
+ })) : rawProps;
269
+ child = /*#__PURE__*/React.cloneElement(children, getReferenceProps(_objectSpread(_objectSpread({}, childPropsWithoutRef), {}, {
270
+ ref: ref,
254
271
  'data-odn-open': context.open ? true : undefined
255
272
  })));
256
273
  }
@@ -1,6 +1,6 @@
1
1
  import { Radio as RadioPrimitive } from '@base-ui/react/radio';
2
2
  import { RadioGroup } from '@base-ui/react/radio-group';
3
3
  import React from 'react';
4
- declare const RadioGroupPrimitive: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<RadioGroup.Props<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
5
- declare const RadioGroupItemPrimitive: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<RadioPrimitive.Root.Props<unknown>, "ref"> & React.RefAttributes<HTMLSpanElement>>>;
4
+ declare const RadioGroupPrimitive: React.NamedExoticComponent<Omit<RadioGroup.Props<unknown>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const RadioGroupItemPrimitive: React.NamedExoticComponent<Omit<RadioPrimitive.Root.Props<unknown>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
6
  export { RadioGroupItemPrimitive, RadioGroupPrimitive };
@@ -13,12 +13,12 @@ export default function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon,
13
13
  showSuffixIcon?: boolean;
14
14
  showArrow?: boolean;
15
15
  }): {
16
- clearIcon: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | ((props: any) => React.ReactNode);
16
+ clearIcon: string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | ((props: any) => React.ReactNode);
17
17
  suffixIcon: React.JSX.Element | ((props: {
18
18
  open: boolean;
19
19
  showSearch: boolean;
20
20
  }) => React.JSX.Element | null) | 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;
21
+ itemIcon: string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | ((props: any) => React.ReactNode) | null;
22
+ removeIcon: string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | ((props: any) => React.ReactNode) | null;
23
23
  };
24
24
  export {};
@@ -13,7 +13,7 @@ export interface StreamTextProps {
13
13
  /** 搜索跳转:在正文中精准高亮关键词(非整块铺底) */
14
14
  highlightQuery?: string;
15
15
  }
16
- export declare function StreamText({ content, isStreaming, simulate, speed, onComplete, typography: t, highlightQuery, }: StreamTextProps): React.JSX.Element;
16
+ export declare function StreamText({ content, isStreaming, simulate, speed, onComplete, highlightQuery, }: StreamTextProps): React.JSX.Element;
17
17
  export declare namespace StreamText {
18
18
  var displayName: string;
19
19
  }
@@ -7,6 +7,9 @@ import remarkGfm from 'remark-gfm';
7
7
  import CodeBlock from "../code-block";
8
8
  import { highlightQueryInNodes } from "./highlight-query-text";
9
9
  import "./style";
10
+
11
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- 排版覆盖的占位类型,当前无字段
12
+
10
13
  var FONT_SIZE = 14;
11
14
  var LINE_HEIGHT = 24;
12
15
  var PARAGRAPH_GAP = 8;
@@ -72,7 +75,6 @@ export function StreamText(_ref) {
72
75
  _ref$speed = _ref.speed,
73
76
  speed = _ref$speed === void 0 ? 18 : _ref$speed,
74
77
  onComplete = _ref.onComplete,
75
- t = _ref.typography,
76
78
  highlightQuery = _ref.highlightQuery;
77
79
  var _useState = useState(simulate && isStreaming ? '' : content),
78
80
  _useState2 = _slicedToArray(_useState, 2),
@@ -155,15 +157,12 @@ export function StreamText(_ref) {
155
157
  var child = Array.isArray(children) ? children[0] : children;
156
158
  var codeEl = child && _typeof(child) === 'object' && 'props' in child ? child : null;
157
159
  var className = (_codeEl$props$classNa = codeEl === null || codeEl === void 0 || (_codeEl$props = codeEl.props) === null || _codeEl$props === void 0 ? void 0 : _codeEl$props.className) !== null && _codeEl$props$classNa !== void 0 ? _codeEl$props$classNa : '';
158
- var hasLang = className.includes('language-');
159
- var lang = hasLang ? className.replace('language-', '') : undefined;
160
+ var lang = className.includes('language-') ? className.replace('language-', '') : undefined;
160
161
  var code = String((_codeEl$props$childre = codeEl === null || codeEl === void 0 || (_codeEl$props2 = codeEl.props) === null || _codeEl$props2 === void 0 ? void 0 : _codeEl$props2.children) !== null && _codeEl$props$childre !== void 0 ? _codeEl$props$childre : '').replace(/\n$/, '');
161
- return hasLang ? /*#__PURE__*/React.createElement(CodeBlock, {
162
+ return /*#__PURE__*/React.createElement(CodeBlock, {
162
163
  code: code,
163
164
  language: lang
164
- }) : /*#__PURE__*/React.createElement("pre", {
165
- "data-odn-stream-text-pre": true
166
- }, code);
165
+ });
167
166
  },
168
167
  code: function code(_ref3) {
169
168
  var className = _ref3.className,
@@ -24,22 +24,6 @@
24
24
  background: var(--odn-color-solid-black-1);
25
25
  }
26
26
 
27
- [data-odn-stream-text-pre] {
28
- margin: 16px 0;
29
- padding: 14px 16px;
30
- border-radius: 6px;
31
- background: var(--odn-color-solid-black-1);
32
- font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
33
- font-size: var(--st-code-font-size, 13px);
34
- line-height: 1.5;
35
- color: var(--st-code-color, var(--odn-color-black-10));
36
- overflow-x: auto;
37
- white-space: pre;
38
- }
39
- [data-odn-stream-text-pre]:last-child {
40
- margin-bottom: 0;
41
- }
42
-
43
27
  [data-odn-stream-text-list]:last-child {
44
28
  margin-bottom: 0;
45
29
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PopoverProps } from '../pop-base';
3
3
  export interface TooltipGroupProps extends Omit<PopoverProps, 'popup' | 'onMouseEnter' | 'onMouseLeave'>, React.HTMLAttributes<HTMLElement> {
4
- as?: keyof JSX.IntrinsicElements;
4
+ as?: keyof React.JSX.IntrinsicElements;
5
5
  }
6
6
  declare const Tooltip: React.FC<PopoverProps> & {
7
7
  Group: typeof TooltipGroup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-design-next",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "description": "One Design Next from TAD@tencent.com",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -109,8 +109,8 @@
109
109
  "@types/fs-extra": "^11.0.4",
110
110
  "@types/node": "^20.5.1",
111
111
  "@types/pngjs": "^6.0.5",
112
- "@types/react": "^18.0.0",
113
- "@types/react-dom": "^18.0.0",
112
+ "@types/react": "^19.0.0",
113
+ "@types/react-dom": "^19.0.0",
114
114
  "@umijs/lint": "latest",
115
115
  "@umijs/plugins": "latest",
116
116
  "@vitejs/plugin-react": "^6.0.2",
@@ -138,9 +138,9 @@
138
138
  "prettier-plugin-organize-imports": "^4.3.0",
139
139
  "prettier-plugin-packagejson": "^3.0.2",
140
140
  "prism-react-renderer": "^2.4.1",
141
- "react": "^18.0.0",
141
+ "react": "^19.0.0",
142
142
  "react-d3-cloud": "^1.0.6",
143
- "react-dom": "^18.0.0",
143
+ "react-dom": "^19.0.0",
144
144
  "react-use-measure": "latest",
145
145
  "sass": "latest",
146
146
  "stylelint": "^16.23.1",
@@ -1,2 +0,0 @@
1
- declare const MessageComponent: any;
2
- export default MessageComponent;
@@ -1,84 +0,0 @@
1
- 'use client';
2
-
3
- import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
4
- import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
5
- import { addStaticMethods, createNewInstance, Message } from "./MessageBase";
6
-
7
- // React 16/17 渲染器
8
- var react16Renderer = {
9
- render: function () {
10
- var _render = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(element, container) {
11
- var ReactDOM;
12
- return _regeneratorRuntime().wrap(function _callee$(_context) {
13
- while (1) switch (_context.prev = _context.next) {
14
- case 0:
15
- _context.prev = 0;
16
- // 尝试使用 require
17
- ReactDOM = require('react-dom');
18
- _context.next = 9;
19
- break;
20
- case 4:
21
- _context.prev = 4;
22
- _context.t0 = _context["catch"](0);
23
- _context.next = 8;
24
- return import('react-dom');
25
- case 8:
26
- ReactDOM = _context.sent;
27
- case 9:
28
- ReactDOM.render(element, container);
29
- case 10:
30
- case "end":
31
- return _context.stop();
32
- }
33
- }, _callee, null, [[0, 4]]);
34
- }));
35
- function render(_x, _x2) {
36
- return _render.apply(this, arguments);
37
- }
38
- return render;
39
- }(),
40
- unmount: function () {
41
- var _unmount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(container) {
42
- var ReactDOM;
43
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
44
- while (1) switch (_context2.prev = _context2.next) {
45
- case 0:
46
- _context2.prev = 0;
47
- // 尝试使用 require
48
- ReactDOM = require('react-dom');
49
- _context2.next = 9;
50
- break;
51
- case 4:
52
- _context2.prev = 4;
53
- _context2.t0 = _context2["catch"](0);
54
- _context2.next = 8;
55
- return import('react-dom');
56
- case 8:
57
- ReactDOM = _context2.sent;
58
- case 9:
59
- ReactDOM.unmountComponentAtNode(container);
60
- case 10:
61
- case "end":
62
- return _context2.stop();
63
- }
64
- }, _callee2, null, [[0, 4]]);
65
- }));
66
- function unmount(_x3) {
67
- return _unmount.apply(this, arguments);
68
- }
69
- return unmount;
70
- }()
71
- };
72
-
73
- // 创建 newInstance 函数
74
- var newInstance = createNewInstance(react16Renderer);
75
-
76
- // 创建 Message 组件
77
- var MessageComponent = Message;
78
-
79
- // 添加 newInstance 方法
80
- MessageComponent.newInstance = newInstance;
81
-
82
- // 添加静态方法
83
- addStaticMethods(MessageComponent);
84
- export default MessageComponent;