@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
package/src/components/nav.css
CHANGED
|
@@ -1,62 +1,61 @@
|
|
|
1
|
+
@import './nav.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-nav {
|
|
2
|
-
@apply
|
|
3
|
-
|
|
4
|
-
@apply
|
|
5
|
-
} */
|
|
6
|
-
.ds-nav__list-item-link,
|
|
7
|
-
.ds-nav__list-item-btn {
|
|
8
|
-
@apply md:no-underline !important;
|
|
4
|
+
@apply util-nav h-auto;
|
|
5
|
+
&.ds-nav--hidden {
|
|
6
|
+
@apply hidden;
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@apply shadow-thick !important;
|
|
17
|
-
.ds-nav__list--horizontal {
|
|
18
|
-
@apply px-0;
|
|
8
|
+
&.ds-nav--drawer {
|
|
9
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4;
|
|
10
|
+
@apply shadow-thick !important;
|
|
11
|
+
.ds-nav__list--horizontal {
|
|
12
|
+
@apply px-0;
|
|
13
|
+
}
|
|
19
14
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
15
|
+
&.ds-nav--drawer-smDown {
|
|
16
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
23
17
|
sm:relative sm:block sm:w-full sm:h-auto sm:z-auto sm:top-auto sm:overflow-visible sm:p-0;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
@apply shadow-thick sm:shadow-none !important;
|
|
19
|
+
.ds-nav__list--horizontal {
|
|
20
|
+
@apply px-0 sm:px-4;
|
|
21
|
+
}
|
|
27
22
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
23
|
+
&.ds-nav--drawer-mdDown {
|
|
24
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
31
25
|
md:relative md:block md:w-full md:h-auto md:z-auto md:top-auto md:overflow-visible md:p-0;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
@apply shadow-thick md:shadow-none !important;
|
|
27
|
+
.ds-nav__list--horizontal {
|
|
28
|
+
@apply px-0 md:px-4;
|
|
29
|
+
}
|
|
35
30
|
}
|
|
36
|
-
}
|
|
37
31
|
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
&.ds-nav--drawer-lgDown {
|
|
33
|
+
@apply fixed w-4/5 h-full z-30 right-0 top-0 overflow-x-auto p-4
|
|
40
34
|
lg:relative lg:block lg:w-full lg:h-auto lg:z-auto lg:top-auto lg:overflow-visible lg:p-0;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
@apply shadow-thick lg:shadow-none !important;
|
|
36
|
+
.ds-nav__list--horizontal {
|
|
37
|
+
@apply px-0 lg:px-4;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
&.ds-nav--border {
|
|
41
|
+
@apply sm:border-b sm:border-base-400;
|
|
42
|
+
}
|
|
43
|
+
.ds-nav__list-item-link,
|
|
44
|
+
.ds-nav__list-item-btn {
|
|
45
|
+
@apply md:no-underline !important;
|
|
44
46
|
}
|
|
45
|
-
}
|
|
46
|
-
.ds-nav--border {
|
|
47
|
-
@apply sm:border-b sm:border-base-400;
|
|
48
47
|
}
|
|
49
48
|
.ds-nav__list {
|
|
50
|
-
@apply
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
@apply util-nav__list static;
|
|
50
|
+
&.ds-nav__list--horizontal {
|
|
51
|
+
@apply sm:mx-auto sm:gap-x-6 sm:py-1 px-4 sm:flex-row;
|
|
52
|
+
.ds-nav__list-item {
|
|
53
|
+
@apply sm:gap-x-6;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&.ds-nav__list--full-width {
|
|
57
|
+
@apply util-nav__list--full-width;
|
|
56
58
|
}
|
|
57
|
-
}
|
|
58
|
-
.ds-nav__list--full-width {
|
|
59
|
-
@apply max-w-none;
|
|
60
59
|
}
|
|
61
60
|
.ds-nav__list-item {
|
|
62
61
|
@apply text-base-content font-normal py-1;
|
|
@@ -66,7 +65,9 @@
|
|
|
66
65
|
@apply text-left;
|
|
67
66
|
&:focus {
|
|
68
67
|
@apply bg-focus text-base-content outline-none;
|
|
69
|
-
box-shadow:
|
|
68
|
+
box-shadow:
|
|
69
|
+
0 -2px var(--color-focus),
|
|
70
|
+
0 4px var(--color-base-content);
|
|
70
71
|
}
|
|
71
72
|
&:hover:not(:focus) {
|
|
72
73
|
@apply underline !important;
|
|
@@ -78,30 +79,33 @@
|
|
|
78
79
|
@apply font-semibold;
|
|
79
80
|
}
|
|
80
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
|
+
}
|
|
81
85
|
.ds-nav-menu {
|
|
82
86
|
@apply flex w-full;
|
|
83
|
-
|
|
84
|
-
.ds-nav-menu--hidden {
|
|
85
|
-
@apply hidden;
|
|
86
|
-
}
|
|
87
|
-
.ds-nav-menu--horizontal {
|
|
88
|
-
@apply sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-base-100;
|
|
89
|
-
.ds-nav-menu__content-list {
|
|
90
|
-
@apply sm:grid-rows-1 sm:grid-cols-3;
|
|
91
|
-
}
|
|
92
|
-
.ds-nav-menu__title {
|
|
93
|
-
@apply hidden sm:block;
|
|
94
|
-
+ .ds-nav-menu__content > .ds-nav-menu__content-list {
|
|
95
|
-
@apply sm:grid-cols-2;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.ds-nav-menu--vertical {
|
|
100
|
-
.ds-nav-menu__title {
|
|
87
|
+
&.ds-nav-menu--hidden {
|
|
101
88
|
@apply hidden;
|
|
102
89
|
}
|
|
103
|
-
|
|
104
|
-
@apply
|
|
90
|
+
&.ds-nav-menu--horizontal {
|
|
91
|
+
@apply sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-base-100;
|
|
92
|
+
.ds-nav-menu__content-list {
|
|
93
|
+
@apply sm:grid-rows-1 sm:grid-cols-3;
|
|
94
|
+
}
|
|
95
|
+
.ds-nav-menu__title {
|
|
96
|
+
@apply hidden sm:block;
|
|
97
|
+
+ .ds-nav-menu__content > .ds-nav-menu__content-list {
|
|
98
|
+
@apply sm:grid-cols-2;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
&.ds-nav-menu--vertical {
|
|
103
|
+
.ds-nav-menu__title {
|
|
104
|
+
@apply hidden;
|
|
105
|
+
}
|
|
106
|
+
.ds-nav-menu__content-list {
|
|
107
|
+
@apply py-2 sm:py-4;
|
|
108
|
+
}
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
111
|
.ds-nav-menu__content-list {
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
@apply mb-2 md:mb-0;
|
|
122
126
|
}
|
|
123
127
|
}
|
|
128
|
+
|
|
124
129
|
/* .ds-nav__list,
|
|
125
130
|
.ds-grid {
|
|
126
131
|
.ds-drawer__heading {
|
|
@@ -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,6 +1,10 @@
|
|
|
1
|
+
@import './notification-banner.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-notification-banner {
|
|
2
|
-
@apply
|
|
3
|
-
|
|
4
|
+
@apply util-notification-banner util-notification-banner-text;
|
|
5
|
+
border-radius: var(--notification-banner-border-radius);
|
|
6
|
+
&.ds-notification-banner--dense,
|
|
7
|
+
.ds-dense & {
|
|
4
8
|
@apply border-4 mb-4 md:mb-5;
|
|
5
9
|
.ds-notification-banner__title {
|
|
6
10
|
@apply px-2 sm:px-3 pb-1;
|
|
@@ -9,35 +13,53 @@
|
|
|
9
13
|
@apply p-3 md:p-4;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
&.ds-notification-banner--info {
|
|
17
|
+
@apply util-notification-banner--info;
|
|
18
|
+
}
|
|
19
|
+
&.ds-notification-banner--success {
|
|
20
|
+
@apply util-notification-banner--success;
|
|
21
|
+
.ds-notification-banner__link {
|
|
22
|
+
&:link:not(:focus) {
|
|
23
|
+
@apply text-success;
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
&.ds-notification-banner--error,
|
|
28
|
+
&.ds-notification-banner--error-group {
|
|
29
|
+
@apply util-notification-banner--error;
|
|
30
|
+
.ds-notification-banner__link {
|
|
31
|
+
&:link:not(:focus) {
|
|
32
|
+
@apply text-error;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
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
|
+
}
|
|
29
51
|
}
|
|
30
52
|
}
|
|
31
53
|
}
|
|
32
54
|
.ds-notification-banner__header {
|
|
33
55
|
@apply text-white p-0 m-0 text-base md:text-lg
|
|
34
|
-
|
|
56
|
+
util-notification-banner__header;
|
|
35
57
|
}
|
|
36
58
|
.ds-notification-banner__title {
|
|
37
59
|
@apply border-b border-transparent pt-1 px-4 sm:px-5 pb-2 font-bold;
|
|
38
60
|
}
|
|
39
61
|
.ds-notification-banner__content {
|
|
40
|
-
@apply
|
|
62
|
+
@apply util-notification-banner__content util-notification-banner__content-text;
|
|
41
63
|
& > * {
|
|
42
64
|
@apply box-border max-w-xl;
|
|
43
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,12 @@
|
|
|
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;
|
|
4
|
+
&.ds-pagination--sm {
|
|
5
|
+
.ds-pagination__label,
|
|
6
|
+
.ds-pagination__item--current {
|
|
7
|
+
@apply md:text-base text-sm;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
3
10
|
.ds-pagination__label {
|
|
4
11
|
@apply md:text-lg text-base;
|
|
5
12
|
}
|
|
@@ -7,17 +14,11 @@
|
|
|
7
14
|
@apply md:text-lg text-base;
|
|
8
15
|
}
|
|
9
16
|
}
|
|
10
|
-
.ds-pagination--sm {
|
|
11
|
-
.ds-pagination__label,
|
|
12
|
-
.ds-pagination__item--current {
|
|
13
|
-
@apply md:text-base text-sm;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
17
|
.ds-pagination__label {
|
|
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;
|
|
@@ -27,49 +28,63 @@
|
|
|
27
28
|
&:last-child {
|
|
28
29
|
@apply pr-0;
|
|
29
30
|
}
|
|
31
|
+
&.ds-pagination__item--current,
|
|
32
|
+
&.ds-pagination__item--dots {
|
|
33
|
+
@apply font-bold;
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
|
-
.
|
|
32
|
-
.ds-pagination__item
|
|
33
|
-
|
|
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
|
+
}
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
/* overrides */
|
|
37
46
|
|
|
38
47
|
.ds-pagination {
|
|
48
|
+
&.ds-pagination--sm {
|
|
49
|
+
.ds-label,
|
|
50
|
+
.ds-select {
|
|
51
|
+
@apply md:text-base text-sm;
|
|
52
|
+
}
|
|
53
|
+
.ds-pagination__list {
|
|
54
|
+
.ds-link {
|
|
55
|
+
@apply md:text-base text-sm !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
39
59
|
.ds-label {
|
|
40
60
|
@apply text-base-content md:leading-normal flex-row items-center gap-2 md:text-lg text-base;
|
|
41
61
|
}
|
|
42
62
|
.ds-select {
|
|
43
|
-
text-indent: 0px;
|
|
44
63
|
@apply flex text-base-content md:leading-normal border md:text-lg text-base;
|
|
64
|
+
text-indent: 0;
|
|
45
65
|
&:focus {
|
|
46
|
-
-webkit-box-shadow: inset 0 0 0 1px;
|
|
47
66
|
box-shadow: inset 0 0 0 1px;
|
|
48
67
|
}
|
|
49
68
|
}
|
|
50
69
|
}
|
|
51
|
-
.ds-
|
|
52
|
-
|
|
53
|
-
.ds-select {
|
|
54
|
-
@apply md:text-base text-sm;
|
|
55
|
-
}
|
|
56
|
-
.ds-pagination__list {
|
|
70
|
+
.ds-pagination__item {
|
|
71
|
+
&.ds-pagination__item--inactive {
|
|
57
72
|
.ds-link {
|
|
58
|
-
@apply
|
|
73
|
+
@apply text-base-800;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
.ds-svg-icon {
|
|
76
|
+
fill: var(--color-base-800);
|
|
77
|
+
}
|
|
59
78
|
}
|
|
60
79
|
}
|
|
61
|
-
}
|
|
62
|
-
.ds-pagination__item {
|
|
63
80
|
.ds-link {
|
|
64
|
-
@apply flex items-center no-underline;
|
|
81
|
+
@apply flex items-center justify-center no-underline;
|
|
65
82
|
}
|
|
66
83
|
}
|
|
67
|
-
|
|
68
|
-
.ds-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.ds-svg-icon {
|
|
72
|
-
fill: var(--color-base-800);
|
|
84
|
+
@media (max-width: 639.9px) {
|
|
85
|
+
.ds-pagination__item {
|
|
86
|
+
.ds-link {
|
|
87
|
+
@apply min-h-12 min-w-12;
|
|
73
88
|
}
|
|
74
89
|
}
|
|
75
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,23 +1,15 @@
|
|
|
1
|
+
@import './panel.common.css';
|
|
2
|
+
|
|
1
3
|
.ds-panel {
|
|
2
|
-
@apply box-border
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
.ds-panel--success {
|
|
7
|
-
@apply bg-success print:border-success;
|
|
4
|
+
@apply box-border util-panel util-panel-text;
|
|
5
|
+
&.ds-panel--success {
|
|
6
|
+
@apply util-panel--success;
|
|
7
|
+
}
|
|
8
8
|
}
|
|
9
9
|
.ds-panel__title {
|
|
10
|
-
@apply
|
|
11
|
-
font-size: var(--panel__title-font-size);
|
|
12
|
-
line-height:var(--panel__title-line-height);
|
|
13
|
-
margin-bottom:var(--panel__title-margin-bottom);
|
|
14
|
-
font-weight: var(--panel__title-font-weight);
|
|
15
|
-
letter-spacing: var(--panel__title-letter-spacing);
|
|
10
|
+
@apply util-panel__title util-panel__title-text;
|
|
16
11
|
}
|
|
17
12
|
.ds-panel__body {
|
|
18
|
-
@apply break-words;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
margin:var(--panel__body-margin);
|
|
22
|
-
letter-spacing: var(--panel__body-letter-spacing);
|
|
23
|
-
}
|
|
13
|
+
@apply break-words util-panel__body-text;
|
|
14
|
+
margin: var(--panel__body-margin);
|
|
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,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
@import './phase-banner.common.css';
|
|
2
|
+
|
|
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;
|
|
4
6
|
.ds-phase-banner {
|
|
@@ -6,19 +8,18 @@
|
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
.ds-phase-banner {
|
|
9
|
-
@apply
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
@apply util-phase-banner;
|
|
12
|
+
&.ds-phase-banner--underline {
|
|
13
|
+
@apply util-phase-banner--underline;
|
|
14
|
+
}
|
|
13
15
|
}
|
|
14
16
|
.ds-phase-banner__content {
|
|
15
|
-
font-size: var(--phase-banner__content-font-size);
|
|
16
17
|
@apply table;
|
|
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
|
}
|