@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
package/dist/index.mjs CHANGED
@@ -136,6 +136,8 @@ export {
136
136
  EMPTY_TREE_KEYS,
137
137
  EMPTY_VIRTUAL_TABLE_COLUMNS,
138
138
  EMPTY_VIRTUAL_TABLE_ROWS,
139
+ EMPTY_WORKFLOW_ACTION_BAR_ITEMS,
140
+ EMPTY_WORKFLOW_TIMELINE_STEPS,
139
141
  EN_US_DATEPICKER_LOCALE,
140
142
  FORM_VALIDATION_PRESETS,
141
143
  FormValidationCancelledError,
@@ -265,6 +267,11 @@ export {
265
267
  VIEW_TRANSITION_CSS,
266
268
  VIRTUAL_TABLE_HEADER_ROW_HEIGHT,
267
269
  WATERMARK_DEFAULT_INK,
270
+ WORKFLOW_STEP_STATUSES,
271
+ WORKFLOW_STEP_STATUS_COLORS,
272
+ WORKFLOW_STEP_STATUS_LABELS,
273
+ WORKFLOW_STEP_STATUS_TAG_VARIANTS,
274
+ WORKFLOW_TERMINAL_STEP_STATUSES,
268
275
  activateScrollSpyClick,
269
276
  activeOpacityClasses,
270
277
  activePressClasses,
@@ -323,6 +330,7 @@ export {
323
330
  anchorNestedListClasses,
324
331
  animationDelayClasses,
325
332
  announceToScreenReader,
333
+ appendCalendarEventCountLabel,
326
334
  appendDefaultTaskBoardCard,
327
335
  appendDefaultTaskBoardColumn,
328
336
  appendSignaturePoint,
@@ -417,6 +425,7 @@ export {
417
425
  buildAffixPlaceholderStyle,
418
426
  buildAffixRootMargin,
419
427
  buildAffixStyle,
428
+ buildCalendarDateCellExtra,
420
429
  buildChartLegendItems,
421
430
  buildChartSeriesKeys,
422
431
  buildChatMessageStatusInfo,
@@ -455,6 +464,8 @@ export {
455
464
  calculateTransform,
456
465
  calculateVirtualColumnRange,
457
466
  calculateVirtualRange,
467
+ calendarDateCellDotClasses,
468
+ calendarDateCellExtraClasses,
458
469
  calendarGridClasses,
459
470
  calendarHeaderClasses,
460
471
  calendarNavButtonClasses,
@@ -594,6 +605,7 @@ export {
594
605
  clearChartAxisTickCache,
595
606
  clearFieldErrors,
596
607
  clearPieArcCache,
608
+ clearRegisteredIcons,
597
609
  clearSelectValue,
598
610
  clearSignatureStrokes,
599
611
  clearTextareaAutoResize,
@@ -738,6 +750,7 @@ export {
738
750
  countDecimalPlaces,
739
751
  countLines,
740
752
  countMaskTokens,
753
+ countWorkflowStepsByStatus,
741
754
  countdownBaseClasses,
742
755
  countdownPrefixClasses,
743
756
  countdownSuffixClasses,
@@ -954,6 +967,7 @@ export {
954
967
  evaluateFormConditions,
955
968
  exclamationCircleIcon,
956
969
  exclusiveRangeToInclusive,
970
+ exitElementFullscreen,
957
971
  expandChevronIcon16PathD,
958
972
  exportChartPng,
959
973
  exportSignatureDataUrl,
@@ -995,6 +1009,7 @@ export {
995
1009
  filterHiddenColumns,
996
1010
  filterHiddenFiles,
997
1011
  filterMentionOptions,
1012
+ filterMenuByPermission,
998
1013
  filterMenuItems,
999
1014
  filterOptions,
1000
1015
  filterTableData,
@@ -1011,6 +1026,7 @@ export {
1011
1026
  findHotkeyMatch,
1012
1027
  findLastEnabledIndex,
1013
1028
  findMarkdownHotkeyMatch,
1029
+ findNearestOverflowAncestor,
1014
1030
  findNearestPointIndex,
1015
1031
  findNearestSeriesPoint,
1016
1032
  findNextEnabledIndex,
@@ -1059,6 +1075,7 @@ export {
1059
1075
  formatBytes,
1060
1076
  formatCalendarDayLabel,
1061
1077
  formatCalendarDayNumber,
1078
+ formatCalendarEventCountLabel,
1062
1079
  formatChartTemplate,
1063
1080
  formatChatTime,
1064
1081
  formatColorPickerSelectPreset,
@@ -1110,6 +1127,7 @@ export {
1110
1127
  formatTimePickerDisplay,
1111
1128
  formatTreeSelectNodeLabel,
1112
1129
  freezeTableColumnWidths,
1130
+ fullscreenButtonClasses,
1113
1131
  fullscreenExitIcon,
1114
1132
  fullscreenIcon,
1115
1133
  funnelSegmentTransitionClasses,
@@ -1199,6 +1217,8 @@ export {
1199
1217
  getCalendarDayClasses,
1200
1218
  getCalendarDayKeyAction,
1201
1219
  getCalendarDays,
1220
+ getCalendarEventDotStyle,
1221
+ getCalendarEventsForDate,
1202
1222
  getCalendarLabels,
1203
1223
  getCalendarMonthClasses,
1204
1224
  getCalendarMonthDaysCacheSize,
@@ -1332,6 +1352,7 @@ export {
1332
1352
  getCropperHandleStyle,
1333
1353
  getCurrentActiveTourStep,
1334
1354
  getCurrentTime,
1355
+ getCurrentWorkflowStep,
1335
1356
  getCyclicIndex,
1336
1357
  getDataExportCellValue,
1337
1358
  getDataExportFormatLabel,
@@ -1434,6 +1455,8 @@ export {
1434
1455
  getFormWizardHeaderClasses,
1435
1456
  getFormWizardLabels,
1436
1457
  getFormWizardWrapperClasses,
1458
+ getFullscreenElement,
1459
+ getFullscreenLabels,
1437
1460
  getFunnelGradientPrefix,
1438
1461
  getGanttDependencyPath,
1439
1462
  getGanttTaskAriaLabel,
@@ -1522,6 +1545,7 @@ export {
1522
1545
  getKbdVariantClasses,
1523
1546
  getLastEnabledFileIndex,
1524
1547
  getLayoutContentClasses,
1548
+ getLayoutFooterClasses,
1525
1549
  getLayoutHeaderClasses,
1526
1550
  getLayoutRootClasses,
1527
1551
  getLayoutSidebarClasses,
@@ -2195,6 +2219,7 @@ export {
2195
2219
  isDividerHorizontal,
2196
2220
  isDragEnabled,
2197
2221
  isDrawerSwipeCloseGesture,
2222
+ isElementFullscreen,
2198
2223
  isEnterKey,
2199
2224
  isEscapeKey,
2200
2225
  isEventOutside,
@@ -2203,6 +2228,7 @@ export {
2203
2228
  isFocusInsideNavigationMenu,
2204
2229
  isFormItemGroupControl,
2205
2230
  isFormValidationCancelled,
2231
+ isFullscreenSupported,
2206
2232
  isHTMLElement,
2207
2233
  isHourOptionDisabled,
2208
2234
  isHttpResultStatus,
@@ -2279,6 +2305,7 @@ export {
2279
2305
  isTabPaneType,
2280
2306
  isTableCellEditable,
2281
2307
  isTablet,
2308
+ isTextCopyable,
2282
2309
  isTimeInRange,
2283
2310
  isTimePickerDesktopLayout,
2284
2311
  isTimePickerRangeComplete,
@@ -2297,6 +2324,11 @@ export {
2297
2324
  isValidUrl,
2298
2325
  isVirtualTableCellControlTarget,
2299
2326
  isWipExceeded,
2327
+ isWorkflowStepActive,
2328
+ isWorkflowStepPending,
2329
+ isWorkflowStepTerminal,
2330
+ isWorkflowTimelineStepStatus,
2331
+ isWorkflowTimelineTerminal,
2300
2332
  kanbanAddColumnClasses,
2301
2333
  kanbanCardCountClasses,
2302
2334
  kanbanFilterHighlightClasses,
@@ -2313,6 +2345,7 @@ export {
2313
2345
  layoutBarRects,
2314
2346
  layoutContentClasses,
2315
2347
  layoutFooterClasses,
2348
+ layoutFooterCompactClasses,
2316
2349
  layoutFunnel,
2317
2350
  layoutGantt,
2318
2351
  layoutGauge,
@@ -2439,6 +2472,7 @@ export {
2439
2472
  menuKeyId,
2440
2473
  menuLightThemeClasses,
2441
2474
  menuModeClasses,
2475
+ menuSchemaToMenuItems,
2442
2476
  menuSearchEmptyClasses,
2443
2477
  menuSearchFieldClasses,
2444
2478
  menuSearchInputClasses,
@@ -2546,6 +2580,7 @@ export {
2546
2580
  normalizeSvgAttrs,
2547
2581
  normalizeTabKey,
2548
2582
  normalizeTreeSelectValue,
2583
+ normalizeWorkflowTimelineSteps,
2549
2584
  notificationActionButtonClasses,
2550
2585
  notificationActionButtonTypeClasses,
2551
2586
  notificationActionsClasses,
@@ -2752,13 +2787,17 @@ export {
2752
2787
  redoFormHistory,
2753
2788
  registerBuiltInThemes,
2754
2789
  registerEscapeDismiss,
2790
+ registerIcon,
2791
+ registerIcons,
2755
2792
  registerImageGroupItem,
2793
+ registeredIconNames,
2756
2794
  remapCropRect,
2757
2795
  rememberCascaderLabel,
2758
2796
  rememberSelectOptions,
2759
2797
  rememberTreeSelectLabel,
2760
2798
  removeCssVarsCached,
2761
2799
  removeTagAt,
2800
+ renderCodeHighlightHtml,
2762
2801
  renderMarkdownInline,
2763
2802
  renderMarkdownToHtml,
2764
2803
  renderTokenHtml,
@@ -2773,6 +2812,7 @@ export {
2773
2812
  reorderTableRowsByKey,
2774
2813
  replaceAnchorHash,
2775
2814
  replaceKeys,
2815
+ requestElementFullscreen,
2776
2816
  resetAreaGradientCounter,
2777
2817
  resetAriaIdCounter,
2778
2818
  resetBarGradientCounter,
@@ -2863,6 +2903,7 @@ export {
2863
2903
  resolveFormConditionState,
2864
2904
  resolveFormFieldConditionState,
2865
2905
  resolveFormLabelAlign,
2906
+ resolveFullscreenTarget,
2866
2907
  resolveGutter,
2867
2908
  resolveHeatmapRenderMode,
2868
2909
  resolveHighlightCaseSensitive,
@@ -2923,6 +2964,7 @@ export {
2923
2964
  resolveMenuCollapsed,
2924
2965
  resolveMenuIconKind,
2925
2966
  resolveMenuMode,
2967
+ resolveMenuSearchQuery,
2926
2968
  resolveMenuTabStopKey,
2927
2969
  resolveMessageDuration,
2928
2970
  resolveMotionDuration,
@@ -2983,6 +3025,8 @@ export {
2983
3025
  resolveTaskBoardView,
2984
3026
  resolveTextAlign,
2985
3027
  resolveTextColor,
3028
+ resolveTextCopyContent,
3029
+ resolveTextCopyableOptions,
2986
3030
  resolveTextSize,
2987
3031
  resolveTextTag,
2988
3032
  resolveTextWeight,
@@ -3007,6 +3051,8 @@ export {
3007
3051
  resolveVirtualTableWidth,
3008
3052
  resolveVisibleResizeHandles,
3009
3053
  resolveWatermarkFont,
3054
+ resolveWorkflowActionButtonProps,
3055
+ resolveWorkflowStepStatus,
3010
3056
  restoreFocus,
3011
3057
  resultBaseClasses,
3012
3058
  resultExtraClasses,
@@ -3139,8 +3185,10 @@ export {
3139
3185
  shouldShowAutoCompleteClear,
3140
3186
  shouldShowBackTop,
3141
3187
  shouldShowCascaderClear,
3188
+ shouldShowMenuSearch,
3142
3189
  shouldShowSelectClear,
3143
3190
  shouldShowTreeSelectClear,
3191
+ shouldShowWorkflowActions,
3144
3192
  shouldSkipNavigationMenuOpenDelay,
3145
3193
  shouldSkipTableLocalProcessing,
3146
3194
  shouldTrackChartPointer,
@@ -3195,6 +3243,7 @@ export {
3195
3243
  sortDescendingIcon,
3196
3244
  sortFileItems,
3197
3245
  sortNotificationGroups,
3246
+ sortWorkflowTimelineSteps,
3198
3247
  sparklesIcon,
3199
3248
  splitButtonDropdownClasses,
3200
3249
  splitButtonPrimaryBlockClasses,
@@ -3263,6 +3312,7 @@ export {
3263
3312
  submenuExpandIconPopupClasses,
3264
3313
  submenuHeightTransitionClasses,
3265
3314
  submenuTitleClasses,
3315
+ subscribeFullscreenChange,
3266
3316
  subscribeTableCardViewport,
3267
3317
  successCircleSolidIcon20PathD,
3268
3318
  sunIcon,
@@ -3347,6 +3397,10 @@ export {
3347
3397
  terminalIcon,
3348
3398
  textAlignClasses,
3349
3399
  textColorClasses,
3400
+ textCopyableBodyClasses,
3401
+ textCopyableButtonClasses,
3402
+ textCopyableLiveClasses,
3403
+ textCopyableRootClasses,
3350
3404
  textDecorationClasses,
3351
3405
  textSizeClasses,
3352
3406
  textWeightClasses,
@@ -3468,6 +3522,7 @@ export {
3468
3522
  uniqueMenuKeys,
3469
3523
  uniqueTreeKeys,
3470
3524
  unlockIcon,
3525
+ unregisterIcon,
3471
3526
  unregisterImageGroupItem,
3472
3527
  updateCronExpressionField,
3473
3528
  updateDragOffset,
@@ -3531,6 +3586,11 @@ export {
3531
3586
  watermarkWrapperClasses,
3532
3587
  wifiIcon,
3533
3588
  withCropFile,
3589
+ workflowStepHighlight,
3590
+ workflowStepStatusColor,
3591
+ workflowStepStatusLabel,
3592
+ workflowStepStatusTagVariant,
3593
+ workflowStepsToTimelineItems,
3534
3594
  writeCommentLikeOverlay,
3535
3595
  yieldDataExportFrame,
3536
3596
  zoomInIcon,
@@ -3601,6 +3661,7 @@ export { ImageAnnotation } from './components/ImageAnnotation.mjs';
3601
3661
  export { List } from './components/List.mjs';
3602
3662
  export { Descriptions } from './components/Descriptions.mjs';
3603
3663
  export { Timeline } from './components/Timeline.mjs';
3664
+ export { WorkflowTimeline, WorkflowActionBar } from './components/WorkflowTimeline.mjs';
3604
3665
  export { Countdown } from './components/Countdown.mjs';
3605
3666
  export { Tree } from './components/Tree.mjs';
3606
3667
  export { Skeleton } from './components/Skeleton.mjs';
@@ -3845,6 +3906,9 @@ export { Affix } from './components/Affix.mjs';
3845
3906
  export { useChartInteraction } from './hooks/useChartInteraction.mjs';
3846
3907
  export { useResponsiveChartSize } from './hooks/useResponsiveChartSize.mjs';
3847
3908
  export { useDrag } from './hooks/useDrag.mjs';
3909
+ export { useFullscreen } from './hooks/useFullscreen.mjs';
3910
+ export { FullscreenButton, FullscreenButton as Fullscreen } from './components/FullscreenButton.mjs';
3911
+ export { Drag } from './components/Drag.mjs';
3848
3912
  export { useControlledState } from './hooks/useControlledState.mjs';
3849
3913
  export { Splitter } from './components/Splitter.mjs';
3850
3914
  export { Resizable } from './components/Resizable.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expcat/tigercat-react",
3
- "version": "2.1.4",
3
+ "version": "2.3.0",
4
4
  "description": "React components for Tigercat UI library",
5
5
  "license": "MIT",
6
6
  "author": "Yizhe Wang",
@@ -299,6 +299,11 @@
299
299
  "import": "./dist/components/DonutChart.mjs",
300
300
  "default": "./dist/components/DonutChart.mjs"
301
301
  },
302
+ "./Drag": {
303
+ "types": "./dist/components/Drag.d.mts",
304
+ "import": "./dist/components/Drag.mjs",
305
+ "default": "./dist/components/Drag.mjs"
306
+ },
302
307
  "./Drawer": {
303
308
  "types": "./dist/components/Drawer.d.mts",
304
309
  "import": "./dist/components/Drawer.mjs",
@@ -359,6 +364,11 @@
359
364
  "import": "./dist/components/FormWizard.mjs",
360
365
  "default": "./dist/components/FormWizard.mjs"
361
366
  },
367
+ "./FullscreenButton": {
368
+ "types": "./dist/components/FullscreenButton.d.mts",
369
+ "import": "./dist/components/FullscreenButton.mjs",
370
+ "default": "./dist/components/FullscreenButton.mjs"
371
+ },
362
372
  "./FunnelChart": {
363
373
  "types": "./dist/components/FunnelChart.d.mts",
364
374
  "import": "./dist/components/FunnelChart.mjs",
@@ -894,11 +904,26 @@
894
904
  "import": "./dist/components/Watermark.mjs",
895
905
  "default": "./dist/components/Watermark.mjs"
896
906
  },
907
+ "./WorkflowActionBar": {
908
+ "types": "./dist/components/WorkflowTimeline.d.mts",
909
+ "import": "./dist/components/WorkflowTimeline.mjs",
910
+ "default": "./dist/components/WorkflowTimeline.mjs"
911
+ },
912
+ "./WorkflowTimeline": {
913
+ "types": "./dist/components/WorkflowTimeline.d.mts",
914
+ "import": "./dist/components/WorkflowTimeline.mjs",
915
+ "default": "./dist/components/WorkflowTimeline.mjs"
916
+ },
897
917
  "./useDrag": {
898
918
  "types": "./dist/hooks/useDrag.d.mts",
899
919
  "import": "./dist/hooks/useDrag.mjs",
900
920
  "default": "./dist/hooks/useDrag.mjs"
901
921
  },
922
+ "./useFullscreen": {
923
+ "types": "./dist/hooks/useFullscreen.d.mts",
924
+ "import": "./dist/hooks/useFullscreen.mjs",
925
+ "default": "./dist/hooks/useFullscreen.mjs"
926
+ },
902
927
  "./useControlledState": {
903
928
  "types": "./dist/hooks/useControlledState.d.mts",
904
929
  "import": "./dist/hooks/useControlledState.mjs",
@@ -912,7 +937,7 @@
912
937
  "access": "public"
913
938
  },
914
939
  "dependencies": {
915
- "@expcat/tigercat-core": "2.1.4"
940
+ "@expcat/tigercat-core": "2.3.0"
916
941
  },
917
942
  "devDependencies": {
918
943
  "@types/node": "^26.1.1",
@@ -1,33 +0,0 @@
1
- // src/components/Text.tsx
2
- import React, { forwardRef } from "react";
3
- import {
4
- classNames,
5
- getTextClasses,
6
- resolveTextTag
7
- } from "@expcat/tigercat-core";
8
- var Text = forwardRef(function Text2({
9
- tag = "p",
10
- size,
11
- weight,
12
- align,
13
- color,
14
- truncate,
15
- italic,
16
- underline,
17
- lineThrough,
18
- children,
19
- className,
20
- ...props
21
- }, ref) {
22
- const resolvedTag = resolveTextTag(tag);
23
- const textClasses = classNames(
24
- getTextClasses({ size, weight, align, color, truncate, italic, underline, lineThrough }),
25
- className
26
- );
27
- return React.createElement(resolvedTag, { ...props, ref, className: textClasses }, children);
28
- });
29
- Text.displayName = "Text";
30
-
31
- export {
32
- Text
33
- };