@bigbinary/neeto-themes-frontend 2.1.3 → 2.1.5

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.
@@ -1,27 +1,29 @@
1
1
  import { shallow } from 'zustand/shallow';
2
- import { createElement, useEffect, useState, useRef, memo, useCallback } from 'react';
2
+ import { useState, createElement, useEffect, useRef, memo, useCallback } from 'react';
3
3
  import { t as t$1 } from 'i18next';
4
4
  import { hyphenate, findBy, findIndexBy, isPresent, isNot, filterBy, snakeToCamelCase, isNotPresent, toLabelAndValue, humanize, isNotEmpty, noop } from '@bigbinary/neeto-cist';
5
- import { useMutationWithInvalidation, withT, withTitle } from '@bigbinary/neeto-commons-frontend/react-utils';
5
+ import { useMutationWithInvalidation, withT, useBreakpoints, withTitle } from '@bigbinary/neeto-commons-frontend/react-utils';
6
6
  import Spinner from '@bigbinary/neetoui/Spinner';
7
7
  import { useQuery } from '@tanstack/react-query';
8
8
  import axios from 'axios';
9
- import { B as BASE_URL, a as scrollElementIntoView, b as setCustomCSS, g as getDominantColorFromUrl, i as isFunction } from './index-383fae09.js';
10
- import { Q as QUERY_KEYS, a as useConfigStore, b as useThemeStore, u as useThemeUtils } from './useThemeUtils-3875c1d1.js';
9
+ import { B as BASE_URL, a as scrollElementIntoView, b as setCustomCSS, g as getDominantColorFromUrl, i as isFunction } from './index-da3e7846.js';
10
+ import { Q as QUERY_KEYS, a as useConfigStore, b as useThemeStore, u as useThemeUtils } from './useThemeUtils-500caefe.js';
11
11
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
12
- import classNames from 'classnames';
12
+ import classnames from 'classnames';
13
+ import Collapse from '@bigbinary/neeto-icons/Collapse';
13
14
  import Alert from '@bigbinary/neetoui/Alert';
15
+ import Button from '@bigbinary/neetoui/Button';
14
16
  import { useTranslation, Trans } from 'react-i18next';
15
17
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
16
18
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
17
19
  import Close from '@bigbinary/neeto-icons/Close';
18
- import Button from '@bigbinary/neetoui/Button';
19
20
  import Popover from '@bigbinary/neetoui/Popover';
20
21
  import Typography from '@bigbinary/neetoui/Typography';
21
22
  import Form from '@bigbinary/neetoui/formik/Form';
22
23
  import * as yup from 'yup';
23
24
  import Editor from '@monaco-editor/react';
24
25
  import { useFormikContext, Field } from 'formik';
26
+ import Down from '@bigbinary/neeto-icons/Down';
25
27
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
26
28
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
27
29
  import _regeneratorRuntime from '@babel/runtime/regenerator';
