@ebrains/components 0.5.0-alpha.0 → 0.6.0-alpha.0

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 (170) hide show
  1. package/dist/cjs/{analytics-223ea8e5.js → analytics-d8fb3fdd.js} +9 -0
  2. package/dist/cjs/components.cjs.js +1 -1
  3. package/dist/cjs/eds-accordion_13.cjs.entry.js +911 -0
  4. package/dist/cjs/eds-alert.cjs.entry.js +97 -0
  5. package/dist/cjs/eds-block-break.cjs.entry.js +21 -0
  6. package/dist/cjs/eds-breadcrumb.cjs.entry.js +149 -0
  7. package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
  8. package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
  9. package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
  10. package/dist/cjs/eds-dropdown_2.cjs.entry.js +2 -2
  11. package/dist/cjs/eds-footer.cjs.entry.js +41 -0
  12. package/dist/cjs/eds-form.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +100 -0
  14. package/dist/cjs/eds-header.cjs.entry.js +97 -0
  15. package/dist/cjs/eds-link.cjs.entry.js +214 -0
  16. package/dist/cjs/eds-login.cjs.entry.js +1 -1
  17. package/dist/cjs/eds-logo.cjs.entry.js +78 -0
  18. package/dist/cjs/eds-modal.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-pagination_2.cjs.entry.js +1 -1
  20. package/dist/cjs/eds-rating.cjs.entry.js +58 -0
  21. package/dist/cjs/eds-social-networks.cjs.entry.js +66 -0
  22. package/dist/cjs/eds-steps.cjs.entry.js +65 -0
  23. package/dist/cjs/eds-switch.cjs.entry.js +38 -0
  24. package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
  25. package/dist/cjs/eds-tabs.cjs.entry.js +2 -2
  26. package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-user.cjs.entry.js +1 -1
  28. package/dist/cjs/index-f08e4f5c.js +52 -20
  29. package/dist/cjs/loader.cjs.js +1 -1
  30. package/dist/collection/collection-manifest.json +2 -1
  31. package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
  32. package/dist/collection/components/eds-button/eds-button.js +21 -16
  33. package/dist/collection/components/eds-link/eds-link.css +6793 -6676
  34. package/dist/collection/components/eds-matomo-notice/eds-matomo-notice.js +207 -0
  35. package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.js +1 -1
  36. package/dist/collection/components/eds-steps/eds-steps.css +60 -5
  37. package/dist/collection/components/eds-steps/eds-steps.js +5 -4
  38. package/dist/collection/components/eds-tag/eds-tag.js +4 -35
  39. package/dist/collection/components/eds-toast/eds-toast.css +91 -0
  40. package/dist/collection/components/eds-toast/eds-toast.js +18 -9
  41. package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +236 -140
  42. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +10 -10
  43. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +2 -2
  44. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
  45. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +87 -0
  46. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
  47. package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -53
  48. package/dist/collection/shared-ui/eds-header/eds-header.js +2 -2
  49. package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
  50. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  51. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
  52. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  53. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +1 -1
  54. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +2 -1
  55. package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
  56. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
  57. package/dist/components/analytics.js +9 -1
  58. package/dist/components/components.css +520 -0
  59. package/dist/components/components.esm.js +1 -1
  60. package/dist/components/eds-accordion2.js +2 -2
  61. package/dist/components/eds-button2.js +11 -15
  62. package/dist/components/eds-card-section.js +4 -4
  63. package/dist/components/eds-cookies-preference.d.ts +11 -0
  64. package/dist/components/eds-cookies-preference.js +88 -0
  65. package/dist/components/eds-footer2.js +3 -13
  66. package/dist/components/eds-header.js +2 -2
  67. package/dist/components/eds-link2.js +1 -1
  68. package/dist/components/eds-login.js +1 -1
  69. package/dist/components/eds-matomo-notice.js +1 -140
  70. package/dist/components/eds-matomo-notice2.js +127 -0
  71. package/dist/components/eds-social-networks2.js +1 -1
  72. package/dist/components/eds-steps.js +7 -6
  73. package/dist/components/eds-tabs-content.js +2 -2
  74. package/dist/components/eds-tabs.js +1 -1
  75. package/dist/components/eds-tag2.js +1 -9
  76. package/dist/components/eds-toast-manager.js +4 -3
  77. package/dist/components/eds-toast2.js +13 -10
  78. package/dist/components/eds-user-modal2.js +1 -1
  79. package/dist/components/eds-user.js +1 -1
  80. package/dist/components/p-045681d7.entry.js +1 -0
  81. package/dist/components/p-0a3b2576.entry.js +1 -0
  82. package/dist/components/{p-92e16cc9.entry.js → p-10b81c47.entry.js} +1 -1
  83. package/dist/components/{p-89227919.js → p-13efafb9.js} +1 -1
  84. package/dist/components/{p-d69ef196.entry.js → p-1ae529f3.entry.js} +1 -1
  85. package/dist/components/p-21d42cf3.entry.js +1 -0
  86. package/dist/components/p-34a65e58.entry.js +1 -0
  87. package/dist/components/p-3a7aa1eb.entry.js +1 -0
  88. package/dist/components/p-42d3c324.entry.js +1 -0
  89. package/dist/components/{p-f08eac56.entry.js → p-4b3fbd6d.entry.js} +1 -1
  90. package/dist/components/p-4ea027ac.entry.js +1 -0
  91. package/dist/components/p-5097066f.entry.js +1 -0
  92. package/dist/components/p-5a2b8b6c.entry.js +1 -0
  93. package/dist/components/{p-72b42d77.entry.js → p-5ff31f14.entry.js} +1 -1
  94. package/dist/components/{p-030f67c1.entry.js → p-659ed449.entry.js} +1 -1
  95. package/dist/components/{p-75795b05.entry.js → p-7b3b26b0.entry.js} +1 -1
  96. package/dist/components/{p-0e0e1815.entry.js → p-88751c8b.entry.js} +1 -1
  97. package/dist/components/{p-8b583210.entry.js → p-9579f9c2.entry.js} +1 -1
  98. package/dist/components/p-b50c8d49.entry.js +1 -0
  99. package/dist/components/{p-59405ecf.entry.js → p-bd43d83c.entry.js} +1 -1
  100. package/dist/components/p-c683be2c.entry.js +1 -0
  101. package/dist/components/{p-209fa119.entry.js → p-d2a0b896.entry.js} +1 -1
  102. package/dist/components/p-d56d9dda.entry.js +1 -0
  103. package/dist/components/p-d5850ab3.entry.js +1 -0
  104. package/dist/components/p-e334f5bc.entry.js +1 -0
  105. package/dist/components/{p-def72462.entry.js → p-fad10768.entry.js} +1 -1
  106. package/dist/esm/{analytics-1cde8e4a.js → analytics-44b1416b.js} +9 -1
  107. package/dist/esm/components.js +1 -1
  108. package/dist/esm/eds-accordion_13.entry.js +895 -0
  109. package/dist/esm/eds-alert.entry.js +93 -0
  110. package/dist/esm/eds-block-break.entry.js +17 -0
  111. package/dist/esm/eds-breadcrumb.entry.js +145 -0
  112. package/dist/esm/eds-card-project.entry.js +1 -1
  113. package/dist/esm/eds-card-tool.entry.js +1 -1
  114. package/dist/esm/eds-cookies-preference.entry.js +35 -0
  115. package/dist/esm/eds-dropdown_2.entry.js +2 -2
  116. package/dist/esm/eds-footer.entry.js +37 -0
  117. package/dist/esm/eds-form.entry.js +1 -1
  118. package/dist/esm/eds-fullscreen-menu.entry.js +96 -0
  119. package/dist/esm/eds-header.entry.js +93 -0
  120. package/dist/esm/eds-link.entry.js +210 -0
  121. package/dist/esm/eds-login.entry.js +1 -1
  122. package/dist/esm/eds-logo.entry.js +74 -0
  123. package/dist/esm/eds-modal.entry.js +1 -1
  124. package/dist/esm/eds-pagination_2.entry.js +1 -1
  125. package/dist/esm/eds-rating.entry.js +54 -0
  126. package/dist/esm/eds-social-networks.entry.js +62 -0
  127. package/dist/esm/eds-steps.entry.js +61 -0
  128. package/dist/esm/eds-switch.entry.js +34 -0
  129. package/dist/esm/eds-tabs-content.entry.js +3 -3
  130. package/dist/esm/eds-tabs.entry.js +2 -2
  131. package/dist/esm/eds-tooltip.entry.js +1 -1
  132. package/dist/esm/eds-user.entry.js +1 -1
  133. package/dist/esm/index-e96badea.js +52 -20
  134. package/dist/esm/loader.js +1 -1
  135. package/dist/hydrate/index.js +148 -136
  136. package/dist/hydrate/index.mjs +148 -136
  137. package/dist/types/components/eds-button/eds-button.d.ts +3 -1
  138. package/dist/types/components/eds-matomo-notice/eds-matomo-notice.d.ts +53 -0
  139. package/dist/types/components/eds-steps/eds-steps.d.ts +0 -1
  140. package/dist/types/components/eds-tag/eds-tag.d.ts +1 -25
  141. package/dist/types/components/eds-toast/eds-toast.d.ts +4 -5
  142. package/dist/types/components.d.ts +101 -88
  143. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +5 -5
  144. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +1 -1
  145. package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.d.ts +27 -0
  146. package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.st.d.ts +27 -0
  147. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +2 -15
  148. package/package.json +1 -1
  149. package/dist/cjs/eds-accordion.cjs.entry.js +0 -84
  150. package/dist/cjs/eds-alert_17.cjs.entry.js +0 -1392
  151. package/dist/cjs/eds-avatar_4.cjs.entry.js +0 -187
  152. package/dist/cjs/eds-card-generic.cjs.entry.js +0 -104
  153. package/dist/cjs/eds-card-section.cjs.entry.js +0 -55
  154. package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -109
  155. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -164
  156. package/dist/components/p-0bafc5ae.entry.js +0 -1
  157. package/dist/components/p-3babd772.entry.js +0 -1
  158. package/dist/components/p-505ddcda.entry.js +0 -1
  159. package/dist/components/p-8d19a05b.entry.js +0 -1
  160. package/dist/components/p-9826acae.entry.js +0 -1
  161. package/dist/components/p-eeeb0d83.entry.js +0 -1
  162. package/dist/esm/eds-accordion.entry.js +0 -80
  163. package/dist/esm/eds-alert_17.entry.js +0 -1372
  164. package/dist/esm/eds-avatar_4.entry.js +0 -180
  165. package/dist/esm/eds-card-generic.entry.js +0 -100
  166. package/dist/esm/eds-card-section.entry.js +0 -51
  167. package/dist/esm/eds-matomo-notice.entry.js +0 -105
  168. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -77
  169. /package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.css +0 -0
  170. /package/dist/types/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -0
