@trops/dash-core 0.1.580 → 0.1.582

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
@@ -38060,28 +38060,33 @@ var RandomPreview = function RandomPreview(_ref1) {
38060
38060
  }
38061
38061
  return /*#__PURE__*/jsxs("div", {
38062
38062
  className: "flex flex-col gap-4 flex-1 min-h-0",
38063
- children: [/*#__PURE__*/jsx("div", {
38064
- className: "flex-1 min-h-0",
38065
- children: /*#__PURE__*/jsx(HslNudgePanel, {
38066
- dH: dH,
38067
- dS: dS,
38068
- dL: dL,
38069
- onChange: function onChange(_ref10) {
38070
- var h = _ref10.dH,
38071
- s = _ref10.dS,
38072
- l = _ref10.dL;
38073
- setDH(h);
38074
- setDS(s);
38075
- setDL(l);
38076
- }
38077
- })
38063
+ children: [/*#__PURE__*/jsx(HslNudgePanel, {
38064
+ dH: dH,
38065
+ dS: dS,
38066
+ dL: dL,
38067
+ onChange: function onChange(_ref10) {
38068
+ var h = _ref10.dH,
38069
+ s = _ref10.dS,
38070
+ l = _ref10.dL;
38071
+ setDH(h);
38072
+ setDS(s);
38073
+ setDL(l);
38074
+ }
38078
38075
  }), /*#__PURE__*/jsxs("div", {
38079
- className: "flex flex-col gap-2 shrink-0",
38080
- children: [/*#__PURE__*/jsx("span", {
38081
- className: "text-xs opacity-50",
38082
- children: "Generated Palette"
38076
+ 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
+ })]
38083
38088
  }), previewTheme && /*#__PURE__*/jsxs("div", {
38084
- className: "flex flex-row gap-2 h-20",
38089
+ className: "flex flex-row gap-2 flex-1 min-h-0",
38085
38090
  children: [/*#__PURE__*/jsx(PaletteSwatch, {
38086
38091
  value: previewTheme.primary,
38087
38092
  label: "Primary"
@@ -38096,10 +38101,6 @@ var RandomPreview = function RandomPreview(_ref1) {
38096
38101
  label: "Neutral"
38097
38102
  })]
38098
38103
  })]
38099
- }), /*#__PURE__*/jsx(Button, {
38100
- title: "Regenerate",
38101
- onClick: handleRegenerate,
38102
- size: "sm"
38103
38104
  })]
38104
38105
  });
38105
38106
  };