@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.
Files changed (57) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mds-table-row.cjs.entry.js +2 -2
  3. package/dist/cjs/mds-table-row.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +1 -1
  5. package/dist/collection/components/mds-table-row/mds-table-row.css +24 -23
  6. package/dist/collection/components/mds-table-row/mds-table-row.js +1 -1
  7. package/dist/collection/dictionary/icon.js +1 -1
  8. package/dist/collection/dictionary/typography.js +7 -1
  9. package/dist/collection/dictionary/variant.js +29 -1
  10. package/dist/{custom-elements → components}/index.d.ts +1 -20
  11. package/dist/components/index.js +1 -0
  12. package/dist/components/mds-table-row.d.ts +11 -0
  13. package/dist/components/mds-table-row.js +79 -0
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/mds-table-row.entry.js +2 -2
  16. package/dist/esm/mds-table-row.js +1 -1
  17. package/dist/esm-es5/mds-table-row.entry.js +1 -1
  18. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  19. package/dist/mds-table-row/mds-table-row.js +1 -1
  20. package/dist/mds-table-row/{p-cc341cca.system.js → p-15f2406e.system.js} +1 -1
  21. package/dist/mds-table-row/p-4829abc6.system.entry.js +1 -0
  22. package/dist/mds-table-row/p-db71d0ac.entry.js +1 -0
  23. package/dist/stats.json +45 -26
  24. package/dist/types/dictionary/typography.d.ts +2 -1
  25. package/dist/types/dictionary/variant.d.ts +4 -1
  26. package/dist/types/stencil-public-runtime.d.ts +6 -4
  27. package/dist/types/types/typography.d.ts +3 -2
  28. package/dist/types/types/variant.d.ts +4 -1
  29. package/package.json +14 -16
  30. package/readme.md +9 -0
  31. package/src/components/mds-table-row/mds-table-row.css +21 -14
  32. package/src/components/mds-table-row/mds-table-row.tsx +1 -1
  33. package/src/components/mds-table-row/readme.md +10 -0
  34. package/src/dictionary/icon.ts +1 -1
  35. package/src/dictionary/typography.ts +8 -0
  36. package/src/dictionary/variant.ts +34 -0
  37. package/src/types/typography.ts +6 -0
  38. package/src/types/variant.ts +27 -0
  39. package/www/build/index.esm.js +0 -0
  40. package/www/build/mds-table-row.esm.js +1 -0
  41. package/www/build/mds-table-row.js +130 -0
  42. package/www/build/p-13e3a2cc.system.js +1 -0
  43. package/www/build/p-15f2406e.system.js +1 -0
  44. package/www/build/p-3619a466.js +1 -0
  45. package/www/build/p-4829abc6.system.entry.js +1 -0
  46. package/www/build/p-50ea2036.system.js +1 -0
  47. package/www/build/p-db71d0ac.entry.js +1 -0
  48. package/www/host.config.json +15 -0
  49. package/dist/collection/dictionary/status.js +0 -7
  50. package/dist/collection/dictionary/tag.js +0 -53
  51. package/dist/custom-elements/index.js +0 -74
  52. package/dist/mds-table-row/p-789f3fb9.system.entry.js +0 -1
  53. package/dist/mds-table-row/p-aa7faac3.entry.js +0 -1
  54. package/dist/types/dictionary/status.d.ts +0 -2
  55. package/dist/types/dictionary/tag.d.ts +0 -2
  56. package/src/dictionary/status.ts +0 -10
  57. package/src/dictionary/tag.ts +0 -57
@@ -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-18)));\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(--border-radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--border-radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--border-radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--border-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(--background-row-hover, rgb(var(--adjust-tone-20)));\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-18)));\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(--border-radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--border-radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--border-radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--border-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(--background-row-hover, rgb(var(--adjust-tone-20)));\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-18)));\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(--border-radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:first-child {\n border-bottom-left-radius: var(--border-radius, 0.5rem);\n}\n\n.table-row:first-child .table-cell:last-child {\n border-top-right-radius: var(--border-radius, 0.5rem);\n}\n\n.table-row:last-child .table-cell:last-child {\n border-bottom-right-radius: var(--border-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(--background-row-hover, rgb(var(--adjust-tone-20)));\n}\n";export{e as mds_table_row}
@@ -1,2 +0,0 @@
1
- declare const statusDictionary: string[];
2
- export { statusDictionary, };
@@ -1,2 +0,0 @@
1
- declare const tagsDictionary: string[];
2
- export { tagsDictionary, };
@@ -1,10 +0,0 @@
1
- const statusDictionary = [
2
- 'error',
3
- 'info',
4
- 'success',
5
- 'warning',
6
- ]
7
-
8
- export {
9
- statusDictionary,
10
- }
@@ -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
- }