@apolitical/component-library 10.5.0 → 10.5.1
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/helpers/intl.d.ts +0 -1
- package/index.js +119 -119
- package/index.mjs +9182 -9138
- package/layout/page-layout/components/header/header.d.ts +1 -3
- package/package.json +11 -5
- package/style.css +1 -1
- package/styles/README.md +46 -20
- package/styles/base/_blockquotes.scss +5 -3
- package/styles/base/_fonts.scss +3 -3
- package/styles/base/_layout.scss +2 -4
- package/styles/base/_lists.scss +4 -4
- package/styles/base/_overlays.scss +1 -5
- package/styles/base/_table.scss +9 -9
- package/styles/base/_titles.scss +3 -3
- package/styles/base/buttons/_buttons.scss +14 -16
- package/styles/base/buttons/_icons.scss +2 -1
- package/styles/base/form/_checkbox.scss +2 -2
- package/styles/base/form/_fields.scss +10 -1
- package/styles/base/form/_form.scss +1 -1
- package/styles/base/form/_radio.scss +1 -1
- package/styles/build.scss +9 -0
- package/styles/components-legacy.scss +9291 -0
- package/styles/index.scss +2 -1
- package/styles/mixins/_styles.scss +3 -3
- package/styles/overrides/misc.scss +23 -0
- package/styles/overrides/navigator-theme.scss +48 -0
- package/styles/overrides-legacy.scss +622 -0
- package/styles/uclasses/README.md +1 -1
- package/styles/uclasses/uclasses.scss +42 -41
- package/styles/variables/colors/theme/_banners.scss +15 -6
- package/styles/variables/colors/theme/_base.scss +5 -2
- package/styles/variables/colors/theme/_discussion.scss +1 -1
- package/styles/variables/colors/theme/_general.scss +1 -1
- package/styles/variables/colors/theme/_layout.scss +5 -2
- package/styles/variables/colors/theme/_loaders.scss +6 -2
- package/styles/variables/colors/theme/_navigation.scss +1 -1
- package/styles/variables/colors/theme/_text.scss +14 -6
|
@@ -5,7 +5,7 @@ These are utility classes that are used in the `next-ui` app and libraries. They
|
|
|
5
5
|
The starting point for the tooling to generate these classes came from [codyframe](https://github.com/codyhouse/codyframe).
|
|
6
6
|
In future we may want to expand on our small set using more of the utility classes that codyframe has, or even use something like [tailwindcss](https://tailwindcss.com/) instead.
|
|
7
7
|
|
|
8
|
-
The `global.css` file is used to define the utility classes globally and also for intellisense in the editor. If you modify the generator sass then you will need to run `pnpm build:uclasses` from the
|
|
8
|
+
The `global.css` file is used to define the utility classes globally and also for intellisense in the editor. If you modify the generator sass then you will need to run `pnpm build:uclasses` from the `services/` workspace root.
|
|
9
9
|
|
|
10
10
|
Ensure you have the recommended extension from .vscode workspace settings to get the intellisense.
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ $font-size-md: 1rem;
|
|
|
21
21
|
|
|
22
22
|
// form elements
|
|
23
23
|
.u-text-align-left {
|
|
24
|
-
text-align:
|
|
24
|
+
text-align: start;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.u-margin-bottom-half {
|
|
@@ -297,13 +297,11 @@ $font-size-md: 1rem;
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
.u-mx-auto {
|
|
300
|
-
margin-
|
|
301
|
-
margin-right: auto;
|
|
300
|
+
margin-inline: auto;
|
|
302
301
|
}
|
|
303
302
|
|
|
304
303
|
.u-mx-0 {
|
|
305
|
-
margin-
|
|
306
|
-
margin-right: 0;
|
|
304
|
+
margin-inline: 0;
|
|
307
305
|
}
|
|
308
306
|
|
|
309
307
|
.u-mt-auto {
|
|
@@ -351,43 +349,43 @@ $font-size-md: 1rem;
|
|
|
351
349
|
}
|
|
352
350
|
|
|
353
351
|
.u-mr-auto {
|
|
354
|
-
margin-
|
|
352
|
+
margin-inline-end: auto;
|
|
355
353
|
}
|
|
356
354
|
|
|
357
355
|
.u-mr-0 {
|
|
358
|
-
margin-
|
|
356
|
+
margin-inline-end: 0;
|
|
359
357
|
}
|
|
360
358
|
|
|
361
359
|
.u-mr-1 {
|
|
362
|
-
margin-
|
|
360
|
+
margin-inline-end: 0.25rem; /* 4px */
|
|
363
361
|
}
|
|
364
362
|
|
|
365
363
|
.u-mr-2 {
|
|
366
|
-
margin-
|
|
364
|
+
margin-inline-end: 0.5rem; /* 8px */
|
|
367
365
|
}
|
|
368
366
|
|
|
369
367
|
.u-mr-3 {
|
|
370
|
-
margin-
|
|
368
|
+
margin-inline-end: 0.75rem; /* 12px */
|
|
371
369
|
}
|
|
372
370
|
|
|
373
371
|
.u-mr-4 {
|
|
374
|
-
margin-
|
|
372
|
+
margin-inline-end: 1rem; /* 16px */
|
|
375
373
|
}
|
|
376
374
|
|
|
377
375
|
.u-mr-5 {
|
|
378
|
-
margin-
|
|
376
|
+
margin-inline-end: 1.25rem; /* 20px */
|
|
379
377
|
}
|
|
380
378
|
|
|
381
379
|
.u-mr-6 {
|
|
382
|
-
margin-
|
|
380
|
+
margin-inline-end: 1.5rem; /* 24px */
|
|
383
381
|
}
|
|
384
382
|
|
|
385
383
|
.u-mr-8 {
|
|
386
|
-
margin-
|
|
384
|
+
margin-inline-end: 2rem; /* 32px */
|
|
387
385
|
}
|
|
388
386
|
|
|
389
387
|
.u-mr-10 {
|
|
390
|
-
margin-
|
|
388
|
+
margin-inline-end: 2.5rem; /* 40px */
|
|
391
389
|
}
|
|
392
390
|
|
|
393
391
|
.u-mb-auto {
|
|
@@ -431,51 +429,51 @@ $font-size-md: 1rem;
|
|
|
431
429
|
}
|
|
432
430
|
|
|
433
431
|
.u-ml-auto {
|
|
434
|
-
margin-
|
|
432
|
+
margin-inline-start: auto;
|
|
435
433
|
}
|
|
436
434
|
|
|
437
435
|
.u-ml-0 {
|
|
438
|
-
margin-
|
|
436
|
+
margin-inline-start: 0;
|
|
439
437
|
}
|
|
440
438
|
|
|
441
439
|
.u-ml-1 {
|
|
442
|
-
margin-
|
|
440
|
+
margin-inline-start: 0.25rem; /* 4px */
|
|
443
441
|
}
|
|
444
442
|
|
|
445
443
|
.u-ml-2 {
|
|
446
|
-
margin-
|
|
444
|
+
margin-inline-start: 0.5rem; /* 8px */
|
|
447
445
|
}
|
|
448
446
|
|
|
449
447
|
.u-ml-3 {
|
|
450
|
-
margin-
|
|
448
|
+
margin-inline-start: 0.75rem; /* 12px */
|
|
451
449
|
}
|
|
452
450
|
|
|
453
451
|
.u-ml-4 {
|
|
454
|
-
margin-
|
|
452
|
+
margin-inline-start: 1rem; /* 16px */
|
|
455
453
|
}
|
|
456
454
|
|
|
457
455
|
.u-ml-5 {
|
|
458
|
-
margin-
|
|
456
|
+
margin-inline-start: 1.25rem; /* 20px */
|
|
459
457
|
}
|
|
460
458
|
|
|
461
459
|
.u-ml-6 {
|
|
462
|
-
margin-
|
|
460
|
+
margin-inline-start: 1.5rem; /* 24px */
|
|
463
461
|
}
|
|
464
462
|
|
|
465
463
|
.u-ml-8 {
|
|
466
|
-
margin-
|
|
464
|
+
margin-inline-start: 2rem; /* 32px */
|
|
467
465
|
}
|
|
468
466
|
|
|
469
467
|
.u-ml-10 {
|
|
470
|
-
margin-
|
|
468
|
+
margin-inline-start: 2.5rem; /* 40px */
|
|
471
469
|
}
|
|
472
470
|
|
|
473
471
|
.u-ml-minus-1 {
|
|
474
|
-
margin-
|
|
472
|
+
margin-inline-start: -0.25rem; /* 4px */
|
|
475
473
|
}
|
|
476
474
|
|
|
477
475
|
.u-ml-minus-2 {
|
|
478
|
-
margin-
|
|
476
|
+
margin-inline-start: -0.5rem; /* 8px */
|
|
479
477
|
}
|
|
480
478
|
|
|
481
479
|
// padding
|
|
@@ -520,28 +518,31 @@ $font-size-md: 1rem;
|
|
|
520
518
|
}
|
|
521
519
|
|
|
522
520
|
.u-px-0 {
|
|
523
|
-
padding-
|
|
524
|
-
padding-right: 0;
|
|
521
|
+
padding-inline: 0;
|
|
525
522
|
}
|
|
526
523
|
|
|
527
524
|
.u-px-1 {
|
|
528
|
-
padding-
|
|
529
|
-
|
|
525
|
+
padding-inline: 0.25rem; /* 4px */
|
|
526
|
+
|
|
527
|
+
/* 4px */
|
|
530
528
|
}
|
|
531
529
|
|
|
532
530
|
.u-px-2 {
|
|
533
|
-
padding-
|
|
534
|
-
|
|
531
|
+
padding-inline: 0.5rem; /* 8px */
|
|
532
|
+
|
|
533
|
+
/* 8px */
|
|
535
534
|
}
|
|
536
535
|
|
|
537
536
|
.u-px-3 {
|
|
538
|
-
padding-
|
|
539
|
-
|
|
537
|
+
padding-inline: 0.75rem; /* 12px */
|
|
538
|
+
|
|
539
|
+
/* 12px */
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
.u-px-4 {
|
|
543
|
-
padding-
|
|
544
|
-
|
|
543
|
+
padding-inline: 1rem; /* 16px */
|
|
544
|
+
|
|
545
|
+
/* 16px */
|
|
545
546
|
}
|
|
546
547
|
|
|
547
548
|
.u-pt-0 {
|
|
@@ -553,7 +554,7 @@ $font-size-md: 1rem;
|
|
|
553
554
|
}
|
|
554
555
|
|
|
555
556
|
.u-pr-0 {
|
|
556
|
-
padding-
|
|
557
|
+
padding-inline-end: 0;
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
.u-pb-0 {
|
|
@@ -565,7 +566,7 @@ $font-size-md: 1rem;
|
|
|
565
566
|
}
|
|
566
567
|
|
|
567
568
|
.u-pl-0 {
|
|
568
|
-
padding-
|
|
569
|
+
padding-inline-start: 0;
|
|
569
570
|
}
|
|
570
571
|
|
|
571
572
|
// vertical-align
|
|
@@ -667,11 +668,11 @@ $font-size-md: 1rem;
|
|
|
667
668
|
}
|
|
668
669
|
|
|
669
670
|
.u-text-left {
|
|
670
|
-
text-align:
|
|
671
|
+
text-align: start;
|
|
671
672
|
}
|
|
672
673
|
|
|
673
674
|
.u-text-right {
|
|
674
|
-
text-align:
|
|
675
|
+
text-align: end;
|
|
675
676
|
}
|
|
676
677
|
|
|
677
678
|
.u-text-justify {
|
|
@@ -9,8 +9,11 @@ $banners: (
|
|
|
9
9
|
banner-section_subtle: get-map($c, 'black'),
|
|
10
10
|
banner-section_bg: get-map($c, 'b700'),
|
|
11
11
|
banner-section_light_bg: get-map($c, 'white'),
|
|
12
|
-
banner-section_gradient_bg:
|
|
13
|
-
|
|
12
|
+
banner-section_gradient_bg: linear-gradient(
|
|
13
|
+
135deg,
|
|
14
|
+
rgb(76 62 205) 0%,
|
|
15
|
+
get-map($c, 'g300') 100%
|
|
16
|
+
),
|
|
14
17
|
banner-section_subtle_bg: get-map($c, 'white'),
|
|
15
18
|
banner-section_overlay: get-map($c, 'n900'),
|
|
16
19
|
banner-section_eyebrow: get-map($c, 'y300'),
|
|
@@ -19,12 +22,18 @@ $banners: (
|
|
|
19
22
|
banner-section_light_title: get-map($c, 'n900'),
|
|
20
23
|
custom-content-banner: get-map($c, 'n900'),
|
|
21
24
|
custom-content-banner_bg: get-map($c, 'n50'),
|
|
22
|
-
custom-content-banner_overlay:
|
|
23
|
-
|
|
25
|
+
custom-content-banner_overlay: linear-gradient(
|
|
26
|
+
90deg,
|
|
27
|
+
#{get-map($c, 'n50')} 50%,
|
|
28
|
+
rgb(240 245 255 / 0%) 100%
|
|
29
|
+
),
|
|
24
30
|
custom-content-banner_dark: get-map($c, 'white'),
|
|
25
31
|
custom-content-banner_dark_bg: get-map($c, 'b900'),
|
|
26
|
-
custom-content-banner_dark_overlay:
|
|
27
|
-
|
|
32
|
+
custom-content-banner_dark_overlay: linear-gradient(
|
|
33
|
+
273deg,
|
|
34
|
+
rgb(126 115 182 / 0%) 5.36%,
|
|
35
|
+
#{get-map($c, 'b900')} 47.32%
|
|
36
|
+
),
|
|
28
37
|
marketing-block_title: get-map($c, 'n900'),
|
|
29
38
|
marketing-block_tertiary_title: get-map($c, 'white'),
|
|
30
39
|
marketing-block_text: get-map($c, 'n700'),
|
|
@@ -95,8 +95,11 @@ $base: (
|
|
|
95
95
|
table_th: get-map($c, 'white'),
|
|
96
96
|
table_th_bg: get-map($c, 'n600'),
|
|
97
97
|
overlay: rgb(21 25 33 / 25%),
|
|
98
|
-
list_checkmarks_bg:
|
|
99
|
-
|
|
98
|
+
list_checkmarks_bg: linear-gradient(
|
|
99
|
+
140deg,
|
|
100
|
+
rgb(107 62 205 / 100%),
|
|
101
|
+
rgb(0 179 191 / 100%)
|
|
102
|
+
),
|
|
100
103
|
mention_deleted-user: get-map($c, 'n600'),
|
|
101
104
|
mention_deleted-user_bg: get-map($c, 'n50'),
|
|
102
105
|
multiple-inputs_close: get-map($c, 'n200'),
|
|
@@ -21,7 +21,7 @@ $discussion: (
|
|
|
21
21
|
discussion-pin_bg: get-map($c, 'n700'),
|
|
22
22
|
discussion-post_bg: get-map($c, 'white'),
|
|
23
23
|
discussion-post-pinned_bg: get-map($c, 'n50'),
|
|
24
|
-
discussion-post-pinned_gradient:
|
|
24
|
+
discussion-post-pinned_gradient: rgb(240 245 255 / 0%),
|
|
25
25
|
discussion-post-border: get-map($c, 'n100'),
|
|
26
26
|
discussion-post-hover-shadow: rgb(42 49 65 / 10%),
|
|
27
27
|
discussion-question_bg: get-map($c, 'sand'),
|
|
@@ -8,7 +8,7 @@ $general: (
|
|
|
8
8
|
image_container_bg_empty: get-map($c, 'white'),
|
|
9
9
|
popover_border: get-map($c, 'n100'),
|
|
10
10
|
popover_bg: get-map($c, 'white'),
|
|
11
|
-
popover_shadow:
|
|
11
|
+
popover_shadow: rgb(0 0 0 / 10%),
|
|
12
12
|
return_to_nav_box_shadow: get-map($c, 'black'),
|
|
13
13
|
return_to_nav_bg_focus_active: get-map($c, 'white'),
|
|
14
14
|
return_to_nav_bg_before_after: get-map($c, 'b700'),
|
|
@@ -15,8 +15,11 @@ $layout: (
|
|
|
15
15
|
download-section_bg: get-map($c, 'black'),
|
|
16
16
|
footer: get-map($c, 'white'),
|
|
17
17
|
footer_bg: get-map($c, 'black'),
|
|
18
|
-
footer_before_bg:
|
|
19
|
-
|
|
18
|
+
footer_before_bg: linear-gradient(
|
|
19
|
+
90deg,
|
|
20
|
+
get-map($c, 'b700') 0%,
|
|
21
|
+
get-map($c, 'g300') 100%
|
|
22
|
+
),
|
|
20
23
|
footer_title: #c4b5fd,
|
|
21
24
|
footer_link: get-map($c, 'white'),
|
|
22
25
|
footer_dt: get-map($c, 'white'),
|
|
@@ -5,8 +5,12 @@ $c: $default-colors;
|
|
|
5
5
|
$loaders: (
|
|
6
6
|
loading-block_icon_bg: get-map($c, 'n600'),
|
|
7
7
|
loading-placeholder_bg: get-map($c, 'n10'),
|
|
8
|
-
loading-placeholder_after_bg:
|
|
9
|
-
|
|
8
|
+
loading-placeholder_after_bg: linear-gradient(
|
|
9
|
+
90deg,
|
|
10
|
+
transparent,
|
|
11
|
+
rgb(255 255 255 / 20%),
|
|
12
|
+
transparent
|
|
13
|
+
),
|
|
10
14
|
progress-bar_bg: get-map($c, 'n50'),
|
|
11
15
|
progress-bar_before_bg: get-map($c, 'n200'),
|
|
12
16
|
progress-bar_25_bg_1: get-map($c, 'p100'),
|
|
@@ -33,7 +33,7 @@ $navigation: (
|
|
|
33
33
|
more-menu: get-map($c, 'n700'),
|
|
34
34
|
more-menu_hover_button_bg: get-map($c, 'b100'),
|
|
35
35
|
more-menu_menu_bg: get-map($c, 'white'),
|
|
36
|
-
more-menu_menu_shadow:
|
|
36
|
+
more-menu_menu_shadow: rgb(0 0 0 / 10%),
|
|
37
37
|
navigation-menu: get-map($c, 'n700'),
|
|
38
38
|
navigation-menu_active: get-map($c, 'b700'),
|
|
39
39
|
navigation-menu_bg: get-map($c, 'white'),
|
|
@@ -18,16 +18,21 @@ $text: (
|
|
|
18
18
|
helper-text-box_warning_bg: get-map($c, 'warning50'),
|
|
19
19
|
helper-text-box_error_bg: get-map($c, 'error50'),
|
|
20
20
|
helper-text-box_success_bg: get-map($c, 'success50'),
|
|
21
|
-
hide-show-text-box_gradient:
|
|
22
|
-
|
|
21
|
+
hide-show-text-box_gradient: linear-gradient(
|
|
22
|
+
rgb(255 255 255 / 0%),
|
|
23
|
+
rgb(255 255 255 / 100%)
|
|
24
|
+
),
|
|
23
25
|
highlighted-text-box_bg: get-map($c, 'n50'),
|
|
24
26
|
highlighted-text-box_secondary_bg: get-map($c, 'y50'),
|
|
25
27
|
highlighted-text-box_tertiary_bg: get-map($c, 'error50'),
|
|
26
28
|
highlighted-text-box_quaternary_bg: get-map($c, 'g50'),
|
|
27
29
|
highlighted-text-box_subtle_bg: get-map($c, 'white'),
|
|
28
30
|
highlighted-text-box_subtle-alt_dark_bg: get-map($c, 'n50'),
|
|
29
|
-
highlighted-text-box_bold_bg:
|
|
30
|
-
|
|
31
|
+
highlighted-text-box_bold_bg: linear-gradient(
|
|
32
|
+
135deg,
|
|
33
|
+
get-map($c, 'b100'),
|
|
34
|
+
get-map($c, 'g50')
|
|
35
|
+
),
|
|
31
36
|
highlighted-text-box_bold_icon: get-map($c, 'b500'),
|
|
32
37
|
highlighted-text-box_subtle_border: get-map($c, 'n100'),
|
|
33
38
|
highlighted-text-box_subtle-alt_border: get-map($c, 'n200'),
|
|
@@ -41,8 +46,11 @@ $text: (
|
|
|
41
46
|
icon-bulleted-list_muted: get-map($c, 'n700'),
|
|
42
47
|
icon-bulleted-list_border: get-map($c, 'n200'),
|
|
43
48
|
icon-bulleted-list_zebra_bg: get-map($c, 'n50'),
|
|
44
|
-
page-heading_bg:
|
|
45
|
-
|
|
49
|
+
page-heading_bg: linear-gradient(
|
|
50
|
+
180deg,
|
|
51
|
+
get-map($c, 'n50') 0%,
|
|
52
|
+
rgb(240 245 255 / 0%) 100%
|
|
53
|
+
),
|
|
46
54
|
page-heading_subtitle: get-map($c, 'n700'),
|
|
47
55
|
page-user_location_text: get-map($c, 'n600'),
|
|
48
56
|
pill: get-map($c, 'n900'),
|