@wistia/ui 0.14.23-beta.7b933317.3fa4d21 → 0.14.23-beta.8d040e87.67a344b

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.14.23-beta.7b933317.3fa4d21
3
+ * @license @wistia/ui v0.14.23-beta.8d040e87.67a344b
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -116,6 +116,7 @@ __export(index_exports, {
116
116
  Label: () => Label,
117
117
  Link: () => Link,
118
118
  List: () => List,
119
+ Mark: () => Mark,
119
120
  Menu: () => Menu,
120
121
  MenuItem: () => MenuItem,
121
122
  MenuItemDescription: () => MenuItemDescription,
@@ -1521,9 +1522,9 @@ var colorTokens = import_styled_components10.css`
1521
1522
  ${lightGlobalTokens}
1522
1523
  /* Dark mode is disabled until we have a more robust plan for supporting it */
1523
1524
 
1524
- /* @media (prefers-color-scheme: dark) {
1525
+ @media (prefers-color-scheme: dark) {
1525
1526
  ${darkGlobalTokens}
1526
- } */
1527
+ }
1527
1528
  ${colorAliasTokens}
1528
1529
  `;
1529
1530
  var designTokens = import_styled_components10.css`
@@ -2076,20 +2077,17 @@ var dateTime = {
2076
2077
 
2077
2078
  // src/helpers/mergeRefs/mergeRefs.ts
2078
2079
  var import_type_guards5 = require("@wistia/type-guards");
2079
- var mergeRefs = (
2080
- // eslint-disable-next-line @typescript-eslint/no-deprecated
2081
- (refs) => (value) => {
2082
- refs.forEach((ref) => {
2083
- if ((0, import_type_guards5.isFunction)(ref)) {
2084
- ref(value);
2085
- return;
2086
- }
2087
- if ((0, import_type_guards5.isNotNil)(ref)) {
2088
- ref.current = value;
2089
- }
2090
- });
2091
- }
2092
- );
2080
+ var mergeRefs = (refs) => (value) => {
2081
+ refs.forEach((ref) => {
2082
+ if ((0, import_type_guards5.isFunction)(ref)) {
2083
+ ref(value);
2084
+ return;
2085
+ }
2086
+ if ((0, import_type_guards5.isNotNil)(ref)) {
2087
+ ref.current = value;
2088
+ }
2089
+ });
2090
+ };
2093
2091
 
2094
2092
  // src/helpers/mq/mq.ts
2095
2093
  var import_polished = require("polished");
@@ -2165,7 +2163,7 @@ var import_react7 = require("react");
2165
2163
  var import_react6 = require("react");
2166
2164
  var useTimedToggle = (initialValue) => {
2167
2165
  const [value, setValue] = (0, import_react6.useState)(false);
2168
- const timeoutRef = (0, import_react6.useRef)(void 0);
2166
+ const timeoutRef = (0, import_react6.useRef)();
2169
2167
  const initialValueRef = (0, import_react6.useRef)(initialValue);
2170
2168
  const toggleValue = (timeout) => {
2171
2169
  clearTimeout(timeoutRef.current);
@@ -2531,8 +2529,8 @@ var isEventTargetSupported = (eventTarget) => (
2531
2529
  Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
2532
2530
  );
2533
2531
  var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
2534
- const savedEventHandler = (0, import_react12.useRef)(void 0);
2535
- const savedEventOptions = (0, import_react12.useRef)(void 0);
2532
+ const savedEventHandler = (0, import_react12.useRef)();
2533
+ const savedEventOptions = (0, import_react12.useRef)();
2536
2534
  (0, import_react12.useEffect)(() => {
2537
2535
  savedEventHandler.current = eventHandler;
2538
2536
  }, [eventHandler]);
@@ -2725,7 +2723,7 @@ var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) =
2725
2723
  // src/hooks/usePreviousValue/usePreviousValue.ts
2726
2724
  var import_react18 = require("react");
2727
2725
  var usePreviousValue = (value) => {
2728
- const ref = (0, import_react18.useRef)(void 0);
2726
+ const ref = (0, import_react18.useRef)();
2729
2727
  (0, import_react18.useEffect)(() => {
2730
2728
  ref.current = value;
2731
2729
  });
@@ -8353,17 +8351,25 @@ var import_react29 = require("react");
8353
8351
  var import_styled_components29 = __toESM(require("styled-components"));
8354
8352
  var import_type_guards22 = require("@wistia/type-guards");
8355
8353
  var import_jsx_runtime206 = require("react/jsx-runtime");
8356
- var bodyBoldStyles = import_styled_components29.css`
8354
+ var sharedBodyStyle = import_styled_components29.css`
8357
8355
  > strong,
8358
8356
  b {
8359
8357
  font-weight: var(--wui-typography-weight-body-bold);
8360
8358
  }
8359
+
8360
+ > mark {
8361
+ font-weight: var(--wui-typography-weight-body-mark);
8362
+ }
8361
8363
  `;
8362
8364
  var labelBoldStyles = import_styled_components29.css`
8363
8365
  > strong,
8364
8366
  b {
8365
8367
  font-weight: var(--wui-typography-weight-label-bold);
8366
8368
  }
8369
+
8370
+ > mark {
8371
+ font-weight: var(--wui-typography-weight-label-mark);
8372
+ }
8367
8373
  `;
8368
8374
  var body1TextStyle = import_styled_components29.css`
8369
8375
  --font-family: var(--wui-typography-body-1-family);
@@ -8371,7 +8377,7 @@ var body1TextStyle = import_styled_components29.css`
8371
8377
  --font-weight: var(--wui-typography-body-1-weight);
8372
8378
  --line-height: var(--wui-typography-body-1-line-height);
8373
8379
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8374
- ${bodyBoldStyles}
8380
+ ${sharedBodyStyle}
8375
8381
  `;
8376
8382
  var body2TextStyle = import_styled_components29.css`
8377
8383
  --font-family: var(--wui-typography-body-2-family);
@@ -8379,7 +8385,7 @@ var body2TextStyle = import_styled_components29.css`
8379
8385
  --font-weight: var(--wui-typography-body-2-weight);
8380
8386
  --line-height: var(--wui-typography-body-2-line-height);
8381
8387
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8382
- ${bodyBoldStyles}
8388
+ ${sharedBodyStyle}
8383
8389
  `;
8384
8390
  var body3TextStyle = import_styled_components29.css`
8385
8391
  --font-family: var(--wui-typography-body-3-family);
@@ -8387,7 +8393,7 @@ var body3TextStyle = import_styled_components29.css`
8387
8393
  --font-weight: var(--wui-typography-body-3-weight);
8388
8394
  --line-height: var(--wui-typography-body-3-line-height);
8389
8395
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8390
- ${bodyBoldStyles}
8396
+ ${sharedBodyStyle}
8391
8397
  `;
8392
8398
  var body4TextStyle = import_styled_components29.css`
8393
8399
  --font-family: var(--wui-typography-body-4-family);
@@ -8395,7 +8401,7 @@ var body4TextStyle = import_styled_components29.css`
8395
8401
  --font-weight: var(--wui-typography-body-4-weight);
8396
8402
  --line-height: var(--wui-typography-body-4-line-height);
8397
8403
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8398
- ${bodyBoldStyles}
8404
+ ${sharedBodyStyle}
8399
8405
  `;
8400
8406
  var label1TextStyle = import_styled_components29.css`
8401
8407
  --font-family: var(--wui-typography-label-1-family);
@@ -9651,7 +9657,7 @@ var StyledTrigger = (0, import_styled_components45.default)(import_react_collaps
9651
9657
  }
9652
9658
  `;
9653
9659
  var CollapsibleTrigger = ({ children }) => {
9654
- void import_react40.Children.only(children);
9660
+ import_react40.Children.only(children);
9655
9661
  return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(StyledTrigger, { asChild: true, children });
9656
9662
  };
9657
9663
 
@@ -13129,7 +13135,7 @@ var FormField = ({
13129
13135
  "aria-invalid": (0, import_type_guards39.isNotNil)(error)
13130
13136
  };
13131
13137
  }
13132
- void import_react59.Children.only(children);
13138
+ import_react59.Children.only(children);
13133
13139
  return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
13134
13140
  StyledFormField,
13135
13141
  {
@@ -17258,7 +17264,6 @@ var EditableTextDisplayComponent = (0, import_react95.forwardRef)(
17258
17264
  );
17259
17265
  EditableTextDisplayComponent.displayName = "EditableTextDisplay_UI";
17260
17266
  var EditableTextDisplay = makePolymorphic(
17261
- // @ts-expect-error makePolymorphic is causing issues with types in R19
17262
17267
  EditableTextDisplayComponent
17263
17268
  );
17264
17269
 
@@ -17536,7 +17541,7 @@ var DataList = ({
17536
17541
  DataList.displayName = "DataList_UI";
17537
17542
 
17538
17543
  // src/components/DataList/DataListItem.tsx
17539
- var DataListItem = async ({ children }) => {
17544
+ var DataListItem = ({ children }) => {
17540
17545
  return children;
17541
17546
  };
17542
17547
  DataListItem.displayName = "DataListItem_UI";
@@ -17568,6 +17573,27 @@ var DataListItemValue = (props) => {
17568
17573
  );
17569
17574
  };
17570
17575
  DataListItemValue.displayName = "DataListItemValue_UI";
17576
+
17577
+ // src/components/Mark/Mark.tsx
17578
+ var import_styled_components126 = __toESM(require("styled-components"));
17579
+ var import_jsx_runtime325 = require("react/jsx-runtime");
17580
+ var StyledMark = import_styled_components126.default.mark`
17581
+ ${({ $colorScheme }) => getColorScheme($colorScheme)};
17582
+ background-color: var(--wui-color-bg-surface-tertiary);
17583
+ color: var(--wui-color-text);
17584
+ border-radius: var(--wui-border-radius-01);
17585
+ padding-inline: 0.1em;
17586
+ margin-inline: -0.1em;
17587
+ `;
17588
+ var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
17589
+ StyledMark,
17590
+ {
17591
+ $colorScheme: colorScheme,
17592
+ ...props,
17593
+ children
17594
+ }
17595
+ );
17596
+ Mark.displayName = "Mark_UI";
17571
17597
  // Annotate the CommonJS export names for ESM import in node:
17572
17598
  0 && (module.exports = {
17573
17599
  ActionButton,
@@ -17647,6 +17673,7 @@ DataListItemValue.displayName = "DataListItemValue_UI";
17647
17673
  Label,
17648
17674
  Link,
17649
17675
  List,
17676
+ Mark,
17650
17677
  Menu,
17651
17678
  MenuItem,
17652
17679
  MenuItemDescription,