@metamask-previews/design-system-shared 0.7.0-preview.dff9dce → 0.8.0-preview.a73a010

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 (58) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/index.cjs +9 -8
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +2 -1
  5. package/dist/index.d.cts.map +1 -1
  6. package/dist/index.d.mts +2 -1
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.mjs +2 -2
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/types/Box/Box.types.cjs +176 -0
  11. package/dist/types/Box/Box.types.cjs.map +1 -0
  12. package/dist/types/Box/Box.types.d.cts +297 -0
  13. package/dist/types/Box/Box.types.d.cts.map +1 -0
  14. package/dist/types/Box/Box.types.d.mts +297 -0
  15. package/dist/types/Box/Box.types.d.mts.map +1 -0
  16. package/dist/types/Box/Box.types.mjs +173 -0
  17. package/dist/types/Box/Box.types.mjs.map +1 -0
  18. package/dist/types/Box/index.cjs +11 -0
  19. package/dist/types/Box/index.cjs.map +1 -0
  20. package/dist/types/Box/index.d.cts +2 -0
  21. package/dist/types/Box/index.d.cts.map +1 -0
  22. package/dist/types/Box/index.d.mts +2 -0
  23. package/dist/types/Box/index.d.mts.map +1 -0
  24. package/dist/types/Box/index.mjs +2 -0
  25. package/dist/types/Box/index.mjs.map +1 -0
  26. package/dist/types/KeyValueColumn/KeyValueColumn.types.cjs +3 -0
  27. package/dist/types/KeyValueColumn/KeyValueColumn.types.cjs.map +1 -0
  28. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.cts +20 -0
  29. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -0
  30. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.mts +20 -0
  31. package/dist/types/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -0
  32. package/dist/types/KeyValueColumn/KeyValueColumn.types.mjs +2 -0
  33. package/dist/types/KeyValueColumn/KeyValueColumn.types.mjs.map +1 -0
  34. package/dist/types/KeyValueColumn/index.cjs +3 -0
  35. package/dist/types/KeyValueColumn/index.cjs.map +1 -0
  36. package/dist/types/KeyValueColumn/index.d.cts +2 -0
  37. package/dist/types/KeyValueColumn/index.d.cts.map +1 -0
  38. package/dist/types/KeyValueColumn/index.d.mts +2 -0
  39. package/dist/types/KeyValueColumn/index.d.mts.map +1 -0
  40. package/dist/types/KeyValueColumn/index.mjs +2 -0
  41. package/dist/types/KeyValueColumn/index.mjs.map +1 -0
  42. package/package.json +1 -1
  43. package/dist/types/Text/Text.types.cjs +0 -118
  44. package/dist/types/Text/Text.types.cjs.map +0 -1
  45. package/dist/types/Text/Text.types.d.cts +0 -140
  46. package/dist/types/Text/Text.types.d.cts.map +0 -1
  47. package/dist/types/Text/Text.types.d.mts +0 -140
  48. package/dist/types/Text/Text.types.d.mts.map +0 -1
  49. package/dist/types/Text/Text.types.mjs +0 -115
  50. package/dist/types/Text/Text.types.mjs.map +0 -1
  51. package/dist/types/Text/index.cjs +0 -10
  52. package/dist/types/Text/index.cjs.map +0 -1
  53. package/dist/types/Text/index.d.cts +0 -2
  54. package/dist/types/Text/index.d.cts.map +0 -1
  55. package/dist/types/Text/index.d.mts +0 -2
  56. package/dist/types/Text/index.d.mts.map +0 -1
  57. package/dist/types/Text/index.mjs +0 -2
  58. package/dist/types/Text/index.mjs.map +0 -1
