@tsed/tailwind-formio 3.0.0 → 3.0.2
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/package.json +1 -1
- package/styles/choices.css +43 -22
- package/styles/form.css +7 -0
- package/styles/input-group.css +1 -44
package/package.json
CHANGED
package/styles/choices.css
CHANGED
|
@@ -24,9 +24,11 @@
|
|
|
24
24
|
overflow: visible;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
.form-control.ui,
|
|
28
|
+
.choices__inner {
|
|
29
|
+
@apply shadow-none;
|
|
30
|
+
@apply appearance-none bg-white leading-normal pb-0 block w-full rounded-md border-1 border-gray-300;
|
|
31
|
+
min-height: 38px;
|
|
30
32
|
font-size: inherit;
|
|
31
33
|
line-height: inherit;
|
|
32
34
|
}
|
|
@@ -59,6 +61,7 @@
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
&.is-disabled {
|
|
64
|
+
.form-control.ui,
|
|
62
65
|
.choices__inner,
|
|
63
66
|
.choices__input {
|
|
64
67
|
@apply bg-gray-300 opacity-100 cursor-not-allowed;
|
|
@@ -80,14 +83,17 @@
|
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
&[data-type*=select-one] {
|
|
83
|
-
@apply cursor-pointer;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&[data-type*=select-one] {
|
|
87
|
-
position: relative;
|
|
86
|
+
@apply cursor-pointer relative;
|
|
88
87
|
|
|
88
|
+
.form-control.ui,
|
|
89
89
|
.choices__inner {
|
|
90
|
-
@apply
|
|
90
|
+
@apply flex items-center;
|
|
91
|
+
padding: 0;
|
|
92
|
+
|
|
93
|
+
.choices__list {
|
|
94
|
+
@apply block;
|
|
95
|
+
padding: 0 16px 0 8px;
|
|
96
|
+
}
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
.choices__input {
|
|
@@ -164,6 +170,23 @@
|
|
|
164
170
|
}
|
|
165
171
|
|
|
166
172
|
&[data-type=select-multiple] {
|
|
173
|
+
.form-control.ui,
|
|
174
|
+
.choices__inner {
|
|
175
|
+
@apply flex gap-1 flex-wrap;
|
|
176
|
+
padding-top: 6px;
|
|
177
|
+
|
|
178
|
+
.choices__item {
|
|
179
|
+
@apply rounded-md bg-primary border-0 text-xs py-1 px-2;
|
|
180
|
+
font-weight: 600;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
> .choices__input {
|
|
184
|
+
margin: 0;
|
|
185
|
+
padding: 0;
|
|
186
|
+
height: 24px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
167
190
|
&:after {
|
|
168
191
|
@apply h-0 w-0 border-solid absolute border-0 h-full top-0 m-0 right-1.5;
|
|
169
192
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
@@ -178,11 +201,6 @@
|
|
|
178
201
|
@apply pb-0;
|
|
179
202
|
}
|
|
180
203
|
}
|
|
181
|
-
|
|
182
|
-
.choices__list--multiple .choices__item {
|
|
183
|
-
@apply rounded-md bg-primary border-0 text-xs py-1 px-2;
|
|
184
|
-
font-weight: 600;
|
|
185
|
-
}
|
|
186
204
|
}
|
|
187
205
|
|
|
188
206
|
.choices__list {
|
|
@@ -386,27 +404,30 @@
|
|
|
386
404
|
*/
|
|
387
405
|
.form-group.-size-small {
|
|
388
406
|
.choices {
|
|
407
|
+
|
|
408
|
+
.form-control.ui,
|
|
389
409
|
.choices__inner {
|
|
390
|
-
@apply px-2;
|
|
391
|
-
padding-top: 3px;
|
|
392
410
|
min-height: 32px;
|
|
393
411
|
font-size: 14px;
|
|
394
412
|
}
|
|
395
413
|
|
|
396
|
-
&[data-type*=select-
|
|
397
|
-
padding-
|
|
414
|
+
&[data-type*=select-multiple] .choices__inner {
|
|
415
|
+
padding-top: 3px;
|
|
398
416
|
}
|
|
399
417
|
|
|
400
|
-
.choices__list--multiple
|
|
401
|
-
|
|
402
|
-
|
|
418
|
+
.choices__list--multiple {
|
|
419
|
+
.choices__item {
|
|
420
|
+
@apply py-0.5 px-1 text-xs;
|
|
421
|
+
margin-bottom: 3px;
|
|
422
|
+
}
|
|
403
423
|
}
|
|
404
424
|
|
|
405
425
|
.choices__input {
|
|
406
426
|
margin-bottom: 1px;
|
|
407
427
|
}
|
|
428
|
+
|
|
408
429
|
&[data-type*=select-multiple] .choices__button,
|
|
409
|
-
&[data-type*=text] .choices__button{
|
|
430
|
+
&[data-type*=text] .choices__button {
|
|
410
431
|
margin: 0 -2px 0 6px;
|
|
411
432
|
}
|
|
412
433
|
}
|
package/styles/form.css
CHANGED
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
@apply mb-5;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
input.form-control,
|
|
27
|
+
select.form-control {
|
|
28
|
+
min-height: 38px;
|
|
29
|
+
padding-top: 3px;
|
|
30
|
+
padding-bottom: 3px;
|
|
31
|
+
}
|
|
26
32
|
|
|
27
33
|
.form-control {
|
|
28
34
|
@apply appearance-none bg-white leading-normal px-3 py-2 block w-full rounded-md border-1 border-gray-300 shadow-sm;
|
|
@@ -32,6 +38,7 @@
|
|
|
32
38
|
.form-control {
|
|
33
39
|
@apply px-2 py-1 text-sm;
|
|
34
40
|
min-height: 32px;
|
|
41
|
+
height: 32px;
|
|
35
42
|
}
|
|
36
43
|
}
|
|
37
44
|
|
package/styles/input-group.css
CHANGED
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
@apply flex relative flex-wrap items-stretch w-full shadow-sm rounded;
|
|
3
3
|
> .choices {
|
|
4
4
|
@apply flex-1 mb-0;
|
|
5
|
-
.choices__inner {
|
|
6
|
-
@apply shadow-none;
|
|
7
|
-
}
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
7
|
|
|
@@ -12,8 +9,7 @@
|
|
|
12
9
|
.input-group > .form-control-plaintext,
|
|
13
10
|
.input-group > .custom-select,
|
|
14
11
|
.input-group > .custom-file {
|
|
15
|
-
@apply relative
|
|
16
|
-
width: 1%;
|
|
12
|
+
@apply relative mb-0 mt-0 shadow-none;
|
|
17
13
|
|
|
18
14
|
+ .form-control,
|
|
19
15
|
+ .custom-select,
|
|
@@ -104,45 +100,6 @@
|
|
|
104
100
|
}
|
|
105
101
|
}
|
|
106
102
|
|
|
107
|
-
/*.input-group-lg > .form-control:not(textarea),
|
|
108
|
-
.input-group-lg > .custom-select {
|
|
109
|
-
height: $input-height-lg;
|
|
110
|
-
}*/
|
|
111
|
-
|
|
112
|
-
/*.input-group-lg > .form-control,
|
|
113
|
-
.input-group-lg > .custom-select,
|
|
114
|
-
.input-group-lg > .input-group-prepend > .input-group-text,
|
|
115
|
-
.input-group-lg > .input-group-append > .input-group-text,
|
|
116
|
-
.input-group-lg > .input-group-prepend > .btn,
|
|
117
|
-
.input-group-lg > .input-group-append > .btn {
|
|
118
|
-
padding: $input-padding-y-lg $input-padding-x-lg;
|
|
119
|
-
@include font-size($input-font-size-lg);
|
|
120
|
-
line-height: $input-line-height-lg;
|
|
121
|
-
@include border-radius($input-border-radius-lg);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.input-group-sm > .form-control:not(textarea),
|
|
125
|
-
.input-group-sm > .custom-select {
|
|
126
|
-
height: $input-height-sm;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.input-group-sm > .form-control,
|
|
130
|
-
.input-group-sm > .custom-select,
|
|
131
|
-
.input-group-sm > .input-group-prepend > .input-group-text,
|
|
132
|
-
.input-group-sm > .input-group-append > .input-group-text,
|
|
133
|
-
.input-group-sm > .input-group-prepend > .btn,
|
|
134
|
-
.input-group-sm > .input-group-append > .btn {
|
|
135
|
-
padding: $input-padding-y-sm $input-padding-x-sm;
|
|
136
|
-
@include font-size($input-font-size-sm);
|
|
137
|
-
line-height: $input-line-height-sm;
|
|
138
|
-
@include border-radius($input-border-radius-sm);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.input-group-lg > .custom-select,
|
|
142
|
-
.input-group-sm > .custom-select {
|
|
143
|
-
padding-right: $custom-select-padding-x + $custom-select-indicator-padding;
|
|
144
|
-
}*/
|
|
145
|
-
|
|
146
103
|
.input-group > .input-group-prepend > .btn,
|
|
147
104
|
.input-group > .input-group-prepend > .input-group-text,
|
|
148
105
|
.input-group > .input-group-append:not(:last-child) > .btn,
|