@tsed/tailwind-formio 3.0.0-rc.9 → 3.0.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.
@@ -68,7 +68,9 @@ const e = {
68
68
  reset: "rotate-ccw",
69
69
  loader: "loader-circle",
70
70
  detail: "file-text",
71
- spreadsheet: "file-spreadsheet"
71
+ spreadsheet: "file-spreadsheet",
72
+ "sort-up": "arrow-up-narrow-wide",
73
+ "sort-down": "arrow-down-narrow-wide"
72
74
  };
73
75
  export {
74
76
  e as LucideIconsMapping
@@ -1 +1 @@
1
- {"version":3,"file":"lucideIconsMapping.js","sources":["../../../src/templates/tailwind/lucideIconsMapping.ts"],"sourcesContent":["export const LucideIconsMapping: Record<string, any> = {\n remove: \"trash\",\n \"question-sign\": \"circle-question-mark\",\n \"new-window\": \"app-window\",\n \"minus-square-o\": \"square-minus\",\n cog: \"cog\",\n move: \"move\",\n wrench: \"wrench\",\n save: \"save\",\n copy: \"copy\",\n calendar: \"calendar\",\n file: \"file\",\n wpforms: \"picture-in-picture-2\",\n \"files-o\": \"files\",\n refresh: \"refresh-cw\",\n indent: \"list-indent-increase\",\n tasks: \"rows-2\",\n th: \"grid-3x3\",\n \"th-list\": \"panel-top-open\",\n \"folder-open\": \"folder-open\",\n \"folder-o\": \"folder\",\n \"user-secret\": \"user-round-x\",\n table: \"table\",\n pencil: \"pencil\",\n code: \"code\",\n terminal: \"terminal\",\n home: \"house\",\n html5: \"file-text\",\n list: \"list\",\n usd: \"dollar-sign\",\n hashtag: \"hash\",\n tags: \"tags\",\n at: \"at-sign\",\n font: \"type\",\n asterisk: \"asterisk\",\n plus: \"plus\",\n \"plus-square\": \"list-check\",\n \"plus-square-o\": \"square-plus\",\n \"dot-circle-o\": \"circle-check\",\n \"phone-square\": \"phone\",\n \"clock-o\": \"clock\",\n link: \"link\",\n columns: \"columns-3\",\n \"th-large\": \"layout-grid\",\n \"list-alt\": \"app-window\",\n \"square-o\": \"square\",\n cubes: \"boxes\",\n stop: \"square\",\n \"check-square\": \"square-check\",\n \"remove-circle\": \"x\",\n \"circle-xmark\": \"circle-x\",\n bars: \"list\",\n edit: \"square-pen\",\n time: \"clock\",\n microphone: \"mic\",\n video: \"video\",\n \"times-circle\": \"circle-x\",\n minus: \"minus\",\n circle: \"circle\",\n \"search-plus\": \"zoom-in\",\n \"search-minus\": \"zoom-out\",\n \"hand-paper-o\": \"pointer\",\n undo: \"undo-2\",\n redo: \"redo-2\",\n repeat: \"repeat\",\n data: \"database\",\n \"paper-plane\": \"send\",\n reset: \"rotate-ccw\",\n loader: \"loader-circle\",\n detail: \"file-text\",\n spreadsheet: \"file-spreadsheet\"\n};\n"],"names":["LucideIconsMapping"],"mappings":"AAAO,MAAMA,IAA0C;AAAA,EACrD,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,KAAK;AAAA,EACL,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,IAAI;AAAA,EACJ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK;AAAA,EACL,SAAS;AAAA,EACT,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,gBAAgB;AAAA,EAChB,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,eAAe;AAAA,EACf,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AACf;"}
1
+ {"version":3,"file":"lucideIconsMapping.js","sources":["../../../src/templates/tailwind/lucideIconsMapping.ts"],"sourcesContent":["export const LucideIconsMapping: Record<string, any> = {\n remove: \"trash\",\n \"question-sign\": \"circle-question-mark\",\n \"new-window\": \"app-window\",\n \"minus-square-o\": \"square-minus\",\n cog: \"cog\",\n move: \"move\",\n wrench: \"wrench\",\n save: \"save\",\n copy: \"copy\",\n calendar: \"calendar\",\n file: \"file\",\n wpforms: \"picture-in-picture-2\",\n \"files-o\": \"files\",\n refresh: \"refresh-cw\",\n indent: \"list-indent-increase\",\n tasks: \"rows-2\",\n th: \"grid-3x3\",\n \"th-list\": \"panel-top-open\",\n \"folder-open\": \"folder-open\",\n \"folder-o\": \"folder\",\n \"user-secret\": \"user-round-x\",\n table: \"table\",\n pencil: \"pencil\",\n code: \"code\",\n terminal: \"terminal\",\n home: \"house\",\n html5: \"file-text\",\n list: \"list\",\n usd: \"dollar-sign\",\n hashtag: \"hash\",\n tags: \"tags\",\n at: \"at-sign\",\n font: \"type\",\n asterisk: \"asterisk\",\n plus: \"plus\",\n \"plus-square\": \"list-check\",\n \"plus-square-o\": \"square-plus\",\n \"dot-circle-o\": \"circle-check\",\n \"phone-square\": \"phone\",\n \"clock-o\": \"clock\",\n link: \"link\",\n columns: \"columns-3\",\n \"th-large\": \"layout-grid\",\n \"list-alt\": \"app-window\",\n \"square-o\": \"square\",\n cubes: \"boxes\",\n stop: \"square\",\n \"check-square\": \"square-check\",\n \"remove-circle\": \"x\",\n \"circle-xmark\": \"circle-x\",\n bars: \"list\",\n edit: \"square-pen\",\n time: \"clock\",\n microphone: \"mic\",\n video: \"video\",\n \"times-circle\": \"circle-x\",\n minus: \"minus\",\n circle: \"circle\",\n \"search-plus\": \"zoom-in\",\n \"search-minus\": \"zoom-out\",\n \"hand-paper-o\": \"pointer\",\n undo: \"undo-2\",\n redo: \"redo-2\",\n repeat: \"repeat\",\n data: \"database\",\n \"paper-plane\": \"send\",\n reset: \"rotate-ccw\",\n loader: \"loader-circle\",\n detail: \"file-text\",\n spreadsheet: \"file-spreadsheet\",\n \"sort-up\": \"arrow-up-narrow-wide\",\n \"sort-down\": \"arrow-down-narrow-wide\"\n};\n"],"names":["LucideIconsMapping"],"mappings":"AAAO,MAAMA,IAA0C;AAAA,EACrD,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,KAAK;AAAA,EACL,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,IAAI;AAAA,EACJ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,KAAK;AAAA,EACL,SAAS;AAAA,EACT,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,gBAAgB;AAAA,EAChB,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,eAAe;AAAA,EACf,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,WAAW;AAAA,EACX,aAAa;AACf;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/tailwind-formio",
3
- "version": "3.0.0-rc.9",
3
+ "version": "3.0.1",
4
4
  "description": "Tailwind templates for form.io forms.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -66,8 +66,5 @@
66
66
  "url": "https://github.com/tsedio/tsed-formio/issues"
67
67
  },
68
68
  "homepage": "https://github.com/tsedio/tsed-formio/tree/master/packages/tailwind-formio",
69
- "author": "Romain Lenzotti",
70
- "publishConfig": {
71
- "tag": "rc"
72
- }
69
+ "author": "Romain Lenzotti"
73
70
  }
