@tsed/tailwind-formio 3.0.0-alpha.8 → 3.0.0-rc.1

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.
Files changed (101) hide show
  1. package/dist/index.d.ts +4 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/tailwind/colors.js.map +1 -1
  4. package/dist/tailwind/preset.js.map +1 -1
  5. package/dist/templates/index.d.ts +4 -1
  6. package/dist/templates/index.js.map +1 -1
  7. package/dist/templates/tailwind/address/index.js.map +1 -1
  8. package/dist/templates/tailwind/alert/index.js.map +1 -1
  9. package/dist/templates/tailwind/builder/index.js.map +1 -1
  10. package/dist/templates/tailwind/builderComponent/index.js.map +1 -1
  11. package/dist/templates/tailwind/builderComponents/index.js.map +1 -1
  12. package/dist/templates/tailwind/builderEditForm/index.js.map +1 -1
  13. package/dist/templates/tailwind/builderPlaceholder/index.js.map +1 -1
  14. package/dist/templates/tailwind/builderSidebar/index.js.map +1 -1
  15. package/dist/templates/tailwind/builderSidebarGroup/index.js.map +1 -1
  16. package/dist/templates/tailwind/builderWizard/index.js.map +1 -1
  17. package/dist/templates/tailwind/button/index.js.map +1 -1
  18. package/dist/templates/tailwind/bxIconsMapping.d.ts +1 -0
  19. package/dist/templates/tailwind/bxIconsMapping.js +74 -0
  20. package/dist/templates/tailwind/bxIconsMapping.js.map +1 -0
  21. package/dist/templates/tailwind/checkbox/index.js.map +1 -1
  22. package/dist/templates/tailwind/columns/index.js.map +1 -1
  23. package/dist/templates/tailwind/component/index.js.map +1 -1
  24. package/dist/templates/tailwind/componentModal/index.js.map +1 -1
  25. package/dist/templates/tailwind/components/index.js.map +1 -1
  26. package/dist/templates/tailwind/container/index.js.map +1 -1
  27. package/dist/templates/tailwind/cssClasses.js.map +1 -1
  28. package/dist/templates/tailwind/datagrid/index.js.map +1 -1
  29. package/dist/templates/tailwind/day/index.js.map +1 -1
  30. package/dist/templates/tailwind/dialog/index.js.map +1 -1
  31. package/dist/templates/tailwind/editgrid/index.js.map +1 -1
  32. package/dist/templates/tailwind/editgridTable/index.js.map +1 -1
  33. package/dist/templates/tailwind/errorsList/index.js.map +1 -1
  34. package/dist/templates/tailwind/field/index.js.map +1 -1
  35. package/dist/templates/tailwind/fieldset/index.js.map +1 -1
  36. package/dist/templates/tailwind/file/index.js.map +1 -1
  37. package/dist/templates/tailwind/html/index.js.map +1 -1
  38. package/dist/templates/tailwind/icon/index.js.map +1 -1
  39. package/dist/templates/tailwind/iconClass.d.ts +0 -1
  40. package/dist/templates/tailwind/iconClass.js +4 -54
  41. package/dist/templates/tailwind/iconClass.js.map +1 -1
  42. package/dist/templates/tailwind/index.d.ts +4 -1
  43. package/dist/templates/tailwind/index.js +109 -104
  44. package/dist/templates/tailwind/index.js.map +1 -1
  45. package/dist/templates/tailwind/input/index.js.map +1 -1
  46. package/dist/templates/tailwind/label/index.js.map +1 -1
  47. package/dist/templates/tailwind/loader/index.js.map +1 -1
  48. package/dist/templates/tailwind/loading/index.js.map +1 -1
  49. package/dist/templates/tailwind/lucideIconsMapping.d.ts +1 -0
  50. package/dist/templates/tailwind/lucideIconsMapping.js +76 -0
  51. package/dist/templates/tailwind/lucideIconsMapping.js.map +1 -0
  52. package/dist/templates/tailwind/map/index.js.map +1 -1
  53. package/dist/templates/tailwind/message/index.js.map +1 -1
  54. package/dist/templates/tailwind/modalPreview/index.js.map +1 -1
  55. package/dist/templates/tailwind/modaldialog/index.js.map +1 -1
  56. package/dist/templates/tailwind/modaledit/index.js.map +1 -1
  57. package/dist/templates/tailwind/multiValueRow/index.js.map +1 -1
  58. package/dist/templates/tailwind/multiValueTable/index.js.map +1 -1
  59. package/dist/templates/tailwind/multipleMasksInput/index.js.map +1 -1
  60. package/dist/templates/tailwind/panel/index.js.map +1 -1
  61. package/dist/templates/tailwind/pdf/index.js.map +1 -1
  62. package/dist/templates/tailwind/pdfBuilder/index.js.map +1 -1
  63. package/dist/templates/tailwind/pdfBuilderUpload/index.js.map +1 -1
  64. package/dist/templates/tailwind/radio/index.js.map +1 -1
  65. package/dist/templates/tailwind/resourceAdd/index.js.map +1 -1
  66. package/dist/templates/tailwind/select/index.js.map +1 -1
  67. package/dist/templates/tailwind/selectOption/index.js.map +1 -1
  68. package/dist/templates/tailwind/signature/index.js.map +1 -1
  69. package/dist/templates/tailwind/survey/index.js.map +1 -1
  70. package/dist/templates/tailwind/tab/index.js.map +1 -1
  71. package/dist/templates/tailwind/table/index.js.map +1 -1
  72. package/dist/templates/tailwind/tableComponents/index.js.map +1 -1
  73. package/dist/templates/tailwind/tree/index.js.map +1 -1
  74. package/dist/templates/tailwind/tree/partials/index.js.map +1 -1
  75. package/dist/templates/tailwind/webform/index.js.map +1 -1
  76. package/dist/templates/tailwind/well/index.js.map +1 -1
  77. package/dist/templates/tailwind/wizard/index.js.map +1 -1
  78. package/dist/templates/tailwind/wizardHeader/index.js.map +1 -1
  79. package/dist/templates/tailwind/wizardHeaderClassic/index.js.map +1 -1
  80. package/dist/templates/tailwind/wizardHeaderVertical/index.js.map +1 -1
  81. package/dist/templates/tailwind/wizardNav/index.js.map +1 -1
  82. package/package.json +12 -4
  83. package/readme.md +20 -42
  84. package/src/templates/tailwind/button/button.stories.jsx +19 -19
  85. package/src/templates/tailwind/bxIconsMapping.ts +70 -0
  86. package/src/templates/tailwind/iconClass.ts +11 -62
  87. package/src/templates/tailwind/index.ts +8 -3
  88. package/src/templates/tailwind/lucideIconsMapping.ts +72 -0
  89. package/styles/animations.css +341 -0
  90. package/styles/badge.css +4 -4
  91. package/styles/choices.css +32 -25
  92. package/styles/form.css +7 -2
  93. package/styles/icon.css +33 -0
  94. package/styles/index.css +1 -0
  95. package/styles/react-select.css +69 -5
  96. package/styles/tables.css +24 -57
  97. package/styles/tabs.css +67 -49
  98. package/vite.config.mts +1 -1
  99. package/tsconfig.app.json +0 -11
  100. package/tsconfig.json +0 -16
  101. package/tsconfig.node.json +0 -13
