@wistia/ui 0.9.5-beta.d06f577d.c09e2a6 → 0.9.5

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-beta.d06f577d.c09e2a6
3
+ * @license @wistia/ui v0.9.5
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -8208,9 +8208,9 @@ var Center = (0, import_react28.forwardRef)(
8208
8208
  Center.displayName = "Center";
8209
8209
 
8210
8210
  // src/components/Checkbox/Checkbox.tsx
8211
- var import_react33 = require("react");
8212
- var import_styled_components39 = __toESM(require("styled-components"));
8213
- var import_type_guards26 = require("@wistia/type-guards");
8211
+ var import_react29 = require("react");
8212
+ var import_styled_components36 = __toESM(require("styled-components"));
8213
+ var import_type_guards25 = require("@wistia/type-guards");
8214
8214
 
8215
8215
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8216
8216
  var import_styled_components35 = __toESM(require("styled-components"));
@@ -8328,230 +8328,9 @@ var FormControlLabel = ({
8328
8328
  };
8329
8329
  FormControlLabel.displayName = "FormControlLabel";
8330
8330
 
8331
- // src/components/FormGroup/CheckboxGroup.tsx
8332
- var import_react32 = require("react");
8333
-
8334
- // src/components/FormGroup/FormGroup.tsx
8335
- var import_styled_components38 = __toESM(require("styled-components"));
8336
- var import_react31 = require("react");
8337
-
8338
- // src/components/Stack/Stack.tsx
8339
- var import_react29 = require("react");
8340
- var import_styled_components36 = __toESM(require("styled-components"));
8341
- var import_jsx_runtime208 = require("react/jsx-runtime");
8342
- var DEFAULT_ELEMENT2 = "div";
8343
- var StyledStack = import_styled_components36.default.div`
8344
- display: flex;
8345
- flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
8346
- gap: ${({ $gap }) => `var(--wui-${$gap})`};
8347
- align-items: ${({ $alignItems }) => $alignItems};
8348
- `;
8349
- var StackComponent = (0, import_react29.forwardRef)(
8350
- ({ renderAs, direction = "vertical", gap = "space-02", alignItems = "stretch", ...props }, ref) => {
8351
- const responsiveGap = useResponsiveProp(gap);
8352
- const responsiveDirection = useResponsiveProp(direction);
8353
- const responsiveAlignItems = useResponsiveProp(alignItems);
8354
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8355
- StyledStack,
8356
- {
8357
- ref,
8358
- $alignItems: responsiveAlignItems,
8359
- $direction: responsiveDirection,
8360
- $gap: responsiveGap,
8361
- as: renderAs ?? DEFAULT_ELEMENT2,
8362
- ...props
8363
- }
8364
- );
8365
- }
8366
- );
8367
- StackComponent.displayName = "Stack";
8368
- var Stack = makePolymorphic(StackComponent);
8369
-
8370
- // src/components/Heading/Heading.tsx
8371
- var import_react30 = require("react");
8372
- var import_styled_components37 = __toESM(require("styled-components"));
8373
- var import_type_guards25 = require("@wistia/type-guards");
8374
- var import_jsx_runtime209 = require("react/jsx-runtime");
8375
- var heroStyle = import_styled_components37.css`
8376
- --font-family: var(--wui-typography-heading-hero-family);
8377
- --font-size: var(--wui-typography-heading-hero-size);
8378
- --font-weight: var(--wui-typography-heading-hero-weight);
8379
- --line-height: var(--wui-typography-heading-hero-line-height);
8380
- `;
8381
- var heading1TextStyle = import_styled_components37.css`
8382
- --font-family: var(--wui-typography-heading-1-family);
8383
- --font-size: var(--wui-typography-heading-1-size);
8384
- --font-weight: var(--wui-typography-heading-1-weight);
8385
- --line-height: var(--wui-typography-heading-1-line-height);
8386
- `;
8387
- var heading2TextStyle = import_styled_components37.css`
8388
- --font-family: var(--wui-typography-heading-2-family);
8389
- --font-size: var(--wui-typography-heading-2-size);
8390
- --font-weight: var(--wui-typography-heading-2-weight);
8391
- --line-height: var(--wui-typography-heading-2-line-height);
8392
- `;
8393
- var heading3TextStyle = import_styled_components37.css`
8394
- --font-family: var(--wui-typography-heading-3-family);
8395
- --font-size: var(--wui-typography-heading-3-size);
8396
- --font-weight: var(--wui-typography-heading-3-weight);
8397
- --line-height: var(--wui-typography-heading-3-line-height);
8398
- `;
8399
- var heading4TextStyle = import_styled_components37.css`
8400
- --font-family: var(--wui-typography-heading-4-family);
8401
- --font-size: var(--wui-typography-heading-4-size);
8402
- --font-weight: var(--wui-typography-heading-4-weight);
8403
- --line-height: var(--wui-typography-heading-4-line-height);
8404
- `;
8405
- var heading5TextStyle = import_styled_components37.css`
8406
- --font-family: var(--wui-typography-heading-5-family);
8407
- --font-size: var(--wui-typography-heading-5-size);
8408
- --font-weight: var(--wui-typography-heading-5-weight);
8409
- --line-height: var(--wui-typography-heading-5-line-height);
8410
- `;
8411
- var heading6TextStyle = import_styled_components37.css`
8412
- --font-family: var(--wui-typography-heading-6-family);
8413
- --font-size: var(--wui-typography-heading-6-size);
8414
- --font-weight: var(--wui-typography-heading-6-weight);
8415
- --line-height: var(--wui-typography-heading-6-line-height);
8416
- `;
8417
- var variantStyleMap = {
8418
- hero: heroStyle,
8419
- heading1: heading1TextStyle,
8420
- heading2: heading2TextStyle,
8421
- heading3: heading3TextStyle,
8422
- heading4: heading4TextStyle,
8423
- heading5: heading5TextStyle,
8424
- heading6: heading6TextStyle
8425
- };
8426
- var DEFAULT_ELEMENT3 = "h1";
8427
- var StyledHeading = import_styled_components37.default.div`
8428
- ${({ $colorScheme }) => getColorScheme($colorScheme)};
8429
- font-family: var(--font-family);
8430
- font-size: var(--font-size);
8431
- font-weight: var(--font-weight);
8432
- line-height: var(--line-height);
8433
- color: var(--wui-color-text);
8434
- ${({ $variant }) => variantStyleMap[$variant]}
8435
- ${({ $truncate }) => {
8436
- if ((0, import_type_guards25.isNotNil)($truncate)) {
8437
- return import_styled_components37.css`
8438
- ${ellipsisStyle};
8439
- ${lineClampCss($truncate)};
8440
- `;
8441
- }
8442
- return void 0;
8443
- }}
8444
- ${({ $inline }) => $inline && import_styled_components37.css`
8445
- display: inline-block;
8446
- `}
8447
- ${({ $disabled }) => $disabled && import_styled_components37.css`
8448
- color: var(--wui-color-text-disabled);
8449
- `}
8450
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
8451
- user-select: none;
8452
- `}
8453
- ${({ $align }) => import_styled_components37.css`
8454
- text-align: ${$align};
8455
- `}
8456
- margin: 0;
8457
- `;
8458
- var variantElementMap = {
8459
- hero: DEFAULT_ELEMENT3,
8460
- heading1: DEFAULT_ELEMENT3,
8461
- heading2: "h2",
8462
- heading3: "h3",
8463
- heading4: "h4",
8464
- heading5: "h5",
8465
- heading6: "h6"
8466
- };
8467
- var HeadingComponent = (0, import_react30.forwardRef)(
8468
- ({
8469
- align = "left",
8470
- colorScheme = "inherit",
8471
- disabled = false,
8472
- inline = false,
8473
- preventUserSelect = false,
8474
- truncate,
8475
- variant = "heading1",
8476
- renderAs,
8477
- ...props
8478
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8479
- StyledHeading,
8480
- {
8481
- ref,
8482
- $align: align,
8483
- $colorScheme: colorScheme,
8484
- $disabled: disabled,
8485
- $inline: inline,
8486
- $preventUserSelect: preventUserSelect,
8487
- $truncate: truncate,
8488
- $variant: variant,
8489
- as: renderAs ?? variantElementMap[variant],
8490
- ...props
8491
- }
8492
- )
8493
- );
8494
- HeadingComponent.displayName = "Heading";
8495
- var Heading = makePolymorphic(HeadingComponent);
8496
-
8497
- // src/components/FormGroup/FormGroup.tsx
8498
- var import_jsx_runtime210 = require("react/jsx-runtime");
8499
- var StyledFieldset = import_styled_components38.default.fieldset`
8500
- border: 0;
8501
- `;
8502
- var StyledLegend = import_styled_components38.default.legend`
8503
- margin-bottom: var(--space-01);
8504
- `;
8505
- var FormGroup = ({ children, label, ...props }) => {
8506
- const ref = (0, import_react31.useRef)();
8507
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
8508
- Stack,
8509
- {
8510
- ...props,
8511
- ref,
8512
- renderAs: StyledFieldset,
8513
- children: [
8514
- /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
8515
- Heading,
8516
- {
8517
- renderAs: StyledLegend,
8518
- variant: "heading5",
8519
- children: label
8520
- }
8521
- ),
8522
- children
8523
- ]
8524
- }
8525
- );
8526
- };
8527
- FormGroup.displayName = "FormGroup";
8528
-
8529
- // src/components/FormGroup/CheckboxGroup.tsx
8530
- var import_jsx_runtime211 = require("react/jsx-runtime");
8531
- var CheckboxGroupContext = (0, import_react32.createContext)(null);
8532
- var useCheckboxGroup = () => {
8533
- return (0, import_react32.useContext)(CheckboxGroupContext);
8534
- };
8535
- var CheckboxGroup = ({
8536
- children,
8537
- name,
8538
- onChange,
8539
- value,
8540
- ...props
8541
- }) => {
8542
- const context = (0, import_react32.useMemo)(() => {
8543
- return {
8544
- name,
8545
- onChange
8546
- };
8547
- }, [name, onChange]);
8548
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(FormGroup, { ...props, children }) });
8549
- };
8550
- CheckboxGroup.displayName = "CheckboxGroup";
8551
-
8552
8331
  // src/components/Checkbox/Checkbox.tsx
8553
- var import_jsx_runtime212 = require("react/jsx-runtime");
8554
- var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8332
+ var import_jsx_runtime208 = require("react/jsx-runtime");
8333
+ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8555
8334
  "svg",
8556
8335
  {
8557
8336
  fill: "inherit",
@@ -8559,7 +8338,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8559
8338
  viewBox: "0 0 10 8",
8560
8339
  width: "10",
8561
8340
  xmlns: "http://www.w3.org/2000/svg",
8562
- children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8341
+ children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8563
8342
  "path",
8564
8343
  {
8565
8344
  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",
@@ -8568,7 +8347,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8568
8347
  )
8569
8348
  }
8570
8349
  );
8571
- var sizeSmall = import_styled_components39.css`
8350
+ var sizeSmall = import_styled_components36.css`
8572
8351
  width: 14px;
8573
8352
  height: 14px;
8574
8353
  min-width: 14px;
@@ -8579,7 +8358,7 @@ var sizeSmall = import_styled_components39.css`
8579
8358
  height: 7px;
