UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

135 lines (131 loc) • 4 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 { componentsX } = require('../../globals/js/feature-flags'); const { prefix } = require('../../globals/js/settings'); module.exports = { default: 'large', context: { featureFlags: { componentsX, }, prefix, }, variants: [ { name: 'large', label: 'Normal search', notes: ` Search enables users to specify a word or a phrase to find particular relevant pieces of content without the use of navigation. Search can be used as the primary means of discovering content, or as a filter to aid the user in finding content. `, meta: { xVersionNotSupported: true, }, context: { suffix: 'lg', componentsX, }, }, { name: 'extra large', label: 'Extra large search', notes: ` Search enables users to specify a word or a phrase to find particular relevant pieces of content without the use of navigation. Search can be used as the primary means of discovering content, or as a filter to aid the user in finding content. `, meta: { xVersionNotSupported: true, }, context: { suffix: 'xl', componentsX, }, }, { name: 'extra large', label: 'Normal search', notes: ` Search enables users to specify a word or a phrase to find particular relevant pieces of content without the use of navigation. Search can be used as the primary means of discovering content, or as a filter to aid the user in finding content. `, meta: { xVersionOnly: true, }, context: { suffix: 'xl', componentsX, }, }, { name: 'small', label: 'Small search', notes: ` Search enables users to specify a word or a phrase to find particular relevant pieces of content without the use of navigation. Search can be used as the primary means of discovering content, or as a filter to aid the user in finding content. With the small version, the search field will be more compact. `, context: { suffix: 'sm', componentsX, }, }, { name: 'large-light', label: 'Normal search (Light)', notes: ` Search enables users to specify a word or a phrase to find particular relevant pieces of content without the use of navigation. Search can be used as the primary means of discovering content, or as a filter to aid the user in finding content. `, meta: { xVersionNotSupported: true, }, context: { suffix: 'lg', light: true, componentsX, }, }, { name: 'extra large light', label: 'Normal search (Light)', notes: ` Search enables users to specify a word or a phrase to find particular relevant pieces of content without the use of navigation. Search can be used as the primary means of discovering content, or as a filter to aid the user in finding content. `, meta: { xVersionOnly: true, }, context: { suffix: 'xl', light: true, componentsX, }, }, { name: 'small-light', label: 'Small search (Light)', notes: ` Search enables users to specify a word or a phrase to find particular relevant pieces of content without the use of navigation. Search can be used as the primary means of discovering content, or as a filter to aid the user in finding content. With the small version, the search field will be more compact. `, context: { suffix: 'sm', light: true, componentsX, }, }, ], };