@wistia/ui 0.9.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.9.5
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,
@@ -8208,9 +8210,9 @@ var Center = (0, import_react28.forwardRef)(
8208
8210
  Center.displayName = "Center";
8209
8211
 
8210
8212
  // src/components/Checkbox/Checkbox.tsx
8211
- var import_react29 = require("react");
8212
- var import_styled_components36 = __toESM(require("styled-components"));
8213
- var import_type_guards25 = require("@wistia/type-guards");
8213
+ var import_react33 = require("react");
8214
+ var import_styled_components39 = __toESM(require("styled-components"));
8215
+ var import_type_guards26 = require("@wistia/type-guards");
8214
8216
 
8215
8217
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8216
8218
  var import_styled_components35 = __toESM(require("styled-components"));
@@ -8328,9 +8330,230 @@ var FormControlLabel = ({
8328
8330
  };
8329
8331
  FormControlLabel.displayName = "FormControlLabel";
8330
8332
 
8331
- // src/components/Checkbox/Checkbox.tsx
8333
+ // src/components/FormGroup/CheckboxGroup.tsx
8334
+ var import_react32 = require("react");
8335
+
8336
+ // src/components/FormGroup/FormGroup.tsx
8337
+ var import_styled_components38 = __toESM(require("styled-components"));
8338
+ var import_react31 = require("react");
8339
+
8340
+ // src/components/Stack/Stack.tsx
8341
+ var import_react29 = require("react");
8342
+ var import_styled_components36 = __toESM(require("styled-components"));
8332
8343
  var import_jsx_runtime208 = require("react/jsx-runtime");
8333
- var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8344
+ var DEFAULT_ELEMENT2 = "div";
8345
+ var StyledStack = import_styled_components36.default.div`
8346
+ display: flex;
8347
+ flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
8348
+ gap: ${({ $gap }) => `var(--wui-${$gap})`};
8349
+ align-items: ${({ $alignItems }) => $alignItems};
8350
+ `;
8351
+ var StackComponent = (0, import_react29.forwardRef)(
8352
+ ({ renderAs, direction = "vertical", gap = "space-02", alignItems = "stretch", ...props }, ref) => {
8353
+ const responsiveGap = useResponsiveProp(gap);
8354
+ const responsiveDirection = useResponsiveProp(direction);
8355
+ const responsiveAlignItems = useResponsiveProp(alignItems);
8356
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8357
+ StyledStack,
8358
+ {
8359
+ ref,
8360
+ $alignItems: responsiveAlignItems,
8361
+ $direction: responsiveDirection,
8362
+ $gap: responsiveGap,
8363
+ as: renderAs ?? DEFAULT_ELEMENT2,
8364
+ ...props
8365
+ }
8366
+ );
8367
+ }
8368
+ );
8369
+ StackComponent.displayName = "Stack";
8370
+ var Stack = makePolymorphic(StackComponent);
8371
+
8372
+ // src/components/Heading/Heading.tsx
8373
+ var import_react30 = require("react");
8374
+ var import_styled_components37 = __toESM(require("styled-components"));
8375
+ var import_type_guards25 = require("@wistia/type-guards");
8376
+ var import_jsx_runtime209 = require("react/jsx-runtime");
8377
+ var heroStyle = import_styled_components37.css`
8378
+ --font-family: var(--wui-typography-heading-hero-family);
8379
+ --font-size: var(--wui-typography-heading-hero-size);
8380
+ --font-weight: var(--wui-typography-heading-hero-weight);
8381
+ --line-height: var(--wui-typography-heading-hero-line-height);
8382
+ `;
8383
+ var heading1TextStyle = import_styled_components37.css`
8384
+ --font-family: var(--wui-typography-heading-1-family);
8385
+ --font-size: var(--wui-typography-heading-1-size);
8386
+ --font-weight: var(--wui-typography-heading-1-weight);
8387
+ --line-height: var(--wui-typography-heading-1-line-height);
8388
+ `;
8389
+ var heading2TextStyle = import_styled_components37.css`
8390
+ --font-family: var(--wui-typography-heading-2-family);
8391
+ --font-size: var(--wui-typography-heading-2-size);
8392
+ --font-weight: var(--wui-typography-heading-2-weight);
8393
+ --line-height: var(--wui-typography-heading-2-line-height);
8394
+ `;
8395
+ var heading3TextStyle = import_styled_components37.css`
8396
+ --font-family: var(--wui-typography-heading-3-family);
8397
+ --font-size: var(--wui-typography-heading-3-size);
8398
+ --font-weight: var(--wui-typography-heading-3-weight);
8399
+ --line-height: var(--wui-typography-heading-3-line-height);
8400
+ `;
8401
+ var heading4TextStyle = import_styled_components37.css`
8402
+ --font-family: var(--wui-typography-heading-4-family);
8403
+ --font-size: var(--wui-typography-heading-4-size);
8404
+ --font-weight: var(--wui-typography-heading-4-weight);
8405
+ --line-height: var(--wui-typography-heading-4-line-height);
8406
+ `;
8407
+ var heading5TextStyle = import_styled_components37.css`
8408
+ --font-family: var(--wui-typography-heading-5-family);
8409
+ --font-size: var(--wui-typography-heading-5-size);
8410
+ --font-weight: var(--wui-typography-heading-5-weight);
8411
+ --line-height: var(--wui-typography-heading-5-line-height);
8412
+ `;
8413
+ var heading6TextStyle = import_styled_components37.css`
8414
+ --font-family: var(--wui-typography-heading-6-family);
8415
+ --font-size: var(--wui-typography-heading-6-size);
8416
+ --font-weight: var(--wui-typography-heading-6-weight);
8417
+ --line-height: var(--wui-typography-heading-6-line-height);
8418
+ `;
8419
+ var variantStyleMap = {
8420
+ hero: heroStyle,
8421
+ heading1: heading1TextStyle,
8422
+ heading2: heading2TextStyle,
8423
+ heading3: heading3TextStyle,
8424
+ heading4: heading4TextStyle,
8425
+ heading5: heading5TextStyle,
8426
+ heading6: heading6TextStyle
8427
+ };
8428
+ var DEFAULT_ELEMENT3 = "h1";
8429
+ var StyledHeading = import_styled_components37.default.div`
8430
+ ${({ $colorScheme }) => getColorScheme($colorScheme)};
8431
+ font-family: var(--font-family);
8432
+ font-size: var(--font-size);
8433
+ font-weight: var(--font-weight);
8434
+ line-height: var(--line-height);
8435
+ color: var(--wui-color-text);
8436
+ ${({ $variant }) => variantStyleMap[$variant]}
8437
+ ${({ $truncate }) => {
8438
+ if ((0, import_type_guards25.isNotNil)($truncate)) {
8439
+ return import_styled_components37.css`
8440
+ ${ellipsisStyle};
8441
+ ${lineClampCss($truncate)};
8442
+ `;
8443
+ }
8444
+ return void 0;
8445
+ }}
8446
+ ${({ $inline }) => $inline && import_styled_components37.css`
8447
+ display: inline-block;
8448
+ `}
8449
+ ${({ $disabled }) => $disabled && import_styled_components37.css`
8450
+ color: var(--wui-color-text-disabled);
8451
+ `}
8452
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
8453
+ user-select: none;
8454
+ `}
8455
+ ${({ $align }) => import_styled_components37.css`
8456
+ text-align: ${$align};
8457
+ `}
8458
+ margin: 0;
8459
+ `;
8460
+ var variantElementMap = {
8461
+ hero: DEFAULT_ELEMENT3,
8462
+ heading1: DEFAULT_ELEMENT3,
8463
+ heading2: "h2",
8464
+ heading3: "h3",
8465
+ heading4: "h4",
8466
+ heading5: "h5",
8467
+ heading6: "h6"
8468
+ };
8469
+ var HeadingComponent = (0, import_react30.forwardRef)(
8470
+ ({
8471
+ align = "left",
8472
+ colorScheme = "inherit",
8473
+ disabled = false,
8474
+ inline = false,
8475
+ preventUserSelect = false,
8476
+ truncate,
8477
+ variant = "heading1",
8478
+ renderAs,
8479
+ ...props
8480
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8481
+ StyledHeading,
8482
+ {
8483
+ ref,
8484
+ $align: align,
8485
+ $colorScheme: colorScheme,
8486
+ $disabled: disabled,
8487
+ $inline: inline,
8488
+ $preventUserSelect: preventUserSelect,
8489
+ $truncate: truncate,
8490
+ $variant: variant,
8491
+ as: renderAs ?? variantElementMap[variant],
8492
+ ...props
8493
+ }
8494
+ )
8495
+ );
8496
+ HeadingComponent.displayName = "Heading";
8497
+ var Heading = makePolymorphic(HeadingComponent);
8498
+
8499
+ // src/components/FormGroup/FormGroup.tsx
8500
+ var import_jsx_runtime210 = require("react/jsx-runtime");
8501
+ var StyledFieldset = import_styled_components38.default.fieldset`
8502
+ border: 0;
8503
+ `;
8504
+ var StyledLegend = import_styled_components38.default.legend`
8505
+ margin-bottom: var(--space-01);
8506
+ `;
8507
+ var FormGroup = ({ children, label, ...props }) => {
8508
+ const ref = (0, import_react31.useRef)();
8509
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
8510
+ Stack,
8511
+ {
8512
+ ...props,
8513
+ ref,
8514
+ renderAs: StyledFieldset,
8515
+ children: [
8516
+ /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
8517
+ Heading,
8518
+ {
8519
+ renderAs: StyledLegend,
8520
+ variant: "heading5",
8521
+ children: label
8522
+ }
8523
+ ),
8524
+ children
8525
+ ]
8526
+ }
8527
+ );
8528
+ };
8529
+ FormGroup.displayName = "FormGroup";
8530
+
8531
+ // src/components/FormGroup/CheckboxGroup.tsx
8532
+ var import_jsx_runtime211 = require("react/jsx-runtime");
8533
+ var CheckboxGroupContext = (0, import_react32.createContext)(null);
8534
+ var useCheckboxGroup = () => {
8535
+ return (0, import_react32.useContext)(CheckboxGroupContext);
8536
+ };
8537
+ var CheckboxGroup = ({
8538
+ children,
8539
+ name,
8540
+ onChange,
8541
+ value,
8542
+ ...props
8543
+ }) => {
8544
+ const context = (0, import_react32.useMemo)(() => {
8545
+ return {
8546
+ name,
8547
+ onChange
8548
+ };
8549
+ }, [name, onChange]);
8550
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(FormGroup, { ...props, children }) });
8551
+ };
8552
+ CheckboxGroup.displayName = "CheckboxGroup";
8553
+
8554
+ // src/components/Checkbox/Checkbox.tsx
8555
+ var import_jsx_runtime212 = require("react/jsx-runtime");
8556
+ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8334
8557
  "svg",
8335
8558
  {
8336
8559
  fill: "inherit",
@@ -8338,7 +8561,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8338
8561
  viewBox: "0 0 10 8",
8339
8562
  width: "10",
8340
8563
  xmlns: "http://www.w3.org/2000/svg",
8341
- children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8564
+ children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8342
8565
  "path",
8343
8566
  {
8344
8567
  d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
@@ -8347,7 +8570,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8347
8570
  )
8348
8571
  }
8349
8572
  );
8350
- var sizeSmall = import_styled_components36.css`
8573
+ var sizeSmall = import_styled_components39.css`
8351
8574
  width: 14px;
8352
8575
  height: 14px;
8353
8576
  min-width: 14px;
@@ -8358,7 +8581,7 @@ var sizeSmall = import_styled_components36.css`
8358
8581
  height: 7px;
8359
8582
  }
8360
8583
  `;
8361
- var sizeMedium = import_styled_components36.css`
8584
+ var sizeMedium = import_styled_components39.css`
8362
8585
  width: 16px;
8363
8586
  height: 16px;
8364
8587
  min-width: 16px;
@@ -8369,7 +8592,7 @@ var sizeMedium = import_styled_components36.css`
8369
8592
  height: 9px;
8370
8593
  }
8371
8594
  `;
8372
- var sizeLarge = import_styled_components36.css`
8595
+ var sizeLarge = import_styled_components39.css`
8373
8596
  width: 20px;
8374
8597
  height: 20px;
8375
8598
  min-width: 20px;
@@ -8385,14 +8608,14 @@ var getSizeCss = (size) => {
8385
8608
  if (size === "lg") return sizeLarge;
8386
8609
  return sizeMedium;
8387
8610
  };
8388
- var StyledCheckboxWrapper = import_styled_components36.default.div`
8611
+ var StyledCheckboxWrapper = import_styled_components39.default.div`
8389
8612
  display: flex;
8390
8613
  margin: 0;
8391
8614
 
8392
8615
  /* TODO this solves a problem but potentially causes and a11y issue */
8393
8616
  user-select: none;
8394
8617
  `;
8395
- var StyledCheckboxInput = import_styled_components36.default.div`
8618
+ var StyledCheckboxInput = import_styled_components39.default.div`
8396
8619
  ${({ $size }) => getSizeCss($size)}
8397
8620
  line-height: 0;
8398
8621
  margin: 0;
@@ -8414,7 +8637,7 @@ var StyledCheckboxInput = import_styled_components36.default.div`
8414
8637
  }
8415
8638
  }
8416
8639
  `;
8417
- var StyledHiddenCheckboxInput = import_styled_components36.default.input`
8640
+ var StyledHiddenCheckboxInput = import_styled_components39.default.input`
8418
8641
  ${visuallyHiddenStyle}
8419
8642
 
8420
8643
  /* toggles display of faux-input background-color */
@@ -8428,7 +8651,7 @@ var StyledHiddenCheckboxInput = import_styled_components36.default.input`
8428
8651
  display: block;
8429
8652
  }
8430
8653
  `;
