UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

21 lines (20 loc) 991 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createSubcomponent } from '@workday/canvas-kit-react/common'; import { mergeStyles } from '@workday/canvas-kit-react/layout'; import { useBannerActionText, useBannerModel } from './hooks'; import { createStencil } from '@workday/canvas-kit-styling'; export const actionBarTextStencil = createStencil({ base: { name: "20ewa3", styles: "box-sizing:border-box;text-decoration:underline;display:inline;" }, modifiers: { isSticky: { true: { name: "301da3", styles: "display:none;" } } } }, "action-bar-text-c1912f"); export const BannerActionText = createSubcomponent('span')({ displayName: 'Banner.ActionTextText', modelHook: useBannerModel, elemPropsHook: useBannerActionText, })(({ children = 'View All', ...elemProps }, Element, model) => { return (_jsx(Element, { ...mergeStyles(elemProps, actionBarTextStencil({ isSticky: model.state.isSticky })), children: children })); });