@bigbinary/neeto-themes-frontend 3.1.23 → 3.1.25

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.
Files changed (43) hide show
  1. package/app/javascript/src/translations/ar.json +6 -1
  2. package/app/javascript/src/translations/bg.json +6 -1
  3. package/app/javascript/src/translations/ca.json +6 -1
  4. package/app/javascript/src/translations/cs.json +6 -1
  5. package/app/javascript/src/translations/da.json +6 -1
  6. package/app/javascript/src/translations/de.json +6 -1
  7. package/app/javascript/src/translations/en.json +7 -0
  8. package/app/javascript/src/translations/es-MX.json +6 -1
  9. package/app/javascript/src/translations/es.json +6 -1
  10. package/app/javascript/src/translations/et.json +6 -1
  11. package/app/javascript/src/translations/fi.json +6 -1
  12. package/app/javascript/src/translations/fil.json +6 -1
  13. package/app/javascript/src/translations/fr.json +6 -1
  14. package/app/javascript/src/translations/hi.json +6 -1
  15. package/app/javascript/src/translations/hr.json +6 -1
  16. package/app/javascript/src/translations/id.json +6 -1
  17. package/app/javascript/src/translations/it.json +6 -1
  18. package/app/javascript/src/translations/ja.json +6 -1
  19. package/app/javascript/src/translations/ko.json +6 -1
  20. package/app/javascript/src/translations/nl.json +6 -1
  21. package/app/javascript/src/translations/pl.json +6 -1
  22. package/app/javascript/src/translations/pt-BR.json +6 -1
  23. package/app/javascript/src/translations/pt.json +6 -1
  24. package/app/javascript/src/translations/ro.json +6 -1
  25. package/app/javascript/src/translations/ru.json +6 -1
  26. package/app/javascript/src/translations/sk.json +6 -1
  27. package/app/javascript/src/translations/sl.json +6 -1
  28. package/app/javascript/src/translations/sv.json +6 -1
  29. package/app/javascript/src/translations/th.json +6 -1
  30. package/app/javascript/src/translations/tr.json +6 -1
  31. package/app/javascript/src/translations/uk.json +6 -1
  32. package/app/javascript/src/translations/vi.json +6 -1
  33. package/app/javascript/src/translations/zh-CN.json +6 -1
  34. package/app/javascript/src/translations/zh-TW.json +6 -1
  35. package/dist/NeetoThemesBuilder.js +68 -1
  36. package/dist/NeetoThemesBuilder.js.map +1 -1
  37. package/dist/cjs/NeetoThemesBuilder.js +68 -1
  38. package/dist/cjs/NeetoThemesBuilder.js.map +1 -1
  39. package/dist/cjs/index.js +1 -0
  40. package/dist/cjs/index.js.map +1 -1
  41. package/dist/index.js +1 -0
  42. package/dist/index.js.map +1 -1
  43. 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,62 @@ 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
+ name: "properties[".concat(index, "].value"),
434
+ label: /*#__PURE__*/jsxRuntime.jsx(Typography, {
435
+ className: "my-3",
436
+ component: "span",
437
+ style: "body2",
438
+ weight: "semibold",
439
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.title")
440
+ }),
441
+ children: [/*#__PURE__*/jsxRuntime.jsx(Radio.Item, {
442
+ value: "over_left",
443
+ label: /*#__PURE__*/jsxRuntime.jsxs("span", {
444
+ className: "flex flex-col gap-1",
445
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
446
+ component: "span",
447
+ style: "body2",
448
+ weight: "semibold",
449
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeft")
450
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
451
+ component: "span",
452
+ style: "body3",
453
+ weight: "normal",
454
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeftDescription")
455
+ })]
456
+ })
457
+ }), /*#__PURE__*/jsxRuntime.jsx(Radio.Item, {
458
+ value: "below_left",
459
+ label: /*#__PURE__*/jsxRuntime.jsxs("span", {
460
+ className: "flex flex-col gap-1",
461
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
462
+ component: "span",
463
+ style: "body2",
464
+ weight: "semibold",
465
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeft")
466
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
467
+ component: "span",
468
+ style: "body3",
469
+ weight: "normal",
470
+ children: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeftDescription")
471
+ })]
472
+ })
473
+ })]
474
+ });
475
+ };
476
+
420
477
  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
478
  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
479
  var buildInitialValues = function buildInitialValues(theme, themePropertiesSchema) {
@@ -512,6 +569,15 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
512
569
  }, order !== null && {
513
570
  order: order
514
571
  });
572
+ case "logo_position":
573
+ return _objectSpread$3({
574
+ value: defaultValue,
575
+ kind: "logo_position",
576
+ key: key,
577
+ dependsOn: dependsOn
578
+ }, order !== null && {
579
+ order: order
580
+ });
515
581
  default:
516
582
  return null;
517
583
  }
@@ -1089,6 +1155,7 @@ var ImageBlock = function ImageBlock(_ref) {
1089
1155
  };
1090
1156
 
1091
1157
  var Images = function Images(_ref) {
1158
+ var _values$coverImage;
1092
1159
  var attribute = _ref.attribute,
1093
1160
  className = _ref.className,
1094
1161
  onPropertiesChange = _ref.onPropertiesChange,
@@ -1121,7 +1188,7 @@ var Images = function Images(_ref) {
1121
1188
  }), /*#__PURE__*/jsxRuntime.jsx(Properties, {
1122
1189
  onPropertiesChange: onPropertiesChange,
1123
1190
  condition: attribute
1124
- })]
1191
+ }), key === "logo" && ((_values$coverImage = values.coverImage) === null || _values$coverImage === void 0 ? void 0 : _values$coverImage.url) && /*#__PURE__*/jsxRuntime.jsx(LogoPosition, {})]
1125
1192
  });
1126
1193
  };
1127
1194