@trops/dash-core 0.1.581 → 0.1.583

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,24 +38090,17 @@ var RandomPreview = function RandomPreview(_ref1) {
38090
38090
  setDS(s);
38091
38091
  setDL(l);
38092
38092
  }
38093
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
38094
- className: "flex-1 min-h-0",
38095
- "aria-hidden": "true"
38093
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
38094
+ title: "\u21BB Regenerate Colors",
38095
+ onClick: handleRegenerate,
38096
+ block: true
38096
38097
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
38097
- className: "flex flex-col gap-2 shrink-0",
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
- })]
38098
+ className: "flex flex-col gap-2 flex-1 min-h-0",
38099
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
38100
+ className: "text-xs opacity-50 shrink-0",
38101
+ children: "Generated Palette"
38109
38102
  }), previewTheme && /*#__PURE__*/jsxRuntime.jsxs("div", {
38110
- className: "flex flex-row gap-2 h-20",
38103
+ className: "flex flex-row gap-2 flex-1 min-h-0",
38111
38104
  children: [/*#__PURE__*/jsxRuntime.jsx(PaletteSwatch, {
38112
38105
  value: previewTheme.primary,
38113
38106
  label: "Primary"