UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

119 lines (114 loc) 2.02 kB
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const featureFlags = require('../../globals/js/feature-flags'); const { prefix } = require('../../globals/js/settings'); const { componentsX } = require('../../globals/js/feature-flags'); const tags = !componentsX ? [ { type: 'ibm', label: 'IBM', }, { type: 'beta', label: 'Beta', }, { type: 'third-party', label: 'Third-Party', }, { type: 'local', label: 'Local', }, { type: 'dedicated', label: 'Dedicated', }, { type: 'custom', label: 'Custom', }, { type: 'experimental', label: 'Experimental', }, { type: 'community', label: 'Community', }, { type: 'private', label: 'Private', }, ] : [ { type: 'red', label: 'Red', }, { type: 'magenta', label: 'Magenta', }, { type: 'purple', label: 'Purple', }, { type: 'blue', label: 'Blue', }, { type: 'cyan', label: 'Cyan', }, { type: 'teal', label: 'Teal', }, { type: 'green', label: 'Green', }, { type: 'gray', label: 'Gray', }, { type: 'cool-gray', label: 'Cool-Gray', }, { type: 'warm-gray', label: 'Warm-Gray', }, ]; module.exports = { context: { featureFlags, prefix, }, variants: [ { name: 'default', label: 'Tag', context: { tags, componentsX, }, }, { name: 'filter', label: 'Tag (filter)', context: { filter: true, }, }, ], };