@wistia/ui 0.16.1-beta.538b5a81.8732735 → 0.17.0-beta.7d8dda34.110d981
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 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +11 -11
- 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.
|
|
3
|
+
* @license @wistia/ui v0.17.0-beta.7d8dda34.110d981
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8796,11 +8796,11 @@ var StyledHeading = import_styled_components29.styled.div`
|
|
|
8796
8796
|
line-height: var(--line-height);
|
|
8797
8797
|
color: var(--text-color);
|
|
8798
8798
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
8799
|
-
${({ $
|
|
8800
|
-
if ((0, import_type_guards22.isNotNil)($
|
|
8799
|
+
${({ $maxLines }) => {
|
|
8800
|
+
if ((0, import_type_guards22.isNotNil)($maxLines)) {
|
|
8801
8801
|
return import_styled_components29.css`
|
|
8802
8802
|
${ellipsisStyle};
|
|
8803
|
-
${lineClampCss($
|
|
8803
|
+
${lineClampCss($maxLines)};
|
|
8804
8804
|
`;
|
|
8805
8805
|
}
|
|
8806
8806
|
return void 0;
|
|
@@ -8837,7 +8837,7 @@ var HeadingComponent = (0, import_react28.forwardRef)(
|
|
|
8837
8837
|
maxChars,
|
|
8838
8838
|
preventUserSelect = false,
|
|
8839
8839
|
prominence = "primary",
|
|
8840
|
-
|
|
8840
|
+
maxLines,
|
|
8841
8841
|
variant = "heading1",
|
|
8842
8842
|
renderAs,
|
|
8843
8843
|
...props
|
|
@@ -8851,9 +8851,9 @@ var HeadingComponent = (0, import_react28.forwardRef)(
|
|
|
8851
8851
|
$colorScheme: colorScheme,
|
|
8852
8852
|
$disabled: disabled,
|
|
8853
8853
|
$inline: inline,
|
|
8854
|
+
$maxLines: maxLines,
|
|
8854
8855
|
$preventUserSelect: preventUserSelect,
|
|
8855
8856
|
$prominence: prominence,
|
|
8856
|
-
$truncate: truncate,
|
|
8857
8857
|
$variant: variant,
|
|
8858
8858
|
as: renderAs ?? variantElementMap[variant] ?? DEFAULT_ELEMENT2,
|
|
8859
8859
|
...props,
|
|
@@ -9021,11 +9021,11 @@ var StyledText = import_styled_components30.styled.div`
|
|
|
9021
9021
|
font-style: normal;
|
|
9022
9022
|
margin: 0;
|
|
9023
9023
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
9024
|
-
${({ $
|
|
9025
|
-
if ((0, import_type_guards23.isNotNil)($
|
|
9024
|
+
${({ $maxLines }) => {
|
|
9025
|
+
if ((0, import_type_guards23.isNotNil)($maxLines)) {
|
|
9026
9026
|
return import_styled_components30.css`
|
|
9027
9027
|
${ellipsisStyle};
|
|
9028
|
-
${lineClampCss($
|
|
9028
|
+
${lineClampCss($maxLines)};
|
|
9029
9029
|
`;
|
|
9030
9030
|
}
|
|
9031
9031
|
return void 0;
|
|
@@ -9060,7 +9060,7 @@ var TextComponent = (0, import_react29.forwardRef)(
|
|
|
9060
9060
|
maxChars,
|
|
9061
9061
|
preventUserSelect = false,
|
|
9062
9062
|
prominence = "primary",
|
|
9063
|
-
|
|
9063
|
+
maxLines,
|
|
9064
9064
|
variant = "body2",
|
|
9065
9065
|
renderAs,
|
|
9066
9066
|
...props
|
|
@@ -9074,9 +9074,9 @@ var TextComponent = (0, import_react29.forwardRef)(
|
|
|
9074
9074
|
$colorScheme: colorScheme,
|
|
9075
9075
|
$disabled: disabled,
|
|
9076
9076
|
$inline: inline,
|
|
9077
|
+
$maxLines: maxLines,
|
|
9077
9078
|
$preventUserSelect: preventUserSelect,
|
|
9078
9079
|
$prominence: prominence,
|
|
9079
|
-
$truncate: truncate,
|
|
9080
9080
|
$variant: variant,
|
|
9081
9081
|
as: renderAs ?? variantElementMap2[variant] ?? DEFAULT_ELEMENT3,
|
|
9082
9082
|
...props,
|