@digigov/css 2.0.0-rc.3 → 2.0.0-rc.31
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/dist/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/index.js +99 -69
- package/package.json +17 -13
- package/postcss.config.js +4 -3
- package/src/base/base.css +1 -1
- package/src/base/index.css +6 -5
- package/src/base/index.native.css +0 -0
- package/src/base/postcss.config.js +11 -10
- package/src/base/tailwind.config.js +4 -11
- package/src/components/accordion.common.css +29 -0
- package/src/components/accordion.css +63 -58
- package/src/components/accordion.native.css +27 -0
- package/src/components/admin-header.css +2 -19
- package/src/components/admin-layout.css +13 -22
- package/src/components/autocomplete.css +93 -48
- package/src/components/back-to-top.css +3 -4
- package/src/components/blockquote.common.css +14 -0
- package/src/components/blockquote.css +9 -0
- package/src/components/blockquote.native.css +14 -0
- package/src/components/bottom-info.css +2 -1
- package/src/components/breadcrumbs.css +17 -8
- package/src/components/button.common.css +62 -0
- package/src/components/button.css +57 -71
- package/src/components/button.native.css +55 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +65 -54
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.common.css +16 -0
- package/src/components/checkboxes.css +26 -31
- package/src/components/checkboxes.native.css +27 -0
- package/src/components/chip.common.css +19 -0
- package/src/components/chip.css +32 -32
- package/src/components/chip.native.css +15 -0
- package/src/components/code.css +128 -0
- package/src/components/components.css +2 -2
- package/src/components/copy-to-clipboard.css +27 -26
- package/src/components/copy-to-clipboard.native.css +26 -0
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +14 -15
- package/src/components/details.native.css +34 -0
- package/src/components/dev-theme.css +2 -3
- package/src/components/drawer.css +63 -47
- package/src/components/dropdown.common.css +23 -0
- package/src/components/dropdown.css +57 -51
- package/src/components/dropdown.native.css +27 -0
- package/src/components/experimental.css +12 -12
- package/src/components/fillable.css +4 -4
- package/src/components/filter.css +76 -32
- package/src/components/footer.css +36 -21
- package/src/components/form.common.css +81 -0
- package/src/components/form.css +96 -54
- package/src/components/form.native.css +182 -0
- package/src/components/full-page-background.css +1 -1
- package/src/components/header.common.css +35 -0
- package/src/components/header.css +43 -46
- package/src/components/header.native.css +29 -0
- package/src/components/hidden.css +17 -17
- package/src/components/index.css +49 -47
- package/src/components/kitchensink.css +33 -33
- package/src/components/layout.common.css +36 -0
- package/src/components/layout.css +40 -41
- package/src/components/layout.native.css +40 -0
- package/src/components/loader.common.css +7 -0
- package/src/components/loader.css +31 -29
- package/src/components/loader.native.css +5 -0
- package/src/components/masthead.css +56 -55
- package/src/components/misc.css +37 -15
- package/src/components/modal.common.css +16 -0
- package/src/components/modal.css +33 -22
- package/src/components/modal.native.css +18 -0
- package/src/components/nav.common.css +22 -0
- package/src/components/nav.css +72 -67
- package/src/components/nav.native.css +39 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +41 -19
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +44 -29
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +10 -18
- package/src/components/panel.native.css +26 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +11 -10
- package/src/components/phase-banner.native.css +30 -0
- package/src/components/postcss.config.js +7 -6
- package/src/components/radios.common.css +16 -0
- package/src/components/radios.css +27 -30
- package/src/components/radios.native.css +23 -0
- package/src/components/skeleton.common.css +20 -0
- package/src/components/skeleton.css +82 -0
- package/src/components/skeleton.native.css +53 -0
- package/src/components/skiplink.css +2 -2
- package/src/components/stack.common.css +67 -0
- package/src/components/stack.css +66 -64
- package/src/components/stack.native.css +68 -0
- package/src/components/stepnav.css +33 -29
- package/src/components/summary-list.common.css +93 -0
- package/src/components/summary-list.css +105 -28
- package/src/components/summary-list.native.css +97 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +78 -80
- package/src/components/svg-icons.native.css +54 -0
- package/src/components/table.css +192 -178
- package/src/components/tabs.css +51 -67
- package/src/components/task-list.css +18 -18
- package/src/components/test.css +7 -0
- package/src/components/timeline.css +4 -3
- package/src/components/typography.common.css +135 -0
- package/src/components/typography.css +103 -191
- package/src/components/typography.native.css +128 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +15 -13
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +26 -0
- package/src/pages/index.js +1 -1
- package/src/utilities/gap.css +141 -0
- package/src/utilities/index.css +6 -1655
- package/src/utilities/index.native.css +6 -0
- package/src/utilities/layout.css +231 -0
- package/src/utilities/layout.native.css +278 -0
- package/src/utilities/margin.css +4299 -0
- package/src/utilities/padding.css +4299 -0
- package/src/utilities/postcss.config.js +7 -6
- package/src/utilities/print.css +11 -0
- package/src/utilities/utilities.css +3 -1661
- package/tailwind.config.js +102 -104
- package/theming.js +121 -0
- package/defaultTheme/accordion.json +0 -8
- package/defaultTheme/back-to-top.json +0 -27
- package/defaultTheme/brandConfig.json +0 -135
- package/defaultTheme/breadcrumbs.json +0 -8
- package/defaultTheme/button.json +0 -81
- package/defaultTheme/card.json +0 -12
- package/defaultTheme/footer.json +0 -8
- package/defaultTheme/form.json +0 -15
- package/defaultTheme/globals.json +0 -71
- package/defaultTheme/index.js +0 -27
- package/defaultTheme/misc.json +0 -48
- package/defaultTheme/panel.json +0 -43
- package/defaultTheme/phase-banner.json +0 -8
- package/defaultTheme/radios.json +0 -8
- package/defaultTheme/summary-list.json +0 -8
- package/defaultTheme/typography.json +0 -295
- 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
- package/themes.plugin.js +0 -148
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@import './svg-icons.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-svg-icon {
|
|
4
|
+
@apply util-svg-icon;
|
|
5
|
+
flex-flow: 'row' 'wrap';
|
|
6
|
+
}
|
|
7
|
+
.ds-svg-icon--base-content {
|
|
8
|
+
@apply util-svg-icon--base-content;
|
|
9
|
+
}
|
|
10
|
+
.ds-svg-icon--dark {
|
|
11
|
+
@apply util-svg-icon--dark;
|
|
12
|
+
}
|
|
13
|
+
.ds-svg-icon--white {
|
|
14
|
+
@apply util-svg-icon--white;
|
|
15
|
+
}
|
|
16
|
+
.ds-svg-icon--gray {
|
|
17
|
+
@apply util-svg-icon--gray;
|
|
18
|
+
}
|
|
19
|
+
.ds-svg-icon--primary {
|
|
20
|
+
@apply util-svg-icon--primary;
|
|
21
|
+
}
|
|
22
|
+
.ds-svg-icon--success {
|
|
23
|
+
@apply util-svg-icon--success;
|
|
24
|
+
}
|
|
25
|
+
.ds-svg-icon--warning {
|
|
26
|
+
@apply util-svg-icon--warning;
|
|
27
|
+
}
|
|
28
|
+
.ds-svg-icon--error {
|
|
29
|
+
@apply util-svg-icon--error;
|
|
30
|
+
}
|
|
31
|
+
.ds-svg-icon--focus {
|
|
32
|
+
@apply util-svg-icon--focus;
|
|
33
|
+
}
|
|
34
|
+
.ds-svg-icon--link {
|
|
35
|
+
@apply util-svg-icon--link;
|
|
36
|
+
}
|
|
37
|
+
.ds-svg-icon--info {
|
|
38
|
+
@apply util-svg-icon--info;
|
|
39
|
+
}
|
|
40
|
+
.ds-svg-icon--xs {
|
|
41
|
+
@apply util-svg-icon--xs;
|
|
42
|
+
}
|
|
43
|
+
.ds-svg-icon--sm {
|
|
44
|
+
@apply util-svg-icon--sm;
|
|
45
|
+
}
|
|
46
|
+
.ds-svg-icon--md {
|
|
47
|
+
@apply util-svg-icon--md;
|
|
48
|
+
}
|
|
49
|
+
.ds-svg-icon--lg {
|
|
50
|
+
@apply util-svg-icon--lg;
|
|
51
|
+
}
|
|
52
|
+
.ds-svg-icon--xl {
|
|
53
|
+
@apply util-svg-icon--xl;
|
|
54
|
+
}
|
package/src/components/table.css
CHANGED
|
@@ -1,199 +1,215 @@
|
|
|
1
1
|
.ds-table__caption {
|
|
2
2
|
@apply table-caption text-left font-bold;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
}
|
|
15
15
|
}
|
|
16
16
|
.ds-table-container {
|
|
17
17
|
@apply w-full overflow-x-auto md:mb-10 mb-6;
|
|
18
|
+
&.ds-table-container--border {
|
|
19
|
+
@apply border border-base-300 p-2;
|
|
20
|
+
}
|
|
18
21
|
.ds-table {
|
|
19
22
|
@apply mb-0;
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
|
-
.ds-table-container--border {
|
|
23
|
-
@apply border border-base-300 p-2;
|
|
24
|
-
}
|
|
25
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
|
-
.ds-
|
|
31
|
-
@apply flex flex-col;
|
|
32
|
-
}
|
|
33
|
-
@supports (-moz-appearance: none) {
|
|
34
|
-
.ds-table {
|
|
35
|
-
border-collapse: unset;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
.ds-table--vertical-lines {
|
|
39
|
-
.ds-table__cell,
|
|
40
|
-
.ds-table__header {
|
|
41
|
-
@apply border-l border-r border-solid border-base-300 px-4;
|
|
42
|
-
}
|
|
43
|
-
.ds-table__head {
|
|
44
|
-
@apply border-t border-base-300 text-base-content !important;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
@supports (-moz-appearance: none) {
|
|
48
|
-
.ds-table--vertical-lines {
|
|
29
|
+
&.ds-table--vertical-lines {
|
|
30
|
+
.ds-table__cell.ds-table__cell--border,
|
|
49
31
|
.ds-table__header {
|
|
50
|
-
@apply border-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
32
|
+
@apply border-l border-r border-solid border-base-300 px-4;
|
|
33
|
+
}
|
|
34
|
+
.ds-table__head {
|
|
35
|
+
@apply border-t border-base-300 text-base-content !important;
|
|
55
36
|
}
|
|
37
|
+
}
|
|
38
|
+
&.ds-table--dark,
|
|
39
|
+
&.ds-table--zebra {
|
|
40
|
+
.ds-table__header,
|
|
56
41
|
.ds-table__cell {
|
|
57
|
-
@apply
|
|
58
|
-
|
|
59
|
-
|
|
42
|
+
@apply px-4 !important;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
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;
|
|
60
49
|
}
|
|
61
50
|
}
|
|
62
51
|
}
|
|
63
|
-
|
|
64
|
-
.ds-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
@apply border-l-4 border-warning;
|
|
69
|
-
.ds-table__cell:first-child {
|
|
70
|
-
@apply pl-2;
|
|
52
|
+
&.ds-table--vertical-lines.ds-table--dark {
|
|
53
|
+
.ds-table__header {
|
|
54
|
+
@apply border-0;
|
|
55
|
+
@apply print:border;
|
|
56
|
+
}
|
|
71
57
|
}
|
|
72
|
-
|
|
73
|
-
.ds-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
@apply px-4 !important;
|
|
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;
|
|
62
|
+
}
|
|
78
63
|
}
|
|
79
|
-
|
|
80
|
-
.ds-
|
|
81
|
-
|
|
82
|
-
|
|
64
|
+
&.ds-table--zebra {
|
|
65
|
+
.ds-table__body {
|
|
66
|
+
.ds-table__row:nth-child(even) {
|
|
67
|
+
@apply bg-base-200 print:bg-white;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
83
70
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
+
}
|
|
89
79
|
}
|
|
90
|
-
|
|
91
|
-
.ds-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
80
|
+
&.ds-table--stacked-always {
|
|
81
|
+
.ds-table__header,
|
|
82
|
+
.ds-table__cell.ds-table__cell--border {
|
|
83
|
+
&:last-child {
|
|
84
|
+
@apply border-b-2 border-b-base-content;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.ds-table__header--numeric,
|
|
88
|
+
.ds-table__cell--numeric {
|
|
89
|
+
@apply text-left;
|
|
90
|
+
}
|
|
91
|
+
.ds-table__head {
|
|
92
|
+
.ds-table__header {
|
|
93
|
+
@apply hidden;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.ds-table__body .ds-table__header,
|
|
97
|
+
.ds-table__cell {
|
|
98
|
+
@apply block;
|
|
99
|
+
}
|
|
100
|
+
.ds-table__cell[data-label]::before {
|
|
101
|
+
@apply block font-semibold mb-2;
|
|
102
|
+
content: attr(data-label);
|
|
103
|
+
}
|
|
95
104
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
105
|
+
&.ds-table--stacked-sm {
|
|
106
|
+
@media (min-width: 640px) {
|
|
107
|
+
.ds-table__cell[data-label]::before {
|
|
108
|
+
content: none !important;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.ds-table__header,
|
|
112
|
+
.ds-table__cell.ds-table__cell--border {
|
|
113
|
+
&:last-child {
|
|
114
|
+
@apply xsOnly:border-b-2 xsOnly:border-b-base-content;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.ds-table__header--numeric,
|
|
118
|
+
.ds-table__cell--numeric {
|
|
119
|
+
@apply xsOnly:text-left;
|
|
120
|
+
}
|
|
121
|
+
.ds-table__head {
|
|
122
|
+
.ds-table__header {
|
|
123
|
+
@apply hidden sm:table-cell;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.ds-table__body .ds-table__header,
|
|
127
|
+
.ds-table__cell {
|
|
128
|
+
@apply block sm:table-cell;
|
|
129
|
+
}
|
|
130
|
+
.ds-table__cell[data-label]::before {
|
|
131
|
+
@apply block font-semibold mb-2;
|
|
132
|
+
content: attr(data-label);
|
|
101
133
|
}
|
|
102
134
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
135
|
+
&.ds-table--stacked-md {
|
|
136
|
+
@media (min-width: 768px) {
|
|
137
|
+
.ds-table__cell[data-label]::before {
|
|
138
|
+
content: none !important;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
107
141
|
.ds-table__header,
|
|
142
|
+
.ds-table__cell.ds-table__cell--border {
|
|
143
|
+
&:last-child {
|
|
144
|
+
@apply xsOnly:border-b-2 smOnly:border-b-2
|
|
145
|
+
xsOnly:border-b-base-content smOnly:border-b-base-content;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
.ds-table__header--numeric,
|
|
149
|
+
.ds-table__cell--numeric {
|
|
150
|
+
@apply smOnly:text-left mdOnly:text-left;
|
|
151
|
+
}
|
|
152
|
+
.ds-table__head {
|
|
153
|
+
.ds-table__header {
|
|
154
|
+
@apply hidden md:table-cell;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
.ds-table__body .ds-table__header,
|
|
108
158
|
.ds-table__cell {
|
|
109
|
-
@apply
|
|
159
|
+
@apply block md:table-cell;
|
|
160
|
+
}
|
|
161
|
+
.ds-table__cell[data-label]::before {
|
|
162
|
+
@apply block font-semibold mb-2;
|
|
163
|
+
content: attr(data-label);
|
|
110
164
|
}
|
|
111
165
|
}
|
|
112
|
-
|
|
113
|
-
.ds-
|
|
114
|
-
|
|
115
|
-
.ds-table__cell {
|
|
116
|
-
&:last-child {
|
|
117
|
-
@apply border-b-2;
|
|
118
|
-
border-bottom-color: rgb(var(--color-base-content-rgb));
|
|
166
|
+
&.ds-table--align-top {
|
|
167
|
+
.ds-table__cell {
|
|
168
|
+
@apply align-top;
|
|
119
169
|
}
|
|
120
170
|
}
|
|
121
|
-
|
|
122
|
-
|
|
171
|
+
&.ds-table--align-bottom {
|
|
172
|
+
.ds-table__cell {
|
|
173
|
+
@apply align-bottom;
|
|
174
|
+
}
|
|
123
175
|
}
|
|
124
|
-
.ds-table__body .ds-table__header,
|
|
125
176
|
.ds-table__cell {
|
|
126
|
-
|
|
177
|
+
.ds-body:last-child {
|
|
178
|
+
@apply mb-0;
|
|
179
|
+
}
|
|
127
180
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
181
|
+
}
|
|
182
|
+
.ds-table-sort__icons-container {
|
|
183
|
+
@apply flex flex-col;
|
|
184
|
+
}
|
|
185
|
+
@supports (-moz-appearance: none) {
|
|
186
|
+
.ds-table {
|
|
187
|
+
border-collapse: unset;
|
|
131
188
|
}
|
|
132
189
|
}
|
|
133
|
-
|
|
134
|
-
.ds-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
@apply border-
|
|
138
|
-
|
|
139
|
-
|
|
190
|
+
@supports (-moz-appearance: none) {
|
|
191
|
+
.ds-table--vertical-lines {
|
|
192
|
+
.ds-table__header {
|
|
193
|
+
@apply border-t;
|
|
194
|
+
@apply border-r-0 !important;
|
|
195
|
+
&:last-child {
|
|
196
|
+
@apply border-r border-solid border-base-300 px-4 !important;
|
|
197
|
+
}
|
|
140
198
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
&:last-child {
|
|
146
|
-
border-bottom-color: rgb(var(--color-base-300-rgb));
|
|
147
|
-
}
|
|
199
|
+
.ds-table__cell.ds-table__cell--border {
|
|
200
|
+
@apply border-r-0 !important;
|
|
201
|
+
&:last-child {
|
|
202
|
+
@apply border-r border-solid border-base-300 px-4 !important;
|
|
148
203
|
}
|
|
149
|
-
}
|
|
150
|
-
.ds-table__head .ds-table__header {
|
|
151
|
-
@apply hidden sm:table-cell;
|
|
152
|
-
}
|
|
153
|
-
.ds-table__body .ds-table__header,
|
|
154
|
-
.ds-table__cell {
|
|
155
|
-
@apply block sm:table-cell;
|
|
156
|
-
}
|
|
157
|
-
.ds-table__cell[data-label]:before {
|
|
158
|
-
content: attr(data-label);
|
|
159
|
-
@apply block font-semibold;
|
|
160
|
-
}
|
|
161
|
-
@media (min-width: 640px) {
|
|
162
|
-
.ds-table__cell[data-label]:before {
|
|
163
|
-
content: none;
|
|
164
204
|
}
|
|
165
205
|
}
|
|
166
206
|
}
|
|
167
|
-
.ds-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
@media (min-width: 768px) {
|
|
176
|
-
.ds-table__header,
|
|
177
|
-
.ds-table__cell {
|
|
178
|
-
&:last-child {
|
|
179
|
-
border-bottom-color: rgb(var(--color-base-300-rgb));
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
.ds-table__head .ds-table__header {
|
|
184
|
-
@apply hidden md:table-cell;
|
|
185
|
-
}
|
|
186
|
-
.ds-table__body .ds-table__header,
|
|
187
|
-
.ds-table__cell {
|
|
188
|
-
@apply block md:table-cell;
|
|
189
|
-
}
|
|
190
|
-
.ds-table__cell[data-label]:before {
|
|
191
|
-
content: attr(data-label);
|
|
192
|
-
@apply block font-semibold;
|
|
193
|
-
}
|
|
194
|
-
@media (min-width: 768px) {
|
|
195
|
-
.ds-table__cell[data-label]:before {
|
|
196
|
-
content: none;
|
|
207
|
+
.ds-table__row {
|
|
208
|
+
@apply bg-base-100;
|
|
209
|
+
&.ds-table__row--highlight {
|
|
210
|
+
@apply border-l-4 border-warning;
|
|
211
|
+
.ds-table__cell:first-child {
|
|
212
|
+
@apply pl-2;
|
|
197
213
|
}
|
|
198
214
|
}
|
|
199
215
|
}
|
|
@@ -207,26 +223,34 @@
|
|
|
207
223
|
}
|
|
208
224
|
.ds-table__body {
|
|
209
225
|
@apply relative;
|
|
210
|
-
|
|
211
|
-
.ds-
|
|
212
|
-
|
|
213
|
-
|
|
226
|
+
&.ds-table__body--vertical-top {
|
|
227
|
+
.ds-table__cell {
|
|
228
|
+
@apply align-top;
|
|
229
|
+
}
|
|
214
230
|
}
|
|
215
|
-
|
|
216
|
-
.ds-
|
|
217
|
-
|
|
218
|
-
|
|
231
|
+
&.ds-table__body--vertical-bottom {
|
|
232
|
+
.ds-table__cell {
|
|
233
|
+
@apply align-bottom;
|
|
234
|
+
}
|
|
219
235
|
}
|
|
220
236
|
}
|
|
221
|
-
.ds-
|
|
222
|
-
@apply
|
|
237
|
+
.ds-table__header {
|
|
238
|
+
@apply pr-5 py-2.5 pl-0 border-b border-solid border-base-300 text-left align-middle;
|
|
239
|
+
&:last-child {
|
|
240
|
+
@apply pr-0;
|
|
241
|
+
}
|
|
223
242
|
}
|
|
224
|
-
.ds-table__header,
|
|
225
243
|
.ds-table__cell {
|
|
226
|
-
@apply pr-5 py-2.5 pl-0
|
|
244
|
+
@apply pr-5 py-2.5 pl-0 text-left align-middle;
|
|
227
245
|
&:last-child {
|
|
228
246
|
@apply pr-0;
|
|
229
247
|
}
|
|
248
|
+
&.ds-table__cell--border {
|
|
249
|
+
@apply border-b border-solid border-base-300;
|
|
250
|
+
}
|
|
251
|
+
&.ds-table__cell--break-all {
|
|
252
|
+
@apply break-all;
|
|
253
|
+
}
|
|
230
254
|
}
|
|
231
255
|
.ds-table__header--numeric,
|
|
232
256
|
.ds-table__cell--numeric {
|
|
@@ -240,13 +264,6 @@
|
|
|
240
264
|
.ds-table__cell--no-data {
|
|
241
265
|
@apply border-b-0 pt-2.5;
|
|
242
266
|
}
|
|
243
|
-
.ds-table--dark,
|
|
244
|
-
.ds-table--zebra {
|
|
245
|
-
.ds-table__header,
|
|
246
|
-
.ds-table__cell {
|
|
247
|
-
@apply px-4 !important;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
267
|
.ds-table__loading {
|
|
251
268
|
@apply h-full w-full absolute right-0 left-0 flex items-center justify-center
|
|
252
269
|
bg-white bg-opacity-50 print:hidden;
|
|
@@ -256,7 +273,6 @@
|
|
|
256
273
|
) {
|
|
257
274
|
.ds-table__loading {
|
|
258
275
|
@apply bg-opacity-30;
|
|
259
|
-
-webkit-backdrop-filter: blur(0.6px);
|
|
260
276
|
backdrop-filter: blur(0.6px);
|
|
261
277
|
}
|
|
262
278
|
}
|
|
@@ -280,9 +296,6 @@
|
|
|
280
296
|
}
|
|
281
297
|
}
|
|
282
298
|
.ds-table__header {
|
|
283
|
-
.ds-dropdown__content {
|
|
284
|
-
@apply py-0;
|
|
285
|
-
}
|
|
286
299
|
.ds-dropdown__button:not(:focus) {
|
|
287
300
|
@apply no-underline font-bold text-base-content !important;
|
|
288
301
|
}
|
|
@@ -290,7 +303,8 @@
|
|
|
290
303
|
@apply underline !important;
|
|
291
304
|
text-decoration-thickness: 2px !important;
|
|
292
305
|
}
|
|
293
|
-
.ds-nav__list-item-link,
|
|
306
|
+
.ds-nav__list-item-link,
|
|
307
|
+
.ds-nav__list-item-btn {
|
|
294
308
|
@apply flex no-underline;
|
|
295
309
|
}
|
|
296
310
|
}
|
package/src/components/tabs.css
CHANGED
|
@@ -1,81 +1,65 @@
|
|
|
1
1
|
.ds-tabs {
|
|
2
2
|
scroll-behavior: smooth;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
.ds-tabs__list {
|
|
7
|
-
@apply list-none m-0 p-0;
|
|
8
|
-
&:after {
|
|
9
|
-
content: "";
|
|
10
|
-
display: block;
|
|
11
|
-
clear: both;
|
|
12
|
-
}
|
|
13
|
-
.ds-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
|
-
&.ds-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;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
.ds-tabs__tab {
|
|
26
|
-
@apply text-lg no-underline hover:underline focus:underline;
|
|
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
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
.ds-tabs__panel {
|
|
43
|
-
@apply bg-base-100 md:hidden block md:px-4 py-4 pt-8 md:border md:border-base-400 mb-0
|
|
44
|
-
print:block print:border-0 print:py-3;
|
|
45
|
-
&.ds-tabs__panel--visible {
|
|
46
|
-
@apply block;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
&.ds-tabs--dense, .ds-dense & {
|
|
3
|
+
&.ds-tabs--dense,
|
|
4
|
+
.ds-dense & {
|
|
50
5
|
.ds-tabs__list {
|
|
51
|
-
|
|
52
|
-
@apply px-3 py-1;
|
|
6
|
+
.ds-tabs__list-item {
|
|
7
|
+
@apply md:px-3 md:py-1;
|
|
53
8
|
&.ds-tabs__list-item-selected {
|
|
54
|
-
|
|
55
|
-
}
|
|
9
|
+
@apply md:px-4 md:pb-3 md:pt-2;
|
|
56
10
|
}
|
|
11
|
+
}
|
|
57
12
|
}
|
|
58
13
|
.ds-tabs__panel {
|
|
59
|
-
|
|
14
|
+
@apply pb-2 pt-3;
|
|
60
15
|
}
|
|
61
16
|
}
|
|
62
17
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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;
|
|
67
28
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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;
|
|
78
40
|
}
|
|
79
41
|
}
|
|
80
|
-
|
|
42
|
+
}
|
|
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: '_';
|
|
49
|
+
}
|
|
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;
|
|
64
|
+
}
|
|
81
65
|
}
|
|
@@ -6,36 +6,36 @@
|
|
|
6
6
|
}
|
|
7
7
|
.ds-task-list__heading {
|
|
8
8
|
@apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
&.ds-task-list__heading--md {
|
|
10
|
+
@apply md:text-2xl text-xl md:mb-4 mb-2;
|
|
11
|
+
}
|
|
12
|
+
&.ds-task-list__heading--sm {
|
|
13
|
+
@apply md:text-lg text-base md:mb-3 mb-1;
|
|
14
|
+
}
|
|
15
15
|
}
|
|
16
16
|
.ds-task-list__content {
|
|
17
17
|
@apply mb-4;
|
|
18
18
|
}
|
|
19
19
|
.ds-task-list__content__tag {
|
|
20
20
|
@apply px-2 py-1 mr-2 inline-block font-sans text-sm uppercase tracking-widest print:border-2 print:bg-white print:mr-4;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
&.ds-task-list__content__tag--info {
|
|
22
|
+
@apply bg-info text-white print:border-info-hover print:text-info-hover;
|
|
23
|
+
}
|
|
24
|
+
&.ds-task-list__content__tag--primary {
|
|
25
|
+
@apply bg-secondary text-base-content print:border-info print:text-info;
|
|
26
|
+
}
|
|
27
|
+
&.ds-task-list__content__tag--secondary {
|
|
28
|
+
@apply bg-base-300 print:border-base-800 print:text-base-800;
|
|
29
|
+
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/* overrides */
|
|
33
33
|
|
|
34
|
-
.ds-task-list--dense{
|
|
34
|
+
.ds-task-list--dense {
|
|
35
35
|
.ds-task-list__item {
|
|
36
36
|
@apply mb-4 md:mb-6;
|
|
37
|
-
.ds-summary-list{
|
|
38
|
-
@apply mb-4 md:mb-6;
|
|
37
|
+
.ds-summary-list {
|
|
38
|
+
@apply mb-4 md:mb-6;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|