@wistia/ui 0.18.5-beta.1d79a17c.93d1dd4 → 0.18.5-beta.313737d3.0f03f8c
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 +19 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.mjs +18 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.5-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.5-beta.313737d3.0f03f8c
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -160,6 +160,7 @@ __export(index_exports, {
|
|
|
160
160
|
TabsList: () => TabsList,
|
|
161
161
|
TabsTrigger: () => TabsTrigger,
|
|
162
162
|
Tag: () => Tag,
|
|
163
|
+
Test: () => Test,
|
|
163
164
|
Text: () => Text,
|
|
164
165
|
Thumbnail: () => Thumbnail,
|
|
165
166
|
ThumbnailBadge: () => ThumbnailBadge,
|
|
@@ -9248,7 +9249,7 @@ var Banner = ({
|
|
|
9248
9249
|
onClose,
|
|
9249
9250
|
orientation = "horizontal",
|
|
9250
9251
|
primaryAction,
|
|
9251
|
-
prominence = "
|
|
9252
|
+
prominence = "default",
|
|
9252
9253
|
secondaryAction,
|
|
9253
9254
|
...props
|
|
9254
9255
|
}) => {
|
|
@@ -9273,10 +9274,10 @@ var Banner = ({
|
|
|
9273
9274
|
const hasActions = (0, import_type_guards25.isNotNil)(primaryAction) || (0, import_type_guards25.isNotNil)(secondaryAction);
|
|
9274
9275
|
const contentDirection = (0, import_react31.useMemo)(() => {
|
|
9275
9276
|
if (orientation === "horizontal" && !hasActions) return "row";
|
|
9276
|
-
return !shouldShowImage && prominence === "
|
|
9277
|
+
return !shouldShowImage && prominence === "default" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
|
|
9277
9278
|
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
9278
|
-
const headingVariant = isSmallContainer || prominence === "
|
|
9279
|
-
const textVariant = prominence === "
|
|
9279
|
+
const headingVariant = isSmallContainer || prominence === "default" ? "heading5" : "heading3";
|
|
9280
|
+
const textVariant = prominence === "default" || isSmallContainer ? "body3" : "body2";
|
|
9280
9281
|
const buttonSize = isSmallContainer ? "sm" : "md";
|
|
9281
9282
|
return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
|
|
9282
9283
|
StyledBanner,
|
|
@@ -9541,7 +9542,7 @@ var StyledCard = (0, import_styled_components37.styled)(Box)`
|
|
|
9541
9542
|
width: ${({ $width }) => $width};
|
|
9542
9543
|
`;
|
|
9543
9544
|
var prominenceMap = {
|
|
9544
|
-
|
|
9545
|
+
default: {
|
|
9545
9546
|
backgroundColor: "var(--wui-color-bg-surface)",
|
|
9546
9547
|
borderColor: "var(--wui-color-border)"
|
|
9547
9548
|
},
|
|
@@ -13742,7 +13743,7 @@ var FilterMenu = (0, import_react60.forwardRef)(
|
|
|
13742
13743
|
border: false,
|
|
13743
13744
|
borderRadius: "border-radius-02",
|
|
13744
13745
|
paddingSize: "space-01",
|
|
13745
|
-
prominence: "
|
|
13746
|
+
prominence: "default",
|
|
13746
13747
|
style: {
|
|
13747
13748
|
position: "absolute",
|
|
13748
13749
|
top: 0,
|
|
@@ -13797,7 +13798,7 @@ var FilterMenu = (0, import_react60.forwardRef)(
|
|
|
13797
13798
|
border: false,
|
|
13798
13799
|
borderRadius: "border-radius-02",
|
|
13799
13800
|
paddingSize: "space-01",
|
|
13800
|
-
prominence: "
|
|
13801
|
+
prominence: "default",
|
|
13801
13802
|
style: {
|
|
13802
13803
|
position: "absolute",
|
|
13803
13804
|
bottom: 0,
|
|
@@ -18611,6 +18612,15 @@ var SplitButton = ({
|
|
|
18611
18612
|
] });
|
|
18612
18613
|
};
|
|
18613
18614
|
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";
|
|
18614
18624
|
// Annotate the CommonJS export names for ESM import in node:
|
|
18615
18625
|
0 && (module.exports = {
|
|
18616
18626
|
ActionButton,
|
|
@@ -18734,6 +18744,7 @@ SplitButton.displayName = "SplitButton_UI";
|
|
|
18734
18744
|
TabsList,
|
|
18735
18745
|
TabsTrigger,
|
|
18736
18746
|
Tag,
|
|
18747
|
+
Test,
|
|
18737
18748
|
Text,
|
|
18738
18749
|
Thumbnail,
|
|
18739
18750
|
ThumbnailBadge,
|