@trops/dash-core 0.1.111 → 0.1.112
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/index.esm.js +0 -43
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -43
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35802,12 +35802,6 @@ var ThemesSection = function ThemesSection(_ref) {
|
|
|
35802
35802
|
saveAndSelectTheme(key, preset);
|
|
35803
35803
|
setGenerateMode(GENERATE_MODES.NONE);
|
|
35804
35804
|
}
|
|
35805
|
-
function handleCreateFromRandom() {
|
|
35806
|
-
if (!dashApi || !appId) return;
|
|
35807
|
-
var theme = generateRandomTheme();
|
|
35808
|
-
var key = theme.id;
|
|
35809
|
-
saveAndSelectTheme(key, theme);
|
|
35810
|
-
}
|
|
35811
35805
|
function handleCreateFromHarmony(theme) {
|
|
35812
35806
|
if (!dashApi || !appId) return;
|
|
35813
35807
|
var key = theme.id;
|
|
@@ -35891,43 +35885,6 @@ var ThemesSection = function ThemesSection(_ref) {
|
|
|
35891
35885
|
className: "text-xs opacity-50",
|
|
35892
35886
|
children: themeVariant === "dark" ? "Dark" : "Light"
|
|
35893
35887
|
})]
|
|
35894
|
-
}), dashApi && appId && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
35895
|
-
className: "flex flex-col gap-1 px-2 py-3 border-b ".concat(rowStyles.borderColor || ""),
|
|
35896
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
35897
|
-
className: "text-[10px] font-semibold opacity-30 uppercase tracking-wider px-2 pb-1",
|
|
35898
|
-
children: "Generate"
|
|
35899
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Sidebar.Item, {
|
|
35900
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
35901
|
-
icon: "swatchbook",
|
|
35902
|
-
className: "h-3 w-3"
|
|
35903
|
-
}),
|
|
35904
|
-
active: generateMode === GENERATE_MODES.PRESETS,
|
|
35905
|
-
onClick: function onClick() {
|
|
35906
|
-
setGenerateMode(GENERATE_MODES.PRESETS);
|
|
35907
|
-
setSelectedThemeKey(null);
|
|
35908
|
-
},
|
|
35909
|
-
className: generateMode === GENERATE_MODES.PRESETS ? "bg-white/10 opacity-100" : "",
|
|
35910
|
-
children: "From Presets"
|
|
35911
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Sidebar.Item, {
|
|
35912
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
35913
|
-
icon: "shuffle",
|
|
35914
|
-
className: "h-3 w-3"
|
|
35915
|
-
}),
|
|
35916
|
-
onClick: handleCreateFromRandom,
|
|
35917
|
-
children: "Random"
|
|
35918
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Sidebar.Item, {
|
|
35919
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
35920
|
-
icon: "droplet",
|
|
35921
|
-
className: "h-3 w-3"
|
|
35922
|
-
}),
|
|
35923
|
-
active: generateMode === GENERATE_MODES.COLOR,
|
|
35924
|
-
onClick: function onClick() {
|
|
35925
|
-
setGenerateMode(GENERATE_MODES.COLOR);
|
|
35926
|
-
setSelectedThemeKey(null);
|
|
35927
|
-
},
|
|
35928
|
-
className: generateMode === GENERATE_MODES.COLOR ? "bg-white/10 opacity-100" : "",
|
|
35929
|
-
children: "From Color"
|
|
35930
|
-
})]
|
|
35931
35888
|
}), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Sidebar.Content, {
|
|
35932
35889
|
children: [themeEntries.map(function (_ref4) {
|
|
35933
35890
|
var _ref5 = _slicedToArray(_ref4, 2),
|