8580
8359
  }
8581
8360
  `;
8582
- var sizeMedium = import_styled_components39.css`
8361
+ var sizeMedium = import_styled_components36.css`
8583
8362
  width: 16px;
8584
8363
  height: 16px;
8585
8364
  min-width: 16px;
@@ -8590,7 +8369,7 @@ var sizeMedium = import_styled_components39.css`
8590
8369
  height: 9px;
8591
8370
  }
8592
8371
  `;
8593
- var sizeLarge = import_styled_components39.css`
8372
+ var sizeLarge = import_styled_components36.css`
8594
8373
  width: 20px;
8595
8374
  height: 20px;
8596
8375
  min-width: 20px;
@@ -8606,14 +8385,14 @@ var getSizeCss = (size) => {
8606
8385
  if (size === "lg") return sizeLarge;
8607
8386
  return sizeMedium;
8608
8387
  };
8609
- var StyledCheckboxWrapper = import_styled_components39.default.div`
8388
+ var StyledCheckboxWrapper = import_styled_components36.default.div`
8610
8389
  display: flex;
8611
8390
  margin: 0;
8612
8391
 
8613
8392
  /* TODO this solves a problem but potentially causes and a11y issue */
8614
8393
  user-select: none;
8615
8394
  `;
8616
- var StyledCheckboxInput = import_styled_components39.default.div`
8395
+ var StyledCheckboxInput = import_styled_components36.default.div`
8617
8396
  ${({ $size }) => getSizeCss($size)}
8618
8397
  line-height: 0;
8619
8398
  margin: 0;
@@ -8635,7 +8414,7 @@ var StyledCheckboxInput = import_styled_components39.default.div`
8635
8414
  }
8636
8415
  }
8637
8416
  `;
8638
- var StyledHiddenCheckboxInput = import_styled_components39.default.input`
8417
+ var StyledHiddenCheckboxInput = import_styled_components36.default.input`
8639
8418
  ${visuallyHiddenStyle}
8640
8419
 
8641
8420
  /* toggles display of faux-input background-color */
@@ -8649,7 +8428,7 @@ var StyledHiddenCheckboxInput = import_styled_components39.default.input`
8649
8428
  display: block;
8650
8429
  }
8651
8430
  `;
