@bigbinary/neeto-molecules 1.3.14 → 1.3.15
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/ThemeSidebar.js +14 -14
- package/dist/ThemeSidebar.js.map +1 -1
- package/dist/cjs/ThemeSidebar.js +14 -14
- package/dist/cjs/ThemeSidebar.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/ThemeSidebar.js
CHANGED
|
@@ -1824,7 +1824,7 @@ var Themes = function Themes(_ref) {
|
|
|
1824
1824
|
}, isSearchFieldVisible && /*#__PURE__*/React__default["default"].createElement(neetoui.Input, {
|
|
1825
1825
|
autoFocus: true,
|
|
1826
1826
|
autoComplete: "off",
|
|
1827
|
-
className: "mb-4
|
|
1827
|
+
className: "mt-1 mb-4 px-6",
|
|
1828
1828
|
placeholder: t("neetoMolecules.themeSidebar.searchThemes"),
|
|
1829
1829
|
prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Search, null),
|
|
1830
1830
|
type: "search",
|
|
@@ -1840,50 +1840,50 @@ var Themes = function Themes(_ref) {
|
|
|
1840
1840
|
count: 2
|
|
1841
1841
|
})
|
|
1842
1842
|
})), neetoCist.isNotEmpty(filteredDefaultThemes) && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
1843
|
-
className: "my-4 px-
|
|
1843
|
+
className: "my-4 px-4 uppercase md:px-5 lg:px-6",
|
|
1844
1844
|
"data-cy": "system-themes-header",
|
|
1845
1845
|
style: "h6",
|
|
1846
1846
|
weight: "semibold"
|
|
1847
1847
|
}, t("neetoMolecules.themeSidebar.systemThemes")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1848
|
-
className: "flex flex-col gap-4 px-6"
|
|
1848
|
+
className: "flex flex-col gap-4 px-4 md:px-5 lg:px-6"
|
|
1849
1849
|
}, filteredDefaultThemes.map(function (theme) {
|
|
1850
1850
|
return /*#__PURE__*/React__default["default"].createElement(ThemeCard, {
|
|
1851
|
+
onApplyTheme: onApplyTheme,
|
|
1852
|
+
onCloneTheme: onCloneTheme,
|
|
1853
|
+
theme: theme,
|
|
1851
1854
|
active: (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.id) === theme.id,
|
|
1852
1855
|
isApplyingTheme: applyingThemeId === theme.id,
|
|
1853
1856
|
isPreviewing: (previewingTheme === null || previewingTheme === void 0 ? void 0 : previewingTheme.id) === theme.id,
|
|
1854
1857
|
key: theme.id,
|
|
1855
|
-
onApplyTheme: onApplyTheme,
|
|
1856
|
-
onCloneTheme: onCloneTheme,
|
|
1857
|
-
theme: theme,
|
|
1858
1858
|
onSetPreviewTheme: setPreviewingTheme
|
|
1859
1859
|
});
|
|
1860
1860
|
})))), neetoCist.isNotEmpty(filteredThemes) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1861
1861
|
className: "mb-6 space-y-3"
|
|
1862
1862
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
1863
|
-
className: "my-4 px-
|
|
1863
|
+
className: "my-4 px-4 uppercase md:px-5 lg:px-6",
|
|
1864
1864
|
"data-cy": "custom-themes-header",
|
|
1865
1865
|
style: "h6",
|
|
1866
1866
|
weight: "semibold"
|
|
1867
1867
|
}, t("neetoMolecules.themeSidebar.customThemes")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1868
|
-
className: "flex flex-col gap-4 px-6"
|
|
1868
|
+
className: "flex flex-col gap-4 px-4 md:px-5 lg:px-6"
|
|
1869
1869
|
}, filteredThemes.map(function (theme) {
|
|
1870
1870
|
var isActive = (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.id) === theme.id;
|
|
1871
1871
|
return /*#__PURE__*/React__default["default"].createElement(ThemeCard, {
|
|
1872
|
-
active: isActive,
|
|
1873
|
-
isHighLightedTheme: theme.id === themeToHighlight,
|
|
1874
|
-
isPreviewing: (previewingTheme === null || previewingTheme === void 0 ? void 0 : previewingTheme.id) === theme.id,
|
|
1875
|
-
key: theme.id,
|
|
1876
1872
|
onApplyTheme: onApplyTheme,
|
|
1877
1873
|
onCloneTheme: onCloneTheme,
|
|
1878
1874
|
onEditTheme: onEditTheme,
|
|
1879
1875
|
theme: theme,
|
|
1876
|
+
active: isActive,
|
|
1877
|
+
isHighLightedTheme: theme.id === themeToHighlight,
|
|
1878
|
+
isPreviewing: (previewingTheme === null || previewingTheme === void 0 ? void 0 : previewingTheme.id) === theme.id,
|
|
1879
|
+
key: theme.id,
|
|
1880
1880
|
onDeleteTheme: !isActive ? onDeleteTheme : null,
|
|
1881
1881
|
onSetPreviewTheme: setPreviewingTheme
|
|
1882
1882
|
});
|
|
1883
1883
|
}))));
|
|
1884
1884
|
};
|
|
1885
1885
|
|
|
1886
|
-
var css = ".neeto-molecules-theme-design-sidebar{background-color:rgb(var(--neeto-ui-white));box-shadow:var(--neeto-ui-shadow-s);height:100%;width:320px}.neeto-molecules-theme-design-sidebar .neeto-molecules-theme-design-sidebar__header{padding-bottom:8px;padding-top:16px}.neeto-molecules-theme-design-sidebar .neeto-molecules-theme-design-sidebar__scroll{height:94%;overflow-y:auto}.neeto-molecules-theme-design-sidebar .neeto-molecules-theme-design-sidebar__scroll .neeto-ui-colorpicker__target .neeto-ui-colorpicker-target__code{display:none}.neeto-molecules-theme-design-preview__wrapper{background-color:rgb(var(--neeto-ui-gray-100));flex-grow:1;height:100%;position:relative}.neeto-molecules-theme-thumbnail--active{border-color:rgb(var(--neeto-ui-primary-500))!important;box-shadow:0 0 0 1px rgb(var(--neeto-ui-primary-500))!important}.neeto-molecules-theme-thumbnail--preview-active{border-color:rgb(var(--neeto-ui-gray-700));box-shadow:0 0 0 1px rgb(var(--neeto-ui-gray-700))}.neeto-molecules-theme-thumbnail--highlight-active{border-color:rgb(var(--neeto-ui-success-500));box-shadow:0 0 0 1px rgb(var(--neeto-ui-success-500));transition:border-color box-shadow .1s .1s}";
|
|
1886
|
+
var css = ".neeto-molecules-theme-design-sidebar{background-color:rgb(var(--neeto-ui-white));box-shadow:var(--neeto-ui-shadow-s);height:100%;width:320px}@media screen and (max-width:1024px){.neeto-molecules-theme-design-sidebar{width:280px}}@media screen and (max-width:768px){.neeto-molecules-theme-design-sidebar{width:240px}}.neeto-molecules-theme-design-sidebar .neeto-molecules-theme-design-sidebar__header{padding-bottom:8px;padding-top:16px}.neeto-molecules-theme-design-sidebar .neeto-molecules-theme-design-sidebar__scroll{height:94%;overflow-y:auto}.neeto-molecules-theme-design-sidebar .neeto-molecules-theme-design-sidebar__scroll .neeto-ui-colorpicker__target .neeto-ui-colorpicker-target__code{display:none}.neeto-molecules-theme-design-preview__wrapper{background-color:rgb(var(--neeto-ui-gray-100));flex-grow:1;height:100%;position:relative}.neeto-molecules-theme-thumbnail--active{border-color:rgb(var(--neeto-ui-primary-500))!important;box-shadow:0 0 0 1px rgb(var(--neeto-ui-primary-500))!important}.neeto-molecules-theme-thumbnail--preview-active{border-color:rgb(var(--neeto-ui-gray-700));box-shadow:0 0 0 1px rgb(var(--neeto-ui-gray-700))}.neeto-molecules-theme-thumbnail--highlight-active{border-color:rgb(var(--neeto-ui-success-500));box-shadow:0 0 0 1px rgb(var(--neeto-ui-success-500));transition:border-color box-shadow .1s .1s}";
|
|
1887
1887
|
n(css,{});
|
|
1888
1888
|
|
|
1889
1889
|
var TitleBar = function TitleBar(_ref) {
|
|
@@ -1916,7 +1916,7 @@ var TitleBar = function TitleBar(_ref) {
|
|
|
1916
1916
|
}, isNewTheme ? t("neetoMolecules.themeSidebar.createTheme.title") : t("neetoMolecules.themeSidebar.editTheme.title"))));
|
|
1917
1917
|
}
|
|
1918
1918
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1919
|
-
className: classnames__default["default"]("neeto-molecules-theme-design-sidebar__header px-6")
|
|
1919
|
+
className: classnames__default["default"]("neeto-molecules-theme-design-sidebar__header px-4 md:px-5 lg:px-6")
|
|
1920
1920
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1921
1921
|
className: "flex items-center justify-between space-x-2"
|
|
1922
1922
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|