@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.
Files changed (154) hide show
  1. package/dist/base/index.css +1 -1
  2. package/dist/base.js +1 -1
  3. package/dist/components.js +1 -1
  4. package/dist/digigov.css +3 -3
  5. package/dist/utilities/index.css +1 -1
  6. package/dist/utilities.js +1 -1
  7. package/index.js +99 -69
  8. package/package.json +17 -13
  9. package/postcss.config.js +4 -3
  10. package/src/base/base.css +1 -1
  11. package/src/base/index.css +6 -5
  12. package/src/base/index.native.css +0 -0
  13. package/src/base/postcss.config.js +11 -10
  14. package/src/base/tailwind.config.js +4 -11
  15. package/src/components/accordion.common.css +29 -0
  16. package/src/components/accordion.css +63 -58
  17. package/src/components/accordion.native.css +27 -0
  18. package/src/components/admin-header.css +2 -19
  19. package/src/components/admin-layout.css +13 -22
  20. package/src/components/autocomplete.css +93 -48
  21. package/src/components/back-to-top.css +3 -4
  22. package/src/components/blockquote.common.css +14 -0
  23. package/src/components/blockquote.css +9 -0
  24. package/src/components/blockquote.native.css +14 -0
  25. package/src/components/bottom-info.css +2 -1
  26. package/src/components/breadcrumbs.css +17 -8
  27. package/src/components/button.common.css +62 -0
  28. package/src/components/button.css +57 -71
  29. package/src/components/button.native.css +55 -0
  30. package/src/components/card.common.css +33 -0
  31. package/src/components/card.css +65 -54
  32. package/src/components/card.native.css +29 -0
  33. package/src/components/checkboxes.common.css +16 -0
  34. package/src/components/checkboxes.css +26 -31
  35. package/src/components/checkboxes.native.css +27 -0
  36. package/src/components/chip.common.css +19 -0
  37. package/src/components/chip.css +32 -32
  38. package/src/components/chip.native.css +15 -0
  39. package/src/components/code.css +128 -0
  40. package/src/components/components.css +2 -2
  41. package/src/components/copy-to-clipboard.css +27 -26
  42. package/src/components/copy-to-clipboard.native.css +26 -0
  43. package/src/components/details.common.css +26 -0
  44. package/src/components/details.css +14 -15
  45. package/src/components/details.native.css +34 -0
  46. package/src/components/dev-theme.css +2 -3
  47. package/src/components/drawer.css +63 -47
  48. package/src/components/dropdown.common.css +23 -0
  49. package/src/components/dropdown.css +57 -51
  50. package/src/components/dropdown.native.css +27 -0
  51. package/src/components/experimental.css +12 -12
  52. package/src/components/fillable.css +4 -4
  53. package/src/components/filter.css +76 -32
  54. package/src/components/footer.css +36 -21
  55. package/src/components/form.common.css +81 -0
  56. package/src/components/form.css +96 -54
  57. package/src/components/form.native.css +182 -0
  58. package/src/components/full-page-background.css +1 -1
  59. package/src/components/header.common.css +35 -0
  60. package/src/components/header.css +43 -46
  61. package/src/components/header.native.css +29 -0
  62. package/src/components/hidden.css +17 -17
  63. package/src/components/index.css +49 -47
  64. package/src/components/kitchensink.css +33 -33
  65. package/src/components/layout.common.css +36 -0
  66. package/src/components/layout.css +40 -41
  67. package/src/components/layout.native.css +40 -0
  68. package/src/components/loader.common.css +7 -0
  69. package/src/components/loader.css +31 -29
  70. package/src/components/loader.native.css +5 -0
  71. package/src/components/masthead.css +56 -55
  72. package/src/components/misc.css +37 -15
  73. package/src/components/modal.common.css +16 -0
  74. package/src/components/modal.css +33 -22
  75. package/src/components/modal.native.css +18 -0
  76. package/src/components/nav.common.css +22 -0
  77. package/src/components/nav.css +72 -67
  78. package/src/components/nav.native.css +39 -0
  79. package/src/components/notification-banner.common.css +46 -0
  80. package/src/components/notification-banner.css +41 -19
  81. package/src/components/notification-banner.native.css +42 -0
  82. package/src/components/pagination.css +44 -29
  83. package/src/components/panel.common.css +30 -0
  84. package/src/components/panel.css +10 -18
  85. package/src/components/panel.native.css +26 -0
  86. package/src/components/phase-banner.common.css +23 -0
  87. package/src/components/phase-banner.css +11 -10
  88. package/src/components/phase-banner.native.css +30 -0
  89. package/src/components/postcss.config.js +7 -6
  90. package/src/components/radios.common.css +16 -0
  91. package/src/components/radios.css +27 -30
  92. package/src/components/radios.native.css +23 -0
  93. package/src/components/skeleton.common.css +20 -0
  94. package/src/components/skeleton.css +82 -0
  95. package/src/components/skeleton.native.css +53 -0
  96. package/src/components/skiplink.css +2 -2
  97. package/src/components/stack.common.css +67 -0
  98. package/src/components/stack.css +66 -64
  99. package/src/components/stack.native.css +68 -0
  100. package/src/components/stepnav.css +33 -29
  101. package/src/components/summary-list.common.css +93 -0
  102. package/src/components/summary-list.css +105 -28
  103. package/src/components/summary-list.native.css +97 -0
  104. package/src/components/svg-icons.common.css +56 -0
  105. package/src/components/svg-icons.css +78 -80
  106. package/src/components/svg-icons.native.css +54 -0
  107. package/src/components/table.css +192 -178
  108. package/src/components/tabs.css +51 -67
  109. package/src/components/task-list.css +18 -18
  110. package/src/components/test.css +7 -0
  111. package/src/components/timeline.css +4 -3
  112. package/src/components/typography.common.css +135 -0
  113. package/src/components/typography.css +103 -191
  114. package/src/components/typography.native.css +128 -0
  115. package/src/components/warning-text.common.css +23 -0
  116. package/src/components/warning-text.css +15 -13
  117. package/src/components/warning-text.native.css +22 -0
  118. package/src/index.native.css +26 -0
  119. package/src/pages/index.js +1 -1
  120. package/src/utilities/gap.css +141 -0
  121. package/src/utilities/index.css +6 -1655
  122. package/src/utilities/index.native.css +6 -0
  123. package/src/utilities/layout.css +231 -0
  124. package/src/utilities/layout.native.css +278 -0
  125. package/src/utilities/margin.css +4299 -0
  126. package/src/utilities/padding.css +4299 -0
  127. package/src/utilities/postcss.config.js +7 -6
  128. package/src/utilities/print.css +11 -0
  129. package/src/utilities/utilities.css +3 -1661
  130. package/tailwind.config.js +102 -104
  131. package/theming.js +121 -0
  132. package/defaultTheme/accordion.json +0 -8
  133. package/defaultTheme/back-to-top.json +0 -27
  134. package/defaultTheme/brandConfig.json +0 -135
  135. package/defaultTheme/breadcrumbs.json +0 -8
  136. package/defaultTheme/button.json +0 -81
  137. package/defaultTheme/card.json +0 -12
  138. package/defaultTheme/footer.json +0 -8
  139. package/defaultTheme/form.json +0 -15
  140. package/defaultTheme/globals.json +0 -71
  141. package/defaultTheme/index.js +0 -27
  142. package/defaultTheme/misc.json +0 -48
  143. package/defaultTheme/panel.json +0 -43
  144. package/defaultTheme/phase-banner.json +0 -8
  145. package/defaultTheme/radios.json +0 -8
  146. package/defaultTheme/summary-list.json +0 -8
  147. package/defaultTheme/typography.json +0 -295
  148. package/src/pages/admin-filtering-data.js +0 -160
  149. package/src/pages/admin.js +0 -61
  150. package/src/pages/dropdown.js +0 -249
  151. package/src/pages/form.js +0 -400
  152. package/src/pages/pagination.js +0 -124
  153. package/src/pages/table.js +0 -308
  154. package/themes.plugin.js +0 -148
