@apolitical/component-library 9.1.0 → 10.0.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 (28) 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 +3 -3
  7. package/form/components/form/form.types.d.ts +1 -1
  8. package/form/components/rich-text-editor/helpers/transform/transform.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 +1 -1
  13. package/helpers/intl.d.ts +1 -1
  14. package/helpers/pass-props-to-children.d.ts +1 -1
  15. package/index.js +160 -163
  16. package/index.mjs +15500 -15536
  17. package/layout/content-layout/columns/columns.d.ts +1 -1
  18. package/layout/page-layout/page-layout.d.ts +1 -1
  19. package/modals/components/modal/modal.d.ts +1 -1
  20. package/modals/components/overlay/overlay.d.ts +1 -1
  21. package/navigation/tabs/tabs.d.ts +1 -1
  22. package/package.json +5 -5
  23. package/sections/edit-section/edit-section.d.ts +1 -1
  24. package/sections/full-width-section/full-width-section.d.ts +1 -1
  25. package/style.css +1 -1
  26. package/text/helper-text-box/helper-text-box.d.ts +1 -1
  27. package/text/highlighted-text-box/highlighted-text-box.d.ts +1 -1
  28. package/text/icon-bulleted-list/icon-bulleted-list.d.ts +1 -1
@@ -9,7 +9,7 @@ export interface IColumnsProps {
9
9
  /** Additional classes */
10
10
  className?: string;
11
11
  /** The content to be rendered */
12
- children: React.ReactElement;
12
+ children: React.ReactNode;
13
13
  }
14
14
  declare const Columns: ({ layout, hideOnMobile, hasCSSContainers, className, children, }: IColumnsProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default Columns;
@@ -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';
@@ -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 */
@@ -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": "9.1.0",
3
+ "version": "10.0.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -22,7 +22,7 @@
22
22
  "@tanstack/react-query": "5.8.3",
23
23
  "@tanstack/react-query-devtools": "5.8.3",
24
24
  "classnames": "2.3.2",
25
- "focus-trap-react": "10.2.3",
25
+ "focus-trap-react": "12.0.0",
26
26
  "is-hotkey": "0.2.0",
27
27
  "is-url": "1.2.4",
28
28
  "lodash.clonedeep": "4.5.0",
@@ -31,12 +31,12 @@
31
31
  "lodash.set": "4.3.2",
32
32
  "markdown-to-jsx": "7.3.2",
33
33
  "posthog-js": "1.264.2",
34
- "react": "18.2.0",
34
+ "react": "19.2.4",
35
35
  "react-cookie": "6.1.1",
36
- "react-dom": "18.2.0",
36
+ "react-dom": "19.2.4",
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": "8.1.1",
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?: {