@bigbinary/neeto-molecules 1.0.22 → 1.0.23

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.
@@ -314,7 +314,7 @@ var Container = (cov_1wwtrbg59n().s[0]++, /*#__PURE__*/React.forwardRef(function
314
314
  cov_1wwtrbg59n().s[2]++;
315
315
  Container.displayName = "Container";
316
316
 
317
- var css$2 = ".neeto-molecules-header{align-items:center;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;min-height:var(--neeto-ui-main-header-height);padding:24px 0;width:100%}.neeto-molecules-header--has-breadcrumbs{min-height:var(--neeto-ui-main-header-with-breadcrumbs-height)}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.neeto-molecules-header .neeto-molecules-header__left-data-wrap{display:flex;flex-wrap:wrap}.neeto-molecules-header .neeto-molecules-header__page-title{display:block;width:100%}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex}.neeto-molecules-header .neeto-molecules-header__breadcrumb{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;line-height:1}.neeto-molecules-header .neeto-molecules-header__breadcrumb a{text-decoration:none;transition:all .3s ease-in-out}.neeto-molecules-header .neeto-molecules-header__breadcrumb-separator{margin:0 4px}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}";
317
+ var css$2 = ".neeto-molecules-header{align-items:center;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;min-height:var(--neeto-ui-main-header-height);padding:24px 0;width:100%}.neeto-molecules-header--has-breadcrumbs{min-height:var(--neeto-ui-main-header-with-breadcrumbs-height)}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.neeto-molecules-header .neeto-molecules-header__left-data-wrap{display:flex;flex-wrap:wrap}.neeto-molecules-header .neeto-molecules-header__page-title{display:flex;flex-direction:row;width:100%}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex}.neeto-molecules-header .neeto-molecules-header__breadcrumb{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;line-height:1}.neeto-molecules-header .neeto-molecules-header__breadcrumb a{text-decoration:none;transition:all .3s ease-in-out}.neeto-molecules-header .neeto-molecules-header__breadcrumb-separator{margin:0 4px}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}";
318
318
  n(css$2,{});
319
319
 
320
320
  function cov_2jdv1wna26() {
@@ -465,9 +465,138 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
465
465
  }));
466
466
  };
467
467
 