8431
- var Checkbox = (0, import_react29.forwardRef)(
8654
+ var Checkbox = (0, import_react33.forwardRef)(
8432
8655
  ({
8433
8656
  checked,
8434
8657
  disabled = false,
@@ -8443,10 +8666,15 @@ var Checkbox = (0, import_react29.forwardRef)(
8443
8666
  hideLabel = false,
8444
8667
  ...props
8445
8668
  }, ref) => {
8446
- const generatedId = (0, import_react29.useId)();
8447
- const computedId = (0, import_type_guards25.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8448
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8449
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8669
+ const generatedId = (0, import_react33.useId)();
8670
+ const computedId = (0, import_type_guards26.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8671
+ const checkboxGroupContext = useCheckboxGroup();
8672
+ const contextName = checkboxGroupContext?.name;
8673
+ const contextOnChange = checkboxGroupContext?.onChange;
8674
+ const checkboxName = name ?? contextName;
8675
+ const handleOnChange = onChange ?? contextOnChange;
8676
+ return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8677
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8450
8678
  StyledHiddenCheckboxInput,
8451
8679
  {
8452
8680
  ...props,
@@ -8454,23 +8682,23 @@ var Checkbox = (0, import_react29.forwardRef)(
8454
8682
  checked,
8455
8683
  disabled,
8456
8684
  id: computedId,
8457
- name,
8458
- onChange,
8685
+ name: checkboxName,
8686
+ onChange: handleOnChange,
8459
8687
  required,
8460
8688
  type: "checkbox",
8461
8689
  value
8462
8690
  }
8463
8691
  ),
8464
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8692
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8465
8693
  FormControlLabel,
8466
8694
  {
8467
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8695
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8468
8696
  StyledCheckboxInput,
8469
8697
  {
8470
8698
  $disabled: disabled,
8471
8699
  $size: size,
8472
8700
  "data-wui-faux-input": "true",
8473
- children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(CheckIcon, {})
8701
+ children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(CheckIcon, {})
8474
8702
  }
8475
8703
  ),
8476
8704
  description,
@@ -8486,14 +8714,14 @@ var Checkbox = (0, import_react29.forwardRef)(
8486
8714
  Checkbox.displayName = "Checkbox";
8487
8715
 
8488
8716
  // src/components/ClickRegion/ClickRegion.tsx
8489
- var import_react30 = require("react");
8717
+ var import_react34 = require("react");
8490
8718
  var isClickableElement = (element) => {
8491
8719
  if (!element) return false;
8492
8720
  const el = element;
8493
8721
  return el.closest("button") !== null || el.closest("a") !== null || el.closest("input") !== null || el.closest("select") !== null || el.closest("textarea") !== null || el.closest("label") !== null || el.closest("[data-wui-faux-input]") !== null;
8494
8722
  };
8495
8723
  var ClickRegion = ({ children, targetRef }) => {
8496
- (0, import_react30.useEffect)(() => {
8724
+ (0, import_react34.useEffect)(() => {
8497
8725
  if (targetRef.current && targetRef.current.tagName === "A") {
8498
8726
  targetRef.current.setAttribute("data-click-region-target-link", "");
8499
8727
  } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
@@ -8501,7 +8729,7 @@ var ClickRegion = ({ children, targetRef }) => {
8501
8729
  } else {
8502
8730
  }
8503
8731
  }, [targetRef]);
8504
- const handleClick = (0, import_react30.useCallback)(
8732
+ const handleClick = (0, import_react34.useCallback)(
8505
8733
  (event) => {
8506
8734
  const node = targetRef.current;
8507
8735
  if (event.target === node) {
@@ -8521,7 +8749,7 @@ var ClickRegion = ({ children, targetRef }) => {
8521
8749
  },
8522
8750
  [targetRef]
8523
8751
  );
8524
- return (0, import_react30.cloneElement)(import_react30.Children.only(children), {
8752
+ return (0, import_react34.cloneElement)(import_react34.Children.only(children), {
8525
8753
  "data-click-region": true,
8526
8754
  onClick: handleClick
8527
8755
  });
@@ -8530,10 +8758,10 @@ ClickRegion.displayName = "ClickRegion";
8530
8758
 
8531
8759
  // src/components/Collapsible/Collapsible.tsx
8532
8760
  var import_react_collapsible = require("@radix-ui/react-collapsible");
8533
- var import_type_guards26 = require("@wistia/type-guards");
8534
- var import_styled_components37 = __toESM(require("styled-components"));
8535
- var import_jsx_runtime209 = require("react/jsx-runtime");
8536
- var StyledRoot = (0, import_styled_components37.default)(import_react_collapsible.Root)`
8761
+ var import_type_guards27 = require("@wistia/type-guards");
8762
+ var import_styled_components40 = __toESM(require("styled-components"));
8763
+ var import_jsx_runtime213 = require("react/jsx-runtime");
8764
+ var StyledRoot = (0, import_styled_components40.default)(import_react_collapsible.Root)`
8537
8765
  &[data-state='closed'] [data-wui-collapsible-content] {
8538
8766
  display: -webkit-box;
8539
8767
  -webkit-box-orient: vertical;
@@ -8547,32 +8775,32 @@ var Collapsible = ({
8547
8775
  onOpenChange
8548
8776
  }) => {
8549
8777
  const controlProps = {
8550
- ...(0, import_type_guards26.isNotNil)(onOpenChange) && (0, import_type_guards26.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8778
+ ...(0, import_type_guards27.isNotNil)(onOpenChange) && (0, import_type_guards27.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8551
8779
  };
8552
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledRoot, { ...controlProps, children });
8780
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledRoot, { ...controlProps, children });
8553
8781
  };
8554
8782
  Collapsible.displayName = "Collapsible";
8555
8783
 
8556
8784
  // src/components/Collapsible/CollapsibleTrigger.tsx
8557
- var import_react31 = require("react");
8785
+ var import_react35 = require("react");
8558
8786
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
8559
- var import_jsx_runtime210 = require("react/jsx-runtime");
8787
+ var import_jsx_runtime214 = require("react/jsx-runtime");
8560
8788
  var CollapsibleTrigger = ({ children }) => {
8561
- import_react31.Children.only(children);
8562
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8789
+ import_react35.Children.only(children);
8790
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8563
8791
  };
8564
8792
 
8565
8793
  // src/components/Collapsible/CollapsibleContent.tsx
8566
- var import_styled_components38 = __toESM(require("styled-components"));
8794
+ var import_styled_components41 = __toESM(require("styled-components"));
8567
8795
  var import_react_collapsible3 = require("@radix-ui/react-collapsible");
8568
- var import_type_guards27 = require("@wistia/type-guards");
8569
- var import_jsx_runtime211 = require("react/jsx-runtime");
8570
- var ClampedContent = import_styled_components38.default.div`
8796
+ var import_type_guards28 = require("@wistia/type-guards");
8797
+ var import_jsx_runtime215 = require("react/jsx-runtime");
8798
+ var ClampedContent = import_styled_components41.default.div`
8571
8799
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
8572
8800
  `;
8573
8801
  var CollapsibleContent = ({ clamp, children }) => {
8574
- if ((0, import_type_guards27.isNotUndefined)(clamp)) {
8575
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8802
+ if ((0, import_type_guards28.isNotUndefined)(clamp)) {
8803
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8576
8804
  ClampedContent,
8577
8805
  {
8578
8806
  $clamp: clamp,
@@ -8581,147 +8809,18 @@ var CollapsibleContent = ({ clamp, children }) => {
8581
8809
  }
8582
8810
  );
8583
8811
  }
8584
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(import_jsx_runtime211.Fragment, { children: [
8812
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(import_jsx_runtime215.Fragment, { children: [
8585
8813
  children,
8586
8814
  " "
8587
8815
  ] }) });
8588
8816
  };
8589
8817
 
8590
8818
  // src/components/DataCards/DataCard.tsx
8591
- var import_react33 = require("react");
8592
- var import_styled_components40 = __toESM(require("styled-components"));
8819
+ var import_react36 = require("react");
8820
+ var import_styled_components42 = __toESM(require("styled-components"));
8593
8821
  var import_type_guards29 = require("@wistia/type-guards");
8594
-
8595
- // src/components/Heading/Heading.tsx
8596
- var import_react32 = require("react");
8597
- var import_styled_components39 = __toESM(require("styled-components"));
8598
- var import_type_guards28 = require("@wistia/type-guards");
8599
- var import_jsx_runtime212 = require("react/jsx-runtime");
8600
- var heroStyle = import_styled_components39.css`
8601
- --font-family: var(--wui-typography-heading-hero-family);
8602
- --font-size: var(--wui-typography-heading-hero-size);
8603
- --font-weight: var(--wui-typography-heading-hero-weight);
8604
- --line-height: var(--wui-typography-heading-hero-line-height);
8605
- `;
8606
- var heading1TextStyle = import_styled_components39.css`
8607
- --font-family: var(--wui-typography-heading-1-family);
8608
- --font-size: var(--wui-typography-heading-1-size);
8609
- --font-weight: var(--wui-typography-heading-1-weight);
8610
- --line-height: var(--wui-typography-heading-1-line-height);
8611
- `;
8612
- var heading2TextStyle = import_styled_components39.css`
8613
- --font-family: var(--wui-typography-heading-2-family);
8614
- --font-size: var(--wui-typography-heading-2-size);
8615
- --font-weight: var(--wui-typography-heading-2-weight);
8616
- --line-height: var(--wui-typography-heading-2-line-height);
8617
- `;
8618
- var heading3TextStyle = import_styled_components39.css`
8619
- --font-family: var(--wui-typography-heading-3-family);
8620
- --font-size: var(--wui-typography-heading-3-size);
8621
- --font-weight: var(--wui-typography-heading-3-weight);
8622
- --line-height: var(--wui-typography-heading-3-line-height);
8623
- `;
8624
- var heading4TextStyle = import_styled_components39.css`
8625
- --font-family: var(--wui-typography-heading-4-family);
8626
- --font-size: var(--wui-typography-heading-4-size);
8627
- --font-weight: var(--wui-typography-heading-4-weight);
8628
- --line-height: var(--wui-typography-heading-4-line-height);
8629
- `;
8630
- var heading5TextStyle = import_styled_components39.css`
8631
- --font-family: var(--wui-typography-heading-5-family);
8632
- --font-size: var(--wui-typography-heading-5-size);
8633
- --font-weight: var(--wui-typography-heading-5-weight);
8634
- --line-height: var(--wui-typography-heading-5-line-height);
8635
- `;
8636
- var heading6TextStyle = import_styled_components39.css`
8637
- --font-family: var(--wui-typography-heading-6-family);
8638
- --font-size: var(--wui-typography-heading-6-size);
8639
- --font-weight: var(--wui-typography-heading-6-weight);
8640
- --line-height: var(--wui-typography-heading-6-line-height);
8641
- `;
8642
- var variantStyleMap = {
8643
- hero: heroStyle,
8644
- heading1: heading1TextStyle,
8645
- heading2: heading2TextStyle,
8646
- heading3: heading3TextStyle,
8647
- heading4: heading4TextStyle,
8648
- heading5: heading5TextStyle,
8649
- heading6: heading6TextStyle
8650
- };
8651
- var DEFAULT_ELEMENT2 = "h1";
8652
- var StyledHeading = import_styled_components39.default.div`
8653
- ${({ $colorScheme }) => getColorScheme($colorScheme)};
8654
- font-family: var(--font-family);
8655
- font-size: var(--font-size);
8656
- font-weight: var(--font-weight);
8657
- line-height: var(--line-height);
8658
- color: var(--wui-color-text);
8659
- ${({ $variant }) => variantStyleMap[$variant]}
8660
- ${({ $truncate }) => {
8661
- if ((0, import_type_guards28.isNotNil)($truncate)) {
8662
- return import_styled_components39.css`
8663
- ${ellipsisStyle};
8664
- ${lineClampCss($truncate)};
8665
- `;
8666
- }
8667
- return void 0;
8668
- }}
8669
- ${({ $inline }) => $inline && import_styled_components39.css`
8670
- display: inline-block;
8671
- `}
8672
- ${({ $disabled }) => $disabled && import_styled_components39.css`
8673
- color: var(--wui-color-text-disabled);
8674
- `}
8675
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components39.css`
8676
- user-select: none;
8677
- `}
8678
- ${({ $align }) => import_styled_components39.css`
8679
- text-align: ${$align};
8680
- `}
8681
- margin: 0;
8682
- `;
8683
- var variantElementMap = {
8684
- hero: DEFAULT_ELEMENT2,
8685
- heading1: DEFAULT_ELEMENT2,
8686
- heading2: "h2",
8687
- heading3: "h3",
8688
- heading4: "h4",
8689
- heading5: "h5",
8690
- heading6: "h6"
8691
- };
8692
- var HeadingComponent = (0, import_react32.forwardRef)(
8693
- ({
8694
- align = "left",
8695
- colorScheme = "inherit",
8696
- disabled = false,
8697
- inline = false,
8698
- preventUserSelect = false,
8699
- truncate,
8700
- variant = "heading1",
8701
- renderAs,
8702
- ...props
8703
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8704
- StyledHeading,
8705
- {
8706
- ref,
8707
- $align: align,
8708
- $colorScheme: colorScheme,
8709
- $disabled: disabled,
8710
- $inline: inline,
8711
- $preventUserSelect: preventUserSelect,
8712
- $truncate: truncate,
8713
- $variant: variant,
8714
- as: renderAs ?? variantElementMap[variant],
8715
- ...props
8716
- }
8717
- )
8718
- );
8719
- HeadingComponent.displayName = "Heading";
8720
- var Heading = makePolymorphic(HeadingComponent);
8721
-
8722
- // src/components/DataCards/DataCard.tsx
8723
- var import_jsx_runtime213 = require("react/jsx-runtime");
8724
- var StyledDataCard = import_styled_components40.default.div`
8822
+ var import_jsx_runtime216 = require("react/jsx-runtime");
8823
+ var StyledDataCard = import_styled_components42.default.div`
8725
8824
  display: grid;
8726
8825
  grid-template-areas: 'label slot' 'value value';
8727
8826
  grid-template-rows: auto auto;
@@ -8776,7 +8875,7 @@ var StyledDataCard = import_styled_components40.default.div`
8776
8875
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
8777
8876
  }
8778
8877
  `;
8779
- var shimmer = import_styled_components40.keyframes`
8878
+ var shimmer = import_styled_components42.keyframes`
8780
8879
  0% {
8781
8880
  background-position: 200% 0;
8782
8881
  }
@@ -8784,7 +8883,7 @@ var shimmer = import_styled_components40.keyframes`
8784
8883
  background-position: -200% 0;
8785
8884
  }
8786
8885
  `;
8787
- var LoadingBackground = import_styled_components40.default.div`
8886
+ var LoadingBackground = import_styled_components42.default.div`
8788
8887
  background: linear-gradient(
8789
8888
  90deg,
8790
8889
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -8795,27 +8894,27 @@ var LoadingBackground = import_styled_components40.default.div`
8795
8894
  animation: ${shimmer} 1.5s infinite;
8796
8895
  border-radius: var(--wui-border-radius-01);
8797
8896
  `;
8798
- var StyledLoadingLabel = (0, import_styled_components40.default)(LoadingBackground)`
8897
+ var StyledLoadingLabel = (0, import_styled_components42.default)(LoadingBackground)`
8799
8898
  width: 80px;
8800
8899
  height: var(--wui-typography-heading-6-line-height);
8801
8900
  `;
8802
- var StyledLoadingValue = (0, import_styled_components40.default)(LoadingBackground)`
8901
+ var StyledLoadingValue = (0, import_styled_components42.default)(LoadingBackground)`
8803
8902
  width: 90%;
8804
8903
  height: var(--wui-typography-heading-3-line-height);
8805
8904
  `;
8806
- var StyledLabel2 = (0, import_styled_components40.default)(Heading)`
8905
+ var StyledLabel2 = (0, import_styled_components42.default)(Heading)`
8807
8906
  grid-area: label;
8808
8907
  `;
8809
- var StyledValue = (0, import_styled_components40.default)(Heading)`
8908
+ var StyledValue = (0, import_styled_components42.default)(Heading)`
8810
8909
  grid-area: value;
8811
8910
  `;
8812
- var StyledSlot = import_styled_components40.default.div`
8911
+ var StyledSlot = import_styled_components42.default.div`
8813
8912
  display: flex;
8814
8913
  justify-content: flex-end;
8815
8914
  grid-area: slot;
8816
8915
  align-self: center;
8817
8916
  `;
8818
- var StyledDataCardTrendContainer = import_styled_components40.default.div`
8917
+ var StyledDataCardTrendContainer = import_styled_components42.default.div`
8819
8918
  position: absolute;
8820
8919
  bottom: var(--wui-space-01);
8821
8920
  right: var(--wui-space-01);
@@ -8828,34 +8927,34 @@ var DataCardInner = ({
8828
8927
  isLoading = false,
8829
8928
  trend,
8830
8929
  ...props
8831
- }) => /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
8930
+ }) => /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
8832
8931
  StyledDataCard,
8833
8932
  {
8834
8933
  $colorScheme: colorScheme,
8835
8934
  ...props,
8836
8935
  children: [
8837
- /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8936
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8838
8937
  StyledLabel2,
8839
8938
  {
8840
8939
  renderAs: "dt",
8841
8940
  variant: "heading6",
8842
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingLabel, {}) : label
8941
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledLoadingLabel, {}) : label
8843
8942
  }
8844
8943
  ),
8845
- /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8944
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8846
8945
  StyledValue,
8847
8946
  {
8848
8947
  renderAs: "dd",
8849
8948
  variant: "heading3",
8850
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingValue, {}) : value
8949
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledLoadingValue, {}) : value
8851
8950
  }
8852
8951
  ),
8853
- (0, import_type_guards29.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledSlot, { children: upperRightSlot }),
8854
- (0, import_type_guards29.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledDataCardTrendContainer, { children: trend })
8952
+ (0, import_type_guards29.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledSlot, { children: upperRightSlot }),
8953
+ (0, import_type_guards29.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledDataCardTrendContainer, { children: trend })
8855
8954
  ]
8856
8955
  }
8857
8956
  );
8858
- var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8957
+ var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8859
8958
  Icon,
8860
8959
  {
8861
8960
  "data-wui-data-card-hover-icon": true,
@@ -8863,14 +8962,14 @@ var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8863
8962
  }
8864
8963
  );
8865
8964
  var DataCard = (props) => {
8866
- const ref = (0, import_react33.useRef)(null);
8965
+ const ref = (0, import_react36.useRef)(null);
8867
8966
  if ((0, import_type_guards29.isNotNil)(props.href) || (0, import_type_guards29.isNotNil)(props.onClick)) {
8868
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8967
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8869
8968
  DataCardInner,
8870
8969
  {
8871
8970
  upperRightSlot: props.upperRightSlot ?? DataCardArrowIcon,
8872
8971
  ...props,
8873
- label: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8972
+ label: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8874
8973
  Button,
8875
8974
  {
8876
8975
  ref,
@@ -8885,14 +8984,14 @@ var DataCard = (props) => {
8885
8984
  }
8886
8985
  ) });
8887
8986
  }
8888
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(DataCardInner, { ...props });
8987
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(DataCardInner, { ...props });
8889
8988
  };
8890
8989
  DataCard.displayName = "DataCard";
8891
8990
 
8892
8991
  // src/components/DataCards/DataCards.tsx
8893
- var import_styled_components41 = __toESM(require("styled-components"));
8894
- var import_jsx_runtime214 = require("react/jsx-runtime");
8895
- var StyledDataCards = (0, import_styled_components41.default)(Box)`
8992
+ var import_styled_components43 = __toESM(require("styled-components"));
8993
+ var import_jsx_runtime217 = require("react/jsx-runtime");
8994
+ var StyledDataCards = (0, import_styled_components43.default)(Box)`
8896
8995
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8897
8996
  margin-top: 0; /* Remove default <dl> style */
8898
8997
  > * {
@@ -8906,7 +9005,7 @@ var DataCards = ({
8906
9005
  colorScheme = "inherit",
8907
9006
  ...props
8908
9007
  }) => {
8909
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
9008
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
8910
9009
  StyledDataCards,
8911
9010
  {
8912
9011
  ...props,
@@ -8924,26 +9023,26 @@ var DataCards = ({
8924
9023
  DataCards.displayName = "DataCards";
8925
9024
 
8926
9025
  // src/components/DataCards/DataCardTrend.tsx
8927
- var import_styled_components43 = __toESM(require("styled-components"));
9026
+ var import_styled_components45 = __toESM(require("styled-components"));
8928
9027
 
8929
9028
  // src/components/Text/Text.tsx
8930
- var import_react34 = require("react");
8931
- var import_styled_components42 = __toESM(require("styled-components"));
9029
+ var import_react37 = require("react");
9030
+ var import_styled_components44 = __toESM(require("styled-components"));
8932
9031
  var import_type_guards30 = require("@wistia/type-guards");
8933
- var import_jsx_runtime215 = require("react/jsx-runtime");
8934
- var bodyBoldStyles = import_styled_components42.css`
9032
+ var import_jsx_runtime218 = require("react/jsx-runtime");
9033
+ var bodyBoldStyles = import_styled_components44.css`
8935
9034
  > strong,
8936
9035
  b {
8937
9036
  font-weight: var(--wui-typography-weight-body-bold);
8938
9037
  }
8939
9038
  `;
8940
- var labelBoldStyles = import_styled_components42.css`
9039
+ var labelBoldStyles = import_styled_components44.css`
8941
9040
  > strong,
8942
9041
  b {
8943
9042
  font-weight: var(--wui-typography-weight-label-bold);
8944
9043
  }
8945
9044
  `;
8946
- var body1TextStyle = import_styled_components42.css`
9045
+ var body1TextStyle = import_styled_components44.css`
8947
9046
  --font-family: var(--wui-typography-body-1-family);
8948
9047
  --font-size: var(--wui-typography-body-1-size);
8949
9048
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8951,7 +9050,7 @@ var body1TextStyle = import_styled_components42.css`
8951
9050
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8952
9051
  ${bodyBoldStyles}
8953
9052
  `;
8954
- var body2TextStyle = import_styled_components42.css`
9053
+ var body2TextStyle = import_styled_components44.css`
8955
9054
  --font-family: var(--wui-typography-body-2-family);
8956
9055
  --font-size: var(--wui-typography-body-2-size);
8957
9056
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8959,7 +9058,7 @@ var body2TextStyle = import_styled_components42.css`
8959
9058
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8960
9059
  ${bodyBoldStyles}
8961
9060
  `;
8962
- var body3TextStyle = import_styled_components42.css`
9061
+ var body3TextStyle = import_styled_components44.css`
8963
9062
  --font-family: var(--wui-typography-body-3-family);
8964
9063
  --font-size: var(--wui-typography-body-3-size);
8965
9064
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8967,7 +9066,7 @@ var body3TextStyle = import_styled_components42.css`
8967
9066
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8968
9067
  ${bodyBoldStyles}
8969
9068
  `;
8970
- var body4TextStyle = import_styled_components42.css`
9069
+ var body4TextStyle = import_styled_components44.css`
8971
9070
  --font-family: var(--wui-typography-body-4-family);
8972
9071
  --font-size: var(--wui-typography-body-4-size);
8973
9072
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8975,47 +9074,47 @@ var body4TextStyle = import_styled_components42.css`
8975
9074
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8976
9075
  ${bodyBoldStyles}
8977
9076
  `;
8978
- var label1TextStyle = import_styled_components42.css`
9077
+ var label1TextStyle = import_styled_components44.css`
8979
9078
  --font-family: var(--wui-typography-label-1-family);
8980
9079
  --font-size: var(--wui-typography-label-1-size);
8981
9080
  --font-weight: var(--wui-typography-label-1-weight);
8982
9081
  --line-height: var(--wui-typography-label-1-line-height);
8983
9082
  ${labelBoldStyles}
8984
9083
  `;
8985
- var label2TextStyle = import_styled_components42.css`
9084
+ var label2TextStyle = import_styled_components44.css`
8986
9085
  --font-family: var(--wui-typography-label-2-family);
8987
9086
  --font-size: var(--wui-typography-label-2-size);
8988
9087
  --font-weight: var(--wui-typography-label-2-weight);
8989
9088
  --line-height: var(--wui-typography-label-2-line-height);
8990
9089
  ${labelBoldStyles}
8991
9090
  `;
8992
- var label3TextStyle = import_styled_components42.css`
9091
+ var label3TextStyle = import_styled_components44.css`
8993
9092
  --font-family: var(--wui-typography-label-3-family);
8994
9093
  --font-size: var(--wui-typography-label-3-size);
8995
9094
  --font-weight: var(--wui-typography-label-3-weight);
8996
9095
  --line-height: var(--wui-typography-label-3-line-height);
8997
9096
  ${labelBoldStyles}
8998
9097
  `;
8999
- var label4TextStyle = import_styled_components42.css`
9098
+ var label4TextStyle = import_styled_components44.css`
9000
9099
  --font-family: var(--wui-typography-label-4-family);
9001
9100
  --font-size: var(--wui-typography-label-4-size);
9002
9101
  --font-weight: var(--wui-typography-label-4-weight);
9003
9102
  --line-height: var(--wui-typography-label-4-line-height);
9004
9103
  ${labelBoldStyles}
9005
9104
  `;
9006
- var body1MonoTextStyle = import_styled_components42.css`
9105
+ var body1MonoTextStyle = import_styled_components44.css`
9007
9106
  ${body1TextStyle};
9008
9107
  --font-family: var(--wui-typography-family-mono);
9009
9108
  `;
9010
- var body2MonoTextStyle = import_styled_components42.css`
9109
+ var body2MonoTextStyle = import_styled_components44.css`
9011
9110
  ${body2TextStyle};
9012
9111
  --font-family: var(--wui-typography-family-mono);
9013
9112
  `;
9014
- var body3MonoTextStyle = import_styled_components42.css`
9113
+ var body3MonoTextStyle = import_styled_components44.css`
9015
9114
  ${body3TextStyle};
9016
9115
  --font-family: var(--wui-typography-family-mono);
9017
9116
  `;
9018
- var body4MonoTextStyle = import_styled_components42.css`
9117
+ var body4MonoTextStyle = import_styled_components44.css`
9019
9118
  ${body4TextStyle};
9020
9119
  --font-family: var(--wui-typography-family-mono);
9021
9120
  `;
@@ -9035,22 +9134,22 @@ var variantStyleMap2 = {
9035
9134
  };
9036
9135
  var bodyElement = "p";
9037
9136
  var labelElement = "span";
9038
- var DEFAULT_ELEMENT3 = bodyElement;
9137
+ var DEFAULT_ELEMENT4 = bodyElement;
9039
9138
  var variantElementMap2 = {
9040
- body1: DEFAULT_ELEMENT3,
9041
- body2: DEFAULT_ELEMENT3,
9042
- body3: DEFAULT_ELEMENT3,
9043
- body4: DEFAULT_ELEMENT3,
9044
- body1Mono: DEFAULT_ELEMENT3,
9045
- body2Mono: DEFAULT_ELEMENT3,
9046
- body3Mono: DEFAULT_ELEMENT3,
9047
- body4Mono: DEFAULT_ELEMENT3,
9139
+ body1: DEFAULT_ELEMENT4,
9140
+ body2: DEFAULT_ELEMENT4,
9141
+ body3: DEFAULT_ELEMENT4,
9142
+ body4: DEFAULT_ELEMENT4,
9143
+ body1Mono: DEFAULT_ELEMENT4,
9144
+ body2Mono: DEFAULT_ELEMENT4,
9145
+ body3Mono: DEFAULT_ELEMENT4,
9146
+ body4Mono: DEFAULT_ELEMENT4,
9048
9147
  label1: labelElement,
9049
9148
  label2: labelElement,
9050
9149
  label3: labelElement,
9051
9150
  label4: labelElement
9052
9151
  };
9053
- var StyledText = import_styled_components42.default.div`
9152
+ var StyledText = import_styled_components44.default.div`
9054
9153
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
9055
9154
  --text-color: ${({ $prominence, $disabled }) => {
9056
9155
  if ($disabled) {
@@ -9075,26 +9174,26 @@ var StyledText = import_styled_components42.default.div`
9075
9174
  ${({ $variant }) => variantStyleMap2[$variant]}
9076
9175
  ${({ $truncate }) => {
9077
9176
  if ((0, import_type_guards30.isNotNil)($truncate)) {
9078
- return import_styled_components42.css`
9177
+ return import_styled_components44.css`
9079
9178
  ${ellipsisStyle};
9080
9179
  ${lineClampCss($truncate)};
9081
9180
  `;
9082
9181
  }
9083
9182
  return void 0;
9084
9183
  }}
9085
- ${({ $inline }) => $inline && import_styled_components42.css`
9184
+ ${({ $inline }) => $inline && import_styled_components44.css`
9086
9185
  display: inline-block;
9087
9186
  `}
9088
- ${({ $disabled }) => $disabled && import_styled_components42.css`
9187
+ ${({ $disabled }) => $disabled && import_styled_components44.css`
9089
9188
  --text-color: var(--wui-color-text-disabled);
9090
9189
  `}
9091
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components42.css`
9190
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components44.css`
9092
9191
  user-select: none;
9093
9192
  `}
9094
- ${({ $align }) => import_styled_components42.css`
9193
+ ${({ $align }) => import_styled_components44.css`
9095
9194
  text-align: ${$align};
9096
9195
  `}
9097
- ${({ as }) => as === "p" && import_styled_components42.css`
9196
+ ${({ as }) => as === "p" && import_styled_components44.css`
9098
9197
  display: block;
9099
9198
 
9100
9199
  + p {
@@ -9102,7 +9201,7 @@ var StyledText = import_styled_components42.default.div`
9102
9201
  }
9103
9202
  `}
9104
9203
  `;
9105
- var TextComponent = (0, import_react34.forwardRef)(
9204
+ var TextComponent = (0, import_react37.forwardRef)(
9106
9205
  ({
9107
9206
  align = "left",
9108
9207
  colorScheme = "inherit",
@@ -9115,7 +9214,7 @@ var TextComponent = (0, import_react34.forwardRef)(
9115
9214
  renderAs,
9116
9215
  ...props
9117
9216
  }, ref) => {
9118
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
9217
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9119
9218
  StyledText,
9120
9219
  {
9121
9220
  ref,
@@ -9137,8 +9236,8 @@ TextComponent.displayName = "Text";
9137
9236
  var Text = makePolymorphic(TextComponent);
9138
9237
 
9139
9238
  // src/components/DataCards/DataCardTrend.tsx
9140
- var import_jsx_runtime216 = require("react/jsx-runtime");
9141
- var StyledDataCardTrend = import_styled_components43.default.div`
9239
+ var import_jsx_runtime219 = require("react/jsx-runtime");
9240
+ var StyledDataCardTrend = import_styled_components45.default.div`
9142
9241
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
9143
9242
  background: var(--wui-color-bg-app);
9144
9243
  border-radius: var(--wui-border-radius-rounded);
@@ -9153,8 +9252,8 @@ var DataCardTrend = ({
9153
9252
  children,
9154
9253
  ...props
9155
9254
  }) => {
9156
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
9157
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
9255
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
9256
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9158
9257
  Icon,
9159
9258
  {
9160
9259
  size: "md",
@@ -9162,7 +9261,7 @@ var DataCardTrend = ({
9162
9261
  ...props
9163
9262
  }
9164
9263
  ),
9165
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
9264
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9166
9265
  Text,
9167
9266
  {
9168
9267
  prominence: "secondary",
@@ -9174,22 +9273,22 @@ var DataCardTrend = ({
9174
9273
  };
9175
9274
 
9176
9275
  // src/components/Divider/Divider.tsx
9177
- var import_styled_components44 = __toESM(require("styled-components"));
9178
- var import_jsx_runtime217 = require("react/jsx-runtime");
9179
- var horizontalBorderCss = import_styled_components44.css`
9276
+ var import_styled_components46 = __toESM(require("styled-components"));
9277
+ var import_jsx_runtime220 = require("react/jsx-runtime");
9278
+ var horizontalBorderCss = import_styled_components46.css`
9180
9279
  border-top-color: var(--wui-color-border);
9181
9280
  border-top-style: solid;
9182
9281
  border-top-width: 1px;
9183
9282
  clear: both; /* for horizontal dividers, ensure it clears any floats */
9184
9283
  height: 0;
9185
9284
  `;
9186
- var verticalBorderCss = import_styled_components44.css`
9285
+ var verticalBorderCss = import_styled_components46.css`
9187
9286
  background-color: var(--wui-color-border);
9188
9287
  max-width: 1px;
9189
9288
  min-height: 100%;
9190
9289
  width: 1px;
9191
9290
  `;
9192
- var DividerComponent = import_styled_components44.default.div`
9291
+ var DividerComponent = import_styled_components46.default.div`
9193
9292
  ${({ $orientation }) => {
9194
9293
  switch ($orientation) {
9195
9294
  case "vertical":
@@ -9201,7 +9300,7 @@ var DividerComponent = import_styled_components44.default.div`
9201
9300
  }}
9202
9301
  `;
9203
9302
  var Divider = ({ orientation = "horizontal", ...props }) => {
9204
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
9303
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9205
9304
  DividerComponent,
9206
9305
  {
9207
9306
  $orientation: orientation,
@@ -9214,14 +9313,14 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
9214
9313
  Divider.displayName = "Divider";
9215
9314
 
9216
9315
  // src/components/EditableHeading/EditableHeading.tsx
9217
- var import_styled_components48 = __toESM(require("styled-components"));
9218
- var import_react36 = require("react");
9316
+ var import_styled_components50 = __toESM(require("styled-components"));
9317
+ var import_react39 = require("react");
9219
9318
 
9220
9319
  // src/components/Tooltip/Tooltip.tsx
9221
9320
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
9222
- var import_styled_components45 = __toESM(require("styled-components"));
9223
- var import_jsx_runtime218 = require("react/jsx-runtime");
9224
- var hide = import_styled_components45.keyframes`
9321
+ var import_styled_components47 = __toESM(require("styled-components"));
9322
+ var import_jsx_runtime221 = require("react/jsx-runtime");
9323
+ var hide = import_styled_components47.keyframes`
9225
9324
  from {
9226
9325
  opacity: 1;
9227
9326
  }
@@ -9229,7 +9328,7 @@ var hide = import_styled_components45.keyframes`
9229
9328
  opacity: 0;
9230
9329
  }
9231
9330
  `;
9232
- var slideDownAndFade = import_styled_components45.keyframes`
9331
+ var slideDownAndFade = import_styled_components47.keyframes`
9233
9332
  from {
9234
9333
  opacity: 0;
9235
9334
  transform: translateY(-6px);
@@ -9239,7 +9338,7 @@ var slideDownAndFade = import_styled_components45.keyframes`
9239
9338
  transform: translateY(0);
9240
9339
  }
9241
9340
  `;
9242
- var slideLeftAndFade = import_styled_components45.keyframes`
9341
+ var slideLeftAndFade = import_styled_components47.keyframes`
9243
9342
  from {
9244
9343
  opacity: 0;
9245
9344
  transform: translateX(6px);
@@ -9249,7 +9348,7 @@ var slideLeftAndFade = import_styled_components45.keyframes`
9249
9348
  transform: translateX(0);
9250
9349
  }
9251
9350
  `;
9252
- var slideUpAndFade = import_styled_components45.keyframes`
9351
+ var slideUpAndFade = import_styled_components47.keyframes`
9253
9352
  from {
9254
9353
  opacity: 0;
9255
9354
  transform: translateY(6px);
@@ -9259,7 +9358,7 @@ var slideUpAndFade = import_styled_components45.keyframes`
9259
9358
  transform: translateY(0);
9260
9359
  }
9261
9360
  `;
9262
- var slideRightAndFade = import_styled_components45.keyframes`
9361
+ var slideRightAndFade = import_styled_components47.keyframes`
9263
9362
  from {
9264
9363
  opacity: 0;
9265
9364
  transform: translateX(-6px);
@@ -9269,7 +9368,7 @@ var slideRightAndFade = import_styled_components45.keyframes`
9269
9368
  transform: translateX(0);
9270
9369
  }
9271
9370
  `;
9272
- var StyledContent = (0, import_styled_components45.default)(import_react_tooltip2.Content)`
9371
+ var StyledContent = (0, import_styled_components47.default)(import_react_tooltip2.Content)`
9273
9372
  --tooltip-font-family: var(--wui-typography-family-default);
9274
9373
  --tooltip-border-radius: var(--wui-border-radius-05);
9275
9374
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -9331,21 +9430,21 @@ var Tooltip = ({
9331
9430
  if (forceOpen === true) {
9332
9431
  rootProps.open = true;
9333
9432
  }
9334
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9433
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
9335
9434
  import_react_tooltip2.Root,
9336
9435
  {
9337
9436
  delayDuration: delay,
9338
9437
  ...rootProps,
9339
9438
  children: [
9340
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
9341
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9439
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
9440
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
9342
9441
  StyledContent,
9343
9442
  {
9344
9443
  side: direction,
9345
9444
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
9346
9445
  children: [
9347
9446
  content,
9348
- !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9447
+ !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9349
9448
  "svg",
9350
9449
  {
9351
9450
  fill: "var(--tooltip-bg)",
@@ -9354,7 +9453,7 @@ var Tooltip = ({
9354
9453
  viewBox: "0 0 12 8",
9355
9454
  width: "12",
9356
9455
  xmlns: "http://www.w3.org/2000/svg",
9357
- children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
9456
+ children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
9358
9457
  }
9359
9458
  ) }) : null
9360
9459
  ]
@@ -9367,13 +9466,13 @@ var Tooltip = ({
9367
9466
  Tooltip.displayName = "Tooltip";
9368
9467
 
9369
9468
  // src/components/Input/Input.tsx
9370
- var import_react35 = require("react");
9371
- var import_styled_components47 = __toESM(require("styled-components"));
9469
+ var import_react38 = require("react");
9470
+ var import_styled_components49 = __toESM(require("styled-components"));
9372
9471
  var import_type_guards31 = require("@wistia/type-guards");
9373
9472
 
9374
9473
  // src/css/sharedStyles/inputCssVariables.ts
9375
- var import_styled_components46 = require("styled-components");
9376
- var inputCssVariables = import_styled_components46.css`
9474
+ var import_styled_components48 = require("styled-components");
9475
+ var inputCssVariables = import_styled_components48.css`
9377
9476
  /* Colors */
9378
9477
  --wui-input-color-bg: var(--wui-color-bg-surface);
9379
9478
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -9399,8 +9498,8 @@ var inputCssVariables = import_styled_components46.css`
9399
9498
  `;
9400
9499
 
9401
9500
  // src/components/Input/Input.tsx
9402
- var import_jsx_runtime219 = require("react/jsx-runtime");
9403
- var inputStyles = import_styled_components47.css`
9501
+ var import_jsx_runtime222 = require("react/jsx-runtime");
9502
+ var inputStyles = import_styled_components49.css`
9404
9503
  ${inputCssVariables}
9405
9504
  input,
9406
9505
  textarea {
@@ -9435,7 +9534,7 @@ var inputStyles = import_styled_components47.css`
9435
9534
  }
9436
9535
  }
