dk-plus
Version:
54 lines (53 loc) • 1.27 kB
JavaScript
import { DK_INPUT_STATUS as l, DK_INPUT_PERSONALITY_TYPE as i, DK_INPUT_TYPE as p } from "../../_tokens/component/index.js";
import { DK_SIZE as s } from "../../_tokens/public/index.js";
import { setStringProp as e, setBooleanProps as o, setFunction as t, setStringNumberProps as r } from "../../_utils/props/index.js";
const c = {
status: e(null, (n) => l.includes(n)),
labelText: e(),
personalityType: e(
null,
(n) => i.includes(n)
),
personality: o(),
border: e(),
align: e("left"),
onEnter: t(),
onPrependClick: t(),
onAppendClick: t(),
iconSize: r(),
textColor: e(),
borderRadius: r(),
fontSize: r(),
width: r(),
height: r(),
borderColor: e(),
focusBorderColor: e(),
hoverBorderColor: e(),
showPassword: o(),
prependText: e(),
appendText: e(),
prependIcon: e(),
appendIcon: e(),
appendBackground: e(),
appendColor: e(),
modelValue: r(),
type: e("text", (n) => p.includes(n)),
size: e(null, (n) => s.includes(n)),
disabled: o(),
clearable: o(),
readonly: o(),
placeholder: e(),
showLengthLimit: o(),
maxlength: e(),
minlength: e(),
showWordLimit: o(),
prefixIcon: e(),
suffixIcon: e(),
rows: r(),
maxRows: r(),
autosize: o(),
showLength: o()
};
export {
c as dkInputProps
};