@wistia/ui 0.5.4-beta.b60ba6d4.ffaa152 → 0.5.4-beta.c2cf9177.fb4fcf2
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 +245 -284
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +108 -147
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -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.c2cf9177.fb4fcf2
|
|
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};
|
|
@@ -7834,9 +7794,6 @@ var StyledInputContainer = import_styled_components42.default.div`
|
|
|
7834
7794
|
padding-right: 32px;
|
|
7835
7795
|
}
|
|
7836
7796
|
`;
|
|
7837
|
-
var isValidRef2 = (ref) => {
|
|
7838
|
-
return typeof ref === "object" && ref !== null && "current" in ref && (0, import_type_guards23.isNotNil)(ref.current);
|
|
7839
|
-
};
|
|
7840
7797
|
var Input = (0, import_react21.forwardRef)(
|
|
7841
7798
|
({
|
|
7842
7799
|
fullWidth = false,
|
|
@@ -7848,7 +7805,7 @@ var Input = (0, import_react21.forwardRef)(
|
|
|
7848
7805
|
...props
|
|
7849
7806
|
}, externalRef) => {
|
|
7850
7807
|
const internalRef = (0, import_react21.useRef)();
|
|
7851
|
-
const ref =
|
|
7808
|
+
const ref = (0, import_type_guards23.isNotNil)(externalRef) && (0, import_type_guards23.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef;
|
|
7852
7809
|
let leftIconToDisplay = leftIcon;
|
|
7853
7810
|
if ((0, import_type_guards23.isNil)(leftIcon) && type === "search") {
|
|
7854
7811
|
leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Icon, { type: "search" });
|
|
@@ -7870,7 +7827,7 @@ var Input = (0, import_react21.forwardRef)(
|
|
|
7870
7827
|
if ((0, import_type_guards23.isNotNil)(props.onFocus)) {
|
|
7871
7828
|
props.onFocus(event);
|
|
7872
7829
|
}
|
|
7873
|
-
if (autoSelect && ref && "current" in ref) {
|
|
7830
|
+
if (autoSelect && isValidRef(ref) && "current" in ref) {
|
|
7874
7831
|
requestAnimationFrame(() => {
|
|
7875
7832
|
ref.current?.select();
|
|
7876
7833
|
});
|
|
@@ -7909,7 +7866,7 @@ Input.displayName = "Input";
|
|
|
7909
7866
|
|
|
7910
7867
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
7911
7868
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
7912
|
-
var StyledInput = (0,
|
|
7869
|
+
var StyledInput = (0, import_styled_components42.default)(Input)`
|
|
7913
7870
|
:not([rows]) {
|
|
7914
7871
|
min-height: unset;
|
|
7915
7872
|
}
|
|
@@ -7929,7 +7886,7 @@ var StyledInput = (0, import_styled_components43.default)(Input)`
|
|
|
7929
7886
|
height: ${({ $height }) => `${$height}px`};
|
|
7930
7887
|
}
|
|
7931
7888
|
`;
|
|
7932
|
-
var editableStyles =
|
|
7889
|
+
var editableStyles = import_styled_components42.css`
|
|
7933
7890
|
&:has(+ :focus-within) {
|
|
7934
7891
|
background: var(--wui-color-bg-surface-hover);
|
|
7935
7892
|
}
|
|
@@ -7939,7 +7896,7 @@ var editableStyles = import_styled_components43.css`
|
|
|
7939
7896
|
cursor: pointer;
|
|
7940
7897
|
}
|
|
7941
7898
|
`;
|
|
7942
|
-
var StyledHeading2 = (0,
|
|
7899
|
+
var StyledHeading2 = (0, import_styled_components42.default)(Heading)`
|
|
7943
7900
|
width: 100%;
|
|
7944
7901
|
border-radius: var(--wui-border-radius-02);
|
|
7945
7902
|
padding: var(--wui-space-02);
|
|
@@ -8047,15 +8004,15 @@ var EditableHeading = ({
|
|
|
8047
8004
|
|
|
8048
8005
|
// src/components/Form/Form.tsx
|
|
8049
8006
|
var import_react24 = require("react");
|
|
8050
|
-
var
|
|
8007
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
8051
8008
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
8052
8009
|
|
|
8053
8010
|
// src/components/Stack/Stack.tsx
|
|
8054
8011
|
var import_react23 = require("react");
|
|
8055
|
-
var
|
|
8012
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
8056
8013
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
8057
8014
|
var DEFAULT_ELEMENT4 = "div";
|
|
8058
|
-
var StyledStack =
|
|
8015
|
+
var StyledStack = import_styled_components43.default.div`
|
|
8059
8016
|
display: flex;
|
|
8060
8017
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
8061
8018
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -8081,7 +8038,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
8081
8038
|
|
|
8082
8039
|
// src/components/Form/Form.tsx
|
|
8083
8040
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
8084
|
-
var StyledForm =
|
|
8041
|
+
var StyledForm = import_styled_components44.default.form`
|
|
8085
8042
|
--form-default-width: 690px;
|
|
8086
8043
|
|
|
8087
8044
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -8246,20 +8203,20 @@ var FormErrorSummary = ({ description }) => {
|
|
|
8246
8203
|
|
|
8247
8204
|
// src/components/FormField/FormField.tsx
|
|
8248
8205
|
var import_react29 = require("react");
|
|
8249
|
-
var
|
|
8206
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
8250
8207
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8251
8208
|
|
|
8252
8209
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
8253
8210
|
var import_react28 = require("react");
|
|
8254
8211
|
|
|
8255
8212
|
// src/components/FormGroup/FormGroup.tsx
|
|
8256
|
-
var
|
|
8213
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
8257
8214
|
var import_react27 = require("react");
|
|
8258
8215
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
8259
|
-
var StyledFieldset =
|
|
8216
|
+
var StyledFieldset = import_styled_components45.default.fieldset`
|
|
8260
8217
|
border: 0;
|
|
8261
8218
|
`;
|
|
8262
|
-
var StyledLegend =
|
|
8219
|
+
var StyledLegend = import_styled_components45.default.legend`
|
|
8263
8220
|
margin-bottom: var(--space-01);
|
|
8264
8221
|
`;
|
|
8265
8222
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -8308,7 +8265,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
8308
8265
|
|
|
8309
8266
|
// src/components/FormField/FormField.tsx
|
|
8310
8267
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
8311
|
-
var StyledFormField =
|
|
8268
|
+
var StyledFormField = import_styled_components46.default.div`
|
|
8312
8269
|
--form-field-spacing: var(--wui-space-01);
|
|
8313
8270
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
8314
8271
|
|
|
@@ -8316,7 +8273,7 @@ var StyledFormField = import_styled_components47.default.div`
|
|
|
8316
8273
|
flex-direction: column;
|
|
8317
8274
|
gap: var(--form-field-spacing);
|
|
8318
8275
|
`;
|
|
8319
|
-
var StyledErrorList =
|
|
8276
|
+
var StyledErrorList = import_styled_components46.default.ul`
|
|
8320
8277
|
margin: 0;
|
|
8321
8278
|
padding: 0;
|
|
8322
8279
|
padding-left: var(--wui-space-04);
|
|
@@ -8430,9 +8387,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
8430
8387
|
|
|
8431
8388
|
// src/components/IconButton/IconButton.tsx
|
|
8432
8389
|
var import_react31 = require("react");
|
|
8433
|
-
var
|
|
8390
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8434
8391
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
8435
|
-
var StyledButton2 = (0,
|
|
8392
|
+
var StyledButton2 = (0, import_styled_components47.default)(Button)`
|
|
8436
8393
|
--icon-button-size-sm: 24px;
|
|
8437
8394
|
--icon-button-size-md: 32px;
|
|
8438
8395
|
--icon-button-size-lg: 40px;
|
|
@@ -8467,7 +8424,7 @@ var IconButton = (0, import_react31.forwardRef)(
|
|
|
8467
8424
|
IconButton.displayName = "IconButton";
|
|
8468
8425
|
|
|
8469
8426
|
// src/components/Menu/Menu.tsx
|
|
8470
|
-
var
|
|
8427
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8471
8428
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
8472
8429
|
var import_type_guards27 = require("@wistia/type-guards");
|
|
8473
8430
|
var import_react33 = require("react");
|
|
@@ -8479,7 +8436,7 @@ var useMenuContext = () => (0, import_react32.useContext)(MenuContext);
|
|
|
8479
8436
|
|
|
8480
8437
|
// src/components/Menu/Menu.tsx
|
|
8481
8438
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
8482
|
-
var open =
|
|
8439
|
+
var open = import_styled_components48.keyframes`
|
|
8483
8440
|
from {
|
|
8484
8441
|
opacity: 0;
|
|
8485
8442
|
transform: scale(.97) translateY(-8px);
|
|
@@ -8489,7 +8446,7 @@ var open = import_styled_components49.keyframes`
|
|
|
8489
8446
|
transform: scale(1);
|
|
8490
8447
|
}
|
|
8491
8448
|
`;
|
|
8492
|
-
var close =
|
|
8449
|
+
var close = import_styled_components48.keyframes`
|
|
8493
8450
|
from {
|
|
8494
8451
|
opacity: 1;
|
|
8495
8452
|
transform: scale(1);
|
|
@@ -8499,7 +8456,7 @@ var close = import_styled_components49.keyframes`
|
|
|
8499
8456
|
transform: scale(.97) translateY(-8px);
|
|
8500
8457
|
}
|
|
8501
8458
|
`;
|
|
8502
|
-
var menuItemCss =
|
|
8459
|
+
var menuItemCss = import_styled_components48.css`
|
|
8503
8460
|
--menu-label-description-gap: var(--wui-space-01);
|
|
8504
8461
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
8505
8462
|
--menu-item-left-icon-size: 24px;
|
|
@@ -8510,7 +8467,7 @@ var menuItemCss = import_styled_components49.css`
|
|
|
8510
8467
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
8511
8468
|
--menu-divider-margin: var(--wui-space-02);
|
|
8512
8469
|
`;
|
|
8513
|
-
var compactMenuItemCss =
|
|
8470
|
+
var compactMenuItemCss = import_styled_components48.css`
|
|
8514
8471
|
--menu-label-description-gap: 0;
|
|
8515
8472
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
8516
8473
|
--menu-item-left-icon-size: 16px;
|
|
@@ -8521,7 +8478,7 @@ var compactMenuItemCss = import_styled_components49.css`
|
|
|
8521
8478
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
8522
8479
|
--menu-divider-margin: var(--wui-space-01);
|
|
8523
8480
|
`;
|
|
8524
|
-
var menuContentCss =
|
|
8481
|
+
var menuContentCss = import_styled_components48.css`
|
|
8525
8482
|
--menu-font-family: var(--wui-typography-family-default);
|
|
8526
8483
|
--menu-bg: var(--wui-color-bg-surface);
|
|
8527
8484
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -8563,7 +8520,7 @@ var menuContentCss = import_styled_components49.css`
|
|
|
8563
8520
|
margin: var(--menu-divider-margin) 0;
|
|
8564
8521
|
}
|
|
8565
8522
|
`;
|
|
8566
|
-
var MenuContent = (0,
|
|
8523
|
+
var MenuContent = (0, import_styled_components48.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
8567
8524
|
${menuContentCss}
|
|
8568
8525
|
`;
|
|
8569
8526
|
var Menu = ({
|
|
@@ -8626,10 +8583,10 @@ var Menu = ({
|
|
|
8626
8583
|
Menu.displayName = "Menu";
|
|
8627
8584
|
|
|
8628
8585
|
// src/components/Menu/MenuLabel.tsx
|
|
8629
|
-
var
|
|
8586
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8630
8587
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
8631
8588
|
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
8632
|
-
var StyledMenuLabel = (0,
|
|
8589
|
+
var StyledMenuLabel = (0, import_styled_components49.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
8633
8590
|
padding: var(--wui-space-02);
|
|
8634
8591
|
`;
|
|
8635
8592
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -8654,16 +8611,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8654
8611
|
|
|
8655
8612
|
// src/components/Menu/SubMenu.tsx
|
|
8656
8613
|
var import_react35 = require("react");
|
|
8657
|
-
var
|
|
8614
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8658
8615
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
8659
8616
|
var import_type_guards29 = require("@wistia/type-guards");
|
|
8660
8617
|
|
|
8661
8618
|
// src/components/Menu/MenuItemButton.tsx
|
|
8662
8619
|
var import_react34 = require("react");
|
|
8663
|
-
var
|
|
8620
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8664
8621
|
var import_type_guards28 = require("@wistia/type-guards");
|
|
8665
8622
|
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
8666
|
-
var StyledButton3 = (0,
|
|
8623
|
+
var StyledButton3 = (0, import_styled_components50.default)(Button)`
|
|
8667
8624
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
8668
8625
|
|
|
8669
8626
|
display: flex;
|
|
@@ -8702,31 +8659,35 @@ var StyledButton3 = (0, import_styled_components51.default)(Button)`
|
|
|
8702
8659
|
padding-left: var(--wui-space-04);
|
|
8703
8660
|
}
|
|
8704
8661
|
`;
|
|
8705
|
-
var StyledLeftIconContainer =
|
|
8662
|
+
var StyledLeftIconContainer = import_styled_components50.default.div`
|
|
8706
8663
|
height: var(--menu-item-left-icon-size);
|
|
8707
8664
|
width: var(--menu-item-left-icon-size);
|
|
8708
8665
|
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8666
|
+
&& {
|
|
8667
|
+
svg {
|
|
8668
|
+
height: var(--menu-item-left-icon-size);
|
|
8669
|
+
width: var(--menu-item-left-icon-size);
|
|
8670
|
+
}
|
|
8712
8671
|
}
|
|
8713
8672
|
`;
|
|
8714
|
-
var StyledRightIconContainer =
|
|
8673
|
+
var StyledRightIconContainer = import_styled_components50.default.div`
|
|
8715
8674
|
height: var(--menu-item-right-icon-size);
|
|
8716
8675
|
width: var(--menu-item-right-icon-size);
|
|
8717
8676
|
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8677
|
+
&& {
|
|
8678
|
+
svg {
|
|
8679
|
+
height: var(--menu-item-right-icon-size);
|
|
8680
|
+
width: var(--menu-item-right-icon-size);
|
|
8681
|
+
}
|
|
8721
8682
|
}
|
|
8722
8683
|
`;
|
|
8723
|
-
var StyledLabelAndDescriptionContainer =
|
|
8684
|
+
var StyledLabelAndDescriptionContainer = import_styled_components50.default.div`
|
|
8724
8685
|
display: flex;
|
|
8725
8686
|
flex-direction: column;
|
|
8726
8687
|
gap: var(--menu-label-description-gap);
|
|
8727
8688
|
flex-basis: 100%;
|
|
8728
8689
|
`;
|
|
8729
|
-
var StyledBadgeContainer =
|
|
8690
|
+
var StyledBadgeContainer = import_styled_components50.default.div`
|
|
8730
8691
|
align-self: start;
|
|
8731
8692
|
justify-self: end;
|
|
8732
8693
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -8774,10 +8735,10 @@ var MenuItemButton = (0, import_react34.forwardRef)(({ children, appearance, com
|
|
|
8774
8735
|
MenuItemButton.displayName = "MenuItemButton";
|
|
8775
8736
|
|
|
8776
8737
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
8777
|
-
var
|
|
8738
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8778
8739
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8779
|
-
var StyledMenuItemLabel =
|
|
8780
|
-
var StyledMenuItemDescription = (0,
|
|
8740
|
+
var StyledMenuItemLabel = import_styled_components51.default.span``;
|
|
8741
|
+
var StyledMenuItemDescription = (0, import_styled_components51.default)(Text).attrs({
|
|
8781
8742
|
variant: "body4",
|
|
8782
8743
|
prominence: "secondary"
|
|
8783
8744
|
})``;
|
|
@@ -8790,17 +8751,17 @@ var MenuItemDescription = ({ children }) => {
|
|
|
8790
8751
|
|
|
8791
8752
|
// src/components/Menu/SubMenu.tsx
|
|
8792
8753
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8793
|
-
var SubMenuContent = (0,
|
|
8754
|
+
var SubMenuContent = (0, import_styled_components52.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
8794
8755
|
${menuContentCss}
|
|
8795
8756
|
|
|
8796
8757
|
${mq.smAndDown} {
|
|
8797
8758
|
transform: translateX(-100%) !important;
|
|
8798
8759
|
}
|
|
8799
8760
|
`;
|
|
8800
|
-
var StyledMobileSubMenuItems =
|
|
8761
|
+
var StyledMobileSubMenuItems = import_styled_components52.default.div`
|
|
8801
8762
|
margin-left: var(--wui-space-04);
|
|
8802
8763
|
`;
|
|
8803
|
-
var StyledSubTrigger = (0,
|
|
8764
|
+
var StyledSubTrigger = (0, import_styled_components52.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
8804
8765
|
outline: none;
|
|
8805
8766
|
|
|
8806
8767
|
&[data-state='open'],
|
|
@@ -9010,19 +8971,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
9010
8971
|
|
|
9011
8972
|
// src/components/Modal/Modal.tsx
|
|
9012
8973
|
var import_react40 = require("react");
|
|
9013
|
-
var
|
|
8974
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
9014
8975
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
9015
8976
|
var import_type_guards31 = require("@wistia/type-guards");
|
|
9016
8977
|
|
|
9017
8978
|
// src/components/Modal/ModalHeader.tsx
|
|
9018
|
-
var
|
|
8979
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
9019
8980
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
9020
8981
|
|
|
9021
8982
|
// src/components/Modal/ModalCloseButton.tsx
|
|
9022
|
-
var
|
|
8983
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
9023
8984
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
9024
8985
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
9025
|
-
var CloseButton = (0,
|
|
8986
|
+
var CloseButton = (0, import_styled_components53.default)(import_react_dialog.Close)`
|
|
9026
8987
|
align-self: start;
|
|
9027
8988
|
`;
|
|
9028
8989
|
var ModalCloseButton = () => {
|
|
@@ -9039,7 +9000,7 @@ var ModalCloseButton = () => {
|
|
|
9039
9000
|
|
|
9040
9001
|
// src/components/Modal/ModalHeader.tsx
|
|
9041
9002
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
9042
|
-
var Header =
|
|
9003
|
+
var Header = import_styled_components54.default.header`
|
|
9043
9004
|
display: flex;
|
|
9044
9005
|
order: 1;
|
|
9045
9006
|
gap: var(--wui-space-01);
|
|
@@ -9051,7 +9012,7 @@ var Header = import_styled_components55.default.header`
|
|
|
9051
9012
|
margin-top: 0;
|
|
9052
9013
|
}
|
|
9053
9014
|
`;
|
|
9054
|
-
var Title = (0,
|
|
9015
|
+
var Title = (0, import_styled_components54.default)(import_react_dialog2.Title)`
|
|
9055
9016
|
font-family: var(--wui-typography-heading-2-family);
|
|
9056
9017
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
9057
9018
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -9071,7 +9032,7 @@ var ModalHeader = ({
|
|
|
9071
9032
|
|
|
9072
9033
|
// src/components/Modal/ModalContent.tsx
|
|
9073
9034
|
var import_react38 = require("react");
|
|
9074
|
-
var
|
|
9035
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
9075
9036
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
9076
9037
|
|
|
9077
9038
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -9095,7 +9056,7 @@ var useFocusRestore = () => {
|
|
|
9095
9056
|
|
|
9096
9057
|
// src/components/Modal/ModalContent.tsx
|
|
9097
9058
|
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
9098
|
-
var StyledModalContent = (0,
|
|
9059
|
+
var StyledModalContent = (0, import_styled_components55.default)(import_react_dialog3.Content)`
|
|
9099
9060
|
background-color: var(--wui-color-bg-app);
|
|
9100
9061
|
box-sizing: border-box;
|
|
9101
9062
|
display: flex;
|
|
@@ -9155,7 +9116,7 @@ var ModalContent = (0, import_react38.forwardRef)(
|
|
|
9155
9116
|
|
|
9156
9117
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
9157
9118
|
var import_react39 = require("react");
|
|
9158
|
-
var
|
|
9119
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
9159
9120
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
9160
9121
|
var backdropAnimationDuration = 150;
|
|
9161
9122
|
var alignVerticalMap = {
|
|
@@ -9169,7 +9130,7 @@ var alignHorizontalMap = {
|
|
|
9169
9130
|
center: "center",
|
|
9170
9131
|
right: "end"
|
|
9171
9132
|
};
|
|
9172
|
-
var BackdropComponent =
|
|
9133
|
+
var BackdropComponent = import_styled_components56.default.div`
|
|
9173
9134
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
9174
9135
|
animation-name: backdropShow;
|
|
9175
9136
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -9209,7 +9170,7 @@ Backdrop.displayName = "Backdrop";
|
|
|
9209
9170
|
// src/components/Modal/Modal.tsx
|
|
9210
9171
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
9211
9172
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
9212
|
-
var ModalBody =
|
|
9173
|
+
var ModalBody = import_styled_components57.default.div`
|
|
9213
9174
|
flex-direction: column;
|
|
9214
9175
|
display: flex;
|
|
9215
9176
|
order: 2;
|
|
@@ -9275,15 +9236,15 @@ Modal.displayName = "Modal";
|
|
|
9275
9236
|
|
|
9276
9237
|
// src/components/Radio/Radio.tsx
|
|
9277
9238
|
var import_react41 = require("react");
|
|
9278
|
-
var
|
|
9239
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
9279
9240
|
var import_type_guards32 = require("@wistia/type-guards");
|
|
9280
9241
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
9281
|
-
var StyledLabelWrapper2 =
|
|
9242
|
+
var StyledLabelWrapper2 = import_styled_components58.default.div`
|
|
9282
9243
|
display: flex;
|
|
9283
9244
|
flex-direction: column;
|
|
9284
9245
|
padding-left: var(--wui-space-02);
|
|
9285
9246
|
`;
|
|
9286
|
-
var StyledRadio =
|
|
9247
|
+
var StyledRadio = import_styled_components58.default.input`
|
|
9287
9248
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
9288
9249
|
appearance: none;
|
|
9289
9250
|
margin: 0;
|
|
@@ -9309,11 +9270,11 @@ var StyledRadio = import_styled_components59.default.input`
|
|
|
9309
9270
|
transform: scale(1);
|
|
9310
9271
|
}
|
|
9311
9272
|
`;
|
|
9312
|
-
var disabledStyle2 =
|
|
9273
|
+
var disabledStyle2 = import_styled_components58.css`
|
|
9313
9274
|
cursor: not-allowed;
|
|
9314
9275
|
opacity: 0.5;
|
|
9315
9276
|
`;
|
|
9316
|
-
var errorStyle =
|
|
9277
|
+
var errorStyle = import_styled_components58.css`
|
|
9317
9278
|
/* TODO Lamp to design error state */
|
|
9318
9279
|
&:hover,
|
|
9319
9280
|
&:focus,
|
|
@@ -9321,11 +9282,11 @@ var errorStyle = import_styled_components59.css`
|
|
|
9321
9282
|
border-color: transparent !important;
|
|
9322
9283
|
}
|
|
9323
9284
|
`;
|
|
9324
|
-
var defaultHoverStyle =
|
|
9285
|
+
var defaultHoverStyle = import_styled_components58.css`
|
|
9325
9286
|
/* TODO Lamp to design hover state */
|
|
9326
9287
|
cursor: pointer;
|
|
9327
9288
|
`;
|
|
9328
|
-
var StyledRadioWrapper =
|
|
9289
|
+
var StyledRadioWrapper = import_styled_components58.default.div`
|
|
9329
9290
|
align-items: baseline;
|
|
9330
9291
|
border: 1px solid transparent;
|
|
9331
9292
|
border-radius: 4px;
|
|
@@ -9405,11 +9366,11 @@ Radio.displayName = "Radio";
|
|
|
9405
9366
|
|
|
9406
9367
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
9407
9368
|
var import_react42 = require("react");
|
|
9408
|
-
var
|
|
9369
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
9409
9370
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
9410
9371
|
var import_type_guards33 = require("@wistia/type-guards");
|
|
9411
9372
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
9412
|
-
var segmentedControlStyles =
|
|
9373
|
+
var segmentedControlStyles = import_styled_components59.css`
|
|
9413
9374
|
display: inline-flex;
|
|
9414
9375
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
9415
9376
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9417,7 +9378,7 @@ var segmentedControlStyles = import_styled_components60.css`
|
|
|
9417
9378
|
gap: var(--wui-space-01);
|
|
9418
9379
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
9419
9380
|
`;
|
|
9420
|
-
var StyledSegmentedControl = (0,
|
|
9381
|
+
var StyledSegmentedControl = (0, import_styled_components59.default)(import_react_toggle_group.Root)`
|
|
9421
9382
|
${segmentedControlStyles}
|
|
9422
9383
|
`;
|
|
9423
9384
|
var SegmentedControl = (0, import_react42.forwardRef)(
|
|
@@ -9453,11 +9414,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
9453
9414
|
|
|
9454
9415
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
9455
9416
|
var import_react43 = require("react");
|
|
9456
|
-
var
|
|
9417
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9457
9418
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
9458
9419
|
var import_type_guards34 = require("@wistia/type-guards");
|
|
9459
9420
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9460
|
-
var segmentedControlItemStyles =
|
|
9421
|
+
var segmentedControlItemStyles = import_styled_components60.css`
|
|
9461
9422
|
all: unset; /* ToggleGroupItem is a button element */
|
|
9462
9423
|
align-items: center;
|
|
9463
9424
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9512,7 +9473,7 @@ var segmentedControlItemStyles = import_styled_components61.css`
|
|
|
9512
9473
|
}
|
|
9513
9474
|
}
|
|
9514
9475
|
`;
|
|
9515
|
-
var StyledSegmentedControlItem = (0,
|
|
9476
|
+
var StyledSegmentedControlItem = (0, import_styled_components60.default)(import_react_toggle_group2.Item)`
|
|
9516
9477
|
${segmentedControlItemStyles}
|
|
9517
9478
|
`;
|
|
9518
9479
|
var SegmentedControlItem = (0, import_react43.forwardRef)(
|
|
@@ -9546,9 +9507,9 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
9546
9507
|
// src/components/Select/Select.tsx
|
|
9547
9508
|
var import_react_select = require("@radix-ui/react-select");
|
|
9548
9509
|
var import_react44 = require("react");
|
|
9549
|
-
var
|
|
9510
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9550
9511
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9551
|
-
var StyledTrigger = (0,
|
|
9512
|
+
var StyledTrigger = (0, import_styled_components61.default)(import_react_select.Trigger)`
|
|
9552
9513
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9553
9514
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
9554
9515
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9589,7 +9550,7 @@ var StyledTrigger = (0, import_styled_components62.default)(import_react_select.
|
|
|
9589
9550
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9590
9551
|
}
|
|
9591
9552
|
`;
|
|
9592
|
-
var StyledContent2 = (0,
|
|
9553
|
+
var StyledContent2 = (0, import_styled_components61.default)(import_react_select.Content)`
|
|
9593
9554
|
--wui-select-content-border: var(--wui-color-border);
|
|
9594
9555
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9595
9556
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -9655,9 +9616,9 @@ Select.displayName = "Select";
|
|
|
9655
9616
|
// src/components/Select/SelectOption.tsx
|
|
9656
9617
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9657
9618
|
var import_react45 = require("react");
|
|
9658
|
-
var
|
|
9619
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9659
9620
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9660
|
-
var StyledItem = (0,
|
|
9621
|
+
var StyledItem = (0, import_styled_components62.default)(import_react_select2.Item)`
|
|
9661
9622
|
${variantStyleMap2.body3};
|
|
9662
9623
|
display: flex;
|
|
9663
9624
|
padding: var(--wui-select-option-padding);
|
|
@@ -9680,7 +9641,7 @@ var StyledItem = (0, import_styled_components63.default)(import_react_select2.It
|
|
|
9680
9641
|
background-color: transparent;
|
|
9681
9642
|
}
|
|
9682
9643
|
`;
|
|
9683
|
-
var StyledIconContainer =
|
|
9644
|
+
var StyledIconContainer = import_styled_components62.default.span`
|
|
9684
9645
|
width: 12px;
|
|
9685
9646
|
`;
|
|
9686
9647
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
@@ -9708,9 +9669,9 @@ SelectOption.displayName = "Option";
|
|
|
9708
9669
|
|
|
9709
9670
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9710
9671
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9711
|
-
var
|
|
9672
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9712
9673
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9713
|
-
var StyledLabel4 = (0,
|
|
9674
|
+
var StyledLabel4 = (0, import_styled_components63.default)(import_react_select3.Label)`
|
|
9714
9675
|
padding: var(--wui-select-option-padding);
|
|
9715
9676
|
`;
|
|
9716
9677
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -9733,10 +9694,10 @@ var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
|
9733
9694
|
var import_type_guards36 = require("@wistia/type-guards");
|
|
9734
9695
|
|
|
9735
9696
|
// src/components/Tabs/TabPanel.tsx
|
|
9736
|
-
var
|
|
9697
|
+
var import_styled_components64 = __toESM(require("styled-components"));
|
|
9737
9698
|
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
9738
9699
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9739
|
-
var StyledTabPanel = (0,
|
|
9700
|
+
var StyledTabPanel = (0, import_styled_components64.default)(import_react_tabs.Content)`
|
|
9740
9701
|
display: flex;
|
|
9741
9702
|
flex-direction: column;
|
|
9742
9703
|
`;
|
|
@@ -9753,10 +9714,10 @@ var TabPanel = ({ children, value, ...props }) => {
|
|
|
9753
9714
|
TabPanel.displayName = "TabPanel";
|
|
9754
9715
|
|
|
9755
9716
|
// src/components/Tabs/TabList.tsx
|
|
9756
|
-
var
|
|
9717
|
+
var import_styled_components65 = __toESM(require("styled-components"));
|
|
9757
9718
|
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
9758
9719
|
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
9759
|
-
var StyledTabList = (0,
|
|
9720
|
+
var StyledTabList = (0, import_styled_components65.default)(import_react_tabs2.List)`
|
|
9760
9721
|
${segmentedControlStyles}
|
|
9761
9722
|
|
|
9762
9723
|
margin-bottom: var(--wui-space-04);
|
|
@@ -9781,11 +9742,11 @@ TabList.displayName = "TabList";
|
|
|
9781
9742
|
|
|
9782
9743
|
// src/components/Tabs/TabItem.tsx
|
|
9783
9744
|
var import_react46 = require("react");
|
|
9784
|
-
var
|
|
9745
|
+
var import_styled_components66 = __toESM(require("styled-components"));
|
|
9785
9746
|
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
9786
9747
|
var import_type_guards35 = require("@wistia/type-guards");
|
|
9787
9748
|
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
9788
|
-
var StyledTabItem = (0,
|
|
9749
|
+
var StyledTabItem = (0, import_styled_components66.default)(import_react_tabs3.Trigger)`
|
|
9789
9750
|
${segmentedControlItemStyles}
|
|
9790
9751
|
|
|
9791
9752
|
&[data-state='active'] {
|
|
@@ -9933,10 +9894,10 @@ Tab.displayName = "Tab";
|
|
|
9933
9894
|
|
|
9934
9895
|
// src/components/Tag/Tag.tsx
|
|
9935
9896
|
var import_react50 = require("react");
|
|
9936
|
-
var
|
|
9897
|
+
var import_styled_components67 = __toESM(require("styled-components"));
|
|
9937
9898
|
var import_type_guards37 = require("@wistia/type-guards");
|
|
9938
9899
|
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
9939
|
-
var TagLabel =
|
|
9900
|
+
var TagLabel = import_styled_components67.default.a`
|
|
9940
9901
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9941
9902
|
font-size: var(--wui-typography-label-4-size);
|
|
9942
9903
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -9964,14 +9925,14 @@ var TagLabel = import_styled_components68.default.a`
|
|
|
9964
9925
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9965
9926
|
}
|
|
9966
9927
|
`;
|
|
9967
|
-
var TagDivider =
|
|
9928
|
+
var TagDivider = import_styled_components67.default.div`
|
|
9968
9929
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9969
9930
|
border-left: 1px solid var(--wui-color-border);
|
|
9970
9931
|
display: flex;
|
|
9971
9932
|
height: 14px;
|
|
9972
9933
|
width: 1px;
|
|
9973
9934
|
`;
|
|
9974
|
-
var StyledRemoveButton =
|
|
9935
|
+
var StyledRemoveButton = import_styled_components67.default.button`
|
|
9975
9936
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9976
9937
|
all: unset;
|
|
9977
9938
|
cursor: pointer;
|
|
@@ -9999,7 +9960,7 @@ var StyledRemoveButton = import_styled_components68.default.button`
|
|
|
9999
9960
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
10000
9961
|
}
|
|
10001
9962
|
`;
|
|
10002
|
-
var StyledTag =
|
|
9963
|
+
var StyledTag = import_styled_components67.default.div`
|
|
10003
9964
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10004
9965
|
align-items: center;
|
|
10005
9966
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -10076,7 +10037,7 @@ var Tag = (0, import_react50.forwardRef)(
|
|
|
10076
10037
|
Tag.displayName = "Tag";
|
|
10077
10038
|
|
|
10078
10039
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
10079
|
-
var
|
|
10040
|
+
var import_styled_components68 = __toESM(require("styled-components"));
|
|
10080
10041
|
var import_type_guards38 = require("@wistia/type-guards");
|
|
10081
10042
|
var import_jsx_runtime219 = require("react/jsx-runtime");
|
|
10082
10043
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -10118,7 +10079,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
10118
10079
|
}
|
|
10119
10080
|
return "0 0 144 31.47";
|
|
10120
10081
|
};
|
|
10121
|
-
var WistiaLogoComponent =
|
|
10082
|
+
var WistiaLogoComponent = import_styled_components68.default.svg`
|
|
10122
10083
|
height: ${({ height }) => `${height}px`};
|
|
10123
10084
|
|
|
10124
10085
|
/* ensure it will always fit on mobile */
|