@oub/fusion 0.2.45 → 0.2.47

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/LICENSE.md ADDED
@@ -0,0 +1,29 @@
1
+ # Copyright (c) 2024 One Utility Bill
2
+
3
+ ## Creative Commons Attribution-NonCommercial 4.0 International Public License
4
+
5
+ By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
6
+
7
+ ### Section 1 – Definitions.
8
+ - **Licensed Material**: The artistic or literary work, database, or other material to which the Licensor applied this Public License.
9
+ - **Licensed Rights**: Rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
10
+ - **NonCommercial**: Not primarily intended for or directed towards commercial advantage or monetary compensation.
11
+ - **Share**: To provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, distribution, etc.
12
+ - **You**: The individual or entity exercising the Licensed Rights under this Public License.
13
+
14
+ ### Section 2 – Scope.
15
+ 1. **License grant**: Subject to the terms and conditions of this Public License, the Licensor grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to:
16
+ - Reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only.
17
+ - Produce, reproduce, and Share Adapted Material for NonCommercial purposes only.
18
+
19
+ 2. **Attribution**: If You Share the Licensed Material (including in modified form), You must:
20
+ - Give appropriate credit, provide a link to the license, and indicate if changes were made.
21
+ - Not impose any additional restrictions, including on downstream users.
22
+
23
+ 3. **NonCommercial Use**: You may use the Licensed Material only for NonCommercial purposes.
24
+
25
+ ### Section 3 – Disclaimer of Warranties and Limitation of Liability.
26
+ - The Licensed Material is offered "as-is" and "as-available" without warranties of any kind.
27
+ - The Licensor shall not be liable for any damages arising from this Public License.
28
+
29
+ For the full legal code, please visit: [CC BY-NC 4.0 License](https://creativecommons.org/licenses/by-nc/4.0/legalcode)
package/README.md CHANGED
@@ -60,3 +60,8 @@ npm run test:storybook
60
60
  ```sh
61
61
  npm run lint
62
62
  ```
63
+
64
+ ## License
65
+ This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). You are free to share and adapt the work, as long as it's for non-commercial purposes, and appropriate credit is given. [Learn more about the license](https://creativecommons.org/licenses/by-nc/4.0/).
66
+
67
+ [![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC%20BY--NC%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc/4.0/)
@@ -50,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
50
50
  variantStyleClass(): "" | "fusion-button-filled" | "fusion-button-outline" | "fusion-button-ghost";
51
51
  buttonSizeClass(): "" | "fusion-button-small" | "fusion-button-regular";
52
52
  buttonHasIcon(): "" | "fusion-button-with-icon";
53
+ isLoadingClass(): "" | "fusion-button-loading";
53
54
  }, {
54
55
  onClick(): void;
55
56
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
package/dist/fusion.js CHANGED
@@ -17,7 +17,7 @@ const Ne = (e, t) => {
17
17
  for (const [r, a] of t)
18
18
  n[r] = a;
19
19
  return n;
20
- }, Wo = ["data-test"], zo = /* @__PURE__ */ No('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" class="loader" data-v-a23404a3><mask id="mask0_3622_204" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32" data-v-a23404a3><rect width="32" height="32" fill="#D9D9D9" data-v-a23404a3></rect></mask><g mask="url(#mask0_3622_204)" data-v-a23404a3><path d="M16 29.3333C14.1778 29.3333 12.4555 28.9833 10.8333 28.2833C9.2111 27.5833 7.79443 26.6278 6.58332 25.4167C5.37221 24.2055 4.41666 22.7889 3.71666 21.1667C3.01666 19.5444 2.66666 17.8222 2.66666 16C2.66666 14.1555 3.01666 12.4278 3.71666 10.8167C4.41666 9.20555 5.37221 7.79443 6.58332 6.58332C7.79443 5.37221 9.2111 4.41666 10.8333 3.71666C12.4555 3.01666 14.1778 2.66666 16 2.66666C16.3778 2.66666 16.6944 2.79443 16.95 3.04999C17.2055 3.30555 17.3333 3.62221 17.3333 3.99999C17.3333 4.37777 17.2055 4.69443 16.95 4.94999C16.6944 5.20555 16.3778 5.33332 16 5.33332C13.0444 5.33332 10.5278 6.37221 8.44999 8.44999C6.37221 10.5278 5.33332 13.0444 5.33332 16C5.33332 18.9555 6.37221 21.4722 8.44999 23.55C10.5278 25.6278 13.0444 26.6667 16 26.6667C18.9555 26.6667 21.4722 25.6278 23.55 23.55C25.6278 21.4722 26.6667 18.9555 26.6667 16C26.6667 15.6222 26.7944 15.3055 27.05 15.05C27.3055 14.7944 27.6222 14.6667 28 14.6667C28.3778 14.6667 28.6944 14.7944 28.95 15.05C29.2055 15.3055 29.3333 15.6222 29.3333 16C29.3333 17.8222 28.9833 19.5444 28.2833 21.1667C27.5833 22.7889 26.6278 24.2055 25.4167 25.4167C24.2055 26.6278 22.7944 27.5833 21.1833 28.2833C19.5722 28.9833 17.8444 29.3333 16 29.3333Z" fill="currentColor" data-v-a23404a3></path></g></svg><span class="loader-text" data-v-a23404a3>Loading</span>', 2), Ko = [
20
+ }, Wo = ["data-test"], zo = /* @__PURE__ */ No('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" class="loader" data-v-fea7c392><mask id="mask0_3622_204" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32" data-v-fea7c392><rect width="32" height="32" fill="#D9D9D9" data-v-fea7c392></rect></mask><g mask="url(#mask0_3622_204)" data-v-fea7c392><path d="M16 29.3333C14.1778 29.3333 12.4555 28.9833 10.8333 28.2833C9.2111 27.5833 7.79443 26.6278 6.58332 25.4167C5.37221 24.2055 4.41666 22.7889 3.71666 21.1667C3.01666 19.5444 2.66666 17.8222 2.66666 16C2.66666 14.1555 3.01666 12.4278 3.71666 10.8167C4.41666 9.20555 5.37221 7.79443 6.58332 6.58332C7.79443 5.37221 9.2111 4.41666 10.8333 3.71666C12.4555 3.01666 14.1778 2.66666 16 2.66666C16.3778 2.66666 16.6944 2.79443 16.95 3.04999C17.2055 3.30555 17.3333 3.62221 17.3333 3.99999C17.3333 4.37777 17.2055 4.69443 16.95 4.94999C16.6944 5.20555 16.3778 5.33332 16 5.33332C13.0444 5.33332 10.5278 6.37221 8.44999 8.44999C6.37221 10.5278 5.33332 13.0444 5.33332 16C5.33332 18.9555 6.37221 21.4722 8.44999 23.55C10.5278 25.6278 13.0444 26.6667 16 26.6667C18.9555 26.6667 21.4722 25.6278 23.55 23.55C25.6278 21.4722 26.6667 18.9555 26.6667 16C26.6667 15.6222 26.7944 15.3055 27.05 15.05C27.3055 14.7944 27.6222 14.6667 28 14.6667C28.3778 14.6667 28.6944 14.7944 28.95 15.05C29.2055 15.3055 29.3333 15.6222 29.3333 16C29.3333 17.8222 28.9833 19.5444 28.2833 21.1667C27.5833 22.7889 26.6278 24.2055 25.4167 25.4167C24.2055 26.6278 22.7944 27.5833 21.1833 28.2833C19.5722 28.9833 17.8444 29.3333 16 29.3333Z" fill="currentColor" data-v-fea7c392></path></g></svg><span class="loader-text" data-v-fea7c392>Loading</span>', 2), Ko = [
21
21
  zo
22
22
  ];
23
23
  function jo(e, t, n, r, a, o) {
@@ -27,7 +27,7 @@ function jo(e, t, n, r, a, o) {
27
27
  "data-test": e.dataTest
28
28
  }, Ko, 8, Wo);
29
29
  }