468
+ function _objectWithoutPropertiesLoose(source, excluded) {
469
+ if (source == null) return {};
470
+ var target = {};
471
+ var sourceKeys = Object.keys(source);
472
+ var key, i;
473
+ for (i = 0; i < sourceKeys.length; i++) {
474
+ key = sourceKeys[i];
475
+ if (excluded.indexOf(key) >= 0) continue;
476
+ target[key] = source[key];
477
+ }
478
+ return target;
479
+ }
480
+
481
+ function _objectWithoutProperties(source, excluded) {
482
+ if (source == null) return {};
483
+ var target = _objectWithoutPropertiesLoose(source, excluded);
484
+ var key, i;
485
+ if (Object.getOwnPropertySymbols) {
486
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
487
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
488
+ key = sourceSymbolKeys[i];
489
+ if (excluded.indexOf(key) >= 0) continue;
490
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
491
+ target[key] = source[key];
492
+ }
493
+ }
494
+ return target;
495
+ }
496
+
497
+ var _excluded$2 = ["children"];
498
+ function cov_1d9vaefr1a() {
499
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Header/Dropdown.jsx";
500
+ var hash = "57d665dbaab5aa76c0b57bedd85469275a9f6867";
501
+ var global = new Function("return this")();
502
+ var gcv = "__coverage__";
503
+ var coverageData = {
504
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Header/Dropdown.jsx",
505
+ statementMap: {
506
+ "0": {
507
+ start: {
508
+ line: 6,
509
+ column: 17
510
+ },
511
+ end: {
512
+ line: 17,
513
+ column: 1
514
+ }
515
+ },
516
+ "1": {
517
+ start: {
518
+ line: 7,
519
+ column: 2
520
+ },
521
+ end: {
522
+ line: 16,
523
+ column: 20
524
+ }
525
+ }
526
+ },
527
+ fnMap: {
528
+ "0": {
529
+ name: "(anonymous_0)",
530
+ decl: {
531
+ start: {
532
+ line: 6,
533
+ column: 17
534
+ },
535
+ end: {
536
+ line: 6,
537
+ column: 18
538
+ }
539
+ },
540
+ loc: {
541
+ start: {
542
+ line: 7,
543
+ column: 2
544
+ },
545
+ end: {
546
+ line: 16,
547
+ column: 20
548
+ }
549
+ },
550
+ line: 7
551
+ }
552
+ },
553
+ branchMap: {},
554
+ s: {
555
+ "0": 0,
556
+ "1": 0
557
+ },
558
+ f: {
559
+ "0": 0
560
+ },
561
+ b: {},
562
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
563
+ hash: "57d665dbaab5aa76c0b57bedd85469275a9f6867"
564
+ };
565
+ var coverage = global[gcv] || (global[gcv] = {});
566
+ if (!coverage[path] || coverage[path].hash !== hash) {
567
+ coverage[path] = coverageData;
568
+ }
569
+ var actualCoverage = coverage[path];
570
+ {
571
+ // @ts-ignore
572
+ cov_1d9vaefr1a = function () {
573
+ return actualCoverage;
574
+ };
575
+ }
576
+ return actualCoverage;
577
+ }
578
+ cov_1d9vaefr1a();
579
+ cov_1d9vaefr1a().s[0]++;
580
+ var Dropdown = function Dropdown(_ref) {
581
+ var _ref$dropdownProps = _ref.dropdownProps,
582
+ children = _ref$dropdownProps.children,
583
+ otherProps = _objectWithoutProperties(_ref$dropdownProps, _excluded$2);
584
+ cov_1d9vaefr1a().f[0]++;
585
+ cov_1d9vaefr1a().s[1]++;
586
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, _extends({
587
+ buttonProps: {
588
+ className: "ml-1.5"
589
+ },
590
+ buttonStyle: "text",
591
+ className: "ml-3",
592
+ icon: neetoIcons.MenuVertical,
593
+ position: "bottom-end"
594
+ }, otherProps), children);
595
+ };
596
+
468
597
  function cov_14lmkczjok() {
469
598
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Header/index.jsx";
470
- var hash = "5942842597a7b0320330d704f35fd6318ddbbd60";
599
+ var hash = "ffe20f4612621150120204f01a4318179de8e933";
471
600
  var global = new Function("return this")();
472
601
  var gcv = "__coverage__";
473
602
  var coverageData = {
@@ -475,31 +604,31 @@ function cov_14lmkczjok() {
475
604
  statementMap: {
476
605
  "0": {
477
606
  start: {
478
- line: 11,
607
+ line: 12,
479
608
  column: 15
480
609
  },
481
610
  end: {
482
- line: 72,
611
+ line: 76,
483
612
  column: 1
484
613
  }
485
614
  },
486
615
  "1": {
487
616
  start: {
488
- line: 19,
617
+ line: 21,
489
618
  column: 20
490
619
  },
491
620
  end: {
492
- line: 19,
621
+ line: 21,
493
622
  column: 32
494
623
  }
495
624
  },
496
625
  "2": {
497
626
  start: {
498
- line: 21,
627
+ line: 23,
499
628
  column: 2
500
629
  },
501
630
  end: {
502
- line: 71,
631
+ line: 75,
503
632
  column: 4
504
633
  }
505
634
  }
@@ -509,174 +638,207 @@ function cov_14lmkczjok() {
509
638
  name: "(anonymous_0)",
510
639
  decl: {
511
640
  start: {
512
- line: 11,
641
+ line: 12,
513
642
  column: 15
514
643
  },
515
644
  end: {
516
- line: 11,
645
+ line: 12,
517
646
  column: 16
518
647
  }
519
648
  },
520
649
  loc: {
521
650
  start: {
522
- line: 18,
651
+ line: 20,
523
652
  column: 6
524
653
  },
525
654
  end: {
526
- line: 72,
655
+ line: 76,
527
656
  column: 1
528
657
  }
529
658
  },
530
- line: 18
659
+ line: 20
531
660
  }
532
661
  },
533
662
  branchMap: {
534
663
  "0": {
535
664
  loc: {
536
665
  start: {
537
- line: 15,
666
+ line: 16,
538
667
  column: 2
539
668
  },
540
669
  end: {
541
- line: 15,
670
+ line: 16,
542
671
  column: 16
543
672
  }
544
673
  },
545
674
  type: "default-arg",
546
675
  locations: [{
547
676
  start: {
548
- line: 15,
677
+ line: 16,
549
678
  column: 14
550
679
  },
551
680
  end: {
552
- line: 15,
681
+ line: 16,
553
682
  column: 16
554
683
  }
555
684
  }],
556
- line: 15
685
+ line: 16
557
686
  },
558
687
  "1": {
559
688
  loc: {
560
689
  start: {
561
- line: 17,
690
+ line: 18,
562
691
  column: 2
563
692
  },
564
693
  end: {
565
- line: 17,
694
+ line: 18,
566
695
  column: 18
567
696
  }
568
697
  },
569
698
  type: "default-arg",
570
699
  locations: [{
571
700
  start: {
572
- line: 17,
701
+ line: 18,
573
702
  column: 16
574
703
  },
575
704
  end: {
576
- line: 17,
705
+ line: 18,
577
706
  column: 18
578
707
  }
579
708
  }],
580
- line: 17
709
+ line: 18
581
710
  },
582
711
  "2": {
583
712
  loc: {
584
713
  start: {
585
- line: 30,
714
+ line: 32,
586
715
  column: 9
587
716
  },
588
717
  end: {
589
- line: 39,
718
+ line: 41,
590
719
  column: 9
591
720
  }
592
721
  },
593
722
  type: "binary-expr",
594
723
  locations: [{
595
724
  start: {
596
- line: 30,
725
+ line: 32,
597
726
  column: 9
598
727
  },
599
728
  end: {
600
- line: 30,
729
+ line: 32,
601
730
  column: 22
602
731
  }
603
732
  }, {
604
733
  start: {
605
- line: 31,
734
+ line: 33,
606
735
  column: 10
607
736
  },
608
737
  end: {
609
- line: 38,
738
+ line: 40,
610
739
  column: 12
611
740
  }
612
741
  }],
613
- line: 30
742
+ line: 32
614
743
  },
615
744
  "3": {
616
745
  loc: {
617
746
  start: {
618
- line: 41,
747
+ line: 43,
619
748
  column: 11
620
749
  },
621
750
  end: {
622
- line: 41,
751
+ line: 43,
623
752
  column: 67
624
753
  }
625
754
  },
626
755
  type: "binary-expr",
627
756
  locations: [{
628
757
  start: {
629
- line: 41,
758
+ line: 43,
630
759
  column: 11
631
760
  },
632
761
  end: {
633
- line: 41,
762
+ line: 43,
634
763
  column: 22
635
764
  }
636
765
  }, {
637
766
  start: {
638
- line: 41,
767
+ line: 43,
639
768
  column: 26
640
769
  },
641
770
  end: {
642
- line: 41,
771
+ line: 43,
643
772
  column: 67
644
773
  }
645
774
  }],
646
- line: 41
775
+ line: 43
647
776
  },
648
777
  "4": {
649
778
  loc: {
650
779
  start: {
651
- line: 55,
780
+ line: 54,
781
+ column: 13
782
+ },
783
+ end: {
784
+ line: 54,
785
+ column: 72
786
+ }
787
+ },
788
+ type: "binary-expr",
789
+ locations: [{
790
+ start: {
791
+ line: 54,
792
+ column: 13
793
+ },
794
+ end: {
795
+ line: 54,
796
+ column: 26
797
+ }
798
+ }, {
799
+ start: {
800
+ line: 54,
801
+ column: 30
802
+ },
803
+ end: {
804
+ line: 54,
805
+ column: 72
806
+ }
807
+ }],
808
+ line: 54
809
+ },
810
+ "5": {
811
+ loc: {
812
+ start: {
813
+ line: 59,
652
814
  column: 9
653
815
  },
654
816
  end: {
655
- line: 67,
817
+ line: 71,
656
818
  column: 9
657
819
  }
658
820
  },
659
821
  type: "binary-expr",
660
822
  locations: [{
661
823
  start: {
662
- line: 55,
824
+ line: 59,
663
825
  column: 9
664
826
  },
665
827
  end: {
666
- line: 55,
828
+ line: 59,
667
829
  column: 20
668
830
  }
669
831
  }, {
670
832
  start: {
671
- line: 56,
833
+ line: 60,
672
834
  column: 10
673
835
  },
674
836
  end: {
675
- line: 66,
837
+ line: 70,
676
838
  column: 12
677
839
  }
678
840
  }],
679
- line: 55
841
+ line: 59
680
842
  }
681
843
  },
682
844
  s: {
@@ -692,10 +854,11 @@ function cov_14lmkczjok() {
692
854
  "1": [0],
693
855
  "2": [0, 0],
694
856
  "3": [0, 0],
695
- "4": [0, 0]
857
+ "4": [0, 0],
858
+ "5": [0, 0]
696
859
  },
697
860
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
698
- hash: "5942842597a7b0320330d704f35fd6318ddbbd60"
861
+ hash: "ffe20f4612621150120204f01a4318179de8e933"
699
862
  };
700
863
  var coverage = global[gcv] || (global[gcv] = {});
701
864
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -720,7 +883,8 @@ var Header = function Header(_ref) {
720
883
  className = _ref$className === void 0 ? (cov_14lmkczjok().b[0][0]++, "") : _ref$className,
721
884
  actionBlock = _ref.actionBlock,
722
885
  _ref$breadcrumbs = _ref.breadcrumbs,
723
- breadcrumbs = _ref$breadcrumbs === void 0 ? (cov_14lmkczjok().b[1][0]++, []) : _ref$breadcrumbs;
886
+ breadcrumbs = _ref$breadcrumbs === void 0 ? (cov_14lmkczjok().b[1][0]++, []) : _ref$breadcrumbs,
887
+ dropdownProps = _ref.dropdownProps;
724
888
  cov_14lmkczjok().f[0]++;
725
889
  var searchRef = (cov_14lmkczjok().s[1]++, React.useRef(null));
726
890
  cov_14lmkczjok().s[2]++;
@@ -741,16 +905,19 @@ var Header = function Header(_ref) {
741
905
  className: "neeto-molecules-header__left-data-wrap"
742
906
  }, (cov_14lmkczjok().b[3][0]++, breadcrumbs) && (cov_14lmkczjok().b[3][1]++, /*#__PURE__*/React__default["default"].createElement(Breadcrumbs, {
743
907
  breadcrumbs: breadcrumbs
744
- })), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
745
- className: "neeto-molecules-header__page-title",
908
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
909
+ className: "neeto-molecules-header__page-title"
910
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
746
911
  "data-cy": "main-header",
747
912
  "data-test-id": "main-header",
748
913
  lineHeight: "tight",
749
914
  style: "h2",
750
915
  weight: "semibold"
751
- }, title))), /*#__PURE__*/React__default["default"].createElement("div", {
916
+ }, title), (cov_14lmkczjok().b[4][0]++, dropdownProps) && (cov_14lmkczjok().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(Dropdown, {
917
+ dropdownProps: dropdownProps
918
+ }))))), /*#__PURE__*/React__default["default"].createElement("div", {
752
919
  className: "neeto-ui-gap-3 neeto-molecules-header__right"
753
- }, (cov_14lmkczjok().b[4][0]++, searchProps) && (cov_14lmkczjok().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
920
+ }, (cov_14lmkczjok().b[5][0]++, searchProps) && (cov_14lmkczjok().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
754
921
  placeholder: "Search",
755
922
  prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Search, null),
756
923
  ref: searchRef,
@@ -759,35 +926,6 @@ var Header = function Header(_ref) {
759
926
  }, searchProps))), actionBlock));
