You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.3 KiB
1 line
5.3 KiB
10 years ago
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-bootstrap/lib/Button"),require("react-bootstrap/lib/MenuItem"),require("react-bootstrap/lib/NavItem"),require("react-bootstrap/lib/ListGroupItem")):"function"==typeof define&&define.amd?define(["react","react-bootstrap/lib/Button","react-bootstrap/lib/MenuItem","react-bootstrap/lib/NavItem","react-bootstrap/lib/ListGroupItem"],e):"object"==typeof exports?exports.ReactRouterBootstrap=e(require("react"),require("react-bootstrap/lib/Button"),require("react-bootstrap/lib/MenuItem"),require("react-bootstrap/lib/NavItem"),require("react-bootstrap/lib/ListGroupItem")):t.ReactRouterBootstrap=e(t.React,t.ReactBootstrap.Button,t.ReactBootstrap.MenuItem,t.ReactBootstrap.NavItem,t.ReactBootstrap.ListGroupItem)}(this,function(t,e,r,o,s){return function(t){function e(o){if(r[o])return r[o].exports;var s=r[o]={exports:{},id:o,loaded:!1};return t[o].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){var o=r(1),s=r(2),i=r(3),n=r(4);t.exports={ButtonLink:o,MenuItemLink:s,NavItemLink:i,ListGroupItemLink:n}},function(t,e,r){var o=r(5),s=r(6),i=r(10),n=o.createClass({displayName:"ButtonLink",mixins:[i],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,i=t.query,n=t.active,a=function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1});return void 0===this.props.active&&(n=this.context.router.isActive(e,r,i)),o.createElement(s,o.__spread({},a,{href:this.getHref(),active:n,onClick:this.handleRouteTo,ref:"button"}),this.props.children)}});t.exports=n},function(t,e,r){var o=r(5),s=r(11),i=r(7),n=r(10),a=r(12),p=o.createClass({displayName:"MenuItemLink",mixins:[n],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,n=t.query,p=t.active,c=t.className,u=(t.onSelect,function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1,className:1,onSelect:1}));return void 0===this.props.active&&(p=this.context.router.isActive(e,r,n)),o.createElement(i,o.__spread({},u,{href:this.getHref(),className:a(c,s({active:p})),onClick:this.handleRouteTo,ref:"menuItem"}),this.props.children)}});t.exports=p},function(t,e,r){var o=r(5),s=r(8),i=r(10),n=o.createClass({displayName:"NavItemLink",mixins:[i],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,i=t.query,n=t.active,a=function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1});return void 0===this.props.active&&(n=this.context.router.isActive(e,r,i)),o.createElement(s,o.__spread({},a,{href:this.getHref(),active:n,onClick:this.handleRouteTo,ref:"navItem"}),this.props.children)}});t.exports=n},function(t,e,r){var o=r(5),s=r(9),i=r(10),n=o.createClass({displayName:"LinkGroupItemLink",mixins:[i],contextTypes:{router:o.PropTypes.func.isRequired},render:function(){var t=this.props,e=t.to,r=t.params,i=t.query,n=t.active,a=function(t,e){var r={},o=Object.prototype.hasOwnProperty;if(null==t)throw new TypeError;for(var s in t)o.call(t,s)&&!o.call(e,s)&&(r[s]=t[s]);return r}(t,{to:1,params:1,query:1,active:1});return void 0===this.props.active&&(n=this.context.router.isActive(e,r,i)),o.createElement(s,o.__spread({},a,{href:this.getHref(),active:n,onClick:this.handleRouteTo,ref:"listGroupItem"}),this.props.children)}});t.exports=n},function(e,r,o){e.exports=t},function(t,r,o){t.exports=e},function(t,e,o){t.exports=r},function(t,e,r){t.exports=o},function(t,e,r){t.exports=s},function(t,e,r){function o(t){return 0===t.button}function s(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var i=r(5),n=r(11);t.exports={propTypes:{a
|