@frollo/frollo-web-ui 7.0.1 → 8.0.1

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 (172) hide show
  1. package/cjs/index.js +34629 -34457
  2. package/esm/_rollupPluginBabelHelpers-DpC_oIQV.js +2566 -0
  3. package/esm/{check-94a5917a.js → check--YD4Ts6g.js} +4 -4
  4. package/esm/fw-accordion.js +27 -26
  5. package/esm/fw-animations.js +23 -26
  6. package/esm/fw-bar-chart.js +15289 -19
  7. package/esm/{fw-button-c8502414.js → fw-button-4QLZlu0U.js} +44 -44
  8. package/esm/fw-button.js +5 -10
  9. package/esm/{fw-card-1b6a67fe.js → fw-card-bsYbpPmW.js} +12 -12
  10. package/esm/fw-card.js +1 -1
  11. package/esm/fw-checkbox.js +23 -32
  12. package/esm/fw-date-picker.js +134 -80
  13. package/esm/fw-drawer.js +32 -35
  14. package/esm/fw-dropdown-nLtzu2fS.js +277 -0
  15. package/esm/fw-dropdown.js +7 -15
  16. package/esm/fw-form.js +1 -1
  17. package/esm/fw-image-DOgM8i8X.js +200 -0
  18. package/esm/fw-image.js +5 -21
  19. package/esm/{fw-input-8969b226.js → fw-input-Qiy53nRk.js} +61 -53
  20. package/esm/fw-input.js +6 -19
  21. package/esm/fw-loading-bar-DThRjdw1.js +22 -0
  22. package/esm/{fw-loading-spinner-72d70258.js → fw-loading-spinner-Dn52RI5h.js} +1 -1
  23. package/esm/fw-loading.js +3 -7
  24. package/esm/fw-modal.js +93 -56
  25. package/esm/fw-navigation-menu.js +15 -20
  26. package/esm/fw-popover.js +39 -375
  27. package/esm/fw-progress-bar.js +8 -11
  28. package/esm/fw-provider-list.js +41 -84
  29. package/esm/fw-sidebar-menu.js +33 -24
  30. package/esm/{fw-table-row-23f78218.js → fw-table-row-DkZaaMmE.js} +15 -301
  31. package/esm/fw-table.js +6 -16
  32. package/esm/fw-tabs.js +21 -103
  33. package/esm/{fw-tag-ac28200a.js → fw-tag-CPp1P480.js} +29 -20
  34. package/esm/fw-tag.js +7 -12
  35. package/esm/fw-toast.js +22 -37
  36. package/esm/fw-transactions-card.js +14 -30
  37. package/esm/index-CUPvK0Aa.js +586 -0
  38. package/esm/index.js +66 -228
  39. package/esm/vee-validate.esm-3ptvCDR1.js +4071 -0
  40. package/frollo-web-ui.esm.js +34401 -34647
  41. package/icons/chart-line-up.svg +3 -0
  42. package/icons/icons.stories.ts +24 -29
  43. package/icons/index.ts +5 -1
  44. package/icons/sack-dollar.svg +3 -0
  45. package/icons/xmark.svg +2 -2
  46. package/index.d.ts +2815 -2573
  47. package/package.json +75 -73
  48. package/styles/tailwind.scss +6 -0
  49. package/types/components/fw-accordion/fw-accordion.vue.d.ts +128 -128
  50. package/types/components/fw-accordion/index.d.ts +2 -2
  51. package/types/components/fw-accordion/index.types.d.ts +10 -10
  52. package/types/components/fw-animations/fw-email-pulse.vue.d.ts +24 -24
  53. package/types/components/fw-animations/fw-loading-spinner.vue.d.ts +2 -2
  54. package/types/components/fw-animations/fw-success-pulse.vue.d.ts +24 -24
  55. package/types/components/fw-animations/index.d.ts +4 -4
  56. package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -83
  57. package/types/components/fw-bar-chart/index.d.ts +2 -2
  58. package/types/components/fw-bar-chart/index.types.d.ts +11 -11
  59. package/types/components/fw-button/fw-button.vue.d.ts +190 -176
  60. package/types/components/fw-button/index.d.ts +2 -2
  61. package/types/components/fw-button/index.types.d.ts +27 -26
  62. package/types/components/fw-card/fw-card.vue.d.ts +82 -82
  63. package/types/components/fw-card/index.d.ts +2 -2
  64. package/types/components/fw-card/index.types.d.ts +8 -8
  65. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +108 -108
  66. package/types/components/fw-checkbox/index.d.ts +2 -2
  67. package/types/components/fw-checkbox/index.types.d.ts +9 -9
  68. package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +249 -177
  69. package/types/components/fw-date-picker/index.d.ts +2 -2
  70. package/types/components/fw-date-picker/index.types.d.ts +21 -16
  71. package/types/components/fw-drawer/fw-drawer.vue.d.ts +165 -165
  72. package/types/components/fw-drawer/index.d.ts +2 -2
  73. package/types/components/fw-drawer/index.types.d.ts +13 -13
  74. package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +154 -130
  75. package/types/components/fw-dropdown/index.d.ts +2 -2
  76. package/types/components/fw-dropdown/index.types.d.ts +16 -13
  77. package/types/components/fw-form/index.d.ts +2 -2
  78. package/types/components/fw-image/fw-image.vue.d.ts +103 -84
  79. package/types/components/fw-image/index.d.ts +2 -2
  80. package/types/components/fw-image/index.types.d.ts +9 -8
  81. package/types/components/fw-input/fw-input.vue.d.ts +214 -197
  82. package/types/components/fw-input/index.d.ts +2 -2
  83. package/types/components/fw-input/index.types.d.ts +18 -16
  84. package/types/components/fw-loading/fw-loading-bar.vue.d.ts +2 -2
  85. package/types/components/fw-loading/fw-loading-card.vue.d.ts +2 -2
  86. package/types/components/fw-loading/fw-loading-table.vue.d.ts +25 -25
  87. package/types/components/fw-loading/index.d.ts +4 -4
  88. package/types/components/fw-modal/fw-modal.vue.d.ts +229 -175
  89. package/types/components/fw-modal/index.d.ts +2 -2
  90. package/types/components/fw-modal/index.types.d.ts +18 -14
  91. package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +57 -57
  92. package/types/components/fw-navigation-menu/index.d.ts +2 -2
  93. package/types/components/fw-navigation-menu/index.types.d.ts +7 -7
  94. package/types/components/fw-popover/fw-popover.vue.d.ts +157 -157
  95. package/types/components/fw-popover/index.d.ts +2 -2
  96. package/types/components/fw-popover/index.types.d.ts +11 -11
  97. package/types/components/fw-progress-bar/fw-progress-bar.vue.d.ts +52 -52
  98. package/types/components/fw-progress-bar/index.d.ts +2 -2
  99. package/types/components/fw-progress-bar/index.types.d.ts +5 -5
  100. package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +100 -100
  101. package/types/components/fw-provider-list/index.d.ts +2 -2
  102. package/types/components/fw-provider-list/index.types.d.ts +11 -11
  103. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +88 -72
  104. package/types/components/fw-sidebar-menu/index.d.ts +2 -2
  105. package/types/components/fw-sidebar-menu/index.types.d.ts +9 -8
  106. package/types/components/fw-table/fw-table-head.vue.d.ts +2 -2
  107. package/types/components/fw-table/fw-table-row.vue.d.ts +2 -2
  108. package/types/components/fw-table/fw-table.vue.d.ts +71 -71
  109. package/types/components/fw-table/index.d.ts +4 -4
  110. package/types/components/fw-table/index.types.d.ts +16 -16
  111. package/types/components/fw-tabs/fw-tab.vue.d.ts +24 -32
  112. package/types/components/fw-tabs/fw-tabs.vue.d.ts +24 -24
  113. package/types/components/fw-tabs/index.d.ts +3 -3
  114. package/types/components/fw-tabs/index.types.d.ts +8 -0
  115. package/types/components/fw-tag/fw-tag.vue.d.ts +80 -70
  116. package/types/components/fw-tag/index.d.ts +2 -2
  117. package/types/components/fw-tag/index.types.d.ts +18 -18
  118. package/types/components/fw-toast/fw-toast.vue.d.ts +121 -121
  119. package/types/components/fw-toast/index.d.ts +2 -2
  120. package/types/components/fw-toast/index.types.d.ts +13 -13
  121. package/types/components/fw-transactions-card/fw-transactions-card.vue.d.ts +58 -58
  122. package/types/components/fw-transactions-card/index.d.ts +2 -2
  123. package/types/components/fw-transactions-card/index.types.d.ts +6 -6
  124. package/types/components/index.d.ts +24 -24
  125. package/types/components/index.types.d.ts +21 -20
  126. package/types/directives/index.d.ts +2 -2
  127. package/types/directives/lazy-loader.d.ts +3 -3
  128. package/types/helpers/get-root-colours.d.ts +17 -17
  129. package/types/icons/index.d.ts +43 -41
  130. package/types/index-types.esm.d.ts +6 -6
  131. package/types/index.browser-umd.d.ts +2 -1
  132. package/types/index.d.ts +3 -3
  133. package/types/index.esm.d.ts +5 -5
  134. package/types/services/index.d.ts +2 -2
  135. package/types/services/modal.d.ts +9 -9
  136. package/types/services/toast.d.ts +9 -9
  137. package/web-components/index.js +19670 -19720
  138. package/esm/add-to-unscopables-ee05b58f.js +0 -25
  139. package/esm/array-iteration-8267bf22.js +0 -92
  140. package/esm/array-method-has-species-support-6c675094.js +0 -23
  141. package/esm/array-method-is-strict-d313436f.js +0 -14
  142. package/esm/array-species-create-1c67e297.js +0 -97
  143. package/esm/classof-d44bf093.js +0 -42
  144. package/esm/create-property-eb329361.js +0 -14
  145. package/esm/defineProperty-b85f2e0f.js +0 -42
  146. package/esm/does-not-exceed-safe-integer-de37ce28.js +0 -11
  147. package/esm/es.array.concat-99b85557.js +0 -69
  148. package/esm/es.array.find-1ded15d5.js +0 -28
  149. package/esm/es.array.includes-08e25019.js +0 -27
  150. package/esm/es.array.map-c56ebffd.js +0 -22
  151. package/esm/es.date.to-string-15eb9936.js +0 -23
  152. package/esm/es.function.name-6cafd747.js +0 -29
  153. package/esm/es.number.constructor-fb16fe05.js +0 -204
  154. package/esm/es.object.to-string-4b07c4d1.js +0 -24
  155. package/esm/es.string.includes-061e8272.js +0 -66
  156. package/esm/es.string.iterator-25db8cd2.js +0 -469
  157. package/esm/export-10c4adbc.js +0 -95
  158. package/esm/function-apply-e17cf65b.js +0 -14
  159. package/esm/fw-dropdown-6856e66e.js +0 -224
  160. package/esm/fw-image-aca2c61d.js +0 -296
  161. package/esm/fw-loading-bar-f5ca605c.js +0 -22
  162. package/esm/index-6758f755.js +0 -15797
  163. package/esm/index-bced3b35.js +0 -560
  164. package/esm/is-forced-7cb3ee8f.js +0 -927
  165. package/esm/object-create-51bf02dc.js +0 -125
  166. package/esm/regexp-flags-c09864e5.js +0 -50
  167. package/esm/vee-validate.esm-a17a23c3.js +0 -3192
  168. package/esm/web.timers-e406c8e6.js +0 -72
  169. /package/esm/{get-root-colours-865a52ba.js → get-root-colours-DYEoJPEb.js} +0 -0
  170. /package/esm/{index-0c5cae4f.js → index-BVcOAKar.js} +0 -0
  171. /package/esm/{style-inject.es-1f59c1d0.js → style-inject.es-tgCJW-Cu.js} +0 -0
  172. /package/esm/{uniqueId-fe08534a.js → uniqueId-DK6xzFd8.js} +0 -0
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 22" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1.5 17.75C1.5 18.9922 2.50734 20 3.75 20H23.25C23.6625 20 24 20.3375 24 20.75C24 21.1625 23.6625 21.5 23.25 21.5H3.75C1.67906 21.5 0 19.8219 0 17.75V1.25C0 0.835625 0.335812 0.5 0.75 0.5C1.16438 0.5 1.5 0.835625 1.5 1.25V17.75ZM15.75 5H21.75C22.1625 5 22.5 5.3375 22.5 5.75V11.75C22.5 12.1625 22.1625 12.5 21.75 12.5C21.3375 12.5 21 12.1625 21 11.75V7.55938L15.5297 13.0297C15.2391 13.325 14.7609 13.325 14.4703 13.0297L10.4578 9.05938L5.77969 13.7797C5.48906 14.075 5.01094 14.075 4.72031 13.7797C4.42687 13.4891 4.42687 13.0109 4.72031 12.7203L9.97031 7.47031C10.2609 7.175 10.7391 7.175 11.0297 7.47031L15 11.4406L19.9406 6.5H15.75C15.3375 6.5 15 6.1625 15 5.75C15 5.3375 15.3375 5 15.75 5Z" />
3
+ </svg>
@@ -1,33 +1,28 @@
1
- import { Meta } from '@storybook/vue3';
1
+ import { Meta, StoryObj } from '@storybook/vue3';
2
2
  import * as icons from './';
