@wistia/ui 0.10.11 → 0.10.12
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 +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.10.
|
|
3
|
+
* @license @wistia/ui v0.10.12
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7906,10 +7906,10 @@ var getGapStyle = (gap) => {
|
|
|
7906
7906
|
if ((0, import_type_guards20.isNotNil)(gap)) {
|
|
7907
7907
|
if ((0, import_type_guards20.isRecord)(gap)) {
|
|
7908
7908
|
return Object.entries(gap).map(([key, value]) => {
|
|
7909
|
-
return `${key}-gap: var(--wui-${value})
|
|
7909
|
+
return `${key}-gap: var(--wui-${value});`;
|
|
7910
7910
|
}).join("");
|
|
7911
7911
|
}
|
|
7912
|
-
return `gap: var(--wui-${gap.toString()})
|
|
7912
|
+
return `gap: var(--wui-${gap.toString()});`;
|
|
7913
7913
|
}
|
|
7914
7914
|
return void 0;
|
|
7915
7915
|
};
|
|
@@ -9050,7 +9050,7 @@ var StyledLegend = import_styled_components41.default.legend`
|
|
|
9050
9050
|
margin-bottom: var(--space-01);
|
|
9051
9051
|
`;
|
|
9052
9052
|
var FormGroup = ({ children, label, ...props }) => {
|
|
9053
|
-
const ref = (0, import_react35.useRef)();
|
|
9053
|
+
const ref = (0, import_react35.useRef)(null);
|
|
9054
9054
|
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
9055
9055
|
Stack,
|
|
9056
9056
|
{
|
|
@@ -9118,7 +9118,7 @@ var FormComponent = ({
|
|
|
9118
9118
|
}, forwardedRef) => {
|
|
9119
9119
|
const [errors, setErrors] = (0, import_react36.useState)({});
|
|
9120
9120
|
const [hasSubmitted, setHasSubmitted] = (0, import_react36.useState)(false);
|
|
9121
|
-
const innerRef = (0, import_react36.useRef)();
|
|
9121
|
+
const innerRef = (0, import_react36.useRef)(null);
|
|
9122
9122
|
const ref = forwardedRef ?? innerRef;
|
|
9123
9123
|
const autoId = (0, import_react36.useId)();
|
|
9124
9124
|
const id = props.id ?? autoId;
|
|
@@ -12788,13 +12788,15 @@ var segmentedControlItemStyles = import_styled_components79.css`
|
|
|
12788
12788
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
12789
12789
|
}
|
|
12790
12790
|
|
|
12791
|
-
|
|
12791
|
+
/* note: react-toggle-group uses 'aria-selected' and react-tabs uses "active" */
|
|
12792
|
+
|
|
12793
|
+
/* we can't style off of 'data-state' since that gets overridden when wrapped in a Tooltip */
|
|
12794
|
+
&:hover:not([aria-checked='true'], [aria-selected='true']) {
|
|
12792
12795
|
background-color: var(--wui-color-bg-surface-secondary-hover);
|
|
12793
12796
|
}
|
|
12794
12797
|
|
|
12795
|
-
|
|
12796
|
-
&[
|
|
12797
|
-
&[data-state='active'] {
|
|
12798
|
+
&[aria-checked='true'],
|
|
12799
|
+
&[aria-selected='true'] {
|
|
12798
12800
|
color: var(--wui-color-text-selected);
|
|
12799
12801
|
cursor: default;
|
|
12800
12802
|
transition: none;
|