Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
* @property {string} id The id of the element to which labels and help text are being generated.
[13500] Fix | Delete
* That element should be passed as a child.
[13501] Fix | Delete
* @property {import('react').ReactNode} help If this property is added, a help text will be
[13502] Fix | Delete
* generated using help property as the content.
[13503] Fix | Delete
* @property {import('react').ReactNode} label If this property is added, a label will be generated
[13504] Fix | Delete
* using label property as the content.
[13505] Fix | Delete
* @property {boolean} [hideLabelFromVision] If true, the label will only be visible to screen readers.
[13506] Fix | Delete
* @property {string} [className] The class that will be added with "components-base-control" to the
[13507] Fix | Delete
* classes of the wrapper div. If no className is passed only
[13508] Fix | Delete
* components-base-control is used.
[13509] Fix | Delete
* @property {import('react').ReactNode} [children] The content to be displayed within
[13510] Fix | Delete
* the BaseControl.
[13511] Fix | Delete
*/
[13512] Fix | Delete
[13513] Fix | Delete
/**
[13514] Fix | Delete
* @param {Props} props
[13515] Fix | Delete
* @return {JSX.Element} Element
[13516] Fix | Delete
*/
[13517] Fix | Delete
[13518] Fix | Delete
function BaseControl(_ref) {
[13519] Fix | Delete
var id = _ref.id,
[13520] Fix | Delete
label = _ref.label,
[13521] Fix | Delete
hideLabelFromVision = _ref.hideLabelFromVision,
[13522] Fix | Delete
help = _ref.help,
[13523] Fix | Delete
className = _ref.className,
[13524] Fix | Delete
children = _ref.children;
[13525] Fix | Delete
return Object(external_wp_element_["createElement"])(base_control_styles_Wrapper, {
[13526] Fix | Delete
className: classnames_default()('components-base-control', className)
[13527] Fix | Delete
}, Object(external_wp_element_["createElement"])(StyledField, {
[13528] Fix | Delete
className: "components-base-control__field"
[13529] Fix | Delete
}, label && id && (hideLabelFromVision ? Object(external_wp_element_["createElement"])(visually_hidden["a" /* default */], {
[13530] Fix | Delete
as: "label",
[13531] Fix | Delete
htmlFor: id
[13532] Fix | Delete
}, label) : Object(external_wp_element_["createElement"])(StyledLabel, {
[13533] Fix | Delete
className: "components-base-control__label",
[13534] Fix | Delete
htmlFor: id
[13535] Fix | Delete
}, label)), label && !id && (hideLabelFromVision ? Object(external_wp_element_["createElement"])(visually_hidden["a" /* default */], {
[13536] Fix | Delete
as: "label"
[13537] Fix | Delete
}, label) : Object(external_wp_element_["createElement"])(BaseControl.VisualLabel, null, label)), children), !!help && Object(external_wp_element_["createElement"])(StyledHelp, {
[13538] Fix | Delete
id: id + '__help',
[13539] Fix | Delete
className: "components-base-control__help"
[13540] Fix | Delete
}, help));
[13541] Fix | Delete
}
[13542] Fix | Delete
/**
[13543] Fix | Delete
* @typedef VisualLabelProps
[13544] Fix | Delete
* @property {string} [className] Class name
[13545] Fix | Delete
* @property {import('react').ReactNode} [children] Children
[13546] Fix | Delete
*/
[13547] Fix | Delete
[13548] Fix | Delete
/**
[13549] Fix | Delete
* @param {VisualLabelProps} Props
[13550] Fix | Delete
* @return {JSX.Element} Element
[13551] Fix | Delete
*/
[13552] Fix | Delete
[13553] Fix | Delete
[13554] Fix | Delete
BaseControl.VisualLabel = function (_ref2) {
[13555] Fix | Delete
var className = _ref2.className,
[13556] Fix | Delete
children = _ref2.children;
[13557] Fix | Delete
className = classnames_default()('components-base-control__label', className);
[13558] Fix | Delete
return Object(external_wp_element_["createElement"])("span", {
[13559] Fix | Delete
className: className
[13560] Fix | Delete
}, children);
[13561] Fix | Delete
};
[13562] Fix | Delete
[13563] Fix | Delete
/* harmony default export */ var base_control = (BaseControl);
[13564] Fix | Delete
[13565] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/styles/flex-styles.js
[13566] Fix | Delete
[13567] Fix | Delete
[13568] Fix | Delete
function flex_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
[13569] Fix | Delete
[13570] Fix | Delete
/**
[13571] Fix | Delete
* External dependencies
[13572] Fix | Delete
*/
[13573] Fix | Delete
[13574] Fix | Delete
[13575] Fix | Delete
var flex_styles_alignStyle = function alignStyle(_ref2) {
[13576] Fix | Delete
var align = _ref2.align;
[13577] Fix | Delete
var aligns = {
[13578] Fix | Delete
top: 'flex-start',
[13579] Fix | Delete
bottom: 'flex-end'
[13580] Fix | Delete
};
[13581] Fix | Delete
var value = aligns[align] || align;
[13582] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
[13583] Fix | Delete
alignItems: value
[13584] Fix | Delete
}, true ? "" : undefined);
[13585] Fix | Delete
};
[13586] Fix | Delete
[13587] Fix | Delete
var flex_styles_justifyStyle = function justifyStyle(_ref3) {
[13588] Fix | Delete
var justify = _ref3.justify,
[13589] Fix | Delete
isReversed = _ref3.isReversed;
[13590] Fix | Delete
var justifies = {
[13591] Fix | Delete
left: 'flex-start',
[13592] Fix | Delete
right: 'flex-end'
[13593] Fix | Delete
};
[13594] Fix | Delete
var value = justifies[justify] || justify;
[13595] Fix | Delete
[13596] Fix | Delete
if (isReversed && justifies[justify]) {
[13597] Fix | Delete
value = justify === 'left' ? justifies.right : justifies.left;
[13598] Fix | Delete
}
[13599] Fix | Delete
[13600] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
[13601] Fix | Delete
justifyContent: value
[13602] Fix | Delete
}, true ? "" : undefined);
[13603] Fix | Delete
};
[13604] Fix | Delete
[13605] Fix | Delete
var flex_styles_gapStyle = function gapStyle(_ref4) {
[13606] Fix | Delete
var gap = _ref4.gap,
[13607] Fix | Delete
isReversed = _ref4.isReversed;
[13608] Fix | Delete
var base = 4;
[13609] Fix | Delete
var value = typeof gap === 'number' ? base * gap : base;
[13610] Fix | Delete
var dir = isReversed ? 'left' : 'right';
[13611] Fix | Delete
var margin = "margin-".concat(dir);
[13612] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])("> *{", margin, ":", value, "px;&:last-child{", margin, ":0;}}" + ( true ? "" : undefined));
[13613] Fix | Delete
};
[13614] Fix | Delete
[13615] Fix | Delete
var flex_styles_ref = true ? {
[13616] Fix | Delete
name: "8kj89b",
[13617] Fix | Delete
styles: "flex-direction:row-reverse;"
[13618] Fix | Delete
} : undefined;
[13619] Fix | Delete
[13620] Fix | Delete
var reversedStyles = function reversedStyles(_ref5) {
[13621] Fix | Delete
var isReversed = _ref5.isReversed;
[13622] Fix | Delete
if (!isReversed) return '';
[13623] Fix | Delete
return flex_styles_ref;
[13624] Fix | Delete
};
[13625] Fix | Delete
[13626] Fix | Delete
var Flex = styled_base_browser_esm("div", {
[13627] Fix | Delete
target: "eboqfv50",
[13628] Fix | Delete
label: "Flex"
[13629] Fix | Delete
})("box-sizing:border-box;display:flex;width:100%;", flex_styles_alignStyle, " ", flex_styles_justifyStyle, " ", flex_styles_gapStyle, " ", reversedStyles, true ? "" : undefined);
[13630] Fix | Delete
var Item = styled_base_browser_esm("div", {
[13631] Fix | Delete
target: "eboqfv51",
[13632] Fix | Delete
label: "Item"
[13633] Fix | Delete
})( true ? {
[13634] Fix | Delete
name: "13luw5d",
[13635] Fix | Delete
styles: "box-sizing:border-box;min-width:0;max-width:100%;"
[13636] Fix | Delete
} : undefined);
[13637] Fix | Delete
var Block = /*#__PURE__*/styled_base_browser_esm(Item, {
[13638] Fix | Delete
target: "eboqfv52",
[13639] Fix | Delete
label: "Block"
[13640] Fix | Delete
})( true ? {
[13641] Fix | Delete
name: "1rr4qq7",
[13642] Fix | Delete
styles: "flex:1;"
[13643] Fix | Delete
} : undefined);
[13644] Fix | Delete
[13645] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/block.js
[13646] Fix | Delete
[13647] Fix | Delete
[13648] Fix | Delete
[13649] Fix | Delete
[13650] Fix | Delete
/**
[13651] Fix | Delete
* External dependencies
[13652] Fix | Delete
*/
[13653] Fix | Delete
[13654] Fix | Delete
/**
[13655] Fix | Delete
* Internal dependencies
[13656] Fix | Delete
*/
[13657] Fix | Delete
[13658] Fix | Delete
[13659] Fix | Delete
/**
[13660] Fix | Delete
* WordPress dependencies
[13661] Fix | Delete
*/
[13662] Fix | Delete
[13663] Fix | Delete
[13664] Fix | Delete
[13665] Fix | Delete
function FlexBlock(_ref, ref) {
[13666] Fix | Delete
var className = _ref.className,
[13667] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]);
[13668] Fix | Delete
[13669] Fix | Delete
var classes = classnames_default()('components-flex__block', className);
[13670] Fix | Delete
return Object(external_wp_element_["createElement"])(Block, Object(esm_extends["a" /* default */])({}, props, {
[13671] Fix | Delete
className: classes,
[13672] Fix | Delete
ref: ref
[13673] Fix | Delete
}));
[13674] Fix | Delete
}
[13675] Fix | Delete
[13676] Fix | Delete
/* harmony default export */ var block = (Object(external_wp_element_["forwardRef"])(FlexBlock));
[13677] Fix | Delete
[13678] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/item.js
[13679] Fix | Delete
[13680] Fix | Delete
[13681] Fix | Delete
[13682] Fix | Delete
[13683] Fix | Delete
/**
[13684] Fix | Delete
* External dependencies
[13685] Fix | Delete
*/
[13686] Fix | Delete
[13687] Fix | Delete
/**
[13688] Fix | Delete
* Internal dependencies
[13689] Fix | Delete
*/
[13690] Fix | Delete
[13691] Fix | Delete
[13692] Fix | Delete
/**
[13693] Fix | Delete
* WordPress dependencies
[13694] Fix | Delete
*/
[13695] Fix | Delete
[13696] Fix | Delete
[13697] Fix | Delete
[13698] Fix | Delete
function FlexItem(_ref, ref) {
[13699] Fix | Delete
var className = _ref.className,
[13700] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["className"]);
[13701] Fix | Delete
[13702] Fix | Delete
var classes = classnames_default()('components-flex__item', className);
[13703] Fix | Delete
return Object(external_wp_element_["createElement"])(Item, Object(esm_extends["a" /* default */])({}, props, {
[13704] Fix | Delete
className: classes,
[13705] Fix | Delete
ref: ref
[13706] Fix | Delete
}));
[13707] Fix | Delete
}
[13708] Fix | Delete
[13709] Fix | Delete
/* harmony default export */ var flex_item = (Object(external_wp_element_["forwardRef"])(FlexItem));
[13710] Fix | Delete
[13711] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/flex/index.js
[13712] Fix | Delete
[13713] Fix | Delete
[13714] Fix | Delete
[13715] Fix | Delete
[13716] Fix | Delete
/**
[13717] Fix | Delete
* External dependencies
[13718] Fix | Delete
*/
[13719] Fix | Delete
[13720] Fix | Delete
/**
[13721] Fix | Delete
* WordPress dependencies
[13722] Fix | Delete
*/
[13723] Fix | Delete
[13724] Fix | Delete
[13725] Fix | Delete
/**
[13726] Fix | Delete
* Internal dependencies
[13727] Fix | Delete
*/
[13728] Fix | Delete
[13729] Fix | Delete
[13730] Fix | Delete
[13731] Fix | Delete
[13732] Fix | Delete
[13733] Fix | Delete
function FlexComponent(_ref, ref) {
[13734] Fix | Delete
var _ref$align = _ref.align,
[13735] Fix | Delete
align = _ref$align === void 0 ? 'center' : _ref$align,
[13736] Fix | Delete
className = _ref.className,
[13737] Fix | Delete
_ref$gap = _ref.gap,
[13738] Fix | Delete
gap = _ref$gap === void 0 ? 2 : _ref$gap,
[13739] Fix | Delete
_ref$justify = _ref.justify,
[13740] Fix | Delete
justify = _ref$justify === void 0 ? 'space-between' : _ref$justify,
[13741] Fix | Delete
_ref$isReversed = _ref.isReversed,
[13742] Fix | Delete
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
[13743] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["align", "className", "gap", "justify", "isReversed"]);
[13744] Fix | Delete
[13745] Fix | Delete
var classes = classnames_default()('components-flex', className);
[13746] Fix | Delete
return Object(external_wp_element_["createElement"])(Flex, Object(esm_extends["a" /* default */])({}, props, {
[13747] Fix | Delete
align: align,
[13748] Fix | Delete
className: classes,
[13749] Fix | Delete
ref: ref,
[13750] Fix | Delete
gap: gap,
[13751] Fix | Delete
justify: justify,
[13752] Fix | Delete
isReversed: isReversed
[13753] Fix | Delete
}));
[13754] Fix | Delete
}
[13755] Fix | Delete
[13756] Fix | Delete
var flex_Flex = Object(external_wp_element_["forwardRef"])(FlexComponent);
[13757] Fix | Delete
/* harmony default export */ var flex = (flex_Flex);
[13758] Fix | Delete
[13759] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
[13760] Fix | Delete
function _taggedTemplateLiteral(strings, raw) {
[13761] Fix | Delete
if (!raw) {
[13762] Fix | Delete
raw = strings.slice(0);
[13763] Fix | Delete
}
[13764] Fix | Delete
[13765] Fix | Delete
return Object.freeze(Object.defineProperties(strings, {
[13766] Fix | Delete
raw: {
[13767] Fix | Delete
value: Object.freeze(raw)
[13768] Fix | Delete
}
[13769] Fix | Delete
}));
[13770] Fix | Delete
}
[13771] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/font-family.js
[13772] Fix | Delete
var fontFamily = "font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;";
[13773] Fix | Delete
[13774] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/emotion-css.js
[13775] Fix | Delete
/**
[13776] Fix | Delete
* External dependencies
[13777] Fix | Delete
*/
[13778] Fix | Delete
[13779] Fix | Delete
/* harmony default export */ var emotion_css = (core_browser_esm["b" /* css */]);
[13780] Fix | Delete
[13781] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/styles/text-mixins.js
[13782] Fix | Delete
[13783] Fix | Delete
[13784] Fix | Delete
function _templateObject9() {
[13785] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t", "\n\t", "\n"]);
[13786] Fix | Delete
[13787] Fix | Delete
_templateObject9 = function _templateObject9() {
[13788] Fix | Delete
return data;
[13789] Fix | Delete
};
[13790] Fix | Delete
[13791] Fix | Delete
return data;
[13792] Fix | Delete
}
[13793] Fix | Delete
[13794] Fix | Delete
function _templateObject8() {
[13795] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]);
[13796] Fix | Delete
[13797] Fix | Delete
_templateObject8 = function _templateObject8() {
[13798] Fix | Delete
return data;
[13799] Fix | Delete
};
[13800] Fix | Delete
[13801] Fix | Delete
return data;
[13802] Fix | Delete
}
[13803] Fix | Delete
[13804] Fix | Delete
function _templateObject7() {
[13805] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]);
[13806] Fix | Delete
[13807] Fix | Delete
_templateObject7 = function _templateObject7() {
[13808] Fix | Delete
return data;
[13809] Fix | Delete
};
[13810] Fix | Delete
[13811] Fix | Delete
return data;
[13812] Fix | Delete
}
[13813] Fix | Delete
[13814] Fix | Delete
function _templateObject6() {
[13815] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t"]);
[13816] Fix | Delete
[13817] Fix | Delete
_templateObject6 = function _templateObject6() {
[13818] Fix | Delete
return data;
[13819] Fix | Delete
};
[13820] Fix | Delete
[13821] Fix | Delete
return data;
[13822] Fix | Delete
}
[13823] Fix | Delete
[13824] Fix | Delete
function _templateObject5() {
[13825] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]);
[13826] Fix | Delete
[13827] Fix | Delete
_templateObject5 = function _templateObject5() {
[13828] Fix | Delete
return data;
[13829] Fix | Delete
};
[13830] Fix | Delete
[13831] Fix | Delete
return data;
[13832] Fix | Delete
}
[13833] Fix | Delete
[13834] Fix | Delete
function _templateObject4() {
[13835] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]);
[13836] Fix | Delete
[13837] Fix | Delete
_templateObject4 = function _templateObject4() {
[13838] Fix | Delete
return data;
[13839] Fix | Delete
};
[13840] Fix | Delete
[13841] Fix | Delete
return data;
[13842] Fix | Delete
}
[13843] Fix | Delete
[13844] Fix | Delete
function _templateObject3() {
[13845] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]);
[13846] Fix | Delete
[13847] Fix | Delete
_templateObject3 = function _templateObject3() {
[13848] Fix | Delete
return data;
[13849] Fix | Delete
};
[13850] Fix | Delete
[13851] Fix | Delete
return data;
[13852] Fix | Delete
}
[13853] Fix | Delete
[13854] Fix | Delete
function _templateObject2() {
[13855] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]);
[13856] Fix | Delete
[13857] Fix | Delete
_templateObject2 = function _templateObject2() {
[13858] Fix | Delete
return data;
[13859] Fix | Delete
};
[13860] Fix | Delete
[13861] Fix | Delete
return data;
[13862] Fix | Delete
}
[13863] Fix | Delete
[13864] Fix | Delete
function _templateObject() {
[13865] Fix | Delete
var data = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\t", "\n\t\t\t"]);
[13866] Fix | Delete
[13867] Fix | Delete
_templateObject = function _templateObject() {
[13868] Fix | Delete
return data;
[13869] Fix | Delete
};
[13870] Fix | Delete
[13871] Fix | Delete
return data;
[13872] Fix | Delete
}
[13873] Fix | Delete
[13874] Fix | Delete
/**
[13875] Fix | Delete
* Internal dependencies
[13876] Fix | Delete
*/
[13877] Fix | Delete
[13878] Fix | Delete
[13879] Fix | Delete
[13880] Fix | Delete
var fontWeightNormal = "font-weight: 400;";
[13881] Fix | Delete
var fontWeightMedium = "font-weight: 500;";
[13882] Fix | Delete
var fontWeightSemibold = "font-weight: 600;";
[13883] Fix | Delete
var text_mixins_title = "\n ".concat(fontWeightNormal, "\n");
[13884] Fix | Delete
var titleLarge = "\n\tfont-size: 32px;\n\tline-height: 40px;\n";
[13885] Fix | Delete
var titleMedium = "\n\tfont-size: 24px;\n\tline-height: 32px;\n";
[13886] Fix | Delete
var titleSmall = "\n\tfont-size: 20px;\n\tline-height: 28px;\n";
[13887] Fix | Delete
var subtitle = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 14px;\n\tline-height: 20px;\n");
[13888] Fix | Delete
var subtitleLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n";
[13889] Fix | Delete
var subtitleSmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n";
[13890] Fix | Delete
var text_mixins_body = "\n\t".concat(fontWeightNormal, "\n");
[13891] Fix | Delete
var bodyLarge = "\n\tfont-size: 16px;\n\tline-height: 24px;\n";
[13892] Fix | Delete
var bodySmall = "\n\tfont-size: 14px;\n\tline-height: 20px;\n";
[13893] Fix | Delete
var text_mixins_button = "\n ".concat(fontWeightSemibold, "\n font-size: 14px;\n line-height: 20px;\n");
[13894] Fix | Delete
var caption = "\n\t".concat(fontWeightNormal, "\n\tfont-size: 12px;\n\tline-height: 16px;\n");
[13895] Fix | Delete
var text_mixins_label = "\n\t".concat(fontWeightSemibold, "\n\tfont-size: 12px;\n\tline-height: 16px;\n");
[13896] Fix | Delete
var sectionHeading = "\n\t".concat(fontWeightMedium, "\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(G2.gray[700], "\n");
[13897] Fix | Delete
/**
[13898] Fix | Delete
* @typedef {'title.large'|'title.medium'|'title.small'|'subtitle'|'subtitle.small'|'body'|'body.large'|'body.small'|'button'|'caption'|'label'|'sectionheading'} TextVariant
[13899] Fix | Delete
*/
[13900] Fix | Delete
[13901] Fix | Delete
/**
[13902] Fix | Delete
* @param {TextVariant} variantName
[13903] Fix | Delete
*/
[13904] Fix | Delete
[13905] Fix | Delete
var text_mixins_variant = function variant() {
[13906] Fix | Delete
var variantName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'body';
[13907] Fix | Delete
[13908] Fix | Delete
switch (variantName) {
[13909] Fix | Delete
case 'title.large':
[13910] Fix | Delete
return emotion_css(_templateObject(), text_mixins_title, titleLarge);
[13911] Fix | Delete
[13912] Fix | Delete
case 'title.medium':
[13913] Fix | Delete
return emotion_css(_templateObject2(), text_mixins_title, titleMedium);
[13914] Fix | Delete
[13915] Fix | Delete
case 'title.small':
[13916] Fix | Delete
return emotion_css(_templateObject3(), text_mixins_title, titleSmall);
[13917] Fix | Delete
[13918] Fix | Delete
case 'subtitle':
[13919] Fix | Delete
return emotion_css(_templateObject4(), subtitle, subtitleLarge);
[13920] Fix | Delete
[13921] Fix | Delete
case 'subtitle.small':
[13922] Fix | Delete
return emotion_css(_templateObject5(), subtitle, subtitleSmall);
[13923] Fix | Delete
[13924] Fix | Delete
case 'body':
[13925] Fix | Delete
return emotion_css(_templateObject6(), text_mixins_body);
[13926] Fix | Delete
[13927] Fix | Delete
case 'body.large':
[13928] Fix | Delete
return emotion_css(_templateObject7(), text_mixins_body, bodyLarge);
[13929] Fix | Delete
[13930] Fix | Delete
case 'body.small':
[13931] Fix | Delete
return emotion_css(_templateObject8(), text_mixins_body, bodySmall);
[13932] Fix | Delete
[13933] Fix | Delete
case 'button':
[13934] Fix | Delete
return text_mixins_button;
[13935] Fix | Delete
[13936] Fix | Delete
case 'caption':
[13937] Fix | Delete
return caption;
[13938] Fix | Delete
[13939] Fix | Delete
case 'label':
[13940] Fix | Delete
return text_mixins_label;
[13941] Fix | Delete
[13942] Fix | Delete
case 'sectionheading':
[13943] Fix | Delete
return sectionHeading;
[13944] Fix | Delete
}
[13945] Fix | Delete
};
[13946] Fix | Delete
/**
[13947] Fix | Delete
* @typedef {Object} TextProps
[13948] Fix | Delete
* @property {TextVariant} variant one of TextVariant to be used
[13949] Fix | Delete
*/
[13950] Fix | Delete
[13951] Fix | Delete
/**
[13952] Fix | Delete
* @param {TextProps} props
[13953] Fix | Delete
*/
[13954] Fix | Delete
[13955] Fix | Delete
[13956] Fix | Delete
var text_mixins_text = function text(props) {
[13957] Fix | Delete
return emotion_css(_templateObject9(), fontFamily, text_mixins_variant(props.variant));
[13958] Fix | Delete
};
[13959] Fix | Delete
[13960] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/ui/context/with-next.js
[13961] Fix | Delete
[13962] Fix | Delete
[13963] Fix | Delete
[13964] Fix | Delete
[13965] Fix | Delete
/**
[13966] Fix | Delete
* External dependencies
[13967] Fix | Delete
*/
[13968] Fix | Delete
[13969] Fix | Delete
/**
[13970] Fix | Delete
* @template {{}} TCurrentProps
[13971] Fix | Delete
* @template {{}} TNextProps
[13972] Fix | Delete
* @param {import('react').ComponentType<TCurrentProps>} CurrentComponent
[13973] Fix | Delete
* @param {import('react').ComponentType<TNextProps>} NextComponent
[13974] Fix | Delete
* @param {string} namespace
[13975] Fix | Delete
* @param {(props: TCurrentProps) => TNextProps} adapter
[13976] Fix | Delete
*/
[13977] Fix | Delete
[13978] Fix | Delete
function withNext() {
[13979] Fix | Delete
var CurrentComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
[13980] Fix | Delete
return null;
[13981] Fix | Delete
};
[13982] Fix | Delete
var NextComponent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
[13983] Fix | Delete
return null;
[13984] Fix | Delete
};
[13985] Fix | Delete
var namespace = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Component';
[13986] Fix | Delete
var adapter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function (p) {
[13987] Fix | Delete
return (
[13988] Fix | Delete
/** @type {any} */
[13989] Fix | Delete
p
[13990] Fix | Delete
);
[13991] Fix | Delete
};
[13992] Fix | Delete
[13993] Fix | Delete
if (false) { var WrappedComponent; }
[13994] Fix | Delete
[13995] Fix | Delete
return CurrentComponent;
[13996] Fix | Delete
}
[13997] Fix | Delete
[13998] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/text/next.js
[13999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function