UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

16 lines (15 loc) 908 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createComponent } from '@workday/canvas-kit-react/common'; import { mergeStyles } from '@workday/canvas-kit-react/layout'; import { Popup } from '@workday/canvas-kit-react/popup'; import { createStencil } from '@workday/canvas-kit-styling'; import { base } from '@workday/canvas-tokens-web'; export const toastCloseIconStencil = createStencil({ base: { name: "1b8mgk", styles: "box-sizing:border-box;position:absolute;inset-block-start:var(--cnvs-base-size-50, 0.25rem);inset-inline-end:var(--cnvs-base-size-50, 0.25rem);" } }, "toast-close-icon-05fbc5"); export const ToastCloseIcon = createComponent('button')({ displayName: 'Toast.CloseIcon', Component: (elemProps, ref, Element) => { return (_jsx(Popup.CloseIcon, { as: Element, ref: ref, size: "extraSmall", ...mergeStyles(elemProps, toastCloseIconStencil()) })); }, });