@digigov/css 0.39.0-b5106f43 → 1.0.0-6b93ebf2

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 (64) hide show
  1. package/defaultTheme/footer.json +5 -5
  2. package/defaultTheme/misc.json +1 -1
  3. package/defaultTheme/typography.json +7 -7
  4. package/dist/base/index.css +1 -1
  5. package/dist/base.js +1 -1
  6. package/dist/components.js +1 -1
  7. package/dist/digigov.css +3 -3
  8. package/dist/utilities/index.css +1 -1
  9. package/dist/utilities.js +1 -1
  10. package/package.json +4 -4
  11. package/src/components/accessibility-menu.css +3 -6
  12. package/src/components/accordion.css +8 -10
  13. package/src/components/admin-header.css +0 -6
  14. package/src/components/admin-layout.css +1 -61
  15. package/src/components/autocomplete.css +26 -43
  16. package/src/components/bottom-info.css +2 -4
  17. package/src/components/breadcrumbs.css +12 -12
  18. package/src/components/button.css +12 -10
  19. package/src/components/card.css +41 -43
  20. package/src/components/checkboxes.css +7 -9
  21. package/src/components/chip.css +6 -9
  22. package/src/components/copy-to-clipboard.css +37 -32
  23. package/src/components/details.css +5 -6
  24. package/src/components/drawer.css +4 -4
  25. package/src/components/dropdown.css +26 -34
  26. package/src/components/filter.css +7 -7
  27. package/src/components/footer.css +3 -6
  28. package/src/components/form.css +50 -45
  29. package/src/components/full-page-background.css +0 -3
  30. package/src/components/header.css +35 -34
  31. package/src/components/index.css +1 -3
  32. package/src/components/kitchensink.css +2 -2
  33. package/src/components/layout.css +13 -11
  34. package/src/components/loader.css +13 -14
  35. package/src/components/misc.css +9 -12
  36. package/src/components/modal.css +7 -6
  37. package/src/components/nav.css +6 -44
  38. package/src/components/notification-banner.css +28 -17
  39. package/src/components/pagination.css +0 -4
  40. package/src/components/panel.css +4 -4
  41. package/src/components/phase-banner.css +13 -10
  42. package/src/components/radios.css +13 -9
  43. package/src/components/skiplink.css +6 -7
  44. package/src/components/stepnav.css +56 -62
  45. package/src/components/summary-list.css +25 -32
  46. package/src/components/svg-icons.css +90 -49
  47. package/src/components/table.css +112 -58
  48. package/src/components/tabs.css +7 -12
  49. package/src/components/task-list.css +11 -10
  50. package/src/components/timeline.css +9 -7
  51. package/src/components/typography.css +61 -47
  52. package/src/pages/admin-filtering-data.js +21 -21
  53. package/src/pages/admin.js +9 -9
  54. package/src/pages/dropdown.js +29 -29
  55. package/src/pages/form.js +27 -27
  56. package/src/pages/headings/service-heading.js +7 -7
  57. package/src/pages/index.js +34 -32
  58. package/src/pages/pagination.js +6 -6
  59. package/src/pages/table.js +15 -15
  60. package/src/utilities/index.css +0 -33
  61. package/src/utilities/utilities.css +0 -33
  62. package/src/components/admin-footer.css +0 -3
  63. package/src/components/admin-form.css +0 -5
  64. package/src/components/cookie.css +0 -3
@@ -3,54 +3,28 @@
3
3
  }
