@wistia/ui 0.6.19 → 0.6.20-beta.c8a0b106.eb6e6a5

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.6.19
3
+ * @license @wistia/ui v0.6.20-beta.c8a0b106.eb6e6a5
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7530,192 +7530,15 @@ var Card = ({
7530
7530
  Card.displayName = "Card";
7531
7531
 
7532
7532
  // src/components/Checkbox/Checkbox.tsx
7533
- var import_react19 = require("react");
7534
- var import_react_checkbox = require("@radix-ui/react-checkbox");
7535
- var import_styled_components34 = __toESM(require("styled-components"));
7536
- var import_type_guards20 = require("@wistia/type-guards");
7537
-
7538
- // src/components/Label/Label.tsx
7539
- var import_styled_components32 = __toESM(require("styled-components"));
7540
-
7541
- // src/components/Heading/Heading.tsx
7542
7533
  var import_react18 = require("react");
7543
- var import_styled_components31 = __toESM(require("styled-components"));
7544
- var import_jsx_runtime199 = require("react/jsx-runtime");
7545
- var heroStyle = import_styled_components31.css`
7546
- --font-family: var(--wui-typography-heading-hero-family);
7547
- --font-size: var(--wui-typography-heading-hero-size);
7548
- --font-weight: var(--wui-typography-heading-hero-weight);
7549
- --line-height: var(--wui-typography-heading-hero-line-height);
7550
- `;
7551
- var heading1TextStyle = import_styled_components31.css`
7552
- --font-family: var(--wui-typography-heading-1-family);
7553
- --font-size: var(--wui-typography-heading-1-size);
7554
- --font-weight: var(--wui-typography-heading-1-weight);
7555
- --line-height: var(--wui-typography-heading-1-line-height);
7556
- `;
7557
- var heading2TextStyle = import_styled_components31.css`
7558
- --font-family: var(--wui-typography-heading-2-family);
7559
- --font-size: var(--wui-typography-heading-2-size);
7560
- --font-weight: var(--wui-typography-heading-2-weight);
7561
- --line-height: var(--wui-typography-heading-2-line-height);
7562
- `;
7563
- var heading3TextStyle = import_styled_components31.css`
7564
- --font-family: var(--wui-typography-heading-3-family);
7565
- --font-size: var(--wui-typography-heading-3-size);
7566
- --font-weight: var(--wui-typography-heading-3-weight);
7567
- --line-height: var(--wui-typography-heading-3-line-height);
7568
- `;
7569
- var heading4TextStyle = import_styled_components31.css`
7570
- --font-family: var(--wui-typography-heading-4-family);
7571
- --font-size: var(--wui-typography-heading-4-size);
7572
- --font-weight: var(--wui-typography-heading-4-weight);
7573
- --line-height: var(--wui-typography-heading-4-line-height);
7574
- `;
7575
- var heading5TextStyle = import_styled_components31.css`
7576
- --font-family: var(--wui-typography-heading-5-family);
7577
- --font-size: var(--wui-typography-heading-5-size);
7578
- --font-weight: var(--wui-typography-heading-5-weight);
7579
- --line-height: var(--wui-typography-heading-5-line-height);
7580
- `;
7581
- var heading6TextStyle = import_styled_components31.css`
7582
- --font-family: var(--wui-typography-heading-6-family);
7583
- --font-size: var(--wui-typography-heading-6-size);
7584
- --font-weight: var(--wui-typography-heading-6-weight);
7585
- --line-height: var(--wui-typography-heading-6-line-height);
7586
- `;
7587
- var variantStyleMap = {
7588
- hero: heroStyle,
7589
- heading1: heading1TextStyle,
7590
- heading2: heading2TextStyle,
7591
- heading3: heading3TextStyle,
7592
- heading4: heading4TextStyle,
7593
- heading5: heading5TextStyle,
7594
- heading6: heading6TextStyle
7595
- };
7596
- var DEFAULT_ELEMENT2 = "h1";
7597
- var StyledHeading = import_styled_components31.default.div`
7598
- ${({ $colorScheme }) => getColorScheme($colorScheme)};
7599
- font-family: var(--font-family);
7600
- font-size: var(--font-size);
7601
- font-weight: var(--font-weight);
7602
- line-height: var(--line-height);
7603
- color: var(--wui-color-text);
7604
- ${({ $variant }) => variantStyleMap[$variant]}
7605
- ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
7606
- ${({ $inline }) => $inline && import_styled_components31.css`
7607
- display: inline-block;
7608
- `}
7609
- ${({ $disabled }) => $disabled && import_styled_components31.css`
7610
- color: var(--wui-color-text-disabled);
7611
- `}
7612
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components31.css`
7613
- user-select: none;
7614
- `}
7615
- ${({ $align }) => import_styled_components31.css`
7616
- text-align: ${$align};
7617
- `}
7618
- margin: 0;
7619
- `;
7620
- var variantElementMap = {
7621
- hero: DEFAULT_ELEMENT2,
7622
- heading1: DEFAULT_ELEMENT2,
7623
- heading2: "h2",
7624
- heading3: "h3",
7625
- heading4: "h4",
7626
- heading5: "h5",
7627
- heading6: "h6"
7628
- };
7629
- var HeadingComponent = (0, import_react18.forwardRef)(
7630
- ({
7631
- align = "left",
7632
- colorScheme = "inherit",
7633
- disabled = false,
7634
- ellipsis = false,
7635
- inline = false,
7636
- preventUserSelect = false,
7637
- variant = "heading1",
7638
- renderAs,
7639
- ...otherProps
7640
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7641
- StyledHeading,
7642
- {
7643
- ref,
7644
- $align: align,
7645
- $colorScheme: colorScheme,
7646
- $disabled: disabled,
7647
- $ellipsis: ellipsis,
7648
- $inline: inline,
7649
- $preventUserSelect: preventUserSelect,
7650
- $variant: variant,
7651
- as: renderAs ?? variantElementMap[variant],
7652
- ...otherProps
7653
- }
7654
- )
7655
- );
7656
- HeadingComponent.displayName = "Heading";
7657
- var Heading = makePolymorphic(HeadingComponent);
7658
-
7659
- // src/components/Label/Label.tsx
7660
- var import_jsx_runtime200 = require("react/jsx-runtime");
7661
- var requiredStyle = import_styled_components32.css`
7662
- &::after {
7663
- color: var(--wui-color-text-error);
7664
- display: inline;
7665
- padding-left: var(--wui-space-01);
7666
- content: '*';
7667
- }
7668
- `;
7669
- var disabledStyle = import_styled_components32.css`
7670
- color: var(--wui-color-text-disabled);
7671
- `;
7672
- var StyledLabel2 = (0, import_styled_components32.default)(Heading).attrs({
7673
- variant: "heading6",
7674
- renderAs: "label"
7675
- })`
7676
- display: block;
7677
- width: 100%;
7678
-
7679
- /* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
7680
- > input,
7681
- > textarea,
7682
- > select {
7683
- display: block;
7684
- }
7685
-
7686
- > label {
7687
- font-weight: normal;
7688
- }
7689
-
7690
- ${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
7691
- ${({ $disabled }) => $disabled && disabledStyle}
7692
- ${({ $required }) => $required && requiredStyle}
7693
- `;
7694
- var Label = ({
7695
- children,
7696
- disabled = false,
7697
- htmlFor,
7698
- required = false,
7699
- screenReaderOnly = false,
7700
- ...otherProps
7701
- }) => /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7702
- StyledLabel2,
7703
- {
7704
- ...otherProps,
7705
- $disabled: disabled,
7706
- $required: required,
7707
- $screenReaderOnly: screenReaderOnly,
7708
- htmlFor,
7709
- children
7710
- }
7711
- );
7712
- Label.displayName = "Label";
7534
+ var import_styled_components32 = __toESM(require("styled-components"));
7535
+ var import_type_guards20 = require("@wistia/type-guards");
7713
7536
 
7714
7537
  // src/components/Label/LabelDescription.tsx
7715
- var import_styled_components33 = __toESM(require("styled-components"));
7538
+ var import_styled_components31 = __toESM(require("styled-components"));
7716
7539
  var import_type_guards19 = require("@wistia/type-guards");
7717
- var import_jsx_runtime201 = require("react/jsx-runtime");
7718
- var StyledLabelDescription = import_styled_components33.default.div`
7540
+ var import_jsx_runtime199 = require("react/jsx-runtime");
7541
+ var StyledLabelDescription = import_styled_components31.default.div`
7719
7542
  color: var(--wui-color-text-secondary);
7720
7543
  font-size: var(--wui-typography-body-4-size);
7721
7544
  font-weight: var(--wui-typography-body-4-weight);
@@ -7728,13 +7551,13 @@ var LabelDescription = ({
7728
7551
  if ((0, import_type_guards19.isNil)(children)) {
7729
7552
  return null;
7730
7553
  }
7731
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(StyledLabelDescription, { ...props, children });
7554
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(StyledLabelDescription, { ...props, children });
7732
7555
  };
7733
7556
  LabelDescription.displayName = "LabelDescription";
7734
7557
 
7735
7558
  // src/components/Checkbox/Checkbox.tsx
7736
- var import_jsx_runtime202 = require("react/jsx-runtime");
7737
- var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7559
+ var import_jsx_runtime200 = require("react/jsx-runtime");
7560
+ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7738
7561
  "svg",
7739
7562
  {
7740
7563
  fill: "inherit",
@@ -7742,137 +7565,117 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7742
7565
  viewBox: "0 0 10 8",
7743
7566
  width: "10",
7744
7567
  xmlns: "http://www.w3.org/2000/svg",
7745
- children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7568
+ children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7746
7569
  "path",
7747
7570
  {
7748
7571
  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",
7749
- fill: "white"
7572
+ fill: "currentColor"
7750
7573
  }
7751
7574
  )
7752
7575
  }
7753
7576
  );
7754
- var StyledCheckboxWrapper = import_styled_components34.default.div`
7577
+ var disabledStyle = import_styled_components32.css`
7578
+ cursor: not-allowed;
7579
+ opacity: 0.5;
7580
+ `;
7581
+ var inputSizeMedium = import_styled_components32.css`
7582
+ width: 16px;
7583
+ height: 16px;
7584
+ min-width: 16px;
7585
+ min-height: 16px;
7586
+ `;
7587
+ var StyledLabelWrapper = import_styled_components32.default.div`
7755
7588
  display: flex;
7756
- align-items: center;
7757
- cursor: pointer;
7589
+ flex-direction: column;
7590
+ `;
7591
+ var StyledCheckboxWrapper = import_styled_components32.default.div`
7592
+ display: flex;
7593
+ margin: 0;
7758
7594
 
7759
- &:hover {
7760
- /* TODO Lamp to design hover state */
7761
- }
7595
+ /* TODO this solves a problem but potentially causes and a11y issue */
7596
+ user-select: none;
7762
7597
 
7763
- &:focus-within {
7764
- /* TODO Lamp to design focus state */
7765
- background-color: #efefef;
7766
- }
7598
+ ${({ disabled }) => disabled && disabledStyle};
7767
7599
  `;
7768
- var StyledCheckboxRoot = (0, import_styled_components34.default)(import_react_checkbox.Root)`
7769
- all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
7770
- background-color: var(--wui-color-bg-fill-white);
7771
- min-width: 16px;
7772
- min-height: 16px;
7773
- border-radius: var(--wui-border-radius-01);
7774
- border-width: 1px;
7775
- border-style: solid;
7776
- border-color: var(--wui-color-border);
7600
+ var StyledLabel2 = import_styled_components32.default.label`
7601
+ cursor: pointer;
7777
7602
  display: flex;
7778
7603
  align-items: center;
7779
- justify-content: center;
7780
- align-self: start; /* align to the top to handle label descriptions */
7781
-
7782
- &[data-state='checked'] {
7783
- background-color: var(--wui-color-bg-fill);
7784
- }
7604
+ gap: var(--wui-space-01);
7605
+ `;
7606
+ var StyledCheckboxInput = import_styled_components32.default.div`
7607
+ /* TODO prop-ify sizes */
7608
+ ${inputSizeMedium}
7609
+ line-height: 0;
7610
+ margin: 0;
7611
+ border: 1px solid var(--wui-color-border);
7612
+ border-radius: var(--wui-border-radius-01);
7613
+ background-color: var(--wui-color-bg-fill-white);
7614
+ display: grid;
7615
+ place-content: center;
7616
+ align-self: flex-start;
7785
7617
 
7786
- &[disabled] {
7787
- background-color: var(--wui-color-bg-surface-disabled);
7618
+ svg {
7619
+ display: none;
7788
7620
 
7789
- svg path {
7790
- fill: var(--wui-color-icon-disabled);
7621
+ path {
7622
+ fill: var(--wui-color-bg-fill-white);
7791
7623
  }
7792
7624
  }
7625
+ `;
7626
+ var StyledHiddenCheckboxInput = import_styled_components32.default.input`
7627
+ ${visuallyHiddenStyle}
7793
7628
 
7794
- &:hover {
7795
- /* TODO Lamp to design hover state */
7629
+ /* toggles display of faux-input background-color */
7630
+ &:checked + label [data-wui-faux-input='true'] {
7631
+ background-color: var(--wui-color-bg-fill);
7796
7632
  }
7797
7633
 
7798
- &:focus {
7799
- /* TODO Lamp to design focus state */
7634
+ /* toggles display of CheckIcon */
7635
+ &:checked + label svg {
7636
+ display: block;
7800
7637
  }
7801
7638
  `;
7802
- var StyledCheckboxIndicator = (0, import_styled_components34.default)(import_react_checkbox.Indicator)`
7803
- display: flex;
7804
- `;
7805
- var StyledLabelWrapper = import_styled_components34.default.div`
7806
- display: flex;
7807
- flex-direction: column;
7808
- margin-left: var(--wui-space-02);
7809
- `;
7810
- var Checkbox = (0, import_react19.forwardRef)(
7811
- ({
7812
- checked,
7813
- disabled = false,
7814
- forceState,
7815
- id,
7816
- label,
7817
- description,
7818
- name,
7819
- onChange,
7820
- required = false,
7821
- value = "false",
7822
- ...otherProps
7823
- }, ref) => {
7824
- const generatedId = (0, import_react19.useId)();
7825
- const computedId = (0, import_type_guards20.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
7826
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(StyledCheckboxWrapper, { children: [
7827
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7828
- StyledCheckboxRoot,
7829
- {
7830
- ref,
7831
- "aria-label": label,
7832
- checked: checked ?? void 0,
7833
- defaultChecked: checked === void 0 ? false : void 0,
7834
- disabled,
7835
- id: computedId,
7836
- name,
7837
- onCheckedChange: (state) => {
7838
- if (onChange) {
7839
- const syntheticEvent = {
7840
- target: {
7841
- name,
7842
- id: computedId,
7843
- checked: state === true
7844
- }
7845
- };
7846
- onChange(syntheticEvent);
7639
+ var Checkbox = (0, import_react18.forwardRef)(
7640
+ ({ checked, disabled = false, id, label, description, name, onChange, value, ...otherProps }, ref) => {
7641
+ const generatedId = (0, import_react18.useId)();
7642
+ const computedId = (0, import_type_guards20.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
7643
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(
7644
+ StyledCheckboxWrapper,
7645
+ {
7646
+ ref,
7647
+ disabled,
7648
+ children: [
7649
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
7650
+ StyledHiddenCheckboxInput,
7651
+ {
7652
+ ...otherProps,
7653
+ disabled,
7654
+ id: computedId,
7655
+ name,
7656
+ onChange,
7657
+ type: "checkbox",
7658
+ value
7847
7659
  }
7848
- },
7849
- required,
7850
- value,
7851
- ...otherProps,
7852
- children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(StyledCheckboxIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(CheckIcon, {}) })
7853
- }
7854
- ),
7855
- /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(StyledLabelWrapper, { children: [
7856
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
7857
- Label,
7858
- {
7859
- disabled,
7860
- htmlFor: computedId,
7861
- required,
7862
- children: label
7863
- }
7864
- ),
7865
- /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(LabelDescription, { children: description })
7866
- ] })
7867
- ] });
7660
+ ),
7661
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(StyledLabel2, { htmlFor: computedId, children: [
7662
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(StyledCheckboxInput, { "data-wui-faux-input": "true", children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(CheckIcon, {}) }),
7663
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(StyledLabelWrapper, { children: [
7664
+ label,
7665
+ /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(LabelDescription, { children: description })
7666
+ ] })
7667
+ ] })
7668
+ ]
7669
+ }
7670
+ );
7868
7671
  }
7869
7672
  );
7870
7673
  Checkbox.displayName = "Checkbox";
7871
7674
 
7872
7675
  // src/components/ClickRegion/ClickRegion.tsx
7873
- var import_react20 = require("react");
7676
+ var import_react19 = require("react");
7874
7677
  var ClickRegion = ({ children, targetRef }) => {
7875
- (0, import_react20.useEffect)(() => {
7678
+ (0, import_react19.useEffect)(() => {
7876
7679
  if (targetRef.current && targetRef.current.tagName === "A") {
7877
7680
  targetRef.current.setAttribute("data-click-region-target-link", "");
7878
7681
  } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
@@ -7880,7 +7683,7 @@ var ClickRegion = ({ children, targetRef }) => {
7880
7683
  } else {
7881
7684
  }
7882
7685
  }, [targetRef]);
7883
- const handleClick = (0, import_react20.useCallback)(
7686
+ const handleClick = (0, import_react19.useCallback)(
7884
7687
  (event) => {
7885
7688
  const node = targetRef.current;
7886
7689
  if (event.target instanceof HTMLAnchorElement && !event.target.hasAttribute("data-click-region-target-link") || event.target instanceof HTMLButtonElement && !event.target.hasAttribute("data-click-region-target-button")) {
@@ -7897,7 +7700,7 @@ var ClickRegion = ({ children, targetRef }) => {
7897
7700
  },
7898
7701
  [targetRef]
7899
7702
  );
7900
- return (0, import_react20.cloneElement)(import_react20.Children.only(children), {
7703
+ return (0, import_react19.cloneElement)(import_react19.Children.only(children), {
7901
7704
  "data-click-region": true,
7902
7705
  onClick: handleClick
7903
7706
  });
@@ -7907,9 +7710,9 @@ ClickRegion.displayName = "ClickRegion";
7907
7710
  // src/components/Collapsible/Collapsible.tsx
7908
7711
  var import_react_collapsible = require("@radix-ui/react-collapsible");
7909
7712
  var import_type_guards21 = require("@wistia/type-guards");
7910
- var import_styled_components35 = __toESM(require("styled-components"));
7911
- var import_jsx_runtime203 = require("react/jsx-runtime");
7912
- var StyledRoot = (0, import_styled_components35.default)(import_react_collapsible.Root)`
7713
+ var import_styled_components33 = __toESM(require("styled-components"));
7714
+ var import_jsx_runtime201 = require("react/jsx-runtime");
7715
+ var StyledRoot = (0, import_styled_components33.default)(import_react_collapsible.Root)`
7913
7716
  &[data-state='closed'] [data-wui-collapsible-content] {
7914
7717
  display: -webkit-box;
7915
7718
  -webkit-box-orient: vertical;
@@ -7925,42 +7728,162 @@ var Collapsible = ({
7925
7728
  const controlProps = {
7926
7729
  ...(0, import_type_guards21.isNotNil)(onOpenChange) && (0, import_type_guards21.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
7927
7730
  };
7928
- return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(StyledRoot, { ...controlProps, children });
7731
+ return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(StyledRoot, { ...controlProps, children });
7929
7732
  };
7930
7733
  Collapsible.displayName = "Collapsible";
7931
7734
 
7932
7735
  // src/components/Collapsible/CollapsibleTrigger.tsx
7933
- var import_react21 = require("react");
7736
+ var import_react20 = require("react");
7934
7737
  var import_react_collapsible2 = require("@radix-ui/react-collapsible");
7935
- var import_jsx_runtime204 = require("react/jsx-runtime");
7738
+ var import_jsx_runtime202 = require("react/jsx-runtime");
7936
7739
  var CollapsibleTrigger = ({ children }) => {
7937
- import_react21.Children.only(children);
7938
- return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
7740
+ import_react20.Children.only(children);
7741
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
7939
7742
  };
7940
7743
 
7941
7744
  // src/components/Collapsible/CollapsibleContent.tsx
7942
- var import_styled_components36 = __toESM(require("styled-components"));
7745
+ var import_styled_components34 = __toESM(require("styled-components"));
7943
7746
  var import_react_collapsible3 = require("@radix-ui/react-collapsible");
7944
7747
  var import_type_guards22 = require("@wistia/type-guards");
7945
- var import_jsx_runtime205 = require("react/jsx-runtime");
7946
- var ClampedContent = import_styled_components36.default.div.attrs({ "data-wui-collapsible-content": true })`
7748
+ var import_jsx_runtime203 = require("react/jsx-runtime");
7749
+ var ClampedContent = import_styled_components34.default.div.attrs({ "data-wui-collapsible-content": true })`
7947
7750
  --wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
7948
7751
  `;
7949
7752
  var CollapsibleContent = ({ clamp, children }) => {
7950
7753
  if ((0, import_type_guards22.isNotUndefined)(clamp)) {
7951
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(ClampedContent, { $clamp: clamp, children });
7754
+ return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(ClampedContent, { $clamp: clamp, children });
7952
7755
  }
7953
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(import_react_collapsible3.Content, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
7756
+ return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(import_react_collapsible3.Content, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(import_jsx_runtime203.Fragment, { children: [
7954
7757
  children,
7955
7758
  " "
7956
7759
  ] }) });
7957
7760
  };
7958
7761
 
7959
7762
  // src/components/DataCards/DataCard.tsx
7960
- var import_styled_components37 = __toESM(require("styled-components"));
7763
+ var import_styled_components36 = __toESM(require("styled-components"));
7961
7764
  var import_type_guards23 = require("@wistia/type-guards");
7962
- var import_jsx_runtime206 = require("react/jsx-runtime");
7963
- var StyledDataCard = import_styled_components37.default.div`
7765
+
7766
+ // src/components/Heading/Heading.tsx
7767
+ var import_react21 = require("react");
7768
+ var import_styled_components35 = __toESM(require("styled-components"));
7769
+ var import_jsx_runtime204 = require("react/jsx-runtime");
7770
+ var heroStyle = import_styled_components35.css`
7771
+ --font-family: var(--wui-typography-heading-hero-family);
7772
+ --font-size: var(--wui-typography-heading-hero-size);
7773
+ --font-weight: var(--wui-typography-heading-hero-weight);
7774
+ --line-height: var(--wui-typography-heading-hero-line-height);
7775
+ `;
7776
+ var heading1TextStyle = import_styled_components35.css`
7777
+ --font-family: var(--wui-typography-heading-1-family);
7778
+ --font-size: var(--wui-typography-heading-1-size);
7779
+ --font-weight: var(--wui-typography-heading-1-weight);
7780
+ --line-height: var(--wui-typography-heading-1-line-height);
7781
+ `;
7782
+ var heading2TextStyle = import_styled_components35.css`
7783
+ --font-family: var(--wui-typography-heading-2-family);
7784
+ --font-size: var(--wui-typography-heading-2-size);
7785
+ --font-weight: var(--wui-typography-heading-2-weight);
7786
+ --line-height: var(--wui-typography-heading-2-line-height);
7787
+ `;
7788
+ var heading3TextStyle = import_styled_components35.css`
7789
+ --font-family: var(--wui-typography-heading-3-family);
7790
+ --font-size: var(--wui-typography-heading-3-size);
7791
+ --font-weight: var(--wui-typography-heading-3-weight);
7792
+ --line-height: var(--wui-typography-heading-3-line-height);
7793
+ `;
7794
+ var heading4TextStyle = import_styled_components35.css`
7795
+ --font-family: var(--wui-typography-heading-4-family);
7796
+ --font-size: var(--wui-typography-heading-4-size);
7797
+ --font-weight: var(--wui-typography-heading-4-weight);
7798
+ --line-height: var(--wui-typography-heading-4-line-height);
7799
+ `;
7800
+ var heading5TextStyle = import_styled_components35.css`
7801
+ --font-family: var(--wui-typography-heading-5-family);
7802
+ --font-size: var(--wui-typography-heading-5-size);
7803
+ --font-weight: var(--wui-typography-heading-5-weight);
7804
+ --line-height: var(--wui-typography-heading-5-line-height);
7805
+ `;
7806
+ var heading6TextStyle = import_styled_components35.css`
7807
+ --font-family: var(--wui-typography-heading-6-family);
7808
+ --font-size: var(--wui-typography-heading-6-size);
7809
+ --font-weight: var(--wui-typography-heading-6-weight);
7810
+ --line-height: var(--wui-typography-heading-6-line-height);
7811
+ `;
7812
+ var variantStyleMap = {
7813
+ hero: heroStyle,
7814
+ heading1: heading1TextStyle,
7815
+ heading2: heading2TextStyle,
7816
+ heading3: heading3TextStyle,
7817
+ heading4: heading4TextStyle,
7818
+ heading5: heading5TextStyle,
7819
+ heading6: heading6TextStyle
7820
+ };
7821
+ var DEFAULT_ELEMENT2 = "h1";
7822
+ var StyledHeading = import_styled_components35.default.div`
7823
+ ${({ $colorScheme }) => getColorScheme($colorScheme)};
7824
+ font-family: var(--font-family);
7825
+ font-size: var(--font-size);
7826
+ font-weight: var(--font-weight);
7827
+ line-height: var(--line-height);
7828
+ color: var(--wui-color-text);
7829
+ ${({ $variant }) => variantStyleMap[$variant]}
7830
+ ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
7831
+ ${({ $inline }) => $inline && import_styled_components35.css`
7832
+ display: inline-block;
7833
+ `}
7834
+ ${({ $disabled }) => $disabled && import_styled_components35.css`
7835
+ color: var(--wui-color-text-disabled);
7836
+ `}
7837
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components35.css`
7838
+ user-select: none;
7839
+ `}
7840
+ ${({ $align }) => import_styled_components35.css`
7841
+ text-align: ${$align};
7842
+ `}
7843
+ margin: 0;
7844
+ `;
7845
+ var variantElementMap = {
7846
+ hero: DEFAULT_ELEMENT2,
7847
+ heading1: DEFAULT_ELEMENT2,
7848
+ heading2: "h2",
7849
+ heading3: "h3",
7850
+ heading4: "h4",
7851
+ heading5: "h5",
7852
+ heading6: "h6"
7853
+ };
7854
+ var HeadingComponent = (0, import_react21.forwardRef)(
7855
+ ({
7856
+ align = "left",
7857
+ colorScheme = "inherit",
7858
+ disabled = false,
7859
+ ellipsis = false,
7860
+ inline = false,
7861
+ preventUserSelect = false,
7862
+ variant = "heading1",
7863
+ renderAs,
7864
+ ...otherProps
7865
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
7866
+ StyledHeading,
7867
+ {
7868
+ ref,
7869
+ $align: align,
7870
+ $colorScheme: colorScheme,
7871
+ $disabled: disabled,
7872
+ $ellipsis: ellipsis,
7873
+ $inline: inline,
7874
+ $preventUserSelect: preventUserSelect,
7875
+ $variant: variant,
7876
+ as: renderAs ?? variantElementMap[variant],
7877
+ ...otherProps
7878
+ }
7879
+ )
7880
+ );
7881
+ HeadingComponent.displayName = "Heading";
7882
+ var Heading = makePolymorphic(HeadingComponent);
7883
+
7884
+ // src/components/DataCards/DataCard.tsx
7885
+ var import_jsx_runtime205 = require("react/jsx-runtime");
7886
+ var StyledDataCard = import_styled_components36.default.div`
7964
7887
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
7965
7888
  display: grid;
7966
7889
  grid-template-areas: 'label slot' 'value value';
@@ -7973,7 +7896,7 @@ var StyledDataCard = import_styled_components37.default.div`
7973
7896
  border-radius: var(--wui-border-radius-02);
7974
7897
  position: relative;
7975
7898
  `;
7976
- var shimmer = import_styled_components37.keyframes`
7899
+ var shimmer = import_styled_components36.keyframes`
7977
7900
  0% {
7978
7901
  background-position: 200% 0;
7979
7902
  }
@@ -7981,7 +7904,7 @@ var shimmer = import_styled_components37.keyframes`
7981
7904
  background-position: -200% 0;
7982
7905
  }
7983
7906
  `;
7984
- var LoadingBackground = import_styled_components37.default.div`
7907
+ var LoadingBackground = import_styled_components36.default.div`
7985
7908
  background: linear-gradient(
7986
7909
  90deg,
7987
7910
  var(--wui-color-bg-surface-tertiary) 25%,
@@ -7992,27 +7915,27 @@ var LoadingBackground = import_styled_components37.default.div`
7992
7915
  animation: ${shimmer} 1.5s infinite;
7993
7916
  border-radius: var(--wui-border-radius-01);
7994
7917
  `;
7995
- var StyledLoadingLabel = (0, import_styled_components37.default)(LoadingBackground)`
7918
+ var StyledLoadingLabel = (0, import_styled_components36.default)(LoadingBackground)`
7996
7919
  width: 80px;
7997
7920
  height: var(--wui-typography-heading-6-line-height);
7998
7921
  `;
7999
- var StyledLoadingValue = (0, import_styled_components37.default)(LoadingBackground)`
7922
+ var StyledLoadingValue = (0, import_styled_components36.default)(LoadingBackground)`
8000
7923
  width: 90%;
8001
7924
  height: var(--wui-typography-heading-3-line-height);
8002
7925
  `;
8003
- var StyledLabel3 = (0, import_styled_components37.default)(Heading)`
7926
+ var StyledLabel3 = (0, import_styled_components36.default)(Heading)`
8004
7927
  grid-area: label;
8005
7928
  `;
8006
- var StyledValue = (0, import_styled_components37.default)(Heading)`
7929
+ var StyledValue = (0, import_styled_components36.default)(Heading)`
8007
7930
  grid-area: value;
8008
7931
  `;
8009
- var StyledSlot = import_styled_components37.default.div`
7932
+ var StyledSlot = import_styled_components36.default.div`
8010
7933
  display: flex;
8011
7934
  justify-content: flex-end;
8012
7935
  grid-area: slot;
8013
7936
  align-self: center;
8014
7937
  `;
8015
- var StyledDataCardTrendContainer = import_styled_components37.default.div`
7938
+ var StyledDataCardTrendContainer = import_styled_components36.default.div`
8016
7939
  position: absolute;
8017
7940
  bottom: var(--wui-space-01);
8018
7941
  right: var(--wui-space-01);
@@ -8025,39 +7948,39 @@ var DataCard = ({
8025
7948
  isLoading = false,
8026
7949
  trend,
8027
7950
  ...props
8028
- }) => /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
7951
+ }) => /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(
8029
7952
  StyledDataCard,
8030
7953
  {
8031
7954
  $colorScheme: colorScheme,
8032
7955
  ...props,
8033
7956
  children: [
8034
- /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
7957
+ /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
8035
7958
  StyledLabel3,
8036
7959
  {
8037
7960
  renderAs: "dt",
8038
7961
  variant: "heading6",
8039
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledLoadingLabel, {}) : label
7962
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(StyledLoadingLabel, {}) : label
8040
7963
  }
8041
7964
  ),
8042
- /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
7965
+ /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
8043
7966
  StyledValue,
8044
7967
  {
8045
7968
  renderAs: "dd",
8046
7969
  variant: "heading3",
8047
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledLoadingValue, {}) : value
7970
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(StyledLoadingValue, {}) : value
8048
7971
  }
8049
7972
  ),
8050
- (0, import_type_guards23.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledSlot, { children: upperRightSlot }),
8051
- (0, import_type_guards23.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(StyledDataCardTrendContainer, { children: trend })
7973
+ (0, import_type_guards23.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(StyledSlot, { children: upperRightSlot }),
7974
+ (0, import_type_guards23.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(StyledDataCardTrendContainer, { children: trend })
8052
7975
  ]
8053
7976
  }
8054
7977
  );
8055
7978
  DataCard.displayName = "DataCard";
8056
7979
 
8057
7980
  // src/components/DataCards/DataCards.tsx
8058
- var import_styled_components38 = __toESM(require("styled-components"));
8059
- var import_jsx_runtime207 = require("react/jsx-runtime");
8060
- var StyledDataCards = (0, import_styled_components38.default)(Box)`
7981
+ var import_styled_components37 = __toESM(require("styled-components"));
7982
+ var import_jsx_runtime206 = require("react/jsx-runtime");
7983
+ var StyledDataCards = (0, import_styled_components37.default)(Box)`
8061
7984
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8062
7985
  margin-top: 0; /* Remove default <dl> style */
8063
7986
  > * {
@@ -8071,7 +7994,7 @@ var DataCards = ({
8071
7994
  colorScheme = "inherit",
8072
7995
  ...props
8073
7996
  }) => {
8074
- return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
7997
+ return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
8075
7998
  StyledDataCards,
8076
7999
  {
8077
8000
  ...props,
@@ -8089,25 +8012,25 @@ var DataCards = ({
8089
8012
  DataCards.displayName = "DataCards";
8090
8013
 
8091
8014
  // src/components/DataCards/DataCardTrend.tsx
8092
- var import_styled_components40 = __toESM(require("styled-components"));
8015
+ var import_styled_components39 = __toESM(require("styled-components"));
8093
8016
 
8094
8017
  // src/components/Text/Text.tsx
8095
8018
  var import_react22 = require("react");
8096
- var import_styled_components39 = __toESM(require("styled-components"));
8097
- var import_jsx_runtime208 = require("react/jsx-runtime");
8098
- var bodyBoldStyles = import_styled_components39.css`
8019
+ var import_styled_components38 = __toESM(require("styled-components"));
8020
+ var import_jsx_runtime207 = require("react/jsx-runtime");
8021
+ var bodyBoldStyles = import_styled_components38.css`
8099
8022
  > strong,
8100
8023
  b {
8101
8024
  font-weight: var(--wui-typography-weight-body-bold);
8102
8025
  }
8103
8026
  `;
8104
- var labelBoldStyles = import_styled_components39.css`
8027
+ var labelBoldStyles = import_styled_components38.css`
8105
8028
  > strong,
8106
8029
  b {
8107
8030
  font-weight: var(--wui-typography-weight-label-bold);
8108
8031
  }
8109
8032
  `;
8110
- var body1TextStyle = import_styled_components39.css`
8033
+ var body1TextStyle = import_styled_components38.css`
8111
8034
  --font-family: var(--wui-typography-body-1-family);
8112
8035
  --font-size: var(--wui-typography-body-1-size);
8113
8036
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8115,7 +8038,7 @@ var body1TextStyle = import_styled_components39.css`
8115
8038
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8116
8039
  ${bodyBoldStyles}
8117
8040
  `;
8118
- var body2TextStyle = import_styled_components39.css`
8041
+ var body2TextStyle = import_styled_components38.css`
8119
8042
  --font-family: var(--wui-typography-body-2-family);
8120
8043
  --font-size: var(--wui-typography-body-2-size);
8121
8044
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8123,7 +8046,7 @@ var body2TextStyle = import_styled_components39.css`
8123
8046
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8124
8047
  ${bodyBoldStyles}
8125
8048
  `;
8126
- var body3TextStyle = import_styled_components39.css`
8049
+ var body3TextStyle = import_styled_components38.css`
8127
8050
  --font-family: var(--wui-typography-body-3-family);
8128
8051
  --font-size: var(--wui-typography-body-3-size);
8129
8052
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8131,7 +8054,7 @@ var body3TextStyle = import_styled_components39.css`
8131
8054
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8132
8055
  ${bodyBoldStyles}
8133
8056
  `;
8134
- var body4TextStyle = import_styled_components39.css`
8057
+ var body4TextStyle = import_styled_components38.css`
8135
8058
  --font-family: var(--wui-typography-body-4-family);
8136
8059
  --font-size: var(--wui-typography-body-4-size);
8137
8060
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8139,47 +8062,47 @@ var body4TextStyle = import_styled_components39.css`
8139
8062
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8140
8063
  ${bodyBoldStyles}
8141
8064
  `;
8142
- var label1TextStyle = import_styled_components39.css`
8065
+ var label1TextStyle = import_styled_components38.css`
8143
8066
  --font-family: var(--wui-typography-label-1-family);
8144
8067
  --font-size: var(--wui-typography-label-1-size);
8145
8068
  --font-weight: var(--wui-typography-label-1-weight);
8146
8069
  --line-height: var(--wui-typography-label-1-line-height);
8147
8070
  ${labelBoldStyles}
8148
8071
  `;
8149
- var label2TextStyle = import_styled_components39.css`
8072
+ var label2TextStyle = import_styled_components38.css`
8150
8073
  --font-family: var(--wui-typography-label-2-family);
8151
8074
  --font-size: var(--wui-typography-label-2-size);
8152
8075
  --font-weight: var(--wui-typography-label-2-weight);
8153
8076
  --line-height: var(--wui-typography-label-2-line-height);
8154
8077
  ${labelBoldStyles}
8155
8078
  `;
8156
- var label3TextStyle = import_styled_components39.css`
8079
+ var label3TextStyle = import_styled_components38.css`
8157
8080
  --font-family: var(--wui-typography-label-3-family);
8158
8081
  --font-size: var(--wui-typography-label-3-size);
8159
8082
  --font-weight: var(--wui-typography-label-3-weight);
8160
8083
  --line-height: var(--wui-typography-label-3-line-height);
8161
8084
  ${labelBoldStyles}
8162
8085
  `;
8163
- var label4TextStyle = import_styled_components39.css`
8086
+ var label4TextStyle = import_styled_components38.css`
8164
8087
  --font-family: var(--wui-typography-label-4-family);
8165
8088
  --font-size: var(--wui-typography-label-4-size);
8166
8089
  --font-weight: var(--wui-typography-label-4-weight);
8167
8090
  --line-height: var(--wui-typography-label-4-line-height);
8168
8091
  ${labelBoldStyles}
8169
8092
  `;
8170
- var body1MonoTextStyle = import_styled_components39.css`
8093
+ var body1MonoTextStyle = import_styled_components38.css`
8171
8094
  ${body1TextStyle};
8172
8095
  --font-family: var(--wui-typography-family-mono);
8173
8096
  `;
8174
- var body2MonoTextStyle = import_styled_components39.css`
8097
+ var body2MonoTextStyle = import_styled_components38.css`
8175
8098
  ${body2TextStyle};
8176
8099
  --font-family: var(--wui-typography-family-mono);
8177
8100
  `;
8178
- var body3MonoTextStyle = import_styled_components39.css`
8101
+ var body3MonoTextStyle = import_styled_components38.css`
8179
8102
  ${body3TextStyle};
8180
8103
  --font-family: var(--wui-typography-family-mono);
8181
8104
  `;
8182
- var body4MonoTextStyle = import_styled_components39.css`
8105
+ var body4MonoTextStyle = import_styled_components38.css`
8183
8106
  ${body4TextStyle};
8184
8107
  --font-family: var(--wui-typography-family-mono);
8185
8108
  `;
@@ -8214,7 +8137,7 @@ var variantElementMap2 = {
8214
8137
  label3: labelElement,
8215
8138
  label4: labelElement
8216
8139
  };
8217
- var StyledText = import_styled_components39.default.div`
8140
+ var StyledText = import_styled_components38.default.div`
8218
8141
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8219
8142
  --text-color: ${({ $prominence, $disabled }) => {
8220
8143
  if ($disabled) {
@@ -8238,19 +8161,19 @@ var StyledText = import_styled_components39.default.div`
8238
8161
  margin: 0;
8239
8162
  ${({ $variant }) => variantStyleMap2[$variant]}
8240
8163
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8241
- ${({ $inline }) => $inline && import_styled_components39.css`
8164
+ ${({ $inline }) => $inline && import_styled_components38.css`
8242
8165
  display: inline-block;
8243
8166
  `}
8244
- ${({ $disabled }) => $disabled && import_styled_components39.css`
8167
+ ${({ $disabled }) => $disabled && import_styled_components38.css`
8245
8168
  --text-color: var(--wui-color-text-disabled);
8246
8169
  `}
8247
- ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components39.css`
8170
+ ${({ $preventUserSelect }) => $preventUserSelect && import_styled_components38.css`
8248
8171
  user-select: none;
8249
8172
  `}
8250
- ${({ $align }) => import_styled_components39.css`
8173
+ ${({ $align }) => import_styled_components38.css`
8251
8174
  text-align: ${$align};
8252
8175
  `}
8253
- ${({ as }) => as === "p" && import_styled_components39.css`
8176
+ ${({ as }) => as === "p" && import_styled_components38.css`
8254
8177
  display: block;
8255
8178
 
8256
8179
  + p {
@@ -8271,7 +8194,7 @@ var TextComponent = (0, import_react22.forwardRef)(
8271
8194
  renderAs,
8272
8195
  ...otherProps
8273
8196
  }, ref) => {
8274
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8197
+ return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
8275
8198
  StyledText,
8276
8199
  {
8277
8200
  ref,
@@ -8293,8 +8216,8 @@ TextComponent.displayName = "Text";
8293
8216
  var Text = makePolymorphic(TextComponent);
8294
8217
 
8295
8218
  // src/components/DataCards/DataCardTrend.tsx
8296
- var import_jsx_runtime209 = require("react/jsx-runtime");
8297
- var StyledDataCardTrend = import_styled_components40.default.div`
8219
+ var import_jsx_runtime208 = require("react/jsx-runtime");
8220
+ var StyledDataCardTrend = import_styled_components39.default.div`
8298
8221
  ${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
8299
8222
  background: var(--wui-color-bg-app);
8300
8223
  border-radius: var(--wui-border-radius-rounded);
@@ -8309,8 +8232,8 @@ var DataCardTrend = ({
8309
8232
  children,
8310
8233
  ...props
8311
8234
  }) => {
8312
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8313
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8235
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
8236
+ /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8314
8237
  Icon,
8315
8238
  {
8316
8239
  size: "md",
@@ -8318,7 +8241,7 @@ var DataCardTrend = ({
8318
8241
  ...props
8319
8242
  }
8320
8243
  ),
8321
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8244
+ /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
8322
8245
  Text,
8323
8246
  {
8324
8247
  prominence: "secondary",
@@ -8330,22 +8253,22 @@ var DataCardTrend = ({
8330
8253
  };
8331
8254
 
8332
8255
  // src/components/Divider/Divider.tsx
8333
- var import_styled_components41 = __toESM(require("styled-components"));
8334
- var import_jsx_runtime210 = require("react/jsx-runtime");
8335
- var horizontalBorderCss = import_styled_components41.css`
8256
+ var import_styled_components40 = __toESM(require("styled-components"));
8257
+ var import_jsx_runtime209 = require("react/jsx-runtime");
8258
+ var horizontalBorderCss = import_styled_components40.css`
8336
8259
  border-top-color: var(--wui-color-border);
8337
8260
  border-top-style: solid;
8338
8261
  border-top-width: 1px;
8339
8262
  clear: both; /* for horizontal dividers, ensure it clears any floats */
8340
8263
  height: 0;
8341
8264
  `;
8342
- var verticalBorderCss = import_styled_components41.css`
8265
+ var verticalBorderCss = import_styled_components40.css`
8343
8266
  background-color: var(--wui-color-border);
8344
8267
  max-width: 1px;
8345
8268
  min-height: 100%;
8346
8269
  width: 1px;
8347
8270
  `;
8348
- var DividerComponent = import_styled_components41.default.div`
8271
+ var DividerComponent = import_styled_components40.default.div`
8349
8272
  ${({ $orientation }) => {
8350
8273
  switch ($orientation) {
8351
8274
  case "vertical":
@@ -8360,7 +8283,7 @@ var Divider = ({
8360
8283
  orientation = "horizontal",
8361
8284
  ...otherProps
8362
8285
  }) => {
8363
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
8286
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
8364
8287
  DividerComponent,
8365
8288
  {
8366
8289
  $orientation: orientation,
@@ -8373,15 +8296,15 @@ var Divider = ({
8373
8296
  Divider.displayName = "Divider";
8374
8297
 
8375
8298
  // src/components/EditableHeading/EditableHeading.tsx
8376
- var import_styled_components45 = __toESM(require("styled-components"));
8299
+ var import_styled_components44 = __toESM(require("styled-components"));
8377
8300
  var import_react24 = require("react");
8378
8301
 
8379
8302
  // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
8380
- var import_styled_components42 = __toESM(require("styled-components"));
8303
+ var import_styled_components41 = __toESM(require("styled-components"));
8381
8304
  var import_type_guards24 = require("@wistia/type-guards");
8382
- var import_jsx_runtime211 = require("react/jsx-runtime");
8383
- var VisuallyHidden = import_styled_components42.default.div({ ...visuallyHiddenStyle });
8384
- var VisuallyHiddenButFocusable = import_styled_components42.default.div({
8305
+ var import_jsx_runtime210 = require("react/jsx-runtime");
8306
+ var VisuallyHidden = import_styled_components41.default.div({ ...visuallyHiddenStyle });
8307
+ var VisuallyHiddenButFocusable = import_styled_components41.default.div({
8385
8308
  "&:not(:focus-within)": visuallyHiddenStyle
8386
8309
  });
8387
8310
  var ScreenReaderOnly = ({
@@ -8392,24 +8315,24 @@ var ScreenReaderOnly = ({
8392
8315
  }) => {
8393
8316
  const accessibleText = (0, import_type_guards24.isNotNil)(text) ? text : children;
8394
8317
  if (focusable) {
8395
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
8318
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
8396
8319
  }
8397
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
8320
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
8398
8321
  };
8399
8322
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
8400
8323
 
8401
8324
  // src/components/Tooltip/Tooltip.tsx
8402
8325
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
8403
- var import_styled_components43 = __toESM(require("styled-components"));
8404
- var import_jsx_runtime212 = require("react/jsx-runtime");
8405
- var CompactTooltipStyles = import_styled_components43.css`
8326
+ var import_styled_components42 = __toESM(require("styled-components"));
8327
+ var import_jsx_runtime211 = require("react/jsx-runtime");
8328
+ var CompactTooltipStyles = import_styled_components42.css`
8406
8329
  --tooltip-font-size: var(--wui-typography-label-4-size);
8407
8330
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
8408
8331
  --tooltip-font-weight: var(--wui-typography-label-4-weight);
8409
8332
  --tooltip-horizontal-padding: var(--wui-space-02);
8410
8333
  --tooltip-vertical-padding: var(--wui-space-03);
8411
8334
  `;
8412
- var StyledContent = (0, import_styled_components43.default)(import_react_tooltip2.Content)`
8335
+ var StyledContent = (0, import_styled_components42.default)(import_react_tooltip2.Content)`
8413
8336
  --tooltip-font-family: var(--wui-typography-family-default);
8414
8337
  --tooltip-border-radius: var(--wui-border-radius-05);
8415
8338
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -8468,14 +8391,14 @@ var Tooltip = ({
8468
8391
  if (forceOpen === true) {
8469
8392
  rootProps.open = true;
8470
8393
  }
8471
- return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
8394
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
8472
8395
  import_react_tooltip2.Root,
8473
8396
  {
8474
8397
  delayDuration: delay,
8475
8398
  ...rootProps,
8476
8399
  children: [
8477
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
8478
- /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
8400
+ /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
8401
+ /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
8479
8402
  StyledContent,
8480
8403
  {
8481
8404
  $compact: compact,
@@ -8483,7 +8406,7 @@ var Tooltip = ({
8483
8406
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
8484
8407
  children: [
8485
8408
  content,
8486
- !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8409
+ !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8487
8410
  "svg",
8488
8411
  {
8489
8412
  fill: "var(--tooltip-bg)",
@@ -8492,7 +8415,7 @@ var Tooltip = ({
8492
8415
  viewBox: "0 0 12 8",
8493
8416
  width: "12",
8494
8417
  xmlns: "http://www.w3.org/2000/svg",
8495
- children: /* @__PURE__ */ (0, import_jsx_runtime212.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" })
8418
+ children: /* @__PURE__ */ (0, import_jsx_runtime211.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" })
8496
8419
  }
8497
8420
  ) }) : null
8498
8421
  ]
@@ -8506,10 +8429,10 @@ Tooltip.displayName = "Tooltip";
8506
8429
 
8507
8430
  // src/components/Input/Input.tsx
8508
8431
  var import_react23 = require("react");
8509
- var import_styled_components44 = __toESM(require("styled-components"));
8432
+ var import_styled_components43 = __toESM(require("styled-components"));
8510
8433
  var import_type_guards25 = require("@wistia/type-guards");
8511
- var import_jsx_runtime213 = require("react/jsx-runtime");
8512
- var inputStyles = import_styled_components44.css`
8434
+ var import_jsx_runtime212 = require("react/jsx-runtime");
8435
+ var inputStyles = import_styled_components43.css`
8513
8436
  --wui-input-color-bg: var(--wui-color-bg-surface);
8514
8437
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
8515
8438
  --wui-input-color-border: var(--wui-color-border);
@@ -8550,7 +8473,7 @@ var inputStyles = import_styled_components44.css`
8550
8473
  }
8551
8474
  }
8552
8475
  `;
8553
- var StyledInputContainer = import_styled_components44.default.div`
8476
+ var StyledInputContainer = import_styled_components43.default.div`
8554
8477
  display: inline-flex;
8555
8478
  position: relative;
8556
8479
  ${inputStyles};
@@ -8611,7 +8534,7 @@ var Input = (0, import_react23.forwardRef)(
8611
8534
  );
8612
8535
  let leftIconToDisplay = leftIcon;
8613
8536
  if ((0, import_type_guards25.isNil)(leftIcon) && type === "search") {
8614
- leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Icon, { type: "search" });
8537
+ leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(Icon, { type: "search" });
8615
8538
  }
8616
8539
  if ((0, import_type_guards25.isNotNil)(leftIconToDisplay)) {
8617
8540
  leftIconToDisplay = (0, import_react23.cloneElement)(leftIconToDisplay, {
@@ -8636,21 +8559,21 @@ var Input = (0, import_react23.forwardRef)(
8636
8559
  });
8637
8560
  }
8638
8561
  };
8639
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
8562
+ return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
8640
8563
  StyledInputContainer,
8641
8564
  {
8642
8565
  $fullWidth: fullWidth,
8643
8566
  $monospace: monospace,
8644
8567
  children: [
8645
8568
  leftIconToDisplay ?? null,
8646
- type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8569
+ type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8647
8570
  "textarea",
8648
8571
  {
8649
8572
  ...props,
8650
8573
  ref,
8651
8574
  onFocus: handleFocus
8652
8575
  }
8653
- ) : /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8576
+ ) : /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
8654
8577
  "input",
8655
8578
  {
8656
8579
  ...props,
@@ -8668,8 +8591,8 @@ var Input = (0, import_react23.forwardRef)(
8668
8591
  Input.displayName = "Input";
8669
8592
 
8670
8593
  // src/components/EditableHeading/EditableHeading.tsx
8671
- var import_jsx_runtime214 = require("react/jsx-runtime");
8672
- var StyledInput = (0, import_styled_components45.default)(Input)`
8594
+ var import_jsx_runtime213 = require("react/jsx-runtime");
8595
+ var StyledInput = (0, import_styled_components44.default)(Input)`
8673
8596
  :not([rows]) {
8674
8597
  min-height: unset;
8675
8598
  }
@@ -8689,7 +8612,7 @@ var StyledInput = (0, import_styled_components45.default)(Input)`
8689
8612
  height: ${({ $height }) => `${$height}px`};
8690
8613
  }
8691
8614
  `;
8692
- var editableStyles = import_styled_components45.css`
8615
+ var editableStyles = import_styled_components44.css`
8693
8616
  &:has(+ :focus-within) {
8694
8617
  background: var(--wui-color-bg-surface-hover);
8695
8618
  }
@@ -8699,7 +8622,7 @@ var editableStyles = import_styled_components45.css`
8699
8622
  cursor: pointer;
8700
8623
  }
8701
8624
  `;
8702
- var StyledHeading2 = (0, import_styled_components45.default)(Heading)`
8625
+ var StyledHeading2 = (0, import_styled_components44.default)(Heading)`
8703
8626
  width: 100%;
8704
8627
  border-radius: var(--wui-border-radius-02);
8705
8628
  padding: var(--wui-space-02);
@@ -8753,7 +8676,7 @@ var EditableHeading = ({
8753
8676
  handleSetEditing(false);
8754
8677
  }
8755
8678
  };
8756
- const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8679
+ const HeadingComponent2 = /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8757
8680
  StyledHeading2,
8758
8681
  {
8759
8682
  ref: headingRef,
@@ -8767,7 +8690,7 @@ var EditableHeading = ({
8767
8690
  return HeadingComponent2;
8768
8691
  }
8769
8692
  if (isEditing || forceEditing) {
8770
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8693
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8771
8694
  StyledInput,
8772
8695
  {
8773
8696
  $height: headingHeight,
@@ -8785,8 +8708,8 @@ var EditableHeading = ({
8785
8708
  }
8786
8709
  );
8787
8710
  }
8788
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(import_jsx_runtime214.Fragment, { children: [
8789
- /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8711
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(import_jsx_runtime213.Fragment, { children: [
8712
+ /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8790
8713
  Tooltip,
8791
8714
  {
8792
8715
  compact: true,
@@ -8794,7 +8717,7 @@ var EditableHeading = ({
8794
8717
  children: HeadingComponent2
8795
8718
  }
8796
8719
  ),
8797
- /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8720
+ /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8798
8721
  "button",
8799
8722
  {
8800
8723
  "aria-label": ariaLabel,
@@ -8807,27 +8730,30 @@ var EditableHeading = ({
8807
8730
 
8808
8731
  // src/components/Form/Form.tsx
8809
8732
  var import_react26 = require("react");
8810
- var import_styled_components47 = __toESM(require("styled-components"));
8733
+ var import_styled_components46 = __toESM(require("styled-components"));
8811
8734
  var import_type_guards26 = require("@wistia/type-guards");
8812
8735
 
8813
8736
  // src/components/Stack/Stack.tsx
8814
8737
  var import_react25 = require("react");
8815
- var import_styled_components46 = __toESM(require("styled-components"));
8816
- var import_jsx_runtime215 = require("react/jsx-runtime");
8738
+ var import_styled_components45 = __toESM(require("styled-components"));
8739
+ var import_jsx_runtime214 = require("react/jsx-runtime");
8817
8740
  var DEFAULT_ELEMENT4 = "div";
8818
- var StyledStack = import_styled_components46.default.div`
8741
+ var StyledStack = import_styled_components45.default.div`
8819
8742
  display: flex;
8820
8743
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
8821
8744
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
8745
+ align-items: ${({ $alignItems }) => $alignItems};
8822
8746
  `;
8823
8747
  var StackComponent = (0, import_react25.forwardRef)(
8824
- ({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
8748
+ ({ renderAs, direction = "vertical", gap = "space-02", alignItems = "stretch", ...props }, ref) => {
8825
8749
  const responsiveGap = useResponsiveProp(gap);
8826
8750
  const responsiveDirection = useResponsiveProp(direction);
8827
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8751
+ const responsiveAlignItems = useResponsiveProp(alignItems);
8752
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8828
8753
  StyledStack,
8829
8754
  {
8830
8755
  ref,
8756
+ $alignItems: responsiveAlignItems,
8831
8757
  $direction: responsiveDirection,
8832
8758
  $gap: responsiveGap,
8833
8759
  as: renderAs ?? DEFAULT_ELEMENT4,
@@ -8840,8 +8766,8 @@ StackComponent.displayName = "Stack";
8840
8766
  var Stack = makePolymorphic(StackComponent);
8841
8767
 
8842
8768
  // src/components/Form/Form.tsx
8843
- var import_jsx_runtime216 = require("react/jsx-runtime");
8844
- var StyledForm = import_styled_components47.default.form`
8769
+ var import_jsx_runtime215 = require("react/jsx-runtime");
8770
+ var StyledForm = import_styled_components46.default.form`
8845
8771
  --form-default-width: 690px;
8846
8772
 
8847
8773
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
@@ -8920,7 +8846,7 @@ var FormComponent = ({
8920
8846
  }, [labelPosition, values, errors, id, hasSubmitted]);
8921
8847
  return (
8922
8848
  // @ts-expect-error - generic context providers are a giant pain
8923
- /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8849
+ /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(FormContext.Provider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
8924
8850
  Stack,
8925
8851
  {
8926
8852
  ...props,
@@ -8979,9 +8905,9 @@ var useFormState = (action, initialData = {}) => {
8979
8905
  // src/components/Form/FormErrorSummary.tsx
8980
8906
  var import_react28 = require("react");
8981
8907
  var import_type_guards27 = require("@wistia/type-guards");
8982
- var import_jsx_runtime217 = require("react/jsx-runtime");
8908
+ var import_jsx_runtime216 = require("react/jsx-runtime");
8983
8909
  var ErrorItem = ({ name, error, formId }) => {
8984
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
8910
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
8985
8911
  };
8986
8912
  var FormErrorSummary = ({ description }) => {
8987
8913
  const ref = (0, import_react28.useRef)(null);
@@ -8990,10 +8916,10 @@ var FormErrorSummary = ({ description }) => {
8990
8916
  if (isValid || !hasSubmitted) {
8991
8917
  return null;
8992
8918
  }
8993
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { ref, children: [
8994
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("p", { children: description }),
8995
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards27.isNotUndefined)(error)).map(
8996
- ([name, error]) => (0, import_type_guards27.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
8919
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { ref, children: [
8920
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("p", { children: description }),
8921
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards27.isNotUndefined)(error)).map(
8922
+ ([name, error]) => (0, import_type_guards27.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8997
8923
  ErrorItem,
8998
8924
  {
8999
8925
  error: err,
@@ -9001,7 +8927,7 @@ var FormErrorSummary = ({ description }) => {
9001
8927
  name
9002
8928
  },
9003
8929
  err
9004
- )) : /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
8930
+ )) : /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
9005
8931
  ErrorItem,
9006
8932
  {
9007
8933
  error: error ?? "",
@@ -9019,6 +8945,62 @@ var import_react31 = require("react");
9019
8945
  var import_styled_components49 = __toESM(require("styled-components"));
9020
8946
  var import_type_guards28 = require("@wistia/type-guards");
9021
8947
 
8948
+ // src/components/Label/Label.tsx
8949
+ var import_styled_components47 = __toESM(require("styled-components"));
8950
+ var import_jsx_runtime217 = require("react/jsx-runtime");
8951
+ var requiredStyle = import_styled_components47.css`
8952
+ &::after {
8953
+ color: var(--wui-color-text-error);
8954
+ display: inline;
8955
+ padding-left: var(--wui-space-01);
8956
+ content: '*';
8957
+ }
8958
+ `;
8959
+ var disabledStyle2 = import_styled_components47.css`
8960
+ color: var(--wui-color-text-disabled);
8961
+ `;
8962
+ var StyledLabel4 = (0, import_styled_components47.default)(Heading).attrs({
8963
+ variant: "heading6",
8964
+ renderAs: "label"
8965
+ })`
8966
+ display: block;
8967
+ width: 100%;
8968
+
8969
+ /* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
8970
+ > input,
8971
+ > textarea,
8972
+ > select {
8973
+ display: block;
8974
+ }
8975
+
8976
+ > label {
8977
+ font-weight: normal;
8978
+ }
8979
+
8980
+ ${({ $screenReaderOnly }) => $screenReaderOnly && visuallyHiddenStyle}
8981
+ ${({ $disabled }) => $disabled && disabledStyle2}
8982
+ ${({ $required }) => $required && requiredStyle}
8983
+ `;
8984
+ var Label = ({
8985
+ children,
8986
+ disabled = false,
8987
+ htmlFor,
8988
+ required = false,
8989
+ screenReaderOnly = false,
8990
+ ...otherProps
8991
+ }) => /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
8992
+ StyledLabel4,
8993
+ {
8994
+ ...otherProps,
8995
+ $disabled: disabled,
8996
+ $required: required,
8997
+ $screenReaderOnly: screenReaderOnly,
8998
+ htmlFor,
8999
+ children
9000
+ }
9001
+ );
9002
+ Label.displayName = "Label";
9003
+
9022
9004
  // src/components/FormGroup/CheckboxGroup.tsx
9023
9005
  var import_react30 = require("react");
9024
9006
 
@@ -9780,7 +9762,7 @@ RadioMenuItem.displayName = "RadioMenuItem";
9780
9762
  // src/components/Menu/CheckboxMenuItem.tsx
9781
9763
  var import_react_dropdown_menu7 = require("@radix-ui/react-dropdown-menu");
9782
9764
  var import_jsx_runtime232 = require("react/jsx-runtime");
9783
- var CheckboxIndicator2 = ({ checked, ...props }) => {
9765
+ var CheckboxIndicator = ({ checked, ...props }) => {
9784
9766
  return checked ? /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
9785
9767
  "svg",
9786
9768
  {
@@ -9852,7 +9834,7 @@ var CheckboxMenuItem = ({
9852
9834
  MenuItemButton,
9853
9835
  {
9854
9836
  ...props,
9855
- leftIcon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(CheckboxIndicator2, { checked })
9837
+ leftIcon: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(CheckboxIndicator, { checked })
9856
9838
  }
9857
9839
  )
9858
9840
  }
@@ -10302,7 +10284,7 @@ var StyledRadio = import_styled_components64.default.input`
10302
10284
  transform: scale(1);
10303
10285
  }
10304
10286
  `;
10305
- var disabledStyle2 = import_styled_components64.css`
10287
+ var disabledStyle3 = import_styled_components64.css`
10306
10288
  cursor: not-allowed;
10307
10289
  opacity: 0.5;
10308
10290
  `;
@@ -10339,7 +10321,7 @@ var StyledRadioWrapper = import_styled_components64.default.div`
10339
10321
  ${errorStyle};
10340
10322
  }
10341
10323
 
10342
- ${({ disabled }) => disabled && disabledStyle2};
10324
+ ${({ disabled }) => disabled && disabledStyle3};
10343
10325
  `;
10344
10326
  var Radio = (0, import_react43.forwardRef)(
10345
10327
  ({
@@ -10853,12 +10835,12 @@ SelectOption.displayName = "Option";
10853
10835
  var import_react_select3 = require("@radix-ui/react-select");
10854
10836
  var import_styled_components70 = __toESM(require("styled-components"));
10855
10837
  var import_jsx_runtime247 = require("react/jsx-runtime");
10856
- var StyledLabel4 = (0, import_styled_components70.default)(import_react_select3.Label)`
10838
+ var StyledLabel5 = (0, import_styled_components70.default)(import_react_select3.Label)`
10857
10839
  padding: var(--wui-select-option-padding);
10858
10840
  `;
10859
10841
  var SelectOptionGroup = ({ children, label, ...props }) => {
10860
10842
  return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(import_react_select3.Group, { ...props, children: [
10861
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
10843
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(StyledLabel5, { children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
10862
10844
  Text,
10863
10845
  {
10864
10846
  prominence: "secondary",