@digigov/css 2.0.0-87b6232d → 2.0.0-8bbad051

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-87b6232d",
3
+ "version": "2.0.0-8bbad051",
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-87b6232d",
42
+ "@digigov/cli": "2.0.0-8bbad051",
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-87b6232d",
52
- "@digigov/cli-build-tailwind": "2.0.0-87b6232d",
51
+ "@digigov/postcss-banner": "1.0.5-8bbad051",
52
+ "@digigov/cli-build-tailwind": "2.0.0-8bbad051",
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-87b6232d",
56
+ "stylelint-plugin-digigov": "1.1.0-8bbad051",
57
57
  "prettier": "3.4.2"
58
58
  },
59
59
  "dependencies": {
60
- "@digigov/theme-default": "1.0.0-87b6232d",
60
+ "@digigov/theme-default": "1.0.0-8bbad051",
61
61
  "@fontsource/roboto": "4.4.0",
62
62
  "cssnano": "4.1.10",
63
63
  "publint": "0.1.8",
@@ -27,7 +27,11 @@
27
27
  &.ds-accordion--secondary {
28
28
  .ds-accordion__section {
29
29
  .ds-accordion__section-summary {
30
- @apply px-4 bg-base-200;
30
+ --accordion__section-summary-background: var(--color-base-200);
31
+ @apply px-4;
32
+ &:hover {
33
+ --accordion__section-summary-background-hover: var(--color-base-300);
34
+ }
31
35
  }
32
36
  .ds-accordion__section-content {
33
37
  @apply px-4;
@@ -35,7 +39,12 @@
35
39
  }
36
40
  .ds-accordion__section-button {
37
41
  &::after {
38
- @apply right-0;
42
+ @apply right-0 !important;
43
+ }
44
+ &.ds-accordion__section-button--arrows {
45
+ &::after {
46
+ @apply right-1 !important;
47
+ }
39
48
  }
40
49
  }
41
50
  }
@@ -72,9 +81,11 @@
72
81
  .ds-accordion__section-button {
73
82
  @apply underline bg-focus;
74
83
  text-decoration-thickness: 2px;
75
- &::after {
76
- @apply underline bg-focus;
77
- text-decoration-thickness: 2px;
84
+ &:not(.ds-accordion__section-button--arrows) {
85
+ &::after {
86
+ @apply underline bg-focus;
87
+ text-decoration-thickness: 2px;
88
+ }
78
89
  }
79
90
  }
80
91
  }
@@ -95,12 +106,19 @@
95
106
  }
96
107
  }
97
108
  .ds-accordion__section-button {
98
- @apply util-accordion__section-button util-accordion__section-button-text focus:underline;
109
+ @apply util-accordion__section-button util-accordion__section-button-text focus:underline transition ease-in-out;
99
110
  &::after {
100
111
  @apply util-accordion__section-button-icon float-right -right-8;
101
112
  content: '+';
102
113
  line-height: 2rem;
103
114
  }
115
+ &.ds-accordion__section-button--arrows {
116
+ &::after {
117
+ @apply h-3 w-3 rotate-45 border-b-3 border-r-3 border-base-content top-1.5 -right-7 bg-transparent !important;
118
+ transition: all 0.3s ease;
119
+ content: '';
120
+ }
121
+ }
104
122
  }
105
123
  .ds-accordion__section[open] {
106
124
  .ds-accordion__section-content {
@@ -110,6 +128,12 @@
110
128
  &::after {
111
129
  content: '\2013';
112
130
  }
131
+ &.ds-accordion__section-button--arrows {
132
+ &::after {
133
+ @apply -rotate-[135deg] top-2.5 !important;
134
+ content: '';
135
+ }
136
+ }
113
137
  }
114
138
  }
115
139
  .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;
@@ -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
  }
@@ -1,20 +1,20 @@
1
1
  .ds-filter-container {
2
- @apply fixed left-0 top-0 overflow-auto w-full h-full
2
+ @apply fixed left-0 top-0 w-full h-full
3
3
  flex justify-center items-center content-center
4
4
  z-50 bg-opacity-50 bg-base-700;
5
5
  &.ds-filter-container--position-relative-always {
6
- @apply bg-transparent h-fit z-2 overflow-visible relative block !important;
6
+ @apply bg-transparent h-fit z-2 relative block !important;
7
7
  }
8
8
  &.ds-filter-container--position-relative-sm {
9
- @apply sm:bg-transparent sm:h-fit sm:z-2 sm:overflow-visible sm:relative;
9
+ @apply sm:bg-transparent sm:h-fit sm:z-2 sm:relative;
10
10
  @apply sm:block !important;
11
11
  }
12
12
  &.ds-filter-container--position-relative-md {
13
- @apply md:bg-transparent md:h-fit md:z-2 md:overflow-visible md:relative;
13
+ @apply md:bg-transparent md:h-fit md:z-2 md:relative;
14
14
  @apply md:block !important;
15
15
  }
16
16
  &.ds-filter-container--position-relative-lg {
17
- @apply lg:bg-transparent lg:h-fit lg:z-2 lg:overflow-visible lg:relative;
17
+ @apply lg:bg-transparent lg:h-fit lg:z-2 lg:relative;
18
18
  @apply lg:block !important;
19
19
  }
20
20
  &.ds-filter-container--closed {
@@ -25,16 +25,16 @@
25
25
  @apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll w-4/5 max-w-md p-4;
26
26
  box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
27
27
  &.ds-filter--position-relative-always {
28
- @apply relative w-full max-w-full shadow-none mb-4 md:mb-8;
28
+ @apply relative w-full max-w-full shadow-none overflow-visible mb-4 md:mb-8;
29
29
  }
30
30
  &.ds-filter--position-relative-sm {
31
- @apply sm:relative sm:w-full sm:shadow-none sm:mb-4 md:mb-8 sm:max-w-full;
31
+ @apply sm:relative sm:w-full sm:shadow-none sm:overflow-visible sm:mb-4 md:mb-8 sm:max-w-full;
32
32
  &:not(.ds-filter--border) {
33
33
  @apply sm:p-0;
34
34
  }
35
35
  }
36
36
  &.ds-filter--position-relative-md {
37
- @apply md:relative md:w-full md:shadow-none md:mb-8 md:max-w-full;
37
+ @apply md:relative md:w-full md:shadow-none md:overflow-visible md:mb-8 md:max-w-full;
38
38
  &:not(.ds-filter--border) {
39
39
  @apply md:p-0;
40
40
  }
@@ -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,
@@ -65,6 +65,10 @@
65
65
  }
66
66
  }
67
67
  }
68
+ > .ds-body {
69
+ @apply print:text-base-content;
70
+ color: var(--color-header-text);
71
+ }
68
72
  }
69
73
  .ds-dropdown {
70
74
  @apply print:hidden;
@@ -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 {