@everchron/ec-shards 9.14.4 → 9.14.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.
- package/dist/ec-shards.js +19 -5
- package/dist/ec-shards.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -14882,6 +14882,12 @@ const J_ = /* @__PURE__ */ y(Ab, [["render", Ob], ["__scopeId", "data-v-4334fe7e
|
|
|
14882
14882
|
clickable: {
|
|
14883
14883
|
type: Boolean,
|
|
14884
14884
|
default: !1
|
|
14885
|
+
},
|
|
14886
|
+
/** Determines the font family to use. */
|
|
14887
|
+
font: {
|
|
14888
|
+
type: String,
|
|
14889
|
+
default: "sans",
|
|
14890
|
+
validator: (e) => ["sans", "mono"].includes(e)
|
|
14885
14891
|
}
|
|
14886
14892
|
},
|
|
14887
14893
|
computed: {
|
|
@@ -14963,6 +14969,14 @@ const J_ = /* @__PURE__ */ y(Ab, [["render", Ob], ["__scopeId", "data-v-4334fe7e
|
|
|
14963
14969
|
},
|
|
14964
14970
|
alignClass() {
|
|
14965
14971
|
return this.align ? `text-align-${this.align}` : null;
|
|
14972
|
+
},
|
|
14973
|
+
fontClass() {
|
|
14974
|
+
return this.font === "mono" ? "ecs-text-mono" : null;
|
|
14975
|
+
},
|
|
14976
|
+
fontSizeStyle() {
|
|
14977
|
+
return this.font === "mono" ? {
|
|
14978
|
+
fontSize: `calc(var(--type-scale-${parseInt(this.scale) || 3}-font-size) - 1px)`
|
|
14979
|
+
} : null;
|
|
14966
14980
|
}
|
|
14967
14981
|
},
|
|
14968
14982
|
methods: {
|
|
@@ -14981,8 +14995,8 @@ function Nb(e, s, t, a, n, i) {
|
|
|
14981
14995
|
}, {
|
|
14982
14996
|
default: w(() => [
|
|
14983
14997
|
(o(), g(ue(i.textTag), {
|
|
14984
|
-
class: v([[i.typeScaleClass, i.weightClass, i.alignClass, t.preset], "ecs-text"]),
|
|
14985
|
-
style: z(i.colorStyle)
|
|
14998
|
+
class: v([[i.typeScaleClass, i.weightClass, i.alignClass, t.preset, i.fontClass], "ecs-text"]),
|
|
14999
|
+
style: z([i.colorStyle, i.fontSizeStyle])
|
|
14986
15000
|
}, {
|
|
14987
15001
|
default: w(() => [
|
|
14988
15002
|
p(e.$slots, "default", {}, void 0, !0)
|
|
@@ -14993,8 +15007,8 @@ function Nb(e, s, t, a, n, i) {
|
|
|
14993
15007
|
_: 3
|
|
14994
15008
|
}, 8, ["onClick", "style"])) : (o(), g(ue(i.textTag), {
|
|
14995
15009
|
key: 1,
|
|
14996
|
-
class: v([[i.typeScaleClass, i.weightClass, i.alignClass, t.preset], "ecs-text"]),
|
|
14997
|
-
style: z(i.colorStyle)
|
|
15010
|
+
class: v([[i.typeScaleClass, i.weightClass, i.alignClass, t.preset, i.fontClass], "ecs-text"]),
|
|
15011
|
+
style: z([i.colorStyle, i.fontSizeStyle])
|
|
14998
15012
|
}, {
|
|
14999
15013
|
default: w(() => [
|
|
15000
15014
|
p(e.$slots, "default", {}, void 0, !0)
|
|
@@ -15002,7 +15016,7 @@ function Nb(e, s, t, a, n, i) {
|
|
|
15002
15016
|
_: 3
|
|
15003
15017
|
}, 8, ["class", "style"]));
|
|
15004
15018
|
}
|
|
15005
|
-
const Q_ = /* @__PURE__ */ y(Db, [["render", Nb], ["__scopeId", "data-v-
|
|
15019
|
+
const Q_ = /* @__PURE__ */ y(Db, [["render", Nb], ["__scopeId", "data-v-594055ce"]]), Vb = {
|
|
15006
15020
|
name: "ecs-toast",
|
|
15007
15021
|
emits: ["action"],
|
|
15008
15022
|
components: { EcsFocusRing: D },
|