UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

18 lines (17 loc) 990 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ToastIcon = exports.toastIconStencil = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const common_1 = require("@workday/canvas-kit-react/common"); const icon_1 = require("@workday/canvas-kit-react/icon"); const canvas_kit_styling_1 = require("@workday/canvas-kit-styling"); const canvas_tokens_web_1 = require("@workday/canvas-tokens-web"); exports.toastIconStencil = (0, canvas_kit_styling_1.createStencil)({ base: { name: "1l5gvh", styles: "box-sizing:border-box;align-self:start;margin:var(--cnvs-sys-space-x4) var(--cnvs-sys-space-x3);" } }, "toast-icon-22b05a"); exports.ToastIcon = (0, common_1.createComponent)('div')({ displayName: 'Toast.Icon', Component: (elemProps, ref, Element) => { return (0, jsx_runtime_1.jsx)(icon_1.SystemIcon, { ref: ref, as: Element, ...(0, canvas_kit_styling_1.handleCsProp)(elemProps, (0, exports.toastIconStencil)()) }); }, });