@frollo/frollo-web-ui 1.2.6 → 1.2.7

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/icons/index.ts CHANGED
@@ -24,6 +24,7 @@ import CaretDownSvg from './caret-down.svg';
24
24
  import SortLightSvg from './sort-light.svg';
25
25
  import PlusSvg from './plus.svg';
26
26
  import UserSvg from './user.svg';
27
+ import LoadingSvg from './loading.svg';
27
28
 
28
29
  export {
29
30
  ViewSvg,
@@ -51,5 +52,6 @@ export {
51
52
  CaretDownSvg,
52
53
  SortLightSvg,
53
54
  PlusSvg,
54
- UserSvg
55
+ UserSvg,
56
+ LoadingSvg
55
57
  };
@@ -0,0 +1,4 @@
1
+ <svg viewBox="0 0 44 44" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M26.6585 4.61339C17.0561 2.04043 7.186 7.73892 4.61304 17.3413C2.04009 26.9437 7.73858 36.8138 17.341 39.3867L16.3057 43.2504C4.56943 40.1057 -2.39538 28.0423 0.74934 16.306C3.89406 4.56978 15.9575 -2.39504 27.6937 0.749683C39.43 3.8944 46.3948 15.9578 43.2501 27.6941L39.3864 26.6588C41.9593 17.0564 36.2608 7.18634 26.6585 4.61339Z" />
3
+ </svg>
4
+
package/index.d.ts CHANGED
@@ -452,6 +452,7 @@ declare interface FwButtonProps {
452
452
  buttonType?: ButtonTypeAttribute;
453
453
  animation?: ButtonAnimation;
454
454
  rounded?: boolean;
455
+ loading?: boolean;
455
456
  }
456
457
 
457
458
  declare const _default$e: vue.DefineComponent<{
@@ -506,18 +507,41 @@ declare const _default$e: vue.DefineComponent<{
506
507
  type: BooleanConstructor;
507
508
  default: boolean;
508
509
  };
510
+ /**
511
+ * Whether the loading animation is shown or not
512
+ */
513
+ loading: {
514
+ type: BooleanConstructor;
515
+ default: boolean;
516
+ };
509
517
  }, {
510
518
  baseClass: vue.Ref<string>;
511
519
  textColorClass: vue.ComputedRef<string>;
512
520
  bgColorClass: vue.ComputedRef<string>;
513
521
  sizeClass: vue.ComputedRef<string>;
514
522
  borderClass: vue.ComputedRef<string>;
515
- onClick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
516
- onMouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
517
- onMouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
518
- onFocusin: (this: GlobalEventHandlers, ev: FocusEvent) => any;
519
- onFocusout: (this: GlobalEventHandlers, ev: FocusEvent) => any;
523
+ onClick: (e: MouseEvent | KeyboardEvent) => void;
524
+ onMouseover: (e: MouseEvent) => void;
525
+ onMouseout: (e: MouseEvent) => void;
526
+ onFocusin: (e: FocusEvent) => void;
527
+ onFocusout: (e: FocusEvent) => void;
520
528
  tagName: vue.ComputedRef<"button" | "router-link" | "a">;
529
+ loadingSize: vue.ComputedRef<{
530
+ spacing: string;
531
+ size: string;
532
+ } | {
533
+ spacing: string;
534
+ size: string;
535
+ } | {
536
+ spacing: string;
537
+ size: string;
538
+ } | {
539
+ spacing: string;
540
+ size: string;
541
+ } | {
542
+ spacing: string;
543
+ size: string;
544
+ }>;
521
545
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
522
546
  /**
523
547
  * A `router-link` path or object
@@ -570,6 +594,13 @@ declare const _default$e: vue.DefineComponent<{
570
594
  type: BooleanConstructor;
571
595
  default: boolean;
572
596
  };
597
+ /**
598
+ * Whether the loading animation is shown or not
599
+ */
600
+ loading: {
601
+ type: BooleanConstructor;
602
+ default: boolean;
603
+ };
573
604
  }>> & {
574
605
  onClick?: ((...args: any[]) => any) | undefined;
575
606
  onMouseover?: ((...args: any[]) => any) | undefined;
@@ -582,6 +613,7 @@ declare const _default$e: vue.DefineComponent<{
582
613
  buttonType: ButtonTypeAttribute;
583
614
  animation: ButtonAnimation;
584
615
  rounded: boolean;
616
+ loading: boolean;
585
617
  }>;
586
618
 
587
619
  declare interface NavMenuItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -52,18 +52,41 @@ declare const _default: import("vue").DefineComponent<{
52
52
  type: BooleanConstructor;
53
53
  default: boolean;
54
54
  };
55
+ /**
56
+ * Whether the loading animation is shown or not
57
+ */
58
+ loading: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
55
62
  }, {
56
63
  baseClass: import("vue").Ref<string>;
57
64
  textColorClass: import("vue").ComputedRef<string>;
58
65
  bgColorClass: import("vue").ComputedRef<string>;
59
66
  sizeClass: import("vue").ComputedRef<string>;
60
67
  borderClass: import("vue").ComputedRef<string>;
61
- onClick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
62
- onMouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
63
- onMouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
64
- onFocusin: (this: GlobalEventHandlers, ev: FocusEvent) => any;
65
- onFocusout: (this: GlobalEventHandlers, ev: FocusEvent) => any;
68
+ onClick: (e: MouseEvent | KeyboardEvent) => void;
69
+ onMouseover: (e: MouseEvent) => void;
70
+ onMouseout: (e: MouseEvent) => void;
71
+ onFocusin: (e: FocusEvent) => void;
72
+ onFocusout: (e: FocusEvent) => void;
66
73
  tagName: import("vue").ComputedRef<"button" | "router-link" | "a">;
74
+ loadingSize: import("vue").ComputedRef<{
75
+ spacing: string;
76
+ size: string;
77
+ } | {
78
+ spacing: string;
79
+ size: string;
80
+ } | {
81
+ spacing: string;
82
+ size: string;
83
+ } | {
84
+ spacing: string;
85
+ size: string;
86
+ } | {
87
+ spacing: string;
88
+ size: string;
89
+ }>;
67
90
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
68
91
  /**
69
92
  * A `router-link` path or object
@@ -116,6 +139,13 @@ declare const _default: import("vue").DefineComponent<{
116
139
  type: BooleanConstructor;
117
140
  default: boolean;
118
141
  };
142
+ /**
143
+ * Whether the loading animation is shown or not
144
+ */
145
+ loading: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
119
149
  }>> & {
120
150
  onClick?: ((...args: any[]) => any) | undefined;
121
151
  onMouseover?: ((...args: any[]) => any) | undefined;
@@ -128,5 +158,6 @@ declare const _default: import("vue").DefineComponent<{
128
158
  buttonType: ButtonTypeAttribute;
129
159
  animation: ButtonAnimation;
130
160
  rounded: boolean;
161
+ loading: boolean;
131
162
  }>;
132
163
  export default _default;
@@ -21,4 +21,5 @@ export declare interface FwButtonProps {
21
21
  buttonType?: ButtonTypeAttribute;
22
22
  animation?: ButtonAnimation;
23
23
  rounded?: boolean;
24
+ loading?: boolean;
24
25
  }
@@ -24,4 +24,5 @@ import CaretDownSvg from './caret-down.svg';
24
24
  import SortLightSvg from './sort-light.svg';
25
25
  import PlusSvg from './plus.svg';
26
26
  import UserSvg from './user.svg';
27
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg };
27
+ import LoadingSvg from './loading.svg';
28
+ export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg };