@wistia/ui 0.18.10-beta.85f50c74.84b332c → 0.18.10-beta.8a03a833.0d3d223

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.18.10-beta.85f50c74.84b332c
3
+ * @license @wistia/ui v0.18.10-beta.8a03a833.0d3d223
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2807,26 +2807,11 @@ var useForceUpdate = () => {
2807
2807
  import { useState as useState6 } from "react";
2808
2808
  var useIsHovered = () => {
2809
2809
  const [isHovered, setIsHovered] = useState6(false);
2810
- const onFocus = (event) => {
2811
- if (event.target !== event.currentTarget) return;
2812
- setIsHovered(true);
2813
- };
2814
- const onMouseEnter = (event) => {
2815
- if (event.target !== event.currentTarget) return;
2816
- setIsHovered(true);
2817
- };
2818
- const onMouseMove = (event) => {
2819
- if (event.target !== event.currentTarget) return;
2820
- setIsHovered(true);
2821
- };
2822
- const onBlur = (event) => {
2823
- if (event.target !== event.currentTarget) return;
2824
- setIsHovered(false);
2825
- };
2826
- const onMouseLeave = (event) => {
2827
- if (event.target !== event.currentTarget) return;
2828
- setIsHovered(false);
2829
- };
2810
+ const onFocus = () => setIsHovered(true);
2811
+ const onMouseEnter = () => setIsHovered(true);
2812
+ const onMouseMove = () => setIsHovered(true);
2813
+ const onBlur = () => setIsHovered(false);
2814
+ const onMouseLeave = () => setIsHovered(false);
2830
2815
  const hoverProps = {
2831
2816
  onFocus,
2832
2817
  onMouseEnter,
@@ -14992,23 +14977,11 @@ var FormErrorSummary = ({ description }) => {
14992
14977
 
14993
14978
  // src/components/FormField/FormField.tsx
14994
14979
  import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
14995
- import { styled as styled67, css as css36 } from "styled-components";
14980
+ import { styled as styled67 } from "styled-components";
14996
14981
  import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
14997
- import { jsx as jsx288, jsxs as jsxs49 } from "react/jsx-runtime";
14998
- var inlineErrorStyles = css36`
14999
- grid-template-rows: 1fr auto;
15000
- grid-template-areas: 'label-description input' '. error';
15001
- `;
15002
- var inlineBaseGridAreaStyles = css36`
15003
- grid-template-rows: 1fr;
15004
- grid-template-areas: 'label-description input';
15005
- `;
15006
- var blockGridErrorStyles = css36`
15007
- grid-template-rows: auto 1fr auto;
15008
- grid-template-areas: 'label-description' 'input' 'error';
15009
- `;
14982
+ import { Fragment as Fragment9, jsx as jsx288, jsxs as jsxs49 } from "react/jsx-runtime";
15010
14983
  var StyledFormField = styled67.div`
15011
- --form-field-spacing: var(--wui-space-02);
14984
+ --form-field-spacing: var(--wui-space-01);
15012
14985
  --form-field-spacing-inline: var(--wui-space-02);
15013
14986
  --form-field-error-color: var(--wui-color-text-secondary-error);
15014
14987
 
@@ -15022,28 +14995,21 @@ var StyledFormField = styled67.div`
15022
14995
  &[data-label-position='inline-compact'] {
15023
14996
  gap: var(--form-field-spacing-inline);
15024
14997
  grid-template-columns: auto 1fr;
15025
- ${inlineBaseGridAreaStyles}
15026
- ${({ $hasError }) => $hasError && inlineErrorStyles}
14998
+ grid-template-rows: 1fr auto;
15027
14999
  }
15028
15000
 
15029
15001
  &[data-label-position='inline'] {
15030
15002
  gap: var(--form-field-spacing-inline);
15031
15003
  grid-template-columns: minmax(auto, 1fr) 1fr;
15032
- ${inlineBaseGridAreaStyles}
15033
- ${({ $hasError }) => $hasError && inlineErrorStyles}
15004
+ grid-template-rows: 1fr auto;
15034
15005
  }
15035
15006
 
15036
15007
  &[data-label-position='block'] {
15037
15008
  gap: var(--form-field-spacing);
15038
15009
  grid-template-columns: 1fr;
15039
- grid-template-rows: auto 1fr;
15040
- grid-template-areas: 'label-description' 'input';
15041
- ${({ $hasError }) => $hasError && blockGridErrorStyles}
15010
+ grid-template-rows: 1fr;
15042
15011
  }
15043
15012
  `;
15044
- var ErrorText = styled67(Text)`
15045
- grid-area: error;
15046
- `;
15047
15013
  var StyledErrorList = styled67.ul`
15048
15014
  margin: 0;
15049
15015
  padding: 0;
@@ -15051,19 +15017,17 @@ var StyledErrorList = styled67.ul`
15051
15017
  display: flex;
15052
15018
  flex-direction: column;
15053
15019
  gap: var(--wui-space-01);
15054
- grid-area: error;
15055
15020
  `;
15056
15021
  var ErrorMessages = ({ errors, id }) => {
15057
15022
  const isErrorArray = isArray4(errors);
15058
15023
  const isMultipleErrors = isErrorArray && errors.length > 1;
15059
15024
  if (!isErrorArray) {
15060
15025
  return /* @__PURE__ */ jsx288(
15061
- ErrorText,
15026
+ Text,
15062
15027
  {
15063
15028
  colorScheme: "error",
15064
15029
  id,
15065
15030
  prominence: "secondary",
15066
- style: { gridArea: "error" },
15067
15031
  variant: "label4",
15068
15032
  children: errors
15069
15033
  },
@@ -15072,12 +15036,11 @@ var ErrorMessages = ({ errors, id }) => {
15072
15036
  }
15073
15037
  if (!isMultipleErrors) {
15074
15038
  return /* @__PURE__ */ jsx288(
15075
- ErrorText,
15039
+ Text,
15076
15040
  {
15077
15041
  colorScheme: "error",
15078
15042
  id,
15079
15043
  prominence: "secondary",
15080
- style: { gridArea: "error" },
15081
15044
  variant: "label4",
15082
15045
  children: errors[0]
15083
15046
  },
@@ -15118,16 +15081,12 @@ var FormField = ({
15118
15081
  const descriptionId = `${computedId}-description`;
15119
15082
  const errorId = `${computedId}-error`;
15120
15083
  const ariaDescribedby = [descriptionId, errorId].filter(Boolean).join(" ") || void 0;
15121
- const hasDescription = isNotNil28(description);
15122
- const hasError = isNotNil28(computedError);
15123
- const shouldRenderLabelDescriptionWrapper = !isIntegratedLabel || hasDescription;
15124
15084
  let childProps = {
15125
15085
  name,
15126
15086
  id: computedId,
15127
15087
  label: isIntegratedLabel ? label : void 0,
15128
15088
  "aria-describedby": ariaDescribedby,
15129
- "aria-invalid": hasError,
15130
- style: { gridArea: "input" },
15089
+ "aria-invalid": isNotNil28(computedError),
15131
15090
  ...props
15132
15091
  };
15133
15092
  if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
@@ -15157,38 +15116,28 @@ var FormField = ({
15157
15116
  StyledFormField,
15158
15117
  {
15159
15118
  ...props,
15160
- $hasError: hasError,
15161
15119
  "data-label-position": labelPosition ?? formState.labelPosition,
15162
15120
  children: [
15163
- shouldRenderLabelDescriptionWrapper ? /* @__PURE__ */ jsxs49(
15164
- Stack,
15121
+ !isIntegratedLabel && /* @__PURE__ */ jsx288(
15122
+ Label,
15165
15123
  {
15166
- direction: "vertical",
15167
- gap: "space-01",
15168
- style: {
15169
- gridArea: "label-description"
15170
- },
15171
- children: [
15172
- !isIntegratedLabel && /* @__PURE__ */ jsx288(
15173
- Label,
15174
- {
15175
- htmlFor: computedId,
15176
- required,
15177
- children: label
15178
- }
15179
- ),
15180
- hasDescription ? /* @__PURE__ */ jsx288(FormControlLabelDescription, { id: descriptionId, children: description }) : null
15181
- ]
15124
+ htmlFor: computedId,
15125
+ required,
15126
+ children: label
15182
15127
  }
15183
- ) : null,
15128
+ ),
15129
+ isNotNil28(description) ? /* @__PURE__ */ jsx288(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
15184
15130
  cloneElement8(children, childProps),
15185
- hasError ? /* @__PURE__ */ jsx288(
15186
- ErrorMessages,
15187
- {
15188
- errors: computedError,
15189
- id: errorId
15190
- }
15191
- ) : null
15131
+ isNotNil28(computedError) ? /* @__PURE__ */ jsxs49(Fragment9, { children: [
15132
+ /* @__PURE__ */ jsx288("div", {}),
15133
+ /* @__PURE__ */ jsx288(
15134
+ ErrorMessages,
15135
+ {
15136
+ errors: computedError,
15137
+ id: errorId
15138
+ }
15139
+ )
15140
+ ] }) : null
15192
15141
  ]
15193
15142
  }
15194
15143
  );
@@ -15224,24 +15173,24 @@ RadioGroup.displayName = "RadioGroup_UI";
15224
15173
 
15225
15174
  // src/components/Grid/Grid.tsx
15226
15175
  import { forwardRef as forwardRef22 } from "react";
15227
- import { styled as styled68, css as css37 } from "styled-components";
15176
+ import { styled as styled68, css as css36 } from "styled-components";
15228
15177
  import { isRecord as isRecord5 } from "@wistia/type-guards";
15229
15178
  import { jsx as jsx290 } from "react/jsx-runtime";
15230
15179
  var DEFAULT_ELEMENT5 = "div";
15231
15180
  var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
15232
15181
  if (minChildWidth === "auto" && maxColumns === "auto") {
15233
- return css37`
15182
+ return css36`
15234
15183
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
15235
15184
  `;
15236
15185
  }
15237
15186
  const gridMode = expandItems ? "auto-fit" : "auto-fill";
15238
15187
  const minChildWidthValue = minChildWidth === "auto" ? 0 : minChildWidth;
15239
15188
  if (maxColumns === "auto") {
15240
- return css37`
15189
+ return css36`
15241
15190
  grid-template-columns: repeat(${gridMode}, minmax(${minChildWidthValue}px, 1fr));
15242
15191
  `;
15243
15192
  }
15244
- return css37`
15193
+ return css36`
15245
15194
  /* Adapted from https://9elements.com/blog/building-a-rock-solid-auto-grid/ */
15246
15195
  --wui-grid-total-column-gap-width: calc(${maxColumns - 1} * var(--wui-grid-column-gap));
15247
15196
  --wui-grid-max-column-width: calc(
@@ -15525,7 +15474,7 @@ KeyboardShortcut.displayName = "KeyboardShortcut_UI";
15525
15474
 
15526
15475
  // src/components/List/List.tsx
15527
15476
  import { isNotNil as isNotNil30 } from "@wistia/type-guards";
15528
- import { styled as styled73, css as css38 } from "styled-components";
15477
+ import { styled as styled73, css as css37 } from "styled-components";
15529
15478
 
15530
15479
  // src/components/List/ListItem.tsx
15531
15480
  import { styled as styled72 } from "styled-components";
@@ -15544,7 +15493,7 @@ ListItem.displayName = "ListItem_UI";
15544
15493
 
15545
15494
  // src/components/List/List.tsx
15546
15495
  import { jsx as jsx295, jsxs as jsxs51 } from "react/jsx-runtime";
15547
- var spacesStyle = css38`
15496
+ var spacesStyle = css37`
15548
15497
  overflow: hidden;
15549
15498
  padding-left: 0;
15550
15499
  vertical-align: bottom;
@@ -15566,7 +15515,7 @@ var spacesStyle = css38`
15566
15515
  }
15567
15516
  }
15568
15517
  `;
15569
- var commasStyle = css38`
15518
+ var commasStyle = css37`
15570
15519
  ${spacesStyle};
15571
15520
 
15572
15521
  li {
@@ -15576,7 +15525,7 @@ var commasStyle = css38`
15576
15525
  }
15577
15526
  }
15578
15527
  `;
15579
- var slashesStyle = css38`
15528
+ var slashesStyle = css37`
15580
15529
  ${spacesStyle};
15581
15530
 
15582
15531
  li {
@@ -15587,7 +15536,7 @@ var slashesStyle = css38`
15587
15536
  }
15588
15537
  }
15589
15538
  `;
15590
- var breadcrumbsStyle = css38`
15539
+ var breadcrumbsStyle = css37`
15591
15540
  ${spacesStyle};
15592
15541
 
15593
15542
  li {
@@ -15598,7 +15547,7 @@ var breadcrumbsStyle = css38`
15598
15547
  }
15599
15548
  }
15600
15549
  `;
15601
- var unbulletedStyle = css38`
15550
+ var unbulletedStyle = css37`
15602
15551
  list-style: none;
15603
15552
  padding-left: 0;
15604
15553
  `;
@@ -15780,7 +15729,7 @@ var ModalHeader = ({
15780
15729
 
15781
15730
  // src/components/Modal/ModalContent.tsx
15782
15731
  import { forwardRef as forwardRef25 } from "react";
15783
- import { styled as styled77, css as css39, keyframes as keyframes4 } from "styled-components";
15732
+ import { styled as styled77, css as css38, keyframes as keyframes4 } from "styled-components";
15784
15733
  import { Content as DialogContent } from "@radix-ui/react-dialog";
15785
15734
 
15786
15735
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
@@ -15826,7 +15775,7 @@ var modalExit = keyframes4`
15826
15775
  transform: translateX(-50%) translateY(calc(var(--wui-modal-translate-y) + 24px));
15827
15776
  }
15828
15777
  `;
15829
- var centeredModalStyles = css39`
15778
+ var centeredModalStyles = css38`
15830
15779
  --wui-modal-screen-offset: var(--wui-space-05);
15831
15780
  --wui-modal-translate-y: -50%;
15832
15781
 
@@ -15842,7 +15791,7 @@ var centeredModalStyles = css39`
15842
15791
  animation: ${modalExit} var(--wui-motion-duration-03) var(--wui-motion-ease-out);
15843
15792
  }
15844
15793
  `;
15845
- var fixedTopModalStyles = css39`
15794
+ var fixedTopModalStyles = css38`
15846
15795
  --wui-modal-screen-offset-top: 15vh;
15847
15796
  --wui-modal-screen-offset-bottom: 5vh;
15848
15797
  --wui-modal-translate-y: 0%;
@@ -15883,7 +15832,7 @@ var slideOutRight = keyframes4`
15883
15832
  transform: translateX(100%);
15884
15833
  }
15885
15834
  `;
15886
- var rightSidePanelModalStyles = css39`
15835
+ var rightSidePanelModalStyles = css38`
15887
15836
  --wui-modal-screen-offset: var(--wui-space-05);
15888
15837
 
15889
15838
  height: calc(100vh - var(--wui-modal-screen-offset) * 2);
@@ -16081,7 +16030,7 @@ ModalCallout.displayName = "ModalCallout_UI";
16081
16030
 
16082
16031
  // src/components/Popover/Popover.tsx
16083
16032
  import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
16084
- import { styled as styled81, css as css41 } from "styled-components";
16033
+ import { styled as styled81, css as css40 } from "styled-components";
16085
16034
 
16086
16035
  // src/private/helpers/getControls/getControlProps.tsx
16087
16036
  import { isNotNil as isNotNil33 } from "@wistia/type-guards";
@@ -16091,7 +16040,7 @@ var getControlProps = (isOpen, onOpenChange) => {
16091
16040
 
16092
16041
  // src/components/Popover/PopoverArrow.tsx
16093
16042
  import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
16094
- import { styled as styled80, css as css40, keyframes as keyframes6 } from "styled-components";
16043
+ import { styled as styled80, css as css39, keyframes as keyframes6 } from "styled-components";
16095
16044
  import { jsx as jsx302, jsxs as jsxs55 } from "react/jsx-runtime";
16096
16045
  var StyledPath = styled80.path`
16097
16046
  fill: var(--wui-color-border-secondary);
@@ -16125,7 +16074,7 @@ var StyledCircle = styled80.circle`
16125
16074
  }
16126
16075
 
16127
16076
  @media (prefers-reduced-motion: no-preference) {
16128
- ${({ $isAnimated }) => $isAnimated && css40`
16077
+ ${({ $isAnimated }) => $isAnimated && css39`
16129
16078
  animation-name: ${circleAnimation};
16130
16079
  `}
16131
16080
  }
@@ -16174,7 +16123,7 @@ import { jsx as jsx303, jsxs as jsxs56 } from "react/jsx-runtime";
16174
16123
  var StyledContent2 = styled81(Content2)`
16175
16124
  z-index: var(--wui-zindex-popover);
16176
16125
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
16177
- ${({ $unstyled }) => !$unstyled && css41`
16126
+ ${({ $unstyled }) => !$unstyled && css40`
16178
16127
  border-radius: var(--wui-border-radius-02);
16179
16128
  padding: var(--wui-space-04);
16180
16129
  max-width: var(--wui-popover-max-width, 320px);
@@ -16324,17 +16273,17 @@ ProgressBar.displayName = "ProgressBar_UI";
16324
16273
  // src/components/Radio/Radio.tsx
16325
16274
  import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
16326
16275
  import { forwardRef as forwardRef27, useId as useId5 } from "react";
16327
- import { styled as styled83, css as css42 } from "styled-components";
16276
+ import { styled as styled83, css as css41 } from "styled-components";
16328
16277
  import { jsx as jsx305, jsxs as jsxs58 } from "react/jsx-runtime";
16329
- var sizeSmall2 = css42`
16278
+ var sizeSmall2 = css41`
16330
16279
  --wui-radio-size: 14px;
16331
16280
  --wui-radio-icon-size: 7px;
16332
16281
  `;
16333
- var sizeMedium2 = css42`
16282
+ var sizeMedium2 = css41`
16334
16283
  --wui-radio-size: 16px;
16335
16284
  --wui-radio-icon-size: 8px;
16336
16285
  `;
16337
- var sizeLarge2 = css42`
16286
+ var sizeLarge2 = css41`
16338
16287
  --wui-radio-size: 20px;
16339
16288
  --wui-radio-icon-size: 10px;
16340
16289
  `;
@@ -16475,17 +16424,17 @@ import { forwardRef as forwardRef29 } from "react";
16475
16424
 
16476
16425
  // src/components/RadioCard/RadioCardRoot.tsx
16477
16426
  import { forwardRef as forwardRef28, useId as useId6 } from "react";
16478
- import { styled as styled84, css as css43 } from "styled-components";
16427
+ import { styled as styled84, css as css42 } from "styled-components";
16479
16428
  import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
16480
16429
  import { jsx as jsx306, jsxs as jsxs59 } from "react/jsx-runtime";
16481
- var checkedStyles = css43`
16430
+ var checkedStyles = css42`
16482
16431
  --wui-radio-card-border-color: var(--wui-color-focus-ring);
16483
16432
  --wui-color-icon: var(--wui-color-icon-selected);
16484
16433
  --wui-radio-card-background-color: var(--wui-color-bg-surface-info);
16485
16434
  --wui-color-text: var(--wui-color-text-info);
16486
16435
  --wui-color-text-secondary: var(--wui-color-text-info);
16487
16436
  `;
16488
- var disabledStyles = css43`
16437
+ var disabledStyles = css42`
16489
16438
  --wui-radio-card-border-color: var(--wui-color-border-disabled);
16490
16439
  --wui-radio-card-background-color: var(--wui-color-bg-surface-disabled);
16491
16440
  --wui-radio-card-cursor: not-allowed;
@@ -16493,10 +16442,10 @@ var disabledStyles = css43`
16493
16442
  --wui-color-text: var(--wui-color-text-disabled);
16494
16443
  --wui-color-text-secondary: var(--wui-color-text-disabled);
16495
16444
  `;
16496
- var focusStyles = css43`
16445
+ var focusStyles = css42`
16497
16446
  outline: 2px solid var(--wui-color-focus-ring);
16498
16447
  `;
16499
- var imageCoverStyles = css43`
16448
+ var imageCoverStyles = css42`
16500
16449
  --wui-radio-card-image-inset: 0px;
16501
16450
  --wui-radio-card-border-width: 0px;
16502
16451
  --wui-inset-shadow-width: 1px;
@@ -16902,7 +16851,7 @@ ScrollArea.displayName = "ScrollArea_UI";
16902
16851
 
16903
16852
  // src/components/SegmentedControl/SegmentedControl.tsx
16904
16853
  import { forwardRef as forwardRef32 } from "react";
16905
- import { styled as styled90, css as css45 } from "styled-components";
16854
+ import { styled as styled90, css as css44 } from "styled-components";
16906
16855
  import { Root as ToggleGroupRoot2 } from "@radix-ui/react-toggle-group";
16907
16856
  import { isNil as isNil18 } from "@wistia/type-guards";
16908
16857
 
@@ -16940,7 +16889,7 @@ var useSelectedItemStyle = () => {
16940
16889
  };
16941
16890
 
16942
16891
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
16943
- import { styled as styled89, css as css44 } from "styled-components";
16892
+ import { styled as styled89, css as css43 } from "styled-components";
16944
16893
  import { isUndefined as isUndefined5 } from "@wistia/type-guards";
16945
16894
 
16946
16895
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
@@ -16957,7 +16906,7 @@ var useSegmentedControlValue = () => {
16957
16906
 
16958
16907
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
16959
16908
  import { jsx as jsx312 } from "react/jsx-runtime";
16960
- var selectedItemIndicatorStyles = css44`
16909
+ var selectedItemIndicatorStyles = css43`
16961
16910
  background-color: var(--wui-color-bg-fill-white);
16962
16911
  border-radius: var(--wui-border-radius-rounded);
16963
16912
  box-shadow: var(--wui-elevation-01);
@@ -16989,7 +16938,7 @@ var SelectedItemIndicator = () => {
16989
16938
 
16990
16939
  // src/components/SegmentedControl/SegmentedControl.tsx
16991
16940
  import { jsx as jsx313, jsxs as jsxs62 } from "react/jsx-runtime";
16992
- var segmentedControlStyles = css45`
16941
+ var segmentedControlStyles = css44`
16993
16942
  display: inline-flex;
16994
16943
  background-color: var(--wui-color-bg-surface-secondary);
16995
16944
  border-radius: var(--wui-border-radius-rounded);
@@ -17039,11 +16988,11 @@ SegmentedControl.displayName = "SegmentedControl_UI";
17039
16988
 
17040
16989
  // src/components/SegmentedControl/SegmentedControlItem.tsx
17041
16990
  import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
17042
- import { styled as styled91, css as css46 } from "styled-components";
16991
+ import { styled as styled91, css as css45 } from "styled-components";
17043
16992
  import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
17044
16993
  import { isNotNil as isNotNil36 } from "@wistia/type-guards";
17045
16994
  import { jsxs as jsxs63 } from "react/jsx-runtime";
17046
- var segmentedControlItemStyles = css46`
16995
+ var segmentedControlItemStyles = css45`
17047
16996
  all: unset; /* ToggleGroupItem is a button element */
17048
16997
  align-items: center;
17049
16998
  border-radius: var(--wui-border-radius-rounded);
@@ -17184,7 +17133,7 @@ import {
17184
17133
  ScrollDownButton
17185
17134
  } from "@radix-ui/react-select";
17186
17135
  import { forwardRef as forwardRef34 } from "react";
17187
- import { styled as styled92, css as css47 } from "styled-components";
17136
+ import { styled as styled92, css as css46 } from "styled-components";
17188
17137
  import { jsx as jsx314, jsxs as jsxs64 } from "react/jsx-runtime";
17189
17138
  var StyledTrigger2 = styled92(Trigger3)`
17190
17139
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -17255,7 +17204,7 @@ var StyledContent3 = styled92(Content3)`
17255
17204
  margin: var(--wui-space-02) 0;
17256
17205
  }
17257
17206
  `;
17258
- var scrollButtonStyles = css47`
17207
+ var scrollButtonStyles = css46`
17259
17208
  align-items: center;
17260
17209
  display: flex;
17261
17210
  justify-content: center;
@@ -17541,25 +17490,25 @@ var Slider = ({
17541
17490
  Slider.displayName = "Slider_UI";
17542
17491
 
17543
17492
  // src/components/Table/Table.tsx
17544
- import { styled as styled96, css as css48 } from "styled-components";
17493
+ import { styled as styled96, css as css47 } from "styled-components";
17545
17494
  import { jsx as jsx318 } from "react/jsx-runtime";
17546
17495
  var StyledTable = styled96.table`
17547
17496
  width: 100%;
17548
17497
  border-collapse: collapse;
17549
17498
 
17550
- ${({ $divided }) => $divided && css48`
17499
+ ${({ $divided }) => $divided && css47`
17551
17500
  tr {
17552
17501
  border-bottom: 1px solid var(--wui-color-border);
17553
17502
  }
17554
17503
  `}
17555
17504
 
17556
- ${({ $striped }) => $striped && css48`
17505
+ ${({ $striped }) => $striped && css47`
17557
17506
  tbody tr:nth-child(even) {
17558
17507
  background-color: var(--wui-color-bg-surface-secondary);
17559
17508
  }
17560
17509
  `}
17561
17510
 
17562
- ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css48`
17511
+ ${({ $visuallyHiddenHeader }) => $visuallyHiddenHeader && css47`
17563
17512
  thead {
17564
17513
  ${visuallyHiddenStyle}
17565
17514
  }
@@ -17585,7 +17534,6 @@ var Table = ({
17585
17534
  };
17586
17535
 
17587
17536
  // src/components/Table/TableBody.tsx
17588
- import "react";
17589
17537
  import { styled as styled97 } from "styled-components";
17590
17538
 
17591
17539
  // src/components/Table/TableSectionContext.ts
@@ -17601,9 +17549,9 @@ var TableBody = ({ children, ...props }) => {
17601
17549
 
17602
17550
  // src/components/Table/TableCell.tsx
17603
17551
  import { useContext as useContext17 } from "react";
17604
- import { styled as styled98, css as css49 } from "styled-components";
17552
+ import { styled as styled98, css as css48 } from "styled-components";
17605
17553
  import { jsx as jsx320 } from "react/jsx-runtime";
17606
- var sharedStyles = css49`
17554
+ var sharedStyles = css48`
17607
17555
  color: var(--wui-color-text);
17608
17556
  padding: var(--wui-space-02);
17609
17557
  text-align: left;
@@ -17629,7 +17577,6 @@ var TableCell = ({ children, ...props }) => {
17629
17577
  };
17630
17578
 
17631
17579
  // src/components/Table/TableFoot.tsx
17632
- import "react";
17633
17580
  import { styled as styled99 } from "styled-components";
17634
17581
  import { jsx as jsx321 } from "react/jsx-runtime";
17635
17582
  var StyledTableFoot = styled99.tfoot``;
@@ -17638,7 +17585,6 @@ var TableFoot = ({ children, ...props }) => {
17638
17585
  };
17639
17586
 
17640
17587
  // src/components/Table/TableHead.tsx
17641
- import "react";
17642
17588
  import { styled as styled100 } from "styled-components";
17643
17589
  import { jsx as jsx322 } from "react/jsx-runtime";
17644
17590
  var StyledThead = styled100.thead``;
@@ -17882,9 +17828,9 @@ import {
17882
17828
 
17883
17829
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
17884
17830
  import { isNotNil as isNotNil41 } from "@wistia/type-guards";
17885
- import { css as css50 } from "styled-components";
17831
+ import { css as css49 } from "styled-components";
17886
17832
  var gradients = {
17887
- defaultDarkOne: css50`
17833
+ defaultDarkOne: css49`
17888
17834
  background-color: #222d66;
17889
17835
  background-image:
17890
17836
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -17892,7 +17838,7 @@ var gradients = {
17892
17838
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
17893
17839
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
17894
17840
  `,
17895
- defaultDarkTwo: css50`
17841
+ defaultDarkTwo: css49`
17896
17842
  background-color: #222d66;
17897
17843
  background-image:
17898
17844
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -17900,7 +17846,7 @@ var gradients = {
17900
17846
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
17901
17847
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
17902
17848
  `,
17903
- defaultLightOne: css50`
17849
+ defaultLightOne: css49`
17904
17850
  background-color: #ccd5ff;
17905
17851
  background-image:
17906
17852
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -17908,13 +17854,13 @@ var gradients = {
17908
17854
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
17909
17855
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
17910
17856
  `,
17911
- defaultLightTwo: css50`
17857
+ defaultLightTwo: css49`
17912
17858
  background-color: #ccd5ff;
17913
17859
  background-image:
17914
17860
  radial-gradient(ellipse at top, #ccd5ff, transparent),
17915
17861
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
17916
17862
  `,
17917
- defaultMidOne: css50`
17863
+ defaultMidOne: css49`
17918
17864
  background-color: #6b84ff;
17919
17865
  background-image:
17920
17866
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -17922,13 +17868,13 @@ var gradients = {
17922
17868
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
17923
17869
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
17924
17870
  `,
17925
- defaultMidTwo: css50`
17871
+ defaultMidTwo: css49`
17926
17872
  background-color: #6b84ff;
17927
17873
  background-image:
17928
17874
  radial-gradient(ellipse at top, #2949e5, transparent),
17929
17875
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
17930
17876
  `,
17931
- green: css50`
17877
+ green: css49`
17932
17878
  background-color: #fafffa;
17933
17879
  background-image:
17934
17880
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -17936,7 +17882,7 @@ var gradients = {
17936
17882
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
17937
17883
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
17938
17884
  `,
17939
- greenWithPop: css50`
17885
+ greenWithPop: css49`
17940
17886
  background-color: #fafffa;
17941
17887
  background-image:
17942
17888
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -17944,7 +17890,7 @@ var gradients = {
17944
17890
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
17945
17891
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
17946
17892
  `,
17947
- pink: css50`
17893
+ pink: css49`
17948
17894
  background-color: #fffff0;
17949
17895
  background-image:
17950
17896
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -17952,7 +17898,7 @@ var gradients = {
17952
17898
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
17953
17899
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
17954
17900
  `,
17955
- pinkWithPop: css50`
17901
+ pinkWithPop: css49`
17956
17902
  background-color: #fffff0;
17957
17903
  background-image:
17958
17904
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -17960,7 +17906,7 @@ var gradients = {
17960
17906
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
17961
17907
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
17962
17908
  `,
17963
- playfulGradientOne: css50`
17909
+ playfulGradientOne: css49`
17964
17910
  background-color: #f7f8ff;
17965
17911
  background-image:
17966
17912
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -17968,7 +17914,7 @@ var gradients = {
17968
17914
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
17969
17915
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
17970
17916
  `,
17971
- playfulGradientTwo: css50`
17917
+ playfulGradientTwo: css49`
17972
17918
  background-color: #f7f8ff;
17973
17919
  background-image:
17974
17920
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -17976,13 +17922,13 @@ var gradients = {
17976
17922
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
17977
17923
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
17978
17924
  `,
17979
- purple: css50`
17925
+ purple: css49`
17980
17926
  background-color: #f2caff;
17981
17927
  background-image:
17982
17928
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
17983
17929
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
17984
17930
  `,
17985
- purpleWithPop: css50`
17931
+ purpleWithPop: css49`
17986
17932
  background-color: #f2caff;
17987
17933
  background-image:
17988
17934
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -17990,7 +17936,7 @@ var gradients = {
17990
17936
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
17991
17937
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
17992
17938
  `,
17993
- yellow: css50`
17939
+ yellow: css49`
17994
17940
  background-color: #fffff0;
17995
17941
  background-image:
17996
17942
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -17998,7 +17944,7 @@ var gradients = {
17998
17944
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
17999
17945
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
18000
17946
  `,
18001
- yellowWithPop: css50`
17947
+ yellowWithPop: css49`
18002
17948
  background-color: #fffff0;
18003
17949
  background-image:
18004
17950
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -18370,7 +18316,7 @@ var Thumbnail = forwardRef37(
18370
18316
  Thumbnail.displayName = "Thumbnail_UI";
18371
18317
 
18372
18318
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
18373
- import React5 from "react";
18319
+ import { cloneElement as cloneElement9, Children as Children11 } from "react";
18374
18320
  import { styled as styled108 } from "styled-components";
18375
18321
  import { isNonEmptyArray } from "@wistia/type-guards";
18376
18322
  import { jsx as jsx331 } from "react/jsx-runtime";
@@ -18429,10 +18375,10 @@ var ThumbnailCollage = ({
18429
18375
  gradientBackground = "defaultMidOne",
18430
18376
  ...props
18431
18377
  }) => {
18432
- const thumbnailArray = React5.Children.toArray(children);
18378
+ const thumbnailArray = Children11.toArray(children);
18433
18379
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
18434
18380
  const thumbnails = isNonEmptyArray(thumbnailArray) ? truncatedThumbnails.map((child) => {
18435
- return React5.cloneElement(child, {
18381
+ return cloneElement9(child, {
18436
18382
  ...child.props,
18437
18383
  children: void 0
18438
18384
  });
@@ -18459,7 +18405,7 @@ var ThumbnailCollage = ({
18459
18405
  };
18460
18406
 
18461
18407
  // src/components/WistiaLogo/WistiaLogo.tsx
18462
- import { styled as styled109, css as css51 } from "styled-components";
18408
+ import { styled as styled109, css as css50 } from "styled-components";
18463
18409
  import { isNotNil as isNotNil44 } from "@wistia/type-guards";
18464
18410
  import { jsx as jsx332, jsxs as jsxs73 } from "react/jsx-runtime";
18465
18411
  var renderBrandmark = (brandmarkColor, iconOnly) => {
@@ -18517,12 +18463,12 @@ var WistiaLogoComponent = styled109.svg`
18517
18463
  ${({ $opticallyCentered, $iconOnly }) => {
18518
18464
  if ($opticallyCentered) {
18519
18465
  if ($iconOnly) {
18520
- return css51`
18466
+ return css50`
18521
18467
  aspect-ratio: 1;
18522
18468
  padding: 11.85% 3.12% 13.91%;
18523
18469
  `;
18524
18470
  }
18525
- return css51`
18471
+ return css50`
18526
18472
  aspect-ratio: 127 / 32;
18527
18473
  `;
18528
18474
  }
@@ -18586,7 +18532,7 @@ WistiaLogo.displayName = "WistiaLogo_UI";
18586
18532
  // src/components/SplitButton/SplitButton.tsx
18587
18533
  import { styled as styled110 } from "styled-components";
18588
18534
  import { isNotNil as isNotNil45 } from "@wistia/type-guards";
18589
- import { cloneElement as cloneElement9 } from "react";
18535
+ import { cloneElement as cloneElement10 } from "react";
18590
18536
  import { jsx as jsx333, jsxs as jsxs74 } from "react/jsx-runtime";
18591
18537
  var StyledSplitButton = styled110.span`
18592
18538
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -18651,7 +18597,7 @@ var SplitButton = ({
18651
18597
  children: menuItems
18652
18598
  }
18653
18599
  ),
18654
- isNotNil45(secondaryAction) && cloneElement9(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
18600
+ isNotNil45(secondaryAction) && cloneElement10(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
18655
18601
  ] });
18656
18602
  };
18657
18603
  SplitButton.displayName = "SplitButton_UI";