@loja-integrada/admin-components 0.19.4 → 0.19.5

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.
@@ -34748,7 +34748,7 @@ cov_1urw57c37o();
34748
34748
 
34749
34749
  function cov_1s85yl253c() {
34750
34750
  var path = "/runner/_work/admin-components/admin-components/styleguide/src/Indicators/InformationBox/InformationBox.tsx";
34751
- var hash = "103d4592c1c847512b89f0e5aff7346739ca5eb3";
34751
+ var hash = "196d0c3db97edecf529f8af6f14208a122fb1109";
34752
34752
  var global = new Function("return this")();
34753
34753
  var gcv = "__coverage__";
34754
34754
  var coverageData = {
@@ -34770,27 +34770,87 @@ function cov_1s85yl253c() {
34770
34770
  column: 32
34771
34771
  },
34772
34772
  end: {
34773
- line: 41,
34773
+ line: 50,
34774
34774
  column: 1
34775
34775
  }
34776
34776
  },
34777
34777
  "2": {
34778
34778
  start: {
34779
34779
  line: 34,
34780
+ column: 60
34781
+ },
34782
+ end: {
34783
+ line: 34,
34784
+ column: 74
34785
+ }
34786
+ },
34787
+ "3": {
34788
+ start: {
34789
+ line: 35,
34790
+ column: 26
34791
+ },
34792
+ end: {
34793
+ line: 38,
34794
+ column: 5
34795
+ }
34796
+ },
34797
+ "4": {
34798
+ start: {
34799
+ line: 36,
34800
+ column: 8
34801
+ },
34802
+ end: {
34803
+ line: 36,
34804
+ column: 39
34805
+ }
34806
+ },
34807
+ "5": {
34808
+ start: {
34809
+ line: 37,
34810
+ column: 8
34811
+ },
34812
+ end: {
34813
+ line: 37,
34814
+ column: 20
34815
+ }
34816
+ },
34817
+ "6": {
34818
+ start: {
34819
+ line: 39,
34780
34820
  column: 4
34781
34821
  },
34782
34822
  end: {
34783
34823
  line: 40,
34784
- column: 140
34824
+ column: 20
34785
34825
  }
34786
34826
  },
34787
- "3": {
34827
+ "7": {
34788
34828
  start: {
34789
- line: 42,
34829
+ line: 40,
34830
+ column: 8
34831
+ },
34832
+ end: {
34833
+ line: 40,
34834
+ column: 20
34835
+ }
34836
+ },
34837
+ "8": {
34838
+ start: {
34839
+ line: 41,
34840
+ column: 4
34841
+ },
34842
+ end: {
34843
+ line: 49,
34844
+ column: 70
34845
+ }
34846
+ },
34847
+ "9": {
34848
+ start: {
34849
+ line: 51,
34790
34850
  column: 30
34791
34851
  },
34792
34852
  end: {
34793
- line: 42,
34853
+ line: 51,
34794
34854
  column: 65
34795
34855
  }
34796
34856
  }
@@ -34811,14 +34871,38 @@ function cov_1s85yl253c() {
34811
34871
  loc: {
34812
34872
  start: {
34813
34873
  line: 33,
34814
- column: 73
34874
+ column: 101
34815
34875
  },
34816
34876
  end: {
34817
- line: 41,
34877
+ line: 50,
34818
34878
  column: 1
34819
34879
  }
34820
34880
  },
34821
34881
  line: 33
34882
+ },
34883
+ "1": {
34884
+ name: "(anonymous_1)",
34885
+ decl: {
34886
+ start: {
34887
+ line: 35,
34888
+ column: 26
34889
+ },
34890
+ end: {
34891
+ line: 35,
34892
+ column: 27
34893
+ }
34894
+ },
34895
+ loc: {
34896
+ start: {
34897
+ line: 35,
34898
+ column: 32
34899
+ },
34900
+ end: {
34901
+ line: 38,
34902
+ column: 5
34903
+ }
34904
+ },
34905
+ line: 35
34822
34906
  }
34823
34907
  },
34824
34908
  branchMap: {
@@ -34847,88 +34931,197 @@ function cov_1s85yl253c() {
34847
34931
  line: 33
34848
34932
  },
34849
34933
  "1": {
34934
+ loc: {
34935
+ start: {
34936
+ line: 33,
34937
+ column: 67
34938
+ },
34939
+ end: {
34940
+ line: 33,
34941
+ column: 84
34942
+ }
34943
+ },
34944
+ type: "default-arg",
34945
+ locations: [{
34946
+ start: {
34947
+ line: 33,
34948
+ column: 79
34949
+ },
34950
+ end: {
34951
+ line: 33,
34952
+ column: 84
34953
+ }
34954
+ }],
34955
+ line: 33
34956
+ },
34957
+ "2": {
34850
34958
  loc: {
34851
34959
  start: {
34852
34960
  line: 39,
34853
- column: 145
34961
+ column: 4
34854
34962
  },
34855
34963
  end: {
34964
+ line: 40,
34965
+ column: 20
34966
+ }
34967
+ },
34968
+ type: "if",
34969
+ locations: [{
34970
+ start: {
34856
34971
  line: 39,
34972
+ column: 4
34973
+ },
34974
+ end: {
34975
+ line: 40,
34976
+ column: 20
34977
+ }
34978
+ }, {
34979
+ start: {
34980
+ line: undefined,
34981
+ column: undefined
34982
+ },
34983
+ end: {
34984
+ line: undefined,
34985
+ column: undefined
34986
+ }
34987
+ }],
34988
+ line: 39
34989
+ },
34990
+ "3": {
34991
+ loc: {
34992
+ start: {
34993
+ line: 46,
34994
+ column: 145
34995
+ },
34996
+ end: {
34997
+ line: 46,
34857
34998
  column: 185
34858
34999
  }
34859
35000
  },
34860
35001
  type: "binary-expr",
34861
35002
  locations: [{
34862
35003
  start: {
34863
- line: 39,
35004
+ line: 46,
34864
35005
  column: 145
34865
35006
  },
34866
35007
  end: {
34867
- line: 39,
35008
+ line: 46,
34868
35009
  column: 150
34869
35010
  }
34870
35011
  }, {
34871
35012
  start: {
34872
- line: 39,
35013
+ line: 46,
34873
35014
  column: 154
34874
35015
  },
34875
35016
  end: {
34876
- line: 39,
35017
+ line: 46,
34877
35018
  column: 185
34878
35019
  }
34879
35020
  }],
34880
- line: 39
35021
+ line: 46
34881
35022
  },
34882
- "2": {
35023
+ "4": {
34883
35024
  loc: {
34884
35025
  start: {
34885
- line: 40,
35026
+ line: 47,
34886
35027
  column: 16
34887
35028
  },
34888
35029
  end: {
34889
- line: 40,
35030
+ line: 47,
34890
35031
  column: 135
34891
35032
  }
34892
35033
  },
34893
35034
  type: "binary-expr",
34894
35035
  locations: [{
34895
35036
  start: {
34896
- line: 40,
35037
+ line: 47,
34897
35038
  column: 16
34898
35039
  },
34899
35040
  end: {
34900
- line: 40,
35041
+ line: 47,
34901
35042
  column: 24
34902
35043
  }
34903
35044
  }, {
34904
35045
  start: {
34905
- line: 40,
35046
+ line: 47,
34906
35047
  column: 29
34907
35048
  },
34908
35049
  end: {
34909
- line: 40,
35050
+ line: 47,
34910
35051
  column: 134
34911
35052
  }
34912
35053
  }],
34913
- line: 40
35054
+ line: 47
35055
+ },
35056
+ "5": {
35057
+ loc: {
35058
+ start: {
35059
+ line: 48,
35060
+ column: 8
35061
+ },
35062
+ end: {
35063
+ line: 49,
35064
+ column: 67
35065
+ }
35066
+ },
35067
+ type: "binary-expr",
35068
+ locations: [{
35069
+ start: {
35070
+ line: 48,
35071
+ column: 9
35072
+ },
35073
+ end: {
35074
+ line: 48,
35075
+ column: 18
35076
+ }
35077
+ }, {
35078
+ start: {
35079
+ line: 48,
35080
+ column: 22
35081
+ },
35082
+ end: {
35083
+ line: 48,
35084
+ column: 29
35085
+ }
35086
+ }, {
35087
+ start: {
35088
+ line: 48,
35089
+ column: 35
35090
+ },
35091
+ end: {
35092
+ line: 49,
35093
+ column: 66
35094
+ }
35095
+ }],
35096
+ line: 48
34914
35097
  }
34915
35098
  },
34916
35099
  s: {
34917
35100
  "0": 0,
34918
35101
  "1": 0,
34919
35102
  "2": 0,
34920
- "3": 0
35103
+ "3": 0,
35104
+ "4": 0,
35105
+ "5": 0,
35106
+ "6": 0,
35107
+ "7": 0,
35108
+ "8": 0,
35109
+ "9": 0
34921
35110
  },
34922
35111
  f: {
34923
- "0": 0
35112
+ "0": 0,
35113
+ "1": 0
34924
35114
  },
34925
35115
  b: {
34926
35116
  "0": [0],
34927
- "1": [0, 0],
34928
- "2": [0, 0]
35117
+ "1": [0],
35118
+ "2": [0, 0],
35119
+ "3": [0, 0],
35120
+ "4": [0, 0],
35121
+ "5": [0, 0, 0]
34929
35122
  },
34930
35123
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34931
- hash: "103d4592c1c847512b89f0e5aff7346739ca5eb3"
35124
+ hash: "196d0c3db97edecf529f8af6f14208a122fb1109"
34932
35125
  };
34933
35126
  var coverage = global[gcv] || (global[gcv] = {});
34934
35127
 
@@ -34982,10 +35175,38 @@ cov_1s85yl253c().s[1]++;
34982
35175
  var InformationBoxComponent = function InformationBoxComponent(_ref) {
34983
35176
  var _ref$type = _ref.type,
34984
35177
  type = _ref$type === void 0 ? (cov_1s85yl253c().b[0][0]++, 'info') : _ref$type,
35178
+ title = _ref.title,
34985
35179
  subtitle = _ref.subtitle,
34986
- title = _ref.title;
35180
+ _ref$showClose = _ref.showClose,
35181
+ showClose = _ref$showClose === void 0 ? (cov_1s85yl253c().b[1][0]++, false) : _ref$showClose,
35182
+ onClose = _ref.onClose;
34987
35183
  cov_1s85yl253c().f[0]++;
34988
- cov_1s85yl253c().s[2]++;
35184
+
35185
+ var _ref2 = (cov_1s85yl253c().s[2]++, useState(true)),
35186
+ isInformationBoxOpen = _ref2[0],
35187
+ setIsInformationBoxOpen = _ref2[1];
35188
+
35189
+ cov_1s85yl253c().s[3]++;
35190
+
35191
+ var handleOnClose = function handleOnClose() {
35192
+ cov_1s85yl253c().f[1]++;
35193
+ cov_1s85yl253c().s[4]++;
35194
+ setIsInformationBoxOpen(false);
35195
+ cov_1s85yl253c().s[5]++;
35196
+ onClose == null ? void 0 : onClose();
35197
+ };
35198
+
35199
+ cov_1s85yl253c().s[6]++;
35200
+
35201
+ if (!isInformationBoxOpen) {
35202
+ cov_1s85yl253c().b[2][0]++;
35203
+ cov_1s85yl253c().s[7]++;
35204
+ return null;
35205
+ } else {
35206
+ cov_1s85yl253c().b[2][1]++;
35207
+ }
35208
+
35209
+ cov_1s85yl253c().s[8]++;
34989
35210
  return /*#__PURE__*/React.createElement("div", {
34990
35211
  className: "InformationBox pl-4 pr-6 pt-5 pb-6 rounded w-full relative flex items-start mb-3 " + InformationBoxTypes[type]["class"]
34991
35212
  }, /*#__PURE__*/React.createElement("div", {
@@ -35000,12 +35221,18 @@ var InformationBoxComponent = function InformationBoxComponent(_ref) {
35000
35221
  className: "flex flex-col justify-center min-w-0 break-words tracking-4 leading-6 text-on-base"
35001
35222
  }, /*#__PURE__*/React.createElement("span", {
35002
35223
  className: "InformationBox-title text-f5 font-semibold " + InformationBoxTypes[type].titleClass
35003
- }, (cov_1s85yl253c().b[1][0]++, title) || (cov_1s85yl253c().b[1][1]++, InformationBoxTypes[type].title)), (cov_1s85yl253c().b[2][0]++, subtitle) && (cov_1s85yl253c().b[2][1]++, /*#__PURE__*/React.createElement("span", {
35224
+ }, (cov_1s85yl253c().b[3][0]++, title) || (cov_1s85yl253c().b[3][1]++, InformationBoxTypes[type].title)), (cov_1s85yl253c().b[4][0]++, subtitle) && (cov_1s85yl253c().b[4][1]++, /*#__PURE__*/React.createElement("span", {
35004
35225
  className: "InformationBox-subtitle text-f6 font-regular mt-1"
35005
- }, subtitle)))));
35226
+ }, subtitle)))), ((cov_1s85yl253c().b[5][0]++, showClose) || (cov_1s85yl253c().b[5][1]++, onClose)) && (cov_1s85yl253c().b[5][2]++, /*#__PURE__*/React.createElement("button", {
35227
+ className: "InformationBox-close absolute top-4 right-4 text-on-base-2",
35228
+ onClick: handleOnClose
35229
+ }, /*#__PURE__*/React.createElement(Icon, {
35230
+ icon: "close",
35231
+ size: 4
35232
+ }))));
35006
35233
  };