9437
9536
  `;
9438
- var StyledInputContainer = import_styled_components47.default.div`
9537
+ var StyledInputContainer = import_styled_components49.default.div`
9439
9538
  display: inline-flex;
9440
9539
  position: relative;
9441
9540
  ${inputStyles};
@@ -9502,7 +9601,7 @@ var StyledInputContainer = import_styled_components47.default.div`
9502
9601
  padding-right: 32px;
9503
9602
  }
9504
9603
  `;
9505
- var Input = (0, import_react35.forwardRef)(
9604
+ var Input = (0, import_react38.forwardRef)(
9506
9605
  ({
9507
9606
  fullWidth = true,
9508
9607
  monospace = false,
@@ -9512,24 +9611,24 @@ var Input = (0, import_react35.forwardRef)(
9512
9611
  rightIcon,
9513
9612
  ...props
9514
9613
  }, externalRef) => {
9515
- const internalRef = (0, import_react35.useRef)();
9614
+ const internalRef = (0, import_react38.useRef)();
9516
9615
  const ref = (
9517
9616
  // eslint-disable-next-line react-compiler/react-compiler
9518
9617
  (0, import_type_guards31.isNotNil)(externalRef) && (0, import_type_guards31.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
9519
9618
  );
9520
9619
  let leftIconToDisplay = leftIcon;
9521
9620
  if ((0, import_type_guards31.isNil)(leftIcon) && type === "search") {
9522
- leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon, { type: "search" });
9621
+ leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon, { type: "search" });
9523
9622
  }
9524
9623
  if ((0, import_type_guards31.isNotNil)(leftIconToDisplay)) {
9525
- leftIconToDisplay = (0, import_react35.cloneElement)(leftIconToDisplay, {
9624
+ leftIconToDisplay = (0, import_react38.cloneElement)(leftIconToDisplay, {
9526
9625
  size: "md",
9527
9626
  className: "wui-input-left-icon"
9528
9627
  });
9529
9628
  }
9530
9629
  let rightIconToDisplay = rightIcon;
9531
9630
  if ((0, import_type_guards31.isNotNil)(rightIconToDisplay)) {
9532
- rightIconToDisplay = (0, import_react35.cloneElement)(rightIconToDisplay, {
9631
+ rightIconToDisplay = (0, import_react38.cloneElement)(rightIconToDisplay, {
9533
9632
  size: "md",
9534
9633
  className: "wui-input-right-icon"
9535
9634
  });
@@ -9544,21 +9643,21 @@ var Input = (0, import_react35.forwardRef)(
9544
9643
  });
9545
9644
  }
9546
9645
  };
9547
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
9646
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
9548
9647
  StyledInputContainer,
9549
9648
  {
9550
9649
  $fullWidth: fullWidth,
9551
9650
  $monospace: monospace,
9552
9651
  children: [
9553
9652
  leftIconToDisplay ?? null,
9554
- type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9653
+ type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9555
9654
  "textarea",
9556
9655
  {
9557
9656
  ...props,
9558
9657
  ref,
9559
9658
  onFocus: handleFocus2
9560
9659
  }
9561
- ) : /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9660
+ ) : /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9562
9661
  "input",
9563
9662
  {
9564
9663
  ...props,
@@ -9576,8 +9675,8 @@ var Input = (0, import_react35.forwardRef)(
9576
9675
  Input.displayName = "Input";
9577
9676
 
9578
9677
  // src/components/EditableHeading/EditableHeading.tsx
9579
- var import_jsx_runtime220 = require("react/jsx-runtime");
9580
- var StyledInput = (0, import_styled_components48.default)(Input)`
9678
+ var import_jsx_runtime223 = require("react/jsx-runtime");
9679
+ var StyledInput = (0, import_styled_components50.default)(Input)`
9581
9680
  :not([rows]) {
9582
9681
  min-height: unset;
9583
9682
  }
@@ -9594,7 +9693,7 @@ var StyledInput = (0, import_styled_components48.default)(Input)`
9594
9693
  height: ${({ $height }) => `${$height}px`};
