@expcat/tigercat-react 2.1.4 → 2.3.0

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 (48) hide show
  1. package/dist/chunk-2MV3F7WP.mjs +56 -0
  2. package/dist/{chunk-SUHSOVWP.mjs → chunk-6T5AEQJV.mjs} +1 -1
  3. package/dist/{chunk-R2VBVZIH.mjs → chunk-75SQCTLC.mjs} +4 -4
  4. package/dist/{chunk-73OFTRG5.mjs → chunk-AHQR57Z4.mjs} +1 -1
  5. package/dist/{chunk-2STETY2J.mjs → chunk-CCFKRKGJ.mjs} +12 -6
  6. package/dist/{chunk-UNT7WJ2M.mjs → chunk-DNRLMEKE.mjs} +10 -3
  7. package/dist/chunk-F4XF5CGQ.mjs +72 -0
  8. package/dist/chunk-FZQUUTWN.mjs +145 -0
  9. package/dist/{chunk-NPXT436C.mjs → chunk-MMDVFCCL.mjs} +1 -1
  10. package/dist/chunk-NCVZCG4W.mjs +138 -0
  11. package/dist/{chunk-25BKSXTX.mjs → chunk-NMRCBGFP.mjs} +1 -1
  12. package/dist/chunk-REHHFHZ3.mjs +67 -0
  13. package/dist/{chunk-XI6KQAHW.mjs → chunk-RJ2FJXHT.mjs} +5 -6
  14. package/dist/{chunk-WN6ZHQTI.mjs → chunk-SIBNSFVR.mjs} +10 -4
  15. package/dist/{chunk-3WP4PGHF.mjs → chunk-TFHQODGK.mjs} +7 -1
  16. package/dist/{chunk-IR45LOEZ.mjs → chunk-UGKTSPS4.mjs} +38 -4
  17. package/dist/components/ActivityFeed.mjs +2 -2
  18. package/dist/components/Anchor.mjs +1 -1
  19. package/dist/components/BackTop.mjs +1 -1
  20. package/dist/components/Badge.d.mts +1 -1
  21. package/dist/components/Calendar.mjs +1 -1
  22. package/dist/components/Code.mjs +1 -1
  23. package/dist/components/CommentThread.mjs +2 -2
  24. package/dist/components/DataTableWithToolbar.mjs +1 -1
  25. package/dist/components/DatePicker.mjs +2 -2
  26. package/dist/components/Drag.d.mts +17 -0
  27. package/dist/components/Drag.mjs +9 -0
  28. package/dist/components/Footer.mjs +1 -1
  29. package/dist/components/FullscreenButton.d.mts +8 -0
  30. package/dist/components/FullscreenButton.mjs +10 -0
  31. package/dist/components/Menu.mjs +1 -1
  32. package/dist/components/NotificationCenter.mjs +2 -2
  33. package/dist/components/Popconfirm.d.mts +1 -1
  34. package/dist/components/Popover.d.mts +1 -1
  35. package/dist/components/ScrollSpy.mjs +1 -1
  36. package/dist/components/Segmented.d.mts +1 -1
  37. package/dist/components/Space.d.mts +1 -1
  38. package/dist/components/Text.d.mts +6 -2
  39. package/dist/components/Text.mjs +2 -1
  40. package/dist/components/Tooltip.d.mts +1 -1
  41. package/dist/components/WorkflowTimeline.d.mts +20 -0
  42. package/dist/components/WorkflowTimeline.mjs +15 -0
  43. package/dist/hooks/useFullscreen.d.mts +13 -0
  44. package/dist/hooks/useFullscreen.mjs +6 -0
  45. package/dist/index.d.mts +6 -2
  46. package/dist/index.mjs +64 -0
  47. package/package.json +27 -2
  48. package/dist/chunk-VDBLI5Y3.mjs +0 -33
