@trops/dash-core 0.1.579 → 0.1.581

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
@@ -34881,7 +34881,7 @@ var CustomHexColorPane = function CustomHexColorPane(_ref) {
34881
34881
  }
34882
34882
  }
34883
34883
  return /*#__PURE__*/jsxs("div", {
34884
- className: "flex flex-col gap-2 p-3 border-t border-gray-700",
34884
+ className: "flex flex-col gap-2 py-3 border-t border-gray-700",
34885
34885
  children: [/*#__PURE__*/jsx("span", {
34886
34886
  className: "text-xs uppercase font-bold tracking-wider text-gray-400",
34887
34887
  children: label
@@ -38060,26 +38060,34 @@ 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", {
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
+ }
38075
+ }), /*#__PURE__*/jsx("div", {
38064
38076
  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
- })
38077
+ "aria-hidden": "true"
38078
38078
  }), /*#__PURE__*/jsxs("div", {
38079
38079
  className: "flex flex-col gap-2 shrink-0",
38080
- children: [/*#__PURE__*/jsx("span", {
38081
- className: "text-xs opacity-50",
38082
- children: "Generated Palette"
38080
+ children: [/*#__PURE__*/jsxs("div", {
38081
+ className: "flex flex-row items-center justify-between",
38082
+ children: [/*#__PURE__*/jsx("span", {
38083
+ className: "text-xs opacity-50",
38084
+ children: "Generated Palette"
38085
+ }), /*#__PURE__*/jsx("button", {
38086
+ type: "button",
38087
+ onClick: handleRegenerate,
38088
+ className: "text-xs px-2 py-0.5 rounded bg-gray-700 text-gray-300 hover:bg-gray-600",
38089
+ children: "\u21BB Regenerate"
38090
+ })]
38083
38091
  }), previewTheme && /*#__PURE__*/jsxs("div", {
38084
38092
  className: "flex flex-row gap-2 h-20",
38085
38093
  children: [/*#__PURE__*/jsx(PaletteSwatch, {
@@ -38096,10 +38104,6 @@ var RandomPreview = function RandomPreview(_ref1) {
38096
38104
  label: "Neutral"
38097
38105
  })]
38098
38106
  })]
38099
- }), /*#__PURE__*/jsx(Button, {
38100
- title: "Regenerate",
38101
- onClick: handleRegenerate,
38102
- size: "sm"
38103
38107
  })]
38104
38108
  });
38105
38109
  };