@frollo/frollo-web-ui 8.5.4 → 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 +29797 -28753
  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-Db7951fr.js → fw-table-row-C61Bi8KB.js} +57 -55
  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 +30139 -29045
  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 +30134 -29048
  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,8 @@
1
- import { defineComponent, ref, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, toDisplayString, createCommentVNode, renderSlot } from 'vue';
1
+ import { defineComponent, ref, computed, useCssVars, pushScopeId, popScopeId, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createCommentVNode, toDisplayString, renderSlot } 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';
2
4
 
3
- var script = defineComponent({
5
+ var __default__ = defineComponent({
4
6
  name: 'FwCard',
5
7
  props: {
6
8
  /**
@@ -41,8 +43,9 @@ var script = defineComponent({
41
43
  }
42
44
  },
43
45
  setup: function setup(props) {
44
- var linkClass = ref( // eslint-disable-next-line max-len
45
- "block cursor-pointer focus:outline-none ring-offset-3 focus:ring focus:ring-primary transform-none transition-transform hover:-translate-y-1");
46
+ var linkClass = ref("block cursor-pointer focus:outline-none ring-offset-3 focus:ring focus:ring-primary transform-none transition-transform hover:-translate-y-1");
47
+ var _useColours = useColours(),
48
+ cardHeaderBg = _useColours.primaryFade5;
46
49
  var componentName = computed(function () {
47
50
  if (props.to) return 'router-link';
48
51
  if (props.href) return 'a';
@@ -50,14 +53,30 @@ var script = defineComponent({
50
53
  });
51
54
  return {
52
55
  componentName: componentName,
53
- linkClass: linkClass
56
+ linkClass: linkClass,
57
+ cardHeaderBg: cardHeaderBg
54
58
  };
55
59
  }
56
60
  });
61
+ var __injectCSSVars__ = function __injectCSSVars__() {
62
+ useCssVars(function (_ctx) {
63
+ return {
64
+ "64253360": _ctx.cardHeaderBg
65
+ };
66
+ });
67
+ };
68
+ var __setup__ = __default__.setup;
69
+ __default__.setup = __setup__ ? function (props, ctx) {
70
+ __injectCSSVars__();
71
+ return __setup__(props, ctx);
72
+ } : __injectCSSVars__;
57
73
 
74
+ var _withScopeId = function _withScopeId(n) {
75
+ return pushScopeId("data-v-2a072d5e"), n = n(), popScopeId(), n;
76
+ };
58
77
  var _hoisted_1 = {
59
78
  key: 0,
60
- "class": "fw-card--header px-8 py-4 bg-grey-lightest rounded-t border-opacity-0"
79
+ "class": "fw-card--header px-8 py-4 rounded-t border-opacity-0"
61
80
  };
62
81
  var _hoisted_2 = {
63
82
  key: 0,
@@ -69,7 +88,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
69
88
  to: _ctx.to ? _ctx.to : null,
70
89
  href: _ctx.href ? _ctx.href : null,
71
90
  tabindex: _ctx.to ? 0 : null,
72
- "class": normalizeClass(["fw-card rounded", [_ctx.to || _ctx.href || !!_ctx.$attrs.onClick ? _ctx.linkClass : '', _ctx.isBordered ? 'border border-grey-40' : 'shadow-card']])
91
+ "class": normalizeClass(["fw-card rounded", [_ctx.to || _ctx.href || !!_ctx.$attrs.onClick ? _ctx.linkClass : '', _ctx.isBordered ? 'border border-grey-60' : 'shadow-card']])
73
92
  }, {
74
93
  "default": withCtx(function () {
75
94
  return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("div", {
@@ -85,6 +104,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
85
104
  }, 8, ["to", "href", "tabindex", "class"]);
86
105
  }
87
106
 
88
- script.render = render;
107
+ var css_248z = ".fw-card--header[data-v-2a072d5e]{background-color:var(--64253360)}";
108
+ var stylesheet = ".fw-card--header[data-v-2a072d5e]{background-color:var(--64253360)}";
109
+ styleInject(css_248z);
110
+
111
+ __default__.render = render;
112
+ __default__.__scopeId = "data-v-2a072d5e";
89
113
 
90
- export { script as s };
114
+ export { __default__ as _ };
package/esm/fw-card.js CHANGED
@@ -1,2 +1,4 @@
1
- export { s as FwCard } from './fw-card-bsYbpPmW.js';
1
+ export { _ as FwCard } from './fw-card-D45R4kN-.js';
2
2
  import 'vue';
3
+ import './get-root-colours-DCjlYelc.js';
4
+ import './style-inject.es-tgCJW-Cu.js';
@@ -1,9 +1,10 @@
1
- import { defineComponent, pushScopeId, popScopeId, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, mergeProps, createCommentVNode, Transition, toDisplayString } from 'vue';
1
+ import { defineComponent, useCssVars, pushScopeId, popScopeId, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, createElementVNode, createCommentVNode, mergeProps, Transition, toDisplayString } 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 uniqueId } from './uniqueId-DZdGzBh8.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
- var script = defineComponent({
7
+ var __default__ = defineComponent({
7
8
  name: 'FwCheckbox',
8
9
  components: {
9
10
  InputField: Field
@@ -61,14 +62,31 @@ var script = defineComponent({
61
62
  },
62
63
  setup: function setup() {
63
64
  var uuid = uniqueId();
65
+ var _useColours = useColours(),
66
+ primaryFade5 = _useColours.primaryFade5,
67
+ colorErrorTextFade5 = _useColours.colorErrorTextFade5;
64
68
  return {
65
- uuid: uuid
69
+ uuid: uuid,
70
+ primaryFade5: primaryFade5,
71
+ colorErrorTextFade5: colorErrorTextFade5
66
72
  };
67
73
  }
68
74
  });
75
+ var __injectCSSVars__ = function __injectCSSVars__() {
76
+ useCssVars(function (_ctx) {
77
+ return {
78
+ "9b4d156a": _ctx.primaryFade5
79
+ };
80
+ });
81
+ };
82
+ var __setup__ = __default__.setup;
83
+ __default__.setup = __setup__ ? function (props, ctx) {
84
+ __injectCSSVars__();
85
+ return __setup__(props, ctx);
86
+ } : __injectCSSVars__;
69
87
 
70
88
  var _withScopeId = function _withScopeId(n) {
71
- return pushScopeId("data-v-18f4083f"), n = n(), popScopeId(), n;
89
+ return pushScopeId("data-v-941e534e"), n = n(), popScopeId(), n;
72
90
  };
73
91
  var _hoisted_1 = {
74
92
  "class": "fw-checkbox w-full"
@@ -77,19 +95,20 @@ var _hoisted_2 = {
77
95
  "class": "flex flex-col"
78
96
  };
79
97
  var _hoisted_3 = ["for"];
80
- var _hoisted_4 = ["value", "name", "id"];
81
- var _hoisted_5 = ["value", "name", "id", "checked"];
98
+ var _hoisted_4 = ["id", "value", "name"];
99
+ var _hoisted_5 = ["id", "value", "name", "checked"];
82
100
  var _hoisted_6 = ["innerHTML"];
83
101
  var _hoisted_7 = {
84
102
  key: 0,
85
- "class": "italic text-sm font-medium min-h-[21px]"
103
+ "class": "italic text-p-small min-h-[21px]"
86
104
  };
87
105
  var _hoisted_8 = {
88
106
  key: 0,
89
- "class": "text-error"
107
+ "class": "text-brand-error-text"
90
108
  };
91
109
  var _hoisted_9 = {
92
- key: 1
110
+ key: 1,
111
+ "class": "text-brand-text2"
93
112
  };
94
113
  function render(_ctx, _cache, $props, $setup, $data, $options) {
95
114
  var _component_InputField = resolveComponent("InputField");
@@ -110,23 +129,23 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
110
129
  }, [_ctx.isChecked === undefined ? (openBlock(), createElementBlock("input", mergeProps({
111
130
  key: 0
112
131
  }, field, {
132
+ id: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
113
133
  value: _ctx.value ? _ctx.value : _ctx.name,
114
134
  name: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
115
- id: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
116
135
  type: "checkbox",
117
- "class": "text-link w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
136
+ "class": "bg-white w-6 h-6 cursor-pointer border-brand-text2 border rounded"
118
137
  }), null, 16, _hoisted_4)) : (openBlock(), createElementBlock("input", mergeProps({
119
138
  key: 1
120
139
  }, field, {
140
+ id: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
121
141
  value: _ctx.value ? _ctx.value : _ctx.name,
122
142
  name: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
123
- id: "fw-checkbox-".concat(_ctx.name, "-").concat(_ctx.uuid),
124
143
  type: "checkbox",
125
144
  checked: _ctx.isChecked,
126
- "class": "text-link w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
145
+ "class": "bg-white w-6 h-6 cursor-pointer border-brand-text2 border rounded"
127
146
  }), null, 16, _hoisted_5)), _ctx.label ? (openBlock(), createElementBlock("span", {
128
147
  key: 2,
129
- "class": "ml-2",
148
+ "class": "ml-2 text-p text-body",
130
149
  innerHTML: _ctx.label
131
150
  }, null, 8, _hoisted_6)) : createCommentVNode("", true)], 8, _hoisted_3), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_7, [createVNode(Transition, {
132
151
  name: "fwFadeIn",
@@ -142,11 +161,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
142
161
  }, 8, ["name", "value", "rules"])]);
143
162
  }
144
163
 
145
- var css_248z = ".fwFadeIn-enter-active[data-v-18f4083f]{-webkit-animation:fwFadeIn-18f4083f .35s;-moz-animation:fwFadeIn-18f4083f .35s;animation:fwFadeIn-18f4083f .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-18f4083f]{animation:fwFadeIn-18f4083f .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-18f4083f{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn-18f4083f{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-18f4083f{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-18f4083f]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;-webkit-flex-shrink:0;flex-shrink:0;-webkit-transition:background .2s ease-in;-moz-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-18f4083f]:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
146
- var stylesheet = ".fwFadeIn-enter-active[data-v-18f4083f]{-webkit-animation:fwFadeIn-18f4083f .35s;-moz-animation:fwFadeIn-18f4083f .35s;animation:fwFadeIn-18f4083f .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-18f4083f]{animation:fwFadeIn-18f4083f .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-18f4083f{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn-18f4083f{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-18f4083f{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-18f4083f]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;-webkit-flex-shrink:0;flex-shrink:0;-webkit-transition:background .2s ease-in;-moz-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-18f4083f]:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
164
+ var css_248z = ".fwFadeIn-enter-active[data-v-941e534e]{-webkit-animation:fwFadeIn-941e534e .35s;-moz-animation:fwFadeIn-941e534e .35s;animation:fwFadeIn-941e534e .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-941e534e]{animation:fwFadeIn-941e534e .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-941e534e{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn-941e534e{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-941e534e{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-941e534e]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;background-size:60% 100%;display:inline-block;-webkit-flex-shrink:0;flex-shrink:0;-webkit-transition:background-color .15s ease-in;-moz-transition:background-color .15s ease-in;transition:background-color .15s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-941e534e]:hover{background-color:var(--9b4d156a);border-color:var(--colorPrimary)}.fw-checkbox input[data-v-941e534e]:checked{background-color:var(--colorPrimary);background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='14' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.753.219c.319.294.319.769 0 1.034l-8.25 8.25c-.266.319-.74.319-1.034 0l-4.25-4.25c-.292-.265-.292-.74 0-1.034a.754.754 0 0 1 1.061 0L5 7.94 12.719.219c.293-.292.769-.292 1.034 0Z' fill='%23F7F7F7'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:60%;border-color:var(--colorPrimary)}";
165
+ var stylesheet = ".fwFadeIn-enter-active[data-v-941e534e]{-webkit-animation:fwFadeIn-941e534e .35s;-moz-animation:fwFadeIn-941e534e .35s;animation:fwFadeIn-941e534e .35s;-webkit-transition:opacity .35s ease-in;-moz-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-941e534e]{animation:fwFadeIn-941e534e .35s reverse;-webkit-transition:opacity .35s ease-out;-moz-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-941e534e{0%{opacity:0}to{opacity:1}}@-moz-keyframes fwFadeIn-941e534e{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-941e534e{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-941e534e]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;background-size:60% 100%;display:inline-block;-webkit-flex-shrink:0;flex-shrink:0;-webkit-transition:background-color .15s ease-in;-moz-transition:background-color .15s ease-in;transition:background-color .15s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-941e534e]:hover{background-color:var(--9b4d156a);border-color:var(--colorPrimary)}.fw-checkbox input[data-v-941e534e]:checked{background-color:var(--colorPrimary);background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='14' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.753.219c.319.294.319.769 0 1.034l-8.25 8.25c-.266.319-.74.319-1.034 0l-4.25-4.25c-.292-.265-.292-.74 0-1.034a.754.754 0 0 1 1.061 0L5 7.94 12.719.219c.293-.292.769-.292 1.034 0Z' fill='%23F7F7F7'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:60%;border-color:var(--colorPrimary)}";
147
166
  styleInject(css_248z);
148
167
 
149
- script.render = render;
150
- script.__scopeId = "data-v-18f4083f";
168
+ __default__.render = render;
169
+ __default__.__scopeId = "data-v-941e534e";
151
170
 
152
- export { script as FwCheckbox };
171
+ export { __default__ as FwCheckbox };
@@ -1,11 +1,10 @@
1
- import { reactive, computed, ref, watch, onUnmounted, provide, inject, onMounted, watchEffect, defineComponent, nextTick, toRefs, openBlock, createElementBlock, normalizeClass, createVNode, Transition, withCtx, mergeProps, renderSlot, createTextVNode, toDisplayString, createElementVNode, createCommentVNode, unref, createBlock, resolveDynamicComponent, normalizeProps, Fragment, renderList, normalizeStyle, withKeys, withDirectives, toRef, resolveComponent, resolveDirective, toHandlers, withModifiers, isRef, guardReactiveProps, useCssVars } from 'vue';
2
- import { a as render$1 } from './index-CzZMBMV_.js';
3
- import { u as uniqueId } from './uniqueId-DK6xzFd8.js';
1
+ import { reactive, computed, ref, watch, onUnmounted, provide, inject, onMounted, watchEffect, defineComponent, nextTick, toRefs, createElementBlock, openBlock, normalizeClass, createVNode, Transition, withCtx, createCommentVNode, mergeProps, renderSlot, createElementVNode, createTextVNode, toDisplayString, unref, createBlock, resolveDynamicComponent, normalizeProps, Fragment, renderList, normalizeStyle, withKeys, withDirectives, toRef, resolveComponent, resolveDirective, toHandlers, withModifiers, isRef, guardReactiveProps, useCssVars } from 'vue';
2
+ import { u as uniqueId } from './uniqueId-DZdGzBh8.js';
4
3
  import { c as createPopper } from './index-BVcOAKar.js';
5
4
  import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
6
- import { u as useColours } from './get-root-colours-DYEoJPEb.js';
5
+ import { u as useColours } from './get-root-colours-DCjlYelc.js';
7
6
  import { u as useField } from './vee-validate.esm-3ptvCDR1.js';
8
- import './check--YD4Ts6g.js';
7
+ import { c as render$1 } from './index-BsEH8YYr.js';
9
8
 
10
9
  var __defProp = Object.defineProperty;
11
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -534,9 +533,9 @@ var _nodeUtil = {
534
533
  _nodeUtilExports = v;
535
534
  }
536
535
  };
537
- (function(module, exports) {
536
+ (function(module, exports$1) {
538
537
  var freeGlobal2 = _freeGlobal;
539
- var freeExports = exports && !exports.nodeType && exports;
538
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
540
539
  var freeModule = freeExports && true && module && !module.nodeType && module;
541
540
  var moduleExports = freeModule && freeModule.exports === freeExports;
542
541
  var freeProcess = moduleExports && freeGlobal2.process;
@@ -827,9 +826,9 @@ function stubFalse() {
827
826
  return false;
828
827
  }
829
828
  var stubFalse_1 = stubFalse;
830
- (function(module, exports) {
829
+ (function(module, exports$1) {
831
830
  var root2 = _root, stubFalse2 = stubFalse_1;
832
- var freeExports = exports && !exports.nodeType && exports;
831
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
833
832
  var freeModule = freeExports && true && module && !module.nodeType && module;
834
833
  var moduleExports = freeModule && freeModule.exports === freeExports;
835
834
  var Buffer2 = moduleExports ? root2.Buffer : void 0;
@@ -1468,9 +1467,9 @@ var _cloneBuffer = {
1468
1467
  _cloneBufferExports = v;
1469
1468
  }
1470
1469
  };
1471
- (function(module, exports) {
1470
+ (function(module, exports$1) {
1472
1471
  var root2 = _root;
1473
- var freeExports = exports && !exports.nodeType && exports;
1472
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1474
1473
  var freeModule = freeExports && true && module && !module.nodeType && module;
1475
1474
  var moduleExports = freeModule && freeModule.exports === freeExports;
1476
1475
  var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
@@ -1771,11 +1770,11 @@ var toInteger$2 = {
1771
1770
  toIntegerExports = v;
1772
1771
  }
1773
1772
  };
1774
- (function(module, exports) {
1775
- Object.defineProperty(exports, "__esModule", {
1773
+ (function(module, exports$1) {
1774
+ Object.defineProperty(exports$1, "__esModule", {
1776
1775
  value: true
1777
1776
  });
1778
- exports.default = toInteger2;
1777
+ exports$1.default = toInteger2;
1779
1778
  function toInteger2(dirtyNumber) {
1780
1779
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
1781
1780
  return NaN;
@@ -1786,7 +1785,7 @@ var toInteger$2 = {
1786
1785
  }
1787
1786
  return number < 0 ? Math.ceil(number) : Math.floor(number);
1788
1787
  }
1789
- module.exports = exports.default;
1788
+ module.exports = exports$1.default;
1790
1789
  })(toInteger$2, toIntegerExports);
1791
1790
  const toInteger$1 = /* @__PURE__ */ getDefaultExportFromCjs(toIntegerExports);
1792
1791
  var getTimezoneOffsetInMillisecondsExports = {};
@@ -1798,17 +1797,17 @@ var getTimezoneOffsetInMilliseconds$2 = {
1798
1797
  getTimezoneOffsetInMillisecondsExports = v;
1799
1798
  }
1800
1799
  };
1801
- (function(module, exports) {
1802
- Object.defineProperty(exports, "__esModule", {
1800
+ (function(module, exports$1) {
1801
+ Object.defineProperty(exports$1, "__esModule", {
1803
1802
  value: true
1804
1803
  });
1805
- exports.default = getTimezoneOffsetInMilliseconds2;
1804
+ exports$1.default = getTimezoneOffsetInMilliseconds2;
1806
1805
  function getTimezoneOffsetInMilliseconds2(date) {
1807
1806
  var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
1808
1807
  utcDate.setUTCFullYear(date.getFullYear());
1809
1808
  return date.getTime() - utcDate.getTime();
1810
1809
  }
1811
- module.exports = exports.default;
1810
+ module.exports = exports$1.default;
1812
1811
  })(getTimezoneOffsetInMilliseconds$2, getTimezoneOffsetInMillisecondsExports);
1813
1812
  const getTimezoneOffsetInMilliseconds$1 = /* @__PURE__ */ getDefaultExportFromCjs(getTimezoneOffsetInMillisecondsExports);
1814
1813
  function tzTokenizeDate(date, timeZone) {
@@ -8278,13 +8277,13 @@ var __default__ = defineComponent({
8278
8277
  CalendarDaySvg: render$1,
8279
8278
  DatePicker: DatePicker
8280
8279
  },
8281
- emits: ['update:modelValue'],
8282
8280
  props: {
8283
8281
  /**
8284
8282
  * The date-picker v-model
8285
8283
  */
8286
8284
  modelValue: {
8287
- type: [String, Object]
8285
+ type: [String, Object],
8286
+ "default": null
8288
8287
  },
8289
8288
  /**
8290
8289
  * The name of the input field. Must be unique per form.
@@ -8386,9 +8385,10 @@ var __default__ = defineComponent({
8386
8385
  type: [Object, String, Function]
8387
8386
  }
8388
8387
  },
8388
+ emits: ['update:modelValue'],
8389
8389
  setup: function setup(props, ctx) {
8390
8390
  var uuid = uniqueId();
8391
- var inputBaseClass = ref("border-2 text-body border-grey-40 focus:outline-none focus:ring-2 focus:ring-primary block w-full p-2.5");
8391
+ var inputBaseClass = ref("caret-primary bg-white border-grey-100 hover:border-brand-text3 focus:border-brand-text3 \n text-p text-body placeholder:text-p placeholder:text-grey-100 border outline-none block w-full px-2.5 py-3");
8392
8392
  var _useColours = useColours(),
8393
8393
  primaryFade5 = _useColours.primaryFade5,
8394
8394
  primaryFade10 = _useColours.primaryFade10,
@@ -8435,14 +8435,14 @@ var __default__ = defineComponent({
8435
8435
  var __injectCSSVars__ = function __injectCSSVars__() {
8436
8436
  useCssVars(function (_ctx) {
8437
8437
  return {
8438
- "248f74ee": _ctx.primaryFade5,
8439
- "6d5f2886": _ctx.primaryFade10,
8440
- "6d5f28a5": _ctx.primaryFade20,
8441
- "6d5f28c4": _ctx.primaryFade30,
8442
- "6d5f28e3": _ctx.primaryFade40,
8443
- "6d5f2902": _ctx.primaryFade50,
8444
- "6d5f2940": _ctx.primaryFade70,
8445
- "6d5f295f": _ctx.primaryFade80
8438
+ "1690492e": _ctx.primaryFade5,
8439
+ "890e4774": _ctx.primaryFade10,
8440
+ "890e4736": _ctx.primaryFade20,
8441
+ "890e46f8": _ctx.primaryFade30,
8442
+ "890e46ba": _ctx.primaryFade40,
8443
+ "890e467c": _ctx.primaryFade50,
8444
+ "890e4600": _ctx.primaryFade70,
8445
+ "890e45c2": _ctx.primaryFade80
8446
8446
  };
8447
8447
  });
8448
8448
  };
@@ -8459,7 +8459,6 @@ var _hoisted_2 = {
8459
8459
  "class": "flex flex-col"
8460
8460
  };
8461
8461
  var _hoisted_3 = {
8462
- key: 0,
8463
8462
  "class": "flex flex-col w-full space-y-4 md:flex-row md:space-x-4 md:space-y-0"
8464
8463
  };
8465
8464
  var _hoisted_4 = {
@@ -8469,7 +8468,7 @@ var _hoisted_5 = ["for"];
8469
8468
  var _hoisted_6 = {
8470
8469
  "class": "flex absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
8471
8470
  };
8472
- var _hoisted_7 = ["value", "id", "tabindex", "name", "placeholder"];
8471
+ var _hoisted_7 = ["id", "value", "tabindex", "name", "placeholder", "onClick"];
8473
8472
  var _hoisted_8 = {
8474
8473
  "class": "w-full md:w-1/2"
8475
8474
  };
@@ -8477,41 +8476,40 @@ var _hoisted_9 = ["for"];
8477
8476
  var _hoisted_10 = {
8478
8477
  "class": "flex absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
8479
8478
  };
8480
- var _hoisted_11 = ["value", "id", "tabindex", "name", "placeholder"];
8479
+ var _hoisted_11 = ["id", "value", "tabindex", "name", "placeholder", "onClick"];
8481
8480
  var _hoisted_12 = {
8482
- key: 1
8481
+ "class": "flex flex-col"
8483
8482
  };
8484
8483
  var _hoisted_13 = ["for"];
8485
8484
  var _hoisted_14 = {
8486
8485
  key: 0,
8487
- "class": "text-error ml-0.5"
8486
+ "class": "text-brand-error-text ml-0.5"
8488
8487
  };
8489
8488
  var _hoisted_15 = {
8490
8489
  "class": "flex absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
8491
8490
  };
8492
- var _hoisted_16 = ["value", "id", "tabindex", "name", "label", "placeholder"];
8491
+ var _hoisted_16 = ["id", "value", "tabindex", "name", "label", "placeholder", "onClick"];
8493
8492
  var _hoisted_17 = {
8494
- key: 0,
8495
- "class": "text-left text-sm min-h-[21px]"
8493
+ key: 2,
8494
+ "class": "text-left text-base min-h-[21px]"
8496
8495
  };
8497
8496
  var _hoisted_18 = {
8498
8497
  key: 0,
8499
- "class": "text-error"
8498
+ "class": "text-brand-error-text"
8500
8499
  };
8501
8500
  function render(_ctx, _cache, $props, $setup, $data, $options) {
8502
8501
  var _component_CalendarDaySvg = resolveComponent("CalendarDaySvg");
8503
8502
  var _component_DatePicker = resolveComponent("DatePicker");
8504
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_DatePicker, {
8503
+ return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.isRange === true && typeof _ctx.dateModel !== 'string' ? (openBlock(), createBlock(_component_DatePicker, {
8504
+ key: 0,
8505
8505
  modelValue: _ctx.dateModel,
8506
8506
  "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
8507
8507
  return _ctx.dateModel = $event;
8508
8508
  }),
8509
8509
  modelModifiers: {
8510
+ range: true,
8510
8511
  string: true
8511
8512
  },
8512
- "model-modifiers": {
8513
- range: _ctx.isRange
8514
- },
8515
8513
  color: "primary",
8516
8514
  mode: "date",
8517
8515
  masks: {
@@ -8524,66 +8522,100 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
8524
8522
  }, {
8525
8523
  "default": withCtx(function (_ref) {
8526
8524
  var inputValue = _ref.inputValue,
8527
- inputEvents = _ref.inputEvents;
8528
- return [createElementVNode("div", _hoisted_2, [_ctx.isRange === true ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [_ctx.startLabel ? (openBlock(), createElementBlock("label", {
8525
+ togglePopover = _ref.togglePopover;
8526
+ return [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [_ctx.startLabel ? (openBlock(), createElementBlock("label", {
8529
8527
  key: 0,
8530
8528
  "for": "fw-date-picker-input-start-".concat(_ctx.name, "-").concat(_ctx.uuid),
8531
- "class": "block mb-2 font-medium"
8532
- }, toDisplayString(_ctx.startLabel), 9, _hoisted_5)) : createCommentVNode("", true), createElementVNode("div", {
8533
- "class": normalizeClass(["relative", inputValue.start ? 'text-grey-base' : 'text-grey-light'])
8529
+ "class": normalizeClass([[(_ctx.errorMessage || _ctx.errors[0]) && _ctx.meta.touched ? 'text-brand-error-text' : 'text-brand-text2'], "block mb-2 text-base"])
8530
+ }, toDisplayString(_ctx.startLabel), 11, _hoisted_5)) : createCommentVNode("", true), createElementVNode("div", {
8531
+ "class": normalizeClass(["relative", inputValue.start ? 'text-brand-text3' : 'text-grey-100'])
8534
8532
  }, [createElementVNode("div", _hoisted_6, [createVNode(_component_CalendarDaySvg, {
8535
- "class": "h-full"
8536
- })]), createElementVNode("input", mergeProps({
8537
- value: inputValue.start
8538
- }, toHandlers(inputEvents.start, true), {
8533
+ name: "calendar-day",
8534
+ "class": "size-6"
8535
+ })]), createElementVNode("input", {
8539
8536
  id: "fw-date-picker-input-start-".concat(_ctx.name, "-").concat(_ctx.uuid),
8537
+ value: inputValue.start,
8540
8538
  tabindex: _ctx.tabindex,
8541
8539
  name: "".concat(_ctx.name, "-start"),
8542
- "class": ["pl-10", [_ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded']],
8540
+ "class": normalizeClass(["pl-10", [_ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded-lg']]),
8543
8541
  type: "text",
8544
8542
  autocomplete: "off",
8545
- placeholder: _ctx.startPlaceholder
8546
- }), null, 16, _hoisted_7)], 2)]), createElementVNode("div", _hoisted_8, [_ctx.endLabel ? (openBlock(), createElementBlock("label", {
8543
+ placeholder: _ctx.startPlaceholder,
8544
+ onClick: function onClick($event) {
8545
+ return togglePopover();
8546
+ }
8547
+ }, null, 10, _hoisted_7)], 2)]), createElementVNode("div", _hoisted_8, [_ctx.endLabel ? (openBlock(), createElementBlock("label", {
8547
8548
  key: 0,
8548
8549
  "for": "fw-date-picker-input-end-".concat(_ctx.name, "-").concat(_ctx.uuid),
8549
- "class": "block mb-2 font-medium"
8550
- }, toDisplayString(_ctx.endLabel), 9, _hoisted_9)) : createCommentVNode("", true), createElementVNode("div", {
8551
- "class": normalizeClass(["relative", inputValue.end ? 'text-grey-base' : 'text-grey-light'])
8550
+ "class": normalizeClass([[(_ctx.errorMessage || _ctx.errors[0]) && _ctx.meta.touched ? 'text-brand-error-text' : 'text-brand-text2'], "block mb-2 text-base"])
8551
+ }, toDisplayString(_ctx.endLabel), 11, _hoisted_9)) : createCommentVNode("", true), createElementVNode("div", {
8552
+ "class": normalizeClass(["relative", inputValue.end ? 'text-brand-text3' : 'text-grey-100'])
8552
8553
  }, [createElementVNode("div", _hoisted_10, [createVNode(_component_CalendarDaySvg, {
8553
- "class": "h-full"
8554
- })]), createElementVNode("input", mergeProps({
8555
- value: inputValue.end
8556
- }, toHandlers(inputEvents.end, true), {
8554
+ name: "calendar-day",
8555
+ "class": "size-6"
8556
+ })]), createElementVNode("input", {
8557
8557
  id: "fw-date-picker-input-end-".concat(_ctx.name, "-").concat(_ctx.uuid),
8558
+ value: inputValue.end,
8558
8559
  tabindex: _ctx.tabindex,
8559
8560
  name: "".concat(_ctx.name, "-end"),
8560
- "class": ["pl-10", [_ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded']],
8561
+ "class": normalizeClass(["pl-10", [_ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded-lg']]),
8561
8562
  type: "text",
8562
8563
  autocomplete: "off",
8563
- placeholder: _ctx.endPlaceholder
8564
- }), null, 16, _hoisted_11)], 2)])])) : (openBlock(), createElementBlock("div", _hoisted_12, [_ctx.label ? (openBlock(), createElementBlock("label", {
8564
+ placeholder: _ctx.endPlaceholder,
8565
+ onClick: function onClick($event) {
8566
+ return togglePopover();
8567
+ }
8568
+ }, null, 10, _hoisted_11)], 2)])])])];
8569
+ }),
8570
+ _: 1
8571
+ }, 8, ["modelValue", "max-date", "min-date", "is-required"])) : (openBlock(), createBlock(_component_DatePicker, {
8572
+ key: 1,
8573
+ modelValue: _ctx.dateModel,
8574
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
8575
+ return _ctx.dateModel = $event;
8576
+ }),
8577
+ modelModifiers: {
8578
+ string: true
8579
+ },
8580
+ color: "primary",
8581
+ mode: "date",
8582
+ masks: {
8583
+ modelValue: 'YYYY-MM-DD'
8584
+ },
8585
+ "max-date": _ctx.maxDate,
8586
+ "min-date": _ctx.minDate,
8587
+ "update-on-input": false,
8588
+ "is-required": _ctx.required
8589
+ }, {
8590
+ "default": withCtx(function (_ref2) {
8591
+ var inputValue = _ref2.inputValue,
8592
+ togglePopover = _ref2.togglePopover;
8593
+ return [createElementVNode("div", _hoisted_12, [createElementVNode("div", null, [_ctx.label ? (openBlock(), createElementBlock("label", {
8565
8594
  key: 0,
8566
8595
  "for": "fw-date-picker-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
8567
- "class": "block mb-2 font-medium"
8568
- }, [createTextVNode(toDisplayString(_ctx.label) + " ", 1), _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_14, "*")) : createCommentVNode("", true)], 8, _hoisted_13)) : createCommentVNode("", true), createElementVNode("div", {
8569
- "class": normalizeClass(["relative", inputValue ? 'text-grey-base' : 'text-grey-light'])
8596
+ "class": normalizeClass([[(_ctx.errorMessage || _ctx.errors[0]) && _ctx.meta.touched ? 'text-brand-error-text' : 'text-brand-text2'], "block mb-2 text-base"])
8597
+ }, [createTextVNode(toDisplayString(_ctx.label) + " ", 1), _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_14, "*")) : createCommentVNode("", true)], 10, _hoisted_13)) : createCommentVNode("", true), createElementVNode("div", {
8598
+ "class": normalizeClass(["relative", inputValue ? 'text-brand-text3' : 'text-grey-100'])
8570
8599
  }, [createElementVNode("div", _hoisted_15, [createVNode(_component_CalendarDaySvg, {
8571
- "class": "h-full"
8572
- })]), createElementVNode("input", mergeProps({
8573
- value: inputValue
8574
- }, toHandlers(inputEvents, true), {
8600
+ name: "calendar-day",
8601
+ "class": "size-6"
8602
+ })]), createElementVNode("input", {
8575
8603
  id: "fw-date-picker-input-".concat(_ctx.name, "-").concat(_ctx.uuid),
8604
+ value: inputValue,
8576
8605
  tabindex: _ctx.tabindex,
8577
8606
  name: _ctx.name,
8578
8607
  label: _ctx.label,
8579
- "class": ["pl-10", [_ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded']],
8608
+ "class": normalizeClass(["pl-10", [_ctx.inputBaseClass, _ctx.rounded ? 'rounded-full' : 'rounded-lg']]),
8580
8609
  type: "text",
8581
8610
  autocomplete: "off",
8582
- placeholder: _ctx.placeholder
8583
- }), null, 16, _hoisted_16)], 2)]))])];
8611
+ placeholder: _ctx.placeholder,
8612
+ onClick: function onClick($event) {
8613
+ return togglePopover();
8614
+ }
8615
+ }, null, 10, _hoisted_16)], 2)])])];
8584
8616
  }),
8585
8617
  _: 1
8586
- }, 8, ["modelValue", "model-modifiers", "max-date", "min-date", "is-required"]), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_17, [createVNode(Transition, {
8618
+ }, 8, ["modelValue", "max-date", "min-date", "is-required"])), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_17, [createVNode(Transition, {
8587
8619
  name: "fwFadeIn",
8588
8620
  mode: "out-in"
8589
8621
  }, {
@@ -8594,8 +8626,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
8594
8626
  })])) : createCommentVNode("", true)]);
8595
8627
  }
8596
8628
 
8597
- var css_248z = ".fw-date-picker .vc-primary{--vc-accent-50:var(--248f74ee);--vc-accent-100:var(--6d5f2886);--vc-accent-200:var(--6d5f28a5);--vc-accent-300:var(--6d5f28c4);--vc-accent-400:var(--6d5f28e3);--vc-accent-500:var(--6d5f2902);--vc-accent-600:var(--colorPrimary);--vc-accent-700:var(--6d5f2940);--vc-accent-800:var(--6d5f295f);--vc-accent-900:var(--colorBody)}";
8598
- var stylesheet = ".fw-date-picker .vc-primary{--vc-accent-50:var(--248f74ee);--vc-accent-100:var(--6d5f2886);--vc-accent-200:var(--6d5f28a5);--vc-accent-300:var(--6d5f28c4);--vc-accent-400:var(--6d5f28e3);--vc-accent-500:var(--6d5f2902);--vc-accent-600:var(--colorPrimary);--vc-accent-700:var(--6d5f2940);--vc-accent-800:var(--6d5f295f);--vc-accent-900:var(--colorBody)}";
8629
+ var css_248z = ".fw-date-picker .vc-primary{--vc-accent-50:var(--1690492e);--vc-accent-100:var(--890e4774);--vc-accent-200:var(--890e4736);--vc-accent-300:var(--890e46f8);--vc-accent-400:var(--890e46ba);--vc-accent-500:var(--890e467c);--vc-accent-600:var(--colorPrimary);--vc-accent-700:var(--890e4600);--vc-accent-800:var(--890e45c2);--vc-accent-900:var(--colorBody)}.fw-date-picker input:focus{background-color:var(--1690492e)}";
8630
+ var stylesheet = ".fw-date-picker .vc-primary{--vc-accent-50:var(--1690492e);--vc-accent-100:var(--890e4774);--vc-accent-200:var(--890e4736);--vc-accent-300:var(--890e46f8);--vc-accent-400:var(--890e46ba);--vc-accent-500:var(--890e467c);--vc-accent-600:var(--colorPrimary);--vc-accent-700:var(--890e4600);--vc-accent-800:var(--890e45c2);--vc-accent-900:var(--colorBody)}.fw-date-picker input:focus{background-color:var(--1690492e)}";
8599
8631
  styleInject(css_248z);
8600
8632
 
8601
8633
  __default__.render = render;