@wistia/ui 0.5.4-beta.fb7978a6.5ab20f9 → 0.5.4
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 +219 -263
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +81 -125
- 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
|
|
3
|
+
* @license @wistia/ui v0.5.4
|
|
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,45 +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
|
-
::-webkit-scrollbar {
|
|
1466
|
-
width: 12px;
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
::-webkit-scrollbar-track {
|
|
1470
|
-
background: transparent;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
::-webkit-scrollbar-thumb {
|
|
1474
|
-
background: var(--wui-color-scrollbar-thumb);
|
|
1475
|
-
border-radius: var(--wui-border-radius-rounded);
|
|
1476
|
-
border: 3px solid transparent;
|
|
1477
|
-
background-clip: padding-box;
|
|
1478
|
-
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
::-webkit-scrollbar-thumb:hover {
|
|
1482
|
-
background: var(--wui-color-scrollbar-thumb-hover);
|
|
1483
|
-
border-radius: var(--wui-border-radius-rounded);
|
|
1484
|
-
border: 3px solid transparent;
|
|
1485
|
-
background-clip: padding-box;
|
|
1486
|
-
}
|
|
1487
|
-
`;
|
|
1488
|
-
|
|
1489
1452
|
// src/css/GlobalStyle.tsx
|
|
1490
|
-
var GlobalStyle =
|
|
1453
|
+
var GlobalStyle = import_styled_components12.createGlobalStyle`
|
|
1491
1454
|
${resetCss}
|
|
1492
1455
|
${globalStyleAdjustmentsCss}
|
|
1493
1456
|
${designTokens}
|
|
1494
|
-
${scrollbarCss}
|
|
1495
1457
|
`;
|
|
1496
1458
|
|
|
1497
1459
|
// src/providers/AriaLiveProvider/AriaLiveProvider.tsx
|
|
@@ -2204,14 +2166,14 @@ var import_sonner2 = require("sonner");
|
|
|
2204
2166
|
|
|
2205
2167
|
// src/private/components/Toast/Toast.tsx
|
|
2206
2168
|
var import_react8 = require("react");
|
|
2207
|
-
var
|
|
2169
|
+
var import_styled_components15 = __toESM(require("styled-components"));
|
|
2208
2170
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
2209
2171
|
|
|
2210
2172
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
2211
2173
|
var import_type_guards8 = require("@wistia/type-guards");
|
|
2212
|
-
var
|
|
2174
|
+
var import_styled_components13 = __toESM(require("styled-components"));
|
|
2213
2175
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2214
|
-
var ellipsisStyle =
|
|
2176
|
+
var ellipsisStyle = import_styled_components13.css`
|
|
2215
2177
|
overflow: hidden;
|
|
2216
2178
|
text-overflow: ellipsis;
|
|
2217
2179
|
white-space: nowrap;
|
|
@@ -2234,14 +2196,14 @@ var ellipsisStyle = import_styled_components14.css`
|
|
|
2234
2196
|
}
|
|
2235
2197
|
}
|
|
2236
2198
|
`;
|
|
2237
|
-
var ellipsisFlexParentStyle =
|
|
2199
|
+
var ellipsisFlexParentStyle = import_styled_components13.css`
|
|
2238
2200
|
min-width: 0;
|
|
2239
2201
|
`;
|
|
2240
|
-
var EllipsisComponent =
|
|
2202
|
+
var EllipsisComponent = import_styled_components13.default.div`
|
|
2241
2203
|
${ellipsisStyle};
|
|
2242
2204
|
${({ $lines }) => {
|
|
2243
2205
|
if ((0, import_type_guards8.isNotNil)($lines)) {
|
|
2244
|
-
return
|
|
2206
|
+
return import_styled_components13.css`
|
|
2245
2207
|
-webkit-box-orient: vertical;
|
|
2246
2208
|
-webkit-line-clamp: ${$lines};
|
|
2247
2209
|
display: -webkit-box;
|
|
@@ -2262,7 +2224,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
2262
2224
|
Ellipsis.displayName = "Ellipsis";
|
|
2263
2225
|
|
|
2264
2226
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
2265
|
-
var
|
|
2227
|
+
var import_styled_components14 = require("styled-components");
|
|
2266
2228
|
var colorSchemeSchema = [
|
|
2267
2229
|
{ token: "bg-surface", step: "2" },
|
|
2268
2230
|
{ token: "bg-surface-hover", step: "3" },
|
|
@@ -2289,7 +2251,7 @@ var colorSchemeSchema = [
|
|
|
2289
2251
|
{ token: "icon-on-fill", step: "contrast" },
|
|
2290
2252
|
{ token: "focus-ring", step: "9" }
|
|
2291
2253
|
];
|
|
2292
|
-
var defaultScheme =
|
|
2254
|
+
var defaultScheme = import_styled_components14.css`
|
|
2293
2255
|
--wui-color-bg-surface: var(--wui-gray-1);
|
|
2294
2256
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
2295
2257
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -2314,10 +2276,8 @@ var defaultScheme = import_styled_components15.css`
|
|
|
2314
2276
|
--wui-color-icon: var(--wui-gray-11);
|
|
2315
2277
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
2316
2278
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
2317
|
-
--wui-color-scrollbar-thumb: var(--wui-gray-alpha-5);
|
|
2318
|
-
--wui-color-scrollbar-thumb-hover: var(--wui-gray-alpha-7);
|
|
2319
2279
|
`;
|
|
2320
|
-
var navScheme =
|
|
2280
|
+
var navScheme = import_styled_components14.css`
|
|
2321
2281
|
--wui-color-bg-fill-active: var(--wui-blue-5);
|
|
2322
2282
|
--wui-color-bg-fill-hover: var(--wui-blue-4);
|
|
2323
2283
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -2368,25 +2328,21 @@ var getColorScheme = (colorScheme) => {
|
|
|
2368
2328
|
if (colorScheme === "default") {
|
|
2369
2329
|
return defaultScheme;
|
|
2370
2330
|
}
|
|
2371
|
-
return
|
|
2331
|
+
return import_styled_components14.css`
|
|
2372
2332
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
2373
2333
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
2374
2334
|
}).join("")}
|
|
2375
|
-
--wui-color-scrollbar-thumb: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-alpha-8);
|
|
2376
|
-
--wui-color-scrollbar-thumb-hover: var(
|
|
2377
|
-
--wui-${colorScheme === "info" ? "blue" : colorScheme}-alpha-9
|
|
2378
|
-
);
|
|
2379
2335
|
`;
|
|
2380
2336
|
};
|
|
2381
2337
|
|
|
2382
2338
|
// src/private/components/Toast/Toast.tsx
|
|
2383
2339
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
2384
|
-
var Message = (0,
|
|
2340
|
+
var Message = (0, import_styled_components15.default)(Ellipsis)`
|
|
2385
2341
|
line-height: var(--wui-typography-label-3-line-height);
|
|
2386
2342
|
font-size: var(--wui-typography-label-3-size);
|
|
2387
2343
|
font-weight: var(--wui-typography-label-3-weight);
|
|
2388
2344
|
`;
|
|
2389
|
-
var MessageWrapper =
|
|
2345
|
+
var MessageWrapper = import_styled_components15.default.div`
|
|
2390
2346
|
display: flex;
|
|
2391
2347
|
flex-grow: 1;
|
|
2392
2348
|
flex-shrink: 1;
|
|
@@ -2399,13 +2355,13 @@ var MessageWrapper = import_styled_components16.default.div`
|
|
|
2399
2355
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
2400
2356
|
}
|
|
2401
2357
|
`;
|
|
2402
|
-
var ActionWrapper =
|
|
2358
|
+
var ActionWrapper = import_styled_components15.default.div`
|
|
2403
2359
|
flex-grow: 0;
|
|
2404
2360
|
flex-shrink: 0;
|
|
2405
2361
|
flex-basis: auto;
|
|
2406
2362
|
margin-right: var(--wui-space-03);
|
|
2407
2363
|
`;
|
|
2408
|
-
var StyledToast =
|
|
2364
|
+
var StyledToast = import_styled_components15.default.div`
|
|
2409
2365
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
2410
2366
|
display: flex;
|
|
2411
2367
|
align-items: center;
|
|
@@ -2488,16 +2444,16 @@ var useToast = () => {
|
|
|
2488
2444
|
|
|
2489
2445
|
// src/components/ActionButton/ActionButton.tsx
|
|
2490
2446
|
var import_react13 = require("react");
|
|
2491
|
-
var
|
|
2447
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
2492
2448
|
|
|
2493
2449
|
// src/components/Button/Button.tsx
|
|
2494
2450
|
var import_react12 = require("react");
|
|
2495
|
-
var
|
|
2451
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2496
2452
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
2497
2453
|
|
|
2498
2454
|
// src/css/buttonResetCss.tsx
|
|
2499
|
-
var
|
|
2500
|
-
var buttonResetCss =
|
|
2455
|
+
var import_styled_components16 = require("styled-components");
|
|
2456
|
+
var buttonResetCss = import_styled_components16.css`
|
|
2501
2457
|
align-items: center;
|
|
2502
2458
|
background-color: transparent;
|
|
2503
2459
|
background-image: none;
|
|
@@ -2542,8 +2498,8 @@ var buttonResetCss = import_styled_components17.css`
|
|
|
2542
2498
|
`;
|
|
2543
2499
|
|
|
2544
2500
|
// src/components/Button/buttonStyles.tsx
|
|
2545
|
-
var
|
|
2546
|
-
var buttonSmallStyles =
|
|
2501
|
+
var import_styled_components17 = require("styled-components");
|
|
2502
|
+
var buttonSmallStyles = import_styled_components17.css`
|
|
2547
2503
|
--button-padding-vertical: var(--wui-space-01);
|
|
2548
2504
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2549
2505
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2554,7 +2510,7 @@ var buttonSmallStyles = import_styled_components18.css`
|
|
|
2554
2510
|
--button-icon-size: 12px;
|
|
2555
2511
|
--button-label-gap: 4px;
|
|
2556
2512
|
`;
|
|
2557
|
-
var buttonMediumStyles =
|
|
2513
|
+
var buttonMediumStyles = import_styled_components17.css`
|
|
2558
2514
|
--button-padding-vertical: var(--wui-space-02);
|
|
2559
2515
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2560
2516
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2565,7 +2521,7 @@ var buttonMediumStyles = import_styled_components18.css`
|
|
|
2565
2521
|
--button-icon-size: 16px;
|
|
2566
2522
|
--button-label-gap: 6px;
|
|
2567
2523
|
`;
|
|
2568
|
-
var buttonLargeStyles =
|
|
2524
|
+
var buttonLargeStyles = import_styled_components17.css`
|
|
2569
2525
|
--button-padding-vertical: var(--wui-space-02);
|
|
2570
2526
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2571
2527
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2576,7 +2532,7 @@ var buttonLargeStyles = import_styled_components18.css`
|
|
|
2576
2532
|
--button-icon-size: 24px;
|
|
2577
2533
|
--button-label-gap: 8px;
|
|
2578
2534
|
`;
|
|
2579
|
-
var buttonExtraLargeStyles =
|
|
2535
|
+
var buttonExtraLargeStyles = import_styled_components17.css`
|
|
2580
2536
|
--button-padding-vertical: var(--wui-space-03);
|
|
2581
2537
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2582
2538
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2587,34 +2543,34 @@ var buttonExtraLargeStyles = import_styled_components18.css`
|
|
|
2587
2543
|
--button-icon-size: 24px;
|
|
2588
2544
|
--button-label-gap: 8px;
|
|
2589
2545
|
`;
|
|
2590
|
-
var ghostButtonVariant =
|
|
2546
|
+
var ghostButtonVariant = import_styled_components17.css`
|
|
2591
2547
|
--button-color-bg: transparent;
|
|
2592
2548
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2593
2549
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2594
2550
|
--button-color-text: var(--wui-color-text-button);
|
|
2595
2551
|
--button-color-icon: var(--wui-color-icon);
|
|
2596
2552
|
`;
|
|
2597
|
-
var outlineButtonVariant =
|
|
2553
|
+
var outlineButtonVariant = import_styled_components17.css`
|
|
2598
2554
|
${ghostButtonVariant};
|
|
2599
2555
|
--button-color-border: var(--wui-color-border);
|
|
2600
2556
|
|
|
2601
2557
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2602
2558
|
`;
|
|
2603
|
-
var softButtonVariant =
|
|
2559
|
+
var softButtonVariant = import_styled_components17.css`
|
|
2604
2560
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2605
2561
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2606
2562
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2607
2563
|
--button-color-text: var(--wui-color-text-button);
|
|
2608
2564
|
--button-color-icon: var(--wui-color-icon);
|
|
2609
2565
|
`;
|
|
2610
|
-
var solidButtonVariant =
|
|
2566
|
+
var solidButtonVariant = import_styled_components17.css`
|
|
2611
2567
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2612
2568
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2613
2569
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2614
2570
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2615
2571
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2616
2572
|
`;
|
|
2617
|
-
var disabledButtonVariant =
|
|
2573
|
+
var disabledButtonVariant = import_styled_components17.css`
|
|
2618
2574
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2619
2575
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2620
2576
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2622,7 +2578,7 @@ var disabledButtonVariant = import_styled_components18.css`
|
|
|
2622
2578
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2623
2579
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2624
2580
|
`;
|
|
2625
|
-
var pressedButtonVariant =
|
|
2581
|
+
var pressedButtonVariant = import_styled_components17.css`
|
|
2626
2582
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2627
2583
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2628
2584
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2630,7 +2586,7 @@ var pressedButtonVariant = import_styled_components18.css`
|
|
|
2630
2586
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2631
2587
|
--button-color-border: var(--wui-color-border-selected);
|
|
2632
2588
|
`;
|
|
2633
|
-
var buttonBaseStyles =
|
|
2589
|
+
var buttonBaseStyles = import_styled_components17.css`
|
|
2634
2590
|
border-radius: var(--wui-border-radius-rounded);
|
|
2635
2591
|
font-family: var(--button-typography-family);
|
|
2636
2592
|
font-size: var(--button-typography-size);
|
|
@@ -2698,7 +2654,7 @@ var buttonSizeStyles = {
|
|
|
2698
2654
|
|
|
2699
2655
|
// src/components/Icon/Icon.tsx
|
|
2700
2656
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
2701
|
-
var
|
|
2657
|
+
var import_styled_components18 = __toESM(require("styled-components"));
|
|
2702
2658
|
|
|
2703
2659
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2704
2660
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -5883,7 +5839,7 @@ var iconSizeMap = {
|
|
|
5883
5839
|
xl: "32",
|
|
5884
5840
|
xxl: "48"
|
|
5885
5841
|
};
|
|
5886
|
-
var StyledIcon =
|
|
5842
|
+
var StyledIcon = import_styled_components18.default.svg`
|
|
5887
5843
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
5888
5844
|
`;
|
|
5889
5845
|
var Icon = ({
|
|
@@ -5934,7 +5890,7 @@ Icon.displayName = "Icon";
|
|
|
5934
5890
|
// src/components/Link/Link.tsx
|
|
5935
5891
|
var import_react11 = require("react");
|
|
5936
5892
|
var import_type_guards12 = require("@wistia/type-guards");
|
|
5937
|
-
var
|
|
5893
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
5938
5894
|
var import_react_router_dom = require("react-router-dom");
|
|
5939
5895
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5940
5896
|
var generateHref = (href, type, disabled) => {
|
|
@@ -5952,7 +5908,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
5952
5908
|
};
|
|
5953
5909
|
var isButton = (props) => (0, import_type_guards12.isUndefined)(props.href);
|
|
5954
5910
|
var isLink = (props) => (0, import_type_guards12.isNotUndefined)(props.href);
|
|
5955
|
-
var StyledLink =
|
|
5911
|
+
var StyledLink = import_styled_components19.default.a`
|
|
5956
5912
|
--link-icon-size: 14px;
|
|
5957
5913
|
|
|
5958
5914
|
${({ href }) => (0, import_type_guards12.isNil)(href) && buttonResetCss};
|
|
@@ -6063,7 +6019,7 @@ Link.displayName = "Link";
|
|
|
6063
6019
|
// src/components/Button/Button.tsx
|
|
6064
6020
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
6065
6021
|
var isLink2 = (props) => (0, import_type_guards13.isNotUndefined)(props.href);
|
|
6066
|
-
var StyledButton =
|
|
6022
|
+
var StyledButton = import_styled_components20.default.button`
|
|
6067
6023
|
${buttonResetCss}
|
|
6068
6024
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
6069
6025
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
@@ -6073,7 +6029,7 @@ var StyledButton = import_styled_components21.default.button`
|
|
|
6073
6029
|
position: relative;
|
|
6074
6030
|
text-align: center;
|
|
6075
6031
|
`;
|
|
6076
|
-
var StyledButtonContent =
|
|
6032
|
+
var StyledButtonContent = import_styled_components20.default.div`
|
|
6077
6033
|
align-items: center;
|
|
6078
6034
|
display: inline-flex;
|
|
6079
6035
|
flex-grow: 1;
|
|
@@ -6085,10 +6041,10 @@ var StyledButtonContent = import_styled_components21.default.div`
|
|
|
6085
6041
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
6086
6042
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
6087
6043
|
`;
|
|
6088
|
-
var StyledButtonContentLabel =
|
|
6044
|
+
var StyledButtonContentLabel = import_styled_components20.default.span`
|
|
6089
6045
|
flex: 1;
|
|
6090
6046
|
`;
|
|
6091
|
-
var StyledButtonLoading =
|
|
6047
|
+
var StyledButtonLoading = import_styled_components20.default.div`
|
|
6092
6048
|
position: absolute;
|
|
6093
6049
|
display: flex;
|
|
6094
6050
|
`;
|
|
@@ -6201,7 +6157,7 @@ Button.displayName = "Button";
|
|
|
6201
6157
|
|
|
6202
6158
|
// src/components/ActionButton/ActionButton.tsx
|
|
6203
6159
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
6204
|
-
var StyledActionButton = (0,
|
|
6160
|
+
var StyledActionButton = (0, import_styled_components21.default)(Button)`
|
|
6205
6161
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6206
6162
|
display: grid;
|
|
6207
6163
|
grid-template-columns: 24px 1fr;
|
|
@@ -6242,7 +6198,7 @@ var StyledActionButton = (0, import_styled_components22.default)(Button)`
|
|
|
6242
6198
|
}
|
|
6243
6199
|
}
|
|
6244
6200
|
`;
|
|
6245
|
-
var StyledMainIcon =
|
|
6201
|
+
var StyledMainIcon = import_styled_components21.default.div`
|
|
6246
6202
|
grid-column: 1;
|
|
6247
6203
|
grid-row: 1;
|
|
6248
6204
|
width: 24px;
|
|
@@ -6254,7 +6210,7 @@ var StyledMainIcon = import_styled_components22.default.div`
|
|
|
6254
6210
|
height: 24px;
|
|
6255
6211
|
}
|
|
6256
6212
|
`;
|
|
6257
|
-
var StyledSecondaryIcon =
|
|
6213
|
+
var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
6258
6214
|
grid-column: 2;
|
|
6259
6215
|
grid-row: 1;
|
|
6260
6216
|
width: 100%;
|
|
@@ -6262,7 +6218,7 @@ var StyledSecondaryIcon = import_styled_components22.default.div`
|
|
|
6262
6218
|
justify-content: flex-end;
|
|
6263
6219
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
6264
6220
|
|
|
6265
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
6221
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components21.css`
|
|
6266
6222
|
will-change: transform;
|
|
6267
6223
|
opacity: 0;
|
|
6268
6224
|
transform: translateX(-16px);
|
|
@@ -6278,7 +6234,7 @@ var StyledSecondaryIcon = import_styled_components22.default.div`
|
|
|
6278
6234
|
height: 24px;
|
|
6279
6235
|
}
|
|
6280
6236
|
`;
|
|
6281
|
-
var StyledLabel =
|
|
6237
|
+
var StyledLabel = import_styled_components21.default.span`
|
|
6282
6238
|
font-family: var(--wui-typography-heading-4-family);
|
|
6283
6239
|
font-size: var(--wui-typography-heading-4-size);
|
|
6284
6240
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -6334,10 +6290,10 @@ ActionButton.displayName = "ActionButton";
|
|
|
6334
6290
|
// src/components/Avatar/Avatar.tsx
|
|
6335
6291
|
var import_react14 = require("react");
|
|
6336
6292
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6337
|
-
var
|
|
6293
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
6338
6294
|
|
|
6339
6295
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
6340
|
-
var
|
|
6296
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
6341
6297
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
6342
6298
|
var colorSchemeOptions = [
|
|
6343
6299
|
"inherit",
|
|
@@ -6356,7 +6312,7 @@ var colorSchemeOptions = [
|
|
|
6356
6312
|
"vendor-marketo",
|
|
6357
6313
|
"vendor-pardot"
|
|
6358
6314
|
];
|
|
6359
|
-
var StyledColorSchemeWrapper =
|
|
6315
|
+
var StyledColorSchemeWrapper = import_styled_components22.default.div`
|
|
6360
6316
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
6361
6317
|
`;
|
|
6362
6318
|
var ColorSchemeWrapper = ({
|
|
@@ -6391,7 +6347,7 @@ var formatNameForDisplay = (name) => {
|
|
|
6391
6347
|
|
|
6392
6348
|
// src/components/Avatar/Avatar.tsx
|
|
6393
6349
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
6394
|
-
var AvatarImage =
|
|
6350
|
+
var AvatarImage = import_styled_components23.default.img`
|
|
6395
6351
|
align-items: center;
|
|
6396
6352
|
background-color: white;
|
|
6397
6353
|
border-radius: 50%;
|
|
@@ -6419,7 +6375,7 @@ var avatarSizeMap = {
|
|
|
6419
6375
|
lg: 32
|
|
6420
6376
|
};
|
|
6421
6377
|
var fontSizeScaleMultiplier = 0.55;
|
|
6422
|
-
var InitialsContainer =
|
|
6378
|
+
var InitialsContainer = import_styled_components23.default.div`
|
|
6423
6379
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6424
6380
|
align-items: center;
|
|
6425
6381
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -6441,7 +6397,7 @@ var InitialsContainer = import_styled_components24.default.div`
|
|
|
6441
6397
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
6442
6398
|
}
|
|
6443
6399
|
`;
|
|
6444
|
-
var AvatarWrapper =
|
|
6400
|
+
var AvatarWrapper = import_styled_components23.default.div`
|
|
6445
6401
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
6446
6402
|
`;
|
|
6447
6403
|
var chooseColorScheme = (name) => {
|
|
@@ -6508,10 +6464,10 @@ Avatar.displayName = "Avatar";
|
|
|
6508
6464
|
|
|
6509
6465
|
// src/components/Badge/Badge.tsx
|
|
6510
6466
|
var import_react15 = require("react");
|
|
6511
|
-
var
|
|
6467
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6512
6468
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
6513
6469
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
6514
|
-
var StyledBadge =
|
|
6470
|
+
var StyledBadge = import_styled_components24.default.div`
|
|
6515
6471
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6516
6472
|
align-items: center;
|
|
6517
6473
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -6553,7 +6509,7 @@ Badge.displayName = "Badge";
|
|
|
6553
6509
|
|
|
6554
6510
|
// src/components/Box/Box.tsx
|
|
6555
6511
|
var import_react16 = require("react");
|
|
6556
|
-
var
|
|
6512
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
6557
6513
|
var import_type_guards17 = require("@wistia/type-guards");
|
|
6558
6514
|
|
|
6559
6515
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -6605,7 +6561,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6605
6561
|
}
|
|
6606
6562
|
return void 0;
|
|
6607
6563
|
};
|
|
6608
|
-
var StyledBoxComponent =
|
|
6564
|
+
var StyledBoxComponent = import_styled_components25.default.div`
|
|
6609
6565
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6610
6566
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6611
6567
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6692,9 +6648,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
6692
6648
|
|
|
6693
6649
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6694
6650
|
var import_react17 = require("react");
|
|
6695
|
-
var
|
|
6651
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
6696
6652
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
6697
|
-
var StyledBreadcrumbs =
|
|
6653
|
+
var StyledBreadcrumbs = import_styled_components26.default.nav`
|
|
6698
6654
|
display: flex;
|
|
6699
6655
|
align-items: center;
|
|
6700
6656
|
gap: var(--wui-space-01);
|
|
@@ -6739,9 +6695,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
6739
6695
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6740
6696
|
|
|
6741
6697
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6742
|
-
var
|
|
6698
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6743
6699
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6744
|
-
var BreadcrumbContent =
|
|
6700
|
+
var BreadcrumbContent = import_styled_components27.default.span`
|
|
6745
6701
|
overflow: hidden;
|
|
6746
6702
|
white-space: nowrap;
|
|
6747
6703
|
display: block;
|
|
@@ -6773,7 +6729,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6773
6729
|
};
|
|
6774
6730
|
|
|
6775
6731
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6776
|
-
var
|
|
6732
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6777
6733
|
var import_type_guards18 = require("@wistia/type-guards");
|
|
6778
6734
|
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6779
6735
|
var getAlignment = (align) => {
|
|
@@ -6788,7 +6744,7 @@ var getAlignment = (align) => {
|
|
|
6788
6744
|
}
|
|
6789
6745
|
return "flex-start";
|
|
6790
6746
|
};
|
|
6791
|
-
var ButtonGroupComponent =
|
|
6747
|
+
var ButtonGroupComponent = import_styled_components28.default.div`
|
|
6792
6748
|
display: flex;
|
|
6793
6749
|
|
|
6794
6750
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6830,9 +6786,9 @@ var ButtonGroup = ({
|
|
|
6830
6786
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6831
6787
|
|
|
6832
6788
|
// src/components/Card/Card.tsx
|
|
6833
|
-
var
|
|
6789
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6834
6790
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6835
|
-
var StyledCard = (0,
|
|
6791
|
+
var StyledCard = (0, import_styled_components29.default)(Box)`
|
|
6836
6792
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6837
6793
|
box-sizing: border-box;
|
|
6838
6794
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6883,53 +6839,53 @@ Card.displayName = "Card";
|
|
|
6883
6839
|
// src/components/Checkbox/Checkbox.tsx
|
|
6884
6840
|
var import_react19 = require("react");
|
|
6885
6841
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
6886
|
-
var
|
|
6842
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
6887
6843
|
var import_type_guards20 = require("@wistia/type-guards");
|
|
6888
6844
|
|
|
6889
6845
|
// src/components/Label/Label.tsx
|
|
6890
|
-
var
|
|
6846
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
6891
6847
|
|
|
6892
6848
|
// src/components/Heading/Heading.tsx
|
|
6893
6849
|
var import_react18 = require("react");
|
|
6894
|
-
var
|
|
6850
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6895
6851
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6896
|
-
var heroStyle =
|
|
6852
|
+
var heroStyle = import_styled_components30.css`
|
|
6897
6853
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6898
6854
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
6899
6855
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
6900
6856
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
6901
6857
|
`;
|
|
6902
|
-
var heading1TextStyle =
|
|
6858
|
+
var heading1TextStyle = import_styled_components30.css`
|
|
6903
6859
|
--font-family: var(--wui-typography-heading-1-family);
|
|
6904
6860
|
--font-size: var(--wui-typography-heading-1-size);
|
|
6905
6861
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
6906
6862
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
6907
6863
|
`;
|
|
6908
|
-
var heading2TextStyle =
|
|
6864
|
+
var heading2TextStyle = import_styled_components30.css`
|
|
6909
6865
|
--font-family: var(--wui-typography-heading-2-family);
|
|
6910
6866
|
--font-size: var(--wui-typography-heading-2-size);
|
|
6911
6867
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
6912
6868
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
6913
6869
|
`;
|
|
6914
|
-
var heading3TextStyle =
|
|
6870
|
+
var heading3TextStyle = import_styled_components30.css`
|
|
6915
6871
|
--font-family: var(--wui-typography-heading-3-family);
|
|
6916
6872
|
--font-size: var(--wui-typography-heading-3-size);
|
|
6917
6873
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
6918
6874
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
6919
6875
|
`;
|
|
6920
|
-
var heading4TextStyle =
|
|
6876
|
+
var heading4TextStyle = import_styled_components30.css`
|
|
6921
6877
|
--font-family: var(--wui-typography-heading-4-family);
|
|
6922
6878
|
--font-size: var(--wui-typography-heading-4-size);
|
|
6923
6879
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
6924
6880
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
6925
6881
|
`;
|
|
6926
|
-
var heading5TextStyle =
|
|
6882
|
+
var heading5TextStyle = import_styled_components30.css`
|
|
6927
6883
|
--font-family: var(--wui-typography-heading-5-family);
|
|
6928
6884
|
--font-size: var(--wui-typography-heading-5-size);
|
|
6929
6885
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
6930
6886
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
6931
6887
|
`;
|
|
6932
|
-
var heading6TextStyle =
|
|
6888
|
+
var heading6TextStyle = import_styled_components30.css`
|
|
6933
6889
|
--font-family: var(--wui-typography-heading-6-family);
|
|
6934
6890
|
--font-size: var(--wui-typography-heading-6-size);
|
|
6935
6891
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -6945,7 +6901,7 @@ var variantStyleMap = {
|
|
|
6945
6901
|
heading6: heading6TextStyle
|
|
6946
6902
|
};
|
|
6947
6903
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6948
|
-
var StyledHeading =
|
|
6904
|
+
var StyledHeading = import_styled_components30.default.div`
|
|
6949
6905
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6950
6906
|
font-family: var(--font-family);
|
|
6951
6907
|
font-size: var(--font-size);
|
|
@@ -6954,16 +6910,16 @@ var StyledHeading = import_styled_components31.default.div`
|
|
|
6954
6910
|
color: var(--wui-color-text);
|
|
6955
6911
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
6956
6912
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6957
|
-
${({ $inline }) => $inline &&
|
|
6913
|
+
${({ $inline }) => $inline && import_styled_components30.css`
|
|
6958
6914
|
display: inline-block;
|
|
6959
6915
|
`}
|
|
6960
|
-
${({ $disabled }) => $disabled &&
|
|
6916
|
+
${({ $disabled }) => $disabled && import_styled_components30.css`
|
|
6961
6917
|
color: var(--wui-color-text-disabled);
|
|
6962
6918
|
`}
|
|
6963
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6919
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components30.css`
|
|
6964
6920
|
user-select: none;
|
|
6965
6921
|
`}
|
|
6966
|
-
${({ $align }) =>
|
|
6922
|
+
${({ $align }) => import_styled_components30.css`
|
|
6967
6923
|
text-align: ${$align};
|
|
6968
6924
|
`}
|
|
6969
6925
|
margin: 0;
|
|
@@ -7009,7 +6965,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
7009
6965
|
|
|
7010
6966
|
// src/components/Label/Label.tsx
|
|
7011
6967
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
7012
|
-
var requiredStyle =
|
|
6968
|
+
var requiredStyle = import_styled_components31.css`
|
|
7013
6969
|
&::after {
|
|
7014
6970
|
color: var(--wui-color-text-error);
|
|
7015
6971
|
display: inline;
|
|
@@ -7017,10 +6973,10 @@ var requiredStyle = import_styled_components32.css`
|
|
|
7017
6973
|
content: '*';
|
|
7018
6974
|
}
|
|
7019
6975
|
`;
|
|
7020
|
-
var disabledStyle =
|
|
6976
|
+
var disabledStyle = import_styled_components31.css`
|
|
7021
6977
|
color: var(--wui-color-text-disabled);
|
|
7022
6978
|
`;
|
|
7023
|
-
var StyledLabel2 = (0,
|
|
6979
|
+
var StyledLabel2 = (0, import_styled_components31.default)(Heading).attrs({
|
|
7024
6980
|
variant: "heading6",
|
|
7025
6981
|
renderAs: "label"
|
|
7026
6982
|
})`
|
|
@@ -7063,10 +7019,10 @@ var Label = ({
|
|
|
7063
7019
|
Label.displayName = "Label";
|
|
7064
7020
|
|
|
7065
7021
|
// src/components/Label/LabelDescription.tsx
|
|
7066
|
-
var
|
|
7022
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
7067
7023
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
7068
7024
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
7069
|
-
var StyledLabelDescription =
|
|
7025
|
+
var StyledLabelDescription = import_styled_components32.default.div`
|
|
7070
7026
|
color: var(--wui-color-text-secondary);
|
|
7071
7027
|
font-size: var(--wui-typography-body-4-size);
|
|
7072
7028
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -7102,7 +7058,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
|
7102
7058
|
)
|
|
7103
7059
|
}
|
|
7104
7060
|
);
|
|
7105
|
-
var StyledCheckboxWrapper =
|
|
7061
|
+
var StyledCheckboxWrapper = import_styled_components33.default.div`
|
|
7106
7062
|
display: flex;
|
|
7107
7063
|
align-items: center;
|
|
7108
7064
|
cursor: pointer;
|
|
@@ -7116,7 +7072,7 @@ var StyledCheckboxWrapper = import_styled_components34.default.div`
|
|
|
7116
7072
|
background-color: #efefef;
|
|
7117
7073
|
}
|
|
7118
7074
|
`;
|
|
7119
|
-
var StyledCheckboxRoot = (0,
|
|
7075
|
+
var StyledCheckboxRoot = (0, import_styled_components33.default)(import_react_checkbox.Root)`
|
|
7120
7076
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
7121
7077
|
background-color: var(--wui-color-bg-fill-white);
|
|
7122
7078
|
min-width: 16px;
|
|
@@ -7150,10 +7106,10 @@ var StyledCheckboxRoot = (0, import_styled_components34.default)(import_react_ch
|
|
|
7150
7106
|
/* TODO Lamp to design focus state */
|
|
7151
7107
|
}
|
|
7152
7108
|
`;
|
|
7153
|
-
var StyledCheckboxIndicator = (0,
|
|
7109
|
+
var StyledCheckboxIndicator = (0, import_styled_components33.default)(import_react_checkbox.Indicator)`
|
|
7154
7110
|
display: flex;
|
|
7155
7111
|
`;
|
|
7156
|
-
var StyledLabelWrapper =
|
|
7112
|
+
var StyledLabelWrapper = import_styled_components33.default.div`
|
|
7157
7113
|
display: flex;
|
|
7158
7114
|
flex-direction: column;
|
|
7159
7115
|
margin-left: var(--wui-space-02);
|
|
@@ -7221,10 +7177,10 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
7221
7177
|
Checkbox.displayName = "Checkbox";
|
|
7222
7178
|
|
|
7223
7179
|
// src/components/DataCards/DataCard.tsx
|
|
7224
|
-
var
|
|
7180
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
7225
7181
|
var import_type_guards21 = require("@wistia/type-guards");
|
|
7226
7182
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
7227
|
-
var StyledDataCard =
|
|
7183
|
+
var StyledDataCard = import_styled_components34.default.div`
|
|
7228
7184
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7229
7185
|
display: grid;
|
|
7230
7186
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -7237,7 +7193,7 @@ var StyledDataCard = import_styled_components35.default.div`
|
|
|
7237
7193
|
border-radius: var(--wui-border-radius-02);
|
|
7238
7194
|
position: relative;
|
|
7239
7195
|
`;
|
|
7240
|
-
var shimmer =
|
|
7196
|
+
var shimmer = import_styled_components34.keyframes`
|
|
7241
7197
|
0% {
|
|
7242
7198
|
background-position: 200% 0;
|
|
7243
7199
|
}
|
|
@@ -7245,7 +7201,7 @@ var shimmer = import_styled_components35.keyframes`
|
|
|
7245
7201
|
background-position: -200% 0;
|
|
7246
7202
|
}
|
|
7247
7203
|
`;
|
|
7248
|
-
var LoadingBackground =
|
|
7204
|
+
var LoadingBackground = import_styled_components34.default.div`
|
|
7249
7205
|
background: linear-gradient(
|
|
7250
7206
|
90deg,
|
|
7251
7207
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -7256,27 +7212,27 @@ var LoadingBackground = import_styled_components35.default.div`
|
|
|
7256
7212
|
animation: ${shimmer} 1.5s infinite;
|
|
7257
7213
|
border-radius: var(--wui-border-radius-01);
|
|
7258
7214
|
`;
|
|
7259
|
-
var StyledLoadingLabel = (0,
|
|
7215
|
+
var StyledLoadingLabel = (0, import_styled_components34.default)(LoadingBackground)`
|
|
7260
7216
|
width: 80px;
|
|
7261
7217
|
height: var(--wui-typography-heading-6-line-height);
|
|
7262
7218
|
`;
|
|
7263
|
-
var StyledLoadingValue = (0,
|
|
7219
|
+
var StyledLoadingValue = (0, import_styled_components34.default)(LoadingBackground)`
|
|
7264
7220
|
width: 90%;
|
|
7265
7221
|
height: var(--wui-typography-heading-3-line-height);
|
|
7266
7222
|
`;
|
|
7267
|
-
var StyledLabel3 = (0,
|
|
7223
|
+
var StyledLabel3 = (0, import_styled_components34.default)(Heading)`
|
|
7268
7224
|
grid-area: label;
|
|
7269
7225
|
`;
|
|
7270
|
-
var StyledValue = (0,
|
|
7226
|
+
var StyledValue = (0, import_styled_components34.default)(Heading)`
|
|
7271
7227
|
grid-area: value;
|
|
7272
7228
|
`;
|
|
7273
|
-
var StyledSlot =
|
|
7229
|
+
var StyledSlot = import_styled_components34.default.div`
|
|
7274
7230
|
display: flex;
|
|
7275
7231
|
justify-content: flex-end;
|
|
7276
7232
|
grid-area: slot;
|
|
7277
7233
|
align-self: center;
|
|
7278
7234
|
`;
|
|
7279
|
-
var StyledDataCardTrendContainer =
|
|
7235
|
+
var StyledDataCardTrendContainer = import_styled_components34.default.div`
|
|
7280
7236
|
position: absolute;
|
|
7281
7237
|
bottom: var(--wui-space-01);
|
|
7282
7238
|
right: var(--wui-space-01);
|
|
@@ -7319,9 +7275,9 @@ var DataCard = ({
|
|
|
7319
7275
|
DataCard.displayName = "DataCard";
|
|
7320
7276
|
|
|
7321
7277
|
// src/components/DataCards/DataCards.tsx
|
|
7322
|
-
var
|
|
7278
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
7323
7279
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
7324
|
-
var StyledDataCards = (0,
|
|
7280
|
+
var StyledDataCards = (0, import_styled_components35.default)(Box)`
|
|
7325
7281
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7326
7282
|
margin-top: 0; /* Remove default <dl> style */
|
|
7327
7283
|
> * {
|
|
@@ -7353,93 +7309,93 @@ var DataCards = ({
|
|
|
7353
7309
|
DataCards.displayName = "DataCards";
|
|
7354
7310
|
|
|
7355
7311
|
// src/components/DataCards/DataCardTrend.tsx
|
|
7356
|
-
var
|
|
7312
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7357
7313
|
|
|
7358
7314
|
// src/components/Text/Text.tsx
|
|
7359
7315
|
var import_react20 = require("react");
|
|
7360
|
-
var
|
|
7316
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7361
7317
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
7362
|
-
var bodyBoldStyles =
|
|
7318
|
+
var bodyBoldStyles = import_styled_components36.css`
|
|
7363
7319
|
> strong,
|
|
7364
7320
|
b {
|
|
7365
7321
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
7366
7322
|
}
|
|
7367
7323
|
`;
|
|
7368
|
-
var labelBoldStyles =
|
|
7324
|
+
var labelBoldStyles = import_styled_components36.css`
|
|
7369
7325
|
> strong,
|
|
7370
7326
|
b {
|
|
7371
7327
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7372
7328
|
}
|
|
7373
7329
|
`;
|
|
7374
|
-
var body1TextStyle =
|
|
7330
|
+
var body1TextStyle = import_styled_components36.css`
|
|
7375
7331
|
--font-family: var(--wui-typography-body-1-family);
|
|
7376
7332
|
--font-size: var(--wui-typography-body-1-size);
|
|
7377
7333
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
7378
7334
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
7379
7335
|
${bodyBoldStyles}
|
|
7380
7336
|
`;
|
|
7381
|
-
var body2TextStyle =
|
|
7337
|
+
var body2TextStyle = import_styled_components36.css`
|
|
7382
7338
|
--font-family: var(--wui-typography-body-2-family);
|
|
7383
7339
|
--font-size: var(--wui-typography-body-2-size);
|
|
7384
7340
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
7385
7341
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
7386
7342
|
${bodyBoldStyles}
|
|
7387
7343
|
`;
|
|
7388
|
-
var body3TextStyle =
|
|
7344
|
+
var body3TextStyle = import_styled_components36.css`
|
|
7389
7345
|
--font-family: var(--wui-typography-body-3-family);
|
|
7390
7346
|
--font-size: var(--wui-typography-body-3-size);
|
|
7391
7347
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
7392
7348
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
7393
7349
|
${bodyBoldStyles}
|
|
7394
7350
|
`;
|
|
7395
|
-
var body4TextStyle =
|
|
7351
|
+
var body4TextStyle = import_styled_components36.css`
|
|
7396
7352
|
--font-family: var(--wui-typography-body-4-family);
|
|
7397
7353
|
--font-size: var(--wui-typography-body-4-size);
|
|
7398
7354
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
7399
7355
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
7400
7356
|
${bodyBoldStyles}
|
|
7401
7357
|
`;
|
|
7402
|
-
var label1TextStyle =
|
|
7358
|
+
var label1TextStyle = import_styled_components36.css`
|
|
7403
7359
|
--font-family: var(--wui-typography-label-1-family);
|
|
7404
7360
|
--font-size: var(--wui-typography-label-1-size);
|
|
7405
7361
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
7406
7362
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
7407
7363
|
${labelBoldStyles}
|
|
7408
7364
|
`;
|
|
7409
|
-
var label2TextStyle =
|
|
7365
|
+
var label2TextStyle = import_styled_components36.css`
|
|
7410
7366
|
--font-family: var(--wui-typography-label-2-family);
|
|
7411
7367
|
--font-size: var(--wui-typography-label-2-size);
|
|
7412
7368
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
7413
7369
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
7414
7370
|
${labelBoldStyles}
|
|
7415
7371
|
`;
|
|
7416
|
-
var label3TextStyle =
|
|
7372
|
+
var label3TextStyle = import_styled_components36.css`
|
|
7417
7373
|
--font-family: var(--wui-typography-label-3-family);
|
|
7418
7374
|
--font-size: var(--wui-typography-label-3-size);
|
|
7419
7375
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
7420
7376
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
7421
7377
|
${labelBoldStyles}
|
|
7422
7378
|
`;
|
|
7423
|
-
var label4TextStyle =
|
|
7379
|
+
var label4TextStyle = import_styled_components36.css`
|
|
7424
7380
|
--font-family: var(--wui-typography-label-4-family);
|
|
7425
7381
|
--font-size: var(--wui-typography-label-4-size);
|
|
7426
7382
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
7427
7383
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
7428
7384
|
${labelBoldStyles}
|
|
7429
7385
|
`;
|
|
7430
|
-
var body1MonoTextStyle =
|
|
7386
|
+
var body1MonoTextStyle = import_styled_components36.css`
|
|
7431
7387
|
${body1TextStyle};
|
|
7432
7388
|
--font-family: var(--wui-typography-family-mono);
|
|
7433
7389
|
`;
|
|
7434
|
-
var body2MonoTextStyle =
|
|
7390
|
+
var body2MonoTextStyle = import_styled_components36.css`
|
|
7435
7391
|
${body2TextStyle};
|
|
7436
7392
|
--font-family: var(--wui-typography-family-mono);
|
|
7437
7393
|
`;
|
|
7438
|
-
var body3MonoTextStyle =
|
|
7394
|
+
var body3MonoTextStyle = import_styled_components36.css`
|
|
7439
7395
|
${body3TextStyle};
|
|
7440
7396
|
--font-family: var(--wui-typography-family-mono);
|
|
7441
7397
|
`;
|
|
7442
|
-
var body4MonoTextStyle =
|
|
7398
|
+
var body4MonoTextStyle = import_styled_components36.css`
|
|
7443
7399
|
${body4TextStyle};
|
|
7444
7400
|
--font-family: var(--wui-typography-family-mono);
|
|
7445
7401
|
`;
|
|
@@ -7457,7 +7413,7 @@ var variantStyleMap2 = {
|
|
|
7457
7413
|
label3: label3TextStyle,
|
|
7458
7414
|
label4: label4TextStyle
|
|
7459
7415
|
};
|
|
7460
|
-
var StyledText =
|
|
7416
|
+
var StyledText = import_styled_components36.default.div`
|
|
7461
7417
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7462
7418
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
7463
7419
|
if ($disabled) {
|
|
@@ -7481,19 +7437,19 @@ var StyledText = import_styled_components37.default.div`
|
|
|
7481
7437
|
margin: 0;
|
|
7482
7438
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
7483
7439
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7484
|
-
${({ $inline }) => $inline &&
|
|
7440
|
+
${({ $inline }) => $inline && import_styled_components36.css`
|
|
7485
7441
|
display: inline-block;
|
|
7486
7442
|
`}
|
|
7487
|
-
${({ $disabled }) => $disabled &&
|
|
7443
|
+
${({ $disabled }) => $disabled && import_styled_components36.css`
|
|
7488
7444
|
--text-color: var(--wui-color-text-disabled);
|
|
7489
7445
|
`}
|
|
7490
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7446
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components36.css`
|
|
7491
7447
|
user-select: none;
|
|
7492
7448
|
`}
|
|
7493
|
-
${({ $align }) =>
|
|
7449
|
+
${({ $align }) => import_styled_components36.css`
|
|
7494
7450
|
text-align: ${$align};
|
|
7495
7451
|
`}
|
|
7496
|
-
${({ as }) => as === "p" &&
|
|
7452
|
+
${({ as }) => as === "p" && import_styled_components36.css`
|
|
7497
7453
|
display: block;
|
|
7498
7454
|
`}
|
|
7499
7455
|
`;
|
|
@@ -7534,7 +7490,7 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7534
7490
|
|
|
7535
7491
|
// src/components/DataCards/DataCardTrend.tsx
|
|
7536
7492
|
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
7537
|
-
var StyledDataCardTrend =
|
|
7493
|
+
var StyledDataCardTrend = import_styled_components37.default.div`
|
|
7538
7494
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
7539
7495
|
background: var(--wui-color-bg-app);
|
|
7540
7496
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -7570,22 +7526,22 @@ var DataCardTrend = ({
|
|
|
7570
7526
|
};
|
|
7571
7527
|
|
|
7572
7528
|
// src/components/Divider/Divider.tsx
|
|
7573
|
-
var
|
|
7529
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7574
7530
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
7575
|
-
var horizontalBorderCss =
|
|
7531
|
+
var horizontalBorderCss = import_styled_components38.css`
|
|
7576
7532
|
border-top-color: var(--wui-color-border);
|
|
7577
7533
|
border-top-style: solid;
|
|
7578
7534
|
border-top-width: 1px;
|
|
7579
7535
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
7580
7536
|
height: 0;
|
|
7581
7537
|
`;
|
|
7582
|
-
var verticalBorderCss =
|
|
7538
|
+
var verticalBorderCss = import_styled_components38.css`
|
|
7583
7539
|
background-color: var(--wui-color-border);
|
|
7584
7540
|
max-width: 1px;
|
|
7585
7541
|
min-height: 100%;
|
|
7586
7542
|
width: 1px;
|
|
7587
7543
|
`;
|
|
7588
|
-
var DividerComponent =
|
|
7544
|
+
var DividerComponent = import_styled_components38.default.div`
|
|
7589
7545
|
${({ $orientation }) => {
|
|
7590
7546
|
switch ($orientation) {
|
|
7591
7547
|
case "vertical":
|
|
@@ -7613,15 +7569,15 @@ var Divider = ({
|
|
|
7613
7569
|
Divider.displayName = "Divider";
|
|
7614
7570
|
|
|
7615
7571
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
7616
|
-
var
|
|
7572
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
7617
7573
|
var import_react22 = require("react");
|
|
7618
7574
|
|
|
7619
7575
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7620
|
-
var
|
|
7576
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7621
7577
|
var import_type_guards22 = require("@wistia/type-guards");
|
|
7622
7578
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
7623
|
-
var VisuallyHidden =
|
|
7624
|
-
var VisuallyHiddenButFocusable =
|
|
7579
|
+
var VisuallyHidden = import_styled_components39.default.div({ ...visuallyHiddenStyle });
|
|
7580
|
+
var VisuallyHiddenButFocusable = import_styled_components39.default.div({
|
|
7625
7581
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
7626
7582
|
});
|
|
7627
7583
|
var ScreenReaderOnly = ({
|
|
@@ -7640,16 +7596,16 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
7640
7596
|
|
|
7641
7597
|
// src/components/Tooltip/Tooltip.tsx
|
|
7642
7598
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
7643
|
-
var
|
|
7599
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7644
7600
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
7645
|
-
var CompactTooltipStyles =
|
|
7601
|
+
var CompactTooltipStyles = import_styled_components40.css`
|
|
7646
7602
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
7647
7603
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
7648
7604
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
7649
7605
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
7650
7606
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
7651
7607
|
`;
|
|
7652
|
-
var StyledContent = (0,
|
|
7608
|
+
var StyledContent = (0, import_styled_components40.default)(import_react_tooltip2.Content)`
|
|
7653
7609
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
7654
7610
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
7655
7611
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -7745,10 +7701,10 @@ Tooltip.displayName = "Tooltip";
|
|
|
7745
7701
|
|
|
7746
7702
|
// src/components/Input/Input.tsx
|
|
7747
7703
|
var import_react21 = require("react");
|
|
7748
|
-
var
|
|
7704
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
7749
7705
|
var import_type_guards23 = require("@wistia/type-guards");
|
|
7750
7706
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7751
|
-
var inputStyles =
|
|
7707
|
+
var inputStyles = import_styled_components41.css`
|
|
7752
7708
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7753
7709
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7754
7710
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7789,7 +7745,7 @@ var inputStyles = import_styled_components42.css`
|
|
|
7789
7745
|
}
|
|
7790
7746
|
}
|
|
7791
7747
|
`;
|
|
7792
|
-
var StyledInputContainer =
|
|
7748
|
+
var StyledInputContainer = import_styled_components41.default.div`
|
|
7793
7749
|
display: inline-flex;
|
|
7794
7750
|
position: relative;
|
|
7795
7751
|
${inputStyles};
|
|
@@ -7908,7 +7864,7 @@ Input.displayName = "Input";
|
|
|
7908
7864
|
|
|
7909
7865
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
7910
7866
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
7911
|
-
var StyledInput = (0,
|
|
7867
|
+
var StyledInput = (0, import_styled_components42.default)(Input)`
|
|
7912
7868
|
:not([rows]) {
|
|
7913
7869
|
min-height: unset;
|
|
7914
7870
|
}
|
|
@@ -7928,7 +7884,7 @@ var StyledInput = (0, import_styled_components43.default)(Input)`
|
|
|
7928
7884
|
height: ${({ $height }) => `${$height}px`};
|
|
7929
7885
|
}
|
|
7930
7886
|
`;
|
|
7931
|
-
var editableStyles =
|
|
7887
|
+
var editableStyles = import_styled_components42.css`
|
|
7932
7888
|
&:has(+ :focus-within) {
|
|
7933
7889
|
background: var(--wui-color-bg-surface-hover);
|
|
7934
7890
|
}
|
|
@@ -7938,7 +7894,7 @@ var editableStyles = import_styled_components43.css`
|
|
|
7938
7894
|
cursor: pointer;
|
|
7939
7895
|
}
|
|
7940
7896
|
`;
|
|
7941
|
-
var StyledHeading2 = (0,
|
|
7897
|
+
var StyledHeading2 = (0, import_styled_components42.default)(Heading)`
|
|
7942
7898
|
width: 100%;
|
|
7943
7899
|
border-radius: var(--wui-border-radius-02);
|
|
7944
7900
|
padding: var(--wui-space-02);
|
|
@@ -8046,15 +8002,15 @@ var EditableHeading = ({
|
|
|
8046
8002
|
|
|
8047
8003
|
// src/components/Form/Form.tsx
|
|
8048
8004
|
var import_react24 = require("react");
|
|
8049
|
-
var
|
|
8005
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
8050
8006
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
8051
8007
|
|
|
8052
8008
|
// src/components/Stack/Stack.tsx
|
|
8053
8009
|
var import_react23 = require("react");
|
|
8054
|
-
var
|
|
8010
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
8055
8011
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
8056
8012
|
var DEFAULT_ELEMENT4 = "div";
|
|
8057
|
-
var StyledStack =
|
|
8013
|
+
var StyledStack = import_styled_components43.default.div`
|
|
8058
8014
|
display: flex;
|
|
8059
8015
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
8060
8016
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -8080,7 +8036,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
8080
8036
|
|
|
8081
8037
|
// src/components/Form/Form.tsx
|
|
8082
8038
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
8083
|
-
var StyledForm =
|
|
8039
|
+
var StyledForm = import_styled_components44.default.form`
|
|
8084
8040
|
--form-default-width: 690px;
|
|
8085
8041
|
|
|
8086
8042
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -8245,20 +8201,20 @@ var FormErrorSummary = ({ description }) => {
|
|
|
8245
8201
|
|
|
8246
8202
|
// src/components/FormField/FormField.tsx
|
|
8247
8203
|
var import_react29 = require("react");
|
|
8248
|
-
var
|
|
8204
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
8249
8205
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8250
8206
|
|
|
8251
8207
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
8252
8208
|
var import_react28 = require("react");
|
|
8253
8209
|
|
|
8254
8210
|
// src/components/FormGroup/FormGroup.tsx
|
|
8255
|
-
var
|
|
8211
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
8256
8212
|
var import_react27 = require("react");
|
|
8257
8213
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
8258
|
-
var StyledFieldset =
|
|
8214
|
+
var StyledFieldset = import_styled_components45.default.fieldset`
|
|
8259
8215
|
border: 0;
|
|
8260
8216
|
`;
|
|
8261
|
-
var StyledLegend =
|
|
8217
|
+
var StyledLegend = import_styled_components45.default.legend`
|
|
8262
8218
|
margin-bottom: var(--space-01);
|
|
8263
8219
|
`;
|
|
8264
8220
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -8307,7 +8263,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
8307
8263
|
|
|
8308
8264
|
// src/components/FormField/FormField.tsx
|
|
8309
8265
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
8310
|
-
var StyledFormField =
|
|
8266
|
+
var StyledFormField = import_styled_components46.default.div`
|
|
8311
8267
|
--form-field-spacing: var(--wui-space-01);
|
|
8312
8268
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
8313
8269
|
|
|
@@ -8315,7 +8271,7 @@ var StyledFormField = import_styled_components47.default.div`
|
|
|
8315
8271
|
flex-direction: column;
|
|
8316
8272
|
gap: var(--form-field-spacing);
|
|
8317
8273
|
`;
|
|
8318
|
-
var StyledErrorList =
|
|
8274
|
+
var StyledErrorList = import_styled_components46.default.ul`
|
|
8319
8275
|
margin: 0;
|
|
8320
8276
|
padding: 0;
|
|
8321
8277
|
padding-left: var(--wui-space-04);
|
|
@@ -8429,9 +8385,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
8429
8385
|
|
|
8430
8386
|
// src/components/IconButton/IconButton.tsx
|
|
8431
8387
|
var import_react31 = require("react");
|
|
8432
|
-
var
|
|
8388
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8433
8389
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
8434
|
-
var StyledButton2 = (0,
|
|
8390
|
+
var StyledButton2 = (0, import_styled_components47.default)(Button)`
|
|
8435
8391
|
--icon-button-size-sm: 24px;
|
|
8436
8392
|
--icon-button-size-md: 32px;
|
|
8437
8393
|
--icon-button-size-lg: 40px;
|
|
@@ -8466,7 +8422,7 @@ var IconButton = (0, import_react31.forwardRef)(
|
|
|
8466
8422
|
IconButton.displayName = "IconButton";
|
|
8467
8423
|
|
|
8468
8424
|
// src/components/Menu/Menu.tsx
|
|
8469
|
-
var
|
|
8425
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8470
8426
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
8471
8427
|
var import_type_guards27 = require("@wistia/type-guards");
|
|
8472
8428
|
var import_react33 = require("react");
|
|
@@ -8478,7 +8434,7 @@ var useMenuContext = () => (0, import_react32.useContext)(MenuContext);
|
|
|
8478
8434
|
|
|
8479
8435
|
// src/components/Menu/Menu.tsx
|
|
8480
8436
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
8481
|
-
var open =
|
|
8437
|
+
var open = import_styled_components48.keyframes`
|
|
8482
8438
|
from {
|
|
8483
8439
|
opacity: 0;
|
|
8484
8440
|
transform: scale(.97) translateY(-8px);
|
|
@@ -8488,7 +8444,7 @@ var open = import_styled_components49.keyframes`
|
|
|
8488
8444
|
transform: scale(1);
|
|
8489
8445
|
}
|
|
8490
8446
|
`;
|
|
8491
|
-
var close =
|
|
8447
|
+
var close = import_styled_components48.keyframes`
|
|
8492
8448
|
from {
|
|
8493
8449
|
opacity: 1;
|
|
8494
8450
|
transform: scale(1);
|
|
@@ -8498,7 +8454,7 @@ var close = import_styled_components49.keyframes`
|
|
|
8498
8454
|
transform: scale(.97) translateY(-8px);
|
|
8499
8455
|
}
|
|
8500
8456
|
`;
|
|
8501
|
-
var menuItemCss =
|
|
8457
|
+
var menuItemCss = import_styled_components48.css`
|
|
8502
8458
|
--menu-label-description-gap: var(--wui-space-01);
|
|
8503
8459
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
8504
8460
|
--menu-item-left-icon-size: 24px;
|
|
@@ -8509,7 +8465,7 @@ var menuItemCss = import_styled_components49.css`
|
|
|
8509
8465
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
8510
8466
|
--menu-divider-margin: var(--wui-space-02);
|
|
8511
8467
|
`;
|
|
8512
|
-
var compactMenuItemCss =
|
|
8468
|
+
var compactMenuItemCss = import_styled_components48.css`
|
|
8513
8469
|
--menu-label-description-gap: 0;
|
|
8514
8470
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
8515
8471
|
--menu-item-left-icon-size: 16px;
|
|
@@ -8520,7 +8476,7 @@ var compactMenuItemCss = import_styled_components49.css`
|
|
|
8520
8476
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
8521
8477
|
--menu-divider-margin: var(--wui-space-01);
|
|
8522
8478
|
`;
|
|
8523
|
-
var menuContentCss =
|
|
8479
|
+
var menuContentCss = import_styled_components48.css`
|
|
8524
8480
|
--menu-font-family: var(--wui-typography-family-default);
|
|
8525
8481
|
--menu-bg: var(--wui-color-bg-surface);
|
|
8526
8482
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -8562,7 +8518,7 @@ var menuContentCss = import_styled_components49.css`
|
|
|
8562
8518
|
margin: var(--menu-divider-margin) 0;
|
|
8563
8519
|
}
|
|
8564
8520
|
`;
|
|
8565
|
-
var MenuContent = (0,
|
|
8521
|
+
var MenuContent = (0, import_styled_components48.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
8566
8522
|
${menuContentCss}
|
|
8567
8523
|
`;
|
|
8568
8524
|
var Menu = ({
|
|
@@ -8625,10 +8581,10 @@ var Menu = ({
|
|
|
8625
8581
|
Menu.displayName = "Menu";
|
|
8626
8582
|
|
|
8627
8583
|
// src/components/Menu/MenuLabel.tsx
|
|
8628
|
-
var
|
|
8584
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8629
8585
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
8630
8586
|
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
8631
|
-
var StyledMenuLabel = (0,
|
|
8587
|
+
var StyledMenuLabel = (0, import_styled_components49.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
8632
8588
|
padding: var(--wui-space-02);
|
|
8633
8589
|
`;
|
|
8634
8590
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -8653,16 +8609,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8653
8609
|
|
|
8654
8610
|
// src/components/Menu/SubMenu.tsx
|
|
8655
8611
|
var import_react35 = require("react");
|
|
8656
|
-
var
|
|
8612
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8657
8613
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
8658
8614
|
var import_type_guards29 = require("@wistia/type-guards");
|
|
8659
8615
|
|
|
8660
8616
|
// src/components/Menu/MenuItemButton.tsx
|
|
8661
8617
|
var import_react34 = require("react");
|
|
8662
|
-
var
|
|
8618
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8663
8619
|
var import_type_guards28 = require("@wistia/type-guards");
|
|
8664
8620
|
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
8665
|
-
var StyledButton3 = (0,
|
|
8621
|
+
var StyledButton3 = (0, import_styled_components50.default)(Button)`
|
|
8666
8622
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
8667
8623
|
|
|
8668
8624
|
display: flex;
|
|
@@ -8701,7 +8657,7 @@ var StyledButton3 = (0, import_styled_components51.default)(Button)`
|
|
|
8701
8657
|
padding-left: var(--wui-space-04);
|
|
8702
8658
|
}
|
|
8703
8659
|
`;
|
|
8704
|
-
var StyledLeftIconContainer =
|
|
8660
|
+
var StyledLeftIconContainer = import_styled_components50.default.div`
|
|
8705
8661
|
height: var(--menu-item-left-icon-size);
|
|
8706
8662
|
width: var(--menu-item-left-icon-size);
|
|
8707
8663
|
|
|
@@ -8710,7 +8666,7 @@ var StyledLeftIconContainer = import_styled_components51.default.div`
|
|
|
8710
8666
|
width: var(--menu-item-left-icon-size);
|
|
8711
8667
|
}
|
|
8712
8668
|
`;
|
|
8713
|
-
var StyledRightIconContainer =
|
|
8669
|
+
var StyledRightIconContainer = import_styled_components50.default.div`
|
|
8714
8670
|
height: var(--menu-item-right-icon-size);
|
|
8715
8671
|
width: var(--menu-item-right-icon-size);
|
|
8716
8672
|
|
|
@@ -8719,13 +8675,13 @@ var StyledRightIconContainer = import_styled_components51.default.div`
|
|
|
8719
8675
|
width: var(--menu-item-right-icon-size);
|
|
8720
8676
|
}
|
|
8721
8677
|
`;
|
|
8722
|
-
var StyledLabelAndDescriptionContainer =
|
|
8678
|
+
var StyledLabelAndDescriptionContainer = import_styled_components50.default.div`
|
|
8723
8679
|
display: flex;
|
|
8724
8680
|
flex-direction: column;
|
|
8725
8681
|
gap: var(--menu-label-description-gap);
|
|
8726
8682
|
flex-basis: 100%;
|
|
8727
8683
|
`;
|
|
8728
|
-
var StyledBadgeContainer =
|
|
8684
|
+
var StyledBadgeContainer = import_styled_components50.default.div`
|
|
8729
8685
|
align-self: start;
|
|
8730
8686
|
justify-self: end;
|
|
8731
8687
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -8773,10 +8729,10 @@ var MenuItemButton = (0, import_react34.forwardRef)(({ children, appearance, com
|
|
|
8773
8729
|
MenuItemButton.displayName = "MenuItemButton";
|
|
8774
8730
|
|
|
8775
8731
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
8776
|
-
var
|
|
8732
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8777
8733
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8778
|
-
var StyledMenuItemLabel =
|
|
8779
|
-
var StyledMenuItemDescription = (0,
|
|
8734
|
+
var StyledMenuItemLabel = import_styled_components51.default.span``;
|
|
8735
|
+
var StyledMenuItemDescription = (0, import_styled_components51.default)(Text).attrs({
|
|
8780
8736
|
variant: "body4",
|
|
8781
8737
|
prominence: "secondary"
|
|
8782
8738
|
})``;
|
|
@@ -8789,17 +8745,17 @@ var MenuItemDescription = ({ children }) => {
|
|
|
8789
8745
|
|
|
8790
8746
|
// src/components/Menu/SubMenu.tsx
|
|
8791
8747
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8792
|
-
var SubMenuContent = (0,
|
|
8748
|
+
var SubMenuContent = (0, import_styled_components52.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
8793
8749
|
${menuContentCss}
|
|
8794
8750
|
|
|
8795
8751
|
${mq.smAndDown} {
|
|
8796
8752
|
transform: translateX(-100%) !important;
|
|
8797
8753
|
}
|
|
8798
8754
|
`;
|
|
8799
|
-
var StyledMobileSubMenuItems =
|
|
8755
|
+
var StyledMobileSubMenuItems = import_styled_components52.default.div`
|
|
8800
8756
|
margin-left: var(--wui-space-04);
|
|
8801
8757
|
`;
|
|
8802
|
-
var StyledSubTrigger = (0,
|
|
8758
|
+
var StyledSubTrigger = (0, import_styled_components52.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
8803
8759
|
outline: none;
|
|
8804
8760
|
|
|
8805
8761
|
&[data-state='open'],
|
|
@@ -9009,19 +8965,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
9009
8965
|
|
|
9010
8966
|
// src/components/Modal/Modal.tsx
|
|
9011
8967
|
var import_react40 = require("react");
|
|
9012
|
-
var
|
|
8968
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
9013
8969
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
9014
8970
|
var import_type_guards31 = require("@wistia/type-guards");
|
|
9015
8971
|
|
|
9016
8972
|
// src/components/Modal/ModalHeader.tsx
|
|
9017
|
-
var
|
|
8973
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
9018
8974
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
9019
8975
|
|
|
9020
8976
|
// src/components/Modal/ModalCloseButton.tsx
|
|
9021
|
-
var
|
|
8977
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
9022
8978
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
9023
8979
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
9024
|
-
var CloseButton = (0,
|
|
8980
|
+
var CloseButton = (0, import_styled_components53.default)(import_react_dialog.Close)`
|
|
9025
8981
|
align-self: start;
|
|
9026
8982
|
`;
|
|
9027
8983
|
var ModalCloseButton = () => {
|
|
@@ -9038,7 +8994,7 @@ var ModalCloseButton = () => {
|
|
|
9038
8994
|
|
|
9039
8995
|
// src/components/Modal/ModalHeader.tsx
|
|
9040
8996
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
9041
|
-
var Header =
|
|
8997
|
+
var Header = import_styled_components54.default.header`
|
|
9042
8998
|
display: flex;
|
|
9043
8999
|
order: 1;
|
|
9044
9000
|
gap: var(--wui-space-01);
|
|
@@ -9050,7 +9006,7 @@ var Header = import_styled_components55.default.header`
|
|
|
9050
9006
|
margin-top: 0;
|
|
9051
9007
|
}
|
|
9052
9008
|
`;
|
|
9053
|
-
var Title = (0,
|
|
9009
|
+
var Title = (0, import_styled_components54.default)(import_react_dialog2.Title)`
|
|
9054
9010
|
font-family: var(--wui-typography-heading-2-family);
|
|
9055
9011
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
9056
9012
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -9070,7 +9026,7 @@ var ModalHeader = ({
|
|
|
9070
9026
|
|
|
9071
9027
|
// src/components/Modal/ModalContent.tsx
|
|
9072
9028
|
var import_react38 = require("react");
|
|
9073
|
-
var
|
|
9029
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
9074
9030
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
9075
9031
|
|
|
9076
9032
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -9094,7 +9050,7 @@ var useFocusRestore = () => {
|
|
|
9094
9050
|
|
|
9095
9051
|
// src/components/Modal/ModalContent.tsx
|
|
9096
9052
|
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
9097
|
-
var StyledModalContent = (0,
|
|
9053
|
+
var StyledModalContent = (0, import_styled_components55.default)(import_react_dialog3.Content)`
|
|
9098
9054
|
background-color: var(--wui-color-bg-app);
|
|
9099
9055
|
box-sizing: border-box;
|
|
9100
9056
|
display: flex;
|
|
@@ -9154,7 +9110,7 @@ var ModalContent = (0, import_react38.forwardRef)(
|
|
|
9154
9110
|
|
|
9155
9111
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
9156
9112
|
var import_react39 = require("react");
|
|
9157
|
-
var
|
|
9113
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
9158
9114
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
9159
9115
|
var backdropAnimationDuration = 150;
|
|
9160
9116
|
var alignVerticalMap = {
|
|
@@ -9168,7 +9124,7 @@ var alignHorizontalMap = {
|
|
|
9168
9124
|
center: "center",
|
|
9169
9125
|
right: "end"
|
|
9170
9126
|
};
|
|
9171
|
-
var BackdropComponent =
|
|
9127
|
+
var BackdropComponent = import_styled_components56.default.div`
|
|
9172
9128
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
9173
9129
|
animation-name: backdropShow;
|
|
9174
9130
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -9208,7 +9164,7 @@ Backdrop.displayName = "Backdrop";
|
|
|
9208
9164
|
// src/components/Modal/Modal.tsx
|
|
9209
9165
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
9210
9166
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
9211
|
-
var ModalBody =
|
|
9167
|
+
var ModalBody = import_styled_components57.default.div`
|
|
9212
9168
|
flex-direction: column;
|
|
9213
9169
|
display: flex;
|
|
9214
9170
|
order: 2;
|
|
@@ -9274,15 +9230,15 @@ Modal.displayName = "Modal";
|
|
|
9274
9230
|
|
|
9275
9231
|
// src/components/Radio/Radio.tsx
|
|
9276
9232
|
var import_react41 = require("react");
|
|
9277
|
-
var
|
|
9233
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
9278
9234
|
var import_type_guards32 = require("@wistia/type-guards");
|
|
9279
9235
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
9280
|
-
var StyledLabelWrapper2 =
|
|
9236
|
+
var StyledLabelWrapper2 = import_styled_components58.default.div`
|
|
9281
9237
|
display: flex;
|
|
9282
9238
|
flex-direction: column;
|
|
9283
9239
|
padding-left: var(--wui-space-02);
|
|
9284
9240
|
`;
|
|
9285
|
-
var StyledRadio =
|
|
9241
|
+
var StyledRadio = import_styled_components58.default.input`
|
|
9286
9242
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
9287
9243
|
appearance: none;
|
|
9288
9244
|
margin: 0;
|
|
@@ -9308,11 +9264,11 @@ var StyledRadio = import_styled_components59.default.input`
|
|
|
9308
9264
|
transform: scale(1);
|
|
9309
9265
|
}
|
|
9310
9266
|
`;
|
|
9311
|
-
var disabledStyle2 =
|
|
9267
|
+
var disabledStyle2 = import_styled_components58.css`
|
|
9312
9268
|
cursor: not-allowed;
|
|
9313
9269
|
opacity: 0.5;
|
|
9314
9270
|
`;
|
|
9315
|
-
var errorStyle =
|
|
9271
|
+
var errorStyle = import_styled_components58.css`
|
|
9316
9272
|
/* TODO Lamp to design error state */
|
|
9317
9273
|
&:hover,
|
|
9318
9274
|
&:focus,
|
|
@@ -9320,11 +9276,11 @@ var errorStyle = import_styled_components59.css`
|
|
|
9320
9276
|
border-color: transparent !important;
|
|
9321
9277
|
}
|
|
9322
9278
|
`;
|
|
9323
|
-
var defaultHoverStyle =
|
|
9279
|
+
var defaultHoverStyle = import_styled_components58.css`
|
|
9324
9280
|
/* TODO Lamp to design hover state */
|
|
9325
9281
|
cursor: pointer;
|
|
9326
9282
|
`;
|
|
9327
|
-
var StyledRadioWrapper =
|
|
9283
|
+
var StyledRadioWrapper = import_styled_components58.default.div`
|
|
9328
9284
|
align-items: baseline;
|
|
9329
9285
|
border: 1px solid transparent;
|
|
9330
9286
|
border-radius: 4px;
|
|
@@ -9404,11 +9360,11 @@ Radio.displayName = "Radio";
|
|
|
9404
9360
|
|
|
9405
9361
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
9406
9362
|
var import_react42 = require("react");
|
|
9407
|
-
var
|
|
9363
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
9408
9364
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
9409
9365
|
var import_type_guards33 = require("@wistia/type-guards");
|
|
9410
9366
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
9411
|
-
var segmentedControlStyles =
|
|
9367
|
+
var segmentedControlStyles = import_styled_components59.css`
|
|
9412
9368
|
display: inline-flex;
|
|
9413
9369
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
9414
9370
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9416,7 +9372,7 @@ var segmentedControlStyles = import_styled_components60.css`
|
|
|
9416
9372
|
gap: var(--wui-space-01);
|
|
9417
9373
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
9418
9374
|
`;
|
|
9419
|
-
var StyledSegmentedControl = (0,
|
|
9375
|
+
var StyledSegmentedControl = (0, import_styled_components59.default)(import_react_toggle_group.Root)`
|
|
9420
9376
|
${segmentedControlStyles}
|
|
9421
9377
|
`;
|
|
9422
9378
|
var SegmentedControl = (0, import_react42.forwardRef)(
|
|
@@ -9452,11 +9408,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
9452
9408
|
|
|
9453
9409
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
9454
9410
|
var import_react43 = require("react");
|
|
9455
|
-
var
|
|
9411
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9456
9412
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
9457
9413
|
var import_type_guards34 = require("@wistia/type-guards");
|
|
9458
9414
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9459
|
-
var segmentedControlItemStyles =
|
|
9415
|
+
var segmentedControlItemStyles = import_styled_components60.css`
|
|
9460
9416
|
all: unset; /* ToggleGroupItem is a button element */
|
|
9461
9417
|
align-items: center;
|
|
9462
9418
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9511,7 +9467,7 @@ var segmentedControlItemStyles = import_styled_components61.css`
|
|
|
9511
9467
|
}
|
|
9512
9468
|
}
|
|
9513
9469
|
`;
|
|
9514
|
-
var StyledSegmentedControlItem = (0,
|
|
9470
|
+
var StyledSegmentedControlItem = (0, import_styled_components60.default)(import_react_toggle_group2.Item)`
|
|
9515
9471
|
${segmentedControlItemStyles}
|
|
9516
9472
|
`;
|
|
9517
9473
|
var SegmentedControlItem = (0, import_react43.forwardRef)(
|
|
@@ -9545,9 +9501,9 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
9545
9501
|
// src/components/Select/Select.tsx
|
|
9546
9502
|
var import_react_select = require("@radix-ui/react-select");
|
|
9547
9503
|
var import_react44 = require("react");
|
|
9548
|
-
var
|
|
9504
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9549
9505
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9550
|
-
var StyledTrigger = (0,
|
|
9506
|
+
var StyledTrigger = (0, import_styled_components61.default)(import_react_select.Trigger)`
|
|
9551
9507
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9552
9508
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
9553
9509
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9588,7 +9544,7 @@ var StyledTrigger = (0, import_styled_components62.default)(import_react_select.
|
|
|
9588
9544
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9589
9545
|
}
|
|
9590
9546
|
`;
|
|
9591
|
-
var StyledContent2 = (0,
|
|
9547
|
+
var StyledContent2 = (0, import_styled_components61.default)(import_react_select.Content)`
|
|
9592
9548
|
--wui-select-content-border: var(--wui-color-border);
|
|
9593
9549
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9594
9550
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -9654,9 +9610,9 @@ Select.displayName = "Select";
|
|
|
9654
9610
|
// src/components/Select/SelectOption.tsx
|
|
9655
9611
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9656
9612
|
var import_react45 = require("react");
|
|
9657
|
-
var
|
|
9613
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9658
9614
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9659
|
-
var StyledItem = (0,
|
|
9615
|
+
var StyledItem = (0, import_styled_components62.default)(import_react_select2.Item)`
|
|
9660
9616
|
${variantStyleMap2.body3};
|
|
9661
9617
|
display: flex;
|
|
9662
9618
|
padding: var(--wui-select-option-padding);
|
|
@@ -9679,7 +9635,7 @@ var StyledItem = (0, import_styled_components63.default)(import_react_select2.It
|
|
|
9679
9635
|
background-color: transparent;
|
|
9680
9636
|
}
|
|
9681
9637
|
`;
|
|
9682
|
-
var StyledIconContainer =
|
|
9638
|
+
var StyledIconContainer = import_styled_components62.default.span`
|
|
9683
9639
|
width: 12px;
|
|
9684
9640
|
`;
|
|
9685
9641
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
@@ -9707,9 +9663,9 @@ SelectOption.displayName = "Option";
|
|
|
9707
9663
|
|
|
9708
9664
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9709
9665
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9710
|
-
var
|
|
9666
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9711
9667
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9712
|
-
var StyledLabel4 = (0,
|
|
9668
|
+
var StyledLabel4 = (0, import_styled_components63.default)(import_react_select3.Label)`
|
|
9713
9669
|
padding: var(--wui-select-option-padding);
|
|
9714
9670
|
`;
|
|
9715
9671
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -9732,10 +9688,10 @@ var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
|
9732
9688
|
var import_type_guards36 = require("@wistia/type-guards");
|
|
9733
9689
|
|
|
9734
9690
|
// src/components/Tabs/TabPanel.tsx
|
|
9735
|
-
var
|
|
9691
|
+
var import_styled_components64 = __toESM(require("styled-components"));
|
|
9736
9692
|
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
9737
9693
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9738
|
-
var StyledTabPanel = (0,
|
|
9694
|
+
var StyledTabPanel = (0, import_styled_components64.default)(import_react_tabs.Content)`
|
|
9739
9695
|
display: flex;
|
|
9740
9696
|
flex-direction: column;
|
|
9741
9697
|
`;
|
|
@@ -9752,10 +9708,10 @@ var TabPanel = ({ children, value, ...props }) => {
|
|
|
9752
9708
|
TabPanel.displayName = "TabPanel";
|
|
9753
9709
|
|
|
9754
9710
|
// src/components/Tabs/TabList.tsx
|
|
9755
|
-
var
|
|
9711
|
+
var import_styled_components65 = __toESM(require("styled-components"));
|
|
9756
9712
|
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
9757
9713
|
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
9758
|
-
var StyledTabList = (0,
|
|
9714
|
+
var StyledTabList = (0, import_styled_components65.default)(import_react_tabs2.List)`
|
|
9759
9715
|
${segmentedControlStyles}
|
|
9760
9716
|
|
|
9761
9717
|
margin-bottom: var(--wui-space-04);
|
|
@@ -9780,11 +9736,11 @@ TabList.displayName = "TabList";
|
|
|
9780
9736
|
|
|
9781
9737
|
// src/components/Tabs/TabItem.tsx
|
|
9782
9738
|
var import_react46 = require("react");
|
|
9783
|
-
var
|
|
9739
|
+
var import_styled_components66 = __toESM(require("styled-components"));
|
|
9784
9740
|
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
9785
9741
|
var import_type_guards35 = require("@wistia/type-guards");
|
|
9786
9742
|
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
9787
|
-
var StyledTabItem = (0,
|
|
9743
|
+
var StyledTabItem = (0, import_styled_components66.default)(import_react_tabs3.Trigger)`
|
|
9788
9744
|
${segmentedControlItemStyles}
|
|
9789
9745
|
|
|
9790
9746
|
&[data-state='active'] {
|
|
@@ -9932,10 +9888,10 @@ Tab.displayName = "Tab";
|
|
|
9932
9888
|
|
|
9933
9889
|
// src/components/Tag/Tag.tsx
|
|
9934
9890
|
var import_react50 = require("react");
|
|
9935
|
-
var
|
|
9891
|
+
var import_styled_components67 = __toESM(require("styled-components"));
|
|
9936
9892
|
var import_type_guards37 = require("@wistia/type-guards");
|
|
9937
9893
|
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
9938
|
-
var TagLabel =
|
|
9894
|
+
var TagLabel = import_styled_components67.default.a`
|
|
9939
9895
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9940
9896
|
font-size: var(--wui-typography-label-4-size);
|
|
9941
9897
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -9963,14 +9919,14 @@ var TagLabel = import_styled_components68.default.a`
|
|
|
9963
9919
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9964
9920
|
}
|
|
9965
9921
|
`;
|
|
9966
|
-
var TagDivider =
|
|
9922
|
+
var TagDivider = import_styled_components67.default.div`
|
|
9967
9923
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9968
9924
|
border-left: 1px solid var(--wui-color-border);
|
|
9969
9925
|
display: flex;
|
|
9970
9926
|
height: 14px;
|
|
9971
9927
|
width: 1px;
|
|
9972
9928
|
`;
|
|
9973
|
-
var StyledRemoveButton =
|
|
9929
|
+
var StyledRemoveButton = import_styled_components67.default.button`
|
|
9974
9930
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9975
9931
|
all: unset;
|
|
9976
9932
|
cursor: pointer;
|
|
@@ -9998,7 +9954,7 @@ var StyledRemoveButton = import_styled_components68.default.button`
|
|
|
9998
9954
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9999
9955
|
}
|
|
10000
9956
|
`;
|
|
10001
|
-
var StyledTag =
|
|
9957
|
+
var StyledTag = import_styled_components67.default.div`
|
|
10002
9958
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10003
9959
|
align-items: center;
|
|
10004
9960
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -10075,7 +10031,7 @@ var Tag = (0, import_react50.forwardRef)(
|
|
|
10075
10031
|
Tag.displayName = "Tag";
|
|
10076
10032
|
|
|
10077
10033
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
10078
|
-
var
|
|
10034
|
+
var import_styled_components68 = __toESM(require("styled-components"));
|
|
10079
10035
|
var import_type_guards38 = require("@wistia/type-guards");
|
|
10080
10036
|
var import_jsx_runtime219 = require("react/jsx-runtime");
|
|
10081
10037
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -10117,7 +10073,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
10117
10073
|
}
|
|
10118
10074
|
return "0 0 144 31.47";
|
|
10119
10075
|
};
|
|
10120
|
-
var WistiaLogoComponent =
|
|
10076
|
+
var WistiaLogoComponent = import_styled_components68.default.svg`
|
|
10121
10077
|
height: ${({ height }) => `${height}px`};
|
|
10122
10078
|
|
|
10123
10079
|
/* ensure it will always fit on mobile */
|