@maggioli-design-system/mds-table-row 1.2.1 → 2.0.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 (68) hide show
  1. package/dist/cjs/{index-797b786c.js → index-2159a30d.js} +166 -376
  2. package/dist/cjs/loader.cjs.js +3 -3
  3. package/dist/cjs/mds-table-row.cjs.entry.js +4 -45
  4. package/dist/cjs/mds-table-row.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/mds-table-row/mds-table-row.css +22 -23
  7. package/dist/collection/components/mds-table-row/mds-table-row.js +21 -5
  8. package/dist/collection/dictionary/floating-ui.js +19 -0
  9. package/dist/collection/dictionary/icon.js +2 -2
  10. package/dist/collection/dictionary/typography.js +6 -1
  11. package/dist/collection/types/floating-ui.js +1 -0
  12. package/dist/components/index.d.ts +1 -1
  13. package/dist/components/mds-table-row.js +7 -48
  14. package/dist/esm/{index-7d849f54.js → index-1e8e95d7.js} +166 -376
  15. package/dist/esm/loader.js +3 -3
  16. package/dist/esm/mds-table-row.entry.js +4 -45
  17. package/dist/esm/mds-table-row.js +3 -3
  18. package/dist/esm/polyfills/css-shim.js +1 -1
  19. package/dist/esm-es5/index-1e8e95d7.js +2 -0
  20. package/dist/esm-es5/loader.js +1 -1
  21. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  22. package/dist/esm-es5/mds-table-row.js +1 -1
  23. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  24. package/dist/mds-table-row/mds-table-row.js +1 -1
  25. package/dist/mds-table-row/p-c6fbd532.system.js +2 -0
  26. package/dist/mds-table-row/p-c8145b7b.system.entry.js +1 -0
  27. package/dist/mds-table-row/p-ca70a50c.entry.js +1 -0
  28. package/dist/mds-table-row/p-caab8e1e.system.js +1 -0
  29. package/dist/mds-table-row/p-f5a4be35.js +2 -0
  30. package/dist/stats.json +98 -56
  31. package/dist/types/components/mds-table-row/mds-table-row.d.ts +1 -1
  32. package/dist/types/components.d.ts +2 -0
  33. package/dist/types/dictionary/floating-ui.d.ts +3 -0
  34. package/dist/types/dictionary/typography.d.ts +2 -1
  35. package/dist/types/types/floating-ui.d.ts +2 -0
  36. package/dist/types/types/typography.d.ts +1 -0
  37. package/package.json +6 -8
  38. package/readme.md +8 -0
  39. package/src/components/mds-table-row/.gitlab-ci.yml +25 -0
  40. package/src/components/mds-table-row/mds-table-row.css +12 -22
  41. package/src/components/mds-table-row/mds-table-row.tsx +4 -5
  42. package/src/components/mds-table-row/readme.md +8 -0
  43. package/src/components.d.ts +2 -0
  44. package/src/dictionary/floating-ui.ts +25 -0
  45. package/src/dictionary/icon.ts +2 -2
  46. package/src/dictionary/typography.ts +7 -0
  47. package/src/fixtures/icons.json +64 -0
  48. package/src/tailwind/components.css +14 -0
  49. package/src/types/floating-ui.ts +17 -0
  50. package/src/types/typography.ts +5 -0
  51. package/www/build/mds-table-row.esm.js +1 -1
  52. package/www/build/mds-table-row.js +1 -1
  53. package/www/build/p-c6fbd532.system.js +2 -0
  54. package/www/build/p-c8145b7b.system.entry.js +1 -0
  55. package/www/build/p-ca70a50c.entry.js +1 -0
  56. package/www/build/p-caab8e1e.system.js +1 -0
  57. package/www/build/p-f5a4be35.js +2 -0
  58. package/dist/esm-es5/index-7d849f54.js +0 -1
  59. package/dist/mds-table-row/p-031e68b1.system.entry.js +0 -1
  60. package/dist/mds-table-row/p-13e3a2cc.system.js +0 -1
  61. package/dist/mds-table-row/p-15f2406e.system.js +0 -1
  62. package/dist/mds-table-row/p-3619a466.js +0 -1
  63. package/dist/mds-table-row/p-dab964fd.entry.js +0 -1
  64. package/www/build/p-031e68b1.system.entry.js +0 -1
  65. package/www/build/p-13e3a2cc.system.js +0 -1
  66. package/www/build/p-15f2406e.system.js +0 -1
  67. package/www/build/p-3619a466.js +0 -1
  68. package/www/build/p-dab964fd.entry.js +0 -1
