@wistia/ui 0.6.34 → 0.6.35

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.6.34
3
+ * @license @wistia/ui v0.6.35
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7186,7 +7186,7 @@ Badge.displayName = "Badge";
7186
7186
 
7187
7187
  // src/components/Box/Box.tsx
7188
7188
  import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
7189
- import styled10 from "styled-components";
7189
+ import styled10, { css as css17 } from "styled-components";
7190
7190
  import { isNotNil as isNotNil7, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
7191
7191
 
7192
7192
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
@@ -7238,6 +7238,38 @@ var getFillViewportStyle = (fillViewport) => {
7238
7238
  }
7239
7239
  return void 0;
7240
7240
  };
7241
+ var getFlexStyle = (flexMode) => {
7242
+ if (!flexMode) return null;
7243
+ switch (flexMode) {
7244
+ // grows to fill space, won't shrink, starts at 0
7245
+ case "grow":
7246
+ return css17`
7247
+ flex: 1 0 0;
7248
+ `;
7249
+ // default behavior, can shrink but won't grow
7250
+ case "initial":
7251
+ return css17`
7252
+ flex: 0 1 auto;
7253
+ `;
7254
+ // equal distribution of space
7255
+ case "equal":
7256
+ return css17`
7257
+ flex: 1;
7258
+ `;
7259
+ // won't grow or shrink
7260
+ case "rigid":
7261
+ return css17`
7262
+ flex: 0 0 auto;
7263
+ `;
7264
+ // can grow and shrink from content size
7265
+ case "fluid":
7266
+ return css17`
7267
+ flex: 1 1 auto;
7268
+ `;
7269
+ default:
7270
+ return null;
7271
+ }
7272
+ };
7241
7273
  var StyledBoxComponent = styled10.div`
7242
7274
  align-content: ${({ $alignContent }) => $alignContent};
7243
7275
  align-items: ${({ $alignItems }) => $alignItems};
@@ -7247,6 +7279,8 @@ var StyledBoxComponent = styled10.div`
7247
7279
  flex-direction: ${({ $flexDirection }) => $flexDirection};
7248
7280
  ${({ $fillBox: fill }) => getFillStyle(fill)};
