@elementor/editor-controls 4.0.0-533 → 4.0.0-535

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.d.mts CHANGED
@@ -115,6 +115,7 @@ type RenderContentProps = {
115
115
  };
116
116
  type ToggleButtonGroupItem<TValue> = {
117
117
  value: TValue;
118
+ disabled?: boolean;
118
119
  label: string;
119
120
  renderContent: ({ size }: RenderContentProps) => React$1.ReactNode;
120
121
  showTooltip?: boolean;
package/dist/index.d.ts CHANGED
@@ -115,6 +115,7 @@ type RenderContentProps = {
115
115
  };
116
116
  type ToggleButtonGroupItem<TValue> = {
117
117
  value: TValue;
118
+ disabled?: boolean;
118
119
  label: string;
119
120
  renderContent: ({ size }: RenderContentProps) => React$1.ReactNode;
120
121
  showTooltip?: boolean;
package/dist/index.js CHANGED
@@ -2371,28 +2371,37 @@ var ToggleButtonGroupUi = React51.forwardRef(
2371
2371
  width: `100%`
2372
2372
  }
2373
2373
  },
2374
- fixedItems.map(({ label, value: buttonValue, renderContent: Content3, showTooltip }) => {
2375
- const isPlaceholder = placeholderArray.length > 0 && placeholderArray.includes(buttonValue) && (shouldShowExclusivePlaceholder || shouldShowNonExclusivePlaceholder);
2376
- return /* @__PURE__ */ React51.createElement(
2377
- ConditionalTooltip,
2378
- {
2379
- key: buttonValue,
2380
- label,
2381
- showTooltip: showTooltip || false
2382
- },
2383
- /* @__PURE__ */ React51.createElement(
2384
- StyledToggleButton,
2374
+ fixedItems.map(
2375
+ ({
2376
+ label,
2377
+ value: buttonValue,
2378
+ renderContent: Content3,
2379
+ showTooltip,
2380
+ disabled: optionDisabled = false
2381
+ }) => {
2382
+ const isPlaceholder = placeholderArray.length > 0 && placeholderArray.includes(buttonValue) && (shouldShowExclusivePlaceholder || shouldShowNonExclusivePlaceholder);
2383
+ return /* @__PURE__ */ React51.createElement(
2384
+ ConditionalTooltip,
2385
2385
  {
2386
- value: buttonValue,
2387
- "aria-label": label,
2388
- size,
2389
- fullWidth,
2390
- isPlaceholder
2386
+ key: buttonValue,
2387
+ label,
2388
+ showTooltip: showTooltip || false
2391
2389
  },
2392
- /* @__PURE__ */ React51.createElement(Content3, { size })
2393
- )
2394
- );
2395
- }),
2390
+ /* @__PURE__ */ React51.createElement(
2391
+ StyledToggleButton,
2392
+ {
2393
+ value: buttonValue,
2394
+ "aria-label": label,
2395
+ size,
2396
+ fullWidth,
2397
+ isPlaceholder,
2398
+ disabled: optionDisabled
2399
+ },
2400
+ /* @__PURE__ */ React51.createElement(Content3, { size })
2401
+ )
2402
+ );
2403
+ }
2404
+ ),
2396
2405
  menuItems.length && exclusive && /* @__PURE__ */ React51.createElement(
2397
2406
  SplitButtonGroup,
2398
2407
  {