@@ -0,0 +1,341 @@
1
+ @-webkit-keyframes spin {
2
+ 0% {
3
+ -webkit-transform: rotate(0);
4
+ transform: rotate(0);
5
+ }
6
+ 100% {
7
+ -webkit-transform: rotate(359deg);
8
+ transform: rotate(359deg);
9
+ }
10
+ }
11
+
12
+ @keyframes spin {
13
+ 0% {
14
+ -webkit-transform: rotate(0);
15
+ transform: rotate(0);
16
+ }
17
+ 100% {
18
+ -webkit-transform: rotate(359deg);
19
+ transform: rotate(359deg);
20
+ }
21
+ }
22
+
23
+ @-webkit-keyframes burst {
24
+ 0% {
25
+ -webkit-transform: scale(1);
26
+ transform: scale(1);
27
+
28
+ opacity: 1;
29
+ }
30
+ 90% {
31
+ -webkit-transform: scale(1.5);
32
+ transform: scale(1.5);
33
+
34
+ opacity: 0;
35
+ }
36
+ }
37
+
38
+ @keyframes burst {
39
+ 0% {
40
+ -webkit-transform: scale(1);
41
+ transform: scale(1);
42
+
43
+ opacity: 1;
44
+ }
45
+ 90% {
46
+ -webkit-transform: scale(1.5);
47
+ transform: scale(1.5);
48
+
49
+ opacity: 0;
50
+ }
51
+ }
52
+
53
+ @-webkit-keyframes flashing {
54
+ 0% {
55
+ opacity: 1;
56
+ }
57
+ 45% {
58
+ opacity: 0;
59
+ }
60
+ 90% {
61
+ opacity: 1;
62
+ }
63
+ }
64
+
65
+ @keyframes flashing {
66
+ 0% {
67
+ opacity: 1;
68
+ }
69
+ 45% {
70
+ opacity: 0;
71
+ }
72
+ 90% {
73
+ opacity: 1;
74
+ }
75
+ }
76
+
77
+ @-webkit-keyframes fade-left {
78
+ 0% {
79
+ -webkit-transform: translateX(0);
80
+ transform: translateX(0);
81
+
82
+ opacity: 1;
83
+ }
84
+ 75% {
85
+ -webkit-transform: translateX(-20px);
86
+ transform: translateX(-20px);
87
+
88
+ opacity: 0;
89
+ }
90
+ }
91
+
92
+ @keyframes fade-left {
93
+ 0% {
94
+ -webkit-transform: translateX(0);
95
+ transform: translateX(0);
96
+
97
+ opacity: 1;
98
+ }
99
+ 75% {
100
+ -webkit-transform: translateX(-20px);
101
+ transform: translateX(-20px);
102
+
103
+ opacity: 0;
104
+ }
105
+ }
106
+
107
+ @-webkit-keyframes fade-right {
108
+ 0% {
109
+ -webkit-transform: translateX(0);
110
+ transform: translateX(0);
111
+
112
+ opacity: 1;
113
+ }
114
+ 75% {
115
+ -webkit-transform: translateX(20px);
116
+ transform: translateX(20px);
117
+
118
+ opacity: 0;
119
+ }
120
+ }
121
+
122
+ @keyframes fade-right {
123
+ 0% {
124
+ -webkit-transform: translateX(0);
125
+ transform: translateX(0);
126
+
127
+ opacity: 1;
128
+ }
129
+ 75% {
130
+ -webkit-transform: translateX(20px);
131
+ transform: translateX(20px);
132
+
133
+ opacity: 0;
134
+ }
135
+ }
136
+
137
+ @-webkit-keyframes fade-up {
138
+ 0% {
139
+ -webkit-transform: translateY(0);
140
+ transform: translateY(0);
141
+
142
+ opacity: 1;
143
+ }
144
+ 75% {
145
+ -webkit-transform: translateY(-20px);
146
+ transform: translateY(-20px);
147
+
148
+ opacity: 0;
149
+ }
150
+ }
151
+
152
+ @keyframes fade-up {
153
+ 0% {
154
+ -webkit-transform: translateY(0);
155
+ transform: translateY(0);
156
+
157
+ opacity: 1;
158
+ }
159
+ 75% {
160
+ -webkit-transform: translateY(-20px);
161
+ transform: translateY(-20px);
162
+
163
+ opacity: 0;
164
+ }
165
+ }
166
+
167
+ @-webkit-keyframes fade-down {
168
+ 0% {
169
+ -webkit-transform: translateY(0);
170
+ transform: translateY(0);
171
+
172
+ opacity: 1;
173
+ }
174
+ 75% {
175
+ -webkit-transform: translateY(20px);
176
+ transform: translateY(20px);
177
+
178
+ opacity: 0;
179
+ }
180
+ }
181
+
182
+ @keyframes fade-down {
183
+ 0% {
184
+ -webkit-transform: translateY(0);
185
+ transform: translateY(0);
186
+
187
+ opacity: 1;
188
+ }
189
+ 75% {
190
+ -webkit-transform: translateY(20px);
191
+ transform: translateY(20px);
192
+
193
+ opacity: 0;
194
+ }
195
+ }
196
+
197
+ @-webkit-keyframes tada {
198
+ from {
199
+ -webkit-transform: scale3d(1, 1, 1);
200
+ transform: scale3d(1, 1, 1);
201
+ }
202
+
203
+ 10%,
204
+ 20% {
205
+ -webkit-transform: scale3d(.95, .95, .95) rotate3d(0, 0, 1, -10deg);
206
+ transform: scale3d(.95, .95, .95) rotate3d(0, 0, 1, -10deg);
207
+ }
208
+
209
+ 30%,
210
+ 50%,
211
+ 70%,
212
+ 90% {
213
+ -webkit-transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 10deg);
214
+ transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 10deg);
215
+ }
216
+
217
+ 40%,
218
+ 60%,
219
+ 80% {
220
+ -webkit-transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, -10deg);
221
+ transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, -10deg);
222
+ }
223
+
224
+ to {
225
+ -webkit-transform: scale3d(1, 1, 1);
226
+ transform: scale3d(1, 1, 1);
227
+ }
228
+ }
229
+
230
+ @keyframes tada {
231
+ from {
232
+ -webkit-transform: scale3d(1, 1, 1);
233
+ transform: scale3d(1, 1, 1);
234
+ }
235
+
236
+ 10%,
237
+ 20% {
238
+ -webkit-transform: scale3d(.95, .95, .95) rotate3d(0, 0, 1, -10deg);
239
+ transform: scale3d(.95, .95, .95) rotate3d(0, 0, 1, -10deg);
240
+ }
241
+
242
+ 30%,
243
+ 50%,
244
+ 70%,
245
+ 90% {
246
+ -webkit-transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 10deg);
247
+ transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 10deg);
248
+ }
249
+
250
+ 40%,
251
+ 60%,
252
+ 80% {
253
+ -webkit-transform: rotate3d(0, 0, 1, -10deg);
254
+ transform: rotate3d(0, 0, 1, -10deg);
255
+ }
256
+
257
+ to {
258
+ -webkit-transform: scale3d(1, 1, 1);
259
+ transform: scale3d(1, 1, 1);
260
+ }
261
+ }
262
+
263
+ .animate-spin {
264
+ -webkit-animation: spin 2s linear infinite;
265
+ animation: spin 2s linear infinite;
266
+ }
267
+
268
+ .animate-spin-hover:hover {
269
+ -webkit-animation: spin 2s linear infinite;
270
+ animation: spin 2s linear infinite;
271
+ }
272
+
273
+ .animate-tada {
274
+ -webkit-animation: tada 1.5s ease infinite;
275
+ animation: tada 1.5s ease infinite;
276
+ }
277
+
278
+ .animate-tada-hover:hover {
279
+ -webkit-animation: tada 1.5s ease infinite;
280
+ animation: tada 1.5s ease infinite;
281
+ }
282
+
283
+ .animate-flashing {
284
+ -webkit-animation: flashing 1.5s infinite linear;
285
+ animation: flashing 1.5s infinite linear;
286
+ }
287
+
288
+ .animate-flashing-hover:hover {
289
+ -webkit-animation: flashing 1.5s infinite linear;
290
+ animation: flashing 1.5s infinite linear;
291
+ }
292
+
293
+ .animate-burst {
294
+ -webkit-animation: burst 1.5s infinite linear;
295
+ animation: burst 1.5s infinite linear;
296
+ }
297
+
298
+ .animate-burst-hover:hover {
299
+ -webkit-animation: burst 1.5s infinite linear;
300
+ animation: burst 1.5s infinite linear;
301
+ }
302
+
303
+ .animate-fade-up {
304
+ -webkit-animation: fade-up 1.5s infinite linear;
305
+ animation: fade-up 1.5s infinite linear;
306
+ }
307
+
308
+ .animate-fade-up-hover:hover {
309
+ -webkit-animation: fade-up 1.5s infinite linear;
310
+ animation: fade-up 1.5s infinite linear;
311
+ }
312
+
313
+ .animate-fade-down {
314
+ -webkit-animation: fade-down 1.5s infinite linear;
315
+ animation: fade-down 1.5s infinite linear;
316
+ }
317
+
318
+ .animate-fade-down-hover:hover {
319
+ -webkit-animation: fade-down 1.5s infinite linear;
320
+ animation: fade-down 1.5s infinite linear;
321
+ }
322
+
323
+ .animate-fade-left {
324
+ -webkit-animation: fade-left 1.5s infinite linear;
325
+ animation: fade-left 1.5s infinite linear;
326
+ }
327
+
328
+ .animate-fade-left-hover:hover {
329
+ -webkit-animation: fade-left 1.5s infinite linear;
330
+ animation: fade-left 1.5s infinite linear;
331
+ }
332
+
333
+ .animate-fade-right {
334
+ -webkit-animation: fade-right 1.5s infinite linear;
335
+ animation: fade-right 1.5s infinite linear;
336
+ }
337
+
338
+ .animate-fade-right-hover:hover {
339
+ -webkit-animation: fade-right 1.5s infinite linear;
340
+ animation: fade-right 1.5s infinite linear;
341
+ }
package/styles/badge.css CHANGED
@@ -4,7 +4,7 @@ Requires one of the contextual, color modifier classes for `color` and
4
4
  */
