@wistia/ui 0.18.17-beta.c1f00b80.e6809d4 → 0.18.18-beta.5671ee8e.fdf9f16
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 +21 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +21 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.18-beta.5671ee8e.fdf9f16
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14159,7 +14159,6 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14159
14159
|
animation: ${pulse} 1.5s var(--wui-motion-ease-in-out) 0.5s infinite;
|
|
14160
14160
|
color: transparent;
|
|
14161
14161
|
user-select: none;
|
|
14162
|
-
pointer-events: none;
|
|
14163
14162
|
border-radius: var(--wui-border-radius-01);
|
|
14164
14163
|
width: fit-content;
|
|
14165
14164
|
}
|
|
@@ -14208,12 +14207,14 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14208
14207
|
`;
|
|
14209
14208
|
var StyledLabel3 = (0, import_styled_components77.styled)(Heading)`
|
|
14210
14209
|
grid-area: label;
|
|
14210
|
+
|
|
14211
14211
|
&[data-wui-data-card-skeleton='true'] {
|
|
14212
14212
|
width: 80px;
|
|
14213
14213
|
}
|
|
14214
14214
|
`;
|
|
14215
14215
|
var StyledValue = (0, import_styled_components77.styled)(Heading)`
|
|
14216
14216
|
grid-area: value;
|
|
14217
|
+
|
|
14217
14218
|
&[data-wui-data-card-skeleton='true'] {
|
|
14218
14219
|
width: min(90%, 156px);
|
|
14219
14220
|
}
|
|
@@ -14251,7 +14252,7 @@ var DataCardInner = ({
|
|
|
14251
14252
|
StyledLabel3,
|
|
14252
14253
|
{
|
|
14253
14254
|
"data-wui-data-card-skeleton": isLoading,
|
|
14254
|
-
renderAs: "
|
|
14255
|
+
renderAs: "span",
|
|
14255
14256
|
variant: "heading6",
|
|
14256
14257
|
children: label
|
|
14257
14258
|
}
|
|
@@ -14260,7 +14261,7 @@ var DataCardInner = ({
|
|
|
14260
14261
|
StyledValue,
|
|
14261
14262
|
{
|
|
14262
14263
|
"data-wui-data-card-skeleton": isLoading,
|
|
14263
|
-
renderAs: "
|
|
14264
|
+
renderAs: "span",
|
|
14264
14265
|
variant: "heading3",
|
|
14265
14266
|
children: value
|
|
14266
14267
|
}
|
|
@@ -14313,29 +14314,42 @@ var import_styled_components78 = require("styled-components");
|
|
|
14313
14314
|
var import_jsx_runtime279 = require("react/jsx-runtime");
|
|
14314
14315
|
var StyledDataCards = (0, import_styled_components78.styled)(Box)`
|
|
14315
14316
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
14317
|
+
--wui-data-cards-column-count: ${({ $columns }) => $columns === "auto" ? void 0 : $columns};
|
|
14318
|
+
--wui-data-cards-total-column-gap-width: calc(var(--wui-data-cards-column-count) - 1) *
|
|
14319
|
+
var(--wui-space-02);
|
|
14320
|
+
--wui-data-cards-column-width: calc(
|
|
14321
|
+
(100% - var(--wui-data-cards-total-column-gap-width)) / var(--wui-data-cards-column-count)
|
|
14322
|
+
);
|
|
14316
14323
|
|
|
14317
14324
|
> * {
|
|
14318
|
-
min-width:
|
|
14325
|
+
min-width: ${({ $cardMinWidth }) => $cardMinWidth};
|
|
14326
|
+
flex-basis: var(--wui-data-cards-column-width, 0);
|
|
14319
14327
|
max-width: ${({ $cardMaxWidth }) => $cardMaxWidth};
|
|
14320
14328
|
}
|
|
14321
14329
|
`;
|
|
14322
14330
|
var DataCards = ({
|
|
14323
14331
|
children,
|
|
14332
|
+
cardMinWidth = "120px",
|
|
14324
14333
|
cardMaxWidth = "none",
|
|
14325
14334
|
colorScheme = "inherit",
|
|
14335
|
+
columns = "auto",
|
|
14326
14336
|
...props
|
|
14327
14337
|
}) => {
|
|
14338
|
+
const responsiveCardMinWidth = useResponsiveProp(cardMinWidth);
|
|
14339
|
+
const responsiveCardMaxWidth = useResponsiveProp(cardMaxWidth);
|
|
14340
|
+
const responsiveColumns = useResponsiveProp(columns);
|
|
14328
14341
|
return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
|
|
14329
14342
|
StyledDataCards,
|
|
14330
14343
|
{
|
|
14331
14344
|
...props,
|
|
14332
|
-
$cardMaxWidth:
|
|
14345
|
+
$cardMaxWidth: responsiveCardMaxWidth,
|
|
14346
|
+
$cardMinWidth: responsiveCardMinWidth,
|
|
14333
14347
|
$colorScheme: colorScheme,
|
|
14348
|
+
$columns: responsiveColumns,
|
|
14334
14349
|
alignItems: "stretch",
|
|
14335
14350
|
direction: "row",
|
|
14336
14351
|
fill: "horizontal",
|
|
14337
14352
|
gap: "space-02",
|
|
14338
|
-
renderAs: "dl",
|
|
14339
14353
|
wrapItems: true,
|
|
14340
14354
|
children
|
|
14341
14355
|
}
|