4
4
  .govgr-card--border {
5
5
  @apply border-2 border-base-content p-6;
6
- &.govgr-card--border-gray {
6
+ &.govgr-card--border-light {
7
7
  @apply border;
8
8
  }
9
9
  }
10
- .govgr-card--divider {
11
- @apply border-b border-base-300 pb-4 mb-4;
12
- }
13
- .govgr-card__heading {
14
- word-break: break-word;
15
- @apply md:text-2xl text-xl font-bold;
16
- }
17
- .govgr-card__text {
18
- word-break: break-word;
19
- @apply text-base;
20
- font-size: var(--card__text-font-size);
21
- line-height: var(--card__text-line-height);
22
- }
23
- .govgr-card__body {
24
- @apply flex flex-col gap-3 md:gap-4 h-full;
25
- }
26
- .govgr-card__action {
27
- @apply flex flex-wrap items-center gap-y-4 mt-auto;
28
- .govgr-link, .govgr-btn {
29
- @apply mb-0;
30
- }
31
- }
32
- @media print {
33
- /* When govgr-card__action is empty at print, content at :after limits its height. */
34
- .govgr-card__action:after {
35
- content: "";
10
+ .govgr-card--border-top {
11
+ @apply border-t border-base-300 pt-4;
12
+ &.govgr-card--border-dark {
13
+ @apply border-t-3;
36
14
  }
37
15
  }
38
- .govgr-grid {
39
- .govgr-card {
40
- @apply mb-0;
41
- }
16
+ .govgr-card--divider {
17
+ @apply border-b border-base-300 pb-4 mb-4;
42
18
  }
43
19
  .govgr-card--cta {
44
20
  .govgr-card__body {
45
21
  @apply pr-8 relative;
46
-
47
22
  &:after {
48
23
  content: "";
49
24
  transition: all 0.1s ease;
50
25
  @apply w-5 h-5 bg-contain bg-no-repeat bg-center absolute right-2 top-2 z-/1;
51
26
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'> <path d='M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z' /> </svg>");
52
27
  }
53
-
54
28
  &:hover {
55
29
  &:after {
56
30
  @apply right-1;
@@ -63,7 +37,6 @@
63
37
  @apply leading-8 !important;
64
38
 
65
39
  .govgr-link {
66
-
67
40
  /* Clickable area will be at all the card with 'after' */
68
41
  &::after {
69
42
  content: "";
@@ -72,15 +45,40 @@
72
45
  }
73
46
  }
74
47
  }
75
- .govgr-card--border-top {
76
- @apply border-t border-base-300 pt-4;
77
- &.govgr-card--border-dark {
78
- @apply border-t-3;
79
- }
48
+ .govgr-card--border-light {
49
+ @apply border-base-300;
80
50
  }
81
51
  .govgr-card--border-dark {
82
- @apply border-base-content;
52
+ @apply border-base-content;
53
+ }
54
+ .govgr-card__body {
55
+ @apply flex flex-col gap-3 md:gap-4 h-full;
56
+ }
57
+ .govgr-card__heading {
58
+ word-break: break-word;
59
+ @apply md:text-2xl text-xl font-bold;
60
+ }
61
+ .govgr-card__content {
62
+ word-break: break-word;
63
+ @apply text-base;
64
+ font-size: var(--card__text-font-size);
65
+ line-height: var(--card__text-line-height);
66
+ }
67
+ .govgr-card__action {
68
+ @apply flex flex-wrap items-center gap-y-4 mt-auto;
69
+ .govgr-link,
70
+ .govgr-btn {
71
+ @apply mb-0;
72
+ }
73
+ }
74
+ @media print {
75
+ /* When govgr-card__action is empty at print, content at :after limits its height. */
76
+ .govgr-card__action:after {
77
+ content: "";
78
+ }
79
+ }
80
+ .govgr-grid {
81
+ .govgr-card {
82
+ @apply mb-0;
83
+ }
83
84
  }
84
- .govgr-card--border-gray {
85
- @apply border-base-300;
86
- }
@@ -1,5 +1,9 @@
1
- .govgr-checkboxes--inline {
2
- @apply inline-flex flex-wrap;
1
+ .govgr-checkboxes {}
2
+ .govgr-checkboxes--horizontal {
3
+ @apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
4
+ .govgr-choice-divider-text {
5
+ @apply min-w-max mx-2;
6
+ }
3
7
  }
4
8
  .govgr-checkboxes__item {
5
9
  @apply block relative mb-4 pl-12;
@@ -47,12 +51,6 @@
47
51
  }
48
52
  }
49
53
  }
50
- .govgr-checkboxes__hint {
51
- @apply px-2 mb-2;
52
- }
53
- .govgr-checkboxes__conditional, .govgr-radios__conditional {
54
+ .govgr-checkboxes__conditional {
54
55
  @apply border-l-4 border-base-500 ml-4 pl-6;
55
56
  }
56
- .govgr-checkboxes__conditional--hidden, .govgr-radios__conditional--hidden {
57
- @apply hidden;
58
- }
@@ -1,27 +1,24 @@
1
1
  .govgr-chip--heading {
2
2
  @apply font-bold md:text-base text-sm pb-4;
3
3
  }
4
- .govgr-chips {
5
- @apply flex flex-wrap list-none gap-x-2;
6
- .govgr-chip .govgr-chip__content {
7
- @apply mr-0;
8
- }
9
- }
10
4
  .govgr-chips--horizontal {
11
5
  @apply md:flex md:flex-row md:flex-wrap;
12
6
  }
7
+ .govgr-chips {
8
+ @apply flex flex-wrap list-none;
9
+ }
13
10
  .govgr-chip {
14
11
  @apply list-none;
15
12
  .govgr-chip__content {
16
13
  @apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
17
14
  inline-flex items-center px-2 py-1 mr-2 mb-2 rounded shadow;
18
- .govgr-close-icon {
15
+ .govgr-svg-icon--close {
19
16
  @apply w-4 h-4 ml-3;
20
17
  }
21
18
  &[role="button"] {
22
19
  &:hover {
23
20
  @apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
24
- .govgr-close-icon {
21
+ .govgr-svg-icon--close {
25
22
  fill: var(--color-base-content-invert);
26
23
  }
27
24
  }
@@ -39,7 +36,7 @@
39
36
  &:hover {
40
37
  @apply shadow-lg transition;
41
38
  }
42
- .govgr-close-icon {
39
+ .govgr-svg-icon--close {
43
40
  &:hover {
44
41
  @apply cursor-pointer;
45
42
  }
@@ -1,46 +1,51 @@
1
- .govgr-copy-to-clipboard--root {
2
- @apply flex;
1
+ .govgr-copy-to-clipboard {
2
+ @apply flex w-fit;
3
3
  }
4
- .govgr-copy-to-clipboard--container {
4
+ .govgr-copy-to-clipboard__tooltip {
5
5
  @apply relative;
6
- &>button {
6
+ & > .govgr-btn {
7
7
  @apply m-0;
8
8
  }
9
- }
10
- .govgr-copy-to-clipboard--banner {
11
- @apply bg-success bg-opacity-95 p-2 w-full fixed top-0 right-0 text-center;
12
- &>* {
13
- @apply text-white;
9
+ .govgr-copy-to-clipboard__message {
10
+ @apply bg-success p-4 absolute mt-4 text-center z-50 w-fit md:w-max;
11
+ & > .govgr-body {
12
+ @apply text-white;
13
+ }
14
+ &::before {
15
+ content: "";
16
+ @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
17
+ absolute -top-1;
18
+ transform: rotate(45deg);
19
+ }
14
20
  }
15
21
  }
16
- .govgr-copy-to-clipboard--tooltip {
17
- @apply bg-success p-4 absolute mt-4 text-center z-50 w-fit md:w-max ;
18
- &>* {
19
- @apply text-white;
20
- }
21
- &::before {
22
- content: '';
23
- @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
24
- absolute -top-1;
25
- transform: rotate(45deg);
22
+ .govgr-copy-to-clipboard__banner {
23
+ .govgr-copy-to-clipboard__message {
24
+ @apply bg-success bg-opacity-95 p-2 w-full fixed top-0 right-0 text-center;
25
+ & > .govgr-body {
26
+ @apply text-white;
27
+ }
26
28
  }
27
29
  }
28
- .govgr-copy-to-clipboard--tooltip-right {
29
- @apply right-0;
30
- &::before {
31
- content: '';
32
- @apply right-4;
30
+ .govgr-copy-to-clipboard__tooltip--right {
31
+ .govgr-copy-to-clipboard__message {
32
+ @apply right-0;
33
+ &::before {
34
+ content: "";
35
+ @apply right-4;
36
+ }
33
37
  }
34
38
  }
35
- .govgr-copy-to-clipboard--tooltip-left {
36
- @apply left-0;
37
- &::before {
38
- content: '';
39
- @apply left-4;
39
+ .govgr-copy-to-clipboard__tooltip--left {
40
+ .govgr-copy-to-clipboard__message {
41
+ @apply left-0;
42
+ &::before {
43
+ content: "";
44
+ @apply left-4;
45
+ }
40
46
  }
41
47
  }
48
+
42
49
  .govgr-copy-to-clipboard--hidden {
43
- visibility: hidden;
44
- width: 0;
45
- height: 0;
50
+ @apply invisible w-0 h-0;
46
51
  }
@@ -5,8 +5,7 @@
5
5
  line-height: var(--details-line-height);
6
6
  }
7
7
  .govgr-details__summary {
8
- width: fit-content;
9
- @apply mb-0 underline cursor-pointer;
8
+ @apply mb-0 underline cursor-pointer w-fit;
10
9
  &:hover {
11
10
  text-decoration-thickness: 2px;
12
11
  }
@@ -19,12 +18,12 @@
19
18
  @apply outline-none;
20
19
  }
21
20
  }
22
- .govgr-details__summary--l {
21
+ .govgr-details__summary--lg {
23
22
  @apply font-semibold;
24
- font-size: var(--details__summary--l-font-size);
25
- line-height: var(--details__summary--l-line-height);
23
+ font-size: var(--details__summary--lg-font-size);
24
+ line-height: var(--details__summary--lg-line-height);
26
25
  }
27
- .govgr-details__summary-text {
26
+ .govgr-details__content {
28
27
  @apply border-l-2 border-base-500 py-2 px-4 mt-4;
29
28
  >*:last-child {
30
29
  @apply mb-0;
@@ -27,25 +27,25 @@
27
27
  }
28
28
  .govgr-drawer__close-icon {
29
29
  @apply flex flex-nowrap text-right w-max float-right items-center;
30
- .govgr-close-icon {
30
+ .govgr-svg-icon--close {
31
31
  @apply w-5 h-5 z-30 float-right;
32
32
  @apply ml-1 !important;
33
33
  fill: var(--color-link);
34
34
  }
35
35
  &:focus {
36
- .govgr-close-icon {
36
+ .govgr-svg-icon--close {
37
37
  fill: var(--color-link-active);
38
38
  }
39
39
  }
40
40
  &:hover {
41
- .govgr-close-icon {
41
+ .govgr-svg-icon--close {
42
42
  fill: var(--color-link-hover);
43
43
  }
44
44
  }
45
45
  }
46
46
  .govgr-drawer__heading {
47
47
  @apply p-0 mb-4 flex justify-between align-baseline;
48
- .govgr--drawer__close-icon, .govgr-heading-s, .govgr-heading-m, .govgr-heading-l, .govgr-heading-xl {
48
+ .govgr--drawer__close-icon, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
49
49
  @apply m-0;
50
50
  }
51
51
  }
@@ -2,7 +2,7 @@
2
2
  @apply w-fit relative;
3
3
  &[open] {
4
4
  .govgr-dropdown__button--arrow {
5
- .govgr-arrow--down {
5
+ .govgr-svg-icon--arrow {
6
6
  @apply transform -rotate-180;
7
7
  }
8
8
  }
@@ -22,11 +22,34 @@
22
22
  }
23
23
  }
24
24
  .govgr-dropdown__button--arrow {
25
- .govgr-arrow--down {
25
+ .govgr-svg-icon--arrow {
26
26
  @apply transition duration-300;
27
27
  }
28
28
  }
29
29
  }
30
+ .govgr-dropdown--up {
31
+ .govgr-dropdown__content {
32
+ @apply mb-4 border border-b-0 bottom-full;
33
+ -webkit-box-box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 2px 0 var(--color-base-500);
34
+ box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 2px 0 var(--color-base-500);
35
+ }
36
+ }
37
+ .govgr-dropdown--right {
38
+ .govgr-dropdown__content {
39
+ @apply right-0 mr-0 ml-4 text-right;
40
+ .govgr-field {
41
+ @apply text-left;
42
+ }
43
+ }
44
+ }
45
+ .govgr-dropdown--disabled {
46
+ @apply cursor-not-allowed;
47
+ .govgr-dropdown__button {
48
+ pointer-events: none;
49
+ user-select: none;
50
+ opacity: 0.5;
51
+ }
52
+ }
30
53
  .govgr-dropdown__button {
31
54
  @apply w-fit print:text-base-content;
32
55
  &::marker {
@@ -43,7 +66,7 @@
43
66
  .govgr-dropdown__button.govgr-link + .govgr-dropdown__content {
44
67
  @apply mt-4 print:text-base-content;
45
68
  }
46
- .govgr-button-group .govgr-btn + .govgr-dropdown__content {
69
+ .govgr-btn-group .govgr-btn + .govgr-dropdown__content {
47
70
  @apply mt-4;
48
71
  }
49
72
  .govgr-dropdown__content {
@@ -74,26 +97,6 @@
74
97
  }
75
98
  }
76
99
  }
77
- .govgr-dropdown--up {
78
- .govgr-dropdown__content {
79
- @apply mb-4 border border-b-0 bottom-full;
80
- -webkit-box-box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 2px 0 var(--color-base-500);
81
- box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 2px 0 var(--color-base-500);
82
- }
83
- }
84
- .govgr-dropdown--right {
85
- .govgr-dropdown__content {
86
- @apply right-0 mr-0 ml-4 text-right;
87
- }
88
- }
89
- .govgr-dropdown--disabled {
90
- @apply cursor-not-allowed;
91
- .govgr-dropdown__button {
92
- pointer-events: none;
93
- user-select: none;
94
- opacity: 0.5;
95
- }
96
- }
97
100
  .govgr-header, .govgr-admin-header {
98
101
  .govgr-dropdown__button.govgr-link {
99
102
  @apply text-lg text-white focus:text-base-content print:text-base-800;
@@ -102,14 +105,3 @@
102
105
  @apply print:hidden;
103
106
  }
104
107
  }
105
- .govgr-table {
106
- .govgr-dropdown__content{
107
- @apply mt-0;
108
- }
109
- .govgr-dropdown__button {
110
- @apply mb-0;
111
- }
112
- .govgr-caret-container{
113
- @apply flex flex-col;
114
- }
115
- }
@@ -56,20 +56,20 @@
56
56
  align-items: flex-end;
57
57
  }
58
58
  }
59
- .govgr-filter__close-link {
59
+ .govgr-filter__close-btn {
60
60
  @apply flex flex-nowrap md:hidden text-right w-max float-right;
61
- .govgr-close-icon {
61
+ .govgr-svg-icon--close {
62
62
  @apply w-5 h-5 float-right;
63
63
  @apply ml-1 !important;
64
64
  fill: var(--color-link);
65
65
  }
66
66
  &:focus {
67
- .govgr-close-icon {
67
+ .govgr-svg-icon--close {
68
68
  fill: var(--color-link-active);
69
69
  }
70
70
  }
71
71
  &:hover {
72
- .govgr-close-icon {
72
+ .govgr-svg-icon--close {
73
73
  fill: var(--color-link-hover);
74
74
  }
75
75
  }
@@ -79,7 +79,7 @@
79
79
  }
80
80
  .govgr-filter__heading {
81
81
  @apply mb-4;
82
- .govgr-filter__close-link, .govgr-heading-s, .govgr-heading-m, .govgr-heading-l, .govgr-heading-xl {
82
+ .govgr-filter__close-btn, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
83
83
  @apply m-0;
84
84
  }
85
85
  }
@@ -91,7 +91,7 @@
91
91
  }
92
92
  .govgr-filter__selected-heading {
93
93
  @apply flex flex-wrap sm:flex-nowrap mb-4 md:mb-6 justify-between gap-x-2;
94
- .govgr-link, .govgr-heading-s, .govgr-heading-m, .govgr-heading-l, .govgr-heading-xl {
94
+ .govgr-link, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
95
95
  @apply m-0 h-full;
96
96
  }
97
97
  }
@@ -102,7 +102,7 @@
102
102
  px-4 py-2 w-min m-0 ml-3
103
103
  flex gap-2
104
104
  hover:bg-success-hover active:bg-success-hover hover:no-underline;
105
- .govgr-search-icon {
105
+ .govgr-svg-icon--search {
106
106
  fill: var(--color-white);
107
107
  @apply w-7 h-7;
108
108
  }
@@ -38,9 +38,9 @@
38
38
  .govgr-footer__logo, .govgr-footer__government-logo {
39
39
  @apply max-w-full h-auto w-52 min-w-52 block;
40
40
  }
41
- .govgr-footer__licence-description {
41
+ .govgr-footer__copyright {
42
42
  @apply mt-6 print:mt-4;
43
- font-size: var(--footer__licence-description-font-size);
43
+ font-size: var(--footer__license-description-font-size);
44
44
  .govgr-link {
45
45
  font-size: inherit;
46
46
  }
@@ -84,10 +84,7 @@
84
84
  column-count: 2;
85
85
  }
86
86
  }
87
- .govgr-footer__section-break {
88
- @apply m-auto px-4 py-2 border-t border-base-300 mb-5
89
- print:hidden;
90
- }
87
+ .govgr-footer__list-item {}
91
88
  .govgr-footer__heading {
92
89
  @apply mb-4 pb-4 border-b border-base-300;
93
90
  }
@@ -9,23 +9,21 @@
9
9
  :not(.govgr-field) {
10
10
  @apply col-span-12;
11
11
  }
12
- }
12
+ }
13
13
  :not(.govgr-field) {
14
14
  @apply col-span-12;
15
15
  }
16
16
  }
17
17
  }
18
- .govgr-form--row {
19
- @apply flex flex-wrap gap-x-4;
20
- }
21
18
  .govgr-field {
22
19
  @apply mb-8 md:mb-10;
23
20
  .govgr-fieldset {
24
- > .govgr-field:last-child, > .govgr-btn:last-child {
25
- @apply mb-0;
21
+ > .govgr-field:last-child,
22
+ > .govgr-btn:last-child {
23
+ @apply mb-0;
26
24
  }
27
25
  }
28
- .govgr-fieldset + .govgr-btn {
26
+ .govgr-fieldset + .govgr-btn {
29
27
  @apply mt-4 md:mt-6;
30
28
  }
31
29
  }
@@ -42,11 +40,18 @@
42
40
  font-size: var(--label-font-size);
43
41
  line-height: var(--label-line-height);
44
42
  letter-spacing: var(--label-letter-spacing);
45
- .govgr-heading-s, .govgr-heading-m, .govgr-heading-l, .govgr-heading-xl, .govgr-hint, .govgr-error-message {
43
+ .govgr-heading-sm,
44
+ .govgr-heading-md,
45
+ .govgr-heading-lg,
46
+ .govgr-heading-xl,
47
+ .govgr-hint,
48
+ .govgr-error-message {
46
49
  @apply mb-0;
47
50
  }
48
51
  }
49
- .govgr-input, .govgr-select, .govgr-textarea{
52
+ .govgr-input,
53
+ .govgr-select,
54
+ .govgr-textarea {
50
55
  @apply md:text-lg text-base w-full p-2 border-2 border-base-content bg-base-100;
51
56
  text-indent: 2px;
52
57
  &:focus {
@@ -62,17 +67,18 @@
62
67
  .govgr-file-input {
63
68
  @apply hidden;
64
69
  }
65
- .govgr-uploaded-file{
70
+ .govgr-uploaded-file {
66
71
  @apply flex flex-wrap gap-x-4 mb-0;
67
- .govgr-link{
72
+ .govgr-link {
68
73
  @apply h-fit text-lg;
69
74
  }
70
75
  }
71
- .govgr-date-input, .govgr-single-character-input--container {
76
+ .govgr-date-input,
77
+ .govgr-single-character-input--container {
72
78
  @apply flex;
73
- .form-group {
74
- @apply mr-4;
75
- }
79
+ }
80
+ .govgr-select {
81
+ @apply w-auto max-w-full;
76
82
  }
77
83
  .govgr-input--width-20 {
78
84
  max-width: 41ex;
@@ -96,16 +102,16 @@
96
102
  max-width: 3.1ex;
97
103
  @apply text-center pl-0 pr-0;
98
104
  }
99
- .govgr-date-input__item, .govgr-otp-input__item {
100
- @apply mr-4;
105
+ .govgr-date-input__item,
106
+ .govgr-otp-input__item {
107
+ @apply mr-4;
101
108
  }
102
-
103
109
  .govgr-\!-width-one-quarter,
104
110
  .govgr-\!-width-one-third,
105
111
  .govgr-\!-width-one-half,
106
112
  .govgr-\!-width-two-thirds,
107
113
  .govgr-\!-width-three-quarters,
108
- .govgr-\!-width-full-width {
114
+ .govgr-\!-width-full {
109
115
  width: 100% !important;
110
116
  }
111
117
  @screen sm {
@@ -124,46 +130,45 @@
124
130
  .govgr-\!-width-three-quarters {
125
131
  width: 75% !important;
126
132
  }
127
- .govgr-\!-width-full-width {
133
+ .govgr-\!-width-full {
128
134
  width: 100% !important;
129
135
  }
130
136
  }
131
- .govgr-select {
132
- @apply w-auto max-w-full;
133
- }
137
+
134
138
  /* error handling */
135
- .govgr-field__error {
139
+
140
+ .govgr-field--error {
136
141
  @apply border-l-5 border-error px-0 pl-4;
137
142
  }
138
143
  .govgr-error-message {
139
- @apply md:text-lg text-base block mb-4 text-error font-semibold;
140
- }
141
- .govgr-error-input {
142
- @apply border-error border-3;
143
- &:focus {
144
- outline: 4px solid var(--color-focus);
145
- outline-offset: 0;
146
- -webkit-box-shadow: inset 0 0 0 1px var(--color-error);
147
- box-shadow: inset 0 0 0 1px var(--color-error);
144
+ @apply md:text-lg text-base block mb-4 text-error font-semibold;
145
+ }
146
+ .govgr-input--error {
147
+ @apply border-error border-3;
148
+ &:focus {
149
+ outline: 4px solid var(--color-focus);
150
+ outline-offset: 0;
151
+ -webkit-box-shadow: inset 0 0 0 1px var(--color-error);
152
+ box-shadow: inset 0 0 0 1px var(--color-error);
148
153
  }
149
154
  }
150
155
 
151
- /* disabled inputs */
156
+ /* disabled inputs */
152
157
 
153
- .govgr-input:disabled,
154
- .govgr-textarea:disabled,
155
- .govgr-select:disabled,
156
- .govgr-checkboxes__input:disabled,
157
- .govgr-checkboxes__input:disabled::before,
158
- .govgr-checkboxes__input:disabled:checked:before,
158
+ .govgr-input:disabled,
159
+ .govgr-textarea:disabled,
160
+ .govgr-select:disabled,
161
+ .govgr-checkboxes__input:disabled,
162
+ .govgr-checkboxes__input:disabled::before,
163
+ .govgr-checkboxes__input:disabled:checked:before,
159
164
  .govgr-radios__input:disabled,
160
165
  .govgr-radios__input:disabled::before,
161
166
  .govgr-radios__input:disabled:checked:before {
162
167
  @apply bg-base-300 cursor-not-allowed;
163
168
  }
164
- .govgr-input:disabled,
165
- .govgr-textarea:disabled,
166
- .govgr-checkboxes__input:disabled::before,
169
+ .govgr-input:disabled,
170
+ .govgr-textarea:disabled,
171
+ .govgr-checkboxes__input:disabled::before,
167
172
  .govgr-radios__input:disabled::before {
168
173
  @apply border-base-700 text-base-800;
169
174
  }
@@ -176,6 +181,6 @@
176
181
  .govgr-checkboxes__label--disabled {
177
182
  @apply opacity-40;
178
183
  }
179
- .govgr-choice-divider {
180
- @apply text-lg text-center w-10 mb-4;
184
+ .govgr-choice-divider-text {
185
+ @apply text-lg text-center min-w-10 w-max mb-4;
181
186
  }
@@ -1,7 +1,4 @@
1
1
  .govgr-full-page-background {
2
2
  @apply flex justify-center items-center content-center bg-opacity-50 bg-base-1000
3
3
  fixed z-10 left-0 top-0 w-full h-full;
4
- }
5
- .govgr-loader__icon {
6
- @apply h-fit w-fit;
7
4
  }