UNPKG

@undp/design-system-react

Version:

React based design system for UNDP

2 lines 1.12 kB
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./utils-Dd9-5CFr.cjs"),n=require("./dist-BZMXZCSu.cjs");let r=require("react");r=e.r(r,1);let i=require("react/jsx-runtime");var a=n.t(`w-full h-auto bg-background rounded-base text-content-primary text-base transition-colors file:border-0 file:bg-transparent file:font-regular file:text-content-primary focus-visible:outline-hidden focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-disabled placeholder:text-content-placeholder`,{variants:{variant:{light:`border border-stroke`,normal:`border-2 border-foreground`},rounded:{base:`rounded`,sm:`rounded-sm`,md:`rounded-md`,lg:`rounded-lg`,xl:`rounded-xl`,"2xl":`rounded-2xl`,full:`rounded-full`},inputSize:{sm:`px-2.5 py-1`,base:`p-2.5`}},defaultVariants:{inputSize:`base`,variant:`normal`,rounded:`base`}}),o=r.default.forwardRef(({className:e,inputSize:n,variant:r,...o},s)=>(0,i.jsx)(`input`,{...o,ref:s,className:t.t(a({inputSize:n,variant:r}),e)}));o.displayName=`Input`,exports.Input=o; //# sourceMappingURL=Input.cjs.map