@wistia/ui 0.9.7 → 0.10.0-beta.26b4bee5.4f64bde
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.
|
|
3
|
+
* @license @wistia/ui v0.10.0-beta.26b4bee5.4f64bde
|
|
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,
|
|
@@ -11895,7 +11897,7 @@ var segmentedControlItemStyles = import_styled_components73.css`
|
|
|
11895
11897
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
11896
11898
|
}
|
|
11897
11899
|
|
|
11898
|
-
&:hover:not([data-state='on'], [data-state='active']) {
|
|
11900
|
+
&:hover:not([data-state='on'], [data-state='active'], [aria-selected='true']) {
|
|
11899
11901
|
background-color: var(--wui-color-bg-surface-secondary-hover);
|
|
11900
11902
|
}
|
|
11901
11903
|
|
|
@@ -12454,64 +12456,8 @@ var TableRow = ({ children, ...props }) => {
|
|
|
12454
12456
|
};
|
|
12455
12457
|
|
|
12456
12458
|
// src/components/Tabs/Tabs.tsx
|
|
12457
|
-
var import_react69 = require("react");
|
|
12458
|
-
var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
12459
|
-
var import_type_guards51 = require("@wistia/type-guards");
|
|
12460
|
-
var import_styled_components88 = __toESM(require("styled-components"));
|
|
12461
|
-
|
|
12462
|
-
// src/components/Tabs/TabPanel.tsx
|
|
12463
|
-
var import_styled_components84 = __toESM(require("styled-components"));
|
|
12464
12459
|
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
12465
|
-
var import_jsx_runtime266 = require("react/jsx-runtime");
|
|
12466
|
-
var StyledTabPanel = (0, import_styled_components84.default)(import_react_tabs.Content)`
|
|
12467
|
-
display: flex;
|
|
12468
|
-
flex-direction: column;
|
|
12469
|
-
`;
|
|
12470
|
-
var TabPanel = ({ children, value, ...props }) => {
|
|
12471
|
-
return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
12472
|
-
StyledTabPanel,
|
|
12473
|
-
{
|
|
12474
|
-
value,
|
|
12475
|
-
...props,
|
|
12476
|
-
children
|
|
12477
|
-
}
|
|
12478
|
-
);
|
|
12479
|
-
};
|
|
12480
|
-
TabPanel.displayName = "TabPanel";
|
|
12481
|
-
|
|
12482
|
-
// src/components/Tabs/TabList.tsx
|
|
12483
|
-
var import_styled_components85 = __toESM(require("styled-components"));
|
|
12484
|
-
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
12485
|
-
var import_jsx_runtime267 = require("react/jsx-runtime");
|
|
12486
|
-
var StyledTabList = (0, import_styled_components85.default)(import_react_tabs2.List)`
|
|
12487
|
-
${segmentedControlStyles}
|
|
12488
|
-
|
|
12489
|
-
margin-bottom: var(--wui-space-04);
|
|
12490
|
-
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
12491
|
-
align-self: ${({ $fullWidth }) => $fullWidth ? "auto" : "flex-start"};
|
|
12492
|
-
`;
|
|
12493
|
-
var TabList = ({
|
|
12494
|
-
children,
|
|
12495
|
-
fullWidth,
|
|
12496
|
-
ariaLabel,
|
|
12497
|
-
...props
|
|
12498
|
-
}) => {
|
|
12499
|
-
return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
12500
|
-
StyledTabList,
|
|
12501
|
-
{
|
|
12502
|
-
$fullWidth: fullWidth,
|
|
12503
|
-
"aria-label": ariaLabel,
|
|
12504
|
-
...props,
|
|
12505
|
-
children
|
|
12506
|
-
}
|
|
12507
|
-
);
|
|
12508
|
-
};
|
|
12509
|
-
TabList.displayName = "TabList";
|
|
12510
|
-
|
|
12511
|
-
// src/components/Tabs/TabItem.tsx
|
|
12512
12460
|
var import_react67 = require("react");
|
|
12513
|
-
var import_styled_components86 = __toESM(require("styled-components"));
|
|
12514
|
-
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
12515
12461
|
var import_type_guards50 = require("@wistia/type-guards");
|
|
12516
12462
|
|
|
12517
12463
|
// src/components/Tabs/useTabsValue.tsx
|
|
@@ -12526,22 +12472,114 @@ var useTabsValue = () => {
|
|
|
12526
12472
|
return context;
|
|
12527
12473
|
};
|
|
12528
12474
|
|
|
12529
|
-
// src/components/Tabs/
|
|
12475
|
+
// src/components/Tabs/Tabs.tsx
|
|
12476
|
+
var import_jsx_runtime266 = require("react/jsx-runtime");
|
|
12477
|
+
var Tabs = ({
|
|
12478
|
+
children,
|
|
12479
|
+
value: valueProp,
|
|
12480
|
+
onValueChange: onValueChangeProp,
|
|
12481
|
+
defaultValue,
|
|
12482
|
+
...props
|
|
12483
|
+
}) => {
|
|
12484
|
+
const [value, setValue] = (0, import_react67.useState)(valueProp ?? defaultValue);
|
|
12485
|
+
const onValueChange = (0, import_react67.useCallback)(
|
|
12486
|
+
(newValue) => {
|
|
12487
|
+
setValue(newValue);
|
|
12488
|
+
if (onValueChangeProp) {
|
|
12489
|
+
onValueChangeProp(newValue);
|
|
12490
|
+
}
|
|
12491
|
+
},
|
|
12492
|
+
[onValueChangeProp]
|
|
12493
|
+
);
|
|
12494
|
+
const rootProps = {
|
|
12495
|
+
...props,
|
|
12496
|
+
onValueChange
|
|
12497
|
+
};
|
|
12498
|
+
if ((0, import_type_guards50.isNotNil)(value)) {
|
|
12499
|
+
rootProps.value = value;
|
|
12500
|
+
}
|
|
12501
|
+
if ((0, import_type_guards50.isNotNil)(defaultValue)) {
|
|
12502
|
+
rootProps.defaultValue = defaultValue;
|
|
12503
|
+
}
|
|
12504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(SelectedItemStyleProvider, { children }) }) });
|
|
12505
|
+
};
|
|
12506
|
+
Tabs.displayName = "Tabs";
|
|
12507
|
+
|
|
12508
|
+
// src/components/Tabs/TabsContent.tsx
|
|
12509
|
+
var import_react_tabs2 = require("@radix-ui/react-tabs");
|
|
12510
|
+
var import_jsx_runtime267 = require("react/jsx-runtime");
|
|
12511
|
+
var TabsContent = ({ children, value }) => {
|
|
12512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(import_react_tabs2.Content, { value, children });
|
|
12513
|
+
};
|
|
12514
|
+
TabsContent.displayName = "TabsContent";
|
|
12515
|
+
|
|
12516
|
+
// src/components/Tabs/TabsList.tsx
|
|
12517
|
+
var import_react_tabs3 = require("@radix-ui/react-tabs");
|
|
12518
|
+
var import_styled_components85 = __toESM(require("styled-components"));
|
|
12519
|
+
|
|
12520
|
+
// src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
|
|
12521
|
+
var import_styled_components84 = __toESM(require("styled-components"));
|
|
12522
|
+
var TabsSelectedItemIndicatorDiv = (0, import_styled_components84.default)(SelectedItemIndicatorDiv)`
|
|
12523
|
+
&:has(~ button[role='tab']:focus-visible) {
|
|
12524
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
12525
|
+
}
|
|
12526
|
+
`;
|
|
12527
|
+
|
|
12528
|
+
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
12530
12529
|
var import_jsx_runtime268 = require("react/jsx-runtime");
|
|
12531
|
-
var
|
|
12530
|
+
var SelectedTabIndicator = () => {
|
|
12531
|
+
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
12532
|
+
const selectedValue = useTabsValue();
|
|
12533
|
+
if (selectedValue == null) {
|
|
12534
|
+
return null;
|
|
12535
|
+
}
|
|
12536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
|
|
12537
|
+
};
|
|
12538
|
+
|
|
12539
|
+
// src/components/Tabs/TabsList.tsx
|
|
12540
|
+
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
12541
|
+
var StyledRadixTabsList = (0, import_styled_components85.default)(import_react_tabs3.List)`
|
|
12542
|
+
${segmentedControlStyles}
|
|
12543
|
+
`;
|
|
12544
|
+
var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
12545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
|
|
12546
|
+
StyledRadixTabsList,
|
|
12547
|
+
{
|
|
12548
|
+
$fullWidth: fullWidth,
|
|
12549
|
+
"aria-label": props["aria-label"],
|
|
12550
|
+
children: [
|
|
12551
|
+
/* @__PURE__ */ (0, import_jsx_runtime269.jsx)(SelectedTabIndicator, {}),
|
|
12552
|
+
children
|
|
12553
|
+
]
|
|
12554
|
+
}
|
|
12555
|
+
);
|
|
12556
|
+
};
|
|
12557
|
+
TabsList.displayName = "TabsList";
|
|
12558
|
+
|
|
12559
|
+
// src/components/Tabs/TabsTrigger.tsx
|
|
12560
|
+
var import_react68 = require("react");
|
|
12561
|
+
var import_type_guards51 = require("@wistia/type-guards");
|
|
12562
|
+
|
|
12563
|
+
// src/components/Tabs/StyledRadixTabsTrigger.tsx
|
|
12564
|
+
var import_styled_components86 = __toESM(require("styled-components"));
|
|
12565
|
+
var import_react_tabs4 = require("@radix-ui/react-tabs");
|
|
12566
|
+
var StyledRadixTabsTrigger = (0, import_styled_components86.default)(import_react_tabs4.Trigger)`
|
|
12532
12567
|
${segmentedControlItemStyles}
|
|
12533
12568
|
|
|
12534
12569
|
&:focus-visible {
|
|
12535
12570
|
outline: none;
|
|
12536
12571
|
}
|
|
12537
12572
|
`;
|
|
12538
|
-
|
|
12539
|
-
|
|
12573
|
+
|
|
12574
|
+
// src/components/Tabs/TabsTrigger.tsx
|
|
12575
|
+
var import_jsx_runtime270 = require("react/jsx-runtime");
|
|
12576
|
+
var TabsTrigger = (0, import_react68.forwardRef)(
|
|
12577
|
+
({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
|
|
12540
12578
|
const selectedValue = useTabsValue();
|
|
12541
12579
|
const { setSelectedItemMeasurements } = useSelectedItemStyle();
|
|
12542
|
-
const buttonRef = (0,
|
|
12580
|
+
const buttonRef = (0, import_react68.useRef)(null);
|
|
12543
12581
|
const combinedRef = mergeRefs([buttonRef, forwardedRef]);
|
|
12544
|
-
(0,
|
|
12582
|
+
(0, import_react68.useEffect)(() => {
|
|
12545
12583
|
const buttonElem = buttonRef.current;
|
|
12546
12584
|
if (!buttonElem) {
|
|
12547
12585
|
return void 0;
|
|
@@ -12566,12 +12604,13 @@ var TabItem = (0, import_react67.forwardRef)(
|
|
|
12566
12604
|
resizeObserver.disconnect();
|
|
12567
12605
|
};
|
|
12568
12606
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
12569
|
-
return /* @__PURE__ */ (0,
|
|
12570
|
-
|
|
12607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
|
|
12608
|
+
StyledRadixTabsTrigger,
|
|
12571
12609
|
{
|
|
12610
|
+
...otherProps,
|
|
12572
12611
|
ref: combinedRef,
|
|
12573
|
-
$hasLabel: (0,
|
|
12574
|
-
"aria-label": (0,
|
|
12612
|
+
$hasLabel: (0, import_type_guards51.isNotNil)(label),
|
|
12613
|
+
"aria-label": (0, import_type_guards51.isNotNil)(label) ? void 0 : ariaLabel,
|
|
12575
12614
|
disabled,
|
|
12576
12615
|
value,
|
|
12577
12616
|
children: [
|
|
@@ -12582,176 +12621,14 @@ var TabItem = (0, import_react67.forwardRef)(
|
|
|
12582
12621
|
);
|
|
12583
12622
|
}
|
|
12584
12623
|
);
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
// src/components/Tabs/extractTabItems.ts
|
|
12588
|
-
var import_react68 = require("react");
|
|
12589
|
-
var extractTabItems = (children) => {
|
|
12590
|
-
const tabItems = [];
|
|
12591
|
-
import_react68.Children.forEach(children, (child) => {
|
|
12592
|
-
if (!(0, import_react68.isValidElement)(child)) {
|
|
12593
|
-
return;
|
|
12594
|
-
}
|
|
12595
|
-
if (typeof child.type !== "string" && child.type.displayName === "Tab") {
|
|
12596
|
-
tabItems.push(child);
|
|
12597
|
-
} else if (child.type === import_react68.Fragment) {
|
|
12598
|
-
const fragmentElement = child;
|
|
12599
|
-
tabItems.push(...extractTabItems(fragmentElement.props.children));
|
|
12600
|
-
} else if ((child.props.children ?? null) != null) {
|
|
12601
|
-
const childChildren = child.props.children;
|
|
12602
|
-
tabItems.push(...extractTabItems(childChildren));
|
|
12603
|
-
} else {
|
|
12604
|
-
}
|
|
12605
|
-
});
|
|
12606
|
-
return tabItems;
|
|
12607
|
-
};
|
|
12608
|
-
|
|
12609
|
-
// src/components/Tabs/SelectedItemIndicator.tsx
|
|
12610
|
-
var import_styled_components87 = __toESM(require("styled-components"));
|
|
12611
|
-
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
12612
|
-
var TabsSelectedItemIndicatorDiv = (0, import_styled_components87.default)(SelectedItemIndicatorDiv)`
|
|
12613
|
-
&:has(~ ${StyledTabItem}:focus-visible) {
|
|
12614
|
-
outline: 2px solid var(--wui-color-focus-ring);
|
|
12615
|
-
}
|
|
12616
|
-
`;
|
|
12617
|
-
var SelectedItemIndicator2 = () => {
|
|
12618
|
-
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
12619
|
-
const selectedValue = useTabsValue();
|
|
12620
|
-
if (selectedValue == null) {
|
|
12621
|
-
return null;
|
|
12622
|
-
}
|
|
12623
|
-
return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
|
|
12624
|
-
};
|
|
12625
|
-
|
|
12626
|
-
// src/components/Tabs/Tabs.tsx
|
|
12627
|
-
var import_jsx_runtime270 = require("react/jsx-runtime");
|
|
12628
|
-
var TabsContainer = import_styled_components88.default.div`
|
|
12629
|
-
display: flex;
|
|
12630
|
-
flex-direction: column;
|
|
12631
|
-
height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
|
|
12632
|
-
overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
|
|
12633
|
-
`;
|
|
12634
|
-
var StickyTabContent = import_styled_components88.default.div`
|
|
12635
|
-
flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
|
|
12636
|
-
overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
|
|
12637
|
-
overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
|
|
12638
|
-
`;
|
|
12639
|
-
var StyledTabsRoot = (0, import_styled_components88.default)(import_react_tabs4.Root)`
|
|
12640
|
-
display: flex;
|
|
12641
|
-
flex-direction: column;
|
|
12642
|
-
height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
|
|
12643
|
-
`;
|
|
12644
|
-
var Tabs = (0, import_react69.forwardRef)(
|
|
12645
|
-
({
|
|
12646
|
-
children,
|
|
12647
|
-
fullWidth = true,
|
|
12648
|
-
"aria-label": ariaLabel,
|
|
12649
|
-
defaultSelectedValue,
|
|
12650
|
-
selectedValue,
|
|
12651
|
-
onSelectedValueChange,
|
|
12652
|
-
stickyHeaders = true,
|
|
12653
|
-
...props
|
|
12654
|
-
}, ref) => {
|
|
12655
|
-
const tabItems = extractTabItems(children);
|
|
12656
|
-
const [internalSelectedValue, setInternalSelectedValue] = (0, import_react69.useState)(defaultSelectedValue);
|
|
12657
|
-
const modeProps = defaultSelectedValue !== void 0 ? {
|
|
12658
|
-
defaultValue: defaultSelectedValue,
|
|
12659
|
-
onValueChange: setInternalSelectedValue
|
|
12660
|
-
} : { value: selectedValue, onValueChange: onSelectedValueChange };
|
|
12661
|
-
const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
|
|
12662
|
-
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12663
|
-
StyledTabsRoot,
|
|
12664
|
-
{
|
|
12665
|
-
ref,
|
|
12666
|
-
$stickyHeaders: stickyHeaders,
|
|
12667
|
-
activationMode: "automatic",
|
|
12668
|
-
...props,
|
|
12669
|
-
...modeProps,
|
|
12670
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(SelectedItemStyleProvider, { children: [
|
|
12671
|
-
/* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
|
|
12672
|
-
TabList,
|
|
12673
|
-
{
|
|
12674
|
-
ariaLabel,
|
|
12675
|
-
fullWidth,
|
|
12676
|
-
children: [
|
|
12677
|
-
/* @__PURE__ */ (0, import_jsx_runtime270.jsx)(SelectedItemIndicator2, {}),
|
|
12678
|
-
tabItems.map((tab) => {
|
|
12679
|
-
const {
|
|
12680
|
-
value,
|
|
12681
|
-
disabled = false,
|
|
12682
|
-
icon,
|
|
12683
|
-
label,
|
|
12684
|
-
"aria-label": ariaLabelForTab
|
|
12685
|
-
} = tab.props;
|
|
12686
|
-
if ((0, import_type_guards51.isNil)(icon)) {
|
|
12687
|
-
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12688
|
-
TabItem,
|
|
12689
|
-
{
|
|
12690
|
-
disabled,
|
|
12691
|
-
label,
|
|
12692
|
-
value
|
|
12693
|
-
},
|
|
12694
|
-
value
|
|
12695
|
-
);
|
|
12696
|
-
}
|
|
12697
|
-
if ((0, import_type_guards51.isNotNil)(label)) {
|
|
12698
|
-
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12699
|
-
TabItem,
|
|
12700
|
-
{
|
|
12701
|
-
disabled,
|
|
12702
|
-
icon,
|
|
12703
|
-
label,
|
|
12704
|
-
value
|
|
12705
|
-
},
|
|
12706
|
-
value
|
|
12707
|
-
);
|
|
12708
|
-
}
|
|
12709
|
-
if ((0, import_type_guards51.isNotNil)(ariaLabelForTab)) {
|
|
12710
|
-
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12711
|
-
TabItem,
|
|
12712
|
-
{
|
|
12713
|
-
"aria-label": ariaLabelForTab,
|
|
12714
|
-
disabled,
|
|
12715
|
-
icon,
|
|
12716
|
-
value
|
|
12717
|
-
},
|
|
12718
|
-
value
|
|
12719
|
-
);
|
|
12720
|
-
}
|
|
12721
|
-
throw new Error("A `Tab` with an icon must have either label or aria-label");
|
|
12722
|
-
})
|
|
12723
|
-
]
|
|
12724
|
-
}
|
|
12725
|
-
),
|
|
12726
|
-
/* @__PURE__ */ (0, import_jsx_runtime270.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12727
|
-
TabPanel,
|
|
12728
|
-
{
|
|
12729
|
-
value: tab.props.value,
|
|
12730
|
-
children: tab.props.children
|
|
12731
|
-
},
|
|
12732
|
-
tab.props.value
|
|
12733
|
-
)) })
|
|
12734
|
-
] }) })
|
|
12735
|
-
}
|
|
12736
|
-
) });
|
|
12737
|
-
}
|
|
12738
|
-
);
|
|
12739
|
-
Tabs.displayName = "Tabs";
|
|
12740
|
-
|
|
12741
|
-
// src/components/Tabs/Tab.tsx
|
|
12742
|
-
var import_react70 = require("react");
|
|
12743
|
-
var import_jsx_runtime271 = require("react/jsx-runtime");
|
|
12744
|
-
var Tab = (0, import_react70.forwardRef)(({ children }, ref) => {
|
|
12745
|
-
return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { ref, children });
|
|
12746
|
-
});
|
|
12747
|
-
Tab.displayName = "Tab";
|
|
12624
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
12748
12625
|
|
|
12749
12626
|
// src/components/Tag/Tag.tsx
|
|
12750
|
-
var
|
|
12751
|
-
var
|
|
12627
|
+
var import_react69 = require("react");
|
|
12628
|
+
var import_styled_components87 = __toESM(require("styled-components"));
|
|
12752
12629
|
var import_type_guards52 = require("@wistia/type-guards");
|
|
12753
|
-
var
|
|
12754
|
-
var TagLabel =
|
|
12630
|
+
var import_jsx_runtime271 = require("react/jsx-runtime");
|
|
12631
|
+
var TagLabel = import_styled_components87.default.a`
|
|
12755
12632
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12756
12633
|
font-size: var(--wui-typography-label-4-size);
|
|
12757
12634
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -12786,14 +12663,14 @@ var TagLabel = import_styled_components89.default.a`
|
|
|
12786
12663
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
12787
12664
|
}
|
|
12788
12665
|
`;
|
|
12789
|
-
var TagDivider =
|
|
12666
|
+
var TagDivider = import_styled_components87.default.div`
|
|
12790
12667
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12791
12668
|
border-left: 1px solid var(--wui-color-border);
|
|
12792
12669
|
display: flex;
|
|
12793
12670
|
height: 14px;
|
|
12794
12671
|
width: 1px;
|
|
12795
12672
|
`;
|
|
12796
|
-
var StyledRemoveButton =
|
|
12673
|
+
var StyledRemoveButton = import_styled_components87.default.button`
|
|
12797
12674
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12798
12675
|
all: unset;
|
|
12799
12676
|
cursor: pointer;
|
|
@@ -12821,7 +12698,7 @@ var StyledRemoveButton = import_styled_components89.default.button`
|
|
|
12821
12698
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
12822
12699
|
}
|
|
12823
12700
|
`;
|
|
12824
|
-
var StyledTag =
|
|
12701
|
+
var StyledTag = import_styled_components87.default.div`
|
|
12825
12702
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12826
12703
|
align-items: center;
|
|
12827
12704
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -12842,40 +12719,40 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
12842
12719
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
12843
12720
|
);
|
|
12844
12721
|
}
|
|
12845
|
-
return /* @__PURE__ */ (0,
|
|
12846
|
-
/* @__PURE__ */ (0,
|
|
12847
|
-
/* @__PURE__ */ (0,
|
|
12722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(import_jsx_runtime271.Fragment, { children: [
|
|
12723
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(TagDivider, { $colorScheme: colorScheme }),
|
|
12724
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
|
|
12848
12725
|
StyledRemoveButton,
|
|
12849
12726
|
{
|
|
12850
12727
|
$colorScheme: colorScheme,
|
|
12851
12728
|
onClick: onClickRemove,
|
|
12852
12729
|
type: "button",
|
|
12853
12730
|
children: [
|
|
12854
|
-
/* @__PURE__ */ (0,
|
|
12731
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
|
|
12855
12732
|
Icon,
|
|
12856
12733
|
{
|
|
12857
12734
|
size: "sm",
|
|
12858
12735
|
type: "close"
|
|
12859
12736
|
}
|
|
12860
12737
|
),
|
|
12861
|
-
/* @__PURE__ */ (0,
|
|
12738
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
12862
12739
|
]
|
|
12863
12740
|
}
|
|
12864
12741
|
)
|
|
12865
12742
|
] });
|
|
12866
12743
|
};
|
|
12867
|
-
var Tag = (0,
|
|
12744
|
+
var Tag = (0, import_react69.forwardRef)(
|
|
12868
12745
|
({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
|
|
12869
12746
|
const hasIcon = (0, import_type_guards52.isNotNil)(icon);
|
|
12870
12747
|
const labelProps = (0, import_type_guards52.isNotNil)(href) && (0, import_type_guards52.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
12871
|
-
return /* @__PURE__ */ (0,
|
|
12748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
|
|
12872
12749
|
StyledTag,
|
|
12873
12750
|
{
|
|
12874
12751
|
ref,
|
|
12875
12752
|
$colorScheme: colorScheme,
|
|
12876
12753
|
...props,
|
|
12877
12754
|
children: [
|
|
12878
|
-
/* @__PURE__ */ (0,
|
|
12755
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
|
|
12879
12756
|
TagLabel,
|
|
12880
12757
|
{
|
|
12881
12758
|
...labelProps,
|
|
@@ -12886,7 +12763,7 @@ var Tag = (0, import_react71.forwardRef)(
|
|
|
12886
12763
|
]
|
|
12887
12764
|
}
|
|
12888
12765
|
),
|
|
12889
|
-
/* @__PURE__ */ (0,
|
|
12766
|
+
/* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
|
|
12890
12767
|
RemoveButton,
|
|
12891
12768
|
{
|
|
12892
12769
|
colorScheme,
|
|
@@ -12902,10 +12779,10 @@ var Tag = (0, import_react71.forwardRef)(
|
|
|
12902
12779
|
Tag.displayName = "Tag";
|
|
12903
12780
|
|
|
12904
12781
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
12905
|
-
var
|
|
12782
|
+
var import_styled_components88 = __toESM(require("styled-components"));
|
|
12906
12783
|
var import_type_guards53 = require("@wistia/type-guards");
|
|
12907
|
-
var
|
|
12908
|
-
var StyledThumbnailBadge =
|
|
12784
|
+
var import_jsx_runtime272 = require("react/jsx-runtime");
|
|
12785
|
+
var StyledThumbnailBadge = import_styled_components88.default.div`
|
|
12909
12786
|
align-items: center;
|
|
12910
12787
|
background-color: rgb(0 0 0 / 50%);
|
|
12911
12788
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -12930,23 +12807,23 @@ var StyledThumbnailBadge = import_styled_components90.default.div`
|
|
|
12930
12807
|
}
|
|
12931
12808
|
`;
|
|
12932
12809
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
12933
|
-
return /* @__PURE__ */ (0,
|
|
12810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(StyledThumbnailBadge, { ...props, children: [
|
|
12934
12811
|
(0, import_type_guards53.isNotNil)(icon) && icon,
|
|
12935
|
-
/* @__PURE__ */ (0,
|
|
12812
|
+
/* @__PURE__ */ (0, import_jsx_runtime272.jsx)("span", { children: label })
|
|
12936
12813
|
] });
|
|
12937
12814
|
};
|
|
12938
12815
|
ThumbnailBadge.displayName = "ThumbnailBadge";
|
|
12939
12816
|
|
|
12940
12817
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
12941
|
-
var
|
|
12942
|
-
var
|
|
12818
|
+
var import_react70 = require("react");
|
|
12819
|
+
var import_styled_components91 = __toESM(require("styled-components"));
|
|
12943
12820
|
var import_type_guards56 = require("@wistia/type-guards");
|
|
12944
12821
|
|
|
12945
12822
|
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
12946
12823
|
var import_type_guards54 = require("@wistia/type-guards");
|
|
12947
|
-
var
|
|
12824
|
+
var import_styled_components89 = require("styled-components");
|
|
12948
12825
|
var gradients = {
|
|
12949
|
-
defaultDarkOne:
|
|
12826
|
+
defaultDarkOne: import_styled_components89.css`
|
|
12950
12827
|
background-color: #222d66;
|
|
12951
12828
|
background-image:
|
|
12952
12829
|
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
@@ -12954,7 +12831,7 @@ var gradients = {
|
|
|
12954
12831
|
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
12955
12832
|
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
12956
12833
|
`,
|
|
12957
|
-
defaultDarkTwo:
|
|
12834
|
+
defaultDarkTwo: import_styled_components89.css`
|
|
12958
12835
|
background-color: #222d66;
|
|
12959
12836
|
background-image:
|
|
12960
12837
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
@@ -12962,7 +12839,7 @@ var gradients = {
|
|
|
12962
12839
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12963
12840
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12964
12841
|
`,
|
|
12965
|
-
defaultLightOne:
|
|
12842
|
+
defaultLightOne: import_styled_components89.css`
|
|
12966
12843
|
background-color: #ccd5ff;
|
|
12967
12844
|
background-image:
|
|
12968
12845
|
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
@@ -12970,13 +12847,13 @@ var gradients = {
|
|
|
12970
12847
|
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
12971
12848
|
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
12972
12849
|
`,
|
|
12973
|
-
defaultLightTwo:
|
|
12850
|
+
defaultLightTwo: import_styled_components89.css`
|
|
12974
12851
|
background-color: #ccd5ff;
|
|
12975
12852
|
background-image:
|
|
12976
12853
|
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
12977
12854
|
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
12978
12855
|
`,
|
|
12979
|
-
defaultMidOne:
|
|
12856
|
+
defaultMidOne: import_styled_components89.css`
|
|
12980
12857
|
background-color: #6b84ff;
|
|
12981
12858
|
background-image:
|
|
12982
12859
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
@@ -12984,13 +12861,13 @@ var gradients = {
|
|
|
12984
12861
|
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
12985
12862
|
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
12986
12863
|
`,
|
|
12987
|
-
defaultMidTwo:
|
|
12864
|
+
defaultMidTwo: import_styled_components89.css`
|
|
12988
12865
|
background-color: #6b84ff;
|
|
12989
12866
|
background-image:
|
|
12990
12867
|
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
12991
12868
|
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
12992
12869
|
`,
|
|
12993
|
-
green:
|
|
12870
|
+
green: import_styled_components89.css`
|
|
12994
12871
|
background-color: #fafffa;
|
|
12995
12872
|
background-image:
|
|
12996
12873
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -12998,7 +12875,7 @@ var gradients = {
|
|
|
12998
12875
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12999
12876
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
13000
12877
|
`,
|
|
13001
|
-
greenWithPop:
|
|
12878
|
+
greenWithPop: import_styled_components89.css`
|
|
13002
12879
|
background-color: #fafffa;
|
|
13003
12880
|
background-image:
|
|
13004
12881
|
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
@@ -13006,7 +12883,7 @@ var gradients = {
|
|
|
13006
12883
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
13007
12884
|
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
13008
12885
|
`,
|
|
13009
|
-
pink:
|
|
12886
|
+
pink: import_styled_components89.css`
|
|
13010
12887
|
background-color: #fffff0;
|
|
13011
12888
|
background-image:
|
|
13012
12889
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
@@ -13014,7 +12891,7 @@ var gradients = {
|
|
|
13014
12891
|
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
13015
12892
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
13016
12893
|
`,
|
|
13017
|
-
pinkWithPop:
|
|
12894
|
+
pinkWithPop: import_styled_components89.css`
|
|
13018
12895
|
background-color: #fffff0;
|
|
13019
12896
|
background-image:
|
|
13020
12897
|
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
@@ -13022,7 +12899,7 @@ var gradients = {
|
|
|
13022
12899
|
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
13023
12900
|
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
13024
12901
|
`,
|
|
13025
|
-
playfulGradientOne:
|
|
12902
|
+
playfulGradientOne: import_styled_components89.css`
|
|
13026
12903
|
background-color: #f7f8ff;
|
|
13027
12904
|
background-image:
|
|
13028
12905
|
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
@@ -13030,7 +12907,7 @@ var gradients = {
|
|
|
13030
12907
|
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
13031
12908
|
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
13032
12909
|
`,
|
|
13033
|
-
playfulGradientTwo:
|
|
12910
|
+
playfulGradientTwo: import_styled_components89.css`
|
|
13034
12911
|
background-color: #f7f8ff;
|
|
13035
12912
|
background-image:
|
|
13036
12913
|
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
@@ -13038,13 +12915,13 @@ var gradients = {
|
|
|
13038
12915
|
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
13039
12916
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
13040
12917
|
`,
|
|
13041
|
-
purple:
|
|
12918
|
+
purple: import_styled_components89.css`
|
|
13042
12919
|
background-color: #f2caff;
|
|
13043
12920
|
background-image:
|
|
13044
12921
|
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
13045
12922
|
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
13046
12923
|
`,
|
|
13047
|
-
purpleWithPop:
|
|
12924
|
+
purpleWithPop: import_styled_components89.css`
|
|
13048
12925
|
background-color: #f2caff;
|
|
13049
12926
|
background-image:
|
|
13050
12927
|
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
@@ -13052,7 +12929,7 @@ var gradients = {
|
|
|
13052
12929
|
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
13053
12930
|
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
13054
12931
|
`,
|
|
13055
|
-
yellow:
|
|
12932
|
+
yellow: import_styled_components89.css`
|
|
13056
12933
|
background-color: #fffff0;
|
|
13057
12934
|
background-image:
|
|
13058
12935
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -13060,7 +12937,7 @@ var gradients = {
|
|
|
13060
12937
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
13061
12938
|
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
13062
12939
|
`,
|
|
13063
|
-
yellowWithPop:
|
|
12940
|
+
yellowWithPop: import_styled_components89.css`
|
|
13064
12941
|
background-color: #fffff0;
|
|
13065
12942
|
background-image:
|
|
13066
12943
|
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
@@ -13075,10 +12952,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
13075
12952
|
};
|
|
13076
12953
|
|
|
13077
12954
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
13078
|
-
var
|
|
12955
|
+
var import_styled_components90 = __toESM(require("styled-components"));
|
|
13079
12956
|
var import_type_guards55 = require("@wistia/type-guards");
|
|
13080
|
-
var
|
|
13081
|
-
var ScrubLine =
|
|
12957
|
+
var import_jsx_runtime273 = require("react/jsx-runtime");
|
|
12958
|
+
var ScrubLine = import_styled_components90.default.div`
|
|
13082
12959
|
position: absolute;
|
|
13083
12960
|
top: 0;
|
|
13084
12961
|
height: 100%;
|
|
@@ -13180,14 +13057,14 @@ var ThumbnailStoryboardViewer = ({
|
|
|
13180
13057
|
backgroundPosition,
|
|
13181
13058
|
backgroundSize
|
|
13182
13059
|
};
|
|
13183
|
-
return /* @__PURE__ */ (0,
|
|
13060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
|
|
13184
13061
|
"div",
|
|
13185
13062
|
{
|
|
13186
13063
|
...props,
|
|
13187
13064
|
style: viewerStyles,
|
|
13188
13065
|
children: [
|
|
13189
|
-
/* @__PURE__ */ (0,
|
|
13190
|
-
showScrubLine ? /* @__PURE__ */ (0,
|
|
13066
|
+
/* @__PURE__ */ (0, import_jsx_runtime273.jsx)("div", { style: storyboardStyles }),
|
|
13067
|
+
showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
|
|
13191
13068
|
ScrubLine,
|
|
13192
13069
|
{
|
|
13193
13070
|
style: {
|
|
@@ -13201,20 +13078,20 @@ var ThumbnailStoryboardViewer = ({
|
|
|
13201
13078
|
};
|
|
13202
13079
|
|
|
13203
13080
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
13204
|
-
var
|
|
13205
|
-
var WideThumbnailImage =
|
|
13081
|
+
var import_jsx_runtime274 = require("react/jsx-runtime");
|
|
13082
|
+
var WideThumbnailImage = import_styled_components91.default.img`
|
|
13206
13083
|
height: 100%;
|
|
13207
13084
|
object-fit: cover;
|
|
13208
13085
|
width: 100%;
|
|
13209
13086
|
`;
|
|
13210
|
-
var SquareThumbnailImage =
|
|
13087
|
+
var SquareThumbnailImage = import_styled_components91.default.img`
|
|
13211
13088
|
backdrop-filter: blur(8px);
|
|
13212
13089
|
object-fit: contain;
|
|
13213
13090
|
width: 100%;
|
|
13214
13091
|
`;
|
|
13215
13092
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
13216
13093
|
if (thumbnailImageType === "wide") {
|
|
13217
|
-
return /* @__PURE__ */ (0,
|
|
13094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
|
|
13218
13095
|
WideThumbnailImage,
|
|
13219
13096
|
{
|
|
13220
13097
|
alt: "",
|
|
@@ -13223,7 +13100,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
13223
13100
|
}
|
|
13224
13101
|
);
|
|
13225
13102
|
}
|
|
13226
|
-
return /* @__PURE__ */ (0,
|
|
13103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
|
|
13227
13104
|
SquareThumbnailImage,
|
|
13228
13105
|
{
|
|
13229
13106
|
alt: "",
|
|
@@ -13232,7 +13109,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
13232
13109
|
}
|
|
13233
13110
|
);
|
|
13234
13111
|
};
|
|
13235
|
-
var StyledThumbnail =
|
|
13112
|
+
var StyledThumbnail = import_styled_components91.default.div`
|
|
13236
13113
|
background-image: ${({ $backgroundUrl }) => (0, import_type_guards56.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
13237
13114
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
13238
13115
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -13261,7 +13138,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
|
|
|
13261
13138
|
left: relativeLeft
|
|
13262
13139
|
};
|
|
13263
13140
|
};
|
|
13264
|
-
var Thumbnail = (0,
|
|
13141
|
+
var Thumbnail = (0, import_react70.forwardRef)(
|
|
13265
13142
|
({
|
|
13266
13143
|
gradientBackground = "defaultMidOne",
|
|
13267
13144
|
thumbnailImageType = "square",
|
|
@@ -13272,17 +13149,17 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13272
13149
|
height,
|
|
13273
13150
|
...props
|
|
13274
13151
|
}, ref) => {
|
|
13275
|
-
const [percent, setPercent] = (0,
|
|
13276
|
-
const [isMouseOver, setIsMouseOver] = (0,
|
|
13277
|
-
const [isStoryboardReady, setIsStoryboardReady] = (0,
|
|
13278
|
-
const storyboardElementRef = (0,
|
|
13279
|
-
const [cursorPosition, setCursorPosition] = (0,
|
|
13280
|
-
const backgroundUrl = (0,
|
|
13152
|
+
const [percent, setPercent] = (0, import_react70.useState)(0);
|
|
13153
|
+
const [isMouseOver, setIsMouseOver] = (0, import_react70.useState)(false);
|
|
13154
|
+
const [isStoryboardReady, setIsStoryboardReady] = (0, import_react70.useState)(false);
|
|
13155
|
+
const storyboardElementRef = (0, import_react70.useRef)(null);
|
|
13156
|
+
const [cursorPosition, setCursorPosition] = (0, import_react70.useState)(null);
|
|
13157
|
+
const backgroundUrl = (0, import_react70.useMemo)(
|
|
13281
13158
|
() => thumbnailImageType === "square" && (0, import_type_guards56.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
|
|
13282
13159
|
[thumbnailImageType, thumbnailUrl]
|
|
13283
13160
|
);
|
|
13284
13161
|
const isScrubbable = (0, import_type_guards56.isNotNil)(storyboard);
|
|
13285
|
-
const trackStoryboardLoadStatus = (0,
|
|
13162
|
+
const trackStoryboardLoadStatus = (0, import_react70.useCallback)(() => {
|
|
13286
13163
|
if (storyboardElementRef.current || !storyboard) {
|
|
13287
13164
|
return storyboardElementRef.current;
|
|
13288
13165
|
}
|
|
@@ -13292,7 +13169,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13292
13169
|
storyboardElementRef.current = asset;
|
|
13293
13170
|
return storyboardElementRef.current;
|
|
13294
13171
|
}, [storyboard]);
|
|
13295
|
-
const handleMouseMove = (0,
|
|
13172
|
+
const handleMouseMove = (0, import_react70.useCallback)(
|
|
13296
13173
|
(mouseEvent) => {
|
|
13297
13174
|
if (!isScrubbable) return;
|
|
13298
13175
|
const elem = mouseEvent.currentTarget;
|
|
@@ -13305,15 +13182,15 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13305
13182
|
},
|
|
13306
13183
|
[isScrubbable, trackStoryboardLoadStatus]
|
|
13307
13184
|
);
|
|
13308
|
-
const handleMouseOut = (0,
|
|
13185
|
+
const handleMouseOut = (0, import_react70.useCallback)(() => {
|
|
13309
13186
|
if (!isScrubbable) return;
|
|
13310
13187
|
setIsMouseOver(false);
|
|
13311
13188
|
setCursorPosition(null);
|
|
13312
13189
|
}, [isScrubbable]);
|
|
13313
|
-
const shouldRenderStoryboard = (0,
|
|
13190
|
+
const shouldRenderStoryboard = (0, import_react70.useMemo)(() => {
|
|
13314
13191
|
return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
|
|
13315
13192
|
}, [isScrubbable, isMouseOver, isStoryboardReady]);
|
|
13316
|
-
const renderStoryboard = (0,
|
|
13193
|
+
const renderStoryboard = (0, import_react70.useCallback)(() => {
|
|
13317
13194
|
if (!storyboard || (0, import_type_guards56.isUndefined)(height) || (0, import_type_guards56.isEmptyString)(height)) return null;
|
|
13318
13195
|
const {
|
|
13319
13196
|
url,
|
|
@@ -13326,7 +13203,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13326
13203
|
} = storyboard;
|
|
13327
13204
|
const targetWidth = (0, import_type_guards56.isString)(width) ? parseInt(width, 10) : Number(width);
|
|
13328
13205
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
13329
|
-
return /* @__PURE__ */ (0,
|
|
13206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
|
|
13330
13207
|
ThumbnailStoryboardViewer,
|
|
13331
13208
|
{
|
|
13332
13209
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -13346,7 +13223,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13346
13223
|
if (shouldRenderStoryboard) {
|
|
13347
13224
|
thumbnailContent = renderStoryboard();
|
|
13348
13225
|
} else if ((0, import_type_guards56.isNotNil)(thumbnailUrl)) {
|
|
13349
|
-
thumbnailContent = /* @__PURE__ */ (0,
|
|
13226
|
+
thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
|
|
13350
13227
|
ThumbnailImage,
|
|
13351
13228
|
{
|
|
13352
13229
|
thumbnailImageType,
|
|
@@ -13356,7 +13233,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13356
13233
|
} else {
|
|
13357
13234
|
thumbnailContent = null;
|
|
13358
13235
|
}
|
|
13359
|
-
return /* @__PURE__ */ (0,
|
|
13236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
|
|
13360
13237
|
StyledThumbnail,
|
|
13361
13238
|
{
|
|
13362
13239
|
ref,
|
|
@@ -13380,14 +13257,14 @@ var Thumbnail = (0, import_react72.forwardRef)(
|
|
|
13380
13257
|
Thumbnail.displayName = "Thumbnail";
|
|
13381
13258
|
|
|
13382
13259
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
13383
|
-
var
|
|
13384
|
-
var
|
|
13260
|
+
var import_react71 = __toESM(require("react"));
|
|
13261
|
+
var import_styled_components92 = __toESM(require("styled-components"));
|
|
13385
13262
|
var import_type_guards57 = require("@wistia/type-guards");
|
|
13386
|
-
var
|
|
13263
|
+
var import_jsx_runtime275 = (
|
|
13387
13264
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
13388
13265
|
require("react/jsx-runtime")
|
|
13389
13266
|
);
|
|
13390
|
-
var StyledThumbnailCollage =
|
|
13267
|
+
var StyledThumbnailCollage = import_styled_components92.default.div`
|
|
13391
13268
|
display: grid;
|
|
13392
13269
|
gap: var(--wui-space-01);
|
|
13393
13270
|
width: 100%;
|
|
@@ -13460,15 +13337,15 @@ var ThumbnailCollage = ({
|
|
|
13460
13337
|
gradientBackground = "defaultMidOne",
|
|
13461
13338
|
...props
|
|
13462
13339
|
}) => {
|
|
13463
|
-
const thumbnailArray =
|
|
13340
|
+
const thumbnailArray = import_react71.default.Children.toArray(children);
|
|
13464
13341
|
const truncatedThumbnails = thumbnailArray.slice(0, 3);
|
|
13465
13342
|
const thumbnails = (0, import_type_guards57.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
|
|
13466
|
-
return
|
|
13343
|
+
return import_react71.default.cloneElement(child, {
|
|
13467
13344
|
...child.props,
|
|
13468
13345
|
children: void 0
|
|
13469
13346
|
});
|
|
13470
13347
|
}) : [
|
|
13471
|
-
/* @__PURE__ */ (0,
|
|
13348
|
+
/* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
|
|
13472
13349
|
Thumbnail,
|
|
13473
13350
|
{
|
|
13474
13351
|
gradientBackground,
|
|
@@ -13477,7 +13354,7 @@ var ThumbnailCollage = ({
|
|
|
13477
13354
|
"fallback"
|
|
13478
13355
|
)
|
|
13479
13356
|
];
|
|
13480
|
-
return /* @__PURE__ */ (0,
|
|
13357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
|
|
13481
13358
|
StyledThumbnailCollage,
|
|
13482
13359
|
{
|
|
13483
13360
|
$gradientBackground: gradientBackground,
|
|
@@ -13489,26 +13366,26 @@ var ThumbnailCollage = ({
|
|
|
13489
13366
|
};
|
|
13490
13367
|
|
|
13491
13368
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
13492
|
-
var
|
|
13369
|
+
var import_styled_components93 = __toESM(require("styled-components"));
|
|
13493
13370
|
var import_type_guards58 = require("@wistia/type-guards");
|
|
13494
|
-
var
|
|
13371
|
+
var import_jsx_runtime276 = require("react/jsx-runtime");
|
|
13495
13372
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
13496
13373
|
if (iconOnly) {
|
|
13497
|
-
return /* @__PURE__ */ (0,
|
|
13374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
|
|
13498
13375
|
"g",
|
|
13499
13376
|
{
|
|
13500
13377
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
13501
13378
|
fill: brandmarkColor,
|
|
13502
|
-
children: /* @__PURE__ */ (0,
|
|
13379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime276.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" })
|
|
13503
13380
|
}
|
|
13504
13381
|
);
|
|
13505
13382
|
}
|
|
13506
|
-
return /* @__PURE__ */ (0,
|
|
13383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
|
|
13507
13384
|
"g",
|
|
13508
13385
|
{
|
|
13509
13386
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
13510
13387
|
fill: brandmarkColor,
|
|
13511
|
-
children: /* @__PURE__ */ (0,
|
|
13388
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime276.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" })
|
|
13512
13389
|
}
|
|
13513
13390
|
);
|
|
13514
13391
|
};
|
|
@@ -13516,12 +13393,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
13516
13393
|
if (iconOnly) {
|
|
13517
13394
|
return null;
|
|
13518
13395
|
}
|
|
13519
|
-
return /* @__PURE__ */ (0,
|
|
13396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
|
|
13520
13397
|
"g",
|
|
13521
13398
|
{
|
|
13522
13399
|
"data-testid": "ui-wistia-logo-logotype",
|
|
13523
13400
|
fill: logotypeColor,
|
|
13524
|
-
children: /* @__PURE__ */ (0,
|
|
13401
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime276.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" })
|
|
13525
13402
|
}
|
|
13526
13403
|
);
|
|
13527
13404
|
};
|
|
@@ -13531,7 +13408,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
13531
13408
|
}
|
|
13532
13409
|
return "0 0 144 31.47";
|
|
13533
13410
|
};
|
|
13534
|
-
var WistiaLogoComponent =
|
|
13411
|
+
var WistiaLogoComponent = import_styled_components93.default.svg`
|
|
13535
13412
|
height: ${({ height }) => `${height}px`};
|
|
13536
13413
|
|
|
13537
13414
|
/* ensure it will always fit on mobile */
|
|
@@ -13547,12 +13424,12 @@ var WistiaLogoComponent = import_styled_components95.default.svg`
|
|
|
13547
13424
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
13548
13425
|
if ($opticallyCentered) {
|
|
13549
13426
|
if ($iconOnly) {
|
|
13550
|
-
return
|
|
13427
|
+
return import_styled_components93.css`
|
|
13551
13428
|
aspect-ratio: 1;
|
|
13552
13429
|
padding: 11.85% 3.12% 13.91%;
|
|
13553
13430
|
`;
|
|
13554
13431
|
}
|
|
13555
|
-
return
|
|
13432
|
+
return import_styled_components93.css`
|
|
13556
13433
|
aspect-ratio: 127 / 32;
|
|
13557
13434
|
`;
|
|
13558
13435
|
}
|
|
@@ -13589,7 +13466,7 @@ var WistiaLogo = ({
|
|
|
13589
13466
|
};
|
|
13590
13467
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
13591
13468
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
13592
|
-
const Logo = /* @__PURE__ */ (0,
|
|
13469
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
|
|
13593
13470
|
WistiaLogoComponent,
|
|
13594
13471
|
{
|
|
13595
13472
|
$hoverColor: hoverColor,
|
|
@@ -13602,39 +13479,39 @@ var WistiaLogo = ({
|
|
|
13602
13479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13603
13480
|
...props,
|
|
13604
13481
|
children: [
|
|
13605
|
-
/* @__PURE__ */ (0,
|
|
13606
|
-
(0, import_type_guards58.isNotNil)(description) ? /* @__PURE__ */ (0,
|
|
13482
|
+
/* @__PURE__ */ (0, import_jsx_runtime276.jsx)("title", { children: title }),
|
|
13483
|
+
(0, import_type_guards58.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("desc", { children: description }) : null,
|
|
13607
13484
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
13608
13485
|
renderLogotype(logotypeColor, iconOnly)
|
|
13609
13486
|
]
|
|
13610
13487
|
}
|
|
13611
13488
|
);
|
|
13612
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
13489
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("a", { href, children: Logo }) : Logo;
|
|
13613
13490
|
};
|
|
13614
13491
|
WistiaLogo.displayName = "WistiaLogo";
|
|
13615
13492
|
|
|
13616
13493
|
// src/components/List/List.tsx
|
|
13617
13494
|
var import_type_guards60 = require("@wistia/type-guards");
|
|
13618
|
-
var
|
|
13495
|
+
var import_styled_components95 = __toESM(require("styled-components"));
|
|
13619
13496
|
|
|
13620
13497
|
// src/components/List/ListItem.tsx
|
|
13621
|
-
var
|
|
13498
|
+
var import_styled_components94 = __toESM(require("styled-components"));
|
|
13622
13499
|
var import_type_guards59 = require("@wistia/type-guards");
|
|
13623
|
-
var
|
|
13624
|
-
var ListItemComponent =
|
|
13500
|
+
var import_jsx_runtime277 = require("react/jsx-runtime");
|
|
13501
|
+
var ListItemComponent = import_styled_components94.default.li`
|
|
13625
13502
|
margin-bottom: var(--wui-space-02);
|
|
13626
13503
|
`;
|
|
13627
13504
|
var ListItem = ({ children }) => {
|
|
13628
13505
|
if ((0, import_type_guards59.isNil)(children)) {
|
|
13629
13506
|
return null;
|
|
13630
13507
|
}
|
|
13631
|
-
return /* @__PURE__ */ (0,
|
|
13508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(ListItemComponent, { children });
|
|
13632
13509
|
};
|
|
13633
13510
|
ListItem.displayName = "ListItem";
|
|
13634
13511
|
|
|
13635
13512
|
// src/components/List/List.tsx
|
|
13636
|
-
var
|
|
13637
|
-
var spacesStyle =
|
|
13513
|
+
var import_jsx_runtime278 = require("react/jsx-runtime");
|
|
13514
|
+
var spacesStyle = import_styled_components95.css`
|
|
13638
13515
|
overflow: hidden;
|
|
13639
13516
|
padding-left: 0;
|
|
13640
13517
|
vertical-align: bottom;
|
|
@@ -13656,7 +13533,7 @@ var spacesStyle = import_styled_components97.css`
|
|
|
13656
13533
|
}
|
|
13657
13534
|
}
|
|
13658
13535
|
`;
|
|
13659
|
-
var commasStyle =
|
|
13536
|
+
var commasStyle = import_styled_components95.css`
|
|
13660
13537
|
${spacesStyle};
|
|
13661
13538
|
|
|
13662
13539
|
li {
|
|
@@ -13666,7 +13543,7 @@ var commasStyle = import_styled_components97.css`
|
|
|
13666
13543
|
}
|
|
13667
13544
|
}
|
|
13668
13545
|
`;
|
|
13669
|
-
var slashesStyle =
|
|
13546
|
+
var slashesStyle = import_styled_components95.css`
|
|
13670
13547
|
${spacesStyle};
|
|
13671
13548
|
|
|
13672
13549
|
li {
|
|
@@ -13677,7 +13554,7 @@ var slashesStyle = import_styled_components97.css`
|
|
|
13677
13554
|
}
|
|
13678
13555
|
}
|
|
13679
13556
|
`;
|
|
13680
|
-
var breadcrumbsStyle =
|
|
13557
|
+
var breadcrumbsStyle = import_styled_components95.css`
|
|
13681
13558
|
${spacesStyle};
|
|
13682
13559
|
|
|
13683
13560
|
li {
|
|
@@ -13688,11 +13565,11 @@ var breadcrumbsStyle = import_styled_components97.css`
|
|
|
13688
13565
|
}
|
|
13689
13566
|
}
|
|
13690
13567
|
`;
|
|
13691
|
-
var unbulletedStyle =
|
|
13568
|
+
var unbulletedStyle = import_styled_components95.css`
|
|
13692
13569
|
list-style: none;
|
|
13693
13570
|
padding-left: 0;
|
|
13694
13571
|
`;
|
|
13695
|
-
var ListComponent =
|
|
13572
|
+
var ListComponent = import_styled_components95.default.ul`
|
|
13696
13573
|
list-style-position: outside;
|
|
13697
13574
|
margin: 0 0 var(--wui-space-01);
|
|
13698
13575
|
padding: 0 0 0 var(--wui-space-04);
|
|
@@ -13719,7 +13596,7 @@ var ListComponent = import_styled_components97.default.ul`
|
|
|
13719
13596
|
`;
|
|
13720
13597
|
var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
13721
13598
|
const elementType = variant === "ordered" ? "ol" : "ul";
|
|
13722
|
-
return /* @__PURE__ */ (0,
|
|
13599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
|
|
13723
13600
|
ListComponent,
|
|
13724
13601
|
{
|
|
13725
13602
|
as: elementType,
|
|
@@ -13736,7 +13613,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
13736
13613
|
const nextItem = listItems[i + 1];
|
|
13737
13614
|
const key = `item-${itemCount += 1}`;
|
|
13738
13615
|
if (Array.isArray(nextItem)) {
|
|
13739
|
-
return /* @__PURE__ */ (0,
|
|
13616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(ListItem, { children: [
|
|
13740
13617
|
item,
|
|
13741
13618
|
renderListFromArray(nextItem, variant, otherProps)
|
|
13742
13619
|
] }, key);
|
|
@@ -13744,7 +13621,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
13744
13621
|
if (Array.isArray(item)) {
|
|
13745
13622
|
return null;
|
|
13746
13623
|
}
|
|
13747
|
-
return /* @__PURE__ */ (0,
|
|
13624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(ListItem, { children: item }, key);
|
|
13748
13625
|
});
|
|
13749
13626
|
return renderListComponent(items, variant, otherProps);
|
|
13750
13627
|
};
|
|
@@ -13836,7 +13713,6 @@ List.displayName = "List";
|
|
|
13836
13713
|
Stack,
|
|
13837
13714
|
SubMenu,
|
|
13838
13715
|
Switch,
|
|
13839
|
-
Tab,
|
|
13840
13716
|
Table,
|
|
13841
13717
|
TableBody,
|
|
13842
13718
|
TableCell,
|
|
@@ -13844,6 +13720,9 @@ List.displayName = "List";
|
|
|
13844
13720
|
TableHead,
|
|
13845
13721
|
TableRow,
|
|
13846
13722
|
Tabs,
|
|
13723
|
+
TabsContent,
|
|
13724
|
+
TabsList,
|
|
13725
|
+
TabsTrigger,
|
|
13847
13726
|
Tag,
|
|
13848
13727
|
Text,
|
|
13849
13728
|
Thumbnail,
|