@digigov/css 1.2.1-2702533a → 1.3.0-01ea6f24

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.
Files changed (66) hide show
  1. package/dist/base/index.css +1 -1
  2. package/dist/base.js +1 -1
  3. package/dist/components.js +1 -1
  4. package/dist/digigov.css +3 -3
  5. package/dist/utilities/index.css +1 -1
  6. package/dist/utilities.js +1 -1
  7. package/package.json +1 -1
  8. package/src/components/accordion.css +37 -37
  9. package/src/components/admin-header.css +9 -9
  10. package/src/components/admin-layout.css +8 -8
  11. package/src/components/autocomplete.css +31 -31
  12. package/src/components/back-to-top.css +4 -4
  13. package/src/components/bottom-info.css +2 -2
  14. package/src/components/breadcrumbs.css +5 -5
  15. package/src/components/button.css +47 -47
  16. package/src/components/card.css +27 -27
  17. package/src/components/checkboxes.css +17 -17
  18. package/src/components/chip.css +16 -16
  19. package/src/components/copy-to-clipboard.css +18 -18
  20. package/src/components/details.css +4 -4
  21. package/src/components/dev-theme.css +1 -1
  22. package/src/components/drawer.css +30 -30
  23. package/src/components/dropdown.css +37 -37
  24. package/src/components/experimental.css +10 -10
  25. package/src/components/fillable.css +3 -3
  26. package/src/components/filter.css +51 -51
  27. package/src/components/footer.css +24 -24
  28. package/src/components/form.css +85 -85
  29. package/src/components/full-page-background.css +1 -1
  30. package/src/components/header.css +40 -40
  31. package/src/components/hidden.css +11 -11
  32. package/src/components/kitchensink.css +18 -18
  33. package/src/components/layout.css +31 -31
  34. package/src/components/loader.css +11 -11
  35. package/src/components/masthead.css +23 -23
  36. package/src/components/misc.css +11 -11
  37. package/src/components/modal.css +11 -11
  38. package/src/components/nav.css +48 -48
  39. package/src/components/notification-banner.css +15 -15
  40. package/src/components/pagination.css +24 -24
  41. package/src/components/panel.css +4 -4
  42. package/src/components/phase-banner.css +7 -7
  43. package/src/components/radios.css +15 -15
  44. package/src/components/skiplink.css +1 -1
  45. package/src/components/stack.css +22 -22
  46. package/src/components/stepnav.css +42 -42
  47. package/src/components/summary-list.css +32 -32
  48. package/src/components/svg-icons.css +26 -29
  49. package/src/components/table.css +98 -98
  50. package/src/components/tabs.css +18 -18
  51. package/src/components/task-list.css +20 -20
  52. package/src/components/timeline.css +16 -16
  53. package/src/components/typography.css +87 -87
  54. package/src/components/warning-text.css +6 -6
  55. package/src/pages/admin-filtering-data.js +86 -86
  56. package/src/pages/admin.js +36 -36
  57. package/src/pages/dropdown.js +109 -109
  58. package/src/pages/form.js +210 -210
  59. package/src/pages/headings/service-heading.js +9 -9
  60. package/src/pages/index.js +201 -201
  61. package/src/pages/pagination.js +49 -49
  62. package/src/pages/table.js +223 -223
  63. package/src/utilities/index.css +195 -195
  64. package/src/utilities/utilities.css +416 -416
  65. package/tailwind.config.js +0 -2
  66. package/themes.plugin.js +1 -1
