@wistia/ui 0.18.14-beta.96eaae8a.95c7760 → 0.18.14-beta.ceb2f7dc.71949ac
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 +41 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -28
- package/dist/index.d.ts +14 -28
- package/dist/index.mjs +41 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -17
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.14-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.14-beta.ceb2f7dc.71949ac
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2573,17 +2573,20 @@ var dateTime = {
|
|
|
2573
2573
|
|
|
2574
2574
|
// src/helpers/mergeRefs/mergeRefs.ts
|
|
2575
2575
|
var import_type_guards5 = require("@wistia/type-guards");
|
|
2576
|
-
var mergeRefs = (
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
}
|
|
2576
|
+
var mergeRefs = (
|
|
2577
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
2578
|
+
(refs) => (value) => {
|
|
2579
|
+
refs.forEach((ref) => {
|
|
2580
|
+
if ((0, import_type_guards5.isFunction)(ref)) {
|
|
2581
|
+
ref(value);
|
|
2582
|
+
return;
|
|
2583
|
+
}
|
|
2584
|
+
if ((0, import_type_guards5.isNotNil)(ref)) {
|
|
2585
|
+
ref.current = value;
|
|
2586
|
+
}
|
|
2587
|
+
});
|
|
2588
|
+
}
|
|
2589
|
+
);
|
|
2587
2590
|
|
|
2588
2591
|
// src/helpers/mq/mq.ts
|
|
2589
2592
|
var import_polished = require("polished");
|
|
@@ -2659,7 +2662,7 @@ var import_react7 = require("react");
|
|
|
2659
2662
|
var import_react6 = require("react");
|
|
2660
2663
|
var useTimedToggle = (initialValue) => {
|
|
2661
2664
|
const [value, setValue] = (0, import_react6.useState)(false);
|
|
2662
|
-
const timeoutRef = (0, import_react6.useRef)();
|
|
2665
|
+
const timeoutRef = (0, import_react6.useRef)(void 0);
|
|
2663
2666
|
const initialValueRef = (0, import_react6.useRef)(initialValue);
|
|
2664
2667
|
const toggleValue = (timeout) => {
|
|
2665
2668
|
clearTimeout(timeoutRef.current);
|
|
@@ -3025,8 +3028,8 @@ var isEventTargetSupported = (eventTarget) => (
|
|
|
3025
3028
|
Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
|
|
3026
3029
|
);
|
|
3027
3030
|
var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
|
|
3028
|
-
const savedEventHandler = (0, import_react12.useRef)();
|
|
3029
|
-
const savedEventOptions = (0, import_react12.useRef)();
|
|
3031
|
+
const savedEventHandler = (0, import_react12.useRef)(void 0);
|
|
3032
|
+
const savedEventOptions = (0, import_react12.useRef)(void 0);
|
|
3030
3033
|
(0, import_react12.useEffect)(() => {
|
|
3031
3034
|
savedEventHandler.current = eventHandler;
|
|
3032
3035
|
}, [eventHandler]);
|
|
@@ -3219,7 +3222,7 @@ var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) =
|
|
|
3219
3222
|
// src/hooks/usePreviousValue/usePreviousValue.ts
|
|
3220
3223
|
var import_react18 = require("react");
|
|
3221
3224
|
var usePreviousValue = (value) => {
|
|
3222
|
-
const ref = (0, import_react18.useRef)();
|
|
3225
|
+
const ref = (0, import_react18.useRef)(void 0);
|
|
3223
3226
|
(0, import_react18.useEffect)(() => {
|
|
3224
3227
|
ref.current = value;
|
|
3225
3228
|
});
|
|
@@ -12463,7 +12466,9 @@ var Root = (0, import_styled_components66.styled)(import_react_slider.Root)`
|
|
|
12463
12466
|
var Track = (0, import_styled_components66.styled)(import_react_slider.Track)`
|
|
12464
12467
|
width: 100%;
|
|
12465
12468
|
`;
|
|
12466
|
-
var Thumb = (0, import_styled_components66.styled)(import_react_slider.Thumb)
|
|
12469
|
+
var Thumb = (0, import_styled_components66.styled)(import_react_slider.Thumb)`
|
|
12470
|
+
position: relative;
|
|
12471
|
+
`;
|
|
12467
12472
|
var ThumbInner = import_styled_components66.styled.div`
|
|
12468
12473
|
cursor: pointer;
|
|
12469
12474
|
display: block;
|
|
@@ -13681,8 +13686,12 @@ MenuItemButton.displayName = "MenuItemButton_UI";
|
|
|
13681
13686
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
13682
13687
|
var import_styled_components75 = require("styled-components");
|
|
13683
13688
|
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
13684
|
-
var StyledMenuItemLabel = import_styled_components75.styled.span
|
|
13685
|
-
|
|
13689
|
+
var StyledMenuItemLabel = import_styled_components75.styled.span`
|
|
13690
|
+
/* avoid no-empty-source rule */
|
|
13691
|
+
`;
|
|
13692
|
+
var StyledMenuItemDescription = (0, import_styled_components75.styled)(Text)`
|
|
13693
|
+
/* avoid no-empty-source rule */
|
|
13694
|
+
`;
|
|
13686
13695
|
var MenuItemLabel = ({ children }) => {
|
|
13687
13696
|
return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(StyledMenuItemLabel, { children });
|
|
13688
13697
|
};
|
|
@@ -14893,6 +14902,7 @@ var EditableTextDisplayComponent = (0, import_react65.forwardRef)(
|
|
|
14893
14902
|
);
|
|
14894
14903
|
EditableTextDisplayComponent.displayName = "EditableTextDisplay_UI";
|
|
14895
14904
|
var EditableTextDisplay = makePolymorphic(
|
|
14905
|
+
// @ts-expect-error makePolymorphic is causing issues with types in R19
|
|
14896
14906
|
EditableTextDisplayComponent
|
|
14897
14907
|
);
|
|
14898
14908
|
|
|
@@ -17754,7 +17764,9 @@ var TableSectionContext = (0, import_react92.createContext)(null);
|
|
|
17754
17764
|
|
|
17755
17765
|
// src/components/Table/TableBody.tsx
|
|
17756
17766
|
var import_jsx_runtime324 = require("react/jsx-runtime");
|
|
17757
|
-
var StyledTableBody = import_styled_components117.styled.tbody
|
|
17767
|
+
var StyledTableBody = import_styled_components117.styled.tbody`
|
|
17768
|
+
width: 100%;
|
|
17769
|
+
`;
|
|
17758
17770
|
var TableBody = ({ children, ...props }) => {
|
|
17759
17771
|
return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(StyledTableBody, { ...props, children }) });
|
|
17760
17772
|
};
|
|
@@ -17791,7 +17803,9 @@ var TableCell = ({ children, ...props }) => {
|
|
|
17791
17803
|
// src/components/Table/TableFoot.tsx
|
|
17792
17804
|
var import_styled_components119 = require("styled-components");
|
|
17793
17805
|
var import_jsx_runtime326 = require("react/jsx-runtime");
|
|
17794
|
-
var StyledTableFoot = import_styled_components119.styled.tfoot
|
|
17806
|
+
var StyledTableFoot = import_styled_components119.styled.tfoot`
|
|
17807
|
+
width: 100%;
|
|
17808
|
+
`;
|
|
17795
17809
|
var TableFoot = ({ children, ...props }) => {
|
|
17796
17810
|
return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(StyledTableFoot, { ...props, children }) });
|
|
17797
17811
|
};
|
|
@@ -17799,7 +17813,9 @@ var TableFoot = ({ children, ...props }) => {
|
|
|
17799
17813
|
// src/components/Table/TableHead.tsx
|
|
17800
17814
|
var import_styled_components120 = require("styled-components");
|
|
17801
17815
|
var import_jsx_runtime327 = require("react/jsx-runtime");
|
|
17802
|
-
var StyledThead = import_styled_components120.styled.thead
|
|
17816
|
+
var StyledThead = import_styled_components120.styled.thead`
|
|
17817
|
+
width: 100%;
|
|
17818
|
+
`;
|
|
17803
17819
|
var TableHead = ({ children, ...props }) => {
|
|
17804
17820
|
return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(StyledThead, { ...props, children }) });
|
|
17805
17821
|
};
|
|
@@ -17807,7 +17823,9 @@ var TableHead = ({ children, ...props }) => {
|
|
|
17807
17823
|
// src/components/Table/TableRow.tsx
|
|
17808
17824
|
var import_styled_components121 = require("styled-components");
|
|
17809
17825
|
var import_jsx_runtime328 = require("react/jsx-runtime");
|
|
17810
|
-
var StyledTableRow = import_styled_components121.styled.tr
|
|
17826
|
+
var StyledTableRow = import_styled_components121.styled.tr`
|
|
17827
|
+
width: 100%;
|
|
17828
|
+
`;
|
|
17811
17829
|
var TableRow = ({ children, ...props }) => {
|
|
17812
17830
|
return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(StyledTableRow, { ...props, children });
|
|
17813
17831
|
};
|