@wistia/ui 0.13.11-beta.e83846c4.6d00a8f → 0.13.11
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 +22 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -14
- package/dist/index.d.ts +3 -14
- package/dist/index.mjs +80 -87
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1363,17 +1363,12 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1363
1363
|
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
1364
1364
|
*/
|
|
1365
1365
|
colorScheme?: ColorSchemeTypes;
|
|
1366
|
-
/**
|
|
1367
|
-
* Determines if the icon should use inline styles when used with [Text]() and [Heading]() components
|
|
1368
|
-
*/
|
|
1369
|
-
useInlineStyles?: boolean;
|
|
1370
1366
|
/**
|
|
1371
1367
|
* Is Icon on a filled background?
|
|
1372
1368
|
*/
|
|
1373
1369
|
invertColor?: boolean;
|
|
1374
1370
|
/**
|
|
1375
1371
|
* The size of the icon to display
|
|
1376
|
-
*
|
|
1377
1372
|
*/
|
|
1378
1373
|
size?: ResponsiveObject<keyof typeof iconSizeMap> | keyof typeof iconSizeMap;
|
|
1379
1374
|
/**
|
|
@@ -1386,17 +1381,11 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1386
1381
|
type: IconNameType;
|
|
1387
1382
|
};
|
|
1388
1383
|
/**
|
|
1389
|
-
* A component that renders any of our available icons.
|
|
1390
|
-
*
|
|
1391
|
-
* For inline usage with text, wrap the Icon within a Text component
|
|
1392
|
-
* and set inline=true. The icon will automatically align with the text
|
|
1393
|
-
* using the typography-specific positioning.
|
|
1394
|
-
*
|
|
1395
|
-
* Note that icons should not be used directly for interactivity.
|
|
1396
|
-
* If you need an interactive element, use IconButton.
|
|
1384
|
+
* A component that renders any of our available icons. Note that icons should not be used directly
|
|
1385
|
+
* for interactivity. If you need an interactive element, use [IconButton](?path=/docs/components-iconbutton--docs).
|
|
1397
1386
|
*/
|
|
1398
1387
|
declare const Icon: {
|
|
1399
|
-
({
|
|
1388
|
+
({ invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX.Element;
|
|
1400
1389
|
displayName: string;
|
|
1401
1390
|
};
|
|
1402
1391
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1363,17 +1363,12 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1363
1363
|
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
1364
1364
|
*/
|
|
1365
1365
|
colorScheme?: ColorSchemeTypes;
|
|
1366
|
-
/**
|
|
1367
|
-
* Determines if the icon should use inline styles when used with [Text]() and [Heading]() components
|
|
1368
|
-
*/
|
|
1369
|
-
useInlineStyles?: boolean;
|
|
1370
1366
|
/**
|
|
1371
1367
|
* Is Icon on a filled background?
|
|
1372
1368
|
*/
|
|
1373
1369
|
invertColor?: boolean;
|
|
1374
1370
|
/**
|
|
1375
1371
|
* The size of the icon to display
|
|
1376
|
-
*
|
|
1377
1372
|
*/
|
|
1378
1373
|
size?: ResponsiveObject<keyof typeof iconSizeMap> | keyof typeof iconSizeMap;
|
|
1379
1374
|
/**
|
|
@@ -1386,17 +1381,11 @@ type IconProps = ComponentPropsWithoutRef<'svg'> & {
|
|
|
1386
1381
|
type: IconNameType;
|
|
1387
1382
|
};
|
|
1388
1383
|
/**
|
|
1389
|
-
* A component that renders any of our available icons.
|
|
1390
|
-
*
|
|
1391
|
-
* For inline usage with text, wrap the Icon within a Text component
|
|
1392
|
-
* and set inline=true. The icon will automatically align with the text
|
|
1393
|
-
* using the typography-specific positioning.
|
|
1394
|
-
*
|
|
1395
|
-
* Note that icons should not be used directly for interactivity.
|
|
1396
|
-
* If you need an interactive element, use IconButton.
|
|
1384
|
+
* A component that renders any of our available icons. Note that icons should not be used directly
|
|
1385
|
+
* for interactivity. If you need an interactive element, use [IconButton](?path=/docs/components-iconbutton--docs).
|
|
1397
1386
|
*/
|
|
1398
1387
|
declare const Icon: {
|
|
1399
|
-
({
|
|
1388
|
+
({ invertColor, colorScheme, size, style, type, ...props }: IconProps): JSX.Element;
|
|
1400
1389
|
displayName: string;
|
|
1401
1390
|
};
|
|
1402
1391
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.13.11
|
|
3
|
+
* @license @wistia/ui v0.13.11
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2853,7 +2853,7 @@ var useToast = () => {
|
|
|
2853
2853
|
|
|
2854
2854
|
// src/components/ActionButton/ActionButton.tsx
|
|
2855
2855
|
import { forwardRef as forwardRef3 } from "react";
|
|
2856
|
-
import styled6, { css as
|
|
2856
|
+
import styled6, { css as css17 } from "styled-components";
|
|
2857
2857
|
|
|
2858
2858
|
// src/components/Button/Button.tsx
|
|
2859
2859
|
import { forwardRef as forwardRef2 } from "react";
|
|
@@ -3062,7 +3062,7 @@ var buttonSizeStyles = {
|
|
|
3062
3062
|
|
|
3063
3063
|
// src/components/Icon/Icon.tsx
|
|
3064
3064
|
import { isNil as isNil5 } from "@wistia/type-guards";
|
|
3065
|
-
import styled3
|
|
3065
|
+
import styled3 from "styled-components";
|
|
3066
3066
|
|
|
3067
3067
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
3068
3068
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
@@ -7023,26 +7023,10 @@ var iconSizeMap = {
|
|
|
7023
7023
|
xl: "32",
|
|
7024
7024
|
xxl: "48"
|
|
7025
7025
|
};
|
|
7026
|
-
var iconInlineStyle = css17`
|
|
7027
|
-
[data-wui-icon-inline] {
|
|
7028
|
-
--wui-icon-inline-size: 0.8em;
|
|
7029
|
-
--wui-icon-inline-offset: 0.05em;
|
|
7030
|
-
--wui-icon-vertical-align: none;
|
|
7031
|
-
|
|
7032
|
-
top: var(--wui-icon-inline-offset);
|
|
7033
|
-
position: relative;
|
|
7034
|
-
}
|
|
7035
|
-
`;
|
|
7036
7026
|
var StyledIcon = styled3.svg`
|
|
7037
7027
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
7038
|
-
--wui-icon-size: var(--wui-icon-inline-size, ${({ $height }) => $height}px);
|
|
7039
|
-
--wui-icon-vertical-align: middle;
|
|
7040
|
-
|
|
7041
|
-
height: var(--wui-icon-size);
|
|
7042
|
-
width: var(--wui-icon-size);
|
|
7043
7028
|
`;
|
|
7044
7029
|
var Icon = ({
|
|
7045
|
-
useInlineStyles = true,
|
|
7046
7030
|
invertColor,
|
|
7047
7031
|
colorScheme = "inherit",
|
|
7048
7032
|
size = "lg",
|
|
@@ -7064,7 +7048,7 @@ var Icon = ({
|
|
|
7064
7048
|
}
|
|
7065
7049
|
const IconElement = iconMap[type];
|
|
7066
7050
|
const defaultStyle = {
|
|
7067
|
-
verticalAlign: "
|
|
7051
|
+
verticalAlign: "middle",
|
|
7068
7052
|
...style
|
|
7069
7053
|
};
|
|
7070
7054
|
const iconColor = invertColor ? "var(--wui-color-icon-on-fill)" : "var(--wui-color-icon)";
|
|
@@ -7072,14 +7056,13 @@ var Icon = ({
|
|
|
7072
7056
|
StyledIcon,
|
|
7073
7057
|
{
|
|
7074
7058
|
$colorScheme: colorScheme,
|
|
7075
|
-
$height: iconSizeMap[responsiveSize],
|
|
7076
|
-
$width: iconSizeMap[responsiveSize],
|
|
7077
7059
|
"aria-hidden": "true",
|
|
7078
7060
|
as: IconElement,
|
|
7079
|
-
|
|
7061
|
+
height: `${iconSizeMap[responsiveSize]}px`,
|
|
7080
7062
|
role: "presentation",
|
|
7081
7063
|
style: defaultStyle,
|
|
7082
7064
|
viewBox: "0 0 24 24",
|
|
7065
|
+
width: `${iconSizeMap[responsiveSize]}px`,
|
|
7083
7066
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7084
7067
|
...props,
|
|
7085
7068
|
color: iconColor
|
|
@@ -7439,7 +7422,7 @@ var StyledSecondaryIcon = styled6.div`
|
|
|
7439
7422
|
justify-content: flex-end;
|
|
7440
7423
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
7441
7424
|
|
|
7442
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
7425
|
+
${({ $hideUntilHover }) => $hideUntilHover && css17`
|
|
7443
7426
|
will-change: transform;
|
|
7444
7427
|
opacity: 0;
|
|
7445
7428
|
transform: translateX(-16px);
|
|
@@ -7815,12 +7798,12 @@ Badge.displayName = "Badge_UI";
|
|
|
7815
7798
|
|
|
7816
7799
|
// src/components/Banner/Banner.tsx
|
|
7817
7800
|
import { useEffect as useEffect8, useState as useState10, useMemo as useMemo5 } from "react";
|
|
7818
|
-
import styled16 from "styled-components";
|
|
7801
|
+
import styled16, { css as css22 } from "styled-components";
|
|
7819
7802
|
import { isNil as isNil10, isNotNil as isNotNil13 } from "@wistia/type-guards";
|
|
7820
7803
|
|
|
7821
7804
|
// src/components/Box/Box.tsx
|
|
7822
7805
|
import { forwardRef as forwardRef5 } from "react";
|
|
7823
|
-
import styled11, { css as
|
|
7806
|
+
import styled11, { css as css18 } from "styled-components";
|
|
7824
7807
|
import { isNotNil as isNotNil10, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
|
|
7825
7808
|
|
|
7826
7809
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -7876,27 +7859,27 @@ var getFlexStyle = (flexMode) => {
|
|
|
7876
7859
|
switch (flexMode) {
|
|
7877
7860
|
// grows to fill space, won't shrink, starts at 0
|
|
7878
7861
|
case "grow":
|
|
7879
|
-
return
|
|
7862
|
+
return css18`
|
|
7880
7863
|
flex: 1 0 0;
|
|
7881
7864
|
`;
|
|
7882
7865
|
// default behavior, can shrink but won't grow
|
|
7883
7866
|
case "initial":
|
|
7884
|
-
return
|
|
7867
|
+
return css18`
|
|
7885
7868
|
flex: 0 1 auto;
|
|
7886
7869
|
`;
|
|
7887
7870
|
// equal distribution of space
|
|
7888
7871
|
case "equal":
|
|
7889
|
-
return
|
|
7872
|
+
return css18`
|
|
7890
7873
|
flex: 1;
|
|
7891
7874
|
`;
|
|
7892
7875
|
// won't grow or shrink
|
|
7893
7876
|
case "rigid":
|
|
7894
|
-
return
|
|
7877
|
+
return css18`
|
|
7895
7878
|
flex: 0 0 auto;
|
|
7896
7879
|
`;
|
|
7897
7880
|
// can grow and shrink from content size
|
|
7898
7881
|
case "fluid":
|
|
7899
|
-
return
|
|
7882
|
+
return css18`
|
|
7900
7883
|
flex: 1 1 auto;
|
|
7901
7884
|
`;
|
|
7902
7885
|
default:
|
|
@@ -8008,46 +7991,46 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
8008
7991
|
|
|
8009
7992
|
// src/components/Heading/Heading.tsx
|
|
8010
7993
|
import { forwardRef as forwardRef6 } from "react";
|
|
8011
|
-
import styled12, { css as
|
|
7994
|
+
import styled12, { css as css19 } from "styled-components";
|
|
8012
7995
|
import { isNotNil as isNotNil11 } from "@wistia/type-guards";
|
|
8013
7996
|
import { jsx as jsx204 } from "react/jsx-runtime";
|
|
8014
|
-
var heroStyle =
|
|
7997
|
+
var heroStyle = css19`
|
|
8015
7998
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
8016
7999
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
8017
8000
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
8018
8001
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
8019
8002
|
`;
|
|
8020
|
-
var heading1TextStyle =
|
|
8003
|
+
var heading1TextStyle = css19`
|
|
8021
8004
|
--font-family: var(--wui-typography-heading-1-family);
|
|
8022
8005
|
--font-size: var(--wui-typography-heading-1-size);
|
|
8023
8006
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
8024
8007
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
8025
8008
|
`;
|
|
8026
|
-
var heading2TextStyle =
|
|
8009
|
+
var heading2TextStyle = css19`
|
|
8027
8010
|
--font-family: var(--wui-typography-heading-2-family);
|
|
8028
8011
|
--font-size: var(--wui-typography-heading-2-size);
|
|
8029
8012
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
8030
8013
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
8031
8014
|
`;
|
|
8032
|
-
var heading3TextStyle =
|
|
8015
|
+
var heading3TextStyle = css19`
|
|
8033
8016
|
--font-family: var(--wui-typography-heading-3-family);
|
|
8034
8017
|
--font-size: var(--wui-typography-heading-3-size);
|
|
8035
8018
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
8036
8019
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
8037
8020
|
`;
|
|
8038
|
-
var heading4TextStyle =
|
|
8021
|
+
var heading4TextStyle = css19`
|
|
8039
8022
|
--font-family: var(--wui-typography-heading-4-family);
|
|
8040
8023
|
--font-size: var(--wui-typography-heading-4-size);
|
|
8041
8024
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
8042
8025
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
8043
8026
|
`;
|
|
8044
|
-
var heading5TextStyle =
|
|
8027
|
+
var heading5TextStyle = css19`
|
|
8045
8028
|
--font-family: var(--wui-typography-heading-5-family);
|
|
8046
8029
|
--font-size: var(--wui-typography-heading-5-size);
|
|
8047
8030
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
8048
8031
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
8049
8032
|
`;
|
|
8050
|
-
var heading6TextStyle =
|
|
8033
|
+
var heading6TextStyle = css19`
|
|
8051
8034
|
--font-family: var(--wui-typography-heading-6-family);
|
|
8052
8035
|
--font-size: var(--wui-typography-heading-6-size);
|
|
8053
8036
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -8086,25 +8069,23 @@ var StyledHeading = styled12.div`
|
|
|
8086
8069
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
8087
8070
|
${({ $truncate }) => {
|
|
8088
8071
|
if (isNotNil11($truncate)) {
|
|
8089
|
-
return
|
|
8072
|
+
return css19`
|
|
8090
8073
|
${ellipsisStyle};
|
|
8091
8074
|
${lineClampCss($truncate)};
|
|
8092
8075
|
`;
|
|
8093
8076
|
}
|
|
8094
8077
|
return void 0;
|
|
8095
8078
|
}}
|
|
8096
|
-
${({ $inline }) => $inline &&
|
|
8079
|
+
${({ $inline }) => $inline && css19`
|
|
8097
8080
|
display: inline-block;
|
|
8098
8081
|
`}
|
|
8099
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
8082
|
+
${({ $preventUserSelect }) => $preventUserSelect && css19`
|
|
8100
8083
|
user-select: none;
|
|
8101
8084
|
`}
|
|
8102
|
-
${({ $align }) =>
|
|
8085
|
+
${({ $align }) => css19`
|
|
8103
8086
|
text-align: ${$align};
|
|
8104
8087
|
`}
|
|
8105
8088
|
margin: 0;
|
|
8106
|
-
|
|
8107
|
-
${iconInlineStyle}
|
|
8108
8089
|
`;
|
|
8109
8090
|
var variantElementMap = {
|
|
8110
8091
|
hero: DEFAULT_ELEMENT2,
|
|
@@ -8149,22 +8130,22 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
8149
8130
|
|
|
8150
8131
|
// src/components/Text/Text.tsx
|
|
8151
8132
|
import { forwardRef as forwardRef7 } from "react";
|
|
8152
|
-
import styled13, { css as
|
|
8133
|
+
import styled13, { css as css20 } from "styled-components";
|
|
8153
8134
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
8154
8135
|
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
8155
|
-
var bodyBoldStyles =
|
|
8136
|
+
var bodyBoldStyles = css20`
|
|
8156
8137
|
> strong,
|
|
8157
8138
|
b {
|
|
8158
8139
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
8159
8140
|
}
|
|
8160
8141
|
`;
|
|
8161
|
-
var labelBoldStyles =
|
|
8142
|
+
var labelBoldStyles = css20`
|
|
8162
8143
|
> strong,
|
|
8163
8144
|
b {
|
|
8164
8145
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
8165
8146
|
}
|
|
8166
8147
|
`;
|
|
8167
|
-
var body1TextStyle =
|
|
8148
|
+
var body1TextStyle = css20`
|
|
8168
8149
|
--font-family: var(--wui-typography-body-1-family);
|
|
8169
8150
|
--font-size: var(--wui-typography-body-1-size);
|
|
8170
8151
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
@@ -8172,7 +8153,7 @@ var body1TextStyle = css21`
|
|
|
8172
8153
|
--paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
|
|
8173
8154
|
${bodyBoldStyles}
|
|
8174
8155
|
`;
|
|
8175
|
-
var body2TextStyle =
|
|
8156
|
+
var body2TextStyle = css20`
|
|
8176
8157
|
--font-family: var(--wui-typography-body-2-family);
|
|
8177
8158
|
--font-size: var(--wui-typography-body-2-size);
|
|
8178
8159
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -8180,7 +8161,7 @@ var body2TextStyle = css21`
|
|
|
8180
8161
|
--paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
|
|
8181
8162
|
${bodyBoldStyles}
|
|
8182
8163
|
`;
|
|
8183
|
-
var body3TextStyle =
|
|
8164
|
+
var body3TextStyle = css20`
|
|
8184
8165
|
--font-family: var(--wui-typography-body-3-family);
|
|
8185
8166
|
--font-size: var(--wui-typography-body-3-size);
|
|
8186
8167
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
@@ -8188,7 +8169,7 @@ var body3TextStyle = css21`
|
|
|
8188
8169
|
--paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
|
|
8189
8170
|
${bodyBoldStyles}
|
|
8190
8171
|
`;
|
|
8191
|
-
var body4TextStyle =
|
|
8172
|
+
var body4TextStyle = css20`
|
|
8192
8173
|
--font-family: var(--wui-typography-body-4-family);
|
|
8193
8174
|
--font-size: var(--wui-typography-body-4-size);
|
|
8194
8175
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -8196,47 +8177,47 @@ var body4TextStyle = css21`
|
|
|
8196
8177
|
--paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
|
|
8197
8178
|
${bodyBoldStyles}
|
|
8198
8179
|
`;
|
|
8199
|
-
var label1TextStyle =
|
|
8180
|
+
var label1TextStyle = css20`
|
|
8200
8181
|
--font-family: var(--wui-typography-label-1-family);
|
|
8201
8182
|
--font-size: var(--wui-typography-label-1-size);
|
|
8202
8183
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
8203
8184
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
8204
8185
|
${labelBoldStyles}
|
|
8205
8186
|
`;
|
|
8206
|
-
var label2TextStyle =
|
|
8187
|
+
var label2TextStyle = css20`
|
|
8207
8188
|
--font-family: var(--wui-typography-label-2-family);
|
|
8208
8189
|
--font-size: var(--wui-typography-label-2-size);
|
|
8209
8190
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
8210
8191
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
8211
8192
|
${labelBoldStyles}
|
|
8212
8193
|
`;
|
|
8213
|
-
var label3TextStyle =
|
|
8194
|
+
var label3TextStyle = css20`
|
|
8214
8195
|
--font-family: var(--wui-typography-label-3-family);
|
|
8215
8196
|
--font-size: var(--wui-typography-label-3-size);
|
|
8216
8197
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
8217
8198
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
8218
8199
|
${labelBoldStyles}
|
|
8219
8200
|
`;
|
|
8220
|
-
var label4TextStyle =
|
|
8201
|
+
var label4TextStyle = css20`
|
|
8221
8202
|
--font-family: var(--wui-typography-label-4-family);
|
|
8222
8203
|
--font-size: var(--wui-typography-label-4-size);
|
|
8223
8204
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
8224
8205
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
8225
8206
|
${labelBoldStyles}
|
|
8226
8207
|
`;
|
|
8227
|
-
var body1MonoTextStyle =
|
|
8208
|
+
var body1MonoTextStyle = css20`
|
|
8228
8209
|
${body1TextStyle};
|
|
8229
8210
|
--font-family: var(--wui-typography-family-mono);
|
|
8230
8211
|
`;
|
|
8231
|
-
var body2MonoTextStyle =
|
|
8212
|
+
var body2MonoTextStyle = css20`
|
|
8232
8213
|
${body2TextStyle};
|
|
8233
8214
|
--font-family: var(--wui-typography-family-mono);
|
|
8234
8215
|
`;
|
|
8235
|
-
var body3MonoTextStyle =
|
|
8216
|
+
var body3MonoTextStyle = css20`
|
|
8236
8217
|
${body3TextStyle};
|
|
8237
8218
|
--font-family: var(--wui-typography-family-mono);
|
|
8238
8219
|
`;
|
|
8239
|
-
var body4MonoTextStyle =
|
|
8220
|
+
var body4MonoTextStyle = css20`
|
|
8240
8221
|
${body4TextStyle};
|
|
8241
8222
|
--font-family: var(--wui-typography-family-mono);
|
|
8242
8223
|
`;
|
|
@@ -8286,7 +8267,6 @@ var StyledText = styled13.div`
|
|
|
8286
8267
|
return "var(--wui-color-text)";
|
|
8287
8268
|
}};
|
|
8288
8269
|
|
|
8289
|
-
${iconInlineStyle}
|
|
8290
8270
|
color: var(--text-color);
|
|
8291
8271
|
font-family: var(--font-family);
|
|
8292
8272
|
font-size: var(--font-size);
|
|
@@ -8297,26 +8277,26 @@ var StyledText = styled13.div`
|
|
|
8297
8277
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
8298
8278
|
${({ $truncate }) => {
|
|
8299
8279
|
if (isNotNil12($truncate)) {
|
|
8300
|
-
return
|
|
8280
|
+
return css20`
|
|
8301
8281
|
${ellipsisStyle};
|
|
8302
8282
|
${lineClampCss($truncate)};
|
|
8303
8283
|
`;
|
|
8304
8284
|
}
|
|
8305
8285
|
return void 0;
|
|
8306
8286
|
}}
|
|
8307
|
-
${({ $inline }) => $inline &&
|
|
8287
|
+
${({ $inline }) => $inline && css20`
|
|
8308
8288
|
display: inline-block;
|
|
8309
8289
|
`}
|
|
8310
|
-
${({ $disabled }) => $disabled &&
|
|
8290
|
+
${({ $disabled }) => $disabled && css20`
|
|
8311
8291
|
--text-color: var(--wui-color-text-disabled);
|
|
8312
8292
|
`}
|
|
8313
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
8293
|
+
${({ $preventUserSelect }) => $preventUserSelect && css20`
|
|
8314
8294
|
user-select: none;
|
|
8315
8295
|
`}
|
|
8316
|
-
${({ $align }) =>
|
|
8296
|
+
${({ $align }) => css20`
|
|
8317
8297
|
text-align: ${$align};
|
|
8318
8298
|
`}
|
|
8319
|
-
${({ as }) => as === "p" &&
|
|
8299
|
+
${({ as }) => as === "p" && css20`
|
|
8320
8300
|
display: block;
|
|
8321
8301
|
|
|
8322
8302
|
+ p {
|
|
@@ -8359,7 +8339,7 @@ TextComponent.displayName = "Text_UI";
|
|
|
8359
8339
|
var Text = makePolymorphic(TextComponent);
|
|
8360
8340
|
|
|
8361
8341
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
8362
|
-
import styled14, { css as
|
|
8342
|
+
import styled14, { css as css21 } from "styled-components";
|
|
8363
8343
|
import { isNil as isNil9 } from "@wistia/type-guards";
|
|
8364
8344
|
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
8365
8345
|
var getAlignment = (align) => {
|
|
@@ -8399,7 +8379,7 @@ var ButtonGroupComponent = styled14.div`
|
|
|
8399
8379
|
}
|
|
8400
8380
|
}
|
|
8401
8381
|
|
|
8402
|
-
${({ $buttonSize }) => $buttonSize !== "natural" &&
|
|
8382
|
+
${({ $buttonSize }) => $buttonSize !== "natural" && css21`
|
|
8403
8383
|
button,
|
|
8404
8384
|
a {
|
|
8405
8385
|
${buttonSizeStyles[$buttonSize]}
|
|
@@ -8476,7 +8456,7 @@ var IconButton = forwardRef8(
|
|
|
8476
8456
|
IconButton.displayName = "IconButton_UI";
|
|
8477
8457
|
|
|
8478
8458
|
// src/components/Banner/Banner.tsx
|
|
8479
|
-
import {
|
|
8459
|
+
import { jsx as jsx208, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
8480
8460
|
var BREAKPOINT_WIDTH = 600;
|
|
8481
8461
|
var VERTICAL_BREAKPOINT_WIDTH = 284;
|
|
8482
8462
|
var MIN_IMAGE_WIDTH = 400;
|
|
@@ -8513,6 +8493,21 @@ var StyledBanner = styled16.div`
|
|
|
8513
8493
|
|
|
8514
8494
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8515
8495
|
`;
|
|
8496
|
+
var IconWrapper = styled16(Box)`
|
|
8497
|
+
--wui-banner-icon-size: var(--font-size, 24px);
|
|
8498
|
+
|
|
8499
|
+
${({ $iconPosition }) => $iconPosition === "inline" && css22`
|
|
8500
|
+
display: inline-block;
|
|
8501
|
+
vertical-align: text-bottom;
|
|
8502
|
+
margin-right: calc(var(--wui-banner-icon-size) / 3);
|
|
8503
|
+
`}
|
|
8504
|
+
|
|
8505
|
+
svg {
|
|
8506
|
+
color: var(--wui-color-icon);
|
|
8507
|
+
width: var(--wui-banner-icon-size);
|
|
8508
|
+
height: var(--wui-banner-icon-size);
|
|
8509
|
+
}
|
|
8510
|
+
`;
|
|
8516
8511
|
var Banner = ({
|
|
8517
8512
|
bodyText,
|
|
8518
8513
|
colorScheme = "inherit",
|
|
@@ -8575,8 +8570,9 @@ var Banner = ({
|
|
|
8575
8570
|
style: { padding: "var(--wui-banner-padding)" },
|
|
8576
8571
|
children: [
|
|
8577
8572
|
iconPosition === "above" && /* @__PURE__ */ jsx208(
|
|
8578
|
-
|
|
8573
|
+
IconWrapper,
|
|
8579
8574
|
{
|
|
8575
|
+
$iconPosition: "above",
|
|
8580
8576
|
alignSelf: "stretch",
|
|
8581
8577
|
direction: "column",
|
|
8582
8578
|
justifyContent: "center",
|
|
@@ -8592,10 +8588,7 @@ var Banner = ({
|
|
|
8592
8588
|
justifyContent: "center",
|
|
8593
8589
|
children: [
|
|
8594
8590
|
isNotNil13(headingText) ? /* @__PURE__ */ jsxs13(Heading, { variant: headingVariant, children: [
|
|
8595
|
-
iconPosition === "inline" && /* @__PURE__ */
|
|
8596
|
-
icon,
|
|
8597
|
-
" "
|
|
8598
|
-
] }),
|
|
8591
|
+
iconPosition === "inline" && /* @__PURE__ */ jsx208(IconWrapper, { $iconPosition: "inline", children: icon }),
|
|
8599
8592
|
headingText
|
|
8600
8593
|
] }) : null,
|
|
8601
8594
|
/* @__PURE__ */ jsx208(Text, { variant: textVariant, children: bodyText })
|
|
@@ -8641,7 +8634,7 @@ Banner.displayName = "Banner_UI";
|
|
|
8641
8634
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
8642
8635
|
import { Children as Children2 } from "react";
|
|
8643
8636
|
import styled17 from "styled-components";
|
|
8644
|
-
import { Fragment as
|
|
8637
|
+
import { Fragment as Fragment2, jsx as jsx209, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
8645
8638
|
var StyledBreadcrumbs = styled17.nav`
|
|
8646
8639
|
display: flex;
|
|
8647
8640
|
align-items: center;
|
|
@@ -8660,7 +8653,7 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
8660
8653
|
crumbs = crumbs.slice(-1);
|
|
8661
8654
|
}
|
|
8662
8655
|
const crumbMaxWidth = Math.floor(100 / crumbs.length) - BUFFER_WIDTH;
|
|
8663
|
-
return /* @__PURE__ */ jsxs14(
|
|
8656
|
+
return /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
|
8664
8657
|
/* @__PURE__ */ jsx209("style", { type: "text/css", children: `
|
|
8665
8658
|
[data-wui-breadcrumbs] {
|
|
8666
8659
|
container-type: inline-size;
|
|
@@ -8688,7 +8681,7 @@ Breadcrumbs.displayName = "Breadcrumbs_UI";
|
|
|
8688
8681
|
|
|
8689
8682
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
8690
8683
|
import styled18 from "styled-components";
|
|
8691
|
-
import { Fragment as
|
|
8684
|
+
import { Fragment as Fragment3, jsx as jsx210, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
8692
8685
|
var BreadcrumbContent = styled18.span`
|
|
8693
8686
|
overflow: hidden;
|
|
8694
8687
|
white-space: nowrap;
|
|
@@ -8698,7 +8691,7 @@ var BreadcrumbContent = styled18.span`
|
|
|
8698
8691
|
flex: 0;
|
|
8699
8692
|
`;
|
|
8700
8693
|
var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
8701
|
-
return /* @__PURE__ */ jsxs15(
|
|
8694
|
+
return /* @__PURE__ */ jsxs15(Fragment3, { children: [
|
|
8702
8695
|
/* @__PURE__ */ jsx210(
|
|
8703
8696
|
Button,
|
|
8704
8697
|
{
|
|
@@ -9475,7 +9468,7 @@ CollapsibleTriggerIcon.displayName = "CollapsibleTriggerIcon_UI";
|
|
|
9475
9468
|
import styled30 from "styled-components";
|
|
9476
9469
|
import { Content } from "@radix-ui/react-collapsible";
|
|
9477
9470
|
import { isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
9478
|
-
import { Fragment as
|
|
9471
|
+
import { Fragment as Fragment4, jsx as jsx224, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
9479
9472
|
var ClampedContent = styled30.div`
|
|
9480
9473
|
--wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
|
|
9481
9474
|
`;
|
|
@@ -9490,7 +9483,7 @@ var CollapsibleContent = ({ clamp, children }) => {
|
|
|
9490
9483
|
}
|
|
9491
9484
|
);
|
|
9492
9485
|
}
|
|
9493
|
-
return /* @__PURE__ */ jsx224(Content, { children: /* @__PURE__ */ jsxs19(
|
|
9486
|
+
return /* @__PURE__ */ jsx224(Content, { children: /* @__PURE__ */ jsxs19(Fragment4, { children: [
|
|
9494
9487
|
children,
|
|
9495
9488
|
" "
|
|
9496
9489
|
] }) });
|
|
@@ -11782,7 +11775,7 @@ import styled49 from "styled-components";
|
|
|
11782
11775
|
import { forwardRef as forwardRef16 } from "react";
|
|
11783
11776
|
import styled48 from "styled-components";
|
|
11784
11777
|
import { isNil as isNil14, isNotNil as isNotNil19, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
|
|
11785
|
-
import { Fragment as
|
|
11778
|
+
import { Fragment as Fragment5, jsx as jsx251, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
11786
11779
|
var TagLabel = styled48.a`
|
|
11787
11780
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11788
11781
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -11874,7 +11867,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
11874
11867
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
11875
11868
|
);
|
|
11876
11869
|
}
|
|
11877
|
-
return /* @__PURE__ */ jsxs32(
|
|
11870
|
+
return /* @__PURE__ */ jsxs32(Fragment5, { children: [
|
|
11878
11871
|
/* @__PURE__ */ jsx251(TagDivider, { $colorScheme: colorScheme }),
|
|
11879
11872
|
/* @__PURE__ */ jsxs32(
|
|
11880
11873
|
StyledRemoveButton,
|
|
@@ -12513,7 +12506,7 @@ Divider.displayName = "Divider_UI";
|
|
|
12513
12506
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
12514
12507
|
import styled55, { css as css30 } from "styled-components";
|
|
12515
12508
|
import { useState as useState16, useRef as useRef16 } from "react";
|
|
12516
|
-
import { Fragment as
|
|
12509
|
+
import { Fragment as Fragment6, jsx as jsx258, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
12517
12510
|
var StyledInput = styled55(Input)`
|
|
12518
12511
|
&:not([rows]) {
|
|
12519
12512
|
min-height: unset;
|
|
@@ -12632,7 +12625,7 @@ var EditableHeading = ({
|
|
|
12632
12625
|
}
|
|
12633
12626
|
);
|
|
12634
12627
|
}
|
|
12635
|
-
return /* @__PURE__ */ jsxs36(
|
|
12628
|
+
return /* @__PURE__ */ jsxs36(Fragment6, { children: [
|
|
12636
12629
|
/* @__PURE__ */ jsx258(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
|
|
12637
12630
|
/* @__PURE__ */ jsx258(ScreenReaderOnly, { children: /* @__PURE__ */ jsx258(
|
|
12638
12631
|
"button",
|
|
@@ -12785,7 +12778,7 @@ var Label = ({
|
|
|
12785
12778
|
Label.displayName = "Label_UI";
|
|
12786
12779
|
|
|
12787
12780
|
// src/components/FormField/FormField.tsx
|
|
12788
|
-
import { Fragment as
|
|
12781
|
+
import { Fragment as Fragment7, jsx as jsx261, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
12789
12782
|
var StyledFormField = styled57.div`
|
|
12790
12783
|
--form-field-spacing: var(--wui-space-01);
|
|
12791
12784
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
@@ -12926,7 +12919,7 @@ var FormField = ({
|
|
|
12926
12919
|
!isIntegratedLabel && /* @__PURE__ */ jsx261(Label, { htmlFor: computedId, children: label }),
|
|
12927
12920
|
isNotNil21(description) ? /* @__PURE__ */ jsx261(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
12928
12921
|
cloneElement5(children, childProps),
|
|
12929
|
-
isNotNil21(computedError) ? /* @__PURE__ */ jsxs38(
|
|
12922
|
+
isNotNil21(computedError) ? /* @__PURE__ */ jsxs38(Fragment7, { children: [
|
|
12930
12923
|
/* @__PURE__ */ jsx261("div", {}),
|
|
12931
12924
|
/* @__PURE__ */ jsx261(
|
|
12932
12925
|
ErrorMessages,
|