@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.esm.js CHANGED
@@ -38072,19 +38072,15 @@ var RandomPreview = function RandomPreview(_ref1) {
38072
38072
  setDS(s);
38073
38073
  setDL(l);
38074
38074
  }
38075
+ }), /*#__PURE__*/jsx(Button, {
38076
+ title: "\u21BB Regenerate Colors",
38077
+ onClick: handleRegenerate,
38078
+ block: true
38075
38079
  }), /*#__PURE__*/jsxs("div", {
38076
38080
  className: "flex flex-col gap-2 flex-1 min-h-0",
38077
- children: [/*#__PURE__*/jsxs("div", {
38078
- className: "flex flex-row items-center justify-between shrink-0",
38079
- children: [/*#__PURE__*/jsx("span", {
38080
- className: "text-xs opacity-50",
38081
- children: "Generated Palette"
38082
- }), /*#__PURE__*/jsx("button", {
38083
- type: "button",
38084
- onClick: handleRegenerate,
38085
- className: "text-xs px-2 py-0.5 rounded bg-gray-700 text-gray-300 hover:bg-gray-600",
38086
- children: "\u21BB Regenerate"
38087
- })]
38081
+ children: [/*#__PURE__*/jsx("span", {
38082
+ className: "text-xs opacity-50 shrink-0",
38083
+ children: "Generated Palette"
38088
38084
  }), previewTheme && /*#__PURE__*/jsxs("div", {
38089
38085
  className: "flex flex-row gap-2 flex-1 min-h-0",
38090
38086
  children: [/*#__PURE__*/jsx(PaletteSwatch, {
@@ -38239,12 +38235,9 @@ var ChooserCard = function ChooserCard(_ref) {
38239
38235
  var ThemeNewChooser = function ThemeNewChooser(_ref2) {
38240
38236
  var onSearchThemes = _ref2.onSearchThemes,
38241
38237
  onSelectMethod = _ref2.onSelectMethod;
38242
- return /*#__PURE__*/jsxs("div", {
38238
+ return /*#__PURE__*/jsx("div", {
38243
38239
  className: "flex flex-col gap-6 p-6 overflow-y-auto flex-1 min-h-0",
38244
- children: [/*#__PURE__*/jsx("span", {
38245
- className: "text-sm font-semibold opacity-50",
38246
- children: "Add a Theme"
38247
- }), /*#__PURE__*/jsxs("div", {
38240
+ children: /*#__PURE__*/jsxs("div", {
38248
38241
  className: "grid grid-cols-2 gap-3",
38249
38242
  children: [/*#__PURE__*/jsx(ChooserCard, {
38250
38243
  icon: "magnifying-glass",
@@ -38280,7 +38273,7 @@ var ThemeNewChooser = function ThemeNewChooser(_ref2) {
38280
38273
  return onSelectMethod("from-url");
38281
38274
  }
38282
38275
  })]
38283
- })]
38276
+ })
38284
38277
  });
38285
38278
  };
38286
38279