7249
7281
  ${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
7282
+ ${({ $flexMode }) => getFlexStyle($flexMode)};
7283
+ ${({ $gap }) => getGapStyle($gap)};
7250
7284
  height: ${({ $height }) => $height ?? null};
7251
7285
  width: ${({ $width }) => $width ?? null};
7252
7286
 
@@ -7254,7 +7288,6 @@ var StyledBoxComponent = styled10.div`
7254
7288
  flex-grow: ${({ $grow }) => isNotNil7($grow) ? $grow : null};
7255
7289
  flex-shrink: ${({ $shrink }) => isNotNil7($shrink) ? $shrink : null};
7256
7290
  flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
7257
- ${({ $gap }) => getGapStyle($gap)};
7258
7291
  justify-content: ${({ $justifyContent }) => $justifyContent};
7259
7292
  order: ${({ $order }) => isNotNil7($order) ? $order : null};
7260
7293
  `;
@@ -7297,6 +7330,7 @@ var BoxComponent = forwardRef5(
7297
7330
  shrink,
7298
7331
  width,
7299
7332
  wrapItems = false,
7333
+ flexMode,
7300
7334
  ...otherProps
7301
7335
  }, ref) => {
7302
7336
  if (isNotUndefined4(height)) {
@@ -7330,6 +7364,7 @@ var BoxComponent = forwardRef5(
7330
7364
  $fillBox: fill,
7331
7365
  $fillViewport: fillViewport,
7332
7366
  $flexDirection: direction,
7367
+ $flexMode: flexMode,
7333
7368
  $gap: gap,
7334
7369
  $grow: grow,
7335
7370
  $height: height,
@@ -7585,18 +7620,18 @@ Center.displayName = "Center";
7585
7620
 
7586
7621
  // src/components/Checkbox/Checkbox.tsx
7587
7622
  import { forwardRef as forwardRef7, useId } from "react";
7588
- import styled19, { css as css19 } from "styled-components";
7623
+ import styled19, { css as css20 } from "styled-components";
7589
7624
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
7590
7625
 
7591
7626
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7592
- import styled18, { css as css18 } from "styled-components";
7627
+ import styled18, { css as css19 } from "styled-components";
7593
7628
  import { isNil as isNil12, isNotNil as isNotNil9 } from "@wistia/type-guards";
7594
7629
 
7595
7630
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
7596
- import styled16, { css as css17 } from "styled-components";
7631
+ import styled16, { css as css18 } from "styled-components";
7597
7632
  import { isNil as isNil11 } from "@wistia/type-guards";
7598
7633
  import { jsx as jsx204 } from "react/jsx-runtime";
7599
- var disabledStyle = css17`
7634
+ var disabledStyle = css18`
7600
7635
  color: var(--wui-color-text-disabled);
7601
7636
  `;
7602
7637
  var StyledFormControlLabelDescription = styled16.div`
@@ -7652,7 +7687,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
7652
7687
 
7653
7688
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7654
7689
  import { jsx as jsx206, jsxs as jsxs13 } from "react/jsx-runtime";
7655
- var disabledStyle2 = css18`
7690
+ var disabledStyle2 = css19`
7656
7691
  cursor: not-allowed;
7657
7692
  color: var(--wui-color-text-disabled);
7658
7693
  `;
@@ -7723,7 +7758,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx207(
7723
7758
  )
7724
7759
  }
7725
7760
  );
7726
- var sizeSmall = css19`
7761
+ var sizeSmall = css20`
7727
7762
  width: 14px;
7728
7763
  height: 14px;
7729
7764
  min-width: 14px;
@@ -7734,7 +7769,7 @@ var sizeSmall = css19`
7734
7769
  height: 7px;
7735
7770
  }
7736
7771
  `;
7737
- var sizeMedium = css19`
7772
+ var sizeMedium = css20`
7738
7773
  width: 16px;
7739
7774
  height: 16px;
7740
7775
  min-width: 16px;
@@ -7745,7 +7780,7 @@ var sizeMedium = css19`
7745
7780
  height: 9px;
7746
7781
  }
7747
7782
  `;
7748
- var sizeLarge = css19`
7783
+ var sizeLarge = css20`
7749
7784
  width: 20px;
7750
7785
  height: 20px;
7751
7786
  min-width: 20px;
@@ -7954,45 +7989,45 @@ import { isNotNull } from "@wistia/type-guards";
7954
7989
 
7955
7990
  // src/components/Heading/Heading.tsx
7956
7991
  import { forwardRef as forwardRef8 } from "react";
7957
- import styled22, { css as css20 } from "styled-components";
7992
+ import styled22, { css as css21 } from "styled-components";
7958
7993
  import { jsx as jsx211 } from "react/jsx-runtime";
7959
- var heroStyle = css20`
7994
+ var heroStyle = css21`
7960
7995
  --font-family: var(--wui-typography-heading-hero-family);
7961
7996
  --font-size: var(--wui-typography-heading-hero-size);
7962
7997
  --font-weight: var(--wui-typography-heading-hero-weight);
7963
7998
  --line-height: var(--wui-typography-heading-hero-line-height);
7964
7999
  `;
7965
- var heading1TextStyle = css20`
8000
+ var heading1TextStyle = css21`
7966
8001
  --font-family: var(--wui-typography-heading-1-family);
7967
8002
  --font-size: var(--wui-typography-heading-1-size);
7968
8003
  --font-weight: var(--wui-typography-heading-1-weight);
7969
8004
  --line-height: var(--wui-typography-heading-1-line-height);
7970
8005
  `;
7971
- var heading2TextStyle = css20`
8006
+ var heading2TextStyle = css21`
7972
8007
  --font-family: var(--wui-typography-heading-2-family);
7973
8008
  --font-size: var(--wui-typography-heading-2-size);
7974
8009
  --font-weight: var(--wui-typography-heading-2-weight);
7975
8010
  --line-height: var(--wui-typography-heading-2-line-height);
7976
8011
  `;
7977
- var heading3TextStyle = css20`
8012
+ var heading3TextStyle = css21`
7978
8013
  --font-family: var(--wui-typography-heading-3-family);
7979
8014
  --font-size: var(--wui-typography-heading-3-size);
7980
8015
  --font-weight: var(--wui-typography-heading-3-weight);
7981
8016
  --line-height: var(--wui-typography-heading-3-line-height);
7982
8017
  `;
7983
- var heading4TextStyle = css20`
8018
+ var heading4TextStyle = css21`
7984
8019
  --font-family: var(--wui-typography-heading-4-family);
7985
8020
  --font-size: var(--wui-typography-heading-4-size);
7986
8021
  --font-weight: var(--wui-typography-heading-4-weight);
7987
8022
  --line-height: var(--wui-typography-heading-4-line-height);
7988
8023
  `;
7989
- var heading5TextStyle = css20`
8024
+ var heading5TextStyle = css21`
7990
8025
  --font-family: var(--wui-typography-heading-5-family);
7991
8026
  --font-size: var(--wui-typography-heading-5-size);
7992
8027
  --font-weight: var(--wui-typography-heading-5-weight);
7993
8028
  --line-height: var(--wui-typography-heading-5-line-height);
7994
8029
  `;
7995
- var heading6TextStyle = css20`
8030
+ var heading6TextStyle = css21`
7996
8031
  --font-family: var(--wui-typography-heading-6-family);
7997
8032
  --font-size: var(--wui-typography-heading-6-size);
7998
8033
  --font-weight: var(--wui-typography-heading-6-weight);
@@ -8017,16 +8052,16 @@ var StyledHeading = styled22.div`
8017
8052
  color: var(--wui-color-text);
8018
8053
  ${({ $variant }) => variantStyleMap[$variant]}
8019
8054
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8020
- ${({ $inline }) => $inline && css20`
8055
+ ${({ $inline }) => $inline && css21`
8021
8056
  display: inline-block;
8022
8057
  `}
8023
- ${({ $disabled }) => $disabled && css20`
8058
+ ${({ $disabled }) => $disabled && css21`
8024
8059
  color: var(--wui-color-text-disabled);
8025
8060
  `}
8026
- ${({ $preventUserSelect }) => $preventUserSelect && css20`
8061
+ ${({ $preventUserSelect }) => $preventUserSelect && css21`
8027
8062
  user-select: none;
8028
8063
  `}
8029
- ${({ $align }) => css20`
8064
+ ${({ $align }) => css21`
8030
8065
  text-align: ${$align};
8031
8066
  `}
8032
8067
  margin: 0;
@@ -8205,21 +8240,21 @@ import styled26 from "styled-components";
8205
8240
 
8206
8241
  // src/components/Text/Text.tsx
8207
8242
  import { forwardRef as forwardRef9 } from "react";
8208
- import styled25, { css as css21 } from "styled-components";
8243
+ import styled25, { css as css22 } from "styled-components";
8209
8244
  import { jsx as jsx214 } from "react/jsx-runtime";
8210
- var bodyBoldStyles = css21`
8245
+ var bodyBoldStyles = css22`
8211
8246
  > strong,
8212
8247
  b {
8213
8248
  font-weight: var(--wui-typography-weight-body-bold);
8214
8249
  }
8215
8250
  `;
8216
- var labelBoldStyles = css21`
8251
+ var labelBoldStyles = css22`
8217
8252
  > strong,
8218
8253
  b {
8219
8254
  font-weight: var(--wui-typography-weight-label-bold);
8220
8255
  }
8221
8256
  `;
8222
- var body1TextStyle = css21`
8257
+ var body1TextStyle = css22`
8223
8258
  --font-family: var(--wui-typography-body-1-family);
8224
8259
  --font-size: var(--wui-typography-body-1-size);
8225
8260
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8227,7 +8262,7 @@ var body1TextStyle = css21`
8227
8262
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8228
8263
  ${bodyBoldStyles}
8229
8264
  `;
8230
- var body2TextStyle = css21`
8265
+ var body2TextStyle = css22`
8231
8266
  --font-family: var(--wui-typography-body-2-family);
8232
8267
  --font-size: var(--wui-typography-body-2-size);
8233
8268
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8235,7 +8270,7 @@ var body2TextStyle = css21`
8235
8270
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8236
8271
  ${bodyBoldStyles}
8237
8272
  `;
8238
- var body3TextStyle = css21`
8273
+ var body3TextStyle = css22`
8239
8274
  --font-family: var(--wui-typography-body-3-family);
8240
8275
  --font-size: var(--wui-typography-body-3-size);
8241
8276
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8243,7 +8278,7 @@ var body3TextStyle = css21`
8243
8278
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8244
8279
  ${bodyBoldStyles}
8245
8280
  `;
8246
- var body4TextStyle = css21`
8281
+ var body4TextStyle = css22`
8247
8282
  --font-family: var(--wui-typography-body-4-family);
8248
8283
  --font-size: var(--wui-typography-body-4-size);
8249
8284
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8251,47 +8286,47 @@ var body4TextStyle = css21`
8251
8286
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8252
8287
  ${bodyBoldStyles}
8253
8288
  `;
8254
- var label1TextStyle = css21`
8289
+ var label1TextStyle = css22`
8255
8290
  --font-family: var(--wui-typography-label-1-family);
8256
8291
  --font-size: var(--wui-typography-label-1-size);
8257
8292
  --font-weight: var(--wui-typography-label-1-weight);
8258
8293
  --line-height: var(--wui-typography-label-1-line-height);
8259
8294
  ${labelBoldStyles}
8260
8295
  `;
8261
- var label2TextStyle = css21`
8296
+ var label2TextStyle = css22`
8262
8297
  --font-family: var(--wui-typography-label-2-family);
8263
8298
  --font-size: var(--wui-typography-label-2-size);
8264
8299
  --font-weight: var(--wui-typography-label-2-weight);
8265
8300
  --line-height: var(--wui-typography-label-2-line-height);
8266
8301
  ${labelBoldStyles}
8267
8302
  `;
8268
- var label3TextStyle = css21`
8303
+ var label3TextStyle = css22`
8269
8304
  --font-family: var(--wui-typography-label-3-family);
8270
8305
  --font-size: var(--wui-typography-label-3-size);
8271
8306
  --font-weight: var(--wui-typography-label-3-weight);
8272
8307
  --line-height: var(--wui-typography-label-3-line-height);
8273
8308
  ${labelBoldStyles}
8274
8309
  `;
8275
- var label4TextStyle = css21`
8310
+ var label4TextStyle = css22`
8276
8311
  --font-family: var(--wui-typography-label-4-family);
8277
8312
  --font-size: var(--wui-typography-label-4-size);
8278
8313
  --font-weight: var(--wui-typography-label-4-weight);
8279
8314
  --line-height: var(--wui-typography-label-4-line-height);
8280
8315
  ${labelBoldStyles}
8281
8316
  `;
8282
- var body1MonoTextStyle = css21`
8317
+ var body1MonoTextStyle = css22`
8283
8318
  ${body1TextStyle};
8284
8319
  --font-family: var(--wui-typography-family-mono);
8285
8320
  `;
8286
- var body2MonoTextStyle = css21`
8321
+ var body2MonoTextStyle = css22`
8287
8322
  ${body2TextStyle};
8288
8323
  --font-family: var(--wui-typography-family-mono);
8289
8324
  `;
8290
- var body3MonoTextStyle = css21`
8325
+ var body3MonoTextStyle = css22`
8291
8326
  ${body3TextStyle};
8292
8327
  --font-family: var(--wui-typography-family-mono);
8293
8328
  `;
8294
- var body4MonoTextStyle = css21`
8329
+ var body4MonoTextStyle = css22`
8295
8330
  ${body4TextStyle};
8296
8331
  --font-family: var(--wui-typography-family-mono);
8297
8332
  `;
@@ -8350,19 +8385,19 @@ var StyledText = styled25.div`
8350
8385
  margin: 0;
8351
8386
  ${({ $variant }) => variantStyleMap2[$variant]}
8352
8387
  ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8353
- ${({ $inline }) => $inline && css21`
8388
+ ${({ $inline }) => $inline && css22`
8354
8389
  display: inline-block;
8355
8390
  `}
8356
- ${({ $disabled }) => $disabled && css21`
8391
+ ${({ $disabled }) => $disabled && css22`
8357
8392
  --text-color: var(--wui-color-text-disabled);
8358
8393
  `}
8359
- ${({ $preventUserSelect }) => $preventUserSelect && css21`
8394
+ ${({ $preventUserSelect }) => $preventUserSelect && css22`
8360
8395
  user-select: none;
8361
8396
  `}
8362
- ${({ $align }) => css21`
8397
+ ${({ $align }) => css22`
8363
8398
  text-align: ${$align};
8364
8399
  `}
8365
- ${({ as }) => as === "p" && css21`
8400
+ ${({ as }) => as === "p" && css22`
8366
8401
  display: block;
8367
8402
 
8368
8403
  + p {
@@ -8442,16 +8477,16 @@ var DataCardTrend = ({
8442
8477
  };
8443
8478
 
8444
8479
  // src/components/Divider/Divider.tsx
8445
- import styled27, { css as css22 } from "styled-components";
8480
+ import styled27, { css as css23 } from "styled-components";
8446
8481
  import { jsx as jsx216 } from "react/jsx-runtime";
8447
- var horizontalBorderCss = css22`
8482
+ var horizontalBorderCss = css23`
8448
8483
  border-top-color: var(--wui-color-border);
8449
8484
  border-top-style: solid;
8450
8485
  border-top-width: 1px;
8451
8486
  clear: both; /* for horizontal dividers, ensure it clears any floats */
8452
8487
  height: 0;
8453
8488
  `;
8454
- var verticalBorderCss = css22`
8489
+ var verticalBorderCss = css23`
8455
8490
  background-color: var(--wui-color-border);
8456
8491
  max-width: 1px;
8457
8492
  min-height: 100%;
@@ -8485,7 +8520,7 @@ var Divider = ({
8485
8520
  Divider.displayName = "Divider";
8486
8521
 
8487
8522
  // src/components/EditableHeading/EditableHeading.tsx
8488
- import styled30, { css as css25 } from "styled-components";
8523
+ import styled30, { css as css26 } from "styled-components";
8489
8524
  import { useState as useState6, useRef as useRef4 } from "react";
8490
8525
 
8491
8526
  // src/components/Tooltip/Tooltip.tsx
@@ -8496,9 +8531,9 @@ import {
8496
8531
  Portal as TooltipPortal,
8497
8532
  Arrow as TooltipArrow
8498
8533
  } from "@radix-ui/react-tooltip";
8499
- import styled28, { css as css23 } from "styled-components";
8534
+ import styled28, { css as css24 } from "styled-components";
8500
8535
  import { jsx as jsx217, jsxs as jsxs18 } from "react/jsx-runtime";
8501
- var CompactTooltipStyles = css23`
8536
+ var CompactTooltipStyles = css24`
8502
8537
  --tooltip-font-size: var(--wui-typography-label-4-size);
8503
8538
  --tooltip-line-height: var(--wui-typography-label-4-line-height);
8504
8539
  --tooltip-font-weight: var(--wui-typography-label-4-weight);
@@ -8602,10 +8637,10 @@ Tooltip.displayName = "Tooltip";
8602
8637
 
8603
8638
  // src/components/Input/Input.tsx
8604
8639
  import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef3 } from "react";
8605
- import styled29, { css as css24 } from "styled-components";
8640
+ import styled29, { css as css25 } from "styled-components";
8606
8641
  import { isNil as isNil13, isNotNil as isNotNil11, isRecord as isRecord4 } from "@wistia/type-guards";
8607
8642
  import { jsx as jsx218, jsxs as jsxs19 } from "react/jsx-runtime";
8608
- var inputStyles = css24`
8643
+ var inputStyles = css25`
8609
8644
  --wui-input-color-bg: var(--wui-color-bg-surface);
8610
8645
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
8611
8646
  --wui-input-color-border: var(--wui-color-border);
@@ -8785,7 +8820,7 @@ var StyledInput = styled30(Input)`
8785
8820
  height: ${({ $height }) => `${$height}px`};
8786
8821
  }
8787
8822
  `;
8788
- var editableStyles = css25`
8823
+ var editableStyles = css26`
8789
8824
  &:has(+ :focus-within) {
8790
8825
  background: var(--wui-color-bg-surface-hover);
8791
8826
  }
@@ -9119,9 +9154,9 @@ import styled35 from "styled-components";
9119
9154
  import { isArray as isArray2, isNotNil as isNotNil12, isNotUndefined as isNotUndefined8, isUndefined as isUndefined4 } from "@wistia/type-guards";
9120
9155
 
9121
9156
  // src/components/Label/Label.tsx
9122
- import styled33, { css as css26 } from "styled-components";
9157
+ import styled33, { css as css27 } from "styled-components";
9123
9158
  import { jsx as jsx223 } from "react/jsx-runtime";
9124
- var requiredStyle = css26`
9159
+ var requiredStyle = css27`
9125
9160
  &::after {
9126
9161
  color: var(--wui-color-text-error);
9127
9162
  display: inline;
@@ -9129,7 +9164,7 @@ var requiredStyle = css26`
9129
9164
  content: '*';
9130
9165
  }
9131
9166
  `;
9132
- var disabledStyle3 = css26`
9167
+ var disabledStyle3 = css27`
9133
9168
  color: var(--wui-color-text-disabled);
9134
9169
  `;
9135
9170
  var StyledLabel3 = styled33.label`
@@ -9484,7 +9519,7 @@ var Image = ({
9484
9519
  Image.displayName = "Image";
9485
9520
 
9486
9521
  // src/components/Menu/Menu.tsx
9487
- import styled38, { css as css27, keyframes as keyframes2 } from "styled-components";
9522
+ import styled38, { css as css28, keyframes as keyframes2 } from "styled-components";
9488
9523
  import {
9489
9524
  DropdownMenu,
9490
9525
  DropdownMenuTrigger,
@@ -9521,7 +9556,7 @@ var close = keyframes2`
9521
9556
  transform: scale(.97) translateY(-8px);
9522
9557
  }
9523
9558
  `;
9524
- var menuItemCss = css27`
9559
+ var menuItemCss = css28`
9525
9560
  --menu-label-description-gap: var(--wui-space-01);
9526
9561
  --menu-item-inner-gap: var(--wui-space-03);
9527
9562
  --menu-item-left-icon-size: 24px;
@@ -9532,7 +9567,7 @@ var menuItemCss = css27`
9532
9567
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
9533
9568
  --menu-divider-margin: var(--wui-space-02);
9534
9569
  `;
9535
- var compactMenuItemCss = css27`
9570
+ var compactMenuItemCss = css28`
9536
9571
  --menu-label-description-gap: 0;
9537
9572
  --menu-item-inner-gap: var(--wui-space-02);
9538
9573
  --menu-item-left-icon-size: 16px;
@@ -9543,7 +9578,7 @@ var compactMenuItemCss = css27`
9543
9578
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
9544
9579
  --menu-divider-margin: var(--wui-space-01);
9545
9580
  `;
9546
- var menuContentCss = css27`
9581
+ var menuContentCss = css28`
9547
9582
  --menu-font-family: var(--wui-typography-family-default);
9548
9583
  --menu-bg: var(--wui-color-bg-surface);
9549
9584
  --menu-shadow: var(--wui-elevation-01);
@@ -10315,7 +10350,7 @@ Modal.displayName = "Modal";
10315
10350
 
10316
10351
  // src/components/Popover/Popover.tsx
10317
10352
  import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
10318
- import styled48, { css as css28 } from "styled-components";
10353
+ import styled48, { css as css29 } from "styled-components";
10319
10354
 
10320
10355
  // src/private/helpers/getControls/getControlProps.tsx
10321
10356
  import { isNotNil as isNotNil19 } from "@wistia/type-guards";
@@ -10326,7 +10361,7 @@ var getControlProps = (isOpen, onOpenChange) => {
10326
10361
  // src/components/Popover/Popover.tsx
10327
10362
  import { jsx as jsx244, jsxs as jsxs31 } from "react/jsx-runtime";
10328
10363
  var StyledContent2 = styled48(Content2)`
10329
- ${({ $unstyled }) => !$unstyled && css28`
10364
+ ${({ $unstyled }) => !$unstyled && css29`
10330
10365
  border-radius: var(--wui-border-radius-02);
10331
10366
  padding: var(--wui-space-04);
10332
10367
  max-width: 320px;
@@ -10457,7 +10492,7 @@ ProgressBar.displayName = "ProgressBar";
10457
10492
 
10458
10493
  // src/components/Radio/Radio.tsx
10459
10494
  import { forwardRef as forwardRef19, useId as useId3 } from "react";
10460
- import styled50, { css as css29 } from "styled-components";
10495
+ import styled50, { css as css30 } from "styled-components";
10461
10496
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
10462
10497
  import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
10463
10498
  var RadioIcon = () => /* @__PURE__ */ jsx246(
@@ -10479,7 +10514,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx246(
10479
10514
  )
10480
10515
  }
10481
10516
  );
10482
- var sizeSmall2 = css29`
10517
+ var sizeSmall2 = css30`
10483
10518
  width: 14px;
10484
10519
  height: 14px;
10485
10520
  min-width: 14px;
@@ -10490,7 +10525,7 @@ var sizeSmall2 = css29`
10490
10525
  height: 7px;
10491
10526
  }
10492
10527
  `;
10493
- var sizeMedium2 = css29`
10528
+ var sizeMedium2 = css30`
10494
10529
  width: 16px;
10495
10530
  height: 16px;
10496
10531
  min-width: 16px;
@@ -10501,7 +10536,7 @@ var sizeMedium2 = css29`
10501
10536
  height: 8px;
10502
10537
  }
10503
10538
  `;
10504
- var sizeLarge2 = css29`
10539
+ var sizeLarge2 = css30`
10505
10540
  width: 20px;
10506
10541
  height: 20px;
10507
10542
  min-width: 20px;
@@ -10625,7 +10660,7 @@ Radio.displayName = "Radio";
10625
10660
 
10626
10661
  // src/components/SegmentedControl/SegmentedControl.tsx
10627
10662
  import { forwardRef as forwardRef20 } from "react";
10628
- import styled52, { css as css30 } from "styled-components";
10663
+ import styled52, { css as css31 } from "styled-components";
10629
10664
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
10630
10665
  import { isNil as isNil14 } from "@wistia/type-guards";
10631
10666
 
@@ -10716,7 +10751,7 @@ var SelectedItemIndicator = () => {
10716
10751
 
10717
10752
  // src/components/SegmentedControl/SegmentedControl.tsx
10718
10753
  import { jsx as jsx249, jsxs as jsxs34 } from "react/jsx-runtime";
10719
- var segmentedControlStyles = css30`
10754
+ var segmentedControlStyles = css31`
10720
10755
  display: inline-flex;
10721
10756
  background-color: var(--wui-color-bg-surface-secondary);
10722
10757
  border-radius: var(--wui-border-radius-rounded);
@@ -10765,7 +10800,7 @@ SegmentedControl.displayName = "SegmentedControl";
10765
10800
 
10766
10801
  // src/components/SegmentedControl/SegmentedControlItem.tsx
10767
10802
  import { forwardRef as forwardRef21, useEffect as useEffect6, useRef as useRef9 } from "react";
10768
- import styled53, { css as css31 } from "styled-components";
10803
+ import styled53, { css as css32 } from "styled-components";
10769
10804
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
10770
10805
  import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10771
10806
 
@@ -10785,7 +10820,7 @@ var mergeRefs = (refs) => (value) => {
10785
10820
 
10786
10821
  // src/components/SegmentedControl/SegmentedControlItem.tsx
10787
10822
  import { jsxs as jsxs35 } from "react/jsx-runtime";
10788
- var segmentedControlItemStyles = css31`
10823
+ var segmentedControlItemStyles = css32`
10789
10824
  all: unset; /* ToggleGroupItem is a button element */
10790
10825
  align-items: center;
10791
10826
  border-radius: var(--wui-border-radius-rounded);
@@ -11108,10 +11143,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11108
11143
 
11109
11144
  // src/components/Switch/Switch.tsx
11110
11145
  import { forwardRef as forwardRef24, useId as useId4 } from "react";
11111
- import styled57, { css as css32 } from "styled-components";
11146
+ import styled57, { css as css33 } from "styled-components";
11112
11147
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11113
11148
  import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11114
- var sizeSmall3 = css32`
11149
+ var sizeSmall3 = css33`
11115
11150
  --wui-size-small-width: 24px;
11116
11151
  --wui-size-small-height: 14px;
11117
11152
 
@@ -11126,7 +11161,7 @@ var sizeSmall3 = css32`
11126
11161
  height: calc(var(--wui-size-small-width) / 2);
11127
11162
  }
11128
11163
  `;
11129
- var sizeMedium3 = css32`
11164
+ var sizeMedium3 = css33`
11130
11165
  --wui-size-medium-width: 32px;
11131
11166
  --wui-size-medium-height: 18px;
11132
11167
 
@@ -11141,7 +11176,7 @@ var sizeMedium3 = css32`
11141
11176
  height: calc(var(--wui-size-medium-width) / 2);
11142
11177
  }
11143
11178
  `;
11144
- var sizeLarge3 = css32`
11179
+ var sizeLarge3 = css33`
11145
11180
  --wui-size-large-width: 40px;
11146
11181
  --wui-size-large-height: 22px;
11147
11182
 
@@ -11270,19 +11305,19 @@ var Switch = forwardRef24(
11270
11305
  Switch.displayName = "Switch";
11271
11306
 
11272
11307
  // src/components/Table/Table.tsx
11273
- import styled58, { css as css33 } from "styled-components";
11308
+ import styled58, { css as css34 } from "styled-components";
11274
11309
  import { jsx as jsx254 } from "react/jsx-runtime";
11275
11310
  var StyledTable = styled58.table`
11276
11311
  width: 100%;
11277
11312
  border-collapse: collapse;
11278
11313
 
11279
- ${({ $striped }) => $striped && css33`
11314
+ ${({ $striped }) => $striped && css34`
11280
11315
  tbody tr:nth-child(even) {
11281
11316
  background-color: var(--wui-color-bg-surface-secondary);
11282
11317
  }
11283
11318
  `}
11284
11319
 
11285
- ${({ $divided }) => $divided && css33`
11320
+ ${({ $divided }) => $divided && css34`
11286
11321
  tr {
11287
11322
  border-bottom: 1px solid var(--wui-color-border);
11288
11323
  }
@@ -11321,9 +11356,9 @@ var TableBody = ({ children, ...props }) => {
11321
11356
 
11322
11357
  // src/components/Table/TableCell.tsx
11323
11358
  import { useContext as useContext7 } from "react";
11324
- import styled60, { css as css34 } from "styled-components";
11359
+ import styled60, { css as css35 } from "styled-components";
11325
11360
  import { jsx as jsx256 } from "react/jsx-runtime";
11326
- var sharedStyles = css34`
11361
+ var sharedStyles = css35`
11327
11362
  color: var(--wui-color-text);
11328
11363
  padding: var(--wui-space-02);
11329
11364
  text-align: left;
@@ -11847,7 +11882,7 @@ var Tag = forwardRef28(
11847
11882
  Tag.displayName = "Tag";
11848
11883
 
11849
11884
  // src/components/WistiaLogo/WistiaLogo.tsx
11850
- import styled70, { css as css35 } from "styled-components";
11885
+ import styled70, { css as css36 } from "styled-components";
11851
11886
  import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11852
11887
  import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
11853
11888
  var renderBrandmark = (brandmarkColor, iconOnly) => {
@@ -11905,12 +11940,12 @@ var WistiaLogoComponent = styled70.svg`
11905
11940
  ${({ $opticallyCentered, $iconOnly }) => {
11906
11941
  if ($opticallyCentered) {
11907
11942
  if ($iconOnly) {
11908
- return css35`
11943
+ return css36`
11909
11944
  aspect-ratio: 1;
11910
11945
  padding: 11.85% 3.12% 13.91%;
11911
11946
  `;
11912
11947
  }
11913
- return css35`
11948
+ return css36`
11914
11949
  aspect-ratio: 127 / 32;
11915
11950
  `;
11916
11951
  }