@frollo/frollo-web-ui 0.2.4 → 0.3.2
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 +159 -74
- package/esm/fw-progress-bar.js +20 -8
- package/esm/fw-tag.js +89 -0
- package/esm/index.js +3 -0
- package/frollo-web-ui.esm.js +187 -93
- package/icons/chevron-down.svg +3 -0
- package/icons/index.ts +3 -1
- package/index.d.ts +73 -10
- package/package.json +3 -2
- package/tailwind.config.js +6 -3
- package/types/components/fw-tag/fw-tag.vue.d.ts +48 -0
- package/types/components/fw-tag/index.d.ts +2 -0
- package/types/components/fw-tag/index.types.d.ts +16 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +1 -0
- package/types/icons/index.d.ts +2 -1
package/frollo-web-ui.esm.js
CHANGED
|
@@ -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$
|
|
4836
|
+
var script$9 = defineComponent({
|
|
4837
4837
|
name: 'FwInput',
|
|
4838
4838
|
emits: ['update:modelValue'],
|
|
4839
4839
|
components: {
|
|
@@ -4956,13 +4956,13 @@ if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
|
|
|
4956
4956
|
});
|
|
4957
4957
|
}
|
|
4958
4958
|
|
|
4959
|
-
var _hoisted_1$
|
|
4959
|
+
var _hoisted_1$a = {
|
|
4960
4960
|
"class": "fw-input w-full"
|
|
4961
4961
|
};
|
|
4962
|
-
var _hoisted_2$
|
|
4962
|
+
var _hoisted_2$9 = {
|
|
4963
4963
|
"class": "flex flex-col"
|
|
4964
4964
|
};
|
|
4965
|
-
var _hoisted_3$
|
|
4965
|
+
var _hoisted_3$8 = {
|
|
4966
4966
|
"class": "flex flex-row justify-between"
|
|
4967
4967
|
};
|
|
4968
4968
|
var _hoisted_4$7 = ["for"];
|
|
@@ -5004,10 +5004,10 @@ var _hoisted_13 = {
|
|
|
5004
5004
|
var _hoisted_14 = {
|
|
5005
5005
|
key: 1
|
|
5006
5006
|
};
|
|
5007
|
-
function render$
|
|
5007
|
+
function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5008
5008
|
var _component_InputField = resolveComponent("InputField");
|
|
5009
5009
|
|
|
5010
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
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,7 +5020,7 @@ function render$a(_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$
|
|
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"
|
|
@@ -5085,13 +5085,13 @@ function styleInject(css, ref) {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
5087
|
|
|
5088
|
-
var css_248z$
|
|
5089
|
-
var stylesheet$
|
|
5090
|
-
styleInject(css_248z$
|
|
5088
|
+
var css_248z$7 = ".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}}";
|
|
5089
|
+
var stylesheet$7 = ".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
|
+
styleInject(css_248z$7);
|
|
5091
5091
|
|
|
5092
|
-
script$
|
|
5092
|
+
script$9.render = render$c;
|
|
5093
5093
|
|
|
5094
|
-
var script$
|
|
5094
|
+
var script$8 = defineComponent({
|
|
5095
5095
|
name: 'FwCheckbox',
|
|
5096
5096
|
components: {
|
|
5097
5097
|
InputField: Field
|
|
@@ -5132,13 +5132,13 @@ 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$
|
|
5135
|
+
var _hoisted_1$9 = {
|
|
5136
5136
|
"class": "fw-checkbox w-full"
|
|
5137
5137
|
};
|
|
5138
|
-
var _hoisted_2$
|
|
5138
|
+
var _hoisted_2$8 = {
|
|
5139
5139
|
"class": "flex flex-col"
|
|
5140
5140
|
};
|
|
5141
|
-
var _hoisted_3$
|
|
5141
|
+
var _hoisted_3$7 = ["for"];
|
|
5142
5142
|
var _hoisted_4$6 = ["value", "name"];
|
|
5143
5143
|
var _hoisted_5$3 = ["innerHTML"];
|
|
5144
5144
|
var _hoisted_6$2 = {
|
|
@@ -5151,10 +5151,10 @@ var _hoisted_7$2 = {
|
|
|
5151
5151
|
var _hoisted_8$2 = {
|
|
5152
5152
|
key: 1
|
|
5153
5153
|
};
|
|
5154
|
-
function render$
|
|
5154
|
+
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5155
5155
|
var _component_InputField = resolveComponent("InputField");
|
|
5156
5156
|
|
|
5157
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
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$9(_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$
|
|
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"
|
|
@@ -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$
|
|
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
|
}, {
|
|
@@ -5191,14 +5191,14 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5191
5191
|
}, 8, ["name", "value", "rules"])]);
|
|
5192
5192
|
}
|
|
5193
5193
|
|
|
5194
|
-
var css_248z$
|
|
5195
|
-
var stylesheet$
|
|
5196
|
-
styleInject(css_248z$
|
|
5194
|
+
var css_248z$6 = ".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}";
|
|
5195
|
+
var stylesheet$6 = ".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
|
+
styleInject(css_248z$6);
|
|
5197
5197
|
|
|
5198
|
-
script$
|
|
5199
|
-
script$
|
|
5198
|
+
script$8.render = render$b;
|
|
5199
|
+
script$8.__scopeId = "data-v-7423717e";
|
|
5200
5200
|
|
|
5201
|
-
var script$
|
|
5201
|
+
var script$7 = defineComponent({
|
|
5202
5202
|
name: 'FwCard',
|
|
5203
5203
|
props: {
|
|
5204
5204
|
/**
|
|
@@ -5242,22 +5242,22 @@ var script$6 = defineComponent({
|
|
|
5242
5242
|
}
|
|
5243
5243
|
});
|
|
5244
5244
|
|
|
5245
|
-
var _hoisted_1$
|
|
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$
|
|
5249
|
+
var _hoisted_2$7 = {
|
|
5250
5250
|
key: 0,
|
|
5251
5251
|
"class": "fw-card--prefix-title text-primary"
|
|
5252
5252
|
};
|
|
5253
|
-
var _hoisted_3$
|
|
5253
|
+
var _hoisted_3$6 = {
|
|
5254
5254
|
key: 1
|
|
5255
5255
|
};
|
|
5256
5256
|
var _hoisted_4$5 = {
|
|
5257
5257
|
key: 1,
|
|
5258
5258
|
"class": "p-8"
|
|
5259
5259
|
};
|
|
5260
|
-
function render$
|
|
5260
|
+
function render$a(_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$8(_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$
|
|
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$
|
|
5274
|
+
script$7.render = render$a;
|
|
5275
5275
|
|
|
5276
|
-
var script$
|
|
5276
|
+
var script$6 = defineComponent({
|
|
5277
5277
|
name: 'FwButton',
|
|
5278
5278
|
emits: ['click', 'mouseover', 'mouseout', 'focusin', 'focusout'],
|
|
5279
5279
|
props: {
|
|
@@ -5448,7 +5448,7 @@ var script$5 = defineComponent({
|
|
|
5448
5448
|
}
|
|
5449
5449
|
});
|
|
5450
5450
|
|
|
5451
|
-
function render$
|
|
5451
|
+
function render$9(_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,
|
|
@@ -5468,17 +5468,17 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5468
5468
|
}, 40, ["class", "type", "to", "href", "tabindex", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
5469
5469
|
}
|
|
5470
5470
|
|
|
5471
|
-
var css_248z$
|
|
5472
|
-
var stylesheet$
|
|
5473
|
-
styleInject(css_248z$
|
|
5471
|
+
var css_248z$5 = ".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}";
|
|
5472
|
+
var stylesheet$5 = ".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
|
+
styleInject(css_248z$5);
|
|
5474
5474
|
|
|
5475
|
-
script$
|
|
5475
|
+
script$6.render = render$9;
|
|
5476
5476
|
|
|
5477
|
-
var script$
|
|
5477
|
+
var script$5 = defineComponent({
|
|
5478
5478
|
name: 'FwNavigationMenu',
|
|
5479
5479
|
emits: ['action'],
|
|
5480
5480
|
components: {
|
|
5481
|
-
FwButton: script$
|
|
5481
|
+
FwButton: script$6
|
|
5482
5482
|
},
|
|
5483
5483
|
props: {
|
|
5484
5484
|
/**
|
|
@@ -5519,13 +5519,13 @@ var script$4 = defineComponent({
|
|
|
5519
5519
|
}
|
|
5520
5520
|
});
|
|
5521
5521
|
|
|
5522
|
-
var _hoisted_1$
|
|
5522
|
+
var _hoisted_1$7 = {
|
|
5523
5523
|
"class": "fw-nav-menu relative z-50 h-20 shadow-md"
|
|
5524
5524
|
};
|
|
5525
|
-
var _hoisted_2$
|
|
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$
|
|
5528
|
+
var _hoisted_3$5 = {
|
|
5529
5529
|
key: 0,
|
|
5530
5530
|
"class": "flex-shrink-0 flex items-center"
|
|
5531
5531
|
};
|
|
@@ -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$
|
|
5563
|
+
function render$8(_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$
|
|
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",
|
|
@@ -5639,11 +5639,11 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5639
5639
|
})]);
|
|
5640
5640
|
}
|
|
5641
5641
|
|
|
5642
|
-
var css_248z$
|
|
5643
|
-
var stylesheet$
|
|
5644
|
-
styleInject(css_248z$
|
|
5642
|
+
var css_248z$4 = ".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}}";
|
|
5643
|
+
var stylesheet$4 = ".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
|
+
styleInject(css_248z$4);
|
|
5645
5645
|
|
|
5646
|
-
script$
|
|
5646
|
+
script$5.render = render$8;
|
|
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$
|
|
5848
|
+
var script$4 = defineComponent({
|
|
5849
5849
|
name: 'FwTabs',
|
|
5850
5850
|
emits: ['update:modelValue'],
|
|
5851
5851
|
props: {
|
|
@@ -5880,16 +5880,16 @@ var script$3 = defineComponent({
|
|
|
5880
5880
|
}
|
|
5881
5881
|
});
|
|
5882
5882
|
|
|
5883
|
-
var _hoisted_1$
|
|
5883
|
+
var _hoisted_1$6 = {
|
|
5884
5884
|
"class": "fw-tabs"
|
|
5885
5885
|
};
|
|
5886
|
-
var _hoisted_2$
|
|
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$
|
|
5891
|
-
function render$
|
|
5892
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5890
|
+
var _hoisted_3$4 = ["onClick"];
|
|
5891
|
+
function render$7(_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$5(_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$
|
|
5902
|
+
}, toDisplayString(tab.props.label), 11, _hoisted_3$4)]);
|
|
5903
5903
|
}), 128))])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]);
|
|
5904
5904
|
}
|
|
5905
5905
|
|
|
5906
|
-
script$
|
|
5906
|
+
script$4.render = render$7;
|
|
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$
|
|
5932
|
+
var script$3 = defineComponent({
|
|
5933
5933
|
name: 'FwTab',
|
|
5934
5934
|
props: {
|
|
5935
5935
|
/**
|
|
@@ -5973,15 +5973,15 @@ var script$2 = defineComponent({
|
|
|
5973
5973
|
}
|
|
5974
5974
|
});
|
|
5975
5975
|
|
|
5976
|
-
var _hoisted_1$
|
|
5976
|
+
var _hoisted_1$5 = {
|
|
5977
5977
|
key: 0,
|
|
5978
5978
|
"class": "fw-tab w-full"
|
|
5979
5979
|
};
|
|
5980
|
-
function render$
|
|
5981
|
-
return _ctx.isActive ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5980
|
+
function render$6(_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$
|
|
5984
|
+
script$3.render = render$6;
|
|
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$
|
|
6264
|
+
var script$2 = defineComponent({
|
|
6265
6265
|
name: 'FwModal',
|
|
6266
6266
|
components: {
|
|
6267
|
-
FwButton: script$
|
|
6267
|
+
FwButton: script$6
|
|
6268
6268
|
},
|
|
6269
6269
|
emits: ['cancel', 'confirm'],
|
|
6270
6270
|
props: {
|
|
@@ -6356,13 +6356,13 @@ 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$
|
|
6359
|
+
var _hoisted_1$4 = {
|
|
6360
6360
|
"class": "fw-modal"
|
|
6361
6361
|
};
|
|
6362
|
-
var _hoisted_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$
|
|
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
6368
|
var _hoisted_4$3 = ["role", "aria-labelledby", "aria-describedby"];
|
|
@@ -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$
|
|
6386
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6387
6387
|
var _component_FwButton = resolveComponent("FwButton");
|
|
6388
6388
|
|
|
6389
6389
|
return openBlock(), createBlock(Transition, {
|
|
@@ -6391,7 +6391,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6391
6391
|
appear: ""
|
|
6392
6392
|
}, {
|
|
6393
6393
|
"default": withCtx(function () {
|
|
6394
|
-
return [createElementVNode("div", _hoisted_1$
|
|
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",
|
|
@@ -6445,19 +6445,31 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6445
6445
|
});
|
|
6446
6446
|
}
|
|
6447
6447
|
|
|
6448
|
-
var css_248z$
|
|
6449
|
-
var stylesheet$
|
|
6450
|
-
styleInject(css_248z$
|
|
6448
|
+
var css_248z$3 = ".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}}";
|
|
6449
|
+
var stylesheet$3 = ".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
|
+
styleInject(css_248z$3);
|
|
6451
6451
|
|
|
6452
|
-
script$
|
|
6453
|
-
script$
|
|
6452
|
+
script$2.render = render$5;
|
|
6453
|
+
script$2.__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
|
+
];
|
|
6454
6464
|
|
|
6455
|
-
|
|
6465
|
+
function render$4(_ctx, _cache) {
|
|
6466
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$2))
|
|
6467
|
+
}
|
|
6456
6468
|
|
|
6457
|
-
var script = defineComponent({
|
|
6469
|
+
var script$1 = defineComponent({
|
|
6458
6470
|
name: 'FwProgressBar',
|
|
6459
6471
|
components: {
|
|
6460
|
-
CheckSvg:
|
|
6472
|
+
CheckSvg: render$4
|
|
6461
6473
|
},
|
|
6462
6474
|
props: {
|
|
6463
6475
|
/**
|
|
@@ -6519,9 +6531,9 @@ var _hoisted_4$2 = {
|
|
|
6519
6531
|
"class": "w-full flex items-start mt-[13px] mx-[-15px]"
|
|
6520
6532
|
};
|
|
6521
6533
|
var _hoisted_5 = {
|
|
6522
|
-
"class": "w-full bg-grey-
|
|
6534
|
+
"class": "w-full bg-grey-40 rounded flex-1"
|
|
6523
6535
|
};
|
|
6524
|
-
function render$
|
|
6536
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6525
6537
|
var _component_CheckSvg = resolveComponent("CheckSvg");
|
|
6526
6538
|
|
|
6527
6539
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.steps, function (step) {
|
|
@@ -6531,14 +6543,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6531
6543
|
}, [createElementVNode("div", {
|
|
6532
6544
|
"class": normalizeClass(["text-center", step.position !== _ctx.steps.length ? 'min-w-[70px] w-[70px] md:min-w-[96px] md:w-[96px]' : 'w-full'])
|
|
6533
6545
|
}, [createElementVNode("div", {
|
|
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-
|
|
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-40 text-body'])
|
|
6535
6547
|
}, [step.position < _ctx.activeStep ? (openBlock(), createBlock(_component_CheckSvg, {
|
|
6536
6548
|
key: 0,
|
|
6537
6549
|
"class": "w-[18px]"
|
|
6538
|
-
})) : (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(step.position), 1))], 2), createElementVNode("
|
|
6539
|
-
"class": normalizeClass(["text-sm md:text-base", {
|
|
6550
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(step.position), 1))], 2), createElementVNode("div", {
|
|
6551
|
+
"class": normalizeClass(["m-0 md:leading-tight text-sm md:text-base", {
|
|
6540
6552
|
'font-bold': step.position === _ctx.activeStep,
|
|
6541
|
-
'text-
|
|
6553
|
+
'text-body': step.position > _ctx.activeStep
|
|
6542
6554
|
}])
|
|
6543
6555
|
}, toDisplayString(step.label), 3)], 2), step.position !== _ctx.steps.length ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createElementVNode("div", _hoisted_5, [createElementVNode("div", {
|
|
6544
6556
|
"class": "bg-primary text-xs leading-none py-0.5 text-center rounded transition-all",
|
|
@@ -6547,6 +6559,87 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6547
6559
|
}), 128))])]);
|
|
6548
6560
|
}
|
|
6549
6561
|
|
|
6562
|
+
script$1.render = render$3;
|
|
6563
|
+
|
|
6564
|
+
var script = defineComponent({
|
|
6565
|
+
name: 'FwTag',
|
|
6566
|
+
props: {
|
|
6567
|
+
/**
|
|
6568
|
+
* The size of the tag. Accepts: 'xs' & 'sm'
|
|
6569
|
+
*/
|
|
6570
|
+
size: {
|
|
6571
|
+
type: String,
|
|
6572
|
+
"default": 'xs',
|
|
6573
|
+
validator: function validator(value) {
|
|
6574
|
+
return ['xs', 'sm'].includes(value);
|
|
6575
|
+
}
|
|
6576
|
+
},
|
|
6577
|
+
|
|
6578
|
+
/**
|
|
6579
|
+
* The colour variant of the tag.
|
|
6580
|
+
* Accepts 'primary', 'alert', 'error', 'success'
|
|
6581
|
+
*/
|
|
6582
|
+
variant: {
|
|
6583
|
+
type: String,
|
|
6584
|
+
"default": 'primary',
|
|
6585
|
+
validator: function validator(value) {
|
|
6586
|
+
return ['primary', 'alert', 'error', 'success'].includes(value);
|
|
6587
|
+
}
|
|
6588
|
+
}
|
|
6589
|
+
},
|
|
6590
|
+
setup: function setup(props) {
|
|
6591
|
+
var baseClass = ref( // eslint-disable-next-line max-len
|
|
6592
|
+
"inline-block font-medium text-center whitespace-nowrap rounded-full");
|
|
6593
|
+
var tagClasses = ref({
|
|
6594
|
+
primary: {
|
|
6595
|
+
text: 'text-tertiary',
|
|
6596
|
+
background: 'bg-primary'
|
|
6597
|
+
},
|
|
6598
|
+
alert: {
|
|
6599
|
+
text: 'text-white',
|
|
6600
|
+
background: 'bg-alert'
|
|
6601
|
+
},
|
|
6602
|
+
success: {
|
|
6603
|
+
text: 'text-white',
|
|
6604
|
+
background: 'bg-success'
|
|
6605
|
+
},
|
|
6606
|
+
error: {
|
|
6607
|
+
text: 'text-white',
|
|
6608
|
+
background: 'bg-error'
|
|
6609
|
+
}
|
|
6610
|
+
});
|
|
6611
|
+
var sizes = ref({
|
|
6612
|
+
xs: 'px-2 py-px text-xs',
|
|
6613
|
+
sm: 'px-4 py-1 text-xs'
|
|
6614
|
+
});
|
|
6615
|
+
var textColorClass = computed(function () {
|
|
6616
|
+
return tagClasses.value[props.variant].text;
|
|
6617
|
+
});
|
|
6618
|
+
var bgColorClass = computed(function () {
|
|
6619
|
+
return tagClasses.value[props.variant].background;
|
|
6620
|
+
});
|
|
6621
|
+
var sizeClass = computed(function () {
|
|
6622
|
+
return sizes.value[props.size];
|
|
6623
|
+
});
|
|
6624
|
+
return {
|
|
6625
|
+
baseClass: baseClass,
|
|
6626
|
+
textColorClass: textColorClass,
|
|
6627
|
+
bgColorClass: bgColorClass,
|
|
6628
|
+
sizeClass: sizeClass
|
|
6629
|
+
};
|
|
6630
|
+
}
|
|
6631
|
+
});
|
|
6632
|
+
|
|
6633
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6634
|
+
return openBlock(), createElementBlock("span", {
|
|
6635
|
+
"class": normalizeClass(["fw-tag", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass]])
|
|
6636
|
+
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
6637
|
+
}
|
|
6638
|
+
|
|
6639
|
+
var css_248z$2 = ".fw-tag{line-height:normal;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out}";
|
|
6640
|
+
var stylesheet$2 = ".fw-tag{line-height:normal;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out}";
|
|
6641
|
+
styleInject(css_248z$2);
|
|
6642
|
+
|
|
6550
6643
|
script.render = render$2;
|
|
6551
6644
|
|
|
6552
6645
|
var __default__$1 = defineComponent({
|
|
@@ -6683,15 +6776,16 @@ __default__.__scopeId = "data-v-c32112d4";
|
|
|
6683
6776
|
var components = /*#__PURE__*/Object.freeze({
|
|
6684
6777
|
__proto__: null,
|
|
6685
6778
|
FwForm: Form,
|
|
6686
|
-
FwInput: script$
|
|
6687
|
-
FwCheckbox: script$
|
|
6688
|
-
FwCard: script$
|
|
6689
|
-
FwButton: script$
|
|
6690
|
-
FwNavigationMenu: script$
|
|
6691
|
-
FwTabs: script$
|
|
6692
|
-
FwTab: script$
|
|
6693
|
-
FwModal: script$
|
|
6694
|
-
FwProgressBar: script,
|
|
6779
|
+
FwInput: script$9,
|
|
6780
|
+
FwCheckbox: script$8,
|
|
6781
|
+
FwCard: script$7,
|
|
6782
|
+
FwButton: script$6,
|
|
6783
|
+
FwNavigationMenu: script$5,
|
|
6784
|
+
FwTabs: script$4,
|
|
6785
|
+
FwTab: script$3,
|
|
6786
|
+
FwModal: script$2,
|
|
6787
|
+
FwProgressBar: script$1,
|
|
6788
|
+
FwTag: script,
|
|
6695
6789
|
FwEmailPulse: __default__$1,
|
|
6696
6790
|
FwSuccessPulse: __default__
|
|
6697
6791
|
});
|
|
@@ -6826,7 +6920,7 @@ var modalService = function modalService(options, element) {
|
|
|
6826
6920
|
var open = function open() {
|
|
6827
6921
|
var _modalVNode;
|
|
6828
6922
|
|
|
6829
|
-
modalVNode = createApp(script$
|
|
6923
|
+
modalVNode = createApp(script$2, _objectSpread2({}, options));
|
|
6830
6924
|
elAppend === null || elAppend === void 0 ? void 0 : elAppend.appendChild(elementToMount);
|
|
6831
6925
|
(_modalVNode = modalVNode) === null || _modalVNode === void 0 ? void 0 : _modalVNode.mount(elementToMount);
|
|
6832
6926
|
};
|
|
@@ -6862,4 +6956,4 @@ var install = function install(app) {
|
|
|
6862
6956
|
});
|
|
6863
6957
|
};
|
|
6864
6958
|
|
|
6865
|
-
export { script$
|
|
6959
|
+
export { script$6 as FwButton, script$7 as FwCard, script$8 as FwCheckbox, __default__$1 as FwEmailPulse, Form as FwForm, script$9 as FwInput, script$2 as FwModal, script$5 as FwNavigationMenu, script$1 as FwProgressBar, __default__ as FwSuccessPulse, script$3 as FwTab, script$4 as FwTabs, script as FwTag, install as default, modalService };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 56 56" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.9657 16.6572C4.30925 16.2853 4.77934 16.0009 5.25075 16.0009C5.67633 16.0009 6.10179 16.1547 6.43856 16.4658L27.9964 36.2736L49.5542 16.4658C50.2651 15.8095 51.3742 15.8505 52.0271 16.5649C52.6834 17.2758 52.639 18.3794 51.9297 19.0357L29.1797 40.0357C28.5064 40.6578 27.4779 40.6578 26.8041 40.0357L4.05412 19.0357C3.35386 18.4728 3.30945 17.3681 3.9657 16.6572Z" />
|
|
3
|
+
</svg>
|
package/icons/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ import FileExclamationSvg from './file-exclamation.svg';
|
|
|
14
14
|
import HourglassClockSvg from './hourglass-clock.svg';
|
|
15
15
|
import EnvelopeSvg from './envelope.svg';
|
|
16
16
|
import CheckSvg from './check.svg';
|
|
17
|
+
import ChevronDownSvg from './chevron-down.svg';
|
|
17
18
|
|
|
18
19
|
export {
|
|
19
20
|
ViewSvg,
|
|
@@ -31,5 +32,6 @@ export {
|
|
|
31
32
|
FileExclamationSvg,
|
|
32
33
|
HourglassClockSvg,
|
|
33
34
|
EnvelopeSvg,
|
|
34
|
-
CheckSvg
|
|
35
|
+
CheckSvg,
|
|
36
|
+
ChevronDownSvg
|
|
35
37
|
};
|