@loja-integrada/admin-components 0.19.2 → 0.19.3

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const Toggle: React.MemoExoticComponent<React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>>;
3
3
  export interface ToggleProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
- label?: string;
4
+ label?: React.ReactNode | string;
5
5
  }
@@ -3,6 +3,7 @@ declare const badgeTypes: {
3
3
  neutral: string;
4
4
  neutralLight: string;
5
5
  primary: string;
6
+ primaryLight: string;
6
7
  danger: string;
7
8
  success: string;
8
9
  warning: string;
@@ -3,6 +3,7 @@ import { IconProps } from '../../Icons';
3
3
  declare type InformationBoxTypesOptions = 'success' | 'warning' | 'danger' | 'info';
4
4
  declare const InformationBoxTypes: Record<InformationBoxTypesOptions, {
5
5
  title: string;
6
+ titleClass: string;
6
7
  class: string;
7
8
  icon: IconProps['icon'];
8
9
  iconClass: string;
@@ -33468,7 +33468,7 @@ cov_rw3hj2z08();
33468
33468
 
33469
33469
  function cov_kguxyov05() {
33470
33470
  var path = "/runner/_work/admin-components/admin-components/styleguide/src/Indicators/Badge/Badge.tsx";
33471
- var hash = "164f14ec41dd21a63a3d5a95c16cf35cc1d6359d";
33471
+ var hash = "4ab29b11bcd1e7a6067fd19a44f2015d1ef00a16";
33472
33472
  var global = new Function("return this")();
33473
33473
  var gcv = "__coverage__";
33474
33474
  var coverageData = {
@@ -33480,67 +33480,67 @@ function cov_kguxyov05() {
33480
33480
  column: 19
33481
33481
  },
33482
33482
  end: {
33483
- line: 10,
33483
+ line: 11,
33484
33484
  column: 1
33485
33485
  }
33486
33486
  },
33487
33487
  "1": {
33488
33488
  start: {
33489
- line: 11,
33489
+ line: 12,
33490
33490
  column: 21
33491
33491
  },
33492
33492
  end: {
33493
- line: 15,
33493
+ line: 16,
33494
33494
  column: 1
33495
33495
  }
33496
33496
  },
33497
33497
  "2": {
33498
33498
  start: {
33499
- line: 16,
33499
+ line: 17,
33500
33500
  column: 19
33501
33501
  },
33502
33502
  end: {
33503
- line: 20,
33503
+ line: 21,
33504
33504
  column: 1
33505
33505
  }
33506
33506
  },
33507
33507
  "3": {
33508
33508
  start: {
33509
- line: 21,
33509
+ line: 22,
33510
33510
  column: 21
33511
33511
  },
33512
33512
  end: {
33513
- line: 25,
33513
+ line: 26,
33514
33514
  column: 1
33515
33515
  }
33516
33516
  },
33517
33517
  "4": {
33518
33518
  start: {
33519
- line: 26,
33519
+ line: 27,
33520
33520
  column: 23
33521
33521
  },
33522
33522
  end: {
33523
- line: 29,
33523
+ line: 30,
33524
33524
  column: 1
33525
33525
  }
33526
33526
  },
33527
33527
  "5": {
33528
33528
  start: {
33529
- line: 27,
33529
+ line: 28,
33530
33530
  column: 4
33531
33531
  },
33532
33532
  end: {
33533
- line: 28,
33534
- column: 158
33533
+ line: 29,
33534
+ column: 97
33535
33535
  }
33536
33536
  },
33537
33537
  "6": {
33538
33538
  start: {
33539
- line: 30,
33539
+ line: 31,
33540
33540
  column: 21
33541
33541
  },
33542
33542
  end: {
33543
- line: 30,
33543
+ line: 31,
33544
33544
  column: 47
33545
33545
  }
33546
33546
  }
@@ -33550,186 +33550,153 @@ function cov_kguxyov05() {
33550
33550
  name: "(anonymous_0)",
33551
33551
  decl: {
33552
33552
  start: {
33553
- line: 26,
33553
+ line: 27,
33554
33554
  column: 23
33555
33555
  },
33556
33556
  end: {
33557
- line: 26,
33557
+ line: 27,
33558
33558
  column: 24
33559
33559
  }
33560
33560
  },
33561
33561
  loc: {
33562
33562
  start: {
33563
- line: 26,
33563
+ line: 27,
33564
33564
  column: 110
33565
33565
  },
33566
33566
  end: {
33567
- line: 29,
33567
+ line: 30,
33568
33568
  column: 1
33569
33569
  }
33570
33570
  },
33571
- line: 26
33571
+ line: 27
33572
33572
  }
33573
33573
  },
33574
33574
  branchMap: {
33575
33575
  "0": {
33576
33576
  loc: {
33577
33577
  start: {
33578
- line: 26,
33578
+ line: 27,
33579
33579
  column: 26
33580
33580
  },
33581
33581
  end: {
33582
- line: 26,
33582
+ line: 27,
33583
33583
  column: 42
33584
33584
  }
33585
33585
  },
33586
33586
  type: "default-arg",
33587
33587
  locations: [{
33588
33588
  start: {
33589
- line: 26,
33589
+ line: 27,
33590
33590
  column: 33
33591
33591
  },
33592
33592
  end: {
33593
- line: 26,
33593
+ line: 27,
33594
33594
  column: 42
33595
33595
  }
33596
33596
  }],
33597
- line: 26
33597
+ line: 27
33598
33598
  },
33599
33599
  "1": {
33600
33600
  loc: {
33601
33601
  start: {
33602
- line: 26,
33602
+ line: 27,
33603
33603
  column: 50
33604
33604
  },
33605
33605
  end: {
33606
- line: 26,
33606
+ line: 27,
33607
33607
  column: 66
33608
33608
  }
33609
33609
  },
33610
33610
  type: "default-arg",
33611
33611
  locations: [{
33612
33612
  start: {
33613
- line: 26,
33613
+ line: 27,
33614
33614
  column: 57
33615
33615
  },
33616
33616
  end: {
33617
- line: 26,
33617
+ line: 27,
33618
33618
  column: 66
33619
33619
  }
33620
33620
  }],
33621
- line: 26
33621
+ line: 27
33622
33622
  },
33623
33623
  "2": {
33624
33624
  loc: {
33625
33625
  start: {
33626
- line: 26,
33626
+ line: 27,
33627
33627
  column: 68
33628
33628
  },
33629
33629
  end: {
33630
- line: 26,
33630
+ line: 27,
33631
33631
  column: 84
33632
33632
  }
33633
33633
  },
33634
33634
  type: "default-arg",
33635
33635
  locations: [{
33636
33636
  start: {
33637
- line: 26,
33637
+ line: 27,
33638
33638
  column: 79
33639
33639
  },
33640
33640
  end: {
33641
- line: 26,
33641
+ line: 27,
33642
33642
  column: 84
33643
33643
  }
33644
33644
  }],
33645
- line: 26
33645
+ line: 27
33646
33646
  },
33647
33647
  "3": {
33648
33648
  loc: {
33649
33649
  start: {
33650
- line: 26,
33650
+ line: 27,
33651
33651
  column: 86
33652
33652
  },
33653
33653
  end: {
33654
- line: 26,
33654
+ line: 27,
33655
33655
  column: 102
33656
33656
  }
33657
33657
  },
33658
33658
  type: "default-arg",
33659
33659
  locations: [{
33660
33660
  start: {
33661
- line: 26,
33662
- column: 96
33663
- },
33664
- end: {
33665
- line: 26,
33666
- column: 102
33667
- }
33668
- }],
33669
- line: 26
33670
- },
33671
- "4": {
33672
- loc: {
33673
- start: {
33674
- line: 27,
33675
- column: 176
33676
- },
33677
- end: {
33678
- line: 27,
33679
- column: 216
33680
- }
33681
- },
33682
- type: "cond-expr",
33683
- locations: [{
33684
- start: {
33685
- line: 27,
33686
- column: 187
33687
- },
33688
- end: {
33689
33661
  line: 27,
33690
- column: 200
33691
- }
33692
- }, {
33693
- start: {
33694
- line: 27,
33695
- column: 203
33662
+ column: 96
33696
33663
  },
33697
33664
  end: {
33698
33665
  line: 27,
33699
- column: 216
33666
+ column: 102
33700
33667
  }
33701
33668
  }],
33702
33669
  line: 27
33703
33670
  },
33704
- "5": {
33671
+ "4": {
33705
33672
  loc: {
33706
33673
  start: {
33707
33674
  line: 28,
33708
- column: 87
33675
+ column: 176
33709
33676
  },
33710
33677
  end: {
33711
33678
  line: 28,
33712
- column: 144
33679
+ column: 216
33713
33680
  }
33714
33681
  },
33715
33682
  type: "cond-expr",
33716
33683
  locations: [{
33717
33684
  start: {
33718
33685
  line: 28,
33719
- column: 113
33686
+ column: 187
33720
33687
  },
33721
33688
  end: {
33722
33689
  line: 28,
33723
- column: 128
33690
+ column: 200
33724
33691
  }
33725
33692
  }, {
33726
33693
  start: {
33727
33694
  line: 28,
33728
- column: 131
33695
+ column: 203
33729
33696
  },
33730
33697
  end: {
33731
33698
  line: 28,
33732
- column: 144
33699
+ column: 216
33733
33700
  }
33734
33701
  }],
33735
33702
  line: 28
@@ -33752,11 +33719,10 @@ function cov_kguxyov05() {
33752
33719
  "1": [0],
33753
33720
  "2": [0],
33754
33721
  "3": [0],
33755
- "4": [0, 0],
33756
- "5": [0, 0]
33722
+ "4": [0, 0]
33757
33723
  },
33758
33724
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33759
- hash: "164f14ec41dd21a63a3d5a95c16cf35cc1d6359d"
33725
+ hash: "4ab29b11bcd1e7a6067fd19a44f2015d1ef00a16"
33760
33726
  };
33761
33727
  var coverage = global[gcv] || (global[gcv] = {});
33762
33728
 
@@ -33776,13 +33742,14 @@ function cov_kguxyov05() {
33776
33742
 
33777
33743
  cov_kguxyov05();
33778
33744
  var badgeTypes = ( /*#__PURE__*/cov_kguxyov05().s[0]++, {
33779
- neutral: 'bg-inverted-2',
33780
- neutralLight: 'bg-inverted-3',
33781
- primary: 'bg-primary-dark',
33782
- danger: 'bg-danger-dark',
33783
- success: 'bg-success-dark',
33784
- warning: 'bg-warning-dark',
33785
- focus: 'bg-focus'
33745
+ neutral: 'bg-inverted-2 text-base-1',
33746
+ neutralLight: 'bg-inverted-3 text-tertiary',
33747
+ primary: 'bg-primary-dark text-base-1',
33748
+ primaryLight: 'bg-primary-light text-primary-bold',
33749
+ danger: 'bg-danger-dark text-base-1',
33750
+ success: 'bg-success-dark text-base-1',
33751
+ warning: 'bg-warning-dark text-base-1',
33752
+ focus: 'bg-focus text-base-1'
33786
33753
  });
33787
33754
  var badgeRounded = ( /*#__PURE__*/cov_kguxyov05().s[1]++, {
33788
33755
  full: 'rounded-full',
@@ -33816,7 +33783,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
33816
33783
  return /*#__PURE__*/React__default.createElement("div", {
33817
33784
  className: "badge items-center justify-center " + badgeRounded[rounded] + " " + badgeClasses[size] + " " + badgeTypes[type] + " " + badgeSizes[size] + " " + (expanded ? (cov_kguxyov05().b[4][0]++, 'flex w-full') : (cov_kguxyov05().b[4][1]++, 'inline-flex'))
33818
33785
  }, /*#__PURE__*/React__default.createElement("span", {
33819
- className: "badgeText tracking-4 font-semibold " + (type === 'neutralLight' ? (cov_kguxyov05().b[5][0]++, 'text-tertiary') : (cov_kguxyov05().b[5][1]++, 'text-base-1'))
33786
+ className: "badgeText tracking-4 font-semibold"
33820
33787
  }, text));
33821
33788
  };
33822
33789
 
@@ -34789,7 +34756,7 @@ cov_1urw57c37o();
34789
34756
 
34790
34757
  function cov_1s85yl253c() {
34791
34758
  var path = "/runner/_work/admin-components/admin-components/styleguide/src/Indicators/InformationBox/InformationBox.tsx";
34792
- var hash = "868c34e4882b862ac7bea5129fb3bf091114f789";
34759
+ var hash = "bbddf25b9d522fb9cc25ddaaf1d133ec8011ff91";
34793
34760
  var global = new Function("return this")();
34794
34761
  var gcv = "__coverage__";
34795
34762
  var coverageData = {
@@ -34801,37 +34768,37 @@ function cov_1s85yl253c() {
34801
34768
  column: 28
34802
34769
  },
34803
34770
  end: {
34804
- line: 28,
34771
+ line: 32,
34805
34772
  column: 1
34806
34773
  }
34807
34774
  },
34808
34775
  "1": {
34809
34776
  start: {
34810
- line: 29,
34777
+ line: 33,
34811
34778
  column: 32
34812
34779
  },
34813
34780
  end: {
34814
- line: 37,
34781
+ line: 41,
34815
34782
  column: 1
34816
34783
  }
34817
34784
  },
34818
34785
  "2": {
34819
34786
  start: {
34820
- line: 30,
34787
+ line: 34,
34821
34788
  column: 4
34822
34789
  },
34823
34790
  end: {
34824
- line: 36,
34791
+ line: 40,
34825
34792
  column: 140
34826
34793
  }
34827
34794
  },
34828
34795
  "3": {
34829
34796
  start: {
34830
- line: 38,
34797
+ line: 42,
34831
34798
  column: 30
34832
34799
  },
34833
34800
  end: {
34834
- line: 38,
34801
+ line: 42,
34835
34802
  column: 65
34836
34803
  }
34837
34804
  }
@@ -34841,117 +34808,117 @@ function cov_1s85yl253c() {
34841
34808
  name: "(anonymous_0)",
34842
34809
  decl: {
34843
34810
  start: {
34844
- line: 29,
34811
+ line: 33,
34845
34812
  column: 32
34846
34813
  },
34847
34814
  end: {
34848
- line: 29,
34815
+ line: 33,
34849
34816
  column: 33
34850
34817
  }
34851
34818
  },
34852
34819
  loc: {
34853
34820
  start: {
34854
- line: 29,
34821
+ line: 33,
34855
34822
  column: 73
34856
34823
  },
34857
34824
  end: {
34858
- line: 37,
34825
+ line: 41,
34859
34826
  column: 1
34860
34827
  }
34861
34828
  },
34862
- line: 29
34829
+ line: 33
34863
34830
  }
34864
34831
  },
34865
34832
  branchMap: {
34866
34833
  "0": {
34867
34834
  loc: {
34868
34835
  start: {
34869
- line: 29,
34836
+ line: 33,
34870
34837
  column: 35
34871
34838
  },
34872
34839
  end: {
34873
- line: 29,
34840
+ line: 33,
34874
34841
  column: 48
34875
34842
  }
34876
34843
  },
34877
34844
  type: "default-arg",
34878
34845
  locations: [{
34879
34846
  start: {
34880
- line: 29,
34847
+ line: 33,
34881
34848
  column: 42
34882
34849
  },
34883
34850
  end: {
34884
- line: 29,
34851
+ line: 33,
34885
34852
  column: 48
34886
34853
  }
34887
34854
  }],
34888
- line: 29
34855
+ line: 33
34889
34856
  },
34890
34857
  "1": {
34891
34858
  loc: {
34892
34859
  start: {
34893
- line: 35,
34894
- column: 140
34860
+ line: 39,
34861
+ column: 141
34895
34862
  },
34896
34863
  end: {
34897
- line: 35,
34898
- column: 180
34864
+ line: 39,
34865
+ column: 181
34899
34866
  }
34900
34867
  },
34901
34868
  type: "binary-expr",
34902
34869
  locations: [{
34903
34870
  start: {
34904
- line: 35,
34905
- column: 140
34871
+ line: 39,
34872
+ column: 141
34906
34873
  },
34907
34874
  end: {
34908
- line: 35,
34909
- column: 145
34875
+ line: 39,
34876
+ column: 146
34910
34877
  }
34911
34878
  }, {
34912
34879
  start: {
34913
- line: 35,
34914
- column: 149
34880
+ line: 39,
34881
+ column: 150
34915
34882
  },
34916
34883
  end: {
34917
- line: 35,
34918
- column: 180
34884
+ line: 39,
34885
+ column: 181
34919
34886
  }
34920
34887
  }],
34921
- line: 35
34888
+ line: 39
34922
34889
  },
34923
34890
  "2": {
34924
34891
  loc: {
34925
34892
  start: {
34926
- line: 36,
34893
+ line: 40,
34927
34894
  column: 16
34928
34895
  },
34929
34896
  end: {
34930
- line: 36,
34897
+ line: 40,
34931
34898
  column: 135
34932
34899
  }
34933
34900
  },
34934
34901
  type: "binary-expr",
34935
34902
  locations: [{
34936
34903
  start: {
34937
- line: 36,
34904
+ line: 40,
34938
34905
  column: 16
34939
34906
  },
34940
34907
  end: {
34941
- line: 36,
34908
+ line: 40,
34942
34909
  column: 24
34943
34910
  }
34944
34911
  }, {
34945
34912
  start: {
34946
- line: 36,
34913
+ line: 40,
34947
34914
  column: 29
34948
34915
  },
34949
34916
  end: {
34950
- line: 36,
34917
+ line: 40,
34951
34918
  column: 134
34952
34919
  }
34953
34920
  }],
34954
- line: 36
34921
+ line: 40
34955
34922
  }
34956
34923
  },
34957
34924
  s: {
@@ -34969,7 +34936,7 @@ function cov_1s85yl253c() {
34969
34936
  "2": [0, 0]
34970
34937
  },
34971
34938
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34972
- hash: "868c34e4882b862ac7bea5129fb3bf091114f789"
34939
+ hash: "bbddf25b9d522fb9cc25ddaaf1d133ec8011ff91"
34973
34940
  };
34974
34941
  var coverage = global[gcv] || (global[gcv] = {});
34975
34942
 
@@ -34991,24 +34958,28 @@ cov_1s85yl253c();
34991
34958
  var InformationBoxTypes = ( /*#__PURE__*/cov_1s85yl253c().s[0]++, {
34992
34959
  success: {
34993
34960
  title: 'Sucesso!',
34961
+ titleClass: 'text-success-dark',
34994
34962
  "class": 'bg-success-light dark:bg-success border-success',
34995
34963
  icon: 'check',
34996
34964
  iconClass: 'text-success-dark'
34997
34965
  },
34998
34966
  warning: {
34999
34967
  title: 'Atenção!',
34968
+ titleClass: 'text-warning-bold',
35000
34969
  "class": 'bg-warning-light border-warning',
35001
34970
  icon: 'infoCircle',
35002
34971
  iconClass: 'text-warning-dark'
35003
34972
  },
35004
34973
  danger: {
35005
34974
  title: 'Cuidado!',
34975
+ titleClass: 'text-danger-dark',
35006
34976
  "class": 'bg-danger-light border-danger',
35007
34977
  icon: 'exclamationTriangle',
35008
34978
  iconClass: 'text-danger-dark'
35009
34979
  },
35010
34980
  info: {
35011
34981
  title: 'Informação',
34982
+ titleClass: 'text-focus-dark',
35012
34983
  "class": 'bg-focus-light border-focus-dark',
35013
34984
  icon: 'lightbulb',
35014
34985
  iconClass: 'text-focus-dark'
@@ -35036,7 +35007,7 @@ var InformationBoxComponent = function InformationBoxComponent(_ref) {
35036
35007
  }, /*#__PURE__*/React__default.createElement("div", {
35037
35008
  className: "flex flex-col justify-center min-w-0 break-words tracking-4 leading-6 text-on-base"
35038
35009
  }, /*#__PURE__*/React__default.createElement("span", {
35039
- className: "InformationBox-title text-f5 font-bold " + InformationBoxTypes[type].iconClass
35010
+ className: "InformationBox-title text-f5 font-bold " + InformationBoxTypes[type].titleClass
35040
35011
  }, (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__default.createElement("span", {
35041
35012
  className: "InformationBox-subtitle text-f6 font-regular mt-1"
35042
35013
  }, subtitle)))));