@bigbinary/neeto-themes-frontend 3.1.26 → 3.1.28
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.
|
@@ -267,7 +267,8 @@ var Card$2 = function Card(_ref) {
|
|
|
267
267
|
children = _ref.children,
|
|
268
268
|
name = _ref.name,
|
|
269
269
|
className = _ref.className,
|
|
270
|
-
helpPopoverProps = _ref.helpPopoverProps
|
|
270
|
+
helpPopoverProps = _ref.helpPopoverProps,
|
|
271
|
+
required = _ref.required;
|
|
271
272
|
var _useConfigStore = useConfigStore(function (store) {
|
|
272
273
|
return {
|
|
273
274
|
accordionOpenState: store["accordionOpenState"],
|
|
@@ -295,7 +296,11 @@ var Card$2 = function Card(_ref) {
|
|
|
295
296
|
lineHeight: "normal",
|
|
296
297
|
style: "h4",
|
|
297
298
|
weight: "semibold",
|
|
298
|
-
children: [title,
|
|
299
|
+
children: [title, required && /*#__PURE__*/jsx("span", {
|
|
300
|
+
"aria-hidden": true,
|
|
301
|
+
className: "-ml-1",
|
|
302
|
+
children: "*"
|
|
303
|
+
}), isPresent(helpPopoverProps) && /*#__PURE__*/jsx(HelpPopover, _objectSpread$4({}, helpPopoverProps))]
|
|
299
304
|
}), /*#__PURE__*/jsx(Right, {
|
|
300
305
|
size: 20,
|
|
301
306
|
className: classnames("transition-all duration-300", {
|
|
@@ -864,7 +869,8 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
864
869
|
|
|
865
870
|
var Properties = function Properties(_ref) {
|
|
866
871
|
var onPropertiesChange = _ref.onPropertiesChange,
|
|
867
|
-
condition = _ref.condition
|
|
872
|
+
condition = _ref.condition,
|
|
873
|
+
themeId = _ref.themeId;
|
|
868
874
|
var _useConfigStore = useConfigStore(function (store) {
|
|
869
875
|
return {
|
|
870
876
|
themePropertiesSchema: store["themePropertiesSchema"]
|
|
@@ -923,6 +929,7 @@ var Properties = function Properties(_ref) {
|
|
|
923
929
|
}
|
|
924
930
|
};
|
|
925
931
|
useEffect(function () {
|
|
932
|
+
if (!((values === null || values === void 0 ? void 0 : values.id) === themeId)) return;
|
|
926
933
|
onPropertiesChange === null || onPropertiesChange === void 0 || onPropertiesChange(values, handleChange, handleColorChange);
|
|
927
934
|
setTheme(values);
|
|
928
935
|
setThemeState({
|
|
@@ -1204,6 +1211,7 @@ var ThemeMeta = function ThemeMeta(_ref) {
|
|
|
1204
1211
|
nameHelpPopoverProps = _helpPopoverProps$nam === void 0 ? {} : _helpPopoverProps$nam;
|
|
1205
1212
|
return /*#__PURE__*/jsx(Card$2, {
|
|
1206
1213
|
className: className,
|
|
1214
|
+
required: true,
|
|
1207
1215
|
helpPopoverProps: nameHelpPopoverProps,
|
|
1208
1216
|
name: "name",
|
|
1209
1217
|
title: t("neetoThemes.common.name"),
|
|
@@ -1362,7 +1370,8 @@ var Customize = function Customize(_ref) {
|
|
|
1362
1370
|
name: "style",
|
|
1363
1371
|
title: t("neetoThemes.common.style"),
|
|
1364
1372
|
children: /*#__PURE__*/jsx(Properties, {
|
|
1365
|
-
onPropertiesChange: onPropertiesChange
|
|
1373
|
+
onPropertiesChange: onPropertiesChange,
|
|
1374
|
+
themeId: themeId
|
|
1366
1375
|
})
|
|
1367
1376
|
}), filterBy({
|
|
1368
1377
|
kind: "image"
|
|
@@ -1657,7 +1666,7 @@ var Card = function Card(_ref) {
|
|
|
1657
1666
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1658
1667
|
className: "flex items-center space-x-2",
|
|
1659
1668
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1660
|
-
className: "line-clamp-2 min-w-0 flex-grow
|
|
1669
|
+
className: "line-clamp-2 min-w-0 flex-grow wrap-anywhere pt-1",
|
|
1661
1670
|
"data-cy": "theme-name",
|
|
1662
1671
|
lineHeight: "snug",
|
|
1663
1672
|
style: "body2",
|