UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

85 lines (83 loc) 1.99 kB
import { iconDictionary } from "../message/consts.js"; //#region src/notification/consts.ts /** Maps each intent to the icon props auto-injected when no explicit icon is provided. */ const INTENT_ICON_MAP = { info: { name: iconDictionary.info }, success: { name: iconDictionary.success }, danger: { name: iconDictionary.danger }, warning: { name: iconDictionary.warning } }; /** Icon props used when isLoading is true. */ const LOADING_ICON_PROPS = { name: "uiSpinnerThird", pathFill: ["blue.40", "blue.60"], variant: "spinning" }; const notificationStatusMapping = { danger: { iconProps: { name: iconDictionary.danger }, variant: "inline", intent: "danger" }, error: { iconProps: { name: iconDictionary.danger }, variant: "inline", intent: "danger" }, info: { iconProps: { name: iconDictionary.info }, variant: "inline", intent: "info" }, loading: { iconProps: LOADING_ICON_PROPS, variant: "inline", intent: "info", isLoading: true }, success: { iconProps: { name: iconDictionary.success }, variant: "inline", intent: "success" }, warning: { iconProps: { name: iconDictionary.warning }, variant: "inline", intent: "warning" }, bannerDanger: { iconProps: { name: iconDictionary.danger }, variant: "banner", intent: "danger" }, bannerError: { iconProps: { name: iconDictionary.danger }, variant: "banner", intent: "danger" }, bannerInfo: { iconProps: { name: iconDictionary.info }, variant: "banner", intent: "info" }, bannerLoading: { iconProps: LOADING_ICON_PROPS, variant: "banner", intent: "info", isLoading: true }, bannerSuccess: { iconProps: { name: iconDictionary.success }, variant: "banner", intent: "success" }, bannerWarning: { iconProps: { name: iconDictionary.warning }, variant: "banner", intent: "warning" } }; //#endregion export { INTENT_ICON_MAP, LOADING_ICON_PROPS, notificationStatusMapping }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=consts.js.map