@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.mjs 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
  *
@@ -11633,6 +11633,7 @@ var Input = forwardRef15(
11633
11633
  autoSelect = false,
11634
11634
  leftIcon,
11635
11635
  rightIcon,
11636
+ className,
11636
11637
  ...props
11637
11638
  }, externalRef) => {
11638
11639
  const internalRef = useRef9(null);
@@ -11669,6 +11670,7 @@ var Input = forwardRef15(
11669
11670
  {
11670
11671
  $fullWidth: fullWidth,
11671
11672
  $monospace: monospace,
11673
+ className,
11672
11674
  "data-wui-input-container": true,
11673
11675
  children: [
11674
11676
  leftIconToDisplay ?? null,
@@ -14094,7 +14096,8 @@ var EditableHeading = ({
14094
14096
  onBlur: handleFinishEditing,
14095
14097
  onChange: (event) => setValue(event.target.value),
14096
14098
  onFocus: (event) => {
14097
- event.currentTarget.select();
14099
+ const { length } = event.currentTarget.value;
14100
+ event.currentTarget.setSelectionRange(length, length);
14098
14101
  },
14099
14102
  onKeyDown: handleKeyDown,
14100
14103
  type: "multiline",
@@ -14337,9 +14340,9 @@ var EditableTextDisplay = makePolymorphic(
14337
14340
  );
14338
14341
 
14339
14342
  // src/components/EditableText/EditableTextInput.tsx
14340
- import { isNotNil as isNotNil27 } from "@wistia/type-guards";
14341
14343
  import { useContext as useContext7, useEffect as useEffect17, useRef as useRef18 } from "react";
14342
14344
  import styled65 from "styled-components";
14345
+ import { isNotNil as isNotNil27 } from "@wistia/type-guards";
14343
14346
  import { jsx as jsx279 } from "react/jsx-runtime";
14344
14347
  var StyledInput2 = styled65(Input)`
14345
14348
  && {
@@ -14441,7 +14444,8 @@ var EditableTextInput = (props) => {
14441
14444
  onBlur: handleBlur2,
14442
14445
  onChange: handleChange,
14443
14446
  onFocus: (event) => {
14444
- event.currentTarget.select();
14447
+ const { length } = event.currentTarget.value;
14448
+ event.currentTarget.setSelectionRange(length, length);
14445
14449
  },
14446
14450
  onKeyDown: handleKeyDown,
14447
14451
  placeholder,