35007
35234
 
35008
- var InformationBox = ( /*#__PURE__*/cov_1s85yl253c().s[3]++, /*#__PURE__*/React.memo(InformationBoxComponent));
35235
+ var InformationBox = ( /*#__PURE__*/cov_1s85yl253c().s[9]++, /*#__PURE__*/React.memo(InformationBoxComponent));
35009
35236
 
35010
35237
  function cov_1sn1apcwbq() {
35011
35238
  var path = "/runner/_work/admin-components/admin-components/styleguide/src/Indicators/InformationBox/index.tsx";
@@ -37330,7 +37557,7 @@ cov_2exnju1afb();
37330
37557
 
37331
37558
  function cov_24egftxhy6() {
37332
37559
  var path = "/runner/_work/admin-components/admin-components/styleguide/src/Components/Tabs/TabsItem.tsx";
37333
- var hash = "4288533066e0b8cff705b891655875aff0a189d0";
37560
+ var hash = "c2837541f0ed508efe6e1885324ef0b072d7f2ef";
37334
37561
  var global = new Function("return this")();
37335
37562
  var gcv = "__coverage__";
37336
37563
  var coverageData = {
@@ -37382,7 +37609,7 @@ function cov_24egftxhy6() {
37382
37609
  column: 24
37383
37610
  },
37384
37611
  end: {
37385
- line: 9,
37612
+ line: 11,
37386
37613
  column: 1
37387
37614
  }
37388
37615
  },
@@ -37392,8 +37619,8 @@ function cov_24egftxhy6() {
37392
37619
  column: 4
37393
37620
  },
37394
37621
  end: {
37395
- line: 8,
37396
- column: 232
37622
+ line: 10,
37623
+ column: 102
37397
37624
  }
37398
37625
  },
37399
37626
  "6": {
@@ -37447,10 +37674,10 @@ function cov_24egftxhy6() {
37447
37674
  loc: {
37448
37675
  start: {
37449
37676
  line: 6,
37450
- column: 88
37677
+ column: 105
37451
37678
  },
37452
37679
  end: {
37453
- line: 9,
37680
+ line: 11,
37454
37681
  column: 1
37455
37682
  }
37456
37683
  },
@@ -37519,22 +37746,22 @@ function cov_24egftxhy6() {
37519
37746
  loc: {
37520
37747
  start: {
37521
37748
  line: 6,
37522
- column: 38
37749
+ column: 55
37523
37750
  },
37524
37751
  end: {
37525
37752
  line: 6,
37526
- column: 52
37753
+ column: 69
37527
37754
  }
37528
37755
  },
37529
37756
  type: "default-arg",
37530
37757
  locations: [{
37531
37758
  start: {
37532
37759
  line: 6,
37533
- column: 47
37760
+ column: 64
37534
37761
  },
37535
37762
  end: {
37536
37763
  line: 6,
37537
- column: 52
37764
+ column: 69
37538
37765
  }
37539
37766
  }],
37540
37767
  line: 6
@@ -37543,22 +37770,22 @@ function cov_24egftxhy6() {
37543
37770
  loc: {
37544
37771
  start: {
37545
37772
  line: 6,
37546
- column: 54
37773
+ column: 71
37547
37774
  },
37548
37775
  end: {
37549
37776
  line: 6,
37550
- column: 70
37777
+ column: 87
37551
37778
  }
37552
37779
  },
37553
37780
  type: "default-arg",
37554
37781
  locations: [{
37555
37782
  start: {
37556
37783
  line: 6,
37557
- column: 65
37784
+ column: 82
37558
37785
  },
37559
37786
  end: {
37560
37787
  line: 6,
37561
- column: 70
37788
+ column: 87
37562
37789
  }
37563
37790
  }],
37564
37791
  line: 6
@@ -37661,6 +37888,39 @@ function cov_24egftxhy6() {
37661
37888
  }
37662
37889
  }],
37663
37890
  line: 8
37891
+ },
37892
+ "6": {
37893
+ loc: {
37894
+ start: {
37895
+ line: 10,
37896
+ column: 12
37897
+ },
37898
+ end: {
37899
+ line: 10,
37900
+ column: 98
37901
+ }
37902
+ },
37903
+ type: "binary-expr",
37904
+ locations: [{
37905
+ start: {
37906
+ line: 10,
37907
+ column: 12
37908
+ },
37909
+ end: {
37910
+ line: 10,
37911
+ column: 27
37912
+ }
37913
+ }, {
37914
+ start: {
37915
+ line: 10,
37916
+ column: 31
37917
+ },
37918
+ end: {
37919
+ line: 10,
37920
+ column: 98
37921
+ }
37922
+ }],
37923
+ line: 10
37664
37924
  }
37665
37925
  },
37666
37926
  s: {
@@ -37683,10 +37943,11 @@ function cov_24egftxhy6() {
37683
37943
  "2": [0],
37684
37944
  "3": [0, 0],
37685
37945
  "4": [0, 0],
37686
- "5": [0, 0]
37946
+ "5": [0, 0],
37947
+ "6": [0, 0]
37687
37948
  },
37688
37949
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
37689
- hash: "4288533066e0b8cff705b891655875aff0a189d0"
37950
+ hash: "c2837541f0ed508efe6e1885324ef0b072d7f2ef"
37690
37951
  };
37691
37952
  var coverage = global[gcv] || (global[gcv] = {});
37692
37953
 
@@ -37720,6 +37981,7 @@ cov_24egftxhy6().s[4]++;
37720
37981
  var TabsItem = function TabsItem(_ref) {
37721
37982
  var id = _ref.id,
37722
37983
  title = _ref.title,
37984
+ titleComplement = _ref.titleComplement,
37723
37985
  _ref$active = _ref.active,
37724
37986
  active = _ref$active === void 0 ? (cov_24egftxhy6().b[1][0]++, false) : _ref$active,
37725
37987
  _ref$disabled = _ref.disabled,
@@ -37740,7 +38002,9 @@ var TabsItem = function TabsItem(_ref) {
37740
38002
  }, /*#__PURE__*/React.createElement("span", {
37741
38003
  className: "block tracking-4 text-f6 text-sm py-4 border-b-4 break-words " + (disabled ? (cov_24egftxhy6().b[5][0]++, '') : (cov_24egftxhy6().b[5][1]++, 'group-hover:font-semibold')) + " " + activeStyles(active) + " " + boldFixStyle,
37742
38004
  "data-title": title
37743
- }, title));
38005
+ }, title, (cov_24egftxhy6().b[6][0]++, titleComplement) && (cov_24egftxhy6().b[6][1]++, /*#__PURE__*/React.createElement("span", {
38006
+ className: "ml-2"
38007
+ }, titleComplement))));
37744
38008
  };
37745
38009
 
37746
38010
  function cov_natr76kqj() {