UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

18 lines (17 loc) 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseTableCell = exports.baseTableCellStencil = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const layout_1 = require("@workday/canvas-kit-react/layout"); const common_1 = require("@workday/canvas-kit-react/common"); const canvas_kit_styling_1 = require("@workday/canvas-kit-styling"); const canvas_tokens_web_1 = require("@workday/canvas-tokens-web"); exports.baseTableCellStencil = (0, canvas_kit_styling_1.createStencil)({ base: { name: "2f3l23", styles: "box-sizing:border-box;align-items:center;background-color:var(--cnvs-sys-color-bg-default);border-bottom:0.0625rem solid var(--cnvs-sys-color-border-divider);grid-template-columns:1fr;justify-content:start;min-height:3.5rem;padding:var(--cnvs-sys-space-x2) var(--cnvs-sys-space-x4);word-break:break-word;" } }, "base-table-cell-c0b491"); exports.BaseTableCell = (0, common_1.createComponent)('td')({ displayName: 'Table.Cell', Component: ({ children, ...elemProps }, ref, Element) => { return ((0, jsx_runtime_1.jsx)(Element, { ref: ref, ...(0, layout_1.mergeStyles)(elemProps, (0, exports.baseTableCellStencil)()), children: children })); }, });