UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

26 lines (25 loc) 856 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 { l as logger } from "./logger.js"; function getIconScale(componentScale) { return componentScale === "l" ? "m" : "s"; } function warnIfMissingRequiredProp(component, newProp, deprecatedProp) { if (!component[newProp] && !component[deprecatedProp]) { logger.warn(`[${component.el.localName}] "${newProp.toString()}" or "${deprecatedProp.toString()}" is required.`); } } function isHidden(el) { return el.hidden || el.itemHidden; } async function componentFocusable(component) { await component.componentOnReady(); await component.updateComplete; } export { componentFocusable as c, getIconScale as g, isHidden as i, warnIfMissingRequiredProp as w };