@@ -62,7 +64,7 @@ var useShowThemeEntity = function useShowThemeEntity(entityId) {
62
64
 
63
65
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
64
66
 
65
- var css = ".neeto-themes__wrapper{display:flex;width:100%}.neeto-themes__wrapper .neeto-themes-sidebar{background-color:rgb(var(--neeto-ui-white));height:calc(100vh - 64px);width:280px}@media (min-width:1024px){.neeto-themes__wrapper .neeto-themes-sidebar{width:320px}}@media (min-width:1280px){.neeto-themes__wrapper .neeto-themes-sidebar{width:340px}.neeto-themes__wrapper .neeto-themes-sidebar--expanded{max-width:50%;width:520px}}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__header{padding-bottom:8px;padding-top:16px}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__scroll{display:flex;flex-direction:column;height:calc(100vh - 120px);overflow-y:auto}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__scroll .neeto-ui-colorpicker__target .neeto-ui-colorpicker-target__code{display:none}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-ui-colorpicker__target-size--medium{--neeto-ui-colorpicker-target-padding:6px}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-ui-colorpicker__target-size--medium .neeto-ui-colorpicker-target__color{border-radius:0!important;height:20px;width:20px}.neeto-themes__wrapper .css-editor-height__expanded{height:calc(100vh - 300px)}.neeto-themes__wrapper .css-editor-height__regular{height:384px}.neeto-themes__wrapper .neeto-themes-preview__wrapper{flex-grow:1;height:calc(100vh - 64px);position:relative}.neeto-themes-theme-thumbnail--preview-active{border-color:rgb(var(--neeto-ui-gray-600))!important;outline:1px solid rgb(var(--neeto-ui-gray-600))!important}.neeto-themes-theme-thumbnail--active{border-color:rgb(var(--neeto-ui-primary-500))!important;outline:2px solid rgb(var(--neeto-ui-primary-500))!important}.neeto-themes-theme-thumbnail--highlight-active{border-color:rgb(var(--neeto-ui-gray-400))!important;outline:2px solid rgb(var(--neeto-ui-gray-400))!important}.neeto-themes-theme-thumbnail__apply-btn{--neeto-ui-btn-padding-x:12px;--neeto-ui-btn-border-radius:100px}.neeto-themes-theme-thumbnail__apply-btn:disabled,.neeto-themes-theme-thumbnail__apply-btn[disabled]{opacity:1!important}.neeto-themes-sidebar__custom-css-editor-header{background-color:#1e1e1e;border-top-left-radius:var(--neeto-ui-rounded-lg);border-top-right-radius:var(--neeto-ui-rounded-lg)}.neeto-themes-sidebar .monaco-editor,.neeto-themes-sidebar .overflow-guard{border-bottom-left-radius:var(--neeto-ui-rounded-lg);border-bottom-right-radius:var(--neeto-ui-rounded-lg)}.neeto-themes-sidebar__custom-css-wrapper .ne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X2N1c3RvbS1jc3Mtd3JhcHBlciB7XG4gIC5uZWV0by10aGVtZXMtbmFuby1zZWN0aW9uIHtcbiAgICBib3JkZXItYm90dG9tOiAwICFpbXBvcnRhbnQ7XG4gIH1cbn1cbiJdfQ== */";
67
+ var css = ".neeto-themes__wrapper{display:flex;width:100%}.neeto-themes__wrapper .neeto-themes-sidebar{background-color:rgb(var(--neeto-ui-white));height:100%;left:0;padding-top:24px;position:fixed;top:0;transition:none;width:100%;z-index:102}.neeto-themes__wrapper .neeto-themes-sidebar--expanded{max-width:100%;width:520px!important}@media screen and (min-width:576px){.neeto-themes__wrapper .neeto-themes-sidebar{width:280px}}@media screen and (min-width:767px){.neeto-themes__wrapper .neeto-themes-sidebar{height:calc(100vh - 64px);padding-top:0;position:relative}}@media screen and (min-width:1024px){.neeto-themes__wrapper .neeto-themes-sidebar{width:320px}}@media screen and (min-width:1280px){.neeto-themes__wrapper .neeto-themes-sidebar{width:340px}}.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:109px}}@media screen and (max-width:576px){.neeto-themes__wrapper .neeto-themes-sidebar--collapsed .neeto-themes-sidebar__toggler{left:8px;right:auto}}.neeto-themes__wrapper .neeto-themes-sidebar--collapsed .neeto-themes-sidebar__header{display:none}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__header{padding-bottom:8px;padding-top:16px}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__scroll{display:flex;flex-direction:column;height:calc(100vh - 120px);overflow-y:auto}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__scroll .neeto-ui-colorpicker__target .neeto-ui-colorpicker-target__code{display:none}.neeto-themes__wrapper .css-editor-height__expanded{height:calc(100vh - 300px)}.neeto-themes__wrapper .css-editor-height__regular{height:384px}.neeto-themes__wrapper .neeto-themes-preview__wrapper{flex-grow:1;height:calc(100vh - 64px);position:relative}.neeto-themes-theme-thumbnail--preview-active{border-color:rgb(var(--neeto-ui-gray-600))!important;outline:1px solid rgb(var(--neeto-ui-gray-600))!important}.neeto-themes-theme-thumbnail--active{border-color:rgb(var(--neeto-ui-primary-500))!important;outline:2px solid rgb(var(--neeto-ui-primary-500))!important}.neeto-themes-theme-thumbnail--highlight-active{border-color:rgb(var(--neeto-ui-gray-400))!important;outline:2px solid rgb(var(--neeto-ui-gray-400))!important}.neeto-themes-theme-thumbnail__apply-btn{--neeto-ui-btn-padding-x:12px;--neeto-ui-btn-border-radius:100px}.neeto-themes-theme-thumbnail__apply-btn:disabled,.neeto-themes-theme-thumbnail__apply-btn[disabled]{opacity:1!important}.neeto-themes-sidebar__custom-css-editor-header{background-color:#1e1e1e;border-top-left-radius:var(--neeto-ui-rounded-lg);border-top-right-radius:var(--neeto-ui-rounded-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-bottom-left-radius:var(--neeto-ui-rounded-lg);border-bottom-right-radius:var(--neeto-ui-rounded-lg)}.neeto-themes-sidebar__custom-css-wrapper .neeto-themes-nano-section{border-bottom:0!important}.neeto-themes-sidebar__backdrop{background-color:rgba(var(--neeto-ui-black),.4);display:none;height:100%;left: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;left:calc(100% + 8px);position:absolute;top:8px;transition:color .3s ease-in-out}@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{left:auto;right:24px}}.neeto-themes-nano-alignment-block{border-radius:6px}.neeto-themes-nano-alignment-button{--neeto-ui-btn-padding-x:12px!important}.neeto-themes-nano-alignment-button__alignment-left{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.neeto-themes-nano-alignment-button__alignment-center{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.neeto-themes-nano-alignment-button.neeto-ui-btn--style-primary{--neeto-ui-btn-bg-color:rgb(var(--neeto-ui-primary-100))!important;--neeto-ui-btn-hover-bg-color:rgb(var(--neeto-ui-primary-100))!important}.neeto-themes-nano-alignment-divider{background:rgb(var(--neeto-ui-gray-200));height:32px;width:1px}.neeto-themes-nano-section__content--open{max-height:1500px;opacity:1;padding-top:4px;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 rgba(var(--neeto-ui-primary-500),15%)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvdGhlbWVzLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsdUJBRUUsWUFBQSxDQURBLFVBQUYsQ0FHRSw2Q0FHRSwyQ0FBQSxDQURBLFdBQUEsQ0FJQSxNQUFBLENBR0EsZ0JBQUEsQ0FMQSxjQUFBLENBQ0EsS0FBQSxDQUVBLGVBQUEsQ0FOQSxVQUFBLENBT0EsV0FBSixDQUdJLHVEQUVFLGNBQUEsQ0FEQSxxQkFBTixDQUlJLG9DQWhCRiw2Q0FpQkksV0FESixDQUNGLENBR0ksb0NBcEJGLDZDQXVCSSx5QkFBQSxDQUZBLGFBQUEsQ0FDQSxpQkFDSixDQUNGLENBRUkscUNBMUJGLDZDQTJCSSxXQUNKLENBQ0YsQ0FDSSxxQ0E5QkYsNkNBK0JJLFdBRUosQ0FDRixDQUFJLHdEQUVFLFdBQUEsQ0FDQSxXQUFBLENBRkEsT0FJTixDQUFNLHVGQ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2IodmFyKC0tbmVldG8tdWktZ3JheS0yMDApKTtcbn1cblxuLm5lZXRvLXRoZW1lcy1uYW5vLXNlY3Rpb25fX2NvbnRlbnQge1xuICAmLS1vcGVuIHtcbiAgICBtYXgtaGVpZ2h0OiAxNTAwcHg7XG4gICAgb3BhY2l0eTogMTtcbiAgICB2aXNpYmlsaXR5OiB2aXNpYmxlO1xuICAgIHBhZGRpbmctdG9wOiA0cHg7XG4gIH1cbiAgJi0tY2xvc2VkIHtcbiAgICBtYXgtaGVpZ2h0OiAwcHg7XG4gICAgb3BhY2l0eTogMDtcbiAgICB2aXNpYmlsaXR5OiBoaWRkZW47XG4gIH1cbn1cblxuLm5lZXRvLXRoZW1lcy1uYW5vLXNlY3Rpb25fX3RpdGxlOmZvY3VzLXZpc2libGUge1xuICBib3gtc2hhZG93OiAwIDAgMCAzcHggcmdiYSh2YXIoLS1uZWV0by11aS1wcmltYXJ5LTUwMCksIDE1JSk7XG59XG4iXX0= */";
66
68
  n(css,{});
67
69
 
68
70
  var _excluded$1 = ["themeId"];
@@ -234,6 +236,12 @@ var OVERLAY_OPACITY_SLIDER_MARKS = {
234
236
  0: " "
235
237
  };
236
238
  var HUNDRED = 100;
239
+ var ACCORDIAN_OPEN_STATE = {
240
+ name: true,
241
+ style: true,
242
+ images: false,
243
+ customcss: false
244
+ };
237
245
 
238
246
  var DESIGN_SCREENS = {
239
247
  THEMES: "Themes",
@@ -242,25 +250,49 @@ var DESIGN_SCREENS = {
242
250
  };
243
251
  var ONE_MEGABYTE = 1;
244
252
 
253
+ function ownKeys$5(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; }
254
+ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
245
255
  var Card$2 = function Card(_ref) {
246
256
  var _ref$title = _ref.title,
247
257
  title = _ref$title === void 0 ? "" : _ref$title,
248
- children = _ref.children;
258
+ children = _ref.children,
259
+ name = _ref.name,
260
+ className = _ref.className;
261
+ var _useState = useState(ACCORDIAN_OPEN_STATE),
262
+ _useState2 = _slicedToArray(_useState, 2),
263
+ accordianOpenState = _useState2[0],
264
+ setAccordianOpenState = _useState2[1];
249
265
  return /*#__PURE__*/jsxs("div", {
250
- className: "neeto-themes-nano-section neeto-ui-border-gray-200 mb-4 space-y-3 border-b pb-4",
251
266
  "data-cy": "theme-".concat(hyphenate(title), "-properties"),
252
- children: [title && /*#__PURE__*/jsx("div", {
253
- className: "neeto-themes-nano-section__title flex items-center justify-between",
254
- children: /*#__PURE__*/jsx(Typography, {
255
- className: "min-w-0 flex-grow",
267
+ className: classnames("neeto-themes-nano-section neeto-ui-border-gray-200 border-b pt-2 transition-all duration-300 last:border-none", className, {
268
+ "pb-2": !accordianOpenState[name],
269
+ "pb-3": accordianOpenState[name]
270
+ }),
271
+ children: [title && /*#__PURE__*/jsxs("button", {
272
+ className: "neeto-themes-nano-section__title flex w-full cursor-pointer items-center justify-between px-1 py-2 focus:outline-none",
273
+ type: "button",
274
+ onClick: function onClick() {
275
+ return setAccordianOpenState(_objectSpread$5(_objectSpread$5({}, accordianOpenState), {}, _defineProperty({}, name, !accordianOpenState[name])));
276
+ },
277
+ children: [/*#__PURE__*/jsx(Typography, {
278
+ className: "min-w-0 flex-grow text-left",
279
+ component: "span",
256
280
  "data-cy": "theme-properties",
257
281
  lineHeight: "normal",
258
282
  style: "h4",
259
283
  weight: "semibold",
260
284
  children: title
261
- })
285
+ }), /*#__PURE__*/jsx(Down, {
286
+ size: 20,
287
+ className: classnames("transition-all duration-300", {
288
+ "rotate-180": accordianOpenState[name]
289
+ })
290
+ })]
262
291
  }), children && /*#__PURE__*/jsx("div", {
263
- className: "neeto-themes-nano-section__content w-full",
292
+ className: classnames("neeto-themes-nano-section__content w-full space-y-3 overflow-hidden px-1 transition-all duration-300", {
293
+ "neeto-themes-nano-section__content--closed": !accordianOpenState[name],
294
+ "neeto-themes-nano-section__content--open pb-1": accordianOpenState[name]
295
+ }),
264
296
  children: children
265
297
  })]
266
298
  });
@@ -315,33 +347,37 @@ var CustomCSS = function CustomCSS(_ref) {
315
347
  return /*#__PURE__*/jsx("div", {
316
348
  className: "neeto-themes-sidebar__custom-css-wrapper",
317
349
  id: "css-editor",
318
- children: /*#__PURE__*/jsxs(Card$2, {
350
+ children: /*#__PURE__*/jsx(Card$2, {
351
+ name: "customcss",
319
352
  title: isCustomCssScreen ? "" : t("neetoThemes.build.leftSideBar.themes.customCSS"),
320
- children: [/*#__PURE__*/jsx("div", {
321
- className: "neeto-themes-sidebar__custom-css-editor-header flex w-full justify-end gap-1 rounded-b-none p-2",
322
- children: /*#__PURE__*/jsx(Button, {
323
- size: "small",
324
- style: "secondary",
325
- label: isCustomCssScreen ? t("neetoThemes.buttons.minimizeEditor") : t("neetoThemes.buttons.expandEditor"),
326
- onClick: handleEditorToggle
327
- })
328
- }), /*#__PURE__*/jsx(Editor, {
329
- language: "css",
330
- options: {
331
- scrollBeyondLastLine: false,
332
- minimap: {
333
- enabled: false
334
- }
335
- },
336
- theme: "vs-dark",
337
- value: customCSS.value,
338
- className: classNames({
339
- rounded: true,
340
- "css-editor-height__expanded": isCustomCssScreen,
341
- "css-editor-height__regular": !isCustomCssScreen
342
- }),
343
- onChange: handleChange
344
- })]
353
+ children: /*#__PURE__*/jsxs("div", {
354
+ className: "w-full",
355
+ children: [/*#__PURE__*/jsx("div", {
356
+ className: "neeto-themes-sidebar__custom-css-editor-header w-full justify-end gap-1 rounded-b-none p-2",
357
+ children: /*#__PURE__*/jsx(Button, {
358
+ size: "small",
359
+ style: "secondary",
360
+ label: isCustomCssScreen ? t("neetoThemes.buttons.minimizeEditor") : t("neetoThemes.buttons.expandEditor"),
361
+ onClick: handleEditorToggle
362
+ })
363
+ }), /*#__PURE__*/jsx(Editor, {
364
+ language: "css",
365
+ theme: "vs-dark",
366
+ value: customCSS.value,
367
+ className: classnames({
368
+ rounded: true,
369
+ "css-editor-height__expanded": isCustomCssScreen,
370
+ "css-editor-height__regular": !isCustomCssScreen
371
+ }),
372
+ options: {
373
+ scrollBeyondLastLine: false,
374
+ minimap: {
375
+ enabled: false
376
+ }
377
+ },
378
+ onChange: handleChange
379
+ })]
380
+ })
345
381
  })
346
382
  });
347
383
  };
@@ -481,7 +517,7 @@ var SelectBlock = function SelectBlock(_ref) {
481
517
  options = _ref.options,
482
518
  onChange = _ref.onChange;
483
519
  return /*#__PURE__*/jsxs("div", {
484
- className: "flex items-center justify-between py-2 first:pt-0 last:pb-0",
520
+ className: "flex items-center justify-between",
485
521
  "data-cy": "theme-style-".concat(joinHyphenCase(label)),
486
522
  children: [/*#__PURE__*/jsx(Typography, {
487
523
  "data-cy": "logo-field-labels",
@@ -576,7 +612,7 @@ var ImageBlock = function ImageBlock(_ref) {
576
612
  };
577
613
  }();
578
614
  return /*#__PURE__*/jsxs("div", {
579
- className: "space-y-3 py-3 first:pt-0 last:pb-0",
615
+ className: "space-y-3",
580
616
  "data-cy": "theme-style-".concat(joinHyphenCase(label)),
581
617
  children: [label && /*#__PURE__*/jsx("div", {
582
618
  className: "flex items-center justify-between",
@@ -609,14 +645,17 @@ var ImageBlock = function ImageBlock(_ref) {
609
645
  };
610
646
 
611
647
  var Images = function Images(_ref) {
612
- var attribute = _ref.attribute;
648
+ var attribute = _ref.attribute,
649
+ className = _ref.className;
613
650
  var _useFormikContext = useFormikContext(),
614
651
  values = _useFormikContext.values;
615
652
  var key = snakeToCamelCase(attribute);
616
653
  var title = buildLabel(key, "image");
617
654
  var imageData = values[key];
618
655
  return /*#__PURE__*/jsx(Card$2, {
656
+ className: className,
619
657
  title: title,
658
+ name: "images",
620
659
  children: /*#__PURE__*/jsx(ImageBlock, {
621
660
  attribute: attribute,
622
661
  imageData: imageData,
@@ -629,7 +668,7 @@ var AlignmentBlock = function AlignmentBlock(_ref) {
629
668
  var label = _ref.label,
630
669
  name = _ref.name;
631
670
  return /*#__PURE__*/jsxs("div", {
632
- className: "flex items-center justify-between gap-2 py-3 first:pt-0 last:pb-0",
671
+ className: "flex items-center justify-between gap-2",
633
672
  "data-cy": joinHyphenCase(label),
634
673
  children: [/*#__PURE__*/jsx(Typography, {
635
674
  "data-cy": "style-fields-labels",
@@ -641,12 +680,22 @@ var AlignmentBlock = function AlignmentBlock(_ref) {
641
680
  var value = _ref2.field.value,
642
681
  setFieldValue = _ref2.form.setFieldValue;
643
682
  return /*#__PURE__*/jsxs("div", {
644
- className: "flex items-center gap-3",
683
+ className: "neeto-ui-border-gray-300 neeto-themes-nano-alignment-block flex items-center border",
645
684
  children: [/*#__PURE__*/jsx(Button, {
685
+ className: "neeto-themes-nano-alignment-button neeto-themes-nano-alignment-button__alignment-left",
646
686
  "data-cy": "alignment-left",
647
- icon: LeftAlign,
648
- size: "large",
687
+ size: "medium",
649
688
  style: value === "left" ? "primary" : "text",
689
+ icon: function icon() {
690
+ return /*#__PURE__*/jsx(LeftAlign, {
691
+ size: 20,
692
+ className: classnames({
693
+ rounded: true,
694
+ "neeto-ui-text-primary-800": value === "left",
695
+ "neeto-ui-text-gray-600": value !== "left"
696
+ })
697
+ });
698
+ },
650
699
  tooltipProps: {
651
700
  content: "Left align",
652
701
  position: "bottom"
@@ -654,11 +703,23 @@ var AlignmentBlock = function AlignmentBlock(_ref) {
654
703
  onClick: function onClick() {
655
704
  return setFieldValue(name, "left");
656
705
  }
706
+ }), /*#__PURE__*/jsx("div", {
707
+ className: "neeto-themes-nano-alignment-divider"
657
708
  }), /*#__PURE__*/jsx(Button, {
709
+ className: "neeto-themes-nano-alignment-button neeto-themes-nano-alignment-button__alignment-center",
658
710
  "data-cy": "alignment-center",
659
- icon: CenterAlign,
660
- size: "large",
711
+ size: "medium",
661
712
  style: value === "center" ? "primary" : "text",
713
+ icon: function icon() {
714
+ return /*#__PURE__*/jsx(CenterAlign, {
715
+ size: 20,
716
+ className: classnames({
717
+ rounded: true,
718
+ "neeto-ui-text-primary-800": value === "center",
719
+ "neeto-ui-text-gray-600": value !== "center"
720
+ })
721
+ });
722
+ },
662
723
  tooltipProps: {
663
724
  content: "Center align",
664
725
  position: "bottom"
@@ -680,7 +741,7 @@ var ColorBlock = function ColorBlock(_ref) {
680
741
  onChange = _ref.onChange,
681
742
  showTransparencyControl = _ref.showTransparencyControl;
682
743
  return /*#__PURE__*/jsxs("div", {
683
- className: "flex items-center justify-between py-2 first:pt-0 last:pb-0",
744
+ className: "flex items-center justify-between",
684
745
  "data-cy": "theme-style-".concat(joinHyphenCase(label)),
685
746
  children: [/*#__PURE__*/jsx(Typography, {
686
747
  "data-cy": "style-fields-labels",
@@ -691,7 +752,7 @@ var ColorBlock = function ColorBlock(_ref) {
691
752
  onChange: onChange,
692
753
  showTransparencyControl: showTransparencyControl,
693
754
  showEyeDropper: true,
694
- size: "large"
755
+ size: "medium"
695
756
  })]
696
757
  });
697
758
  };
@@ -706,7 +767,7 @@ var FontPickerBlock = function FontPickerBlock(_ref) {
706
767
  options = _ref.options,
707
768
  onChange = _ref.onChange;
708
769
  return /*#__PURE__*/jsxs("div", {
709
- className: "flex items-center justify-between py-2 first:pt-0 last:pb-0",
770
+ className: "flex items-center justify-between",
710
771
  "data-cy": "theme-style-".concat(joinHyphenCase(label)),
711
772
  children: [/*#__PURE__*/jsx(Typography, {
712
773
  "data-cy": "style-fields-labels",
@@ -741,7 +802,7 @@ var SliderBlock = function SliderBlock(_ref) {
741
802
  max = _ref.max,
742
803
  marks = _ref.marks;
743
804
  return /*#__PURE__*/jsxs("div", {
744
- className: "flex items-center justify-between gap-3 py-3 first:pt-0 last:pb-0",
805
+ className: "flex items-center justify-between gap-3",
745
806
  "data-cy": "theme-style-".concat(joinHyphenCase(label)),
746
807
  children: [/*#__PURE__*/jsx(Typography, {
747
808
  "data-cy": "style-fields-labels",
@@ -774,13 +835,13 @@ var SwitchBlock = function SwitchBlock(_ref) {
774
835
  var translationKey = "neetoThemes.properties.boolean.".concat(name, "HelpText");
775
836
  var doesHelpTextExist = i18n.exists(translationKey);
776
837
  return /*#__PURE__*/jsxs("div", {
777
- className: "flex items-center justify-between py-2 first:pt-0 last:pb-0",
838
+ className: "flex items-center justify-between",
778
839
  children: [/*#__PURE__*/jsxs("div", {
779
840
  className: "inline-flex items-center gap-4",
780
841
  children: [/*#__PURE__*/jsx(Typography, {
781
842
  "data-cy": "style-fields-labels",
782
843
  style: "body2",
783
- className: classNames({
844
+ className: classnames({
784
845
  "w-32": doesHelpTextExist,
785
846
  "w-auto": !doesHelpTextExist
786
847
  }),
@@ -798,7 +859,8 @@ var SwitchBlock = function SwitchBlock(_ref) {
798
859
  };
799
860
 
800
861
  var Properties = function Properties(_ref) {
801
- var onPropertiesChange = _ref.onPropertiesChange;
862
+ var onPropertiesChange = _ref.onPropertiesChange,
863
+ className = _ref.className;
802
864
  var _useTranslation = useTranslation(),
803
865
  t = _useTranslation.t;
804
866
  var _useConfigStore = useConfigStore(function (store) {
@@ -856,6 +918,8 @@ var Properties = function Properties(_ref) {
856
918
  });
857
919
  }, [values]);
858
920
  return /*#__PURE__*/jsx(Card$2, {
921
+ className: className,
922
+ name: "style",
859
923
  title: t("neetoThemes.common.style"),
860
924
  children: values.properties.sort(function (a, b) {
861
925
  var order = function order(key) {
@@ -966,8 +1030,11 @@ var Properties = function Properties(_ref) {
966
1030
  };
967
1031
 
968
1032
  var ThemeMeta = withT(function (_ref) {
969
- var t = _ref.t;
1033
+ var t = _ref.t,
1034
+ className = _ref.className;
970
1035
  return /*#__PURE__*/jsx(Card$2, {
1036
+ className: className,
1037
+ name: "name",
971
1038
  title: t("neetoThemes.common.name"),
972
1039
  children: /*#__PURE__*/jsx(Input, {
973
1040
  autoFocus: true,
@@ -1053,37 +1120,32 @@ var Customize = function Customize(_ref) {
1053
1120
  return /*#__PURE__*/jsxs("div", {
1054
1121
  className: "neeto-themes-sidebar__scroll",
1055
1122
  children: [/*#__PURE__*/jsxs("div", {
1056
- className: "neeto-themes-sidebar__scroll-content flex flex-grow flex-col px-4 py-2 lg:px-5 xl:px-6",
1057
- children: [/*#__PURE__*/jsx("div", {
1058
- className: classNames({
1123
+ className: "neeto-themes-sidebar__scroll-content flex flex-grow flex-col px-4 pb-4 lg:px-5",
1124
+ children: [/*#__PURE__*/jsx(ThemeMeta, {
1125
+ className: classnames({
1059
1126
  hidden: isCustomCssScreen
1060
- }),
1061
- children: /*#__PURE__*/jsx(ThemeMeta, {})
1062
- }), /*#__PURE__*/jsx("div", {
1063
- className: classNames({
1064
- hidden: isCustomCssScreen
1065
- }),
1066
- children: /*#__PURE__*/jsx(Properties, {
1067
- onPropertiesChange: onPropertiesChange
1068
1127
  })
1069
- }), /*#__PURE__*/jsx("div", {
1070
- className: classNames("flex flex-col gap-6", {
1128
+ }), /*#__PURE__*/jsx(Properties, {
1129
+ onPropertiesChange: onPropertiesChange,
1130
+ className: classnames({
1071
1131
  hidden: isCustomCssScreen
1072
- }),
1073
- children: filterBy({
1074
- kind: "image"
1075
- }, themePropertiesSchema).map(function (_ref5) {
1076
- var key = _ref5.key;
1077
- return /*#__PURE__*/jsx(Images, {
1078
- attribute: key
1079
- }, key);
1080
1132
  })
1133
+ }), filterBy({
1134
+ kind: "image"
1135
+ }, themePropertiesSchema).map(function (_ref5) {
1136
+ var key = _ref5.key;
1137
+ return /*#__PURE__*/jsx(Images, {
1138
+ attribute: key,
1139
+ className: classnames({
1140
+ hidden: isCustomCssScreen
1141
+ })
1142
+ }, key);
1081
1143
  }), /*#__PURE__*/jsx(CustomCSS, {
1082
1144
  currentScreen: currentScreen,
1083
1145
  onEditCSSClick: onEditCSSClick
1084
1146
  })]
1085
1147
  }), /*#__PURE__*/jsxs("div", {
1086
- className: "neeto-ui-bg-white neeto-ui-shadow-s sticky bottom-0 left-0 right-0 flex justify-end gap-x-2 px-4 py-6",
1148
+ className: "neeto-ui-bg-white neeto-ui-shadow-s sticky bottom-0 left-0 right-0 flex justify-end gap-x-2 px-4 py-6 lg:px-5 xl:px-6",
1087
1149
  children: [/*#__PURE__*/jsx(Button, {
1088
1150
  "data-cy": "reset-button",
1089
1151
  disabled: !dirty || isSubmitting,
@@ -1249,7 +1311,7 @@ var Thumbnail = function Thumbnail(_ref) {
1249
1311
  }, themePropertiesSchema)) === null || _findBy2 === void 0 ? void 0 : _findBy2.key
1250
1312
  }, theme.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value;
1251
1313
  return /*#__PURE__*/jsx("div", {
1252
- className: classNames("neeto-themes-theme-thumbnail neeto-ui-rounded-lg border transition-all duration-300 ease-in-out", {
1314
+ className: classnames("neeto-themes-theme-thumbnail neeto-ui-rounded-lg border transition-all duration-300 ease-in-out", {
1253
1315
  "neeto-ui-border-gray-400": !active,
1254
1316
  "neeto-ui-border-gray-800 neeto-themes-theme-thumbnail--active": active,
1255
1317
  "neeto-themes-theme-thumbnail--preview-active": isPreviewing,
@@ -1327,7 +1389,7 @@ var Card = function Card(_ref) {
1327
1389
  "data-cy": active ? "active-theme-card" : "theme-card",
1328
1390
  id: theme.id,
1329
1391
  children: /*#__PURE__*/jsxs("div", {
1330
- className: classNames("neeto-themes-theme-thumbnail neeto-ui-rounded-lg cursor-pointer border transition-all duration-300 ease-in-out", {
1392
+ className: classnames("neeto-themes-theme-thumbnail neeto-ui-rounded-lg cursor-pointer border transition-all duration-300 ease-in-out", {
1331
1393
  "neeto-ui-border-gray-200": !active,
1332
1394
  "neeto-themes-theme-thumbnail--active": active,
1333
1395
  "neeto-themes-theme-thumbnail--preview-active": isPreviewing,
@@ -1344,7 +1406,7 @@ var Card = function Card(_ref) {
1344
1406
  className: "flex-shrink-0",
1345
1407
  "data-cy": "active-theme-label"
1346
1408
  }) : /*#__PURE__*/jsx("div", {
1347
- className: classNames({
1409
+ className: classnames({
1348
1410
  hidden: !isPreviewing,
1349
1411
  "group-hover:block": true
1350
1412
  }),
@@ -1506,13 +1568,13 @@ var Themes = function Themes(_ref) {
1506
1568
  children: t("neetoThemes.common.noResultsFound")
1507
1569
  }), isNotEmpty(filteredDefaultThemes) && /*#__PURE__*/jsxs(Fragment, {
1508
1570
  children: [/*#__PURE__*/jsx(Typography, {
1509
- className: "my-4 px-4 uppercase lg:px-5 xl:px-6",
1571
+ className: "my-4 px-6 uppercase lg:px-5 xl:px-6",
1510
1572
  "data-cy": "system-themes-header",
1511
1573
  style: "h6",
1512
1574
  weight: "semibold",
1513
1575
  children: t("neetoThemes.build.leftSideBar.themes.systemThemes")
1514
1576
  }), /*#__PURE__*/jsx("div", {
1515
- className: "flex flex-col gap-4 px-4 pb-10 lg:px-5 xl:px-6",
1577
+ className: "flex flex-col gap-4 px-6 pb-10 lg:px-5 xl:px-6",
1516
1578
  "data-cy": "system-themes",
1517
1579
  children: filteredDefaultThemes.map(function (theme) {
1518
1580
  return /*#__PURE__*/createElement(Card$1, {
@@ -1574,7 +1636,7 @@ var TitleBar = function TitleBar(_ref) {
1574
1636
  var isCustomCssScreen = isScreenCustomCSS(currentScreen);
1575
1637
  if (currentScreen === DESIGN_SCREENS.THEMES) {
1576
1638
  return /*#__PURE__*/jsx("div", {
1577
- className: "neeto-themes-sidebar__header px-4 lg:px-5 xl:px-6",
1639
+ className: "neeto-themes-sidebar__header px-6 lg:px-5 xl:px-6",
1578
1640
  children: /*#__PURE__*/jsxs("div", {
1579
1641
  className: "flex items-center justify-between space-x-2",
1580
1642
  children: [/*#__PURE__*/jsx(Typography, {
@@ -1650,6 +1712,16 @@ var Sidebar = function Sidebar(_ref) {
1650
1712
  _useState8 = _slicedToArray(_useState7, 2),
1651
1713
  themeBeingApplied = _useState8[0],
1652
1714
  setThemeBeingApplied = _useState8[1];
1715
+ var _useBreakpoints = useBreakpoints(),
1716
+ isSize = _useBreakpoints.isSize;
1717
+ var isLargerScreen = !isSize("mobile");
1718
+ var _useState9 = useState(!isLargerScreen),
1719
+ _useState10 = _slicedToArray(_useState9, 2),
1720
+ isThemesSidebarCollapsed = _useState10[0],
1721
+ setIsThemesSidebarCollapsed = _useState10[1];
1722
+ useEffect(function () {
1723
+ setIsThemesSidebarCollapsed(!isLargerScreen);
1724
+ }, [isLargerScreen]);
1653
1725
  var _useConfigStore = useConfigStore(function (store) {
1654
1726
  return {
1655
1727
  entityType: store["entityType"],
@@ -1767,57 +1839,73 @@ var Sidebar = function Sidebar(_ref) {
1767
1839
  }
1768
1840
  });
1769
1841
  }, [deleteTheme, themeToDelete]);
1770
- return /*#__PURE__*/jsxs("div", {
1771
- className: classNames("neeto-themes-sidebar neeto-ui-border-gray-200 flex-shrink-0 border-r transition-all duration-300", {
1772
- "neeto-themes-sidebar--expanded": isCustomCssScreen
1773
- }),
1774
- children: [/*#__PURE__*/jsx(TitleBar, {
1775
- currentScreen: currentScreen,
1776
- handleBackPress: handleBackPress,
1777
- handleCreateNewTheme: function handleCreateNewTheme() {
1778
- return handleEditTheme({});
1779
- },
1780
- isNewTheme: !((_themeToEdit$current = themeToEdit.current) !== null && _themeToEdit$current !== void 0 && _themeToEdit$current.id),
1781
- themeToEdit: themeToEdit.current
1782
- }), currentScreen === DESIGN_SCREENS.THEMES ? /*#__PURE__*/jsx(Themes, {
1783
- currentTheme: currentTheme,
1784
- defaultThemes: defaultThemes,
1785
- didScrollActiveThemeIntoView: didScrollActiveThemeIntoView,
1786
- highlightTheme: highlightTheme,
1787
- isApplyingTheme: isApplyingTheme,
1788
- isCurrentThemeLoading: isCurrentThemeLoading,
1789
- onApplyTheme: onApplyTheme,
1790
- themeBeingApplied: themeBeingApplied,
1791
- themeToHighlight: themeToHighlight,
1792
- themes: themes,
1793
- thumbnail: thumbnail,
1794
- isLoading: isLoading || isFetchingSchema,
1795
- onDeleteTheme: handleDelete,
1796
- onEditTheme: handleEditTheme
1797
- }) : /*#__PURE__*/jsx(Customize, {
1798
- currentScreen: currentScreen,
1799
- isApplyingTheme: isApplyingTheme,
1800
- onApplyTheme: onApplyTheme,
1801
- onCreateTheme: onCreateTheme,
1802
- onPropertiesChange: onPropertiesChange,
1803
- onUpdateThemeSuccess: onUpdateThemeSuccess,
1804
- theme: themeToEdit.current,
1805
- themeId: (_themeToEdit$current2 = themeToEdit.current) === null || _themeToEdit$current2 === void 0 ? void 0 : _themeToEdit$current2.id,
1806
- onEditCSSClick: setCurrentScreen
1807
- }), /*#__PURE__*/jsx(MemoizedAlert, {
1808
- isOpen: isDeleteAlertOpen,
1809
- isSubmitting: isDeleting,
1810
- title: t("neetoThemes.alerts.title.deleteTheme"),
1811
- message: t("neetoThemes.alerts.message.deleteTheme", {
1812
- name: (_themeToDelete$curren2 = themeToDelete.current) === null || _themeToDelete$curren2 === void 0 ? void 0 : _themeToDelete$curren2.name,
1813
- count: (_themeToDelete$curren3 = themeToDelete.current) === null || _themeToDelete$curren3 === void 0 ? void 0 : _themeToDelete$curren3.appliedCount,
1814
- defaultThemeName: defaultThemeName,
1815
- entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()), {
1816
- count: (_themeToDelete$curren4 = themeToDelete.current) === null || _themeToDelete$curren4 === void 0 ? void 0 : _themeToDelete$curren4.appliedCount
1817
- })
1842
+ return /*#__PURE__*/jsxs(Fragment, {
1843
+ children: [!isThemesSidebarCollapsed && /*#__PURE__*/jsx("div", {
1844
+ className: "neeto-themes-sidebar__backdrop",
1845
+ onClick: function onClick() {
1846
+ setIsThemesSidebarCollapsed(!isThemesSidebarCollapsed);
1847
+ }
1848
+ }), /*#__PURE__*/jsxs("div", {
1849
+ className: classnames("neeto-themes-sidebar neeto-ui-border-gray-200 flex-shrink-0 border-r transition-all duration-300", {
1850
+ "neeto-themes-sidebar--expanded": isCustomCssScreen
1851
+ }, {
1852
+ "neeto-themes-sidebar--collapsed": isThemesSidebarCollapsed
1818
1853
  }),
1819
- onClose: handleCloseDeleteAlert,
1820
- onSubmit: handleDeleteTheme
1854
+ children: [/*#__PURE__*/jsx(TitleBar, {
1855
+ currentScreen: currentScreen,
1856
+ handleBackPress: handleBackPress,
1857
+ handleCreateNewTheme: function handleCreateNewTheme() {
1858
+ return handleEditTheme({});
1859
+ },
1860
+ isNewTheme: !((_themeToEdit$current = themeToEdit.current) !== null && _themeToEdit$current !== void 0 && _themeToEdit$current.id),
1861
+ themeToEdit: themeToEdit.current
1862
+ }), currentScreen === DESIGN_SCREENS.THEMES ? /*#__PURE__*/jsx(Themes, {
1863
+ currentTheme: currentTheme,
1864
+ defaultThemes: defaultThemes,
1865
+ didScrollActiveThemeIntoView: didScrollActiveThemeIntoView,
1866
+ highlightTheme: highlightTheme,
1867
+ isApplyingTheme: isApplyingTheme,
1868
+ isCurrentThemeLoading: isCurrentThemeLoading,
1869
+ onApplyTheme: onApplyTheme,
1870
+ themeBeingApplied: themeBeingApplied,
1871
+ themeToHighlight: themeToHighlight,
1872
+ themes: themes,
1873
+ thumbnail: thumbnail,
1874
+ isLoading: isLoading || isFetchingSchema,
1875
+ onDeleteTheme: handleDelete,
1876
+ onEditTheme: handleEditTheme
1877
+ }) : /*#__PURE__*/jsx(Customize, {
1878
+ currentScreen: currentScreen,
1879
+ isApplyingTheme: isApplyingTheme,
1880
+ onApplyTheme: onApplyTheme,
1881
+ onCreateTheme: onCreateTheme,
1882
+ onPropertiesChange: onPropertiesChange,
1883
+ onUpdateThemeSuccess: onUpdateThemeSuccess,
1884
+ theme: themeToEdit.current,
1885
+ themeId: (_themeToEdit$current2 = themeToEdit.current) === null || _themeToEdit$current2 === void 0 ? void 0 : _themeToEdit$current2.id,
1886
+ onEditCSSClick: setCurrentScreen
1887
+ }), /*#__PURE__*/jsx(MemoizedAlert, {
1888
+ isOpen: isDeleteAlertOpen,
1889
+ isSubmitting: isDeleting,
1890
+ title: t("neetoThemes.alerts.title.deleteTheme"),
1891
+ message: t("neetoThemes.alerts.message.deleteTheme", {
1892
+ name: (_themeToDelete$curren2 = themeToDelete.current) === null || _themeToDelete$curren2 === void 0 ? void 0 : _themeToDelete$curren2.name,
1893
+ count: (_themeToDelete$curren3 = themeToDelete.current) === null || _themeToDelete$curren3 === void 0 ? void 0 : _themeToDelete$curren3.appliedCount,
1894
+ defaultThemeName: defaultThemeName,
1895
+ entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()), {
1896
+ count: (_themeToDelete$curren4 = themeToDelete.current) === null || _themeToDelete$curren4 === void 0 ? void 0 : _themeToDelete$curren4.appliedCount
1897
+ })
1898
+ }),
1899
+ onClose: handleCloseDeleteAlert,
1900
+ onSubmit: handleDeleteTheme
1901
+ }), /*#__PURE__*/jsx(Button, {
1902
+ className: "neeto-themes-sidebar__toggler",
1903
+ icon: Collapse,
1904
+ style: "secondary",
1905
+ onClick: function onClick() {
1906
+ setIsThemesSidebarCollapsed(!isThemesSidebarCollapsed);
1907
+ }
1908
+ })]
1821
1909
  })]
1822
1910
  });
1823
1911
  };