@digigov/css 1.0.0-blabla-test → 1.0.0-e322b0cc

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 (69) hide show
  1. package/defaultTheme/footer.json +5 -5
  2. package/defaultTheme/typography.json +22 -2
  3. package/dist/base/index.css +1 -3
  4. package/dist/base.js +1 -1
  5. package/dist/components.js +1 -1
  6. package/dist/digigov.css +3 -5
  7. package/dist/utilities/index.css +1 -1
  8. package/dist/utilities.js +1 -1
  9. package/index.js +1 -1
  10. package/package.json +6 -7
  11. package/postcss.config.js +15 -14
  12. package/src/base/index.css +4 -0
  13. package/src/base/postcss.config.js +23 -22
  14. package/src/base/tailwind.config.js +19 -15
  15. package/src/components/accordion.css +67 -13
  16. package/src/components/admin-header.css +27 -1
  17. package/src/components/admin-layout.css +6 -0
  18. package/src/components/autocomplete.css +12 -9
  19. package/src/components/bottom-info.css +2 -1
  20. package/src/components/button.css +99 -32
  21. package/src/components/card.css +30 -15
  22. package/src/components/checkboxes.css +56 -10
  23. package/src/components/chip.css +35 -15
  24. package/src/components/copy-to-clipboard.css +52 -30
  25. package/src/components/drawer.css +58 -27
  26. package/src/components/dropdown.css +96 -71
  27. package/src/components/filter.css +71 -63
  28. package/src/components/footer.css +29 -23
  29. package/src/components/form.css +70 -47
  30. package/src/components/header.css +86 -32
  31. package/src/components/hidden.css +3 -0
  32. package/src/components/index.css +3 -1
  33. package/src/components/kitchensink.css +2 -2
  34. package/src/components/layout.css +25 -25
  35. package/src/components/loader.css +11 -22
  36. package/src/components/masthead.css +78 -0
  37. package/src/components/misc.css +17 -41
  38. package/src/components/modal.css +10 -3
  39. package/src/components/nav.css +93 -126
  40. package/src/components/notification-banner.css +32 -10
  41. package/src/components/pagination.css +41 -24
  42. package/src/components/panel.css +5 -4
  43. package/src/components/phase-banner.css +1 -7
  44. package/src/components/postcss.config.js +15 -16
  45. package/src/components/radios.css +34 -25
  46. package/src/components/stack.css +66 -0
  47. package/src/components/stepnav.css +34 -10
  48. package/src/components/summary-list.css +22 -15
  49. package/src/components/svg-icons.css +2 -62
  50. package/src/components/table.css +43 -47
  51. package/src/components/tabs.css +33 -1
  52. package/src/components/tailwind.config.js +12 -6
  53. package/src/components/task-list.css +28 -15
  54. package/src/components/timeline.css +21 -6
  55. package/src/components/typography.css +98 -64
  56. package/src/components/warning-text.css +23 -0
  57. package/src/fonts.css +1 -1
  58. package/src/index.css +0 -2
  59. package/src/pages/admin-filtering-data.js +1 -1
  60. package/src/pages/dropdown.js +2 -2
  61. package/src/pages/form.js +1 -1
  62. package/src/pages/index.js +12 -10
  63. package/src/utilities/index.css +142 -22
  64. package/src/utilities/postcss.config.js +15 -16
  65. package/src/utilities/tailwind.config.js +10 -1
  66. package/src/utilities/utilities.css +158 -34
  67. package/tailwind.config.js +18 -30
  68. package/themes.plugin.js +95 -100
  69. package/src/components/accessibility-menu.css +0 -71
