@frollo/frollo-web-ui 9.0.0 → 9.0.1
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 +8 -8
- package/esm/fw-button-YMoW4x4c.js +296 -0
- package/esm/fw-button.js +1 -1
- package/esm/fw-drawer.js +1 -1
- package/esm/fw-media-picker.js +1 -1
- package/esm/fw-modal.js +1 -1
- package/esm/fw-navigation-menu.js +1 -1
- package/esm/fw-provider-list.js +10 -10
- package/esm/fw-sidebar-menu.js +1 -1
- package/esm/{fw-table-row-C61Bi8KB.js → fw-table-row-Cgi8871h.js} +1 -1
- package/esm/fw-table.js +2 -2
- package/esm/{fw-tag-FWH6KttB.js → fw-tag-fDo50Nw7.js} +1 -1
- package/esm/fw-tag.js +2 -2
- package/esm/index.js +3 -3
- package/frollo-web-ui.esm.js +8 -8
- package/package.json +10 -10
- package/styles/web-components.scss +84 -1
- package/web-components/index.js +10 -10
- package/esm/fw-button-CnQvA7oM.js +0 -296
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementBlock, createCommentVNode, createElementVNode, renderSlot, Fragment, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
-
import { g as render$1 } from './index-BsEH8YYr.js';
|
|
3
|
-
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
|
-
|
|
5
|
-
var script = defineComponent({
|
|
6
|
-
name: 'FwButton',
|
|
7
|
-
components: {
|
|
8
|
-
LoadingSvg: render$1
|
|
9
|
-
},
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* The label text of the button.
|
|
13
|
-
* Overrides the default slot content.
|
|
14
|
-
*/
|
|
15
|
-
label: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* A `router-link` path or object
|
|
20
|
-
*/
|
|
21
|
-
to: {
|
|
22
|
-
type: [String, Object]
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* A URL to link to using a native anchor element
|
|
26
|
-
*/
|
|
27
|
-
href: String,
|
|
28
|
-
/**
|
|
29
|
-
* The size of the button. Accepts: 'sm', 'md', 'lg', 'xl', '2xl'
|
|
30
|
-
*/
|
|
31
|
-
size: {
|
|
32
|
-
type: String,
|
|
33
|
-
"default": 'lg',
|
|
34
|
-
validator: function validator(value) {
|
|
35
|
-
return ['sm', 'md', 'lg', 'xl', '2xl'].includes(value);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* The colour variant of the button.
|
|
40
|
-
* Accepts 'primary', 'secondary', 'tertiary', 'quaternary', 'error', 'success', 'link', 'text', 'transparent', 'gradient'
|
|
41
|
-
*/
|
|
42
|
-
variant: {
|
|
43
|
-
type: String,
|
|
44
|
-
"default": 'primary',
|
|
45
|
-
validator: function validator(value) {
|
|
46
|
-
return ['primary', 'secondary', 'tertiary', 'quaternary', 'error', 'success', 'link', 'text', 'transparent', 'gradient'].includes(value);
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* The type attribute of the button
|
|
51
|
-
*/
|
|
52
|
-
buttonType: {
|
|
53
|
-
type: String,
|
|
54
|
-
"default": 'button',
|
|
55
|
-
validator: function validator(value) {
|
|
56
|
-
return ['button', 'submit', 'reset'].includes(value);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
* The animation type of the hover & focus states.
|
|
61
|
-
* Accepts 'alternate' and 'fade'
|
|
62
|
-
*/
|
|
63
|
-
animation: {
|
|
64
|
-
type: String,
|
|
65
|
-
"default": 'alternate',
|
|
66
|
-
validator: function validator(value) {
|
|
67
|
-
return ['alternate', 'fade'].includes(value);
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
/**
|
|
71
|
-
* Whether the button is rounded or not
|
|
72
|
-
*/
|
|
73
|
-
rounded: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
"default": true
|
|
76
|
-
},
|
|
77
|
-
/**
|
|
78
|
-
* Whether the loading animation is shown or not
|
|
79
|
-
*/
|
|
80
|
-
loading: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
"default": false
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Whether the link should open in a new tab
|
|
86
|
-
*/
|
|
87
|
-
external: {
|
|
88
|
-
type: Boolean
|
|
89
|
-
},
|
|
90
|
-
/**
|
|
91
|
-
* Whether the button selected state is active
|
|
92
|
-
*/
|
|
93
|
-
selected: {
|
|
94
|
-
type: Boolean
|
|
95
|
-
},
|
|
96
|
-
/**
|
|
97
|
-
* Whether the button is disabled
|
|
98
|
-
*/
|
|
99
|
-
disabled: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
"default": false
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
emits: [/** Fired on native click */
|
|
105
|
-
'click', /** Fired on native hover in */
|
|
106
|
-
'mouseover', /** Fired on native hover out */
|
|
107
|
-
'mouseout', /** Fired on native focus in */
|
|
108
|
-
'focusin', /** Fired on native focus out */
|
|
109
|
-
'focusout'],
|
|
110
|
-
setup: function setup(props, ctx) {
|
|
111
|
-
var baseClass = ref("inline-block text-center transition-colors ease-in-out whitespace-nowrap\n duration-200 focus:outline-0 border focus-visible:outline-0 focus:ring-none ring-offset-1 focus-visible:ring\n ");
|
|
112
|
-
var buttonClasses = ref({
|
|
113
|
-
primary: {
|
|
114
|
-
text: '',
|
|
115
|
-
background: 'fw-button--primary',
|
|
116
|
-
border: ''
|
|
117
|
-
},
|
|
118
|
-
secondary: {
|
|
119
|
-
text: '',
|
|
120
|
-
background: 'fw-button--secondary',
|
|
121
|
-
border: ''
|
|
122
|
-
},
|
|
123
|
-
tertiary: {
|
|
124
|
-
text: '',
|
|
125
|
-
background: 'fw-button--tertiary',
|
|
126
|
-
border: ''
|
|
127
|
-
},
|
|
128
|
-
quaternary: {
|
|
129
|
-
text: '',
|
|
130
|
-
background: 'fw-button--quaternary',
|
|
131
|
-
border: ''
|
|
132
|
-
},
|
|
133
|
-
gradient: {
|
|
134
|
-
text: '',
|
|
135
|
-
background: 'fw-button--gradient',
|
|
136
|
-
border: ''
|
|
137
|
-
},
|
|
138
|
-
success: {
|
|
139
|
-
text: 'text-white hover:text-brand-success-text active:text-brand-success-new',
|
|
140
|
-
background: 'bg-brand-success-new hover:bg-white active:bg-white',
|
|
141
|
-
border: 'border-brand-success-new focus-visible:ring-brand-success-new'
|
|
142
|
-
},
|
|
143
|
-
error: {
|
|
144
|
-
text: 'text-white hover:text-brand-error-text active:text-brand-error-text',
|
|
145
|
-
background: 'bg-brand-error-text hover:bg-white active:bg-white',
|
|
146
|
-
border: 'border-brand-error-text focus-visible:ring-brand-error-text'
|
|
147
|
-
},
|
|
148
|
-
link: {
|
|
149
|
-
text: 'text-link font-normal no-underline hover:underline focus-visible:underline',
|
|
150
|
-
background: '',
|
|
151
|
-
border: 'border-none focus-visible:ring-2 focus-visible:ring-link'
|
|
152
|
-
},
|
|
153
|
-
text: {
|
|
154
|
-
text: 'text-body hover:text-white active:text-white',
|
|
155
|
-
background: 'bg-white hover:bg-body active:bg-body',
|
|
156
|
-
border: 'border-transparent focus-visible:ring-body'
|
|
157
|
-
},
|
|
158
|
-
transparent: {
|
|
159
|
-
text: '',
|
|
160
|
-
background: 'fw-button--transparent',
|
|
161
|
-
border: ''
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
var sizes = ref({
|
|
165
|
-
sm: 'px-3 py-1 text-sm',
|
|
166
|
-
md: 'px-6 py-2 text-p-small',
|
|
167
|
-
lg: 'px-7 py-2 text-p',
|
|
168
|
-
xl: 'px-12 py-3 text-p',
|
|
169
|
-
'2xl': 'px-16 py-4 text-2xl'
|
|
170
|
-
});
|
|
171
|
-
var iconSizes = ref({
|
|
172
|
-
sm: {
|
|
173
|
-
spacing: 'pr-7',
|
|
174
|
-
size: 'size-7 p-2'
|
|
175
|
-
},
|
|
176
|
-
md: {
|
|
177
|
-
spacing: 'pr-8',
|
|
178
|
-
size: 'size-8 p-2.5'
|
|
179
|
-
},
|
|
180
|
-
lg: {
|
|
181
|
-
spacing: 'pr-10',
|
|
182
|
-
size: 'size-10 p-3'
|
|
183
|
-
},
|
|
184
|
-
xl: {
|
|
185
|
-
spacing: 'pr-12',
|
|
186
|
-
size: 'size-12 p-3'
|
|
187
|
-
},
|
|
188
|
-
'2xl': {
|
|
189
|
-
spacing: 'pr-14',
|
|
190
|
-
size: 'size-14 p-3.5'
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
var textColorClass = computed(function () {
|
|
194
|
-
return buttonClasses.value[props.variant].text;
|
|
195
|
-
});
|
|
196
|
-
var bgColorClass = computed(function () {
|
|
197
|
-
return buttonClasses.value[props.variant].background;
|
|
198
|
-
});
|
|
199
|
-
var sizeClass = computed(function () {
|
|
200
|
-
return sizes.value[props.size];
|
|
201
|
-
});
|
|
202
|
-
var borderClass = computed(function () {
|
|
203
|
-
return buttonClasses.value[props.variant].border;
|
|
204
|
-
});
|
|
205
|
-
var iconSize = computed(function () {
|
|
206
|
-
return iconSizes.value[props.size];
|
|
207
|
-
});
|
|
208
|
-
var onClick = function onClick(e) {
|
|
209
|
-
return ctx.emit('click', e);
|
|
210
|
-
};
|
|
211
|
-
var onMouseover = function onMouseover(e) {
|
|
212
|
-
return ctx.emit('mouseover', e);
|
|
213
|
-
};
|
|
214
|
-
var onMouseout = function onMouseout(e) {
|
|
215
|
-
return ctx.emit('mouseout', e);
|
|
216
|
-
};
|
|
217
|
-
var onFocusin = function onFocusin(e) {
|
|
218
|
-
return ctx.emit('focusin', e);
|
|
219
|
-
};
|
|
220
|
-
var onFocusout = function onFocusout(e) {
|
|
221
|
-
return ctx.emit('focusout', e);
|
|
222
|
-
};
|
|
223
|
-
var tagName = computed(function () {
|
|
224
|
-
if (props.to) return 'router-link';
|
|
225
|
-
if (props.href) return 'a';
|
|
226
|
-
return 'button';
|
|
227
|
-
});
|
|
228
|
-
return {
|
|
229
|
-
baseClass: baseClass,
|
|
230
|
-
textColorClass: textColorClass,
|
|
231
|
-
bgColorClass: bgColorClass,
|
|
232
|
-
sizeClass: sizeClass,
|
|
233
|
-
borderClass: borderClass,
|
|
234
|
-
onClick: onClick,
|
|
235
|
-
onMouseover: onMouseover,
|
|
236
|
-
onMouseout: onMouseout,
|
|
237
|
-
onFocusin: onFocusin,
|
|
238
|
-
onFocusout: onFocusout,
|
|
239
|
-
tagName: tagName,
|
|
240
|
-
iconSize: iconSize
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
var _hoisted_1 = {
|
|
246
|
-
key: 0,
|
|
247
|
-
"class": "fw-button--label"
|
|
248
|
-
};
|
|
249
|
-
var _hoisted_2 = {
|
|
250
|
-
key: 1,
|
|
251
|
-
"class": "w-full h-full button-icon"
|
|
252
|
-
};
|
|
253
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
254
|
-
var _component_LoadingSvg = resolveComponent("LoadingSvg");
|
|
255
|
-
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
256
|
-
"class": normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.rounded && _ctx.variant !== 'link' ? 'rounded-full' : 'rounded', _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 font-normal rounded-1' : '', _ctx.animation === 'fade' ? 'animation--fade' : 'animation--alternate', _ctx.loading === true ? 'fw-button--loading cursor-progress pointer-events-none' : 'cursor-pointer', _ctx.loading || _ctx.$slots.suffixIcon ? 'relative' : '', _ctx.selected === true ? 'selected' : '']]),
|
|
257
|
-
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
258
|
-
to: _ctx.to ? _ctx.to : null,
|
|
259
|
-
href: _ctx.href ? _ctx.href : null,
|
|
260
|
-
tabindex: _ctx.to ? 0 : null,
|
|
261
|
-
disabled: _ctx.disabled,
|
|
262
|
-
loading: _ctx.loading,
|
|
263
|
-
target: !!_ctx.external ? '_blank' : null,
|
|
264
|
-
onClick: _ctx.onClick,
|
|
265
|
-
onFocusin: _ctx.onFocusin,
|
|
266
|
-
onFocusout: _ctx.onFocusout,
|
|
267
|
-
onMouseover: _ctx.onMouseover,
|
|
268
|
-
onMouseout: _ctx.onMouseout
|
|
269
|
-
}, {
|
|
270
|
-
"default": withCtx(function () {
|
|
271
|
-
return [_ctx.$slots["default"] || _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", {
|
|
272
|
-
"class": normalizeClass(["fw-button--label-wrapper", _ctx.loading || _ctx.$slots.suffixIcon ? _ctx.iconSize.spacing : 'pr-0 ml-0'])
|
|
273
|
-
}, [_ctx.label ? (openBlock(), createElementBlock(Fragment, {
|
|
274
|
-
key: 0
|
|
275
|
-
}, [createTextVNode(toDisplayString(_ctx.label), 1)], 64)) : _ctx.$slots["default"] ? renderSlot(_ctx.$slots, "default", {
|
|
276
|
-
key: 1
|
|
277
|
-
}) : createCommentVNode("", true)], 2), _ctx.loading || _ctx.$slots.suffixIcon ? (openBlock(), createElementBlock("div", {
|
|
278
|
-
key: 0,
|
|
279
|
-
"class": normalizeClass([_ctx.iconSize.size, "inline-flex absolute top-2/4 -translate-y-2/4 right-0 bg-black/20 rounded-full"])
|
|
280
|
-
}, [_ctx.loading ? (openBlock(), createBlock(_component_LoadingSvg, {
|
|
281
|
-
key: 0,
|
|
282
|
-
name: "loading",
|
|
283
|
-
"class": "w-full h-full animate-spin"
|
|
284
|
-
})) : _ctx.$slots.suffixIcon ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "suffixIcon")])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)])) : createCommentVNode("", true)];
|
|
285
|
-
}),
|
|
286
|
-
_: 3
|
|
287
|
-
}, 40, ["class", "type", "to", "href", "tabindex", "disabled", "loading", "target", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
var css_248z = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background-color:var(--colorButtonPrimary);border-color:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary.router-link-active,.fw-button--primary.selected,.fw-button--primary:hover{background-color:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--primary:focus-visible{--tw-ring-color:var(--colorButtonPrimary)}.fw-button--primary:disabled{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 224 227/var(--tw-bg-opacity));border-color:rgb(222 224 227/var(--tw-border-opacity));color:var(--colorText3)}.fw-button--secondary{background-color:var(--colorButtonSecondary);border-color:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate.router-link-active,.fw-button--secondary.animation--alternate.selected,.fw-button--secondary.animation--alternate:hover{background-color:var(--colorButtonSecondaryFade);border-color:var(--colorButtonSecondaryFade);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade.router-link-active,.fw-button--secondary.animation--fade.selected,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--secondary:focus-visible{--tw-ring-color:var(--colorButtonSecondary)}.fw-button--secondary:disabled{pointer-events:none}.fw-button--tertiary{background-color:transparent;border-color:var(--colorButtonTertiaryText);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate.router-link-active,.fw-button--tertiary.animation--alternate.selected,.fw-button--tertiary.animation--alternate:hover{background-color:var(--colorButtonTertiaryFade)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade.router-link-active,.fw-button--tertiary.animation--fade.selected,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary:focus-visible{--tw-ring-color:var(--colorButtonTertiaryText)}.fw-button--tertiary:disabled{pointer-events:none}.fw-button--quaternary{background-color:transparent;border-color:var(--colorButtonQuaternaryText);color:var(--colorButtonQuaternaryText)}.fw-button--quaternary.animation--alternate.fw-button--loading,.fw-button--quaternary.animation--alternate.router-link-active,.fw-button--quaternary.animation--alternate.selected,.fw-button--quaternary.animation--alternate:hover{background-color:var(--colorButtonQuaternary);border-color:var(--colorButtonQuaternaryText);color:var(--colorBody)}.fw-button--quaternary.animation--fade.fw-button--loading,.fw-button--quaternary.animation--fade.router-link-active,.fw-button--quaternary.animation--fade.selected,.fw-button--quaternary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--quaternary:focus-visible{--tw-ring-color:var(--colorButtonQuaternaryText)}.fw-button--quaternary:disabled{border-color:var(--colorBorder1);color:var(--colorText3)}.fw-button--quaternary:disabled.router-link-active,.fw-button--quaternary:disabled.selected{--tw-bg-opacity:1;background-color:rgb(222 224 227/var(--tw-bg-opacity))}.fw-button--gradient{background-image:var(--colorButtonGradient);background-size:135% auto;border:none;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.15),0 0 40px rgba(142,125,255,.3);box-shadow:0 2px 4px rgba(0,0,0,.15),0 0 40px rgba(142,125,255,.3);color:var(--colorButtonGradientText);-webkit-transition:.4s;-moz-transition:.4s;transition:.4s}.fw-button--gradient.animation--alternate.fw-button--loading,.fw-button--gradient.animation--alternate.router-link-active,.fw-button--gradient.animation--alternate.selected,.fw-button--gradient.animation--alternate:hover{background-size:120% auto;-webkit-transition:.4s;-moz-transition:.4s;transition:.4s}@-webkit-keyframes pulse{50%{opacity:.5}}@-moz-keyframes pulse{50%{opacity:.5}}.fw-button--gradient.animation--alternate.fw-button--loading .button-icon,.fw-button--gradient.animation--alternate.router-link-active .button-icon,.fw-button--gradient.animation--alternate.selected .button-icon,.fw-button--gradient.animation--alternate:hover .button-icon{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;-moz-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.fw-button--gradient.animation--fade.fw-button--loading,.fw-button--gradient.animation--fade.router-link-active,.fw-button--gradient.animation--fade.selected,.fw-button--gradient.animation--fade:hover{background-size:120% auto;-webkit-transition:.4s;-moz-transition:.4s;transition:.4s}@keyframes pulse{50%{opacity:.5}}.fw-button--gradient.animation--fade.fw-button--loading .button-icon,.fw-button--gradient.animation--fade.router-link-active .button-icon,.fw-button--gradient.animation--fade.selected .button-icon,.fw-button--gradient.animation--fade:hover .button-icon{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;-moz-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.fw-button--gradient:focus-visible{--tw-ring-color:var(--colorButtonQuaternaryText)}.fw-button--gradient:disabled{border-color:var(--colorBorder1);color:var(--colorText3)}.fw-button--gradient:disabled.router-link-active,.fw-button--gradient:disabled.selected{--tw-bg-opacity:1;background-color:rgb(222 224 227/var(--tw-bg-opacity))}.fw-button--transparent{border-color:transparent;color:var(--colorBody);-webkit-text-decoration-line:none;-moz-text-decoration-line:none;text-decoration-line:none}.fw-button--transparent:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 -webkit-calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 -moz-calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--colorPrimary);-webkit-box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.fw-button--transparent.fw-button--loading,.fw-button--transparent.router-link-active,.fw-button--transparent.selected,.fw-button--transparent:hover{background-color:var(--colorButtonTertiaryFade);color:var(--colorPrimary);-webkit-text-decoration-line:underline;-moz-text-decoration-line:underline;text-decoration-line:underline}.fw-button:disabled{cursor:not-allowed}";
|
|
291
|
-
var stylesheet = ".fw-button{line-height:normal}.fw-button--label-wrapper{-webkit-transition-duration:.2s;-moz-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:margin,padding;-moz-transition-property:margin,padding;transition-property:margin,padding;-webkit-transition-timing-function:ease-in-out;-moz-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.fw-button--primary{background-color:var(--colorButtonPrimary);border-color:var(--colorButtonPrimary);color:var(--colorButtonPrimaryText)}.fw-button--primary.fw-button--loading,.fw-button--primary.router-link-active,.fw-button--primary.selected,.fw-button--primary:hover{background-color:var(--colorButtonPrimaryFade);border-color:var(--colorButtonPrimaryFade)}.fw-button--primary:focus-visible{--tw-ring-color:var(--colorButtonPrimary)}.fw-button--primary:disabled{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 224 227/var(--tw-bg-opacity));border-color:rgb(222 224 227/var(--tw-border-opacity));color:var(--colorText3)}.fw-button--secondary{background-color:var(--colorButtonSecondary);border-color:var(--colorButtonSecondary);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--alternate.fw-button--loading,.fw-button--secondary.animation--alternate.router-link-active,.fw-button--secondary.animation--alternate.selected,.fw-button--secondary.animation--alternate:hover{background-color:var(--colorButtonSecondaryFade);border-color:var(--colorButtonSecondaryFade);color:var(--colorButtonSecondaryText)}.fw-button--secondary.animation--fade.fw-button--loading,.fw-button--secondary.animation--fade.router-link-active,.fw-button--secondary.animation--fade.selected,.fw-button--secondary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--secondary:focus-visible{--tw-ring-color:var(--colorButtonSecondary)}.fw-button--secondary:disabled{pointer-events:none}.fw-button--tertiary{background-color:transparent;border-color:var(--colorButtonTertiaryText);color:var(--colorButtonTertiaryText)}.fw-button--tertiary.animation--alternate.fw-button--loading,.fw-button--tertiary.animation--alternate.router-link-active,.fw-button--tertiary.animation--alternate.selected,.fw-button--tertiary.animation--alternate:hover{background-color:var(--colorButtonTertiaryFade)}.fw-button--tertiary.animation--fade.fw-button--loading,.fw-button--tertiary.animation--fade.router-link-active,.fw-button--tertiary.animation--fade.selected,.fw-button--tertiary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--tertiary:focus-visible{--tw-ring-color:var(--colorButtonTertiaryText)}.fw-button--tertiary:disabled{pointer-events:none}.fw-button--quaternary{background-color:transparent;border-color:var(--colorButtonQuaternaryText);color:var(--colorButtonQuaternaryText)}.fw-button--quaternary.animation--alternate.fw-button--loading,.fw-button--quaternary.animation--alternate.router-link-active,.fw-button--quaternary.animation--alternate.selected,.fw-button--quaternary.animation--alternate:hover{background-color:var(--colorButtonQuaternary);border-color:var(--colorButtonQuaternaryText);color:var(--colorBody)}.fw-button--quaternary.animation--fade.fw-button--loading,.fw-button--quaternary.animation--fade.router-link-active,.fw-button--quaternary.animation--fade.selected,.fw-button--quaternary.animation--fade:hover{-webkit-filter:brightness(135%);filter:brightness(135%)}.fw-button--quaternary:focus-visible{--tw-ring-color:var(--colorButtonQuaternaryText)}.fw-button--quaternary:disabled{border-color:var(--colorBorder1);color:var(--colorText3)}.fw-button--quaternary:disabled.router-link-active,.fw-button--quaternary:disabled.selected{--tw-bg-opacity:1;background-color:rgb(222 224 227/var(--tw-bg-opacity))}.fw-button--gradient{background-image:var(--colorButtonGradient);background-size:135% auto;border:none;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.15),0 0 40px rgba(142,125,255,.3);box-shadow:0 2px 4px rgba(0,0,0,.15),0 0 40px rgba(142,125,255,.3);color:var(--colorButtonGradientText);-webkit-transition:.4s;-moz-transition:.4s;transition:.4s}.fw-button--gradient.animation--alternate.fw-button--loading,.fw-button--gradient.animation--alternate.router-link-active,.fw-button--gradient.animation--alternate.selected,.fw-button--gradient.animation--alternate:hover{background-size:120% auto;-webkit-transition:.4s;-moz-transition:.4s;transition:.4s}@-webkit-keyframes pulse{50%{opacity:.5}}@-moz-keyframes pulse{50%{opacity:.5}}.fw-button--gradient.animation--alternate.fw-button--loading .button-icon,.fw-button--gradient.animation--alternate.router-link-active .button-icon,.fw-button--gradient.animation--alternate.selected .button-icon,.fw-button--gradient.animation--alternate:hover .button-icon{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;-moz-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.fw-button--gradient.animation--fade.fw-button--loading,.fw-button--gradient.animation--fade.router-link-active,.fw-button--gradient.animation--fade.selected,.fw-button--gradient.animation--fade:hover{background-size:120% auto;-webkit-transition:.4s;-moz-transition:.4s;transition:.4s}@keyframes pulse{50%{opacity:.5}}.fw-button--gradient.animation--fade.fw-button--loading .button-icon,.fw-button--gradient.animation--fade.router-link-active .button-icon,.fw-button--gradient.animation--fade.selected .button-icon,.fw-button--gradient.animation--fade:hover .button-icon{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;-moz-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.fw-button--gradient:focus-visible{--tw-ring-color:var(--colorButtonQuaternaryText)}.fw-button--gradient:disabled{border-color:var(--colorBorder1);color:var(--colorText3)}.fw-button--gradient:disabled.router-link-active,.fw-button--gradient:disabled.selected{--tw-bg-opacity:1;background-color:rgb(222 224 227/var(--tw-bg-opacity))}.fw-button--transparent{border-color:transparent;color:var(--colorBody);-webkit-text-decoration-line:none;-moz-text-decoration-line:none;text-decoration-line:none}.fw-button--transparent:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 -webkit-calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 -moz-calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:var(--colorPrimary);-webkit-box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.fw-button--transparent.fw-button--loading,.fw-button--transparent.router-link-active,.fw-button--transparent.selected,.fw-button--transparent:hover{background-color:var(--colorButtonTertiaryFade);color:var(--colorPrimary);-webkit-text-decoration-line:underline;-moz-text-decoration-line:underline;text-decoration-line:underline}.fw-button:disabled{cursor:not-allowed}";
|
|
292
|
-
styleInject(css_248z);
|
|
293
|
-
|
|
294
|
-
script.render = render;
|
|
295
|
-
|
|
296
|
-
export { script as s };
|