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,720 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, ref, toRaw, resolveComponent, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, onBeforeUnmount, createElementVNode, normalizeStyle, watch, computed, nextTick, withDirectives, vModelText, Fragment, renderList, normalizeClass, vShow, withModifiers, createVNode, Transition, onMounted } from 'vue';
2
-
3
- console.log('ui-button!');
4
-
5
- var script$a = /*#__PURE__*/defineComponent({
6
- name: 'fu-button',
7
- props: {
8
- hollow: { type: Boolean, default: false },
9
- },
10
- setup (props) {
11
- const mUp = (e) => e.target.blur();
12
- return { hollow: props.hollow, mUp }
13
- },
14
- });
15
-
16
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
17
- return (openBlock(), createElementBlock("button", mergeProps({
18
- ..._ctx.$attrs,
19
- type: _ctx.$attrs.type || 'button',
20
- class: 'fu-button' + (_ctx.hollow ? ' _hollow' : ''),
21
- }, {
22
- onMouseup: _cache[0] || (_cache[0] = (...args) => (_ctx.mUp && _ctx.mUp(...args)))
23
- }), [
24
- renderSlot(_ctx.$slots, "default")
25
- ], 16))
26
- }
27
-
28
- function styleInject(css, ref) {
29
- if ( ref === void 0 ) ref = {};
30
- var insertAt = ref.insertAt;
31
-
32
- if (!css || typeof document === 'undefined') { return; }
33
-
34
- var head = document.head || document.getElementsByTagName('head')[0];
35
- var style = document.createElement('style');
36
- style.type = 'text/css';
37
-
38
- if (insertAt === 'top') {
39
- if (head.firstChild) {
40
- head.insertBefore(style, head.firstChild);
41
- } else {
42
- head.appendChild(style);
43
- }
44
- } else {
45
- head.appendChild(style);
46
- }
47
-
48
- if (style.styleSheet) {
49
- style.styleSheet.cssText = css;
50
- } else {
51
- style.appendChild(document.createTextNode(css));
52
- }
53
- }
54
-
55
- 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}";
56
- styleInject(css_248z$d);
57
-
58
- script$a.render = render$a;
59
- script$a.__scopeId = "data-v-0c2f6810";
60
-
61
- var script$9 = /*#__PURE__*/defineComponent({
62
- name: 'fu-button-link',
63
- props: {
64
- hollow: { type: Boolean, default: false },
65
- },
66
- setup (props) {
67
- const mUp = (e) => e.target.blur();
68
- return { hollow: props.hollow, mUp }
69
- },
70
- });
71
-
72
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
73
- return (openBlock(), createElementBlock("button", mergeProps({
74
- ..._ctx.$attrs,
75
- type: _ctx.$attrs.type || 'button',
76
- class: 'fu-button-link',
77
- }, {
78
- onMouseup: _cache[0] || (_cache[0] = (...args) => (_ctx.mUp && _ctx.mUp(...args)))
79
- }), [
80
- renderSlot(_ctx.$slots, "default")
81
- ], 16))
82
- }
83
-
84
- 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}";
85
- styleInject(css_248z$c);
86
-
87
- 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}";
88
- styleInject(css_248z$b);
89
-
90
- script$9.render = render$9;
91
- script$9.__scopeId = "data-v-70f7c8d4";
92
-
93
- var script$8 = /*#__PURE__*/defineComponent({
94
- name: 'fu-code-view',
95
- components: { FuButtonLink: script$9 },
96
- props: {
97
- label: { type: String, default: '' },
98
- collapse: { type: Boolean, default: null },
99
- },
100
- setup (props) {
101
- const collapse = ref(toRaw(props.collapse));
102
- const isShown = ref(false);
103
- const label = props.label;
104
- return { isShown, label, collapse }
105
- },
106
- });
107
-
108
- const _hoisted_1$7 = { class: "fu-code-view" };
109
- const _hoisted_2$2 = {
110
- key: 1,
111
- class: "fu-code-view_title"
112
- };
113
- const _hoisted_3$1 = {
114
- key: 2,
115
- class: "fu-code-view_pre"
116
- };
117
-
118
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
119
- const _component_fu_button_link = resolveComponent("fu-button-link");
120
-
121
- return (openBlock(), createElementBlock("div", _hoisted_1$7, [
122
- (_ctx.collapse)
123
- ? (openBlock(), createBlock(_component_fu_button_link, {
124
- key: 0,
125
- class: "fu-code-view_toggle",
126
- onClick: _cache[0] || (_cache[0] = $event => (_ctx.isShown = !_ctx.isShown))
127
- }, {
128
- default: withCtx(() => [
129
- createTextVNode(toDisplayString(_ctx.isShown ? 'Hide' : 'Show') + " " + toDisplayString(_ctx.label), 1)
130
- ]),
131
- _: 1
132
- }))
133
- : (_ctx.label)
134
- ? (openBlock(), createElementBlock("p", _hoisted_2$2, toDisplayString(_ctx.label), 1))
135
- : createCommentVNode("", true),
136
- (_ctx.collapse ? _ctx.isShown : true)
137
- ? (openBlock(), createElementBlock("pre", _hoisted_3$1, [
138
- renderSlot(_ctx.$slots, "default")
139
- ]))
140
- : createCommentVNode("", true)
141
- ]))
142
- }
143
-
144
- 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}";
145
- styleInject(css_248z$a);
146
-
147
- script$8.render = render$8;
148
- script$8.__scopeId = "data-v-547d9872";
149
-
150
- var script$7 = /*#__PURE__*/defineComponent({
151
- name: 'fu-copy',
152
- components: { FuButton: script$a },
153
- props: {
154
- value: { type: String, required: true },
155
- },
156
- setup (props) {
157
- const isCopied = ref(false);
158
- let timeout;
159
-
160
- onBeforeUnmount(() => {
161
- if (timeout) clearTimeout(timeout);
162
- });
163
-
164
- const handleCopyToClipboard = (event) => {
165
- if (navigator.clipboard) {
166
- navigator.clipboard.writeText(props.value);
167
- } else {
168
- execCopy();
169
- }
170
-
171
- isCopied.value = false;
172
- requestAnimationFrame(() => (isCopied.value = true));
173
-
174
- if (timeout) clearTimeout(timeout);
175
- timeout = setTimeout(() => isCopied.value = false, 1000);
176
-
177
- event.target.blur();
178
- };
179
-
180
- // fallback
181
- const execCopy = () => {
182
- const textArea = document.createElement('textarea');
183
- textArea.value = props.value;
184
- textArea.setAttribute('readonly', '');
185
- textArea.style.position = 'absolute';
186
- textArea.style.left = '-9999px';
187
- document.body.appendChild(textArea);
188
- textArea.select();
189
-
190
- try {
191
- document.execCommand('copy');
192
- } catch (err) {
193
- console.error(err);
194
- } finally {
195
- document.body.removeChild(textArea);
196
- }
197
- };
198
-
199
- return {
200
- handleCopyToClipboard,
201
- isCopied,
202
- }
203
- },
204
- });
205
-
206
- function render$7(_ctx, _cache, $props, $setup, $data, $options) {
207
- const _component_fu_button = resolveComponent("fu-button");
208
-
209
- return (openBlock(), createBlock(_component_fu_button, mergeProps(_ctx.$attrs, {
210
- hollow: "",
211
- class: ["fu-copy", {'_hot': _ctx.isCopied}],
212
- onClick: _ctx.handleCopyToClipboard
213
- }), {
214
- default: withCtx(() => [
215
- renderSlot(_ctx.$slots, "default")
216
- ]),
217
- _: 3
218
- }, 16, ["onClick", "class"]))
219
- }
220
-
221
- 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}";
222
- styleInject(css_248z$9);
223
-
224
- script$7.render = render$7;
225
- script$7.__scopeId = "data-v-9343fa28";
226
-
227
- var script$6 = /*#__PURE__*/defineComponent({
228
- name: 'fu-progress-radial',
229
- props: {
230
- /**
231
- * Value must be between 0 and 1 (otherwise will be normalized automatically)
232
- */
233
- value: { type: Number, default: 0 },
234
- },
235
- data () {
236
- return {
237
- r: 50, r2: 100,
238
- }
239
- },
240
- computed: {
241
- normalizeValue () {
242
- if (this.value > 1) return 1
243
- if (this.value < 0) return 0
244
- return this.value
245
- },
246
- dasharray () {
247
- return Math.PI * this.r2
248
- },
249
- valueStyle () {
250
- return {
251
- 'stroke-dasharray': this.dasharray,
252
- 'stroke-dashoffset': this.dasharray * (1 - this.normalizeValue),
253
- }
254
- },
255
- },
256
- methods: {
257
- hasSlot (slot) {
258
- return !!this.$slots[slot]
259
- },
260
- },
261
- });
262
-
263
- const _hoisted_1$6 = { class: "fu-progress-radial" };
264
- const _hoisted_2$1 = { class: "fu-progress-radial__svg-wrap" };
265
- const _hoisted_3 = ["viewBox", "width", "height"];
266
- const _hoisted_4 = ["cx", "cy", "r"];
267
- const _hoisted_5 = ["cx", "cy", "r"];
268
- const _hoisted_6 = {
269
- key: 0,
270
- class: "fu-progress-radial__slot"
271
- };
272
-
273
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
274
- return (openBlock(), createElementBlock("div", _hoisted_1$6, [
275
- createElementVNode("div", _hoisted_2$1, [
276
- (openBlock(), createElementBlock("svg", {
277
- class: "fu-progress-radial__svg",
278
- viewBox: `0 0 ${_ctx.r2} ${_ctx.r2}`,
279
- width: _ctx.r2,
280
- height: _ctx.r2
281
- }, [
282
- createElementVNode("circle", {
283
- class: "fu-progress-radial__svg-bg",
284
- cx: _ctx.r,
285
- cy: _ctx.r,
286
- r: _ctx.r
287
- }, null, 8, _hoisted_4),
288
- createElementVNode("circle", {
289
- class: "fu-progress-radial__svg-value",
290
- cx: _ctx.r,
291
- cy: _ctx.r,
292
- r: _ctx.r,
293
- style: normalizeStyle(_ctx.valueStyle)
294
- }, null, 12, _hoisted_5)
295
- ], 8, _hoisted_3))
296
- ]),
297
- (_ctx.hasSlot('default'))
298
- ? (openBlock(), createElementBlock("span", _hoisted_6, [
299
- renderSlot(_ctx.$slots, "default")
300
- ]))
301
- : createCommentVNode("", true)
302
- ]))
303
- }
304
-
305
- 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}";
306
- styleInject(css_248z$8);
307
-
308
- script$6.render = render$6;
309
- script$6.__scopeId = "data-v-216c1c15";
310
-
311
- var script$5 = /*#__PURE__*/defineComponent({
312
- name: 'fu-select',
313
- props: {
314
- modelValue: {
315
- type: [ String, Number ],
316
- default: '',
317
- },
318
- },
319
- emits: [ 'update:modelValue' ],
320
- });
321
-
322
- const _hoisted_1$5 = ["value"];
323
-
324
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
325
- return (openBlock(), createElementBlock("label", mergeProps({ class: "fu-select" }, { class: _ctx.$attrs.class }), [
326
- createElementVNode("select", mergeProps({ class: "fu-select_select" }, { ..._ctx.$attrs, class: undefined }, {
327
- value: _ctx.modelValue,
328
- onInput: _cache[0] || (_cache[0] = $event => (_ctx.$emit('update:modelValue', $event.target.value)))
329
- }), [
330
- renderSlot(_ctx.$slots, "default")
331
- ], 16, _hoisted_1$5)
332
- ], 16))
333
- }
334
-
335
- 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}";
336
- styleInject(css_248z$7);
337
-
338
- script$5.render = render$5;
339
- script$5.__scopeId = "data-v-4ad4f0cf";
340
-
341
- var script$4 = /*#__PURE__*/defineComponent({
342
- name: 'fu-text',
343
- props: {
344
- modelValue: {
345
- type: [ String, Number ],
346
- default: '',
347
- },
348
- },
349
- emits: [ 'update:modelValue' ],
350
- });
351
-
352
- const _hoisted_1$4 = ["value"];
353
-
354
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
355
- return (openBlock(), createElementBlock("div", mergeProps({
356
- class: ["fu-text", {'_disabled': _ctx.$attrs.disabled !== undefined || _ctx.$attrs.readOnly !== undefined }]
357
- }, { class: _ctx.$attrs.class }), [
358
- renderSlot(_ctx.$slots, "default"),
359
- renderSlot(_ctx.$slots, "left"),
360
- createElementVNode("input", mergeProps({..._ctx.$attrs, class: undefined}, {
361
- value: _ctx.modelValue,
362
- class: "fu-text_input",
363
- onInput: _cache[0] || (_cache[0] = $event => (_ctx.$emit('update:modelValue', $event.target.value)))
364
- }), null, 16, _hoisted_1$4),
365
- renderSlot(_ctx.$slots, "right")
366
- ], 16))
367
- }
368
-
369
- 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}";
370
- styleInject(css_248z$6);
371
-
372
- script$4.render = render$4;
373
- script$4.__scopeId = "data-v-4848d3cf";
374
-
375
- var script$3 = /*#__PURE__*/defineComponent({
376
- name: 'fu-select-x',
377
- components: { FuButton: script$a, UiText: script$4 },
378
- props: {
379
- modelValue: { type: [ String, Number ], default: '' },
380
- options: { type: Array, default: [] },
381
- allowCustom: { type: Boolean, default: false },
382
- },
383
- emits: [ 'update:modelValue', 'select' ],
384
- setup (props, { emit }) {
385
- const refSearch = ref(null);
386
- const refList = ref(null);
387
- const search = ref('');
388
- const model = ref(props.modelValue);
389
-
390
- watch(() => props.modelValue, (value) => {
391
- model.value = value;
392
- search.value = value;
393
- });
394
-
395
- const normalItems = computed(() => {
396
- return props.options.map(o => {
397
- if (typeof o === 'object' && o !== null && !Array.isArray(o)) {
398
- return o
399
- } else {
400
- return { value: o, label: o }
401
- }
402
- })
403
- });
404
-
405
- const filteredItems = computed(() => {
406
- if (!search.value || search.value === model.value) return normalItems.value
407
- return normalItems.value.filter((i) => String(i.label).includes(search.value))
408
- });
409
-
410
- const selectedItem = computed(() => normalItems.value.find(o => model.value === o.value));
411
-
412
- const onSelect = (event, item) => {
413
- search.value = item.value;
414
- model.value = item.value;
415
- emit('update:modelValue', model.value);
416
- emit('select', model.value);
417
-
418
- event.target.blur();
419
- };
420
-
421
- const onTextFocus = async (e) => {
422
- search.value = model.value;
423
- await nextTick();
424
- e.target.setSelectionRange(0, -1);
425
- };
426
-
427
- const onTextKeydown = (e) => {
428
- if (![ 'ArrowDown', 'ArrowUp', 'Enter', 'Escape' ].includes(e.key)) return
429
-
430
- if (e.key === 'Escape') return document.activeElement.blur()
431
-
432
- const nodes = Array.prototype.slice.call(refList.value.children);
433
-
434
- if (e.key === 'Enter') {
435
- if (nodes[0]) {
436
- nodes[0].click();
437
- } else if (props.allowCustom) {
438
- onSelect(e, { label: search.value, value: search.value });
439
- }
440
-
441
- e.preventDefault();
442
- e.target.blur();
443
-
444
- return
445
- }
446
-
447
- if (!nodes.length) return
448
-
449
- switch (e.key) {
450
- case 'ArrowDown':
451
- e.preventDefault();
452
- nodes[0].focus();
453
- break
454
- case 'ArrowUp':
455
- e.preventDefault();
456
- nodes[nodes.length - 1].focus();
457
- break
458
- }
459
-
460
- e.preventDefault();
461
- };
462
-
463
- const onArrows = (e) => {
464
- if (![ 'ArrowDown', 'ArrowUp', 'Escape' ].includes(e.key)) return
465
-
466
- if (e.key === 'Escape') return document.activeElement.blur()
467
-
468
- if (refList.value !== document.activeElement.parentElement) return
469
-
470
- switch (e.key) {
471
- case 'ArrowDown':
472
- e.preventDefault();
473
- focusJump(+1);
474
- break
475
- case 'ArrowUp':
476
- e.preventDefault();
477
- focusJump(-1);
478
- break
479
- }
480
- };
481
-
482
- const focusJump = (next = -1) => {
483
- const foElm = document.activeElement.parentElement;
484
- if (foElm !== refList.value && foElm === refSearch.value) return
485
-
486
- const nodes = Array.prototype.slice.call(refList.value.children);
487
- const liRef = document.activeElement;
488
- const fi = nodes.indexOf(liRef);
489
-
490
-
491
- if (next > 0) {
492
- if (fi === nodes.length - 1) return nodes[0].focus()
493
- if (nodes[fi + 1]) nodes[fi + 1].focus();
494
- } else if (next < 0) {
495
- if (fi === 0) return nodes[nodes.length - 1].focus()
496
- if (nodes[fi - 1]) nodes[fi - 1].focus();
497
- }
498
- };
499
-
500
- const onSomeBlur = async (e) => {
501
- await nextTick(); // todo: investigate why it's required
502
- if (
503
- refSearch.value !== document.activeElement &&
504
- refList.value !== document.activeElement.parentElement
505
- ) {
506
- search.value = model.value;
507
- }
508
- };
509
-
510
- return {
511
- refSearch,
512
- refList,
513
- search,
514
- model,
515
- filteredItems,
516
- selectedItem,
517
- onTextKeydown,
518
- onArrows,
519
- onSelect,
520
- onTextFocus,
521
- onSomeBlur,
522
- }
523
- },
524
- });
525
-
526
- const _hoisted_1$3 = ["placeholder"];
527
- const _hoisted_2 = ["onClick"];
528
-
529
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
530
- return (openBlock(), createElementBlock("label", mergeProps({ class: "fu-select-x" }, _ctx.$attrs), [
531
- withDirectives(createElementVNode("input", {
532
- tabindex: "0",
533
- class: "fu-select-x_input",
534
- ref: "refSearch",
535
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.search) = $event)),
536
- placeholder: _ctx.model,
537
- onKeydown: _cache[1] || (_cache[1] = (...args) => (_ctx.onTextKeydown && _ctx.onTextKeydown(...args))),
538
- onFocus: _cache[2] || (_cache[2] = (...args) => (_ctx.onTextFocus && _ctx.onTextFocus(...args))),
539
- onBlur: _cache[3] || (_cache[3] = (...args) => (_ctx.onSomeBlur && _ctx.onSomeBlur(...args))),
540
- spellcheck: "false"
541
- }, null, 40, _hoisted_1$3), [
542
- [vModelText, _ctx.search]
543
- ]),
544
- withDirectives(createElementVNode("span", {
545
- class: "fu-select-x_list",
546
- ref: "refList",
547
- onKeydown: _cache[5] || (_cache[5] = (...args) => (_ctx.onArrows && _ctx.onArrows(...args)))
548
- }, [
549
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filteredItems, (e) => {
550
- return (openBlock(), createElementBlock("button", {
551
- class: normalizeClass(["fu-select-x_list-item", {'_selected': e.value === _ctx.model}]),
552
- tabindex: "-1",
553
- onClick: $event => (_ctx.onSelect($event,e)),
554
- onBlur: _cache[4] || (_cache[4] = (...args) => (_ctx.onSomeBlur && _ctx.onSomeBlur(...args)))
555
- }, toDisplayString(e.label), 43, _hoisted_2))
556
- }), 256))
557
- ], 544), [
558
- [vShow, _ctx.filteredItems.length]
559
- ])
560
- ], 16))
561
- }
562
-
563
- 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}";
564
- styleInject(css_248z$5);
565
-
566
- script$3.render = render$3;
567
- script$3.__scopeId = "data-v-41007e18";
568
-
569
- var script$2 = /*#__PURE__*/defineComponent({
570
- name: 'FuSidebar',
571
- emits: [ 'close' ],
572
- components: { FuButton: script$a },
573
- props: {
574
- isOpen: { type: Boolean, default: false },
575
- side: { type: String, default: 'left' },
576
- },
577
- });
578
-
579
- const _hoisted_1$2 = {
580
- key: 0,
581
- class: "fu-sidebar_content"
582
- };
583
-
584
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
585
- return (openBlock(), createElementBlock("div", {
586
- class: normalizeClass(["fu-sidebar", {'_shown':_ctx.isOpen}]),
587
- onClick: _cache[0] || (_cache[0] = withModifiers($event => (_ctx.$emit('close')), ["self"]))
588
- }, [
589
- createVNode(Transition, { name: "bounce" }, {
590
- default: withCtx(() => [
591
- (_ctx.isOpen)
592
- ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
593
- renderSlot(_ctx.$slots, "default")
594
- ]))
595
- : createCommentVNode("", true)
596
- ]),
597
- _: 3
598
- })
599
- ], 2))
600
- }
601
-
602
- 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}";
603
- styleInject(css_248z$4);
604
-
605
- 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}";
606
- styleInject(css_248z$3);
607
-
608
- script$2.render = render$2;
609
- script$2.__scopeId = "data-v-99745aba";
610
-
611
- var script$1 = /*#__PURE__*/defineComponent({
612
- name: 'fu-textarea',
613
- props: {
614
- modelValue: {
615
- type: [ String, Number ],
616
- default: '',
617
- },
618
- autoResize: { type: Boolean, default: false },
619
- },
620
- emits: [ 'update:modelValue' ],
621
- setup (props, { emit }) {
622
- const textarea = ref(null);
623
- const handleInput = async (e) => {
624
- emit('update:modelValue', e.target.value);
625
- resize(e.target);
626
- };
627
- const resize = (elm) => {
628
- if (!props.autoResize) return
629
- elm.style.height = 'auto';
630
- elm.style.height = `${ elm.scrollHeight }px`;
631
- };
632
- onMounted(() => resize(textarea.value));
633
-
634
- return { handleInput, textarea }
635
- },
636
- });
637
-
638
- const _hoisted_1$1 = ["value"];
639
-
640
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
641
- return (openBlock(), createElementBlock("div", mergeProps({ class: "fu-text" }, { class: _ctx.$attrs.class }, {
642
- class: {'_disabled': _ctx.$attrs.disabled !== undefined || _ctx.$attrs.readOnly !== undefined }
643
- }), [
644
- createElementVNode("textarea", mergeProps({ ref: "textarea" }, {..._ctx.$attrs, class: undefined}, {
645
- value: _ctx.modelValue,
646
- class: "fu-text_textarea",
647
- onInput: _cache[0] || (_cache[0] = (...args) => (_ctx.handleInput && _ctx.handleInput(...args)))
648
- }), null, 16, _hoisted_1$1)
649
- ], 16))
650
- }
651
-
652
- var css_248z$2 = ":root {\n --ui-textarea-resize: vertical;\n}";
653
- styleInject(css_248z$2);
654
-
655
- 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}";
656
- styleInject(css_248z$1);
657
-
658
- script$1.render = render$1;
659
- script$1.__scopeId = "data-v-6ce8c220";
660
-
661
- var script = /*#__PURE__*/defineComponent({
662
- name: 'fu-check',
663
- props: {
664
- modelValue: { type: [ Boolean ], default: false },
665
- switchLike: { type: Boolean, default: false },
666
- },
667
- emits: [ 'update:modelValue' ],
668
- });
669
-
670
- const _hoisted_1 = ["checked"];
671
-
672
- function render(_ctx, _cache, $props, $setup, $data, $options) {
673
- return (openBlock(), createElementBlock("label", mergeProps({
674
- class: ["fu-check", {'_disabled': _ctx.$attrs.disabled !== undefined, '_checked': _ctx.modelValue }]
675
- }, { class: _ctx.$attrs.class, style: _ctx.$attrs.style }), [
676
- createElementVNode("input", mergeProps({..._ctx.$attrs, class: undefined, style: undefined, type: 'checkbox'}, {
677
- class: "fu-check_input",
678
- onInput: _cache[0] || (_cache[0] = $event => (_ctx.$emit('update:modelValue', $event.target.checked))),
679
- checked: _ctx.modelValue
680
- }), null, 16, _hoisted_1),
681
- createElementVNode("span", {
682
- class: normalizeClass(["fu-check_box", _ctx.switchLike ? 'fu-check_switch' : 'fu-check_check'])
683
- }, null, 2),
684
- renderSlot(_ctx.$slots, "default")
685
- ], 16))
686
- }
687
-
688
- 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}";
689
- styleInject(css_248z);
690
-
691
- script.render = render;
692
- script.__scopeId = "data-v-383402a2";
693
-
694
- /* eslint-disable import/prefer-default-export */
695
-
696
- var components = /*#__PURE__*/Object.freeze({
697
- __proto__: null,
698
- FuButton: script$a,
699
- FuButtonLink: script$9,
700
- FuCodeView: script$8,
701
- FuCopy: script$7,
702
- FuProgressRadial: script$6,
703
- FuSelect: script$5,
704
- FuSelectX: script$3,
705
- FuSidebar: script$2,
706
- FuText: script$4,
707
- FuTextarea: script$1,
708
- FuCheck: script
709
- });
710
-
711
- // Import vue components
712
-
713
- // install function executed by Vue.use()
714
- const install = function installFuKit (app) {
715
- Object.entries(components).forEach(([ componentName, component ]) => {
716
- app.component(componentName, component);
717
- });
718
- };
719
-
720
- export { script$a as FuButton, script$9 as FuButtonLink, script as FuCheck, script$8 as FuCodeView, script$7 as FuCopy, script$6 as FuProgressRadial, script$5 as FuSelect, script$3 as FuSelectX, script$2 as FuSidebar, script$4 as FuText, script$1 as FuTextarea, install as default };