@wistia/ui 0.10.3-beta.d1730d66.cdea48e → 0.10.3-beta.f9f033db.a9ffeb4
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 +16 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +23 -13
- 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.10.3-beta.
|
|
3
|
+
* @license @wistia/ui v0.10.3-beta.f9f033db.a9ffeb4
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2699,7 +2699,6 @@ var ellipsisStyle = import_styled_components14.css`
|
|
|
2699
2699
|
text-overflow: ellipsis;
|
|
2700
2700
|
white-space: nowrap;
|
|
2701
2701
|
display: block;
|
|
2702
|
-
word-break: break-all;
|
|
2703
2702
|
|
|
2704
2703
|
/*
|
|
2705
2704
|
Using feature detection (i.e., -webkit-named-image) we only target Safari browsers
|
|
@@ -2719,6 +2718,9 @@ var ellipsisStyle = import_styled_components14.css`
|
|
|
2719
2718
|
}
|
|
2720
2719
|
}
|
|
2721
2720
|
`;
|
|
2721
|
+
var ellipsisFlexParentStyle = import_styled_components14.css`
|
|
2722
|
+
min-width: 0;
|
|
2723
|
+
`;
|
|
2722
2724
|
var EllipsisComponent = import_styled_components14.default.span`
|
|
2723
2725
|
${ellipsisStyle};
|
|
2724
2726
|
${({ $lines }) => {
|
|
@@ -8759,9 +8761,17 @@ var Checkbox = (0, import_react34.forwardRef)(
|
|
|
8759
8761
|
const generatedId = (0, import_react34.useId)();
|
|
8760
8762
|
const computedId = (0, import_type_guards26.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
|
|
8761
8763
|
const checkboxGroupContext = useCheckboxGroup();
|
|
8762
|
-
const
|
|
8764
|
+
const groupName = checkboxGroupContext?.name;
|
|
8763
8765
|
const contextOnChange = checkboxGroupContext?.onChange;
|
|
8764
|
-
|
|
8766
|
+
let checkboxName = name;
|
|
8767
|
+
if (groupName) {
|
|
8768
|
+
if ((0, import_type_guards26.isUndefined)(value)) {
|
|
8769
|
+
console.error("Checkbox in CheckboxGroup is missing a value prop.");
|
|
8770
|
+
checkboxName = groupName;
|
|
8771
|
+
} else {
|
|
8772
|
+
checkboxName = `${groupName}[${value}]`;
|
|
8773
|
+
}
|
|
8774
|
+
}
|
|
8765
8775
|
const handleOnChange = onChange ?? contextOnChange;
|
|
8766
8776
|
return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(StyledCheckboxWrapper, { disabled, children: [
|
|
8767
8777
|
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
@@ -11731,9 +11741,9 @@ var Radio = (0, import_react57.forwardRef)(
|
|
|
11731
11741
|
const generatedId = (0, import_react57.useId)();
|
|
11732
11742
|
const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
|
|
11733
11743
|
const radioGroupContext = useRadioGroup();
|
|
11734
|
-
const
|
|
11744
|
+
const groupName = radioGroupContext?.name;
|
|
11735
11745
|
const contextOnChange = radioGroupContext?.onChange;
|
|
11736
|
-
const radioName = name ??
|
|
11746
|
+
const radioName = name ?? groupName;
|
|
11737
11747
|
const handleOnChange = onChange ?? contextOnChange;
|
|
11738
11748
|
return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
|
|
11739
11749
|
StyledRadioWrapper,
|