UNPKG

atom-nuclide

Version:

A unified developer experience for web and mobile development, built as a suite of features on top of Atom to provide hackability and the support of an active community.

101 lines (91 loc) 2.65 kB
Object.defineProperty(exports, '__esModule', { value: true }); /* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ var _reactForAtom2; function _reactForAtom() { return _reactForAtom2 = require('react-for-atom'); } var _Block2; function _Block() { return _Block2 = require('./Block'); } var _Checkbox2; function _Checkbox() { return _Checkbox2 = require('./Checkbox'); } var NOOP = function NOOP() {}; var CheckboxExample = function CheckboxExample() { return (_reactForAtom2 || _reactForAtom()).React.createElement( 'div', null, (_reactForAtom2 || _reactForAtom()).React.createElement( (_Block2 || _Block()).Block, null, (_reactForAtom2 || _reactForAtom()).React.createElement((_Checkbox2 || _Checkbox()).Checkbox, { checked: false, onClick: NOOP, onChange: NOOP, label: 'A Checkbox.' }) ), (_reactForAtom2 || _reactForAtom()).React.createElement( (_Block2 || _Block()).Block, null, (_reactForAtom2 || _reactForAtom()).React.createElement((_Checkbox2 || _Checkbox()).Checkbox, { onClick: NOOP, onChange: NOOP, checked: true, label: 'A checked Checkbox.' }) ), (_reactForAtom2 || _reactForAtom()).React.createElement( (_Block2 || _Block()).Block, null, (_reactForAtom2 || _reactForAtom()).React.createElement((_Checkbox2 || _Checkbox()).Checkbox, { onClick: NOOP, onChange: NOOP, disabled: true, checked: false, label: 'A disabled Checkbox.' }) ), (_reactForAtom2 || _reactForAtom()).React.createElement( (_Block2 || _Block()).Block, null, (_reactForAtom2 || _reactForAtom()).React.createElement((_Checkbox2 || _Checkbox()).Checkbox, { onClick: NOOP, onChange: NOOP, checked: true, disabled: true, label: 'A disabled, checked Checkbox.' }) ), (_reactForAtom2 || _reactForAtom()).React.createElement( (_Block2 || _Block()).Block, null, (_reactForAtom2 || _reactForAtom()).React.createElement((_Checkbox2 || _Checkbox()).Checkbox, { onClick: NOOP, onChange: NOOP, indeterminate: true, checked: false, label: 'An indeterminate Checkbox.' }) ) ); }; var CheckboxExamples = { sectionName: 'Checkbox', description: '', examples: [{ title: '', component: CheckboxExample }] }; exports.CheckboxExamples = CheckboxExamples;