@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.esm.js +25 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
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__*/
|
|
38081
|
-
className: "
|
|
38082
|
-
children: "
|
|
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
|
};
|