@app-studio/web 0.9.25 → 0.9.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web.esm.js CHANGED
@@ -9,6 +9,10 @@ import { View, Horizontal, Vertical, Element, Text as Text$1, Center, useTheme,
9
9
  import 'core-js/modules/es.symbol.description.js';
10
10
  import 'core-js/modules/es.parse-float.js';
11
11
  import 'core-js/modules/es.string.trim-end.js';
12
+ import 'core-js/modules/es.parse-int.js';
13
+ import 'core-js/modules/es.regexp.exec.js';
14
+ import 'core-js/modules/es.string.pad-start.js';
15
+ import 'core-js/modules/es.string.replace.js';
12
16
  import 'core-js/modules/es.array-buffer.constructor.js';
13
17
  import 'core-js/modules/es.array-buffer.slice.js';
14
18
  import 'core-js/modules/es.typed-array.uint8-array.js';
@@ -19,7 +23,6 @@ import 'core-js/modules/es.typed-array.to-locale-string.js';
19
23
  import 'core-js/modules/web.url.js';
20
24
  import 'core-js/modules/web.url.to-json.js';
21
25
  import 'core-js/modules/web.url-search-params.js';
22
- import 'core-js/modules/es.parse-int.js';
23
26
  import { Link as Link$1 } from 'react-router-dom';
24
27
  import 'core-js/modules/es.string.ends-with.js';
25
28
  import contrast from 'contrast';
@@ -30,10 +33,9 @@ import 'core-js/modules/es.string.starts-with.js';
30
33
  import format from 'date-fns/format';
31
34
  import 'core-js/modules/es.string.trim.js';
32
35
  import 'core-js/modules/es.regexp.constructor.js';
33
- import 'core-js/modules/es.regexp.exec.js';
34
36
  import { useFormikContext, getIn } from 'formik';
35
- import 'core-js/modules/es.string.replace.js';
36
37
  import { create } from 'zustand';
38
+ import 'core-js/modules/es.promise.finally.js';
37
39
  import 'core-js/modules/es.string.match.js';
38
40
  import 'core-js/modules/es.string.search.js';
39
41
  import 'core-js/modules/es.array.flat-map.js';
@@ -527,8 +529,31 @@ var FontWeights = {
527
529
  black: '900'
528
530
  };
529
531
 
532
+ var getTextColorHex = backgroundColor => {
533
+ // Simple luminance calculation to determine text color contrast
534
+ var color = backgroundColor.replace('#', '');
535
+ var r = parseInt(color.substring(0, 2), 16);
536
+ var g = parseInt(color.substring(2, 4), 16);
537
+ var b = parseInt(color.substring(4, 6), 16);
538
+ var luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
539
+ return luminance > 0.4 ? 'black' : 'white';
540
+ };
541
+ var getTextColor = backgroundColor => {
542
+ // Use complementary color for better contrast and return as hex
543
+ var color = backgroundColor.replace('#', '');
544
+ var r = parseInt(color.substring(0, 2), 16);
545
+ var g = parseInt(color.substring(2, 4), 16);
546
+ var b = parseInt(color.substring(4, 6), 16);
547
+ // Calculate the complementary color
548
+ var complementR = (255 - r).toString(16).padStart(2, '0');
549
+ var complementG = (255 - g).toString(16).padStart(2, '0');
550
+ var complementB = (255 - b).toString(16).padStart(2, '0');
551
+ // Return the color in hex format
552
+ return getTextColorHex("#" + complementR + complementG + complementB);
553
+ };
554
+
530
555
  var _excluded$2 = ["text", "maxLines", "views"],
531
- _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "views"];
556
+ _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "backgroundColor", "color", "views"];
532
557
  /**
533
558
  * Renders text content with support for subscript and superscript
534
559
  */
@@ -643,6 +668,8 @@ var TextView = _ref3 => {
643
668
  isStriked = false,
644
669
  weight = 'normal',
645
670
  size = 'md',
671
+ backgroundColor,
672
+ color,
646
673
  views
647
674
  } = _ref3,
648
675
  props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
