UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 670 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{loadCalciteComponents as t}from"../../support/componentsUtils.js";import{tsx as o}from"../../support/widget.js";const e=()=>t({alert:()=>import("@esri/calcite-components/dist/components/calcite-alert")});function i({autoCloseDuration:t,bind:e,icon:i,kind:l,message:s,onClose:n,open:a,title:r,tooltip:p,topLayerDisabled:c}){return o("calcite-alert",{autoClose:!!t,autoCloseDuration:t??"medium",bind:e,icon:i,kind:l,label:r,open:a,slot:"alerts",topLayerDisabled:c,onCalciteAlertClose:n},o("div",{slot:"title",title:p},r),s?o("div",{slot:"message"},s):null)}export{i as Alert,e as loadAlertComponents};