@wistia/ui 0.13.4-beta.9ff09e76.3034e8a → 0.13.4-beta.c07d56cb.473fb3c
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 +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +18 -5
- 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.13.4-beta.
|
|
3
|
+
* @license @wistia/ui v0.13.4-beta.c07d56cb.473fb3c
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -12321,8 +12321,8 @@ var import_type_guards37 = require("@wistia/type-guards");
|
|
|
12321
12321
|
var import_jsx_runtime253 = require("react/jsx-runtime");
|
|
12322
12322
|
var StyledDataCard = import_styled_components67.default.div`
|
|
12323
12323
|
display: grid;
|
|
12324
|
-
grid-template-areas: 'label slot' 'value value'
|
|
12325
|
-
grid-template-rows: auto auto
|
|
12324
|
+
grid-template-areas: 'label slot' 'value value';
|
|
12325
|
+
grid-template-rows: auto auto;
|
|
12326
12326
|
grid-template-columns: auto auto;
|
|
12327
12327
|
gap: var(--wui-space-01);
|
|
12328
12328
|
padding: var(--wui-space-03);
|
|
@@ -12332,6 +12332,11 @@ var StyledDataCard = import_styled_components67.default.div`
|
|
|
12332
12332
|
position: relative;
|
|
12333
12333
|
transition: background var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
12334
12334
|
|
|
12335
|
+
&:has([data-wui-data-card-subtitle]) {
|
|
12336
|
+
grid-template-areas: 'label slot' 'value value' 'subtitle subtitle';
|
|
12337
|
+
grid-template-rows: auto auto auto;
|
|
12338
|
+
}
|
|
12339
|
+
|
|
12335
12340
|
&[data-click-region] {
|
|
12336
12341
|
[data-wui-data-card-hover-icon] {
|
|
12337
12342
|
opacity: 0;
|
|
@@ -12418,7 +12423,7 @@ var StyledDataCardTrendContainer = import_styled_components67.default.div`
|
|
|
12418
12423
|
bottom: var(--wui-space-01);
|
|
12419
12424
|
right: var(--wui-space-01);
|
|
12420
12425
|
`;
|
|
12421
|
-
var
|
|
12426
|
+
var StyledSubtitle = (0, import_styled_components67.default)(Text)`
|
|
12422
12427
|
grid-area: subtitle;
|
|
12423
12428
|
`;
|
|
12424
12429
|
var DataCardInner = ({
|
|
@@ -12453,7 +12458,14 @@ var DataCardInner = ({
|
|
|
12453
12458
|
}
|
|
12454
12459
|
),
|
|
12455
12460
|
(0, import_type_guards37.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledSlot, { children: upperRightSlot }),
|
|
12456
|
-
(0, import_type_guards37.isNotNull)(subtitle) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
12461
|
+
(0, import_type_guards37.isNotNull)(subtitle) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
12462
|
+
StyledSubtitle,
|
|
12463
|
+
{
|
|
12464
|
+
"data-wui-data-card-subtitle": true,
|
|
12465
|
+
variant: "label4",
|
|
12466
|
+
children: subtitle
|
|
12467
|
+
}
|
|
12468
|
+
),
|
|
12457
12469
|
(0, import_type_guards37.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledDataCardTrendContainer, { children: trend })
|
|
12458
12470
|
]
|
|
12459
12471
|
}
|
|
@@ -12516,6 +12528,7 @@ var DataCards = ({
|
|
|
12516
12528
|
...props,
|
|
12517
12529
|
$cardMaxWidth: cardMaxWidth,
|
|
12518
12530
|
$colorScheme: colorScheme,
|
|
12531
|
+
alignItems: "stretch",
|
|
12519
12532
|
direction: "row",
|
|
12520
12533
|
fill: "horizontal",
|
|
12521
12534
|
gap: "space-02",
|