@wistia/ui 0.15.14-beta.50e89a95.396fb5b → 0.15.14-beta.9bd768c0.e216110

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.15.14-beta.50e89a95.396fb5b
3
+ * @license @wistia/ui v0.15.14-beta.9bd768c0.e216110
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -14328,10 +14328,44 @@ var import_react64 = require("react");
14328
14328
  var import_type_guards45 = require("@wistia/type-guards");
14329
14329
  var import_styled_components82 = __toESM(require("styled-components"));
14330
14330
  var import_jsx_runtime277 = require("react/jsx-runtime");
14331
+ var LARGE_PADDING = "var(--wui-space-02)";
14332
+ var SMALL_PADDING = "var(--wui-space-01)";
14333
+ var getPaddingForVariant = (variant) => {
14334
+ const largePaddingVariants = [
14335
+ "hero",
14336
+ "heading1",
14337
+ "heading2",
14338
+ "heading3",
14339
+ "heading4",
14340
+ "body1",
14341
+ "label1",
14342
+ "body1Mono"
14343
+ ];
14344
+ const smallPaddingVariants = [
14345
+ "heading5",
14346
+ "heading6",
14347
+ "body2",
14348
+ "body3",
14349
+ "body4",
14350
+ "label2",
14351
+ "label3",
14352
+ "label4",
14353
+ "body2Mono",
14354
+ "body3Mono",
14355
+ "body4Mono"
14356
+ ];
14357
+ if (largePaddingVariants.includes(variant)) {
14358
+ return LARGE_PADDING;
14359
+ }
14360
+ if (smallPaddingVariants.includes(variant)) {
14361
+ return SMALL_PADDING;
14362
+ }
14363
+ return SMALL_PADDING;
14364
+ };
14331
14365
  var StyledEditableTextRoot = import_styled_components82.default.div`
14332
14366
  display: contents;
14333
14367
 
14334
- --wui-editable-text-padding: var(--wui-space-01);
14368
+ --wui-editable-text-padding: ${({ $typographicVariant }) => getPaddingForVariant($typographicVariant)};
14335
14369
  --wui-editable-text-border-radius: var(--wui-border-radius-01);
14336
14370
  `;
14337
14371
  var EditableTextContext = (0, import_react64.createContext)(null);
