@wistia/ui 0.13.1 → 0.13.2-beta.0f8bc2be.fe66503

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.13.1
3
+ * @license @wistia/ui v0.13.2-beta.0f8bc2be.fe66503
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -10610,10 +10610,7 @@ var Input = (0, import_react44.forwardRef)(
10610
10610
  ...props
10611
10611
  }, externalRef) => {
10612
10612
  const internalRef = (0, import_react44.useRef)();
10613
- const ref = (
10614
- // eslint-disable-next-line react-compiler/react-compiler
10615
- (0, import_type_guards36.isNotNil)(externalRef) && (0, import_type_guards36.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
10616
- );
10613
+ const ref = (0, import_type_guards36.isNotNil)(externalRef) && (0, import_type_guards36.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef;
10617
10614
  let leftIconToDisplay = leftIcon;
10618
10615
  if ((0, import_type_guards36.isNil)(leftIcon) && type === "search") {
10619
10616
  leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon, { type: "search" });
@@ -10680,11 +10677,13 @@ var StyledInput = (0, import_styled_components56.default)(Input)`
10680
10677
  }
10681
10678
 
10682
10679
  && {
10683
- --wui-input-font-size: var(--wui-typography-heading-1-size);
10684
- --wui-input-font-weight: var(--wui-typography-heading-1-weight);
10685
- --wui-input-line-height: var(--wui-typography-heading-1-line-height);
10680
+ ${({ $variant }) => variantStyleMap[$variant]}
10681
+ /* The input font styles (edit mode) needs the same font styles as Heading */
10682
+ --wui-input-font-size: var(--font-size);
10683
+ --wui-input-font-weight: var(--font-weight);
10684
+ --wui-input-line-height: var(--line-height);
10686
10685
 
10687
- font-family: var(--wui-typography-heading-1-family);
10686
+ font-family: var(--font-family);
10688
10687
  width: 100%;
10689
10688
  padding: var(--wui-space-02);
10690
10689
  border: none;
@@ -10716,6 +10715,7 @@ var EditableHeading = ({
10716
10715
  onEditingChange,
10717
10716
  tooltipText = "Click to edit title",
10718
10717
  ariaLabel = "Edit title",
10718
+ variant = "heading1",
10719
10719
  __forceEditing = false,
10720
10720
  editingDisabled = false
10721
10721
  }) => {
@@ -10762,7 +10762,7 @@ var EditableHeading = ({
10762
10762
  ref: headingRef,
10763
10763
  $editingDisabled: editingDisabled,
10764
10764
  onClick: () => handleSetEditing(true),
10765
- variant: "heading1",
10765
+ variant,
10766
10766
  children: value
10767
10767
  }
10768
10768
  );
@@ -10774,6 +10774,7 @@ var EditableHeading = ({
10774
10774
  StyledInput,
10775
10775
  {
10776
10776
  $height: headingHeight,
10777
+ $variant: variant,
10777
10778
  autoFocus: true,
10778
10779
  fullWidth: true,
10779
10780
  onBlur: handleFinishEditing,