@sio-group/form-react 0.1.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/CHANGELOG.md +97 -0
- package/README.md +783 -0
- package/ROADMAP.md +21 -0
- package/dist/index.cjs +1919 -0
- package/dist/index.d.cts +284 -0
- package/dist/index.d.ts +284 -0
- package/dist/index.js +1878 -0
- package/dist/styles/components/button.css +244 -0
- package/dist/styles/components/button.css.map +1 -0
- package/dist/styles/components/checkbox.css +90 -0
- package/dist/styles/components/checkbox.css.map +1 -0
- package/dist/styles/components/color.css +31 -0
- package/dist/styles/components/color.css.map +1 -0
- package/dist/styles/components/form-field.css +36 -0
- package/dist/styles/components/form-field.css.map +1 -0
- package/dist/styles/components/form-states.css +80 -0
- package/dist/styles/components/form-states.css.map +1 -0
- package/dist/styles/components/grid.css +818 -0
- package/dist/styles/components/grid.css.map +1 -0
- package/dist/styles/components/input.css +112 -0
- package/dist/styles/components/input.css.map +1 -0
- package/dist/styles/components/link.css +113 -0
- package/dist/styles/components/link.css.map +1 -0
- package/dist/styles/components/radio.css +104 -0
- package/dist/styles/components/radio.css.map +1 -0
- package/dist/styles/components/range.css +54 -0
- package/dist/styles/components/range.css.map +1 -0
- package/dist/styles/components/select.css +37 -0
- package/dist/styles/components/select.css.map +1 -0
- package/dist/styles/components/upload.css +54 -0
- package/dist/styles/components/upload.css.map +1 -0
- package/dist/styles/index.css +1733 -0
- package/dist/styles/index.css.map +1 -0
- package/package.json +42 -0
- package/screenshots/contact-form.png +0 -0
- package/screenshots/file-input.png +0 -0
- package/screenshots/invalid-username.png +0 -0
- package/screenshots/number-field.png +0 -0
- package/screenshots/radio-field.png +0 -0
- package/screenshots/range-field.png +0 -0
- package/screenshots/registration-form.png +0 -0
- package/screenshots/select-field.png +0 -0
- package/screenshots/textarea-field.png +0 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsup.config.ts +8 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/grid.scss"],"names":[],"mappings":"AAYA;EACE;;;AAsBF;AAAA;AAAA;EAGE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;AAAA;EAEE;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;;;AAkBE;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAIA;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAFF;EACE;EACA;;;AAIJ;EACE;;;AAGF;EACE;;;AAIA;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AACX;EACE,OAFS;;;AAQT;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AADF;EACE;;;AAMJ;EACE;;;AAKF;EACE;;;AAzGJ;EAyDA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAIA;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAIJ;IACE;;EAGF;IACE;;EAIA;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EAQT;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EAMJ;IACE;;EAKF;IACE;;;AAzGJ;EAyDA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAIA;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAIJ;IACE;;EAGF;IACE;;EAIA;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EAQT;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EAMJ;IACE;;EAKF;IACE;;;AAzGJ;EAyDA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAIA;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAIJ;IACE;;EAGF;IACE;;EAIA;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EAQT;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EAMJ;IACE;;EAKF;IACE;;;AAzGJ;EAyDA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAIA;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAFF;IACE;IACA;;EAIJ;IACE;;EAGF;IACE;;EAIA;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EACX;IACE,OAFS;;EAQT;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EADF;IACE;;EAMJ;IACE;;EAKF;IACE","file":"grid.css"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
:where(.form-field__control) {
|
|
2
|
+
border: 1px solid var(--sio-form-border);
|
|
3
|
+
background: var(--sio-form-bg);
|
|
4
|
+
position: relative;
|
|
5
|
+
font-size: 1em;
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 2px 0 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
border-radius: var(--sio-form-border-radius);
|
|
11
|
+
transition: color 300ms ease;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(.form-field__control input),
|
|
15
|
+
:where(.form-field__control textarea) {
|
|
16
|
+
display: block;
|
|
17
|
+
color: var(--sio-color-gray);
|
|
18
|
+
width: 100%;
|
|
19
|
+
background: transparent;
|
|
20
|
+
border: none;
|
|
21
|
+
padding: var(--sio-form-padding-y) var(--sio-form-padding-x);
|
|
22
|
+
resize: vertical;
|
|
23
|
+
transition: color 300ms ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.form-field__control input:focus),
|
|
27
|
+
:where(.form-field__control textarea:focus),
|
|
28
|
+
:where(.form-field__control select:focus) {
|
|
29
|
+
outline: none;
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.form-field__control input::placeholder),
|
|
34
|
+
:where(.form-field__control textarea::placeholder) {
|
|
35
|
+
color: var(--sio-color-light-gray);
|
|
36
|
+
font-weight: 200;
|
|
37
|
+
font-size: 1em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.form-field__icon) {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
width: 25px;
|
|
45
|
+
color: var(--sio-color-light-gray);
|
|
46
|
+
font-size: 1em;
|
|
47
|
+
margin-top: -1px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(.form-field__action) {
|
|
51
|
+
color: var(--sio-color-white);
|
|
52
|
+
background-color: var(--sio-color-primary);
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
border-radius: 0 3px 3px 0;
|
|
57
|
+
margin: -1px -1px -1px 0;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.form-field__spinner) {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
color: var(--sio-color-light-gray);
|
|
67
|
+
gap: 1px;
|
|
68
|
+
margin-right: 1px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(.form-field__spinner .btn) {
|
|
72
|
+
padding: 0 5px;
|
|
73
|
+
min-height: unset;
|
|
74
|
+
font-size: 0.5em;
|
|
75
|
+
height: 11px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:where(.form-field__spinner-btn) {
|
|
79
|
+
padding: 0 0.5rem;
|
|
80
|
+
font-size: 1.2em;
|
|
81
|
+
text-decoration: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:where(.form-field input)::-webkit-resizer,
|
|
85
|
+
:where(.form-field input)::-webkit-inner-spin-button,
|
|
86
|
+
:where(.form-field input)::-webkit-calendar-picker-indicator {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:where(.form-field input[type=date i]) {
|
|
91
|
+
font-family: Arial;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where(.form-field input::-webkit-datetime-edit-text) {
|
|
95
|
+
color: var(--sio-color-primary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:where(.form-field input)::-webkit-datetime-edit-day-field,
|
|
99
|
+
:where(.form-field input)::-webkit-datetime-edit-month-field,
|
|
100
|
+
:where(.form-field input)::-webkit-datetime-edit-year-field {
|
|
101
|
+
color: var(--sio-color-black);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(.form-field input)::-webkit-datetime-edit-day-field:focus,
|
|
105
|
+
:where(.form-field input)::-webkit-datetime-edit-month-field:focus,
|
|
106
|
+
:where(.form-field input)::-webkit-datetime-edit-year-field:focus {
|
|
107
|
+
background-color: color-mix(in srgb, rgb(var(--sio-color-primary)) 60%, white);
|
|
108
|
+
color: var(--sio-color-black);
|
|
109
|
+
border-radius: var(--sio-form-border-radius);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/*# sourceMappingURL=input.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/input.scss"],"names":[],"mappings":"AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;AAAA;AAAA;EAGE;EACA;EACA","file":"input.css"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@keyframes spin {
|
|
2
|
+
from {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: rotate(360deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
:root {
|
|
10
|
+
--sio-color-white: #ffffff;
|
|
11
|
+
--sio-color-black: #000000;
|
|
12
|
+
--sio-color-gray: #655f5d;
|
|
13
|
+
--sio-color-light-gray: #c6c6c6;
|
|
14
|
+
--sio-color-primary: #3B82F6;
|
|
15
|
+
--sio-color-success: #10B981;
|
|
16
|
+
--sio-color-error: #EF4444;
|
|
17
|
+
--sio-color-warning: #F59E0B;
|
|
18
|
+
--sio-color-info: #06B6D4;
|
|
19
|
+
--sio-color-primary-rgb: 59, 130, 246;
|
|
20
|
+
--sio-color-error-rgb: 239, 68, 68;
|
|
21
|
+
--sio-form-label: var(--sio-color-primary);
|
|
22
|
+
--sio-form-border: var(--sio-color-light-gray);
|
|
23
|
+
--sio-form-bg: var(--sio-color-white);
|
|
24
|
+
--sio-btn-primary-bg: var(--sio-color-primary);
|
|
25
|
+
--sio-btn-primary-border: var(--sio-color-primary);
|
|
26
|
+
--sio-btn-primary-text: var(--sio-color-white);
|
|
27
|
+
--sio-btn-secondary-bg: transparent;
|
|
28
|
+
--sio-btn-secondary-border: var(--sio-color-primary);
|
|
29
|
+
--sio-btn-secondary-text: var(--sio-color-primary);
|
|
30
|
+
--sio-btn-link-bg: transparent;
|
|
31
|
+
--sio-btn-link-border: transparent;
|
|
32
|
+
--sio-btn-link-text: var(--sio-color-primary);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(.btn--link) {
|
|
36
|
+
--sio-btn-bg: var(--sio-btn-link-bg);
|
|
37
|
+
--sio-btn-border: var(--sio-btn-link-border);
|
|
38
|
+
--sio-btn-text: var(--sio-btn-link-text);
|
|
39
|
+
--sio-btn-bg-hover: var(--sio-btn-bg);
|
|
40
|
+
--sio-btn-border-hover: var(--sio-btn-border);
|
|
41
|
+
--sio-btn-text-hover: color-mix(in srgb, var(--sio-btn-text) 85%, black);
|
|
42
|
+
--sio-btn-bg-disabled: var(--sio-btn-bg);
|
|
43
|
+
--sio-btn-border-disabled: var(--sio-btn-border);
|
|
44
|
+
--sio-btn-text-disabled: color-mix(in srgb, var(--sio-btn-text) 40%, white);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.link) {
|
|
48
|
+
display: inline;
|
|
49
|
+
user-select: none;
|
|
50
|
+
transition: all 0.3s ease-in;
|
|
51
|
+
text-decoration: underline;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where(.link:hover),
|
|
55
|
+
:where(.link:active),
|
|
56
|
+
:where(.link:focus),
|
|
57
|
+
:where(.link.link--active) {
|
|
58
|
+
background: var(--sio-btn-bg-hover, var(--sio-btn-bg));
|
|
59
|
+
border-color: var(--sio-btn-border-hover, var(--sio-btn-border));
|
|
60
|
+
color: var(--sio-btn-text-hover, var(--sio-btn-text));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(.link:disabled),
|
|
64
|
+
:where(.link.link--disabled) {
|
|
65
|
+
cursor: not-allowed;
|
|
66
|
+
background: var(--sio-btn-bg-disabled, var(--sio-btn-bg));
|
|
67
|
+
border-color: var(--sio-btn-border-disabled, var(--sio-btn-border));
|
|
68
|
+
color: var(--sio-btn-text-disabled, var(--sio-btn-text));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(.link--success) {
|
|
72
|
+
--sio-btn-bg: transparent;
|
|
73
|
+
--sio-btn-border: transparent;
|
|
74
|
+
--sio-btn-text: var(--sio-color-success);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(.link--error) {
|
|
78
|
+
--sio-btn-bg: transparent;
|
|
79
|
+
--sio-btn-border: transparent;
|
|
80
|
+
--sio-btn-text: var(--sio-color-error);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where(.link--warning) {
|
|
84
|
+
--sio-btn-bg: transparent;
|
|
85
|
+
--sio-btn-border: transparent;
|
|
86
|
+
--sio-btn-text: var(--sio-color-warning);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.link--info) {
|
|
90
|
+
--sio-btn-bg: transparent;
|
|
91
|
+
--sio-btn-border: transparent;
|
|
92
|
+
--sio-btn-text: var(--sio-color-info);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(.link--block) {
|
|
96
|
+
display: block;
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where(.link--lg) {
|
|
101
|
+
font-size: 1.1em;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(.link--sm) {
|
|
105
|
+
font-size: 0.7em;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:where(.link--loading) {
|
|
109
|
+
position: relative;
|
|
110
|
+
cursor: wait !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/*# sourceMappingURL=link.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/utilities/_mixins.scss","../../../src/assets/scss/tokens/_colors.scss","../../../src/assets/scss/components/link.scss"],"names":[],"mappings":"AAEA;EACE;IAAO;;EACP;IAAK;;;ACcP;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;;;AC5CF;EACE;EACA;EACA;EAEA;EACA;EACA;EAEA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;EACA;;;AAGF;AAAA;EAEE;EAEA;EACA;EACA;;;AAIA;EACE;EACA;EACA;;;AAHF;EACE;EACA;EACA;;;AAHF;EACE;EACA;EACA;;;AAHF;EACE;EACA;EACA;;;AAIJ;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA","file":"link.css"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
:where(.form-field__radio .form-field__control) {
|
|
2
|
+
display: flex !important;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
margin-top: 8px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where(.form-field__radio .form-field__control label) {
|
|
9
|
+
position: relative;
|
|
10
|
+
padding-left: 32px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where(.form-field__radio .form-field__control label > div) {
|
|
14
|
+
display: inline;
|
|
15
|
+
color: var(--sio-color-black);
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(.form-field__radio .form-field__control label):before {
|
|
20
|
+
content: "";
|
|
21
|
+
position: absolute;
|
|
22
|
+
border: 1px solid var(--sio-form-border);
|
|
23
|
+
background-color: var(--sio-form-bg);
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
width: 17px;
|
|
27
|
+
height: 17px;
|
|
28
|
+
top: -1px;
|
|
29
|
+
left: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.form-field__radio .form-field__control label):after {
|
|
33
|
+
content: "";
|
|
34
|
+
background-color: var(--sio-color-primary);
|
|
35
|
+
position: absolute;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
width: 13px;
|
|
39
|
+
height: 13px;
|
|
40
|
+
top: 2px;
|
|
41
|
+
left: 3px;
|
|
42
|
+
transform: scale(0);
|
|
43
|
+
transition: all 0.4s;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(.form-field__radio input[type=radio]) {
|
|
47
|
+
display: none !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(.form-field__radio label.form-field--has-value):before {
|
|
51
|
+
border-color: var(--sio-color-primary);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where(.form-field__radio label.form-field--has-value):after {
|
|
55
|
+
transform: scale(1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:where(.form-field__radio-inline .form-field__control) {
|
|
59
|
+
flex-direction: row;
|
|
60
|
+
justify-content: flex-start;
|
|
61
|
+
flex-wrap: wrap;
|
|
62
|
+
gap: 20px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where(.form-field__radio.form-field--has-errors label):before {
|
|
66
|
+
border-color: var(--sio-color-error);
|
|
67
|
+
background: rgba(var(--sio-color-error-rgb), 0.06);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where(.form-field__radio.form-field--has-errors label.form-field--has-value):after {
|
|
71
|
+
border-color: var(--sio-color-error);
|
|
72
|
+
background: var(--sio-color-error);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:where(.form-field__radio.form-field--disabled .form-field__control label) {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:where(.form-field__radio.form-field--disabled .form-field__control label):before,
|
|
80
|
+
:where(.form-field__radio.form-field--disabled .form-field__control label):after {
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:where(.form-field__radio.form-field--disabled .form-field__control label):before {
|
|
85
|
+
border-color: var(--sio-color-light-gray);
|
|
86
|
+
background-color: color-mix(in srgb, var(--sio-color-light-gray) 75%, white);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.form-field__radio.form-field--disabled .form-field__control label):after {
|
|
90
|
+
border-color: color-mix(in srgb, var(--sio-color-light-gray) 75%, black);
|
|
91
|
+
background-color: color-mix(in srgb, var(--sio-color-light-gray) 75%, black);
|
|
92
|
+
transform: scale(0);
|
|
93
|
+
transition: all 0.4s;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:where(.form-field__radio.form-field--disabled .form-field__control label.form-field--has-value):before {
|
|
97
|
+
border-color: var(--sio-color-light-gray);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where(.form-field__radio.form-field--disabled .form-field__control label.form-field--has-value):after {
|
|
101
|
+
transform: scale(1);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/*# sourceMappingURL=radio.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/radio.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACE;;;AAGF;EACE;;;AAGF;EACM;;;AAGN;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EAEA;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"radio.css"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
:where(.form-field__range .form-field__control) {
|
|
2
|
+
background: transparent !important;
|
|
3
|
+
border: none;
|
|
4
|
+
padding: 0;
|
|
5
|
+
box-shadow: none !important;
|
|
6
|
+
gap: 15px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where(.form-field__range-value) {
|
|
10
|
+
color: var(--sio-color-gray);
|
|
11
|
+
align-content: center;
|
|
12
|
+
min-width: 25px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where(.form-field input[type=range]) {
|
|
16
|
+
appearance: none;
|
|
17
|
+
width: 100%;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
outline: none;
|
|
20
|
+
padding: 12px 0 15px;
|
|
21
|
+
margin: 0;
|
|
22
|
+
height: 6px;
|
|
23
|
+
background: transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.form-field input[type=range])::-webkit-slider-runnable-track {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 5px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
background: var(--sio-color-light-gray);
|
|
31
|
+
border-radius: 2px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(.form-field input[type=range])::-webkit-slider-thumb {
|
|
35
|
+
appearance: none;
|
|
36
|
+
margin-top: -5.5px;
|
|
37
|
+
height: 14px;
|
|
38
|
+
width: 14px;
|
|
39
|
+
background-color: var(--sio-color-primary);
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
border: none;
|
|
42
|
+
transition: 0.2s ease-in-out;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where(.form-field input[type=range])::-webkit-slider-thumb:hover {
|
|
46
|
+
box-shadow: 0 0 0 10px rgba(var(--sio-color-primary-rgb), 0.1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(.form-field input[type=range]):active::-webkit-slider-thumb,
|
|
50
|
+
:where(.form-field input[type=range]):focus::-webkit-slider-thumb {
|
|
51
|
+
box-shadow: 0 0 0 13px rgba(var(--sio-color-primary-rgb), 0.2);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/*# sourceMappingURL=range.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/range.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE","file":"range.css"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
:where(.form-field__select select) {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
background: transparent;
|
|
5
|
+
border: none;
|
|
6
|
+
color: var(--var-color-gray);
|
|
7
|
+
font-size: 1em;
|
|
8
|
+
appearance: none;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.form-field__select-single .form-field__control) {
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.form-field__select-single .form-field__control):after {
|
|
17
|
+
content: "";
|
|
18
|
+
position: absolute;
|
|
19
|
+
right: 10px;
|
|
20
|
+
top: 11px;
|
|
21
|
+
width: 6px;
|
|
22
|
+
height: 6px;
|
|
23
|
+
border-right: 2px solid var(--sio-color-light-gray);
|
|
24
|
+
border-bottom: 2px solid var(--sio-color-light-gray);
|
|
25
|
+
transform: translateY(-50%) rotate(45deg);
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(.form-field__select-single select) {
|
|
30
|
+
padding: 5px 28px 5px 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.form-field__select-multiple select) {
|
|
34
|
+
padding: 5px 10px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/*# sourceMappingURL=select.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/select.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"select.css"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
:where(.form-field__upload-file) {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
margin: 10px 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:where(.form-field input[type=file i]) {
|
|
8
|
+
color: transparent;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where(.form-field input)::file-selector-button {
|
|
12
|
+
padding: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
border: none;
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
color: var(--sio-color-light-gray);
|
|
17
|
+
font-weight: 200;
|
|
18
|
+
font-size: 1em;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(.form-field__upload-file-label) {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 5px;
|
|
25
|
+
color: var(--sio-color-black);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(.form-field__upload-file-section button) {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
border: none;
|
|
33
|
+
padding: 3px 5px;
|
|
34
|
+
border-radius: 3px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(.form-field__upload-file-remove-button) {
|
|
38
|
+
background: transparent;
|
|
39
|
+
color: var(--sio-color-error);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.form-field__upload-buttons) {
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: flex-end;
|
|
45
|
+
gap: 5px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.form-field__upload-remove-all-button) {
|
|
49
|
+
gap: 5px;
|
|
50
|
+
background: transparent;
|
|
51
|
+
color: var(--sio-color-error);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/*# sourceMappingURL=upload.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/assets/scss/components/upload.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA","file":"upload.css"}
|