@digigov/css 2.0.0-8e254888 → 2.0.0-a0ac149e

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": "2.0.0-8e254888",
3
+ "version": "2.0.0-a0ac149e",
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-8e254888",
42
+ "@digigov/cli": "2.0.0-a0ac149e",
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-8e254888",
52
- "@digigov/cli-build-tailwind": "2.0.0-8e254888",
51
+ "@digigov/postcss-banner": "1.0.5-a0ac149e",
52
+ "@digigov/cli-build-tailwind": "2.0.0-a0ac149e",
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-8e254888",
56
+ "stylelint-plugin-digigov": "1.1.0-a0ac149e",
57
57
  "prettier": "3.4.2"
58
58
  },
59
59
  "dependencies": {
60
- "@digigov/theme-default": "1.0.0-8e254888",
60
+ "@digigov/theme-default": "1.0.0-a0ac149e",
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
- &::after {
76
- @apply underline bg-focus;
77
- text-decoration-thickness: 2px;
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;
@@ -41,7 +41,7 @@
41
41
  .ds-code--type,
42
42
  .ds-code--variable.language_ {
43
43
  /* prettylights-syntax-keyword */
44
- color: var(--color-red-300);
44
+ color: var(--color-red-300) !important;
45
45
  }
46
46
  .ds-code--title,
47
47
  .ds-code--title.class_,
@@ -61,13 +61,13 @@
61
61
  .ds-code--selector-class,
62
62
  .ds-code--selector-id {
63
63
  /* prettylights-syntax-constant */
64
- color: var(--color-green-400);
64
+ color: var(--color-green-400) !important;
65
65
  }
66
66
  .ds-code--regexp,
67
67
  .ds-code--string,
68
68
  .ds-code--meta .ds-code--string {
69
69
  /* prettylights-syntax-string */
70
- color: var(--color-blue-600);
70
+ color: var(--color-blue-600) !important;
71
71
  }
72
72
  .ds-code--built_in,
73
73
  .ds-code--symbol {
@@ -85,7 +85,7 @@
85
85
  .ds-code--selector-tag,
86
86
  .ds-code--selector-pseudo {
87
87
  /* prettylights-syntax-entity-tag */
88
- color: var(--color-green-400);
88
+ color: var(--color-green-400) !important;
89
89
  }
90
90
  .ds-code--subst {
91
91
  /* prettylights-syntax-storage-modifier-import */
@@ -24,6 +24,10 @@
24
24
  }
25
25
  .ds-details__content {
26
26
  @apply util-details__content;
27
+ &.ds-details__content--secondary {
28
+ @apply border-0 bg-base-200 py-4 mt-2;
29
+ border-radius:0 0 0.25rem 0.25rem;
30
+ }
27
31
  > *:last-child {
28
32
  @apply mb-0;
29
33
  }
@@ -100,11 +100,12 @@
100
100
  @apply print:hidden;
101
101
  }
102
102
  .ds-link {
103
- --link-color: var(--color-footer);
103
+ --link-color: var(--color-footer-link);
104
+ --link-color-hover: var(--color-footer-link-hover);
104
105
  @apply print:text-base-content;
105
106
  }
106
107
  .ds-body {
107
- --body-color: var(--color-footer);
108
+ --body-color: var(--color-footer-text);
108
109
  @apply print:text-base-content;
109
110
  }
110
111
  }
@@ -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,
@@ -223,11 +224,11 @@
223
224
  @apply grid gap-4;
224
225
  .ds-fieldset {
225
226
  @apply grid gap-4 grid-cols-12;
226
- :not(.ds-field,.ds-grid-item) {
227
+ :not(.ds-field, .ds-grid-item) {
227
228
  @apply col-span-12;
228
229
  }
229
230
  }
230
- :not(.ds-field,.ds-grid-item) {
231
+ :not(.ds-field, .ds-grid-item) {
231
232
  @apply col-span-12;
232
233
  }
233
234
  }
@@ -248,7 +249,7 @@
248
249
  }
249
250
  .ds-uploaded-file {
250
251
  .ds-link {
251
- @apply h-fit text-lg;
252
+ @apply h-fit;
252
253
  }
253
254
  }
254
255
  .ds-dashed--border {
@@ -84,7 +84,7 @@
84
84
  }
85
85
  }
86
86
  .ds-svg-icon {
87
- fill: var(--color-white);
87
+ fill: var(--color-header-text);
88
88
  }
89
89
  }
90
90
  .ds-phase-banner__message {
@@ -34,7 +34,7 @@
34
34
  }
35
35
  }
36
36
 
