@wistia/ui 0.6.27 → 0.6.28
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 +328 -333
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +158 -163
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.28
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14,23 +14,45 @@ import { Provider as TooltipProvider } from "@radix-ui/react-tooltip";
|
|
|
14
14
|
// src/css/GlobalStyle.tsx
|
|
15
15
|
import { createGlobalStyle } from "styled-components";
|
|
16
16
|
|
|
17
|
-
// src/css/
|
|
17
|
+
// src/css/globalStyleAdjustmentsCss.tsx
|
|
18
18
|
import { css } from "styled-components";
|
|
19
|
-
var
|
|
20
|
-
/*
|
|
19
|
+
var globalStyleAdjustmentsCss = css`
|
|
20
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 1. Change from 'content-box' so that 'width' calculations are unaffected by 'padding' or 'border'
|
|
24
|
+
See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
|
25
|
+
* 2. Ensure the iOS tap highlight is transparent
|
|
26
|
+
* 3. Prevent font size inflation
|
|
27
|
+
* 4. Fix for 100vh in mobile WebKit
|
|
28
|
+
* See: https://allthingssmitty.com/2020/05/11/css-fix-for-100vh-in-mobile-webkit/
|
|
29
|
+
*/
|
|
30
|
+
html {
|
|
31
|
+
box-sizing: border-box; /* 1 */
|
|
32
|
+
-webkit-tap-highlight-color: rgb(0 0 0 / 0%); /* 2 */
|
|
33
|
+
-moz-text-size-adjust: none; /* 3 */
|
|
34
|
+
-webkit-text-size-adjust: none;
|
|
35
|
+
text-size-adjust: none;
|
|
36
|
+
height: -webkit-fill-available; /* 4 */
|
|
37
|
+
}
|
|
38
|
+
|
|
21
39
|
*,
|
|
22
40
|
*::before,
|
|
23
41
|
*::after {
|
|
24
|
-
box-sizing:
|
|
42
|
+
box-sizing: inherit; /* 1 */
|
|
25
43
|
}
|
|
26
44
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
/**
|
|
46
|
+
* 1. Without this fonts are too heavy weight in OS X Firefox
|
|
47
|
+
* 2. Design decision
|
|
48
|
+
3. See: https://allthingssmitty.com/2020/05/11/css-fix-for-100vh-in-mobile-webkit/
|
|
49
|
+
*/
|
|
50
|
+
body {
|
|
51
|
+
-moz-osx-font-smoothing: grayscale; /* 1 */
|
|
52
|
+
-webkit-font-smoothing: antialiased; /* 2 */
|
|
53
|
+
line-height: 1.5; /* 2 */
|
|
54
|
+
min-height: 100vh; /* 3 */
|
|
55
|
+
min-height: -webkit-fill-available; /* 3 */
|
|
34
56
|
}
|
|
35
57
|
|
|
36
58
|
/* Remove default margin in favour of better control in authored CSS */
|
|
@@ -53,12 +75,6 @@ var resetCss = css`
|
|
|
53
75
|
list-style: none;
|
|
54
76
|
}
|
|
55
77
|
|
|
56
|
-
/* Set core body defaults */
|
|
57
|
-
body {
|
|
58
|
-
min-height: 100vh;
|
|
59
|
-
line-height: 1.5;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
78
|
/* Set shorter line heights on headings and interactive elements */
|
|
63
79
|
h1,
|
|
64
80
|
h2,
|
|
@@ -128,32 +144,12 @@ var resetCss = css`
|
|
|
128
144
|
}
|
|
129
145
|
`;
|
|
130
146
|
|
|
131
|
-
// src/css/globalStyleAdjustmentsCss.tsx
|
|
132
|
-
import { css as css2 } from "styled-components";
|
|
133
|
-
var globalStyleAdjustmentsCss = css2`
|
|
134
|
-
/**
|
|
135
|
-
* 1. Ensure the iOS tap highlight is transparent
|
|
136
|
-
*/
|
|
137
|
-
html {
|
|
138
|
-
-webkit-tap-highlight-color: rgb(0 0 0 / 0%); /* 1 */
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 1. Without this fonts are too heavy weight in OS X Firefox
|
|
143
|
-
* 2. Design decision
|
|
144
|
-
*/
|
|
145
|
-
body {
|
|
146
|
-
-moz-osx-font-smoothing: grayscale; /* 1 */
|
|
147
|
-
-webkit-font-smoothing: antialiased; /* 2 */
|
|
148
|
-
}
|
|
149
|
-
`;
|
|
150
|
-
|
|
151
147
|
// src/css/designTokens/index.tsx
|
|
152
|
-
import { css as
|
|
148
|
+
import { css as css10 } from "styled-components";
|
|
153
149
|
|
|
154
150
|
// src/css/designTokens/colorGlobal.tsx
|
|
155
|
-
import { css as
|
|
156
|
-
var lightGlobalTokens =
|
|
151
|
+
import { css as css2 } from "styled-components";
|
|
152
|
+
var lightGlobalTokens = css2`
|
|
157
153
|
--wui-app-background: #ffffff;
|
|
158
154
|
--wui-blue-surface: #f4f8ffcc;
|
|
159
155
|
--wui-blue-contrast: #ffffff;
|
|
@@ -484,7 +480,7 @@ var lightGlobalTokens = css3`
|
|
|
484
480
|
--wui-vendor-pardot-surface: #f0f9fecc;
|
|
485
481
|
--wui-vendor-pardot-contrast: #ffffff;
|
|
486
482
|
`;
|
|
487
|
-
var darkGlobalTokens =
|
|
483
|
+
var darkGlobalTokens = css2`
|
|
488
484
|
--wui-app-background: #101629;
|
|
489
485
|
--wui-blue-surface: #141c2d80;
|
|
490
486
|
--wui-blue-contrast: #ffffff;
|
|
@@ -817,8 +813,8 @@ var darkGlobalTokens = css3`
|
|
|
817
813
|
`;
|
|
818
814
|
|
|
819
815
|
// src/css/designTokens/colorAlias.tsx
|
|
820
|
-
import { css as
|
|
821
|
-
var colorAliasTokens =
|
|
816
|
+
import { css as css3 } from "styled-components";
|
|
817
|
+
var colorAliasTokens = css3`
|
|
822
818
|
--wui-color-bg-app: var(--wui-app-background);
|
|
823
819
|
|
|
824
820
|
/* --- default --- */
|
|
@@ -1142,8 +1138,8 @@ var colorAliasTokens = css4`
|
|
|
1142
1138
|
`;
|
|
1143
1139
|
|
|
1144
1140
|
// src/css/designTokens/borderRadius.tsx
|
|
1145
|
-
import { css as
|
|
1146
|
-
var borderRadiusTokens =
|
|
1141
|
+
import { css as css4 } from "styled-components";
|
|
1142
|
+
var borderRadiusTokens = css4`
|
|
1147
1143
|
--wui-border-radius-01: 4px;
|
|
1148
1144
|
--wui-border-radius-02: 8px;
|
|
1149
1145
|
--wui-border-radius-03: 16px;
|
|
@@ -1153,8 +1149,8 @@ var borderRadiusTokens = css5`
|
|
|
1153
1149
|
`;
|
|
1154
1150
|
|
|
1155
1151
|
// src/css/designTokens/spacing.tsx
|
|
1156
|
-
import { css as
|
|
1157
|
-
var spacingTokens =
|
|
1152
|
+
import { css as css5 } from "styled-components";
|
|
1153
|
+
var spacingTokens = css5`
|
|
1158
1154
|
--wui-space-00: 0;
|
|
1159
1155
|
--wui-space-01: 4px;
|
|
1160
1156
|
--wui-space-02: 8px;
|
|
@@ -1168,8 +1164,8 @@ var spacingTokens = css6`
|
|
|
1168
1164
|
`;
|
|
1169
1165
|
|
|
1170
1166
|
// src/css/designTokens/typography.tsx
|
|
1171
|
-
import { css as
|
|
1172
|
-
var typographyTokens =
|
|
1167
|
+
import { css as css6 } from "styled-components";
|
|
1168
|
+
var typographyTokens = css6`
|
|
1173
1169
|
--wui-typography-family-default: intervariable, sans-serif;
|
|
1174
1170
|
--wui-typography-family-brand: 'GT Walsheim', sans-serif;
|
|
1175
1171
|
--wui-typography-family-mono: 'IBM Plex Mono', monospace;
|
|
@@ -1282,8 +1278,8 @@ var typographyTokens = css7`
|
|
|
1282
1278
|
`;
|
|
1283
1279
|
|
|
1284
1280
|
// src/css/designTokens/zIndex.tsx
|
|
1285
|
-
import { css as
|
|
1286
|
-
var zIndexTokens =
|
|
1281
|
+
import { css as css7 } from "styled-components";
|
|
1282
|
+
var zIndexTokens = css7`
|
|
1287
1283
|
--wui-zindex-under: -1;
|
|
1288
1284
|
--wui-zindex-backdrop: 100;
|
|
1289
1285
|
--wui-zindex-modal: 100;
|
|
@@ -1293,15 +1289,15 @@ var zIndexTokens = css8`
|
|
|
1293
1289
|
`;
|
|
1294
1290
|
|
|
1295
1291
|
// src/css/designTokens/elevation.tsx
|
|
1296
|
-
import { css as
|
|
1297
|
-
var elevationTokens =
|
|
1292
|
+
import { css as css8 } from "styled-components";
|
|
1293
|
+
var elevationTokens = css8`
|
|
1298
1294
|
--wui-elevation-01: 0px 4px 8px 0px var(--wui-color-drop-shadow);
|
|
1299
1295
|
--wui-elevation-02: 0px 4px 24px 0px var(--wui-color-drop-shadow);
|
|
1300
1296
|
`;
|
|
1301
1297
|
|
|
1302
1298
|
// src/css/designTokens/motion.tsx
|
|
1303
|
-
import { css as
|
|
1304
|
-
var motionTokens =
|
|
1299
|
+
import { css as css9 } from "styled-components";
|
|
1300
|
+
var motionTokens = css9`
|
|
1305
1301
|
/* Durations */
|
|
1306
1302
|
--wui-motion-duration-01: 70ms;
|
|
1307
1303
|
--wui-motion-duration-02: 110ms;
|
|
@@ -1330,7 +1326,7 @@ var motionTokens = css10`
|
|
|
1330
1326
|
`;
|
|
1331
1327
|
|
|
1332
1328
|
// src/css/designTokens/index.tsx
|
|
1333
|
-
var colorTokens =
|
|
1329
|
+
var colorTokens = css10`
|
|
1334
1330
|
${lightGlobalTokens}
|
|
1335
1331
|
/* Dark mode is disabled until we have a more robust plan for supporting it */
|
|
1336
1332
|
|
|
@@ -1339,7 +1335,7 @@ var colorTokens = css11`
|
|
|
1339
1335
|
} */
|
|
1340
1336
|
${colorAliasTokens}
|
|
1341
1337
|
`;
|
|
1342
|
-
var designTokens =
|
|
1338
|
+
var designTokens = css10`
|
|
1343
1339
|
:root {
|
|
1344
1340
|
${borderRadiusTokens}
|
|
1345
1341
|
${colorTokens}
|
|
@@ -1352,8 +1348,8 @@ var designTokens = css11`
|
|
|
1352
1348
|
`;
|
|
1353
1349
|
|
|
1354
1350
|
// src/components/ClickRegion/globalStyles.tsx
|
|
1355
|
-
import { css as
|
|
1356
|
-
var clickRegionGlobalStyles =
|
|
1351
|
+
import { css as css11 } from "styled-components";
|
|
1352
|
+
var clickRegionGlobalStyles = css11`
|
|
1357
1353
|
[data-click-region] {
|
|
1358
1354
|
position: relative;
|
|
1359
1355
|
cursor: pointer;
|
|
@@ -1380,7 +1376,6 @@ var clickRegionGlobalStyles = css12`
|
|
|
1380
1376
|
|
|
1381
1377
|
// src/css/GlobalStyle.tsx
|
|
1382
1378
|
var GlobalStyle = createGlobalStyle`
|
|
1383
|
-
${resetCss}
|
|
1384
1379
|
${globalStyleAdjustmentsCss}
|
|
1385
1380
|
${designTokens}
|
|
1386
1381
|
${clickRegionGlobalStyles}
|
|
@@ -2139,9 +2134,9 @@ import { isNotNil as isNotNil3 } from "@wistia/type-guards";
|
|
|
2139
2134
|
|
|
2140
2135
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
2141
2136
|
import { isNotNil as isNotNil2 } from "@wistia/type-guards";
|
|
2142
|
-
import styled, { css as
|
|
2137
|
+
import styled, { css as css12 } from "styled-components";
|
|
2143
2138
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
2144
|
-
var ellipsisStyle =
|
|
2139
|
+
var ellipsisStyle = css12`
|
|
2145
2140
|
overflow: hidden;
|
|
2146
2141
|
text-overflow: ellipsis;
|
|
2147
2142
|
white-space: nowrap;
|
|
@@ -2165,14 +2160,14 @@ var ellipsisStyle = css13`
|
|
|
2165
2160
|
}
|
|
2166
2161
|
}
|
|
2167
2162
|
`;
|
|
2168
|
-
var ellipsisFlexParentStyle =
|
|
2163
|
+
var ellipsisFlexParentStyle = css12`
|
|
2169
2164
|
min-width: 0;
|
|
2170
2165
|
`;
|
|
2171
2166
|
var EllipsisComponent = styled.span`
|
|
2172
2167
|
${ellipsisStyle};
|
|
2173
2168
|
${({ $lines }) => {
|
|
2174
2169
|
if (isNotNil2($lines)) {
|
|
2175
|
-
return
|
|
2170
|
+
return css12`
|
|
2176
2171
|
-webkit-box-orient: vertical;
|
|
2177
2172
|
-webkit-line-clamp: ${$lines};
|
|
2178
2173
|
display: -webkit-box;
|
|
@@ -2193,7 +2188,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ jsx4(
|
|
|
2193
2188
|
Ellipsis.displayName = "Ellipsis";
|
|
2194
2189
|
|
|
2195
2190
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
2196
|
-
import { css as
|
|
2191
|
+
import { css as css13 } from "styled-components";
|
|
2197
2192
|
var colorSchemeSchema = [
|
|
2198
2193
|
{ token: "bg-surface", step: "2" },
|
|
2199
2194
|
{ token: "bg-surface-hover", step: "3" },
|
|
@@ -2220,7 +2215,7 @@ var colorSchemeSchema = [
|
|
|
2220
2215
|
{ token: "icon-on-fill", step: "contrast" },
|
|
2221
2216
|
{ token: "focus-ring", step: "9" }
|
|
2222
2217
|
];
|
|
2223
|
-
var defaultScheme =
|
|
2218
|
+
var defaultScheme = css13`
|
|
2224
2219
|
--wui-color-bg-surface: var(--wui-gray-1);
|
|
2225
2220
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
2226
2221
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -2246,7 +2241,7 @@ var defaultScheme = css14`
|
|
|
2246
2241
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
2247
2242
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
2248
2243
|
`;
|
|
2249
|
-
var navScheme =
|
|
2244
|
+
var navScheme = css13`
|
|
2250
2245
|
--wui-color-bg-app: #1e3399;
|
|
2251
2246
|
|
|
2252
2247
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -2307,7 +2302,7 @@ var getColorScheme = (colorScheme) => {
|
|
|
2307
2302
|
if (colorScheme === "default") {
|
|
2308
2303
|
return defaultScheme;
|
|
2309
2304
|
}
|
|
2310
|
-
return
|
|
2305
|
+
return css13`
|
|
2311
2306
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
2312
2307
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
2313
2308
|
}).join("")}
|
|
@@ -2423,7 +2418,7 @@ var useToast = () => {
|
|
|
2423
2418
|
|
|
2424
2419
|
// src/components/ActionButton/ActionButton.tsx
|
|
2425
2420
|
import { forwardRef as forwardRef3 } from "react";
|
|
2426
|
-
import styled6, { css as
|
|
2421
|
+
import styled6, { css as css16 } from "styled-components";
|
|
2427
2422
|
|
|
2428
2423
|
// src/components/Button/Button.tsx
|
|
2429
2424
|
import { forwardRef as forwardRef2 } from "react";
|
|
@@ -2431,8 +2426,8 @@ import styled5 from "styled-components";
|
|
|
2431
2426
|
import { isNotNil as isNotNil5, isNotUndefined as isNotUndefined3 } from "@wistia/type-guards";
|
|
2432
2427
|
|
|
2433
2428
|
// src/css/buttonResetCss.tsx
|
|
2434
|
-
import { css as
|
|
2435
|
-
var buttonResetCss =
|
|
2429
|
+
import { css as css14 } from "styled-components";
|
|
2430
|
+
var buttonResetCss = css14`
|
|
2436
2431
|
align-items: center;
|
|
2437
2432
|
background-color: transparent;
|
|
2438
2433
|
background-image: none;
|
|
@@ -2477,8 +2472,8 @@ var buttonResetCss = css15`
|
|
|
2477
2472
|
`;
|
|
2478
2473
|
|
|
2479
2474
|
// src/components/Button/buttonStyles.tsx
|
|
2480
|
-
import { css as
|
|
2481
|
-
var buttonSmallStyles =
|
|
2475
|
+
import { css as css15 } from "styled-components";
|
|
2476
|
+
var buttonSmallStyles = css15`
|
|
2482
2477
|
--button-padding-vertical: var(--wui-space-01);
|
|
2483
2478
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2484
2479
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2489,7 +2484,7 @@ var buttonSmallStyles = css16`
|
|
|
2489
2484
|
--button-icon-size: 12px;
|
|
2490
2485
|
--button-label-gap: 4px;
|
|
2491
2486
|
`;
|
|
2492
|
-
var buttonMediumStyles =
|
|
2487
|
+
var buttonMediumStyles = css15`
|
|
2493
2488
|
--button-padding-vertical: var(--wui-space-02);
|
|
2494
2489
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2495
2490
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2500,7 +2495,7 @@ var buttonMediumStyles = css16`
|
|
|
2500
2495
|
--button-icon-size: 16px;
|
|
2501
2496
|
--button-label-gap: 6px;
|
|
2502
2497
|
`;
|
|
2503
|
-
var buttonLargeStyles =
|
|
2498
|
+
var buttonLargeStyles = css15`
|
|
2504
2499
|
--button-padding-vertical: var(--wui-space-02);
|
|
2505
2500
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2506
2501
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2511,7 +2506,7 @@ var buttonLargeStyles = css16`
|
|
|
2511
2506
|
--button-icon-size: 24px;
|
|
2512
2507
|
--button-label-gap: 8px;
|
|
2513
2508
|
`;
|
|
2514
|
-
var buttonExtraLargeStyles =
|
|
2509
|
+
var buttonExtraLargeStyles = css15`
|
|
2515
2510
|
--button-padding-vertical: var(--wui-space-03);
|
|
2516
2511
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2517
2512
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2522,34 +2517,34 @@ var buttonExtraLargeStyles = css16`
|
|
|
2522
2517
|
--button-icon-size: 24px;
|
|
2523
2518
|
--button-label-gap: 8px;
|
|
2524
2519
|
`;
|
|
2525
|
-
var ghostButtonVariant =
|
|
2520
|
+
var ghostButtonVariant = css15`
|
|
2526
2521
|
--button-color-bg: transparent;
|
|
2527
2522
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2528
2523
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2529
2524
|
--button-color-text: var(--wui-color-text-button);
|
|
2530
2525
|
--button-color-icon: var(--wui-color-icon);
|
|
2531
2526
|
`;
|
|
2532
|
-
var outlineButtonVariant =
|
|
2527
|
+
var outlineButtonVariant = css15`
|
|
2533
2528
|
${ghostButtonVariant};
|
|
2534
2529
|
--button-color-border: var(--wui-color-border);
|
|
2535
2530
|
|
|
2536
2531
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2537
2532
|
`;
|
|
2538
|
-
var softButtonVariant =
|
|
2533
|
+
var softButtonVariant = css15`
|
|
2539
2534
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2540
2535
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2541
2536
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2542
2537
|
--button-color-text: var(--wui-color-text-button);
|
|
2543
2538
|
--button-color-icon: var(--wui-color-icon);
|
|
2544
2539
|
`;
|
|
2545
|
-
var solidButtonVariant =
|
|
2540
|
+
var solidButtonVariant = css15`
|
|
2546
2541
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2547
2542
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2548
2543
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2549
2544
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2550
2545
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2551
2546
|
`;
|
|
2552
|
-
var disabledButtonVariant =
|
|
2547
|
+
var disabledButtonVariant = css15`
|
|
2553
2548
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2554
2549
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2555
2550
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2557,7 +2552,7 @@ var disabledButtonVariant = css16`
|
|
|
2557
2552
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2558
2553
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2559
2554
|
`;
|
|
2560
|
-
var pressedButtonVariant =
|
|
2555
|
+
var pressedButtonVariant = css15`
|
|
2561
2556
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2562
2557
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2563
2558
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2565,7 +2560,7 @@ var pressedButtonVariant = css16`
|
|
|
2565
2560
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2566
2561
|
--button-color-border: var(--wui-color-border-selected);
|
|
2567
2562
|
`;
|
|
2568
|
-
var buttonBaseStyles =
|
|
2563
|
+
var buttonBaseStyles = css15`
|
|
2569
2564
|
border-radius: var(--wui-border-radius-rounded);
|
|
2570
2565
|
font-family: var(--button-typography-family);
|
|
2571
2566
|
font-size: var(--button-typography-size);
|
|
@@ -6783,7 +6778,7 @@ var StyledSecondaryIcon = styled6.div`
|
|
|
6783
6778
|
justify-content: flex-end;
|
|
6784
6779
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
6785
6780
|
|
|
6786
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
6781
|
+
${({ $hideUntilHover }) => $hideUntilHover && css16`
|
|
6787
6782
|
will-change: transform;
|
|
6788
6783
|
opacity: 0;
|
|
6789
6784
|
transform: translateX(-16px);
|
|
@@ -7444,18 +7439,18 @@ Card.displayName = "Card";
|
|
|
7444
7439
|
|
|
7445
7440
|
// src/components/Checkbox/Checkbox.tsx
|
|
7446
7441
|
import { forwardRef as forwardRef6, useId } from "react";
|
|
7447
|
-
import styled18, { css as
|
|
7442
|
+
import styled18, { css as css19 } from "styled-components";
|
|
7448
7443
|
import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
|
|
7449
7444
|
|
|
7450
7445
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
7451
|
-
import styled17, { css as
|
|
7446
|
+
import styled17, { css as css18 } from "styled-components";
|
|
7452
7447
|
import { isNil as isNil12, isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
7453
7448
|
|
|
7454
7449
|
// src/private/components/FormControlLabel/FormControlLabelDescription.tsx
|
|
7455
|
-
import styled15, { css as
|
|
7450
|
+
import styled15, { css as css17 } from "styled-components";
|
|
7456
7451
|
import { isNil as isNil11 } from "@wistia/type-guards";
|
|
7457
7452
|
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
7458
|
-
var disabledStyle =
|
|
7453
|
+
var disabledStyle = css17`
|
|
7459
7454
|
color: var(--wui-color-text-disabled);
|
|
7460
7455
|
`;
|
|
7461
7456
|
var StyledFormControlLabelDescription = styled15.div`
|
|
@@ -7511,7 +7506,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
7511
7506
|
|
|
7512
7507
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
7513
7508
|
import { jsx as jsx201, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
7514
|
-
var disabledStyle2 =
|
|
7509
|
+
var disabledStyle2 = css18`
|
|
7515
7510
|
cursor: not-allowed;
|
|
7516
7511
|
color: var(--wui-color-text-disabled);
|
|
7517
7512
|
`;
|
|
@@ -7582,7 +7577,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx202(
|
|
|
7582
7577
|
)
|
|
7583
7578
|
}
|
|
7584
7579
|
);
|
|
7585
|
-
var sizeSmall =
|
|
7580
|
+
var sizeSmall = css19`
|
|
7586
7581
|
width: 14px;
|
|
7587
7582
|
height: 14px;
|
|
7588
7583
|
min-width: 14px;
|
|
@@ -7593,7 +7588,7 @@ var sizeSmall = css20`
|
|
|
7593
7588
|
height: 7px;
|
|
7594
7589
|
}
|
|
7595
7590
|
`;
|
|
7596
|
-
var sizeMedium =
|
|
7591
|
+
var sizeMedium = css19`
|
|
7597
7592
|
width: 16px;
|
|
7598
7593
|
height: 16px;
|
|
7599
7594
|
min-width: 16px;
|
|
@@ -7604,7 +7599,7 @@ var sizeMedium = css20`
|
|
|
7604
7599
|
height: 9px;
|
|
7605
7600
|
}
|
|
7606
7601
|
`;
|
|
7607
|
-
var sizeLarge =
|
|
7602
|
+
var sizeLarge = css19`
|
|
7608
7603
|
width: 20px;
|
|
7609
7604
|
height: 20px;
|
|
7610
7605
|
min-width: 20px;
|
|
@@ -7813,45 +7808,45 @@ import { isNotNull } from "@wistia/type-guards";
|
|
|
7813
7808
|
|
|
7814
7809
|
// src/components/Heading/Heading.tsx
|
|
7815
7810
|
import { forwardRef as forwardRef7 } from "react";
|
|
7816
|
-
import styled21, { css as
|
|
7811
|
+
import styled21, { css as css20 } from "styled-components";
|
|
7817
7812
|
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
7818
|
-
var heroStyle =
|
|
7813
|
+
var heroStyle = css20`
|
|
7819
7814
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
7820
7815
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
7821
7816
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
7822
7817
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
7823
7818
|
`;
|
|
7824
|
-
var heading1TextStyle =
|
|
7819
|
+
var heading1TextStyle = css20`
|
|
7825
7820
|
--font-family: var(--wui-typography-heading-1-family);
|
|
7826
7821
|
--font-size: var(--wui-typography-heading-1-size);
|
|
7827
7822
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
7828
7823
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
7829
7824
|
`;
|
|
7830
|
-
var heading2TextStyle =
|
|
7825
|
+
var heading2TextStyle = css20`
|
|
7831
7826
|
--font-family: var(--wui-typography-heading-2-family);
|
|
7832
7827
|
--font-size: var(--wui-typography-heading-2-size);
|
|
7833
7828
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
7834
7829
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
7835
7830
|
`;
|
|
7836
|
-
var heading3TextStyle =
|
|
7831
|
+
var heading3TextStyle = css20`
|
|
7837
7832
|
--font-family: var(--wui-typography-heading-3-family);
|
|
7838
7833
|
--font-size: var(--wui-typography-heading-3-size);
|
|
7839
7834
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
7840
7835
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
7841
7836
|
`;
|
|
7842
|
-
var heading4TextStyle =
|
|
7837
|
+
var heading4TextStyle = css20`
|
|
7843
7838
|
--font-family: var(--wui-typography-heading-4-family);
|
|
7844
7839
|
--font-size: var(--wui-typography-heading-4-size);
|
|
7845
7840
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
7846
7841
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
7847
7842
|
`;
|
|
7848
|
-
var heading5TextStyle =
|
|
7843
|
+
var heading5TextStyle = css20`
|
|
7849
7844
|
--font-family: var(--wui-typography-heading-5-family);
|
|
7850
7845
|
--font-size: var(--wui-typography-heading-5-size);
|
|
7851
7846
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
7852
7847
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
7853
7848
|
`;
|
|
7854
|
-
var heading6TextStyle =
|
|
7849
|
+
var heading6TextStyle = css20`
|
|
7855
7850
|
--font-family: var(--wui-typography-heading-6-family);
|
|
7856
7851
|
--font-size: var(--wui-typography-heading-6-size);
|
|
7857
7852
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -7876,16 +7871,16 @@ var StyledHeading = styled21.div`
|
|
|
7876
7871
|
color: var(--wui-color-text);
|
|
7877
7872
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
7878
7873
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7879
|
-
${({ $inline }) => $inline &&
|
|
7874
|
+
${({ $inline }) => $inline && css20`
|
|
7880
7875
|
display: inline-block;
|
|
7881
7876
|
`}
|
|
7882
|
-
${({ $disabled }) => $disabled &&
|
|
7877
|
+
${({ $disabled }) => $disabled && css20`
|
|
7883
7878
|
color: var(--wui-color-text-disabled);
|
|
7884
7879
|
`}
|
|
7885
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7880
|
+
${({ $preventUserSelect }) => $preventUserSelect && css20`
|
|
7886
7881
|
user-select: none;
|
|
7887
7882
|
`}
|
|
7888
|
-
${({ $align }) =>
|
|
7883
|
+
${({ $align }) => css20`
|
|
7889
7884
|
text-align: ${$align};
|
|
7890
7885
|
`}
|
|
7891
7886
|
margin: 0;
|
|
@@ -8064,21 +8059,21 @@ import styled25 from "styled-components";
|
|
|
8064
8059
|
|
|
8065
8060
|
// src/components/Text/Text.tsx
|
|
8066
8061
|
import { forwardRef as forwardRef8 } from "react";
|
|
8067
|
-
import styled24, { css as
|
|
8062
|
+
import styled24, { css as css21 } from "styled-components";
|
|
8068
8063
|
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
8069
|
-
var bodyBoldStyles =
|
|
8064
|
+
var bodyBoldStyles = css21`
|
|
8070
8065
|
> strong,
|
|
8071
8066
|
b {
|
|
8072
8067
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
8073
8068
|
}
|
|
8074
8069
|
`;
|
|
8075
|
-
var labelBoldStyles =
|
|
8070
|
+
var labelBoldStyles = css21`
|
|
8076
8071
|
> strong,
|
|
8077
8072
|
b {
|
|
8078
8073
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
8079
8074
|
}
|
|
8080
8075
|
`;
|
|
8081
|
-
var body1TextStyle =
|
|
8076
|
+
var body1TextStyle = css21`
|
|
8082
8077
|
--font-family: var(--wui-typography-body-1-family);
|
|
8083
8078
|
--font-size: var(--wui-typography-body-1-size);
|
|
8084
8079
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
@@ -8086,7 +8081,7 @@ var body1TextStyle = css22`
|
|
|
8086
8081
|
--paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
|
|
8087
8082
|
${bodyBoldStyles}
|
|
8088
8083
|
`;
|
|
8089
|
-
var body2TextStyle =
|
|
8084
|
+
var body2TextStyle = css21`
|
|
8090
8085
|
--font-family: var(--wui-typography-body-2-family);
|
|
8091
8086
|
--font-size: var(--wui-typography-body-2-size);
|
|
8092
8087
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -8094,7 +8089,7 @@ var body2TextStyle = css22`
|
|
|
8094
8089
|
--paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
|
|
8095
8090
|
${bodyBoldStyles}
|
|
8096
8091
|
`;
|
|
8097
|
-
var body3TextStyle =
|
|
8092
|
+
var body3TextStyle = css21`
|
|
8098
8093
|
--font-family: var(--wui-typography-body-3-family);
|
|
8099
8094
|
--font-size: var(--wui-typography-body-3-size);
|
|
8100
8095
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
@@ -8102,7 +8097,7 @@ var body3TextStyle = css22`
|
|
|
8102
8097
|
--paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
|
|
8103
8098
|
${bodyBoldStyles}
|
|
8104
8099
|
`;
|
|
8105
|
-
var body4TextStyle =
|
|
8100
|
+
var body4TextStyle = css21`
|
|
8106
8101
|
--font-family: var(--wui-typography-body-4-family);
|
|
8107
8102
|
--font-size: var(--wui-typography-body-4-size);
|
|
8108
8103
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -8110,47 +8105,47 @@ var body4TextStyle = css22`
|
|
|
8110
8105
|
--paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
|
|
8111
8106
|
${bodyBoldStyles}
|
|
8112
8107
|
`;
|
|
8113
|
-
var label1TextStyle =
|
|
8108
|
+
var label1TextStyle = css21`
|
|
8114
8109
|
--font-family: var(--wui-typography-label-1-family);
|
|
8115
8110
|
--font-size: var(--wui-typography-label-1-size);
|
|
8116
8111
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
8117
8112
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
8118
8113
|
${labelBoldStyles}
|
|
8119
8114
|
`;
|
|
8120
|
-
var label2TextStyle =
|
|
8115
|
+
var label2TextStyle = css21`
|
|
8121
8116
|
--font-family: var(--wui-typography-label-2-family);
|
|
8122
8117
|
--font-size: var(--wui-typography-label-2-size);
|
|
8123
8118
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
8124
8119
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
8125
8120
|
${labelBoldStyles}
|
|
8126
8121
|
`;
|
|
8127
|
-
var label3TextStyle =
|
|
8122
|
+
var label3TextStyle = css21`
|
|
8128
8123
|
--font-family: var(--wui-typography-label-3-family);
|
|
8129
8124
|
--font-size: var(--wui-typography-label-3-size);
|
|
8130
8125
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
8131
8126
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
8132
8127
|
${labelBoldStyles}
|
|
8133
8128
|
`;
|
|
8134
|
-
var label4TextStyle =
|
|
8129
|
+
var label4TextStyle = css21`
|
|
8135
8130
|
--font-family: var(--wui-typography-label-4-family);
|
|
8136
8131
|
--font-size: var(--wui-typography-label-4-size);
|
|
8137
8132
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
8138
8133
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
8139
8134
|
${labelBoldStyles}
|
|
8140
8135
|
`;
|
|
8141
|
-
var body1MonoTextStyle =
|
|
8136
|
+
var body1MonoTextStyle = css21`
|
|
8142
8137
|
${body1TextStyle};
|
|
8143
8138
|
--font-family: var(--wui-typography-family-mono);
|
|
8144
8139
|
`;
|
|
8145
|
-
var body2MonoTextStyle =
|
|
8140
|
+
var body2MonoTextStyle = css21`
|
|
8146
8141
|
${body2TextStyle};
|
|
8147
8142
|
--font-family: var(--wui-typography-family-mono);
|
|
8148
8143
|
`;
|
|
8149
|
-
var body3MonoTextStyle =
|
|
8144
|
+
var body3MonoTextStyle = css21`
|
|
8150
8145
|
${body3TextStyle};
|
|
8151
8146
|
--font-family: var(--wui-typography-family-mono);
|
|
8152
8147
|
`;
|
|
8153
|
-
var body4MonoTextStyle =
|
|
8148
|
+
var body4MonoTextStyle = css21`
|
|
8154
8149
|
${body4TextStyle};
|
|
8155
8150
|
--font-family: var(--wui-typography-family-mono);
|
|
8156
8151
|
`;
|
|
@@ -8209,19 +8204,19 @@ var StyledText = styled24.div`
|
|
|
8209
8204
|
margin: 0;
|
|
8210
8205
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
8211
8206
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
8212
|
-
${({ $inline }) => $inline &&
|
|
8207
|
+
${({ $inline }) => $inline && css21`
|
|
8213
8208
|
display: inline-block;
|
|
8214
8209
|
`}
|
|
8215
|
-
${({ $disabled }) => $disabled &&
|
|
8210
|
+
${({ $disabled }) => $disabled && css21`
|
|
8216
8211
|
--text-color: var(--wui-color-text-disabled);
|
|
8217
8212
|
`}
|
|
8218
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
8213
|
+
${({ $preventUserSelect }) => $preventUserSelect && css21`
|
|
8219
8214
|
user-select: none;
|
|
8220
8215
|
`}
|
|
8221
|
-
${({ $align }) =>
|
|
8216
|
+
${({ $align }) => css21`
|
|
8222
8217
|
text-align: ${$align};
|
|
8223
8218
|
`}
|
|
8224
|
-
${({ as }) => as === "p" &&
|
|
8219
|
+
${({ as }) => as === "p" && css21`
|
|
8225
8220
|
display: block;
|
|
8226
8221
|
|
|
8227
8222
|
+ p {
|
|
@@ -8301,16 +8296,16 @@ var DataCardTrend = ({
|
|
|
8301
8296
|
};
|
|
8302
8297
|
|
|
8303
8298
|
// src/components/Divider/Divider.tsx
|
|
8304
|
-
import styled26, { css as
|
|
8299
|
+
import styled26, { css as css22 } from "styled-components";
|
|
8305
8300
|
import { jsx as jsx211 } from "react/jsx-runtime";
|
|
8306
|
-
var horizontalBorderCss =
|
|
8301
|
+
var horizontalBorderCss = css22`
|
|
8307
8302
|
border-top-color: var(--wui-color-border);
|
|
8308
8303
|
border-top-style: solid;
|
|
8309
8304
|
border-top-width: 1px;
|
|
8310
8305
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
8311
8306
|
height: 0;
|
|
8312
8307
|
`;
|
|
8313
|
-
var verticalBorderCss =
|
|
8308
|
+
var verticalBorderCss = css22`
|
|
8314
8309
|
background-color: var(--wui-color-border);
|
|
8315
8310
|
max-width: 1px;
|
|
8316
8311
|
min-height: 100%;
|
|
@@ -8344,7 +8339,7 @@ var Divider = ({
|
|
|
8344
8339
|
Divider.displayName = "Divider";
|
|
8345
8340
|
|
|
8346
8341
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
8347
|
-
import styled29, { css as
|
|
8342
|
+
import styled29, { css as css25 } from "styled-components";
|
|
8348
8343
|
import { useState as useState6, useRef as useRef4 } from "react";
|
|
8349
8344
|
|
|
8350
8345
|
// src/components/Tooltip/Tooltip.tsx
|
|
@@ -8355,9 +8350,9 @@ import {
|
|
|
8355
8350
|
Portal as TooltipPortal,
|
|
8356
8351
|
Arrow as TooltipArrow
|
|
8357
8352
|
} from "@radix-ui/react-tooltip";
|
|
8358
|
-
import styled27, { css as
|
|
8353
|
+
import styled27, { css as css23 } from "styled-components";
|
|
8359
8354
|
import { jsx as jsx212, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
8360
|
-
var CompactTooltipStyles =
|
|
8355
|
+
var CompactTooltipStyles = css23`
|
|
8361
8356
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8362
8357
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8363
8358
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8461,10 +8456,10 @@ Tooltip.displayName = "Tooltip";
|
|
|
8461
8456
|
|
|
8462
8457
|
// src/components/Input/Input.tsx
|
|
8463
8458
|
import { forwardRef as forwardRef9, cloneElement as cloneElement4, useRef as useRef3 } from "react";
|
|
8464
|
-
import styled28, { css as
|
|
8459
|
+
import styled28, { css as css24 } from "styled-components";
|
|
8465
8460
|
import { isNil as isNil13, isNotNil as isNotNil11, isRecord as isRecord4 } from "@wistia/type-guards";
|
|
8466
8461
|
import { jsx as jsx213, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
8467
|
-
var inputStyles =
|
|
8462
|
+
var inputStyles = css24`
|
|
8468
8463
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
8469
8464
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
8470
8465
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -8644,7 +8639,7 @@ var StyledInput = styled29(Input)`
|
|
|
8644
8639
|
height: ${({ $height }) => `${$height}px`};
|
|
8645
8640
|
}
|
|
8646
8641
|
`;
|
|
8647
|
-
var editableStyles =
|
|
8642
|
+
var editableStyles = css25`
|
|
8648
8643
|
&:has(+ :focus-within) {
|
|
8649
8644
|
background: var(--wui-color-bg-surface-hover);
|
|
8650
8645
|
}
|
|
@@ -8978,9 +8973,9 @@ import styled34 from "styled-components";
|
|
|
8978
8973
|
import { isArray as isArray2, isNotNil as isNotNil12, isNotUndefined as isNotUndefined8, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
8979
8974
|
|
|
8980
8975
|
// src/components/Label/Label.tsx
|
|
8981
|
-
import styled32, { css as
|
|
8976
|
+
import styled32, { css as css26 } from "styled-components";
|
|
8982
8977
|
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
8983
|
-
var requiredStyle =
|
|
8978
|
+
var requiredStyle = css26`
|
|
8984
8979
|
&::after {
|
|
8985
8980
|
color: var(--wui-color-text-error);
|
|
8986
8981
|
display: inline;
|
|
@@ -8988,7 +8983,7 @@ var requiredStyle = css27`
|
|
|
8988
8983
|
content: '*';
|
|
8989
8984
|
}
|
|
8990
8985
|
`;
|
|
8991
|
-
var disabledStyle3 =
|
|
8986
|
+
var disabledStyle3 = css26`
|
|
8992
8987
|
color: var(--wui-color-text-disabled);
|
|
8993
8988
|
`;
|
|
8994
8989
|
var StyledLabel3 = styled32.label`
|
|
@@ -9338,7 +9333,7 @@ var Image = ({
|
|
|
9338
9333
|
Image.displayName = "Image";
|
|
9339
9334
|
|
|
9340
9335
|
// src/components/Menu/Menu.tsx
|
|
9341
|
-
import styled37, { css as
|
|
9336
|
+
import styled37, { css as css27, keyframes as keyframes2 } from "styled-components";
|
|
9342
9337
|
import {
|
|
9343
9338
|
DropdownMenu,
|
|
9344
9339
|
DropdownMenuTrigger,
|
|
@@ -9375,7 +9370,7 @@ var close = keyframes2`
|
|
|
9375
9370
|
transform: scale(.97) translateY(-8px);
|
|
9376
9371
|
}
|
|
9377
9372
|
`;
|
|
9378
|
-
var menuItemCss =
|
|
9373
|
+
var menuItemCss = css27`
|
|
9379
9374
|
--menu-label-description-gap: var(--wui-space-01);
|
|
9380
9375
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
9381
9376
|
--menu-item-left-icon-size: 24px;
|
|
@@ -9386,7 +9381,7 @@ var menuItemCss = css28`
|
|
|
9386
9381
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
9387
9382
|
--menu-divider-margin: var(--wui-space-02);
|
|
9388
9383
|
`;
|
|
9389
|
-
var compactMenuItemCss =
|
|
9384
|
+
var compactMenuItemCss = css27`
|
|
9390
9385
|
--menu-label-description-gap: 0;
|
|
9391
9386
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
9392
9387
|
--menu-item-left-icon-size: 16px;
|
|
@@ -9397,7 +9392,7 @@ var compactMenuItemCss = css28`
|
|
|
9397
9392
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
9398
9393
|
--menu-divider-margin: var(--wui-space-01);
|
|
9399
9394
|
`;
|
|
9400
|
-
var menuContentCss =
|
|
9395
|
+
var menuContentCss = css27`
|
|
9401
9396
|
--menu-font-family: var(--wui-typography-family-default);
|
|
9402
9397
|
--menu-bg: var(--wui-color-bg-surface);
|
|
9403
9398
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -10169,7 +10164,7 @@ Modal.displayName = "Modal";
|
|
|
10169
10164
|
|
|
10170
10165
|
// src/components/Popover/Popover.tsx
|
|
10171
10166
|
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
|
|
10172
|
-
import styled47, { css as
|
|
10167
|
+
import styled47, { css as css28 } from "styled-components";
|
|
10173
10168
|
|
|
10174
10169
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
10175
10170
|
import { isNotNil as isNotNil19 } from "@wistia/type-guards";
|
|
@@ -10180,7 +10175,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
10180
10175
|
// src/components/Popover/Popover.tsx
|
|
10181
10176
|
import { jsx as jsx239, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
10182
10177
|
var StyledContent2 = styled47(Content2)`
|
|
10183
|
-
${({ $unstyled }) => !$unstyled &&
|
|
10178
|
+
${({ $unstyled }) => !$unstyled && css28`
|
|
10184
10179
|
border-radius: var(--wui-border-radius-02);
|
|
10185
10180
|
padding: var(--wui-space-04);
|
|
10186
10181
|
max-width: 320px;
|
|
@@ -10311,7 +10306,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
10311
10306
|
|
|
10312
10307
|
// src/components/Radio/Radio.tsx
|
|
10313
10308
|
import { forwardRef as forwardRef18, useId as useId3 } from "react";
|
|
10314
|
-
import styled49, { css as
|
|
10309
|
+
import styled49, { css as css29 } from "styled-components";
|
|
10315
10310
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
10316
10311
|
import { jsx as jsx241, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10317
10312
|
var RadioIcon = () => /* @__PURE__ */ jsx241(
|
|
@@ -10333,7 +10328,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx241(
|
|
|
10333
10328
|
)
|
|
10334
10329
|
}
|
|
10335
10330
|
);
|
|
10336
|
-
var sizeSmall2 =
|
|
10331
|
+
var sizeSmall2 = css29`
|
|
10337
10332
|
width: 14px;
|
|
10338
10333
|
height: 14px;
|
|
10339
10334
|
min-width: 14px;
|
|
@@ -10344,7 +10339,7 @@ var sizeSmall2 = css30`
|
|
|
10344
10339
|
height: 7px;
|
|
10345
10340
|
}
|
|
10346
10341
|
`;
|
|
10347
|
-
var sizeMedium2 =
|
|
10342
|
+
var sizeMedium2 = css29`
|
|
10348
10343
|
width: 16px;
|
|
10349
10344
|
height: 16px;
|
|
10350
10345
|
min-width: 16px;
|
|
@@ -10355,7 +10350,7 @@ var sizeMedium2 = css30`
|
|
|
10355
10350
|
height: 8px;
|
|
10356
10351
|
}
|
|
10357
10352
|
`;
|
|
10358
|
-
var sizeLarge2 =
|
|
10353
|
+
var sizeLarge2 = css29`
|
|
10359
10354
|
width: 20px;
|
|
10360
10355
|
height: 20px;
|
|
10361
10356
|
min-width: 20px;
|
|
@@ -10479,7 +10474,7 @@ Radio.displayName = "Radio";
|
|
|
10479
10474
|
|
|
10480
10475
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
10481
10476
|
import { forwardRef as forwardRef19 } from "react";
|
|
10482
|
-
import styled51, { css as
|
|
10477
|
+
import styled51, { css as css30 } from "styled-components";
|
|
10483
10478
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
10484
10479
|
import { isNil as isNil14 } from "@wistia/type-guards";
|
|
10485
10480
|
|
|
@@ -10570,7 +10565,7 @@ var SelectedItemIndicator = () => {
|
|
|
10570
10565
|
|
|
10571
10566
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
10572
10567
|
import { jsx as jsx244, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
10573
|
-
var segmentedControlStyles =
|
|
10568
|
+
var segmentedControlStyles = css30`
|
|
10574
10569
|
display: inline-flex;
|
|
10575
10570
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
10576
10571
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -10619,7 +10614,7 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
10619
10614
|
|
|
10620
10615
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
10621
10616
|
import { forwardRef as forwardRef20, useEffect as useEffect6, useRef as useRef9 } from "react";
|
|
10622
|
-
import styled52, { css as
|
|
10617
|
+
import styled52, { css as css31 } from "styled-components";
|
|
10623
10618
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
10624
10619
|
import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
10625
10620
|
|
|
@@ -10639,7 +10634,7 @@ var mergeRefs = (refs) => (value) => {
|
|
|
10639
10634
|
|
|
10640
10635
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
10641
10636
|
import { jsxs as jsxs34 } from "react/jsx-runtime";
|
|
10642
|
-
var segmentedControlItemStyles =
|
|
10637
|
+
var segmentedControlItemStyles = css31`
|
|
10643
10638
|
all: unset; /* ToggleGroupItem is a button element */
|
|
10644
10639
|
align-items: center;
|
|
10645
10640
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -10962,10 +10957,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
10962
10957
|
|
|
10963
10958
|
// src/components/Switch/Switch.tsx
|
|
10964
10959
|
import { forwardRef as forwardRef23, useId as useId4 } from "react";
|
|
10965
|
-
import styled56, { css as
|
|
10960
|
+
import styled56, { css as css32 } from "styled-components";
|
|
10966
10961
|
import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
10967
10962
|
import { jsx as jsx248, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10968
|
-
var sizeSmall3 =
|
|
10963
|
+
var sizeSmall3 = css32`
|
|
10969
10964
|
--wui-size-small-width: 24px;
|
|
10970
10965
|
--wui-size-small-height: 14px;
|
|
10971
10966
|
|
|
@@ -10980,7 +10975,7 @@ var sizeSmall3 = css33`
|
|
|
10980
10975
|
height: calc(var(--wui-size-small-width) / 2);
|
|
10981
10976
|
}
|
|
10982
10977
|
`;
|
|
10983
|
-
var sizeMedium3 =
|
|
10978
|
+
var sizeMedium3 = css32`
|
|
10984
10979
|
--wui-size-medium-width: 32px;
|
|
10985
10980
|
--wui-size-medium-height: 18px;
|
|
10986
10981
|
|
|
@@ -10995,7 +10990,7 @@ var sizeMedium3 = css33`
|
|
|
10995
10990
|
height: calc(var(--wui-size-medium-width) / 2);
|
|
10996
10991
|
}
|
|
10997
10992
|
`;
|
|
10998
|
-
var sizeLarge3 =
|
|
10993
|
+
var sizeLarge3 = css32`
|
|
10999
10994
|
--wui-size-large-width: 40px;
|
|
11000
10995
|
--wui-size-large-height: 22px;
|
|
11001
10996
|
|
|
@@ -11124,19 +11119,19 @@ var Switch = forwardRef23(
|
|
|
11124
11119
|
Switch.displayName = "Switch";
|
|
11125
11120
|
|
|
11126
11121
|
// src/components/Table/Table.tsx
|
|
11127
|
-
import styled57, { css as
|
|
11122
|
+
import styled57, { css as css33 } from "styled-components";
|
|
11128
11123
|
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
11129
11124
|
var StyledTable = styled57.table`
|
|
11130
11125
|
width: 100%;
|
|
11131
11126
|
border-collapse: collapse;
|
|
11132
11127
|
|
|
11133
|
-
${({ $striped }) => $striped &&
|
|
11128
|
+
${({ $striped }) => $striped && css33`
|
|
11134
11129
|
tbody tr:nth-child(even) {
|
|
11135
11130
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
11136
11131
|
}
|
|
11137
11132
|
`}
|
|
11138
11133
|
|
|
11139
|
-
${({ $divided }) => $divided &&
|
|
11134
|
+
${({ $divided }) => $divided && css33`
|
|
11140
11135
|
tr {
|
|
11141
11136
|
border-bottom: 1px solid var(--wui-color-border);
|
|
11142
11137
|
}
|
|
@@ -11175,9 +11170,9 @@ var TableBody = ({ children, ...props }) => {
|
|
|
11175
11170
|
|
|
11176
11171
|
// src/components/Table/TableCell.tsx
|
|
11177
11172
|
import { useContext as useContext7 } from "react";
|
|
11178
|
-
import styled59, { css as
|
|
11173
|
+
import styled59, { css as css34 } from "styled-components";
|
|
11179
11174
|
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
11180
|
-
var sharedStyles =
|
|
11175
|
+
var sharedStyles = css34`
|
|
11181
11176
|
color: var(--wui-color-text);
|
|
11182
11177
|
padding: var(--wui-space-02);
|
|
11183
11178
|
text-align: left;
|
|
@@ -11701,7 +11696,7 @@ var Tag = forwardRef27(
|
|
|
11701
11696
|
Tag.displayName = "Tag";
|
|
11702
11697
|
|
|
11703
11698
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
11704
|
-
import styled69, { css as
|
|
11699
|
+
import styled69, { css as css35 } from "styled-components";
|
|
11705
11700
|
import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
11706
11701
|
import { jsx as jsx261, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
11707
11702
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -11759,12 +11754,12 @@ var WistiaLogoComponent = styled69.svg`
|
|
|
11759
11754
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
11760
11755
|
if ($opticallyCentered) {
|
|
11761
11756
|
if ($iconOnly) {
|
|
11762
|
-
return
|
|
11757
|
+
return css35`
|
|
11763
11758
|
aspect-ratio: 1;
|
|
11764
11759
|
padding: 11.85% 3.12% 13.91%;
|
|
11765
11760
|
`;
|
|
11766
11761
|
}
|
|
11767
|
-
return
|
|
11762
|
+
return css35`
|
|
11768
11763
|
aspect-ratio: 127 / 32;
|
|
11769
11764
|
`;
|
|
11770
11765
|
}
|