@apolitical/component-library 8.7.0 → 8.7.1-RR.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.
@@ -1 +1,2 @@
1
1
  export { default as Toggle } from './toggle';
2
+ export type { IToggleProps } from './toggle';
@@ -1,4 +1,4 @@
1
- interface Props {
1
+ export interface IToggleProps {
2
2
  /** The ID of the toggle */
3
3
  id?: string;
4
4
  /** The label to show next to the toggle */
@@ -22,5 +22,5 @@ interface Props {
22
22
  /** Additional class names */
23
23
  className?: string;
24
24
  }
25
- declare const Toggle: ({ id, label, options, initialValue, functions: { onChange }, isDisabled, className, }: Props) => import("react/jsx-runtime").JSX.Element;
25
+ declare const Toggle: ({ id, label, options, initialValue, functions: { onChange }, isDisabled, className, }: IToggleProps) => import("react/jsx-runtime").JSX.Element;
26
26
  export default Toggle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.7.0",
3
+ "version": "8.7.1-RR.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -58,6 +58,10 @@ $font-size-md: 1rem;
58
58
  color: get-map($default-colors, 'b700');
59
59
  }
60
60
 
61
+ .u-secondary-text {
62
+ color: get-map($default-colors, 'b700');
63
+ }
64
+
61
65
  // Background
62
66
  .u-bg-n50 {
63
67
  background-color: get-map($default-colors, 'n50');
@@ -404,11 +408,36 @@ $font-size-md: 1rem;
404
408
  }
405
409
 
406
410
  // padding
411
+ .u-py-auto {
412
+ padding-top: auto;
413
+ padding-bottom: auto;
414
+ }
415
+
407
416
  .u-py-0 {
408
417
  padding-top: 0;
409
418
  padding-bottom: 0;
410
419
  }
411
420
 
421
+ .u-py-1 {
422
+ padding-top: 0.25rem; /* 4px */
423
+ padding-bottom: 0.25rem; /* 4px */
424
+ }
425
+
426
+ .u-py-2 {
427
+ padding-top: 0.5rem; /* 8px */
428
+ padding-bottom: 0.5rem; /* 8px */
429
+ }
430
+
431
+ .u-py-3 {
432
+ padding-top: 0.75rem; /* 12px */
433
+ padding-bottom: 0.75rem; /* 12px */
434
+ }
435
+
436
+ .u-py-4 {
437
+ padding-top: 1rem; /* 16px */
438
+ padding-bottom: 1rem; /* 16px */
439
+ }
440
+
412
441
  .u-py-10 {
413
442
  padding-top: 2.5rem; /* 40px */
414
443
  padding-bottom: 2.5rem; /* 40px */
@@ -419,10 +448,34 @@ $font-size-md: 1rem;
419
448
  padding-right: 0;
420
449
  }
421
450
 
451
+ .u-px-1 {
452
+ padding-left: 0.25rem; /* 4px */
453
+ padding-right: 0.25rem; /* 4px */
454
+ }
455
+
456
+ .u-px-2 {
457
+ padding-left: 0.5rem; /* 8px */
458
+ padding-right: 0.5rem; /* 8px */
459
+ }
460
+
461
+ .u-px-3 {
462
+ padding-left: 0.75rem; /* 12px */
463
+ padding-right: 0.75rem; /* 12px */
464
+ }
465
+
466
+ .u-px-4 {
467
+ padding-left: 1rem; /* 16px */
468
+ padding-right: 1rem; /* 16px */
469
+ }
470
+
422
471
  .u-pt-0 {
423
472
  padding-top: 0;
424
473
  }
425
474
 
475
+ .u-pt-12 {
476
+ padding-top: 3rem; /* 48px */
477
+ }
478
+
426
479
  .u-pr-0 {
427
480
  padding-right: 0;
428
481
  }
@@ -431,6 +484,10 @@ $font-size-md: 1rem;
431
484
  padding-bottom: 0;
432
485
  }
433
486
 
487
+ .u-pb-8 {
488
+ padding-bottom: 2rem; /* 32px */
489
+ }
490
+
434
491
  .u-pl-0 {
435
492
  padding-left: 0;
436
493
  }