@newtonschool/grauity 0.1.11 → 1.0.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.
Files changed (100) hide show
  1. package/package.json +1 -2
  2. package/ui/.gitkeep +0 -0
  3. package/ui/README.md +0 -3
  4. package/ui/core/README.md +0 -4
  5. package/ui/core/colors/colorTypes.ts +0 -3
  6. package/ui/core/colors/index.ts +0 -25
  7. package/ui/core/icons/iconTags.ts +0 -1600
  8. package/ui/core/icons/iconTypes.ts +0 -1188
  9. package/ui/core/icons/index.ts +0 -3
  10. package/ui/core/index.ts +0 -14
  11. package/ui/core/miscellaneous-choices/index.ts +0 -24
  12. package/ui/core/miscellaneous-choices/miscellaneousTypes.ts +0 -3
  13. package/ui/core/sizes/index.ts +0 -29
  14. package/ui/core/sizes/sizeTypes.ts +0 -26
  15. package/ui/css/animations.scss +0 -8
  16. package/ui/css/fonts.scss +0 -9
  17. package/ui/css/index.scss +0 -3
  18. package/ui/css/reset.scss +0 -512
  19. package/ui/elements/Alert/Alert.styles.ts +0 -66
  20. package/ui/elements/Alert/Alert.test.tsx +0 -81
  21. package/ui/elements/Alert/Alert.tsx +0 -153
  22. package/ui/elements/Alert/constants.ts +0 -169
  23. package/ui/elements/Alert/index.ts +0 -6
  24. package/ui/elements/Alert/types.ts +0 -150
  25. package/ui/elements/Alert/utils.ts +0 -0
  26. package/ui/elements/AlertBanner/AlertBanner.styles.ts +0 -35
  27. package/ui/elements/AlertBanner/AlertBanner.test.tsx +0 -70
  28. package/ui/elements/AlertBanner/AlertBanner.tsx +0 -137
  29. package/ui/elements/AlertBanner/constants.ts +0 -179
  30. package/ui/elements/AlertBanner/index.ts +0 -6
  31. package/ui/elements/AlertBanner/types.ts +0 -133
  32. package/ui/elements/AlertBanner/utils.ts +0 -52
  33. package/ui/elements/Button/Button.styles.ts +0 -88
  34. package/ui/elements/Button/Button.test.tsx +0 -78
  35. package/ui/elements/Button/Button.tsx +0 -134
  36. package/ui/elements/Button/ButtonGroup.styles.ts +0 -7
  37. package/ui/elements/Button/ButtonGroup.tsx +0 -21
  38. package/ui/elements/Button/IconButton.test.tsx +0 -39
  39. package/ui/elements/Button/IconButton.tsx +0 -118
  40. package/ui/elements/Button/constants.ts +0 -304
  41. package/ui/elements/Button/index.ts +0 -8
  42. package/ui/elements/Button/types.ts +0 -282
  43. package/ui/elements/Button/utils.ts +0 -0
  44. package/ui/elements/Icon/Icon.styles.ts +0 -99
  45. package/ui/elements/Icon/Icon.tsx +0 -139
  46. package/ui/elements/Icon/index.ts +0 -2
  47. package/ui/elements/Icon/types.ts +0 -96
  48. package/ui/elements/Modal/ConfirmationDialog/index.test.tsx +0 -116
  49. package/ui/elements/Modal/ConfirmationDialog/index.tsx +0 -151
  50. package/ui/elements/Modal/Modal.styles.ts +0 -230
  51. package/ui/elements/Modal/Modal.test.tsx +0 -117
  52. package/ui/elements/Modal/Modal.tsx +0 -179
  53. package/ui/elements/Modal/MultiStepModal/index.test.tsx +0 -116
  54. package/ui/elements/Modal/MultiStepModal/index.tsx +0 -184
  55. package/ui/elements/Modal/constants.ts +0 -0
  56. package/ui/elements/Modal/index.ts +0 -4
  57. package/ui/elements/Modal/types.ts +0 -379
  58. package/ui/elements/Modal/utils.tsx +0 -0
  59. package/ui/elements/MultiSelectDropdown/DropdownListItem.tsx +0 -33
  60. package/ui/elements/MultiSelectDropdown/MultiSelectDropdown.styles.ts +0 -127
  61. package/ui/elements/MultiSelectDropdown/MultiSelectDropdown.test.tsx +0 -224
  62. package/ui/elements/MultiSelectDropdown/MultiSelectDropdown.tsx +0 -156
  63. package/ui/elements/MultiSelectDropdown/index.ts +0 -2
  64. package/ui/elements/MultiSelectDropdown/types.ts +0 -87
  65. package/ui/elements/SelectDropdown/SelectDropdown.styles.ts +0 -99
  66. package/ui/elements/SelectDropdown/SelectDropdown.test.tsx +0 -86
  67. package/ui/elements/SelectDropdown/SelectDropdown.tsx +0 -94
  68. package/ui/elements/SelectDropdown/index.tsx +0 -2
  69. package/ui/elements/SelectDropdown/types.ts +0 -73
  70. package/ui/elements/Table/Table.styles.ts +0 -178
  71. package/ui/elements/Table/Table.test.tsx +0 -72
  72. package/ui/elements/Table/Table.tsx +0 -118
  73. package/ui/elements/Table/constants.ts +0 -0
  74. package/ui/elements/Table/index.ts +0 -2
  75. package/ui/elements/Table/types.ts +0 -270
  76. package/ui/elements/Table/utils.ts +0 -0
  77. package/ui/elements/Typography/Typography.styles.ts +0 -29
  78. package/ui/elements/Typography/Typography.tsx +0 -70
  79. package/ui/elements/Typography/constants.ts +0 -292
  80. package/ui/elements/Typography/index.ts +0 -9
  81. package/ui/elements/Typography/types.ts +0 -116
  82. package/ui/elements/Typography/utils.ts +0 -11
  83. package/ui/fonts/Switzer-Variable.ttf +0 -0
  84. package/ui/fonts/grauity-icons.eot +0 -0
  85. package/ui/fonts/grauity-icons.ttf +0 -0
  86. package/ui/fonts/grauity-icons.woff +0 -0
  87. package/ui/fonts/grauity-icons.woff2 +0 -0
  88. package/ui/helpers/README.md +0 -3
  89. package/ui/helpers/classNameBuilders.ts +0 -48
  90. package/ui/helpers/index.ts +0 -7
  91. package/ui/index.ts +0 -48
  92. package/ui/init/GrauityInit.tsx +0 -85
  93. package/ui/init/index.ts +0 -2
  94. package/ui/themes/GlobalStyle.ts +0 -273
  95. package/ui/themes/ThemeContext.tsx +0 -140
  96. package/ui/themes/constants.ts +0 -8
  97. package/ui/themes/darkThemeConstants.ts +0 -73
  98. package/ui/themes/lightThemeConstants.ts +0 -73
  99. package/ui/themes/tokens.ts +0 -0
  100. package/ui/themes/types.ts +0 -77
