@instructure/ui-avatar 8.9.2-snapshot.3 → 8.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-avatar
9
+
6
10
  ## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-avatar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-avatar",
3
- "version": "8.9.2-snapshot.3+ddc7880d5",
3
+ "version": "8.10.0",
4
4
  "description": "An image or letters that represents a user.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,20 +25,20 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.9.2-snapshot.3+ddc7880d5",
29
- "@instructure/emotion": "8.9.2-snapshot.3+ddc7880d5",
30
- "@instructure/shared-types": "8.9.2-snapshot.3+ddc7880d5",
31
- "@instructure/ui-react-utils": "8.9.2-snapshot.3+ddc7880d5",
32
- "@instructure/ui-testable": "8.9.2-snapshot.3+ddc7880d5",
33
- "@instructure/ui-view": "8.9.2-snapshot.3+ddc7880d5",
28
+ "@instructure/console": "8.10.0",
29
+ "@instructure/emotion": "8.10.0",
30
+ "@instructure/shared-types": "8.10.0",
31
+ "@instructure/ui-react-utils": "8.10.0",
32
+ "@instructure/ui-testable": "8.10.0",
33
+ "@instructure/ui-view": "8.10.0",
34
34
  "prop-types": "^15"
35
35
  },
36
36
  "devDependencies": {
37
- "@instructure/ui-babel-preset": "8.9.2-snapshot.3+ddc7880d5",
38
- "@instructure/ui-color-utils": "8.9.2-snapshot.3+ddc7880d5",
39
- "@instructure/ui-test-locator": "8.9.2-snapshot.3+ddc7880d5",
40
- "@instructure/ui-test-utils": "8.9.2-snapshot.3+ddc7880d5",
41
- "@instructure/ui-themes": "8.9.2-snapshot.3+ddc7880d5"
37
+ "@instructure/ui-babel-preset": "8.10.0",
38
+ "@instructure/ui-color-utils": "8.10.0",
39
+ "@instructure/ui-test-locator": "8.10.0",
40
+ "@instructure/ui-test-utils": "8.10.0",
41
+ "@instructure/ui-themes": "8.10.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=16.8 <=17"
@@ -46,6 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "sideEffects": false,
50
- "gitHead": "ddc7880d5a2f7d4d0596332e8d49cb9b1de68024"
49
+ "sideEffects": false
51
50
  }
@@ -27,8 +27,16 @@ import PropTypes from 'prop-types'
27
27
 
28
28
  import { ThemeablePropTypes } from '@instructure/emotion'
29
29
 
30
- import type { Spacing, WithStyleProps } from '@instructure/emotion'
31
- import type { AsElementType, PropValidators } from '@instructure/shared-types'
30
+ import type {
31
+ Spacing,
32
+ WithStyleProps,
33
+ ComponentStyle
34
+ } from '@instructure/emotion'
35
+ import type {
36
+ AsElementType,
37
+ AvatarTheme,
38
+ PropValidators
39
+ } from '@instructure/shared-types'
32
40
 