9595
9694
  }
9596
9695
  `;
9597
- var editableStyles = import_styled_components48.css`
9696
+ var editableStyles = import_styled_components50.css`
9598
9697
  &:has(+ :focus-within) {
9599
9698
  background: var(--wui-color-bg-surface-hover);
9600
9699
  }
@@ -9604,7 +9703,7 @@ var editableStyles = import_styled_components48.css`
9604
9703
  cursor: pointer;
9605
9704
  }
9606
9705
  `;
9607
- var StyledHeading2 = (0, import_styled_components48.default)(Heading)`
9706
+ var StyledHeading2 = (0, import_styled_components50.default)(Heading)`
9608
9707
  width: 100%;
9609
9708
  border-radius: var(--wui-border-radius-02);
9610
9709
  padding: var(--wui-space-02);
@@ -9621,11 +9720,11 @@ var EditableHeading = ({
9621
9720
  __forceEditing = false,
9622
9721
  editingDisabled = false
9623
9722
  }) => {
9624
- const [isEditing, setIsEditing] = (0, import_react36.useState)(false);
9625
- const [value, setValue] = (0, import_react36.useState)(children);
9626
- const [previousValue, setPreviousValue] = (0, import_react36.useState)(children);
9627
- const [headingHeight, setHeadingHeight] = (0, import_react36.useState)("60");
9628
- const headingRef = (0, import_react36.useRef)(null);
9723
+ const [isEditing, setIsEditing] = (0, import_react39.useState)(false);
9724
+ const [value, setValue] = (0, import_react39.useState)(children);
9725
+ const [previousValue, setPreviousValue] = (0, import_react39.useState)(children);
9726
+ const [headingHeight, setHeadingHeight] = (0, import_react39.useState)("60");
9727
+ const headingRef = (0, import_react39.useRef)(null);
9629
9728
  const handleSetEditing = (editing) => {
9630
9729
  if (editingDisabled) return;
9631
9730
  if (editing && headingRef.current) {
@@ -9658,7 +9757,7 @@ var EditableHeading = ({
9658
9757
  handleSetEditing(false);
9659
9758
  }
9660
9759
  };
9661
- const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9760
+ const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9662
9761
  StyledHeading2,
9663
9762
  {
9664
9763
  ref: headingRef,
@@ -9672,7 +9771,7 @@ var EditableHeading = ({
9672
9771
  return HeadingComponent2;
9673
9772
  }
9674
9773
  if (isEditing || __forceEditing) {
9675
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9774
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9676
9775
  StyledInput,
9677
9776
  {
9678
9777
  $height: headingHeight,
@@ -9690,65 +9789,31 @@ var EditableHeading = ({
9690
9789
  }
9691
9790
  );
9692
9791
  }
9693
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
9694
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
9695
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9792
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(import_jsx_runtime223.Fragment, { children: [
9793
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
9794
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9696
9795
  "button",
9697
9796
  {
9698
9797
  "aria-label": ariaLabel,
9699
9798
  onClick: () => handleSetEditing(true),
9700
- type: "button"
9701
- }
9702
- ) })
9703
- ] });
9704
- };
9705
-
9706
- // src/components/Form/Form.tsx
9707
- var import_react38 = require("react");
9708
- var import_styled_components50 = __toESM(require("styled-components"));
9709
- var import_type_guards32 = require("@wistia/type-guards");
9710
-
9711
- // src/components/Stack/Stack.tsx
9712
- var import_react37 = require("react");
9713
- var import_styled_components49 = __toESM(require("styled-components"));
9714
- var import_jsx_runtime221 = require("react/jsx-runtime");
9715
- var DEFAULT_ELEMENT4 = "div";
9716
- var StyledStack = import_styled_components49.default.div`
9717
- display: flex;
9718
- flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
9719
- gap: ${({ $gap }) => `var(--wui-${$gap})`};
9720
- align-items: ${({ $alignItems }) => $alignItems};
9721
- `;
9722
- var StackComponent = (0, import_react37.forwardRef)(
9723
- ({ renderAs, direction = "vertical", gap = "space-02", alignItems = "stretch", ...props }, ref) => {
9724
- const responsiveGap = useResponsiveProp(gap);
9725
- const responsiveDirection = useResponsiveProp(direction);
9726
- const responsiveAlignItems = useResponsiveProp(alignItems);
9727
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9728
- StyledStack,
9729
- {
9730
- ref,
9731
- $alignItems: responsiveAlignItems,
9732
- $direction: responsiveDirection,
9733
- $gap: responsiveGap,
9734
- as: renderAs ?? DEFAULT_ELEMENT4,
9735
- ...props
9799
+ type: "button"
9736
9800
  }
9737
- );
9738
- }
9739
- );
9740
- StackComponent.displayName = "Stack";
9741
- var Stack = makePolymorphic(StackComponent);
9801
+ ) })
9802
+ ] });
9803
+ };
9742
9804
 
9743
9805
  // src/components/Form/Form.tsx
9744
- var import_jsx_runtime222 = require("react/jsx-runtime");
9745
- var StyledForm = import_styled_components50.default.form`
9806
+ var import_react40 = require("react");
9807
+ var import_styled_components51 = __toESM(require("styled-components"));
9808
+ var import_type_guards32 = require("@wistia/type-guards");
9809
+ var import_jsx_runtime224 = require("react/jsx-runtime");
9810
+ var StyledForm = import_styled_components51.default.form`
9746
9811
  --form-default-width: 690px;
9747
9812
 
9748
9813
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9749
9814
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9750
9815
  `;