@@ -68,5 +68,7 @@ export const LucideIconsMapping: Record<string, any> = {
68
68
  reset: "rotate-ccw",
69
69
  loader: "loader-circle",
70
70
  detail: "file-text",
71
- spreadsheet: "file-spreadsheet"
71
+ spreadsheet: "file-spreadsheet",
72
+ "sort-up": "arrow-up-narrow-wide",
73
+ "sort-down": "arrow-down-narrow-wide"
72
74
  };
@@ -1,6 +1,7 @@
1
1
  .choices {
2
2
  @apply relative mb-4;
3
3
  font-size: inherit;
4
+ overflow: hidden;
4
5
 
5
6
  &:focus {
6
7
  @apply outline-none;
@@ -19,9 +20,15 @@
19
20
  @apply mb-0;
20
21
  }
21
22
 
22
- &__inner {
23
- @apply appearance-none bg-white leading-normal px-3 py-2 pb-0 block w-full rounded-md border-1 border-gray-300 shadow-sm;
24
- min-height: 42px;
23
+ &.is-open {
24
+ overflow: visible;
25
+ }
26
+
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;
25
32
  font-size: inherit;
26
33
  line-height: inherit;
27
34
  }
@@ -54,6 +61,7 @@
54
61
  }
55
62
 
56
63
  &.is-disabled {
64
+ .form-control.ui,
57
65
  .choices__inner,
58
66
  .choices__input {
59
67
  @apply bg-gray-300 opacity-100 cursor-not-allowed;
@@ -68,18 +76,24 @@
68
76
  }
69
77
 
70
78
  [hidden] {
71
- display: none !important
79
+ position: absolute;
80
+ inset: 0;
81
+ pointer-events: none;
82
+ opacity: 0;
72
83
  }
73
84
 
74
85
  &[data-type*=select-one] {
75
- @apply cursor-pointer;
76
- }
77
-
78
- &[data-type*=select-one] {
79
- position: relative;
86
+ @apply cursor-pointer relative;
80
87
 
88
+ .form-control.ui,
81
89
  .choices__inner {
82
- @apply pb-2;
90
+ @apply flex items-center;
91
+ padding: 0;
92
+
93
+ .choices__list {
94
+ @apply block;
95
+ padding: 0 16px 0 8px;
96
+ }
83
97
  }
84
98
 
85
99
  .choices__input {
@@ -104,7 +118,8 @@
104
118
  }
105
119
  }
106
120
 
107
- .choices__item[data-value=''] .choices__button {
121
+ .choices__item[data-value=''] .choices__button,
122
+ .choices__item[data-placeholder] .choices__button {
108
123
  @apply hidden;
109
124
  }
110
125
 
@@ -155,6 +170,23 @@
155
170
  }
156
171
 
157
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
+
158
190
  &:after {
159
191
  @apply h-0 w-0 border-solid absolute border-0 h-full top-0 m-0 right-1.5;
160
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");
@@ -169,32 +201,31 @@
169
201
  @apply pb-0;
170
202
  }
171
203
  }
