@digigov/css 2.0.0-750aec28 → 2.0.0-7d765d3c
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/dist/components.js +1 -1
- package/dist/digigov.css +1 -1
- package/package.json +6 -6
- package/src/components/accordion.css +25 -5
- package/src/components/autocomplete.css +5 -1
- package/src/components/details.css +4 -0
- package/src/components/form.css +2 -1
- package/src/components/misc.css +1 -1
- package/src/components/stack.css +2 -2
- package/src/components/table.css +29 -9
- package/src/components/typography.css +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/css",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-7d765d3c",
|
|
4
4
|
"description": "Digigov CSS - Tailwind CSS Components",
|
|
5
5
|
"author": "GRNET Devs <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@digigov/cli": "2.0.0-
|
|
42
|
+
"@digigov/cli": "2.0.0-7d765d3c",
|
|
43
43
|
"autoprefixer": "10.4.16",
|
|
44
44
|
"postcss-cli": "8.3.0",
|
|
45
45
|
"postcss-import": "13.0.0",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"tailwindcss": "3.4.13",
|
|
49
49
|
"nodemon": "2.0.7",
|
|
50
50
|
"next": "13.1.1",
|
|
51
|
-
"@digigov/postcss-banner": "1.0.5-
|
|
52
|
-
"@digigov/cli-build-tailwind": "2.0.0-
|
|
51
|
+
"@digigov/postcss-banner": "1.0.5-7d765d3c",
|
|
52
|
+
"@digigov/cli-build-tailwind": "2.0.0-7d765d3c",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
54
54
|
"publint": "0.1.8",
|
|
55
55
|
"stylelint": "15.11.0",
|
|
56
|
-
"stylelint-plugin-digigov": "1.1.0-
|
|
56
|
+
"stylelint-plugin-digigov": "1.1.0-7d765d3c",
|
|
57
57
|
"prettier": "3.4.2"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@digigov/theme-default": "1.0.0-
|
|
60
|
+
"@digigov/theme-default": "1.0.0-7d765d3c",
|
|
61
61
|
"@fontsource/roboto": "4.4.0",
|
|
62
62
|
"cssnano": "4.1.10",
|
|
63
63
|
"publint": "0.1.8",
|
|
@@ -35,7 +35,12 @@
|
|
|
35
35
|
}
|
|
36
36
|
.ds-accordion__section-button {
|
|
37
37
|
&::after {
|
|
38
|
-
@apply right-0;
|
|
38
|
+
@apply right-0 !important;
|
|
39
|
+
}
|
|
40
|
+
&.ds-accordion__section-button--arrows {
|
|
41
|
+
&::after {
|
|
42
|
+
@apply right-1 !important;
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
@@ -72,9 +77,11 @@
|
|
|
72
77
|
.ds-accordion__section-button {
|
|
73
78
|
@apply underline bg-focus;
|
|
74
79
|
text-decoration-thickness: 2px;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
&:not(.ds-accordion__section-button--arrows) {
|
|
81
|
+
&::after {
|
|
82
|
+
@apply underline bg-focus;
|
|
83
|
+
text-decoration-thickness: 2px;
|
|
84
|
+
}
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
}
|
|
@@ -95,12 +102,19 @@
|
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
104
|
.ds-accordion__section-button {
|
|
98
|
-
@apply util-accordion__section-button util-accordion__section-button-text focus:underline;
|
|
105
|
+
@apply util-accordion__section-button util-accordion__section-button-text focus:underline transition ease-in-out;
|
|
99
106
|
&::after {
|
|
100
107
|
@apply util-accordion__section-button-icon float-right -right-8;
|
|
101
108
|
content: '+';
|
|
102
109
|
line-height: 2rem;
|
|
103
110
|
}
|
|
111
|
+
&.ds-accordion__section-button--arrows {
|
|
112
|
+
&::after {
|
|
113
|
+
@apply h-3 w-3 rotate-45 border-b-3 border-r-3 border-base-content top-1.5 -right-7 bg-transparent !important;
|
|
114
|
+
transition: all 0.3s ease;
|
|
115
|
+
content: '';
|
|
116
|
+
}
|
|
117
|
+
}
|
|
104
118
|
}
|
|
105
119
|
.ds-accordion__section[open] {
|
|
106
120
|
.ds-accordion__section-content {
|
|
@@ -110,6 +124,12 @@
|
|
|
110
124
|
&::after {
|
|
111
125
|
content: '\2013';
|
|
112
126
|
}
|
|
127
|
+
&.ds-accordion__section-button--arrows {
|
|
128
|
+
&::after {
|
|
129
|
+
@apply -rotate-[135deg] top-2.5 !important;
|
|
130
|
+
content: '';
|
|
131
|
+
}
|
|
132
|
+
}
|
|
113
133
|
}
|
|
114
134
|
}
|
|
115
135
|
.ds-accordion__section-content {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
clip: 'rect(0 0 0 0)';
|
|
9
9
|
}
|
|
10
10
|
.ds-autocomplete__hint {
|
|
11
|
-
@apply absolute text-base-400;
|
|
11
|
+
@apply h-full absolute text-base-400;
|
|
12
12
|
}
|
|
13
13
|
.ds-autocomplete__hint,
|
|
14
14
|
.ds-autocomplete__input {
|
|
@@ -62,6 +62,10 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
.ds-autocomplete__hint,
|
|
66
|
+
.ds-autocomplete__input {
|
|
67
|
+
@apply h-full;
|
|
68
|
+
}
|
|
65
69
|
}
|
|
66
70
|
.ds-autocomplete__multi-input {
|
|
67
71
|
@apply flex-1 w-full focus:border-0 focus:outline-0 bg-base-100;
|
package/src/components/form.css
CHANGED
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
.ds-textarea {
|
|
80
|
+
@apply min-h-12;
|
|
80
81
|
border-radius: var(--textarea-border-radius);
|
|
81
82
|
}
|
|
82
83
|
.ds-input,
|
|
@@ -248,7 +249,7 @@
|
|
|
248
249
|
}
|
|
249
250
|
.ds-uploaded-file {
|
|
250
251
|
.ds-link {
|
|
251
|
-
@apply h-fit
|
|
252
|
+
@apply h-fit;
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
255
|
.ds-dashed--border {
|
package/src/components/misc.css
CHANGED
package/src/components/stack.css
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
&.ds-stack--row {
|
|
6
6
|
@apply util-stack--row;
|
|
7
7
|
}
|
|
8
|
-
&.ds-stack--reverse
|
|
8
|
+
&.ds-stack--row-reverse {
|
|
9
9
|
@apply util-stack--reverse-row;
|
|
10
10
|
}
|
|
11
|
-
&.ds-stack--
|
|
11
|
+
&.ds-stack--column-reverse {
|
|
12
12
|
@apply util-stack--col-reverse;
|
|
13
13
|
}
|
|
14
14
|
&.ds-stack--nowrap {
|
package/src/components/table.css
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
@apply md:mb-10 mb-6 text-base-content md:text-lg text-base font-normal antialiased;
|
|
28
28
|
border-spacing: 0;
|
|
29
29
|
&.ds-table--vertical-lines {
|
|
30
|
-
.ds-table__cell,
|
|
30
|
+
.ds-table__cell.ds-table__cell--border,
|
|
31
31
|
.ds-table__header {
|
|
32
32
|
@apply border-l border-r border-solid border-base-300 px-4;
|
|
33
33
|
}
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
}
|
|
80
80
|
&.ds-table--stacked-always {
|
|
81
81
|
.ds-table__header,
|
|
82
|
-
.ds-table__cell {
|
|
82
|
+
.ds-table__cell.ds-table__cell--border {
|
|
83
83
|
&:last-child {
|
|
84
84
|
@apply border-b-2 border-b-base-content;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
.ds-table__header--numeric,
|
|
88
88
|
.ds-table__cell--numeric {
|
|
89
89
|
@apply text-left;
|
|
90
90
|
}
|
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
@apply block font-semibold mb-2;
|
|
102
102
|
content: attr(data-label);
|
|
103
103
|
}
|
|
104
|
-
|
|
105
104
|
}
|
|
106
105
|
&.ds-table--stacked-sm {
|
|
107
106
|
@media (min-width: 640px) {
|
|
@@ -110,7 +109,7 @@
|
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
.ds-table__header,
|
|
113
|
-
.ds-table__cell {
|
|
112
|
+
.ds-table__cell.ds-table__cell--border {
|
|
114
113
|
&:last-child {
|
|
115
114
|
@apply xsOnly:border-b-2 xsOnly:border-b-base-content;
|
|
116
115
|
}
|
|
@@ -140,7 +139,7 @@
|
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
.ds-table__header,
|
|
143
|
-
.ds-table__cell {
|
|
142
|
+
.ds-table__cell.ds-table__cell--border {
|
|
144
143
|
&:last-child {
|
|
145
144
|
@apply xsOnly:border-b-2 smOnly:border-b-2
|
|
146
145
|
xsOnly:border-b-base-content smOnly:border-b-base-content;
|
|
@@ -164,6 +163,16 @@
|
|
|
164
163
|
content: attr(data-label);
|
|
165
164
|
}
|
|
166
165
|
}
|
|
166
|
+
&.ds-table--align-top {
|
|
167
|
+
.ds-table__cell {
|
|
168
|
+
@apply align-top;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
&.ds-table--align-bottom {
|
|
172
|
+
.ds-table__cell {
|
|
173
|
+
@apply align-bottom;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
167
176
|
.ds-table__cell {
|
|
168
177
|
.ds-body:last-child {
|
|
169
178
|
@apply mb-0;
|
|
@@ -187,7 +196,7 @@
|
|
|
187
196
|
@apply border-r border-solid border-base-300 px-4 !important;
|
|
188
197
|
}
|
|
189
198
|
}
|
|
190
|
-
.ds-table__cell {
|
|
199
|
+
.ds-table__cell.ds-table__cell--border {
|
|
191
200
|
@apply border-r-0 !important;
|
|
192
201
|
&:last-child {
|
|
193
202
|
@apply border-r border-solid border-base-300 px-4 !important;
|
|
@@ -225,13 +234,24 @@
|
|
|
225
234
|
}
|
|
226
235
|
}
|
|
227
236
|
}
|
|
228
|
-
.ds-table__header
|
|
229
|
-
.ds-table__cell {
|
|
237
|
+
.ds-table__header {
|
|
230
238
|
@apply pr-5 py-2.5 pl-0 border-b border-solid border-base-300 text-left align-middle;
|
|
231
239
|
&:last-child {
|
|
232
240
|
@apply pr-0;
|
|
233
241
|
}
|
|
234
242
|
}
|
|
243
|
+
.ds-table__cell {
|
|
244
|
+
@apply pr-5 py-2.5 pl-0 text-left align-middle;
|
|
245
|
+
&:last-child {
|
|
246
|
+
@apply pr-0;
|
|
247
|
+
}
|
|
248
|
+
&.ds-table__cell--border {
|
|
249
|
+
@apply border-b border-solid border-base-300;
|
|
250
|
+
}
|
|
251
|
+
&.ds-table__cell--break-all {
|
|
252
|
+
@apply break-all;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
235
255
|
.ds-table__header--numeric,
|
|
236
256
|
.ds-table__cell--numeric {
|
|
237
257
|
@apply text-right;
|
|
@@ -179,8 +179,19 @@
|
|
|
179
179
|
&.ds-link--no-underline {
|
|
180
180
|
@apply no-underline hover:underline;
|
|
181
181
|
}
|
|
182
|
+
&.ds-link--disabled {
|
|
183
|
+
@apply cursor-not-allowed !important;
|
|
184
|
+
color: var(--color-base-content);
|
|
185
|
+
&:hover {
|
|
186
|
+
color: var(--color-base-content);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
182
189
|
&.ds-link-warning {
|
|
190
|
+
@apply focus:text-link-active;
|
|
183
191
|
color: var(--color-error-text);
|
|
192
|
+
&:hover {
|
|
193
|
+
color: var(--color-error-hover);
|
|
194
|
+
}
|
|
184
195
|
}
|
|
185
196
|
.ds-heading-xl &,
|
|
186
197
|
.ds-heading-lg &,
|