fu-kit 0.4.2 → 0.6.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.
@@ -1,612 +0,0 @@
1
- 'use strict';var vue=require('vue');console.log('ui-button!');
2
-
3
- var script$a = /*#__PURE__*/vue.defineComponent({
4
- name: 'fu-button',
5
- props: {
6
- hollow: { type: Boolean, default: false },
7
- },
8
- setup (props) {
9
- const mUp = (e) => e.target.blur();
10
- return { hollow: props.hollow, mUp }
11
- },
12
- });function render$a(_ctx, _cache, $props, $setup, $data, $options) {
13
- return (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
14
- ..._ctx.$attrs,
15
- type: _ctx.$attrs.type || 'button',
16
- class: 'fu-button' + (_ctx.hollow ? ' _hollow' : ''),
17
- }, {
18
- onMouseup: _cache[0] || (_cache[0] = (...args) => (_ctx.mUp && _ctx.mUp(...args)))
19
- }), [
20
- vue.renderSlot(_ctx.$slots, "default")
21
- ], 16))
22
- }function styleInject(css, ref) {
23
- if ( ref === void 0 ) ref = {};
24
- var insertAt = ref.insertAt;
25
-
26
- if (!css || typeof document === 'undefined') { return; }
27
-
28
- var head = document.head || document.getElementsByTagName('head')[0];
29
- var style = document.createElement('style');
30
- style.type = 'text/css';
31
-
32
- if (insertAt === 'top') {
33
- if (head.firstChild) {
34
- head.insertBefore(style, head.firstChild);
35
- } else {
36
- head.appendChild(style);
37
- }
38
- } else {
39
- head.appendChild(style);
40
- }
41
-
42
- if (style.styleSheet) {
43
- style.styleSheet.cssText = css;
44
- } else {
45
- style.appendChild(document.createTextNode(css));
46
- }
47
- }var css_248z$d = ".fu-button[data-v-0c2f6810] {\n font-size: var(--typo-h200);\n padding: var(--lt-sp300) var(--lt-sp400);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n cursor: pointer;\n font-family: var(--typo-font-text);\n min-height: var(--ui-lt-h);\n border-width: var(--ui-lt-border-width);\n border-style: var(--ui-lt-border-style);\n border-color: var(--ui-pal);\n border-radius: var(--ui-lt-border-radius);\n transition: all var(--ui-transition);\n background: var(--ui-pal);\n color: var(--ui-pal-acc);\n line-height: 1;\n will-change: box-shadow, transform;\n outline: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n}\n.fu-button > *[data-v-0c2f6810] {\n pointer-events: none;\n}\n.fu-button[data-v-0c2f6810]:hover {\n text-decoration: none;\n box-shadow: 0 4px 12px -4px var(--ui-pal);\n}\n.fu-button[data-v-0c2f6810]:focus {\n box-shadow: 0 4px 12px -4px var(--ui-pal);\n}\n.fu-button[data-v-0c2f6810]:active {\n transform: translateY(2px);\n transition-duration: 20ms;\n box-shadow: 0 3px 4px -2px var(--ui-pal);\n}\n.fu-button[data-v-0c2f6810]:disabled {\n cursor: not-allowed;\n background: var(--ui-pal-disabled);\n border-color: var(--ui-pal-disabled-border);\n border-style: var(--ui-lt-disabled-border-style);\n color: var(--ui-pal-disabled-border);\n box-shadow: none;\n}\n.fu-button._hollow[data-v-0c2f6810] {\n background: transparent;\n color: var(--ui-pal);\n}\n.fu-button._hollow[data-v-0c2f6810]:hover {\n box-shadow: 0 3px 10px -4px var(--ui-pal);\n color: var(--ui-pal);\n}\n.fu-button._hollow[data-v-0c2f6810]:focus {\n box-shadow: 0 3px 10px -4px var(--ui-pal);\n}\n.fu-button._hollow[data-v-0c2f6810]:active {\n box-shadow: 0 1px 4px -2px var(--ui-pal);\n}\n.fu-button._hollow[data-v-0c2f6810]:disabled {\n color: var(--ui-pal-disabled-border);\n box-shadow: none;\n}";
48
- styleInject(css_248z$d);script$a.render = render$a;
49
- script$a.__scopeId = "data-v-0c2f6810";var script$9 = /*#__PURE__*/vue.defineComponent({
50
- name: 'fu-button-link',
51
- props: {
52
- hollow: { type: Boolean, default: false },
53
- },
54
- setup (props) {
55
- const mUp = (e) => e.target.blur();
56
- return { hollow: props.hollow, mUp }
57
- },
58
- });function render$9(_ctx, _cache, $props, $setup, $data, $options) {
59
- return (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
60
- ..._ctx.$attrs,
61
- type: _ctx.$attrs.type || 'button',
62
- class: 'fu-button-link',
63
- }, {
64
- onMouseup: _cache[0] || (_cache[0] = (...args) => (_ctx.mUp && _ctx.mUp(...args)))
65
- }), [
66
- vue.renderSlot(_ctx.$slots, "default")
67
- ], 16))
68
- }var css_248z$c = ":root {\n --button-link-pal: var(--pal-link);\n --button-link-pal-active: var(--pal-link-active);\n --button-link-disabled-pal: var(--ui-pal-disabled);\n}";
69
- styleInject(css_248z$c);var css_248z$b = ".fu-button-link[data-v-70f7c8d4] {\n font-size: var(--typo-h200);\n padding: 0 0;\n display: inline-block;\n font-weight: normal;\n box-sizing: border-box;\n cursor: pointer;\n font-family: var(--typo-font-text);\n border: 0 none;\n transition: var(--ui-transition);\n background: transparent;\n color: var(--button-link-pal);\n line-height: 1;\n will-change: box-shadow, transform;\n outline: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n text-decoration: underline;\n}\n.fu-button-link > *[data-v-70f7c8d4] {\n pointer-events: none;\n}\n.fu-button-link[data-v-70f7c8d4]:hover {\n text-decoration: none;\n}\n.fu-button-link[data-v-70f7c8d4]:focus {\n color: var(--button-link-pal-active);\n text-decoration: underline dashed;\n}\n.fu-button-link[data-v-70f7c8d4]:active {\n color: var(--button-link-pal-active);\n text-decoration: underline dashed;\n}\n.fu-button-link[data-v-70f7c8d4]:disabled {\n cursor: not-allowed;\n color: var(--pal-link-active);\n}";
70
- styleInject(css_248z$b);script$9.render = render$9;
71
- script$9.__scopeId = "data-v-70f7c8d4";var script$8 = /*#__PURE__*/vue.defineComponent({
72
- name: 'fu-code-view',
73
- components: { FuButtonLink: script$9 },
74
- props: {
75
- label: { type: String, default: '' },
76
- collapse: { type: Boolean, default: null },
77
- },
78
- setup (props) {
79
- const collapse = vue.ref(vue.toRaw(props.collapse));
80
- const isShown = vue.ref(false);
81
- const label = props.label;
82
- return { isShown, label, collapse }
83
- },
84
- });const _hoisted_1$7 = { class: "fu-code-view" };
85
- const _hoisted_2$2 = {
86
- key: 1,
87
- class: "fu-code-view_title"
88
- };
89
- const _hoisted_3$1 = {
90
- key: 2,
91
- class: "fu-code-view_pre"
92
- };
93
-
94
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
95
- const _component_fu_button_link = vue.resolveComponent("fu-button-link");
96
-
97
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
98
- (_ctx.collapse)
99
- ? (vue.openBlock(), vue.createBlock(_component_fu_button_link, {
100
- key: 0,
101
- class: "fu-code-view_toggle",
102
- onClick: _cache[0] || (_cache[0] = $event => (_ctx.isShown = !_ctx.isShown))
103
- }, {
104
- default: vue.withCtx(() => [
105
- vue.createTextVNode(vue.toDisplayString(_ctx.isShown ? 'Hide' : 'Show') + " " + vue.toDisplayString(_ctx.label), 1)
106
- ]),
107
- _: 1
108
- }))
109
- : (_ctx.label)
110
- ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$2, vue.toDisplayString(_ctx.label), 1))
111
- : vue.createCommentVNode("", true),
112
- (_ctx.collapse ? _ctx.isShown : true)
113
- ? (vue.openBlock(), vue.createElementBlock("pre", _hoisted_3$1, [
114
- vue.renderSlot(_ctx.$slots, "default")
115
- ]))
116
- : vue.createCommentVNode("", true)
117
- ]))
118
- }var css_248z$a = ".fu-code-view[data-v-547d9872] {\n margin: var(--lt-sp200) 0;\n}\n.fu-code-view_title[data-v-547d9872] {\n font-size: var(--typo-h100);\n font-weight: bold;\n margin-bottom: var(--lt-sp200);\n}\n.fu-code-view_pre[data-v-547d9872] {\n padding: var(--lt-sp300) var(--lt-sp200);\n overflow: auto;\n max-width: 100%;\n background: rgb(var(--pal-block-light));\n border: 1px solid rgb(var(--pal-block));\n border-radius: var(--lt-border-radius-inner);\n}\n.fu-code-view_pre[data-v-547d9872]::-webkit-scrollbar-track {\n background-color: var(--ui-pal-bg);\n}\n.fu-code-view_pre[data-v-547d9872]::-webkit-scrollbar {\n width: var(--ui-lt-scroll-width);\n height: var(--ui-lt-scroll-width);\n border-radius: var(--ui-lt-scroll-width);\n background-color: var(--ui-pal-bg);\n}\n.fu-code-view_pre[data-v-547d9872]::-webkit-scrollbar-thumb {\n border: 1px solid var(--ui-pal-bg);\n border-radius: var(--ui-lt-scroll-width);\n background-color: transparent;\n}\n.fu-code-view_pre[data-v-547d9872] ::-webkit-scrollbar-corner {\n background-color: transparent !important;\n border: 0 none !important;\n box-shadow: none !important;\n}\n.fu-code-view_pre[data-v-547d9872]:focus::-webkit-scrollbar-thumb, .fu-code-view_pre[data-v-547d9872]:hover::-webkit-scrollbar-thumb {\n background-color: var(--ui-pal);\n}";
119
- styleInject(css_248z$a);script$8.render = render$8;
120
- script$8.__scopeId = "data-v-547d9872";var script$7 = /*#__PURE__*/vue.defineComponent({
121
- name: 'fu-copy',
122
- components: { FuButton: script$a },
123
- props: {
124
- value: { type: String, required: true },
125
- },
126
- setup (props) {
127
- const isCopied = vue.ref(false);
128
- let timeout;
129
-
130
- vue.onBeforeUnmount(() => {
131
- if (timeout) clearTimeout(timeout);
132
- });
133
-
134
- const handleCopyToClipboard = (event) => {
135
- if (navigator.clipboard) {
136
- navigator.clipboard.writeText(props.value);
137
- } else {
138
- execCopy();
139
- }
140
-
141
- isCopied.value = false;
142
- requestAnimationFrame(() => (isCopied.value = true));
143
-
144
- if (timeout) clearTimeout(timeout);
145
- timeout = setTimeout(() => isCopied.value = false, 1000);
146
-
147
- event.target.blur();
148
- };
149
-
150
- // fallback
151
- const execCopy = () => {
152
- const textArea = document.createElement('textarea');
153
- textArea.value = props.value;
154
- textArea.setAttribute('readonly', '');
155
- textArea.style.position = 'absolute';
156
- textArea.style.left = '-9999px';
157
- document.body.appendChild(textArea);
158
- textArea.select();
159
-
160
- try {
161
- document.execCommand('copy');
162
- } catch (err) {
163
- console.error(err);
164
- } finally {
165
- document.body.removeChild(textArea);
166
- }
167
- };
168
-
169
- return {
170
- handleCopyToClipboard,
171
- isCopied,
172
- }
173
- },
174
- });function render$7(_ctx, _cache, $props, $setup, $data, $options) {
175
- const _component_fu_button = vue.resolveComponent("fu-button");
176
-
177
- return (vue.openBlock(), vue.createBlock(_component_fu_button, vue.mergeProps(_ctx.$attrs, {
178
- hollow: "",
179
- class: ["fu-copy", {'_hot': _ctx.isCopied}],
180
- onClick: _ctx.handleCopyToClipboard
181
- }), {
182
- default: vue.withCtx(() => [
183
- vue.renderSlot(_ctx.$slots, "default")
184
- ]),
185
- _: 3
186
- }, 16, ["onClick", "class"]))
187
- }var css_248z$9 = ".fu-copy[data-v-9343fa28] {\n padding: 0 var(--lt-sp200);\n}\n.fu-copy._hollow[data-v-9343fa28] {\n font-weight: normal;\n}\n.fu-copy._hollow[data-v-9343fa28]:active {\n box-shadow: none;\n}\n.fu-copy._hollow[data-v-9343fa28]:hover {\n box-shadow: none;\n}\n.fu-copy._hollow[data-v-9343fa28]:focus {\n box-shadow: none;\n}\n.fu-copy._hollow._hot[data-v-9343fa28] {\n transition: none;\n border-color: var(--pal-positive);\n}";
188
- styleInject(css_248z$9);script$7.render = render$7;
189
- script$7.__scopeId = "data-v-9343fa28";var script$6 = /*#__PURE__*/vue.defineComponent({
190
- name: 'fu-progress-radial',
191
- props: {
192
- /**
193
- * Value must be between 0 and 1 (otherwise will be normalized automatically)
194
- */
195
- value: { type: Number, default: 0 },
196
- },
197
- data () {
198
- return {
199
- r: 50, r2: 100,
200
- }
201
- },
202
- computed: {
203
- normalizeValue () {
204
- if (this.value > 1) return 1
205
- if (this.value < 0) return 0
206
- return this.value
207
- },
208
- dasharray () {
209
- return Math.PI * this.r2
210
- },
211
- valueStyle () {
212
- return {
213
- 'stroke-dasharray': this.dasharray,
214
- 'stroke-dashoffset': this.dasharray * (1 - this.normalizeValue),
215
- }
216
- },
217
- },
218
- methods: {
219
- hasSlot (slot) {
220
- return !!this.$slots[slot]
221
- },
222
- },
223
- });const _hoisted_1$6 = { class: "fu-progress-radial" };
224
- const _hoisted_2$1 = { class: "fu-progress-radial__svg-wrap" };
225
- const _hoisted_3 = ["viewBox", "width", "height"];
226
- const _hoisted_4 = ["cx", "cy", "r"];
227
- const _hoisted_5 = ["cx", "cy", "r"];
228
- const _hoisted_6 = {
229
- key: 0,
230
- class: "fu-progress-radial__slot"
231
- };
232
-
233
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
234
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
235
- vue.createElementVNode("div", _hoisted_2$1, [
236
- (vue.openBlock(), vue.createElementBlock("svg", {
237
- class: "fu-progress-radial__svg",
238
- viewBox: `0 0 ${_ctx.r2} ${_ctx.r2}`,
239
- width: _ctx.r2,
240
- height: _ctx.r2
241
- }, [
242
- vue.createElementVNode("circle", {
243
- class: "fu-progress-radial__svg-bg",
244
- cx: _ctx.r,
245
- cy: _ctx.r,
246
- r: _ctx.r
247
- }, null, 8, _hoisted_4),
248
- vue.createElementVNode("circle", {
249
- class: "fu-progress-radial__svg-value",
250
- cx: _ctx.r,
251
- cy: _ctx.r,
252
- r: _ctx.r,
253
- style: vue.normalizeStyle(_ctx.valueStyle)
254
- }, null, 12, _hoisted_5)
255
- ], 8, _hoisted_3))
256
- ]),
257
- (_ctx.hasSlot('default'))
258
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, [
259
- vue.renderSlot(_ctx.$slots, "default")
260
- ]))
261
- : vue.createCommentVNode("", true)
262
- ]))
263
- }var css_248z$8 = ".fu-progress-radial[data-v-216c1c15] {\n display: flex;\n position: relative;\n white-space: nowrap;\n align-items: center;\n justify-content: center;\n height: calc(var(--progress-radial-size, 64px));\n width: calc(var(--progress-radial-size, 64px));\n}\n.fu-progress-radial__svg-wrap[data-v-216c1c15] {\n position: absolute;\n display: block;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n}\n.fu-progress-radial__svg[data-v-216c1c15] {\n overflow: visible;\n vertical-align: middle;\n transform: rotate(90deg);\n height: var(--progress-radial-size, 64px);\n width: var(--progress-radial-size, 64px);\n}\n.fu-progress-radial__svg-bg[data-v-216c1c15] {\n stroke: var(--progress-radial-bg-stroke, rgba(var(--pal-primary), 0.2));\n fill: var(--progress-radial-bg-fill, transparent);\n stroke-width: var(--progress-radial-stroke-width, 10);\n}\n.fu-progress-radial__svg-value[data-v-216c1c15] {\n fill: none;\n stroke-dasharray: 0;\n stroke-dashoffset: 0;\n transition-duration: var(--progress-radial-t-duration, 500ms);\n transition-property: var(--progress-radial-t-property, all);\n transition-timing-function: var(--progress-radial-t-function, linear);\n stroke: var(--progress-radial-color, rgb(var(--pal-primary)));\n stroke-linecap: var(--progress-radial-stroke-linecap, round);\n stroke-width: var(--progress-radial-stroke-width, 10);\n}";
264
- styleInject(css_248z$8);script$6.render = render$6;
265
- script$6.__scopeId = "data-v-216c1c15";var script$5 = /*#__PURE__*/vue.defineComponent({
266
- name: 'fu-select',
267
- props: {
268
- modelValue: {
269
- type: [ String, Number ],
270
- default: '',
271
- },
272
- },
273
- emits: [ 'update:modelValue' ],
274
- });const _hoisted_1$5 = ["value"];
275
-
276
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
277
- return (vue.openBlock(), vue.createElementBlock("label", vue.mergeProps({ class: "fu-select" }, { class: _ctx.$attrs.class }), [
278
- vue.createElementVNode("select", vue.mergeProps({ class: "fu-select_select" }, { ..._ctx.$attrs, class: undefined }, {
279
- value: _ctx.modelValue,
280
- onInput: _cache[0] || (_cache[0] = $event => (_ctx.$emit('update:modelValue', $event.target.value)))
281
- }), [
282
- vue.renderSlot(_ctx.$slots, "default")
283
- ], 16, _hoisted_1$5)
284
- ], 16))
285
- }var css_248z$7 = ".fu-select[data-v-4ad4f0cf] {\n font-size: var(--typo-h200);\n padding: 0;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: stretch;\n border-style: var(--ui-lt-border-style);\n border-width: var(--ui-lt-border-width);\n border-color: var(--ui-pal-lateral);\n border-radius: var(--ui-lt-border-radius);\n transition-duration: 240ms;\n transition-timing-function: ease-in-out;\n transition-property: border-color, box-shadow;\n height: var(--ui-lt-h);\n}\n.fu-select_select[data-v-4ad4f0cf] {\n font-size: var(--typo-h200);\n padding: var(--lt-sp100) var(--lt-sp200);\n color: var(--ui-pal-text);\n caret-color: var(--ui-pal);\n min-height: 100%;\n border: none;\n outline: none;\n background: transparent;\n box-sizing: border-box;\n flex: 1;\n display: block;\n min-width: 0;\n margin: 0;\n}\n.fu-select_select[disabled][data-v-4ad4f0cf] {\n cursor: not-allowed;\n color: var(--ui-pal-disabled-border);\n}\n.fu-select[data-v-4ad4f0cf]:hover {\n outline: none;\n box-shadow: 0 5px 12px -4px rgb(var(--rgb-dark), 0.2);\n}\n.fu-select[data-v-4ad4f0cf]:focus-within {\n outline: none;\n box-shadow: 0 0 0 0 var(--ui-pal);\n border-color: var(--ui-pal);\n}\n.fu-select._disabled[data-v-4ad4f0cf] {\n border: var(--ui-lt-border-width) var(--ui-lt-disabled-border-style) var(--ui-pal-disabled-border);\n background: transparent;\n box-shadow: none;\n}";
286
- styleInject(css_248z$7);script$5.render = render$5;
287
- script$5.__scopeId = "data-v-4ad4f0cf";var script$4 = /*#__PURE__*/vue.defineComponent({
288
- name: 'fu-text',
289
- props: {
290
- modelValue: {
291
- type: [ String, Number ],
292
- default: '',
293
- },
294
- },
295
- emits: [ 'update:modelValue' ],
296
- });const _hoisted_1$4 = ["value"];
297
-
298
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
299
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
300
- class: ["fu-text", {'_disabled': _ctx.$attrs.disabled !== undefined || _ctx.$attrs.readOnly !== undefined }]
301
- }, { class: _ctx.$attrs.class }), [
302
- vue.renderSlot(_ctx.$slots, "default"),
303
- vue.renderSlot(_ctx.$slots, "left"),
304
- vue.createElementVNode("input", vue.mergeProps({..._ctx.$attrs, class: undefined}, {
305
- value: _ctx.modelValue,
306
- class: "fu-text_input",
307
- onInput: _cache[0] || (_cache[0] = $event => (_ctx.$emit('update:modelValue', $event.target.value)))
308
- }), null, 16, _hoisted_1$4),
309
- vue.renderSlot(_ctx.$slots, "right")
310
- ], 16))
311
- }var css_248z$6 = ".fu-text[data-v-4848d3cf] {\n font-size: var(--typo-h200);\n padding: 0;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: stretch;\n border-style: var(--ui-lt-border-style);\n border-width: var(--ui-lt-border-width);\n border-color: var(--ui-pal-lateral);\n border-radius: var(--ui-lt-border-radius);\n transition-duration: 240ms;\n transition-timing-function: ease-in-out;\n transition-property: border-color, box-shadow;\n height: var(--ui-lt-h);\n background: var(--ui-pal-bg);\n}\n.fu-text_input[data-v-4848d3cf] {\n font-size: var(--typo-h200);\n padding: var(--lt-sp100) var(--lt-sp300);\n color: var(--ui-pal-text);\n caret-color: var(--ui-pal);\n min-height: 100%;\n border: none;\n outline: none;\n background: transparent;\n box-sizing: border-box;\n flex: 1;\n display: block;\n min-width: 0;\n margin: 0;\n}\n.fu-text_input[data-v-4848d3cf]::selection {\n background-color: var(--ui-pal);\n color: var(--ui-pal-text-select);\n}\n.fu-text_input[data-v-4848d3cf]::placeholder {\n color: var(--ui-pal-placeholder);\n}\n.fu-text_input[disabled][data-v-4848d3cf], .fu-text_input[read-only][data-v-4848d3cf] {\n cursor: text;\n color: var(--ui-pal-disabled-border);\n}\n.fu-text[data-v-4848d3cf]:hover {\n outline: none;\n box-shadow: 0 5px 12px -4px rgb(var(--rgb-dark), 0.2);\n}\n.fu-text[data-v-4848d3cf]:focus-within {\n outline: none;\n box-shadow: 0 0 0 0 var(--ui-pal);\n border-color: var(--ui-pal);\n}\n.fu-text._disabled[data-v-4848d3cf] {\n border: var(--ui-lt-border-width) var(--ui-lt-disabled-border-style) var(--ui-pal-disabled-border);\n background: transparent;\n box-shadow: none;\n}";
312
- styleInject(css_248z$6);script$4.render = render$4;
313
- script$4.__scopeId = "data-v-4848d3cf";var script$3 = /*#__PURE__*/vue.defineComponent({
314
- name: 'fu-select-x',
315
- components: { FuButton: script$a, UiText: script$4 },
316
- props: {
317
- modelValue: { type: [ String, Number ], default: '' },
318
- options: { type: Array, default: [] },
319
- allowCustom: { type: Boolean, default: false },
320
- },
321
- emits: [ 'update:modelValue', 'select' ],
322
- setup (props, { emit }) {
323
- const refSearch = vue.ref(null);
324
- const refList = vue.ref(null);
325
- const search = vue.ref('');
326
- const model = vue.ref(props.modelValue);
327
-
328
- vue.watch(() => props.modelValue, (value) => {
329
- model.value = value;
330
- search.value = value;
331
- });
332
-
333
- const normalItems = vue.computed(() => {
334
- return props.options.map(o => {
335
- if (typeof o === 'object' && o !== null && !Array.isArray(o)) {
336
- return o
337
- } else {
338
- return { value: o, label: o }
339
- }
340
- })
341
- });
342
-
343
- const filteredItems = vue.computed(() => {
344
- if (!search.value || search.value === model.value) return normalItems.value
345
- return normalItems.value.filter((i) => String(i.label).includes(search.value))
346
- });
347
-
348
- const selectedItem = vue.computed(() => normalItems.value.find(o => model.value === o.value));
349
-
350
- const onSelect = (event, item) => {
351
- search.value = item.value;
352
- model.value = item.value;
353
- emit('update:modelValue', model.value);
354
- emit('select', model.value);
355
-
356
- event.target.blur();
357
- };
358
-
359
- const onTextFocus = async (e) => {
360
- search.value = model.value;
361
- await vue.nextTick();
362
- e.target.setSelectionRange(0, -1);
363
- };
364
-
365
- const onTextKeydown = (e) => {
366
- if (![ 'ArrowDown', 'ArrowUp', 'Enter', 'Escape' ].includes(e.key)) return
367
-
368
- if (e.key === 'Escape') return document.activeElement.blur()
369
-
370
- const nodes = Array.prototype.slice.call(refList.value.children);
371
-
372
- if (e.key === 'Enter') {
373
- if (nodes[0]) {
374
- nodes[0].click();
375
- } else if (props.allowCustom) {
376
- onSelect(e, { label: search.value, value: search.value });
377
- }
378
-
379
- e.preventDefault();
380
- e.target.blur();
381
-
382
- return
383
- }
384
-
385
- if (!nodes.length) return
386
-
387
- switch (e.key) {
388
- case 'ArrowDown':
389
- e.preventDefault();
390
- nodes[0].focus();
391
- break
392
- case 'ArrowUp':
393
- e.preventDefault();
394
- nodes[nodes.length - 1].focus();
395
- break
396
- }
397
-
398
- e.preventDefault();
399
- };
400
-
401
- const onArrows = (e) => {
402
- if (![ 'ArrowDown', 'ArrowUp', 'Escape' ].includes(e.key)) return
403
-
404
- if (e.key === 'Escape') return document.activeElement.blur()
405
-
406
- if (refList.value !== document.activeElement.parentElement) return
407
-
408
- switch (e.key) {
409
- case 'ArrowDown':
410
- e.preventDefault();
411
- focusJump(+1);
412
- break
413
- case 'ArrowUp':
414
- e.preventDefault();
415
- focusJump(-1);
416
- break
417
- }
418
- };
419
-
420
- const focusJump = (next = -1) => {
421
- const foElm = document.activeElement.parentElement;
422
- if (foElm !== refList.value && foElm === refSearch.value) return
423
-
424
- const nodes = Array.prototype.slice.call(refList.value.children);
425
- const liRef = document.activeElement;
426
- const fi = nodes.indexOf(liRef);
427
-
428
-
429
- if (next > 0) {
430
- if (fi === nodes.length - 1) return nodes[0].focus()
431
- if (nodes[fi + 1]) nodes[fi + 1].focus();
432
- } else if (next < 0) {
433
- if (fi === 0) return nodes[nodes.length - 1].focus()
434
- if (nodes[fi - 1]) nodes[fi - 1].focus();
435
- }
436
- };
437
-
438
- const onSomeBlur = async (e) => {
439
- await vue.nextTick(); // todo: investigate why it's required
440
- if (
441
- refSearch.value !== document.activeElement &&
442
- refList.value !== document.activeElement.parentElement
443
- ) {
444
- search.value = model.value;
445
- }
446
- };
447
-
448
- return {
449
- refSearch,
450
- refList,
451
- search,
452
- model,
453
- filteredItems,
454
- selectedItem,
455
- onTextKeydown,
456
- onArrows,
457
- onSelect,
458
- onTextFocus,
459
- onSomeBlur,
460
- }
461
- },
462
- });const _hoisted_1$3 = ["placeholder"];
463
- const _hoisted_2 = ["onClick"];
464
-
465
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
466
- return (vue.openBlock(), vue.createElementBlock("label", vue.mergeProps({ class: "fu-select-x" }, _ctx.$attrs), [
467
- vue.withDirectives(vue.createElementVNode("input", {
468
- tabindex: "0",
469
- class: "fu-select-x_input",
470
- ref: "refSearch",
471
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.search) = $event)),
472
- placeholder: _ctx.model,
473
- onKeydown: _cache[1] || (_cache[1] = (...args) => (_ctx.onTextKeydown && _ctx.onTextKeydown(...args))),
474
- onFocus: _cache[2] || (_cache[2] = (...args) => (_ctx.onTextFocus && _ctx.onTextFocus(...args))),
475
- onBlur: _cache[3] || (_cache[3] = (...args) => (_ctx.onSomeBlur && _ctx.onSomeBlur(...args))),
476
- spellcheck: "false"
477
- }, null, 40, _hoisted_1$3), [
478
- [vue.vModelText, _ctx.search]
479
- ]),
480
- vue.withDirectives(vue.createElementVNode("span", {
481
- class: "fu-select-x_list",
482
- ref: "refList",
483
- onKeydown: _cache[5] || (_cache[5] = (...args) => (_ctx.onArrows && _ctx.onArrows(...args)))
484
- }, [
485
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.filteredItems, (e) => {
486
- return (vue.openBlock(), vue.createElementBlock("button", {
487
- class: vue.normalizeClass(["fu-select-x_list-item", {'_selected': e.value === _ctx.model}]),
488
- tabindex: "-1",
489
- onClick: $event => (_ctx.onSelect($event,e)),
490
- onBlur: _cache[4] || (_cache[4] = (...args) => (_ctx.onSomeBlur && _ctx.onSomeBlur(...args)))
491
- }, vue.toDisplayString(e.label), 43, _hoisted_2))
492
- }), 256))
493
- ], 544), [
494
- [vue.vShow, _ctx.filteredItems.length]
495
- ])
496
- ], 16))
497
- }var css_248z$5 = ".fu-select-x[data-v-41007e18] {\n font-size: var(--typo-h200);\n padding: 0;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: stretch;\n border-style: var(--ui-lt-border-style);\n border-width: var(--ui-lt-border-width);\n border-color: var(--ui-pal-lateral);\n border-radius: var(--ui-lt-border-radius);\n transition-duration: 240ms;\n transition-timing-function: ease-in-out;\n transition-property: border-color, box-shadow;\n height: var(--ui-lt-h);\n position: relative;\n background: var(--ui-pal-bg);\n}\n.fu-select-x_input[data-v-41007e18] {\n font-size: var(--typo-h200);\n padding: var(--lt-sp100) var(--lt-sp300);\n color: var(--ui-pal-text);\n caret-color: var(--ui-pal);\n min-height: 100%;\n border: none;\n outline: none;\n background: transparent;\n box-sizing: border-box;\n flex: 1;\n display: block;\n min-width: 0;\n margin: 0;\n}\n.fu-select-x_input[data-v-41007e18]:focus {\n outline: none;\n}\n.fu-select-x_input[data-v-41007e18]:not(:focus)::placeholder {\n color: rgb(var(--pal-prime));\n}\n.fu-select-x_input[data-v-41007e18]::selection {\n background-color: var(--ui-pal);\n color: var(--ui-pal-text-select);\n}\n.fu-select-x_list[data-v-41007e18] {\n overflow: auto;\n max-height: 30vh;\n max-width: 100vw;\n display: none;\n flex-direction: column;\n justify-content: stretch;\n border-width: var(--ui-lt-border-width);\n border-radius: var(--ui-lt-border-radius);\n border-color: var(--ui-pal);\n border-style: solid;\n position: absolute;\n left: calc(var(--ui-lt-border-width) * -1);\n top: 100%;\n min-width: calc(100% + var(--ui-lt-border-width) * 2);\n background: var(--ui-pal-bg);\n margin-top: var(--lt-sp200);\n z-index: var(--lt-z-pop);\n}\n.fu-select-x_list[data-v-41007e18]::-webkit-scrollbar-track {\n background-color: var(--ui-pal-bg);\n}\n.fu-select-x_list[data-v-41007e18]::-webkit-scrollbar {\n width: var(--ui-lt-scroll-width);\n height: var(--ui-lt-scroll-width);\n border-radius: var(--ui-lt-scroll-width);\n background-color: var(--ui-pal-bg);\n}\n.fu-select-x_list[data-v-41007e18]::-webkit-scrollbar-thumb {\n border: 1px solid var(--ui-pal-bg);\n border-radius: var(--ui-lt-scroll-width);\n background-color: transparent;\n}\n.fu-select-x_list[data-v-41007e18] ::-webkit-scrollbar-corner {\n background-color: transparent !important;\n border: 0 none !important;\n box-shadow: none !important;\n}\n.fu-select-x_list[data-v-41007e18]:focus::-webkit-scrollbar-thumb, .fu-select-x_list[data-v-41007e18]:hover::-webkit-scrollbar-thumb {\n background-color: var(--ui-pal);\n}\n.fu-select-x_list-item[data-v-41007e18] {\n padding: var(--lt-sp100) var(--lt-sp300);\n font-size: var(--typo-h200);\n line-height: var(--typo-lh300);\n border: 0 none;\n text-decoration: none;\n border-radius: 0;\n justify-content: left;\n text-align: left;\n font-weight: inherit;\n background: transparent;\n outline: none;\n}\n.fu-select-x_list-item[data-v-41007e18]:hover {\n background-color: var(--ui-pal-lateral);\n color: var(--ui-pal-text);\n}\n.fu-select-x_list-item._selected[data-v-41007e18] {\n color: var(--ui-pal-acc);\n background-color: var(--ui-pal);\n}\n.fu-select-x_list-item[data-v-41007e18]:focus {\n color: var(--ui-pal-acc);\n background-color: var(--ui-pal);\n}\n.fu-select-x:focus-within .fu-select-x_list[data-v-41007e18] {\n display: flex;\n}\n.fu-select-x[data-v-41007e18]:hover {\n outline: none;\n box-shadow: 0 5px 12px -4px rgb(var(--rgb-dark), 0.2);\n}\n.fu-select-x[data-v-41007e18]:focus-within {\n outline: none;\n box-shadow: 0 0 0 0 var(--ui-pal);\n border-color: var(--ui-pal);\n}\n.fu-select-x._disabled[data-v-41007e18] {\n border: var(--ui-lt-border-width) var(--ui-lt-disabled-border-style) var(--ui-pal-disabled-border);\n background: transparent;\n box-shadow: none;\n}";
498
- styleInject(css_248z$5);script$3.render = render$3;
499
- script$3.__scopeId = "data-v-41007e18";var script$2 = /*#__PURE__*/vue.defineComponent({
500
- name: 'FuSidebar',
501
- emits: [ 'close' ],
502
- components: { FuButton: script$a },
503
- props: {
504
- isOpen: { type: Boolean, default: false },
505
- side: { type: String, default: 'left' },
506
- },
507
- });const _hoisted_1$2 = {
508
- key: 0,
509
- class: "fu-sidebar_content"
510
- };
511
-
512
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
513
- return (vue.openBlock(), vue.createElementBlock("div", {
514
- class: vue.normalizeClass(["fu-sidebar", {'_shown':_ctx.isOpen}]),
515
- onClick: _cache[0] || (_cache[0] = vue.withModifiers($event => (_ctx.$emit('close')), ["self"]))
516
- }, [
517
- vue.createVNode(vue.Transition, { name: "bounce" }, {
518
- default: vue.withCtx(() => [
519
- (_ctx.isOpen)
520
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, [
521
- vue.renderSlot(_ctx.$slots, "default")
522
- ]))
523
- : vue.createCommentVNode("", true)
524
- ]),
525
- _: 3
526
- })
527
- ], 2))
528
- }var css_248z$4 = ":root {\n --ui-sidebar-max-w: 45vw;\n --ui-sidebar-min-w: 25vw;\n}\n@media (max-width: 812px) {\n:root {\n --ui-sidebar-max-w: 100vw;\n --ui-sidebar-min-w: 90vw;\n}\n}";
529
- styleInject(css_248z$4);var css_248z$3 = ".fu-sidebar[data-v-99745aba] {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: var(--lt-z-nav);\n background-color: transparent;\n transition-timing-function: linear;\n transition-duration: 600ms;\n transition-property: background-color, visibility;\n pointer-events: none;\n visibility: hidden;\n}\n.fu-sidebar._shown[data-v-99745aba] {\n background: var(--pal-overlay);\n visibility: visible;\n pointer-events: unset;\n}\n.fu-sidebar_content[data-v-99745aba] {\n overflow: auto;\n position: absolute;\n left: auto;\n top: 0;\n right: 0;\n bottom: 0;\n background: var(--pal-bg);\n max-width: var(--ui-sidebar-max-w);\n min-width: var(--ui-sidebar-min-w);\n transform-origin: 100% 50%;\n}\n.fu-sidebar_content[data-v-99745aba]::-webkit-scrollbar-track {\n background-color: var(--ui-pal-bg);\n}\n.fu-sidebar_content[data-v-99745aba]::-webkit-scrollbar {\n width: var(--ui-lt-scroll-width);\n height: var(--ui-lt-scroll-width);\n border-radius: var(--ui-lt-scroll-width);\n background-color: var(--ui-pal-bg);\n}\n.fu-sidebar_content[data-v-99745aba]::-webkit-scrollbar-thumb {\n border: 1px solid var(--ui-pal-bg);\n border-radius: var(--ui-lt-scroll-width);\n background-color: transparent;\n}\n.fu-sidebar_content[data-v-99745aba] ::-webkit-scrollbar-corner {\n background-color: transparent !important;\n border: 0 none !important;\n box-shadow: none !important;\n}\n.fu-sidebar_content[data-v-99745aba]:focus::-webkit-scrollbar-thumb, .fu-sidebar_content[data-v-99745aba]:hover::-webkit-scrollbar-thumb {\n background-color: var(--ui-pal);\n}\n.bounce-enter-active[data-v-99745aba] {\n animation: slide-right-99745aba 200ms;\n}\n.bounce-leave-active[data-v-99745aba] {\n animation: slide-right-99745aba 200ms reverse;\n}\n@keyframes slide-right-99745aba {\n0% {\n transform: translateX(100%) scaleX(1);\n}\n100% {\n transform: translateX(0);\n}\n}";
530
- styleInject(css_248z$3);script$2.render = render$2;
531
- script$2.__scopeId = "data-v-99745aba";var script$1 = /*#__PURE__*/vue.defineComponent({
532
- name: 'fu-textarea',
533
- props: {
534
- modelValue: {
535
- type: [ String, Number ],
536
- default: '',
537
- },
538
- autoResize: { type: Boolean, default: false },
539
- },
540
- emits: [ 'update:modelValue' ],
541
- setup (props, { emit }) {
542
- const textarea = vue.ref(null);
543
- const handleInput = async (e) => {
544
- emit('update:modelValue', e.target.value);
545
- resize(e.target);
546
- };
547
- const resize = (elm) => {
548
- if (!props.autoResize) return
549
- elm.style.height = 'auto';
550
- elm.style.height = `${ elm.scrollHeight }px`;
551
- };
552
- vue.onMounted(() => resize(textarea.value));
553
-
554
- return { handleInput, textarea }
555
- },
556
- });const _hoisted_1$1 = ["value"];
557
-
558
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
559
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "fu-text" }, { class: _ctx.$attrs.class }, {
560
- class: {'_disabled': _ctx.$attrs.disabled !== undefined || _ctx.$attrs.readOnly !== undefined }
561
- }), [
562
- vue.createElementVNode("textarea", vue.mergeProps({ ref: "textarea" }, {..._ctx.$attrs, class: undefined}, {
563
- value: _ctx.modelValue,
564
- class: "fu-text_textarea",
565
- onInput: _cache[0] || (_cache[0] = (...args) => (_ctx.handleInput && _ctx.handleInput(...args)))
566
- }), null, 16, _hoisted_1$1)
567
- ], 16))
568
- }var css_248z$2 = ":root {\n --ui-textarea-resize: vertical;\n}";
569
- styleInject(css_248z$2);var css_248z$1 = ".fu-text[data-v-6ce8c220] {\n font-size: var(--typo-h200);\n padding: 0;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: stretch;\n border-style: var(--ui-lt-border-style);\n border-width: var(--ui-lt-border-width);\n border-color: var(--ui-pal-lateral);\n border-radius: var(--ui-lt-border-radius);\n transition-duration: 240ms;\n transition-timing-function: ease-in-out;\n transition-property: border-color, box-shadow;\n min-height: var(--ui-lt-h);\n}\n.fu-text_textarea[data-v-6ce8c220] {\n font-size: var(--typo-h200);\n padding: var(--lt-sp200);\n margin: var(--lt-sp100);\n color: var(--ui-pal-text);\n caret-color: var(--ui-pal);\n border: none;\n outline: none;\n background: transparent;\n box-sizing: border-box;\n flex: 1;\n display: block;\n min-width: 0;\n resize: var(--ui-textarea-resize);\n min-height: var(--ui-lt-h);\n height: var(--ui-lt-h);\n}\n.fu-text_textarea[data-v-6ce8c220]::-webkit-scrollbar-track {\n background-color: var(--ui-pal-bg);\n}\n.fu-text_textarea[data-v-6ce8c220]::-webkit-scrollbar {\n width: var(--ui-lt-scroll-width);\n height: var(--ui-lt-scroll-width);\n border-radius: var(--ui-lt-scroll-width);\n background-color: var(--ui-pal-bg);\n}\n.fu-text_textarea[data-v-6ce8c220]::-webkit-scrollbar-thumb {\n border: 1px solid var(--ui-pal-bg);\n border-radius: var(--ui-lt-scroll-width);\n background-color: transparent;\n}\n.fu-text_textarea[data-v-6ce8c220] ::-webkit-scrollbar-corner {\n background-color: transparent !important;\n border: 0 none !important;\n box-shadow: none !important;\n}\n.fu-text_textarea[data-v-6ce8c220]:focus::-webkit-scrollbar-thumb, .fu-text_textarea[data-v-6ce8c220]:hover::-webkit-scrollbar-thumb {\n background-color: var(--ui-pal);\n}\n.fu-text_textarea[data-v-6ce8c220]::selection {\n background-color: var(--ui-pal);\n color: var(--ui-pal-text-select);\n}\n.fu-text_textarea[disabled][data-v-6ce8c220], .fu-text_textarea[read-only][data-v-6ce8c220] {\n cursor: text;\n color: var(--ui-pal-disabled-border);\n}\n.fu-text[data-v-6ce8c220]:hover {\n outline: none;\n box-shadow: 0 5px 12px -4px rgb(var(--rgb-dark), 0.2);\n}\n.fu-text[data-v-6ce8c220]:focus-within {\n outline: none;\n box-shadow: 0 0 0 0 var(--ui-pal);\n border-color: var(--ui-pal);\n}\n.fu-text._disabled[data-v-6ce8c220] {\n border: var(--ui-lt-border-width) var(--ui-lt-disabled-border-style) var(--ui-pal-disabled-border);\n background: transparent;\n box-shadow: none;\n}";
570
- styleInject(css_248z$1);script$1.render = render$1;
571
- script$1.__scopeId = "data-v-6ce8c220";var script = /*#__PURE__*/vue.defineComponent({
572
- name: 'fu-check',
573
- props: {
574
- modelValue: { type: [ Boolean ], default: false },
575
- switchLike: { type: Boolean, default: false },
576
- },
577
- emits: [ 'update:modelValue' ],
578
- });const _hoisted_1 = ["checked"];
579
-
580
- function render(_ctx, _cache, $props, $setup, $data, $options) {
581
- return (vue.openBlock(), vue.createElementBlock("label", vue.mergeProps({
582
- class: ["fu-check", {'_disabled': _ctx.$attrs.disabled !== undefined, '_checked': _ctx.modelValue }]
583
- }, { class: _ctx.$attrs.class, style: _ctx.$attrs.style }), [
584
- vue.createElementVNode("input", vue.mergeProps({..._ctx.$attrs, class: undefined, style: undefined, type: 'checkbox'}, {
585
- class: "fu-check_input",
586
- onInput: _cache[0] || (_cache[0] = $event => (_ctx.$emit('update:modelValue', $event.target.checked))),
587
- checked: _ctx.modelValue
588
- }), null, 16, _hoisted_1),
589
- vue.createElementVNode("span", {
590
- class: vue.normalizeClass(["fu-check_box", _ctx.switchLike ? 'fu-check_switch' : 'fu-check_check'])
591
- }, null, 2),
592
- vue.renderSlot(_ctx.$slots, "default")
593
- ], 16))
594
- }var css_248z = ".fu-check[data-v-383402a2] {\n font-size: var(--typo-h200);\n user-select: none;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: stretch;\n height: var(--ui-lt-h);\n position: relative;\n outline: none;\n color: var(--pal-text-dimm);\n}\n.fu-check_input[data-v-383402a2] {\n opacity: 0;\n}\n.fu-check_check[data-v-383402a2] {\n border-style: var(--ui-lt-border-style);\n border-width: var(--ui-lt-border-width);\n border-color: var(--ui-pal-lateral);\n height: var(--ui-lt-h-sub);\n width: var(--ui-lt-h-sub);\n border-radius: var(--ui-lt-border-radius);\n display: flex;\n justify-content: stretch;\n align-items: stretch;\n margin-right: var(--lt-sp200);\n}\n.fu-check_check[data-v-383402a2]:before {\n content: \"\";\n display: block;\n background-color: var(--ui-pal);\n border-radius: calc(var(--ui-lt-border-radius) - var(--lt-sp100));\n margin: var(--lt-sp100);\n flex: 1;\n transform: scale(0);\n transition: all var(--ui-transition);\n}\n.fu-check_switch[data-v-383402a2] {\n border-style: var(--ui-lt-border-style);\n border-width: var(--ui-lt-border-width);\n border-color: var(--ui-pal-lateral);\n height: var(--ui-lt-h-sub);\n width: calc(var(--ui-lt-h-sub) * 2);\n border-radius: var(--ui-lt-h-sub);\n margin-right: var(--lt-sp200);\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding: var(--lt-sp100);\n}\n.fu-check_switch[data-v-383402a2]:before {\n content: \"\";\n display: block;\n background-color: var(--ui-pal-lateral);\n border-radius: calc(var(--ui-lt-h-sub) - var(--lt-sp100));\n height: 100%;\n aspect-ratio: 1;\n transition: all var(--ui-transition);\n}\n.fu-check._checked .fu-check_switch[data-v-383402a2]:before {\n transform: translateX(var(--ui-lt-h-sub));\n background-color: var(--ui-pal);\n}\n.fu-check._checked[data-v-383402a2] {\n color: var(--pal-text);\n}\n.fu-check._checked .fu-check_check[data-v-383402a2]:before {\n transform: scale(1);\n}\n.fu-check:hover .fu-check_box[data-v-383402a2] {\n box-shadow: 0 5px 12px -4px rgb(var(--rgb-dark), 0.2);\n}\n.fu-check[data-v-383402a2]:hover {\n color: var(--pal-text);\n}\n.fu-check:focus-within .fu-check_box[data-v-383402a2] {\n border-color: var(--ui-pal);\n}\n.fu-check._disabled[data-v-383402a2] {\n color: var(--ui-pal-disabled-border);\n cursor: not-allowed;\n}\n.fu-check._disabled .fu-check_box[data-v-383402a2] {\n border: var(--ui-lt-border-width) var(--ui-lt-disabled-border-style) var(--ui-pal-disabled-border);\n box-shadow: none;\n}";
595
- styleInject(css_248z);script.render = render;
596
- script.__scopeId = "data-v-383402a2";/* eslint-disable import/prefer-default-export */var components$1=/*#__PURE__*/Object.freeze({__proto__:null,FuButton:script$a,FuButtonLink:script$9,FuCodeView:script$8,FuCopy:script$7,FuProgressRadial:script$6,FuSelect:script$5,FuSelectX:script$3,FuSidebar:script$2,FuText:script$4,FuTextarea:script$1,FuCheck:script});// Import vue components
597
-
598
- // install function executed by Vue.use()
599
- const install = function installFuKit (app) {
600
- Object.entries(components$1).forEach(([ componentName, component ]) => {
601
- app.component(componentName, component);
602
- });
603
- };var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,FuButton:script$a,FuButtonLink:script$9,FuCodeView:script$8,FuCopy:script$7,FuProgressRadial:script$6,FuSelect:script$5,FuSelectX:script$3,FuSidebar:script$2,FuText:script$4,FuTextarea:script$1,FuCheck:script});// iife/cjs usage extends esm default export - so import it all
604
-
605
- // Attach named exports directly to plugin. IIFE/CJS will
606
- // only expose one global var, with component exports exposed as properties of
607
- // that global var (eg. plugin.component)
608
- Object.entries(components).forEach(([componentName, component]) => {
609
- if (componentName !== 'default') {
610
- install[componentName] = component;
611
- }
612
- });module.exports=install;