@loja-integrada/admin-components 0.18.11 → 0.18.13
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/Indicators/Badge/Badge.d.ts +2 -0
- package/dist/admin-components.cjs.development.js +108 -42
- package/dist/admin-components.cjs.development.js.map +1 -1
- package/dist/admin-components.cjs.production.min.js +1 -1
- package/dist/admin-components.cjs.production.min.js.map +1 -1
- package/dist/admin-components.esm.js +108 -42
- package/dist/admin-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Indicators/Badge/Badge.spec.tsx +8 -0
- package/src/Indicators/Badge/Badge.tsx +9 -1
- package/src/Indicators/Tooltip/style.scss +28 -45
- package/dist/admin-components.cjs.development.css +0 -1
- package/dist/admin-components.esm.css +0 -1
- package/dist/tailwind.css +0 -1
- package/src/tailwind.css +0 -7
|
@@ -30649,7 +30649,7 @@ cov_1qx0jflkbp();
|
|
|
30649
30649
|
|
|
30650
30650
|
function cov_l0ot8xbbf() {
|
|
30651
30651
|
var path = "/home/runner/work/admin-components/admin-components/styleguide/src/Indicators/Badge/Badge.tsx";
|
|
30652
|
-
var hash = "
|
|
30652
|
+
var hash = "f2a7c074383cf7496bcb9348fb1ade6e28d2f91a";
|
|
30653
30653
|
var global = new Function("return this")();
|
|
30654
30654
|
var gcv = "__coverage__";
|
|
30655
30655
|
var coverageData = {
|
|
@@ -30661,47 +30661,47 @@ function cov_l0ot8xbbf() {
|
|
|
30661
30661
|
column: 19
|
|
30662
30662
|
},
|
|
30663
30663
|
end: {
|
|
30664
|
-
line:
|
|
30664
|
+
line: 10,
|
|
30665
30665
|
column: 1
|
|
30666
30666
|
}
|
|
30667
30667
|
},
|
|
30668
30668
|
"1": {
|
|
30669
30669
|
start: {
|
|
30670
|
-
line:
|
|
30670
|
+
line: 11,
|
|
30671
30671
|
column: 19
|
|
30672
30672
|
},
|
|
30673
30673
|
end: {
|
|
30674
|
-
line:
|
|
30674
|
+
line: 14,
|
|
30675
30675
|
column: 1
|
|
30676
30676
|
}
|
|
30677
30677
|
},
|
|
30678
30678
|
"2": {
|
|
30679
30679
|
start: {
|
|
30680
|
-
line:
|
|
30680
|
+
line: 15,
|
|
30681
30681
|
column: 23
|
|
30682
30682
|
},
|
|
30683
30683
|
end: {
|
|
30684
|
-
line:
|
|
30684
|
+
line: 18,
|
|
30685
30685
|
column: 1
|
|
30686
30686
|
}
|
|
30687
30687
|
},
|
|
30688
30688
|
"3": {
|
|
30689
30689
|
start: {
|
|
30690
|
-
line:
|
|
30690
|
+
line: 16,
|
|
30691
30691
|
column: 4
|
|
30692
30692
|
},
|
|
30693
30693
|
end: {
|
|
30694
|
-
line:
|
|
30695
|
-
column:
|
|
30694
|
+
line: 17,
|
|
30695
|
+
column: 158
|
|
30696
30696
|
}
|
|
30697
30697
|
},
|
|
30698
30698
|
"4": {
|
|
30699
30699
|
start: {
|
|
30700
|
-
line:
|
|
30700
|
+
line: 19,
|
|
30701
30701
|
column: 21
|
|
30702
30702
|
},
|
|
30703
30703
|
end: {
|
|
30704
|
-
line:
|
|
30704
|
+
line: 19,
|
|
30705
30705
|
column: 47
|
|
30706
30706
|
}
|
|
30707
30707
|
}
|
|
@@ -30711,132 +30711,165 @@ function cov_l0ot8xbbf() {
|
|
|
30711
30711
|
name: "(anonymous_0)",
|
|
30712
30712
|
decl: {
|
|
30713
30713
|
start: {
|
|
30714
|
-
line:
|
|
30714
|
+
line: 15,
|
|
30715
30715
|
column: 23
|
|
30716
30716
|
},
|
|
30717
30717
|
end: {
|
|
30718
|
-
line:
|
|
30718
|
+
line: 15,
|
|
30719
30719
|
column: 24
|
|
30720
30720
|
}
|
|
30721
30721
|
},
|
|
30722
30722
|
loc: {
|
|
30723
30723
|
start: {
|
|
30724
|
-
line:
|
|
30724
|
+
line: 15,
|
|
30725
30725
|
column: 92
|
|
30726
30726
|
},
|
|
30727
30727
|
end: {
|
|
30728
|
-
line:
|
|
30728
|
+
line: 18,
|
|
30729
30729
|
column: 1
|
|
30730
30730
|
}
|
|
30731
30731
|
},
|
|
30732
|
-
line:
|
|
30732
|
+
line: 15
|
|
30733
30733
|
}
|
|
30734
30734
|
},
|
|
30735
30735
|
branchMap: {
|
|
30736
30736
|
"0": {
|
|
30737
30737
|
loc: {
|
|
30738
30738
|
start: {
|
|
30739
|
-
line:
|
|
30739
|
+
line: 15,
|
|
30740
30740
|
column: 26
|
|
30741
30741
|
},
|
|
30742
30742
|
end: {
|
|
30743
|
-
line:
|
|
30743
|
+
line: 15,
|
|
30744
30744
|
column: 42
|
|
30745
30745
|
}
|
|
30746
30746
|
},
|
|
30747
30747
|
type: "default-arg",
|
|
30748
30748
|
locations: [{
|
|
30749
30749
|
start: {
|
|
30750
|
-
line:
|
|
30750
|
+
line: 15,
|
|
30751
30751
|
column: 33
|
|
30752
30752
|
},
|
|
30753
30753
|
end: {
|
|
30754
|
-
line:
|
|
30754
|
+
line: 15,
|
|
30755
30755
|
column: 42
|
|
30756
30756
|
}
|
|
30757
30757
|
}],
|
|
30758
|
-
line:
|
|
30758
|
+
line: 15
|
|
30759
30759
|
},
|
|
30760
30760
|
"1": {
|
|
30761
30761
|
loc: {
|
|
30762
30762
|
start: {
|
|
30763
|
-
line:
|
|
30763
|
+
line: 15,
|
|
30764
30764
|
column: 50
|
|
30765
30765
|
},
|
|
30766
30766
|
end: {
|
|
30767
|
-
line:
|
|
30767
|
+
line: 15,
|
|
30768
30768
|
column: 66
|
|
30769
30769
|
}
|
|
30770
30770
|
},
|
|
30771
30771
|
type: "default-arg",
|
|
30772
30772
|
locations: [{
|
|
30773
30773
|
start: {
|
|
30774
|
-
line:
|
|
30774
|
+
line: 15,
|
|
30775
30775
|
column: 57
|
|
30776
30776
|
},
|
|
30777
30777
|
end: {
|
|
30778
|
-
line:
|
|
30778
|
+
line: 15,
|
|
30779
30779
|
column: 66
|
|
30780
30780
|
}
|
|
30781
30781
|
}],
|
|
30782
|
-
line:
|
|
30782
|
+
line: 15
|
|
30783
30783
|
},
|
|
30784
30784
|
"2": {
|
|
30785
30785
|
loc: {
|
|
30786
30786
|
start: {
|
|
30787
|
-
line:
|
|
30787
|
+
line: 15,
|
|
30788
30788
|
column: 68
|
|
30789
30789
|
},
|
|
30790
30790
|
end: {
|
|
30791
|
-
line:
|
|
30791
|
+
line: 15,
|
|
30792
30792
|
column: 84
|
|
30793
30793
|
}
|
|
30794
30794
|
},
|
|
30795
30795
|
type: "default-arg",
|
|
30796
30796
|
locations: [{
|
|
30797
30797
|
start: {
|
|
30798
|
-
line:
|
|
30798
|
+
line: 15,
|
|
30799
30799
|
column: 79
|
|
30800
30800
|
},
|
|
30801
30801
|
end: {
|
|
30802
|
-
line:
|
|
30802
|
+
line: 15,
|
|
30803
30803
|
column: 84
|
|
30804
30804
|
}
|
|
30805
30805
|
}],
|
|
30806
|
-
line:
|
|
30806
|
+
line: 15
|
|
30807
30807
|
},
|
|
30808
30808
|
"3": {
|
|
30809
30809
|
loc: {
|
|
30810
30810
|
start: {
|
|
30811
|
-
line:
|
|
30811
|
+
line: 16,
|
|
30812
30812
|
column: 142
|
|
30813
30813
|
},
|
|
30814
30814
|
end: {
|
|
30815
|
-
line:
|
|
30815
|
+
line: 16,
|
|
30816
30816
|
column: 182
|
|
30817
30817
|
}
|
|
30818
30818
|
},
|
|
30819
30819
|
type: "cond-expr",
|
|
30820
30820
|
locations: [{
|
|
30821
30821
|
start: {
|
|
30822
|
-
line:
|
|
30822
|
+
line: 16,
|
|
30823
30823
|
column: 153
|
|
30824
30824
|
},
|
|
30825
30825
|
end: {
|
|
30826
|
-
line:
|
|
30826
|
+
line: 16,
|
|
30827
30827
|
column: 166
|
|
30828
30828
|
}
|
|
30829
30829
|
}, {
|
|
30830
30830
|
start: {
|
|
30831
|
-
line:
|
|
30831
|
+
line: 16,
|
|
30832
30832
|
column: 169
|
|
30833
30833
|
},
|
|
30834
30834
|
end: {
|
|
30835
|
-
line:
|
|
30835
|
+
line: 16,
|
|
30836
30836
|
column: 182
|
|
30837
30837
|
}
|
|
30838
30838
|
}],
|
|
30839
|
-
line:
|
|
30839
|
+
line: 16
|
|
30840
|
+
},
|
|
30841
|
+
"4": {
|
|
30842
|
+
loc: {
|
|
30843
|
+
start: {
|
|
30844
|
+
line: 17,
|
|
30845
|
+
column: 87
|
|
30846
|
+
},
|
|
30847
|
+
end: {
|
|
30848
|
+
line: 17,
|
|
30849
|
+
column: 144
|
|
30850
|
+
}
|
|
30851
|
+
},
|
|
30852
|
+
type: "cond-expr",
|
|
30853
|
+
locations: [{
|
|
30854
|
+
start: {
|
|
30855
|
+
line: 17,
|
|
30856
|
+
column: 113
|
|
30857
|
+
},
|
|
30858
|
+
end: {
|
|
30859
|
+
line: 17,
|
|
30860
|
+
column: 128
|
|
30861
|
+
}
|
|
30862
|
+
}, {
|
|
30863
|
+
start: {
|
|
30864
|
+
line: 17,
|
|
30865
|
+
column: 131
|
|
30866
|
+
},
|
|
30867
|
+
end: {
|
|
30868
|
+
line: 17,
|
|
30869
|
+
column: 144
|
|
30870
|
+
}
|
|
30871
|
+
}],
|
|
30872
|
+
line: 17
|
|
30840
30873
|
}
|
|
30841
30874
|
},
|
|
30842
30875
|
s: {
|
|
@@ -30853,10 +30886,11 @@ function cov_l0ot8xbbf() {
|
|
|
30853
30886
|
"0": [0],
|
|
30854
30887
|
"1": [0],
|
|
30855
30888
|
"2": [0],
|
|
30856
|
-
"3": [0, 0]
|
|
30889
|
+
"3": [0, 0],
|
|
30890
|
+
"4": [0, 0]
|
|
30857
30891
|
},
|
|
30858
30892
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
30859
|
-
hash: "
|
|
30893
|
+
hash: "f2a7c074383cf7496bcb9348fb1ade6e28d2f91a"
|
|
30860
30894
|
};
|
|
30861
30895
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
30862
30896
|
|
|
@@ -30877,10 +30911,12 @@ function cov_l0ot8xbbf() {
|
|
|
30877
30911
|
cov_l0ot8xbbf();
|
|
30878
30912
|
var badgeTypes = ( /*#__PURE__*/cov_l0ot8xbbf().s[0]++, {
|
|
30879
30913
|
neutral: 'bg-inverted-2',
|
|
30914
|
+
neutralLight: 'bg-inverted-3',
|
|
30880
30915
|
primary: 'bg-primary-dark',
|
|
30881
30916
|
danger: 'bg-danger-dark',
|
|
30882
30917
|
success: 'bg-success-dark',
|
|
30883
|
-
warning: 'bg-warning-dark'
|
|
30918
|
+
warning: 'bg-warning-dark',
|
|
30919
|
+
focus: 'bg-focus'
|
|
30884
30920
|
});
|
|
30885
30921
|
var badgeSizes = ( /*#__PURE__*/cov_l0ot8xbbf().s[1]++, {
|
|
30886
30922
|
"default": 'px-2 py-0.5 text-xs',
|
|
@@ -30901,7 +30937,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
|
|
|
30901
30937
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
30902
30938
|
className: "badge items-center justify-center rounded-full " + badgeTypes[type] + " " + badgeSizes[size] + " " + (expanded ? (cov_l0ot8xbbf().b[3][0]++, 'flex w-full') : (cov_l0ot8xbbf().b[3][1]++, 'inline-flex'))
|
|
30903
30939
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
30904
|
-
className: "tracking-4 font-semibold text-base-1
|
|
30940
|
+
className: "badgeText tracking-4 font-semibold " + (type === 'neutralLight' ? (cov_l0ot8xbbf().b[4][0]++, 'text-tertiary') : (cov_l0ot8xbbf().b[4][1]++, 'text-base-1'))
|
|
30905
30941
|
}, text));
|
|
30906
30942
|
};
|
|
30907
30943
|
|
|
@@ -30941,6 +30977,36 @@ function cov_1ubkigkubq() {
|
|
|
30941
30977
|
|
|
30942
30978
|
cov_1ubkigkubq();
|
|
30943
30979
|
|
|
30980
|
+
function styleInject(css, ref) {
|
|
30981
|
+
if ( ref === void 0 ) ref = {};
|
|
30982
|
+
var insertAt = ref.insertAt;
|
|
30983
|
+
|
|
30984
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
30985
|
+
|
|
30986
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
30987
|
+
var style = document.createElement('style');
|
|
30988
|
+
style.type = 'text/css';
|
|
30989
|
+
|
|
30990
|
+
if (insertAt === 'top') {
|
|
30991
|
+
if (head.firstChild) {
|
|
30992
|
+
head.insertBefore(style, head.firstChild);
|
|
30993
|
+
} else {
|
|
30994
|
+
head.appendChild(style);
|
|
30995
|
+
}
|
|
30996
|
+
} else {
|
|
30997
|
+
head.appendChild(style);
|
|
30998
|
+
}
|
|
30999
|
+
|
|
31000
|
+
if (style.styleSheet) {
|
|
31001
|
+
style.styleSheet.cssText = css;
|
|
31002
|
+
} else {
|
|
31003
|
+
style.appendChild(document.createTextNode(css));
|
|
31004
|
+
}
|
|
31005
|
+
}
|
|
31006
|
+
|
|
31007
|
+
var css_248z = ".tippy-box{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(var(--color-inverted-1)/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(var(--color-base-1)/var(--tw-text-opacity));font-size:.75rem;letter-spacing:-.025rem;line-height:1rem;outline-width:0;position:relative;transition-duration:.2s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-box [data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-.5rem;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-.5rem;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-.5rem;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-.5rem;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-box .tippy-arrow{--tw-text-opacity:1;color:rgb(var(--color-inverted-1)/var(--tw-text-opacity));height:1rem;width:1rem}.tippy-box .tippy-arrow:before{border-color:transparent;border-style:solid;content:\"\";position:absolute}.tippy-box .tippy-content{padding:.75rem .5rem;position:relative;z-index:1}";
|
|
31008
|
+
styleInject(css_248z,{"insertAt":"top"});
|
|
31009
|
+
|
|
30944
31010
|
function cov_pl86i0mw8() {
|
|
30945
31011
|
var path = "/home/runner/work/admin-components/admin-components/styleguide/src/Indicators/Tooltip/Tooltip.tsx";
|
|
30946
31012
|
var hash = "c83e898932a3819ae7f92fa010a4612fcee3bd2a";
|