@wistia/ui 0.19.0 → 0.19.1

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.19.0
3
+ * @license @wistia/ui v0.19.1
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -14211,6 +14211,10 @@ var StyledLabel3 = (0, import_styled_components77.styled)(Heading)`
14211
14211
  &[data-wui-data-card-skeleton='true'] {
14212
14212
  width: 80px;
14213
14213
  }
14214
+
14215
+ button {
14216
+ text-align: left;
14217
+ }
14214
14218
  `;
14215
14219
  var StyledValue = (0, import_styled_components77.styled)(Heading)`
14216
14220
  grid-area: value;
@@ -14252,7 +14256,7 @@ var DataCardInner = ({
14252
14256
  StyledLabel3,
14253
14257
  {
14254
14258
  "data-wui-data-card-skeleton": isLoading,
14255
- renderAs: "dt",
14259
+ renderAs: "div",
14256
14260
  variant: "heading6",
14257
14261
  children: label
14258
14262
  }
@@ -14261,7 +14265,7 @@ var DataCardInner = ({
14261
14265
  StyledValue,
14262
14266
  {
14263
14267
  "data-wui-data-card-skeleton": isLoading,
14264
- renderAs: "dd",
14268
+ renderAs: "div",
14265
14269
  variant: "heading3",
14266
14270
  children: value
14267
14271
  }
@@ -14314,9 +14318,16 @@ var import_styled_components78 = require("styled-components");
14314
14318
  var import_jsx_runtime279 = require("react/jsx-runtime");
14315
14319
  var StyledDataCards = (0, import_styled_components78.styled)(Box)`
14316
14320
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
14321
+ --wui-data-cards-column-count: ${({ $columns }) => $columns === "auto" ? void 0 : $columns};
14322
+ --wui-data-cards-total-column-gap-width: calc(var(--wui-data-cards-column-count) - 1) *
14323
+ var(--wui-space-02);
14324
+ --wui-data-cards-column-width: calc(
14325
+ (100% - var(--wui-data-cards-total-column-gap-width)) / var(--wui-data-cards-column-count)
14326
+ );
14317
14327
 
14318
14328
  > * {
14319
14329
  min-width: 120px;
14330
+ flex-basis: var(--wui-data-cards-column-width, 0);
14320
14331
  max-width: ${({ $cardMaxWidth }) => $cardMaxWidth};
14321
14332
  }
14322
14333
  `;
@@ -14324,19 +14335,22 @@ var DataCards = ({
14324
14335
  children,
14325
14336
  cardMaxWidth = "none",
14326
14337
  colorScheme = "inherit",
14338
+ columns = "auto",
14327
14339
  ...props
14328
14340
  }) => {
14341
+ const responsiveCardMaxWidth = useResponsiveProp(cardMaxWidth);
14342
+ const responsiveColumns = useResponsiveProp(columns);
14329
14343
  return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
14330
14344
  StyledDataCards,
14331
14345
  {
14332
14346
  ...props,
14333
- $cardMaxWidth: cardMaxWidth,
14347
+ $cardMaxWidth: responsiveCardMaxWidth,
14334
14348
  $colorScheme: colorScheme,
14349
+ $columns: responsiveColumns,
14335
14350
  alignItems: "stretch",
14336
14351
  direction: "row",
14337
14352
  fill: "horizontal",
14338
14353
  gap: "space-02",
14339
- renderAs: "dl",
14340
14354
  wrapItems: true,
14341
14355
  children
14342
14356
  }