@@ -1,3 +0,0 @@
1
- export { ICON_TAGS, TAG_ICONS } from './iconTags';
2
- export type { grauityIconKey, grauityIconName } from './iconTypes';
3
- export { GRAUITY_ICONS } from './iconTypes';
package/ui/core/index.ts DELETED
@@ -1,14 +0,0 @@
1
- // export type { grauityColorName, grauityIconColorName } from './colors';
2
- // export { GRAUITY_COLOR, GRAUITY_ICON_COLORS } from './colors';
3
- export type { grauityIconKey, grauityIconName } from './icons';
4
- export { GRAUITY_ICONS, ICON_TAGS, TAG_ICONS } from './icons';
5
- export type {
6
- grauityFlippedChoiceName,
7
- grauityRotatedChoiceName,
8
- } from './miscellaneous-choices';
9
- export {
10
- GRAUITY_ICON_FLIPPED_CHOICES,
11
- GRAUITY_ICON_ROTATED_CHOICES,
12
- } from './miscellaneous-choices';
13
- export type { grauityIconSizeName, grauitySizeName } from './sizes';
14
- export { GRAUITY_ICON_SIZES, GRAUITY_SIZE } from './sizes';
@@ -1,24 +0,0 @@
1
- export type {
2
- grauityRotatedChoiceName,
3
- grauityFlippedChoiceName,
4
- } from './miscellaneousTypes';
5
-
6
- export enum GRAUITY_ROTATED_CHOICES {
7
- CLOCKWISE = 'clockwise',
8
- COUNTERCLOCKWISE = 'counterclockwise',
9
- }
10
-
11
- export enum GRAUITY_FLIPPED_CHOICES {
12
- HORIZONTALLY = 'horizontally',
13
- VERTICALLY = 'vertically',
14
- }
15
-
16
- export const GRAUITY_ICON_ROTATED_CHOICES = [
17
- GRAUITY_ROTATED_CHOICES.CLOCKWISE,
18
- GRAUITY_ROTATED_CHOICES.COUNTERCLOCKWISE,
19
- ];
20
-
21
- export const GRAUITY_ICON_FLIPPED_CHOICES = [
22
- GRAUITY_FLIPPED_CHOICES.HORIZONTALLY,
23
- GRAUITY_FLIPPED_CHOICES.VERTICALLY,
24
- ];
@@ -1,3 +0,0 @@
1
- export type grauityFlippedChoiceName = 'vertically' | 'horizontally';
2
-
3
- export type grauityRotatedChoiceName = 'clockwise' | 'counterclockwise';
@@ -1,29 +0,0 @@
1
- export type { grauitySizeName, grauityIconSizeName } from './sizeTypes';
2
-
3
- export enum GRAUITY_SIZE {
4
- FOUR = '4',
5
- EIGHT = '8',
6
- TWELVE = '12',
7
- SIXTEEN = '16',
8
- TWENTY = '20',
9
- TWENTY_FOUR = '24',
10
- TWENTY_EIGHT = '28',
11
- THIRTY_TWO = '32',
12
- THIRTY_SIX = '36',
13
- FORTY = '40',
14
- FORTY_FOUR = '44',
15
- FORTY_EIGHT = '48',
16
- }
17
-
18
- export const GRAUITY_ICON_SIZES = [
19
- GRAUITY_SIZE.FOUR,
20
- GRAUITY_SIZE.EIGHT,
21
- GRAUITY_SIZE.TWELVE,
22
- GRAUITY_SIZE.SIXTEEN,
23
- GRAUITY_SIZE.TWENTY,
24
- GRAUITY_SIZE.TWENTY_FOUR,
25
- GRAUITY_SIZE.TWENTY_EIGHT,
26
- GRAUITY_SIZE.THIRTY_TWO,
27
- GRAUITY_SIZE.THIRTY_SIX,
28
- GRAUITY_SIZE.FORTY,
29
- ];
@@ -1,26 +0,0 @@
1
- export type grauitySizeName =
2
- | '4'
3
- | '8'
4
- | '12'
5
- | '16'
6
- | '20'
7
- | '24'
8
- | '28'
9
- | '32'
10
- | '36'
11
- | '40'
12
- | '44'
13
- | '48';
14
-
15
- export type grauityIconSizeName =
16
- | '4'
17
- | '8'
18
- | '12'
19
- | '14'
20
- | '16'
21
- | '20'
22
- | '24'
23
- | '28'
24
- | '32'
25
- | '36'
26
- | '40';
@@ -1,8 +0,0 @@
1
- @keyframes icon-loading {
2
- 0% {
3
- transform: rotate(0deg);
4
- }
5
- 100% {
6
- transform: rotate(360deg);
7
- }
8
- }
package/ui/css/fonts.scss DELETED
@@ -1,9 +0,0 @@
1
- @use "sass:math";
2
-
3
- .grauity-init {
4
- @for $i from 1 through 10 {
5
- .font-size-#{4 * $i} {
6
- font-size: calc(var(--multiplier) * #{math.div((4 * $i), 16)}em);
7
- }
8
- }
9
- }
package/ui/css/index.scss DELETED
@@ -1,3 +0,0 @@
1
- @import "reset";
2
- @import "grauity-icons";
3
- @import "animations";
package/ui/css/reset.scss DELETED
@@ -1,512 +0,0 @@
1
- /*!
2
- * # Gra.UI.ty 1.0.0 - Reset
3
- * https://github.com/Newton-School/grauity
4
- *
5
- *
6
- * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
8
- *
9
- */
10
-
11
-
12
- /*******************************
13
- Reset
14
- *******************************/
15
-
16
-
17
- /* Border-Box */
18
- *,
19
- *:before,
20
- *:after {
21
- box-sizing: inherit;
22
- }
23
-
24
- html {
25
- box-sizing: border-box;
26
- }
27
-
28
- /* iPad Input Shadows */
29
- input[type="text"],
30
- input[type="email"],
31
- input[type="search"],
32
- input[type="password"] {
33
- -webkit-appearance: none;
34
- -moz-appearance: none;
35
-
36
- /* mobile firefox too! */
37
- }
38
-
39
- /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
40
-
41
- /* Document
42
- ========================================================================== */
43
- /**
44
- * 1. Correct the line height in all browsers.
45
- * 2. Prevent adjustments of font size after orientation changes in
46
- * IE on Windows Phone and in iOS.
47
- */
48
- html {
49
- line-height: 1.15;
50
-
51
- /* 1 */
52
- -webkit-text-size-adjust: 100%;
53
- -ms-text-size-adjust: 100%;
54
- text-size-adjust: 100%;
55
- }
56
-
57
- /* Sections
58
- ========================================================================== */
59
- /**
60
- * Remove the margin in all browsers (opinionated).
61
- */
62
- body {
63
- margin: 0;
64
- }
65
-
66
- /**
67
- * Add the correct display in IE 9-.
68
- */
69
- article,
70
- aside,
71
- footer,
72
- header,
73
- nav,
74
- section {
75
- display: block;
76
- }
77
-
78
- /**
79
- * Correct the font size and margin on `h1` elements within `section` and
80
- * `article` contexts in Chrome, Firefox, and Safari.
81
- */
82
- h1 {
83
- font-size: 2em;
84
- margin: 0.67em 0;
85
- }
86
-
87
- /* Grouping content
88
- ========================================================================== */
89
- /**
90
- * Add the correct display in IE 9-.
91
- * 1. Add the correct display in IE.
92
- */
93
- figcaption,
94
- figure,
95
- main {
96
-
97
- /* 1 */
98
- display: block;
99
- }
100
-
101
- /**
102
- * Add the correct margin in IE 8.
103
- */
104
- figure {
105
- margin: 1em 40px;
106
- }
107
-
108
- /**
109
- * 1. Add the correct box sizing in Firefox.
110
- * 2. Show the overflow in Edge and IE.
111
- */
112
- hr {
113
- box-sizing: content-box;
114
-
115
- /* 1 */
116
- height: 0;
117
-
118
- /* 1 */
119
- overflow: visible;
120
-
121
- /* 2 */
122
- }
123
-
124
- /**
125
- * 1. Correct the inheritance and scaling of font size in all browsers.
126
- * 2. Correct the odd `em` font sizing in all browsers.
127
- */
128
- pre {
129
- font-family: monospace, monospace;
130
-
131
- /* 1 */
132
- font-size: 1em;
133
-
134
- /* 2 */
135
- }
136
-
137
- /* Text-level semantics
138
- ========================================================================== */
139
- /**
140
- * 1. Remove the gray background on active links in IE 10.
141
- * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
142
- */
143
- a {
144
- background-color: transparent;
145
-
146
- /* 1 */
147
- -webkit-text-decoration-skip: objects;
148
-
149
- /* 2 */
150
- }
151
-
152
- /**
153
- * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
154
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
155
- */
156
- abbr[title] {
157
- border-bottom: none;
158
-
159
- /* 1 */
160
- text-decoration: underline;
161
-
162
- /* 2 */
163
- -webkit-text-decoration: underline dotted;
164
- text-decoration: underline dotted;
165
-
166
- /* 2 */
167
- }
168
-
169
- /**
170
- * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
171
- */
172
- b,
173
- strong {
174
- font-weight: inherit;
175
- }
176
-
177
- /**
178
- * Add the correct font weight in Chrome, Edge, and Safari.
179
- */
180
- b,
181
- strong {
182
- font-weight: bolder;
183
- }
184
-
185
- /**
186
- * 1. Correct the inheritance and scaling of font size in all browsers.
187
- * 2. Correct the odd `em` font sizing in all browsers.
188
- */
189
- code,
190
- kbd,
191
- samp {
192
- font-family: monospace, monospace;
193
-
194
- /* 1 */
195
- font-size: 1em;
196
-
197
- /* 2 */
198
- }
199
-
200
- /**
201
- * Add the correct font style in Android 4.3-.
202
- */
203
- dfn {
204
- font-style: italic;
205
- }
206
-
207
- /**
208
- * Add the correct background and color in IE 9-.
209
- */
210
- mark {
211
- background-color: #ff0;
212
- color: #000;
213
- }
214
-
215
- /**
216
- * Add the correct font size in all browsers.
217
- */
218
- small {
219
- font-size: 80%;
220
- }
221
-
222
- /**
223
- * Prevent `sub` and `sup` elements from affecting the line height in
224
- * all browsers.
225
- */
226
- sub,
227
- sup {
228
- font-size: 75%;
229
- line-height: 0;
230
- position: relative;
231
- vertical-align: baseline;
232
- }
233
-
234
- sub {
235
- bottom: -0.25em;
236
- }
237
-
238
- sup {
239
- top: -0.5em;
240
- }
241
-
242
- /* Embedded content
243
- ========================================================================== */
244
- /**
245
- * Add the correct display in IE 9-.
246
- */
247
- audio,
248
- video {
249
- display: inline-block;
250
- }
251
-
252
- /**
253
- * Add the correct display in iOS 4-7.
254
- */
255
- audio:not([controls]) {
256
- display: none;
257
- height: 0;
258
- }
259
-
260
- /**
261
- * Remove the border on images inside links in IE 10-.
262
- */
263
- img {
264
- border-style: none;
265
- }
266
-
267
- /**
268
- * Hide the overflow in IE.
269
- */
270
- svg:not(:root) {
271
- overflow: hidden;
272
- }
273
-
274
- /* Forms
275
- ========================================================================== */
276
- /**
277
- * 1. Change the font styles in all browsers (opinionated).
278
- * 2. Remove the margin in Firefox and Safari.
279
- */
280
- button,
281
- input,
282
- optgroup,
283
- select,
284
- textarea {
285
- font-family: sans-serif;
286
-
287
- /* 1 */
288
- font-size: 100%;
289
-
290
- /* 1 */
291
- line-height: 1.15;
292
-
293
- /* 1 */
294
- margin: 0;
295
-
296
- /* 2 */
297
- }
298
-
299
- /**
300
- * Show the overflow in IE.
301
- * 1. Show the overflow in Edge.
302
- */
303
- button,
304
- input {
305
-
306
- /* 1 */
307
- overflow: visible;
308
- }
309
-
310
- /**
311
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
312
- * 1. Remove the inheritance of text transform in Firefox.
313
- */
314
- button,
315
- select {
316
-
317
- /* 1 */
318
- text-transform: none;
319
- }
320
-
321
- /**
322
- * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
323
- * controls in Android 4.
324
- * 2. Correct the inability to style clickable types in iOS and Safari.
325
- */
326
- button,
327
- html [type="button"],
328
- [type="reset"],
329
- [type="submit"] {
330
- -webkit-appearance: button;
331
-
332
- /* 2 */
333
- }
334
-
335
- /**
336
- * Remove the inner border and padding in Firefox.
337
- */
338
- button::-moz-focus-inner,
339
- [type="button"]::-moz-focus-inner,
340
- [type="reset"]::-moz-focus-inner,
341
- [type="submit"]::-moz-focus-inner {
342
- border-style: none;
343
- padding: 0;
344
- }
345
-
346
- /**
347
- * Restore the focus styles unset by the previous rule.
348
- */
349
- button:-moz-focusring,
350
- [type="button"]:-moz-focusring,
351
- [type="reset"]:-moz-focusring,
352
- [type="submit"]:-moz-focusring {
353
- outline: 1px dotted ButtonText;
354
- }
355
-
356
- /**
357
- * Correct the padding in Firefox.
358
- */
359
- fieldset {
360
- padding: 0.35em 0.75em 0.625em;
361
- }
362
-
363
- /**
364
- * 1. Correct the text wrapping in Edge and IE.
365
- * 2. Correct the color inheritance from `fieldset` elements in IE.
366
- * 3. Remove the padding so developers are not caught out when they zero out
367
- * `fieldset` elements in all browsers.
368
- */
369
- legend {
370
- box-sizing: border-box;
371
-
372
- /* 1 */
373
- color: inherit;
374
-
375
- /* 2 */
376
- display: table;
377
-
378
- /* 1 */
379
- max-width: 100%;
380
-
381
- /* 1 */
382
- padding: 0;
383
-
384
- /* 3 */
385
- white-space: normal;
386
-
387
- /* 1 */
388
- }
389
-
390
- /**
391
- * 1. Add the correct display in IE 9-.
392
- * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
393
- */
394
- progress {
395
- display: inline-block;
396
-
397
- /* 1 */
398
- vertical-align: baseline;
399
-
400
- /* 2 */
401
- }
402
-
403
- /**
404
- * Remove the default vertical scrollbar in IE.
405
- */
406
- textarea {
407
- overflow: auto;
408
- }
409
-
410
- /**
411
- * 1. Add the correct box sizing in IE 10-.
412
- * 2. Remove the padding in IE 10-.
413
- */
414
- [type="checkbox"],
415
- [type="radio"] {
416
- box-sizing: border-box;
417
-
418
- /* 1 */
419
- padding: 0;
420
-
421
- /* 2 */
422
- }
423
-
424
- /**
425
- * Correct the cursor style of increment and decrement buttons in Chrome.
426
- */
427
- [type="number"]::-webkit-inner-spin-button,
428
- [type="number"]::-webkit-outer-spin-button {
429
- height: auto;
430
- }
431
-
432
- /**
433
- * 1. Correct the odd appearance in Chrome and Safari.
434
- * 2. Correct the outline style in Safari.
435
- */
436
- [type="search"] {
437
- -webkit-appearance: textfield;
438
-
439
- /* 1 */
440
- outline-offset: -2px;
441
-
442
- /* 2 */
443
- }
444
-
445
- /**
446
- * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
447
- */
448
- [type="search"]::-webkit-search-cancel-button,
449
- [type="search"]::-webkit-search-decoration {
450
- -webkit-appearance: none;
451
- }
452
-
453
- /**
454
- * 1. Correct the inability to style clickable types in iOS and Safari.
455
- * 2. Change font properties to `inherit` in Safari.
456
- */
457
- ::-webkit-file-upload-button {
458
- -webkit-appearance: button;
459
-
460
- /* 1 */
461
- font: inherit;
462
-
463
- /* 2 */
464
- }
465
-
466
- /* Interactive
467
- ========================================================================== */
468
- /*
469
- * Add the correct display in IE 9-.
470
- * 1. Add the correct display in Edge, IE, and Firefox.
471
- */
472
- details,
473
- menu {
474
- display: block;
475
- }
476
-
477
- /*
478
- * Add the correct display in all browsers.
479
- */
480
- summary {
481
- display: list-item;
482
- }
483
-
484
- /* Scripting
485
- ========================================================================== */
486
- /**
487
- * Add the correct display in IE 9-.
488
- */
489
- canvas {
490
- display: inline-block;
491
- }
492
-
493
- /**
494
- * Add the correct display in IE.
495
- */
496
- template {
497
- display: none;
498
- }
499
-
500
- /* Hidden
501
- ========================================================================== */
502
- /**
503
- * Add the correct display in IE 10-.
504
- */
505
- [hidden] {
506
- display: none;
507
- }
508
-
509
-
510
- /*******************************
511
- Site Overrides
512
- *******************************/
@@ -1,66 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
-
3
- import {
4
- AlertBodyProps,
5
- AlertContainerProps,
6
- AlertDescriptionProps,
7
- AlertTitleProps,
8
- } from './types';
9
-
10
- export const StyledAlertContainer = styled.div<AlertContainerProps>`
11
- display: flex;
12
- width: 100%;
13
- ${({ maxWidth }) => maxWidth && `max-width: ${maxWidth};`}
14
- min-height: var(--spacing-48px, 48px);
15
- align-items: flex-start;
16
- border-radius: var(--spacing-8px, 8px);
17
- border: var(--spacing-1px, 1px) solid ${({ borderColor }) => borderColor};
18
- background: ${({ backgroundColor }) => backgroundColor};
19
- padding: var(--spacing-12px, 12px);
20
- gap: var(--spacing-20px, 20px);
21
- `;
22
-
23
- export const StyledAlertBody = styled.div<AlertBodyProps>`
24
- display: flex;
25
- flex-direction: column;
26
- justify-content: center;
27
- align-items: flex-start;
28
- gap: var(--spacing-4px, 4px);
29
- margin-right: var(--spacing-4px, 4px);
30
- flex: 1 0 0;
31
-
32
- ${({ inlineButtons }) =>
33
- inlineButtons &&
34
- css`
35
- flex-direction: row;
36
- align-items: flex-start;
37
- `};
38
- `;
39
-
40
- export const StyledAlertContent = styled.div`
41
- display: flex;
42
- flex-direction: column;
43
- justify-content: center;
44
- align-items: flex-start;
45
- gap: var(--spacing-4px, 4px);
46
- `;
47
-
48
- export const StyledAlertTitle = styled.h2<AlertTitleProps>`
49
- align-self: stretch;
50
- color: ${({ textColor }) => textColor};
51
- font-size: var(--font-size-14px, 14px);
52
- font-weight: var(--font-weight-semibold, 600);
53
- line-height: 160%;
54
- letter-spacing: 0.014px;
55
- margin: 0;
56
- `;
57
-
58
- export const StyledAlertDescription = styled.div<AlertDescriptionProps>`
59
- align-self: stretch;
60
- color: ${({ textColor }) => textColor};
61
- font-size: var(--font-size-14px, 14px);
62
- font-weight: var(--font-weight-medium, 500);
63
- line-height: 160%;
64
- letter-spacing: 0.1px;
65
- margin-bottom: var(--spacing-4px, 4px);
66
- `;