@metamask-previews/design-system-react 0.5.0-preview.c47bb52 → 0.6.1-preview.ab80aae
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 +31 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.cts +5 -5
- package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.mts +5 -5
- package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.types.cjs.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.types.d.cts +5 -5
- package/dist/components/AvatarGroup/AvatarGroup.types.d.cts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.types.d.mts +5 -5
- package/dist/components/AvatarGroup/AvatarGroup.types.d.mts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.types.mjs.map +1 -1
- package/dist/components/Button/Button.types.cjs.map +1 -1
- package/dist/components/Button/Button.types.d.cts +3 -3
- package/dist/components/Button/Button.types.d.cts.map +1 -1
- package/dist/components/Button/Button.types.d.mts +3 -3
- package/dist/components/Button/Button.types.d.mts.map +1 -1
- package/dist/components/Button/Button.types.mjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.cjs +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.cjs +3 -3
- package/dist/components/ButtonIcon/ButtonIcon.constants.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +3 -4
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +3 -4
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.mjs +3 -3
- package/dist/components/ButtonIcon/ButtonIcon.constants.mjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.mjs +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
- package/dist/components/Icon/icons/AfterHours.cjs +32 -0
- package/dist/components/Icon/icons/AfterHours.cjs.map +1 -0
- package/dist/components/Icon/icons/AfterHours.d.cts +4 -0
- package/dist/components/Icon/icons/AfterHours.d.cts.map +1 -0
- package/dist/components/Icon/icons/AfterHours.d.mts +4 -0
- package/dist/components/Icon/icons/AfterHours.d.mts.map +1 -0
- package/dist/components/Icon/icons/AfterHours.mjs +7 -0
- package/dist/components/Icon/icons/AfterHours.mjs.map +1 -0
- package/dist/components/Icon/icons/index.cjs +2 -0
- package/dist/components/Icon/icons/index.cjs.map +1 -1
- package/dist/components/Icon/icons/index.d.cts +1 -0
- package/dist/components/Icon/icons/index.d.cts.map +1 -1
- package/dist/components/Icon/icons/index.d.mts +1 -0
- package/dist/components/Icon/icons/index.d.mts.map +1 -1
- package/dist/components/Icon/icons/index.mjs +2 -0
- package/dist/components/Icon/icons/index.mjs.map +1 -1
- package/dist/types/index.cjs +275 -385
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +292 -261
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +292 -261
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +262 -385
- package/dist/types/index.mjs.map +1 -1
- package/package.json +6 -7
package/dist/types/index.d.cts
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AvatarBase - size
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type AvatarBaseSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
export declare const AvatarBaseSize: {
|
|
5
6
|
/**
|
|
6
7
|
* Represents an extra small avatar size (16px).
|
|
7
8
|
*/
|
|
8
|
-
Xs
|
|
9
|
+
readonly Xs: "xs";
|
|
9
10
|
/**
|
|
10
11
|
* Represents a small avatar size (24px).
|
|
11
12
|
*/
|
|
12
|
-
Sm
|
|
13
|
+
readonly Sm: "sm";
|
|
13
14
|
/**
|
|
14
15
|
* Represents a medium avatar size (32px).
|
|
15
16
|
*/
|
|
16
|
-
Md
|
|
17
|
+
readonly Md: "md";
|
|
17
18
|
/**
|
|
18
19
|
* Represents a large avatar size (40px).
|
|
19
20
|
*/
|
|
20
|
-
Lg
|
|
21
|
+
readonly Lg: "lg";
|
|
21
22
|
/**
|
|
22
23
|
* Represents an extra large avatar size (48px).
|
|
23
24
|
*/
|
|
24
|
-
Xl
|
|
25
|
-
}
|
|
25
|
+
readonly Xl: "xl";
|
|
26
|
+
};
|
|
26
27
|
export { AvatarBaseSize as AvatarAccountSize };
|
|
27
28
|
export { AvatarBaseSize as AvatarFaviconSize };
|
|
28
29
|
export { AvatarBaseSize as AvatarGroupSize };
|
|
@@ -33,96 +34,105 @@ export { AvatarBaseSize as AvatarSize };
|
|
|
33
34
|
/**
|
|
34
35
|
* Avatar - shape
|
|
35
36
|
*/
|
|
36
|
-
export
|
|
37
|
+
export type AvatarShape = 'circle' | 'square';
|
|
38
|
+
export declare const AvatarShape: {
|
|
37
39
|
/**
|
|
38
40
|
* Represents a circular Avatar.
|
|
39
41
|
*/
|
|
40
|
-
Circle
|
|
42
|
+
readonly Circle: "circle";
|
|
41
43
|
/**
|
|
42
44
|
* Represents a squared Avatar
|
|
43
45
|
*/
|
|
44
|
-
Square
|
|
45
|
-
}
|
|
46
|
+
readonly Square: "square";
|
|
47
|
+
};
|
|
46
48
|
export { AvatarShape as AvatarBaseShape };
|
|
47
49
|
/**
|
|
48
50
|
* AvatarAccount - variant
|
|
49
51
|
*/
|
|
50
|
-
export
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
export type AvatarAccountVariant = 'blockies' | 'jazzicon' | 'maskicon';
|
|
53
|
+
export declare const AvatarAccountVariant: {
|
|
54
|
+
readonly Blockies: "blockies";
|
|
55
|
+
readonly Jazzicon: "jazzicon";
|
|
56
|
+
readonly Maskicon: "maskicon";
|
|
57
|
+
};
|
|
55
58
|
/**
|
|
56
59
|
* AvatarIcon - severity
|
|
57
60
|
*/
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
export type AvatarIconSeverity = 'neutral' | 'info' | 'success' | 'error' | 'warning';
|
|
62
|
+
export declare const AvatarIconSeverity: {
|
|
63
|
+
readonly Neutral: "neutral";
|
|
64
|
+
readonly Info: "info";
|
|
65
|
+
readonly Success: "success";
|
|
66
|
+
readonly Error: "error";
|
|
67
|
+
readonly Warning: "warning";
|
|
68
|
+
};
|
|
65
69
|
/**
|
|
66
70
|
* AvatarGroup - variant
|
|
67
71
|
*/
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
export type AvatarGroupVariant = 'Account' | 'Favicon' | 'Network' | 'Token';
|
|
73
|
+
export declare const AvatarGroupVariant: {
|
|
74
|
+
readonly Account: "Account";
|
|
75
|
+
readonly Favicon: "Favicon";
|
|
76
|
+
readonly Network: "Network";
|
|
77
|
+
readonly Token: "Token";
|
|
78
|
+
};
|
|
74
79
|
/**
|
|
75
80
|
* BadgeCount - size
|
|
76
81
|
*/
|
|
77
|
-
export
|
|
82
|
+
export type BadgeCountSize = 'md' | 'lg';
|
|
83
|
+
export declare const BadgeCountSize: {
|
|
78
84
|
/**
|
|
79
85
|
* Represents a medium badge count (14px height).
|
|
80
86
|
*/
|
|
81
|
-
Md
|
|
87
|
+
readonly Md: "md";
|
|
82
88
|
/**
|
|
83
89
|
* Represents a large badge count (20px height).
|
|
84
90
|
*/
|
|
85
|
-
Lg
|
|
86
|
-
}
|
|
91
|
+
readonly Lg: "lg";
|
|
92
|
+
};
|
|
87
93
|
/**
|
|
88
94
|
* BadgeStatus - status
|
|
89
95
|
*/
|
|
90
|
-
export
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
export type BadgeStatusStatus = 'active' | 'inactive' | 'disconnected' | 'new' | 'attention';
|
|
97
|
+
export declare const BadgeStatusStatus: {
|
|
98
|
+
readonly Active: "active";
|
|
99
|
+
readonly Inactive: "inactive";
|
|
100
|
+
readonly Disconnected: "disconnected";
|
|
101
|
+
readonly New: "new";
|
|
102
|
+
readonly Attention: "attention";
|
|
103
|
+
};
|
|
97
104
|
/**
|
|
98
105
|
* BadgeStatus - size
|
|
99
106
|
*/
|
|
100
|
-
export
|
|
107
|
+
export type BadgeStatusSize = 'md' | 'lg';
|
|
108
|
+
export declare const BadgeStatusSize: {
|
|
101
109
|
/**
|
|
102
110
|
* Represents a medium badge status size (8px).
|
|
103
111
|
*/
|
|
104
|
-
Md
|
|
112
|
+
readonly Md: "md";
|
|
105
113
|
/**
|
|
106
114
|
* Represents a large avatar size (10px).
|
|
107
115
|
*/
|
|
108
|
-
Lg
|
|
109
|
-
}
|
|
116
|
+
readonly Lg: "lg";
|
|
117
|
+
};
|
|
110
118
|
/**
|
|
111
119
|
* BadgeWrapper - positionAnchorShape
|
|
112
120
|
*/
|
|
113
|
-
export
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
export type BadgeWrapperPositionAnchorShape = 'Rectangular' | 'Circular';
|
|
122
|
+
export declare const BadgeWrapperPositionAnchorShape: {
|
|
123
|
+
readonly Rectangular: "Rectangular";
|
|
124
|
+
readonly Circular: "Circular";
|
|
125
|
+
};
|
|
117
126
|
/**
|
|
118
127
|
* BadgeWrapper - position.
|
|
119
128
|
*/
|
|
120
|
-
export
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
129
|
+
export type BadgeWrapperPosition = 'TopRight' | 'BottomRight' | 'BottomLeft' | 'TopLeft';
|
|
130
|
+
export declare const BadgeWrapperPosition: {
|
|
131
|
+
readonly TopRight: "TopRight";
|
|
132
|
+
readonly BottomRight: "BottomRight";
|
|
133
|
+
readonly BottomLeft: "BottomLeft";
|
|
134
|
+
readonly TopLeft: "TopLeft";
|
|
135
|
+
};
|
|
126
136
|
/**
|
|
127
137
|
* BadgeWrapper - customPosition
|
|
128
138
|
*/
|
|
@@ -143,186 +153,193 @@ export type BoxBorderWidth = 0 | 1 | 2 | 4 | 8;
|
|
|
143
153
|
/**
|
|
144
154
|
* Box - flexDirection
|
|
145
155
|
*/
|
|
146
|
-
export
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
export type BoxFlexDirection = 'flex-row' | 'flex-row-reverse' | 'flex-col' | 'flex-col-reverse';
|
|
157
|
+
export declare const BoxFlexDirection: {
|
|
158
|
+
readonly Row: "flex-row";
|
|
159
|
+
readonly RowReverse: "flex-row-reverse";
|
|
160
|
+
readonly Column: "flex-col";
|
|
161
|
+
readonly ColumnReverse: "flex-col-reverse";
|
|
162
|
+
};
|
|
152
163
|
/**
|
|
153
164
|
* Box - flexWrap
|
|
154
165
|
*/
|
|
155
|
-
export
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
166
|
+
export type BoxFlexWrap = 'flex-nowrap' | 'flex-wrap' | 'flex-wrap-reverse';
|
|
167
|
+
export declare const BoxFlexWrap: {
|
|
168
|
+
readonly NoWrap: "flex-nowrap";
|
|
169
|
+
readonly Wrap: "flex-wrap";
|
|
170
|
+
readonly WrapReverse: "flex-wrap-reverse";
|
|
171
|
+
};
|
|
160
172
|
/**
|
|
161
173
|
* Box - alignItems
|
|
162
174
|
*/
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
175
|
+
export type BoxAlignItems = 'items-start' | 'items-center' | 'items-end' | 'items-stretch' | 'items-baseline';
|
|
176
|
+
export declare const BoxAlignItems: {
|
|
177
|
+
readonly Start: "items-start";
|
|
178
|
+
readonly Center: "items-center";
|
|
179
|
+
readonly End: "items-end";
|
|
180
|
+
readonly Stretch: "items-stretch";
|
|
181
|
+
readonly Baseline: "items-baseline";
|
|
182
|
+
};
|
|
170
183
|
/**
|
|
171
184
|
* Box - justifyContent
|
|
172
185
|
*/
|
|
173
|
-
export
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
186
|
+
export type BoxJustifyContent = 'justify-start' | 'justify-center' | 'justify-end' | 'justify-between' | 'justify-around' | 'justify-evenly';
|
|
187
|
+
export declare const BoxJustifyContent: {
|
|
188
|
+
readonly Start: "justify-start";
|
|
189
|
+
readonly Center: "justify-center";
|
|
190
|
+
readonly End: "justify-end";
|
|
191
|
+
readonly Between: "justify-between";
|
|
192
|
+
readonly Around: "justify-around";
|
|
193
|
+
readonly Evenly: "justify-evenly";
|
|
194
|
+
};
|
|
181
195
|
/**
|
|
182
196
|
* Box - backgroundColor
|
|
183
197
|
*/
|
|
184
|
-
export
|
|
198
|
+
export type BoxBackgroundColor = 'bg-default' | 'bg-alternative' | 'bg-section' | 'bg-subsection' | 'bg-muted' | 'bg-primary-default' | 'bg-primary-alternative' | 'bg-primary-muted' | 'bg-primary-inverse' | 'bg-error-default' | 'bg-error-alternative' | 'bg-error-muted' | 'bg-error-inverse' | 'bg-warning-default' | 'bg-warning-alternative' | 'bg-warning-muted' | 'bg-warning-inverse' | 'bg-success-default' | 'bg-success-alternative' | 'bg-success-muted' | 'bg-success-inverse' | 'bg-info-default' | 'bg-info-muted' | 'bg-info-inverse' | 'bg-flask-default' | 'bg-flask-inverse' | 'bg-overlay-alternative' | 'bg-overlay-default' | 'bg-overlay-inverse' | 'bg-transparent';
|
|
199
|
+
export declare const BoxBackgroundColor: {
|
|
185
200
|
/** Default background color */
|
|
186
|
-
BackgroundDefault
|
|
201
|
+
readonly BackgroundDefault: "bg-default";
|
|
187
202
|
/** Alternative background color */
|
|
188
|
-
BackgroundAlternative
|
|
203
|
+
readonly BackgroundAlternative: "bg-alternative";
|
|
189
204
|
/** Section background color */
|
|
190
|
-
BackgroundSection
|
|
205
|
+
readonly BackgroundSection: "bg-section";
|
|
191
206
|
/** Subsection background color */
|
|
192
|
-
BackgroundSubsection
|
|
207
|
+
readonly BackgroundSubsection: "bg-subsection";
|
|
193
208
|
/** Muted background color */
|
|
194
|
-
BackgroundMuted
|
|
209
|
+
readonly BackgroundMuted: "bg-muted";
|
|
195
210
|
/** Primary default background color */
|
|
196
|
-
PrimaryDefault
|
|
211
|
+
readonly PrimaryDefault: "bg-primary-default";
|
|
197
212
|
/** Primary alternative background color */
|
|
198
|
-
PrimaryAlternative
|
|
213
|
+
readonly PrimaryAlternative: "bg-primary-alternative";
|
|
199
214
|
/** Primary muted background color */
|
|
200
|
-
PrimaryMuted
|
|
215
|
+
readonly PrimaryMuted: "bg-primary-muted";
|
|
201
216
|
/** Primary inverse background color */
|
|
202
|
-
PrimaryInverse
|
|
217
|
+
readonly PrimaryInverse: "bg-primary-inverse";
|
|
203
218
|
/** Error default background color */
|
|
204
|
-
ErrorDefault
|
|
219
|
+
readonly ErrorDefault: "bg-error-default";
|
|
205
220
|
/** Error alternative background color */
|
|
206
|
-
ErrorAlternative
|
|
221
|
+
readonly ErrorAlternative: "bg-error-alternative";
|
|
207
222
|
/** Error muted background color */
|
|
208
|
-
ErrorMuted
|
|
223
|
+
readonly ErrorMuted: "bg-error-muted";
|
|
209
224
|
/** Error inverse background color */
|
|
210
|
-
ErrorInverse
|
|
225
|
+
readonly ErrorInverse: "bg-error-inverse";
|
|
211
226
|
/** Warning default background color */
|
|
212
|
-
WarningDefault
|
|
227
|
+
readonly WarningDefault: "bg-warning-default";
|
|
213
228
|
/** Warning alternative background color */
|
|
214
|
-
WarningAlternative
|
|
229
|
+
readonly WarningAlternative: "bg-warning-alternative";
|
|
215
230
|
/** Warning muted background color */
|
|
216
|
-
WarningMuted
|
|
231
|
+
readonly WarningMuted: "bg-warning-muted";
|
|
217
232
|
/** Warning inverse background color */
|
|
218
|
-
WarningInverse
|
|
233
|
+
readonly WarningInverse: "bg-warning-inverse";
|
|
219
234
|
/** Success default background color */
|
|
220
|
-
SuccessDefault
|
|
235
|
+
readonly SuccessDefault: "bg-success-default";
|
|
221
236
|
/** Success alternative background color */
|
|
222
|
-
SuccessAlternative
|
|
237
|
+
readonly SuccessAlternative: "bg-success-alternative";
|
|
223
238
|
/** Success muted background color */
|
|
224
|
-
SuccessMuted
|
|
239
|
+
readonly SuccessMuted: "bg-success-muted";
|
|
225
240
|
/** Success inverse background color */
|
|
226
|
-
SuccessInverse
|
|
241
|
+
readonly SuccessInverse: "bg-success-inverse";
|
|
227
242
|
/** Info default background color */
|
|
228
|
-
InfoDefault
|
|
243
|
+
readonly InfoDefault: "bg-info-default";
|
|
229
244
|
/** Info muted background color */
|
|
230
|
-
InfoMuted
|
|
245
|
+
readonly InfoMuted: "bg-info-muted";
|
|
231
246
|
/** Info inverse background color */
|
|
232
|
-
InfoInverse
|
|
247
|
+
readonly InfoInverse: "bg-info-inverse";
|
|
233
248
|
/** Flask default background color */
|
|
234
|
-
FlaskDefault
|
|
249
|
+
readonly FlaskDefault: "bg-flask-default";
|
|
235
250
|
/** Flask inverse background color */
|
|
236
|
-
FlaskInverse
|
|
251
|
+
readonly FlaskInverse: "bg-flask-inverse";
|
|
237
252
|
/** Overlay alternative background color */
|
|
238
|
-
OverlayAlternative
|
|
253
|
+
readonly OverlayAlternative: "bg-overlay-alternative";
|
|
239
254
|
/** Overlay default background color */
|
|
240
|
-
OverlayDefault
|
|
255
|
+
readonly OverlayDefault: "bg-overlay-default";
|
|
241
256
|
/** Overlay inverse background color */
|
|
242
|
-
OverlayInverse
|
|
257
|
+
readonly OverlayInverse: "bg-overlay-inverse";
|
|
243
258
|
/** Transparent background color */
|
|
244
|
-
Transparent
|
|
245
|
-
}
|
|
259
|
+
readonly Transparent: "bg-transparent";
|
|
260
|
+
};
|
|
246
261
|
/**
|
|
247
262
|
* Box - borderColor
|
|
248
263
|
*/
|
|
249
|
-
export
|
|
264
|
+
export type BoxBorderColor = 'border-background-default' | 'border-default' | 'border-muted' | 'border-primary-default' | 'border-primary-alternative' | 'border-primary-muted' | 'border-primary-inverse' | 'border-error-default' | 'border-error-alternative' | 'border-error-muted' | 'border-error-inverse' | 'border-warning-default' | 'border-warning-alternative' | 'border-warning-muted' | 'border-warning-inverse' | 'border-success-default' | 'border-success-alternative' | 'border-success-muted' | 'border-success-inverse' | 'border-info-default' | 'border-info-alternative' | 'border-info-muted' | 'border-info-inverse' | 'border-flask-default' | 'border-flask-inverse' | 'border-overlay-alternative' | 'border-overlay-default' | 'border-overlay-inverse' | 'border-transparent';
|
|
265
|
+
export declare const BoxBorderColor: {
|
|
250
266
|
/** Background default for cut out effect */
|
|
251
|
-
BackgroundDefault
|
|
267
|
+
readonly BackgroundDefault: "border-background-default";
|
|
252
268
|
/** Default border color */
|
|
253
|
-
BorderDefault
|
|
269
|
+
readonly BorderDefault: "border-default";
|
|
254
270
|
/** Muted border color */
|
|
255
|
-
BorderMuted
|
|
271
|
+
readonly BorderMuted: "border-muted";
|
|
256
272
|
/** Primary default border color */
|
|
257
|
-
PrimaryDefault
|
|
273
|
+
readonly PrimaryDefault: "border-primary-default";
|
|
258
274
|
/** Primary alternative border color */
|
|
259
|
-
PrimaryAlternative
|
|
275
|
+
readonly PrimaryAlternative: "border-primary-alternative";
|
|
260
276
|
/** Primary muted border color */
|
|
261
|
-
PrimaryMuted
|
|
277
|
+
readonly PrimaryMuted: "border-primary-muted";
|
|
262
278
|
/** Primary inverse border color */
|
|
263
|
-
PrimaryInverse
|
|
279
|
+
readonly PrimaryInverse: "border-primary-inverse";
|
|
264
280
|
/** Error default border color */
|
|
265
|
-
ErrorDefault
|
|
281
|
+
readonly ErrorDefault: "border-error-default";
|
|
266
282
|
/** Error alternative border color */
|
|
267
|
-
ErrorAlternative
|
|
283
|
+
readonly ErrorAlternative: "border-error-alternative";
|
|
268
284
|
/** Error muted border color */
|
|
269
|
-
ErrorMuted
|
|
285
|
+
readonly ErrorMuted: "border-error-muted";
|
|
270
286
|
/** Error inverse border color */
|
|
271
|
-
ErrorInverse
|
|
287
|
+
readonly ErrorInverse: "border-error-inverse";
|
|
272
288
|
/** Warning default border color */
|
|
273
|
-
WarningDefault
|
|
289
|
+
readonly WarningDefault: "border-warning-default";
|
|
274
290
|
/** Warning alternative border color */
|
|
275
|
-
WarningAlternative
|
|
291
|
+
readonly WarningAlternative: "border-warning-alternative";
|
|
276
292
|
/** Warning muted border color */
|
|
277
|
-
WarningMuted
|
|
293
|
+
readonly WarningMuted: "border-warning-muted";
|
|
278
294
|
/** Warning inverse border color */
|
|
279
|
-
WarningInverse
|
|
295
|
+
readonly WarningInverse: "border-warning-inverse";
|
|
280
296
|
/** Success default border color */
|
|
281
|
-
SuccessDefault
|
|
297
|
+
readonly SuccessDefault: "border-success-default";
|
|
282
298
|
/** Success alternative border color */
|
|
283
|
-
SuccessAlternative
|
|
299
|
+
readonly SuccessAlternative: "border-success-alternative";
|
|
284
300
|
/** Success muted border color */
|
|
285
|
-
SuccessMuted
|
|
301
|
+
readonly SuccessMuted: "border-success-muted";
|
|
286
302
|
/** Success inverse border color */
|
|
287
|
-
SuccessInverse
|
|
303
|
+
readonly SuccessInverse: "border-success-inverse";
|
|
288
304
|
/** Info default border color */
|
|
289
|
-
InfoDefault
|
|
305
|
+
readonly InfoDefault: "border-info-default";
|
|
290
306
|
/** Info alternative border color */
|
|
291
|
-
InfoAlternative
|
|
307
|
+
readonly InfoAlternative: "border-info-alternative";
|
|
292
308
|
/** Info muted border color */
|
|
293
|
-
InfoMuted
|
|
309
|
+
readonly InfoMuted: "border-info-muted";
|
|
294
310
|
/** Info inverse border color */
|
|
295
|
-
InfoInverse
|
|
311
|
+
readonly InfoInverse: "border-info-inverse";
|
|
296
312
|
/** Flask default border color */
|
|
297
|
-
FlaskDefault
|
|
313
|
+
readonly FlaskDefault: "border-flask-default";
|
|
298
314
|
/** Flask inverse border color */
|
|
299
|
-
FlaskInverse
|
|
315
|
+
readonly FlaskInverse: "border-flask-inverse";
|
|
300
316
|
/** Overlay alternative border color */
|
|
301
|
-
OverlayAlternative
|
|
317
|
+
readonly OverlayAlternative: "border-overlay-alternative";
|
|
302
318
|
/** Overlay default border color */
|
|
303
|
-
OverlayDefault
|
|
319
|
+
readonly OverlayDefault: "border-overlay-default";
|
|
304
320
|
/** Overlay inverse border color */
|
|
305
|
-
OverlayInverse
|
|
321
|
+
readonly OverlayInverse: "border-overlay-inverse";
|
|
306
322
|
/** Transparent border color */
|
|
307
|
-
Transparent
|
|
308
|
-
}
|
|
323
|
+
readonly Transparent: "border-transparent";
|
|
324
|
+
};
|
|
309
325
|
/**
|
|
310
326
|
* ButtonBase - size
|
|
311
327
|
*/
|
|
312
|
-
export
|
|
328
|
+
export type ButtonBaseSize = 'sm' | 'md' | 'lg';
|
|
329
|
+
export declare const ButtonBaseSize: {
|
|
313
330
|
/**
|
|
314
331
|
* Represents a small button size (32px).
|
|
315
332
|
*/
|
|
316
|
-
Sm
|
|
333
|
+
readonly Sm: "sm";
|
|
317
334
|
/**
|
|
318
335
|
* Represents a medium button size (40px).
|
|
319
336
|
*/
|
|
320
|
-
Md
|
|
337
|
+
readonly Md: "md";
|
|
321
338
|
/**
|
|
322
339
|
* Represents a large button size (48px).
|
|
323
340
|
*/
|
|
324
|
-
Lg
|
|
325
|
-
}
|
|
341
|
+
readonly Lg: "lg";
|
|
342
|
+
};
|
|
326
343
|
export { ButtonBaseSize as ButtonPrimarySize };
|
|
327
344
|
export { ButtonBaseSize as ButtonSecondarySize };
|
|
328
345
|
export { ButtonBaseSize as ButtonTertiarySize };
|
|
@@ -331,226 +348,239 @@ export { ButtonBaseSize as ButtonSize };
|
|
|
331
348
|
/**
|
|
332
349
|
* Button - variant
|
|
333
350
|
*/
|
|
334
|
-
export
|
|
351
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
352
|
+
export declare const ButtonVariant: {
|
|
335
353
|
/**
|
|
336
354
|
* Primary button variant - used for primary actions
|
|
337
355
|
*/
|
|
338
|
-
Primary
|
|
356
|
+
readonly Primary: "primary";
|
|
339
357
|
/**
|
|
340
358
|
* Secondary button variant - used for secondary actions
|
|
341
359
|
*/
|
|
342
|
-
Secondary
|
|
360
|
+
readonly Secondary: "secondary";
|
|
343
361
|
/**
|
|
344
362
|
* Tertiary button variant - used for tertiary-like actions
|
|
345
363
|
*/
|
|
346
|
-
Tertiary
|
|
347
|
-
}
|
|
364
|
+
readonly Tertiary: "tertiary";
|
|
365
|
+
};
|
|
348
366
|
/**
|
|
349
367
|
* ButtonIcon - size
|
|
350
368
|
*/
|
|
351
|
-
export
|
|
369
|
+
export type ButtonIconSize = 'sm' | 'md' | 'lg';
|
|
370
|
+
export declare const ButtonIconSize: {
|
|
352
371
|
/**
|
|
353
372
|
* Represents a small button size (24px).
|
|
354
373
|
*/
|
|
355
|
-
Sm
|
|
374
|
+
readonly Sm: "sm";
|
|
356
375
|
/**
|
|
357
376
|
* Represents a medium button size (32px).
|
|
358
377
|
*/
|
|
359
|
-
Md
|
|
378
|
+
readonly Md: "md";
|
|
360
379
|
/**
|
|
361
380
|
* Represents a large button size (40px).
|
|
362
381
|
*/
|
|
363
|
-
Lg
|
|
364
|
-
}
|
|
382
|
+
readonly Lg: "lg";
|
|
383
|
+
};
|
|
365
384
|
/**
|
|
366
385
|
* Text - variant
|
|
367
386
|
*/
|
|
368
|
-
export
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
387
|
+
export type TextVariant = 'display-lg' | 'display-md' | 'heading-lg' | 'heading-md' | 'heading-sm' | 'body-lg' | 'body-md' | 'body-sm' | 'body-xs' | 'page-heading' | 'section-heading' | 'button-label-md' | 'button-label-lg' | 'amount-display-lg';
|
|
388
|
+
export declare const TextVariant: {
|
|
389
|
+
readonly DisplayLg: "display-lg";
|
|
390
|
+
readonly DisplayMd: "display-md";
|
|
391
|
+
readonly HeadingLg: "heading-lg";
|
|
392
|
+
readonly HeadingMd: "heading-md";
|
|
393
|
+
readonly HeadingSm: "heading-sm";
|
|
394
|
+
readonly BodyLg: "body-lg";
|
|
395
|
+
readonly BodyMd: "body-md";
|
|
396
|
+
readonly BodySm: "body-sm";
|
|
397
|
+
readonly BodyXs: "body-xs";
|
|
398
|
+
readonly PageHeading: "page-heading";
|
|
399
|
+
readonly SectionHeading: "section-heading";
|
|
400
|
+
readonly ButtonLabelMd: "button-label-md";
|
|
401
|
+
readonly ButtonLabelLg: "button-label-lg";
|
|
402
|
+
readonly AmountDisplayLg: "amount-display-lg";
|
|
403
|
+
};
|
|
384
404
|
/**
|
|
385
405
|
* Text - color
|
|
386
406
|
*/
|
|
387
|
-
export
|
|
407
|
+
export type TextColor = 'text-default' | 'text-alternative' | 'text-muted' | 'text-overlay-inverse' | 'text-primary-default' | 'text-primary-default-hover' | 'text-primary-default-pressed' | 'text-primary-inverse' | 'text-error-default' | 'text-error-default-hover' | 'text-error-default-pressed' | 'text-error-alternative' | 'text-error-inverse' | 'text-success-default' | 'text-success-default-hover' | 'text-success-default-pressed' | 'text-success-inverse' | 'text-warning-default' | 'text-warning-default-hover' | 'text-warning-default-pressed' | 'text-warning-inverse' | 'text-info-default' | 'text-info-inverse' | 'text-inherit' | 'text-transparent';
|
|
408
|
+
export declare const TextColor: {
|
|
388
409
|
/** For default neutral text. */
|
|
389
|
-
TextDefault
|
|
410
|
+
readonly TextDefault: "text-default";
|
|
390
411
|
/** For softer contrast neutral text */
|
|
391
|
-
TextAlternative
|
|
412
|
+
readonly TextAlternative: "text-alternative";
|
|
392
413
|
/** For the softest contrast neutral text (not accessible) */
|
|
393
|
-
TextMuted
|
|
414
|
+
readonly TextMuted: "text-muted";
|
|
394
415
|
/** For elements used on top of overlay/alternative. Used for text, icon or border */
|
|
395
|
-
OverlayInverse
|
|
416
|
+
readonly OverlayInverse: "text-overlay-inverse";
|
|
396
417
|
/** For interactive, active, and selected semantics. Used for text, background, icon or border */
|
|
397
|
-
PrimaryDefault
|
|
418
|
+
readonly PrimaryDefault: "text-primary-default";
|
|
398
419
|
/** For primary text in a hover state. */
|
|
399
|
-
PrimaryDefaultHover
|
|
420
|
+
readonly PrimaryDefaultHover: "text-primary-default-hover";
|
|
400
421
|
/** For primary text in a pressed state. */
|
|
401
|
-
PrimaryDefaultPressed
|
|
422
|
+
readonly PrimaryDefaultPressed: "text-primary-default-pressed";
|
|
402
423
|
/** For elements used on top of primary/default. Used for text, icon or border */
|
|
403
|
-
PrimaryInverse
|
|
424
|
+
readonly PrimaryInverse: "text-primary-inverse";
|
|
404
425
|
/** For the critical alert semantic elements. Used for text, background, icon or border */
|
|
405
|
-
ErrorDefault
|
|
426
|
+
readonly ErrorDefault: "text-error-default";
|
|
406
427
|
/** For critical alert text in a hover state. */
|
|
407
|
-
ErrorDefaultHover
|
|
428
|
+
readonly ErrorDefaultHover: "text-error-default-hover";
|
|
408
429
|
/** For critical alert text in a pressed state. */
|
|
409
|
-
ErrorDefaultPressed
|
|
430
|
+
readonly ErrorDefaultPressed: "text-error-default-pressed";
|
|
410
431
|
/** For the stronger contrast error semantic elements. */
|
|
411
|
-
ErrorAlternative
|
|
432
|
+
readonly ErrorAlternative: "text-error-alternative";
|
|
412
433
|
/** For elements used on top of error/default. Used for text, icon or border */
|
|
413
|
-
ErrorInverse
|
|
434
|
+
readonly ErrorInverse: "text-error-inverse";
|
|
414
435
|
/** For the positive semantic elements. Used for text, background, icon or border */
|
|
415
|
-
SuccessDefault
|
|
436
|
+
readonly SuccessDefault: "text-success-default";
|
|
416
437
|
/** For positive text in a hover state. */
|
|
417
|
-
SuccessDefaultHover
|
|
438
|
+
readonly SuccessDefaultHover: "text-success-default-hover";
|
|
418
439
|
/** For positive text in a pressed state. */
|
|
419
|
-
SuccessDefaultPressed
|
|
440
|
+
readonly SuccessDefaultPressed: "text-success-default-pressed";
|
|
420
441
|
/** For elements used on top of success/default. Used for text, icon or border */
|
|
421
|
-
SuccessInverse
|
|
442
|
+
readonly SuccessInverse: "text-success-inverse";
|
|
422
443
|
/** For the caution alert semantic elements. Used for text, background, icon or border */
|
|
423
|
-
WarningDefault
|
|
444
|
+
readonly WarningDefault: "text-warning-default";
|
|
424
445
|
/** For caution text in a hover state. */
|
|
425
|
-
WarningDefaultHover
|
|
446
|
+
readonly WarningDefaultHover: "text-warning-default-hover";
|
|
426
447
|
/** For caution text in a pressed state. */
|
|
427
|
-
WarningDefaultPressed
|
|
448
|
+
readonly WarningDefaultPressed: "text-warning-default-pressed";
|
|
428
449
|
/** For elements used on top of warning/default. Used for text, icon or border */
|
|
429
|
-
WarningInverse
|
|
450
|
+
readonly WarningInverse: "text-warning-inverse";
|
|
430
451
|
/** For informational read-only elements. Used for text, background, icon or border */
|
|
431
|
-
InfoDefault
|
|
452
|
+
readonly InfoDefault: "text-info-default";
|
|
432
453
|
/** For elements used on top of info/default. Used for text, icon or border */
|
|
433
|
-
InfoInverse
|
|
454
|
+
readonly InfoInverse: "text-info-inverse";
|
|
434
455
|
/** Inherit the color of the parent element */
|
|
435
|
-
Inherit
|
|
456
|
+
readonly Inherit: "text-inherit";
|
|
436
457
|
/** Make the text color transparent */
|
|
437
|
-
Transparent
|
|
438
|
-
}
|
|
458
|
+
readonly Transparent: "text-transparent";
|
|
459
|
+
};
|
|
439
460
|
/**
|
|
440
461
|
* Text - textAlign
|
|
441
462
|
*/
|
|
442
|
-
export
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
463
|
+
export type TextAlign = 'text-left' | 'text-center' | 'text-right' | 'text-justify';
|
|
464
|
+
export declare const TextAlign: {
|
|
465
|
+
readonly Left: "text-left";
|
|
466
|
+
readonly Center: "text-center";
|
|
467
|
+
readonly Right: "text-right";
|
|
468
|
+
readonly Justify: "text-justify";
|
|
469
|
+
};
|
|
448
470
|
/**
|
|
449
471
|
* Text - fontWeight
|
|
450
472
|
*/
|
|
451
|
-
export
|
|
473
|
+
export type FontWeight = 'font-bold' | 'font-medium' | 'font-regular';
|
|
474
|
+
export declare const FontWeight: {
|
|
452
475
|
/**
|
|
453
476
|
* Weight - 700
|
|
454
477
|
*/
|
|
455
|
-
Bold
|
|
478
|
+
readonly Bold: "font-bold";
|
|
456
479
|
/**
|
|
457
480
|
* Weight - 500
|
|
458
481
|
*/
|
|
459
|
-
Medium
|
|
482
|
+
readonly Medium: "font-medium";
|
|
460
483
|
/**
|
|
461
484
|
* Weight - 400
|
|
462
485
|
*/
|
|
463
|
-
Regular
|
|
464
|
-
}
|
|
486
|
+
readonly Regular: "font-regular";
|
|
487
|
+
};
|
|
465
488
|
/**
|
|
466
489
|
* Text - overflowWrap
|
|
467
490
|
*/
|
|
468
|
-
export
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
491
|
+
export type OverflowWrap = 'break-words' | 'break-all' | 'break-normal';
|
|
492
|
+
export declare const OverflowWrap: {
|
|
493
|
+
readonly BreakWord: "break-words";
|
|
494
|
+
readonly Anywhere: "break-all";
|
|
495
|
+
readonly Normal: "break-normal";
|
|
496
|
+
};
|
|
473
497
|
/**
|
|
474
498
|
* Text - fontStyle
|
|
475
499
|
*/
|
|
476
|
-
export
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
500
|
+
export type FontStyle = 'italic' | 'not-italic';
|
|
501
|
+
export declare const FontStyle: {
|
|
502
|
+
readonly Italic: "italic";
|
|
503
|
+
readonly Normal: "not-italic";
|
|
504
|
+
};
|
|
480
505
|
/**
|
|
481
506
|
* Text - textTransform
|
|
482
507
|
*/
|
|
483
|
-
export
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
508
|
+
export type TextTransform = 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
|
|
509
|
+
export declare const TextTransform: {
|
|
510
|
+
readonly Uppercase: "uppercase";
|
|
511
|
+
readonly Lowercase: "lowercase";
|
|
512
|
+
readonly Capitalize: "capitalize";
|
|
513
|
+
readonly Normal: "normal-case";
|
|
514
|
+
};
|
|
489
515
|
/**
|
|
490
516
|
* Text - fontFamily
|
|
491
517
|
*/
|
|
492
|
-
export
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
518
|
+
export type FontFamily = 'font-default' | 'font-accent' | 'font-hero';
|
|
519
|
+
export declare const FontFamily: {
|
|
520
|
+
readonly Default: "font-default";
|
|
521
|
+
readonly Accent: "font-accent";
|
|
522
|
+
readonly Hero: "font-hero";
|
|
523
|
+
};
|
|
497
524
|
/**
|
|
498
525
|
* TextButton - size
|
|
499
526
|
*/
|
|
500
|
-
export
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
527
|
+
export type TextButtonSize = 'body-lg' | 'body-md' | 'body-sm' | 'body-xs';
|
|
528
|
+
export declare const TextButtonSize: {
|
|
529
|
+
readonly BodyLg: "body-lg";
|
|
530
|
+
readonly BodyMd: "body-md";
|
|
531
|
+
readonly BodySm: "body-sm";
|
|
532
|
+
readonly BodyXs: "body-xs";
|
|
533
|
+
};
|
|
506
534
|
/**
|
|
507
535
|
* Icon - size
|
|
508
536
|
*/
|
|
509
|
-
export
|
|
537
|
+
export type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
538
|
+
export declare const IconSize: {
|
|
510
539
|
/** Extra small - 12px */
|
|
511
|
-
Xs
|
|
540
|
+
readonly Xs: "xs";
|
|
512
541
|
/** Small - 16px */
|
|
513
|
-
Sm
|
|
542
|
+
readonly Sm: "sm";
|
|
514
543
|
/** Medium - 20px (Default) */
|
|
515
|
-
Md
|
|
544
|
+
readonly Md: "md";
|
|
516
545
|
/** Large - 24px */
|
|
517
|
-
Lg
|
|
546
|
+
readonly Lg: "lg";
|
|
518
547
|
/** Extra large - 32px */
|
|
519
|
-
Xl
|
|
520
|
-
}
|
|
548
|
+
readonly Xl: "xl";
|
|
549
|
+
};
|
|
521
550
|
/**
|
|
522
551
|
* Icon - color
|
|
523
552
|
*/
|
|
524
|
-
export
|
|
553
|
+
export type IconColor = 'text-icon-default' | 'text-icon-alternative' | 'text-icon-muted' | 'text-overlay-inverse' | 'text-primary-default' | 'text-primary-inverse' | 'text-error-default' | 'text-error-inverse' | 'text-success-default' | 'text-success-inverse' | 'text-warning-default' | 'text-warning-inverse' | 'text-info-default' | 'text-info-inverse';
|
|
554
|
+
export declare const IconColor: {
|
|
525
555
|
/** For default neutral icons */
|
|
526
|
-
IconDefault
|
|
556
|
+
readonly IconDefault: "text-icon-default";
|
|
527
557
|
/** For softer neutral icons */
|
|
528
|
-
IconAlternative
|
|
558
|
+
readonly IconAlternative: "text-icon-alternative";
|
|
529
559
|
/** For the weakest contrast neutral icons (not accessible) */
|
|
530
|
-
IconMuted
|
|
560
|
+
readonly IconMuted: "text-icon-muted";
|
|
531
561
|
/** For elements used on top of overlay/alternative. Used for text, icon or border */
|
|
532
|
-
OverlayInverse
|
|
562
|
+
readonly OverlayInverse: "text-overlay-inverse";
|
|
533
563
|
/** For interactive, active, and selected semantics. Used for text, background, icon or border */
|
|
534
|
-
PrimaryDefault
|
|
564
|
+
readonly PrimaryDefault: "text-primary-default";
|
|
535
565
|
/** For elements used on top of primary/default. Used for text, icon or border */
|
|
536
|
-
PrimaryInverse
|
|
566
|
+
readonly PrimaryInverse: "text-primary-inverse";
|
|
537
567
|
/** For the critical alert semantic elements. Used for text, background, icon or border */
|
|
538
|
-
ErrorDefault
|
|
568
|
+
readonly ErrorDefault: "text-error-default";
|
|
539
569
|
/** For elements used on top of error/default. Used for text, icon or border */
|
|
540
|
-
ErrorInverse
|
|
570
|
+
readonly ErrorInverse: "text-error-inverse";
|
|
541
571
|
/** For the positive semantic elements. Used for text, background, icon or border */
|
|
542
|
-
SuccessDefault
|
|
572
|
+
readonly SuccessDefault: "text-success-default";
|
|
543
573
|
/** For elements used on top of success/default. Used for text, icon or border */
|
|
544
|
-
SuccessInverse
|
|
574
|
+
readonly SuccessInverse: "text-success-inverse";
|
|
545
575
|
/** For the caution alert semantic elements. Used for text, background, icon or border */
|
|
546
|
-
WarningDefault
|
|
576
|
+
readonly WarningDefault: "text-warning-default";
|
|
547
577
|
/** For elements used on top of warning/default. Used for text, icon or border */
|
|
548
|
-
WarningInverse
|
|
578
|
+
readonly WarningInverse: "text-warning-inverse";
|
|
549
579
|
/** For informational read-only elements. Used for text, background, icon or border */
|
|
550
|
-
InfoDefault
|
|
580
|
+
readonly InfoDefault: "text-info-default";
|
|
551
581
|
/** For elements used on top of info/default. Used for text, icon or border */
|
|
552
|
-
InfoInverse
|
|
553
|
-
}
|
|
582
|
+
readonly InfoInverse: "text-info-inverse";
|
|
583
|
+
};
|
|
554
584
|
/**
|
|
555
585
|
* Autogenerated from the generate-icon-script.ts script.
|
|
556
586
|
* Please do not edit this enum directly.
|
|
@@ -565,6 +595,7 @@ export declare enum IconName {
|
|
|
565
595
|
AddCard = "AddCard",
|
|
566
596
|
AddCircle = "AddCircle",
|
|
567
597
|
AddSquare = "AddSquare",
|
|
598
|
+
AfterHours = "AfterHours",
|
|
568
599
|
Ai = "Ai",
|
|
569
600
|
AlternateEmail = "AlternateEmail",
|
|
570
601
|
AppleLogo = "AppleLogo",
|