@apolitical/component-library 2.1.2-ac.1 → 2.1.3

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 (34) hide show
  1. package/banners/banner/banner.d.ts +11 -0
  2. package/banners/banner/index.d.ts +1 -0
  3. package/banners/banner-section/banner-section.d.ts +1 -1
  4. package/banners/index.d.ts +1 -0
  5. package/banners/marketing-block/index.d.ts +1 -1
  6. package/cards/cards.types.d.ts +0 -2
  7. package/form/components/index.d.ts +1 -0
  8. package/form/components/toggle/index.d.ts +1 -0
  9. package/form/components/toggle/toggle.d.ts +26 -0
  10. package/general/index.d.ts +0 -1
  11. package/index.js +26 -20
  12. package/index.mjs +6625 -5515
  13. package/layout/content-layout/columns/columns.d.ts +1 -1
  14. package/layout/page-layout/page-layout.d.ts +0 -2
  15. package/package.json +3 -1
  16. package/sections/full-width-section/full-width-section.d.ts +6 -1
  17. package/style.css +1 -1
  18. package/styles/base/_layout.scss +4 -0
  19. package/styles/base/_table.scss +2 -0
  20. package/styles/base/_text.scss +1 -1
  21. package/styles/base/_titles.scss +10 -0
  22. package/styles/functions/_maps.scss +18 -2
  23. package/styles/variables/colors/theme/_banners.scss +3 -0
  24. package/styles/variables/colors/theme/_form.scss +3 -0
  25. package/styles/variables/colors/theme/_index.scss +2 -2
  26. package/styles/variables/colors/theme/_pages.scss +2 -0
  27. package/styles/variables/colors/theme/_sections.scss +7 -0
  28. package/styles/variables/colors/theme/_user.scss +1 -0
  29. package/testing/__mocks__/tabbable.d.ts +2 -0
  30. package/user/directory/directory.d.ts +18 -0
  31. package/user/directory/index.d.ts +1 -0
  32. package/user/index.d.ts +1 -0
  33. package/general/navigation-dots/index.d.ts +0 -1
  34. package/general/navigation-dots/navigation-dots.d.ts +0 -9
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  /** The layout for the columns */
4
- layout?: '2-1' | '1-3';
4
+ layout?: '2-1' | '1-3' | '1-1';
5
5
  /** If the columns should be hidden until they'd show in a row */
6
6
  hideOnMobile?: false | number;
7
7
  /** Additional classes */
@@ -19,8 +19,6 @@ interface Props {
19
19
  variant?: 'default' | 'inverted' | 'alt-1' | 'alt-2';
20
20
  /** The size of the circle on the `bold` background */
21
21
  circle?: 'default' | 'small';
22
- /** The size of the white modal */
23
- modal?: 'default' | 'large';
24
22
  };
25
23
  /** Optionally hide the header navigation and the footer, for pages where we need to focus the user's attention, like onboarding */
26
24
  forceShow?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "2.1.2-ac.1",
3
+ "version": "2.1.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -14,6 +14,7 @@
14
14
  "@tanstack/query-core": "5.8.3",
15
15
  "@tanstack/react-query": "5.8.3",
16
16
  "@tanstack/react-query-devtools": "5.8.3",
17
+ "classnames": "2.3.2",
17
18
  "lodash.clonedeep": "4.5.0",
18
19
  "lodash.get": "4.4.2",
19
20
  "lodash.isequal": "4.5.0",
@@ -28,6 +29,7 @@
28
29
  "react-intl": "6.5.5",
29
30
  "react-multi-email": "1.0.18",
30
31
  "react-textarea-autosize": "8.5.3",
32
+ "focus-trap-react": "10.2.3",
31
33
  "sass": "1.69.5",
32
34
  "truncate": "3.0.0",
33
35
  "tslib": "2.6.2"
@@ -1,10 +1,15 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
+ /** Optional styling for the section */
4
+ styling?: {
5
+ /** The background of the section. Defaults to `default` */
6
+ background?: 'default' | 'light';
7
+ };
3
8
  /** Additional classes */
4
9
  className?: string;
5
10
  children: React.ReactNode | JSX.Element;
6
11
  /** Optional ID */
7
12
  id?: string;
8
13
  }
9
- declare const FullWidthSection: ({ children, className, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ declare const FullWidthSection: ({ children, className, styling, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
10
15
  export default FullWidthSection;