@wistia/ui 0.0.6 → 0.0.8
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 +95 -80
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d.cts → index.d.mts} +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.mjs +68 -53
- package/dist/index.mjs.map +1 -1
- package/package.json +29 -28
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.0.
|
|
3
|
+
* @license @wistia/ui v0.0.8
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1427,7 +1427,7 @@ var useAriaLive = () => {
|
|
|
1427
1427
|
|
|
1428
1428
|
// src/components/Box/Box.tsx
|
|
1429
1429
|
var import_react5 = require("react");
|
|
1430
|
-
var import_styled_components10 = __toESM(require("styled-components")
|
|
1430
|
+
var import_styled_components10 = __toESM(require("styled-components"));
|
|
1431
1431
|
var import_type_guards5 = require("@wistia/type-guards");
|
|
1432
1432
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1433
1433
|
var isDev = process.env["NODE_ENV"] === "development";
|
|
@@ -1547,7 +1547,7 @@ Box.displayName = "Box";
|
|
|
1547
1547
|
// src/components/Button/Button.tsx
|
|
1548
1548
|
var import_react8 = require("react");
|
|
1549
1549
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
1550
|
-
var
|
|
1550
|
+
var import_styled_components16 = __toESM(require("styled-components"));
|
|
1551
1551
|
|
|
1552
1552
|
// src/css/buttonResetCss.tsx
|
|
1553
1553
|
var import_styled_components11 = require("styled-components");
|
|
@@ -1751,7 +1751,7 @@ var buttonSizeStyles = {
|
|
|
1751
1751
|
hero: buttonHeroStyles
|
|
1752
1752
|
};
|
|
1753
1753
|
|
|
1754
|
-
// src/private/getColorScheme/getColorScheme.ts
|
|
1754
|
+
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
1755
1755
|
var import_styled_components13 = require("styled-components");
|
|
1756
1756
|
var colorSchemeSchema = [
|
|
1757
1757
|
{ token: "bg-surface", step: "surface" },
|
|
@@ -1808,6 +1808,7 @@ var getColorScheme = (colorScheme) => {
|
|
|
1808
1808
|
|
|
1809
1809
|
// src/components/Icon/Icon.tsx
|
|
1810
1810
|
var import_type_guards7 = require("@wistia/type-guards");
|
|
1811
|
+
var import_styled_components14 = __toESM(require("styled-components"));
|
|
1811
1812
|
|
|
1812
1813
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
1813
1814
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
@@ -4963,8 +4964,12 @@ var iconSizeMap = {
|
|
|
4963
4964
|
xl: "32",
|
|
4964
4965
|
xxl: "48"
|
|
4965
4966
|
};
|
|
4967
|
+
var StyledIcon = import_styled_components14.default.svg`
|
|
4968
|
+
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
4969
|
+
`;
|
|
4966
4970
|
var Icon = ({
|
|
4967
4971
|
invertColor,
|
|
4972
|
+
colorScheme = "inherit",
|
|
4968
4973
|
size = "lg",
|
|
4969
4974
|
style,
|
|
4970
4975
|
type,
|
|
@@ -4988,21 +4993,20 @@ var Icon = ({
|
|
|
4988
4993
|
...style
|
|
4989
4994
|
};
|
|
4990
4995
|
const iconColor = invertColor ? "var(--color-icon-on-fill)" : "var(--color-icon)";
|
|
4991
|
-
if ((0, import_type_guards7.isNotNil)(otherProps.color)) {
|
|
4992
|
-
delete otherProps.color;
|
|
4993
|
-
}
|
|
4994
4996
|
return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
4995
|
-
|
|
4997
|
+
StyledIcon,
|
|
4996
4998
|
{
|
|
4999
|
+
$colorScheme: colorScheme,
|
|
4997
5000
|
"aria-hidden": "true",
|
|
4998
|
-
|
|
5001
|
+
as: IconElement,
|
|
4999
5002
|
height: `${iconSizeMap[responsiveSize]}px`,
|
|
5000
5003
|
role: "presentation",
|
|
5001
5004
|
style: defaultStyle,
|
|
5002
5005
|
viewBox: "0 0 24 24",
|
|
5003
5006
|
width: `${iconSizeMap[responsiveSize]}px`,
|
|
5004
5007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5005
|
-
...otherProps
|
|
5008
|
+
...otherProps,
|
|
5009
|
+
color: iconColor
|
|
5006
5010
|
}
|
|
5007
5011
|
);
|
|
5008
5012
|
};
|
|
@@ -5011,7 +5015,7 @@ Icon.displayName = "Icon";
|
|
|
5011
5015
|
// src/components/Link/Link.tsx
|
|
5012
5016
|
var import_react7 = require("react");
|
|
5013
5017
|
var import_type_guards8 = require("@wistia/type-guards");
|
|
5014
|
-
var
|
|
5018
|
+
var import_styled_components15 = __toESM(require("styled-components"));
|
|
5015
5019
|
var import_react_router_dom = require("react-router-dom");
|
|
5016
5020
|
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
5017
5021
|
var generateHref = (href, type, disabled) => {
|
|
@@ -5029,7 +5033,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
5029
5033
|
};
|
|
5030
5034
|
var isButton = (props) => (0, import_type_guards8.isUndefined)(props.href);
|
|
5031
5035
|
var isLink = (props) => (0, import_type_guards8.isNotUndefined)(props.href);
|
|
5032
|
-
var StyledLink =
|
|
5036
|
+
var StyledLink = import_styled_components15.default.a`
|
|
5033
5037
|
${({ href }) => (0, import_type_guards8.isNil)(href) && buttonResetCss};
|
|
5034
5038
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
5035
5039
|
cursor: pointer;
|
|
@@ -5121,7 +5125,7 @@ Link.displayName = "Link";
|
|
|
5121
5125
|
// src/components/Button/Button.tsx
|
|
5122
5126
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
5123
5127
|
var isLink2 = (props) => (0, import_type_guards9.isNotUndefined)(props.href);
|
|
5124
|
-
var StyledButton =
|
|
5128
|
+
var StyledButton = import_styled_components16.default.button`
|
|
5125
5129
|
${buttonResetCss}
|
|
5126
5130
|
${({ colorScheme }) => getColorScheme(colorScheme)}
|
|
5127
5131
|
${({ size }) => buttonSizeStyles[size]}
|
|
@@ -5130,20 +5134,23 @@ var StyledButton = import_styled_components15.default.button`
|
|
|
5130
5134
|
${({ fullWidth }) => fullWidth && "width: 100%;"}
|
|
5131
5135
|
position: relative;
|
|
5132
5136
|
`;
|
|
5133
|
-
var StyledButtonContent =
|
|
5137
|
+
var StyledButtonContent = import_styled_components16.default.div`
|
|
5134
5138
|
align-items: center;
|
|
5135
5139
|
display: inline-flex;
|
|
5136
5140
|
flex-grow: 1;
|
|
5137
5141
|
justify-content: center;
|
|
5138
|
-
opacity: ${({ isLoading }) => isLoading ? 0 : 1};
|
|
5142
|
+
opacity: ${({ $isLoading }) => $isLoading ? 0 : 1};
|
|
5139
5143
|
padding: 0 var(--button-label-padding-horizontal);
|
|
5140
5144
|
gap: var(--button-label-gap);
|
|
5145
|
+
|
|
5146
|
+
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
5147
|
+
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
5141
5148
|
`;
|
|
5142
|
-
var StyledButtonContentLabel =
|
|
5149
|
+
var StyledButtonContentLabel = import_styled_components16.default.span`
|
|
5143
5150
|
flex: 1;
|
|
5144
5151
|
text-align: center;
|
|
5145
5152
|
`;
|
|
5146
|
-
var StyledButtonLoading =
|
|
5153
|
+
var StyledButtonLoading = import_styled_components16.default.div`
|
|
5147
5154
|
position: absolute;
|
|
5148
5155
|
display: flex;
|
|
5149
5156
|
`;
|
|
@@ -5155,11 +5162,19 @@ var ButtonContent = ({
|
|
|
5155
5162
|
}) => {
|
|
5156
5163
|
return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_jsx_runtime158.Fragment, { children: [
|
|
5157
5164
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(StyledButtonLoading, { children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Icon, { type: "spinner" }) }) : null,
|
|
5158
|
-
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5165
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
|
|
5166
|
+
StyledButtonContent,
|
|
5167
|
+
{
|
|
5168
|
+
$hasLeftIcon: (0, import_type_guards9.isNotNil)(leftIcon),
|
|
5169
|
+
$hasRightIcon: (0, import_type_guards9.isNotNil)(rightIcon),
|
|
5170
|
+
$isLoading: isLoading,
|
|
5171
|
+
children: [
|
|
5172
|
+
leftIcon ?? null,
|
|
5173
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsx)(StyledButtonContentLabel, { children }),
|
|
5174
|
+
rightIcon ?? null
|
|
5175
|
+
]
|
|
5176
|
+
}
|
|
5177
|
+
)
|
|
5163
5178
|
] });
|
|
5164
5179
|
};
|
|
5165
5180
|
var Button = (0, import_react8.forwardRef)(
|
|
@@ -5249,7 +5264,7 @@ var Button = (0, import_react8.forwardRef)(
|
|
|
5249
5264
|
Button.displayName = "Button";
|
|
5250
5265
|
|
|
5251
5266
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
5252
|
-
var
|
|
5267
|
+
var import_styled_components17 = __toESM(require("styled-components"));
|
|
5253
5268
|
var import_type_guards10 = require("@wistia/type-guards");
|
|
5254
5269
|
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
5255
5270
|
var getAlignment = (align) => {
|
|
@@ -5264,7 +5279,7 @@ var getAlignment = (align) => {
|
|
|
5264
5279
|
}
|
|
5265
5280
|
return void 0;
|
|
5266
5281
|
};
|
|
5267
|
-
var ButtonGroupComponent =
|
|
5282
|
+
var ButtonGroupComponent = import_styled_components17.default.div`
|
|
5268
5283
|
display: flex;
|
|
5269
5284
|
|
|
5270
5285
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -5306,13 +5321,13 @@ var ButtonGroup = ({
|
|
|
5306
5321
|
ButtonGroup.displayName = "ButtonGroup";
|
|
5307
5322
|
|
|
5308
5323
|
// src/components/Divider/Divider.tsx
|
|
5309
|
-
var
|
|
5324
|
+
var import_styled_components18 = __toESM(require("styled-components"));
|
|
5310
5325
|
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
5311
5326
|
var sizeToPixelMap = {
|
|
5312
5327
|
lg: 4,
|
|
5313
5328
|
sm: 1
|
|
5314
5329
|
};
|
|
5315
|
-
var DividerComponent =
|
|
5330
|
+
var DividerComponent = import_styled_components18.default.hr`
|
|
5316
5331
|
background: none;
|
|
5317
5332
|
border-bottom: none;
|
|
5318
5333
|
border-left: none;
|
|
@@ -5339,9 +5354,9 @@ Divider.displayName = "Divider";
|
|
|
5339
5354
|
|
|
5340
5355
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
5341
5356
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
5342
|
-
var
|
|
5357
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
5343
5358
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5344
|
-
var ellipsisStyle =
|
|
5359
|
+
var ellipsisStyle = import_styled_components19.css`
|
|
5345
5360
|
overflow: hidden;
|
|
5346
5361
|
text-overflow: ellipsis;
|
|
5347
5362
|
white-space: nowrap;
|
|
@@ -5364,14 +5379,14 @@ var ellipsisStyle = import_styled_components18.css`
|
|
|
5364
5379
|
}
|
|
5365
5380
|
}
|
|
5366
5381
|
`;
|
|
5367
|
-
var ellipsisFlexParentStyle =
|
|
5382
|
+
var ellipsisFlexParentStyle = import_styled_components19.css`
|
|
5368
5383
|
min-width: 0;
|
|
5369
5384
|
`;
|
|
5370
|
-
var EllipsisComponent =
|
|
5385
|
+
var EllipsisComponent = import_styled_components19.default.div`
|
|
5371
5386
|
${ellipsisStyle};
|
|
5372
5387
|
${({ lines }) => {
|
|
5373
5388
|
if ((0, import_type_guards11.isNotNil)(lines)) {
|
|
5374
|
-
return
|
|
5389
|
+
return import_styled_components19.css`
|
|
5375
5390
|
-webkit-box-orient: vertical;
|
|
5376
5391
|
-webkit-line-clamp: ${lines};
|
|
5377
5392
|
display: -webkit-box;
|
|
@@ -5393,7 +5408,7 @@ Ellipsis.displayName = "Ellipsis";
|
|
|
5393
5408
|
|
|
5394
5409
|
// src/components/Heading/Heading.tsx
|
|
5395
5410
|
var import_react9 = require("react");
|
|
5396
|
-
var
|
|
5411
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
5397
5412
|
|
|
5398
5413
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
5399
5414
|
var makePolymorphic = (component) => {
|
|
@@ -5402,43 +5417,43 @@ var makePolymorphic = (component) => {
|
|
|
5402
5417
|
|
|
5403
5418
|
// src/components/Heading/Heading.tsx
|
|
5404
5419
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
5405
|
-
var heroStyle =
|
|
5420
|
+
var heroStyle = import_styled_components20.css`
|
|
5406
5421
|
--font-family: var(--typography-heading-hero-family);
|
|
5407
5422
|
--font-size: var(--typography-heading-hero-size);
|
|
5408
5423
|
--font-weight: var(--typography-heading-hero-weight);
|
|
5409
5424
|
--line-height: var(--typography-heading-hero-line-height);
|
|
5410
5425
|
`;
|
|
5411
|
-
var heading1TextStyle =
|
|
5426
|
+
var heading1TextStyle = import_styled_components20.css`
|
|
5412
5427
|
--font-family: var(--typography-heading-1-family);
|
|
5413
5428
|
--font-size: var(--typography-heading-1-size);
|
|
5414
5429
|
--font-weight: var(--typography-heading-1-weight);
|
|
5415
5430
|
--line-height: var(--typography-heading-1-line-height);
|
|
5416
5431
|
`;
|
|
5417
|
-
var heading2TextStyle =
|
|
5432
|
+
var heading2TextStyle = import_styled_components20.css`
|
|
5418
5433
|
--font-family: var(--typography-heading-2-family);
|
|
5419
5434
|
--font-size: var(--typography-heading-2-size);
|
|
5420
5435
|
--font-weight: var(--typography-heading-2-weight);
|
|
5421
5436
|
--line-height: var(--typography-heading-2-line-height);
|
|
5422
5437
|
`;
|
|
5423
|
-
var heading3TextStyle =
|
|
5438
|
+
var heading3TextStyle = import_styled_components20.css`
|
|
5424
5439
|
--font-family: var(--typography-heading-3-family);
|
|
5425
5440
|
--font-size: var(--typography-heading-3-size);
|
|
5426
5441
|
--font-weight: var(--typography-heading-3-weight);
|
|
5427
5442
|
--line-height: var(--typography-heading-3-line-height);
|
|
5428
5443
|
`;
|
|
5429
|
-
var heading4TextStyle =
|
|
5444
|
+
var heading4TextStyle = import_styled_components20.css`
|
|
5430
5445
|
--font-family: var(--typography-heading-4-family);
|
|
5431
5446
|
--font-size: var(--typography-heading-4-size);
|
|
5432
5447
|
--font-weight: var(--typography-heading-4-weight);
|
|
5433
5448
|
--line-height: var(--typography-heading-4-line-height);
|
|
5434
5449
|
`;
|
|
5435
|
-
var heading5TextStyle =
|
|
5450
|
+
var heading5TextStyle = import_styled_components20.css`
|
|
5436
5451
|
--font-family: var(--typography-heading-5-family);
|
|
5437
5452
|
--font-size: var(--typography-heading-5-size);
|
|
5438
5453
|
--font-weight: var(--typography-heading-5-weight);
|
|
5439
5454
|
--line-height: var(--typography-heading-5-line-height);
|
|
5440
5455
|
`;
|
|
5441
|
-
var heading6TextStyle =
|
|
5456
|
+
var heading6TextStyle = import_styled_components20.css`
|
|
5442
5457
|
--font-family: var(--typography-heading-6-family);
|
|
5443
5458
|
--font-size: var(--typography-heading-6-size);
|
|
5444
5459
|
--font-weight: var(--typography-heading-6-weight);
|
|
@@ -5454,7 +5469,7 @@ var variantStyleMap = {
|
|
|
5454
5469
|
heading6: heading6TextStyle
|
|
5455
5470
|
};
|
|
5456
5471
|
var DEFAULT_ELEMENT = "h1";
|
|
5457
|
-
var StyledHeading =
|
|
5472
|
+
var StyledHeading = import_styled_components20.default.div`
|
|
5458
5473
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
5459
5474
|
font-family: var(--font-family);
|
|
5460
5475
|
font-size: var(--font-size);
|
|
@@ -5463,16 +5478,16 @@ var StyledHeading = import_styled_components19.default.div`
|
|
|
5463
5478
|
color: var(--color-text);
|
|
5464
5479
|
${({ variant }) => variantStyleMap[variant]}
|
|
5465
5480
|
${({ ellipsis }) => ellipsis && ellipsisStyle};
|
|
5466
|
-
${({ inline }) => inline &&
|
|
5481
|
+
${({ inline }) => inline && import_styled_components20.css`
|
|
5467
5482
|
display: inline-block;
|
|
5468
5483
|
`}
|
|
5469
|
-
${({ disabled }) => disabled &&
|
|
5484
|
+
${({ disabled }) => disabled && import_styled_components20.css`
|
|
5470
5485
|
color: var(--color-text-disabled);
|
|
5471
5486
|
`}
|
|
5472
|
-
${({ preventUserSelect }) => preventUserSelect &&
|
|
5487
|
+
${({ preventUserSelect }) => preventUserSelect && import_styled_components20.css`
|
|
5473
5488
|
user-select: none;
|
|
5474
5489
|
`}
|
|
5475
|
-
${({ align }) =>
|
|
5490
|
+
${({ align }) => import_styled_components20.css`
|
|
5476
5491
|
text-align: ${align};
|
|
5477
5492
|
`}
|
|
5478
5493
|
margin: 0;
|
|
@@ -5518,20 +5533,20 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
5518
5533
|
|
|
5519
5534
|
// src/components/IconButton/IconButton.tsx
|
|
5520
5535
|
var import_react10 = require("react");
|
|
5521
|
-
var
|
|
5536
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
5522
5537
|
|
|
5523
5538
|
// src/components/Tooltip/Tooltip.tsx
|
|
5524
5539
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
5525
|
-
var
|
|
5540
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
5526
5541
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
5527
|
-
var CompactTooltipStyles =
|
|
5542
|
+
var CompactTooltipStyles = import_styled_components21.css`
|
|
5528
5543
|
--tooltip-font-size: var(--typography-label-4-size);
|
|
5529
5544
|
--tooltip-line-height: var(--typography-label-4-line-height);
|
|
5530
5545
|
--tooltip-font-weight: var(--typography-label-4-weight);
|
|
5531
5546
|
--tooltip-horizontal-padding: var(--space-02);
|
|
5532
5547
|
--tooltip-vertical-padding: var(--space-03);
|
|
5533
5548
|
`;
|
|
5534
|
-
var StyledContent = (0,
|
|
5549
|
+
var StyledContent = (0, import_styled_components21.default)(import_react_tooltip2.Content)`
|
|
5535
5550
|
--tooltip-font-family: var(--typography-family-default);
|
|
5536
5551
|
--tooltip-border-radius: var(--border-radius-05);
|
|
5537
5552
|
--tooltip-bg: var(--color-bg-tooltip);
|
|
@@ -5633,7 +5648,7 @@ var buttonIconSizeMap = {
|
|
|
5633
5648
|
large: "lg",
|
|
5634
5649
|
hero: "xl"
|
|
5635
5650
|
};
|
|
5636
|
-
var StyledButton2 = (0,
|
|
5651
|
+
var StyledButton2 = (0, import_styled_components22.default)(Button)`
|
|
5637
5652
|
--icon-button-size-small: 24px;
|
|
5638
5653
|
--icon-button-size-medium: 32px;
|
|
5639
5654
|
--icon-button-size-large: 40px;
|
|
@@ -5672,11 +5687,11 @@ var IconButton = (0, import_react10.forwardRef)(
|
|
|
5672
5687
|
IconButton.displayName = "IconButton";
|
|
5673
5688
|
|
|
5674
5689
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
5675
|
-
var
|
|
5690
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
5676
5691
|
var import_type_guards12 = require("@wistia/type-guards");
|
|
5677
5692
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
5678
|
-
var VisuallyHidden =
|
|
5679
|
-
var VisuallyHiddenButFocusable =
|
|
5693
|
+
var VisuallyHidden = import_styled_components23.default.div({ ...visuallyHiddenStyle });
|
|
5694
|
+
var VisuallyHiddenButFocusable = import_styled_components23.default.div({
|
|
5680
5695
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
5681
5696
|
});
|
|
5682
5697
|
var ScreenReaderOnly = ({
|
|
@@ -5695,10 +5710,10 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
5695
5710
|
|
|
5696
5711
|
// src/components/Stack/Stack.tsx
|
|
5697
5712
|
var import_react11 = require("react");
|
|
5698
|
-
var
|
|
5713
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
5699
5714
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
5700
5715
|
var DEFAULT_ELEMENT2 = "div";
|
|
5701
|
-
var StyledStack =
|
|
5716
|
+
var StyledStack = import_styled_components24.default.div`
|
|
5702
5717
|
display: flex;
|
|
5703
5718
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
5704
5719
|
gap: ${({ gap }) => `var(--${gap})`};
|
|
@@ -5728,89 +5743,89 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
5728
5743
|
|
|
5729
5744
|
// src/components/Text/Text.tsx
|
|
5730
5745
|
var import_react12 = require("react");
|
|
5731
|
-
var
|
|
5746
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
5732
5747
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
5733
|
-
var bodyBoldStyles =
|
|
5748
|
+
var bodyBoldStyles = import_styled_components25.css`
|
|
5734
5749
|
> strong,
|
|
5735
5750
|
b {
|
|
5736
5751
|
font-weight: var(--typography-weight-body-bold);
|
|
5737
5752
|
}
|
|
5738
5753
|
`;
|
|
5739
|
-
var labelBoldStyles =
|
|
5754
|
+
var labelBoldStyles = import_styled_components25.css`
|
|
5740
5755
|
> strong,
|
|
5741
5756
|
b {
|
|
5742
5757
|
font-weight: var(--typography-weight-label-bold);
|
|
5743
5758
|
}
|
|
5744
5759
|
`;
|
|
5745
|
-
var body1TextStyle =
|
|
5760
|
+
var body1TextStyle = import_styled_components25.css`
|
|
5746
5761
|
--font-family: var(--typography-body-1-family);
|
|
5747
5762
|
--font-size: var(--typography-body-1-size);
|
|
5748
5763
|
--font-weight: var(--typography-body-1-weight);
|
|
5749
5764
|
--line-height: var(--typography-body-1-line-height);
|
|
5750
5765
|
${bodyBoldStyles}
|
|
5751
5766
|
`;
|
|
5752
|
-
var body2TextStyle =
|
|
5767
|
+
var body2TextStyle = import_styled_components25.css`
|
|
5753
5768
|
--font-family: var(--typography-body-2-family);
|
|
5754
5769
|
--font-size: var(--typography-body-2-size);
|
|
5755
5770
|
--font-weight: var(--typography-body-2-weight);
|
|
5756
5771
|
--line-height: var(--typography-body-2-line-height);
|
|
5757
5772
|
${bodyBoldStyles}
|
|
5758
5773
|
`;
|
|
5759
|
-
var body3TextStyle =
|
|
5774
|
+
var body3TextStyle = import_styled_components25.css`
|
|
5760
5775
|
--font-family: var(--typography-body-3-family);
|
|
5761
5776
|
--font-size: var(--typography-body-3-size);
|
|
5762
5777
|
--font-weight: var(--typography-body-3-weight);
|
|
5763
5778
|
--line-height: var(--typography-body-3-line-height);
|
|
5764
5779
|
${bodyBoldStyles}
|
|
5765
5780
|
`;
|
|
5766
|
-
var body4TextStyle =
|
|
5781
|
+
var body4TextStyle = import_styled_components25.css`
|
|
5767
5782
|
--font-family: var(--typography-body-4-family);
|
|
5768
5783
|
--font-size: var(--typography-body-4-size);
|
|
5769
5784
|
--font-weight: var(--typography-body-4-weight);
|
|
5770
5785
|
--line-height: var(--typography-body-4-line-height);
|
|
5771
5786
|
${bodyBoldStyles}
|
|
5772
5787
|
`;
|
|
5773
|
-
var label1TextStyle =
|
|
5788
|
+
var label1TextStyle = import_styled_components25.css`
|
|
5774
5789
|
--font-family: var(--typography-label-1-family);
|
|
5775
5790
|
--font-size: var(--typography-label-1-size);
|
|
5776
5791
|
--font-weight: var(--typography-label-1-weight);
|
|
5777
5792
|
--line-height: var(--typography-label-1-line-height);
|
|
5778
5793
|
${labelBoldStyles}
|
|
5779
5794
|
`;
|
|
5780
|
-
var label2TextStyle =
|
|
5795
|
+
var label2TextStyle = import_styled_components25.css`
|
|
5781
5796
|
--font-family: var(--typography-label-2-family);
|
|
5782
5797
|
--font-size: var(--typography-label-2-size);
|
|
5783
5798
|
--font-weight: var(--typography-label-2-weight);
|
|
5784
5799
|
--line-height: var(--typography-label-2-line-height);
|
|
5785
5800
|
${labelBoldStyles}
|
|
5786
5801
|
`;
|
|
5787
|
-
var label3TextStyle =
|
|
5802
|
+
var label3TextStyle = import_styled_components25.css`
|
|
5788
5803
|
--font-family: var(--typography-label-3-family);
|
|
5789
5804
|
--font-size: var(--typography-label-3-size);
|
|
5790
5805
|
--font-weight: var(--typography-label-3-weight);
|
|
5791
5806
|
--line-height: var(--typography-label-3-line-height);
|
|
5792
5807
|
${labelBoldStyles}
|
|
5793
5808
|
`;
|
|
5794
|
-
var label4TextStyle =
|
|
5809
|
+
var label4TextStyle = import_styled_components25.css`
|
|
5795
5810
|
--font-family: var(--typography-label-4-family);
|
|
5796
5811
|
--font-size: var(--typography-label-4-size);
|
|
5797
5812
|
--font-weight: var(--typography-label-4-weight);
|
|
5798
5813
|
--line-height: var(--typography-label-4-line-height);
|
|
5799
5814
|
${labelBoldStyles}
|
|
5800
5815
|
`;
|
|
5801
|
-
var body1MonoTextStyle =
|
|
5816
|
+
var body1MonoTextStyle = import_styled_components25.css`
|
|
5802
5817
|
${body1TextStyle};
|
|
5803
5818
|
--font-family: var(--typography-family-mono);
|
|
5804
5819
|
`;
|
|
5805
|
-
var body2MonoTextStyle =
|
|
5820
|
+
var body2MonoTextStyle = import_styled_components25.css`
|
|
5806
5821
|
${body2TextStyle};
|
|
5807
5822
|
--font-family: var(--typography-family-mono);
|
|
5808
5823
|
`;
|
|
5809
|
-
var body3MonoTextStyle =
|
|
5824
|
+
var body3MonoTextStyle = import_styled_components25.css`
|
|
5810
5825
|
${body3TextStyle};
|
|
5811
5826
|
--font-family: var(--typography-family-mono);
|
|
5812
5827
|
`;
|
|
5813
|
-
var body4MonoTextStyle =
|
|
5828
|
+
var body4MonoTextStyle = import_styled_components25.css`
|
|
5814
5829
|
${body4TextStyle};
|
|
5815
5830
|
--font-family: var(--typography-family-mono);
|
|
5816
5831
|
`;
|
|
@@ -5828,13 +5843,13 @@ var variantStyleMap2 = {
|
|
|
5828
5843
|
label3: label3TextStyle,
|
|
5829
5844
|
label4: label4TextStyle
|
|
5830
5845
|
};
|
|
5831
|
-
var highContrastProminenceStyle =
|
|
5846
|
+
var highContrastProminenceStyle = import_styled_components25.css`
|
|
5832
5847
|
--text-color: var(--color-text-high-contrast);
|
|
5833
5848
|
`;
|
|
5834
|
-
var vibrantProminenceStyle =
|
|
5849
|
+
var vibrantProminenceStyle = import_styled_components25.css`
|
|
5835
5850
|
--text-color: var(--color-text);
|
|
5836
5851
|
`;
|
|
5837
|
-
var secondaryProminenceStyle =
|
|
5852
|
+
var secondaryProminenceStyle = import_styled_components25.css`
|
|
5838
5853
|
--text-color: var(--color-text-secondary);
|
|
5839
5854
|
`;
|
|
5840
5855
|
var prominenceMap = {
|
|
@@ -5842,7 +5857,7 @@ var prominenceMap = {
|
|
|
5842
5857
|
vibrant: vibrantProminenceStyle,
|
|
5843
5858
|
secondary: secondaryProminenceStyle
|
|
5844
5859
|
};
|
|
5845
|
-
var StyledText =
|
|
5860
|
+
var StyledText = import_styled_components25.default.div`
|
|
5846
5861
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
5847
5862
|
font-family: var(--font-family);
|
|
5848
5863
|
font-size: var(--font-size);
|
|
@@ -5854,19 +5869,19 @@ var StyledText = import_styled_components24.default.div`
|
|
|
5854
5869
|
${({ variant }) => variantStyleMap2[variant]}
|
|
5855
5870
|
${({ prominence }) => prominenceMap[prominence]}
|
|
5856
5871
|
${({ ellipsis }) => ellipsis && ellipsisStyle};
|
|
5857
|
-
${({ inline }) => inline &&
|
|
5872
|
+
${({ inline }) => inline && import_styled_components25.css`
|
|
5858
5873
|
display: inline-block;
|
|
5859
5874
|
`}
|
|
5860
|
-
${({ disabled }) => disabled &&
|
|
5875
|
+
${({ disabled }) => disabled && import_styled_components25.css`
|
|
5861
5876
|
--text-color: var(--color-text-disabled);
|
|
5862
5877
|
`}
|
|
5863
|
-
${({ preventUserSelect }) => preventUserSelect &&
|
|
5878
|
+
${({ preventUserSelect }) => preventUserSelect && import_styled_components25.css`
|
|
5864
5879
|
user-select: none;
|
|
5865
5880
|
`}
|
|
5866
|
-
${({ align }) =>
|
|
5881
|
+
${({ align }) => import_styled_components25.css`
|
|
5867
5882
|
text-align: ${align};
|
|
5868
5883
|
`}
|
|
5869
|
-
${({ as }) => as === "p" &&
|
|
5884
|
+
${({ as }) => as === "p" && import_styled_components25.css`
|
|
5870
5885
|
display: block;
|
|
5871
5886
|
`}
|
|
5872
5887
|
`;
|
|
@@ -5906,7 +5921,7 @@ TextComponent.displayName = "Text";
|
|
|
5906
5921
|
var Text = makePolymorphic(TextComponent);
|
|
5907
5922
|
|
|
5908
5923
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
5909
|
-
var
|
|
5924
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
5910
5925
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
5911
5926
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
5912
5927
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -5927,7 +5942,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
5927
5942
|
}
|
|
5928
5943
|
return "0 0 144 31.47";
|
|
5929
5944
|
};
|
|
5930
|
-
var WistiaLogoComponent =
|
|
5945
|
+
var WistiaLogoComponent = import_styled_components26.default.svg`
|
|
5931
5946
|
height: ${({ height }) => `${height}px`};
|
|
5932
5947
|
|
|
5933
5948
|
/* ensure it will always fit on mobile */
|