testio-tailwind 3.18.0 → 3.19.0
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/src/assets/stylesheets/app.css +1 -0
- package/src/assets/stylesheets/components/checkboxes_radiobuttons.css +3 -4
- package/src/assets/stylesheets/components/forms.css +1 -1
- package/src/assets/stylesheets/components/select.css +3 -4
- package/src/assets/stylesheets/components/selectable_token.css +22 -19
- package/src/assets/stylesheets/components/toggleswitch.css +7 -4
- package/src/assets/stylesheets/components/uploads.css +17 -8
- package/src/assets/stylesheets/plugin_themes/dropzone.css +1 -1
- package/src/assets/stylesheets/plugin_themes/select2.css +15 -18
- package/src/assets/stylesheets/plugin_themes/tom_select.css +1 -1
- package/src/pages/forms/uploads.pug +3 -3
- package/src/static/app.bundled.js +0 -6663
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@import './plugin_themes/select2.css' layer(components);
|
|
17
17
|
@import './plugin_themes/markdown_trix_styles.css' layer(components);
|
|
18
18
|
@import './plugin_themes/pagy.css' layer(components);
|
|
19
|
+
@import './plugin_themes/dropzone.css' layer(components);
|
|
19
20
|
|
|
20
21
|
/*//// Components ////*/
|
|
21
22
|
@import './components/fonts.css' layer(components);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.form-check input {
|
|
22
|
-
@apply h-btn-sm w-btn-sm border border-primary dark:border-
|
|
22
|
+
@apply h-btn-sm w-btn-sm border border-primary dark:border-label-color rounded-sm bg-transparent;
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
flex-shrink: 0;
|
|
25
25
|
}
|
|
@@ -123,11 +123,10 @@
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
.form-radio input {
|
|
126
|
-
@apply w-btn-sm h-btn-sm border border-primary dark:border-
|
|
126
|
+
@apply w-btn-sm h-btn-sm border border-primary dark:border-label-color;
|
|
127
127
|
|
|
128
128
|
&:disabled {
|
|
129
|
-
@apply border-disabled;
|
|
130
|
-
background-image: url("/assets/images/pattern-striped-bright.png");
|
|
129
|
+
@apply border-disabled bg-pattern-disabled-bright dark:bg-pattern-disabled-dark;
|
|
131
130
|
background-repeat: repeat;
|
|
132
131
|
background-color: transparent;
|
|
133
132
|
cursor: not-allowed;
|
|
@@ -23,12 +23,11 @@ select {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.form-select-native select {
|
|
26
|
-
@apply relative flex flex-row w-full justify-start items-stretch min-h-btn py-xs px-sm text-base text-white rounded bg-primary outline-hidden border-0 cursor-pointer;
|
|
26
|
+
@apply relative flex flex-row w-full justify-start items-stretch min-h-btn py-xs px-sm text-base text-white rounded bg-primary outline-hidden border-0 cursor-pointer dark:bg-gray-700;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.form-select-native .select-wrapper select:disabled {
|
|
30
|
-
@apply border border-bordercolor text-disabled cursor-not-allowed hover:text-disabled bg-transparent;
|
|
31
|
-
background-image: url("/assets/images/pattern-striped-bright.png");
|
|
30
|
+
@apply border border-bordercolor text-disabled cursor-not-allowed hover:text-disabled bg-transparent bg-pattern-disabled-bright dark:bg-pattern-disabled-dark;
|
|
32
31
|
background-repeat: repeat;
|
|
33
32
|
&::after {
|
|
34
33
|
@apply bg-disabled;
|
|
@@ -43,7 +42,7 @@ select {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
.form-select-native option {
|
|
46
|
-
@apply appearance-none py-xxs;
|
|
45
|
+
@apply appearance-none py-xxs first:rounded-t last:rounded-b;
|
|
47
46
|
&:hover,
|
|
48
47
|
&:focus {
|
|
49
48
|
@apply bg-link-hover;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.selectable-token label {
|
|
7
|
-
@apply relative inline-flex items-center justify-start h-btn m-0 py-xs px-md text-primary bg-transparent border border-primary rounded cursor-pointer;
|
|
7
|
+
@apply relative inline-flex items-center justify-start h-btn m-0 py-xs px-md text-primary bg-transparent border border-primary rounded cursor-pointer dark:border-bordercolor dark:rounded-md;
|
|
8
8
|
line-height: normal;
|
|
9
9
|
&:hover, &:focus {
|
|
10
10
|
@apply text-white bg-link-hover border-link-hover;
|
|
@@ -106,23 +106,6 @@
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
.toggle-btn-group {
|
|
111
|
-
@apply flex;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.toggle-btn-group .selectable-token label {
|
|
115
|
-
@apply rounded-none;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.toggle-btn-group .selectable-token:first-child label {
|
|
119
|
-
@apply rounded-l;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.toggle-btn-group .selectable-token:last-child label {
|
|
123
|
-
@apply rounded-r;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
109
|
/*////// Token LG /////*/
|
|
127
110
|
|
|
128
111
|
.selectable-token.lg label,
|
|
@@ -143,7 +126,7 @@
|
|
|
143
126
|
}
|
|
144
127
|
|
|
145
128
|
.selectable-token.lg .icon {
|
|
146
|
-
@apply flex justify-center items-center mb-xxs w-btn-lg h-btn-lg text-icon-lg text-primary border border-primary rounded;
|
|
129
|
+
@apply flex justify-center items-center mb-xxs w-btn-lg h-btn-lg text-icon-lg text-primary border border-primary rounded dark:rounded-md dark:border-bordercolor;
|
|
147
130
|
}
|
|
148
131
|
|
|
149
132
|
.selectable-token.lg input:checked + label .icon {
|
|
@@ -191,3 +174,23 @@
|
|
|
191
174
|
@apply block text-icon-xl h-icon-xl my-xs;
|
|
192
175
|
}
|
|
193
176
|
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/*///// Toggle buttons /////*/
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
.toggle-btn-group {
|
|
183
|
+
@apply flex;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.toggle-btn-group .selectable-token label {
|
|
187
|
+
@apply rounded-none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.toggle-btn-group .selectable-token:first-child label {
|
|
191
|
+
@apply rounded-l dark:rounded-l-md;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.toggle-btn-group .selectable-token:last-child label {
|
|
195
|
+
@apply rounded-r dark:rounded-r-md;
|
|
196
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.toggle-switch-label {
|
|
12
|
-
@apply inline-block ml-xs text-base font-normal
|
|
12
|
+
@apply inline-block ml-xs text-base font-normal cursor-pointer dark:text-appbody-textcolor;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.toggle-switch input,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.toggle-switch .slider {
|
|
21
|
-
@apply absolute top-0 left-0 right-0 bottom-0 bg-gray-light transition-transform cursor-pointer;
|
|
21
|
+
@apply absolute top-0 left-0 right-0 bottom-0 bg-gray-light transition-transform cursor-pointer dark:bg-gray-700;
|
|
22
22
|
border-radius: 20px;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -48,8 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.toggle-switch.disabled .slider {
|
|
51
|
-
@apply border border-disabled;
|
|
52
|
-
background-image: url("/assets/images/pattern-striped-bright.png");
|
|
51
|
+
@apply border border-bordercolor bg-pattern-disabled-bright dark:bg-pattern-disabled-dark;
|
|
53
52
|
background-repeat: repeat;
|
|
54
53
|
background-color: transparent;
|
|
55
54
|
cursor: not-allowed;
|
|
@@ -60,6 +59,10 @@
|
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
61
|
|
|
62
|
+
.dark .toggle-switch.disabled .slider::before {
|
|
63
|
+
@apply bg-gray-700;
|
|
64
|
+
}
|
|
65
|
+
|
|
63
66
|
.toggle-switch input:disabled + .slider,
|
|
64
67
|
.toggle-switch input:disabled + label {
|
|
65
68
|
background-color: transparent;
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.attachment {
|
|
21
|
-
@apply relative inline-flex flex-col h-auto w-xxl overflow-visible rounded;
|
|
21
|
+
@apply relative inline-flex flex-col h-auto w-xxl overflow-visible rounded dark:rounded-md select-none;
|
|
22
22
|
|
|
23
23
|
& .attachment-thumb {
|
|
24
|
-
@apply relative flex justify-center items-center w-xxl h-xxl overflow-hidden border-1 border-primary bg-primary
|
|
24
|
+
@apply relative flex justify-center items-center w-xxl h-xxl overflow-hidden border-1 border-primary bg-primary text-white dark:border-bordercolor rounded dark:rounded-md;
|
|
25
25
|
|
|
26
26
|
& .icon {
|
|
27
27
|
@apply text-icon-lg;
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
& .attachment-name {
|
|
40
|
-
@apply mt-xxs text-xs font-normal text-center text-
|
|
40
|
+
@apply mt-xxs text-xs font-normal text-center text-appbody-textcolor line-clamp-3 leading-tight whitespace-normal break-all;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
& .attachment-btn {
|
|
44
|
-
@apply absolute flex justify-center top-0 right-0 w-btn-sm h-btn-sm p-0 text-icon rounded-tr;
|
|
44
|
+
@apply absolute flex justify-center top-0 right-0 w-btn-sm h-btn-sm p-0 text-icon rounded-tr dark:rounded-md;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
/*///// Selectable / checkbox attachment /////*/
|
|
58
58
|
|
|
59
59
|
.attachment.selectable {
|
|
60
60
|
@apply ml-spacing;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.attachment.selectable .attachment-thumb {
|
|
72
|
-
@apply bg-gray border border-bordercolor hover:border-link-hover hover:bg-link-hover;
|
|
72
|
+
@apply bg-gray border border-bordercolor hover:border-link-hover hover:bg-link-hover select-none;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.attachment.selectable label::before {
|
|
@@ -77,10 +77,19 @@
|
|
|
77
77
|
content: "";
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
.dark .attachment.selectable label::before {
|
|
81
|
+
@apply border-label-color rounded-sm;
|
|
82
|
+
}
|
|
83
|
+
|
|
80
84
|
.attachment.selectable input:checked + label::before {
|
|
81
|
-
@apply bg-info;
|
|
82
|
-
|
|
85
|
+
@apply bg-info border-info;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.attachment.selectable input:checked + label::after {
|
|
89
|
+
@apply absolute top-0 -left-spacing h-md w-md bg-white border-0;
|
|
90
|
+
mask-image: url("/assets/images/icons/checkbox-background-sm.svg");
|
|
83
91
|
mask-repeat: no-repeat;
|
|
92
|
+
content: "";
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
.attachment.selectable input:checked + label .attachment-thumb {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* Dropzone plugin */
|
|
3
3
|
|
|
4
4
|
.dropzone {
|
|
5
|
-
@apply relative flex justify-center items-start flex-wrap min-h-xxl p-md border border-dashed border-primary rounded text-
|
|
5
|
+
@apply relative flex flex-col justify-center items-start flex-wrap min-h-xxl p-md border border-dashed border-primary rounded text-appbody-textcolor hover:border-link-hover hover:text-link-hover cursor-pointer;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.dz-preview {
|
|
@@ -91,11 +91,11 @@ select.select2 {
|
|
|
91
91
|
.select2-container {
|
|
92
92
|
.select2-selection,
|
|
93
93
|
.select2-search__field {
|
|
94
|
-
@apply bg-primary border-primary text-white;
|
|
94
|
+
@apply bg-primary border-primary text-white dark:text-white dark:bg-gray-700 dark:border-0;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.select2-dropdown {
|
|
98
|
-
@apply bg-primary border-link-hover text-white;
|
|
98
|
+
@apply bg-primary border-link-hover text-white dark:bg-gray-700 dark:border-0;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.select2-selection__arrow {
|
|
@@ -107,7 +107,7 @@ select.select2 {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.select2-search__field {
|
|
110
|
-
@apply bg-petrol-dark;
|
|
110
|
+
@apply bg-petrol-dark dark:bg-gray-800 dark:rounded-s-md;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.select2-results__option--highlighted {
|
|
@@ -116,15 +116,15 @@ select.select2 {
|
|
|
116
116
|
|
|
117
117
|
&.select2-container--open {
|
|
118
118
|
&.select2-container--below .select2-selection {
|
|
119
|
-
@apply border-primary;
|
|
119
|
+
@apply border-primary dark:border-0;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
&.select2-container--above .select2-selection {
|
|
123
|
-
@apply border-primary;
|
|
123
|
+
@apply border-primary dark:border-0;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.select2-dropdown--below {
|
|
127
|
-
@apply border-t border-white;
|
|
127
|
+
@apply border-t border-white dark:border-bordercolor;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.select2-dropdown--above {
|
|
@@ -143,12 +143,12 @@ select.select2 {
|
|
|
143
143
|
@apply min-h-btn p-xs;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.select2-container .select2-
|
|
147
|
-
@apply
|
|
146
|
+
.select2-container .select2-selection--multiple .select2-search.select2-search--inline {
|
|
147
|
+
@apply relative w-full m-0 p-0;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.select2-
|
|
151
|
-
@apply
|
|
150
|
+
.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
|
|
151
|
+
@apply m-0 px-sm py-xxs dark:bg-black;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
|
@@ -156,14 +156,14 @@ select.select2 {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.select2-container .select2-search--inline .select2-search__field {
|
|
159
|
-
@apply bg-petrol-dark text-white px-xs;
|
|
159
|
+
@apply bg-petrol-dark text-white px-xs dark:bg-transparent;
|
|
160
160
|
width: 100% !important;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/*/ multi select items */
|
|
164
164
|
|
|
165
165
|
.select2-container--testio li.select2-selection__choice {
|
|
166
|
-
@apply relative inline-flex flex-row-reverse flex-grow-0 items-stretch mr-xxs mb-xxs pl-xxs pr-0 text-sm text-black bg-white rounded;
|
|
166
|
+
@apply relative inline-flex flex-row-reverse flex-grow-0 items-stretch mr-xxs mb-xxs pl-xxs pr-0 text-sm text-black bg-white rounded dark:text-white dark:bg-gray-600 dark:border-0;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.select2-selection__choice__display {
|
|
@@ -171,9 +171,7 @@ select.select2 {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.select2-selection__choice__remove {
|
|
174
|
-
@apply flex justify-center items-center w-btn-xs text-primary rounded-r bg-transparent border-0;
|
|
175
|
-
margin-top: -2px;
|
|
176
|
-
margin-bottom: -2px;
|
|
174
|
+
@apply flex justify-center items-center w-btn-xs text-primary rounded-r bg-transparent border-0 dark:text-white cursor-pointer;
|
|
177
175
|
font-size: 0;
|
|
178
176
|
&::after {
|
|
179
177
|
@apply bg-primary;
|
|
@@ -195,7 +193,7 @@ select.select2 {
|
|
|
195
193
|
/*///// Optgroups /////*/
|
|
196
194
|
|
|
197
195
|
.select2-results__group {
|
|
198
|
-
@apply py-xs px-sm;
|
|
196
|
+
@apply py-xs px-sm dark:pb-sm dark:text-label dark:text-label-color dark:uppercase dark:font-normal;
|
|
199
197
|
}
|
|
200
198
|
|
|
201
199
|
.select2-results__option.select2-results__option--group {
|
|
@@ -209,8 +207,7 @@ select.select2 {
|
|
|
209
207
|
/*///// Disabled /////*/
|
|
210
208
|
|
|
211
209
|
.select2-container--disabled .select2-selection {
|
|
212
|
-
@apply border border-bordercolor text-disabled cursor-not-allowed bg-transparent;
|
|
213
|
-
background-image: url("/assets/images/pattern-striped-bright.png");
|
|
210
|
+
@apply border border-bordercolor text-disabled cursor-not-allowed bg-transparent bg-pattern-disabled-bright dark:bg-pattern-disabled-dark;
|
|
214
211
|
background-repeat: repeat;
|
|
215
212
|
&:hover {
|
|
216
213
|
@apply text-disabled;
|
|
@@ -17,7 +17,7 @@ title: Uploads and attachments
|
|
|
17
17
|
| });
|
|
18
18
|
|
|
19
19
|
.form-grid-single
|
|
20
|
-
form.
|
|
20
|
+
form.dropzone(action="/file-upload" class="dropzone" id="my-awesome-dropzone")
|
|
21
21
|
.dz-default.dz-message
|
|
22
22
|
p.dropzone-msg-title Click to upload a file or drag and drop
|
|
23
23
|
p.dropzone-msg-desc Files up to 10MB
|
|
@@ -65,7 +65,7 @@ title: Uploads and attachments
|
|
|
65
65
|
|
|
66
66
|
p.mt-3 Form errors example
|
|
67
67
|
.form-grid-single
|
|
68
|
-
form.
|
|
68
|
+
form.dropzone.field_with_errors(action="/file-upload" class="dropzone" id="my-awesome-dropzone")
|
|
69
69
|
.dz-default.dz-message
|
|
70
70
|
p.dropzone-msg-title Click to upload a file or drag and drop
|
|
71
71
|
p.dropzone-msg-desc Files up to 10MB
|
|
@@ -74,7 +74,7 @@ p.mt-3 Form errors example
|
|
|
74
74
|
|
|
75
75
|
.bg-black.p-md.mt-3
|
|
76
76
|
.form-grid-single
|
|
77
|
-
form.
|
|
77
|
+
form.dropzone.inverted(action="/file-upload" class="dropzone" id="my-awesome-dropzone-inverted")
|
|
78
78
|
.dz-default.dz-message
|
|
79
79
|
p.dropzone-msg-title Click to upload a file or drag and drop
|
|
80
80
|
p.dropzone-msg-desc Files up to 10MB
|