@wistia/ui 0.6.6 → 0.6.7-beta.4cb4431e.485840e
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 +36 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +37 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.7-beta.4cb4431e.485840e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9639,8 +9639,9 @@ var SelectedItemIndicatorDiv = import_styled_components62.default.div`
|
|
|
9639
9639
|
left: 0;
|
|
9640
9640
|
position: absolute;
|
|
9641
9641
|
top: 0;
|
|
9642
|
+
box-shadow: var(--wui-elevation-01);
|
|
9642
9643
|
transition:
|
|
9643
|
-
transform var(--wui-motion-duration-
|
|
9644
|
+
transform var(--wui-motion-duration-02) var(--wui-motion-ease-out),
|
|
9644
9645
|
width var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
9645
9646
|
z-index: ${Z_INDEX_TO_SIT_BEHIND_SIBLINGS};
|
|
9646
9647
|
`;
|
|
@@ -9748,13 +9749,16 @@ var segmentedControlItemStyles = import_styled_components64.css`
|
|
|
9748
9749
|
color: var(--wui-color-text-secondary);
|
|
9749
9750
|
cursor: pointer;
|
|
9750
9751
|
display: flex;
|
|
9752
|
+
gap: 2px;
|
|
9751
9753
|
flex-grow: 1;
|
|
9752
9754
|
flex-shrink: 1;
|
|
9753
9755
|
font-size: var(--wui-typography-label-3-size);
|
|
9754
9756
|
font-weight: var(--wui-typography-label-3-weight);
|
|
9757
|
+
line-height: var(--wui-typography-label-3-line-height);
|
|
9755
9758
|
justify-content: center;
|
|
9756
|
-
padding: 6px ${({ $hasLabel }) => $hasLabel ? "
|
|
9759
|
+
padding: 6px ${({ $hasLabel }) => $hasLabel ? "12px" : "6px"};
|
|
9757
9760
|
user-select: none;
|
|
9761
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
9758
9762
|
|
|
9759
9763
|
/* Icon component */
|
|
9760
9764
|
svg {
|
|
@@ -9778,13 +9782,9 @@ var segmentedControlItemStyles = import_styled_components64.css`
|
|
|
9778
9782
|
&[data-state='active'] {
|
|
9779
9783
|
color: var(--wui-color-text-selected);
|
|
9780
9784
|
cursor: default;
|
|
9781
|
-
}
|
|
9782
9785
|
|
|
9783
|
-
&:focus-visible,
|
|
9784
|
-
&[data-state='on'],
|
|
9785
|
-
&[data-state='active'] {
|
|
9786
9786
|
svg path {
|
|
9787
|
-
fill: var(--wui-color-
|
|
9787
|
+
fill: var(--wui-color-icon-selected);
|
|
9788
9788
|
}
|
|
9789
9789
|
}
|
|
9790
9790
|
|
|
@@ -10355,6 +10355,21 @@ var WistiaLogoComponent = import_styled_components70.default.svg`
|
|
|
10355
10355
|
${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
|
|
10356
10356
|
}
|
|
10357
10357
|
}
|
|
10358
|
+
|
|
10359
|
+
${({ $opticallyCentered, $iconOnly }) => {
|
|
10360
|
+
if ($opticallyCentered) {
|
|
10361
|
+
if ($iconOnly) {
|
|
10362
|
+
return import_styled_components70.css`
|
|
10363
|
+
aspect-ratio: 1;
|
|
10364
|
+
padding: 11.85% 3.12% 13.91%;
|
|
10365
|
+
`;
|
|
10366
|
+
}
|
|
10367
|
+
return import_styled_components70.css`
|
|
10368
|
+
aspect-ratio: 127 / 32;
|
|
10369
|
+
`;
|
|
10370
|
+
}
|
|
10371
|
+
return null;
|
|
10372
|
+
}}
|
|
10358
10373
|
`;
|
|
10359
10374
|
var WistiaLogo = ({
|
|
10360
10375
|
description = void 0,
|
|
@@ -10362,6 +10377,7 @@ var WistiaLogo = ({
|
|
|
10362
10377
|
hoverColor = void 0,
|
|
10363
10378
|
href = void 0,
|
|
10364
10379
|
iconOnly = false,
|
|
10380
|
+
opticallyCentered = false,
|
|
10365
10381
|
title = "Wistia Logo",
|
|
10366
10382
|
variant = "standard",
|
|
10367
10383
|
...otherProps
|
|
@@ -10389,7 +10405,10 @@ var WistiaLogo = ({
|
|
|
10389
10405
|
WistiaLogoComponent,
|
|
10390
10406
|
{
|
|
10391
10407
|
$hoverColor: hoverColor,
|
|
10408
|
+
$iconOnly: iconOnly,
|
|
10409
|
+
$opticallyCentered: opticallyCentered,
|
|
10392
10410
|
height,
|
|
10411
|
+
preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
|
|
10393
10412
|
role: "img",
|
|
10394
10413
|
viewBox: computedViewBox(iconOnly),
|
|
10395
10414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10435,8 +10454,15 @@ var StyledTrigger = (0, import_styled_components71.default)(import_react_select.
|
|
|
10435
10454
|
display: inline-flex;
|
|
10436
10455
|
align-items: center;
|
|
10437
10456
|
justify-content: space-between;
|
|
10457
|
+
max-width: 100%;
|
|
10438
10458
|
width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
|
|
10439
10459
|
|
|
10460
|
+
> span {
|
|
10461
|
+
white-space: nowrap;
|
|
10462
|
+
text-overflow: ellipsis;
|
|
10463
|
+
overflow: hidden;
|
|
10464
|
+
}
|
|
10465
|
+
|
|
10440
10466
|
&[aria-expanded='true'],
|
|
10441
10467
|
&:focus {
|
|
10442
10468
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
@@ -10466,7 +10492,8 @@ var StyledContent3 = (0, import_styled_components71.default)(import_react_select
|
|
|
10466
10492
|
border: 1px solid var(--wui-select-content-border);
|
|
10467
10493
|
border-radius: var(--wui-select-content-border-radius);
|
|
10468
10494
|
padding: var(--wui-select-option-padding);
|
|
10469
|
-
min-width:
|
|
10495
|
+
min-width: var(--radix-select-trigger-width);
|
|
10496
|
+
max-height: var(--radix-select-content-available-height);
|
|
10470
10497
|
z-index: var(--wui-zindex-menu);
|
|
10471
10498
|
`;
|
|
10472
10499
|
var Select = (0, import_react55.forwardRef)(
|