@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.
|
@@ -909,10 +909,15 @@ var Properties = function Properties(_ref) {
|
|
|
909
909
|
return /*#__PURE__*/jsxRuntime.jsx(Card$2, {
|
|
910
910
|
title: t("neetoThemes.common.style"),
|
|
911
911
|
children: values.properties.sort(function (a, b) {
|
|
912
|
-
var
|
|
913
|
-
|
|
912
|
+
var order = function order(key) {
|
|
913
|
+
var _findBy;
|
|
914
|
+
return ((_findBy = neetoCist.findBy({
|
|
915
|
+
key: key
|
|
916
|
+
}, themePropertiesSchema)) === null || _findBy === void 0 ? void 0 : _findBy.order) || Infinity;
|
|
917
|
+
};
|
|
918
|
+
return order(a.key) - order(b.key);
|
|
914
919
|
}).map(function (_ref3) {
|
|
915
|
-
var
|
|
920
|
+
var _findBy2;
|
|
916
921
|
var key = _ref3.key,
|
|
917
922
|
value = _ref3.value,
|
|
918
923
|
kind = _ref3.kind;
|
|
@@ -935,9 +940,9 @@ var Properties = function Properties(_ref) {
|
|
|
935
940
|
return /*#__PURE__*/jsxRuntime.jsx(ColorBlock, {
|
|
936
941
|
color: value,
|
|
937
942
|
label: buildLabel(key, kind),
|
|
938
|
-
showTransparencyControl: ((
|
|
943
|
+
showTransparencyControl: ((_findBy2 = neetoCist.findBy({
|
|
939
944
|
key: key
|
|
940
|
-
}, themePropertiesSchema)) === null ||
|
|
945
|
+
}, themePropertiesSchema)) === null || _findBy2 === void 0 ? void 0 : _findBy2.showTransparencyControl) || false,
|
|
941
946
|
onChange: handleColorChange(key)
|
|
942
947
|
}, key);
|
|
943
948
|
case "radius":
|
|
@@ -963,13 +968,13 @@ var Properties = function Properties(_ref) {
|
|
|
963
968
|
}, key);
|
|
964
969
|
case "position_selector":
|
|
965
970
|
{
|
|
966
|
-
var
|
|
971
|
+
var _findBy3;
|
|
967
972
|
var index = neetoCist.findIndexBy({
|
|
968
973
|
key: key
|
|
969
974
|
}, values.properties);
|
|
970
|
-
var options = (
|
|
975
|
+
var options = (_findBy3 = neetoCist.findBy({
|
|
971
976
|
key: key
|
|
972
|
-
}, themePropertiesSchema)) === null ||
|
|
977
|
+
}, themePropertiesSchema)) === null || _findBy3 === void 0 || (_findBy3 = _findBy3.options) === null || _findBy3 === void 0 ? void 0 : _findBy3.map(neetoCist.toLabelAndValue);
|
|
973
978
|
return /*#__PURE__*/jsxRuntime.jsx(SelectBlock, {
|
|
974
979
|
label: buildLabel(key, kind),
|
|
975
980
|
options: options || POSITION_OPTIONS,
|
|
@@ -1939,7 +1944,7 @@ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
|
|
|
1939
1944
|
})]
|
|
1940
1945
|
});
|
|
1941
1946
|
};
|
|
1942
|
-
var index = reactUtils.withTitle(NeetoThemesBuilder, i18next.t("neetoThemes.common.
|
|
1947
|
+
var index = reactUtils.withTitle(NeetoThemesBuilder, i18next.t("neetoThemes.common.theme"));
|
|
1943
1948
|
|
|
1944
1949
|
module.exports = index;
|
|
1945
1950
|
//# sourceMappingURL=NeetoThemesBuilder.js.map
|