@bigbinary/neeto-themes-frontend 2.1.2 → 2.1.3

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.
@@ -11,7 +11,7 @@
11
11
  "recording_other": "Recordings"
12
12
  },
13
13
  "common": {
14
- "design": "Design",
14
+ "theme": "Theme",
15
15
  "preview": "Preview",
16
16
  "save": "Save",
17
17
  "done": "Done",
@@ -858,10 +858,15 @@ var Properties = function Properties(_ref) {
858
858
  return /*#__PURE__*/jsx(Card$2, {
859
859
  title: t("neetoThemes.common.style"),
860
860
  children: values.properties.sort(function (a, b) {
861
- var _a$order, _b$order;
862
- return ((_a$order = a.order) !== null && _a$order !== void 0 ? _a$order : Infinity) - ((_b$order = b.order) !== null && _b$order !== void 0 ? _b$order : Infinity);
861
+ var order = function order(key) {
862
+ var _findBy;
863
+ return ((_findBy = findBy({
864
+ key: key
865
+ }, themePropertiesSchema)) === null || _findBy === void 0 ? void 0 : _findBy.order) || Infinity;
866
+ };
867
+ return order(a.key) - order(b.key);
863
868
  }).map(function (_ref3) {
864
- var _findBy;
869
+ var _findBy2;
865
870
  var key = _ref3.key,
866
871
  value = _ref3.value,
867
872
  kind = _ref3.kind;
@@ -884,9 +889,9 @@ var Properties = function Properties(_ref) {
884
889
  return /*#__PURE__*/jsx(ColorBlock, {
885
890
  color: value,
886
891
  label: buildLabel(key, kind),
887
- showTransparencyControl: ((_findBy = findBy({
892
+ showTransparencyControl: ((_findBy2 = findBy({
888
893
  key: key
889
- }, themePropertiesSchema)) === null || _findBy === void 0 ? void 0 : _findBy.showTransparencyControl) || false,
894
+ }, themePropertiesSchema)) === null || _findBy2 === void 0 ? void 0 : _findBy2.showTransparencyControl) || false,
890
895
  onChange: handleColorChange(key)
891
896
  }, key);
892
897
  case "radius":
@@ -912,13 +917,13 @@ var Properties = function Properties(_ref) {
912
917
  }, key);
913
918
  case "position_selector":
914
919
  {
915
- var _findBy2;
920
+ var _findBy3;
916
921
  var index = findIndexBy({
917
922
  key: key
918
923
  }, values.properties);
919
- var options = (_findBy2 = findBy({
924
+ var options = (_findBy3 = findBy({
920
925
  key: key
921
- }, themePropertiesSchema)) === null || _findBy2 === void 0 || (_findBy2 = _findBy2.options) === null || _findBy2 === void 0 ? void 0 : _findBy2.map(toLabelAndValue);
926
+ }, themePropertiesSchema)) === null || _findBy3 === void 0 || (_findBy3 = _findBy3.options) === null || _findBy3 === void 0 ? void 0 : _findBy3.map(toLabelAndValue);
922
927
  return /*#__PURE__*/jsx(SelectBlock, {
923
928
  label: buildLabel(key, kind),
924
929
  options: options || POSITION_OPTIONS,
@@ -1888,7 +1893,7 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
1888
1893
  })]
1889
1894
  });
1890
1895
  };
1891
- var index = withTitle(NeetoThemesBuilder, t$1("neetoThemes.common.design"));
1896
+ var index = withTitle(NeetoThemesBuilder, t$1("neetoThemes.common.theme"));
1892
1897
 
1893
1898
  export { index as default };
1894
1899
  //# sourceMappingURL=NeetoThemesBuilder.js.map