5
5
 
6
6
  .badge {
7
- @apply inline-flex py-px px-1.5 font-bold text-center whitespace-nowrap items-center rounded transition-colors;
7
+ @apply inline-flex px-1.5 font-bold text-center whitespace-nowrap items-center rounded transition-colors;
8
8
  font-size: 75%;
9
9
 
10
10
  &:empty {
@@ -17,8 +17,8 @@ Requires one of the contextual, color modifier classes for `color` and
17
17
  }
18
18
 
19
19
  a .badge {
20
- &:hover, &:focus {
21
- @apply no-underline
20
+ &:hover, &:focus, &:active {
21
+ @apply no-underline text-white;
22
22
  }
23
23
  }
24
24
 
@@ -46,7 +46,7 @@ a .badge.bg-primary, .badge-hover.bg-primary {
46
46
 
47
47
  a .badge.bg-secondary, .badge-hover.bg-secondary {
48
48
  &:hover, &:focus {
49
- @apply hover:text-white hover:bg-secondary-800 focus:bg-secondary-800 hover:border-secondary-800 focus:border-secondary-800 focus:text-secondary-800;
49
+ @apply hover:text-white hover:bg-secondary-800 focus:bg-secondary-800 hover:border-secondary-800 focus:border-secondary-800;
50
50
  }
51
51
  }
52
52
 
@@ -26,15 +26,6 @@
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
-
38
29
  &__input {
39
30
  @apply bg-white;
40
31
  }
@@ -91,10 +82,6 @@
91
82
  @apply pb-2;
92
83
  }
93
84
 
94
- &.choices__small .choices__inner {
95
- padding-bottom: 1px;
96
- }
97
-
98
85
  .choices__input {
99
86
  @apply block w-full p-2.5 border-b-1 border-solid border-gray-300 bg-white m-0;
100
87
  }
@@ -182,6 +169,7 @@
182
169
  @apply pb-0;
183
170
  }
184
171
  }
