@frollo/frollo-web-ui 0.2.2 → 0.3.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.
package/esm/index.js CHANGED
@@ -16,6 +16,8 @@ import { FwNavigationMenu as script$4 } from './fw-navigation-menu.js';
16
16
  export { FwNavigationMenu } from './fw-navigation-menu.js';
17
17
  import { s as script$7, u as uniqueId } from './index-59d76908.js';
18
18
  export { s as FwModal } from './index-59d76908.js';
19
+ import { FwProgressBar as script$8 } from './fw-progress-bar.js';
20
+ export { FwProgressBar } from './fw-progress-bar.js';
19
21
  import { FwEmailPulse as __default__, FwSuccessPulse as __default__$1 } from './fw-animations.js';
20
22
  export { FwEmailPulse, FwSuccessPulse } from './fw-animations.js';
21
23
  import { F as Form } from './vee-validate.esm-b64acab1.js';
@@ -279,6 +281,7 @@ var components = /*#__PURE__*/Object.freeze({
279
281
  FwTabs: script$5,
280
282
  FwTab: script$6,
281
283
  FwModal: script$7,
284
+ FwProgressBar: script$8,
282
285
  FwEmailPulse: __default__,
283
286
  FwSuccessPulse: __default__$1
284
287
  });
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance, inject, warn as warn$1, ref, unref, computed, reactive, watch, nextTick, onUnmounted, onMounted, provide, isRef, onBeforeUnmount, defineComponent, toRef, resolveDynamicComponent, h, markRaw, watchEffect, readonly, createElementVNode, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, toDisplayString, createCommentVNode, renderSlot, mergeProps, Transition, normalizeClass, pushScopeId, popScopeId, createBlock, Fragment, renderList, createTextVNode, useCssVars, createStaticVNode, createApp } from 'vue';
1
+ import { getCurrentInstance, inject, warn as warn$1, ref, unref, computed, reactive, watch, nextTick, onUnmounted, onMounted, provide, isRef, onBeforeUnmount, defineComponent, toRef, resolveDynamicComponent, h, markRaw, watchEffect, readonly, createElementVNode, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, toDisplayString, createCommentVNode, renderSlot, mergeProps, Transition, normalizeClass, pushScopeId, popScopeId, createBlock, Fragment, renderList, createTextVNode, normalizeStyle, useCssVars, createStaticVNode, createApp } from 'vue';
2
2
 
