@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,7 @@
1
- import { defineComponent, computed, ref, resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, createVNode, createBlock, createCommentVNode, renderSlot } from 'vue';
2
- import { s as script$1 } from './fw-loading-bar-DThRjdw1.js';
3
- import { q as render$1 } from './index-CzZMBMV_.js';
1
+ import { defineComponent, computed, ref, useCssVars, resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, withKeys, normalizeClass, createElementVNode, createVNode, renderSlot, createBlock, createCommentVNode } from 'vue';
2
+ import { _ as __default__$1 } from './fw-loading-bar-DecYSBC_.js';
3
+ import { u as render$1 } from './index-BsEH8YYr.js';
4
+ import { u as useColours } from './get-root-colours-DCjlYelc.js';
4
5
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
5
6
 
6
7
  var handleIntersect = function handleIntersect(entries, observer) {
@@ -68,14 +69,13 @@ var lazyLoadDirective = {
68
69
  }
69
70
  };
70
71
 
71
- var script = defineComponent({
72
+ var __default__ = defineComponent({
72
73
  name: 'FwImage',
73
74
  directives: {
74
75
  lazyload: lazyLoadDirective
75
76
  },
76
- emits: ['click', 'mouseover', 'mouseout'],
77
77
  components: {
78
- FwLoadingBar: script$1,
78
+ FwLoadingBar: __default__$1,
79
79
  FileExclamationSvg: render$1
80
80
  },
81
81
  props: {
@@ -125,17 +125,33 @@ var script = defineComponent({
125
125
  "default": true
126
126
  }
127
127
  },
128
+ emits: ['click', 'mouseover', 'mouseout'],
128
129
  setup: function setup(props) {
129
130
  var isBackground = computed(function () {
130
131
  return props.type === 'background';
131
132
  });
132
133
  var fwImageRef = ref(null);
134
+ var _useColours = useColours(),
135
+ colorErrorTextFade5 = _useColours.colorErrorTextFade5;
133
136
  return {
134
137
  fwImageRef: fwImageRef,
135
- isBackground: isBackground
138
+ isBackground: isBackground,
139
+ colorErrorTextFade5: colorErrorTextFade5
136
140
  };
137
141
  }
138
142
  });
143
+ var __injectCSSVars__ = function __injectCSSVars__() {
144
+ useCssVars(function (_ctx) {
145
+ return {
146
+ "eb5c76bc": _ctx.colorErrorTextFade5
147
+ };
148
+ });
149
+ };
150
+ var __setup__ = __default__.setup;
151
+ __default__.setup = __setup__ ? function (props, ctx) {
152
+ __injectCSSVars__();
153
+ return __setup__(props, ctx);
154
+ } : __injectCSSVars__;
139
155
 
140
156
  var _hoisted_1 = ["type", "threshold"];
141
157
  var _hoisted_2 = ["data-url", "alt"];
@@ -182,19 +198,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
182
198
  'rounded-full': _ctx.rounded
183
199
  }])
184
200
  }, null, 8, ["class"]), createElementVNode("div", {
185
- "class": normalizeClass(["fw-image--error rounded bg-grey-20", {
201
+ "class": normalizeClass(["fw-image--error rounded", {
186
202
  'rounded-full': _ctx.rounded
187
203
  }])
188
204
  }, [createElementVNode("div", _hoisted_3, [_ctx.enableErrors ? (openBlock(), createBlock(_component_FileExclamationSvg, {
189
205
  key: 0,
190
- "class": "w-full h-full scale-[0.25] opacity-40 text-alert max-w-[150px]"
206
+ name: "file-exclamation",
207
+ "class": "w-full h-full scale-[0.25] opacity-40 text-brand-warning-text max-w-[150px]"
191
208
  })) : createCommentVNode("", true)])], 2), renderSlot(_ctx.$slots, "default")], 42, _hoisted_1)), [[_directive_lazyload]]);
192
209
  }
193
210
 
194
- var css_248z = ".fw-image{position:relative}.fw-image img{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.fw-image img,.fw-image--error{opacity:0;visibility:hidden;width:100%}.fw-image--error{height:100%;left:0;position:relative;position:absolute;top:0;-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;transition:all .5s ease-in}.fw-image--error-wrapper{font-size:inherit;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.fw-image--loading{height:100%;left:0;position:absolute!important;top:0;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:100%}.fw-image--loaded img,.fw-image--loading{opacity:1;visibility:visible}.fw-image--loaded .fw-image--loading{opacity:0;visibility:hidden;width:100%}.fw-image--loaded-error img{display:none}.fw-image--loaded-error .fw-image--error{opacity:1;visibility:visible}.fw-image--background{background-position:50%;background-repeat:no-repeat;background-size:cover}";
195
- var stylesheet = ".fw-image{position:relative}.fw-image img{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.fw-image img,.fw-image--error{opacity:0;visibility:hidden;width:100%}.fw-image--error{height:100%;left:0;position:relative;position:absolute;top:0;-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;transition:all .5s ease-in}.fw-image--error-wrapper{font-size:inherit;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.fw-image--loading{height:100%;left:0;position:absolute!important;top:0;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:100%}.fw-image--loaded img,.fw-image--loading{opacity:1;visibility:visible}.fw-image--loaded .fw-image--loading{opacity:0;visibility:hidden;width:100%}.fw-image--loaded-error img{display:none}.fw-image--loaded-error .fw-image--error{opacity:1;visibility:visible}.fw-image--background{background-position:50%;background-repeat:no-repeat;background-size:cover}";
211
+ var css_248z = ".fw-image{position:relative}.fw-image img{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.fw-image img,.fw-image--error{opacity:0;visibility:hidden;width:100%}.fw-image--error{background-color:var(--eb5c76bc);height:100%;left:0;position:relative;position:absolute;top:0;-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;transition:all .5s ease-in}.fw-image--error-wrapper{font-size:inherit;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.fw-image--loading{height:100%;left:0;position:absolute!important;top:0;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:100%}.fw-image--loaded img,.fw-image--loading{opacity:1;visibility:visible}.fw-image--loaded .fw-image--loading{opacity:0;visibility:hidden;width:100%}.fw-image--loaded-error img{display:none}.fw-image--loaded-error .fw-image--error{opacity:1;visibility:visible}.fw-image--background{background-position:50%;background-repeat:no-repeat;background-size:cover}";
212
+ var stylesheet = ".fw-image{position:relative}.fw-image img{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.fw-image img,.fw-image--error{opacity:0;visibility:hidden;width:100%}.fw-image--error{background-color:var(--eb5c76bc);height:100%;left:0;position:relative;position:absolute;top:0;-webkit-transition:all .5s ease-in;-moz-transition:all .5s ease-in;transition:all .5s ease-in}.fw-image--error-wrapper{font-size:inherit;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.fw-image--loading{height:100%;left:0;position:absolute!important;top:0;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:100%}.fw-image--loaded img,.fw-image--loading{opacity:1;visibility:visible}.fw-image--loaded .fw-image--loading{opacity:0;visibility:hidden;width:100%}.fw-image--loaded-error img{display:none}.fw-image--loaded-error .fw-image--error{opacity:1;visibility:visible}.fw-image--background{background-position:50%;background-repeat:no-repeat;background-size:cover}";
196
213
  styleInject(css_248z);
197
214
 
198
- script.render = render;
215
+ __default__.render = render;
199
216
 
200
- export { script as s };
217
+ export { __default__ as _ };
package/esm/fw-image.js CHANGED
@@ -1,6 +1,6 @@
1
- export { s as FwImage } from './fw-image-Dl96Dc27.js';
1
+ export { _ as FwImage } from './fw-image-D-OHafdw.js';
2
2
  import 'vue';
3
- import './fw-loading-bar-DThRjdw1.js';
3
+ import './fw-loading-bar-DecYSBC_.js';
4
+ import './get-root-colours-DCjlYelc.js';
4
5
  import './style-inject.es-tgCJW-Cu.js';
