@digigov/css 2.0.0-0edebf87 → 2.0.0-13876dba
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 +14 -14
- package/postcss.config.js +4 -3
- package/src/base/index.css +1 -0
- 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 +9 -7
- package/src/components/accordion.native.css +27 -0
- package/src/components/admin-header.css +1 -19
- package/src/components/admin-layout.css +4 -6
- package/src/components/autocomplete.css +1 -3
- 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/breadcrumbs.css +9 -2
- package/src/components/button.common.css +62 -0
- package/src/components/button.css +13 -28
- package/src/components/button.native.css +55 -0
- package/src/components/card.common.css +33 -0
- package/src/components/card.css +19 -14
- package/src/components/card.native.css +29 -0
- package/src/components/checkboxes.common.css +16 -0
- package/src/components/checkboxes.css +6 -8
- package/src/components/checkboxes.native.css +27 -0
- package/src/components/chip.common.css +19 -0
- package/src/components/chip.css +5 -4
- package/src/components/chip.native.css +15 -0
- package/src/components/code.css +128 -0
- package/src/components/copy-to-clipboard.css +1 -1
- package/src/components/copy-to-clipboard.native.css +26 -0
- package/src/components/details.common.css +26 -0
- package/src/components/details.css +6 -9
- package/src/components/details.native.css +34 -0
- package/src/components/drawer.css +20 -3
- package/src/components/dropdown.common.css +23 -0
- package/src/components/dropdown.css +7 -9
- package/src/components/dropdown.native.css +27 -0
- package/src/components/filter.css +71 -22
- package/src/components/footer.css +8 -7
- package/src/components/form.common.css +81 -0
- package/src/components/form.css +62 -31
- package/src/components/form.native.css +182 -0
- package/src/components/header.common.css +35 -0
- package/src/components/header.css +12 -20
- package/src/components/header.native.css +29 -0
- package/src/components/hidden.css +11 -11
- package/src/components/index.css +2 -0
- package/src/components/kitchensink.css +2 -2
- package/src/components/layout.common.css +36 -0
- package/src/components/layout.css +12 -11
- package/src/components/layout.native.css +40 -0
- package/src/components/loader.common.css +7 -0
- package/src/components/loader.css +3 -1
- package/src/components/loader.native.css +5 -0
- package/src/components/masthead.css +1 -1
- package/src/components/modal.common.css +16 -0
- package/src/components/modal.css +19 -15
- package/src/components/modal.native.css +18 -0
- package/src/components/nav.common.css +22 -0
- package/src/components/nav.css +8 -7
- package/src/components/nav.native.css +39 -0
- package/src/components/notification-banner.common.css +46 -0
- package/src/components/notification-banner.css +27 -7
- package/src/components/notification-banner.native.css +42 -0
- package/src/components/pagination.css +19 -3
- package/src/components/panel.common.css +30 -0
- package/src/components/panel.css +6 -15
- package/src/components/panel.native.css +26 -0
- package/src/components/phase-banner.common.css +23 -0
- package/src/components/phase-banner.css +7 -6
- 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 +5 -11
- package/src/components/radios.native.css +23 -0
- package/src/components/skeleton.common.css +20 -0
- package/src/components/skeleton.css +7 -10
- package/src/components/skeleton.native.css +53 -0
- package/src/components/stack.common.css +67 -0
- package/src/components/stack.css +23 -21
- package/src/components/stack.native.css +68 -0
- package/src/components/summary-list.common.css +93 -0
- package/src/components/summary-list.css +90 -26
- package/src/components/summary-list.native.css +97 -0
- package/src/components/svg-icons.common.css +56 -0
- package/src/components/svg-icons.css +1 -1
- package/src/components/svg-icons.native.css +54 -0
- package/src/components/table.css +17 -4
- package/src/components/tabs.css +44 -62
- package/src/components/test.css +7 -0
- package/src/components/typography.common.css +135 -0
- package/src/components/typography.css +36 -108
- package/src/components/typography.native.css +128 -0
- package/src/components/warning-text.common.css +23 -0
- package/src/components/warning-text.css +9 -7
- package/src/components/warning-text.native.css +22 -0
- package/src/index.native.css +26 -0
- 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 -105
- package/theming.js +121 -0
- package/defaultTheme/accordion.json +0 -16
- package/defaultTheme/back-to-top.json +0 -27
- package/defaultTheme/brandConfig.json +0 -145
- package/defaultTheme/breadcrumbs.json +0 -8
- package/defaultTheme/button.json +0 -90
- package/defaultTheme/card.json +0 -23
- package/defaultTheme/form.json +0 -30
- package/defaultTheme/globals.json +0 -81
- package/defaultTheme/index.js +0 -27
- package/defaultTheme/layout.json +0 -55
- package/defaultTheme/misc.json +0 -68
- package/defaultTheme/panel.json +0 -48
- 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/themes.plugin.js +0 -148
package/src/components/nav.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
@import './nav.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-nav {
|
|
2
|
-
@apply
|
|
4
|
+
@apply util-nav h-auto;
|
|
3
5
|
&.ds-nav--hidden {
|
|
4
6
|
@apply hidden;
|
|
5
7
|
}
|
|
@@ -38,17 +40,13 @@
|
|
|
38
40
|
&.ds-nav--border {
|
|
39
41
|
@apply sm:border-b sm:border-base-400;
|
|
40
42
|
}
|
|
41
|
-
|
|
42
|
-
/* .ds-nav__list {
|
|
43
|
-
@apply px-3;
|
|
44
|
-
} */
|
|
45
43
|
.ds-nav__list-item-link,
|
|
46
44
|
.ds-nav__list-item-btn {
|
|
47
45
|
@apply md:no-underline !important;
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
.ds-nav__list {
|
|
51
|
-
@apply
|
|
49
|
+
@apply util-nav__list static;
|
|
52
50
|
&.ds-nav__list--horizontal {
|
|
53
51
|
@apply sm:mx-auto sm:gap-x-6 sm:py-1 px-4 sm:flex-row;
|
|
54
52
|
.ds-nav__list-item {
|
|
@@ -56,7 +54,7 @@
|
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
&.ds-nav__list--full-width {
|
|
59
|
-
@apply
|
|
57
|
+
@apply util-nav__list--full-width;
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
.ds-nav__list-item {
|
|
@@ -81,6 +79,9 @@
|
|
|
81
79
|
@apply font-semibold;
|
|
82
80
|
}
|
|
83
81
|
|
|
82
|
+
.ds-nav__list-item-badge {
|
|
83
|
+
@apply util-nav__list-item-badge util-nav__list-item-badge-text inline-flex w-fit ml-2;
|
|
84
|
+
}
|
|
84
85
|
.ds-nav-menu {
|
|
85
86
|
@apply flex w-full;
|
|
86
87
|
&.ds-nav-menu--hidden {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import './nav.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-nav {
|
|
4
|
+
@apply util-nav;
|
|
5
|
+
}
|
|
6
|
+
.ds-nav--border {
|
|
7
|
+
@apply border-b border-base-400;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ds-nav__list {
|
|
11
|
+
@apply util-nav__list;
|
|
12
|
+
}
|
|
13
|
+
.ds-nav__list--vertical {
|
|
14
|
+
@apply gap-y-3;
|
|
15
|
+
}
|
|
16
|
+
.ds-nav__list--horizontal {
|
|
17
|
+
@apply mx-auto py-1 px-4 flex-row items-center;
|
|
18
|
+
column-gap: 1.5rem;
|
|
19
|
+
}
|
|
20
|
+
.ds-nav__list--full-width {
|
|
21
|
+
@apply util-nav__list--full-width;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ds-nav__list-item-badge {
|
|
25
|
+
@apply util-nav__list-item-badge -ml-5;
|
|
26
|
+
}
|
|
27
|
+
.ds-nav__list-item-badge__text {
|
|
28
|
+
@apply util-nav__list-item-badge-text;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* EXTRA CLASS */
|
|
32
|
+
|
|
33
|
+
.ds-nav__list-item-link__text {
|
|
34
|
+
line-height: 1.2rem;
|
|
35
|
+
color: var(--link-color);
|
|
36
|
+
}
|
|
37
|
+
.ds-nav__list-item--border-bottom {
|
|
38
|
+
@apply border-b border-base-300 pb-3 px-4;
|
|
39
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
|
|
2
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
3
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
4
|
+
@tailwind utilities;
|
|
5
|
+
|
|
6
|
+
@layer utilities {
|
|
7
|
+
.util-notification-banner {
|
|
8
|
+
@apply border-5 mb-6 md:mb-8 print:bg-white;
|
|
9
|
+
|
|
10
|
+
/* border-radius: var(--notification-banner-border-radius); */
|
|
11
|
+
}
|
|
12
|
+
.util-notification-banner-text {
|
|
13
|
+
@apply font-normal;
|
|
14
|
+
}
|
|
15
|
+
.util-notification-banner--info {
|
|
16
|
+
@apply bg-info border-info;
|
|
17
|
+
}
|
|
18
|
+
.util-notification-banner--success {
|
|
19
|
+
@apply bg-success border-success;
|
|
20
|
+
}
|
|
21
|
+
.util-notification-banner--error {
|
|
22
|
+
@apply bg-error border-error;
|
|
23
|
+
}
|
|
24
|
+
.util-notification-banner__header {
|
|
25
|
+
@apply print:border-b print:border-base-400 print:text-base-content print:pt-2;
|
|
26
|
+
}
|
|
27
|
+
.util-notification-banner__title-text {
|
|
28
|
+
@apply pb-2 m-0 text-white text-base md:text-lg
|
|
29
|
+
print:text-base-content print:pt-2;
|
|
30
|
+
}
|
|
31
|
+
.util-notification-banner__content {
|
|
32
|
+
@apply bg-base-100 px-4 py-4 md:px-5 md:py-5;
|
|
33
|
+
}
|
|
34
|
+
.util-notification-banner__content-text {
|
|
35
|
+
@apply text-base-content;
|
|
36
|
+
}
|
|
37
|
+
.util-notification-banner_link-text {
|
|
38
|
+
@apply underline text-base md:text-lg text-link;
|
|
39
|
+
}
|
|
40
|
+
.util-notification-banner_link--success-text {
|
|
41
|
+
@apply text-success;
|
|
42
|
+
}
|
|
43
|
+
.util-notification-banner_link--error-text {
|
|
44
|
+
@apply text-error;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
@import './notification-banner.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-notification-banner {
|
|
2
|
-
@apply
|
|
4
|
+
@apply util-notification-banner util-notification-banner-text;
|
|
3
5
|
border-radius: var(--notification-banner-border-radius);
|
|
4
6
|
&.ds-notification-banner--dense,
|
|
5
7
|
.ds-dense & {
|
|
@@ -12,34 +14,52 @@
|
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
16
|
&.ds-notification-banner--info {
|
|
15
|
-
@apply
|
|
17
|
+
@apply util-notification-banner--info;
|
|
16
18
|
}
|
|
17
19
|
&.ds-notification-banner--success {
|
|
18
|
-
@apply
|
|
20
|
+
@apply util-notification-banner--success;
|
|
19
21
|
.ds-notification-banner__link {
|
|
20
22
|
&:link:not(:focus) {
|
|
21
23
|
@apply text-success;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
|
-
&.ds-notification-banner--error
|
|
26
|
-
|
|
27
|
+
&.ds-notification-banner--error,
|
|
28
|
+
&.ds-notification-banner--error-group {
|
|
29
|
+
@apply util-notification-banner--error;
|
|
27
30
|
.ds-notification-banner__link {
|
|
28
31
|
&:link:not(:focus) {
|
|
29
32
|
@apply text-error;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
}
|
|
36
|
+
&.ds-notification-banner--error-group {
|
|
37
|
+
@apply border-0 border-l-5;
|
|
38
|
+
.ds-notification-error-group-banner__content {
|
|
39
|
+
@apply flex gap-3 w-full p-3 md:p-4 bg-base-200 print:bg-white;
|
|
40
|
+
.ds-notification-banner__icon--error-group {
|
|
41
|
+
@apply text-base-content-invert font-bold bg-error text-3xl leading-10 text-center
|
|
42
|
+
rounded-3xl md:min-h-10 min-w-10 h-fit
|
|
43
|
+
print:bg-white print:border-2 print:border-base-content print:text-base-content;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.ds-notification-banner__text-error-group {
|
|
47
|
+
@apply mt-1;
|
|
48
|
+
.ds-list {
|
|
49
|
+
@apply mb-2;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
33
53
|
}
|
|
34
54
|
.ds-notification-banner__header {
|
|
35
55
|
@apply text-white p-0 m-0 text-base md:text-lg
|
|
36
|
-
|
|
56
|
+
util-notification-banner__header;
|
|
37
57
|
}
|
|
38
58
|
.ds-notification-banner__title {
|
|
39
59
|
@apply border-b border-transparent pt-1 px-4 sm:px-5 pb-2 font-bold;
|
|
40
60
|
}
|
|
41
61
|
.ds-notification-banner__content {
|
|
42
|
-
@apply
|
|
62
|
+
@apply util-notification-banner__content util-notification-banner__content-text;
|
|
43
63
|
& > * {
|
|
44
64
|
@apply box-border max-w-xl;
|
|
45
65
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
|
|
2
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
3
|
+
@import './notification-banner.common.css';
|
|
4
|
+
|
|
5
|
+
.ds-notification-banner {
|
|
6
|
+
@apply util-notification-banner;
|
|
7
|
+
}
|
|
8
|
+
.ds-notification-banner__text {
|
|
9
|
+
@apply util-notification-banner-text;
|
|
10
|
+
}
|
|
11
|
+
.ds-notification-banner--info {
|
|
12
|
+
@apply util-notification-banner--info;
|
|
13
|
+
}
|
|
14
|
+
.ds-notification-banner--error {
|
|
15
|
+
@apply util-notification-banner--error;
|
|
16
|
+
}
|
|
17
|
+
.ds-notification-banner--success {
|
|
18
|
+
@apply util-notification-banner--success;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ds-notification-banner__header {
|
|
22
|
+
@apply util-notification-banner__header;
|
|
23
|
+
}
|
|
24
|
+
.ds-notification-banner__title__text {
|
|
25
|
+
@apply util-notification-banner__title-text px-2 font-bold;
|
|
26
|
+
@apply mb-0 !important;
|
|
27
|
+
}
|
|
28
|
+
.ds-notification-banner__content {
|
|
29
|
+
@apply util-notification-banner__content;
|
|
30
|
+
}
|
|
31
|
+
.ds-notification-banner__content__text {
|
|
32
|
+
@apply util-notification-banner__content-text;
|
|
33
|
+
}
|
|
34
|
+
.ds-notification-banner__link__text {
|
|
35
|
+
@apply util-notification-banner_link-text;
|
|
36
|
+
}
|
|
37
|
+
.ds-notification-banner__link--success__text {
|
|
38
|
+
@apply util-notification-banner_link--success-text;
|
|
39
|
+
}
|
|
40
|
+
.ds-notification-banner__link--error__text {
|
|
41
|
+
@apply util-notification-banner_link--error-text;
|
|
42
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.ds-pagination {
|
|
2
|
-
@apply flex flex-wrap items-center justify-items-center justify-between
|
|
2
|
+
@apply flex flex-wrap items-center justify-items-center justify-between
|
|
3
|
+
gap-y-2 md:gap-y-4 gap-x-6 mb-4 md:mb-8;
|
|
3
4
|
&.ds-pagination--sm {
|
|
4
5
|
.ds-pagination__label,
|
|
5
6
|
.ds-pagination__item--current {
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
@apply text-base-content md:leading-normal;
|
|
18
19
|
}
|
|
19
20
|
.ds-pagination__list {
|
|
20
|
-
@apply flex items-center;
|
|
21
|
+
@apply flex items-center flex-wrap;
|
|
21
22
|
}
|
|
22
23
|
.ds-pagination__item {
|
|
23
24
|
@apply inline-block p-2 m-0;
|
|
@@ -32,6 +33,14 @@
|
|
|
32
33
|
@apply font-bold;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
36
|
+
@media (max-width: 639.9px) {
|
|
37
|
+
.ds-pagination__item {
|
|
38
|
+
@apply py-0;
|
|
39
|
+
&.ds-pagination__item--current {
|
|
40
|
+
@apply flex items-center justify-center min-h-12 min-w-12;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
35
44
|
|
|
36
45
|
/* overrides */
|
|
37
46
|
|
|
@@ -69,6 +78,13 @@
|
|
|
69
78
|
}
|
|
70
79
|
}
|
|
71
80
|
.ds-link {
|
|
72
|
-
@apply flex items-center no-underline;
|
|
81
|
+
@apply flex items-center justify-center no-underline;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
@media (max-width: 639.9px) {
|
|
85
|
+
.ds-pagination__item {
|
|
86
|
+
.ds-link {
|
|
87
|
+
@apply min-h-12 min-w-12;
|
|
88
|
+
}
|
|
73
89
|
}
|
|
74
90
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-panel {
|
|
5
|
+
@apply mb-4 p-8 border-5 border-transparent
|
|
6
|
+
print:p-4 print:border-4 print:text-base-content print:bg-white;
|
|
7
|
+
border-radius: var(--panel-border-radius);
|
|
8
|
+
}
|
|
9
|
+
.util-panel-text {
|
|
10
|
+
@apply text-white text-center;
|
|
11
|
+
}
|
|
12
|
+
.util-panel--success {
|
|
13
|
+
@apply bg-success print:border-success;
|
|
14
|
+
}
|
|
15
|
+
.util-panel__title {
|
|
16
|
+
@apply mx-auto mt-0;
|
|
17
|
+
margin-bottom: var(--panel__title-margin-bottom);
|
|
18
|
+
}
|
|
19
|
+
.util-panel__title-text {
|
|
20
|
+
font-size: var(--panel__title-font-size);
|
|
21
|
+
line-height: var(--panel__title-line-height);
|
|
22
|
+
font-weight: var(--panel__title-font-weight);
|
|
23
|
+
letter-spacing: var(--panel__title-letter-spacing);
|
|
24
|
+
}
|
|
25
|
+
.util-panel__body-text {
|
|
26
|
+
font-size: var(--panel__body-font-size);
|
|
27
|
+
line-height: var(--panel__body-line-height);
|
|
28
|
+
letter-spacing: var(--panel__body-letter-spacing);
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/components/panel.css
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
+
@import './panel.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-panel {
|
|
2
|
-
@apply box-border
|
|
3
|
-
print:p-4 text-white
|
|
4
|
-
print:border-4 print:text-base-content print:bg-white;
|
|
5
|
-
border-radius: var(--panel-border-radius);
|
|
4
|
+
@apply box-border util-panel util-panel-text;
|
|
6
5
|
&.ds-panel--success {
|
|
7
|
-
@apply
|
|
6
|
+
@apply util-panel--success;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
9
|
.ds-panel__title {
|
|
11
|
-
@apply
|
|
12
|
-
font-size: var(--panel__title-font-size);
|
|
13
|
-
line-height: var(--panel__title-line-height);
|
|
14
|
-
margin-bottom: var(--panel__title-margin-bottom);
|
|
15
|
-
font-weight: var(--panel__title-font-weight);
|
|
16
|
-
letter-spacing: var(--panel__title-letter-spacing);
|
|
10
|
+
@apply util-panel__title util-panel__title-text;
|
|
17
11
|
}
|
|
18
12
|
.ds-panel__body {
|
|
19
|
-
@apply break-words;
|
|
20
|
-
font-size: var(--panel__body-font-size);
|
|
21
|
-
line-height: var(--panel__body-line-height);
|
|
13
|
+
@apply break-words util-panel__body-text;
|
|
22
14
|
margin: var(--panel__body-margin);
|
|
23
|
-
letter-spacing: var(--panel__body-letter-spacing);
|
|
24
15
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import './panel.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-panel {
|
|
4
|
+
@apply util-panel;
|
|
5
|
+
}
|
|
6
|
+
.ds-panel__text {
|
|
7
|
+
@apply util-panel-text;
|
|
8
|
+
}
|
|
9
|
+
.ds-panel--success {
|
|
10
|
+
@apply util-panel--success;
|
|
11
|
+
}
|
|
12
|
+
.ds-panel__title {
|
|
13
|
+
@apply util-panel__title;
|
|
14
|
+
}
|
|
15
|
+
.ds-panel__title__text {
|
|
16
|
+
@apply util-panel-text util-panel__title-text;
|
|
17
|
+
line-height: calc(
|
|
18
|
+
var(--panel__title-line-height) * var(--panel__title-font-size)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
.ds-panel__body__text {
|
|
22
|
+
@apply util-panel-text util-panel__body-text;
|
|
23
|
+
line-height: calc(
|
|
24
|
+
var(--panel__body-line-height) * var(--panel__body-font-size)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
2
|
+
/* stylelint-disable digigov/enforce-class-selector-namespace */
|
|
3
|
+
|
|
4
|
+
@tailwind utilities;
|
|
5
|
+
|
|
6
|
+
@layer utilities {
|
|
7
|
+
.util-phase-banner {
|
|
8
|
+
@apply py-2 mb-4;
|
|
9
|
+
}
|
|
10
|
+
.util-phase-banner--underline {
|
|
11
|
+
@apply border-b border-base-500;
|
|
12
|
+
}
|
|
13
|
+
.util-phase-banner__text {
|
|
14
|
+
@apply text-base-content;
|
|
15
|
+
}
|
|
16
|
+
.util-phase-banner__tag {
|
|
17
|
+
@apply bg-info px-2 py-1
|
|
18
|
+
print:bg-white print:border-2 print:border-info print:text-info print:mr-4;
|
|
19
|
+
}
|
|
20
|
+
.util-phase-banner__tag-text {
|
|
21
|
+
@apply text-white font-bold uppercase text-sm;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './phase-banner.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-phase-banner-header {
|
|
2
4
|
@apply bg-focus top-0 z-30
|
|
3
5
|
print:bg-white print:border-focus print:border-2 print:px-4;
|
|
@@ -6,9 +8,9 @@
|
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
.ds-phase-banner {
|
|
9
|
-
@apply
|
|
11
|
+
@apply util-phase-banner;
|
|
10
12
|
&.ds-phase-banner--underline {
|
|
11
|
-
@apply
|
|
13
|
+
@apply util-phase-banner--underline;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
16
|
.ds-phase-banner__content {
|
|
@@ -16,9 +18,8 @@
|
|
|
16
18
|
font-size: var(--phase-banner__content-font-size);
|
|
17
19
|
}
|
|
18
20
|
.ds-phase-banner__tag {
|
|
19
|
-
@apply
|
|
20
|
-
print:bg-white print:border-2 print:border-info print:text-info print:mr-4;
|
|
21
|
+
@apply util-phase-banner__tag util-phase-banner__tag-text mr-2 inline-block font-sans tracking-widest;
|
|
21
22
|
}
|
|
22
|
-
.ds-phase-
|
|
23
|
-
@apply table-cell
|
|
23
|
+
.ds-phase-banner__message {
|
|
24
|
+
@apply table-cell util-phase-banner__text;
|
|
24
25
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* stylelint-disable comment-empty-line-before */
|
|
2
|
+
/* stylelint-disable digigov/nest-related-rules */
|
|
3
|
+
@import './phase-banner.common.css';
|
|
4
|
+
|
|
5
|
+
.ds-phase-banner {
|
|
6
|
+
@apply util-phase-banner flex flex-row flex-nowrap m-0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ds-phase-banner--underline {
|
|
10
|
+
@apply util-phase-banner--underline;
|
|
11
|
+
}
|
|
12
|
+
.ds-phase-banner__content {
|
|
13
|
+
@apply flex-1 flex flex-row flex-nowrap items-center;
|
|
14
|
+
}
|
|
15
|
+
.ds-phase-banner__content__text {
|
|
16
|
+
@apply flex-1;
|
|
17
|
+
}
|
|
18
|
+
.ds-phase-banner__tag {
|
|
19
|
+
@apply util-phase-banner__tag mr-2;
|
|
20
|
+
}
|
|
21
|
+
.ds-phase-banner__tag__text {
|
|
22
|
+
@apply util-phase-banner__tag-text;
|
|
23
|
+
}
|
|
24
|
+
.ds-phase-banner__message {
|
|
25
|
+
@apply mr-2;
|
|
26
|
+
}
|
|
27
|
+
.ds-phase-banner__message__text {
|
|
28
|
+
@apply util-phase-banner__text;
|
|
29
|
+
font-size: var(--phase-banner__content-font-size);
|
|
30
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/** @type {import('postcss-load-config').Config} */
|
|
2
2
|
const config = {
|
|
3
3
|
plugins: [
|
|
4
|
-
require(
|
|
5
|
-
require(
|
|
6
|
-
require(
|
|
7
|
-
require(
|
|
8
|
-
require(
|
|
4
|
+
require('postcss-import'),
|
|
5
|
+
require('tailwindcss/nesting'),
|
|
6
|
+
require('tailwindcss')('./src/components/tailwind.config.js'),
|
|
7
|
+
require('autoprefixer'),
|
|
8
|
+
require('postcss-sort-media-queries'),
|
|
9
|
+
require('cssnano')({
|
|
9
10
|
preset: [
|
|
10
|
-
|
|
11
|
+
'default',
|
|
11
12
|
{
|
|
12
13
|
mergeRules: false,
|
|
13
14
|
},
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-radios__item {
|
|
5
|
+
@apply relative mb-4 min-h-10;
|
|
6
|
+
}
|
|
7
|
+
.util-radios__label {
|
|
8
|
+
font-size: var(--radios__label-font-size);
|
|
9
|
+
}
|
|
10
|
+
.util-radios__input {
|
|
11
|
+
@apply absolute z-1 left-0.5 -top-1 m-0 w-10 h-10 opacity-100 bg-base-100 rounded-full;
|
|
12
|
+
width: 40px;
|
|
13
|
+
height: 40px;
|
|
14
|
+
border: 2px solid currentcolor;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './radios.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-radios {
|
|
2
4
|
&.ds-radios--dense,
|
|
3
5
|
ds-dense & {
|
|
@@ -16,22 +18,14 @@
|
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
.ds-radios__item {
|
|
19
|
-
@apply
|
|
20
|
-
min-height: 40px;
|
|
21
|
+
@apply util-radios__item pl-12 block;
|
|
21
22
|
}
|
|
22
23
|
.ds-radios__label {
|
|
23
|
-
@apply inline-block py-1 px-2 cursor-pointer;
|
|
24
|
-
font-size: var(--radios__label-font-size);
|
|
24
|
+
@apply util-radios__label inline-block py-1 px-2 cursor-pointer;
|
|
25
25
|
}
|
|
26
26
|
.ds-radios__input {
|
|
27
|
-
@apply
|
|
28
|
-
w-10 h-10 opacity-100 cursor-pointer
|
|
29
|
-
bg-base-100;
|
|
27
|
+
@apply util-radios__input cursor-pointer;
|
|
30
28
|
appearance: none;
|
|
31
|
-
width: 40px;
|
|
32
|
-
height: 40px;
|
|
33
|
-
border: 2px solid currentcolor;
|
|
34
|
-
border-radius: 50%;
|
|
35
29
|
&:checked {
|
|
36
30
|
box-shadow:
|
|
37
31
|
inset 0 0 0 6px var(--color-base-100),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import './radios.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-radios__item {
|
|
4
|
+
@apply util-radios__item;
|
|
5
|
+
}
|
|
6
|
+
.ds-radios__label {
|
|
7
|
+
@apply pl-14;
|
|
8
|
+
}
|
|
9
|
+
.ds-radios__input {
|
|
10
|
+
@apply util-radios__input justify-center items-center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ds-radios__input--checked {
|
|
14
|
+
@apply rounded-full bg-black;
|
|
15
|
+
height: 26;
|
|
16
|
+
width: 26;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ds-radios__label__text {
|
|
20
|
+
font-size: var(--label-font-size);
|
|
21
|
+
line-height: 2rem;
|
|
22
|
+
letter-spacing: 0;
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@tailwind utilities;
|
|
2
|
+
|
|
3
|
+
@layer utilities {
|
|
4
|
+
.util-skeleton {
|
|
5
|
+
@apply bg-base-300 w-full max-w-full;
|
|
6
|
+
}
|
|
7
|
+
.util-skeleton--circular {
|
|
8
|
+
@apply rounded-full;
|
|
9
|
+
}
|
|
10
|
+
.util-skeleton--rectangular {
|
|
11
|
+
@apply h-4;
|
|
12
|
+
}
|
|
13
|
+
.util-skeleton--button {
|
|
14
|
+
@apply mb-8 min-h-10 md:min-h-12 px-6
|
|
15
|
+
border-b-2 border-gray-400 flex items-center justify-center;
|
|
16
|
+
}
|
|
17
|
+
.util-skeleton__line {
|
|
18
|
+
@apply bg-base-400 w-full max-w-full max-h-full;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
.
|
|
2
|
-
@apply block bg-base-300 h-auto w-full max-w-full rounded-sm;
|
|
1
|
+
@import './skeleton.common.css';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
.ds-skeleton {
|
|
4
|
+
@apply util-skeleton block h-auto rounded-sm;
|
|
5
5
|
&.ds-skeleton--text {
|
|
6
|
-
/* @apply text-lg; */
|
|
7
6
|
&::before {
|
|
8
7
|
content: '\00a0';
|
|
9
8
|
visibility: hidden;
|
|
@@ -26,16 +25,15 @@
|
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
&.ds-skeleton--circular {
|
|
29
|
-
|
|
28
|
+
@apply util-skeleton--circular;
|
|
30
29
|
}
|
|
31
30
|
&.ds-skeleton--rectangular {
|
|
31
|
+
@apply util-skeleton--rectangular;
|
|
32
32
|
}
|
|
33
33
|
&.ds-skeleton--button {
|
|
34
|
-
@apply
|
|
35
|
-
border-b-2 border-gray-400
|
|
36
|
-
flex items-center justify-center;
|
|
34
|
+
@apply util-skeleton--button py-3 w-fit;
|
|
37
35
|
.ds-skeleton__line {
|
|
38
|
-
@apply
|
|
36
|
+
@apply util-skeleton__line visible;
|
|
39
37
|
&::before {
|
|
40
38
|
content: '\00a0';
|
|
41
39
|
}
|
|
@@ -50,7 +48,6 @@
|
|
|
50
48
|
@apply w-fit;
|
|
51
49
|
}
|
|
52
50
|
&.ds-skeleton--animate {
|
|
53
|
-
/* @apply animate-pulse; */
|
|
54
51
|
position: relative;
|
|
55
52
|
overflow: hidden;
|
|
56
53
|
mask-image: radial-gradient(white, black);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@import './skeleton.common.css';
|
|
2
|
+
|
|
3
|
+
.ds-skeleton {
|
|
4
|
+
@apply util-skeleton min-h-8 flex-1 rounded-md;
|
|
5
|
+
}
|
|
6
|
+
.ds-skeleton--text {
|
|
7
|
+
@apply flex-1 h-4;
|
|
8
|
+
}
|
|
9
|
+
.ds-skeleton--font-xs {
|
|
10
|
+
@apply h-4 mb-3 !important;
|
|
11
|
+
}
|
|
12
|
+
.ds-skeleton--font-sm {
|
|
13
|
+
@apply h-6 mb-4 !important;
|
|
14
|
+
}
|
|
15
|
+
.ds-skeleton--font-md {
|
|
16
|
+
@apply h-10 mb-5 !important;
|
|
17
|
+
}
|
|
18
|
+
.ds-skeleton--font-lg {
|
|
19
|
+
@apply h-14 mb-6 !important;
|
|
20
|
+
}
|
|
21
|
+
.ds-skeleton--font-xl {
|
|
22
|
+
@apply h-16 mb-8 !important;
|
|
23
|
+
}
|
|
24
|
+
.ds-skeleton--circular {
|
|
25
|
+
@apply util-skeleton--circular;
|
|
26
|
+
}
|
|
27
|
+
.ds-skeleton--rectangular {
|
|
28
|
+
@apply util-skeleton--rectangular;
|
|
29
|
+
}
|
|
30
|
+
.ds-skeleton--button {
|
|
31
|
+
@apply util-skeleton--button py-6;
|
|
32
|
+
}
|
|
33
|
+
.ds-skeleton__line {
|
|
34
|
+
@apply util-skeleton__line h-4;
|
|
35
|
+
}
|
|
36
|
+
.ds-skeleton__line--size-default {
|
|
37
|
+
@apply h-4 w-36;
|
|
38
|
+
}
|
|
39
|
+
.ds-skeleton--width-fit-content {
|
|
40
|
+
@apply flex-1;
|
|
41
|
+
}
|
|
42
|
+
.ds-skeleton--animate {
|
|
43
|
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
44
|
+
}
|
|
45
|
+
@keyframes pulse {
|
|
46
|
+
0%,
|
|
47
|
+
100% {
|
|
48
|
+
@apply opacity-100;
|
|
49
|
+
}
|
|
50
|
+
50% {
|
|
51
|
+
@apply opacity-50;
|
|
52
|
+
}
|
|
53
|
+
}
|