@wix/editor-react-components 1.2750.0 → 1.2751.0

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.
@@ -7,7 +7,7 @@ import { a as getDataAttributes, g as getQaDataAttributes } from "./dataUtils.js
7
7
  import { f as formatClassNames } from "./classNames.js";
8
8
  import { I as IconAnimationTriggers } from "./Button.types.js";
9
9
  import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
10
- import { T as TRANSITION_DURATION, S as SEMANTIC_CLASS_NAMES, a as TestIds, C as COMPONENT_TYPE } from "./constants22.js";
10
+ import { T as TRANSITION_DURATION, D as DesignStates, S as SEMANTIC_CLASS_NAMES, a as TestIds, C as COMPONENT_TYPE } from "./constants22.js";
11
11
  import { d as activateByEnterButton, a as activateBySpaceOrEnterButton, r as removeAriaPrefix, g as getAccessibilityAttributesSpread } from "./a11y.js";
12
12
  import { i as isValidLink } from "./Link.js";
13
13
  import { d as defineStaticService } from "./staticService.js";
@@ -358,6 +358,7 @@ const Button = (props) => {
358
358
  formatClassNames(semanticClassNames.root),
359
359
  {
360
360
  disabled: isDisabled,
361
+ [DesignStates.root.disabled.className]: isDisabled,
361
362
  [styles.active]: active2,
362
363
  [styles.hasTransitions]: hasTransitions2
363
364
  }
@@ -366,7 +367,8 @@ const Button = (props) => {
366
367
  "label",
367
368
  styles.label,
368
369
  formatClassNames(semanticClassNames.buttonLabel),
369
- (_a = elementProps == null ? void 0 : elementProps.label) == null ? void 0 : _a.className
370
+ (_a = elementProps == null ? void 0 : elementProps.label) == null ? void 0 : _a.className,
371
+ isDisabled && DesignStates.label.disabled.className
370
372
  );
371
373
  const linkClassName = styles.link;
372
374
  const reportClickAnalytics = useClickAnalyticsReporter({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2750.0",
3
+ "version": "1.2751.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -222,5 +222,5 @@
222
222
  "registry": "https://registry.npmjs.org/",
223
223
  "access": "public"
224
224
  },
225
- "falconPackageHash": "4308638f3d5b885f504d39750fffccea1e3377db04ca7104e417300c"
225
+ "falconPackageHash": "a712e6ac80b841f8836a2cb3fec89259b061cbc8c939d3582ea0e444"
226
226
  }