@wistia/ui 0.15.14-beta.7f547429.3a64c1e → 0.15.14-beta.859db709.362cab6

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.d.mts CHANGED
@@ -589,7 +589,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
589
589
  /**
590
590
  * The text to display in the `Badge`
591
591
  */
592
- label: ReactNode;
592
+ label?: ReactNode;
593
593
  /**
594
594
  * The variant of the `Badge`
595
595
  */
@@ -610,7 +610,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
610
610
  /**
611
611
  * The text to display in the `Badge`
612
612
  */
613
- label: ReactNode;
613
+ label?: ReactNode;
614
614
  /**
615
615
  * The variant of the `Badge`
616
616
  */
package/dist/index.d.ts CHANGED
@@ -589,7 +589,7 @@ type BadgeProps = ComponentPropsWithoutRef<'div'> & {
589
589
  /**
590
590
  * The text to display in the `Badge`
591
591
  */
592
- label: ReactNode;
592
+ label?: ReactNode;
593
593
  /**
594
594
  * The variant of the `Badge`
595
595
  */
@@ -610,7 +610,7 @@ declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
610
610
  /**
611
611
  * The text to display in the `Badge`
612
612
  */
613
- label: ReactNode;
613
+ label?: ReactNode;
614
614
  /**
615
615
  * The variant of the `Badge`
616
616
  */
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.14-beta.7f547429.3a64c1e
3
+ * @license @wistia/ui v0.15.14-beta.859db709.362cab6
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -8296,7 +8296,7 @@ var Badge = forwardRef4(
8296
8296
  $variant: variant,
8297
8297
  children: [
8298
8298
  hasIcon ? icon : null,
8299
- /* @__PURE__ */ jsx205("span", { children: label })
8299
+ isNotNil9(label) ? /* @__PURE__ */ jsx205("span", { children: label }) : null
8300
8300
  ]
8301
8301
  }
8302
8302
  );
@@ -14178,44 +14178,10 @@ import { createContext as createContext7, useMemo as useMemo13, useState as useS
14178
14178
  import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
14179
14179
  import styled63 from "styled-components";
14180
14180
  import { jsx as jsx277 } from "react/jsx-runtime";
14181
- var LARGE_PADDING = "var(--wui-space-02)";
14182
- var SMALL_PADDING = "var(--wui-space-01)";
14183
- var getPaddingForVariant = (variant) => {
14184
- const largePaddingVariants = [
14185
- "hero",
14186
- "heading1",
14187
- "heading2",
14188
- "heading3",
14189
- "heading4",
14190
- "heading5",
14191
- "body1",
14192
- "label1",
14193
- "body1Mono"
14194
- ];
14195
- const smallPaddingVariants = [
14196
- "heading6",
14197
- "body2",
14198
- "body3",
14199
- "body4",
14200
- "label2",
14201
- "label3",
14202
- "label4",
14203
- "body2Mono",
14204
- "body3Mono",
14205
- "body4Mono"
14206
- ];
14207
- if (largePaddingVariants.includes(variant)) {
14208
- return LARGE_PADDING;
14209
- }
14210
- if (smallPaddingVariants.includes(variant)) {
14211
- return SMALL_PADDING;
14212
- }
14213
- return SMALL_PADDING;
14214
- };
14215
14181
  var StyledEditableTextRoot = styled63.div`
14216
14182
  display: contents;
14217
14183
 
14218
- --wui-editable-text-padding: ${({ $typographicVariant }) => getPaddingForVariant($typographicVariant)};
14184
+ --wui-editable-text-padding: var(--wui-space-01);
14219
14185
  --wui-editable-text-border-radius: var(--wui-border-radius-01);
14220
14186
  `;
14221
14187
  var EditableTextContext = createContext7(null);
@@ -14313,7 +14279,6 @@ var EditableTextRoot = ({
14313
14279
  return /* @__PURE__ */ jsx277(
14314
14280
  StyledEditableTextRoot,
14315
14281
  {
14316
- $typographicVariant: typographicVariant,
14317
14282
  "data-testid": "editable-text-root",
14318
14283
  "data-wui-editable-text-root": true,
14319
14284
  "data-wui-editable-text-state": getState(),