3
- import FwCard from '../components/fw-card/fw-card.vue';
4
3
 
5
- export default {
6
- title: 'Icons'
7
- } as Meta;
4
+ const meta = {
5
+ title: 'Icons',
6
+ tags: ['!autodocs']
7
+ } satisfies Meta;
8
8
 
9
- const Template = () => ({
10
- components: { FwCard },
11
- template: `
12
- <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 w-full items-center">
13
- <div class="p-6 border-grey-20 border" v-for="icon, i in icons" :key="i">
14
- <div class="flex flex-col items-center justify-center space-y-3">
15
- <component :is="icon" class="w-10 h-10 text-body" />
16
- <span class="text-sm capitalize font-medium">{{ extractFilename(icon.__file) }}</span>
17
- </div>
18
- </div>
19
- </div>`,
20
- setup() {
21
- const extractFilename = (path: string) => {
22
- const pathArray = path?.split('/');
23
- const lastIndex = pathArray?.length - 1;
24
- if (lastIndex) return pathArray[lastIndex].slice(0, -4);
25
- };
26
- return {
27
- icons,
28
- extractFilename
29
- };
30
- }
31
- });
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
32
11
 
33
- export const Default = Template.bind({});
12
+ export const Basic: Story = {
13
+ render: () => ({
14
+ template: `
15
+ <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 w-full items-center">
16
+ <div class="p-6 border-grey-20 border" v-for="icon, i in icons" :key="i">
17
+ <div class="flex flex-col items-center justify-center space-y-3">
18
+ <component :is="icon" class="w-14 h-14 text-body" />
19
+ </div>
20
+ </div>
21
+ </div>`,
22
+ setup() {
23
+ return {
24
+ icons
25
+ };
26
+ }
27
+ })
28
+ };
package/icons/index.ts CHANGED
@@ -38,6 +38,8 @@ import PenSvg from './pen.svg';
38
38
  import CalendarSvg from './calendar.svg';
