@bigbinary/neeto-themes-frontend 3.1.22 → 3.1.24
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/app/javascript/src/translations/en.json +5 -0
- package/app/javascript/src/translations/hi.json +135 -0
- package/dist/NeetoThemesBuilder.js +35 -1
- package/dist/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/NeetoThemesBuilder.js +35 -1
- package/dist/cjs/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
|
@@ -32,6 +32,7 @@ var formik = require('formik');
|
|
|
32
32
|
var jsxRuntime = require('react/jsx-runtime');
|
|
33
33
|
var Right = require('@bigbinary/neeto-icons/Right');
|
|
34
34
|
var HelpPopover = require('@bigbinary/neeto-molecules/HelpPopover');
|
|
35
|
+
var Radio = require('@bigbinary/neetoui/formik/Radio');
|
|
35
36
|
var i18next = require('i18next');
|
|
36
37
|
var CenterAlign = require('@bigbinary/neeto-icons/CenterAlign');
|
|
37
38
|
var LeftAlign = require('@bigbinary/neeto-icons/LeftAlign');
|
|
@@ -417,6 +418,30 @@ var CustomCSS = function CustomCSS(_ref) {
|
|
|
417
418
|
});
|
|
418
419
|
};
|
|
419
420
|
|
|
421
|
+
var LogoPosition = function LogoPosition() {
|
|
422
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
423
|
+
t = _useTranslation.t;
|
|
424
|
+
var _useFormikContext = formik.useFormikContext(),
|
|
425
|
+
values = _useFormikContext.values;
|
|
426
|
+
var index = neetoCist.findIndexBy({
|
|
427
|
+
key: "logo_position"
|
|
428
|
+
}, values.properties);
|
|
429
|
+
// Do not show this field if the logo_position property is not present.
|
|
430
|
+
if (index === -1) return null;
|
|
431
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Radio, {
|
|
432
|
+
stacked: true,
|
|
433
|
+
label: t("neetoThemes.build.leftSideBar.themes.logoPosition.title"),
|
|
434
|
+
name: "properties[".concat(index, "].value"),
|
|
435
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Radio.Item, {
|
|
436
|
+
label: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeft"),
|
|
437
|
+
value: "below_left"
|
|
438
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Radio.Item, {
|
|
439
|
+
label: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeft"),
|
|
440
|
+
value: "over_left"
|
|
441
|
+
})]
|
|
442
|
+
});
|
|
443
|
+
};
|
|
444
|
+
|
|
420
445
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
421
446
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
422
447
|
var buildInitialValues = function buildInitialValues(theme, themePropertiesSchema) {
|
|
@@ -512,6 +537,15 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
512
537
|
}, order !== null && {
|
|
513
538
|
order: order
|
|
514
539
|
});
|
|
540
|
+
case "logo_position":
|
|
541
|
+
return _objectSpread$3({
|
|
542
|
+
value: defaultValue,
|
|
543
|
+
kind: "logo_position",
|
|
544
|
+
key: key,
|
|
545
|
+
dependsOn: dependsOn
|
|
546
|
+
}, order !== null && {
|
|
547
|
+
order: order
|
|
548
|
+
});
|
|
515
549
|
default:
|
|
516
550
|
return null;
|
|
517
551
|
}
|
|
@@ -1121,7 +1155,7 @@ var Images = function Images(_ref) {
|
|
|
1121
1155
|
}), /*#__PURE__*/jsxRuntime.jsx(Properties, {
|
|
1122
1156
|
onPropertiesChange: onPropertiesChange,
|
|
1123
1157
|
condition: attribute
|
|
1124
|
-
})]
|
|
1158
|
+
}), key === "logo" && /*#__PURE__*/jsxRuntime.jsx(LogoPosition, {})]
|
|
1125
1159
|
});
|
|
1126
1160
|
};
|
|
1127
1161
|
|