172
+
185
173
  .choices__list--multiple .choices__item {
186
174
  @apply rounded-md bg-primary border-0 text-xs py-1 px-2;
187
175
  font-weight: 600;
@@ -189,7 +177,6 @@
189
177
  }
190
178
 
191
179
 
192
-
193
180
  .is-open .choices__inner, .is-flipped.is-open .choices__inner {
194
181
  @apply rounded-md;
195
182
  }
@@ -298,16 +285,6 @@
298
285
  }
299
286
 
300
287
  @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
-
311
288
  .choices__list--dropdown {
312
289
  .choices__item--selectable {
313
290
  padding-right: 100px;
@@ -338,7 +315,6 @@
338
315
  }
339
316
  }
340
317
 
341
-
342
318
  .choices__heading {
343
319
  @apply font-semibold p-2.5 border-solid border-gray-200 text-gray-600;
344
320
  font-size: inherit;
@@ -365,3 +341,34 @@
365
341
  .choices__placeholder {
366
342
  @apply opacity-50;
367
343
  }
344
+
345
+ /**
346
+ * Choices Size rendering
347
+ */
348
+ .form-group.-size-small {
349
+ .choices {
350
+ .choices__inner {
351
+ @apply px-2;
352
+ padding-top: 3px;
353
+ min-height: 32px;
354
+ font-size: 14px;
355
+ }
356
+
357
+ &[data-type*=select-one] .choices__inner {
358
+ padding-bottom: 1px;
359
+ }
360
+
361
+ .choices__list--multiple .choices__item {
362
+ @apply py-0.5 px-1 text-xs;
363
+ margin-bottom: 3px;
364
+ }
365
+
366
+ .choices__input {
367
+ margin-bottom: 1px;
368
+ }
369
+ &[data-type*=select-multiple] .choices__button,
370
+ &[data-type*=text] .choices__button{
371
+ margin: 0 -2px 0 6px;
372
+ }
373
+ }
374
+ }
package/styles/form.css CHANGED
@@ -23,14 +23,19 @@
23
23
  @apply mb-5;
24
24
  }
