@frollo/frollo-web-ui 9.0.1 → 9.0.2

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 (96) hide show
  1. package/cjs/index.js +10733 -3060
  2. package/esm/{_rollupPluginBabelHelpers-DODWUb5N.js → _rollupPluginBabelHelpers-BKlDnZ7n.js} +1 -1
  3. package/esm/fw-accordion.js +15 -18
  4. package/esm/fw-alert.js +32 -25
  5. package/esm/fw-bar-chart.js +265 -93
  6. package/esm/fw-button-DZTHZLjk.js +318 -0
  7. package/esm/fw-button.js +2 -2
  8. package/esm/{fw-card-D45R4kN-.js → fw-card-XGtsK2bM.js} +7 -10
  9. package/esm/fw-card.js +2 -2
  10. package/esm/fw-checkbox.js +8 -11
  11. package/esm/fw-date-picker.js +85 -49
  12. package/esm/fw-drawer.js +8 -8
  13. package/esm/{fw-dropdown-58wyuzsW.js → fw-dropdown-CSmYTm5O.js} +11 -14
  14. package/esm/fw-dropdown.js +7 -6
  15. package/esm/fw-form.js +1 -1
  16. package/esm/fw-icons.js +11 -12
  17. package/esm/fw-image-A2lXYs0u.js +325 -0
  18. package/esm/fw-image.js +5 -4
  19. package/esm/{fw-input-C2-cZ-BY.js → fw-input-BiPWWfK3.js} +12 -19
  20. package/esm/fw-input.js +3 -3
  21. package/esm/fw-loading-bar-3x4tkF1B.js +37 -0
  22. package/esm/fw-loading.js +89 -40
  23. package/esm/fw-media-picker.js +10 -653
  24. package/esm/fw-modal.js +11 -10
  25. package/esm/fw-navigation-menu.js +36 -41
  26. package/esm/fw-popover-BZ-zqUme.js +330 -0
  27. package/esm/fw-popover.js +2 -3
  28. package/esm/fw-progress-bar.js +1 -1
  29. package/esm/fw-provider-list.js +109 -87
  30. package/esm/fw-sidebar-menu.js +58 -51
  31. package/esm/fw-slider.js +64 -61
  32. package/esm/fw-switch.js +76 -49
  33. package/esm/fw-table-row-D6FdCJMs.js +447 -0
  34. package/esm/fw-table.js +5 -6
  35. package/esm/fw-tabs.js +87 -35
  36. package/esm/fw-tag-BRxPc4zc.js +199 -0
  37. package/esm/fw-tag.js +4 -4
  38. package/esm/fw-toast.js +58 -76
  39. package/esm/fw-transactions-card.js +20 -20
  40. package/esm/{get-root-colours-DCjlYelc.js → get-root-colours-DCCAnRF4.js} +3 -1
  41. package/esm/index-C8z11jcJ.js +7583 -0
  42. package/esm/index-DHyRsKsZ.js +843 -0
  43. package/esm/index-eP2GMSdQ.js +755 -0
  44. package/esm/index.js +54 -61
  45. package/esm/{uniqueId-DZdGzBh8.js → uniqueId-DK6xzFd8.js} +1 -1
  46. package/esm/{vee-validate.esm-3ptvCDR1.js → vee-validate-0dtT5GSQ.js} +182 -305
  47. package/frollo-web-ui.esm.js +10790 -3115
  48. package/icons/circle-check.svg +4 -0
  49. package/index.d.ts +1522 -586
  50. package/package.json +11 -11
  51. package/types/components/fw-accordion/fw-accordion.vue.d.ts +9 -7
  52. package/types/components/fw-alert/fw-alert.vue.d.ts +11 -6
  53. package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +15 -64
  54. package/types/components/fw-button/fw-button.vue.d.ts +11 -7
  55. package/types/components/fw-card/fw-card.vue.d.ts +6 -6
  56. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +365 -5
  57. package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +3 -242
  58. package/types/components/fw-drawer/fw-drawer.vue.d.ts +11 -8
  59. package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +20 -12
  60. package/types/components/fw-icons/fw-success-animation.vue.d.ts +1 -1
  61. package/types/components/fw-image/fw-image.vue.d.ts +33 -7
  62. package/types/components/fw-input/fw-input.vue.d.ts +368 -10
  63. package/types/components/fw-loading/fw-loading-bar.vue.d.ts +7 -5
  64. package/types/components/fw-loading/fw-loading-card.vue.d.ts +3 -1
  65. package/types/components/fw-loading/fw-loading-dots.vue.d.ts +8 -1
  66. package/types/components/fw-loading/fw-loading-table.vue.d.ts +11 -6
  67. package/types/components/fw-media-picker/fw-media-picker.vue.d.ts +27 -18
  68. package/types/components/fw-modal/fw-modal.vue.d.ts +11 -7
  69. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +12 -8
  70. package/types/components/fw-popover/fw-popover.vue.d.ts +16 -21
  71. package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +6 -4
  72. package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +20 -45
  73. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +13 -7
  74. package/types/components/fw-slider/fw-slider.vue.d.ts +11 -8
  75. package/types/components/fw-switch/fw-switch.vue.d.ts +383 -9
  76. package/types/components/fw-switch/index.types.d.ts +1 -0
  77. package/types/components/fw-table/fw-table-head.vue.d.ts +1 -1
  78. package/types/components/fw-table/fw-table-row.vue.d.ts +1 -1
  79. package/types/components/fw-table/fw-table.vue.d.ts +40 -19
  80. package/types/components/fw-table/index.types.d.ts +36 -2
  81. package/types/components/fw-tabs/fw-tab.vue.d.ts +4 -8
  82. package/types/components/fw-tabs/fw-tabs.vue.d.ts +11 -8
  83. package/types/components/fw-tabs/index.types.d.ts +14 -4
  84. package/types/components/fw-tag/fw-tag.vue.d.ts +14 -8
  85. package/types/components/fw-toast/fw-toast.vue.d.ts +17 -22
  86. package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +6 -3
  87. package/types/directives/lazy-loader.d.ts +11 -2
  88. package/types/helpers/get-root-colours.d.ts +1 -0
  89. package/web-components/index.js +16793 -7700
  90. package/esm/fw-button-YMoW4x4c.js +0 -296
  91. package/esm/fw-image-D-OHafdw.js +0 -217
  92. package/esm/fw-loading-bar-DecYSBC_.js +0 -45
  93. package/esm/fw-popover-B4bsfuxm.js +0 -620
  94. package/esm/fw-table-row-Cgi8871h.js +0 -389
  95. package/esm/fw-tag-fDo50Nw7.js +0 -177
  96. package/esm/index-BsEH8YYr.js +0 -979
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "9.0.1",
3
+ "version": "9.0.2",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -28,7 +28,7 @@
28
28
  "build-storybook": "storybook build"