30
- const Fn = /* @__PURE__ */ Ne(Yo, [["render", jo], ["__scopeId", "data-v-a23404a3"]]), Go = Ce({
30
+ const Fn = /* @__PURE__ */ Ne(Yo, [["render", jo], ["__scopeId", "data-v-fea7c392"]]), Go = Ce({
31
31
  name: "FusionButton",
32
32
  components: { FusionLoadingSpinner: Fn },
33
33
  props: {
@@ -126,6 +126,9 @@ const Fn = /* @__PURE__ */ Ne(Yo, [["render", jo], ["__scopeId", "data-v-a23404a
126
126
  },
127
127
  buttonHasIcon() {
128
128
  return this.$slots.icon ? "fusion-button-with-icon" : "";
129
+ },
130
+ isLoadingClass() {
131
+ return this.loading ? "fusion-button-loading" : "";
129
132
  }
130
133
  },
131
134
  mounted() {
@@ -144,7 +147,7 @@ function $o(e, t, n, r, a, o) {
144
147
  id: "fusion-btn",
145
148
  ref: "fusionButtonEl",
146
149
  disabled: e.isDisabled || e.isLoading,
147
- class: ne(["fusion-button", [e.variantTypeClass, e.variantStyleClass, e.buttonSizeClass, e.buttonHasIcon]]),
150
+ class: ne(["fusion-button", [e.variantTypeClass, e.variantStyleClass, e.buttonSizeClass, e.buttonHasIcon, e.isLoadingClass]]),
148
151
  "data-test": e.dataTest,
149
152
  type: e.type,
150
153
  onFocus: t[0] || (t[0] = (l) => e.focus = !0),
@@ -360,7 +363,7 @@ function mi(e, t, n, r, a, o) {
360
363
  }, [
361
364
  e.errorLabel ? (v(), k("div", {
362
365
  key: 0,
363
- class: ne(["fusion-textarea error-label", e.stateClasses])
366
+ class: ne(["fusion-textarea error-label-wrapper", e.stateClasses])
364
367
  }, [
365
368
  Se(i, { "data-test": "error-icon" }),
366
369
  S("span", pi, fe(e.errorLabel), 1)
@@ -377,7 +380,7 @@ function mi(e, t, n, r, a, o) {
377
380
  ]))
378
381
  ], 8, li);
379
382
  }
380
- const y0 = /* @__PURE__ */ Ne(ii, [["render", mi], ["__scopeId", "data-v-7ffd8271"]]), gi = Ce({
383
+ const y0 = /* @__PURE__ */ Ne(ii, [["render", mi], ["__scopeId", "data-v-bb3f9cc7"]]), gi = Ce({
381
384
  name: "SVGTick"
382
385
  }), hi = {
383
386
  xmlns: "http://www.w3.org/2000/svg",
@@ -1217,7 +1220,7 @@ function Tl(e, t, n, r, a, o) {
1217
1220
  oe(e.$slots, "content", {}, void 0, !0)
1218
1221
  ], 10, Al);
1219
1222
  }
1220
- const Vn = /* @__PURE__ */ Ne(bl, [["render", Tl], ["__scopeId", "data-v-9e70a4a3"]]), Bl = Ce({
1223
+ const Vn = /* @__PURE__ */ Ne(bl, [["render", Tl], ["__scopeId", "data-v-10f7ca3f"]]), Bl = Ce({
1221
1224
  name: "FusionPanel",
1222
1225
  components: { SVGSearch: Er, CheckCircle: Qn, FusionLoadingSpinner: Fn, SVGInbox: il, FusionInput: Vn, OnClickOutside: zi },
1223
1226
  props: {
@@ -1670,14 +1673,14 @@ function ps(e, t, n, r, a, o) {
1670
1673
  }, 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),
1671
1674
  e.errorLabel ? (v(), k("div", {
1672
1675
  key: 1,
1673
- class: ne(["fusion-select error-label", e.stateClasses])
1676
+ class: ne(["fusion-select error-wrapper", e.stateClasses])
1674
1677
  }, [
1675
- Se(u),
1678
+ Se(u, { "data-test": "error-icon" }),
1676
1679
  S("span", cs, fe(e.errorLabel), 1)
1677
1680
  ], 2)) : Q("", !0)
1678
1681
  ], 8, rs);
1679
1682
  }
1680
- const k0 = /* @__PURE__ */ Ne(ns, [["render", ps], ["__scopeId", "data-v-db33baa0"]]), fs = Ce({
1683
+ const k0 = /* @__PURE__ */ Ne(ns, [["render", ps], ["__scopeId", "data-v-cbd3b01d"]]), fs = Ce({
1681
1684
  name: "FusionPasswordInput",
1682
1685
  components: {
1683
1686
  FusionInput: Vn,
@@ -2685,11 +2688,8 @@ const Ns = ["data-test"], Ms = { class: "fusion-phone-input-label-container" },
2685
2688
  class: "select-panel-wrapper"
2686
2689
  }, Es = {
2687
2690
  key: 0,
2688
- class: "fusion-phone-input error-container"
2689
- }, Js = {
2690
- class: "fusion-phone-input error-label",
2691
- "data-test": "error-label"
2692
- };
2691
+ class: "fusion-phone-input error-wrapper"
2692
+ }, Js = { "data-test": "error-label" };
2693
2693
  function Xs(e, t, n, r, a, o) {
2694
2694
  const i = Te("CountrySelectDropdown"), l = Te("CountrySelectList"), u = Te("FusionPanel"), c = Te("SVGExclamationTriangle");
2695
2695
  return v(), k("div", {
@@ -2763,15 +2763,12 @@ function Xs(e, t, n, r, a, o) {
2763
2763
  ])) : Q("", !0)
2764
2764
  ]),
2765
2765
  e.errorLabel ? (v(), k("div", Es, [
2766
- Se(c, {
2767
- class: "fusion-phone-input error-icon",
2768
- "data-test": "error-icon"
2769
- }),
2766
+ Se(c, { "data-test": "error-icon" }),
2770
2767
  S("span", Js, fe(e.errorLabel), 1)
2771
2768
  ])) : Q("", !0)
2772
2769
  ], 8, Ns);
2773
2770
  }
2774
- const C0 = /* @__PURE__ */ Ne(Vs, [["render", Xs], ["__scopeId", "data-v-080003a7"]]), Ys = Ce({
2771
+ const C0 = /* @__PURE__ */ Ne(Vs, [["render", Xs], ["__scopeId", "data-v-73c1b5cf"]]), Ys = Ce({
2775
2772
  name: "SVGInformationCircle"
2776
2773
  }), Ws = {
2777
2774
  width: "24",
@@ -11572,7 +11569,7 @@ const Iv = /* @__PURE__ */ Ne(Pv, [["render", Ov]]), Uv = Ce({
11572
11569
  });
11573
11570
  const Qv = ["data-test"], Vv = { class: "fusion-date-picker-label" }, Nv = ["for"], Mv = {
11574
11571
  key: 0,
11575
- class: "fusion-date-picker error-label"
11572
+ class: "fusion-date-picker error-wrapper"
11576
11573
  }, Lv = { "data-test": "error-label" };
11577
11574
  function Hv(e, t, n, r, a, o) {
11578
11575
  const i = Te("SVGCalendar"), l = Te("VueDatePicker"), u = Te("SVGExclamationTriangle");
@@ -11628,7 +11625,7 @@ function Hv(e, t, n, r, a, o) {
11628
11625
  ])) : Q("", !0)
11629
11626
  ], 8, Qv);
11630
11627
  }
11631
- const D0 = /* @__PURE__ */ Ne(Uv, [["render", Hv], ["__scopeId", "data-v-041425de"]]), qv = Ce({
11628
+ const D0 = /* @__PURE__ */ Ne(Uv, [["render", Hv], ["__scopeId", "data-v-b86ad3dc"]]), qv = Ce({
11632
11629
  name: "FusionSearchableInput",
11633
11630
  components: {
11634
11631
  SVGSearch: Er,
@@ -11860,7 +11857,7 @@ function Yv(e, t, n, r, a, o) {
11860
11857
  ])
11861
11858
  ], 8, Rv);
11862
11859
  }
11863
- const P0 = /* @__PURE__ */ Ne(qv, [["render", Yv], ["__scopeId", "data-v-58ac3537"]]), Wv = Ce({
11860
+ const P0 = /* @__PURE__ */ Ne(qv, [["render", Yv], ["__scopeId", "data-v-9a8c389e"]]), Wv = Ce({
11864
11861
  name: "SVGDecrement"
11865
11862
  }), zv = {
11866
11863
  width: "24",