25
25
 
26
+
26
27
  .form-control {
27
28
  @apply appearance-none bg-white leading-normal px-3 py-2 block w-full rounded-md border-1 border-gray-300 shadow-sm;
29
+ }
28
30
 
29
- &.form-control-small {
31
+ .form-group.-size-small {
32
+ .form-control {
30
33
  @apply px-2 py-1 text-sm;
34
+ min-height: 32px;
31
35
  }
32
36
  }
33
37
 
38
+
34
39
  .form-control:disabled, .form-control[readonly] {
35
40
  @apply bg-gray-200 border-transparent shadow-none;
36
41
  }
@@ -148,7 +153,7 @@ textarea.form-control {
148
153
  }
149
154
 
150
155
  .field-required:after {
151
- @apply z-1 ml-1;
156
+ @apply z-0 ml-1;
152
157
  }
153
158
 
154
159
  .formio-component hr,
@@ -0,0 +1,33 @@
1
+ .wrapper-icon {
2
+ line-height: 1;
3
+ display: inline-block;
4
+ }
5
+
6
+ [class^="icon-"], [class*=" icon-"] {
7
+ font-weight: normal;
8
+ font-style: normal;
9
+ font-variant: normal;
10
+ line-height: 1;
11
+ display: inline-block;
12
+ text-transform: none;
13
+ speak: none;
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale;
16
+ }
17
+
18
+ .bx-question-mark[ref="tooltip"],
19
+ .icon-circle-question-mark[ref="tooltip"] {
20
+ @apply rounded-full ml-2 text-xs relative;
21
+ top: 1px;
22
+ width: 14px;
23
+ height: 14px;
24
+ line-height: 14px;
25
+ text-align: center;
26
+ }
27
+ .icon-circle-question-mark[ref="tooltip"] {
28
+ @apply text-gray-400;
29
+
30
+ }
31
+ .bx-question-mark[ref="tooltip"]{
32
+ @apply bg-gray-400;
33
+ }
package/styles/index.css CHANGED
@@ -19,3 +19,4 @@
19
19
  @import "grid.css";
20
20
  @import "tabs.css";
21
21
  @import "fieldset.css";
22
+ @import "icon.css";
@@ -4,7 +4,7 @@
4
4
  flex: 1;
5
5
 
6
6
  .react-select__control {
7
- @apply appearance-none bg-white leading-normal w-full rounded-md border-1 border-gray-300 shadow-sm;
7
+ @apply appearance-none bg-white leading-normal w-full rounded-md border-1 border-gray-300;
8
8
 
9
9
  &--is-focused {
10
10
  @apply outline-none border-primary-300 ring ring-primary-50 ring-opacity-50;
@@ -23,7 +23,8 @@
23
23
  }
24
24
 
25
25
  &__remove {
26
- @apply opacity-80;
26
+ @apply opacity-80;
27
+
27
28
  &:hover {
28
29
  @apply bg-transparent text-white opacity-100;
29
30
  }
@@ -35,7 +36,70 @@
35
36
  }
36
37
  }
37
38
 
38
- .input-group-prepend + .react-select-container .react-select__control {
39
- border-top-left-radius: 0;
40
- border-bottom-left-radius: 0;
39
+ .form-group.-with-before {
40
+ .react-select-container .react-select__control {
41
+ border-top-left-radius: 0;
42
+ border-bottom-left-radius: 0;
43
+ }
44
+ }
45
+
46
+ .form-group.-with-after {
47
+ .react-select-container .react-select__control {
48
+ border-top-right-radius: 0;
49
+ border-bottom-right-radius: 0;
50
+ }
51
+ }
52
+
53
+ /**
54
+ * React Select size rendering
55
+ */
56
+ .form-group.-size-small {
57
+ .react-select-container {
58
+ .react-select__control {
59
+ min-height: 28px;
60
+ }
61
+
62
+ .react-select__value-container {
63
+ padding-top: 0;
64
+ padding-bottom: 0;
65
+ }
66
+
67
+ .react-select__indicator {
68
+ padding: 3px;
69
+ }
70
+
71
+ .react-select__multi-value {
72
+ &__label {
73
+ @apply text-white text-xs py-0.5 px-1;
74
+ font-weight: 600;
75
+ }
76
+
77
+ &__remove {
78
+ @apply opacity-80;
79
+
80
+ &:hover {
81
+ @apply bg-transparent text-white opacity-100;
82
+ }
83
+ }
84
+ }
85
+
86
+ .react-select__input-container {
87
+ margin-top: 1px;
88
+ margin-bottom: 1px;
89
+ }
90
+
91
+ .react-select__placeholder {
92
+ @apply text-gray-500;
93
+ }
94
+
95
+ .react-select__option,
96
+ .react-select__placeholder,
97
+ .react-select__single-value {
98
+ @apply text-sm;
99
+ }
100
+
101
+ .react-select__value-container.react-select__value-container--is-multi {
102
+ @apply px-1 py-0;
103
+ }
104
+ }
41
105
  }