29
29
  },
30
30
  "dependencies": {
31
- "vue": "^3.4.21"
31
+ "vue": "^3.5.25"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/core": "^7.24.5",
@@ -55,14 +55,15 @@
55
55
  "@types/lodash-es": "^4.17.12",
56
56
  "@vitejs/plugin-vue": "^6.0.1",
57
57
  "@vitejs/plugin-vue-jsx": "^5.1.1",
58
- "@vitest/coverage-istanbul": "^4.0.14",
58
+ "@vitest/coverage-istanbul": "^4.0.15",
59
59
  "@vue/test-utils": "^2.4.6",
60
60
  "autoprefixer": "^10.4.19",
61
- "chart.js": "^4.4.2",
61
+ "chart.js": "^4.5.1",
62
62
  "cross-env": "^7.0.3",
63
63
  "eslint": "^9.2.0",
64
64
  "eslint-config-prettier": "^9.1.0",
65
65
  "eslint-plugin-prettier": "^5.1.3",
66
+ "eslint-plugin-storybook": "10.1.2",
66
67
  "eslint-plugin-vue": "^9.26.0",
67
68
  "globals": "^15.2.0",
68
69
  "hash-sum": "^2.0.0",
@@ -71,7 +72,7 @@
71
72
  "postcss": "^8.4.38",
72
73
  "prettier": "^3.3.1",
73
74
  "rimraf": "^5.0.7",
74
- "rollup": "^4.17.2",
75
+ "rollup": "^4.53.3",
75
76
  "rollup-plugin-dts": "^6.1.0",
76
77
  "rollup-plugin-postcss": "^4.0.2",
77
78
  "rollup-plugin-typescript2": "^0.36.0",
@@ -82,21 +83,20 @@
82
83
  "tailwindcss": "^3.4.3",
83
84
  "ts-node": "^10.9.2",
84
85
  "tslib": "^2.6.2",
85
- "typescript": "^5.4.5",
86
+ "typescript": "^5.9.3",
86
87
  "typescript-eslint": "^8.48.0",
87
88
  "v-calendar": "^3.1.2",
88
- "vee-validate": "^4.12.8",
89
+ "vee-validate": "^4.15.1",
89
90
  "vite": "^7.2.2",
90
91
  "vite-plugin-checker": "^0.11.0",
91
92
  "vite-plugin-vue-devtools": "^8.0.3",
92
93
  "vite-svg-loader": "^5.1.0",
93
- "vitest": "^4.0.8",
94
- "vue-chartjs": "^5.3.1",
94
+ "vitest": "^4.0.15",
95
+ "vue-chartjs": "^5.3.3",
95
96
  "vue-eslint-parser": "^9.4.2",
96
97
  "vue-tsc": "^3.1.4",
97
98
  "vue3-webcomponent-wrapper": "^0.2.0",
98
- "yup": "^1.4.0",
99
- "eslint-plugin-storybook": "10.1.2"
99
+ "yup": "^1.7.1"
100
100
  },
