@trops/dash-core 0.1.582 → 0.1.584

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.js CHANGED
@@ -38090,19 +38090,15 @@ var RandomPreview = function RandomPreview(_ref1) {
38090
38090
  setDS(s);
38091
38091
  setDL(l);
38092
38092
  }
38093
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
38094
+ title: "\u21BB Regenerate Colors",
38095
+ onClick: handleRegenerate,
38096
+ block: true
38093
38097
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
38094
38098
  className: "flex flex-col gap-2 flex-1 min-h-0",
38095
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
38096
- className: "flex flex-row items-center justify-between shrink-0",
38097
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
38098
- className: "text-xs opacity-50",
38099
- children: "Generated Palette"
38100
- }), /*#__PURE__*/jsxRuntime.jsx("button", {
38101
- type: "button",
38102
- onClick: handleRegenerate,
38103
- className: "text-xs px-2 py-0.5 rounded bg-gray-700 text-gray-300 hover:bg-gray-600",
38104
- children: "\u21BB Regenerate"
38105
- })]
38099
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
38100
+ className: "text-xs opacity-50 shrink-0",
38101
+ children: "Generated Palette"
38106
38102
  }), previewTheme && /*#__PURE__*/jsxRuntime.jsxs("div", {
38107
38103
  className: "flex flex-row gap-2 flex-1 min-h-0",
38108
38104
  children: [/*#__PURE__*/jsxRuntime.jsx(PaletteSwatch, {
@@ -38257,12 +38253,9 @@ var ChooserCard = function ChooserCard(_ref) {
38257
38253
  var ThemeNewChooser = function ThemeNewChooser(_ref2) {
38258
38254
  var onSearchThemes = _ref2.onSearchThemes,
38259
38255
  onSelectMethod = _ref2.onSelectMethod;
38260
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
38256
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
38261
38257
  className: "flex flex-col gap-6 p-6 overflow-y-auto flex-1 min-h-0",
38262
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
38263
- className: "text-sm font-semibold opacity-50",
38264
- children: "Add a Theme"
38265
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
38258
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
38266
38259
  className: "grid grid-cols-2 gap-3",
38267
38260
  children: [/*#__PURE__*/jsxRuntime.jsx(ChooserCard, {
38268
38261
  icon: "magnifying-glass",
@@ -38298,7 +38291,7 @@ var ThemeNewChooser = function ThemeNewChooser(_ref2) {
38298
38291
  return onSelectMethod("from-url");
38299
38292
  }
38300
38293
  })]
38301
- })]
38294
+ })
38302
38295
  });
38303
38296
  };
38304
38297