@apolitical/component-library 9.0.0-pla.3 → 9.0.1

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 (60) hide show
  1. package/accessibility/visually-hidden/visually-hidden.d.ts +1 -1
  2. package/discussion/components/add-post/add-post.d.ts +2 -0
  3. package/discussion/components/post/post.d.ts +2 -1
  4. package/discussion/components/thread/thread.d.ts +1 -1
  5. package/discussion/discussion.helpers.d.ts +1 -1
  6. package/discussion/feeds/replies-feed/components/add-reply-form/add-reply-form.d.ts +1 -1
  7. package/discussion/feeds/replies-feed/components/load-more-replies-button/load-more-replies-button.d.ts +1 -1
  8. package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +1 -1
  9. package/form/components/form/components/fields/input/input.d.ts +1 -1
  10. package/form/components/form/form.types.d.ts +2 -2
  11. package/form/components/rich-text-editor/helpers/transform/transform.d.ts +1 -1
  12. package/form/components/rich-text-editor/hooks/use-positioned-element/use-positioned-element.d.ts +1 -1
  13. package/form/types/signup-form/signup-form.helpers.get-fields.d.ts +7 -2
  14. package/general/buttons/button-wrapper/button-wrapper.d.ts +1 -1
  15. package/general/link/link.d.ts +1 -1
  16. package/general/tooltip/tooltip.d.ts +2 -2
  17. package/helpers/intl.d.ts +2 -1
  18. package/helpers/pass-props-to-children.d.ts +1 -1
  19. package/hooks/use-auto-resize/use-auto-resize.d.ts +2 -2
  20. package/index.js +174 -152
  21. package/index.mjs +16022 -15568
  22. package/layout/page-layout/page-layout.d.ts +1 -1
  23. package/modals/components/modal/modal.d.ts +2 -2
  24. package/modals/components/overlay/overlay.d.ts +1 -1
  25. package/navigation/more-menu/more-menu.d.ts +2 -2
  26. package/navigation/tabs/tabs.d.ts +1 -1
  27. package/package.json +6 -6
  28. package/sections/edit-section/edit-section.d.ts +1 -1
  29. package/sections/full-width-section/full-width-section.d.ts +1 -1
  30. package/style.css +1 -1
  31. package/styles/base/_accessibility.scss +34 -32
  32. package/styles/base/_blockquotes.scss +50 -48
  33. package/styles/base/_fonts.scss +9 -7
  34. package/styles/base/_hr.scss +9 -7
  35. package/styles/base/_layout.scss +24 -22
  36. package/styles/base/_links.scss +18 -14
  37. package/styles/base/_lists.scss +40 -38
  38. package/styles/base/_mentions.scss +11 -9
  39. package/styles/base/_overlays.scss +51 -49
  40. package/styles/base/_svg.scss +4 -2
  41. package/styles/base/_table.scss +58 -56
  42. package/styles/base/_text.scss +110 -108
  43. package/styles/base/_titles.scss +56 -42
  44. package/styles/base/buttons/_button-wrapper.scss +27 -25
  45. package/styles/base/buttons/_buttons.scss +316 -314
  46. package/styles/base/form/_checkbox.scss +18 -16
  47. package/styles/base/form/_fields.scss +57 -55
  48. package/styles/base/form/_form.scss +18 -16
  49. package/styles/base/form/_labels.scss +8 -6
  50. package/styles/base/form/_radio.scss +6 -4
  51. package/styles/base/form/_search-button.scss +21 -19
  52. package/styles/index.scss +1 -1
  53. package/styles/reset/_reset.scss +117 -121
  54. package/styles/uclasses/uclasses.scss +1452 -1450
  55. package/text/helper-text-box/helper-text-box.d.ts +1 -1
  56. package/text/highlighted-text-box/highlighted-text-box.d.ts +1 -1
  57. package/text/icon-bulleted-list/icon-bulleted-list.d.ts +1 -1
  58. package/text/markdown-text/components/div/div.d.ts +1 -1
  59. package/text/markdown-text/components/empty-component/empty-component.d.ts +3 -1
  60. package/text/markdown-text/components/link/link.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import React, { type JSX } from 'react';
1
+ import React 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, { type JSX } from 'react';
1
+ import React 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 | 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;
27
+ children: number | boolean | Iterable<React.ReactNode> | JSX.Element | null | undefined;
28
28
  }, Element>;
29
29
  export default Modal;
@@ -1,4 +1,4 @@
1
- import { type JSX } from 'react';
1
+ /// <reference types="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<HTMLLIElement | HTMLParagraphElement | HTMLDivElement | null>;
33
+ ref: React.RefObject<HTMLDivElement | HTMLParagraphElement | HTMLLIElement>;
34
34
  className: string;
35
35
  children: import("react/jsx-runtime").JSX.Element;
36
- }, HTMLLIElement | HTMLParagraphElement | HTMLDivElement>;
36
+ }, HTMLDivElement | HTMLParagraphElement | HTMLLIElement>;
37
37
  export default MoreMenu;
@@ -1,4 +1,4 @@
1
- import React, { type JSX } from 'react';
1
+ import React 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.0.0-pla.3",
3
+ "version": "9.0.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -13,7 +13,7 @@
13
13
  "devDependencies": {
14
14
  "@types/rtl-detect": "1.0.3",
15
15
  "getstream": "8.4.1",
16
- "yargs": "17.7.2"
16
+ "yargs": "^17.7.2"
17
17
  },
18
18
  "dependencies": {
19
19
  "@apolitical/contracts": "4.4.0",
@@ -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": "11.0.4",
25
+ "focus-trap-react": "10.2.3",
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": "19.2.3",
34
+ "react": "18.2.0",
35
35
  "react-cookie": "6.1.1",
36
- "react-dom": "19.2.3",
36
+ "react-dom": "18.2.0",
37
37
  "react-error-boundary": "4.0.11",
38
38
  "react-google-recaptcha": "3.1.0",
39
- "react-intl": "7.1.14",
39
+ "react-intl": "6.5.5",
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, { type JSX } from 'react';
1
+ import React 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, { type JSX } from 'react';
1
+ import React from 'react';
2
2
  interface Props {
3
3
  /** Optional styling for the section */
4
4
  styling?: {