@maggioli-design-system/mds-table-row 1.0.2 → 1.3.1
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-row.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.css +24 -23
- package/dist/collection/components/mds-table-row/mds-table-row.js +1 -1
- package/dist/collection/dictionary/icon.js +1 -1
- package/dist/collection/dictionary/typography.js +7 -1
- package/dist/collection/dictionary/variant.js +29 -1
- package/dist/{custom-elements → components}/index.d.ts +1 -20
- package/dist/components/index.js +1 -0
- package/dist/components/mds-table-row.d.ts +11 -0
- package/dist/components/mds-table-row.js +79 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mds-table-row.entry.js +2 -2
- package/dist/esm/mds-table-row.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/mds-table-row.js +1 -1
- package/dist/mds-table-row/{p-cc341cca.system.js → p-15f2406e.system.js} +1 -1
- package/dist/mds-table-row/p-4829abc6.system.entry.js +1 -0
- package/dist/mds-table-row/p-db71d0ac.entry.js +1 -0
- package/dist/stats.json +45 -26
- package/dist/types/dictionary/typography.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +4 -1
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/typography.d.ts +3 -2
- package/dist/types/types/variant.d.ts +4 -1
- package/package.json +14 -16
- package/readme.md +9 -0
- package/src/components/mds-table-row/mds-table-row.css +21 -14
- package/src/components/mds-table-row/mds-table-row.tsx +1 -1
- package/src/components/mds-table-row/readme.md +10 -0
- package/src/dictionary/icon.ts +1 -1
- package/src/dictionary/typography.ts +8 -0
- package/src/dictionary/variant.ts +34 -0
- package/src/types/typography.ts +6 -0
- package/src/types/variant.ts +27 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-table-row.esm.js +1 -0
- package/www/build/mds-table-row.js +130 -0
- package/www/build/p-13e3a2cc.system.js +1 -0
- package/www/build/p-15f2406e.system.js +1 -0
- package/www/build/p-3619a466.js +1 -0
- package/www/build/p-4829abc6.system.entry.js +1 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-db71d0ac.entry.js +1 -0
- package/www/host.config.json +15 -0
- package/dist/collection/dictionary/status.js +0 -7
- package/dist/collection/dictionary/tag.js +0 -53
- package/dist/custom-elements/index.js +0 -74
- package/dist/mds-table-row/p-789f3fb9.system.entry.js +0 -1
- package/dist/mds-table-row/p-aa7faac3.entry.js +0 -1
- package/dist/types/dictionary/status.d.ts +0 -2
- package/dist/types/dictionary/tag.d.ts +0 -2
- package/src/dictionary/status.ts +0 -10
- package/src/dictionary/tag.ts +0 -57
|
@@ -666,7 +666,7 @@ export declare namespace JSXBase {
|
|
|
666
666
|
use: JSXBase.SVGAttributes;
|
|
667
667
|
view: JSXBase.SVGAttributes;
|
|
668
668
|
}
|
|
669
|
-
interface SlotAttributes {
|
|
669
|
+
interface SlotAttributes extends JSXAttributes {
|
|
670
670
|
name?: string;
|
|
671
671
|
slot?: string;
|
|
672
672
|
onSlotchange?: (event: Event) => void;
|
|
@@ -1427,9 +1427,7 @@ export declare namespace JSXBase {
|
|
|
1427
1427
|
z?: number | string;
|
|
1428
1428
|
zoomAndPan?: string;
|
|
1429
1429
|
}
|
|
1430
|
-
interface DOMAttributes<T
|
|
1431
|
-
key?: string | number;
|
|
1432
|
-
ref?: (elm?: T) => void;
|
|
1430
|
+
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1433
1431
|
slot?: string;
|
|
1434
1432
|
part?: string;
|
|
1435
1433
|
exportparts?: string;
|
|
@@ -1550,6 +1548,10 @@ export declare namespace JSXBase {
|
|
|
1550
1548
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1551
1549
|
}
|
|
1552
1550
|
}
|
|
1551
|
+
export interface JSXAttributes<T = Element> {
|
|
1552
|
+
key?: string | number;
|
|
1553
|
+
ref?: (elm?: T) => void;
|
|
1554
|
+
}
|
|
1553
1555
|
export interface CustomElementsDefineOptions {
|
|
1554
1556
|
exclude?: string[];
|
|
1555
1557
|
resourcesUrl?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare type TypographyType = 'action' | 'caption' | 'code' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph';
|
|
1
|
+
export declare type TypographyType = 'action' | 'caption' | 'code' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph' | 'tip';
|
|
2
2
|
export declare type TypographyPrimaryType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
|
-
export declare type TypographySecondaryType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph';
|
|
3
|
+
export declare type TypographySecondaryType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
|
|
4
|
+
export declare type TypographySmallerType = 'tip' | 'option';
|
|
4
5
|
export declare type TypographyMonoType = 'code' | 'hack';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export declare type ThemeStatusVariantType = 'error' | 'info' | 'success' | 'warning';
|
|
2
|
-
export declare type ThemeVariantType = 'dark' | '
|
|
2
|
+
export declare type ThemeVariantType = 'dark' | 'error' | 'info' | 'light' | 'primary' | 'success' | 'warning';
|
|
3
|
+
export declare type ThemeFullVariantType = 'amaranth' | 'aqua' | 'blue' | 'dark' | 'error' | 'green' | 'info' | 'light' | 'lime' | 'orange' | 'orchid' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
|
|
3
4
|
export declare type ThemeLuminanceVariantType = 'dark' | 'light';
|
|
4
5
|
export declare type LabelVariantType = 'amaranth' | 'aqua' | 'blue' | 'green' | 'lime' | 'orange' | 'orchid' | 'sky' | 'violet' | 'yellow';
|
|
5
6
|
export declare type ActionVariantType = 'primary' | 'dark' | 'light';
|
|
6
7
|
export declare type StateVariantType = 'disabled' | 'focused' | 'readonly';
|
|
7
8
|
export declare type ToneVariantType = 'strong' | 'weak' | 'ghost' | 'quiet';
|
|
9
|
+
export declare type ToneSimpleVariantType = 'strong' | 'weak' | 'quiet';
|
|
10
|
+
export declare type ToneMinimalVariantType = 'strong' | 'weak';
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-table-row",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
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
|
-
"module": "dist/
|
|
6
|
+
"module": "dist/index.js",
|
|
7
7
|
"es2015": "dist/esm/index.mjs",
|
|
8
8
|
"es2017": "dist/esm/index.mjs",
|
|
9
|
-
"types": "dist/
|
|
9
|
+
"types": "dist/types/components.d.ts",
|
|
10
10
|
"collection": "dist/collection/collection-manifest.json",
|
|
11
11
|
"collection:main": "dist/collection/index.js",
|
|
12
12
|
"unpkg": "dist/mds-table-row/mds-table-row.esm.js",
|
|
@@ -14,17 +14,15 @@
|
|
|
14
14
|
"dist/",
|
|
15
15
|
"loader/",
|
|
16
16
|
"readme.md",
|
|
17
|
-
"src/"
|
|
17
|
+
"src/",
|
|
18
|
+
"www/"
|
|
18
19
|
],
|
|
19
20
|
"scripts": {
|
|
20
|
-
"build": "stencil build --docs-readme"
|
|
21
|
+
"build": "rm src/components.d.ts || true && stencil build --docs-readme"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@maggioli-design-system/mds-table": "
|
|
24
|
-
"@
|
|
25
|
-
"@maggioli-design-system/mds-table-cell": "latest",
|
|
26
|
-
"@maggioli-design-system/mds-table-footer": "latest",
|
|
27
|
-
"@maggioli-design-system/mds-table-header": "latest"
|
|
24
|
+
"@maggioli-design-system/mds-table-cell": "^1.1.1",
|
|
25
|
+
"@stencil/core": "^2.13.0"
|
|
28
26
|
},
|
|
29
27
|
"license": "MIT",
|
|
30
28
|
"author": {
|
|
@@ -34,14 +32,14 @@
|
|
|
34
32
|
},
|
|
35
33
|
"contributors": [
|
|
36
34
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
"name": "Andrea Pruccoli",
|
|
36
|
+
"email": "andrea.pruccoli@maggioli.it",
|
|
37
|
+
"role": "Software Engineer"
|
|
40
38
|
},
|
|
41
39
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
"name": "Vittorio Vittori",
|
|
41
|
+
"email": "vittorio.vittori@maggioli.it",
|
|
42
|
+
"role": "UX UI Designer"
|
|
45
43
|
}
|
|
46
44
|
]
|
|
47
45
|
}
|
package/readme.md
CHANGED
|
@@ -5,6 +5,15 @@
|
|
|
5
5
|
<!-- Auto Generated Below -->
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
## CSS Custom Properties
|
|
9
|
+
|
|
10
|
+
| Name | Description |
|
|
11
|
+
| ------------------------ | ---------------------------------------------------------------------- |
|
|
12
|
+
| `--background-row-hover` | The cell background-color when the mouse go over the table row element |
|
|
13
|
+
| `--border-color` | The border color between table rows |
|
|
14
|
+
| `--radius` | The radius of the table (header and footer excluded) |
|
|
15
|
+
|
|
16
|
+
|
|
8
17
|
----------------------------------------------
|
|
9
18
|
|
|
10
19
|
Built with love @ **Maggioli Informatica / R&D Department**
|
|
@@ -1,37 +1,44 @@
|
|
|
1
1
|
@tailwind utilities;
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @prop --background-row-hover: The cell background-color when the mouse go over the table row element
|
|
5
|
+
* @prop --border-color: The border color between table rows
|
|
6
|
+
* @prop --border-width: The border width between table rows
|
|
7
|
+
* @prop --radius: The radius of the table (header and footer excluded)
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
mds-table-row {
|
|
4
11
|
@apply
|
|
5
12
|
border-b
|
|
6
13
|
table-row;
|
|
7
14
|
|
|
8
|
-
border-bottom
|
|
15
|
+
border-bottom: var(--border-width, theme('borderWidth.2')) solid var(--border-color, theme('colors.adjust-tone-09'));
|
|
9
16
|
}
|
|
10
17
|
|
|
11
|
-
|
|
18
|
+
mds-table-row:last-child {
|
|
12
19
|
@apply border-transparent;
|
|
13
20
|
}
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
border-top-left-radius: var(--
|
|
22
|
+
mds-table-row:first-child mds-table-cell:first-child {
|
|
23
|
+
border-top-left-radius: var(--radius, theme('borderRadius.lg'));
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
|
|
20
|
-
border-bottom-left-radius: var(--
|
|
26
|
+
mds-table-row:last-child mds-table-cell:first-child {
|
|
27
|
+
border-bottom-left-radius: var(--radius, theme('borderRadius.lg'));
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
|
|
24
|
-
border-top-right-radius: var(--
|
|
30
|
+
mds-table-row:first-child mds-table-cell:last-child {
|
|
31
|
+
border-top-right-radius: var(--radius, theme('borderRadius.lg'));
|
|
25
32
|
}
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
border-bottom-right-radius: var(--
|
|
34
|
+
mds-table-row:last-child mds-table-cell:last-child {
|
|
35
|
+
border-bottom-right-radius: var(--radius, theme('borderRadius.lg'));
|
|
29
36
|
}
|
|
30
37
|
|
|
31
|
-
|
|
38
|
+
mds-table-row:focus {
|
|
32
39
|
@apply opacity-50;
|
|
33
40
|
}
|
|
34
41
|
|
|
35
|
-
|
|
36
|
-
background-color: var(--background-row-hover, theme('colors.adjust-tone
|
|
42
|
+
mds-table-row.interactive:hover mds-table-cell {
|
|
43
|
+
background-color: var(--background-row-hover, theme('colors.adjust-tone')) !important;
|
|
37
44
|
}
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
<!-- Auto Generated Below -->
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
## CSS Custom Properties
|
|
9
|
+
|
|
10
|
+
| Name | Description |
|
|
11
|
+
| ------------------------ | ---------------------------------------------------------------------- |
|
|
12
|
+
| `--background-row-hover` | The cell background-color when the mouse go over the table row element |
|
|
13
|
+
| `--border-color` | The border color between table rows |
|
|
14
|
+
| `--border-width` | The border width between table rows |
|
|
15
|
+
| `--radius` | The radius of the table (header and footer excluded) |
|
|
16
|
+
|
|
17
|
+
|
|
8
18
|
----------------------------------------------
|
|
9
19
|
|
|
10
20
|
Built with love @ **Maggioli Informatica / R&D Department**
|
package/src/dictionary/icon.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import mggIconsDictionary from '@maggioli-design-system/icons/original/dictionary.json'
|
|
1
|
+
import mggIconsDictionary from '@maggioli-design-system/icons/dist/original/dictionary.json'
|
|
2
2
|
const iconsDictionary = Object.keys(mggIconsDictionary).sort()
|
|
3
3
|
export {
|
|
4
4
|
iconsDictionary,
|
|
@@ -13,6 +13,7 @@ const typographyDictionary = [
|
|
|
13
13
|
'label',
|
|
14
14
|
'option',
|
|
15
15
|
'paragraph',
|
|
16
|
+
'tip',
|
|
16
17
|
]
|
|
17
18
|
|
|
18
19
|
const typographyMonoDictionary = [
|
|
@@ -36,6 +37,12 @@ const typographySecondaryDictionary = [
|
|
|
36
37
|
'label',
|
|
37
38
|
'option',
|
|
38
39
|
'paragraph',
|
|
40
|
+
'tip',
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
const typographySmallerDictionary = [
|
|
44
|
+
'option',
|
|
45
|
+
'tip',
|
|
39
46
|
]
|
|
40
47
|
|
|
41
48
|
export {
|
|
@@ -43,4 +50,5 @@ export {
|
|
|
43
50
|
typographyMonoDictionary,
|
|
44
51
|
typographyPrimaryDictionary,
|
|
45
52
|
typographySecondaryDictionary,
|
|
53
|
+
typographySmallerDictionary,
|
|
46
54
|
}
|
|
@@ -3,6 +3,7 @@ const themeVariantDictionary = [
|
|
|
3
3
|
'error',
|
|
4
4
|
'info',
|
|
5
5
|
'light',
|
|
6
|
+
'primary',
|
|
6
7
|
'success',
|
|
7
8
|
'warning',
|
|
8
9
|
]
|
|
@@ -19,6 +20,25 @@ const themeStatusVariantDictionary = [
|
|
|
19
20
|
'warning',
|
|
20
21
|
]
|
|
21
22
|
|
|
23
|
+
const themeFullVariantDictionary = [
|
|
24
|
+
'amaranth',
|
|
25
|
+
'aqua',
|
|
26
|
+
'blue',
|
|
27
|
+
'dark',
|
|
28
|
+
'error',
|
|
29
|
+
'green',
|
|
30
|
+
'info',
|
|
31
|
+
'light',
|
|
32
|
+
'lime',
|
|
33
|
+
'orange',
|
|
34
|
+
'orchid',
|
|
35
|
+
'sky',
|
|
36
|
+
'success',
|
|
37
|
+
'violet',
|
|
38
|
+
'warning',
|
|
39
|
+
'yellow',
|
|
40
|
+
]
|
|
41
|
+
|
|
22
42
|
const themeLabelVariantDictionary = [
|
|
23
43
|
'amaranth',
|
|
24
44
|
'aqua',
|
|
@@ -39,10 +59,24 @@ const toneVariantDictionary = [
|
|
|
39
59
|
'quiet',
|
|
40
60
|
]
|
|
41
61
|
|
|
62
|
+
const toneSimpleVariantDictionary = [
|
|
63
|
+
'strong',
|
|
64
|
+
'weak',
|
|
65
|
+
'quiet',
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
const toneMinimalVariantDictionary = [
|
|
69
|
+
'strong',
|
|
70
|
+
'weak',
|
|
71
|
+
]
|
|
72
|
+
|
|
42
73
|
export {
|
|
74
|
+
themeFullVariantDictionary,
|
|
43
75
|
themeLabelVariantDictionary,
|
|
44
76
|
themeLuminanceVariantDictionary,
|
|
45
77
|
themeStatusVariantDictionary,
|
|
46
78
|
themeVariantDictionary,
|
|
79
|
+
toneMinimalVariantDictionary,
|
|
80
|
+
toneSimpleVariantDictionary,
|
|
47
81
|
toneVariantDictionary,
|
|
48
82
|
}
|
package/src/types/typography.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type TypographyType =
|
|
|
13
13
|
| 'label'
|
|
14
14
|
| 'option'
|
|
15
15
|
| 'paragraph'
|
|
16
|
+
| 'tip'
|
|
16
17
|
|
|
17
18
|
export type TypographyPrimaryType =
|
|
18
19
|
| 'action'
|
|
@@ -29,6 +30,11 @@ export type TypographySecondaryType =
|
|
|
29
30
|
| 'label'
|
|
30
31
|
| 'option'
|
|
31
32
|
| 'paragraph'
|
|
33
|
+
| 'tip'
|
|
34
|
+
|
|
35
|
+
export type TypographySmallerType =
|
|
36
|
+
| 'tip'
|
|
37
|
+
| 'option'
|
|
32
38
|
|
|
33
39
|
export type TypographyMonoType =
|
|
34
40
|
| 'code'
|
package/src/types/variant.ts
CHANGED
|
@@ -6,11 +6,30 @@ export type ThemeStatusVariantType =
|
|
|
6
6
|
|
|
7
7
|
export type ThemeVariantType =
|
|
8
8
|
| 'dark'
|
|
9
|
+
| 'error'
|
|
10
|
+
| 'info'
|
|
9
11
|
| 'light'
|
|
12
|
+
| 'primary'
|
|
13
|
+
| 'success'
|
|
14
|
+
| 'warning'
|
|
15
|
+
|
|
16
|
+
export type ThemeFullVariantType =
|
|
17
|
+
| 'amaranth'
|
|
18
|
+
| 'aqua'
|
|
19
|
+
| 'blue'
|
|
20
|
+
| 'dark'
|
|
10
21
|
| 'error'
|
|
22
|
+
| 'green'
|
|
11
23
|
| 'info'
|
|
24
|
+
| 'light'
|
|
25
|
+
| 'lime'
|
|
26
|
+
| 'orange'
|
|
27
|
+
| 'orchid'
|
|
28
|
+
| 'sky'
|
|
12
29
|
| 'success'
|
|
30
|
+
| 'violet'
|
|
13
31
|
| 'warning'
|
|
32
|
+
| 'yellow'
|
|
14
33
|
|
|
15
34
|
export type ThemeLuminanceVariantType =
|
|
16
35
|
| 'dark'
|
|
@@ -44,3 +63,11 @@ export type ToneVariantType =
|
|
|
44
63
|
| 'ghost' // bordered
|
|
45
64
|
| 'quiet' // no background, no border
|
|
46
65
|
|
|
66
|
+
export type ToneSimpleVariantType =
|
|
67
|
+
| 'strong'
|
|
68
|
+
| 'weak'
|
|
69
|
+
| 'quiet'
|
|
70
|
+
|
|
71
|
+
export type ToneMinimalVariantType =
|
|
72
|
+
| 'strong'
|
|
73
|
+
| 'weak'
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,b as e}from"./p-3619a466.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((t=>e([["p-db71d0ac",[[4,"mds-table-row",{interactive:[32]},[[16,"tableInteractive","tableInteractiveHandler"]]]]]],t)));
|