@bigbinary/neeto-themes-frontend 4.0.30 → 4.0.32
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/dist/.ready +1 -1
- package/dist/NeetoThemesBuilder.js +4 -1
- package/dist/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/NeetoThemesBuilder.js +4 -1
- package/dist/cjs/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/v2/NeetoThemesBuilder.js +158 -152
- package/dist/cjs/v2/NeetoThemesBuilder.js.map +1 -1
- package/dist/cjs/v2/index.js +2 -14
- package/dist/cjs/v2/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/useGlobalThemesApi-CuO0V6wS.js +8144 -0
- package/dist/{useGlobalThemesApi-BUsKyTn_.js.map → useGlobalThemesApi-CuO0V6wS.js.map} +1 -1
- package/dist/useGlobalThemesApi-llxHjPOu.js +8131 -0
- package/dist/{useGlobalThemesApi-BTyTasTb.js.map → useGlobalThemesApi-llxHjPOu.js.map} +1 -1
- package/dist/v2/NeetoThemesBuilder.js +158 -152
- package/dist/v2/NeetoThemesBuilder.js.map +1 -1
- package/dist/v2/index.js +2 -14
- package/dist/v2/index.js.map +1 -1
- package/package.json +3 -1
- package/dist/useGlobalThemesApi-BTyTasTb.js +0 -8134
- package/dist/useGlobalThemesApi-BUsKyTn_.js +0 -8146
|
@@ -1,50 +1,41 @@
|
|
|
1
1
|
import { shallow } from 'zustand/shallow';
|
|
2
2
|
import { Suspense, lazy, useEffect, createElement, useState, memo, useRef, useCallback, useMemo } from 'react';
|
|
3
|
-
import { Toastr, Spinner, Typography, Button, ColorPicker, Select, Checkbox, Switch, Input, Tooltip, Popover, Alert } from '@bigbinary/neeto-atoms';
|
|
4
|
-
import {
|
|
3
|
+
import { Toastr, Spinner, Typography, Button, Label, ColorPicker, Select, Slider, Checkbox, Switch, Input, Tooltip, Popover, Alert } from '@bigbinary/neeto-atoms';
|
|
4
|
+
import { hyphenate, isPresent, findBy, findIndexBy, isNot, filterBy, snakeToCamelCase, isNotPresent, toLabelAndValue, capitalize, humanize, isNotEmpty, noop } from '@bigbinary/neeto-cist';
|
|
5
5
|
import { useQueryParams, useBreakpoints, PageTitle } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
|
-
import { 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-
|
|
7
|
+
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-llxHjPOu.js';
|
|
8
8
|
import { a as useExpandedSection, b as useConfigStore, c as useThemeStore, u as useThemeUtils, d as useSyncExpandedSectionFromUrl } from '../useExpandedSection-MjgB7rh6.js';
|
|
9
9
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
10
10
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
11
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import classnames from 'classnames';
|
|
13
|
+
import { ChevronLeft, ChevronRight, AlignLeft, AlignCenter, X, Pipette, ImagePlus, Code, ArrowRight, ArrowLeft, Search as Search$1, ChevronsRight, ChevronsLeft } from 'lucide-react';
|
|
13
14
|
import { joinHyphenCase, buildUrl } from '@bigbinary/neeto-commons-frontend/v2/utils';
|
|
14
|
-
import Collapse from '@bigbinary/neeto-icons/Collapse';
|
|
15
15
|
import { useHistory, useParams, Switch as Switch$1, Route } from 'react-router-dom';
|
|
16
16
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
17
17
|
import { RadioGroup, Input as Input$1, Form, BlockNavigation } from '@bigbinary/neeto-atoms/formik';
|
|
18
|
-
import Close from '@bigbinary/neeto-icons/Close';
|
|
19
18
|
import { isEmpty, negate, isNotNil } from 'ramda';
|
|
20
19
|
import i18n, { t } from 'i18next';
|
|
21
20
|
import * as yup from 'yup';
|
|
22
21
|
import { useFormikContext, Field } from 'formik';
|
|
23
22
|
import { b as setCustomCSS } from '../index-CzRk-Wf1.js';
|
|
24
23
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
|
-
import Right from '@bigbinary/neeto-icons/Right';
|
|
26
|
-
import Left from '@bigbinary/neeto-icons/Left';
|
|
27
24
|
import HelpPopover from '@bigbinary/neeto-molecules/v2/HelpPopover';
|
|
28
25
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
29
26
|
import { flushSync } from 'react-dom';
|
|
30
|
-
import CenterAlign from '@bigbinary/neeto-icons/CenterAlign';
|
|
31
|
-
import LeftAlign from '@bigbinary/neeto-icons/LeftAlign';
|
|
32
|
-
import { Slider } from 'antd';
|
|
33
27
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
34
28
|
import ImageUploader from '@bigbinary/neeto-image-uploader-frontend/v2/ImageUploader';
|
|
35
29
|
import Search from '@bigbinary/neeto-molecules/v2/Search';
|
|
36
|
-
import AddImage from '@bigbinary/neeto-icons/AddImage';
|
|
37
|
-
import CodeBlock from '@bigbinary/neeto-icons/CodeBlock';
|
|
38
|
-
import ColorPicker$1 from '@bigbinary/neeto-icons/ColorPicker';
|
|
39
30
|
import MoreDropdown from '@bigbinary/neeto-molecules/v2/MoreDropdown';
|
|
40
|
-
import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
|
|
41
|
-
import RightArrow from '@bigbinary/neeto-icons/RightArrow';
|
|
42
|
-
import Search$1 from '@bigbinary/neeto-icons/Search';
|
|
43
31
|
import '@tanstack/react-query';
|
|
44
32
|
import 'axios';
|
|
45
33
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
46
34
|
import 'zustand';
|
|
47
35
|
|
|
36
|
+
var css = ":root{--themes-sidebar-expanded:520px;--themes-sidebar-width-xl:340px;--themes-sidebar-width-lg:320px;--themes-sidebar-width-sm:280px;--themes-sidebar-header-height:120px;--builder-header-height:65px}.neeto-themes__wrapper{display:flex;height:calc(100vh - 65px);height:calc(100vh - var(--builder-header-height));height:calc(100dvh - 65px);height:calc(100dvh - var(--builder-header-height));width:100%}.neeto-themes__wrapper .neeto-themes-sidebar{background-color:var(--background);height:100%;inset-inline-start:0;padding-top:1.5rem;position:fixed;top:0;transition:none;width:100%;z-index:102}.neeto-themes__wrapper .neeto-themes-sidebar--expanded{max-width:100%;width:520px!important;width:var(--themes-sidebar-expanded)!important}@media screen and (min-width:576px){.neeto-themes__wrapper .neeto-themes-sidebar{width:280px;width:var(--themes-sidebar-width-sm)}}@media screen and (min-width:768px){.neeto-themes__wrapper .neeto-themes-sidebar{height:calc(100vh - 65px);height:calc(100vh - var(--builder-header-height));height:calc(100dvh - 65px);height:calc(100dvh - var(--builder-header-height));padding-top:0;position:relative;z-index:auto}}@media screen and (min-width:1024px){.neeto-themes__wrapper .neeto-themes-sidebar{width:320px;width:var(--themes-sidebar-width-lg)}}@media screen and (min-width:1280px){.neeto-themes__wrapper .neeto-themes-sidebar{width:340px;width:var(--themes-sidebar-width-xl)}}.neeto-themes__wrapper .neeto-themes-sidebar--collapsed{max-width:0;min-width:0;width:0}.neeto-themes__wrapper .neeto-themes-sidebar--collapsed .neeto-themes-sidebar__toggler{transform:scale(-1)}@media screen and (max-width:767px){.neeto-themes__wrapper .neeto-themes-sidebar--collapsed .neeto-themes-sidebar__toggler{top:6.8125rem}}@media screen and (max-width:576px){.neeto-themes__wrapper .neeto-themes-sidebar--collapsed .neeto-themes-sidebar__toggler{inset-inline-end:auto;inset-inline-start:.5rem}}.neeto-themes__wrapper .neeto-themes-sidebar--collapsed .neeto-themes-sidebar__header{display:none}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__scroll{display:flex;flex-direction:column;height:calc(100vh - 120px);height:calc(100vh - var(--themes-sidebar-header-height));height:calc(100dvh - 120px);height:calc(100dvh - var(--themes-sidebar-header-height));overflow-y:auto}.neeto-themes__wrapper .css-editor-height__expanded{height:calc(100vh - 300px);height:calc(100dvh - 300px)}.neeto-themes__wrapper .css-editor-height__regular{height:384px}.neeto-themes__wrapper .neeto-themes-preview__wrapper{flex-grow:1;height:calc(100vh - 65px);height:calc(100vh - var(--builder-header-height));height:calc(100dvh - 65px);height:calc(100dvh - var(--builder-header-height));position:relative}.neeto-themes-theme-thumbnail:hover{box-shadow:0 0 0 2px var(--border)}.neeto-themes-theme-thumbnail--preview-active{border-color:var(--muted-foreground)!important;box-shadow:none!important}.neeto-themes-theme-thumbnail--preview-active .neeto-themes-theme-thumbnail__overlay{opacity:.6}.neeto-themes-theme-thumbnail--active{border-color:var(--primary)!important;box-shadow:none!important}.neeto-themes-theme-thumbnail--active .neeto-themes-theme-thumbnail__overlay{opacity:.6}.neeto-themes-theme-thumbnail--highlight-active{border-color:var(--input)!important;box-shadow:none!important}.neeto-themes-theme-thumbnail__preview-btn--disabled{box-shadow:inset 0 0 0 1px var(--border);color:var(--muted-foreground)}.neeto-themes-sidebar__custom-css-editor-header{background-color:#1e1e1e;border-start-end-radius:var(--radius-lg);border-start-start-radius:var(--radius-lg);display:flex}@media screen and (max-width:576px){.neeto-themes-sidebar__custom-css-editor-header{display:none}}.neeto-themes-sidebar .monaco-editor,.neeto-themes-sidebar .overflow-guard{border-end-end-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.neeto-themes-sidebar__custom-css-wrapper .neeto-themes-nano-section{border-bottom:0!important}.neeto-themes-sidebar__backdrop{background-color:color-mix(in oklab,var(--foreground) 40%,transparent);display:none;height:100%;inset-inline-start:0;position:fixed;top:0;visibility:hidden;width:100%;z-index:101}@media screen and (max-width:767px){.neeto-themes-sidebar__backdrop{display:block;visibility:visible}}.neeto-themes-sidebar__toggler{flex-shrink:0;inset-inline-start:calc(100% + .5rem);position:absolute;top:.5rem;transition:color .3s ease-in-out;z-index:1}@media screen and (min-width:1024px){.neeto-themes-sidebar__toggler{opacity:0;pointer-events:none}}@media screen and (max-width:576px){.neeto-themes-sidebar__toggler{inset-inline-end:1.5rem;inset-inline-start:auto}}.neeto-themes-nano-alignment-button{padding-inline:.75rem!important}.neeto-themes-nano-alignment-button__alignment-left{border-end-end-radius:0!important;border-start-end-radius:0!important}.neeto-themes-nano-alignment-button__alignment-center{border-end-start-radius:0!important;border-start-start-radius:0!important}.neeto-themes-nano-section__content--open{max-height:1500px;opacity:1;padding-top:.25rem;visibility:visible}.neeto-themes-nano-section__content--closed{max-height:0;opacity:0;visibility:hidden}.neeto-themes-nano-section__title:focus-visible{box-shadow:0 0 0 3px color-mix(in oklab,var(--primary) 15%,transparent)}.neeto-themes-dependent-property{margin-inline-start:2.5rem;position:relative;width:calc(100% - 2.5rem)}.neeto-themes-dependent-property__connector{inset-inline-start:-2rem;pointer-events:none;position:absolute;top:-1.75rem}.neeto-themes-flip-animating{transition:transform .9s cubic-bezier(.22,1,.36,1);will-change:transform}.neeto-themes-default-theme-toggle [role=switch]{opacity:1}.neeto-themes-default-theme-toggle [role=switch][aria-checked=true]{background-color:var(--primary)}.neeto-themes-default-theme-toggle [role=switch][aria-checked=false]{background-color:var(--input);box-shadow:inset 0 0 0 1px var(--border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2Fic3RyYWN0cy92YXJpYWJsZXMuY3NzIiwiYXBwL2phdmFzY3JpcHQvc3R5bGVzaGVldHMvdjIvY29tcG9uZW50cy90aGVtZXMuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQ0UsK0JBQWdDLENBQ2hDLCtCQUFnQyxDQUNoQ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lcyBuZXZlciBtYXRjaCDigJQgdGhlIHRyYWNrIHJlbmRlcnMgd2l0aFxuICAgbm8gYmFja2dyb3VuZCBhbmQgaXMgaW52aXNpYmxlLiBUaGUgYnV0dG9uIGRvZXMga2VlcCBhIHJlbGlhYmxlXG4gICBgYXJpYS1jaGVja2VkYCwgc28gZHJpdmUgdGhlIHRyYWNrIGNvbG91ciBmcm9tIHRoYXQgaW5zdGVhZC4gQWxzbyBmb3JjZSBmdWxsXG4gICBvcGFjaXR5ICh0aGUgZGlzYWJsZWQgc3RhdGUgb3RoZXJ3aXNlIGZhZGVzIGl0IHRvIDUwJSkgYW5kIG91dGxpbmUgdGhlXG4gICBvZmYtc3RhdGUgc28gaXQgc3RheXMgdmlzaWJsZSBvbiB0aGUgY2FyZCdzIHdoaXRlIGJhY2tncm91bmQuICovXG4ubmVldG8tdGhlbWVzLWRlZmF1bHQtdGhlbWUtdG9nZ2xlIFtyb2xlPVwic3dpdGNoXCJdIHtcbiAgb3BhY2l0eTogMTtcbn1cblxuLm5lZXRvLXRoZW1lcy1kZWZhdWx0LXRoZW1lLXRvZ2dsZSBbcm9sZT1cInN3aXRjaFwiXVthcmlhLWNoZWNrZWQ9XCJ0cnVlXCJdIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG59XG5cbi5uZWV0by10aGVtZXMtZGVmYXVsdC10aGVtZS10b2dnbGUgW3JvbGU9XCJzd2l0Y2hcIl1bYXJpYS1jaGVja2VkPVwiZmFsc2VcIl0ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1pbnB1dCk7XG4gIGJveC1zaGFkb3c6IGluc2V0IDAgMCAwIDFweCB2YXIoLS1ib3JkZXIpO1xufVxuIl19 */";
|
|
37
|
+
n(css,{});
|
|
38
|
+
|
|
48
39
|
var getImageFromUrl = function getImageFromUrl(source) {
|
|
49
40
|
var image = new Image();
|
|
50
41
|
image.crossOrigin = "anonymous";
|
|
@@ -250,8 +241,8 @@ var Editor = function Editor(_ref) {
|
|
|
250
241
|
});
|
|
251
242
|
};
|
|
252
243
|
|
|
253
|
-
function ownKeys$
|
|
254
|
-
function _objectSpread$
|
|
244
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
245
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
255
246
|
var Card$2 = function Card(_ref) {
|
|
256
247
|
var _ref$title = _ref.title,
|
|
257
248
|
title = _ref$title === void 0 ? "" : _ref$title,
|
|
@@ -265,10 +256,13 @@ var Card$2 = function Card(_ref) {
|
|
|
265
256
|
setExpandedSection = _useExpandedSection.setExpandedSection;
|
|
266
257
|
var isOpen = expandedSection === name;
|
|
267
258
|
var isRTL = i18n.dir() === "rtl";
|
|
268
|
-
var ToggleIcon = isRTL ?
|
|
259
|
+
var ToggleIcon = isRTL ? ChevronLeft : ChevronRight;
|
|
269
260
|
var handleToggle = function handleToggle() {
|
|
270
261
|
return setExpandedSection(isOpen ? "" : name);
|
|
271
262
|
};
|
|
263
|
+
var sectionId = name || hyphenate(title);
|
|
264
|
+
var triggerId = "neeto-themes-section-".concat(sectionId, "-trigger");
|
|
265
|
+
var contentId = "neeto-themes-section-".concat(sectionId, "-content");
|
|
272
266
|
return /*#__PURE__*/jsxs("div", {
|
|
273
267
|
"data-testid": "theme-".concat(hyphenate(title), "-properties"),
|
|
274
268
|
className: classnames("neeto-themes-nano-section border-border border-b pt-2 transition-all duration-300 last:border-none", className, {
|
|
@@ -276,29 +270,35 @@ var Card$2 = function Card(_ref) {
|
|
|
276
270
|
"pb-3": isOpen
|
|
277
271
|
}),
|
|
278
272
|
children: [title && /*#__PURE__*/jsxs("button", {
|
|
279
|
-
|
|
273
|
+
"aria-controls": contentId,
|
|
274
|
+
"aria-expanded": isOpen,
|
|
275
|
+
className: "neeto-themes-nano-section__title flex w-full cursor-pointer items-center justify-between rounded-md px-1 py-2 focus:outline-none",
|
|
276
|
+
id: triggerId,
|
|
280
277
|
type: "button",
|
|
281
278
|
onClick: handleToggle,
|
|
282
279
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
283
280
|
asChild: true,
|
|
284
281
|
className: "flex min-w-0 grow items-center gap-2 text-start",
|
|
285
282
|
"data-testid": "theme-properties",
|
|
286
|
-
variant: "
|
|
287
|
-
weight: "semibold",
|
|
283
|
+
variant: "h6",
|
|
288
284
|
children: /*#__PURE__*/jsxs("span", {
|
|
289
285
|
children: [title, required && /*#__PURE__*/jsx("span", {
|
|
290
286
|
"aria-hidden": true,
|
|
291
287
|
className: "-ms-1",
|
|
292
288
|
children: "*"
|
|
293
|
-
}), isPresent(helpPopoverProps) && /*#__PURE__*/jsx(HelpPopover, _objectSpread$
|
|
289
|
+
}), isPresent(helpPopoverProps) && /*#__PURE__*/jsx(HelpPopover, _objectSpread$3({}, helpPopoverProps))]
|
|
294
290
|
})
|
|
295
291
|
}), /*#__PURE__*/jsx(ToggleIcon, {
|
|
292
|
+
"aria-hidden": true,
|
|
296
293
|
size: 20,
|
|
297
294
|
className: classnames("transition-all duration-300", {
|
|
298
295
|
"rotate-90 rtl:-rotate-90": isOpen
|
|
299
296
|
})
|
|
300
297
|
})]
|
|
301
298
|
}), children && /*#__PURE__*/jsx("div", {
|
|
299
|
+
"aria-labelledby": title ? triggerId : undefined,
|
|
300
|
+
id: contentId,
|
|
301
|
+
role: title ? "region" : undefined,
|
|
302
302
|
className: classnames("neeto-themes-nano-section__content w-full space-y-3 overflow-hidden px-1 transition-all duration-300", {
|
|
303
303
|
"neeto-themes-nano-section__content--closed": !isOpen,
|
|
304
304
|
"neeto-themes-nano-section__content--open pb-1": isOpen
|
|
@@ -471,6 +471,7 @@ var CustomCSS = function CustomCSS(_ref) {
|
|
|
471
471
|
}) : /*#__PURE__*/jsx("div", {
|
|
472
472
|
className: "px-1 py-2",
|
|
473
473
|
children: /*#__PURE__*/jsx(Typography, {
|
|
474
|
+
color: "muted",
|
|
474
475
|
variant: "body2",
|
|
475
476
|
children: t("neetoThemes.common.proFeature.customCSS.description")
|
|
476
477
|
})
|
|
@@ -545,8 +546,8 @@ var LogoPosition = function LogoPosition() {
|
|
|
545
546
|
});
|
|
546
547
|
};
|
|
547
548
|
|
|
548
|
-
function ownKeys$
|
|
549
|
-
function _objectSpread$
|
|
549
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
550
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
550
551
|
|
|
551
552
|
// Capitalizes the first letter of the displayed label while keeping the
|
|
552
553
|
// underlying value untouched (position values like "top left" are used
|
|
@@ -573,7 +574,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
573
574
|
dependsOn = _ref.dependsOn;
|
|
574
575
|
switch (kind) {
|
|
575
576
|
case "text_input":
|
|
576
|
-
return _objectSpread$
|
|
577
|
+
return _objectSpread$2({
|
|
577
578
|
value: defaultValue || "",
|
|
578
579
|
kind: "text_input",
|
|
579
580
|
key: key,
|
|
@@ -582,7 +583,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
582
583
|
order: order
|
|
583
584
|
});
|
|
584
585
|
case "color":
|
|
585
|
-
return _objectSpread$
|
|
586
|
+
return _objectSpread$2({
|
|
586
587
|
value: defaultValue,
|
|
587
588
|
kind: "color",
|
|
588
589
|
key: key,
|
|
@@ -591,7 +592,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
591
592
|
order: order
|
|
592
593
|
});
|
|
593
594
|
case "font_family":
|
|
594
|
-
return _objectSpread$
|
|
595
|
+
return _objectSpread$2({
|
|
595
596
|
value: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
|
|
596
597
|
kind: "font_family",
|
|
597
598
|
key: key,
|
|
@@ -600,7 +601,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
600
601
|
order: order
|
|
601
602
|
});
|
|
602
603
|
case "overlay_opacity":
|
|
603
|
-
return _objectSpread$
|
|
604
|
+
return _objectSpread$2({
|
|
604
605
|
value: 0,
|
|
605
606
|
kind: "overlay_opacity",
|
|
606
607
|
key: key,
|
|
@@ -609,7 +610,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
609
610
|
order: order
|
|
610
611
|
});
|
|
611
612
|
case "slider":
|
|
612
|
-
return _objectSpread$
|
|
613
|
+
return _objectSpread$2({
|
|
613
614
|
value: 0,
|
|
614
615
|
kind: "slider",
|
|
615
616
|
key: key,
|
|
@@ -618,7 +619,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
618
619
|
order: order
|
|
619
620
|
});
|
|
620
621
|
case "radius":
|
|
621
|
-
return _objectSpread$
|
|
622
|
+
return _objectSpread$2({
|
|
622
623
|
value: defaultValue,
|
|
623
624
|
kind: "radius",
|
|
624
625
|
key: key,
|
|
@@ -627,7 +628,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
627
628
|
order: order
|
|
628
629
|
});
|
|
629
630
|
case "boolean":
|
|
630
|
-
return _objectSpread$
|
|
631
|
+
return _objectSpread$2({
|
|
631
632
|
value: String(defaultValue),
|
|
632
633
|
kind: "boolean",
|
|
633
634
|
key: key,
|
|
@@ -636,7 +637,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
636
637
|
order: order
|
|
637
638
|
});
|
|
638
639
|
case "order_selector":
|
|
639
|
-
return _objectSpread$
|
|
640
|
+
return _objectSpread$2({
|
|
640
641
|
value: defaultValue,
|
|
641
642
|
kind: "order_selector",
|
|
642
643
|
key: key,
|
|
@@ -645,7 +646,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
645
646
|
order: order
|
|
646
647
|
});
|
|
647
648
|
case "alignment_block":
|
|
648
|
-
return _objectSpread$
|
|
649
|
+
return _objectSpread$2({
|
|
649
650
|
value: defaultValue,
|
|
650
651
|
kind: "alignment_block",
|
|
651
652
|
key: key,
|
|
@@ -654,7 +655,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
654
655
|
order: order
|
|
655
656
|
});
|
|
656
657
|
case "custom_css":
|
|
657
|
-
return _objectSpread$
|
|
658
|
+
return _objectSpread$2({
|
|
658
659
|
value: defaultValue,
|
|
659
660
|
kind: "custom_css",
|
|
660
661
|
key: key,
|
|
@@ -663,7 +664,7 @@ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchem
|
|
|
663
664
|
order: order
|
|
664
665
|
});
|
|
665
666
|
case "logo_position":
|
|
666
|
-
return _objectSpread$
|
|
667
|
+
return _objectSpread$2({
|
|
667
668
|
value: defaultValue,
|
|
668
669
|
kind: "logo_position",
|
|
669
670
|
key: key,
|
|
@@ -752,17 +753,17 @@ var AlignmentBlock = function AlignmentBlock(_ref) {
|
|
|
752
753
|
var value = _ref2.field.value,
|
|
753
754
|
setFieldValue = _ref2.form.setFieldValue;
|
|
754
755
|
return /*#__PURE__*/jsxs("div", {
|
|
755
|
-
className: "border-
|
|
756
|
+
className: "border-border neeto-themes-nano-alignment-block flex items-center rounded-md border",
|
|
756
757
|
children: [/*#__PURE__*/jsx(Button, {
|
|
757
758
|
className: "neeto-themes-nano-alignment-button neeto-themes-nano-alignment-button__alignment-left",
|
|
758
759
|
"data-testid": "alignment-left",
|
|
759
760
|
variant: value === "left" ? "default" : "ghost",
|
|
760
761
|
icon: function icon() {
|
|
761
|
-
return /*#__PURE__*/jsx(
|
|
762
|
+
return /*#__PURE__*/jsx(AlignLeft, {
|
|
762
763
|
size: 20,
|
|
763
764
|
className: classnames({
|
|
764
765
|
rounded: true,
|
|
765
|
-
"text-primary": value === "left",
|
|
766
|
+
"text-primary-foreground": value === "left",
|
|
766
767
|
"text-muted-foreground": value !== "left"
|
|
767
768
|
})
|
|
768
769
|
});
|
|
@@ -775,17 +776,17 @@ var AlignmentBlock = function AlignmentBlock(_ref) {
|
|
|
775
776
|
return setFieldValue(name, "left");
|
|
776
777
|
}
|
|
777
778
|
}), /*#__PURE__*/jsx("div", {
|
|
778
|
-
className: "neeto-themes-nano-alignment-divider"
|
|
779
|
+
className: "neeto-themes-nano-alignment-divider bg-border h-8 w-px"
|
|
779
780
|
}), /*#__PURE__*/jsx(Button, {
|
|
780
781
|
className: "neeto-themes-nano-alignment-button neeto-themes-nano-alignment-button__alignment-center",
|
|
781
782
|
"data-testid": "alignment-center",
|
|
782
783
|
variant: value === "center" ? "default" : "ghost",
|
|
783
784
|
icon: function icon() {
|
|
784
|
-
return /*#__PURE__*/jsx(
|
|
785
|
+
return /*#__PURE__*/jsx(AlignCenter, {
|
|
785
786
|
size: 20,
|
|
786
787
|
className: classnames({
|
|
787
788
|
rounded: true,
|
|
788
|
-
"text-primary": value === "center",
|
|
789
|
+
"text-primary-foreground": value === "center",
|
|
789
790
|
"text-muted-foreground": value !== "center"
|
|
790
791
|
})
|
|
791
792
|
});
|
|
@@ -811,11 +812,10 @@ var ColorBlock = function ColorBlock(_ref) {
|
|
|
811
812
|
onChange = _ref.onChange,
|
|
812
813
|
showTransparencyControl = _ref.showTransparencyControl;
|
|
813
814
|
return /*#__PURE__*/jsxs("div", {
|
|
814
|
-
className: "flex items-center justify-between",
|
|
815
|
+
className: "flex min-h-9 items-center justify-between",
|
|
815
816
|
"data-testid": "theme-style-".concat(joinHyphenCase(label)),
|
|
816
|
-
children: [/*#__PURE__*/jsx(
|
|
817
|
+
children: [/*#__PURE__*/jsx(Label, {
|
|
817
818
|
"data-testid": "style-fields-labels",
|
|
818
|
-
variant: "body2",
|
|
819
819
|
children: label
|
|
820
820
|
}), /*#__PURE__*/jsx(ColorPicker, {
|
|
821
821
|
color: color,
|
|
@@ -827,8 +827,6 @@ var ColorBlock = function ColorBlock(_ref) {
|
|
|
827
827
|
});
|
|
828
828
|
};
|
|
829
829
|
|
|
830
|
-
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
831
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
832
830
|
var FontPickerBlock = function FontPickerBlock(_ref) {
|
|
833
831
|
var label = _ref.label,
|
|
834
832
|
_ref$placeholder = _ref.placeholder,
|
|
@@ -839,9 +837,8 @@ var FontPickerBlock = function FontPickerBlock(_ref) {
|
|
|
839
837
|
return /*#__PURE__*/jsxs("div", {
|
|
840
838
|
className: "flex items-center justify-between",
|
|
841
839
|
"data-testid": "theme-style-".concat(joinHyphenCase(label)),
|
|
842
|
-
children: [/*#__PURE__*/jsx(
|
|
840
|
+
children: [/*#__PURE__*/jsx(Label, {
|
|
843
841
|
"data-testid": "style-fields-labels",
|
|
844
|
-
variant: "body2",
|
|
845
842
|
children: label
|
|
846
843
|
}), /*#__PURE__*/jsx("div", {
|
|
847
844
|
className: "w-40",
|
|
@@ -850,14 +847,16 @@ var FontPickerBlock = function FontPickerBlock(_ref) {
|
|
|
850
847
|
options: options,
|
|
851
848
|
placeholder: placeholder,
|
|
852
849
|
value: value,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
850
|
+
contentProps: {
|
|
851
|
+
className: "min-w-max"
|
|
852
|
+
},
|
|
853
|
+
formatOptionLabel: function formatOptionLabel(option) {
|
|
854
|
+
return /*#__PURE__*/jsx("span", {
|
|
855
|
+
style: {
|
|
856
|
+
fontFamily: option.value
|
|
857
|
+
},
|
|
858
|
+
children: option.label
|
|
859
|
+
});
|
|
861
860
|
}
|
|
862
861
|
})
|
|
863
862
|
})]
|
|
@@ -872,17 +871,22 @@ var SelectBlock = function SelectBlock(_ref) {
|
|
|
872
871
|
options = _ref.options,
|
|
873
872
|
onChange = _ref.onChange;
|
|
874
873
|
return /*#__PURE__*/jsxs("div", {
|
|
875
|
-
className: "
|
|
874
|
+
className: "flex min-h-9 items-center justify-between gap-3",
|
|
876
875
|
"data-testid": "theme-style-".concat(joinHyphenCase(label)),
|
|
877
|
-
children: [/*#__PURE__*/jsx(
|
|
876
|
+
children: [/*#__PURE__*/jsx(Label, {
|
|
878
877
|
"data-testid": "logo-field-labels",
|
|
879
|
-
variant: "body2",
|
|
880
878
|
children: label
|
|
881
|
-
}), /*#__PURE__*/jsx(
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
879
|
+
}), /*#__PURE__*/jsx("div", {
|
|
880
|
+
className: "w-40",
|
|
881
|
+
children: /*#__PURE__*/jsx(Select, {
|
|
882
|
+
onChange: onChange,
|
|
883
|
+
options: options,
|
|
884
|
+
placeholder: placeholder,
|
|
885
|
+
value: value,
|
|
886
|
+
contentProps: {
|
|
887
|
+
className: "min-w-max"
|
|
888
|
+
}
|
|
889
|
+
})
|
|
886
890
|
})]
|
|
887
891
|
});
|
|
888
892
|
};
|
|
@@ -892,25 +896,19 @@ var SliderBlock = function SliderBlock(_ref) {
|
|
|
892
896
|
onChange = _ref.onChange,
|
|
893
897
|
value = _ref.value,
|
|
894
898
|
min = _ref.min,
|
|
895
|
-
max = _ref.max
|
|
896
|
-
marks = _ref.marks;
|
|
899
|
+
max = _ref.max;
|
|
897
900
|
return /*#__PURE__*/jsxs("div", {
|
|
898
|
-
className: "flex items-center justify-between gap-3",
|
|
901
|
+
className: "flex min-h-9 items-center justify-between gap-3",
|
|
899
902
|
"data-testid": "theme-style-".concat(joinHyphenCase(label)),
|
|
900
|
-
children: [/*#__PURE__*/jsx(
|
|
903
|
+
children: [/*#__PURE__*/jsx(Label, {
|
|
901
904
|
"data-testid": "style-fields-labels",
|
|
902
|
-
variant: "body2",
|
|
903
905
|
children: label
|
|
904
906
|
}), /*#__PURE__*/jsx(Slider, {
|
|
905
|
-
marks: marks,
|
|
906
907
|
max: max,
|
|
907
908
|
min: min,
|
|
908
|
-
onChange: onChange,
|
|
909
909
|
value: value,
|
|
910
910
|
className: "my-2 w-20",
|
|
911
|
-
|
|
912
|
-
formatter: null
|
|
913
|
-
}
|
|
911
|
+
onValueChange: onChange
|
|
914
912
|
})]
|
|
915
913
|
});
|
|
916
914
|
};
|
|
@@ -931,7 +929,7 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
931
929
|
var doesHelpTextExist = i18n.exists(translationKey);
|
|
932
930
|
if (asCheckbox) {
|
|
933
931
|
return /*#__PURE__*/jsxs("div", {
|
|
934
|
-
className: "flex items-center gap-2",
|
|
932
|
+
className: "flex min-h-9 items-center gap-2",
|
|
935
933
|
"data-testid": "theme-style-content-background",
|
|
936
934
|
children: [/*#__PURE__*/jsx(Checkbox, _objectSpread$1(_objectSpread$1({}, _objectSpread$1({
|
|
937
935
|
label: label,
|
|
@@ -945,13 +943,12 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
945
943
|
});
|
|
946
944
|
}
|
|
947
945
|
return /*#__PURE__*/jsxs("div", {
|
|
948
|
-
className: "flex items-center justify-between",
|
|
946
|
+
className: "flex min-h-9 items-center justify-between",
|
|
949
947
|
"data-testid": "theme-style-content-background",
|
|
950
948
|
children: [/*#__PURE__*/jsxs("div", {
|
|
951
949
|
className: "inline-flex items-center gap-4",
|
|
952
|
-
children: [/*#__PURE__*/jsx(
|
|
950
|
+
children: [/*#__PURE__*/jsx(Label, {
|
|
953
951
|
"data-testid": "style-fields-labels",
|
|
954
|
-
variant: "body2",
|
|
955
952
|
className: classnames({
|
|
956
953
|
"w-32": doesHelpTextExist,
|
|
957
954
|
"w-auto": !doesHelpTextExist
|
|
@@ -964,7 +961,8 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
964
961
|
}), /*#__PURE__*/jsx(Switch, _objectSpread$1(_objectSpread$1({}, _objectSpread$1({
|
|
965
962
|
name: name
|
|
966
963
|
}, inputProps)), {}, {
|
|
967
|
-
"data-testid": "enable-background-color-toggle"
|
|
964
|
+
"data-testid": "enable-background-color-toggle",
|
|
965
|
+
size: "default"
|
|
968
966
|
}))]
|
|
969
967
|
});
|
|
970
968
|
};
|
|
@@ -979,22 +977,18 @@ var TextBlock = function TextBlock(_ref) {
|
|
|
979
977
|
placeholder = _ref.placeholder,
|
|
980
978
|
error = _ref.error;
|
|
981
979
|
return /*#__PURE__*/jsxs("div", {
|
|
982
|
-
className: "flex
|
|
980
|
+
className: "flex flex-col gap-2",
|
|
983
981
|
"data-testid": "theme-style-".concat(joinHyphenCase(label)),
|
|
984
|
-
children: [/*#__PURE__*/jsx(
|
|
982
|
+
children: [/*#__PURE__*/jsx(Label, {
|
|
985
983
|
"data-testid": "style-fields-labels",
|
|
986
|
-
variant: "body2",
|
|
987
984
|
children: label
|
|
988
|
-
}), /*#__PURE__*/jsx(
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
type: type,
|
|
996
|
-
value: value
|
|
997
|
-
})
|
|
985
|
+
}), /*#__PURE__*/jsx(Input, {
|
|
986
|
+
error: error,
|
|
987
|
+
name: name,
|
|
988
|
+
onChange: onChange,
|
|
989
|
+
placeholder: placeholder,
|
|
990
|
+
type: type,
|
|
991
|
+
value: value
|
|
998
992
|
})]
|
|
999
993
|
});
|
|
1000
994
|
};
|
|
@@ -1108,12 +1102,9 @@ var Properties = function Properties(_ref) {
|
|
|
1108
1102
|
return /*#__PURE__*/jsx(FontPickerBlock, {
|
|
1109
1103
|
label: buildLabel(key, kind),
|
|
1110
1104
|
options: FONT_OPTIONS,
|
|
1111
|
-
value:
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
onChange: function onChange(_ref4) {
|
|
1115
|
-
var value = _ref4.value;
|
|
1116
|
-
return handleChange(key, value);
|
|
1105
|
+
value: value || "",
|
|
1106
|
+
onChange: function onChange(newValue) {
|
|
1107
|
+
return handleChange(key, newValue);
|
|
1117
1108
|
}
|
|
1118
1109
|
}, key);
|
|
1119
1110
|
case "color":
|
|
@@ -1155,15 +1146,16 @@ var Properties = function Properties(_ref) {
|
|
|
1155
1146
|
var options = (_findBy4 = findBy({
|
|
1156
1147
|
key: key
|
|
1157
1148
|
}, themePropertiesSchema)) === null || _findBy4 === void 0 || (_findBy4 = _findBy4.options) === null || _findBy4 === void 0 ? void 0 : _findBy4.map(toCapitalizedOption);
|
|
1158
|
-
return /*#__PURE__*/
|
|
1149
|
+
return /*#__PURE__*/createElement(SelectBlock, {
|
|
1150
|
+
value: value,
|
|
1151
|
+
key: key,
|
|
1159
1152
|
label: buildLabel(key, kind),
|
|
1160
1153
|
options: options || POSITION_OPTIONS,
|
|
1161
1154
|
placeholder: "left",
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
return setFieldValue("properties[".concat(_index, "].value"), option.value);
|
|
1155
|
+
onChange: function onChange(newValue) {
|
|
1156
|
+
return setFieldValue("properties[".concat(_index, "].value"), newValue);
|
|
1165
1157
|
}
|
|
1166
|
-
}
|
|
1158
|
+
});
|
|
1167
1159
|
}
|
|
1168
1160
|
case "boolean":
|
|
1169
1161
|
{
|
|
@@ -1192,7 +1184,7 @@ var Properties = function Properties(_ref) {
|
|
|
1192
1184
|
return /*#__PURE__*/jsx(AlignmentBlock, {
|
|
1193
1185
|
label: buildLabel(key, kind),
|
|
1194
1186
|
name: "properties[".concat(_index3, "].value")
|
|
1195
|
-
});
|
|
1187
|
+
}, key);
|
|
1196
1188
|
}
|
|
1197
1189
|
default:
|
|
1198
1190
|
return null;
|
|
@@ -1285,9 +1277,8 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
1285
1277
|
"data-testid": "theme-style-".concat(label ? joinHyphenCase(label) : "image-block"),
|
|
1286
1278
|
children: [label && /*#__PURE__*/jsx("div", {
|
|
1287
1279
|
className: "flex items-center justify-between",
|
|
1288
|
-
children: /*#__PURE__*/jsx(
|
|
1280
|
+
children: /*#__PURE__*/jsx(Label, {
|
|
1289
1281
|
"data-testid": "style-fields-labels",
|
|
1290
|
-
variant: "body2",
|
|
1291
1282
|
children: label
|
|
1292
1283
|
})
|
|
1293
1284
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -1304,11 +1295,11 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
1304
1295
|
label: buildLabel("".concat(name, "Position"), "image"),
|
|
1305
1296
|
options: (options === null || options === void 0 ? void 0 : options.map(toCapitalizedOption)) || POSITION_OPTIONS,
|
|
1306
1297
|
placeholder: t("neetoThemes.common.left"),
|
|
1307
|
-
value:
|
|
1298
|
+
value: ((_findBy = findBy({
|
|
1308
1299
|
key: "".concat(name, "_position")
|
|
1309
|
-
}, values.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value) || (positionKeyInSchema === null || positionKeyInSchema === void 0 ? void 0 : positionKeyInSchema.defaultValue)
|
|
1310
|
-
onChange: function onChange(
|
|
1311
|
-
return setFieldValue("properties[".concat(positionKeyIndex, "].value"),
|
|
1300
|
+
}, values.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value) || (positionKeyInSchema === null || positionKeyInSchema === void 0 ? void 0 : positionKeyInSchema.defaultValue),
|
|
1301
|
+
onChange: function onChange(newValue) {
|
|
1302
|
+
return setFieldValue("properties[".concat(positionKeyIndex, "].value"), newValue);
|
|
1312
1303
|
}
|
|
1313
1304
|
})]
|
|
1314
1305
|
})]
|
|
@@ -1557,7 +1548,7 @@ var Customize = function Customize(_ref) {
|
|
|
1557
1548
|
isEnabled: enabledFeatures.customCSS,
|
|
1558
1549
|
isProFeature: proFeatures.customCSS
|
|
1559
1550
|
}), /*#__PURE__*/jsxs("div", {
|
|
1560
|
-
className: "
|
|
1551
|
+
className: "neeto-themes-default-theme-toggle border-border mt-4 flex flex-col space-y-2 rounded-lg border p-2",
|
|
1561
1552
|
children: [/*#__PURE__*/jsx(Tooltip, {
|
|
1562
1553
|
disabled: !isThemeGlobalTheme,
|
|
1563
1554
|
content: t("neetoThemes.build.leftSideBar.themes.themeOptions.setAsGlobalTheme.tooltipContent"),
|
|
@@ -1565,6 +1556,7 @@ var Customize = function Customize(_ref) {
|
|
|
1565
1556
|
checked: values.shouldSetAsGlobalTheme,
|
|
1566
1557
|
disabled: isThemeGlobalTheme,
|
|
1567
1558
|
name: "shouldSetAsGlobalTheme",
|
|
1559
|
+
size: "lg",
|
|
1568
1560
|
label: t("neetoThemes.build.leftSideBar.themes.themeOptions.setAsGlobalTheme.label"),
|
|
1569
1561
|
onCheckedChange: function onCheckedChange(checked) {
|
|
1570
1562
|
return setFieldValue("shouldSetAsGlobalTheme", checked);
|
|
@@ -1572,6 +1564,7 @@ var Customize = function Customize(_ref) {
|
|
|
1572
1564
|
})
|
|
1573
1565
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1574
1566
|
className: "text-sm",
|
|
1567
|
+
color: "muted",
|
|
1575
1568
|
variant: "body2",
|
|
1576
1569
|
children: t("neetoThemes.build.leftSideBar.themes.themeOptions.setAsGlobalTheme.helpText", {
|
|
1577
1570
|
entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()), {
|
|
@@ -1581,7 +1574,7 @@ var Customize = function Customize(_ref) {
|
|
|
1581
1574
|
})]
|
|
1582
1575
|
})]
|
|
1583
1576
|
}), /*#__PURE__*/jsxs("div", {
|
|
1584
|
-
className: "bg-background
|
|
1577
|
+
className: "bg-background border-border sticky bottom-0 start-0 end-0 flex justify-end gap-x-2 border-t px-4 py-6 lg:px-5 xl:px-6",
|
|
1585
1578
|
children: [/*#__PURE__*/jsx(Button, {
|
|
1586
1579
|
"data-testid": "reset-button",
|
|
1587
1580
|
disabled: !dirty || isSubmitting,
|
|
@@ -1589,6 +1582,7 @@ var Customize = function Customize(_ref) {
|
|
|
1589
1582
|
type: "reset",
|
|
1590
1583
|
variant: "ghost"
|
|
1591
1584
|
}), /*#__PURE__*/jsx(Popover, {
|
|
1585
|
+
disabled: !isNotAppliedCondition,
|
|
1592
1586
|
open: isNotAppliedPopoverOpen,
|
|
1593
1587
|
position: "top",
|
|
1594
1588
|
trigger: /*#__PURE__*/jsx(Button, {
|
|
@@ -1608,7 +1602,7 @@ var Customize = function Customize(_ref) {
|
|
|
1608
1602
|
className: "flex flex-col items-start gap-2",
|
|
1609
1603
|
children: [/*#__PURE__*/jsx(Button, {
|
|
1610
1604
|
className: "absolute end-1 top-1 z-0",
|
|
1611
|
-
icon:
|
|
1605
|
+
icon: X,
|
|
1612
1606
|
size: "sm",
|
|
1613
1607
|
variant: "ghost",
|
|
1614
1608
|
onClick: function onClick() {
|
|
@@ -1650,12 +1644,14 @@ var QuickActionRow = function QuickActionRow(_ref) {
|
|
|
1650
1644
|
testId = _ref.testId;
|
|
1651
1645
|
return /*#__PURE__*/jsxs("button", {
|
|
1652
1646
|
onClick: onClick,
|
|
1653
|
-
className: "border-border hover:bg-muted flex w-full cursor-pointer items-center gap-
|
|
1647
|
+
className: "border-border hover:bg-muted flex w-full cursor-pointer items-center gap-2 border-t px-3 py-1.5 text-start transition-colors",
|
|
1654
1648
|
"data-testid": testId,
|
|
1655
1649
|
type: "button",
|
|
1656
1650
|
children: [/*#__PURE__*/jsx(Icon, {
|
|
1651
|
+
className: "text-muted-foreground",
|
|
1657
1652
|
size: 16
|
|
1658
1653
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1654
|
+
className: "text-sm",
|
|
1659
1655
|
variant: "body2",
|
|
1660
1656
|
children: label
|
|
1661
1657
|
})]
|
|
@@ -1696,8 +1692,8 @@ var Thumbnail = function Thumbnail(_ref) {
|
|
|
1696
1692
|
}, theme.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value;
|
|
1697
1693
|
return /*#__PURE__*/jsx("div", {
|
|
1698
1694
|
className: classnames("neeto-themes-theme-thumbnail rounded-lg border transition-all duration-300 ease-in-out", {
|
|
1699
|
-
"border-
|
|
1700
|
-
"border-
|
|
1695
|
+
"border-border": !active,
|
|
1696
|
+
"border-foreground neeto-themes-theme-thumbnail--active": active,
|
|
1701
1697
|
"neeto-themes-theme-thumbnail--preview-active": isPreviewing,
|
|
1702
1698
|
"neeto-themes-theme-thumbnail--highlight-active": isHighLightedTheme
|
|
1703
1699
|
}),
|
|
@@ -1712,8 +1708,7 @@ var Thumbnail = function Thumbnail(_ref) {
|
|
|
1712
1708
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1713
1709
|
className: "mb-3",
|
|
1714
1710
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1715
|
-
variant: "
|
|
1716
|
-
weight: "semibold",
|
|
1711
|
+
variant: "h5",
|
|
1717
1712
|
children: /*#__PURE__*/jsx("span", {
|
|
1718
1713
|
style: {
|
|
1719
1714
|
color: primaryColor
|
|
@@ -1721,7 +1716,7 @@ var Thumbnail = function Thumbnail(_ref) {
|
|
|
1721
1716
|
children: primaryLabel
|
|
1722
1717
|
})
|
|
1723
1718
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1724
|
-
|
|
1719
|
+
color: "muted",
|
|
1725
1720
|
variant: "body2",
|
|
1726
1721
|
children: /*#__PURE__*/jsx("span", {
|
|
1727
1722
|
style: {
|
|
@@ -1784,8 +1779,8 @@ var Card$1 = function Card(_ref) {
|
|
|
1784
1779
|
"data-testid": active ? "active-theme-card" : "theme-card",
|
|
1785
1780
|
id: theme.id,
|
|
1786
1781
|
children: /*#__PURE__*/jsxs("div", {
|
|
1787
|
-
className: classnames("neeto-themes-theme-thumbnail rounded-lg relative cursor-pointer border-2 transition-all duration-300 ease-in-out", {
|
|
1788
|
-
"border-
|
|
1782
|
+
className: classnames("neeto-themes-theme-thumbnail group/thumbnail rounded-lg relative cursor-pointer overflow-hidden border-2 transition-all duration-300 ease-in-out", {
|
|
1783
|
+
"border-border": !active,
|
|
1789
1784
|
"neeto-themes-theme-thumbnail--active": active,
|
|
1790
1785
|
"neeto-themes-theme-thumbnail--preview-active": isPreviewing,
|
|
1791
1786
|
"neeto-themes-theme-thumbnail--highlight-active": isHighLightedTheme
|
|
@@ -1794,9 +1789,9 @@ var Card$1 = function Card(_ref) {
|
|
|
1794
1789
|
return onSetPreviewTheme(theme);
|
|
1795
1790
|
},
|
|
1796
1791
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1797
|
-
className: "
|
|
1792
|
+
className: "relative overflow-hidden transition-all duration-300 ease-in-out",
|
|
1798
1793
|
children: [active ? /*#__PURE__*/jsx("div", {
|
|
1799
|
-
className: "neeto-themes-theme-thumbnail__active-banner absolute start-0 top-0 z-10 w-full py-1 text-center text-xs font-semibold uppercase tracking-wide",
|
|
1794
|
+
className: "neeto-themes-theme-thumbnail__active-banner bg-primary text-primary-foreground absolute start-0 top-0 z-10 w-full py-1 text-center text-xs font-semibold uppercase tracking-wide",
|
|
1800
1795
|
"data-testid": "active-theme-label",
|
|
1801
1796
|
children: t("neetoThemes.common.activeTheme")
|
|
1802
1797
|
}) : /*#__PURE__*/jsx("div", {
|
|
@@ -1813,13 +1808,13 @@ var Card$1 = function Card(_ref) {
|
|
|
1813
1808
|
variant: "secondary",
|
|
1814
1809
|
className: classnames({
|
|
1815
1810
|
"neeto-themes-theme-thumbnail__preview-btn--disabled opacity-100": isPreviewing,
|
|
1816
|
-
"neeto-themes-theme-thumbnail__preview-btn shrink-0 justify-center": true
|
|
1811
|
+
"neeto-themes-theme-thumbnail__preview-btn w-[8.125rem] max-w-full shrink-0 justify-center": true
|
|
1817
1812
|
}),
|
|
1818
1813
|
onClick: function onClick() {
|
|
1819
1814
|
return onSetPreviewTheme(theme);
|
|
1820
1815
|
}
|
|
1821
1816
|
}), /*#__PURE__*/jsx(Button, {
|
|
1822
|
-
className: "neeto-themes-theme-thumbnail__apply-btn shrink-0 justify-center",
|
|
1817
|
+
className: "neeto-themes-theme-thumbnail__apply-btn w-[8.125rem] max-w-full shrink-0 justify-center disabled:opacity-100!",
|
|
1823
1818
|
"data-testid": "apply-theme-button",
|
|
1824
1819
|
disabled: isApplyingTheme,
|
|
1825
1820
|
label: t("neetoThemes.common.useTheme"),
|
|
@@ -1831,7 +1826,7 @@ var Card$1 = function Card(_ref) {
|
|
|
1831
1826
|
})]
|
|
1832
1827
|
})
|
|
1833
1828
|
}), /*#__PURE__*/jsx("div", {
|
|
1834
|
-
className: "neeto-themes-theme-thumbnail__overlay w-full transition-all duration-300 ease-in-out",
|
|
1829
|
+
className: "neeto-themes-theme-thumbnail__overlay w-full transition-all duration-300 ease-in-out group-hover/thumbnail:opacity-60",
|
|
1835
1830
|
children: Thumbnail$1 ? /*#__PURE__*/jsx(Thumbnail$1, {
|
|
1836
1831
|
active: active,
|
|
1837
1832
|
isHighLightedTheme: isHighLightedTheme,
|
|
@@ -1845,18 +1840,26 @@ var Card$1 = function Card(_ref) {
|
|
|
1845
1840
|
})
|
|
1846
1841
|
})]
|
|
1847
1842
|
}), /*#__PURE__*/jsxs("div", {
|
|
1848
|
-
className: "border-border flex items-start justify-between gap-1 border-t
|
|
1843
|
+
className: "border-border flex items-start justify-between gap-1 border-t px-2 py-1.5",
|
|
1849
1844
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1850
|
-
className: "flex items-center space-x-2",
|
|
1845
|
+
className: classnames("flex items-center space-x-2", {
|
|
1846
|
+
grow: !showMoreDropdown
|
|
1847
|
+
}),
|
|
1851
1848
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1852
|
-
|
|
1849
|
+
color: "muted",
|
|
1853
1850
|
"data-testid": "theme-name",
|
|
1854
1851
|
variant: "body2",
|
|
1852
|
+
className: classnames("line-clamp-2 min-w-0 grow wrap-anywhere text-sm italic", {
|
|
1853
|
+
"pt-1": showMoreDropdown
|
|
1854
|
+
}),
|
|
1855
1855
|
children: name
|
|
1856
1856
|
}), isGlobalTheme && /*#__PURE__*/jsx(Typography, {
|
|
1857
|
-
|
|
1857
|
+
color: "muted",
|
|
1858
1858
|
"data-testid": "default-theme-label",
|
|
1859
1859
|
variant: "body2",
|
|
1860
|
+
className: classnames("shrink-0 text-sm italic", {
|
|
1861
|
+
"pt-1": showMoreDropdown
|
|
1862
|
+
}),
|
|
1860
1863
|
children: t("neetoThemes.common.defaultTheme")
|
|
1861
1864
|
})]
|
|
1862
1865
|
}), showMoreDropdown && /*#__PURE__*/jsx(MoreDropdown, {
|
|
@@ -1864,7 +1867,7 @@ var Card$1 = function Card(_ref) {
|
|
|
1864
1867
|
size: "sm"
|
|
1865
1868
|
},
|
|
1866
1869
|
dropdownProps: {
|
|
1867
|
-
|
|
1870
|
+
className: "w-max",
|
|
1868
1871
|
onClick: function onClick(e) {
|
|
1869
1872
|
return e.stopPropagation();
|
|
1870
1873
|
}
|
|
@@ -1883,7 +1886,7 @@ var Card$1 = function Card(_ref) {
|
|
|
1883
1886
|
}), active && /*#__PURE__*/jsxs("div", {
|
|
1884
1887
|
className: "flex flex-col",
|
|
1885
1888
|
children: [/*#__PURE__*/jsx(QuickActionRow, {
|
|
1886
|
-
icon:
|
|
1889
|
+
icon: Pipette,
|
|
1887
1890
|
label: t("neetoThemes.common.customizeStyle"),
|
|
1888
1891
|
testId: "quick-customize-style",
|
|
1889
1892
|
onClick: handleQuickEdit("style")
|
|
@@ -1895,13 +1898,13 @@ var Card$1 = function Card(_ref) {
|
|
|
1895
1898
|
var action = hasImage ? "change" : "add";
|
|
1896
1899
|
var specificKey = "neetoThemes.common.".concat(action).concat(capitalize(camelKey));
|
|
1897
1900
|
return /*#__PURE__*/jsx(QuickActionRow, {
|
|
1898
|
-
icon:
|
|
1901
|
+
icon: ImagePlus,
|
|
1899
1902
|
label: t([specificKey, "neetoThemes.common.addImage"]),
|
|
1900
1903
|
testId: "quick-add-".concat(hyphenate(key)),
|
|
1901
1904
|
onClick: handleQuickEdit(camelKey)
|
|
1902
1905
|
}, key);
|
|
1903
1906
|
}), /*#__PURE__*/jsx(QuickActionRow, {
|
|
1904
|
-
icon:
|
|
1907
|
+
icon: Code,
|
|
1905
1908
|
label: t("neetoThemes.build.leftSideBar.themes.customCSS"),
|
|
1906
1909
|
testId: "quick-custom-css",
|
|
1907
1910
|
onClick: handleQuickEdit("customcss")
|
|
@@ -2084,14 +2087,17 @@ var Themes = function Themes(_ref) {
|
|
|
2084
2087
|
className: "neeto-themes-sidebar__scroll",
|
|
2085
2088
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2086
2089
|
className: "mb-6 space-y-3",
|
|
2087
|
-
children: [isSearchVisible && /*#__PURE__*/jsx(
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2090
|
+
children: [isSearchVisible && /*#__PURE__*/jsx("div", {
|
|
2091
|
+
className: "mb-4 mt-1 px-6 lg:px-5 xl:px-6",
|
|
2092
|
+
children: /*#__PURE__*/jsx(Search, {
|
|
2093
|
+
autoFocus: true,
|
|
2094
|
+
enableUrlSync: true,
|
|
2095
|
+
autoComplete: "off",
|
|
2096
|
+
placeholder: t("neetoThemes.common.searchThemes")
|
|
2097
|
+
})
|
|
2093
2098
|
}), isEmpty(filteredThemes) && isEmpty(filteredDefaultThemes) && /*#__PURE__*/jsx(Typography, {
|
|
2094
2099
|
className: "text-center",
|
|
2100
|
+
color: "muted",
|
|
2095
2101
|
"data-testid": "no-data-title",
|
|
2096
2102
|
variant: "body2",
|
|
2097
2103
|
children: t("neetoThemes.common.noResultsFound")
|
|
@@ -2124,10 +2130,10 @@ var TitleBar = function TitleBar(_ref) {
|
|
|
2124
2130
|
var isCustomizeScreen = isEditThemeRoute() || isNewThemeRoute();
|
|
2125
2131
|
var isCustomCssScreen = isScreenCustomCSS(currentScreen);
|
|
2126
2132
|
var isRTL = i18n.dir() === "rtl";
|
|
2127
|
-
var BackButtonIcon = isRTL ?
|
|
2133
|
+
var BackButtonIcon = isRTL ? ArrowRight : ArrowLeft;
|
|
2128
2134
|
if (isCustomizeScreen) {
|
|
2129
2135
|
return /*#__PURE__*/jsx("div", {
|
|
2130
|
-
className: "neeto-themes-sidebar__header px-4",
|
|
2136
|
+
className: "neeto-themes-sidebar__header px-4 pt-4 pb-2",
|
|
2131
2137
|
children: /*#__PURE__*/jsxs("div", {
|
|
2132
2138
|
className: "flex items-center justify-start space-x-2",
|
|
2133
2139
|
children: [/*#__PURE__*/jsx(Button, {
|
|
@@ -2137,30 +2143,28 @@ var TitleBar = function TitleBar(_ref) {
|
|
|
2137
2143
|
variant: "ghost",
|
|
2138
2144
|
tooltipProps: {
|
|
2139
2145
|
content: isCustomCssScreen ? t("neetoThemes.buttons.backToEdit") : t("neetoThemes.buttons.backToThemes"),
|
|
2140
|
-
position: "
|
|
2146
|
+
position: "bottom"
|
|
2141
2147
|
},
|
|
2142
2148
|
onClick: function onClick() {
|
|
2143
2149
|
return handleBackPress(themeId);
|
|
2144
2150
|
}
|
|
2145
2151
|
}), /*#__PURE__*/jsxs(Typography, {
|
|
2146
2152
|
"data-testid": "themes-header",
|
|
2147
|
-
variant: "
|
|
2148
|
-
weight: "semibold",
|
|
2153
|
+
variant: "h5",
|
|
2149
2154
|
children: [isCustomizeScreen && !isCustomCssScreen && (isNewThemeRoute() ? t("neetoThemes.build.leftSideBar.themes.createTheme.title") : t("neetoThemes.build.leftSideBar.themes.editTheme.title")), isCustomCssScreen && t("neetoThemes.build.leftSideBar.themes.customCSS")]
|
|
2150
2155
|
})]
|
|
2151
2156
|
})
|
|
2152
2157
|
});
|
|
2153
2158
|
}
|
|
2154
2159
|
return /*#__PURE__*/jsx("div", {
|
|
2155
|
-
className: "neeto-themes-sidebar__header px-6 lg:px-5 xl:px-6",
|
|
2160
|
+
className: "neeto-themes-sidebar__header px-6 pt-4 pb-2 lg:px-5 xl:px-6",
|
|
2156
2161
|
children: /*#__PURE__*/jsxs("div", {
|
|
2157
2162
|
className: "flex items-center justify-between space-x-2",
|
|
2158
2163
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2159
2164
|
className: "flex space-x-2",
|
|
2160
2165
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
2161
2166
|
"data-testid": "themes-header",
|
|
2162
|
-
variant: "
|
|
2163
|
-
weight: "semibold",
|
|
2167
|
+
variant: "h5",
|
|
2164
2168
|
children: t("neetoThemes.build.leftSideBar.headerTabs.themes")
|
|
2165
2169
|
}), /*#__PURE__*/jsx(HelpPopover, {
|
|
2166
2170
|
helpLinkProps: helpDocUrl && {
|
|
@@ -2180,7 +2184,7 @@ var TitleBar = function TitleBar(_ref) {
|
|
|
2180
2184
|
variant: "ghost",
|
|
2181
2185
|
tooltipProps: {
|
|
2182
2186
|
content: t("neetoThemes.common.searchThemes"),
|
|
2183
|
-
position: "
|
|
2187
|
+
position: "bottom"
|
|
2184
2188
|
},
|
|
2185
2189
|
onClick: handleToggleSearch
|
|
2186
2190
|
})
|
|
@@ -2245,7 +2249,9 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2245
2249
|
setThemeState = _useThemeStore.setThemeState;
|
|
2246
2250
|
var didScrollActiveThemeIntoView = useRef(null);
|
|
2247
2251
|
var _useTranslation = useTranslation(),
|
|
2248
|
-
t = _useTranslation.t
|
|
2252
|
+
t = _useTranslation.t,
|
|
2253
|
+
i18n = _useTranslation.i18n;
|
|
2254
|
+
var ToggleIcon = i18n.dir() === "rtl" ? ChevronsRight : ChevronsLeft;
|
|
2249
2255
|
var _useThemeUtils = useThemeUtils(),
|
|
2250
2256
|
setTheme = _useThemeUtils.setTheme;
|
|
2251
2257
|
var _useListThemes = useListThemes(entityId),
|
|
@@ -2468,7 +2474,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2468
2474
|
onSubmit: handleDeleteTheme
|
|
2469
2475
|
}), /*#__PURE__*/jsx(Button, {
|
|
2470
2476
|
className: "neeto-themes-sidebar__toggler",
|
|
2471
|
-
icon:
|
|
2477
|
+
icon: ToggleIcon,
|
|
2472
2478
|
variant: "outline",
|
|
2473
2479
|
onClick: function onClick() {
|
|
2474
2480
|
setIsThemesSidebarCollapsed(!isThemesSidebarCollapsed);
|