@wistia/ui 0.8.26 → 0.8.27-beta.415fcaaf.2aacc73

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.8.26
3
+ * @license @wistia/ui v0.8.27-beta.415fcaaf.2aacc73
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7648,9 +7648,9 @@ var Badge = forwardRef4(
7648
7648
  Badge.displayName = "Badge";
7649
7649
 
7650
7650
  // src/components/Box/Box.tsx
7651
- import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
7651
+ import { forwardRef as forwardRef5 } from "react";
7652
7652
  import styled11, { css as css18 } from "styled-components";
7653
- import { isNotNil as isNotNil10, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
7653
+ import { isNotNil as isNotNil10, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
7654
7654
 
7655
7655
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
7656
7656
  var makePolymorphic = (component) => {
@@ -7659,7 +7659,6 @@ var makePolymorphic = (component) => {
7659
7659
 
7660
7660
  // src/components/Box/Box.tsx
7661
7661
  import { jsx as jsx199 } from "react/jsx-runtime";
7662
- var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
7663
7662
  var getGapStyle = (gap) => {
7664
7663
  if (isNotNil10(gap)) {
7665
7664
  if (isRecord3(gap)) {
@@ -7754,22 +7753,6 @@ var StyledBoxComponent = styled11.div`
7754
7753
  justify-content: ${({ $justifyContent }) => $justifyContent};
7755
7754
  order: ${({ $order }) => isNotNil10($order) ? $order : null};
7756
7755
  `;
7757
- var wrapChildren = (children) => {
7758
- if (isNotNil10(children)) {
7759
- if (typeof children === "object" && isDev) {
7760
- return Children.map(children, (child) => {
7761
- if (isNil9(child)) return null;
7762
- const elementParams = {};
7763
- if (child.type?.displayName === "Box" || child.type?.displayName === "Box_UI") {
7764
- elementParams.hasBoxParent = true;
7765
- }
7766
- return cloneElement2(child, elementParams);
7767
- });
7768
- }
7769
- return children;
7770
- }
7771
- return null;
7772
- };
7773
7756
  var DEFAULT_ELEMENT = "div";
7774
7757
  var BoxComponent = forwardRef5(
7775
7758
  ({
@@ -7783,8 +7766,6 @@ var BoxComponent = forwardRef5(
7783
7766
  fillViewport = false,
7784
7767
  gap,
7785
7768
  grow,
7786
- hasBoxParent = false,
7787
- // eslint-disable-line @typescript-eslint/no-unused-vars
7788
7769
  height,
7789
7770
  inline = false,
7790
7771
  justifyContent = "flex-start",
@@ -7845,7 +7826,7 @@ var BoxComponent = forwardRef5(
7845
7826
  $wrapItems: wrapItems,
7846
7827
  as: renderAs ?? DEFAULT_ELEMENT,
7847
7828
  ...props,
7848
- children: wrapChildren(children)
7829
+ children
7849
7830
  }
7850
7831
  );
7851
7832
  }
@@ -7854,7 +7835,7 @@ BoxComponent.displayName = "Box";
7854
7835
  var Box = makePolymorphic(BoxComponent);
7855
7836
 
7856
7837
  // src/components/Breadcrumbs/Breadcrumbs.tsx
7857
- import { Children as Children2 } from "react";
7838
+ import { Children } from "react";
7858
7839
  import styled12 from "styled-components";
7859
7840
  import { Fragment as Fragment2, jsx as jsx200, jsxs as jsxs12 } from "react/jsx-runtime";
7860
7841
  var StyledBreadcrumbs = styled12.nav`
@@ -7870,7 +7851,7 @@ var StyledBreadcrumbs = styled12.nav`
7870
7851
  var BUFFER_WIDTH = 10;
7871
7852
  var Breadcrumbs = ({ children, ...props }) => {
7872
7853
  const { isXsAndDown } = useMq();
7873
- let crumbs = Children2.toArray(children);
7854
+ let crumbs = Children.toArray(children);
7874
7855
  if (isXsAndDown) {
7875
7856
  crumbs = crumbs.slice(-1);
7876
7857
  }
@@ -7937,7 +7918,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
7937
7918
 
7938
7919
  // src/components/ButtonGroup/ButtonGroup.tsx
7939
7920
  import styled14 from "styled-components";
7940
- import { isNil as isNil10 } from "@wistia/type-guards";
7921
+ import { isNil as isNil9 } from "@wistia/type-guards";
7941
7922
  import { jsx as jsx202 } from "react/jsx-runtime";
7942
7923
  var getAlignment = (align) => {
7943
7924
  if (align === "center") {
@@ -7983,7 +7964,7 @@ var ButtonGroup = ({
7983
7964
  collapseOnSmallScreens = true,
7984
7965
  ...props
7985
7966
  }) => {
7986
- if (isNil10(children)) {
7967
+ if (isNil9(children)) {
7987
7968
  return null;
7988
7969
  }
7989
7970
  return /* @__PURE__ */ jsx202(
@@ -8096,11 +8077,11 @@ import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
8096
8077
 
8097
8078
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8098
8079
  import styled19, { css as css20 } from "styled-components";
8099
- import { isNil as isNil12, isNotNil as isNotNil12 } from "@wistia/type-guards";
8080
+ import { isNil as isNil11, isNotNil as isNotNil12 } from "@wistia/type-guards";
8100
8081
 
8101
8082
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
8102
8083
  import styled17, { css as css19 } from "styled-components";
8103
- import { isNil as isNil11 } from "@wistia/type-guards";
8084
+ import { isNil as isNil10 } from "@wistia/type-guards";
8104
8085
  import { jsx as jsx205 } from "react/jsx-runtime";
8105
8086
  var disabledStyle = css19`
8106
8087
  color: var(--wui-color-text-disabled);
@@ -8120,7 +8101,7 @@ var FormControlLabelDescription = ({
8120
8101
  disabled = false,
8121
8102
  ...props
8122
8103
  }) => {
8123
- if (isNil11(children)) {
8104
+ if (isNil10(children)) {
8124
8105
  return null;
8125
8106
  }
8126
8107
  return /* @__PURE__ */ jsx205(
@@ -8188,7 +8169,7 @@ var FormControlLabel = ({
8188
8169
  hideLabel = false,
8189
8170
  ...props
8190
8171
  }) => {
8191
- if (isNil12(label)) {
8172
+ if (isNil11(label)) {
8192
8173
  return null;
8193
8174
  }
8194
8175
  const labelContent = hideLabel ? /* @__PURE__ */ jsx207(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ jsxs14(StyledLabelWrapper, { children: [
@@ -8368,7 +8349,12 @@ var Checkbox = forwardRef7(
8368
8349
  Checkbox.displayName = "Checkbox";
8369
8350
 
8370
8351
  // src/components/ClickRegion/ClickRegion.tsx
8371
- import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback8, useEffect as useEffect8 } from "react";
8352
+ import { Children as Children2, cloneElement as cloneElement2, useCallback as useCallback8, useEffect as useEffect8 } from "react";
8353
+ var isClickableElement = (element) => {
8354
+ if (!element) return false;
8355
+ const el = element;
8356
+ return el.closest("button") !== null || el.closest("a") !== null || el.closest("input") !== null || el.closest("select") !== null || el.closest("textarea") !== null || el.closest("label") !== null || el.closest("[data-wui-faux-input]") !== null;
8357
+ };
8372
8358
  var ClickRegion = ({ children, targetRef }) => {
8373
8359
  useEffect8(() => {
8374
8360
  if (targetRef.current && targetRef.current.tagName === "A") {
@@ -8381,7 +8367,10 @@ var ClickRegion = ({ children, targetRef }) => {
8381
8367
  const handleClick = useCallback8(
8382
8368
  (event) => {
8383
8369
  const node = targetRef.current;
8384
- 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")) {
8370
+ if (event.target === node) {
8371
+ return;
8372
+ }
8373
+ if (isClickableElement(event.target) && event.target !== node) {
8385
8374
  event.stopPropagation();
8386
8375
  return;
8387
8376
  }
@@ -8395,7 +8384,7 @@ var ClickRegion = ({ children, targetRef }) => {
8395
8384
  },
8396
8385
  [targetRef]
8397
8386
  );
8398
- return cloneElement3(Children3.only(children), {
8387
+ return cloneElement2(Children2.only(children), {
8399
8388
  "data-click-region": true,
8400
8389
  onClick: handleClick
8401
8390
  });
@@ -8428,11 +8417,11 @@ var Collapsible = ({
8428
8417
  Collapsible.displayName = "Collapsible";
8429
8418
 
8430
8419
  // src/components/Collapsible/CollapsibleTrigger.tsx
8431
- import { Children as Children4 } from "react";
8420
+ import { Children as Children3 } from "react";
8432
8421
  import { Trigger } from "@radix-ui/react-collapsible";
8433
8422
  import { jsx as jsx210 } from "react/jsx-runtime";
8434
8423
  var CollapsibleTrigger = ({ children }) => {
8435
- Children4.only(children);
8424
+ Children3.only(children);
8436
8425
  return /* @__PURE__ */ jsx210(Trigger, { asChild: true, children });
8437
8426
  };
8438
8427
 
@@ -9172,9 +9161,9 @@ var Tooltip = ({
9172
9161
  Tooltip.displayName = "Tooltip";
9173
9162
 
9174
9163
  // src/components/Input/Input.tsx
9175
- import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef6 } from "react";
9164
+ import { forwardRef as forwardRef10, cloneElement as cloneElement3, useRef as useRef6 } from "react";
9176
9165
  import styled30, { css as css26 } from "styled-components";
9177
- import { isNil as isNil13, isNotNil as isNotNil16, isRecord as isRecord4 } from "@wistia/type-guards";
9166
+ import { isNil as isNil12, isNotNil as isNotNil16, isRecord as isRecord4 } from "@wistia/type-guards";
9178
9167
 
9179
9168
  // src/css/sharedStyles/inputCssVariables.ts
9180
9169
  import { css as css25 } from "styled-components";
@@ -9323,18 +9312,18 @@ var Input = forwardRef10(
9323
9312
  isNotNil16(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
9324
9313
  );
9325
9314
  let leftIconToDisplay = leftIcon;
9326
- if (isNil13(leftIcon) && type === "search") {
9315
+ if (isNil12(leftIcon) && type === "search") {
9327
9316
  leftIconToDisplay = /* @__PURE__ */ jsx219(Icon, { type: "search" });
9328
9317
  }
9329
9318
  if (isNotNil16(leftIconToDisplay)) {
9330
- leftIconToDisplay = cloneElement4(leftIconToDisplay, {
9319
+ leftIconToDisplay = cloneElement3(leftIconToDisplay, {
9331
9320
  size: "md",
9332
9321
  className: "wui-input-left-icon"
9333
9322
  });
9334
9323
  }
9335
9324
  let rightIconToDisplay = rightIcon;
9336
9325
  if (isNotNil16(rightIconToDisplay)) {
9337
- rightIconToDisplay = cloneElement4(rightIconToDisplay, {
9326
+ rightIconToDisplay = cloneElement3(rightIconToDisplay, {
9338
9327
  size: "md",
9339
9328
  className: "wui-input-right-icon"
9340
9329
  });
@@ -9721,7 +9710,7 @@ var FormErrorSummary = ({ description }) => {
9721
9710
  };
9722
9711
 
9723
9712
  // src/components/FormField/FormField.tsx
9724
- import { Children as Children5, cloneElement as cloneElement5, useContext as useContext4 } from "react";
9713
+ import { Children as Children4, cloneElement as cloneElement4, useContext as useContext4 } from "react";
9725
9714
  import styled36 from "styled-components";
9726
9715
  import { isArray as isArray2, isNotNil as isNotNil17, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9727
9716
 
@@ -9956,7 +9945,7 @@ var FormField = ({
9956
9945
  "aria-invalid": isNotNil17(error)
9957
9946
  };
9958
9947
  }
9959
- Children5.only(children);
9948
+ Children4.only(children);
9960
9949
  return /* @__PURE__ */ jsxs24(
9961
9950
  StyledFormField,
9962
9951
  {
@@ -9965,7 +9954,7 @@ var FormField = ({
9965
9954
  children: [
9966
9955
  !isIntegratedLabel && /* @__PURE__ */ jsx227(Label, { htmlFor: computedId, children: label }),
9967
9956
  isNotNil17(description) ? /* @__PURE__ */ jsx227(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9968
- cloneElement5(children, childProps),
9957
+ cloneElement4(children, childProps),
9969
9958
  isNotNil17(computedError) ? /* @__PURE__ */ jsxs24(Fragment6, { children: [
9970
9959
  /* @__PURE__ */ jsx227("div", {}),
9971
9960
  /* @__PURE__ */ jsx227(
@@ -10004,7 +9993,7 @@ var RadioGroup = ({
10004
9993
  RadioGroup.displayName = "RadioGroup";
10005
9994
 
10006
9995
  // src/components/IconButton/IconButton.tsx
10007
- import { Children as Children6, cloneElement as cloneElement6, forwardRef as forwardRef13 } from "react";
9996
+ import { Children as Children5, cloneElement as cloneElement5, forwardRef as forwardRef13 } from "react";
10008
9997
  import styled37 from "styled-components";
10009
9998
  import { jsx as jsx229 } from "react/jsx-runtime";
10010
9999
  var StyledButton2 = styled37(Button)`
@@ -10032,7 +10021,7 @@ var IconButton = forwardRef13(
10032
10021
  "aria-label": label,
10033
10022
  "data-wistia-ui-icon-button": true,
10034
10023
  size: responsiveSize,
10035
- children: cloneElement6(Children6.only(children), {
10024
+ children: cloneElement5(Children5.only(children), {
10036
10025
  size: responsiveSize
10037
10026
  })
10038
10027
  }
@@ -10654,12 +10643,9 @@ MenuItem.displayName = "MenuItem";
10654
10643
  import {
10655
10644
  DropdownMenuRadioGroup
10656
10645
  } from "@radix-ui/react-dropdown-menu";
10657
- import { jsx as jsx238, jsxs as jsxs29 } from "react/jsx-runtime";
10658
- var MenuRadioGroup = ({ children, label, ...props }) => {
10659
- return /* @__PURE__ */ jsxs29(DropdownMenuRadioGroup, { ...props, children: [
10660
- /* @__PURE__ */ jsx238(MenuLabel, { children: label }),
10661
- children
10662
- ] });
10646
+ import { jsx as jsx238 } from "react/jsx-runtime";
10647
+ var MenuRadioGroup = ({ children, ...props }) => {
10648
+ return /* @__PURE__ */ jsx238(DropdownMenuRadioGroup, { ...props, children });
10663
10649
  };
10664
10650
  MenuRadioGroup.displayName = "MenuRadioGroup";
10665
10651
 
@@ -10706,9 +10692,9 @@ import {
10706
10692
  DropdownMenuItemIndicator as DropdownMenuItemIndicator2
10707
10693
  } from "@radix-ui/react-dropdown-menu";
10708
10694
  import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10709
- import { jsx as jsx240, jsxs as jsxs30 } from "react/jsx-runtime";
10695
+ import { jsx as jsx240, jsxs as jsxs29 } from "react/jsx-runtime";
10710
10696
  var CheckboxIndicator = ({ checked, ...props }) => {
10711
- return checked ? /* @__PURE__ */ jsxs30(
10697
+ return checked ? /* @__PURE__ */ jsxs29(
10712
10698
  "svg",
10713
10699
  {
10714
10700
  ...props,
@@ -10734,7 +10720,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10734
10720
  )
10735
10721
  ]
10736
10722
  }
10737
- ) : /* @__PURE__ */ jsxs30(
10723
+ ) : /* @__PURE__ */ jsxs29(
10738
10724
  "svg",
10739
10725
  {
10740
10726
  ...props,
@@ -10818,7 +10804,7 @@ var ModalCloseButton = () => {
10818
10804
  };
10819
10805
 
10820
10806
  // src/components/Modal/ModalHeader.tsx
10821
- import { jsx as jsx242, jsxs as jsxs31 } from "react/jsx-runtime";
10807
+ import { jsx as jsx242, jsxs as jsxs30 } from "react/jsx-runtime";
10822
10808
  var Header = styled46.header`
10823
10809
  display: flex;
10824
10810
  order: 1;
@@ -10842,7 +10828,7 @@ var ModalHeader = ({
10842
10828
  hideCloseButton
10843
10829
  }) => {
10844
10830
  const TitleComponent = hideTitle ? /* @__PURE__ */ jsx242(ScreenReaderOnly, { children: /* @__PURE__ */ jsx242(Title, { children: title }) }) : /* @__PURE__ */ jsx242(Title, { children: title });
10845
- return /* @__PURE__ */ jsxs31(Header, { $hideTitle: hideTitle, children: [
10831
+ return /* @__PURE__ */ jsxs30(Header, { $hideTitle: hideTitle, children: [
10846
10832
  TitleComponent,
10847
10833
  hideCloseButton ? null : /* @__PURE__ */ jsx242(ModalCloseButton, {})
10848
10834
  ] });
@@ -11027,7 +11013,7 @@ var Backdrop = forwardRef18(
11027
11013
  Backdrop.displayName = "Backdrop";
11028
11014
 
11029
11015
  // src/components/Modal/Modal.tsx
11030
- import { jsx as jsx245, jsxs as jsxs32 } from "react/jsx-runtime";
11016
+ import { jsx as jsx245, jsxs as jsxs31 } from "react/jsx-runtime";
11031
11017
  var DEFAULT_MODAL_WIDTH = "532px";
11032
11018
  var ModalBody = styled49.div`
11033
11019
  flex-direction: column;
@@ -11059,9 +11045,9 @@ var Modal = forwardRef19(
11059
11045
  }
11060
11046
  },
11061
11047
  open: isOpen,
11062
- children: /* @__PURE__ */ jsxs32(DialogPortal, { children: [
11048
+ children: /* @__PURE__ */ jsxs31(DialogPortal, { children: [
11063
11049
  /* @__PURE__ */ jsx245(Backdrop, {}),
11064
- /* @__PURE__ */ jsxs32(
11050
+ /* @__PURE__ */ jsxs31(
11065
11051
  ModalContent,
11066
11052
  {
11067
11053
  ref,
@@ -11111,7 +11097,7 @@ var getControlProps = (isOpen, onOpenChange) => {
11111
11097
  // src/components/Popover/PopoverArrow.tsx
11112
11098
  import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
11113
11099
  import styled50, { css as css31, keyframes as keyframes4 } from "styled-components";
11114
- import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
11100
+ import { jsx as jsx246, jsxs as jsxs32 } from "react/jsx-runtime";
11115
11101
  var StyledPath = styled50.path`
11116
11102
  fill: var(--wui-color-border-secondary);
11117
11103
  `;
@@ -11150,7 +11136,7 @@ var StyledCircle = styled50.circle`
11150
11136
  }
11151
11137
  `;
11152
11138
  var PopoverArrow = ({ isAnimated }) => {
11153
- return /* @__PURE__ */ jsx246(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs33(
11139
+ return /* @__PURE__ */ jsx246(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs32(
11154
11140
  "svg",
11155
11141
  {
11156
11142
  fill: "none",
@@ -11189,7 +11175,7 @@ var PopoverArrow = ({ isAnimated }) => {
11189
11175
  PopoverArrow.displayName = "PopoverArrow";
11190
11176
 
11191
11177
  // src/components/Popover/Popover.tsx
11192
- import { jsx as jsx247, jsxs as jsxs34 } from "react/jsx-runtime";
11178
+ import { jsx as jsx247, jsxs as jsxs33 } from "react/jsx-runtime";
11193
11179
  var StyledContent2 = styled51(Content2)`
11194
11180
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11195
11181
  ${({ $unstyled }) => !$unstyled && css32`
@@ -11228,9 +11214,9 @@ var Popover = ({
11228
11214
  "--wui-popover-max-width": maxWidth,
11229
11215
  "--wui-popover-max-height": maxHeight
11230
11216
  };
11231
- return /* @__PURE__ */ jsxs34(Root, { ...getControlProps(isOpen, onOpenChange), children: [
11217
+ return /* @__PURE__ */ jsxs33(Root, { ...getControlProps(isOpen, onOpenChange), children: [
11232
11218
  /* @__PURE__ */ jsx247(Trigger2, { asChild: true, children: trigger }),
11233
- /* @__PURE__ */ jsx247(Portal, { children: /* @__PURE__ */ jsxs34(
11219
+ /* @__PURE__ */ jsx247(Portal, { children: /* @__PURE__ */ jsxs33(
11234
11220
  StyledContent2,
11235
11221
  {
11236
11222
  $colorScheme: colorScheme,
@@ -11261,7 +11247,7 @@ Popover.displayName = "Popover";
11261
11247
  import styled52 from "styled-components";
11262
11248
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
11263
11249
  import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11264
- import { jsx as jsx248, jsxs as jsxs35 } from "react/jsx-runtime";
11250
+ import { jsx as jsx248, jsxs as jsxs34 } from "react/jsx-runtime";
11265
11251
  var ProgressBarWrapper = styled52.div`
11266
11252
  --progress-bar-height: 8px;
11267
11253
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
@@ -11314,7 +11300,7 @@ var ProgressBar = ({
11314
11300
  labelRight,
11315
11301
  ...props
11316
11302
  }) => {
11317
- return /* @__PURE__ */ jsxs35(ProgressBarWrapper, { children: [
11303
+ return /* @__PURE__ */ jsxs34(ProgressBarWrapper, { children: [
11318
11304
  isNotNil26(labelLeft) ? /* @__PURE__ */ jsx248(ProgressBarLabel, { children: labelLeft }) : null,
11319
11305
  /* @__PURE__ */ jsx248(
11320
11306
  StyledProgressBar,
@@ -11340,7 +11326,7 @@ ProgressBar.displayName = "ProgressBar";
11340
11326
  import { forwardRef as forwardRef20, useId as useId3 } from "react";
11341
11327
  import styled53, { css as css33 } from "styled-components";
11342
11328
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
11343
- import { jsx as jsx249, jsxs as jsxs36 } from "react/jsx-runtime";
11329
+ import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
11344
11330
  var RadioIcon = () => /* @__PURE__ */ jsx249(
11345
11331
  "svg",
11346
11332
  {
@@ -11457,7 +11443,7 @@ var Radio = forwardRef20(
11457
11443
  }, ref) => {
11458
11444
  const generatedId = useId3();
11459
11445
  const computedId = isNonEmptyString3(id) ? id : `wistia-ui-radio-${generatedId}`;
11460
- return /* @__PURE__ */ jsxs36(
11446
+ return /* @__PURE__ */ jsxs35(
11461
11447
  StyledRadioWrapper,
11462
11448
  {
11463
11449
  $disabled: disabled,
@@ -11508,7 +11494,7 @@ Radio.displayName = "Radio";
11508
11494
  import { forwardRef as forwardRef21 } from "react";
11509
11495
  import styled55, { css as css34 } from "styled-components";
11510
11496
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11511
- import { isNil as isNil14 } from "@wistia/type-guards";
11497
+ import { isNil as isNil13 } from "@wistia/type-guards";
11512
11498
 
11513
11499
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11514
11500
  import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState14 } from "react";
@@ -11584,7 +11570,7 @@ var SelectedItemIndicator = () => {
11584
11570
  };
11585
11571
 
11586
11572
  // src/components/SegmentedControl/SegmentedControl.tsx
11587
- import { jsx as jsx252, jsxs as jsxs37 } from "react/jsx-runtime";
11573
+ import { jsx as jsx252, jsxs as jsxs36 } from "react/jsx-runtime";
11588
11574
  var segmentedControlStyles = css34`
11589
11575
  display: inline-flex;
11590
11576
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11608,7 +11594,7 @@ var SegmentedControl = forwardRef21(
11608
11594
  onSelectedValueChange,
11609
11595
  ...props
11610
11596
  }, ref) => {
11611
- if (isNil14(children)) {
11597
+ if (isNil13(children)) {
11612
11598
  return null;
11613
11599
  }
11614
11600
  return /* @__PURE__ */ jsx252(
@@ -11623,7 +11609,7 @@ var SegmentedControl = forwardRef21(
11623
11609
  type: "single",
11624
11610
  value: selectedValue,
11625
11611
  ...props,
11626
- children: /* @__PURE__ */ jsx252(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs37(SelectedItemStyleProvider, { children: [
11612
+ children: /* @__PURE__ */ jsx252(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs36(SelectedItemStyleProvider, { children: [
11627
11613
  /* @__PURE__ */ jsx252(SelectedItemIndicator, {}),
11628
11614
  children
11629
11615
  ] }) })
@@ -11638,7 +11624,7 @@ import { forwardRef as forwardRef22, useEffect as useEffect11, useRef as useRef1
11638
11624
  import styled56, { css as css35 } from "styled-components";
11639
11625
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11640
11626
  import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11641
- import { jsxs as jsxs38 } from "react/jsx-runtime";
11627
+ import { jsxs as jsxs37 } from "react/jsx-runtime";
11642
11628
  var segmentedControlItemStyles = css35`
11643
11629
  all: unset; /* ToggleGroupItem is a button element */
11644
11630
  align-items: center;
@@ -11740,7 +11726,7 @@ var SegmentedControlItem = forwardRef22(
11740
11726
  resizeObserver.disconnect();
11741
11727
  };
11742
11728
  }, [selectedValue, setSelectedItemMeasurements, value]);
11743
- return /* @__PURE__ */ jsxs38(
11729
+ return /* @__PURE__ */ jsxs37(
11744
11730
  StyledSegmentedControlItem,
11745
11731
  {
11746
11732
  ref: combinedRef,
@@ -11772,7 +11758,7 @@ import {
11772
11758
  } from "@radix-ui/react-select";
11773
11759
  import { forwardRef as forwardRef23 } from "react";
11774
11760
  import styled57 from "styled-components";
11775
- import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11761
+ import { jsx as jsx253, jsxs as jsxs38 } from "react/jsx-runtime";
11776
11762
  var StyledTrigger = styled57(Trigger3)`
11777
11763
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11778
11764
  ${inputCssVariables};
@@ -11845,13 +11831,13 @@ var Select = forwardRef23(
11845
11831
  ...props
11846
11832
  }, forwardedRef) => {
11847
11833
  const responsiveFullWidth = useResponsiveProp(fullWidth);
11848
- return /* @__PURE__ */ jsxs39(
11834
+ return /* @__PURE__ */ jsxs38(
11849
11835
  Root2,
11850
11836
  {
11851
11837
  ...props,
11852
11838
  onValueChange: onChange,
11853
11839
  children: [
11854
- /* @__PURE__ */ jsxs39(
11840
+ /* @__PURE__ */ jsxs38(
11855
11841
  StyledTrigger,
11856
11842
  {
11857
11843
  ref: forwardedRef,
@@ -11870,7 +11856,7 @@ var Select = forwardRef23(
11870
11856
  ]
11871
11857
  }
11872
11858
  ),
11873
- /* @__PURE__ */ jsx253(Portal2, { children: /* @__PURE__ */ jsxs39(StyledContent3, { position: "popper", children: [
11859
+ /* @__PURE__ */ jsx253(Portal2, { children: /* @__PURE__ */ jsxs38(StyledContent3, { position: "popper", children: [
11874
11860
  /* @__PURE__ */ jsx253(ScrollUpButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-up" }) }),
11875
11861
  /* @__PURE__ */ jsx253(Viewport, { children }),
11876
11862
  /* @__PURE__ */ jsx253(ScrollDownButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-down" }) })
@@ -11887,7 +11873,7 @@ import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11887
11873
  import { forwardRef as forwardRef24 } from "react";
11888
11874
  import styled58 from "styled-components";
11889
11875
  import { isNotNil as isNotNil28 } from "@wistia/type-guards";
11890
- import { jsx as jsx254, jsxs as jsxs40 } from "react/jsx-runtime";
11876
+ import { jsx as jsx254, jsxs as jsxs39 } from "react/jsx-runtime";
11891
11877
  var StyledItem = styled58(Item)`
11892
11878
  ${variantStyleMap2.body3};
11893
11879
  display: flex;
@@ -11917,7 +11903,7 @@ var StyledIconContainer = styled58.span`
11917
11903
  `;
11918
11904
  var SelectOption = forwardRef24(
11919
11905
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11920
- return /* @__PURE__ */ jsxs40(
11906
+ return /* @__PURE__ */ jsxs39(
11921
11907
  StyledItem,
11922
11908
  {
11923
11909
  ...props,
@@ -11930,7 +11916,7 @@ var SelectOption = forwardRef24(
11930
11916
  type: "checkmark"
11931
11917
  }
11932
11918
  ) }) }),
11933
- isNotNil28(selectedDisplayValue) ? /* @__PURE__ */ jsxs40("div", { children: [
11919
+ isNotNil28(selectedDisplayValue) ? /* @__PURE__ */ jsxs39("div", { children: [
11934
11920
  children,
11935
11921
  /* @__PURE__ */ jsx254("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx254(ItemText, { children: selectedDisplayValue }) })
11936
11922
  ] }) : /* @__PURE__ */ jsx254(ItemText, { children })
@@ -11944,12 +11930,12 @@ SelectOption.displayName = "SelectOption";
11944
11930
  // src/components/Select/SelectOptionGroup.tsx
11945
11931
  import { Group, Label as Label3 } from "@radix-ui/react-select";
11946
11932
  import styled59 from "styled-components";
11947
- import { jsx as jsx255, jsxs as jsxs41 } from "react/jsx-runtime";
11933
+ import { jsx as jsx255, jsxs as jsxs40 } from "react/jsx-runtime";
11948
11934
  var StyledLabel4 = styled59(Label3)`
11949
11935
  padding: var(--wui-select-option-padding);
11950
11936
  `;
11951
11937
  var SelectOptionGroup = ({ children, label, ...props }) => {
11952
- return /* @__PURE__ */ jsxs41(Group, { ...props, children: [
11938
+ return /* @__PURE__ */ jsxs40(Group, { ...props, children: [
11953
11939
  /* @__PURE__ */ jsx255(StyledLabel4, { children: /* @__PURE__ */ jsx255(
11954
11940
  Text,
11955
11941
  {
@@ -11966,7 +11952,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11966
11952
  import { forwardRef as forwardRef25, useId as useId4 } from "react";
11967
11953
  import styled60, { css as css36 } from "styled-components";
11968
11954
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11969
- import { jsx as jsx256, jsxs as jsxs42 } from "react/jsx-runtime";
11955
+ import { jsx as jsx256, jsxs as jsxs41 } from "react/jsx-runtime";
11970
11956
  var sizeSmall3 = css36`
11971
11957
  --wui-size-small-width: 24px;
11972
11958
  --wui-size-small-height: 14px;
@@ -12085,7 +12071,7 @@ var Switch = forwardRef25(
12085
12071
  }, ref) => {
12086
12072
  const generatedId = useId4();
12087
12073
  const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
12088
- return /* @__PURE__ */ jsxs42(StyledSwitchWrapper, { $disabled: disabled, children: [
12074
+ return /* @__PURE__ */ jsxs41(StyledSwitchWrapper, { $disabled: disabled, children: [
12089
12075
  /* @__PURE__ */ jsx256(
12090
12076
  StyledHiddenSwitchInput,
12091
12077
  {
@@ -12239,7 +12225,7 @@ var TableRow = ({ children, ...props }) => {
12239
12225
  // src/components/Tabs/Tabs.tsx
12240
12226
  import { forwardRef as forwardRef27, useState as useState15 } from "react";
12241
12227
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
12242
- import { isNotNil as isNotNil30, isNil as isNil15 } from "@wistia/type-guards";
12228
+ import { isNotNil as isNotNil30, isNil as isNil14 } from "@wistia/type-guards";
12243
12229
  import styled71 from "styled-components";
12244
12230
 
12245
12231
  // src/components/Tabs/TabPanel.tsx
@@ -12310,7 +12296,7 @@ var useTabsValue = () => {
12310
12296
  };
12311
12297
 
12312
12298
  // src/components/Tabs/TabItem.tsx
12313
- import { jsxs as jsxs43 } from "react/jsx-runtime";
12299
+ import { jsxs as jsxs42 } from "react/jsx-runtime";
12314
12300
  var StyledTabItem = styled69(RadixTab)`
12315
12301
  ${segmentedControlItemStyles}
12316
12302
 
@@ -12349,7 +12335,7 @@ var TabItem = forwardRef26(
12349
12335
  resizeObserver.disconnect();
12350
12336
  };
12351
12337
  }, [selectedValue, setSelectedItemMeasurements, value]);
12352
- return /* @__PURE__ */ jsxs43(
12338
+ return /* @__PURE__ */ jsxs42(
12353
12339
  StyledTabItem,
12354
12340
  {
12355
12341
  ref: combinedRef,
@@ -12368,10 +12354,10 @@ var TabItem = forwardRef26(
12368
12354
  TabItem.displayName = "TabItem";
12369
12355
 
12370
12356
  // src/components/Tabs/extractTabItems.ts
12371
- import { Children as Children7, Fragment as Fragment7, isValidElement as isValidElement2 } from "react";
12357
+ import { Children as Children6, Fragment as Fragment7, isValidElement as isValidElement2 } from "react";
12372
12358
  var extractTabItems = (children) => {
12373
12359
  const tabItems = [];
12374
- Children7.forEach(children, (child) => {
12360
+ Children6.forEach(children, (child) => {
12375
12361
  if (!isValidElement2(child)) {
12376
12362
  return;
12377
12363
  }
@@ -12407,7 +12393,7 @@ var SelectedItemIndicator2 = () => {
12407
12393
  };
12408
12394
 
12409
12395
  // src/components/Tabs/Tabs.tsx
12410
- import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12396
+ import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
12411
12397
  var TabsContainer = styled71.div`
12412
12398
  display: flex;
12413
12399
  flex-direction: column;
@@ -12450,8 +12436,8 @@ var Tabs = forwardRef27(
12450
12436
  activationMode: "automatic",
12451
12437
  ...props,
12452
12438
  ...modeProps,
12453
- children: /* @__PURE__ */ jsx266(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs44(SelectedItemStyleProvider, { children: [
12454
- /* @__PURE__ */ jsxs44(
12439
+ children: /* @__PURE__ */ jsx266(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs43(SelectedItemStyleProvider, { children: [
12440
+ /* @__PURE__ */ jsxs43(
12455
12441
  TabList,
12456
12442
  {
12457
12443
  ariaLabel,
@@ -12466,7 +12452,7 @@ var Tabs = forwardRef27(
12466
12452
  label,
12467
12453
  "aria-label": ariaLabelForTab
12468
12454
  } = tab.props;
12469
- if (isNil15(icon)) {
12455
+ if (isNil14(icon)) {
12470
12456
  return /* @__PURE__ */ jsx266(
12471
12457
  TabItem,
12472
12458
  {
@@ -12532,8 +12518,8 @@ Tab.displayName = "Tab";
12532
12518
  // src/components/Tag/Tag.tsx
12533
12519
  import { forwardRef as forwardRef29 } from "react";
12534
12520
  import styled72 from "styled-components";
12535
- import { isNil as isNil16, isNotNil as isNotNil31, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12536
- import { Fragment as Fragment8, jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12521
+ import { isNil as isNil15, isNotNil as isNotNil31, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12522
+ import { Fragment as Fragment8, jsx as jsx268, jsxs as jsxs44 } from "react/jsx-runtime";
12537
12523
  var TagLabel = styled72.a`
12538
12524
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12539
12525
  font-size: var(--wui-typography-label-4-size);
@@ -12617,17 +12603,17 @@ var StyledTag = styled72.div`
12617
12603
  }
12618
12604
  `;
12619
12605
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12620
- if (isNil16(onClickRemove)) {
12606
+ if (isNil15(onClickRemove)) {
12621
12607
  return null;
12622
12608
  }
12623
- if (isNil16(onClickRemoveLabel)) {
12609
+ if (isNil15(onClickRemoveLabel)) {
12624
12610
  throw new Error(
12625
12611
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12626
12612
  );
12627
12613
  }
12628
- return /* @__PURE__ */ jsxs45(Fragment8, { children: [
12614
+ return /* @__PURE__ */ jsxs44(Fragment8, { children: [
12629
12615
  /* @__PURE__ */ jsx268(TagDivider, { $colorScheme: colorScheme }),
12630
- /* @__PURE__ */ jsxs45(
12616
+ /* @__PURE__ */ jsxs44(
12631
12617
  StyledRemoveButton,
12632
12618
  {
12633
12619
  $colorScheme: colorScheme,
@@ -12651,14 +12637,14 @@ var Tag = forwardRef29(
12651
12637
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12652
12638
  const hasIcon = isNotNil31(icon);
12653
12639
  const labelProps = isNotNil31(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12654
- return /* @__PURE__ */ jsxs45(
12640
+ return /* @__PURE__ */ jsxs44(
12655
12641
  StyledTag,
12656
12642
  {
12657
12643
  ref,
12658
12644
  $colorScheme: colorScheme,
12659
12645
  ...props,
12660
12646
  children: [
12661
- /* @__PURE__ */ jsxs45(
12647
+ /* @__PURE__ */ jsxs44(
12662
12648
  TagLabel,
12663
12649
  {
12664
12650
  ...labelProps,
@@ -12687,7 +12673,7 @@ Tag.displayName = "Tag";
12687
12673
  // src/components/Thumbnail/ThumbnailBadge.tsx
12688
12674
  import styled73 from "styled-components";
12689
12675
  import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12690
- import { jsx as jsx269, jsxs as jsxs46 } from "react/jsx-runtime";
12676
+ import { jsx as jsx269, jsxs as jsxs45 } from "react/jsx-runtime";
12691
12677
  var StyledThumbnailBadge = styled73.div`
12692
12678
  align-items: center;
12693
12679
  background-color: rgb(0 0 0 / 50%);
@@ -12713,7 +12699,7 @@ var StyledThumbnailBadge = styled73.div`
12713
12699
  }
12714
12700
  `;
12715
12701
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12716
- return /* @__PURE__ */ jsxs46(StyledThumbnailBadge, { ...props, children: [
12702
+ return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12717
12703
  isNotNil32(icon) && icon,
12718
12704
  /* @__PURE__ */ jsx269("span", { children: label })
12719
12705
  ] });
@@ -12723,7 +12709,7 @@ ThumbnailBadge.displayName = "ThumbnailBadge";
12723
12709
  // src/components/Thumbnail/Thumbnail.tsx
12724
12710
  import { forwardRef as forwardRef30 } from "react";
12725
12711
  import styled74 from "styled-components";
12726
- import { isNil as isNil17, isNotNil as isNotNil34 } from "@wistia/type-guards";
12712
+ import { isNil as isNil16, isNotNil as isNotNil34 } from "@wistia/type-guards";
12727
12713
 
12728
12714
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12729
12715
  import { isNotNil as isNotNil33 } from "@wistia/type-guards";
@@ -12858,7 +12844,7 @@ var getBackgroundGradient = (gradientName = void 0) => {
12858
12844
  };
12859
12845
 
12860
12846
  // src/components/Thumbnail/Thumbnail.tsx
12861
- import { jsx as jsx270, jsxs as jsxs47 } from "react/jsx-runtime";
12847
+ import { jsx as jsx270, jsxs as jsxs46 } from "react/jsx-runtime";
12862
12848
  var WideThumbnailImage = styled74.img`
12863
12849
  height: 100%;
12864
12850
  object-fit: cover;
@@ -12893,7 +12879,7 @@ var StyledThumbnail = styled74.div`
12893
12879
  background-image: ${({ $backgroundUrl }) => isNotNil34($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12894
12880
  ${({ $backgroundUrl, $gradientBackground }) => (
12895
12881
  // if we don't have $backgroundUrl show a gradient
12896
- isNil17($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12882
+ isNil16($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12897
12883
  )};
12898
12884
  background-position: center center;
12899
12885
  background-size: cover;
@@ -12918,7 +12904,7 @@ var Thumbnail = forwardRef30(
12918
12904
  ...props
12919
12905
  }, ref) => {
12920
12906
  const backgroundUrl = thumbnailImageType === "square" && isNotNil34(thumbnailUrl) ? thumbnailUrl : void 0;
12921
- return /* @__PURE__ */ jsxs47(
12907
+ return /* @__PURE__ */ jsxs46(
12922
12908
  StyledThumbnail,
12923
12909
  {
12924
12910
  ref,
@@ -13053,7 +13039,7 @@ var ThumbnailCollage = ({
13053
13039
  // src/components/WistiaLogo/WistiaLogo.tsx
13054
13040
  import styled76, { css as css40 } from "styled-components";
13055
13041
  import { isNotNil as isNotNil35 } from "@wistia/type-guards";
13056
- import { jsx as jsx272, jsxs as jsxs48 } from "react/jsx-runtime";
13042
+ import { jsx as jsx272, jsxs as jsxs47 } from "react/jsx-runtime";
13057
13043
  var renderBrandmark = (brandmarkColor, iconOnly) => {
13058
13044
  if (iconOnly) {
13059
13045
  return /* @__PURE__ */ jsx272(
@@ -13151,7 +13137,7 @@ var WistiaLogo = ({
13151
13137
  };
13152
13138
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
13153
13139
  const logotypeColor = VARIANT_COLORS[variant].logotype;
13154
- const Logo = /* @__PURE__ */ jsxs48(
13140
+ const Logo = /* @__PURE__ */ jsxs47(
13155
13141
  WistiaLogoComponent,
13156
13142
  {
13157
13143
  $hoverColor: hoverColor,
@@ -13174,6 +13160,164 @@ var WistiaLogo = ({
13174
13160
  return href !== void 0 ? /* @__PURE__ */ jsx272("a", { href, children: Logo }) : Logo;
13175
13161
  };
13176
13162
  WistiaLogo.displayName = "WistiaLogo";
13163
+
13164
+ // src/components/List/List.tsx
13165
+ import { isNotNil as isNotNil36 } from "@wistia/type-guards";
13166
+ import styled78, { css as css41 } from "styled-components";
13167
+
13168
+ // src/components/List/ListItem.tsx
13169
+ import styled77 from "styled-components";
13170
+ import { isNil as isNil17 } from "@wistia/type-guards";
13171
+ import { jsx as jsx273 } from "react/jsx-runtime";
13172
+ var ListItemComponent = styled77.li`
13173
+ margin-bottom: var(--wui-space-02);
13174
+ `;
13175
+ var ListItem = ({ children }) => {
13176
+ if (isNil17(children)) {
13177
+ return null;
13178
+ }
13179
+ return /* @__PURE__ */ jsx273(ListItemComponent, { children });
13180
+ };
13181
+ ListItem.displayName = "ListItem";
13182
+
13183
+ // src/components/List/List.tsx
13184
+ import { jsx as jsx274, jsxs as jsxs48 } from "react/jsx-runtime";
13185
+ var spacesStyle = css41`
13186
+ overflow: hidden;
13187
+ padding-left: 0;
13188
+ vertical-align: bottom;
13189
+
13190
+ li {
13191
+ display: block;
13192
+ float: left;
13193
+
13194
+ &::after {
13195
+ content: ' ';
13196
+ padding-right: var(--wui-space-03);
13197
+ }
13198
+
13199
+ &:last-child {
13200
+ &::after {
13201
+ content: '' !important;
13202
+ padding-right: 0;
13203
+ }
13204
+ }
13205
+ }
13206
+ `;
13207
+ var commasStyle = css41`
13208
+ ${spacesStyle};
13209
+
13210
+ li {
13211
+ &::after {
13212
+ content: ',' !important;
13213
+ padding-right: var(--wui-space-01);
13214
+ }
13215
+ }
13216
+ `;
13217
+ var slashesStyle = css41`
13218
+ ${spacesStyle};
13219
+
13220
+ li {
13221
+ &::after {
13222
+ content: '/' !important;
13223
+ padding-left: var(--wui-space-01);
13224
+ padding-right: var(--wui-space-01);
13225
+ }
13226
+ }
13227
+ `;
13228
+ var breadcrumbsStyle = css41`
13229
+ ${spacesStyle};
13230
+
13231
+ li {
13232
+ &::after {
13233
+ content: '>' !important;
13234
+ padding-left: var(--wui-space-01);
13235
+ padding-right: var(--wui-space-01);
13236
+ }
13237
+ }
13238
+ `;
13239
+ var unbulletedStyle = css41`
13240
+ list-style: none;
13241
+ padding-left: 0;
13242
+ `;
13243
+ var ListComponent = styled78.ul`
13244
+ list-style-position: outside;
13245
+ margin: 0 0 var(--wui-space-01);
13246
+ padding: 0 0 0 var(--wui-space-04);
13247
+ ${({ variant }) => variant === "unbulleted" && unbulletedStyle};
13248
+ ${({ variant }) => variant === "spaces" && spacesStyle};
13249
+ ${({ variant }) => variant === "commas" && commasStyle};
13250
+ ${({ variant }) => variant === "slashes" && slashesStyle};
13251
+ ${({ variant }) => variant === "breadcrumbs" && breadcrumbsStyle};
13252
+
13253
+ > li:last-child {
13254
+ margin-bottom: 0;
13255
+ }
13256
+
13257
+ ul,
13258
+ ol {
13259
+ margin-top: var(--wui-space-01);
13260
+ }
13261
+
13262
+ /* nested lists should not have bottom margins because their container <li> will have one */
13263
+ li ul,
13264
+ li ol {
13265
+ margin-bottom: 0;
13266
+ }
13267
+ `;
13268
+ var renderListComponent = (listItems, variant, { ...otherProps }) => {
13269
+ const elementType = variant === "ordered" ? "ol" : "ul";
13270
+ return /* @__PURE__ */ jsx274(
13271
+ ListComponent,
13272
+ {
13273
+ as: elementType,
13274
+ variant,
13275
+ ...otherProps,
13276
+ children: listItems
13277
+ }
13278
+ );
13279
+ };
13280
+ var renderListFromArray = (listItems, variant, otherProps) => {
13281
+ let itemCount = 0;
13282
+ const items = listItems.map((listItem, i) => {
13283
+ const item = listItem;
13284
+ const nextItem = listItems[i + 1];
13285
+ const key = `item-${itemCount += 1}`;
13286
+ if (Array.isArray(nextItem)) {
13287
+ return /* @__PURE__ */ jsxs48(ListItem, { children: [
13288
+ item,
13289
+ renderListFromArray(nextItem, variant, otherProps)
13290
+ ] }, key);
13291
+ }
13292
+ if (Array.isArray(item)) {
13293
+ return null;
13294
+ }
13295
+ return /* @__PURE__ */ jsx274(ListItem, { children: item }, key);
13296
+ });
13297
+ return renderListComponent(items, variant, otherProps);
13298
+ };
13299
+ var List = ({
13300
+ children,
13301
+ items,
13302
+ variant,
13303
+ ...otherProps
13304
+ }) => {
13305
+ const listVariant = variant ?? "bullets";
13306
+ if (isNotNil36(children)) {
13307
+ if (Array.isArray(children) && !children.length) {
13308
+ return null;
13309
+ }
13310
+ return renderListComponent(children, listVariant, otherProps);
13311
+ }
13312
+ if (isNotNil36(items)) {
13313
+ if (!items.length) {
13314
+ return null;
13315
+ }
13316
+ return renderListFromArray(items, listVariant, otherProps);
13317
+ }
13318
+ return null;
13319
+ };
13320
+ List.displayName = "List";
13177
13321
  export {
13178
13322
  ActionButton,
13179
13323
  Avatar,
@@ -13216,6 +13360,7 @@ export {
13216
13360
  KeyboardShortcut,
13217
13361
  Label,
13218
13362
  Link,
13363
+ List,
13219
13364
  Menu,
13220
13365
  MenuItem,
13221
13366
  MenuItemDescription,