@wistia/ui 0.8.12 → 0.8.13-beta.b4cfc6cf.8ecf568
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 +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.8.
|
|
3
|
+
* @license @wistia/ui v0.8.13-beta.b4cfc6cf.8ecf568
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1274,6 +1274,7 @@ var colorAliasTokens = import_styled_components3.css`
|
|
|
1274
1274
|
// src/css/designTokens/borderRadius.tsx
|
|
1275
1275
|
var import_styled_components4 = require("styled-components");
|
|
1276
1276
|
var borderRadiusTokens = import_styled_components4.css`
|
|
1277
|
+
--wui-border-radius-00: 0;
|
|
1277
1278
|
--wui-border-radius-01: 4px;
|
|
1278
1279
|
--wui-border-radius-02: 8px;
|
|
1279
1280
|
--wui-border-radius-03: 16px;
|
|
@@ -2734,9 +2735,7 @@ var scopeTab = (node, event) => {
|
|
|
2734
2735
|
}
|
|
2735
2736
|
};
|
|
2736
2737
|
var createAriaHider = (containerNode, selector) => {
|
|
2737
|
-
|
|
2738
|
-
selector = "body > :not(script)";
|
|
2739
|
-
}
|
|
2738
|
+
selector ??= "body > :not(script)";
|
|
2740
2739
|
const rootNodes = Array.from(document.querySelectorAll(selector)).map((node) => {
|
|
2741
2740
|
if (node.contains(containerNode)) {
|
|
2742
2741
|
return void 0;
|
|
@@ -8040,7 +8039,7 @@ var StyledCard = (0, import_styled_components31.default)(Box)`
|
|
|
8040
8039
|
background-color: ${({ $backgroundColor }) => $backgroundColor};
|
|
8041
8040
|
outline: 2px solid ${({ $borderColor }) => $borderColor};
|
|
8042
8041
|
outline-offset: -2px;
|
|
8043
|
-
border-radius: var(--wui
|
|
8042
|
+
border-radius: ${({ $borderRadius }) => `var(--wui-${$borderRadius})`};
|
|
8044
8043
|
display: flex;
|
|
8045
8044
|
height: ${({ $height }) => $height};
|
|
8046
8045
|
width: ${({ $width }) => $width};
|
|
@@ -8061,13 +8060,14 @@ var prominenceMap = {
|
|
|
8061
8060
|
};
|
|
8062
8061
|
var Card = ({
|
|
8063
8062
|
children,
|
|
8064
|
-
paddingSize = "space-04",
|
|
8065
|
-
gap = "space-03",
|
|
8066
|
-
direction = "column",
|
|
8067
|
-
colorScheme = "inherit",
|
|
8068
|
-
prominence = "secondary",
|
|
8069
8063
|
border = false,
|
|
8064
|
+
borderRadius = "border-radius-04",
|
|
8065
|
+
colorScheme = "inherit",
|
|
8066
|
+
direction = "column",
|
|
8067
|
+
gap = "space-03",
|
|
8070
8068
|
height,
|
|
8069
|
+
paddingSize = "space-04",
|
|
8070
|
+
prominence = "secondary",
|
|
8071
8071
|
width,
|
|
8072
8072
|
...props
|
|
8073
8073
|
}) => /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
@@ -8075,6 +8075,7 @@ var Card = ({
|
|
|
8075
8075
|
{
|
|
8076
8076
|
$backgroundColor: prominenceMap[prominence].backgroundColor,
|
|
8077
8077
|
$borderColor: border ? prominenceMap[prominence].borderColor : "transparent",
|
|
8078
|
+
$borderRadius: borderRadius,
|
|
8078
8079
|
$colorScheme: colorScheme,
|
|
8079
8080
|
$height: height,
|
|
8080
8081
|
$paddingSize: paddingSize,
|