@maggioli-design-system/mds-table-row 1.1.1 → 1.2.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 +19 -18
- 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 +6 -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-031e68b1.system.entry.js +1 -0
- package/dist/mds-table-row/{p-cc341cca.system.js → p-15f2406e.system.js} +1 -1
- package/dist/mds-table-row/p-dab964fd.entry.js +1 -0
- package/dist/stats.json +40 -26
- package/dist/types/dictionary/typography.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +2 -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 +2 -1
- package/package.json +16 -16
- package/readme.md +9 -0
- package/src/components/mds-table-row/mds-table-row.css +16 -9
- package/src/components/mds-table-row/mds-table-row.tsx +1 -1
- package/src/components/mds-table-row/readme.md +9 -0
- package/src/dictionary/icon.ts +1 -1
- package/src/dictionary/typography.ts +8 -0
- package/src/dictionary/variant.ts +7 -0
- package/src/types/typography.ts +6 -0
- package/src/types/variant.ts +6 -1
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +1 -1
- package/www/build/p-031e68b1.system.entry.js +1 -0
- package/www/build/{p-cc341cca.system.js → p-15f2406e.system.js} +1 -1
- package/www/build/p-dab964fd.entry.js +1 -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-c3576dff.system.entry.js +0 -1
- package/dist/mds-table-row/p-d6429c2e.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/www/build/p-c3576dff.system.entry.js +0 -1
- package/www/build/p-d6429c2e.entry.js +0 -1
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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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 --radius: The radius of the table (header and footer excluded)
|
|
19
|
+
*/
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
}
|
|
21
|
+
mds-table-row {
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
display: table-row;
|
|
24
24
|
|
|
25
25
|
border-bottom-width: 1px;
|
|
26
26
|
|
|
27
27
|
border-bottom-color: var(--border-color, rgb(var(--adjust-tone-09)));
|
|
28
|
+
border-bottom-style: solid;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
mds-table-row:last-child {
|
|
31
32
|
|
|
32
33
|
border-color: transparent;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
mds-table-row:first-child mds-table-cell:first-child {
|
|
36
37
|
border-top-left-radius: var(--radius, 0.5rem);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
mds-table-row:last-child mds-table-cell:first-child {
|
|
40
41
|
border-bottom-left-radius: var(--radius, 0.5rem);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
mds-table-row:first-child mds-table-cell:last-child {
|
|
44
45
|
border-top-right-radius: var(--radius, 0.5rem);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
mds-table-row:last-child mds-table-cell:last-child {
|
|
48
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(--row-
|
|
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
|
];
|
|
@@ -57,4 +58,8 @@ const toneSimpleVariantDictionary = [
|
|
|
57
58
|
'weak',
|
|
58
59
|
'quiet',
|
|
59
60
|
];
|
|
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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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,e="";if(typeof r==="string"||typeof r==="number"){e+=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])){e&&(e+=" ");e+=o}}}}else{for(t in r){if(r[t]){e&&(e+=" ");e+=t}}}}return e}function clsx(){var r=0,t,o,e="";while(r<arguments.length){if(t=arguments[r++]){if(o=toVal(t)){e&&(e+=" ");e+=o}}}return e}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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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-dab964fd",[[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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-13e3a2cc.system.js"],(function(r){"use strict";var t,o,e;return{setters:[function(r){t=r.r;o=r.h;e=r.H}],execute:function(){function a(r){var t,o,e="";if(typeof r==="string"||typeof r==="number"){e+=r}else if(typeof r==="object"){if(Array.isArray(r)){for(t=0;t<r.length;t++){if(r[t]){if(o=a(r[t])){e&&(e+=" ");e+=o}}}}else{for(t in r){if(r[t]){e&&(e+=" ");e+=t}}}}return e}function s(){var r=0,t,o,e="";while(r<arguments.length){if(t=arguments[r++]){if(o=a(t)){e&&(e+=" ");e+=o}}}return e}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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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 o(e,{class:s(this.interactive&&"interactive"),role:"row"},o("slot",null))};return r}());d.style=i}}}));
|
|
@@ -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-031e68b1.system",[[4,"mds-table-row",{interactive:[32]},[[16,"tableInteractive","tableInteractiveHandler"]]]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as o,H as t}from"./p-3619a466.js";function a(r){var o,t,e="";if("string"==typeof r||"number"==typeof r)e+=r;else if("object"==typeof r)if(Array.isArray(r))for(o=0;o<r.length;o++)r[o]&&(t=a(r[o]))&&(e&&(e+=" "),e+=t);else for(o in r)r[o]&&(e&&(e+=" "),e+=o);return e}function e(){for(var r,o,t=0,e="";t<arguments.length;)(r=arguments[t++])&&(o=a(r))&&(e&&(e+=" "),e+=o);return e}let s=class{constructor(o){r(this,o)}tableInteractiveHandler(r){this.interactive=r.detail}render(){return o(t,{class:e(this.interactive&&"interactive"),role:"row"},o("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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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-02T14:20:31",
|
|
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
|
{
|
|
@@ -70,21 +70,21 @@
|
|
|
70
70
|
"./dist/mds-table-row/index.esm.js",
|
|
71
71
|
"./dist/mds-table-row/mds-table-row.esm.js",
|
|
72
72
|
"./dist/mds-table-row/mds-table-row.js",
|
|
73
|
+
"./dist/mds-table-row/p-031e68b1.system.entry.js",
|
|
73
74
|
"./dist/mds-table-row/p-13e3a2cc.system.js",
|
|
75
|
+
"./dist/mds-table-row/p-15f2406e.system.js",
|
|
74
76
|
"./dist/mds-table-row/p-3619a466.js",
|
|
75
77
|
"./dist/mds-table-row/p-50ea2036.system.js",
|
|
76
|
-
"./dist/mds-table-row/p-
|
|
77
|
-
"./dist/mds-table-row/p-cc341cca.system.js",
|
|
78
|
-
"./dist/mds-table-row/p-d6429c2e.entry.js",
|
|
78
|
+
"./dist/mds-table-row/p-dab964fd.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
|
+
"./www/build/p-031e68b1.system.entry.js",
|
|
82
83
|
"./www/build/p-13e3a2cc.system.js",
|
|
84
|
+
"./www/build/p-15f2406e.system.js",
|
|
83
85
|
"./www/build/p-3619a466.js",
|
|
84
86
|
"./www/build/p-50ea2036.system.js",
|
|
85
|
-
"./www/build/p-
|
|
86
|
-
"./www/build/p-cc341cca.system.js",
|
|
87
|
-
"./www/build/p-d6429c2e.entry.js"
|
|
87
|
+
"./www/build/p-dab964fd.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-dab964fd",
|
|
121
|
+
"fileName": "p-dab964fd.entry.js",
|
|
122
122
|
"imports": [
|
|
123
123
|
"p-3619a466.js"
|
|
124
124
|
],
|
|
125
|
-
"originalByteSize":
|
|
125
|
+
"originalByteSize": 2292
|
|
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": 2296
|
|
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": 2296
|
|
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-031e68b1.system",
|
|
163
|
+
"fileName": "p-031e68b1.system.entry.js",
|
|
164
164
|
"imports": [
|
|
165
165
|
"p-13e3a2cc.system.js"
|
|
166
166
|
],
|
|
167
|
-
"originalByteSize":
|
|
167
|
+
"originalByteSize": 2622
|
|
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": 2366
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
},
|
|
@@ -273,7 +273,23 @@
|
|
|
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": "--radius",
|
|
289
|
+
"docs": "The radius of the table (header and footer excluded)",
|
|
290
|
+
"annotation": "prop"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
277
293
|
"docs": {
|
|
278
294
|
"tags": [],
|
|
279
295
|
"text": ""
|
|
@@ -359,8 +375,6 @@
|
|
|
359
375
|
"./src/dictionary/icon.ts": [],
|
|
360
376
|
"./src/dictionary/input-text-type.ts": [],
|
|
361
377
|
"./src/dictionary/loading.ts": [],
|
|
362
|
-
"./src/dictionary/status.ts": [],
|
|
363
|
-
"./src/dictionary/tag.ts": [],
|
|
364
378
|
"./src/dictionary/typography.ts": [],
|
|
365
379
|
"./src/dictionary/variant.ts": [],
|
|
366
380
|
"./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, };
|
|
@@ -5,4 +5,5 @@ declare const themeFullVariantDictionary: string[];
|
|
|
5
5
|
declare const themeLabelVariantDictionary: string[];
|
|
6
6
|
declare const toneVariantDictionary: string[];
|
|
7
7
|
declare const toneSimpleVariantDictionary: string[];
|
|
8
|
-
|
|
8
|
+
declare const toneMinimalVariantDictionary: string[];
|
|
9
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
@@ -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,5 +1,5 @@
|
|
|
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
3
|
export declare type ThemeFullVariantType = 'amaranth' | 'aqua' | 'blue' | 'dark' | 'error' | 'green' | 'info' | 'light' | 'lime' | 'orange' | 'orchid' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
|
|
4
4
|
export declare type ThemeLuminanceVariantType = 'dark' | 'light';
|
|
5
5
|
export declare type LabelVariantType = 'amaranth' | 'aqua' | 'blue' | 'green' | 'lime' | 'orange' | 'orchid' | 'sky' | 'violet' | 'yellow';
|
|
@@ -7,3 +7,4 @@ export declare type ActionVariantType = 'primary' | 'dark' | 'light';
|
|
|
7
7
|
export declare type StateVariantType = 'disabled' | 'focused' | 'readonly';
|
|
8
8
|
export declare type ToneVariantType = 'strong' | 'weak' | 'ghost' | 'quiet';
|
|
9
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.2.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",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"www/"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "stencil build --docs-readme"
|
|
21
|
+
"build": "rm src/components.d.ts || true && stencil build --docs-readme"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@maggioli-design-system/mds-table": "
|
|
25
|
-
"@maggioli-design-system/mds-table-body": "
|
|
26
|
-
"@maggioli-design-system/mds-table-cell": "
|
|
27
|
-
"@maggioli-design-system/mds-table-footer": "
|
|
28
|
-
"@maggioli-design-system/mds-table-header": "
|
|
29
|
-
"@stencil/core": "^2.
|
|
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"
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"author": {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"contributors": [
|
|
38
38
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
"name": "Andrea Pruccoli",
|
|
40
|
+
"email": "andrea.pruccoli@maggioli.it",
|
|
41
|
+
"role": "Software Engineer"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
"name": "Vittorio Vittori",
|
|
45
|
+
"email": "vittorio.vittori@maggioli.it",
|
|
46
|
+
"role": "UX UI Designer"
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
49
|
}
|
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 --radius: The radius of the table (header and footer excluded)
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
mds-table-row {
|
|
4
10
|
@apply
|
|
5
11
|
border-b
|
|
6
12
|
table-row;
|
|
7
13
|
|
|
8
14
|
border-bottom-color: var(--border-color, theme('colors.adjust-tone-09'));
|
|
15
|
+
border-bottom-style: solid;
|
|
9
16
|
}
|
|
10
17
|
|
|
11
|
-
|
|
18
|
+
mds-table-row:last-child {
|
|
12
19
|
@apply border-transparent;
|
|
13
20
|
}
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
mds-table-row:first-child mds-table-cell:first-child {
|
|
16
23
|
border-top-left-radius: var(--radius, theme('borderRadius.lg'));
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
|
|
26
|
+
mds-table-row:last-child mds-table-cell:first-child {
|
|
20
27
|
border-bottom-left-radius: var(--radius, theme('borderRadius.lg'));
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
mds-table-row:first-child mds-table-cell:last-child {
|
|
24
31
|
border-top-right-radius: var(--radius, theme('borderRadius.lg'));
|
|
25
32
|
}
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
mds-table-row:last-child mds-table-cell:last-child {
|
|
28
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(--row-
|
|
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,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**
|
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
|
]
|
|
@@ -64,12 +65,18 @@ const toneSimpleVariantDictionary = [
|
|
|
64
65
|
'quiet',
|
|
65
66
|
]
|
|
66
67
|
|
|
68
|
+
const toneMinimalVariantDictionary = [
|
|
69
|
+
'strong',
|
|
70
|
+
'weak',
|
|
71
|
+
]
|
|
72
|
+
|
|
67
73
|
export {
|
|
68
74
|
themeFullVariantDictionary,
|
|
69
75
|
themeLabelVariantDictionary,
|
|
70
76
|
themeLuminanceVariantDictionary,
|
|
71
77
|
themeStatusVariantDictionary,
|
|
72
78
|
themeVariantDictionary,
|
|
79
|
+
toneMinimalVariantDictionary,
|
|
73
80
|
toneSimpleVariantDictionary,
|
|
74
81
|
toneVariantDictionary,
|
|
75
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,9 +6,10 @@ export type ThemeStatusVariantType =
|
|
|
6
6
|
|
|
7
7
|
export type ThemeVariantType =
|
|
8
8
|
| 'dark'
|
|
9
|
-
| 'light'
|
|
10
9
|
| 'error'
|
|
11
10
|
| 'info'
|
|
11
|
+
| 'light'
|
|
12
|
+
| 'primary'
|
|
12
13
|
| 'success'
|
|
13
14
|
| 'warning'
|
|
14
15
|
|
|
@@ -66,3 +67,7 @@ export type ToneSimpleVariantType =
|
|
|
66
67
|
| 'strong'
|
|
67
68
|
| 'weak'
|
|
68
69
|
| 'quiet'
|
|
70
|
+
|
|
71
|
+
export type ToneMinimalVariantType =
|
|
72
|
+
| 'strong'
|
|
73
|
+
| 'weak'
|
|
@@ -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-dab964fd",[[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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-13e3a2cc.system.js"],(function(r){"use strict";var t,o,e;return{setters:[function(r){t=r.r;o=r.h;e=r.H}],execute:function(){function a(r){var t,o,e="";if(typeof r==="string"||typeof r==="number"){e+=r}else if(typeof r==="object"){if(Array.isArray(r)){for(t=0;t<r.length;t++){if(r[t]){if(o=a(r[t])){e&&(e+=" ");e+=o}}}}else{for(t in r){if(r[t]){e&&(e+=" ");e+=t}}}}return e}function s(){var r=0,t,o,e="";while(r<arguments.length){if(t=arguments[r++]){if(o=a(t)){e&&(e+=" ");e+=o}}}return e}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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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 o(e,{class:s(this.interactive&&"interactive"),role:"row"},o("slot",null))};return r}());d.style=i}}}));
|
|
@@ -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-031e68b1.system",[[4,"mds-table-row",{interactive:[32]},[[16,"tableInteractive","tableInteractiveHandler"]]]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as o,H as t}from"./p-3619a466.js";function a(r){var o,t,e="";if("string"==typeof r||"number"==typeof r)e+=r;else if("object"==typeof r)if(Array.isArray(r))for(o=0;o<r.length;o++)r[o]&&(t=a(r[o]))&&(e&&(e+=" "),e+=t);else for(o in r)r[o]&&(e&&(e+=" "),e+=o);return e}function e(){for(var r,o,t=0,e="";t<arguments.length;)(r=arguments[t++])&&(o=a(r))&&(e&&(e+=" "),e+=o);return e}let s=class{constructor(o){r(this,o)}tableInteractiveHandler(r){this.interactive=r.detail}render(){return o(t,{class:e(this.interactive&&"interactive"),role:"row"},o("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-color:var(--border-color, rgb(var(--adjust-tone-09)));border-bottom-style:solid}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}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
const tagsDictionary = [
|
|
2
|
-
'abbr',
|
|
3
|
-
'address',
|
|
4
|
-
'article',
|
|
5
|
-
'b',
|
|
6
|
-
'bdo',
|
|
7
|
-
'blockquote',
|
|
8
|
-
'cite',
|
|
9
|
-
'code',
|
|
10
|
-
'dd',
|
|
11
|
-
'del',
|
|
12
|
-
'details',
|
|
13
|
-
'dfn',
|
|
14
|
-
'div',
|
|
15
|
-
'dl',
|
|
16
|
-
'dt',
|
|
17
|
-
'em',
|
|
18
|
-
'figcaption',
|
|
19
|
-
'h1',
|
|
20
|
-
'h2',
|
|
21
|
-
'h3',
|
|
22
|
-
'h4',
|
|
23
|
-
'h5',
|
|
24
|
-
'h6',
|
|
25
|
-
'i',
|
|
26
|
-
'ins',
|
|
27
|
-
'kbd',
|
|
28
|
-
'label',
|
|
29
|
-
'legend',
|
|
30
|
-
'li',
|
|
31
|
-
'mark',
|
|
32
|
-
'ol',
|
|
33
|
-
'p',
|
|
34
|
-
'pre',
|
|
35
|
-
'q',
|
|
36
|
-
'rb',
|
|
37
|
-
'rt',
|
|
38
|
-
'ruby',
|
|
39
|
-
's',
|
|
40
|
-
'samp',
|
|
41
|
-
'small',
|
|
42
|
-
'span',
|
|
43
|
-
'strong',
|
|
44
|
-
'sub',
|
|
45
|
-
'summary',
|
|
46
|
-
'sup',
|
|
47
|
-
'time',
|
|
48
|
-
'u',
|
|
49
|
-
'ul',
|
|
50
|
-
'var',
|
|
51
|
-
'wbr',
|
|
52
|
-
];
|
|
53
|
-
export { tagsDictionary, };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
|
|
4
|
-
function toVal(mix) {
|
|
5
|
-
var k, y, str='';
|
|
6
|
-
|
|
7
|
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
8
|
-
str += mix;
|
|
9
|
-
} else if (typeof mix === 'object') {
|
|
10
|
-
if (Array.isArray(mix)) {
|
|
11
|
-
for (k=0; k < mix.length; k++) {
|
|
12
|
-
if (mix[k]) {
|
|
13
|
-
if (y = toVal(mix[k])) {
|
|
14
|
-
str && (str += ' ');
|
|
15
|
-
str += y;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
} else {
|
|
20
|
-
for (k in mix) {
|
|
21
|
-
if (mix[k]) {
|
|
22
|
-
str && (str += ' ');
|
|
23
|
-
str += k;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return str;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function clsx () {
|
|
33
|
-
var i=0, tmp, x, str='';
|
|
34
|
-
while (i < arguments.length) {
|
|
35
|
-
if (tmp = arguments[i++]) {
|
|
36
|
-
if (x = toVal(tmp)) {
|
|
37
|
-
str && (str += ' ');
|
|
38
|
-
str += x;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return str;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const mdsTableRowCss = ".table-row {\n\n display: table-row;\n}\n\n.border {\n\n border-width: 1px;\n}\n\n.shadow {\n\n --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n {\n\n display: table-row;\n}\n\n.table-row {\n\n border-bottom-width: 1px;\n\n border-bottom-color: var(--border-color, rgb(var(--adjust-tone-09)));\n}\n\n.table-row:last-child {\n\n border-color: transparent;\n}\n\n.table-row:first-child .table-cell:first-child {\n border-top-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:focus {\n\n opacity: 0.5;\n}\n\n.table-row--interactive:hover .table-cell {\n background-color: var(--row-background-hover, rgb(var(--adjust-tone-10)));\n}\n";
|
|
46
|
-
|
|
47
|
-
let MdsTableRow$1 = class extends HTMLElement {
|
|
48
|
-
constructor() {
|
|
49
|
-
super();
|
|
50
|
-
this.__registerHost();
|
|
51
|
-
}
|
|
52
|
-
tableInteractiveHandler(event) {
|
|
53
|
-
this.interactive = event.detail;
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
return (h(Host, { class: clsx('table-row', this.interactive && 'table-row--interactive'), role: "row" }, h("slot", null)));
|
|
57
|
-
}
|
|
58
|
-
static get style() { return mdsTableRowCss; }
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const MdsTableRow = /*@__PURE__*/proxyCustomElement(MdsTableRow$1, [4,"mds-table-row",{"interactive":[32]},[[16,"tableInteractive","tableInteractiveHandler"]]]);
|
|
62
|
-
const defineCustomElements = (opts) => {
|
|
63
|
-
if (typeof customElements !== 'undefined') {
|
|
64
|
-
[
|
|
65
|
-
MdsTableRow
|
|
66
|
-
].forEach(cmp => {
|
|
67
|
-
if (!customElements.get(cmp.is)) {
|
|
68
|
-
customElements.define(cmp.is, cmp, opts);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export { MdsTableRow, defineCustomElements };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-13e3a2cc.system.js"],(function(r){"use strict";var t,n,e;return{setters:[function(r){t=r.r;n=r.h;e=r.H}],execute:function(){function o(r){var t,n,e="";if(typeof r==="string"||typeof r==="number"){e+=r}else if(typeof r==="object"){if(Array.isArray(r)){for(t=0;t<r.length;t++){if(r[t]){if(n=o(r[t])){e&&(e+=" ");e+=n}}}}else{for(t in r){if(r[t]){e&&(e+=" ");e+=t}}}}return e}function a(){var r=0,t,n,e="";while(r<arguments.length){if(t=arguments[r++]){if(n=o(t)){e&&(e+=" ");e+=n}}}return e}var i=".table-row {\n\n display: table-row;\n}\n\n.border {\n\n border-width: 1px;\n}\n\n.shadow {\n\n --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n {\n\n display: table-row;\n}\n\n.table-row {\n\n border-bottom-width: 1px;\n\n border-bottom-color: var(--border-color, rgb(var(--adjust-tone-09)));\n}\n\n.table-row:last-child {\n\n border-color: transparent;\n}\n\n.table-row:first-child .table-cell:first-child {\n border-top-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:focus {\n\n opacity: 0.5;\n}\n\n.table-row--interactive:hover .table-cell {\n background-color: var(--row-background-hover, rgb(var(--adjust-tone-10)));\n}\n";var l=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 n(e,{class:a("table-row",this.interactive&&"table-row--interactive"),role:"row"},n("slot",null))};return r}());l.style=i}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as n,H as t}from"./p-3619a466.js";function o(r){var n,t,a="";if("string"==typeof r||"number"==typeof r)a+=r;else if("object"==typeof r)if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(t=o(r[n]))&&(a&&(a+=" "),a+=t);else for(n in r)r[n]&&(a&&(a+=" "),a+=n);return a}function a(){for(var r,n,t=0,a="";t<arguments.length;)(r=arguments[t++])&&(n=o(r))&&(a&&(a+=" "),a+=n);return a}let e=class{constructor(n){r(this,n)}tableInteractiveHandler(r){this.interactive=r.detail}render(){return n(t,{class:a("table-row",this.interactive&&"table-row--interactive"),role:"row"},n("slot",null))}};e.style=".table-row {\n\n display: table-row;\n}\n\n.border {\n\n border-width: 1px;\n}\n\n.shadow {\n\n --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n {\n\n display: table-row;\n}\n\n.table-row {\n\n border-bottom-width: 1px;\n\n border-bottom-color: var(--border-color, rgb(var(--adjust-tone-09)));\n}\n\n.table-row:last-child {\n\n border-color: transparent;\n}\n\n.table-row:first-child .table-cell:first-child {\n border-top-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:focus {\n\n opacity: 0.5;\n}\n\n.table-row--interactive:hover .table-cell {\n background-color: var(--row-background-hover, rgb(var(--adjust-tone-10)));\n}\n";export{e as mds_table_row}
|
package/src/dictionary/status.ts
DELETED
package/src/dictionary/tag.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const tagsDictionary = [
|
|
3
|
-
'abbr',
|
|
4
|
-
'address',
|
|
5
|
-
'article',
|
|
6
|
-
'b',
|
|
7
|
-
'bdo',
|
|
8
|
-
'blockquote',
|
|
9
|
-
'cite',
|
|
10
|
-
'code',
|
|
11
|
-
'dd',
|
|
12
|
-
'del',
|
|
13
|
-
'details',
|
|
14
|
-
'dfn',
|
|
15
|
-
'div',
|
|
16
|
-
'dl',
|
|
17
|
-
'dt',
|
|
18
|
-
'em',
|
|
19
|
-
'figcaption',
|
|
20
|
-
'h1',
|
|
21
|
-
'h2',
|
|
22
|
-
'h3',
|
|
23
|
-
'h4',
|
|
24
|
-
'h5',
|
|
25
|
-
'h6',
|
|
26
|
-
'i',
|
|
27
|
-
'ins',
|
|
28
|
-
'kbd',
|
|
29
|
-
'label',
|
|
30
|
-
'legend',
|
|
31
|
-
'li',
|
|
32
|
-
'mark',
|
|
33
|
-
'ol',
|
|
34
|
-
'p',
|
|
35
|
-
'pre',
|
|
36
|
-
'q',
|
|
37
|
-
'rb',
|
|
38
|
-
'rt',
|
|
39
|
-
'ruby',
|
|
40
|
-
's',
|
|
41
|
-
'samp',
|
|
42
|
-
'small',
|
|
43
|
-
'span',
|
|
44
|
-
'strong',
|
|
45
|
-
'sub',
|
|
46
|
-
'summary',
|
|
47
|
-
'sup',
|
|
48
|
-
'time',
|
|
49
|
-
'u',
|
|
50
|
-
'ul',
|
|
51
|
-
'var',
|
|
52
|
-
'wbr',
|
|
53
|
-
]
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
tagsDictionary,
|
|
57
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-13e3a2cc.system.js"],(function(r){"use strict";var t,n,e;return{setters:[function(r){t=r.r;n=r.h;e=r.H}],execute:function(){function o(r){var t,n,e="";if(typeof r==="string"||typeof r==="number"){e+=r}else if(typeof r==="object"){if(Array.isArray(r)){for(t=0;t<r.length;t++){if(r[t]){if(n=o(r[t])){e&&(e+=" ");e+=n}}}}else{for(t in r){if(r[t]){e&&(e+=" ");e+=t}}}}return e}function a(){var r=0,t,n,e="";while(r<arguments.length){if(t=arguments[r++]){if(n=o(t)){e&&(e+=" ");e+=n}}}return e}var i=".table-row {\n\n display: table-row;\n}\n\n.border {\n\n border-width: 1px;\n}\n\n.shadow {\n\n --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n {\n\n display: table-row;\n}\n\n.table-row {\n\n border-bottom-width: 1px;\n\n border-bottom-color: var(--border-color, rgb(var(--adjust-tone-09)));\n}\n\n.table-row:last-child {\n\n border-color: transparent;\n}\n\n.table-row:first-child .table-cell:first-child {\n border-top-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:focus {\n\n opacity: 0.5;\n}\n\n.table-row--interactive:hover .table-cell {\n background-color: var(--row-background-hover, rgb(var(--adjust-tone-10)));\n}\n";var l=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 n(e,{class:a("table-row",this.interactive&&"table-row--interactive"),role:"row"},n("slot",null))};return r}());l.style=i}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as n,H as t}from"./p-3619a466.js";function o(r){var n,t,a="";if("string"==typeof r||"number"==typeof r)a+=r;else if("object"==typeof r)if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(t=o(r[n]))&&(a&&(a+=" "),a+=t);else for(n in r)r[n]&&(a&&(a+=" "),a+=n);return a}function a(){for(var r,n,t=0,a="";t<arguments.length;)(r=arguments[t++])&&(n=o(r))&&(a&&(a+=" "),a+=n);return a}let e=class{constructor(n){r(this,n)}tableInteractiveHandler(r){this.interactive=r.detail}render(){return n(t,{class:a("table-row",this.interactive&&"table-row--interactive"),role:"row"},n("slot",null))}};e.style=".table-row {\n\n display: table-row;\n}\n\n.border {\n\n border-width: 1px;\n}\n\n.shadow {\n\n --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n {\n\n display: table-row;\n}\n\n.table-row {\n\n border-bottom-width: 1px;\n\n border-bottom-color: var(--border-color, rgb(var(--adjust-tone-09)));\n}\n\n.table-row:last-child {\n\n border-color: transparent;\n}\n\n.table-row:first-child .table-cell:first-child {\n border-top-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--radius, 0.5rem);\n}\n\n.table-row:focus {\n\n opacity: 0.5;\n}\n\n.table-row--interactive:hover .table-cell {\n background-color: var(--row-background-hover, rgb(var(--adjust-tone-10)));\n}\n";export{e as mds_table_row}
|