@wistia/ui 0.5.4-beta.b60ba6d4.ffaa152 → 0.5.4-beta.cb8ff32b.f247436
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 +243 -279
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +105 -141
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.5.4-beta.
|
|
3
|
+
* @license @wistia/ui v0.5.4-beta.cb8ff32b.f247436
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -115,7 +115,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
115
115
|
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
116
116
|
|
|
117
117
|
// src/css/GlobalStyle.tsx
|
|
118
|
-
var
|
|
118
|
+
var import_styled_components12 = require("styled-components");
|
|
119
119
|
|
|
120
120
|
// src/css/resetCss.tsx
|
|
121
121
|
var import_styled_components = require("styled-components");
|
|
@@ -1241,10 +1241,6 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1241
1241
|
--wui-color-border-selected: var(--wui-blue-6);
|
|
1242
1242
|
--wui-color-border-hover-selected: var(--wui-blue-8);
|
|
1243
1243
|
--wui-color-border-active-selected: var(--wui-blue-9);
|
|
1244
|
-
|
|
1245
|
-
/* Scrollbar */
|
|
1246
|
-
--wui-color-scrollbar-thumb: var(--wui-gray-alpha-8);
|
|
1247
|
-
--wui-color-scrollbar-thumb-hover: var(--wui-gray-alpha-9);
|
|
1248
1244
|
`;
|
|
1249
1245
|
|
|
1250
1246
|
// src/css/designTokens/borderRadius.tsx
|
|
@@ -1453,46 +1449,11 @@ var designTokens = import_styled_components11.css`
|
|
|
1453
1449
|
}
|
|
1454
1450
|
`;
|
|
1455
1451
|
|
|
1456
|
-
// src/css/scrollbars.tsx
|
|
1457
|
-
var import_styled_components12 = require("styled-components");
|
|
1458
|
-
var scrollbarCss = import_styled_components12.css`
|
|
1459
|
-
@-moz-document url-prefix() {
|
|
1460
|
-
* {
|
|
1461
|
-
scrollbar-color: var(--wui-color-scrollbar-thumb) transparent;
|
|
1462
|
-
scrollbar-width: thin;
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
::-webkit-scrollbar {
|
|
1467
|
-
width: 12px;
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
::-webkit-scrollbar-track {
|
|
1471
|
-
background: transparent;
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
::-webkit-scrollbar-thumb {
|
|
1475
|
-
background: var(--wui-color-scrollbar-thumb);
|
|
1476
|
-
border-radius: var(--wui-border-radius-rounded);
|
|
1477
|
-
border: 3px solid transparent;
|
|
1478
|
-
background-clip: padding-box;
|
|
1479
|
-
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
::-webkit-scrollbar-thumb:hover {
|
|
1483
|
-
background: var(--wui-color-scrollbar-thumb-hover);
|
|
1484
|
-
border-radius: var(--wui-border-radius-rounded);
|
|
1485
|
-
border: 3px solid transparent;
|
|
1486
|
-
background-clip: padding-box;
|
|
1487
|
-
}
|
|
1488
|
-
`;
|
|
1489
|
-
|
|
1490
1452
|
// src/css/GlobalStyle.tsx
|
|
1491
|
-
var GlobalStyle =
|
|
1453
|
+
var GlobalStyle = import_styled_components12.createGlobalStyle`
|
|
1492
1454
|
${resetCss}
|
|
1493
1455
|
${globalStyleAdjustmentsCss}
|
|
1494
1456
|
${designTokens}
|
|
1495
|
-
${scrollbarCss}
|
|
1496
1457
|
`;
|
|
1497
1458
|
|
|
1498
1459
|
// src/providers/AriaLiveProvider/AriaLiveProvider.tsx
|
|
@@ -2205,14 +2166,14 @@ var import_sonner2 = require("sonner");
|
|
|
2205
2166
|
|
|
2206
2167
|
// src/private/components/Toast/Toast.tsx
|
|
2207
2168
|
var import_react8 = require("react");
|
|
2208
|
-
var
|
|
2169
|
+
var import_styled_components15 = __toESM(require("styled-components"));
|
|
2209
2170
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
2210
2171
|
|
|
2211
2172
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
2212
2173
|
var import_type_guards8 = require("@wistia/type-guards");
|
|
2213
|
-
var
|
|
2174
|
+
var import_styled_components13 = __toESM(require("styled-components"));
|
|
2214
2175
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2215
|
-
var ellipsisStyle =
|
|
2176
|
+
var ellipsisStyle = import_styled_components13.css`
|
|
2216
2177
|
overflow: hidden;
|
|
2217
2178
|
text-overflow: ellipsis;
|
|
2218
2179
|
white-space: nowrap;
|
|
@@ -2235,14 +2196,14 @@ var ellipsisStyle = import_styled_components14.css`
|
|
|
2235
2196
|
}
|
|
2236
2197
|
}
|
|
2237
2198
|
`;
|
|
2238
|
-
var ellipsisFlexParentStyle =
|
|
2199
|
+
var ellipsisFlexParentStyle = import_styled_components13.css`
|
|
2239
2200
|
min-width: 0;
|
|
2240
2201
|
`;
|
|
2241
|
-
var EllipsisComponent =
|
|
2202
|
+
var EllipsisComponent = import_styled_components13.default.div`
|
|
2242
2203
|
${ellipsisStyle};
|
|
2243
2204
|
${({ $lines }) => {
|
|
2244
2205
|
if ((0, import_type_guards8.isNotNil)($lines)) {
|
|
2245
|
-
return
|
|
2206
|
+
return import_styled_components13.css`
|
|
2246
2207
|
-webkit-box-orient: vertical;
|
|
2247
2208
|
-webkit-line-clamp: ${$lines};
|
|
2248
2209
|
display: -webkit-box;
|
|
@@ -2263,7 +2224,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
2263
2224
|
Ellipsis.displayName = "Ellipsis";
|
|
2264
2225
|
|
|
2265
2226
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
2266
|
-
var
|
|
2227
|
+
var import_styled_components14 = require("styled-components");
|
|
2267
2228
|
var colorSchemeSchema = [
|
|
2268
2229
|
{ token: "bg-surface", step: "2" },
|
|
2269
2230
|
{ token: "bg-surface-hover", step: "3" },
|
|
@@ -2290,7 +2251,7 @@ var colorSchemeSchema = [
|
|
|
2290
2251
|
{ token: "icon-on-fill", step: "contrast" },
|
|
2291
2252
|
{ token: "focus-ring", step: "9" }
|
|
2292
2253
|
];
|
|
2293
|
-
var defaultScheme =
|
|
2254
|
+
var defaultScheme = import_styled_components14.css`
|
|
2294
2255
|
--wui-color-bg-surface: var(--wui-gray-1);
|
|
2295
2256
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
2296
2257
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -2315,10 +2276,8 @@ var defaultScheme = import_styled_components15.css`
|
|
|
2315
2276
|
--wui-color-icon: var(--wui-gray-11);
|
|
2316
2277
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
2317
2278
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
2318
|
-
--wui-color-scrollbar-thumb: var(--wui-gray-alpha-5);
|
|
2319
|
-
--wui-color-scrollbar-thumb-hover: var(--wui-gray-alpha-7);
|
|
2320
2279
|
`;
|
|
2321
|
-
var navScheme =
|
|
2280
|
+
var navScheme = import_styled_components14.css`
|
|
2322
2281
|
--wui-color-bg-fill-active: var(--wui-blue-5);
|
|
2323
2282
|
--wui-color-bg-fill-hover: var(--wui-blue-4);
|
|
2324
2283
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -2369,25 +2328,21 @@ var getColorScheme = (colorScheme) => {
|
|
|
2369
2328
|
if (colorScheme === "default") {
|
|
2370
2329
|
return defaultScheme;
|
|
2371
2330
|
}
|
|
2372
|
-
return
|
|
2331
|
+
return import_styled_components14.css`
|
|
2373
2332
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
2374
2333
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
2375
2334
|
}).join("")}
|
|
2376
|
-
--wui-color-scrollbar-thumb: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-alpha-8);
|
|
2377
|
-
--wui-color-scrollbar-thumb-hover: var(
|
|
2378
|
-
--wui-${colorScheme === "info" ? "blue" : colorScheme}-alpha-9
|
|
2379
|
-
);
|
|
2380
2335
|
`;
|
|
2381
2336
|
};
|
|
2382
2337
|
|
|
2383
2338
|
// src/private/components/Toast/Toast.tsx
|
|
2384
2339
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
2385
|
-
var Message = (0,
|
|
2340
|
+
var Message = (0, import_styled_components15.default)(Ellipsis)`
|
|
2386
2341
|
line-height: var(--wui-typography-label-3-line-height);
|
|
2387
2342
|
font-size: var(--wui-typography-label-3-size);
|
|
2388
2343
|
font-weight: var(--wui-typography-label-3-weight);
|
|
2389
2344
|
`;
|
|
2390
|
-
var MessageWrapper =
|
|
2345
|
+
var MessageWrapper = import_styled_components15.default.div`
|
|
2391
2346
|
display: flex;
|
|
2392
2347
|
flex-grow: 1;
|
|
2393
2348
|
flex-shrink: 1;
|
|
@@ -2400,13 +2355,13 @@ var MessageWrapper = import_styled_components16.default.div`
|
|
|
2400
2355
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
2401
2356
|
}
|
|
2402
2357
|
`;
|
|
2403
|
-
var ActionWrapper =
|
|
2358
|
+
var ActionWrapper = import_styled_components15.default.div`
|
|
2404
2359
|
flex-grow: 0;
|
|
2405
2360
|
flex-shrink: 0;
|
|
2406
2361
|
flex-basis: auto;
|
|
2407
2362
|
margin-right: var(--wui-space-03);
|
|
2408
2363
|
`;
|
|
2409
|
-
var StyledToast =
|
|
2364
|
+
var StyledToast = import_styled_components15.default.div`
|
|
2410
2365
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
2411
2366
|
display: flex;
|
|
2412
2367
|
align-items: center;
|
|
@@ -2489,16 +2444,16 @@ var useToast = () => {
|
|
|
2489
2444
|
|
|
2490
2445
|
// src/components/ActionButton/ActionButton.tsx
|
|
2491
2446
|
var import_react13 = require("react");
|
|
2492
|
-
var
|
|
2447
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
2493
2448
|
|
|
2494
2449
|
// src/components/Button/Button.tsx
|
|
2495
2450
|
var import_react12 = require("react");
|
|
2496
|
-
var
|
|
2451
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2497
2452
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
2498
2453
|
|
|
2499
2454
|
// src/css/buttonResetCss.tsx
|
|
2500
|
-
var
|
|
2501
|
-
var buttonResetCss =
|
|
2455
|
+
var import_styled_components16 = require("styled-components");
|
|
2456
|
+
var buttonResetCss = import_styled_components16.css`
|
|
2502
2457
|
align-items: center;
|
|
2503
2458
|
background-color: transparent;
|
|
2504
2459
|
background-image: none;
|
|
@@ -2543,8 +2498,8 @@ var buttonResetCss = import_styled_components17.css`
|
|
|
2543
2498
|
`;
|
|
2544
2499
|
|
|
2545
2500
|
// src/components/Button/buttonStyles.tsx
|
|
2546
|
-
var
|
|
2547
|
-
var buttonSmallStyles =
|
|
2501
|
+
var import_styled_components17 = require("styled-components");
|
|
2502
|
+
var buttonSmallStyles = import_styled_components17.css`
|
|
2548
2503
|
--button-padding-vertical: var(--wui-space-01);
|
|
2549
2504
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2550
2505
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2555,7 +2510,7 @@ var buttonSmallStyles = import_styled_components18.css`
|
|
|
2555
2510
|
--button-icon-size: 12px;
|
|
2556
2511
|
--button-label-gap: 4px;
|
|
2557
2512
|
`;
|
|
2558
|
-
var buttonMediumStyles =
|
|
2513
|
+
var buttonMediumStyles = import_styled_components17.css`
|
|
2559
2514
|
--button-padding-vertical: var(--wui-space-02);
|
|
2560
2515
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2561
2516
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2566,7 +2521,7 @@ var buttonMediumStyles = import_styled_components18.css`
|
|
|
2566
2521
|
--button-icon-size: 16px;
|
|
2567
2522
|
--button-label-gap: 6px;
|
|
2568
2523
|
`;
|
|
2569
|
-
var buttonLargeStyles =
|
|
2524
|
+
var buttonLargeStyles = import_styled_components17.css`
|
|
2570
2525
|
--button-padding-vertical: var(--wui-space-02);
|
|
2571
2526
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2572
2527
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2577,7 +2532,7 @@ var buttonLargeStyles = import_styled_components18.css`
|
|
|
2577
2532
|
--button-icon-size: 24px;
|
|
2578
2533
|
--button-label-gap: 8px;
|
|
2579
2534
|
`;
|
|
2580
|
-
var buttonExtraLargeStyles =
|
|
2535
|
+
var buttonExtraLargeStyles = import_styled_components17.css`
|
|
2581
2536
|
--button-padding-vertical: var(--wui-space-03);
|
|
2582
2537
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2583
2538
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2588,34 +2543,34 @@ var buttonExtraLargeStyles = import_styled_components18.css`
|
|
|
2588
2543
|
--button-icon-size: 24px;
|
|
2589
2544
|
--button-label-gap: 8px;
|
|
2590
2545
|
`;
|
|
2591
|
-
var ghostButtonVariant =
|
|
2546
|
+
var ghostButtonVariant = import_styled_components17.css`
|
|
2592
2547
|
--button-color-bg: transparent;
|
|
2593
2548
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2594
2549
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2595
2550
|
--button-color-text: var(--wui-color-text-button);
|
|
2596
2551
|
--button-color-icon: var(--wui-color-icon);
|
|
2597
2552
|
`;
|
|
2598
|
-
var outlineButtonVariant =
|
|
2553
|
+
var outlineButtonVariant = import_styled_components17.css`
|
|
2599
2554
|
${ghostButtonVariant};
|
|
2600
2555
|
--button-color-border: var(--wui-color-border);
|
|
2601
2556
|
|
|
2602
2557
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2603
2558
|
`;
|
|
2604
|
-
var softButtonVariant =
|
|
2559
|
+
var softButtonVariant = import_styled_components17.css`
|
|
2605
2560
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2606
2561
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2607
2562
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2608
2563
|
--button-color-text: var(--wui-color-text-button);
|
|
2609
2564
|
--button-color-icon: var(--wui-color-icon);
|
|
2610
2565
|
`;
|
|
2611
|
-
var solidButtonVariant =
|
|
2566
|
+
var solidButtonVariant = import_styled_components17.css`
|
|
2612
2567
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2613
2568
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2614
2569
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2615
2570
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2616
2571
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2617
2572
|
`;
|
|
2618
|
-
var disabledButtonVariant =
|
|
2573
|
+
var disabledButtonVariant = import_styled_components17.css`
|
|
2619
2574
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2620
2575
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2621
2576
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2623,7 +2578,7 @@ var disabledButtonVariant = import_styled_components18.css`
|
|
|
2623
2578
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2624
2579
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2625
2580
|
`;
|
|
2626
|
-
var pressedButtonVariant =
|
|
2581
|
+
var pressedButtonVariant = import_styled_components17.css`
|
|
2627
2582
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2628
2583
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2629
2584
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2631,7 +2586,7 @@ var pressedButtonVariant = import_styled_components18.css`
|
|
|
2631
2586
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2632
2587
|
--button-color-border: var(--wui-color-border-selected);
|
|
2633
2588
|
`;
|
|
2634
|
-
var buttonBaseStyles =
|
|
2589
|
+
var buttonBaseStyles = import_styled_components17.css`
|
|
2635
2590
|
border-radius: var(--wui-border-radius-rounded);
|
|
2636
2591
|
font-family: var(--button-typography-family);
|
|
2637
2592
|
font-size: var(--button-typography-size);
|
|
@@ -2699,7 +2654,7 @@ var buttonSizeStyles = {
|
|
|
2699
2654
|
|
|
2700
2655
|
// src/components/Icon/Icon.tsx
|
|
2701
2656
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
2702
|
-
var
|
|
2657
|
+
var import_styled_components18 = __toESM(require("styled-components"));
|
|
2703
2658
|
|
|
2704
2659
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2705
2660
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -5884,7 +5839,7 @@ var iconSizeMap = {
|
|
|
5884
5839
|
xl: "32",
|
|
5885
5840
|
xxl: "48"
|
|
5886
5841
|
};
|
|
5887
|
-
var StyledIcon =
|
|
5842
|
+
var StyledIcon = import_styled_components18.default.svg`
|
|
5888
5843
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
5889
5844
|
`;
|
|
5890
5845
|
var Icon = ({
|
|
@@ -5935,7 +5890,7 @@ Icon.displayName = "Icon";
|
|
|
5935
5890
|
// src/components/Link/Link.tsx
|
|
5936
5891
|
var import_react11 = require("react");
|
|
5937
5892
|
var import_type_guards12 = require("@wistia/type-guards");
|
|
5938
|
-
var
|
|
5893
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
5939
5894
|
var import_react_router_dom = require("react-router-dom");
|
|
5940
5895
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5941
5896
|
var generateHref = (href, type, disabled) => {
|
|
@@ -5953,7 +5908,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
5953
5908
|
};
|
|
5954
5909
|
var isButton = (props) => (0, import_type_guards12.isUndefined)(props.href);
|
|
5955
5910
|
var isLink = (props) => (0, import_type_guards12.isNotUndefined)(props.href);
|
|
5956
|
-
var StyledLink =
|
|
5911
|
+
var StyledLink = import_styled_components19.default.a`
|
|
5957
5912
|
--link-icon-size: 14px;
|
|
5958
5913
|
|
|
5959
5914
|
${({ href }) => (0, import_type_guards12.isNil)(href) && buttonResetCss};
|
|
@@ -5966,7 +5921,6 @@ var StyledLink = import_styled_components20.default.a`
|
|
|
5966
5921
|
align-items: baseline;
|
|
5967
5922
|
gap: var(--wui-space-01);
|
|
5968
5923
|
|
|
5969
|
-
/* This ensure that the icon is the corect color when the style is solid or the button is disabled */
|
|
5970
5924
|
&& {
|
|
5971
5925
|
svg {
|
|
5972
5926
|
width: var(--link-icon-size);
|
|
@@ -6064,7 +6018,7 @@ Link.displayName = "Link";
|
|
|
6064
6018
|
// src/components/Button/Button.tsx
|
|
6065
6019
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
6066
6020
|
var isLink2 = (props) => (0, import_type_guards13.isNotUndefined)(props.href);
|
|
6067
|
-
var StyledButton =
|
|
6021
|
+
var StyledButton = import_styled_components20.default.button`
|
|
6068
6022
|
${buttonResetCss}
|
|
6069
6023
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
6070
6024
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
@@ -6074,7 +6028,7 @@ var StyledButton = import_styled_components21.default.button`
|
|
|
6074
6028
|
position: relative;
|
|
6075
6029
|
text-align: center;
|
|
6076
6030
|
`;
|
|
6077
|
-
var StyledButtonContent =
|
|
6031
|
+
var StyledButtonContent = import_styled_components20.default.div`
|
|
6078
6032
|
align-items: center;
|
|
6079
6033
|
display: inline-flex;
|
|
6080
6034
|
flex-grow: 1;
|
|
@@ -6086,10 +6040,10 @@ var StyledButtonContent = import_styled_components21.default.div`
|
|
|
6086
6040
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
6087
6041
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
6088
6042
|
`;
|
|
6089
|
-
var StyledButtonContentLabel =
|
|
6043
|
+
var StyledButtonContentLabel = import_styled_components20.default.span`
|
|
6090
6044
|
flex: 1;
|
|
6091
6045
|
`;
|
|
6092
|
-
var StyledButtonLoading =
|
|
6046
|
+
var StyledButtonLoading = import_styled_components20.default.div`
|
|
6093
6047
|
position: absolute;
|
|
6094
6048
|
display: flex;
|
|
6095
6049
|
`;
|
|
@@ -6202,7 +6156,7 @@ Button.displayName = "Button";
|
|
|
6202
6156
|
|
|
6203
6157
|
// src/components/ActionButton/ActionButton.tsx
|
|
6204
6158
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
6205
|
-
var StyledActionButton = (0,
|
|
6159
|
+
var StyledActionButton = (0, import_styled_components21.default)(Button)`
|
|
6206
6160
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6207
6161
|
display: grid;
|
|
6208
6162
|
grid-template-columns: 24px 1fr;
|
|
@@ -6238,24 +6192,28 @@ var StyledActionButton = (0, import_styled_components22.default)(Button)`
|
|
|
6238
6192
|
outline-color: var(--wui-color-focus-ring-disabled);
|
|
6239
6193
|
cursor: not-allowed;
|
|
6240
6194
|
|
|
6241
|
-
|
|
6242
|
-
|
|
6195
|
+
&& {
|
|
6196
|
+
svg {
|
|
6197
|
+
color: var(--wui-color-icon-disabled);
|
|
6198
|
+
}
|
|
6243
6199
|
}
|
|
6244
6200
|
}
|
|
6245
6201
|
`;
|
|
6246
|
-
var StyledMainIcon =
|
|
6202
|
+
var StyledMainIcon = import_styled_components21.default.div`
|
|
6247
6203
|
grid-column: 1;
|
|
6248
6204
|
grid-row: 1;
|
|
6249
6205
|
width: 24px;
|
|
6250
6206
|
height: 24px;
|
|
6251
6207
|
transition: color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
6252
6208
|
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6209
|
+
&& {
|
|
6210
|
+
svg {
|
|
6211
|
+
width: 24px;
|
|
6212
|
+
height: 24px;
|
|
6213
|
+
}
|
|
6256
6214
|
}
|
|
6257
6215
|
`;
|
|
6258
|
-
var StyledSecondaryIcon =
|
|
6216
|
+
var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
6259
6217
|
grid-column: 2;
|
|
6260
6218
|
grid-row: 1;
|
|
6261
6219
|
width: 100%;
|
|
@@ -6263,7 +6221,7 @@ var StyledSecondaryIcon = import_styled_components22.default.div`
|
|
|
6263
6221
|
justify-content: flex-end;
|
|
6264
6222
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
6265
6223
|
|
|
6266
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
6224
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components21.css`
|
|
6267
6225
|
will-change: transform;
|
|
6268
6226
|
opacity: 0;
|
|
6269
6227
|
transform: translateX(-16px);
|
|
@@ -6274,12 +6232,14 @@ var StyledSecondaryIcon = import_styled_components22.default.div`
|
|
|
6274
6232
|
}
|
|
6275
6233
|
`};
|
|
6276
6234
|
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6235
|
+
&& {
|
|
6236
|
+
svg {
|
|
6237
|
+
width: 24px;
|
|
6238
|
+
height: 24px;
|
|
6239
|
+
}
|
|
6280
6240
|
}
|
|
6281
6241
|
`;
|
|
6282
|
-
var StyledLabel =
|
|
6242
|
+
var StyledLabel = import_styled_components21.default.span`
|
|
6283
6243
|
font-family: var(--wui-typography-heading-4-family);
|
|
6284
6244
|
font-size: var(--wui-typography-heading-4-size);
|
|
6285
6245
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -6335,10 +6295,10 @@ ActionButton.displayName = "ActionButton";
|
|
|
6335
6295
|
// src/components/Avatar/Avatar.tsx
|
|
6336
6296
|
var import_react14 = require("react");
|
|
6337
6297
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6338
|
-
var
|
|
6298
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
6339
6299
|
|
|
6340
6300
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
6341
|
-
var
|
|
6301
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
6342
6302
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
6343
6303
|
var colorSchemeOptions = [
|
|
6344
6304
|
"inherit",
|
|
@@ -6357,7 +6317,7 @@ var colorSchemeOptions = [
|
|
|
6357
6317
|
"vendor-marketo",
|
|
6358
6318
|
"vendor-pardot"
|
|
6359
6319
|
];
|
|
6360
|
-
var StyledColorSchemeWrapper =
|
|
6320
|
+
var StyledColorSchemeWrapper = import_styled_components22.default.div`
|
|
6361
6321
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
6362
6322
|
`;
|
|
6363
6323
|
var ColorSchemeWrapper = ({
|
|
@@ -6392,7 +6352,7 @@ var formatNameForDisplay = (name) => {
|
|
|
6392
6352
|
|
|
6393
6353
|
// src/components/Avatar/Avatar.tsx
|
|
6394
6354
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
6395
|
-
var AvatarImage =
|
|
6355
|
+
var AvatarImage = import_styled_components23.default.img`
|
|
6396
6356
|
align-items: center;
|
|
6397
6357
|
background-color: white;
|
|
6398
6358
|
border-radius: 50%;
|
|
@@ -6420,7 +6380,7 @@ var avatarSizeMap = {
|
|
|
6420
6380
|
lg: 32
|
|
6421
6381
|
};
|
|
6422
6382
|
var fontSizeScaleMultiplier = 0.55;
|
|
6423
|
-
var InitialsContainer =
|
|
6383
|
+
var InitialsContainer = import_styled_components23.default.div`
|
|
6424
6384
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6425
6385
|
align-items: center;
|
|
6426
6386
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -6442,7 +6402,7 @@ var InitialsContainer = import_styled_components24.default.div`
|
|
|
6442
6402
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
6443
6403
|
}
|
|
6444
6404
|
`;
|
|
6445
|
-
var AvatarWrapper =
|
|
6405
|
+
var AvatarWrapper = import_styled_components23.default.div`
|
|
6446
6406
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
6447
6407
|
`;
|
|
6448
6408
|
var chooseColorScheme = (name) => {
|
|
@@ -6509,10 +6469,10 @@ Avatar.displayName = "Avatar";
|
|
|
6509
6469
|
|
|
6510
6470
|
// src/components/Badge/Badge.tsx
|
|
6511
6471
|
var import_react15 = require("react");
|
|
6512
|
-
var
|
|
6472
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6513
6473
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
6514
6474
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
6515
|
-
var StyledBadge =
|
|
6475
|
+
var StyledBadge = import_styled_components24.default.div`
|
|
6516
6476
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6517
6477
|
align-items: center;
|
|
6518
6478
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -6554,7 +6514,7 @@ Badge.displayName = "Badge";
|
|
|
6554
6514
|
|
|
6555
6515
|
// src/components/Box/Box.tsx
|
|
6556
6516
|
var import_react16 = require("react");
|
|
6557
|
-
var
|
|
6517
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
6558
6518
|
var import_type_guards17 = require("@wistia/type-guards");
|
|
6559
6519
|
|
|
6560
6520
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -6606,7 +6566,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6606
6566
|
}
|
|
6607
6567
|
return void 0;
|
|
6608
6568
|
};
|
|
6609
|
-
var StyledBoxComponent =
|
|
6569
|
+
var StyledBoxComponent = import_styled_components25.default.div`
|
|
6610
6570
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6611
6571
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6612
6572
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6693,9 +6653,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
6693
6653
|
|
|
6694
6654
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6695
6655
|
var import_react17 = require("react");
|
|
6696
|
-
var
|
|
6656
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
6697
6657
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
6698
|
-
var StyledBreadcrumbs =
|
|
6658
|
+
var StyledBreadcrumbs = import_styled_components26.default.nav`
|
|
6699
6659
|
display: flex;
|
|
6700
6660
|
align-items: center;
|
|
6701
6661
|
gap: var(--wui-space-01);
|
|
@@ -6740,9 +6700,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
6740
6700
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6741
6701
|
|
|
6742
6702
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6743
|
-
var
|
|
6703
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6744
6704
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6745
|
-
var BreadcrumbContent =
|
|
6705
|
+
var BreadcrumbContent = import_styled_components27.default.span`
|
|
6746
6706
|
overflow: hidden;
|
|
6747
6707
|
white-space: nowrap;
|
|
6748
6708
|
display: block;
|
|
@@ -6774,7 +6734,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6774
6734
|
};
|
|
6775
6735
|
|
|
6776
6736
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6777
|
-
var
|
|
6737
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6778
6738
|
var import_type_guards18 = require("@wistia/type-guards");
|
|
6779
6739
|
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6780
6740
|
var getAlignment = (align) => {
|
|
@@ -6789,7 +6749,7 @@ var getAlignment = (align) => {
|
|
|
6789
6749
|
}
|
|
6790
6750
|
return "flex-start";
|
|
6791
6751
|
};
|
|
6792
|
-
var ButtonGroupComponent =
|
|
6752
|
+
var ButtonGroupComponent = import_styled_components28.default.div`
|
|
6793
6753
|
display: flex;
|
|
6794
6754
|
|
|
6795
6755
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6831,9 +6791,9 @@ var ButtonGroup = ({
|
|
|
6831
6791
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6832
6792
|
|
|
6833
6793
|
// src/components/Card/Card.tsx
|
|
6834
|
-
var
|
|
6794
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6835
6795
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6836
|
-
var StyledCard = (0,
|
|
6796
|
+
var StyledCard = (0, import_styled_components29.default)(Box)`
|
|
6837
6797
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6838
6798
|
box-sizing: border-box;
|
|
6839
6799
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6884,53 +6844,53 @@ Card.displayName = "Card";
|
|
|
6884
6844
|
// src/components/Checkbox/Checkbox.tsx
|
|
6885
6845
|
var import_react19 = require("react");
|
|
6886
6846
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
6887
|
-
var
|
|
6847
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
6888
6848
|
var import_type_guards20 = require("@wistia/type-guards");
|
|
6889
6849
|
|
|
6890
6850
|
// src/components/Label/Label.tsx
|
|
6891
|
-
var
|
|
6851
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
6892
6852
|
|
|
6893
6853
|
// src/components/Heading/Heading.tsx
|
|
6894
6854
|
var import_react18 = require("react");
|
|
6895
|
-
var
|
|
6855
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6896
6856
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6897
|
-
var heroStyle =
|
|
6857
|
+
var heroStyle = import_styled_components30.css`
|
|
6898
6858
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6899
6859
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
6900
6860
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
6901
6861
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
6902
6862
|
`;
|
|
6903
|
-
var heading1TextStyle =
|
|
6863
|
+
var heading1TextStyle = import_styled_components30.css`
|
|
6904
6864
|
--font-family: var(--wui-typography-heading-1-family);
|
|
6905
6865
|
--font-size: var(--wui-typography-heading-1-size);
|
|
6906
6866
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
6907
6867
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
6908
6868
|
`;
|
|
6909
|
-
var heading2TextStyle =
|
|
6869
|
+
var heading2TextStyle = import_styled_components30.css`
|
|
6910
6870
|
--font-family: var(--wui-typography-heading-2-family);
|
|
6911
6871
|
--font-size: var(--wui-typography-heading-2-size);
|
|
6912
6872
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
6913
6873
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
6914
6874
|
`;
|
|
6915
|
-
var heading3TextStyle =
|
|
6875
|
+
var heading3TextStyle = import_styled_components30.css`
|
|
6916
6876
|
--font-family: var(--wui-typography-heading-3-family);
|
|
6917
6877
|
--font-size: var(--wui-typography-heading-3-size);
|
|
6918
6878
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
6919
6879
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
6920
6880
|
`;
|
|
6921
|
-
var heading4TextStyle =
|
|
6881
|
+
var heading4TextStyle = import_styled_components30.css`
|
|
6922
6882
|
--font-family: var(--wui-typography-heading-4-family);
|
|
6923
6883
|
--font-size: var(--wui-typography-heading-4-size);
|
|
6924
6884
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
6925
6885
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
6926
6886
|
`;
|
|
6927
|
-
var heading5TextStyle =
|
|
6887
|
+
var heading5TextStyle = import_styled_components30.css`
|
|
6928
6888
|
--font-family: var(--wui-typography-heading-5-family);
|
|
6929
6889
|
--font-size: var(--wui-typography-heading-5-size);
|
|
6930
6890
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
6931
6891
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
6932
6892
|
`;
|
|
6933
|
-
var heading6TextStyle =
|
|
6893
|
+
var heading6TextStyle = import_styled_components30.css`
|
|
6934
6894
|
--font-family: var(--wui-typography-heading-6-family);
|
|
6935
6895
|
--font-size: var(--wui-typography-heading-6-size);
|
|
6936
6896
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -6946,7 +6906,7 @@ var variantStyleMap = {
|
|
|
6946
6906
|
heading6: heading6TextStyle
|
|
6947
6907
|
};
|
|
6948
6908
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6949
|
-
var StyledHeading =
|
|
6909
|
+
var StyledHeading = import_styled_components30.default.div`
|
|
6950
6910
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6951
6911
|
font-family: var(--font-family);
|
|
6952
6912
|
font-size: var(--font-size);
|
|
@@ -6955,16 +6915,16 @@ var StyledHeading = import_styled_components31.default.div`
|
|
|
6955
6915
|
color: var(--wui-color-text);
|
|
6956
6916
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
6957
6917
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6958
|
-
${({ $inline }) => $inline &&
|
|
6918
|
+
${({ $inline }) => $inline && import_styled_components30.css`
|
|
6959
6919
|
display: inline-block;
|
|
6960
6920
|
`}
|
|
6961
|
-
${({ $disabled }) => $disabled &&
|
|
6921
|
+
${({ $disabled }) => $disabled && import_styled_components30.css`
|
|
6962
6922
|
color: var(--wui-color-text-disabled);
|
|
6963
6923
|
`}
|
|
6964
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6924
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components30.css`
|
|
6965
6925
|
user-select: none;
|
|
6966
6926
|
`}
|
|
6967
|
-
${({ $align }) =>
|
|
6927
|
+
${({ $align }) => import_styled_components30.css`
|
|
6968
6928
|
text-align: ${$align};
|
|
6969
6929
|
`}
|
|
6970
6930
|
margin: 0;
|
|
@@ -7010,7 +6970,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
7010
6970
|
|
|
7011
6971
|
// src/components/Label/Label.tsx
|
|
7012
6972
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
7013
|
-
var requiredStyle =
|
|
6973
|
+
var requiredStyle = import_styled_components31.css`
|
|
7014
6974
|
&::after {
|
|
7015
6975
|
color: var(--wui-color-text-error);
|
|
7016
6976
|
display: inline;
|
|
@@ -7018,10 +6978,10 @@ var requiredStyle = import_styled_components32.css`
|
|
|
7018
6978
|
content: '*';
|
|
7019
6979
|
}
|
|
7020
6980
|
`;
|
|
7021
|
-
var disabledStyle =
|
|
6981
|
+
var disabledStyle = import_styled_components31.css`
|
|
7022
6982
|
color: var(--wui-color-text-disabled);
|
|
7023
6983
|
`;
|
|
7024
|
-
var StyledLabel2 = (0,
|
|
6984
|
+
var StyledLabel2 = (0, import_styled_components31.default)(Heading).attrs({
|
|
7025
6985
|
variant: "heading6",
|
|
7026
6986
|
renderAs: "label"
|
|
7027
6987
|
})`
|
|
@@ -7064,10 +7024,10 @@ var Label = ({
|
|
|
7064
7024
|
Label.displayName = "Label";
|
|
7065
7025
|
|
|
7066
7026
|
// src/components/Label/LabelDescription.tsx
|
|
7067
|
-
var
|
|
7027
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
7068
7028
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
7069
7029
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
7070
|
-
var StyledLabelDescription =
|
|
7030
|
+
var StyledLabelDescription = import_styled_components32.default.div`
|
|
7071
7031
|
color: var(--wui-color-text-secondary);
|
|
7072
7032
|
font-size: var(--wui-typography-body-4-size);
|
|
7073
7033
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -7103,7 +7063,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
|
7103
7063
|
)
|
|
7104
7064
|
}
|
|
7105
7065
|
);
|
|
7106
|
-
var StyledCheckboxWrapper =
|
|
7066
|
+
var StyledCheckboxWrapper = import_styled_components33.default.div`
|
|
7107
7067
|
display: flex;
|
|
7108
7068
|
align-items: center;
|
|
7109
7069
|
cursor: pointer;
|
|
@@ -7117,7 +7077,7 @@ var StyledCheckboxWrapper = import_styled_components34.default.div`
|
|
|
7117
7077
|
background-color: #efefef;
|
|
7118
7078
|
}
|
|
7119
7079
|
`;
|
|
7120
|
-
var StyledCheckboxRoot = (0,
|
|
7080
|
+
var StyledCheckboxRoot = (0, import_styled_components33.default)(import_react_checkbox.Root)`
|
|
7121
7081
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
7122
7082
|
background-color: var(--wui-color-bg-fill-white);
|
|
7123
7083
|
min-width: 16px;
|
|
@@ -7151,10 +7111,10 @@ var StyledCheckboxRoot = (0, import_styled_components34.default)(import_react_ch
|
|
|
7151
7111
|
/* TODO Lamp to design focus state */
|
|
7152
7112
|
}
|
|
7153
7113
|
`;
|
|
7154
|
-
var StyledCheckboxIndicator = (0,
|
|
7114
|
+
var StyledCheckboxIndicator = (0, import_styled_components33.default)(import_react_checkbox.Indicator)`
|
|
7155
7115
|
display: flex;
|
|
7156
7116
|
`;
|
|
7157
|
-
var StyledLabelWrapper =
|
|
7117
|
+
var StyledLabelWrapper = import_styled_components33.default.div`
|
|
7158
7118
|
display: flex;
|
|
7159
7119
|
flex-direction: column;
|
|
7160
7120
|
margin-left: var(--wui-space-02);
|
|
@@ -7222,10 +7182,10 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
7222
7182
|
Checkbox.displayName = "Checkbox";
|
|
7223
7183
|
|
|
7224
7184
|
// src/components/DataCards/DataCard.tsx
|
|
7225
|
-
var
|
|
7185
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
7226
7186
|
var import_type_guards21 = require("@wistia/type-guards");
|
|
7227
7187
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
7228
|
-
var StyledDataCard =
|
|
7188
|
+
var StyledDataCard = import_styled_components34.default.div`
|
|
7229
7189
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7230
7190
|
display: grid;
|
|
7231
7191
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -7238,7 +7198,7 @@ var StyledDataCard = import_styled_components35.default.div`
|
|
|
7238
7198
|
border-radius: var(--wui-border-radius-02);
|
|
7239
7199
|
position: relative;
|
|
7240
7200
|
`;
|
|
7241
|
-
var shimmer =
|
|
7201
|
+
var shimmer = import_styled_components34.keyframes`
|
|
7242
7202
|
0% {
|
|
7243
7203
|
background-position: 200% 0;
|
|
7244
7204
|
}
|
|
@@ -7246,7 +7206,7 @@ var shimmer = import_styled_components35.keyframes`
|
|
|
7246
7206
|
background-position: -200% 0;
|
|
7247
7207
|
}
|
|
7248
7208
|
`;
|
|
7249
|
-
var LoadingBackground =
|
|
7209
|
+
var LoadingBackground = import_styled_components34.default.div`
|
|
7250
7210
|
background: linear-gradient(
|
|
7251
7211
|
90deg,
|
|
7252
7212
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -7257,27 +7217,27 @@ var LoadingBackground = import_styled_components35.default.div`
|
|
|
7257
7217
|
animation: ${shimmer} 1.5s infinite;
|
|
7258
7218
|
border-radius: var(--wui-border-radius-01);
|
|
7259
7219
|
`;
|
|
7260
|
-
var StyledLoadingLabel = (0,
|
|
7220
|
+
var StyledLoadingLabel = (0, import_styled_components34.default)(LoadingBackground)`
|
|
7261
7221
|
width: 80px;
|
|
7262
7222
|
height: var(--wui-typography-heading-6-line-height);
|
|
7263
7223
|
`;
|
|
7264
|
-
var StyledLoadingValue = (0,
|
|
7224
|
+
var StyledLoadingValue = (0, import_styled_components34.default)(LoadingBackground)`
|
|
7265
7225
|
width: 90%;
|
|
7266
7226
|
height: var(--wui-typography-heading-3-line-height);
|
|
7267
7227
|
`;
|
|
7268
|
-
var StyledLabel3 = (0,
|
|
7228
|
+
var StyledLabel3 = (0, import_styled_components34.default)(Heading)`
|
|
7269
7229
|
grid-area: label;
|
|
7270
7230
|
`;
|
|
7271
|
-
var StyledValue = (0,
|
|
7231
|
+
var StyledValue = (0, import_styled_components34.default)(Heading)`
|
|
7272
7232
|
grid-area: value;
|
|
7273
7233
|
`;
|
|
7274
|
-
var StyledSlot =
|
|
7234
|
+
var StyledSlot = import_styled_components34.default.div`
|
|
7275
7235
|
display: flex;
|
|
7276
7236
|
justify-content: flex-end;
|
|
7277
7237
|
grid-area: slot;
|
|
7278
7238
|
align-self: center;
|
|
7279
7239
|
`;
|
|
7280
|
-
var StyledDataCardTrendContainer =
|
|
7240
|
+
var StyledDataCardTrendContainer = import_styled_components34.default.div`
|
|
7281
7241
|
position: absolute;
|
|
7282
7242
|
bottom: var(--wui-space-01);
|
|
7283
7243
|
right: var(--wui-space-01);
|
|
@@ -7320,9 +7280,9 @@ var DataCard = ({
|
|
|
7320
7280
|
DataCard.displayName = "DataCard";
|
|
7321
7281
|
|
|
7322
7282
|
// src/components/DataCards/DataCards.tsx
|
|
7323
|
-
var
|
|
7283
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
7324
7284
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
7325
|
-
var StyledDataCards = (0,
|
|
7285
|
+
var StyledDataCards = (0, import_styled_components35.default)(Box)`
|
|
7326
7286
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7327
7287
|
margin-top: 0; /* Remove default <dl> style */
|
|
7328
7288
|
> * {
|
|
@@ -7354,93 +7314,93 @@ var DataCards = ({
|
|
|
7354
7314
|
DataCards.displayName = "DataCards";
|
|
7355
7315
|
|
|
7356
7316
|
// src/components/DataCards/DataCardTrend.tsx
|
|
7357
|
-
var
|
|
7317
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7358
7318
|
|
|
7359
7319
|
// src/components/Text/Text.tsx
|
|
7360
7320
|
var import_react20 = require("react");
|
|
7361
|
-
var
|
|
7321
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7362
7322
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
7363
|
-
var bodyBoldStyles =
|
|
7323
|
+
var bodyBoldStyles = import_styled_components36.css`
|
|
7364
7324
|
> strong,
|
|
7365
7325
|
b {
|
|
7366
7326
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
7367
7327
|
}
|
|
7368
7328
|
`;
|
|
7369
|
-
var labelBoldStyles =
|
|
7329
|
+
var labelBoldStyles = import_styled_components36.css`
|
|
7370
7330
|
> strong,
|
|
7371
7331
|
b {
|
|
7372
7332
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7373
7333
|
}
|
|
7374
7334
|
`;
|
|
7375
|
-
var body1TextStyle =
|
|
7335
|
+
var body1TextStyle = import_styled_components36.css`
|
|
7376
7336
|
--font-family: var(--wui-typography-body-1-family);
|
|
7377
7337
|
--font-size: var(--wui-typography-body-1-size);
|
|
7378
7338
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
7379
7339
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
7380
7340
|
${bodyBoldStyles}
|
|
7381
7341
|
`;
|
|
7382
|
-
var body2TextStyle =
|
|
7342
|
+
var body2TextStyle = import_styled_components36.css`
|
|
7383
7343
|
--font-family: var(--wui-typography-body-2-family);
|
|
7384
7344
|
--font-size: var(--wui-typography-body-2-size);
|
|
7385
7345
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
7386
7346
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
7387
7347
|
${bodyBoldStyles}
|
|
7388
7348
|
`;
|
|
7389
|
-
var body3TextStyle =
|
|
7349
|
+
var body3TextStyle = import_styled_components36.css`
|
|
7390
7350
|
--font-family: var(--wui-typography-body-3-family);
|
|
7391
7351
|
--font-size: var(--wui-typography-body-3-size);
|
|
7392
7352
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
7393
7353
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
7394
7354
|
${bodyBoldStyles}
|
|
7395
7355
|
`;
|
|
7396
|
-
var body4TextStyle =
|
|
7356
|
+
var body4TextStyle = import_styled_components36.css`
|
|
7397
7357
|
--font-family: var(--wui-typography-body-4-family);
|
|
7398
7358
|
--font-size: var(--wui-typography-body-4-size);
|
|
7399
7359
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
7400
7360
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
7401
7361
|
${bodyBoldStyles}
|
|
7402
7362
|
`;
|
|
7403
|
-
var label1TextStyle =
|
|
7363
|
+
var label1TextStyle = import_styled_components36.css`
|
|
7404
7364
|
--font-family: var(--wui-typography-label-1-family);
|
|
7405
7365
|
--font-size: var(--wui-typography-label-1-size);
|
|
7406
7366
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
7407
7367
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
7408
7368
|
${labelBoldStyles}
|
|
7409
7369
|
`;
|
|
7410
|
-
var label2TextStyle =
|
|
7370
|
+
var label2TextStyle = import_styled_components36.css`
|
|
7411
7371
|
--font-family: var(--wui-typography-label-2-family);
|
|
7412
7372
|
--font-size: var(--wui-typography-label-2-size);
|
|
7413
7373
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
7414
7374
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
7415
7375
|
${labelBoldStyles}
|
|
7416
7376
|
`;
|
|
7417
|
-
var label3TextStyle =
|
|
7377
|
+
var label3TextStyle = import_styled_components36.css`
|
|
7418
7378
|
--font-family: var(--wui-typography-label-3-family);
|
|
7419
7379
|
--font-size: var(--wui-typography-label-3-size);
|
|
7420
7380
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
7421
7381
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
7422
7382
|
${labelBoldStyles}
|
|
7423
7383
|
`;
|
|
7424
|
-
var label4TextStyle =
|
|
7384
|
+
var label4TextStyle = import_styled_components36.css`
|
|
7425
7385
|
--font-family: var(--wui-typography-label-4-family);
|
|
7426
7386
|
--font-size: var(--wui-typography-label-4-size);
|
|
7427
7387
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
7428
7388
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
7429
7389
|
${labelBoldStyles}
|
|
7430
7390
|
`;
|
|
7431
|
-
var body1MonoTextStyle =
|
|
7391
|
+
var body1MonoTextStyle = import_styled_components36.css`
|
|
7432
7392
|
${body1TextStyle};
|
|
7433
7393
|
--font-family: var(--wui-typography-family-mono);
|
|
7434
7394
|
`;
|
|
7435
|
-
var body2MonoTextStyle =
|
|
7395
|
+
var body2MonoTextStyle = import_styled_components36.css`
|
|
7436
7396
|
${body2TextStyle};
|
|
7437
7397
|
--font-family: var(--wui-typography-family-mono);
|
|
7438
7398
|
`;
|
|
7439
|
-
var body3MonoTextStyle =
|
|
7399
|
+
var body3MonoTextStyle = import_styled_components36.css`
|
|
7440
7400
|
${body3TextStyle};
|
|
7441
7401
|
--font-family: var(--wui-typography-family-mono);
|
|
7442
7402
|
`;
|
|
7443
|
-
var body4MonoTextStyle =
|
|
7403
|
+
var body4MonoTextStyle = import_styled_components36.css`
|
|
7444
7404
|
${body4TextStyle};
|
|
7445
7405
|
--font-family: var(--wui-typography-family-mono);
|
|
7446
7406
|
`;
|
|
@@ -7458,7 +7418,7 @@ var variantStyleMap2 = {
|
|
|
7458
7418
|
label3: label3TextStyle,
|
|
7459
7419
|
label4: label4TextStyle
|
|
7460
7420
|
};
|
|
7461
|
-
var StyledText =
|
|
7421
|
+
var StyledText = import_styled_components36.default.div`
|
|
7462
7422
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7463
7423
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
7464
7424
|
if ($disabled) {
|
|
@@ -7482,19 +7442,19 @@ var StyledText = import_styled_components37.default.div`
|
|
|
7482
7442
|
margin: 0;
|
|
7483
7443
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
7484
7444
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7485
|
-
${({ $inline }) => $inline &&
|
|
7445
|
+
${({ $inline }) => $inline && import_styled_components36.css`
|
|
7486
7446
|
display: inline-block;
|
|
7487
7447
|
`}
|
|
7488
|
-
${({ $disabled }) => $disabled &&
|
|
7448
|
+
${({ $disabled }) => $disabled && import_styled_components36.css`
|
|
7489
7449
|
--text-color: var(--wui-color-text-disabled);
|
|
7490
7450
|
`}
|
|
7491
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7451
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components36.css`
|
|
7492
7452
|
user-select: none;
|
|
7493
7453
|
`}
|
|
7494
|
-
${({ $align }) =>
|
|
7454
|
+
${({ $align }) => import_styled_components36.css`
|
|
7495
7455
|
text-align: ${$align};
|
|
7496
7456
|
`}
|
|
7497
|
-
${({ as }) => as === "p" &&
|
|
7457
|
+
${({ as }) => as === "p" && import_styled_components36.css`
|
|
7498
7458
|
display: block;
|
|
7499
7459
|
`}
|
|
7500
7460
|
`;
|
|
@@ -7535,7 +7495,7 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7535
7495
|
|
|
7536
7496
|
// src/components/DataCards/DataCardTrend.tsx
|
|
7537
7497
|
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
7538
|
-
var StyledDataCardTrend =
|
|
7498
|
+
var StyledDataCardTrend = import_styled_components37.default.div`
|
|
7539
7499
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
7540
7500
|
background: var(--wui-color-bg-app);
|
|
7541
7501
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -7571,22 +7531,22 @@ var DataCardTrend = ({
|
|
|
7571
7531
|
};
|
|
7572
7532
|
|
|
7573
7533
|
// src/components/Divider/Divider.tsx
|
|
7574
|
-
var
|
|
7534
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7575
7535
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
7576
|
-
var horizontalBorderCss =
|
|
7536
|
+
var horizontalBorderCss = import_styled_components38.css`
|
|
7577
7537
|
border-top-color: var(--wui-color-border);
|
|
7578
7538
|
border-top-style: solid;
|
|
7579
7539
|
border-top-width: 1px;
|
|
7580
7540
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
7581
7541
|
height: 0;
|
|
7582
7542
|
`;
|
|
7583
|
-
var verticalBorderCss =
|
|
7543
|
+
var verticalBorderCss = import_styled_components38.css`
|
|
7584
7544
|
background-color: var(--wui-color-border);
|
|
7585
7545
|
max-width: 1px;
|
|
7586
7546
|
min-height: 100%;
|
|
7587
7547
|
width: 1px;
|
|
7588
7548
|
`;
|
|
7589
|
-
var DividerComponent =
|
|
7549
|
+
var DividerComponent = import_styled_components38.default.div`
|
|
7590
7550
|
${({ $orientation }) => {
|
|
7591
7551
|
switch ($orientation) {
|
|
7592
7552
|
case "vertical":
|
|
@@ -7614,15 +7574,15 @@ var Divider = ({
|
|
|
7614
7574
|
Divider.displayName = "Divider";
|
|
7615
7575
|
|
|
7616
7576
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
7617
|
-
var
|
|
7577
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
7618
7578
|
var import_react22 = require("react");
|
|
7619
7579
|
|
|
7620
7580
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7621
|
-
var
|
|
7581
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7622
7582
|
var import_type_guards22 = require("@wistia/type-guards");
|
|
7623
7583
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
7624
|
-
var VisuallyHidden =
|
|
7625
|
-
var VisuallyHiddenButFocusable =
|
|
7584
|
+
var VisuallyHidden = import_styled_components39.default.div({ ...visuallyHiddenStyle });
|
|
7585
|
+
var VisuallyHiddenButFocusable = import_styled_components39.default.div({
|
|
7626
7586
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
7627
7587
|
});
|
|
7628
7588
|
var ScreenReaderOnly = ({
|
|
@@ -7641,16 +7601,16 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
7641
7601
|
|
|
7642
7602
|
// src/components/Tooltip/Tooltip.tsx
|
|
7643
7603
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
7644
|
-
var
|
|
7604
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7645
7605
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
7646
|
-
var CompactTooltipStyles =
|
|
7606
|
+
var CompactTooltipStyles = import_styled_components40.css`
|
|
7647
7607
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
7648
7608
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
7649
7609
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
7650
7610
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
7651
7611
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
7652
7612
|
`;
|
|
7653
|
-
var StyledContent = (0,
|
|
7613
|
+
var StyledContent = (0, import_styled_components40.default)(import_react_tooltip2.Content)`
|
|
7654
7614
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
7655
7615
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
7656
7616
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -7746,10 +7706,10 @@ Tooltip.displayName = "Tooltip";
|
|
|
7746
7706
|
|
|
7747
7707
|
// src/components/Input/Input.tsx
|
|
7748
7708
|
var import_react21 = require("react");
|
|
7749
|
-
var
|
|
7709
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
7750
7710
|
var import_type_guards23 = require("@wistia/type-guards");
|
|
7751
7711
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7752
|
-
var inputStyles =
|
|
7712
|
+
var inputStyles = import_styled_components41.css`
|
|
7753
7713
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7754
7714
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7755
7715
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7790,7 +7750,7 @@ var inputStyles = import_styled_components42.css`
|
|
|
7790
7750
|
}
|
|
7791
7751
|
}
|
|
7792
7752
|
`;
|
|
7793
|
-
var StyledInputContainer =
|
|
7753
|
+
var StyledInputContainer = import_styled_components41.default.div`
|
|
7794
7754
|
display: inline-flex;
|
|
7795
7755
|
position: relative;
|
|
7796
7756
|
${inputStyles};
|
|
@@ -7909,7 +7869,7 @@ Input.displayName = "Input";
|
|
|
7909
7869
|
|
|
7910
7870
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
7911
7871
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
7912
|
-
var StyledInput = (0,
|
|
7872
|
+
var StyledInput = (0, import_styled_components42.default)(Input)`
|
|
7913
7873
|
:not([rows]) {
|
|
7914
7874
|
min-height: unset;
|
|
7915
7875
|
}
|
|
@@ -7929,7 +7889,7 @@ var StyledInput = (0, import_styled_components43.default)(Input)`
|
|
|
7929
7889
|
height: ${({ $height }) => `${$height}px`};
|
|
7930
7890
|
}
|
|
7931
7891
|
`;
|
|
7932
|
-
var editableStyles =
|
|
7892
|
+
var editableStyles = import_styled_components42.css`
|
|
7933
7893
|
&:has(+ :focus-within) {
|
|
7934
7894
|
background: var(--wui-color-bg-surface-hover);
|
|
7935
7895
|
}
|
|
@@ -7939,7 +7899,7 @@ var editableStyles = import_styled_components43.css`
|
|
|
7939
7899
|
cursor: pointer;
|
|
7940
7900
|
}
|
|
7941
7901
|
`;
|
|
7942
|
-
var StyledHeading2 = (0,
|
|
7902
|
+
var StyledHeading2 = (0, import_styled_components42.default)(Heading)`
|
|
7943
7903
|
width: 100%;
|
|
7944
7904
|
border-radius: var(--wui-border-radius-02);
|
|
7945
7905
|
padding: var(--wui-space-02);
|
|
@@ -8047,15 +8007,15 @@ var EditableHeading = ({
|
|
|
8047
8007
|
|
|
8048
8008
|
// src/components/Form/Form.tsx
|
|
8049
8009
|
var import_react24 = require("react");
|
|
8050
|
-
var
|
|
8010
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
8051
8011
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
8052
8012
|
|
|
8053
8013
|
// src/components/Stack/Stack.tsx
|
|
8054
8014
|
var import_react23 = require("react");
|
|
8055
|
-
var
|
|
8015
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
8056
8016
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
8057
8017
|
var DEFAULT_ELEMENT4 = "div";
|
|
8058
|
-
var StyledStack =
|
|
8018
|
+
var StyledStack = import_styled_components43.default.div`
|
|
8059
8019
|
display: flex;
|
|
8060
8020
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
8061
8021
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -8081,7 +8041,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
8081
8041
|
|
|
8082
8042
|
// src/components/Form/Form.tsx
|
|
8083
8043
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
8084
|
-
var StyledForm =
|
|
8044
|
+
var StyledForm = import_styled_components44.default.form`
|
|
8085
8045
|
--form-default-width: 690px;
|
|
8086
8046
|
|
|
8087
8047
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -8246,20 +8206,20 @@ var FormErrorSummary = ({ description }) => {
|
|
|
8246
8206
|
|
|
8247
8207
|
// src/components/FormField/FormField.tsx
|
|
8248
8208
|
var import_react29 = require("react");
|
|
8249
|
-
var
|
|
8209
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
8250
8210
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8251
8211
|
|
|
8252
8212
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
8253
8213
|
var import_react28 = require("react");
|
|
8254
8214
|
|
|
8255
8215
|
// src/components/FormGroup/FormGroup.tsx
|
|
8256
|
-
var
|
|
8216
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
8257
8217
|
var import_react27 = require("react");
|
|
8258
8218
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
8259
|
-
var StyledFieldset =
|
|
8219
|
+
var StyledFieldset = import_styled_components45.default.fieldset`
|
|
8260
8220
|
border: 0;
|
|
8261
8221
|
`;
|
|
8262
|
-
var StyledLegend =
|
|
8222
|
+
var StyledLegend = import_styled_components45.default.legend`
|
|
8263
8223
|
margin-bottom: var(--space-01);
|
|
8264
8224
|
`;
|
|
8265
8225
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -8308,7 +8268,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
8308
8268
|
|
|
8309
8269
|
// src/components/FormField/FormField.tsx
|
|
8310
8270
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
8311
|
-
var StyledFormField =
|
|
8271
|
+
var StyledFormField = import_styled_components46.default.div`
|
|
8312
8272
|
--form-field-spacing: var(--wui-space-01);
|
|
8313
8273
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
8314
8274
|
|
|
@@ -8316,7 +8276,7 @@ var StyledFormField = import_styled_components47.default.div`
|
|
|
8316
8276
|
flex-direction: column;
|
|
8317
8277
|
gap: var(--form-field-spacing);
|
|
8318
8278
|
`;
|
|
8319
|
-
var StyledErrorList =
|
|
8279
|
+
var StyledErrorList = import_styled_components46.default.ul`
|
|
8320
8280
|
margin: 0;
|
|
8321
8281
|
padding: 0;
|
|
8322
8282
|
padding-left: var(--wui-space-04);
|
|
@@ -8430,9 +8390,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
8430
8390
|
|
|
8431
8391
|
// src/components/IconButton/IconButton.tsx
|
|
8432
8392
|
var import_react31 = require("react");
|
|
8433
|
-
var
|
|
8393
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8434
8394
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
8435
|
-
var StyledButton2 = (0,
|
|
8395
|
+
var StyledButton2 = (0, import_styled_components47.default)(Button)`
|
|
8436
8396
|
--icon-button-size-sm: 24px;
|
|
8437
8397
|
--icon-button-size-md: 32px;
|
|
8438
8398
|
--icon-button-size-lg: 40px;
|
|
@@ -8467,7 +8427,7 @@ var IconButton = (0, import_react31.forwardRef)(
|
|
|
8467
8427
|
IconButton.displayName = "IconButton";
|
|
8468
8428
|
|
|
8469
8429
|
// src/components/Menu/Menu.tsx
|
|
8470
|
-
var
|
|
8430
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8471
8431
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
8472
8432
|
var import_type_guards27 = require("@wistia/type-guards");
|
|
8473
8433
|
var import_react33 = require("react");
|
|
@@ -8479,7 +8439,7 @@ var useMenuContext = () => (0, import_react32.useContext)(MenuContext);
|
|
|
8479
8439
|
|
|
8480
8440
|
// src/components/Menu/Menu.tsx
|
|
8481
8441
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
8482
|
-
var open =
|
|
8442
|
+
var open = import_styled_components48.keyframes`
|
|
8483
8443
|
from {
|
|
8484
8444
|
opacity: 0;
|
|
8485
8445
|
transform: scale(.97) translateY(-8px);
|
|
@@ -8489,7 +8449,7 @@ var open = import_styled_components49.keyframes`
|
|
|
8489
8449
|
transform: scale(1);
|
|
8490
8450
|
}
|
|
8491
8451
|
`;
|
|
8492
|
-
var close =
|
|
8452
|
+
var close = import_styled_components48.keyframes`
|
|
8493
8453
|
from {
|
|
8494
8454
|
opacity: 1;
|
|
8495
8455
|
transform: scale(1);
|
|
@@ -8499,7 +8459,7 @@ var close = import_styled_components49.keyframes`
|
|
|
8499
8459
|
transform: scale(.97) translateY(-8px);
|
|
8500
8460
|
}
|
|
8501
8461
|
`;
|
|
8502
|
-
var menuItemCss =
|
|
8462
|
+
var menuItemCss = import_styled_components48.css`
|
|
8503
8463
|
--menu-label-description-gap: var(--wui-space-01);
|
|
8504
8464
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
8505
8465
|
--menu-item-left-icon-size: 24px;
|
|
@@ -8510,7 +8470,7 @@ var menuItemCss = import_styled_components49.css`
|
|
|
8510
8470
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
8511
8471
|
--menu-divider-margin: var(--wui-space-02);
|
|
8512
8472
|
`;
|
|
8513
|
-
var compactMenuItemCss =
|
|
8473
|
+
var compactMenuItemCss = import_styled_components48.css`
|
|
8514
8474
|
--menu-label-description-gap: 0;
|
|
8515
8475
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
8516
8476
|
--menu-item-left-icon-size: 16px;
|
|
@@ -8521,7 +8481,7 @@ var compactMenuItemCss = import_styled_components49.css`
|
|
|
8521
8481
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
8522
8482
|
--menu-divider-margin: var(--wui-space-01);
|
|
8523
8483
|
`;
|
|
8524
|
-
var menuContentCss =
|
|
8484
|
+
var menuContentCss = import_styled_components48.css`
|
|
8525
8485
|
--menu-font-family: var(--wui-typography-family-default);
|
|
8526
8486
|
--menu-bg: var(--wui-color-bg-surface);
|
|
8527
8487
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -8563,7 +8523,7 @@ var menuContentCss = import_styled_components49.css`
|
|
|
8563
8523
|
margin: var(--menu-divider-margin) 0;
|
|
8564
8524
|
}
|
|
8565
8525
|
`;
|
|
8566
|
-
var MenuContent = (0,
|
|
8526
|
+
var MenuContent = (0, import_styled_components48.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
8567
8527
|
${menuContentCss}
|
|
8568
8528
|
`;
|
|
8569
8529
|
var Menu = ({
|
|
@@ -8626,10 +8586,10 @@ var Menu = ({
|
|
|
8626
8586
|
Menu.displayName = "Menu";
|
|
8627
8587
|
|
|
8628
8588
|
// src/components/Menu/MenuLabel.tsx
|
|
8629
|
-
var
|
|
8589
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8630
8590
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
8631
8591
|
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
8632
|
-
var StyledMenuLabel = (0,
|
|
8592
|
+
var StyledMenuLabel = (0, import_styled_components49.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
8633
8593
|
padding: var(--wui-space-02);
|
|
8634
8594
|
`;
|
|
8635
8595
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -8654,16 +8614,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8654
8614
|
|
|
8655
8615
|
// src/components/Menu/SubMenu.tsx
|
|
8656
8616
|
var import_react35 = require("react");
|
|
8657
|
-
var
|
|
8617
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8658
8618
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
8659
8619
|
var import_type_guards29 = require("@wistia/type-guards");
|
|
8660
8620
|
|
|
8661
8621
|
// src/components/Menu/MenuItemButton.tsx
|
|
8662
8622
|
var import_react34 = require("react");
|
|
8663
|
-
var
|
|
8623
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8664
8624
|
var import_type_guards28 = require("@wistia/type-guards");
|
|
8665
8625
|
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
8666
|
-
var StyledButton3 = (0,
|
|
8626
|
+
var StyledButton3 = (0, import_styled_components50.default)(Button)`
|
|
8667
8627
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
8668
8628
|
|
|
8669
8629
|
display: flex;
|
|
@@ -8702,31 +8662,35 @@ var StyledButton3 = (0, import_styled_components51.default)(Button)`
|
|
|
8702
8662
|
padding-left: var(--wui-space-04);
|
|
8703
8663
|
}
|
|
8704
8664
|
`;
|
|
8705
|
-
var StyledLeftIconContainer =
|
|
8665
|
+
var StyledLeftIconContainer = import_styled_components50.default.div`
|
|
8706
8666
|
height: var(--menu-item-left-icon-size);
|
|
8707
8667
|
width: var(--menu-item-left-icon-size);
|
|
8708
8668
|
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8669
|
+
&& {
|
|
8670
|
+
svg {
|
|
8671
|
+
height: var(--menu-item-left-icon-size);
|
|
8672
|
+
width: var(--menu-item-left-icon-size);
|
|
8673
|
+
}
|
|
8712
8674
|
}
|
|
8713
8675
|
`;
|
|
8714
|
-
var StyledRightIconContainer =
|
|
8676
|
+
var StyledRightIconContainer = import_styled_components50.default.div`
|
|
8715
8677
|
height: var(--menu-item-right-icon-size);
|
|
8716
8678
|
width: var(--menu-item-right-icon-size);
|
|
8717
8679
|
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8680
|
+
&& {
|
|
8681
|
+
svg {
|
|
8682
|
+
height: var(--menu-item-right-icon-size);
|
|
8683
|
+
width: var(--menu-item-right-icon-size);
|
|
8684
|
+
}
|
|
8721
8685
|
}
|
|
8722
8686
|
`;
|
|
8723
|
-
var StyledLabelAndDescriptionContainer =
|
|
8687
|
+
var StyledLabelAndDescriptionContainer = import_styled_components50.default.div`
|
|
8724
8688
|
display: flex;
|
|
8725
8689
|
flex-direction: column;
|
|
8726
8690
|
gap: var(--menu-label-description-gap);
|
|
8727
8691
|
flex-basis: 100%;
|
|
8728
8692
|
`;
|
|
8729
|
-
var StyledBadgeContainer =
|
|
8693
|
+
var StyledBadgeContainer = import_styled_components50.default.div`
|
|
8730
8694
|
align-self: start;
|
|
8731
8695
|
justify-self: end;
|
|
8732
8696
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -8774,10 +8738,10 @@ var MenuItemButton = (0, import_react34.forwardRef)(({ children, appearance, com
|
|
|
8774
8738
|
MenuItemButton.displayName = "MenuItemButton";
|
|
8775
8739
|
|
|
8776
8740
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
8777
|
-
var
|
|
8741
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8778
8742
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8779
|
-
var StyledMenuItemLabel =
|
|
8780
|
-
var StyledMenuItemDescription = (0,
|
|
8743
|
+
var StyledMenuItemLabel = import_styled_components51.default.span``;
|
|
8744
|
+
var StyledMenuItemDescription = (0, import_styled_components51.default)(Text).attrs({
|
|
8781
8745
|
variant: "body4",
|
|
8782
8746
|
prominence: "secondary"
|
|
8783
8747
|
})``;
|
|
@@ -8790,17 +8754,17 @@ var MenuItemDescription = ({ children }) => {
|
|
|
8790
8754
|
|
|
8791
8755
|
// src/components/Menu/SubMenu.tsx
|
|
8792
8756
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8793
|
-
var SubMenuContent = (0,
|
|
8757
|
+
var SubMenuContent = (0, import_styled_components52.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
8794
8758
|
${menuContentCss}
|
|
8795
8759
|
|
|
8796
8760
|
${mq.smAndDown} {
|
|
8797
8761
|
transform: translateX(-100%) !important;
|
|
8798
8762
|
}
|
|
8799
8763
|
`;
|
|
8800
|
-
var StyledMobileSubMenuItems =
|
|
8764
|
+
var StyledMobileSubMenuItems = import_styled_components52.default.div`
|
|
8801
8765
|
margin-left: var(--wui-space-04);
|
|
8802
8766
|
`;
|
|
8803
|
-
var StyledSubTrigger = (0,
|
|
8767
|
+
var StyledSubTrigger = (0, import_styled_components52.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
8804
8768
|
outline: none;
|
|
8805
8769
|
|
|
8806
8770
|
&[data-state='open'],
|
|
@@ -9010,19 +8974,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
9010
8974
|
|
|
9011
8975
|
// src/components/Modal/Modal.tsx
|
|
9012
8976
|
var import_react40 = require("react");
|
|
9013
|
-
var
|
|
8977
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
9014
8978
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
9015
8979
|
var import_type_guards31 = require("@wistia/type-guards");
|
|
9016
8980
|
|
|
9017
8981
|
// src/components/Modal/ModalHeader.tsx
|
|
9018
|
-
var
|
|
8982
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
9019
8983
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
9020
8984
|
|
|
9021
8985
|
// src/components/Modal/ModalCloseButton.tsx
|
|
9022
|
-
var
|
|
8986
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
9023
8987
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
9024
8988
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
9025
|
-
var CloseButton = (0,
|
|
8989
|
+
var CloseButton = (0, import_styled_components53.default)(import_react_dialog.Close)`
|
|
9026
8990
|
align-self: start;
|
|
9027
8991
|
`;
|
|
9028
8992
|
var ModalCloseButton = () => {
|
|
@@ -9039,7 +9003,7 @@ var ModalCloseButton = () => {
|
|
|
9039
9003
|
|
|
9040
9004
|
// src/components/Modal/ModalHeader.tsx
|
|
9041
9005
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
9042
|
-
var Header =
|
|
9006
|
+
var Header = import_styled_components54.default.header`
|
|
9043
9007
|
display: flex;
|
|
9044
9008
|
order: 1;
|
|
9045
9009
|
gap: var(--wui-space-01);
|
|
@@ -9051,7 +9015,7 @@ var Header = import_styled_components55.default.header`
|
|
|
9051
9015
|
margin-top: 0;
|
|
9052
9016
|
}
|
|
9053
9017
|
`;
|
|
9054
|
-
var Title = (0,
|
|
9018
|
+
var Title = (0, import_styled_components54.default)(import_react_dialog2.Title)`
|
|
9055
9019
|
font-family: var(--wui-typography-heading-2-family);
|
|
9056
9020
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
9057
9021
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -9071,7 +9035,7 @@ var ModalHeader = ({
|
|
|
9071
9035
|
|
|
9072
9036
|
// src/components/Modal/ModalContent.tsx
|
|
9073
9037
|
var import_react38 = require("react");
|
|
9074
|
-
var
|
|
9038
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
9075
9039
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
9076
9040
|
|
|
9077
9041
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -9095,7 +9059,7 @@ var useFocusRestore = () => {
|
|
|
9095
9059
|
|
|
9096
9060
|
// src/components/Modal/ModalContent.tsx
|
|
9097
9061
|
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
9098
|
-
var StyledModalContent = (0,
|
|
9062
|
+
var StyledModalContent = (0, import_styled_components55.default)(import_react_dialog3.Content)`
|
|
9099
9063
|
background-color: var(--wui-color-bg-app);
|
|
9100
9064
|
box-sizing: border-box;
|
|
9101
9065
|
display: flex;
|
|
@@ -9155,7 +9119,7 @@ var ModalContent = (0, import_react38.forwardRef)(
|
|
|
9155
9119
|
|
|
9156
9120
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
9157
9121
|
var import_react39 = require("react");
|
|
9158
|
-
var
|
|
9122
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
9159
9123
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
9160
9124
|
var backdropAnimationDuration = 150;
|
|
9161
9125
|
var alignVerticalMap = {
|
|
@@ -9169,7 +9133,7 @@ var alignHorizontalMap = {
|
|
|
9169
9133
|
center: "center",
|
|
9170
9134
|
right: "end"
|
|
9171
9135
|
};
|
|
9172
|
-
var BackdropComponent =
|
|
9136
|
+
var BackdropComponent = import_styled_components56.default.div`
|
|
9173
9137
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
9174
9138
|
animation-name: backdropShow;
|
|
9175
9139
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -9209,7 +9173,7 @@ Backdrop.displayName = "Backdrop";
|
|
|
9209
9173
|
// src/components/Modal/Modal.tsx
|
|
9210
9174
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
9211
9175
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
9212
|
-
var ModalBody =
|
|
9176
|
+
var ModalBody = import_styled_components57.default.div`
|
|
9213
9177
|
flex-direction: column;
|
|
9214
9178
|
display: flex;
|
|
9215
9179
|
order: 2;
|
|
@@ -9275,15 +9239,15 @@ Modal.displayName = "Modal";
|
|
|
9275
9239
|
|
|
9276
9240
|
// src/components/Radio/Radio.tsx
|
|
9277
9241
|
var import_react41 = require("react");
|
|
9278
|
-
var
|
|
9242
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
9279
9243
|
var import_type_guards32 = require("@wistia/type-guards");
|
|
9280
9244
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
9281
|
-
var StyledLabelWrapper2 =
|
|
9245
|
+
var StyledLabelWrapper2 = import_styled_components58.default.div`
|
|
9282
9246
|
display: flex;
|
|
9283
9247
|
flex-direction: column;
|
|
9284
9248
|
padding-left: var(--wui-space-02);
|
|
9285
9249
|
`;
|
|
9286
|
-
var StyledRadio =
|
|
9250
|
+
var StyledRadio = import_styled_components58.default.input`
|
|
9287
9251
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
9288
9252
|
appearance: none;
|
|
9289
9253
|
margin: 0;
|
|
@@ -9309,11 +9273,11 @@ var StyledRadio = import_styled_components59.default.input`
|
|
|
9309
9273
|
transform: scale(1);
|
|
9310
9274
|
}
|
|
9311
9275
|
`;
|
|
9312
|
-
var disabledStyle2 =
|
|
9276
|
+
var disabledStyle2 = import_styled_components58.css`
|
|
9313
9277
|
cursor: not-allowed;
|
|
9314
9278
|
opacity: 0.5;
|
|
9315
9279
|
`;
|
|
9316
|
-
var errorStyle =
|
|
9280
|
+
var errorStyle = import_styled_components58.css`
|
|
9317
9281
|
/* TODO Lamp to design error state */
|
|
9318
9282
|
&:hover,
|
|
9319
9283
|
&:focus,
|
|
@@ -9321,11 +9285,11 @@ var errorStyle = import_styled_components59.css`
|
|
|
9321
9285
|
border-color: transparent !important;
|
|
9322
9286
|
}
|
|
9323
9287
|
`;
|
|
9324
|
-
var defaultHoverStyle =
|
|
9288
|
+
var defaultHoverStyle = import_styled_components58.css`
|
|
9325
9289
|
/* TODO Lamp to design hover state */
|
|
9326
9290
|
cursor: pointer;
|
|
9327
9291
|
`;
|
|
9328
|
-
var StyledRadioWrapper =
|
|
9292
|
+
var StyledRadioWrapper = import_styled_components58.default.div`
|
|
9329
9293
|
align-items: baseline;
|
|
9330
9294
|
border: 1px solid transparent;
|
|
9331
9295
|
border-radius: 4px;
|
|
@@ -9405,11 +9369,11 @@ Radio.displayName = "Radio";
|
|
|
9405
9369
|
|
|
9406
9370
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
9407
9371
|
var import_react42 = require("react");
|
|
9408
|
-
var
|
|
9372
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
9409
9373
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
9410
9374
|
var import_type_guards33 = require("@wistia/type-guards");
|
|
9411
9375
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
9412
|
-
var segmentedControlStyles =
|
|
9376
|
+
var segmentedControlStyles = import_styled_components59.css`
|
|
9413
9377
|
display: inline-flex;
|
|
9414
9378
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
9415
9379
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9417,7 +9381,7 @@ var segmentedControlStyles = import_styled_components60.css`
|
|
|
9417
9381
|
gap: var(--wui-space-01);
|
|
9418
9382
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
9419
9383
|
`;
|
|
9420
|
-
var StyledSegmentedControl = (0,
|
|
9384
|
+
var StyledSegmentedControl = (0, import_styled_components59.default)(import_react_toggle_group.Root)`
|
|
9421
9385
|
${segmentedControlStyles}
|
|
9422
9386
|
`;
|
|
9423
9387
|
var SegmentedControl = (0, import_react42.forwardRef)(
|
|
@@ -9453,11 +9417,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
9453
9417
|
|
|
9454
9418
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
9455
9419
|
var import_react43 = require("react");
|
|
9456
|
-
var
|
|
9420
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9457
9421
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
9458
9422
|
var import_type_guards34 = require("@wistia/type-guards");
|
|
9459
9423
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9460
|
-
var segmentedControlItemStyles =
|
|
9424
|
+
var segmentedControlItemStyles = import_styled_components60.css`
|
|
9461
9425
|
all: unset; /* ToggleGroupItem is a button element */
|
|
9462
9426
|
align-items: center;
|
|
9463
9427
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9512,7 +9476,7 @@ var segmentedControlItemStyles = import_styled_components61.css`
|
|
|
9512
9476
|
}
|
|
9513
9477
|
}
|
|
9514
9478
|
`;
|
|
9515
|
-
var StyledSegmentedControlItem = (0,
|
|
9479
|
+
var StyledSegmentedControlItem = (0, import_styled_components60.default)(import_react_toggle_group2.Item)`
|
|
9516
9480
|
${segmentedControlItemStyles}
|
|
9517
9481
|
`;
|
|
9518
9482
|
var SegmentedControlItem = (0, import_react43.forwardRef)(
|
|
@@ -9546,9 +9510,9 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
9546
9510
|
// src/components/Select/Select.tsx
|
|
9547
9511
|
var import_react_select = require("@radix-ui/react-select");
|
|
9548
9512
|
var import_react44 = require("react");
|
|
9549
|
-
var
|
|
9513
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9550
9514
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9551
|
-
var StyledTrigger = (0,
|
|
9515
|
+
var StyledTrigger = (0, import_styled_components61.default)(import_react_select.Trigger)`
|
|
9552
9516
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9553
9517
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
9554
9518
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9589,7 +9553,7 @@ var StyledTrigger = (0, import_styled_components62.default)(import_react_select.
|
|
|
9589
9553
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9590
9554
|
}
|
|
9591
9555
|
`;
|
|
9592
|
-
var StyledContent2 = (0,
|
|
9556
|
+
var StyledContent2 = (0, import_styled_components61.default)(import_react_select.Content)`
|
|
9593
9557
|
--wui-select-content-border: var(--wui-color-border);
|
|
9594
9558
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9595
9559
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -9655,9 +9619,9 @@ Select.displayName = "Select";
|
|
|
9655
9619
|
// src/components/Select/SelectOption.tsx
|
|
9656
9620
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9657
9621
|
var import_react45 = require("react");
|
|
9658
|
-
var
|
|
9622
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9659
9623
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9660
|
-
var StyledItem = (0,
|
|
9624
|
+
var StyledItem = (0, import_styled_components62.default)(import_react_select2.Item)`
|
|
9661
9625
|
${variantStyleMap2.body3};
|
|
9662
9626
|
display: flex;
|
|
9663
9627
|
padding: var(--wui-select-option-padding);
|
|
@@ -9680,7 +9644,7 @@ var StyledItem = (0, import_styled_components63.default)(import_react_select2.It
|
|
|
9680
9644
|
background-color: transparent;
|
|
9681
9645
|
}
|
|
9682
9646
|
`;
|
|
9683
|
-
var StyledIconContainer =
|
|
9647
|
+
var StyledIconContainer = import_styled_components62.default.span`
|
|
9684
9648
|
width: 12px;
|
|
9685
9649
|
`;
|
|
9686
9650
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
@@ -9708,9 +9672,9 @@ SelectOption.displayName = "Option";
|
|
|
9708
9672
|
|
|
9709
9673
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9710
9674
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9711
|
-
var
|
|
9675
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9712
9676
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9713
|
-
var StyledLabel4 = (0,
|
|
9677
|
+
var StyledLabel4 = (0, import_styled_components63.default)(import_react_select3.Label)`
|
|
9714
9678
|
padding: var(--wui-select-option-padding);
|
|
9715
9679
|
`;
|
|
9716
9680
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -9733,10 +9697,10 @@ var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
|
9733
9697
|
var import_type_guards36 = require("@wistia/type-guards");
|
|
9734
9698
|
|
|
9735
9699
|
// src/components/Tabs/TabPanel.tsx
|
|
9736
|
-
var
|
|
9700
|
+
var import_styled_components64 = __toESM(require("styled-components"));
|
|
9737
9701
|
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
9738
9702
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9739
|
-
var StyledTabPanel = (0,
|
|
9703
|
+
var StyledTabPanel = (0, import_styled_components64.default)(import_react_tabs.Content)`
|
|
9740
9704
|
display: flex;
|
|
9741
9705
|
flex-direction: column;
|
|
9742
9706
|
`;
|
|
@@ -9753,10 +9717,10 @@ var TabPanel = ({ children, value, ...props }) => {
|
|
|
9753
9717
|
TabPanel.displayName = "TabPanel";
|
|
9754
9718
|
|
|
9755
9719
|
// src/components/Tabs/TabList.tsx
|
|
9756
|
-
var
|
|
9720
|
+
var import_styled_components65 = __toESM(require("styled-components"));
|
|
9757
9721
|
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
9758
9722
|
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
9759
|
-
var StyledTabList = (0,
|
|
9723
|
+
var StyledTabList = (0, import_styled_components65.default)(import_react_tabs2.List)`
|
|
9760
9724
|
${segmentedControlStyles}
|
|
9761
9725
|
|
|
9762
9726
|
margin-bottom: var(--wui-space-04);
|
|
@@ -9781,11 +9745,11 @@ TabList.displayName = "TabList";
|
|
|
9781
9745
|
|
|
9782
9746
|
// src/components/Tabs/TabItem.tsx
|
|
9783
9747
|
var import_react46 = require("react");
|
|
9784
|
-
var
|
|
9748
|
+
var import_styled_components66 = __toESM(require("styled-components"));
|
|
9785
9749
|
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
9786
9750
|
var import_type_guards35 = require("@wistia/type-guards");
|
|
9787
9751
|
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
9788
|
-
var StyledTabItem = (0,
|
|
9752
|
+
var StyledTabItem = (0, import_styled_components66.default)(import_react_tabs3.Trigger)`
|
|
9789
9753
|
${segmentedControlItemStyles}
|
|
9790
9754
|
|
|
9791
9755
|
&[data-state='active'] {
|
|
@@ -9933,10 +9897,10 @@ Tab.displayName = "Tab";
|
|
|
9933
9897
|
|
|
9934
9898
|
// src/components/Tag/Tag.tsx
|
|
9935
9899
|
var import_react50 = require("react");
|
|
9936
|
-
var
|
|
9900
|
+
var import_styled_components67 = __toESM(require("styled-components"));
|
|
9937
9901
|
var import_type_guards37 = require("@wistia/type-guards");
|
|
9938
9902
|
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
9939
|
-
var TagLabel =
|
|
9903
|
+
var TagLabel = import_styled_components67.default.a`
|
|
9940
9904
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9941
9905
|
font-size: var(--wui-typography-label-4-size);
|
|
9942
9906
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -9964,14 +9928,14 @@ var TagLabel = import_styled_components68.default.a`
|
|
|
9964
9928
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9965
9929
|
}
|
|
9966
9930
|
`;
|
|
9967
|
-
var TagDivider =
|
|
9931
|
+
var TagDivider = import_styled_components67.default.div`
|
|
9968
9932
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9969
9933
|
border-left: 1px solid var(--wui-color-border);
|
|
9970
9934
|
display: flex;
|
|
9971
9935
|
height: 14px;
|
|
9972
9936
|
width: 1px;
|
|
9973
9937
|
`;
|
|
9974
|
-
var StyledRemoveButton =
|
|
9938
|
+
var StyledRemoveButton = import_styled_components67.default.button`
|
|
9975
9939
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9976
9940
|
all: unset;
|
|
9977
9941
|
cursor: pointer;
|
|
@@ -9999,7 +9963,7 @@ var StyledRemoveButton = import_styled_components68.default.button`
|
|
|
9999
9963
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
10000
9964
|
}
|
|
10001
9965
|
`;
|
|
10002
|
-
var StyledTag =
|
|
9966
|
+
var StyledTag = import_styled_components67.default.div`
|
|
10003
9967
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10004
9968
|
align-items: center;
|
|
10005
9969
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -10076,7 +10040,7 @@ var Tag = (0, import_react50.forwardRef)(
|
|
|
10076
10040
|
Tag.displayName = "Tag";
|
|
10077
10041
|
|
|
10078
10042
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
10079
|
-
var
|
|
10043
|
+
var import_styled_components68 = __toESM(require("styled-components"));
|
|
10080
10044
|
var import_type_guards38 = require("@wistia/type-guards");
|
|
10081
10045
|
var import_jsx_runtime219 = require("react/jsx-runtime");
|
|
10082
10046
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -10118,7 +10082,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
10118
10082
|
}
|
|
10119
10083
|
return "0 0 144 31.47";
|
|
10120
10084
|
};
|
|
10121
|
-
var WistiaLogoComponent =
|
|
10085
|
+
var WistiaLogoComponent = import_styled_components68.default.svg`
|
|
10122
10086
|
height: ${({ height }) => `${height}px`};
|
|
10123
10087
|
|
|
10124
10088
|
/* ensure it will always fit on mobile */
|