@wistia/ui 0.5.4-beta.1547643.4c14bee → 0.5.4-beta.b60ba6d4.ffaa152
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 +510 -494
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -91
- package/dist/index.d.ts +1 -91
- package/dist/index.mjs +406 -388
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
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.b60ba6d4.ffaa152
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -58,7 +58,6 @@ __export(index_exports, {
|
|
|
58
58
|
Divider: () => Divider,
|
|
59
59
|
EditableHeading: () => EditableHeading,
|
|
60
60
|
Ellipsis: () => Ellipsis,
|
|
61
|
-
FloatingCard: () => FloatingCard,
|
|
62
61
|
Form: () => Form,
|
|
63
62
|
FormErrorSummary: () => FormErrorSummary,
|
|
64
63
|
FormField: () => FormField,
|
|
@@ -69,7 +68,6 @@ __export(index_exports, {
|
|
|
69
68
|
Input: () => Input,
|
|
70
69
|
Label: () => Label,
|
|
71
70
|
Link: () => Link,
|
|
72
|
-
ListBoxItem: () => ListBoxItem,
|
|
73
71
|
Menu: () => Menu,
|
|
74
72
|
MenuItem: () => MenuItem,
|
|
75
73
|
MenuItemDescription: () => MenuItemDescription,
|
|
@@ -117,7 +115,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
117
115
|
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
118
116
|
|
|
119
117
|
// src/css/GlobalStyle.tsx
|
|
120
|
-
var
|
|
118
|
+
var import_styled_components13 = require("styled-components");
|
|
121
119
|
|
|
122
120
|
// src/css/resetCss.tsx
|
|
123
121
|
var import_styled_components = require("styled-components");
|
|
@@ -1243,6 +1241,10 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1243
1241
|
--wui-color-border-selected: var(--wui-blue-6);
|
|
1244
1242
|
--wui-color-border-hover-selected: var(--wui-blue-8);
|
|
1245
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);
|
|
1246
1248
|
`;
|
|
1247
1249
|
|
|
1248
1250
|
// src/css/designTokens/borderRadius.tsx
|
|
@@ -1451,11 +1453,46 @@ var designTokens = import_styled_components11.css`
|
|
|
1451
1453
|
}
|
|
1452
1454
|
`;
|
|
1453
1455
|
|
|
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
|
+
|
|
1454
1490
|
// src/css/GlobalStyle.tsx
|
|
1455
|
-
var GlobalStyle =
|
|
1491
|
+
var GlobalStyle = import_styled_components13.createGlobalStyle`
|
|
1456
1492
|
${resetCss}
|
|
1457
1493
|
${globalStyleAdjustmentsCss}
|
|
1458
1494
|
${designTokens}
|
|
1495
|
+
${scrollbarCss}
|
|
1459
1496
|
`;
|
|
1460
1497
|
|
|
1461
1498
|
// src/providers/AriaLiveProvider/AriaLiveProvider.tsx
|
|
@@ -2168,14 +2205,14 @@ var import_sonner2 = require("sonner");
|
|
|
2168
2205
|
|
|
2169
2206
|
// src/private/components/Toast/Toast.tsx
|
|
2170
2207
|
var import_react8 = require("react");
|
|
2171
|
-
var
|
|
2208
|
+
var import_styled_components16 = __toESM(require("styled-components"));
|
|
2172
2209
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
2173
2210
|
|
|
2174
2211
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
2175
2212
|
var import_type_guards8 = require("@wistia/type-guards");
|
|
2176
|
-
var
|
|
2213
|
+
var import_styled_components14 = __toESM(require("styled-components"));
|
|
2177
2214
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2178
|
-
var ellipsisStyle =
|
|
2215
|
+
var ellipsisStyle = import_styled_components14.css`
|
|
2179
2216
|
overflow: hidden;
|
|
2180
2217
|
text-overflow: ellipsis;
|
|
2181
2218
|
white-space: nowrap;
|
|
@@ -2198,14 +2235,14 @@ var ellipsisStyle = import_styled_components13.css`
|
|
|
2198
2235
|
}
|
|
2199
2236
|
}
|
|
2200
2237
|
`;
|
|
2201
|
-
var ellipsisFlexParentStyle =
|
|
2238
|
+
var ellipsisFlexParentStyle = import_styled_components14.css`
|
|
2202
2239
|
min-width: 0;
|
|
2203
2240
|
`;
|
|
2204
|
-
var EllipsisComponent =
|
|
2241
|
+
var EllipsisComponent = import_styled_components14.default.div`
|
|
2205
2242
|
${ellipsisStyle};
|
|
2206
2243
|
${({ $lines }) => {
|
|
2207
2244
|
if ((0, import_type_guards8.isNotNil)($lines)) {
|
|
2208
|
-
return
|
|
2245
|
+
return import_styled_components14.css`
|
|
2209
2246
|
-webkit-box-orient: vertical;
|
|
2210
2247
|
-webkit-line-clamp: ${$lines};
|
|
2211
2248
|
display: -webkit-box;
|
|
@@ -2226,7 +2263,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
2226
2263
|
Ellipsis.displayName = "Ellipsis";
|
|
2227
2264
|
|
|
2228
2265
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
2229
|
-
var
|
|
2266
|
+
var import_styled_components15 = require("styled-components");
|
|
2230
2267
|
var colorSchemeSchema = [
|
|
2231
2268
|
{ token: "bg-surface", step: "2" },
|
|
2232
2269
|
{ token: "bg-surface-hover", step: "3" },
|
|
@@ -2253,7 +2290,7 @@ var colorSchemeSchema = [
|
|
|
2253
2290
|
{ token: "icon-on-fill", step: "contrast" },
|
|
2254
2291
|
{ token: "focus-ring", step: "9" }
|
|
2255
2292
|
];
|
|
2256
|
-
var defaultScheme =
|
|
2293
|
+
var defaultScheme = import_styled_components15.css`
|
|
2257
2294
|
--wui-color-bg-surface: var(--wui-gray-1);
|
|
2258
2295
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
2259
2296
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -2278,8 +2315,10 @@ var defaultScheme = import_styled_components14.css`
|
|
|
2278
2315
|
--wui-color-icon: var(--wui-gray-11);
|
|
2279
2316
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
2280
2317
|
--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);
|
|
2281
2320
|
`;
|
|
2282
|
-
var navScheme =
|
|
2321
|
+
var navScheme = import_styled_components15.css`
|
|
2283
2322
|
--wui-color-bg-fill-active: var(--wui-blue-5);
|
|
2284
2323
|
--wui-color-bg-fill-hover: var(--wui-blue-4);
|
|
2285
2324
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -2330,21 +2369,25 @@ var getColorScheme = (colorScheme) => {
|
|
|
2330
2369
|
if (colorScheme === "default") {
|
|
2331
2370
|
return defaultScheme;
|
|
2332
2371
|
}
|
|
2333
|
-
return
|
|
2372
|
+
return import_styled_components15.css`
|
|
2334
2373
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
2335
2374
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
2336
2375
|
}).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
|
+
);
|
|
2337
2380
|
`;
|
|
2338
2381
|
};
|
|
2339
2382
|
|
|
2340
2383
|
// src/private/components/Toast/Toast.tsx
|
|
2341
2384
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
2342
|
-
var Message = (0,
|
|
2385
|
+
var Message = (0, import_styled_components16.default)(Ellipsis)`
|
|
2343
2386
|
line-height: var(--wui-typography-label-3-line-height);
|
|
2344
2387
|
font-size: var(--wui-typography-label-3-size);
|
|
2345
2388
|
font-weight: var(--wui-typography-label-3-weight);
|
|
2346
2389
|
`;
|
|
2347
|
-
var MessageWrapper =
|
|
2390
|
+
var MessageWrapper = import_styled_components16.default.div`
|
|
2348
2391
|
display: flex;
|
|
2349
2392
|
flex-grow: 1;
|
|
2350
2393
|
flex-shrink: 1;
|
|
@@ -2357,13 +2400,13 @@ var MessageWrapper = import_styled_components15.default.div`
|
|
|
2357
2400
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
2358
2401
|
}
|
|
2359
2402
|
`;
|
|
2360
|
-
var ActionWrapper =
|
|
2403
|
+
var ActionWrapper = import_styled_components16.default.div`
|
|
2361
2404
|
flex-grow: 0;
|
|
2362
2405
|
flex-shrink: 0;
|
|
2363
2406
|
flex-basis: auto;
|
|
2364
2407
|
margin-right: var(--wui-space-03);
|
|
2365
2408
|
`;
|
|
2366
|
-
var StyledToast =
|
|
2409
|
+
var StyledToast = import_styled_components16.default.div`
|
|
2367
2410
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
2368
2411
|
display: flex;
|
|
2369
2412
|
align-items: center;
|
|
@@ -2446,16 +2489,16 @@ var useToast = () => {
|
|
|
2446
2489
|
|
|
2447
2490
|
// src/components/ActionButton/ActionButton.tsx
|
|
2448
2491
|
var import_react13 = require("react");
|
|
2449
|
-
var
|
|
2492
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
2450
2493
|
|
|
2451
2494
|
// src/components/Button/Button.tsx
|
|
2452
2495
|
var import_react12 = require("react");
|
|
2453
|
-
var
|
|
2496
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
2454
2497
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
2455
2498
|
|
|
2456
2499
|
// src/css/buttonResetCss.tsx
|
|
2457
|
-
var
|
|
2458
|
-
var buttonResetCss =
|
|
2500
|
+
var import_styled_components17 = require("styled-components");
|
|
2501
|
+
var buttonResetCss = import_styled_components17.css`
|
|
2459
2502
|
align-items: center;
|
|
2460
2503
|
background-color: transparent;
|
|
2461
2504
|
background-image: none;
|
|
@@ -2500,8 +2543,8 @@ var buttonResetCss = import_styled_components16.css`
|
|
|
2500
2543
|
`;
|
|
2501
2544
|
|
|
2502
2545
|
// src/components/Button/buttonStyles.tsx
|
|
2503
|
-
var
|
|
2504
|
-
var buttonSmallStyles =
|
|
2546
|
+
var import_styled_components18 = require("styled-components");
|
|
2547
|
+
var buttonSmallStyles = import_styled_components18.css`
|
|
2505
2548
|
--button-padding-vertical: var(--wui-space-01);
|
|
2506
2549
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2507
2550
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2512,7 +2555,7 @@ var buttonSmallStyles = import_styled_components17.css`
|
|
|
2512
2555
|
--button-icon-size: 12px;
|
|
2513
2556
|
--button-label-gap: 4px;
|
|
2514
2557
|
`;
|
|
2515
|
-
var buttonMediumStyles =
|
|
2558
|
+
var buttonMediumStyles = import_styled_components18.css`
|
|
2516
2559
|
--button-padding-vertical: var(--wui-space-02);
|
|
2517
2560
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2518
2561
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2523,7 +2566,7 @@ var buttonMediumStyles = import_styled_components17.css`
|
|
|
2523
2566
|
--button-icon-size: 16px;
|
|
2524
2567
|
--button-label-gap: 6px;
|
|
2525
2568
|
`;
|
|
2526
|
-
var buttonLargeStyles =
|
|
2569
|
+
var buttonLargeStyles = import_styled_components18.css`
|
|
2527
2570
|
--button-padding-vertical: var(--wui-space-02);
|
|
2528
2571
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2529
2572
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2534,7 +2577,7 @@ var buttonLargeStyles = import_styled_components17.css`
|
|
|
2534
2577
|
--button-icon-size: 24px;
|
|
2535
2578
|
--button-label-gap: 8px;
|
|
2536
2579
|
`;
|
|
2537
|
-
var buttonExtraLargeStyles =
|
|
2580
|
+
var buttonExtraLargeStyles = import_styled_components18.css`
|
|
2538
2581
|
--button-padding-vertical: var(--wui-space-03);
|
|
2539
2582
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2540
2583
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2545,34 +2588,34 @@ var buttonExtraLargeStyles = import_styled_components17.css`
|
|
|
2545
2588
|
--button-icon-size: 24px;
|
|
2546
2589
|
--button-label-gap: 8px;
|
|
2547
2590
|
`;
|
|
2548
|
-
var ghostButtonVariant =
|
|
2591
|
+
var ghostButtonVariant = import_styled_components18.css`
|
|
2549
2592
|
--button-color-bg: transparent;
|
|
2550
2593
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2551
2594
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2552
2595
|
--button-color-text: var(--wui-color-text-button);
|
|
2553
2596
|
--button-color-icon: var(--wui-color-icon);
|
|
2554
2597
|
`;
|
|
2555
|
-
var outlineButtonVariant =
|
|
2598
|
+
var outlineButtonVariant = import_styled_components18.css`
|
|
2556
2599
|
${ghostButtonVariant};
|
|
2557
2600
|
--button-color-border: var(--wui-color-border);
|
|
2558
2601
|
|
|
2559
2602
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2560
2603
|
`;
|
|
2561
|
-
var softButtonVariant =
|
|
2604
|
+
var softButtonVariant = import_styled_components18.css`
|
|
2562
2605
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2563
2606
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2564
2607
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2565
2608
|
--button-color-text: var(--wui-color-text-button);
|
|
2566
2609
|
--button-color-icon: var(--wui-color-icon);
|
|
2567
2610
|
`;
|
|
2568
|
-
var solidButtonVariant =
|
|
2611
|
+
var solidButtonVariant = import_styled_components18.css`
|
|
2569
2612
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2570
2613
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2571
2614
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2572
2615
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2573
2616
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2574
2617
|
`;
|
|
2575
|
-
var disabledButtonVariant =
|
|
2618
|
+
var disabledButtonVariant = import_styled_components18.css`
|
|
2576
2619
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2577
2620
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2578
2621
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2580,7 +2623,7 @@ var disabledButtonVariant = import_styled_components17.css`
|
|
|
2580
2623
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2581
2624
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2582
2625
|
`;
|
|
2583
|
-
var pressedButtonVariant =
|
|
2626
|
+
var pressedButtonVariant = import_styled_components18.css`
|
|
2584
2627
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2585
2628
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2586
2629
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2588,7 +2631,7 @@ var pressedButtonVariant = import_styled_components17.css`
|
|
|
2588
2631
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2589
2632
|
--button-color-border: var(--wui-color-border-selected);
|
|
2590
2633
|
`;
|
|
2591
|
-
var buttonBaseStyles =
|
|
2634
|
+
var buttonBaseStyles = import_styled_components18.css`
|
|
2592
2635
|
border-radius: var(--wui-border-radius-rounded);
|
|
2593
2636
|
font-family: var(--button-typography-family);
|
|
2594
2637
|
font-size: var(--button-typography-size);
|
|
@@ -2656,7 +2699,7 @@ var buttonSizeStyles = {
|
|
|
2656
2699
|
|
|
2657
2700
|
// src/components/Icon/Icon.tsx
|
|
2658
2701
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
2659
|
-
var
|
|
2702
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
2660
2703
|
|
|
2661
2704
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2662
2705
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -5841,7 +5884,7 @@ var iconSizeMap = {
|
|
|
5841
5884
|
xl: "32",
|
|
5842
5885
|
xxl: "48"
|
|
5843
5886
|
};
|
|
5844
|
-
var StyledIcon =
|
|
5887
|
+
var StyledIcon = import_styled_components19.default.svg`
|
|
5845
5888
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
5846
5889
|
`;
|
|
5847
5890
|
var Icon = ({
|
|
@@ -5892,7 +5935,7 @@ Icon.displayName = "Icon";
|
|
|
5892
5935
|
// src/components/Link/Link.tsx
|
|
5893
5936
|
var import_react11 = require("react");
|
|
5894
5937
|
var import_type_guards12 = require("@wistia/type-guards");
|
|
5895
|
-
var
|
|
5938
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
5896
5939
|
var import_react_router_dom = require("react-router-dom");
|
|
5897
5940
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5898
5941
|
var generateHref = (href, type, disabled) => {
|
|
@@ -5910,7 +5953,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
5910
5953
|
};
|
|
5911
5954
|
var isButton = (props) => (0, import_type_guards12.isUndefined)(props.href);
|
|
5912
5955
|
var isLink = (props) => (0, import_type_guards12.isNotUndefined)(props.href);
|
|
5913
|
-
var StyledLink =
|
|
5956
|
+
var StyledLink = import_styled_components20.default.a`
|
|
5914
5957
|
--link-icon-size: 14px;
|
|
5915
5958
|
|
|
5916
5959
|
${({ href }) => (0, import_type_guards12.isNil)(href) && buttonResetCss};
|
|
@@ -6021,7 +6064,7 @@ Link.displayName = "Link";
|
|
|
6021
6064
|
// src/components/Button/Button.tsx
|
|
6022
6065
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
6023
6066
|
var isLink2 = (props) => (0, import_type_guards13.isNotUndefined)(props.href);
|
|
6024
|
-
var StyledButton =
|
|
6067
|
+
var StyledButton = import_styled_components21.default.button`
|
|
6025
6068
|
${buttonResetCss}
|
|
6026
6069
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
6027
6070
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
@@ -6031,7 +6074,7 @@ var StyledButton = import_styled_components20.default.button`
|
|
|
6031
6074
|
position: relative;
|
|
6032
6075
|
text-align: center;
|
|
6033
6076
|
`;
|
|
6034
|
-
var StyledButtonContent =
|
|
6077
|
+
var StyledButtonContent = import_styled_components21.default.div`
|
|
6035
6078
|
align-items: center;
|
|
6036
6079
|
display: inline-flex;
|
|
6037
6080
|
flex-grow: 1;
|
|
@@ -6043,10 +6086,10 @@ var StyledButtonContent = import_styled_components20.default.div`
|
|
|
6043
6086
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
6044
6087
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
6045
6088
|
`;
|
|
6046
|
-
var StyledButtonContentLabel =
|
|
6089
|
+
var StyledButtonContentLabel = import_styled_components21.default.span`
|
|
6047
6090
|
flex: 1;
|
|
6048
6091
|
`;
|
|
6049
|
-
var StyledButtonLoading =
|
|
6092
|
+
var StyledButtonLoading = import_styled_components21.default.div`
|
|
6050
6093
|
position: absolute;
|
|
6051
6094
|
display: flex;
|
|
6052
6095
|
`;
|
|
@@ -6159,7 +6202,7 @@ Button.displayName = "Button";
|
|
|
6159
6202
|
|
|
6160
6203
|
// src/components/ActionButton/ActionButton.tsx
|
|
6161
6204
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
6162
|
-
var StyledActionButton = (0,
|
|
6205
|
+
var StyledActionButton = (0, import_styled_components22.default)(Button)`
|
|
6163
6206
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6164
6207
|
display: grid;
|
|
6165
6208
|
grid-template-columns: 24px 1fr;
|
|
@@ -6200,7 +6243,7 @@ var StyledActionButton = (0, import_styled_components21.default)(Button)`
|
|
|
6200
6243
|
}
|
|
6201
6244
|
}
|
|
6202
6245
|
`;
|
|
6203
|
-
var StyledMainIcon =
|
|
6246
|
+
var StyledMainIcon = import_styled_components22.default.div`
|
|
6204
6247
|
grid-column: 1;
|
|
6205
6248
|
grid-row: 1;
|
|
6206
6249
|
width: 24px;
|
|
@@ -6212,7 +6255,7 @@ var StyledMainIcon = import_styled_components21.default.div`
|
|
|
6212
6255
|
height: 24px;
|
|
6213
6256
|
}
|
|
6214
6257
|
`;
|
|
6215
|
-
var StyledSecondaryIcon =
|
|
6258
|
+
var StyledSecondaryIcon = import_styled_components22.default.div`
|
|
6216
6259
|
grid-column: 2;
|
|
6217
6260
|
grid-row: 1;
|
|
6218
6261
|
width: 100%;
|
|
@@ -6220,7 +6263,7 @@ var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
|
6220
6263
|
justify-content: flex-end;
|
|
6221
6264
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
6222
6265
|
|
|
6223
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
6266
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components22.css`
|
|
6224
6267
|
will-change: transform;
|
|
6225
6268
|
opacity: 0;
|
|
6226
6269
|
transform: translateX(-16px);
|
|
@@ -6236,7 +6279,7 @@ var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
|
6236
6279
|
height: 24px;
|
|
6237
6280
|
}
|
|
6238
6281
|
`;
|
|
6239
|
-
var StyledLabel =
|
|
6282
|
+
var StyledLabel = import_styled_components22.default.span`
|
|
6240
6283
|
font-family: var(--wui-typography-heading-4-family);
|
|
6241
6284
|
font-size: var(--wui-typography-heading-4-size);
|
|
6242
6285
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -6292,10 +6335,10 @@ ActionButton.displayName = "ActionButton";
|
|
|
6292
6335
|
// src/components/Avatar/Avatar.tsx
|
|
6293
6336
|
var import_react14 = require("react");
|
|
6294
6337
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6295
|
-
var
|
|
6338
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6296
6339
|
|
|
6297
6340
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
6298
|
-
var
|
|
6341
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
6299
6342
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
6300
6343
|
var colorSchemeOptions = [
|
|
6301
6344
|
"inherit",
|
|
@@ -6314,7 +6357,7 @@ var colorSchemeOptions = [
|
|
|
6314
6357
|
"vendor-marketo",
|
|
6315
6358
|
"vendor-pardot"
|
|
6316
6359
|
];
|
|
6317
|
-
var StyledColorSchemeWrapper =
|
|
6360
|
+
var StyledColorSchemeWrapper = import_styled_components23.default.div`
|
|
6318
6361
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
6319
6362
|
`;
|
|
6320
6363
|
var ColorSchemeWrapper = ({
|
|
@@ -6349,7 +6392,7 @@ var formatNameForDisplay = (name) => {
|
|
|
6349
6392
|
|
|
6350
6393
|
// src/components/Avatar/Avatar.tsx
|
|
6351
6394
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
6352
|
-
var AvatarImage =
|
|
6395
|
+
var AvatarImage = import_styled_components24.default.img`
|
|
6353
6396
|
align-items: center;
|
|
6354
6397
|
background-color: white;
|
|
6355
6398
|
border-radius: 50%;
|
|
@@ -6377,7 +6420,7 @@ var avatarSizeMap = {
|
|
|
6377
6420
|
lg: 32
|
|
6378
6421
|
};
|
|
6379
6422
|
var fontSizeScaleMultiplier = 0.55;
|
|
6380
|
-
var InitialsContainer =
|
|
6423
|
+
var InitialsContainer = import_styled_components24.default.div`
|
|
6381
6424
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6382
6425
|
align-items: center;
|
|
6383
6426
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -6399,7 +6442,7 @@ var InitialsContainer = import_styled_components23.default.div`
|
|
|
6399
6442
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
6400
6443
|
}
|
|
6401
6444
|
`;
|
|
6402
|
-
var AvatarWrapper =
|
|
6445
|
+
var AvatarWrapper = import_styled_components24.default.div`
|
|
6403
6446
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
6404
6447
|
`;
|
|
6405
6448
|
var chooseColorScheme = (name) => {
|
|
@@ -6466,10 +6509,10 @@ Avatar.displayName = "Avatar";
|
|
|
6466
6509
|
|
|
6467
6510
|
// src/components/Badge/Badge.tsx
|
|
6468
6511
|
var import_react15 = require("react");
|
|
6469
|
-
var
|
|
6512
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
6470
6513
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
6471
6514
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
6472
|
-
var StyledBadge =
|
|
6515
|
+
var StyledBadge = import_styled_components25.default.div`
|
|
6473
6516
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6474
6517
|
align-items: center;
|
|
6475
6518
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -6511,7 +6554,7 @@ Badge.displayName = "Badge";
|
|
|
6511
6554
|
|
|
6512
6555
|
// src/components/Box/Box.tsx
|
|
6513
6556
|
var import_react16 = require("react");
|
|
6514
|
-
var
|
|
6557
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
6515
6558
|
var import_type_guards17 = require("@wistia/type-guards");
|
|
6516
6559
|
|
|
6517
6560
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -6563,7 +6606,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6563
6606
|
}
|
|
6564
6607
|
return void 0;
|
|
6565
6608
|
};
|
|
6566
|
-
var StyledBoxComponent =
|
|
6609
|
+
var StyledBoxComponent = import_styled_components26.default.div`
|
|
6567
6610
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6568
6611
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6569
6612
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6650,9 +6693,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
6650
6693
|
|
|
6651
6694
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6652
6695
|
var import_react17 = require("react");
|
|
6653
|
-
var
|
|
6696
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6654
6697
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
6655
|
-
var StyledBreadcrumbs =
|
|
6698
|
+
var StyledBreadcrumbs = import_styled_components27.default.nav`
|
|
6656
6699
|
display: flex;
|
|
6657
6700
|
align-items: center;
|
|
6658
6701
|
gap: var(--wui-space-01);
|
|
@@ -6697,9 +6740,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
6697
6740
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6698
6741
|
|
|
6699
6742
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6700
|
-
var
|
|
6743
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6701
6744
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6702
|
-
var BreadcrumbContent =
|
|
6745
|
+
var BreadcrumbContent = import_styled_components28.default.span`
|
|
6703
6746
|
overflow: hidden;
|
|
6704
6747
|
white-space: nowrap;
|
|
6705
6748
|
display: block;
|
|
@@ -6731,7 +6774,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6731
6774
|
};
|
|
6732
6775
|
|
|
6733
6776
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6734
|
-
var
|
|
6777
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6735
6778
|
var import_type_guards18 = require("@wistia/type-guards");
|
|
6736
6779
|
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6737
6780
|
var getAlignment = (align) => {
|
|
@@ -6746,7 +6789,7 @@ var getAlignment = (align) => {
|
|
|
6746
6789
|
}
|
|
6747
6790
|
return "flex-start";
|
|
6748
6791
|
};
|
|
6749
|
-
var ButtonGroupComponent =
|
|
6792
|
+
var ButtonGroupComponent = import_styled_components29.default.div`
|
|
6750
6793
|
display: flex;
|
|
6751
6794
|
|
|
6752
6795
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6788,9 +6831,9 @@ var ButtonGroup = ({
|
|
|
6788
6831
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6789
6832
|
|
|
6790
6833
|
// src/components/Card/Card.tsx
|
|
6791
|
-
var
|
|
6834
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6792
6835
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6793
|
-
var StyledCard = (0,
|
|
6836
|
+
var StyledCard = (0, import_styled_components30.default)(Box)`
|
|
6794
6837
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6795
6838
|
box-sizing: border-box;
|
|
6796
6839
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6841,53 +6884,53 @@ Card.displayName = "Card";
|
|
|
6841
6884
|
// src/components/Checkbox/Checkbox.tsx
|
|
6842
6885
|
var import_react19 = require("react");
|
|
6843
6886
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
6844
|
-
var
|
|
6887
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
6845
6888
|
var import_type_guards20 = require("@wistia/type-guards");
|
|
6846
6889
|
|
|
6847
6890
|
// src/components/Label/Label.tsx
|
|
6848
|
-
var
|
|
6891
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
6849
6892
|
|
|
6850
6893
|
// src/components/Heading/Heading.tsx
|
|
6851
6894
|
var import_react18 = require("react");
|
|
6852
|
-
var
|
|
6895
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
6853
6896
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6854
|
-
var heroStyle =
|
|
6897
|
+
var heroStyle = import_styled_components31.css`
|
|
6855
6898
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6856
6899
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
6857
6900
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
6858
6901
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
6859
6902
|
`;
|
|
6860
|
-
var heading1TextStyle =
|
|
6903
|
+
var heading1TextStyle = import_styled_components31.css`
|
|
6861
6904
|
--font-family: var(--wui-typography-heading-1-family);
|
|
6862
6905
|
--font-size: var(--wui-typography-heading-1-size);
|
|
6863
6906
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
6864
6907
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
6865
6908
|
`;
|
|
6866
|
-
var heading2TextStyle =
|
|
6909
|
+
var heading2TextStyle = import_styled_components31.css`
|
|
6867
6910
|
--font-family: var(--wui-typography-heading-2-family);
|
|
6868
6911
|
--font-size: var(--wui-typography-heading-2-size);
|
|
6869
6912
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
6870
6913
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
6871
6914
|
`;
|
|
6872
|
-
var heading3TextStyle =
|
|
6915
|
+
var heading3TextStyle = import_styled_components31.css`
|
|
6873
6916
|
--font-family: var(--wui-typography-heading-3-family);
|
|
6874
6917
|
--font-size: var(--wui-typography-heading-3-size);
|
|
6875
6918
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
6876
6919
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
6877
6920
|
`;
|
|
6878
|
-
var heading4TextStyle =
|
|
6921
|
+
var heading4TextStyle = import_styled_components31.css`
|
|
6879
6922
|
--font-family: var(--wui-typography-heading-4-family);
|
|
6880
6923
|
--font-size: var(--wui-typography-heading-4-size);
|
|
6881
6924
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
6882
6925
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
6883
6926
|
`;
|
|
6884
|
-
var heading5TextStyle =
|
|
6927
|
+
var heading5TextStyle = import_styled_components31.css`
|
|
6885
6928
|
--font-family: var(--wui-typography-heading-5-family);
|
|
6886
6929
|
--font-size: var(--wui-typography-heading-5-size);
|
|
6887
6930
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
6888
6931
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
6889
6932
|
`;
|
|
6890
|
-
var heading6TextStyle =
|
|
6933
|
+
var heading6TextStyle = import_styled_components31.css`
|
|
6891
6934
|
--font-family: var(--wui-typography-heading-6-family);
|
|
6892
6935
|
--font-size: var(--wui-typography-heading-6-size);
|
|
6893
6936
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -6903,7 +6946,7 @@ var variantStyleMap = {
|
|
|
6903
6946
|
heading6: heading6TextStyle
|
|
6904
6947
|
};
|
|
6905
6948
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6906
|
-
var StyledHeading =
|
|
6949
|
+
var StyledHeading = import_styled_components31.default.div`
|
|
6907
6950
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6908
6951
|
font-family: var(--font-family);
|
|
6909
6952
|
font-size: var(--font-size);
|
|
@@ -6912,16 +6955,16 @@ var StyledHeading = import_styled_components30.default.div`
|
|
|
6912
6955
|
color: var(--wui-color-text);
|
|
6913
6956
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
6914
6957
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6915
|
-
${({ $inline }) => $inline &&
|
|
6958
|
+
${({ $inline }) => $inline && import_styled_components31.css`
|
|
6916
6959
|
display: inline-block;
|
|
6917
6960
|
`}
|
|
6918
|
-
${({ $disabled }) => $disabled &&
|
|
6961
|
+
${({ $disabled }) => $disabled && import_styled_components31.css`
|
|
6919
6962
|
color: var(--wui-color-text-disabled);
|
|
6920
6963
|
`}
|
|
6921
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6964
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components31.css`
|
|
6922
6965
|
user-select: none;
|
|
6923
6966
|
`}
|
|
6924
|
-
${({ $align }) =>
|
|
6967
|
+
${({ $align }) => import_styled_components31.css`
|
|
6925
6968
|
text-align: ${$align};
|
|
6926
6969
|
`}
|
|
6927
6970
|
margin: 0;
|
|
@@ -6967,7 +7010,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
6967
7010
|
|
|
6968
7011
|
// src/components/Label/Label.tsx
|
|
6969
7012
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
6970
|
-
var requiredStyle =
|
|
7013
|
+
var requiredStyle = import_styled_components32.css`
|
|
6971
7014
|
&::after {
|
|
6972
7015
|
color: var(--wui-color-text-error);
|
|
6973
7016
|
display: inline;
|
|
@@ -6975,10 +7018,10 @@ var requiredStyle = import_styled_components31.css`
|
|
|
6975
7018
|
content: '*';
|
|
6976
7019
|
}
|
|
6977
7020
|
`;
|
|
6978
|
-
var disabledStyle =
|
|
7021
|
+
var disabledStyle = import_styled_components32.css`
|
|
6979
7022
|
color: var(--wui-color-text-disabled);
|
|
6980
7023
|
`;
|
|
6981
|
-
var StyledLabel2 = (0,
|
|
7024
|
+
var StyledLabel2 = (0, import_styled_components32.default)(Heading).attrs({
|
|
6982
7025
|
variant: "heading6",
|
|
6983
7026
|
renderAs: "label"
|
|
6984
7027
|
})`
|
|
@@ -7021,10 +7064,10 @@ var Label = ({
|
|
|
7021
7064
|
Label.displayName = "Label";
|
|
7022
7065
|
|
|
7023
7066
|
// src/components/Label/LabelDescription.tsx
|
|
7024
|
-
var
|
|
7067
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
7025
7068
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
7026
7069
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
7027
|
-
var StyledLabelDescription =
|
|
7070
|
+
var StyledLabelDescription = import_styled_components33.default.div`
|
|
7028
7071
|
color: var(--wui-color-text-secondary);
|
|
7029
7072
|
font-size: var(--wui-typography-body-4-size);
|
|
7030
7073
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -7060,7 +7103,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
|
7060
7103
|
)
|
|
7061
7104
|
}
|
|
7062
7105
|
);
|
|
7063
|
-
var StyledCheckboxWrapper =
|
|
7106
|
+
var StyledCheckboxWrapper = import_styled_components34.default.div`
|
|
7064
7107
|
display: flex;
|
|
7065
7108
|
align-items: center;
|
|
7066
7109
|
cursor: pointer;
|
|
@@ -7074,7 +7117,7 @@ var StyledCheckboxWrapper = import_styled_components33.default.div`
|
|
|
7074
7117
|
background-color: #efefef;
|
|
7075
7118
|
}
|
|
7076
7119
|
`;
|
|
7077
|
-
var StyledCheckboxRoot = (0,
|
|
7120
|
+
var StyledCheckboxRoot = (0, import_styled_components34.default)(import_react_checkbox.Root)`
|
|
7078
7121
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
7079
7122
|
background-color: var(--wui-color-bg-fill-white);
|
|
7080
7123
|
min-width: 16px;
|
|
@@ -7108,10 +7151,10 @@ var StyledCheckboxRoot = (0, import_styled_components33.default)(import_react_ch
|
|
|
7108
7151
|
/* TODO Lamp to design focus state */
|
|
7109
7152
|
}
|
|
7110
7153
|
`;
|
|
7111
|
-
var StyledCheckboxIndicator = (0,
|
|
7154
|
+
var StyledCheckboxIndicator = (0, import_styled_components34.default)(import_react_checkbox.Indicator)`
|
|
7112
7155
|
display: flex;
|
|
7113
7156
|
`;
|
|
7114
|
-
var StyledLabelWrapper =
|
|
7157
|
+
var StyledLabelWrapper = import_styled_components34.default.div`
|
|
7115
7158
|
display: flex;
|
|
7116
7159
|
flex-direction: column;
|
|
7117
7160
|
margin-left: var(--wui-space-02);
|
|
@@ -7179,10 +7222,10 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
7179
7222
|
Checkbox.displayName = "Checkbox";
|
|
7180
7223
|
|
|
7181
7224
|
// src/components/DataCards/DataCard.tsx
|
|
7182
|
-
var
|
|
7225
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
7183
7226
|
var import_type_guards21 = require("@wistia/type-guards");
|
|
7184
7227
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
7185
|
-
var StyledDataCard =
|
|
7228
|
+
var StyledDataCard = import_styled_components35.default.div`
|
|
7186
7229
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7187
7230
|
display: grid;
|
|
7188
7231
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -7195,7 +7238,7 @@ var StyledDataCard = import_styled_components34.default.div`
|
|
|
7195
7238
|
border-radius: var(--wui-border-radius-02);
|
|
7196
7239
|
position: relative;
|
|
7197
7240
|
`;
|
|
7198
|
-
var shimmer =
|
|
7241
|
+
var shimmer = import_styled_components35.keyframes`
|
|
7199
7242
|
0% {
|
|
7200
7243
|
background-position: 200% 0;
|
|
7201
7244
|
}
|
|
@@ -7203,7 +7246,7 @@ var shimmer = import_styled_components34.keyframes`
|
|
|
7203
7246
|
background-position: -200% 0;
|
|
7204
7247
|
}
|
|
7205
7248
|
`;
|
|
7206
|
-
var LoadingBackground =
|
|
7249
|
+
var LoadingBackground = import_styled_components35.default.div`
|
|
7207
7250
|
background: linear-gradient(
|
|
7208
7251
|
90deg,
|
|
7209
7252
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -7214,27 +7257,27 @@ var LoadingBackground = import_styled_components34.default.div`
|
|
|
7214
7257
|
animation: ${shimmer} 1.5s infinite;
|
|
7215
7258
|
border-radius: var(--wui-border-radius-01);
|
|
7216
7259
|
`;
|
|
7217
|
-
var StyledLoadingLabel = (0,
|
|
7260
|
+
var StyledLoadingLabel = (0, import_styled_components35.default)(LoadingBackground)`
|
|
7218
7261
|
width: 80px;
|
|
7219
7262
|
height: var(--wui-typography-heading-6-line-height);
|
|
7220
7263
|
`;
|
|
7221
|
-
var StyledLoadingValue = (0,
|
|
7264
|
+
var StyledLoadingValue = (0, import_styled_components35.default)(LoadingBackground)`
|
|
7222
7265
|
width: 90%;
|
|
7223
7266
|
height: var(--wui-typography-heading-3-line-height);
|
|
7224
7267
|
`;
|
|
7225
|
-
var StyledLabel3 = (0,
|
|
7268
|
+
var StyledLabel3 = (0, import_styled_components35.default)(Heading)`
|
|
7226
7269
|
grid-area: label;
|
|
7227
7270
|
`;
|
|
7228
|
-
var StyledValue = (0,
|
|
7271
|
+
var StyledValue = (0, import_styled_components35.default)(Heading)`
|
|
7229
7272
|
grid-area: value;
|
|
7230
7273
|
`;
|
|
7231
|
-
var StyledSlot =
|
|
7274
|
+
var StyledSlot = import_styled_components35.default.div`
|
|
7232
7275
|
display: flex;
|
|
7233
7276
|
justify-content: flex-end;
|
|
7234
7277
|
grid-area: slot;
|
|
7235
7278
|
align-self: center;
|
|
7236
7279
|
`;
|
|
7237
|
-
var StyledDataCardTrendContainer =
|
|
7280
|
+
var StyledDataCardTrendContainer = import_styled_components35.default.div`
|
|
7238
7281
|
position: absolute;
|
|
7239
7282
|
bottom: var(--wui-space-01);
|
|
7240
7283
|
right: var(--wui-space-01);
|
|
@@ -7277,9 +7320,9 @@ var DataCard = ({
|
|
|
7277
7320
|
DataCard.displayName = "DataCard";
|
|
7278
7321
|
|
|
7279
7322
|
// src/components/DataCards/DataCards.tsx
|
|
7280
|
-
var
|
|
7323
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7281
7324
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
7282
|
-
var StyledDataCards = (0,
|
|
7325
|
+
var StyledDataCards = (0, import_styled_components36.default)(Box)`
|
|
7283
7326
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7284
7327
|
margin-top: 0; /* Remove default <dl> style */
|
|
7285
7328
|
> * {
|
|
@@ -7311,93 +7354,93 @@ var DataCards = ({
|
|
|
7311
7354
|
DataCards.displayName = "DataCards";
|
|
7312
7355
|
|
|
7313
7356
|
// src/components/DataCards/DataCardTrend.tsx
|
|
7314
|
-
var
|
|
7357
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7315
7358
|
|
|
7316
7359
|
// src/components/Text/Text.tsx
|
|
7317
7360
|
var import_react20 = require("react");
|
|
7318
|
-
var
|
|
7361
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7319
7362
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
7320
|
-
var bodyBoldStyles =
|
|
7363
|
+
var bodyBoldStyles = import_styled_components37.css`
|
|
7321
7364
|
> strong,
|
|
7322
7365
|
b {
|
|
7323
7366
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
7324
7367
|
}
|
|
7325
7368
|
`;
|
|
7326
|
-
var labelBoldStyles =
|
|
7369
|
+
var labelBoldStyles = import_styled_components37.css`
|
|
7327
7370
|
> strong,
|
|
7328
7371
|
b {
|
|
7329
7372
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7330
7373
|
}
|
|
7331
7374
|
`;
|
|
7332
|
-
var body1TextStyle =
|
|
7375
|
+
var body1TextStyle = import_styled_components37.css`
|
|
7333
7376
|
--font-family: var(--wui-typography-body-1-family);
|
|
7334
7377
|
--font-size: var(--wui-typography-body-1-size);
|
|
7335
7378
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
7336
7379
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
7337
7380
|
${bodyBoldStyles}
|
|
7338
7381
|
`;
|
|
7339
|
-
var body2TextStyle =
|
|
7382
|
+
var body2TextStyle = import_styled_components37.css`
|
|
7340
7383
|
--font-family: var(--wui-typography-body-2-family);
|
|
7341
7384
|
--font-size: var(--wui-typography-body-2-size);
|
|
7342
7385
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
7343
7386
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
7344
7387
|
${bodyBoldStyles}
|
|
7345
7388
|
`;
|
|
7346
|
-
var body3TextStyle =
|
|
7389
|
+
var body3TextStyle = import_styled_components37.css`
|
|
7347
7390
|
--font-family: var(--wui-typography-body-3-family);
|
|
7348
7391
|
--font-size: var(--wui-typography-body-3-size);
|
|
7349
7392
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
7350
7393
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
7351
7394
|
${bodyBoldStyles}
|
|
7352
7395
|
`;
|
|
7353
|
-
var body4TextStyle =
|
|
7396
|
+
var body4TextStyle = import_styled_components37.css`
|
|
7354
7397
|
--font-family: var(--wui-typography-body-4-family);
|
|
7355
7398
|
--font-size: var(--wui-typography-body-4-size);
|
|
7356
7399
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
7357
7400
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
7358
7401
|
${bodyBoldStyles}
|
|
7359
7402
|
`;
|
|
7360
|
-
var label1TextStyle =
|
|
7403
|
+
var label1TextStyle = import_styled_components37.css`
|
|
7361
7404
|
--font-family: var(--wui-typography-label-1-family);
|
|
7362
7405
|
--font-size: var(--wui-typography-label-1-size);
|
|
7363
7406
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
7364
7407
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
7365
7408
|
${labelBoldStyles}
|
|
7366
7409
|
`;
|
|
7367
|
-
var label2TextStyle =
|
|
7410
|
+
var label2TextStyle = import_styled_components37.css`
|
|
7368
7411
|
--font-family: var(--wui-typography-label-2-family);
|
|
7369
7412
|
--font-size: var(--wui-typography-label-2-size);
|
|
7370
7413
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
7371
7414
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
7372
7415
|
${labelBoldStyles}
|
|
7373
7416
|
`;
|
|
7374
|
-
var label3TextStyle =
|
|
7417
|
+
var label3TextStyle = import_styled_components37.css`
|
|
7375
7418
|
--font-family: var(--wui-typography-label-3-family);
|
|
7376
7419
|
--font-size: var(--wui-typography-label-3-size);
|
|
7377
7420
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
7378
7421
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
7379
7422
|
${labelBoldStyles}
|
|
7380
7423
|
`;
|
|
7381
|
-
var label4TextStyle =
|
|
7424
|
+
var label4TextStyle = import_styled_components37.css`
|
|
7382
7425
|
--font-family: var(--wui-typography-label-4-family);
|
|
7383
7426
|
--font-size: var(--wui-typography-label-4-size);
|
|
7384
7427
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
7385
7428
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
7386
7429
|
${labelBoldStyles}
|
|
7387
7430
|
`;
|
|
7388
|
-
var body1MonoTextStyle =
|
|
7431
|
+
var body1MonoTextStyle = import_styled_components37.css`
|
|
7389
7432
|
${body1TextStyle};
|
|
7390
7433
|
--font-family: var(--wui-typography-family-mono);
|
|
7391
7434
|
`;
|
|
7392
|
-
var body2MonoTextStyle =
|
|
7435
|
+
var body2MonoTextStyle = import_styled_components37.css`
|
|
7393
7436
|
${body2TextStyle};
|
|
7394
7437
|
--font-family: var(--wui-typography-family-mono);
|
|
7395
7438
|
`;
|
|
7396
|
-
var body3MonoTextStyle =
|
|
7439
|
+
var body3MonoTextStyle = import_styled_components37.css`
|
|
7397
7440
|
${body3TextStyle};
|
|
7398
7441
|
--font-family: var(--wui-typography-family-mono);
|
|
7399
7442
|
`;
|
|
7400
|
-
var body4MonoTextStyle =
|
|
7443
|
+
var body4MonoTextStyle = import_styled_components37.css`
|
|
7401
7444
|
${body4TextStyle};
|
|
7402
7445
|
--font-family: var(--wui-typography-family-mono);
|
|
7403
7446
|
`;
|
|
@@ -7415,7 +7458,7 @@ var variantStyleMap2 = {
|
|
|
7415
7458
|
label3: label3TextStyle,
|
|
7416
7459
|
label4: label4TextStyle
|
|
7417
7460
|
};
|
|
7418
|
-
var StyledText =
|
|
7461
|
+
var StyledText = import_styled_components37.default.div`
|
|
7419
7462
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7420
7463
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
7421
7464
|
if ($disabled) {
|
|
@@ -7439,19 +7482,19 @@ var StyledText = import_styled_components36.default.div`
|
|
|
7439
7482
|
margin: 0;
|
|
7440
7483
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
7441
7484
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7442
|
-
${({ $inline }) => $inline &&
|
|
7485
|
+
${({ $inline }) => $inline && import_styled_components37.css`
|
|
7443
7486
|
display: inline-block;
|
|
7444
7487
|
`}
|
|
7445
|
-
${({ $disabled }) => $disabled &&
|
|
7488
|
+
${({ $disabled }) => $disabled && import_styled_components37.css`
|
|
7446
7489
|
--text-color: var(--wui-color-text-disabled);
|
|
7447
7490
|
`}
|
|
7448
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7491
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
|
|
7449
7492
|
user-select: none;
|
|
7450
7493
|
`}
|
|
7451
|
-
${({ $align }) =>
|
|
7494
|
+
${({ $align }) => import_styled_components37.css`
|
|
7452
7495
|
text-align: ${$align};
|
|
7453
7496
|
`}
|
|
7454
|
-
${({ as }) => as === "p" &&
|
|
7497
|
+
${({ as }) => as === "p" && import_styled_components37.css`
|
|
7455
7498
|
display: block;
|
|
7456
7499
|
`}
|
|
7457
7500
|
`;
|
|
@@ -7492,7 +7535,7 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7492
7535
|
|
|
7493
7536
|
// src/components/DataCards/DataCardTrend.tsx
|
|
7494
7537
|
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
7495
|
-
var StyledDataCardTrend =
|
|
7538
|
+
var StyledDataCardTrend = import_styled_components38.default.div`
|
|
7496
7539
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
7497
7540
|
background: var(--wui-color-bg-app);
|
|
7498
7541
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -7528,22 +7571,22 @@ var DataCardTrend = ({
|
|
|
7528
7571
|
};
|
|
7529
7572
|
|
|
7530
7573
|
// src/components/Divider/Divider.tsx
|
|
7531
|
-
var
|
|
7574
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7532
7575
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
7533
|
-
var horizontalBorderCss =
|
|
7576
|
+
var horizontalBorderCss = import_styled_components39.css`
|
|
7534
7577
|
border-top-color: var(--wui-color-border);
|
|
7535
7578
|
border-top-style: solid;
|
|
7536
7579
|
border-top-width: 1px;
|
|
7537
7580
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
7538
7581
|
height: 0;
|
|
7539
7582
|
`;
|
|
7540
|
-
var verticalBorderCss =
|
|
7583
|
+
var verticalBorderCss = import_styled_components39.css`
|
|
7541
7584
|
background-color: var(--wui-color-border);
|
|
7542
7585
|
max-width: 1px;
|
|
7543
7586
|
min-height: 100%;
|
|
7544
7587
|
width: 1px;
|
|
7545
7588
|
`;
|
|
7546
|
-
var DividerComponent =
|
|
7589
|
+
var DividerComponent = import_styled_components39.default.div`
|
|
7547
7590
|
${({ $orientation }) => {
|
|
7548
7591
|
switch ($orientation) {
|
|
7549
7592
|
case "vertical":
|
|
@@ -7571,15 +7614,15 @@ var Divider = ({
|
|
|
7571
7614
|
Divider.displayName = "Divider";
|
|
7572
7615
|
|
|
7573
7616
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
7574
|
-
var
|
|
7617
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
7575
7618
|
var import_react22 = require("react");
|
|
7576
7619
|
|
|
7577
7620
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7578
|
-
var
|
|
7621
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7579
7622
|
var import_type_guards22 = require("@wistia/type-guards");
|
|
7580
7623
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
7581
|
-
var VisuallyHidden =
|
|
7582
|
-
var VisuallyHiddenButFocusable =
|
|
7624
|
+
var VisuallyHidden = import_styled_components40.default.div({ ...visuallyHiddenStyle });
|
|
7625
|
+
var VisuallyHiddenButFocusable = import_styled_components40.default.div({
|
|
7583
7626
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
7584
7627
|
});
|
|
7585
7628
|
var ScreenReaderOnly = ({
|
|
@@ -7598,16 +7641,16 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
7598
7641
|
|
|
7599
7642
|
// src/components/Tooltip/Tooltip.tsx
|
|
7600
7643
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
7601
|
-
var
|
|
7644
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
7602
7645
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
7603
|
-
var CompactTooltipStyles =
|
|
7646
|
+
var CompactTooltipStyles = import_styled_components41.css`
|
|
7604
7647
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
7605
7648
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
7606
7649
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
7607
7650
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
7608
7651
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
7609
7652
|
`;
|
|
7610
|
-
var StyledContent = (0,
|
|
7653
|
+
var StyledContent = (0, import_styled_components41.default)(import_react_tooltip2.Content)`
|
|
7611
7654
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
7612
7655
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
7613
7656
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -7703,10 +7746,10 @@ Tooltip.displayName = "Tooltip";
|
|
|
7703
7746
|
|
|
7704
7747
|
// src/components/Input/Input.tsx
|
|
7705
7748
|
var import_react21 = require("react");
|
|
7706
|
-
var
|
|
7749
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
7707
7750
|
var import_type_guards23 = require("@wistia/type-guards");
|
|
7708
7751
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7709
|
-
var inputStyles =
|
|
7752
|
+
var inputStyles = import_styled_components42.css`
|
|
7710
7753
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7711
7754
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7712
7755
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7747,7 +7790,7 @@ var inputStyles = import_styled_components41.css`
|
|
|
7747
7790
|
}
|
|
7748
7791
|
}
|
|
7749
7792
|
`;
|
|
7750
|
-
var StyledInputContainer =
|
|
7793
|
+
var StyledInputContainer = import_styled_components42.default.div`
|
|
7751
7794
|
display: inline-flex;
|
|
7752
7795
|
position: relative;
|
|
7753
7796
|
${inputStyles};
|
|
@@ -7866,7 +7909,7 @@ Input.displayName = "Input";
|
|
|
7866
7909
|
|
|
7867
7910
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
7868
7911
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
7869
|
-
var StyledInput = (0,
|
|
7912
|
+
var StyledInput = (0, import_styled_components43.default)(Input)`
|
|
7870
7913
|
:not([rows]) {
|
|
7871
7914
|
min-height: unset;
|
|
7872
7915
|
}
|
|
@@ -7886,7 +7929,7 @@ var StyledInput = (0, import_styled_components42.default)(Input)`
|
|
|
7886
7929
|
height: ${({ $height }) => `${$height}px`};
|
|
7887
7930
|
}
|
|
7888
7931
|
`;
|
|
7889
|
-
var editableStyles =
|
|
7932
|
+
var editableStyles = import_styled_components43.css`
|
|
7890
7933
|
&:has(+ :focus-within) {
|
|
7891
7934
|
background: var(--wui-color-bg-surface-hover);
|
|
7892
7935
|
}
|
|
@@ -7896,7 +7939,7 @@ var editableStyles = import_styled_components42.css`
|
|
|
7896
7939
|
cursor: pointer;
|
|
7897
7940
|
}
|
|
7898
7941
|
`;
|
|
7899
|
-
var StyledHeading2 = (0,
|
|
7942
|
+
var StyledHeading2 = (0, import_styled_components43.default)(Heading)`
|
|
7900
7943
|
width: 100%;
|
|
7901
7944
|
border-radius: var(--wui-border-radius-02);
|
|
7902
7945
|
padding: var(--wui-space-02);
|
|
@@ -8004,15 +8047,15 @@ var EditableHeading = ({
|
|
|
8004
8047
|
|
|
8005
8048
|
// src/components/Form/Form.tsx
|
|
8006
8049
|
var import_react24 = require("react");
|
|
8007
|
-
var
|
|
8050
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
8008
8051
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
8009
8052
|
|
|
8010
8053
|
// src/components/Stack/Stack.tsx
|
|
8011
8054
|
var import_react23 = require("react");
|
|
8012
|
-
var
|
|
8055
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
8013
8056
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
8014
8057
|
var DEFAULT_ELEMENT4 = "div";
|
|
8015
|
-
var StyledStack =
|
|
8058
|
+
var StyledStack = import_styled_components44.default.div`
|
|
8016
8059
|
display: flex;
|
|
8017
8060
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
8018
8061
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -8038,7 +8081,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
8038
8081
|
|
|
8039
8082
|
// src/components/Form/Form.tsx
|
|
8040
8083
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
8041
|
-
var StyledForm =
|
|
8084
|
+
var StyledForm = import_styled_components45.default.form`
|
|
8042
8085
|
--form-default-width: 690px;
|
|
8043
8086
|
|
|
8044
8087
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -8203,20 +8246,20 @@ var FormErrorSummary = ({ description }) => {
|
|
|
8203
8246
|
|
|
8204
8247
|
// src/components/FormField/FormField.tsx
|
|
8205
8248
|
var import_react29 = require("react");
|
|
8206
|
-
var
|
|
8249
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8207
8250
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8208
8251
|
|
|
8209
8252
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
8210
8253
|
var import_react28 = require("react");
|
|
8211
8254
|
|
|
8212
8255
|
// src/components/FormGroup/FormGroup.tsx
|
|
8213
|
-
var
|
|
8256
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
8214
8257
|
var import_react27 = require("react");
|
|
8215
8258
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
8216
|
-
var StyledFieldset =
|
|
8259
|
+
var StyledFieldset = import_styled_components46.default.fieldset`
|
|
8217
8260
|
border: 0;
|
|
8218
8261
|
`;
|
|
8219
|
-
var StyledLegend =
|
|
8262
|
+
var StyledLegend = import_styled_components46.default.legend`
|
|
8220
8263
|
margin-bottom: var(--space-01);
|
|
8221
8264
|
`;
|
|
8222
8265
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -8265,7 +8308,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
8265
8308
|
|
|
8266
8309
|
// src/components/FormField/FormField.tsx
|
|
8267
8310
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
8268
|
-
var StyledFormField =
|
|
8311
|
+
var StyledFormField = import_styled_components47.default.div`
|
|
8269
8312
|
--form-field-spacing: var(--wui-space-01);
|
|
8270
8313
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
8271
8314
|
|
|
@@ -8273,7 +8316,7 @@ var StyledFormField = import_styled_components46.default.div`
|
|
|
8273
8316
|
flex-direction: column;
|
|
8274
8317
|
gap: var(--form-field-spacing);
|
|
8275
8318
|
`;
|
|
8276
|
-
var StyledErrorList =
|
|
8319
|
+
var StyledErrorList = import_styled_components47.default.ul`
|
|
8277
8320
|
margin: 0;
|
|
8278
8321
|
padding: 0;
|
|
8279
8322
|
padding-left: var(--wui-space-04);
|
|
@@ -8387,9 +8430,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
8387
8430
|
|
|
8388
8431
|
// src/components/IconButton/IconButton.tsx
|
|
8389
8432
|
var import_react31 = require("react");
|
|
8390
|
-
var
|
|
8433
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8391
8434
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
8392
|
-
var StyledButton2 = (0,
|
|
8435
|
+
var StyledButton2 = (0, import_styled_components48.default)(Button)`
|
|
8393
8436
|
--icon-button-size-sm: 24px;
|
|
8394
8437
|
--icon-button-size-md: 32px;
|
|
8395
8438
|
--icon-button-size-lg: 40px;
|
|
@@ -8434,11 +8477,9 @@ var import_react32 = require("react");
|
|
|
8434
8477
|
var MenuContext = (0, import_react32.createContext)({ compact: false });
|
|
8435
8478
|
var useMenuContext = () => (0, import_react32.useContext)(MenuContext);
|
|
8436
8479
|
|
|
8437
|
-
// src/components/
|
|
8438
|
-
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8439
|
-
var import_react_slot = require("@radix-ui/react-slot");
|
|
8480
|
+
// src/components/Menu/Menu.tsx
|
|
8440
8481
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
8441
|
-
var open =
|
|
8482
|
+
var open = import_styled_components49.keyframes`
|
|
8442
8483
|
from {
|
|
8443
8484
|
opacity: 0;
|
|
8444
8485
|
transform: scale(.97) translateY(-8px);
|
|
@@ -8448,7 +8489,7 @@ var open = import_styled_components48.keyframes`
|
|
|
8448
8489
|
transform: scale(1);
|
|
8449
8490
|
}
|
|
8450
8491
|
`;
|
|
8451
|
-
var close =
|
|
8492
|
+
var close = import_styled_components49.keyframes`
|
|
8452
8493
|
from {
|
|
8453
8494
|
opacity: 1;
|
|
8454
8495
|
transform: scale(1);
|
|
@@ -8458,68 +8499,72 @@ var close = import_styled_components48.keyframes`
|
|
|
8458
8499
|
transform: scale(.97) translateY(-8px);
|
|
8459
8500
|
}
|
|
8460
8501
|
`;
|
|
8461
|
-
var
|
|
8462
|
-
--
|
|
8463
|
-
--
|
|
8464
|
-
--
|
|
8465
|
-
--
|
|
8466
|
-
--
|
|
8467
|
-
--
|
|
8468
|
-
--
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8502
|
+
var menuItemCss = import_styled_components49.css`
|
|
8503
|
+
--menu-label-description-gap: var(--wui-space-01);
|
|
8504
|
+
--menu-item-inner-gap: var(--wui-space-03);
|
|
8505
|
+
--menu-item-left-icon-size: 24px;
|
|
8506
|
+
--menu-item-right-icon-size: 16px;
|
|
8507
|
+
--menu-item-padding: var(--wui-space-02);
|
|
8508
|
+
--menu-label-font-size: var(--wui-typography-label-3-size);
|
|
8509
|
+
--menu-label-font-weight: var(--wui-typography-label-3-weight);
|
|
8510
|
+
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
8511
|
+
--menu-divider-margin: var(--wui-space-02);
|
|
8512
|
+
`;
|
|
8513
|
+
var compactMenuItemCss = import_styled_components49.css`
|
|
8514
|
+
--menu-label-description-gap: 0;
|
|
8515
|
+
--menu-item-inner-gap: var(--wui-space-02);
|
|
8516
|
+
--menu-item-left-icon-size: 16px;
|
|
8517
|
+
--menu-item-right-icon-size: 12px;
|
|
8518
|
+
--menu-item-padding: 6px;
|
|
8519
|
+
--menu-label-font-size: var(--wui-typography-label-4-size);
|
|
8520
|
+
--menu-label-font-weight: var(--wui-typography-label-4-weight);
|
|
8521
|
+
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
8522
|
+
--menu-divider-margin: var(--wui-space-01);
|
|
8523
|
+
`;
|
|
8524
|
+
var menuContentCss = import_styled_components49.css`
|
|
8525
|
+
--menu-font-family: var(--wui-typography-family-default);
|
|
8526
|
+
--menu-bg: var(--wui-color-bg-surface);
|
|
8527
|
+
--menu-shadow: var(--wui-elevation-01);
|
|
8528
|
+
--menu-border-radius: var(--wui-border-radius-02);
|
|
8529
|
+
--menu-padding: var(--wui-space-02);
|
|
8530
|
+
--menu-min-width: 120px;
|
|
8531
|
+
--menu-max-width: 284px;
|
|
8532
|
+
--menu-animation-duration: var(--wui-motion-duration-03);
|
|
8533
|
+
|
|
8534
|
+
${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss};
|
|
8535
|
+
|
|
8536
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-out) ${open};
|
|
8537
|
+
font-family: var(--menu-font-family);
|
|
8538
|
+
background: var(--menu-bg);
|
|
8539
|
+
border-radius: var(--menu-border-radius);
|
|
8540
|
+
box-shadow: var(--menu-shadow); /* TODO - Need a box-shadow token */
|
|
8541
|
+
max-height: var(--radix-dropdown-menu-content-available-height);
|
|
8542
|
+
min-width: var(--menu-min-width);
|
|
8543
|
+
max-width: var(--menu-max-width);
|
|
8478
8544
|
overflow: auto;
|
|
8545
|
+
padding: var(--menu-padding);
|
|
8546
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin);
|
|
8479
8547
|
z-index: var(--wui-zindex-menu);
|
|
8480
8548
|
border: 1px solid var(--wui-color-border);
|
|
8481
|
-
padding: var(--wui-floating-card-padding);
|
|
8482
8549
|
|
|
8483
8550
|
&[data-state='closed'] {
|
|
8484
|
-
animation: var(--wui-
|
|
8485
|
-
var(--wui-floating-card-close-animation-easing) ${close};
|
|
8551
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-in) ${close}; /* TODO - need easing tokens */
|
|
8486
8552
|
}
|
|
8487
8553
|
|
|
8488
8554
|
${mq.smAndUp} {
|
|
8489
8555
|
bottom: 0;
|
|
8556
|
+
padding: var(--menu-padding);
|
|
8490
8557
|
right: 0;
|
|
8491
8558
|
top: 0;
|
|
8492
8559
|
transform: initial;
|
|
8493
8560
|
}
|
|
8494
|
-
`;
|
|
8495
|
-
var FloatingCard = ({
|
|
8496
|
-
padding = "space-02",
|
|
8497
|
-
elevation = "elevation-01",
|
|
8498
|
-
borderRadius = "border-radius-02",
|
|
8499
|
-
maxWidth = "284px",
|
|
8500
|
-
minWidth = "120px",
|
|
8501
|
-
children,
|
|
8502
|
-
...props
|
|
8503
|
-
}) => {
|
|
8504
|
-
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
8505
|
-
StyledSlot2,
|
|
8506
|
-
{
|
|
8507
|
-
$borderRadius: borderRadius,
|
|
8508
|
-
$elevation: elevation,
|
|
8509
|
-
$maxWidth: maxWidth,
|
|
8510
|
-
$minWidth: minWidth,
|
|
8511
|
-
$padding: padding,
|
|
8512
|
-
...props,
|
|
8513
|
-
children
|
|
8514
|
-
}
|
|
8515
|
-
);
|
|
8516
|
-
};
|
|
8517
|
-
FloatingCard.displayName = "FloatingCard";
|
|
8518
8561
|
|
|
8519
|
-
|
|
8520
|
-
var
|
|
8562
|
+
[role='separator'] {
|
|
8563
|
+
margin: var(--menu-divider-margin) 0;
|
|
8564
|
+
}
|
|
8565
|
+
`;
|
|
8521
8566
|
var MenuContent = (0, import_styled_components49.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
8522
|
-
|
|
8567
|
+
${menuContentCss}
|
|
8523
8568
|
`;
|
|
8524
8569
|
var Menu = ({
|
|
8525
8570
|
align = "start",
|
|
@@ -8544,36 +8589,36 @@ var Menu = ({
|
|
|
8544
8589
|
onOpenChange: () => null
|
|
8545
8590
|
};
|
|
8546
8591
|
}
|
|
8547
|
-
return /* @__PURE__ */ (0,
|
|
8592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(
|
|
8548
8593
|
import_react_dropdown_menu.DropdownMenu,
|
|
8549
8594
|
{
|
|
8550
8595
|
modal: false,
|
|
8551
8596
|
...controlProps,
|
|
8552
8597
|
children: [
|
|
8553
|
-
/* @__PURE__ */ (0,
|
|
8598
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards27.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
8554
8599
|
Button,
|
|
8555
8600
|
{
|
|
8556
8601
|
"aria-expanded": isOpen,
|
|
8557
8602
|
disabled,
|
|
8558
8603
|
forceState: isOpen ? "active" : void 0,
|
|
8559
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
8604
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(Icon, { type: "caret-down" }),
|
|
8560
8605
|
...triggerProps,
|
|
8561
8606
|
children: label
|
|
8562
8607
|
}
|
|
8563
8608
|
) }),
|
|
8564
|
-
/* @__PURE__ */ (0,
|
|
8609
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
8565
8610
|
MenuContent,
|
|
8566
8611
|
{
|
|
8567
8612
|
...props,
|
|
8568
8613
|
$compact: compact,
|
|
8569
8614
|
align,
|
|
8615
|
+
sideOffset: 6,
|
|
8570
8616
|
onFocusOutside: (event) => {
|
|
8571
8617
|
event.preventDefault();
|
|
8572
8618
|
},
|
|
8573
|
-
sideOffset: 6,
|
|
8574
8619
|
children
|
|
8575
8620
|
}
|
|
8576
|
-
) })
|
|
8621
|
+
) })
|
|
8577
8622
|
]
|
|
8578
8623
|
}
|
|
8579
8624
|
) });
|
|
@@ -8583,17 +8628,17 @@ Menu.displayName = "Menu";
|
|
|
8583
8628
|
// src/components/Menu/MenuLabel.tsx
|
|
8584
8629
|
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8585
8630
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
8586
|
-
var
|
|
8631
|
+
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
8587
8632
|
var StyledMenuLabel = (0, import_styled_components50.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
8588
8633
|
padding: var(--wui-space-02);
|
|
8589
8634
|
`;
|
|
8590
8635
|
var MenuLabel = ({ children, ...props }) => {
|
|
8591
|
-
return /* @__PURE__ */ (0,
|
|
8636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
|
|
8592
8637
|
StyledMenuLabel,
|
|
8593
8638
|
{
|
|
8594
8639
|
asChild: true,
|
|
8595
8640
|
...props,
|
|
8596
|
-
children: /* @__PURE__ */ (0,
|
|
8641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
|
|
8597
8642
|
Heading,
|
|
8598
8643
|
{
|
|
8599
8644
|
renderAs: "span",
|
|
@@ -8609,40 +8654,39 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
8609
8654
|
|
|
8610
8655
|
// src/components/Menu/SubMenu.tsx
|
|
8611
8656
|
var import_react35 = require("react");
|
|
8612
|
-
var
|
|
8657
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
8613
8658
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
8614
8659
|
var import_type_guards29 = require("@wistia/type-guards");
|
|
8615
8660
|
|
|
8616
8661
|
// src/components/Menu/MenuItemButton.tsx
|
|
8617
8662
|
var import_react34 = require("react");
|
|
8618
|
-
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8619
|
-
var import_type_guards28 = require("@wistia/type-guards");
|
|
8620
|
-
|
|
8621
|
-
// src/components/ListBoxItem/ListBoxItem.tsx
|
|
8622
8663
|
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8623
|
-
var
|
|
8624
|
-
var
|
|
8625
|
-
var
|
|
8626
|
-
${({
|
|
8627
|
-
--wui-list-box-item-padding: ${({ $padding }) => `var(--wui-${$padding})`};
|
|
8628
|
-
--wui-list-box-item-gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
8629
|
-
--wui-list-box-item-border-radius: ${({ $borderRadius }) => `var(--wui-${$borderRadius})`};
|
|
8630
|
-
--wui-list-box-item-separator-margin: ${({ $separatorMargin }) => `var(--wui-${$separatorMargin})`};
|
|
8664
|
+
var import_type_guards28 = require("@wistia/type-guards");
|
|
8665
|
+
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
8666
|
+
var StyledButton3 = (0, import_styled_components51.default)(Button)`
|
|
8667
|
+
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
8631
8668
|
|
|
8632
|
-
${({ $textVariant }) => variantStyleMap2[$textVariant]};
|
|
8633
|
-
font-size: var(--font-size);
|
|
8634
|
-
font-weight: var(--font-weight);
|
|
8635
|
-
line-height: var(--line-height);
|
|
8636
|
-
color: var(--wui-color-text-button);
|
|
8637
8669
|
display: flex;
|
|
8638
|
-
|
|
8639
|
-
gap: var(--
|
|
8640
|
-
padding: var(--
|
|
8641
|
-
border-radius: var(--wui-
|
|
8642
|
-
width: 100%;
|
|
8670
|
+
flex-direction: row;
|
|
8671
|
+
gap: var(--menu-item-inner-gap);
|
|
8672
|
+
padding: var(--menu-item-padding);
|
|
8673
|
+
border-radius: var(--wui-border-radius-01);
|
|
8643
8674
|
text-align: left;
|
|
8675
|
+
color: var(--wui-color-text-button);
|
|
8676
|
+
font-size: var(--menu-label-font-size);
|
|
8677
|
+
font-weight: var(--menu-label-font-weight);
|
|
8678
|
+
line-height: var(--menu-label-line-height);
|
|
8644
8679
|
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
8645
|
-
|
|
8680
|
+
|
|
8681
|
+
:active {
|
|
8682
|
+
background-color: var(--wui-color-bg-surface-active);
|
|
8683
|
+
}
|
|
8684
|
+
|
|
8685
|
+
&[data-highlighted] {
|
|
8686
|
+
outline: none;
|
|
8687
|
+
${({ $isGated }) => $isGated && getColorScheme("purple")};
|
|
8688
|
+
background-color: var(--wui-color-bg-surface-hover);
|
|
8689
|
+
}
|
|
8646
8690
|
|
|
8647
8691
|
&[aria-disabled='true'] {
|
|
8648
8692
|
--wui-color-text-button: var(--wui-color-text-disabled);
|
|
@@ -8654,62 +8698,11 @@ var StyledListBoxItem = (0, import_styled_components51.default)(import_react_slo
|
|
|
8654
8698
|
}
|
|
8655
8699
|
}
|
|
8656
8700
|
|
|
8657
|
-
&[data-highlighted] {
|
|
8658
|
-
background-color: var(--wui-color-bg-surface-hover);
|
|
8659
|
-
outline: none;
|
|
8660
|
-
}
|
|
8661
|
-
|
|
8662
|
-
& + [role='separator'] {
|
|
8663
|
-
margin: ${({ $separatorMargin }) => `var(--wui-${$separatorMargin})`} 0;
|
|
8664
|
-
}
|
|
8665
|
-
`;
|
|
8666
|
-
var ListBoxItem = ({
|
|
8667
|
-
children,
|
|
8668
|
-
padding = "space-02",
|
|
8669
|
-
borderRadius = "border-radius-01",
|
|
8670
|
-
textVariant = "label3",
|
|
8671
|
-
gap = "space-03",
|
|
8672
|
-
colorScheme,
|
|
8673
|
-
separatorMargin = "space-02",
|
|
8674
|
-
...props
|
|
8675
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
|
|
8676
|
-
StyledListBoxItem,
|
|
8677
|
-
{
|
|
8678
|
-
$borderRadius: borderRadius,
|
|
8679
|
-
$colorScheme: colorScheme ?? "inherit",
|
|
8680
|
-
$gap: gap,
|
|
8681
|
-
$padding: padding,
|
|
8682
|
-
$separatorMargin: separatorMargin,
|
|
8683
|
-
$textVariant: textVariant,
|
|
8684
|
-
...props,
|
|
8685
|
-
children
|
|
8686
|
-
}
|
|
8687
|
-
);
|
|
8688
|
-
ListBoxItem.displayName = "ListBoxItem";
|
|
8689
|
-
|
|
8690
|
-
// src/components/Menu/MenuItemButton.tsx
|
|
8691
|
-
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8692
|
-
var StyledButton3 = (0, import_styled_components52.default)(Button)`
|
|
8693
|
-
--menu-label-description-gap: var(--wui-space-01);
|
|
8694
|
-
--menu-item-left-icon-size: 24px;
|
|
8695
|
-
--menu-item-right-icon-size: 16px;
|
|
8696
|
-
${({ $compact }) => $compact && import_styled_components52.css`
|
|
8697
|
-
--menu-item-left-icon-size: 16px;
|
|
8698
|
-
--menu-item-right-icon-size: 12px;
|
|
8699
|
-
--menu-label-description-gap: 0;
|
|
8700
|
-
|
|
8701
|
-
padding: 6px;
|
|
8702
|
-
`};
|
|
8703
|
-
|
|
8704
|
-
&[data-highlighted] {
|
|
8705
|
-
${({ $isGated }) => $isGated && getColorScheme("purple")};
|
|
8706
|
-
}
|
|
8707
|
-
|
|
8708
8701
|
&[role='menuitemradio'] {
|
|
8709
8702
|
padding-left: var(--wui-space-04);
|
|
8710
8703
|
}
|
|
8711
8704
|
`;
|
|
8712
|
-
var StyledLeftIconContainer =
|
|
8705
|
+
var StyledLeftIconContainer = import_styled_components51.default.div`
|
|
8713
8706
|
height: var(--menu-item-left-icon-size);
|
|
8714
8707
|
width: var(--menu-item-left-icon-size);
|
|
8715
8708
|
|
|
@@ -8718,7 +8711,7 @@ var StyledLeftIconContainer = import_styled_components52.default.div`
|
|
|
8718
8711
|
width: var(--menu-item-left-icon-size);
|
|
8719
8712
|
}
|
|
8720
8713
|
`;
|
|
8721
|
-
var StyledRightIconContainer =
|
|
8714
|
+
var StyledRightIconContainer = import_styled_components51.default.div`
|
|
8722
8715
|
height: var(--menu-item-right-icon-size);
|
|
8723
8716
|
width: var(--menu-item-right-icon-size);
|
|
8724
8717
|
|
|
@@ -8727,13 +8720,13 @@ var StyledRightIconContainer = import_styled_components52.default.div`
|
|
|
8727
8720
|
width: var(--menu-item-right-icon-size);
|
|
8728
8721
|
}
|
|
8729
8722
|
`;
|
|
8730
|
-
var StyledLabelAndDescriptionContainer =
|
|
8723
|
+
var StyledLabelAndDescriptionContainer = import_styled_components51.default.div`
|
|
8731
8724
|
display: flex;
|
|
8732
8725
|
flex-direction: column;
|
|
8733
8726
|
gap: var(--menu-label-description-gap);
|
|
8734
8727
|
flex-basis: 100%;
|
|
8735
8728
|
`;
|
|
8736
|
-
var StyledBadgeContainer =
|
|
8729
|
+
var StyledBadgeContainer = import_styled_components51.default.div`
|
|
8737
8730
|
align-self: start;
|
|
8738
8731
|
justify-self: end;
|
|
8739
8732
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -8748,7 +8741,7 @@ var MenuItemButton = (0, import_react34.forwardRef)(({ children, appearance, com
|
|
|
8748
8741
|
colorScheme = "error";
|
|
8749
8742
|
}
|
|
8750
8743
|
if (appearance === "gated") {
|
|
8751
|
-
badge = /* @__PURE__ */ (0,
|
|
8744
|
+
badge = /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
|
|
8752
8745
|
Icon,
|
|
8753
8746
|
{
|
|
8754
8747
|
colorScheme: "purple",
|
|
@@ -8760,79 +8753,69 @@ var MenuItemButton = (0, import_react34.forwardRef)(({ children, appearance, com
|
|
|
8760
8753
|
}
|
|
8761
8754
|
);
|
|
8762
8755
|
}
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
gap: "space-02",
|
|
8766
|
-
textVariant: "label4",
|
|
8767
|
-
separatorMargin: "space-01"
|
|
8768
|
-
} : {};
|
|
8769
|
-
return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
|
|
8770
|
-
ListBoxItem,
|
|
8756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)(
|
|
8757
|
+
StyledButton3,
|
|
8771
8758
|
{
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
8785
|
-
/* @__PURE__ */ (0, import_jsx_runtime197.jsx)(StyledLabelAndDescriptionContainer, { children }),
|
|
8786
|
-
(0, import_type_guards28.isNotNil)(badge) || (0, import_type_guards28.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
8787
|
-
props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
8788
|
-
]
|
|
8789
|
-
}
|
|
8790
|
-
)
|
|
8759
|
+
...props,
|
|
8760
|
+
ref,
|
|
8761
|
+
$isGated: appearance === "gated",
|
|
8762
|
+
colorScheme: colorScheme ?? "default",
|
|
8763
|
+
fullWidth: true,
|
|
8764
|
+
unstyled: true,
|
|
8765
|
+
children: [
|
|
8766
|
+
props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
8767
|
+
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)(StyledLabelAndDescriptionContainer, { children }),
|
|
8768
|
+
(0, import_type_guards28.isNotNil)(badge) || (0, import_type_guards28.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
8769
|
+
props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
8770
|
+
]
|
|
8791
8771
|
}
|
|
8792
8772
|
);
|
|
8793
8773
|
});
|
|
8794
8774
|
MenuItemButton.displayName = "MenuItemButton";
|
|
8795
8775
|
|
|
8796
8776
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
8797
|
-
var
|
|
8798
|
-
var
|
|
8799
|
-
var StyledMenuItemLabel =
|
|
8800
|
-
var StyledMenuItemDescription = (0,
|
|
8777
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8778
|
+
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8779
|
+
var StyledMenuItemLabel = import_styled_components52.default.span``;
|
|
8780
|
+
var StyledMenuItemDescription = (0, import_styled_components52.default)(Text).attrs({
|
|
8801
8781
|
variant: "body4",
|
|
8802
8782
|
prominence: "secondary"
|
|
8803
8783
|
})``;
|
|
8804
8784
|
var MenuItemLabel = ({ children }) => {
|
|
8805
|
-
return /* @__PURE__ */ (0,
|
|
8785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(StyledMenuItemLabel, { children });
|
|
8806
8786
|
};
|
|
8807
8787
|
var MenuItemDescription = ({ children }) => {
|
|
8808
|
-
return /* @__PURE__ */ (0,
|
|
8788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(StyledMenuItemDescription, { children });
|
|
8809
8789
|
};
|
|
8810
8790
|
|
|
8811
8791
|
// src/components/Menu/SubMenu.tsx
|
|
8812
|
-
var
|
|
8813
|
-
var SubMenuContent = (0,
|
|
8792
|
+
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8793
|
+
var SubMenuContent = (0, import_styled_components53.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
8794
|
+
${menuContentCss}
|
|
8795
|
+
|
|
8814
8796
|
${mq.smAndDown} {
|
|
8815
8797
|
transform: translateX(-100%) !important;
|
|
8816
8798
|
}
|
|
8817
8799
|
`;
|
|
8818
|
-
var StyledMobileSubMenuItems =
|
|
8800
|
+
var StyledMobileSubMenuItems = import_styled_components53.default.div`
|
|
8819
8801
|
margin-left: var(--wui-space-04);
|
|
8820
8802
|
`;
|
|
8821
|
-
var StyledSubTrigger = (0,
|
|
8803
|
+
var StyledSubTrigger = (0, import_styled_components53.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
8822
8804
|
outline: none;
|
|
8823
8805
|
|
|
8824
|
-
&[data-state='open']
|
|
8806
|
+
&[data-state='open'],
|
|
8807
|
+
&[data-highlighted] {
|
|
8825
8808
|
background-color: var(--wui-color-bg-surface-hover);
|
|
8826
8809
|
}
|
|
8827
8810
|
`;
|
|
8828
8811
|
var SubMenuTrigger = (props) => {
|
|
8829
8812
|
const { isSmAndUp } = useMq();
|
|
8830
8813
|
const Trigger3 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
|
|
8831
|
-
return /* @__PURE__ */ (0,
|
|
8814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Trigger3, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
|
|
8832
8815
|
MenuItemButton,
|
|
8833
8816
|
{
|
|
8834
8817
|
...props,
|
|
8835
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
8818
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Icon, { type: "caret-right" })
|
|
8836
8819
|
}
|
|
8837
8820
|
) });
|
|
8838
8821
|
};
|
|
@@ -8846,14 +8829,14 @@ var SubMenu = ({
|
|
|
8846
8829
|
const { isSmAndUp } = useMq();
|
|
8847
8830
|
const [isExpanded, setIsExpanded] = (0, import_react35.useState)(false);
|
|
8848
8831
|
const { compact } = useMenuContext();
|
|
8849
|
-
return isSmAndUp ? /* @__PURE__ */ (0,
|
|
8850
|
-
/* @__PURE__ */ (0,
|
|
8851
|
-
/* @__PURE__ */ (0,
|
|
8852
|
-
(0, import_type_guards29.isNotNil)(description) ? /* @__PURE__ */ (0,
|
|
8832
|
+
return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
|
|
8833
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(SubMenuTrigger, { ...props, children: [
|
|
8834
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsx)(MenuItemLabel, { children: label }),
|
|
8835
|
+
(0, import_type_guards29.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(MenuItemDescription, { children: description }) : null
|
|
8853
8836
|
] }),
|
|
8854
|
-
/* @__PURE__ */ (0,
|
|
8855
|
-
] }) : /* @__PURE__ */ (0,
|
|
8856
|
-
/* @__PURE__ */ (0,
|
|
8837
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(SubMenuContent, { $compact: compact, children }) })
|
|
8838
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
|
|
8839
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
|
|
8857
8840
|
SubMenuTrigger,
|
|
8858
8841
|
{
|
|
8859
8842
|
...props,
|
|
@@ -8862,12 +8845,12 @@ var SubMenu = ({
|
|
|
8862
8845
|
setIsExpanded((prev) => !prev);
|
|
8863
8846
|
},
|
|
8864
8847
|
children: [
|
|
8865
|
-
/* @__PURE__ */ (0,
|
|
8866
|
-
/* @__PURE__ */ (0,
|
|
8848
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsx)(MenuItemLabel, { children: label }),
|
|
8849
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsx)(MenuItemDescription, { children: description })
|
|
8867
8850
|
]
|
|
8868
8851
|
}
|
|
8869
8852
|
),
|
|
8870
|
-
/* @__PURE__ */ (0,
|
|
8853
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
|
|
8871
8854
|
] });
|
|
8872
8855
|
};
|
|
8873
8856
|
SubMenu.displayName = "SubMenu";
|
|
@@ -8875,15 +8858,15 @@ SubMenu.displayName = "SubMenu";
|
|
|
8875
8858
|
// src/components/Menu/MenuItem.tsx
|
|
8876
8859
|
var import_react36 = require("react");
|
|
8877
8860
|
var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
|
|
8878
|
-
var
|
|
8861
|
+
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
8879
8862
|
var MenuItem = (0, import_react36.forwardRef)(
|
|
8880
8863
|
({ onSelect = () => null, ...props }, ref) => {
|
|
8881
|
-
return /* @__PURE__ */ (0,
|
|
8864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
|
|
8882
8865
|
import_react_dropdown_menu4.DropdownMenuItem,
|
|
8883
8866
|
{
|
|
8884
8867
|
asChild: true,
|
|
8885
8868
|
onSelect,
|
|
8886
|
-
children: /* @__PURE__ */ (0,
|
|
8869
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
|
|
8887
8870
|
MenuItemButton,
|
|
8888
8871
|
{
|
|
8889
8872
|
...props,
|
|
@@ -8899,10 +8882,10 @@ MenuItem.displayName = "MenuItem";
|
|
|
8899
8882
|
|
|
8900
8883
|
// src/components/Menu/MenuRadioGroup.tsx
|
|
8901
8884
|
var import_react_dropdown_menu5 = require("@radix-ui/react-dropdown-menu");
|
|
8902
|
-
var
|
|
8885
|
+
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
8903
8886
|
var MenuRadioGroup = ({ children, label, ...props }) => {
|
|
8904
|
-
return /* @__PURE__ */ (0,
|
|
8905
|
-
/* @__PURE__ */ (0,
|
|
8887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
|
|
8888
|
+
/* @__PURE__ */ (0, import_jsx_runtime199.jsx)(MenuLabel, { children: label }),
|
|
8906
8889
|
children
|
|
8907
8890
|
] });
|
|
8908
8891
|
};
|
|
@@ -8910,11 +8893,11 @@ MenuRadioGroup.displayName = "MenuRadioGroup";
|
|
|
8910
8893
|
|
|
8911
8894
|
// src/components/Menu/RadioMenuItem.tsx
|
|
8912
8895
|
var import_react_dropdown_menu6 = require("@radix-ui/react-dropdown-menu");
|
|
8913
|
-
var
|
|
8896
|
+
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
8914
8897
|
var RadioMenuItem = ({
|
|
8915
8898
|
onSelect,
|
|
8916
8899
|
value,
|
|
8917
|
-
indicator = /* @__PURE__ */ (0,
|
|
8900
|
+
indicator = /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
|
|
8918
8901
|
Icon,
|
|
8919
8902
|
{
|
|
8920
8903
|
size: "sm",
|
|
@@ -8924,17 +8907,17 @@ var RadioMenuItem = ({
|
|
|
8924
8907
|
...props
|
|
8925
8908
|
}) => {
|
|
8926
8909
|
const extraProps = onSelect ? { onSelect } : {};
|
|
8927
|
-
return /* @__PURE__ */ (0,
|
|
8910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
|
|
8928
8911
|
import_react_dropdown_menu6.DropdownMenuRadioItem,
|
|
8929
8912
|
{
|
|
8930
8913
|
...extraProps,
|
|
8931
8914
|
asChild: true,
|
|
8932
8915
|
value,
|
|
8933
|
-
children: /* @__PURE__ */ (0,
|
|
8916
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
|
|
8934
8917
|
MenuItemButton,
|
|
8935
8918
|
{
|
|
8936
8919
|
...props,
|
|
8937
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
8920
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
|
|
8938
8921
|
}
|
|
8939
8922
|
)
|
|
8940
8923
|
}
|
|
@@ -8944,9 +8927,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
|
|
|
8944
8927
|
|
|
8945
8928
|
// src/components/Menu/CheckboxMenuItem.tsx
|
|
8946
8929
|
var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
|
|
8947
|
-
var
|
|
8930
|
+
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
8948
8931
|
var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
8949
|
-
return checked ? /* @__PURE__ */ (0,
|
|
8932
|
+
return checked ? /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(
|
|
8950
8933
|
"svg",
|
|
8951
8934
|
{
|
|
8952
8935
|
...props,
|
|
@@ -8956,14 +8939,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
8956
8939
|
width: "24",
|
|
8957
8940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8958
8941
|
children: [
|
|
8959
|
-
/* @__PURE__ */ (0,
|
|
8942
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
8960
8943
|
"path",
|
|
8961
8944
|
{
|
|
8962
8945
|
d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
|
|
8963
8946
|
fill: "#2949e5"
|
|
8964
8947
|
}
|
|
8965
8948
|
),
|
|
8966
|
-
/* @__PURE__ */ (0,
|
|
8949
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
8967
8950
|
"path",
|
|
8968
8951
|
{
|
|
8969
8952
|
d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
|
|
@@ -8972,7 +8955,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
8972
8955
|
)
|
|
8973
8956
|
]
|
|
8974
8957
|
}
|
|
8975
|
-
) : /* @__PURE__ */ (0,
|
|
8958
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(
|
|
8976
8959
|
"svg",
|
|
8977
8960
|
{
|
|
8978
8961
|
...props,
|
|
@@ -8982,14 +8965,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
8982
8965
|
width: "24",
|
|
8983
8966
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8984
8967
|
children: [
|
|
8985
|
-
/* @__PURE__ */ (0,
|
|
8968
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
8986
8969
|
"path",
|
|
8987
8970
|
{
|
|
8988
8971
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
8989
8972
|
fill: "#fcfcfd"
|
|
8990
8973
|
}
|
|
8991
8974
|
),
|
|
8992
|
-
/* @__PURE__ */ (0,
|
|
8975
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
8993
8976
|
"path",
|
|
8994
8977
|
{
|
|
8995
8978
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
@@ -9006,18 +8989,18 @@ var CheckboxMenuItem = ({
|
|
|
9006
8989
|
onCheckedChange,
|
|
9007
8990
|
...props
|
|
9008
8991
|
}) => {
|
|
9009
|
-
return /* @__PURE__ */ (0,
|
|
8992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
9010
8993
|
import_react_dropdown_menu7.DropdownMenuCheckboxItem,
|
|
9011
8994
|
{
|
|
9012
8995
|
asChild: true,
|
|
9013
8996
|
checked,
|
|
9014
8997
|
onCheckedChange,
|
|
9015
8998
|
onSelect,
|
|
9016
|
-
children: /* @__PURE__ */ (0,
|
|
8999
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
9017
9000
|
MenuItemButton,
|
|
9018
9001
|
{
|
|
9019
9002
|
...props,
|
|
9020
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
9003
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(CheckboxIndicator2, { checked })
|
|
9021
9004
|
}
|
|
9022
9005
|
)
|
|
9023
9006
|
}
|
|
@@ -9027,36 +9010,36 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
9027
9010
|
|
|
9028
9011
|
// src/components/Modal/Modal.tsx
|
|
9029
9012
|
var import_react40 = require("react");
|
|
9030
|
-
var
|
|
9013
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
9031
9014
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
9032
9015
|
var import_type_guards31 = require("@wistia/type-guards");
|
|
9033
9016
|
|
|
9034
9017
|
// src/components/Modal/ModalHeader.tsx
|
|
9035
|
-
var
|
|
9018
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
9036
9019
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
9037
9020
|
|
|
9038
9021
|
// src/components/Modal/ModalCloseButton.tsx
|
|
9039
|
-
var
|
|
9022
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
9040
9023
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
9041
|
-
var
|
|
9042
|
-
var CloseButton = (0,
|
|
9024
|
+
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
9025
|
+
var CloseButton = (0, import_styled_components54.default)(import_react_dialog.Close)`
|
|
9043
9026
|
align-self: start;
|
|
9044
9027
|
`;
|
|
9045
9028
|
var ModalCloseButton = () => {
|
|
9046
|
-
return /* @__PURE__ */ (0,
|
|
9029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
9047
9030
|
IconButton,
|
|
9048
9031
|
{
|
|
9049
9032
|
label: "Dismiss modal",
|
|
9050
9033
|
size: "sm",
|
|
9051
9034
|
variant: "ghost",
|
|
9052
|
-
children: /* @__PURE__ */ (0,
|
|
9035
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Icon, { type: "close" })
|
|
9053
9036
|
}
|
|
9054
9037
|
) });
|
|
9055
9038
|
};
|
|
9056
9039
|
|
|
9057
9040
|
// src/components/Modal/ModalHeader.tsx
|
|
9058
|
-
var
|
|
9059
|
-
var Header =
|
|
9041
|
+
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
9042
|
+
var Header = import_styled_components55.default.header`
|
|
9060
9043
|
display: flex;
|
|
9061
9044
|
order: 1;
|
|
9062
9045
|
gap: var(--wui-space-01);
|
|
@@ -9068,7 +9051,7 @@ var Header = import_styled_components56.default.header`
|
|
|
9068
9051
|
margin-top: 0;
|
|
9069
9052
|
}
|
|
9070
9053
|
`;
|
|
9071
|
-
var Title = (0,
|
|
9054
|
+
var Title = (0, import_styled_components55.default)(import_react_dialog2.Title)`
|
|
9072
9055
|
font-family: var(--wui-typography-heading-2-family);
|
|
9073
9056
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
9074
9057
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -9080,15 +9063,15 @@ var ModalHeader = ({
|
|
|
9080
9063
|
hideCloseButton
|
|
9081
9064
|
}) => {
|
|
9082
9065
|
const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
|
|
9083
|
-
return /* @__PURE__ */ (0,
|
|
9084
|
-
/* @__PURE__ */ (0,
|
|
9085
|
-
hideCloseButton ? null : /* @__PURE__ */ (0,
|
|
9066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(Header, { children: [
|
|
9067
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(TitleWrapper, { children: title }),
|
|
9068
|
+
hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(ModalCloseButton, {})
|
|
9086
9069
|
] });
|
|
9087
9070
|
};
|
|
9088
9071
|
|
|
9089
9072
|
// src/components/Modal/ModalContent.tsx
|
|
9090
9073
|
var import_react38 = require("react");
|
|
9091
|
-
var
|
|
9074
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
9092
9075
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
9093
9076
|
|
|
9094
9077
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -9111,8 +9094,8 @@ var useFocusRestore = () => {
|
|
|
9111
9094
|
};
|
|
9112
9095
|
|
|
9113
9096
|
// src/components/Modal/ModalContent.tsx
|
|
9114
|
-
var
|
|
9115
|
-
var StyledModalContent = (0,
|
|
9097
|
+
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
9098
|
+
var StyledModalContent = (0, import_styled_components56.default)(import_react_dialog3.Content)`
|
|
9116
9099
|
background-color: var(--wui-color-bg-app);
|
|
9117
9100
|
box-sizing: border-box;
|
|
9118
9101
|
display: flex;
|
|
@@ -9156,7 +9139,7 @@ var StyledModalContent = (0, import_styled_components57.default)(import_react_di
|
|
|
9156
9139
|
var ModalContent = (0, import_react38.forwardRef)(
|
|
9157
9140
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
9158
9141
|
useFocusRestore();
|
|
9159
|
-
return /* @__PURE__ */ (0,
|
|
9142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
9160
9143
|
StyledModalContent,
|
|
9161
9144
|
{
|
|
9162
9145
|
ref,
|
|
@@ -9172,8 +9155,8 @@ var ModalContent = (0, import_react38.forwardRef)(
|
|
|
9172
9155
|
|
|
9173
9156
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
9174
9157
|
var import_react39 = require("react");
|
|
9175
|
-
var
|
|
9176
|
-
var
|
|
9158
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
9159
|
+
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
9177
9160
|
var backdropAnimationDuration = 150;
|
|
9178
9161
|
var alignVerticalMap = {
|
|
9179
9162
|
stretch: "normal",
|
|
@@ -9186,7 +9169,7 @@ var alignHorizontalMap = {
|
|
|
9186
9169
|
center: "center",
|
|
9187
9170
|
right: "end"
|
|
9188
9171
|
};
|
|
9189
|
-
var BackdropComponent =
|
|
9172
|
+
var BackdropComponent = import_styled_components57.default.div`
|
|
9190
9173
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
9191
9174
|
animation-name: backdropShow;
|
|
9192
9175
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -9210,7 +9193,7 @@ var BackdropComponent = import_styled_components58.default.div`
|
|
|
9210
9193
|
}
|
|
9211
9194
|
`;
|
|
9212
9195
|
var Backdrop = (0, import_react39.forwardRef)(
|
|
9213
|
-
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0,
|
|
9196
|
+
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
9214
9197
|
BackdropComponent,
|
|
9215
9198
|
{
|
|
9216
9199
|
ref,
|
|
@@ -9224,9 +9207,9 @@ var Backdrop = (0, import_react39.forwardRef)(
|
|
|
9224
9207
|
Backdrop.displayName = "Backdrop";
|
|
9225
9208
|
|
|
9226
9209
|
// src/components/Modal/Modal.tsx
|
|
9227
|
-
var
|
|
9210
|
+
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
9228
9211
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
9229
|
-
var ModalBody =
|
|
9212
|
+
var ModalBody = import_styled_components58.default.div`
|
|
9230
9213
|
flex-direction: column;
|
|
9231
9214
|
display: flex;
|
|
9232
9215
|
order: 2;
|
|
@@ -9244,7 +9227,7 @@ var Modal = (0, import_react40.forwardRef)(
|
|
|
9244
9227
|
width = DEFAULT_MODAL_WIDTH,
|
|
9245
9228
|
...props
|
|
9246
9229
|
}, ref) => {
|
|
9247
|
-
return /* @__PURE__ */ (0,
|
|
9230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
9248
9231
|
import_react_dialog4.Root,
|
|
9249
9232
|
{
|
|
9250
9233
|
onOpenChange: (open2) => {
|
|
@@ -9253,9 +9236,9 @@ var Modal = (0, import_react40.forwardRef)(
|
|
|
9253
9236
|
}
|
|
9254
9237
|
},
|
|
9255
9238
|
open: isOpen,
|
|
9256
|
-
children: /* @__PURE__ */ (0,
|
|
9257
|
-
/* @__PURE__ */ (0,
|
|
9258
|
-
/* @__PURE__ */ (0,
|
|
9239
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(import_react_dialog4.Portal, { children: [
|
|
9240
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(Backdrop, {}),
|
|
9241
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
|
|
9259
9242
|
ModalContent,
|
|
9260
9243
|
{
|
|
9261
9244
|
ref,
|
|
@@ -9271,8 +9254,8 @@ var Modal = (0, import_react40.forwardRef)(
|
|
|
9271
9254
|
width,
|
|
9272
9255
|
...props,
|
|
9273
9256
|
children: [
|
|
9274
|
-
/* @__PURE__ */ (0,
|
|
9275
|
-
/* @__PURE__ */ (0,
|
|
9257
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(ModalBody, { children }),
|
|
9258
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
9276
9259
|
ModalHeader,
|
|
9277
9260
|
{
|
|
9278
9261
|
hideCloseButton,
|
|
@@ -9292,15 +9275,15 @@ Modal.displayName = "Modal";
|
|
|
9292
9275
|
|
|
9293
9276
|
// src/components/Radio/Radio.tsx
|
|
9294
9277
|
var import_react41 = require("react");
|
|
9295
|
-
var
|
|
9278
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
9296
9279
|
var import_type_guards32 = require("@wistia/type-guards");
|
|
9297
|
-
var
|
|
9298
|
-
var StyledLabelWrapper2 =
|
|
9280
|
+
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
9281
|
+
var StyledLabelWrapper2 = import_styled_components59.default.div`
|
|
9299
9282
|
display: flex;
|
|
9300
9283
|
flex-direction: column;
|
|
9301
9284
|
padding-left: var(--wui-space-02);
|
|
9302
9285
|
`;
|
|
9303
|
-
var StyledRadio =
|
|
9286
|
+
var StyledRadio = import_styled_components59.default.input`
|
|
9304
9287
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
9305
9288
|
appearance: none;
|
|
9306
9289
|
margin: 0;
|
|
@@ -9326,11 +9309,11 @@ var StyledRadio = import_styled_components60.default.input`
|
|
|
9326
9309
|
transform: scale(1);
|
|
9327
9310
|
}
|
|
9328
9311
|
`;
|
|
9329
|
-
var disabledStyle2 =
|
|
9312
|
+
var disabledStyle2 = import_styled_components59.css`
|
|
9330
9313
|
cursor: not-allowed;
|
|
9331
9314
|
opacity: 0.5;
|
|
9332
9315
|
`;
|
|
9333
|
-
var errorStyle =
|
|
9316
|
+
var errorStyle = import_styled_components59.css`
|
|
9334
9317
|
/* TODO Lamp to design error state */
|
|
9335
9318
|
&:hover,
|
|
9336
9319
|
&:focus,
|
|
@@ -9338,11 +9321,11 @@ var errorStyle = import_styled_components60.css`
|
|
|
9338
9321
|
border-color: transparent !important;
|
|
9339
9322
|
}
|
|
9340
9323
|
`;
|
|
9341
|
-
var defaultHoverStyle =
|
|
9324
|
+
var defaultHoverStyle = import_styled_components59.css`
|
|
9342
9325
|
/* TODO Lamp to design hover state */
|
|
9343
9326
|
cursor: pointer;
|
|
9344
9327
|
`;
|
|
9345
|
-
var StyledRadioWrapper =
|
|
9328
|
+
var StyledRadioWrapper = import_styled_components59.default.div`
|
|
9346
9329
|
align-items: baseline;
|
|
9347
9330
|
border: 1px solid transparent;
|
|
9348
9331
|
border-radius: 4px;
|
|
@@ -9380,13 +9363,13 @@ var Radio = (0, import_react41.forwardRef)(
|
|
|
9380
9363
|
}, ref) => {
|
|
9381
9364
|
const generatedId = (0, import_react41.useId)();
|
|
9382
9365
|
const computedId = (0, import_type_guards32.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
|
|
9383
|
-
return /* @__PURE__ */ (0,
|
|
9366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
|
|
9384
9367
|
StyledRadioWrapper,
|
|
9385
9368
|
{
|
|
9386
9369
|
"aria-invalid": otherProps["aria-invalid"],
|
|
9387
9370
|
disabled,
|
|
9388
9371
|
children: [
|
|
9389
|
-
/* @__PURE__ */ (0,
|
|
9372
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
9390
9373
|
StyledRadio,
|
|
9391
9374
|
{
|
|
9392
9375
|
ref,
|
|
@@ -9401,8 +9384,8 @@ var Radio = (0, import_react41.forwardRef)(
|
|
|
9401
9384
|
...otherProps
|
|
9402
9385
|
}
|
|
9403
9386
|
),
|
|
9404
|
-
/* @__PURE__ */ (0,
|
|
9405
|
-
/* @__PURE__ */ (0,
|
|
9387
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(StyledLabelWrapper2, { children: [
|
|
9388
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
9406
9389
|
Label,
|
|
9407
9390
|
{
|
|
9408
9391
|
disabled,
|
|
@@ -9411,7 +9394,7 @@ var Radio = (0, import_react41.forwardRef)(
|
|
|
9411
9394
|
children: label
|
|
9412
9395
|
}
|
|
9413
9396
|
),
|
|
9414
|
-
/* @__PURE__ */ (0,
|
|
9397
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)(LabelDescription, { children: description })
|
|
9415
9398
|
] })
|
|
9416
9399
|
]
|
|
9417
9400
|
}
|
|
@@ -9422,11 +9405,11 @@ Radio.displayName = "Radio";
|
|
|
9422
9405
|
|
|
9423
9406
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
9424
9407
|
var import_react42 = require("react");
|
|
9425
|
-
var
|
|
9408
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9426
9409
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
9427
9410
|
var import_type_guards33 = require("@wistia/type-guards");
|
|
9428
|
-
var
|
|
9429
|
-
var segmentedControlStyles =
|
|
9411
|
+
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
9412
|
+
var segmentedControlStyles = import_styled_components60.css`
|
|
9430
9413
|
display: inline-flex;
|
|
9431
9414
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
9432
9415
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9434,7 +9417,7 @@ var segmentedControlStyles = import_styled_components61.css`
|
|
|
9434
9417
|
gap: var(--wui-space-01);
|
|
9435
9418
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
9436
9419
|
`;
|
|
9437
|
-
var StyledSegmentedControl = (0,
|
|
9420
|
+
var StyledSegmentedControl = (0, import_styled_components60.default)(import_react_toggle_group.Root)`
|
|
9438
9421
|
${segmentedControlStyles}
|
|
9439
9422
|
`;
|
|
9440
9423
|
var SegmentedControl = (0, import_react42.forwardRef)(
|
|
@@ -9449,7 +9432,7 @@ var SegmentedControl = (0, import_react42.forwardRef)(
|
|
|
9449
9432
|
if ((0, import_type_guards33.isNil)(children)) {
|
|
9450
9433
|
return null;
|
|
9451
9434
|
}
|
|
9452
|
-
return /* @__PURE__ */ (0,
|
|
9435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
9453
9436
|
StyledSegmentedControl,
|
|
9454
9437
|
{
|
|
9455
9438
|
ref,
|
|
@@ -9470,11 +9453,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
9470
9453
|
|
|
9471
9454
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
9472
9455
|
var import_react43 = require("react");
|
|
9473
|
-
var
|
|
9456
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9474
9457
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
9475
9458
|
var import_type_guards34 = require("@wistia/type-guards");
|
|
9476
|
-
var
|
|
9477
|
-
var segmentedControlItemStyles =
|
|
9459
|
+
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9460
|
+
var segmentedControlItemStyles = import_styled_components61.css`
|
|
9478
9461
|
all: unset; /* ToggleGroupItem is a button element */
|
|
9479
9462
|
align-items: center;
|
|
9480
9463
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9529,7 +9512,7 @@ var segmentedControlItemStyles = import_styled_components62.css`
|
|
|
9529
9512
|
}
|
|
9530
9513
|
}
|
|
9531
9514
|
`;
|
|
9532
|
-
var StyledSegmentedControlItem = (0,
|
|
9515
|
+
var StyledSegmentedControlItem = (0, import_styled_components61.default)(import_react_toggle_group2.Item)`
|
|
9533
9516
|
${segmentedControlItemStyles}
|
|
9534
9517
|
`;
|
|
9535
9518
|
var SegmentedControlItem = (0, import_react43.forwardRef)(
|
|
@@ -9541,7 +9524,7 @@ var SegmentedControlItem = (0, import_react43.forwardRef)(
|
|
|
9541
9524
|
event.preventDefault();
|
|
9542
9525
|
}
|
|
9543
9526
|
};
|
|
9544
|
-
return /* @__PURE__ */ (0,
|
|
9527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(
|
|
9545
9528
|
StyledSegmentedControlItem,
|
|
9546
9529
|
{
|
|
9547
9530
|
ref,
|
|
@@ -9563,9 +9546,9 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
9563
9546
|
// src/components/Select/Select.tsx
|
|
9564
9547
|
var import_react_select = require("@radix-ui/react-select");
|
|
9565
9548
|
var import_react44 = require("react");
|
|
9566
|
-
var
|
|
9567
|
-
var
|
|
9568
|
-
var StyledTrigger = (0,
|
|
9549
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9550
|
+
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9551
|
+
var StyledTrigger = (0, import_styled_components62.default)(import_react_select.Trigger)`
|
|
9569
9552
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9570
9553
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
9571
9554
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9606,9 +9589,21 @@ var StyledTrigger = (0, import_styled_components63.default)(import_react_select.
|
|
|
9606
9589
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9607
9590
|
}
|
|
9608
9591
|
`;
|
|
9609
|
-
var StyledContent2 = (0,
|
|
9592
|
+
var StyledContent2 = (0, import_styled_components62.default)(import_react_select.Content)`
|
|
9593
|
+
--wui-select-content-border: var(--wui-color-border);
|
|
9594
|
+
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9595
|
+
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
9596
|
+
--wui-select-option-padding: var(--wui-space-02);
|
|
9597
|
+
--wui-select-option-inner-gap: var(--wui-space-03);
|
|
9598
|
+
--wui-select-option-bg-hover: var(--wui-color-bg-surface-hover);
|
|
9599
|
+
|
|
9610
9600
|
overflow: hidden;
|
|
9611
9601
|
transform: translateY(8px);
|
|
9602
|
+
background-color: var(--wui-select-content-bg);
|
|
9603
|
+
border: 1px solid var(--wui-select-content-border);
|
|
9604
|
+
border-radius: var(--wui-select-content-border-radius);
|
|
9605
|
+
padding: var(--wui-select-option-padding);
|
|
9606
|
+
min-width: 200px;
|
|
9612
9607
|
`;
|
|
9613
9608
|
var Select = (0, import_react44.forwardRef)(
|
|
9614
9609
|
({
|
|
@@ -9620,13 +9615,13 @@ var Select = (0, import_react44.forwardRef)(
|
|
|
9620
9615
|
...props
|
|
9621
9616
|
}, forwardedRef) => {
|
|
9622
9617
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
9623
|
-
return /* @__PURE__ */ (0,
|
|
9618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
|
|
9624
9619
|
import_react_select.Root,
|
|
9625
9620
|
{
|
|
9626
9621
|
...props,
|
|
9627
9622
|
onValueChange: onChange,
|
|
9628
9623
|
children: [
|
|
9629
|
-
/* @__PURE__ */ (0,
|
|
9624
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
|
|
9630
9625
|
StyledTrigger,
|
|
9631
9626
|
{
|
|
9632
9627
|
ref: forwardedRef,
|
|
@@ -9634,8 +9629,8 @@ var Select = (0, import_react44.forwardRef)(
|
|
|
9634
9629
|
$fullWidth: responsiveFullWidth,
|
|
9635
9630
|
...props,
|
|
9636
9631
|
children: [
|
|
9637
|
-
/* @__PURE__ */ (0,
|
|
9638
|
-
/* @__PURE__ */ (0,
|
|
9632
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_select.Value, { placeholder }),
|
|
9633
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
9639
9634
|
Icon,
|
|
9640
9635
|
{
|
|
9641
9636
|
size: "md",
|
|
@@ -9645,11 +9640,11 @@ var Select = (0, import_react44.forwardRef)(
|
|
|
9645
9640
|
]
|
|
9646
9641
|
}
|
|
9647
9642
|
),
|
|
9648
|
-
/* @__PURE__ */ (0,
|
|
9649
|
-
/* @__PURE__ */ (0,
|
|
9650
|
-
/* @__PURE__ */ (0,
|
|
9651
|
-
/* @__PURE__ */ (0,
|
|
9652
|
-
] }) })
|
|
9643
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(StyledContent2, { position: "popper", children: [
|
|
9644
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Icon, { type: "caret-up" }) }),
|
|
9645
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_select.Viewport, { children }),
|
|
9646
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Icon, { type: "caret-down" }) })
|
|
9647
|
+
] }) })
|
|
9653
9648
|
]
|
|
9654
9649
|
}
|
|
9655
9650
|
);
|
|
@@ -9660,44 +9655,67 @@ Select.displayName = "Select";
|
|
|
9660
9655
|
// src/components/Select/SelectOption.tsx
|
|
9661
9656
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9662
9657
|
var import_react45 = require("react");
|
|
9663
|
-
var
|
|
9664
|
-
var
|
|
9665
|
-
var
|
|
9658
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9659
|
+
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9660
|
+
var StyledItem = (0, import_styled_components63.default)(import_react_select2.Item)`
|
|
9661
|
+
${variantStyleMap2.body3};
|
|
9662
|
+
display: flex;
|
|
9663
|
+
padding: var(--wui-select-option-padding);
|
|
9664
|
+
gap: var(--wui-select-option-inner-gap);
|
|
9665
|
+
font-size: var(--font-size);
|
|
9666
|
+
font-weight: var(--font-weight);
|
|
9667
|
+
border-radius: var(--wui-border-radius-01);
|
|
9668
|
+
|
|
9669
|
+
&:hover,
|
|
9670
|
+
&:focus-visible {
|
|
9671
|
+
background-color: var(--wui-select-option-bg-hover);
|
|
9672
|
+
outline: none;
|
|
9673
|
+
}
|
|
9674
|
+
|
|
9675
|
+
&[aria-disabled='true'] {
|
|
9676
|
+
color: var(--wui-color-text-disabled);
|
|
9677
|
+
}
|
|
9678
|
+
|
|
9679
|
+
&[aria-disabled='true']:hover {
|
|
9680
|
+
background-color: transparent;
|
|
9681
|
+
}
|
|
9682
|
+
`;
|
|
9683
|
+
var StyledIconContainer = import_styled_components63.default.span`
|
|
9666
9684
|
width: 12px;
|
|
9667
9685
|
`;
|
|
9668
9686
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
9669
9687
|
({ children, ...props }, forwardedRef) => {
|
|
9670
|
-
return /* @__PURE__ */ (0,
|
|
9671
|
-
|
|
9688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
|
|
9689
|
+
StyledItem,
|
|
9672
9690
|
{
|
|
9673
9691
|
...props,
|
|
9674
9692
|
ref: forwardedRef,
|
|
9675
9693
|
children: [
|
|
9676
|
-
/* @__PURE__ */ (0,
|
|
9694
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledIconContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
9677
9695
|
Icon,
|
|
9678
9696
|
{
|
|
9679
9697
|
size: "sm",
|
|
9680
9698
|
type: "checkmark"
|
|
9681
9699
|
}
|
|
9682
9700
|
) }) }),
|
|
9683
|
-
/* @__PURE__ */ (0,
|
|
9701
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_select2.ItemText, { children })
|
|
9684
9702
|
]
|
|
9685
9703
|
}
|
|
9686
|
-
)
|
|
9704
|
+
);
|
|
9687
9705
|
}
|
|
9688
9706
|
);
|
|
9689
9707
|
SelectOption.displayName = "Option";
|
|
9690
9708
|
|
|
9691
9709
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9692
9710
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9693
|
-
var
|
|
9694
|
-
var
|
|
9695
|
-
var StyledLabel4 = (0,
|
|
9711
|
+
var import_styled_components64 = __toESM(require("styled-components"));
|
|
9712
|
+
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9713
|
+
var StyledLabel4 = (0, import_styled_components64.default)(import_react_select3.Label)`
|
|
9696
9714
|
padding: var(--wui-select-option-padding);
|
|
9697
9715
|
`;
|
|
9698
9716
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
9699
|
-
return /* @__PURE__ */ (0,
|
|
9700
|
-
/* @__PURE__ */ (0,
|
|
9717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(import_react_select3.Group, { ...props, children: [
|
|
9718
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
9701
9719
|
Text,
|
|
9702
9720
|
{
|
|
9703
9721
|
prominence: "secondary",
|
|
@@ -9715,15 +9733,15 @@ var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
|
9715
9733
|
var import_type_guards36 = require("@wistia/type-guards");
|
|
9716
9734
|
|
|
9717
9735
|
// src/components/Tabs/TabPanel.tsx
|
|
9718
|
-
var
|
|
9736
|
+
var import_styled_components65 = __toESM(require("styled-components"));
|
|
9719
9737
|
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
9720
|
-
var
|
|
9721
|
-
var StyledTabPanel = (0,
|
|
9738
|
+
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9739
|
+
var StyledTabPanel = (0, import_styled_components65.default)(import_react_tabs.Content)`
|
|
9722
9740
|
display: flex;
|
|
9723
9741
|
flex-direction: column;
|
|
9724
9742
|
`;
|
|
9725
9743
|
var TabPanel = ({ children, value, ...props }) => {
|
|
9726
|
-
return /* @__PURE__ */ (0,
|
|
9744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
9727
9745
|
StyledTabPanel,
|
|
9728
9746
|
{
|
|
9729
9747
|
value,
|
|
@@ -9735,10 +9753,10 @@ var TabPanel = ({ children, value, ...props }) => {
|
|
|
9735
9753
|
TabPanel.displayName = "TabPanel";
|
|
9736
9754
|
|
|
9737
9755
|
// src/components/Tabs/TabList.tsx
|
|
9738
|
-
var
|
|
9756
|
+
var import_styled_components66 = __toESM(require("styled-components"));
|
|
9739
9757
|
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
9740
|
-
var
|
|
9741
|
-
var StyledTabList = (0,
|
|
9758
|
+
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
9759
|
+
var StyledTabList = (0, import_styled_components66.default)(import_react_tabs2.List)`
|
|
9742
9760
|
${segmentedControlStyles}
|
|
9743
9761
|
|
|
9744
9762
|
margin-bottom: var(--wui-space-04);
|
|
@@ -9749,7 +9767,7 @@ var TabList = ({
|
|
|
9749
9767
|
ariaLabel,
|
|
9750
9768
|
...props
|
|
9751
9769
|
}) => {
|
|
9752
|
-
return /* @__PURE__ */ (0,
|
|
9770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
9753
9771
|
StyledTabList,
|
|
9754
9772
|
{
|
|
9755
9773
|
$fullWidth: fullWidth,
|
|
@@ -9763,11 +9781,11 @@ TabList.displayName = "TabList";
|
|
|
9763
9781
|
|
|
9764
9782
|
// src/components/Tabs/TabItem.tsx
|
|
9765
9783
|
var import_react46 = require("react");
|
|
9766
|
-
var
|
|
9784
|
+
var import_styled_components67 = __toESM(require("styled-components"));
|
|
9767
9785
|
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
9768
9786
|
var import_type_guards35 = require("@wistia/type-guards");
|
|
9769
|
-
var
|
|
9770
|
-
var StyledTabItem = (0,
|
|
9787
|
+
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
9788
|
+
var StyledTabItem = (0, import_styled_components67.default)(import_react_tabs3.Trigger)`
|
|
9771
9789
|
${segmentedControlItemStyles}
|
|
9772
9790
|
|
|
9773
9791
|
&[data-state='active'] {
|
|
@@ -9776,7 +9794,7 @@ var StyledTabItem = (0, import_styled_components68.default)(import_react_tabs3.T
|
|
|
9776
9794
|
`;
|
|
9777
9795
|
var TabItem = (0, import_react46.forwardRef)(
|
|
9778
9796
|
({ disabled = false, icon, label, "aria-label": ariaLabel, value }, ref) => {
|
|
9779
|
-
return /* @__PURE__ */ (0,
|
|
9797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
9780
9798
|
StyledTabItem,
|
|
9781
9799
|
{
|
|
9782
9800
|
ref,
|
|
@@ -9817,7 +9835,7 @@ var extractTabItems = (children) => {
|
|
|
9817
9835
|
};
|
|
9818
9836
|
|
|
9819
9837
|
// src/components/Tabs/Tabs.tsx
|
|
9820
|
-
var
|
|
9838
|
+
var import_jsx_runtime216 = require("react/jsx-runtime");
|
|
9821
9839
|
var Tabs = (0, import_react48.forwardRef)(
|
|
9822
9840
|
({
|
|
9823
9841
|
children,
|
|
@@ -9830,7 +9848,7 @@ var Tabs = (0, import_react48.forwardRef)(
|
|
|
9830
9848
|
}, ref) => {
|
|
9831
9849
|
const tabItems = extractTabItems(children);
|
|
9832
9850
|
const modeProps = defaultSelectedValue !== void 0 ? { defaultValue: defaultSelectedValue } : { value: selectedValue, onValueChange: onSelectedValueChange };
|
|
9833
|
-
return /* @__PURE__ */ (0,
|
|
9851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
9834
9852
|
import_react_tabs4.Root,
|
|
9835
9853
|
{
|
|
9836
9854
|
ref,
|
|
@@ -9838,7 +9856,7 @@ var Tabs = (0, import_react48.forwardRef)(
|
|
|
9838
9856
|
...otherProps,
|
|
9839
9857
|
...modeProps,
|
|
9840
9858
|
children: [
|
|
9841
|
-
/* @__PURE__ */ (0,
|
|
9859
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
9842
9860
|
TabList,
|
|
9843
9861
|
{
|
|
9844
9862
|
ariaLabel,
|
|
@@ -9852,7 +9870,7 @@ var Tabs = (0, import_react48.forwardRef)(
|
|
|
9852
9870
|
"aria-label": ariaLabelForTab
|
|
9853
9871
|
} = tab.props;
|
|
9854
9872
|
if ((0, import_type_guards36.isNil)(icon)) {
|
|
9855
|
-
return /* @__PURE__ */ (0,
|
|
9873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
9856
9874
|
TabItem,
|
|
9857
9875
|
{
|
|
9858
9876
|
disabled,
|
|
@@ -9863,7 +9881,7 @@ var Tabs = (0, import_react48.forwardRef)(
|
|
|
9863
9881
|
);
|
|
9864
9882
|
}
|
|
9865
9883
|
if ((0, import_type_guards36.isNotNil)(label)) {
|
|
9866
|
-
return /* @__PURE__ */ (0,
|
|
9884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
9867
9885
|
TabItem,
|
|
9868
9886
|
{
|
|
9869
9887
|
disabled,
|
|
@@ -9875,7 +9893,7 @@ var Tabs = (0, import_react48.forwardRef)(
|
|
|
9875
9893
|
);
|
|
9876
9894
|
}
|
|
9877
9895
|
if ((0, import_type_guards36.isNotNil)(ariaLabelForTab)) {
|
|
9878
|
-
return /* @__PURE__ */ (0,
|
|
9896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
9879
9897
|
TabItem,
|
|
9880
9898
|
{
|
|
9881
9899
|
"aria-label": ariaLabelForTab,
|
|
@@ -9890,7 +9908,7 @@ var Tabs = (0, import_react48.forwardRef)(
|
|
|
9890
9908
|
})
|
|
9891
9909
|
}
|
|
9892
9910
|
),
|
|
9893
|
-
tabItems.map((tab) => /* @__PURE__ */ (0,
|
|
9911
|
+
tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
9894
9912
|
TabPanel,
|
|
9895
9913
|
{
|
|
9896
9914
|
value: tab.props.value,
|
|
@@ -9907,18 +9925,18 @@ Tabs.displayName = "Tabs";
|
|
|
9907
9925
|
|
|
9908
9926
|
// src/components/Tabs/Tab.tsx
|
|
9909
9927
|
var import_react49 = require("react");
|
|
9910
|
-
var
|
|
9928
|
+
var import_jsx_runtime217 = require("react/jsx-runtime");
|
|
9911
9929
|
var Tab = (0, import_react49.forwardRef)(({ children }, ref) => {
|
|
9912
|
-
return /* @__PURE__ */ (0,
|
|
9930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ref, children });
|
|
9913
9931
|
});
|
|
9914
9932
|
Tab.displayName = "Tab";
|
|
9915
9933
|
|
|
9916
9934
|
// src/components/Tag/Tag.tsx
|
|
9917
9935
|
var import_react50 = require("react");
|
|
9918
|
-
var
|
|
9936
|
+
var import_styled_components68 = __toESM(require("styled-components"));
|
|
9919
9937
|
var import_type_guards37 = require("@wistia/type-guards");
|
|
9920
|
-
var
|
|
9921
|
-
var TagLabel =
|
|
9938
|
+
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
9939
|
+
var TagLabel = import_styled_components68.default.a`
|
|
9922
9940
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9923
9941
|
font-size: var(--wui-typography-label-4-size);
|
|
9924
9942
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -9946,14 +9964,14 @@ var TagLabel = import_styled_components69.default.a`
|
|
|
9946
9964
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9947
9965
|
}
|
|
9948
9966
|
`;
|
|
9949
|
-
var TagDivider =
|
|
9967
|
+
var TagDivider = import_styled_components68.default.div`
|
|
9950
9968
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9951
9969
|
border-left: 1px solid var(--wui-color-border);
|
|
9952
9970
|
display: flex;
|
|
9953
9971
|
height: 14px;
|
|
9954
9972
|
width: 1px;
|
|
9955
9973
|
`;
|
|
9956
|
-
var StyledRemoveButton =
|
|
9974
|
+
var StyledRemoveButton = import_styled_components68.default.button`
|
|
9957
9975
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9958
9976
|
all: unset;
|
|
9959
9977
|
cursor: pointer;
|
|
@@ -9981,7 +9999,7 @@ var StyledRemoveButton = import_styled_components69.default.button`
|
|
|
9981
9999
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9982
10000
|
}
|
|
9983
10001
|
`;
|
|
9984
|
-
var StyledTag =
|
|
10002
|
+
var StyledTag = import_styled_components68.default.div`
|
|
9985
10003
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9986
10004
|
align-items: center;
|
|
9987
10005
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -10002,23 +10020,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
10002
10020
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
10003
10021
|
);
|
|
10004
10022
|
}
|
|
10005
|
-
return /* @__PURE__ */ (0,
|
|
10006
|
-
/* @__PURE__ */ (0,
|
|
10007
|
-
/* @__PURE__ */ (0,
|
|
10023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(import_jsx_runtime218.Fragment, { children: [
|
|
10024
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
10025
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
10008
10026
|
StyledRemoveButton,
|
|
10009
10027
|
{
|
|
10010
10028
|
$colorScheme: colorScheme,
|
|
10011
10029
|
onClick: onClickRemove,
|
|
10012
10030
|
type: "button",
|
|
10013
10031
|
children: [
|
|
10014
|
-
/* @__PURE__ */ (0,
|
|
10032
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
10015
10033
|
Icon,
|
|
10016
10034
|
{
|
|
10017
10035
|
size: "sm",
|
|
10018
10036
|
type: "close"
|
|
10019
10037
|
}
|
|
10020
10038
|
),
|
|
10021
|
-
/* @__PURE__ */ (0,
|
|
10039
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
10022
10040
|
]
|
|
10023
10041
|
}
|
|
10024
10042
|
)
|
|
@@ -10027,14 +10045,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
10027
10045
|
var Tag = (0, import_react50.forwardRef)(
|
|
10028
10046
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
10029
10047
|
const labelProps = (0, import_type_guards37.isNotNil)(href) && (0, import_type_guards37.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
10030
|
-
return /* @__PURE__ */ (0,
|
|
10048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
10031
10049
|
StyledTag,
|
|
10032
10050
|
{
|
|
10033
10051
|
ref,
|
|
10034
10052
|
$colorScheme: colorScheme,
|
|
10035
10053
|
...otherProps,
|
|
10036
10054
|
children: [
|
|
10037
|
-
/* @__PURE__ */ (0,
|
|
10055
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
10038
10056
|
TagLabel,
|
|
10039
10057
|
{
|
|
10040
10058
|
...labelProps,
|
|
@@ -10042,7 +10060,7 @@ var Tag = (0, import_react50.forwardRef)(
|
|
|
10042
10060
|
children: label
|
|
10043
10061
|
}
|
|
10044
10062
|
),
|
|
10045
|
-
/* @__PURE__ */ (0,
|
|
10063
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
10046
10064
|
RemoveButton,
|
|
10047
10065
|
{
|
|
10048
10066
|
colorScheme,
|
|
@@ -10058,26 +10076,26 @@ var Tag = (0, import_react50.forwardRef)(
|
|
|
10058
10076
|
Tag.displayName = "Tag";
|
|
10059
10077
|
|
|
10060
10078
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
10061
|
-
var
|
|
10079
|
+
var import_styled_components69 = __toESM(require("styled-components"));
|
|
10062
10080
|
var import_type_guards38 = require("@wistia/type-guards");
|
|
10063
|
-
var
|
|
10081
|
+
var import_jsx_runtime219 = require("react/jsx-runtime");
|
|
10064
10082
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
10065
10083
|
if (iconOnly) {
|
|
10066
|
-
return /* @__PURE__ */ (0,
|
|
10084
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
10067
10085
|
"g",
|
|
10068
10086
|
{
|
|
10069
10087
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
10070
10088
|
fill: brandmarkColor,
|
|
10071
|
-
children: /* @__PURE__ */ (0,
|
|
10089
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
10072
10090
|
}
|
|
10073
10091
|
);
|
|
10074
10092
|
}
|
|
10075
|
-
return /* @__PURE__ */ (0,
|
|
10093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
10076
10094
|
"g",
|
|
10077
10095
|
{
|
|
10078
10096
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
10079
10097
|
fill: brandmarkColor,
|
|
10080
|
-
children: /* @__PURE__ */ (0,
|
|
10098
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
10081
10099
|
}
|
|
10082
10100
|
);
|
|
10083
10101
|
};
|
|
@@ -10085,12 +10103,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
10085
10103
|
if (iconOnly) {
|
|
10086
10104
|
return null;
|
|
10087
10105
|
}
|
|
10088
|
-
return /* @__PURE__ */ (0,
|
|
10106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
10089
10107
|
"g",
|
|
10090
10108
|
{
|
|
10091
10109
|
"data-testid": "ui-wistia-logo-logotype",
|
|
10092
10110
|
fill: logotypeColor,
|
|
10093
|
-
children: /* @__PURE__ */ (0,
|
|
10111
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
|
|
10094
10112
|
}
|
|
10095
10113
|
);
|
|
10096
10114
|
};
|
|
@@ -10100,7 +10118,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
10100
10118
|
}
|
|
10101
10119
|
return "0 0 144 31.47";
|
|
10102
10120
|
};
|
|
10103
|
-
var WistiaLogoComponent =
|
|
10121
|
+
var WistiaLogoComponent = import_styled_components69.default.svg`
|
|
10104
10122
|
height: ${({ height }) => `${height}px`};
|
|
10105
10123
|
|
|
10106
10124
|
/* ensure it will always fit on mobile */
|
|
@@ -10142,7 +10160,7 @@ var WistiaLogo = ({
|
|
|
10142
10160
|
};
|
|
10143
10161
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
10144
10162
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
10145
|
-
const Logo = /* @__PURE__ */ (0,
|
|
10163
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
10146
10164
|
WistiaLogoComponent,
|
|
10147
10165
|
{
|
|
10148
10166
|
$hoverColor: hoverColor,
|
|
@@ -10152,14 +10170,14 @@ var WistiaLogo = ({
|
|
|
10152
10170
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10153
10171
|
...otherProps,
|
|
10154
10172
|
children: [
|
|
10155
|
-
/* @__PURE__ */ (0,
|
|
10156
|
-
(0, import_type_guards38.isNotNil)(description) ? /* @__PURE__ */ (0,
|
|
10173
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("title", { children: title }),
|
|
10174
|
+
(0, import_type_guards38.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("desc", { children: description }) : null,
|
|
10157
10175
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
10158
10176
|
renderLogotype(logotypeColor, iconOnly)
|
|
10159
10177
|
]
|
|
10160
10178
|
}
|
|
10161
10179
|
);
|
|
10162
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
10180
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("a", { href, children: Logo }) : Logo;
|
|
10163
10181
|
};
|
|
10164
10182
|
WistiaLogo.displayName = "WistiaLogo";
|
|
10165
10183
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -10183,7 +10201,6 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
10183
10201
|
Divider,
|
|
10184
10202
|
EditableHeading,
|
|
10185
10203
|
Ellipsis,
|
|
10186
|
-
FloatingCard,
|
|
10187
10204
|
Form,
|
|
10188
10205
|
FormErrorSummary,
|
|
10189
10206
|
FormField,
|
|
@@ -10194,7 +10211,6 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
10194
10211
|
Input,
|
|
10195
10212
|
Label,
|
|
10196
10213
|
Link,
|
|
10197
|
-
ListBoxItem,
|
|
10198
10214
|
Menu,
|
|
10199
10215
|
MenuItem,
|
|
10200
10216
|
MenuItemDescription,
|