@bigbinary/neeto-themes-frontend 5.1.1 → 6.0.0-beta1
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/ar.json +2 -3
- package/app/javascript/src/translations/bg.json +2 -3
- package/app/javascript/src/translations/ca.json +2 -3
- package/app/javascript/src/translations/cs.json +2 -3
- package/app/javascript/src/translations/da.json +2 -3
- package/app/javascript/src/translations/de.json +2 -3
- package/app/javascript/src/translations/en.json +1 -2
- package/app/javascript/src/translations/es-MX.json +2 -3
- package/app/javascript/src/translations/es.json +2 -3
- package/app/javascript/src/translations/et.json +2 -3
- package/app/javascript/src/translations/fi.json +2 -3
- package/app/javascript/src/translations/fil.json +2 -3
- package/app/javascript/src/translations/fr.json +2 -3
- package/app/javascript/src/translations/he.json +2 -3
- package/app/javascript/src/translations/hi.json +2 -3
- package/app/javascript/src/translations/hr.json +2 -3
- package/app/javascript/src/translations/hu.json +2 -3
- package/app/javascript/src/translations/id.json +2 -3
- package/app/javascript/src/translations/it.json +2 -3
- package/app/javascript/src/translations/ja.json +2 -3
- package/app/javascript/src/translations/ko.json +2 -3
- package/app/javascript/src/translations/lv.json +2 -3
- package/app/javascript/src/translations/nl.json +2 -3
- package/app/javascript/src/translations/pl.json +2 -3
- package/app/javascript/src/translations/pt-BR.json +2 -3
- package/app/javascript/src/translations/pt.json +2 -3
- package/app/javascript/src/translations/ro.json +2 -3
- package/app/javascript/src/translations/ru.json +2 -3
- package/app/javascript/src/translations/sk.json +2 -3
- package/app/javascript/src/translations/sl.json +2 -3
- package/app/javascript/src/translations/sv.json +2 -3
- package/app/javascript/src/translations/th.json +2 -3
- package/app/javascript/src/translations/tr.json +2 -3
- package/app/javascript/src/translations/uk.json +2 -3
- package/app/javascript/src/translations/vi.json +2 -3
- package/app/javascript/src/translations/zh-CN.json +2 -3
- package/app/javascript/src/translations/zh-TW.json +2 -3
- 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 +67 -90
- 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-LX60-sb4.js → useGlobalThemesApi-B3ulFgMt.js} +72 -108
- package/dist/{useGlobalThemesApi-LX60-sb4.js.map → useGlobalThemesApi-B3ulFgMt.js.map} +1 -1
- package/dist/{useGlobalThemesApi-YxyevW67.js → useGlobalThemesApi-CT6pst6z.js} +72 -108
- package/dist/{useGlobalThemesApi-YxyevW67.js.map → useGlobalThemesApi-CT6pst6z.js.map} +1 -1
- package/dist/v2/NeetoThemesBuilder.js +68 -91
- package/dist/v2/NeetoThemesBuilder.js.map +1 -1
- package/dist/v2/index.js +1 -1
- package/package.json +4 -3
|
@@ -43,15 +43,14 @@
|
|
|
43
43
|
"changeLogo": "Logoyu değiştir",
|
|
44
44
|
"addCoverImage": "Kapak resmi ekle",
|
|
45
45
|
"changeCoverImage": "Kapak resmini değiştir",
|
|
46
|
-
"defaultTheme": "
|
|
46
|
+
"defaultTheme": "(varsayılan tema)",
|
|
47
47
|
"addImage": "Görüntü ekle",
|
|
48
48
|
"addBackgroundImage": "Arka plan resmi ekle",
|
|
49
49
|
"changeBackgroundImage": "Arka plan resmini değiştir",
|
|
50
50
|
"leftAlign": "Sola hizalama",
|
|
51
51
|
"centerAlign": "Merkez hizalama",
|
|
52
52
|
"pro": "Pro",
|
|
53
|
-
"cloneName": "{{name, anyCase}} - kopya"
|
|
54
|
-
"defaultThemeInfo": "Varsayılan tema her yeni {{entityType}} için otomatik olarak uygulanır."
|
|
53
|
+
"cloneName": "{{name, anyCase}} - kopya"
|
|
55
54
|
},
|
|
56
55
|
"buttons": {
|
|
57
56
|
"saveChanges": "Değişiklikleri kaydet",
|
|
@@ -43,15 +43,14 @@
|
|
|
43
43
|
"changeLogo": "Змінити логотип",
|
|
44
44
|
"addCoverImage": "Додати обкладинку",
|
|
45
45
|
"changeCoverImage": "Змінити обкладинку",
|
|
46
|
-
"defaultTheme": "
|
|
46
|
+
"defaultTheme": "(стандартна тема)",
|
|
47
47
|
"addImage": "Додати зображення",
|
|
48
48
|
"addBackgroundImage": "Додати фонове зображення",
|
|
49
49
|
"changeBackgroundImage": "Змінити фонове зображення",
|
|
50
50
|
"leftAlign": "Вирівняти ліворуч",
|
|
51
51
|
"centerAlign": "Вирівняти по центру",
|
|
52
52
|
"pro": "Про",
|
|
53
|
-
"cloneName": "{{name, anyCase}} - клон"
|
|
54
|
-
"defaultThemeInfo": "За замовчуванням тема автоматично застосовується до кожного нового {{entityType}}."
|
|
53
|
+
"cloneName": "{{name, anyCase}} - клон"
|
|
55
54
|
},
|
|
56
55
|
"buttons": {
|
|
57
56
|
"saveChanges": "Зберегти зміни",
|
|
@@ -43,15 +43,14 @@
|
|
|
43
43
|
"changeLogo": "Thay đổi logo",
|
|
44
44
|
"addCoverImage": "Thêm hình bìa",
|
|
45
45
|
"changeCoverImage": "Thay đổi hình bìa",
|
|
46
|
-
"defaultTheme": "
|
|
46
|
+
"defaultTheme": "(chủ đề mặc định)",
|
|
47
47
|
"addImage": "Thêm hình ảnh",
|
|
48
48
|
"addBackgroundImage": "Thêm hình nền",
|
|
49
49
|
"changeBackgroundImage": "Thay đổi hình nền",
|
|
50
50
|
"leftAlign": "Căn trái",
|
|
51
51
|
"centerAlign": "Căn giữa",
|
|
52
52
|
"pro": "Chuyên nghiệp",
|
|
53
|
-
"cloneName": "{{name, anyCase}} - bản sao"
|
|
54
|
-
"defaultThemeInfo": "Giao diện mặc định được áp dụng tự động cho mọi {{entityType}} mới."
|
|
53
|
+
"cloneName": "{{name, anyCase}} - bản sao"
|
|
55
54
|
},
|
|
56
55
|
"buttons": {
|
|
57
56
|
"saveChanges": "Lưu thay đổi",
|
|
@@ -43,15 +43,14 @@
|
|
|
43
43
|
"changeLogo": "更改标志",
|
|
44
44
|
"addCoverImage": "添加封面图像",
|
|
45
45
|
"changeCoverImage": "更改封面图像",
|
|
46
|
-
"defaultTheme": "默认主题",
|
|
46
|
+
"defaultTheme": "(默认主题)",
|
|
47
47
|
"addImage": "添加图片",
|
|
48
48
|
"addBackgroundImage": "添加背景图片",
|
|
49
49
|
"changeBackgroundImage": "更改背景图片",
|
|
50
50
|
"leftAlign": "左对齐",
|
|
51
51
|
"centerAlign": "居中对齐",
|
|
52
52
|
"pro": "专业版",
|
|
53
|
-
"cloneName": "{{name, anyCase}} - 克隆"
|
|
54
|
-
"defaultThemeInfo": "默认主题会自动应用于每个新的 {{entityType}}。"
|
|
53
|
+
"cloneName": "{{name, anyCase}} - 克隆"
|
|
55
54
|
},
|
|
56
55
|
"buttons": {
|
|
57
56
|
"saveChanges": "保存更改",
|
|
@@ -43,15 +43,14 @@
|
|
|
43
43
|
"changeLogo": "變更標誌",
|
|
44
44
|
"addCoverImage": "新增封面圖片",
|
|
45
45
|
"changeCoverImage": "變更封面圖片",
|
|
46
|
-
"defaultTheme": "預設主題",
|
|
46
|
+
"defaultTheme": "(預設主題)",
|
|
47
47
|
"addImage": "添加圖片",
|
|
48
48
|
"addBackgroundImage": "添加背景圖片",
|
|
49
49
|
"changeBackgroundImage": "更改背景圖片",
|
|
50
50
|
"leftAlign": "左對齊",
|
|
51
51
|
"centerAlign": "置中對齊",
|
|
52
52
|
"pro": "專業版",
|
|
53
|
-
"cloneName": "{{name, anyCase}} - 複製"
|
|
54
|
-
"defaultThemeInfo": "預設主題會自動應用於每個新的 {{entityType}}。"
|
|
53
|
+
"cloneName": "{{name, anyCase}} - 複製"
|
|
55
54
|
},
|
|
56
55
|
"buttons": {
|
|
57
56
|
"saveChanges": "保存更改",
|
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-11-
|
|
1
|
+
Built at 2026-11-30T06:00:55.207Z
|
|
@@ -7,7 +7,7 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
7
7
|
import _regenerator from '@babel/runtime/helpers/regenerator';
|
|
8
8
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
9
9
|
import Toastr from '@bigbinary/neetoui/Toastr';
|
|
10
|
-
import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useListThemes, c as useCreateTheme, d as useUpdateTheme, e as useApplyTheme, f as routes, g as useShowThemeEntity, h as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-
|
|
10
|
+
import { n, u as useShowGlobalTheme, a as useFetchTheme, b as useListThemes, c as useCreateTheme, d as useUpdateTheme, e as useApplyTheme, f as routes, g as useShowThemeEntity, h as useDeleteTheme, r as registerNeetoThemesTranslations } from './useGlobalThemesApi-CT6pst6z.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-Dpv_-kLy.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 _regenerator = require('@babel/runtime/helpers/regenerator');
|
|
10
10
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
11
11
|
var Toastr = require('@bigbinary/neetoui/Toastr');
|
|
12
|
-
var useGlobalThemesApi = require('../useGlobalThemesApi-
|
|
12
|
+
var useGlobalThemesApi = require('../useGlobalThemesApi-B3ulFgMt.js');
|
|
13
13
|
var useExpandedSection = require('../useExpandedSection-D0PusQFE.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-D0PusQFE.js');
|
|
5
|
-
var useGlobalThemesApi = require('../useGlobalThemesApi-
|
|
5
|
+
var useGlobalThemesApi = require('../useGlobalThemesApi-B3ulFgMt.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-B3ulFgMt.js');
|
|
10
10
|
var useExpandedSection = require('../../useExpandedSection-D0PusQFE.js');
|
|
11
11
|
var _regenerator = require('@babel/runtime/helpers/regenerator');
|
|
12
12
|
var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
|
|
@@ -1831,9 +1831,7 @@ var Thumbnail = function Thumbnail(_ref) {
|
|
|
1831
1831
|
backgroundSize: "cover"
|
|
1832
1832
|
},
|
|
1833
1833
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1834
|
-
className:
|
|
1835
|
-
"cursor-pointer": !(active && isPreviewing)
|
|
1836
|
-
}),
|
|
1834
|
+
className: "rounded-lg cursor-pointer p-3 transition-all duration-300 ease-in-out group-hover:opacity-85",
|
|
1837
1835
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1838
1836
|
className: "rounded-lg p-3",
|
|
1839
1837
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -1887,14 +1885,12 @@ var Card = function Card(_ref) {
|
|
|
1887
1885
|
return {
|
|
1888
1886
|
themePropertiesSchema: store["themePropertiesSchema"],
|
|
1889
1887
|
enabledFeatures: store["enabledFeatures"],
|
|
1890
|
-
proFeatures: store["proFeatures"]
|
|
1891
|
-
entityType: store["entityType"]
|
|
1888
|
+
proFeatures: store["proFeatures"]
|
|
1892
1889
|
};
|
|
1893
1890
|
})),
|
|
1894
1891
|
themePropertiesSchema = _useConfigStore.themePropertiesSchema,
|
|
1895
1892
|
enabledFeatures = _useConfigStore.enabledFeatures,
|
|
1896
|
-
proFeatures = _useConfigStore.proFeatures
|
|
1897
|
-
entityType = _useConfigStore.entityType;
|
|
1893
|
+
proFeatures = _useConfigStore.proFeatures;
|
|
1898
1894
|
var id = theme.id,
|
|
1899
1895
|
name = theme.name;
|
|
1900
1896
|
var imageProperties = neetoCist.filterBy({
|
|
@@ -1916,12 +1912,6 @@ var Card = function Card(_ref) {
|
|
|
1916
1912
|
};
|
|
1917
1913
|
};
|
|
1918
1914
|
var showMoreDropdown = isFunction(onDeleteTheme);
|
|
1919
|
-
|
|
1920
|
-
// v2 revamp: the active theme is previewed on the right by default, so its
|
|
1921
|
-
// card isn't clickable while it is the one being previewed (clicking it would
|
|
1922
|
-
// do nothing). It becomes clickable again — to return to its preview — once
|
|
1923
|
-
// another theme is being previewed.
|
|
1924
|
-
var isActiveThemePreviewed = active && isPreviewing;
|
|
1925
1915
|
return (
|
|
1926
1916
|
/*#__PURE__*/
|
|
1927
1917
|
// v2 revamp: one soft card (16px radius), the preview inset and full
|
|
@@ -1933,13 +1923,12 @@ var Card = function Card(_ref) {
|
|
|
1933
1923
|
"data-testid": active ? "active-theme-card" : "theme-card",
|
|
1934
1924
|
id: theme.id,
|
|
1935
1925
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1936
|
-
className: classnames("neeto-themes-theme-thumbnail group/thumbnail border-border bg-background relative overflow-hidden rounded-2xl border transition-all duration-300 ease-in-out", {
|
|
1937
|
-
"cursor-pointer": !isActiveThemePreviewed,
|
|
1926
|
+
className: classnames("neeto-themes-theme-thumbnail group/thumbnail border-border bg-background relative cursor-pointer overflow-hidden rounded-2xl border transition-all duration-300 ease-in-out", {
|
|
1938
1927
|
"neeto-themes-theme-thumbnail--active": active,
|
|
1939
1928
|
"neeto-themes-theme-thumbnail--preview-active": isPreviewing,
|
|
1940
1929
|
"neeto-themes-theme-thumbnail--highlight-active": isHighLightedTheme
|
|
1941
1930
|
}),
|
|
1942
|
-
onClick:
|
|
1931
|
+
onClick: function onClick() {
|
|
1943
1932
|
return onSetPreviewTheme(theme);
|
|
1944
1933
|
},
|
|
1945
1934
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -1959,89 +1948,77 @@ var Card = function Card(_ref) {
|
|
|
1959
1948
|
})
|
|
1960
1949
|
})
|
|
1961
1950
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1962
|
-
className: "border-border relative flex
|
|
1951
|
+
className: "border-border relative flex items-center justify-between gap-1 border-t px-3.5 py-3",
|
|
1963
1952
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1964
|
-
className: "
|
|
1953
|
+
className: "flex min-w-0 flex-1 items-center space-x-2",
|
|
1965
1954
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
1966
|
-
className: "text-foreground min-w-0 grow truncate text-sm font-semibold",
|
|
1967
1955
|
"data-testid": "theme-name",
|
|
1968
1956
|
variant: "body2",
|
|
1969
|
-
children: name
|
|
1970
|
-
}), (active || showMoreDropdown) && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1971
|
-
className: "flex shrink-0 items-center gap-1",
|
|
1972
|
-
children: [active && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Badge, {
|
|
1973
|
-
className: "shrink-0",
|
|
1974
|
-
"data-testid": "active-theme-badge",
|
|
1975
|
-
label: t("neetoThemes.common.active"),
|
|
1976
|
-
variant: "green-subtle"
|
|
1977
|
-
}), showMoreDropdown && /*#__PURE__*/jsxRuntime.jsx(MoreDropdown, {
|
|
1978
|
-
dropdownButtonProps: {
|
|
1979
|
-
size: "icon"
|
|
1980
|
-
},
|
|
1981
|
-
dropdownProps: {
|
|
1982
|
-
className: "w-max",
|
|
1983
|
-
onClick: function onClick(e) {
|
|
1984
|
-
return e.stopPropagation();
|
|
1985
|
-
}
|
|
1986
|
-
},
|
|
1987
|
-
menuItems: [{
|
|
1988
|
-
key: "delete",
|
|
1989
|
-
"data-testid": "delete-theme-menu-item",
|
|
1990
|
-
label: t("neetoThemes.build.leftSideBar.themes.themeOptions.delete"),
|
|
1991
|
-
isDisabled: isApplyingTheme,
|
|
1992
|
-
onClick: function onClick(e) {
|
|
1993
|
-
e.stopPropagation();
|
|
1994
|
-
handleDeleteTheme();
|
|
1995
|
-
},
|
|
1996
|
-
variant: "destructive"
|
|
1997
|
-
}]
|
|
1998
|
-
})]
|
|
1999
|
-
}), !active && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2000
1957
|
className: classnames(
|
|
2001
|
-
// v2 revamp:
|
|
2002
|
-
//
|
|
2003
|
-
"
|
|
2004
|
-
"
|
|
2005
|
-
"end-0": !showMoreDropdown,
|
|
2006
|
-
"pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100": !isPreviewing
|
|
1958
|
+
// v2 revamp: one line with an ellipsis (narrow phone cards broke
|
|
1959
|
+
// the name mid-word); Apply fades in over its end on hover.
|
|
1960
|
+
"text-foreground min-w-0 grow truncate text-sm font-semibold", {
|
|
1961
|
+
"pt-0.5": showMoreDropdown
|
|
2007
1962
|
}),
|
|
2008
|
-
children:
|
|
2009
|
-
|
|
2010
|
-
"data-testid": "apply-theme-button",
|
|
2011
|
-
disabled: isApplyingTheme,
|
|
2012
|
-
label: t("neetoThemes.common.useTheme"),
|
|
2013
|
-
loading: isApplyingTheme,
|
|
2014
|
-
size: "sm",
|
|
2015
|
-
variant: "default",
|
|
2016
|
-
onClick: function onClick() {
|
|
2017
|
-
return onApplyTheme(theme);
|
|
2018
|
-
}
|
|
2019
|
-
})
|
|
2020
|
-
})]
|
|
2021
|
-
}), isGlobalTheme &&
|
|
2022
|
-
/*#__PURE__*/
|
|
2023
|
-
// v2 revamp: the default-theme marker sits on its own line as a
|
|
2024
|
-
// quiet caption, so it never congests the name row.
|
|
2025
|
-
jsxRuntime.jsxs("div", {
|
|
2026
|
-
className: "flex items-center gap-1",
|
|
2027
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
2028
|
-
className: "text-xs",
|
|
1963
|
+
children: name
|
|
1964
|
+
}), isGlobalTheme && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
2029
1965
|
color: "muted",
|
|
2030
1966
|
"data-testid": "default-theme-label",
|
|
2031
|
-
variant: "
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
content: t("neetoThemes.common.defaultThemeInfo", {
|
|
2035
|
-
entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()))
|
|
1967
|
+
variant: "body2",
|
|
1968
|
+
className: classnames("shrink-0 text-sm", {
|
|
1969
|
+
"pt-0.5": showMoreDropdown
|
|
2036
1970
|
}),
|
|
2037
|
-
children:
|
|
2038
|
-
className: "inline-flex shrink-0",
|
|
2039
|
-
children: /*#__PURE__*/jsxRuntime.jsx(lucideReact.Info, {
|
|
2040
|
-
className: "text-muted-foreground",
|
|
2041
|
-
size: 14
|
|
2042
|
-
})
|
|
2043
|
-
})
|
|
1971
|
+
children: t("neetoThemes.common.defaultTheme")
|
|
2044
1972
|
})]
|
|
1973
|
+
}), (active || showMoreDropdown) && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1974
|
+
className: "flex shrink-0 items-center gap-1",
|
|
1975
|
+
children: [active && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Badge, {
|
|
1976
|
+
className: "shrink-0",
|
|
1977
|
+
"data-testid": "active-theme-badge",
|
|
1978
|
+
label: t("neetoThemes.common.active"),
|
|
1979
|
+
variant: "green-subtle"
|
|
1980
|
+
}), showMoreDropdown && /*#__PURE__*/jsxRuntime.jsx(MoreDropdown, {
|
|
1981
|
+
dropdownButtonProps: {
|
|
1982
|
+
size: "sm"
|
|
1983
|
+
},
|
|
1984
|
+
dropdownProps: {
|
|
1985
|
+
className: "w-max",
|
|
1986
|
+
onClick: function onClick(e) {
|
|
1987
|
+
return e.stopPropagation();
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
menuItems: [{
|
|
1991
|
+
key: "delete",
|
|
1992
|
+
"data-testid": "delete-theme-menu-item",
|
|
1993
|
+
label: t("neetoThemes.build.leftSideBar.themes.themeOptions.delete"),
|
|
1994
|
+
isDisabled: isApplyingTheme,
|
|
1995
|
+
onClick: function onClick(e) {
|
|
1996
|
+
e.stopPropagation();
|
|
1997
|
+
handleDeleteTheme();
|
|
1998
|
+
},
|
|
1999
|
+
variant: "destructive"
|
|
2000
|
+
}]
|
|
2001
|
+
})]
|
|
2002
|
+
}), !active && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2003
|
+
className: classnames("from-background via-background absolute inset-y-0 flex items-center gap-1.5 bg-linear-to-l from-0% via-85% to-transparent ps-8 transition-opacity duration-(--motion-short) ease-(--ease-out)", {
|
|
2004
|
+
// Stop short of the ⋮ menu (32px button + the footer's
|
|
2005
|
+
// 14px padding) so Apply never covers it.
|
|
2006
|
+
"end-12 pe-1": showMoreDropdown,
|
|
2007
|
+
"end-0 pe-3.5": !showMoreDropdown,
|
|
2008
|
+
"pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100": !isPreviewing
|
|
2009
|
+
}),
|
|
2010
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
2011
|
+
className: "neeto-themes-theme-thumbnail__apply-btn",
|
|
2012
|
+
"data-testid": "apply-theme-button",
|
|
2013
|
+
disabled: isApplyingTheme,
|
|
2014
|
+
label: t("neetoThemes.common.useTheme"),
|
|
2015
|
+
loading: isApplyingTheme,
|
|
2016
|
+
size: "sm",
|
|
2017
|
+
variant: "default",
|
|
2018
|
+
onClick: function onClick() {
|
|
2019
|
+
return onApplyTheme(theme);
|
|
2020
|
+
}
|
|
2021
|
+
})
|
|
2045
2022
|
})]
|
|
2046
2023
|
}), active && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2047
2024
|
className: "border-border flex flex-col gap-0.5 border-t p-1.5",
|