@@ -6913,9 +6913,9 @@ var Tree = function (_React$Component) {
69136913 key: key,
69146914 checked: checked,
69156915 expanded: node.expanded,
6916+ label: node.label || node.title,
69166917 optimisticToggle: _this6.props.optimisticToggle,
69176918 rawChildren: node.children,
6918- title: node.title,
69196919 treeId: _this6.id,
69206920 value: node.value,
69216921 onCheck: _this6.onCheck,
@@ -9777,62 +9777,62 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
97779777
97789778var nodes = [{
97799779 value: '/app',
9780- title : 'app',
9780+ label : 'app',
97819781 children: [{
97829782 value: '/app/Http',
9783- title : 'Http',
9783+ label : 'Http',
97849784 children: [{
97859785 value: '/app/Http/Controllers',
9786- title : 'Controllers',
9786+ label : 'Controllers',
97879787 children: [{
97889788 value: '/app/Http/Controllers/WelcomeController.js',
9789- title : 'WelcomeController.js'
9789+ label : 'WelcomeController.js'
97909790 }]
97919791 }, {
97929792 value: '/app/Http/routes.js',
9793- title : 'routes.js'
9793+ label : 'routes.js'
97949794 }]
97959795 }, {
97969796 value: '/app/Providers',
9797- title : 'Providers',
9797+ label : 'Providers',
97989798 children: [{
97999799 value: '/app/Http/Providers/EventServiceProvider.js',
9800- title : 'EventServiceProvider.js'
9800+ label : 'EventServiceProvider.js'
98019801 }]
98029802 }]
98039803}, {
98049804 value: '/config',
9805- title : 'config',
9805+ label : 'config',
98069806 children: [{
98079807 value: '/config/app.js',
9808- title : 'app.js'
9808+ label : 'app.js'
98099809 }, {
98109810 value: '/config/database.js',
9811- title : 'database.js'
9811+ label : 'database.js'
98129812 }]
98139813}, {
98149814 value: '/public',
9815- title : 'public',
9815+ label : 'public',
98169816 children: [{
98179817 value: '/public/assets/',
9818- title : 'assets',
9818+ label : 'assets',
98199819 children: [{
98209820 value: '/public/assets/style.css',
9821- title : 'style.css'
9821+ label : 'style.css'
98229822 }]
98239823 }, {
98249824 value: '/public/index.html',
9825- title : 'index.html'
9825+ label : 'index.html'
98269826 }]
98279827}, {
98289828 value: '/.env',
9829- title : '.env'
9829+ label : '.env'
98309830}, {
98319831 value: '/.gitignore',
9832- title : '.gitignore'
9832+ label : '.gitignore'
98339833}, {
98349834 value: '/README.md',
9835- title : 'README.md'
9835+ label : 'README.md'
98369836}];
98379837
98389838var BasicExample = function (_React$Component) {
@@ -9918,62 +9918,62 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
99189918
99199919var nodes = [{
99209920 value: '/app',
9921- title : 'app',
9921+ label : 'app',
99229922 children: [{
99239923 value: '/app/Http',
9924- title : 'Http',
9924+ label : 'Http',
99259925 children: [{
99269926 value: '/app/Http/Controllers',
9927- title : 'Controllers',
9927+ label : 'Controllers',
99289928 children: [{
99299929 value: '/app/Http/Controllers/WelcomeController.js',
9930- title : 'WelcomeController.js'
9930+ label : 'WelcomeController.js'
99319931 }]
99329932 }, {
99339933 value: '/app/Http/routes.js',
9934- title : 'routes.js'
9934+ label : 'routes.js'
99359935 }]
99369936 }, {
99379937 value: '/app/Providers',
9938- title : 'Providers',
9938+ label : 'Providers',
99399939 children: [{
99409940 value: '/app/Http/Providers/EventServiceProvider.js',
9941- title : 'EventServiceProvider.js'
9941+ label : 'EventServiceProvider.js'
99429942 }]
99439943 }]
99449944}, {
99459945 value: '/config',
9946- title : 'config',
9946+ label : 'config',
99479947 children: [{
99489948 value: '/config/app.js',
9949- title : 'app.js'
9949+ label : 'app.js'
99509950 }, {
99519951 value: '/config/database.js',
9952- title : 'database.js'
9952+ label : 'database.js'
99539953 }]
99549954}, {
99559955 value: '/public',
9956- title : 'public',
9956+ label : 'public',
99579957 children: [{
99589958 value: '/public/assets/',
9959- title : 'assets',
9959+ label : 'assets',
99609960 children: [{
99619961 value: '/public/assets/style.css',
9962- title : 'style.css'
9962+ label : 'style.css'
99639963 }]
99649964 }, {
99659965 value: '/public/index.html',
9966- title : 'index.html'
9966+ label : 'index.html'
99679967 }]
99689968}, {
99699969 value: '/.env',
9970- title : '.env'
9970+ label : '.env'
99719971}, {
99729972 value: '/.gitignore',
9973- title : '.gitignore'
9973+ label : '.gitignore'
99749974}, {
99759975 value: '/README.md',
9976- title : 'README.md'
9976+ label : 'README.md'
99779977}];
99789978
99799979var PessimisticToggleExample = function (_React$Component) {
@@ -10164,7 +10164,7 @@ var TreeNode = function (_React$Component) {
1016410164 var _props = this.props;
1016510165 var checked = _props.checked;
1016610166 var treeId = _props.treeId;
10167- var title = _props.title ;
10167+ var label = _props.label ;
1016810168 var value = _props.value;
1016910169
1017010170 var inputId = treeId + '-' + value;
@@ -10196,8 +10196,8 @@ var TreeNode = function (_React$Component) {
1019610196 ),
1019710197 _react2.default.createElement(
1019810198 'span',
10199- { className: 'rct-title ' },
10200- title
10199+ { className: 'rct-label ' },
10200+ label
1020110201 )
1020210202 )
1020310203 ),
@@ -10212,8 +10212,8 @@ var TreeNode = function (_React$Component) {
1021210212TreeNode.propTypes = {
1021310213 checked: _react2.default.PropTypes.number.isRequired,
1021410214 expanded: _react2.default.PropTypes.bool.isRequired,
10215+ label: _react2.default.PropTypes.string.isRequired,
1021510216 optimisticToggle: _react2.default.PropTypes.bool.isRequired,
10216- title: _react2.default.PropTypes.string.isRequired,
1021710217 treeId: _react2.default.PropTypes.string.isRequired,
1021810218 value: _react2.default.PropTypes.string.isRequired,
1021910219 onCheck: _react2.default.PropTypes.func.isRequired,
0 commit comments