@oub/fusion 0.2.44 → 0.2.46

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),
@@ -628,7 +631,7 @@ function Hi(e, t, n, r, a, o) {
628
631
  ], 2)
629
632
  ], 10, Ui);
630
633
  }
631
- const b0 = /* @__PURE__ */ Ne(Ii, [["render", Hi], ["__scopeId", "data-v-08a40d12"]]), qi = Ce({
634
+ const b0 = /* @__PURE__ */ Ne(Ii, [["render", Hi], ["__scopeId", "data-v-690dc389"]]), qi = Ce({
632
635
  name: "FusionTextLink",
633
636
  props: {
634
637
  id: {
@@ -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-c136168b"]]), Bl = Ce({
1223
+ const Vn = /* @__PURE__ */ Ne(bl, [["render", Tl], ["__scopeId", "data-v-9e70a4a3"]]), Bl = Ce({
1221
1224
  name: "FusionPanel",
1222
1225
  components: { SVGSearch: Er, CheckCircle: Qn, FusionLoadingSpinner: Fn, SVGInbox: il, FusionInput: Vn, OnClickOutside: zi },
1223
1226
  props: {
@@ -2771,7 +2774,7 @@ function Xs(e, t, n, r, a, o) {
2771
2774
  ])) : Q("", !0)
2772
2775
  ], 8, Ns);
2773
2776
  }
2774
- const C0 = /* @__PURE__ */ Ne(Vs, [["render", Xs], ["__scopeId", "data-v-63b6c608"]]), Ys = Ce({
2777
+ const C0 = /* @__PURE__ */ Ne(Vs, [["render", Xs], ["__scopeId", "data-v-080003a7"]]), Ys = Ce({
2775
2778
  name: "SVGInformationCircle"
2776
2779
  }), Ws = {
2777
2780
  width: "24",
@@ -11623,15 +11626,12 @@ function Hv(e, t, n, r, a, o) {
11623
11626
  _: 1
11624
11627
  }, 8, ["modelValue", "uid", "format", "placeholder", "autocomplete", "required", "text-input", "name", "class", "max-date", "min-date", "disabled", "clearable", "onUpdate:modelValue", "onBlur", "onFocus"]),
11625
11628
  e.errorLabel ? (v(), k("div", Mv, [
11626
- Se(u, {
11627
- class: "error-icon",
11628
- "data-test": "error-icon"
11629
- }),
11629
+ Se(u, { "data-test": "error-icon" }),
11630
11630
  S("span", Lv, fe(e.errorLabel), 1)
11631
11631
  ])) : Q("", !0)
11632
11632
  ], 8, Qv);
11633
11633
  }
11634
- const D0 = /* @__PURE__ */ Ne(Uv, [["render", Hv], ["__scopeId", "data-v-4b05a32f"]]), qv = Ce({
11634
+ const D0 = /* @__PURE__ */ Ne(Uv, [["render", Hv], ["__scopeId", "data-v-041425de"]]), qv = Ce({
11635
11635
  name: "FusionSearchableInput",
11636
11636
  components: {
11637
11637
  SVGSearch: Er,