@ebrains/react 0.0.1-alpha.0 → 0.2.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.
- package/README.md +4 -48
- package/arrow-diagonal-black-8f0494c3.esm.js +3 -0
- package/arrow-right-9322ba8a.esm.js +5 -0
- package/bluesky-cc5edd2d.esm.js +14 -0
- package/chevron-down-6144c823.esm.js +12 -0
- package/chevron-left-ca6c66e1.esm.js +11 -0
- package/chevron-right-b88ed2d4.esm.js +5 -0
- package/chevron-up-c66bd477.esm.js +12 -0
- package/close-87fc0d63.esm.js +5 -0
- package/color-0ba8ed56.esm.js +423 -0
- package/color-primary-palette_6.entry.esm.js +756 -0
- package/copy-03b72cb6.esm.js +5 -0
- package/correct-use-of-colors.entry.esm.js +243 -0
- package/eds-accordion.entry.esm.js +132 -0
- package/eds-alert_28.entry.esm.js +227 -0
- package/eds-block-break.entry.esm.js +22 -0
- package/eds-breadcrumb.entry.esm.js +169 -0
- package/eds-card-project.entry.esm.js +92 -0
- package/eds-card-section.entry.esm.js +60 -0
- package/eds-card-tags.entry.esm.js +27 -0
- package/eds-card-tool.entry.esm.js +106 -0
- package/eds-card-wrapper.entry.esm.js +39 -0
- package/eds-code-block.entry.esm.js +2243 -0
- package/eds-components-section.entry.esm.js +113 -0
- package/eds-docs-palettes.entry.esm.js +29 -0
- package/eds-docs-tokens.entry.esm.js +45 -0
- package/eds-footer.entry.esm.js +110 -0
- package/eds-frame.entry.esm.js +117 -0
- package/eds-fullscreen-menu.entry.esm.js +143 -0
- package/eds-icon-arrow-diagonal.entry.esm.js +21 -0
- package/eds-icon-arrow-right.entry.esm.js +21 -0
- package/eds-icon-bluesky.entry.esm.js +21 -0
- package/eds-icon-chevron-down.entry.esm.js +21 -0
- package/eds-icon-chevron-left.entry.esm.js +21 -0
- package/eds-icon-chevron-right.entry.esm.js +21 -0
- package/eds-icon-chevron-up.entry.esm.js +21 -0
- package/eds-icon-close.entry.esm.js +21 -0
- package/eds-icon-copy.entry.esm.js +21 -0
- package/eds-icon-eu.entry.esm.js +21 -0
- package/eds-icon-facebook.entry.esm.js +21 -0
- package/eds-icon-gitlab.entry.esm.js +21 -0
- package/eds-icon-linkedin.entry.esm.js +21 -0
- package/eds-icon-loader.entry.esm.js +21 -0
- package/eds-icon-mastodon.entry.esm.js +21 -0
- package/eds-icon-menu.entry.esm.js +21 -0
- package/eds-icon-more.entry.esm.js +21 -0
- package/eds-icon-search.entry.esm.js +21 -0
- package/eds-icon-success.entry.esm.js +21 -0
- package/eds-icon-twitter.entry.esm.js +21 -0
- package/eds-icon-user.entry.esm.js +21 -0
- package/eds-icon-youtube.entry.esm.js +21 -0
- package/eds-login.entry.esm.js +84 -0
- package/eds-matomo-notice.entry.esm.js +129 -0
- package/eds-modal.entry.esm.js +114 -0
- package/eds-navigator.entry.esm.js +72 -0
- package/eds-pagination.entry.esm.js +258 -0
- package/eds-rating.entry.esm.js +71 -0
- package/eds-section-core_2.entry.esm.js +69 -0
- package/eds-social-networks.entry.esm.js +74 -0
- package/eds-svg-repository.entry.esm.js +316 -0
- package/eds-tab.entry.esm.js +41 -0
- package/eds-table.entry.esm.js +196 -0
- package/eds-tabs-content.entry.esm.js +145 -0
- package/eds-tabs.entry.esm.js +136 -0
- package/eds-tooltip.entry.esm.js +116 -0
- package/eu-9ddde93a.esm.js +30 -0
- package/facebook-9cb5c17f.esm.js +14 -0
- package/incorrect-use-of-colors.entry.esm.js +70 -0
- package/index-39c58238.esm.js +58 -0
- package/index.esm.js +3 -2668
- package/index.esm2.js +4783 -0
- package/keycloak-13893af6.esm.js +1594 -0
- package/linkedin-e8650abb.esm.js +28 -0
- package/loader-c9628637.esm.js +30 -0
- package/logo-color-7f1fd803.esm.js +115 -0
- package/logo-color-margins-ff8ce71b.esm.js +118 -0
- package/logo-space.entry.esm.js +32 -0
- package/logo-variations-horizontal.entry.esm.js +50 -0
- package/logo-variations-vertical.entry.esm.js +53 -0
- package/logo-white-no-bg-f382f86f.esm.js +1021 -0
- package/logo-wrong-usage.entry.esm.js +137 -0
- package/mastodon-3703ec61.esm.js +14 -0
- package/menu-340ea948.esm.js +11 -0
- package/mono-53f70232.esm.js +11 -0
- package/more-4449d549.esm.js +13 -0
- package/package.json +1 -1
- package/search-fbcd79c2.esm.js +12 -0
- package/src/components.d.ts +38 -0
- package/src/index.d.ts +1 -1
- package/src/react-component-lib/attachProps.d.ts +16 -0
- package/src/react-component-lib/case.d.ts +2 -0
- package/src/react-component-lib/createComponent.d.ts +10 -0
- package/src/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/src/react-component-lib/dev.d.ts +2 -0
- package/src/react-component-lib/index.d.ts +2 -0
- package/src/react-component-lib/interfaces.d.ts +29 -0
- package/src/react-component-lib/utils/attachProps.d.ts +16 -0
- package/src/react-component-lib/utils/case.d.ts +2 -0
- package/src/react-component-lib/utils/index.d.ts +10 -0
- package/success-443809da.esm.js +18 -0
- package/toastManager-d9eee791.esm.js +34 -0
- package/token-list_3.entry.esm.js +385 -0
- package/token-ratios.entry.esm.js +49 -0
- package/token-spacing.entry.esm.js +93 -0
- package/token-typography.entry.esm.js +264 -0
- package/twitter-ac21b505.esm.js +14 -0
- package/user-71ebdc15.esm.js +16 -0
- package/youtube-efbfbdc4.esm.js +14 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
+
import { e as euSvg } from './eu-9ddde93a.esm.js';
|
|
3
|
+
import { h as hLogoColor } from './logo-color-7f1fd803.esm.js';
|
|
4
|
+
import { h as hLogoBlack, a as hLogoColorWhite, b as hLogoWhite, c as hLogoWhiteNoBg, v as vLogoColor, d as vLogoBlack, e as vLogoColorWhite, f as vLogoWhite, g as vLogoWhiteNoBg } from './logo-white-no-bg-f382f86f.esm.js';
|
|
5
|
+
import { v as vLogoMargins } from './logo-color-margins-ff8ce71b.esm.js';
|
|
6
|
+
import { g as gitlabBlack } from './mono-53f70232.esm.js';
|
|
7
|
+
import { c as chevronUp } from './chevron-up-c66bd477.esm.js';
|
|
8
|
+
import { c as chevronDown } from './chevron-down-6144c823.esm.js';
|
|
9
|
+
import { c as chevronRight } from './chevron-right-b88ed2d4.esm.js';
|
|
10
|
+
import { c as chevronLeft } from './chevron-left-ca6c66e1.esm.js';
|
|
11
|
+
import { a as arrowDiagonal } from './arrow-diagonal-black-8f0494c3.esm.js';
|
|
12
|
+
import { a as arrowRight } from './arrow-right-9322ba8a.esm.js';
|
|
13
|
+
import { t as twitter } from './twitter-ac21b505.esm.js';
|
|
14
|
+
import { l as linkedin } from './linkedin-e8650abb.esm.js';
|
|
15
|
+
import { f as facebook } from './facebook-9cb5c17f.esm.js';
|
|
16
|
+
import { y as youtube } from './youtube-efbfbdc4.esm.js';
|
|
17
|
+
import { m as mastodon } from './mastodon-3703ec61.esm.js';
|
|
18
|
+
import { b as bluesky } from './bluesky-cc5edd2d.esm.js';
|
|
19
|
+
import { s as search } from './search-fbcd79c2.esm.js';
|
|
20
|
+
import { l as loader } from './loader-c9628637.esm.js';
|
|
21
|
+
import { s as success } from './success-443809da.esm.js';
|
|
22
|
+
import { c as close } from './close-87fc0d63.esm.js';
|
|
23
|
+
import { m as menu } from './menu-340ea948.esm.js';
|
|
24
|
+
import { m as more } from './more-4449d549.esm.js';
|
|
25
|
+
import { u as user } from './user-71ebdc15.esm.js';
|
|
26
|
+
import { c as copy } from './copy-03b72cb6.esm.js';
|
|
27
|
+
import 'react';
|
|
28
|
+
import 'react/jsx-runtime';
|
|
29
|
+
import 'react-dom';
|
|
30
|
+
|
|
31
|
+
const color = ` <svg width="20" height="20" viewBox="0 0 36 36">
|
|
32
|
+
<path fill="#e24329" d="M2 14l9.38 9v-9l-4-12.28c-.205-.632-1.176-.632-1.38 0z"></path>
|
|
33
|
+
<path fill="#e24329" d="M34 14l-9.38 9v-9l4-12.28c.205-.632 1.176-.632 1.38 0z"></path>
|
|
34
|
+
<path fill="#e24329" d="M18,34.38 3,14 33,14 Z"></path>
|
|
35
|
+
<path fill="#fc6d26" d="M18,34.38 11.38,14 2,14 6,25Z"></path>
|
|
36
|
+
<path fill="#fc6d26" d="M18,34.38 24.62,14 34,14 30,25Z"></path>
|
|
37
|
+
<path fill="#fca326" d="M2 14L.1 20.16c-.18.565 0 1.2.5 1.56l17.42 12.66z"></path>
|
|
38
|
+
<path fill="#fca326" d="M34 14l1.9 6.16c.18.565 0 1.2-.5 1.56L18 34.38z"></path>
|
|
39
|
+
</svg>`;
|
|
40
|
+
const error = `<svg
|
|
41
|
+
width="20"
|
|
42
|
+
height="20"
|
|
43
|
+
viewBox="0 0 20 20"
|
|
44
|
+
fill="none"
|
|
45
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
46
|
+
>
|
|
47
|
+
<path
|
|
48
|
+
fill-rule="evenodd"
|
|
49
|
+
clip-rule="evenodd"
|
|
50
|
+
d="M10 2C5.57714 2 2 5.57714 2 10C2 14.4229 5.57714 18 10 18C14.4229 18 18 14.4229 18 10C18 5.57714 14.4229 2 10 2Z"
|
|
51
|
+
stroke="currentColor"
|
|
52
|
+
stroke-width="2"
|
|
53
|
+
/>
|
|
54
|
+
<path
|
|
55
|
+
d="M7 7L10 10M13 13L10 10M10 10L13 7M10 10L7 13"
|
|
56
|
+
stroke="currentColor"
|
|
57
|
+
stroke-width="1.5"
|
|
58
|
+
/>
|
|
59
|
+
</svg>`;
|
|
60
|
+
const completed = `<svg
|
|
61
|
+
width="20"
|
|
62
|
+
height="20"
|
|
63
|
+
viewBox="0 0 20 20"
|
|
64
|
+
fill="none"
|
|
65
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
66
|
+
>
|
|
67
|
+
<circle
|
|
68
|
+
cx="10.0001"
|
|
69
|
+
cy="10.0001"
|
|
70
|
+
r="9.00007"
|
|
71
|
+
fill="white"
|
|
72
|
+
stroke="currentColor"
|
|
73
|
+
stroke-width="2"
|
|
74
|
+
/>
|
|
75
|
+
<path
|
|
76
|
+
d="M6 9.33303L8.9474 12.6664L14.0001 7.33301"
|
|
77
|
+
stroke="currentColor"
|
|
78
|
+
stroke-width="2.00002"
|
|
79
|
+
/>
|
|
80
|
+
</svg>`;
|
|
81
|
+
const failed = `<svg
|
|
82
|
+
width="20"
|
|
83
|
+
height="20"
|
|
84
|
+
viewBox="0 0 20 20"
|
|
85
|
+
fill="none"
|
|
86
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
87
|
+
>
|
|
88
|
+
<circle
|
|
89
|
+
cx="10.0001"
|
|
90
|
+
cy="10.0001"
|
|
91
|
+
r="9.00007"
|
|
92
|
+
fill="white"
|
|
93
|
+
stroke="currentColor"
|
|
94
|
+
stroke-width="2"
|
|
95
|
+
/>
|
|
96
|
+
<path
|
|
97
|
+
d="M6.21053 14.0001L10 10M13.7895 6L10 10M10 10L6 6M10 10L14.0001 14.0001"
|
|
98
|
+
stroke="currentColor"
|
|
99
|
+
stroke-width="2.00002"
|
|
100
|
+
/>
|
|
101
|
+
</svg>`;
|
|
102
|
+
const warning = ` <svg
|
|
103
|
+
width="20"
|
|
104
|
+
height="20"
|
|
105
|
+
viewBox="0 0 20 20"
|
|
106
|
+
fill="none"
|
|
107
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
108
|
+
>
|
|
109
|
+
<path
|
|
110
|
+
fill-rule="evenodd"
|
|
111
|
+
clip-rule="evenodd"
|
|
112
|
+
d="M10 3C6.13 3 3 6.13 3 10C3 13.87 6.13 17 10 17C13.87 17 17 13.87 17 10C17 6.13 13.87 3 10 3Z"
|
|
113
|
+
stroke="currentColor"
|
|
114
|
+
stroke-width="2"
|
|
115
|
+
/>
|
|
116
|
+
<path d="M10 6V10.5" stroke="currentColor" stroke-width="2" />
|
|
117
|
+
<circle cx="10" cy="12.9209" r="1.40346" fill="currentColor" />
|
|
118
|
+
</svg>`;
|
|
119
|
+
const check = `<svg
|
|
120
|
+
width="20"
|
|
121
|
+
height="20"
|
|
122
|
+
viewBox="0 0 20 20"
|
|
123
|
+
fill="none"
|
|
124
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
125
|
+
>
|
|
126
|
+
<rect width="20" height="20" rx="4" fill="currentColor" />
|
|
127
|
+
<path d="M4 10L8 14L16 6" stroke="white" stroke-width="3" />
|
|
128
|
+
</svg>`;
|
|
129
|
+
const clear = ` <svg
|
|
130
|
+
width="20"
|
|
131
|
+
height="20"
|
|
132
|
+
viewBox="0 0 20 20"
|
|
133
|
+
fill="none"
|
|
134
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
135
|
+
>
|
|
136
|
+
<path
|
|
137
|
+
fill-rule="evenodd"
|
|
138
|
+
clip-rule="evenodd"
|
|
139
|
+
d="M2 10C2 5.57714 5.57714 2 10 2C14.4229 2 18 5.57714 18 10C18 14.4229 14.4229 18 10 18C5.57714 18 2 14.4229 2 10ZM6.50503 7.49497L9.01005 10L6.50503 12.505L7.49497 13.495L10 10.99L12.505 13.495L13.495 12.505L10.99 10L13.495 7.49497L12.505 6.50503L10 9.01005L7.49497 6.50503L6.50503 7.49497Z"
|
|
140
|
+
fill="currentColor"
|
|
141
|
+
/>
|
|
142
|
+
</svg>`;
|
|
143
|
+
const documentation = `<svg
|
|
144
|
+
width="20"
|
|
145
|
+
height="20"
|
|
146
|
+
viewBox="0 0 20 20"
|
|
147
|
+
fill="none"
|
|
148
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
149
|
+
>
|
|
150
|
+
<path
|
|
151
|
+
d="M12 5C10.8954 5 10 5.89543 10 7V17C10 15.8954 10.8954 15 12 15H18V5H12Z"
|
|
152
|
+
stroke="currentColor"
|
|
153
|
+
stroke-width="1.5"
|
|
154
|
+
/>
|
|
155
|
+
<path
|
|
156
|
+
d="M8 5C9.10457 5 10 5.89543 10 7V17C10 15.8954 9.10457 15 8 15H2V5H8Z"
|
|
157
|
+
stroke="currentColor"
|
|
158
|
+
stroke-width="1.5"
|
|
159
|
+
/>
|
|
160
|
+
</svg>`;
|
|
161
|
+
const download = `<svg
|
|
162
|
+
width="20"
|
|
163
|
+
height="20"
|
|
164
|
+
viewBox="0 0 20 20"
|
|
165
|
+
fill="none"
|
|
166
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
167
|
+
>
|
|
168
|
+
<path
|
|
169
|
+
d="M5.91937 8H9V3H11V8H14.0806L10 13.1008L5.91937 8Z"
|
|
170
|
+
fill="currentColor"
|
|
171
|
+
/>
|
|
172
|
+
<path
|
|
173
|
+
d="M5 15V12H3V15C3 16.1046 3.89543 17 5 17H15C16.1046 17 17 16.1046 17 15V12H15V15H5Z"
|
|
174
|
+
fill="currentColor"
|
|
175
|
+
/>
|
|
176
|
+
</svg>`;
|
|
177
|
+
const filter = ` <svg
|
|
178
|
+
width="20"
|
|
179
|
+
height="20"
|
|
180
|
+
viewBox="0 0 20 20"
|
|
181
|
+
fill="none"
|
|
182
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
183
|
+
>
|
|
184
|
+
<path
|
|
185
|
+
d="M2 6.5H6M9 6.5H18M18 13.5H14M11 13.5H2"
|
|
186
|
+
stroke="currentColor"
|
|
187
|
+
stroke-width="2"
|
|
188
|
+
/>
|
|
189
|
+
<path
|
|
190
|
+
d="M10 6.5C10 7.88071 8.88071 9 7.5 9C6.11929 9 5 7.88071 5 6.5C5 5.11929 6.11929 4 7.5 4C8.88071 4 10 5.11929 10 6.5Z"
|
|
191
|
+
stroke="currentColor"
|
|
192
|
+
stroke-width="2"
|
|
193
|
+
/>
|
|
194
|
+
<path
|
|
195
|
+
d="M10 13.5C10 14.8807 11.1193 16 12.5 16C13.8807 16 15 14.8807 15 13.5C15 12.1193 13.8807 11 12.5 11C11.1193 11 10 12.1193 10 13.5Z"
|
|
196
|
+
stroke="currentColor"
|
|
197
|
+
stroke-width="2"
|
|
198
|
+
/>
|
|
199
|
+
</svg>`;
|
|
200
|
+
const group = `<svg
|
|
201
|
+
width="20"
|
|
202
|
+
height="20"
|
|
203
|
+
viewBox="0 0 20 20"
|
|
204
|
+
fill="none"
|
|
205
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
206
|
+
>
|
|
207
|
+
<path
|
|
208
|
+
fill-rule="evenodd"
|
|
209
|
+
clip-rule="evenodd"
|
|
210
|
+
d="M6.75 4C6.75 2.20507 8.20507 0.75 10 0.75C11.7949 0.75 13.25 2.20507 13.25 4C13.25 4.02739 13.2497 4.0547 13.249 4.08193C14.372 4.69978 15.3002 5.62799 15.9181 6.75102C15.9453 6.75034 15.9726 6.75 16 6.75C17.7949 6.75 19.25 8.20507 19.25 10C19.25 11.7949 17.7949 13.25 16 13.25C15.9726 13.25 15.9453 13.2497 15.9181 13.249C15.3002 14.372 14.372 15.3002 13.249 15.9181C13.2497 15.9453 13.25 15.9726 13.25 16C13.25 17.7949 11.7949 19.25 10 19.25C8.20507 19.25 6.75 17.7949 6.75 16C6.75 15.9726 6.75034 15.9453 6.75102 15.9181C5.62799 15.3002 4.69978 14.372 4.08193 13.249C4.0547 13.2497 4.02739 13.25 4 13.25C2.20507 13.25 0.75 11.7949 0.75 10C0.75 8.20507 2.20507 6.75 4 6.75C4.02739 6.75 4.0547 6.75034 4.08193 6.75102C4.69978 5.62799 5.62799 4.69978 6.75101 4.08193C6.75034 4.0547 6.75 4.02739 6.75 4ZM10 2.25C9.0335 2.25 8.25 3.0335 8.25 4C8.25 4.9665 9.0335 5.75 10 5.75C10.9665 5.75 11.75 4.9665 11.75 4C11.75 3.0335 10.9665 2.25 10 2.25ZM14.4169 12.839C13.4224 12.2833 12.75 11.2202 12.75 10C12.75 8.77982 13.4224 7.7167 14.4169 7.16096C14.0099 6.52904 13.471 5.99011 12.839 5.58309C12.2833 6.57758 11.2202 7.25 10 7.25C8.77982 7.25 7.7167 6.57759 7.16097 5.5831C6.52904 5.99011 5.99011 6.52904 5.58309 7.16097C6.57758 7.7167 7.25 8.77982 7.25 10C7.25 11.2202 6.57758 12.2833 5.58309 12.839C5.99011 13.471 6.52904 14.0099 7.16096 14.4169C7.7167 13.4224 8.77982 12.75 10 12.75C11.2202 12.75 12.2833 13.4224 12.839 14.4169C13.471 14.0099 14.0099 13.471 14.4169 12.839ZM8.25 16C8.25 15.0335 9.0335 14.25 10 14.25C10.9665 14.25 11.75 15.0335 11.75 16C11.75 16.9665 10.9665 17.75 10 17.75C9.0335 17.75 8.25 16.9665 8.25 16ZM2.25 10C2.25 10.9665 3.0335 11.75 4 11.75C4.9665 11.75 5.75 10.9665 5.75 10C5.75 9.0335 4.9665 8.25 4 8.25C3.0335 8.25 2.25 9.0335 2.25 10ZM16 11.75C15.0335 11.75 14.25 10.9665 14.25 10C14.25 9.0335 15.0335 8.25 16 8.25C16.9665 8.25 17.75 9.0335 17.75 10C17.75 10.9665 16.9665 11.75 16 11.75Z"
|
|
211
|
+
fill="currentColor"
|
|
212
|
+
/>
|
|
213
|
+
</svg>`;
|
|
214
|
+
const unknown = `<svg
|
|
215
|
+
width="20"
|
|
216
|
+
height="20"
|
|
217
|
+
viewBox="0 0 20 20"
|
|
218
|
+
fill="none"
|
|
219
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
220
|
+
>
|
|
221
|
+
<circle
|
|
222
|
+
cx="10.0001"
|
|
223
|
+
cy="10.0001"
|
|
224
|
+
r="9.00007"
|
|
225
|
+
fill="white"
|
|
226
|
+
stroke="currentColor"
|
|
227
|
+
stroke-width="2"
|
|
228
|
+
/>
|
|
229
|
+
<path
|
|
230
|
+
d="M8.78976 12.086V11.9135C8.79306 11.3215 8.8442 10.8495 8.94319 10.4977C9.04547 10.1458 9.19395 9.86167 9.38863 9.64515C9.5833 9.42864 9.81757 9.23242 10.0914 9.0565C10.296 8.92118 10.4791 8.78078 10.6408 8.63531C10.8025 8.48984 10.9312 8.32915 11.0268 8.15323C11.1225 7.97392 11.1704 7.77433 11.1704 7.55443C11.1704 7.321 11.1159 7.11632 11.0071 6.9404C10.8982 6.76448 10.7513 6.62916 10.5666 6.53444C10.3851 6.43971 10.1838 6.39235 9.96275 6.39235C9.74828 6.39235 9.54536 6.4414 9.35398 6.53951C9.16261 6.63424 9.00588 6.77632 8.8838 6.96578C8.76171 7.15184 8.69572 7.38358 8.68582 7.66099H6.6665C6.683 6.98438 6.84138 6.42618 7.14164 5.98638C7.4419 5.5432 7.83949 5.21336 8.33442 4.99684C8.82935 4.77694 9.37543 4.66699 9.97265 4.66699C10.6293 4.66699 11.21 4.77863 11.7148 5.00191C12.2196 5.22181 12.6156 5.54151 12.9026 5.96101C13.1897 6.38051 13.3332 6.88627 13.3332 7.47831C13.3332 7.87412 13.2689 8.22596 13.1402 8.53382C13.0148 8.83829 12.8383 9.10894 12.6106 9.34575C12.383 9.57918 12.114 9.79062 11.8039 9.98007C11.5432 10.1391 11.3288 10.3048 11.1605 10.4774C10.9955 10.6499 10.8718 10.8495 10.7893 11.0762C10.7101 11.3028 10.6688 11.5819 10.6655 11.9135V12.086H8.78976ZM9.76972 15.3338C9.43977 15.3338 9.15766 15.2153 8.92339 14.9785C8.69242 14.7383 8.57859 14.4508 8.58189 14.1159C8.57859 13.7843 8.69242 13.5001 8.92339 13.2633C9.15766 13.0265 9.43977 12.9081 9.76972 12.9081C10.0832 12.9081 10.3587 13.0265 10.5963 13.2633C10.8338 13.5001 10.9543 13.7843 10.9576 14.1159C10.9543 14.3391 10.8965 14.5438 10.7843 14.7299C10.6754 14.9126 10.5319 15.0597 10.3537 15.1714C10.1756 15.2796 9.98089 15.3338 9.76972 15.3338Z"
|
|
231
|
+
fill="currentColor"
|
|
232
|
+
/>
|
|
233
|
+
</svg>`;
|
|
234
|
+
const svgs = /*#__PURE__*/Object.freeze({
|
|
235
|
+
__proto__: null,
|
|
236
|
+
twitter: twitter,
|
|
237
|
+
linkedin: linkedin,
|
|
238
|
+
facebook: facebook,
|
|
239
|
+
youtube: youtube,
|
|
240
|
+
mastodon: mastodon,
|
|
241
|
+
bluesky: bluesky,
|
|
242
|
+
euSvg: euSvg,
|
|
243
|
+
arrowRight: arrowRight,
|
|
244
|
+
arrowDiagonal: arrowDiagonal,
|
|
245
|
+
chevronUp: chevronUp,
|
|
246
|
+
chevronDown: chevronDown,
|
|
247
|
+
chevronRight: chevronRight,
|
|
248
|
+
chevronLeft: chevronLeft,
|
|
249
|
+
check: check,
|
|
250
|
+
clear: clear,
|
|
251
|
+
close: close,
|
|
252
|
+
completed: completed,
|
|
253
|
+
copy: copy,
|
|
254
|
+
documentation: documentation,
|
|
255
|
+
download: download,
|
|
256
|
+
error: error,
|
|
257
|
+
gitlabColor: color,
|
|
258
|
+
gitlabBlack: gitlabBlack,
|
|
259
|
+
loader: loader,
|
|
260
|
+
hLogoColor: hLogoColor,
|
|
261
|
+
hLogoBlack: hLogoBlack,
|
|
262
|
+
hLogoColorWhite: hLogoColorWhite,
|
|
263
|
+
hLogoWhite: hLogoWhite,
|
|
264
|
+
hLogoWhiteNoBg: hLogoWhiteNoBg,
|
|
265
|
+
vLogoColor: vLogoColor,
|
|
266
|
+
vLogoBlack: vLogoBlack,
|
|
267
|
+
vLogoColorWhite: vLogoColorWhite,
|
|
268
|
+
vLogoWhite: vLogoWhite,
|
|
269
|
+
vLogoWhiteNoBg: vLogoWhiteNoBg,
|
|
270
|
+
vLogoMargins: vLogoMargins,
|
|
271
|
+
menu: menu,
|
|
272
|
+
more: more,
|
|
273
|
+
failed: failed,
|
|
274
|
+
filter: filter,
|
|
275
|
+
group: group,
|
|
276
|
+
user: user,
|
|
277
|
+
search: search,
|
|
278
|
+
success: success,
|
|
279
|
+
warning: warning,
|
|
280
|
+
unknown: unknown
|
|
281
|
+
});
|
|
282
|
+
const EdsSvgRepository = class {
|
|
283
|
+
constructor(hostRef) {
|
|
284
|
+
registerInstance(this, hostRef);
|
|
285
|
+
}
|
|
286
|
+
// Convert SVG data to a format usable by `eds-table`
|
|
287
|
+
getSvgData() {
|
|
288
|
+
return Object.entries(svgs).filter(([name]) => !name.toLowerCase().includes('logo') && !name.toLowerCase().includes('eu')) // Exclude names containing "logo" or "eu"
|
|
289
|
+
.map(([name, svgContent]) => ({
|
|
290
|
+
name,
|
|
291
|
+
icon: svgContent // Pass SVG content as innerHTML
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
render() {
|
|
295
|
+
const svgData = this.getSvgData();
|
|
296
|
+
// Define table configuration
|
|
297
|
+
const tableConfig = {
|
|
298
|
+
icon: {
|
|
299
|
+
format: 'svg'
|
|
300
|
+
},
|
|
301
|
+
name: {
|
|
302
|
+
format: 'bold'
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
return h("eds-table", {
|
|
306
|
+
key: 'd5b4cdb69826e22d716bf9bf4ff7fb9ab1f65044',
|
|
307
|
+
data: JSON.stringify(svgData),
|
|
308
|
+
config: JSON.stringify(tableConfig),
|
|
309
|
+
"rows-per-page": 10,
|
|
310
|
+
"search-enabled": true,
|
|
311
|
+
"pagination-enabled": true
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export { EdsSvgRepository as eds_svg_repository };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index.esm2.js';
|
|
2
|
+
import { c as cva } from './index-39c58238.esm.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
|
|
7
|
+
const EdsTab = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.tabCva = cva(['cursor-pointer',
|
|
11
|
+
//'px-16 py-12',
|
|
12
|
+
//'border-b-2',
|
|
13
|
+
'text-gray-700', 'hover:text-black', 'focus:outline-none', 'focus-visible:ring'], {
|
|
14
|
+
variants: {
|
|
15
|
+
active: {
|
|
16
|
+
true: 'border-blue-500 font-bold text-blue-600',
|
|
17
|
+
false: 'border-transparent'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
active: false
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
this.label = undefined;
|
|
25
|
+
this.url = undefined;
|
|
26
|
+
this.active = false;
|
|
27
|
+
this.ariaLabel = undefined;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return h("a", {
|
|
31
|
+
key: 'ba4c995637d8d305249f018a0451775f45907716',
|
|
32
|
+
"aria-label": this.label,
|
|
33
|
+
"aria-current": this.active,
|
|
34
|
+
class: this.tabCva({
|
|
35
|
+
active: this.active
|
|
36
|
+
})
|
|
37
|
+
}, this.label);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { EdsTab as eds_tab };
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
|
|
6
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}";
|
|
7
|
+
const EdsTableStyle0 = edsTableCss;
|
|
8
|
+
const EdsTable = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.minWidth = 400; // Minimum width for components in px
|
|
12
|
+
this.data = null;
|
|
13
|
+
this.endpoint = null;
|
|
14
|
+
this.config = {};
|
|
15
|
+
this.rowsPerPage = 10;
|
|
16
|
+
this.paginationEnabled = true;
|
|
17
|
+
this.searchEnabled = false;
|
|
18
|
+
this.tableData = [];
|
|
19
|
+
this.columns = [];
|
|
20
|
+
this.currentPage = 1;
|
|
21
|
+
this.parsedConfig = {};
|
|
22
|
+
this.totalRows = 0;
|
|
23
|
+
this.searchQuery = '';
|
|
24
|
+
}
|
|
25
|
+
handleDataChange() {
|
|
26
|
+
this.parseData();
|
|
27
|
+
}
|
|
28
|
+
handleConfigChange() {
|
|
29
|
+
this.parseConfig();
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
this.parseConfig();
|
|
33
|
+
this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
34
|
+
}
|
|
35
|
+
componentDidLoad() {
|
|
36
|
+
this.setupPaginationListener();
|
|
37
|
+
}
|
|
38
|
+
componentDidUpdate() {
|
|
39
|
+
this.setupPaginationListener();
|
|
40
|
+
}
|
|
41
|
+
parseData() {
|
|
42
|
+
try {
|
|
43
|
+
this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
44
|
+
this.totalRows = this.tableData.length;
|
|
45
|
+
this.updateColumns();
|
|
46
|
+
this.currentPage = 1;
|
|
47
|
+
} catch (error) {
|
|
48
|
+
// eslint-disable-next-line
|
|
49
|
+
console.error('Failed to parse data:', error);
|
|
50
|
+
this.tableData = [];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
parseConfig() {
|
|
54
|
+
try {
|
|
55
|
+
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
56
|
+
} catch (error) {
|
|
57
|
+
// eslint-disable-next-line
|
|
58
|
+
console.error('Failed to parse config:', error);
|
|
59
|
+
this.parsedConfig = {};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async fetchData() {
|
|
63
|
+
try {
|
|
64
|
+
const response = await fetch(this.endpoint);
|
|
65
|
+
const data = await response.json();
|
|
66
|
+
this.data = data;
|
|
67
|
+
} catch (error) {
|
|
68
|
+
// eslint-disable-next-line
|
|
69
|
+
console.error('Failed to fetch data:', error);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
setupPaginationListener() {
|
|
73
|
+
if (!this.shouldEnablePagination()) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
77
|
+
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
78
|
+
paginationEl.addEventListener('pageChange', event => this.handlePageChange(event.detail));
|
|
79
|
+
paginationEl.setAttribute('listener-attached', 'true');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
getFilteredRows() {
|
|
83
|
+
return this.tableData.filter(row => Object.values(row).some(value => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
84
|
+
}
|
|
85
|
+
getPaginatedRows() {
|
|
86
|
+
const filteredRows = this.getFilteredRows();
|
|
87
|
+
this.totalRows = filteredRows.length;
|
|
88
|
+
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
89
|
+
return filteredRows.slice(start, start + this.rowsPerPage);
|
|
90
|
+
}
|
|
91
|
+
handlePageChange(newPage) {
|
|
92
|
+
this.currentPage = newPage;
|
|
93
|
+
}
|
|
94
|
+
handleSearch(event) {
|
|
95
|
+
this.searchQuery = event.target.value;
|
|
96
|
+
this.currentPage = 1;
|
|
97
|
+
}
|
|
98
|
+
renderCell(value, column) {
|
|
99
|
+
var _a;
|
|
100
|
+
const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
|
|
101
|
+
return format === 'uppercase' ? value === null || value === void 0 ? void 0 : value.toString().toUpperCase() : format === 'svg' ? h("div", {
|
|
102
|
+
innerHTML: value
|
|
103
|
+
}) : format === 'bold' ? h("strong", null, value) : format === 'code' ? h("code", null, value) : value;
|
|
104
|
+
}
|
|
105
|
+
shouldEnablePagination() {
|
|
106
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
107
|
+
}
|
|
108
|
+
updateColumns() {
|
|
109
|
+
this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
|
|
110
|
+
}
|
|
111
|
+
getVisibleColumnsCount() {
|
|
112
|
+
return this.columns.filter(column => {
|
|
113
|
+
var _a;
|
|
114
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden);
|
|
115
|
+
}).length;
|
|
116
|
+
}
|
|
117
|
+
render() {
|
|
118
|
+
const paginatedRows = this.getPaginatedRows();
|
|
119
|
+
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
120
|
+
// Calculate column width based on minWidth and number of columns
|
|
121
|
+
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
122
|
+
// Use the visible column count to calculate the column width
|
|
123
|
+
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
124
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.max(this.minWidth / visibleColumnsCount, 100) : 100;
|
|
125
|
+
return h("div", {
|
|
126
|
+
key: 'c5e50673eb1ed5cf00e0294885bf9cd6d13f9366',
|
|
127
|
+
class: "container",
|
|
128
|
+
style: {
|
|
129
|
+
minWidth: `${this.minWidth}px`
|
|
130
|
+
}
|
|
131
|
+
}, h("div", {
|
|
132
|
+
key: '0e0814a8cb5ae1e11538a26cba630e59d39dde74'
|
|
133
|
+
}, this.searchEnabled && h("eds-input-field", {
|
|
134
|
+
key: 1,
|
|
135
|
+
name: "search",
|
|
136
|
+
"aria-label": "Search",
|
|
137
|
+
type: "text",
|
|
138
|
+
placeholder: "Search...",
|
|
139
|
+
// @ts-ignore
|
|
140
|
+
onInput: event => this.handleSearch(event)
|
|
141
|
+
})), h("div", {
|
|
142
|
+
key: '65e0c9057c313f220655ecd7692a83c932f441b3',
|
|
143
|
+
class: "mt-20"
|
|
144
|
+
}, h("table", {
|
|
145
|
+
key: '9e77153c2e0983f7598a21ef55ebcf3107655e09',
|
|
146
|
+
class: "block overflow-x-auto mt-6 p-0"
|
|
147
|
+
}, h("thead", {
|
|
148
|
+
key: '38e5ac67ffae80d896c29357615d19b5dfcc52d3'
|
|
149
|
+
}, h("tr", {
|
|
150
|
+
key: '526c5b30da0a2aa97bb90f5b473b3e9ea41dde6b',
|
|
151
|
+
class: "m-0 p-0 border border-softer even:bg-inverse-softer"
|
|
152
|
+
}, this.columns.map(column => {
|
|
153
|
+
var _a;
|
|
154
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && h("th", {
|
|
155
|
+
class: "m-0 px-20 py-8 border border-softer f-ui-02",
|
|
156
|
+
style: {
|
|
157
|
+
minWidth: `${columnWidth}px`
|
|
158
|
+
}
|
|
159
|
+
}, column);
|
|
160
|
+
}))), h("tbody", {
|
|
161
|
+
key: '5a10525ed86eac82291746be4c6cce5f65942d2d'
|
|
162
|
+
}, paginatedRows.map(row => h("tr", {
|
|
163
|
+
class: "m-0 p-0 border border-softer even:bg-inverse-softer"
|
|
164
|
+
}, this.columns.map(column => {
|
|
165
|
+
var _a;
|
|
166
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && h("td", {
|
|
167
|
+
class: "text-center border border-softer m-0 px-20 py-8 f-ui-2",
|
|
168
|
+
style: {
|
|
169
|
+
minWidth: `${columnWidth}px`
|
|
170
|
+
}
|
|
171
|
+
}, this.renderCell(row[column], column));
|
|
172
|
+
})))))), h("div", {
|
|
173
|
+
key: 'af1183fd3e635c7d7ac982231adfdd9d892f6979',
|
|
174
|
+
class: "mt-20"
|
|
175
|
+
}, this.shouldEnablePagination() && h("eds-pagination", {
|
|
176
|
+
key: 'a5de7f25054c2d67f0788bfd2bc37d07f46de02c',
|
|
177
|
+
currentPage: this.currentPage,
|
|
178
|
+
lastPage: lastPage,
|
|
179
|
+
perPage: this.rowsPerPage,
|
|
180
|
+
total: this.totalRows,
|
|
181
|
+
mode: "default"
|
|
182
|
+
})));
|
|
183
|
+
}
|
|
184
|
+
get hostEl() {
|
|
185
|
+
return getElement(this);
|
|
186
|
+
}
|
|
187
|
+
static get watchers() {
|
|
188
|
+
return {
|
|
189
|
+
"data": ["handleDataChange"],
|
|
190
|
+
"config": ["handleConfigChange"]
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
EdsTable.style = EdsTableStyle0;
|
|
195
|
+
|
|
196
|
+
export { EdsTable as eds_table };
|