@@ -0,0 +1,173 @@
1
+ /**
2
+ * Box - flexDirection
3
+ * Convert from enum to const object (ADR-0003)
4
+ */
5
+ export const BoxFlexDirection = {
6
+ Row: 'flex-row',
7
+ RowReverse: 'flex-row-reverse',
8
+ Column: 'flex-col',
9
+ ColumnReverse: 'flex-col-reverse',
10
+ };
11
+ /**
12
+ * Box - flexWrap
13
+ * Convert from enum to const object (ADR-0003)
14
+ */
15
+ export const BoxFlexWrap = {
16
+ NoWrap: 'flex-nowrap',
17
+ Wrap: 'flex-wrap',
18
+ WrapReverse: 'flex-wrap-reverse',
19
+ };
20
+ /**
21
+ * Box - alignItems
22
+ * Convert from enum to const object (ADR-0003)
23
+ */
24
+ export const BoxAlignItems = {
25
+ Start: 'items-start',
26
+ Center: 'items-center',
27
+ End: 'items-end',
28
+ Stretch: 'items-stretch',
29
+ Baseline: 'items-baseline',
30
+ };
31
+ /**
32
+ * Box - justifyContent
33
+ * Convert from enum to const object (ADR-0003)
34
+ */
35
+ export const BoxJustifyContent = {
36
+ Start: 'justify-start',
37
+ Center: 'justify-center',
38
+ End: 'justify-end',
39
+ Between: 'justify-between',
40
+ Around: 'justify-around',
41
+ Evenly: 'justify-evenly',
42
+ };
43
+ /**
44
+ * Box - backgroundColor
45
+ * Convert from enum to const object (ADR-0003)
46
+ */
47
+ export const BoxBackgroundColor = {
48
+ /** Default background color */
49
+ BackgroundDefault: 'bg-default',
50
+ /** Alternative background color */
51
+ BackgroundAlternative: 'bg-alternative',
52
+ /** Section background color */
53
+ BackgroundSection: 'bg-section',
54
+ /** Subsection background color */
55
+ BackgroundSubsection: 'bg-subsection',
56
+ /** Muted background color */
57
+ BackgroundMuted: 'bg-muted',
58
+ /** Primary default background color */
59
+ PrimaryDefault: 'bg-primary-default',
60
+ /** Primary alternative background color */
61
+ PrimaryAlternative: 'bg-primary-alternative',
62
+ /** Primary muted background color */
63
+ PrimaryMuted: 'bg-primary-muted',
64
+ /** Primary inverse background color */
65
+ PrimaryInverse: 'bg-primary-inverse',
66
+ /** Error default background color */
67
+ ErrorDefault: 'bg-error-default',
68
+ /** Error alternative background color */
69
+ ErrorAlternative: 'bg-error-alternative',
70
+ /** Error muted background color */
71
+ ErrorMuted: 'bg-error-muted',
72
+ /** Error inverse background color */
73
+ ErrorInverse: 'bg-error-inverse',
74
+ /** Warning default background color */
75
+ WarningDefault: 'bg-warning-default',
76
+ /** Warning alternative background color */
77
+ WarningAlternative: 'bg-warning-alternative',
78
+ /** Warning muted background color */
79
+ WarningMuted: 'bg-warning-muted',
80
+ /** Warning inverse background color */
81
+ WarningInverse: 'bg-warning-inverse',
82
+ /** Success default background color */
83
+ SuccessDefault: 'bg-success-default',
84
+ /** Success alternative background color */
85
+ SuccessAlternative: 'bg-success-alternative',
86
+ /** Success muted background color */
87
+ SuccessMuted: 'bg-success-muted',
88
+ /** Success inverse background color */
89
+ SuccessInverse: 'bg-success-inverse',
90
+ /** Info default background color */
91
+ InfoDefault: 'bg-info-default',
92
+ /** Info muted background color */
93
+ InfoMuted: 'bg-info-muted',
94
+ /** Info inverse background color */
95
+ InfoInverse: 'bg-info-inverse',
96
+ /** Flask default background color */
97
+ FlaskDefault: 'bg-flask-default',
98
+ /** Flask inverse background color */
99
+ FlaskInverse: 'bg-flask-inverse',
100
+ /** Overlay alternative background color */
101
+ OverlayAlternative: 'bg-overlay-alternative',
102
+ /** Overlay default background color */
103
+ OverlayDefault: 'bg-overlay-default',
104
+ /** Overlay inverse background color */
105
+ OverlayInverse: 'bg-overlay-inverse',
106
+ /** Transparent background color */
107
+ Transparent: 'bg-transparent',
108
+ };
109
+ /**
110
+ * Box - borderColor
111
+ * Convert from enum to const object (ADR-0003)
112
+ */
113
+ export const BoxBorderColor = {
114
+ /** Background default for cut out effect */
115
+ BackgroundDefault: 'border-background-default',
116
+ /** Default border color */
117
+ BorderDefault: 'border-default',
118
+ /** Muted border color */
119
+ BorderMuted: 'border-muted',
120
+ /** Primary default border color */
121
+ PrimaryDefault: 'border-primary-default',
122
+ /** Primary alternative border color */
123
+ PrimaryAlternative: 'border-primary-alternative',
124
+ /** Primary muted border color */
125
+ PrimaryMuted: 'border-primary-muted',
126
+ /** Primary inverse border color */
127
+ PrimaryInverse: 'border-primary-inverse',
128
+ /** Error default border color */
129
+ ErrorDefault: 'border-error-default',
130
+ /** Error alternative border color */
131
+ ErrorAlternative: 'border-error-alternative',
132
+ /** Error muted border color */
133
+ ErrorMuted: 'border-error-muted',
134
+ /** Error inverse border color */
135
+ ErrorInverse: 'border-error-inverse',
136
+ /** Warning default border color */
137
+ WarningDefault: 'border-warning-default',
138
+ /** Warning alternative border color */
139
+ WarningAlternative: 'border-warning-alternative',
140
+ /** Warning muted border color */
141
+ WarningMuted: 'border-warning-muted',
142
+ /** Warning inverse border color */
143
+ WarningInverse: 'border-warning-inverse',
144
+ /** Success default border color */
145
+ SuccessDefault: 'border-success-default',
146
+ /** Success alternative border color */
147
+ SuccessAlternative: 'border-success-alternative',
148
+ /** Success muted border color */
149
+ SuccessMuted: 'border-success-muted',
150
+ /** Success inverse border color */
151
+ SuccessInverse: 'border-success-inverse',
152
+ /** Info default border color */
153
+ InfoDefault: 'border-info-default',
154
+ /** Info alternative border color */
155
+ InfoAlternative: 'border-info-alternative',
156
+ /** Info muted border color */
157
+ InfoMuted: 'border-info-muted',
158
+ /** Info inverse border color */
159
+ InfoInverse: 'border-info-inverse',
160
+ /** Flask default border color */
161
+ FlaskDefault: 'border-flask-default',
162
+ /** Flask inverse border color */
163
+ FlaskInverse: 'border-flask-inverse',
164
+ /** Overlay alternative border color */
165
+ OverlayAlternative: 'border-overlay-alternative',
166
+ /** Overlay default border color */
167
+ OverlayDefault: 'border-overlay-default',
168
+ /** Overlay inverse border color */
169
+ OverlayInverse: 'border-overlay-inverse',
170
+ /** Transparent border color */
171
+ Transparent: 'border-transparent',
172
+ };
173
+ //# sourceMappingURL=Box.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/types/Box/Box.types.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,UAAU;IACf,UAAU,EAAE,kBAAkB;IAC9B,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,kBAAkB;CACzB,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,mBAAmB;CACxB,CAAC;AAGX;;;GAGG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,EAAE,4BAA4B;IAChD,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,gCAAgC;IAChC,WAAW,EAAE,qBAAqB;IAClC,oCAAoC;IACpC,eAAe,EAAE,yBAAyB;IAC1C,8BAA8B;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,gCAAgC;IAChC,WAAW,EAAE,qBAAqB;IAClC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,uCAAuC;IACvC,kBAAkB,EAAE,4BAA4B;IAChD,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,+BAA+B;IAC/B,WAAW,EAAE,oBAAoB;CACzB,CAAC","sourcesContent":["/**\n * Box - all spacing-related props\n */\nexport type BoxSpacing = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Box - border width values (only valid Tailwind CSS border width utilities)\n */\nexport type BoxBorderWidth = 0 | 1 | 2 | 4 | 8;\n\n/**\n * Box - flexDirection\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexDirection = {\n Row: 'flex-row',\n RowReverse: 'flex-row-reverse',\n Column: 'flex-col',\n ColumnReverse: 'flex-col-reverse',\n} as const;\nexport type BoxFlexDirection =\n (typeof BoxFlexDirection)[keyof typeof BoxFlexDirection];\n\n/**\n * Box - flexWrap\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexWrap = {\n NoWrap: 'flex-nowrap',\n Wrap: 'flex-wrap',\n WrapReverse: 'flex-wrap-reverse',\n} as const;\nexport type BoxFlexWrap = (typeof BoxFlexWrap)[keyof typeof BoxFlexWrap];\n\n/**\n * Box - alignItems\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxAlignItems = {\n Start: 'items-start',\n Center: 'items-center',\n End: 'items-end',\n Stretch: 'items-stretch',\n Baseline: 'items-baseline',\n} as const;\nexport type BoxAlignItems = (typeof BoxAlignItems)[keyof typeof BoxAlignItems];\n\n/**\n * Box - justifyContent\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxJustifyContent = {\n Start: 'justify-start',\n Center: 'justify-center',\n End: 'justify-end',\n Between: 'justify-between',\n Around: 'justify-around',\n Evenly: 'justify-evenly',\n} as const;\nexport type BoxJustifyContent =\n (typeof BoxJustifyContent)[keyof typeof BoxJustifyContent];\n\n/**\n * Box - backgroundColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBackgroundColor = {\n /** Default background color */\n BackgroundDefault: 'bg-default',\n /** Alternative background color */\n BackgroundAlternative: 'bg-alternative',\n /** Section background color */\n BackgroundSection: 'bg-section',\n /** Subsection background color */\n BackgroundSubsection: 'bg-subsection',\n /** Muted background color */\n BackgroundMuted: 'bg-muted',\n /** Primary default background color */\n PrimaryDefault: 'bg-primary-default',\n /** Primary alternative background color */\n PrimaryAlternative: 'bg-primary-alternative',\n /** Primary muted background color */\n PrimaryMuted: 'bg-primary-muted',\n /** Primary inverse background color */\n PrimaryInverse: 'bg-primary-inverse',\n /** Error default background color */\n ErrorDefault: 'bg-error-default',\n /** Error alternative background color */\n ErrorAlternative: 'bg-error-alternative',\n /** Error muted background color */\n ErrorMuted: 'bg-error-muted',\n /** Error inverse background color */\n ErrorInverse: 'bg-error-inverse',\n /** Warning default background color */\n WarningDefault: 'bg-warning-default',\n /** Warning alternative background color */\n WarningAlternative: 'bg-warning-alternative',\n /** Warning muted background color */\n WarningMuted: 'bg-warning-muted',\n /** Warning inverse background color */\n WarningInverse: 'bg-warning-inverse',\n /** Success default background color */\n SuccessDefault: 'bg-success-default',\n /** Success alternative background color */\n SuccessAlternative: 'bg-success-alternative',\n /** Success muted background color */\n SuccessMuted: 'bg-success-muted',\n /** Success inverse background color */\n SuccessInverse: 'bg-success-inverse',\n /** Info default background color */\n InfoDefault: 'bg-info-default',\n /** Info muted background color */\n InfoMuted: 'bg-info-muted',\n /** Info inverse background color */\n InfoInverse: 'bg-info-inverse',\n /** Flask default background color */\n FlaskDefault: 'bg-flask-default',\n /** Flask inverse background color */\n FlaskInverse: 'bg-flask-inverse',\n /** Overlay alternative background color */\n OverlayAlternative: 'bg-overlay-alternative',\n /** Overlay default background color */\n OverlayDefault: 'bg-overlay-default',\n /** Overlay inverse background color */\n OverlayInverse: 'bg-overlay-inverse',\n /** Transparent background color */\n Transparent: 'bg-transparent',\n} as const;\nexport type BoxBackgroundColor =\n (typeof BoxBackgroundColor)[keyof typeof BoxBackgroundColor];\n\n/**\n * Box - borderColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBorderColor = {\n /** Background default for cut out effect */\n BackgroundDefault: 'border-background-default',\n /** Default border color */\n BorderDefault: 'border-default',\n /** Muted border color */\n BorderMuted: 'border-muted',\n /** Primary default border color */\n PrimaryDefault: 'border-primary-default',\n /** Primary alternative border color */\n PrimaryAlternative: 'border-primary-alternative',\n /** Primary muted border color */\n PrimaryMuted: 'border-primary-muted',\n /** Primary inverse border color */\n PrimaryInverse: 'border-primary-inverse',\n /** Error default border color */\n ErrorDefault: 'border-error-default',\n /** Error alternative border color */\n ErrorAlternative: 'border-error-alternative',\n /** Error muted border color */\n ErrorMuted: 'border-error-muted',\n /** Error inverse border color */\n ErrorInverse: 'border-error-inverse',\n /** Warning default border color */\n WarningDefault: 'border-warning-default',\n /** Warning alternative border color */\n WarningAlternative: 'border-warning-alternative',\n /** Warning muted border color */\n WarningMuted: 'border-warning-muted',\n /** Warning inverse border color */\n WarningInverse: 'border-warning-inverse',\n /** Success default border color */\n SuccessDefault: 'border-success-default',\n /** Success alternative border color */\n SuccessAlternative: 'border-success-alternative',\n /** Success muted border color */\n SuccessMuted: 'border-success-muted',\n /** Success inverse border color */\n SuccessInverse: 'border-success-inverse',\n /** Info default border color */\n InfoDefault: 'border-info-default',\n /** Info alternative border color */\n InfoAlternative: 'border-info-alternative',\n /** Info muted border color */\n InfoMuted: 'border-info-muted',\n /** Info inverse border color */\n InfoInverse: 'border-info-inverse',\n /** Flask default border color */\n FlaskDefault: 'border-flask-default',\n /** Flask inverse border color */\n FlaskInverse: 'border-flask-inverse',\n /** Overlay alternative border color */\n OverlayAlternative: 'border-overlay-alternative',\n /** Overlay default border color */\n OverlayDefault: 'border-overlay-default',\n /** Overlay inverse border color */\n OverlayInverse: 'border-overlay-inverse',\n /** Transparent border color */\n Transparent: 'border-transparent',\n} as const;\nexport type BoxBorderColor =\n (typeof BoxBorderColor)[keyof typeof BoxBorderColor];\n\n/**\n * Box component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxPropsShared = {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n};\n"]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoxBorderColor = exports.BoxBackgroundColor = exports.BoxJustifyContent = exports.BoxAlignItems = exports.BoxFlexWrap = exports.BoxFlexDirection = void 0;
4
+ var Box_types_1 = require("./Box.types.cjs");
5
+ Object.defineProperty(exports, "BoxFlexDirection", { enumerable: true, get: function () { return Box_types_1.BoxFlexDirection; } });
6
+ Object.defineProperty(exports, "BoxFlexWrap", { enumerable: true, get: function () { return Box_types_1.BoxFlexWrap; } });
7
+ Object.defineProperty(exports, "BoxAlignItems", { enumerable: true, get: function () { return Box_types_1.BoxAlignItems; } });
8
+ Object.defineProperty(exports, "BoxJustifyContent", { enumerable: true, get: function () { return Box_types_1.BoxJustifyContent; } });
9
+ Object.defineProperty(exports, "BoxBackgroundColor", { enumerable: true, get: function () { return Box_types_1.BoxBackgroundColor; } });
10
+ Object.defineProperty(exports, "BoxBorderColor", { enumerable: true, get: function () { return Box_types_1.BoxBorderColor; } });
11
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/Box/index.ts"],"names":[],"mappings":";;;AAAA,6CAUqB;AATnB,6GAAA,gBAAgB,OAAA;AAChB,wGAAA,WAAW,OAAA;AACX,0GAAA,aAAa,OAAA;AACb,8GAAA,iBAAiB,OAAA;AACjB,+GAAA,kBAAkB,OAAA;AAClB,2GAAA,cAAc,OAAA","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n type BoxPropsShared,\n} from './Box.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, type BoxPropsShared, } from "./Box.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,wBAAoB"}
@@ -0,0 +1,2 @@
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, type BoxPropsShared, } from "./Box.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,wBAAoB"}
@@ -0,0 +1,2 @@
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "./Box.types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EAIf,wBAAoB","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n type BoxPropsShared,\n} from './Box.types';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=KeyValueColumn.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueColumn.types.cjs","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/KeyValueColumn.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * KeyValueColumn shared props (ADR-0004).\n * Platform-independent properties shared across React and React Native.\n */\nexport type KeyValueColumnPropsShared = {\n /** Optional node rendered before the key (e.g. icon). */\n keyStartAccessory?: ReactNode;\n /** Optional node rendered after the key (e.g. icon, badge). */\n keyEndAccessory?: ReactNode;\n /** Key content: string or custom ReactNode. Named keyLabel to avoid React’s reserved `key` prop. */\n keyLabel: string | ReactNode;\n /** Optional node rendered before the value (e.g. icon). */\n valueStartAccessory?: ReactNode;\n /** Optional node rendered after the value (e.g. icon, badge). */\n valueEndAccessory?: ReactNode;\n /** Value content: string or custom ReactNode. */\n value: string | ReactNode;\n};\n"]}
@@ -0,0 +1,20 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * KeyValueColumn shared props (ADR-0004).
4
+ * Platform-independent properties shared across React and React Native.
5
+ */
6
+ export type KeyValueColumnPropsShared = {
7
+ /** Optional node rendered before the key (e.g. icon). */
8
+ keyStartAccessory?: ReactNode;
9
+ /** Optional node rendered after the key (e.g. icon, badge). */
10
+ keyEndAccessory?: ReactNode;
11
+ /** Key content: string or custom ReactNode. Named keyLabel to avoid React’s reserved `key` prop. */
12
+ keyLabel: string | ReactNode;
13
+ /** Optional node rendered before the value (e.g. icon). */
14
+ valueStartAccessory?: ReactNode;
15
+ /** Optional node rendered after the value (e.g. icon, badge). */
16
+ valueEndAccessory?: ReactNode;
17
+ /** Value content: string or custom ReactNode. */
18
+ value: string | ReactNode;
19
+ };
20
+ //# sourceMappingURL=KeyValueColumn.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueColumn.types.d.cts","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/KeyValueColumn.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,+DAA+D;IAC/D,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,oGAAoG;IACpG,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * KeyValueColumn shared props (ADR-0004).
4
+ * Platform-independent properties shared across React and React Native.
5
+ */
6
+ export type KeyValueColumnPropsShared = {
7
+ /** Optional node rendered before the key (e.g. icon). */
8
+ keyStartAccessory?: ReactNode;
9
+ /** Optional node rendered after the key (e.g. icon, badge). */
10
+ keyEndAccessory?: ReactNode;
11
+ /** Key content: string or custom ReactNode. Named keyLabel to avoid React’s reserved `key` prop. */
12
+ keyLabel: string | ReactNode;
13
+ /** Optional node rendered before the value (e.g. icon). */
14
+ valueStartAccessory?: ReactNode;
15
+ /** Optional node rendered after the value (e.g. icon, badge). */
16
+ valueEndAccessory?: ReactNode;
17
+ /** Value content: string or custom ReactNode. */
18
+ value: string | ReactNode;
19
+ };
20
+ //# sourceMappingURL=KeyValueColumn.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueColumn.types.d.mts","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/KeyValueColumn.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,+DAA+D;IAC/D,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,oGAAoG;IACpG,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=KeyValueColumn.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueColumn.types.mjs","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/KeyValueColumn.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * KeyValueColumn shared props (ADR-0004).\n * Platform-independent properties shared across React and React Native.\n */\nexport type KeyValueColumnPropsShared = {\n /** Optional node rendered before the key (e.g. icon). */\n keyStartAccessory?: ReactNode;\n /** Optional node rendered after the key (e.g. icon, badge). */\n keyEndAccessory?: ReactNode;\n /** Key content: string or custom ReactNode. Named keyLabel to avoid React’s reserved `key` prop. */\n keyLabel: string | ReactNode;\n /** Optional node rendered before the value (e.g. icon). */\n valueStartAccessory?: ReactNode;\n /** Optional node rendered after the value (e.g. icon, badge). */\n valueEndAccessory?: ReactNode;\n /** Value content: string or custom ReactNode. */\n value: string | ReactNode;\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type KeyValueColumnPropsShared } from './KeyValueColumn.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export { type KeyValueColumnPropsShared } from "./KeyValueColumn.types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAE,mCAA+B"}
@@ -0,0 +1,2 @@
1
+ export { type KeyValueColumnPropsShared } from "./KeyValueColumn.types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAE,mCAA+B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/KeyValueColumn/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type KeyValueColumnPropsShared } from './KeyValueColumn.types';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-shared",
3
- "version": "0.7.0-preview.dff9dce",
3
+ "version": "0.8.0-preview.a73a010",
4
4
  "description": "Shared types for design system libraries",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -1,118 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextColor = exports.TextVariant = exports.FontFamily = exports.FontStyle = exports.FontWeight = void 0;
