@maggioli-design-system/magma-react 2.7.0 → 2.8.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 +1 -1
- package/CHANGELOG.md +25 -0
- package/agents/lint.md +20 -2
- package/dist/mds-banner.server.js +1 -0
- package/dist/mds-push-notification-item.server.js +1 -0
- package/dist/mds-toast.server.js +1 -0
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
-->
|
|
6
6
|
# @maggioli-design-system/magma-react - agent install guide
|
|
7
7
|
|
|
8
|
-
> Version 2.
|
|
8
|
+
> Version 2.8.0. You (the agent) are installing Magma into THIS project. Do not
|
|
9
9
|
> assume the setup - detect it from the project, then ask the user only for what you
|
|
10
10
|
> cannot infer. The detailed steps live in [`agents/install.md`](agents/install.md)
|
|
11
11
|
> (this target) and [`agents/assets.md`](agents/assets.md) (shared styles, fonts,
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ package.
|
|
|
7
7
|
It is released together with `magma`, at the same version: the sections are the
|
|
8
8
|
releases of `magma`.
|
|
9
9
|
|
|
10
|
+
## [magma@2.8.0] - 2026-10-26
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- *(mds-emoji)* Give every part its transform origin once, so a blink leaves no offset
|
|
15
|
+
- *(mds-filter)* Leave the gap of a field under the label of a filter
|
|
16
|
+
- *(magma)* One full stop after a deprecation in the props of AGENTS.md
|
|
17
|
+
- *(mds-input-range)* In dark the thumb takes the ink of the progress, as a switch that is on
|
|
18
|
+
- *(mds-calendar-cell)* A weekend day inside a range takes the text of the selection
|
|
19
|
+
- *(mds-modal)* On a narrow screen a full window leaves a strip of backdrop with the close button
|
|
20
|
+
- *(mds-modal)* The built-in close button shows at every position, in a strip of backdrop
|
|
21
|
+
|
|
22
|
+
### Documentation
|
|
23
|
+
|
|
24
|
+
- *(mds-header)* A header without a menu slot needs no menu="none"
|
|
25
|
+
- *(stencil)* Open four Pattern files with the form that shows the component
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
- *(mds-table-row)* The background of the actions box as a public read-only property
|
|
30
|
+
- *(mds-toast,mds-banner)* Dismissible, with deletable as a deprecated name
|
|
31
|
+
- *(lint)* No-deprecated reports a deprecated prop, with what to use instead
|
|
32
|
+
- *(magma)* Say where each component is in the published Storybook
|
|
33
|
+
- *(mds-push-notification-item)* Dismissible, with deletable as a deprecated name
|
|
34
|
+
|
|
10
35
|
## [magma@2.7.0] - 2026-10-24
|
|
11
36
|
|
|
12
37
|
### Bug Fixes
|
package/agents/lint.md
CHANGED
|
@@ -101,8 +101,8 @@ npx stylelint "src/**/*.{css,scss}"
|
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
An error is something broken or not accessible; a warning of `recommended` is a colour that
|
|
104
|
-
does not follow the mode, the named theme and the contrast preference,
|
|
105
|
-
component may change in any release. When a rule is wrong about Magma itself, report it
|
|
104
|
+
does not follow the mode, the named theme and the contrast preference, a custom property a
|
|
105
|
+
component may change in any release, or a prop the next major removes. When a rule is wrong about Magma itself, report it
|
|
106
106
|
([`reporting.md`](reporting.md)) instead of disabling it.
|
|
107
107
|
|
|
108
108
|
## Rules
|
|
@@ -112,6 +112,7 @@ component may change in any release. When a rule is wrong about Magma itself, re
|
|
|
112
112
|
| [`valid-attribute-values`](#valid-attribute-values) | ESLint | error | error |
|
|
113
113
|
| [`no-false-boolean`](#no-false-boolean) | ESLint | error | error |
|
|
114
114
|
| [`accessible-name`](#accessible-name) | ESLint | error | error |
|
|
115
|
+
| [`no-deprecated`](#no-deprecated) | ESLint | warn | error |
|
|
115
116
|
| [`no-raw-palette-classes`](#no-raw-palette-classes) | ESLint, Stylelint | warn | error |
|
|
116
117
|
| [`no-color-scheme-override`](#no-color-scheme-override) | Stylelint | error | error |
|
|
117
118
|
| [`no-raw-color`](#no-raw-color) | Stylelint | warning | error |
|
|
@@ -175,6 +176,23 @@ Left alone, because one element does not show its name: an element with an `id`
|
|
|
175
176
|
`mds-tooltip` with `relation="label"`, or an `aria-labelledby` elsewhere, may name it) and
|
|
176
177
|
one that spreads its props (`{...props}`).
|
|
177
178
|
|
|
179
|
+
### no-deprecated
|
|
180
|
+
|
|
181
|
+
A deprecated prop still works, and the next major removes it. The message quotes its
|
|
182
|
+
`@deprecated` text, which says what to use instead; the component's `AGENTS.md` marks the
|
|
183
|
+
same props as **Deprecated**.
|
|
184
|
+
|
|
185
|
+
```html
|
|
186
|
+
<!-- INCORRECT: deletable is the old name of dismissible -->
|
|
187
|
+
<mds-toast visible deletable duration="0">Invio non riuscito</mds-toast>
|
|
188
|
+
|
|
189
|
+
<!-- CORRECT -->
|
|
190
|
+
<mds-toast visible dismissible duration="0">Invio non riuscito</mds-toast>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
A prop set by a binding is reported too (`[deletable]="true"`, `deletable={true}`): the name is
|
|
194
|
+
deprecated, whatever its value.
|
|
195
|
+
|
|
178
196
|
### no-raw-palette-classes
|
|
179
197
|
|
|
180
198
|
A colour class names a role ([`color.md`](color.md)), never Tailwind's palette (`bg-white`,
|
package/dist/mds-toast.server.js
CHANGED
|
@@ -11,6 +11,7 @@ export const MdsToast = /*@__PURE__*/ createComponent({
|
|
|
11
11
|
variant: 'variant',
|
|
12
12
|
tone: 'tone',
|
|
13
13
|
position: 'position',
|
|
14
|
+
dismissible: 'dismissible',
|
|
14
15
|
deletable: 'deletable'
|
|
15
16
|
},
|
|
16
17
|
hydrateModule: typeof window === 'undefined' ? import('@maggioli-design-system/magma/hydrate') : undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/magma-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/components.js",
|
|
6
6
|
"module": "dist/components.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@maggioli-design-system/magma": "2.
|
|
38
|
+
"@maggioli-design-system/magma": "2.8.0",
|
|
39
39
|
"@stencil/react-output-target": "1.6.5"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|