UNPKG

@pmwcs/base

Version:
23 lines (18 loc) 790 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataTableHeadContext = exports.DataTableContext = void 0; var _preact = require("preact"); /** * This module is exported from base so it doesn't create a dependency on data table to modules that might consume it */ /** Are we inside of a data table */ var DataTableContext = (0, _preact.createContext)(false); /** * Context to allow us to let our rows in the header know to use the right classes. * This method is being used to avoid a breaking change from PMWCS to MDC tables and also to inform other components of styles needed. */ exports.DataTableContext = DataTableContext; var DataTableHeadContext = (0, _preact.createContext)(false); exports.DataTableHeadContext = DataTableHeadContext;