4
- /**
5
- * Text - fontWeight (ADR-0003)
6
- * Semantic values shared across React and React Native platforms.
7
- */
8
- exports.FontWeight = {
9
- /** Weight - 600 */
10
- Bold: 'bold',
11
- /** Weight - 500 */
12
- Medium: 'medium',
13
- /** Weight - 400 */
14
- Regular: 'regular',
15
- };
16
- /**
17
- * Text - fontStyle (ADR-0003)
18
- * Semantic values shared across React and React Native platforms.
19
- */
20
- exports.FontStyle = {
21
- Italic: 'italic',
22
- Normal: 'normal',
23
- };
24
- /**
25
- * Text - fontFamily (ADR-0003)
26
- * Semantic values shared across React and React Native platforms.
27
- */
28
- exports.FontFamily = {
29
- /** Default: Geist */
30
- Default: 'default',
31
- /** Accent: MM Sans */
32
- Accent: 'accent',
33
- /** Hero: MM Poly */
34
- Hero: 'hero',
35
- };
36
- /**
37
- * Text - variant (ADR-0003)
38
- * Identical values across React and React Native platforms.
39
- */
40
- exports.TextVariant = {
41
- // Display Sizes
42
- DisplayLg: 'display-lg',
43
- DisplayMd: 'display-md',
44
- // Heading Sizes
45
- HeadingLg: 'heading-lg',
46
- HeadingMd: 'heading-md',
47
- HeadingSm: 'heading-sm',
48
- // Body Sizes
49
- BodyLg: 'body-lg',
50
- BodyMd: 'body-md',
51
- BodySm: 'body-sm',
52
- BodyXs: 'body-xs',
53
- // Special Typography Variants
54
- PageHeading: 'page-heading',
55
- SectionHeading: 'section-heading',
56
- ButtonLabelMd: 'button-label-md',
57
- ButtonLabelLg: 'button-label-lg',
58
- AmountDisplayLg: 'amount-display-lg',
59
- };
60
- /**
61
- * Text - color (ADR-0003)
62
- * All text color values shared across React and React Native platforms.
63
- */
64
- exports.TextColor = {
65
- /** For default neutral text. */
66
- TextDefault: 'text-default',
67
- /** For softer contrast neutral text */
68
- TextAlternative: 'text-alternative',
69
- /** For the softest contrast neutral text (not accessible) */
70
- TextMuted: 'text-muted',
71
- /** For elements used on top of overlay/alternative. Used for text, icon or border */
72
- OverlayInverse: 'text-overlay-inverse',
73
- /** For interactive, active, and selected semantics. Used for text, background, icon or border */
74
- PrimaryDefault: 'text-primary-default',
75
- /** For elements used on top of primary/default. Used for text, icon or border */
76
- PrimaryInverse: 'text-primary-inverse',
77
- /** For softer variants of primary text. */
78
- PrimaryAlternative: 'text-primary-alternative',
79
- /** For primary text in a hover state. */
80
- PrimaryDefaultHover: 'text-primary-default-hover',
81
- /** For primary text in a pressed state. */
82
- PrimaryDefaultPressed: 'text-primary-default-pressed',
83
- /** For the critical alert semantic elements. Used for text, background, icon or border */
84
- ErrorDefault: 'text-error-default',
85
- /** For the stronger contrast error semantic elements. */
86
- ErrorAlternative: 'text-error-alternative',
87
- /** For elements used on top of error/default. Used for text, icon or border */
88
- ErrorInverse: 'text-error-inverse',
89
- /** For critical alert text in a hover state. */
90
- ErrorDefaultHover: 'text-error-default-hover',
91
- /** For critical alert text in a pressed state. */
92
- ErrorDefaultPressed: 'text-error-default-pressed',
93
- /** For the positive semantic elements. Used for text, background, icon or border */
94
- SuccessDefault: 'text-success-default',
95
- /** For elements used on top of success/default. Used for text, icon or border */
96
- SuccessInverse: 'text-success-inverse',
97
- /** For positive text in a hover state. */
98
- SuccessDefaultHover: 'text-success-default-hover',
99
- /** For positive text in a pressed state. */
100
- SuccessDefaultPressed: 'text-success-default-pressed',
101
- /** For the caution alert semantic elements. Used for text, background, icon or border */
102
- WarningDefault: 'text-warning-default',
103
- /** For elements used on top of warning/default. Used for text, icon or border */
104
- WarningInverse: 'text-warning-inverse',
105
- /** For caution text in a hover state. */
106
- WarningDefaultHover: 'text-warning-default-hover',
107
- /** For caution text in a pressed state. */
108
- WarningDefaultPressed: 'text-warning-default-pressed',
109
- /** For informational read-only elements. Used for text, background, icon or border */
110
- InfoDefault: 'text-info-default',
111
- /** For elements used on top of info/default. Used for text, icon or border */
112
- InfoInverse: 'text-info-inverse',
113
- /** Make the text color transparent */
114
- Transparent: 'text-transparent',
115
- /** Inherit the color of the parent element */
116
- Inherit: 'text-inherit',
117
- };
118
- //# sourceMappingURL=Text.types.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Text.types.cjs","sourceRoot":"","sources":["../../../src/types/Text/Text.types.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACU,QAAA,UAAU,GAAG;IACxB,mBAAmB;IACnB,IAAI,EAAE,MAAM;IACZ,mBAAmB;IACnB,MAAM,EAAE,QAAQ;IAChB,mBAAmB;IACnB,OAAO,EAAE,SAAS;CACV,CAAC;AAIX;;;GAGG;AACU,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIX;;;GAGG;AACU,QAAA,UAAU,GAAG;IACxB,qBAAqB;IACrB,OAAO,EAAE,SAAS;IAClB,sBAAsB;IACtB,MAAM,EAAE,QAAQ;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM;CACJ,CAAC;AAIX;;;GAGG;AACU,QAAA,WAAW,GAAG;IACzB,gBAAgB;IAChB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IAEvB,gBAAgB;IAChB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IAEvB,aAAa;IACb,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IAEjB,8BAA8B;IAC9B,WAAW,EAAE,cAAc;I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C9C,OAAO,EAAE,cAAc;CACf,CAAC","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Text - fontWeight (ADR-0003)\n * Semantic values shared across React and React Native platforms.\n */\nexport const FontWeight = {\n /** Weight - 600 */\n Bold: 'bold',\n /** Weight - 500 */\n Medium: 'medium',\n /** Weight - 400 */\n Regular: 'regular',\n} as const;\n\nexport type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];\n\n/**\n * Text - fontStyle (ADR-0003)\n * Semantic values shared across React and React Native platforms.\n */\nexport const FontStyle = {\n Italic: 'italic',\n Normal: 'normal',\n} as const;\n\nexport type FontStyle = (typeof FontStyle)[keyof typeof FontStyle];\n\n/**\n * Text - fontFamily (ADR-0003)\n * Semantic values shared across React and React Native platforms.\n */\nexport const FontFamily = {\n /** Default: Geist */\n Default: 'default',\n /** Accent: MM Sans */\n Accent: 'accent',\n /** Hero: MM Poly */\n Hero: 'hero',\n} as const;\n\nexport type FontFamily = (typeof FontFamily)[keyof typeof FontFamily];\n\n/**\n * Text - variant (ADR-0003)\n * Identical values across React and React Native platforms.\n */\nexport const TextVariant = {\n // Display Sizes\n DisplayLg: 'display-lg',\n DisplayMd: 'display-md',\n\n // Heading Sizes\n HeadingLg: 'heading-lg',\n HeadingMd: 'heading-md',\n HeadingSm: 'heading-sm',\n\n // Body Sizes\n BodyLg: 'body-lg',\n BodyMd: 'body-md',\n BodySm: 'body-sm',\n BodyXs: 'body-xs',\n\n // Special Typography Variants\n PageHeading: 'page-heading',\n SectionHeading: 'section-heading',\n ButtonLabelMd: 'button-label-md',\n ButtonLabelLg: 'button-label-lg',\n AmountDisplayLg: 'amount-display-lg',\n} as const;\n\nexport type TextVariant = (typeof TextVariant)[keyof typeof TextVariant];\n\n/**\n * Text - color (ADR-0003)\n * All text color values shared across React and React Native platforms.\n */\nexport const TextColor = {\n /** For default neutral text. */\n TextDefault: 'text-default',\n /** For softer contrast neutral text */\n TextAlternative: 'text-alternative',\n /** For the softest contrast neutral text (not accessible) */\n TextMuted: 'text-muted',\n /** For elements used on top of overlay/alternative. Used for text, icon or border */\n OverlayInverse: 'text-overlay-inverse',\n /** For interactive, active, and selected semantics. Used for text, background, icon or border */\n PrimaryDefault: 'text-primary-default',\n /** For elements used on top of primary/default. Used for text, icon or border */\n PrimaryInverse: 'text-primary-inverse',\n /** For softer variants of primary text. */\n PrimaryAlternative: 'text-primary-alternative',\n /** For primary text in a hover state. */\n PrimaryDefaultHover: 'text-primary-default-hover',\n /** For primary text in a pressed state. */\n PrimaryDefaultPressed: 'text-primary-default-pressed',\n /** For the critical alert semantic elements. Used for text, background, icon or border */\n ErrorDefault: 'text-error-default',\n /** For the stronger contrast error semantic elements. */\n ErrorAlternative: 'text-error-alternative',\n /** For elements used on top of error/default. Used for text, icon or border */\n ErrorInverse: 'text-error-inverse',\n /** For critical alert text in a hover state. */\n ErrorDefaultHover: 'text-error-default-hover',\n /** For critical alert text in a pressed state. */\n ErrorDefaultPressed: 'text-error-default-pressed',\n /** For the positive semantic elements. Used for text, background, icon or border */\n SuccessDefault: 'text-success-default',\n /** For elements used on top of success/default. Used for text, icon or border */\n SuccessInverse: 'text-success-inverse',\n /** For positive text in a hover state. */\n SuccessDefaultHover: 'text-success-default-hover',\n /** For positive text in a pressed state. */\n SuccessDefaultPressed: 'text-success-default-pressed',\n /** For the caution alert semantic elements. Used for text, background, icon or border */\n WarningDefault: 'text-warning-default',\n /** For elements used on top of warning/default. Used for text, icon or border */\n WarningInverse: 'text-warning-inverse',\n /** For caution text in a hover state. */\n WarningDefaultHover: 'text-warning-default-hover',\n /** For caution text in a pressed state. */\n WarningDefaultPressed: 'text-warning-default-pressed',\n /** For informational read-only elements. Used for text, background, icon or border */\n InfoDefault: 'text-info-default',\n /** For elements used on top of info/default. Used for text, icon or border */\n InfoInverse: 'text-info-inverse',\n /** Make the text color transparent */\n Transparent: 'text-transparent',\n /** Inherit the color of the parent element */\n Inherit: 'text-inherit',\n} as const;\n\nexport type TextColor = (typeof TextColor)[keyof typeof TextColor];\n\n/**\n * Text component shared props (ADR-0004).\n * Platform-independent props shared across React and React Native.\n */\nexport type TextPropsShared = {\n /**\n * Optional prop to change the font size of the component.\n * Different variants map to specific HTML elements by default.\n *\n * @default TextVariant.BodyMd\n */\n variant?: TextVariant;\n /**\n * The text content or elements to be rendered within the component.\n */\n children: ReactNode;\n /**\n * Optional prop that sets the color of the text using predefined theme colors.\n *\n * @default TextColor.TextDefault\n */\n color?: TextColor;\n};\n"]}
@@ -1,140 +0,0 @@
1
- import type { ReactNode } from "react";
2
- /**
3
- * Text - fontWeight (ADR-0003)
4
- * Semantic values shared across React and React Native platforms.
5
- */
6
- export declare const FontWeight: {
7
- /** Weight - 600 */
8
- readonly Bold: "bold";
9
- /** Weight - 500 */
10
- readonly Medium: "medium";
11
- /** Weight - 400 */
12
- readonly Regular: "regular";
13
- };
14
- export type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];
15
- /**
16
- * Text - fontStyle (ADR-0003)
17
- * Semantic values shared across React and React Native platforms.
18
- */
19
- export declare const FontStyle: {
20
- readonly Italic: "italic";
21
- readonly Normal: "normal";
22
- };
23
- export type FontStyle = (typeof FontStyle)[keyof typeof FontStyle];
24
- /**
25
- * Text - fontFamily (ADR-0003)
26
- * Semantic values shared across React and React Native platforms.
27
- */
28
- export declare const FontFamily: {
29
- /** Default: Geist */
30
- readonly Default: "default";
31
- /** Accent: MM Sans */
32
- readonly Accent: "accent";
33
- /** Hero: MM Poly */
34
- readonly Hero: "hero";
35
- };
36
- export type FontFamily = (typeof FontFamily)[keyof typeof FontFamily];
37
- /**
38
- * Text - variant (ADR-0003)
39
- * Identical values across React and React Native platforms.
40
- */
41
- export declare const TextVariant: {
42
- readonly DisplayLg: "display-lg";
43
- readonly DisplayMd: "display-md";
44
- readonly HeadingLg: "heading-lg";
45
- readonly HeadingMd: "heading-md";
46
- readonly HeadingSm: "heading-sm";
47
- readonly BodyLg: "body-lg";
48
- readonly BodyMd: "body-md";
49
- readonly BodySm: "body-sm";
50
- readonly BodyXs: "body-xs";
51
- readonly PageHeading: "page-heading";
52
- readonly SectionHeading: "section-heading";
53
- readonly ButtonLabelMd: "button-label-md";
54
- readonly ButtonLabelLg: "button-label-lg";
55
- readonly AmountDisplayLg: "amount-display-lg";
56
- };
57
- export type TextVariant = (typeof TextVariant)[keyof typeof TextVariant];
58
- /**
59
- * Text - color (ADR-0003)
60
- * All text color values shared across React and React Native platforms.
61
- */
62
- export declare const TextColor: {
63
- /** For default neutral text. */
64
- readonly TextDefault: "text-default";
65
- /** For softer contrast neutral text */
66
- readonly TextAlternative: "text-alternative";
67
- /** For the softest contrast neutral text (not accessible) */
68
- readonly TextMuted: "text-muted";
69
- /** For elements used on top of overlay/alternative. Used for text, icon or border */
70
- readonly OverlayInverse: "text-overlay-inverse";
71
- /** For interactive, active, and selected semantics. Used for text, background, icon or border */
72
- readonly PrimaryDefault: "text-primary-default";
73
- /** For elements used on top of primary/default. Used for text, icon or border */
74
- readonly PrimaryInverse: "text-primary-inverse";
75
- /** For softer variants of primary text. */
76
- readonly PrimaryAlternative: "text-primary-alternative";
77
- /** For primary text in a hover state. */
78
- readonly PrimaryDefaultHover: "text-primary-default-hover";
79
- /** For primary text in a pressed state. */
80
- readonly PrimaryDefaultPressed: "text-primary-default-pressed";
81
- /** For the critical alert semantic elements. Used for text, background, icon or border */
82
- readonly ErrorDefault: "text-error-default";
83
- /** For the stronger contrast error semantic elements. */
84
- readonly ErrorAlternative: "text-error-alternative";
85
- /** For elements used on top of error/default. Used for text, icon or border */
86
- readonly ErrorInverse: "text-error-inverse";
87
- /** For critical alert text in a hover state. */
88
- readonly ErrorDefaultHover: "text-error-default-hover";
89
- /** For critical alert text in a pressed state. */
90
- readonly ErrorDefaultPressed: "text-error-default-pressed";
91
- /** For the positive semantic elements. Used for text, background, icon or border */
92
- readonly SuccessDefault: "text-success-default";
93
- /** For elements used on top of success/default. Used for text, icon or border */
94
- readonly SuccessInverse: "text-success-inverse";
95
- /** For positive text in a hover state. */
96
- readonly SuccessDefaultHover: "text-success-default-hover";
97
- /** For positive text in a pressed state. */
98
- readonly SuccessDefaultPressed: "text-success-default-pressed";
99
- /** For the caution alert semantic elements. Used for text, background, icon or border */
100
- readonly WarningDefault: "text-warning-default";
101
- /** For elements used on top of warning/default. Used for text, icon or border */
102
- readonly WarningInverse: "text-warning-inverse";
103
- /** For caution text in a hover state. */
104
- readonly WarningDefaultHover: "text-warning-default-hover";
105
- /** For caution text in a pressed state. */
106
- readonly WarningDefaultPressed: "text-warning-default-pressed";
107
- /** For informational read-only elements. Used for text, background, icon or border */
108
- readonly InfoDefault: "text-info-default";
109
- /** For elements used on top of info/default. Used for text, icon or border */
110
- readonly InfoInverse: "text-info-inverse";
111
- /** Make the text color transparent */
112
- readonly Transparent: "text-transparent";
113
- /** Inherit the color of the parent element */
114
- readonly Inherit: "text-inherit";
115
- };
116
- export type TextColor = (typeof TextColor)[keyof typeof TextColor];
117
- /**
118
- * Text component shared props (ADR-0004).
119
- * Platform-independent props shared across React and React Native.
120
- */
121
- export type TextPropsShared = {
122
- /**
123
- * Optional prop to change the font size of the component.
124
- * Different variants map to specific HTML elements by default.
125
- *
126
- * @default TextVariant.BodyMd
127
- */
128
- variant?: TextVariant;
129
- /**
130
- * The text content or elements to be rendered within the component.
131
- */
132
- children: ReactNode;
133
- /**
134
- * Optional prop that sets the color of the text using predefined theme colors.
135
- *
136
- * @default TextColor.TextDefault
137
- */
138
- color?: TextColor;
139
- };
140
- //# sourceMappingURL=Text.types.d.cts.map