@wistia/ui 0.6.6-beta.8a5013fa.ed1975e → 0.6.6
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 +8 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +9 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2493,13 +2493,9 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
2493
2493
|
* Style of the logo
|
|
2494
2494
|
*/
|
|
2495
2495
|
variant?: 'dark' | 'light' | 'standard';
|
|
2496
|
-
/**
|
|
2497
|
-
* If true, the logo will be optically centered within its container
|
|
2498
|
-
*/
|
|
2499
|
-
opticallyCentered?: boolean;
|
|
2500
2496
|
};
|
|
2501
2497
|
declare const WistiaLogo: {
|
|
2502
|
-
({ description, height, hoverColor, href, iconOnly,
|
|
2498
|
+
({ description, height, hoverColor, href, iconOnly, title, variant, ...otherProps }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
2503
2499
|
displayName: string;
|
|
2504
2500
|
};
|
|
2505
2501
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2493,13 +2493,9 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
2493
2493
|
* Style of the logo
|
|
2494
2494
|
*/
|
|
2495
2495
|
variant?: 'dark' | 'light' | 'standard';
|
|
2496
|
-
/**
|
|
2497
|
-
* If true, the logo will be optically centered within its container
|
|
2498
|
-
*/
|
|
2499
|
-
opticallyCentered?: boolean;
|
|
2500
2496
|
};
|
|
2501
2497
|
declare const WistiaLogo: {
|
|
2502
|
-
({ description, height, hoverColor, href, iconOnly,
|
|
2498
|
+
({ description, height, hoverColor, href, iconOnly, title, variant, ...otherProps }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
2503
2499
|
displayName: string;
|
|
2504
2500
|
};
|
|
2505
2501
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.6
|
|
3
|
+
* @license @wistia/ui v0.6.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9555,9 +9555,8 @@ var SelectedItemIndicatorDiv = styled47.div`
|
|
|
9555
9555
|
left: 0;
|
|
9556
9556
|
position: absolute;
|
|
9557
9557
|
top: 0;
|
|
9558
|
-
box-shadow: var(--wui-elevation-01);
|
|
9559
9558
|
transition:
|
|
9560
|
-
transform var(--wui-motion-duration-
|
|
9559
|
+
transform var(--wui-motion-duration-03) var(--wui-motion-ease-out),
|
|
9561
9560
|
width var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
9562
9561
|
z-index: ${Z_INDEX_TO_SIT_BEHIND_SIBLINGS};
|
|
9563
9562
|
`;
|
|
@@ -9665,16 +9664,13 @@ var segmentedControlItemStyles = css27`
|
|
|
9665
9664
|
color: var(--wui-color-text-secondary);
|
|
9666
9665
|
cursor: pointer;
|
|
9667
9666
|
display: flex;
|
|
9668
|
-
gap: 2px;
|
|
9669
9667
|
flex-grow: 1;
|
|
9670
9668
|
flex-shrink: 1;
|
|
9671
9669
|
font-size: var(--wui-typography-label-3-size);
|
|
9672
9670
|
font-weight: var(--wui-typography-label-3-weight);
|
|
9673
|
-
line-height: var(--wui-typography-label-3-line-height);
|
|
9674
9671
|
justify-content: center;
|
|
9675
|
-
padding: 6px ${({ $hasLabel }) => $hasLabel ? "
|
|
9672
|
+
padding: 6px ${({ $hasLabel }) => $hasLabel ? "8px" : "6px"};
|
|
9676
9673
|
user-select: none;
|
|
9677
|
-
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
9678
9674
|
|
|
9679
9675
|
/* Icon component */
|
|
9680
9676
|
svg {
|
|
@@ -9698,9 +9694,13 @@ var segmentedControlItemStyles = css27`
|
|
|
9698
9694
|
&[data-state='active'] {
|
|
9699
9695
|
color: var(--wui-color-text-selected);
|
|
9700
9696
|
cursor: default;
|
|
9697
|
+
}
|
|
9701
9698
|
|
|
9699
|
+
&:focus-visible,
|
|
9700
|
+
&[data-state='on'],
|
|
9701
|
+
&[data-state='active'] {
|
|
9702
9702
|
svg path {
|
|
9703
|
-
fill: var(--wui-color-
|
|
9703
|
+
fill: var(--wui-color-focus-ring);
|
|
9704
9704
|
}
|
|
9705
9705
|
}
|
|
9706
9706
|
|
|
@@ -10217,7 +10217,7 @@ var Tag = forwardRef24(
|
|
|
10217
10217
|
Tag.displayName = "Tag";
|
|
10218
10218
|
|
|
10219
10219
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
10220
|
-
import styled55
|
|
10220
|
+
import styled55 from "styled-components";
|
|
10221
10221
|
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
10222
10222
|
import { jsx as jsx221, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10223
10223
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -10271,21 +10271,6 @@ var WistiaLogoComponent = styled55.svg`
|
|
|
10271
10271
|
${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
|
|
10272
10272
|
}
|
|
10273
10273
|
}
|
|
10274
|
-
|
|
10275
|
-
${({ $opticallyCentered, $iconOnly }) => {
|
|
10276
|
-
if ($opticallyCentered) {
|
|
10277
|
-
if ($iconOnly) {
|
|
10278
|
-
return css28`
|
|
10279
|
-
aspect-ratio: 1;
|
|
10280
|
-
padding: 11.85% 3.12% 13.91%;
|
|
10281
|
-
`;
|
|
10282
|
-
}
|
|
10283
|
-
return css28`
|
|
10284
|
-
aspect-ratio: 127 / 32;
|
|
10285
|
-
`;
|
|
10286
|
-
}
|
|
10287
|
-
return null;
|
|
10288
|
-
}}
|
|
10289
10274
|
`;
|
|
10290
10275
|
var WistiaLogo = ({
|
|
10291
10276
|
description = void 0,
|
|
@@ -10293,7 +10278,6 @@ var WistiaLogo = ({
|
|
|
10293
10278
|
hoverColor = void 0,
|
|
10294
10279
|
href = void 0,
|
|
10295
10280
|
iconOnly = false,
|
|
10296
|
-
opticallyCentered = false,
|
|
10297
10281
|
title = "Wistia Logo",
|
|
10298
10282
|
variant = "standard",
|
|
10299
10283
|
...otherProps
|
|
@@ -10321,10 +10305,7 @@ var WistiaLogo = ({
|
|
|
10321
10305
|
WistiaLogoComponent,
|
|
10322
10306
|
{
|
|
10323
10307
|
$hoverColor: hoverColor,
|
|
10324
|
-
$iconOnly: iconOnly,
|
|
10325
|
-
$opticallyCentered: opticallyCentered,
|
|
10326
10308
|
height,
|
|
10327
|
-
preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
|
|
10328
10309
|
role: "img",
|
|
10329
10310
|
viewBox: computedViewBox(iconOnly),
|
|
10330
10311
|
xmlns: "http://www.w3.org/2000/svg",
|