@wistia/ui 0.18.0-beta.3b5be3b3.9e2fe2f → 0.18.0-beta.487a02f2.5478196
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 +1 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +1 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -673,12 +673,19 @@ type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
673
673
|
* Alternative text description of the image for accessibility
|
|
674
674
|
*/
|
|
675
675
|
alt?: string;
|
|
676
|
+
/**
|
|
677
|
+
* The aspect ratio that the image should _try_ to maintain.
|
|
678
|
+
*/
|
|
679
|
+
aspectRatio?: 'square' | 'wide' | {
|
|
680
|
+
height: number;
|
|
681
|
+
width: number;
|
|
682
|
+
};
|
|
676
683
|
/**
|
|
677
684
|
* Position of the image within the banner layout. Only applies in horizontal orientation.
|
|
678
685
|
*/
|
|
679
686
|
alignment?: 'left' | 'right';
|
|
680
687
|
};
|
|
681
|
-
declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
|
|
688
|
+
declare const BannerImage: ({ alignment, alt, aspectRatio, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
|
|
682
689
|
|
|
683
690
|
type UnknownRecord = Record<string, unknown>;
|
|
684
691
|
type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
|
package/dist/index.d.ts
CHANGED
|
@@ -673,12 +673,19 @@ type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
673
673
|
* Alternative text description of the image for accessibility
|
|
674
674
|
*/
|
|
675
675
|
alt?: string;
|
|
676
|
+
/**
|
|
677
|
+
* The aspect ratio that the image should _try_ to maintain.
|
|
678
|
+
*/
|
|
679
|
+
aspectRatio?: 'square' | 'wide' | {
|
|
680
|
+
height: number;
|
|
681
|
+
width: number;
|
|
682
|
+
};
|
|
676
683
|
/**
|
|
677
684
|
* Position of the image within the banner layout. Only applies in horizontal orientation.
|
|
678
685
|
*/
|
|
679
686
|
alignment?: 'left' | 'right';
|
|
680
687
|
};
|
|
681
|
-
declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
|
|
688
|
+
declare const BannerImage: ({ alignment, alt, aspectRatio, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
|
|
682
689
|
|
|
683
690
|
type UnknownRecord = Record<string, unknown>;
|
|
684
691
|
type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.0-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.0-beta.487a02f2.5478196
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7724,7 +7724,6 @@ var StyledButton = styled5.button`
|
|
|
7724
7724
|
${({ $variant }) => buttonVariantsStyles[$variant]}
|
|
7725
7725
|
${({ $unstyled }) => !$unstyled && buttonBaseStyles}
|
|
7726
7726
|
${({ $fullWidth }) => $fullWidth && "width: 100%;"}
|
|
7727
|
-
align-self: flex-start;
|
|
7728
7727
|
text-align: center;
|
|
7729
7728
|
`;
|
|
7730
7729
|
var StyledButtonContent = styled5.div`
|
|
@@ -8940,10 +8939,6 @@ var ButtonGroupComponent = styled14.div`
|
|
|
8940
8939
|
justify-content: ${({ $align }) => getAlignment($align)};
|
|
8941
8940
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8942
8941
|
|
|
8943
|
-
${StyledButton} {
|
|
8944
|
-
align-self: unset;
|
|
8945
|
-
}
|
|
8946
|
-
|
|
8947
8942
|
${mq.smAndUp} {
|
|
8948
8943
|
flex-direction: row;
|
|
8949
8944
|
}
|