5
- import './index-CzZMBMV_.js';
6
- import './check--YD4Ts6g.js';
6
+ import './index-BsEH8YYr.js';
@@ -1,11 +1,10 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, renderSlot, mergeProps, Transition } from 'vue';
1
+ import { defineComponent, ref, computed, useCssVars, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, createCommentVNode, normalizeClass, createTextVNode, toDisplayString, renderSlot, mergeProps, Transition } from 'vue';
2
2
  import { a as Field } from './vee-validate.esm-3ptvCDR1.js';
3
- import { u as uniqueId } from './uniqueId-DK6xzFd8.js';
3
+ import { u as useColours } from './get-root-colours-DCjlYelc.js';
4
4
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
5
5
 
6
- var script = defineComponent({
6
+ var __default__ = defineComponent({
7
7
  name: 'FwInput',
8
- emits: ['update:modelValue', 'focus', 'blur'],
9
8
  components: {
10
9
  InputField: Field
11
10
  },
@@ -108,15 +107,14 @@ var script = defineComponent({
108
107
  required: {
109
108
  type: Boolean,
110
109
  "default": false
111
- },
112
- centerAlignInput: {
113
- type: Boolean,
114
- "default": false
115
110
  }
116
111
  },
112
+ emits: ['update:modelValue', /** Fired on native input */
113
+ 'input', /** Fired on native focus in */
114
+ 'focus', /** Fired on native input blur */
115
+ 'blur'],
117
116
  setup: function setup(props, ctx) {
118
- var uuid = uniqueId();
119
- var inputBaseClass = ref("border-2 focus:outline-none focus:ring-2 focus:ring-primary block w-full p-2.5");
117
+ var inputBaseClass = ref("text-p text-body placeholder:text-p placeholder:text-grey-100 border outline-none block w-full px-2.5 py-3");
120
118
  var inputValue = computed({
121
119
  get: function get() {
122
120
  return props.modelValue;
@@ -125,21 +123,42 @@ var script = defineComponent({
125
123
  return ctx.emit('update:modelValue', state);
126
124
  }
127
125
  });
126
+ var onInput = function onInput(e) {
127
+ return ctx.emit('input', e);
128
+ };
128
129
  var onFocus = function onFocus(e) {
129
130
  return ctx.emit('focus', e);
130
131
  };
131
132
  var onBlur = function onBlur(e) {
132
133
  return ctx.emit('blur', e);
133
134
  };
135
+ var _useColours = useColours(),
136
+ primaryFade5 = _useColours.primaryFade5,
137
+ colorErrorTextFade5 = _useColours.colorErrorTextFade5;
134
138
  return {
135
- uuid: uuid,
136
139
  inputBaseClass: inputBaseClass,
137
140
  inputValue: inputValue,
141
+ onInput: onInput,
138
142
  onFocus: onFocus,
139
- onBlur: onBlur
143
+ onBlur: onBlur,
144
+ primaryFade5: primaryFade5,
145
+ colorErrorTextFade5: colorErrorTextFade5
140
146
  };
141
147
  }
142
148
  });
149
+ var __injectCSSVars__ = function __injectCSSVars__() {
150
+ useCssVars(function (_ctx) {
151
+ return {
152
+ "ce01af92": _ctx.primaryFade5,
153
+ "58eb0947": _ctx.colorErrorTextFade5
154
+ };
155
+ });
156
+ };
157
+ var __setup__ = __default__.setup;
158
+ __default__.setup = __setup__ ? function (props, ctx) {
159
+ __injectCSSVars__();
160
+ return __setup__(props, ctx);
161
+ } : __injectCSSVars__;
143
162
 
144
163
  var _hoisted_1 = {
145
164
  "class": "fw-input w-full"
@@ -153,7 +172,7 @@ var _hoisted_3 = {
153
172
  var _hoisted_4 = ["for"];
154
173
  var _hoisted_5 = {
155
174
  key: 0,
156
- "class": "text-error ml-0.5"
175
+ "class": "text-brand-error-text ml-0.5"
157
176
  };
158
177
  var _hoisted_6 = {
159
178
  key: 1
@@ -161,27 +180,32 @@ var _hoisted_6 = {
161
180
  var _hoisted_7 = {
162
181
  "class": "relative"
163
182
  };
164
- var _hoisted_8 = ["id", "placeholder", "type", "readonly", "tabindex", "disabled", "autocomplete", "maxlength"];
165
- var _hoisted_9 = {
166
- key: 1,
167
- "class": "flex text-black absolute w-10 h-full inset-y-0 right-0 items-center pr-3"
183
+ var _hoisted_8 = {
184
+ key: 0,
185
+ "class": "flex text-body absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
168
186
  };
187
+ var _hoisted_9 = ["id", "placeholder", "type", "readonly", "tabindex", "disabled", "autocomplete", "maxlength"];
169
188
  var _hoisted_10 = {
170
- key: 0,
171
- "class": "text-left text-sm font-medium mt-2 min-h-[21px]"
189
+ key: 1,
190
+ "class": "flex text-black absolute w-10 h-full inset-y-0 right-0 items-center pr-3"
172
191
  };
173
192
  var _hoisted_11 = {
174
193
  key: 0,
175
- "class": "text-error"
194
+ "class": "text-left text-p-small mt-2 min-h-[21px]"
176
195
  };
177
196
  var _hoisted_12 = {
178
- key: 1
197
+ key: 0,
198
+ "class": "text-brand-error-text"
199
+ };
200
+ var _hoisted_13 = {
201
+ key: 1,
202
+ "class": "text-brand-text2"
179
203
  };
180
204
  function render(_ctx, _cache, $props, $setup, $data, $options) {
181
205
  var _component_InputField = resolveComponent("InputField");
182
206
  return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_InputField, {
183
207
  modelValue: _ctx.inputValue,
184
- "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) {
208
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = function ($event) {
185
209
  return _ctx.inputValue = $event;
186
210
  }),
187
211
  name: _ctx.name,
@@ -195,15 +219,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
195
219
  meta = _ref.meta;
196
220
  return [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [_ctx.label ? (openBlock(), createElementBlock("label", {
197
221
  key: 0,
198
- "for": "fw-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
199
- "class": normalizeClass([[(errorMessage || errors[0]) && meta.touched ? 'text-error' : ''], "block mb-2 font-medium"])
200
- }, [createTextVNode(toDisplayString(_ctx.label) + " ", 1), _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_5, "*")) : createCommentVNode("", true)], 10, _hoisted_4)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_7, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
201
- key: 0,
202
- "class": normalizeClass(["flex text-black absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none", [(errorMessage || errors[0]) && meta.touched ? 'text-error' : 'text-black']])
203
- }, [renderSlot(_ctx.$slots, "prefix", {
222
+ "for": "fw-input-".concat(_ctx.name),
223
+ "class": normalizeClass([[(errorMessage || errors[0]) && meta.touched ? 'text-brand-error-text' : 'text-brand-text2'], "block mb-2 text-base"])
224
+ }, [createTextVNode(toDisplayString(_ctx.label) + " ", 1), _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_5, "*")) : createCommentVNode("", true)], 10, _hoisted_4)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_7, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_8, [renderSlot(_ctx.$slots, "prefix", {
204
225
  "class": "h-full"
205
- })], 2)) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
206
- id: "fw-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
226
+ })])) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
227
+ id: "fw-input-".concat(_ctx.name),
207
228
  placeholder: _ctx.placeholder,
208
229
  type: _ctx.type,
209
230
  readonly: _ctx.readonly,
@@ -211,26 +232,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
211
232
  disabled: _ctx.readonly,
212
233
  autocomplete: _ctx.autocomplete,
213
234
  maxlength: _ctx.maxLength,
214
- "class": ["border-blue-500", [{
235
+ "class": [{
215
236
  'pl-10': !!_ctx.$slots.prefix,
216
237
  'pr-20': !!_ctx.$slots.suffix
217
- }, (errorMessage || errors[0]) && meta.touched ? 'border-error text-error' : 'border-grey-40', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded', {
218
- 'text-center': _ctx.centerAlignInput
219
- }]],
220
- onFocus: _cache[0] || (_cache[0] = function () {
238
+ }, (errorMessage || errors[0]) && meta.touched ? 'input--error-state border-brand-error-text caret-brand-error-text' : 'caret-primary bg-white border-grey-100 hover:border-brand-text3 focus:border-brand-text3', _ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded-lg'],
239
+ onInput: _cache[0] || (_cache[0] = function () {
240
+ return _ctx.onInput && _ctx.onInput.apply(_ctx, arguments);
241
+ }),
242
+ onFocus: _cache[1] || (_cache[1] = function () {
221
243
  return _ctx.onFocus && _ctx.onFocus.apply(_ctx, arguments);
222
244
  }),
223
- onBlur: _cache[1] || (_cache[1] = function () {
245
+ onBlur: _cache[2] || (_cache[2] = function () {
224
246
  return _ctx.onBlur && _ctx.onBlur.apply(_ctx, arguments);
225
247
  })
226
- }), null, 16, _hoisted_8), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_9, [renderSlot(_ctx.$slots, "suffix", {
248
+ }), null, 16, _hoisted_9), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_10, [renderSlot(_ctx.$slots, "suffix", {
227
249
  "class": "h-full"
228
- })])) : createCommentVNode("", true)]), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_10, [createVNode(Transition, {
250
+ })])) : createCommentVNode("", true)]), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_11, [createVNode(Transition, {
229
251
  name: "fwFadeIn",
230
252
  mode: "out-in"
231
253
  }, {
232
254
  "default": withCtx(function () {
233
- return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
255
+ return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
234
256
  }),
235
257
  _: 2
236
258
  }, 1024)])) : createCommentVNode("", true)])];
