@frollo/frollo-web-ui 0.2.3 → 0.2.4

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.
package/cjs/index.js CHANGED
@@ -4733,7 +4733,7 @@ var _hoisted_4$7 = ["for"];
4733
4733
  var _hoisted_5$4 = {
4734
4734
  key: 1
4735
4735
  };
4736
- var _hoisted_6$4 = {
4736
+ var _hoisted_6$3 = {
4737
4737
  "class": "relative"
4738
4738
  };
4739
4739
  var _hoisted_7$3 = {
@@ -4788,7 +4788,7 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
4788
4788
  key: 0,
4789
4789
  "for": _ctx.name,
4790
4790
  "class": "block mb-2"
4791
- }, vue.toDisplayString(_ctx.label), 9, _hoisted_4$7)) : vue.createCommentVNode("", true), _ctx.$slots.action ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$4, [vue.renderSlot(_ctx.$slots, "action")])) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_6$4, [_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [vue.renderSlot(_ctx.$slots, "prefix")])) : vue.createCommentVNode("", true), vue.createElementVNode("input", vue.mergeProps(field, {
4791
+ }, vue.toDisplayString(_ctx.label), 9, _hoisted_4$7)) : vue.createCommentVNode("", true), _ctx.$slots.action ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$4, [vue.renderSlot(_ctx.$slots, "action")])) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_6$3, [_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [vue.renderSlot(_ctx.$slots, "prefix")])) : vue.createCommentVNode("", true), vue.createElementVNode("input", vue.mergeProps(field, {
4792
4792
  placeholder: _ctx.placeholder,
4793
4793
  type: _ctx.type,
4794
4794
  readonly: _ctx.readonly,
@@ -4895,7 +4895,7 @@ var _hoisted_2$7 = {
4895
4895
  var _hoisted_3$6 = ["for"];
4896
4896
  var _hoisted_4$6 = ["value", "name"];
4897
4897
  var _hoisted_5$3 = ["innerHTML"];
4898
- var _hoisted_6$3 = {
4898
+ var _hoisted_6$2 = {
4899
4899
  "class": "italic text-sm font-medium min-h-[21px]"
4900
4900
  };
4901
4901
  var _hoisted_7$2 = {
@@ -4931,7 +4931,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
4931
4931
  }), null, 16, _hoisted_4$6), vue.createElementVNode("span", {
4932
4932
  "class": "ml-2",
4933
4933
  innerHTML: _ctx.label
4934
- }, null, 8, _hoisted_5$3)], 8, _hoisted_3$6)) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_6$3, [vue.createVNode(vue.Transition, {
4934
+ }, null, 8, _hoisted_5$3)], 8, _hoisted_3$6)) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_6$2, [vue.createVNode(vue.Transition, {
4935
4935
  name: "fwFadeIn",
4936
4936
  mode: "out-in"
4937
4937
  }, {
@@ -5268,7 +5268,7 @@ var _hoisted_4$4 = {
5268
5268
  var _hoisted_5$2 = {
5269
5269
  "class": "flex space-x-2"
5270
5270
  };
5271
- var _hoisted_6$2 = {
5271
+ var _hoisted_6$1 = {
5272
5272
  key: 2,
5273
5273
  "class": "hidden sm:flex items-center justify-start sm:ml-6"
5274
5274
  };
@@ -5311,7 +5311,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
5311
5311
  }),
5312
5312
  _: 2
5313
5313
  }, 1032, ["href", "to"]);
5314
- }), 128))])])) : vue.createCommentVNode("", true), _ctx.actionLabel ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$2, [vue.createVNode(_component_FwButton, {
5314
+ }), 128))])])) : vue.createCommentVNode("", true), _ctx.actionLabel ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [vue.createVNode(_component_FwButton, {
5315
5315
  onClick: _ctx.actionClicked,
5316
5316
  size: "md",
5317
5317
  "aria-label": _ctx.actionLabel
@@ -6034,7 +6034,7 @@ var _hoisted_5$1 = {
6034
6034
  key: 0,
6035
6035
  "class": "fw-modal--header text-center"
6036
6036
  };
6037
- var _hoisted_6$1 = {
6037
+ var _hoisted_6 = {
6038
6038
  key: 0,
6039
6039
  id: "modal-logo",
6040
6040
  "class": "flex justify-center"
@@ -6061,7 +6061,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
6061
6061
  "class": "fw-modal--container p-12 m-8 inline-block w-full max-w-[540px] bg-white rounded-2xl shadow",
6062
6062
  "aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") : undefined,
6063
6063
  "aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") : undefined
6064
- }, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [_ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [vue.renderSlot(_ctx.$slots, "icon")])) : vue.createCommentVNode("", true), _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("h2", {
6064
+ }, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [_ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [vue.renderSlot(_ctx.$slots, "icon")])) : vue.createCommentVNode("", true), _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("h2", {
6065
6065
  key: 1,
6066
6066
  id: "modal_".concat(_ctx.uuid, "_header")
6067
6067
  }, [vue.renderSlot(_ctx.$slots, "header")], 8, _hoisted_7)) : _ctx.header ? (vue.openBlock(), vue.createElementBlock("h2", {
@@ -6110,8 +6110,11 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
6110
6110
  }var css_248z$2 = ".modalFadeIn-enter-active[data-v-003a6fba]{-webkit-animation:modalFadeIn-003a6fba .4s;animation:modalFadeIn-003a6fba .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-003a6fba]{animation:modalFadeIn-003a6fba .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}";
6111
6111
  var stylesheet$2 = ".modalFadeIn-enter-active[data-v-003a6fba]{-webkit-animation:modalFadeIn-003a6fba .4s;animation:modalFadeIn-003a6fba .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-003a6fba]{animation:modalFadeIn-003a6fba .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}";
6112
6112
  styleInject(css_248z$2);script$1.render = render$3;
6113
- script$1.__scopeId = "data-v-003a6fba";var script = vue.defineComponent({
6113
+ script$1.__scopeId = "data-v-003a6fba";var CheckSvg = "data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2017%2012%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%3Cpath%20d%3D%22M15.8473%200.621086C16.2059%200.951555%2016.2059%201.48593%2015.8473%201.78476L6.56602%2011.066C6.26719%2011.4246%205.73281%2011.4246%205.40234%2011.066L0.622113%206.28476C0.292629%205.98593%200.292629%205.45156%200.622113%205.12109C0.951563%204.79413%201.48594%204.79413%201.81535%205.12109L6%209.3082L14.6836%200.621086C15.0141%200.292727%2015.5484%200.292727%2015.8473%200.621086Z%22%20%2F%3E%3C%2Fsvg%3E";var script = vue.defineComponent({
6114
6114
  name: 'FwProgressBar',
6115
+ components: {
6116
+ CheckSvg: CheckSvg
6117
+ },
6115
6118
  props: {
6116
6119
  /**
6117
6120
  * An array of menu progress steps.
@@ -6162,19 +6165,19 @@ var _hoisted_2$2 = {
6162
6165
  "class": "flex pb-3"
6163
6166
  };
6164
6167
  var _hoisted_3$1 = {
6165
- "class": "text-white text-center w-full"
6168
+ key: 1,
6169
+ "class": "text-base font-medium text-center w-full"
6166
6170
  };
6167
6171
  var _hoisted_4$2 = {
6168
- "class": "text-sm md:text-base"
6169
- };
6170
- var _hoisted_5 = {
6171
6172
  key: 0,
6172
6173
  "class": "w-full flex items-start mt-[13px] mx-[-15px]"
6173
6174
  };
6174
- var _hoisted_6 = {
6175
+ var _hoisted_5 = {
6175
6176
  "class": "w-full bg-grey-light rounded flex-1"
6176
6177
  };
6177
6178
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6179
+ var _component_CheckSvg = vue.resolveComponent("CheckSvg");
6180
+
6178
6181
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [vue.createElementVNode("div", _hoisted_2$2, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.steps, function (step) {
6179
6182
  return vue.openBlock(), vue.createElementBlock("div", {
6180
6183
  "class": vue.normalizeClass(["flex", step.position !== _ctx.steps.length ? 'flex-1' : 'w-[70px] md:w-[96px]']),
@@ -6182,9 +6185,17 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6182
6185
  }, [vue.createElementVNode("div", {
6183
6186
  "class": vue.normalizeClass(["text-center", step.position !== _ctx.steps.length ? 'min-w-[70px] w-[70px] md:min-w-[96px] md:w-[96px]' : 'w-full'])
6184
6187
  }, [vue.createElementVNode("div", {
6185
- "class": vue.normalizeClass(["w-[30px] h-[30px] mx-auto mb-2 flex items-center justify-center text-center rounded-full", step.position <= _ctx.activeStep ? 'bg-primary' : 'bg-grey-light'])
6186
- }, [vue.createElementVNode("span", _hoisted_3$1, vue.toDisplayString(step.position), 1)], 2), vue.createElementVNode("span", _hoisted_4$2, vue.toDisplayString(step.label), 1)], 2), step.position !== _ctx.steps.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [vue.createElementVNode("div", _hoisted_6, [vue.createElementVNode("div", {
6187
- "class": "bg-primary text-xs leading-none py-0.5 text-center text-grey-darkest rounded transition-all",
6188
+ "class": vue.normalizeClass(["w-[30px] h-[30px] mx-auto mb-2 flex items-center justify-center text-center rounded-full", step.position <= _ctx.activeStep ? 'bg-primary text-tertiary' : 'bg-grey-light text-grey-base'])
6189
+ }, [step.position < _ctx.activeStep ? (vue.openBlock(), vue.createBlock(_component_CheckSvg, {
6190
+ key: 0,
6191
+ "class": "w-[18px]"
6192
+ })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$1, vue.toDisplayString(step.position), 1))], 2), vue.createElementVNode("span", {
6193
+ "class": vue.normalizeClass(["text-sm md:text-base", {
6194
+ 'font-bold': step.position === _ctx.activeStep,
6195
+ 'text-grey-base': step.position > _ctx.activeStep
6196
+ }])
6197
+ }, vue.toDisplayString(step.label), 3)], 2), step.position !== _ctx.steps.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [vue.createElementVNode("div", _hoisted_5, [vue.createElementVNode("div", {
6198
+ "class": "bg-primary text-xs leading-none py-0.5 text-center rounded transition-all",
6188
6199
  style: vue.normalizeStyle(step.position < _ctx.activeStep ? 'width:100%;' : _ctx.calculatedProgressBar(step))
6189
6200
  }, null, 4)])])) : vue.createCommentVNode("", true)], 2);
6190
6201
  }), 128))])]);
@@ -1,10 +1,15 @@
1
1
  import './es.number.constructor-f646730f.js';
2
- import { defineComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, normalizeStyle, createCommentVNode } from 'vue';
2
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, createBlock, toDisplayString, normalizeStyle, createCommentVNode } from 'vue';
3
3
  import './function-name-3bda6320.js';
4
4
  import './is-forced-3323c994.js';
5
5
 
6
+ var CheckSvg = "data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2017%2012%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%3Cpath%20d%3D%22M15.8473%200.621086C16.2059%200.951555%2016.2059%201.48593%2015.8473%201.78476L6.56602%2011.066C6.26719%2011.4246%205.73281%2011.4246%205.40234%2011.066L0.622113%206.28476C0.292629%205.98593%200.292629%205.45156%200.622113%205.12109C0.951563%204.79413%201.48594%204.79413%201.81535%205.12109L6%209.3082L14.6836%200.621086C15.0141%200.292727%2015.5484%200.292727%2015.8473%200.621086Z%22%20%2F%3E%3C%2Fsvg%3E";
7
+
6
8
  var script = defineComponent({
7
9
  name: 'FwProgressBar',
10
+ components: {
11
+ CheckSvg: CheckSvg
12
+ },
8
13
  props: {
9
14
  /**
10
15
  * An array of menu progress steps.
@@ -57,19 +62,19 @@ var _hoisted_2 = {
57
62
  "class": "flex pb-3"
58
63
  };
59
64
  var _hoisted_3 = {
60
- "class": "text-white text-center w-full"
65
+ key: 1,
66
+ "class": "text-base font-medium text-center w-full"
61
67
  };
62
68
  var _hoisted_4 = {
63
- "class": "text-sm md:text-base"
64
- };
65
- var _hoisted_5 = {
66
69
  key: 0,
67
70
  "class": "w-full flex items-start mt-[13px] mx-[-15px]"
68
71
  };
69
- var _hoisted_6 = {
72
+ var _hoisted_5 = {
70
73
  "class": "w-full bg-grey-light rounded flex-1"
71
74
  };
72
75
  function render(_ctx, _cache, $props, $setup, $data, $options) {
76
+ var _component_CheckSvg = resolveComponent("CheckSvg");
77
+
73
78
  return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.steps, function (step) {
74
79
  return openBlock(), createElementBlock("div", {
75
80
  "class": normalizeClass(["flex", step.position !== _ctx.steps.length ? 'flex-1' : 'w-[70px] md:w-[96px]']),
@@ -77,9 +82,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
77
82
  }, [createElementVNode("div", {
78
83
  "class": normalizeClass(["text-center", step.position !== _ctx.steps.length ? 'min-w-[70px] w-[70px] md:min-w-[96px] md:w-[96px]' : 'w-full'])
79
84
  }, [createElementVNode("div", {
80
- "class": normalizeClass(["w-[30px] h-[30px] mx-auto mb-2 flex items-center justify-center text-center rounded-full", step.position <= _ctx.activeStep ? 'bg-primary' : 'bg-grey-light'])
81
- }, [createElementVNode("span", _hoisted_3, toDisplayString(step.position), 1)], 2), createElementVNode("span", _hoisted_4, toDisplayString(step.label), 1)], 2), step.position !== _ctx.steps.length ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [createElementVNode("div", {
82
- "class": "bg-primary text-xs leading-none py-0.5 text-center text-grey-darkest rounded transition-all",
85
+ "class": normalizeClass(["w-[30px] h-[30px] mx-auto mb-2 flex items-center justify-center text-center rounded-full", step.position <= _ctx.activeStep ? 'bg-primary text-tertiary' : 'bg-grey-light text-grey-base'])
86
+ }, [step.position < _ctx.activeStep ? (openBlock(), createBlock(_component_CheckSvg, {
87
+ key: 0,
88
+ "class": "w-[18px]"
89
+ })) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(step.position), 1))], 2), createElementVNode("span", {
90
+ "class": normalizeClass(["text-sm md:text-base", {
91
+ 'font-bold': step.position === _ctx.activeStep,
92
+ 'text-grey-base': step.position > _ctx.activeStep
93
+ }])
94
+ }, toDisplayString(step.label), 3)], 2), step.position !== _ctx.steps.length ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [createElementVNode("div", {
95
+ "class": "bg-primary text-xs leading-none py-0.5 text-center rounded transition-all",
83
96
  style: normalizeStyle(step.position < _ctx.activeStep ? 'width:100%;' : _ctx.calculatedProgressBar(step))
84
97
  }, null, 4)])])) : createCommentVNode("", true)], 2);
85
98
  }), 128))])]);
@@ -4969,7 +4969,7 @@ var _hoisted_4$7 = ["for"];
4969
4969
  var _hoisted_5$4 = {
4970
4970
  key: 1
4971
4971
  };
4972
- var _hoisted_6$4 = {
4972
+ var _hoisted_6$3 = {
4973
4973
  "class": "relative"
4974
4974
  };
4975
4975
  var _hoisted_7$3 = {
@@ -5024,7 +5024,7 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
5024
5024
  key: 0,
5025
5025
  "for": _ctx.name,
5026
5026
  "class": "block mb-2"
5027
- }, toDisplayString(_ctx.label), 9, _hoisted_4$7)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$4, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6$4, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_7$3, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
5027
+ }, toDisplayString(_ctx.label), 9, _hoisted_4$7)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$4, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6$3, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_7$3, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
5028
5028
  placeholder: _ctx.placeholder,
5029
5029
  type: _ctx.type,
5030
5030
  readonly: _ctx.readonly,
@@ -5141,7 +5141,7 @@ var _hoisted_2$7 = {
5141
5141
  var _hoisted_3$6 = ["for"];
5142
5142
  var _hoisted_4$6 = ["value", "name"];
5143
5143
  var _hoisted_5$3 = ["innerHTML"];
5144
- var _hoisted_6$3 = {
5144
+ var _hoisted_6$2 = {
5145
5145
  "class": "italic text-sm font-medium min-h-[21px]"
5146
5146
  };
5147
5147
  var _hoisted_7$2 = {
@@ -5177,7 +5177,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
5177
5177
  }), null, 16, _hoisted_4$6), createElementVNode("span", {
5178
5178
  "class": "ml-2",
5179
5179
  innerHTML: _ctx.label
5180
- }, null, 8, _hoisted_5$3)], 8, _hoisted_3$6)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6$3, [createVNode(Transition, {
5180
+ }, null, 8, _hoisted_5$3)], 8, _hoisted_3$6)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6$2, [createVNode(Transition, {
5181
5181
  name: "fwFadeIn",
5182
5182
  mode: "out-in"
5183
5183
  }, {
@@ -5536,7 +5536,7 @@ var _hoisted_4$4 = {
5536
5536
  var _hoisted_5$2 = {
5537
5537
  "class": "flex space-x-2"
5538
5538
  };
5539
- var _hoisted_6$2 = {
5539
+ var _hoisted_6$1 = {
5540
5540
  key: 2,
5541
5541
  "class": "hidden sm:flex items-center justify-start sm:ml-6"
5542
5542
  };
@@ -5579,7 +5579,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
5579
5579
  }),
5580
5580
  _: 2
5581
5581
  }, 1032, ["href", "to"]);
5582
- }), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6$2, [createVNode(_component_FwButton, {
5582
+ }), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6$1, [createVNode(_component_FwButton, {
5583
5583
  onClick: _ctx.actionClicked,
5584
5584
  size: "md",
5585
5585
  "aria-label": _ctx.actionLabel
@@ -6370,7 +6370,7 @@ var _hoisted_5$1 = {
6370
6370
  key: 0,
6371
6371
  "class": "fw-modal--header text-center"
6372
6372
  };
6373
- var _hoisted_6$1 = {
6373
+ var _hoisted_6 = {
6374
6374
  key: 0,
6375
6375
  id: "modal-logo",
6376
6376
  "class": "flex justify-center"
@@ -6397,7 +6397,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
6397
6397
  "class": "fw-modal--container p-12 m-8 inline-block w-full max-w-[540px] bg-white rounded-2xl shadow",
6398
6398
  "aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") : undefined,
6399
6399
  "aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") : undefined
6400
- }, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", _hoisted_5$1, [_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_6$1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), _ctx.$slots.header ? (openBlock(), createElementBlock("h2", {
6400
+ }, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", _hoisted_5$1, [_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), _ctx.$slots.header ? (openBlock(), createElementBlock("h2", {
6401
6401
  key: 1,
6402
6402
  id: "modal_".concat(_ctx.uuid, "_header")
6403
6403
  }, [renderSlot(_ctx.$slots, "header")], 8, _hoisted_7)) : _ctx.header ? (openBlock(), createElementBlock("h2", {
@@ -6452,8 +6452,13 @@ styleInject(css_248z$2);
6452
6452
  script$1.render = render$3;
6453
6453
  script$1.__scopeId = "data-v-003a6fba";
6454
6454
 
6455
+ var CheckSvg = "data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2017%2012%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%3Cpath%20d%3D%22M15.8473%200.621086C16.2059%200.951555%2016.2059%201.48593%2015.8473%201.78476L6.56602%2011.066C6.26719%2011.4246%205.73281%2011.4246%205.40234%2011.066L0.622113%206.28476C0.292629%205.98593%200.292629%205.45156%200.622113%205.12109C0.951563%204.79413%201.48594%204.79413%201.81535%205.12109L6%209.3082L14.6836%200.621086C15.0141%200.292727%2015.5484%200.292727%2015.8473%200.621086Z%22%20%2F%3E%3C%2Fsvg%3E";
6456
+
6455
6457
  var script = defineComponent({
6456
6458
  name: 'FwProgressBar',
6459
+ components: {
6460
+ CheckSvg: CheckSvg
6461
+ },
6457
6462
  props: {
6458
6463
  /**
6459
6464
  * An array of menu progress steps.
@@ -6506,19 +6511,19 @@ var _hoisted_2$2 = {
6506
6511
  "class": "flex pb-3"
6507
6512
  };
6508
6513
  var _hoisted_3$1 = {
6509
- "class": "text-white text-center w-full"
6514
+ key: 1,
6515
+ "class": "text-base font-medium text-center w-full"
6510
6516
  };
6511
6517
  var _hoisted_4$2 = {
6512
- "class": "text-sm md:text-base"
6513
- };
6514
- var _hoisted_5 = {
6515
6518
  key: 0,
6516
6519
  "class": "w-full flex items-start mt-[13px] mx-[-15px]"
6517
6520
  };
6518
- var _hoisted_6 = {
6521
+ var _hoisted_5 = {
6519
6522
  "class": "w-full bg-grey-light rounded flex-1"
6520
6523
  };
6521
6524
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6525
+ var _component_CheckSvg = resolveComponent("CheckSvg");
6526
+
6522
6527
  return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.steps, function (step) {
6523
6528
  return openBlock(), createElementBlock("div", {
6524
6529
  "class": normalizeClass(["flex", step.position !== _ctx.steps.length ? 'flex-1' : 'w-[70px] md:w-[96px]']),
@@ -6526,9 +6531,17 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6526
6531
  }, [createElementVNode("div", {
6527
6532
  "class": normalizeClass(["text-center", step.position !== _ctx.steps.length ? 'min-w-[70px] w-[70px] md:min-w-[96px] md:w-[96px]' : 'w-full'])
6528
6533
  }, [createElementVNode("div", {
6529
- "class": normalizeClass(["w-[30px] h-[30px] mx-auto mb-2 flex items-center justify-center text-center rounded-full", step.position <= _ctx.activeStep ? 'bg-primary' : 'bg-grey-light'])
6530
- }, [createElementVNode("span", _hoisted_3$1, toDisplayString(step.position), 1)], 2), createElementVNode("span", _hoisted_4$2, toDisplayString(step.label), 1)], 2), step.position !== _ctx.steps.length ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [createElementVNode("div", {
6531
- "class": "bg-primary text-xs leading-none py-0.5 text-center text-grey-darkest rounded transition-all",
6534
+ "class": normalizeClass(["w-[30px] h-[30px] mx-auto mb-2 flex items-center justify-center text-center rounded-full", step.position <= _ctx.activeStep ? 'bg-primary text-tertiary' : 'bg-grey-light text-grey-base'])
6535
+ }, [step.position < _ctx.activeStep ? (openBlock(), createBlock(_component_CheckSvg, {
6536
+ key: 0,
6537
+ "class": "w-[18px]"
6538
+ })) : (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(step.position), 1))], 2), createElementVNode("span", {
6539
+ "class": normalizeClass(["text-sm md:text-base", {
6540
+ 'font-bold': step.position === _ctx.activeStep,
6541
+ 'text-grey-base': step.position > _ctx.activeStep
6542
+ }])
6543
+ }, toDisplayString(step.label), 3)], 2), step.position !== _ctx.steps.length ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createElementVNode("div", _hoisted_5, [createElementVNode("div", {
6544
+ "class": "bg-primary text-xs leading-none py-0.5 text-center rounded transition-all",
6532
6545
  style: normalizeStyle(step.position < _ctx.activeStep ? 'width:100%;' : _ctx.calculatedProgressBar(step))
6533
6546
  }, null, 4)])])) : createCommentVNode("", true)], 2);
6534
6547
  }), 128))])]);
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 17 12" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15.8473 0.621086C16.2059 0.951555 16.2059 1.48593 15.8473 1.78476L6.56602 11.066C6.26719 11.4246 5.73281 11.4246 5.40234 11.066L0.622113 6.28476C0.292629 5.98593 0.292629 5.45156 0.622113 5.12109C0.951563 4.79413 1.48594 4.79413 1.81535 5.12109L6 9.3082L14.6836 0.621086C15.0141 0.292727 15.5484 0.292727 15.8473 0.621086Z" />
3
+ </svg>
package/icons/index.ts CHANGED
@@ -13,6 +13,7 @@ import InfoCircleSvg from './info-circle.svg';
13
13
  import FileExclamationSvg from './file-exclamation.svg';
14
14
  import HourglassClockSvg from './hourglass-clock.svg';
15
15
  import EnvelopeSvg from './envelope.svg';
16
+ import CheckSvg from './check.svg';
16
17
 
17
18
  export {
18
19
  ViewSvg,
@@ -29,5 +30,6 @@ export {
29
30
  InfoCircleSvg,
30
31
  FileExclamationSvg,
31
32
  HourglassClockSvg,
32
- EnvelopeSvg
33
+ EnvelopeSvg,
34
+ CheckSvg
33
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -84,6 +84,7 @@
84
84
  "vee-validate": "^4.5.9",
85
85
  "vue-loader": "^16.8.3",
86
86
  "vue-style-loader": "^4.1.3",
87
+ "vue-svg-loader": "^0.17.0-beta.2",
87
88
  "yup": "^0.32.11"
88
89
  },
89
90
  "homepage": "https://github.com/frollous/frollo-web-ui#readme",
@@ -13,4 +13,5 @@ import InfoCircleSvg from './info-circle.svg';
13
13
  import FileExclamationSvg from './file-exclamation.svg';
14
14
  import HourglassClockSvg from './hourglass-clock.svg';
15
15
  import EnvelopeSvg from './envelope.svg';
16
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg };
16
+ import CheckSvg from './check.svg';
17
+ export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg };