@bigbinary/neeto-github-frontend 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -12,6 +12,7 @@ var misc = require('@bigbinary/neeto-icons/misc');
12
12
  var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
13
13
  var require$$0 = require('util');
14
14
  var Search = require('@bigbinary/neeto-molecules/Search');
15
+ var classNames = require('classnames');
15
16
  var Scrollable = require('@bigbinary/neeto-molecules/Scrollable');
16
17
  var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
17
18
 
@@ -20,6 +21,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
20
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
21
22
  var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
22
23
  var Search__default = /*#__PURE__*/_interopDefaultLegacy(Search);
24
+ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
23
25
  var Scrollable__default = /*#__PURE__*/_interopDefaultLegacy(Scrollable);
24
26
  var DateFormat__default = /*#__PURE__*/_interopDefaultLegacy(DateFormat);
25
27
 
@@ -2502,13 +2504,17 @@ var RepositoryTile = reactUtils.withT(function (_ref) {
2502
2504
 
2503
2505
  var List = reactUtils.withT(function (_ref) {
2504
2506
  var t = _ref.t,
2507
+ isPublicRepoAllowed = _ref.isPublicRepoAllowed,
2505
2508
  filteredRepositories = _ref.filteredRepositories,
2506
2509
  repositories = _ref.repositories,
2507
2510
  onConnect = _ref.onConnect,
2508
2511
  installationUrl = _ref.installationUrl,
2509
2512
  troubleshootUrl = _ref.troubleshootUrl;
2510
2513
  return /*#__PURE__*/React__default["default"].createElement("div", {
2511
- className: "neeto-ui-border-gray-300 neeto-ui-rounded-md m-0 flex h-52 flex-col items-center justify-center border border-solid p-0 2xl:h-96"
2514
+ className: classNames__default["default"]("neeto-ui-border-gray-300 neeto-ui-rounded-md m-0 flex flex-col items-center justify-center border border-solid p-0 2xl:h-96", {
2515
+ "h-52": isPublicRepoAllowed,
2516
+ "h-72": !isPublicRepoAllowed
2517
+ })
2512
2518
  }, neetoCist.isPresent(repositories) ? /*#__PURE__*/React__default["default"].createElement(Scrollable__default["default"], {
2513
2519
  className: "m-0 h-full w-full overflow-y-scroll p-0 shadow-inner"
2514
2520
  }, neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository) {
@@ -2544,6 +2550,7 @@ var NotConnected = reactUtils.withT(function (_ref) {
2544
2550
 
2545
2551
  var Private = function Private(_ref) {
2546
2552
  var isConnected = _ref.isConnected,
2553
+ isPublicRepoAllowed = _ref.isPublicRepoAllowed,
2547
2554
  repositories = _ref.repositories,
2548
2555
  onConnect = _ref.onConnect,
2549
2556
  installationUrl = _ref.installationUrl,
@@ -2581,6 +2588,7 @@ var Private = function Private(_ref) {
2581
2588
  count: filteredRepositories.length
2582
2589
  }))
2583
2590
  }), /*#__PURE__*/React__default["default"].createElement(List, {
2591
+ isPublicRepoAllowed: isPublicRepoAllowed,
2584
2592
  filteredRepositories: filteredRepositories,
2585
2593
  installationUrl: installationUrl,
2586
2594
  onConnect: onConnect,
@@ -2667,6 +2675,7 @@ var Repositories = function Repositories(_ref) {
2667
2675
  return /*#__PURE__*/React__default["default"].createElement("div", {
2668
2676
  className: "w-full space-y-6 2xl:max-w-4xl"
2669
2677
  }, /*#__PURE__*/React__default["default"].createElement(Private, {
2678
+ isPublicRepoAllowed: isPublicRepoAllowed,
2670
2679
  installationUrl: installationUrl,
2671
2680
  isConnected: isConnected,
2672
2681
  onConnect: onConnect,