@@ -239,10 +261,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
239
261
  }, 8, ["modelValue", "name", "rules"])]);
240
262
  }
241
263
 
242
- var css_248z = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;-moz-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
243
- var stylesheet = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;-moz-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
264
+ var css_248z = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;-moz-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-input input:focus{background-color:var(--ce01af92)}.fw-input input.input--error-state{background-color:var(--58eb0947)}";
265
+ var stylesheet = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;-moz-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-input input:focus{background-color:var(--ce01af92)}.fw-input input.input--error-state{background-color:var(--58eb0947)}";
244
266
  styleInject(css_248z);
245
267
 
246
- script.render = render;
268
+ __default__.render = render;
247
269
 
248
- export { script as s };
270
+ export { __default__ as _ };
package/esm/fw-input.js CHANGED
@@ -1,5 +1,5 @@
1
- export { s as FwInput } from './fw-input-XeI-IKly.js';
1
+ export { _ as FwInput } from './fw-input-C2-cZ-BY.js';
2
2
  import 'vue';
3
3
  import './vee-validate.esm-3ptvCDR1.js';
4
- import './uniqueId-DK6xzFd8.js';
4
+ import './get-root-colours-DCjlYelc.js';
5
5
  import './style-inject.es-tgCJW-Cu.js';
@@ -0,0 +1,45 @@
1
+ import { defineComponent, useCssVars, createElementBlock, openBlock } from 'vue';
2
+ import { u as useColours } from './get-root-colours-DCjlYelc.js';
3
+ import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
4
+
5
+ var __default__ = defineComponent({
6
+ name: 'FwLoadingBar',
7
+ setup: function setup() {
8
+ var _useColours = useColours(),
9
+ primaryFade5 = _useColours.primaryFade5,
10
+ primaryFade20 = _useColours.primaryFade20;
11
+ return {
12
+ primaryFade5: primaryFade5,
13
+ primaryFade20: primaryFade20
14
+ };
15
+ }
16
+ });
17
+ var __injectCSSVars__ = function __injectCSSVars__() {
18
+ useCssVars(function (_ctx) {
19
+ return {
20
+ "96bc2d4c": _ctx.primaryFade20,
21
+ "57716cce": _ctx.primaryFade5
22
+ };
23
+ });
24
+ };
25
+ var __setup__ = __default__.setup;
26
+ __default__.setup = __setup__ ? function (props, ctx) {
27
+ __injectCSSVars__();
28
+ return __setup__(props, ctx);
29
+ } : __injectCSSVars__;
30
+
31
+ var _hoisted_1 = {
32
+ "class": "fw-loading-bar rounded",
33
+ "aria-hidden": "true"
34
+ };
35
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
36
+ return openBlock(), createElementBlock("div", _hoisted_1);
37
+ }
38
+
39
+ var css_248z = ".fw-loading-bar{-webkit-animation:fwSkeletonLoading 1.5s linear infinite running;-moz-animation:fwSkeletonLoading 1.5s linear infinite running;animation:fwSkeletonLoading 1.5s linear infinite running;background-image:-webkit-linear-gradient(350deg,var(--96bc2d4c),var(--57716cce),var(--96bc2d4c));background-image:-moz-linear-gradient(350deg,var(--96bc2d4c),var(--57716cce),var(--96bc2d4c));background-image:linear-gradient(100deg,var(--96bc2d4c),var(--57716cce),var(--96bc2d4c));background-size:200% 200%}@-webkit-keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}@-moz-keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}@keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}";
40
+ var stylesheet = ".fw-loading-bar{-webkit-animation:fwSkeletonLoading 1.5s linear infinite running;-moz-animation:fwSkeletonLoading 1.5s linear infinite running;animation:fwSkeletonLoading 1.5s linear infinite running;background-image:-webkit-linear-gradient(350deg,var(--96bc2d4c),var(--57716cce),var(--96bc2d4c));background-image:-moz-linear-gradient(350deg,var(--96bc2d4c),var(--57716cce),var(--96bc2d4c));background-image:linear-gradient(100deg,var(--96bc2d4c),var(--57716cce),var(--96bc2d4c));background-size:200% 200%}@-webkit-keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}@-moz-keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}@keyframes fwSkeletonLoading{0%{background-position-x:200%}50%{background-position-x:100%}to{background-position-x:0}}";
41
+ styleInject(css_248z);
42
+
43
+ __default__.render = render;
44
+
45
+ export { __default__ as _ };
package/esm/fw-loading.js CHANGED
@@ -1,35 +1,36 @@
1
- import { s as script$2 } from './fw-loading-bar-DThRjdw1.js';
2
- import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, normalizeClass, normalizeStyle, Fragment, renderList } from 'vue';
3
- import './style-inject.es-tgCJW-Cu.js';
1
+ import { _ as __default__ } from './fw-loading-bar-DecYSBC_.js';
2
+ import { defineComponent, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, normalizeClass, normalizeStyle, Fragment, renderList } from 'vue';
3
+ import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
4
+ import './get-root-colours-DCjlYelc.js';
4
5
 
