UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

19 lines (18 loc) 976 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BannerLabel = exports.bannerLabelStencil = 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 hooks_1 = require("./hooks"); exports.bannerLabelStencil = (0, canvas_kit_styling_1.createStencil)({ base: { name: "3ei9pi", styles: "box-sizing:border-box;display:flex;flex:1 1 0%;" } }, "banner-label-416ec4"); exports.BannerLabel = (0, common_1.createSubcomponent)('div')({ displayName: 'Banner.Label', modelHook: hooks_1.useBannerModel, elemPropsHook: hooks_1.useBannerLabel, })(({ children, ...elemProps }, Element) => { return (0, jsx_runtime_1.jsx)(Element, { ...(0, layout_1.mergeStyles)(elemProps, (0, exports.bannerLabelStencil)()), children: children }); });