UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

18 lines (17 loc) 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ToastBody = exports.toastBodyStencil = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const common_1 = require("@workday/canvas-kit-react/common"); const layout_1 = require("@workday/canvas-kit-react/layout"); const canvas_kit_styling_1 = require("@workday/canvas-kit-styling"); const canvas_tokens_web_1 = require("@workday/canvas-tokens-web"); exports.toastBodyStencil = (0, canvas_kit_styling_1.createStencil)({ base: { name: "jir3s", styles: "box-sizing:border-box;align-items:flex-start;flex-direction:column;justify-content:center;padding-top:var(--cnvs-sys-space-x4);padding-bottom:var(--cnvs-sys-space-x4);flex-grow:1;gap:var(--cnvs-sys-space-x1);" } }, "toast-body-ac2901"); exports.ToastBody = (0, common_1.createComponent)('div')({ displayName: 'Toast.Body', Component: ({ children, ...elemProps }, ref, Element) => { return ((0, jsx_runtime_1.jsx)(layout_1.Flex, { ref: ref, as: Element, ...(0, layout_1.mergeStyles)(elemProps, (0, exports.toastBodyStencil)()), children: children })); }, });