39
39
  import CalendarDaySvg from './calendar-day.svg';
40
40
  import EllipsisSvg from './ellipsis.svg';
41
+ import ChartLineUpSvg from './chart-line-up.svg';
42
+ import SackDollarSvg from './sack-dollar.svg';
41
43
 
42
44
  export {
43
45
  ViewSvg,
@@ -79,5 +81,7 @@ export {
79
81
  PenSvg,
80
82
  CalendarSvg,
81
83
  CalendarDaySvg,
82
- EllipsisSvg
84
+ EllipsisSvg,
85
+ ChartLineUpSvg,
86
+ SackDollarSvg
83
87
  };
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.75 10.95C13.0266 10.9969 13.5984 11.1187 13.8797 11.1797C14.2828 11.2875 14.5172 11.7 14.4141 12.0984C14.3062 12.5016 13.8937 12.7359 13.4953 12.6328C13.3078 12.5813 12.6656 12.4547 12.4594 12.4219C11.8547 12.3281 11.3484 12.4031 11.0109 12.5578C10.6734 12.7125 10.5047 12.9094 10.5187 13.0359C10.4859 13.2703 10.5141 13.3687 10.5422 13.425C10.5703 13.4906 10.6313 13.5703 10.7719 13.6641C11.0906 13.8797 11.5734 14.0297 12.225 14.2266L12.2531 14.2359C12.8297 14.4094 13.5609 14.6297 14.1047 15.0234C14.3953 15.2344 14.6672 15.5203 14.8359 15.9047C15.0047 16.2937 15.0375 16.725 14.9625 17.1797C14.8172 17.9578 14.2781 18.5578 13.5891 18.8531C13.3266 18.9656 13.0453 19.0406 12.75 19.0828V19.5C12.75 19.9125 12.4125 20.25 12 20.25C11.5875 20.25 11.25 19.9125 11.25 19.5V19.05C10.8094 18.9656 10.1438 18.7406 9.73125 18.5953C9.64688 18.5672 9.57187 18.5438 9.51094 18.525C9.12187 18.3938 8.90625 17.9672 9.0375 17.5734C9.16875 17.1844 9.59531 16.9688 9.98906 17.1C10.0359 17.1328 10.1766 17.1656 10.275 17.1984C10.7203 17.3484 11.2453 17.5266 11.5453 17.5359C12.1687 17.6719 12.6703 17.6156 12.9984 17.475C13.3031 17.3438 13.4391 17.1609 13.4813 16.9219C13.5188 16.7062 13.4906 16.5797 13.4578 16.5047C13.425 16.425 13.3547 16.3359 13.2188 16.2375C12.9141 16.0125 12.4359 15.8578 11.7938 15.6609L11.6953 15.6328C11.1422 15.4641 10.4484 15.2578 9.93281 14.8641C9.6375 14.7094 9.36094 14.4375 9.18281 14.0672C9.00469 13.6875 8.9625 13.2656 9.0375 12.8203C9.17344 12.0375 9.73125 11.4938 10.3922 11.1938C10.6547 11.0719 10.9453 10.9875 11.25 10.9359V10.4578C11.25 10.0875 11.5875 9.70781 12 9.70781C12.4125 9.70781 12.75 10.0875 12.75 10.4578V10.95ZM8.39062 5.64375L5.71406 1.76344C5.16094 1.01719 5.7375 0 6.64219 0H17.3578C18.2625 0 18.7969 1.01719 18.2859 1.76344L15.5672 5.64375C15.9703 5.87813 16.3922 6.15938 16.8469 6.49219C19.725 8.61094 24 12.8156 24 19.5C24 21.9844 21.9844 24 19.5 24H4.5C2.01469 24 0 21.9844 0 19.5C0 12.8156 4.275 8.61094 7.15313 6.49219C7.60781 6.15938 8.02969 5.87813 8.39062 5.64375ZM9.20156 6.90937C6.62813 8.55469 1.5 12.5766 1.5 19.5C1.5 21.1547 2.84297 22.5 4.5 22.5H19.5C21.1547 22.5 22.5 21.1547 22.5 19.5C22.5 12.5766 17.3719 8.55469 14.7984 6.90937L14.5547 6.70781H9.44531L9.20156 6.90937ZM14.0578 5.20781L16.6453 1.45781H7.35469L9.94219 5.20781H14.0578Z" />
3
+ </svg>
package/icons/xmark.svg CHANGED
@@ -1,3 +1,3 @@
1
- <svg viewBox="0 0 30 31" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M22.2806 22.7796C21.9875 23.0727 21.5133 23.0727 21.2198 22.7796L15.0009 16.5593L8.78061 22.7796C8.4875 23.0727 8.01327 23.0727 7.71983 22.7796C7.42672 22.4865 7.42672 22.0123 7.71983 21.7189L13.9416 15.4999L7.72077 9.27964C7.42766 8.98653 7.42766 8.51229 7.72077 8.21886C8.01388 7.92575 8.48811 7.92575 8.78155 8.21886L15.0009 14.4406L21.2212 8.22026C21.5143 7.92715 21.9886 7.92715 22.282 8.22026C22.5751 8.51337 22.5751 8.98761 22.282 9.28104L16.0603 15.4999L22.2806 21.7203C22.5759 22.0109 22.5759 22.489 22.2806 22.7796Z" />
1
+ <svg viewBox="0 0 16 15" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15.2806 14.7797C14.9875 15.0728 14.5133 15.0728 14.2198 14.7797L8.00093 8.55939L1.78061 14.7797C1.4875 15.0728 1.01327 15.0728 0.719832 14.7797C0.426723 14.4866 0.426723 14.0124 0.719832 13.7189L6.94155 7.50001L0.72077 1.2797C0.42766 0.986589 0.42766 0.512354 0.72077 0.218916C1.01388 -0.0741929 1.48811 -0.0741929 1.78155 0.218916L8.00093 6.44063L14.2212 0.220323C14.5143 -0.0727867 14.9886 -0.0727867 15.282 0.220323C15.5751 0.513432 15.5751 0.987667 15.282 1.2811L9.0603 7.50001L15.2806 13.7203C15.5759 14.0109 15.5759 14.4891 15.2806 14.7797Z" />
3
3
  </svg>