9751
- var FormContext = (0, import_react38.createContext)({
9816
+ var FormContext = (0, import_react40.createContext)({
9752
9817
  values: {},
9753
9818
  errors: {},
9754
9819
  hasSubmitted: false,
@@ -9764,11 +9829,11 @@ var FormComponent = ({
9764
9829
  fullWidth = false,
9765
9830
  ...props
9766
9831
  }, forwardedRef) => {
9767
- const [errors, setErrors] = (0, import_react38.useState)({});
9768
- const [hasSubmitted, setHasSubmitted] = (0, import_react38.useState)(false);
9769
- const innerRef = (0, import_react38.useRef)();
9832
+ const [errors, setErrors] = (0, import_react40.useState)({});
9833
+ const [hasSubmitted, setHasSubmitted] = (0, import_react40.useState)(false);
9834
+ const innerRef = (0, import_react40.useRef)();
9770
9835
  const ref = forwardedRef ?? innerRef;
9771
- const autoId = (0, import_react38.useId)();
9836
+ const autoId = (0, import_react40.useId)();
9772
9837
  const id = props.id ?? autoId;
9773
9838
  const handleValidate = (nextFormData) => {
9774
9839
  const nextData = Object.fromEntries(nextFormData.entries());
@@ -9810,7 +9875,7 @@ var FormComponent = ({
9810
9875
  void action(null);
9811
9876
  }
9812
9877
  };
9813
- const context = (0, import_react38.useMemo)(() => {
9878
+ const context = (0, import_react40.useMemo)(() => {
9814
9879
  return {
9815
9880
  values,
9816
9881
  errors,
@@ -9821,7 +9886,7 @@ var FormComponent = ({
9821
9886
  }, [labelPosition, values, errors, id, hasSubmitted]);
9822
9887
  return (
9823
9888
  // @ts-expect-error - generic context providers are a giant pain
9824
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9889
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9825
9890
  Stack,
9826
9891
  {
9827
9892
  ...props,
@@ -9839,15 +9904,15 @@ var FormComponent = ({
9839
9904
  );
9840
9905
  };
9841
9906
  FormComponent.displayName = "Form";
9842
- var Form = (0, import_react38.forwardRef)(FormComponent);
9907
+ var Form = (0, import_react40.forwardRef)(FormComponent);
9843
9908
 
9844
9909
  // src/components/Form/useFormState.tsx
9845
- var import_react39 = require("react");
9910
+ var import_react41 = require("react");
9846
9911
  var useFormState = (action, initialData = {}) => {
9847
- const [data, setData] = (0, import_react39.useState)(initialData);
9848
- const [isPending, setIsPending] = (0, import_react39.useState)(false);
9849
- const [error, setError] = (0, import_react39.useState)(null);
9850
- const formAction = (0, import_react39.useCallback)(
9912
+ const [data, setData] = (0, import_react41.useState)(initialData);
9913
+ const [isPending, setIsPending] = (0, import_react41.useState)(false);
9914
+ const [error, setError] = (0, import_react41.useState)(null);
9915
+ const formAction = (0, import_react41.useCallback)(
9851
9916
  async (nextFormData) => {
9852
9917
  if (nextFormData === null) {
9853
9918
  setData(initialData);
@@ -9878,23 +9943,23 @@ var useFormState = (action, initialData = {}) => {
9878
9943
  };
9879
9944
 
9880
9945
  // src/components/Form/FormErrorSummary.tsx
9881
- var import_react40 = require("react");
9946
+ var import_react42 = require("react");
9882
9947
  var import_type_guards33 = require("@wistia/type-guards");
9883
- var import_jsx_runtime223 = require("react/jsx-runtime");
9948
+ var import_jsx_runtime225 = require("react/jsx-runtime");
9884
9949
  var ErrorItem = ({ name, error, formId }) => {
9885
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9950
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9886
9951
  };
9887
9952
  var FormErrorSummary = ({ description }) => {
9888
- const ref = (0, import_react40.useRef)(null);
9889
- const { formId, errors, hasSubmitted } = (0, import_react40.useContext)(FormContext);
9953
+ const ref = (0, import_react42.useRef)(null);
9954
+ const { formId, errors, hasSubmitted } = (0, import_react42.useContext)(FormContext);
9890
9955
  const isValid = Object.keys(errors).length === 0;
9891
9956
  if (isValid || !hasSubmitted) {
9892
9957
  return null;
9893
9958
  }
9894
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)("div", { ref, children: [
9895
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("p", { children: description }),
9896
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards33.isNotUndefined)(error)).map(
9897
- ([name, error]) => (0, import_type_guards33.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9959
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)("div", { ref, children: [
9960
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("p", { children: description }),
9961
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards33.isNotUndefined)(error)).map(
9962
+ ([name, error]) => (0, import_type_guards33.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9898
9963
  ErrorItem,
9899
9964
  {
9900
9965
  error: err,
@@ -9902,7 +9967,7 @@ var FormErrorSummary = ({ description }) => {
9902
9967
  name
9903
9968
  },
9904
9969
  err
9905
- )) : /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9970
+ )) : /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9906
9971
  ErrorItem,
9907
9972
  {
9908
9973
  error: error ?? "",
@@ -9921,9 +9986,9 @@ var import_styled_components53 = __toESM(require("styled-components"));
9921
9986
  var import_type_guards34 = require("@wistia/type-guards");
9922
9987
 
9923
9988
  // src/components/Label/Label.tsx
9924
- var import_styled_components51 = __toESM(require("styled-components"));
9925
- var import_jsx_runtime224 = require("react/jsx-runtime");
9926
- var requiredStyle = import_styled_components51.css`
9989
+ var import_styled_components52 = __toESM(require("styled-components"));
9990
+ var import_jsx_runtime226 = require("react/jsx-runtime");
9991
+ var requiredStyle = import_styled_components52.css`
9927
9992
  &::after {
9928
9993
  color: var(--wui-color-text-error);
9929
9994
  display: inline;
@@ -9931,10 +9996,10 @@ var requiredStyle = import_styled_components51.css`
9931
9996
  content: '*';
9932
9997
  }
9933
9998
  `;
9934
- var disabledStyle3 = import_styled_components51.css`
9999
+ var disabledStyle3 = import_styled_components52.css`
9935
10000
  color: var(--wui-color-text-disabled);
9936
10001
  `;
9937
- var StyledLabel3 = import_styled_components51.default.label`
10002
+ var StyledLabel3 = import_styled_components52.default.label`
9938
10003
  display: block;
9939
10004
  width: 100%;
9940
10005
  color: var(--wui-color-text);
@@ -9966,7 +10031,7 @@ var Label = ({
9966
10031
  screenReaderOnly = false,
9967
10032
  ...props
9968
10033
  }) => {
9969
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
10034
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9970
10035
  StyledLabel3,
9971
10036
  {
9972
10037
  ...props,
@@ -9980,63 +10045,6 @@ var Label = ({
9980
10045
  };
9981
10046
  Label.displayName = "Label";
9982
10047
 
9983
- // src/components/FormGroup/CheckboxGroup.tsx
9984
- var import_react42 = require("react");
9985
-
9986
- // src/components/FormGroup/FormGroup.tsx
9987
- var import_styled_components52 = __toESM(require("styled-components"));
9988
- var import_react41 = require("react");
9989
- var import_jsx_runtime225 = require("react/jsx-runtime");
9990
- var StyledFieldset = import_styled_components52.default.fieldset`
9991
- border: 0;
9992
- `;
9993
- var StyledLegend = import_styled_components52.default.legend`
9994
- margin-bottom: var(--space-01);
9995
- `;
9996
- var FormGroup = ({ children, label, ...props }) => {
9997
- const ref = (0, import_react41.useRef)();
9998
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
9999
- Stack,
10000
- {
10001
- ...props,
10002
- ref,
10003
- renderAs: StyledFieldset,
10004
- children: [
10005
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
10006
- Heading,
10007
- {
10008
- renderAs: StyledLegend,
10009
- variant: "heading5",
10010
- children: label
10011
- }
10012
- ),
10013
- children
10014
- ]
10015
- }
10016
- );
10017
- };
10018
- FormGroup.displayName = "FormGroup";
10019
-
10020
- // src/components/FormGroup/CheckboxGroup.tsx
10021
- var import_jsx_runtime226 = require("react/jsx-runtime");
10022
- var CheckboxGroupContext = (0, import_react42.createContext)(null);
10023
- var CheckboxGroup = ({
10024
- children,
10025
- name,
10026
- onChange,
10027
- value,
10028
- ...props
10029
- }) => {
10030
- const context = (0, import_react42.useMemo)(() => {
10031
- return {
10032
- name,
10033
- onChange
10034
- };
10035
- }, [name, onChange]);
10036
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(FormGroup, { ...props, children }) });
10037
- };
10038
- CheckboxGroup.displayName = "CheckboxGroup";
10039
-
10040
10048
  // src/components/FormField/FormField.tsx
10041
10049
  var import_jsx_runtime227 = require("react/jsx-runtime");
10042
10050
  var StyledFormField = import_styled_components53.default.div`
@@ -10181,6 +10189,9 @@ FormField.displayName = "FormField";
10181
10189
  var import_react44 = require("react");
10182
10190
  var import_jsx_runtime228 = require("react/jsx-runtime");
10183
10191
  var RadioGroupContext = (0, import_react44.createContext)(null);
10192
+ var useRadioGroup = () => {
10193
+ return (0, import_react44.useContext)(RadioGroupContext);
10194
+ };
10184
10195
  var RadioGroup = ({
10185
10196
  children,
10186
10197
  name,
@@ -11629,6 +11640,11 @@ var Radio = (0, import_react56.forwardRef)(
11629
11640
  }, ref) => {
11630
11641
  const generatedId = (0, import_react56.useId)();
11631
11642
  const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11643
+ const radioGroupContext = useRadioGroup();
11644
+ const contextName = radioGroupContext?.name;
11645
+ const contextOnChange = radioGroupContext?.onChange;
11646
+ const radioName = name ?? contextName;
11647
+ const handleOnChange = onChange ?? contextOnChange;
11632
11648
  return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
11633
11649
  StyledRadioWrapper,
11634
11650
  {
@@ -11643,8 +11659,8 @@ var Radio = (0, import_react56.forwardRef)(
11643
11659
  checked,
11644
11660
  disabled,
11645
11661
  id: computedId,
11646
- name,
11647
- onChange,
11662
+ name: radioName,
11663
+ onChange: handleOnChange,
11648
11664
  required,
11649
11665
  type: "radio",
11650
11666
  value
@@ -11842,7 +11858,7 @@ var segmentedControlItemStyles = import_styled_components73.css`
11842
11858
  outline: 2px solid var(--wui-color-focus-ring);
11843
11859
  }
11844
11860
 
11845
- &:hover:not([data-state='on'], [data-state='active']) {
11861
+ &:hover:not([data-state='on'], [data-state='active'], [aria-selected='true']) {
11846
11862
  background-color: var(--wui-color-bg-surface-secondary-hover);
11847
11863
  }
11848
11864
 
@@ -12401,64 +12417,8 @@ var TableRow = ({ children, ...props }) => {
12401
12417
  };
12402
12418
 
12403
12419
  // src/components/Tabs/Tabs.tsx
12404
- var import_react69 = require("react");
12405
- var import_react_tabs4 = require("@radix-ui/react-tabs");
12406
- var import_type_guards51 = require("@wistia/type-guards");
12407
- var import_styled_components88 = __toESM(require("styled-components"));
12408
-
12409
- // src/components/Tabs/TabPanel.tsx
12410
- var import_styled_components84 = __toESM(require("styled-components"));
12411
12420
  var import_react_tabs = require("@radix-ui/react-tabs");
12412
- var import_jsx_runtime264 = require("react/jsx-runtime");
12413
- var StyledTabPanel = (0, import_styled_components84.default)(import_react_tabs.Content)`
12414
- display: flex;
12415
- flex-direction: column;
12416
- `;
12417
- var TabPanel = ({ children, value, ...props }) => {
12418
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
12419
- StyledTabPanel,
12420
- {
12421
- value,
12422
- ...props,
12423
- children
12424
- }
12425
- );
12426
- };
12427
- TabPanel.displayName = "TabPanel";
12428
-
12429
- // src/components/Tabs/TabList.tsx
12430
- var import_styled_components85 = __toESM(require("styled-components"));
12431
- var import_react_tabs2 = require("@radix-ui/react-tabs");
12432
- var import_jsx_runtime265 = require("react/jsx-runtime");
12433
- var StyledTabList = (0, import_styled_components85.default)(import_react_tabs2.List)`
12434
- ${segmentedControlStyles}
12435
-
12436
- margin-bottom: var(--wui-space-04);
12437
- width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
12438
- align-self: ${({ $fullWidth }) => $fullWidth ? "auto" : "flex-start"};
12439
- `;
12440
- var TabList = ({
12441
- children,
12442
- fullWidth,
12443
- ariaLabel,
12444
- ...props
12445
- }) => {
12446
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
12447
- StyledTabList,
12448
- {
12449
- $fullWidth: fullWidth,
12450
- "aria-label": ariaLabel,
12451
- ...props,
12452
- children
12453
- }
12454
- );
12455
- };
12456
- TabList.displayName = "TabList";
12457
-
12458
- // src/components/Tabs/TabItem.tsx
12459
12421
  var import_react67 = require("react");
12460
- var import_styled_components86 = __toESM(require("styled-components"));
12461
- var import_react_tabs3 = require("@radix-ui/react-tabs");
12462
12422
  var import_type_guards50 = require("@wistia/type-guards");
12463
12423
 
12464
12424
  // src/components/Tabs/useTabsValue.tsx
@@ -12473,22 +12433,114 @@ var useTabsValue = () => {
12473
12433
  return context;
12474
12434
  };
12475
12435
 
12476
- // src/components/Tabs/TabItem.tsx
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
12477
12490
  var import_jsx_runtime266 = require("react/jsx-runtime");
12478
- var StyledTabItem = (0, import_styled_components86.default)(import_react_tabs3.Trigger)`
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)`
12479
12528
  ${segmentedControlItemStyles}
12480
12529
 
12481
12530
  &:focus-visible {
12482
12531
  outline: none;
12483
12532
  }
12484
12533
  `;
12485
- var TabItem = (0, import_react67.forwardRef)(
12486
- ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
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) => {
12487
12539
  const selectedValue = useTabsValue();
12488
12540
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
12489
- const buttonRef = (0, import_react67.useRef)(null);
12541
+ const buttonRef = (0, import_react68.useRef)(null);
12490
12542
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
12491
- (0, import_react67.useEffect)(() => {
12543
+ (0, import_react68.useEffect)(() => {
12492
12544
  const buttonElem = buttonRef.current;
12493
12545
  if (!buttonElem) {
12494
12546
  return void 0;
@@ -12513,12 +12565,13 @@ var TabItem = (0, import_react67.forwardRef)(
12513
12565
  resizeObserver.disconnect();
12514
12566
  };
12515
12567
  }, [selectedValue, setSelectedItemMeasurements, value]);
12516
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
12517
- StyledTabItem,
12568
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12569
+ StyledRadixTabsTrigger,
12518
12570
  {
12571
+ ...otherProps,
12519
12572
  ref: combinedRef,
12520
- $hasLabel: (0, import_type_guards50.isNotNil)(label),
12521
- "aria-label": (0, import_type_guards50.isNotNil)(label) ? void 0 : ariaLabel,
12573
+ $hasLabel: (0, import_type_guards51.isNotNil)(label),
12574
+ "aria-label": (0, import_type_guards51.isNotNil)(label) ? void 0 : ariaLabel,
12522
12575
  disabled,
12523
12576
  value,
12524
12577
  children: [
@@ -12529,176 +12582,14 @@ var TabItem = (0, import_react67.forwardRef)(
12529
12582
  );
12530
12583
  }
12531
12584
  );
12532
- TabItem.displayName = "TabItem";
12533
-
12534
- // src/components/Tabs/extractTabItems.ts
12535
- var import_react68 = require("react");
12536
- var extractTabItems = (children) => {
12537
- const tabItems = [];
12538
- import_react68.Children.forEach(children, (child) => {
12539
- if (!(0, import_react68.isValidElement)(child)) {
12540
- return;
12541
- }
12542
- if (typeof child.type !== "string" && child.type.displayName === "Tab") {
12543
- tabItems.push(child);
12544
- } else if (child.type === import_react68.Fragment) {
12545
- const fragmentElement = child;
12546
- tabItems.push(...extractTabItems(fragmentElement.props.children));
12547
- } else if ((child.props.children ?? null) != null) {
12548
- const childChildren = child.props.children;
12549
- tabItems.push(...extractTabItems(childChildren));
12550
- } else {
12551
- }
12552
- });
12553
- return tabItems;
12554
- };
12555
-
12556
- // src/components/Tabs/SelectedItemIndicator.tsx
12557
- var import_styled_components87 = __toESM(require("styled-components"));
12558
- var import_jsx_runtime267 = require("react/jsx-runtime");
12559
- var TabsSelectedItemIndicatorDiv = (0, import_styled_components87.default)(SelectedItemIndicatorDiv)`
12560
- &:has(~ ${StyledTabItem}:focus-visible) {
12561
- outline: 2px solid var(--wui-color-focus-ring);
12562
- }
12563
- `;
12564
- var SelectedItemIndicator2 = () => {
12565
- const { selectedItemIndicatorStyle } = useSelectedItemStyle();
12566
- const selectedValue = useTabsValue();
12567
- if (selectedValue == null) {
12568
- return null;
12569
- }
12570
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12571
- };
12572
-
12573
- // src/components/Tabs/Tabs.tsx
12574
- var import_jsx_runtime268 = require("react/jsx-runtime");
12575
- var TabsContainer = import_styled_components88.default.div`
12576
- display: flex;
12577
- flex-direction: column;
12578
- height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12579
- overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12580
- `;
12581
- var StickyTabContent = import_styled_components88.default.div`
12582
- flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
12583
- overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
12584
- overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12585
- `;
12586
- var StyledTabsRoot = (0, import_styled_components88.default)(import_react_tabs4.Root)`
12587
- display: flex;
12588
- flex-direction: column;
12589
- height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12590
- `;
12591
- var Tabs = (0, import_react69.forwardRef)(
12592
- ({
12593
- children,
12594
- fullWidth = true,
12595
- "aria-label": ariaLabel,
12596
- defaultSelectedValue,
12597
- selectedValue,
12598
- onSelectedValueChange,
12599
- stickyHeaders = true,
12600
- ...props
12601
- }, ref) => {
12602
- const tabItems = extractTabItems(children);
12603
- const [internalSelectedValue, setInternalSelectedValue] = (0, import_react69.useState)(defaultSelectedValue);
12604
- const modeProps = defaultSelectedValue !== void 0 ? {
12605
- defaultValue: defaultSelectedValue,
12606
- onValueChange: setInternalSelectedValue
12607
- } : { value: selectedValue, onValueChange: onSelectedValueChange };
12608
- const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
12609
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12610
- StyledTabsRoot,
12611
- {
12612
- ref,
12613
- $stickyHeaders: stickyHeaders,
12614
- activationMode: "automatic",
12615
- ...props,
12616
- ...modeProps,
12617
- children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(SelectedItemStyleProvider, { children: [
12618
- /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12619
- TabList,
12620
- {
12621
- ariaLabel,
12622
- fullWidth,
12623
- children: [
12624
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(SelectedItemIndicator2, {}),
12625
- tabItems.map((tab) => {
12626
- const {
12627
- value,
12628
- disabled = false,
12629
- icon,
12630
- label,
12631
- "aria-label": ariaLabelForTab
12632
- } = tab.props;
12633
- if ((0, import_type_guards51.isNil)(icon)) {
12634
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12635
- TabItem,
12636
- {
12637
- disabled,
12638
- label,
12639
- value
12640
- },
12641
- value
12642
- );
12643
- }
12644
- if ((0, import_type_guards51.isNotNil)(label)) {
12645
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12646
- TabItem,
12647
- {
12648
- disabled,
12649
- icon,
12650
- label,
12651
- value
12652
- },
12653
- value
12654
- );
12655
- }
12656
- if ((0, import_type_guards51.isNotNil)(ariaLabelForTab)) {
12657
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12658
- TabItem,
12659
- {
12660
- "aria-label": ariaLabelForTab,
12661
- disabled,
12662
- icon,
12663
- value
12664
- },
12665
- value
12666
- );
12667
- }
12668
- throw new Error("A `Tab` with an icon must have either label or aria-label");
12669
- })
12670
- ]
12671
- }
12672
- ),
12673
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12674
- TabPanel,
12675
- {
12676
- value: tab.props.value,
12677
- children: tab.props.children
12678
- },
12679
- tab.props.value
12680
- )) })
12681
- ] }) })
12682
- }
12683
- ) });
12684
- }
12685
- );
12686
- Tabs.displayName = "Tabs";
12687
-
12688
- // src/components/Tabs/Tab.tsx
12689
- var import_react70 = require("react");
12690
- var import_jsx_runtime269 = require("react/jsx-runtime");
12691
- var Tab = (0, import_react70.forwardRef)(({ children }, ref) => {
12692
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("div", { ref, children });
12693
- });
12694
- Tab.displayName = "Tab";
12585
+ TabsTrigger.displayName = "TabsTrigger";
12695
12586
 
12696
12587
  // src/components/Tag/Tag.tsx
12697
- var import_react71 = require("react");
12698
- var import_styled_components89 = __toESM(require("styled-components"));
12588
+ var import_react69 = require("react");
12589
+ var import_styled_components87 = __toESM(require("styled-components"));
12699
12590
  var import_type_guards52 = require("@wistia/type-guards");
12700
- var import_jsx_runtime270 = require("react/jsx-runtime");
12701
- var TagLabel = import_styled_components89.default.a`
12591
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12592
+ var TagLabel = import_styled_components87.default.a`
12702
12593
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12703
12594
  font-size: var(--wui-typography-label-4-size);
12704
12595
  font-weight: var(--wui-typography-label-4-weight);
@@ -12733,14 +12624,14 @@ var TagLabel = import_styled_components89.default.a`
12733
12624
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12734
12625
  }
12735
12626
  `;
12736
- var TagDivider = import_styled_components89.default.div`
12627
+ var TagDivider = import_styled_components87.default.div`
12737
12628
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12738
12629
  border-left: 1px solid var(--wui-color-border);
12739
12630
  display: flex;
12740
12631
  height: 14px;
12741
12632
  width: 1px;
12742
12633
  `;
12743
- var StyledRemoveButton = import_styled_components89.default.button`
12634
+ var StyledRemoveButton = import_styled_components87.default.button`
12744
12635
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12745
12636
  all: unset;
12746
12637
  cursor: pointer;
@@ -12768,7 +12659,7 @@ var StyledRemoveButton = import_styled_components89.default.button`
12768
12659
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12769
12660
  }
12770
12661
  `;
12771
- var StyledTag = import_styled_components89.default.div`
12662
+ var StyledTag = import_styled_components87.default.div`
12772
12663
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12773
12664
  align-items: center;
12774
12665
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12789,40 +12680,40 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12789
12680
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12790
12681
  );
12791
12682
  }
12792
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(import_jsx_runtime270.Fragment, { children: [
12793
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(TagDivider, { $colorScheme: colorScheme }),
12794
- /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
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)(
12795
12686
  StyledRemoveButton,
12796
12687
  {
12797
12688
  $colorScheme: colorScheme,
12798
12689
  onClick: onClickRemove,
12799
12690
  type: "button",
12800
12691
  children: [
12801
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12692
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12802
12693
  Icon,
12803
12694
  {
12804
12695
  size: "sm",
12805
12696
  type: "close"
12806
12697
  }
12807
12698
  ),
12808
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12699
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12809
12700
  ]
12810
12701
  }
12811
12702
  )
12812
12703
  ] });
12813
12704
  };
12814
- var Tag = (0, import_react71.forwardRef)(
12705
+ var Tag = (0, import_react69.forwardRef)(
12815
12706
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12816
12707
  const hasIcon = (0, import_type_guards52.isNotNil)(icon);
12817
12708
  const labelProps = (0, import_type_guards52.isNotNil)(href) && (0, import_type_guards52.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12818
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12709
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12819
12710
  StyledTag,
12820
12711
  {
12821
12712
  ref,
12822
12713
  $colorScheme: colorScheme,
12823
12714
  ...props,
12824
12715
  children: [
12825
- /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12716
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12826
12717
  TagLabel,
12827
12718
  {
12828
12719
  ...labelProps,
@@ -12833,7 +12724,7 @@ var Tag = (0, import_react71.forwardRef)(
12833
12724
  ]
12834
12725
  }
12835
12726
  ),
12836
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12727
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12837
12728
  RemoveButton,
12838
12729
  {
12839
12730
  colorScheme,
@@ -12849,10 +12740,10 @@ var Tag = (0, import_react71.forwardRef)(
12849
12740
  Tag.displayName = "Tag";
12850
12741
 
12851
12742
  // src/components/Thumbnail/ThumbnailBadge.tsx
12852
- var import_styled_components90 = __toESM(require("styled-components"));
12743
+ var import_styled_components88 = __toESM(require("styled-components"));
12853
12744
  var import_type_guards53 = require("@wistia/type-guards");
12854
- var import_jsx_runtime271 = require("react/jsx-runtime");
12855
- var StyledThumbnailBadge = import_styled_components90.default.div`
12745
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12746
+ var StyledThumbnailBadge = import_styled_components88.default.div`
12856
12747
  align-items: center;
12857
12748
  background-color: rgb(0 0 0 / 50%);
12858
12749
  border-radius: var(--wui-border-radius-01);
@@ -12877,23 +12768,23 @@ var StyledThumbnailBadge = import_styled_components90.default.div`
12877
12768
  }
12878
12769
  `;
12879
12770
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12880
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(StyledThumbnailBadge, { ...props, children: [
12771
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(StyledThumbnailBadge, { ...props, children: [
12881
12772
  (0, import_type_guards53.isNotNil)(icon) && icon,
12882
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("span", { children: label })
12773
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("span", { children: label })
12883
12774
  ] });
12884
12775
  };
12885
12776
  ThumbnailBadge.displayName = "ThumbnailBadge";
12886
12777
 
12887
12778
  // src/components/Thumbnail/Thumbnail.tsx
12888
- var import_react72 = require("react");
12889
- var import_styled_components93 = __toESM(require("styled-components"));
12779
+ var import_react70 = require("react");
12780
+ var import_styled_components91 = __toESM(require("styled-components"));
12890
12781
  var import_type_guards56 = require("@wistia/type-guards");
12891
12782
 
12892
12783
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12893
12784
  var import_type_guards54 = require("@wistia/type-guards");
12894
- var import_styled_components91 = require("styled-components");
12785
+ var import_styled_components89 = require("styled-components");
12895
12786
  var gradients = {
12896
- defaultDarkOne: import_styled_components91.css`
12787
+ defaultDarkOne: import_styled_components89.css`
12897
12788
  background-color: #222d66;
12898
12789
  background-image:
12899
12790
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12901,7 +12792,7 @@ var gradients = {
12901
12792
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12902
12793
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12903
12794
  `,
12904
- defaultDarkTwo: import_styled_components91.css`
12795
+ defaultDarkTwo: import_styled_components89.css`
12905
12796
  background-color: #222d66;
12906
12797
  background-image:
12907
12798
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12909,7 +12800,7 @@ var gradients = {
12909
12800
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12910
12801
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12911
12802
  `,
12912
- defaultLightOne: import_styled_components91.css`
12803
+ defaultLightOne: import_styled_components89.css`
12913
12804
  background-color: #ccd5ff;
12914
12805
  background-image:
12915
12806
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12917,13 +12808,13 @@ var gradients = {
12917
12808
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12918
12809
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12919
12810
  `,
12920
- defaultLightTwo: import_styled_components91.css`
12811
+ defaultLightTwo: import_styled_components89.css`
12921
12812
  background-color: #ccd5ff;
12922
12813
  background-image:
12923
12814
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12924
12815
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12925
12816
  `,
12926
- defaultMidOne: import_styled_components91.css`
12817
+ defaultMidOne: import_styled_components89.css`
12927
12818
  background-color: #6b84ff;
12928
12819
  background-image:
12929
12820
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12931,13 +12822,13 @@ var gradients = {
12931
12822
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12932
12823
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12933
12824
  `,
12934
- defaultMidTwo: import_styled_components91.css`
12825
+ defaultMidTwo: import_styled_components89.css`
12935
12826
  background-color: #6b84ff;
12936
12827
  background-image:
12937
12828
  radial-gradient(ellipse at top, #2949e5, transparent),
12938
12829
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12939
12830
  `,
12940
- green: import_styled_components91.css`
12831
+ green: import_styled_components89.css`
12941
12832
  background-color: #fafffa;
12942
12833
  background-image:
12943
12834
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12945,7 +12836,7 @@ var gradients = {
12945
12836
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12946
12837
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12947
12838
  `,
12948
- greenWithPop: import_styled_components91.css`
12839
+ greenWithPop: import_styled_components89.css`
12949
12840
  background-color: #fafffa;
12950
12841
  background-image:
12951
12842
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12953,7 +12844,7 @@ var gradients = {
12953
12844
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12954
12845
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12955
12846
  `,
12956
- pink: import_styled_components91.css`
12847
+ pink: import_styled_components89.css`
12957
12848
  background-color: #fffff0;
12958
12849
  background-image:
12959
12850
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12961,7 +12852,7 @@ var gradients = {
12961
12852
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12962
12853
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12963
12854
  `,
12964
- pinkWithPop: import_styled_components91.css`
12855
+ pinkWithPop: import_styled_components89.css`
12965
12856
  background-color: #fffff0;
12966
12857
  background-image:
12967
12858
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12969,7 +12860,7 @@ var gradients = {
12969
12860
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12970
12861
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12971
12862
  `,
12972
- playfulGradientOne: import_styled_components91.css`
12863
+ playfulGradientOne: import_styled_components89.css`
12973
12864
  background-color: #f7f8ff;
12974
12865
  background-image:
12975
12866
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12977,7 +12868,7 @@ var gradients = {
12977
12868
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12978
12869
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12979
12870
  `,
12980
- playfulGradientTwo: import_styled_components91.css`
12871
+ playfulGradientTwo: import_styled_components89.css`
12981
12872
  background-color: #f7f8ff;
12982
12873
  background-image:
12983
12874
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12985,13 +12876,13 @@ var gradients = {
12985
12876
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12986
12877
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12987
12878
  `,
12988
- purple: import_styled_components91.css`
12879
+ purple: import_styled_components89.css`
12989
12880
  background-color: #f2caff;
12990
12881
  background-image:
12991
12882
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12992
12883
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12993
12884
  `,
12994
- purpleWithPop: import_styled_components91.css`
12885
+ purpleWithPop: import_styled_components89.css`
12995
12886
  background-color: #f2caff;
12996
12887
  background-image:
12997
12888
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12999,7 +12890,7 @@ var gradients = {
12999
12890
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
13000
12891
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
13001
12892
  `,
13002
- yellow: import_styled_components91.css`
12893
+ yellow: import_styled_components89.css`
13003
12894
  background-color: #fffff0;
13004
12895
  background-image:
13005
12896
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -13007,7 +12898,7 @@ var gradients = {
13007
12898
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
13008
12899
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
13009
12900
  `,
13010
- yellowWithPop: import_styled_components91.css`
12901
+ yellowWithPop: import_styled_components89.css`
13011
12902
  background-color: #fffff0;
13012
12903
  background-image:
13013
12904
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -13022,10 +12913,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
13022
12913
  };
13023
12914
 
13024
12915
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
13025
- var import_styled_components92 = __toESM(require("styled-components"));
12916
+ var import_styled_components90 = __toESM(require("styled-components"));
13026
12917
  var import_type_guards55 = require("@wistia/type-guards");
13027
- var import_jsx_runtime272 = require("react/jsx-runtime");
13028
- var ScrubLine = import_styled_components92.default.div`
12918
+ var import_jsx_runtime271 = require("react/jsx-runtime");
12919
+ var ScrubLine = import_styled_components90.default.div`
13029
12920
  position: absolute;
13030
12921
  top: 0;
13031
12922
  height: 100%;
@@ -13127,14 +13018,14 @@ var ThumbnailStoryboardViewer = ({
13127
13018
  backgroundPosition,
13128
13019
  backgroundSize
13129
13020
  };
13130
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
13021
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
13131
13022
  "div",
13132
13023
  {
13133
13024
  ...props,
13134
13025
  style: viewerStyles,
13135
13026
  children: [
13136
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("div", { style: storyboardStyles }),
13137
- showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13027
+ /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { style: storyboardStyles }),
13028
+ showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
13138
13029
  ScrubLine,
13139
13030
  {
13140
13031
  style: {
@@ -13148,20 +13039,20 @@ var ThumbnailStoryboardViewer = ({
13148
13039
  };
13149
13040
 
13150
13041
  // src/components/Thumbnail/Thumbnail.tsx
13151
- var import_jsx_runtime273 = require("react/jsx-runtime");
13152
- var WideThumbnailImage = import_styled_components93.default.img`
13042
+ var import_jsx_runtime272 = require("react/jsx-runtime");
13043
+ var WideThumbnailImage = import_styled_components91.default.img`
13153
13044
  height: 100%;
13154
13045
  object-fit: cover;
13155
13046
  width: 100%;
13156
13047
  `;
13157
- var SquareThumbnailImage = import_styled_components93.default.img`
13048
+ var SquareThumbnailImage = import_styled_components91.default.img`
13158
13049
  backdrop-filter: blur(8px);
13159
13050
  object-fit: contain;
13160
13051
  width: 100%;
13161
13052
  `;
13162
13053
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13163
13054
  if (thumbnailImageType === "wide") {
13164
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13055
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13165
13056
  WideThumbnailImage,
13166
13057
  {
13167
13058
  alt: "",
@@ -13170,7 +13061,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13170
13061
  }
13171
13062
  );
13172
13063
  }
13173
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13064
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13174
13065
  SquareThumbnailImage,
13175
13066
  {
13176
13067
  alt: "",
@@ -13179,7 +13070,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13179
13070
  }
13180
13071
  );
13181
13072
  };
13182
- var StyledThumbnail = import_styled_components93.default.div`
13073
+ var StyledThumbnail = import_styled_components91.default.div`
13183
13074
  background-image: ${({ $backgroundUrl }) => (0, import_type_guards56.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
13184
13075
  ${({ $backgroundUrl, $gradientBackground }) => (
13185
13076
  // if we don't have $backgroundUrl show a gradient
@@ -13208,7 +13099,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
13208
13099
  left: relativeLeft
13209
13100
  };
13210
13101
  };
13211
- var Thumbnail = (0, import_react72.forwardRef)(
13102
+ var Thumbnail = (0, import_react70.forwardRef)(
13212
13103
  ({
13213
13104
  gradientBackground = "defaultMidOne",
13214
13105
  thumbnailImageType = "square",
@@ -13219,17 +13110,17 @@ var Thumbnail = (0, import_react72.forwardRef)(
13219
13110
  height,
13220
13111
  ...props
13221
13112
  }, ref) => {
13222
- const [percent, setPercent] = (0, import_react72.useState)(0);
13223
- const [isMouseOver, setIsMouseOver] = (0, import_react72.useState)(false);
13224
- const [isStoryboardReady, setIsStoryboardReady] = (0, import_react72.useState)(false);
13225
- const storyboardElementRef = (0, import_react72.useRef)(null);
13226
- const [cursorPosition, setCursorPosition] = (0, import_react72.useState)(null);
13227
- const backgroundUrl = (0, import_react72.useMemo)(
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)(
13228
13119
  () => thumbnailImageType === "square" && (0, import_type_guards56.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
13229
13120
  [thumbnailImageType, thumbnailUrl]
13230
13121
  );
13231
13122
  const isScrubbable = (0, import_type_guards56.isNotNil)(storyboard);
13232
- const trackStoryboardLoadStatus = (0, import_react72.useCallback)(() => {
13123
+ const trackStoryboardLoadStatus = (0, import_react70.useCallback)(() => {
13233
13124
  if (storyboardElementRef.current || !storyboard) {
13234
13125
  return storyboardElementRef.current;
13235
13126
  }
@@ -13239,7 +13130,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
13239
13130
  storyboardElementRef.current = asset;
13240
13131
  return storyboardElementRef.current;
13241
13132
  }, [storyboard]);
13242
- const handleMouseMove = (0, import_react72.useCallback)(
13133
+ const handleMouseMove = (0, import_react70.useCallback)(
13243
13134
  (mouseEvent) => {
13244
13135
  if (!isScrubbable) return;
13245
13136
  const elem = mouseEvent.currentTarget;
@@ -13252,15 +13143,15 @@ var Thumbnail = (0, import_react72.forwardRef)(
13252
13143
  },
13253
13144
  [isScrubbable, trackStoryboardLoadStatus]
13254
13145
  );
13255
- const handleMouseOut = (0, import_react72.useCallback)(() => {
13146
+ const handleMouseOut = (0, import_react70.useCallback)(() => {
13256
13147
  if (!isScrubbable) return;
13257
13148
  setIsMouseOver(false);
13258
13149
  setCursorPosition(null);
13259
13150
  }, [isScrubbable]);
13260
- const shouldRenderStoryboard = (0, import_react72.useMemo)(() => {
13151
+ const shouldRenderStoryboard = (0, import_react70.useMemo)(() => {
13261
13152
  return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
13262
13153
  }, [isScrubbable, isMouseOver, isStoryboardReady]);
13263
- const renderStoryboard = (0, import_react72.useCallback)(() => {
13154
+ const renderStoryboard = (0, import_react70.useCallback)(() => {
13264
13155
  if (!storyboard || (0, import_type_guards56.isUndefined)(height) || (0, import_type_guards56.isEmptyString)(height)) return null;
13265
13156
  const {
13266
13157
  url,
@@ -13273,7 +13164,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
13273
13164
  } = storyboard;
13274
13165
  const targetWidth = (0, import_type_guards56.isString)(width) ? parseInt(width, 10) : Number(width);
13275
13166
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
13276
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13167
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13277
13168
  ThumbnailStoryboardViewer,
13278
13169
  {
13279
13170
  cursorPosition: effectiveCursorPosition,
@@ -13293,7 +13184,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
13293
13184
  if (shouldRenderStoryboard) {
13294
13185
  thumbnailContent = renderStoryboard();
13295
13186
  } else if ((0, import_type_guards56.isNotNil)(thumbnailUrl)) {
13296
- thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13187
+ thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13297
13188
  ThumbnailImage,
13298
13189
  {
13299
13190
  thumbnailImageType,
@@ -13303,7 +13194,7 @@ var Thumbnail = (0, import_react72.forwardRef)(
13303
13194
  } else {
13304
13195
  thumbnailContent = null;
13305
13196
  }
13306
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
13197
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
13307
13198
  StyledThumbnail,
13308
13199
  {
13309
13200
  ref,
@@ -13327,14 +13218,14 @@ var Thumbnail = (0, import_react72.forwardRef)(
13327
13218
  Thumbnail.displayName = "Thumbnail";
13328
13219
 
13329
13220
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
13330
- var import_react73 = __toESM(require("react"));
13331
- var import_styled_components94 = __toESM(require("styled-components"));
13221
+ var import_react71 = __toESM(require("react"));
13222
+ var import_styled_components92 = __toESM(require("styled-components"));
13332
13223
  var import_type_guards57 = require("@wistia/type-guards");
13333
- var import_jsx_runtime274 = (
13224
+ var import_jsx_runtime273 = (
13334
13225
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
13335
13226
  require("react/jsx-runtime")
13336
13227
  );
13337
- var StyledThumbnailCollage = import_styled_components94.default.div`
13228
+ var StyledThumbnailCollage = import_styled_components92.default.div`
13338
13229
  display: grid;
13339
13230
  gap: var(--wui-space-01);
13340
13231
  width: 100%;
@@ -13407,15 +13298,15 @@ var ThumbnailCollage = ({
13407
13298
  gradientBackground = "defaultMidOne",
13408
13299
  ...props
13409
13300
  }) => {
13410
- const thumbnailArray = import_react73.default.Children.toArray(children);
13301
+ const thumbnailArray = import_react71.default.Children.toArray(children);
13411
13302
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
13412
13303
  const thumbnails = (0, import_type_guards57.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
13413
- return import_react73.default.cloneElement(child, {
13304
+ return import_react71.default.cloneElement(child, {
13414
13305
  ...child.props,
13415
13306
  children: void 0
13416
13307
  });
13417
13308
  }) : [
13418
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13309
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13419
13310
  Thumbnail,
13420
13311
  {
13421
13312
  gradientBackground,
@@ -13424,7 +13315,7 @@ var ThumbnailCollage = ({
13424
13315
  "fallback"
13425
13316
  )
13426
13317
  ];
13427
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13318
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13428
13319
  StyledThumbnailCollage,
13429
13320
  {
13430
13321
  $gradientBackground: gradientBackground,
@@ -13436,26 +13327,26 @@ var ThumbnailCollage = ({
13436
13327
  };
13437
13328
 
13438
13329
  // src/components/WistiaLogo/WistiaLogo.tsx
13439
- var import_styled_components95 = __toESM(require("styled-components"));
13330
+ var import_styled_components93 = __toESM(require("styled-components"));
13440
13331
  var import_type_guards58 = require("@wistia/type-guards");
13441
- var import_jsx_runtime275 = require("react/jsx-runtime");
13332
+ var import_jsx_runtime274 = require("react/jsx-runtime");
13442
13333
  var renderBrandmark = (brandmarkColor, iconOnly) => {
13443
13334
  if (iconOnly) {
13444
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13335
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13445
13336
  "g",
13446
13337
  {
13447
13338
  "data-testid": "ui-wistia-logo-brandmark",
13448
13339
  fill: brandmarkColor,
13449
- children: /* @__PURE__ */ (0, import_jsx_runtime275.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" })
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" })
13450
13341
  }
13451
13342
  );
13452
13343
  }
13453
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13344
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13454
13345
  "g",
13455
13346
  {
13456
13347
  "data-testid": "ui-wistia-logo-brandmark",
13457
13348
  fill: brandmarkColor,
13458
- children: /* @__PURE__ */ (0, import_jsx_runtime275.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" })
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" })
13459
13350
  }
13460
13351
  );
13461
13352
  };
@@ -13463,12 +13354,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
13463
13354
  if (iconOnly) {
13464
13355
  return null;
13465
13356
  }
13466
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13357
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13467
13358
  "g",
13468
13359
  {
13469
13360
  "data-testid": "ui-wistia-logo-logotype",
13470
13361
  fill: logotypeColor,
13471
- children: /* @__PURE__ */ (0, import_jsx_runtime275.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" })
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" })
13472
13363
  }
13473
13364
  );
13474
13365
  };
@@ -13478,7 +13369,7 @@ var computedViewBox = (iconOnly) => {
13478
13369
  }
13479
13370
  return "0 0 144 31.47";
13480
13371
  };
13481
- var WistiaLogoComponent = import_styled_components95.default.svg`
13372
+ var WistiaLogoComponent = import_styled_components93.default.svg`
13482
13373
  height: ${({ height }) => `${height}px`};
13483
13374
 
13484
13375
  /* ensure it will always fit on mobile */
@@ -13494,12 +13385,12 @@ var WistiaLogoComponent = import_styled_components95.default.svg`
13494
13385
  ${({ $opticallyCentered, $iconOnly }) => {
13495
13386
  if ($opticallyCentered) {
13496
13387
  if ($iconOnly) {
13497
- return import_styled_components95.css`
13388
+ return import_styled_components93.css`
13498
13389
  aspect-ratio: 1;
13499
13390
  padding: 11.85% 3.12% 13.91%;
13500
13391
  `;
13501
13392
  }
13502
- return import_styled_components95.css`
13393
+ return import_styled_components93.css`
13503
13394
  aspect-ratio: 127 / 32;
13504
13395
  `;
13505
13396
  }
@@ -13536,7 +13427,7 @@ var WistiaLogo = ({
13536
13427
  };
13537
13428
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
13538
13429
  const logotypeColor = VARIANT_COLORS[variant].logotype;
13539
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
13430
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
13540
13431
  WistiaLogoComponent,
13541
13432
  {
13542
13433
  $hoverColor: hoverColor,
@@ -13549,39 +13440,39 @@ var WistiaLogo = ({
13549
13440
  xmlns: "http://www.w3.org/2000/svg",
13550
13441
  ...props,
13551
13442
  children: [
13552
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("title", { children: title }),
13553
- (0, import_type_guards58.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("desc", { children: description }) : null,
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,
13554
13445
  renderBrandmark(brandmarkColor, iconOnly),
13555
13446
  renderLogotype(logotypeColor, iconOnly)
13556
13447
  ]
13557
13448
  }
13558
13449
  );
13559
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("a", { href, children: Logo }) : Logo;
13450
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("a", { href, children: Logo }) : Logo;
13560
13451
  };
13561
13452
  WistiaLogo.displayName = "WistiaLogo";
13562
13453
 
13563
13454
  // src/components/List/List.tsx
13564
13455
  var import_type_guards60 = require("@wistia/type-guards");
13565
- var import_styled_components97 = __toESM(require("styled-components"));
13456
+ var import_styled_components95 = __toESM(require("styled-components"));
13566
13457
 
13567
13458
  // src/components/List/ListItem.tsx
13568
- var import_styled_components96 = __toESM(require("styled-components"));
13459
+ var import_styled_components94 = __toESM(require("styled-components"));
13569
13460
  var import_type_guards59 = require("@wistia/type-guards");
13570
- var import_jsx_runtime276 = require("react/jsx-runtime");
13571
- var ListItemComponent = import_styled_components96.default.li`
13461
+ var import_jsx_runtime275 = require("react/jsx-runtime");
13462
+ var ListItemComponent = import_styled_components94.default.li`
13572
13463
  margin-bottom: var(--wui-space-02);
13573
13464
  `;
13574
13465
  var ListItem = ({ children }) => {
13575
13466
  if ((0, import_type_guards59.isNil)(children)) {
13576
13467
  return null;
13577
13468
  }
13578
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(ListItemComponent, { children });
13469
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(ListItemComponent, { children });
13579
13470
  };
13580
13471
  ListItem.displayName = "ListItem";
13581
13472
 
13582
13473
  // src/components/List/List.tsx
13583
- var import_jsx_runtime277 = require("react/jsx-runtime");
13584
- var spacesStyle = import_styled_components97.css`
13474
+ var import_jsx_runtime276 = require("react/jsx-runtime");
13475
+ var spacesStyle = import_styled_components95.css`
13585
13476
  overflow: hidden;
13586
13477
  padding-left: 0;
13587
13478
  vertical-align: bottom;
@@ -13603,7 +13494,7 @@ var spacesStyle = import_styled_components97.css`
13603
13494
  }
13604
13495
  }
13605
13496
  `;
13606
- var commasStyle = import_styled_components97.css`
13497
+ var commasStyle = import_styled_components95.css`
13607
13498
  ${spacesStyle};
13608
13499
 
13609
13500
  li {
@@ -13613,7 +13504,7 @@ var commasStyle = import_styled_components97.css`
13613
13504
  }
13614
13505
  }
13615
13506
  `;
13616
- var slashesStyle = import_styled_components97.css`
13507
+ var slashesStyle = import_styled_components95.css`
13617
13508
  ${spacesStyle};
13618
13509
 
13619
13510
  li {
@@ -13624,7 +13515,7 @@ var slashesStyle = import_styled_components97.css`
13624
13515
  }
13625
13516
  }
13626
13517
  `;
13627
- var breadcrumbsStyle = import_styled_components97.css`
13518
+ var breadcrumbsStyle = import_styled_components95.css`
13628
13519
  ${spacesStyle};
13629
13520
 
13630
13521
  li {
@@ -13635,11 +13526,11 @@ var breadcrumbsStyle = import_styled_components97.css`
13635
13526
  }
13636
13527
  }
13637
13528
  `;
13638
- var unbulletedStyle = import_styled_components97.css`
13529
+ var unbulletedStyle = import_styled_components95.css`
13639
13530
  list-style: none;
13640
13531
  padding-left: 0;
13641
13532
  `;
13642
- var ListComponent = import_styled_components97.default.ul`
13533
+ var ListComponent = import_styled_components95.default.ul`
13643
13534
  list-style-position: outside;
13644
13535
  margin: 0 0 var(--wui-space-01);
13645
13536
  padding: 0 0 0 var(--wui-space-04);
@@ -13666,7 +13557,7 @@ var ListComponent = import_styled_components97.default.ul`
13666
13557
  `;
13667
13558
  var renderListComponent = (listItems, variant, { ...otherProps }) => {
13668
13559
  const elementType = variant === "ordered" ? "ol" : "ul";
13669
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
13560
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
13670
13561
  ListComponent,
13671
13562
  {
13672
13563
  as: elementType,
@@ -13683,7 +13574,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
13683
13574
  const nextItem = listItems[i + 1];
13684
13575
  const key = `item-${itemCount += 1}`;
13685
13576
  if (Array.isArray(nextItem)) {
13686
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(ListItem, { children: [
13577
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(ListItem, { children: [
13687
13578
  item,
13688
13579
  renderListFromArray(nextItem, variant, otherProps)
13689
13580
  ] }, key);
@@ -13691,7 +13582,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
13691
13582
  if (Array.isArray(item)) {
13692
13583
  return null;
13693
13584
  }
13694
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(ListItem, { children: item }, key);
13585
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(ListItem, { children: item }, key);
13695
13586
  });
13696
13587
  return renderListComponent(items, variant, otherProps);
13697
13588
  };
@@ -13783,7 +13674,6 @@ List.displayName = "List";
13783
13674
  Stack,
13784
13675
  SubMenu,
13785
13676
  Switch,
13786
- Tab,
13787
13677
  Table,
13788
13678
  TableBody,
13789
13679
  TableCell,
@@ -13791,6 +13681,9 @@ List.displayName = "List";
13791
13681
  TableHead,
13792
13682
  TableRow,
13793
13683
  Tabs,
13684
+ TabsContent,
13685
+ TabsList,
13686
+ TabsTrigger,
13794
13687
  Tag,
13795
13688
  Text,
13796
13689
  Thumbnail,