@wistia/ui 0.6.10 → 0.6.11-beta.390bc0e8.4a8e92c
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 +832 -678
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +165 -120
- package/dist/index.d.ts +165 -120
- package/dist/index.mjs +787 -639
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.11-beta.390bc0e8.4a8e92c
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -97,6 +97,12 @@ __export(index_exports, {
|
|
|
97
97
|
Stack: () => Stack,
|
|
98
98
|
SubMenu: () => SubMenu,
|
|
99
99
|
Tab: () => Tab,
|
|
100
|
+
Table: () => Table,
|
|
101
|
+
TableBody: () => TableBody,
|
|
102
|
+
TableCell: () => TableCell,
|
|
103
|
+
TableFooter: () => TableFooter,
|
|
104
|
+
TableHead: () => TableHead,
|
|
105
|
+
TableRow: () => TableRow,
|
|
100
106
|
Tabs: () => Tabs,
|
|
101
107
|
Tag: () => Tag,
|
|
102
108
|
Text: () => Text,
|
|
@@ -127,7 +133,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
127
133
|
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
128
134
|
|
|
129
135
|
// src/css/GlobalStyle.tsx
|
|
130
|
-
var
|
|
136
|
+
var import_styled_components13 = require("styled-components");
|
|
131
137
|
|
|
132
138
|
// src/css/resetCss.tsx
|
|
133
139
|
var import_styled_components = require("styled-components");
|
|
@@ -1465,11 +1471,39 @@ var designTokens = import_styled_components11.css`
|
|
|
1465
1471
|
}
|
|
1466
1472
|
`;
|
|
1467
1473
|
|
|
1474
|
+
// src/components/ClickRegion/globalStyles.tsx
|
|
1475
|
+
var import_styled_components12 = require("styled-components");
|
|
1476
|
+
var clickRegionGlobalStyles = import_styled_components12.css`
|
|
1477
|
+
[data-click-region] {
|
|
1478
|
+
position: relative;
|
|
1479
|
+
cursor: pointer;
|
|
1480
|
+
z-index: 1;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
[data-click-region] a:not([data-click-region-target-link]),
|
|
1484
|
+
[data-click-region] button:not([data-click-region-target-button]) {
|
|
1485
|
+
z-index: 2;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
[data-click-region-target-link]::before {
|
|
1489
|
+
content: '';
|
|
1490
|
+
cursor: inherit;
|
|
1491
|
+
display: block;
|
|
1492
|
+
position: absolute;
|
|
1493
|
+
top: 0;
|
|
1494
|
+
left: 0;
|
|
1495
|
+
z-index: 0;
|
|
1496
|
+
width: 100%;
|
|
1497
|
+
height: 100%;
|
|
1498
|
+
}
|
|
1499
|
+
`;
|
|
1500
|
+
|
|
1468
1501
|
// src/css/GlobalStyle.tsx
|
|
1469
|
-
var GlobalStyle =
|
|
1502
|
+
var GlobalStyle = import_styled_components13.createGlobalStyle`
|
|
1470
1503
|
${resetCss}
|
|
1471
1504
|
${globalStyleAdjustmentsCss}
|
|
1472
1505
|
${designTokens}
|
|
1506
|
+
${clickRegionGlobalStyles}
|
|
1473
1507
|
`;
|
|
1474
1508
|
|
|
1475
1509
|
// src/providers/AriaLiveProvider/AriaLiveProvider.tsx
|
|
@@ -2186,14 +2220,14 @@ var import_sonner2 = require("sonner");
|
|
|
2186
2220
|
|
|
2187
2221
|
// src/private/components/Toast/Toast.tsx
|
|
2188
2222
|
var import_react8 = require("react");
|
|
2189
|
-
var
|
|
2223
|
+
var import_styled_components16 = __toESM(require("styled-components"));
|
|
2190
2224
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
2191
2225
|
|
|
2192
2226
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
2193
2227
|
var import_type_guards8 = require("@wistia/type-guards");
|
|
2194
|
-
var
|
|
2228
|
+
var import_styled_components14 = __toESM(require("styled-components"));
|
|
2195
2229
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2196
|
-
var ellipsisStyle =
|
|
2230
|
+
var ellipsisStyle = import_styled_components14.css`
|
|
2197
2231
|
overflow: hidden;
|
|
2198
2232
|
text-overflow: ellipsis;
|
|
2199
2233
|
white-space: nowrap;
|
|
@@ -2216,14 +2250,14 @@ var ellipsisStyle = import_styled_components13.css`
|
|
|
2216
2250
|
}
|
|
2217
2251
|
}
|
|
2218
2252
|
`;
|
|
2219
|
-
var ellipsisFlexParentStyle =
|
|
2253
|
+
var ellipsisFlexParentStyle = import_styled_components14.css`
|
|
2220
2254
|
min-width: 0;
|
|
2221
2255
|
`;
|
|
2222
|
-
var EllipsisComponent =
|
|
2256
|
+
var EllipsisComponent = import_styled_components14.default.div`
|
|
2223
2257
|
${ellipsisStyle};
|
|
2224
2258
|
${({ $lines }) => {
|
|
2225
2259
|
if ((0, import_type_guards8.isNotNil)($lines)) {
|
|
2226
|
-
return
|
|
2260
|
+
return import_styled_components14.css`
|
|
2227
2261
|
-webkit-box-orient: vertical;
|
|
2228
2262
|
-webkit-line-clamp: ${$lines};
|
|
2229
2263
|
display: -webkit-box;
|
|
@@ -2244,7 +2278,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
2244
2278
|
Ellipsis.displayName = "Ellipsis";
|
|
2245
2279
|
|
|
2246
2280
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
2247
|
-
var
|
|
2281
|
+
var import_styled_components15 = require("styled-components");
|
|
2248
2282
|
var colorSchemeSchema = [
|
|
2249
2283
|
{ token: "bg-surface", step: "2" },
|
|
2250
2284
|
{ token: "bg-surface-hover", step: "3" },
|
|
@@ -2271,7 +2305,7 @@ var colorSchemeSchema = [
|
|
|
2271
2305
|
{ token: "icon-on-fill", step: "contrast" },
|
|
2272
2306
|
{ token: "focus-ring", step: "9" }
|
|
2273
2307
|
];
|
|
2274
|
-
var defaultScheme =
|
|
2308
|
+
var defaultScheme = import_styled_components15.css`
|
|
2275
2309
|
--wui-color-bg-surface: var(--wui-gray-1);
|
|
2276
2310
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
2277
2311
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -2297,7 +2331,7 @@ var defaultScheme = import_styled_components14.css`
|
|
|
2297
2331
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
2298
2332
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
2299
2333
|
`;
|
|
2300
|
-
var navScheme =
|
|
2334
|
+
var navScheme = import_styled_components15.css`
|
|
2301
2335
|
--wui-color-bg-app: #1e3399;
|
|
2302
2336
|
|
|
2303
2337
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -2358,7 +2392,7 @@ var getColorScheme = (colorScheme) => {
|
|
|
2358
2392
|
if (colorScheme === "default") {
|
|
2359
2393
|
return defaultScheme;
|
|
2360
2394
|
}
|
|
2361
|
-
return
|
|
2395
|
+
return import_styled_components15.css`
|
|
2362
2396
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
2363
2397
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
2364
2398
|
}).join("")}
|
|
@@ -2367,12 +2401,12 @@ var getColorScheme = (colorScheme) => {
|
|
|
2367
2401
|
|
|
2368
2402
|
// src/private/components/Toast/Toast.tsx
|
|
2369
2403
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
2370
|
-
var Message = (0,
|
|
2404
|
+
var Message = (0, import_styled_components16.default)(Ellipsis)`
|
|
2371
2405
|
line-height: var(--wui-typography-label-3-line-height);
|
|
2372
2406
|
font-size: var(--wui-typography-label-3-size);
|
|
2373
2407
|
font-weight: var(--wui-typography-label-3-weight);
|
|
2374
2408
|
`;
|
|
2375
|
-
var MessageWrapper =
|
|
2409
|
+
var MessageWrapper = import_styled_components16.default.div`
|
|
2376
2410
|
display: flex;
|
|
2377
2411
|
flex-grow: 1;
|
|
2378
2412
|
flex-shrink: 1;
|
|
@@ -2385,13 +2419,13 @@ var MessageWrapper = import_styled_components15.default.div`
|
|
|
2385
2419
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
2386
2420
|
}
|
|
2387
2421
|
`;
|
|
2388
|
-
var ActionWrapper =
|
|
2422
|
+
var ActionWrapper = import_styled_components16.default.div`
|
|
2389
2423
|
flex-grow: 0;
|
|
2390
2424
|
flex-shrink: 0;
|
|
2391
2425
|
flex-basis: auto;
|
|
2392
2426
|
margin-right: var(--wui-space-03);
|
|
2393
2427
|
`;
|
|
2394
|
-
var StyledToast =
|
|
2428
|
+
var StyledToast = import_styled_components16.default.div`
|
|
2395
2429
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
2396
2430
|
display: flex;
|
|
2397
2431
|
align-items: center;
|
|
@@ -2474,16 +2508,16 @@ var useToast = () => {
|
|
|
2474
2508
|
|
|
2475
2509
|
// src/components/ActionButton/ActionButton.tsx
|
|
2476
2510
|
var import_react13 = require("react");
|
|
2477
|
-
var
|
|
2511
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
2478
2512
|
|
|
2479
2513
|
// src/components/Button/Button.tsx
|
|
2480
2514
|
var import_react12 = require("react");
|
|
2481
|
-
var
|
|
2515
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
2482
2516
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
2483
2517
|
|
|
2484
2518
|
// src/css/buttonResetCss.tsx
|
|
2485
|
-
var
|
|
2486
|
-
var buttonResetCss =
|
|
2519
|
+
var import_styled_components17 = require("styled-components");
|
|
2520
|
+
var buttonResetCss = import_styled_components17.css`
|
|
2487
2521
|
align-items: center;
|
|
2488
2522
|
background-color: transparent;
|
|
2489
2523
|
background-image: none;
|
|
@@ -2528,8 +2562,8 @@ var buttonResetCss = import_styled_components16.css`
|
|
|
2528
2562
|
`;
|
|
2529
2563
|
|
|
2530
2564
|
// src/components/Button/buttonStyles.tsx
|
|
2531
|
-
var
|
|
2532
|
-
var buttonSmallStyles =
|
|
2565
|
+
var import_styled_components18 = require("styled-components");
|
|
2566
|
+
var buttonSmallStyles = import_styled_components18.css`
|
|
2533
2567
|
--button-padding-vertical: var(--wui-space-01);
|
|
2534
2568
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2535
2569
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2540,7 +2574,7 @@ var buttonSmallStyles = import_styled_components17.css`
|
|
|
2540
2574
|
--button-icon-size: 12px;
|
|
2541
2575
|
--button-label-gap: 4px;
|
|
2542
2576
|
`;
|
|
2543
|
-
var buttonMediumStyles =
|
|
2577
|
+
var buttonMediumStyles = import_styled_components18.css`
|
|
2544
2578
|
--button-padding-vertical: var(--wui-space-02);
|
|
2545
2579
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2546
2580
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2551,7 +2585,7 @@ var buttonMediumStyles = import_styled_components17.css`
|
|
|
2551
2585
|
--button-icon-size: 16px;
|
|
2552
2586
|
--button-label-gap: 6px;
|
|
2553
2587
|
`;
|
|
2554
|
-
var buttonLargeStyles =
|
|
2588
|
+
var buttonLargeStyles = import_styled_components18.css`
|
|
2555
2589
|
--button-padding-vertical: var(--wui-space-02);
|
|
2556
2590
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2557
2591
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2562,7 +2596,7 @@ var buttonLargeStyles = import_styled_components17.css`
|
|
|
2562
2596
|
--button-icon-size: 24px;
|
|
2563
2597
|
--button-label-gap: 8px;
|
|
2564
2598
|
`;
|
|
2565
|
-
var buttonExtraLargeStyles =
|
|
2599
|
+
var buttonExtraLargeStyles = import_styled_components18.css`
|
|
2566
2600
|
--button-padding-vertical: var(--wui-space-03);
|
|
2567
2601
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2568
2602
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2573,34 +2607,34 @@ var buttonExtraLargeStyles = import_styled_components17.css`
|
|
|
2573
2607
|
--button-icon-size: 24px;
|
|
2574
2608
|
--button-label-gap: 8px;
|
|
2575
2609
|
`;
|
|
2576
|
-
var ghostButtonVariant =
|
|
2610
|
+
var ghostButtonVariant = import_styled_components18.css`
|
|
2577
2611
|
--button-color-bg: transparent;
|
|
2578
2612
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2579
2613
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2580
2614
|
--button-color-text: var(--wui-color-text-button);
|
|
2581
2615
|
--button-color-icon: var(--wui-color-icon);
|
|
2582
2616
|
`;
|
|
2583
|
-
var outlineButtonVariant =
|
|
2617
|
+
var outlineButtonVariant = import_styled_components18.css`
|
|
2584
2618
|
${ghostButtonVariant};
|
|
2585
2619
|
--button-color-border: var(--wui-color-border);
|
|
2586
2620
|
|
|
2587
2621
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2588
2622
|
`;
|
|
2589
|
-
var softButtonVariant =
|
|
2623
|
+
var softButtonVariant = import_styled_components18.css`
|
|
2590
2624
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2591
2625
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2592
2626
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2593
2627
|
--button-color-text: var(--wui-color-text-button);
|
|
2594
2628
|
--button-color-icon: var(--wui-color-icon);
|
|
2595
2629
|
`;
|
|
2596
|
-
var solidButtonVariant =
|
|
2630
|
+
var solidButtonVariant = import_styled_components18.css`
|
|
2597
2631
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2598
2632
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2599
2633
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2600
2634
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2601
2635
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2602
2636
|
`;
|
|
2603
|
-
var disabledButtonVariant =
|
|
2637
|
+
var disabledButtonVariant = import_styled_components18.css`
|
|
2604
2638
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2605
2639
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2606
2640
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2608,7 +2642,7 @@ var disabledButtonVariant = import_styled_components17.css`
|
|
|
2608
2642
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2609
2643
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2610
2644
|
`;
|
|
2611
|
-
var pressedButtonVariant =
|
|
2645
|
+
var pressedButtonVariant = import_styled_components18.css`
|
|
2612
2646
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2613
2647
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2614
2648
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2616,7 +2650,7 @@ var pressedButtonVariant = import_styled_components17.css`
|
|
|
2616
2650
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2617
2651
|
--button-color-border: var(--wui-color-border-selected);
|
|
2618
2652
|
`;
|
|
2619
|
-
var buttonBaseStyles =
|
|
2653
|
+
var buttonBaseStyles = import_styled_components18.css`
|
|
2620
2654
|
border-radius: var(--wui-border-radius-rounded);
|
|
2621
2655
|
font-family: var(--button-typography-family);
|
|
2622
2656
|
font-size: var(--button-typography-size);
|
|
@@ -2684,7 +2718,7 @@ var buttonSizeStyles = {
|
|
|
2684
2718
|
|
|
2685
2719
|
// src/components/Icon/Icon.tsx
|
|
2686
2720
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
2687
|
-
var
|
|
2721
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
2688
2722
|
|
|
2689
2723
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2690
2724
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -6449,7 +6483,7 @@ var iconSizeMap = {
|
|
|
6449
6483
|
xl: "32",
|
|
6450
6484
|
xxl: "48"
|
|
6451
6485
|
};
|
|
6452
|
-
var StyledIcon =
|
|
6486
|
+
var StyledIcon = import_styled_components19.default.svg`
|
|
6453
6487
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
6454
6488
|
`;
|
|
6455
6489
|
var Icon = ({
|
|
@@ -6500,7 +6534,7 @@ Icon.displayName = "Icon";
|
|
|
6500
6534
|
// src/components/Link/Link.tsx
|
|
6501
6535
|
var import_react11 = require("react");
|
|
6502
6536
|
var import_type_guards12 = require("@wistia/type-guards");
|
|
6503
|
-
var
|
|
6537
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
6504
6538
|
var import_react_router_dom = require("react-router-dom");
|
|
6505
6539
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
6506
6540
|
var generateHref = (href, type, disabled) => {
|
|
@@ -6518,7 +6552,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
6518
6552
|
};
|
|
6519
6553
|
var isButton = (props) => (0, import_type_guards12.isUndefined)(props.href);
|
|
6520
6554
|
var isLink = (props) => (0, import_type_guards12.isNotUndefined)(props.href);
|
|
6521
|
-
var StyledLink =
|
|
6555
|
+
var StyledLink = import_styled_components20.default.a`
|
|
6522
6556
|
--link-icon-size: 14px;
|
|
6523
6557
|
|
|
6524
6558
|
${({ href }) => (0, import_type_guards12.isNil)(href) && buttonResetCss};
|
|
@@ -6632,17 +6666,16 @@ Link.displayName = "Link";
|
|
|
6632
6666
|
// src/components/Button/Button.tsx
|
|
6633
6667
|
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
6634
6668
|
var isLink2 = (props) => (0, import_type_guards13.isNotUndefined)(props.href);
|
|
6635
|
-
var StyledButton =
|
|
6669
|
+
var StyledButton = import_styled_components21.default.button`
|
|
6636
6670
|
${buttonResetCss}
|
|
6637
6671
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
6638
6672
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
6639
6673
|
${({ $variant }) => buttonVariantsStyles[$variant]}
|
|
6640
6674
|
${({ $unstyled }) => !$unstyled && buttonBaseStyles}
|
|
6641
6675
|
${({ $fullWidth }) => $fullWidth && "width: 100%;"}
|
|
6642
|
-
position: relative;
|
|
6643
6676
|
text-align: center;
|
|
6644
6677
|
`;
|
|
6645
|
-
var StyledButtonContent =
|
|
6678
|
+
var StyledButtonContent = import_styled_components21.default.div`
|
|
6646
6679
|
align-items: center;
|
|
6647
6680
|
display: inline-flex;
|
|
6648
6681
|
flex-grow: 1;
|
|
@@ -6654,10 +6687,10 @@ var StyledButtonContent = import_styled_components20.default.div`
|
|
|
6654
6687
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
6655
6688
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
6656
6689
|
`;
|
|
6657
|
-
var StyledButtonContentLabel =
|
|
6690
|
+
var StyledButtonContentLabel = import_styled_components21.default.span`
|
|
6658
6691
|
flex: 1;
|
|
6659
6692
|
`;
|
|
6660
|
-
var StyledButtonLoading =
|
|
6693
|
+
var StyledButtonLoading = import_styled_components21.default.div`
|
|
6661
6694
|
position: absolute;
|
|
6662
6695
|
display: flex;
|
|
6663
6696
|
`;
|
|
@@ -6770,7 +6803,7 @@ Button.displayName = "Button";
|
|
|
6770
6803
|
|
|
6771
6804
|
// src/components/ActionButton/ActionButton.tsx
|
|
6772
6805
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
6773
|
-
var StyledActionButton = (0,
|
|
6806
|
+
var StyledActionButton = (0, import_styled_components22.default)(Button)`
|
|
6774
6807
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6775
6808
|
display: grid;
|
|
6776
6809
|
grid-template-columns: 24px 1fr;
|
|
@@ -6813,7 +6846,7 @@ var StyledActionButton = (0, import_styled_components21.default)(Button)`
|
|
|
6813
6846
|
}
|
|
6814
6847
|
}
|
|
6815
6848
|
`;
|
|
6816
|
-
var StyledMainIcon =
|
|
6849
|
+
var StyledMainIcon = import_styled_components22.default.div`
|
|
6817
6850
|
grid-column: 1;
|
|
6818
6851
|
grid-row: 1;
|
|
6819
6852
|
width: 24px;
|
|
@@ -6827,7 +6860,7 @@ var StyledMainIcon = import_styled_components21.default.div`
|
|
|
6827
6860
|
}
|
|
6828
6861
|
}
|
|
6829
6862
|
`;
|
|
6830
|
-
var StyledSecondaryIcon =
|
|
6863
|
+
var StyledSecondaryIcon = import_styled_components22.default.div`
|
|
6831
6864
|
grid-column: 2;
|
|
6832
6865
|
grid-row: 1;
|
|
6833
6866
|
width: 100%;
|
|
@@ -6835,7 +6868,7 @@ var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
|
6835
6868
|
justify-content: flex-end;
|
|
6836
6869
|
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
6837
6870
|
|
|
6838
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
6871
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components22.css`
|
|
6839
6872
|
will-change: transform;
|
|
6840
6873
|
opacity: 0;
|
|
6841
6874
|
transform: translateX(-16px);
|
|
@@ -6853,7 +6886,7 @@ var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
|
6853
6886
|
}
|
|
6854
6887
|
}
|
|
6855
6888
|
`;
|
|
6856
|
-
var StyledLabel =
|
|
6889
|
+
var StyledLabel = import_styled_components22.default.span`
|
|
6857
6890
|
font-family: var(--wui-typography-heading-4-family);
|
|
6858
6891
|
font-size: var(--wui-typography-heading-4-size);
|
|
6859
6892
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -6909,10 +6942,10 @@ ActionButton.displayName = "ActionButton";
|
|
|
6909
6942
|
// src/components/Avatar/Avatar.tsx
|
|
6910
6943
|
var import_react14 = require("react");
|
|
6911
6944
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6912
|
-
var
|
|
6945
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6913
6946
|
|
|
6914
6947
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
6915
|
-
var
|
|
6948
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
6916
6949
|
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
6917
6950
|
var colorSchemeOptions = [
|
|
6918
6951
|
"inherit",
|
|
@@ -6931,7 +6964,7 @@ var colorSchemeOptions = [
|
|
|
6931
6964
|
"vendor-marketo",
|
|
6932
6965
|
"vendor-pardot"
|
|
6933
6966
|
];
|
|
6934
|
-
var StyledColorSchemeWrapper =
|
|
6967
|
+
var StyledColorSchemeWrapper = import_styled_components23.default.div`
|
|
6935
6968
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
6936
6969
|
`;
|
|
6937
6970
|
var ColorSchemeWrapper = ({
|
|
@@ -6966,7 +6999,7 @@ var formatNameForDisplay = (name) => {
|
|
|
6966
6999
|
|
|
6967
7000
|
// src/components/Avatar/Avatar.tsx
|
|
6968
7001
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
6969
|
-
var AvatarImage =
|
|
7002
|
+
var AvatarImage = import_styled_components24.default.img`
|
|
6970
7003
|
align-items: center;
|
|
6971
7004
|
background-color: white;
|
|
6972
7005
|
border-radius: 50%;
|
|
@@ -6994,7 +7027,7 @@ var avatarSizeMap = {
|
|
|
6994
7027
|
lg: 32
|
|
6995
7028
|
};
|
|
6996
7029
|
var fontSizeScaleMultiplier = 0.55;
|
|
6997
|
-
var InitialsContainer =
|
|
7030
|
+
var InitialsContainer = import_styled_components24.default.div`
|
|
6998
7031
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6999
7032
|
align-items: center;
|
|
7000
7033
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -7016,7 +7049,7 @@ var InitialsContainer = import_styled_components23.default.div`
|
|
|
7016
7049
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
7017
7050
|
}
|
|
7018
7051
|
`;
|
|
7019
|
-
var AvatarWrapper =
|
|
7052
|
+
var AvatarWrapper = import_styled_components24.default.div`
|
|
7020
7053
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
7021
7054
|
`;
|
|
7022
7055
|
var chooseColorScheme = (name) => {
|
|
@@ -7083,10 +7116,10 @@ Avatar.displayName = "Avatar";
|
|
|
7083
7116
|
|
|
7084
7117
|
// src/components/Badge/Badge.tsx
|
|
7085
7118
|
var import_react15 = require("react");
|
|
7086
|
-
var
|
|
7119
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
7087
7120
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
7088
7121
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
7089
|
-
var StyledBadge =
|
|
7122
|
+
var StyledBadge = import_styled_components25.default.div`
|
|
7090
7123
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7091
7124
|
align-items: center;
|
|
7092
7125
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -7128,7 +7161,7 @@ Badge.displayName = "Badge";
|
|
|
7128
7161
|
|
|
7129
7162
|
// src/components/Box/Box.tsx
|
|
7130
7163
|
var import_react16 = require("react");
|
|
7131
|
-
var
|
|
7164
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
7132
7165
|
var import_type_guards17 = require("@wistia/type-guards");
|
|
7133
7166
|
|
|
7134
7167
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -7180,7 +7213,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
7180
7213
|
}
|
|
7181
7214
|
return void 0;
|
|
7182
7215
|
};
|
|
7183
|
-
var StyledBoxComponent =
|
|
7216
|
+
var StyledBoxComponent = import_styled_components26.default.div`
|
|
7184
7217
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
7185
7218
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
7186
7219
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -7267,9 +7300,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
7267
7300
|
|
|
7268
7301
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
7269
7302
|
var import_react17 = require("react");
|
|
7270
|
-
var
|
|
7303
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
7271
7304
|
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
7272
|
-
var StyledBreadcrumbs =
|
|
7305
|
+
var StyledBreadcrumbs = import_styled_components27.default.nav`
|
|
7273
7306
|
display: flex;
|
|
7274
7307
|
align-items: center;
|
|
7275
7308
|
gap: var(--wui-space-01);
|
|
@@ -7314,9 +7347,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
7314
7347
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
7315
7348
|
|
|
7316
7349
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
7317
|
-
var
|
|
7350
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
7318
7351
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
7319
|
-
var BreadcrumbContent =
|
|
7352
|
+
var BreadcrumbContent = import_styled_components28.default.span`
|
|
7320
7353
|
overflow: hidden;
|
|
7321
7354
|
white-space: nowrap;
|
|
7322
7355
|
display: block;
|
|
@@ -7348,7 +7381,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
7348
7381
|
};
|
|
7349
7382
|
|
|
7350
7383
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
7351
|
-
var
|
|
7384
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
7352
7385
|
var import_type_guards18 = require("@wistia/type-guards");
|
|
7353
7386
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
7354
7387
|
var getAlignment = (align) => {
|
|
@@ -7363,7 +7396,7 @@ var getAlignment = (align) => {
|
|
|
7363
7396
|
}
|
|
7364
7397
|
return "flex-start";
|
|
7365
7398
|
};
|
|
7366
|
-
var ButtonGroupComponent =
|
|
7399
|
+
var ButtonGroupComponent = import_styled_components29.default.div`
|
|
7367
7400
|
display: flex;
|
|
7368
7401
|
|
|
7369
7402
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -7412,9 +7445,9 @@ var ButtonGroup = ({
|
|
|
7412
7445
|
ButtonGroup.displayName = "ButtonGroup";
|
|
7413
7446
|
|
|
7414
7447
|
// src/components/Card/Card.tsx
|
|
7415
|
-
var
|
|
7448
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
7416
7449
|
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
7417
|
-
var StyledCard = (0,
|
|
7450
|
+
var StyledCard = (0, import_styled_components30.default)(Box)`
|
|
7418
7451
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7419
7452
|
box-sizing: border-box;
|
|
7420
7453
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -7465,53 +7498,53 @@ Card.displayName = "Card";
|
|
|
7465
7498
|
// src/components/Checkbox/Checkbox.tsx
|
|
7466
7499
|
var import_react19 = require("react");
|
|
7467
7500
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
7468
|
-
var
|
|
7501
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
7469
7502
|
var import_type_guards20 = require("@wistia/type-guards");
|
|
7470
7503
|
|
|
7471
7504
|
// src/components/Label/Label.tsx
|
|
7472
|
-
var
|
|
7505
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
7473
7506
|
|
|
7474
7507
|
// src/components/Heading/Heading.tsx
|
|
7475
7508
|
var import_react18 = require("react");
|
|
7476
|
-
var
|
|
7509
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
7477
7510
|
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
7478
|
-
var heroStyle =
|
|
7511
|
+
var heroStyle = import_styled_components31.css`
|
|
7479
7512
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
7480
7513
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
7481
7514
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
7482
7515
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
7483
7516
|
`;
|
|
7484
|
-
var heading1TextStyle =
|
|
7517
|
+
var heading1TextStyle = import_styled_components31.css`
|
|
7485
7518
|
--font-family: var(--wui-typography-heading-1-family);
|
|
7486
7519
|
--font-size: var(--wui-typography-heading-1-size);
|
|
7487
7520
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
7488
7521
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
7489
7522
|
`;
|
|
7490
|
-
var heading2TextStyle =
|
|
7523
|
+
var heading2TextStyle = import_styled_components31.css`
|
|
7491
7524
|
--font-family: var(--wui-typography-heading-2-family);
|
|
7492
7525
|
--font-size: var(--wui-typography-heading-2-size);
|
|
7493
7526
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
7494
7527
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
7495
7528
|
`;
|
|
7496
|
-
var heading3TextStyle =
|
|
7529
|
+
var heading3TextStyle = import_styled_components31.css`
|
|
7497
7530
|
--font-family: var(--wui-typography-heading-3-family);
|
|
7498
7531
|
--font-size: var(--wui-typography-heading-3-size);
|
|
7499
7532
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
7500
7533
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
7501
7534
|
`;
|
|
7502
|
-
var heading4TextStyle =
|
|
7535
|
+
var heading4TextStyle = import_styled_components31.css`
|
|
7503
7536
|
--font-family: var(--wui-typography-heading-4-family);
|
|
7504
7537
|
--font-size: var(--wui-typography-heading-4-size);
|
|
7505
7538
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
7506
7539
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
7507
7540
|
`;
|
|
7508
|
-
var heading5TextStyle =
|
|
7541
|
+
var heading5TextStyle = import_styled_components31.css`
|
|
7509
7542
|
--font-family: var(--wui-typography-heading-5-family);
|
|
7510
7543
|
--font-size: var(--wui-typography-heading-5-size);
|
|
7511
7544
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
7512
7545
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
7513
7546
|
`;
|
|
7514
|
-
var heading6TextStyle =
|
|
7547
|
+
var heading6TextStyle = import_styled_components31.css`
|
|
7515
7548
|
--font-family: var(--wui-typography-heading-6-family);
|
|
7516
7549
|
--font-size: var(--wui-typography-heading-6-size);
|
|
7517
7550
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -7527,7 +7560,7 @@ var variantStyleMap = {
|
|
|
7527
7560
|
heading6: heading6TextStyle
|
|
7528
7561
|
};
|
|
7529
7562
|
var DEFAULT_ELEMENT2 = "h1";
|
|
7530
|
-
var StyledHeading =
|
|
7563
|
+
var StyledHeading = import_styled_components31.default.div`
|
|
7531
7564
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7532
7565
|
font-family: var(--font-family);
|
|
7533
7566
|
font-size: var(--font-size);
|
|
@@ -7536,16 +7569,16 @@ var StyledHeading = import_styled_components30.default.div`
|
|
|
7536
7569
|
color: var(--wui-color-text);
|
|
7537
7570
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
7538
7571
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7539
|
-
${({ $inline }) => $inline &&
|
|
7572
|
+
${({ $inline }) => $inline && import_styled_components31.css`
|
|
7540
7573
|
display: inline-block;
|
|
7541
7574
|
`}
|
|
7542
|
-
${({ $disabled }) => $disabled &&
|
|
7575
|
+
${({ $disabled }) => $disabled && import_styled_components31.css`
|
|
7543
7576
|
color: var(--wui-color-text-disabled);
|
|
7544
7577
|
`}
|
|
7545
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7578
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components31.css`
|
|
7546
7579
|
user-select: none;
|
|
7547
7580
|
`}
|
|
7548
|
-
${({ $align }) =>
|
|
7581
|
+
${({ $align }) => import_styled_components31.css`
|
|
7549
7582
|
text-align: ${$align};
|
|
7550
7583
|
`}
|
|
7551
7584
|
margin: 0;
|
|
@@ -7591,7 +7624,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
7591
7624
|
|
|
7592
7625
|
// src/components/Label/Label.tsx
|
|
7593
7626
|
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
7594
|
-
var requiredStyle =
|
|
7627
|
+
var requiredStyle = import_styled_components32.css`
|
|
7595
7628
|
&::after {
|
|
7596
7629
|
color: var(--wui-color-text-error);
|
|
7597
7630
|
display: inline;
|
|
@@ -7599,10 +7632,10 @@ var requiredStyle = import_styled_components31.css`
|
|
|
7599
7632
|
content: '*';
|
|
7600
7633
|
}
|
|
7601
7634
|
`;
|
|
7602
|
-
var disabledStyle =
|
|
7635
|
+
var disabledStyle = import_styled_components32.css`
|
|
7603
7636
|
color: var(--wui-color-text-disabled);
|
|
7604
7637
|
`;
|
|
7605
|
-
var StyledLabel2 = (0,
|
|
7638
|
+
var StyledLabel2 = (0, import_styled_components32.default)(Heading).attrs({
|
|
7606
7639
|
variant: "heading6",
|
|
7607
7640
|
renderAs: "label"
|
|
7608
7641
|
})`
|
|
@@ -7645,10 +7678,10 @@ var Label = ({
|
|
|
7645
7678
|
Label.displayName = "Label";
|
|
7646
7679
|
|
|
7647
7680
|
// src/components/Label/LabelDescription.tsx
|
|
7648
|
-
var
|
|
7681
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
7649
7682
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
7650
7683
|
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
7651
|
-
var StyledLabelDescription =
|
|
7684
|
+
var StyledLabelDescription = import_styled_components33.default.div`
|
|
7652
7685
|
color: var(--wui-color-text-secondary);
|
|
7653
7686
|
font-size: var(--wui-typography-body-4-size);
|
|
7654
7687
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -7684,7 +7717,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
|
7684
7717
|
)
|
|
7685
7718
|
}
|
|
7686
7719
|
);
|
|
7687
|
-
var StyledCheckboxWrapper =
|
|
7720
|
+
var StyledCheckboxWrapper = import_styled_components34.default.div`
|
|
7688
7721
|
display: flex;
|
|
7689
7722
|
align-items: center;
|
|
7690
7723
|
cursor: pointer;
|
|
@@ -7698,7 +7731,7 @@ var StyledCheckboxWrapper = import_styled_components33.default.div`
|
|
|
7698
7731
|
background-color: #efefef;
|
|
7699
7732
|
}
|
|
7700
7733
|
`;
|
|
7701
|
-
var StyledCheckboxRoot = (0,
|
|
7734
|
+
var StyledCheckboxRoot = (0, import_styled_components34.default)(import_react_checkbox.Root)`
|
|
7702
7735
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
7703
7736
|
background-color: var(--wui-color-bg-fill-white);
|
|
7704
7737
|
min-width: 16px;
|
|
@@ -7732,10 +7765,10 @@ var StyledCheckboxRoot = (0, import_styled_components33.default)(import_react_ch
|
|
|
7732
7765
|
/* TODO Lamp to design focus state */
|
|
7733
7766
|
}
|
|
7734
7767
|
`;
|
|
7735
|
-
var StyledCheckboxIndicator = (0,
|
|
7768
|
+
var StyledCheckboxIndicator = (0, import_styled_components34.default)(import_react_checkbox.Indicator)`
|
|
7736
7769
|
display: flex;
|
|
7737
7770
|
`;
|
|
7738
|
-
var StyledLabelWrapper =
|
|
7771
|
+
var StyledLabelWrapper = import_styled_components34.default.div`
|
|
7739
7772
|
display: flex;
|
|
7740
7773
|
flex-direction: column;
|
|
7741
7774
|
margin-left: var(--wui-space-02);
|
|
@@ -7805,9 +7838,9 @@ Checkbox.displayName = "Checkbox";
|
|
|
7805
7838
|
// src/components/Collapsible/Collapsible.tsx
|
|
7806
7839
|
var import_react_collapsible = require("@radix-ui/react-collapsible");
|
|
7807
7840
|
var import_type_guards21 = require("@wistia/type-guards");
|
|
7808
|
-
var
|
|
7841
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
7809
7842
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
7810
|
-
var StyledRoot = (0,
|
|
7843
|
+
var StyledRoot = (0, import_styled_components35.default)(import_react_collapsible.Root)`
|
|
7811
7844
|
&[data-state='closed'] [data-wui-collapsible-content] {
|
|
7812
7845
|
display: -webkit-box;
|
|
7813
7846
|
-webkit-box-orient: vertical;
|
|
@@ -7837,11 +7870,11 @@ var CollapsibleTrigger = ({ children }) => {
|
|
|
7837
7870
|
};
|
|
7838
7871
|
|
|
7839
7872
|
// src/components/Collapsible/CollapsibleContent.tsx
|
|
7840
|
-
var
|
|
7873
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7841
7874
|
var import_react_collapsible3 = require("@radix-ui/react-collapsible");
|
|
7842
7875
|
var import_type_guards22 = require("@wistia/type-guards");
|
|
7843
7876
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
7844
|
-
var ClampedContent =
|
|
7877
|
+
var ClampedContent = import_styled_components36.default.div.attrs({ "data-wui-collapsible-content": true })`
|
|
7845
7878
|
--wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
|
|
7846
7879
|
`;
|
|
7847
7880
|
var CollapsibleContent = ({ clamp, children }) => {
|
|
@@ -7855,10 +7888,10 @@ var CollapsibleContent = ({ clamp, children }) => {
|
|
|
7855
7888
|
};
|
|
7856
7889
|
|
|
7857
7890
|
// src/components/DataCards/DataCard.tsx
|
|
7858
|
-
var
|
|
7891
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7859
7892
|
var import_type_guards23 = require("@wistia/type-guards");
|
|
7860
7893
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
7861
|
-
var StyledDataCard =
|
|
7894
|
+
var StyledDataCard = import_styled_components37.default.div`
|
|
7862
7895
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7863
7896
|
display: grid;
|
|
7864
7897
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -7871,7 +7904,7 @@ var StyledDataCard = import_styled_components36.default.div`
|
|
|
7871
7904
|
border-radius: var(--wui-border-radius-02);
|
|
7872
7905
|
position: relative;
|
|
7873
7906
|
`;
|
|
7874
|
-
var shimmer =
|
|
7907
|
+
var shimmer = import_styled_components37.keyframes`
|
|
7875
7908
|
0% {
|
|
7876
7909
|
background-position: 200% 0;
|
|
7877
7910
|
}
|
|
@@ -7879,7 +7912,7 @@ var shimmer = import_styled_components36.keyframes`
|
|
|
7879
7912
|
background-position: -200% 0;
|
|
7880
7913
|
}
|
|
7881
7914
|
`;
|
|
7882
|
-
var LoadingBackground =
|
|
7915
|
+
var LoadingBackground = import_styled_components37.default.div`
|
|
7883
7916
|
background: linear-gradient(
|
|
7884
7917
|
90deg,
|
|
7885
7918
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -7890,27 +7923,27 @@ var LoadingBackground = import_styled_components36.default.div`
|
|
|
7890
7923
|
animation: ${shimmer} 1.5s infinite;
|
|
7891
7924
|
border-radius: var(--wui-border-radius-01);
|
|
7892
7925
|
`;
|
|
7893
|
-
var StyledLoadingLabel = (0,
|
|
7926
|
+
var StyledLoadingLabel = (0, import_styled_components37.default)(LoadingBackground)`
|
|
7894
7927
|
width: 80px;
|
|
7895
7928
|
height: var(--wui-typography-heading-6-line-height);
|
|
7896
7929
|
`;
|
|
7897
|
-
var StyledLoadingValue = (0,
|
|
7930
|
+
var StyledLoadingValue = (0, import_styled_components37.default)(LoadingBackground)`
|
|
7898
7931
|
width: 90%;
|
|
7899
7932
|
height: var(--wui-typography-heading-3-line-height);
|
|
7900
7933
|
`;
|
|
7901
|
-
var StyledLabel3 = (0,
|
|
7934
|
+
var StyledLabel3 = (0, import_styled_components37.default)(Heading)`
|
|
7902
7935
|
grid-area: label;
|
|
7903
7936
|
`;
|
|
7904
|
-
var StyledValue = (0,
|
|
7937
|
+
var StyledValue = (0, import_styled_components37.default)(Heading)`
|
|
7905
7938
|
grid-area: value;
|
|
7906
7939
|
`;
|
|
7907
|
-
var StyledSlot =
|
|
7940
|
+
var StyledSlot = import_styled_components37.default.div`
|
|
7908
7941
|
display: flex;
|
|
7909
7942
|
justify-content: flex-end;
|
|
7910
7943
|
grid-area: slot;
|
|
7911
7944
|
align-self: center;
|
|
7912
7945
|
`;
|
|
7913
|
-
var StyledDataCardTrendContainer =
|
|
7946
|
+
var StyledDataCardTrendContainer = import_styled_components37.default.div`
|
|
7914
7947
|
position: absolute;
|
|
7915
7948
|
bottom: var(--wui-space-01);
|
|
7916
7949
|
right: var(--wui-space-01);
|
|
@@ -7953,9 +7986,9 @@ var DataCard = ({
|
|
|
7953
7986
|
DataCard.displayName = "DataCard";
|
|
7954
7987
|
|
|
7955
7988
|
// src/components/DataCards/DataCards.tsx
|
|
7956
|
-
var
|
|
7989
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7957
7990
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
7958
|
-
var StyledDataCards = (0,
|
|
7991
|
+
var StyledDataCards = (0, import_styled_components38.default)(Box)`
|
|
7959
7992
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7960
7993
|
margin-top: 0; /* Remove default <dl> style */
|
|
7961
7994
|
> * {
|
|
@@ -7987,25 +8020,25 @@ var DataCards = ({
|
|
|
7987
8020
|
DataCards.displayName = "DataCards";
|
|
7988
8021
|
|
|
7989
8022
|
// src/components/DataCards/DataCardTrend.tsx
|
|
7990
|
-
var
|
|
8023
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7991
8024
|
|
|
7992
8025
|
// src/components/Text/Text.tsx
|
|
7993
8026
|
var import_react21 = require("react");
|
|
7994
|
-
var
|
|
8027
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7995
8028
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
7996
|
-
var bodyBoldStyles =
|
|
8029
|
+
var bodyBoldStyles = import_styled_components39.css`
|
|
7997
8030
|
> strong,
|
|
7998
8031
|
b {
|
|
7999
8032
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
8000
8033
|
}
|
|
8001
8034
|
`;
|
|
8002
|
-
var labelBoldStyles =
|
|
8035
|
+
var labelBoldStyles = import_styled_components39.css`
|
|
8003
8036
|
> strong,
|
|
8004
8037
|
b {
|
|
8005
8038
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
8006
8039
|
}
|
|
8007
8040
|
`;
|
|
8008
|
-
var body1TextStyle =
|
|
8041
|
+
var body1TextStyle = import_styled_components39.css`
|
|
8009
8042
|
--font-family: var(--wui-typography-body-1-family);
|
|
8010
8043
|
--font-size: var(--wui-typography-body-1-size);
|
|
8011
8044
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
@@ -8013,7 +8046,7 @@ var body1TextStyle = import_styled_components38.css`
|
|
|
8013
8046
|
--paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
|
|
8014
8047
|
${bodyBoldStyles}
|
|
8015
8048
|
`;
|
|
8016
|
-
var body2TextStyle =
|
|
8049
|
+
var body2TextStyle = import_styled_components39.css`
|
|
8017
8050
|
--font-family: var(--wui-typography-body-2-family);
|
|
8018
8051
|
--font-size: var(--wui-typography-body-2-size);
|
|
8019
8052
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -8021,7 +8054,7 @@ var body2TextStyle = import_styled_components38.css`
|
|
|
8021
8054
|
--paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
|
|
8022
8055
|
${bodyBoldStyles}
|
|
8023
8056
|
`;
|
|
8024
|
-
var body3TextStyle =
|
|
8057
|
+
var body3TextStyle = import_styled_components39.css`
|
|
8025
8058
|
--font-family: var(--wui-typography-body-3-family);
|
|
8026
8059
|
--font-size: var(--wui-typography-body-3-size);
|
|
8027
8060
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
@@ -8029,7 +8062,7 @@ var body3TextStyle = import_styled_components38.css`
|
|
|
8029
8062
|
--paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
|
|
8030
8063
|
${bodyBoldStyles}
|
|
8031
8064
|
`;
|
|
8032
|
-
var body4TextStyle =
|
|
8065
|
+
var body4TextStyle = import_styled_components39.css`
|
|
8033
8066
|
--font-family: var(--wui-typography-body-4-family);
|
|
8034
8067
|
--font-size: var(--wui-typography-body-4-size);
|
|
8035
8068
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -8037,47 +8070,47 @@ var body4TextStyle = import_styled_components38.css`
|
|
|
8037
8070
|
--paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
|
|
8038
8071
|
${bodyBoldStyles}
|
|
8039
8072
|
`;
|
|
8040
|
-
var label1TextStyle =
|
|
8073
|
+
var label1TextStyle = import_styled_components39.css`
|
|
8041
8074
|
--font-family: var(--wui-typography-label-1-family);
|
|
8042
8075
|
--font-size: var(--wui-typography-label-1-size);
|
|
8043
8076
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
8044
8077
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
8045
8078
|
${labelBoldStyles}
|
|
8046
8079
|
`;
|
|
8047
|
-
var label2TextStyle =
|
|
8080
|
+
var label2TextStyle = import_styled_components39.css`
|
|
8048
8081
|
--font-family: var(--wui-typography-label-2-family);
|
|
8049
8082
|
--font-size: var(--wui-typography-label-2-size);
|
|
8050
8083
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
8051
8084
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
8052
8085
|
${labelBoldStyles}
|
|
8053
8086
|
`;
|
|
8054
|
-
var label3TextStyle =
|
|
8087
|
+
var label3TextStyle = import_styled_components39.css`
|
|
8055
8088
|
--font-family: var(--wui-typography-label-3-family);
|
|
8056
8089
|
--font-size: var(--wui-typography-label-3-size);
|
|
8057
8090
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
8058
8091
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
8059
8092
|
${labelBoldStyles}
|
|
8060
8093
|
`;
|
|
8061
|
-
var label4TextStyle =
|
|
8094
|
+
var label4TextStyle = import_styled_components39.css`
|
|
8062
8095
|
--font-family: var(--wui-typography-label-4-family);
|
|
8063
8096
|
--font-size: var(--wui-typography-label-4-size);
|
|
8064
8097
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
8065
8098
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
8066
8099
|
${labelBoldStyles}
|
|
8067
8100
|
`;
|
|
8068
|
-
var body1MonoTextStyle =
|
|
8101
|
+
var body1MonoTextStyle = import_styled_components39.css`
|
|
8069
8102
|
${body1TextStyle};
|
|
8070
8103
|
--font-family: var(--wui-typography-family-mono);
|
|
8071
8104
|
`;
|
|
8072
|
-
var body2MonoTextStyle =
|
|
8105
|
+
var body2MonoTextStyle = import_styled_components39.css`
|
|
8073
8106
|
${body2TextStyle};
|
|
8074
8107
|
--font-family: var(--wui-typography-family-mono);
|
|
8075
8108
|
`;
|
|
8076
|
-
var body3MonoTextStyle =
|
|
8109
|
+
var body3MonoTextStyle = import_styled_components39.css`
|
|
8077
8110
|
${body3TextStyle};
|
|
8078
8111
|
--font-family: var(--wui-typography-family-mono);
|
|
8079
8112
|
`;
|
|
8080
|
-
var body4MonoTextStyle =
|
|
8113
|
+
var body4MonoTextStyle = import_styled_components39.css`
|
|
8081
8114
|
${body4TextStyle};
|
|
8082
8115
|
--font-family: var(--wui-typography-family-mono);
|
|
8083
8116
|
`;
|
|
@@ -8112,7 +8145,7 @@ var variantElementMap2 = {
|
|
|
8112
8145
|
label3: labelElement,
|
|
8113
8146
|
label4: labelElement
|
|
8114
8147
|
};
|
|
8115
|
-
var StyledText =
|
|
8148
|
+
var StyledText = import_styled_components39.default.div`
|
|
8116
8149
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8117
8150
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
8118
8151
|
if ($disabled) {
|
|
@@ -8136,19 +8169,19 @@ var StyledText = import_styled_components38.default.div`
|
|
|
8136
8169
|
margin: 0;
|
|
8137
8170
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
8138
8171
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
8139
|
-
${({ $inline }) => $inline &&
|
|
8172
|
+
${({ $inline }) => $inline && import_styled_components39.css`
|
|
8140
8173
|
display: inline-block;
|
|
8141
8174
|
`}
|
|
8142
|
-
${({ $disabled }) => $disabled &&
|
|
8175
|
+
${({ $disabled }) => $disabled && import_styled_components39.css`
|
|
8143
8176
|
--text-color: var(--wui-color-text-disabled);
|
|
8144
8177
|
`}
|
|
8145
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
8178
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components39.css`
|
|
8146
8179
|
user-select: none;
|
|
8147
8180
|
`}
|
|
8148
|
-
${({ $align }) =>
|
|
8181
|
+
${({ $align }) => import_styled_components39.css`
|
|
8149
8182
|
text-align: ${$align};
|
|
8150
8183
|
`}
|
|
8151
|
-
${({ as }) => as === "p" &&
|
|
8184
|
+
${({ as }) => as === "p" && import_styled_components39.css`
|
|
8152
8185
|
display: block;
|
|
8153
8186
|
|
|
8154
8187
|
+ p {
|
|
@@ -8192,7 +8225,7 @@ var Text = makePolymorphic(TextComponent);
|
|
|
8192
8225
|
|
|
8193
8226
|
// src/components/DataCards/DataCardTrend.tsx
|
|
8194
8227
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
8195
|
-
var StyledDataCardTrend =
|
|
8228
|
+
var StyledDataCardTrend = import_styled_components40.default.div`
|
|
8196
8229
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
8197
8230
|
background: var(--wui-color-bg-app);
|
|
8198
8231
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8228,22 +8261,22 @@ var DataCardTrend = ({
|
|
|
8228
8261
|
};
|
|
8229
8262
|
|
|
8230
8263
|
// src/components/Divider/Divider.tsx
|
|
8231
|
-
var
|
|
8264
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
8232
8265
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
8233
|
-
var horizontalBorderCss =
|
|
8266
|
+
var horizontalBorderCss = import_styled_components41.css`
|
|
8234
8267
|
border-top-color: var(--wui-color-border);
|
|
8235
8268
|
border-top-style: solid;
|
|
8236
8269
|
border-top-width: 1px;
|
|
8237
8270
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
8238
8271
|
height: 0;
|
|
8239
8272
|
`;
|
|
8240
|
-
var verticalBorderCss =
|
|
8273
|
+
var verticalBorderCss = import_styled_components41.css`
|
|
8241
8274
|
background-color: var(--wui-color-border);
|
|
8242
8275
|
max-width: 1px;
|
|
8243
8276
|
min-height: 100%;
|
|
8244
8277
|
width: 1px;
|
|
8245
8278
|
`;
|
|
8246
|
-
var DividerComponent =
|
|
8279
|
+
var DividerComponent = import_styled_components41.default.div`
|
|
8247
8280
|
${({ $orientation }) => {
|
|
8248
8281
|
switch ($orientation) {
|
|
8249
8282
|
case "vertical":
|
|
@@ -8271,15 +8304,15 @@ var Divider = ({
|
|
|
8271
8304
|
Divider.displayName = "Divider";
|
|
8272
8305
|
|
|
8273
8306
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
8274
|
-
var
|
|
8307
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
8275
8308
|
var import_react23 = require("react");
|
|
8276
8309
|
|
|
8277
8310
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8278
|
-
var
|
|
8311
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
8279
8312
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
8280
8313
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
8281
|
-
var VisuallyHidden =
|
|
8282
|
-
var VisuallyHiddenButFocusable =
|
|
8314
|
+
var VisuallyHidden = import_styled_components42.default.div({ ...visuallyHiddenStyle });
|
|
8315
|
+
var VisuallyHiddenButFocusable = import_styled_components42.default.div({
|
|
8283
8316
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
8284
8317
|
});
|
|
8285
8318
|
var ScreenReaderOnly = ({
|
|
@@ -8298,16 +8331,16 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
8298
8331
|
|
|
8299
8332
|
// src/components/Tooltip/Tooltip.tsx
|
|
8300
8333
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8301
|
-
var
|
|
8334
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
8302
8335
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
8303
|
-
var CompactTooltipStyles =
|
|
8336
|
+
var CompactTooltipStyles = import_styled_components43.css`
|
|
8304
8337
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8305
8338
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8306
8339
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8307
8340
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8308
8341
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8309
8342
|
`;
|
|
8310
|
-
var StyledContent = (0,
|
|
8343
|
+
var StyledContent = (0, import_styled_components43.default)(import_react_tooltip2.Content)`
|
|
8311
8344
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8312
8345
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8313
8346
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8404,10 +8437,10 @@ Tooltip.displayName = "Tooltip";
|
|
|
8404
8437
|
|
|
8405
8438
|
// src/components/Input/Input.tsx
|
|
8406
8439
|
var import_react22 = require("react");
|
|
8407
|
-
var
|
|
8440
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
8408
8441
|
var import_type_guards25 = require("@wistia/type-guards");
|
|
8409
8442
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
8410
|
-
var inputStyles =
|
|
8443
|
+
var inputStyles = import_styled_components44.css`
|
|
8411
8444
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
8412
8445
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
8413
8446
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -8448,7 +8481,7 @@ var inputStyles = import_styled_components43.css`
|
|
|
8448
8481
|
}
|
|
8449
8482
|
}
|
|
8450
8483
|
`;
|
|
8451
|
-
var StyledInputContainer =
|
|
8484
|
+
var StyledInputContainer = import_styled_components44.default.div`
|
|
8452
8485
|
display: inline-flex;
|
|
8453
8486
|
position: relative;
|
|
8454
8487
|
${inputStyles};
|
|
@@ -8567,7 +8600,7 @@ Input.displayName = "Input";
|
|
|
8567
8600
|
|
|
8568
8601
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
8569
8602
|
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
8570
|
-
var StyledInput = (0,
|
|
8603
|
+
var StyledInput = (0, import_styled_components45.default)(Input)`
|
|
8571
8604
|
:not([rows]) {
|
|
8572
8605
|
min-height: unset;
|
|
8573
8606
|
}
|
|
@@ -8587,7 +8620,7 @@ var StyledInput = (0, import_styled_components44.default)(Input)`
|
|
|
8587
8620
|
height: ${({ $height }) => `${$height}px`};
|
|
8588
8621
|
}
|
|
8589
8622
|
`;
|
|
8590
|
-
var editableStyles =
|
|
8623
|
+
var editableStyles = import_styled_components45.css`
|
|
8591
8624
|
&:has(+ :focus-within) {
|
|
8592
8625
|
background: var(--wui-color-bg-surface-hover);
|
|
8593
8626
|
}
|
|
@@ -8597,7 +8630,7 @@ var editableStyles = import_styled_components44.css`
|
|
|
8597
8630
|
cursor: pointer;
|
|
8598
8631
|
}
|
|
8599
8632
|
`;
|
|
8600
|
-
var StyledHeading2 = (0,
|
|
8633
|
+
var StyledHeading2 = (0, import_styled_components45.default)(Heading)`
|
|
8601
8634
|
width: 100%;
|
|
8602
8635
|
border-radius: var(--wui-border-radius-02);
|
|
8603
8636
|
padding: var(--wui-space-02);
|
|
@@ -8705,15 +8738,15 @@ var EditableHeading = ({
|
|
|
8705
8738
|
|
|
8706
8739
|
// src/components/Form/Form.tsx
|
|
8707
8740
|
var import_react25 = require("react");
|
|
8708
|
-
var
|
|
8741
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8709
8742
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8710
8743
|
|
|
8711
8744
|
// src/components/Stack/Stack.tsx
|
|
8712
8745
|
var import_react24 = require("react");
|
|
8713
|
-
var
|
|
8746
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
8714
8747
|
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
8715
8748
|
var DEFAULT_ELEMENT4 = "div";
|
|
8716
|
-
var StyledStack =
|
|
8749
|
+
var StyledStack = import_styled_components46.default.div`
|
|
8717
8750
|
display: flex;
|
|
8718
8751
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
8719
8752
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -8739,7 +8772,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
8739
8772
|
|
|
8740
8773
|
// src/components/Form/Form.tsx
|
|
8741
8774
|
var import_jsx_runtime216 = require("react/jsx-runtime");
|
|
8742
|
-
var StyledForm =
|
|
8775
|
+
var StyledForm = import_styled_components47.default.form`
|
|
8743
8776
|
--form-default-width: 690px;
|
|
8744
8777
|
|
|
8745
8778
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -8914,20 +8947,20 @@ var FormErrorSummary = ({ description }) => {
|
|
|
8914
8947
|
|
|
8915
8948
|
// src/components/FormField/FormField.tsx
|
|
8916
8949
|
var import_react30 = require("react");
|
|
8917
|
-
var
|
|
8950
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8918
8951
|
var import_type_guards28 = require("@wistia/type-guards");
|
|
8919
8952
|
|
|
8920
8953
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
8921
8954
|
var import_react29 = require("react");
|
|
8922
8955
|
|
|
8923
8956
|
// src/components/FormGroup/FormGroup.tsx
|
|
8924
|
-
var
|
|
8957
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8925
8958
|
var import_react28 = require("react");
|
|
8926
8959
|
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
8927
|
-
var StyledFieldset =
|
|
8960
|
+
var StyledFieldset = import_styled_components48.default.fieldset`
|
|
8928
8961
|
border: 0;
|
|
8929
8962
|
`;
|
|
8930
|
-
var StyledLegend =
|
|
8963
|
+
var StyledLegend = import_styled_components48.default.legend`
|
|
8931
8964
|
margin-bottom: var(--space-01);
|
|
8932
8965
|
`;
|
|
8933
8966
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -8976,7 +9009,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
8976
9009
|
|
|
8977
9010
|
// src/components/FormField/FormField.tsx
|
|
8978
9011
|
var import_jsx_runtime220 = require("react/jsx-runtime");
|
|
8979
|
-
var StyledFormField =
|
|
9012
|
+
var StyledFormField = import_styled_components49.default.div`
|
|
8980
9013
|
--form-field-spacing: var(--wui-space-01);
|
|
8981
9014
|
--form-field-spacing-inline: var(--wui-space-02);
|
|
8982
9015
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
@@ -9000,7 +9033,7 @@ var StyledFormField = import_styled_components48.default.div`
|
|
|
9000
9033
|
grid-template-rows: 1fr;
|
|
9001
9034
|
}
|
|
9002
9035
|
`;
|
|
9003
|
-
var StyledErrorList =
|
|
9036
|
+
var StyledErrorList = import_styled_components49.default.ul`
|
|
9004
9037
|
margin: 0;
|
|
9005
9038
|
padding: 0;
|
|
9006
9039
|
padding-left: var(--wui-space-04);
|
|
@@ -9126,9 +9159,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
9126
9159
|
|
|
9127
9160
|
// src/components/IconButton/IconButton.tsx
|
|
9128
9161
|
var import_react32 = require("react");
|
|
9129
|
-
var
|
|
9162
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
9130
9163
|
var import_jsx_runtime222 = require("react/jsx-runtime");
|
|
9131
|
-
var StyledButton2 = (0,
|
|
9164
|
+
var StyledButton2 = (0, import_styled_components50.default)(Button)`
|
|
9132
9165
|
--icon-button-size-sm: 24px;
|
|
9133
9166
|
--icon-button-size-md: 32px;
|
|
9134
9167
|
--icon-button-size-lg: 40px;
|
|
@@ -9162,10 +9195,59 @@ var IconButton = (0, import_react32.forwardRef)(
|
|
|
9162
9195
|
);
|
|
9163
9196
|
IconButton.displayName = "IconButton";
|
|
9164
9197
|
|
|
9198
|
+
// src/components/Image/Image.tsx
|
|
9199
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
9200
|
+
var import_type_guards29 = require("@wistia/type-guards");
|
|
9201
|
+
var import_jsx_runtime223 = require("react/jsx-runtime");
|
|
9202
|
+
var getFillStyle2 = (fillContainer) => {
|
|
9203
|
+
if (fillContainer === "horizontal") {
|
|
9204
|
+
return "width: 100%;";
|
|
9205
|
+
}
|
|
9206
|
+
if (fillContainer === "vertical") {
|
|
9207
|
+
return "height: 100%;";
|
|
9208
|
+
}
|
|
9209
|
+
if (fillContainer === true) {
|
|
9210
|
+
return `
|
|
9211
|
+
width: 100%;
|
|
9212
|
+
height: 100%;
|
|
9213
|
+
`;
|
|
9214
|
+
}
|
|
9215
|
+
return void 0;
|
|
9216
|
+
};
|
|
9217
|
+
var StyledImage = import_styled_components51.default.img`
|
|
9218
|
+
border-radius: ${({ $borderRadius }) => (0, import_type_guards29.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
|
|
9219
|
+
${({ $fillContainer }) => getFillStyle2($fillContainer)};
|
|
9220
|
+
object-fit: ${({ $objFit }) => $objFit};
|
|
9221
|
+
object-position: ${({ $objPosition }) => $objPosition};
|
|
9222
|
+
`;
|
|
9223
|
+
var Image = ({
|
|
9224
|
+
src,
|
|
9225
|
+
alt,
|
|
9226
|
+
borderRadius,
|
|
9227
|
+
fill: fillContainer = false,
|
|
9228
|
+
fit: objFit,
|
|
9229
|
+
loading = "lazy",
|
|
9230
|
+
position: objPosition,
|
|
9231
|
+
...otherProps
|
|
9232
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
9233
|
+
StyledImage,
|
|
9234
|
+
{
|
|
9235
|
+
$borderRadius: borderRadius,
|
|
9236
|
+
$fillContainer: fillContainer,
|
|
9237
|
+
$objFit: objFit,
|
|
9238
|
+
$objPosition: objPosition,
|
|
9239
|
+
alt,
|
|
9240
|
+
loading,
|
|
9241
|
+
src,
|
|
9242
|
+
...otherProps
|
|
9243
|
+
}
|
|
9244
|
+
);
|
|
9245
|
+
Image.displayName = "Image";
|
|
9246
|
+
|
|
9165
9247
|
// src/components/Menu/Menu.tsx
|
|
9166
|
-
var
|
|
9248
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
9167
9249
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
9168
|
-
var
|
|
9250
|
+
var import_type_guards30 = require("@wistia/type-guards");
|
|
9169
9251
|
var import_react34 = require("react");
|
|
9170
9252
|
|
|
9171
9253
|
// src/components/Menu/MenuContext.tsx
|
|
@@ -9174,8 +9256,8 @@ var MenuContext = (0, import_react33.createContext)({ compact: false });
|
|
|
9174
9256
|
var useMenuContext = () => (0, import_react33.useContext)(MenuContext);
|
|
9175
9257
|
|
|
9176
9258
|
// src/components/Menu/Menu.tsx
|
|
9177
|
-
var
|
|
9178
|
-
var open =
|
|
9259
|
+
var import_jsx_runtime224 = require("react/jsx-runtime");
|
|
9260
|
+
var open = import_styled_components52.keyframes`
|
|
9179
9261
|
from {
|
|
9180
9262
|
opacity: 0;
|
|
9181
9263
|
transform: scale(.97) translateY(-8px);
|
|
@@ -9185,7 +9267,7 @@ var open = import_styled_components50.keyframes`
|
|
|
9185
9267
|
transform: scale(1);
|
|
9186
9268
|
}
|
|
9187
9269
|
`;
|
|
9188
|
-
var close =
|
|
9270
|
+
var close = import_styled_components52.keyframes`
|
|
9189
9271
|
from {
|
|
9190
9272
|
opacity: 1;
|
|
9191
9273
|
transform: scale(1);
|
|
@@ -9195,7 +9277,7 @@ var close = import_styled_components50.keyframes`
|
|
|
9195
9277
|
transform: scale(.97) translateY(-8px);
|
|
9196
9278
|
}
|
|
9197
9279
|
`;
|
|
9198
|
-
var menuItemCss =
|
|
9280
|
+
var menuItemCss = import_styled_components52.css`
|
|
9199
9281
|
--menu-label-description-gap: var(--wui-space-01);
|
|
9200
9282
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
9201
9283
|
--menu-item-left-icon-size: 24px;
|
|
@@ -9206,7 +9288,7 @@ var menuItemCss = import_styled_components50.css`
|
|
|
9206
9288
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
9207
9289
|
--menu-divider-margin: var(--wui-space-02);
|
|
9208
9290
|
`;
|
|
9209
|
-
var compactMenuItemCss =
|
|
9291
|
+
var compactMenuItemCss = import_styled_components52.css`
|
|
9210
9292
|
--menu-label-description-gap: 0;
|
|
9211
9293
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
9212
9294
|
--menu-item-left-icon-size: 16px;
|
|
@@ -9217,7 +9299,7 @@ var compactMenuItemCss = import_styled_components50.css`
|
|
|
9217
9299
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
9218
9300
|
--menu-divider-margin: var(--wui-space-01);
|
|
9219
9301
|
`;
|
|
9220
|
-
var menuContentCss =
|
|
9302
|
+
var menuContentCss = import_styled_components52.css`
|
|
9221
9303
|
--menu-font-family: var(--wui-typography-family-default);
|
|
9222
9304
|
--menu-bg: var(--wui-color-bg-surface);
|
|
9223
9305
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -9259,7 +9341,7 @@ var menuContentCss = import_styled_components50.css`
|
|
|
9259
9341
|
margin: var(--menu-divider-margin) 0;
|
|
9260
9342
|
}
|
|
9261
9343
|
`;
|
|
9262
|
-
var MenuContent = (0,
|
|
9344
|
+
var MenuContent = (0, import_styled_components52.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
9263
9345
|
${menuContentCss}
|
|
9264
9346
|
`;
|
|
9265
9347
|
var Menu = ({
|
|
@@ -9277,7 +9359,7 @@ var Menu = ({
|
|
|
9277
9359
|
}) => {
|
|
9278
9360
|
const contextValue = (0, import_react34.useMemo)(() => ({ compact }), [compact]);
|
|
9279
9361
|
let controlProps = {
|
|
9280
|
-
...(0,
|
|
9362
|
+
...(0, import_type_guards30.isNotNil)(onOpenChange) && (0, import_type_guards30.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
9281
9363
|
};
|
|
9282
9364
|
if (disabled) {
|
|
9283
9365
|
controlProps = {
|
|
@@ -9285,24 +9367,24 @@ var Menu = ({
|
|
|
9285
9367
|
onOpenChange: () => null
|
|
9286
9368
|
};
|
|
9287
9369
|
}
|
|
9288
|
-
return /* @__PURE__ */ (0,
|
|
9370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
|
|
9289
9371
|
import_react_dropdown_menu.DropdownMenu,
|
|
9290
9372
|
{
|
|
9291
9373
|
modal: false,
|
|
9292
9374
|
...controlProps,
|
|
9293
9375
|
children: [
|
|
9294
|
-
/* @__PURE__ */ (0,
|
|
9376
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards30.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
9295
9377
|
Button,
|
|
9296
9378
|
{
|
|
9297
9379
|
"aria-expanded": isOpen,
|
|
9298
9380
|
disabled,
|
|
9299
9381
|
forceState: isOpen ? "active" : void 0,
|
|
9300
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
9382
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Icon, { type: "caret-down" }),
|
|
9301
9383
|
...triggerProps,
|
|
9302
9384
|
children: label
|
|
9303
9385
|
}
|
|
9304
9386
|
) }),
|
|
9305
|
-
/* @__PURE__ */ (0,
|
|
9387
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_dropdown_menu.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
9306
9388
|
MenuContent,
|
|
9307
9389
|
{
|
|
9308
9390
|
...props,
|
|
@@ -9322,19 +9404,19 @@ var Menu = ({
|
|
|
9322
9404
|
Menu.displayName = "Menu";
|
|
9323
9405
|
|
|
9324
9406
|
// src/components/Menu/MenuLabel.tsx
|
|
9325
|
-
var
|
|
9407
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
9326
9408
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
9327
|
-
var
|
|
9328
|
-
var StyledMenuLabel = (0,
|
|
9409
|
+
var import_jsx_runtime225 = require("react/jsx-runtime");
|
|
9410
|
+
var StyledMenuLabel = (0, import_styled_components53.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
9329
9411
|
padding: var(--wui-space-02);
|
|
9330
9412
|
`;
|
|
9331
9413
|
var MenuLabel = ({ children, ...props }) => {
|
|
9332
|
-
return /* @__PURE__ */ (0,
|
|
9414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
9333
9415
|
StyledMenuLabel,
|
|
9334
9416
|
{
|
|
9335
9417
|
asChild: true,
|
|
9336
9418
|
...props,
|
|
9337
|
-
children: /* @__PURE__ */ (0,
|
|
9419
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
9338
9420
|
Heading,
|
|
9339
9421
|
{
|
|
9340
9422
|
renderAs: "span",
|
|
@@ -9350,16 +9432,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
9350
9432
|
|
|
9351
9433
|
// src/components/Menu/SubMenu.tsx
|
|
9352
9434
|
var import_react36 = require("react");
|
|
9353
|
-
var
|
|
9435
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
9354
9436
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
9355
|
-
var
|
|
9437
|
+
var import_type_guards32 = require("@wistia/type-guards");
|
|
9356
9438
|
|
|
9357
9439
|
// src/components/Menu/MenuItemButton.tsx
|
|
9358
9440
|
var import_react35 = require("react");
|
|
9359
|
-
var
|
|
9360
|
-
var
|
|
9361
|
-
var
|
|
9362
|
-
var StyledButton3 = (0,
|
|
9441
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
9442
|
+
var import_type_guards31 = require("@wistia/type-guards");
|
|
9443
|
+
var import_jsx_runtime226 = require("react/jsx-runtime");
|
|
9444
|
+
var StyledButton3 = (0, import_styled_components54.default)(Button)`
|
|
9363
9445
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
9364
9446
|
|
|
9365
9447
|
display: flex;
|
|
@@ -9398,7 +9480,7 @@ var StyledButton3 = (0, import_styled_components52.default)(Button)`
|
|
|
9398
9480
|
padding-left: var(--wui-space-04);
|
|
9399
9481
|
}
|
|
9400
9482
|
`;
|
|
9401
|
-
var StyledLeftIconContainer =
|
|
9483
|
+
var StyledLeftIconContainer = import_styled_components54.default.div`
|
|
9402
9484
|
height: var(--menu-item-left-icon-size);
|
|
9403
9485
|
width: var(--menu-item-left-icon-size);
|
|
9404
9486
|
|
|
@@ -9409,7 +9491,7 @@ var StyledLeftIconContainer = import_styled_components52.default.div`
|
|
|
9409
9491
|
}
|
|
9410
9492
|
}
|
|
9411
9493
|
`;
|
|
9412
|
-
var StyledRightIconContainer =
|
|
9494
|
+
var StyledRightIconContainer = import_styled_components54.default.div`
|
|
9413
9495
|
height: var(--menu-item-right-icon-size);
|
|
9414
9496
|
width: var(--menu-item-right-icon-size);
|
|
9415
9497
|
|
|
@@ -9420,13 +9502,13 @@ var StyledRightIconContainer = import_styled_components52.default.div`
|
|
|
9420
9502
|
}
|
|
9421
9503
|
}
|
|
9422
9504
|
`;
|
|
9423
|
-
var StyledLabelAndDescriptionContainer =
|
|
9505
|
+
var StyledLabelAndDescriptionContainer = import_styled_components54.default.div`
|
|
9424
9506
|
display: flex;
|
|
9425
9507
|
flex-direction: column;
|
|
9426
9508
|
gap: var(--menu-label-description-gap);
|
|
9427
9509
|
flex-basis: 100%;
|
|
9428
9510
|
`;
|
|
9429
|
-
var StyledBadgeContainer =
|
|
9511
|
+
var StyledBadgeContainer = import_styled_components54.default.div`
|
|
9430
9512
|
align-self: start;
|
|
9431
9513
|
justify-self: end;
|
|
9432
9514
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -9435,13 +9517,13 @@ var StyledBadgeContainer = import_styled_components52.default.div`
|
|
|
9435
9517
|
var MenuItemButton = (0, import_react35.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
|
|
9436
9518
|
let { colorScheme, badge } = props;
|
|
9437
9519
|
if (appearance === "dangerous") {
|
|
9438
|
-
if ((0,
|
|
9520
|
+
if ((0, import_type_guards31.isNotUndefined)(colorScheme)) {
|
|
9439
9521
|
console.warn("colorScheme prop is ignored when appearance is dangerous");
|
|
9440
9522
|
}
|
|
9441
9523
|
colorScheme = "error";
|
|
9442
9524
|
}
|
|
9443
9525
|
if (appearance === "gated") {
|
|
9444
|
-
badge = /* @__PURE__ */ (0,
|
|
9526
|
+
badge = /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
9445
9527
|
Icon,
|
|
9446
9528
|
{
|
|
9447
9529
|
colorScheme: "purple",
|
|
@@ -9453,7 +9535,7 @@ var MenuItemButton = (0, import_react35.forwardRef)(({ children, appearance, com
|
|
|
9453
9535
|
}
|
|
9454
9536
|
);
|
|
9455
9537
|
}
|
|
9456
|
-
return /* @__PURE__ */ (0,
|
|
9538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
9457
9539
|
StyledButton3,
|
|
9458
9540
|
{
|
|
9459
9541
|
...props,
|
|
@@ -9463,10 +9545,10 @@ var MenuItemButton = (0, import_react35.forwardRef)(({ children, appearance, com
|
|
|
9463
9545
|
fullWidth: true,
|
|
9464
9546
|
unstyled: true,
|
|
9465
9547
|
children: [
|
|
9466
|
-
props.leftIcon ? /* @__PURE__ */ (0,
|
|
9467
|
-
/* @__PURE__ */ (0,
|
|
9468
|
-
(0,
|
|
9469
|
-
props.rightIcon ? /* @__PURE__ */ (0,
|
|
9548
|
+
props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
9549
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledLabelAndDescriptionContainer, { children }),
|
|
9550
|
+
(0, import_type_guards31.isNotNil)(badge) || (0, import_type_guards31.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
9551
|
+
props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
9470
9552
|
]
|
|
9471
9553
|
}
|
|
9472
9554
|
);
|
|
@@ -9474,33 +9556,33 @@ var MenuItemButton = (0, import_react35.forwardRef)(({ children, appearance, com
|
|
|
9474
9556
|
MenuItemButton.displayName = "MenuItemButton";
|
|
9475
9557
|
|
|
9476
9558
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
9477
|
-
var
|
|
9478
|
-
var
|
|
9479
|
-
var StyledMenuItemLabel =
|
|
9480
|
-
var StyledMenuItemDescription = (0,
|
|
9559
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
9560
|
+
var import_jsx_runtime227 = require("react/jsx-runtime");
|
|
9561
|
+
var StyledMenuItemLabel = import_styled_components55.default.span``;
|
|
9562
|
+
var StyledMenuItemDescription = (0, import_styled_components55.default)(Text).attrs({
|
|
9481
9563
|
variant: "body4",
|
|
9482
9564
|
prominence: "secondary"
|
|
9483
9565
|
})``;
|
|
9484
9566
|
var MenuItemLabel = ({ children }) => {
|
|
9485
|
-
return /* @__PURE__ */ (0,
|
|
9567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledMenuItemLabel, { children });
|
|
9486
9568
|
};
|
|
9487
9569
|
var MenuItemDescription = ({ children }) => {
|
|
9488
|
-
return /* @__PURE__ */ (0,
|
|
9570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(StyledMenuItemDescription, { children });
|
|
9489
9571
|
};
|
|
9490
9572
|
|
|
9491
9573
|
// src/components/Menu/SubMenu.tsx
|
|
9492
|
-
var
|
|
9493
|
-
var SubMenuContent = (0,
|
|
9574
|
+
var import_jsx_runtime228 = require("react/jsx-runtime");
|
|
9575
|
+
var SubMenuContent = (0, import_styled_components56.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
9494
9576
|
${menuContentCss}
|
|
9495
9577
|
|
|
9496
9578
|
${mq.smAndDown} {
|
|
9497
9579
|
transform: translateX(-100%) !important;
|
|
9498
9580
|
}
|
|
9499
9581
|
`;
|
|
9500
|
-
var StyledMobileSubMenuItems =
|
|
9582
|
+
var StyledMobileSubMenuItems = import_styled_components56.default.div`
|
|
9501
9583
|
margin-left: var(--wui-space-04);
|
|
9502
9584
|
`;
|
|
9503
|
-
var StyledSubTrigger = (0,
|
|
9585
|
+
var StyledSubTrigger = (0, import_styled_components56.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
9504
9586
|
outline: none;
|
|
9505
9587
|
|
|
9506
9588
|
&[data-state='open'],
|
|
@@ -9511,11 +9593,11 @@ var StyledSubTrigger = (0, import_styled_components54.default)(import_react_drop
|
|
|
9511
9593
|
var SubMenuTrigger = (props) => {
|
|
9512
9594
|
const { isSmAndUp } = useMq();
|
|
9513
9595
|
const Trigger4 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
|
|
9514
|
-
return /* @__PURE__ */ (0,
|
|
9596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
9515
9597
|
MenuItemButton,
|
|
9516
9598
|
{
|
|
9517
9599
|
...props,
|
|
9518
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
9600
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon, { type: "caret-right" })
|
|
9519
9601
|
}
|
|
9520
9602
|
) });
|
|
9521
9603
|
};
|
|
@@ -9529,14 +9611,14 @@ var SubMenu = ({
|
|
|
9529
9611
|
const { isSmAndUp } = useMq();
|
|
9530
9612
|
const [isExpanded, setIsExpanded] = (0, import_react36.useState)(false);
|
|
9531
9613
|
const { compact } = useMenuContext();
|
|
9532
|
-
return isSmAndUp ? /* @__PURE__ */ (0,
|
|
9533
|
-
/* @__PURE__ */ (0,
|
|
9534
|
-
/* @__PURE__ */ (0,
|
|
9535
|
-
(0,
|
|
9614
|
+
return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
|
|
9615
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(SubMenuTrigger, { ...props, children: [
|
|
9616
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemLabel, { children: label }),
|
|
9617
|
+
(0, import_type_guards32.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemDescription, { children: description }) : null
|
|
9536
9618
|
] }),
|
|
9537
|
-
/* @__PURE__ */ (0,
|
|
9538
|
-
] }) : /* @__PURE__ */ (0,
|
|
9539
|
-
/* @__PURE__ */ (0,
|
|
9619
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(SubMenuContent, { $compact: compact, children }) })
|
|
9620
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
|
|
9621
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
9540
9622
|
SubMenuTrigger,
|
|
9541
9623
|
{
|
|
9542
9624
|
...props,
|
|
@@ -9545,12 +9627,12 @@ var SubMenu = ({
|
|
|
9545
9627
|
setIsExpanded((prev) => !prev);
|
|
9546
9628
|
},
|
|
9547
9629
|
children: [
|
|
9548
|
-
/* @__PURE__ */ (0,
|
|
9549
|
-
/* @__PURE__ */ (0,
|
|
9630
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemLabel, { children: label }),
|
|
9631
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(MenuItemDescription, { children: description })
|
|
9550
9632
|
]
|
|
9551
9633
|
}
|
|
9552
9634
|
),
|
|
9553
|
-
/* @__PURE__ */ (0,
|
|
9635
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
|
|
9554
9636
|
] });
|
|
9555
9637
|
};
|
|
9556
9638
|
SubMenu.displayName = "SubMenu";
|
|
@@ -9558,15 +9640,15 @@ SubMenu.displayName = "SubMenu";
|
|
|
9558
9640
|
// src/components/Menu/MenuItem.tsx
|
|
9559
9641
|
var import_react37 = require("react");
|
|
9560
9642
|
var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
|
|
9561
|
-
var
|
|
9643
|
+
var import_jsx_runtime229 = require("react/jsx-runtime");
|
|
9562
9644
|
var MenuItem = (0, import_react37.forwardRef)(
|
|
9563
9645
|
({ onSelect = () => null, ...props }, ref) => {
|
|
9564
|
-
return /* @__PURE__ */ (0,
|
|
9646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
9565
9647
|
import_react_dropdown_menu4.DropdownMenuItem,
|
|
9566
9648
|
{
|
|
9567
9649
|
asChild: true,
|
|
9568
9650
|
onSelect,
|
|
9569
|
-
children: /* @__PURE__ */ (0,
|
|
9651
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
9570
9652
|
MenuItemButton,
|
|
9571
9653
|
{
|
|
9572
9654
|
...props,
|
|
@@ -9582,10 +9664,10 @@ MenuItem.displayName = "MenuItem";
|
|
|
9582
9664
|
|
|
9583
9665
|
// src/components/Menu/MenuRadioGroup.tsx
|
|
9584
9666
|
var import_react_dropdown_menu5 = require("@radix-ui/react-dropdown-menu");
|
|
9585
|
-
var
|
|
9667
|
+
var import_jsx_runtime230 = require("react/jsx-runtime");
|
|
9586
9668
|
var MenuRadioGroup = ({ children, label, ...props }) => {
|
|
9587
|
-
return /* @__PURE__ */ (0,
|
|
9588
|
-
/* @__PURE__ */ (0,
|
|
9669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_react_dropdown_menu5.DropdownMenuRadioGroup, { ...props, children: [
|
|
9670
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(MenuLabel, { children: label }),
|
|
9589
9671
|
children
|
|
9590
9672
|
] });
|
|
9591
9673
|
};
|
|
@@ -9593,11 +9675,11 @@ MenuRadioGroup.displayName = "MenuRadioGroup";
|
|
|
9593
9675
|
|
|
9594
9676
|
// src/components/Menu/RadioMenuItem.tsx
|
|
9595
9677
|
var import_react_dropdown_menu6 = require("@radix-ui/react-dropdown-menu");
|
|
9596
|
-
var
|
|
9678
|
+
var import_jsx_runtime231 = require("react/jsx-runtime");
|
|
9597
9679
|
var RadioMenuItem = ({
|
|
9598
9680
|
onSelect,
|
|
9599
9681
|
value,
|
|
9600
|
-
indicator = /* @__PURE__ */ (0,
|
|
9682
|
+
indicator = /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
9601
9683
|
Icon,
|
|
9602
9684
|
{
|
|
9603
9685
|
size: "sm",
|
|
@@ -9607,17 +9689,17 @@ var RadioMenuItem = ({
|
|
|
9607
9689
|
...props
|
|
9608
9690
|
}) => {
|
|
9609
9691
|
const extraProps = onSelect ? { onSelect } : {};
|
|
9610
|
-
return /* @__PURE__ */ (0,
|
|
9692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
9611
9693
|
import_react_dropdown_menu6.DropdownMenuRadioItem,
|
|
9612
9694
|
{
|
|
9613
9695
|
...extraProps,
|
|
9614
9696
|
asChild: true,
|
|
9615
9697
|
value,
|
|
9616
|
-
children: /* @__PURE__ */ (0,
|
|
9698
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
9617
9699
|
MenuItemButton,
|
|
9618
9700
|
{
|
|
9619
9701
|
...props,
|
|
9620
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
9702
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_react_dropdown_menu6.DropdownMenuItemIndicator, { children: indicator })
|
|
9621
9703
|
}
|
|
9622
9704
|
)
|
|
9623
9705
|
}
|
|
@@ -9627,9 +9709,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
|
|
|
9627
9709
|
|
|
9628
9710
|
// src/components/Menu/CheckboxMenuItem.tsx
|
|
9629
9711
|
var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
|
|
9630
|
-
var
|
|
9712
|
+
var import_jsx_runtime232 = require("react/jsx-runtime");
|
|
9631
9713
|
var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
9632
|
-
return checked ? /* @__PURE__ */ (0,
|
|
9714
|
+
return checked ? /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
9633
9715
|
"svg",
|
|
9634
9716
|
{
|
|
9635
9717
|
...props,
|
|
@@ -9639,14 +9721,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
9639
9721
|
width: "24",
|
|
9640
9722
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9641
9723
|
children: [
|
|
9642
|
-
/* @__PURE__ */ (0,
|
|
9724
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
9643
9725
|
"path",
|
|
9644
9726
|
{
|
|
9645
9727
|
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",
|
|
9646
9728
|
fill: "#2949e5"
|
|
9647
9729
|
}
|
|
9648
9730
|
),
|
|
9649
|
-
/* @__PURE__ */ (0,
|
|
9731
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
9650
9732
|
"path",
|
|
9651
9733
|
{
|
|
9652
9734
|
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",
|
|
@@ -9655,7 +9737,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
9655
9737
|
)
|
|
9656
9738
|
]
|
|
9657
9739
|
}
|
|
9658
|
-
) : /* @__PURE__ */ (0,
|
|
9740
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
9659
9741
|
"svg",
|
|
9660
9742
|
{
|
|
9661
9743
|
...props,
|
|
@@ -9665,14 +9747,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
|
|
|
9665
9747
|
width: "24",
|
|
9666
9748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9667
9749
|
children: [
|
|
9668
|
-
/* @__PURE__ */ (0,
|
|
9750
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
9669
9751
|
"path",
|
|
9670
9752
|
{
|
|
9671
9753
|
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",
|
|
9672
9754
|
fill: "#fcfcfd"
|
|
9673
9755
|
}
|
|
9674
9756
|
),
|
|
9675
|
-
/* @__PURE__ */ (0,
|
|
9757
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
9676
9758
|
"path",
|
|
9677
9759
|
{
|
|
9678
9760
|
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",
|
|
@@ -9689,18 +9771,18 @@ var CheckboxMenuItem = ({
|
|
|
9689
9771
|
onCheckedChange,
|
|
9690
9772
|
...props
|
|
9691
9773
|
}) => {
|
|
9692
|
-
return /* @__PURE__ */ (0,
|
|
9774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
9693
9775
|
import_react_dropdown_menu7.DropdownMenuCheckboxItem,
|
|
9694
9776
|
{
|
|
9695
9777
|
asChild: true,
|
|
9696
9778
|
checked,
|
|
9697
9779
|
onCheckedChange,
|
|
9698
9780
|
onSelect,
|
|
9699
|
-
children: /* @__PURE__ */ (0,
|
|
9781
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
9700
9782
|
MenuItemButton,
|
|
9701
9783
|
{
|
|
9702
9784
|
...props,
|
|
9703
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
9785
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(CheckboxIndicator2, { checked })
|
|
9704
9786
|
}
|
|
9705
9787
|
)
|
|
9706
9788
|
}
|
|
@@ -9710,36 +9792,36 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
9710
9792
|
|
|
9711
9793
|
// src/components/Modal/Modal.tsx
|
|
9712
9794
|
var import_react41 = require("react");
|
|
9713
|
-
var
|
|
9795
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9714
9796
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
9715
|
-
var
|
|
9797
|
+
var import_type_guards34 = require("@wistia/type-guards");
|
|
9716
9798
|
|
|
9717
9799
|
// src/components/Modal/ModalHeader.tsx
|
|
9718
|
-
var
|
|
9800
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
9719
9801
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
9720
9802
|
|
|
9721
9803
|
// src/components/Modal/ModalCloseButton.tsx
|
|
9722
|
-
var
|
|
9804
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
9723
9805
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
9724
|
-
var
|
|
9725
|
-
var CloseButton = (0,
|
|
9806
|
+
var import_jsx_runtime233 = require("react/jsx-runtime");
|
|
9807
|
+
var CloseButton = (0, import_styled_components57.default)(import_react_dialog.Close)`
|
|
9726
9808
|
align-self: start;
|
|
9727
9809
|
`;
|
|
9728
9810
|
var ModalCloseButton = () => {
|
|
9729
|
-
return /* @__PURE__ */ (0,
|
|
9811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
9730
9812
|
IconButton,
|
|
9731
9813
|
{
|
|
9732
9814
|
label: "Dismiss modal",
|
|
9733
9815
|
size: "sm",
|
|
9734
9816
|
variant: "ghost",
|
|
9735
|
-
children: /* @__PURE__ */ (0,
|
|
9817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Icon, { type: "close" })
|
|
9736
9818
|
}
|
|
9737
9819
|
) });
|
|
9738
9820
|
};
|
|
9739
9821
|
|
|
9740
9822
|
// src/components/Modal/ModalHeader.tsx
|
|
9741
|
-
var
|
|
9742
|
-
var Header =
|
|
9823
|
+
var import_jsx_runtime234 = require("react/jsx-runtime");
|
|
9824
|
+
var Header = import_styled_components58.default.header`
|
|
9743
9825
|
display: flex;
|
|
9744
9826
|
order: 1;
|
|
9745
9827
|
gap: var(--wui-space-01);
|
|
@@ -9751,7 +9833,7 @@ var Header = import_styled_components56.default.header`
|
|
|
9751
9833
|
margin-top: 0;
|
|
9752
9834
|
}
|
|
9753
9835
|
`;
|
|
9754
|
-
var Title = (0,
|
|
9836
|
+
var Title = (0, import_styled_components58.default)(import_react_dialog2.Title)`
|
|
9755
9837
|
font-family: var(--wui-typography-heading-2-family);
|
|
9756
9838
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
9757
9839
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -9763,20 +9845,20 @@ var ModalHeader = ({
|
|
|
9763
9845
|
hideCloseButton
|
|
9764
9846
|
}) => {
|
|
9765
9847
|
const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
|
|
9766
|
-
return /* @__PURE__ */ (0,
|
|
9767
|
-
/* @__PURE__ */ (0,
|
|
9768
|
-
hideCloseButton ? null : /* @__PURE__ */ (0,
|
|
9848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Header, { children: [
|
|
9849
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(TitleWrapper, { children: title }),
|
|
9850
|
+
hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(ModalCloseButton, {})
|
|
9769
9851
|
] });
|
|
9770
9852
|
};
|
|
9771
9853
|
|
|
9772
9854
|
// src/components/Modal/ModalContent.tsx
|
|
9773
9855
|
var import_react39 = require("react");
|
|
9774
|
-
var
|
|
9856
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
9775
9857
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
9776
9858
|
|
|
9777
9859
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
9778
9860
|
var import_react38 = require("react");
|
|
9779
|
-
var
|
|
9861
|
+
var import_type_guards33 = require("@wistia/type-guards");
|
|
9780
9862
|
var useFocusRestore = () => {
|
|
9781
9863
|
const previouslyFocusedRef = (0, import_react38.useRef)(null);
|
|
9782
9864
|
(0, import_react38.useEffect)(() => {
|
|
@@ -9784,7 +9866,7 @@ var useFocusRestore = () => {
|
|
|
9784
9866
|
}, []);
|
|
9785
9867
|
(0, import_react38.useEffect)(() => {
|
|
9786
9868
|
return () => {
|
|
9787
|
-
if ((0,
|
|
9869
|
+
if ((0, import_type_guards33.isNotNil)(previouslyFocusedRef.current)) {
|
|
9788
9870
|
setTimeout(() => {
|
|
9789
9871
|
previouslyFocusedRef.current?.focus();
|
|
9790
9872
|
}, 0);
|
|
@@ -9794,8 +9876,8 @@ var useFocusRestore = () => {
|
|
|
9794
9876
|
};
|
|
9795
9877
|
|
|
9796
9878
|
// src/components/Modal/ModalContent.tsx
|
|
9797
|
-
var
|
|
9798
|
-
var StyledModalContent = (0,
|
|
9879
|
+
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
9880
|
+
var StyledModalContent = (0, import_styled_components59.default)(import_react_dialog3.Content)`
|
|
9799
9881
|
background-color: var(--wui-color-bg-app);
|
|
9800
9882
|
box-sizing: border-box;
|
|
9801
9883
|
display: flex;
|
|
@@ -9839,7 +9921,7 @@ var StyledModalContent = (0, import_styled_components57.default)(import_react_di
|
|
|
9839
9921
|
var ModalContent = (0, import_react39.forwardRef)(
|
|
9840
9922
|
({ fullHeight, width, children, ...otherProps }, ref) => {
|
|
9841
9923
|
useFocusRestore();
|
|
9842
|
-
return /* @__PURE__ */ (0,
|
|
9924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
9843
9925
|
StyledModalContent,
|
|
9844
9926
|
{
|
|
9845
9927
|
ref,
|
|
@@ -9855,8 +9937,8 @@ var ModalContent = (0, import_react39.forwardRef)(
|
|
|
9855
9937
|
|
|
9856
9938
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
9857
9939
|
var import_react40 = require("react");
|
|
9858
|
-
var
|
|
9859
|
-
var
|
|
9940
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9941
|
+
var import_jsx_runtime236 = require("react/jsx-runtime");
|
|
9860
9942
|
var backdropAnimationDuration = 150;
|
|
9861
9943
|
var alignVerticalMap = {
|
|
9862
9944
|
stretch: "normal",
|
|
@@ -9869,7 +9951,7 @@ var alignHorizontalMap = {
|
|
|
9869
9951
|
center: "center",
|
|
9870
9952
|
right: "end"
|
|
9871
9953
|
};
|
|
9872
|
-
var BackdropComponent =
|
|
9954
|
+
var BackdropComponent = import_styled_components60.default.div`
|
|
9873
9955
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
9874
9956
|
animation-name: backdropShow;
|
|
9875
9957
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -9893,7 +9975,7 @@ var BackdropComponent = import_styled_components58.default.div`
|
|
|
9893
9975
|
}
|
|
9894
9976
|
`;
|
|
9895
9977
|
var Backdrop = (0, import_react40.forwardRef)(
|
|
9896
|
-
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0,
|
|
9978
|
+
({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
9897
9979
|
BackdropComponent,
|
|
9898
9980
|
{
|
|
9899
9981
|
ref,
|
|
@@ -9907,9 +9989,9 @@ var Backdrop = (0, import_react40.forwardRef)(
|
|
|
9907
9989
|
Backdrop.displayName = "Backdrop";
|
|
9908
9990
|
|
|
9909
9991
|
// src/components/Modal/Modal.tsx
|
|
9910
|
-
var
|
|
9992
|
+
var import_jsx_runtime237 = require("react/jsx-runtime");
|
|
9911
9993
|
var DEFAULT_MODAL_WIDTH = "532px";
|
|
9912
|
-
var ModalBody =
|
|
9994
|
+
var ModalBody = import_styled_components61.default.div`
|
|
9913
9995
|
flex-direction: column;
|
|
9914
9996
|
display: flex;
|
|
9915
9997
|
order: 2;
|
|
@@ -9927,24 +10009,24 @@ var Modal = (0, import_react41.forwardRef)(
|
|
|
9927
10009
|
width = DEFAULT_MODAL_WIDTH,
|
|
9928
10010
|
...props
|
|
9929
10011
|
}, ref) => {
|
|
9930
|
-
return /* @__PURE__ */ (0,
|
|
10012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
9931
10013
|
import_react_dialog4.Root,
|
|
9932
10014
|
{
|
|
9933
10015
|
onOpenChange: (open2) => {
|
|
9934
|
-
if (!open2 && (0,
|
|
10016
|
+
if (!open2 && (0, import_type_guards34.isNotNil)(onRequestClose)) {
|
|
9935
10017
|
onRequestClose();
|
|
9936
10018
|
}
|
|
9937
10019
|
},
|
|
9938
10020
|
open: isOpen,
|
|
9939
|
-
children: /* @__PURE__ */ (0,
|
|
9940
|
-
/* @__PURE__ */ (0,
|
|
9941
|
-
/* @__PURE__ */ (0,
|
|
10021
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(import_react_dialog4.Portal, { children: [
|
|
10022
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Backdrop, {}),
|
|
10023
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
9942
10024
|
ModalContent,
|
|
9943
10025
|
{
|
|
9944
10026
|
ref,
|
|
9945
10027
|
fullHeight,
|
|
9946
10028
|
onOpenAutoFocus: (event) => {
|
|
9947
|
-
if ((0,
|
|
10029
|
+
if ((0, import_type_guards34.isNotNil)(initialFocusRef) && initialFocusRef.current) {
|
|
9948
10030
|
event.preventDefault();
|
|
9949
10031
|
requestAnimationFrame(() => {
|
|
9950
10032
|
initialFocusRef.current?.focus();
|
|
@@ -9954,8 +10036,8 @@ var Modal = (0, import_react41.forwardRef)(
|
|
|
9954
10036
|
width,
|
|
9955
10037
|
...props,
|
|
9956
10038
|
children: [
|
|
9957
|
-
/* @__PURE__ */ (0,
|
|
9958
|
-
/* @__PURE__ */ (0,
|
|
10039
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(ModalBody, { children }),
|
|
10040
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
9959
10041
|
ModalHeader,
|
|
9960
10042
|
{
|
|
9961
10043
|
hideCloseButton,
|
|
@@ -9975,17 +10057,17 @@ Modal.displayName = "Modal";
|
|
|
9975
10057
|
|
|
9976
10058
|
// src/components/Popover/Popover.tsx
|
|
9977
10059
|
var import_react_popover = require("@radix-ui/react-popover");
|
|
9978
|
-
var
|
|
10060
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9979
10061
|
|
|
9980
10062
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
9981
|
-
var
|
|
10063
|
+
var import_type_guards35 = require("@wistia/type-guards");
|
|
9982
10064
|
var getControlProps = (isOpen, onOpenChange) => {
|
|
9983
|
-
return (0,
|
|
10065
|
+
return (0, import_type_guards35.isNotNil)(onOpenChange) && (0, import_type_guards35.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
|
|
9984
10066
|
};
|
|
9985
10067
|
|
|
9986
10068
|
// src/components/Popover/Popover.tsx
|
|
9987
|
-
var
|
|
9988
|
-
var StyledContent2 = (0,
|
|
10069
|
+
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
10070
|
+
var StyledContent2 = (0, import_styled_components62.default)(import_react_popover.Content)`
|
|
9989
10071
|
border-radius: var(--wui-border-radius-02);
|
|
9990
10072
|
padding: var(--wui-space-04);
|
|
9991
10073
|
max-width: 320px;
|
|
@@ -9999,7 +10081,7 @@ var StyledContent2 = (0, import_styled_components60.default)(import_react_popove
|
|
|
9999
10081
|
right: var(--wui-space-02);
|
|
10000
10082
|
}
|
|
10001
10083
|
`;
|
|
10002
|
-
var StyledArrow = (0,
|
|
10084
|
+
var StyledArrow = (0, import_styled_components62.default)(import_react_popover.Arrow)`
|
|
10003
10085
|
fill: white;
|
|
10004
10086
|
display: none;
|
|
10005
10087
|
`;
|
|
@@ -10011,25 +10093,25 @@ var Popover = ({
|
|
|
10011
10093
|
onOpenChange,
|
|
10012
10094
|
...props
|
|
10013
10095
|
}) => {
|
|
10014
|
-
return /* @__PURE__ */ (0,
|
|
10015
|
-
/* @__PURE__ */ (0,
|
|
10016
|
-
/* @__PURE__ */ (0,
|
|
10096
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
10097
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
|
|
10098
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
10017
10099
|
StyledContent2,
|
|
10018
10100
|
{
|
|
10019
10101
|
sideOffset: 5,
|
|
10020
10102
|
...props,
|
|
10021
10103
|
children: [
|
|
10022
|
-
/* @__PURE__ */ (0,
|
|
10023
|
-
!hideCloseButton && /* @__PURE__ */ (0,
|
|
10104
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StyledArrow, {}),
|
|
10105
|
+
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
10024
10106
|
IconButton,
|
|
10025
10107
|
{
|
|
10026
10108
|
"data-wui-popover-close": true,
|
|
10027
10109
|
label: "Close",
|
|
10028
10110
|
variant: "ghost",
|
|
10029
|
-
children: /* @__PURE__ */ (0,
|
|
10111
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Icon, { type: "close" })
|
|
10030
10112
|
}
|
|
10031
10113
|
) }),
|
|
10032
|
-
/* @__PURE__ */ (0,
|
|
10114
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)("div", { children })
|
|
10033
10115
|
]
|
|
10034
10116
|
}
|
|
10035
10117
|
) })
|
|
@@ -10039,15 +10121,15 @@ Popover.displayName = "Popover";
|
|
|
10039
10121
|
|
|
10040
10122
|
// src/components/Radio/Radio.tsx
|
|
10041
10123
|
var import_react42 = require("react");
|
|
10042
|
-
var
|
|
10043
|
-
var
|
|
10044
|
-
var
|
|
10045
|
-
var StyledLabelWrapper2 =
|
|
10124
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
10125
|
+
var import_type_guards36 = require("@wistia/type-guards");
|
|
10126
|
+
var import_jsx_runtime239 = require("react/jsx-runtime");
|
|
10127
|
+
var StyledLabelWrapper2 = import_styled_components63.default.div`
|
|
10046
10128
|
display: flex;
|
|
10047
10129
|
flex-direction: column;
|
|
10048
10130
|
padding-left: var(--wui-space-02);
|
|
10049
10131
|
`;
|
|
10050
|
-
var StyledRadio =
|
|
10132
|
+
var StyledRadio = import_styled_components63.default.input`
|
|
10051
10133
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
10052
10134
|
appearance: none;
|
|
10053
10135
|
margin: 0;
|
|
@@ -10073,11 +10155,11 @@ var StyledRadio = import_styled_components61.default.input`
|
|
|
10073
10155
|
transform: scale(1);
|
|
10074
10156
|
}
|
|
10075
10157
|
`;
|
|
10076
|
-
var disabledStyle2 =
|
|
10158
|
+
var disabledStyle2 = import_styled_components63.css`
|
|
10077
10159
|
cursor: not-allowed;
|
|
10078
10160
|
opacity: 0.5;
|
|
10079
10161
|
`;
|
|
10080
|
-
var errorStyle =
|
|
10162
|
+
var errorStyle = import_styled_components63.css`
|
|
10081
10163
|
/* TODO Lamp to design error state */
|
|
10082
10164
|
&:hover,
|
|
10083
10165
|
&:focus,
|
|
@@ -10085,11 +10167,11 @@ var errorStyle = import_styled_components61.css`
|
|
|
10085
10167
|
border-color: transparent !important;
|
|
10086
10168
|
}
|
|
10087
10169
|
`;
|
|
10088
|
-
var defaultHoverStyle =
|
|
10170
|
+
var defaultHoverStyle = import_styled_components63.css`
|
|
10089
10171
|
/* TODO Lamp to design hover state */
|
|
10090
10172
|
cursor: pointer;
|
|
10091
10173
|
`;
|
|
10092
|
-
var StyledRadioWrapper =
|
|
10174
|
+
var StyledRadioWrapper = import_styled_components63.default.div`
|
|
10093
10175
|
align-items: baseline;
|
|
10094
10176
|
border: 1px solid transparent;
|
|
10095
10177
|
border-radius: 4px;
|
|
@@ -10126,14 +10208,14 @@ var Radio = (0, import_react42.forwardRef)(
|
|
|
10126
10208
|
...otherProps
|
|
10127
10209
|
}, ref) => {
|
|
10128
10210
|
const generatedId = (0, import_react42.useId)();
|
|
10129
|
-
const computedId = (0,
|
|
10130
|
-
return /* @__PURE__ */ (0,
|
|
10211
|
+
const computedId = (0, import_type_guards36.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
|
|
10212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
10131
10213
|
StyledRadioWrapper,
|
|
10132
10214
|
{
|
|
10133
10215
|
"aria-invalid": otherProps["aria-invalid"],
|
|
10134
10216
|
disabled,
|
|
10135
10217
|
children: [
|
|
10136
|
-
/* @__PURE__ */ (0,
|
|
10218
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
10137
10219
|
StyledRadio,
|
|
10138
10220
|
{
|
|
10139
10221
|
ref,
|
|
@@ -10148,8 +10230,8 @@ var Radio = (0, import_react42.forwardRef)(
|
|
|
10148
10230
|
...otherProps
|
|
10149
10231
|
}
|
|
10150
10232
|
),
|
|
10151
|
-
/* @__PURE__ */ (0,
|
|
10152
|
-
/* @__PURE__ */ (0,
|
|
10233
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(StyledLabelWrapper2, { children: [
|
|
10234
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
10153
10235
|
Label,
|
|
10154
10236
|
{
|
|
10155
10237
|
disabled,
|
|
@@ -10158,7 +10240,7 @@ var Radio = (0, import_react42.forwardRef)(
|
|
|
10158
10240
|
children: label
|
|
10159
10241
|
}
|
|
10160
10242
|
),
|
|
10161
|
-
/* @__PURE__ */ (0,
|
|
10243
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(LabelDescription, { children: description })
|
|
10162
10244
|
] })
|
|
10163
10245
|
]
|
|
10164
10246
|
}
|
|
@@ -10169,13 +10251,13 @@ Radio.displayName = "Radio";
|
|
|
10169
10251
|
|
|
10170
10252
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
10171
10253
|
var import_react46 = require("react");
|
|
10172
|
-
var
|
|
10254
|
+
var import_styled_components65 = __toESM(require("styled-components"));
|
|
10173
10255
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
10174
|
-
var
|
|
10256
|
+
var import_type_guards37 = require("@wistia/type-guards");
|
|
10175
10257
|
|
|
10176
10258
|
// src/components/SegmentedControl/useSelectedItemMeasurements.tsx
|
|
10177
10259
|
var import_react43 = require("react");
|
|
10178
|
-
var
|
|
10260
|
+
var import_jsx_runtime240 = require("react/jsx-runtime");
|
|
10179
10261
|
var SelectedItemMeasurementsContext = (0, import_react43.createContext)(
|
|
10180
10262
|
null
|
|
10181
10263
|
);
|
|
@@ -10190,7 +10272,7 @@ var SelectedItemMeasurementsProvider = ({
|
|
|
10190
10272
|
}),
|
|
10191
10273
|
[selectedItemMeasurements]
|
|
10192
10274
|
);
|
|
10193
|
-
return /* @__PURE__ */ (0,
|
|
10275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
|
|
10194
10276
|
};
|
|
10195
10277
|
var useSelectedItemMeasurements = () => {
|
|
10196
10278
|
const context = (0, import_react43.useContext)(SelectedItemMeasurementsContext);
|
|
@@ -10204,7 +10286,7 @@ var useSelectedItemMeasurements = () => {
|
|
|
10204
10286
|
|
|
10205
10287
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
10206
10288
|
var import_react45 = require("react");
|
|
10207
|
-
var
|
|
10289
|
+
var import_styled_components64 = __toESM(require("styled-components"));
|
|
10208
10290
|
|
|
10209
10291
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
10210
10292
|
var import_react44 = require("react");
|
|
@@ -10219,8 +10301,8 @@ var useSegmentedControlValue = () => {
|
|
|
10219
10301
|
};
|
|
10220
10302
|
|
|
10221
10303
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
10222
|
-
var
|
|
10223
|
-
var SelectedItemIndicatorDiv =
|
|
10304
|
+
var import_jsx_runtime241 = require("react/jsx-runtime");
|
|
10305
|
+
var SelectedItemIndicatorDiv = import_styled_components64.default.div`
|
|
10224
10306
|
background-color: var(--wui-color-bg-fill-white);
|
|
10225
10307
|
border-radius: var(--wui-border-radius-rounded);
|
|
10226
10308
|
left: 0;
|
|
@@ -10246,7 +10328,7 @@ var SelectedItemIndicator = () => {
|
|
|
10246
10328
|
if (!selectedValue) {
|
|
10247
10329
|
return null;
|
|
10248
10330
|
}
|
|
10249
|
-
return /* @__PURE__ */ (0,
|
|
10331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
10250
10332
|
SelectedItemIndicatorDiv,
|
|
10251
10333
|
{
|
|
10252
10334
|
style: {
|
|
@@ -10259,8 +10341,8 @@ var SelectedItemIndicator = () => {
|
|
|
10259
10341
|
};
|
|
10260
10342
|
|
|
10261
10343
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
10262
|
-
var
|
|
10263
|
-
var segmentedControlStyles =
|
|
10344
|
+
var import_jsx_runtime242 = require("react/jsx-runtime");
|
|
10345
|
+
var segmentedControlStyles = import_styled_components65.css`
|
|
10264
10346
|
display: inline-flex;
|
|
10265
10347
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
10266
10348
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -10270,7 +10352,7 @@ var segmentedControlStyles = import_styled_components63.css`
|
|
|
10270
10352
|
position: relative;
|
|
10271
10353
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
10272
10354
|
`;
|
|
10273
|
-
var StyledSegmentedControl = (0,
|
|
10355
|
+
var StyledSegmentedControl = (0, import_styled_components65.default)(import_react_toggle_group.Root)`
|
|
10274
10356
|
${segmentedControlStyles}
|
|
10275
10357
|
`;
|
|
10276
10358
|
var SegmentedControl = (0, import_react46.forwardRef)(
|
|
@@ -10282,10 +10364,10 @@ var SegmentedControl = (0, import_react46.forwardRef)(
|
|
|
10282
10364
|
onSelectedValueChange,
|
|
10283
10365
|
...props
|
|
10284
10366
|
}, ref) => {
|
|
10285
|
-
if ((0,
|
|
10367
|
+
if ((0, import_type_guards37.isNil)(children)) {
|
|
10286
10368
|
return null;
|
|
10287
10369
|
}
|
|
10288
|
-
return /* @__PURE__ */ (0,
|
|
10370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
10289
10371
|
StyledSegmentedControl,
|
|
10290
10372
|
{
|
|
10291
10373
|
ref,
|
|
@@ -10297,8 +10379,8 @@ var SegmentedControl = (0, import_react46.forwardRef)(
|
|
|
10297
10379
|
type: "single",
|
|
10298
10380
|
value: selectedValue,
|
|
10299
10381
|
...props,
|
|
10300
|
-
children: /* @__PURE__ */ (0,
|
|
10301
|
-
/* @__PURE__ */ (0,
|
|
10382
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(SelectedItemMeasurementsProvider, { children: [
|
|
10383
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(SelectedItemIndicator, {}),
|
|
10302
10384
|
children
|
|
10303
10385
|
] }) })
|
|
10304
10386
|
}
|
|
@@ -10309,27 +10391,27 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
10309
10391
|
|
|
10310
10392
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
10311
10393
|
var import_react47 = require("react");
|
|
10312
|
-
var
|
|
10394
|
+
var import_styled_components66 = __toESM(require("styled-components"));
|
|
10313
10395
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
10314
|
-
var
|
|
10396
|
+
var import_type_guards39 = require("@wistia/type-guards");
|
|
10315
10397
|
|
|
10316
10398
|
// src/private/helpers/mergeRefs/mergeRefs.ts
|
|
10317
|
-
var
|
|
10399
|
+
var import_type_guards38 = require("@wistia/type-guards");
|
|
10318
10400
|
var mergeRefs = (refs) => (value) => {
|
|
10319
10401
|
refs.forEach((ref) => {
|
|
10320
|
-
if ((0,
|
|
10402
|
+
if ((0, import_type_guards38.isFunction)(ref)) {
|
|
10321
10403
|
ref(value);
|
|
10322
10404
|
return;
|
|
10323
10405
|
}
|
|
10324
|
-
if ((0,
|
|
10406
|
+
if ((0, import_type_guards38.isNotNil)(ref)) {
|
|
10325
10407
|
ref.current = value;
|
|
10326
10408
|
}
|
|
10327
10409
|
});
|
|
10328
10410
|
};
|
|
10329
10411
|
|
|
10330
10412
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
10331
|
-
var
|
|
10332
|
-
var segmentedControlItemStyles =
|
|
10413
|
+
var import_jsx_runtime243 = require("react/jsx-runtime");
|
|
10414
|
+
var segmentedControlItemStyles = import_styled_components66.css`
|
|
10333
10415
|
all: unset; /* ToggleGroupItem is a button element */
|
|
10334
10416
|
align-items: center;
|
|
10335
10417
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -10388,7 +10470,7 @@ var segmentedControlItemStyles = import_styled_components64.css`
|
|
|
10388
10470
|
}
|
|
10389
10471
|
}
|
|
10390
10472
|
`;
|
|
10391
|
-
var StyledSegmentedControlItem = (0,
|
|
10473
|
+
var StyledSegmentedControlItem = (0, import_styled_components66.default)(import_react_toggle_group2.Item)`
|
|
10392
10474
|
${segmentedControlItemStyles}
|
|
10393
10475
|
`;
|
|
10394
10476
|
var SegmentedControlItem = (0, import_react47.forwardRef)(
|
|
@@ -10429,12 +10511,12 @@ var SegmentedControlItem = (0, import_react47.forwardRef)(
|
|
|
10429
10511
|
resizeObserver.disconnect();
|
|
10430
10512
|
};
|
|
10431
10513
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
10432
|
-
return /* @__PURE__ */ (0,
|
|
10514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
10433
10515
|
StyledSegmentedControlItem,
|
|
10434
10516
|
{
|
|
10435
10517
|
ref: combinedRef,
|
|
10436
|
-
$hasLabel: (0,
|
|
10437
|
-
"aria-label": (0,
|
|
10518
|
+
$hasLabel: (0, import_type_guards39.isNotNil)(label),
|
|
10519
|
+
"aria-label": (0, import_type_guards39.isNotNil)(label) ? void 0 : ariaLabel,
|
|
10438
10520
|
disabled,
|
|
10439
10521
|
onClick: handleClick,
|
|
10440
10522
|
value,
|
|
@@ -10448,39 +10530,347 @@ var SegmentedControlItem = (0, import_react47.forwardRef)(
|
|
|
10448
10530
|
);
|
|
10449
10531
|
SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
10450
10532
|
|
|
10451
|
-
// src/components/
|
|
10452
|
-
var
|
|
10453
|
-
var
|
|
10454
|
-
var
|
|
10455
|
-
|
|
10456
|
-
// src/components/Tabs/TabPanel.tsx
|
|
10457
|
-
var import_styled_components65 = __toESM(require("styled-components"));
|
|
10458
|
-
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
10459
|
-
var import_jsx_runtime243 = require("react/jsx-runtime");
|
|
10460
|
-
var StyledTabPanel = (0, import_styled_components65.default)(import_react_tabs.Content)`
|
|
10461
|
-
display: flex;
|
|
10462
|
-
flex-direction: column;
|
|
10463
|
-
`;
|
|
10464
|
-
var TabPanel = ({ children, value, ...props }) => {
|
|
10465
|
-
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
10466
|
-
StyledTabPanel,
|
|
10467
|
-
{
|
|
10468
|
-
value,
|
|
10469
|
-
...props,
|
|
10470
|
-
children
|
|
10471
|
-
}
|
|
10472
|
-
);
|
|
10473
|
-
};
|
|
10474
|
-
TabPanel.displayName = "TabPanel";
|
|
10475
|
-
|
|
10476
|
-
// src/components/Tabs/TabList.tsx
|
|
10477
|
-
var import_styled_components66 = __toESM(require("styled-components"));
|
|
10478
|
-
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
10533
|
+
// src/components/Select/Select.tsx
|
|
10534
|
+
var import_react_select = require("@radix-ui/react-select");
|
|
10535
|
+
var import_react48 = require("react");
|
|
10536
|
+
var import_styled_components67 = __toESM(require("styled-components"));
|
|
10479
10537
|
var import_jsx_runtime244 = require("react/jsx-runtime");
|
|
10480
|
-
var
|
|
10481
|
-
${
|
|
10482
|
-
|
|
10483
|
-
|
|
10538
|
+
var StyledTrigger = (0, import_styled_components67.default)(import_react_select.Trigger)`
|
|
10539
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10540
|
+
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
10541
|
+
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
10542
|
+
--wui-select-color-border: var(--wui-color-border);
|
|
10543
|
+
--wui-select-color-border-focus: var(--wui-color-border-active);
|
|
10544
|
+
--wui-select-color-border-error: var(--wui-color-border-error);
|
|
10545
|
+
--wui-select-color-border-disabled: var(--wui-color-border-disabled);
|
|
10546
|
+
--wui-select-border-radius: var(--wui-border-radius-rounded);
|
|
10547
|
+
--wui-select-multiline-border-radius: var(--wui-border-radius-02);
|
|
10548
|
+
--wui-select-vertical-padding: var(--wui-space-02);
|
|
10549
|
+
--wui-select-horizontal-padding: var(--wui-space-03);
|
|
10550
|
+
--wui-select-placeholder: var(--wui-gray-10);
|
|
10551
|
+
--wui-select-color-text-error: var(--wui-color-text-error);
|
|
10552
|
+
|
|
10553
|
+
padding: var(--wui-select-vertical-padding) var(--wui-select-horizontal-padding);
|
|
10554
|
+
background-color: var(--wui-select-color-bg);
|
|
10555
|
+
border: 1px solid var(--wui-select-color-border);
|
|
10556
|
+
border-radius: var(--wui-select-border-radius);
|
|
10557
|
+
min-width: 200px;
|
|
10558
|
+
text-align: left;
|
|
10559
|
+
display: inline-flex;
|
|
10560
|
+
align-items: center;
|
|
10561
|
+
justify-content: space-between;
|
|
10562
|
+
max-width: 100%;
|
|
10563
|
+
width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
|
|
10564
|
+
|
|
10565
|
+
> span {
|
|
10566
|
+
white-space: nowrap;
|
|
10567
|
+
text-overflow: ellipsis;
|
|
10568
|
+
overflow: hidden;
|
|
10569
|
+
}
|
|
10570
|
+
|
|
10571
|
+
&[aria-expanded='true'],
|
|
10572
|
+
&:focus {
|
|
10573
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
10574
|
+
}
|
|
10575
|
+
|
|
10576
|
+
&[aria-invalid='true'] {
|
|
10577
|
+
outline: 2px solid var(--wui-select-color-border-error);
|
|
10578
|
+
color: var(--wui-select-color-text-error);
|
|
10579
|
+
}
|
|
10580
|
+
|
|
10581
|
+
&:disabled {
|
|
10582
|
+
border-color: var(--wui-color-bg-surface-disabled);
|
|
10583
|
+
background-color: var(--wui-color-bg-surface-disabled);
|
|
10584
|
+
}
|
|
10585
|
+
`;
|
|
10586
|
+
var StyledContent3 = (0, import_styled_components67.default)(import_react_select.Content)`
|
|
10587
|
+
--wui-select-content-border: var(--wui-color-border);
|
|
10588
|
+
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
10589
|
+
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
10590
|
+
--wui-select-option-padding: var(--wui-space-02);
|
|
10591
|
+
--wui-select-option-inner-gap: var(--wui-space-03);
|
|
10592
|
+
--wui-select-option-bg-hover: var(--wui-color-bg-surface-hover);
|
|
10593
|
+
|
|
10594
|
+
overflow: hidden;
|
|
10595
|
+
transform: translateY(8px);
|
|
10596
|
+
background-color: var(--wui-select-content-bg);
|
|
10597
|
+
border: 1px solid var(--wui-select-content-border);
|
|
10598
|
+
border-radius: var(--wui-select-content-border-radius);
|
|
10599
|
+
padding: var(--wui-select-option-padding);
|
|
10600
|
+
min-width: var(--radix-select-trigger-width);
|
|
10601
|
+
max-height: var(--radix-select-content-available-height);
|
|
10602
|
+
z-index: var(--wui-zindex-select);
|
|
10603
|
+
`;
|
|
10604
|
+
var Select = (0, import_react48.forwardRef)(
|
|
10605
|
+
({
|
|
10606
|
+
colorScheme = "inherit",
|
|
10607
|
+
children,
|
|
10608
|
+
onChange = () => null,
|
|
10609
|
+
placeholder = "Select...",
|
|
10610
|
+
fullWidth = false,
|
|
10611
|
+
...props
|
|
10612
|
+
}, forwardedRef) => {
|
|
10613
|
+
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
10614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
|
|
10615
|
+
import_react_select.Root,
|
|
10616
|
+
{
|
|
10617
|
+
...props,
|
|
10618
|
+
onValueChange: onChange,
|
|
10619
|
+
children: [
|
|
10620
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
|
|
10621
|
+
StyledTrigger,
|
|
10622
|
+
{
|
|
10623
|
+
ref: forwardedRef,
|
|
10624
|
+
$colorScheme: colorScheme,
|
|
10625
|
+
$fullWidth: responsiveFullWidth,
|
|
10626
|
+
...props,
|
|
10627
|
+
children: [
|
|
10628
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_select.Value, { placeholder }),
|
|
10629
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
10630
|
+
Icon,
|
|
10631
|
+
{
|
|
10632
|
+
size: "md",
|
|
10633
|
+
type: "caret-down"
|
|
10634
|
+
}
|
|
10635
|
+
)
|
|
10636
|
+
]
|
|
10637
|
+
}
|
|
10638
|
+
),
|
|
10639
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(StyledContent3, { position: "popper", children: [
|
|
10640
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon, { type: "caret-up" }) }),
|
|
10641
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_select.Viewport, { children }),
|
|
10642
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon, { type: "caret-down" }) })
|
|
10643
|
+
] }) })
|
|
10644
|
+
]
|
|
10645
|
+
}
|
|
10646
|
+
);
|
|
10647
|
+
}
|
|
10648
|
+
);
|
|
10649
|
+
Select.displayName = "Select";
|
|
10650
|
+
|
|
10651
|
+
// src/components/Select/SelectOption.tsx
|
|
10652
|
+
var import_react_select2 = require("@radix-ui/react-select");
|
|
10653
|
+
var import_react49 = require("react");
|
|
10654
|
+
var import_styled_components68 = __toESM(require("styled-components"));
|
|
10655
|
+
var import_jsx_runtime245 = require("react/jsx-runtime");
|
|
10656
|
+
var StyledItem = (0, import_styled_components68.default)(import_react_select2.Item)`
|
|
10657
|
+
${variantStyleMap2.body3};
|
|
10658
|
+
display: flex;
|
|
10659
|
+
padding: var(--wui-select-option-padding);
|
|
10660
|
+
gap: var(--wui-select-option-inner-gap);
|
|
10661
|
+
font-size: var(--font-size);
|
|
10662
|
+
font-weight: var(--font-weight);
|
|
10663
|
+
border-radius: var(--wui-border-radius-01);
|
|
10664
|
+
|
|
10665
|
+
&:hover,
|
|
10666
|
+
&:focus-visible {
|
|
10667
|
+
background-color: var(--wui-select-option-bg-hover);
|
|
10668
|
+
outline: none;
|
|
10669
|
+
}
|
|
10670
|
+
|
|
10671
|
+
&[aria-disabled='true'] {
|
|
10672
|
+
color: var(--wui-color-text-disabled);
|
|
10673
|
+
}
|
|
10674
|
+
|
|
10675
|
+
&[aria-disabled='true']:hover {
|
|
10676
|
+
background-color: transparent;
|
|
10677
|
+
}
|
|
10678
|
+
`;
|
|
10679
|
+
var StyledIconContainer = import_styled_components68.default.span`
|
|
10680
|
+
width: 12px;
|
|
10681
|
+
`;
|
|
10682
|
+
var SelectOption = (0, import_react49.forwardRef)(
|
|
10683
|
+
({ children, ...props }, forwardedRef) => {
|
|
10684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
10685
|
+
StyledItem,
|
|
10686
|
+
{
|
|
10687
|
+
...props,
|
|
10688
|
+
ref: forwardedRef,
|
|
10689
|
+
children: [
|
|
10690
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(StyledIconContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
10691
|
+
Icon,
|
|
10692
|
+
{
|
|
10693
|
+
size: "sm",
|
|
10694
|
+
type: "checkmark"
|
|
10695
|
+
}
|
|
10696
|
+
) }) }),
|
|
10697
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_react_select2.ItemText, { children })
|
|
10698
|
+
]
|
|
10699
|
+
}
|
|
10700
|
+
);
|
|
10701
|
+
}
|
|
10702
|
+
);
|
|
10703
|
+
SelectOption.displayName = "Option";
|
|
10704
|
+
|
|
10705
|
+
// src/components/Select/SelectOptionGroup.tsx
|
|
10706
|
+
var import_react_select3 = require("@radix-ui/react-select");
|
|
10707
|
+
var import_styled_components69 = __toESM(require("styled-components"));
|
|
10708
|
+
var import_jsx_runtime246 = require("react/jsx-runtime");
|
|
10709
|
+
var StyledLabel4 = (0, import_styled_components69.default)(import_react_select3.Label)`
|
|
10710
|
+
padding: var(--wui-select-option-padding);
|
|
10711
|
+
`;
|
|
10712
|
+
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
10713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(import_react_select3.Group, { ...props, children: [
|
|
10714
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
10715
|
+
Text,
|
|
10716
|
+
{
|
|
10717
|
+
prominence: "secondary",
|
|
10718
|
+
variant: "body3",
|
|
10719
|
+
children: label
|
|
10720
|
+
}
|
|
10721
|
+
) }),
|
|
10722
|
+
children
|
|
10723
|
+
] });
|
|
10724
|
+
};
|
|
10725
|
+
|
|
10726
|
+
// src/components/Table/Table.tsx
|
|
10727
|
+
var import_react51 = require("react");
|
|
10728
|
+
var import_styled_components70 = __toESM(require("styled-components"));
|
|
10729
|
+
|
|
10730
|
+
// src/components/Table/TableContext.tsx
|
|
10731
|
+
var import_react50 = __toESM(require("react"));
|
|
10732
|
+
var TableContext = import_react50.default.createContext({ divided: false });
|
|
10733
|
+
|
|
10734
|
+
// src/components/Table/Table.tsx
|
|
10735
|
+
var import_jsx_runtime247 = require("react/jsx-runtime");
|
|
10736
|
+
var StyledTable = import_styled_components70.default.table`
|
|
10737
|
+
width: 100%;
|
|
10738
|
+
border-collapse: collapse;
|
|
10739
|
+
|
|
10740
|
+
${({ $striped }) => $striped && import_styled_components70.css`
|
|
10741
|
+
tbody tr:nth-child(even) {
|
|
10742
|
+
background-color: var(--wui-color-bg-surface-secondary);
|
|
10743
|
+
}
|
|
10744
|
+
`}
|
|
10745
|
+
`;
|
|
10746
|
+
var Table = ({
|
|
10747
|
+
children,
|
|
10748
|
+
striped = false,
|
|
10749
|
+
divided = false,
|
|
10750
|
+
...props
|
|
10751
|
+
}) => {
|
|
10752
|
+
const contextValue = (0, import_react51.useMemo)(() => ({ divided }), [divided]);
|
|
10753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(TableContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
10754
|
+
StyledTable,
|
|
10755
|
+
{
|
|
10756
|
+
$striped: striped,
|
|
10757
|
+
...props,
|
|
10758
|
+
children
|
|
10759
|
+
}
|
|
10760
|
+
) });
|
|
10761
|
+
};
|
|
10762
|
+
|
|
10763
|
+
// src/components/Table/TableBody.tsx
|
|
10764
|
+
var import_styled_components71 = __toESM(require("styled-components"));
|
|
10765
|
+
|
|
10766
|
+
// src/components/Table/TableSectionContext.ts
|
|
10767
|
+
var import_react52 = require("react");
|
|
10768
|
+
var TableSectionContext = (0, import_react52.createContext)(null);
|
|
10769
|
+
|
|
10770
|
+
// src/components/Table/TableBody.tsx
|
|
10771
|
+
var import_jsx_runtime248 = require("react/jsx-runtime");
|
|
10772
|
+
var StyledTbody = import_styled_components71.default.tbody``;
|
|
10773
|
+
var TableBody = ({ children, ...props }) => {
|
|
10774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(StyledTbody, { ...props, children }) });
|
|
10775
|
+
};
|
|
10776
|
+
|
|
10777
|
+
// src/components/Table/TableCell.tsx
|
|
10778
|
+
var import_react53 = require("react");
|
|
10779
|
+
var import_styled_components72 = __toESM(require("styled-components"));
|
|
10780
|
+
var import_jsx_runtime249 = require("react/jsx-runtime");
|
|
10781
|
+
var sharedStyles = import_styled_components72.css`
|
|
10782
|
+
color: var(--wui-color-text);
|
|
10783
|
+
padding: var(--wui-space-02);
|
|
10784
|
+
text-align: left;
|
|
10785
|
+
`;
|
|
10786
|
+
var StyledTh = import_styled_components72.default.th`
|
|
10787
|
+
${sharedStyles}
|
|
10788
|
+
font-size: var(--wui-typography-body-4-size);
|
|
10789
|
+
font-weight: var(--wui-typography-weight-label-bold);
|
|
10790
|
+
line-height: var(--wui-typography-body-4-line-height);
|
|
10791
|
+
`;
|
|
10792
|
+
var StyledTd = import_styled_components72.default.td`
|
|
10793
|
+
${sharedStyles}
|
|
10794
|
+
font-size: var(--wui-typography-body-2-size);
|
|
10795
|
+
font-weight: var(--wui-typography-body-2-weight);
|
|
10796
|
+
line-height: var(--wui-typography-body-2-line-height);
|
|
10797
|
+
`;
|
|
10798
|
+
var TableCell = ({ children, ...props }) => {
|
|
10799
|
+
const section = (0, import_react53.useContext)(TableSectionContext);
|
|
10800
|
+
if (section === "head") {
|
|
10801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(StyledTh, { ...props, children });
|
|
10802
|
+
}
|
|
10803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(StyledTd, { ...props, children });
|
|
10804
|
+
};
|
|
10805
|
+
|
|
10806
|
+
// src/components/Table/TableFooter.tsx
|
|
10807
|
+
var import_styled_components73 = __toESM(require("styled-components"));
|
|
10808
|
+
var import_jsx_runtime250 = require("react/jsx-runtime");
|
|
10809
|
+
var StyledTfoot = import_styled_components73.default.tfoot``;
|
|
10810
|
+
var TableFooter = ({ children, ...props }) => {
|
|
10811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(StyledTfoot, { ...props, children }) });
|
|
10812
|
+
};
|
|
10813
|
+
|
|
10814
|
+
// src/components/Table/TableHead.tsx
|
|
10815
|
+
var import_styled_components74 = __toESM(require("styled-components"));
|
|
10816
|
+
var import_jsx_runtime251 = require("react/jsx-runtime");
|
|
10817
|
+
var StyledThead = import_styled_components74.default.thead``;
|
|
10818
|
+
var TableHead = ({ children, ...props }) => {
|
|
10819
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(StyledThead, { ...props, children }) });
|
|
10820
|
+
};
|
|
10821
|
+
|
|
10822
|
+
// src/components/Table/TableRow.tsx
|
|
10823
|
+
var import_react54 = require("react");
|
|
10824
|
+
var import_styled_components75 = __toESM(require("styled-components"));
|
|
10825
|
+
var import_jsx_runtime252 = require("react/jsx-runtime");
|
|
10826
|
+
var StyledTr = import_styled_components75.default.tr`
|
|
10827
|
+
${({ $divided }) => $divided && `border-bottom: 1px solid var(--wui-color-border);`}
|
|
10828
|
+
`;
|
|
10829
|
+
var TableRow = ({ children, ...props }) => {
|
|
10830
|
+
const { divided = false } = (0, import_react54.useContext)(TableContext);
|
|
10831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
10832
|
+
StyledTr,
|
|
10833
|
+
{
|
|
10834
|
+
$divided: divided,
|
|
10835
|
+
...props,
|
|
10836
|
+
children
|
|
10837
|
+
}
|
|
10838
|
+
);
|
|
10839
|
+
};
|
|
10840
|
+
|
|
10841
|
+
// src/components/Tabs/Tabs.tsx
|
|
10842
|
+
var import_react59 = require("react");
|
|
10843
|
+
var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
10844
|
+
var import_type_guards41 = require("@wistia/type-guards");
|
|
10845
|
+
|
|
10846
|
+
// src/components/Tabs/TabPanel.tsx
|
|
10847
|
+
var import_styled_components76 = __toESM(require("styled-components"));
|
|
10848
|
+
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
10849
|
+
var import_jsx_runtime253 = require("react/jsx-runtime");
|
|
10850
|
+
var StyledTabPanel = (0, import_styled_components76.default)(import_react_tabs.Content)`
|
|
10851
|
+
display: flex;
|
|
10852
|
+
flex-direction: column;
|
|
10853
|
+
`;
|
|
10854
|
+
var TabPanel = ({ children, value, ...props }) => {
|
|
10855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
10856
|
+
StyledTabPanel,
|
|
10857
|
+
{
|
|
10858
|
+
value,
|
|
10859
|
+
...props,
|
|
10860
|
+
children
|
|
10861
|
+
}
|
|
10862
|
+
);
|
|
10863
|
+
};
|
|
10864
|
+
TabPanel.displayName = "TabPanel";
|
|
10865
|
+
|
|
10866
|
+
// src/components/Tabs/TabList.tsx
|
|
10867
|
+
var import_styled_components77 = __toESM(require("styled-components"));
|
|
10868
|
+
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
10869
|
+
var import_jsx_runtime254 = require("react/jsx-runtime");
|
|
10870
|
+
var StyledTabList = (0, import_styled_components77.default)(import_react_tabs2.List)`
|
|
10871
|
+
${segmentedControlStyles}
|
|
10872
|
+
|
|
10873
|
+
margin-bottom: var(--wui-space-04);
|
|
10484
10874
|
`;
|
|
10485
10875
|
var TabList = ({
|
|
10486
10876
|
children,
|
|
@@ -10488,7 +10878,7 @@ var TabList = ({
|
|
|
10488
10878
|
ariaLabel,
|
|
10489
10879
|
...props
|
|
10490
10880
|
}) => {
|
|
10491
|
-
return /* @__PURE__ */ (0,
|
|
10881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
10492
10882
|
StyledTabList,
|
|
10493
10883
|
{
|
|
10494
10884
|
$fullWidth: fullWidth,
|
|
@@ -10501,17 +10891,17 @@ var TabList = ({
|
|
|
10501
10891
|
TabList.displayName = "TabList";
|
|
10502
10892
|
|
|
10503
10893
|
// src/components/Tabs/TabItem.tsx
|
|
10504
|
-
var
|
|
10505
|
-
var
|
|
10894
|
+
var import_react56 = require("react");
|
|
10895
|
+
var import_styled_components78 = __toESM(require("styled-components"));
|
|
10506
10896
|
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
10507
|
-
var
|
|
10897
|
+
var import_type_guards40 = require("@wistia/type-guards");
|
|
10508
10898
|
|
|
10509
10899
|
// src/components/Tabs/useTabsValue.tsx
|
|
10510
|
-
var
|
|
10511
|
-
var TabsValueContext = (0,
|
|
10900
|
+
var import_react55 = require("react");
|
|
10901
|
+
var TabsValueContext = (0, import_react55.createContext)(null);
|
|
10512
10902
|
var TabsValueProvider = TabsValueContext.Provider;
|
|
10513
10903
|
var useTabsValue = () => {
|
|
10514
|
-
const context = (0,
|
|
10904
|
+
const context = (0, import_react55.useContext)(TabsValueContext);
|
|
10515
10905
|
if (context === null) {
|
|
10516
10906
|
throw new Error("useTabsValue must be used within a TabsValueProvider");
|
|
10517
10907
|
}
|
|
@@ -10519,21 +10909,21 @@ var useTabsValue = () => {
|
|
|
10519
10909
|
};
|
|
10520
10910
|
|
|
10521
10911
|
// src/components/Tabs/TabItem.tsx
|
|
10522
|
-
var
|
|
10523
|
-
var StyledTabItem = (0,
|
|
10912
|
+
var import_jsx_runtime255 = require("react/jsx-runtime");
|
|
10913
|
+
var StyledTabItem = (0, import_styled_components78.default)(import_react_tabs3.Trigger)`
|
|
10524
10914
|
${segmentedControlItemStyles}
|
|
10525
10915
|
|
|
10526
10916
|
&:focus-visible {
|
|
10527
10917
|
outline: none;
|
|
10528
10918
|
}
|
|
10529
10919
|
`;
|
|
10530
|
-
var TabItem = (0,
|
|
10920
|
+
var TabItem = (0, import_react56.forwardRef)(
|
|
10531
10921
|
({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
|
|
10532
10922
|
const selectedValue = useTabsValue();
|
|
10533
10923
|
const { setSelectedItemMeasurements } = useSelectedItemMeasurements();
|
|
10534
|
-
const buttonRef = (0,
|
|
10924
|
+
const buttonRef = (0, import_react56.useRef)(null);
|
|
10535
10925
|
const combinedRef = mergeRefs([buttonRef, forwardedRef]);
|
|
10536
|
-
(0,
|
|
10926
|
+
(0, import_react56.useEffect)(() => {
|
|
10537
10927
|
const buttonElem = buttonRef.current;
|
|
10538
10928
|
if (!buttonElem) {
|
|
10539
10929
|
return void 0;
|
|
@@ -10558,12 +10948,12 @@ var TabItem = (0, import_react49.forwardRef)(
|
|
|
10558
10948
|
resizeObserver.disconnect();
|
|
10559
10949
|
};
|
|
10560
10950
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
10561
|
-
return /* @__PURE__ */ (0,
|
|
10951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
|
|
10562
10952
|
StyledTabItem,
|
|
10563
10953
|
{
|
|
10564
10954
|
ref: combinedRef,
|
|
10565
|
-
$hasLabel: (0,
|
|
10566
|
-
"aria-label": (0,
|
|
10955
|
+
$hasLabel: (0, import_type_guards40.isNotNil)(label),
|
|
10956
|
+
"aria-label": (0, import_type_guards40.isNotNil)(label) ? void 0 : ariaLabel,
|
|
10567
10957
|
disabled,
|
|
10568
10958
|
value,
|
|
10569
10959
|
children: [
|
|
@@ -10577,16 +10967,16 @@ var TabItem = (0, import_react49.forwardRef)(
|
|
|
10577
10967
|
TabItem.displayName = "TabItem";
|
|
10578
10968
|
|
|
10579
10969
|
// src/components/Tabs/extractTabItems.ts
|
|
10580
|
-
var
|
|
10970
|
+
var import_react57 = require("react");
|
|
10581
10971
|
var extractTabItems = (children) => {
|
|
10582
10972
|
const tabItems = [];
|
|
10583
|
-
|
|
10584
|
-
if (!(0,
|
|
10973
|
+
import_react57.Children.forEach(children, (child) => {
|
|
10974
|
+
if (!(0, import_react57.isValidElement)(child)) {
|
|
10585
10975
|
return;
|
|
10586
10976
|
}
|
|
10587
10977
|
if (typeof child.type !== "string" && child.type.displayName === "Tab") {
|
|
10588
10978
|
tabItems.push(child);
|
|
10589
|
-
} else if (child.type ===
|
|
10979
|
+
} else if (child.type === import_react57.Fragment) {
|
|
10590
10980
|
const fragmentElement = child;
|
|
10591
10981
|
tabItems.push(...extractTabItems(fragmentElement.props.children));
|
|
10592
10982
|
} else if ((child.props.children ?? null) != null) {
|
|
@@ -10599,10 +10989,10 @@ var extractTabItems = (children) => {
|
|
|
10599
10989
|
};
|
|
10600
10990
|
|
|
10601
10991
|
// src/components/Tabs/SelectedItemIndicator.tsx
|
|
10602
|
-
var
|
|
10603
|
-
var
|
|
10604
|
-
var
|
|
10605
|
-
var TabsSelectedItemIndicatorDiv = (0,
|
|
10992
|
+
var import_react58 = require("react");
|
|
10993
|
+
var import_styled_components79 = __toESM(require("styled-components"));
|
|
10994
|
+
var import_jsx_runtime256 = require("react/jsx-runtime");
|
|
10995
|
+
var TabsSelectedItemIndicatorDiv = (0, import_styled_components79.default)(SelectedItemIndicatorDiv)`
|
|
10606
10996
|
&:has(~ ${StyledTabItem}:focus-visible) {
|
|
10607
10997
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
10608
10998
|
}
|
|
@@ -10610,7 +11000,7 @@ var TabsSelectedItemIndicatorDiv = (0, import_styled_components68.default)(Selec
|
|
|
10610
11000
|
var SelectedItemIndicator2 = () => {
|
|
10611
11001
|
const { selectedItemMeasurements } = useSelectedItemMeasurements();
|
|
10612
11002
|
const selectedValue = useTabsValue();
|
|
10613
|
-
const selectedItemIndicatorStyle = (0,
|
|
11003
|
+
const selectedItemIndicatorStyle = (0, import_react58.useMemo)(
|
|
10614
11004
|
() => selectedItemMeasurements != null ? {
|
|
10615
11005
|
height: `${selectedItemMeasurements.offsetHeight}px`,
|
|
10616
11006
|
transform: `translateX(${selectedItemMeasurements.offsetLeft}px)`,
|
|
@@ -10621,7 +11011,7 @@ var SelectedItemIndicator2 = () => {
|
|
|
10621
11011
|
if (selectedValue == null) {
|
|
10622
11012
|
return null;
|
|
10623
11013
|
}
|
|
10624
|
-
return /* @__PURE__ */ (0,
|
|
11014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
10625
11015
|
TabsSelectedItemIndicatorDiv,
|
|
10626
11016
|
{
|
|
10627
11017
|
style: {
|
|
@@ -10634,8 +11024,8 @@ var SelectedItemIndicator2 = () => {
|
|
|
10634
11024
|
};
|
|
10635
11025
|
|
|
10636
11026
|
// src/components/Tabs/Tabs.tsx
|
|
10637
|
-
var
|
|
10638
|
-
var Tabs = (0,
|
|
11027
|
+
var import_jsx_runtime257 = require("react/jsx-runtime");
|
|
11028
|
+
var Tabs = (0, import_react59.forwardRef)(
|
|
10639
11029
|
({
|
|
10640
11030
|
children,
|
|
10641
11031
|
fullWidth = true,
|
|
@@ -10646,30 +11036,30 @@ var Tabs = (0, import_react52.forwardRef)(
|
|
|
10646
11036
|
...otherProps
|
|
10647
11037
|
}, ref) => {
|
|
10648
11038
|
const tabItems = extractTabItems(children);
|
|
10649
|
-
const [internalSelectedValue, setInternalSelectedValue] = (0,
|
|
11039
|
+
const [internalSelectedValue, setInternalSelectedValue] = (0, import_react59.useState)(defaultSelectedValue);
|
|
10650
11040
|
const modeProps = defaultSelectedValue !== void 0 ? {
|
|
10651
11041
|
defaultValue: defaultSelectedValue,
|
|
10652
11042
|
onValueChange: setInternalSelectedValue
|
|
10653
11043
|
} : { value: selectedValue, onValueChange: onSelectedValueChange };
|
|
10654
|
-
return /* @__PURE__ */ (0,
|
|
11044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
10655
11045
|
import_react_tabs4.Root,
|
|
10656
11046
|
{
|
|
10657
11047
|
ref,
|
|
10658
11048
|
activationMode: "automatic",
|
|
10659
11049
|
...otherProps,
|
|
10660
11050
|
...modeProps,
|
|
10661
|
-
children: /* @__PURE__ */ (0,
|
|
11051
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
10662
11052
|
TabsValueProvider,
|
|
10663
11053
|
{
|
|
10664
11054
|
value: defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue,
|
|
10665
|
-
children: /* @__PURE__ */ (0,
|
|
10666
|
-
/* @__PURE__ */ (0,
|
|
11055
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(SelectedItemMeasurementsProvider, { children: [
|
|
11056
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
10667
11057
|
TabList,
|
|
10668
11058
|
{
|
|
10669
11059
|
ariaLabel,
|
|
10670
11060
|
fullWidth,
|
|
10671
11061
|
children: [
|
|
10672
|
-
/* @__PURE__ */ (0,
|
|
11062
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(SelectedItemIndicator2, {}),
|
|
10673
11063
|
tabItems.map((tab) => {
|
|
10674
11064
|
const {
|
|
10675
11065
|
value,
|
|
@@ -10678,8 +11068,8 @@ var Tabs = (0, import_react52.forwardRef)(
|
|
|
10678
11068
|
label,
|
|
10679
11069
|
"aria-label": ariaLabelForTab
|
|
10680
11070
|
} = tab.props;
|
|
10681
|
-
if ((0,
|
|
10682
|
-
return /* @__PURE__ */ (0,
|
|
11071
|
+
if ((0, import_type_guards41.isNil)(icon)) {
|
|
11072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
10683
11073
|
TabItem,
|
|
10684
11074
|
{
|
|
10685
11075
|
disabled,
|
|
@@ -10689,8 +11079,8 @@ var Tabs = (0, import_react52.forwardRef)(
|
|
|
10689
11079
|
value
|
|
10690
11080
|
);
|
|
10691
11081
|
}
|
|
10692
|
-
if ((0,
|
|
10693
|
-
return /* @__PURE__ */ (0,
|
|
11082
|
+
if ((0, import_type_guards41.isNotNil)(label)) {
|
|
11083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
10694
11084
|
TabItem,
|
|
10695
11085
|
{
|
|
10696
11086
|
disabled,
|
|
@@ -10701,8 +11091,8 @@ var Tabs = (0, import_react52.forwardRef)(
|
|
|
10701
11091
|
value
|
|
10702
11092
|
);
|
|
10703
11093
|
}
|
|
10704
|
-
if ((0,
|
|
10705
|
-
return /* @__PURE__ */ (0,
|
|
11094
|
+
if ((0, import_type_guards41.isNotNil)(ariaLabelForTab)) {
|
|
11095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
10706
11096
|
TabItem,
|
|
10707
11097
|
{
|
|
10708
11098
|
"aria-label": ariaLabelForTab,
|
|
@@ -10718,7 +11108,7 @@ var Tabs = (0, import_react52.forwardRef)(
|
|
|
10718
11108
|
]
|
|
10719
11109
|
}
|
|
10720
11110
|
),
|
|
10721
|
-
tabItems.map((tab) => /* @__PURE__ */ (0,
|
|
11111
|
+
tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
10722
11112
|
TabPanel,
|
|
10723
11113
|
{
|
|
10724
11114
|
value: tab.props.value,
|
|
@@ -10736,19 +11126,19 @@ var Tabs = (0, import_react52.forwardRef)(
|
|
|
10736
11126
|
Tabs.displayName = "Tabs";
|
|
10737
11127
|
|
|
10738
11128
|
// src/components/Tabs/Tab.tsx
|
|
10739
|
-
var
|
|
10740
|
-
var
|
|
10741
|
-
var Tab = (0,
|
|
10742
|
-
return /* @__PURE__ */ (0,
|
|
11129
|
+
var import_react60 = require("react");
|
|
11130
|
+
var import_jsx_runtime258 = require("react/jsx-runtime");
|
|
11131
|
+
var Tab = (0, import_react60.forwardRef)(({ children }, ref) => {
|
|
11132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("div", { ref, children });
|
|
10743
11133
|
});
|
|
10744
11134
|
Tab.displayName = "Tab";
|
|
10745
11135
|
|
|
10746
11136
|
// src/components/Tag/Tag.tsx
|
|
10747
|
-
var
|
|
10748
|
-
var
|
|
10749
|
-
var
|
|
10750
|
-
var
|
|
10751
|
-
var TagLabel =
|
|
11137
|
+
var import_react61 = require("react");
|
|
11138
|
+
var import_styled_components80 = __toESM(require("styled-components"));
|
|
11139
|
+
var import_type_guards42 = require("@wistia/type-guards");
|
|
11140
|
+
var import_jsx_runtime259 = require("react/jsx-runtime");
|
|
11141
|
+
var TagLabel = import_styled_components80.default.a`
|
|
10752
11142
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10753
11143
|
font-size: var(--wui-typography-label-4-size);
|
|
10754
11144
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -10776,14 +11166,14 @@ var TagLabel = import_styled_components69.default.a`
|
|
|
10776
11166
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
10777
11167
|
}
|
|
10778
11168
|
`;
|
|
10779
|
-
var TagDivider =
|
|
11169
|
+
var TagDivider = import_styled_components80.default.div`
|
|
10780
11170
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10781
11171
|
border-left: 1px solid var(--wui-color-border);
|
|
10782
11172
|
display: flex;
|
|
10783
11173
|
height: 14px;
|
|
10784
11174
|
width: 1px;
|
|
10785
11175
|
`;
|
|
10786
|
-
var StyledRemoveButton =
|
|
11176
|
+
var StyledRemoveButton = import_styled_components80.default.button`
|
|
10787
11177
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10788
11178
|
all: unset;
|
|
10789
11179
|
cursor: pointer;
|
|
@@ -10811,7 +11201,7 @@ var StyledRemoveButton = import_styled_components69.default.button`
|
|
|
10811
11201
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
10812
11202
|
}
|
|
10813
11203
|
`;
|
|
10814
|
-
var StyledTag =
|
|
11204
|
+
var StyledTag = import_styled_components80.default.div`
|
|
10815
11205
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10816
11206
|
align-items: center;
|
|
10817
11207
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -10824,47 +11214,47 @@ var StyledTag = import_styled_components69.default.div`
|
|
|
10824
11214
|
}
|
|
10825
11215
|
`;
|
|
10826
11216
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
10827
|
-
if ((0,
|
|
11217
|
+
if ((0, import_type_guards42.isNil)(onClickRemove)) {
|
|
10828
11218
|
return null;
|
|
10829
11219
|
}
|
|
10830
|
-
if ((0,
|
|
11220
|
+
if ((0, import_type_guards42.isNil)(onClickRemoveLabel)) {
|
|
10831
11221
|
throw new Error(
|
|
10832
11222
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
10833
11223
|
);
|
|
10834
11224
|
}
|
|
10835
|
-
return /* @__PURE__ */ (0,
|
|
10836
|
-
/* @__PURE__ */ (0,
|
|
10837
|
-
/* @__PURE__ */ (0,
|
|
11225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(import_jsx_runtime259.Fragment, { children: [
|
|
11226
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
11227
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
10838
11228
|
StyledRemoveButton,
|
|
10839
11229
|
{
|
|
10840
11230
|
$colorScheme: colorScheme,
|
|
10841
11231
|
onClick: onClickRemove,
|
|
10842
11232
|
type: "button",
|
|
10843
11233
|
children: [
|
|
10844
|
-
/* @__PURE__ */ (0,
|
|
11234
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10845
11235
|
Icon,
|
|
10846
11236
|
{
|
|
10847
11237
|
size: "sm",
|
|
10848
11238
|
type: "close"
|
|
10849
11239
|
}
|
|
10850
11240
|
),
|
|
10851
|
-
/* @__PURE__ */ (0,
|
|
11241
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
10852
11242
|
]
|
|
10853
11243
|
}
|
|
10854
11244
|
)
|
|
10855
11245
|
] });
|
|
10856
11246
|
};
|
|
10857
|
-
var Tag = (0,
|
|
11247
|
+
var Tag = (0, import_react61.forwardRef)(
|
|
10858
11248
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
10859
|
-
const labelProps = (0,
|
|
10860
|
-
return /* @__PURE__ */ (0,
|
|
11249
|
+
const labelProps = (0, import_type_guards42.isNotNil)(href) && (0, import_type_guards42.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
11250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
10861
11251
|
StyledTag,
|
|
10862
11252
|
{
|
|
10863
11253
|
ref,
|
|
10864
11254
|
$colorScheme: colorScheme,
|
|
10865
11255
|
...otherProps,
|
|
10866
11256
|
children: [
|
|
10867
|
-
/* @__PURE__ */ (0,
|
|
11257
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10868
11258
|
TagLabel,
|
|
10869
11259
|
{
|
|
10870
11260
|
...labelProps,
|
|
@@ -10872,7 +11262,7 @@ var Tag = (0, import_react54.forwardRef)(
|
|
|
10872
11262
|
children: label
|
|
10873
11263
|
}
|
|
10874
11264
|
),
|
|
10875
|
-
/* @__PURE__ */ (0,
|
|
11265
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10876
11266
|
RemoveButton,
|
|
10877
11267
|
{
|
|
10878
11268
|
colorScheme,
|
|
@@ -10888,26 +11278,26 @@ var Tag = (0, import_react54.forwardRef)(
|
|
|
10888
11278
|
Tag.displayName = "Tag";
|
|
10889
11279
|
|
|
10890
11280
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
10891
|
-
var
|
|
10892
|
-
var
|
|
10893
|
-
var
|
|
11281
|
+
var import_styled_components81 = __toESM(require("styled-components"));
|
|
11282
|
+
var import_type_guards43 = require("@wistia/type-guards");
|
|
11283
|
+
var import_jsx_runtime260 = require("react/jsx-runtime");
|
|
10894
11284
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
10895
11285
|
if (iconOnly) {
|
|
10896
|
-
return /* @__PURE__ */ (0,
|
|
11286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10897
11287
|
"g",
|
|
10898
11288
|
{
|
|
10899
11289
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
10900
11290
|
fill: brandmarkColor,
|
|
10901
|
-
children: /* @__PURE__ */ (0,
|
|
11291
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.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" })
|
|
10902
11292
|
}
|
|
10903
11293
|
);
|
|
10904
11294
|
}
|
|
10905
|
-
return /* @__PURE__ */ (0,
|
|
11295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10906
11296
|
"g",
|
|
10907
11297
|
{
|
|
10908
11298
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
10909
11299
|
fill: brandmarkColor,
|
|
10910
|
-
children: /* @__PURE__ */ (0,
|
|
11300
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.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" })
|
|
10911
11301
|
}
|
|
10912
11302
|
);
|
|
10913
11303
|
};
|
|
@@ -10915,12 +11305,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
10915
11305
|
if (iconOnly) {
|
|
10916
11306
|
return null;
|
|
10917
11307
|
}
|
|
10918
|
-
return /* @__PURE__ */ (0,
|
|
11308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10919
11309
|
"g",
|
|
10920
11310
|
{
|
|
10921
11311
|
"data-testid": "ui-wistia-logo-logotype",
|
|
10922
11312
|
fill: logotypeColor,
|
|
10923
|
-
children: /* @__PURE__ */ (0,
|
|
11313
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.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" })
|
|
10924
11314
|
}
|
|
10925
11315
|
);
|
|
10926
11316
|
};
|
|
@@ -10930,7 +11320,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
10930
11320
|
}
|
|
10931
11321
|
return "0 0 144 31.47";
|
|
10932
11322
|
};
|
|
10933
|
-
var WistiaLogoComponent =
|
|
11323
|
+
var WistiaLogoComponent = import_styled_components81.default.svg`
|
|
10934
11324
|
height: ${({ height }) => `${height}px`};
|
|
10935
11325
|
|
|
10936
11326
|
/* ensure it will always fit on mobile */
|
|
@@ -10946,12 +11336,12 @@ var WistiaLogoComponent = import_styled_components70.default.svg`
|
|
|
10946
11336
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
10947
11337
|
if ($opticallyCentered) {
|
|
10948
11338
|
if ($iconOnly) {
|
|
10949
|
-
return
|
|
11339
|
+
return import_styled_components81.css`
|
|
10950
11340
|
aspect-ratio: 1;
|
|
10951
11341
|
padding: 11.85% 3.12% 13.91%;
|
|
10952
11342
|
`;
|
|
10953
11343
|
}
|
|
10954
|
-
return
|
|
11344
|
+
return import_styled_components81.css`
|
|
10955
11345
|
aspect-ratio: 127 / 32;
|
|
10956
11346
|
`;
|
|
10957
11347
|
}
|
|
@@ -10988,7 +11378,7 @@ var WistiaLogo = ({
|
|
|
10988
11378
|
};
|
|
10989
11379
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
10990
11380
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
10991
|
-
const Logo = /* @__PURE__ */ (0,
|
|
11381
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10992
11382
|
WistiaLogoComponent,
|
|
10993
11383
|
{
|
|
10994
11384
|
$hoverColor: hoverColor,
|
|
@@ -11001,258 +11391,16 @@ var WistiaLogo = ({
|
|
|
11001
11391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11002
11392
|
...otherProps,
|
|
11003
11393
|
children: [
|
|
11004
|
-
/* @__PURE__ */ (0,
|
|
11005
|
-
(0,
|
|
11394
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)("title", { children: title }),
|
|
11395
|
+
(0, import_type_guards43.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("desc", { children: description }) : null,
|
|
11006
11396
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
11007
11397
|
renderLogotype(logotypeColor, iconOnly)
|
|
11008
11398
|
]
|
|
11009
11399
|
}
|
|
11010
11400
|
);
|
|
11011
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
11401
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("a", { href, children: Logo }) : Logo;
|
|
11012
11402
|
};
|
|
11013
11403
|
WistiaLogo.displayName = "WistiaLogo";
|
|
11014
|
-
|
|
11015
|
-
// src/components/Select/Select.tsx
|
|
11016
|
-
var import_react_select = require("@radix-ui/react-select");
|
|
11017
|
-
var import_react55 = require("react");
|
|
11018
|
-
var import_styled_components71 = __toESM(require("styled-components"));
|
|
11019
|
-
var import_jsx_runtime251 = require("react/jsx-runtime");
|
|
11020
|
-
var StyledTrigger = (0, import_styled_components71.default)(import_react_select.Trigger)`
|
|
11021
|
-
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
11022
|
-
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
11023
|
-
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
11024
|
-
--wui-select-color-border: var(--wui-color-border);
|
|
11025
|
-
--wui-select-color-border-focus: var(--wui-color-border-active);
|
|
11026
|
-
--wui-select-color-border-error: var(--wui-color-border-error);
|
|
11027
|
-
--wui-select-color-border-disabled: var(--wui-color-border-disabled);
|
|
11028
|
-
--wui-select-border-radius: var(--wui-border-radius-rounded);
|
|
11029
|
-
--wui-select-multiline-border-radius: var(--wui-border-radius-02);
|
|
11030
|
-
--wui-select-vertical-padding: var(--wui-space-02);
|
|
11031
|
-
--wui-select-horizontal-padding: var(--wui-space-03);
|
|
11032
|
-
--wui-select-placeholder: var(--wui-gray-10);
|
|
11033
|
-
--wui-select-color-text-error: var(--wui-color-text-error);
|
|
11034
|
-
|
|
11035
|
-
padding: var(--wui-select-vertical-padding) var(--wui-select-horizontal-padding);
|
|
11036
|
-
background-color: var(--wui-select-color-bg);
|
|
11037
|
-
border: 1px solid var(--wui-select-color-border);
|
|
11038
|
-
border-radius: var(--wui-select-border-radius);
|
|
11039
|
-
min-width: 200px;
|
|
11040
|
-
text-align: left;
|
|
11041
|
-
display: inline-flex;
|
|
11042
|
-
align-items: center;
|
|
11043
|
-
justify-content: space-between;
|
|
11044
|
-
max-width: 100%;
|
|
11045
|
-
width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
|
|
11046
|
-
|
|
11047
|
-
> span {
|
|
11048
|
-
white-space: nowrap;
|
|
11049
|
-
text-overflow: ellipsis;
|
|
11050
|
-
overflow: hidden;
|
|
11051
|
-
}
|
|
11052
|
-
|
|
11053
|
-
&[aria-expanded='true'],
|
|
11054
|
-
&:focus {
|
|
11055
|
-
outline: 2px solid var(--wui-color-focus-ring);
|
|
11056
|
-
}
|
|
11057
|
-
|
|
11058
|
-
&[aria-invalid='true'] {
|
|
11059
|
-
outline: 2px solid var(--wui-select-color-border-error);
|
|
11060
|
-
color: var(--wui-select-color-text-error);
|
|
11061
|
-
}
|
|
11062
|
-
|
|
11063
|
-
&:disabled {
|
|
11064
|
-
border-color: var(--wui-color-bg-surface-disabled);
|
|
11065
|
-
background-color: var(--wui-color-bg-surface-disabled);
|
|
11066
|
-
}
|
|
11067
|
-
`;
|
|
11068
|
-
var StyledContent3 = (0, import_styled_components71.default)(import_react_select.Content)`
|
|
11069
|
-
--wui-select-content-border: var(--wui-color-border);
|
|
11070
|
-
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
11071
|
-
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
11072
|
-
--wui-select-option-padding: var(--wui-space-02);
|
|
11073
|
-
--wui-select-option-inner-gap: var(--wui-space-03);
|
|
11074
|
-
--wui-select-option-bg-hover: var(--wui-color-bg-surface-hover);
|
|
11075
|
-
|
|
11076
|
-
overflow: hidden;
|
|
11077
|
-
transform: translateY(8px);
|
|
11078
|
-
background-color: var(--wui-select-content-bg);
|
|
11079
|
-
border: 1px solid var(--wui-select-content-border);
|
|
11080
|
-
border-radius: var(--wui-select-content-border-radius);
|
|
11081
|
-
padding: var(--wui-select-option-padding);
|
|
11082
|
-
min-width: var(--radix-select-trigger-width);
|
|
11083
|
-
max-height: var(--radix-select-content-available-height);
|
|
11084
|
-
z-index: var(--wui-zindex-select);
|
|
11085
|
-
`;
|
|
11086
|
-
var Select = (0, import_react55.forwardRef)(
|
|
11087
|
-
({
|
|
11088
|
-
colorScheme = "inherit",
|
|
11089
|
-
children,
|
|
11090
|
-
onChange = () => null,
|
|
11091
|
-
placeholder = "Select...",
|
|
11092
|
-
fullWidth = false,
|
|
11093
|
-
...props
|
|
11094
|
-
}, forwardedRef) => {
|
|
11095
|
-
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
11096
|
-
return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
|
|
11097
|
-
import_react_select.Root,
|
|
11098
|
-
{
|
|
11099
|
-
...props,
|
|
11100
|
-
onValueChange: onChange,
|
|
11101
|
-
children: [
|
|
11102
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
|
|
11103
|
-
StyledTrigger,
|
|
11104
|
-
{
|
|
11105
|
-
ref: forwardedRef,
|
|
11106
|
-
$colorScheme: colorScheme,
|
|
11107
|
-
$fullWidth: responsiveFullWidth,
|
|
11108
|
-
...props,
|
|
11109
|
-
children: [
|
|
11110
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_select.Value, { placeholder }),
|
|
11111
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
11112
|
-
Icon,
|
|
11113
|
-
{
|
|
11114
|
-
size: "md",
|
|
11115
|
-
type: "caret-down"
|
|
11116
|
-
}
|
|
11117
|
-
)
|
|
11118
|
-
]
|
|
11119
|
-
}
|
|
11120
|
-
),
|
|
11121
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(StyledContent3, { position: "popper", children: [
|
|
11122
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon, { type: "caret-up" }) }),
|
|
11123
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_select.Viewport, { children }),
|
|
11124
|
-
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon, { type: "caret-down" }) })
|
|
11125
|
-
] }) })
|
|
11126
|
-
]
|
|
11127
|
-
}
|
|
11128
|
-
);
|
|
11129
|
-
}
|
|
11130
|
-
);
|
|
11131
|
-
Select.displayName = "Select";
|
|
11132
|
-
|
|
11133
|
-
// src/components/Select/SelectOption.tsx
|
|
11134
|
-
var import_react_select2 = require("@radix-ui/react-select");
|
|
11135
|
-
var import_react56 = require("react");
|
|
11136
|
-
var import_styled_components72 = __toESM(require("styled-components"));
|
|
11137
|
-
var import_jsx_runtime252 = require("react/jsx-runtime");
|
|
11138
|
-
var StyledItem = (0, import_styled_components72.default)(import_react_select2.Item)`
|
|
11139
|
-
${variantStyleMap2.body3};
|
|
11140
|
-
display: flex;
|
|
11141
|
-
padding: var(--wui-select-option-padding);
|
|
11142
|
-
gap: var(--wui-select-option-inner-gap);
|
|
11143
|
-
font-size: var(--font-size);
|
|
11144
|
-
font-weight: var(--font-weight);
|
|
11145
|
-
border-radius: var(--wui-border-radius-01);
|
|
11146
|
-
|
|
11147
|
-
&:hover,
|
|
11148
|
-
&:focus-visible {
|
|
11149
|
-
background-color: var(--wui-select-option-bg-hover);
|
|
11150
|
-
outline: none;
|
|
11151
|
-
}
|
|
11152
|
-
|
|
11153
|
-
&[aria-disabled='true'] {
|
|
11154
|
-
color: var(--wui-color-text-disabled);
|
|
11155
|
-
}
|
|
11156
|
-
|
|
11157
|
-
&[aria-disabled='true']:hover {
|
|
11158
|
-
background-color: transparent;
|
|
11159
|
-
}
|
|
11160
|
-
`;
|
|
11161
|
-
var StyledIconContainer = import_styled_components72.default.span`
|
|
11162
|
-
width: 12px;
|
|
11163
|
-
`;
|
|
11164
|
-
var SelectOption = (0, import_react56.forwardRef)(
|
|
11165
|
-
({ children, ...props }, forwardedRef) => {
|
|
11166
|
-
return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
11167
|
-
StyledItem,
|
|
11168
|
-
{
|
|
11169
|
-
...props,
|
|
11170
|
-
ref: forwardedRef,
|
|
11171
|
-
children: [
|
|
11172
|
-
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(StyledIconContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
11173
|
-
Icon,
|
|
11174
|
-
{
|
|
11175
|
-
size: "sm",
|
|
11176
|
-
type: "checkmark"
|
|
11177
|
-
}
|
|
11178
|
-
) }) }),
|
|
11179
|
-
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_react_select2.ItemText, { children })
|
|
11180
|
-
]
|
|
11181
|
-
}
|
|
11182
|
-
);
|
|
11183
|
-
}
|
|
11184
|
-
);
|
|
11185
|
-
SelectOption.displayName = "Option";
|
|
11186
|
-
|
|
11187
|
-
// src/components/Select/SelectOptionGroup.tsx
|
|
11188
|
-
var import_react_select3 = require("@radix-ui/react-select");
|
|
11189
|
-
var import_styled_components73 = __toESM(require("styled-components"));
|
|
11190
|
-
var import_jsx_runtime253 = require("react/jsx-runtime");
|
|
11191
|
-
var StyledLabel4 = (0, import_styled_components73.default)(import_react_select3.Label)`
|
|
11192
|
-
padding: var(--wui-select-option-padding);
|
|
11193
|
-
`;
|
|
11194
|
-
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
11195
|
-
return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(import_react_select3.Group, { ...props, children: [
|
|
11196
|
-
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
11197
|
-
Text,
|
|
11198
|
-
{
|
|
11199
|
-
prominence: "secondary",
|
|
11200
|
-
variant: "body3",
|
|
11201
|
-
children: label
|
|
11202
|
-
}
|
|
11203
|
-
) }),
|
|
11204
|
-
children
|
|
11205
|
-
] });
|
|
11206
|
-
};
|
|
11207
|
-
|
|
11208
|
-
// src/components/Image/Image.tsx
|
|
11209
|
-
var import_styled_components74 = __toESM(require("styled-components"));
|
|
11210
|
-
var import_type_guards43 = require("@wistia/type-guards");
|
|
11211
|
-
var import_jsx_runtime254 = require("react/jsx-runtime");
|
|
11212
|
-
var getFillStyle2 = (fillContainer) => {
|
|
11213
|
-
if (fillContainer === "horizontal") {
|
|
11214
|
-
return "width: 100%;";
|
|
11215
|
-
}
|
|
11216
|
-
if (fillContainer === "vertical") {
|
|
11217
|
-
return "height: 100%;";
|
|
11218
|
-
}
|
|
11219
|
-
if (fillContainer === true) {
|
|
11220
|
-
return `
|
|
11221
|
-
width: 100%;
|
|
11222
|
-
height: 100%;
|
|
11223
|
-
`;
|
|
11224
|
-
}
|
|
11225
|
-
return void 0;
|
|
11226
|
-
};
|
|
11227
|
-
var StyledImage = import_styled_components74.default.img`
|
|
11228
|
-
border-radius: ${({ $borderRadius }) => (0, import_type_guards43.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
|
|
11229
|
-
${({ $fillContainer }) => getFillStyle2($fillContainer)};
|
|
11230
|
-
object-fit: ${({ $objFit }) => $objFit};
|
|
11231
|
-
object-position: ${({ $objPosition }) => $objPosition};
|
|
11232
|
-
`;
|
|
11233
|
-
var Image = ({
|
|
11234
|
-
src,
|
|
11235
|
-
alt,
|
|
11236
|
-
borderRadius,
|
|
11237
|
-
fill: fillContainer = false,
|
|
11238
|
-
fit: objFit,
|
|
11239
|
-
loading = "lazy",
|
|
11240
|
-
position: objPosition,
|
|
11241
|
-
...otherProps
|
|
11242
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
11243
|
-
StyledImage,
|
|
11244
|
-
{
|
|
11245
|
-
$borderRadius: borderRadius,
|
|
11246
|
-
$fillContainer: fillContainer,
|
|
11247
|
-
$objFit: objFit,
|
|
11248
|
-
$objPosition: objPosition,
|
|
11249
|
-
alt,
|
|
11250
|
-
loading,
|
|
11251
|
-
src,
|
|
11252
|
-
...otherProps
|
|
11253
|
-
}
|
|
11254
|
-
);
|
|
11255
|
-
Image.displayName = "Image";
|
|
11256
11404
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11257
11405
|
0 && (module.exports = {
|
|
11258
11406
|
ActionButton,
|
|
@@ -11313,6 +11461,12 @@ Image.displayName = "Image";
|
|
|
11313
11461
|
Stack,
|
|
11314
11462
|
SubMenu,
|
|
11315
11463
|
Tab,
|
|
11464
|
+
Table,
|
|
11465
|
+
TableBody,
|
|
11466
|
+
TableCell,
|
|
11467
|
+
TableFooter,
|
|
11468
|
+
TableHead,
|
|
11469
|
+
TableRow,
|
|
11316
11470
|
Tabs,
|
|
11317
11471
|
Tag,
|
|
11318
11472
|
Text,
|