@@ -656,6 +683,7 @@ var TextView = _ref3 => {
656
683
  var fontSize = FontSizes[size];
657
684
  var lineHeight = LineHeights[size];
658
685
  var fontWeight = FontWeights[weight];
686
+ var computedColor = color != null ? color : backgroundColor ? getTextColor(backgroundColor) : undefined;
659
687
  return /*#__PURE__*/React.createElement(Element
660
688
  // Apply typography styles according to design guidelines
661
689
  , Object.assign({
@@ -665,7 +693,8 @@ var TextView = _ref3 => {
665
693
  fontStyle: isItalic ? 'italic' : 'normal',
666
694
  fontWeight: fontWeight,
667
695
  letterSpacing: "-0.01em",
668
- textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
696
+ textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none',
697
+ color: computedColor
669
698
  }, noLineBreak, headingStyles, props, views == null ? void 0 : views.container), maxLines && typeof children === 'string' ? (/*#__PURE__*/React.createElement(TruncateText, {
670
699
  text: children,
671
700
  maxLines: maxLines
@@ -4627,11 +4656,15 @@ var ButtonView = _ref => {
4627
4656
  return 50;
4628
4657
  })();
4629
4658
  var path = generateOffsetPath(numericWidth, numericHeight, numericBorderRadius);
4659
+ // Determine background color from props or use mainTone
4660
+ var containerBg = mainTone;
4661
+ // Calculate text color with proper contrast
4662
+ var borderMovingTextColor = tone === 'light' ? '#000000' : '#FFFFFF';
4630
4663
  return /*#__PURE__*/React.createElement(View, Object.assign({
4631
4664
  width: numericWidth,
4632
4665
  height: numericHeight,
4633
4666
  position: "relative",
4634
- backgroundColor: "black",
4667
+ backgroundColor: containerBg,
4635
4668
  overflow: "hidden",
4636
4669
  borderRadius: ButtonShapes[shape],
4637
4670
  cursor: isDisabled ? 'default' : 'pointer',
@@ -4642,7 +4675,8 @@ var ButtonView = _ref => {
4642
4675
  style: {
4643
4676
  position: 'absolute',
4644
4677
  top: 0,
4645
- left: 0
4678
+ left: 0,
4679
+ zIndex: 1
4646
4680
  }
4647
4681
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
4648
4682
  id: "circleGradient",
@@ -4676,21 +4710,23 @@ var ButtonView = _ref => {
4676
4710
  path: path
4677
4711
  }))), /*#__PURE__*/React.createElement(View, {
4678
4712
  position: "absolute",
4679
- backgroundColor: "black",
4713
+ backgroundColor: containerBg,
4680
4714
  borderRadius: Math.max(0, numericBorderRadius - 1),
4681
4715
  top: borderWidth,
4682
4716
  bottom: borderWidth,
4683
4717
  left: borderWidth,
4684
- right: borderWidth
4718
+ right: borderWidth,
4719
+ zIndex: 2
4685
4720
  }), /*#__PURE__*/React.createElement(View, {
4721
+ position: "relative",
4686
4722
  width: "100%",
4687
4723
  height: "100%",
4688
- backgroundColor: "rgba(15, 23, 42, 0.2)",
4689
4724
  display: "flex",
4690
4725
  alignItems: "center",
4691
4726
  justifyContent: "center",
4692
- color: "white",
4727
+ color: borderMovingTextColor,
4693
4728
  fontSize: 14,
4729
+ zIndex: 3,
4694
4730
  style: {
4695
4731
  cursor: 'pointer'
4696
4732
  }
@@ -18856,13 +18892,7 @@ var DropdownMenuContent = _ref3 => {
18856
18892
  item: item,
18857
18893
  views: views
18858
18894
  });
18859
- }), process.env.NODE_ENV === 'development' && (/*#__PURE__*/React.createElement("div", {
18860
- style: {
18861
- fontSize: '10px',
18862
- opacity: 0.7,
18863
- padding: '4px'
18864
- }
18865
- }, "Placement: ", optimalPosition.placement, relation && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), "Space: ", relation.space.vertical, "-", relation.space.horizontal)))));
18895
+ }));
18866
18896
  };
18867
18897
  // DropdownMenu Item component
