@trops/dash-core 0.1.580 → 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.js CHANGED
@@ -38078,26 +38078,34 @@ var RandomPreview = function RandomPreview(_ref1) {
38078
38078
  }
38079
38079
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
38080
38080
  className: "flex flex-col gap-4 flex-1 min-h-0",
38081
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
38081
+ children: [/*#__PURE__*/jsxRuntime.jsx(HslNudgePanel, {
38082
+ dH: dH,
38083
+ dS: dS,
38084
+ dL: dL,
38085
+ onChange: function onChange(_ref10) {
38086
+ var h = _ref10.dH,
38087
+ s = _ref10.dS,
38088
+ l = _ref10.dL;
38089
+ setDH(h);
38090
+ setDS(s);
38091
+ setDL(l);
38092
+ }
38093
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
38082
38094
  className: "flex-1 min-h-0",
38083
- children: /*#__PURE__*/jsxRuntime.jsx(HslNudgePanel, {
38084
- dH: dH,
38085
- dS: dS,
38086
- dL: dL,
38087
- onChange: function onChange(_ref10) {
38088
- var h = _ref10.dH,
38089
- s = _ref10.dS,
38090
- l = _ref10.dL;
38091
- setDH(h);
38092
- setDS(s);
38093
- setDL(l);
38094
- }
38095
- })
38095
+ "aria-hidden": "true"
38096
38096
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
38097
38097
  className: "flex flex-col gap-2 shrink-0",
38098
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
38099
- className: "text-xs opacity-50",
38100
- children: "Generated Palette"
38098
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
38099
+ className: "flex flex-row items-center justify-between",
38100
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
38101
+ className: "text-xs opacity-50",
38102
+ children: "Generated Palette"
38103
+ }), /*#__PURE__*/jsxRuntime.jsx("button", {
38104
+ type: "button",
38105
+ onClick: handleRegenerate,
38106
+ className: "text-xs px-2 py-0.5 rounded bg-gray-700 text-gray-300 hover:bg-gray-600",
38107
+ children: "\u21BB Regenerate"
38108
+ })]
38101
38109
  }), previewTheme && /*#__PURE__*/jsxRuntime.jsxs("div", {
38102
38110
  className: "flex flex-row gap-2 h-20",
38103
38111
  children: [/*#__PURE__*/jsxRuntime.jsx(PaletteSwatch, {
@@ -38114,10 +38122,6 @@ var RandomPreview = function RandomPreview(_ref1) {
38114
38122
  label: "Neutral"
38115
38123
  })]
38116
38124
  })]
38117
- }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
38118
- title: "Regenerate",
38119
- onClick: handleRegenerate,
38120
- size: "sm"
38121
38125
  })]
38122
38126
  });
38123
38127
  };