UNPKG

@workday/canvas-kit-preview-react

Version:

Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.

24 lines (23 loc) 1.4 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.StatusIndicatorLabel = void 0; const react_1 = __importDefault(require("react")); const common_1 = require("@workday/canvas-kit-react/common"); const text_1 = require("@workday/canvas-kit-react/text"); const canvas_kit_styling_1 = require("@workday/canvas-kit-styling"); const layout_1 = require("@workday/canvas-kit-react/layout"); const canvas_tokens_web_1 = require("@workday/canvas-tokens-web"); const statusIndicatorLabelStencil = (0, canvas_kit_styling_1.createStencil)({ extends: text_1.textStencil, base: { name: "nzjw1f", styles: "box-sizing:border-box;font-weight:var(--cnvs-sys-font-weight-bold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;color:inherit;" }, defaultModifiers: { typeLevel: 'subtext.large' } }, "status-indicator-label-fbd39a"); exports.StatusIndicatorLabel = (0, common_1.createComponent)('span')({ displayName: 'StatusIndicator.Label', Component: ({ children, typeLevel, ...elemProps }, ref, Element) => { return (react_1.default.createElement(Element, { ref: ref, ...(0, layout_1.mergeStyles)(elemProps, statusIndicatorLabelStencil({ typeLevel })) }, children)); }, });