172
-
173
- .choices__list--multiple .choices__item {
174
- @apply rounded-md bg-primary border-0 text-xs py-1 px-2;
175
- font-weight: 600;
176
- }
177
- }
178
-
179
-
180
- .is-open .choices__inner, .is-flipped.is-open .choices__inner {
181
- @apply rounded-md;
182
204
  }
183
205
 
184
206
  .choices__list {
185
207
  @apply m-0 pl-0;
186
208
  list-style: none;
187
209
 
210
+ &[aria-expanded] {
211
+ @apply absolute z-5 w-full bg-white border-1 border-solid border-gray-300 overflow-hidden break-all top-full;
212
+ margin-top: -1px;
213
+ border-bottom-left-radius: 0.375rem;
214
+ border-bottom-right-radius: 0.375rem;
215
+ display: none;
216
+
217
+ &.is-active {
218
+ display: block;
219
+ }
220
+ }
221
+
188
222
  &--single {
189
- @apply inline-block p-0 w-full;
223
+ @apply inline-block w-full;
224
+ padding: 4px 16px 4px 4px;
190
225
 
191
226
  .choices__item {
192
227
  @apply w-full;
193
228
  }
194
-
195
- .choices__item.choices__item--selectable {
196
- margin-bottom: -0.375rem;
197
- }
198
229
  }
199
230
 
200
231
  &--multiple {
@@ -219,23 +250,12 @@
219
250
  }
220
251
  }
221
252
 
