@metamask-previews/design-system-shared 0.20.0-preview.a0fe3894 → 0.21.0-preview.1f40f69f

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/CHANGELOG.md CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.21.0]
11
+
12
+ ### Added
13
+
14
+ - Added `ContentPropsShared` and `ContentVerticalAlignment` so React Native can compose list-style rows and related layout patterns ([#1192](https://github.com/MetaMask/metamask-design-system/pull/1192))
15
+
16
+ ### Changed
17
+
18
+ - **BREAKING:** Dropped Node.js 18 support for the release line; no public API changes were needed in `@metamask/design-system-shared`, but consumers must run on Node 20 or newer ([#1206](https://github.com/MetaMask/metamask-design-system/pull/1206))
19
+ - **BREAKING:** Updated `TextAreaPropsShared` to remove `inputElement` so React Native `TextArea` can render the root `TextInput` directly ([#1205](https://github.com/MetaMask/metamask-design-system/pull/1205))
20
+
10
21
  ## [0.20.0]
11
22
 
12
23
  ### Added
@@ -208,7 +219,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
208
219
  - **Initial release** - MetaMask Design System Shared
209
220
  - Adding CAIP-10 address utilities ([#817](https://github.com/MetaMask/metamask-design-system/pull/817))
210
221
 
211
- [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.20.0...HEAD
222
+ [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.21.0...HEAD
223
+ [0.21.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.20.0...@metamask/design-system-shared@0.21.0
212
224
  [0.20.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.19.0...@metamask/design-system-shared@0.20.0
213
225
  [0.19.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.18.0...@metamask/design-system-shared@0.19.0
214
226
  [0.18.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-shared@0.17.0...@metamask/design-system-shared@0.18.0
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.types.cjs","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { InputPropsShared } from '../Input/Input.types';\n\n/**\n * TextArea shared props (ADR-0004). A multiline input layered on the shared\n * `InputPropsShared` contract. Platform packages layer container and\n * `TextInput` behavior on top.\n */\nexport type TextAreaPropsShared = Omit<\n InputPropsShared,\n 'isStateStylesDisabled'\n> & {\n /**\n * When true, the field shows an error state (for example border treatment).\n *\n * @default false\n */\n isError?: boolean;\n /** Replaces the default textarea input implementation. */\n inputElement?: ReactNode;\n};\n"]}
1
+ {"version":3,"file":"TextArea.types.cjs","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { InputPropsShared } from '../Input/Input.types';\n\n/**\n * TextArea shared props (ADR-0004). A multiline input layered on the shared\n * `InputPropsShared` contract. Platform packages layer container and\n * `TextInput` behavior on top.\n */\nexport type TextAreaPropsShared = Omit<\n InputPropsShared,\n 'isStateStylesDisabled'\n> & {\n /**\n * When true, the field shows an error state (for example border treatment).\n *\n * @default false\n */\n isError?: boolean;\n};\n"]}
@@ -1,4 +1,3 @@
1
- import type { ReactNode } from "react";
2
1
  import type { InputPropsShared } from "../Input/Input.types.cjs";
3
2
  /**
4
3
  * TextArea shared props (ADR-0004). A multiline input layered on the shared
@@ -12,7 +11,5 @@ export type TextAreaPropsShared = Omit<InputPropsShared, 'isStateStylesDisabled'
12
11
  * @default false
13
12
  */
14
13
  isError?: boolean;
15
- /** Replaces the default textarea input implementation. */
16
- inputElement?: ReactNode;
17
14
  };
18
15
  //# sourceMappingURL=TextArea.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.types.d.cts","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAA6B;AAE7D;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,gBAAgB,EAChB,uBAAuB,CACxB,GAAG;IACF;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"TextArea.types.d.cts","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAA6B;AAE7D;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,gBAAgB,EAChB,uBAAuB,CACxB,GAAG;IACF;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { ReactNode } from "react";
2
1
  import type { InputPropsShared } from "../Input/Input.types.mjs";
3
2
  /**
4
3
  * TextArea shared props (ADR-0004). A multiline input layered on the shared
@@ -12,7 +11,5 @@ export type TextAreaPropsShared = Omit<InputPropsShared, 'isStateStylesDisabled'
12
11
  * @default false
13
12
  */
14
13
  isError?: boolean;
15
- /** Replaces the default textarea input implementation. */
16
- inputElement?: ReactNode;
17
14
  };
18
15
  //# sourceMappingURL=TextArea.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.types.d.mts","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAA6B;AAE7D;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,gBAAgB,EAChB,uBAAuB,CACxB,GAAG;IACF;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"TextArea.types.d.mts","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAA6B;AAE7D;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,gBAAgB,EAChB,uBAAuB,CACxB,GAAG;IACF;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.types.mjs","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { InputPropsShared } from '../Input/Input.types';\n\n/**\n * TextArea shared props (ADR-0004). A multiline input layered on the shared\n * `InputPropsShared` contract. Platform packages layer container and\n * `TextInput` behavior on top.\n */\nexport type TextAreaPropsShared = Omit<\n InputPropsShared,\n 'isStateStylesDisabled'\n> & {\n /**\n * When true, the field shows an error state (for example border treatment).\n *\n * @default false\n */\n isError?: boolean;\n /** Replaces the default textarea input implementation. */\n inputElement?: ReactNode;\n};\n"]}
1
+ {"version":3,"file":"TextArea.types.mjs","sourceRoot":"","sources":["../../../src/types/TextArea/TextArea.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { InputPropsShared } from '../Input/Input.types';\n\n/**\n * TextArea shared props (ADR-0004). A multiline input layered on the shared\n * `InputPropsShared` contract. Platform packages layer container and\n * `TextInput` behavior on top.\n */\nexport type TextAreaPropsShared = Omit<\n InputPropsShared,\n 'isStateStylesDisabled'\n> & {\n /**\n * When true, the field shows an error state (for example border treatment).\n *\n * @default false\n */\n isError?: boolean;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-shared",
3
- "version": "0.20.0-preview.a0fe3894",
3
+ "version": "0.21.0-preview.1f40f69f",
4
4
  "description": "Shared types for design system libraries",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -70,7 +70,7 @@
70
70
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0"
71
71
  },
72
72
  "engines": {
73
- "node": "^18.18 || >=20"
73
+ "node": ">=20"
74
74
  },
75
75
  "publishConfig": {
76
76
  "access": "public",