@oub/fusion 0.2.46 → 0.2.48
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/components/form/checkbox/FusionCheckbox.vue.d.ts +10 -0
- package/dist/fusion.js +23 -24
- package/dist/fusion.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/dist/themes.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/variables/_components.scss +19 -11
- package/dist/variables/_fused.scss +6 -0
- package/package.json +1 -1
|
@@ -37,12 +37,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
|
+
error: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
40
44
|
}, unknown, {
|
|
41
45
|
checked: boolean;
|
|
42
46
|
}, {
|
|
43
47
|
stateClasses(): {
|
|
44
48
|
disabled: boolean;
|
|
45
49
|
"gap-xs": boolean;
|
|
50
|
+
error: boolean;
|
|
46
51
|
};
|
|
47
52
|
}, {
|
|
48
53
|
handleChange(e: Event): void;
|
|
@@ -85,6 +90,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
90
|
type: StringConstructor;
|
|
86
91
|
default: string;
|
|
87
92
|
};
|
|
93
|
+
error: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
88
97
|
}>> & {
|
|
89
98
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
90
99
|
}, {
|
|
@@ -93,6 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
102
|
dataTest: string;
|
|
94
103
|
value: string;
|
|
95
104
|
disabled: boolean;
|
|
105
|
+
error: boolean;
|
|
96
106
|
tabIndex: number;
|
|
97
107
|
defaultValue: boolean;
|
|
98
108
|
helperText: string;
|
package/dist/fusion.js
CHANGED
|
@@ -363,7 +363,7 @@ function mi(e, t, n, r, a, o) {
|
|
|
363
363
|
}, [
|
|
364
364
|
e.errorLabel ? (v(), k("div", {
|
|
365
365
|
key: 0,
|
|
366
|
-
class: ne(["fusion-textarea error-label", e.stateClasses])
|
|
366
|
+
class: ne(["fusion-textarea error-label-wrapper", e.stateClasses])
|
|
367
367
|
}, [
|
|
368
368
|
Se(i, { "data-test": "error-icon" }),
|
|
369
369
|
S("span", pi, fe(e.errorLabel), 1)
|
|
@@ -380,7 +380,7 @@ function mi(e, t, n, r, a, o) {
|
|
|
380
380
|
]))
|
|
381
381
|
], 8, li);
|
|
382
382
|
}
|
|
383
|
-
const y0 = /* @__PURE__ */ Ne(ii, [["render", mi], ["__scopeId", "data-v-
|
|
383
|
+
const y0 = /* @__PURE__ */ Ne(ii, [["render", mi], ["__scopeId", "data-v-bb3f9cc7"]]), gi = Ce({
|
|
384
384
|
name: "SVGTick"
|
|
385
385
|
}), hi = {
|
|
386
386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -435,6 +435,10 @@ const ki = /* @__PURE__ */ Ne(gi, [["render", Ai]]), wi = Ce({
|
|
|
435
435
|
dataTest: {
|
|
436
436
|
type: String,
|
|
437
437
|
default: "fusion-checkbox"
|
|
438
|
+
},
|
|
439
|
+
error: {
|
|
440
|
+
type: Boolean,
|
|
441
|
+
default: !1
|
|
438
442
|
}
|
|
439
443
|
},
|
|
440
444
|
emits: ["update:modelValue"],
|
|
@@ -447,7 +451,8 @@ const ki = /* @__PURE__ */ Ne(gi, [["render", Ai]]), wi = Ce({
|
|
|
447
451
|
stateClasses() {
|
|
448
452
|
return {
|
|
449
453
|
disabled: this.disabled,
|
|
450
|
-
"gap-xs": !!this.label
|
|
454
|
+
"gap-xs": !!this.label,
|
|
455
|
+
error: this.error
|
|
451
456
|
};
|
|
452
457
|
}
|
|
453
458
|
},
|
|
@@ -503,7 +508,7 @@ function Fi(e, t, n, r, a, o) {
|
|
|
503
508
|
name: e.name,
|
|
504
509
|
value: e.value,
|
|
505
510
|
tabindex: e.tabIndex,
|
|
506
|
-
"data-test": "fusion-input",
|
|
511
|
+
"data-test": "fusion-checkbox-input",
|
|
507
512
|
onClick: t[0] || (t[0] = (...l) => e.handleChange && e.handleChange(...l))
|
|
508
513
|
}, null, 10, Di),
|
|
509
514
|
e.checked ? (v(), k("span", Pi, [
|
|
@@ -517,7 +522,7 @@ function Fi(e, t, n, r, a, o) {
|
|
|
517
522
|
oe(e.$slots, "default", {}, void 0, !0)
|
|
518
523
|
], 10, Ci);
|
|
519
524
|
}
|
|
520
|
-
const Oi = /* @__PURE__ */ Ne(wi, [["render", Fi], ["__scopeId", "data-v-
|
|
525
|
+
const Oi = /* @__PURE__ */ Ne(wi, [["render", Fi], ["__scopeId", "data-v-6a48f2b1"]]), Ii = Ce({
|
|
521
526
|
name: "FusionRadio",
|
|
522
527
|
props: {
|
|
523
528
|
id: {
|
|
@@ -1220,7 +1225,7 @@ function Tl(e, t, n, r, a, o) {
|
|
|
1220
1225
|
oe(e.$slots, "content", {}, void 0, !0)
|
|
1221
1226
|
], 10, Al);
|
|
1222
1227
|
}
|
|
1223
|
-
const Vn = /* @__PURE__ */ Ne(bl, [["render", Tl], ["__scopeId", "data-v-
|
|
1228
|
+
const Vn = /* @__PURE__ */ Ne(bl, [["render", Tl], ["__scopeId", "data-v-10f7ca3f"]]), Bl = Ce({
|
|
1224
1229
|
name: "FusionPanel",
|
|
1225
1230
|
components: { SVGSearch: Er, CheckCircle: Qn, FusionLoadingSpinner: Fn, SVGInbox: il, FusionInput: Vn, OnClickOutside: zi },
|
|
1226
1231
|
props: {
|
|
@@ -1673,14 +1678,14 @@ function ps(e, t, n, r, a, o) {
|
|
|
1673
1678
|
}, null, 8, ["select-id", "options", "search-text", "search-disabled", "search-placeholder", "search-loading", "search-error-title", "search-error-description", "selected", "onHandle:select", "onHandle:close"])) : Q("", !0),
|
|
1674
1679
|
e.errorLabel ? (v(), k("div", {
|
|
1675
1680
|
key: 1,
|
|
1676
|
-
class: ne(["fusion-select error-
|
|
1681
|
+
class: ne(["fusion-select error-wrapper", e.stateClasses])
|
|
1677
1682
|
}, [
|
|
1678
|
-
Se(u),
|
|
1683
|
+
Se(u, { "data-test": "error-icon" }),
|
|
1679
1684
|
S("span", cs, fe(e.errorLabel), 1)
|
|
1680
1685
|
], 2)) : Q("", !0)
|
|
1681
1686
|
], 8, rs);
|
|
1682
1687
|
}
|
|
1683
|
-
const k0 = /* @__PURE__ */ Ne(ns, [["render", ps], ["__scopeId", "data-v-
|
|
1688
|
+
const k0 = /* @__PURE__ */ Ne(ns, [["render", ps], ["__scopeId", "data-v-cbd3b01d"]]), fs = Ce({
|
|
1684
1689
|
name: "FusionPasswordInput",
|
|
1685
1690
|
components: {
|
|
1686
1691
|
FusionInput: Vn,
|
|
@@ -2688,11 +2693,8 @@ const Ns = ["data-test"], Ms = { class: "fusion-phone-input-label-container" },
|
|
|
2688
2693
|
class: "select-panel-wrapper"
|
|
2689
2694
|
}, Es = {
|
|
2690
2695
|
key: 0,
|
|
2691
|
-
class: "fusion-phone-input error-
|
|
2692
|
-
}, Js = {
|
|
2693
|
-
class: "fusion-phone-input error-label",
|
|
2694
|
-
"data-test": "error-label"
|
|
2695
|
-
};
|
|
2696
|
+
class: "fusion-phone-input error-wrapper"
|
|
2697
|
+
}, Js = { "data-test": "error-label" };
|
|
2696
2698
|
function Xs(e, t, n, r, a, o) {
|
|
2697
2699
|
const i = Te("CountrySelectDropdown"), l = Te("CountrySelectList"), u = Te("FusionPanel"), c = Te("SVGExclamationTriangle");
|
|
2698
2700
|
return v(), k("div", {
|
|
@@ -2766,15 +2768,12 @@ function Xs(e, t, n, r, a, o) {
|
|
|
2766
2768
|
])) : Q("", !0)
|
|
2767
2769
|
]),
|
|
2768
2770
|
e.errorLabel ? (v(), k("div", Es, [
|
|
2769
|
-
Se(c, {
|
|
2770
|
-
class: "fusion-phone-input error-icon",
|
|
2771
|
-
"data-test": "error-icon"
|
|
2772
|
-
}),
|
|
2771
|
+
Se(c, { "data-test": "error-icon" }),
|
|
2773
2772
|
S("span", Js, fe(e.errorLabel), 1)
|
|
2774
2773
|
])) : Q("", !0)
|
|
2775
2774
|
], 8, Ns);
|
|
2776
2775
|
}
|
|
2777
|
-
const C0 = /* @__PURE__ */ Ne(Vs, [["render", Xs], ["__scopeId", "data-v-
|
|
2776
|
+
const C0 = /* @__PURE__ */ Ne(Vs, [["render", Xs], ["__scopeId", "data-v-73c1b5cf"]]), Ys = Ce({
|
|
2778
2777
|
name: "SVGInformationCircle"
|
|
2779
2778
|
}), Ws = {
|
|
2780
2779
|
width: "24",
|
|
@@ -3007,7 +3006,7 @@ function bu(e, t, n, r, a, o) {
|
|
|
3007
3006
|
_: 3
|
|
3008
3007
|
});
|
|
3009
3008
|
}
|
|
3010
|
-
const S0 = /* @__PURE__ */ Ne(pu, [["render", bu], ["__scopeId", "data-v-
|
|
3009
|
+
const S0 = /* @__PURE__ */ Ne(pu, [["render", bu], ["__scopeId", "data-v-5f90f955"]]);
|
|
3011
3010
|
function ct(e) {
|
|
3012
3011
|
"@babel/helpers - typeof";
|
|
3013
3012
|
return ct = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -11575,7 +11574,7 @@ const Iv = /* @__PURE__ */ Ne(Pv, [["render", Ov]]), Uv = Ce({
|
|
|
11575
11574
|
});
|
|
11576
11575
|
const Qv = ["data-test"], Vv = { class: "fusion-date-picker-label" }, Nv = ["for"], Mv = {
|
|
11577
11576
|
key: 0,
|
|
11578
|
-
class: "fusion-date-picker error-
|
|
11577
|
+
class: "fusion-date-picker error-wrapper"
|
|
11579
11578
|
}, Lv = { "data-test": "error-label" };
|
|
11580
11579
|
function Hv(e, t, n, r, a, o) {
|
|
11581
11580
|
const i = Te("SVGCalendar"), l = Te("VueDatePicker"), u = Te("SVGExclamationTriangle");
|
|
@@ -11631,7 +11630,7 @@ function Hv(e, t, n, r, a, o) {
|
|
|
11631
11630
|
])) : Q("", !0)
|
|
11632
11631
|
], 8, Qv);
|
|
11633
11632
|
}
|
|
11634
|
-
const D0 = /* @__PURE__ */ Ne(Uv, [["render", Hv], ["__scopeId", "data-v-
|
|
11633
|
+
const D0 = /* @__PURE__ */ Ne(Uv, [["render", Hv], ["__scopeId", "data-v-b86ad3dc"]]), qv = Ce({
|
|
11635
11634
|
name: "FusionSearchableInput",
|
|
11636
11635
|
components: {
|
|
11637
11636
|
SVGSearch: Er,
|
|
@@ -11863,7 +11862,7 @@ function Yv(e, t, n, r, a, o) {
|
|
|
11863
11862
|
])
|
|
11864
11863
|
], 8, Rv);
|
|
11865
11864
|
}
|
|
11866
|
-
const P0 = /* @__PURE__ */ Ne(qv, [["render", Yv], ["__scopeId", "data-v-
|
|
11865
|
+
const P0 = /* @__PURE__ */ Ne(qv, [["render", Yv], ["__scopeId", "data-v-9a8c389e"]]), Wv = Ce({
|
|
11867
11866
|
name: "SVGDecrement"
|
|
11868
11867
|
}), zv = {
|
|
11869
11868
|
width: "24",
|
|
@@ -12184,7 +12183,7 @@ function m0(e, t, n, r, a, o) {
|
|
|
12184
12183
|
])
|
|
12185
12184
|
], 8, p0);
|
|
12186
12185
|
}
|
|
12187
|
-
const T0 = /* @__PURE__ */ Ne(c0, [["render", m0], ["__scopeId", "data-v-
|
|
12186
|
+
const T0 = /* @__PURE__ */ Ne(c0, [["render", m0], ["__scopeId", "data-v-9d61755c"]]);
|
|
12188
12187
|
export {
|
|
12189
12188
|
S0 as FusionBanner,
|
|
12190
12189
|
h0 as FusionButton,
|