@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 CHANGED
@@ -35783,12 +35783,6 @@ var ThemesSection = function ThemesSection(_ref) {
35783
35783
  saveAndSelectTheme(key, preset);
35784
35784
  setGenerateMode(GENERATE_MODES.NONE);
35785
35785
  }
35786
- function handleCreateFromRandom() {
35787
- if (!dashApi || !appId) return;
35788
- var theme = generateRandomTheme();
35789
- var key = theme.id;
35790
- saveAndSelectTheme(key, theme);
35791
- }
35792
35786
  function handleCreateFromHarmony(theme) {
35793
35787
  if (!dashApi || !appId) return;
35794
35788
  var key = theme.id;
@@ -35872,43 +35866,6 @@ var ThemesSection = function ThemesSection(_ref) {
35872
35866
  className: "text-xs opacity-50",
35873
35867
  children: themeVariant === "dark" ? "Dark" : "Light"
35874
35868
  })]
35875
- }), dashApi && appId && /*#__PURE__*/jsxs("div", {
35876
- className: "flex flex-col gap-1 px-2 py-3 border-b ".concat(rowStyles.borderColor || ""),
35877
- children: [/*#__PURE__*/jsx("span", {
35878
- className: "text-[10px] font-semibold opacity-30 uppercase tracking-wider px-2 pb-1",
35879
- children: "Generate"
35880
- }), /*#__PURE__*/jsx(Sidebar.Item, {
35881
- icon: /*#__PURE__*/jsx(FontAwesomeIcon, {
35882
- icon: "swatchbook",
35883
- className: "h-3 w-3"
35884
- }),
35885
- active: generateMode === GENERATE_MODES.PRESETS,
35886
- onClick: function onClick() {
35887
- setGenerateMode(GENERATE_MODES.PRESETS);
35888
- setSelectedThemeKey(null);
35889
- },
35890
- className: generateMode === GENERATE_MODES.PRESETS ? "bg-white/10 opacity-100" : "",
35891
- children: "From Presets"
35892
- }), /*#__PURE__*/jsx(Sidebar.Item, {
35893
- icon: /*#__PURE__*/jsx(FontAwesomeIcon, {
35894
- icon: "shuffle",
35895
- className: "h-3 w-3"
35896
- }),
35897
- onClick: handleCreateFromRandom,
35898
- children: "Random"
35899
- }), /*#__PURE__*/jsx(Sidebar.Item, {
35900
- icon: /*#__PURE__*/jsx(FontAwesomeIcon, {
35901
- icon: "droplet",
35902
- className: "h-3 w-3"
35903
- }),
35904
- active: generateMode === GENERATE_MODES.COLOR,
35905
- onClick: function onClick() {
35906
- setGenerateMode(GENERATE_MODES.COLOR);
35907
- setSelectedThemeKey(null);
35908
- },
35909
- className: generateMode === GENERATE_MODES.COLOR ? "bg-white/10 opacity-100" : "",
35910
- children: "From Color"
35911
- })]
35912
35869
  }), /*#__PURE__*/jsxs(Sidebar.Content, {
35913
35870
  children: [themeEntries.map(function (_ref4) {
35914
35871
  var _ref5 = _slicedToArray(_ref4, 2),