18868
18898
  var DropdownMenuItem = _ref4 => {
@@ -22885,6 +22915,147 @@ var SeparatorComponent = props => {
22885
22915
  var Separator = SeparatorComponent;
22886
22916
  var Divider = SeparatorComponent;
22887
22917
 
22918
+ var _excluded$18 = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
22919
+ var ICON_SIZE_MAP = {
22920
+ xs: 12,
22921
+ sm: 14,
22922
+ md: 16,
22923
+ lg: 18,
22924
+ xl: 20
22925
+ };
22926
+ var ShareButtonView = _ref => {
22927
+ var _ref2;
22928
+ var {
22929
+ isSupported,
22930
+ isSharing,
22931
+ onShare,
22932
+ label,
22933
+ children,
22934
+ icon,
22935
+ size,
22936
+ isDisabled,
22937
+ isLoading,
22938
+ iconPosition,
22939
+ disableWhenUnsupported = true
22940
+ } = _ref,
22941
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$18);
22942
+ var resolvedSize = size != null ? size : 'md';
22943
+ var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React.createElement(ShareIcon, {
22944
+ widthHeight: ICON_SIZE_MAP[resolvedSize],
22945
+ strokeWidth: 1.5,
22946
+ filled: false
22947
+ }));
22948
+ var shouldDisable = Boolean(isDisabled) || !isSupported && disableWhenUnsupported;
22949
+ var shouldShowLoader = Boolean(isLoading) || isSharing;
22950
+ return /*#__PURE__*/React.createElement(Button, Object.assign({}, rest, {
22951
+ size: resolvedSize,
22952
+ icon: resolvedIcon,
22953
+ iconPosition: iconPosition != null ? iconPosition : 'left',
22954
+ isDisabled: shouldDisable,
22955
+ isLoading: shouldShowLoader,
22956
+ onClick: onShare
22957
+ }), (_ref2 = children != null ? children : label) != null ? _ref2 : 'Share');
22958
+ };
22959
+
22960
+ var getNavigator = () => typeof navigator === 'undefined' ? undefined : navigator;
22961
+ var canShareData = (nav, data) => {
22962
+ if (!nav || typeof nav.share !== 'function') {
22963
+ return false;
22964
+ }
22965
+ if (typeof nav.canShare === 'function') {
22966
+ try {
22967
+ return nav.canShare(data);
22968
+ } catch (_unused) {
22969
+ return false;
22970
+ }
22971
+ }
22972
+ return true;
22973
+ };
22974
+ var getErrorName = error => {
22975
+ if (typeof error === 'object' && error !== null && 'name' in error) {
22976
+ return String(error.name);
22977
+ }
22978
+ return undefined;
22979
+ };
22980
+ var useShareButton = props => {
22981
+ var {
22982
+ shareData,
22983
+ onClick,
22984
+ onUnsupported,
22985
+ onShareStart,
22986
+ onShareSuccess,
22987
+ onShareCancel,
22988
+ onShareError
22989
+ } = props;
22990
+ var [isSharing, setIsSharing] = React.useState(false);
22991
+ var isSupported = React.useMemo(() => canShareData(getNavigator(), shareData), [shareData]);
22992
+ var handleShare = React.useCallback(function () {
22993
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
22994
+ args[_key] = arguments[_key];
22995
+ }
22996
+ onClick == null || onClick(...args);
22997
+ var nav = getNavigator();
22998
+ if (!nav || typeof nav.share !== 'function') {
22999
+ onUnsupported == null || onUnsupported();
23000
+ return;
23001
+ }
23002
+ if (isSharing) {
23003
+ return;
23004
+ }
23005
+ if (typeof nav.canShare === 'function') {
23006
+ try {
23007
+ if (!nav.canShare(shareData)) {
23008
+ onUnsupported == null || onUnsupported();
23009
+ return;
23010
+ }
23011
+ } catch (error) {
23012
+ onShareError == null || onShareError(error);
23013
+ return;
23014
+ }
23015
+ }
23016
+ setIsSharing(true);
23017
+ onShareStart == null || onShareStart();
23018
+ try {
23019
+ void nav.share(shareData).then(() => {
23020
+ onShareSuccess == null || onShareSuccess();
23021
+ }).catch(error => {
23022
+ var errorName = getErrorName(error);
23023
+ if (errorName === 'AbortError') {
23024
+ onShareCancel == null || onShareCancel();
23025
+ return;
23026
+ }
23027
+ onShareError == null || onShareError(error);
23028
+ }).finally(() => {
23029
+ setIsSharing(false);
23030
+ });
23031
+ } catch (error) {
23032
+ setIsSharing(false);
23033
+ onShareError == null || onShareError(error);
23034
+ }
23035
+ }, [isSharing, onClick, onShareCancel, onShareError, onShareStart, onShareSuccess, onUnsupported, shareData]);
23036
+ return {
23037
+ isSupported,
23038
+ isSharing,
23039
+ handleShare
23040
+ };
23041
+ };
23042
+
23043
+ var _excluded$19 = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
23044
+ var ShareButtonComponent = props => {
23045
+ var {
23046
+ isSupported,
23047
+ isSharing,
23048
+ handleShare
23049
+ } = useShareButton(props);
23050
+ var viewProps = _objectWithoutPropertiesLoose(props, _excluded$19);
23051
+ return /*#__PURE__*/React.createElement(ShareButtonView, Object.assign({}, viewProps, {
23052
+ isSupported: isSupported,
23053
+ isSharing: isSharing,
23054
+ onShare: handleShare
23055
+ }));
23056
+ };
23057
+ var ShareButton = ShareButtonComponent;
23058
+
22888
23059
  var getThemes$2 = themeMode => {
22889
23060
  return {
22890
23061
  default: {
@@ -22930,7 +23101,7 @@ var getThemes$2 = themeMode => {
22930
23101
  };
22931
23102
  };
22932
23103
 
22933
- var _excluded$18 = ["label", "status", "views", "themeMode"];
23104
+ var _excluded$1a = ["label", "status", "views", "themeMode"];
22934
23105
  var StatusIndicatorView = _ref => {
22935
23106
  var {
22936
23107
  label,
@@ -22938,7 +23109,7 @@ var StatusIndicatorView = _ref => {
22938
23109
  views,
22939
23110
  themeMode: elementMode
22940
23111
  } = _ref,
22941
- props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
23112
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
22942
23113
  var {
22943
23114
  themeMode
22944
23115
  } = useTheme();
@@ -23131,7 +23302,7 @@ var SidebarTransitions = {
23131
23302
  bounce: 'width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55)'
23132
23303
  };
23133
23304
 
23134
- var _excluded$19 = ["children", "showToggleButton", "views"],
23305
+ var _excluded$1b = ["children", "showToggleButton", "views"],
23135
23306
  _excluded2$g = ["children", "views"],
23136
23307
  _excluded3$a = ["children", "views"],
23137
23308
  _excluded4$9 = ["children", "position", "size", "variant", "fixed", "hasBackdrop", "expandedWidth", "collapsedWidth", "breakpointBehavior", "elevation", "transitionPreset", "ariaLabel", "isExpanded", "isMobile", "collapse", "views", "themeMode"];
@@ -23164,7 +23335,7 @@ var SidebarHeader = _ref2 => {
23164
23335
  showToggleButton = true,
23165
23336
  views
23166
23337
  } = _ref2,
23167
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$19);
23338
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
23168
23339
  var {
23169
23340
  isExpanded,
23170
23341
  toggleExpanded,
@@ -23319,7 +23490,7 @@ var SidebarView = _ref5 => {
23319
23490
  }))));
