@maggioli-design-system/magma-react 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +25 -10
- package/CHANGELOG.md +715 -0
- package/agents/anti-patterns.md +7 -4
- package/agents/assets.md +231 -28
- package/agents/color.md +7 -5
- package/agents/components.md +5 -4
- package/agents/conventions.md +16 -0
- package/agents/install.md +11 -5
- package/agents/reporting.md +11 -2
- package/agents/theming.md +15 -0
- package/dist/components.js +1 -0
- package/dist/components.server.js +1 -0
- package/dist/mds-input-date-range.server.js +1 -0
- package/dist/mds-input-date.server.js +1 -0
- package/dist/mds-input-select.server.js +1 -0
- package/dist/mds-input.server.js +1 -0
- package/dist/mds-table-footer.server.js +1 -1
- package/dist/mds-table-header-cell.js +1 -1
- package/dist/mds-table-header-cell.server.js +1 -0
- package/dist/mds-table.server.js +2 -1
- package/dist/mds-toast-region.js +12 -0
- package/dist/mds-toast-region.server.js +15 -0
- package/dist/mds-toast.server.js +2 -1
- package/dist/mds-tooltip.server.js +1 -0
- package/dist/mds-usage.server.js +2 -1
- package/dist/types/components.d.ts +1 -0
- package/dist/types/components.server.d.ts +1 -0
- package/dist/types/mds-table-header-cell.d.ts +5 -2
- package/dist/types/mds-table-header-cell.server.d.ts +5 -2
- package/dist/types/mds-toast-region.d.ts +9 -0
- package/dist/types/mds-toast-region.server.d.ts +11 -0
- package/dist/types/mds-toast.d.ts +2 -2
- package/dist/types/mds-toast.server.d.ts +2 -2
- package/package.json +6 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/ssr';
|
|
3
|
+
// @ts-ignore - ignore potential type issues as the project is importing itself
|
|
4
|
+
import * as clientComponents from "@maggioli-design-system/magma-react";
|
|
5
|
+
export const serializeShadowRoot = "declarative-shadow-dom";
|
|
6
|
+
export const MdsToastRegion = /*@__PURE__*/ createComponent({
|
|
7
|
+
tagName: 'mds-toast-region',
|
|
8
|
+
properties: {
|
|
9
|
+
position: 'position',
|
|
10
|
+
max: 'max'
|
|
11
|
+
},
|
|
12
|
+
hydrateModule: typeof window === 'undefined' ? import('@maggioli-design-system/magma/hydrate') : undefined,
|
|
13
|
+
clientModule: clientComponents.MdsToastRegion,
|
|
14
|
+
serializeShadowRoot
|
|
15
|
+
});
|
package/dist/mds-toast.server.js
CHANGED
|
@@ -10,7 +10,8 @@ export const MdsToast = /*@__PURE__*/ createComponent({
|
|
|
10
10
|
visible: 'visible',
|
|
11
11
|
variant: 'variant',
|
|
12
12
|
tone: 'tone',
|
|
13
|
-
position: 'position'
|
|
13
|
+
position: 'position',
|
|
14
|
+
deletable: 'deletable'
|
|
14
15
|
},
|
|
15
16
|
hydrateModule: typeof window === 'undefined' ? import('@maggioli-design-system/magma/hydrate') : undefined,
|
|
16
17
|
clientModule: clientComponents.MdsToast,
|
package/dist/mds-usage.server.js
CHANGED
|
@@ -7,7 +7,8 @@ export const MdsUsage = /*@__PURE__*/ createComponent({
|
|
|
7
7
|
tagName: 'mds-usage',
|
|
8
8
|
properties: {
|
|
9
9
|
variant: 'variant',
|
|
10
|
-
alias: 'alias'
|
|
10
|
+
alias: 'alias',
|
|
11
|
+
icon: 'icon'
|
|
11
12
|
},
|
|
12
13
|
hydrateModule: typeof window === 'undefined' ? import('@maggioli-design-system/magma/hydrate') : undefined,
|
|
13
14
|
clientModule: clientComponents.MdsUsage,
|
|
@@ -108,6 +108,7 @@ export { MdsTableHeader } from "./mds-table-header.js";
|
|
|
108
108
|
export { MdsTableRow } from "./mds-table-row.js";
|
|
109
109
|
export { MdsTable } from "./mds-table.js";
|
|
110
110
|
export { MdsText } from "./mds-text.js";
|
|
111
|
+
export { MdsToastRegion } from "./mds-toast-region.js";
|
|
111
112
|
export { MdsToast } from "./mds-toast.js";
|
|
112
113
|
export { MdsTooltip } from "./mds-tooltip.js";
|
|
113
114
|
export { MdsTreeItem } from "./mds-tree-item.js";
|
|
@@ -110,6 +110,7 @@ export { MdsTableHeader } from "./mds-table-header.server.js";
|
|
|
110
110
|
export { MdsTableRow } from "./mds-table-row.server.js";
|
|
111
111
|
export { MdsTable } from "./mds-table.server.js";
|
|
112
112
|
export { MdsText } from "./mds-text.server.js";
|
|
113
|
+
export { MdsToastRegion } from "./mds-toast-region.server.js";
|
|
113
114
|
export { MdsToast } from "./mds-toast.server.js";
|
|
114
115
|
export { MdsTooltip } from "./mds-tooltip.server.js";
|
|
115
116
|
export { MdsTreeItem } from "./mds-tree-item.server.js";
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* This file was automatically generated by the Stencil React Output Target.
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
|
-
import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type MdsTableHeaderCellCustomEvent, type MdsTableHeaderCellSortEventDetail } from "@maggioli-design-system/magma";
|
|
6
7
|
import type { Components } from "@maggioli-design-system/magma/dist/components";
|
|
7
8
|
import { MdsTableHeaderCell as MdsTableHeaderCellElement } from "@maggioli-design-system/magma/dist/components/mds-table-header-cell.js";
|
|
8
|
-
export type MdsTableHeaderCellEvents =
|
|
9
|
+
export type MdsTableHeaderCellEvents = {
|
|
10
|
+
onMdsTableHeaderCellSort: EventName<MdsTableHeaderCellCustomEvent<MdsTableHeaderCellSortEventDetail>>;
|
|
11
|
+
};
|
|
9
12
|
export declare const MdsTableHeaderCell: StencilReactComponent<MdsTableHeaderCellElement, MdsTableHeaderCellEvents, Components.MdsTableHeaderCell>;
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
* This file was automatically generated by the Stencil React Output Target.
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
|
-
import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
5
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
6
|
import { type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
7
|
+
import { type MdsTableHeaderCellCustomEvent, type MdsTableHeaderCellSortEventDetail } from "@maggioli-design-system/magma";
|
|
7
8
|
import type { Components } from "@maggioli-design-system/magma/dist/components";
|
|
8
9
|
import { MdsTableHeaderCell as MdsTableHeaderCellElement } from "@maggioli-design-system/magma/dist/components/mds-table-header-cell.js";
|
|
9
10
|
export declare const serializeShadowRoot: SerializeShadowRootOptions;
|
|
10
|
-
export type MdsTableHeaderCellEvents =
|
|
11
|
+
export type MdsTableHeaderCellEvents = {
|
|
12
|
+
onMdsTableHeaderCellSort: EventName<MdsTableHeaderCellCustomEvent<MdsTableHeaderCellSortEventDetail>>;
|
|
13
|
+
};
|
|
11
14
|
export declare const MdsTableHeaderCell: StencilReactComponent<MdsTableHeaderCellElement, MdsTableHeaderCellEvents, Components.MdsTableHeaderCell>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import type { Components } from "@maggioli-design-system/magma/dist/components";
|
|
7
|
+
import { MdsToastRegion as MdsToastRegionElement } from "@maggioli-design-system/magma/dist/components/mds-toast-region.js";
|
|
8
|
+
export type MdsToastRegionEvents = NonNullable<unknown>;
|
|
9
|
+
export declare const MdsToastRegion: StencilReactComponent<MdsToastRegionElement, MdsToastRegionEvents, Components.MdsToastRegion>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import { type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
7
|
+
import type { Components } from "@maggioli-design-system/magma/dist/components";
|
|
8
|
+
import { MdsToastRegion as MdsToastRegionElement } from "@maggioli-design-system/magma/dist/components/mds-toast-region.js";
|
|
9
|
+
export declare const serializeShadowRoot: SerializeShadowRootOptions;
|
|
10
|
+
export type MdsToastRegionEvents = NonNullable<unknown>;
|
|
11
|
+
export declare const MdsToastRegion: StencilReactComponent<MdsToastRegionElement, MdsToastRegionEvents, Components.MdsToastRegion>;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
-
import { type MdsToastCustomEvent } from "@maggioli-design-system/magma";
|
|
6
|
+
import { type MdsToastCloseEventDetail, type MdsToastCustomEvent } from "@maggioli-design-system/magma";
|
|
7
7
|
import type { Components } from "@maggioli-design-system/magma/dist/components";
|
|
8
8
|
import { MdsToast as MdsToastElement } from "@maggioli-design-system/magma/dist/components/mds-toast.js";
|
|
9
9
|
export type MdsToastEvents = {
|
|
10
|
-
onMdsToastClose: EventName<MdsToastCustomEvent<
|
|
10
|
+
onMdsToastClose: EventName<MdsToastCustomEvent<MdsToastCloseEventDetail>>;
|
|
11
11
|
};
|
|
12
12
|
export declare const MdsToast: StencilReactComponent<MdsToastElement, MdsToastEvents, Components.MdsToast>;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
6
|
import { type SerializeShadowRootOptions } from '@stencil/react-output-target/ssr';
|
|
7
|
-
import { type MdsToastCustomEvent } from "@maggioli-design-system/magma";
|
|
7
|
+
import { type MdsToastCloseEventDetail, type MdsToastCustomEvent } from "@maggioli-design-system/magma";
|
|
8
8
|
import type { Components } from "@maggioli-design-system/magma/dist/components";
|
|
9
9
|
import { MdsToast as MdsToastElement } from "@maggioli-design-system/magma/dist/components/mds-toast.js";
|
|
10
10
|
export declare const serializeShadowRoot: SerializeShadowRootOptions;
|
|
11
11
|
export type MdsToastEvents = {
|
|
12
|
-
onMdsToastClose: EventName<MdsToastCustomEvent<
|
|
12
|
+
onMdsToastClose: EventName<MdsToastCustomEvent<MdsToastCloseEventDetail>>;
|
|
13
13
|
};
|
|
14
14
|
export declare const MdsToast: StencilReactComponent<MdsToastElement, MdsToastEvents, Components.MdsToast>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/magma-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"main": "dist/components.js",
|
|
5
5
|
"module": "dist/components.js",
|
|
6
6
|
"types": "dist/types/components.d.ts",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"types": "./dist/types/*.d.ts",
|
|
15
15
|
"import": "./dist/*.js"
|
|
16
16
|
},
|
|
17
|
+
"./CHANGELOG.md": "./CHANGELOG.md",
|
|
17
18
|
"./package.json": "./package.json"
|
|
18
19
|
},
|
|
19
20
|
"sideEffects": false,
|
|
@@ -26,14 +27,15 @@
|
|
|
26
27
|
"files": [
|
|
27
28
|
"dist",
|
|
28
29
|
"AGENTS.md",
|
|
29
|
-
"agents/"
|
|
30
|
+
"agents/",
|
|
31
|
+
"CHANGELOG.md"
|
|
30
32
|
],
|
|
31
33
|
"publishConfig": {
|
|
32
34
|
"access": "public"
|
|
33
35
|
},
|
|
34
36
|
"dependencies": {
|
|
35
|
-
"@maggioli-design-system/magma": "2.
|
|
36
|
-
"@stencil/react-output-target": "1.6.
|
|
37
|
+
"@maggioli-design-system/magma": "2.4.0",
|
|
38
|
+
"@stencil/react-output-target": "1.6.5"
|
|
37
39
|
},
|
|
38
40
|
"repository": {
|
|
39
41
|
"type": "git",
|