@abgov/react-components 4.18.0 → 4.18.2

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 (78) hide show
  1. package/common/styling.d.ts +12 -9
  2. package/index.d.ts +56 -59
  3. package/index.js +238 -0
  4. package/index.js.map +1 -0
  5. package/index.mjs +22707 -0
  6. package/index.mjs.map +1 -0
  7. package/lib/accordion/accordion.d.ts +28 -28
  8. package/lib/app-header/app-header.d.ts +21 -22
  9. package/lib/app-header-menu/app-header-menu.d.ts +20 -20
  10. package/lib/badge/badge.d.ts +40 -41
  11. package/lib/block/block.d.ts +23 -23
  12. package/lib/button/button.d.ts +38 -38
  13. package/lib/button-group/button-group.d.ts +23 -24
  14. package/lib/calendar/calendar.d.ts +24 -25
  15. package/lib/callout/callout.d.ts +25 -26
  16. package/lib/checkbox/checkbox.d.ts +37 -38
  17. package/lib/chip/chip.d.ts +28 -29
  18. package/lib/circular-progress/circular-progress.d.ts +28 -29
  19. package/lib/container/container.d.ts +29 -29
  20. package/lib/date-picker/date-picker.d.ts +24 -25
  21. package/lib/details/details.d.ts +21 -21
  22. package/lib/divider/divider.d.ts +13 -14
  23. package/lib/dropdown/dropdown-item.d.ts +23 -24
  24. package/lib/dropdown/dropdown.d.ts +49 -50
  25. package/lib/file-upload-card/file-upload-card.d.ts +26 -27
  26. package/lib/file-upload-input/file-upload-input.d.ts +22 -23
  27. package/lib/footer/footer.d.ts +19 -19
  28. package/lib/footer-meta-section/footer-meta-section.d.ts +14 -14
  29. package/lib/footer-nav-section/footer-nav-section.d.ts +20 -20
  30. package/lib/{form → form-item}/form-item.d.ts +30 -31
  31. package/lib/form-step/form-step.d.ts +19 -20
  32. package/lib/form-stepper/form-stepper.d.ts +22 -22
  33. package/lib/grid/grid.d.ts +20 -21
  34. package/lib/hero-banner/hero-banner-actions.d.ts +5 -6
  35. package/lib/hero-banner/hero-banner.d.ts +27 -28
  36. package/lib/icon/icon.d.ts +41 -42
  37. package/lib/icon-button/icon-button.d.ts +31 -32
  38. package/lib/input/input.d.ts +112 -113
  39. package/lib/microsite-header/microsite-header.d.ts +30 -31
  40. package/lib/modal/modal.d.ts +36 -36
  41. package/lib/notification/notification.d.ts +27 -28
  42. package/lib/one-column-layout/one-column-layout.d.ts +14 -14
  43. package/lib/page-block/page-block.d.ts +19 -18
  44. package/lib/pages/pages.d.ts +18 -18
  45. package/lib/pagination/pagination.d.ts +26 -27
  46. package/lib/popover/popover.d.ts +27 -27
  47. package/lib/radio-group/radio-group.d.ts +32 -33
  48. package/lib/radio-group/radio.d.ts +29 -30
  49. package/lib/side-menu/side-menu.d.ts +14 -14
  50. package/lib/side-menu-group/side-menu-group.d.ts +17 -17
  51. package/lib/side-menu-heading/side-menu-heading.d.ts +19 -19
  52. package/lib/skeleton/skeleton.d.ts +27 -28
  53. package/lib/spacer/spacer.d.ts +20 -21
  54. package/lib/spinner/spinner.d.ts +25 -26
  55. package/lib/tab/tab.d.ts +17 -18
  56. package/lib/table/table-sort-header.d.ts +19 -20
  57. package/lib/table/table.d.ts +27 -27
  58. package/lib/tabs/tabs.d.ts +16 -17
  59. package/lib/textarea/textarea.d.ts +41 -46
  60. package/lib/three-column-layout/three-column-layout.d.ts +26 -26
  61. package/lib/tooltip/tooltip.d.ts +25 -25
  62. package/lib/two-column-layout/two-column-layout.d.ts +22 -22
  63. package/package.json +14 -14
  64. package/README.md +0 -34
  65. package/experimental/index.d.ts +0 -0
  66. package/experimental/package.json +0 -11
  67. package/experimental/react-components.esm.js +0 -1
  68. package/experimental/react-components.umd.js +0 -8
  69. package/lib/card/card-actions.d.ts +0 -13
  70. package/lib/card/card-content.d.ts +0 -13
  71. package/lib/card/card-group.d.ts +0 -13
  72. package/lib/card/card-image.d.ts +0 -18
  73. package/lib/card/card.d.ts +0 -22
  74. package/lib/card/index.d.ts +0 -5
  75. package/lib/form/index.d.ts +0 -1
  76. package/lib/form/validators.d.ts +0 -10
  77. package/react-components.esm.js +0 -3427
  78. package/react-components.umd.js +0 -3486
