@frollo/frollo-web-ui 8.5.3 → 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 +29804 -28762
- 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-BetVCzHJ.js → fw-table-row-C61Bi8KB.js} +59 -59
- 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 +30114 -29022
- 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 +30112 -29028
- 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-drawer.js
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock,
|
|
2
|
-
import { s as script
|
|
3
|
-
import { u as uniqueId } from './uniqueId-
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, useCssVars, resolveComponent, createBlock, createCommentVNode, openBlock, Teleport, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, createElementBlock, renderSlot, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
2
|
+
import { s as script } from './fw-button-CnQvA7oM.js';
|
|
3
|
+
import { u as uniqueId } from './uniqueId-DZdGzBh8.js';
|
|
4
|
+
import { u as useColours } from './get-root-colours-DCjlYelc.js';
|
|
5
|
+
import { d as render$1 } from './index-BsEH8YYr.js';
|
|
5
6
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
6
|
-
import './fw-loading-spinner-BFpFFRJm.js';
|
|
7
|
-
import './check--YD4Ts6g.js';
|
|
8
7
|
|
|
9
|
-
var
|
|
8
|
+
var __default__ = defineComponent({
|
|
10
9
|
name: 'FwDrawer',
|
|
11
10
|
components: {
|
|
12
|
-
FwButton: script
|
|
11
|
+
FwButton: script,
|
|
13
12
|
XMarkSvg: render$1
|
|
14
13
|
},
|
|
15
|
-
emits: ['update:modelValue', /** Fired when cancel button is clicked */
|
|
16
|
-
'cancel', /** Fired when confirm button is clicked */
|
|
17
|
-
'confirm'],
|
|
18
14
|
props: {
|
|
19
15
|
/**
|
|
20
16
|
* The drawer's v-model. Controls the visibility of the drawer.
|
|
@@ -41,6 +37,13 @@ var script = defineComponent({
|
|
|
41
37
|
type: String,
|
|
42
38
|
"default": 'dialog'
|
|
43
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* The element to attach the modal too. Defaults to `#app` element.
|
|
42
|
+
*/
|
|
43
|
+
element: {
|
|
44
|
+
type: String,
|
|
45
|
+
"default": '#app'
|
|
46
|
+
},
|
|
44
47
|
/**
|
|
45
48
|
* Whether to show the cancel button
|
|
46
49
|
*/
|
|
@@ -69,7 +72,7 @@ var script = defineComponent({
|
|
|
69
72
|
type: String,
|
|
70
73
|
"default": 'secondary',
|
|
71
74
|
validator: function validator(value) {
|
|
72
|
-
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'].includes(value);
|
|
75
|
+
return ['primary', 'secondary', 'tertiary', 'quaternary', 'error', 'success', 'link', 'text', 'transparent', 'gradient'].includes(value);
|
|
73
76
|
}
|
|
74
77
|
},
|
|
75
78
|
/**
|
|
@@ -86,15 +89,20 @@ var script = defineComponent({
|
|
|
86
89
|
type: String,
|
|
87
90
|
"default": 'primary',
|
|
88
91
|
validator: function validator(value) {
|
|
89
|
-
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'].includes(value);
|
|
92
|
+
return ['primary', 'secondary', 'tertiary', 'quaternary', 'error', 'success', 'link', 'text', 'transparent', 'gradient'].includes(value);
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
},
|
|
96
|
+
emits: ['update:modelValue', /** Fired when cancel button is clicked */
|
|
97
|
+
'cancel', /** Fired when confirm button is clicked */
|
|
98
|
+
'confirm'],
|
|
93
99
|
setup: function setup(props, ctx) {
|
|
94
|
-
var baseDrawerClass = "fixed
|
|
95
|
-
var drawerFooterClass = "\n sticky bottom-0 w-full shadow-
|
|
100
|
+
var baseDrawerClass = "fixed top-0 right-0 z-40 h-screen bg-brand-appBg w-full md:w-2/3 lg:w-1/2 xl:w-1/3";
|
|
101
|
+
var drawerFooterClass = "\n sticky bottom-0 w-full shadow-top bg-brand-appBg p-6 clip-top-shadow\n ";
|
|
96
102
|
var isMounted = ref(false);
|
|
97
103
|
var uuid = uniqueId();
|
|
104
|
+
var _useColours = useColours(),
|
|
105
|
+
drawerBgColour = _useColours.brandBg1Fade95;
|
|
98
106
|
var isOpen = computed({
|
|
99
107
|
get: function get() {
|
|
100
108
|
return props.modelValue;
|
|
@@ -121,100 +129,128 @@ var script = defineComponent({
|
|
|
121
129
|
uuid: uuid,
|
|
122
130
|
isMounted: isMounted,
|
|
123
131
|
onConfirmed: onConfirmed,
|
|
124
|
-
onCancelled: onCancelled
|
|
132
|
+
onCancelled: onCancelled,
|
|
133
|
+
drawerBgColour: drawerBgColour
|
|
125
134
|
};
|
|
126
135
|
}
|
|
127
136
|
});
|
|
137
|
+
var __injectCSSVars__ = function __injectCSSVars__() {
|
|
138
|
+
useCssVars(function (_ctx) {
|
|
139
|
+
return {
|
|
140
|
+
"699c0493": _ctx.drawerBgColour
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
var __setup__ = __default__.setup;
|
|
145
|
+
__default__.setup = __setup__ ? function (props, ctx) {
|
|
146
|
+
__injectCSSVars__();
|
|
147
|
+
return __setup__(props, ctx);
|
|
148
|
+
} : __injectCSSVars__;
|
|
128
149
|
|
|
129
|
-
var _hoisted_1 =
|
|
130
|
-
|
|
150
|
+
var _hoisted_1 = {
|
|
151
|
+
"class": "fw-drawer-bg fixed z-[9999] top-0 left-0 w-full h-full"
|
|
152
|
+
};
|
|
153
|
+
var _hoisted_2 = ["id"];
|
|
154
|
+
var _hoisted_3 = {
|
|
131
155
|
"class": "flex flex-row justify-between items-center p-6"
|
|
132
156
|
};
|
|
133
|
-
var _hoisted_3 = ["id"];
|
|
134
157
|
var _hoisted_4 = ["id"];
|
|
135
|
-
var _hoisted_5 =
|
|
158
|
+
var _hoisted_5 = ["id"];
|
|
159
|
+
var _hoisted_6 = {
|
|
136
160
|
key: 0,
|
|
137
161
|
"class": "flex items-center"
|
|
138
162
|
};
|
|
139
|
-
var
|
|
163
|
+
var _hoisted_7 = {
|
|
140
164
|
key: 1,
|
|
141
165
|
"class": "flex items-center space-x-2"
|
|
142
166
|
};
|
|
143
167
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
144
168
|
var _component_XMarkSvg = resolveComponent("XMarkSvg");
|
|
145
169
|
var _component_FwButton = resolveComponent("FwButton");
|
|
146
|
-
return openBlock(), createBlock(
|
|
147
|
-
|
|
170
|
+
return _ctx.isMounted ? (openBlock(), createBlock(Teleport, {
|
|
171
|
+
key: 0,
|
|
172
|
+
to: _ctx.element
|
|
173
|
+
}, [createVNode(Transition, {
|
|
174
|
+
name: "drawerBgFadeIn",
|
|
148
175
|
appear: ""
|
|
149
176
|
}, {
|
|
150
177
|
"default": withCtx(function () {
|
|
151
|
-
return [withDirectives(createElementVNode("div", {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
tabindex: "-1",
|
|
155
|
-
"aria-labelledby": "drawer-label"
|
|
156
|
-
}, [createElementVNode("div", _hoisted_2, [_ctx.$slots.header ? (openBlock(), createElementBlock("h2", {
|
|
157
|
-
key: 0,
|
|
158
|
-
id: "drawer_".concat(_ctx.uuid, "_header"),
|
|
159
|
-
"class": "inline-flex items-center mb-0 text-body font-bold"
|
|
160
|
-
}, [renderSlot(_ctx.$slots, "header")], 8, _hoisted_3)) : createCommentVNode("", true), createVNode(_component_FwButton, {
|
|
161
|
-
variant: "transparent",
|
|
162
|
-
tabindex: "",
|
|
163
|
-
title: "Close drawer",
|
|
164
|
-
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
165
|
-
return _ctx.onCancelled();
|
|
166
|
-
}),
|
|
167
|
-
"class": "inline-block w-9 h-9 !p-0 inline-flex items-center justify-center"
|
|
168
|
-
}, {
|
|
169
|
-
"default": withCtx(function () {
|
|
170
|
-
return [createVNode(_component_XMarkSvg, {
|
|
171
|
-
"class": "w-6 h-6 inline-block m-0 p-[3px] transition-rotate duration-200"
|
|
172
|
-
})];
|
|
173
|
-
}),
|
|
174
|
-
_: 1
|
|
175
|
-
})]), _ctx.$slots.body ? (openBlock(), createElementBlock("div", {
|
|
176
|
-
key: 0,
|
|
177
|
-
"class": "fw-drawer-body h-[calc(100vh-155px)] overflow-y-scroll",
|
|
178
|
-
id: "drawer_".concat(_ctx.uuid, "_body")
|
|
179
|
-
}, [renderSlot(_ctx.$slots, "body")], 8, _hoisted_4)) : createCommentVNode("", true), _ctx.$slots.footer || _ctx.showConfirm || _ctx.showCancel ? (openBlock(), createElementBlock("div", {
|
|
180
|
-
key: 1,
|
|
181
|
-
"class": normalizeClass(["fw-drawer-footer", _ctx.drawerFooterClass])
|
|
182
|
-
}, [_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "footer")])) : (openBlock(), createElementBlock("div", _hoisted_6, [_ctx.showCancel ? (openBlock(), createBlock(_component_FwButton, {
|
|
183
|
-
key: 0,
|
|
184
|
-
"class": "basis-1/2",
|
|
185
|
-
variant: _ctx.cancelButtonType,
|
|
186
|
-
"aria-label": _ctx.cancelButtonText,
|
|
187
|
-
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
188
|
-
return _ctx.onCancelled();
|
|
189
|
-
})
|
|
190
|
-
}, {
|
|
191
|
-
"default": withCtx(function () {
|
|
192
|
-
return [createTextVNode(toDisplayString(_ctx.cancelButtonText), 1)];
|
|
193
|
-
}),
|
|
194
|
-
_: 1
|
|
195
|
-
}, 8, ["variant", "aria-label"])) : createCommentVNode("", true), _ctx.showConfirm ? (openBlock(), createBlock(_component_FwButton, {
|
|
196
|
-
key: 1,
|
|
197
|
-
"class": "basis-1/2",
|
|
198
|
-
variant: _ctx.confirmButtonType,
|
|
199
|
-
"aria-label": _ctx.confirmButtonText,
|
|
200
|
-
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
201
|
-
return _ctx.onConfirmed();
|
|
202
|
-
})
|
|
178
|
+
return [withDirectives(createElementVNode("div", _hoisted_1, [createVNode(Transition, {
|
|
179
|
+
name: "drawerSlideInOut",
|
|
180
|
+
appear: ""
|
|
203
181
|
}, {
|
|
204
182
|
"default": withCtx(function () {
|
|
205
|
-
return [
|
|
183
|
+
return [withDirectives(createElementVNode("div", {
|
|
184
|
+
id: "fw-drawer-".concat(_ctx.uuid),
|
|
185
|
+
"class": normalizeClass(["fw-drawer", _ctx.baseDrawerClass]),
|
|
186
|
+
tabindex: "-1",
|
|
187
|
+
"aria-labelledby": "drawer-label"
|
|
188
|
+
}, [createElementVNode("div", _hoisted_3, [_ctx.$slots.header ? (openBlock(), createElementBlock("h2", {
|
|
189
|
+
key: 0,
|
|
190
|
+
id: "drawer_".concat(_ctx.uuid, "_header"),
|
|
191
|
+
"class": "inline-flex items-center mb-0 text-body font-bold"
|
|
192
|
+
}, [renderSlot(_ctx.$slots, "header")], 8, _hoisted_4)) : createCommentVNode("", true), createVNode(_component_FwButton, {
|
|
193
|
+
variant: "transparent",
|
|
194
|
+
tabindex: "",
|
|
195
|
+
title: "Close drawer",
|
|
196
|
+
"class": "inline-block w-9 h-9 !p-0 inline-flex items-center justify-center",
|
|
197
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
198
|
+
return _ctx.onCancelled();
|
|
199
|
+
})
|
|
200
|
+
}, {
|
|
201
|
+
"default": withCtx(function () {
|
|
202
|
+
return [createVNode(_component_XMarkSvg, {
|
|
203
|
+
name: "xmark",
|
|
204
|
+
"class": "w-6 h-6 inline-block m-0 p-[3px] transition-rotate duration-200"
|
|
205
|
+
})];
|
|
206
|
+
}),
|
|
207
|
+
_: 1
|
|
208
|
+
})]), _ctx.$slots.body ? (openBlock(), createElementBlock("div", {
|
|
209
|
+
key: 0,
|
|
210
|
+
id: "drawer_".concat(_ctx.uuid, "_body"),
|
|
211
|
+
"class": "fw-drawer-body h-[calc(100vh-155px)] overflow-y-scroll"
|
|
212
|
+
}, [renderSlot(_ctx.$slots, "body")], 8, _hoisted_5)) : createCommentVNode("", true), _ctx.$slots.footer || _ctx.showConfirm || _ctx.showCancel ? (openBlock(), createElementBlock("div", {
|
|
213
|
+
key: 1,
|
|
214
|
+
"class": normalizeClass(["fw-drawer-footer", _ctx.drawerFooterClass])
|
|
215
|
+
}, [_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "footer")])) : (openBlock(), createElementBlock("div", _hoisted_7, [_ctx.showCancel ? (openBlock(), createBlock(_component_FwButton, {
|
|
216
|
+
key: 0,
|
|
217
|
+
"class": "basis-1/2",
|
|
218
|
+
variant: _ctx.cancelButtonType,
|
|
219
|
+
"aria-label": _ctx.cancelButtonText,
|
|
220
|
+
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
221
|
+
return _ctx.onCancelled();
|
|
222
|
+
})
|
|
223
|
+
}, {
|
|
224
|
+
"default": withCtx(function () {
|
|
225
|
+
return [createTextVNode(toDisplayString(_ctx.cancelButtonText), 1)];
|
|
226
|
+
}),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["variant", "aria-label"])) : createCommentVNode("", true), _ctx.showConfirm ? (openBlock(), createBlock(_component_FwButton, {
|
|
229
|
+
key: 1,
|
|
230
|
+
"class": "basis-1/2",
|
|
231
|
+
variant: _ctx.confirmButtonType,
|
|
232
|
+
"aria-label": _ctx.confirmButtonText,
|
|
233
|
+
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
234
|
+
return _ctx.onConfirmed();
|
|
235
|
+
})
|
|
236
|
+
}, {
|
|
237
|
+
"default": withCtx(function () {
|
|
238
|
+
return [createTextVNode(toDisplayString(_ctx.confirmButtonText), 1)];
|
|
239
|
+
}),
|
|
240
|
+
_: 1
|
|
241
|
+
}, 8, ["variant", "aria-label"])) : createCommentVNode("", true)]))], 2)) : createCommentVNode("", true)], 10, _hoisted_2), [[vShow, _ctx.isOpen]])];
|
|
206
242
|
}),
|
|
207
|
-
_:
|
|
208
|
-
}
|
|
243
|
+
_: 3
|
|
244
|
+
})], 512), [[vShow, _ctx.isOpen]])];
|
|
209
245
|
}),
|
|
210
246
|
_: 3
|
|
211
|
-
});
|
|
247
|
+
})], 8, ["to"])) : createCommentVNode("", true);
|
|
212
248
|
}
|
|
213
249
|
|
|
214
|
-
var css_248z = ".clip-top-shadow{-webkit-clip-path:inset(-4px 0 0 0);clip-path:inset(-4px 0 0 0)}.drawerSlideInOut-enter-active{-webkit-animation:drawerSlideInOut .4s;-moz-animation:drawerSlideInOut .4s;animation:drawerSlideInOut .4s;-webkit-transition:all .4s ease-in;-moz-transition:all .4s ease-in;transition:all .4s ease-in}.drawerSlideInOut-leave-active{animation:drawerSlideInOut .4s reverse;-webkit-transition:all .4s ease-in-out;-moz-transition:all .4s ease-in-out;transition:all .4s ease-in-out}@-webkit-keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-moz-keyframes drawerSlideInOut{0%{opacity:0;-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-moz-transform:translateX(0);transform:translateX(0)}}@keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}}";
|
|
215
|
-
var stylesheet = ".clip-top-shadow{-webkit-clip-path:inset(-4px 0 0 0);clip-path:inset(-4px 0 0 0)}.drawerSlideInOut-enter-active{-webkit-animation:drawerSlideInOut .4s;-moz-animation:drawerSlideInOut .4s;animation:drawerSlideInOut .4s;-webkit-transition:all .4s ease-in;-moz-transition:all .4s ease-in;transition:all .4s ease-in}.drawerSlideInOut-leave-active{animation:drawerSlideInOut .4s reverse;-webkit-transition:all .4s ease-in-out;-moz-transition:all .4s ease-in-out;transition:all .4s ease-in-out}@-webkit-keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-moz-keyframes drawerSlideInOut{0%{opacity:0;-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-moz-transform:translateX(0);transform:translateX(0)}}@keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}}";
|
|
250
|
+
var css_248z = ".clip-top-shadow{-webkit-clip-path:inset(-4px 0 0 0);clip-path:inset(-4px 0 0 0)}.drawerSlideInOut-enter-active{-webkit-animation:drawerSlideInOut .4s;-moz-animation:drawerSlideInOut .4s;animation:drawerSlideInOut .4s;-webkit-transition:all .4s ease-in;-moz-transition:all .4s ease-in;transition:all .4s ease-in}.drawerSlideInOut-leave-active{animation:drawerSlideInOut .4s reverse;-webkit-transition:all .4s ease-in-out;-moz-transition:all .4s ease-in-out;transition:all .4s ease-in-out}@-webkit-keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-moz-keyframes drawerSlideInOut{0%{opacity:0;-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-moz-transform:translateX(0);transform:translateX(0)}}@keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}}.drawerBgFadeIn-enter-active{-webkit-animation:drawerBgFadeIn .3s;-moz-animation:drawerBgFadeIn .3s;animation:drawerBgFadeIn .3s;-webkit-transition:opacity .3s ease-in;-moz-transition:opacity .3s ease-in;transition:opacity .3s ease-in}.drawerBgFadeIn-leave-active{animation:drawerBgFadeIn .3s reverse;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}@-webkit-keyframes drawerBgFadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes drawerBgFadeIn{0%{opacity:0}to{opacity:1}}@keyframes drawerBgFadeIn{0%{opacity:0}to{opacity:1}}.fw-drawer-bg{background-color:var(--699c0493)}";
|
|
251
|
+
var stylesheet = ".clip-top-shadow{-webkit-clip-path:inset(-4px 0 0 0);clip-path:inset(-4px 0 0 0)}.drawerSlideInOut-enter-active{-webkit-animation:drawerSlideInOut .4s;-moz-animation:drawerSlideInOut .4s;animation:drawerSlideInOut .4s;-webkit-transition:all .4s ease-in;-moz-transition:all .4s ease-in;transition:all .4s ease-in}.drawerSlideInOut-leave-active{animation:drawerSlideInOut .4s reverse;-webkit-transition:all .4s ease-in-out;-moz-transition:all .4s ease-in-out;transition:all .4s ease-in-out}@-webkit-keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-moz-keyframes drawerSlideInOut{0%{opacity:0;-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-moz-transform:translateX(0);transform:translateX(0)}}@keyframes drawerSlideInOut{0%{opacity:0;-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}to{opacity:1;-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}}.drawerBgFadeIn-enter-active{-webkit-animation:drawerBgFadeIn .3s;-moz-animation:drawerBgFadeIn .3s;animation:drawerBgFadeIn .3s;-webkit-transition:opacity .3s ease-in;-moz-transition:opacity .3s ease-in;transition:opacity .3s ease-in}.drawerBgFadeIn-leave-active{animation:drawerBgFadeIn .3s reverse;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}@-webkit-keyframes drawerBgFadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes drawerBgFadeIn{0%{opacity:0}to{opacity:1}}@keyframes drawerBgFadeIn{0%{opacity:0}to{opacity:1}}.fw-drawer-bg{background-color:var(--699c0493)}";
|
|
216
252
|
styleInject(css_248z);
|
|
217
253
|
|
|
218
|
-
|
|
254
|
+
__default__.render = render;
|
|
219
255
|
|
|
220
|
-
export {
|
|
256
|
+
export { __default__ as FwDrawer };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent, toRef, ref, computed, watch, onMounted, onBeforeUnmount, pushScopeId, popScopeId, resolveComponent, openBlock,
|
|
1
|
+
import { defineComponent, toRef, ref, computed, watch, onMounted, onBeforeUnmount, useCssVars, pushScopeId, popScopeId, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, createBlock, renderSlot, Transition, withCtx, withDirectives, Fragment, renderList, vShow } from 'vue';
|
|
2
2
|
import { u as useField } from './vee-validate.esm-3ptvCDR1.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { _ as __default__$1 } from './fw-image-D-OHafdw.js';
|
|
4
|
+
import { u as useColours } from './get-root-colours-DCjlYelc.js';
|
|
5
|
+
import { r as render$1 } from './index-BsEH8YYr.js';
|
|
5
6
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
6
7
|
|
|
7
|
-
var
|
|
8
|
+
var __default__ = defineComponent({
|
|
8
9
|
name: 'FwDropdown',
|
|
9
|
-
emits: ['update:modelValue'],
|
|
10
10
|
components: {
|
|
11
11
|
ChevronDownSvg: render$1,
|
|
12
|
-
FwImage:
|
|
12
|
+
FwImage: __default__$1
|
|
13
13
|
},
|
|
14
14
|
props: {
|
|
15
15
|
/**
|
|
@@ -75,16 +75,20 @@ var script = defineComponent({
|
|
|
75
75
|
"default": false
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
+
emits: ['update:modelValue'],
|
|
78
79
|
setup: function setup(props, ctx) {
|
|
79
|
-
var menuButtonClass = "inline-flex w-full justify-between items-center rounded-
|
|
80
|
-
var menuClass = "absolute left-0 mt-
|
|
81
|
-
var menuItemClass = "block px-4 py-3 my-1 cursor-pointer
|
|
80
|
+
var menuButtonClass = "inline-flex w-full justify-between items-center rounded-lg border bg-white border-grey-100 \n hover:border-brand-text3 focus:border-brand-text3 px-4 py-3 outline-none";
|
|
81
|
+
var menuClass = "absolute left-0 mt-2 w-full text-left z-10 origin-top-left rounded-lg border bg-white border-grey-100 shadow-dropdown\n ring-1 ring-black ring-opacity-5 focus:outline-none";
|
|
82
|
+
var menuItemClass = "fw-dropdown--menu-item block px-4 py-3 my-1 cursor-pointer first:rounded-t-lg last:rounded-b-lg\n first:mt-0 last:mb-0";
|
|
82
83
|
var nameRef = toRef(props, 'name');
|
|
83
84
|
var _useField = useField(nameRef, props.rules),
|
|
84
85
|
errors = _useField.errors,
|
|
85
86
|
errorMessage = _useField.errorMessage,
|
|
86
87
|
meta = _useField.meta,
|
|
87
88
|
fieldVal = _useField.value;
|
|
89
|
+
var _useColours = useColours(),
|
|
90
|
+
primaryFade5 = _useColours.primaryFade5,
|
|
91
|
+
colorErrorTextFade5 = _useColours.colorErrorTextFade5;
|
|
88
92
|
var selectedOption = ref(null);
|
|
89
93
|
var selectValue = computed({
|
|
90
94
|
get: function get() {
|
|
@@ -109,7 +113,7 @@ var script = defineComponent({
|
|
|
109
113
|
var menuItemActiveClass = function menuItemActiveClass(option) {
|
|
110
114
|
var _selectedOption$value;
|
|
111
115
|
if (((_selectedOption$value = selectedOption.value) === null || _selectedOption$value === void 0 ? void 0 : _selectedOption$value.value) === option.value) {
|
|
112
|
-
return '
|
|
116
|
+
return 'fw-dropdown--open';
|
|
113
117
|
}
|
|
114
118
|
return 'bg-none';
|
|
115
119
|
};
|
|
@@ -143,93 +147,108 @@ var script = defineComponent({
|
|
|
143
147
|
isOpen: isOpen,
|
|
144
148
|
selectValue: selectValue,
|
|
145
149
|
selectOption: selectOption,
|
|
146
|
-
selectedOption: selectedOption
|
|
150
|
+
selectedOption: selectedOption,
|
|
151
|
+
primaryFade5: primaryFade5,
|
|
152
|
+
colorErrorTextFade5: colorErrorTextFade5
|
|
147
153
|
};
|
|
148
154
|
}
|
|
149
155
|
});
|
|
156
|
+
var __injectCSSVars__ = function __injectCSSVars__() {
|
|
157
|
+
useCssVars(function (_ctx) {
|
|
158
|
+
return {
|
|
159
|
+
"5e0ab1b5": _ctx.primaryFade5,
|
|
160
|
+
"f95113ee": _ctx.colorErrorTextFade5
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
var __setup__ = __default__.setup;
|
|
165
|
+
__default__.setup = __setup__ ? function (props, ctx) {
|
|
166
|
+
__injectCSSVars__();
|
|
167
|
+
return __setup__(props, ctx);
|
|
168
|
+
} : __injectCSSVars__;
|
|
150
169
|
|
|
151
170
|
var _withScopeId = function _withScopeId(n) {
|
|
152
|
-
return pushScopeId("data-v-
|
|
171
|
+
return pushScopeId("data-v-d941ca80"), n = n(), popScopeId(), n;
|
|
153
172
|
};
|
|
154
173
|
var _hoisted_1 = {
|
|
155
174
|
"class": "fw-dropdown relative"
|
|
156
175
|
};
|
|
157
176
|
var _hoisted_2 = {
|
|
158
177
|
key: 0,
|
|
159
|
-
"class": "
|
|
178
|
+
"class": "text-brand-error-text ml-0.5"
|
|
160
179
|
};
|
|
161
|
-
var _hoisted_3 =
|
|
180
|
+
var _hoisted_3 = ["id", "aria-expanded"];
|
|
181
|
+
var _hoisted_4 = {
|
|
162
182
|
key: 0,
|
|
163
|
-
"class": "
|
|
183
|
+
"class": "flex items-center gap-x-2"
|
|
164
184
|
};
|
|
165
|
-
var _hoisted_4 = ["id", "aria-expanded"];
|
|
166
185
|
var _hoisted_5 = {
|
|
167
|
-
|
|
168
|
-
"class": "flex items-center gap-x-2"
|
|
186
|
+
"class": "flex flex-col text-left"
|
|
169
187
|
};
|
|
170
188
|
var _hoisted_6 = {
|
|
171
|
-
"class": "
|
|
189
|
+
"class": "text-p text-body leading-none"
|
|
172
190
|
};
|
|
173
191
|
var _hoisted_7 = {
|
|
174
|
-
"class": "font-medium"
|
|
175
|
-
};
|
|
176
|
-
var _hoisted_8 = {
|
|
177
192
|
key: 0,
|
|
178
|
-
"class": "text-p-small"
|
|
193
|
+
"class": "text-p-small leading-none text-body"
|
|
179
194
|
};
|
|
180
|
-
var
|
|
195
|
+
var _hoisted_8 = {
|
|
181
196
|
key: 1,
|
|
182
|
-
"class": "flex flex-row items-center gap-x-2 text-grey-
|
|
183
|
-
};
|
|
184
|
-
var _hoisted_10 = {
|
|
185
|
-
"class": ""
|
|
197
|
+
"class": "flex flex-row items-center gap-x-2 text-grey-100 text-p leading-none"
|
|
186
198
|
};
|
|
187
|
-
var
|
|
188
|
-
var
|
|
189
|
-
var
|
|
199
|
+
var _hoisted_9 = ["aria-labelledby"];
|
|
200
|
+
var _hoisted_10 = ["onClick"];
|
|
201
|
+
var _hoisted_11 = {
|
|
190
202
|
"class": "flex items-center gap-x-2"
|
|
191
203
|
};
|
|
192
|
-
var
|
|
204
|
+
var _hoisted_12 = {
|
|
193
205
|
"class": "flex flex-col text-left"
|
|
194
206
|
};
|
|
195
|
-
var
|
|
207
|
+
var _hoisted_13 = {
|
|
208
|
+
"class": "text-p text-body leading-none"
|
|
209
|
+
};
|
|
210
|
+
var _hoisted_14 = {
|
|
196
211
|
key: 0,
|
|
197
|
-
"class": "text-p-small"
|
|
212
|
+
"class": "text-p-small text-body leading-none"
|
|
198
213
|
};
|
|
199
|
-
var
|
|
214
|
+
var _hoisted_15 = {
|
|
200
215
|
key: 1,
|
|
201
|
-
"class": "text-left text-
|
|
216
|
+
"class": "text-left text-p-small mt-2 min-h-[21px]"
|
|
202
217
|
};
|
|
203
|
-
var
|
|
218
|
+
var _hoisted_16 = {
|
|
204
219
|
key: 0,
|
|
205
|
-
"class": "text-error"
|
|
220
|
+
"class": "text-brand-error-text"
|
|
206
221
|
};
|
|
207
|
-
var
|
|
222
|
+
var _hoisted_17 = {
|
|
208
223
|
key: 1,
|
|
209
|
-
"class": "text-
|
|
224
|
+
"class": "text-brand-text2"
|
|
210
225
|
};
|
|
211
226
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
212
227
|
var _ctx$selectedOption, _ctx$selectedOption2, _ctx$selectedOption3, _ctx$selectedOption4;
|
|
213
228
|
var _component_FwImage = resolveComponent("FwImage");
|
|
214
229
|
var _component_ChevronDownSvg = resolveComponent("ChevronDownSvg");
|
|
215
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.label ? (openBlock(), createElementBlock("label",
|
|
230
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
231
|
+
key: 0,
|
|
232
|
+
"class": normalizeClass([[(_ctx.errorMessage || _ctx.errors[0]) && _ctx.meta.touched ? 'text-brand-error-text' : 'text-brand-text2'], "block mb-1 text-base text-left"])
|
|
233
|
+
}, [createTextVNode(toDisplayString(_ctx.label) + " ", 1), _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_2, "*")) : createCommentVNode("", true)], 2)) : createCommentVNode("", true), createElementVNode("button", {
|
|
234
|
+
id: "".concat(_ctx.name, "-fw-dropdown--button"),
|
|
216
235
|
type: "button",
|
|
217
|
-
"class": normalizeClass([_ctx.menuButtonClass, _ctx.isOpen ? 'border-primary' : '
|
|
236
|
+
"class": normalizeClass([_ctx.menuButtonClass, _ctx.isOpen ? 'fw-dropdown--open !border-primary' : '', (_ctx.errorMessage || _ctx.errors[0]) && _ctx.meta.touched ? 'fw-dropdown-error-state border-brand-error-text' : '']),
|
|
237
|
+
"aria-expanded": _ctx.isOpen,
|
|
238
|
+
"aria-haspopup": "true",
|
|
218
239
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
219
240
|
return _ctx.isOpen = !_ctx.isOpen;
|
|
220
|
-
})
|
|
221
|
-
|
|
222
|
-
"aria-expanded": _ctx.isOpen,
|
|
223
|
-
"aria-haspopup": "true"
|
|
224
|
-
}, [(_ctx$selectedOption = _ctx.selectedOption) !== null && _ctx$selectedOption !== void 0 && _ctx$selectedOption.label ? (openBlock(), createElementBlock("div", _hoisted_5, [_ctx.selectedOption.image_url ? (openBlock(), createBlock(_component_FwImage, {
|
|
241
|
+
})
|
|
242
|
+
}, [(_ctx$selectedOption = _ctx.selectedOption) !== null && _ctx$selectedOption !== void 0 && _ctx$selectedOption.label ? (openBlock(), createElementBlock("div", _hoisted_4, [_ctx.selectedOption.image_url ? (openBlock(), createBlock(_component_FwImage, {
|
|
225
243
|
key: 0,
|
|
226
244
|
src: _ctx.selectedOption.image_url,
|
|
227
245
|
"class": "w-6 h-6"
|
|
228
|
-
}, null, 8, ["src"])) : createCommentVNode("", true), createElementVNode("div",
|
|
246
|
+
}, null, 8, ["src"])) : createCommentVNode("", true), createElementVNode("div", _hoisted_5, [createElementVNode("span", _hoisted_6, toDisplayString((_ctx$selectedOption2 = _ctx.selectedOption) === null || _ctx$selectedOption2 === void 0 ? void 0 : _ctx$selectedOption2.label), 1), (_ctx$selectedOption3 = _ctx.selectedOption) !== null && _ctx$selectedOption3 !== void 0 && _ctx$selectedOption3.description ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString((_ctx$selectedOption4 = _ctx.selectedOption) === null || _ctx$selectedOption4 === void 0 ? void 0 : _ctx$selectedOption4.description), 1)) : createCommentVNode("", true)])])) : (openBlock(), createElementBlock("div", _hoisted_8, [_ctx.$slots.placeholderIcon ? renderSlot(_ctx.$slots, "placeholderIcon", {
|
|
229
247
|
key: 0
|
|
230
|
-
}) : createCommentVNode("", true), createElementVNode("span",
|
|
231
|
-
"class": normalizeClass(["w-6 text-
|
|
232
|
-
|
|
248
|
+
}) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(_ctx.placeholder), 1)])), createVNode(_component_ChevronDownSvg, {
|
|
249
|
+
"class": normalizeClass(["w-6 text-body transition-transform duration-300", _ctx.isOpen ? 'rotate-180' : '']),
|
|
250
|
+
name: "chevron-down"
|
|
251
|
+
}, null, 8, ["class"])], 10, _hoisted_3), createVNode(Transition, {
|
|
233
252
|
name: "slideUpDown"
|
|
234
253
|
}, {
|
|
235
254
|
"default": withCtx(function () {
|
|
@@ -248,30 +267,30 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
248
267
|
onClick: function onClick($event) {
|
|
249
268
|
return _ctx.selectOption(option);
|
|
250
269
|
}
|
|
251
|
-
}, [createElementVNode("div",
|
|
270
|
+
}, [createElementVNode("div", _hoisted_11, [option.image_url ? (openBlock(), createBlock(_component_FwImage, {
|
|
252
271
|
key: 0,
|
|
253
272
|
src: option.image_url,
|
|
254
273
|
"class": "w-[20px] h-[20px]"
|
|
255
|
-
}, null, 8, ["src"])) : createCommentVNode("", true), createElementVNode("div",
|
|
256
|
-
}), 128))], 10,
|
|
274
|
+
}, null, 8, ["src"])) : createCommentVNode("", true), createElementVNode("div", _hoisted_12, [createElementVNode("span", _hoisted_13, toDisplayString(option.label), 1), option.description ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(option.description), 1)) : createCommentVNode("", true)])])], 10, _hoisted_10);
|
|
275
|
+
}), 128))], 10, _hoisted_9), [[vShow, _ctx.isOpen]])];
|
|
257
276
|
}),
|
|
258
277
|
_: 1
|
|
259
|
-
}), _ctx.enableErrors ? (openBlock(), createElementBlock("div",
|
|
278
|
+
}), _ctx.enableErrors ? (openBlock(), createElementBlock("div", _hoisted_15, [createVNode(Transition, {
|
|
260
279
|
name: "fwFadeIn",
|
|
261
280
|
mode: "out-in"
|
|
262
281
|
}, {
|
|
263
282
|
"default": withCtx(function () {
|
|
264
|
-
return [(_ctx.errorMessage || _ctx.errors[0]) && _ctx.meta.touched ? (openBlock(), createElementBlock("span",
|
|
283
|
+
return [(_ctx.errorMessage || _ctx.errors[0]) && _ctx.meta.touched ? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(_ctx.errorMessage || _ctx.errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
265
284
|
}),
|
|
266
285
|
_: 1
|
|
267
286
|
})])) : createCommentVNode("", true)]);
|
|
268
287
|
}
|
|
269
288
|
|
|
270
|
-
var css_248z = ".slideUpDown-enter-active[data-v-
|
|
271
|
-
var stylesheet = ".slideUpDown-enter-active[data-v-
|
|
289
|
+
var css_248z = ".slideUpDown-enter-active[data-v-d941ca80]{-webkit-animation:slideUpDown-d941ca80 .3s;-moz-animation:slideUpDown-d941ca80 .3s;animation:slideUpDown-d941ca80 .3s;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}.slideUpDown-leave-active[data-v-d941ca80]{animation:slideUpDown-d941ca80 .3s reverse;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;transition:all .3s ease-in-out}@-webkit-keyframes slideUpDown-d941ca80{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-moz-keyframes slideUpDown-d941ca80{0%{opacity:0;-moz-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-moz-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideUpDown-d941ca80{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);-moz-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);transform:translateZ(0)}}.fw-dropdown--open[data-v-d941ca80]{background-color:var(--5e0ab1b5)}.fw-dropdown-error-state[data-v-d941ca80]{background-color:var(--f95113ee)}.fw-dropdown--menu-item[data-v-d941ca80]:hover{background-color:var(--5e0ab1b5)}";
|
|
290
|
+
var stylesheet = ".slideUpDown-enter-active[data-v-d941ca80]{-webkit-animation:slideUpDown-d941ca80 .3s;-moz-animation:slideUpDown-d941ca80 .3s;animation:slideUpDown-d941ca80 .3s;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}.slideUpDown-leave-active[data-v-d941ca80]{animation:slideUpDown-d941ca80 .3s reverse;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;transition:all .3s ease-in-out}@-webkit-keyframes slideUpDown-d941ca80{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-moz-keyframes slideUpDown-d941ca80{0%{opacity:0;-moz-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-moz-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideUpDown-d941ca80{0%{opacity:0;-webkit-transform:translate3d(0,-3%,0);-moz-transform:translate3d(0,-3%,0);transform:translate3d(0,-3%,0)}to{opacity:1;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);transform:translateZ(0)}}.fw-dropdown--open[data-v-d941ca80]{background-color:var(--5e0ab1b5)}.fw-dropdown-error-state[data-v-d941ca80]{background-color:var(--f95113ee)}.fw-dropdown--menu-item[data-v-d941ca80]:hover{background-color:var(--5e0ab1b5)}";
|
|
272
291
|
styleInject(css_248z);
|
|
273
292
|
|
|
274
|
-
|
|
275
|
-
|
|
293
|
+
__default__.render = render;
|
|
294
|
+
__default__.__scopeId = "data-v-d941ca80";
|
|
276
295
|
|
|
277
|
-
export {
|
|
296
|
+
export { __default__ as _ };
|
package/esm/fw-dropdown.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { _ as FwDropdown } from './fw-dropdown-58wyuzsW.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import './vee-validate.esm-3ptvCDR1.js';
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './fw-loading-bar-DThRjdw1.js';
|
|
4
|
+
import './fw-image-D-OHafdw.js';
|
|
5
|
+
import './fw-loading-bar-DecYSBC_.js';
|
|
6
|
+
import './get-root-colours-DCjlYelc.js';
|
|
8
7
|
import './style-inject.es-tgCJW-Cu.js';
|
|
8
|
+
import './index-BsEH8YYr.js';
|
package/esm/fw-icons.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent, createElementVNode, createElementBlock, openBlock } from 'vue';
|
|
2
|
+
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
3
|
+
|
|
4
|
+
var script = defineComponent({
|
|
5
|
+
name: 'FwSuccessAnimation'
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
var _hoisted_1 = {
|
|
9
|
+
viewBox: "0 0 100 100",
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
"class": "fw-success-animation text-brand-success-text"
|
|
13
|
+
};
|
|
14
|
+
var _hoisted_2 = /*#__PURE__*/createElementVNode("path", {
|
|
15
|
+
d: "M67,93 A46.5,46.5 0,1,0 7,32 L43,67 L88,19",
|
|
16
|
+
fill: "none",
|
|
17
|
+
"class": "stroke-brand-success-text",
|
|
18
|
+
"stroke-width": "6",
|
|
19
|
+
"stroke-linecap": "round",
|
|
20
|
+
"stroke-dasharray": "80 1000",
|
|
21
|
+
"stroke-dashoffset": "-220"
|
|
22
|
+
}, null, -1);
|
|
23
|
+
var _hoisted_3 = [_hoisted_2];
|
|
24
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var css_248z = ".fw-success-animation path{-webkit-animation:dash .75s linear both;-moz-animation:dash .75s linear both;animation:dash .75s linear both;-webkit-animation-delay:.5s;-moz-animation-delay:.5s;animation-delay:.5s}@-webkit-keyframes dash{0%{stroke-dashoffset:210}75%{stroke-dashoffset:-220}to{stroke-dashoffset:-205}}@-moz-keyframes dash{0%{stroke-dashoffset:210}75%{stroke-dashoffset:-220}to{stroke-dashoffset:-205}}@keyframes dash{0%{stroke-dashoffset:210}75%{stroke-dashoffset:-220}to{stroke-dashoffset:-205}}";
|
|
29
|
+
var stylesheet = ".fw-success-animation path{-webkit-animation:dash .75s linear both;-moz-animation:dash .75s linear both;animation:dash .75s linear both;-webkit-animation-delay:.5s;-moz-animation-delay:.5s;animation-delay:.5s}@-webkit-keyframes dash{0%{stroke-dashoffset:210}75%{stroke-dashoffset:-220}to{stroke-dashoffset:-205}}@-moz-keyframes dash{0%{stroke-dashoffset:210}75%{stroke-dashoffset:-220}to{stroke-dashoffset:-205}}@keyframes dash{0%{stroke-dashoffset:210}75%{stroke-dashoffset:-220}to{stroke-dashoffset:-205}}";
|
|
30
|
+
styleInject(css_248z);
|
|
31
|
+
|
|
32
|
+
script.render = render;
|
|
33
|
+
|
|
34
|
+
export { script as FwSuccessAnimation };
|