@proximus/lavender-table 2.0.0-alpha.2 → 2.0.0-alpha.200

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.
@@ -0,0 +1,415 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/Table.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "Table",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "template",
17
+ "privacy": "private"
18
+ },
19
+ {
20
+ "kind": "field",
21
+ "name": "innerHTML"
22
+ },
23
+ {
24
+ "kind": "field",
25
+ "name": "adoptedStyleSheets",
26
+ "type": {
27
+ "text": "array"
28
+ },
29
+ "default": "[styleSheet]"
30
+ }
31
+ ],
32
+ "superclass": {
33
+ "name": "HTMLElement"
34
+ },
35
+ "tagName": "px-table",
36
+ "customElement": true
37
+ }
38
+ ],
39
+ "exports": [
40
+ {
41
+ "kind": "js",
42
+ "name": "Table",
43
+ "declaration": {
44
+ "name": "Table",
45
+ "module": "src/Table.ts"
46
+ }
47
+ },
48
+ {
49
+ "kind": "custom-element-definition",
50
+ "name": "px-table",
51
+ "declaration": {
52
+ "name": "Table",
53
+ "module": "src/Table.ts"
54
+ }
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "kind": "javascript-module",
60
+ "path": "src/Tbody.ts",
61
+ "declarations": [
62
+ {
63
+ "kind": "class",
64
+ "description": "",
65
+ "name": "Tbody",
66
+ "members": [
67
+ {
68
+ "kind": "field",
69
+ "name": "template",
70
+ "privacy": "private"
71
+ },
72
+ {
73
+ "kind": "field",
74
+ "name": "innerHTML"
75
+ },
76
+ {
77
+ "kind": "field",
78
+ "name": "adoptedStyleSheets",
79
+ "type": {
80
+ "text": "array"
81
+ },
82
+ "default": "[styleSheet]"
83
+ }
84
+ ],
85
+ "superclass": {
86
+ "name": "HTMLElement"
87
+ },
88
+ "tagName": "px-tbody",
89
+ "customElement": true
90
+ }
91
+ ],
92
+ "exports": [
93
+ {
94
+ "kind": "js",
95
+ "name": "Tbody",
96
+ "declaration": {
97
+ "name": "Tbody",
98
+ "module": "src/Tbody.ts"
99
+ }
100
+ },
101
+ {
102
+ "kind": "custom-element-definition",
103
+ "name": "px-tbody",
104
+ "declaration": {
105
+ "name": "Tbody",
106
+ "module": "src/Tbody.ts"
107
+ }
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "kind": "javascript-module",
113
+ "path": "src/Td.ts",
114
+ "declarations": [
115
+ {
116
+ "kind": "class",
117
+ "description": "",
118
+ "name": "Td",
119
+ "members": [
120
+ {
121
+ "kind": "field",
122
+ "name": "template",
123
+ "privacy": "private"
124
+ },
125
+ {
126
+ "kind": "field",
127
+ "name": "innerHTML"
128
+ },
129
+ {
130
+ "kind": "field",
131
+ "name": "adoptedStyleSheets",
132
+ "type": {
133
+ "text": "array"
134
+ },
135
+ "default": "[styleSheet]"
136
+ }
137
+ ],
138
+ "superclass": {
139
+ "name": "HTMLElement"
140
+ },
141
+ "tagName": "px-td",
142
+ "customElement": true
143
+ }
144
+ ],
145
+ "exports": [
146
+ {
147
+ "kind": "js",
148
+ "name": "Td",
149
+ "declaration": {
150
+ "name": "Td",
151
+ "module": "src/Td.ts"
152
+ }
153
+ },
154
+ {
155
+ "kind": "custom-element-definition",
156
+ "name": "px-td",
157
+ "declaration": {
158
+ "name": "Td",
159
+ "module": "src/Td.ts"
160
+ }
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "kind": "javascript-module",
166
+ "path": "src/Th.ts",
167
+ "declarations": [
168
+ {
169
+ "kind": "class",
170
+ "description": "",
171
+ "name": "Th",
172
+ "members": [
173
+ {
174
+ "kind": "field",
175
+ "name": "template",
176
+ "privacy": "private"
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "innerHTML"
181
+ },
182
+ {
183
+ "kind": "field",
184
+ "name": "adoptedStyleSheets",
185
+ "type": {
186
+ "text": "array"
187
+ },
188
+ "default": "[styleSheet]"
189
+ }
190
+ ],
191
+ "superclass": {
192
+ "name": "HTMLElement"
193
+ },
194
+ "tagName": "px-th",
195
+ "customElement": true
196
+ }
197
+ ],
198
+ "exports": [
199
+ {
200
+ "kind": "js",
201
+ "name": "Th",
202
+ "declaration": {
203
+ "name": "Th",
204
+ "module": "src/Th.ts"
205
+ }
206
+ },
207
+ {
208
+ "kind": "custom-element-definition",
209
+ "name": "px-th",
210
+ "declaration": {
211
+ "name": "Th",
212
+ "module": "src/Th.ts"
213
+ }
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ "kind": "javascript-module",
219
+ "path": "src/Thead.ts",
220
+ "declarations": [
221
+ {
222
+ "kind": "class",
223
+ "description": "",
224
+ "name": "Thead",
225
+ "members": [
226
+ {
227
+ "kind": "field",
228
+ "name": "template",
229
+ "privacy": "private"
230
+ },
231
+ {
232
+ "kind": "field",
233
+ "name": "innerHTML"
234
+ },
235
+ {
236
+ "kind": "field",
237
+ "name": "adoptedStyleSheets",
238
+ "type": {
239
+ "text": "array"
240
+ },
241
+ "default": "[styleSheet]"
242
+ }
243
+ ],
244
+ "superclass": {
245
+ "name": "HTMLElement"
246
+ },
247
+ "tagName": "px-thead",
248
+ "customElement": true
249
+ }
250
+ ],
251
+ "exports": [
252
+ {
253
+ "kind": "js",
254
+ "name": "Thead",
255
+ "declaration": {
256
+ "name": "Thead",
257
+ "module": "src/Thead.ts"
258
+ }
259
+ },
260
+ {
261
+ "kind": "custom-element-definition",
262
+ "name": "px-thead",
263
+ "declaration": {
264
+ "name": "Thead",
265
+ "module": "src/Thead.ts"
266
+ }
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "kind": "javascript-module",
272
+ "path": "src/Tr.ts",
273
+ "declarations": [
274
+ {
275
+ "kind": "class",
276
+ "description": "",
277
+ "name": "Tr",
278
+ "members": [
279
+ {
280
+ "kind": "field",
281
+ "name": "template",
282
+ "privacy": "private"
283
+ },
284
+ {
285
+ "kind": "field",
286
+ "name": "innerHTML"
287
+ },
288
+ {
289
+ "kind": "field",
290
+ "name": "adoptedStyleSheets",
291
+ "type": {
292
+ "text": "array"
293
+ },
294
+ "default": "[styleSheet]"
295
+ }
296
+ ],
297
+ "superclass": {
298
+ "name": "HTMLElement"
299
+ },
300
+ "tagName": "px-tr",
301
+ "customElement": true
302
+ }
303
+ ],
304
+ "exports": [
305
+ {
306
+ "kind": "js",
307
+ "name": "Tr",
308
+ "declaration": {
309
+ "name": "Tr",
310
+ "module": "src/Tr.ts"
311
+ }
312
+ },
313
+ {
314
+ "kind": "custom-element-definition",
315
+ "name": "px-tr",
316
+ "declaration": {
317
+ "name": "Tr",
318
+ "module": "src/Tr.ts"
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "kind": "javascript-module",
325
+ "path": "src/index.ts",
326
+ "declarations": [],
327
+ "exports": [
328
+ {
329
+ "kind": "js",
330
+ "name": "*",
331
+ "declaration": {
332
+ "name": "*",
333
+ "module": "src/Table"
334
+ }
335
+ },
336
+ {
337
+ "kind": "js",
338
+ "name": "*",
339
+ "declaration": {
340
+ "name": "*",
341
+ "module": "src/Thead"
342
+ }
343
+ },
344
+ {
345
+ "kind": "js",
346
+ "name": "*",
347
+ "declaration": {
348
+ "name": "*",
349
+ "module": "src/Tr"
350
+ }
351
+ },
352
+ {
353
+ "kind": "js",
354
+ "name": "*",
355
+ "declaration": {
356
+ "name": "*",
357
+ "module": "src/Th"
358
+ }
359
+ },
360
+ {
361
+ "kind": "js",
362
+ "name": "*",
363
+ "declaration": {
364
+ "name": "*",
365
+ "module": "src/Tbody"
366
+ }
367
+ },
368
+ {
369
+ "kind": "js",
370
+ "name": "*",
371
+ "declaration": {
372
+ "name": "*",
373
+ "module": "src/Td"
374
+ }
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "kind": "javascript-module",
380
+ "path": "src/table.css",
381
+ "declarations": [],
382
+ "exports": []
383
+ },
384
+ {
385
+ "kind": "javascript-module",
386
+ "path": "src/tbody.css",
387
+ "declarations": [],
388
+ "exports": []
389
+ },
390
+ {
391
+ "kind": "javascript-module",
392
+ "path": "src/td.css",
393
+ "declarations": [],
394
+ "exports": []
395
+ },
396
+ {
397
+ "kind": "javascript-module",
398
+ "path": "src/th.css",
399
+ "declarations": [],
400
+ "exports": []
401
+ },
402
+ {
403
+ "kind": "javascript-module",
404
+ "path": "src/thead.css",
405
+ "declarations": [],
406
+ "exports": []
407
+ },
408
+ {
409
+ "kind": "javascript-module",
410
+ "path": "src/tr.css",
411
+ "declarations": [],
412
+ "exports": []
413
+ }
414
+ ]
415
+ }
package/dist/index.es.js CHANGED
@@ -1,112 +1,86 @@
1
1
  import "@proximus/lavender-layout";
2
- const n = ":host{display:table;width:100%}", s = new CSSStyleSheet();
3
- s.replaceSync(n);
4
- class p extends HTMLElement {
5
- constructor() {
6
- super(), this.template = () => `
7
- <slot></slot>
8
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [s];
9
- }
10
- connectedCallback() {
11
- this.style.display = "table", this.setAttribute("role", "table");
12
- }
13
- }
14
- customElements.get("px-table") || customElements.define("px-table", p);
15
- const c = ":host{display:table-header-group}::slotted(px-tr){background-color:var(--px-color-background-container-default-default)}", l = new CSSStyleSheet();
16
- l.replaceSync(c);
17
- class h extends HTMLElement {
18
- constructor() {
19
- super(), this.template = () => `
20
- <slot></slot>
21
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [l];
22
- }
23
- connectedCallback() {
24
- this.style.display = "table-header-group", this.setAttribute("role", "rowgroup");
25
- }
26
- }
27
- customElements.get("px-thead") || customElements.define("px-thead", h);
28
- const x = ":host{display:table-row}", a = new CSSStyleSheet();
29
- a.replaceSync(x);
30
- class m extends HTMLElement {
31
- constructor() {
32
- super(), this.template = () => `
33
- <slot></slot>
34
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [a];
35
- }
36
- connectedCallback() {
37
- this.style.display = "table-row", this.setAttribute("role", "row");
38
- }
39
- }
40
- customElements.get("px-tr") || customElements.define("px-tr", m);
41
- const b = ':host{display:table-cell;vertical-align:middle;border-bottom:var(--px-size-border-l) solid var(--th-border-color-default, var(--px-color-border-main-default))}.th{padding:var(--px-padding-s-mobile) var(--px-padding-xs-mobile);font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.th ::slotted([slot="description"]){font-size:var(--px-text-size-body-s-mobile);color:var(--px-color-text-dimmed-default)}@media only screen and (min-width: 768px){.th{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.th ::slotted([slot="description"]){font-size:var(--px-text-size-body-s-desktop)}}@media only screen and (min-width: 1025px){.th{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.th ::slotted([slot="description"]){font-size:var(--px-text-size-body-s-desktop)}}', d = new CSSStyleSheet();
42
- d.replaceSync(b);
43
- class y extends HTMLElement {
44
- constructor() {
45
- super(), this.template = () => `
46
- <div class="th">
47
- <px-vstack gap="none">
48
- <px-hstack gap="2xs" align-items="center">
49
- <slot></slot>
50
- <slot name="info"></slot>
51
- </px-hstack>
52
- <slot name="description"></slot>
53
- </px-vstack>
54
- </div>
55
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [d];
56
- }
57
- connectedCallback() {
58
- this.style.display = "table-cell", this.style.verticalAlign = "middle", this.style.borderBottom = "var(--px-border-size-l) solid var(--th-border-color-default)", this.setAttribute("role", "columnheader");
59
- const t = this.querySelector('[slot="info"]');
60
- t && (t.setAttribute("size", "xs"), t.setAttribute("color", "brand"));
61
- }
62
- }
63
- customElements.get("px-th") || customElements.define("px-th", y);
64
- const u = ":host{display:table-row-group}::slotted(px-tr){background-color:var(--px-color-background-container-default-default)}::slotted(px-tr:hover){background-color:var(--px-color-background-state-hover-default)}", i = new CSSStyleSheet();
65
- i.replaceSync(u);
66
- class f extends HTMLElement {
67
- constructor() {
68
- super(), this.template = () => `
69
- <slot></slot>
70
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [i];
71
- }
72
- connectedCallback() {
73
- this.style.display = "table-row-group", this.setAttribute("role", "rowgroup");
74
- }
75
- }
76
- customElements.get("px-tbody") || customElements.define("px-tbody", f);
77
- const v = ':host{display:table-cell;vertical-align:middle;border-bottom:var(--px-size-border-m) solid var(--td-border-color-default, var(--px-color-border-main-default))}.td{height:100%;padding:var(--px-padding-s-mobile) var(--px-padding-xs-mobile);font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.td ::slotted([slot="description"]){font-size:var(--px-text-size-body-s-mobile);color:var(--px-color-text-dimmed-default)}@media only screen and (min-width: 768px){.td{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.td ::slotted([slot="description"]){font-size:var(--px-text-size-body-s-desktop)}}@media only screen and (min-width: 1025px){.td{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.td ::slotted([slot="description"]){font-size:var(--px-text-size-body-s-desktop)}}', r = new CSSStyleSheet();
78
- r.replaceSync(v);
79
- class g extends HTMLElement {
80
- constructor() {
81
- super(), this.template = () => `
82
- <div class="td">
83
- <px-hstack gap="xs" align-items="center">
84
- <slot name="icon"></slot>
85
- <px-vstack gap="none" align-items="flex-start">
86
- <px-hstack gap="2xs" align-items="center">
87
- <slot></slot>
88
- <slot name="info"></slot>
89
- </px-hstack>
90
- <slot name="description"></slot>
91
- </px-vstack>
92
- </px-hstack>
93
- </div>
94
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [r];
95
- }
96
- connectedCallback() {
97
- this.style.display = "table-cell", this.style.verticalAlign = "middle", this.style.borderBottom = "var(--px-border-size-m) solid var(--td-border-color-default)", this.setAttribute("role", "cell");
98
- const t = this.querySelector('[slot="icon"]');
99
- t && (t.setAttribute("size", "l"), t.setAttribute("color", "neutral"));
100
- const o = this.querySelector('[slot="info"]');
101
- o && (o.setAttribute("size", "xs"), o.setAttribute("color", "brand"));
102
- }
103
- }
104
- customElements.get("px-td") || customElements.define("px-td", g);
105
- export {
106
- p as Table,
107
- f as Tbody,
108
- g as Td,
109
- y as Th,
110
- h as Thead,
111
- m as Tr
2
+ //#region src/table.css?inline
3
+ var e = ":host{width:100%;display:table}", t = new CSSStyleSheet();
4
+ t.replaceSync(e);
5
+ var n = class extends HTMLElement {
6
+ constructor() {
7
+ super(), this.template = () => "\n <slot></slot>\n ", this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [t];
8
+ }
9
+ connectedCallback() {
10
+ this.style.display = "table", this.setAttribute("role", "table");
11
+ }
112
12
  };
13
+ customElements.get("px-table") || customElements.define("px-table", n);
14
+ //#endregion
15
+ //#region src/thead.css?inline
16
+ var r = ":host{display:table-header-group}::slotted(px-tr){background-color:var(--px-color-background-container-default-default)}", i = new CSSStyleSheet();
17
+ i.replaceSync(r);
18
+ var a = class extends HTMLElement {
19
+ constructor() {
20
+ super(), this.template = () => "\n <slot></slot>\n ", this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [i];
21
+ }
22
+ connectedCallback() {
23
+ this.style.display = "table-header-group", this.setAttribute("role", "rowgroup");
24
+ }
25
+ };
26
+ customElements.get("px-thead") || customElements.define("px-thead", a);
27
+ //#endregion
28
+ //#region src/tr.css?inline
29
+ var o = ":host{display:table-row}", s = new CSSStyleSheet();
30
+ s.replaceSync(o);
31
+ var c = class extends HTMLElement {
32
+ constructor() {
33
+ super(), this.template = () => "\n <slot></slot>\n ", this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [s];
34
+ }
35
+ connectedCallback() {
36
+ this.style.display = "table-row", this.setAttribute("role", "row");
37
+ }
38
+ };
39
+ customElements.get("px-tr") || customElements.define("px-tr", c);
40
+ //#endregion
41
+ //#region src/th.css?inline
42
+ var l = ":host{vertical-align:middle;border-bottom:var(--px-size-border-l) solid var(--th-border-color-default,var(--px-color-border-main-default));display:table-cell}.th{padding:var(--px-padding-s-mobile) var(--px-padding-xs-mobile);font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-neutral-default);line-height:var(--px-line-height-ratio-l)}.th ::slotted([slot=description]){font-size:var(--px-text-size-body-s-mobile);color:var(--px-color-text-dimmed-default)}.th ::slotted(*){font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l)}@media screen and (width>=48rem){.th{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.th ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.th ::slotted(*){font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){.th{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.th ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.th ::slotted(*){font-size:var(--px-text-size-body-m-laptop)}}", u = new CSSStyleSheet();
43
+ u.replaceSync(l);
44
+ var d = class extends HTMLElement {
45
+ constructor() {
46
+ super(), this.template = () => "\n <div class=\"th\">\n <px-vstack gap=\"none\">\n <px-hstack gap=\"2xs\" align-items=\"center\">\n <slot></slot>\n <slot name=\"info\"></slot>\n </px-hstack>\n <slot name=\"description\"></slot>\n </px-vstack>\n </div>\n ", this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [u];
47
+ }
48
+ connectedCallback() {
49
+ this.style.display = "table-cell", this.style.verticalAlign = "middle", this.style.borderBottom = "var(--px-border-size-l) solid var(--th-border-color-default)", this.setAttribute("role", "columnheader");
50
+ let e = this.querySelector("[slot=\"info\"]");
51
+ e && (e.setAttribute("size", "xs"), e.setAttribute("color", "brand"));
52
+ }
53
+ };
54
+ customElements.get("px-th") || customElements.define("px-th", d);
55
+ //#endregion
56
+ //#region src/tbody.css?inline
57
+ var f = ":host{display:table-row-group}::slotted(px-tr){background-color:var(--px-color-background-container-default-default)}::slotted(px-tr:hover){background-color:var(--px-color-background-state-hover-default)}", p = new CSSStyleSheet();
58
+ p.replaceSync(f);
59
+ var m = class extends HTMLElement {
60
+ constructor() {
61
+ super(), this.template = () => "\n <slot></slot>\n ", this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [p];
62
+ }
63
+ connectedCallback() {
64
+ this.style.display = "table-row-group", this.setAttribute("role", "rowgroup");
65
+ }
66
+ };
67
+ customElements.get("px-tbody") || customElements.define("px-tbody", m);
68
+ //#endregion
69
+ //#region src/td.css?inline
70
+ var h = ":host{vertical-align:middle;line-height:var(--px-line-height-ratio-l);border-bottom:var(--px-size-border-m) solid var(--td-border-color-default,var(--px-color-border-main-default));display:table-cell}.td{height:100%;padding:var(--px-padding-s-mobile) var(--px-padding-xs-mobile);font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.td ::slotted([slot=description]){font-size:var(--px-text-size-body-s-mobile);color:var(--px-color-text-dimmed-default)}.td ::slotted(*){font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l)}@media screen and (width>=48rem){.td{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.td ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.td ::slotted(*){font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){.td{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.td ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.td ::slotted(*){font-size:var(--px-text-size-body-m-laptop)}}", g = new CSSStyleSheet();
71
+ g.replaceSync(h);
72
+ var _ = class extends HTMLElement {
73
+ constructor() {
74
+ super(), this.template = () => "\n <div class=\"td\">\n <px-hstack gap=\"xs\" align-items=\"center\">\n <slot name=\"icon\"></slot>\n <px-vstack gap=\"none\" align-items=\"flex-start\">\n <px-hstack gap=\"2xs\" align-items=\"center\">\n <slot></slot>\n <slot name=\"info\"></slot>\n </px-hstack>\n <slot name=\"description\"></slot>\n </px-vstack>\n </px-hstack>\n </div>\n ", this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [g];
75
+ }
76
+ connectedCallback() {
77
+ this.style.display = "table-cell", this.style.verticalAlign = "middle", this.style.borderBottom = "var(--px-border-size-m) solid var(--td-border-color-default)", this.setAttribute("role", "cell");
78
+ let e = this.querySelector("[slot=\"icon\"]");
79
+ e && (e.setAttribute("size", "l"), e.setAttribute("color", "neutral"));
80
+ let t = this.querySelector("[slot=\"info\"]");
81
+ t && (t.setAttribute("size", "xs"), t.setAttribute("color", "brand"));
82
+ }
83
+ };
84
+ customElements.get("px-td") || customElements.define("px-td", _);
85
+ //#endregion
86
+ export { n as Table, m as Tbody, _ as Td, d as Th, a as Thead, c as Tr };
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "properties": [],
5
+ "pseudoElements": []
6
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "tags": [
5
+ {
6
+ "name": "px-table",
7
+ "description": "\n---\n",
8
+ "attributes": [],
9
+ "references": []
10
+ },
11
+ {
12
+ "name": "px-tbody",
13
+ "description": "\n---\n",
14
+ "attributes": [],
15
+ "references": []
16
+ },
17
+ {
18
+ "name": "px-td",
19
+ "description": "\n---\n",
20
+ "attributes": [],
21
+ "references": []
22
+ },
23
+ {
24
+ "name": "px-th",
25
+ "description": "\n---\n",
26
+ "attributes": [],
27
+ "references": []
28
+ },
29
+ {
30
+ "name": "px-thead",
31
+ "description": "\n---\n",
32
+ "attributes": [],
33
+ "references": []
34
+ },
35
+ {
36
+ "name": "px-tr",
37
+ "description": "\n---\n",
38
+ "attributes": [],
39
+ "references": []
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-table",
4
+ "version": "2.0.0-alpha.200",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-table",
11
+ "description": "\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [],
14
+ "events": [],
15
+ "js": {
16
+ "properties": [
17
+ { "name": "innerHTML" },
18
+ { "name": "adoptedStyleSheets", "type": "array" }
19
+ ],
20
+ "events": []
21
+ }
22
+ },
23
+ {
24
+ "name": "px-tbody",
25
+ "description": "\n---\n",
26
+ "doc-url": "",
27
+ "attributes": [],
28
+ "events": [],
29
+ "js": {
30
+ "properties": [
31
+ { "name": "innerHTML" },
32
+ { "name": "adoptedStyleSheets", "type": "array" }
33
+ ],
34
+ "events": []
35
+ }
36
+ },
37
+ {
38
+ "name": "px-td",
39
+ "description": "\n---\n",
40
+ "doc-url": "",
41
+ "attributes": [],
42
+ "events": [],
43
+ "js": {
44
+ "properties": [
45
+ { "name": "innerHTML" },
46
+ { "name": "adoptedStyleSheets", "type": "array" }
47
+ ],
48
+ "events": []
49
+ }
50
+ },
51
+ {
52
+ "name": "px-th",
53
+ "description": "\n---\n",
54
+ "doc-url": "",
55
+ "attributes": [],
56
+ "events": [],
57
+ "js": {
58
+ "properties": [
59
+ { "name": "innerHTML" },
60
+ { "name": "adoptedStyleSheets", "type": "array" }
61
+ ],
62
+ "events": []
63
+ }
64
+ },
65
+ {
66
+ "name": "px-thead",
67
+ "description": "\n---\n",
68
+ "doc-url": "",
69
+ "attributes": [],
70
+ "events": [],
71
+ "js": {
72
+ "properties": [
73
+ { "name": "innerHTML" },
74
+ { "name": "adoptedStyleSheets", "type": "array" }
75
+ ],
76
+ "events": []
77
+ }
78
+ },
79
+ {
80
+ "name": "px-tr",
81
+ "description": "\n---\n",
82
+ "doc-url": "",
83
+ "attributes": [],
84
+ "events": [],
85
+ "js": {
86
+ "properties": [
87
+ { "name": "innerHTML" },
88
+ { "name": "adoptedStyleSheets", "type": "array" }
89
+ ],
90
+ "events": []
91
+ }
92
+ }
93
+ ]
94
+ },
95
+ "css": {
96
+ "properties": [],
97
+ "pseudo-elements": []
98
+ }
99
+ }
100
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-table",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.200",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"