23320
23491
  };
23321
23492
 
23322
- var _excluded$1a = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23493
+ var _excluded$1c = ["children", "position", "size", "variant", "defaultExpanded", "expanded", "onExpandedChange", "fixed", "hasBackdrop", "showToggleButton", "expandedWidth", "collapsedWidth", "breakpoint", "breakpointBehavior", "views"];
23323
23494
  /**
23324
23495
  * Sidebar component for creating collapsible, themeable and customizable sidebars.
23325
23496
  */
@@ -23341,7 +23512,7 @@ var SidebarComponent = _ref => {
23341
23512
  breakpointBehavior = 'overlay',
23342
23513
  views
23343
23514
  } = _ref,
23344
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
23515
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
23345
23516
  var {
23346
23517
  isExpanded,
23347
23518
  toggleExpanded,
@@ -23806,7 +23977,7 @@ var HandleIconStyles = {
23806
23977
  }
23807
23978
  };
23808
23979
 
23809
- var _excluded$1b = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23980
+ var _excluded$1d = ["children", "id", "defaultSize", "minSize", "maxSize", "collapsible", "defaultCollapsed", "onCollapseChange", "views"],
23810
23981
  _excluded2$h = ["id", "position", "disabled", "withVisualIndicator", "withCollapseButton", "collapseTarget", "views"],
23811
23982
  _excluded3$b = ["children", "orientation", "size", "variant", "defaultSizes", "minSize", "maxSize", "collapsible", "containerRef", "autoSaveId", "views"];
23812
23983
  // Create context for the Resizable component
@@ -23851,7 +24022,7 @@ var ResizablePanel = _ref2 => {
23851
24022
  onCollapseChange,
23852
24023
  views
23853
24024
  } = _ref2,
23854
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1b);
24025
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
23855
24026
  var {
23856
24027
  orientation,
23857
24028
  registerPanel,
@@ -24066,7 +24237,7 @@ var ResizableView = _ref4 => {
24066
24237
  }, ResizableOrientations[orientation], views == null ? void 0 : views.container, props), children);
24067
24238
  };
24068
24239
 
24069
- var _excluded$1c = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24240
+ var _excluded$1e = ["children", "orientation", "size", "variant", "defaultSizes", "onSizesChange", "minSize", "maxSize", "collapsible", "autoSaveId", "storage", "keyboardResizeBy", "views"];
24070
24241
  /**
24071
24242
  * Resizable component for creating resizable panel groups and layouts.
24072
24243
  */
@@ -24086,7 +24257,7 @@ var ResizableComponent = _ref => {
24086
24257
  keyboardResizeBy = 10,
24087
24258
  views
24088
24259
  } = _ref,
