@apolitical/component-library 2.1.1 → 2.1.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.
- package/banners/banner/banner.d.ts +11 -0
- package/banners/banner/index.d.ts +1 -0
- package/banners/banner-section/banner-section.d.ts +1 -1
- package/banners/index.d.ts +1 -0
- package/banners/marketing-block/index.d.ts +1 -1
- package/form/components/index.d.ts +1 -0
- package/form/components/toggle/index.d.ts +1 -0
- package/form/components/toggle/toggle.d.ts +26 -0
- package/index.js +26 -20
- package/index.mjs +6817 -5656
- package/layout/content-layout/columns/columns.d.ts +1 -1
- package/package.json +3 -1
- package/sections/full-width-section/full-width-section.d.ts +6 -1
- package/style.css +1 -1
- package/styles/base/_layout.scss +4 -0
- package/styles/base/_table.scss +2 -0
- package/styles/base/_text.scss +1 -1
- package/styles/base/_titles.scss +10 -0
- package/styles/functions/_maps.scss +18 -2
- package/styles/variables/colors/theme/_banners.scss +3 -0
- package/styles/variables/colors/theme/_form.scss +3 -0
- package/styles/variables/colors/theme/_index.scss +2 -2
- package/styles/variables/colors/theme/_pages.scss +2 -0
- package/styles/variables/colors/theme/_sections.scss +7 -0
- package/styles/variables/colors/theme/_user.scss +1 -0
- package/testing/__mocks__/tabbable.d.ts +2 -0
- package/user/directory/directory.d.ts +18 -0
- package/user/directory/index.d.ts +1 -0
- package/user/index.d.ts +1 -0
|
@@ -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 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/component-library",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
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;
|