@@ -1,5 +1,68 @@
1
1
  .govgr-dropdown {
2
2
  @apply w-fit relative;
3
+ &.govgr-dropdown--up {
4
+ .govgr-dropdown__content {
5
+ @apply mb-4 border border-b-0 bottom-full;
6
+ -webkit-box-box-shadow:
7
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
8
+ 0 2px 0 var(--color-base-500);
9
+ box-shadow:
10
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
11
+ 0 2px 0 var(--color-base-500);
12
+ }
13
+ }
14
+ &.govgr-dropdown--right {
15
+ .govgr-dropdown__content {
16
+ @apply right-0 mr-0 ml-4;
17
+ }
18
+ }
19
+ &.govgr-dropdown--disabled {
20
+ @apply cursor-not-allowed;
21
+ .govgr-dropdown__button {
22
+ pointer-events: none;
23
+ user-select: none;
24
+ opacity: 0.5;
25
+ }
26
+ }
27
+ &.govgr-dropdown--dense,
28
+ .govgr-dense & {
29
+ .govgr-dropdown__content {
30
+ @apply p-2;
31
+ }
32
+ }
33
+ .govgr-dropdown__button {
34
+ @apply w-fit print:text-base-content;
35
+ &::marker {
36
+ font-size: 0px;
37
+ }
38
+ }
39
+ .govgr-dropdown__button.govgr-link + .govgr-dropdown__content {
40
+ @apply mt-4 print:text-base-content;
41
+ }
42
+ .govgr-btn-group .govgr-btn + .govgr-dropdown__content {
43
+ @apply mt-4;
44
+ }
45
+ .govgr-dropdown__content {
46
+ @apply border border-base-400 p-4 bg-base-100 border-t-0
47
+ max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
48
+ -webkit-box-box-shadow:
49
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
50
+ 0 -2px 0 var(--color-base-500);
51
+ box-shadow:
52
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
53
+ 0 -2px 0 var(--color-base-500);
54
+ *:last-child {
55
+ @apply mb-0;
56
+ }
57
+ }
58
+ .govgr-dropdown__content--full-width {
59
+ @apply min-w-full;
60
+ }
61
+ }
62
+
63
+ /* overrides */
64
+
65
+ .govgr-dropdown {
3
66
  &[open] {
4
67
  .govgr-dropdown__button--arrow {
5
68
  .govgr-svg-icon--arrow {
@@ -7,10 +70,10 @@
7
70
  }
8
71
  }
9
72
  .govgr-dropdown__button {
10
- &.govgr-btn-primary {
73
+ &.govgr-btn-primary {
11
74
  background-color: var(--btn-primary-background-color-hover);
12
75
  color: var(--btn-primary-color-hover);
13
- }
76
+ }
14
77
  &.govgr-btn-secondary {
15
78
  background-color: var(--btn-secondary-background-color-hover);
16
79
  color: var(--btn-secondary-color-hover);
@@ -26,82 +89,44 @@
26
89
  @apply transition duration-300;
27
90
  }
28
91
  }
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);
92
+ .govgr-dropdown__button {
93
+ .govgr-svg-icon {
94
+ @apply w-5 h-6 md:h-8;
95
+ @apply print:hidden;
96
+ }
97
+ &.govgr-link {
98
+ @apply inline-flex gap-1 items-center;
99
+ }
35
100
  }
36
- }
37
- .govgr-dropdown--right {
38
101
  .govgr-dropdown__content {
39
- @apply right-0 mr-0 ml-4 text-right;
40
102
  .govgr-field {
41
- @apply text-left;
103
+ @apply mb-4;
104
+ }
105
+ .govgr-section-break {
106
+ @apply -mx-4 w-auto;
107
+ }
108
+ > .govgr-nav__list {
109
+ @apply w-auto -mx-4 flex-col;
110
+ .govgr-nav__list-item {
111
+ @apply border-b border-base-300 py-2 px-4;
112
+ &:last-child {
113
+ @apply border-0;
114
+ }
115
+ &:focus {
116
+ @apply border-focus;
117
+ }
118
+ }
42
119
  }
43
120
  }
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
- }
53
- .govgr-dropdown__button {
54
- @apply w-fit print:text-base-content;
55
- &::marker {
56
- font-size: 0px;
57
- }
58
- .govgr-svg-icon {
59
- @apply w-5 h-6 md:h-8;
60
- @apply print:hidden;
61
- }
62
- &.govgr-link {
63
- @apply inline-flex gap-1 items-center;
64
- }
65
- }
66
- .govgr-dropdown__button.govgr-link + .govgr-dropdown__content {
67
- @apply mt-4 print:text-base-content;
68
- }
69
- .govgr-btn-group .govgr-btn + .govgr-dropdown__content {
70
- @apply mt-4;
71
- }
72
- .govgr-dropdown__content {
73
- @apply border border-base-400 p-4 bg-base-100 border-t-0
74
- max-w-xs w-max min-w-full absolute transition z-1 mr-4 -mt-4;
75
- -webkit-box-box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 -2px 0 var(--color-base-500);
76
- box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3), 0 -2px 0 var(--color-base-500);
77
- *:last-child {
78
- @apply mb-0;
79
- }
80
- .govgr-field {
81
- @apply mb-4;
82
- }
83
- .govgr-section-break {
84
- @apply -mx-4 w-auto;
85
- }
86
- .govgr-vertical-nav {
87
- @apply -mx-4 flex-col;
88
- .govgr-vertical-nav__item {
89
- @apply border-b border-base-300 py-2 px-4;
90
- &:last-child {
91
- @apply border-0;
121
+ &.govgr-dropdown--dense,
122
+ .govgr-dense & {
123
+ .govgr-dropdown__content {
124
+ .govgr-section-break {
125
+ @apply -mx-2 w-auto;
92
126
  }
93
- .govgr-link {
94
- @apply text-base-content no-underline
95
- hover:underline;
127
+ > .govgr-nav__list {
128
+ @apply w-auto -mx-2 flex-col;
96
129
  }
97
130
  }
98
131
  }
99
132
  }
100
- .govgr-header, .govgr-admin-header {
101
- .govgr-dropdown__button.govgr-link {
102
- @apply text-lg text-white focus:text-base-content print:text-base-800;
103
- }
104
- .govgr-dropdown {
105
- @apply print:hidden;
106
- }
107
- }
@@ -1,32 +1,29 @@
1
1
  .govgr-filter {
2
2
  @apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll z-40 w-4/5;
3
3
  box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
4
- .govgr-select {
5
- @apply w-full;
6
- }
7
4
  }
8
5
  .govgr-filter {
9
6
  &.govgr-filter--position-relative-always {
10
- @apply block relative overflow-visible w-full shadow-none z-0 !important;
11
- &.govgr-filter--closed {
7
+ @apply block relative overflow-visible w-full shadow-none z-2 !important;
8
+ &.govgr-filter--closed {
12
9
  @apply block !important;
13
10
  }
14
11
  }
15
12
  &.govgr-filter--position-relative-sm {
16
- @apply sm:block sm:relative sm:overflow-visible sm:w-full sm:shadow-none sm:z-0 ;
17
- &.govgr-filter--closed {
13
+ @apply sm:block sm:relative sm:overflow-visible sm:w-full sm:shadow-none sm:z-2;
14
+ &.govgr-filter--closed {
18
15
  @apply sm:block;
19
16
  }
20
17
  }
21
18
  &.govgr-filter--position-relative-md {
22
- @apply md:block md:relative md:overflow-visible md:w-full md:shadow-none md:z-0 ;
23
- &.govgr-filter--closed {
19
+ @apply md:block md:relative md:overflow-visible md:w-full md:shadow-none md:z-2;
20
+ &.govgr-filter--closed {
24
21
  @apply md:block;
25
22
  }
26
23
  }
27
24
  &.govgr-filter--position-relative-lg {
28
- @apply lg:block lg:relative lg:overflow-visible lg:w-full lg:shadow-none lg:z-0 ;
29
- &.govgr-filter--closed {
25
+ @apply lg:block lg:relative lg:overflow-visible lg:w-full lg:shadow-none lg:z-2;
26
+ &.govgr-filter--closed {
30
27
  @apply lg:block;
31
28
  }
32
29
  }
@@ -44,87 +41,98 @@
44
41
  @apply flex gap-4 flex-col;
45
42
  align-items: stretch;
46
43
  @apply md:flex-row md:flex-wrap;
47
- .govgr-field {
48
- @apply mb-0;
49
- }
50
- .govgr-label, .govgr-btn {
51
- @apply mb-0;
52
- }
53
44
  }
54
45
  @media (min-width: 768px) {
55
46
  .govgr-filter__options--horizontal {
56
47
  align-items: flex-end;
57
48
  }
58
49
  }
59
- .govgr-filter__close-btn {
60
- @apply flex flex-nowrap md:hidden text-right w-max float-right;
61
- .govgr-svg-icon--close {
62
- @apply w-5 h-5 float-right;
63
- @apply ml-1 !important;
64
- fill: var(--color-link);
65
- }
66
- &:focus {
67
- .govgr-svg-icon--close {
68
- fill: var(--color-link-active);
69
- }
70
- }
71
- &:hover {
72
- .govgr-svg-icon--close {
73
- fill: var(--color-link-hover);
74
- }
75
- }
50
+ .govgr-filter__heading,
51
+ .govgr-filter__selected,
52
+ .govgr-filter__options {
53
+ @apply p-0;
76
54
  }
77
- .govgr-filter__heading, .govgr-filter__selected, .govgr-filter__options {
78
- @apply p-0;
79
- }
80
55
  .govgr-filter__heading {
81
56
  @apply mb-4;
82
- .govgr-filter__close-btn, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
83
- @apply m-0;
84
- }
85
57
  }
86
58
  .govgr-filter__selected {
87
59
  @apply bg-base-200 p-4 m-0 rounded;
88
60
  }
89
- .govgr-filter__selected--indicator {
90
- @apply md:hidden;
91
- }
92
61
  .govgr-filter__selected-heading {
93
62
  @apply flex flex-wrap sm:flex-nowrap mb-4 md:mb-6 justify-between gap-x-2;
94
- .govgr-link, .govgr-heading-sm, .govgr-heading-md, .govgr-heading-lg, .govgr-heading-xl {
95
- @apply m-0 h-full;
96
- }
97
63
  }
98
64
  .govgr-input__search-btn {
99
65
  @apply shadow-none !important;
100
- @apply
101
- border-b-2 border-base-content rounded-none
66
+ @apply border-b-2 border-base-content rounded-none
102
67
  px-4 py-2 w-min m-0 ml-3
103
68
  flex gap-2
104
69
  hover:bg-success-hover active:bg-success-hover hover:no-underline;
105
- .govgr-svg-icon--search {
106
- fill: var(--color-white);
107
- @apply w-7 h-7;
108
- }
109
70
  }
110
71
  .govgr-search {
111
72
  @apply flex w-full max-w-3xl;
112
73
  }
113
- .govgr-results-action-bar {
114
- @apply py-2 mb-8 flex flex-wrap justify-start gap-4 items-baseline;
115
- > * {
116
- @apply mb-0;
117
- }
118
- .govgr-field {
119
- @apply flex items-baseline gap-2;
120
- }
74
+ .govgr-results__action-bar {
75
+ @apply py-2 mb-8 flex flex-wrap justify-start gap-4 items-baseline;
76
+ > * {
77
+ @apply mb-0;
78
+ }
121
79
  }
122
- .govgr-results-heading {
80
+ .govgr-results__heading {
123
81
  @apply flex flex-wrap justify-between items-baseline gap-x-2;
124
82
  }
125
- .govgr-results-heading__actions {
83
+ .govgr-results__actions {
126
84
  @apply flex flex-wrap gap-4 justify-start min-w-min mb-4;
127
85
  }
128
86
  .govgr-link-filters {
129
87
  @apply block md:hidden;
130
- }
88
+ }
89
+
90
+ /* overrides */
91
+
92
+ .govgr-filter {
93
+ @apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll z-40 w-4/5;
94
+ box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
95
+ .govgr-select {
96
+ @apply w-full;
97
+ }
98
+ }
99
+ .govgr-filter__options--horizontal {
100
+ .govgr-field {
101
+ @apply mb-0;
102
+ }
103
+ .govgr-label,
104
+ .govgr-btn {
105
+ @apply mb-0;
106
+ }
107
+ }
108
+ .govgr-filter__heading {
109
+ .govgr-close-btn,
110
+ .govgr-heading-xs,
111
+ .govgr-heading-sm,
112
+ .govgr-heading-md,
113
+ .govgr-heading-lg,
114
+ .govgr-heading-xl {
115
+ @apply m-0;
116
+ }
117
+ }
118
+ .govgr-filter__selected-heading {
119
+ .govgr-link,
120
+ .govgr-heading-xs,
121
+ .govgr-heading-sm,
122
+ .govgr-heading-md,
123
+ .govgr-heading-lg,
124
+ .govgr-heading-xl {
125
+ @apply m-0 h-full;
126
+ }
127
+ }
128
+ .govgr-input__search-btn {
129
+ .govgr-svg-icon--search {
130
+ fill: var(--color-white);
131
+ @apply w-7 h-7;
132
+ }
133
+ }
134
+ .govgr-results__action-bar {
135
+ .govgr-field {
136
+ @apply flex items-baseline gap-2;
137
+ }
138
+ }
@@ -2,20 +2,14 @@
2
2
  @apply border-0 border-solid font-normal text-base py-4 md:py-8
3
3
  border-t-4 border-tertiary text-base-800 bg-base-200 w-full
4
4
  print:py-2 print:bg-white print:border-t-2;
5
- .govgr-section-break {
6
- @apply print:hidden;
7
- }
8
- .govgr-link {
9
- @apply print:text-base-content;
10
- }
11
5
  }
12
- .govgr-footer__meta {
6
+ .govgr-footer__info {
13
7
  @apply w-full flex flex-1 flex-wrap md:flex-nowrap items-end justify-between box-border;
14
8
  }
15
- .govgr-footer__meta-item {
9
+ .govgr-footer__info-section {
16
10
  @apply mx-2 md:mx-4 mb-6 print:mb-4;
17
11
  }
18
- .govgr-footer__meta-item--grow {
12
+ .govgr-footer__info-section--grow {
19
13
  @apply flex flex-grow;
20
14
  }
21
15
  .govgr-footer__content {
@@ -38,23 +32,18 @@
38
32
  .govgr-footer__logo, .govgr-footer__government-logo {
39
33
  @apply max-w-full h-auto w-52 min-w-52 block;
40
34
  }
41
- .govgr-footer__licence-description {
35
+ .govgr-footer__copyright {
42
36
  @apply mt-6 print:mt-4;
43
- font-size: var(--footer__licence-description-font-size);
37
+ font-size: var(--footer__copyright-font-size);
44
38
  .govgr-link {
45
39
  font-size: inherit;
46
40
  }
47
41
  }
48
- .govgr-footer__inline-list {
49
- @apply mt-0 mb-4 p-0 print:hidden;
50
- }
51
- .govgr-footer__inline-list-item {
52
- @apply inline-block mr-4 mb-2;
53
- }
54
42
  .govgr-footer__link {
55
43
  @apply underline ;
56
44
  &:hover {
57
45
  text-decoration-thickness: 2px;
46
+ color: var(--color-base-800);
58
47
  }
59
48
  &:focus {
60
49
  background-color: var(--color-focus) !important;
@@ -66,20 +55,26 @@
66
55
  .govgr-footer__navigation {
67
56
  @apply flex flex-wrap print:hidden;
68
57
  }
69
- .govgr-footer__section {
58
+ .govgr-footer__navigation-section {
70
59
  @apply inline-block mx-4 mb-8 align-top flex-grow flex-shrink
71
60
  print:hidden;
72
61
  }
73
- @media (min-width: 48em) {
74
- .govgr-footer__section:first-child:nth-last-child(2) {
62
+ @media (min-width: 768px) {
63
+ .govgr-footer__navigation-section:first-child:nth-last-child(2) {
75
64
  @apply flex-grow-2;
76
65
  }
77
66
  }
78
67
  .govgr-footer__list {
79
- @apply m-0 p-0 list-none gap-x-6
68
+ @apply m-0 p-0 list-none gap-x-6 text-sm md:text-base
80
69
  print:hidden;
81
70
  }
82
- @media (min-width: 48em) {
71
+ .govgr-footer__list--horizontal {
72
+ @apply mb-4;
73
+ .govgr-footer__list-item {
74
+ @apply inline-block mr-4 mb-2;
75
+ }
76
+ }
77
+ @media (min-width: 768px) {
83
78
  .govgr-footer__list--columns-2 {
84
79
  column-count: 2;
85
80
  }
@@ -87,4 +82,15 @@
87
82
  .govgr-footer__list-item {}
88
83
  .govgr-footer__heading {
89
84
  @apply mb-4 pb-4 border-b border-base-300;
90
- }
85
+ }
86
+
87
+ /* overrides */
88
+
89
+ .govgr-footer {
90
+ .govgr-section-break {
91
+ @apply print:hidden;
92
+ }
93
+ .govgr-link {
94
+ @apply print:text-base-content;
95
+ }
96
+ }
@@ -1,20 +1,4 @@
1
- .govgr-form {
2
- .govgr-body {
3
- @apply mb-4;
4
- }
5
- &.govgr-grid {
6
- @apply grid gap-4;
7
- .govgr-fieldset {
8
- @apply grid gap-4;
9
- :not(.govgr-field) {
10
- @apply col-span-12;
11
- }
12
- }
13
- :not(.govgr-field) {
14
- @apply col-span-12;
15
- }
16
- }
17
- }
1
+ .govgr-form {}
18
2
  .govgr-field {
19
3
  @apply mb-8 md:mb-10;
20
4
  .govgr-fieldset {
@@ -40,14 +24,6 @@
40
24
  font-size: var(--label-font-size);
41
25
  line-height: var(--label-line-height);
42
26
  letter-spacing: var(--label-letter-spacing);
43
- .govgr-heading-sm,
44
- .govgr-heading-md,
45
- .govgr-heading-lg,
46
- .govgr-heading-xl,
47
- .govgr-hint,
48
- .govgr-error-message {
49
- @apply mb-0;
50
- }
51
27
  }
52
28
  .govgr-input,
53
29
  .govgr-select,
@@ -61,6 +37,17 @@
61
37
  box-shadow: inset 0 0 0 2px;
62
38
  }
63
39
  }
40
+ .govgr-input--dense,.govgr-dense .govgr-input ,
41
+ .govgr-textarea--dense, .govgr-dense .govgr-textarea ,
42
+ .govgr-select--dense, .govgr-dense .govgr-select,
43
+ .govgr-date-input--dense .govgr-input, .govgr-dense .govgr-date-input .govgr-input
44
+ {
45
+ @apply p-1;
46
+ &:focus {
47
+ -webkit-box-shadow: inset 0 0 0 1px;
48
+ box-shadow: inset 0 0 0 1px;
49
+ }
50
+ }
64
51
  .govgr-label-file {
65
52
  @apply mb-0;
66
53
  }
@@ -69,41 +56,45 @@
69
56
  }
70
57
  .govgr-uploaded-file {
71
58
  @apply flex flex-wrap gap-x-4 mb-0;
72
- .govgr-link {
73
- @apply h-fit text-lg;
59
+ }
60
+ .govgr-date-input {
61
+ @apply flex flex-wrap gap-y-2;
62
+ &.govgr-date-input--dense, .govgr-dense & {
63
+ .govgr-date-input__item {
64
+ @apply mr-2;
65
+ }
74
66
  }
75
67
  }
76
- .govgr-date-input,
77
- .govgr-single-character-input--container {
78
- @apply flex;
68
+ .govgr-single-character-input {
69
+ @apply flex flex-wrap gap-y-2;
79
70
  }
80
71
  .govgr-select {
81
72
  @apply w-auto max-w-full;
82
73
  }
83
- .govgr-input--width-20 {
74
+ .govgr-select__option {}
75
+ .govgr-input--width-20-char {
84
76
  max-width: 41ex;
85
77
  }
86
- .govgr-input--width-10 {
78
+ .govgr-input--width-10-char {
87
79
  max-width: 23ex;
88
80
  }
89
- .govgr-input--width-5 {
81
+ .govgr-input--width-5-char {
90
82
  max-width: 10.8ex;
91
83
  }
92
- .govgr-input--width-4 {
84
+ .govgr-input--width-4-char {
93
85
  max-width: 9ex;
94
86
  }
95
- .govgr-input--width-3 {
87
+ .govgr-input--width-3-char {
96
88
  max-width: 7.2ex;
97
89
  }
98
- .govgr-input--width-2 {
90
+ .govgr-input--width-2-char {
99
91
  max-width: 5.4ex;
100
92
  }
101
- .govgr-otp-input--width {
102
- max-width: 3.1ex;
103
- @apply text-center pl-0 pr-0;
93
+ .govgr-single-character-input__item {
94
+ max-width: 4.4ex;
95
+ @apply text-center px-0 mr-3;
104
96
  }
105
- .govgr-date-input__item,
106
- .govgr-otp-input__item {
97
+ .govgr-date-input__item {
107
98
  @apply mr-4;
108
99
  }
109
100
  .govgr-\!-width-one-quarter,
@@ -137,9 +128,6 @@
137
128
 
138
129
  /* error handling */
139
130
 
140
- .govgr-error-summary {
141
- @apply border-5 border-error mb-6 md:mb-8 p-4 md:p-5;
142
- }
143
131
  .govgr-field--error {
144
132
  @apply border-l-5 border-error px-0 pl-4;
145
133
  }
@@ -179,11 +167,46 @@
179
167
  .govgr-radios__input:disabled:checked:after {
180
168
  @apply opacity-40;
181
169
  }
182
-
183
170
  .govgr-radios__label--disabled,
184
171
  .govgr-checkboxes__label--disabled {
185
172
  @apply opacity-40;
186
173
  }
187
- .govgr-choice-divider {
188
- @apply text-lg text-center w-10 mb-4;
174
+ .govgr-choice-divider-text {
175
+ @apply text-lg text-center min-w-10 w-max mb-4;
176
+ }
177
+
178
+ /* overrides */
179
+
180
+ .govgr-form {
181
+ .govgr-body {
182
+ @apply mb-4;
183
+ }
184
+ &.govgr-grid {
185
+ @apply grid gap-4;
186
+ .govgr-fieldset {
187
+ @apply grid gap-4;
188
+ :not(.govgr-field) {
189
+ @apply col-span-12;
190
+ }
191
+ }
192
+ :not(.govgr-field) {
193
+ @apply col-span-12;
194
+ }
195
+ }
196
+ }
197
+ .govgr-label {
198
+ .govgr-heading-xs,
199
+ .govgr-heading-sm,
200
+ .govgr-heading-md,
201
+ .govgr-heading-lg,
202
+ .govgr-heading-xl,
203
+ .govgr-hint,
204
+ .govgr-error-message {
205
+ @apply mb-0;
206
+ }
207
+ }
208
+ .govgr-uploaded-file {
209
+ .govgr-link {
210
+ @apply h-fit text-lg;
211
+ }
189
212
  }