package/dist/stats.json CHANGED
@@ -1,24 +1,25 @@
1
1
  {
2
- "timestamp": "2022-02-02T14:20:31",
2
+ "timestamp": "2022-06-22T09:16:50",
3
3
  "compiler": {
4
4
  "name": "node",
5
- "version": "16.13.0"
5
+ "version": "18.3.0"
6
6
  },
7
7
  "app": {
8
8
  "namespace": "MdsTableRow",
9
9
  "fsNamespace": "mds-table-row",
10
10
  "components": 1,
11
11
  "entries": 1,
12
- "bundles": 60,
12
+ "bundles": 62,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 19,
16
+ "files": 21,
17
17
  "generatedFiles": [
18
18
  "./dist/collection/components/mds-table-row/mds-table-row.js",
19
19
  "./dist/collection/dictionary/autocomplete.js",
20
20
  "./dist/collection/dictionary/button.js",
21
21
  "./dist/collection/dictionary/color.js",
22
+ "./dist/collection/dictionary/floating-ui.js",
22
23
  "./dist/collection/dictionary/icon.js",
23
24
  "./dist/collection/dictionary/input-text-type.js",
24
25
  "./dist/collection/dictionary/loading.js",
@@ -28,6 +29,7 @@
28
29
  "./dist/collection/interface/input-value.js",
29
30
  "./dist/collection/types/autocomplete.js",
30
31
  "./dist/collection/types/button.js",
32
+ "./dist/collection/types/floating-ui.js",
31
33
  "./dist/collection/types/form-rel.js",
32
34
  "./dist/collection/types/input-text-type.js",
33
35
  "./dist/collection/types/input-value-type.js",
@@ -50,17 +52,17 @@
50
52
  "name": "dist-lazy",
51
53
  "files": 35,
52
54
  "generatedFiles": [
53
- "./dist/cjs/index-797b786c.js",
55
+ "./dist/cjs/index-2159a30d.js",
54
56
  "./dist/cjs/index.cjs.js",
55
57
  "./dist/cjs/loader.cjs.js",
56
58
  "./dist/cjs/mds-table-row.cjs.entry.js",
57
59
  "./dist/cjs/mds-table-row.cjs.js",
58
- "./dist/esm-es5/index-7d849f54.js",
60
+ "./dist/esm-es5/index-1e8e95d7.js",
59
61
  "./dist/esm-es5/index.js",
60
62
  "./dist/esm-es5/loader.js",
61
63
  "./dist/esm-es5/mds-table-row.entry.js",
62
64
  "./dist/esm-es5/mds-table-row.js",
63
- "./dist/esm/index-7d849f54.js",
65
+ "./dist/esm/index-1e8e95d7.js",
64
66
  "./dist/esm/index.js",
65
67
  "./dist/esm/loader.js",
66
68
  "./dist/esm/mds-table-row.entry.js",
@@ -70,21 +72,21 @@
70
72
  "./dist/mds-table-row/index.esm.js",
71
73
  "./dist/mds-table-row/mds-table-row.esm.js",
72
74
  "./dist/mds-table-row/mds-table-row.js",
73
- "./dist/mds-table-row/p-031e68b1.system.entry.js",
74
- "./dist/mds-table-row/p-13e3a2cc.system.js",
75
- "./dist/mds-table-row/p-15f2406e.system.js",
76
- "./dist/mds-table-row/p-3619a466.js",
77
75
  "./dist/mds-table-row/p-50ea2036.system.js",
78
- "./dist/mds-table-row/p-dab964fd.entry.js",
76
+ "./dist/mds-table-row/p-c6fbd532.system.js",
77
+ "./dist/mds-table-row/p-c8145b7b.system.entry.js",
78
+ "./dist/mds-table-row/p-ca70a50c.entry.js",
79
+ "./dist/mds-table-row/p-caab8e1e.system.js",
80
+ "./dist/mds-table-row/p-f5a4be35.js",
79
81
  "./www/build/index.esm.js",
80
82
  "./www/build/mds-table-row.esm.js",
81
83
  "./www/build/mds-table-row.js",
82
- "./www/build/p-031e68b1.system.entry.js",
83
- "./www/build/p-13e3a2cc.system.js",
84
- "./www/build/p-15f2406e.system.js",
85
- "./www/build/p-3619a466.js",
86
84
  "./www/build/p-50ea2036.system.js",
87
- "./www/build/p-dab964fd.entry.js"
85
+ "./www/build/p-c6fbd532.system.js",
86
+ "./www/build/p-c8145b7b.system.entry.js",
87
+ "./www/build/p-ca70a50c.entry.js",
88
+ "./www/build/p-caab8e1e.system.js",
89
+ "./www/build/p-f5a4be35.js"
88
90
  ]
89
91
  },
90
92
  {
@@ -117,12 +119,12 @@
117
119
  "components": [
118
120
  "mds-table-row"
119
121
  ],
120
- "bundleId": "p-dab964fd",
121
- "fileName": "p-dab964fd.entry.js",
122
+ "bundleId": "p-ca70a50c",
123
+ "fileName": "p-ca70a50c.entry.js",
122
124
  "imports": [
123
- "p-3619a466.js"
125
+ "p-f5a4be35.js"
124
126
  ],
125
- "originalByteSize": 2292
127
+ "originalByteSize": 1357
126
128
  }
127
129
  ],
128
130
  "esm": [
@@ -134,9 +136,9 @@
134
136
  "bundleId": "mds-table-row",
135
137
  "fileName": "mds-table-row.entry.js",
136
138
  "imports": [
137
- "index-7d849f54.js"
139
+ "index-1e8e95d7.js"
138
140
  ],
139
- "originalByteSize": 2296
141
+ "originalByteSize": 1361
140
142
  }
141
143
  ],
