@frollo/frollo-web-ui 8.5.3 → 9.0.0

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.
Files changed (135) hide show
  1. package/cjs/index.js +29804 -28762
  2. package/esm/{_rollupPluginBabelHelpers-DpC_oIQV.js → _rollupPluginBabelHelpers-DODWUb5N.js} +307 -345
  3. package/esm/fw-accordion.js +59 -56
  4. package/esm/fw-alert.js +68 -0
  5. package/esm/fw-bar-chart.js +4 -4
  6. package/esm/fw-button-CnQvA7oM.js +296 -0
  7. package/esm/fw-button.js +2 -4
  8. package/esm/{fw-card-bsYbpPmW.js → fw-card-D45R4kN-.js} +33 -9
  9. package/esm/fw-card.js +3 -1
  10. package/esm/fw-checkbox.js +39 -20
  11. package/esm/fw-date-picker.js +110 -78
  12. package/esm/fw-drawer.js +119 -83
  13. package/esm/{fw-dropdown-CbgOvgOt.js → fw-dropdown-58wyuzsW.js} +80 -61
  14. package/esm/fw-dropdown.js +5 -5
  15. package/esm/fw-icons.js +34 -0
  16. package/esm/{fw-image-Dl96Dc27.js → fw-image-D-OHafdw.js} +30 -13
  17. package/esm/fw-image.js +4 -4
  18. package/esm/{fw-input-XeI-IKly.js → fw-input-C2-cZ-BY.js} +65 -43
  19. package/esm/fw-input.js +2 -2
  20. package/esm/fw-loading-bar-DecYSBC_.js +45 -0
  21. package/esm/fw-loading.js +34 -15
  22. package/esm/fw-media-picker.js +43 -31
  23. package/esm/fw-modal.js +102 -48
  24. package/esm/fw-navigation-menu.js +180 -52
  25. package/esm/fw-popover-B4bsfuxm.js +620 -0
  26. package/esm/fw-popover.js +6 -293
  27. package/esm/fw-progress-bar.js +3 -2
  28. package/esm/fw-provider-list.js +58 -34
  29. package/esm/fw-sidebar-menu.js +22 -13
  30. package/esm/fw-slider.js +4 -4
  31. package/esm/fw-switch.js +147 -0
  32. package/esm/{fw-table-row-BetVCzHJ.js → fw-table-row-C61Bi8KB.js} +59 -59
  33. package/esm/fw-table.js +8 -7
  34. package/esm/fw-tabs.js +7 -7
  35. package/esm/{fw-tag-V0jMl-It.js → fw-tag-FWH6KttB.js} +37 -26
  36. package/esm/fw-tag.js +4 -6
  37. package/esm/fw-toast.js +14 -15
  38. package/esm/fw-transactions-card.js +8 -8
  39. package/esm/get-root-colours-DCjlYelc.js +62 -0
  40. package/esm/{index-CzZMBMV_.js → index-BsEH8YYr.js} +433 -130
  41. package/esm/index.js +76 -68
  42. package/esm/{uniqueId-DK6xzFd8.js → uniqueId-DZdGzBh8.js} +1 -1
  43. package/frollo-web-ui.esm.js +30114 -29022
  44. package/icons/arrow-connect.svg +3 -0
  45. package/icons/arrow-left.svg +3 -0
  46. package/icons/arrow-out-square.svg +3 -0
  47. package/icons/arrow-right.svg +3 -0
  48. package/icons/circle-exclamation.svg +5 -0
  49. package/icons/clock.svg +10 -0
  50. package/icons/default-provider.svg +5 -0
  51. package/icons/desktop.svg +8 -0
  52. package/icons/error.svg +3 -0
  53. package/icons/folder-arrow-down.svg +3 -0
  54. package/icons/index.ts +35 -3
  55. package/icons/loading.svg +0 -1
  56. package/icons/manual-account.svg +3 -0
  57. package/icons/mobile.svg +3 -0
  58. package/icons/paper-plane.svg +3 -0
  59. package/icons/pending.svg +10 -0
  60. package/icons/success-hill.svg +5 -0
  61. package/icons/user-plus.svg +3 -0
  62. package/index.d.ts +807 -571
  63. package/package.json +23 -29
  64. package/styles/tailwind.css +52 -0
  65. package/styles/typography.scss +24 -7
  66. package/styles/web-components.scss +2 -2
  67. package/tailwind.config.js +128 -22
  68. package/types/components/fw-accordion/fw-accordion.vue.d.ts +20 -20
  69. package/types/components/fw-alert/fw-alert.vue.d.ts +43 -0
  70. package/types/components/fw-alert/index.d.ts +2 -0
  71. package/types/components/fw-alert/index.types.d.ts +4 -0
  72. package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +8 -8
  73. package/types/components/fw-button/fw-button.vue.d.ts +15 -17
  74. package/types/components/fw-button/index.d.ts +2 -0
  75. package/types/components/fw-button/index.types.d.ts +1 -3
  76. package/types/components/fw-card/fw-card.vue.d.ts +3 -2
  77. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +8 -5
  78. package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +14 -19
  79. package/types/components/fw-date-picker/index.types.d.ts +5 -4
  80. package/types/components/fw-drawer/fw-drawer.vue.d.ts +26 -10
  81. package/types/components/fw-drawer/index.types.d.ts +1 -1
  82. package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +11 -9
  83. package/types/components/fw-icons/index.d.ts +2 -0
  84. package/types/components/fw-image/fw-image.vue.d.ts +7 -5
  85. package/types/components/fw-input/fw-input.vue.d.ts +11 -17
  86. package/types/components/fw-input/index.types.d.ts +1 -1
  87. package/types/components/fw-loading/fw-loading-bar.vue.d.ts +5 -2
  88. package/types/components/fw-loading/fw-loading-dots.vue.d.ts +2 -0
  89. package/types/components/fw-loading/index.d.ts +2 -1
  90. package/types/components/fw-modal/fw-modal.vue.d.ts +51 -11
  91. package/types/components/fw-modal/index.types.d.ts +1 -1
  92. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +77 -6
  93. package/types/components/fw-navigation-menu/index.types.d.ts +11 -0
  94. package/types/components/fw-popover/fw-popover.vue.d.ts +10 -5
  95. package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +8 -5
  96. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +20 -3
  97. package/types/components/fw-sidebar-menu/index.types.d.ts +9 -0
  98. package/types/components/fw-switch/fw-switch.vue.d.ts +101 -0
  99. package/types/components/fw-switch/index.d.ts +2 -0
  100. package/types/components/fw-switch/index.types.d.ts +8 -0
  101. package/types/components/fw-table/fw-table.vue.d.ts +7 -7
  102. package/types/components/fw-table/index.types.d.ts +0 -3
  103. package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
  104. package/types/components/fw-tabs/index.types.d.ts +1 -1
  105. package/types/components/fw-tag/fw-tag.vue.d.ts +2 -2
  106. package/types/components/fw-tag/index.types.d.ts +3 -3
  107. package/types/components/fw-toast/fw-toast.vue.d.ts +2 -2
  108. package/types/components/index.d.ts +4 -3
  109. package/types/components/index.types.d.ts +1 -0
  110. package/types/helpers/get-root-colours.d.ts +3 -0
  111. package/types/helpers/index.d.ts +2 -0
  112. package/types/helpers/vue-component-to-html.d.ts +2 -0
  113. package/types/icons/index.d.ts +18 -2
  114. package/types/index-types.esm.d.ts +1 -0
  115. package/types/index.d.ts +1 -0
  116. package/types/index.esm.d.ts +1 -0
  117. package/types/services/toast.d.ts +1 -1
  118. package/web-components/index.js +30112 -29028
  119. package/esm/check--YD4Ts6g.js +0 -17
  120. package/esm/fw-animations.js +0 -123
  121. package/esm/fw-button-DNozvo7B.js +0 -286
  122. package/esm/fw-loading-bar-DThRjdw1.js +0 -22
  123. package/esm/fw-loading-spinner-BFpFFRJm.js +0 -20
  124. package/esm/fw-period-selector.js +0 -90
  125. package/esm/get-root-colours-DYEoJPEb.js +0 -37
  126. package/icons/icons.stories.ts +0 -28
  127. package/styles/tailwind.scss +0 -68
  128. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +0 -24
  129. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +0 -24
  130. package/types/components/fw-animations/index.d.ts +0 -4
  131. package/types/components/fw-period-selector/fw-period-selector.vue.d.ts +0 -56
  132. package/types/components/fw-period-selector/index.d.ts +0 -2
  133. package/types/components/fw-period-selector/index.types.d.ts +0 -1
  134. /package/icons/{arrows-rotate.svg → arrow-rotate.svg} +0 -0
  135. /package/types/components/{fw-animations/fw-loading-spinner.vue.d.ts → fw-icons/fw-success-animation.vue.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import { PropType } from 'vue';
2
- import { ButtonVariantName } from '../fw-button/index.types';
3
- declare const _default: import("vue").DefineComponent<{
1
+ import { type PropType } from 'vue';
2
+ import type { FwModalProps } from './index.types';
3
+ declare const __default__: import("vue").DefineComponent<{
4
4
  /**
5
5
  * The modal's v-model. Controls the visibility of the modal.
6
6
  */
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
58
58
  * Button variant for the cancel button
59
59
  */
60
60
  cancelButtonType: {
61
- type: PropType<ButtonVariantName>;
61
+ type: PropType<FwModalProps["cancelButtonType"]>;
62
62
  default: string;
63
63
  validator: (value: string) => boolean;
64
64
  };
@@ -73,10 +73,23 @@ declare const _default: import("vue").DefineComponent<{
73
73
  * Button variant for the confirm button
74
74
  */
75
75
  confirmButtonType: {
76
- type: PropType<ButtonVariantName>;
76
+ type: PropType<FwModalProps["confirmButtonType"]>;
77
77
  default: string;
78
78
  validator: (value: string) => boolean;
79
79
  };
80
+ /**
81
+ * Icon name for the confirm button
82
+ */
83
+ confirmIconName: {
84
+ type: StringConstructor;
85
+ };
86
+ /**
87
+ * Whether the confirm button loading animation is showing or not
88
+ */
89
+ confirmLoading: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
80
93
  /**
81
94
  * Controls the outer padding of the modal
82
95
  */
@@ -103,10 +116,17 @@ declare const _default: import("vue").DefineComponent<{
103
116
  footerClass: {
104
117
  type: StringConstructor;
105
118
  };
119
+ /**
120
+ * Banner Image Url source
121
+ */
122
+ bannerUrl: {
123
+ type: StringConstructor;
124
+ };
106
125
  }, {
107
126
  isOpen: import("vue").ComputedRef<boolean>;
108
- uuid: string;
127
+ uuid: `${string}-${string}-${string}-${string}-${string}`;
109
128
  isMounted: import("vue").Ref<boolean>;
129
+ modalBgColour: string;
110
130
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
111
131
  /**
112
132
  * The modal's v-model. Controls the visibility of the modal.
@@ -165,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
165
185
  * Button variant for the cancel button
166
186
  */
167
187
  cancelButtonType: {
168
- type: PropType<ButtonVariantName>;
188
+ type: PropType<FwModalProps["cancelButtonType"]>;
169
189
  default: string;
170
190
  validator: (value: string) => boolean;
171
191
  };
@@ -180,10 +200,23 @@ declare const _default: import("vue").DefineComponent<{
180
200
  * Button variant for the confirm button
181
201
  */
182
202
  confirmButtonType: {
183
- type: PropType<ButtonVariantName>;
203
+ type: PropType<FwModalProps["confirmButtonType"]>;
184
204
  default: string;
185
205
  validator: (value: string) => boolean;
186
206
  };
207
+ /**
208
+ * Icon name for the confirm button
209
+ */
210
+ confirmIconName: {
211
+ type: StringConstructor;
212
+ };
213
+ /**
214
+ * Whether the confirm button loading animation is showing or not
215
+ */
216
+ confirmLoading: {
217
+ type: BooleanConstructor;
218
+ default: boolean;
219
+ };
187
220
  /**
188
221
  * Controls the outer padding of the modal
189
222
  */
@@ -210,20 +243,27 @@ declare const _default: import("vue").DefineComponent<{
210
243
  footerClass: {
211
244
  type: StringConstructor;
212
245
  };
246
+ /**
247
+ * Banner Image Url source
248
+ */
249
+ bannerUrl: {
250
+ type: StringConstructor;
251
+ };
213
252
  }>> & {
214
253
  onCancel?: ((...args: any[]) => any) | undefined;
215
254
  onConfirm?: ((...args: any[]) => any) | undefined;
216
255
  }, {
256
+ cancelButtonType: import("../index.types").ButtonVariantName | undefined;
257
+ confirmButtonType: import("../index.types").ButtonVariantName | undefined;
217
258
  modelValue: boolean;
218
259
  element: string;
219
260
  role: string;
220
261
  showCancel: boolean;
221
262
  showConfirm: boolean;
222
263
  cancelButtonText: string;
223
- cancelButtonType: ButtonVariantName;
224
264
  confirmButtonText: string;
225
- confirmButtonType: ButtonVariantName;
265
+ confirmLoading: boolean;
226
266
  padding: boolean;
227
267
  showCloseButton: boolean;
228
268
  }, {}>;
229
- export default _default;
269
+ export default __default__;
@@ -1,4 +1,4 @@
1
- import { ButtonVariantName } from '../fw-button/index.types';
1
+ import { type ButtonVariantName } from '../fw-button/index.types';
2
2
  export declare interface FwModalProps {
3
3
  modelValue: boolean;
4
4
  header?: string;
@@ -1,12 +1,19 @@
1
- import { PropType } from 'vue';
2
- import { NavMenuItem } from './index.types';
1
+ import { type PropType } from 'vue';
2
+ import type { FwNavigationMenuProps } from './index.types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  /**
5
5
  * An array of menu items
6
- * `{ to?: string | object; href?: string; label: string; }`
6
+ * `{ to?: string | object; href?: string; label: string; external?: boolean; }`
7
7
  */
8
8
  menuItems: {
9
- type: PropType<NavMenuItem[]>;
9
+ type: PropType<FwNavigationMenuProps["menuItems"]>;
10
+ };
11
+ /**
12
+ * An array of menu items
13
+ * `{ to?: string | object; href?: string; label: string; external?: boolean; }`
14
+ */
15
+ additionalMenuItems: {
16
+ type: PropType<FwNavigationMenuProps["menuItems"] | null>;
10
17
  };
11
18
  /**
12
19
  * The label for the action button.
@@ -22,6 +29,33 @@ declare const _default: import("vue").DefineComponent<{
22
29
  type: StringConstructor;
23
30
  default: string;
24
31
  };
32
+ /**
33
+ * Whether menu items are enabled or disabled.
34
+ */
35
+ menuEnabled: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ /**
40
+ * Whether the route is an authenticated route.
41
+ */
42
+ authenticated: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ /**
47
+ * Padding for the inner menu, should match the sidebar menu width.
48
+ */
49
+ paddingClasses: {
50
+ type: StringConstructor;
51
+ };
52
+ /**
53
+ * Whether the background is transparent
54
+ */
55
+ transparent: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
25
59
  }, {
26
60
  mobileMenuClass: import("vue").Ref<string>;
27
61
  isMobileMenuOpen: import("vue").Ref<boolean>;
@@ -30,10 +64,17 @@ declare const _default: import("vue").DefineComponent<{
30
64
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
65
  /**
32
66
  * An array of menu items
33
- * `{ to?: string | object; href?: string; label: string; }`
67
+ * `{ to?: string | object; href?: string; label: string; external?: boolean; }`
34
68
  */
35
69
  menuItems: {
36
- type: PropType<NavMenuItem[]>;
70
+ type: PropType<FwNavigationMenuProps["menuItems"]>;
71
+ };
72
+ /**
73
+ * An array of menu items
74
+ * `{ to?: string | object; href?: string; label: string; external?: boolean; }`
75
+ */
76
+ additionalMenuItems: {
77
+ type: PropType<FwNavigationMenuProps["menuItems"] | null>;
37
78
  };
38
79
  /**
39
80
  * The label for the action button.
@@ -49,9 +90,39 @@ declare const _default: import("vue").DefineComponent<{
49
90
  type: StringConstructor;
50
91
  default: string;
51
92
  };
93
+ /**
94
+ * Whether menu items are enabled or disabled.
95
+ */
96
+ menuEnabled: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ /**
101
+ * Whether the route is an authenticated route.
102
+ */
103
+ authenticated: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ /**
108
+ * Padding for the inner menu, should match the sidebar menu width.
109
+ */
110
+ paddingClasses: {
111
+ type: StringConstructor;
112
+ };
113
+ /**
114
+ * Whether the background is transparent
115
+ */
116
+ transparent: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
52
120
  }>> & {
53
121
  onAction?: ((...args: any[]) => any) | undefined;
54
122
  }, {
55
123
  containerClass: string;
124
+ menuEnabled: boolean;
125
+ authenticated: boolean;
126
+ transparent: boolean;
56
127
  }, {}>;
57
128
  export default _default;
@@ -4,4 +4,15 @@ export declare interface NavMenuItem {
4
4
  label: string;
5
5
  external?: boolean;
6
6
  onClick?: () => void;
7
+ disabled?: boolean;
8
+ }
9
+ export declare interface FwNavigationMenuProps {
10
+ menuItems: NavMenuItem[];
11
+ additionalMenuItems?: NavMenuItem[];
12
+ actionLabel?: string;
13
+ containerClass?: string;
14
+ menuEnabled?: boolean;
15
+ authenticated?: boolean;
16
+ paddingClasses?: string;
17
+ transparent?: boolean;
7
18
  }
@@ -1,4 +1,5 @@
1
- import { PropType } from 'vue';
1
+ import { type PropType } from 'vue';
2
+ import type { FwPopoverProps } from './index.types';
2
3
  declare const __default__: import("vue").DefineComponent<{
3
4
  /**
4
5
  * The title of the popover
@@ -8,7 +9,7 @@ declare const __default__: import("vue").DefineComponent<{
8
9
  * The side of the target element the popover should be placed against. Accepts 'top', 'right', 'bottom' and 'left'
9
10
  */
10
11
  placement: {
11
- type: PropType<"top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
12
+ type: PropType<FwPopoverProps["placement"]>;
12
13
  default: string;
13
14
  validator: (value: string) => boolean;
14
15
  };
@@ -17,7 +18,7 @@ declare const __default__: import("vue").DefineComponent<{
17
18
  * Absolute is more performant if you have a lot of popovers; fixed is more robust
18
19
  */
19
20
  position: {
20
- type: PropType<"fixed" | "absolute">;
21
+ type: PropType<FwPopoverProps["position"]>;
21
22
  default: string;
22
23
  validator: (value: string) => boolean;
23
24
  };
@@ -76,6 +77,10 @@ declare const __default__: import("vue").DefineComponent<{
76
77
  autoCloseContent: (e: Event) => void;
77
78
  visible: import("vue").Ref<boolean>;
78
79
  spacingSize: import("vue").ComputedRef<"12px" | "2px">;
80
+ debounce: {
81
+ <T extends (...args: any) => any>(func: T, wait: number | undefined, options: import("lodash").DebounceSettingsLeading): import("lodash").DebouncedFuncLeading<T>;
82
+ <T extends (...args: any) => any>(func: T, wait?: number, options?: import("lodash").DebounceSettings): import("lodash").DebouncedFunc<T>;
83
+ };
79
84
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
85
  /**
81
86
  * The title of the popover
@@ -85,7 +90,7 @@ declare const __default__: import("vue").DefineComponent<{
85
90
  * The side of the target element the popover should be placed against. Accepts 'top', 'right', 'bottom' and 'left'
86
91
  */
87
92
  placement: {
88
- type: PropType<"top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
93
+ type: PropType<FwPopoverProps["placement"]>;
89
94
  default: string;
90
95
  validator: (value: string) => boolean;
91
96
  };
@@ -94,7 +99,7 @@ declare const __default__: import("vue").DefineComponent<{
94
99
  * Absolute is more performant if you have a lot of popovers; fixed is more robust
95
100
  */
96
101
  position: {
97
- type: PropType<"fixed" | "absolute">;
102
+ type: PropType<FwPopoverProps["position"]>;
98
103
  default: string;
99
104
  validator: (value: string) => boolean;
100
105
  };
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
- import { FwProviderListItem } from './index.types';
3
- declare const _default: import("vue").DefineComponent<{
2
+ import { FwProviderListProps } from './index.types';
3
+ declare const __default__: import("vue").DefineComponent<{
4
4
  /**
5
5
  * The header heading of the list.
6
6
  */
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
11
11
  * The list items of the table items.
12
12
  */
13
13
  items: {
14
- type: PropType<FwProviderListItem[]>;
14
+ type: PropType<FwProviderListProps["items"]>;
15
15
  required: true;
16
16
  };
17
17
  /**
@@ -47,6 +47,9 @@ declare const _default: import("vue").DefineComponent<{
47
47
  sortedTableItems: import("vue").ComputedRef<import("../fw-table/index.types").FwTableItem[]>;
48
48
  searchFilterModel: import("vue").Ref<string>;
49
49
  statusFilterModel: import("vue").Ref<string>;
50
+ primaryFade5: string;
51
+ primaryFade20: string;
52
+ primaryFade40: string;
50
53
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changed"[], "changed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
51
54
  /**
52
55
  * The header heading of the list.
@@ -58,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
58
61
  * The list items of the table items.
59
62
  */
60
63
  items: {
61
- type: PropType<FwProviderListItem[]>;
64
+ type: PropType<FwProviderListProps["items"]>;
62
65
  required: true;
63
66
  };
64
67
  /**
@@ -97,4 +100,4 @@ declare const _default: import("vue").DefineComponent<{
97
100
  searchLabel: string;
98
101
  statusFilterLabel: string;
99
102
  }, {}>;
100
- export default _default;
103
+ export default __default__;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { FwSidebarMenuItem } from './index.types';
2
+ import { type FwSidebarMenuProps } from './index.types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  /**
5
5
  * Controls the sidebar menu open/close state
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
13
13
  * `{ to?: string | object; href?: string; label: string; }`
14
14
  */
15
15
  menuItems: {
16
- type: PropType<FwSidebarMenuItem[]>;
16
+ type: PropType<FwSidebarMenuProps["menuItems"]>;
17
17
  };
18
18
  /**
19
19
  * The class for the open/close toggle button
@@ -36,6 +36,14 @@ declare const _default: import("vue").DefineComponent<{
36
36
  type: StringConstructor;
37
37
  default: string;
38
38
  };
39
+ /**
40
+ * The button variant of the toggle button
41
+ */
42
+ toggleButtonVariant: {
43
+ type: PropType<FwSidebarMenuProps["toggleButtonVariant"]>;
44
+ default: string;
45
+ validator: (value: string) => boolean;
46
+ };
39
47
  }, {
40
48
  baseClass: string;
41
49
  isMenuOpen: import("vue").WritableComputedRef<boolean>;
@@ -53,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
53
61
  * `{ to?: string | object; href?: string; label: string; }`
54
62
  */
55
63
  menuItems: {
56
- type: PropType<FwSidebarMenuItem[]>;
64
+ type: PropType<FwSidebarMenuProps["menuItems"]>;
57
65
  };
58
66
  /**
59
67
  * The class for the open/close toggle button
@@ -76,10 +84,19 @@ declare const _default: import("vue").DefineComponent<{
76
84
  type: StringConstructor;
77
85
  default: string;
78
86
  };
87
+ /**
88
+ * The button variant of the toggle button
89
+ */
90
+ toggleButtonVariant: {
91
+ type: PropType<FwSidebarMenuProps["toggleButtonVariant"]>;
92
+ default: string;
93
+ validator: (value: string) => boolean;
94
+ };
79
95
  }>> & {
80
96
  onToggled?: ((...args: any[]) => any) | undefined;
81
97
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
82
98
  }, {
99
+ toggleButtonVariant: import("../index.types").ButtonVariantName | undefined;
83
100
  modelValue: boolean;
84
101
  toggleButtonClass: string;
85
102
  openWidth: string;
@@ -1,3 +1,4 @@
1
+ import { type ButtonVariantName } from './../fw-button/index.types';
1
2
  export declare interface FwSidebarMenuItem {
2
3
  to?: string | object;
3
4
  href?: string;
@@ -7,3 +8,11 @@ export declare interface FwSidebarMenuItem {
7
8
  onClick?: () => void;
8
9
  modelValue?: boolean;
9
10
  }
11
+ export declare interface FwSidebarMenuProps {
12
+ modelValue: boolean;
13
+ menuItems: FwSidebarMenuItem[];
14
+ toggleButtonClass?: string;
15
+ openWidth?: string;
16
+ closedWidth?: string;
17
+ toggleButtonVariant?: ButtonVariantName;
18
+ }
@@ -0,0 +1,101 @@
1
+ import { type PropType } from 'vue';
2
+ import type { FwSwitchProps } from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * The name of the switch input field.
6
+ * Multiple switches can use the same name with a unique value.
7
+ */
8
+ name: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ /**
13
+ * The value of the input field. Must be unique per name.
14
+ */
15
+ value: {
16
+ type: StringConstructor;
17
+ required: false;
18
+ };
19
+ /**
20
+ * Validation rules. Accepts an object, stringm schema or validation function.
21
+ */
22
+ rules: {
23
+ type: PropType<FwSwitchProps["rules"]>;
24
+ };
25
+ /**
26
+ * The hint text shown below the input
27
+ */
28
+ hint: {
29
+ type: StringConstructor;
30
+ };
31
+ /**
32
+ * Enable or disable the error hidden element
33
+ */
34
+ enableErrors: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ /**
39
+ * Progmatically set the checked state of the input.
40
+ * Used outside a FwForm element
41
+ */
42
+ isChecked: {
43
+ type: BooleanConstructor;
44
+ required: false;
45
+ default: boolean;
46
+ };
47
+ }, {
48
+ isSwitched: import("vue").Ref<boolean>;
49
+ toggleSwitch: () => void;
50
+ uuid: string;
51
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
+ /**
53
+ * The name of the switch input field.
54
+ * Multiple switches can use the same name with a unique value.
55
+ */
56
+ name: {
57
+ type: StringConstructor;
58
+ required: true;
59
+ };
60
+ /**
61
+ * The value of the input field. Must be unique per name.
62
+ */
63
+ value: {
64
+ type: StringConstructor;
65
+ required: false;
66
+ };
67
+ /**
68
+ * Validation rules. Accepts an object, stringm schema or validation function.
69
+ */
70
+ rules: {
71
+ type: PropType<FwSwitchProps["rules"]>;
72
+ };
73
+ /**
74
+ * The hint text shown below the input
75
+ */
76
+ hint: {
77
+ type: StringConstructor;
78
+ };
79
+ /**
80
+ * Enable or disable the error hidden element
81
+ */
82
+ enableErrors: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ /**
87
+ * Progmatically set the checked state of the input.
88
+ * Used outside a FwForm element
89
+ */
90
+ isChecked: {
91
+ type: BooleanConstructor;
92
+ required: false;
93
+ default: boolean;
94
+ };
95
+ }>> & {
96
+ onChange?: ((...args: any[]) => any) | undefined;
97
+ }, {
98
+ enableErrors: boolean;
99
+ isChecked: boolean;
100
+ }, {}>;
101
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwSwitch from './fw-switch.vue';
2
+ export { FwSwitch };
@@ -0,0 +1,8 @@
1
+ export declare interface FwSwitchProps {
2
+ name: string;
3
+ value?: string;
4
+ rules?: string | Record<string, unknown> | (() => boolean);
5
+ hint?: string;
6
+ enableErrors?: boolean;
7
+ isChecked?: boolean;
8
+ }
@@ -1,12 +1,12 @@
1
- import { PropType } from 'vue';
2
- import { FwTableItem, FwTableSort } from './index.types';
1
+ import { type PropType } from 'vue';
2
+ import type { FwTableItem, FwTableProps, FwTableSort } from './index.types';
3
3
  declare const __default__: import("vue").DefineComponent<{
4
4
  items: {
5
- type: PropType<FwTableItem[]>;
5
+ type: PropType<FwTableProps["items"]>;
6
6
  required: true;
7
7
  };
8
8
  options: {
9
- type: PropType<import("./index.types").FwTableItemOptions | undefined>;
9
+ type: PropType<FwTableProps["options"]>;
10
10
  required: false;
11
11
  };
12
12
  loading: {
@@ -48,15 +48,15 @@ declare const __default__: import("vue").DefineComponent<{
48
48
  rowClicked: (row: FwTableItem) => void;
49
49
  bgHoverColor: string;
50
50
  currentPage: import("vue").Ref<number>;
51
- maxPageAmount: import("vue").ComputedRef<number | undefined>;
51
+ maxPageAmount: import("vue").Ref<number | undefined>;
52
52
  pageArrowClick: (next: boolean) => void;
53
53
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("rowClicked" | "columnSorted" | "pageChanged")[], "rowClicked" | "columnSorted" | "pageChanged", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
54
  items: {
55
- type: PropType<FwTableItem[]>;
55
+ type: PropType<FwTableProps["items"]>;
56
56
  required: true;
57
57
  };
58
58
  options: {
59
- type: PropType<import("./index.types").FwTableItemOptions | undefined>;
59
+ type: PropType<FwTableProps["options"]>;
60
60
  required: false;
61
61
  };
62
62
  loading: {
@@ -19,6 +19,3 @@ export declare interface FwTableProps {
19
19
  totalAmount?: number;
20
20
  pageSize?: number;
21
21
  }
22
- export declare type FwTableApi = {
23
- resetPage: () => void;
24
- };
@@ -1,4 +1,4 @@
1
- import { TabsState } from './index.types';
1
+ import { type TabsState } from './index.types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  /**
4
4
  * The active tab v-model
@@ -1,4 +1,4 @@
1
- import { ComponentInternalInstance } from 'vue';
1
+ import { type ComponentInternalInstance } from 'vue';
2
2
  export declare interface TabsState {
3
3
  tabs: ComponentInternalInstance[] | null;
4
4
  active: number;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue';
2
- import { TagSize, TagVariantName } from './index.types';
1
+ import { type PropType } from 'vue';
2
+ import type { TagSize, TagVariantName } from './index.types';
3
3
  declare const __default__: import("vue").DefineComponent<{
4
4
  /**
5
5
  * The label text of the tag.
@@ -1,9 +1,9 @@
1
- import { FwButtonProps } from '../fw-button/index.types';
2
- export type TagVariantName = 'primary' | 'secondary' | 'alert' | 'error' | 'success';
1
+ import { type FwButtonProps } from '../fw-button/index.types';
2
+ export type TagVariantName = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'alert' | 'error' | 'success';
3
3
  export declare interface TagDefinition {
4
4
  text: string;
5
5
  background: string;
6
- iconType: FwButtonProps['variant'];
6
+ iconButtonType: FwButtonProps['variant'];
7
7
  }
8
8
  export type TagDefinitionList = {
9
9
  [key in TagVariantName]: TagDefinition;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue';
2
- import { ToastType, ToastPosition } from './index.types';
1
+ import { type PropType } from 'vue';
2
+ import { type ToastType, type ToastPosition } from './index.types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  /**
5
5
  * The toast's v-model. Controls the visibility of the toast.
@@ -2,8 +2,10 @@ export * from './fw-form';
2
2
  export * from './fw-input';
3
3
  export * from './fw-checkbox';
4
4
  export * from './fw-dropdown';
5
+ export * from './fw-switch';
5
6
  export * from './fw-card';
6
7
  export * from './fw-button';
8
+ export * from './fw-alert';
7
9
  export * from './fw-navigation-menu';
8
10
  export * from './fw-tabs';
9
11
  export * from './fw-modal';
@@ -15,13 +17,12 @@ export * from './fw-image';
15
17
  export * from './fw-loading';
16
18
  export * from './fw-toast';
17
19
  export * from './fw-transactions-card';
18
- export * from './fw-bar-chart';
19
20
  export * from './fw-sidebar-menu';
20
21
  export * from './fw-drawer';
21
22
  export * from './fw-provider-list';
22
23
  export * from './fw-date-picker';
23
24
  export * from './fw-popover';
24
- export * from './fw-period-selector';
25
25
  export * from './fw-media-picker';
26
26
  export * from './fw-slider';
27
- export * from './fw-animations';
27
+ export * from './fw-bar-chart';
28
+ export * from './fw-icons';