@wistia/ui 0.11.2 → 0.11.3
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 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -26
package/dist/index.d.mts
CHANGED
|
@@ -3328,7 +3328,7 @@ type Storyboard = {
|
|
|
3328
3328
|
url: string;
|
|
3329
3329
|
width: number;
|
|
3330
3330
|
};
|
|
3331
|
-
type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
|
|
3331
|
+
type ThumbnailProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'> & {
|
|
3332
3332
|
/**
|
|
3333
3333
|
* The desired display of the thumbnail, either wide or square
|
|
3334
3334
|
*/
|
|
@@ -3363,7 +3363,7 @@ type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3363
3363
|
/**
|
|
3364
3364
|
* A `Thumbnail` is a small, reduced-size version of an image or video used as a preview or representative image.
|
|
3365
3365
|
*/
|
|
3366
|
-
declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3366
|
+
declare const Thumbnail: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
|
|
3367
3367
|
/**
|
|
3368
3368
|
* The desired display of the thumbnail, either wide or square
|
|
3369
3369
|
*/
|
|
@@ -3442,15 +3442,15 @@ type TooltipProps = {
|
|
|
3442
3442
|
};
|
|
3443
3443
|
/**
|
|
3444
3444
|
* Tooltips are a way to provide additional information or context to a user when they hover or focus an element.
|
|
3445
|
-
* For elements that are not interactive, consider using a [Popover](
|
|
3446
|
-
*
|
|
3445
|
+
* For elements that are not interactive, consider using a [Popover]() instead.
|
|
3446
|
+
*
|
|
3447
3447
|
*/
|
|
3448
3448
|
declare const Tooltip: {
|
|
3449
3449
|
({ delay, direction, content, children, forceOpen, hideArrow, }: TooltipProps): JSX.Element;
|
|
3450
3450
|
displayName: string;
|
|
3451
3451
|
};
|
|
3452
3452
|
|
|
3453
|
-
type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
3453
|
+
type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'height' | 'href'> & {
|
|
3454
3454
|
/**
|
|
3455
3455
|
* An optional accessible description for the logo
|
|
3456
3456
|
*/
|
|
@@ -3459,6 +3459,10 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
3459
3459
|
* Height, in pixels, of the logo
|
|
3460
3460
|
*/
|
|
3461
3461
|
height?: number;
|
|
3462
|
+
/**
|
|
3463
|
+
* If provided, will wrap the logo in a link
|
|
3464
|
+
*/
|
|
3465
|
+
href?: string;
|
|
3462
3466
|
/**
|
|
3463
3467
|
* @ignore
|
|
3464
3468
|
* Change the color when hovering over the logo
|
|
@@ -3470,10 +3474,6 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
3470
3474
|
* `Wistia` text must not be displayed without the "flags" iconography
|
|
3471
3475
|
*/
|
|
3472
3476
|
iconOnly?: boolean;
|
|
3473
|
-
/**
|
|
3474
|
-
* If provided, will wrap the logo in a link
|
|
3475
|
-
*/
|
|
3476
|
-
href?: string;
|
|
3477
3477
|
/**
|
|
3478
3478
|
* An accessible title for the logo (defaults to "Wistia Logo")
|
|
3479
3479
|
*/
|
|
@@ -3487,6 +3487,9 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
3487
3487
|
*/
|
|
3488
3488
|
opticallyCentered?: boolean;
|
|
3489
3489
|
};
|
|
3490
|
+
/**
|
|
3491
|
+
* Render the Wistia logo in various ways.
|
|
3492
|
+
*/
|
|
3490
3493
|
declare const WistiaLogo: {
|
|
3491
3494
|
({ description, height, hoverColor, href, iconOnly, opticallyCentered, title, variant, ...props }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
3492
3495
|
displayName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3328,7 +3328,7 @@ type Storyboard = {
|
|
|
3328
3328
|
url: string;
|
|
3329
3329
|
width: number;
|
|
3330
3330
|
};
|
|
3331
|
-
type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
|
|
3331
|
+
type ThumbnailProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'> & {
|
|
3332
3332
|
/**
|
|
3333
3333
|
* The desired display of the thumbnail, either wide or square
|
|
3334
3334
|
*/
|
|
@@ -3363,7 +3363,7 @@ type ThumbnailProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
3363
3363
|
/**
|
|
3364
3364
|
* A `Thumbnail` is a small, reduced-size version of an image or video used as a preview or representative image.
|
|
3365
3365
|
*/
|
|
3366
|
-
declare const Thumbnail: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3366
|
+
declare const Thumbnail: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
|
|
3367
3367
|
/**
|
|
3368
3368
|
* The desired display of the thumbnail, either wide or square
|
|
3369
3369
|
*/
|
|
@@ -3442,15 +3442,15 @@ type TooltipProps = {
|
|
|
3442
3442
|
};
|
|
3443
3443
|
/**
|
|
3444
3444
|
* Tooltips are a way to provide additional information or context to a user when they hover or focus an element.
|
|
3445
|
-
* For elements that are not interactive, consider using a [Popover](
|
|
3446
|
-
*
|
|
3445
|
+
* For elements that are not interactive, consider using a [Popover]() instead.
|
|
3446
|
+
*
|
|
3447
3447
|
*/
|
|
3448
3448
|
declare const Tooltip: {
|
|
3449
3449
|
({ delay, direction, content, children, forceOpen, hideArrow, }: TooltipProps): JSX.Element;
|
|
3450
3450
|
displayName: string;
|
|
3451
3451
|
};
|
|
3452
3452
|
|
|
3453
|
-
type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
3453
|
+
type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'height' | 'href'> & {
|
|
3454
3454
|
/**
|
|
3455
3455
|
* An optional accessible description for the logo
|
|
3456
3456
|
*/
|
|
@@ -3459,6 +3459,10 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
3459
3459
|
* Height, in pixels, of the logo
|
|
3460
3460
|
*/
|
|
3461
3461
|
height?: number;
|
|
3462
|
+
/**
|
|
3463
|
+
* If provided, will wrap the logo in a link
|
|
3464
|
+
*/
|
|
3465
|
+
href?: string;
|
|
3462
3466
|
/**
|
|
3463
3467
|
* @ignore
|
|
3464
3468
|
* Change the color when hovering over the logo
|
|
@@ -3470,10 +3474,6 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
3470
3474
|
* `Wistia` text must not be displayed without the "flags" iconography
|
|
3471
3475
|
*/
|
|
3472
3476
|
iconOnly?: boolean;
|
|
3473
|
-
/**
|
|
3474
|
-
* If provided, will wrap the logo in a link
|
|
3475
|
-
*/
|
|
3476
|
-
href?: string;
|
|
3477
3477
|
/**
|
|
3478
3478
|
* An accessible title for the logo (defaults to "Wistia Logo")
|
|
3479
3479
|
*/
|
|
@@ -3487,6 +3487,9 @@ type WistiaLogoProps = Omit<ComponentPropsWithoutRef<'svg'>, 'href'> & {
|
|
|
3487
3487
|
*/
|
|
3488
3488
|
opticallyCentered?: boolean;
|
|
3489
3489
|
};
|
|
3490
|
+
/**
|
|
3491
|
+
* Render the Wistia logo in various ways.
|
|
3492
|
+
*/
|
|
3490
3493
|
declare const WistiaLogo: {
|
|
3491
3494
|
({ description, height, hoverColor, href, iconOnly, opticallyCentered, title, variant, ...props }: WistiaLogoProps): react_jsx_runtime.JSX.Element;
|
|
3492
3495
|
displayName: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.11.
|
|
3
|
+
* @license @wistia/ui v0.11.3
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -124,7 +124,7 @@ var globalStyleAdjustmentsCss = css`
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/* Anything that has been anchored to should have extra scroll margin */
|
|
127
|
-
|
|
127
|
+
&:target {
|
|
128
128
|
scroll-margin-block: 5ex;
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -2951,7 +2951,7 @@ var buttonExtraLargeStyles = css16`
|
|
|
2951
2951
|
--button-label-gap: 8px;
|
|
2952
2952
|
`;
|
|
2953
2953
|
var ghostButtonVariant = css16`
|
|
2954
|
-
--button-color-bg: transparent;
|
|
2954
|
+
--button-color-bg-override: transparent;
|
|
2955
2955
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2956
2956
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2957
2957
|
--button-color-text: var(--wui-color-text-button);
|
|
@@ -2978,9 +2978,9 @@ var solidButtonVariant = css16`
|
|
|
2978
2978
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2979
2979
|
`;
|
|
2980
2980
|
var disabledButtonVariant = css16`
|
|
2981
|
-
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2982
|
-
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2983
|
-
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
2981
|
+
--button-color-bg: var(--button-color-bg-override, var(--wui-color-bg-surface-disabled));
|
|
2982
|
+
--button-color-bg-hover: var(--button-color-bg-override, var(--wui-color-bg-surface-disabled));
|
|
2983
|
+
--button-color-bg-active: var(--button-color-bg-override, var(--wui-color-bg-surface-disabled));
|
|
2984
2984
|
--button-color-text: var(--wui-color-text-disabled);
|
|
2985
2985
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2986
2986
|
--button-color-border: var(--wui-color-border-disabled);
|
|
@@ -8338,7 +8338,7 @@ var ButtonGroupComponent = styled14.div`
|
|
|
8338
8338
|
flex-direction: row;
|
|
8339
8339
|
}
|
|
8340
8340
|
|
|
8341
|
-
|
|
8341
|
+
&:not([data-wistia-ui-icon-button]) {
|
|
8342
8342
|
${mq.smAndDown} {
|
|
8343
8343
|
width: 100%;
|
|
8344
8344
|
}
|
|
@@ -10491,7 +10491,7 @@ Input.displayName = "Input";
|
|
|
10491
10491
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
10492
10492
|
import { Fragment as Fragment6, jsx as jsx232, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
10493
10493
|
var StyledInput = styled39(Input)`
|
|
10494
|
-
|
|
10494
|
+
&:not([rows]) {
|
|
10495
10495
|
min-height: unset;
|
|
10496
10496
|
}
|
|
10497
10497
|
|