@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.
Files changed (32) hide show
  1. package/accessibility/visually-hidden/visually-hidden.d.ts +1 -1
  2. package/discussion/components/thread/thread.d.ts +1 -1
  3. package/discussion/feeds/replies-feed/components/add-reply-form/add-reply-form.d.ts +1 -1
  4. package/discussion/feeds/replies-feed/components/load-more-replies-button/load-more-replies-button.d.ts +1 -1
  5. package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +1 -1
  6. package/form/components/form/components/fields/input/input.d.ts +1 -1
  7. package/form/components/form/form.types.d.ts +2 -2
  8. package/form/components/rich-text-editor/hooks/use-positioned-element/use-positioned-element.d.ts +1 -1
  9. package/form/types/signup-form/signup-form.helpers.get-fields.d.ts +2 -7
  10. package/general/buttons/button-wrapper/button-wrapper.d.ts +1 -1
  11. package/general/link/link.d.ts +1 -1
  12. package/general/tooltip/tooltip.d.ts +2 -2
  13. package/helpers/intl.d.ts +1 -1
  14. package/helpers/pass-props-to-children.d.ts +1 -1
  15. package/hooks/use-auto-resize/use-auto-resize.d.ts +2 -2
  16. package/index.js +133 -138
  17. package/index.mjs +12669 -13010
  18. package/layout/page-layout/page-layout.d.ts +1 -1
  19. package/modals/components/modal/modal.d.ts +2 -2
  20. package/modals/components/overlay/overlay.d.ts +1 -1
  21. package/navigation/more-menu/more-menu.d.ts +2 -2
  22. package/navigation/tabs/tabs.d.ts +1 -1
  23. package/package.json +4 -4
  24. package/sections/edit-section/edit-section.d.ts +1 -1
  25. package/sections/full-width-section/full-width-section.d.ts +1 -1
  26. package/style.css +1 -1
  27. package/text/helper-text-box/helper-text-box.d.ts +1 -1
  28. package/text/highlighted-text-box/highlighted-text-box.d.ts +1 -1
  29. package/text/icon-bulleted-list/icon-bulleted-list.d.ts +1 -1
  30. package/text/markdown-text/components/div/div.d.ts +1 -1
  31. package/text/markdown-text/components/empty-component/empty-component.d.ts +1 -3
  32. 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
  interface Props {
3
3
  /** Content to show on the page. This is rendered inside `#content` */
4
4
  children: React.ReactNode | JSX.Element | React.ReactPortal;
@@ -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;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { type JSX } from 'react';
2
2
  import { ButtonPropsType } from '../../../general';
3
3
  export interface IOverlayProps {
4
4
  /** ID of the overlay */
@@ -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<HTMLDivElement | HTMLParagraphElement | HTMLLIElement>;
33
+ ref: React.RefObject<HTMLLIElement | HTMLParagraphElement | HTMLDivElement | null>;
34
34
  className: string;
35
35
  children: import("react/jsx-runtime").JSX.Element;
36
- }, HTMLDivElement | HTMLParagraphElement | HTMLLIElement>;
36
+ }, HTMLLIElement | HTMLParagraphElement | HTMLDivElement>;
37
37
  export default MoreMenu;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type JSX } from 'react';
2
2
  export interface ITabBreakPoint {
3
3
  target: 'min-width' | 'max-width';
4
4
  value: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.7.25",
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": "18.2.0",
34
+ "react": "19.1.1",
35
35
  "react-cookie": "6.1.1",
36
- "react-dom": "18.2.0",
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": "6.5.5",
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",
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type JSX } from 'react';
2
2
  import { IFormProps } from '../../form/components/form/form.types';
3
3
  type THref = string | undefined;
4
4
  interface IPlaceholder {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type JSX } from 'react';
2
2
  interface Props {
3
3
  /** Optional styling for the section */
4
4
  styling?: {