142
144
  "es5": [
@@ -148,9 +150,9 @@
148
150
  "bundleId": "mds-table-row",
149
151
  "fileName": "mds-table-row.entry.js",
150
152
  "imports": [
151
- "index-7d849f54.js"
153
+ "index-1e8e95d7.js"
152
154
  ],
153
- "originalByteSize": 2296
155
+ "originalByteSize": 1361
154
156
  }
155
157
  ],
156
158
  "system": [
@@ -159,12 +161,12 @@
159
161
  "components": [
160
162
  "mds-table-row"
161
163
  ],
162
- "bundleId": "p-031e68b1.system",
163
- "fileName": "p-031e68b1.system.entry.js",
164
+ "bundleId": "p-c8145b7b.system",
165
+ "fileName": "p-c8145b7b.system.entry.js",
164
166
  "imports": [
165
- "p-13e3a2cc.system.js"
167
+ "p-c6fbd532.system.js"
166
168
  ],
167
- "originalByteSize": 2622
169
+ "originalByteSize": 1636
168
170
  }
169
171
  ],
170
172
  "commonjs": [
@@ -176,9 +178,9 @@
176
178
  "bundleId": "mds-table-row.cjs",
177
179
  "fileName": "mds-table-row.cjs.entry.js",
178
180
  "imports": [
179
- "index-797b786c.js"
181
+ "index-2159a30d.js"
180
182
  ],
181
- "originalByteSize": 2366
183
+ "originalByteSize": 1431
182
184
  }
183
185
  ]
184
186
  },
@@ -198,7 +200,7 @@
198
200
  "tags": [],
199
201
  "text": ""
200
202
  },
201
- "encapsulation": "none",
203
+ "encapsulation": "shadow",
202
204
  "excludeFromCollection": false,
203
205
  "events": [],
204
206
  "internal": false,
@@ -215,13 +217,29 @@
215
217
  ],
216
218
  "methods": [],
217
219
  "potentialCmpRefs": [],
218
- "properties": [],
219
- "shadowDelegatesFocus": null,
220
- "states": [
220
+ "properties": [
221
221
  {
222
- "name": "interactive"
222
+ "name": "interactive",
223
+ "type": "boolean",
224
+ "attribute": "interactive",
225
+ "reflect": true,
226
+ "mutable": true,
227
+ "required": false,
228
+ "optional": false,
229
+ "complexType": {
230
+ "original": "boolean",
231
+ "resolved": "boolean",
232
+ "references": {}
233
+ },
234
+ "docs": {
235
+ "tags": [],
236
+ "text": ""
237
+ },
238
+ "internal": false
223
239
  }
224
- ]
240
+ ],
241
+ "shadowDelegatesFocus": false,
242
+ "states": []
225
243
  }
