@wistia/ui 0.11.2 → 0.11.3-beta.1372b62c.f85a71e

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.11.2
3
+ * @license @wistia/ui v0.11.3-beta.1372b62c.f85a71e
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -273,7 +273,7 @@ var globalStyleAdjustmentsCss = import_styled_components.css`
273
273
  }
274
274
 
275
275
  /* Anything that has been anchored to should have extra scroll margin */
276
- :target {
276
+ &:target {
277
277
  scroll-margin-block: 5ex;
278
278
  }
279
279
 
@@ -3091,7 +3091,7 @@ var buttonExtraLargeStyles = import_styled_components18.css`
3091
3091
  --button-label-gap: 8px;
3092
3092
  `;
3093
3093
  var ghostButtonVariant = import_styled_components18.css`
3094
- --button-color-bg: transparent;
3094
+ --button-color-bg-override: transparent;
3095
3095
  --button-color-bg-hover: var(--wui-color-bg-surface-hover);
3096
3096
  --button-color-bg-active: var(--wui-color-bg-surface-active);
3097
3097
  --button-color-text: var(--wui-color-text-button);
@@ -3118,9 +3118,9 @@ var solidButtonVariant = import_styled_components18.css`
3118
3118
  --button-color-icon: var(--wui-color-icon-on-fill);
3119
3119
  `;
3120
3120
  var disabledButtonVariant = import_styled_components18.css`
3121
- --button-color-bg: var(--wui-color-bg-surface-disabled);
3122
- --button-color-bg-hover: var(--wui-color-bg-surface-disabled);
3123
- --button-color-bg-active: var(--wui-color-bg-surface-disabled);
3121
+ --button-color-bg: var(--button-color-bg-override, var(--wui-color-bg-surface-disabled));
3122
+ --button-color-bg-hover: var(--button-color-bg-override, var(--wui-color-bg-surface-disabled));
3123
+ --button-color-bg-active: var(--button-color-bg-override, var(--wui-color-bg-surface-disabled));
3124
3124
  --button-color-text: var(--wui-color-text-disabled);
3125
3125
  --button-color-icon: var(--wui-color-icon-disabled);
3126
3126
  --button-color-border: var(--wui-color-border-disabled);
@@ -8478,7 +8478,7 @@ var ButtonGroupComponent = import_styled_components30.default.div`
8478
8478
  flex-direction: row;
8479
8479
  }
8480
8480
 
8481
- :not([data-wistia-ui-icon-button]) {
8481
+ &:not([data-wistia-ui-icon-button]) {
8482
8482
  ${mq.smAndDown} {
8483
8483
  width: 100%;
8484
8484
  }
@@ -10617,7 +10617,7 @@ Input.displayName = "Input";
10617
10617
  // src/components/EditableHeading/EditableHeading.tsx
10618
10618
  var import_jsx_runtime232 = require("react/jsx-runtime");
10619
10619
  var StyledInput = (0, import_styled_components56.default)(Input)`
10620
- :not([rows]) {
10620
+ &:not([rows]) {
10621
10621
  min-height: unset;
10622
10622
  }
10623
10623
 
@@ -10923,28 +10923,46 @@ var StyledErrorList = import_styled_components58.default.ul`
10923
10923
  gap: var(--wui-space-01);
10924
10924
  `;
10925
10925
  var ErrorMessages = ({ errors, id }) => {
10926
- const isMultipleErrors = (0, import_type_guards37.isArray)(errors);
10927
- return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10926
+ const isErrorArray = (0, import_type_guards37.isArray)(errors);
10927
+ const isMultipleErrors = isErrorArray && errors.length > 1;
10928
+ if (!isErrorArray) {
10929
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10930
+ Text,
10931
+ {
10932
+ colorScheme: "error",
10933
+ id,
10934
+ prominence: "secondary",
10935
+ variant: "label4",
10936
+ children: errors
10937
+ },
10938
+ id
10939
+ );
10940
+ }
10941
+ if (!isMultipleErrors) {
10942
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10943
+ Text,
10944
+ {
10945
+ colorScheme: "error",
10946
+ id,
10947
+ prominence: "secondary",
10948
+ variant: "label4",
10949
+ children: errors[0]
10950
+ },
10951
+ id
10952
+ );
10953
+ }
10954
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10928
10955
  Text,
10929
10956
  {
10930
10957
  colorScheme: "error",
10931
10958
  id: `${id}-${index}`,
10959
+ prominence: "secondary",
10932
10960
  renderAs: "li",
10933
10961
  variant: "label4",
10934
10962
  children: error
10935
10963
  },
10936
10964
  `${id}-${index}`
10937
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
10938
- Text,
10939
- {
10940
- colorScheme: "error",
10941
- id,
10942
- prominence: "secondary",
10943
- variant: "label4",
10944
- children: errors
10945
- },
10946
- id
10947
- );
10965
+ )) });
10948
10966
  };
10949
10967
  var FormField = ({
10950
10968
  children,