@digigov/css 0.36.0 → 0.38.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/css",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "description": "Digigov CSS - Tailwind CSS Components",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -1,5 +1,5 @@
1
1
  .govgr-btn {
2
- @apply font-medium cursor-pointer
2
+ @apply no-underline font-medium cursor-pointer
3
3
  m-0 mb-8 w-max min-h-10 md:min-h-12
4
4
  flex gap-x-3 items-center;
5
5
  border-radius: var(--btn-border-radius);
@@ -128,9 +128,9 @@
128
128
  }
129
129
 
130
130
  .govgr-input__search-btn {
131
+ @apply shadow-none !important;
131
132
  @apply
132
- bg-success border-b-2 border-base-content rounded-none
133
- text-lg text-white
133
+ border-b-2 border-base-content rounded-none
134
134
  px-4 py-2 w-min m-0 ml-3
135
135
  flex gap-2
136
136
  hover:bg-success-hover active:bg-success-hover hover:no-underline;
@@ -10,7 +10,7 @@
10
10
  border border-solid border-base-500;
11
11
  max-height:95vh;
12
12
  }
13
- .govgr-modal__content {
13
+ .govgr-modal__container {
14
14
  @apply grid p-10 gap-6 px-6 py-2;
15
15
  }
16
16
  .govgr-modal__open {
@@ -19,15 +19,12 @@
19
19
  .govgr-modal__heading {
20
20
  @apply md:text-2xl text-xl font-bold;
21
21
  }
22
- .govgr-modal__text {
22
+ .govgr-modal__content {
23
23
  @apply text-base lg:text-xl text-lg;
24
- .govgr-field, .govgr-body {
25
- @apply mb-0;
26
- }
27
24
  }
28
25
  .govgr-modal__action {
29
26
  @apply flex flex-wrap items-center gap-4;
30
27
  .govgr-link, .govgr-btn {
31
28
  @apply mb-0;
32
29
  }
33
- }
30
+ }
@@ -3,7 +3,7 @@
3
3
  @apply px-5 py-5;
4
4
  }
5
5
  .govgr-table__caption {
6
- @apply table-caption text-left font-bold;
6
+ @apply table-caption text-left font-bold;
7
7
  }
8
8
  .govgr-table__caption--s {
9
9
  @apply md:text-2xl text-lg font-bold mx-0 md:mb-6 mb-4 antialiased;
@@ -32,9 +32,10 @@
32
32
  border-spacing: 0;
33
33
  }
34
34
  .govgr-table--with-vertical-lines {
35
- .govgr-table__cell, .govgr-table__header {
35
+ .govgr-table__cell,
36
+ .govgr-table__header {
36
37
  @apply border-l border-r border-solid border-base-300 px-4;
37
- }
38
+ }
38
39
  .govgr-table__head {
39
40
  @apply border-t border-base-300 text-base-content !important;
40
41
  }
@@ -43,26 +44,25 @@
43
44
  .govgr-dropdown__button {
44
45
  @apply no-underline font-bold text-base-content !important;
45
46
  }
46
- .govgr-dropdown__button--underline:not(:focus){
47
+ .govgr-dropdown__button--underline:not(:focus) {
47
48
  @apply underline !important;
48
49
  text-decoration-thickness: 2px !important;
49
50
  }
50
- .govgr-dropdown__content{
51
+ .govgr-dropdown__content {
51
52
  @apply py-0;
52
53
  }
53
54
  .govgr-vertical-nav__item {
54
- @apply flex font-normal no-underline;
55
-
56
- }
57
- .govgr-vertical-nav__item--active:not(:focus){
58
- @apply bg-base-200 font-normal !important
55
+ @apply flex font-normal no-underline;
56
+ }
57
+ .govgr-vertical-nav__item--active:not(:focus) {
58
+ @apply bg-base-200 font-normal !important;
59
59
  }
60
60
  }
61
61
  .govgr-table__body {
62
62
  @apply relative;
63
63
  }
64
64
 
65
- @supports (-moz-appearance:none) {
65
+ @supports (-moz-appearance: none) {
66
66
  .govgr-table {
67
67
  border-collapse: unset;
68
68
  }
@@ -87,33 +87,35 @@
87
87
  }
88
88
  .govgr-table__row--warning {
89
89
  @apply border-l-4 border-warning;
90
- .govgr-table__cell:first-child{
90
+ .govgr-table__cell:first-child {
91
91
  @apply pl-2;
92
92
  }
93
93
  }
94
- .govgr-table__cell{
94
+ .govgr-table__cell {
95
95
  .govgr-btn {
96
- @apply mb-0;
96
+ @apply mb-0;
97
97
  }
98
98
  .govgr-button-group {
99
99
  @apply mb-0;
100
100
  }
101
101
  }
102
- .govgr-table--dark, .govgr-table--zebra {
103
- .govgr-table__header, .govgr-table__cell {
102
+ .govgr-table--dark,
103
+ .govgr-table--zebra {
104
+ .govgr-table__header,
105
+ .govgr-table__cell {
104
106
  @apply px-4 !important;
105
107
  }
106
108
  }
107
109
  .govgr-table--with-vertical-lines.govgr-table--light {
108
110
  .govgr-table__body .govgr-table__header {
109
- @apply border-l border-solid border-base-300 !important;
110
- }
111
+ @apply border-l border-solid border-base-300 !important;
112
+ }
111
113
  }
112
- .govgr-table--with-vertical-lines.govgr-table--dark{
114
+ .govgr-table--with-vertical-lines.govgr-table--dark {
113
115
  .govgr-table__header {
114
116
  @apply border-0;
115
117
  @apply print:border;
116
- }
118
+ }
117
119
  }
118
120
  .govgr-table--dark {
119
121
  .govgr-table__header {
@@ -130,18 +132,86 @@
130
132
  }
131
133
  .govgr-table--dense {
132
134
  &.govgr-table {
133
- .govgr-table__row, .govgr-table__header, .govgr-table__cell {
134
- @apply text-sm py-2;
135
- }
135
+ .govgr-table__row,
136
+ .govgr-table__header,
137
+ .govgr-table__cell {
138
+ @apply text-sm py-2;
139
+ }
136
140
  }
137
141
  }
138
- .govgr-table__header, .govgr-table__cell {
139
- @apply pr-5 py-2.5 pl-0 border-b border-solid border-base-300 text-left align-middle;
140
- &:last-child {
141
- @apply pr-0;
142
+ .govgr-table--stacked-always {
143
+ .govgr-table__header,
144
+ .govgr-table__cell {
145
+ &:last-child {
146
+ @apply border-b-2 border-base-content;
147
+ }
148
+ }
149
+ .govgr-table__header {
150
+ @apply hidden;
151
+ }
152
+ .govgr-table__cell {
153
+ @apply block;
154
+ }
155
+ .govgr-table__cell[data-label]:before {
156
+ content: attr(data-label);
157
+ @apply block font-semibold;
158
+ }
159
+ }
160
+ .govgr-table--stacked-s {
161
+ .govgr-table__header,
162
+ .govgr-table__cell {
163
+ &:last-child {
164
+ @apply border-b-2 border-base-content sm:border-b sm:border-base-300;
165
+ }
166
+ }
167
+ .govgr-table__header {
168
+ @apply hidden sm:table-cell;
169
+ }
170
+ .govgr-table__cell {
171
+ @apply block sm:table-cell;
172
+ }
173
+ .govgr-table__cell[data-label]:before {
174
+ content: attr(data-label);
175
+ @apply block font-semibold;
176
+ }
177
+ @media (min-width: 640px) {
178
+ .govgr-table__cell[data-label]:before {
179
+ content: none;
142
180
  }
181
+ }
143
182
  }
144
- .govgr-table__header--numeric, .govgr-table__cell--numeric {
183
+ .govgr-table--stacked-m {
184
+ .govgr-table__header,
185
+ .govgr-table__cell {
186
+ &:last-child {
187
+ @apply border-b-2 border-base-content md:border-b md:border-base-300;
188
+ }
189
+ }
190
+ .govgr-table__header {
191
+ @apply hidden md:table-cell;
192
+ }
193
+ .govgr-table__cell {
194
+ @apply block md:table-cell;
195
+ }
196
+ .govgr-table__cell[data-label]:before {
197
+ content: attr(data-label);
198
+ @apply block font-semibold;
199
+ }
200
+ @media (min-width: 768px) {
201
+ .govgr-table__cell[data-label]:before {
202
+ content: none;
203
+ }
204
+ }
205
+ }
206
+ .govgr-table__header,
207
+ .govgr-table__cell {
208
+ @apply pr-5 py-2.5 pl-0 border-b border-solid border-base-300 text-left align-middle;
209
+ &:last-child {
210
+ @apply pr-0;
211
+ }
212
+ }
213
+ .govgr-table__header--numeric,
214
+ .govgr-table__cell--numeric {
145
215
  @apply text-right;
146
216
  }
147
217
  .govgr-table__body--vertical-top {
@@ -157,17 +227,19 @@
157
227
  .govgr-table__cell--numeric {
158
228
  @apply font-normal;
159
229
  font-feature-settings: normal;
160
- font-variant-numeric: tabular-nums;
230
+ font-variant-numeric: tabular-nums;
161
231
  }
162
- .govgr-table__cell--no-data{
232
+ .govgr-table__cell--no-data {
163
233
  @apply border-b-0 pt-2.5;
164
234
  }
165
- .govgr-table__loading{
235
+ .govgr-table__loading {
166
236
  @apply h-full w-full absolute right-0 left-0 flex items-center justify-center
167
237
  bg-white bg-opacity-50 print:hidden;
168
238
  }
169
-
170
- @supports ((-webkit-backdrop-filter: blur(0.6px)) or (backdrop-filter: blur(0.6px))) {
239
+
240
+ @supports (
241
+ (-webkit-backdrop-filter: blur(0.6px)) or (backdrop-filter: blur(0.6px))
242
+ ) {
171
243
  .govgr-table__loading {
172
244
  @apply bg-opacity-30;
173
245
  -webkit-backdrop-filter: blur(0.6px);