@@ -1,9 +1,12 @@
1
- export declare type Spacing = "none" | "3xs" | "2xs" | "xs" | "s" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl";
2
- export interface Margins {
3
- mt?: Spacing;
4
- mr?: Spacing;
5
- mb?: Spacing;
6
- ml?: Spacing;
7
- }
8
- export declare type Direction = "row" | "column";
9
- export declare type Alignment = "center" | "start" | "end";
1
+ type NumericSpacing = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
2
+ type TShirtSpacing = "none" | "3xs" | "2xs" | "xs" | "s" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl";
3
+ export type Spacing = NumericSpacing | TShirtSpacing | null;
4
+ export interface Margins {
5
+ mt?: Spacing;
6
+ mr?: Spacing;
7
+ mb?: Spacing;
8
+ ml?: Spacing;
9
+ }
10
+ export type Direction = "row" | "column";
11
+ export type Alignment = "center" | "start" | "end";
12
+ export {};
package/index.d.ts CHANGED
@@ -1,59 +1,56 @@
1
- import "@abgov/web-components";
2
- export * from "./lib/date-picker/date-picker";
3
- export * from "./lib/calendar/calendar";
4
- export * from "./lib/side-menu-group/side-menu-group";
5
- export * from "./lib/side-menu-heading/side-menu-heading";
6
- export * from "./lib/side-menu/side-menu";
7
- export * from "./lib/app-header-menu/app-header-menu";
8
- export * from "./lib/pages/pages";
9
- export * from "./lib/file-upload-card/file-upload-card";
10
- export * from "./lib/file-upload-input/file-upload-input";
11
- export type { GoAIconType } from "./lib/icon/icon";
12
- export type { GoABadgeType } from "./lib/badge/badge";
13
- export type { GoAFormStepStatusType } from "./lib/form-step/form-step";
14
- export * from "./lib/accordion/accordion";
15
- export * from "./lib/form-step/form-step";
16
- export * from "./lib/form-stepper/form-stepper";
17
- export * from "./lib/app-header/app-header";
18
- export * from "./lib/badge/badge";
19
- export * from "./lib/block/block";
20
- export * from "./lib/button-group/button-group";
21
- export * from "./lib/button/button";
22
- export * from "./lib/callout/callout";
23
- export * from "./lib/checkbox/checkbox";
24
- export * from "./lib/chip/chip";
25
- export * from "./lib/circular-progress/circular-progress";
26
- export * from "./lib/container/container";
27
- export * from "./lib/details/details";
28
- export * from "./lib/divider/divider";
29
- export * from "./lib/dropdown/dropdown";
30
- export * from "./lib/dropdown/dropdown-item";
31
- export * from "./lib/footer-meta-section/footer-meta-section";
32
- export * from "./lib/footer-nav-section/footer-nav-section";
33
- export * from "./lib/footer/footer";
34
- export * from "./lib/form";
35
- export * from "./lib/grid/grid";
36
- export * from "./lib/hero-banner/hero-banner";
37
- export * from "./lib/hero-banner/hero-banner-actions";
38
- export * from "./lib/icon-button/icon-button";
39
- export * from "./lib/icon/icon";
40
- export * from "./lib/input/input";
41
- export * from "./lib/microsite-header/microsite-header";
42
- export * from "./lib/modal/modal";
43
- export * from "./lib/notification/notification";
44
- export * from "./lib/one-column-layout/one-column-layout";
45
- export * from "./lib/page-block/page-block";
46
- export * from "./lib/radio-group/radio-group";
47
- export * from "./lib/pagination/pagination";
48
- export * from "./lib/popover/popover";
49
- export * from "./lib/skeleton/skeleton";
50
- export * from "./lib/spacer/spacer";
51
- export * from "./lib/spinner/spinner";
52
- export * from "./lib/table/table";
53
- export * from "./lib/table/table-sort-header";
54
- export * from "./lib/textarea/textarea";
55
- export * from "./lib/tooltip/tooltip";
56
- export * from "./lib/two-column-layout/two-column-layout";
57
- export * from "./lib/three-column-layout/three-column-layout";
58
- export * from "./lib/tabs/tabs";
59
- export * from "./lib/tab/tab";
1
+ export * from "./lib/accordion/accordion";
2
+ export * from "./lib/app-header/app-header";
3
+ export * from "./lib/app-header-menu/app-header-menu";
4
+ export * from "./lib/badge/badge";
5
+ export * from "./lib/block/block";
6
+ export * from "./lib/button/button";
7
+ export * from "./lib/button-group/button-group";
8
+ export * from "./lib/calendar/calendar";
9
+ export * from "./lib/callout/callout";
10
+ export * from "./lib/checkbox/checkbox";
11
+ export * from "./lib/chip/chip";
12
+ export * from "./lib/circular-progress/circular-progress";
13
+ export * from "./lib/container/container";
14
+ export * from "./lib/date-picker/date-picker";
15
+ export * from "./lib/details/details";
16
+ export * from "./lib/divider/divider";
17
+ export * from "./lib/dropdown/dropdown";
18
+ export * from "./lib/dropdown/dropdown-item";
19
+ export * from "./lib/file-upload-card/file-upload-card";
20
+ export * from "./lib/file-upload-input/file-upload-input";
21
+ export * from "./lib/footer/footer";
22
+ export * from "./lib/footer-meta-section/footer-meta-section";
23
+ export * from "./lib/footer-nav-section/footer-nav-section";
24
+ export * from "./lib/form-item/form-item";
25
+ export * from "./lib/form-step/form-step";
26
+ export * from "./lib/form-stepper/form-stepper";
27
+ export * from "./lib/grid/grid";
28
+ export * from "./lib/hero-banner/hero-banner";
29
+ export * from "./lib/hero-banner/hero-banner-actions";
30
+ export * from "./lib/icon-button/icon-button";
31
+ export * from "./lib/icon/icon";
32
+ export * from "./lib/input/input";
33
+ export * from "./lib/microsite-header/microsite-header";
34
+ export * from "./lib/modal/modal";
35
+ export * from "./lib/notification/notification";
36
+ export * from "./lib/one-column-layout/one-column-layout";
37
+ export * from "./lib/page-block/page-block";
38
+ export * from "./lib/pages/pages";
39
+ export * from "./lib/pagination/pagination";
40
+ export * from "./lib/popover/popover";
41
+ export * from "./lib/radio-group/radio-group";
42
+ export * from "./lib/side-menu-group/side-menu-group";
43
+ export * from "./lib/side-menu-heading/side-menu-heading";
44
+ export * from "./lib/side-menu/side-menu";
45
+ export * from "./lib/skeleton/skeleton";
46
+ export * from "./lib/spacer/spacer";
47
+ export * from "./lib/spinner/spinner";
48
+ export * from "./lib/table/table";
49
+ export * from "./lib/table/table-sort-header";
50
+ export * from "./lib/tabs/tabs";
51
+ export * from "./lib/tab/tab";
52
+ export * from "./lib/textarea/textarea";
53
+ export * from "./lib/three-column-layout/three-column-layout";
54
+ export * from "./lib/tooltip/tooltip";
55
+ export * from "./lib/two-column-layout/two-column-layout";
56
+ export * from "./common/styling";