UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

17 lines (16 loc) 781 B
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details. v3.2.1 */ import { ref } from "lit-html/directives/ref.js"; import { nothing, html } from "lit-html"; import { safeClassMap } from "@arcgis/lumina"; const CSS = { validationContainer: "validation-container" }; const validationReference = () => { return; }; const Validation = ({ scale, status, id, icon, message, ref: ref$1 }) => html`<div class=${safeClassMap(CSS.validationContainer)} ${ref(ref$1 ? ref$1 : validationReference)}><calcite-input-message aria-live=polite .icon=${icon} id=${id ?? nothing} .scale=${scale} .status=${status}>${message}</calcite-input-message></div>`; export { Validation as V };