@loja-integrada/admin-components 0.18.8 → 0.18.9
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/InformationBox/InformationBox.d.ts +3 -3
- package/dist/admin-components.cjs.development.js +42 -7
- 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 +42 -7
- package/dist/admin-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Components/Button/Button.tsx +1 -1
- package/src/Indicators/InformationBox/InformationBox.tsx +4 -3
- package/src/Indicators/InformationBox/InformationBoxt.stories.tsx +2 -2
|
@@ -7,14 +7,14 @@ declare const InformationBoxTypes: Record<InformationBoxTypesOptions, {
|
|
|
7
7
|
icon: IconProps['icon'];
|
|
8
8
|
iconClass: string;
|
|
9
9
|
}>;
|
|
10
|
-
export declare const InformationBox: React.MemoExoticComponent<({ type, subtitle, }: InformationBoxProps) => JSX.Element>;
|
|
10
|
+
export declare const InformationBox: React.MemoExoticComponent<({ type, subtitle, title, }: InformationBoxProps) => JSX.Element>;
|
|
11
11
|
export interface InformationBoxProps {
|
|
12
12
|
/** InformationBox color
|
|
13
13
|
* @default info
|
|
14
14
|
* */
|
|
15
15
|
type?: keyof typeof InformationBoxTypes;
|
|
16
|
-
/**
|
|
17
|
-
* @default
|
|
16
|
+
/** Title default is related with `type`
|
|
17
|
+
* @default ''
|
|
18
18
|
*/
|
|
19
19
|
title?: string | React.ReactNode;
|
|
20
20
|
/**
|
|
@@ -8107,7 +8107,7 @@ var listOfStylesDisabled = ( /*#__PURE__*/cov_1pxac4ky7h().s[5]++, {
|
|
|
8107
8107
|
warning: defaultDisabledStyle,
|
|
8108
8108
|
danger: defaultDisabledStyle,
|
|
8109
8109
|
outline: defaultDisabledStyle,
|
|
8110
|
-
onlyText: "bg-transparent text-on-base-3 shadow-none ring-0 border-0"
|
|
8110
|
+
onlyText: "bg-transparent text-on-base-3 shadow-none ring-0 border-0 "
|
|
8111
8111
|
});
|
|
8112
8112
|
var listOfSizes = ( /*#__PURE__*/cov_1pxac4ky7h().s[6]++, {
|
|
8113
8113
|
small: "text-f6 h-10",
|
|
@@ -32003,7 +32003,7 @@ cov_cpob1dc60();
|
|
|
32003
32003
|
|
|
32004
32004
|
function cov_1jf3a2oeve() {
|
|
32005
32005
|
var path = "/home/runner/work/admin-components/admin-components/styleguide/src/Indicators/InformationBox/InformationBox.tsx";
|
|
32006
|
-
var hash = "
|
|
32006
|
+
var hash = "bcef104df454fc577d7b4fe2c6b49cc9a8f86f64";
|
|
32007
32007
|
var global = new Function("return this")();
|
|
32008
32008
|
var gcv = "__coverage__";
|
|
32009
32009
|
var coverageData = {
|
|
@@ -32066,7 +32066,7 @@ function cov_1jf3a2oeve() {
|
|
|
32066
32066
|
loc: {
|
|
32067
32067
|
start: {
|
|
32068
32068
|
line: 29,
|
|
32069
|
-
column:
|
|
32069
|
+
column: 72
|
|
32070
32070
|
},
|
|
32071
32071
|
end: {
|
|
32072
32072
|
line: 37,
|
|
@@ -32102,6 +32102,39 @@ function cov_1jf3a2oeve() {
|
|
|
32102
32102
|
line: 29
|
|
32103
32103
|
},
|
|
32104
32104
|
"1": {
|
|
32105
|
+
loc: {
|
|
32106
|
+
start: {
|
|
32107
|
+
line: 35,
|
|
32108
|
+
column: 140
|
|
32109
|
+
},
|
|
32110
|
+
end: {
|
|
32111
|
+
line: 35,
|
|
32112
|
+
column: 180
|
|
32113
|
+
}
|
|
32114
|
+
},
|
|
32115
|
+
type: "binary-expr",
|
|
32116
|
+
locations: [{
|
|
32117
|
+
start: {
|
|
32118
|
+
line: 35,
|
|
32119
|
+
column: 140
|
|
32120
|
+
},
|
|
32121
|
+
end: {
|
|
32122
|
+
line: 35,
|
|
32123
|
+
column: 145
|
|
32124
|
+
}
|
|
32125
|
+
}, {
|
|
32126
|
+
start: {
|
|
32127
|
+
line: 35,
|
|
32128
|
+
column: 149
|
|
32129
|
+
},
|
|
32130
|
+
end: {
|
|
32131
|
+
line: 35,
|
|
32132
|
+
column: 180
|
|
32133
|
+
}
|
|
32134
|
+
}],
|
|
32135
|
+
line: 35
|
|
32136
|
+
},
|
|
32137
|
+
"2": {
|
|
32105
32138
|
loc: {
|
|
32106
32139
|
start: {
|
|
32107
32140
|
line: 36,
|
|
@@ -32146,10 +32179,11 @@ function cov_1jf3a2oeve() {
|
|
|
32146
32179
|
},
|
|
32147
32180
|
b: {
|
|
32148
32181
|
"0": [0],
|
|
32149
|
-
"1": [0, 0]
|
|
32182
|
+
"1": [0, 0],
|
|
32183
|
+
"2": [0, 0]
|
|
32150
32184
|
},
|
|
32151
32185
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
32152
|
-
hash: "
|
|
32186
|
+
hash: "bcef104df454fc577d7b4fe2c6b49cc9a8f86f64"
|
|
32153
32187
|
};
|
|
32154
32188
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
32155
32189
|
|
|
@@ -32199,7 +32233,8 @@ cov_1jf3a2oeve().s[1]++;
|
|
|
32199
32233
|
var InformationBoxComponent = function InformationBoxComponent(_ref) {
|
|
32200
32234
|
var _ref$type = _ref.type,
|
|
32201
32235
|
type = _ref$type === void 0 ? (cov_1jf3a2oeve().b[0][0]++, 'tip') : _ref$type,
|
|
32202
|
-
subtitle = _ref.subtitle
|
|
32236
|
+
subtitle = _ref.subtitle,
|
|
32237
|
+
title = _ref.title;
|
|
32203
32238
|
cov_1jf3a2oeve().f[0]++;
|
|
32204
32239
|
cov_1jf3a2oeve().s[2]++;
|
|
32205
32240
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -32216,7 +32251,7 @@ var InformationBoxComponent = function InformationBoxComponent(_ref) {
|
|
|
32216
32251
|
className: "flex flex-col justify-center min-w-0 break-words tracking-4 leading-6 text-on-base"
|
|
32217
32252
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
32218
32253
|
className: "InformationBox-title text-f5 font-bold " + InformationBoxTypes[type].iconClass
|
|
32219
|
-
}, InformationBoxTypes[type].title), (cov_1jf3a2oeve().b[
|
|
32254
|
+
}, (cov_1jf3a2oeve().b[1][0]++, title) || (cov_1jf3a2oeve().b[1][1]++, InformationBoxTypes[type].title)), (cov_1jf3a2oeve().b[2][0]++, subtitle) && (cov_1jf3a2oeve().b[2][1]++, /*#__PURE__*/React__default.createElement("span", {
|
|
32220
32255
|
className: "InformationBox-subtitle text-f6 font-regular mt-1"
|
|
32221
32256
|
}, subtitle)))));
|
|
32222
32257
|
};
|