@wistia/ui 0.18.14-beta.765a7c90.412f086 → 0.18.14-beta.8bc70519.0adef9c

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.18.14-beta.765a7c90.412f086
3
+ * @license @wistia/ui v0.18.14-beta.8bc70519.0adef9c
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -208,8 +208,6 @@ var import_styled_components13 = require("styled-components");
208
208
  // src/css/globalStyleAdjustmentsCss.tsx
209
209
  var import_styled_components = require("styled-components");
210
210
  var globalStyleAdjustmentsCss = import_styled_components.css`
211
- /* stylelint-disable property-no-vendor-prefix */
212
-
213
211
  /**
214
212
  * 1. Change from 'content-box' so that 'width' calculations are unaffected by 'padding' or 'border'
215
213
  See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
@@ -2575,17 +2573,20 @@ var dateTime = {
2575
2573
 
2576
2574
  // src/helpers/mergeRefs/mergeRefs.ts
2577
2575
  var import_type_guards5 = require("@wistia/type-guards");
2578
- var mergeRefs = (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
- };
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
+ );
2589
2590
 
2590
2591
  // src/helpers/mq/mq.ts
2591
2592
  var import_polished = require("polished");
@@ -2661,7 +2662,7 @@ var import_react7 = require("react");
2661
2662
  var import_react6 = require("react");
2662
2663
  var useTimedToggle = (initialValue) => {
2663
2664
  const [value, setValue] = (0, import_react6.useState)(false);
2664
- const timeoutRef = (0, import_react6.useRef)();
2665
+ const timeoutRef = (0, import_react6.useRef)(void 0);
2665
2666
  const initialValueRef = (0, import_react6.useRef)(initialValue);
2666
2667
  const toggleValue = (timeout) => {
2667
2668
  clearTimeout(timeoutRef.current);
@@ -3027,8 +3028,8 @@ var isEventTargetSupported = (eventTarget) => (
3027
3028
  Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
3028
3029
  );
3029
3030
  var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
3030
- const savedEventHandler = (0, import_react12.useRef)();
3031
- const savedEventOptions = (0, import_react12.useRef)();
3031
+ const savedEventHandler = (0, import_react12.useRef)(void 0);
3032
+ const savedEventOptions = (0, import_react12.useRef)(void 0);
3032
3033
  (0, import_react12.useEffect)(() => {
3033
3034
  savedEventHandler.current = eventHandler;
3034
3035
  }, [eventHandler]);
@@ -3221,7 +3222,7 @@ var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) =
3221
3222
  // src/hooks/usePreviousValue/usePreviousValue.ts
3222
3223
  var import_react18 = require("react");
3223
3224
  var usePreviousValue = (value) => {
3224
- const ref = (0, import_react18.useRef)();
3225
+ const ref = (0, import_react18.useRef)(void 0);
3225
3226
  (0, import_react18.useEffect)(() => {
3226
3227
  ref.current = value;
3227
3228
  });
@@ -8242,7 +8243,7 @@ var StyledActionButton = (0, import_styled_components24.styled)(Button)`
8242
8243
  min-width: 96px;
8243
8244
  padding: var(--wui-space-03);
8244
8245
  background: var(--wui-color-bg-surface-secondary);
8245
- grid-row-gap: var(--wui-space-02);
8246
+ row-gap: var(--wui-space-02);
8246
8247
  border-radius: var(--wui-border-radius-03);
8247
8248
  flex: 0 0 auto;
8248
8249
  transition: background-color var(--wui-motion-duration-02) var(--wui-motion-ease);
@@ -12465,7 +12466,9 @@ var Root = (0, import_styled_components66.styled)(import_react_slider.Root)`
12465
12466
  var Track = (0, import_styled_components66.styled)(import_react_slider.Track)`
12466
12467
  width: 100%;
12467
12468
  `;
12468
- 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
+ `;
12469
12472
  var ThumbInner = import_styled_components66.styled.div`
12470
12473
  cursor: pointer;
12471
12474
  display: block;
@@ -13683,8 +13686,12 @@ MenuItemButton.displayName = "MenuItemButton_UI";
13683
13686
  // src/components/Menu/MenuItemLabelDescription.tsx
13684
13687
  var import_styled_components75 = require("styled-components");
13685
13688
  var import_jsx_runtime269 = require("react/jsx-runtime");
13686
- var StyledMenuItemLabel = import_styled_components75.styled.span``;
13687
- var StyledMenuItemDescription = (0, import_styled_components75.styled)(Text)``;
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
+ `;
13688
13695
  var MenuItemLabel = ({ children }) => {
13689
13696
  return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(StyledMenuItemLabel, { children });
13690
13697
  };
@@ -14816,7 +14823,8 @@ var StyledEditableTextDisplay = import_styled_components85.styled.div`
14816
14823
  ${({ $minLines }) => (0, import_type_guards46.isNotNil)($minLines) && import_styled_components85.css`
14817
14824
  min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));
14818
14825
  `}
14819
- word-break: break-word;
14826
+ word-break: normal;
14827
+ overflow-wrap: anywhere;
14820
14828
 
14821
14829
  &[data-wui-editable-text-display='placeholder'] {
14822
14830
  color: var(--wui-color-text-secondary);
@@ -14894,6 +14902,7 @@ var EditableTextDisplayComponent = (0, import_react65.forwardRef)(
14894
14902
  );
14895
14903
  EditableTextDisplayComponent.displayName = "EditableTextDisplay_UI";
14896
14904
  var EditableTextDisplay = makePolymorphic(
14905
+ // @ts-expect-error makePolymorphic is causing issues with types in R19
14897
14906
  EditableTextDisplayComponent
14898
14907
  );
14899
14908
 
@@ -17755,7 +17764,9 @@ var TableSectionContext = (0, import_react92.createContext)(null);
17755
17764
 
17756
17765
  // src/components/Table/TableBody.tsx
17757
17766
  var import_jsx_runtime324 = require("react/jsx-runtime");
17758
- var StyledTableBody = import_styled_components117.styled.tbody``;
17767
+ var StyledTableBody = import_styled_components117.styled.tbody`
17768
+ width: 100%;
17769
+ `;
17759
17770
  var TableBody = ({ children, ...props }) => {
17760
17771
  return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(StyledTableBody, { ...props, children }) });
17761
17772
  };
@@ -17792,7 +17803,9 @@ var TableCell = ({ children, ...props }) => {
17792
17803
  // src/components/Table/TableFoot.tsx
17793
17804
  var import_styled_components119 = require("styled-components");
17794
17805
  var import_jsx_runtime326 = require("react/jsx-runtime");
17795
- var StyledTableFoot = import_styled_components119.styled.tfoot``;
17806
+ var StyledTableFoot = import_styled_components119.styled.tfoot`
17807
+ width: 100%;
17808
+ `;
17796
17809
  var TableFoot = ({ children, ...props }) => {
17797
17810
  return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(StyledTableFoot, { ...props, children }) });
17798
17811
  };
@@ -17800,7 +17813,9 @@ var TableFoot = ({ children, ...props }) => {
17800
17813
  // src/components/Table/TableHead.tsx
17801
17814
  var import_styled_components120 = require("styled-components");
17802
17815
  var import_jsx_runtime327 = require("react/jsx-runtime");
17803
- var StyledThead = import_styled_components120.styled.thead``;
17816
+ var StyledThead = import_styled_components120.styled.thead`
17817
+ width: 100%;
17818
+ `;
17804
17819
  var TableHead = ({ children, ...props }) => {
17805
17820
  return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(StyledThead, { ...props, children }) });
17806
17821
  };
@@ -17808,7 +17823,9 @@ var TableHead = ({ children, ...props }) => {
17808
17823
  // src/components/Table/TableRow.tsx
17809
17824
  var import_styled_components121 = require("styled-components");
17810
17825
  var import_jsx_runtime328 = require("react/jsx-runtime");
17811
- var StyledTableRow = import_styled_components121.styled.tr``;
17826
+ var StyledTableRow = import_styled_components121.styled.tr`
17827
+ width: 100%;
17828
+ `;
17812
17829
  var TableRow = ({ children, ...props }) => {
17813
17830
  return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(StyledTableRow, { ...props, children });
17814
17831
  };