24089
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
24260
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
24090
24261
  var {
24091
24262
  isResizing,
24092
24263
  setIsResizing,
@@ -24854,7 +25025,7 @@ var CommandFooterStyles = {
24854
25025
  color: 'color.gray.500'
24855
25026
  };
24856
25027
 
24857
- var _excluded$1d = ["value", "onValueChange", "placeholder", "views"],
25028
+ var _excluded$1f = ["value", "onValueChange", "placeholder", "views"],
24858
25029
  _excluded2$i = ["children", "views"],
24859
25030
  _excluded3$c = ["heading", "children", "views"],
24860
25031
  _excluded4$a = ["item", "selected", "onSelect", "views"],
@@ -24886,7 +25057,7 @@ var CommandInput = _ref2 => {
24886
25057
  placeholder = 'Type a command or search...',
24887
25058
  views
24888
25059
  } = _ref2,
24889
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1d);
25060
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
24890
25061
  var inputRef = useRef(null);
24891
25062
  // Focus input when component mounts
24892
25063
  React.useEffect(() => {
@@ -25069,7 +25240,7 @@ var CommandView = _ref7 => {
25069
25240
  })))), footer && (/*#__PURE__*/React.createElement(View, Object.assign({}, CommandFooterStyles, views == null ? void 0 : views.footer), footer)))));
25070
25241
  };
25071
25242
 
25072
- var _excluded$1e = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25243
+ var _excluded$1g = ["open", "onOpenChange", "groups", "commands", "placeholder", "size", "variant", "filter", "emptyState", "footer", "views"];
25073
25244
  /**
25074
25245
  * Command component for displaying a command palette with search functionality.
25075
25246
  */
@@ -25087,7 +25258,7 @@ var CommandComponent = _ref => {
25087
25258
  footer,
25088
25259
  views
25089
25260
  } = _ref,
25090
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
25261
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25091
25262
  var {
25092
25263
  search,
25093
25264
  setSearch,
@@ -25315,7 +25486,7 @@ var getArrowStyles = position => {
25315
25486
  }
25316
25487
  };
25317
25488
 
25318
- var _excluded$1f = ["children", "views", "asChild"],
25489
+ var _excluded$1h = ["children", "views", "asChild"],
25319
25490
  _excluded2$j = ["children", "views"],
25320
25491
  _excluded3$d = ["content", "children", "position", "align", "size", "variant", "showArrow", "views", "themeMode"];
25321
25492
  // Create context for the Tooltip
@@ -25351,7 +25522,7 @@ var TooltipTrigger = _ref2 => {
25351
25522
  views,
25352
25523
  asChild = false
25353
25524
  } = _ref2,
25354
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1f);
25525
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
25355
25526
  var {
25356
25527
  openTooltip,
25357
25528
  closeTooltip,
@@ -25532,16 +25703,10 @@ var TooltipView = _ref4 => {
25532
25703
  borderRadius: 4,
25533
25704
  boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
25534
25705
  style: positionStyles
25535
- }, TooltipSizes[size], TooltipVariants[variant], views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React.createElement(Text$1, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React.createElement(View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)), process.env.NODE_ENV === 'development' && (/*#__PURE__*/React.createElement("div", {
25536
- style: {
25537
- fontSize: '8px',
25538
- opacity: 0.7,
25539
- marginTop: '2px'
25540
- }
25541
- }, "Placement: ", optimalPosition.placement, relation && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), "Space: ", relation.space.vertical, "-", relation.space.horizontal)))))));
25706
+ }, TooltipSizes[size], TooltipVariants[variant], views == null ? void 0 : views.content), typeof content === 'string' ? (/*#__PURE__*/React.createElement(Text$1, Object.assign({}, views == null ? void 0 : views.text), content)) : content, showArrow && /*#__PURE__*/React.createElement(View, Object.assign({}, arrowStyles, views == null ? void 0 : views.arrow)))));
25542
25707
  };
25543
25708
 
