@wistia/ui 0.9.5-beta.d06f577d.c09e2a6 → 0.9.6-beta.0bdb4e44.c8b94c3
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 +217 -338
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +24 -64
- package/dist/index.d.ts +24 -64
- package/dist/index.mjs +178 -301
- 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.9.
|
|
3
|
+
* @license @wistia/ui v0.9.6-beta.0bdb4e44.c8b94c3
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -103,7 +103,6 @@ __export(index_exports, {
|
|
|
103
103
|
Stack: () => Stack,
|
|
104
104
|
SubMenu: () => SubMenu,
|
|
105
105
|
Switch: () => Switch,
|
|
106
|
-
Tab: () => Tab,
|
|
107
106
|
Table: () => Table,
|
|
108
107
|
TableBody: () => TableBody,
|
|
109
108
|
TableCell: () => TableCell,
|
|
@@ -111,6 +110,9 @@ __export(index_exports, {
|
|
|
111
110
|
TableHead: () => TableHead,
|
|
112
111
|
TableRow: () => TableRow,
|
|
113
112
|
Tabs: () => Tabs,
|
|
113
|
+
TabsContent: () => TabsContent,
|
|
114
|
+
TabsList: () => TabsList,
|
|
115
|
+
TabsTrigger: () => TabsTrigger,
|
|
114
116
|
Tag: () => Tag,
|
|
115
117
|
Text: () => Text,
|
|
116
118
|
Thumbnail: () => Thumbnail,
|
|
@@ -11856,7 +11858,7 @@ var segmentedControlItemStyles = import_styled_components73.css`
|
|
|
11856
11858
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
11857
11859
|
}
|
|
11858
11860
|
|
|
11859
|
-
&:hover:not([data-state='on'], [data-state='active']) {
|
|
11861
|
+
&:hover:not([data-state='on'], [data-state='active'], [aria-selected='true']) {
|
|
11860
11862
|
background-color: var(--wui-color-bg-surface-secondary-hover);
|
|
11861
11863
|
}
|
|
11862
11864
|
|
|
@@ -12415,64 +12417,8 @@ var TableRow = ({ children, ...props }) => {
|
|
|
12415
12417
|
};
|
|
12416
12418
|
|
|
12417
12419
|
// src/components/Tabs/Tabs.tsx
|
|
12418
|
-
var import_react69 = require("react");
|
|
12419
|
-
var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
12420
|
-
var import_type_guards51 = require("@wistia/type-guards");
|
|
12421
|
-
var import_styled_components88 = __toESM(require("styled-components"));
|
|
12422
|
-
|
|
12423
|
-
// src/components/Tabs/TabPanel.tsx
|
|
12424
|
-
var import_styled_components84 = __toESM(require("styled-components"));
|
|
12425
12420
|
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
12426
|
-
var import_jsx_runtime264 = require("react/jsx-runtime");
|
|
12427
|
-
var StyledTabPanel = (0, import_styled_components84.default)(import_react_tabs.Content)`
|
|
12428
|
-
display: flex;
|
|
12429
|
-
flex-direction: column;
|
|
12430
|
-
`;
|
|
12431
|
-
var TabPanel = ({ children, value, ...props }) => {
|
|
12432
|
-
return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
12433
|
-
StyledTabPanel,
|
|
12434
|
-
{
|
|
12435
|
-
value,
|
|
12436
|
-
...props,
|
|
12437
|
-
children
|
|
12438
|
-
}
|
|
12439
|
-
);
|
|
12440
|
-
};
|
|
12441
|
-
TabPanel.displayName = "TabPanel";
|
|
12442
|
-
|
|
12443
|
-
// src/components/Tabs/TabList.tsx
|
|
12444
|
-
var import_styled_components85 = __toESM(require("styled-components"));
|
|
12445
|
-
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
12446
|
-
var import_jsx_runtime265 = require("react/jsx-runtime");
|
|
12447
|
-
var StyledTabList = (0, import_styled_components85.default)(import_react_tabs2.List)`
|
|
12448
|
-
${segmentedControlStyles}
|
|
12449
|
-
|
|
12450
|
-
margin-bottom: var(--wui-space-04);
|
|
12451
|
-
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
12452
|
-
align-self: ${({ $fullWidth }) => $fullWidth ? "auto" : "flex-start"};
|
|
12453
|
-
`;
|
|
12454
|
-
var TabList = ({
|
|
12455
|
-
children,
|
|
12456
|
-
fullWidth,
|
|
12457
|
-
ariaLabel,
|
|
12458
|
-
...props
|
|
12459
|
-
}) => {
|
|
12460
|
-
return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
|
|
12461
|
-
StyledTabList,
|
|
12462
|
-
{
|
|
12463
|
-
$fullWidth: fullWidth,
|
|
12464
|
-
"aria-label": ariaLabel,
|
|
12465
|
-
...props,
|
|
12466
|
-
children
|
|
12467
|
-
}
|
|
12468
|
-
);
|
|
12469
|
-
};
|
|
12470
|
-
TabList.displayName = "TabList";
|
|
12471
|
-
|
|
12472
|
-
// src/components/Tabs/TabItem.tsx
|
|
12473
12421
|
var import_react67 = require("react");
|
|
12474
|
-
var import_styled_components86 = __toESM(require("styled-components"));
|
|
12475
|
-
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
12476
12422
|
var import_type_guards50 = require("@wistia/type-guards");
|
|
12477
12423
|
|
|
12478
12424
|
// src/components/Tabs/useTabsValue.tsx
|
|
@@ -12487,22 +12433,114 @@ var useTabsValue = () => {
|
|
|
12487
12433
|
return context;
|
|
12488
12434
|
};
|
|
12489
12435
|
|
|
12490
|
-
// src/components/Tabs/
|
|
12436
|
+
// src/components/Tabs/Tabs.tsx
|
|
12437
|
+
var import_jsx_runtime264 = require("react/jsx-runtime");
|
|
12438
|
+
var Tabs = ({
|
|
12439
|
+
children,
|
|
12440
|
+
value: valueProp,
|
|
12441
|
+
onValueChange: onValueChangeProp,
|
|
12442
|
+
defaultValue,
|
|
12443
|
+
...props
|
|
12444
|
+
}) => {
|
|
12445
|
+
const [value, setValue] = (0, import_react67.useState)(valueProp ?? defaultValue);
|
|
12446
|
+
const onValueChange = (0, import_react67.useCallback)(
|
|
12447
|
+
(newValue) => {
|
|
12448
|
+
setValue(newValue);
|
|
12449
|
+
if (onValueChangeProp) {
|
|
12450
|
+
onValueChangeProp(newValue);
|
|
12451
|
+
}
|
|
12452
|
+
},
|
|
12453
|
+
[onValueChangeProp]
|
|
12454
|
+
);
|
|
12455
|
+
const rootProps = {
|
|
12456
|
+
...props,
|
|
12457
|
+
onValueChange
|
|
12458
|
+
};
|
|
12459
|
+
if ((0, import_type_guards50.isNotNil)(value)) {
|
|
12460
|
+
rootProps.value = value;
|
|
12461
|
+
}
|
|
12462
|
+
if ((0, import_type_guards50.isNotNil)(defaultValue)) {
|
|
12463
|
+
rootProps.defaultValue = defaultValue;
|
|
12464
|
+
}
|
|
12465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(SelectedItemStyleProvider, { children }) }) });
|
|
12466
|
+
};
|
|
12467
|
+
Tabs.displayName = "Tabs";
|
|
12468
|
+
|
|
12469
|
+
// src/components/Tabs/TabsContent.tsx
|
|
12470
|
+
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
12471
|
+
var import_jsx_runtime265 = require("react/jsx-runtime");
|
|
12472
|
+
var TabsContent = ({ children, value }) => {
|
|
12473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(import_react_tabs2.Content, { value, children });
|
|
12474
|
+
};
|
|
12475
|
+
TabsContent.displayName = "TabsContent";
|
|
12476
|
+
|
|
12477
|
+
// src/components/Tabs/TabsList.tsx
|
|
12478
|
+
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
12479
|
+
var import_styled_components85 = __toESM(require("styled-components"));
|
|
12480
|
+
|
|
12481
|
+
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
12482
|
+
var import_styled_components84 = __toESM(require("styled-components"));
|
|
12483
|
+
var TabsSelectedItemIndicatorDiv = (0, import_styled_components84.default)(SelectedItemIndicatorDiv)`
|
|
12484
|
+
&:has(~ button[role='tab']:focus-visible) {
|
|
12485
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
12486
|
+
}
|
|
12487
|
+
`;
|
|
12488
|
+
|
|
12489
|
+
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
12491
12490
|
var import_jsx_runtime266 = require("react/jsx-runtime");
|
|
12492
|
-
var
|
|
12491
|
+
var SelectedTabIndicator = () => {
|
|
12492
|
+
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
12493
|
+
const selectedValue = useTabsValue();
|
|
12494
|
+
if (selectedValue == null) {
|
|
12495
|
+
return null;
|
|
12496
|
+
}
|
|
12497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
|
|
12498
|
+
};
|
|
12499
|
+
|
|
12500
|
+
// src/components/Tabs/TabsList.tsx
|
|
12501
|
+
var import_jsx_runtime267 = require("react/jsx-runtime");
|
|
12502
|
+
var StyledRadixTabsList = (0, import_styled_components85.default)(import_react_tabs3.List)`
|
|
12503
|
+
${segmentedControlStyles}
|
|
12504
|
+
`;
|
|
12505
|
+
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
12506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
|
|
12507
|
+
StyledRadixTabsList,
|
|
12508
|
+
{
|
|
12509
|
+
$fullWidth: fullWidth,
|
|
12510
|
+
"aria-label": props["aria-label"],
|
|
12511
|
+
children: [
|
|
12512
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(SelectedTabIndicator, {}),
|
|
12513
|
+
children
|
|
12514
|
+
]
|
|
12515
|
+
}
|
|
12516
|
+
);
|
|
12517
|
+
};
|
|
12518
|
+
TabsList.displayName = "TabsList";
|
|
12519
|
+
|
|
12520
|
+
// src/components/Tabs/TabsTrigger.tsx
|
|
12521
|
+
var import_react68 = require("react");
|
|
12522
|
+
var import_type_guards51 = require("@wistia/type-guards");
|
|
12523
|
+
|
|
12524
|
+
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
12525
|
+
var import_styled_components86 = __toESM(require("styled-components"));
|
|
12526
|
+
var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
12527
|
+
var StyledRadixTabsTrigger = (0, import_styled_components86.default)(import_react_tabs4.Trigger)`
|
|
12493
12528
|
${segmentedControlItemStyles}
|
|
12494
12529
|
|
|
12495
12530
|
&:focus-visible {
|
|
12496
12531
|
outline: none;
|
|
12497
12532
|
}
|
|
12498
12533
|
`;
|
|
12499
|
-
|
|
12500
|
-
|
|
12534
|
+
|
|
12535
|
+
// src/components/Tabs/TabsTrigger.tsx
|
|
12536
|
+
var import_jsx_runtime268 = require("react/jsx-runtime");
|
|
12537
|
+
var TabsTrigger = (0, import_react68.forwardRef)(
|
|
12538
|
+
({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
|
|
12501
12539
|
const selectedValue = useTabsValue();
|
|
12502
12540
|
const { setSelectedItemMeasurements } = useSelectedItemStyle();
|
|
12503
|
-
const buttonRef = (0,
|
|
12541
|
+
const buttonRef = (0, import_react68.useRef)(null);
|
|
12504
12542
|
const combinedRef = mergeRefs([buttonRef, forwardedRef]);
|
|
12505
|
-
(0,
|
|
12543
|
+
(0, import_react68.useEffect)(() => {
|
|
12506
12544
|
const buttonElem = buttonRef.current;
|
|
12507
12545
|
if (!buttonElem) {
|
|
12508
12546
|
return void 0;
|
|
@@ -12527,12 +12565,13 @@ var TabItem = (0, import_react67.forwardRef)(
|
|
|
12527
12565
|
resizeObserver.disconnect();
|
|
12528
12566
|
};
|
|
12529
12567
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
12530
|
-
return /* @__PURE__ */ (0,
|
|
12531
|
-
|
|
12568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
|
|
12569
|
+
StyledRadixTabsTrigger,
|
|
12532
12570
|
{
|
|
12571
|
+
...otherProps,
|
|
12533
12572
|
ref: combinedRef,
|
|
12534
|
-
$hasLabel: (0,
|
|
12535
|
-
"aria-label": (0,
|
|
12573
|
+
$hasLabel: (0, import_type_guards51.isNotNil)(label),
|
|
12574
|
+
"aria-label": (0, import_type_guards51.isNotNil)(label) ? void 0 : ariaLabel,
|
|
12536
12575
|
disabled,
|
|
12537
12576
|
value,
|
|
12538
12577
|
children: [
|
|
@@ -12543,176 +12582,14 @@ var TabItem = (0, import_react67.forwardRef)(
|
|
|
12543
12582
|
);
|
|
12544
12583
|
}
|
|
12545
12584
|
);
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
// src/components/Tabs/extractTabItems.ts
|
|
12549
|
-
var import_react68 = require("react");
|
|
12550
|
-
var extractTabItems = (children) => {
|
|
12551
|
-
const tabItems = [];
|
|
12552
|
-
import_react68.Children.forEach(children, (child) => {
|
|
12553
|
-
if (!(0, import_react68.isValidElement)(child)) {
|
|
12554
|
-
return;
|
|
12555
|
-
}
|
|
12556
|
-
if (typeof child.type !== "string" && child.type.displayName === "Tab") {
|
|
12557
|
-
tabItems.push(child);
|
|
12558
|
-
} else if (child.type === import_react68.Fragment) {
|
|
12559
|
-
const fragmentElement = child;
|
|
12560
|
-
tabItems.push(...extractTabItems(fragmentElement.props.children));
|
|
12561
|
-
} else if ((child.props.children ?? null) != null) {
|
|
12562
|
-
const childChildren = child.props.children;
|
|
12563
|
-
tabItems.push(...extractTabItems(childChildren));
|
|
12564
|
-
} else {
|
|
12565
|
-
}
|
|
12566
|
-
});
|
|
12567
|
-
return tabItems;
|
|
12568
|
-
};
|
|
12569
|
-
|
|
12570
|
-
// src/components/Tabs/SelectedItemIndicator.tsx
|
|
12571
|
-
var import_styled_components87 = __toESM(require("styled-components"));
|
|
12572
|
-
var import_jsx_runtime267 = require("react/jsx-runtime");
|
|
12573
|
-
var TabsSelectedItemIndicatorDiv = (0, import_styled_components87.default)(SelectedItemIndicatorDiv)`
|
|
12574
|
-
&:has(~ ${StyledTabItem}:focus-visible) {
|
|
12575
|
-
outline: 2px solid var(--wui-color-focus-ring);
|
|
12576
|
-
}
|
|
12577
|
-
`;
|
|
12578
|
-
var SelectedItemIndicator2 = () => {
|
|
12579
|
-
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
12580
|
-
const selectedValue = useTabsValue();
|
|
12581
|
-
if (selectedValue == null) {
|
|
12582
|
-
return null;
|
|
12583
|
-
}
|
|
12584
|
-
return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
|
|
12585
|
-
};
|
|
12586
|
-
|
|
12587
|
-
// src/components/Tabs/Tabs.tsx
|
|
12588
|
-
var import_jsx_runtime268 = require("react/jsx-runtime");
|
|
12589
|
-
var TabsContainer = import_styled_components88.default.div`
|
|
12590
|
-
display: flex;
|
|
12591
|
-
flex-direction: column;
|
|
12592
|
-
height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
|
|
12593
|
-
overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
|
|
12594
|
-
`;
|
|
12595
|
-
var StickyTabContent = import_styled_components88.default.div`
|
|
12596
|
-
flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
|
|
12597
|
-
overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
|
|
12598
|
-
overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
|
|
12599
|
-
`;
|
|
12600
|
-
var StyledTabsRoot = (0, import_styled_components88.default)(import_react_tabs4.Root)`
|
|
12601
|
-
display: flex;
|
|
12602
|
-
flex-direction: column;
|
|
12603
|
-
height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
|
|
12604
|
-
`;
|
|
12605
|
-
var Tabs = (0, import_react69.forwardRef)(
|
|
12606
|
-
({
|
|
12607
|
-
children,
|
|
12608
|
-
fullWidth = true,
|
|
12609
|
-
"aria-label": ariaLabel,
|
|
12610
|
-
defaultSelectedValue,
|
|
12611
|
-
selectedValue,
|
|
12612
|
-
onSelectedValueChange,
|
|
12613
|
-
stickyHeaders = true,
|
|
12614
|
-
...props
|
|
12615
|
-
}, ref) => {
|
|
12616
|
-
const tabItems = extractTabItems(children);
|
|
12617
|
-
const [internalSelectedValue, setInternalSelectedValue] = (0, import_react69.useState)(defaultSelectedValue);
|
|
12618
|
-
const modeProps = defaultSelectedValue !== void 0 ? {
|
|
12619
|
-
defaultValue: defaultSelectedValue,
|
|
12620
|
-
onValueChange: setInternalSelectedValue
|
|
12621
|
-
} : { value: selectedValue, onValueChange: onSelectedValueChange };
|
|
12622
|
-
const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
|
|
12623
|
-
return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
12624
|
-
StyledTabsRoot,
|
|
12625
|
-
{
|
|
12626
|
-
ref,
|
|
12627
|
-
$stickyHeaders: stickyHeaders,
|
|
12628
|
-
activationMode: "automatic",
|
|
12629
|
-
...props,
|
|
12630
|
-
...modeProps,
|
|
12631
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(SelectedItemStyleProvider, { children: [
|
|
12632
|
-
/* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
|
|
12633
|
-
TabList,
|
|
12634
|
-
{
|
|
12635
|
-
ariaLabel,
|
|
12636
|
-
fullWidth,
|
|
12637
|
-
children: [
|
|
12638
|
-
/* @__PURE__ */ (0, import_jsx_runtime268.jsx)(SelectedItemIndicator2, {}),
|
|
12639
|
-
tabItems.map((tab) => {
|
|
12640
|
-
const {
|
|
12641
|
-
value,
|
|
12642
|
-
disabled = false,
|
|
12643
|
-
icon,
|
|
12644
|
-
label,
|
|
12645
|
-
"aria-label": ariaLabelForTab
|
|
12646
|
-
} = tab.props;
|
|
12647
|
-
if ((0, import_type_guards51.isNil)(icon)) {
|
|
12648
|
-
return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
12649
|
-
TabItem,
|
|
12650
|
-
{
|
|
12651
|
-
disabled,
|
|
12652
|
-
label,
|
|
12653
|
-
value
|
|
12654
|
-
},
|
|
12655
|
-
value
|
|
12656
|
-
);
|
|
12657
|
-
}
|
|
12658
|
-
if ((0, import_type_guards51.isNotNil)(label)) {
|
|
12659
|
-
return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
12660
|
-
TabItem,
|
|
12661
|
-
{
|
|
12662
|
-
disabled,
|
|
12663
|
-
icon,
|
|
12664
|
-
label,
|
|
12665
|
-
value
|
|
12666
|
-
},
|
|
12667
|
-
value
|
|
12668
|
-
);
|
|
12669
|
-
}
|
|
12670
|
-
if ((0, import_type_guards51.isNotNil)(ariaLabelForTab)) {
|
|
12671
|
-
return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
12672
|
-
TabItem,
|
|
12673
|
-
{
|
|
12674
|
-
"aria-label": ariaLabelForTab,
|
|
12675
|
-
disabled,
|
|
12676
|
-
icon,
|
|
12677
|
-
value
|
|
12678
|
-
},
|
|
12679
|
-
value
|
|
12680
|
-
);
|
|
12681
|
-
}
|
|
12682
|
-
throw new Error("A `Tab` with an icon must have either label or aria-label");
|
|
12683
|
-
})
|
|
12684
|
-
]
|
|
12685
|
-
}
|
|
12686
|
-
),
|
|
12687
|
-
/* @__PURE__ */ (0, import_jsx_runtime268.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
12688
|
-
TabPanel,
|
|
12689
|
-
{
|
|
12690
|
-
value: tab.props.value,
|
|
12691
|
-
children: tab.props.children
|
|
12692
|
-
},
|
|
12693
|
-
tab.props.value
|
|
12694
|
-
)) })
|
|
12695
|
-
] }) })
|
|
12696
|
-
}
|
|
12697
|
-
) });
|
|
12698
|
-
}
|
|
12699
|
-
);
|
|
12700
|
-
Tabs.displayName = "Tabs";
|
|
12701
|
-
|
|
12702
|
-
// src/components/Tabs/Tab.tsx
|
|
12703
|
-
var import_react70 = require("react");
|
|
12704
|
-
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
12705
|
-
var Tab = (0, import_react70.forwardRef)(({ children }, ref) => {
|
|
12706
|
-
return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("div", { ref, children });
|
|
12707
|
-
});
|
|
12708
|
-
Tab.displayName = "Tab";
|
|
12585
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
12709
12586
|
|
|
12710
12587
|
// src/components/Tag/Tag.tsx
|
|
12711
|
-
var
|
|
12712
|
-
var
|
|
12588
|
+
var import_react69 = require("react");
|
|
12589
|
+
var import_styled_components87 = __toESM(require("styled-components"));
|
|
12713
12590
|
var import_type_guards52 = require("@wistia/type-guards");
|
|
12714
|
-
var
|
|
12715
|
-
var TagLabel =
|
|
12591
|
+
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
12592
|
+
var TagLabel = import_styled_components87.default.a`
|
|
12716
12593
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12717
12594
|
font-size: var(--wui-typography-label-4-size);
|
|
12718
12595
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -12747,14 +12624,14 @@ var TagLabel = import_styled_components89.default.a`
|
|
|
12747
12624
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
12748
12625
|
}
|
|
12749
12626
|
`;
|
|
12750
|
-
var TagDivider =
|
|
12627
|
+
var TagDivider = import_styled_components87.default.div`
|
|
12751
12628
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12752
12629
|
border-left: 1px solid var(--wui-color-border);
|
|
12753
12630
|
display: flex;
|
|
12754
12631
|
height: 14px;
|
|
12755
12632
|
width: 1px;
|
|
12756
12633
|
`;
|
|
12757
|
-
var StyledRemoveButton =
|
|
12634
|
+
var StyledRemoveButton = import_styled_components87.default.button`
|
|
12758
12635
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12759
12636
|
all: unset;
|
|
12760
12637
|
cursor: pointer;
|
|
@@ -12782,7 +12659,7 @@ var StyledRemoveButton = import_styled_components89.default.button`
|
|
|
12782
12659
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
12783
12660
|
}
|
|
12784
12661
|
`;
|
|
12785
|
-
var StyledTag =
|
|
12662
|
+
var StyledTag = import_styled_components87.default.div`
|
|
12786
12663
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12787
12664
|
align-items: center;
|
|
12788
12665
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -12803,40 +12680,40 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
12803
12680
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
12804
12681
|
);
|
|
12805
12682
|
}
|
|
12806
|
-
return /* @__PURE__ */ (0,
|
|
12807
|
-
/* @__PURE__ */ (0,
|
|
12808
|
-
/* @__PURE__ */ (0,
|
|
12683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(import_jsx_runtime269.Fragment, { children: [
|
|
12684
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
12685
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
|
|
12809
12686
|
StyledRemoveButton,
|
|
12810
12687
|
{
|
|
12811
12688
|
$colorScheme: colorScheme,
|
|
12812
12689
|
onClick: onClickRemove,
|
|
12813
12690
|
type: "button",
|
|
12814
12691
|
children: [
|
|
12815
|
-
/* @__PURE__ */ (0,
|
|
12692
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
12816
12693
|
Icon,
|
|
12817
12694
|
{
|
|
12818
12695
|
size: "sm",
|
|
12819
12696
|
type: "close"
|
|
12820
12697
|
}
|
|
12821
12698
|
),
|
|
12822
|
-
/* @__PURE__ */ (0,
|
|
12699
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
12823
12700
|
]
|
|
12824
12701
|
}
|
|
12825
12702
|
)
|
|
12826
12703
|
] });
|
|
12827
12704
|
};
|
|
12828
|
-
var Tag = (0,
|
|
12705
|
+
var Tag = (0, import_react69.forwardRef)(
|
|
12829
12706
|
({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
|
|
12830
12707
|
const hasIcon = (0, import_type_guards52.isNotNil)(icon);
|
|
12831
12708
|
const labelProps = (0, import_type_guards52.isNotNil)(href) && (0, import_type_guards52.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
12832
|
-
return /* @__PURE__ */ (0,
|
|
12709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
|
|
12833
12710
|
StyledTag,
|
|
12834
12711
|
{
|
|
12835
12712
|
ref,
|
|
12836
12713
|
$colorScheme: colorScheme,
|
|
12837
12714
|
...props,
|
|
12838
12715
|
children: [
|
|
12839
|
-
/* @__PURE__ */ (0,
|
|
12716
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
|
|
12840
12717
|
TagLabel,
|
|
12841
12718
|
{
|
|
12842
12719
|
...labelProps,
|
|
@@ -12847,7 +12724,7 @@ var Tag = (0, import_react71.forwardRef)(
|
|
|
12847
12724
|
]
|
|
12848
12725
|
}
|
|
12849
12726
|
),
|
|
12850
|
-
/* @__PURE__ */ (0,
|
|
12727
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
12851
12728
|
RemoveButton,
|
|
12852
12729
|
{
|
|
12853
12730
|
colorScheme,
|
|
@@ -12863,10 +12740,10 @@ var Tag = (0, import_react71.forwardRef)(
|
|
|
12863
12740
|
Tag.displayName = "Tag";
|
|
12864
12741
|
|
|
12865
12742
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
12866
|
-
var
|
|
12743
|
+
var import_styled_components88 = __toESM(require("styled-components"));
|
|
12867
12744
|
var import_type_guards53 = require("@wistia/type-guards");
|
|
12868
|
-
var
|
|
12869
|
-
var StyledThumbnailBadge =
|
|
12745
|
+
var import_jsx_runtime270 = require("react/jsx-runtime");
|
|
12746
|
+
var StyledThumbnailBadge = import_styled_components88.default.div`
|
|
12870
12747
|
align-items: center;
|
|
12871
12748
|
background-color: rgb(0 0 0 / 50%);
|
|
12872
12749
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -12891,23 +12768,23 @@ var StyledThumbnailBadge = import_styled_components90.default.div`
|
|
|
12891
12768
|
}
|
|
12892
12769
|
`;
|
|
12893
12770
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
12894
|
-
return /* @__PURE__ */ (0,
|
|
12771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(StyledThumbnailBadge, { ...props, children: [
|
|
12895
12772
|
(0, import_type_guards53.isNotNil)(icon) && icon,
|
|
12896
|
-
/* @__PURE__ */ (0,
|
|
12773
|
+
/* @__PURE__ */ (0, import_jsx_runtime270.jsx)("span", { children: label })
|
|
12897
12774
|
] });
|
|
12898
12775
|
};
|
|
12899
12776
|
ThumbnailBadge.displayName = "ThumbnailBadge";
|
|
12900
12777
|
|
|
12901
12778
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
12902
|
-
var
|
|
12903
|
-
var
|
|
12779
|
+
var import_react70 = require("react");
|
|
12780
|
+
var import_styled_components91 = __toESM(require("styled-components"));
|
|
12904
12781
|
var import_type_guards56 = require("@wistia/type-guards");
|
|
12905
12782
|
|
|
12906
12783
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
12907
12784
|
var import_type_guards54 = require("@wistia/type-guards");
|
|
12908
|
-
var
|
|
12785
|
+
var import_styled_components89 = require("styled-components");
|
|
12909
12786
|
var gradients = {
|
|
12910
|
-
defaultDarkOne:
|
|
12787
|
+
defaultDarkOne: import_styled_components89.css`
|
|
12911
12788
|
background-color: #222d66;
|
|
12912
12789
|
background-image:
|
|
12913
12790
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -12915,7 +12792,7 @@ var gradients = {
|
|
|
12915
12792
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
12916
12793
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
12917
12794
|
`,
|
|
12918
|
-
defaultDarkTwo:
|
|
12795
|
+
defaultDarkTwo: import_styled_components89.css`
|
|
12919
12796
|
background-color: #222d66;
|
|
12920
12797
|
background-image:
|
|
12921
12798
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -12923,7 +12800,7 @@ var gradients = {
|
|
|
12923
12800
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12924
12801
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12925
12802
|
`,
|
|
12926
|
-
defaultLightOne:
|
|
12803
|
+
defaultLightOne: import_styled_components89.css`
|
|
12927
12804
|
background-color: #ccd5ff;
|
|
12928
12805
|
background-image:
|
|
12929
12806
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -12931,13 +12808,13 @@ var gradients = {
|
|
|
12931
12808
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
12932
12809
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
12933
12810
|
`,
|
|
12934
|
-
defaultLightTwo:
|
|
12811
|
+
defaultLightTwo: import_styled_components89.css`
|
|
12935
12812
|
background-color: #ccd5ff;
|
|
12936
12813
|
background-image:
|
|
12937
12814
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
12938
12815
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
12939
12816
|
`,
|
|
12940
|
-
defaultMidOne:
|
|
12817
|
+
defaultMidOne: import_styled_components89.css`
|
|
12941
12818
|
background-color: #6b84ff;
|
|
12942
12819
|
background-image:
|
|
12943
12820
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -12945,13 +12822,13 @@ var gradients = {
|
|
|
12945
12822
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
12946
12823
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
12947
12824
|
`,
|
|
12948
|
-
defaultMidTwo:
|
|
12825
|
+
defaultMidTwo: import_styled_components89.css`
|
|
12949
12826
|
background-color: #6b84ff;
|
|
12950
12827
|
background-image:
|
|
12951
12828
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
12952
12829
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
12953
12830
|
`,
|
|
12954
|
-
green:
|
|
12831
|
+
green: import_styled_components89.css`
|
|
12955
12832
|
background-color: #fafffa;
|
|
12956
12833
|
background-image:
|
|
12957
12834
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -12959,7 +12836,7 @@ var gradients = {
|
|
|
12959
12836
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12960
12837
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12961
12838
|
`,
|
|
12962
|
-
greenWithPop:
|
|
12839
|
+
greenWithPop: import_styled_components89.css`
|
|
12963
12840
|
background-color: #fafffa;
|
|
12964
12841
|
background-image:
|
|
12965
12842
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -12967,7 +12844,7 @@ var gradients = {
|
|
|
12967
12844
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12968
12845
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12969
12846
|
`,
|
|
12970
|
-
pink:
|
|
12847
|
+
pink: import_styled_components89.css`
|
|
12971
12848
|
background-color: #fffff0;
|
|
12972
12849
|
background-image:
|
|
12973
12850
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -12975,7 +12852,7 @@ var gradients = {
|
|
|
12975
12852
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
12976
12853
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
12977
12854
|
`,
|
|
12978
|
-
pinkWithPop:
|
|
12855
|
+
pinkWithPop: import_styled_components89.css`
|
|
12979
12856
|
background-color: #fffff0;
|
|
12980
12857
|
background-image:
|
|
12981
12858
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -12983,7 +12860,7 @@ var gradients = {
|
|
|
12983
12860
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
12984
12861
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
12985
12862
|
`,
|
|
12986
|
-
playfulGradientOne:
|
|
12863
|
+
playfulGradientOne: import_styled_components89.css`
|
|
12987
12864
|
background-color: #f7f8ff;
|
|
12988
12865
|
background-image:
|
|
12989
12866
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -12991,7 +12868,7 @@ var gradients = {
|
|
|
12991
12868
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
12992
12869
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
12993
12870
|
`,
|
|
12994
|
-
playfulGradientTwo:
|
|
12871
|
+
playfulGradientTwo: import_styled_components89.css`
|
|
12995
12872
|
background-color: #f7f8ff;
|
|
12996
12873
|
background-image:
|
|
12997
12874
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -12999,13 +12876,13 @@ var gradients = {
|
|
|
12999
12876
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
13000
12877
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
13001
12878
|
`,
|
|
13002
|
-
purple:
|
|
12879
|
+
purple: import_styled_components89.css`
|
|
13003
12880
|
background-color: #f2caff;
|
|
13004
12881
|
background-image:
|
|
13005
12882
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
13006
12883
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
13007
12884
|
`,
|
|
13008
|
-
purpleWithPop:
|
|
12885
|
+
purpleWithPop: import_styled_components89.css`
|
|
13009
12886
|
background-color: #f2caff;
|
|
13010
12887
|
background-image:
|
|
13011
12888
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -13013,7 +12890,7 @@ var gradients = {
|
|
|
13013
12890
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
13014
12891
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
13015
12892
|
`,
|
|
13016
|
-
yellow:
|
|
12893
|
+
yellow: import_styled_components89.css`
|
|
13017
12894
|
background-color: #fffff0;
|
|
13018
12895
|
background-image:
|
|
13019
12896
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -13021,7 +12898,7 @@ var gradients = {
|
|
|
13021
12898
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
13022
12899
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
13023
12900
|
`,
|
|
13024
|
-
yellowWithPop:
|
|
12901
|
+
yellowWithPop: import_styled_components89.css`
|
|
13025
12902
|
background-color: #fffff0;
|
|
13026
12903
|
background-image:
|
|
13027
12904
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -13036,10 +12913,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
13036
12913
|
};
|
|
13037
12914
|
|
|
13038
12915
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
13039
|
-
var
|
|
12916
|
+
var import_styled_components90 = __toESM(require("styled-components"));
|
|
13040
12917
|
var import_type_guards55 = require("@wistia/type-guards");
|
|
13041
|
-
var
|
|
13042
|
-
var ScrubLine =
|
|
12918
|
+
var import_jsx_runtime271 = require("react/jsx-runtime");
|
|
12919
|
+
var ScrubLine = import_styled_components90.default.div`
|
|
13043
12920
|
position: absolute;
|
|
13044
12921
|
top: 0;
|
|
13045
12922
|
height: 100%;
|
|
@@ -13141,14 +13018,14 @@ var ThumbnailStoryboardViewer = ({
|
|
|
13141
13018
|
backgroundPosition,
|
|
13142
13019
|
backgroundSize
|
|
13143
13020
|
};
|
|
13144
|
-
return /* @__PURE__ */ (0,
|
|
13021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
|
|
13145
13022
|
"div",
|
|
13146
13023
|
{
|
|
13147
13024
|
...props,
|
|
13148
13025
|
style: viewerStyles,
|
|
13149
13026
|
children: [
|
|
13150
|
-
/* @__PURE__ */ (0,
|
|
13151
|
-
showScrubLine ? /* @__PURE__ */ (0,
|
|
13027
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { style: storyboardStyles }),
|
|
13028
|
+
showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
|
|
13152
13029
|
ScrubLine,
|
|
13153
13030
|
{
|
|
13154
13031
|
style: {
|
|
@@ -13162,20 +13039,20 @@ var ThumbnailStoryboardViewer = ({
|
|
|
13162
13039
|
};
|
|
13163
13040
|
|
|
13164
13041
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
13165
|
-
var
|
|
13166
|
-
var WideThumbnailImage =
|
|
13042
|
+
var import_jsx_runtime272 = require("react/jsx-runtime");
|
|
13043
|
+
var WideThumbnailImage = import_styled_components91.default.img`
|
|
13167
13044
|
height: 100%;
|
|
13168
13045
|
object-fit: cover;
|
|
13169
13046
|
width: 100%;
|
|
13170
13047
|
`;
|
|
13171
|
-
var SquareThumbnailImage =
|
|
13048
|
+
var SquareThumbnailImage = import_styled_components91.default.img`
|
|
13172
13049
|
backdrop-filter: blur(8px);
|
|
13173
13050
|
object-fit: contain;
|
|
13174
13051
|
width: 100%;
|
|
13175
13052
|
`;
|
|
13176
13053
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
13177
13054
|
if (thumbnailImageType === "wide") {
|
|
13178
|
-
return /* @__PURE__ */ (0,
|
|
13055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
|
|
13179
13056
|
WideThumbnailImage,
|
|
13180
13057
|
{
|
|
13181
13058
|
alt: "",
|
|
@@ -13184,7 +13061,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
13184
13061
|
}
|
|
13185
13062
|
);
|
|
13186
13063
|
}
|
|
13187
|
-
return /* @__PURE__ */ (0,
|
|
13064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
|
|
13188
13065
|
SquareThumbnailImage,
|
|
13189
13066
|
{
|
|
13190
13067
|
alt: "",
|
|
@@ -13193,7 +13070,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
13193
13070
|
}
|
|
13194
13071
|
);
|
|
13195
13072
|
};
|
|
13196
|
-
var StyledThumbnail =
|
|
13073
|
+
var StyledThumbnail = import_styled_components91.default.div`
|
|
13197
13074
|
background-image: ${({ $backgroundUrl }) => (0, import_type_guards56.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
13198
13075
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
13199
13076
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -13222,7 +13099,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
|
|
|
13222
13099
|
left: relativeLeft
|
|
13223
13100
|
};
|
|
13224
13101
|
};
|
|
13225
|
-
var Thumbnail = (0,
|
|
13102
|
+
var Thumbnail = (0, import_react70.forwardRef)(
|
|
13226
13103
|
({
|
|
13227
13104
|
gradientBackground = "defaultMidOne",
|
|
13228
13105
|
thumbnailImageType = "square",
|
|
@@ -13233,17 +13110,17 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13233
13110
|
height,
|
|
13234
13111
|
...props
|
|
13235
13112
|
}, ref) => {
|
|
13236
|
-
const [percent, setPercent] = (0,
|
|
13237
|
-
const [isMouseOver, setIsMouseOver] = (0,
|
|
13238
|
-
const [isStoryboardReady, setIsStoryboardReady] = (0,
|
|
13239
|
-
const storyboardElementRef = (0,
|
|
13240
|
-
const [cursorPosition, setCursorPosition] = (0,
|
|
13241
|
-
const backgroundUrl = (0,
|
|
13113
|
+
const [percent, setPercent] = (0, import_react70.useState)(0);
|
|
13114
|
+
const [isMouseOver, setIsMouseOver] = (0, import_react70.useState)(false);
|
|
13115
|
+
const [isStoryboardReady, setIsStoryboardReady] = (0, import_react70.useState)(false);
|
|
13116
|
+
const storyboardElementRef = (0, import_react70.useRef)(null);
|
|
13117
|
+
const [cursorPosition, setCursorPosition] = (0, import_react70.useState)(null);
|
|
13118
|
+
const backgroundUrl = (0, import_react70.useMemo)(
|
|
13242
13119
|
() => thumbnailImageType === "square" && (0, import_type_guards56.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
|
|
13243
13120
|
[thumbnailImageType, thumbnailUrl]
|
|
13244
13121
|
);
|
|
13245
13122
|
const isScrubbable = (0, import_type_guards56.isNotNil)(storyboard);
|
|
13246
|
-
const trackStoryboardLoadStatus = (0,
|
|
13123
|
+
const trackStoryboardLoadStatus = (0, import_react70.useCallback)(() => {
|
|
13247
13124
|
if (storyboardElementRef.current || !storyboard) {
|
|
13248
13125
|
return storyboardElementRef.current;
|
|
13249
13126
|
}
|
|
@@ -13253,7 +13130,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13253
13130
|
storyboardElementRef.current = asset;
|
|
13254
13131
|
return storyboardElementRef.current;
|
|
13255
13132
|
}, [storyboard]);
|
|
13256
|
-
const handleMouseMove = (0,
|
|
13133
|
+
const handleMouseMove = (0, import_react70.useCallback)(
|
|
13257
13134
|
(mouseEvent) => {
|
|
13258
13135
|
if (!isScrubbable) return;
|
|
13259
13136
|
const elem = mouseEvent.currentTarget;
|
|
@@ -13266,15 +13143,15 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13266
13143
|
},
|
|
13267
13144
|
[isScrubbable, trackStoryboardLoadStatus]
|
|
13268
13145
|
);
|
|
13269
|
-
const handleMouseOut = (0,
|
|
13146
|
+
const handleMouseOut = (0, import_react70.useCallback)(() => {
|
|
13270
13147
|
if (!isScrubbable) return;
|
|
13271
13148
|
setIsMouseOver(false);
|
|
13272
13149
|
setCursorPosition(null);
|
|
13273
13150
|
}, [isScrubbable]);
|
|
13274
|
-
const shouldRenderStoryboard = (0,
|
|
13151
|
+
const shouldRenderStoryboard = (0, import_react70.useMemo)(() => {
|
|
13275
13152
|
return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
|
|
13276
13153
|
}, [isScrubbable, isMouseOver, isStoryboardReady]);
|
|
13277
|
-
const renderStoryboard = (0,
|
|
13154
|
+
const renderStoryboard = (0, import_react70.useCallback)(() => {
|
|
13278
13155
|
if (!storyboard || (0, import_type_guards56.isUndefined)(height) || (0, import_type_guards56.isEmptyString)(height)) return null;
|
|
13279
13156
|
const {
|
|
13280
13157
|
url,
|
|
@@ -13287,7 +13164,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13287
13164
|
} = storyboard;
|
|
13288
13165
|
const targetWidth = (0, import_type_guards56.isString)(width) ? parseInt(width, 10) : Number(width);
|
|
13289
13166
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
13290
|
-
return /* @__PURE__ */ (0,
|
|
13167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
|
|
13291
13168
|
ThumbnailStoryboardViewer,
|
|
13292
13169
|
{
|
|
13293
13170
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -13307,7 +13184,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13307
13184
|
if (shouldRenderStoryboard) {
|
|
13308
13185
|
thumbnailContent = renderStoryboard();
|
|
13309
13186
|
} else if ((0, import_type_guards56.isNotNil)(thumbnailUrl)) {
|
|
13310
|
-
thumbnailContent = /* @__PURE__ */ (0,
|
|
13187
|
+
thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
|
|
13311
13188
|
ThumbnailImage,
|
|
13312
13189
|
{
|
|
13313
13190
|
thumbnailImageType,
|
|
@@ -13317,7 +13194,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13317
13194
|
} else {
|
|
13318
13195
|
thumbnailContent = null;
|
|
13319
13196
|
}
|
|
13320
|
-
return /* @__PURE__ */ (0,
|
|
13197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
|
|
13321
13198
|
StyledThumbnail,
|
|
13322
13199
|
{
|
|
13323
13200
|
ref,
|
|
@@ -13341,14 +13218,14 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13341
13218
|
Thumbnail.displayName = "Thumbnail";
|
|
13342
13219
|
|
|
13343
13220
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
13344
|
-
var
|
|
13345
|
-
var
|
|
13221
|
+
var import_react71 = __toESM(require("react"));
|
|
13222
|
+
var import_styled_components92 = __toESM(require("styled-components"));
|
|
13346
13223
|
var import_type_guards57 = require("@wistia/type-guards");
|
|
13347
|
-
var
|
|
13224
|
+
var import_jsx_runtime273 = (
|
|
13348
13225
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
13349
13226
|
require("react/jsx-runtime")
|
|
13350
13227
|
);
|
|
13351
|
-
var StyledThumbnailCollage =
|
|
13228
|
+
var StyledThumbnailCollage = import_styled_components92.default.div`
|
|
13352
13229
|
display: grid;
|
|
13353
13230
|
gap: var(--wui-space-01);
|
|
13354
13231
|
width: 100%;
|
|
@@ -13421,15 +13298,15 @@ var ThumbnailCollage = ({
|
|
|
13421
13298
|
gradientBackground = "defaultMidOne",
|
|
13422
13299
|
...props
|
|
13423
13300
|
}) => {
|
|
13424
|
-
const thumbnailArray =
|
|
13301
|
+
const thumbnailArray = import_react71.default.Children.toArray(children);
|
|
13425
13302
|
const truncatedThumbnails = thumbnailArray.slice(0, 3);
|
|
13426
13303
|
const thumbnails = (0, import_type_guards57.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
|
|
13427
|
-
return
|
|
13304
|
+
return import_react71.default.cloneElement(child, {
|
|
13428
13305
|
...child.props,
|
|
13429
13306
|
children: void 0
|
|
13430
13307
|
});
|
|
13431
13308
|
}) : [
|
|
13432
|
-
/* @__PURE__ */ (0,
|
|
13309
|
+
/* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
|
|
13433
13310
|
Thumbnail,
|
|
13434
13311
|
{
|
|
13435
13312
|
gradientBackground,
|
|
@@ -13438,7 +13315,7 @@ var ThumbnailCollage = ({
|
|
|
13438
13315
|
"fallback"
|
|
13439
13316
|
)
|
|
13440
13317
|
];
|
|
13441
|
-
return /* @__PURE__ */ (0,
|
|
13318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
|
|
13442
13319
|
StyledThumbnailCollage,
|
|
13443
13320
|
{
|
|
13444
13321
|
$gradientBackground: gradientBackground,
|
|
@@ -13450,26 +13327,26 @@ var ThumbnailCollage = ({
|
|
|
13450
13327
|
};
|
|
13451
13328
|
|
|
13452
13329
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
13453
|
-
var
|
|
13330
|
+
var import_styled_components93 = __toESM(require("styled-components"));
|
|
13454
13331
|
var import_type_guards58 = require("@wistia/type-guards");
|
|
13455
|
-
var
|
|
13332
|
+
var import_jsx_runtime274 = require("react/jsx-runtime");
|
|
13456
13333
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
13457
13334
|
if (iconOnly) {
|
|
13458
|
-
return /* @__PURE__ */ (0,
|
|
13335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
|
|
13459
13336
|
"g",
|
|
13460
13337
|
{
|
|
13461
13338
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
13462
13339
|
fill: brandmarkColor,
|
|
13463
|
-
children: /* @__PURE__ */ (0,
|
|
13340
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime274.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" })
|
|
13464
13341
|
}
|
|
13465
13342
|
);
|
|
13466
13343
|
}
|
|
13467
|
-
return /* @__PURE__ */ (0,
|
|
13344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
|
|
13468
13345
|
"g",
|
|
13469
13346
|
{
|
|
13470
13347
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
13471
13348
|
fill: brandmarkColor,
|
|
13472
|
-
children: /* @__PURE__ */ (0,
|
|
13349
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime274.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" })
|
|
13473
13350
|
}
|
|
13474
13351
|
);
|
|
13475
13352
|
};
|
|
@@ -13477,12 +13354,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
13477
13354
|
if (iconOnly) {
|
|
13478
13355
|
return null;
|
|
13479
13356
|
}
|
|
13480
|
-
return /* @__PURE__ */ (0,
|
|
13357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
|
|
13481
13358
|
"g",
|
|
13482
13359
|
{
|
|
13483
13360
|
"data-testid": "ui-wistia-logo-logotype",
|
|
13484
13361
|
fill: logotypeColor,
|
|
13485
|
-
children: /* @__PURE__ */ (0,
|
|
13362
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime274.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" })
|
|
13486
13363
|
}
|
|
13487
13364
|
);
|
|
13488
13365
|
};
|
|
@@ -13492,7 +13369,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
13492
13369
|
}
|
|
13493
13370
|
return "0 0 144 31.47";
|
|
13494
13371
|
};
|
|
13495
|
-
var WistiaLogoComponent =
|
|
13372
|
+
var WistiaLogoComponent = import_styled_components93.default.svg`
|
|
13496
13373
|
height: ${({ height }) => `${height}px`};
|
|
13497
13374
|
|
|
13498
13375
|
/* ensure it will always fit on mobile */
|
|
@@ -13508,12 +13385,12 @@ var WistiaLogoComponent = import_styled_components95.default.svg`
|
|
|
13508
13385
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
13509
13386
|
if ($opticallyCentered) {
|
|
13510
13387
|
if ($iconOnly) {
|
|
13511
|
-
return
|
|
13388
|
+
return import_styled_components93.css`
|
|
13512
13389
|
aspect-ratio: 1;
|
|
13513
13390
|
padding: 11.85% 3.12% 13.91%;
|
|
13514
13391
|
`;
|
|
13515
13392
|
}
|
|
13516
|
-
return
|
|
13393
|
+
return import_styled_components93.css`
|
|
13517
13394
|
aspect-ratio: 127 / 32;
|
|
13518
13395
|
`;
|
|
13519
13396
|
}
|
|
@@ -13550,7 +13427,7 @@ var WistiaLogo = ({
|
|
|
13550
13427
|
};
|
|
13551
13428
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
13552
13429
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
13553
|
-
const Logo = /* @__PURE__ */ (0,
|
|
13430
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
|
|
13554
13431
|
WistiaLogoComponent,
|
|
13555
13432
|
{
|
|
13556
13433
|
$hoverColor: hoverColor,
|
|
@@ -13563,39 +13440,39 @@ var WistiaLogo = ({
|
|
|
13563
13440
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13564
13441
|
...props,
|
|
13565
13442
|
children: [
|
|
13566
|
-
/* @__PURE__ */ (0,
|
|
13567
|
-
(0, import_type_guards58.isNotNil)(description) ? /* @__PURE__ */ (0,
|
|
13443
|
+
/* @__PURE__ */ (0, import_jsx_runtime274.jsx)("title", { children: title }),
|
|
13444
|
+
(0, import_type_guards58.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("desc", { children: description }) : null,
|
|
13568
13445
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
13569
13446
|
renderLogotype(logotypeColor, iconOnly)
|
|
13570
13447
|
]
|
|
13571
13448
|
}
|
|
13572
13449
|
);
|
|
13573
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
13450
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("a", { href, children: Logo }) : Logo;
|
|
13574
13451
|
};
|
|
13575
13452
|
WistiaLogo.displayName = "WistiaLogo";
|
|
13576
13453
|
|
|
13577
13454
|
// src/components/List/List.tsx
|
|
13578
13455
|
var import_type_guards60 = require("@wistia/type-guards");
|
|
13579
|
-
var
|
|
13456
|
+
var import_styled_components95 = __toESM(require("styled-components"));
|
|
13580
13457
|
|
|
13581
13458
|
// src/components/List/ListItem.tsx
|
|
13582
|
-
var
|
|
13459
|
+
var import_styled_components94 = __toESM(require("styled-components"));
|
|
13583
13460
|
var import_type_guards59 = require("@wistia/type-guards");
|
|
13584
|
-
var
|
|
13585
|
-
var ListItemComponent =
|
|
13461
|
+
var import_jsx_runtime275 = require("react/jsx-runtime");
|
|
13462
|
+
var ListItemComponent = import_styled_components94.default.li`
|
|
13586
13463
|
margin-bottom: var(--wui-space-02);
|
|
13587
13464
|
`;
|
|
13588
13465
|
var ListItem = ({ children }) => {
|
|
13589
13466
|
if ((0, import_type_guards59.isNil)(children)) {
|
|
13590
13467
|
return null;
|
|
13591
13468
|
}
|
|
13592
|
-
return /* @__PURE__ */ (0,
|
|
13469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(ListItemComponent, { children });
|
|
13593
13470
|
};
|
|
13594
13471
|
ListItem.displayName = "ListItem";
|
|
13595
13472
|
|
|
13596
13473
|
// src/components/List/List.tsx
|
|
13597
|
-
var
|
|
13598
|
-
var spacesStyle =
|
|
13474
|
+
var import_jsx_runtime276 = require("react/jsx-runtime");
|
|
13475
|
+
var spacesStyle = import_styled_components95.css`
|
|
13599
13476
|
overflow: hidden;
|
|
13600
13477
|
padding-left: 0;
|
|
13601
13478
|
vertical-align: bottom;
|
|
@@ -13617,7 +13494,7 @@ var spacesStyle = import_styled_components97.css`
|
|
|
13617
13494
|
}
|
|
13618
13495
|
}
|
|
13619
13496
|
`;
|
|
13620
|
-
var commasStyle =
|
|
13497
|
+
var commasStyle = import_styled_components95.css`
|
|
13621
13498
|
${spacesStyle};
|
|
13622
13499
|
|
|
13623
13500
|
li {
|
|
@@ -13627,7 +13504,7 @@ var commasStyle = import_styled_components97.css`
|
|
|
13627
13504
|
}
|
|
13628
13505
|
}
|
|
13629
13506
|
`;
|
|
13630
|
-
var slashesStyle =
|
|
13507
|
+
var slashesStyle = import_styled_components95.css`
|
|
13631
13508
|
${spacesStyle};
|
|
13632
13509
|
|
|
13633
13510
|
li {
|
|
@@ -13638,7 +13515,7 @@ var slashesStyle = import_styled_components97.css`
|
|
|
13638
13515
|
}
|
|
13639
13516
|
}
|
|
13640
13517
|
`;
|
|
13641
|
-
var breadcrumbsStyle =
|
|
13518
|
+
var breadcrumbsStyle = import_styled_components95.css`
|
|
13642
13519
|
${spacesStyle};
|
|
13643
13520
|
|
|
13644
13521
|
li {
|
|
@@ -13649,11 +13526,11 @@ var breadcrumbsStyle = import_styled_components97.css`
|
|
|
13649
13526
|
}
|
|
13650
13527
|
}
|
|
13651
13528
|
`;
|
|
13652
|
-
var unbulletedStyle =
|
|
13529
|
+
var unbulletedStyle = import_styled_components95.css`
|
|
13653
13530
|
list-style: none;
|
|
13654
13531
|
padding-left: 0;
|
|
13655
13532
|
`;
|
|
13656
|
-
var ListComponent =
|
|
13533
|
+
var ListComponent = import_styled_components95.default.ul`
|
|
13657
13534
|
list-style-position: outside;
|
|
13658
13535
|
margin: 0 0 var(--wui-space-01);
|
|
13659
13536
|
padding: 0 0 0 var(--wui-space-04);
|
|
@@ -13680,7 +13557,7 @@ var ListComponent = import_styled_components97.default.ul`
|
|
|
13680
13557
|
`;
|
|
13681
13558
|
var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
13682
13559
|
const elementType = variant === "ordered" ? "ol" : "ul";
|
|
13683
|
-
return /* @__PURE__ */ (0,
|
|
13560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
|
|
13684
13561
|
ListComponent,
|
|
13685
13562
|
{
|
|
13686
13563
|
as: elementType,
|
|
@@ -13697,7 +13574,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
13697
13574
|
const nextItem = listItems[i + 1];
|
|
13698
13575
|
const key = `item-${itemCount += 1}`;
|
|
13699
13576
|
if (Array.isArray(nextItem)) {
|
|
13700
|
-
return /* @__PURE__ */ (0,
|
|
13577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(ListItem, { children: [
|
|
13701
13578
|
item,
|
|
13702
13579
|
renderListFromArray(nextItem, variant, otherProps)
|
|
13703
13580
|
] }, key);
|
|
@@ -13705,7 +13582,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
13705
13582
|
if (Array.isArray(item)) {
|
|
13706
13583
|
return null;
|
|
13707
13584
|
}
|
|
13708
|
-
return /* @__PURE__ */ (0,
|
|
13585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(ListItem, { children: item }, key);
|
|
13709
13586
|
});
|
|
13710
13587
|
return renderListComponent(items, variant, otherProps);
|
|
13711
13588
|
};
|
|
@@ -13797,7 +13674,6 @@ List.displayName = "List";
|
|
|
13797
13674
|
Stack,
|
|
13798
13675
|
SubMenu,
|
|
13799
13676
|
Switch,
|
|
13800
|
-
Tab,
|
|
13801
13677
|
Table,
|
|
13802
13678
|
TableBody,
|
|
13803
13679
|
TableCell,
|
|
@@ -13805,6 +13681,9 @@ List.displayName = "List";
|
|
|
13805
13681
|
TableHead,
|
|
13806
13682
|
TableRow,
|
|
13807
13683
|
Tabs,
|
|
13684
|
+
TabsContent,
|
|
13685
|
+
TabsList,
|
|
13686
|
+
TabsTrigger,
|
|
13808
13687
|
Tag,
|
|
13809
13688
|
Text,
|
|
13810
13689
|
Thumbnail,
|