@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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.10.11
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
- &:hover:not([data-state='on'], [data-state='active'], [aria-selected='true']) {
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
- /* note: react-toggle-group uses "on" and react-tabs uses "active" */
12796
- &[data-state='on'],
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;