25544
- var _excluded$1g = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25709
+ var _excluded$1i = ["content", "children", "position", "align", "size", "variant", "openDelay", "closeDelay", "showArrow", "defaultOpen", "isDisabled", "views"];
25545
25710
  /**
25546
25711
  * Tooltip component for displaying additional information when hovering over an element.
25547
25712
  * Supports configurable positions, delays, and styling.
@@ -25561,7 +25726,7 @@ var TooltipComponent = _ref => {
25561
25726
  isDisabled = false,
25562
25727
  views
25563
25728
  } = _ref,
25564
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
25729
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
25565
25730
  var tooltipState = useTooltipState({
25566
25731
  defaultOpen,
25567
25732
  openDelay,
@@ -26034,7 +26199,7 @@ var TreeItemStates = {
26034
26199
  }
26035
26200
  };
26036
26201
 
26037
- var _excluded$1h = ["children", "views", "baseId"],
26202
+ var _excluded$1j = ["children", "views", "baseId"],
26038
26203
  _excluded2$k = ["value", "disabled", "icon", "children", "views", "style", "draggable"],
26039
26204
  _excluded3$e = ["children", "onClick", "onToggleExpand", "hasChildren", "expanded", "icon", "disabled", "isSelected", "isDragging", "size", "variant", "views"],
26040
26205
  _excluded4$b = ["children", "views"];
@@ -26070,7 +26235,7 @@ var TreeView = _ref2 => {
26070
26235
  baseId
26071
26236
  // themeMode, // If 'app-studio' ViewProps supports themeMode
26072
26237
  } = _ref2,
26073
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$1h);
26238
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$1j);
26074
26239
  var {
26075
26240
  allowDragAndDrop,
26076
26241
  handleDrop,
@@ -26350,7 +26515,7 @@ var DataDrivenTreeView = _ref7 => {
26350
26515
  }))));
26351
26516
  };
26352
26517
 
26353
- var _excluded$1i = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26518
+ var _excluded$1k = ["children", "items", "size", "variant", "defaultExpandedItems", "expandedItems", "onExpandedItemsChange", "defaultSelectedItem", "selectedItem", "onItemSelect", "multiSelect", "allowDragAndDrop", "dragHandleIcon", "onItemsReorder", "onDragStart", "onDragEnd", "views"];
26354
26519
  /**
26355
26520
  * Tree component for displaying hierarchical data.
26356
26521
  * Supports both compound component pattern (using Tree.Item, Tree.ItemLabel, Tree.ItemContent)
@@ -26419,7 +26584,7 @@ var TreeComponent = _ref => {
26419
26584
  views // Global views configuration
26420
26585
  // Remaining ViewProps for the root TreeView container
26421
26586
  } = _ref,
26422
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
26587
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
26423
26588
  var treeState = useTreeState({
26424
26589
  defaultExpandedItems,
26425
26590
  expandedItems,
@@ -26992,7 +27157,7 @@ var FlowNodeStates = {
26992
27157
  }
26993
27158
  };
26994
27159
 
26995
- var _excluded$1j = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
27160
+ var _excluded$1l = ["node", "onSelect", "isSelected", "isDragging", "onDragStart", "onDrag", "onDragEnd", "size", "variant", "views"],
26996
27161
  _excluded2$l = ["onZoomIn", "onZoomOut", "onReset", "views"],
26997
27162
  _excluded3$f = ["onClick", "views"],
26998
27163
  _excluded4$c = ["nodes", "edges", "selectedNodeId", "draggedNodeId", "onNodeSelect", "onAddNode", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "views", "baseId", "viewport", "onZoomIn", "onZoomOut", "onReset", "onViewportChange"];
@@ -27008,7 +27173,7 @@ var FlowNodeView = _ref => {
27008
27173
  variant = 'default',
27009
27174
  views
27010
27175
  } = _ref,
27011
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
27176
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
27012
27177
  var handleClick = () => {
27013
27178
  if (onSelect) {
27014
27179
  onSelect(node.id);
@@ -27655,7 +27820,7 @@ var FlowView = _ref5 => {
27655
27820
  }, "Zoom: ", Math.round(viewport.zoom * 100), "%")));
27656
27821
  };
27657
27822
 
27658
- var _excluded$1k = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27823
+ var _excluded$1m = ["children", "nodes", "edges", "size", "variant", "direction", "showControls", "allowAddingNodes", "allowDraggingNodes", "onNodesChange", "onEdgesChange", "onNodeSelect", "onNodeAdd", "onNodeDragStart", "onNodeDrag", "onNodeDragEnd", "selectedNodeId", "initialViewport", "viewport", "onViewportChange", "views"];
27659
27824
  /**
27660
27825
  * Flow component for creating workflow diagrams.
27661
27826
  *
@@ -27712,7 +27877,7 @@ var FlowComponent = _ref => {
27712
27877
  onViewportChange,
27713
27878
  views
27714
27879
  } = _ref,
27715
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
27880
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
27716
27881
  var flowState = useFlowState({
27717
27882
  initialNodes: controlledNodes,
27718
27883
  initialEdges: controlledEdges,
@@ -28081,7 +28246,7 @@ var DefaultGradientStyles = {
28081
28246
  }
28082
28247
  };
28083
28248
 
28084
- var _excluded$1l = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28249
+ var _excluded$1n = ["type", "direction", "shape", "position", "from", "to", "colors", "animate", "animationDuration", "children", "views", "themeMode"];
28085
28250
  var GradientView = _ref => {
28086
28251
  var {
28087
28252
  type = 'linear',
@@ -28097,7 +28262,7 @@ var GradientView = _ref => {
28097
28262
  views,
28098
28263
  themeMode: elementMode
28099
28264
  } = _ref,
28100
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
28265
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
28101
28266
  var {
28102
28267
  getColor,
28103
28268
  themeMode
@@ -28173,7 +28338,7 @@ var Gradient = props => {
28173
28338
  return /*#__PURE__*/React.createElement(GradientView, Object.assign({}, props));
