@weni/unnnic-system 2.0.7 → 2.0.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/style.css +1 -1
- package/dist/unnnic.mjs +11 -8
- package/dist/unnnic.umd.js +3 -3
- package/package.json +1 -1
- package/src/components/Icon.vue +1 -0
- package/src/components/StarRating/StarRating.vue +4 -4
- package/src/components/Switch/Switch.vue +2 -0
- package/src/locales/en.json +15 -15
- package/src/locales/es.json +15 -15
- package/src/locales/pt_br.json +15 -15
- package/src/stories/Input.stories.js +54 -38
- package/src/stories/StarRating.stories.js +9 -2
package/dist/unnnic.mjs
CHANGED
|
@@ -3922,6 +3922,7 @@ const Hz = /* @__PURE__ */ k(Sz, [["render", Dz]]), ro = {
|
|
|
3922
3922
|
};
|
|
3923
3923
|
const Pz = {
|
|
3924
3924
|
name: "Icon",
|
|
3925
|
+
emits: ["click", "mousedown", "mouseup"],
|
|
3925
3926
|
props: {
|
|
3926
3927
|
filled: {
|
|
3927
3928
|
type: Boolean
|
|
@@ -4014,7 +4015,7 @@ function Oz(e, i, n, s, r, o) {
|
|
|
4014
4015
|
])
|
|
4015
4016
|
}, null, 40, ["onClick", "class"]));
|
|
4016
4017
|
}
|
|
4017
|
-
const Q = /* @__PURE__ */ k(Pz, [["render", Oz], ["__scopeId", "data-v-
|
|
4018
|
+
const Q = /* @__PURE__ */ k(Pz, [["render", Oz], ["__scopeId", "data-v-58453bde"]]);
|
|
4018
4019
|
const Ez = {
|
|
4019
4020
|
components: {
|
|
4020
4021
|
BaseInput: qc,
|
|
@@ -16298,8 +16299,10 @@ function Vj(e, i, n, s, r, o) {
|
|
|
16298
16299
|
size: o.iconSize,
|
|
16299
16300
|
scheme: o.iconScheme,
|
|
16300
16301
|
lineHeight: o.iconLineHeight,
|
|
16302
|
+
disabled: n.disabled,
|
|
16303
|
+
clickable: !n.disabled,
|
|
16301
16304
|
onClick: o.toggleState
|
|
16302
|
-
}, null, 8, ["class", "icon", "size", "scheme", "lineHeight", "onClick"]),
|
|
16305
|
+
}, null, 8, ["class", "icon", "size", "scheme", "lineHeight", "disabled", "clickable", "onClick"]),
|
|
16303
16306
|
n.textRight ? (u(), m("div", {
|
|
16304
16307
|
key: 1,
|
|
16305
16308
|
class: T([
|
|
@@ -16310,7 +16313,7 @@ function Vj(e, i, n, s, r, o) {
|
|
|
16310
16313
|
}, L(n.textRight), 3)) : I("", !0)
|
|
16311
16314
|
]);
|
|
16312
16315
|
}
|
|
16313
|
-
const zj = /* @__PURE__ */ k(Dj, [["render", Vj], ["__scopeId", "data-v-
|
|
16316
|
+
const zj = /* @__PURE__ */ k(Dj, [["render", Vj], ["__scopeId", "data-v-2b8b5368"]]);
|
|
16314
16317
|
const Fj = {
|
|
16315
16318
|
name: "unnnic-slider",
|
|
16316
16319
|
components: {
|
|
@@ -17339,7 +17342,7 @@ const xY = {
|
|
|
17339
17342
|
UnnnicIcon: Q
|
|
17340
17343
|
},
|
|
17341
17344
|
props: {
|
|
17342
|
-
|
|
17345
|
+
modelValue: {
|
|
17343
17346
|
type: Number
|
|
17344
17347
|
},
|
|
17345
17348
|
showValue: {
|
|
@@ -17354,7 +17357,7 @@ const xY = {
|
|
|
17354
17357
|
},
|
|
17355
17358
|
methods: {
|
|
17356
17359
|
starScheme(e) {
|
|
17357
|
-
return e <= this.
|
|
17360
|
+
return e <= this.modelValue ? "feedback-yellow" : "neutral-clean";
|
|
17358
17361
|
}
|
|
17359
17362
|
}
|
|
17360
17363
|
}, bY = { class: "unnnic-star-rating" }, MY = {
|
|
@@ -17371,12 +17374,12 @@ function BY(e, i, n, s, r, o) {
|
|
|
17371
17374
|
size: "ant"
|
|
17372
17375
|
}, null, 8, ["scheme"])), 64)),
|
|
17373
17376
|
n.showValue ? (u(), m("div", MY, [
|
|
17374
|
-
c("span", SY, L(n.
|
|
17375
|
-
D1("/5.0 ")
|
|
17377
|
+
c("span", SY, L(n.modelValue.toFixed(1)), 1),
|
|
17378
|
+
D1(" /5.0 ")
|
|
17376
17379
|
])) : I("", !0)
|
|
17377
17380
|
]);
|
|
17378
17381
|
}
|
|
17379
|
-
const LY = /* @__PURE__ */ k(xY, [["render", BY], ["__scopeId", "data-v-
|
|
17382
|
+
const LY = /* @__PURE__ */ k(xY, [["render", BY], ["__scopeId", "data-v-a43c602d"]]);
|
|
17380
17383
|
const AY = {
|
|
17381
17384
|
components: {
|
|
17382
17385
|
UnnnicIcon: Q,
|