@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
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-797b786c.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -45,7 +45,7 @@ function clsx () {
|
|
|
45
45
|
return str;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const mdsTableRowCss = ".
|
|
48
|
+
const mdsTableRowCss = ".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom:var(--border-width, 2px) solid var(--border-color, rgb(var(--adjust-tone-09)))}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";
|
|
49
49
|
|
|
50
50
|
let MdsTableRow = class {
|
|
51
51
|
constructor(hostRef) {
|
|
@@ -55,7 +55,7 @@ let MdsTableRow = class {
|
|
|
55
55
|
this.interactive = event.detail;
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (index.h(index.Host, { class: clsx(
|
|
58
|
+
return (index.h(index.Host, { class: clsx(this.interactive && 'interactive'), role: "row" }, index.h("slot", null)));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
MdsTableRow.style = mdsTableRowCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const index = require('./index-797b786c.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-table-row.cjs.js', document.baseURI).href));
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
.table-row {
|
|
2
|
-
|
|
3
|
-
display: table-row;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
.border {
|
|
7
2
|
|
|
8
3
|
border-width: 1px;
|
|
@@ -10,49 +5,55 @@
|
|
|
10
5
|
|
|
11
6
|
.shadow {
|
|
12
7
|
|
|
13
|
-
--tw-shadow: 0 1px 3px 0
|
|
8
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
9
|
+
|
|
10
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
14
11
|
|
|
15
12
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
16
13
|
}
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @prop --background-row-hover: The cell background-color when the mouse go over the table row element
|
|
17
|
+
* @prop --border-color: The border color between table rows
|
|
18
|
+
* @prop --border-width: The border width between table rows
|
|
19
|
+
* @prop --radius: The radius of the table (header and footer excluded)
|
|
20
|
+
*/
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
+
mds-table-row {
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
display: table-row;
|
|
24
25
|
|
|
25
26
|
border-bottom-width: 1px;
|
|
26
27
|
|
|
27
|
-
border-bottom
|
|
28
|
+
border-bottom: var(--border-width, 2px) solid var(--border-color, rgb(var(--adjust-tone-09)));
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
mds-table-row:last-child {
|
|
31
32
|
|
|
32
33
|
border-color: transparent;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
border-top-left-radius: var(--
|
|
36
|
+
mds-table-row:first-child mds-table-cell:first-child {
|
|
37
|
+
border-top-left-radius: var(--radius, 0.5rem);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
border-bottom-left-radius: var(--
|
|
40
|
+
mds-table-row:last-child mds-table-cell:first-child {
|
|
41
|
+
border-bottom-left-radius: var(--radius, 0.5rem);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
border-top-right-radius: var(--
|
|
44
|
+
mds-table-row:first-child mds-table-cell:last-child {
|
|
45
|
+
border-top-right-radius: var(--radius, 0.5rem);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
border-bottom-right-radius: var(--
|
|
48
|
+
mds-table-row:last-child mds-table-cell:last-child {
|
|
49
|
+
border-bottom-right-radius: var(--radius, 0.5rem);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
mds-table-row:focus {
|
|
52
53
|
|
|
53
54
|
opacity: 0.5;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
background-color: var(--background-row-hover, rgb(var(--adjust-tone
|
|
57
|
+
mds-table-row.interactive:hover mds-table-cell {
|
|
58
|
+
background-color: var(--background-row-hover, rgb(var(--adjust-tone))) !important;
|
|
58
59
|
}
|
|
@@ -5,7 +5,7 @@ export class MdsTableRow {
|
|
|
5
5
|
this.interactive = event.detail;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { class: clsx(
|
|
8
|
+
return (h(Host, { class: clsx(this.interactive && 'interactive'), role: "row" },
|
|
9
9
|
h("slot", null)));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "mds-table-row"; }
|
|
@@ -1,3 +1,3 @@
|
|
|
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 { iconsDictionary, };
|
|
@@ -13,6 +13,7 @@ const typographyDictionary = [
|
|
|
13
13
|
'label',
|
|
14
14
|
'option',
|
|
15
15
|
'paragraph',
|
|
16
|
+
'tip',
|
|
16
17
|
];
|
|
17
18
|
const typographyMonoDictionary = [
|
|
18
19
|
'code',
|
|
@@ -33,5 +34,10 @@ const typographySecondaryDictionary = [
|
|
|
33
34
|
'label',
|
|
34
35
|
'option',
|
|
35
36
|
'paragraph',
|
|
37
|
+
'tip',
|
|
36
38
|
];
|
|
37
|
-
|
|
39
|
+
const typographySmallerDictionary = [
|
|
40
|
+
'option',
|
|
41
|
+
'tip',
|
|
42
|
+
];
|
|
43
|
+
export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, typographySmallerDictionary, };
|
|
@@ -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
|
];
|
|
@@ -16,6 +17,24 @@ const themeStatusVariantDictionary = [
|
|
|
16
17
|
'success',
|
|
17
18
|
'warning',
|
|
18
19
|
];
|
|
20
|
+
const themeFullVariantDictionary = [
|
|
21
|
+
'amaranth',
|
|
22
|
+
'aqua',
|
|
23
|
+
'blue',
|
|
24
|
+
'dark',
|
|
25
|
+
'error',
|
|
26
|
+
'green',
|
|
27
|
+
'info',
|
|
28
|
+
'light',
|
|
29
|
+
'lime',
|
|
30
|
+
'orange',
|
|
31
|
+
'orchid',
|
|
32
|
+
'sky',
|
|
33
|
+
'success',
|
|
34
|
+
'violet',
|
|
35
|
+
'warning',
|
|
36
|
+
'yellow',
|
|
37
|
+
];
|
|
19
38
|
const themeLabelVariantDictionary = [
|
|
20
39
|
'amaranth',
|
|
21
40
|
'aqua',
|
|
@@ -34,4 +53,13 @@ const toneVariantDictionary = [
|
|
|
34
53
|
'ghost',
|
|
35
54
|
'quiet',
|
|
36
55
|
];
|
|
37
|
-
|
|
56
|
+
const toneSimpleVariantDictionary = [
|
|
57
|
+
'strong',
|
|
58
|
+
'weak',
|
|
59
|
+
'quiet',
|
|
60
|
+
];
|
|
61
|
+
const toneMinimalVariantDictionary = [
|
|
62
|
+
'strong',
|
|
63
|
+
'weak',
|
|
64
|
+
];
|
|
65
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
/* MdsTableRow custom elements
|
|
1
|
+
/* MdsTableRow custom elements */
|
|
2
2
|
|
|
3
3
|
import type { Components, JSX } from "../types/components";
|
|
4
4
|
|
|
5
|
-
interface MdsTableRow extends Components.MdsTableRow, HTMLElement {}
|
|
6
|
-
export const MdsTableRow: {
|
|
7
|
-
prototype: MdsTableRow;
|
|
8
|
-
new (): MdsTableRow;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Utility to define all custom elements within this package using the tag name provided in the component's source.
|
|
13
|
-
* When defining each custom element, it will also check it's safe to define by:
|
|
14
|
-
*
|
|
15
|
-
* 1. Ensuring the "customElements" registry is available in the global context (window).
|
|
16
|
-
* 2. The component tag name is not already defined.
|
|
17
|
-
*
|
|
18
|
-
* Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
|
|
19
|
-
* method instead to define custom elements individually, or to provide a different tag name.
|
|
20
|
-
*/
|
|
21
|
-
export declare const defineCustomElements: (opts?: any) => void;
|
|
22
|
-
|
|
23
5
|
/**
|
|
24
6
|
* Used to manually set the base path where assets can be found.
|
|
25
7
|
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
@@ -36,7 +18,6 @@ export interface SetPlatformOptions {
|
|
|
36
18
|
raf?: (c: FrameRequestCallback) => number;
|
|
37
19
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
38
20
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
39
|
-
ce?: (eventName: string, opts?: any) => CustomEvent;
|
|
40
21
|
}
|
|
41
22
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
42
23
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface MdsTableRow extends Components.MdsTableRow, HTMLElement {}
|
|
4
|
+
export const MdsTableRow: {
|
|
5
|
+
prototype: MdsTableRow;
|
|
6
|
+
new (): MdsTableRow;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { HTMLElement, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
function toVal(mix) {
|
|
4
|
+
var k, y, str='';
|
|
5
|
+
|
|
6
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
7
|
+
str += mix;
|
|
8
|
+
} else if (typeof mix === 'object') {
|
|
9
|
+
if (Array.isArray(mix)) {
|
|
10
|
+
for (k=0; k < mix.length; k++) {
|
|
11
|
+
if (mix[k]) {
|
|
12
|
+
if (y = toVal(mix[k])) {
|
|
13
|
+
str && (str += ' ');
|
|
14
|
+
str += y;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
} else {
|
|
19
|
+
for (k in mix) {
|
|
20
|
+
if (mix[k]) {
|
|
21
|
+
str && (str += ' ');
|
|
22
|
+
str += k;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return str;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function clsx () {
|
|
32
|
+
var i=0, tmp, x, str='';
|
|
33
|
+
while (i < arguments.length) {
|
|
34
|
+
if (tmp = arguments[i++]) {
|
|
35
|
+
if (x = toVal(tmp)) {
|
|
36
|
+
str && (str += ' ');
|
|
37
|
+
str += x;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return str;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const mdsTableRowCss = ".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom:var(--border-width, 2px) solid var(--border-color, rgb(var(--adjust-tone-09)))}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";
|
|
45
|
+
|
|
46
|
+
let MdsTableRow$1 = class extends HTMLElement {
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
this.__registerHost();
|
|
50
|
+
}
|
|
51
|
+
tableInteractiveHandler(event) {
|
|
52
|
+
this.interactive = event.detail;
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return (h(Host, { class: clsx(this.interactive && 'interactive'), role: "row" }, h("slot", null)));
|
|
56
|
+
}
|
|
57
|
+
static get style() { return mdsTableRowCss; }
|
|
58
|
+
};
|
|
59
|
+
MdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(MdsTableRow$1, [4, "mds-table-row", {
|
|
60
|
+
"interactive": [32]
|
|
61
|
+
}, [[16, "tableInteractive", "tableInteractiveHandler"]]]);
|
|
62
|
+
function defineCustomElement$1() {
|
|
63
|
+
if (typeof customElements === "undefined") {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const components = ["mds-table-row"];
|
|
67
|
+
components.forEach(tagName => { switch (tagName) {
|
|
68
|
+
case "mds-table-row":
|
|
69
|
+
if (!customElements.get(tagName)) {
|
|
70
|
+
customElements.define(tagName, MdsTableRow$1);
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
} });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const MdsTableRow = MdsTableRow$1;
|
|
77
|
+
const defineCustomElement = defineCustomElement$1;
|
|
78
|
+
|
|
79
|
+
export { MdsTableRow, defineCustomElement };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-7d849f54.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
4
|
+
Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -41,7 +41,7 @@ function clsx () {
|
|
|
41
41
|
return str;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
const mdsTableRowCss = ".
|
|
44
|
+
const mdsTableRowCss = ".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom:var(--border-width, 2px) solid var(--border-color, rgb(var(--adjust-tone-09)))}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";
|
|
45
45
|
|
|
46
46
|
let MdsTableRow = class {
|
|
47
47
|
constructor(hostRef) {
|
|
@@ -51,7 +51,7 @@ let MdsTableRow = class {
|
|
|
51
51
|
this.interactive = event.detail;
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { class: clsx(
|
|
54
|
+
return (h(Host, { class: clsx(this.interactive && 'interactive'), role: "row" }, h("slot", null)));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
MdsTableRow.style = mdsTableRowCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-7d849f54.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.
|
|
4
|
+
Stencil Client Patch Browser v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-7d849f54.js";function toVal(r){var t,
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-7d849f54.js";function toVal(r){var t,o,a="";if(typeof r==="string"||typeof r==="number"){a+=r}else if(typeof r==="object"){if(Array.isArray(r)){for(t=0;t<r.length;t++){if(r[t]){if(o=toVal(r[t])){a&&(a+=" ");a+=o}}}}else{for(t in r){if(r[t]){a&&(a+=" ");a+=t}}}}return a}function clsx(){var r=0,t,o,a="";while(r<arguments.length){if(t=arguments[r++]){if(o=toVal(t)){a&&(a+=" ");a+=o}}}return a}var mdsTableRowCss=".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom:var(--border-width, 2px) solid var(--border-color, rgb(var(--adjust-tone-09)))}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";var MdsTableRow=function(){function r(r){registerInstance(this,r)}r.prototype.tableInteractiveHandler=function(r){this.interactive=r.detail};r.prototype.render=function(){return h(Host,{class:clsx(this.interactive&&"interactive"),role:"row"},h("slot",null))};return r}();MdsTableRow.style=mdsTableRowCss;export{MdsTableRow as mds_table_row};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
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)));
|
|
@@ -114,7 +114,7 @@ DOMTokenList
|
|
|
114
114
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
|
-
var url = new URL('./p-
|
|
117
|
+
var url = new URL('./p-15f2406e.system.js', new URL(resourcesUrl, window.location.origin));
|
|
118
118
|
System.import(url.href);
|
|
119
119
|
};
|
|
120
120
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-13e3a2cc.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(e){r=e.p;n=e.b}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-
|
|
1
|
+
System.register(["./p-13e3a2cc.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(e){r=e.p;n=e.b}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-4829abc6.system",[[4,"mds-table-row",{interactive:[32]},[[16,"tableInteractive","tableInteractiveHandler"]]]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-13e3a2cc.system.js"],(function(r){"use strict";var t,e,o;return{setters:[function(r){t=r.r;e=r.h;o=r.H}],execute:function(){function a(r){var t,e,o="";if(typeof r==="string"||typeof r==="number"){o+=r}else if(typeof r==="object"){if(Array.isArray(r)){for(t=0;t<r.length;t++){if(r[t]){if(e=a(r[t])){o&&(o+=" ");o+=e}}}}else{for(t in r){if(r[t]){o&&(o+=" ");o+=t}}}}return o}function s(){var r=0,t,e,o="";while(r<arguments.length){if(t=arguments[r++]){if(e=a(t)){o&&(o+=" ");o+=e}}}return o}var i=".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom:var(--border-width, 2px) solid var(--border-color, rgb(var(--adjust-tone-09)))}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";var d=r("mds_table_row",function(){function r(r){t(this,r)}r.prototype.tableInteractiveHandler=function(r){this.interactive=r.detail};r.prototype.render=function(){return e(o,{class:s(this.interactive&&"interactive"),role:"row"},e("slot",null))};return r}());d.style=i}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as t,H as o}from"./p-3619a466.js";function a(r){var t,o,e="";if("string"==typeof r||"number"==typeof r)e+=r;else if("object"==typeof r)if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(o=a(r[t]))&&(e&&(e+=" "),e+=o);else for(t in r)r[t]&&(e&&(e+=" "),e+=t);return e}function e(){for(var r,t,o=0,e="";o<arguments.length;)(r=arguments[o++])&&(t=a(r))&&(e&&(e+=" "),e+=t);return e}let s=class{constructor(t){r(this,t)}tableInteractiveHandler(r){this.interactive=r.detail}render(){return t(o,{class:e(this.interactive&&"interactive"),role:"row"},t("slot",null))}};s.style=".border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}mds-table-row{display:table-row;border-bottom-width:1px;border-bottom:var(--border-width, 2px) solid var(--border-color, rgb(var(--adjust-tone-09)))}mds-table-row:last-child{border-color:transparent}mds-table-row:first-child mds-table-cell:first-child{border-top-left-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:first-child{border-bottom-left-radius:var(--radius, 0.5rem)}mds-table-row:first-child mds-table-cell:last-child{border-top-right-radius:var(--radius, 0.5rem)}mds-table-row:last-child mds-table-cell:last-child{border-bottom-right-radius:var(--radius, 0.5rem)}mds-table-row:focus{opacity:0.5}mds-table-row.interactive:hover mds-table-cell{background-color:var(--background-row-hover, rgb(var(--adjust-tone))) !important}";export{s as mds_table_row}
|
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "
|
|
2
|
+
"timestamp": "2022-02-04T14:28:22",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "16.13.0"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 19,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/components/mds-table-row/mds-table-row.js",
|
|
19
19
|
"./dist/collection/dictionary/autocomplete.js",
|
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
"./dist/collection/dictionary/icon.js",
|
|
23
23
|
"./dist/collection/dictionary/input-text-type.js",
|
|
24
24
|
"./dist/collection/dictionary/loading.js",
|
|
25
|
-
"./dist/collection/dictionary/status.js",
|
|
26
|
-
"./dist/collection/dictionary/tag.js",
|
|
27
25
|
"./dist/collection/dictionary/typography.js",
|
|
28
26
|
"./dist/collection/dictionary/variant.js",
|
|
29
27
|
"./dist/collection/fixtures/cities.js",
|
|
@@ -39,11 +37,13 @@
|
|
|
39
37
|
]
|
|
40
38
|
},
|
|
41
39
|
{
|
|
42
|
-
"name": "dist-custom-elements
|
|
43
|
-
"files":
|
|
40
|
+
"name": "dist-custom-elements",
|
|
41
|
+
"files": 4,
|
|
44
42
|
"generatedFiles": [
|
|
45
|
-
"./dist/
|
|
46
|
-
"./dist/
|
|
43
|
+
"./dist/components/index.d.ts",
|
|
44
|
+
"./dist/components/index.js",
|
|
45
|
+
"./dist/components/mds-table-row.d.ts",
|
|
46
|
+
"./dist/components/mds-table-row.js"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -71,20 +71,20 @@
|
|
|
71
71
|
"./dist/mds-table-row/mds-table-row.esm.js",
|
|
72
72
|
"./dist/mds-table-row/mds-table-row.js",
|
|
73
73
|
"./dist/mds-table-row/p-13e3a2cc.system.js",
|
|
74
|
+
"./dist/mds-table-row/p-15f2406e.system.js",
|
|
74
75
|
"./dist/mds-table-row/p-3619a466.js",
|
|
76
|
+
"./dist/mds-table-row/p-4829abc6.system.entry.js",
|
|
75
77
|
"./dist/mds-table-row/p-50ea2036.system.js",
|
|
76
|
-
"./dist/mds-table-row/p-
|
|
77
|
-
"./dist/mds-table-row/p-aa7faac3.entry.js",
|
|
78
|
-
"./dist/mds-table-row/p-cc341cca.system.js",
|
|
78
|
+
"./dist/mds-table-row/p-db71d0ac.entry.js",
|
|
79
79
|
"./www/build/index.esm.js",
|
|
80
80
|
"./www/build/mds-table-row.esm.js",
|
|
81
81
|
"./www/build/mds-table-row.js",
|
|
82
82
|
"./www/build/p-13e3a2cc.system.js",
|
|
83
|
+
"./www/build/p-15f2406e.system.js",
|
|
83
84
|
"./www/build/p-3619a466.js",
|
|
85
|
+
"./www/build/p-4829abc6.system.entry.js",
|
|
84
86
|
"./www/build/p-50ea2036.system.js",
|
|
85
|
-
"./www/build/p-
|
|
86
|
-
"./www/build/p-aa7faac3.entry.js",
|
|
87
|
-
"./www/build/p-cc341cca.system.js"
|
|
87
|
+
"./www/build/p-db71d0ac.entry.js"
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
90
|
{
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"components": [
|
|
118
118
|
"mds-table-row"
|
|
119
119
|
],
|
|
120
|
-
"bundleId": "p-
|
|
121
|
-
"fileName": "p-
|
|
120
|
+
"bundleId": "p-db71d0ac",
|
|
121
|
+
"fileName": "p-db71d0ac.entry.js",
|
|
122
122
|
"imports": [
|
|
123
123
|
"p-3619a466.js"
|
|
124
124
|
],
|
|
125
|
-
"originalByteSize":
|
|
125
|
+
"originalByteSize": 2291
|
|
126
126
|
}
|
|
127
127
|
],
|
|
128
128
|
"esm": [
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"imports": [
|
|
137
137
|
"index-7d849f54.js"
|
|
138
138
|
],
|
|
139
|
-
"originalByteSize":
|
|
139
|
+
"originalByteSize": 2295
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
142
|
"es5": [
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"imports": [
|
|
151
151
|
"index-7d849f54.js"
|
|
152
152
|
],
|
|
153
|
-
"originalByteSize":
|
|
153
|
+
"originalByteSize": 2295
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
156
|
"system": [
|
|
@@ -159,12 +159,12 @@
|
|
|
159
159
|
"components": [
|
|
160
160
|
"mds-table-row"
|
|
161
161
|
],
|
|
162
|
-
"bundleId": "p-
|
|
163
|
-
"fileName": "p-
|
|
162
|
+
"bundleId": "p-4829abc6.system",
|
|
163
|
+
"fileName": "p-4829abc6.system.entry.js",
|
|
164
164
|
"imports": [
|
|
165
165
|
"p-13e3a2cc.system.js"
|
|
166
166
|
],
|
|
167
|
-
"originalByteSize":
|
|
167
|
+
"originalByteSize": 2621
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
170
|
"commonjs": [
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"imports": [
|
|
179
179
|
"index-797b786c.js"
|
|
180
180
|
],
|
|
181
|
-
"originalByteSize":
|
|
181
|
+
"originalByteSize": 2365
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
},
|
|
@@ -273,7 +273,28 @@
|
|
|
273
273
|
"legacyContext": [],
|
|
274
274
|
"internal": false,
|
|
275
275
|
"assetsDirs": [],
|
|
276
|
-
"styleDocs": [
|
|
276
|
+
"styleDocs": [
|
|
277
|
+
{
|
|
278
|
+
"name": "--background-row-hover",
|
|
279
|
+
"docs": "The cell background-color when the mouse go over the table row element",
|
|
280
|
+
"annotation": "prop"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "--border-color",
|
|
284
|
+
"docs": "The border color between table rows",
|
|
285
|
+
"annotation": "prop"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "--border-width",
|
|
289
|
+
"docs": "The border width between table rows",
|
|
290
|
+
"annotation": "prop"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "--radius",
|
|
294
|
+
"docs": "The radius of the table (header and footer excluded)",
|
|
295
|
+
"annotation": "prop"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
277
298
|
"docs": {
|
|
278
299
|
"tags": [],
|
|
279
300
|
"text": ""
|
|
@@ -359,8 +380,6 @@
|
|
|
359
380
|
"./src/dictionary/icon.ts": [],
|
|
360
381
|
"./src/dictionary/input-text-type.ts": [],
|
|
361
382
|
"./src/dictionary/loading.ts": [],
|
|
362
|
-
"./src/dictionary/status.ts": [],
|
|
363
|
-
"./src/dictionary/tag.ts": [],
|
|
364
383
|
"./src/dictionary/typography.ts": [],
|
|
365
384
|
"./src/dictionary/variant.ts": [],
|
|
366
385
|
"./src/fixtures/cities.ts": [],
|
|
@@ -2,4 +2,5 @@ declare const typographyDictionary: string[];
|
|
|
2
2
|
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, };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare const themeVariantDictionary: string[];
|
|
2
2
|
declare const themeLuminanceVariantDictionary: string[];
|
|
3
3
|
declare const themeStatusVariantDictionary: string[];
|
|
4
|
+
declare const themeFullVariantDictionary: string[];
|
|
4
5
|
declare const themeLabelVariantDictionary: string[];
|
|
5
6
|
declare const toneVariantDictionary: string[];
|
|
6
|
-
|
|
7
|
+
declare const toneSimpleVariantDictionary: string[];
|
|
8
|
+
declare const toneMinimalVariantDictionary: string[];
|
|
9
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|