@trackunit/react-form-components 0.0.104 → 0.0.106
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/index.cjs.js +711 -248
- package/index.esm.js +693 -247
- package/package.json +2 -2
- package/src/components/ActionButton/ActionButton.d.ts +1 -1
- package/src/components/ActionButton/ActionButton.variants.d.ts +4 -0
- package/src/components/BaseInput/BaseInput.d.ts +8 -0
- package/src/components/BaseInput/BaseInput.variants.d.ts +21 -0
- package/src/components/BaseInput/index.d.ts +1 -0
- package/src/components/Checkbox/Checkbox.variants.d.ts +8 -0
- package/src/components/DropZone/DropZone.variants.d.ts +8 -0
- package/src/components/FormGroup/FormGroup.variants.d.ts +8 -0
- package/src/components/Label/Label.d.ts +0 -1
- package/src/components/Label/Label.variants.d.ts +4 -0
- package/src/components/OptionCard/OptionCard.variants.d.ts +5 -0
- package/src/components/RadioGroup/RadioGroup.d.ts +0 -1
- package/src/components/RadioGroup/RadioGroup.variants.d.ts +13 -0
- package/src/components/Search/Search.d.ts +1 -2
- package/src/components/Search/Search.variants.d.ts +4 -0
- package/src/components/Select/Select.variants.d.ts +15 -0
- package/src/components/Select/index.d.ts +1 -0
- package/src/components/Select/shared.d.ts +0 -1
- package/src/components/TextArea/TextArea.variants.d.ts +5 -0
- package/src/components/Toggle/Toggle.d.ts +2 -3
- package/src/components/Toggle/Toggle.variants.d.ts +16 -0
- package/src/components/UploadInput/UploadInput.variants.d.ts +2 -0
- package/index.cjs.css +0 -259
- package/index.esm.css +0 -259
package/index.esm.css
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
/* CSS related to the Label component */
|
|
2
|
-
|
|
3
|
-
.tu-label {
|
|
4
|
-
@apply text-base
|
|
5
|
-
text-slate-700
|
|
6
|
-
overflow-hidden
|
|
7
|
-
whitespace-nowrap
|
|
8
|
-
text-ellipsis
|
|
9
|
-
hover:text-slate-800
|
|
10
|
-
group-hover:text-slate-800
|
|
11
|
-
active:text-slate-800
|
|
12
|
-
group-active:text-slate-800;
|
|
13
|
-
|
|
14
|
-
&--invalid {
|
|
15
|
-
@apply text-red-600
|
|
16
|
-
hover:text-red-700
|
|
17
|
-
group-hover:text-red-700
|
|
18
|
-
active:text-red-700
|
|
19
|
-
group-active:text-red-700;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&--disabled {
|
|
23
|
-
@apply text-slate-400
|
|
24
|
-
hover:text-slate-400
|
|
25
|
-
group-hover:text-slate-400;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* CSS related to the RadioGroup component */
|
|
30
|
-
.tu-radiogroup {
|
|
31
|
-
@apply flex
|
|
32
|
-
gap-2
|
|
33
|
-
flex-col
|
|
34
|
-
items-start;
|
|
35
|
-
|
|
36
|
-
&--inline {
|
|
37
|
-
@apply flex
|
|
38
|
-
gap-3
|
|
39
|
-
flex-row
|
|
40
|
-
items-center;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.tu-radioitem {
|
|
45
|
-
@apply w-4
|
|
46
|
-
h-4
|
|
47
|
-
appearance-none
|
|
48
|
-
rounded-3xl
|
|
49
|
-
bg-white
|
|
50
|
-
border-solid
|
|
51
|
-
border
|
|
52
|
-
border-slate-300
|
|
53
|
-
shadow-sm
|
|
54
|
-
shrink-0
|
|
55
|
-
transition
|
|
56
|
-
box-border
|
|
57
|
-
hover:cursor-pointer
|
|
58
|
-
hover:bg-slate-100
|
|
59
|
-
focus:ring-2
|
|
60
|
-
focus:ring-offset-2
|
|
61
|
-
focus:ring-blue-700;
|
|
62
|
-
|
|
63
|
-
&__wrapper {
|
|
64
|
-
@apply flex
|
|
65
|
-
gap-2
|
|
66
|
-
items-center;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&--checked {
|
|
70
|
-
@apply border-solid
|
|
71
|
-
border-4
|
|
72
|
-
border-blue-600
|
|
73
|
-
bg-white
|
|
74
|
-
hover:bg-slate-100
|
|
75
|
-
hover:cursor-pointer
|
|
76
|
-
outline-0
|
|
77
|
-
active:bg-slate-200
|
|
78
|
-
active:ring-2
|
|
79
|
-
active:ring-offset-2
|
|
80
|
-
active:ring-blue-700
|
|
81
|
-
focus:bg-slate-200
|
|
82
|
-
focus:ring-2
|
|
83
|
-
focus:ring-offset-2
|
|
84
|
-
focus:ring-blue-700
|
|
85
|
-
group-active:ring-2
|
|
86
|
-
group-active:ring-offset-2
|
|
87
|
-
group-active:ring-blue-700;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&--invalid {
|
|
91
|
-
@apply border-red-600
|
|
92
|
-
active:ring-red-700
|
|
93
|
-
focus:ring-red-700
|
|
94
|
-
group-focus:ring-2
|
|
95
|
-
group-focus:ring-offset-2;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&--disabled {
|
|
99
|
-
@apply bg-slate-400
|
|
100
|
-
border-slate-300
|
|
101
|
-
cursor-not-allowed
|
|
102
|
-
group-hover:bg-slate-400
|
|
103
|
-
group-focus:bg-slate-400
|
|
104
|
-
hover:bg-slate-400
|
|
105
|
-
focus:bg-slate-400
|
|
106
|
-
active:bg-slate-400
|
|
107
|
-
focus:ring-0
|
|
108
|
-
focus:ring-offset-0
|
|
109
|
-
group-active:ring-0
|
|
110
|
-
group-active:ring-offset-0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&--disabled.tu-radioitem--checked {
|
|
114
|
-
@apply bg-white;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&__label-container {
|
|
118
|
-
@apply gap-y-1
|
|
119
|
-
grid;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&__description {
|
|
123
|
-
@apply text-sm
|
|
124
|
-
font-normal
|
|
125
|
-
text-slate-500
|
|
126
|
-
text-left
|
|
127
|
-
whitespace-nowrap
|
|
128
|
-
text-ellipsis
|
|
129
|
-
overflow-hidden;
|
|
130
|
-
|
|
131
|
-
&--disabled {
|
|
132
|
-
@apply text-slate-400
|
|
133
|
-
hover:text-slate-400
|
|
134
|
-
group-hover:text-slate-400;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* CSS related to the toggle component */
|
|
140
|
-
.tu-toggle {
|
|
141
|
-
@apply rounded-full
|
|
142
|
-
bg-white
|
|
143
|
-
h-full
|
|
144
|
-
aspect-square
|
|
145
|
-
translate-x-0
|
|
146
|
-
transition-all;
|
|
147
|
-
|
|
148
|
-
&__wrapper {
|
|
149
|
-
@apply flex
|
|
150
|
-
gap-2;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&__input-container {
|
|
154
|
-
@apply flex
|
|
155
|
-
self-start
|
|
156
|
-
w-fit
|
|
157
|
-
active:shadow
|
|
158
|
-
rounded-full
|
|
159
|
-
cursor-pointer
|
|
160
|
-
focus-within:ring
|
|
161
|
-
focus-within:ring-offset-2
|
|
162
|
-
focus-within:ring-blue-700;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&__input {
|
|
166
|
-
@apply absolute
|
|
167
|
-
opacity-0
|
|
168
|
-
-z-10;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&__switch-container {
|
|
172
|
-
@apply flex
|
|
173
|
-
items-center
|
|
174
|
-
p-1
|
|
175
|
-
cursor-pointer
|
|
176
|
-
rounded-full
|
|
177
|
-
bg-slate-300
|
|
178
|
-
focus:bg-slate-400
|
|
179
|
-
hover:bg-slate-400
|
|
180
|
-
active:bg-slate-500;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&__switch {
|
|
184
|
-
@apply bg-white
|
|
185
|
-
rounded-full
|
|
186
|
-
h-full
|
|
187
|
-
w-5/12
|
|
188
|
-
aspect-square
|
|
189
|
-
translate-x-4
|
|
190
|
-
transition-all;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&--medium {
|
|
194
|
-
@apply flex
|
|
195
|
-
items-center
|
|
196
|
-
p-1
|
|
197
|
-
cursor-pointer
|
|
198
|
-
w-9
|
|
199
|
-
h-5;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&--small {
|
|
203
|
-
@apply flex
|
|
204
|
-
items-center
|
|
205
|
-
p-1
|
|
206
|
-
cursor-pointer
|
|
207
|
-
w-8
|
|
208
|
-
h-4;
|
|
209
|
-
|
|
210
|
-
.tu-toggle__switch {
|
|
211
|
-
@apply w-4/12;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&--toggled {
|
|
216
|
-
@apply flex
|
|
217
|
-
items-center
|
|
218
|
-
p-1
|
|
219
|
-
cursor-pointer
|
|
220
|
-
bg-blue-600
|
|
221
|
-
focus:bg-blue-700
|
|
222
|
-
hover:bg-blue-700
|
|
223
|
-
active:bg-blue-800;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&--disabled {
|
|
227
|
-
@apply flex
|
|
228
|
-
items-center
|
|
229
|
-
p-1
|
|
230
|
-
cursor-not-allowed
|
|
231
|
-
pointer-events-none
|
|
232
|
-
bg-slate-200;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
&--disabled.tu-toggle--toggled {
|
|
236
|
-
@apply bg-slate-400;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&__label-container {
|
|
240
|
-
@apply gap-y-1
|
|
241
|
-
grid;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
&__description {
|
|
245
|
-
@apply text-sm
|
|
246
|
-
font-normal
|
|
247
|
-
text-slate-500
|
|
248
|
-
text-left
|
|
249
|
-
whitespace-nowrap
|
|
250
|
-
text-ellipsis
|
|
251
|
-
overflow-hidden;
|
|
252
|
-
|
|
253
|
-
&--disabled {
|
|
254
|
-
@apply text-slate-400
|
|
255
|
-
hover:text-slate-400
|
|
256
|
-
group-hover:text-slate-400;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|