28174
28339
  };
28175
28340
 
28176
- var _excluded$1m = ["children", "showRadialGradient", "views", "themeMode"],
28341
+ var _excluded$1o = ["children", "showRadialGradient", "views", "themeMode"],
28177
28342
  _excluded2$m = ["number", "children"],
28178
28343
  _excluded3$g = ["rows", "cols", "squareSize"],
28179
28344
  _excluded4$d = ["count", "colors", "speed", "shapes"],
@@ -28194,7 +28359,7 @@ var AuroraBackground = _ref => {
28194
28359
  showRadialGradient = true,
28195
28360
  views
28196
28361
  } = _ref,
28197
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
28362
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
28198
28363
  var gradientColors = {
28199
28364
  white: 'rgba(255,255,255,1)',
28200
28365
  transparent: 'rgba(255,255,255,0)'
@@ -29094,7 +29259,7 @@ var AgentRunProgress = _ref => {
29094
29259
  }, step.label))))));
29095
29260
  };
29096
29261
 
29097
- var _excluded$1n = ["placeholder", "showTimestamps", "showAvatars", "showTypingIndicator", "autoScroll", "enableFileUpload", "enableAudioRecording", "enableVideoRecording", "views", "containerProps", "colorScheme", "compact", "rounded", "ariaLabel", "ariaDescribedBy", "messages", "currentSession", "isLoading", "isTyping", "error", "inputValue", "selectedFiles", "sessionId", "sendMessage", "setInputValue", "handleFileSelect", "removeFile", "messagesEndRef", "setError", "setSelectedFiles"];
29262
+ var _excluded$1p = ["placeholder", "showTimestamps", "showAvatars", "showTypingIndicator", "autoScroll", "enableFileUpload", "enableAudioRecording", "enableVideoRecording", "views", "containerProps", "colorScheme", "compact", "rounded", "ariaLabel", "ariaDescribedBy", "messages", "currentSession", "isLoading", "isTyping", "error", "inputValue", "selectedFiles", "sessionId", "sendMessage", "setInputValue", "handleFileSelect", "removeFile", "messagesEndRef", "setError", "setSelectedFiles"];
29098
29263
  /**
29099
29264
  * AgentChat View Component
29100
29265
  *
@@ -29134,7 +29299,7 @@ var AgentChatView = _ref => {
29134
29299
  setError,
29135
29300
  setSelectedFiles
29136
29301
  } = _ref,
29137
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
29302
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
29138
29303
  /**
29139
29304
  * Auto-scroll to bottom when new messages arrive
29140
29305
  */
@@ -30275,7 +30440,7 @@ var SessionFilters = _ref => {
30275
30440
  }, "Clear all filters")))));
30276
30441
  };
30277
30442
 
30278
- var _excluded$1o = ["showSessionHistory", "enableSessionImport", "enableSessionExport", "enableSessionDelete", "enableSessionSearch", "showSessionInfo", "showSessionActions", "showCreateButton", "showRefreshButton", "compactMode", "views", "containerProps", "colorScheme", "layout", "showPreviews", "ariaLabel", "ariaDescribedBy", "sessions", "selectedSession", "isLoading", "isCreating", "error", "searchQuery", "filters", "sortOptions", "fetchSessions", "createSession", "selectSession", "deleteSession", "exportSession", "handleFileImport", "setSearchQuery", "setFilters", "setSortOptions", "setError", "fileInputRef", "handleFileSelect"];
30443
+ var _excluded$1q = ["showSessionHistory", "enableSessionImport", "enableSessionExport", "enableSessionDelete", "enableSessionSearch", "showSessionInfo", "showSessionActions", "showCreateButton", "showRefreshButton", "compactMode", "views", "containerProps", "colorScheme", "layout", "showPreviews", "ariaLabel", "ariaDescribedBy", "sessions", "selectedSession", "isLoading", "isCreating", "error", "searchQuery", "filters", "sortOptions", "fetchSessions", "createSession", "selectSession", "deleteSession", "exportSession", "handleFileImport", "setSearchQuery", "setFilters", "setSortOptions", "setError", "fileInputRef", "handleFileSelect"];
30279
30444
  /**
30280
30445
  * AgentSession View Component
30281
30446
  *
@@ -30323,7 +30488,7 @@ var AgentSessionView = _ref => {
30323
30488
  fileInputRef,
30324
30489
  handleFileSelect
30325
30490
  } = _ref,
30326
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
30491
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
30327
30492
  /**
30328
30493
  * Handle session creation
30329
30494
  */
