@digigov/css 0.38.2 → 1.0.0-rc
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/defaultTheme/misc.json +1 -1
- package/defaultTheme/typography.json +10 -7
- package/dist/base/index.css +3 -3
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +5 -5
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +2 -2
- package/src/components/accessibility-menu.css +3 -6
- package/src/components/accordion.css +8 -7
- package/src/components/admin-header.css +0 -6
- package/src/components/admin-layout.css +1 -37
- package/src/components/autocomplete.css +33 -45
- package/src/components/bottom-info.css +2 -4
- package/src/components/breadcrumbs.css +12 -12
- package/src/components/button.css +6 -9
- package/src/components/card.css +41 -43
- package/src/components/checkboxes.css +2 -10
- package/src/components/chip.css +48 -0
- package/src/components/copy-to-clipboard.css +10 -12
- package/src/components/details.css +5 -6
- package/src/components/drawer.css +4 -4
- package/src/components/dropdown.css +26 -34
- package/src/components/filter.css +7 -39
- package/src/components/footer.css +1 -4
- package/src/components/form.css +54 -43
- package/src/components/full-page-background.css +0 -3
- package/src/components/header.css +35 -34
- package/src/components/index.css +2 -3
- package/src/components/kitchensink.css +2 -2
- package/src/components/layout.css +9 -6
- package/src/components/loader.css +11 -12
- package/src/components/misc.css +9 -12
- package/src/components/modal.css +7 -6
- package/src/components/nav.css +5 -44
- package/src/components/notification-banner.css +8 -8
- package/src/components/pagination.css +20 -8
- package/src/components/phase-banner.css +13 -10
- package/src/components/radios.css +9 -1
- package/src/components/skiplink.css +6 -7
- package/src/components/stepnav.css +56 -62
- package/src/components/summary-list.css +25 -32
- package/src/components/svg-icons.css +90 -49
- package/src/components/table.css +80 -51
- package/src/components/tabs.css +7 -12
- package/src/components/task-list.css +11 -10
- package/src/components/timeline.css +9 -7
- package/src/components/typography.css +51 -48
- package/src/pages/admin-filtering-data.js +21 -21
- package/src/pages/admin.js +9 -9
- package/src/pages/dropdown.js +27 -27
- package/src/pages/form.js +26 -26
- package/src/pages/headings/service-heading.js +7 -7
- package/src/pages/index.js +23 -23
- package/src/pages/pagination.js +6 -6
- package/src/pages/table.js +15 -15
- package/src/utilities/index.css +0 -33
- package/src/utilities/utilities.css +0 -33
- package/src/components/admin-footer.css +0 -3
- package/src/components/admin-form.css +0 -5
- package/src/components/cookie.css +0 -3
package/src/components/card.css
CHANGED
|
@@ -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-
|
|
6
|
+
&.govgr-card--border-light {
|
|
7
7
|
@apply border;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
.govgr-card--
|
|
11
|
-
@apply border-
|
|
12
|
-
|
|
13
|
-
|
|
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-
|
|
39
|
-
|
|
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-
|
|
76
|
-
@apply border-
|
|
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,3 +1,4 @@
|
|
|
1
|
+
.govgr-checkboxes {}
|
|
1
2
|
.govgr-checkboxes--inline {
|
|
2
3
|
@apply inline-flex flex-wrap;
|
|
3
4
|
}
|
|
@@ -47,15 +48,6 @@
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
.govgr-
|
|
51
|
-
@apply px-2 mb-2;
|
|
52
|
-
}
|
|
53
|
-
.govgr-checkboxes__divider, .govgr-radios__divider {
|
|
54
|
-
@apply text-lg text-center w-10 mb-4;
|
|
55
|
-
}
|
|
56
|
-
.govgr-checkboxes__conditional, .govgr-radios__conditional {
|
|
51
|
+
.govgr-checkboxes__conditional {
|
|
57
52
|
@apply border-l-4 border-base-500 ml-4 pl-6;
|
|
58
53
|
}
|
|
59
|
-
.govgr-checkboxes__conditional--hidden, .govgr-radios__conditional--hidden {
|
|
60
|
-
@apply hidden;
|
|
61
|
-
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.govgr-chip--heading {
|
|
2
|
+
@apply font-bold md:text-base text-sm pb-4;
|
|
3
|
+
}
|
|
4
|
+
.govgr-chips--horizontal {
|
|
5
|
+
@apply md:flex md:flex-row md:flex-wrap;
|
|
6
|
+
}
|
|
7
|
+
.govgr-chips {
|
|
8
|
+
@apply flex flex-wrap list-none;
|
|
9
|
+
}
|
|
10
|
+
.govgr-chip {
|
|
11
|
+
@apply list-none;
|
|
12
|
+
.govgr-chip__content {
|
|
13
|
+
@apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
|
|
14
|
+
inline-flex items-center px-2 py-1 mr-2 mb-2 rounded shadow;
|
|
15
|
+
.govgr-svg-icon--close {
|
|
16
|
+
@apply w-4 h-4 ml-3;
|
|
17
|
+
}
|
|
18
|
+
&[role="button"] {
|
|
19
|
+
&:hover {
|
|
20
|
+
@apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
|
|
21
|
+
.govgr-svg-icon--close {
|
|
22
|
+
fill: var(--color-base-content-invert);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&:focus {
|
|
26
|
+
outline: 3px solid var(--color-focus);
|
|
27
|
+
outline-offset: 0;
|
|
28
|
+
-webkit-box-shadow: inset 0 0 0 2px;
|
|
29
|
+
box-shadow: inset 0 0 0 2px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.govgr-chip--deletable {
|
|
35
|
+
.govgr-chip__content {
|
|
36
|
+
&:hover {
|
|
37
|
+
@apply shadow-lg transition;
|
|
38
|
+
}
|
|
39
|
+
.govgr-svg-icon--close {
|
|
40
|
+
&:hover {
|
|
41
|
+
@apply cursor-pointer;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.govgr-chip__key-value {
|
|
47
|
+
@apply font-bold mr-2;
|
|
48
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
.govgr-copy-to-clipboard
|
|
1
|
+
.govgr-copy-to-clipboard-root {
|
|
2
2
|
@apply flex;
|
|
3
3
|
}
|
|
4
|
-
.govgr-copy-to-clipboard
|
|
4
|
+
.govgr-copy-to-clipboard-container {
|
|
5
5
|
@apply relative;
|
|
6
|
-
|
|
6
|
+
& > button {
|
|
7
7
|
@apply m-0;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
.govgr-copy-to-clipboard--banner {
|
|
11
11
|
@apply bg-success bg-opacity-95 p-2 w-full fixed top-0 right-0 text-center;
|
|
12
|
-
|
|
12
|
+
& > * {
|
|
13
13
|
@apply text-white;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
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
|
-
|
|
17
|
+
@apply bg-success p-4 absolute mt-4 text-center z-50 w-fit md:w-max;
|
|
18
|
+
& > * {
|
|
19
19
|
@apply text-white;
|
|
20
20
|
}
|
|
21
21
|
&::before {
|
|
22
|
-
content:
|
|
22
|
+
content: "";
|
|
23
23
|
@apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
|
|
24
24
|
absolute -top-1;
|
|
25
25
|
transform: rotate(45deg);
|
|
@@ -28,19 +28,17 @@
|
|
|
28
28
|
.govgr-copy-to-clipboard--tooltip-right {
|
|
29
29
|
@apply right-0;
|
|
30
30
|
&::before {
|
|
31
|
-
content:
|
|
31
|
+
content: "";
|
|
32
32
|
@apply right-4;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
.govgr-copy-to-clipboard--tooltip-left {
|
|
36
36
|
@apply left-0;
|
|
37
37
|
&::before {
|
|
38
|
-
content:
|
|
38
|
+
content: "";
|
|
39
39
|
@apply left-4;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
.govgr-copy-to-clipboard--hidden {
|
|
43
|
-
|
|
44
|
-
width: 0;
|
|
45
|
-
height: 0;
|
|
43
|
+
@apply invisible w-0 h-0;
|
|
46
44
|
}
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
line-height: var(--details-line-height);
|
|
6
6
|
}
|
|
7
7
|
.govgr-details__summary {
|
|
8
|
-
|
|
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--
|
|
21
|
+
.govgr-details__summary--lg {
|
|
23
22
|
@apply font-semibold;
|
|
24
|
-
font-size: var(--details__summary--
|
|
25
|
-
line-height: var(--details__summary--
|
|
23
|
+
font-size: var(--details__summary--lg-font-size);
|
|
24
|
+
line-height: var(--details__summary--lg-line-height);
|
|
26
25
|
}
|
|
27
|
-
.govgr-
|
|
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-
|
|
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-
|
|
36
|
+
.govgr-svg-icon--close {
|
|
37
37
|
fill: var(--color-link-active);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
&:hover {
|
|
41
|
-
.govgr-
|
|
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-
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
59
|
+
.govgr-filter__close-btn {
|
|
60
60
|
@apply flex flex-nowrap md:hidden text-right w-max float-right;
|
|
61
|
-
.govgr-
|
|
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-
|
|
67
|
+
.govgr-svg-icon--close {
|
|
68
68
|
fill: var(--color-link-active);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
&:hover {
|
|
72
|
-
.govgr-
|
|
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-
|
|
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,42 +91,10 @@
|
|
|
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-
|
|
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
|
}
|
|
98
|
-
.govgr-chip--heading {
|
|
99
|
-
@apply font-bold md:text-base text-sm pb-4;
|
|
100
|
-
}
|
|
101
|
-
.govgr-chip--horizontal {
|
|
102
|
-
@apply md:flex md:flex-row md:flex-wrap;
|
|
103
|
-
}
|
|
104
|
-
.govgr-chips {
|
|
105
|
-
@apply flex flex-wrap list-none;
|
|
106
|
-
}
|
|
107
|
-
.govgr-chip {
|
|
108
|
-
@apply bg-base-100 text-base-content lg:text-base text-sm border-2 border-base-content
|
|
109
|
-
inline-flex items-center px-2 py-1 mr-2 mb-2 rounded shadow;
|
|
110
|
-
.govgr-close-icon {
|
|
111
|
-
@apply w-4 h-4 ml-3;
|
|
112
|
-
}
|
|
113
|
-
&:hover {
|
|
114
|
-
@apply shadow-lg text-base-content-invert bg-base-900 border-base-900 transition;
|
|
115
|
-
.govgr-close-icon {
|
|
116
|
-
fill: var(--color-base-content-invert);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
&:focus {
|
|
120
|
-
outline: 3px solid var(--color-focus);
|
|
121
|
-
outline-offset: 0;
|
|
122
|
-
-webkit-box-shadow: inset 0 0 0 2px;
|
|
123
|
-
box-shadow: inset 0 0 0 2px;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
.govgr-chip__key-value {
|
|
127
|
-
@apply font-bold mr-2;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
98
|
.govgr-input__search-btn {
|
|
131
99
|
@apply shadow-none !important;
|
|
132
100
|
@apply
|
|
@@ -134,7 +102,7 @@
|
|
|
134
102
|
px-4 py-2 w-min m-0 ml-3
|
|
135
103
|
flex gap-2
|
|
136
104
|
hover:bg-success-hover active:bg-success-hover hover:no-underline;
|
|
137
|
-
.govgr-
|
|
105
|
+
.govgr-svg-icon--search {
|
|
138
106
|
fill: var(--color-white);
|
|
139
107
|
@apply w-7 h-7;
|
|
140
108
|
}
|
package/src/components/form.css
CHANGED
|
@@ -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
|
-
|
|
25
|
-
|
|
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-
|
|
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,
|
|
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,
|
|
76
|
+
.govgr-date-input,
|
|
77
|
+
.govgr-single-character-input--container {
|
|
72
78
|
@apply flex;
|
|
73
|
-
|
|
74
|
-
|
|
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,
|
|
100
|
-
|
|
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
|
|
114
|
+
.govgr-\!-width-full {
|
|
109
115
|
width: 100% !important;
|
|
110
116
|
}
|
|
111
117
|
@screen sm {
|
|
@@ -124,46 +130,48 @@
|
|
|
124
130
|
.govgr-\!-width-three-quarters {
|
|
125
131
|
width: 75% !important;
|
|
126
132
|
}
|
|
127
|
-
.govgr-\!-width-full
|
|
133
|
+
.govgr-\!-width-full {
|
|
128
134
|
width: 100% !important;
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
|
-
|
|
132
|
-
@apply w-auto max-w-full;
|
|
133
|
-
}
|
|
137
|
+
|
|
134
138
|
/* error handling */
|
|
135
|
-
|
|
139
|
+
|
|
140
|
+
.govgr-error-summary {
|
|
141
|
+
@apply border-5 border-error mb-6 md:mb-8 p-4 md:p-5;
|
|
142
|
+
}
|
|
143
|
+
.govgr-field--error {
|
|
136
144
|
@apply border-l-5 border-error px-0 pl-4;
|
|
137
145
|
}
|
|
138
146
|
.govgr-error-message {
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
.govgr-error
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
@apply md:text-lg text-base block mb-4 text-error font-semibold;
|
|
148
|
+
}
|
|
149
|
+
.govgr-input--error {
|
|
150
|
+
@apply border-error border-3;
|
|
151
|
+
&:focus {
|
|
152
|
+
outline: 4px solid var(--color-focus);
|
|
153
|
+
outline-offset: 0;
|
|
154
|
+
-webkit-box-shadow: inset 0 0 0 1px var(--color-error);
|
|
155
|
+
box-shadow: inset 0 0 0 1px var(--color-error);
|
|
148
156
|
}
|
|
149
157
|
}
|
|
150
158
|
|
|
151
|
-
/* disabled inputs */
|
|
159
|
+
/* disabled inputs */
|
|
152
160
|
|
|
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,
|
|
161
|
+
.govgr-input:disabled,
|
|
162
|
+
.govgr-textarea:disabled,
|
|
163
|
+
.govgr-select:disabled,
|
|
164
|
+
.govgr-checkboxes__input:disabled,
|
|
165
|
+
.govgr-checkboxes__input:disabled::before,
|
|
166
|
+
.govgr-checkboxes__input:disabled:checked:before,
|
|
159
167
|
.govgr-radios__input:disabled,
|
|
160
168
|
.govgr-radios__input:disabled::before,
|
|
161
169
|
.govgr-radios__input:disabled:checked:before {
|
|
162
170
|
@apply bg-base-300 cursor-not-allowed;
|
|
163
171
|
}
|
|
164
|
-
.govgr-input:disabled,
|
|
165
|
-
.govgr-textarea:disabled,
|
|
166
|
-
.govgr-checkboxes__input:disabled::before,
|
|
172
|
+
.govgr-input:disabled,
|
|
173
|
+
.govgr-textarea:disabled,
|
|
174
|
+
.govgr-checkboxes__input:disabled::before,
|
|
167
175
|
.govgr-radios__input:disabled::before {
|
|
168
176
|
@apply border-base-700 text-base-800;
|
|
169
177
|
}
|
|
@@ -176,3 +184,6 @@
|
|
|
176
184
|
.govgr-checkboxes__label--disabled {
|
|
177
185
|
@apply opacity-40;
|
|
178
186
|
}
|
|
187
|
+
.govgr-choice-divider {
|
|
188
|
+
@apply text-lg text-center w-10 mb-4;
|
|
189
|
+
}
|