33
41
  type AvatarOwnProps = {
34
42
  /**
@@ -90,7 +98,9 @@ type PropKeys = keyof AvatarOwnProps
90
98
 
91
99
  type AllowedPropKeys = Readonly<Array<PropKeys>>
92
100
 
93
- type AvatarProps = AvatarOwnProps & WithStyleProps
101
+ type AvatarProps = AvatarOwnProps & WithStyleProps<AvatarTheme, AvatarStyle>
102
+
103
+ type AvatarStyle = ComponentStyle<'avatar' | 'initials' | 'loadImage'>
94
104
 
95
105
  const propTypes: PropValidators<PropKeys> = {
96
106
  name: PropTypes.string.isRequired,
@@ -137,5 +147,5 @@ const allowedProps: AllowedPropKeys = [
137
147
  'elementRef'
138
148
  ]
139
149
 
140
- export type { AvatarProps }
150
+ export type { AvatarProps, AvatarStyle }
141
151
  export { propTypes, allowedProps }
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { AvatarTheme } from '@instructure/shared-types'
26
- import { AvatarProps, AvatarState } from './props'
25
+ import type { AvatarTheme } from '@instructure/shared-types'
26
+ import type { AvatarProps, AvatarState, AvatarStyle } from './props'
27
27
 
28
28
  /**
29
29
  * ---
@@ -39,7 +39,7 @@ const generateStyle = (
39
39
  componentTheme: AvatarTheme,
40
40
  props: AvatarProps,
41
41
  state: AvatarState
42
- ) => {
42
+ ): AvatarStyle => {
43
43
  const { size, color, shape, src } = props
44
44
  const { loaded } = state
45
45
 
@@ -1,6 +1,6 @@
1
1
  import { SyntheticEvent } from 'react';
2
- import type { Spacing, WithStyleProps } from '@instructure/emotion';
3
- import type { AsElementType, PropValidators } from '@instructure/shared-types';
2
+ import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
+ import type { AsElementType, AvatarTheme, PropValidators } from '@instructure/shared-types';
4
4
  declare type AvatarOwnProps = {
5
5
  /**
6
6
  * The name to display. It will be automatically converted to initials.
@@ -42,9 +42,10 @@ export declare type AvatarState = {
42
42
  };
43
43
  declare type PropKeys = keyof AvatarOwnProps;
44
44
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
45
- declare type AvatarProps = AvatarOwnProps & WithStyleProps;
45
+ declare type AvatarProps = AvatarOwnProps & WithStyleProps<AvatarTheme, AvatarStyle>;
46
+ declare type AvatarStyle = ComponentStyle<'avatar' | 'initials' | 'loadImage'>;
46
47
  declare const propTypes: PropValidators<PropKeys>;
47
48
  declare const allowedProps: AllowedPropKeys;
48
- export type { AvatarProps };
49
+ export type { AvatarProps, AvatarStyle };
49
50
  export { propTypes, allowedProps };
50
51
  //# sourceMappingURL=props.d.ts.map
@@ -1 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A;CAChB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,cAAc,CAAA;AAEpC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,WAAW,GAAG,cAAc,GAAG,cAAc,CAAC,WAAW,EAAE,WAAW,CAAC,CAAA;AAE5E,aAAK,WAAW,GAAG,cAAc,CAAC,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC,CAAA;AAEtE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import { AvatarTheme } from '@instructure/shared-types';
2
- import { AvatarProps, AvatarState } from './props';
1
+ import type { AvatarTheme } from '@instructure/shared-types';
2
+ import type { AvatarProps, AvatarState, AvatarStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -10,628 +10,6 @@ import { AvatarProps, AvatarState } from './props';
10
10
  * @param {Object} state the state of the component, the style is applied to
11
11
  * @return {Object} The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: AvatarTheme, props: AvatarProps, state: AvatarState) => {
14
- avatar: {
15
- backgroundImage: string;
16
- border: number;
17
- boxShadow: string;
18
- width: string;
19
- position: string;
20
- borderRadius: string;
21
- overflow: string;
22
- fontSize: string;
23
- borderWidth: string | 0;
24
- label: string;
25
- height: string;
26
- boxSizing: string;
27
- backgroundColor: string;
28
- backgroundPosition: string;
29
- backgroundSize: string;
30
- backgroundClip: string;
31
- backgroundRepeat: string;
32
- lineHeight: number;
33
- textAlign: string;
34
- } | {
35
- backgroundImage: undefined;
36
- borderStyle: string;
37
- borderColor: string;
38
- width: string;
39
- position: string;
40
- borderRadius: string;
41
- overflow: string;
42
- fontSize: string;
43
- borderWidth: string | 0;
44
- label: string;
45
- height: string;
46
- boxSizing: string;
47
- backgroundColor: string;
48
- backgroundPosition: string;
49
- backgroundSize: string;
50
- backgroundClip: string;
51
- backgroundRepeat: string;
52
- lineHeight: number;
53
- textAlign: string;
54
- } | {
55
- backgroundImage: string;
56
- border: number;
57
- boxShadow: string;
58
- width: string;
59
- fontSize: string;
60
- borderWidth: string | 0;
61
- label: string;
62
- height: string;
63
- boxSizing: string;
64
- backgroundColor: string;
65
- backgroundPosition: string;
66
- backgroundSize: string;
67
- backgroundClip: string;
68
- backgroundRepeat: string;
69
- overflow: string;
70
- lineHeight: number;
71
- textAlign: string;
72
- } | {
73
- backgroundImage: undefined;
74
- borderStyle: string;
75
- borderColor: string;
76
- width: string;
77
- fontSize: string;
78
- borderWidth: string | 0;
79
- label: string;
80
- height: string;
81
- boxSizing: string;
82
- backgroundColor: string;
83
- backgroundPosition: string;
84
- backgroundSize: string;
85
- backgroundClip: string;
86
- backgroundRepeat: string;
87
- overflow: string;
88
- lineHeight: number;
89
- textAlign: string;
90
- } | {
91
- backgroundImage: string;
92
- border: number;
93
- boxShadow: string;
94
- width: string;
95
- position: string;
96
- borderRadius: string;
97
- overflow: string;
98
- fontSize: string;
99
- borderWidth: string | 0;
100
- label: string;
101
- height: string;
102
- boxSizing: string;
103
- backgroundColor: string;
104
- backgroundPosition: string;
105
- backgroundSize: string;
106
- backgroundClip: string;
107
- backgroundRepeat: string;
108
- lineHeight: number;
109
- textAlign: string;
110
- } | {
111
- backgroundImage: undefined;
112
- borderStyle: string;
113
- borderColor: string;
114
- width: string;
115
- position: string;
116
- borderRadius: string;
117
- overflow: string;
118
- fontSize: string;
119
- borderWidth: string | 0;
120
- label: string;
121
- height: string;
122
- boxSizing: string;
123
- backgroundColor: string;
124
- backgroundPosition: string;
125
- backgroundSize: string;
126
- backgroundClip: string;
127
- backgroundRepeat: string;
128
- lineHeight: number;
129
- textAlign: string;
130
- } | {
131
- backgroundImage: string;
132
- border: number;
133
- boxShadow: string;
134
- width: string;
135
- fontSize: string;
136
- borderWidth: string | 0;
137
- label: string;
138
- height: string;
139
- boxSizing: string;
140
- backgroundColor: string;
141
- backgroundPosition: string;
142
- backgroundSize: string;
143
- backgroundClip: string;
144
- backgroundRepeat: string;
145
- overflow: string;
146
- lineHeight: number;
147
- textAlign: string;
148
- } | {
149
- backgroundImage: undefined;
150
- borderStyle: string;
151
- borderColor: string;
152
- width: string;
153
- fontSize: string;
154
- borderWidth: string | 0;
155
- label: string;
156
- height: string;
157
- boxSizing: string;
158
- backgroundColor: string;
159
- backgroundPosition: string;
160
- backgroundSize: string;
161
- backgroundClip: string;
162
- backgroundRepeat: string;
163
- overflow: string;
164
- lineHeight: number;
165
- textAlign: string;
166
- } | {
167
- backgroundImage: string;
168
- border: number;
169
- boxShadow: string;
170
- width: string;
171
- position: string;
172
- borderRadius: string;
173
- overflow: string;
174
- fontSize: string;
175
- borderWidth: string | 0;
176
- label: string;
177
- height: string;
178
- boxSizing: string;
179
- backgroundColor: string;
180
- backgroundPosition: string;
181
- backgroundSize: string;
182
- backgroundClip: string;
183
- backgroundRepeat: string;
184
- lineHeight: number;
185
- textAlign: string;
186
- } | {
187
- backgroundImage: undefined;
188
- borderStyle: string;
189
- borderColor: string;
190
- width: string;
191
- position: string;
192
- borderRadius: string;
193
- overflow: string;
194
- fontSize: string;
195
- borderWidth: string | 0;
196
- label: string;
197
- height: string;
198
- boxSizing: string;
199
- backgroundColor: string;
200
- backgroundPosition: string;
201
- backgroundSize: string;
202
- backgroundClip: string;
203
- backgroundRepeat: string;
204
- lineHeight: number;
205
- textAlign: string;
206
- } | {
207
- backgroundImage: string;
208
- border: number;
209
- boxShadow: string;
210
- width: string;
211
- fontSize: string;
212
- borderWidth: string | 0;
213
- label: string;
214
- height: string;
215
- boxSizing: string;
216
- backgroundColor: string;
217
- backgroundPosition: string;
218
- backgroundSize: string;
219
- backgroundClip: string;
220
- backgroundRepeat: string;
221
- overflow: string;
222
- lineHeight: number;
223
- textAlign: string;
224
- } | {
225
- backgroundImage: undefined;
226
- borderStyle: string;
227
- borderColor: string;
228
- width: string;
229
- fontSize: string;
230
- borderWidth: string | 0;
231
- label: string;
232
- height: string;
233
- boxSizing: string;
234
- backgroundColor: string;
235
- backgroundPosition: string;
236
- backgroundSize: string;
237
- backgroundClip: string;
238
- backgroundRepeat: string;
239
- overflow: string;
240
- lineHeight: number;
241
- textAlign: string;
242
- } | {
243
- backgroundImage: string;
244
- border: number;
245
- boxShadow: string;
246
- width: string;
247
- position: string;
248
- borderRadius: string;
249
- overflow: string;
250
- fontSize: string;
251
- borderWidth: string | 0;
252
- label: string;
253
- height: string;
254
- boxSizing: string;
255
- backgroundColor: string;
256
- backgroundPosition: string;
257
- backgroundSize: string;
258
- backgroundClip: string;
259
- backgroundRepeat: string;
260
- lineHeight: number;
261
- textAlign: string;
262
- } | {
263
- backgroundImage: undefined;
264
- borderStyle: string;
265
- borderColor: string;
266
- width: string;
267
- position: string;
268
- borderRadius: string;
269
- overflow: string;
270
- fontSize: string;
271
- borderWidth: string | 0;
272
- label: string;
273
- height: string;
274
- boxSizing: string;
275
- backgroundColor: string;
276
- backgroundPosition: string;
277
- backgroundSize: string;
278
- backgroundClip: string;
279
- backgroundRepeat: string;
280
- lineHeight: number;
281
- textAlign: string;
282
- } | {
283
- backgroundImage: string;
284
- border: number;
285
- boxShadow: string;
286
- width: string;
287
- fontSize: string;
288
- borderWidth: string | 0;
289
- label: string;
290
- height: string;
291
- boxSizing: string;
292
- backgroundColor: string;
293
- backgroundPosition: string;
294
- backgroundSize: string;
295
- backgroundClip: string;
296
- backgroundRepeat: string;
297
- overflow: string;
298
- lineHeight: number;
299
- textAlign: string;
300
- } | {
301
- backgroundImage: undefined;
302
- borderStyle: string;
303
- borderColor: string;
304
- width: string;
305
- fontSize: string;
306
- borderWidth: string | 0;
307
- label: string;
308
- height: string;
309
- boxSizing: string;
310
- backgroundColor: string;
311
- backgroundPosition: string;
312
- backgroundSize: string;
313
- backgroundClip: string;
314
- backgroundRepeat: string;
315
- overflow: string;
316
- lineHeight: number;
317
- textAlign: string;
318
- } | {
319
- backgroundImage: string;
320
- border: number;
321
- boxShadow: string;
322
- width: string;
323
- position: string;
324
- borderRadius: string;
325
- overflow: string;
326
- fontSize: string;
327
- borderWidth: string | 0;
328
- label: string;
329
- height: string;
330
- boxSizing: string;
331
- backgroundColor: string;
332
- backgroundPosition: string;
333
- backgroundSize: string;
334
- backgroundClip: string;
335
- backgroundRepeat: string;
336
- lineHeight: number;
337
- textAlign: string;
338
- } | {
339
- backgroundImage: undefined;
340
- borderStyle: string;
341
- borderColor: string;
342
- width: string;
343
- position: string;
344
- borderRadius: string;
345
- overflow: string;
346
- fontSize: string;
347
- borderWidth: string | 0;
348
- label: string;
349
- height: string;
350
- boxSizing: string;
351
- backgroundColor: string;
352
- backgroundPosition: string;
353
- backgroundSize: string;
354
- backgroundClip: string;
355
- backgroundRepeat: string;
356
- lineHeight: number;
357
- textAlign: string;
358
- } | {
359
- backgroundImage: string;
360
- border: number;
361
- boxShadow: string;
362
- width: string;
363
- fontSize: string;
364
- borderWidth: string | 0;
365
- label: string;
366
- height: string;
367
- boxSizing: string;
368
- backgroundColor: string;
369
- backgroundPosition: string;
370
- backgroundSize: string;
371
- backgroundClip: string;
372
- backgroundRepeat: string;
373
- overflow: string;
374
- lineHeight: number;
375
- textAlign: string;
376
- } | {
377
- backgroundImage: undefined;
378
- borderStyle: string;
379
- borderColor: string;
380
- width: string;
381
- fontSize: string;
382
- borderWidth: string | 0;
383
- label: string;
384
- height: string;
385
- boxSizing: string;
386
- backgroundColor: string;
387
- backgroundPosition: string;
388
- backgroundSize: string;
389
- backgroundClip: string;
390
- backgroundRepeat: string;
391
- overflow: string;
392
- lineHeight: number;
393
- textAlign: string;
394
- } | {
395
- backgroundImage: string;
396
- border: number;
397
- boxShadow: string;
398
- width: string;
399
- position: string;
400
- borderRadius: string;
401
- overflow: string;
402
- fontSize: string;
403
- borderWidth: string | 0;
404
- label: string;
405
- height: string;
406
- boxSizing: string;
407
- backgroundColor: string;
408
- backgroundPosition: string;
409
- backgroundSize: string;
410
- backgroundClip: string;
411
- backgroundRepeat: string;
412
- lineHeight: number;
413
- textAlign: string;
414
- } | {
415
- backgroundImage: undefined;
416
- borderStyle: string;
417
- borderColor: string;
418
- width: string;
419
- position: string;
420
- borderRadius: string;
421
- overflow: string;
422
- fontSize: string;
423
- borderWidth: string | 0;
424
- label: string;
425
- height: string;
426
- boxSizing: string;
427
- backgroundColor: string;
428
- backgroundPosition: string;
429
- backgroundSize: string;
430
- backgroundClip: string;
431
- backgroundRepeat: string;
432
- lineHeight: number;
433
- textAlign: string;
434
- } | {
435
- backgroundImage: string;
436
- border: number;
437
- boxShadow: string;
438
- width: string;
439
- fontSize: string;
440
- borderWidth: string | 0;
441
- label: string;
442
- height: string;
443
- boxSizing: string;
444
- backgroundColor: string;
445
- backgroundPosition: string;
446
- backgroundSize: string;
447
- backgroundClip: string;
448
- backgroundRepeat: string;
449
- overflow: string;
450
- lineHeight: number;
451
- textAlign: string;
452
- } | {
453
- backgroundImage: undefined;
454
- borderStyle: string;
455
- borderColor: string;
456
- width: string;
457
- fontSize: string;
458
- borderWidth: string | 0;
459
- label: string;
460
- height: string;
461
- boxSizing: string;
462
- backgroundColor: string;
463
- backgroundPosition: string;
464
- backgroundSize: string;
465
- backgroundClip: string;
466
- backgroundRepeat: string;
467
- overflow: string;
468
- lineHeight: number;
469
- textAlign: string;
470
- } | {
471
- backgroundImage: string;
472
- border: number;
473
- boxShadow: string;
474
- width: string;
475
- position: string;
476
- borderRadius: string;
477
- overflow: string;
478
- fontSize: string;
479
- borderWidth: string | 0;
480
- label: string;
481
- height: string;
482
- boxSizing: string;
483
- backgroundColor: string;
484
- backgroundPosition: string;
485
- backgroundSize: string;
486
- backgroundClip: string;
487
- backgroundRepeat: string;
488
- lineHeight: number;
489
- textAlign: string;
490
- } | {
491
- backgroundImage: undefined;
492
- borderStyle: string;
493
- borderColor: string;
494
- width: string;
495
- position: string;
496
- borderRadius: string;
497
- overflow: string;
498
- fontSize: string;
499
- borderWidth: string | 0;
500
- label: string;
501
- height: string;
502
- boxSizing: string;
503
- backgroundColor: string;
504
- backgroundPosition: string;
505
- backgroundSize: string;
506
- backgroundClip: string;
507
- backgroundRepeat: string;
508
- lineHeight: number;
509
- textAlign: string;
510
- } | {
511
- backgroundImage: string;
512
- border: number;
513
- boxShadow: string;
514
- width: string;
515
- fontSize: string;
516
- borderWidth: string | 0;
517
- label: string;
518
- height: string;
519
- boxSizing: string;
520
- backgroundColor: string;
521
- backgroundPosition: string;
522
- backgroundSize: string;
523
- backgroundClip: string;
524
- backgroundRepeat: string;
525
- overflow: string;
526
- lineHeight: number;
527
- textAlign: string;
528
- } | {
529
- backgroundImage: undefined;
530
- borderStyle: string;
531
- borderColor: string;
532
- width: string;
533
- fontSize: string;
534
- borderWidth: string | 0;
535
- label: string;
536
- height: string;
537
- boxSizing: string;
538
- backgroundColor: string;
539
- backgroundPosition: string;
540
- backgroundSize: string;
541
- backgroundClip: string;
542
- backgroundRepeat: string;
543
- overflow: string;
544
- lineHeight: number;
545
- textAlign: string;
546
- } | {
547
- backgroundImage: string;
548
- border: number;
549
- boxShadow: string;
550
- width: string;
551
- position: string;
552
- borderRadius: string;
553
- overflow: string;
554
- fontSize: string;
555
- borderWidth: string | 0;
556
- label: string;
557
- height: string;
558
- boxSizing: string;
559
- backgroundColor: string;
560
- backgroundPosition: string;
561
- backgroundSize: string;
562
- backgroundClip: string;
563
- backgroundRepeat: string;
564
- lineHeight: number;
565
- textAlign: string;
566
- } | {
567
- backgroundImage: undefined;
568
- borderStyle: string;
569
- borderColor: string;
570
- width: string;
571
- position: string;
572
- borderRadius: string;
573
- overflow: string;
574
- fontSize: string;
575
- borderWidth: string | 0;
576
- label: string;
577
- height: string;
578
- boxSizing: string;
579
- backgroundColor: string;
580
- backgroundPosition: string;
581
- backgroundSize: string;
582
- backgroundClip: string;
583
- backgroundRepeat: string;
584
- lineHeight: number;
585
- textAlign: string;
586
- } | {
587
- backgroundImage: string;
588
- border: number;
589
- boxShadow: string;
590
- width: string;
591
- fontSize: string;
592
- borderWidth: string | 0;
593
- label: string;
594
- height: string;
595
- boxSizing: string;
596
- backgroundColor: string;
597
- backgroundPosition: string;
598
- backgroundSize: string;
599
- backgroundClip: string;
600
- backgroundRepeat: string;
601
- overflow: string;
602
- lineHeight: number;
603
- textAlign: string;
604
- } | {
605
- backgroundImage: undefined;
606
- borderStyle: string;
607
- borderColor: string;
608
- width: string;
609
- fontSize: string;
610
- borderWidth: string | 0;
611
- label: string;
612
- height: string;
613
- boxSizing: string;
614
- backgroundColor: string;
615
- backgroundPosition: string;
616
- backgroundSize: string;
617
- backgroundClip: string;
618
- backgroundRepeat: string;
619
- overflow: string;
620
- lineHeight: number;
621
- textAlign: string;
622
- };
623
- initials: {
624
- label: string;
625
- color: string;
626
- lineHeight: string;
627
- fontFamily: string;
628
- fontWeight: number;
629
- letterSpacing: string;
630
- };
631
- loadImage: {
632
- label: string;
633
- display: string;
634
- };
635
- };
13
+ declare const generateStyle: (componentTheme: AvatarTheme, props: AvatarProps, state: AvatarState) => AvatarStyle;
636
14
  export default generateStyle;
637
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Avatar/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,WAAW,SACpB,WAAW,SACX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGnB,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Avatar/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEpE;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,WAAW,SACpB,WAAW,SACX,WAAW,KACjB,WAqGF,CAAA;AAED,eAAe,aAAa,CAAA"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.