@wistia/ui 0.14.22 → 0.14.23-beta.0b131fb3.6bb0fff

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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.14.22
3
+ * @license @wistia/ui v0.14.23-beta.0b131fb3.6bb0fff
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9480,6 +9480,7 @@ var StyledCheckboxInput = import_styled_components43.default.div`
9480
9480
  `;
9481
9481
  var StyledHiddenCheckboxInput = import_styled_components43.default.input`
9482
9482
  ${visuallyHiddenStyle}
9483
+ position: relative;
9483
9484
  `;
9484
9485
  var Checkbox = (0, import_react38.forwardRef)(
9485
9486
  ({
@@ -15946,6 +15947,7 @@ var Table = ({
15946
15947
  };
15947
15948
 
15948
15949
  // src/components/Table/TableBody.tsx
15950
+ var import_react83 = require("react");
15949
15951
  var import_styled_components106 = __toESM(require("styled-components"));
15950
15952
 
15951
15953
  // src/components/Table/TableSectionContext.ts
@@ -15960,7 +15962,7 @@ var TableBody = ({ children, ...props }) => {
15960
15962
  };
15961
15963
 
15962
15964
  // src/components/Table/TableCell.tsx
15963
- var import_react83 = require("react");
15965
+ var import_react84 = require("react");
15964
15966
  var import_styled_components107 = __toESM(require("styled-components"));
15965
15967
  var import_jsx_runtime301 = require("react/jsx-runtime");
15966
15968
  var sharedStyles = import_styled_components107.css`
@@ -15981,7 +15983,7 @@ var StyledTd = import_styled_components107.default.td`
15981
15983
  line-height: var(--wui-typography-body-2-line-height);
15982
15984
  `;
15983
15985
  var TableCell = ({ children, ...props }) => {
15984
- const section = (0, import_react83.useContext)(TableSectionContext);
15986
+ const section = (0, import_react84.useContext)(TableSectionContext);
15985
15987
  if (section === "head") {
15986
15988
  return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(StyledTh, { ...props, children });
15987
15989
  }
@@ -15989,6 +15991,7 @@ var TableCell = ({ children, ...props }) => {
15989
15991
  };
15990
15992
 
15991
15993
  // src/components/Table/TableFoot.tsx
15994
+ var import_react85 = require("react");
15992
15995
  var import_styled_components108 = __toESM(require("styled-components"));
15993
15996
  var import_jsx_runtime302 = require("react/jsx-runtime");
15994
15997
  var StyledTableFoot = import_styled_components108.default.tfoot``;
@@ -15997,6 +16000,7 @@ var TableFoot = ({ children, ...props }) => {
15997
16000
  };
15998
16001
 
15999
16002
  // src/components/Table/TableHead.tsx
16003
+ var import_react86 = require("react");
16000
16004
  var import_styled_components109 = __toESM(require("styled-components"));
16001
16005
  var import_jsx_runtime303 = require("react/jsx-runtime");
16002
16006
  var StyledThead = import_styled_components109.default.thead``;
@@ -16014,15 +16018,15 @@ var TableRow = ({ children, ...props }) => {
16014
16018
 
16015
16019
  // src/components/Tabs/Tabs.tsx
16016
16020
  var import_react_tabs = require("@radix-ui/react-tabs");
16017
- var import_react85 = require("react");
16021
+ var import_react88 = require("react");
16018
16022
  var import_type_guards61 = require("@wistia/type-guards");
16019
16023
 
16020
16024
  // src/components/Tabs/useTabsValue.tsx
16021
- var import_react84 = require("react");
16022
- var TabsValueContext = (0, import_react84.createContext)(null);
16025
+ var import_react87 = require("react");
16026
+ var TabsValueContext = (0, import_react87.createContext)(null);
16023
16027
  var TabsValueProvider = TabsValueContext.Provider;
16024
16028
  var useTabsValue = () => {
16025
- const context = (0, import_react84.useContext)(TabsValueContext);
16029
+ const context = (0, import_react87.useContext)(TabsValueContext);
16026
16030
  if (context === null) {
16027
16031
  throw new Error("useTabsValue must be used within a TabsValueProvider");
16028
16032
  }
@@ -16038,8 +16042,8 @@ var Tabs = ({
16038
16042
  defaultValue,
16039
16043
  ...props
16040
16044
  }) => {
16041
- const [value, setValue] = (0, import_react85.useState)(valueProp ?? defaultValue);
16042
- const onValueChange = (0, import_react85.useCallback)(
16045
+ const [value, setValue] = (0, import_react88.useState)(valueProp ?? defaultValue);
16046
+ const onValueChange = (0, import_react88.useCallback)(
16043
16047
  (newValue) => {
16044
16048
  setValue(newValue);
16045
16049
  if (onValueChangeProp) {
@@ -16123,7 +16127,7 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
16123
16127
  TabsList.displayName = "TabsList_UI";
16124
16128
 
16125
16129
  // src/components/Tabs/TabsTrigger.tsx
16126
- var import_react86 = require("react");
16130
+ var import_react89 = require("react");
16127
16131
  var import_type_guards63 = require("@wistia/type-guards");
16128
16132
 
16129
16133
  // src/components/Tabs/StyledRadixTabsTrigger.tsx
@@ -16139,13 +16143,13 @@ var StyledRadixTabsTrigger = (0, import_styled_components113.default)(import_rea
16139
16143
 
16140
16144
  // src/components/Tabs/TabsTrigger.tsx
16141
16145
  var import_jsx_runtime309 = require("react/jsx-runtime");
16142
- var TabsTrigger = (0, import_react86.forwardRef)(
16146
+ var TabsTrigger = (0, import_react89.forwardRef)(
16143
16147
  ({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
16144
16148
  const selectedValue = useTabsValue();
16145
16149
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
16146
- const buttonRef = (0, import_react86.useRef)(null);
16150
+ const buttonRef = (0, import_react89.useRef)(null);
16147
16151
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
16148
- (0, import_react86.useEffect)(() => {
16152
+ (0, import_react89.useEffect)(() => {
16149
16153
  const buttonElem = buttonRef.current;
16150
16154
  if (!buttonElem) {
16151
16155
  return void 0;
@@ -16226,7 +16230,7 @@ var ThumbnailBadge = ({ icon, label, ...props }) => {
16226
16230
  ThumbnailBadge.displayName = "ThumbnailBadge_UI";
16227
16231
 
16228
16232
  // src/components/Thumbnail/Thumbnail.tsx
16229
- var import_react87 = require("react");
16233
+ var import_react90 = require("react");
16230
16234
  var import_styled_components117 = __toESM(require("styled-components"));
16231
16235
  var import_type_guards67 = require("@wistia/type-guards");
16232
16236
 
@@ -16558,7 +16562,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
16558
16562
  left: relativeLeft
16559
16563
  };
16560
16564
  };
16561
- var Thumbnail = (0, import_react87.forwardRef)(
16565
+ var Thumbnail = (0, import_react90.forwardRef)(
16562
16566
  ({
16563
16567
  gradientBackground = "defaultMidOne",
16564
16568
  thumbnailImageType = "wide",
@@ -16569,17 +16573,17 @@ var Thumbnail = (0, import_react87.forwardRef)(
16569
16573
  height,
16570
16574
  ...props
16571
16575
  }, ref) => {
16572
- const [percent, setPercent] = (0, import_react87.useState)(0);
16573
- const [isMouseOver, setIsMouseOver] = (0, import_react87.useState)(false);
16574
- const [isStoryboardReady, setIsStoryboardReady] = (0, import_react87.useState)(false);
16575
- const storyboardElementRef = (0, import_react87.useRef)(null);
16576
- const [cursorPosition, setCursorPosition] = (0, import_react87.useState)(null);
16577
- const backgroundUrl = (0, import_react87.useMemo)(
16576
+ const [percent, setPercent] = (0, import_react90.useState)(0);
16577
+ const [isMouseOver, setIsMouseOver] = (0, import_react90.useState)(false);
16578
+ const [isStoryboardReady, setIsStoryboardReady] = (0, import_react90.useState)(false);
16579
+ const storyboardElementRef = (0, import_react90.useRef)(null);
16580
+ const [cursorPosition, setCursorPosition] = (0, import_react90.useState)(null);
16581
+ const backgroundUrl = (0, import_react90.useMemo)(
16578
16582
  () => thumbnailImageType === "square" && (0, import_type_guards67.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
16579
16583
  [thumbnailImageType, thumbnailUrl]
16580
16584
  );
16581
16585
  const isScrubbable = (0, import_type_guards67.isNotNil)(storyboard);
16582
- const trackStoryboardLoadStatus = (0, import_react87.useCallback)(() => {
16586
+ const trackStoryboardLoadStatus = (0, import_react90.useCallback)(() => {
16583
16587
  if (storyboardElementRef.current || !storyboard) {
16584
16588
  return storyboardElementRef.current;
16585
16589
  }
@@ -16589,7 +16593,7 @@ var Thumbnail = (0, import_react87.forwardRef)(
16589
16593
  storyboardElementRef.current = asset;
16590
16594
  return storyboardElementRef.current;
16591
16595
  }, [storyboard]);
16592
- const handleMouseMove = (0, import_react87.useCallback)(
16596
+ const handleMouseMove = (0, import_react90.useCallback)(
16593
16597
  (mouseEvent) => {
16594
16598
  if (!isScrubbable) return;
16595
16599
  const elem = mouseEvent.currentTarget;
@@ -16602,15 +16606,15 @@ var Thumbnail = (0, import_react87.forwardRef)(
16602
16606
  },
16603
16607
  [isScrubbable, trackStoryboardLoadStatus]
16604
16608
  );
16605
- const handleMouseOut = (0, import_react87.useCallback)(() => {
16609
+ const handleMouseOut = (0, import_react90.useCallback)(() => {
16606
16610
  if (!isScrubbable) return;
16607
16611
  setIsMouseOver(false);
16608
16612
  setCursorPosition(null);
16609
16613
  }, [isScrubbable]);
16610
- const shouldRenderStoryboard = (0, import_react87.useMemo)(() => {
16614
+ const shouldRenderStoryboard = (0, import_react90.useMemo)(() => {
16611
16615
  return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
16612
16616
  }, [isScrubbable, isMouseOver, isStoryboardReady]);
16613
- const renderStoryboard = (0, import_react87.useCallback)(() => {
16617
+ const renderStoryboard = (0, import_react90.useCallback)(() => {
16614
16618
  if (!storyboard || (0, import_type_guards67.isUndefined)(height) || (0, import_type_guards67.isEmptyString)(height)) return null;
16615
16619
  const {
16616
16620
  url,
@@ -16677,7 +16681,7 @@ var Thumbnail = (0, import_react87.forwardRef)(
16677
16681
  Thumbnail.displayName = "Thumbnail_UI";
16678
16682
 
16679
16683
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
16680
- var import_react88 = __toESM(require("react"));
16684
+ var import_react91 = __toESM(require("react"));
16681
16685
  var import_styled_components118 = __toESM(require("styled-components"));
16682
16686
  var import_type_guards68 = require("@wistia/type-guards");
16683
16687
  var import_jsx_runtime313 = (
@@ -16757,10 +16761,10 @@ var ThumbnailCollage = ({
16757
16761
  gradientBackground = "defaultMidOne",
16758
16762
  ...props
16759
16763
  }) => {
16760
- const thumbnailArray = import_react88.default.Children.toArray(children);
16764
+ const thumbnailArray = import_react91.default.Children.toArray(children);
16761
16765
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
16762
16766
  const thumbnails = (0, import_type_guards68.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
16763
- return import_react88.default.cloneElement(child, {
16767
+ return import_react91.default.cloneElement(child, {
16764
16768
  ...child.props,
16765
16769
  children: void 0
16766
16770
  });
@@ -16912,7 +16916,7 @@ WistiaLogo.displayName = "WistiaLogo_UI";
16912
16916
 
16913
16917
  // src/components/InputPassword/InputPassword.tsx
16914
16918
  var import_styled_components120 = __toESM(require("styled-components"));
16915
- var import_react89 = require("react");
16919
+ var import_react92 = require("react");
16916
16920
  var import_type_guards70 = require("@wistia/type-guards");
16917
16921
  var import_jsx_runtime315 = require("react/jsx-runtime");
16918
16922
  var StyledIconButton2 = (0, import_styled_components120.default)(IconButton)`
@@ -16923,9 +16927,9 @@ var StyledIconButton2 = (0, import_styled_components120.default)(IconButton)`
16923
16927
  /* override input padding variable since it is used for Input Icon positioning */
16924
16928
  --wui-input-horizontal-padding: 4px;
16925
16929
  `;
16926
- var InputPassword = (0, import_react89.forwardRef)(
16930
+ var InputPassword = (0, import_react92.forwardRef)(
16927
16931
  ({ onVisibilityToggle, disabled = false, ...props }, ref) => {
16928
- const [isVisible, setIsVisible] = (0, import_react89.useState)(false);
16932
+ const [isVisible, setIsVisible] = (0, import_react92.useState)(false);
16929
16933
  const handleClick = () => {
16930
16934
  const newVisibility = !isVisible;
16931
16935
  setIsVisible(newVisibility);
@@ -16958,7 +16962,7 @@ var InputPassword = (0, import_react89.forwardRef)(
16958
16962
  InputPassword.displayName = "InputPassword_UI";
16959
16963
 
16960
16964
  // src/components/ContextMenu/ContextMenu.tsx
16961
- var import_react90 = require("react");
16965
+ var import_react93 = require("react");
16962
16966
  var import_type_guards71 = require("@wistia/type-guards");
16963
16967
  var import_jsx_runtime316 = require("react/jsx-runtime");
16964
16968
  var ContextMenu = ({
@@ -16967,9 +16971,9 @@ var ContextMenu = ({
16967
16971
  children,
16968
16972
  onRequestClose = () => null
16969
16973
  }) => {
16970
- const [isRightClicked, setIsRightClicked] = (0, import_react90.useState)(false);
16971
- const [menuPosition, setMenuPosition] = (0, import_react90.useState)(position ?? { x: 0, y: 0 });
16972
- (0, import_react90.useEffect)(() => {
16974
+ const [isRightClicked, setIsRightClicked] = (0, import_react93.useState)(false);
16975
+ const [menuPosition, setMenuPosition] = (0, import_react93.useState)(position ?? { x: 0, y: 0 });
16976
+ (0, import_react93.useEffect)(() => {
16973
16977
  if ((0, import_type_guards71.isNil)(position)) {
16974
16978
  const onContextMenu = (event) => {
16975
16979
  event.preventDefault();
@@ -17017,12 +17021,12 @@ var ContextMenu = ({
17017
17021
  };
17018
17022
 
17019
17023
  // src/components/EditableText/EditableTextDisplay.tsx
17020
- var import_react92 = require("react");
17024
+ var import_react95 = require("react");
17021
17025
  var import_styled_components123 = __toESM(require("styled-components"));
17022
17026
  var import_type_guards73 = require("@wistia/type-guards");
17023
17027
 
17024
17028
  // src/components/EditableText/EditableTextRoot.tsx
17025
- var import_react91 = require("react");
17029
+ var import_react94 = require("react");
17026
17030
  var import_type_guards72 = require("@wistia/type-guards");
17027
17031
  var import_styled_components121 = __toESM(require("styled-components"));
17028
17032
  var import_jsx_runtime317 = require("react/jsx-runtime");
@@ -17032,7 +17036,7 @@ var StyledEditableTextRoot = import_styled_components121.default.div`
17032
17036
  --wui-editable-text-padding: var(--wui-space-01);
17033
17037
  --wui-editable-text-border-radius: var(--wui-border-radius-01);
17034
17038
  `;
17035
- var EditableTextContext = (0, import_react91.createContext)(null);
17039
+ var EditableTextContext = (0, import_react94.createContext)(null);
17036
17040
  var EditableTextRoot = ({
17037
17041
  children,
17038
17042
  defaultValue = "",
@@ -17053,13 +17057,13 @@ var EditableTextRoot = ({
17053
17057
  ...props
17054
17058
  }) => {
17055
17059
  const isControlled = controlledValue !== void 0;
17056
- const [internalValue, setInternalValue] = (0, import_react91.useState)(defaultValue);
17057
- const [originalValue, setOriginalValue] = (0, import_react91.useState)(defaultValue);
17058
- const [isEditing, setIsEditing] = (0, import_react91.useState)(false);
17060
+ const [internalValue, setInternalValue] = (0, import_react94.useState)(defaultValue);
17061
+ const [originalValue, setOriginalValue] = (0, import_react94.useState)(defaultValue);
17062
+ const [isEditing, setIsEditing] = (0, import_react94.useState)(false);
17059
17063
  const value = isControlled ? controlledValue : internalValue;
17060
- const generatedId = (0, import_react91.useId)();
17064
+ const generatedId = (0, import_react94.useId)();
17061
17065
  const computedId = (0, import_type_guards72.isNonEmptyString)(id) ? id : `wistia-ui-editable-text-${generatedId}`;
17062
- const handleSetIsEditing = (0, import_react91.useCallback)(
17066
+ const handleSetIsEditing = (0, import_react94.useCallback)(
17063
17067
  (editing) => {
17064
17068
  if (editing && !isEditing) {
17065
17069
  setOriginalValue(value);
@@ -17069,7 +17073,7 @@ var EditableTextRoot = ({
17069
17073
  },
17070
17074
  [isEditing, value, onEditingChange]
17071
17075
  );
17072
- const setValue = (0, import_react91.useCallback)(
17076
+ const setValue = (0, import_react94.useCallback)(
17073
17077
  (newValue) => {
17074
17078
  if (!isControlled) {
17075
17079
  setInternalValue(newValue);
@@ -17078,7 +17082,7 @@ var EditableTextRoot = ({
17078
17082
  },
17079
17083
  [isControlled, onValueChange]
17080
17084
  );
17081
- const context = (0, import_react91.useMemo)(() => {
17085
+ const context = (0, import_react94.useMemo)(() => {
17082
17086
  return {
17083
17087
  isEditing,
17084
17088
  setIsEditing: handleSetIsEditing,
@@ -17189,14 +17193,14 @@ var StyledEditableTextDisplay = import_styled_components123.default.div`
17189
17193
  }
17190
17194
  }
17191
17195
  `;
17192
- var EditableTextDisplayComponent = (0, import_react92.forwardRef)(
17196
+ var EditableTextDisplayComponent = (0, import_react95.forwardRef)(
17193
17197
  ({ asTrigger, renderAs, ...props }, ref) => {
17194
- const context = (0, import_react92.useContext)(EditableTextContext);
17198
+ const context = (0, import_react95.useContext)(EditableTextContext);
17195
17199
  if (!context) {
17196
17200
  throw new Error("EditableTextDisplay must be used within an EditableTextRoot context");
17197
17201
  }
17198
17202
  const { value, typographicVariant, setIsEditing, placeholder, maxLines, isEditing, minLines } = context;
17199
- const triggerButtonRef = (0, import_react92.useRef)(null);
17203
+ const triggerButtonRef = (0, import_react95.useRef)(null);
17200
17204
  const handleTriggerClick = () => {
17201
17205
  setIsEditing(true);
17202
17206
  };
@@ -17255,7 +17259,7 @@ var EditableTextDisplay = makePolymorphic(
17255
17259
  );
17256
17260
 
17257
17261
  // src/components/EditableText/EditableTextInput.tsx
17258
- var import_react93 = require("react");
17262
+ var import_react96 = require("react");
17259
17263
  var import_styled_components124 = __toESM(require("styled-components"));
17260
17264
  var import_type_guards74 = require("@wistia/type-guards");
17261
17265
  var import_jsx_runtime319 = require("react/jsx-runtime");
@@ -17270,7 +17274,7 @@ var StyledInput2 = (0, import_styled_components124.default)(Input)`
17270
17274
  }
17271
17275
  `;
17272
17276
  var EditableTextInput = (props) => {
17273
- const context = (0, import_react93.useContext)(EditableTextContext);
17277
+ const context = (0, import_react96.useContext)(EditableTextContext);
17274
17278
  if (!context) {
17275
17279
  throw new Error("EditableTextInput must be used within an EditableTextRoot context");
17276
17280
  }
@@ -17290,8 +17294,8 @@ var EditableTextInput = (props) => {
17290
17294
  maxLines,
17291
17295
  finalFocusEl
17292
17296
  } = context;
17293
- const inputRef = (0, import_react93.useRef)(null);
17294
- (0, import_react93.useEffect)(() => {
17297
+ const inputRef = (0, import_react96.useRef)(null);
17298
+ (0, import_react96.useEffect)(() => {
17295
17299
  if (inputRef.current) {
17296
17300
  if (isEditing) {
17297
17301
  const element = inputRef.current;
@@ -17367,10 +17371,10 @@ var EditableTextInput = (props) => {
17367
17371
  };
17368
17372
 
17369
17373
  // src/components/EditableText/EditableTextLabel.tsx
17370
- var import_react94 = require("react");
17374
+ var import_react97 = require("react");
17371
17375
  var import_jsx_runtime320 = require("react/jsx-runtime");
17372
17376
  var EditableTextLabel = ({ ...props }) => {
17373
- const context = (0, import_react94.useContext)(EditableTextContext);
17377
+ const context = (0, import_react97.useContext)(EditableTextContext);
17374
17378
  if (!context) {
17375
17379
  throw new Error("EditableTextLabel must be used within an EditableTextRoot context");
17376
17380
  }
@@ -17395,14 +17399,14 @@ var EditableText = ({ hideLabel = true, ...props }) => /* @__PURE__ */ (0, impor
17395
17399
  EditableText.displayName = "EditableText_UI";
17396
17400
 
17397
17401
  // src/components/EditableText/EditableTextSubmitButton.tsx
17398
- var import_react95 = require("react");
17402
+ var import_react98 = require("react");
17399
17403
  var EditableTextSubmitButton = ({
17400
17404
  /**
17401
17405
  * A submit button, typically a [Button]() that will commit the value when clicked.
17402
17406
  */
17403
17407
  children
17404
17408
  }) => {
17405
- const context = (0, import_react95.useContext)(EditableTextContext);
17409
+ const context = (0, import_react98.useContext)(EditableTextContext);
17406
17410
  if (!context) {
17407
17411
  throw new Error("EditableTextSubmitButton must be used within an EditableTextRoot context");
17408
17412
  }
@@ -17417,21 +17421,21 @@ var EditableTextSubmitButton = ({
17417
17421
  }
17418
17422
  }, 0);
17419
17423
  };
17420
- const onlyChild = import_react95.Children.only(children);
17424
+ const onlyChild = import_react98.Children.only(children);
17421
17425
  const triggerProps = {
17422
17426
  onClick: handleClick,
17423
17427
  "data-wui-editable-text-submit": true
17424
17428
  };
17425
17429
  if (!isEditing) return null;
17426
- return (0, import_react95.cloneElement)(onlyChild, triggerProps);
17430
+ return (0, import_react98.cloneElement)(onlyChild, triggerProps);
17427
17431
  };
17428
17432
 
17429
17433
  // src/components/EditableText/EditableTextCancelButton.tsx
17430
- var import_react96 = require("react");
17434
+ var import_react99 = require("react");
17431
17435
  var EditableTextCancelButton = ({
17432
17436
  children
17433
17437
  }) => {
17434
- const context = (0, import_react96.useContext)(EditableTextContext);
17438
+ const context = (0, import_react99.useContext)(EditableTextContext);
17435
17439
  if (!context) {
17436
17440
  throw new Error("EditableTextCancelButton must be used within an EditableTextRoot context");
17437
17441
  }
@@ -17447,22 +17451,22 @@ var EditableTextCancelButton = ({
17447
17451
  }
17448
17452
  }, 0);
17449
17453
  };
17450
- const onlyChild = import_react96.Children.only(children);
17454
+ const onlyChild = import_react99.Children.only(children);
17451
17455
  const triggerProps = {
17452
17456
  onClick: handleClick,
17453
17457
  "data-wui-editable-text-cancel": true
17454
17458
  };
17455
17459
  if (!isEditing) return null;
17456
- return (0, import_react96.cloneElement)(onlyChild, triggerProps);
17460
+ return (0, import_react99.cloneElement)(onlyChild, triggerProps);
17457
17461
  };
17458
17462
 
17459
17463
  // src/components/EditableText/EditableTextTrigger.tsx
17460
- var import_react97 = require("react");
17464
+ var import_react100 = require("react");
17461
17465
  var EditableTextTrigger = ({
17462
17466
  children,
17463
17467
  ...props
17464
17468
  }) => {
17465
- const context = (0, import_react97.useContext)(EditableTextContext);
17469
+ const context = (0, import_react100.useContext)(EditableTextContext);
17466
17470
  if (!context) {
17467
17471
  throw new Error("EditableTextTrigger must be used within an EditableTextRoot context");
17468
17472
  }
@@ -17470,14 +17474,14 @@ var EditableTextTrigger = ({
17470
17474
  const handleClick = () => {
17471
17475
  setIsEditing(true);
17472
17476
  };
17473
- const onlyChild = import_react97.Children.only(children);
17477
+ const onlyChild = import_react100.Children.only(children);
17474
17478
  const triggerProps = {
17475
17479
  onClick: handleClick,
17476
17480
  "data-wui-editable-text-trigger": true,
17477
17481
  ...props
17478
17482
  };
17479
17483
  if (isEditing) return null;
17480
- return (0, import_react97.cloneElement)(onlyChild, triggerProps);
17484
+ return (0, import_react100.cloneElement)(onlyChild, triggerProps);
17481
17485
  };
17482
17486
 
17483
17487
  // src/components/DataList/DataList.tsx