@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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +29 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/control-toggle-button-group.tsx +33 -23
package/dist/index.mjs
CHANGED
|
@@ -2303,28 +2303,37 @@ var ToggleButtonGroupUi = React51.forwardRef(
|
|
|
2303
2303
|
width: `100%`
|
|
2304
2304
|
}
|
|
2305
2305
|
},
|
|
2306
|
-
fixedItems.map(
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
/* @__PURE__ */ React51.createElement(
|
|
2316
|
-
|
|
2306
|
+
fixedItems.map(
|
|
2307
|
+
({
|
|
2308
|
+
label,
|
|
2309
|
+
value: buttonValue,
|
|
2310
|
+
renderContent: Content3,
|
|
2311
|
+
showTooltip,
|
|
2312
|
+
disabled: optionDisabled = false
|
|
2313
|
+
}) => {
|
|
2314
|
+
const isPlaceholder = placeholderArray.length > 0 && placeholderArray.includes(buttonValue) && (shouldShowExclusivePlaceholder || shouldShowNonExclusivePlaceholder);
|
|
2315
|
+
return /* @__PURE__ */ React51.createElement(
|
|
2316
|
+
ConditionalTooltip,
|
|
2317
2317
|
{
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
fullWidth,
|
|
2322
|
-
isPlaceholder
|
|
2318
|
+
key: buttonValue,
|
|
2319
|
+
label,
|
|
2320
|
+
showTooltip: showTooltip || false
|
|
2323
2321
|
},
|
|
2324
|
-
/* @__PURE__ */ React51.createElement(
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2322
|
+
/* @__PURE__ */ React51.createElement(
|
|
2323
|
+
StyledToggleButton,
|
|
2324
|
+
{
|
|
2325
|
+
value: buttonValue,
|
|
2326
|
+
"aria-label": label,
|
|
2327
|
+
size,
|
|
2328
|
+
fullWidth,
|
|
2329
|
+
isPlaceholder,
|
|
2330
|
+
disabled: optionDisabled
|
|
2331
|
+
},
|
|
2332
|
+
/* @__PURE__ */ React51.createElement(Content3, { size })
|
|
2333
|
+
)
|
|
2334
|
+
);
|
|
2335
|
+
}
|
|
2336
|
+
),
|
|
2328
2337
|
menuItems.length && exclusive && /* @__PURE__ */ React51.createElement(
|
|
2329
2338
|
SplitButtonGroup,
|
|
2330
2339
|
{
|