@wistia/ui 0.18.5-beta.ff33394e.4ea462b → 0.18.6-beta.2f5ee95d.99f722c
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 +9 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -19
- package/dist/index.d.ts +5 -19
- package/dist/index.mjs +9 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -3
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.6-beta.2f5ee95d.99f722c
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -160,7 +160,6 @@ __export(index_exports, {
|
|
|
160
160
|
TabsList: () => TabsList,
|
|
161
161
|
TabsTrigger: () => TabsTrigger,
|
|
162
162
|
Tag: () => Tag,
|
|
163
|
-
Test: () => Test,
|
|
164
163
|
Text: () => Text,
|
|
165
164
|
Thumbnail: () => Thumbnail,
|
|
166
165
|
ThumbnailBadge: () => ThumbnailBadge,
|
|
@@ -8473,7 +8472,7 @@ var Badge = (0, import_react26.forwardRef)(
|
|
|
8473
8472
|
$variant: variant,
|
|
8474
8473
|
children: [
|
|
8475
8474
|
hasIcon ? icon : null,
|
|
8476
|
-
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)("span", { children: label })
|
|
8475
|
+
(0, import_type_guards19.isNotNil)(label) ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("span", { children: label }) : null
|
|
8477
8476
|
]
|
|
8478
8477
|
}
|
|
8479
8478
|
);
|
|
@@ -9249,7 +9248,7 @@ var Banner = ({
|
|
|
9249
9248
|
onClose,
|
|
9250
9249
|
orientation = "horizontal",
|
|
9251
9250
|
primaryAction,
|
|
9252
|
-
prominence = "
|
|
9251
|
+
prominence = "primary",
|
|
9253
9252
|
secondaryAction,
|
|
9254
9253
|
...props
|
|
9255
9254
|
}) => {
|
|
@@ -9274,10 +9273,10 @@ var Banner = ({
|
|
|
9274
9273
|
const hasActions = (0, import_type_guards25.isNotNil)(primaryAction) || (0, import_type_guards25.isNotNil)(secondaryAction);
|
|
9275
9274
|
const contentDirection = (0, import_react31.useMemo)(() => {
|
|
9276
9275
|
if (orientation === "horizontal" && !hasActions) return "row";
|
|
9277
|
-
return !shouldShowImage && prominence === "
|
|
9276
|
+
return !shouldShowImage && prominence === "primary" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
|
|
9278
9277
|
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
9279
|
-
const headingVariant = isSmallContainer || prominence === "
|
|
9280
|
-
const textVariant = prominence === "
|
|
9278
|
+
const headingVariant = isSmallContainer || prominence === "primary" ? "heading5" : "heading3";
|
|
9279
|
+
const textVariant = prominence === "primary" || isSmallContainer ? "body3" : "body2";
|
|
9281
9280
|
const buttonSize = isSmallContainer ? "sm" : "md";
|
|
9282
9281
|
return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
|
|
9283
9282
|
StyledBanner,
|
|
@@ -9542,7 +9541,7 @@ var StyledCard = (0, import_styled_components37.styled)(Box)`
|
|
|
9542
9541
|
width: ${({ $width }) => $width};
|
|
9543
9542
|
`;
|
|
9544
9543
|
var prominenceMap = {
|
|
9545
|
-
|
|
9544
|
+
primary: {
|
|
9546
9545
|
backgroundColor: "var(--wui-color-bg-surface)",
|
|
9547
9546
|
borderColor: "var(--wui-color-border)"
|
|
9548
9547
|
},
|
|
@@ -13743,7 +13742,7 @@ var FilterMenu = (0, import_react60.forwardRef)(
|
|
|
13743
13742
|
border: false,
|
|
13744
13743
|
borderRadius: "border-radius-02",
|
|
13745
13744
|
paddingSize: "space-01",
|
|
13746
|
-
prominence: "
|
|
13745
|
+
prominence: "primary",
|
|
13747
13746
|
style: {
|
|
13748
13747
|
position: "absolute",
|
|
13749
13748
|
top: 0,
|
|
@@ -13798,7 +13797,7 @@ var FilterMenu = (0, import_react60.forwardRef)(
|
|
|
13798
13797
|
border: false,
|
|
13799
13798
|
borderRadius: "border-radius-02",
|
|
13800
13799
|
paddingSize: "space-01",
|
|
13801
|
-
prominence: "
|
|
13800
|
+
prominence: "primary",
|
|
13802
13801
|
style: {
|
|
13803
13802
|
position: "absolute",
|
|
13804
13803
|
bottom: 0,
|
|
@@ -18612,15 +18611,6 @@ var SplitButton = ({
|
|
|
18612
18611
|
] });
|
|
18613
18612
|
};
|
|
18614
18613
|
SplitButton.displayName = "SplitButton_UI";
|
|
18615
|
-
|
|
18616
|
-
// src/components/Test/Test.tsx
|
|
18617
|
-
var import_styled_components131 = require("styled-components");
|
|
18618
|
-
var import_jsx_runtime332 = require("react/jsx-runtime");
|
|
18619
|
-
var StyledTest = import_styled_components131.styled.div`
|
|
18620
|
-
/* add styles here */
|
|
18621
|
-
`;
|
|
18622
|
-
var Test = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(StyledTest, { ...props, children });
|
|
18623
|
-
Test.displayName = "Test_UI";
|
|
18624
18614
|
// Annotate the CommonJS export names for ESM import in node:
|
|
18625
18615
|
0 && (module.exports = {
|
|
18626
18616
|
ActionButton,
|
|
@@ -18744,7 +18734,6 @@ Test.displayName = "Test_UI";
|
|
|
18744
18734
|
TabsList,
|
|
18745
18735
|
TabsTrigger,
|
|
18746
18736
|
Tag,
|
|
18747
|
-
Test,
|
|
18748
18737
|
Text,
|
|
18749
18738
|
Thumbnail,
|
|
18750
18739
|
ThumbnailBadge,
|