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