101
101
  "license": "Apache-2.0",
102
102
  "sideEffects": false,
@@ -1,4 +1,4 @@
1
- declare const __default__: import("vue").DefineComponent<{
1
+ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  /**
3
3
  * The header title of the accordion
4
4
  */
@@ -53,14 +53,14 @@ declare const __default__: import("vue").DefineComponent<{
53
53
  type: BooleanConstructor;
54
54
  default: boolean;
55
55
  };
56
- }, {
57
- isOpen: import("vue").Ref<boolean>;
56
+ }>, {
57
+ isOpen: import("vue").Ref<boolean, boolean>;
58
58
  beforeEnter: (el: Element) => void;
59
59
  enter: (el: Element) => void;
60
60
  beforeLeave: (el: Element) => void;
61
61
  leave: (el: Element) => void;
62
62
  bgHoverColor: string;
63
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggled"[], "toggled", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
63
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggled"[], "toggled", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
64
  /**
65
65
  * The header title of the accordion
66
66
  */
@@ -115,14 +115,16 @@ declare const __default__: import("vue").DefineComponent<{
115
115
  type: BooleanConstructor;
116
116
  default: boolean;
117
117
  };
118
- }>> & {
118
+ }>> & Readonly<{
119
119
  onToggled?: ((...args: any[]) => any) | undefined;
120
- }, {
120
+ }>, {
121
121
  titleClass: string;
122
122
  isOpened: boolean;
123
123
  iconPositionStart: boolean;
124
124
  headerClass: string;
125
125
  borderStyle: string;
126
126
  secondary: boolean;
127
- }, {}>;
127
+ }, {}, {
128
+ ChevronDownSvg: VueConstructor<Vue>;
129
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
128
130
  export default __default__;
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import type { AlertVariantName } from './index.types';
3
- declare const _default: import("vue").DefineComponent<{
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  /**
5
5
  * The colour variant of the alert element.
6
6
  * Accepts 'success', 'error'
@@ -17,10 +17,12 @@ declare const _default: import("vue").DefineComponent<{
17
17
  type: BooleanConstructor;
18
18
  default: boolean;
19
19
  };
20
- }, {
20
+ }>, {
21
+ visible: import("vue").Ref<boolean, boolean>;
21
22
  bgClass: import("vue").ComputedRef<"bg-brand-error-bg" | "bg-brand-success-bg">;
22
- defaultScale: import("vue").Ref<string>;
23
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ IconComp: import("vue").ComputedRef<any>;
24
+ iconClass: import("vue").ComputedRef<"text-brand-success-text" | "text-brand-error-text">;
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
26
  /**
25
27
  * The colour variant of the alert element.
26
28
  * Accepts 'success', 'error'
@@ -37,7 +39,10 @@ declare const _default: import("vue").DefineComponent<{
37
39
  type: BooleanConstructor;
38
40
  default: boolean;
39
41
  };
40
- }>>, {
42
+ }>> & Readonly<{}>, {
41
43
  disableIcon: boolean;
42
- }, {}>;
44
+ }, {}, {
45
+ CheckSvg: VueConstructor<Vue>;
46
+ AlertSvg: VueConstructor<Vue>;
47
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
48
  export default _default;
@@ -1,36 +1,10 @@
1
- import { PropType } from 'vue';
2
- import { FwBarChartProps } from './index.types';
1
+ import { FwBarGraphData } from './index.types';
3
2
  declare const _default: import("vue").DefineComponent<{
4
- /**
5
- * The transaction title of the chart
6
- */
7
- title: {
8
- type: StringConstructor;
9
- };
10
- /**
11
- * The marker label of the y-axis transactions
12
- */
13
- yMarker: {
14
- type: StringConstructor;
15
- };
16
- /**
17
- * The x axis data.
18
- */
19
- x: {
20
- type: PropType<FwBarChartProps["x"]>;
21
- };
22
- /**
23
- * The y axis data.
24
- */
25
- y: {
26
- type: PropType<FwBarChartProps["y"]>;
27
- };
28
- /**
29
- * The x and y axis data.
30
- */
31
- graphData: {
32
- type: PropType<FwBarChartProps["graphData"]>;
33
- };
3
+ title?: string | undefined;
4
+ yMarker?: string | undefined;
5
+ x?: string[] | string | undefined;
6
+ y?: (string | number)[] | string | undefined;
7
+ graphData?: FwBarGraphData[] | string | undefined;
34
8
  }, {
35
9
  uuid: string;
36
10
  xModel: import("vue").ComputedRef<string[]>;
@@ -48,36 +22,13 @@ declare const _default: import("vue").DefineComponent<{
48
22
  }>;
49
23
  bgColor: string;
50
24
  primaryFade: string;
51
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
- /**
53
- * The transaction title of the chart
54
- */
55
- title: {
56
- type: StringConstructor;
57
- };
58
- /**
59
- * The marker label of the y-axis transactions
60
- */
61
- yMarker: {
62
- type: StringConstructor;
63
- };
64
- /**
65
- * The x axis data.
66
- */
67
- x: {
68
- type: PropType<FwBarChartProps["x"]>;
69
- };
70
- /**
71
- * The y axis data.
72
- */
73
- y: {
74
- type: PropType<FwBarChartProps["y"]>;
75
- };
76
- /**
77
- * The x and y axis data.
78
- */
79
- graphData: {
80
- type: PropType<FwBarChartProps["graphData"]>;
81
- };
82
- }>>, {}, {}>;
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
26
+ title?: string | undefined;
27
+ yMarker?: string | undefined;
28
+ x?: string[] | string | undefined;
29
+ y?: (string | number)[] | string | undefined;
30
+ graphData?: FwBarGraphData[] | string | undefined;
31
+ }> & Readonly<{}>, {}, {}, {
32
+ BarChart: import("vue-chartjs/dist/types").TypedChartComponent<"bar", (number | [number, number] | null)[] | import("vue-chartjs/dist/typedCharts").ExtendedDataPoint[], unknown>;
33
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
83
34
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import type { ButtonSize, ButtonVariantName, ButtonTypeAttribute, ButtonAnimation } from './index.types.ts';
3
- declare const _default: import("vue").DefineComponent<{
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  /**
5
5
  * The label text of the button.
6
6
  * Overrides the default slot content.
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
71
71
  */
72
72
  external: {
73
73
  type: BooleanConstructor;
74
+ default: boolean;
74
75
  };
75
76
  /**
76
77
  * Whether the button selected state is active
@@ -85,8 +86,7 @@ declare const _default: import("vue").DefineComponent<{
85
86
  type: BooleanConstructor;
86
87
  default: boolean;
87
88
  };
88
- }, {
89
- baseClass: import("vue").Ref<string>;
89
+ }>, {
90
90
  textColorClass: import("vue").ComputedRef<string>;
91
91
  bgColorClass: import("vue").ComputedRef<string>;
92
92
  sizeClass: import("vue").ComputedRef<string>;
@@ -113,7 +113,8 @@ declare const _default: import("vue").DefineComponent<{
113
113
  spacing: string;
114
114
  size: string;
115
115
  }>;
116
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
116
+ rootClasses: import("vue").ComputedRef<string[]>;
117
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover" | "mouseout" | "focusin" | "focusout")[], "click" | "mouseover" | "mouseout" | "focusin" | "focusout", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
117
118
  /**
118
119
  * The label text of the button.
119
120
  * Overrides the default slot content.
@@ -184,6 +185,7 @@ declare const _default: import("vue").DefineComponent<{
184
185
  */
185
186
  external: {
186
187
  type: BooleanConstructor;
188
+ default: boolean;
187
189
  };
188
190
  /**
189
191
  * Whether the button selected state is active
@@ -198,13 +200,13 @@ declare const _default: import("vue").DefineComponent<{
198
200
  type: BooleanConstructor;
199
201
  default: boolean;
200
202
  };
201
- }>> & {
203
+ }>> & Readonly<{
202
204
  onClick?: ((...args: any[]) => any) | undefined;
203
205
  onMouseover?: ((...args: any[]) => any) | undefined;
204
206
  onMouseout?: ((...args: any[]) => any) | undefined;
205
207
  onFocusin?: ((...args: any[]) => any) | undefined;
206
208
  onFocusout?: ((...args: any[]) => any) | undefined;
207
- }, {
209
+ }>, {
208
210
  size: ButtonSize;
209
211
  variant: ButtonVariantName;
210
212
  buttonType: ButtonTypeAttribute;
@@ -214,5 +216,7 @@ declare const _default: import("vue").DefineComponent<{
214
216
  external: boolean;
215
217
  selected: boolean;
216
218
  disabled: boolean;
217
- }, {}>;
219
+ }, {}, {
220
+ LoadingSvg: VueConstructor<Vue>;
221
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
218
222
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const __default__: import("vue").DefineComponent<{
1
+ declare const __default__: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  /**
3
3
  * The header title of the card
4
4
  */
@@ -35,11 +35,11 @@ declare const __default__: import("vue").DefineComponent<{
35
35
  type: BooleanConstructor;
36
36
  default: boolean;
37
37
  };
38
- }, {
38
+ }>, {
39
39
  componentName: import("vue").ComputedRef<"router-link" | "a" | "div">;
40
- linkClass: import("vue").Ref<string>;
40
+ linkClass: string;
41
41
  cardHeaderBg: string;
42
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
43
  /**
44
44
  * The header title of the card
45
45
  */
@@ -76,8 +76,8 @@ declare const __default__: import("vue").DefineComponent<{
76
76
  type: BooleanConstructor;
77
77
  default: boolean;
78
78
  };
79
- }>>, {
79
+ }>> & Readonly<{}>, {
80
80
  slotPadding: boolean;
81
81
  isBordered: boolean;
82
- }, {}>;
82
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
83
83
  export default __default__;