@frollo/frollo-web-ui 8.5.4 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +29797 -28753
- package/esm/{_rollupPluginBabelHelpers-DpC_oIQV.js → _rollupPluginBabelHelpers-DODWUb5N.js} +307 -345
- package/esm/fw-accordion.js +59 -56
- package/esm/fw-alert.js +68 -0
- package/esm/fw-bar-chart.js +4 -4
- package/esm/fw-button-CnQvA7oM.js +296 -0
- package/esm/fw-button.js +2 -4
- package/esm/{fw-card-bsYbpPmW.js → fw-card-D45R4kN-.js} +33 -9
- package/esm/fw-card.js +3 -1
- package/esm/fw-checkbox.js +39 -20
- package/esm/fw-date-picker.js +110 -78
- package/esm/fw-drawer.js +119 -83
- package/esm/{fw-dropdown-CbgOvgOt.js → fw-dropdown-58wyuzsW.js} +80 -61
- package/esm/fw-dropdown.js +5 -5
- package/esm/fw-icons.js +34 -0
- package/esm/{fw-image-Dl96Dc27.js → fw-image-D-OHafdw.js} +30 -13
- package/esm/fw-image.js +4 -4
- package/esm/{fw-input-XeI-IKly.js → fw-input-C2-cZ-BY.js} +65 -43
- package/esm/fw-input.js +2 -2
- package/esm/fw-loading-bar-DecYSBC_.js +45 -0
- package/esm/fw-loading.js +34 -15
- package/esm/fw-media-picker.js +43 -31
- package/esm/fw-modal.js +102 -48
- package/esm/fw-navigation-menu.js +180 -52
- package/esm/fw-popover-B4bsfuxm.js +620 -0
- package/esm/fw-popover.js +6 -293
- package/esm/fw-progress-bar.js +3 -2
- package/esm/fw-provider-list.js +58 -34
- package/esm/fw-sidebar-menu.js +22 -13
- package/esm/fw-slider.js +4 -4
- package/esm/fw-switch.js +147 -0
- package/esm/{fw-table-row-Db7951fr.js → fw-table-row-C61Bi8KB.js} +57 -55
- package/esm/fw-table.js +8 -7
- package/esm/fw-tabs.js +7 -7
- package/esm/{fw-tag-V0jMl-It.js → fw-tag-FWH6KttB.js} +37 -26
- package/esm/fw-tag.js +4 -6
- package/esm/fw-toast.js +14 -15
- package/esm/fw-transactions-card.js +8 -8
- package/esm/get-root-colours-DCjlYelc.js +62 -0
- package/esm/{index-CzZMBMV_.js → index-BsEH8YYr.js} +433 -130
- package/esm/index.js +76 -68
- package/esm/{uniqueId-DK6xzFd8.js → uniqueId-DZdGzBh8.js} +1 -1
- package/frollo-web-ui.esm.js +30139 -29045
- package/icons/arrow-connect.svg +3 -0
- package/icons/arrow-left.svg +3 -0
- package/icons/arrow-out-square.svg +3 -0
- package/icons/arrow-right.svg +3 -0
- package/icons/circle-exclamation.svg +5 -0
- package/icons/clock.svg +10 -0
- package/icons/default-provider.svg +5 -0
- package/icons/desktop.svg +8 -0
- package/icons/error.svg +3 -0
- package/icons/folder-arrow-down.svg +3 -0
- package/icons/index.ts +35 -3
- package/icons/loading.svg +0 -1
- package/icons/manual-account.svg +3 -0
- package/icons/mobile.svg +3 -0
- package/icons/paper-plane.svg +3 -0
- package/icons/pending.svg +10 -0
- package/icons/success-hill.svg +5 -0
- package/icons/user-plus.svg +3 -0
- package/index.d.ts +807 -571
- package/package.json +23 -29
- package/styles/tailwind.css +52 -0
- package/styles/typography.scss +24 -7
- package/styles/web-components.scss +2 -2
- package/tailwind.config.js +128 -22
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +20 -20
- package/types/components/fw-alert/fw-alert.vue.d.ts +43 -0
- package/types/components/fw-alert/index.d.ts +2 -0
- package/types/components/fw-alert/index.types.d.ts +4 -0
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +8 -8
- package/types/components/fw-button/fw-button.vue.d.ts +15 -17
- package/types/components/fw-button/index.d.ts +2 -0
- package/types/components/fw-button/index.types.d.ts +1 -3
- package/types/components/fw-card/fw-card.vue.d.ts +3 -2
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +8 -5
- package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +14 -19
- package/types/components/fw-date-picker/index.types.d.ts +5 -4
- package/types/components/fw-drawer/fw-drawer.vue.d.ts +26 -10
- package/types/components/fw-drawer/index.types.d.ts +1 -1
- package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +11 -9
- package/types/components/fw-icons/index.d.ts +2 -0
- package/types/components/fw-image/fw-image.vue.d.ts +7 -5
- package/types/components/fw-input/fw-input.vue.d.ts +11 -17
- package/types/components/fw-input/index.types.d.ts +1 -1
- package/types/components/fw-loading/fw-loading-bar.vue.d.ts +5 -2
- package/types/components/fw-loading/fw-loading-dots.vue.d.ts +2 -0
- package/types/components/fw-loading/index.d.ts +2 -1
- package/types/components/fw-modal/fw-modal.vue.d.ts +51 -11
- package/types/components/fw-modal/index.types.d.ts +1 -1
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +77 -6
- package/types/components/fw-navigation-menu/index.types.d.ts +11 -0
- package/types/components/fw-popover/fw-popover.vue.d.ts +10 -5
- package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +8 -5
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +20 -3
- package/types/components/fw-sidebar-menu/index.types.d.ts +9 -0
- package/types/components/fw-switch/fw-switch.vue.d.ts +101 -0
- package/types/components/fw-switch/index.d.ts +2 -0
- package/types/components/fw-switch/index.types.d.ts +8 -0
- package/types/components/fw-table/fw-table.vue.d.ts +7 -7
- package/types/components/fw-table/index.types.d.ts +0 -3
- package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
- package/types/components/fw-tabs/index.types.d.ts +1 -1
- package/types/components/fw-tag/fw-tag.vue.d.ts +2 -2
- package/types/components/fw-tag/index.types.d.ts +3 -3
- package/types/components/fw-toast/fw-toast.vue.d.ts +2 -2
- package/types/components/index.d.ts +4 -3
- package/types/components/index.types.d.ts +1 -0
- package/types/helpers/get-root-colours.d.ts +3 -0
- package/types/helpers/index.d.ts +2 -0
- package/types/helpers/vue-component-to-html.d.ts +2 -0
- package/types/icons/index.d.ts +18 -2
- package/types/index-types.esm.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.esm.d.ts +1 -0
- package/types/services/toast.d.ts +1 -1
- package/web-components/index.js +30134 -29048
- package/esm/check--YD4Ts6g.js +0 -17
- package/esm/fw-animations.js +0 -123
- package/esm/fw-button-DNozvo7B.js +0 -286
- package/esm/fw-loading-bar-DThRjdw1.js +0 -22
- package/esm/fw-loading-spinner-BFpFFRJm.js +0 -20
- package/esm/fw-period-selector.js +0 -90
- package/esm/get-root-colours-DYEoJPEb.js +0 -37
- package/icons/icons.stories.ts +0 -28
- package/styles/tailwind.scss +0 -68
- package/types/components/fw-animations/fw-email-pulse.vue.d.ts +0 -24
- package/types/components/fw-animations/fw-success-pulse.vue.d.ts +0 -24
- package/types/components/fw-animations/index.d.ts +0 -4
- package/types/components/fw-period-selector/fw-period-selector.vue.d.ts +0 -56
- package/types/components/fw-period-selector/index.d.ts +0 -2
- package/types/components/fw-period-selector/index.types.d.ts +0 -1
- /package/icons/{arrows-rotate.svg → arrow-rotate.svg} +0 -0
- /package/types/components/{fw-animations/fw-loading-spinner.vue.d.ts → fw-icons/fw-success-animation.vue.d.ts} +0 -0
package/esm/fw-toast.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, watchEffect,
|
|
2
|
-
import { u as uniqueId } from './uniqueId-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, watchEffect, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, Teleport, createVNode, TransitionGroup, Transition, withCtx, normalizeClass, createElementVNode, renderSlot, resolveDynamicComponent } from 'vue';
|
|
2
|
+
import { u as uniqueId } from './uniqueId-DZdGzBh8.js';
|
|
3
|
+
import { t as render$1, l as render$2, m as render$3 } from './index-BsEH8YYr.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
5
|
-
import './check--YD4Ts6g.js';
|
|
6
5
|
|
|
7
6
|
var script = defineComponent({
|
|
8
7
|
name: 'FwToast',
|
|
9
8
|
components: {
|
|
10
|
-
SolidCheckSvg: render$
|
|
9
|
+
SolidCheckSvg: render$3,
|
|
11
10
|
SolidXMarkSvg: render$2,
|
|
12
|
-
ErrorFilledSvg: render$
|
|
11
|
+
ErrorFilledSvg: render$1
|
|
13
12
|
},
|
|
14
|
-
emits: ['update:modelValue', 'dismissed'],
|
|
15
13
|
props: {
|
|
16
14
|
/**
|
|
17
15
|
* The toast's v-model. Controls the visibility of the toast.
|
|
@@ -62,6 +60,7 @@ var script = defineComponent({
|
|
|
62
60
|
"default": 3500
|
|
63
61
|
}
|
|
64
62
|
},
|
|
63
|
+
emits: ['update:modelValue', 'dismissed'],
|
|
65
64
|
setup: function setup(props, ctx) {
|
|
66
65
|
var isMounted = ref(false);
|
|
67
66
|
var uuid = uniqueId();
|
|
@@ -91,9 +90,9 @@ var script = defineComponent({
|
|
|
91
90
|
});
|
|
92
91
|
var baseClass = "text-white flex min-w-[70%] max-w-[90%] md:min-w-[320px] md:max-w-[600px]\n py-3.5 px-6";
|
|
93
92
|
var typeClasses = ref({
|
|
94
|
-
success: 'bg-success',
|
|
95
|
-
error: 'bg-error',
|
|
96
|
-
warning: 'bg-
|
|
93
|
+
success: 'bg-brand-success-text',
|
|
94
|
+
error: 'bg-brand-error-text',
|
|
95
|
+
warning: 'bg-brand-warning-text'
|
|
97
96
|
});
|
|
98
97
|
var svgComponent = ref({
|
|
99
98
|
success: 'SolidCheckSvg',
|
|
@@ -119,7 +118,7 @@ var script = defineComponent({
|
|
|
119
118
|
transform: 'translateY(0)'
|
|
120
119
|
}], {
|
|
121
120
|
duration: 400,
|
|
122
|
-
easing: 'ease'
|
|
121
|
+
easing: 'ease-in'
|
|
123
122
|
});
|
|
124
123
|
}
|
|
125
124
|
isMounted.value = true;
|
|
@@ -156,10 +155,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
156
155
|
key: 0,
|
|
157
156
|
to: _ctx.element
|
|
158
157
|
}, [createVNode(TransitionGroup, {
|
|
158
|
+
id: _ctx.containerEl,
|
|
159
159
|
name: "toastAnimate",
|
|
160
160
|
tag: "div",
|
|
161
161
|
appear: "",
|
|
162
|
-
id: _ctx.containerEl,
|
|
163
162
|
"class": "fw-toast--container"
|
|
164
163
|
}, null, 8, ["id"])], 8, ["to"])) : createCommentVNode("", true), _ctx.isMounted ? (openBlock(), createBlock(Teleport, {
|
|
165
164
|
key: 1,
|
|
@@ -170,10 +169,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
169
|
}, {
|
|
171
170
|
"default": withCtx(function () {
|
|
172
171
|
return [_ctx.isOpen.value ? (openBlock(), createElementBlock("output", {
|
|
173
|
-
role: "status",
|
|
174
|
-
"class": normalizeClass(["fw-toast shadow rounded", [_ctx.baseClass, _ctx.typeClasses[_ctx.type]]]),
|
|
175
172
|
id: "fw-toast-".concat(_ctx.uuid),
|
|
176
|
-
key: "fw-toast-".concat(_ctx.uuid)
|
|
173
|
+
key: "fw-toast-".concat(_ctx.uuid),
|
|
174
|
+
role: "status",
|
|
175
|
+
"class": normalizeClass(["fw-toast shadow rounded", [_ctx.baseClass, _ctx.typeClasses[_ctx.type]]])
|
|
177
176
|
}, [createElementVNode("div", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.svgComponent[_ctx.type]), {
|
|
178
177
|
"aria-hidden": "true",
|
|
179
178
|
"class": "text-white min-w-[24px] min-h-[24px] w-[24px] h-[24px]"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent, createElementVNode, resolveComponent,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import './
|
|
1
|
+
import { defineComponent, createElementVNode, resolveComponent, createBlock, openBlock, withCtx, createCommentVNode, createElementBlock, toDisplayString } from 'vue';
|
|
2
|
+
import { _ as __default__$1 } from './fw-card-D45R4kN-.js';
|
|
3
|
+
import { _ as __default__ } from './fw-image-D-OHafdw.js';
|
|
4
|
+
import './get-root-colours-DCjlYelc.js';
|
|
5
5
|
import './style-inject.es-tgCJW-Cu.js';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
6
|
+
import './fw-loading-bar-DecYSBC_.js';
|
|
7
|
+
import './index-BsEH8YYr.js';
|
|
8
8
|
|
|
9
9
|
var script = defineComponent({
|
|
10
10
|
name: 'FwTransactionsCard',
|
|
11
11
|
components: {
|
|
12
|
-
FwCard:
|
|
13
|
-
FwImage:
|
|
12
|
+
FwCard: __default__$1,
|
|
13
|
+
FwImage: __default__
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
16
|
/**
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var getHexWithOpacity = function getHexWithOpacity(hexColor, fadePercentage) {
|
|
2
|
+
var transparencyValues = {
|
|
3
|
+
fade5: '0d',
|
|
4
|
+
fade10: '1a',
|
|
5
|
+
fade20: '33',
|
|
6
|
+
fade30: '4d',
|
|
7
|
+
fade40: '66',
|
|
8
|
+
fade50: '80',
|
|
9
|
+
fade60: '99',
|
|
10
|
+
fade70: 'b3',
|
|
11
|
+
fade80: 'cc',
|
|
12
|
+
fade90: 'e6',
|
|
13
|
+
fade95: 'f2',
|
|
14
|
+
fade100: '00'
|
|
15
|
+
};
|
|
16
|
+
var calculatedPercentage = "fade".concat(fadePercentage.toString());
|
|
17
|
+
var transparency = transparencyValues[calculatedPercentage];
|
|
18
|
+
return "".concat(hexColor).concat(transparency);
|
|
19
|
+
};
|
|
20
|
+
var useColours = function useColours() {
|
|
21
|
+
var style = getComputedStyle(document.body);
|
|
22
|
+
var colorPrimary = style.getPropertyValue('--colorPrimary');
|
|
23
|
+
var colorSecondary = style.getPropertyValue('--colorSecondary');
|
|
24
|
+
var colorTertiary = style.getPropertyValue('--colorTertiary');
|
|
25
|
+
var fontFamily = style.getPropertyValue('--fontFamily');
|
|
26
|
+
var colorBody = style.getPropertyValue('--colorBody');
|
|
27
|
+
var colorBrandBg1 = style.getPropertyValue('--colorBg1');
|
|
28
|
+
var colorErrorText = style.getPropertyValue('--colorErrorText');
|
|
29
|
+
var primaryFade5 = getHexWithOpacity(colorPrimary, 5);
|
|
30
|
+
var primaryFade10 = getHexWithOpacity(colorPrimary, 10);
|
|
31
|
+
var primaryFade20 = getHexWithOpacity(colorPrimary, 20);
|
|
32
|
+
var primaryFade30 = getHexWithOpacity(colorPrimary, 30);
|
|
33
|
+
var primaryFade40 = getHexWithOpacity(colorPrimary, 40);
|
|
34
|
+
var primaryFade50 = getHexWithOpacity(colorPrimary, 50);
|
|
35
|
+
var primaryFade60 = getHexWithOpacity(colorPrimary, 60);
|
|
36
|
+
var primaryFade70 = getHexWithOpacity(colorPrimary, 70);
|
|
37
|
+
var primaryFade80 = getHexWithOpacity(colorPrimary, 80);
|
|
38
|
+
var primaryFade90 = getHexWithOpacity(colorPrimary, 90);
|
|
39
|
+
var brandBg1Fade95 = getHexWithOpacity(colorBrandBg1, 95);
|
|
40
|
+
var colorErrorTextFade5 = getHexWithOpacity(colorErrorText, 5);
|
|
41
|
+
return {
|
|
42
|
+
colorPrimary: colorPrimary,
|
|
43
|
+
colorSecondary: colorSecondary,
|
|
44
|
+
colorTertiary: colorTertiary,
|
|
45
|
+
fontFamily: fontFamily,
|
|
46
|
+
colorBody: colorBody,
|
|
47
|
+
primaryFade5: primaryFade5,
|
|
48
|
+
primaryFade10: primaryFade10,
|
|
49
|
+
primaryFade20: primaryFade20,
|
|
50
|
+
primaryFade30: primaryFade30,
|
|
51
|
+
primaryFade40: primaryFade40,
|
|
52
|
+
primaryFade50: primaryFade50,
|
|
53
|
+
primaryFade60: primaryFade60,
|
|
54
|
+
primaryFade70: primaryFade70,
|
|
55
|
+
primaryFade80: primaryFade80,
|
|
56
|
+
primaryFade90: primaryFade90,
|
|
57
|
+
brandBg1Fade95: brandBg1Fade95,
|
|
58
|
+
colorErrorTextFade5: colorErrorTextFade5
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { getHexWithOpacity as g, useColours as u };
|