5
- var script$1 = defineComponent({
6
+ var script$2 = defineComponent({
6
7
  name: 'FwLoadingCard',
7
8
  components: {
8
- FwLoadingBar: script$2
9
+ FwLoadingBar: __default__
9
10
  }
10
11
  });
11
12
 
12
- var _hoisted_1$1 = {
13
+ var _hoisted_1$2 = {
13
14
  "class": "fw-loading-card rounded shadow-card relative"
14
15
  };
15
16
  var _hoisted_2$1 = {
16
17
  "class": "w-full bg-white h-12 p-3 pr-12 absolute top-0 left-0 rounded-t"
17
18
  };
18
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
19
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
19
20
  var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
20
- return openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [createVNode(_component_FwLoadingBar, {
21
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$1, [createVNode(_component_FwLoadingBar, {
21
22
  "class": "w-2/4 h-5"
22
23
  })]), createVNode(_component_FwLoadingBar, {
23
24
  "class": "w-full h-full rounded-t-none"
24
25
  })]);
25
26
  }
26
27
 
27
- script$1.render = render$1;
28
+ script$2.render = render$2;
28
29
 
29
- var script = defineComponent({
30
+ var script$1 = defineComponent({
30
31
  name: 'FwLoadingTable',
31
32
  components: {
32
- FwLoadingBar: script$2
33
+ FwLoadingBar: __default__
33
34
  },
34
35
  props: {
35
36
  columns: {
@@ -49,7 +50,7 @@ var script = defineComponent({
49
50
  }
50
51
  });
51
52
 
52
- var _hoisted_1 = {
53
+ var _hoisted_1$1 = {
53
54
  "class": "text-p-small"
54
55
  };
55
56
  var _hoisted_2 = {
@@ -61,13 +62,13 @@ var _hoisted_3 = {
61
62
  var _hoisted_4 = {
62
63
  "class": "text-p-small bg-white font-light"
63
64
  };
64
- function render(_ctx, _cache, $props, $setup, $data, $options) {
65
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
65
66
  var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
66
67
  return openBlock(), createElementBlock("table", {
67
68
  "class": normalizeClass(_ctx.tableClass),
68
69
  "aria-live": "polite",
69
70
  "aria-busy": "true"
70
- }, [createElementVNode("thead", _hoisted_1, [createElementVNode("tr", _hoisted_2, [createElementVNode("th", _hoisted_3, [createVNode(_component_FwLoadingBar, {
71
+ }, [createElementVNode("thead", _hoisted_1$1, [createElementVNode("tr", _hoisted_2, [createElementVNode("th", _hoisted_3, [createVNode(_component_FwLoadingBar, {
71
72
  "class": "h-[4.5rem] py-6 rounded-b-none",
72
73
  style: normalizeStyle("width:".concat(_ctx.columns, "00%;"))
73
74
  }, null, 8, ["style"])])])]), createElementVNode("tbody", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rows, function (row, trKey) {
@@ -84,6 +85,24 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84
85
  }), 128))])], 2);
85
86
  }
86
87
 
88
+ script$1.render = render$1;
89
+
90
+ var script = defineComponent({
91
+ name: 'FwLoadingDots'
92
+ });
93
+
94
+ var _hoisted_1 = {
95
+ "class": "fw-loading-dots",
96
+ "aria-hidden": "true"
97
+ };
98
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
99
+ return openBlock(), createElementBlock("div", _hoisted_1);
100
+ }
101
+
102
+ var css_248z = ".fw-loading-dots{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-shadow-color:var(--colorPrimary);--tw-shadow:var(--tw-shadow-colored);-webkit-animation:l21 .5s linear infinite alternate;-moz-animation:l21 .5s linear infinite alternate;animation:l21 .5s linear infinite alternate;aspect-ratio:1;border-radius:9999px;-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);-webkit-box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;color:var(--colorPrimary);-webkit-transform:translateX(-32px);-moz-transform:translateX(-32px);-ms-transform:translateX(-32px);transform:translateX(-32px);width:6px}@-webkit-keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@-moz-keyframes l21{50%{box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}";
103
+ var stylesheet = ".fw-loading-dots{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-shadow-color:var(--colorPrimary);--tw-shadow:var(--tw-shadow-colored);-webkit-animation:l21 .5s linear infinite alternate;-moz-animation:l21 .5s linear infinite alternate;animation:l21 .5s linear infinite alternate;aspect-ratio:1;border-radius:9999px;-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);-webkit-box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;box-shadow:19px 0 0 0,38px 0 0 3px,57px 0 0 7px;color:var(--colorPrimary);-webkit-transform:translateX(-32px);-moz-transform:translateX(-32px);-ms-transform:translateX(-32px);transform:translateX(-32px);width:6px}@-webkit-keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@-moz-keyframes l21{50%{box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}@keyframes l21{50%{-webkit-box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px;box-shadow:19px 0 0 3px,38px 0 0 7px,57px 0 0 3px}}";
104
+ styleInject(css_248z);
105
+
87
106
  script.render = render;
88
107
 
89
- export { script$2 as FwLoadingBar, script$1 as FwLoadingCard, script as FwLoadingTable };
108
+ export { __default__ as FwLoadingBar, script$2 as FwLoadingCard, script as FwLoadingDots, script$1 as FwLoadingTable };