@@ -14429,6 +14463,7 @@ var EditableTextRoot = ({
14429
14463
  return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
14430
14464
  StyledEditableTextRoot,
14431
14465
  {
14466
+ $typographicVariant: typographicVariant,
14432
14467
  "data-testid": "editable-text-root",
14433
14468
  "data-wui-editable-text-root": true,
14434
14469
  "data-wui-editable-text-state": getState(),
@@ -15524,7 +15559,7 @@ Mark.displayName = "Mark_UI";
15524
15559
  var import_react80 = require("react");
15525
15560
  var import_styled_components97 = __toESM(require("styled-components"));
15526
15561
  var import_react_dialog5 = require("@radix-ui/react-dialog");
15527
- var import_type_guards58 = require("@wistia/type-guards");
15562
+ var import_type_guards57 = require("@wistia/type-guards");
15528
15563
 
15529
15564
  // src/components/Modal/ModalHeader.tsx
15530
15565
  var import_styled_components94 = __toESM(require("styled-components"));
@@ -15600,7 +15635,6 @@ var ModalHeader = ({
15600
15635
  var import_react79 = require("react");
15601
15636
  var import_styled_components95 = __toESM(require("styled-components"));
15602
15637
  var import_react_dialog3 = require("@radix-ui/react-dialog");
15603
- var import_type_guards57 = require("@wistia/type-guards");
15604
15638
 
15605
15639
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
15606
15640
  var import_react78 = require("react");
@@ -15738,14 +15772,9 @@ var StyledModalContent = (0, import_styled_components95.default)(import_react_di
15738
15772
  position: fixed;
15739
15773
  top: unset;
15740
15774
  left: unset;
15741
- width: ${({ $width, $maxWidth }) => {
15742
- if ((0, import_type_guards57.isNotNil)($maxWidth)) {
15743
- return "auto";
15744
- }
15745
- return $width ?? DEFAULT_MODAL_WIDTH;
15746
- }};
15775
+ width: ${({ $width }) => $width ?? DEFAULT_MODAL_WIDTH};
15747
15776
  min-width: ${({ $width }) => $width ?? DEFAULT_MODAL_WIDTH};
15748
- max-width: ${({ $maxWidth }) => $maxWidth ?? "var(--wui-modal-max-width)"};
15777
+ max-width: var(--wui-modal-max-width);
15749
15778
  border-radius: var(--wui-border-radius-03);
15750
15779
  animation-duration: var(--wui-motion-duration-03);
15751
15780
  animation-timing-function: var(--wui-motion-ease-out);
@@ -15754,13 +15783,12 @@ var StyledModalContent = (0, import_styled_components95.default)(import_react_di
15754
15783
  }
15755
15784
  `;
15756
15785
  var ModalContent = (0, import_react79.forwardRef)(
15757
- ({ width, positionVariant = "fixed-top", maxWidth, children, ...props }, ref) => {
15786
+ ({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
15758
15787
  useFocusRestore();
15759
15788
  return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
15760
15789
  StyledModalContent,
15761
15790
  {
15762
15791
  ref,
15763
- $maxWidth: maxWidth,
15764
15792
  $positionVariant: positionVariant,
15765
15793
  $width: width,
15766
15794
  "aria-describedby": void 0,
@@ -15830,7 +15858,6 @@ var Modal = (0, import_react80.forwardRef)(
15830
15858
  hideTitle = false,
15831
15859
  initialFocusRef,
15832
15860
  isOpen,
15833
- maxWidth,
15834
15861
  onRequestClose,
15835
15862
  positionVariant = "centered",
15836
15863
  title,
@@ -15841,7 +15868,7 @@ var Modal = (0, import_react80.forwardRef)(
15841
15868
  import_react_dialog5.Root,
15842
15869
  {
15843
15870
  onOpenChange: (open2) => {
15844
- if (!open2 && (0, import_type_guards58.isNotNil)(onRequestClose)) {
15871
+ if (!open2 && (0, import_type_guards57.isNotNil)(onRequestClose)) {
15845
15872
  onRequestClose();
15846
15873
  }
15847
15874
  },
@@ -15852,9 +15879,8 @@ var Modal = (0, import_react80.forwardRef)(
15852
15879
  ModalContent,
15853
15880
  {
15854
15881
  ref,
15855
- maxWidth,
15856
15882
  onOpenAutoFocus: (event) => {
15857
- if ((0, import_type_guards58.isNotNil)(initialFocusRef) && initialFocusRef.current) {
15883
+ if ((0, import_type_guards57.isNotNil)(initialFocusRef) && initialFocusRef.current) {
15858
15884
  event.preventDefault();
15859
15885
  requestAnimationFrame(() => {
15860
15886
  initialFocusRef.current?.focus();
@@ -15866,7 +15892,7 @@ var Modal = (0, import_react80.forwardRef)(
15866
15892
  ...props,
15867
15893
  children: [
15868
15894
  /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(ModalScrollArea, { children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(ModalBody, { children }) }),
15869
- (0, import_type_guards58.isNotNil)(footer) ? /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(ModalFooter, { children: footer }) : null,
15895
+ (0, import_type_guards57.isNotNil)(footer) ? /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(ModalFooter, { children: footer }) : null,
15870
15896
  hideCloseButton && hideTitle ? null : /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
15871
15897
  ModalHeader,
15872
15898
  {
@@ -15912,9 +15938,9 @@ var import_react_popover5 = require("@radix-ui/react-popover");
15912
15938
  var import_styled_components99 = __toESM(require("styled-components"));
15913
15939
 
15914
15940
  // src/private/helpers/getControls/getControlProps.tsx
15915
- var import_type_guards59 = require("@wistia/type-guards");
15941
+ var import_type_guards58 = require("@wistia/type-guards");
15916
15942
  var getControlProps = (isOpen, onOpenChange) => {
15917
- return (0, import_type_guards59.isNotNil)(onOpenChange) && (0, import_type_guards59.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
15943
+ return (0, import_type_guards58.isNotNil)(onOpenChange) && (0, import_type_guards58.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {};
15918
15944
  };
15919
15945
 
15920
15946
  // src/components/Popover/PopoverArrow.tsx
@@ -16070,7 +16096,7 @@ Popover.displayName = "Popover_UI";
16070
16096
  // src/components/ProgressBar/ProgressBar.tsx
16071
16097
  var import_styled_components100 = __toESM(require("styled-components"));
16072
16098
  var import_react_progress = require("@radix-ui/react-progress");
16073
- var import_type_guards60 = require("@wistia/type-guards");
16099
+ var import_type_guards59 = require("@wistia/type-guards");
16074
16100
  var import_jsx_runtime299 = require("react/jsx-runtime");
16075
16101
  var ProgressBarWrapper = import_styled_components100.default.div`
16076
16102
  --progress-bar-height: 8px;
@@ -16126,7 +16152,7 @@ var ProgressBar = ({
16126
16152
  ...props
16127
16153
  }) => {
16128
16154
  return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(ProgressBarWrapper, { children: [
16129
- (0, import_type_guards60.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
16155
+ (0, import_type_guards59.isNotNil)(labelLeft) ? /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(ProgressBarLabel, { children: labelLeft }) : null,
16130
16156
  /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
16131
16157
  StyledProgressBar,
16132
16158
  {
@@ -16144,13 +16170,13 @@ var ProgressBar = ({
16144
16170
  )
16145
16171
  }
16146
16172
  ),
16147
- (0, import_type_guards60.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(ProgressBarLabel, { children: labelRight }) : null
16173
+ (0, import_type_guards59.isNotNil)(labelRight) ? /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(ProgressBarLabel, { children: labelRight }) : null
16148
16174
  ] });
16149
16175
  };
16150
16176
  ProgressBar.displayName = "ProgressBar_UI";
16151
16177
 
16152
16178
  // src/components/Radio/Radio.tsx
16153
- var import_type_guards61 = require("@wistia/type-guards");
16179
+ var import_type_guards60 = require("@wistia/type-guards");
16154
16180
  var import_react81 = require("react");
16155
16181
  var import_styled_components101 = __toESM(require("styled-components"));
16156
16182
  var import_jsx_runtime300 = require("react/jsx-runtime");
@@ -16250,14 +16276,14 @@ var Radio = (0, import_react81.forwardRef)(
16250
16276
  ...props
16251
16277
  }, ref) => {
16252
16278
  const generatedId = (0, import_react81.useId)();
16253
- const computedId = (0, import_type_guards61.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16279
+ const computedId = (0, import_type_guards60.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16254
16280
  const radioGroupContext = useRadioGroup();
16255
16281
  const contextName = radioGroupContext?.name;
16256
16282
  const contextOnChange = radioGroupContext?.onChange;
16257
16283
  const contextValue = radioGroupContext?.value;
16258
16284
  const radioName = name ?? contextName;
16259
16285
  const handleOnChange = onChange ?? contextOnChange;
16260
- const isChecked = (0, import_type_guards61.isNotUndefined)(value) && (0, import_type_guards61.isNotUndefined)(contextValue) ? contextValue === value : checked;
16286
+ const isChecked = (0, import_type_guards60.isNotUndefined)(value) && (0, import_type_guards60.isNotUndefined)(contextValue) ? contextValue === value : checked;
16261
16287
  return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(
16262
16288
  StyledRadioWrapper,
16263
16289
  {
@@ -16304,7 +16330,7 @@ var import_react83 = require("react");
16304
16330
  // src/components/RadioCard/RadioCardRoot.tsx
16305
16331
  var import_react82 = require("react");
16306
16332
  var import_styled_components102 = __toESM(require("styled-components"));
16307
- var import_type_guards62 = require("@wistia/type-guards");
16333
+ var import_type_guards61 = require("@wistia/type-guards");
16308
16334
  var import_jsx_runtime301 = require("react/jsx-runtime");
16309
16335
  var checkedStyles = import_styled_components102.css`
16310
16336
  --wui-radio-card-border-color: var(--wui-color-focus-ring);
@@ -16426,14 +16452,14 @@ var RadioCardRoot = (0, import_react82.forwardRef)(
16426
16452
  ...props
16427
16453
  }, ref) => {
16428
16454
  const generatedId = (0, import_react82.useId)();
16429
- const computedId = (0, import_type_guards62.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16455
+ const computedId = (0, import_type_guards61.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
16430
16456
  const radioGroupContext = useRadioGroup();
16431
16457
  const contextName = radioGroupContext?.name;
16432
16458
  const contextOnChange = radioGroupContext?.onChange;
16433
16459
  const contextValue = radioGroupContext?.value;
16434
16460
  const radioName = name ?? contextName;
16435
16461
  const handleOnChange = onChange ?? contextOnChange;
16436
- const isChecked = (0, import_type_guards62.isNotUndefined)(value) && (0, import_type_guards62.isNotUndefined)(contextValue) ? contextValue === value : checked;
16462
+ const isChecked = (0, import_type_guards61.isNotUndefined)(value) && (0, import_type_guards61.isNotUndefined)(contextValue) ? contextValue === value : checked;
16437
16463
  return /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(
16438
16464
  StyledCard2,
16439
16465
  {
@@ -16465,7 +16491,7 @@ RadioCardRoot.displayName = "RadioCardRoot_UI";
16465
16491
 
16466
16492
  // src/components/RadioCard/RadioCardDefaultLayout.tsx
16467
16493
  var import_styled_components104 = __toESM(require("styled-components"));
16468
- var import_type_guards63 = require("@wistia/type-guards");
16494
+ var import_type_guards62 = require("@wistia/type-guards");
16469
16495
 
16470
16496
  // src/components/RadioCard/RadioCardIndicator.tsx
16471
16497
  var import_styled_components103 = __toESM(require("styled-components"));
@@ -16539,17 +16565,17 @@ var RadioCardDefaultLayout = ({
16539
16565
  showIndicator = true
16540
16566
  }) => {
16541
16567
  return /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(StyledCardContent, { children: [
16542
- showIndicator ? /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(StyledIndicatorContainer, { $hasIcon: (0, import_type_guards63.isNotNil)(icon), children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
16568
+ showIndicator ? /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(StyledIndicatorContainer, { $hasIcon: (0, import_type_guards62.isNotNil)(icon), children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
16543
16569
  /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(Stack, { gap: "space-02", children: [
16544
- (0, import_type_guards63.isNotNil)(icon) && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
16570
+ (0, import_type_guards62.isNotNil)(icon) && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
16545
16571
  /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(
16546
16572
  Stack,
16547
16573
  {
16548
16574
  gap: "space-01",
16549
- style: (0, import_type_guards63.isNotNil)(icon) ? { paddingLeft: 2 } : void 0,
16575
+ style: (0, import_type_guards62.isNotNil)(icon) ? { paddingLeft: 2 } : void 0,
16550
16576
  children: [
16551
- (0, import_type_guards63.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(Text, { variant: "label3", children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)("strong", { children: label }) }),
16552
- (0, import_type_guards63.isNotNil)(description) && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
16577
+ (0, import_type_guards62.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(Text, { variant: "label3", children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)("strong", { children: label }) }),
16578
+ (0, import_type_guards62.isNotNil)(description) && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
16553
16579
  Text,
16554
16580
  {
16555
16581
  prominence: "secondary",
@@ -16732,7 +16758,7 @@ ScrollArea.displayName = "ScrollArea_UI";
16732
16758
  var import_react88 = require("react");
16733
16759
  var import_styled_components108 = __toESM(require("styled-components"));
16734
16760
  var import_react_toggle_group3 = require("@radix-ui/react-toggle-group");
16735
- var import_type_guards65 = require("@wistia/type-guards");
16761
+ var import_type_guards64 = require("@wistia/type-guards");
16736
16762
 
16737
16763
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
16738
16764
  var import_react86 = require("react");
@@ -16769,7 +16795,7 @@ var useSelectedItemStyle = () => {
16769
16795
 
16770
16796
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
16771
16797
  var import_styled_components107 = __toESM(require("styled-components"));
16772
- var import_type_guards64 = require("@wistia/type-guards");
16798
+ var import_type_guards63 = require("@wistia/type-guards");
16773
16799
 
16774
16800
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
16775
16801
  var import_react87 = require("react");
@@ -16803,7 +16829,7 @@ var SelectedItemIndicatorDiv = import_styled_components107.default.div`
16803
16829
  var SelectedItemIndicator = () => {
16804
16830
  const selectedValue = useSegmentedControlValue();
16805
16831
  const { selectedItemIndicatorStyle } = useSelectedItemStyle();
16806
- if (!selectedValue || (0, import_type_guards64.isUndefined)(selectedItemIndicatorStyle)) {
16832
+ if (!selectedValue || (0, import_type_guards63.isUndefined)(selectedItemIndicatorStyle)) {
16807
16833
  return null;
16808
16834
  }
16809
16835
  return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
@@ -16840,7 +16866,7 @@ var SegmentedControl = (0, import_react88.forwardRef)(
16840
16866
  onSelectedValueChange,
16841
16867
  ...props
16842
16868
  }, ref) => {
16843
- if ((0, import_type_guards65.isNil)(children)) {
16869
+ if ((0, import_type_guards64.isNil)(children)) {
16844
16870
  return null;
16845
16871
  }
16846
16872
  return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
@@ -16869,7 +16895,7 @@ SegmentedControl.displayName = "SegmentedControl_UI";
16869
16895
  var import_react89 = require("react");
16870
16896
  var import_styled_components109 = __toESM(require("styled-components"));
16871
16897
  var import_react_toggle_group4 = require("@radix-ui/react-toggle-group");
16872
- var import_type_guards66 = require("@wistia/type-guards");
16898
+ var import_type_guards65 = require("@wistia/type-guards");
16873
16899
  var import_jsx_runtime309 = require("react/jsx-runtime");
16874
16900
  var segmentedControlItemStyles = import_styled_components109.css`
16875
16901
  all: unset; /* ToggleGroupItem is a button element */
@@ -16985,8 +17011,8 @@ var SegmentedControlItem = (0, import_react89.forwardRef)(
16985
17011
  {
16986
17012
  ref: combinedRef,
16987
17013
  ...otherProps,
16988
- $hasLabel: (0, import_type_guards66.isNotNil)(label),
16989
- "aria-label": (0, import_type_guards66.isNotNil)(label) ? void 0 : ariaLabel,
17014
+ $hasLabel: (0, import_type_guards65.isNotNil)(label),
17015
+ "aria-label": (0, import_type_guards65.isNotNil)(label) ? void 0 : ariaLabel,
16990
17016
  disabled,
16991
17017
  onClick: handleClick,
16992
17018
  value,
@@ -17151,7 +17177,7 @@ Select.displayName = "Select_UI";
17151
17177
  var import_react_select2 = require("@radix-ui/react-select");
17152
17178
  var import_react91 = require("react");
17153
17179
  var import_styled_components111 = __toESM(require("styled-components"));
17154
- var import_type_guards67 = require("@wistia/type-guards");
17180
+ var import_type_guards66 = require("@wistia/type-guards");
17155
17181
  var import_jsx_runtime311 = require("react/jsx-runtime");
17156
17182
  var StyledItem = (0, import_styled_components111.default)(import_react_select2.Item)`
17157
17183
  ${getTypographicStyles("label3")}
@@ -17188,7 +17214,7 @@ var SelectOption = (0, import_react91.forwardRef)(
17188
17214
  ref: forwardedRef,
17189
17215
  $checkmarkVerticalAlign: checkmarkVerticalAlign,
17190
17216
  children: [
17191
- (0, import_type_guards67.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { children: [
17217
+ (0, import_type_guards66.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { children: [
17192
17218
  children,
17193
17219
  /* @__PURE__ */ (0, import_jsx_runtime311.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
17194
17220
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_react_select2.ItemText, { children }),
@@ -17230,7 +17256,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
17230
17256
  // src/components/Slider/Slider.tsx
17231
17257
  var import_react_slider2 = require("@radix-ui/react-slider");
17232
17258
  var import_styled_components113 = __toESM(require("styled-components"));
17233
- var import_type_guards68 = require("@wistia/type-guards");
17259
+ var import_type_guards67 = require("@wistia/type-guards");
17234
17260
  var import_jsx_runtime313 = require("react/jsx-runtime");
17235
17261
  var SliderContainer = import_styled_components113.default.div`
17236
17262
  --wui-slider-track-color: var(--wui-gray-6);
@@ -17309,7 +17335,7 @@ var Slider = ({
17309
17335
  "data-testid": dataTestId = "ui-slider",
17310
17336
  ...otherProps
17311
17337
  }) => {
17312
- if (!((0, import_type_guards68.isNonEmptyString)(ariaLabel) || (0, import_type_guards68.isNonEmptyString)(ariaLabelledby))) {
17338
+ if (!((0, import_type_guards67.isNonEmptyString)(ariaLabel) || (0, import_type_guards67.isNonEmptyString)(ariaLabelledby))) {
17313
17339
  throw new Error(
17314
17340
  "UI Slider: Sliders should have an accessible name. Add a label using the aria-label or aria-labelledby prop."
17315
17341
  );
@@ -17471,7 +17497,7 @@ var TableRow = ({ children, ...props }) => {
17471
17497
  // src/components/Tabs/Tabs.tsx
17472
17498
  var import_react_tabs = require("@radix-ui/react-tabs");
17473
17499
  var import_react98 = require("react");
17474
- var import_type_guards69 = require("@wistia/type-guards");
17500
+ var import_type_guards68 = require("@wistia/type-guards");
17475
17501
 
17476
17502
  // src/components/Tabs/useTabsValue.tsx
17477
17503
  var import_react97 = require("react");
@@ -17508,10 +17534,10 @@ var Tabs = ({
17508
17534
  ...props,
17509
17535
  onValueChange
17510
17536
  };
17511
- if ((0, import_type_guards69.isNotNil)(value)) {
17537
+ if ((0, import_type_guards68.isNotNil)(value)) {
17512
17538
  rootProps.value = value;
17513
17539
  }
17514
- if ((0, import_type_guards69.isNotNil)(defaultValue)) {
17540
+ if ((0, import_type_guards68.isNotNil)(defaultValue)) {
17515
17541
  rootProps.defaultValue = defaultValue;
17516
17542
  }
17517
17543
  return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(SelectedItemStyleProvider, { children }) }) });
@@ -17531,7 +17557,7 @@ var import_react_tabs3 = require("@radix-ui/react-tabs");
17531
17557
  var import_styled_components121 = __toESM(require("styled-components"));
17532
17558
 
17533
17559
  // src/components/Tabs/SelectedTabIndicator.tsx
17534
- var import_type_guards70 = require("@wistia/type-guards");
17560
+ var import_type_guards69 = require("@wistia/type-guards");
17535
17561
 
17536
17562
  // src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
17537
17563
  var import_styled_components120 = __toESM(require("styled-components"));
@@ -17546,7 +17572,7 @@ var import_jsx_runtime322 = require("react/jsx-runtime");
17546
17572
  var SelectedTabIndicator = () => {
17547
17573
  const { selectedItemIndicatorStyle } = useSelectedItemStyle();
17548
17574
  const selectedValue = useTabsValue();
17549
- if (selectedValue == null || (0, import_type_guards70.isUndefined)(selectedItemIndicatorStyle)) {
17575
+ if (selectedValue == null || (0, import_type_guards69.isUndefined)(selectedItemIndicatorStyle)) {
17550
17576
  return null;
17551
17577
  }
17552
17578
  return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
@@ -17580,7 +17606,7 @@ TabsList.displayName = "TabsList_UI";
17580
17606
 
17581
17607
  // src/components/Tabs/TabsTrigger.tsx
17582
17608
  var import_react99 = require("react");
17583
- var import_type_guards71 = require("@wistia/type-guards");
17609
+ var import_type_guards70 = require("@wistia/type-guards");
17584
17610
 
17585
17611
  // src/components/Tabs/StyledRadixTabsTrigger.tsx
17586
17612
  var import_styled_components122 = __toESM(require("styled-components"));
@@ -17631,8 +17657,8 @@ var TabsTrigger = (0, import_react99.forwardRef)(
17631
17657
  {
17632
17658
  ...otherProps,
17633
17659
  ref: combinedRef,
17634
- $hasLabel: (0, import_type_guards71.isNotNil)(label),
17635
- "aria-label": (0, import_type_guards71.isNotNil)(label) ? void 0 : ariaLabel,
17660
+ $hasLabel: (0, import_type_guards70.isNotNil)(label),
17661
+ "aria-label": (0, import_type_guards70.isNotNil)(label) ? void 0 : ariaLabel,
17636
17662
  disabled,
17637
17663
  value,
17638
17664
  children: [
@@ -17647,7 +17673,7 @@ TabsTrigger.displayName = "TabsTrigger_UI";
17647
17673
 
17648
17674
  // src/components/Thumbnail/ThumbnailBadge.tsx
17649
17675
  var import_styled_components123 = __toESM(require("styled-components"));
17650
- var import_type_guards72 = require("@wistia/type-guards");
17676
+ var import_type_guards71 = require("@wistia/type-guards");
17651
17677
  var import_jsx_runtime325 = require("react/jsx-runtime");
17652
17678
  var StyledThumbnailBadge = import_styled_components123.default.div`
17653
17679
  align-items: center;
@@ -17676,7 +17702,7 @@ var StyledThumbnailBadge = import_styled_components123.default.div`
17676
17702
  `;
17677
17703
  var ThumbnailBadge = ({ icon, label, ...props }) => {
17678
17704
  return /* @__PURE__ */ (0, import_jsx_runtime325.jsxs)(StyledThumbnailBadge, { ...props, children: [
17679
- (0, import_type_guards72.isNotNil)(icon) && icon,
17705
+ (0, import_type_guards71.isNotNil)(icon) && icon,
17680
17706
  /* @__PURE__ */ (0, import_jsx_runtime325.jsx)("span", { children: label })
17681
17707
  ] });
17682
17708
  };
@@ -17685,10 +17711,10 @@ ThumbnailBadge.displayName = "ThumbnailBadge_UI";
17685
17711
  // src/components/Thumbnail/Thumbnail.tsx
17686
17712
  var import_react100 = require("react");
17687
17713
  var import_styled_components126 = __toESM(require("styled-components"));
17688
- var import_type_guards75 = require("@wistia/type-guards");
17714
+ var import_type_guards74 = require("@wistia/type-guards");
17689
17715
 
17690
17716
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
17691
- var import_type_guards73 = require("@wistia/type-guards");
17717
+ var import_type_guards72 = require("@wistia/type-guards");
17692
17718
  var import_styled_components124 = require("styled-components");
17693
17719
  var gradients = {
17694
17720
  defaultDarkOne: import_styled_components124.css`
@@ -17816,12 +17842,12 @@ var gradients = {
17816
17842
  };
17817
17843
  var gradientMap = Object.keys(gradients);
17818
17844
  var getBackgroundGradient = (gradientName = void 0) => {
17819
- return (0, import_type_guards73.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
17845
+ return (0, import_type_guards72.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
17820
17846
  };
17821
17847
 
17822
17848
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
17823
17849
  var import_styled_components125 = __toESM(require("styled-components"));
17824
- var import_type_guards74 = require("@wistia/type-guards");
17850
+ var import_type_guards73 = require("@wistia/type-guards");
17825
17851
  var import_jsx_runtime326 = require("react/jsx-runtime");
17826
17852
  var ScrubLine = import_styled_components125.default.div`
17827
17853
  position: absolute;
@@ -17915,8 +17941,8 @@ var ThumbnailStoryboardViewer = ({
17915
17941
  );
17916
17942
  const backgroundSize = `${scaledStoryboardWidth}px ${scaledStoryboardHeight}px`;
17917
17943
  const backgroundImage = `url(${storyboardUrl})`;
17918
- const showScrubLine = (0, import_type_guards74.isNotNil)(cursorPosition);
17919
- const scrubLinePosition = (0, import_type_guards74.isNotNil)(cursorPosition) ? `${cursorPosition - 1}px` : "0";
17944
+ const showScrubLine = (0, import_type_guards73.isNotNil)(cursorPosition);
17945
+ const scrubLinePosition = (0, import_type_guards73.isNotNil)(cursorPosition) ? `${cursorPosition - 1}px` : "0";
17920
17946
  const viewerStyles = {
17921
17947
  position: "relative",
17922
17948
  overflow: "hidden",
@@ -17987,10 +18013,10 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
17987
18013
  );
17988
18014
  };
17989
18015
  var StyledThumbnail = import_styled_components126.default.div`
17990
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards75.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
18016
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards74.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
17991
18017
  ${({ $backgroundUrl, $gradientBackground }) => (
17992
18018
  // if we don't have $backgroundUrl show a gradient
17993
- (0, import_type_guards75.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
18019
+ (0, import_type_guards74.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
17994
18020
  )};
17995
18021
  background-position: center center;
17996
18022
  background-size: cover;
@@ -18022,7 +18048,7 @@ var StoryboardRenderer = ({
18022
18048
  frameCount,
18023
18049
  aspectRatio
18024
18050
  } = storyboard;
18025
- const targetWidth = (0, import_type_guards75.isString)(width) ? parseInt(width, 10) : Number(width);
18051
+ const targetWidth = (0, import_type_guards74.isString)(width) ? parseInt(width, 10) : Number(width);
18026
18052
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
18027
18053
  return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18028
18054
  ThumbnailStoryboardViewer,
@@ -18066,10 +18092,10 @@ var Thumbnail = (0, import_react100.forwardRef)(
18066
18092
  const storyboardElementRef = (0, import_react100.useRef)(null);
18067
18093
  const [cursorPosition, setCursorPosition] = (0, import_react100.useState)(null);
18068
18094
  const backgroundUrl = (0, import_react100.useMemo)(
18069
- () => thumbnailImageType === "square" && (0, import_type_guards75.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
18095
+ () => thumbnailImageType === "square" && (0, import_type_guards74.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
18070
18096
  [thumbnailImageType, thumbnailUrl]
18071
18097
  );
18072
- const isScrubbable = (0, import_type_guards75.isNotNil)(storyboard);
18098
+ const isScrubbable = (0, import_type_guards74.isNotNil)(storyboard);
18073
18099
  const trackStoryboardLoadStatus = (0, import_react100.useCallback)(() => {
18074
18100
  if (storyboardElementRef.current || !storyboard) {
18075
18101
  return storyboardElementRef.current;
@@ -18099,7 +18125,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
18099
18125
  setCursorPosition(null);
18100
18126
  }, [isScrubbable]);
18101
18127
  const shouldRenderStoryboard = (0, import_react100.useMemo)(() => {
18102
- if ((0, import_type_guards75.isNil)(storyboard) || (0, import_type_guards75.isUndefined)(height) || (0, import_type_guards75.isEmptyString)(height)) {
18128
+ if ((0, import_type_guards74.isNil)(storyboard) || (0, import_type_guards74.isUndefined)(height) || (0, import_type_guards74.isEmptyString)(height)) {
18103
18129
  return false;
18104
18130
  }
18105
18131
  return isScrubbable && isMouseOver && isStoryboardReady;
@@ -18116,7 +18142,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
18116
18142
  width
18117
18143
  }
18118
18144
  );
18119
- } else if ((0, import_type_guards75.isNotNil)(thumbnailUrl)) {
18145
+ } else if ((0, import_type_guards74.isNotNil)(thumbnailUrl)) {
18120
18146
  thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18121
18147
  ThumbnailImage,
18122
18148
  {
@@ -18141,7 +18167,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
18141
18167
  onMouseOut: handleMouseOut,
18142
18168
  role: "presentation",
18143
18169
  children: [
18144
- (0, import_type_guards75.isNotNil)(children) ? children : null,
18170
+ (0, import_type_guards74.isNotNil)(children) ? children : null,
18145
18171
  thumbnailContent
18146
18172
  ]
18147
18173
  }
@@ -18153,7 +18179,7 @@ Thumbnail.displayName = "Thumbnail_UI";
18153
18179
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
18154
18180
  var import_react101 = __toESM(require("react"));
18155
18181
  var import_styled_components127 = __toESM(require("styled-components"));
18156
- var import_type_guards76 = require("@wistia/type-guards");
18182
+ var import_type_guards75 = require("@wistia/type-guards");
18157
18183
  var import_jsx_runtime328 = (
18158
18184
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
18159
18185
  require("react/jsx-runtime")
@@ -18233,7 +18259,7 @@ var ThumbnailCollage = ({
18233
18259
  }) => {
18234
18260
  const thumbnailArray = import_react101.default.Children.toArray(children);
18235
18261
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
18236
- const thumbnails = (0, import_type_guards76.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
18262
+ const thumbnails = (0, import_type_guards75.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
18237
18263
  return import_react101.default.cloneElement(child, {
18238
18264
  ...child.props,
18239
18265
  children: void 0
@@ -18261,7 +18287,7 @@ var ThumbnailCollage = ({
18261
18287
 
18262
18288
  // src/components/WistiaLogo/WistiaLogo.tsx
18263
18289
  var import_styled_components128 = __toESM(require("styled-components"));
18264
- var import_type_guards77 = require("@wistia/type-guards");
18290
+ var import_type_guards76 = require("@wistia/type-guards");
18265
18291
  var import_jsx_runtime329 = require("react/jsx-runtime");
18266
18292
  var renderBrandmark = (brandmarkColor, iconOnly) => {
18267
18293
  if (iconOnly) {
@@ -18374,7 +18400,7 @@ var WistiaLogo = ({
18374
18400
  ...props,
18375
18401
  children: [
18376
18402
  /* @__PURE__ */ (0, import_jsx_runtime329.jsx)("title", { children: title }),
18377
- (0, import_type_guards77.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime329.jsx)("desc", { children: description }) : null,
18403
+ (0, import_type_guards76.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime329.jsx)("desc", { children: description }) : null,
18378
18404
  renderBrandmark(brandmarkColor, iconOnly),
18379
18405
  renderLogotype(logotypeColor, iconOnly)
18380
18406
  ]
@@ -18386,7 +18412,7 @@ WistiaLogo.displayName = "WistiaLogo_UI";
18386
18412
 
18387
18413
  // src/components/SplitButton/SplitButton.tsx
18388
18414
  var import_styled_components129 = __toESM(require("styled-components"));
18389
- var import_type_guards78 = require("@wistia/type-guards");
18415
+ var import_type_guards77 = require("@wistia/type-guards");
18390
18416
  var import_react102 = require("react");
18391
18417
  var import_jsx_runtime330 = require("react/jsx-runtime");
18392
18418
  var StyledSplitButton = import_styled_components129.default.span`
@@ -18433,7 +18459,7 @@ var SplitButton = ({
18433
18459
  children
18434
18460
  }
18435
18461
  ),
18436
- (0, import_type_guards78.isNotNil)(menuItems) && /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
18462
+ (0, import_type_guards77.isNotNil)(menuItems) && /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
18437
18463
  Menu,
18438
18464
  {
18439
18465
  ...menuProps,
@@ -18452,7 +18478,7 @@ var SplitButton = ({
18452
18478
  children: menuItems
18453
18479
  }
18454
18480
  ),
18455
- (0, import_type_guards78.isNotNil)(secondaryAction) && (0, import_react102.cloneElement)(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
18481
+ (0, import_type_guards77.isNotNil)(secondaryAction) && (0, import_react102.cloneElement)(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
18456
18482
  ] });
18457
18483
  };
18458
18484
  SplitButton.displayName = "SplitButton_UI";