@wistia/ui 0.22.6-beta.1f1635b5.fa51f31 → 0.22.6-beta.cd97d0bf.fcb7982
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.d.ts +4 -4
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -615,7 +615,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
615
615
|
* Changes the secondary icon for different use cases
|
|
616
616
|
*/
|
|
617
617
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
618
|
-
} & Omit<ButtonAsButtonProps, "variant" | "
|
|
618
|
+
} & Omit<ButtonAsButtonProps, "variant" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "size" | "unstyled">, "ref"> | Omit<{
|
|
619
619
|
/**
|
|
620
620
|
* @override
|
|
621
621
|
* The text to display for the ActionButton
|
|
@@ -644,7 +644,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
644
644
|
* Changes the secondary icon for different use cases
|
|
645
645
|
*/
|
|
646
646
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
647
|
-
} & Omit<ButtonAsLinkProps, "variant" | "
|
|
647
|
+
} & Omit<ButtonAsLinkProps, "variant" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "size" | "unstyled">, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
648
648
|
//#endregion
|
|
649
649
|
//#region src/components/Avatar/Avatar.d.ts
|
|
650
650
|
type AvatarInstanceType = 'image' | 'initials';
|
|
@@ -3269,7 +3269,7 @@ type InputClickToCopyProps = Omit<InputProps, 'autoSelect' | 'disabled' | 'right
|
|
|
3269
3269
|
/**
|
|
3270
3270
|
* Provides a readonly input that copies the text to the clipboard when clicked.
|
|
3271
3271
|
*/
|
|
3272
|
-
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "
|
|
3272
|
+
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "type" | "rightIcon" | "disabled" | "value" | "autoSelect"> & {
|
|
3273
3273
|
/**
|
|
3274
3274
|
* When disabled, the copy action will not be triggered
|
|
3275
3275
|
*/
|
|
@@ -4205,7 +4205,7 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
4205
4205
|
*/
|
|
4206
4206
|
hideLabel?: boolean;
|
|
4207
4207
|
};
|
|
4208
|
-
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "
|
|
4208
|
+
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "size" | "value" | "hideLabel"> & {
|
|
4209
4209
|
/**
|
|
4210
4210
|
* Indicates the state of the radio
|
|
4211
4211
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.22.6-beta.
|
|
3
|
+
* @license @wistia/ui v0.22.6-beta.cd97d0bf.fcb7982
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1906,9 +1906,11 @@ const buttonBaseStyles = css`
|
|
|
1906
1906
|
font-weight: var(--button-typography-weight);
|
|
1907
1907
|
line-height: var(--button-typography-line-height);
|
|
1908
1908
|
padding: var(--button-padding-vertical) var(--button-padding-horizontal);
|
|
1909
|
-
background: var(--button-color-bg);
|
|
1909
|
+
background-color: var(--button-color-bg);
|
|
1910
1910
|
color: var(--button-color-text);
|
|
1911
|
-
transition:
|
|
1911
|
+
transition:
|
|
1912
|
+
background-color var(--wui-motion-duration-01) var(--wui-motion-ease),
|
|
1913
|
+
box-shadow var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
1912
1914
|
|
|
1913
1915
|
/* This ensure that the icon is the corect color when the style is solid or the button is disabled */
|
|
1914
1916
|
&& {
|
|
@@ -1920,16 +1922,6 @@ const buttonBaseStyles = css`
|
|
|
1920
1922
|
}
|
|
1921
1923
|
}
|
|
1922
1924
|
|
|
1923
|
-
&:hover,
|
|
1924
|
-
&.force-state-hover {
|
|
1925
|
-
background: var(--button-color-bg-hover);
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
&:active,
|
|
1929
|
-
&.force-state-active {
|
|
1930
|
-
background: var(--button-color-bg-active);
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
1925
|
&:focus {
|
|
1934
1926
|
outline: none;
|
|
1935
1927
|
}
|
|
@@ -1938,16 +1930,27 @@ const buttonBaseStyles = css`
|
|
|
1938
1930
|
&.force-state-focus {
|
|
1939
1931
|
--wui-button-focus-color: var(--wui-color-focus-ring);
|
|
1940
1932
|
|
|
1941
|
-
background: var(--button-color-bg-hover);
|
|
1933
|
+
background-color: var(--button-color-bg-hover);
|
|
1942
1934
|
box-shadow:
|
|
1943
1935
|
inset 0 0 0 2px var(--wui-button-focus-color),
|
|
1944
|
-
inset 0 0 0 3px var(--wui-color-bg-app)
|
|
1936
|
+
inset 0 0 0 3px var(--wui-color-bg-app),
|
|
1937
|
+
inset 0 0 0 5px var(--button-color-border, transparent);
|
|
1945
1938
|
|
|
1946
1939
|
&[aria-disabled='true'] {
|
|
1947
1940
|
--wui-button-focus-color: var(--wui-color-focus-ring-disabled);
|
|
1948
1941
|
}
|
|
1949
1942
|
}
|
|
1950
1943
|
|
|
1944
|
+
&:hover:not([aria-disabled='true']),
|
|
1945
|
+
&.force-state-hover {
|
|
1946
|
+
background-color: var(--button-color-bg-hover);
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
&:active:not([aria-disabled='true']),
|
|
1950
|
+
&.force-state-active {
|
|
1951
|
+
background-color: var(--button-color-bg-active);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1951
1954
|
&[aria-disabled='true'] {
|
|
1952
1955
|
${css`
|
|
1953
1956
|
--button-color-bg: var(--button-color-bg-override, var(--wui-color-bg-surface-disabled));
|