@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.d.mts
CHANGED
|
@@ -2493,9 +2493,13 @@ 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;
|
|
2496
2500
|
};
|
|
2497
2501
|
declare const WistiaLogo: {
|
|
2498
|
-
({ description, height, hoverColor, href, iconOnly, title, variant, ...otherProps }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
2502
|
+
({ description, height, hoverColor, href, iconOnly, opticallyCentered, title, variant, ...otherProps }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
2499
2503
|
displayName: string;
|
|
2500
2504
|
};
|
|
2501
2505
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2493,9 +2493,13 @@ 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;
|
|
2496
2500
|
};
|
|
2497
2501
|
declare const WistiaLogo: {
|
|
2498
|
-
({ description, height, hoverColor, href, iconOnly, title, variant, ...otherProps }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
2502
|
+
({ description, height, hoverColor, href, iconOnly, opticallyCentered, title, variant, ...otherProps }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
2499
2503
|
displayName: string;
|
|
2500
2504
|
};
|
|
2501
2505
|
|
package/dist/index.mjs
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
|
*
|
|
@@ -9555,8 +9555,9 @@ var SelectedItemIndicatorDiv = styled47.div`
|
|
|
9555
9555
|
left: 0;
|
|
9556
9556
|
position: absolute;
|
|
9557
9557
|
top: 0;
|
|
9558
|
+
box-shadow: var(--wui-elevation-01);
|
|
9558
9559
|
transition:
|
|
9559
|
-
transform var(--wui-motion-duration-
|
|
9560
|
+
transform var(--wui-motion-duration-02) var(--wui-motion-ease-out),
|
|
9560
9561
|
width var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
9561
9562
|
z-index: ${Z_INDEX_TO_SIT_BEHIND_SIBLINGS};
|
|
9562
9563
|
`;
|
|
@@ -9664,13 +9665,16 @@ var segmentedControlItemStyles = css27`
|
|
|
9664
9665
|
color: var(--wui-color-text-secondary);
|
|
9665
9666
|
cursor: pointer;
|
|
9666
9667
|
display: flex;
|
|
9668
|
+
gap: 2px;
|
|
9667
9669
|
flex-grow: 1;
|
|
9668
9670
|
flex-shrink: 1;
|
|
9669
9671
|
font-size: var(--wui-typography-label-3-size);
|
|
9670
9672
|
font-weight: var(--wui-typography-label-3-weight);
|
|
9673
|
+
line-height: var(--wui-typography-label-3-line-height);
|
|
9671
9674
|
justify-content: center;
|
|
9672
|
-
padding: 6px ${({ $hasLabel }) => $hasLabel ? "
|
|
9675
|
+
padding: 6px ${({ $hasLabel }) => $hasLabel ? "12px" : "6px"};
|
|
9673
9676
|
user-select: none;
|
|
9677
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
9674
9678
|
|
|
9675
9679
|
/* Icon component */
|
|
9676
9680
|
svg {
|
|
@@ -9694,13 +9698,9 @@ var segmentedControlItemStyles = css27`
|
|
|
9694
9698
|
&[data-state='active'] {
|
|
9695
9699
|
color: var(--wui-color-text-selected);
|
|
9696
9700
|
cursor: default;
|
|
9697
|
-
}
|
|
9698
9701
|
|
|
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-icon-selected);
|
|
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 from "styled-components";
|
|
10220
|
+
import styled55, { css as css28 } 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,6 +10271,21 @@ 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
|
+
}}
|
|
10274
10289
|
`;
|
|
10275
10290
|
var WistiaLogo = ({
|
|
10276
10291
|
description = void 0,
|
|
@@ -10278,6 +10293,7 @@ var WistiaLogo = ({
|
|
|
10278
10293
|
hoverColor = void 0,
|
|
10279
10294
|
href = void 0,
|
|
10280
10295
|
iconOnly = false,
|
|
10296
|
+
opticallyCentered = false,
|
|
10281
10297
|
title = "Wistia Logo",
|
|
10282
10298
|
variant = "standard",
|
|
10283
10299
|
...otherProps
|
|
@@ -10305,7 +10321,10 @@ var WistiaLogo = ({
|
|
|
10305
10321
|
WistiaLogoComponent,
|
|
10306
10322
|
{
|
|
10307
10323
|
$hoverColor: hoverColor,
|
|
10324
|
+
$iconOnly: iconOnly,
|
|
10325
|
+
$opticallyCentered: opticallyCentered,
|
|
10308
10326
|
height,
|
|
10327
|
+
preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
|
|
10309
10328
|
role: "img",
|
|
10310
10329
|
viewBox: computedViewBox(iconOnly),
|
|
10311
10330
|
xmlns: "http://www.w3.org/2000/svg",
|