@esportsplus/ui 0.24.4 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/checkbox/index.d.ts +11 -0
- package/build/components/checkbox/index.js +33 -0
- package/build/components/checkbox/scss/index.scss +2 -0
- package/build/components/index.d.ts +7 -1
- package/build/components/index.js +7 -1
- package/build/components/input/index.d.ts +21 -0
- package/build/components/input/index.js +38 -0
- package/build/components/input/scss/index.scss +2 -0
- package/build/components/radio/index.d.ts +11 -0
- package/build/components/radio/index.js +33 -0
- package/build/components/radio/scss/index.scss +2 -0
- package/build/components/range/index.d.ts +21 -0
- package/build/components/range/index.js +46 -0
- package/build/components/range/scss/index.scss +2 -0
- package/build/components/select/index.d.ts +44 -0
- package/build/components/{field/select.js → select/index.js} +43 -70
- package/build/components/select/scss/index.scss +2 -0
- package/build/components/switch/index.d.ts +11 -0
- package/build/components/switch/index.js +33 -0
- package/build/components/switch/scss/index.scss +2 -0
- package/build/components/text/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +21 -0
- package/build/components/textarea/index.js +37 -0
- package/build/components/textarea/scss/index.scss +2 -0
- package/build/normalize/scss/index.scss +1 -1
- package/package.json +2 -2
- package/src/components/checkbox/index.ts +45 -0
- package/src/components/checkbox/scss/index.scss +50 -0
- package/src/components/checkbox/scss/variables.scss +72 -0
- package/src/components/index.ts +7 -1
- package/src/components/input/index.ts +52 -0
- package/src/components/input/scss/index.scss +37 -0
- package/src/components/input/scss/variables.scss +50 -0
- package/src/components/radio/index.ts +45 -0
- package/src/components/radio/scss/index.scss +50 -0
- package/src/components/radio/scss/variables.scss +67 -0
- package/src/components/range/index.ts +61 -0
- package/src/components/range/scss/index.scss +31 -0
- package/src/components/range/scss/variables.scss +8 -0
- package/src/components/select/index.ts +166 -0
- package/src/components/select/scss/index.scss +36 -0
- package/src/components/select/scss/variables.scss +12 -0
- package/src/components/switch/index.ts +45 -0
- package/src/components/switch/scss/index.scss +48 -0
- package/src/components/switch/scss/variables.scss +72 -0
- package/src/components/text/scss/index.scss +31 -0
- package/src/components/textarea/index.ts +51 -0
- package/src/components/textarea/scss/index.scss +26 -0
- package/src/components/textarea/scss/variables.scss +49 -0
- package/src/normalize/scss/index.scss +36 -1
- package/build/components/field/checkbox.d.ts +0 -73
- package/build/components/field/checkbox.js +0 -71
- package/build/components/field/description.d.ts +0 -19
- package/build/components/field/description.js +0 -7
- package/build/components/field/error.d.ts +0 -5
- package/build/components/field/error.js +0 -13
- package/build/components/field/index.d.ts +0 -18331
- package/build/components/field/index.js +0 -10
- package/build/components/field/input.d.ts +0 -156
- package/build/components/field/input.js +0 -97
- package/build/components/field/scss/index.scss +0 -2
- package/build/components/field/select.d.ts +0 -1321
- package/build/components/field/title.d.ts +0 -1169
- package/build/components/field/title.js +0 -20
- package/src/components/field/checkbox.ts +0 -97
- package/src/components/field/description.ts +0 -11
- package/src/components/field/error.ts +0 -16
- package/src/components/field/index.ts +0 -15
- package/src/components/field/input.ts +0 -134
- package/src/components/field/scss/check.scss +0 -227
- package/src/components/field/scss/index.scss +0 -133
- package/src/components/field/scss/normalize.scss +0 -34
- package/src/components/field/scss/range.scss +0 -46
- package/src/components/field/scss/text.scss +0 -120
- package/src/components/field/scss/variables.scss +0 -128
- package/src/components/field/select.ts +0 -220
- package/src/components/field/title.ts +0 -27
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import checkbox from './checkbox.js';
|
|
2
|
-
import description from './description.js';
|
|
3
|
-
import input from './input.js';
|
|
4
|
-
import select from './select.js';
|
|
5
|
-
import title from './title.js';
|
|
6
|
-
import './scss/index.scss';
|
|
7
|
-
const { checkbox: cb, radio, switch: sw } = checkbox;
|
|
8
|
-
const { file, range, text, textarea } = input;
|
|
9
|
-
export default { checkbox: cb, description, file, radio, range, select, switch: sw, textarea, text, title };
|
|
10
|
-
export { cb as checkbox, description, file, radio, range, select, sw as switch, textarea, text, title };
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
|
-
declare const file: {
|
|
3
|
-
(): ReturnType<(this: {
|
|
4
|
-
state: {
|
|
5
|
-
active: boolean;
|
|
6
|
-
error: string;
|
|
7
|
-
};
|
|
8
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
9
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
10
|
-
state: {
|
|
11
|
-
active: boolean;
|
|
12
|
-
error: string;
|
|
13
|
-
};
|
|
14
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
15
|
-
<T extends Renderable<any>>(content: T): ReturnType<(this: {
|
|
16
|
-
state: {
|
|
17
|
-
active: boolean;
|
|
18
|
-
error: string;
|
|
19
|
-
};
|
|
20
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
21
|
-
(attributes: Attributes, content: Renderable<any>): ReturnType<(this: {
|
|
22
|
-
state: {
|
|
23
|
-
active: boolean;
|
|
24
|
-
error: string;
|
|
25
|
-
};
|
|
26
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
27
|
-
};
|
|
28
|
-
declare const range: {
|
|
29
|
-
(): ReturnType<(this: {
|
|
30
|
-
attributes?: Attributes | undefined;
|
|
31
|
-
content?: Renderable<any>;
|
|
32
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
33
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
34
|
-
attributes?: Attributes | undefined;
|
|
35
|
-
content?: Renderable<any>;
|
|
36
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
37
|
-
<T extends Renderable<any>>(content: T): ReturnType<(this: {
|
|
38
|
-
attributes?: Attributes | undefined;
|
|
39
|
-
content?: Renderable<any>;
|
|
40
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
41
|
-
(attributes: Attributes, content: Renderable<any>): ReturnType<(this: {
|
|
42
|
-
attributes?: Attributes | undefined;
|
|
43
|
-
content?: Renderable<any>;
|
|
44
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
45
|
-
};
|
|
46
|
-
declare const text: {
|
|
47
|
-
(): ReturnType<(this: {
|
|
48
|
-
state: {
|
|
49
|
-
active: boolean;
|
|
50
|
-
error: string;
|
|
51
|
-
};
|
|
52
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
53
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
54
|
-
state: {
|
|
55
|
-
active: boolean;
|
|
56
|
-
error: string;
|
|
57
|
-
};
|
|
58
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
59
|
-
<T extends Renderable<any>>(content: T): ReturnType<(this: {
|
|
60
|
-
state: {
|
|
61
|
-
active: boolean;
|
|
62
|
-
error: string;
|
|
63
|
-
};
|
|
64
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
65
|
-
(attributes: Attributes, content: Renderable<any>): ReturnType<(this: {
|
|
66
|
-
state: {
|
|
67
|
-
active: boolean;
|
|
68
|
-
error: string;
|
|
69
|
-
};
|
|
70
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
71
|
-
};
|
|
72
|
-
declare const textarea: {
|
|
73
|
-
(): ReturnType<(this: {
|
|
74
|
-
state: {
|
|
75
|
-
active: boolean;
|
|
76
|
-
error: string;
|
|
77
|
-
};
|
|
78
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
79
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
80
|
-
state: {
|
|
81
|
-
active: boolean;
|
|
82
|
-
error: string;
|
|
83
|
-
};
|
|
84
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
85
|
-
<T extends Renderable<any>>(content: T): ReturnType<(this: {
|
|
86
|
-
state: {
|
|
87
|
-
active: boolean;
|
|
88
|
-
error: string;
|
|
89
|
-
};
|
|
90
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
91
|
-
(attributes: Attributes, content: Renderable<any>): ReturnType<(this: {
|
|
92
|
-
state: {
|
|
93
|
-
active: boolean;
|
|
94
|
-
error: string;
|
|
95
|
-
};
|
|
96
|
-
}, attributes: Readonly<Attributes>, content: Renderable<any>) => Renderable<any>>;
|
|
97
|
-
};
|
|
98
|
-
declare const _default: {
|
|
99
|
-
file: {
|
|
100
|
-
(): ReturnType<(this: {
|
|
101
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
102
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
103
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
104
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
105
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
106
|
-
<T extends (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>>(content: T): ReturnType<(this: {
|
|
107
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
108
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
109
|
-
(attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
|
|
110
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
111
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
112
|
-
};
|
|
113
|
-
range: {
|
|
114
|
-
(): ReturnType<(this: {
|
|
115
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
116
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
117
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
118
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
119
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
120
|
-
<T extends (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>>(content: T): ReturnType<(this: {
|
|
121
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
122
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
123
|
-
(attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
|
|
124
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
125
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
126
|
-
};
|
|
127
|
-
text: {
|
|
128
|
-
(): ReturnType<(this: {
|
|
129
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
130
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
131
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
132
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
133
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
134
|
-
<T extends (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>>(content: T): ReturnType<(this: {
|
|
135
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
136
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
137
|
-
(attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
|
|
138
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
139
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
140
|
-
};
|
|
141
|
-
textarea: {
|
|
142
|
-
(): ReturnType<(this: {
|
|
143
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
144
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
145
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
146
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
147
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
148
|
-
<T extends (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>>(content: T): ReturnType<(this: {
|
|
149
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
150
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
151
|
-
(attributes: Attributes, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>): ReturnType<(this: {
|
|
152
|
-
mask: typeof file | typeof range | typeof text | typeof textarea;
|
|
153
|
-
}, attributes: Readonly<Attributes>, content: (mask: typeof file | typeof range | typeof text | typeof textarea) => Renderable<unknown>) => Renderable<any>>;
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
export default _default;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { reactive, root } from '@esportsplus/reactivity';
|
|
2
|
-
import { html } from '@esportsplus/template';
|
|
3
|
-
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import form from '../../components/form/index.js';
|
|
5
|
-
import template from '../../components/template/index.js';
|
|
6
|
-
import error from './error.js';
|
|
7
|
-
const OMIT_FIELD = ['state'];
|
|
8
|
-
const OMIT_TAG = ['field-mask-tag'];
|
|
9
|
-
const field = template.factory(function (attributes, content) {
|
|
10
|
-
let state = attributes.state || reactive({
|
|
11
|
-
active: false,
|
|
12
|
-
error: ''
|
|
13
|
-
});
|
|
14
|
-
return html `
|
|
15
|
-
<div class='field'
|
|
16
|
-
${omit(attributes, OMIT_FIELD)}
|
|
17
|
-
${{
|
|
18
|
-
class: () => state.active && '--active',
|
|
19
|
-
onfocusin: () => {
|
|
20
|
-
state.active = true;
|
|
21
|
-
},
|
|
22
|
-
onfocusout: () => {
|
|
23
|
-
state.active = false;
|
|
24
|
-
}
|
|
25
|
-
}}
|
|
26
|
-
>
|
|
27
|
-
${content((...args) => this.mask.call({ state }, ...args))}
|
|
28
|
-
${error(state)}
|
|
29
|
-
</div>
|
|
30
|
-
`;
|
|
31
|
-
});
|
|
32
|
-
const file = template.factory(function (attributes, content) {
|
|
33
|
-
return html `
|
|
34
|
-
<label class='field-mask field-mask--file' ${omit(attributes, OMIT_TAG)}>
|
|
35
|
-
<input
|
|
36
|
-
class='field-mask-tag field-mask-tag--hidden'
|
|
37
|
-
onrender=${form.input.onrender(this.state)}
|
|
38
|
-
type='file'
|
|
39
|
-
${attributes['field-mask-tag']}
|
|
40
|
-
>
|
|
41
|
-
${content}
|
|
42
|
-
</label>
|
|
43
|
-
`;
|
|
44
|
-
});
|
|
45
|
-
const range = template.factory(function (attributes, content) {
|
|
46
|
-
let a = (attributes['field-mask-tag'] || {}), state = attributes.state || reactive({ value: 0 });
|
|
47
|
-
return html `
|
|
48
|
-
<div class='field-mask field-mask--range --border-state --border-black' ${omit(attributes, OMIT_TAG)}>
|
|
49
|
-
<input
|
|
50
|
-
class='field-mask-tag'
|
|
51
|
-
oninput=${(e) => {
|
|
52
|
-
state.value = Number(e.target.value);
|
|
53
|
-
}}
|
|
54
|
-
type='range'
|
|
55
|
-
value='${root(() => a.value || state.value || 0)}'
|
|
56
|
-
${a}
|
|
57
|
-
>
|
|
58
|
-
${content}
|
|
59
|
-
</div>
|
|
60
|
-
`;
|
|
61
|
-
});
|
|
62
|
-
const text = template.factory(function (attributes, content) {
|
|
63
|
-
return html `
|
|
64
|
-
<label class='field-mask field-mask--input' ${omit(attributes, OMIT_TAG)}>
|
|
65
|
-
<input
|
|
66
|
-
class='field-mask-tag'
|
|
67
|
-
${attributes['field-mask-tag']}
|
|
68
|
-
${{
|
|
69
|
-
onrender: form.input.onrender(this.state),
|
|
70
|
-
type: attributes.type || 'text'
|
|
71
|
-
}}
|
|
72
|
-
>
|
|
73
|
-
${content}
|
|
74
|
-
</label>
|
|
75
|
-
`;
|
|
76
|
-
});
|
|
77
|
-
const textarea = template.factory(function (attributes, content) {
|
|
78
|
-
let a = (attributes['field-mask-tag'] || {});
|
|
79
|
-
return html `
|
|
80
|
-
<label class='field-mask field-mask--textarea' ${omit(attributes, OMIT_TAG)}>
|
|
81
|
-
<textarea
|
|
82
|
-
class='field-mask-tag'
|
|
83
|
-
onrender=${form.input.onrender(this.state)}
|
|
84
|
-
${a}
|
|
85
|
-
>
|
|
86
|
-
${a.value}
|
|
87
|
-
</textarea>
|
|
88
|
-
${content}
|
|
89
|
-
</label>
|
|
90
|
-
`;
|
|
91
|
-
});
|
|
92
|
-
export default {
|
|
93
|
-
file: field.bind({ mask: file }),
|
|
94
|
-
range: field.bind({ mask: range }),
|
|
95
|
-
text: field.bind({ mask: text }),
|
|
96
|
-
textarea: field.bind({ mask: textarea })
|
|
97
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@layer components {button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;background:0 0;border:0;border-radius:0;margin:0;padding:0}button,button:active,button:focus,button:hover,input,input:active,input:focus,input:hover,select,select:active,select:focus,select:hover,textarea,textarea:active,textarea:focus,textarea:hover{outline:none}button:invalid,input:invalid,select:invalid,textarea:invalid{box-shadow:none}form{width:100%;margin:0;padding:0}label{cursor:pointer}.field{--margin-horizontal:0px;--margin-vertical:var(--size-300);--width:100%}.field-description,.field-error{--font-size:var(--font-size-300)}.field-error{--color:var(--color-red-400)}.field-mask{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--outline-opacity:var(--outline-opacity-default);--outline-opacity-active:.32;--outline-opacity-default:0;--outline-opacity-hover:0;--outline-opacity-pressed:0;--outline-spacing:0px;--outline-width:var(--outline-width-default);--outline-width-active:4px;--outline-width-default:0px;--outline-width-hover:0px;--outline-width-pressed:0px;--padding-horizontal:0px;--padding-vertical:var(--size-400)}.field.--active>.field-mask,.field.--active :not(.field) .field-mask{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active);--outline-opacity:var(--outline-opacity-active);--outline-width:var(--outline-width-active)}label.field:not(.--active):not(.--active):hover>.field-mask,.field:not(.--active):not(label) .field-mask:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover);--outline-opacity:var(--outline-opacity-hover);--outline-width:var(--outline-width-hover)}label.field:not(.--active):not(.--active):active>.field-mask,.field:not(.--active):not(label) .field-mask:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed);--outline-opacity:var(--outline-opacity-pressed);--outline-width:var(--outline-width-pressed)}.field-mask--outline:not(.--active):active{--border-color:var(--border-color-default)}.field-mask--outline:not(.--active):active:before{--outline-width:0px}.field-required{--border-radius:100%;--size:6px}.field-title{--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--font-weight:var(--font-weight-500)}.field.--active .field-title{--color:var(--color-active)}.field:not(.--active):hover .field-title{--color:var(--color-hover)}.field:not(.--active):active .field-title{--color:var(--color-pressed)}.field label.field:not(.--active):hover,.field:not(label):not(.--active) .field-mask:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover);--outline-opacity:var(--outline-opacity-hover);--outline-width:var(--outline-width-hover)}.field label.field:not(.--active):active,.field:not(label):not(.--active) .field-mask:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed);--outline-opacity:var(--outline-opacity-pressed);--outline-width:var(--outline-width-pressed)}.field-mask--checkbox,.field-mask--radio,.field-mask--switch{--accent:var(--accent-default);--accent-active:var(--accent-default);--accent-default:var(--color-white-400);--accent-hover:var(--accent-default);--accent-pressed:var(--accent-default);--height:var(--size);--opacity:var(--opacity-default);--opacity-active:var(--opacity-default);--opacity-default:1;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--rotate:0deg;--scale:var(--scale-default);--scale-active:var(--scale-default);--scale-default:1;--scale-hover:var(--scale-default);--scale-pressed:var(--scale-default);--size:var(--size-600);--width-switch:40px}.field-mask--checkbox:before,.field-mask--radio:before,.field-mask--switch:before{--translateX:0px;--translateY:0px}.field-mask--checkbox label.field:not(.--active):not(.--active):hover,.field:not(label):not(.--active) .field-mask--checkbox:not(.--active):hover,.field-mask--radio label.field:not(.--active):not(.--active):hover,.field:not(label):not(.--active) .field-mask--radio:not(.--active):hover,.field-mask--switch label.field:not(.--active):not(.--active):hover,.field:not(label):not(.--active) .field-mask--switch:not(.--active):hover{--accent:var(--accent-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.field-mask--checkbox label.field:not(.--active):not(.--active):active,.field:not(label):not(.--active) .field-mask--checkbox:not(.--active):active,.field-mask--radio label.field:not(.--active):not(.--active):active,.field:not(label):not(.--active) .field-mask--radio:not(.--active):active,.field-mask--switch label.field:not(.--active):not(.--active):active,.field:not(label):not(.--active) .field-mask--switch:not(.--active):active{--accent:var(--accent-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.field.--active .field-mask--checkbox,.field.--active .field-mask--radio,.field.--active .field-mask--switch{--accent:var(--accent-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.field-mask--checkbox,.field-mask--radio{--margin-horizontal:calc(var(--width-switch) - var(--width));--width:var(--height)}.field-mask--radio:before,.field-mask--switch:before{--box-shadow:0 1px 0 #00000029}.field-mask--checkbox{--border-radius:var(--border-radius-300);--rotate:45deg;--scale-active:1;--scale-default:0;--scale-hover:1.08;--scale-pressed:.98}.field-mask--checkbox:before{--box-shadow:1px 1px 0 #00000029;--border-width:5px;--height:110%;--translateX:108%;--translateY:8%;--width:50%}.field:not(.--active):not(:hover) .field-mask--checkbox:before{--translateY:100%}.field-mask--radio{--border-radius:100%;--opacity-active:1;--opacity-default:.4;--scale-active:.9;--scale-default:0;--scale-hover:.8;--scale-pressed:.7}.field-mask--radio:before{--height:calc((var(--size)/2) - (var(--border-width)*2));--translateX:50%;--translateY:50%;--width:var(--height)}.field-mask--switch{--border-radius:240px;--padding-horizontal:var(--border-width-400);--padding-vertical:var(--border-width-400);--width:var(--width-switch)}.field-mask--switch:before{--height:calc(var(--size) - (var(--border-width)*2) - (var(--padding-vertical)*2));--width:var(--height)}.field.--active .field-mask--switch:before{--translateX:calc(var(--width-switch) - (var(--border-width)*2) - var(--height) - (var(--padding-horizontal)*2))}.field-mask--range{--background-default:var(--color-black-300);--border-width:var(--border-width-700);--height:var(--size-200);--thumb-background:var(--color-white-400);--thumb-size:var(--size-400);--width:100%}.field-mask--file,.field-mask--input,.field-mask--select,.field-mask--textarea{--font-size:var(--font-size-400);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400)}.field-mask--file,.field-mask--input,.field-mask--textarea{--size:var(--size-400)}.field-mask--select{--arrow-spacer:1px;--arrow-size:6px}.field-mask-arrow{--border-width:var(--border-width-500)}.field{gap:var(--margin-vertical)var(--margin-horizontal);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,color var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out;width:var(--width);flex-flow:column;display:flex;position:relative}.field-description,.field-error,.field-title{color:var(--color);font-size:var(--font-size);word-wrap:break-word;width:100%;position:relative}.field-description:empty,.field-error:empty,.field-title:empty{height:0;margin:0}.field-error{animation:.32s linear fieldError}@keyframes fieldError{0%{transform:translate(8px)}20%{transform:translate(-8px)}40%{transform:translate(4px)}60%{transform:translate(-4px)}80%{transform:translate(2px)}to{transform:translate(0)}}.field-mask:after{border-radius:inherit;box-shadow:var(--box-shadow);content:"";pointer-events:none;transition:box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;z-index:-1;position:absolute;inset:0}.field-mask--flat:after{display:none}.field-mask--outline:before{box-shadow:0 0 0 var(--outline-width)var(--border-color);border-radius:var(--border-radius);content:"";opacity:var(--outline-opacity);pointer-events:none;transition:box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out;z-index:1;position:absolute;inset:0}.field-mask-tag--hidden{appearance:none;opacity:0;pointer-events:none;z-index:-1;width:0;height:0;position:absolute;top:0;left:0}.field-required{background:var(--background);border-radius:var(--border-radius);height:var(--size);width:var(--size)}.field-title{font-weight:var(--font-weight);z-index:1}.field-mask--checkbox,.field-mask--radio,.field-mask--switch{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;width:var(--width);position:relative}.field-mask--checkbox:invalid,.field-mask--checkbox:required,.field-mask--radio:invalid,.field-mask--radio:required,.field-mask--switch:invalid,.field-mask--switch:required{box-shadow:none}.field-mask--checkbox:before,.field-mask--radio:before,.field-mask--switch:before{box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX),var(--translateY))rotate(var(--rotate))scale(var(--scale));width:var(--width)}.field-mask--checkbox .field-mask-tag,.field-mask--radio .field-mask-tag,.field-mask--switch .field-mask-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}.field-mask--radio:before,.field-mask--switch:before{background:var(--accent);border-radius:inherit;transform-origin:50%}.field-mask--checkbox:before{border-bottom:var(--border-width)solid var(--accent);border-right:var(--border-width)solid var(--accent);transform-origin:bottom;position:absolute;bottom:50%;right:92%}.field-mask--radio:before{position:absolute;bottom:50%;right:50%}.field-mask--switch:before{top:var(--padding-vertical);left:var(--padding-horizontal);position:absolute}.field-mask--range{margin:calc((var(--height) - var(--thumb-size))/2)0}.field-mask--range .field-mask-tag{background:var(--background);height:var(--height);width:var(--width);border:0;border-radius:240px;transition:opacity .2s}.field-mask--range .field-mask-tag::-moz-range-thumb{background:var(--thumb-background);border:var(--border-width)solid var(--border-color);cursor:pointer;height:var(--thumb-size);width:var(--thumb-size);border-radius:100%}.field-mask--range .field-mask-tag::-webkit-slider-thumb{background:var(--thumb-background);border:var(--border-width)solid var(--border-color);cursor:pointer;height:var(--thumb-size);width:var(--thumb-size);border-radius:100%}.field-mask--range .field-mask-tag{appearance:none;outline:none}.field-mask--range .field-mask-tag::-moz-range-thumb{appearance:none;outline:none}.field-mask--range .field-mask-tag::-webkit-slider-thumb{appearance:none;outline:none}.field-mask--file,.field-mask--input,.field-mask--select,.field-mask--textarea{background:var(--background);border:var(--border-width)var(--border-style)var(--border-color);border-radius:var(--border-radius);font-size:var(--font-size);line-height:var(--line-height);flex-wrap:wrap;align-items:center;width:100%;display:flex;position:relative}.field-mask--file:invalid,.field-mask--file:required,.field-mask--input:invalid,.field-mask--input:required,.field-mask--select:invalid,.field-mask--select:required,.field-mask--textarea:invalid,.field-mask--textarea:required{box-shadow:none}.field-mask--file,.field-mask--file .field-mask-tag,.field-mask--input,.field-mask--input .field-mask-tag,.field-mask--select,.field-mask--select .field-mask-tag,.field-mask--textarea,.field-mask--textarea .field-mask-tag{color:var(--color)}.field-mask--file.field-text,.field-mask--input.field-text,.field-mask--select.field-text,.field-mask--textarea.field-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.field-mask--file,.field-mask--input,.field-mask--textarea{cursor:text;min-height:calc(var(--padding-vertical)*2 + var(--size))}.field-mask--file .field-mask-tag,.field-mask--input .field-mask-tag,.field-mask--textarea .field-mask-tag{padding:var(--padding-vertical)var(--padding-horizontal);flex:auto;min-width:0}.field-mask--file .field-mask-tag[type=number],.field-mask--input .field-mask-tag[type=number],.field-mask--textarea .field-mask-tag[type=number]{appearance:textfield}.field-mask--file textarea.field-mask-tag,.field-mask--input textarea.field-mask-tag,.field-mask--textarea textarea.field-mask-tag{white-space:normal}.field-mask--file{cursor:pointer}.field-mask--select{cursor:pointer;padding:var(--padding-vertical)calc(var(--padding-horizontal)/1.5 + var(--arrow-size))var(--padding-vertical)var(--padding-horizontal)}.field-mask--select.--padding{padding-right:calc(var(--padding-horizontal)*1.5 + var(--arrow-size))}.field-mask-arrow{right:calc(var(--padding-horizontal) + var(--arrow-spacer));bottom:calc(50% + var(--arrow-spacer));border-color:var(--border-color);border-style:var(--border-style);border-width:0 var(--border-width)var(--border-width)0;content:"";height:var(--arrow-size);width:var(--arrow-size);position:absolute;transform:translateY(50%)rotate(45deg)}.field-mask-text{padding-right:var(--padding-horizontal);pointer-events:none}}
|
|
2
|
-
/*$vite$:1*/
|