fui-fancyui
Version:
FancyUI Libary
68 lines (67 loc) • 1.12 kB
JavaScript
import { jsx as r, Fragment as p } from "react/jsx-runtime";
import s from "../../../organisms/FancyNumberInput/FancyNumberInput.js";
const x = [
{
colorLetter: "a",
min: 0,
max: 1,
step: 0.01
},
{
colorLetter: "r",
min: 0,
max: 255,
step: 1
},
{
colorLetter: "g",
min: 0,
max: 255,
step: 1
},
{
colorLetter: "b",
min: 0,
max: 255,
step: 1
},
{
colorLetter: "h",
min: 0,
max: 360,
step: 1
},
{
colorLetter: "s",
min: 0,
max: 100,
step: 1
},
{
colorLetter: "l",
min: 0,
max: 100,
step: 1
}
];
function b(o) {
const { inputLetter: t, onChange: a, value: n, ariaLabel: m, themeType: i = "primary", layer: l = 0 } = o, e = x.find((c) => c.colorLetter === t);
return /* @__PURE__ */ r(p, { children: e && /* @__PURE__ */ r(
s,
{
align: "center",
themeType: i,
layer: l,
"aria-label": m,
name: t,
min: e.min,
max: e.max,
step: e.step,
value: n.toString(),
onChange: a
}
) });
}
export {
b as default
};