UNPKG

@achs/webkit

Version:

Conjunto de componentes de UI con el estilo del Sistema de Diseño ACHS (Asociación Chilena de Seguridad), para reutilizar de forma transversal en las aplicaciones web de ACHS. Construido con **React 19**, **TypeScript** y **Vite**, con soporte para las

30 lines (29 loc) 1.07 kB
import { jsxs as f, jsx as s } from "react/jsx-runtime"; import { forwardRef as u } from "react"; import e from "./input.module.scss.mjs"; import '../../../assets/node_modules/.pnpm/bootstrap-icons@1.13.1/node_modules/bootstrap-icons/font/bootstrap-icons.css';/* empty css */ const d = u(({ status: i = "default", iconClassName: t, iconColor: l, ...r }, a) => { const n = () => t ? `bi ${t}` : r.disabled ? "bi bi-exclamation-circle-fill" : i === "error" ? "bi bi-x-circle-fill" : i === "success" ? "bi bi-check-circle-fill" : ""; let c = {}; return l && (c = { "--icon-color": l }), /* @__PURE__ */ f("div", { className: e.inputWrapper, style: c, children: [ /* @__PURE__ */ s( "input", { ...r, ref: a, className: `${e.input} ${r.className ?? ""}`.trim(), "data-status": i } ), /* @__PURE__ */ s("span", { className: `${e.icon} ${n()}` }) ] }); }); export { d as Input, d as default };