3
3
  function _arrayWithHoles(arr) {
4
4
  if (Array.isArray(arr)) return arr;
@@ -4833,7 +4833,7 @@ $$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4833
4833
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
4834
4834
  addToUnscopables$1('includes');
4835
4835
 
4836
- var script$7 = defineComponent({
4836
+ var script$8 = defineComponent({
4837
4837
  name: 'FwInput',
4838
4838
  emits: ['update:modelValue'],
4839
4839
  components: {
@@ -4956,17 +4956,17 @@ if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
4956
4956
  });
4957
4957
  }
4958
4958
 
4959
- var _hoisted_1$8 = {
4959
+ var _hoisted_1$a = {
4960
4960
  "class": "fw-input w-full"
4961
4961
  };
4962
- var _hoisted_2$7 = {
4962
+ var _hoisted_2$9 = {
4963
4963
  "class": "flex flex-col"
4964
4964
  };
4965
- var _hoisted_3$6 = {
4965
+ var _hoisted_3$8 = {
4966
4966
  "class": "flex flex-row justify-between"
4967
4967
  };
4968
- var _hoisted_4$6 = ["for"];
4969
- var _hoisted_5$3 = {
4968
+ var _hoisted_4$7 = ["for"];
4969
+ var _hoisted_5$4 = {
4970
4970
  key: 1
4971
4971
  };
4972
4972
  var _hoisted_6$3 = {
@@ -5004,10 +5004,10 @@ var _hoisted_13 = {
5004
5004
  var _hoisted_14 = {
5005
5005
  key: 1
5006
5006
  };
5007
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
5007
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
5008
5008
  var _component_InputField = resolveComponent("InputField");
5009
5009
 
5010
- return openBlock(), createElementBlock("div", _hoisted_1$8, [createVNode(_component_InputField, {
5010
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [createVNode(_component_InputField, {
5011
5011
  modelValue: _ctx.inputValue,
5012
5012
  "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
5013
5013
  return _ctx.inputValue = $event;
@@ -5020,11 +5020,11 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
5020
5020
  errors = _ref.errors,
5021
5021
  errorMessage = _ref.errorMessage,
5022
5022
  meta = _ref.meta;
5023
- return [createElementVNode("div", _hoisted_2$7, [createElementVNode("div", _hoisted_3$6, [_ctx.label ? (openBlock(), createElementBlock("label", {
5023
+ return [createElementVNode("div", _hoisted_2$9, [createElementVNode("div", _hoisted_3$8, [_ctx.label ? (openBlock(), createElementBlock("label", {
5024
5024
  key: 0,
5025
5025
  "for": _ctx.name,
5026
5026
  "class": "block mb-2"
5027
- }, toDisplayString(_ctx.label), 9, _hoisted_4$6)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$3, [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, {
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,
@@ -5089,9 +5089,9 @@ var css_248z$6 = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animati
5089
5089
  var stylesheet$6 = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}";
5090
5090
  styleInject(css_248z$6);
5091
5091
 
5092
- script$7.render = render$9;
5092
+ script$8.render = render$b;
5093
5093
 
5094
- var script$6 = defineComponent({
5094
+ var script$7 = defineComponent({
5095
5095
  name: 'FwCheckbox',
5096
5096
  components: {
5097
5097
  InputField: Field
@@ -5132,15 +5132,15 @@ var _withScopeId$3 = function _withScopeId(n) {
5132
5132
  return pushScopeId("data-v-7423717e"), n = n(), popScopeId(), n;
5133
5133
  };
5134
5134
 
5135
- var _hoisted_1$7 = {
5135
+ var _hoisted_1$9 = {
5136
5136
  "class": "fw-checkbox w-full"
5137
5137
  };
5138
- var _hoisted_2$6 = {
5138
+ var _hoisted_2$8 = {
5139
5139
  "class": "flex flex-col"
5140
5140
  };
5141
- var _hoisted_3$5 = ["for"];
5142
- var _hoisted_4$5 = ["value", "name"];
5143
- var _hoisted_5$2 = ["innerHTML"];
5141
+ var _hoisted_3$7 = ["for"];
5142
+ var _hoisted_4$6 = ["value", "name"];
5143
+ var _hoisted_5$3 = ["innerHTML"];
5144
5144
  var _hoisted_6$2 = {
5145
5145
  "class": "italic text-sm font-medium min-h-[21px]"
5146
5146
  };
@@ -5151,10 +5151,10 @@ var _hoisted_7$2 = {
5151
5151
  var _hoisted_8$2 = {
5152
5152
  key: 1
5153
5153
  };
5154
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
5154
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
5155
5155
  var _component_InputField = resolveComponent("InputField");
5156
5156
 
5157
- return openBlock(), createElementBlock("div", _hoisted_1$7, [createVNode(_component_InputField, {
5157
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [createVNode(_component_InputField, {
5158
5158
  name: _ctx.name,
5159
5159
  value: _ctx.name,
5160
5160
  type: "checkbox",
@@ -5165,7 +5165,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
5165
5165
  errors = _ref.errors,
5166
5166
  errorMessage = _ref.errorMessage,
5167
5167
  meta = _ref.meta;
5168
- return [createElementVNode("div", _hoisted_2$6, [_ctx.label ? (openBlock(), createElementBlock("label", {
5168
+ return [createElementVNode("div", _hoisted_2$8, [_ctx.label ? (openBlock(), createElementBlock("label", {
5169
5169
  key: 0,
5170
5170
  "for": _ctx.name,
5171
5171
  "class": "inline-flex items-center mb-3"
@@ -5174,10 +5174,10 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
5174
5174
  name: _ctx.name,
5175
5175
  type: "checkbox",
5176
5176
  "class": "text-primary w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
5177
- }), null, 16, _hoisted_4$5), createElementVNode("span", {
5177
+ }), null, 16, _hoisted_4$6), createElementVNode("span", {
5178
5178
  "class": "ml-2",
5179
5179
  innerHTML: _ctx.label
5180
- }, null, 8, _hoisted_5$2)], 8, _hoisted_3$5)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6$2, [createVNode(Transition, {
5180
+ }, null, 8, _hoisted_5$3)], 8, _hoisted_3$7)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6$2, [createVNode(Transition, {
5181
5181
  name: "fwFadeIn",
5182
5182
  mode: "out-in"
5183
5183
  }, {
@@ -5195,10 +5195,10 @@ var css_248z$5 = ".fwFadeIn-enter-active[data-v-7423717e]{-webkit-animation:fwFa
5195
5195
  var stylesheet$5 = ".fwFadeIn-enter-active[data-v-7423717e]{-webkit-animation:fwFadeIn-7423717e .35s;animation:fwFadeIn-7423717e .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-7423717e]{animation:fwFadeIn-7423717e .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-7423717e{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-7423717e{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-7423717e]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;-o-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-7423717e]: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}";
5196
5196
  styleInject(css_248z$5);
5197
5197
 
5198
- script$6.render = render$8;
5199
- script$6.__scopeId = "data-v-7423717e";
5198
+ script$7.render = render$a;
5199
+ script$7.__scopeId = "data-v-7423717e";
5200
5200
 
5201
- var script$5 = defineComponent({
5201
+ var script$6 = defineComponent({
5202
5202
  name: 'FwCard',
5203
5203
  props: {
5204
5204
  /**
@@ -5242,22 +5242,22 @@ var script$5 = defineComponent({
5242
5242
  }
5243
5243
  });
5244
5244
 
5245
- var _hoisted_1$6 = {
5245
+ var _hoisted_1$8 = {
5246
5246
  key: 0,
5247
5247
  "class": "fw-card--header px-8 py-4 bg-grey-lightest rounded-t-lg border-opacity-0"
5248
5248
  };
5249
- var _hoisted_2$5 = {
5249
+ var _hoisted_2$7 = {
5250
5250
  key: 0,
5251
5251
  "class": "fw-card--prefix-title text-primary"
5252
5252
  };
5253
- var _hoisted_3$4 = {
5253
+ var _hoisted_3$6 = {
5254
5254
  key: 1
5255
5255
  };
5256
- var _hoisted_4$4 = {
5256
+ var _hoisted_4$5 = {
5257
5257
  key: 1,
5258
5258
  "class": "p-8"
5259
5259
  };
5260
- function render$7(_ctx, _cache, $props, $setup, $data, $options) {
5260
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
5261
5261
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.componentName), {
5262
5262
  to: _ctx.to ? _ctx.to : null,
5263
5263
  href: _ctx.href ? _ctx.href : null,
@@ -5265,15 +5265,15 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
5265
5265
  "class": normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href || !!_ctx.$attrs.onClick ? _ctx.linkClass : ''])
5266
5266
  }, {
5267
5267
  "default": withCtx(function () {
5268
- return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1$6, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2$5, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_4$4, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)];
5268
+ return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1$8, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2$7, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_4$5, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)];
5269
5269
  }),
5270
5270
  _: 3
5271
5271
  }, 8, ["to", "href", "tabindex", "class"]);
5272
5272
  }
5273
5273
 
5274
- script$5.render = render$7;
5274
+ script$6.render = render$9;
5275
5275
 
5276
- var script$4 = defineComponent({
5276
+ var script$5 = defineComponent({
5277
5277
  name: 'FwButton',
5278
5278
  emits: ['click', 'mouseover', 'mouseout', 'focusin', 'focusout'],
5279
5279
  props: {
@@ -5448,7 +5448,7 @@ var script$4 = defineComponent({
5448
5448
  }
5449
5449
  });
5450
5450
 
5451
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
5451
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
5452
5452
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
5453
5453
  "class": normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 rounded-none font-normal' : 'font-bold rounded-full']]),
5454
5454
  type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
@@ -5472,13 +5472,13 @@ var css_248z$4 = ".fw-button{line-height:normal;-webkit-transition:all .25s ease
5472
5472
  var stylesheet$4 = ".fw-button{line-height:normal;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out}";
5473
5473
  styleInject(css_248z$4);
5474
5474
 
5475
- script$4.render = render$6;
5475
+ script$5.render = render$8;
5476
5476
 
5477
- var script$3 = defineComponent({
5477
+ var script$4 = defineComponent({
5478
5478
  name: 'FwNavigationMenu',
5479
5479
  emits: ['action'],
5480
5480
  components: {
5481
- FwButton: script$4
5481
+ FwButton: script$5
5482
5482
  },
5483
5483
  props: {
5484
5484
  /**
@@ -5519,21 +5519,21 @@ var script$3 = defineComponent({
5519
5519
  }
5520
5520
  });
5521
5521
 
5522
- var _hoisted_1$5 = {
5522
+ var _hoisted_1$7 = {
5523
5523
  "class": "fw-nav-menu relative z-50 h-20 shadow-md"
5524
5524
  };
5525
- var _hoisted_2$4 = {
5525
+ var _hoisted_2$6 = {
5526
5526
  "class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between max-w-6xl mx-auto"
5527
5527
  };
5528
- var _hoisted_3$3 = {
5528
+ var _hoisted_3$5 = {
5529
5529
  key: 0,
5530
5530
  "class": "flex-shrink-0 flex items-center"
5531
5531
  };
5532
- var _hoisted_4$3 = {
5532
+ var _hoisted_4$4 = {
5533
5533
  key: 1,
5534
5534
  "class": "container hidden sm:flex items-center justify-start sm:ml-6"
5535
5535
  };
5536
- var _hoisted_5$1 = {
5536
+ var _hoisted_5$2 = {
5537
5537
  "class": "flex space-x-2"
5538
5538
  };
5539
5539
  var _hoisted_6$1 = {
@@ -5560,12 +5560,12 @@ var _hoisted_10$1 = ["d"];
5560
5560
  var _hoisted_11$1 = {
5561
5561
  "class": "w-full flex flex-col"
5562
5562
  };
5563
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
5563
+ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
5564
5564
  var _ctx$menuItems;
5565
5565
 
5566
5566
  var _component_FwButton = resolveComponent("FwButton");
5567
5567
 
5568
- return openBlock(), createElementBlock("nav", _hoisted_1$5, [createElementVNode("div", _hoisted_2$4, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3$3, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$3, [createElementVNode("div", _hoisted_5$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
5568
+ return openBlock(), createElementBlock("nav", _hoisted_1$7, [createElementVNode("div", _hoisted_2$6, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3$5, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$4, [createElementVNode("div", _hoisted_5$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
5569
5569
  return openBlock(), createBlock(_component_FwButton, {
5570
5570
  key: i,
5571
5571
  variant: "text",
@@ -5643,7 +5643,7 @@ var css_248z$3 = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInL
5643
5643
  var stylesheet$3 = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in;-o-transition:left .35s ease-in;transition:left .35s ease-in}.slideInLeft-enter-active{-webkit-animation:slideInLeft .35s;animation:slideInLeft .35s}.slideInLeft-leave-active{animation:slideInLeft .35s reverse;-webkit-transition:left .35s ease-in-out;-o-transition:left .35s ease-in-out;transition:left .35s ease-in-out}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}";
5644
5644
  styleInject(css_248z$3);
5645
5645
 
5646
- script$3.render = render$5;
5646
+ script$4.render = render$7;
5647
5647
 
5648
5648
  var es_number_constructor = {};
5649
5649
 
@@ -5845,7 +5845,7 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
5845
5845
  defineBuiltIn(global$4, NUMBER, NumberWrapper, { constructor: true });
5846
5846
  }
5847
5847
 
5848
- var script$2 = defineComponent({
5848
+ var script$3 = defineComponent({
5849
5849
  name: 'FwTabs',
5850
5850
  emits: ['update:modelValue'],
5851
5851
  props: {
@@ -5880,16 +5880,16 @@ var script$2 = defineComponent({
5880
5880
  }
5881
5881
  });
5882
5882
 
5883
- var _hoisted_1$4 = {
5883
+ var _hoisted_1$6 = {
5884
5884
  "class": "fw-tabs"
5885
5885
  };
5886
- var _hoisted_2$3 = {
5886
+ var _hoisted_2$5 = {
5887
5887
  key: 0,
5888
5888
  "class": "flex flex-wrap -mb-px border-b border-grey-light dark:text-grey-base dark:border-grey-base"
5889
5889
  };
5890
- var _hoisted_3$2 = ["onClick"];
5891
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
5892
- return openBlock(), createElementBlock("div", _hoisted_1$4, [_ctx.tabs ? (openBlock(), createElementBlock("ul", _hoisted_2$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, function (tab, i) {
5890
+ var _hoisted_3$4 = ["onClick"];
5891
+ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
5892
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [_ctx.tabs ? (openBlock(), createElementBlock("ul", _hoisted_2$5, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, function (tab, i) {
5893
5893
  return openBlock(), createElementBlock("li", {
5894
5894
  "class": "mr-2",
5895
5895
  key: i
@@ -5899,11 +5899,11 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
5899
5899
  return _ctx.selectTab(i);
5900
5900
  },
5901
5901
  "class": normalizeClass(["inline-block p-4 outline-primary border-b-2 border-transparent transition ease-in", _ctx.active === i ? 'font-medium border-black' : 'hover:bg-grey-lightest'])
5902
- }, toDisplayString(tab.props.label), 11, _hoisted_3$2)]);
5902
+ }, toDisplayString(tab.props.label), 11, _hoisted_3$4)]);
5903
5903
  }), 128))])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]);
5904
5904
  }
5905
5905
 
5906
- script$2.render = render$4;
5906
+ script$3.render = render$6;
5907
5907
 
5908
5908
  var es_array_findIndex = {};
5909
5909
 
@@ -5929,7 +5929,7 @@ $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
5929
5929
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
5930
5930
  addToUnscopables(FIND_INDEX);
5931
5931
 
5932
- var script$1 = defineComponent({
5932
+ var script$2 = defineComponent({
5933
5933
  name: 'FwTab',
5934
5934
  props: {
5935
5935
  /**
@@ -5973,15 +5973,15 @@ var script$1 = defineComponent({
5973
5973
  }
5974
5974
  });
5975
5975
 
5976
- var _hoisted_1$3 = {
5976
+ var _hoisted_1$5 = {
5977
5977
  key: 0,
5978
5978
  "class": "fw-tab w-full"
5979
5979
  };
5980
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
5981
- return _ctx.isActive ? (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true);
5980
+ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
5981
+ return _ctx.isActive ? (openBlock(), createElementBlock("div", _hoisted_1$5, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true);
5982
5982
  }
5983
5983
 
5984
- script$1.render = render$3;
5984
+ script$2.render = render$5;
5985
5985
 
5986
5986
  /** Detect free variable `global` from Node.js. */
5987
5987
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
@@ -6261,10 +6261,10 @@ function uniqueId(prefix) {
6261
6261
  return toString(prefix) + id;
6262
6262
  }
6263
6263
 
6264
- var script = defineComponent({
6264
+ var script$1 = defineComponent({
6265
6265
  name: 'FwModal',
6266
6266
  components: {
6267
- FwButton: script$4
6267
+ FwButton: script$5
6268
6268
  },
6269
6269
  emits: ['cancel', 'confirm'],
6270
6270
  props: {
@@ -6356,17 +6356,17 @@ var _withScopeId$2 = function _withScopeId(n) {
6356
6356
  return pushScopeId("data-v-003a6fba"), n = n(), popScopeId(), n;
6357
6357
  };
6358
6358
 
6359
- var _hoisted_1$2 = {
6359
+ var _hoisted_1$4 = {
6360
6360
  "class": "fw-modal"
6361
6361
  };
6362
- var _hoisted_2$2 = {
6362
+ var _hoisted_2$4 = {
6363
6363
  "class": "fw-modal--mask fixed z-[9999] top-0 left-0 w-full h-full bg-black bg-opacity-50"
6364
6364
  };
6365
- var _hoisted_3$1 = {
6365
+ var _hoisted_3$3 = {
6366
6366
  "class": "fw-modal--wrapper text-center overflow-auto flex justify-center items-center h-full"
6367
6367
  };
6368
- var _hoisted_4$2 = ["role", "aria-labelledby", "aria-describedby"];
6369
- var _hoisted_5 = {
6368
+ var _hoisted_4$3 = ["role", "aria-labelledby", "aria-describedby"];
6369
+ var _hoisted_5$1 = {
6370
6370
  key: 0,
6371
6371
  "class": "fw-modal--header text-center"
6372
6372
  };
@@ -6383,7 +6383,7 @@ var _hoisted_11 = {
6383
6383
  key: 3,
6384
6384
  "class": "modal-footer flex space-x-4 pt-4 justify-center"
6385
6385
  };
6386
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6386
+ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
6387
6387
  var _component_FwButton = resolveComponent("FwButton");
6388
6388
 
6389
6389
  return openBlock(), createBlock(Transition, {
@@ -6391,13 +6391,13 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6391
6391
  appear: ""
6392
6392
  }, {
6393
6393
  "default": withCtx(function () {
6394
- return [createElementVNode("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [createElementVNode("div", _hoisted_3$1, [createElementVNode("div", {
6394
+ return [createElementVNode("div", _hoisted_1$4, [createElementVNode("div", _hoisted_2$4, [createElementVNode("div", _hoisted_3$3, [createElementVNode("div", {
6395
6395
  role: _ctx.role,
6396
6396
  "aria-modal": "true",
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, [_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_6, [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", {
@@ -6439,7 +6439,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6439
6439
  return [createTextVNode(toDisplayString(_ctx.confirmButtonText), 1)];
6440
6440
  }),
6441
6441
  _: 1
6442
- }, 8, ["variant", "aria-label"])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 8, _hoisted_4$2)])])])];
6442
+ }, 8, ["variant", "aria-label"])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 8, _hoisted_4$3)])])])];
6443
6443
  }),
6444
6444
  _: 3
6445
6445
  });
@@ -6449,8 +6449,117 @@ var css_248z$2 = ".modalFadeIn-enter-active[data-v-003a6fba]{-webkit-animation:m
6449
6449
  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}}";
6450
6450
  styleInject(css_248z$2);
6451
6451
 
6452
+ script$1.render = render$4;
6453
+ script$1.__scopeId = "data-v-003a6fba";
6454
+
6455
+ const _hoisted_1$3 = {
6456
+ viewBox: "0 0 17 12",
6457
+ fill: "currentColor",
6458
+ xmlns: "http://www.w3.org/2000/svg"
6459
+ };
6460
+ const _hoisted_2$3 = /*#__PURE__*/createElementVNode("path", { d: "M15.847.621c.359.33.359.865 0 1.164l-9.281 9.281c-.299.359-.833.359-1.164 0L.622 6.285c-.33-.3-.33-.833 0-1.164a.848.848 0 011.193 0L6 9.308 14.684.621c.33-.328.864-.328 1.163 0z" }, null, -1);
6461
+ const _hoisted_3$2 = [
6462
+ _hoisted_2$3
6463
+ ];
6464
+
6465
+ function render$3(_ctx, _cache) {
6466
+ return (openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$2))
6467
+ }
6468
+
6469
+ var script = defineComponent({
6470
+ name: 'FwProgressBar',
6471
+ components: {
6472
+ CheckSvg: render$3
6473
+ },
6474
+ props: {
6475
+ /**
6476
+ * An array of menu progress steps.
6477
+ * `{ label: string; position: number; subSteps: number; }`
6478
+ */
6479
+ steps: {
6480
+ type: Array,
6481
+ required: true
6482
+ },
6483
+
6484
+ /**
6485
+ * An current active step.
6486
+ */
6487
+ activeStep: {
6488
+ type: Number,
6489
+ required: true
6490
+ },
6491
+
6492
+ /**
6493
+ * An current active sub-step.
6494
+ */
6495
+ activeSubStep: {
6496
+ type: Number,
6497
+ required: true
6498
+ }
6499
+ },
6500
+ setup: function setup(props) {
6501
+ var calculatedProgressBar = function calculatedProgressBar(step) {
6502
+ var numOfSubSteps = step.subSteps;
6503
+ var equalPercentageWidths = 100 / numOfSubSteps;
6504
+
6505
+ if (props.activeStep === step.position && props.activeSubStep) {
6506
+ var width = equalPercentageWidths * props.activeSubStep;
6507
+ return "width: ".concat(width, "%");
6508
+ }
6509
+
6510
+ return 'width: 0%;';
6511
+ };
6512
+
6513
+ return {
6514
+ calculatedProgressBar: calculatedProgressBar
6515
+ };
6516
+ }
6517
+ });
6518
+
6519
+ var _hoisted_1$2 = {
6520
+ "class": "fw-progress-bar w-full mx-auto my-4"
6521
+ };
6522
+ var _hoisted_2$2 = {
6523
+ "class": "flex pb-3"
6524
+ };
6525
+ var _hoisted_3$1 = {
6526
+ key: 1,
6527
+ "class": "text-base font-medium text-center w-full"
6528
+ };
6529
+ var _hoisted_4$2 = {
6530
+ key: 0,
6531
+ "class": "w-full flex items-start mt-[13px] mx-[-15px]"
6532
+ };
6533
+ var _hoisted_5 = {
6534
+ "class": "w-full bg-grey-light rounded flex-1"
6535
+ };
6536
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
6537
+ var _component_CheckSvg = resolveComponent("CheckSvg");
6538
+
6539
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.steps, function (step) {
6540
+ return openBlock(), createElementBlock("div", {
6541
+ "class": normalizeClass(["flex", step.position !== _ctx.steps.length ? 'flex-1' : 'w-[70px] md:w-[96px]']),
6542
+ key: step.position
6543
+ }, [createElementVNode("div", {
6544
+ "class": normalizeClass(["text-center", step.position !== _ctx.steps.length ? 'min-w-[70px] w-[70px] md:min-w-[96px] md:w-[96px]' : 'w-full'])
6545
+ }, [createElementVNode("div", {
6546
+ "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'])
6547
+ }, [step.position < _ctx.activeStep ? (openBlock(), createBlock(_component_CheckSvg, {
6548
+ key: 0,
6549
+ "class": "w-[18px]"
6550
+ })) : (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(step.position), 1))], 2), createElementVNode("span", {
6551
+ "class": normalizeClass(["text-sm md:text-base", {
6552
+ 'font-bold': step.position === _ctx.activeStep,
6553
+ 'text-grey-base': step.position > _ctx.activeStep
6554
+ }])
6555
+ }, toDisplayString(step.label), 3)], 2), step.position !== _ctx.steps.length ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createElementVNode("div", _hoisted_5, [createElementVNode("div", {
6556
+ "class": "bg-primary text-xs leading-none py-0.5 text-center rounded transition-all",
6557
+ style: normalizeStyle(step.position < _ctx.activeStep ? 'width:100%;' : _ctx.calculatedProgressBar(step))
6558
+ }, null, 4)])])) : createCommentVNode("", true)], 2);
6559
+ }), 128))])]);
6560
+ }
6561
+
6452
6562
  script.render = render$2;
6453
- script.__scopeId = "data-v-003a6fba";
6454
6563
 
6455
6564
  var __default__$1 = defineComponent({
6456
6565
  name: 'FwEmailPulse',
@@ -6586,14 +6695,15 @@ __default__.__scopeId = "data-v-c32112d4";
6586
6695
  var components = /*#__PURE__*/Object.freeze({
6587
6696
  __proto__: null,
6588
6697
  FwForm: Form,
6589
- FwInput: script$7,
6590
- FwCheckbox: script$6,
6591
- FwCard: script$5,
6592
- FwButton: script$4,
6593
- FwNavigationMenu: script$3,
6594
- FwTabs: script$2,
6595
- FwTab: script$1,
6596
- FwModal: script,
6698
+ FwInput: script$8,
6699
+ FwCheckbox: script$7,
6700
+ FwCard: script$6,
6701
+ FwButton: script$5,
6702
+ FwNavigationMenu: script$4,
6703
+ FwTabs: script$3,
6704
+ FwTab: script$2,
6705
+ FwModal: script$1,
6706
+ FwProgressBar: script,
6597
6707
  FwEmailPulse: __default__$1,
6598
6708
  FwSuccessPulse: __default__
6599
6709
  });
@@ -6728,7 +6838,7 @@ var modalService = function modalService(options, element) {
6728
6838
  var open = function open() {
6729
6839
  var _modalVNode;
6730
6840
 
6731
- modalVNode = createApp(script, _objectSpread2({}, options));
6841
+ modalVNode = createApp(script$1, _objectSpread2({}, options));
6732
6842
  elAppend === null || elAppend === void 0 ? void 0 : elAppend.appendChild(elementToMount);
6733
6843
  (_modalVNode = modalVNode) === null || _modalVNode === void 0 ? void 0 : _modalVNode.mount(elementToMount);
6734
6844
  };
@@ -6764,4 +6874,4 @@ var install = function install(app) {
6764
6874
  });
6765
6875
  };
6766
6876
 
6767
- export { script$4 as FwButton, script$5 as FwCard, script$6 as FwCheckbox, __default__$1 as FwEmailPulse, Form as FwForm, script$7 as FwInput, script as FwModal, script$3 as FwNavigationMenu, __default__ as FwSuccessPulse, script$1 as FwTab, script$2 as FwTabs, install as default, modalService };
6877
+ export { script$5 as FwButton, script$6 as FwCard, script$7 as FwCheckbox, __default__$1 as FwEmailPulse, Form as FwForm, script$8 as FwInput, script$1 as FwModal, script$4 as FwNavigationMenu, script as FwProgressBar, __default__ as FwSuccessPulse, script$2 as FwTab, script$3 as FwTabs, install as default, modalService };
@@ -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
  };