@wistia/ui 0.18.14-beta.3d78b4cc.f1b5721 → 0.18.14-beta.4c71661a.d6acc83

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.3d78b4cc.f1b5721
3
+ * @license @wistia/ui v0.18.14-beta.4c71661a.d6acc83
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/
@@ -7943,19 +7941,9 @@ Icon.displayName = "Icon_UI";
7943
7941
  // src/components/Link/Link.tsx
7944
7942
  var import_react22 = require("react");
7945
7943
  var import_styled_components22 = require("styled-components");
7944
+ var import_react_router = require("react-router");
7946
7945
  var import_type_guards14 = require("@wistia/type-guards");
7947
7946
  var import_jsx_runtime207 = require("react/jsx-runtime");
7948
- var RouterLink = null;
7949
- var useInRouterContext = () => false;
7950
- var isRouterEnabled = false;
7951
- import("react-router").then((module2) => {
7952
- RouterLink = module2.Link;
7953
- useInRouterContext = module2.useInRouterContext;
7954
- isRouterEnabled = true;
7955
- return module2;
7956
- }).catch(() => {
7957
- isRouterEnabled = false;
7958
- });
7959
7947
  var generateHref = (href, type, disabled) => {
7960
7948
  if (disabled || (0, import_type_guards14.isNil)(href)) {
7961
7949
  return void 0;
@@ -8014,9 +8002,9 @@ var Link = (0, import_react22.forwardRef)(
8014
8002
  role,
8015
8003
  ...props
8016
8004
  }, ref) => {
8017
- const isInRouterContext = useInRouterContext();
8005
+ const inRouterContext = (0, import_react_router.useInRouterContext)();
8018
8006
  const to = generateHref(props.href, type, disabled);
8019
- const shouldUseReactRouterLink = isInRouterContext && isRouterEnabled && type !== "external" && !to?.startsWith("http");
8007
+ const shouldUseReactRouterLink = inRouterContext && type !== "external" && !to?.startsWith("http");
8020
8008
  const handleClick = async (event) => {
8021
8009
  if (disabled) {
8022
8010
  event.preventDefault();
@@ -8065,7 +8053,8 @@ var Link = (0, import_react22.forwardRef)(
8065
8053
  const externalLinkProps = type === "external" ? { target: "_blank", rel: "noopener noreferrer" } : null;
8066
8054
  const routerSpecificProps = shouldUseReactRouterLink ? {
8067
8055
  // TODO: Using 'any' here due to styled-components typing limitations with RouterLink
8068
- as: RouterLink,
8056
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
8057
+ as: import_react_router.Link,
8069
8058
  to: to ?? ""
8070
8059
  } : {
8071
8060
  as: "a",
@@ -8251,7 +8240,7 @@ var StyledActionButton = (0, import_styled_components24.styled)(Button)`
8251
8240
  min-width: 96px;
8252
8241
  padding: var(--wui-space-03);
8253
8242
  background: var(--wui-color-bg-surface-secondary);
8254
- grid-row-gap: var(--wui-space-02);
8243
+ row-gap: var(--wui-space-02);
8255
8244
  border-radius: var(--wui-border-radius-03);
8256
8245
  flex: 0 0 auto;
8257
8246
  transition: background-color var(--wui-motion-duration-02) var(--wui-motion-ease);
@@ -10374,9 +10363,9 @@ var isClickableElement = (element) => {
10374
10363
  };
10375
10364
  var ClickRegion = ({ children, targetRef }) => {
10376
10365
  (0, import_react39.useEffect)(() => {
10377
- if (targetRef.current && targetRef.current.tagName === "A") {
10366
+ if (targetRef.current?.tagName === "A") {
10378
10367
  targetRef.current.setAttribute("data-click-region-target-link", "");
10379
- } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
10368
+ } else if (targetRef.current?.tagName === "BUTTON") {
10380
10369
  targetRef.current.setAttribute("data-click-region-target-button", "");
10381
10370
  } else {
10382
10371
  }
@@ -12474,7 +12463,9 @@ var Root = (0, import_styled_components66.styled)(import_react_slider.Root)`
12474
12463
  var Track = (0, import_styled_components66.styled)(import_react_slider.Track)`
12475
12464
  width: 100%;
12476
12465
  `;
12477
- var Thumb = (0, import_styled_components66.styled)(import_react_slider.Thumb)``;
12466
+ var Thumb = (0, import_styled_components66.styled)(import_react_slider.Thumb)`
12467
+ position: relative;
12468
+ `;
12478
12469
  var ThumbInner = import_styled_components66.styled.div`
12479
12470
  cursor: pointer;
12480
12471
  display: block;
@@ -13692,8 +13683,12 @@ MenuItemButton.displayName = "MenuItemButton_UI";
13692
13683
  // src/components/Menu/MenuItemLabelDescription.tsx
13693
13684
  var import_styled_components75 = require("styled-components");
13694
13685
  var import_jsx_runtime269 = require("react/jsx-runtime");
13695
- var StyledMenuItemLabel = import_styled_components75.styled.span``;
13696
- var StyledMenuItemDescription = (0, import_styled_components75.styled)(Text)``;
13686
+ var StyledMenuItemLabel = import_styled_components75.styled.span`
13687
+ /* avoid no-empty-source rule */
13688
+ `;
13689
+ var StyledMenuItemDescription = (0, import_styled_components75.styled)(Text)`
13690
+ /* avoid no-empty-source rule */
13691
+ `;
13697
13692
  var MenuItemLabel = ({ children }) => {
13698
13693
  return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(StyledMenuItemLabel, { children });
13699
13694
  };
@@ -14825,7 +14820,8 @@ var StyledEditableTextDisplay = import_styled_components85.styled.div`
14825
14820
  ${({ $minLines }) => (0, import_type_guards46.isNotNil)($minLines) && import_styled_components85.css`
14826
14821
  min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));
14827
14822
  `}
14828
- word-break: break-word;
14823
+ word-break: normal;
14824
+ overflow-wrap: anywhere;
14829
14825
 
14830
14826
  &[data-wui-editable-text-display='placeholder'] {
14831
14827
  color: var(--wui-color-text-secondary);
@@ -17764,7 +17760,9 @@ var TableSectionContext = (0, import_react92.createContext)(null);
17764
17760
 
17765
17761
  // src/components/Table/TableBody.tsx
17766
17762
  var import_jsx_runtime324 = require("react/jsx-runtime");
17767
- var StyledTableBody = import_styled_components117.styled.tbody``;
17763
+ var StyledTableBody = import_styled_components117.styled.tbody`
17764
+ width: 100%;
17765
+ `;
17768
17766
  var TableBody = ({ children, ...props }) => {
17769
17767
  return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(StyledTableBody, { ...props, children }) });
17770
17768
  };
@@ -17801,7 +17799,9 @@ var TableCell = ({ children, ...props }) => {
17801
17799
  // src/components/Table/TableFoot.tsx
17802
17800
  var import_styled_components119 = require("styled-components");
17803
17801
  var import_jsx_runtime326 = require("react/jsx-runtime");
17804
- var StyledTableFoot = import_styled_components119.styled.tfoot``;
17802
+ var StyledTableFoot = import_styled_components119.styled.tfoot`
17803
+ width: 100%;
17804
+ `;
17805
17805
  var TableFoot = ({ children, ...props }) => {
17806
17806
  return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(StyledTableFoot, { ...props, children }) });
17807
17807
  };
@@ -17809,7 +17809,9 @@ var TableFoot = ({ children, ...props }) => {
17809
17809
  // src/components/Table/TableHead.tsx
17810
17810
  var import_styled_components120 = require("styled-components");
17811
17811
  var import_jsx_runtime327 = require("react/jsx-runtime");
17812
- var StyledThead = import_styled_components120.styled.thead``;
17812
+ var StyledThead = import_styled_components120.styled.thead`
17813
+ width: 100%;
17814
+ `;
17813
17815
  var TableHead = ({ children, ...props }) => {
17814
17816
  return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(StyledThead, { ...props, children }) });
17815
17817
  };
@@ -17817,7 +17819,9 @@ var TableHead = ({ children, ...props }) => {
17817
17819
  // src/components/Table/TableRow.tsx
17818
17820
  var import_styled_components121 = require("styled-components");
17819
17821
  var import_jsx_runtime328 = require("react/jsx-runtime");
17820
- var StyledTableRow = import_styled_components121.styled.tr``;
17822
+ var StyledTableRow = import_styled_components121.styled.tr`
17823
+ width: 100%;
17824
+ `;
17821
17825
  var TableRow = ({ children, ...props }) => {
17822
17826
  return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(StyledTableRow, { ...props, children });
17823
17827
  };