@wistia/ui 0.5.5-beta.05a00a72.6b7da9c → 0.5.5

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
@@ -1699,7 +1699,7 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
1699
1699
  /**
1700
1700
  * Used for rending paragraphs and inline text.
1701
1701
  */
1702
- declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
1702
+ declare const Text: (<C extends ElementType = "div">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
1703
1703
 
1704
1704
  type MenuItemLabelProps = {
1705
1705
  /**
package/dist/index.d.ts CHANGED
@@ -1699,7 +1699,7 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
1699
1699
  /**
1700
1700
  * Used for rending paragraphs and inline text.
1701
1701
  */
1702
- declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
1702
+ declare const Text: (<C extends ElementType = "div">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
1703
1703
 
1704
1704
  type MenuItemLabelProps = {
1705
1705
  /**
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.5.5-beta.05a00a72.6b7da9c
3
+ * @license @wistia/ui v0.5.5
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7234,7 +7234,6 @@ var body1TextStyle = css19`
7234
7234
  --font-size: var(--wui-typography-body-1-size);
7235
7235
  --font-weight: var(--wui-typography-body-1-weight);
7236
7236
  --line-height: var(--wui-typography-body-1-line-height);
7237
- --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
7238
7237
  ${bodyBoldStyles}
7239
7238
  `;
7240
7239
  var body2TextStyle = css19`
@@ -7242,7 +7241,6 @@ var body2TextStyle = css19`
7242
7241
  --font-size: var(--wui-typography-body-2-size);
7243
7242
  --font-weight: var(--wui-typography-body-2-weight);
7244
7243
  --line-height: var(--wui-typography-body-2-line-height);
7245
- --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
7246
7244
  ${bodyBoldStyles}
7247
7245
  `;
7248
7246
  var body3TextStyle = css19`
@@ -7250,7 +7248,6 @@ var body3TextStyle = css19`
7250
7248
  --font-size: var(--wui-typography-body-3-size);
7251
7249
  --font-weight: var(--wui-typography-body-3-weight);
7252
7250
  --line-height: var(--wui-typography-body-3-line-height);
7253
- --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
7254
7251
  ${bodyBoldStyles}
7255
7252
  `;
7256
7253
  var body4TextStyle = css19`
@@ -7258,7 +7255,6 @@ var body4TextStyle = css19`
7258
7255
  --font-size: var(--wui-typography-body-4-size);
7259
7256
  --font-weight: var(--wui-typography-body-4-weight);
7260
7257
  --line-height: var(--wui-typography-body-4-line-height);
7261
- --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
7262
7258
  ${bodyBoldStyles}
7263
7259
  `;
7264
7260
  var label1TextStyle = css19`
@@ -7319,23 +7315,6 @@ var variantStyleMap2 = {
7319
7315
  label3: label3TextStyle,
7320
7316
  label4: label4TextStyle
7321
7317
  };
7322
- var bodyElement = "p";
7323
- var labelElement = "span";
7324
- var DEFAULT_ELEMENT3 = bodyElement;
7325
- var variantElementMap2 = {
7326
- body1: DEFAULT_ELEMENT3,
7327
- body2: DEFAULT_ELEMENT3,
7328
- body3: DEFAULT_ELEMENT3,
7329
- body4: DEFAULT_ELEMENT3,
7330
- body1Mono: DEFAULT_ELEMENT3,
7331
- body2Mono: DEFAULT_ELEMENT3,
7332
- body3Mono: DEFAULT_ELEMENT3,
7333
- body4Mono: DEFAULT_ELEMENT3,
7334
- label1: labelElement,
7335
- label2: labelElement,
7336
- label3: labelElement,
7337
- label4: labelElement
7338
- };
7339
7318
  var StyledText = styled21.div`
7340
7319
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7341
7320
  --text-color: ${({ $prominence, $disabled }) => {
@@ -7374,12 +7353,9 @@ var StyledText = styled21.div`
7374
7353
  `}
7375
7354
  ${({ as }) => as === "p" && css19`
7376
7355
  display: block;
7377
-
7378
- + p {
7379
- margin-top: var(--paragraph-spacing, var(--wui-space-04));
7380
- }
7381
7356
  `}
7382
7357
  `;
7358
+ var DEFAULT_ELEMENT3 = "div";
7383
7359
  var TextComponent = forwardRef8(
7384
7360
  ({
7385
7361
  align = "left",
@@ -7405,7 +7381,7 @@ var TextComponent = forwardRef8(
7405
7381
  $preventUserSelect: preventUserSelect,
7406
7382
  $prominence: prominence,
7407
7383
  $variant: variant,
7408
- as: renderAs ?? variantElementMap2[variant],
7384
+ as: renderAs ?? DEFAULT_ELEMENT3,
7409
7385
  ...otherProps
7410
7386
  }
7411
7387
  );