Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
}
[40000] Fix | Delete
[40001] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tab-panel/index.js
[40002] Fix | Delete
[40003] Fix | Delete
[40004] Fix | Delete
[40005] Fix | Delete
[40006] Fix | Delete
[40007] Fix | Delete
[40008] Fix | Delete
/**
[40009] Fix | Delete
* External dependencies
[40010] Fix | Delete
*/
[40011] Fix | Delete
[40012] Fix | Delete
[40013] Fix | Delete
/**
[40014] Fix | Delete
* WordPress dependencies
[40015] Fix | Delete
*/
[40016] Fix | Delete
[40017] Fix | Delete
[40018] Fix | Delete
[40019] Fix | Delete
/**
[40020] Fix | Delete
* Internal dependencies
[40021] Fix | Delete
*/
[40022] Fix | Delete
[40023] Fix | Delete
[40024] Fix | Delete
[40025] Fix | Delete
[40026] Fix | Delete
var tab_panel_TabButton = function TabButton(_ref) {
[40027] Fix | Delete
var tabId = _ref.tabId,
[40028] Fix | Delete
onClick = _ref.onClick,
[40029] Fix | Delete
children = _ref.children,
[40030] Fix | Delete
selected = _ref.selected,
[40031] Fix | Delete
rest = Object(objectWithoutProperties["a" /* default */])(_ref, ["tabId", "onClick", "children", "selected"]);
[40032] Fix | Delete
[40033] Fix | Delete
return Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({
[40034] Fix | Delete
role: "tab",
[40035] Fix | Delete
tabIndex: selected ? null : -1,
[40036] Fix | Delete
"aria-selected": selected,
[40037] Fix | Delete
id: tabId,
[40038] Fix | Delete
onClick: onClick
[40039] Fix | Delete
}, rest), children);
[40040] Fix | Delete
};
[40041] Fix | Delete
[40042] Fix | Delete
function TabPanel(_ref2) {
[40043] Fix | Delete
var _selectedTab$name;
[40044] Fix | Delete
[40045] Fix | Delete
var className = _ref2.className,
[40046] Fix | Delete
children = _ref2.children,
[40047] Fix | Delete
tabs = _ref2.tabs,
[40048] Fix | Delete
initialTabName = _ref2.initialTabName,
[40049] Fix | Delete
_ref2$orientation = _ref2.orientation,
[40050] Fix | Delete
orientation = _ref2$orientation === void 0 ? 'horizontal' : _ref2$orientation,
[40051] Fix | Delete
_ref2$activeClass = _ref2.activeClass,
[40052] Fix | Delete
activeClass = _ref2$activeClass === void 0 ? 'is-active' : _ref2$activeClass,
[40053] Fix | Delete
_ref2$onSelect = _ref2.onSelect,
[40054] Fix | Delete
onSelect = _ref2$onSelect === void 0 ? external_lodash_["noop"] : _ref2$onSelect;
[40055] Fix | Delete
var instanceId = Object(external_wp_compose_["useInstanceId"])(TabPanel, 'tab-panel');
[40056] Fix | Delete
[40057] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(null),
[40058] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[40059] Fix | Delete
selected = _useState2[0],
[40060] Fix | Delete
setSelected = _useState2[1];
[40061] Fix | Delete
[40062] Fix | Delete
var handleClick = function handleClick(tabKey) {
[40063] Fix | Delete
setSelected(tabKey);
[40064] Fix | Delete
onSelect(tabKey);
[40065] Fix | Delete
};
[40066] Fix | Delete
[40067] Fix | Delete
var onNavigate = function onNavigate(childIndex, child) {
[40068] Fix | Delete
child.click();
[40069] Fix | Delete
};
[40070] Fix | Delete
[40071] Fix | Delete
var selectedTab = Object(external_lodash_["find"])(tabs, {
[40072] Fix | Delete
name: selected
[40073] Fix | Delete
});
[40074] Fix | Delete
var selectedId = "".concat(instanceId, "-").concat((_selectedTab$name = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.name) !== null && _selectedTab$name !== void 0 ? _selectedTab$name : 'none');
[40075] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[40076] Fix | Delete
var newSelectedTab = Object(external_lodash_["find"])(tabs, {
[40077] Fix | Delete
name: selected
[40078] Fix | Delete
});
[40079] Fix | Delete
[40080] Fix | Delete
if (!newSelectedTab) {
[40081] Fix | Delete
setSelected(initialTabName || (tabs.length > 0 ? tabs[0].name : null));
[40082] Fix | Delete
}
[40083] Fix | Delete
}, [tabs]);
[40084] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[40085] Fix | Delete
className: className
[40086] Fix | Delete
}, Object(external_wp_element_["createElement"])(navigable_container_menu, {
[40087] Fix | Delete
role: "tablist",
[40088] Fix | Delete
orientation: orientation,
[40089] Fix | Delete
onNavigate: onNavigate,
[40090] Fix | Delete
className: "components-tab-panel__tabs"
[40091] Fix | Delete
}, tabs.map(function (tab) {
[40092] Fix | Delete
return Object(external_wp_element_["createElement"])(tab_panel_TabButton, {
[40093] Fix | Delete
className: classnames_default()('components-tab-panel__tabs-item', tab.className, Object(esm_defineProperty["a" /* default */])({}, activeClass, tab.name === selected)),
[40094] Fix | Delete
tabId: "".concat(instanceId, "-").concat(tab.name),
[40095] Fix | Delete
"aria-controls": "".concat(instanceId, "-").concat(tab.name, "-view"),
[40096] Fix | Delete
selected: tab.name === selected,
[40097] Fix | Delete
key: tab.name,
[40098] Fix | Delete
onClick: Object(external_lodash_["partial"])(handleClick, tab.name)
[40099] Fix | Delete
}, tab.title);
[40100] Fix | Delete
})), selectedTab && Object(external_wp_element_["createElement"])("div", {
[40101] Fix | Delete
key: selectedId,
[40102] Fix | Delete
"aria-labelledby": selectedId,
[40103] Fix | Delete
role: "tabpanel",
[40104] Fix | Delete
id: "".concat(selectedId, "-view"),
[40105] Fix | Delete
className: "components-tab-panel__tab-content"
[40106] Fix | Delete
}, children(selectedTab)));
[40107] Fix | Delete
}
[40108] Fix | Delete
[40109] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/input/base.js
[40110] Fix | Delete
/**
[40111] Fix | Delete
* External dependencies
[40112] Fix | Delete
*/
[40113] Fix | Delete
[40114] Fix | Delete
/**
[40115] Fix | Delete
* Internal dependencies
[40116] Fix | Delete
*/
[40117] Fix | Delete
[40118] Fix | Delete
[40119] Fix | Delete
[40120] Fix | Delete
[40121] Fix | Delete
var inputStyleNeutral = /*#__PURE__*/Object(core_browser_esm["b" /* css */])("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:", config_config('radiusBlockUi'), ";border:", config_config('borderWidth'), " solid ", colors_color('ui.border'), ";", reduceMotion('transition'), ";label:inputStyleNeutral;" + ( true ? "" : undefined));
[40122] Fix | Delete
var inputStyleFocus = /*#__PURE__*/Object(core_browser_esm["b" /* css */])("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ", config_config('borderWidthFocus'), " - ", config_config('borderWidth'), " ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;" + ( true ? "" : undefined));
[40123] Fix | Delete
[40124] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/breakpoint-values.js
[40125] Fix | Delete
/* harmony default export */ var breakpoint_values = ({
[40126] Fix | Delete
huge: '1440px',
[40127] Fix | Delete
wide: '1280px',
[40128] Fix | Delete
'x-large': '1080px',
[40129] Fix | Delete
large: '960px',
[40130] Fix | Delete
// admin sidebar auto folds
[40131] Fix | Delete
medium: '782px',
[40132] Fix | Delete
// adminbar goes big
[40133] Fix | Delete
small: '600px',
[40134] Fix | Delete
mobile: '480px',
[40135] Fix | Delete
'zoomed-in': '280px'
[40136] Fix | Delete
});
[40137] Fix | Delete
[40138] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/breakpoint.js
[40139] Fix | Delete
/**
[40140] Fix | Delete
* Internal dependencies
[40141] Fix | Delete
*/
[40142] Fix | Delete
[40143] Fix | Delete
/**
[40144] Fix | Delete
* @param {keyof breakpoints} point
[40145] Fix | Delete
* @return {string} Media query declaration.
[40146] Fix | Delete
*/
[40147] Fix | Delete
[40148] Fix | Delete
var breakpoint_breakpoint = function breakpoint(point) {
[40149] Fix | Delete
return "@media (min-width: ".concat(breakpoint_values[point], ")");
[40150] Fix | Delete
};
[40151] Fix | Delete
[40152] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/input/input-control.js
[40153] Fix | Delete
/**
[40154] Fix | Delete
* External dependencies
[40155] Fix | Delete
*/
[40156] Fix | Delete
[40157] Fix | Delete
/**
[40158] Fix | Delete
* Internal dependencies
[40159] Fix | Delete
*/
[40160] Fix | Delete
[40161] Fix | Delete
[40162] Fix | Delete
[40163] Fix | Delete
[40164] Fix | Delete
[40165] Fix | Delete
var inputControl = /*#__PURE__*/Object(core_browser_esm["b" /* css */])("font-family:", font('default.fontFamily'), ";padding:6px 8px;", inputStyleNeutral, ";font-size:", font('mobileTextMinFontSize'), ";line-height:normal;", breakpoint_breakpoint('small'), "{font-size:", font('default.fontSize'), ";line-height:normal;}&:focus{", inputStyleFocus, "}&::-webkit-input-placeholder{color:", colors_color('darkGray.placeholder'), ";}&::-moz-placeholder{opacity:1;color:", colors_color('darkGray.placeholder'), ";}&:-ms-input-placeholder{color:", colors_color('darkGray.placeholder'), ";}.is-dark-theme &{&::-webkit-input-placeholder{color:", colors_color('lightGray.placeholder'), ";}&::-moz-placeholder{opacity:1;color:", colors_color('lightGray.placeholder'), ";}&:-ms-input-placeholder{color:", colors_color('lightGray.placeholder'), ";}};label:inputControl;" + ( true ? "" : undefined));
[40166] Fix | Delete
[40167] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/textarea-control/styles/textarea-control-styles.js
[40168] Fix | Delete
[40169] Fix | Delete
[40170] Fix | Delete
/**
[40171] Fix | Delete
* Internal dependencies
[40172] Fix | Delete
*/
[40173] Fix | Delete
[40174] Fix | Delete
var StyledTextarea = styled_base_browser_esm("textarea", {
[40175] Fix | Delete
target: "ebk7yr50",
[40176] Fix | Delete
label: "StyledTextarea"
[40177] Fix | Delete
})("width:100%;", inputControl, true ? "" : undefined);
[40178] Fix | Delete
[40179] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/textarea-control/index.js
[40180] Fix | Delete
[40181] Fix | Delete
[40182] Fix | Delete
[40183] Fix | Delete
[40184] Fix | Delete
/**
[40185] Fix | Delete
* WordPress dependencies
[40186] Fix | Delete
*/
[40187] Fix | Delete
[40188] Fix | Delete
/**
[40189] Fix | Delete
* Internal dependencies
[40190] Fix | Delete
*/
[40191] Fix | Delete
[40192] Fix | Delete
[40193] Fix | Delete
[40194] Fix | Delete
function TextareaControl(_ref) {
[40195] Fix | Delete
var label = _ref.label,
[40196] Fix | Delete
hideLabelFromVision = _ref.hideLabelFromVision,
[40197] Fix | Delete
value = _ref.value,
[40198] Fix | Delete
help = _ref.help,
[40199] Fix | Delete
onChange = _ref.onChange,
[40200] Fix | Delete
_ref$rows = _ref.rows,
[40201] Fix | Delete
rows = _ref$rows === void 0 ? 4 : _ref$rows,
[40202] Fix | Delete
className = _ref.className,
[40203] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["label", "hideLabelFromVision", "value", "help", "onChange", "rows", "className"]);
[40204] Fix | Delete
[40205] Fix | Delete
var instanceId = Object(external_wp_compose_["useInstanceId"])(TextareaControl);
[40206] Fix | Delete
var id = "inspector-textarea-control-".concat(instanceId);
[40207] Fix | Delete
[40208] Fix | Delete
var onChangeValue = function onChangeValue(event) {
[40209] Fix | Delete
return onChange(event.target.value);
[40210] Fix | Delete
};
[40211] Fix | Delete
[40212] Fix | Delete
return Object(external_wp_element_["createElement"])(base_control, {
[40213] Fix | Delete
label: label,
[40214] Fix | Delete
hideLabelFromVision: hideLabelFromVision,
[40215] Fix | Delete
id: id,
[40216] Fix | Delete
help: help,
[40217] Fix | Delete
className: className
[40218] Fix | Delete
}, Object(external_wp_element_["createElement"])(StyledTextarea, Object(esm_extends["a" /* default */])({
[40219] Fix | Delete
className: "components-textarea-control__input",
[40220] Fix | Delete
id: id,
[40221] Fix | Delete
rows: rows,
[40222] Fix | Delete
onChange: onChangeValue,
[40223] Fix | Delete
"aria-describedby": !!help ? id + '__help' : undefined,
[40224] Fix | Delete
value: value
[40225] Fix | Delete
}, props)));
[40226] Fix | Delete
}
[40227] Fix | Delete
[40228] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text-highlight/index.js
[40229] Fix | Delete
[40230] Fix | Delete
[40231] Fix | Delete
/**
[40232] Fix | Delete
* External dependencies
[40233] Fix | Delete
*/
[40234] Fix | Delete
[40235] Fix | Delete
/**
[40236] Fix | Delete
* WordPress dependencies
[40237] Fix | Delete
*/
[40238] Fix | Delete
[40239] Fix | Delete
[40240] Fix | Delete
[40241] Fix | Delete
var text_highlight_TextHighlight = function TextHighlight(_ref) {
[40242] Fix | Delete
var _ref$text = _ref.text,
[40243] Fix | Delete
text = _ref$text === void 0 ? '' : _ref$text,
[40244] Fix | Delete
_ref$highlight = _ref.highlight,
[40245] Fix | Delete
highlight = _ref$highlight === void 0 ? '' : _ref$highlight;
[40246] Fix | Delete
var trimmedHighlightText = highlight.trim();
[40247] Fix | Delete
[40248] Fix | Delete
if (!trimmedHighlightText) {
[40249] Fix | Delete
return text;
[40250] Fix | Delete
}
[40251] Fix | Delete
[40252] Fix | Delete
var regex = new RegExp("(".concat(Object(external_lodash_["escapeRegExp"])(trimmedHighlightText), ")"), 'gi');
[40253] Fix | Delete
return Object(external_wp_element_["createInterpolateElement"])(text.replace(regex, '<mark>$&</mark>'), {
[40254] Fix | Delete
mark: Object(external_wp_element_["createElement"])("mark", null)
[40255] Fix | Delete
});
[40256] Fix | Delete
};
[40257] Fix | Delete
[40258] Fix | Delete
/* harmony default export */ var text_highlight = (text_highlight_TextHighlight);
[40259] Fix | Delete
[40260] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/tip/index.js
[40261] Fix | Delete
[40262] Fix | Delete
[40263] Fix | Delete
/**
[40264] Fix | Delete
* WordPress dependencies
[40265] Fix | Delete
*/
[40266] Fix | Delete
[40267] Fix | Delete
/**
[40268] Fix | Delete
* @typedef Props
[40269] Fix | Delete
* @property {import('react').ReactNode} children Children to render in the tip.
[40270] Fix | Delete
*/
[40271] Fix | Delete
[40272] Fix | Delete
/**
[40273] Fix | Delete
* @param {Props} props
[40274] Fix | Delete
* @return {JSX.Element} Element
[40275] Fix | Delete
*/
[40276] Fix | Delete
[40277] Fix | Delete
function Tip(props) {
[40278] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[40279] Fix | Delete
className: "components-tip"
[40280] Fix | Delete
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["SVG"], {
[40281] Fix | Delete
width: "24",
[40282] Fix | Delete
height: "24",
[40283] Fix | Delete
viewBox: "0 0 24 24"
[40284] Fix | Delete
}, Object(external_wp_element_["createElement"])(external_wp_primitives_["Path"], {
[40285] Fix | Delete
d: "M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"
[40286] Fix | Delete
})), Object(external_wp_element_["createElement"])("p", null, props.children));
[40287] Fix | Delete
}
[40288] Fix | Delete
[40289] Fix | Delete
/* harmony default export */ var tip = (Tip);
[40290] Fix | Delete
[40291] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toggle-control/index.js
[40292] Fix | Delete
[40293] Fix | Delete
[40294] Fix | Delete
/**
[40295] Fix | Delete
* External dependencies
[40296] Fix | Delete
*/
[40297] Fix | Delete
[40298] Fix | Delete
[40299] Fix | Delete
/**
[40300] Fix | Delete
* WordPress dependencies
[40301] Fix | Delete
*/
[40302] Fix | Delete
[40303] Fix | Delete
[40304] Fix | Delete
/**
[40305] Fix | Delete
* Internal dependencies
[40306] Fix | Delete
*/
[40307] Fix | Delete
[40308] Fix | Delete
[40309] Fix | Delete
[40310] Fix | Delete
function ToggleControl(_ref) {
[40311] Fix | Delete
var label = _ref.label,
[40312] Fix | Delete
checked = _ref.checked,
[40313] Fix | Delete
help = _ref.help,
[40314] Fix | Delete
className = _ref.className,
[40315] Fix | Delete
onChange = _ref.onChange,
[40316] Fix | Delete
disabled = _ref.disabled;
[40317] Fix | Delete
[40318] Fix | Delete
function onChangeToggle(event) {
[40319] Fix | Delete
onChange(event.target.checked);
[40320] Fix | Delete
}
[40321] Fix | Delete
[40322] Fix | Delete
var instanceId = Object(external_wp_compose_["useInstanceId"])(ToggleControl);
[40323] Fix | Delete
var id = "inspector-toggle-control-".concat(instanceId);
[40324] Fix | Delete
var describedBy, helpLabel;
[40325] Fix | Delete
[40326] Fix | Delete
if (help) {
[40327] Fix | Delete
describedBy = id + '__help';
[40328] Fix | Delete
helpLabel = Object(external_lodash_["isFunction"])(help) ? help(checked) : help;
[40329] Fix | Delete
}
[40330] Fix | Delete
[40331] Fix | Delete
return Object(external_wp_element_["createElement"])(base_control, {
[40332] Fix | Delete
id: id,
[40333] Fix | Delete
help: helpLabel,
[40334] Fix | Delete
className: classnames_default()('components-toggle-control', className)
[40335] Fix | Delete
}, Object(external_wp_element_["createElement"])(form_toggle, {
[40336] Fix | Delete
id: id,
[40337] Fix | Delete
checked: checked,
[40338] Fix | Delete
onChange: onChangeToggle,
[40339] Fix | Delete
"aria-describedby": describedBy,
[40340] Fix | Delete
disabled: disabled
[40341] Fix | Delete
}), Object(external_wp_element_["createElement"])("label", {
[40342] Fix | Delete
htmlFor: id,
[40343] Fix | Delete
className: "components-toggle-control__label"
[40344] Fix | Delete
}, label));
[40345] Fix | Delete
}
[40346] Fix | Delete
[40347] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/toolbar-item/index.js
[40348] Fix | Delete
var toolbar_item = __webpack_require__("aA0e");
[40349] Fix | Delete
[40350] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/toolbar-context/index.js
[40351] Fix | Delete
var toolbar_context = __webpack_require__("GK4x");
[40352] Fix | Delete
[40353] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-button/toolbar-button-container.js
[40354] Fix | Delete
[40355] Fix | Delete
[40356] Fix | Delete
var toolbar_button_container_ToolbarButtonContainer = function ToolbarButtonContainer(props) {
[40357] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[40358] Fix | Delete
className: props.className
[40359] Fix | Delete
}, props.children);
[40360] Fix | Delete
};
[40361] Fix | Delete
[40362] Fix | Delete
/* harmony default export */ var toolbar_button_container = (toolbar_button_container_ToolbarButtonContainer);
[40363] Fix | Delete
[40364] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-button/index.js
[40365] Fix | Delete
[40366] Fix | Delete
[40367] Fix | Delete
[40368] Fix | Delete
[40369] Fix | Delete
/**
[40370] Fix | Delete
* External dependencies
[40371] Fix | Delete
*/
[40372] Fix | Delete
[40373] Fix | Delete
/**
[40374] Fix | Delete
* WordPress dependencies
[40375] Fix | Delete
*/
[40376] Fix | Delete
[40377] Fix | Delete
[40378] Fix | Delete
/**
[40379] Fix | Delete
* Internal dependencies
[40380] Fix | Delete
*/
[40381] Fix | Delete
[40382] Fix | Delete
[40383] Fix | Delete
[40384] Fix | Delete
[40385] Fix | Delete
[40386] Fix | Delete
[40387] Fix | Delete
function ToolbarButton(_ref, ref) {
[40388] Fix | Delete
var containerClassName = _ref.containerClassName,
[40389] Fix | Delete
className = _ref.className,
[40390] Fix | Delete
extraProps = _ref.extraProps,
[40391] Fix | Delete
children = _ref.children,
[40392] Fix | Delete
title = _ref.title,
[40393] Fix | Delete
isActive = _ref.isActive,
[40394] Fix | Delete
isDisabled = _ref.isDisabled,
[40395] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["containerClassName", "className", "extraProps", "children", "title", "isActive", "isDisabled"]);
[40396] Fix | Delete
[40397] Fix | Delete
var accessibleToolbarState = Object(external_wp_element_["useContext"])(toolbar_context["a" /* default */]);
[40398] Fix | Delete
[40399] Fix | Delete
if (!accessibleToolbarState) {
[40400] Fix | Delete
return Object(external_wp_element_["createElement"])(toolbar_button_container, {
[40401] Fix | Delete
className: containerClassName
[40402] Fix | Delete
}, Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({
[40403] Fix | Delete
ref: ref,
[40404] Fix | Delete
icon: props.icon,
[40405] Fix | Delete
label: title,
[40406] Fix | Delete
shortcut: props.shortcut,
[40407] Fix | Delete
"data-subscript": props.subscript,
[40408] Fix | Delete
onClick: function onClick(event) {
[40409] Fix | Delete
event.stopPropagation();
[40410] Fix | Delete
[40411] Fix | Delete
if (props.onClick) {
[40412] Fix | Delete
props.onClick(event);
[40413] Fix | Delete
}
[40414] Fix | Delete
},
[40415] Fix | Delete
className: classnames_default()('components-toolbar__control', className),
[40416] Fix | Delete
isPressed: isActive,
[40417] Fix | Delete
disabled: isDisabled,
[40418] Fix | Delete
"data-toolbar-item": true
[40419] Fix | Delete
}, extraProps, props), children));
[40420] Fix | Delete
} // ToobarItem will pass all props to the render prop child, which will pass
[40421] Fix | Delete
// all props to Button. This means that ToolbarButton has the same API as
[40422] Fix | Delete
// Button.
[40423] Fix | Delete
[40424] Fix | Delete
[40425] Fix | Delete
return Object(external_wp_element_["createElement"])(toolbar_item["a" /* default */], Object(esm_extends["a" /* default */])({
[40426] Fix | Delete
className: classnames_default()('components-toolbar-button', className)
[40427] Fix | Delete
}, extraProps, props, {
[40428] Fix | Delete
ref: ref
[40429] Fix | Delete
}), function (toolbarItemProps) {
[40430] Fix | Delete
return Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], Object(esm_extends["a" /* default */])({
[40431] Fix | Delete
label: title,
[40432] Fix | Delete
isPressed: isActive,
[40433] Fix | Delete
disabled: isDisabled
[40434] Fix | Delete
}, toolbarItemProps), children);
[40435] Fix | Delete
});
[40436] Fix | Delete
}
[40437] Fix | Delete
[40438] Fix | Delete
/* harmony default export */ var toolbar_button = (Object(external_wp_element_["forwardRef"])(ToolbarButton));
[40439] Fix | Delete
[40440] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/toolbar-group-container.js
[40441] Fix | Delete
[40442] Fix | Delete
[40443] Fix | Delete
[40444] Fix | Delete
[40445] Fix | Delete
var toolbar_group_container_ToolbarGroupContainer = function ToolbarGroupContainer(_ref) {
[40446] Fix | Delete
var className = _ref.className,
[40447] Fix | Delete
children = _ref.children,
[40448] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className", "children"]);
[40449] Fix | Delete
[40450] Fix | Delete
return Object(external_wp_element_["createElement"])("div", Object(esm_extends["a" /* default */])({
[40451] Fix | Delete
className: className
[40452] Fix | Delete
}, props), children);
[40453] Fix | Delete
};
[40454] Fix | Delete
[40455] Fix | Delete
/* harmony default export */ var toolbar_group_container = (toolbar_group_container_ToolbarGroupContainer);
[40456] Fix | Delete
[40457] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-group/toolbar-group-collapsed.js
[40458] Fix | Delete
[40459] Fix | Delete
[40460] Fix | Delete
[40461] Fix | Delete
[40462] Fix | Delete
[40463] Fix | Delete
function toolbar_group_collapsed_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[40464] Fix | Delete
[40465] Fix | Delete
function toolbar_group_collapsed_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { toolbar_group_collapsed_ownKeys(Object(source), true).forEach(function (key) { Object(esm_defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { toolbar_group_collapsed_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[40466] Fix | Delete
[40467] Fix | Delete
/**
[40468] Fix | Delete
* WordPress dependencies
[40469] Fix | Delete
*/
[40470] Fix | Delete
[40471] Fix | Delete
/**
[40472] Fix | Delete
* Internal dependencies
[40473] Fix | Delete
*/
[40474] Fix | Delete
[40475] Fix | Delete
[40476] Fix | Delete
[40477] Fix | Delete
[40478] Fix | Delete
[40479] Fix | Delete
function ToolbarGroupCollapsed(_ref) {
[40480] Fix | Delete
var _ref$controls = _ref.controls,
[40481] Fix | Delete
controls = _ref$controls === void 0 ? [] : _ref$controls,
[40482] Fix | Delete
toggleProps = _ref.toggleProps,
[40483] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["controls", "toggleProps"]);
[40484] Fix | Delete
[40485] Fix | Delete
// It'll contain state if `ToolbarGroup` is being used within
[40486] Fix | Delete
// `<Toolbar label="label" />`
[40487] Fix | Delete
var accessibleToolbarState = Object(external_wp_element_["useContext"])(toolbar_context["a" /* default */]);
[40488] Fix | Delete
[40489] Fix | Delete
var renderDropdownMenu = function renderDropdownMenu(internalToggleProps) {
[40490] Fix | Delete
return Object(external_wp_element_["createElement"])(dropdown_menu, Object(esm_extends["a" /* default */])({
[40491] Fix | Delete
controls: controls,
[40492] Fix | Delete
toggleProps: toolbar_group_collapsed_objectSpread(toolbar_group_collapsed_objectSpread({}, internalToggleProps), {}, {
[40493] Fix | Delete
'data-toolbar-item': true
[40494] Fix | Delete
})
[40495] Fix | Delete
}, props));
[40496] Fix | Delete
};
[40497] Fix | Delete
[40498] Fix | Delete
if (accessibleToolbarState) {
[40499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function