@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.cjs 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
  *
@@ -7337,7 +7337,6 @@ var body1TextStyle = import_styled_components36.css`
7337
7337
  --font-size: var(--wui-typography-body-1-size);
7338
7338
  --font-weight: var(--wui-typography-body-1-weight);
7339
7339
  --line-height: var(--wui-typography-body-1-line-height);
7340
- --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
7341
7340
  ${bodyBoldStyles}
7342
7341
  `;
7343
7342
  var body2TextStyle = import_styled_components36.css`
@@ -7345,7 +7344,6 @@ var body2TextStyle = import_styled_components36.css`
7345
7344
  --font-size: var(--wui-typography-body-2-size);
7346
7345
  --font-weight: var(--wui-typography-body-2-weight);
7347
7346
  --line-height: var(--wui-typography-body-2-line-height);
7348
- --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
7349
7347
  ${bodyBoldStyles}
7350
7348
  `;
7351
7349
  var body3TextStyle = import_styled_components36.css`
@@ -7353,7 +7351,6 @@ var body3TextStyle = import_styled_components36.css`
7353
7351
  --font-size: var(--wui-typography-body-3-size);
7354
7352
  --font-weight: var(--wui-typography-body-3-weight);
7355
7353
  --line-height: var(--wui-typography-body-3-line-height);
7356
- --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
7357
7354
  ${bodyBoldStyles}
7358
7355
  `;
7359
7356
  var body4TextStyle = import_styled_components36.css`
@@ -7361,7 +7358,6 @@ var body4TextStyle = import_styled_components36.css`
7361
7358
  --font-size: var(--wui-typography-body-4-size);
7362
7359
  --font-weight: var(--wui-typography-body-4-weight);
7363
7360
  --line-height: var(--wui-typography-body-4-line-height);
7364
- --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
7365
7361
  ${bodyBoldStyles}
7366
7362
  `;
7367
7363
  var label1TextStyle = import_styled_components36.css`
@@ -7422,23 +7418,6 @@ var variantStyleMap2 = {
7422
7418
  label3: label3TextStyle,
7423
7419
  label4: label4TextStyle
7424
7420
  };
7425
- var bodyElement = "p";
7426
- var labelElement = "span";
7427
- var DEFAULT_ELEMENT3 = bodyElement;
7428
- var variantElementMap2 = {
7429
- body1: DEFAULT_ELEMENT3,
7430
- body2: DEFAULT_ELEMENT3,
7431
- body3: DEFAULT_ELEMENT3,
7432
- body4: DEFAULT_ELEMENT3,
7433
- body1Mono: DEFAULT_ELEMENT3,
7434
- body2Mono: DEFAULT_ELEMENT3,
7435
- body3Mono: DEFAULT_ELEMENT3,
7436
- body4Mono: DEFAULT_ELEMENT3,
7437
- label1: labelElement,
7438
- label2: labelElement,
7439
- label3: labelElement,
7440
- label4: labelElement
7441
- };
7442
7421
  var StyledText = import_styled_components36.default.div`
7443
7422
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7444
7423
  --text-color: ${({ $prominence, $disabled }) => {
@@ -7477,12 +7456,9 @@ var StyledText = import_styled_components36.default.div`
7477
7456
  `}
7478
7457
  ${({ as }) => as === "p" && import_styled_components36.css`
7479
7458
  display: block;
7480
-
7481
- + p {
7482
- margin-top: var(--paragraph-spacing, var(--wui-space-04));
7483
- }
7484
7459
  `}
7485
7460
  `;
7461
+ var DEFAULT_ELEMENT3 = "div";
7486
7462
  var TextComponent = (0, import_react20.forwardRef)(
7487
7463
  ({
7488
7464
  align = "left",
@@ -7508,7 +7484,7 @@ var TextComponent = (0, import_react20.forwardRef)(
7508
7484
  $preventUserSelect: preventUserSelect,
7509
7485
  $prominence: prominence,
7510
7486
  $variant: variant,
7511
- as: renderAs ?? variantElementMap2[variant],
7487
+ as: renderAs ?? DEFAULT_ELEMENT3,
7512
7488
  ...otherProps
7513
7489
  }
7514
7490
  );