@wistia/ui 0.4.8-beta.25eae1b2.b10e708 → 0.4.8-beta.39749e5f.7a8d5fd

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.4.8-beta.25eae1b2.b10e708
3
+ * @license @wistia/ui v0.4.8-beta.39749e5f.7a8d5fd
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -5360,7 +5360,7 @@ import { forwardRef } from "react";
5360
5360
  import { isNil as isNil4, isNotNil as isNotNil4, isNotUndefined as isNotUndefined2, isUndefined as isUndefined2 } from "@wistia/type-guards";
5361
5361
  import styled4 from "styled-components";
5362
5362
  import { Link as RouterLink, useInRouterContext } from "react-router-dom";
5363
- import { jsx as jsx161, jsxs as jsxs5 } from "react/jsx-runtime";
5363
+ import { jsx as jsx161 } from "react/jsx-runtime";
5364
5364
  var generateHref = (href, type, disabled) => {
5365
5365
  if (disabled || isNil4(href)) {
5366
5366
  return void 0;
@@ -5377,25 +5377,12 @@ var generateHref = (href, type, disabled) => {
5377
5377
  var isButton = (props) => isUndefined2(props.href);
5378
5378
  var isLink = (props) => isNotUndefined2(props.href);
5379
5379
  var StyledLink = styled4.a`
5380
- --link-icon-size: 14px;
5381
-
5382
5380
  ${({ href }) => isNil4(href) && buttonResetCss};
5383
5381
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
5384
5382
  cursor: pointer;
5385
5383
  font-family: var(--wui-typography-family-default);
5386
5384
  color: var(--wui-color-text-link);
5387
5385
  text-decoration: ${({ $underline }) => $underline ? "underline" : "none"};
5388
- display: inline-flex;
5389
- align-items: baseline;
5390
- gap: var(--wui-space-01);
5391
-
5392
- /* This ensure that the icon is the corect color when the style is solid or the button is disabled */
5393
- && {
5394
- svg {
5395
- width: var(--link-icon-size);
5396
- height: var(--link-icon-size);
5397
- }
5398
- }
5399
5386
  `;
5400
5387
  var Link = forwardRef(
5401
5388
  ({
@@ -5405,8 +5392,6 @@ var Link = forwardRef(
5405
5392
  disabled = false,
5406
5393
  colorScheme = "inherit",
5407
5394
  underline = false,
5408
- leftIcon,
5409
- rightIcon,
5410
5395
  ...props
5411
5396
  }, ref) => {
5412
5397
  const inRouterContext = useInRouterContext();
@@ -5465,17 +5450,13 @@ var Link = forwardRef(
5465
5450
  to: to ?? "",
5466
5451
  children
5467
5452
  }
5468
- ) : /* @__PURE__ */ jsxs5(
5453
+ ) : /* @__PURE__ */ jsx161(
5469
5454
  StyledLink,
5470
5455
  {
5471
5456
  as: "a",
5472
5457
  ...combinedProps,
5473
5458
  href: to,
5474
- children: [
5475
- leftIcon ?? null,
5476
- children,
5477
- rightIcon ?? null
5478
- ]
5459
+ children
5479
5460
  }
5480
5461
  );
5481
5462
  }
@@ -5485,7 +5466,7 @@ var Link = forwardRef(
5485
5466
  Link.displayName = "Link";
5486
5467
 
5487
5468
  // src/components/Button/Button.tsx
5488
- import { Fragment, jsx as jsx162, jsxs as jsxs6 } from "react/jsx-runtime";
5469
+ import { Fragment, jsx as jsx162, jsxs as jsxs5 } from "react/jsx-runtime";
5489
5470
  var isLink2 = (props) => isNotUndefined3(props.href);
5490
5471
  var StyledButton = styled5.button`
5491
5472
  ${buttonResetCss}
@@ -5522,9 +5503,9 @@ var ButtonContent = ({
5522
5503
  rightIcon,
5523
5504
  children
5524
5505
  }) => {
5525
- return /* @__PURE__ */ jsxs6(Fragment, { children: [
5506
+ return /* @__PURE__ */ jsxs5(Fragment, { children: [
5526
5507
  isLoading ? /* @__PURE__ */ jsx162(StyledButtonLoading, { children: /* @__PURE__ */ jsx162(Icon, { type: "spinner" }) }) : null,
5527
- /* @__PURE__ */ jsxs6(
5508
+ /* @__PURE__ */ jsxs5(
5528
5509
  StyledButtonContent,
5529
5510
  {
5530
5511
  $hasLeftIcon: isNotNil5(leftIcon),
@@ -5624,7 +5605,7 @@ var Button = forwardRef2(
5624
5605
  Button.displayName = "Button";
5625
5606
 
5626
5607
  // src/components/ActionButton/ActionButton.tsx
5627
- import { jsx as jsx163, jsxs as jsxs7 } from "react/jsx-runtime";
5608
+ import { jsx as jsx163, jsxs as jsxs6 } from "react/jsx-runtime";
5628
5609
  var StyledActionButton = styled6(Button)`
5629
5610
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
5630
5611
  display: grid;
@@ -5729,7 +5710,7 @@ var ActionButton = forwardRef3(
5729
5710
  "menu-up": "caret-up",
5730
5711
  "menu-down": "caret-down"
5731
5712
  };
5732
- return /* @__PURE__ */ jsxs7(
5713
+ return /* @__PURE__ */ jsxs6(
5733
5714
  StyledActionButton,
5734
5715
  {
5735
5716
  ...props,
@@ -5933,7 +5914,7 @@ Avatar.displayName = "Avatar";
5933
5914
  import { forwardRef as forwardRef4 } from "react";
5934
5915
  import styled9 from "styled-components";
5935
5916
  import { isNotNil as isNotNil6 } from "@wistia/type-guards";
5936
- import { jsx as jsx166, jsxs as jsxs8 } from "react/jsx-runtime";
5917
+ import { jsx as jsx166, jsxs as jsxs7 } from "react/jsx-runtime";
5937
5918
  var StyledBadge = styled9.div`
5938
5919
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
5939
5920
  align-items: center;
@@ -5957,7 +5938,7 @@ var StyledBadge = styled9.div`
5957
5938
  var Badge = forwardRef4(
5958
5939
  ({ colorScheme = "inherit", label, icon, ...otherProps }, ref) => {
5959
5940
  const hasIcon = isNotNil6(icon);
5960
- return /* @__PURE__ */ jsxs8(
5941
+ return /* @__PURE__ */ jsxs7(
5961
5942
  StyledBadge,
5962
5943
  {
5963
5944
  ref,
@@ -6125,9 +6106,9 @@ var Breadcrumbs = ({ children, ...props }) => {
6125
6106
  Breadcrumbs.displayName = "Breadcrumbs";
6126
6107
 
6127
6108
  // src/components/Breadcrumbs/Breadcrumb.tsx
6128
- import { Fragment as Fragment2, jsx as jsx169, jsxs as jsxs9 } from "react/jsx-runtime";
6109
+ import { Fragment as Fragment2, jsx as jsx169, jsxs as jsxs8 } from "react/jsx-runtime";
6129
6110
  var Breadcrumb = ({ icon, href, children, ...props }) => {
6130
- return /* @__PURE__ */ jsxs9(Fragment2, { children: [
6111
+ return /* @__PURE__ */ jsxs8(Fragment2, { children: [
6131
6112
  /* @__PURE__ */ jsx169(
6132
6113
  Button,
6133
6114
  {
@@ -6467,7 +6448,7 @@ var LabelDescription = ({
6467
6448
  LabelDescription.displayName = "LabelDescription";
6468
6449
 
6469
6450
  // src/components/Checkbox/Checkbox.tsx
6470
- import { jsx as jsx175, jsxs as jsxs10 } from "react/jsx-runtime";
6451
+ import { jsx as jsx175, jsxs as jsxs9 } from "react/jsx-runtime";
6471
6452
  var CheckIcon = () => /* @__PURE__ */ jsx175(
6472
6453
  "svg",
6473
6454
  {
@@ -6557,7 +6538,7 @@ var Checkbox = forwardRef6(
6557
6538
  }, ref) => {
6558
6539
  const generatedId = useId();
6559
6540
  const computedId = isNonEmptyString2(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
6560
- return /* @__PURE__ */ jsxs10(StyledCheckboxWrapper, { children: [
6541
+ return /* @__PURE__ */ jsxs9(StyledCheckboxWrapper, { children: [
6561
6542
  /* @__PURE__ */ jsx175(
6562
6543
  StyledCheckboxRoot,
6563
6544
  {
@@ -6586,7 +6567,7 @@ var Checkbox = forwardRef6(
6586
6567
  children: /* @__PURE__ */ jsx175(StyledCheckboxIndicator, { children: /* @__PURE__ */ jsx175(CheckIcon, {}) })
6587
6568
  }
6588
6569
  ),
6589
- /* @__PURE__ */ jsxs10(StyledLabelWrapper, { children: [
6570
+ /* @__PURE__ */ jsxs9(StyledLabelWrapper, { children: [
6590
6571
  /* @__PURE__ */ jsx175(
6591
6572
  Label,
6592
6573
  {
@@ -6810,7 +6791,7 @@ var useFormState = (action, initialData = {}) => {
6810
6791
  // src/components/Form/FormErrorSummary.tsx
6811
6792
  import { useContext as useContext2, useRef as useRef4 } from "react";
6812
6793
  import { isArray, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
6813
- import { jsx as jsx179, jsxs as jsxs11 } from "react/jsx-runtime";
6794
+ import { jsx as jsx179, jsxs as jsxs10 } from "react/jsx-runtime";
6814
6795
  var ErrorItem = ({ name, error, formId }) => {
6815
6796
  return /* @__PURE__ */ jsx179("li", { children: /* @__PURE__ */ jsx179(Link, { href: `${formId}-${name}`, children: error }) }, name);
6816
6797
  };
@@ -6821,7 +6802,7 @@ var FormErrorSummary = ({ description }) => {
6821
6802
  if (isValid || !hasSubmitted) {
6822
6803
  return null;
6823
6804
  }
6824
- return /* @__PURE__ */ jsxs11("div", { ref, children: [
6805
+ return /* @__PURE__ */ jsxs10("div", { ref, children: [
6825
6806
  /* @__PURE__ */ jsx179("p", { children: description }),
6826
6807
  /* @__PURE__ */ jsx179("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined5(error)).map(
6827
6808
  ([name, error]) => isArray(error) ? error.map((err) => /* @__PURE__ */ jsx179(
@@ -7033,7 +7014,7 @@ import { createContext as createContext3, useMemo as useMemo5 } from "react";
7033
7014
  // src/components/FormGroup/FormGroup.tsx
7034
7015
  import styled22 from "styled-components";
7035
7016
  import { useRef as useRef5 } from "react";
7036
- import { jsx as jsx181, jsxs as jsxs12 } from "react/jsx-runtime";
7017
+ import { jsx as jsx181, jsxs as jsxs11 } from "react/jsx-runtime";
7037
7018
  var StyledFieldset = styled22.fieldset`
7038
7019
  border: 0;
7039
7020
  `;
@@ -7042,7 +7023,7 @@ var StyledLegend = styled22.legend`
7042
7023
  `;
7043
7024
  var FormGroup = ({ children, label, ...props }) => {
7044
7025
  const ref = useRef5();
7045
- return /* @__PURE__ */ jsxs12(
7026
+ return /* @__PURE__ */ jsxs11(
7046
7027
  Stack,
7047
7028
  {
7048
7029
  ...props,
@@ -7085,7 +7066,7 @@ var CheckboxGroup = ({
7085
7066
  CheckboxGroup.displayName = "CheckboxGroup";
7086
7067
 
7087
7068
  // src/components/FormField/FormField.tsx
7088
- import { jsx as jsx183, jsxs as jsxs13 } from "react/jsx-runtime";
7069
+ import { jsx as jsx183, jsxs as jsxs12 } from "react/jsx-runtime";
7089
7070
  var StyledFormField = styled23.div`
7090
7071
  --form-field-spacing: var(--wui-space-01);
7091
7072
  --form-field-error-color: var(--wui-color-text-secondary-error);
@@ -7171,7 +7152,7 @@ var FormField = ({
7171
7152
  };
7172
7153
  }
7173
7154
  Children2.only(children);
7174
- return /* @__PURE__ */ jsxs13(StyledFormField, { ...props, children: [
7155
+ return /* @__PURE__ */ jsxs12(StyledFormField, { ...props, children: [
7175
7156
  !isInlineLabel && /* @__PURE__ */ jsx183(Label, { htmlFor: id, children: label }),
7176
7157
  cloneElement3(children, childProps),
7177
7158
  isNotNil8(computedError) ? /* @__PURE__ */ jsx183(
@@ -7248,7 +7229,7 @@ IconButton.displayName = "IconButton";
7248
7229
  import { forwardRef as forwardRef11, cloneElement as cloneElement5, useRef as useRef6 } from "react";
7249
7230
  import styled25, { css as css19 } from "styled-components";
7250
7231
  import { isNil as isNil10, isNotNil as isNotNil9 } from "@wistia/type-guards";
7251
- import { jsx as jsx186, jsxs as jsxs14 } from "react/jsx-runtime";
7232
+ import { jsx as jsx186, jsxs as jsxs13 } from "react/jsx-runtime";
7252
7233
  var inputStyles = css19`
7253
7234
  --wui-input-color-bg: var(--wui-color-bg-surface);
7254
7235
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -7376,7 +7357,7 @@ var Input = forwardRef11(
7376
7357
  });
7377
7358
  }
7378
7359
  };
7379
- return /* @__PURE__ */ jsxs14(
7360
+ return /* @__PURE__ */ jsxs13(
7380
7361
  StyledInputContainer,
7381
7362
  {
7382
7363
  $fullWidth: fullWidth,
@@ -7424,7 +7405,7 @@ var MenuContext = createContext5({ compact: false });
7424
7405
  var useMenuContext = () => useContext4(MenuContext);
7425
7406
 
7426
7407
  // src/components/Menu/Menu.tsx
7427
- import { jsx as jsx187, jsxs as jsxs15 } from "react/jsx-runtime";
7408
+ import { jsx as jsx187, jsxs as jsxs14 } from "react/jsx-runtime";
7428
7409
  var open = keyframes`
7429
7410
  from {
7430
7411
  opacity: 0;
@@ -7534,7 +7515,7 @@ var Menu = ({
7534
7515
  onOpenChange: () => null
7535
7516
  };
7536
7517
  }
7537
- return /* @__PURE__ */ jsx187(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs15(
7518
+ return /* @__PURE__ */ jsx187(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs14(
7538
7519
  DropdownMenu,
7539
7520
  {
7540
7521
  modal: false,
@@ -7614,7 +7595,7 @@ import { isNotNil as isNotNil12 } from "@wistia/type-guards";
7614
7595
  import { forwardRef as forwardRef12 } from "react";
7615
7596
  import styled28 from "styled-components";
7616
7597
  import { isNotNil as isNotNil11, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
7617
- import { jsx as jsx189, jsxs as jsxs16 } from "react/jsx-runtime";
7598
+ import { jsx as jsx189, jsxs as jsxs15 } from "react/jsx-runtime";
7618
7599
  var StyledButton3 = styled28(Button)`
7619
7600
  ${({ colorScheme }) => getColorScheme(colorScheme)};
7620
7601
 
@@ -7704,7 +7685,7 @@ var MenuItemButton = forwardRef12(({ children, appearance, command, icon, ...pro
7704
7685
  }
7705
7686
  );
7706
7687
  }
7707
- return /* @__PURE__ */ jsxs16(
7688
+ return /* @__PURE__ */ jsxs15(
7708
7689
  StyledButton3,
7709
7690
  {
7710
7691
  ...props,
@@ -7740,7 +7721,7 @@ var MenuItemDescription = ({ children }) => {
7740
7721
  };
7741
7722
 
7742
7723
  // src/components/Menu/SubMenu.tsx
7743
- import { jsx as jsx191, jsxs as jsxs17 } from "react/jsx-runtime";
7724
+ import { jsx as jsx191, jsxs as jsxs16 } from "react/jsx-runtime";
7744
7725
  var SubMenuContent = styled30(DropdownMenuSubContent)`
7745
7726
  ${menuContentCss}
7746
7727
 
@@ -7761,8 +7742,8 @@ var StyledSubTrigger = styled30(DropdownMenuSubTrigger)`
7761
7742
  `;
7762
7743
  var SubMenuTrigger = (props) => {
7763
7744
  const { isSmAndUp } = useMq();
7764
- const Trigger3 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
7765
- return /* @__PURE__ */ jsx191(Trigger3, { asChild: true, children: /* @__PURE__ */ jsx191(
7745
+ const Trigger2 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
7746
+ return /* @__PURE__ */ jsx191(Trigger2, { asChild: true, children: /* @__PURE__ */ jsx191(
7766
7747
  MenuItemButton,
7767
7748
  {
7768
7749
  ...props,
@@ -7780,14 +7761,14 @@ var SubMenu = ({
7780
7761
  const { isSmAndUp } = useMq();
7781
7762
  const [isExpanded, setIsExpanded] = useState7(false);
7782
7763
  const { compact } = useMenuContext();
7783
- return isSmAndUp ? /* @__PURE__ */ jsxs17(DropdownMenuSub, { onOpenChange, children: [
7784
- /* @__PURE__ */ jsxs17(SubMenuTrigger, { ...props, children: [
7764
+ return isSmAndUp ? /* @__PURE__ */ jsxs16(DropdownMenuSub, { onOpenChange, children: [
7765
+ /* @__PURE__ */ jsxs16(SubMenuTrigger, { ...props, children: [
7785
7766
  /* @__PURE__ */ jsx191(MenuItemLabel, { children: label }),
7786
7767
  isNotNil12(description) ? /* @__PURE__ */ jsx191(MenuItemDescription, { children: description }) : null
7787
7768
  ] }),
7788
7769
  /* @__PURE__ */ jsx191(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx191(SubMenuContent, { $compact: compact, children }) })
7789
- ] }) : /* @__PURE__ */ jsxs17(DropdownMenuGroup, { children: [
7790
- /* @__PURE__ */ jsxs17(
7770
+ ] }) : /* @__PURE__ */ jsxs16(DropdownMenuGroup, { children: [
7771
+ /* @__PURE__ */ jsxs16(
7791
7772
  SubMenuTrigger,
7792
7773
  {
7793
7774
  ...props,
@@ -7835,9 +7816,9 @@ MenuItem.displayName = "MenuItem";
7835
7816
  import {
7836
7817
  DropdownMenuRadioGroup
7837
7818
  } from "@radix-ui/react-dropdown-menu";
7838
- import { jsx as jsx193, jsxs as jsxs18 } from "react/jsx-runtime";
7819
+ import { jsx as jsx193, jsxs as jsxs17 } from "react/jsx-runtime";
7839
7820
  var MenuRadioGroup = ({ children, label, ...props }) => {
7840
- return /* @__PURE__ */ jsxs18(DropdownMenuRadioGroup, { ...props, children: [
7821
+ return /* @__PURE__ */ jsxs17(DropdownMenuRadioGroup, { ...props, children: [
7841
7822
  /* @__PURE__ */ jsx193(MenuLabel, { children: label }),
7842
7823
  children
7843
7824
  ] });
@@ -7885,9 +7866,9 @@ RadioMenuItem.displayName = "RadioMenuItem";
7885
7866
  import {
7886
7867
  DropdownMenuCheckboxItem
7887
7868
  } from "@radix-ui/react-dropdown-menu";
7888
- import { jsx as jsx195, jsxs as jsxs19 } from "react/jsx-runtime";
7869
+ import { jsx as jsx195, jsxs as jsxs18 } from "react/jsx-runtime";
7889
7870
  var CheckboxIndicator2 = ({ checked, ...props }) => {
7890
- return checked ? /* @__PURE__ */ jsxs19(
7871
+ return checked ? /* @__PURE__ */ jsxs18(
7891
7872
  "svg",
7892
7873
  {
7893
7874
  ...props,
@@ -7913,7 +7894,7 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
7913
7894
  )
7914
7895
  ]
7915
7896
  }
7916
- ) : /* @__PURE__ */ jsxs19(
7897
+ ) : /* @__PURE__ */ jsxs18(
7917
7898
  "svg",
7918
7899
  {
7919
7900
  ...props,
@@ -8018,7 +7999,7 @@ var ScreenReaderOnly = ({
8018
7999
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
8019
8000
 
8020
8001
  // src/components/Modal/ModalHeader.tsx
8021
- import { jsx as jsx198, jsxs as jsxs20 } from "react/jsx-runtime";
8002
+ import { jsx as jsx198, jsxs as jsxs19 } from "react/jsx-runtime";
8022
8003
  var Header = styled33.header`
8023
8004
  display: flex;
8024
8005
  order: 1;
@@ -8043,7 +8024,7 @@ var ModalHeader = ({
8043
8024
  hideCloseButton
8044
8025
  }) => {
8045
8026
  const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
8046
- return /* @__PURE__ */ jsxs20(Header, { children: [
8027
+ return /* @__PURE__ */ jsxs19(Header, { children: [
8047
8028
  /* @__PURE__ */ jsx198(TitleWrapper, { children: title }),
8048
8029
  hideCloseButton ? null : /* @__PURE__ */ jsx198(ModalCloseButton, {})
8049
8030
  ] });
@@ -8185,7 +8166,7 @@ var Backdrop = forwardRef15(
8185
8166
  Backdrop.displayName = "Backdrop";
8186
8167
 
8187
8168
  // src/components/Modal/Modal.tsx
8188
- import { jsx as jsx201, jsxs as jsxs21 } from "react/jsx-runtime";
8169
+ import { jsx as jsx201, jsxs as jsxs20 } from "react/jsx-runtime";
8189
8170
  var ModalBody = styled36.div`
8190
8171
  flex-direction: column;
8191
8172
  display: flex;
@@ -8213,9 +8194,9 @@ var Modal = forwardRef16(
8213
8194
  }
8214
8195
  },
8215
8196
  open: isOpen,
8216
- children: /* @__PURE__ */ jsxs21(DialogPortal, { children: [
8197
+ children: /* @__PURE__ */ jsxs20(DialogPortal, { children: [
8217
8198
  /* @__PURE__ */ jsx201(Backdrop, {}),
8218
- /* @__PURE__ */ jsxs21(
8199
+ /* @__PURE__ */ jsxs20(
8219
8200
  ModalContent,
8220
8201
  {
8221
8202
  ref,
@@ -8255,7 +8236,7 @@ Modal.displayName = "Modal";
8255
8236
  import { forwardRef as forwardRef17, useId as useId3 } from "react";
8256
8237
  import styled37, { css as css21 } from "styled-components";
8257
8238
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
8258
- import { jsx as jsx202, jsxs as jsxs22 } from "react/jsx-runtime";
8239
+ import { jsx as jsx202, jsxs as jsxs21 } from "react/jsx-runtime";
8259
8240
  var StyledLabelWrapper2 = styled37.div`
8260
8241
  display: flex;
8261
8242
  flex-direction: column;
@@ -8341,7 +8322,7 @@ var Radio = forwardRef17(
8341
8322
  }, ref) => {
8342
8323
  const generatedId = useId3();
8343
8324
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
8344
- return /* @__PURE__ */ jsxs22(
8325
+ return /* @__PURE__ */ jsxs21(
8345
8326
  StyledRadioWrapper,
8346
8327
  {
8347
8328
  "aria-invalid": otherProps["aria-invalid"],
@@ -8362,7 +8343,7 @@ var Radio = forwardRef17(
8362
8343
  ...otherProps
8363
8344
  }
8364
8345
  ),
8365
- /* @__PURE__ */ jsxs22(StyledLabelWrapper2, { children: [
8346
+ /* @__PURE__ */ jsxs21(StyledLabelWrapper2, { children: [
8366
8347
  /* @__PURE__ */ jsx202(
8367
8348
  Label,
8368
8349
  {
@@ -8398,7 +8379,6 @@ var StyledSegmentedControl = styled38(ToggleGroupRoot)`
8398
8379
  var SegmentedControl = forwardRef18(
8399
8380
  ({
8400
8381
  children,
8401
- disabled = false,
8402
8382
  fullWidth = false,
8403
8383
  selectedValue,
8404
8384
  onSelectedValueChange,
@@ -8412,7 +8392,6 @@ var SegmentedControl = forwardRef18(
8412
8392
  {
8413
8393
  ref,
8414
8394
  $fullWidth: fullWidth,
8415
- disabled,
8416
8395
  loop: true,
8417
8396
  onValueChange: onSelectedValueChange,
8418
8397
  rovingFocus: true,
@@ -8427,11 +8406,10 @@ var SegmentedControl = forwardRef18(
8427
8406
  SegmentedControl.displayName = "SegmentedControl";
8428
8407
 
8429
8408
  // src/components/SegmentedControl/SegmentedControlItem.tsx
8430
- import { forwardRef as forwardRef19 } from "react";
8431
8409
  import styled39 from "styled-components";
8432
8410
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
8433
8411
  import { isNotNil as isNotNil16 } from "@wistia/type-guards";
8434
- import { jsxs as jsxs23 } from "react/jsx-runtime";
8412
+ import { jsxs as jsxs22 } from "react/jsx-runtime";
8435
8413
  var StyledSegmentedControlItem = styled39(ToggleGroupItem)`
8436
8414
  all: unset; /* ToggleGroupItem is a button element */
8437
8415
  align-items: center;
@@ -8475,48 +8453,38 @@ var StyledSegmentedControlItem = styled39(ToggleGroupItem)`
8475
8453
  fill: var(--wui-color-focus-ring);
8476
8454
  }
8477
8455
  }
8478
-
8479
- &[data-disabled] {
8480
- cursor: not-allowed;
8481
-
8482
- &:hover {
8483
- background-color: inherit;
8484
- }
8485
- }
8486
8456
  `;
8487
- var SegmentedControlItem = forwardRef19(
8488
- ({ disabled, icon, label, "aria-label": ariaLabel, value }, ref) => {
8489
- const handleClick = (event) => {
8490
- const target = event.target;
8491
- const { state } = target.dataset;
8492
- if (state === "on") {
8493
- event.preventDefault();
8494
- }
8495
- };
8496
- return /* @__PURE__ */ jsxs23(
8497
- StyledSegmentedControlItem,
8498
- {
8499
- ref,
8500
- $hasLabel: isNotNil16(label),
8501
- "aria-label": isNotNil16(label) ? void 0 : ariaLabel,
8502
- disabled,
8503
- onClick: handleClick,
8504
- value,
8505
- children: [
8506
- icon,
8507
- label
8508
- ]
8509
- }
8510
- );
8511
- }
8512
- );
8513
- SegmentedControlItem.displayName = "SegmentedControlItem";
8457
+ var SegmentedControlItem = ({
8458
+ icon,
8459
+ label,
8460
+ value
8461
+ }) => {
8462
+ const handleClick = (event) => {
8463
+ const target = event.target;
8464
+ const { state } = target.dataset;
8465
+ if (state === "on") {
8466
+ event.preventDefault();
8467
+ }
8468
+ };
8469
+ return /* @__PURE__ */ jsxs22(
8470
+ StyledSegmentedControlItem,
8471
+ {
8472
+ $hasLabel: isNotNil16(label),
8473
+ onClick: handleClick,
8474
+ value,
8475
+ children: [
8476
+ icon,
8477
+ label
8478
+ ]
8479
+ }
8480
+ );
8481
+ };
8514
8482
 
8515
8483
  // src/components/Tag/Tag.tsx
8516
- import { forwardRef as forwardRef20 } from "react";
8484
+ import { forwardRef as forwardRef19 } from "react";
8517
8485
  import styled40 from "styled-components";
8518
8486
  import { isNil as isNil12, isNotNil as isNotNil17, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
8519
- import { Fragment as Fragment3, jsx as jsx204, jsxs as jsxs24 } from "react/jsx-runtime";
8487
+ import { Fragment as Fragment3, jsx as jsx204, jsxs as jsxs23 } from "react/jsx-runtime";
8520
8488
  var TagLabel = styled40.a`
8521
8489
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
8522
8490
  font-size: var(--wui-typography-label-4-size);
@@ -8597,9 +8565,9 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8597
8565
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
8598
8566
  );
8599
8567
  }
8600
- return /* @__PURE__ */ jsxs24(Fragment3, { children: [
8568
+ return /* @__PURE__ */ jsxs23(Fragment3, { children: [
8601
8569
  /* @__PURE__ */ jsx204(TagDivider, { $colorScheme: colorScheme }),
8602
- /* @__PURE__ */ jsxs24(
8570
+ /* @__PURE__ */ jsxs23(
8603
8571
  StyledRemoveButton,
8604
8572
  {
8605
8573
  $colorScheme: colorScheme,
@@ -8619,10 +8587,10 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
8619
8587
  )
8620
8588
  ] });
8621
8589
  };
8622
- var Tag = forwardRef20(
8590
+ var Tag = forwardRef19(
8623
8591
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
8624
8592
  const labelProps = isNotNil17(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
8625
- return /* @__PURE__ */ jsxs24(
8593
+ return /* @__PURE__ */ jsxs23(
8626
8594
  StyledTag,
8627
8595
  {
8628
8596
  ref,
@@ -8661,7 +8629,7 @@ import {
8661
8629
  Arrow
8662
8630
  } from "@radix-ui/react-tooltip";
8663
8631
  import styled41, { css as css22 } from "styled-components";
8664
- import { jsx as jsx205, jsxs as jsxs25 } from "react/jsx-runtime";
8632
+ import { jsx as jsx205, jsxs as jsxs24 } from "react/jsx-runtime";
8665
8633
  var CompactTooltipStyles = css22`
8666
8634
  --tooltip-font-size: var(--wui-typography-label-4-size);
8667
8635
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
@@ -8727,14 +8695,14 @@ var Tooltip = ({
8727
8695
  if (forceOpen === true) {
8728
8696
  rootProps.open = true;
8729
8697
  }
8730
- return /* @__PURE__ */ jsxs25(
8698
+ return /* @__PURE__ */ jsxs24(
8731
8699
  Root,
8732
8700
  {
8733
8701
  delayDuration: delay,
8734
8702
  ...rootProps,
8735
8703
  children: [
8736
8704
  /* @__PURE__ */ jsx205(Trigger, { asChild: true, children }),
8737
- /* @__PURE__ */ jsx205(Portal, { children: /* @__PURE__ */ jsxs25(
8705
+ /* @__PURE__ */ jsx205(Portal, { children: /* @__PURE__ */ jsxs24(
8738
8706
  StyledContent,
8739
8707
  {
8740
8708
  $compact: compact,
@@ -8766,7 +8734,7 @@ Tooltip.displayName = "Tooltip";
8766
8734
  // src/components/WistiaLogo/WistiaLogo.tsx
8767
8735
  import styled42 from "styled-components";
8768
8736
  import { isNotNil as isNotNil18 } from "@wistia/type-guards";
8769
- import { jsx as jsx206, jsxs as jsxs26 } from "react/jsx-runtime";
8737
+ import { jsx as jsx206, jsxs as jsxs25 } from "react/jsx-runtime";
8770
8738
  var renderBrandmark = (brandmarkColor, iconOnly) => {
8771
8739
  if (iconOnly) {
8772
8740
  return /* @__PURE__ */ jsx206(
@@ -8848,7 +8816,7 @@ var WistiaLogo = ({
8848
8816
  };
8849
8817
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
8850
8818
  const logotypeColor = VARIANT_COLORS[variant].logotype;
8851
- const Logo = /* @__PURE__ */ jsxs26(
8819
+ const Logo = /* @__PURE__ */ jsxs25(
8852
8820
  WistiaLogoComponent,
8853
8821
  {
8854
8822
  $hoverColor: hoverColor,
@@ -8868,199 +8836,6 @@ var WistiaLogo = ({
8868
8836
  return href !== void 0 ? /* @__PURE__ */ jsx206("a", { href, children: Logo }) : Logo;
8869
8837
  };
8870
8838
  WistiaLogo.displayName = "WistiaLogo";
8871
-
8872
- // src/components/Select/Select.tsx
8873
- import {
8874
- Root as Root2,
8875
- Trigger as Trigger2,
8876
- Portal as Portal2,
8877
- Content as Content2,
8878
- ScrollUpButton,
8879
- Viewport,
8880
- Value,
8881
- ScrollDownButton
8882
- } from "@radix-ui/react-select";
8883
- import { forwardRef as forwardRef21 } from "react";
8884
- import styled43 from "styled-components";
8885
- import { jsx as jsx207, jsxs as jsxs27 } from "react/jsx-runtime";
8886
- var StyledTrigger = styled43(Trigger2)`
8887
- ${({ $colorScheme }) => getColorScheme($colorScheme)};
8888
- --wui-select-color-bg: var(--wui-color-bg-surface);
8889
- --wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
8890
- --wui-select-color-border: var(--wui-color-border);
8891
- --wui-select-color-border-focus: var(--wui-color-border-active);
8892
- --wui-select-color-border-error: var(--wui-color-border-error);
8893
- --wui-select-color-border-disabled: var(--wui-color-border-disabled);
8894
- --wui-select-border-radius: var(--wui-border-radius-rounded);
8895
- --wui-select-multiline-border-radius: var(--wui-border-radius-02);
8896
- --wui-select-vertical-padding: var(--wui-space-02);
8897
- --wui-select-horizontal-padding: var(--wui-space-03);
8898
- --wui-select-placeholder: var(--wui-gray-10);
8899
- --wui-select-color-text-error: var(--wui-color-text-error);
8900
-
8901
- padding: var(--wui-select-vertical-padding) var(--wui-select-horizontal-padding);
8902
- background-color: var(--wui-select-color-bg);
8903
- border: 1px solid var(--wui-select-color-border);
8904
- border-radius: var(--wui-select-border-radius);
8905
- min-width: 200px;
8906
- text-align: left;
8907
- display: inline-flex;
8908
- align-items: center;
8909
- justify-content: space-between;
8910
- width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
8911
-
8912
- &[aria-expanded='true'],
8913
- &:focus {
8914
- outline: 2px solid var(--wui-color-focus-ring);
8915
- }
8916
-
8917
- &[aria-invalid='true'] {
8918
- outline: 2px solid var(--wui-select-color-border-error);
8919
- color: var(--wui-select-color-text-error);
8920
- }
8921
-
8922
- &:disabled {
8923
- border-color: var(--wui-color-bg-surface-disabled);
8924
- background-color: var(--wui-color-bg-surface-disabled);
8925
- }
8926
- `;
8927
- var StyledContent2 = styled43(Content2)`
8928
- --wui-select-content-border: var(--wui-color-border);
8929
- --wui-select-content-bg: var(--wui-color-bg-surface);
8930
- --wui-select-content-border-radius: var(--wui-border-radius-02);
8931
- --wui-select-option-padding: var(--wui-space-02);
8932
- --wui-select-option-inner-gap: var(--wui-space-03);
8933
- --wui-select-option-bg-hover: var(--wui-color-bg-surface-hover);
8934
-
8935
- overflow: hidden;
8936
- transform: translateY(8px);
8937
- background-color: var(--wui-select-content-bg);
8938
- border: 1px solid var(--wui-select-content-border);
8939
- border-radius: var(--wui-select-content-border-radius);
8940
- padding: var(--wui-select-option-padding);
8941
- min-width: 200px;
8942
- `;
8943
- var Select = forwardRef21(
8944
- ({
8945
- colorScheme = "inherit",
8946
- children,
8947
- onChange = () => null,
8948
- placeholder = "Select...",
8949
- fullWidth = false,
8950
- ...props
8951
- }, forwardedRef) => {
8952
- const responsiveFullWidth = useResponsiveProp(fullWidth);
8953
- return /* @__PURE__ */ jsxs27(
8954
- Root2,
8955
- {
8956
- ...props,
8957
- onValueChange: onChange,
8958
- children: [
8959
- /* @__PURE__ */ jsxs27(
8960
- StyledTrigger,
8961
- {
8962
- ref: forwardedRef,
8963
- $colorScheme: colorScheme,
8964
- $fullWidth: responsiveFullWidth,
8965
- ...props,
8966
- children: [
8967
- /* @__PURE__ */ jsx207(Value, { placeholder }),
8968
- /* @__PURE__ */ jsx207(
8969
- Icon,
8970
- {
8971
- size: "md",
8972
- type: "caret-down"
8973
- }
8974
- )
8975
- ]
8976
- }
8977
- ),
8978
- /* @__PURE__ */ jsx207(Portal2, { children: /* @__PURE__ */ jsxs27(StyledContent2, { position: "popper", children: [
8979
- /* @__PURE__ */ jsx207(ScrollUpButton, { children: /* @__PURE__ */ jsx207(Icon, { type: "caret-up" }) }),
8980
- /* @__PURE__ */ jsx207(Viewport, { children }),
8981
- /* @__PURE__ */ jsx207(ScrollDownButton, { children: /* @__PURE__ */ jsx207(Icon, { type: "caret-down" }) })
8982
- ] }) })
8983
- ]
8984
- }
8985
- );
8986
- }
8987
- );
8988
- Select.displayName = "Select";
8989
-
8990
- // src/components/Select/SelectOption.tsx
8991
- import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
8992
- import { forwardRef as forwardRef22 } from "react";
8993
- import styled44 from "styled-components";
8994
- import { jsx as jsx208, jsxs as jsxs28 } from "react/jsx-runtime";
8995
- var StyledItem = styled44(Item)`
8996
- ${variantStyleMap2.body3};
8997
- display: flex;
8998
- padding: var(--wui-select-option-padding);
8999
- gap: var(--wui-select-option-inner-gap);
9000
- font-size: var(--font-size);
9001
- font-weight: var(--font-weight);
9002
- border-radius: var(--wui-border-radius-01);
9003
-
9004
- &:hover,
9005
- &:focus-visible {
9006
- background-color: var(--wui-select-option-bg-hover);
9007
- outline: none;
9008
- }
9009
-
9010
- &[aria-disabled='true'] {
9011
- color: var(--wui-color-text-disabled);
9012
- }
9013
-
9014
- &[aria-disabled='true']:hover {
9015
- background-color: transparent;
9016
- }
9017
- `;
9018
- var StyledIconContainer = styled44.span`
9019
- width: 12px;
9020
- `;
9021
- var SelectOption = forwardRef22(
9022
- ({ children, ...props }, forwardedRef) => {
9023
- return /* @__PURE__ */ jsxs28(
9024
- StyledItem,
9025
- {
9026
- ...props,
9027
- ref: forwardedRef,
9028
- children: [
9029
- /* @__PURE__ */ jsx208(StyledIconContainer, { children: /* @__PURE__ */ jsx208(ItemIndicator, { children: /* @__PURE__ */ jsx208(
9030
- Icon,
9031
- {
9032
- size: "sm",
9033
- type: "checkmark"
9034
- }
9035
- ) }) }),
9036
- /* @__PURE__ */ jsx208(ItemText, { children })
9037
- ]
9038
- }
9039
- );
9040
- }
9041
- );
9042
- SelectOption.displayName = "Option";
9043
-
9044
- // src/components/Select/SelectOptionGroup.tsx
9045
- import { Group, Label as Label2 } from "@radix-ui/react-select";
9046
- import styled45 from "styled-components";
9047
- import { jsx as jsx209, jsxs as jsxs29 } from "react/jsx-runtime";
9048
- var StyledLabel3 = styled45(Label2)`
9049
- padding: var(--wui-select-option-padding);
9050
- `;
9051
- var SelectOptionGroup = ({ children, label, ...props }) => {
9052
- return /* @__PURE__ */ jsxs29(Group, { ...props, children: [
9053
- /* @__PURE__ */ jsx209(StyledLabel3, { children: /* @__PURE__ */ jsx209(
9054
- Text,
9055
- {
9056
- prominence: "secondary",
9057
- variant: "body3",
9058
- children: label
9059
- }
9060
- ) }),
9061
- children
9062
- ] });
9063
- };
9064
8839
  export {
9065
8840
  ActionButton,
9066
8841
  Avatar,
@@ -9100,9 +8875,6 @@ export {
9100
8875
  ScreenReaderOnly,
9101
8876
  SegmentedControl,
9102
8877
  SegmentedControlItem,
9103
- Select,
9104
- SelectOption,
9105
- SelectOptionGroup,
9106
8878
  Stack,
9107
8879
  SubMenu,
9108
8880
  Tag,