@@ -32162,7 +32327,7 @@ var TraceVisualization = _ref => {
32162
32327
  }, renderVisualization())));
32163
32328
  };
32164
32329
 
32165
- var _excluded$1p = ["showTimeline", "showMetrics", "showVisualization", "enableFiltering", "enableExport", "enableSearch", "showEventDetails", "showPerformanceMetrics", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "events", "spans", "selectedEvent", "selectedSpan", "metrics", "isLoading", "error", "filter", "searchQuery", "currentVisualization", "fetchTraceEvents", "selectEvent", "selectSpan", "updateFilter", "exportTrace", "setSearchQuery", "setCurrentVisualization", "setError"];
32330
+ var _excluded$1r = ["showTimeline", "showMetrics", "showVisualization", "enableFiltering", "enableExport", "enableSearch", "showEventDetails", "showPerformanceMetrics", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "events", "spans", "selectedEvent", "selectedSpan", "metrics", "isLoading", "error", "filter", "searchQuery", "currentVisualization", "fetchTraceEvents", "selectEvent", "selectSpan", "updateFilter", "exportTrace", "setSearchQuery", "setCurrentVisualization", "setError"];
32166
32331
  /**
32167
32332
  * AgentTrace View Component
32168
32333
  *
@@ -32203,7 +32368,7 @@ var AgentTraceView = _ref => {
32203
32368
  setCurrentVisualization,
32204
32369
  setError
32205
32370
  } = _ref,
32206
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
32371
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
32207
32372
  /**
32208
32373
  * Handle event selection
32209
32374
  */
@@ -33892,7 +34057,7 @@ var EvaluationMetrics = _ref => {
33892
34057
  }, "Run some evaluations to see performance metrics")))));
33893
34058
  };
33894
34059
 
33895
- var _excluded$1q = ["enableBatchEvaluation", "enableMetricsComparison", "enableResultExport", "enableTemplates", "showEvaluationHistory", "showMetricsPanel", "showTestCaseDetails", "showProgressIndicators", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "evaluations", "selectedEvaluation", "selectedResult", "isLoading", "isCreating", "error", "searchQuery", "templates", "runningEvaluationsCount", "canStartNewEvaluation", "fetchEvaluations", "createEvaluation", "startEvaluation", "cancelEvaluation", "deleteEvaluation", "selectEvaluation", "selectResult", "exportEvaluations", "setSearchQuery", "setError"];
34060
+ var _excluded$1s = ["enableBatchEvaluation", "enableMetricsComparison", "enableResultExport", "enableTemplates", "showEvaluationHistory", "showMetricsPanel", "showTestCaseDetails", "showProgressIndicators", "compactMode", "views", "ariaLabel", "ariaDescribedBy", "evaluations", "selectedEvaluation", "selectedResult", "isLoading", "isCreating", "error", "searchQuery", "templates", "runningEvaluationsCount", "canStartNewEvaluation", "fetchEvaluations", "createEvaluation", "startEvaluation", "cancelEvaluation", "deleteEvaluation", "selectEvaluation", "selectResult", "exportEvaluations", "setSearchQuery", "setError"];
33896
34061
  /**
33897
34062
  * AgentEval View Component
33898
34063
  *
@@ -33935,7 +34100,7 @@ var AgentEvalView = _ref => {
33935
34100
  setSearchQuery,
33936
34101
  setError
33937
34102
  } = _ref,
33938
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
34103
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
33939
34104
  var [activeTab, setActiveTab] = React.useState('evaluations');
33940
34105
  /**
33941
34106
  * Handle evaluation creation
@@ -34597,5 +34762,5 @@ var AgentEval = props => {
34597
34762
  return /*#__PURE__*/React.createElement(AgentEvalView, Object.assign({}, props, evalState));
34598
34763
  };
34599
34764
 
34600
- export { Accordion, AgentChat, AgentEval, AgentSession, AgentTrace, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AudioIcon, AudioInput, AudioWaveform, Avatar, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, Flow, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, Tree, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
34765
+ export { Accordion, AgentChat, AgentEval, AgentSession, AgentTrace, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AudioIcon, AudioInput, AudioWaveform, Avatar, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, Flow, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, Tree, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
34601
34766
  //# sourceMappingURL=web.esm.js.map