@metamask-previews/design-system-shared 0.17.0-preview.178e60f → 0.19.0-preview.047f96c
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 +23 -1
- package/dist/contexts/SegmentGroup/SegmentGroup.context.cjs +7 -0
- package/dist/contexts/SegmentGroup/SegmentGroup.context.cjs.map +1 -0
- package/dist/contexts/SegmentGroup/SegmentGroup.context.d.cts +8 -0
- package/dist/contexts/SegmentGroup/SegmentGroup.context.d.cts.map +1 -0
- package/dist/contexts/SegmentGroup/SegmentGroup.context.d.mts +8 -0
- package/dist/contexts/SegmentGroup/SegmentGroup.context.d.mts.map +1 -0
- package/dist/contexts/SegmentGroup/SegmentGroup.context.mjs +4 -0
- package/dist/contexts/SegmentGroup/SegmentGroup.context.mjs.map +1 -0
- package/dist/contexts/SegmentGroup/index.cjs +6 -0
- package/dist/contexts/SegmentGroup/index.cjs.map +1 -0
- package/dist/contexts/SegmentGroup/index.d.cts +2 -0
- package/dist/contexts/SegmentGroup/index.d.cts.map +1 -0
- package/dist/contexts/SegmentGroup/index.d.mts +2 -0
- package/dist/contexts/SegmentGroup/index.d.mts.map +1 -0
- package/dist/contexts/SegmentGroup/index.mjs +2 -0
- package/dist/contexts/SegmentGroup/index.mjs.map +1 -0
- package/dist/index.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/HelpText/HelpText.types.cjs +18 -0
- package/dist/types/HelpText/HelpText.types.cjs.map +1 -0
- package/dist/types/HelpText/HelpText.types.d.cts +26 -0
- package/dist/types/HelpText/HelpText.types.d.cts.map +1 -0
- package/dist/types/HelpText/HelpText.types.d.mts +26 -0
- package/dist/types/HelpText/HelpText.types.d.mts.map +1 -0
- package/dist/types/HelpText/HelpText.types.mjs +15 -0
- package/dist/types/HelpText/HelpText.types.mjs.map +1 -0
- package/dist/types/HelpText/index.cjs +6 -0
- package/dist/types/HelpText/index.cjs.map +1 -0
- package/dist/types/HelpText/index.d.cts +2 -0
- package/dist/types/HelpText/index.d.cts.map +1 -0
- package/dist/types/HelpText/index.d.mts +2 -0
- package/dist/types/HelpText/index.d.mts.map +1 -0
- package/dist/types/HelpText/index.mjs +2 -0
- package/dist/types/HelpText/index.mjs.map +1 -0
- package/dist/types/SectionHeader/SectionHeader.types.cjs +3 -0
- package/dist/types/SectionHeader/SectionHeader.types.cjs.map +1 -0
- package/dist/types/SectionHeader/SectionHeader.types.d.cts +38 -0
- package/dist/types/SectionHeader/SectionHeader.types.d.cts.map +1 -0
- package/dist/types/SectionHeader/SectionHeader.types.d.mts +38 -0
- package/dist/types/SectionHeader/SectionHeader.types.d.mts.map +1 -0
- package/dist/types/SectionHeader/SectionHeader.types.mjs +2 -0
- package/dist/types/SectionHeader/SectionHeader.types.mjs.map +1 -0
- package/dist/types/SectionHeader/index.cjs +3 -0
- package/dist/types/SectionHeader/index.cjs.map +1 -0
- package/dist/types/SectionHeader/index.d.cts +2 -0
- package/dist/types/SectionHeader/index.d.cts.map +1 -0
- package/dist/types/SectionHeader/index.d.mts +2 -0
- package/dist/types/SectionHeader/index.d.mts.map +1 -0
- package/dist/types/SectionHeader/index.mjs +2 -0
- package/dist/types/SectionHeader/index.mjs.map +1 -0
- package/dist/types/SegmentButton/SegmentButton.types.cjs +12 -0
- package/dist/types/SegmentButton/SegmentButton.types.cjs.map +1 -0
- package/dist/types/SegmentButton/SegmentButton.types.d.cts +31 -0
- package/dist/types/SegmentButton/SegmentButton.types.d.cts.map +1 -0
- package/dist/types/SegmentButton/SegmentButton.types.d.mts +31 -0
- package/dist/types/SegmentButton/SegmentButton.types.d.mts.map +1 -0
- package/dist/types/SegmentButton/SegmentButton.types.mjs +9 -0
- package/dist/types/SegmentButton/SegmentButton.types.mjs.map +1 -0
- package/dist/types/SegmentButton/index.cjs +6 -0
- package/dist/types/SegmentButton/index.cjs.map +1 -0
- package/dist/types/SegmentButton/index.d.cts +2 -0
- package/dist/types/SegmentButton/index.d.cts.map +1 -0
- package/dist/types/SegmentButton/index.d.mts +2 -0
- package/dist/types/SegmentButton/index.d.mts.map +1 -0
- package/dist/types/SegmentButton/index.mjs +2 -0
- package/dist/types/SegmentButton/index.mjs.map +1 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.cjs +3 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.d.cts +20 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.d.mts +20 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.mjs +2 -0
- package/dist/types/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
- package/dist/types/SegmentGroup/index.cjs +3 -0
- package/dist/types/SegmentGroup/index.cjs.map +1 -0
- package/dist/types/SegmentGroup/index.d.cts +2 -0
- package/dist/types/SegmentGroup/index.d.cts.map +1 -0
- package/dist/types/SegmentGroup/index.d.mts +2 -0
- package/dist/types/SegmentGroup/index.d.mts.map +1 -0
- package/dist/types/SegmentGroup/index.mjs +2 -0
- package/dist/types/SegmentGroup/index.mjs.map +1 -0
- package/dist/types/SelectButton/SelectButton.types.cjs +29 -0
- package/dist/types/SelectButton/SelectButton.types.cjs.map +1 -0
- package/dist/types/SelectButton/SelectButton.types.d.cts +88 -0
- package/dist/types/SelectButton/SelectButton.types.d.cts.map +1 -0
- package/dist/types/SelectButton/SelectButton.types.d.mts +88 -0
- package/dist/types/SelectButton/SelectButton.types.d.mts.map +1 -0
- package/dist/types/SelectButton/SelectButton.types.mjs +26 -0
- package/dist/types/SelectButton/SelectButton.types.mjs.map +1 -0
- package/dist/types/SelectButton/index.cjs +8 -0
- package/dist/types/SelectButton/index.cjs.map +1 -0
- package/dist/types/SelectButton/index.d.cts +2 -0
- package/dist/types/SelectButton/index.d.cts.map +1 -0
- package/dist/types/SelectButton/index.d.mts +2 -0
- package/dist/types/SelectButton/index.d.mts.map +1 -0
- package/dist/types/SelectButton/index.mjs +2 -0
- package/dist/types/SelectButton/index.mjs.map +1 -0
- package/dist/types/SensitiveText/SensitiveText.types.cjs +27 -0
- package/dist/types/SensitiveText/SensitiveText.types.cjs.map +1 -0
- package/dist/types/SensitiveText/SensitiveText.types.d.cts +54 -0
- package/dist/types/SensitiveText/SensitiveText.types.d.cts.map +1 -0
- package/dist/types/SensitiveText/SensitiveText.types.d.mts +54 -0
- package/dist/types/SensitiveText/SensitiveText.types.d.mts.map +1 -0
- package/dist/types/SensitiveText/SensitiveText.types.mjs +24 -0
- package/dist/types/SensitiveText/SensitiveText.types.mjs.map +1 -0
- package/dist/types/SensitiveText/index.cjs +6 -0
- package/dist/types/SensitiveText/index.cjs.map +1 -0
- package/dist/types/SensitiveText/index.d.cts +2 -0
- package/dist/types/SensitiveText/index.d.cts.map +1 -0
- package/dist/types/SensitiveText/index.d.mts +2 -0
- package/dist/types/SensitiveText/index.d.mts.map +1 -0
- package/dist/types/SensitiveText/index.mjs +2 -0
- package/dist/types/SensitiveText/index.mjs.map +1 -0
- package/dist/types/TitleAlert/TitleAlert.types.cjs +3 -0
- package/dist/types/TitleAlert/TitleAlert.types.cjs.map +1 -0
- package/dist/types/TitleAlert/TitleAlert.types.d.cts +34 -0
- package/dist/types/TitleAlert/TitleAlert.types.d.cts.map +1 -0
- package/dist/types/TitleAlert/TitleAlert.types.d.mts +34 -0
- package/dist/types/TitleAlert/TitleAlert.types.d.mts.map +1 -0
- package/dist/types/TitleAlert/TitleAlert.types.mjs +2 -0
- package/dist/types/TitleAlert/TitleAlert.types.mjs.map +1 -0
- package/dist/types/TitleAlert/index.cjs +3 -0
- package/dist/types/TitleAlert/index.cjs.map +1 -0
- package/dist/types/TitleAlert/index.d.cts +2 -0
- package/dist/types/TitleAlert/index.d.cts.map +1 -0
- package/dist/types/TitleAlert/index.d.mts +2 -0
- package/dist/types/TitleAlert/index.d.mts.map +1 -0
- package/dist/types/TitleAlert/index.mjs +2 -0
- package/dist/types/TitleAlert/index.mjs.map +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SensitiveTextLength = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* SensitiveText - length
|
|
6
|
+
* Predefined length options for hidden bullet content (ADR-0003).
|
|
7
|
+
* Values represent the number of bullet characters displayed when text is hidden.
|
|
8
|
+
*/
|
|
9
|
+
exports.SensitiveTextLength = {
|
|
10
|
+
/**
|
|
11
|
+
* 6 bullet characters
|
|
12
|
+
*/
|
|
13
|
+
Short: '6',
|
|
14
|
+
/**
|
|
15
|
+
* 9 bullet characters
|
|
16
|
+
*/
|
|
17
|
+
Medium: '9',
|
|
18
|
+
/**
|
|
19
|
+
* 12 bullet characters
|
|
20
|
+
*/
|
|
21
|
+
Long: '12',
|
|
22
|
+
/**
|
|
23
|
+
* 20 bullet characters
|
|
24
|
+
*/
|
|
25
|
+
ExtraLong: '20',
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=SensitiveText.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SensitiveText.types.cjs","sourceRoot":"","sources":["../../../src/types/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACU,QAAA,mBAAmB,GAAG;IACjC;;OAEG;IACH,KAAK,EAAE,GAAG;IACV;;OAEG;IACH,MAAM,EAAE,GAAG;IACX;;OAEG;IACH,IAAI,EAAE,IAAI;IACV;;OAEG;IACH,SAAS,EAAE,IAAI;CACP,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * SensitiveText - length\n * Predefined length options for hidden bullet content (ADR-0003).\n * Values represent the number of bullet characters displayed when text is hidden.\n */\nexport const SensitiveTextLength = {\n /**\n * 6 bullet characters\n */\n Short: '6',\n /**\n * 9 bullet characters\n */\n Medium: '9',\n /**\n * 12 bullet characters\n */\n Long: '12',\n /**\n * 20 bullet characters\n */\n ExtraLong: '20',\n} as const;\nexport type SensitiveTextLength =\n (typeof SensitiveTextLength)[keyof typeof SensitiveTextLength];\n\n/**\n * Type for custom length values passed as numeric strings (e.g. `\"15\"`).\n */\nexport type CustomLength = string;\n\n/**\n * SensitiveText component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type SensitiveTextPropsShared = {\n /**\n * Whether the text content should be hidden.\n * When true, content is replaced with bullet characters.\n *\n * @default false\n */\n isHidden?: boolean;\n /**\n * The number of bullet characters to display when hidden.\n * Can be a predefined `SensitiveTextLength` or a custom numeric string.\n *\n * @default SensitiveTextLength.Short\n */\n length?: SensitiveTextLength | CustomLength;\n /**\n * The text content to display or hide.\n */\n children?: ReactNode;\n};\n"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* SensitiveText - length
|
|
4
|
+
* Predefined length options for hidden bullet content (ADR-0003).
|
|
5
|
+
* Values represent the number of bullet characters displayed when text is hidden.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SensitiveTextLength: {
|
|
8
|
+
/**
|
|
9
|
+
* 6 bullet characters
|
|
10
|
+
*/
|
|
11
|
+
readonly Short: "6";
|
|
12
|
+
/**
|
|
13
|
+
* 9 bullet characters
|
|
14
|
+
*/
|
|
15
|
+
readonly Medium: "9";
|
|
16
|
+
/**
|
|
17
|
+
* 12 bullet characters
|
|
18
|
+
*/
|
|
19
|
+
readonly Long: "12";
|
|
20
|
+
/**
|
|
21
|
+
* 20 bullet characters
|
|
22
|
+
*/
|
|
23
|
+
readonly ExtraLong: "20";
|
|
24
|
+
};
|
|
25
|
+
export type SensitiveTextLength = (typeof SensitiveTextLength)[keyof typeof SensitiveTextLength];
|
|
26
|
+
/**
|
|
27
|
+
* Type for custom length values passed as numeric strings (e.g. `"15"`).
|
|
28
|
+
*/
|
|
29
|
+
export type CustomLength = string;
|
|
30
|
+
/**
|
|
31
|
+
* SensitiveText component shared props (ADR-0004)
|
|
32
|
+
* Platform-independent properties shared across React and React Native.
|
|
33
|
+
*/
|
|
34
|
+
export type SensitiveTextPropsShared = {
|
|
35
|
+
/**
|
|
36
|
+
* Whether the text content should be hidden.
|
|
37
|
+
* When true, content is replaced with bullet characters.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
isHidden?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The number of bullet characters to display when hidden.
|
|
44
|
+
* Can be a predefined `SensitiveTextLength` or a custom numeric string.
|
|
45
|
+
*
|
|
46
|
+
* @default SensitiveTextLength.Short
|
|
47
|
+
*/
|
|
48
|
+
length?: SensitiveTextLength | CustomLength;
|
|
49
|
+
/**
|
|
50
|
+
* The text content to display or hide.
|
|
51
|
+
*/
|
|
52
|
+
children?: ReactNode;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=SensitiveText.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SensitiveText.types.d.cts","sourceRoot":"","sources":["../../../src/types/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,mBAAmB,GAAG,YAAY,CAAC;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* SensitiveText - length
|
|
4
|
+
* Predefined length options for hidden bullet content (ADR-0003).
|
|
5
|
+
* Values represent the number of bullet characters displayed when text is hidden.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SensitiveTextLength: {
|
|
8
|
+
/**
|
|
9
|
+
* 6 bullet characters
|
|
10
|
+
*/
|
|
11
|
+
readonly Short: "6";
|
|
12
|
+
/**
|
|
13
|
+
* 9 bullet characters
|
|
14
|
+
*/
|
|
15
|
+
readonly Medium: "9";
|
|
16
|
+
/**
|
|
17
|
+
* 12 bullet characters
|
|
18
|
+
*/
|
|
19
|
+
readonly Long: "12";
|
|
20
|
+
/**
|
|
21
|
+
* 20 bullet characters
|
|
22
|
+
*/
|
|
23
|
+
readonly ExtraLong: "20";
|
|
24
|
+
};
|
|
25
|
+
export type SensitiveTextLength = (typeof SensitiveTextLength)[keyof typeof SensitiveTextLength];
|
|
26
|
+
/**
|
|
27
|
+
* Type for custom length values passed as numeric strings (e.g. `"15"`).
|
|
28
|
+
*/
|
|
29
|
+
export type CustomLength = string;
|
|
30
|
+
/**
|
|
31
|
+
* SensitiveText component shared props (ADR-0004)
|
|
32
|
+
* Platform-independent properties shared across React and React Native.
|
|
33
|
+
*/
|
|
34
|
+
export type SensitiveTextPropsShared = {
|
|
35
|
+
/**
|
|
36
|
+
* Whether the text content should be hidden.
|
|
37
|
+
* When true, content is replaced with bullet characters.
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
isHidden?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The number of bullet characters to display when hidden.
|
|
44
|
+
* Can be a predefined `SensitiveTextLength` or a custom numeric string.
|
|
45
|
+
*
|
|
46
|
+
* @default SensitiveTextLength.Short
|
|
47
|
+
*/
|
|
48
|
+
length?: SensitiveTextLength | CustomLength;
|
|
49
|
+
/**
|
|
50
|
+
* The text content to display or hide.
|
|
51
|
+
*/
|
|
52
|
+
children?: ReactNode;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=SensitiveText.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SensitiveText.types.d.mts","sourceRoot":"","sources":["../../../src/types/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC;AACX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,mBAAmB,GAAG,YAAY,CAAC;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SensitiveText - length
|
|
3
|
+
* Predefined length options for hidden bullet content (ADR-0003).
|
|
4
|
+
* Values represent the number of bullet characters displayed when text is hidden.
|
|
5
|
+
*/
|
|
6
|
+
export const SensitiveTextLength = {
|
|
7
|
+
/**
|
|
8
|
+
* 6 bullet characters
|
|
9
|
+
*/
|
|
10
|
+
Short: '6',
|
|
11
|
+
/**
|
|
12
|
+
* 9 bullet characters
|
|
13
|
+
*/
|
|
14
|
+
Medium: '9',
|
|
15
|
+
/**
|
|
16
|
+
* 12 bullet characters
|
|
17
|
+
*/
|
|
18
|
+
Long: '12',
|
|
19
|
+
/**
|
|
20
|
+
* 20 bullet characters
|
|
21
|
+
*/
|
|
22
|
+
ExtraLong: '20',
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=SensitiveText.types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SensitiveText.types.mjs","sourceRoot":"","sources":["../../../src/types/SensitiveText/SensitiveText.types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC;;OAEG;IACH,KAAK,EAAE,GAAG;IACV;;OAEG;IACH,MAAM,EAAE,GAAG;IACX;;OAEG;IACH,IAAI,EAAE,IAAI;IACV;;OAEG;IACH,SAAS,EAAE,IAAI;CACP,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * SensitiveText - length\n * Predefined length options for hidden bullet content (ADR-0003).\n * Values represent the number of bullet characters displayed when text is hidden.\n */\nexport const SensitiveTextLength = {\n /**\n * 6 bullet characters\n */\n Short: '6',\n /**\n * 9 bullet characters\n */\n Medium: '9',\n /**\n * 12 bullet characters\n */\n Long: '12',\n /**\n * 20 bullet characters\n */\n ExtraLong: '20',\n} as const;\nexport type SensitiveTextLength =\n (typeof SensitiveTextLength)[keyof typeof SensitiveTextLength];\n\n/**\n * Type for custom length values passed as numeric strings (e.g. `\"15\"`).\n */\nexport type CustomLength = string;\n\n/**\n * SensitiveText component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type SensitiveTextPropsShared = {\n /**\n * Whether the text content should be hidden.\n * When true, content is replaced with bullet characters.\n *\n * @default false\n */\n isHidden?: boolean;\n /**\n * The number of bullet characters to display when hidden.\n * Can be a predefined `SensitiveTextLength` or a custom numeric string.\n *\n * @default SensitiveTextLength.Short\n */\n length?: SensitiveTextLength | CustomLength;\n /**\n * The text content to display or hide.\n */\n children?: ReactNode;\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SensitiveTextLength = void 0;
|
|
4
|
+
var SensitiveText_types_1 = require("./SensitiveText.types.cjs");
|
|
5
|
+
Object.defineProperty(exports, "SensitiveTextLength", { enumerable: true, get: function () { return SensitiveText_types_1.SensitiveTextLength; } });
|
|
6
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/SensitiveText/index.ts"],"names":[],"mappings":";;;AAAA,iEAI+B;AAH7B,0HAAA,mBAAmB,OAAA","sourcesContent":["export {\n SensitiveTextLength,\n type CustomLength,\n type SensitiveTextPropsShared,\n} from './SensitiveText.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/SensitiveText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,wBAAwB,GAC9B,kCAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/SensitiveText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,wBAAwB,GAC9B,kCAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/SensitiveText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAGpB,kCAA8B","sourcesContent":["export {\n SensitiveTextLength,\n type CustomLength,\n type SensitiveTextPropsShared,\n} from './SensitiveText.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { IconAlertSeverity } from '../IconAlert/IconAlert.types';\n\n/**\n * TitleAlert component shared props (ADR-0004).\n * Platform-independent properties; platform packages extend with `ViewProps` / `className`,\n * `twClassName`, and platform `Text` prop passthroughs.\n */\nexport type TitleAlertPropsShared = {\n /**\n * Maps to {@link IconAlert} glyph and theme color for the leading alert icon.\n */\n severity: IconAlertSeverity;\n /**\n * Title row content. The title row renders only when `title` is renderable;\n * `titleStartAccessory` / `titleEndAccessory` alone do not show the row.\n */\n title: ReactNode;\n /**\n * Optional accessory rendered inline to the left of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleStartAccessory?: ReactNode;\n /**\n * Optional accessory rendered inline to the right of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleEndAccessory?: ReactNode;\n /**\n * Optional description below the title row (platform packages render via `TextOrChildren`).\n * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).\n */\n description?: ReactNode;\n};\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { IconAlertSeverity } from "../IconAlert/IconAlert.types.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* TitleAlert component shared props (ADR-0004).
|
|
5
|
+
* Platform-independent properties; platform packages extend with `ViewProps` / `className`,
|
|
6
|
+
* `twClassName`, and platform `Text` prop passthroughs.
|
|
7
|
+
*/
|
|
8
|
+
export type TitleAlertPropsShared = {
|
|
9
|
+
/**
|
|
10
|
+
* Maps to {@link IconAlert} glyph and theme color for the leading alert icon.
|
|
11
|
+
*/
|
|
12
|
+
severity: IconAlertSeverity;
|
|
13
|
+
/**
|
|
14
|
+
* Title row content. The title row renders only when `title` is renderable;
|
|
15
|
+
* `titleStartAccessory` / `titleEndAccessory` alone do not show the row.
|
|
16
|
+
*/
|
|
17
|
+
title: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Optional accessory rendered inline to the left of `title` in the title row.
|
|
20
|
+
* Only shown when the title row is shown (i.e. when `title` is renderable).
|
|
21
|
+
*/
|
|
22
|
+
titleStartAccessory?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Optional accessory rendered inline to the right of `title` in the title row.
|
|
25
|
+
* Only shown when the title row is shown (i.e. when `title` is renderable).
|
|
26
|
+
*/
|
|
27
|
+
titleEndAccessory?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Optional description below the title row (platform packages render via `TextOrChildren`).
|
|
30
|
+
* Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).
|
|
31
|
+
*/
|
|
32
|
+
description?: ReactNode;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=TitleAlert.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleAlert.types.d.cts","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,yCAAqC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { IconAlertSeverity } from "../IconAlert/IconAlert.types.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* TitleAlert component shared props (ADR-0004).
|
|
5
|
+
* Platform-independent properties; platform packages extend with `ViewProps` / `className`,
|
|
6
|
+
* `twClassName`, and platform `Text` prop passthroughs.
|
|
7
|
+
*/
|
|
8
|
+
export type TitleAlertPropsShared = {
|
|
9
|
+
/**
|
|
10
|
+
* Maps to {@link IconAlert} glyph and theme color for the leading alert icon.
|
|
11
|
+
*/
|
|
12
|
+
severity: IconAlertSeverity;
|
|
13
|
+
/**
|
|
14
|
+
* Title row content. The title row renders only when `title` is renderable;
|
|
15
|
+
* `titleStartAccessory` / `titleEndAccessory` alone do not show the row.
|
|
16
|
+
*/
|
|
17
|
+
title: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Optional accessory rendered inline to the left of `title` in the title row.
|
|
20
|
+
* Only shown when the title row is shown (i.e. when `title` is renderable).
|
|
21
|
+
*/
|
|
22
|
+
titleStartAccessory?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Optional accessory rendered inline to the right of `title` in the title row.
|
|
25
|
+
* Only shown when the title row is shown (i.e. when `title` is renderable).
|
|
26
|
+
*/
|
|
27
|
+
titleEndAccessory?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Optional description below the title row (platform packages render via `TextOrChildren`).
|
|
30
|
+
* Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).
|
|
31
|
+
*/
|
|
32
|
+
description?: ReactNode;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=TitleAlert.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleAlert.types.d.mts","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,yCAAqC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleAlert.types.mjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { IconAlertSeverity } from '../IconAlert/IconAlert.types';\n\n/**\n * TitleAlert component shared props (ADR-0004).\n * Platform-independent properties; platform packages extend with `ViewProps` / `className`,\n * `twClassName`, and platform `Text` prop passthroughs.\n */\nexport type TitleAlertPropsShared = {\n /**\n * Maps to {@link IconAlert} glyph and theme color for the leading alert icon.\n */\n severity: IconAlertSeverity;\n /**\n * Title row content. The title row renders only when `title` is renderable;\n * `titleStartAccessory` / `titleEndAccessory` alone do not show the row.\n */\n title: ReactNode;\n /**\n * Optional accessory rendered inline to the left of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleStartAccessory?: ReactNode;\n /**\n * Optional accessory rendered inline to the right of `title` in the title row.\n * Only shown when the title row is shown (i.e. when `title` is renderable).\n */\n titleEndAccessory?: ReactNode;\n /**\n * Optional description below the title row (platform packages render via `TextOrChildren`).\n * Shown only when `description` is renderable (`null`, `undefined`, `false`, and `''` are not).\n */\n description?: ReactNode;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/index.ts"],"names":[],"mappings":"","sourcesContent":["export type { TitleAlertPropsShared } from './TitleAlert.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/TitleAlert/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,+BAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/TitleAlert/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,+BAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/TitleAlert/index.ts"],"names":[],"mappings":"","sourcesContent":["export type { TitleAlertPropsShared } from './TitleAlert.types';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/design-system-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-preview.047f96c",
|
|
4
4
|
"description": "Shared types for design system libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -50,16 +50,18 @@
|
|
|
50
50
|
"@metamask/utils": "^11.11.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@metamask/auto-changelog": "^6.1.
|
|
53
|
+
"@metamask/auto-changelog": "^6.1.1",
|
|
54
54
|
"@svgr/core": "^8.1.0",
|
|
55
55
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
56
56
|
"@svgr/plugin-svgo": "^8.1.0",
|
|
57
57
|
"@ts-bridge/cli": "^0.6.3",
|
|
58
58
|
"@types/jest": "^27.4.1",
|
|
59
|
-
"@types/react": "^
|
|
59
|
+
"@types/react": "^19.1.0",
|
|
60
|
+
"@types/react-test-renderer": "^19.1.0",
|
|
60
61
|
"deepmerge": "^4.2.2",
|
|
61
62
|
"jest": "^29.7.0",
|
|
62
|
-
"react": "
|
|
63
|
+
"react": "19.1.0",
|
|
64
|
+
"react-test-renderer": "19.1.0",
|
|
63
65
|
"ts-jest": "^29.2.5",
|
|
64
66
|
"tsx": "^4.20.6",
|
|
65
67
|
"typescript": "~5.2.2"
|