@tsed/tailwind-formio 3.0.0-alpha.7 → 3.0.0-alpha.8
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 +4 -4
- package/styles/choices.css +36 -8
- package/styles/form.css +1 -1
- package/styles/index.css +1 -0
- package/styles/react-select.css +41 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/tailwind-formio",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.8",
|
|
4
4
|
"description": "Tailwind templates for form.io forms.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {},
|
|
54
54
|
"peerDependencies": {},
|
|
55
|
-
"repository": "https://github.com/
|
|
55
|
+
"repository": "https://github.com/tsedio/tsed-formio",
|
|
56
56
|
"bugs": {
|
|
57
|
-
"url": "https://github.com/
|
|
57
|
+
"url": "https://github.com/tsedio/tsed-formio/issues"
|
|
58
58
|
},
|
|
59
|
-
"homepage": "https://github.com/
|
|
59
|
+
"homepage": "https://github.com/tsedio/tsed-formio/tree/master/packages/tailwind-formio",
|
|
60
60
|
"author": "Romain Lenzotti",
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"tag": "alpha"
|
package/styles/choices.css
CHANGED
|
@@ -26,6 +26,15 @@
|
|
|
26
26
|
line-height: inherit;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
&__small {
|
|
30
|
+
.choices__inner {
|
|
31
|
+
@apply px-2;
|
|
32
|
+
padding-top: 2px;
|
|
33
|
+
min-height: 0;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
29
38
|
&__input {
|
|
30
39
|
@apply bg-white;
|
|
31
40
|
}
|
|
@@ -82,6 +91,10 @@
|
|
|
82
91
|
@apply pb-2;
|
|
83
92
|
}
|
|
84
93
|
|
|
94
|
+
&.choices__small .choices__inner {
|
|
95
|
+
padding-bottom: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
85
98
|
.choices__input {
|
|
86
99
|
@apply block w-full p-2.5 border-b-1 border-solid border-gray-300 bg-white m-0;
|
|
87
100
|
}
|
|
@@ -153,6 +166,7 @@
|
|
|
153
166
|
}
|
|
154
167
|
}
|
|
155
168
|
}
|
|
169
|
+
|
|
156
170
|
&[data-type=select-multiple] {
|
|
157
171
|
&:after {
|
|
158
172
|
@apply h-0 w-0 border-solid absolute border-0 h-full top-0 m-0 right-1.5;
|
|
@@ -168,14 +182,16 @@
|
|
|
168
182
|
@apply pb-0;
|
|
169
183
|
}
|
|
170
184
|
}
|
|
185
|
+
.choices__list--multiple .choices__item {
|
|
186
|
+
@apply rounded-md bg-primary border-0 text-xs py-1 px-2;
|
|
187
|
+
font-weight: 600;
|
|
188
|
+
}
|
|
171
189
|
}
|
|
172
190
|
|
|
173
|
-
.choices__list--multiple .choices__item {
|
|
174
|
-
@apply rounded-sm;
|
|
175
|
-
}
|
|
176
191
|
|
|
177
|
-
|
|
178
|
-
|
|
192
|
+
|
|
193
|
+
.is-open .choices__inner, .is-flipped.is-open .choices__inner {
|
|
194
|
+
@apply rounded-md;
|
|
179
195
|
}
|
|
180
196
|
|
|
181
197
|
.choices__list {
|
|
@@ -188,7 +204,8 @@
|
|
|
188
204
|
.choices__item {
|
|
189
205
|
@apply w-full;
|
|
190
206
|
}
|
|
191
|
-
|
|
207
|
+
|
|
208
|
+
.choices__item.choices__item--selectable {
|
|
192
209
|
margin-bottom: -0.375rem;
|
|
193
210
|
}
|
|
194
211
|
}
|
|
@@ -207,6 +224,7 @@
|
|
|
207
224
|
|
|
208
225
|
&.is-highlighted {
|
|
209
226
|
@apply bg-secondary-500 border-secondary-600;
|
|
227
|
+
|
|
210
228
|
.choices__button {
|
|
211
229
|
@apply border-secondary-600;
|
|
212
230
|
}
|
|
@@ -214,8 +232,8 @@
|
|
|
214
232
|
}
|
|
215
233
|
}
|
|
216
234
|
|
|
217
|
-
&--dropdown {
|
|
218
|
-
@apply invisible absolute z-5 w-full bg-white border-1 border-solid border-gray-300 rounded overflow-hidden break-all top-full;
|
|
235
|
+
&--dropdown[aria-expanded=true] {
|
|
236
|
+
@apply invisible absolute z-5 w-full bg-white border-1 border-solid border-gray-300 rounded-md overflow-hidden break-all top-full;
|
|
219
237
|
will-change: visibility;
|
|
220
238
|
|
|
221
239
|
&.is-active {
|
|
@@ -280,6 +298,16 @@
|
|
|
280
298
|
}
|
|
281
299
|
|
|
282
300
|
@media (min-width: 640px) {
|
|
301
|
+
.choices__small {
|
|
302
|
+
.choices__list--dropdown .choices__item--selectable {
|
|
303
|
+
padding: 5px 10px;
|
|
304
|
+
|
|
305
|
+
&:after {
|
|
306
|
+
display: none;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
283
311
|
.choices__list--dropdown {
|
|
284
312
|
.choices__item--selectable {
|
|
285
313
|
padding-right: 100px;
|
package/styles/form.css
CHANGED
package/styles/index.css
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
.react-select-container {
|
|
3
|
+
display: block;
|
|
4
|
+
flex: 1;
|
|
5
|
+
|
|
6
|
+
.react-select__control {
|
|
7
|
+
@apply appearance-none bg-white leading-normal w-full rounded-md border-1 border-gray-300 shadow-sm;
|
|
8
|
+
|
|
9
|
+
&--is-focused {
|
|
10
|
+
@apply outline-none border-primary-300 ring ring-primary-50 ring-opacity-50;
|
|
11
|
+
outline-offset: theme('outline.none[1]');
|
|
12
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
13
|
+
border-color: theme('colors.blue.600');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.react-select__multi-value {
|
|
18
|
+
@apply bg-primary-600 text-white rounded-md;
|
|
19
|
+
|
|
20
|
+
&__label {
|
|
21
|
+
@apply text-white text-xs py-1 px-2;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__remove {
|
|
26
|
+
@apply opacity-80;
|
|
27
|
+
&:hover {
|
|
28
|
+
@apply bg-transparent text-white opacity-100;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.react-select__value-container.react-select__value-container--is-multi {
|
|
34
|
+
@apply px-2 py-1;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.input-group-prepend + .react-select-container .react-select__control {
|
|
39
|
+
border-top-left-radius: 0;
|
|
40
|
+
border-bottom-left-radius: 0;
|
|
41
|
+
}
|