@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 +25 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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(
|
|
38064
|
-
|
|
38065
|
-
|
|
38066
|
-
|
|
38067
|
-
|
|
38068
|
-
|
|
38069
|
-
|
|
38070
|
-
|
|
38071
|
-
|
|
38072
|
-
|
|
38073
|
-
|
|
38074
|
-
|
|
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
|
|
38080
|
-
children: [/*#__PURE__*/
|
|
38081
|
-
className: "
|
|
38082
|
-
children: "
|
|
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-
|
|
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
|
};
|