760
927
  };
761
928
 
762
- function _objectWithoutPropertiesLoose(source, excluded) {
763
- if (source == null) return {};
764
- var target = {};
765
- var sourceKeys = Object.keys(source);
766
- var key, i;
767
- for (i = 0; i < sourceKeys.length; i++) {
768
- key = sourceKeys[i];
769
- if (excluded.indexOf(key) >= 0) continue;
770
- target[key] = source[key];
771
- }
772
- return target;
773
- }
774
-
775
- function _objectWithoutProperties(source, excluded) {
776
- if (source == null) return {};
777
- var target = _objectWithoutPropertiesLoose(source, excluded);
778
- var key, i;
779
- if (Object.getOwnPropertySymbols) {
780
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
781
- for (i = 0; i < sourceSymbolKeys.length; i++) {
782
- key = sourceSymbolKeys[i];
783
- if (excluded.indexOf(key) >= 0) continue;
784
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
785
- target[key] = source[key];
786
- }
787
- }
788
- return target;
789
- }
790
-
791
929
  var css$1 = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__content{height:66px;margin-bottom:16px;overflow:hidden;padding:8px;position:relative;width:66px}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__text{color:rgb(var(--neeto-ui-gray-800));font-size:1.25rem;line-height:1.75rem;margin-bottom:4rem;text-align:center}.neeto-molecules-pageloader__spinner{display:flex;gap:2px;height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-molecules-pageloader__spinner>div{animation:neeto-ui-stretch-delay 1.2s ease-in-out infinite;background-color:#fff;border-radius:2px;display:inline-flex;height:100%;width:2px}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect2{animation-delay:-1.1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect3{animation-delay:-1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect4{animation-delay:-.9s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect5{animation-delay:-.8s}@keyframes neeto-ui-stretch-delay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}";
792
930
  n(css$1,{});
793
931