@@ -1,153 +1,249 @@
1
+ ol,
2
+ ul,
3
+ menu {
4
+ list-style: none;
5
+ margin: 0;
6
+ padding: 0;
7
+ }
8
+
1
9
  .w-full {
2
- width: 100%;
10
+ width: 100%;
11
+ }
12
+
13
+ .grid-layout {
14
+ display: grid;
15
+ grid-template-columns: repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);
16
+ grid-gap: var(--inner-gutter);
17
+ }
18
+
19
+ .grid-cols-4 {
20
+ grid-template-columns: repeat(4, minmax(0, 1fr));
21
+ }
22
+
23
+ .grid-cols-4[class*="grid-line-x"][class*="grid-line-x"] > *:nth-child(n)::before {
24
+ border-bottom-width: 1px;
25
+ }
26
+ .grid-cols-4[class*="grid-line-xfull"] > *:nth-child(n)::before {
27
+ inset-inline-start: calc(var(--inner-gutter) / -2);
28
+ inset-inline-end: calc(var(--inner-gutter) / -2);
29
+ }
30
+ .grid-cols-4[class*="grid-line-x"] > *:nth-child(4n+1)::before {
31
+ inset-inline-start: 0;
32
+ }
33
+ .grid-cols-4[class*="grid-line-x"] > *:nth-child(4n+4)::before {
34
+ inset-inline-end: 0;
35
+ }
36
+ .grid-cols-4[class*="grid-line-x"] > *:nth-child(4n+1):nth-last-child(-n+4)::before {
37
+ border-bottom-width: 0;
38
+ }
39
+ .grid-cols-4[class*="grid-line-x"] > *:nth-child(4n+1):nth-last-child(-n+4) ~ *::before {
40
+ border-bottom-width: 0;
41
+ }
42
+ .grid-cols-4[class*="grid-line-y"][class*="grid-line-y"] > *:nth-child(n)::after {
43
+ border-inline-end-width: 1px;
44
+ }
45
+ .grid-cols-4[class*="grid-line-y"][class*="grid-line-y"] > *:nth-child(4n+4)::after {
46
+ border-inline-end-width: 0;
47
+ }
48
+ .grid-cols-4[class*="grid-line-y"][class*="grid-line-y"] > *:nth-child(-n+4)::after {
49
+ top: 0;
50
+ }
51
+ .grid-cols-4[class*="grid-line-y"][class*="grid-line-y"] > *:nth-child(4n+1):nth-last-child(-n+4)::after {
52
+ bottom: 0;
53
+ }
54
+ .grid-cols-4[class*="grid-line-y"][class*="grid-line-y"] > *:nth-child(4n+1):nth-last-child(-n+4) ~ li::after {
55
+ bottom: 0;
56
+ }
57
+
58
+ .grid-col-span-4 {
59
+ --container-grid-columns: 4;
60
+ grid-column: span 4 / span 4;
61
+ }
62
+
63
+ .gap-y-4 {
64
+ row-gap: 0.25rem;
65
+ }
66
+
67
+ .gap-y-8 {
68
+ row-gap: 0.5rem;
69
+ }
70
+
71
+ .flex-row {
72
+ flex-direction: row;
73
+ }
74
+
75
+ .flex-row-reverse {
76
+ flex-direction: row-reverse;
77
+ }
78
+
79
+ .flex-col {
80
+ flex-direction: column;
81
+ }
82
+
83
+ .inline {
84
+ display: inline;
85
+ }
86
+
87
+ .flex {
88
+ display: flex;
89
+ }
90
+
91
+ .inline-flex {
92
+ display: inline-flex;
93
+ }
94
+
95
+ @media (min-width: 750px) {
96
+ .md\:flex {
97
+ display: flex;
98
+ }
99
+
100
+ .md\:hidden {
101
+ display: none;
102
+ }
103
+
104
+ .md\:gap-y-12 {
105
+ row-gap: 0.75rem;
3
106
  }
4
- .grid-layout {
5
- display: grid;
6
- grid-template-columns: repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);
7
- grid-gap: var(--inner-gutter);
107
+
108
+ .md\:pt-28 {
109
+ padding-top: 1.75rem;
110
+ }
111
+
112
+ }
113
+
114
+ @media (min-width: 750px) {
115
+ .md\:grid-col-span-1 {
116
+ --container-grid-columns: 1;
117
+ grid-column: span 1 / span 1;
118
+ }
119
+
120
+ .md\:grid-col-span-2 {
121
+ --container-grid-columns: 2;
122
+ grid-column: span 2 / span 2;
8
123
  }
9
- .grid-col-span-12 {
10
- --container-grid-columns: 12;
11
- grid-column: span 12 / span 12;
124
+
125
+ .md\:grid-col-span-3 {
126
+ --container-grid-columns: 3;
127
+ grid-column: span 3 / span 3;
12
128
  }
13
- .gap-y-4 {
14
- row-gap: 0.25rem;
129
+
130
+ .md\:grid-col-span-4 {
131
+ --container-grid-columns: 4;
132
+ grid-column: span 4 / span 4;
15
133
  }
16
- .gap-y-8 {
17
- row-gap: 0.5rem;
134
+
135
+ .md\:w-10-cols {
136
+ width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
18
137
  }
19
138
 
20
- .flex-row {
21
- flex-direction: row;
139
+ .cols-container>.md\:w-10-cols {
140
+ width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
141
+ }
142
+
143
+ .md\:w-10-cols>* {
144
+ --container-grid-columns: 10;
145
+ }
146
+ }
147
+
148
+ @media (min-width: 900px) {
149
+ .lg\:grid-col-span-5 {
150
+ --container-grid-columns: 5;
151
+ grid-column: span 5 / span 5;
152
+ }
153
+
154
+ .lg\:grid-col-span-6 {
155
+ --container-grid-columns: 6;
156
+ grid-column: span 6 / span 6;
157
+ }
158
+
159
+ .lg\:grid-col-start-7 {
160
+ grid-column-start: 7;
161
+ }
162
+
163
+ .lg\:w-8-cols {
164
+ width: calc(((8 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (8 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
165
+ }
166
+
167
+ .cols-container>.lg\:w-8-cols {
168
+ width: calc(((8 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (8 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
169
+ }
170
+
171
+ .lg\:w-8-cols>* {
172
+ --container-grid-columns: 8;
22
173
  }
23
- .flex-row-reverse {
24
- flex-direction: row-reverse;
174
+
175
+ .lg\:w-10-cols {
176
+ width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
25
177
  }
26
- .flex-col {
27
- flex-direction: column;
178
+
179
+ .cols-container>.lg\:w-10-cols {
180
+ width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
28
181
  }
29
- .inline {
30
- display: inline;
182
+
183
+ .lg\:w-10-cols>* {
184
+ --container-grid-columns: 10;
185
+ }
186
+ }
187
+
188
+ @media (min-width: 900px) {
189
+ .lg\:order-last {
190
+ order: 9999;
31
191
  }
32
- .flex {
192
+
193
+ .lg\:order-none {
194
+ order: 0;
195
+ }
196
+
197
+ .lg\:mt-0 {
198
+ margin-top: 0rem;
199
+ }
200
+
201
+ .lg\:block {
202
+ display: block;
203
+ }
204
+
205
+ .lg\:flex {
33
206
  display: flex;
34
207
  }
35
- .inline-flex {
36
- display: inline-flex;
37
- }
38
-
39
- @media (min-width: 750px) {
40
- .md\:flex {
41
- display: flex;
42
- }
43
- .md\:hidden {
44
- display: none;
45
- }
46
- .md\:gap-y-12 {
47
- row-gap: 0.75rem;
48
- }
49
- .md\:pt-28 {
50
- padding-top: 1.75rem;
51
- }
52
- }
53
-
54
- @media (min-width: 750px) {
55
- .md\:grid-col-span-4 {
56
- --container-grid-columns: 4;
57
- grid-column: span 4 / span 4;
58
- }
59
- .md\:grid-col-span-6 {
60
- --container-grid-columns: 6;
61
- grid-column: span 6 / span 6;
62
- }
63
- .md\:w-10-cols {
64
- width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
65
- }
66
- .cols-container > .md\:w-10-cols {
67
- width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
68
- }
69
- .md\:w-10-cols > * {
70
- --container-grid-columns: 10;
71
- }
72
- }
73
-
74
- @media (min-width: 900px) {
75
- .lg\:grid-col-span-5 {
76
- --container-grid-columns: 5;
77
- grid-column: span 5 / span 5;
78
- }
79
- .lg\:grid-col-span-6 {
80
- --container-grid-columns: 6;
81
- grid-column: span 6 / span 6;
82
- }
83
- .lg\:grid-col-start-7 {
84
- grid-column-start: 7;
85
- }
86
- .lg\:w-8-cols {
87
- width: calc(((8 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (8 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
88
- }
89
- .cols-container > .lg\:w-8-cols {
90
- width: calc(((8 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (8 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
91
- }
92
- .lg\:w-8-cols > * {
93
- --container-grid-columns: 8;
94
- }
95
- .lg\:w-10-cols {
96
- width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
97
- }
98
- .cols-container > .lg\:w-10-cols {
99
- width: calc(((10 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))));
100
- }
101
- .lg\:w-10-cols > * {
102
- --container-grid-columns: 10;
103
- }
104
- }
105
-
106
- @media (min-width: 900px) {
107
- .lg\:order-last {
108
- order: 9999;
109
- }
110
- .lg\:order-none {
111
- order: 0;
112
- }
113
- .lg\:mt-0 {
114
- margin-top: 0rem;
115
- }
116
- .lg\:block {
117
- display: block;
118
- }
119
- .lg\:flex {
120
- display: flex;
121
- }
122
- .lg\:hidden {
123
- display: none;
124
- }
125
- .lg\:w-\[150px\] {
126
- width: 150px;
127
- }
128
- .lg\:w-auto {
129
- width: auto;
130
- }
131
- .lg\:max-w-\[720px\] {
132
- max-width: 720px;
133
- }
134
- .lg\:flex-row {
135
- flex-direction: row;
136
- }
137
- .lg\:flex-nowrap {
138
- flex-wrap: nowrap;
139
- }
140
- .lg\:gap-y-16 {
141
- row-gap: 1rem;
142
- }
143
- .lg\:px-28 {
144
- padding-left: 1.75rem;
145
- padding-right: 1.75rem;
146
- }
147
- .lg\:\!pl-12 {
148
- padding-left: 0.75rem !important;
149
- }
150
- .lg\:\!pr-12 {
151
- padding-right: 0.75rem !important;
152
- }
153
- }
208
+
209
+ .lg\:hidden {
210
+ display: none;
211
+ }
212
+
213
+ .lg\:w-\[150px\] {
214
+ width: 150px;
215
+ }
216
+
217
+ .lg\:w-auto {
218
+ width: auto;
219
+ }
220
+
221
+ .lg\:max-w-\[720px\] {
222
+ max-width: 720px;
223
+ }
224
+
225
+ .lg\:flex-row {
226
+ flex-direction: row;
227
+ }
228
+
229
+ .lg\:flex-nowrap {
230
+ flex-wrap: nowrap;
231
+ }
232
+
233
+ .lg\:gap-y-16 {
234
+ row-gap: 1rem;
235
+ }
236
+
237
+ .lg\:px-28 {
238
+ padding-left: 1.75rem;
239
+ padding-right: 1.75rem;
240
+ }
241
+
242
+ .lg\:\!pl-12 {
243
+ padding-left: 0.75rem !important;
244
+ }
245
+
246
+ .lg\:\!pr-12 {
247
+ padding-right: 0.75rem !important;
248
+ }
249
+ }
@@ -1,10 +1,10 @@
1
1
  import { h } from "@stencil/core";
2
2
  /**
3
- * `EdsCardSection` is a component that renders a section of cards in a customizable grid layout.
3
+ * `EdsCardSection` is a component that renders a section of cards in a customizable grid layout of 4 columns (grid-cols-4).
4
4
  * Each card within the section can display various properties such as title, description, avatar, and additional content.
5
5
  *
6
6
  * Key Features:
7
- * - Accepts a JSON string of card objects, each defining its properties like title, description, avatar, tags, URL, and image.
7
+ * - Accepts a JSON string or array of card objects, each defining its properties like title, description, avatar, tags, URL, and image.
8
8
  * - Configurable grid layout with adjustable column span for each card, optimizing display on different screen sizes.
9
9
  *
10
10
  * This component is ideal for displaying a structured section of cards with varying content in a responsive grid format.
@@ -12,7 +12,7 @@ import { h } from "@stencil/core";
12
12
  export class EdsCardSection {
13
13
  constructor() {
14
14
  this.cards = [];
15
- this.cols = 4;
15
+ this.occupyCols = 1;
16
16
  }
17
17
  /**
18
18
  * Parses the `cards` JSON string prop into an array of card objects.
@@ -48,7 +48,7 @@ export class EdsCardSection {
48
48
  * @returns {JSX.Element} The rendered section containing a list of cards.
49
49
  */
50
50
  render() {
51
- return (h("section", { key: '1f221e1ec7c3cdd0e3aed18f6f930c2c5456c64b', class: "w-full" }, h("ul", { key: '36f984994bb2dc247475c20422f7e6e7da7d058d', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
51
+ return (h("section", { key: '6c7067186b4afd873992008311ef65434e2860ef', class: "w-full" }, h("ul", { key: '186f5dc40e4d68c7565ba104dec900c707a59bc5', class: "grid-layout grid-cols-4 gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (h("li", { class: `grid-col-span-4 md:grid-col-span-${this.occupyCols} flex flex-col` }, h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
52
52
  }
53
53
  static get is() { return "eds-card-section"; }
54
54
  static get encapsulation() { return "shadow"; }
@@ -88,23 +88,23 @@ export class EdsCardSection {
88
88
  "reflect": false,
89
89
  "defaultValue": "[]"
90
90
  },
91
- "cols": {
91
+ "occupyCols": {
92
92
  "type": "number",
93
93
  "mutable": false,
94
94
  "complexType": {
95
- "original": "number",
96
- "resolved": "number",
95
+ "original": "1 | 2 | 3 | 4",
96
+ "resolved": "1 | 2 | 3 | 4",
97
97
  "references": {}
98
98
  },
99
99
  "required": false,
100
100
  "optional": false,
101
101
  "docs": {
102
102
  "tags": [],
103
- "text": "Number of columns to span for each card in the grid layout.\nThis value sets the column span on medium (md) and larger screen sizes.\nDefault is `4`."
103
+ "text": "Number of columns to span for each card in the grid layout four.\nThis value sets the column span on medium (md) and larger screen sizes.\nDefault is `1`."
104
104
  },
105
- "attribute": "cols",
105
+ "attribute": "occupy-cols",
106
106
  "reflect": false,
107
- "defaultValue": "4"
107
+ "defaultValue": "1"
108
108
  }
109
109
  };
110
110
  }
@@ -6,7 +6,7 @@ export default {
6
6
  control: 'object',
7
7
  description: 'Representing an array of card objects, each with properties like title, description, avatar, image, etc.'
8
8
  },
9
- cols: {
9
+ occupyCols: {
10
10
  control: { type: 'number', min: 1, max: 12, step: 1 },
11
11
  description: 'Number of columns to span for each card in the grid layout'
12
12
  },
@@ -69,7 +69,7 @@ export const Default = {
69
69
  const cardSection = document.createElement('eds-card-section');
70
70
  // Pass the array and other args as properties
71
71
  cardSection.cards = args.cards;
72
- cardSection.cols = args.cols;
72
+ cardSection.occupyCols = args.occupyCols;
73
73
  cardSection.className = args.extraClass;
74
74
  return cardSection;
75
75
  }
@@ -0,0 +1,87 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * @internal
4
+ */
5
+ export class EdsCookiesPreference {
6
+ constructor() {
7
+ this.buttonText = 'Cookies Preferences';
8
+ this.intent = undefined;
9
+ this.showMatomoNotice = false;
10
+ this.noticeKey = 0;
11
+ }
12
+ /**
13
+ * Always shows the eds-matomo-notice popup.
14
+ * Every click removes the "matomo-deferred" key and forces a remount.
15
+ */
16
+ toggleCookiesPopup() {
17
+ // Remove the key from session storage so that the notice will run its checks (or be forced to show)
18
+ sessionStorage.removeItem('matomo-deferred');
19
+ if (this.showMatomoNotice) {
20
+ // Force a remount by changing the key
21
+ this.noticeKey = this.noticeKey + 1;
22
+ }
23
+ else {
24
+ this.showMatomoNotice = true;
25
+ }
26
+ }
27
+ render() {
28
+ return (h("div", { key: 'ca5d44522f94e9ea009c657c5eae6e357cd0d13a' }, h("eds-link", { key: '563a369e2ed44d08a6dd47922c1c1c888e81543a', size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && h("eds-matomo-notice", { "force-show": true, key: this.noticeKey })));
29
+ }
30
+ static get is() { return "eds-cookies-preference"; }
31
+ static get encapsulation() { return "shadow"; }
32
+ static get originalStyleUrls() {
33
+ return {
34
+ "$": ["eds-cookies-preference.css"]
35
+ };
36
+ }
37
+ static get styleUrls() {
38
+ return {
39
+ "$": ["eds-cookies-preference.css"]
40
+ };
41
+ }
42
+ static get properties() {
43
+ return {
44
+ "buttonText": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "string",
49
+ "resolved": "string",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": "Text to display on the cookies preference button."
57
+ },
58
+ "attribute": "button-text",
59
+ "reflect": false,
60
+ "defaultValue": "'Cookies Preferences'"
61
+ },
62
+ "intent": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "| 'primary'\n | 'secondary'\n | 'tertiary'\n | 'ghost'\n | 'strong'\n | 'weak'\n | 'inverse'\n | 'underline'\n | 'blueish'",
67
+ "resolved": "\"blueish\" | \"ghost\" | \"inverse\" | \"primary\" | \"secondary\" | \"strong\" | \"tertiary\" | \"underline\" | \"weak\"",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": true,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "The visual intent or style of the button."
75
+ },
76
+ "attribute": "intent",
77
+ "reflect": false
78
+ }
79
+ };
80
+ }
81
+ static get states() {
82
+ return {
83
+ "showMatomoNotice": {},
84
+ "noticeKey": {}
85
+ };
86
+ }
87
+ }
@@ -0,0 +1,31 @@
1
+ export default {
2
+ title: 'Shared Ui/Cookies Preference',
3
+ component: 'eds-cookies-preference',
4
+ argTypes: {
5
+ buttonText: {
6
+ control: 'text',
7
+ description: 'Text to display on the cookies preference button.'
8
+ },
9
+ intent: {
10
+ control: 'select',
11
+ options: ['primary', 'secondary', 'tertiary', 'ghost', 'ghostInverse'],
12
+ description: 'The visual intent or style of the button.'
13
+ }
14
+ },
15
+ args: {
16
+ buttonText: 'Cookies Preferences',
17
+ intent: 'ghostInverse'
18
+ }
19
+ };
20
+ export const Default = {
21
+ render: (args) => `
22
+ <eds-cookies-preference
23
+ button-text="${args.buttonText}"
24
+ intent="${args.intent}">
25
+ </eds-cookies-preference>
26
+ `,
27
+ args: {
28
+ buttonText: 'Cookies Preferences',
29
+ intent: 'ghostInverse'
30
+ }
31
+ };