@@ -1,11 +1,11 @@
1
- .govgr-timeline {
1
+ .ds-timeline {
2
2
  @apply mb-4 pl-6 pb-2 border-l-4 border-secondary;
3
- &.govgr-timeline--dense, .govgr-dense & {
3
+ &.ds-timeline--dense, .ds-dense & {
4
4
  @apply pb-0 border-l-3;
5
- .govgr-timeline__item {
5
+ .ds-timeline__item {
6
6
  @apply mb-4 md:mb-6;
7
7
  }
8
- .govgr-timeline__heading {
8
+ .ds-timeline__heading {
9
9
  @apply mb-2;
10
10
  &::before {
11
11
  content: "";
@@ -15,10 +15,10 @@
15
15
  }
16
16
  }
17
17
 
18
- .govgr-timeline__item {
18
+ .ds-timeline__item {
19
19
  @apply mb-10 md:mb-12;
20
20
  }
21
- .govgr-timeline__heading {
21
+ .ds-timeline__heading {
22
22
  @apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2 relative;
23
23
  &::before {
24
24
  content: "";
@@ -26,35 +26,35 @@
26
26
  border-b-4 border-secondary;
27
27
  }
28
28
  }
29
- .govgr-timeline__heading-md {
29
+ .ds-timeline__heading-md {
30
30
  @apply md:text-2xl text-xl md:mb-4 mb-2;
31
31
  &::before {
32
32
  @apply top-3 w-3;
33
33
  }
34
34
  }
35
- .govgr-timeline__heading-sm {
35
+ .ds-timeline__heading-sm {
36
36
  @apply md:text-lg text-base md:mb-3 mb-1;
37
37
  &::before {
38
38
  @apply top-2.5 w-3;
39
39
  }
40
40
  }
41
- .govgr-timeline__content {
41
+ .ds-timeline__content {
42
42
  @apply mb-4;
43
43
  }
44
- .govgr-timeline__actions {
44
+ .ds-timeline__actions {
45
45
  @apply flex flex-wrap items-center gap-4 mb-6;
46
46
  }
47
47
 
48
48
  /* overrides */
49
- .govgr-timeline__content {
50
- .govgr-hint,
51
- .govgr-body {
49
+ .ds-timeline__content {
50
+ .ds-hint,
51
+ .ds-body {
52
52
  @apply mb-2 md:mb-3;
53
53
  }
54
54
  }
55
- .govgr-timeline__actions {
56
- .govgr-btn,
57
- .govgr-link {
55
+ .ds-timeline__actions {
56
+ .ds-btn,
57
+ .ds-link {
58
58
  @apply mb-0;
59
59
  }
60
60
  }
@@ -1,4 +1,4 @@
1
- .govgr-heading-xl {
1
+ .ds-heading-xl {
2
2
  @apply mx-0 max-w-2xl;
3
3
  font-size: var(--heading-xl-font-size);
4
4
  line-height: var(--heading-xl-line-height);
@@ -6,7 +6,7 @@
6
6
  font-weight: var(--heading-xl-font-weight);
7
7
  letter-spacing: var(--heading-xl-letter-spacing);
8
8
  }
9
- .govgr-heading-lg {
9
+ .ds-heading-lg {
10
10
  @apply mx-0;
11
11
  font-size: var(--heading-lg-font-size);
12
12
  line-height: var(--heading-lg-line-height);
@@ -14,7 +14,7 @@
14
14
  font-weight: var(--heading-lg-font-weight);
15
15
  letter-spacing: var(--heading-lg-letter-spacing);
16
16
  }
17
- .govgr-heading-md {
17
+ .ds-heading-md {
18
18
  @apply mx-0;
19
19
  font-size: var(--heading-md-font-size);
20
20
  line-height: var(--heading-md-line-height);
@@ -22,7 +22,7 @@
22
22
  font-weight: var(--heading-md-font-weight);
23
23
  letter-spacing: var(--heading-md-letter-spacing);
24
24
  }
25
- .govgr-heading-sm {
25
+ .ds-heading-sm {
26
26
  @apply mx-0;
27
27
  font-size: var(--heading-sm-font-size);
28
28
  line-height: var(--heading-sm-line-height);
@@ -30,7 +30,7 @@
30
30
  font-weight: var(--heading-sm-font-weight);
31
31
  letter-spacing: var(--heading-sm-letter-spacing);
32
32
  }
33
- .govgr-heading-xs {
33
+ .ds-heading-xs {
34
34
  @apply mx-0;
35
35
  font-size: var(--heading-xs-font-size);
36
36
  line-height: var(--heading-xs-line-height);
@@ -38,10 +38,10 @@
38
38
  font-weight: var(--heading-xs-font-weight);
39
39
  letter-spacing: var(--heading-xs-letter-spacing);
40
40
  }
41
- .govgr-heading--break-words {
41
+ .ds-heading--break-words {
42
42
  @apply break-words;
43
43
  }
44
- .govgr-caption-xl {
44
+ .ds-caption-xl {
45
45
  @apply block mx-0 font-normal;
46
46
  color: var(--caption-xl-color);
47
47
  font-size: var(--caption-xl-font-size);
@@ -50,7 +50,7 @@
50
50
  font-weight: var(--caption-xl-font-weight);
51
51
  letter-spacing: var(--heading-xl-letter-spacing);
52
52
  }
53
- .govgr-caption-lg {
53
+ .ds-caption-lg {
54
54
  @apply block mx-0 font-normal;
55
55
  color: var(--caption-lg-color);
56
56
  font-size: var(--caption-lg-font-size);
@@ -59,7 +59,7 @@
59
59
  font-weight: var(--caption-lg-font-weight);
60
60
  letter-spacing: var(--caption-lg-letter-spacing);
61
61
  }
62
- .govgr-caption-md {
62
+ .ds-caption-md {
63
63
  @apply block mx-0 font-normal;
64
64
  color: var(--caption-md-color);
65
65
  font-size: var(--caption-md-font-size);
@@ -68,183 +68,183 @@
68
68
  font-weight: var(--caption-md-font-weight);
69
69
  letter-spacing: var(--caption-md-letter-spacing);
70
70
  }
71
- .govgr-body {
71
+ .ds-body {
72
72
  font-size: var(--body-font-size);
73
73
  line-height: var(--body-line-height);
74
74
  margin-bottom: var(--body-margin-bottom);
75
75
  color: var(--body-color);
76
76
  letter-spacing: var(--body-letter-spacing);
77
77
  }
78
- .govgr-body-lg {
78
+ .ds-body-lg {
79
79
  font-size: var(--body-lg-font-size);
80
80
  line-height: var(--body-lg-line-height);
81
81
  }
82
- .govgr-body-sm {
82
+ .ds-body-sm {
83
83
  font-size: var(--body-sm-font-size);
84
84
  line-height: var(--body-sm-line-height);
85
85
  }
86
- .govgr-hint {
86
+ .ds-hint {
87
87
  font-size: var(--hint-font-size);
88
88
  line-height: var(--hint-line-height);
89
89
  margin-bottom: var(--hint-margin-bottom);
90
90
  color: var(--hint-color);
91
91
  letter-spacing: var(--hint-letter-spacing);
92
92
  }
93
- .govgr-background-dark, .govgr-masthead--primary {
94
- .govgr-hint {
93
+ .ds-background-dark, .ds-masthead--primary {
94
+ .ds-hint {
95
95
  @apply opacity-70 text-white print:text-base-content;
96
96
  }
97
97
  }
98
- .govgr-code {
98
+ .ds-code {
99
99
  @apply text-sm sm:text-base bg-base-100;
100
100
  }
101
- .govgr-code--attr {
101
+ .ds-code--attr {
102
102
  @apply text-info;
103
103
  }
104
- .govgr-code--string {
104
+ .ds-code--string {
105
105
  @apply text-success;
106
106
  }
107
- .govgr-code--keyword {
107
+ .ds-code--keyword {
108
108
  @apply text-warning;
109
109
  }
110
- .govgr-code--name {
110
+ .ds-code--name {
111
111
  @apply text-tertiary;
112
112
  }
113
- .govgr-\!-font-size-14 {
113
+ .ds-\!-font-size-14 {
114
114
  @apply text-xs md:text-sm !important;
115
115
  }
116
- .govgr-\!-font-size-16 {
116
+ .ds-\!-font-size-16 {
117
117
  @apply text-sm md:text-base !important;
118
118
  }
119
- .govgr-\!-font-size-19 {
119
+ .ds-\!-font-size-19 {
120
120
  @apply text-base md:text-lg !important;
121
121
  }
122
- .govgr-\!-font-size-24 {
122
+ .ds-\!-font-size-24 {
123
123
  @apply text-xl md:text-2xl !important;
124
124
  }
125
- .govgr-\!-font-size-30 {
125
+ .ds-\!-font-size-30 {
126
126
  @apply text-2xl md:text-3xl !important;
127
127
  }
128
- .govgr-\!-font-size-36 {
128
+ .ds-\!-font-size-36 {
129
129
  @apply text-3xl md:text-4xl !important;
130
130
  }
131
- .govgr-\!-font-size-48 {
131
+ .ds-\!-font-size-48 {
132
132
  @apply text-4xl md:text-5xl !important;
133
133
  }
134
- .govgr-\!-font-size-72 {
134
+ .ds-\!-font-size-72 {
135
135
  @apply text-6xl md:text-7xl !important;
136
136
  }
137
- .govgr-\!-font-weight-regular {
137
+ .ds-\!-font-weight-regular {
138
138
  @apply font-normal !important;
139
139
  }
140
- .govgr-\!-font-weight-bold {
140
+ .ds-\!-font-weight-bold {
141
141
  @apply font-bold !important;
142
142
  }
143
- .govgr-list {
143
+ .ds-list {
144
144
  @apply list-none list-outside mt-4;
145
145
  font-size: var(--list-font-size);
146
146
  line-height: var(--list-line-height);
147
147
  letter-spacing: var(--list-letter-spacing);
148
- .govgr-list__item {
148
+ .ds-list__item {
149
149
  @apply mb-2;
150
150
  &:last-child {
151
151
  @apply mb-0;
152
152
  }
153
153
  }
154
154
  }
155
- .govgr-list__item > .govgr-list--bullet:nth-child(1) {
155
+ .ds-list__item > .ds-list--bullet:nth-child(1) {
156
156
  list-style: circle inside none;
157
157
  }
158
- .govgr-list__item
159
- > .govgr-list
160
- > .govgr-list__item
161
- > .govgr-list--bullet:nth-child(1) {
158
+ .ds-list__item
159
+ > .ds-list
160
+ > .ds-list__item
161
+ > .ds-list--bullet:nth-child(1) {
162
162
  @apply list-disc;
163
163
  }
164
- .govgr-list__item
165
- > .govgr-list:not(.govgr-list--bullet):not(.govgr-list--number):nth-child(1)
166
- > .govgr-list__item {
164
+ .ds-list__item
165
+ > .ds-list:not(.ds-list--bullet):not(.ds-list--number):nth-child(1)
166
+ > .ds-list__item {
167
167
  @apply pl-10;
168
168
  }
169
- .govgr-list__item > .govgr-list {
169
+ .ds-list__item > .ds-list {
170
170
  @apply mb-0 mt-2;
171
171
  }
172
- .govgr-list--bullet {
172
+ .ds-list--bullet {
173
173
  @apply list-disc list-outside pl-4;
174
174
  }
175
- .govgr-list--number {
175
+ .ds-list--number {
176
176
  @apply list-decimal list-outside pl-6;
177
177
  }
178
- .govgr-list--spaced:not(.govgr-list--horizontal) > .govgr-list__item {
178
+ .ds-list--spaced:not(.ds-list--horizontal) > .ds-list__item {
179
179
  @apply mb-4;
180
180
  &:last-child {
181
181
  @apply mb-0;
182
182
  }
183
183
  }
184
- .govgr-list--horizontal {
184
+ .ds-list--horizontal {
185
185
  @apply flex flex-wrap gap-x-6 gap-y-3;
186
- .govgr-list__item {
186
+ .ds-list__item {
187
187
  @apply w-full sm:w-auto;
188
188
  }
189
- &.govgr-list--spaced {
189
+ &.ds-list--spaced {
190
190
  @apply gap-x-10 gap-y-5;
191
191
  }
192
192
  }
193
193
  @media (min-width: 768px) {
194
- .govgr-list--col-2 {
194
+ .ds-list--col-2 {
195
195
  column-count: 2;
196
196
  }
197
- .govgr-list--col-3 {
197
+ .ds-list--col-3 {
198
198
  column-count: 2;
199
199
  }
200
200
  }
201
- .govgr-list {
201
+ .ds-list {
202
202
  @apply md:mb-8 mb-4 text-base-content;
203
203
  }
204
- .govgr-blockquote {
204
+ .ds-blockquote {
205
205
  @apply mb-4 mt-8 md:mb-8 p-4 border-l-8 border-base-500 text-base-content;
206
206
  font-size: var(--blockquote-font-size);
207
207
  line-height: var(--blockquote-line-height);
208
- &.govgr-blockquote--dense, .govgr-dense & {
208
+ &.ds-blockquote--dense, .ds-dense & {
209
209
  @apply mt-3 md:mb-6 p-3 border-l-6;
210
210
  }
211
211
  }
212
- .govgr-body {
212
+ .ds-body {
213
213
  font-size: var(--body-font-size);
214
214
  line-height: var(--body-line-height);
215
215
  margin-bottom: var(--body-margin-bottom);
216
216
  color: var(--body-color);
217
217
  letter-spacing: var(--body-letter-spacing);
218
218
  }
219
- .govgr-body-lg {
219
+ .ds-body-lg {
220
220
  font-size: var(--body-lg-font-size);
221
221
  line-height: var(--body-lg-line-height);
222
222
  }
223
- .govgr-body-sm {
223
+ .ds-body-sm {
224
224
  font-size: var(--body-sm-font-size);
225
225
  line-height: var(--body-sm-line-height);
226
226
  }
227
- .govgr-hint {
227
+ .ds-hint {
228
228
  font-size: var(--hint-font-size);
229
229
  line-height: var(--hint-line-height);
230
230
  margin-bottom: var(--hint-margin-bottom);
231
231
  color: var(--hint-color);
232
232
  letter-spacing: var(--hint-letter-spacing);
233
233
  }
234
- .govgr-hint-lg {
234
+ .ds-hint-lg {
235
235
  font-size: var(--hint-lg-font-size);
236
236
  line-height: var(--hint-lg-line-height);
237
237
  }
238
- .govgr-hint-sm {
238
+ .ds-hint-sm {
239
239
  font-size: var(--hint-sm-font-size);
240
240
  line-height: var(--hint-sm-line-height);
241
241
  }
242
- .govgr-hint--break-words {
242
+ .ds-hint--break-words {
243
243
  @apply break-words;
244
244
  }
245
245
 
246
246
 
247
- .govgr-link {
247
+ .ds-link {
248
248
  @apply focus:text-link-active underline cursor-pointer;
249
249
  color: var(--link-color);
250
250
  padding: var(--link-padding);
@@ -264,22 +264,22 @@
264
264
  text-decoration: none !important;
265
265
  outline: none;
266
266
  }
267
- .govgr-heading-xl & ,
268
- .govgr-heading-lg & ,
269
- .govgr-heading-md & ,
270
- .govgr-heading-sm & ,
271
- .govgr-body &,
272
- .govgr-hint &,
273
- .govgr-footer__list &
267
+ .ds-heading-xl & ,
268
+ .ds-heading-lg & ,
269
+ .ds-heading-md & ,
270
+ .ds-heading-sm & ,
271
+ .ds-body &,
272
+ .ds-hint &,
273
+ .ds-footer__list &
274
274
  {
275
275
  font-size: inherit;
276
276
  }
277
277
  }
278
- .govgr-link--no-underline {
278
+ .ds-link--no-underline {
279
279
  @apply no-underline hover:underline;
280
280
  }
281
281
 
282
- .govgr-back-link {
282
+ .ds-back-link {
283
283
  font-size: var(--back-link-font-size);
284
284
  letter-spacing: var(--back-link-letter-spacing);
285
285
  @apply w-fit text-base-content underline flex items-center mb-4 cursor-pointer;
@@ -296,17 +296,17 @@
296
296
  }
297
297
  }
298
298
 
299
- .govgr-highlight-links {
300
- .govgr-link {
299
+ .ds-highlight-links {
300
+ .ds-link {
301
301
  @apply bg-base-content p-1 text-focus underline m-1;
302
302
  }
303
303
  &.dark {
304
- .govgr-link {
304
+ .ds-link {
305
305
  @apply bg-base-300;
306
306
  }
307
307
  }
308
308
  }
309
- .govgr-visually-hidden {
309
+ .ds-visually-hidden {
310
310
  @apply absolute m-0 p-0 overflow-hidden border-0 whitespace-nowrap !important;
311
311
  width: 1px !important;
312
312
  height: 1px !important;
@@ -315,54 +315,54 @@
315
315
  clip-path: inset(50%) !important;
316
316
  }
317
317
  @media print {
318
- .govgr-body .govgr-link[href^="#"]:after {
318
+ .ds-body .ds-link[href^="#"]:after {
319
319
  display: none;
320
320
  }
321
- .govgr-link[href^="http://"]:after, .govgr-link[href^="https://"]:after
321
+ .ds-link[href^="http://"]:after, .ds-link[href^="https://"]:after
322
322
  {
323
323
  content: " (" attr(href) ")";
324
324
  font-size: 80%;
325
325
  }
326
- .govgr-body .govgr-link {
326
+ .ds-body .ds-link {
327
327
  word-wrap: break-word;
328
328
  }
329
- .govgr-link {
329
+ .ds-link {
330
330
  @apply text-base-content;
331
331
  }
332
332
  }
333
333
 
334
334
  /* overrides */
335
335
 
336
- .govgr-link {
337
- .govgr-svg-icon {
336
+ .ds-link {
337
+ .ds-svg-icon {
338
338
  fill: var(--color-link);
339
339
  }
340
340
  &:hover {
341
- .govgr-svg-icon {
341
+ .ds-svg-icon {
342
342
  fill: var(--color-link-hover);
343
343
  }
344
344
  }
345
345
  &:focus {
346
- .govgr-svg-icon {
346
+ .ds-svg-icon {
347
347
  fill: var(--color-link-active);
348
348
  }
349
349
  }
350
350
  }
351
- button.govgr-link {
352
- .govgr-svg-icon {
351
+ button.ds-link {
352
+ .ds-svg-icon {
353
353
  @apply ml-1;
354
354
  }
355
355
  }
356
- .govgr-back-link {
357
- .govgr-svg-icon--caret {
356
+ .ds-back-link {
357
+ .ds-svg-icon--caret {
358
358
  fill: var(--color-base-content);
359
359
  @apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
360
360
  }
361
361
  }
362
362
 
363
- .govgr-code-block__container {
363
+ .ds-code-block__container {
364
364
  @apply p-4 bg-base-200 border border-base-300 w-full;
365
365
  }
366
- .govgr-code-block__content {
366
+ .ds-code-block__content {
367
367
  @apply text-sm sm:text-base;
368
368
  }
@@ -1,22 +1,22 @@
1
- .govgr-warning-text {
1
+ .ds-warning-text {
2
2
  font-size: var(--warning-text-font-size);
3
3
  @apply flex py-4 px-0;
4
- .govgr-warning-text__icon {
4
+ .ds-warning-text__icon {
5
5
  @apply text-base-content-invert font-bold bg-base-content text-3xl leading-10 text-center
6
6
  rounded-3xl md:min-h-10 min-w-10 h-fit mr-6 mt-1
7
7
  print:bg-white print:border-2 print:border-base-content print:text-base-content;
8
8
  }
9
- .govgr-warning-text__text {
9
+ .ds-warning-text__text {
10
10
  @apply flex items-center;
11
11
  }
12
- .govgr-warning-text__assistive {
12
+ .ds-warning-text__assistive {
13
13
  @apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden whitespace-nowrap !important;
14
14
  clip: rect(0 0 0 0) !important;
15
15
  -webkit-clip-path: inset(50%) !important;
16
16
  clip-path: inset(50%) !important;
17
17
  }
18
- &.govgr-warning-text--dense, .govgr-dense & {
19
- .govgr-warning-text__icon {
18
+ &.ds-warning-text--dense, .ds-dense & {
19
+ .ds-warning-text__icon {
20
20
  @apply mr-4 md:mr-5;
21
21
  }
22
22
  }