37
- .ds-cookie-banner {
37
+ .ds-banner-container {
38
38
  @apply bg-base-200;
39
39
  }
40
40
 
@@ -5,10 +5,10 @@
5
5
  &.ds-stack--row {
6
6
  @apply util-stack--row;
7
7
  }
8
- &.ds-stack--reverse-row {
8
+ &.ds-stack--row-reverse {
9
9
  @apply util-stack--reverse-row;
10
10
  }
11
- &.ds-stack--col-reverse {
11
+ &.ds-stack--column-reverse {
12
12
  @apply util-stack--col-reverse;
13
13
  }
14
14
  &.ds-stack--nowrap {
@@ -4,13 +4,16 @@
4
4
  .ds-summary-list {
5
5
  @apply util-summary-list sm:table sm:table-fixed util-summary-list-text;
6
6
  &.ds-summary-list--no-border {
7
- > .ds-summary-list__row:last-child {
8
- @apply border-b-0 pb-0 mb-0;
7
+ > .ds-summary-list__row {
8
+ @apply border-0 pb-0;
9
+ &:last-child {
10
+ @apply mb-0;
11
+ }
9
12
  }
10
13
  .ds-summary-list__key,
11
14
  .ds-summary-list__value,
12
15
  .ds-summary-list__actions {
13
- @apply sm:border-0 pb-2;
16
+ @apply border-0 pb-0 sm:pb-2;
14
17
  }
15
18
  }
16
19
  &.ds-summary-list--no-last-border {
@@ -31,7 +34,7 @@
31
34
  .ds-summary-list__key,
32
35
  .ds-summary-list__value,
33
36
  .ds-summary-list__actions {
34
- @apply sm:border-0 pb-2;
37
+ @apply border-0 pb-0 sm:pb-2;
35
38
  }
36
39
  }
37
40
  }
@@ -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,15 @@
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
- @apply border-b-2;
85
- border-bottom-color: rgb(var(--color-base-content-rgb));
84
+ @apply border-b-2 border-b-base-content;
86
85
  }
87
86
  }
87
+ .ds-table__header--numeric,
88
+ .ds-table__cell--numeric {
89
+ @apply text-left;
90
+ }
88
91
  .ds-table__head {
89
92
  .ds-table__header {
90
93
  @apply hidden;
@@ -106,11 +109,15 @@
106
109
  }
107
110
  }
108
111
  .ds-table__header,
109
- .ds-table__cell {
112
+ .ds-table__cell.ds-table__cell--border {
110
113
  &:last-child {
111
- @apply border-b-2 sm:border-b border-b-base-content sm:border-b-base-300;
114
+ @apply xsOnly:border-b-2 xsOnly:border-b-base-content;
112
115
  }
113
116
  }
117
+ .ds-table__header--numeric,
118
+ .ds-table__cell--numeric {
119
+ @apply xsOnly:text-left;
120
+ }
114
121
  .ds-table__head {
115
122
  .ds-table__header {
116
123
  @apply hidden sm:table-cell;
@@ -132,11 +139,16 @@
132
139
  }
133
140
  }
134
141
  .ds-table__header,
135
- .ds-table__cell {
142
+ .ds-table__cell.ds-table__cell--border {
136
143
  &:last-child {
137
- @apply border-b-2 md:border-b border-b-base-content md:border-b-base-300;
144
+ @apply xsOnly:border-b-2 smOnly:border-b-2
145
+ xsOnly:border-b-base-content smOnly:border-b-base-content;
138
146
  }
139
147
  }
148
+ .ds-table__header--numeric,
149
+ .ds-table__cell--numeric {
150
+ @apply smOnly:text-left mdOnly:text-left;
151
+ }
140
152
  .ds-table__head {
141
153
  .ds-table__header {
142
154
  @apply hidden md:table-cell;
@@ -151,6 +163,16 @@
151
163
  content: attr(data-label);
152
164
  }
153
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
+ }
154
176
  .ds-table__cell {
155
177
  .ds-body:last-child {
156
178
  @apply mb-0;
@@ -174,7 +196,7 @@
174
196
  @apply border-r border-solid border-base-300 px-4 !important;
175
197
  }
176
198
  }
177
- .ds-table__cell {
199
+ .ds-table__cell.ds-table__cell--border {
178
200
  @apply border-r-0 !important;
179
201
  &:last-child {
180
202
  @apply border-r border-solid border-base-300 px-4 !important;
@@ -212,13 +234,24 @@
212
234
  }
213
235
  }
214
236
  }
215
- .ds-table__header,
216
- .ds-table__cell {
237
+ .ds-table__header {
217
238
  @apply pr-5 py-2.5 pl-0 border-b border-solid border-base-300 text-left align-middle;
218
239
  &:last-child {
219
240
  @apply pr-0;
220
241
  }
221
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
+ }
222
255
  .ds-table__header--numeric,
223
256
  .ds-table__cell--numeric {
224
257
  @apply text-right;
@@ -60,21 +60,6 @@
60
60
  @apply opacity-70 text-white print:text-base-content;
61
61
  }
62
62
  }
63
- .ds-code {
64
- @apply text-sm sm:text-base bg-base-100;
65
- &.ds-code--attr {
66
- @apply text-info;
67
- }
68
- &.ds-code--string {
69
- @apply text-success;
70
- }
71
- &.ds-code--keyword {
72
- @apply text-warning;
73
- }
74
- &.ds-code--name {
75
- @apply text-tertiary;
76
- }
77
- }
78
63
  .ds-\!-font-size-14 {
79
64
  @apply text-xs md:text-sm !important;
80
65
  }
@@ -194,8 +179,19 @@
194
179
  &.ds-link--no-underline {
195
180
  @apply no-underline hover:underline;
196
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
+ }
197
189
  &.ds-link-warning {
190
+ @apply focus:text-link-active;
198
191
  color: var(--color-error-text);
192
+ &:hover {
193
+ color: var(--color-error-hover);
194
+ }
199
195
  }
200
196
  .ds-heading-xl &,
201
197
  .ds-heading-lg &,