@nimbus-ds/components 5.8.0-rc.3 → 5.8.0-rc.5
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/dist/Text/index.d.ts +469 -0
- package/dist/Text/index.js +2 -0
- package/package.json +11 -1
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
export interface Conditions<T> {
|
|
7
|
+
xs?: T;
|
|
8
|
+
md?: T;
|
|
9
|
+
lg?: T;
|
|
10
|
+
xl?: T;
|
|
11
|
+
}
|
|
12
|
+
export type TextAlign = "left" | "right" | "center" | "justify";
|
|
13
|
+
export type WordBreak = "normal" | "break-all" | "keep-all" | "break-word";
|
|
14
|
+
declare const propertiesText: {
|
|
15
|
+
color: {
|
|
16
|
+
currentColor: string;
|
|
17
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
19
|
+
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
20
|
+
"primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
21
|
+
"success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
|
+
"success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
23
|
+
"success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
24
|
+
"success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
|
+
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
26
|
+
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
27
|
+
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
28
|
+
"warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
29
|
+
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
30
|
+
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
31
|
+
"danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
32
|
+
"danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
33
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
|
+
"neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
+
"neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
36
|
+
"neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
37
|
+
"neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
38
|
+
"neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
39
|
+
};
|
|
40
|
+
textAlign: TextAlign[];
|
|
41
|
+
lineHeight: {
|
|
42
|
+
readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
43
|
+
readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
44
|
+
readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
45
|
+
};
|
|
46
|
+
fontWeight: {
|
|
47
|
+
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
48
|
+
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
49
|
+
bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
50
|
+
};
|
|
51
|
+
fontSize: {
|
|
52
|
+
caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
53
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
54
|
+
highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
55
|
+
};
|
|
56
|
+
wordBreak: WordBreak[];
|
|
57
|
+
};
|
|
58
|
+
export type TextColorProperties = keyof typeof propertiesText.color;
|
|
59
|
+
export type TextFontSizeProperties = keyof typeof propertiesText.fontSize;
|
|
60
|
+
export type TextFontWeightProperties = keyof typeof propertiesText.fontWeight;
|
|
61
|
+
export type TextLineHeightProperties = keyof typeof propertiesText.lineHeight;
|
|
62
|
+
export type TextConditions<T> = Conditions<T>;
|
|
63
|
+
export interface TextSprinkle {
|
|
64
|
+
/**
|
|
65
|
+
* The fontSize property sets the size of the text.
|
|
66
|
+
* @default base
|
|
67
|
+
*/
|
|
68
|
+
fontSize?: TextFontSizeProperties | TextConditions<TextFontSizeProperties>;
|
|
69
|
+
/**
|
|
70
|
+
* The fontWeight property sets how thick or thin characters in text should be displayed.
|
|
71
|
+
* @default regular
|
|
72
|
+
*/
|
|
73
|
+
fontWeight?: TextFontWeightProperties | TextConditions<TextFontWeightProperties>;
|
|
74
|
+
/**
|
|
75
|
+
* The lineHeight property specifies the line height of the text.
|
|
76
|
+
* @default base
|
|
77
|
+
*/
|
|
78
|
+
lineHeight?: TextLineHeightProperties | TextConditions<TextLineHeightProperties>;
|
|
79
|
+
/**
|
|
80
|
+
* The textAlign property specifies the horizontal alignment of text.
|
|
81
|
+
* @default left
|
|
82
|
+
*/
|
|
83
|
+
textAlign?: TextAlign | TextConditions<TextAlign>;
|
|
84
|
+
/**
|
|
85
|
+
* The color property is used to set the color of the text.
|
|
86
|
+
* @default neutral-textLow
|
|
87
|
+
*/
|
|
88
|
+
color?: TextColorProperties | TextConditions<TextColorProperties>;
|
|
89
|
+
/**
|
|
90
|
+
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
91
|
+
*/
|
|
92
|
+
lineClamp?: number | TextConditions<number>;
|
|
93
|
+
/**
|
|
94
|
+
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
95
|
+
*/
|
|
96
|
+
WebkitLineClamp?: number | TextConditions<number>;
|
|
97
|
+
/**
|
|
98
|
+
* The amount of lines at which the text will be trimmed, showing an ellipsis when overflowed.
|
|
99
|
+
*/
|
|
100
|
+
wordBreak?: WordBreak | TextConditions<WordBreak>;
|
|
101
|
+
}
|
|
102
|
+
declare const text: {
|
|
103
|
+
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
104
|
+
{
|
|
105
|
+
config: {
|
|
106
|
+
color: {
|
|
107
|
+
values: {
|
|
108
|
+
currentColor: {
|
|
109
|
+
default: string;
|
|
110
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
111
|
+
};
|
|
112
|
+
"primary-interactive": {
|
|
113
|
+
default: string;
|
|
114
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
115
|
+
};
|
|
116
|
+
"primary-surface": {
|
|
117
|
+
default: string;
|
|
118
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
119
|
+
};
|
|
120
|
+
"primary-textLow": {
|
|
121
|
+
default: string;
|
|
122
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
123
|
+
};
|
|
124
|
+
"success-textLow": {
|
|
125
|
+
default: string;
|
|
126
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
127
|
+
};
|
|
128
|
+
"success-surface": {
|
|
129
|
+
default: string;
|
|
130
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
131
|
+
};
|
|
132
|
+
"warning-interactive": {
|
|
133
|
+
default: string;
|
|
134
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
135
|
+
};
|
|
136
|
+
"warning-surface": {
|
|
137
|
+
default: string;
|
|
138
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
139
|
+
};
|
|
140
|
+
"warning-textLow": {
|
|
141
|
+
default: string;
|
|
142
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
143
|
+
};
|
|
144
|
+
"danger-interactive": {
|
|
145
|
+
default: string;
|
|
146
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
147
|
+
};
|
|
148
|
+
"danger-surface": {
|
|
149
|
+
default: string;
|
|
150
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
151
|
+
};
|
|
152
|
+
"danger-textLow": {
|
|
153
|
+
default: string;
|
|
154
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
155
|
+
};
|
|
156
|
+
"neutral-background": {
|
|
157
|
+
default: string;
|
|
158
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
159
|
+
};
|
|
160
|
+
"neutral-interactive": {
|
|
161
|
+
default: string;
|
|
162
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
163
|
+
};
|
|
164
|
+
"neutral-surface": {
|
|
165
|
+
default: string;
|
|
166
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
167
|
+
};
|
|
168
|
+
"neutral-textLow": {
|
|
169
|
+
default: string;
|
|
170
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
171
|
+
};
|
|
172
|
+
"success-interactive": {
|
|
173
|
+
default: string;
|
|
174
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
175
|
+
};
|
|
176
|
+
"primary-textHigh": {
|
|
177
|
+
default: string;
|
|
178
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
179
|
+
};
|
|
180
|
+
"success-textHigh": {
|
|
181
|
+
default: string;
|
|
182
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
183
|
+
};
|
|
184
|
+
"warning-textHigh": {
|
|
185
|
+
default: string;
|
|
186
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
187
|
+
};
|
|
188
|
+
"danger-textHigh": {
|
|
189
|
+
default: string;
|
|
190
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
191
|
+
};
|
|
192
|
+
"neutral-textDisabled": {
|
|
193
|
+
default: string;
|
|
194
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
195
|
+
};
|
|
196
|
+
"neutral-textHigh": {
|
|
197
|
+
default: string;
|
|
198
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
staticScale: {
|
|
202
|
+
currentColor: string;
|
|
203
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
204
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
205
|
+
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
206
|
+
"primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
207
|
+
"success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
208
|
+
"success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
209
|
+
"success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
210
|
+
"success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
211
|
+
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
212
|
+
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
213
|
+
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
214
|
+
"warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
215
|
+
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
216
|
+
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
217
|
+
"danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
218
|
+
"danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
219
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
220
|
+
"neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
221
|
+
"neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
222
|
+
"neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
223
|
+
"neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
224
|
+
"neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
225
|
+
};
|
|
226
|
+
name: "color";
|
|
227
|
+
};
|
|
228
|
+
textAlign: {
|
|
229
|
+
values: {
|
|
230
|
+
center: {
|
|
231
|
+
default: string;
|
|
232
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
233
|
+
};
|
|
234
|
+
left: {
|
|
235
|
+
default: string;
|
|
236
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
237
|
+
};
|
|
238
|
+
right: {
|
|
239
|
+
default: string;
|
|
240
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
241
|
+
};
|
|
242
|
+
justify: {
|
|
243
|
+
default: string;
|
|
244
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
staticScale: TextAlign[];
|
|
248
|
+
name: "textAlign";
|
|
249
|
+
};
|
|
250
|
+
lineHeight: {
|
|
251
|
+
values: {
|
|
252
|
+
caption: {
|
|
253
|
+
default: string;
|
|
254
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
255
|
+
};
|
|
256
|
+
base: {
|
|
257
|
+
default: string;
|
|
258
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
259
|
+
};
|
|
260
|
+
highlight: {
|
|
261
|
+
default: string;
|
|
262
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
staticScale: {
|
|
266
|
+
readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
267
|
+
readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
268
|
+
readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
269
|
+
};
|
|
270
|
+
name: "lineHeight";
|
|
271
|
+
};
|
|
272
|
+
fontWeight: {
|
|
273
|
+
values: {
|
|
274
|
+
regular: {
|
|
275
|
+
default: string;
|
|
276
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
277
|
+
};
|
|
278
|
+
medium: {
|
|
279
|
+
default: string;
|
|
280
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
281
|
+
};
|
|
282
|
+
bold: {
|
|
283
|
+
default: string;
|
|
284
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
staticScale: {
|
|
288
|
+
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
289
|
+
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
290
|
+
bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
291
|
+
};
|
|
292
|
+
name: "fontWeight";
|
|
293
|
+
};
|
|
294
|
+
fontSize: {
|
|
295
|
+
values: {
|
|
296
|
+
caption: {
|
|
297
|
+
default: string;
|
|
298
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
299
|
+
};
|
|
300
|
+
base: {
|
|
301
|
+
default: string;
|
|
302
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
303
|
+
};
|
|
304
|
+
highlight: {
|
|
305
|
+
default: string;
|
|
306
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
staticScale: {
|
|
310
|
+
caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
311
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
312
|
+
highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
313
|
+
};
|
|
314
|
+
name: "fontSize";
|
|
315
|
+
};
|
|
316
|
+
wordBreak: {
|
|
317
|
+
values: {
|
|
318
|
+
normal: {
|
|
319
|
+
default: string;
|
|
320
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
321
|
+
};
|
|
322
|
+
"break-word": {
|
|
323
|
+
default: string;
|
|
324
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
325
|
+
};
|
|
326
|
+
"break-all": {
|
|
327
|
+
default: string;
|
|
328
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
329
|
+
};
|
|
330
|
+
"keep-all": {
|
|
331
|
+
default: string;
|
|
332
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
staticScale: WordBreak[];
|
|
336
|
+
name: "wordBreak";
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
} & {
|
|
340
|
+
config: {
|
|
341
|
+
lineClamp: {
|
|
342
|
+
dynamic: {
|
|
343
|
+
default: string;
|
|
344
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
345
|
+
};
|
|
346
|
+
dynamicScale: true;
|
|
347
|
+
name: "lineClamp";
|
|
348
|
+
vars: {
|
|
349
|
+
default: string;
|
|
350
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
WebkitLineClamp: {
|
|
354
|
+
dynamic: {
|
|
355
|
+
default: string;
|
|
356
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
357
|
+
};
|
|
358
|
+
dynamicScale: boolean;
|
|
359
|
+
name: "WebkitLineClamp";
|
|
360
|
+
vars: {
|
|
361
|
+
default: string;
|
|
362
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
} & {
|
|
367
|
+
config: {
|
|
368
|
+
[x: string]: {
|
|
369
|
+
mappings: ("fontSize" | "fontWeight" | "color" | "lineHeight" | "textAlign" | "wordBreak" | "lineClamp" | "WebkitLineClamp")[];
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
]>;
|
|
374
|
+
properties: {
|
|
375
|
+
color: {
|
|
376
|
+
currentColor: string;
|
|
377
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
378
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
379
|
+
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
380
|
+
"primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
381
|
+
"success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
382
|
+
"success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
383
|
+
"success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
384
|
+
"success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
385
|
+
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
386
|
+
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
387
|
+
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
388
|
+
"warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
389
|
+
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
390
|
+
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
391
|
+
"danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
392
|
+
"danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
393
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
394
|
+
"neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
395
|
+
"neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
396
|
+
"neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
397
|
+
"neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
398
|
+
"neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
399
|
+
};
|
|
400
|
+
textAlign: TextAlign[];
|
|
401
|
+
lineHeight: {
|
|
402
|
+
readonly caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
403
|
+
readonly base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
404
|
+
readonly highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
405
|
+
};
|
|
406
|
+
fontWeight: {
|
|
407
|
+
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
408
|
+
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
409
|
+
bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
410
|
+
};
|
|
411
|
+
fontSize: {
|
|
412
|
+
caption: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
413
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
414
|
+
highlight: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
415
|
+
};
|
|
416
|
+
wordBreak: WordBreak[];
|
|
417
|
+
};
|
|
418
|
+
classnames: {
|
|
419
|
+
base: string;
|
|
420
|
+
trim: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
export interface SkeletonProperties {
|
|
424
|
+
/**
|
|
425
|
+
* Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
|
|
426
|
+
*/
|
|
427
|
+
width: string;
|
|
428
|
+
/**
|
|
429
|
+
* Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
|
|
430
|
+
*/
|
|
431
|
+
height: string;
|
|
432
|
+
/**
|
|
433
|
+
* The border radius of the skeleton.
|
|
434
|
+
*/
|
|
435
|
+
borderRadius?: string;
|
|
436
|
+
/**
|
|
437
|
+
* This is an attribute used to identify a DOM node for testing purposes.
|
|
438
|
+
*/
|
|
439
|
+
"data-testid"?: string;
|
|
440
|
+
}
|
|
441
|
+
export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
|
|
442
|
+
export type TextSkeletonProperties = {
|
|
443
|
+
fontSize?: keyof typeof text.properties.fontSize;
|
|
444
|
+
} & Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
|
|
445
|
+
export type TextSkeletonProps = TextSkeletonProperties;
|
|
446
|
+
declare const TextSkeleton: React.FC<TextSkeletonProps>;
|
|
447
|
+
export interface TextComponents {
|
|
448
|
+
Skeleton: typeof TextSkeleton;
|
|
449
|
+
}
|
|
450
|
+
export interface TextProperties extends Omit<TextSprinkle, "WebkitLineClamp"> {
|
|
451
|
+
/**
|
|
452
|
+
* The content of the link.
|
|
453
|
+
* @TJS-type React.ReactNode
|
|
454
|
+
*/
|
|
455
|
+
children: ReactNode;
|
|
456
|
+
/**
|
|
457
|
+
* Type of html tag to create for the Text component.
|
|
458
|
+
* @default p
|
|
459
|
+
*/
|
|
460
|
+
as?: "p" | "span";
|
|
461
|
+
}
|
|
462
|
+
export type TextProps = TextProperties & Omit<TextSprinkle, "WebkitLineClamp"> & HTMLAttributes<HTMLParagraphElement>;
|
|
463
|
+
export declare const Text: React.FC<TextProps> & TextComponents;
|
|
464
|
+
|
|
465
|
+
export {
|
|
466
|
+
Text as default,
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/styles")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/styles"],t):"object"==typeof exports?exports["@nimbus-ds/components"]=t(require("react"),require("@nimbus-ds/styles")):e["@nimbus-ds/components"]=t(e.react,e["@nimbus-ds/styles"])}(global,((e,t)=>(()=>{var r={536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;const n=r(608).__importDefault(r(155)),o=r(367),a=r(769),i=({className:e,style:t,as:r="p",color:a="neutral-textLow",textAlign:i="left",lineHeight:c="base",fontWeight:s="regular",fontSize:l="base",children:u,lineClamp:f,...p})=>{const{className:y,style:d,otherProps:_}=o.text.sprinkle({...p,color:a,textAlign:i,lineHeight:c,fontWeight:s,fontSize:l,WebkitLineClamp:f});return n.default.createElement(r,{...p,className:[o.text.classnames.base,f&&o.text.classnames.trim,y].join(" "),style:d,..._},u)};t.Text=i,i.Skeleton=a.TextSkeleton,i.displayName="Text",i.Skeleton.displayName="Text.Skeleton"},816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextSkeleton=void 0;const n=r(608).__importDefault(r(155)),o=r(867),a=r(96);t.TextSkeleton=({fontSize:e="caption",width:t,height:r,"data-testid":i})=>n.default.createElement(o.Skeleton,{width:t??a.sizes[e].width,height:r??a.sizes[e].height,"data-testid":i,borderRadius:"0.25rem"})},494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextSkeleton=void 0;const n=r(816);var o=r(816);Object.defineProperty(t,"TextSkeleton",{enumerable:!0,get:function(){return o.TextSkeleton}}),t.default=n.TextSkeleton},96:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sizes=void 0,t.sizes={caption:{width:"2rem",height:"1rem"},base:{width:"2rem",height:"1.25rem"},highlight:{width:"2rem",height:"1.125rem"}}},769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(608).__exportStar(r(494),t)},867:(e,t,r)=>{var n;global,n=(e,t)=>(()=>{"use strict";var r={612:(e,t,r)=>{function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function o(e,t){var r=e;for(var n of t){if(!(n in r))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=e.constructor();for(var o in e){var i=e[o],c=[...r,o];"string"==typeof i||"number"==typeof i||null==i?n[o]=t(i,c):"object"!=typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):n[o]=a(i,t,c)}return n}function i(e,t){var r={};if("object"==typeof t){var i=e;a(t,((e,t)=>{if(null!=e){var a=o(i,t);r[n(a)]=String(e)}}))}else{var c=e;for(var s in c){var l=c[s];null!=l&&(r[n(s)]=l)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}function c(e,t,r){e.style.setProperty(n(t),r)}function s(e,t,r){if("object"==typeof r){var n=t;a(r,((t,r)=>{null!=t&&c(e,o(n,r),String(t))}))}else{var i=t;for(var s in i)null!=i[s]&&c(e,s,i[s])}}r.r(t),r.d(t,{assignInlineVars:()=>i,setElementVars:()=>s})},947:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Skeleton=void 0;const n=r(769).__importDefault(r(155)),o=r(612),a=r(367),i=({className:e,style:t,height:r,width:i,borderRadius:c="0",...s})=>n.default.createElement("div",{className:a.skeleton.classnames.base,style:(0,o.assignInlineVars)({[a.vars.width]:i,[a.vars.height]:r,[a.vars.borderRadius]:c}),...s});t.Skeleton=i,i.displayName="Skeleton"},367:e=>{e.exports=t},155:t=>{t.exports=e},769:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>M,__assign:()=>a,__asyncDelegator:()=>P,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>O,__awaiter:()=>d,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>A,__createBinding:()=>v,__decorate:()=>c,__disposeResources:()=>z,__esDecorate:()=>l,__exportStar:()=>b,__extends:()=>o,__generator:()=>_,__importDefault:()=>D,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>y,__param:()=>s,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>j,__spreadArrays:()=>g,__values:()=>h,default:()=>C});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,s=n.kind,l="getter"===s?"get":"setter"===s?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var _ in n)d[_]="access"===_?{}:n[_];for(var _ in n.access)d.access[_]=n.access[_];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[y])("accessor"===s?{get:f.get,set:f.set}:f[l],d);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(c=i(v.get))&&(f.get=c),(c=i(v.set))&&(f.set=c),(c=i(v.init))&&o.unshift(c)}else(c=i(v))&&("field"===s?o.unshift(c):f[l]=c)}u&&Object.defineProperty(u,n.name,f),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function y(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function b(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function j(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(s,l):u(a[0][2],r)}catch(e){u(a[0][3],e)}var r}function s(e){c("next",e)}function l(e){c("throw",e)}function u(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return E(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function A(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function z(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const C={__extends:o,__assign:a,__rest:i,__decorate:c,__param:s,__metadata:y,__awaiter:d,__generator:_,__createBinding:v,__exportStar:b,__values:h,__read:m,__spread:w,__spreadArrays:g,__spreadArray:j,__await:O,__asyncGenerator:S,__asyncDelegator:P,__asyncValues:x,__makeTemplateObject:T,__importStar:k,__importDefault:D,__classPrivateFieldGet:I,__classPrivateFieldSet:A,__classPrivateFieldIn:R,__addDisposableResource:M,__disposeResources:z}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.Skeleton=void 0;const t=o(947);var r=o(947);Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return r.Skeleton}}),e.default=t.Skeleton})(),a})(),e.exports=n(r(155),r(367))},367:e=>{"use strict";e.exports=t},155:t=>{"use strict";t.exports=e},608:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>M,__assign:()=>a,__asyncDelegator:()=>P,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>O,__awaiter:()=>d,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>A,__createBinding:()=>v,__decorate:()=>c,__disposeResources:()=>z,__esDecorate:()=>l,__exportStar:()=>b,__extends:()=>o,__generator:()=>_,__importDefault:()=>D,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>y,__param:()=>s,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>j,__spreadArrays:()=>g,__values:()=>h,default:()=>C});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,s=n.kind,l="getter"===s?"get":"setter"===s?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var _ in n)d[_]="access"===_?{}:n[_];for(var _ in n.access)d.access[_]=n.access[_];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[y])("accessor"===s?{get:f.get,set:f.set}:f[l],d);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(c=i(v.get))&&(f.get=c),(c=i(v.set))&&(f.set=c),(c=i(v.init))&&o.unshift(c)}else(c=i(v))&&("field"===s?o.unshift(c):f[l]=c)}u&&Object.defineProperty(u,n.name,f),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function y(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function b(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function j(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(s,l):u(a[0][2],r)}catch(e){u(a[0][3],e)}var r}function s(e){c("next",e)}function l(e){c("throw",e)}function u(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return E(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function A(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function z(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const C={__extends:o,__assign:a,__rest:i,__decorate:c,__param:s,__metadata:y,__awaiter:d,__generator:_,__createBinding:v,__exportStar:b,__values:h,__read:m,__spread:w,__spreadArrays:g,__spreadArray:j,__await:O,__asyncGenerator:S,__asyncDelegator:P,__asyncValues:x,__makeTemplateObject:T,__importStar:k,__importDefault:D,__classPrivateFieldGet:I,__classPrivateFieldSet:A,__classPrivateFieldIn:R,__addDisposableResource:M,__disposeResources:z}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.TextSkeleton=e.Text=void 0;const t=o(536);var r=o(536);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r.Text}});var n=o(769);Object.defineProperty(e,"TextSkeleton",{enumerable:!0,get:function(){return n.TextSkeleton}}),e.default=t.Text})(),a})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbus-ds/components",
|
|
3
|
-
"version": "5.8.0-rc.
|
|
3
|
+
"version": "5.8.0-rc.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -29,6 +29,16 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/TiendaNube/nimbus-design-system/issues"
|
|
31
31
|
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"import": "./dist/index.js",
|
|
35
|
+
"require": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./Text": {
|
|
38
|
+
"import": "./dist/Text/index.js",
|
|
39
|
+
"require": "./dist/Text/index.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
32
42
|
"devDependencies": {
|
|
33
43
|
"@nimbus-ds/webpack": "^1.4.1-rc.1"
|
|
34
44
|
},
|