@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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@import './svg-icons.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-svg-icon {
|
|
4
|
+
@apply util-svg-icon;
|
|
5
|
+
flex-direction:'row';
|
|
6
|
+
flex-wrap:'wrap';
|
|
7
|
+
}
|
|
8
|
+
.ds-svg-icon--base-content {
|
|
9
|
+
@apply util-svg-icon--base-content;
|
|
10
|
+
}
|
|
11
|
+
.ds-svg-icon--dark {
|
|
12
|
+
@apply util-svg-icon--dark;
|
|
13
|
+
}
|
|
14
|
+
.ds-svg-icon--white {
|
|
15
|
+
@apply util-svg-icon--white;
|
|
16
|
+
}
|
|
17
|
+
.ds-svg-icon--gray {
|
|
18
|
+
@apply util-svg-icon--gray;
|
|
19
|
+
}
|
|
20
|
+
.ds-svg-icon--primary {
|
|
21
|
+
@apply util-svg-icon--primary;
|
|
22
|
+
}
|
|
23
|
+
.ds-svg-icon--success {
|
|
24
|
+
@apply util-svg-icon--success;
|
|
25
|
+
}
|
|
26
|
+
.ds-svg-icon--warning {
|
|
27
|
+
@apply util-svg-icon--warning;
|
|
28
|
+
}
|
|
29
|
+
.ds-svg-icon--error {
|
|
30
|
+
@apply util-svg-icon--error;
|
|
31
|
+
}
|
|
32
|
+
.ds-svg-icon--focus {
|
|
33
|
+
@apply util-svg-icon--focus;
|
|
34
|
+
}
|
|
35
|
+
.ds-svg-icon--link {
|
|
36
|
+
@apply util-svg-icon--link;
|
|
37
|
+
}
|
|
38
|
+
.ds-svg-icon--info {
|
|
39
|
+
@apply util-svg-icon--info;
|
|
40
|
+
}
|
|
41
|
+
.ds-svg-icon--xs {
|
|
42
|
+
@apply util-svg-icon--xs;
|
|
43
|
+
}
|
|
44
|
+
.ds-svg-icon--sm {
|
|
45
|
+
@apply util-svg-icon--sm;
|
|
46
|
+
}
|
|
47
|
+
.ds-svg-icon--md {
|
|
48
|
+
@apply util-svg-icon--md;
|
|
49
|
+
}
|
|
50
|
+
.ds-svg-icon--lg {
|
|
51
|
+
@apply util-svg-icon--lg;
|
|
52
|
+
}
|
|
53
|
+
.ds-svg-icon--xl {
|
|
54
|
+
@apply util-svg-icon--xl;
|
|
55
|
+
}
|
package/src/components/table.css
CHANGED
|
@@ -1,296 +1,277 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-table__caption {
|
|
2
2
|
@apply table-caption text-left font-bold;
|
|
3
|
+
&.ds-table__caption--sm {
|
|
4
|
+
@apply md:text-2xl text-lg font-bold mx-0 md:mb-6 mb-4 antialiased;
|
|
5
|
+
}
|
|
6
|
+
&.ds-table__caption--md {
|
|
7
|
+
@apply md:text-3xl text-xl font-bold mx-0 md:mb-8 mb-6 antialiased;
|
|
8
|
+
}
|
|
9
|
+
&.ds-table__caption--lg {
|
|
10
|
+
@apply md:text-4xl text-2xl font-bold mx-0 md:mb-9 mb-7 antialiased;
|
|
11
|
+
}
|
|
12
|
+
&.ds-table__caption--xl {
|
|
13
|
+
@apply md:text-5xl md:leading-tight text-3xl leading-tight font-bold mx-0 md:mb-10 mb-8 max-w-2xl antialiased;
|
|
14
|
+
}
|
|
3
15
|
}
|
|
4
|
-
.
|
|
5
|
-
@apply md:text-2xl text-lg font-bold mx-0 md:mb-6 mb-4 antialiased;
|
|
6
|
-
}
|
|
7
|
-
.govgr-table__caption--md {
|
|
8
|
-
@apply md:text-3xl text-xl font-bold mx-0 md:mb-8 mb-6 antialiased;
|
|
9
|
-
}
|
|
10
|
-
.govgr-table__caption--lg {
|
|
11
|
-
@apply md:text-4xl text-2xl font-bold mx-0 md:mb-9 mb-7 antialiased;
|
|
12
|
-
}
|
|
13
|
-
.govgr-table__caption--xl {
|
|
14
|
-
@apply md:text-5xl md:leading-tight text-3xl leading-tight font-bold mx-0 md:mb-10 mb-8 max-w-2xl antialiased;
|
|
15
|
-
}
|
|
16
|
-
.govgr-table-container {
|
|
16
|
+
.ds-table-container {
|
|
17
17
|
@apply w-full overflow-x-auto md:mb-10 mb-6;
|
|
18
|
-
|
|
18
|
+
&.ds-table-container--border {
|
|
19
|
+
@apply border border-base-300 p-2;
|
|
20
|
+
}
|
|
21
|
+
.ds-table {
|
|
19
22
|
@apply mb-0;
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
|
-
.
|
|
23
|
-
@apply border border-base-300 p-2;
|
|
24
|
-
}
|
|
25
|
-
.govgr-table {
|
|
25
|
+
.ds-table {
|
|
26
26
|
@apply w-full border-collapse table;
|
|
27
27
|
@apply md:mb-10 mb-6 text-base-content md:text-lg text-base font-normal antialiased;
|
|
28
28
|
border-spacing: 0;
|
|
29
|
-
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
@supports (-moz-appearance: none) {
|
|
34
|
-
.govgr-table {
|
|
35
|
-
border-collapse: unset;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
.govgr-table--vertical-lines {
|
|
39
|
-
.govgr-table__cell,
|
|
40
|
-
.govgr-table__header {
|
|
41
|
-
@apply border-l border-r border-solid border-base-300 px-4;
|
|
42
|
-
}
|
|
43
|
-
.govgr-table__head {
|
|
44
|
-
@apply border-t border-base-300 text-base-content !important;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
@supports (-moz-appearance: none) {
|
|
48
|
-
.govgr-table--vertical-lines {
|
|
49
|
-
.govgr-table__header {
|
|
50
|
-
@apply border-t;
|
|
51
|
-
@apply border-r-0 !important;
|
|
52
|
-
&:last-child {
|
|
53
|
-
@apply border-r border-solid border-base-300 px-4 !important;
|
|
54
|
-
}
|
|
29
|
+
&.ds-table--vertical-lines {
|
|
30
|
+
.ds-table__cell,
|
|
31
|
+
.ds-table__header {
|
|
32
|
+
@apply border-l border-r border-solid border-base-300 px-4;
|
|
55
33
|
}
|
|
56
|
-
.
|
|
57
|
-
@apply border-
|
|
58
|
-
&:last-child {
|
|
59
|
-
@apply border-r border-solid border-base-300 px-4 !important;
|
|
60
|
-
}
|
|
34
|
+
.ds-table__head {
|
|
35
|
+
@apply border-t border-base-300 text-base-content !important;
|
|
61
36
|
}
|
|
62
37
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
@apply border-l-4 border-warning;
|
|
69
|
-
.govgr-table__cell:first-child {
|
|
70
|
-
@apply pl-2;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
.govgr-table--dark,
|
|
74
|
-
.govgr-table--zebra {
|
|
75
|
-
.govgr-table__header,
|
|
76
|
-
.govgr-table__cell {
|
|
77
|
-
@apply px-4 !important;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
.govgr-table--vertical-lines.govgr-table--light {
|
|
81
|
-
.govgr-table__body .govgr-table__header {
|
|
82
|
-
@apply border-l border-solid border-base-300 !important;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
.govgr-table--vertical-lines.govgr-table--dark {
|
|
86
|
-
.govgr-table__header {
|
|
87
|
-
@apply border-0;
|
|
88
|
-
@apply print:border;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.govgr-table--dark {
|
|
92
|
-
.govgr-table__header {
|
|
93
|
-
@apply border-0 bg-primary text-white;
|
|
94
|
-
@apply print:border-b print:bg-white print:text-base-content;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
.govgr-table--zebra {
|
|
98
|
-
.govgr-table__body {
|
|
99
|
-
.govgr-table__row:nth-child(even) {
|
|
100
|
-
@apply bg-base-200 print:bg-white;
|
|
38
|
+
&.ds-table--dark,
|
|
39
|
+
&.ds-table--zebra {
|
|
40
|
+
.ds-table__header,
|
|
41
|
+
.ds-table__cell {
|
|
42
|
+
@apply px-4 !important;
|
|
101
43
|
}
|
|
102
44
|
}
|
|
103
|
-
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.govgr-table__cell {
|
|
109
|
-
@apply text-sm py-2;
|
|
45
|
+
&.ds-table--vertical-lines.ds-table--light {
|
|
46
|
+
.ds-table__body {
|
|
47
|
+
.ds-table__header {
|
|
48
|
+
@apply border-l border-solid border-base-300 !important;
|
|
49
|
+
}
|
|
110
50
|
}
|
|
111
51
|
}
|
|
112
|
-
|
|
113
|
-
.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
&:last-child {
|
|
117
|
-
@apply border-b-2;
|
|
118
|
-
border-bottom-color: rgb(var(--color-base-content-rgb));
|
|
52
|
+
&.ds-table--vertical-lines.ds-table--dark {
|
|
53
|
+
.ds-table__header {
|
|
54
|
+
@apply border-0;
|
|
55
|
+
@apply print:border;
|
|
119
56
|
}
|
|
120
57
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.govgr-table__cell {
|
|
126
|
-
@apply block;
|
|
127
|
-
}
|
|
128
|
-
.govgr-table__cell[data-label]:before {
|
|
129
|
-
content: attr(data-label);
|
|
130
|
-
@apply block font-semibold;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
.govgr-table--stacked-sm {
|
|
134
|
-
.govgr-table__header,
|
|
135
|
-
.govgr-table__cell {
|
|
136
|
-
&:last-child {
|
|
137
|
-
@apply border-b-2 sm:border-b;
|
|
138
|
-
border-bottom-color: rgb(var(--color-base-content-rgb));
|
|
139
|
-
|
|
58
|
+
&.ds-table--dark {
|
|
59
|
+
.ds-table__header {
|
|
60
|
+
@apply border-0 bg-primary text-white;
|
|
61
|
+
@apply print:border-b print:bg-white print:text-base-content;
|
|
140
62
|
}
|
|
141
63
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
.
|
|
145
|
-
|
|
146
|
-
border-bottom-color: rgb(var(--color-base-300-rgb));
|
|
147
|
-
}
|
|
64
|
+
&.ds-table--zebra {
|
|
65
|
+
.ds-table__body {
|
|
66
|
+
.ds-table__row:nth-child(even) {
|
|
67
|
+
@apply bg-base-200 print:bg-white;
|
|
148
68
|
}
|
|
69
|
+
}
|
|
149
70
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
content: attr(data-label);
|
|
159
|
-
@apply block font-semibold;
|
|
71
|
+
&.ds-table--dense {
|
|
72
|
+
&.ds-table {
|
|
73
|
+
.ds-table__row,
|
|
74
|
+
.ds-table__header,
|
|
75
|
+
.ds-table__cell {
|
|
76
|
+
@apply text-sm py-2;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
160
79
|
}
|
|
161
|
-
|
|
162
|
-
.
|
|
163
|
-
|
|
80
|
+
&.ds-table--stacked-always {
|
|
81
|
+
.ds-table__header,
|
|
82
|
+
.ds-table__cell {
|
|
83
|
+
&:last-child {
|
|
84
|
+
@apply border-b-2;
|
|
85
|
+
border-bottom-color: rgb(var(--color-base-content-rgb));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.ds-table__head {
|
|
89
|
+
.ds-table__header {
|
|
90
|
+
@apply hidden;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.ds-table__body .ds-table__header,
|
|
94
|
+
.ds-table__cell {
|
|
95
|
+
@apply block;
|
|
96
|
+
}
|
|
97
|
+
.ds-table__cell[data-label]::before {
|
|
98
|
+
@apply block font-semibold mb-2;
|
|
99
|
+
content: attr(data-label);
|
|
164
100
|
}
|
|
165
101
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
102
|
+
&.ds-table--stacked-sm {
|
|
103
|
+
@media (min-width: 640px) {
|
|
104
|
+
.ds-table__cell[data-label]::before {
|
|
105
|
+
content: none !important;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.ds-table__header,
|
|
109
|
+
.ds-table__cell {
|
|
110
|
+
&:last-child {
|
|
111
|
+
@apply border-b-2 sm:border-b border-b-base-content sm:border-b-base-300;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.ds-table__head {
|
|
115
|
+
.ds-table__header {
|
|
116
|
+
@apply hidden sm:table-cell;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.ds-table__body .ds-table__header,
|
|
120
|
+
.ds-table__cell {
|
|
121
|
+
@apply block sm:table-cell;
|
|
122
|
+
}
|
|
123
|
+
.ds-table__cell[data-label]::before {
|
|
124
|
+
@apply block font-semibold mb-2;
|
|
125
|
+
content: attr(data-label);
|
|
173
126
|
}
|
|
174
127
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
128
|
+
&.ds-table--stacked-md {
|
|
129
|
+
@media (min-width: 768px) {
|
|
130
|
+
.ds-table__cell[data-label]::before {
|
|
131
|
+
content: none !important;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.ds-table__header,
|
|
135
|
+
.ds-table__cell {
|
|
136
|
+
&:last-child {
|
|
137
|
+
@apply border-b-2 md:border-b border-b-base-content md:border-b-base-300;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.ds-table__head {
|
|
141
|
+
.ds-table__header {
|
|
142
|
+
@apply hidden md:table-cell;
|
|
181
143
|
}
|
|
144
|
+
}
|
|
145
|
+
.ds-table__body .ds-table__header,
|
|
146
|
+
.ds-table__cell {
|
|
147
|
+
@apply block md:table-cell;
|
|
148
|
+
}
|
|
149
|
+
.ds-table__cell[data-label]::before {
|
|
150
|
+
@apply block font-semibold mb-2;
|
|
151
|
+
content: attr(data-label);
|
|
152
|
+
}
|
|
182
153
|
}
|
|
183
|
-
.
|
|
184
|
-
|
|
154
|
+
.ds-table__cell {
|
|
155
|
+
.ds-body:last-child {
|
|
156
|
+
@apply mb-0;
|
|
157
|
+
}
|
|
185
158
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
159
|
+
}
|
|
160
|
+
.ds-table-sort__icons-container {
|
|
161
|
+
@apply flex flex-col;
|
|
162
|
+
}
|
|
163
|
+
@supports (-moz-appearance: none) {
|
|
164
|
+
.ds-table {
|
|
165
|
+
border-collapse: unset;
|
|
189
166
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
167
|
+
}
|
|
168
|
+
@supports (-moz-appearance: none) {
|
|
169
|
+
.ds-table--vertical-lines {
|
|
170
|
+
.ds-table__header {
|
|
171
|
+
@apply border-t;
|
|
172
|
+
@apply border-r-0 !important;
|
|
173
|
+
&:last-child {
|
|
174
|
+
@apply border-r border-solid border-base-300 px-4 !important;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.ds-table__cell {
|
|
178
|
+
@apply border-r-0 !important;
|
|
179
|
+
&:last-child {
|
|
180
|
+
@apply border-r border-solid border-base-300 px-4 !important;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
193
183
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
184
|
+
}
|
|
185
|
+
.ds-table__row {
|
|
186
|
+
@apply bg-base-100;
|
|
187
|
+
&.ds-table__row--highlight {
|
|
188
|
+
@apply border-l-4 border-warning;
|
|
189
|
+
.ds-table__cell:first-child {
|
|
190
|
+
@apply pl-2;
|
|
197
191
|
}
|
|
198
192
|
}
|
|
199
193
|
}
|
|
200
|
-
.
|
|
201
|
-
.
|
|
194
|
+
.ds-table:not(.ds-table--zebra) {
|
|
195
|
+
.ds-table__row--secondary {
|
|
202
196
|
@apply bg-base-200 print:bg-white;
|
|
203
197
|
}
|
|
204
198
|
}
|
|
205
|
-
.
|
|
199
|
+
.ds-table__cell--bold {
|
|
206
200
|
@apply font-semibold;
|
|
207
201
|
}
|
|
208
|
-
.
|
|
202
|
+
.ds-table__body {
|
|
209
203
|
@apply relative;
|
|
210
|
-
|
|
211
|
-
.
|
|
212
|
-
|
|
213
|
-
|
|
204
|
+
&.ds-table__body--vertical-top {
|
|
205
|
+
.ds-table__cell {
|
|
206
|
+
@apply align-top;
|
|
207
|
+
}
|
|
214
208
|
}
|
|
215
|
-
|
|
216
|
-
.
|
|
217
|
-
|
|
218
|
-
|
|
209
|
+
&.ds-table__body--vertical-bottom {
|
|
210
|
+
.ds-table__cell {
|
|
211
|
+
@apply align-bottom;
|
|
212
|
+
}
|
|
219
213
|
}
|
|
220
214
|
}
|
|
221
|
-
.
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
.govgr-table__header,
|
|
225
|
-
.govgr-table__cell {
|
|
215
|
+
.ds-table__header,
|
|
216
|
+
.ds-table__cell {
|
|
226
217
|
@apply pr-5 py-2.5 pl-0 border-b border-solid border-base-300 text-left align-middle;
|
|
227
218
|
&:last-child {
|
|
228
219
|
@apply pr-0;
|
|
229
220
|
}
|
|
230
221
|
}
|
|
231
|
-
.
|
|
232
|
-
.
|
|
222
|
+
.ds-table__header--numeric,
|
|
223
|
+
.ds-table__cell--numeric {
|
|
233
224
|
@apply text-right;
|
|
234
225
|
}
|
|
235
|
-
.
|
|
226
|
+
.ds-table__cell--numeric {
|
|
236
227
|
@apply font-normal;
|
|
237
228
|
font-feature-settings: normal;
|
|
238
229
|
font-variant-numeric: tabular-nums;
|
|
239
230
|
}
|
|
240
|
-
.
|
|
231
|
+
.ds-table__cell--no-data {
|
|
241
232
|
@apply border-b-0 pt-2.5;
|
|
242
233
|
}
|
|
243
|
-
.
|
|
244
|
-
.govgr-table--zebra {
|
|
245
|
-
.govgr-table__header,
|
|
246
|
-
.govgr-table__cell {
|
|
247
|
-
@apply px-4 !important;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
.govgr-table__loading {
|
|
234
|
+
.ds-table__loading {
|
|
251
235
|
@apply h-full w-full absolute right-0 left-0 flex items-center justify-center
|
|
252
236
|
bg-white bg-opacity-50 print:hidden;
|
|
253
237
|
}
|
|
254
238
|
@supports (
|
|
255
239
|
(-webkit-backdrop-filter: blur(0.6px)) or (backdrop-filter: blur(0.6px))
|
|
256
240
|
) {
|
|
257
|
-
.
|
|
241
|
+
.ds-table__loading {
|
|
258
242
|
@apply bg-opacity-30;
|
|
259
|
-
-webkit-backdrop-filter: blur(0.6px);
|
|
260
243
|
backdrop-filter: blur(0.6px);
|
|
261
244
|
}
|
|
262
245
|
}
|
|
263
246
|
|
|
264
247
|
/* overrides */
|
|
265
248
|
|
|
266
|
-
.
|
|
267
|
-
.
|
|
249
|
+
.ds-table {
|
|
250
|
+
.ds-dropdown__content {
|
|
268
251
|
@apply mt-0;
|
|
269
252
|
}
|
|
270
|
-
.
|
|
253
|
+
.ds-dropdown__button {
|
|
271
254
|
@apply mb-0;
|
|
272
255
|
}
|
|
273
256
|
}
|
|
274
|
-
.
|
|
275
|
-
.
|
|
257
|
+
.ds-table__cell {
|
|
258
|
+
.ds-btn {
|
|
276
259
|
@apply mb-0;
|
|
277
260
|
}
|
|
278
|
-
.
|
|
261
|
+
.ds-btn-group {
|
|
279
262
|
@apply mb-0;
|
|
280
263
|
}
|
|
281
264
|
}
|
|
282
|
-
.
|
|
283
|
-
.
|
|
284
|
-
@apply py-0;
|
|
285
|
-
}
|
|
286
|
-
.govgr-dropdown__button:not(:focus) {
|
|
265
|
+
.ds-table__header {
|
|
266
|
+
.ds-dropdown__button:not(:focus) {
|
|
287
267
|
@apply no-underline font-bold text-base-content !important;
|
|
288
268
|
}
|
|
289
|
-
.
|
|
269
|
+
.ds-dropdown__button--underline:not(:focus) {
|
|
290
270
|
@apply underline !important;
|
|
291
271
|
text-decoration-thickness: 2px !important;
|
|
292
272
|
}
|
|
293
|
-
.
|
|
273
|
+
.ds-nav__list-item-link,
|
|
274
|
+
.ds-nav__list-item-btn {
|
|
294
275
|
@apply flex no-underline;
|
|
295
276
|
}
|
|
296
277
|
}
|
package/src/components/tabs.css
CHANGED
|
@@ -1,81 +1,65 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ds-tabs {
|
|
2
2
|
scroll-behavior: smooth;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
display: block;
|
|
11
|
-
clear: both;
|
|
12
|
-
}
|
|
13
|
-
.govgr-tabs__list-item {
|
|
14
|
-
@apply relative px-4 py-2 m-0 shadow-none cursor-pointer;
|
|
15
|
-
@apply md:float-left md:border md:border-base-300 md:bg-base-300 md:rounded-t-sm md:mr-2;
|
|
16
|
-
@apply print:hidden;
|
|
17
|
-
&.govgr-tabs__list-item-selected {
|
|
18
|
-
@apply no-underline md:border-base-400 md:border bg-base-100 md:border-b-0 md:px-5 md:py-4 md:-mt-1;
|
|
19
|
-
margin-bottom: -1px;
|
|
20
|
-
&:hover {
|
|
21
|
-
text-decoration-thickness: 2px;
|
|
3
|
+
&.ds-tabs--dense,
|
|
4
|
+
.ds-dense & {
|
|
5
|
+
.ds-tabs__list {
|
|
6
|
+
.ds-tabs__list-item {
|
|
7
|
+
@apply md:px-3 md:py-1;
|
|
8
|
+
&.ds-tabs__list-item-selected {
|
|
9
|
+
@apply md:px-4 md:pb-3 md:pt-2;
|
|
22
10
|
}
|
|
23
11
|
}
|
|
24
12
|
}
|
|
25
|
-
.
|
|
26
|
-
@apply
|
|
27
|
-
text-underline-offset: 0.1em;
|
|
28
|
-
&:after {
|
|
29
|
-
content: "";
|
|
30
|
-
@apply absolute top-0 right-0 bottom-0 left-0;
|
|
31
|
-
}
|
|
32
|
-
&:focus {
|
|
33
|
-
background-color: var(--color-focus);
|
|
34
|
-
outline: 3px solid transparent;
|
|
35
|
-
-webkit-box-shadow: inset 0 0 0 3px var(--color-focus);
|
|
36
|
-
box-shadow: inset 0 0 0 3px var(--color-focus);
|
|
37
|
-
outline-offset: 0px;
|
|
38
|
-
text-decoration-thickness: 0.2rem;
|
|
39
|
-
}
|
|
13
|
+
.ds-tabs__panel {
|
|
14
|
+
@apply pb-2 pt-3;
|
|
40
15
|
}
|
|
41
16
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
17
|
+
}
|
|
18
|
+
.ds-tabs__title {
|
|
19
|
+
@apply block md:hidden;
|
|
20
|
+
}
|
|
21
|
+
.ds-tabs__list {
|
|
22
|
+
@apply list-none m-0 p-0
|
|
23
|
+
md:flex md:flex-nowrap md:w-full md:items-start;
|
|
24
|
+
&::after {
|
|
25
|
+
content: '';
|
|
26
|
+
display: block;
|
|
27
|
+
clear: both;
|
|
48
28
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
29
|
+
}
|
|
30
|
+
.ds-tabs__list-item {
|
|
31
|
+
@apply relative px-4 py-1 md:py-2 m-0 shadow-none cursor-pointer text-link
|
|
32
|
+
md:float-left md:border md:border-base-300 md:bg-base-300 md:rounded-t-sm md:mr-2 md:text-base-content
|
|
33
|
+
print:hidden;
|
|
34
|
+
word-break: break-word;
|
|
35
|
+
&.ds-tabs__list-item-selected {
|
|
36
|
+
@apply no-underline md:border-base-400 md:border bg-base-100 md:border-b-0 md:px-5 md:py-4 md:-mt-1;
|
|
37
|
+
margin-bottom: -1px;
|
|
38
|
+
&:hover {
|
|
39
|
+
text-decoration-thickness: 2px;
|
|
60
40
|
}
|
|
61
41
|
}
|
|
62
42
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
@apply
|
|
43
|
+
.ds-tabs__tab {
|
|
44
|
+
@apply text-lg no-underline hover:underline;
|
|
45
|
+
&::before {
|
|
46
|
+
@apply absolute top-0 left-0 text-base-content;
|
|
47
|
+
@apply md:content-[''] !important;
|
|
48
|
+
content: '_';
|
|
67
49
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
50
|
+
&:focus {
|
|
51
|
+
@apply bg-focus underline text-link-active;
|
|
52
|
+
outline: 3px solid transparent;
|
|
53
|
+
box-shadow: inset 0 0 0 3px var(--color-focus);
|
|
54
|
+
outline-offset: 0;
|
|
55
|
+
text-decoration-thickness: 0.2rem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.ds-tabs__panel {
|
|
59
|
+
@apply bg-base-100 md:hidden block md:px-4 py-4 pt-8 md:border md:border-base-400 mb-0
|
|
60
|
+
print:block print:border-0 print:py-3;
|
|
61
|
+
border-radius: var(--tabs__panel-border-radius);
|
|
62
|
+
&.ds-tabs__panel--visible {
|
|
63
|
+
@apply block;
|
|
79
64
|
}
|
|
80
|
-
|
|
81
65
|
}
|