@wistia/ui 0.1.0 → 0.1.1

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.1.0
3
+ * @license @wistia/ui v0.1.1
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -66,6 +66,7 @@ __export(index_exports, {
66
66
  MenuItemLabel: () => MenuItemLabel,
67
67
  MenuLabel: () => MenuLabel,
68
68
  MenuRadioGroup: () => MenuRadioGroup,
69
+ Modal: () => Modal,
69
70
  Radio: () => Radio,
70
71
  RadioGroup: () => RadioGroup,
71
72
  RadioMenuItem: () => RadioMenuItem,
@@ -155,12 +156,13 @@ var resetCss = import_styled_components.css`
155
156
  }
156
157
 
157
158
  /* Balance text wrapping on headings */
158
- h1,
159
+
160
+ /* h1,
159
161
  h2,
160
162
  h3,
161
163
  h4 {
162
164
  text-wrap: balance;
163
- }
165
+ } */
164
166
 
165
167
  /* A elements that don't have a class get default styles */
166
168
  a:not([class]) {
@@ -1364,6 +1366,7 @@ var typographyTokens = import_styled_components7.css`
1364
1366
  var import_styled_components8 = require("styled-components");
1365
1367
  var zIndexTokens = import_styled_components8.css`
1366
1368
  --wui-zindex-backdrop: 100;
1369
+ --wui-zindex-modal: 100;
1367
1370
  --wui-zindex-menu: 500;
1368
1371
  `;
1369
1372
 
@@ -7432,17 +7435,296 @@ var CheckboxMenuItem = ({
7432
7435
  };
7433
7436
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
7434
7437
 
7435
- // src/components/Radio/Radio.tsx
7436
- var import_react28 = require("react");
7438
+ // src/components/Modal/Modal.tsx
7439
+ var import_react30 = require("react");
7440
+ var import_styled_components44 = __toESM(require("styled-components"));
7441
+ var import_react_dialog3 = require("@radix-ui/react-dialog");
7442
+ var import_type_guards25 = require("@wistia/type-guards");
7443
+
7444
+ // src/components/Modal/ModalHeader.tsx
7445
+ var import_styled_components42 = __toESM(require("styled-components"));
7446
+ var import_react_dialog2 = require("@radix-ui/react-dialog");
7447
+
7448
+ // src/components/Modal/ModalCloseButton.tsx
7437
7449
  var import_styled_components40 = __toESM(require("styled-components"));
7438
- var import_type_guards23 = require("@wistia/type-guards");
7450
+ var import_react_dialog = require("@radix-ui/react-dialog");
7439
7451
  var import_jsx_runtime191 = require("react/jsx-runtime");
7440
- var StyledLabelWrapper2 = import_styled_components40.default.div`
7452
+ var CloseButton = (0, import_styled_components40.default)(import_react_dialog.Close)`
7453
+ align-self: start;
7454
+ `;
7455
+ var ModalCloseButton = () => {
7456
+ return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(CloseButton, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7457
+ IconButton,
7458
+ {
7459
+ disableTooltip: true,
7460
+ label: "Dismiss modal",
7461
+ size: "sm",
7462
+ variant: "ghost",
7463
+ children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(Icon, { type: "close" })
7464
+ }
7465
+ ) });
7466
+ };
7467
+
7468
+ // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7469
+ var import_styled_components41 = __toESM(require("styled-components"));
7470
+ var import_type_guards23 = require("@wistia/type-guards");
7471
+ var import_jsx_runtime192 = require("react/jsx-runtime");
7472
+ var VisuallyHidden = import_styled_components41.default.div({ ...visuallyHiddenStyle });
7473
+ var VisuallyHiddenButFocusable = import_styled_components41.default.div({
7474
+ "&:not(:focus-within)": visuallyHiddenStyle
7475
+ });
7476
+ var ScreenReaderOnly = ({
7477
+ text,
7478
+ children,
7479
+ focusable = false,
7480
+ ...otherProps
7481
+ }) => {
7482
+ const accessibleText = (0, import_type_guards23.isNotNil)(text) ? text : children;
7483
+ if (focusable) {
7484
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7485
+ }
7486
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
7487
+ };
7488
+ ScreenReaderOnly.displayName = "ScreenReaderOnly";
7489
+
7490
+ // src/components/Modal/ModalHeader.tsx
7491
+ var import_jsx_runtime193 = require("react/jsx-runtime");
7492
+ var Header = import_styled_components42.default.header`
7493
+ display: flex;
7494
+ order: 1;
7495
+ gap: var(--wui-space-01);
7496
+ margin-bottom: var(--wui-space-03);
7497
+ justify-content: space-between;
7498
+
7499
+ /* DialogTitle creates an h2 element which inherits some margin */
7500
+ h2 {
7501
+ margin-top: 0;
7502
+ }
7503
+ `;
7504
+ var Title = (0, import_styled_components42.default)(import_react_dialog2.Title)`
7505
+ font-family: var(--wui-typography-heading-2-family);
7506
+ line-height: var(--wui-typography-heading-2-line-height);
7507
+ font-size: var(--wui-typography-heading-2-size);
7508
+ font-weight: var(--wui-typography-heading-2-weight);
7509
+ `;
7510
+ var ModalHeader = ({
7511
+ title,
7512
+ hideTitle,
7513
+ hideCloseButton
7514
+ }) => {
7515
+ const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
7516
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(Header, { children: [
7517
+ /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(TitleWrapper, { children: title }),
7518
+ hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(ModalCloseButton, {})
7519
+ ] });
7520
+ };
7521
+
7522
+ // src/private/components/Backdrop/Backdrop.tsx
7523
+ var import_react28 = require("react");
7524
+ var import_styled_components43 = __toESM(require("styled-components"));
7525
+ var import_jsx_runtime194 = require("react/jsx-runtime");
7526
+ var backdropAnimationDuration = 150;
7527
+ var alignVerticalMap = {
7528
+ stretch: "normal",
7529
+ top: "start",
7530
+ center: "center",
7531
+ bottom: "end"
7532
+ };
7533
+ var alignHorizontalMap = {
7534
+ left: "start",
7535
+ center: "center",
7536
+ right: "end"
7537
+ };
7538
+ var BackdropComponent = import_styled_components43.default.div`
7539
+ align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
7540
+ animation-name: backdropShow;
7541
+ animation-duration: ${() => `${backdropAnimationDuration}ms`};
7542
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
7543
+ background: var(--wui-color-backdrop);
7544
+ display: flex;
7545
+ inset: 0;
7546
+ justify-content: ${({ $alignHorizontal }) => alignHorizontalMap[$alignHorizontal]};
7547
+ overflow-y: auto;
7548
+ position: fixed;
7549
+ z-index: var(--wui-zindex-backdrop);
7550
+
7551
+ @keyframes backdropShow {
7552
+ from {
7553
+ opacity: 0;
7554
+ }
7555
+
7556
+ to {
7557
+ opacity: 1;
7558
+ }
7559
+ }
7560
+ `;
7561
+ var Backdrop = (0, import_react28.forwardRef)(
7562
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
7563
+ BackdropComponent,
7564
+ {
7565
+ ref,
7566
+ $alignHorizontal: alignHorizontal,
7567
+ $alignVertical: alignVertical,
7568
+ ...otherProps,
7569
+ children
7570
+ }
7571
+ )
7572
+ );
7573
+ Backdrop.displayName = "Backdrop";
7574
+
7575
+ // src/private/hooks/useFocusRestore/useFocusRestore.ts
7576
+ var import_react29 = require("react");
7577
+ var import_type_guards24 = require("@wistia/type-guards");
7578
+ var useFocusRestore = () => {
7579
+ const previouslyFocusedRef = (0, import_react29.useRef)(null);
7580
+ (0, import_react29.useEffect)(() => {
7581
+ previouslyFocusedRef.current = document.activeElement;
7582
+ }, []);
7583
+ (0, import_react29.useEffect)(() => {
7584
+ return () => {
7585
+ if ((0, import_type_guards24.isNotNil)(previouslyFocusedRef.current)) {
7586
+ setTimeout(() => {
7587
+ previouslyFocusedRef.current?.focus();
7588
+ }, 0);
7589
+ }
7590
+ };
7591
+ }, []);
7592
+ };
7593
+
7594
+ // src/components/Modal/Modal.tsx
7595
+ var import_jsx_runtime195 = require("react/jsx-runtime");
7596
+ var StyledModalContent = (0, import_styled_components44.default)(import_react_dialog3.Content)`
7597
+ background-color: var(--wui-color-bg-app);
7598
+ box-sizing: border-box;
7599
+ display: flex;
7600
+ flex-direction: column;
7601
+ height: 100vh;
7602
+ left: 0;
7603
+ overflow: auto;
7604
+ padding: var(--wui-space-05);
7605
+ position: fixed;
7606
+ top: 0;
7607
+ width: 100vw;
7608
+ z-index: var(--wui-zindex-modal);
7609
+
7610
+ ${mq.smAndUp} {
7611
+ animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
7612
+ border-radius: var(--wui-border-radius-03);
7613
+ left: 50%;
7614
+ margin: var(--wui-space-02);
7615
+ height: ${({ $fullHeight }) => $fullHeight ? "min-content" : "auto"};
7616
+ max-height: 90vh;
7617
+ ${({ $fullHeight }) => $fullHeight ? "min-height: calc(100vh - 48px);" : ""}
7618
+ max-width: 90vw;
7619
+ top: 50%;
7620
+ transform: translate(-50%, -50%);
7621
+ min-width: ${({ $width }) => $width ?? "80vw"};
7622
+ }
7623
+
7624
+ @keyframes contentShow {
7625
+ from {
7626
+ opacity: 0;
7627
+ transform: translate(-50%, -48%) scale(0.96);
7628
+ }
7629
+
7630
+ to {
7631
+ opacity: 1;
7632
+ transform: translate(-50%, -50%) scale(1);
7633
+ }
7634
+ }
7635
+ `;
7636
+ var ModalContent = (0, import_react30.forwardRef)(
7637
+ ({ fullHeight, width, children, ...otherProps }, ref) => {
7638
+ useFocusRestore();
7639
+ return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7640
+ StyledModalContent,
7641
+ {
7642
+ ref,
7643
+ $fullHeight: fullHeight,
7644
+ $width: width,
7645
+ ...otherProps,
7646
+ children
7647
+ }
7648
+ );
7649
+ }
7650
+ );
7651
+ ModalContent.displayName = "ModalContent";
7652
+ var ModalBody = import_styled_components44.default.div`
7653
+ flex-direction: column;
7654
+ display: flex;
7655
+ order: 2;
7656
+ `;
7657
+ var Modal = (0, import_react30.forwardRef)(
7658
+ ({
7659
+ children,
7660
+ fullHeight = false,
7661
+ hideCloseButton = false,
7662
+ hideTitle = false,
7663
+ initialFocusRef,
7664
+ isOpen,
7665
+ onRequestClose,
7666
+ title,
7667
+ width,
7668
+ ...props
7669
+ }, ref) => {
7670
+ return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7671
+ import_react_dialog3.Root,
7672
+ {
7673
+ onOpenChange: (open2) => {
7674
+ if (!open2 && (0, import_type_guards25.isNotNil)(onRequestClose)) {
7675
+ onRequestClose();
7676
+ }
7677
+ },
7678
+ open: isOpen,
7679
+ children: /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)(import_react_dialog3.Portal, { children: [
7680
+ /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(Backdrop, {}),
7681
+ /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)(
7682
+ ModalContent,
7683
+ {
7684
+ ref,
7685
+ "aria-describedby": void 0,
7686
+ fullHeight,
7687
+ onOpenAutoFocus: (event) => {
7688
+ if ((0, import_type_guards25.isNotNil)(initialFocusRef) && initialFocusRef.current) {
7689
+ event.preventDefault();
7690
+ requestAnimationFrame(() => {
7691
+ initialFocusRef.current?.focus();
7692
+ });
7693
+ }
7694
+ },
7695
+ width,
7696
+ ...props,
7697
+ children: [
7698
+ /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(ModalBody, { children }),
7699
+ /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7700
+ ModalHeader,
7701
+ {
7702
+ hideCloseButton,
7703
+ hideTitle,
7704
+ title
7705
+ }
7706
+ )
7707
+ ]
7708
+ }
7709
+ )
7710
+ ] })
7711
+ }
7712
+ );
7713
+ }
7714
+ );
7715
+ Modal.displayName = "Modal";
7716
+
7717
+ // src/components/Radio/Radio.tsx
7718
+ var import_react31 = require("react");
7719
+ var import_styled_components45 = __toESM(require("styled-components"));
7720
+ var import_type_guards26 = require("@wistia/type-guards");
7721
+ var import_jsx_runtime196 = require("react/jsx-runtime");
7722
+ var StyledLabelWrapper2 = import_styled_components45.default.div`
7441
7723
  display: flex;
7442
7724
  flex-direction: column;
7443
7725
  padding-left: var(--wui-space-02);
7444
7726
  `;
7445
- var StyledRadio = import_styled_components40.default.input`
7727
+ var StyledRadio = import_styled_components45.default.input`
7446
7728
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
7447
7729
  appearance: none;
7448
7730
  margin: 0;
@@ -7468,11 +7750,11 @@ var StyledRadio = import_styled_components40.default.input`
7468
7750
  transform: scale(1);
7469
7751
  }
7470
7752
  `;
7471
- var disabledStyle2 = import_styled_components40.css`
7753
+ var disabledStyle2 = import_styled_components45.css`
7472
7754
  cursor: not-allowed;
7473
7755
  opacity: 0.5;
7474
7756
  `;
7475
- var errorStyle = import_styled_components40.css`
7757
+ var errorStyle = import_styled_components45.css`
7476
7758
  /* TODO Lamp to design error state */
7477
7759
  &:hover,
7478
7760
  &:focus,
@@ -7480,11 +7762,11 @@ var errorStyle = import_styled_components40.css`
7480
7762
  border-color: transparent !important;
7481
7763
  }
7482
7764
  `;
7483
- var defaultHoverStyle = import_styled_components40.css`
7765
+ var defaultHoverStyle = import_styled_components45.css`
7484
7766
  /* TODO Lamp to design hover state */
7485
7767
  cursor: pointer;
7486
7768
  `;
7487
- var StyledRadioWrapper = import_styled_components40.default.div`
7769
+ var StyledRadioWrapper = import_styled_components45.default.div`
7488
7770
  align-items: baseline;
7489
7771
  border: 1px solid transparent;
7490
7772
  border-radius: 4px;
@@ -7507,7 +7789,7 @@ var StyledRadioWrapper = import_styled_components40.default.div`
7507
7789
 
7508
7790
  ${({ disabled }) => disabled && disabledStyle2};
7509
7791
  `;
7510
- var Radio = (0, import_react28.forwardRef)(
7792
+ var Radio = (0, import_react31.forwardRef)(
7511
7793
  ({
7512
7794
  checked,
7513
7795
  disabled = false,
@@ -7520,15 +7802,15 @@ var Radio = (0, import_react28.forwardRef)(
7520
7802
  value = "false",
7521
7803
  ...otherProps
7522
7804
  }, ref) => {
7523
- const generatedId = (0, import_react28.useId)();
7524
- const computedId = (0, import_type_guards23.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
7525
- return /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(
7805
+ const generatedId = (0, import_react31.useId)();
7806
+ const computedId = (0, import_type_guards26.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
7807
+ return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(
7526
7808
  StyledRadioWrapper,
7527
7809
  {
7528
7810
  "aria-invalid": otherProps["aria-invalid"],
7529
7811
  disabled,
7530
7812
  children: [
7531
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7813
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7532
7814
  StyledRadio,
7533
7815
  {
7534
7816
  ref,
@@ -7543,8 +7825,8 @@ var Radio = (0, import_react28.forwardRef)(
7543
7825
  ...otherProps
7544
7826
  }
7545
7827
  ),
7546
- /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(StyledLabelWrapper2, { children: [
7547
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
7828
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(StyledLabelWrapper2, { children: [
7829
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7548
7830
  Label,
7549
7831
  {
7550
7832
  disabled,
@@ -7553,7 +7835,7 @@ var Radio = (0, import_react28.forwardRef)(
7553
7835
  children: label
7554
7836
  }
7555
7837
  ),
7556
- /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(LabelDescription, { children: description })
7838
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(LabelDescription, { children: description })
7557
7839
  ] })
7558
7840
  ]
7559
7841
  }
@@ -7562,34 +7844,12 @@ var Radio = (0, import_react28.forwardRef)(
7562
7844
  );
7563
7845
  Radio.displayName = "Radio";
7564
7846
 
7565
- // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
7566
- var import_styled_components41 = __toESM(require("styled-components"));
7567
- var import_type_guards24 = require("@wistia/type-guards");
7568
- var import_jsx_runtime192 = require("react/jsx-runtime");
7569
- var VisuallyHidden = import_styled_components41.default.div({ ...visuallyHiddenStyle });
7570
- var VisuallyHiddenButFocusable = import_styled_components41.default.div({
7571
- "&:not(:focus-within)": visuallyHiddenStyle
7572
- });
7573
- var ScreenReaderOnly = ({
7574
- text,
7575
- children,
7576
- focusable = false,
7577
- ...otherProps
7578
- }) => {
7579
- const accessibleText = (0, import_type_guards24.isNotNil)(text) ? text : children;
7580
- if (focusable) {
7581
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7582
- }
7583
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
7584
- };
7585
- ScreenReaderOnly.displayName = "ScreenReaderOnly";
7586
-
7587
7847
  // src/components/Tag/Tag.tsx
7588
- var import_react29 = require("react");
7589
- var import_styled_components42 = __toESM(require("styled-components"));
7590
- var import_type_guards25 = require("@wistia/type-guards");
7591
- var import_jsx_runtime193 = require("react/jsx-runtime");
7592
- var TagLabel = import_styled_components42.default.a`
7848
+ var import_react32 = require("react");
7849
+ var import_styled_components46 = __toESM(require("styled-components"));
7850
+ var import_type_guards27 = require("@wistia/type-guards");
7851
+ var import_jsx_runtime197 = require("react/jsx-runtime");
7852
+ var TagLabel = import_styled_components46.default.a`
7593
7853
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7594
7854
  font-size: var(--wui-typography-label-4-size);
7595
7855
  font-weight: var(--wui-typography-label-4-weight);
@@ -7617,14 +7877,14 @@ var TagLabel = import_styled_components42.default.a`
7617
7877
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
7618
7878
  }
7619
7879
  `;
7620
- var TagDivider = import_styled_components42.default.div`
7880
+ var TagDivider = import_styled_components46.default.div`
7621
7881
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7622
7882
  border-left: 1px solid var(--wui-color-border);
7623
7883
  display: flex;
7624
7884
  height: 14px;
7625
7885
  width: 1px;
7626
7886
  `;
7627
- var StyledRemoveButton = import_styled_components42.default.button`
7887
+ var StyledRemoveButton = import_styled_components46.default.button`
7628
7888
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7629
7889
  all: unset;
7630
7890
  cursor: pointer;
@@ -7652,7 +7912,7 @@ var StyledRemoveButton = import_styled_components42.default.button`
7652
7912
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
7653
7913
  }
7654
7914
  `;
7655
- var StyledTag = import_styled_components42.default.div`
7915
+ var StyledTag = import_styled_components46.default.div`
7656
7916
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7657
7917
  align-items: center;
7658
7918
  background-color: var(--wui-color-bg-surface-secondary);
@@ -7661,47 +7921,47 @@ var StyledTag = import_styled_components42.default.div`
7661
7921
  overflow: hidden;
7662
7922
  `;
7663
7923
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
7664
- if ((0, import_type_guards25.isNil)(onClickRemove)) {
7924
+ if ((0, import_type_guards27.isNil)(onClickRemove)) {
7665
7925
  return null;
7666
7926
  }
7667
- if ((0, import_type_guards25.isNil)(onClickRemoveLabel)) {
7927
+ if ((0, import_type_guards27.isNil)(onClickRemoveLabel)) {
7668
7928
  throw new Error(
7669
7929
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
7670
7930
  );
7671
7931
  }
7672
- return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(import_jsx_runtime193.Fragment, { children: [
7673
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(TagDivider, { $colorScheme: colorScheme }),
7674
- /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(
7932
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(import_jsx_runtime197.Fragment, { children: [
7933
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(TagDivider, { $colorScheme: colorScheme }),
7934
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7675
7935
  StyledRemoveButton,
7676
7936
  {
7677
7937
  $colorScheme: colorScheme,
7678
7938
  onClick: onClickRemove,
7679
7939
  type: "button",
7680
7940
  children: [
7681
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7941
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7682
7942
  Icon,
7683
7943
  {
7684
7944
  size: "sm",
7685
7945
  type: "close"
7686
7946
  }
7687
7947
  ),
7688
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
7948
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
7689
7949
  ]
7690
7950
  }
7691
7951
  )
7692
7952
  ] });
7693
7953
  };
7694
- var Tag = (0, import_react29.forwardRef)(
7954
+ var Tag = (0, import_react32.forwardRef)(
7695
7955
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
7696
- const labelProps = (0, import_type_guards25.isNotNil)(href) && (0, import_type_guards25.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
7697
- return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)(
7956
+ const labelProps = (0, import_type_guards27.isNotNil)(href) && (0, import_type_guards27.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
7957
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7698
7958
  StyledTag,
7699
7959
  {
7700
7960
  ref,
7701
7961
  $colorScheme: colorScheme,
7702
7962
  ...otherProps,
7703
7963
  children: [
7704
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7964
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7705
7965
  TagLabel,
7706
7966
  {
7707
7967
  ...labelProps,
@@ -7709,7 +7969,7 @@ var Tag = (0, import_react29.forwardRef)(
7709
7969
  children: label
7710
7970
  }
7711
7971
  ),
7712
- /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
7972
+ /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
7713
7973
  RemoveButton,
7714
7974
  {
7715
7975
  colorScheme,
@@ -7726,16 +7986,16 @@ Tag.displayName = "Tag";
7726
7986
 
7727
7987
  // src/components/Tooltip/Tooltip.tsx
7728
7988
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
7729
- var import_styled_components43 = __toESM(require("styled-components"));
7730
- var import_jsx_runtime194 = require("react/jsx-runtime");
7731
- var CompactTooltipStyles = import_styled_components43.css`
7989
+ var import_styled_components47 = __toESM(require("styled-components"));
7990
+ var import_jsx_runtime198 = require("react/jsx-runtime");
7991
+ var CompactTooltipStyles = import_styled_components47.css`
7732
7992
  --tooltip-font-size: var(--wui-typography-label-4-size);
7733
7993
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
7734
7994
  --tooltip-font-weight: var(--wui-typography-label-4-weight);
7735
7995
  --tooltip-horizontal-padding: var(--wui-space-02);
7736
7996
  --tooltip-vertical-padding: var(--wui-space-03);
7737
7997
  `;
7738
- var StyledContent = (0, import_styled_components43.default)(import_react_tooltip2.Content)`
7998
+ var StyledContent = (0, import_styled_components47.default)(import_react_tooltip2.Content)`
7739
7999
  --tooltip-font-family: var(--wui-typography-family-default);
7740
8000
  --tooltip-border-radius: var(--wui-border-radius-05);
7741
8001
  --tooltip-bg: var(--wui-color-bg-tooltip);
@@ -7793,14 +8053,14 @@ var Tooltip = ({
7793
8053
  if (forceOpen === true) {
7794
8054
  rootProps.open = true;
7795
8055
  }
7796
- return /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(
8056
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(
7797
8057
  import_react_tooltip2.Root,
7798
8058
  {
7799
8059
  delayDuration: delay,
7800
8060
  ...rootProps,
7801
8061
  children: [
7802
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
7803
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(
8062
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
8063
+ /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(
7804
8064
  StyledContent,
7805
8065
  {
7806
8066
  $compact: compact,
@@ -7808,7 +8068,7 @@ var Tooltip = ({
7808
8068
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
7809
8069
  children: [
7810
8070
  content,
7811
- !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
8071
+ !hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
7812
8072
  "svg",
7813
8073
  {
7814
8074
  fill: "var(--tooltip-bg)",
@@ -7817,7 +8077,7 @@ var Tooltip = ({
7817
8077
  viewBox: "0 0 12 8",
7818
8078
  width: "12",
7819
8079
  xmlns: "http://www.w3.org/2000/svg",
7820
- children: /* @__PURE__ */ (0, import_jsx_runtime194.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" })
8080
+ children: /* @__PURE__ */ (0, import_jsx_runtime198.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" })
7821
8081
  }
7822
8082
  ) }) : null
7823
8083
  ]
@@ -7830,26 +8090,26 @@ var Tooltip = ({
7830
8090
  Tooltip.displayName = "Tooltip";
7831
8091
 
7832
8092
  // src/components/WistiaLogo/WistiaLogo.tsx
7833
- var import_styled_components44 = __toESM(require("styled-components"));
7834
- var import_type_guards26 = require("@wistia/type-guards");
7835
- var import_jsx_runtime195 = require("react/jsx-runtime");
8093
+ var import_styled_components48 = __toESM(require("styled-components"));
8094
+ var import_type_guards28 = require("@wistia/type-guards");
8095
+ var import_jsx_runtime199 = require("react/jsx-runtime");
7836
8096
  var renderBrandmark = (brandmarkColor, iconOnly) => {
7837
8097
  if (iconOnly) {
7838
- return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
8098
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7839
8099
  "g",
7840
8100
  {
7841
8101
  "data-testid": "ui-wistia-logo-brandmark",
7842
8102
  fill: brandmarkColor,
7843
- children: /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
8103
+ children: /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
7844
8104
  }
7845
8105
  );
7846
8106
  }
7847
- return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
8107
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7848
8108
  "g",
7849
8109
  {
7850
8110
  "data-testid": "ui-wistia-logo-brandmark",
7851
8111
  fill: brandmarkColor,
7852
- children: /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
8112
+ children: /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
7853
8113
  }
7854
8114
  );
7855
8115
  };
@@ -7857,12 +8117,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
7857
8117
  if (iconOnly) {
7858
8118
  return null;
7859
8119
  }
7860
- return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
8120
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
7861
8121
  "g",
7862
8122
  {
7863
8123
  "data-testid": "ui-wistia-logo-logotype",
7864
8124
  fill: logotypeColor,
7865
- children: /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
8125
+ children: /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
7866
8126
  }
7867
8127
  );
7868
8128
  };
@@ -7872,7 +8132,7 @@ var computedViewBox = (iconOnly) => {
7872
8132
  }
7873
8133
  return "0 0 144 31.47";
7874
8134
  };
7875
- var WistiaLogoComponent = import_styled_components44.default.svg`
8135
+ var WistiaLogoComponent = import_styled_components48.default.svg`
7876
8136
  height: ${({ height }) => `${height}px`};
7877
8137
 
7878
8138
  /* ensure it will always fit on mobile */
@@ -7914,7 +8174,7 @@ var WistiaLogo = ({
7914
8174
  };
7915
8175
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
7916
8176
  const logotypeColor = VARIANT_COLORS[variant].logotype;
7917
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)(
8177
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)(
7918
8178
  WistiaLogoComponent,
7919
8179
  {
7920
8180
  $hoverColor: hoverColor,
@@ -7924,23 +8184,23 @@ var WistiaLogo = ({
7924
8184
  xmlns: "http://www.w3.org/2000/svg",
7925
8185
  ...otherProps,
7926
8186
  children: [
7927
- /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("title", { children: title }),
7928
- (0, import_type_guards26.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("desc", { children: description }) : null,
8187
+ /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("title", { children: title }),
8188
+ (0, import_type_guards28.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("desc", { children: description }) : null,
7929
8189
  renderBrandmark(brandmarkColor, iconOnly),
7930
8190
  renderLogotype(logotypeColor, iconOnly)
7931
8191
  ]
7932
8192
  }
7933
8193
  );
7934
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("a", { href, children: Logo }) : Logo;
8194
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("a", { href, children: Logo }) : Logo;
7935
8195
  };
7936
8196
  WistiaLogo.displayName = "WistiaLogo";
7937
8197
 
7938
8198
  // src/components/Input/Input.tsx
7939
- var import_react30 = require("react");
7940
- var import_styled_components45 = __toESM(require("styled-components"));
7941
- var import_type_guards27 = require("@wistia/type-guards");
7942
- var import_jsx_runtime196 = require("react/jsx-runtime");
7943
- var inputStyles = import_styled_components45.css`
8199
+ var import_react33 = require("react");
8200
+ var import_styled_components49 = __toESM(require("styled-components"));
8201
+ var import_type_guards29 = require("@wistia/type-guards");
8202
+ var import_jsx_runtime200 = require("react/jsx-runtime");
8203
+ var inputStyles = import_styled_components49.css`
7944
8204
  --wui-input-color-bg: var(--wui-color-bg-surface);
7945
8205
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
7946
8206
  --wui-input-color-border: var(--wui-color-border);
@@ -7981,7 +8241,7 @@ var inputStyles = import_styled_components45.css`
7981
8241
  }
7982
8242
  }
7983
8243
  `;
7984
- var StyledInputContainer = import_styled_components45.default.div`
8244
+ var StyledInputContainer = import_styled_components49.default.div`
7985
8245
  display: inline-flex;
7986
8246
  position: relative;
7987
8247
  ${inputStyles};
@@ -8025,7 +8285,7 @@ var StyledInputContainer = import_styled_components45.default.div`
8025
8285
  padding-right: 32px;
8026
8286
  }
8027
8287
  `;
8028
- var Input = (0, import_react30.forwardRef)(
8288
+ var Input = (0, import_react33.forwardRef)(
8029
8289
  ({
8030
8290
  fullWidth = false,
8031
8291
  monospace = false,
@@ -8035,36 +8295,36 @@ var Input = (0, import_react30.forwardRef)(
8035
8295
  ...props
8036
8296
  }, ref) => {
8037
8297
  let leftIconToDisplay = leftIcon;
8038
- if ((0, import_type_guards27.isNil)(leftIcon) && type === "search") {
8039
- leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(Icon, { type: "search" });
8298
+ if ((0, import_type_guards29.isNil)(leftIcon) && type === "search") {
8299
+ leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(Icon, { type: "search" });
8040
8300
  }
8041
- if ((0, import_type_guards27.isNotNil)(leftIconToDisplay)) {
8042
- leftIconToDisplay = (0, import_react30.cloneElement)(leftIconToDisplay, {
8301
+ if ((0, import_type_guards29.isNotNil)(leftIconToDisplay)) {
8302
+ leftIconToDisplay = (0, import_react33.cloneElement)(leftIconToDisplay, {
8043
8303
  size: "md",
8044
8304
  className: "wui-input-left-icon"
8045
8305
  });
8046
8306
  }
8047
8307
  let rightIconToDisplay = rightIcon;
8048
- if ((0, import_type_guards27.isNotNil)(rightIconToDisplay)) {
8049
- rightIconToDisplay = (0, import_react30.cloneElement)(rightIconToDisplay, {
8308
+ if ((0, import_type_guards29.isNotNil)(rightIconToDisplay)) {
8309
+ rightIconToDisplay = (0, import_react33.cloneElement)(rightIconToDisplay, {
8050
8310
  size: "md",
8051
8311
  className: "wui-input-right-icon"
8052
8312
  });
8053
8313
  }
8054
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(
8314
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(
8055
8315
  StyledInputContainer,
8056
8316
  {
8057
8317
  $fullWidth: fullWidth,
8058
8318
  $monospace: monospace,
8059
8319
  children: [
8060
8320
  leftIconToDisplay ?? null,
8061
- type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
8321
+ type === "multiline" ? /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
8062
8322
  "textarea",
8063
8323
  {
8064
8324
  ...props,
8065
8325
  ref
8066
8326
  }
8067
- ) : /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
8327
+ ) : /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
8068
8328
  "input",
8069
8329
  {
8070
8330
  ...props,
@@ -8108,6 +8368,7 @@ Input.displayName = "Input";
8108
8368
  MenuItemLabel,
8109
8369
  MenuLabel,
8110
8370
  MenuRadioGroup,
8371
+ Modal,
8111
8372
  Radio,
8112
8373
  RadioGroup,
8113
8374
  RadioMenuItem,