@@ -0,0 +1,128 @@
1
+ /* stylelint-disable digigov/nest-related-rules */
2
+ @import './typography.common.css';
3
+
4
+ .ds-\!-font-weight-bold__text {
5
+ @apply util-font-weight-bold-text;
6
+ }
7
+
8
+ /* Heading */
9
+ .ds-heading-xl {
10
+ @apply util-heading-xl;
11
+ }
12
+ .ds-heading-xl__text {
13
+ @apply util-heading-xl-text;
14
+ margin-bottom: var(--heading-xl-margin-bottom);
15
+ line-height: calc(
16
+ var(--heading-xl-line-height) * var(--heading-xl-font-size)
17
+ );
18
+ }
19
+ .ds-heading-lg__text {
20
+ @apply util-heading-lg-text;
21
+ margin-bottom: var(--heading-lg-margin-bottom);
22
+ line-height: calc(
23
+ var(--heading-lg-line-height) * var(--heading-lg-font-size)
24
+ );
25
+ }
26
+ .ds-heading-md__text {
27
+ @apply util-heading-md-text;
28
+ margin-bottom: var(--heading-md-margin-bottom);
29
+ line-height: calc(
30
+ var(--heading-md-line-height) * var(--heading-md-font-size)
31
+ );
32
+ }
33
+ .ds-heading-sm__text {
34
+ @apply util-heading-sm-text;
35
+ margin-bottom: var(--heading-sm-margin-bottom);
36
+ line-height: calc(
37
+ var(--heading-sm-line-height) * var(--heading-sm-font-size)
38
+ );
39
+ }
40
+ .ds-heading-xs__text {
41
+ @apply util-heading-xs-text;
42
+ margin-bottom: var(--heading-xs-margin-bottom);
43
+ line-height: calc(
44
+ var(--heading-xs-line-height) * var(--heading-xs-font-size)
45
+ );
46
+ }
47
+
48
+ /* Paragraph */
49
+ .ds-body__text {
50
+ @apply util-body-text;
51
+ line-height: calc(var(--body-line-height) * var(--body-font-size));
52
+ }
53
+ .ds-body--lg__text {
54
+ @apply util-body-lg-text;
55
+ line-height: calc(var(--body--lg-line-height) * var(--body--lg-font-size));
56
+ }
57
+ .ds-body--sm__text {
58
+ @apply util-body-sm-text;
59
+ line-height: calc(var(--body__sm-line-height) * var(--body__sm-font-size));
60
+ }
61
+
62
+ /* Hint */
63
+ .ds-hint {
64
+ @apply util-hint flex flex-row;
65
+ }
66
+ .ds-hint__text {
67
+ @apply util-hint-text;
68
+ line-height: calc(var(--hint-line-height) * var(--hint-font-size));
69
+ }
70
+ .ds-hint--lg__text {
71
+ @apply util-hint-lg-text;
72
+ line-height: calc(var(--hint--lg-line-height) * var(--hint--lg-font-size));
73
+ }
74
+ .ds-hint--sm__text {
75
+ @apply util-hint-sm-text;
76
+ line-height: calc(var(--hint--sm-line-height) * var(--hint--sm-font-size));
77
+ }
78
+
79
+ /* Link */
80
+ .ds-link {
81
+ @apply util-link focus:border-b-4 border-b-base-content;
82
+ }
83
+ .ds-link__text {
84
+ @apply util-link-text;
85
+ line-height: calc(var(--link-line-height) * var(--link-font-size));
86
+ }
87
+
88
+ /* HeadingCaption */
89
+ .ds-caption-xl {
90
+ @apply util-caption-xl;
91
+ }
92
+ .ds-caption-xl__text {
93
+ @apply util-caption-xl-text;
94
+ line-height: calc(
95
+ var(--caption-xl-line-height) * var(--caption-xl-font-size)
96
+ );
97
+ }
98
+ .ds-caption-lg {
99
+ @apply util-caption-lg;
100
+ }
101
+ .ds-caption-lg__text {
102
+ @apply util-caption-lg-text;
103
+ line-height: calc(
104
+ var(--caption-lg-line-height) * var(--caption-lg-font-size)
105
+ );
106
+ }
107
+ .ds-caption-md {
108
+ @apply util-caption-md;
109
+ }
110
+ .ds-caption-md__text {
111
+ @apply util-caption-md-text;
112
+ line-height: calc(
113
+ var(--caption-md-line-height) * var(--caption-md-font-size)
114
+ );
115
+ }
116
+
117
+ .ds-list {
118
+ @apply util-list;
119
+ }
120
+ .ds-list__item {
121
+ @apply util-list-item;
122
+ }
123
+ .ds-list--bullet {
124
+ @apply util-list-bullet;
125
+ }
126
+ .ds-list--number {
127
+ @apply util-list-number;
128
+ }
@@ -0,0 +1,23 @@
1
+ /* stylelint-disable digigov/enforce-class-selector-namespace */
2
+
3
+ @tailwind utilities;
4
+
5
+ @layer utilities {
6
+ .util-warning-text {
7
+ @apply flex;
8
+ }
9
+ .util-warning-text-text {
10
+ font-size: var(--warning-text-font-size);
11
+ }
12
+ .util-warning-text__icon {
13
+ @apply md:min-h-10 w-10 h-10 rounded-3xl bg-base-content
14
+ print:bg-white print:border-2 print:border-base-content;
15
+ }
16
+ .util-warning-text__icon-text {
17
+ @apply text-base-content-invert font-bold leading-10 text-center
18
+ print:text-base-content;
19
+ }
20
+ .util-warning-text__assistive {
21
+ @apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden !important;
22
+ }
23
+ }
@@ -1,23 +1,25 @@
1
+ @import './warning-text.common.css';
2
+
1
3
  .ds-warning-text {
4
+ @apply util-warning-text py-4 px-0;
2
5
  font-size: var(--warning-text-font-size);
3
- @apply flex py-4 px-0;
6
+ &.ds-warning-text--dense,
7
+ .ds-dense & {
8
+ .ds-warning-text__icon {
9
+ @apply mr-4 md:mr-5;
10
+ }
11
+ }
4
12
  .ds-warning-text__icon {
5
13
  @apply text-base-content-invert font-bold bg-base-content text-3xl leading-10 text-center
6
14
  rounded-3xl md:min-h-10 min-w-10 h-fit mr-6 mt-1
7
15
  print:bg-white print:border-2 print:border-base-content print:text-base-content;
8
16
  }
9
- .ds-warning-text__text {
17
+ .ds-warning-text__content {
10
18
  @apply flex items-center;
11
19
  }
12
- .ds-warning-text__assistive {
13
- @apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden whitespace-nowrap !important;
14
- clip: rect(0 0 0 0) !important;
15
- -webkit-clip-path: inset(50%) !important;
16
- clip-path: inset(50%) !important;
17
- }
18
- &.ds-warning-text--dense, .ds-dense & {
19
- .ds-warning-text__icon {
20
- @apply mr-4 md:mr-5;
21
- }
22
- }
20
+ }
21
+ .ds-warning-text__assistive {
22
+ @apply absolute w-px h-px m-0 p-0 border-0 overflow-hidden whitespace-nowrap !important;
23
+ clip: rect(0 0 0 0) !important;
24
+ clip-path: inset(50%) !important;
23
25
  }
@@ -0,0 +1,22 @@
1
+ @import './warning-text.common.css';
2
+
3
+ .ds-warning-text {
4
+ @apply util-warning-text flex-row items-center mb-4;
5
+ }
6
+ .ds-warning-text__content {
7
+ @apply flex-1 flex;
8
+ }
9
+ .ds-warning-text__content__text {
10
+ /* @apply util-warning-text-text font-bold text-base-content flex-1; */
11
+ @apply text-base-content font-bold p-0 m-0;
12
+ font-size: var(--warning-text-font-size);
13
+ }
14
+ .ds-warning-text__icon {
15
+ @apply util-warning-text__icon mr-4;
16
+ }
17
+ .ds-warning-text__icon__text {
18
+ @apply util-warning-text__icon-text text-2xl;
19
+ }
20
+ .ds-warning-text__assistive {
21
+ @apply util-warning-text__assistive;
22
+ }
@@ -0,0 +1,26 @@
1
+ @import './utilities/index.native';
2
+ @import './components/button.native';
3
+ @import './components/copy-to-clipboard.native';
4
+ @import './components/layout.native';
5
+ @import './components/header.native';
6
+ @import './components/typography.native';
7
+ @import './components/card.native';
8
+ @import './components/blockquote.native';
9
+ @import './components/summary-list.native';
10
+ @import './components/details.native';
11
+ @import './components/dropdown.native';
12
+ @import './components/notification-banner.native';
13
+ @import './components/nav.native';
14
+ @import './components/phase-banner.native';
15
+ @import './components/svg-icons.native';
16
+ @import './components/panel.native';
17
+ @import './components/warning-text.native';
18
+ @import './components/form.native';
19
+ @import './components/checkboxes.native';
20
+ @import './components/radios.native';
21
+ @import './components/modal.native';
22
+ @import './components/loader.native';
23
+ @import './components/stack.native';
24
+ @import './components/chip.native';
25
+ @import './components/skeleton.native';
26
+ @import './components/accordion.native';
@@ -397,7 +397,7 @@ export default function Home() {
397
397
  <a className="ds-footer__link" href="#3">Σύνδεσμος 3</a>
398
398
  </li>
399
399
  </ul>
400
- <div className="ds-footer__content--logos">
400
+ <div className="ds-footer__content__logos">
401
401
  <img className="ds-footer__logo" src="/img/government-logo2.svg" alt="government logo" />
402
402
  <img className="ds-footer__logo" src="/img/government-logo2.svg" alt="government logo" />
403
403
  </div>
@@ -0,0 +1,141 @@
1
+ .ds-gap-1 {
2
+ @apply gap-1;
3
+ }
4
+ .ds-gap-2 {
5
+ @apply gap-2;
6
+ }
7
+ .ds-gap-4 {
8
+ @apply gap-4;
9
+ }
10
+ .ds-gap-6 {
11
+ @apply gap-6;
12
+ }
13
+ .ds-gap-8 {
14
+ @apply gap-8;
15
+ }
16
+ .ds-gap-10 {
17
+ @apply gap-10;
18
+ }
19
+ .ds-gap-12 {
20
+ @apply gap-12;
21
+ }
22
+ .ds-gap-xs-1 {
23
+ @apply gap-1;
24
+ }
25
+ .ds-gap-xs-2 {
26
+ @apply gap-2;
27
+ }
28
+ .ds-gap-xs-4 {
29
+ @apply gap-4;
30
+ }
31
+ .ds-gap-xs-5 {
32
+ @apply gap-5;
33
+ }
34
+ .ds-gap-xs-6 {
35
+ @apply gap-6;
36
+ }
37
+ .ds-gap-xs-8 {
38
+ @apply gap-8;
39
+ }
40
+ .ds-gap-xs-10 {
41
+ @apply gap-10;
42
+ }
43
+ .ds-gap-xs-12 {
44
+ @apply gap-12;
45
+ }
46
+ .ds-gap-sm-1 {
47
+ @apply sm:gap-1;
48
+ }
49
+ .ds-gap-sm-2 {
50
+ @apply sm:gap-2;
51
+ }
52
+ .ds-gap-sm-4 {
53
+ @apply sm:gap-4;
54
+ }
55
+ .ds-gap-sm-5 {
56
+ @apply sm:gap-5;
57
+ }
58
+ .ds-gap-sm-6 {
59
+ @apply sm:gap-6;
60
+ }
61
+ .ds-gap-sm-8 {
62
+ @apply sm:gap-8;
63
+ }
64
+ .ds-gap-sm-10 {
65
+ @apply sm:gap-10;
66
+ }
67
+ .ds-gap-sm-12 {
68
+ @apply sm:gap-12;
69
+ }
70
+ .ds-gap-md-1 {
71
+ @apply md:gap-1;
72
+ }
73
+ .ds-gap-md-2 {
74
+ @apply md:gap-2;
75
+ }
76
+ .ds-gap-md-4 {
77
+ @apply md:gap-4;
78
+ }
79
+ .ds-gap-md-5 {
80
+ @apply md:gap-5;
81
+ }
82
+ .ds-gap-md-6 {
83
+ @apply md:gap-6;
84
+ }
85
+ .ds-gap-md-8 {
86
+ @apply md:gap-8;
87
+ }
88
+ .ds-gap-md-10 {
89
+ @apply md:gap-10;
90
+ }
91
+ .ds-gap-md-12 {
92
+ @apply md:gap-12;
93
+ }
94
+ .ds-gap-lg-1 {
95
+ @apply lg:gap-1;
96
+ }
97
+ .ds-gap-lg-2 {
98
+ @apply lg:gap-2;
99
+ }
100
+ .ds-gap-lg-4 {
101
+ @apply lg:gap-4;
102
+ }
103
+ .ds-gap-lg-5 {
104
+ @apply lg:gap-5;
105
+ }
106
+ .ds-gap-lg-6 {
107
+ @apply lg:gap-6;
108
+ }
109
+ .ds-gap-lg-8 {
110
+ @apply lg:gap-8;
111
+ }
112
+ .ds-gap-lg-10 {
113
+ @apply lg:gap-10;
114
+ }
115
+ .ds-gap-lg-12 {
116
+ @apply lg:gap-12;
117
+ }
118
+ .ds-gap-xl-1 {
119
+ @apply xl:gap-1;
120
+ }
121
+ .ds-gap-xl-2 {
122
+ @apply xl:gap-2;
123
+ }
124
+ .ds-gap-xl-4 {
125
+ @apply xl:gap-4;
126
+ }
127
+ .ds-gap-xl-5 {
128
+ @apply xl:gap-5;
129
+ }
130
+ .ds-gap-xl-6 {
131
+ @apply xl:gap-6;
132
+ }
133
+ .ds-gap-xl-8 {
134
+ @apply xl:gap-8;
135
+ }
136
+ .ds-gap-xl-10 {
137
+ @apply xl:gap-10;
138
+ }
139
+ .ds-gap-xl-12 {
140
+ @apply xl:gap-12;
141
+ }