@wistia/ui 0.6.6 → 0.6.7
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 +27 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +28 -9
- 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
|
|
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",
|