@bigbinary/neeto-themes-frontend 4.2.1 → 4.2.2
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.
- package/app/javascript/src/translations/en.json +1 -1
- package/dist/.ready +1 -1
- package/dist/NeetoThemesBuilder.js +1 -1
- package/dist/cjs/NeetoThemesBuilder.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/v2/NeetoThemesBuilder.js +33 -29
- package/dist/cjs/v2/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/v2/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{useGlobalThemesApi-Coy_QCaR.js → useGlobalThemesApi-BUWGKtCL.js} +2 -2
- package/dist/{useGlobalThemesApi-Coy_QCaR.js.map → useGlobalThemesApi-BUWGKtCL.js.map} +1 -1
- package/dist/{useGlobalThemesApi-B1xhx83z.js → useGlobalThemesApi-C-jx4UaU.js} +2 -2
- package/dist/{useGlobalThemesApi-B1xhx83z.js.map → useGlobalThemesApi-C-jx4UaU.js.map} +1 -1
- package/dist/v2/NeetoThemesBuilder.js +34 -30
- package/dist/v2/NeetoThemesBuilder.js.map +1 -1
- package/dist/v2/index.js +1 -1
- package/package.json +5 -5
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"title": "Logo position",
|
|
112
112
|
"belowLeft": "Below the cover image",
|
|
113
113
|
"belowLeftDescription": "Logo appears left-aligned below the cover image.",
|
|
114
|
-
"overLeft": "
|
|
114
|
+
"overLeft": "Over the cover image",
|
|
115
115
|
"overLeftDescription": "Logo overlaps partially with the cover image."
|
|
116
116
|
},
|
|
117
117
|
"themeCloned": "Theme has been cloned successfully.",
|
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-
|
|
1
|
+
Built at 2026-11-02T07:56:31.873Z
|
|
@@ -7,7 +7,7 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
7
7
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
8
8
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
9
9
|
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
10
|
-
import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useCreateTheme, c as useUpdateTheme, d as routes, e as useCloneTheme, f as useApplyTheme, g as useListThemes, h as useShowThemeEntity, i as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-
|
|
10
|
+
import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useCreateTheme, c as useUpdateTheme, d as routes, e as useCloneTheme, f as useApplyTheme, g as useListThemes, h as useShowThemeEntity, i as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-C-jx4UaU.js';
|
|
11
11
|
import { a as useExpandedSection, b as useConfigStore, c as useThemeStore, u as useThemeUtils, P as POSITION_OPTIONS, H as HUNDRED, O as OVERLAY_OPACITY_SLIDER_MARKS, F as FONT_OPTIONS, d as useSyncExpandedSectionFromUrl, T as THEME_VALIDATION_SCHEMA, A as APPLY_SPINNER_DELAY } from './useExpandedSection-MjgB7rh6.js';
|
|
12
12
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
13
13
|
import classnames from 'classnames';
|
|
@@ -9,7 +9,7 @@ var reactI18next = require('react-i18next');
|
|
|
9
9
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
10
10
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
11
11
|
var Toastr = require('@bigbinary/neetoui/Toastr');
|
|
12
|
-
var useGlobalThemesApi = require('../useGlobalThemesApi-
|
|
12
|
+
var useGlobalThemesApi = require('../useGlobalThemesApi-BUWGKtCL.js');
|
|
13
13
|
var useExpandedSection = require('../useExpandedSection-BTBI4UqP.js');
|
|
14
14
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
15
15
|
var classnames = require('classnames');
|
package/dist/cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var NeetoThemesBuilder = require('./NeetoThemesBuilder.js');
|
|
4
4
|
var useExpandedSection = require('../useExpandedSection-BTBI4UqP.js');
|
|
5
|
-
var useGlobalThemesApi = require('../useGlobalThemesApi-
|
|
5
|
+
var useGlobalThemesApi = require('../useGlobalThemesApi-BUWGKtCL.js');
|
|
6
6
|
var utils = require('../index-CZdpMMBb.js');
|
|
7
7
|
require('zustand/shallow');
|
|
8
8
|
require('react');
|
|
@@ -6,7 +6,7 @@ var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
|
6
6
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
7
7
|
var reactUtils$1 = require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
8
8
|
var reactI18next = require('react-i18next');
|
|
9
|
-
var useGlobalThemesApi = require('../../useGlobalThemesApi-
|
|
9
|
+
var useGlobalThemesApi = require('../../useGlobalThemesApi-BUWGKtCL.js');
|
|
10
10
|
var useExpandedSection = require('../../useExpandedSection-BTBI4UqP.js');
|
|
11
11
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
12
12
|
var _regeneratorRuntime = require('@babel/runtime/regenerator');
|
|
@@ -505,6 +505,7 @@ var CustomCSS = function CustomCSS(_ref) {
|
|
|
505
505
|
var LogoPosition = function LogoPosition() {
|
|
506
506
|
var _useTranslation = reactI18next.useTranslation(),
|
|
507
507
|
t = _useTranslation.t;
|
|
508
|
+
var labelId = react.useId();
|
|
508
509
|
var _useFormikContext = formik.useFormikContext(),
|
|
509
510
|
values = _useFormikContext.values;
|
|
510
511
|
var index = neetoCist.findIndexBy({
|
|
@@ -512,58 +513,61 @@ var LogoPosition = function LogoPosition() {
|
|
|
512
513
|
}, values.properties);
|
|
513
514
|
// Do not show this field if the logo_position property is not present.
|
|
514
515
|
if (index === -1) return null;
|
|
515
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
label: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
516
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
517
|
+
className: "flex flex-col",
|
|
518
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
519
519
|
asChild: true,
|
|
520
520
|
className: "my-3",
|
|
521
521
|
variant: "body2",
|
|
522
522
|
weight: "semibold",
|
|
523
523
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
524
|
+
id: labelId,
|
|
524
525
|
children: t("neetoThemes.build.leftSideBar.themes.logoPosition.title")
|
|
525
526
|
})
|
|
526
|
-
}),
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
536
|
-
children: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeft")
|
|
537
|
-
})
|
|
538
|
-
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
527
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(formik$1.RadioGroup, {
|
|
528
|
+
"aria-labelledby": labelId,
|
|
529
|
+
className: "border-border !gap-0 overflow-hidden rounded-lg border",
|
|
530
|
+
name: "properties[".concat(index, "].value"),
|
|
531
|
+
orientation: "vertical",
|
|
532
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(formik$1.RadioGroup.Item, {
|
|
533
|
+
className: "p-3",
|
|
534
|
+
value: "over_left",
|
|
535
|
+
helpText: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
539
536
|
asChild: true,
|
|
540
537
|
variant: "body3",
|
|
541
538
|
weight: "normal",
|
|
542
539
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
543
540
|
children: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeftDescription")
|
|
544
541
|
})
|
|
545
|
-
})
|
|
546
|
-
|
|
547
|
-
}), /*#__PURE__*/jsxRuntime.jsx(formik$1.RadioGroup.Item, {
|
|
548
|
-
value: "below_left",
|
|
549
|
-
label: /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
550
|
-
className: "flex flex-col gap-1",
|
|
551
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
542
|
+
}),
|
|
543
|
+
label: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
552
544
|
asChild: true,
|
|
553
545
|
variant: "body2",
|
|
554
546
|
weight: "semibold",
|
|
555
547
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
556
|
-
children: t("neetoThemes.build.leftSideBar.themes.logoPosition.
|
|
548
|
+
children: t("neetoThemes.build.leftSideBar.themes.logoPosition.overLeft")
|
|
557
549
|
})
|
|
558
|
-
})
|
|
550
|
+
})
|
|
551
|
+
}), /*#__PURE__*/jsxRuntime.jsx(formik$1.RadioGroup.Item, {
|
|
552
|
+
className: "border-border border-t p-3",
|
|
553
|
+
value: "below_left",
|
|
554
|
+
helpText: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
559
555
|
asChild: true,
|
|
560
556
|
variant: "body3",
|
|
561
557
|
weight: "normal",
|
|
562
558
|
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
563
559
|
children: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeftDescription")
|
|
564
560
|
})
|
|
565
|
-
})
|
|
566
|
-
|
|
561
|
+
}),
|
|
562
|
+
label: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
563
|
+
asChild: true,
|
|
564
|
+
variant: "body2",
|
|
565
|
+
weight: "semibold",
|
|
566
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
567
|
+
children: t("neetoThemes.build.leftSideBar.themes.logoPosition.belowLeft")
|
|
568
|
+
})
|
|
569
|
+
})
|
|
570
|
+
})]
|
|
567
571
|
})]
|
|
568
572
|
});
|
|
569
573
|
};
|