226
244
  ],
227
245
  "entries": [
@@ -233,15 +251,31 @@
233
251
  "isCollectionDependency": false,
234
252
  "componentClassName": "MdsTableRow",
235
253
  "elementRef": null,
236
- "encapsulation": "none",
237
- "shadowDelegatesFocus": null,
238
- "properties": [],
239
- "virtualProperties": [],
240
- "states": [
254
+ "encapsulation": "shadow",
255
+ "shadowDelegatesFocus": false,
256
+ "properties": [
241
257
  {
242
- "name": "interactive"
258
+ "name": "interactive",
259
+ "type": "boolean",
260
+ "attribute": "interactive",
261
+ "reflect": true,
262
+ "mutable": true,
263
+ "required": false,
264
+ "optional": false,
265
+ "complexType": {
266
+ "original": "boolean",
267
+ "resolved": "boolean",
268
+ "references": {}
269
+ },
270
+ "docs": {
271
+ "tags": [],
272
+ "text": ""
273
+ },
274
+ "internal": false
243
275
  }
244
276
  ],
277
+ "virtualProperties": [],
278
+ "states": [],
245
279
  "methods": [],
246
280
  "listeners": [
247
281
  {
@@ -262,7 +296,7 @@
262
296
  "styleIdentifier": "mdsTableRowStyle",
263
297
  "externalStyles": [
264
298
  {
265
- "absolutePath": "/Users/vitto/repo/design-system/projects/stencil/.build/mds-table-row/src/components/mds-table-row/mds-table-row.css",
299
+ "absolutePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-table-row/src/components/mds-table-row/mds-table-row.css",
266
300
  "relativePath": "mds-table-row.css",
267
301
  "originalComponentPath": "mds-table-row.css"
268
302
  }
@@ -284,6 +318,11 @@
284
318
  "docs": "The border color between table rows",
285
319
  "annotation": "prop"
286
320
  },
321
+ {
322
+ "name": "--border-width",
323
+ "docs": "The border width between table rows",
324
+ "annotation": "prop"
325
+ },
287
326
  {
288
327
  "name": "--radius",
289
328
  "docs": "The radius of the table (header and footer excluded)",
@@ -294,8 +333,8 @@
294
333
  "tags": [],
295
334
  "text": ""
296
335
  },
297
- "jsFilePath": "/Users/vitto/repo/design-system/projects/stencil/.build/mds-table-row/src/components/mds-table-row/mds-table-row.js",
298
- "sourceFilePath": "/Users/vitto/repo/design-system/projects/stencil/.build/mds-table-row/src/components/mds-table-row/mds-table-row.tsx",
336
+ "jsFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-table-row/src/components/mds-table-row/mds-table-row.js",
337
+ "sourceFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-table-row/src/components/mds-table-row/mds-table-row.tsx",
299
338
  "sourceMapPath": null,
300
339
  "hasAttributeChangedCallbackFn": false,
301
340
  "hasComponentWillLoadFn": false,
@@ -320,19 +359,19 @@
320
359
  "hasMember": true,
321
360
  "hasMethod": false,
322
361
  "hasMode": false,
323
- "hasAttribute": false,
324
- "hasProp": false,
362
+ "hasAttribute": true,
363
+ "hasProp": true,
325
364
  "hasPropNumber": false,
326
- "hasPropBoolean": false,
365
+ "hasPropBoolean": true,
327
366
  "hasPropString": false,
328
- "hasPropMutable": false,
329
- "hasReflect": false,
367
+ "hasPropMutable": true,
368
+ "hasReflect": true,
330
369
  "hasRenderFn": true,
331
- "hasState": true,
370
+ "hasState": false,
332
371
  "hasStyle": true,
333
372
  "hasVdomAttribute": true,
334
373
  "hasVdomXlink": false,
335
- "hasVdomClass": true,
374
+ "hasVdomClass": false,
336
375
  "hasVdomFunctional": false,
337
376
  "hasVdomKey": false,
338
377
  "hasVdomListener": false,
@@ -344,7 +383,6 @@
344
383
  "hasWatchCallback": false,
345
384
  "isPlain": false,
346
385
  "htmlAttrNames": [
347
- "class",
348
386
  "role"
349
387
  ],
350
388
  "htmlTagNames": [
@@ -364,7 +402,7 @@
364
402
  ],
365
403
  "componentGraph": {
366
404
  "sc-mds-table-row": [
367
- "p-3619a466.js"
405
+ "p-f5a4be35.js"
368
406
  ]
369
407
  },
370
408
  "sourceGraph": {
@@ -372,7 +410,10 @@
372
410
  "./src/dictionary/autocomplete.ts": [],
373
411
  "./src/dictionary/button.ts": [],
374
412
  "./src/dictionary/color.ts": [],
375
- "./src/dictionary/icon.ts": [],
413
+ "./src/dictionary/floating-ui.ts": [],
414
+ "./src/dictionary/icon.ts": [
415
+ "./src/fixtures/icons.json"
416
+ ],
376
417
  "./src/dictionary/input-text-type.ts": [],
377
418
  "./src/dictionary/loading.ts": [],
378
419
  "./src/dictionary/typography.ts": [],
@@ -381,6 +422,7 @@
381
422
  "./src/interface/input-value.ts": [],
382
423
  "./src/types/autocomplete.ts": [],
383
424
  "./src/types/button.ts": [],
425
+ "./src/types/floating-ui.ts": [],
384
426
  "./src/types/form-rel.ts": [],
385
427
  "./src/types/input-text-type.ts": [],
386
428
  "./src/types/input-value-type.ts": [],
@@ -1,5 +1,5 @@
1
1
  export declare class MdsTableRow {
2
- interactive?: boolean;
2
+ interactive: boolean;
3
3
  tableInteractiveHandler(event: CustomEvent<boolean>): void;
4
4
  render(): any;
5
5
  }
@@ -7,6 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  export namespace Components {
9
9
  interface MdsTableRow {
10
+ "interactive": boolean;
10
11
  }
11
12
  }
12
13
  declare global {
@@ -22,6 +23,7 @@ declare global {
22
23
  }
23
24
  declare namespace LocalJSX {
24
25
  interface MdsTableRow {
26
+ "interactive"?: boolean;
25
27
  }
26
28
  interface IntrinsicElements {
27
29
  "mds-table-row": MdsTableRow;
@@ -0,0 +1,3 @@
1
+ declare const floatingUIPlacementDictionary: string[];
2
+ declare const floatingUIStrategyDictionary: string[];
3
+ export { floatingUIPlacementDictionary, floatingUIStrategyDictionary, };
@@ -3,4 +3,5 @@ declare const typographyMonoDictionary: string[];
3
3
  declare const typographyPrimaryDictionary: string[];
4
4
  declare const typographySecondaryDictionary: string[];
5
5
  declare const typographySmallerDictionary: string[];
6
- export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, };
6
+ declare const typographyTooltipDictionary: string[];
7
+ export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
@@ -0,0 +1,2 @@
1
+ export declare type FloatingUIPlacement = 'bottom' | 'bottom-end' | 'bottom-start' | 'left' | 'left-end' | 'left-start' | 'right' | 'right-end' | 'right-start' | 'top' | 'top-end' | 'top-start';
2
+ export declare type FloatingUIStrategy = 'absolute' | 'fixed';
@@ -3,3 +3,4 @@ export declare type TypographyPrimaryType = 'action' | 'h1' | 'h2' | 'h3' | 'h4'
3
3
  export declare type TypographySecondaryType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
4
4
  export declare type TypographySmallerType = 'tip' | 'option';
5
5
  export declare type TypographyMonoType = 'code' | 'hack';
6
+ export declare type TypographyTooltipType = 'caption' | 'detail' | 'tip';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-table-row",
3
- "version": "1.2.1",
3
+ "version": "2.0.0",
4
4
  "description": "mds-table-row is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -18,15 +18,13 @@
18
18
  "www/"
19
19
  ],
20
20
  "scripts": {
21
- "build": "rm src/components.d.ts || true && stencil build --docs-readme"
21
+ "build": "rm src/components.d.ts || true && stencil build --docs-readme",
22
+ "prepublishOnly": "npm run build"
22
23
  },
23
24
  "dependencies": {
24
- "@maggioli-design-system/mds-table": "^1.1.3",
25
- "@maggioli-design-system/mds-table-body": "^1.2.1",
26
- "@maggioli-design-system/mds-table-cell": "^1.1.1",
27
- "@maggioli-design-system/mds-table-footer": "^1.0.4",
28
- "@maggioli-design-system/mds-table-header": "^1.0.4",
29
- "@stencil/core": "^2.12.0"
25
+ "@maggioli-design-system/mds-table-cell": "^2.0.0",
26
+ "@maggioli-design-system/styles": "^7.0.0",
27
+ "@stencil/core": "^2.16.1"
30
28
  },
31
29
  "license": "MIT",
32
30
  "author": {
package/readme.md CHANGED
@@ -5,12 +5,20 @@
5
5
  <!-- Auto Generated Below -->
6
6
 
7
7
 
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ------------- | ------------- | ----------- | --------- | ----------- |
12
+ | `interactive` | `interactive` | | `boolean` | `undefined` |
13
+
14
+
8
15
  ## CSS Custom Properties
9
16
 
10
17
  | Name | Description |
11
18
  | ------------------------ | ---------------------------------------------------------------------- |
12
19
  | `--background-row-hover` | The cell background-color when the mouse go over the table row element |
13
20
  | `--border-color` | The border color between table rows |
21
+ | `--border-width` | The border width between table rows |
14
22
  | `--radius` | The radius of the table (header and footer excluded) |
15
23
 
16
24
 
@@ -0,0 +1,25 @@
1
+ .base-table-row:
2
+ variables:
3
+ COMPONENT: mds-table-row
4
+
5
+ # ISOLATE
6
+ table-row-isolate:
7
+ extends: [.base-isolate, .base-table-row]
8
+ dependencies: [base-stencil-build]
9
+
10
+ # TEST
11
+ table-row-publish-test:
12
+ extends: [.base-stencil-publish-test, .base-table-row]
13
+ dependencies: [base-stencil-build, table-row-isolate]
14
+
15
+ # PUBLISH
16
+ table-row-publish:
17
+ extends: [.base-stencil-publish, .base-table-row]
18
+ dependencies: [base-stencil-build, table-row-isolate]
19
+ needs: [base-stencil-build, table-row-isolate, table-row-publish-test]
20
+
21
+ # INSTALL TEST
22
+ table-row-install-test:
23
+ extends: [.base-stencil-install-test, .base-table-row]
24
+ dependencies: [table-row-publish, table-row-isolate]
25
+
@@ -3,42 +3,32 @@
3
3
  /**
4
4
  * @prop --background-row-hover: The cell background-color when the mouse go over the table row element
5
5
  * @prop --border-color: The border color between table rows
6
+ * @prop --border-width: The border width between table rows
6
7
  * @prop --radius: The radius of the table (header and footer excluded)
7
8
  */
8
9
 
9
- mds-table-row {
10
+ :host {
10
11
  @apply
11
12
  border-b
12
13
  table-row;
13
14
 
14
- border-bottom-color: var(--border-color, theme('colors.adjust-tone-09'));
15
- border-bottom-style: solid;
15
+ border-bottom: var(--border-width, theme('borderWidth.2')) solid var(--border-color, theme('colors.tone-neutral-09'));
16
16
  }
17
17
 
18
- mds-table-row:last-child {
19
- @apply border-transparent;
20
- }
21
-
22
- mds-table-row:first-child mds-table-cell:first-child {
23
- border-top-left-radius: var(--radius, theme('borderRadius.lg'));
24
- }
18
+ :host ( :first-child ) {
25
19
 
26
- mds-table-row:last-child mds-table-cell:first-child {
27
- border-bottom-left-radius: var(--radius, theme('borderRadius.lg'));
20
+ --radius-top-left: var(--radius, theme('borderRadius.lg'));
21
+ --radius-top-right: var(--radius, theme('borderRadius.lg'));
28
22
  }
29
23
 
30
- mds-table-row:first-child mds-table-cell:last-child {
31
- border-top-right-radius: var(--radius, theme('borderRadius.lg'));
32
- }
24
+ :host ( :last-child ) {
25
+ @apply border-transparent;
33
26
 
34
- mds-table-row:last-child mds-table-cell:last-child {
35
- border-bottom-right-radius: var(--radius, theme('borderRadius.lg'));
27
+ --radius-bottom-left: var(--radius, theme('borderRadius.lg'));
28
+ --radius-bottom-right: var(--radius, theme('borderRadius.lg'));
36
29
  }
37
30
 
38
- mds-table-row:focus {
39
- @apply opacity-50;
40
- }
31
+ :host ( [interactive]:hover ) {
41
32
 
42
- mds-table-row.interactive:hover mds-table-cell {
43
- background-color: var(--background-row-hover, theme('colors.adjust-tone')) !important;
33
+ --background: var(--background-row-hover, theme('colors.tone-neutral'));
44
34
  }
@@ -1,13 +1,12 @@
1
- import { Component, Host, h, Listen, State } from '@stencil/core'
2
- import clsx from 'clsx'
1
+ import { Component, Host, h, Listen, Prop } from '@stencil/core'
3
2
  @Component({
4
3
  tag: 'mds-table-row',
5
4
  styleUrl: 'mds-table-row.css',
6
- shadow: false,
5
+ shadow: true,
7
6
  })
8
7
  export class MdsTableRow {
9
8
 
10
- @State() interactive?: boolean
9
+ @Prop({ mutable: true, reflect: true }) interactive: boolean
11
10
 
12
11
  @Listen('tableInteractive', { target: 'body' })
13
12
  tableInteractiveHandler (event: CustomEvent<boolean>): void {
@@ -16,7 +15,7 @@ export class MdsTableRow {
16
15
 
17
16
  render () {
18
17
  return (
19
- <Host class={clsx(this.interactive && 'interactive')} role="row">
18
+ <Host role="row">
20
19
  <slot/>
21
20
  </Host>
22
21
  )
@@ -5,12 +5,20 @@
5
5
  <!-- Auto Generated Below -->
6
6
 
7
7
 
8
+ ## Properties
9
+
10
+ | Property | Attribute | Description | Type | Default |
11
+ | ------------- | ------------- | ----------- | --------- | ----------- |
12
+ | `interactive` | `interactive` | | `boolean` | `undefined` |
13
+
14
+
8
15
  ## CSS Custom Properties
9
16
 
10
17
  | Name | Description |
11
18
  | ------------------------ | ---------------------------------------------------------------------- |
12
19
  | `--background-row-hover` | The cell background-color when the mouse go over the table row element |
13
20
  | `--border-color` | The border color between table rows |
21
+ | `--border-width` | The border width between table rows |
14
22
  | `--radius` | The radius of the table (header and footer excluded) |
15
23
 
16
24
 
@@ -7,6 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
8
8
  export namespace Components {
9
9
  interface MdsTableRow {
10
+ "interactive": boolean;
10
11
  }
11
12
  }
12
13
  declare global {
@@ -22,6 +23,7 @@ declare global {
22
23
  }
23
24
  declare namespace LocalJSX {
24
25
  interface MdsTableRow {
26
+ "interactive"?: boolean;
25
27
  }
26
28
  interface IntrinsicElements {
27
29
  "mds-table-row": MdsTableRow;
@@ -0,0 +1,25 @@
1
+
2
+ const floatingUIPlacementDictionary = [
3
+ 'bottom',
4
+ 'bottom-end',
5
+ 'bottom-start',
6
+ 'left',
7
+ 'left-end',
8
+ 'left-start',
9
+ 'right',
10
+ 'right-end',
11
+ 'right-start',
12
+ 'top',
13
+ 'top-end',
14
+ 'top-start',
15
+ ]
16
+
17
+ const floatingUIStrategyDictionary = [
18
+ 'absolute',
19
+ 'fixed',
20
+ ]
21
+
22
+ export {
23
+ floatingUIPlacementDictionary,
24
+ floatingUIStrategyDictionary,
25
+ }
@@ -1,5 +1,5 @@
1
- import mggIconsDictionary from '@maggioli-design-system/icons/dist/original/dictionary.json'
2
- const iconsDictionary = Object.keys(mggIconsDictionary).sort()
1
+ import jsonIconsDictionary from '../fixtures/icons.json'
2
+ const iconsDictionary = jsonIconsDictionary
3
3
  export {
4
4
  iconsDictionary,
5
5
  }
@@ -45,10 +45,17 @@ const typographySmallerDictionary = [
45
45
  'tip',
46
46
  ]
47
47
 
48
+ const typographyTooltipDictionary = [
49
+ 'caption',
50
+ 'detail',
51
+ 'tip',
52
+ ]
53
+
48
54
  export {
49
55
  typographyDictionary,
50
56
  typographyMonoDictionary,
51
57
  typographyPrimaryDictionary,
52
58
  typographySecondaryDictionary,
53
59
  typographySmallerDictionary,
60
+ typographyTooltipDictionary,
54
61
  }