eco-vue-js 0.10.54 → 0.10.55
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 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfoCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoCard/WInfoCard.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfoCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoCard/WInfoCard.vue"],"names":[],"mappings":"AA6BA;AA+CA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;AAIjD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAC;AAKF,iBAAS,cAAc;WA2DT,OAAO,IAA6B;;qBAZzB,GAAG;yBACC,GAAG;wBACJ,GAAG;;;;EAe9B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -4,7 +4,7 @@ import { SemanticType } from '../../utils/SemanticType.js';
|
|
4
4
|
import { infoCardSemanticTypeMap, infoCardIconSemanticTypeMap } from './models/utils.js';
|
5
5
|
|
6
6
|
const _hoisted_1 = { class: "-gap--inner-margin grid grid-cols-[auto,1fr]" };
|
7
|
-
const _hoisted_2 = { class: "text-pretty
|
7
|
+
const _hoisted_2 = { class: "text-pretty leading-relaxed" };
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
9
|
__name: "WInfoCard",
|
10
10
|
props: {
|
@@ -24,9 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
createElementVNode("div", _hoisted_1, [
|
25
25
|
!_ctx.noIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? unref(IconNegativeInfo)), {
|
26
26
|
key: 0,
|
27
|
-
class: normalizeClass(["square-
|
27
|
+
class: normalizeClass(["square-[1.5em] inline-block", {
|
28
28
|
[unref(infoCardIconSemanticTypeMap)[_ctx.semanticType ?? unref(SemanticType).SECONDARY]]: true,
|
29
|
-
"rotate-180": !_ctx.icon
|
29
|
+
"rotate-180": !_ctx.icon && _ctx.semanticType !== unref(SemanticType).WARNING && _ctx.semanticType !== unref(SemanticType).NEGARIVE,
|
30
|
+
"[&_*]:stroke-2": !_ctx.icon
|
30
31
|
}])
|
31
32
|
}, null, 8, ["class"])) : createCommentVNode("", true),
|
32
33
|
createElementVNode("div", _hoisted_2, [
|
@@ -5,7 +5,7 @@ const infoCardSemanticTypeMap = {
|
|
5
5
|
[SemanticType.SECONDARY]: "bg-gray-100 dark:bg-gray-800",
|
6
6
|
[SemanticType.POSITIVE]: "bg-positive/10 dark:bg-positive-dark/10",
|
7
7
|
[SemanticType.NEGARIVE]: "bg-negative/10 dark:bg-negative-dark/10",
|
8
|
-
[SemanticType.WARNING]: "bg-warning/
|
8
|
+
[SemanticType.WARNING]: "bg-warning/20 dark:bg-warning-dark/10",
|
9
9
|
[SemanticType.INFO]: "bg-info/10 dark:bg-info-dark/10"
|
10
10
|
};
|
11
11
|
const infoCardIconSemanticTypeMap = {
|
package/package.json
CHANGED