222
- &--dropdown[aria-expanded=true] {
223
- @apply invisible absolute z-5 w-full bg-white border-1 border-solid border-gray-300 rounded-md overflow-hidden break-all top-full;
224
- will-change: visibility;
225
-
226
- &.is-active {
227
- visibility: visible
228
- }
229
-
253
+ &--dropdown {
230
254
  .choices__list {
231
255
  @apply relative overflow-auto;
232
256
  max-height: 300px;
233
257
  -webkit-overflow-scrolling: touch;
234
258
  will-change: scroll-position;
235
-
236
- .choices__item--selectable.is-highlighted:after {
237
- @apply opacity-50;
238
- }
239
259
  }
240
260
 
241
261
  .choices__item {
@@ -243,6 +263,7 @@
243
263
  padding: 10px;
244
264
  font-size: 14px;
245
265
 
266
+ &--selectable.is-selected,
246
267
  &--selectable.is-highlighted {
247
268
  @apply bg-gray-200;
248
269
  }
@@ -284,30 +305,50 @@
284
305
  border-radius: .25rem .25rem 0 0
285
306
  }
286
307
 
308
+ .is-open .choices__inner {
309
+ border-bottom-left-radius: 0;
310
+ border-bottom-right-radius: 0;
311
+ }
312
+
313
+ .is-flipped.is-open .choices__inner {
314
+ border-top-left-radius: 0;
315
+ border-top-right-radius: 0;
316
+ border-bottom-left-radius: 0.375rem;
317
+ border-bottom-right-radius: 0.375rem;
318
+ }
319
+
287
320
  @media (min-width: 640px) {
288
321
  .choices__list--dropdown {
289
322
  .choices__item--selectable {
290
- padding-right: 100px;
323
+ &.is-highlighted[data-select-text] {
324
+ padding-right: 100px;
325
+ }
291
326
 
292
- &:after {
327
+ &.is-highlighted[data-select-text]::after {
293
328
  content: attr(data-select-text);
294
329
  font-size: 12px;
295
- opacity: 0;
296
330
  position: absolute;
297
331
  right: 10px;
298
332
  top: 50%;
299
333
  transform: translateY(-50%)
300
334
  }
335
+
336
+ &.is-selected::after {
337
+ content: none !important;
338
+ }
301
339
  }
302
340
  }
303
341
 
304
342
  [dir=rtl] .choices__list--dropdown {
305
343
  .choices__item--selectable {
306
344
  text-align: right;
307
- padding-left: 100px;
308
345
  padding-right: 10px;
309
346
 
310
- &:after {
347
+ &.is-highlighted[data-select-text] {
348
+ padding-left: 100px;
349
+ }
350
+
351
+ &.is-highlighted[data-select-text]::after {
311
352
  right: auto;
312
353
  left: 10px
313
354
  }
@@ -331,6 +372,22 @@
331
372
 
332
373
  .choices__input {
333
374
  @apply inline-block align-baseline bg-white pb-1 rounded-none border-0 max-w-full text-sm;
375
+ margin-bottom: 5px;
376
+ padding: 4px 0 4px 2px;
377
+
378
+ &::-webkit-search-decoration,
379
+ &::-webkit-search-cancel-button,
380
+ &::-webkit-search-results-button,
381
+ &::-webkit-search-results-decoration {
382
+ display: none;
383
+ }
384
+
385
+ &::-ms-clear,
386
+ &::-ms-reveal {
387
+ display: none;
388
+ width: 0;
389
+ height: 0;
390
+ }
334
391
  }
335
392
 
336
393
  [dir=rtl] .choices__input {
@@ -347,28 +404,32 @@
347
404
  */
348
405
  .form-group.-size-small {
349
406
  .choices {
407
+
408
+ .form-control.ui,
350
409
  .choices__inner {
351
- @apply px-2;
352
- padding-top: 3px;
353
410
  min-height: 32px;
354
411
  font-size: 14px;
355
412
  }
356
413
 
357
- &[data-type*=select-one] .choices__inner {
358
- padding-bottom: 1px;
414
+ &[data-type*=select-multiple] .choices__inner {
415
+ padding-top: 3px;
359
416
  }
360
417
 
361
- .choices__list--multiple .choices__item {
362
- @apply py-0.5 px-1 text-xs;
363
- margin-bottom: 3px;
418
+ .choices__list--multiple {
419
+ .choices__item {
420
+ @apply py-0.5 px-1 text-xs;
421
+ margin-bottom: 3px;
422
+ }
364
423
  }
365
424
 
366
425
  .choices__input {
367
426
  margin-bottom: 1px;
368
427
  }
428
+
369
429
  &[data-type*=select-multiple] .choices__button,
370
- &[data-type*=text] .choices__button{
430
+ &[data-type*=text] .choices__button {
371
431
  margin: 0 -2px 0 6px;
372
432
  }
373
433
  }
374
434
  }
435
+
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
 
@@ -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 flex-auto mb-0 mt-0 shadow-none;
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,
@@ -58,7 +58,9 @@
58
58
  .react-select__control {
59
59
  min-height: 28px;
60
60
  }
61
-
61
+ .react-select__placeholder {
62
+ white-space: nowrap;
63
+ }
62
64
  .react-select__value-container {
63
65
  padding-top: 0;
64
66
  padding-bottom: 0;
package/styles/tables.css CHANGED
@@ -33,7 +33,7 @@
33
33
  @apply flex items-center justify-center;
34
34
 
35
35
  > span:first-child {
36
- @apply flex-1;
36
+ @apply flex-1 whitespace-nowrap overflow-hidden text-ellipsis;
37
37
  }
38
38
  }
39
39
 
@@ -99,7 +99,11 @@
99
99
  }
100
100
 
101
101
  .table-group {
102
- @apply border-1 border-gray-300 dark:border-gray-700 flex flex-col w-full overflow-x-auto;
102
+ @apply border-1 border-gray-300 dark:border-gray-700 flex flex-col w-full;
103
+
104
+ .table-group-body {
105
+ @apply overflow-x-auto;
106
+ }
103
107
 
104
108
  &.border-top-0 {
105
109
  @apply border-t-0;
@@ -112,11 +116,11 @@
112
116
  }
113
117
  }
114
118
 
115
- .pagination-group {
116
- @apply border-t-1 border-gray-300 dark:border-gray-700 p-3;
119
+ .table-group-footer {
120
+ @apply overflow-hidden flex flex-wrap;
117
121
  }
118
122
 
119
- .table-group-footer {
120
- @apply overflow-hidden flex flex-wrap
123
+ .pagination-group {
124
+ @apply border-t-1 border-gray-300 dark:border-gray-700 p-3;
121
125
  }
122
126
  }