@@ -54,7 +54,13 @@ var BackTop = forwardRef(function BackTop2({
54
54
  [config.locale, locale]
55
55
  );
56
56
  const labelSet = getBackTopLabels(mergedLocale, labels);
57
- const resolved = resolveScrollRoot(target);
57
+ const hostRef = useRef(null);
58
+ const setHostRef = (node) => {
59
+ hostRef.current = node;
60
+ if (typeof ref === "function") ref(node);
61
+ else if (ref) ref.current = node;
62
+ };
63
+ const resolved = resolveScrollRoot(target, { from: hostRef.current });
58
64
  const resolvedKey = resolved.isWindow ? "window" : resolved.target;
59
65
  const visibilityHeightRef = useRef(visibilityHeight);
60
66
  visibilityHeightRef.current = visibilityHeight;
@@ -62,7 +68,7 @@ var BackTop = forwardRef(function BackTop2({
62
68
  void 0
63
69
  );
64
70
  useEffect(() => {
65
- const root = resolveScrollRoot(target);
71
+ const root = resolveScrollRoot(target, { from: hostRef.current });
66
72
  const eventTarget = getScrollRootEventTarget(root);
67
73
  const scrollNode = root.target;
68
74
  if (!eventTarget || !scrollNode) return void 0;
@@ -85,7 +91,7 @@ var BackTop = forwardRef(function BackTop2({
85
91
  }, [visibilityHeight]);
86
92
  const handleClick = useCallback(
87
93
  (event) => {
88
- const root = resolveScrollRoot(target);
94
+ const root = resolveScrollRoot(target, { from: hostRef.current });
89
95
  if (root.target) scrollToTop(root.target, duration);
90
96
  onClick?.(event);
91
97
  },
@@ -108,7 +114,7 @@ var BackTop = forwardRef(function BackTop2({
108
114
  "button",
109
115
  {
110
116
  ...props,
111
- ref,
117
+ ref: setHostRef,
112
118
  type: "button",
113
119
  className: buttonClasses,
114
120
  style: buttonStyle,
@@ -13,12 +13,15 @@ import {
13
13
  getCodeBlockCopyButtonClasses,
14
14
  getCodeLabels,
15
15
  mergeTigerLocale,
16
+ renderCodeHighlightHtml,
16
17
  resolveLocaleText
17
18
  } from "@expcat/tigercat-core";
18
19
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
19
20
  var Code = forwardRef(function Code2({
20
21
  code,
21
22
  copyable = true,
23
+ language,
24
+ highlighter,
22
25
  copyLabel,
23
26
  copiedLabel,
24
27
  copyFailedLabel,
@@ -64,7 +67,10 @@ var Code = forwardRef(function Code2({
64
67
  const buttonLabel = copyStatus === "failed" ? resolvedCopyFailedLabel : copyStatus === "copied" ? resolvedCopiedLabel : resolvedCopyLabel;
65
68
  const liveText = copyStatus === "idle" ? "" : buttonLabel;
66
69
  return /* @__PURE__ */ jsxs("div", { ref, className: containerClasses, ...props, children: [
67
- /* @__PURE__ */ jsx("pre", { className: codeBlockPreClasses, children: /* @__PURE__ */ jsx("code", { className: "block", children: code }) }),
70
+ /* @__PURE__ */ jsx("pre", { className: codeBlockPreClasses, children: (() => {
71
+ const highlighted = renderCodeHighlightHtml(code, language, highlighter);
72
+ return highlighted == null ? /* @__PURE__ */ jsx("code", { className: "block", children: code }) : /* @__PURE__ */ jsx("code", { className: "block", dangerouslySetInnerHTML: { __html: highlighted } });
73
+ })() }),
68
74
  copyable && /* @__PURE__ */ jsxs(Fragment, { children: [
69
75
  /* @__PURE__ */ jsx("button", { type: "button", className: copyButtonClasses, onClick: handleCopy, children: buttonLabel }),
70
76
  /* @__PURE__ */ jsx("span", { className: codeBlockCopyStatusLiveClasses, "aria-live": "polite", children: liveText })
@@ -9,6 +9,10 @@ import {
9
9
  import { forwardRef, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
10
10
  import { classNames } from "@expcat/tigercat-core";
11
11
  import {
12
+ appendCalendarEventCountLabel,
13
+ buildCalendarDateCellExtra,
14
+ calendarDateCellDotClasses,
15
+ calendarDateCellExtraClasses,
12
16
  calendarGridClasses,
13
17
  calendarHeaderClasses,
14
18
  calendarNavButtonClasses,
@@ -19,6 +23,7 @@ import {
19
23
  followCalendarValue,
20
24
  formatCalendarDayLabel,
21
25
  formatCalendarDayNumber,
26
+ getCalendarEventDotStyle,
22
27
  formatMonthYear,
23
28
  getCalendarContainerClasses,
24
29
  getCalendarDayClasses,
@@ -61,6 +66,8 @@ function splitCalendarDomProps(props) {
61
66
  now: _now,
62
67
  rangeValue: _rangeValue,
63
68
  locale: _locale,
69
+ events: _events,
70
+ dateCellRender: _dateCellRender,
64
71
  onChange: _onChange,
65
72
  onPanelChange: _onPanelChange,
66
73
  className: _className,
@@ -80,6 +87,8 @@ var Calendar = forwardRef(function Calendar2(props, ref) {
80
87
  now: nowProp,
81
88
  rangeValue,
82
89
  locale,
90
+ events,
91
+ dateCellRender,
83
92
  onChange,
84
93
  onPanelChange,
85
94
  className
@@ -332,13 +341,27 @@ var Calendar = forwardRef(function Calendar2(props, ref) {
332
341
  );
333
342
  const isTodayDate = today ? isSameDay(date, today) : false;
334
343
  const isDisabled = isCalendarDateDisabled(date, disabledDate);
335
- return /* @__PURE__ */ jsx(
344
+ const extra = buildCalendarDateCellExtra({
345
+ date,
346
+ events,
347
+ inCurrentMonth: isCurrentMonth,
348
+ today: isTodayDate,
349
+ selected: isSelected,
350
+ disabled: isDisabled
351
+ });
352
+ const customCell = dateCellRender?.(date, extra);
353
+ const hasExtra = Boolean(customCell) || extra.events.length > 0;
354
+ return /* @__PURE__ */ jsxs(
336
355
  "button",
337
356
  {
338
357
  type: "button",
339
358
  role: "gridcell",
340
359
  "data-date": iso,
341
- "aria-label": formatCalendarDayLabel(date, localeCode),
360
+ "aria-label": appendCalendarEventCountLabel(
361
+ formatCalendarDayLabel(date, localeCode),
362
+ extra.events.length,
363
+ labels.eventCountText
364
+ ),
342
365
  "aria-selected": isSelected || isRangeStart || isRangeEnd,
343
366
  "aria-current": isTodayDate ? "date" : void 0,
344
367
  disabled: isDisabled,
@@ -351,11 +374,22 @@ var Calendar = forwardRef(function Calendar2(props, ref) {
351
374
  isActive: activeIso === iso,
352
375
  isInRange,
353
376
  isRangeStart,
354
- isRangeEnd
377
+ isRangeEnd,
378
+ hasExtra
355
379
  }),
356
380
  onClick: () => selectDay(date),
357
381
  onFocus: () => setActiveIso(iso),
358
- children: formatCalendarDayNumber(date, localeCode)
382
+ children: [
383
+ formatCalendarDayNumber(date, localeCode),
384
+ customCell ?? (extra.events.length > 0 ? /* @__PURE__ */ jsx("span", { className: calendarDateCellExtraClasses, "aria-hidden": "true", children: extra.events.map((event, index) => /* @__PURE__ */ jsx(
385
+ "span",
386
+ {
387
+ className: calendarDateCellDotClasses,
388
+ style: getCalendarEventDotStyle(event.color)
389
+ },
390
+ event.key ?? `${extra.iso}-${index}`
391
+ )) }) : null)
392
+ ]
359
393
  },
360
394
  iso
361
395
  );
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ActivityFeed,
3
3
  ActivityFeed_default
4
- } from "../chunk-SUHSOVWP.mjs";
4
+ } from "../chunk-6T5AEQJV.mjs";
5
5
  import "../chunk-4DFN6RZ4.mjs";
6
6
  import "../chunk-WQMOFDAY.mjs";
7
7
  import "../chunk-VW6RNQK4.mjs";
8
8
  import "../chunk-FVA5VKN2.mjs";
9
- import "../chunk-VDBLI5Y3.mjs";
9
+ import "../chunk-FZQUUTWN.mjs";
10
10
  import "../chunk-WCIUNNIN.mjs";
11
11
  import "../chunk-3KBFOO2E.mjs";
12
12
  import "../chunk-IELUUOM4.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  AnchorLink,
4
4
  Anchor_default,
5
5
  useAnchorContext
6
- } from "../chunk-XI6KQAHW.mjs";
6
+ } from "../chunk-RJ2FJXHT.mjs";
7
7
  import "../chunk-5D6BOIZB.mjs";
8
8
  import "../chunk-RUIFGSVN.mjs";
9
9
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BackTop,
3
3
  BackTop_default
4
- } from "../chunk-WN6ZHQTI.mjs";
4
+ } from "../chunk-SIBNSFVR.mjs";
5
5
  import "../chunk-RUIFGSVN.mjs";
6
6
  export {
7
7
  BackTop,
@@ -4,7 +4,7 @@ import { BadgeProps as BadgeProps$1 } from '@expcat/tigercat-core';
4
4
  type BadgeProps = BadgeProps$1 & Omit<React__default.HTMLAttributes<HTMLSpanElement>, 'children' | 'content'> & {
5
5
  children?: React__default.ReactNode;
6
6
  };
7
- declare const Badge: React__default.ForwardRefExoticComponent<BadgeProps$1 & Omit<React__default.HTMLAttributes<HTMLSpanElement>, "children" | "content"> & {
7
+ declare const Badge: React__default.ForwardRefExoticComponent<BadgeProps$1 & Omit<React__default.HTMLAttributes<HTMLSpanElement>, "content" | "children"> & {
8
8
  children?: React__default.ReactNode;
9
9
  } & React__default.RefAttributes<HTMLSpanElement>>;
10
10
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Calendar,
3
3
  Calendar_default
4
- } from "../chunk-IR45LOEZ.mjs";
4
+ } from "../chunk-UGKTSPS4.mjs";
5
5
  import "../chunk-UJTAHHQT.mjs";
6
6
  import "../chunk-RUIFGSVN.mjs";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Code,
3
3
  Code_default
4
- } from "../chunk-3WP4PGHF.mjs";
4
+ } from "../chunk-TFHQODGK.mjs";
5
5
  import "../chunk-RUIFGSVN.mjs";
6
6
  export {
7
7
  Code,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  CommentThread,
3
3
  CommentThread_default
4
- } from "../chunk-25BKSXTX.mjs";
4
+ } from "../chunk-NMRCBGFP.mjs";
5
5
  import "../chunk-ZG6WST55.mjs";
6
6
  import "../chunk-FVA5VKN2.mjs";
7
- import "../chunk-VDBLI5Y3.mjs";
7
+ import "../chunk-FZQUUTWN.mjs";
8
8
  import "../chunk-3KBFOO2E.mjs";
9
9
  import "../chunk-IELUUOM4.mjs";
10
10
  import "../chunk-WFLXJOFU.mjs";
@@ -4,9 +4,9 @@ import {
4
4
  } from "../chunk-IXMQQ6PV.mjs";
5
5
  import "../chunk-FTLA6FRU.mjs";
6
6
  import "../chunk-A2PQJEII.mjs";
7
+ import "../chunk-CQGDJU2H.mjs";
7
8
  import "../chunk-4KZETZUH.mjs";
8
9
  import "../chunk-MADQ6KHD.mjs";
9
- import "../chunk-CQGDJU2H.mjs";
10
10
  import "../chunk-XAYOEQGB.mjs";
11
11
  import "../chunk-S37KEELR.mjs";
12
12
  import "../chunk-WWZZRB7H.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DatePicker
3
- } from "../chunk-73OFTRG5.mjs";
4
- import "../chunk-IR45LOEZ.mjs";
3
+ } from "../chunk-AHQR57Z4.mjs";
4
+ import "../chunk-UGKTSPS4.mjs";
5
5
  import "../chunk-2AVQQGL2.mjs";
6
6
  import "../chunk-F6T3OLTQ.mjs";
7
7
  import "../chunk-UJTAHHQT.mjs";
@@ -0,0 +1,17 @@
1
+ import React__default from 'react';
2
+ import { DragItem, DragProps as DragProps$1 } from '@expcat/tigercat-core';
3
+
4
+ interface DragRenderContext {
5
+ dragItemProps: Record<string, unknown>;
6
+ isDragging: boolean;
7
+ }
8
+ interface DragProps<T extends DragItem = DragItem> extends DragProps$1<T> {
9
+ children?: (item: T, context: DragRenderContext) => React__default.ReactNode;
10
+ renderItem?: (item: T, context: DragRenderContext) => React__default.ReactNode;
11
+ }
12
+ declare function Drag<T extends DragItem = DragItem>({ items, onItemsChange, config, containerId, onDragStart, onDragOver, onDrop, onDragEnd, className, children, renderItem }: DragProps<T>): React__default.JSX.Element;
13
+ declare namespace Drag {
14
+ var displayName: string;
15
+ }
16
+
17
+ export { Drag, type DragProps, type DragRenderContext, Drag as default };
@@ -0,0 +1,9 @@
1
+ import {
2
+ Drag,
3
+ Drag_default
4
+ } from "../chunk-F4XF5CGQ.mjs";
5
+ import "../chunk-REJVXLW5.mjs";
6
+ export {
7
+ Drag,
8
+ Drag_default as default
9
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Footer
3
- } from "../chunk-R2VBVZIH.mjs";
3
+ } from "../chunk-75SQCTLC.mjs";
4
4
  export {
5
5
  Footer
6
6
  };
@@ -0,0 +1,8 @@
1
+ import React__default from 'react';
2
+ import { FullscreenProps } from '@expcat/tigercat-core';
3
+
4
+ interface FullscreenButtonProps extends FullscreenProps, Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'onError'> {
5
+ }
6
+ declare const FullscreenButton: React__default.ForwardRefExoticComponent<FullscreenButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
7
+
8
+ export { FullscreenButton, type FullscreenButtonProps, FullscreenButton as default };
@@ -0,0 +1,10 @@
1
+ import {
2
+ FullscreenButton,
3
+ FullscreenButton_default
4
+ } from "../chunk-REHHFHZ3.mjs";
5
+ import "../chunk-2MV3F7WP.mjs";
6
+ import "../chunk-RUIFGSVN.mjs";
7
+ export {
8
+ FullscreenButton,
9
+ FullscreenButton_default as default
10
+ };
@@ -4,7 +4,7 @@ import {
4
4
  MenuItemGroup,
5
5
  SubMenu,
6
6
  useMenuContext
7
- } from "../chunk-UNT7WJ2M.mjs";
7
+ } from "../chunk-DNRLMEKE.mjs";
8
8
  import "../chunk-5J7EDMS7.mjs";
9
9
  import "../chunk-WPRXOO6N.mjs";
10
10
  import "../chunk-UJTAHHQT.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NotificationCenter,
3
3
  NotificationCenter_default
4
- } from "../chunk-NPXT436C.mjs";
4
+ } from "../chunk-MMDVFCCL.mjs";
5
5
  import "../chunk-4BJCH6FI.mjs";
6
6
  import "../chunk-YDIEWFBM.mjs";
7
7
  import "../chunk-REJVXLW5.mjs";
@@ -9,7 +9,7 @@ import "../chunk-XAYOEQGB.mjs";
9
9
  import "../chunk-NTCVAVYZ.mjs";
10
10
  import "../chunk-RLUBTLOT.mjs";
11
11
  import "../chunk-VW6RNQK4.mjs";
12
- import "../chunk-VDBLI5Y3.mjs";
12
+ import "../chunk-FZQUUTWN.mjs";
13
13
  import "../chunk-WCIUNNIN.mjs";
14
14
  import "../chunk-WFLXJOFU.mjs";
15
15
  import "../chunk-G5NPND2T.mjs";
@@ -16,7 +16,7 @@ type PopconfirmProps = Omit<PopconfirmProps$1, 'style' | 'placement' | 'onConfir
16
16
  className?: string;
17
17
  style?: React__default.CSSProperties;
18
18
  };
19
- declare const Popconfirm: React__default.ForwardRefExoticComponent<Omit<PopconfirmProps$1, "style" | "placement" | "onCancel" | "onConfirm"> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children" | "className" | "style" | "title"> & {
19
+ declare const Popconfirm: React__default.ForwardRefExoticComponent<Omit<PopconfirmProps$1, "style" | "placement" | "onCancel" | "onConfirm"> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "className" | "style" | "title" | "children"> & {
20
20
  children?: React__default.ReactNode | ((state: {
21
21
  open: boolean;
22
22
  }) => React__default.ReactNode);
@@ -14,7 +14,7 @@ type PopoverProps = Omit<PopoverProps$1, 'style' | 'placement'> & Omit<React__de
14
14
  asChild?: boolean;
15
15
  onOpenChange?: (open: boolean) => void;
16
16
  };
17
- declare const Popover: React__default.ForwardRefExoticComponent<Omit<PopoverProps$1, "style" | "placement"> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children" | "className" | "style" | "title"> & {
17
+ declare const Popover: React__default.ForwardRefExoticComponent<Omit<PopoverProps$1, "style" | "placement"> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "className" | "style" | "title" | "children"> & {
18
18
  children?: React__default.ReactNode | ((state: {
19
19
  open: boolean;
20
20
  }) => React__default.ReactNode);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ScrollSpy,
3
3
  ScrollSpy_default
4
- } from "../chunk-2STETY2J.mjs";
4
+ } from "../chunk-CCFKRKGJ.mjs";
5
5
  import "../chunk-UJTAHHQT.mjs";
6
6
  import "../chunk-RUIFGSVN.mjs";
7
7
  export {
@@ -6,6 +6,6 @@ interface SegmentedProps extends SegmentedProps$1 {
6
6
  defaultValue?: string | number;
7
7
  onChange?: (value: string | number) => void;
8
8
  }
9
- declare const Segmented: React__default.ForwardRefExoticComponent<SegmentedProps & Omit<React__default.HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & React__default.RefAttributes<HTMLDivElement>>;
9
+ declare const Segmented: React__default.ForwardRefExoticComponent<SegmentedProps & Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & React__default.RefAttributes<HTMLDivElement>>;
10
10
 
11
11
  export { Segmented, type SegmentedProps };
@@ -6,7 +6,7 @@ type SpaceProps = SpaceProps$1 & Omit<React__default.HTMLAttributes<HTMLDivEleme
6
6
  className?: string;
7
7
  style?: React__default.CSSProperties;
8
8
  };
9
- declare const Space: React__default.ForwardRefExoticComponent<SpaceProps$1 & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children" | "className" | "style"> & {
9
+ declare const Space: React__default.ForwardRefExoticComponent<SpaceProps$1 & Omit<React__default.HTMLAttributes<HTMLDivElement>, "className" | "style" | "children"> & {
10
10
  children?: React__default.ReactNode;
11
11
  className?: string;
12
12
  style?: React__default.CSSProperties;
@@ -1,11 +1,15 @@
1
1
  import React__default from 'react';
2
- import { TextProps as TextProps$1 } from '@expcat/tigercat-core';
2
+ import { TextProps as TextProps$1, TigerLocale } from '@expcat/tigercat-core';
3
3
 
4
4
  type TextProps = TextProps$1 & Omit<React__default.HTMLAttributes<HTMLElement>, 'color' | 'children'> & Pick<React__default.LabelHTMLAttributes<HTMLLabelElement>, 'htmlFor'> & {
5
5
  children?: React__default.ReactNode;
6
+ locale?: Partial<TigerLocale>;
7
+ onCopy?: (text: string) => void;
6
8
  };
7
- declare const Text: React__default.ForwardRefExoticComponent<TextProps$1 & Omit<React__default.HTMLAttributes<HTMLElement>, "children" | "color"> & Pick<React__default.LabelHTMLAttributes<HTMLLabelElement>, "htmlFor"> & {
9
+ declare const Text: React__default.ForwardRefExoticComponent<TextProps$1 & Omit<React__default.HTMLAttributes<HTMLElement>, "color" | "children"> & Pick<React__default.LabelHTMLAttributes<HTMLLabelElement>, "htmlFor"> & {
8
10
  children?: React__default.ReactNode;
11
+ locale?: Partial<TigerLocale>;
12
+ onCopy?: (text: string) => void;
9
13
  } & React__default.RefAttributes<HTMLElement>>;
10
14
 
11
15
  export { Text, type TextProps };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  Text
3
- } from "../chunk-VDBLI5Y3.mjs";
3
+ } from "../chunk-FZQUUTWN.mjs";
4
+ import "../chunk-RUIFGSVN.mjs";
4
5
  export {
5
6
  Text
6
7
  };
@@ -11,7 +11,7 @@ type TooltipProps = Omit<TooltipProps$1, 'content' | 'placement'> & Omit<React__
11
11
  asChild?: boolean;
12
12
  onOpenChange?: (open: boolean) => void;
13
13
  };
14
- declare const Tooltip: React__default.ForwardRefExoticComponent<Omit<TooltipProps$1, "content" | "placement"> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children" | "className" | "style" | "title" | "content"> & {
14
+ declare const Tooltip: React__default.ForwardRefExoticComponent<Omit<TooltipProps$1, "content" | "placement"> & Omit<React__default.HTMLAttributes<HTMLDivElement>, "className" | "style" | "title" | "content" | "children"> & {
15
15
  children?: React__default.ReactNode;
16
16
  content?: React__default.ReactNode;
17
17
  className?: string;
@@ -0,0 +1,20 @@
1
+ import React__default from 'react';
2
+ import { WorkflowActionBarProps as WorkflowActionBarProps$1, WorkflowActionBarItem, WorkflowTimelineProps as WorkflowTimelineProps$1, TimelineItem } from '@expcat/tigercat-core';
3
+
4
+ interface WorkflowActionBarProps extends WorkflowActionBarProps$1, Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
5
+ onAction?: (item: WorkflowActionBarItem) => void;
6
+ }
7
+ interface WorkflowTimelineProps extends Omit<WorkflowTimelineProps$1, 'pendingDot'>, Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
8
+ pendingDot?: React__default.ReactNode;
9
+ pendingContent?: React__default.ReactNode;
10
+ onAction?: (item: WorkflowActionBarItem) => void;
11
+ renderItem?: (item: TimelineItem, index: number) => React__default.ReactNode;
12
+ renderDot?: (item: TimelineItem, options: {
13
+ pending: boolean;
14
+ }) => React__default.ReactNode;
15
+ renderActions?: (actions: WorkflowActionBarItem[]) => React__default.ReactNode;
16
+ }
17
+ declare const WorkflowActionBar: React__default.FC<WorkflowActionBarProps>;
18
+ declare const WorkflowTimeline: React__default.FC<WorkflowTimelineProps>;
19
+
20
+ export { WorkflowActionBar, type WorkflowActionBarProps, WorkflowTimeline, type WorkflowTimelineProps, WorkflowTimeline as default };
@@ -0,0 +1,15 @@
1
+ import {
2
+ WorkflowActionBar,
3
+ WorkflowTimeline,
4
+ WorkflowTimeline_default
5
+ } from "../chunk-NCVZCG4W.mjs";
6
+ import "../chunk-4DFN6RZ4.mjs";
7
+ import "../chunk-FVA5VKN2.mjs";
8
+ import "../chunk-WFLXJOFU.mjs";
9
+ import "../chunk-G5NPND2T.mjs";
10
+ import "../chunk-RUIFGSVN.mjs";
11
+ export {
12
+ WorkflowActionBar,
13
+ WorkflowTimeline,
14
+ WorkflowTimeline_default as default
15
+ };
@@ -0,0 +1,13 @@
1
+ import { UseFullscreenOptions } from '@expcat/tigercat-core';
2
+ export { UseFullscreenOptions } from '@expcat/tigercat-core';
3
+
4
+ interface UseFullscreenReturn {
5
+ isFullscreen: boolean;
6
+ supported: boolean;
7
+ enter: () => Promise<void>;
8
+ exit: () => Promise<void>;
9
+ toggle: () => Promise<void>;
10
+ }
11
+ declare function useFullscreen(options?: UseFullscreenOptions): UseFullscreenReturn;
12
+
13
+ export { type UseFullscreenReturn, useFullscreen };
@@ -0,0 +1,6 @@
1
+ import {
2
+ useFullscreen
3
+ } from "../chunk-2MV3F7WP.mjs";
4
+ export {
5
+ useFullscreen
6
+ };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from '@expcat/tigercat-core';
2
- export { AutoCompleteOption, CascaderModelValue, CascaderOption, CascaderValue, ChatWindowHandle, ColorFormat, FormHandle, FormSubmitEvent, LoadingBarOptions, LoadingBarProps, MasonryInstance, MessageOptions, MessageProps, NotificationOptions, NotificationProps, PrintLayoutInstance, ScrollAreaInstance, SelectOption, SelectOptions, TigerConfig, TreeSelectValue, UseDragOptions, VirtualListHandle, VirtualTableHandle, WizardStep } from '@expcat/tigercat-core';
2
+ export { AutoCompleteOption, CascaderModelValue, CascaderOption, CascaderValue, ChatWindowHandle, ColorFormat, FormHandle, FormSubmitEvent, LoadingBarOptions, LoadingBarProps, MasonryInstance, MessageOptions, MessageProps, NotificationOptions, NotificationProps, PrintLayoutInstance, ScrollAreaInstance, SelectOption, SelectOptions, TigerConfig, TreeSelectValue, UseDragOptions, UseFullscreenOptions, VirtualListHandle, VirtualTableHandle, WizardStep } from '@expcat/tigercat-core';
3
3
  export { ConfigProvider, ConfigProviderProps, useTigerConfig } from './components/ConfigProvider.mjs';
4
4
  export { Button, ButtonProps } from './components/Button.mjs';
5
5
  export { ButtonGroup, ButtonGroupProps } from './components/ButtonGroup.mjs';
@@ -63,6 +63,7 @@ export { ImageAnnotation, ImageAnnotationProps } from './components/ImageAnnotat
63
63
  export { List, ListProps } from './components/List.mjs';
64
64
  export { Descriptions, DescriptionsProps } from './components/Descriptions.mjs';
65
65
  export { Timeline, TimelineProps } from './components/Timeline.mjs';
66
+ export { WorkflowActionBar, WorkflowActionBarProps, WorkflowTimeline, WorkflowTimelineProps } from './components/WorkflowTimeline.mjs';
66
67
  export { Countdown, CountdownProps } from './components/Countdown.mjs';
67
68
  export { Tree, TreeProps } from './components/Tree.mjs';
68
69
  export { Skeleton, SkeletonProps } from './components/Skeleton.mjs';
@@ -142,6 +143,9 @@ export { Affix, AffixProps } from './components/Affix.mjs';
142
143
  export { UseChartInteractionOptions, UseChartInteractionReturn, useChartInteraction } from './hooks/useChartInteraction.mjs';
143
144
  export { ResponsiveChartLayout, useResponsiveChartSize } from './hooks/useResponsiveChartSize.mjs';
144
145
  export { UseDragReturn, useDrag } from './hooks/useDrag.mjs';
146
+ export { UseFullscreenReturn, useFullscreen } from './hooks/useFullscreen.mjs';
147
+ export { FullscreenButton as Fullscreen, FullscreenButton, FullscreenButtonProps } from './components/FullscreenButton.mjs';
148
+ export { Drag, DragProps, DragRenderContext } from './components/Drag.mjs';
145
149
  export { SetControlledState, UseControlledStateOptions, useControlledState } from './hooks/useControlledState.mjs';
146
150
  export { Splitter, SplitterProps, SplitterResizeEvent } from './components/Splitter.mjs';
147
151
  export { Resizable, ResizableProps } from './components/Resizable.mjs';
@@ -169,6 +173,6 @@ import 'react';
169
173
  * React components for Tigercat UI library
170
174
  */
171
175
 
172
- declare const version = "2.1.4";
176
+ declare const version = "2.3.0";
173
177
 
174
178
  export { version };