@wistia/ui 0.15.11-beta.f489c1c2.ebd328f → 0.15.12-beta.b27f1407.ee5496a

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.15.11-beta.f489c1c2.ebd328f
3
+ * @license @wistia/ui v0.15.12-beta.b27f1407.ee5496a
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -11807,6 +11807,7 @@ var Input = (0, import_react47.forwardRef)(
11807
11807
  autoSelect = false,
11808
11808
  leftIcon,
11809
11809
  rightIcon,
11810
+ className,
11810
11811
  ...props
11811
11812
  }, externalRef) => {
11812
11813
  const internalRef = (0, import_react47.useRef)(null);
@@ -11843,6 +11844,7 @@ var Input = (0, import_react47.forwardRef)(
11843
11844
  {
11844
11845
  $fullWidth: fullWidth,
11845
11846
  $monospace: monospace,
11847
+ className,
11846
11848
  "data-wui-input-container": true,
11847
11849
  children: [
11848
11850
  leftIconToDisplay ?? null,
@@ -14244,7 +14246,8 @@ var EditableHeading = ({
14244
14246
  onBlur: handleFinishEditing,
14245
14247
  onChange: (event) => setValue(event.target.value),
14246
14248
  onFocus: (event) => {
14247
- event.currentTarget.select();
14249
+ const { length } = event.currentTarget.value;
14250
+ event.currentTarget.setSelectionRange(length, length);
14248
14251
  },
14249
14252
  onKeyDown: handleKeyDown,
14250
14253
  type: "multiline",
@@ -14487,9 +14490,9 @@ var EditableTextDisplay = makePolymorphic(
14487
14490
  );
14488
14491
 
14489
14492
  // src/components/EditableText/EditableTextInput.tsx
14490
- var import_type_guards46 = require("@wistia/type-guards");
14491
14493
  var import_react66 = require("react");
14492
14494
  var import_styled_components84 = __toESM(require("styled-components"));
14495
+ var import_type_guards46 = require("@wistia/type-guards");
14493
14496
  var import_jsx_runtime279 = require("react/jsx-runtime");
14494
14497
  var StyledInput2 = (0, import_styled_components84.default)(Input)`
14495
14498
  && {
@@ -14591,7 +14594,8 @@ var EditableTextInput = (props) => {
14591
14594
  onBlur: handleBlur2,
14592
14595
  onChange: handleChange,
14593
14596
  onFocus: (event) => {
14594
- event.currentTarget.select();
14597
+ const { length } = event.currentTarget.value;
14598
+ event.currentTarget.setSelectionRange(length, length);
14595
14599
  },
14596
14600
  onKeyDown: handleKeyDown,
14597
14601
  placeholder,