@digigov/css 1.1.1 → 1.2.0-mobile
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/accordion.json +8 -0
- package/defaultTheme/brandConfig.json +14 -2
- package/defaultTheme/button.json +16 -3
- package/defaultTheme/card.json +16 -5
- package/defaultTheme/form.json +15 -0
- package/defaultTheme/globals.json +11 -1
- package/defaultTheme/index.js +1 -1
- package/defaultTheme/layout.json +55 -0
- package/defaultTheme/misc.json +20 -0
- package/defaultTheme/panel.json +5 -0
- package/defaultTheme/typography.json +26 -6
- 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 +19 -14
- package/postcss.config.js +1 -0
- package/src/base/base.css +1 -1
- package/src/base/index.css +5 -5
- package/src/components/accordion.css +76 -73
- package/src/components/admin-header.css +7 -24
- package/src/components/admin-layout.css +13 -22
- package/src/components/autocomplete.css +106 -64
- package/src/components/back-to-top.css +7 -8
- package/src/components/blockquote.common.css +14 -0
- package/src/components/blockquote.css +9 -0
- package/src/components/blockquote.native.css +11 -0
- package/src/components/bottom-info.css +3 -2
- package/src/components/breadcrumbs.css +21 -12
- package/src/components/button.common.css +64 -0
- package/src/components/button.css +81 -94
- package/src/components/button.native.css +42 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +77 -64
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.css +34 -37
- package/src/components/chip.css +36 -37
- package/src/components/components.css +2 -2
- package/src/components/copy-to-clipboard.css +39 -38
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +17 -18
- package/src/components/details.native.css +26 -0
- package/src/components/dev-theme.css +3 -4
- package/src/components/drawer.css +58 -59
- package/src/components/dropdown.common.css +58 -0
- package/src/components/dropdown.css +81 -68
- package/src/components/dropdown.native.css +58 -0
- package/src/components/experimental.css +18 -18
- package/src/components/fillable.css +6 -6
- package/src/components/filter.css +58 -63
- package/src/components/footer.css +53 -39
- package/src/components/form.common.css +49 -0
- package/src/components/form.css +125 -113
- package/src/components/form.native.css +58 -0
- package/src/components/full-page-background.css +2 -2
- package/src/components/header.common.css +36 -0
- package/src/components/header.css +78 -77
- package/src/components/header.native.css +34 -0
- package/src/components/hidden.css +23 -23
- package/src/components/index.css +48 -47
- package/src/components/kitchensink.css +41 -41
- package/src/components/layout.common.css +8 -0
- package/src/components/layout.css +56 -56
- package/src/components/layout.native.css +5 -0
- package/src/components/loader.css +31 -31
- package/src/components/masthead.css +60 -59
- package/src/components/misc.css +43 -21
- package/src/components/modal.css +28 -21
- package/src/components/nav.common.css +25 -0
- package/src/components/nav.css +96 -89
- package/src/components/nav.native.css +38 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +32 -28
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +40 -41
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +12 -20
- package/src/components/panel.native.css +20 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +15 -14
- package/src/components/phase-banner.native.css +31 -0
- package/src/components/radios.css +33 -30
- package/src/components/skeleton.css +85 -0
- package/src/components/skiplink.css +3 -3
- package/src/components/stack.css +64 -64
- package/src/components/stepnav.css +68 -64
- package/src/components/summary-list.common.css +25 -0
- package/src/components/summary-list.css +59 -47
- package/src/components/summary-list.native.css +27 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +79 -75
- package/src/components/svg-icons.native.css +55 -0
- package/src/components/table.css +189 -208
- package/src/components/tabs.css +52 -68
- package/src/components/task-list.css +31 -31
- package/src/components/test.css +7 -0
- package/src/components/timeline.css +19 -18
- package/src/components/typography.common.css +137 -0
- package/src/components/typography.css +159 -218
- package/src/components/typography.native.css +93 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +11 -11
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +17 -0
- package/src/pages/headings/service-heading.js +9 -9
- package/src/pages/index.js +201 -201
- package/src/utilities/grid.css +221 -0
- package/src/utilities/grid.native.css +274 -0
- package/src/utilities/index.css +3 -585
- package/src/utilities/index.native.css +2 -0
- package/src/utilities/print.css +11 -0
- package/src/utilities/spacing.css +2133 -0
- package/src/utilities/utilities.css +1647 -531
- package/tailwind.config.js +2 -2
- package/themes.plugin.js +1 -1
- package/defaultTheme/footer.json +0 -8
- package/src/pages/admin-filtering-data.js +0 -160
- package/src/pages/admin.js +0 -61
- package/src/pages/dropdown.js +0 -249
- package/src/pages/form.js +0 -400
- package/src/pages/pagination.js +0 -124
- package/src/pages/table.js +0 -308
|
@@ -1,138 +1,133 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-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
|
-
|
|
5
|
-
.govgr-filter {
|
|
6
|
-
&.govgr-filter--position-relative-always {
|
|
4
|
+
&.ds-filter--position-relative-always {
|
|
7
5
|
@apply block relative overflow-visible w-full shadow-none z-2 !important;
|
|
8
|
-
&.
|
|
6
|
+
&.ds-filter--closed {
|
|
9
7
|
@apply block !important;
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
|
-
&.
|
|
10
|
+
&.ds-filter--position-relative-sm {
|
|
13
11
|
@apply sm:block sm:relative sm:overflow-visible sm:w-full sm:shadow-none sm:z-2;
|
|
14
|
-
&.
|
|
12
|
+
&.ds-filter--closed {
|
|
15
13
|
@apply sm:block;
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
|
-
&.
|
|
16
|
+
&.ds-filter--position-relative-md {
|
|
19
17
|
@apply md:block md:relative md:overflow-visible md:w-full md:shadow-none md:z-2;
|
|
20
|
-
&.
|
|
18
|
+
&.ds-filter--closed {
|
|
21
19
|
@apply md:block;
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
|
-
&.
|
|
22
|
+
&.ds-filter--position-relative-lg {
|
|
25
23
|
@apply lg:block lg:relative lg:overflow-visible lg:w-full lg:shadow-none lg:z-2;
|
|
26
|
-
&.
|
|
24
|
+
&.ds-filter--closed {
|
|
27
25
|
@apply lg:block;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
28
|
+
&.ds-filter--border {
|
|
29
|
+
@apply border border-base-300 p-4;
|
|
30
|
+
}
|
|
31
|
+
&.ds-filter--closed {
|
|
32
|
+
@apply hidden;
|
|
33
|
+
}
|
|
30
34
|
}
|
|
31
|
-
.
|
|
32
|
-
@apply border border-base-300 p-4;
|
|
33
|
-
}
|
|
34
|
-
.govgr-filter--closed {
|
|
35
|
-
@apply hidden;
|
|
36
|
-
}
|
|
37
|
-
.govgr-filter__content {
|
|
35
|
+
.ds-filter__content {
|
|
38
36
|
@apply flex flex-col gap-8 p-0;
|
|
39
37
|
}
|
|
40
|
-
.
|
|
38
|
+
.ds-filter__options--horizontal {
|
|
41
39
|
@apply flex gap-4 flex-col;
|
|
42
|
-
align-items: stretch;
|
|
43
40
|
@apply md:flex-row md:flex-wrap;
|
|
41
|
+
align-items: stretch;
|
|
44
42
|
}
|
|
45
43
|
@media (min-width: 768px) {
|
|
46
|
-
.
|
|
44
|
+
.ds-filter__options--horizontal {
|
|
47
45
|
align-items: flex-end;
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
|
-
.
|
|
51
|
-
.
|
|
52
|
-
.
|
|
48
|
+
.ds-filter__heading,
|
|
49
|
+
.ds-filter__selected,
|
|
50
|
+
.ds-filter__options {
|
|
53
51
|
@apply p-0;
|
|
54
52
|
}
|
|
55
|
-
.
|
|
53
|
+
.ds-filter__heading {
|
|
56
54
|
@apply mb-4;
|
|
57
55
|
}
|
|
58
|
-
.
|
|
56
|
+
.ds-filter__selected {
|
|
59
57
|
@apply bg-base-200 p-4 m-0 rounded;
|
|
60
58
|
}
|
|
61
|
-
.
|
|
62
|
-
@apply flex flex-wrap sm:flex-nowrap mb-4 md:mb-6 justify-between gap-x-2;
|
|
59
|
+
.ds-filter__selected-heading {
|
|
60
|
+
@apply flex flex-wrap sm:flex-nowrap mb-4 md:mb-6 justify-between gap-x-2 gap-y-4;
|
|
63
61
|
}
|
|
64
|
-
.
|
|
62
|
+
.ds-input__search-btn {
|
|
65
63
|
@apply shadow-none !important;
|
|
66
|
-
@apply
|
|
67
|
-
px-4 py-2 w-min m-0 ml-3
|
|
68
|
-
flex gap-2
|
|
69
|
-
hover:bg-success-hover active:bg-success-hover hover:no-underline;
|
|
64
|
+
@apply px-4 py-2 w-min m-0 ml-3 flex gap-2;
|
|
70
65
|
}
|
|
71
|
-
.
|
|
66
|
+
.ds-search {
|
|
72
67
|
@apply flex w-full max-w-3xl;
|
|
73
68
|
}
|
|
74
|
-
.
|
|
69
|
+
.ds-results__action-bar {
|
|
75
70
|
@apply py-2 mb-8 flex flex-wrap justify-start gap-4 items-baseline;
|
|
76
71
|
> * {
|
|
77
72
|
@apply mb-0;
|
|
78
73
|
}
|
|
79
74
|
}
|
|
80
|
-
.
|
|
75
|
+
.ds-results__heading {
|
|
81
76
|
@apply flex flex-wrap justify-between items-baseline gap-x-2;
|
|
82
77
|
}
|
|
83
|
-
.
|
|
78
|
+
.ds-results__actions {
|
|
84
79
|
@apply flex flex-wrap gap-4 justify-start min-w-min mb-4;
|
|
85
80
|
}
|
|
86
|
-
.
|
|
81
|
+
.ds-link-filters {
|
|
87
82
|
@apply block md:hidden;
|
|
88
83
|
}
|
|
89
84
|
|
|
90
85
|
/* overrides */
|
|
91
86
|
|
|
92
|
-
.
|
|
87
|
+
.ds-filter {
|
|
93
88
|
@apply bg-base-100 fixed top-0 right-0 bottom-0 overflow-y-scroll z-40 w-4/5;
|
|
94
89
|
box-shadow: 0 0 30px rgba(var(--color-base-900-rgb), 0.9);
|
|
95
|
-
.
|
|
90
|
+
.ds-select {
|
|
96
91
|
@apply w-full;
|
|
97
92
|
}
|
|
98
93
|
}
|
|
99
|
-
.
|
|
100
|
-
.
|
|
94
|
+
.ds-filter__options--horizontal {
|
|
95
|
+
.ds-field {
|
|
101
96
|
@apply mb-0;
|
|
102
97
|
}
|
|
103
|
-
.
|
|
104
|
-
.
|
|
98
|
+
.ds-label,
|
|
99
|
+
.ds-btn {
|
|
105
100
|
@apply mb-0;
|
|
106
101
|
}
|
|
107
102
|
}
|
|
108
|
-
.
|
|
109
|
-
.
|
|
110
|
-
.
|
|
111
|
-
.
|
|
112
|
-
.
|
|
113
|
-
.
|
|
114
|
-
.
|
|
103
|
+
.ds-filter__heading {
|
|
104
|
+
.ds-close-btn,
|
|
105
|
+
.ds-heading-xs,
|
|
106
|
+
.ds-heading-sm,
|
|
107
|
+
.ds-heading-md,
|
|
108
|
+
.ds-heading-lg,
|
|
109
|
+
.ds-heading-xl {
|
|
115
110
|
@apply m-0;
|
|
116
111
|
}
|
|
117
112
|
}
|
|
118
|
-
.
|
|
119
|
-
.
|
|
120
|
-
.
|
|
121
|
-
.
|
|
122
|
-
.
|
|
123
|
-
.
|
|
124
|
-
.
|
|
113
|
+
.ds-filter__selected-heading {
|
|
114
|
+
.ds-link,
|
|
115
|
+
.ds-heading-xs,
|
|
116
|
+
.ds-heading-sm,
|
|
117
|
+
.ds-heading-md,
|
|
118
|
+
.ds-heading-lg,
|
|
119
|
+
.ds-heading-xl {
|
|
125
120
|
@apply m-0 h-full;
|
|
126
121
|
}
|
|
127
122
|
}
|
|
128
|
-
.
|
|
129
|
-
.
|
|
130
|
-
fill: var(--color-white);
|
|
123
|
+
.ds-input__search-btn {
|
|
124
|
+
.ds-svg-icon--search {
|
|
131
125
|
@apply w-7 h-7;
|
|
126
|
+
fill: var(--color-white);
|
|
132
127
|
}
|
|
133
128
|
}
|
|
134
|
-
.
|
|
135
|
-
.
|
|
129
|
+
.ds-results__action-bar {
|
|
130
|
+
.ds-field {
|
|
136
131
|
@apply flex items-baseline gap-2;
|
|
137
132
|
}
|
|
138
133
|
}
|
|
@@ -1,96 +1,110 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
border-
|
|
1
|
+
.ds-footer {
|
|
2
|
+
border: var(--footer-border);
|
|
3
|
+
border-width: var(--footer-border-width);
|
|
4
|
+
background-color: var(--footer-background-color);
|
|
5
|
+
color: var(--footer-color);
|
|
6
|
+
@apply font-normal text-base py-4 md:py-8 w-full
|
|
4
7
|
print:py-2 print:bg-white print:border-t-2;
|
|
5
8
|
}
|
|
6
|
-
.
|
|
7
|
-
@apply w-full flex flex-1 flex-wrap md:flex-nowrap items-end justify-center md:justify-between box-border
|
|
9
|
+
.ds-footer__info {
|
|
10
|
+
@apply w-full flex flex-1 flex-wrap md:flex-nowrap items-end justify-center md:justify-between box-border;
|
|
8
11
|
}
|
|
9
|
-
.
|
|
12
|
+
.ds-footer__info-section {
|
|
10
13
|
@apply mx-2 md:mx-4 mb-6 print:mb-4;
|
|
14
|
+
&.ds-footer__info-section--grow {
|
|
15
|
+
@apply flex flex-grow;
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
|
-
.
|
|
13
|
-
@apply flex flex-grow;
|
|
14
|
-
}
|
|
15
|
-
.govgr-footer__content {
|
|
18
|
+
.ds-footer__content {
|
|
16
19
|
@apply w-full;
|
|
17
20
|
}
|
|
18
|
-
.
|
|
21
|
+
.ds-footer__content__logos {
|
|
19
22
|
@apply flex flex-wrap items-center mb-6 md:mb-8;
|
|
20
23
|
}
|
|
21
|
-
.
|
|
24
|
+
.ds-footer__logo {
|
|
22
25
|
@apply mr-4;
|
|
23
26
|
@apply print:w-32 print:min-w-32 !important;
|
|
24
27
|
&:last-child {
|
|
25
28
|
@apply mr-0;
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
|
-
.
|
|
31
|
+
.ds-footer__government-logo-inverted {
|
|
29
32
|
@apply max-w-full h-auto w-52 min-w-52 hidden;
|
|
30
|
-
|
|
31
33
|
}
|
|
32
|
-
.
|
|
34
|
+
.ds-footer__logo,
|
|
35
|
+
.ds-footer__government-logo {
|
|
33
36
|
@apply max-w-full h-auto w-52 min-w-52 block;
|
|
34
37
|
}
|
|
35
|
-
.
|
|
38
|
+
.ds-footer__copyright {
|
|
36
39
|
@apply mt-6 print:mt-4;
|
|
37
40
|
font-size: var(--footer__copyright-font-size);
|
|
38
|
-
.
|
|
41
|
+
.ds-link {
|
|
39
42
|
font-size: inherit;
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
|
-
.
|
|
43
|
-
|
|
45
|
+
.ds-footer__link {
|
|
46
|
+
text-decoration: var(--footer__link-text-decoration);
|
|
47
|
+
|
|
44
48
|
&:hover {
|
|
49
|
+
text-decoration: var(--footer__link-text-decoration-hover);
|
|
45
50
|
text-decoration-thickness: 2px;
|
|
46
|
-
color:
|
|
51
|
+
color:var(--footer__link-color-hover);
|
|
47
52
|
}
|
|
48
53
|
&:focus {
|
|
54
|
+
color:var(--footer__link-color-focus);
|
|
49
55
|
background-color: var(--color-focus) !important;
|
|
50
|
-
box-shadow:
|
|
51
|
-
|
|
56
|
+
box-shadow:
|
|
57
|
+
0 -2px var(--color-focus),
|
|
58
|
+
0 4px var(--color-base-content);
|
|
59
|
+
outline: none;
|
|
52
60
|
text-decoration: none;
|
|
53
61
|
}
|
|
54
62
|
}
|
|
55
|
-
.
|
|
56
|
-
|
|
63
|
+
.ds-footer__navigation {
|
|
64
|
+
@apply flex flex-wrap print:hidden;
|
|
57
65
|
}
|
|
58
|
-
.
|
|
59
|
-
|
|
66
|
+
.ds-footer__navigation-section {
|
|
67
|
+
@apply inline-block mx-4 mb-8 align-top flex-grow flex-shrink
|
|
60
68
|
print:hidden;
|
|
61
69
|
}
|
|
62
70
|
@media (min-width: 768px) {
|
|
63
|
-
.
|
|
71
|
+
.ds-footer__navigation-section:first-child:nth-last-child(2) {
|
|
64
72
|
@apply flex-grow-2;
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
|
-
.
|
|
75
|
+
.ds-footer__list {
|
|
68
76
|
@apply m-0 p-0 list-none gap-x-6 text-sm md:text-base
|
|
69
77
|
print:hidden;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
&.ds-footer__list--horizontal {
|
|
79
|
+
@apply mb-4;
|
|
80
|
+
.ds-footer__list-item {
|
|
81
|
+
@apply inline-block mr-4 mb-2;
|
|
82
|
+
}
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
85
|
@media (min-width: 768px) {
|
|
78
|
-
.
|
|
86
|
+
.ds-footer__list--columns-2 {
|
|
79
87
|
column-count: 2;
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
|
-
.
|
|
83
|
-
|
|
90
|
+
.ds-footer__list-item {
|
|
91
|
+
}
|
|
92
|
+
.ds-footer__heading {
|
|
84
93
|
@apply mb-4 pb-4 border-b border-base-300;
|
|
85
94
|
}
|
|
86
95
|
|
|
87
96
|
/* overrides */
|
|
88
97
|
|
|
89
|
-
.
|
|
90
|
-
.
|
|
98
|
+
.ds-footer {
|
|
99
|
+
.ds-section-break {
|
|
91
100
|
@apply print:hidden;
|
|
92
101
|
}
|
|
93
|
-
.
|
|
102
|
+
.ds-link {
|
|
103
|
+
--link-color:var(--color-footer);
|
|
104
|
+
@apply print:text-base-content;
|
|
105
|
+
}
|
|
106
|
+
.ds-body {
|
|
107
|
+
--body-color:var(--color-footer);
|
|
94
108
|
@apply print:text-base-content;
|
|
95
109
|
}
|
|
96
110
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-field {
|
|
5
|
+
@apply mb-8 md:mb-10;
|
|
6
|
+
}
|
|
7
|
+
.util-field--error {
|
|
8
|
+
@apply border-l-5 border-error-text px-0 pl-4;
|
|
9
|
+
}
|
|
10
|
+
.util-label {
|
|
11
|
+
@apply mb-0 flex gap-y-3 flex-col;
|
|
12
|
+
}
|
|
13
|
+
.util-label-text {
|
|
14
|
+
font-size: var(--label-font-size);
|
|
15
|
+
line-height: var(--label-line-height);
|
|
16
|
+
letter-spacing: var(--label-letter-spacing);
|
|
17
|
+
}
|
|
18
|
+
.util-input {
|
|
19
|
+
border-radius: var(--input-border-radius);
|
|
20
|
+
}
|
|
21
|
+
.util-input--error {
|
|
22
|
+
@apply border-error-text border-3;
|
|
23
|
+
}
|
|
24
|
+
.util-input--width-20-char {
|
|
25
|
+
}
|
|
26
|
+
.util-input--width-10-char {
|
|
27
|
+
}
|
|
28
|
+
.util-input--width-5-char {
|
|
29
|
+
}
|
|
30
|
+
.util-input--width-4-char {
|
|
31
|
+
}
|
|
32
|
+
.util-input--width-3-char {
|
|
33
|
+
}
|
|
34
|
+
.util-input--width-2-char {
|
|
35
|
+
}
|
|
36
|
+
.util-textarea {
|
|
37
|
+
@apply md:text-lg text-base w-full p-2 border-2 border-base-content bg-base-100;
|
|
38
|
+
border-radius: var(--textarea-border-radius);
|
|
39
|
+
}
|
|
40
|
+
.util-label {
|
|
41
|
+
@apply mb-0 flex gap-y-3 flex-col;
|
|
42
|
+
}
|
|
43
|
+
.util-label-text {
|
|
44
|
+
font-size: var(--label-font-size);
|
|
45
|
+
line-height: var(--label-line-height);
|
|
46
|
+
letter-spacing: var(--label-letter-spacing);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|