8652
- var Checkbox = (0, import_react33.forwardRef)(
8431
+ var Checkbox = (0, import_react29.forwardRef)(
8653
8432
  ({
8654
8433
  checked,
8655
8434
  disabled = false,
@@ -8664,15 +8443,10 @@ var Checkbox = (0, import_react33.forwardRef)(
8664
8443
  hideLabel = false,
8665
8444
  ...props
8666
8445
  }, ref) => {
8667
- const generatedId = (0, import_react33.useId)();
8668
- const computedId = (0, import_type_guards26.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8669
- const checkboxGroupContext = useCheckboxGroup();
8670
- const contextName = checkboxGroupContext?.name;
8671
- const contextOnChange = checkboxGroupContext?.onChange;
8672
- const checkboxName = name ?? contextName;
8673
- const handleOnChange = onChange ?? contextOnChange;
8674
- return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8675
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
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)(
8676
8450
  StyledHiddenCheckboxInput,
8677
8451
  {
8678
8452
  ...props,
@@ -8680,23 +8454,23 @@ var Checkbox = (0, import_react33.forwardRef)(
8680
8454
  checked,
8681
8455
  disabled,
8682
8456
  id: computedId,
8683
- name: checkboxName,
8684
- onChange: handleOnChange,
8457
+ name,
8458
+ onChange,
8685
8459
  required,
8686
8460
  type: "checkbox",
8687
8461
  value
8688
8462
  }
8689
8463
  ),
8690
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8464
+ /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8691
8465
  FormControlLabel,
8692
8466
  {
8693
- controlSlot: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8467
+ controlSlot: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8694
8468
  StyledCheckboxInput,
8695
8469
  {
8696
8470
  $disabled: disabled,
8697
8471
  $size: size,
8698
8472
  "data-wui-faux-input": "true",
8699
- children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(CheckIcon, {})
8473
+ children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(CheckIcon, {})
8700
8474
  }
8701
8475
  ),
8702
8476
  description,
@@ -8712,14 +8486,14 @@ var Checkbox = (0, import_react33.forwardRef)(
8712
8486
  Checkbox.displayName = "Checkbox";
8713
8487
 
8714
8488
  // src/components/ClickRegion/ClickRegion.tsx
8715
- var import_react34 = require("react");
8489
+ var import_react30 = require("react");
8716
8490
  var isClickableElement = (element) => {
8717
8491
  if (!element) return false;
8718
8492
  const el = element;
8719
8493
  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;
8720
8494
  };
8721
8495
  var ClickRegion = ({ children, targetRef }) => {
8722
- (0, import_react34.useEffect)(() => {
8496
+ (0, import_react30.useEffect)(() => {
8723
8497
  if (targetRef.current && targetRef.current.tagName === "A") {
8724
8498
  targetRef.current.setAttribute("data-click-region-target-link", "");
8725
8499
  } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
@@ -8727,7 +8501,7 @@ var ClickRegion = ({ children, targetRef }) => {
8727
8501
  } else {
8728
8502
  }
8729
8503
  }, [targetRef]);
8730
- const handleClick = (0, import_react34.useCallback)(
8504
+ const handleClick = (0, import_react30.useCallback)(
8731
8505
  (event) => {
8732
8506
  const node = targetRef.current;
8733
8507
  if (event.target === node) {
@@ -8747,7 +8521,7 @@ var ClickRegion = ({ children, targetRef }) => {
8747
8521
  },
8748
8522
  [targetRef]
8749
8523
  );
8750
- return (0, import_react34.cloneElement)(import_react34.Children.only(children), {
8524
+ return (0, import_react30.cloneElement)(import_react30.Children.only(children), {
8751
8525
  "data-click-region": true,
8752
8526
  onClick: handleClick
8753
8527
  });
@@ -8756,10 +8530,10 @@ ClickRegion.displayName = "ClickRegion";
8756
8530
 
8757
8531
  // src/components/Collapsible/Collapsible.tsx
8758
8532
  var import_react_collapsible = require("@radix-ui/react-collapsible");
8759
- var import_type_guards27 = require("@wistia/type-guards");
8760
- var import_styled_components40 = __toESM(require("styled-components"));
8761
- var import_jsx_runtime213 = require("react/jsx-runtime");
8762
- var StyledRoot = (0, import_styled_components40.default)(import_react_collapsible.Root)`
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)`
8763
8537
  &[data-state='closed'] [data-wui-collapsible-content] {
8764
8538
  display: -webkit-box;
8765
8539
  -webkit-box-orient: vertical;
@@ -8773,32 +8547,32 @@ var Collapsible = ({
8773
8547
  onOpenChange
8774
8548
  }) => {
8775
8549
  const controlProps = {
8776
- ...(0, import_type_guards27.isNotNil)(onOpenChange) && (0, import_type_guards27.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8550
+ ...(0, import_type_guards26.isNotNil)(onOpenChange) && (0, import_type_guards26.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
8777
8551
  };
8778
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledRoot, { ...controlProps, children });
8552
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledRoot, { ...controlProps, children });
8779
8553
  };
8780
8554
  Collapsible.displayName = "Collapsible";
8781
8555
 
8782
8556
  // src/components/Collapsible/CollapsibleTrigger.tsx
8783
- var import_react35 = require("react");
8557
+ var import_react31 = require("react");
8784
8558
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
8785
- var import_jsx_runtime214 = require("react/jsx-runtime");
8559
+ var import_jsx_runtime210 = require("react/jsx-runtime");
8786
8560
  var CollapsibleTrigger = ({ children }) => {
8787
- import_react35.Children.only(children);
8788
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8561
+ import_react31.Children.only(children);
8562
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
8789
8563
  };
8790
8564
 
8791
8565
  // src/components/Collapsible/CollapsibleContent.tsx
8792
- var import_styled_components41 = __toESM(require("styled-components"));
8566
+ var import_styled_components38 = __toESM(require("styled-components"));
8793
8567
  var import_react_collapsible3 = require("@radix-ui/react-collapsible");
8794
- var import_type_guards28 = require("@wistia/type-guards");
8795
- var import_jsx_runtime215 = require("react/jsx-runtime");
8796
- var ClampedContent = import_styled_components41.default.div`
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`
8797
8571
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
8798
8572
  `;
8799
8573
  var CollapsibleContent = ({ clamp, children }) => {
8800
- if ((0, import_type_guards28.isNotUndefined)(clamp)) {
8801
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8574
+ if ((0, import_type_guards27.isNotUndefined)(clamp)) {
8575
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8802
8576
  ClampedContent,
8803
8577
  {
8804
8578
  $clamp: clamp,
@@ -8807,18 +8581,147 @@ var CollapsibleContent = ({ clamp, children }) => {
8807
8581
  }
8808
8582
  );
8809
8583
  }
8810
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(import_jsx_runtime215.Fragment, { children: [
8584
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_collapsible3.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(import_jsx_runtime211.Fragment, { children: [
8811
8585
  children,
8812
8586
  " "
8813
8587
  ] }) });
8814
8588
  };
8815
8589
 
8816
8590
  // src/components/DataCards/DataCard.tsx
8817
- var import_react36 = require("react");
8818
- var import_styled_components42 = __toESM(require("styled-components"));
8591
+ var import_react33 = require("react");
8592
+ var import_styled_components40 = __toESM(require("styled-components"));
8819
8593
  var import_type_guards29 = require("@wistia/type-guards");
8820
- var import_jsx_runtime216 = require("react/jsx-runtime");
8821
- var StyledDataCard = import_styled_components42.default.div`
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
8725
  display: grid;
8823
8726
  grid-template-areas: 'label slot' 'value value';
8824
8727
  grid-template-rows: auto auto;
@@ -8873,7 +8776,7 @@ var StyledDataCard = import_styled_components42.default.div`
8873
8776
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
8874
8777
  }
8875
8778
  `;
8876
- var shimmer = import_styled_components42.keyframes`
8779
+ var shimmer = import_styled_components40.keyframes`
8877
8780
  0% {
8878
8781
  background-position: 200% 0;
8879
8782
  }
@@ -8881,7 +8784,7 @@ var shimmer = import_styled_components42.keyframes`
8881
8784
  background-position: -200% 0;
8882
8785
  }
8883
8786
  `;
8884
- var LoadingBackground = import_styled_components42.default.div`
8787
+ var LoadingBackground = import_styled_components40.default.div`
8885
8788
  background: linear-gradient(
8886
8789
  90deg,
8887
8790
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -8892,27 +8795,27 @@ var LoadingBackground = import_styled_components42.default.div`
8892
8795
  animation: ${shimmer} 1.5s infinite;
8893
8796
  border-radius: var(--wui-border-radius-01);
8894
8797
  `;
8895
- var StyledLoadingLabel = (0, import_styled_components42.default)(LoadingBackground)`
8798
+ var StyledLoadingLabel = (0, import_styled_components40.default)(LoadingBackground)`
8896
8799
  width: 80px;
8897
8800
  height: var(--wui-typography-heading-6-line-height);
8898
8801
  `;
8899
- var StyledLoadingValue = (0, import_styled_components42.default)(LoadingBackground)`
8802
+ var StyledLoadingValue = (0, import_styled_components40.default)(LoadingBackground)`
8900
8803
  width: 90%;
8901
8804
  height: var(--wui-typography-heading-3-line-height);
8902
8805
  `;
8903
- var StyledLabel2 = (0, import_styled_components42.default)(Heading)`
8806
+ var StyledLabel2 = (0, import_styled_components40.default)(Heading)`
8904
8807
  grid-area: label;
8905
8808
  `;
8906
- var StyledValue = (0, import_styled_components42.default)(Heading)`
8809
+ var StyledValue = (0, import_styled_components40.default)(Heading)`
8907
8810
  grid-area: value;
8908
8811
  `;
8909
- var StyledSlot = import_styled_components42.default.div`
8812
+ var StyledSlot = import_styled_components40.default.div`
8910
8813
  display: flex;
8911
8814
  justify-content: flex-end;
8912
8815
  grid-area: slot;
8913
8816
  align-self: center;
8914
8817
  `;
8915
- var StyledDataCardTrendContainer = import_styled_components42.default.div`
8818
+ var StyledDataCardTrendContainer = import_styled_components40.default.div`
8916
8819
  position: absolute;
8917
8820
  bottom: var(--wui-space-01);
8918
8821
  right: var(--wui-space-01);
@@ -8925,34 +8828,34 @@ var DataCardInner = ({
8925
8828
  isLoading = false,
8926
8829
  trend,
8927
8830
  ...props
8928
- }) => /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
8831
+ }) => /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
8929
8832
  StyledDataCard,
8930
8833
  {
8931
8834
  $colorScheme: colorScheme,
8932
8835
  ...props,
8933
8836
  children: [
8934
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8837
+ /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8935
8838
  StyledLabel2,
8936
8839
  {
8937
8840
  renderAs: "dt",
8938
8841
  variant: "heading6",
8939
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledLoadingLabel, {}) : label
8842
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingLabel, {}) : label
8940
8843
  }
8941
8844
  ),
8942
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8845
+ /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8943
8846
  StyledValue,
8944
8847
  {
8945
8848
  renderAs: "dd",
8946
8849
  variant: "heading3",
8947
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledLoadingValue, {}) : value
8850
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(StyledLoadingValue, {}) : value
8948
8851
  }
8949
8852
  ),
8950
- (0, import_type_guards29.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledSlot, { children: upperRightSlot }),
8951
- (0, import_type_guards29.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(StyledDataCardTrendContainer, { children: trend })
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
8855
  ]
8953
8856
  }
8954
8857
  );
8955
- var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8858
+ var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8956
8859
  Icon,
8957
8860
  {
8958
8861
  "data-wui-data-card-hover-icon": true,
@@ -8960,14 +8863,14 @@ var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8960
8863
  }
8961
8864
  );
8962
8865
  var DataCard = (props) => {
8963
- const ref = (0, import_react36.useRef)(null);
8866
+ const ref = (0, import_react33.useRef)(null);
8964
8867
  if ((0, import_type_guards29.isNotNil)(props.href) || (0, import_type_guards29.isNotNil)(props.onClick)) {
8965
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8868
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8966
8869
  DataCardInner,
8967
8870
  {
8968
8871
  upperRightSlot: props.upperRightSlot ?? DataCardArrowIcon,
8969
8872
  ...props,
8970
- label: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8873
+ label: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8971
8874
  Button,
8972
8875
  {
8973
8876
  ref,
@@ -8982,14 +8885,14 @@ var DataCard = (props) => {
8982
8885
  }
8983
8886
  ) });
8984
8887
  }
8985
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(DataCardInner, { ...props });
8888
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(DataCardInner, { ...props });
8986
8889
  };
8987
8890
  DataCard.displayName = "DataCard";
8988
8891
 
8989
8892
  // src/components/DataCards/DataCards.tsx
8990
- var import_styled_components43 = __toESM(require("styled-components"));
8991
- var import_jsx_runtime217 = require("react/jsx-runtime");
8992
- var StyledDataCards = (0, import_styled_components43.default)(Box)`
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)`
8993
8896
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8994
8897
  margin-top: 0; /* Remove default <dl> style */
8995
8898
  > * {
@@ -9003,7 +8906,7 @@ var DataCards = ({
9003
8906
  colorScheme = "inherit",
9004
8907
  ...props
9005
8908
  }) => {
9006
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
8909
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
9007
8910
  StyledDataCards,
9008
8911
  {
9009
8912
  ...props,
@@ -9021,26 +8924,26 @@ var DataCards = ({
9021
8924
  DataCards.displayName = "DataCards";
9022
8925
 
9023
8926
  // src/components/DataCards/DataCardTrend.tsx
9024
- var import_styled_components45 = __toESM(require("styled-components"));
8927
+ var import_styled_components43 = __toESM(require("styled-components"));
9025
8928
 
9026
8929
  // src/components/Text/Text.tsx
9027
- var import_react37 = require("react");
9028
- var import_styled_components44 = __toESM(require("styled-components"));
8930
+ var import_react34 = require("react");
8931
+ var import_styled_components42 = __toESM(require("styled-components"));
9029
8932
  var import_type_guards30 = require("@wistia/type-guards");
9030
- var import_jsx_runtime218 = require("react/jsx-runtime");
9031
- var bodyBoldStyles = import_styled_components44.css`
8933
+ var import_jsx_runtime215 = require("react/jsx-runtime");
8934
+ var bodyBoldStyles = import_styled_components42.css`
9032
8935
  > strong,
9033
8936
  b {
9034
8937
  font-weight: var(--wui-typography-weight-body-bold);
9035
8938
  }
9036
8939
  `;
9037
- var labelBoldStyles = import_styled_components44.css`
8940
+ var labelBoldStyles = import_styled_components42.css`
9038
8941
  > strong,
9039
8942
  b {
9040
8943
  font-weight: var(--wui-typography-weight-label-bold);
9041
8944
  }
9042
8945
  `;
9043
- var body1TextStyle = import_styled_components44.css`
8946
+ var body1TextStyle = import_styled_components42.css`
9044
8947
  --font-family: var(--wui-typography-body-1-family);
9045
8948
  --font-size: var(--wui-typography-body-1-size);
9046
8949
  --font-weight: var(--wui-typography-body-1-weight);
@@ -9048,7 +8951,7 @@ var body1TextStyle = import_styled_components44.css`
9048
8951
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
9049
8952
  ${bodyBoldStyles}
9050
8953
  `;
9051
- var body2TextStyle = import_styled_components44.css`
8954
+ var body2TextStyle = import_styled_components42.css`
9052
8955
  --font-family: var(--wui-typography-body-2-family);
9053
8956
  --font-size: var(--wui-typography-body-2-size);
9054
8957
  --font-weight: var(--wui-typography-body-2-weight);
@@ -9056,7 +8959,7 @@ var body2TextStyle = import_styled_components44.css`
9056
8959
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
9057
8960
  ${bodyBoldStyles}
9058
8961
  `;
9059
- var body3TextStyle = import_styled_components44.css`
8962
+ var body3TextStyle = import_styled_components42.css`
9060
8963
  --font-family: var(--wui-typography-body-3-family);
9061
8964
  --font-size: var(--wui-typography-body-3-size);
9062
8965
  --font-weight: var(--wui-typography-body-3-weight);
@@ -9064,7 +8967,7 @@ var body3TextStyle = import_styled_components44.css`
9064
8967
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
9065
8968
  ${bodyBoldStyles}
9066
8969
  `;
9067
- var body4TextStyle = import_styled_components44.css`
8970
+ var body4TextStyle = import_styled_components42.css`
9068
8971
  --font-family: var(--wui-typography-body-4-family);
9069
8972
  --font-size: var(--wui-typography-body-4-size);
9070
8973
  --font-weight: var(--wui-typography-body-4-weight);
@@ -9072,47 +8975,47 @@ var body4TextStyle = import_styled_components44.css`
9072
8975
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
9073
8976
  ${bodyBoldStyles}
9074
8977
  `;
9075
- var label1TextStyle = import_styled_components44.css`
8978
+ var label1TextStyle = import_styled_components42.css`
9076
8979
  --font-family: var(--wui-typography-label-1-family);
9077
8980
  --font-size: var(--wui-typography-label-1-size);
9078
8981
  --font-weight: var(--wui-typography-label-1-weight);
9079
8982
  --line-height: var(--wui-typography-label-1-line-height);
9080
8983
  ${labelBoldStyles}
9081
8984
  `;
9082
- var label2TextStyle = import_styled_components44.css`
8985
+ var label2TextStyle = import_styled_components42.css`
9083
8986
  --font-family: var(--wui-typography-label-2-family);
9084
8987
  --font-size: var(--wui-typography-label-2-size);
9085
8988
  --font-weight: var(--wui-typography-label-2-weight);
9086
8989
  --line-height: var(--wui-typography-label-2-line-height);
9087
8990
  ${labelBoldStyles}
9088
8991
  `;
9089
- var label3TextStyle = import_styled_components44.css`
8992
+ var label3TextStyle = import_styled_components42.css`
9090
8993
  --font-family: var(--wui-typography-label-3-family);
9091
8994
  --font-size: var(--wui-typography-label-3-size);
9092
8995
  --font-weight: var(--wui-typography-label-3-weight);
9093
8996
  --line-height: var(--wui-typography-label-3-line-height);
9094
8997
  ${labelBoldStyles}
9095
8998
  `;
9096
- var label4TextStyle = import_styled_components44.css`
8999
+ var label4TextStyle = import_styled_components42.css`
9097
9000
  --font-family: var(--wui-typography-label-4-family);
9098
9001
  --font-size: var(--wui-typography-label-4-size);
9099
9002
  --font-weight: var(--wui-typography-label-4-weight);
9100
9003
  --line-height: var(--wui-typography-label-4-line-height);
9101
9004
  ${labelBoldStyles}
9102
9005
  `;
9103
- var body1MonoTextStyle = import_styled_components44.css`
9006
+ var body1MonoTextStyle = import_styled_components42.css`
9104
9007
  ${body1TextStyle};
9105
9008
  --font-family: var(--wui-typography-family-mono);
9106
9009
  `;
9107
- var body2MonoTextStyle = import_styled_components44.css`
9010
+ var body2MonoTextStyle = import_styled_components42.css`
9108
9011
  ${body2TextStyle};
9109
9012
  --font-family: var(--wui-typography-family-mono);
9110
9013
  `;
9111
- var body3MonoTextStyle = import_styled_components44.css`
9014
+ var body3MonoTextStyle = import_styled_components42.css`
9112
9015
  ${body3TextStyle};
9113
9016
  --font-family: var(--wui-typography-family-mono);
9114
9017
  `;
9115
- var body4MonoTextStyle = import_styled_components44.css`
9018
+ var body4MonoTextStyle = import_styled_components42.css`
9116
9019
  ${body4TextStyle};
9117
9020
  --font-family: var(--wui-typography-family-mono);
9118
9021
  `;
@@ -9132,22 +9035,22 @@ var variantStyleMap2 = {
9132
9035
  };
9133
9036
  var bodyElement = "p";
9134
9037
  var labelElement = "span";
9135
- var DEFAULT_ELEMENT4 = bodyElement;
9038
+ var DEFAULT_ELEMENT3 = bodyElement;
9136
9039
  var variantElementMap2 = {
9137
- body1: DEFAULT_ELEMENT4,
9138
- body2: DEFAULT_ELEMENT4,
9139
- body3: DEFAULT_ELEMENT4,
9140
- body4: DEFAULT_ELEMENT4,
9141
- body1Mono: DEFAULT_ELEMENT4,
9142
- body2Mono: DEFAULT_ELEMENT4,
9143
- body3Mono: DEFAULT_ELEMENT4,
9144
- body4Mono: DEFAULT_ELEMENT4,
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,
9145
9048
  label1: labelElement,
9146
9049
  label2: labelElement,
9147
9050
  label3: labelElement,
9148
9051
  label4: labelElement
9149
9052
  };
9150
- var StyledText = import_styled_components44.default.div`
9053
+ var StyledText = import_styled_components42.default.div`
9151
9054
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
9152
9055
  --text-color: ${({ $prominence, $disabled }) => {
9153
9056
  if ($disabled) {
@@ -9172,26 +9075,26 @@ var StyledText = import_styled_components44.default.div`
9172
9075
  ${({ $variant }) => variantStyleMap2[$variant]}
9173
9076
  ${({ $truncate }) => {
9174
9077
  if ((0, import_type_guards30.isNotNil)($truncate)) {
9175
- return import_styled_components44.css`
9078
+ return import_styled_components42.css`
9176
9079
  ${ellipsisStyle};
9177
9080
  ${lineClampCss($truncate)};
9178
9081
  `;
9179
9082
  }
9180
9083
  return void 0;
9181
9084
  }}
9182
- ${({ $inline }) => $inline && import_styled_components44.css`
9085
+ ${({ $inline }) => $inline && import_styled_components42.css`
9183
9086
  display: inline-block;
9184
9087
  `}
9185
- ${({ $disabled }) => $disabled && import_styled_components44.css`
9088
+ ${({ $disabled }) => $disabled && import_styled_components42.css`
9186
9089
  --text-color: var(--wui-color-text-disabled);
9187
9090
  `}
9188
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components44.css`
9091
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components42.css`
9189
9092
  user-select: none;
9190
9093
  `}
9191
- ${({ $align }) => import_styled_components44.css`
9094
+ ${({ $align }) => import_styled_components42.css`
9192
9095
  text-align: ${$align};
9193
9096
  `}
9194
- ${({ as }) => as === "p" && import_styled_components44.css`
9097
+ ${({ as }) => as === "p" && import_styled_components42.css`
9195
9098
  display: block;
9196
9099
 
9197
9100
  + p {
@@ -9199,7 +9102,7 @@ var StyledText = import_styled_components44.default.div`
9199
9102
  }
9200
9103
  `}
9201
9104
  `;
9202
- var TextComponent = (0, import_react37.forwardRef)(
9105
+ var TextComponent = (0, import_react34.forwardRef)(
9203
9106
  ({
9204
9107
  align = "left",
9205
9108
  colorScheme = "inherit",
@@ -9212,7 +9115,7 @@ var TextComponent = (0, import_react37.forwardRef)(
9212
9115
  renderAs,
9213
9116
  ...props
9214
9117
  }, ref) => {
9215
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9118
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
9216
9119
  StyledText,
9217
9120
  {
9218
9121
  ref,
@@ -9234,8 +9137,8 @@ TextComponent.displayName = "Text";
9234
9137
  var Text = makePolymorphic(TextComponent);
9235
9138
 
9236
9139
  // src/components/DataCards/DataCardTrend.tsx
9237
- var import_jsx_runtime219 = require("react/jsx-runtime");
9238
- var StyledDataCardTrend = import_styled_components45.default.div`
9140
+ var import_jsx_runtime216 = require("react/jsx-runtime");
9141
+ var StyledDataCardTrend = import_styled_components43.default.div`
9239
9142
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
9240
9143
  background: var(--wui-color-bg-app);
9241
9144
  border-radius: var(--wui-border-radius-rounded);
@@ -9250,8 +9153,8 @@ var DataCardTrend = ({
9250
9153
  children,
9251
9154
  ...props
9252
9155
  }) => {
9253
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
9254
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9156
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
9157
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
9255
9158
  Icon,
9256
9159
  {
9257
9160
  size: "md",
@@ -9259,7 +9162,7 @@ var DataCardTrend = ({
9259
9162
  ...props
9260
9163
  }
9261
9164
  ),
9262
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9165
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
9263
9166
  Text,
9264
9167
  {
9265
9168
  prominence: "secondary",
@@ -9271,22 +9174,22 @@ var DataCardTrend = ({
9271
9174
  };
9272
9175
 
9273
9176
  // src/components/Divider/Divider.tsx
9274
- var import_styled_components46 = __toESM(require("styled-components"));
9275
- var import_jsx_runtime220 = require("react/jsx-runtime");
9276
- var horizontalBorderCss = import_styled_components46.css`
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`
9277
9180
  border-top-color: var(--wui-color-border);
9278
9181
  border-top-style: solid;
9279
9182
  border-top-width: 1px;
9280
9183
  clear: both; /* for horizontal dividers, ensure it clears any floats */
9281
9184
  height: 0;
9282
9185
  `;
9283
- var verticalBorderCss = import_styled_components46.css`
9186
+ var verticalBorderCss = import_styled_components44.css`
9284
9187
  background-color: var(--wui-color-border);
9285
9188
  max-width: 1px;
9286
9189
  min-height: 100%;
9287
9190
  width: 1px;
9288
9191
  `;
9289
- var DividerComponent = import_styled_components46.default.div`
9192
+ var DividerComponent = import_styled_components44.default.div`
9290
9193
  ${({ $orientation }) => {
9291
9194
  switch ($orientation) {
9292
9195
  case "vertical":
@@ -9298,7 +9201,7 @@ var DividerComponent = import_styled_components46.default.div`
9298
9201
  }}
9299
9202
  `;
9300
9203
  var Divider = ({ orientation = "horizontal", ...props }) => {
9301
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9204
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
9302
9205
  DividerComponent,
9303
9206
  {
9304
9207
  $orientation: orientation,
@@ -9311,14 +9214,14 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
9311
9214
  Divider.displayName = "Divider";
9312
9215
 
9313
9216
  // src/components/EditableHeading/EditableHeading.tsx
9314
- var import_styled_components50 = __toESM(require("styled-components"));
9315
- var import_react39 = require("react");
9217
+ var import_styled_components48 = __toESM(require("styled-components"));
9218
+ var import_react36 = require("react");
9316
9219
 
9317
9220
  // src/components/Tooltip/Tooltip.tsx
9318
9221
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
9319
- var import_styled_components47 = __toESM(require("styled-components"));
9320
- var import_jsx_runtime221 = require("react/jsx-runtime");
9321
- var hide = import_styled_components47.keyframes`
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`
9322
9225
  from {
9323
9226
  opacity: 1;
9324
9227
  }
@@ -9326,7 +9229,7 @@ var hide = import_styled_components47.keyframes`
9326
9229
  opacity: 0;
9327
9230
  }
9328
9231
  `;
9329
- var slideDownAndFade = import_styled_components47.keyframes`
9232
+ var slideDownAndFade = import_styled_components45.keyframes`
9330
9233
  from {
9331
9234
  opacity: 0;
9332
9235
  transform: translateY(-6px);
@@ -9336,7 +9239,7 @@ var slideDownAndFade = import_styled_components47.keyframes`
9336
9239
  transform: translateY(0);
9337
9240
  }
9338
9241
  `;
9339
- var slideLeftAndFade = import_styled_components47.keyframes`
9242
+ var slideLeftAndFade = import_styled_components45.keyframes`
9340
9243
  from {
9341
9244
  opacity: 0;
9342
9245
  transform: translateX(6px);
@@ -9346,7 +9249,7 @@ var slideLeftAndFade = import_styled_components47.keyframes`
9346
9249
  transform: translateX(0);
9347
9250
  }
9348
9251
  `;
9349
- var slideUpAndFade = import_styled_components47.keyframes`
9252
+ var slideUpAndFade = import_styled_components45.keyframes`
9350
9253
  from {
9351
9254
  opacity: 0;
9352
9255
  transform: translateY(6px);
@@ -9356,7 +9259,7 @@ var slideUpAndFade = import_styled_components47.keyframes`
9356
9259
  transform: translateY(0);
9357
9260
  }
9358
9261
  `;
9359
- var slideRightAndFade = import_styled_components47.keyframes`
9262
+ var slideRightAndFade = import_styled_components45.keyframes`
9360
9263
  from {
9361
9264
  opacity: 0;
9362
9265
  transform: translateX(-6px);
@@ -9366,7 +9269,7 @@ var slideRightAndFade = import_styled_components47.keyframes`
9366
9269
  transform: translateX(0);
9367
9270
  }
9368
9271
  `;
9369
- var StyledContent = (0, import_styled_components47.default)(import_react_tooltip2.Content)`
9272
+ var StyledContent = (0, import_styled_components45.default)(import_react_tooltip2.Content)`
9370
9273
  --tooltip-font-family: var(--wui-typography-family-default);
9371
9274
  --tooltip-border-radius: var(--wui-border-radius-05);
9372
9275
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -9428,21 +9331,21 @@ var Tooltip = ({
9428
9331
  if (forceOpen === true) {
9429
9332
  rootProps.open = true;
9430
9333
  }
9431
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
9334
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9432
9335
  import_react_tooltip2.Root,
9433
9336
  {
9434
9337
  delayDuration: delay,
9435
9338
  ...rootProps,
9436
9339
  children: [
9437
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
9438
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
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
9342
  StyledContent,
9440
9343
  {
9441
9344
  side: direction,
9442
9345
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
9443
9346
  children: [
9444
9347
  content,
9445
- !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9348
+ !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
9446
9349
  "svg",
9447
9350
  {
9448
9351
  fill: "var(--tooltip-bg)",
@@ -9451,7 +9354,7 @@ var Tooltip = ({
9451
9354
  viewBox: "0 0 12 8",
9452
9355
  width: "12",
9453
9356
  xmlns: "http://www.w3.org/2000/svg",
9454
- 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" })
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" })
9455
9358
  }
9456
9359
  ) }) : null
9457
9360
  ]
@@ -9464,13 +9367,13 @@ var Tooltip = ({
9464
9367
  Tooltip.displayName = "Tooltip";
9465
9368
 
9466
9369
  // src/components/Input/Input.tsx
9467
- var import_react38 = require("react");
9468
- var import_styled_components49 = __toESM(require("styled-components"));
9370
+ var import_react35 = require("react");
9371
+ var import_styled_components47 = __toESM(require("styled-components"));
9469
9372
  var import_type_guards31 = require("@wistia/type-guards");
9470
9373
 
9471
9374
  // src/css/sharedStyles/inputCssVariables.ts
9472
- var import_styled_components48 = require("styled-components");
9473
- var inputCssVariables = import_styled_components48.css`
9375
+ var import_styled_components46 = require("styled-components");
9376
+ var inputCssVariables = import_styled_components46.css`
9474
9377
  /* Colors */
9475
9378
  --wui-input-color-bg: var(--wui-color-bg-surface);
9476
9379
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -9496,8 +9399,8 @@ var inputCssVariables = import_styled_components48.css`
9496
9399
  `;
9497
9400
 
9498
9401
  // src/components/Input/Input.tsx
9499
- var import_jsx_runtime222 = require("react/jsx-runtime");
9500
- var inputStyles = import_styled_components49.css`
9402
+ var import_jsx_runtime219 = require("react/jsx-runtime");
9403
+ var inputStyles = import_styled_components47.css`
9501
9404
  ${inputCssVariables}
9502
9405
  input,
9503
9406
  textarea {
@@ -9532,7 +9435,7 @@ var inputStyles = import_styled_components49.css`
9532
9435
  }
9533
9436
  }
9534
9437
  `;
9535
- var StyledInputContainer = import_styled_components49.default.div`
9438
+ var StyledInputContainer = import_styled_components47.default.div`
9536
9439
  display: inline-flex;
9537
9440
  position: relative;
9538
9441
  ${inputStyles};
@@ -9599,7 +9502,7 @@ var StyledInputContainer = import_styled_components49.default.div`
9599
9502
  padding-right: 32px;
9600
9503
  }
9601
9504
  `;
9602
- var Input = (0, import_react38.forwardRef)(
9505
+ var Input = (0, import_react35.forwardRef)(
9603
9506
  ({
9604
9507
  fullWidth = true,
9605
9508
  monospace = false,
@@ -9609,24 +9512,24 @@ var Input = (0, import_react38.forwardRef)(
9609
9512
  rightIcon,
9610
9513
  ...props
9611
9514
  }, externalRef) => {
9612
- const internalRef = (0, import_react38.useRef)();
9515
+ const internalRef = (0, import_react35.useRef)();
9613
9516
  const ref = (
9614
9517
  // eslint-disable-next-line react-compiler/react-compiler
9615
9518
  (0, import_type_guards31.isNotNil)(externalRef) && (0, import_type_guards31.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
9616
9519
  );
9617
9520
  let leftIconToDisplay = leftIcon;
9618
9521
  if ((0, import_type_guards31.isNil)(leftIcon) && type === "search") {
9619
- leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon, { type: "search" });
9522
+ leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon, { type: "search" });
9620
9523
  }
9621
9524
  if ((0, import_type_guards31.isNotNil)(leftIconToDisplay)) {
9622
- leftIconToDisplay = (0, import_react38.cloneElement)(leftIconToDisplay, {
9525
+ leftIconToDisplay = (0, import_react35.cloneElement)(leftIconToDisplay, {
9623
9526
  size: "md",
9624
9527
  className: "wui-input-left-icon"
9625
9528
  });
9626
9529
  }
9627
9530
  let rightIconToDisplay = rightIcon;
9628
9531
  if ((0, import_type_guards31.isNotNil)(rightIconToDisplay)) {
9629
- rightIconToDisplay = (0, import_react38.cloneElement)(rightIconToDisplay, {
9532
+ rightIconToDisplay = (0, import_react35.cloneElement)(rightIconToDisplay, {
9630
9533
  size: "md",
9631
9534
  className: "wui-input-right-icon"
9632
9535
  });
@@ -9641,21 +9544,21 @@ var Input = (0, import_react38.forwardRef)(
9641
9544
  });
9642
9545
  }
9643
9546
  };
9644
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
9547
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
9645
9548
  StyledInputContainer,
9646
9549
  {
9647
9550
  $fullWidth: fullWidth,
9648
9551
  $monospace: monospace,
9649
9552
  children: [
9650
9553
  leftIconToDisplay ?? null,
9651
- type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9554
+ type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9652
9555
  "textarea",
9653
9556
  {
9654
9557
  ...props,
9655
9558
  ref,
9656
9559
  onFocus: handleFocus2
9657
9560
  }
9658
- ) : /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9561
+ ) : /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
9659
9562
  "input",
9660
9563
  {
9661
9564
  ...props,
@@ -9673,8 +9576,8 @@ var Input = (0, import_react38.forwardRef)(
9673
9576
  Input.displayName = "Input";
9674
9577
 
9675
9578
  // src/components/EditableHeading/EditableHeading.tsx
9676
- var import_jsx_runtime223 = require("react/jsx-runtime");
9677
- var StyledInput = (0, import_styled_components50.default)(Input)`
9579
+ var import_jsx_runtime220 = require("react/jsx-runtime");
9580
+ var StyledInput = (0, import_styled_components48.default)(Input)`
9678
9581
  :not([rows]) {
9679
9582
  min-height: unset;
9680
9583
  }
@@ -9691,7 +9594,7 @@ var StyledInput = (0, import_styled_components50.default)(Input)`
9691
9594
  height: ${({ $height }) => `${$height}px`};
9692
9595
  }
9693
9596
  `;
9694
- var editableStyles = import_styled_components50.css`
9597
+ var editableStyles = import_styled_components48.css`
9695
9598
  &:has(+ :focus-within) {
9696
9599
  background: var(--wui-color-bg-surface-hover);
9697
9600
  }
@@ -9701,7 +9604,7 @@ var editableStyles = import_styled_components50.css`
9701
9604
  cursor: pointer;
9702
9605
  }
9703
9606
  `;
9704
- var StyledHeading2 = (0, import_styled_components50.default)(Heading)`
9607
+ var StyledHeading2 = (0, import_styled_components48.default)(Heading)`
9705
9608
  width: 100%;
9706
9609
  border-radius: var(--wui-border-radius-02);
9707
9610
  padding: var(--wui-space-02);
@@ -9718,11 +9621,11 @@ var EditableHeading = ({
9718
9621
  __forceEditing = false,
9719
9622
  editingDisabled = false
9720
9623
  }) => {
9721
- const [isEditing, setIsEditing] = (0, import_react39.useState)(false);
9722
- const [value, setValue] = (0, import_react39.useState)(children);
9723
- const [previousValue, setPreviousValue] = (0, import_react39.useState)(children);
9724
- const [headingHeight, setHeadingHeight] = (0, import_react39.useState)("60");
9725
- const headingRef = (0, import_react39.useRef)(null);
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);
9726
9629
  const handleSetEditing = (editing) => {
9727
9630
  if (editingDisabled) return;
9728
9631
  if (editing && headingRef.current) {
@@ -9755,7 +9658,7 @@ var EditableHeading = ({
9755
9658
  handleSetEditing(false);
9756
9659
  }
9757
9660
  };
9758
- const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9661
+ const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9759
9662
  StyledHeading2,
9760
9663
  {
9761
9664
  ref: headingRef,
@@ -9769,7 +9672,7 @@ var EditableHeading = ({
9769
9672
  return HeadingComponent2;
9770
9673
  }
9771
9674
  if (isEditing || __forceEditing) {
9772
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9675
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9773
9676
  StyledInput,
9774
9677
  {
9775
9678
  $height: headingHeight,
@@ -9787,9 +9690,9 @@ var EditableHeading = ({
9787
9690
  }
9788
9691
  );
9789
9692
  }
9790
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(import_jsx_runtime223.Fragment, { children: [
9791
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
9792
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
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)(
9793
9696
  "button",
9794
9697
  {
9795
9698
  "aria-label": ariaLabel,
@@ -9801,17 +9704,51 @@ var EditableHeading = ({
9801
9704
  };
9802
9705
 
9803
9706
  // src/components/Form/Form.tsx
9804
- var import_react40 = require("react");
9805
- var import_styled_components51 = __toESM(require("styled-components"));
9707
+ var import_react38 = require("react");
9708
+ var import_styled_components50 = __toESM(require("styled-components"));
9806
9709
  var import_type_guards32 = require("@wistia/type-guards");
9807
- var import_jsx_runtime224 = require("react/jsx-runtime");
9808
- var StyledForm = import_styled_components51.default.form`
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
9736
+ }
9737
+ );
9738
+ }
9739
+ );
9740
+ StackComponent.displayName = "Stack";
9741
+ var Stack = makePolymorphic(StackComponent);
9742
+
9743
+ // src/components/Form/Form.tsx
9744
+ var import_jsx_runtime222 = require("react/jsx-runtime");
9745
+ var StyledForm = import_styled_components50.default.form`
9809
9746
  --form-default-width: 690px;
9810
9747
 
9811
9748
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9812
9749
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9813
9750
  `;
9814
- var FormContext = (0, import_react40.createContext)({
9751
+ var FormContext = (0, import_react38.createContext)({
9815
9752
  values: {},
9816
9753
  errors: {},
9817
9754
  hasSubmitted: false,
@@ -9827,11 +9764,11 @@ var FormComponent = ({
9827
9764
  fullWidth = false,
9828
9765
  ...props
9829
9766
  }, forwardedRef) => {
9830
- const [errors, setErrors] = (0, import_react40.useState)({});
9831
- const [hasSubmitted, setHasSubmitted] = (0, import_react40.useState)(false);
9832
- const innerRef = (0, import_react40.useRef)();
9767
+ const [errors, setErrors] = (0, import_react38.useState)({});
9768
+ const [hasSubmitted, setHasSubmitted] = (0, import_react38.useState)(false);
9769
+ const innerRef = (0, import_react38.useRef)();
9833
9770
  const ref = forwardedRef ?? innerRef;
9834
- const autoId = (0, import_react40.useId)();
9771
+ const autoId = (0, import_react38.useId)();
9835
9772
  const id = props.id ?? autoId;
9836
9773
  const handleValidate = (nextFormData) => {
9837
9774
  const nextData = Object.fromEntries(nextFormData.entries());
@@ -9873,7 +9810,7 @@ var FormComponent = ({
9873
9810
  void action(null);
9874
9811
  }
9875
9812
  };
9876
- const context = (0, import_react40.useMemo)(() => {
9813
+ const context = (0, import_react38.useMemo)(() => {
9877
9814
  return {
9878
9815
  values,
9879
9816
  errors,
@@ -9884,7 +9821,7 @@ var FormComponent = ({
9884
9821
  }, [labelPosition, values, errors, id, hasSubmitted]);
9885
9822
  return (
9886
9823
  // @ts-expect-error - generic context providers are a giant pain
9887
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
9824
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
9888
9825
  Stack,
9889
9826
  {
9890
9827
  ...props,
@@ -9902,15 +9839,15 @@ var FormComponent = ({
9902
9839
  );
9903
9840
  };
9904
9841
  FormComponent.displayName = "Form";
9905
- var Form = (0, import_react40.forwardRef)(FormComponent);
9842
+ var Form = (0, import_react38.forwardRef)(FormComponent);
9906
9843
 
9907
9844
  // src/components/Form/useFormState.tsx
9908
- var import_react41 = require("react");
9845
+ var import_react39 = require("react");
9909
9846
  var useFormState = (action, initialData = {}) => {
9910
- const [data, setData] = (0, import_react41.useState)(initialData);
9911
- const [isPending, setIsPending] = (0, import_react41.useState)(false);
9912
- const [error, setError] = (0, import_react41.useState)(null);
9913
- const formAction = (0, import_react41.useCallback)(
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)(
9914
9851
  async (nextFormData) => {
9915
9852
  if (nextFormData === null) {
9916
9853
  setData(initialData);
@@ -9941,23 +9878,23 @@ var useFormState = (action, initialData = {}) => {
9941
9878
  };
9942
9879
 
9943
9880
  // src/components/Form/FormErrorSummary.tsx
9944
- var import_react42 = require("react");
9881
+ var import_react40 = require("react");
9945
9882
  var import_type_guards33 = require("@wistia/type-guards");
9946
- var import_jsx_runtime225 = require("react/jsx-runtime");
9883
+ var import_jsx_runtime223 = require("react/jsx-runtime");
9947
9884
  var ErrorItem = ({ name, error, formId }) => {
9948
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9885
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9949
9886
  };
9950
9887
  var FormErrorSummary = ({ description }) => {
9951
- const ref = (0, import_react42.useRef)(null);
9952
- const { formId, errors, hasSubmitted } = (0, import_react42.useContext)(FormContext);
9888
+ const ref = (0, import_react40.useRef)(null);
9889
+ const { formId, errors, hasSubmitted } = (0, import_react40.useContext)(FormContext);
9953
9890
  const isValid = Object.keys(errors).length === 0;
9954
9891
  if (isValid || !hasSubmitted) {
9955
9892
  return null;
9956
9893
  }
9957
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)("div", { ref, children: [
9958
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("p", { children: description }),
9959
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards33.isNotUndefined)(error)).map(
9960
- ([name, error]) => (0, import_type_guards33.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
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)(
9961
9898
  ErrorItem,
9962
9899
  {
9963
9900
  error: err,
@@ -9965,7 +9902,7 @@ var FormErrorSummary = ({ description }) => {
9965
9902
  name
9966
9903
  },
9967
9904
  err
9968
- )) : /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
9905
+ )) : /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9969
9906
  ErrorItem,
9970
9907
  {
9971
9908
  error: error ?? "",
@@ -9984,9 +9921,9 @@ var import_styled_components53 = __toESM(require("styled-components"));
9984
9921
  var import_type_guards34 = require("@wistia/type-guards");
9985
9922
 
9986
9923
  // src/components/Label/Label.tsx
9987
- var import_styled_components52 = __toESM(require("styled-components"));
9988
- var import_jsx_runtime226 = require("react/jsx-runtime");
9989
- var requiredStyle = import_styled_components52.css`
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`
9990
9927
  &::after {
9991
9928
  color: var(--wui-color-text-error);
9992
9929
  display: inline;
@@ -9994,10 +9931,10 @@ var requiredStyle = import_styled_components52.css`
9994
9931
  content: '*';
9995
9932
  }
9996
9933
  `;
9997
- var disabledStyle3 = import_styled_components52.css`
9934
+ var disabledStyle3 = import_styled_components51.css`
9998
9935
  color: var(--wui-color-text-disabled);
9999
9936
  `;
10000
- var StyledLabel3 = import_styled_components52.default.label`
9937
+ var StyledLabel3 = import_styled_components51.default.label`
10001
9938
  display: block;
10002
9939
  width: 100%;
10003
9940
  color: var(--wui-color-text);
@@ -10029,7 +9966,7 @@ var Label = ({
10029
9966
  screenReaderOnly = false,
10030
9967
  ...props
10031
9968
  }) => {
10032
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
9969
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
10033
9970
  StyledLabel3,
10034
9971
  {
10035
9972
  ...props,
@@ -10043,6 +9980,63 @@ var Label = ({
10043
9980
  };
10044
9981
  Label.displayName = "Label";
10045
9982
 
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
+
10046
10040
  // src/components/FormField/FormField.tsx
10047
10041
  var import_jsx_runtime227 = require("react/jsx-runtime");
10048
10042
  var StyledFormField = import_styled_components53.default.div`
@@ -10187,9 +10181,6 @@ FormField.displayName = "FormField";
10187
10181
  var import_react44 = require("react");
10188
10182
  var import_jsx_runtime228 = require("react/jsx-runtime");
10189
10183
  var RadioGroupContext = (0, import_react44.createContext)(null);
10190
- var useRadioGroup = () => {
10191
- return (0, import_react44.useContext)(RadioGroupContext);
10192
- };
10193
10184
  var RadioGroup = ({
10194
10185
  children,
10195
10186
  name,
@@ -11638,11 +11629,6 @@ var Radio = (0, import_react56.forwardRef)(
11638
11629
  }, ref) => {
11639
11630
  const generatedId = (0, import_react56.useId)();
11640
11631
  const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11641
- const radioGroupContext = useRadioGroup();
11642
- const contextName = radioGroupContext?.name;
11643
- const contextOnChange = radioGroupContext?.onChange;
11644
- const radioName = name ?? contextName;
11645
- const handleOnChange = onChange ?? contextOnChange;
11646
11632
  return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
11647
11633
  StyledRadioWrapper,
11648
11634
  {
@@ -11657,8 +11643,8 @@ var Radio = (0, import_react56.forwardRef)(
11657
11643
  checked,
11658
11644
  disabled,
11659
11645
  id: computedId,
11660
- name: radioName,
11661
- onChange: handleOnChange,
11646
+ name,
11647
+ onChange,
11662
11648
  required,
11663
11649
  type: "radio",
11664
11650
  value