@digigov/css 2.0.0-a402a664 → 2.0.0-aa380ec7

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-a402a664",
3
+ "version": "2.0.0-aa380ec7",
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-a402a664",
42
+ "@digigov/cli": "2.0.0-aa380ec7",
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-a402a664",
52
- "@digigov/cli-build-tailwind": "2.0.0-a402a664",
51
+ "@digigov/postcss-banner": "1.0.5-aa380ec7",
52
+ "@digigov/cli-build-tailwind": "2.0.0-aa380ec7",
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-a402a664",
56
+ "stylelint-plugin-digigov": "1.1.0-aa380ec7",
57
57
  "prettier": "3.4.2"
58
58
  },
59
59
  "dependencies": {
60
- "@digigov/theme-default": "1.0.0-a402a664",
60
+ "@digigov/theme-default": "1.0.0-aa380ec7",
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 {
@@ -16,7 +16,7 @@
16
16
  }
17
17
  &.ds-card--dense,
18
18
  .ds-dense & {
19
- @apply p-4 pt-3;
19
+ @apply py-2 px-2;
20
20
  }
21
21
  }
22
22
  &.ds-card--border-top {
@@ -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
  }
@@ -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 {
@@ -5,6 +5,9 @@
5
5
  .util-summary-list {
6
6
  @apply m-0 mb-6 sm:mb-8 w-full sm:w-full;
7
7
  }
8
+ .util-summary-list--error {
9
+ @apply border-l-5 border-error-text pl-4;
10
+ }
8
11
  .util-summary-list-text {
9
12
  font-size: var(--summary-list-font-size);
10
13
  }
@@ -17,12 +20,18 @@
17
20
  .util-summary-list__key {
18
21
  @apply mb-1 sm:w-3/12;
19
22
  }
23
+ .util-summary-list__key--error-text {
24
+ @apply text-error-text font-semibold;
25
+ }
20
26
  .util-summary-list__key-text {
21
27
  @apply font-bold;
22
28
  }
23
29
  .util-summary-list__value {
24
30
  @apply sm:flex-1;
25
31
  }
32
+ .util-summary-list__value--error-text {
33
+ @apply text-error-text;
34
+ }
26
35
  .util-summary-list__actions {
27
36
  @apply sm:w-3/12 sm:pr-0 sm:text-right;
28
37
  }
@@ -26,6 +26,9 @@
26
26
  }
27
27
  }
28
28
  }
29
+ &.ds-summary-list--error {
30
+ @apply util-summary-list--error;
31
+ }
29
32
  }
30
33
 
31
34
  .ds-summary-list__row {
@@ -103,6 +106,9 @@
103
106
  &.ds-summary-list__key--lg-9 {
104
107
  @apply util-summary-list__key--lg-9;
105
108
  }
109
+ &.ds-summary-list__key--error {
110
+ @apply util-summary-list__key--error-text;
111
+ }
106
112
  }
107
113
  @media print {
108
114
  .ds-summary-list__key {
@@ -111,6 +117,9 @@
111
117
  }
112
118
  .ds-summary-list__value {
113
119
  @apply util-summary-list__value;
120
+ &.ds-summary-list__value--error {
121
+ @apply util-summary-list__value--error-text;
122
+ }
114
123
  }
115
124
  .ds-summary-list__actions {
116
125
  @apply util-summary-list__actions;
@@ -251,6 +251,12 @@
251
251
  &.ds-table__cell--break-all {
252
252
  @apply break-all;
253
253
  }
254
+ &.ds-table__cell--warning {
255
+ @apply border-l-4 border-l-warning pl-2;
256
+ }
257
+ &.ds-table__cell--error {
258
+ @apply border-l-5 border-l-error pl-2;
259
+ }
254
260
  }
255
261
  .ds-table__header--numeric,
256
262
  .ds-table__cell--numeric {