How to use the figures.radioOn function in figures

To help you get started, we’ve selected a few figures examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nuxt-community / nuxt-generate-cluster / lib / utils / consola.js View on Github external
// Delete the global.consola set by consola self
  delete global.consola
}

let consola = global.consola // eslint-disable-line import/no-mutable-exports

if (!consola) {
  consola = _consola.create({
    level: env.debug ? 5 : 3,
    types: {
      ..._consola._types,
      ...{
        cluster: {
          level: 4,
          color: 'blue',
          icon: chalk.magenta(figures.radioOn)
        },
        master: {
          level: 2,
          color: 'blue',
          icon: chalk.cyan(figures.info)
        },
        debug: {
          level: 5,
          color: 'grey'
        },
        trace: {
          level: 6,
          color: 'white'
        }
      }
    }
github SBoudrias / Inquirer.js / packages / inquirer / lib / prompts / checkbox.js View on Github external
function getCheckbox(checked) {
  return checked ? chalk.green(figures.radioOn) : figures.radioOff;
}
github sx1989827 / DOClever / node_modules / inquirer / lib / prompts / checkbox.js View on Github external
function getCheckbox(checked) {
  return checked ? chalk.green(figures.radioOn) : figures.radioOff;
}
github dylang / npm-check / lib / prompts / alt-checkbox.js View on Github external
function getCheckbox(checked) {
  return checked ? chalk.green(figures.radioOn) : figures.radioOff;
}
github faressoft / inquirer-checkbox-plus-prompt / index.js View on Github external
getCheckboxFigure(checked) {

    return checked ? chalk.green(figures.radioOn) : figures.radioOff;

  }
github derhuerst / sms-cli / ui.js View on Github external
renderStatus: function () {
		const l = this.messages.length
		return [
			  this.loading ? figures.radioOn : figures.radioOff
			, this.error ? chalk.red(this.error) : null
			, chalk.gray(['no messages', '1 message'][l] || `${l} messages`)
			, chalk.gray(this.number)
		].filter((s) => !!s).join(' ')
	},
github microsoft / vscode-mssql / src / prompts / checkbox.ts View on Github external
let choices = this._question.choices.reduce((result, choice) => {
            let choiceName = choice.name || choice;
            result[`${choice.checked === true ? figures.radioOn : figures.radioOff} ${choiceName}`] = choice;
            return result;
        }, {});
github SamVerschueren / vscode-yo / src / prompts / checkbox.ts View on Github external
let choices = this._question.choices.reduce((result, choice) => {
			result[`${choice.checked === true ? figures.radioOn : figures.radioOff} ${choice.name}`] = choice;
			return result;
		}, {});
github prisma / prisma2 / cli / ink-components / src / components / RadioButton.tsx View on Github external
onKey(key: Key) {
        if (key.name === 'space') {
          onChange(value)
        }
      },
    }
    ctx.register(args)
    return () => {
      ctx.unregister(args)
    }
  })

  return (
    
      
        {checked ? figures.radioOn : figures.radioOff} {label.padEnd(20)}
        
          {props.description ? props.description.padEnd(20) : ''}
        
      
    
  )
}
github JonnyBurger / make-space / src / helpers / ink-checkbox-list / list.js View on Github external
checkedCharacter={checkedCharacter}
								uncheckedCharacter={uncheckedCharacter}
								disabled={item.disabled}
							/>
							{item.content}
						
					);
				})}
			
		);
	}
}

List.defaultProps = {
	cursorCharacter: figures.pointer,
	checkedCharacter: figures.radioOn,
	uncheckedCharacter: figures.radioOff
};

module.exports = List;