@wistia/ui 0.18.0-beta.af6ce7a5.9372ce9 → 0.18.0-beta.ce6c1712.725e361
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 +22 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +22 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
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.ce6c1712.725e361
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2992,11 +2992,26 @@ var useForceUpdate = () => {
|
|
|
2992
2992
|
var import_react11 = require("react");
|
|
2993
2993
|
var useIsHovered = () => {
|
|
2994
2994
|
const [isHovered, setIsHovered] = (0, import_react11.useState)(false);
|
|
2995
|
-
const onFocus = () =>
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
const
|
|
2995
|
+
const onFocus = (event) => {
|
|
2996
|
+
if (event.target !== event.currentTarget) return;
|
|
2997
|
+
setIsHovered(true);
|
|
2998
|
+
};
|
|
2999
|
+
const onMouseEnter = (event) => {
|
|
3000
|
+
if (event.target !== event.currentTarget) return;
|
|
3001
|
+
setIsHovered(true);
|
|
3002
|
+
};
|
|
3003
|
+
const onMouseMove = (event) => {
|
|
3004
|
+
if (event.target !== event.currentTarget) return;
|
|
3005
|
+
setIsHovered(true);
|
|
3006
|
+
};
|
|
3007
|
+
const onBlur = (event) => {
|
|
3008
|
+
if (event.target !== event.currentTarget) return;
|
|
3009
|
+
setIsHovered(false);
|
|
3010
|
+
};
|
|
3011
|
+
const onMouseLeave = (event) => {
|
|
3012
|
+
if (event.target !== event.currentTarget) return;
|
|
3013
|
+
setIsHovered(false);
|
|
3014
|
+
};
|
|
3000
3015
|
const hoverProps = {
|
|
3001
3016
|
onFocus,
|
|
3002
3017
|
onMouseEnter,
|
|
@@ -7904,7 +7919,6 @@ var StyledButton = import_styled_components22.styled.button`
|
|
|
7904
7919
|
${({ $variant }) => buttonVariantsStyles[$variant]}
|
|
7905
7920
|
${({ $unstyled }) => !$unstyled && buttonBaseStyles}
|
|
7906
7921
|
${({ $fullWidth }) => $fullWidth && "width: 100%;"}
|
|
7907
|
-
align-self: flex-start;
|
|
7908
7922
|
text-align: center;
|
|
7909
7923
|
`;
|
|
7910
7924
|
var StyledButtonContent = import_styled_components22.styled.div`
|
|
@@ -8601,7 +8615,7 @@ var DEFAULT_ELEMENT = "div";
|
|
|
8601
8615
|
var BoxComponent = (0, import_react27.forwardRef)(
|
|
8602
8616
|
({
|
|
8603
8617
|
alignContent = "stretch",
|
|
8604
|
-
alignItems = "
|
|
8618
|
+
alignItems = "flex-start",
|
|
8605
8619
|
alignSelf,
|
|
8606
8620
|
basis,
|
|
8607
8621
|
children,
|
|
@@ -9120,10 +9134,6 @@ var ButtonGroupComponent = import_styled_components31.styled.div`
|
|
|
9120
9134
|
justify-content: ${({ $align }) => getAlignment($align)};
|
|
9121
9135
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
9122
9136
|
|
|
9123
|
-
${StyledButton} {
|
|
9124
|
-
align-self: unset;
|
|
9125
|
-
}
|
|
9126
|
-
|
|
9127
9137
|
${mq.smAndUp} {
|
|
9128
9138
|
flex-direction: row;
|
|
9129
9139
|
}
|