@apolitical/component-library 8.7.25 → 9.0.0-beta.0
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/accessibility/visually-hidden/visually-hidden.d.ts +1 -1
- package/discussion/components/thread/thread.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/add-reply-form/add-reply-form.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/load-more-replies-button/load-more-replies-button.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +1 -1
- package/form/components/form/components/fields/input/input.d.ts +1 -1
- package/form/components/form/form.types.d.ts +2 -2
- package/form/components/rich-text-editor/hooks/use-positioned-element/use-positioned-element.d.ts +1 -1
- package/form/types/signup-form/signup-form.helpers.get-fields.d.ts +2 -7
- package/general/buttons/button-wrapper/button-wrapper.d.ts +1 -1
- package/general/link/link.d.ts +1 -1
- package/general/tooltip/tooltip.d.ts +2 -2
- package/helpers/intl.d.ts +1 -1
- package/helpers/pass-props-to-children.d.ts +1 -1
- package/hooks/use-auto-resize/use-auto-resize.d.ts +2 -2
- package/index.js +133 -138
- package/index.mjs +12669 -13010
- package/layout/page-layout/page-layout.d.ts +1 -1
- package/modals/components/modal/modal.d.ts +2 -2
- package/modals/components/overlay/overlay.d.ts +1 -1
- package/navigation/more-menu/more-menu.d.ts +2 -2
- package/navigation/tabs/tabs.d.ts +1 -1
- package/package.json +4 -4
- package/sections/edit-section/edit-section.d.ts +1 -1
- package/sections/full-width-section/full-width-section.d.ts +1 -1
- package/style.css +1 -1
- package/text/helper-text-box/helper-text-box.d.ts +1 -1
- package/text/highlighted-text-box/highlighted-text-box.d.ts +1 -1
- package/text/icon-bulleted-list/icon-bulleted-list.d.ts +1 -1
- package/text/markdown-text/components/div/div.d.ts +1 -1
- package/text/markdown-text/components/empty-component/empty-component.d.ts +1 -3
- package/text/markdown-text/components/link/link.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type JSX } from 'react';
|
|
2
2
|
export interface IModalProps {
|
|
3
3
|
/** The element that will render around the content */
|
|
4
4
|
element?: 'section' | 'div' | 'ul';
|
|
@@ -24,6 +24,6 @@ declare const Modal: ({ element, children, className, variant, additionalContent
|
|
|
24
24
|
/** Optional styling */
|
|
25
25
|
style?: React.CSSProperties | undefined;
|
|
26
26
|
className: string;
|
|
27
|
-
children: number | boolean | Iterable<React.ReactNode> | JSX.Element | null | undefined;
|
|
27
|
+
children: number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
28
28
|
}, Element>;
|
|
29
29
|
export default Modal;
|
|
@@ -30,8 +30,8 @@ export interface IMoreMenuProps {
|
|
|
30
30
|
locale?: string;
|
|
31
31
|
}
|
|
32
32
|
declare const MoreMenu: ({ element, id, options, className, }: IMoreMenuProps) => React.DetailedReactHTMLElement<{
|
|
33
|
-
ref: React.RefObject<
|
|
33
|
+
ref: React.RefObject<HTMLLIElement | HTMLParagraphElement | HTMLDivElement | null>;
|
|
34
34
|
className: string;
|
|
35
35
|
children: import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
},
|
|
36
|
+
}, HTMLLIElement | HTMLParagraphElement | HTMLDivElement>;
|
|
37
37
|
export default MoreMenu;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/component-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-beta.0",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"lodash.set": "4.3.2",
|
|
32
32
|
"markdown-to-jsx": "7.3.2",
|
|
33
33
|
"posthog-js": "1.161.5",
|
|
34
|
-
"react": "
|
|
34
|
+
"react": "19.1.1",
|
|
35
35
|
"react-cookie": "6.1.1",
|
|
36
|
-
"react-dom": "
|
|
36
|
+
"react-dom": "19.1.1",
|
|
37
37
|
"react-error-boundary": "4.0.11",
|
|
38
38
|
"react-google-recaptcha": "3.1.0",
|
|
39
|
-
"react-intl": "
|
|
39
|
+
"react-intl": "7.1.11",
|
|
40
40
|
"react-multi-email": "1.0.18",
|
|
41
41
|
"remark-parse": "11.0.0",
|
|
42
42
|
"rtl-detect": "1.1.2",
|