@apolitical/component-library 4.8.7-jc.6 → 4.8.8

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 (31) hide show
  1. package/cards/card-block/card-block.d.ts +2 -2
  2. package/cards/card-block/index.d.ts +1 -0
  3. package/discussion/sections/activity-section/activity-section.d.ts +2 -2
  4. package/discussion/sections/activity-section/index.d.ts +1 -0
  5. package/form/components/form/index.d.ts +1 -1
  6. package/form/types/profile-form/profile-form.d.ts +3 -3
  7. package/general/buttons/button/button.d.ts +0 -1
  8. package/index.js +2 -2
  9. package/index.mjs +6 -11
  10. package/layout/content-layout/columns/columns.d.ts +2 -2
  11. package/layout/content-layout/columns/index.d.ts +1 -0
  12. package/navigation/load-more/index.d.ts +1 -1
  13. package/navigation/load-more/load-more.d.ts +3 -3
  14. package/navigation/tabs/index.d.ts +1 -0
  15. package/navigation/tabs/tabs.d.ts +6 -6
  16. package/package.json +1 -1
  17. package/sections/edit-section/edit-section.d.ts +2 -2
  18. package/sections/edit-section/index.d.ts +1 -0
  19. package/sections/full-width-section/full-width-section.d.ts +0 -2
  20. package/style.css +1 -1
  21. package/styles/variables/colors/_colors.scss +0 -2
  22. package/styles/variables/colors/theme/_base.scss +1 -1
  23. package/styles/variables/colors/theme/_layout.scss +1 -1
  24. package/text/empty-state-box/empty-state-box.d.ts +2 -2
  25. package/text/empty-state-box/index.d.ts +1 -0
  26. package/text/hide-show-text-box/hide-show-text-box.d.ts +2 -2
  27. package/text/hide-show-text-box/index.d.ts +1 -0
  28. package/text/highlighted-text-box/highlighted-text-box.d.ts +2 -2
  29. package/text/highlighted-text-box/index.d.ts +1 -0
  30. package/user/profile-picture/index.d.ts +1 -0
  31. package/user/profile-picture/profile-picture.d.ts +2 -2
package/index.mjs CHANGED
@@ -1645,7 +1645,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1645
1645
  const Ae = ({
1646
1646
  variant: e = "primary",
1647
1647
  size: t = "medium",
1648
- styling: n = { muted: !1, fullWidth: !1, new: !1 },
1648
+ styling: n = { muted: !1, fullWidth: !1 },
1649
1649
  icon: r = !1,
1650
1650
  href: i = !1,
1651
1651
  element: a = "button",
@@ -1664,16 +1664,13 @@ const Ae = ({
1664
1664
  }
1665
1665
  !l && u && (u = "");
1666
1666
  const v = [];
1667
- typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left")));
1667
+ typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
1668
1668
  const C = {
1669
1669
  ...p,
1670
1670
  className: Z(e, o, v, {
1671
1671
  "no-text": !h,
1672
1672
  disabled: l,
1673
- button: i,
1674
- new: n.new,
1675
- muted: n.muted,
1676
- "full-width": n.fullWidth
1673
+ button: i
1677
1674
  }),
1678
1675
  onClick: (E) => {
1679
1676
  (!i || i[0] === "#") && s && (E.preventDefault(), E.stopPropagation()), s && s(E);
@@ -20739,8 +20736,7 @@ const _C = ({
20739
20736
  ],
20740
20737
  intlPath: "contactForm",
20741
20738
  gtm: { context: r, event: i },
20742
- functions: { onSuccess: t, onFailure: n },
20743
- button: { styling: { new: !0 } }
20739
+ functions: { onSuccess: t, onFailure: n }
20744
20740
  }
20745
20741
  );
20746
20742
  };
@@ -21513,13 +21509,12 @@ const qn = ({
21513
21509
  styling: n = {},
21514
21510
  ...r
21515
21511
  }) => {
21516
- const { background: i = "default", padding: a = "none" } = n;
21512
+ const { background: i = "default" } = n;
21517
21513
  return /* @__PURE__ */ c.jsx(
21518
21514
  "section",
21519
21515
  {
21520
21516
  className: Z("full-width-section", t, {
21521
- [i]: i !== "default",
21522
- [a]: a !== "none"
21517
+ [i]: i !== "default"
21523
21518
  }),
21524
21519
  ...r,
21525
21520
  children: e
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface Props {
2
+ export interface IColumnsProps {
3
3
  /** The layout for the columns */
4
4
  layout?: '2-1' | '1-3' | '1-1';
5
5
  /** If the columns should be hidden until they'd show in a row */
@@ -11,5 +11,5 @@ interface Props {
11
11
  /** The content to be rendered */
12
12
  children: React.ReactElement;
13
13
  }
14
- declare const Columns: ({ layout, hideOnMobile, hasCSSContainers, className, children, }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ declare const Columns: ({ layout, hideOnMobile, hasCSSContainers, className, children, }: IColumnsProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default Columns;
@@ -1 +1,2 @@
1
+ export type { IColumnsProps } from './columns';
1
2
  export { default as Columns } from './columns';
@@ -1,2 +1,2 @@
1
- export type { PaginationType } from './load-more';
1
+ export type { ILoadMoreProps, PaginationType } from './load-more';
2
2
  export { default as LoadMore } from './load-more';
@@ -13,13 +13,13 @@ export interface PaginationType {
13
13
  error: string;
14
14
  };
15
15
  }
16
- interface Props extends PaginationType {
16
+ export interface ILoadMoreProps extends PaginationType {
17
17
  /** Additional classes */
18
18
  className?: string;
19
19
  /** GTM event context */
20
20
  gtmContext?: string;
21
21
  }
22
- interface Props extends ButtonPropsType {
22
+ export interface ILoadMoreProps extends ButtonPropsType {
23
23
  }
24
- declare const LoadMore: ({ hasNextPage, loadNextPage, isLoading, variant, size, styling, icon, messages, className, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element | null;
24
+ declare const LoadMore: ({ hasNextPage, loadNextPage, isLoading, variant, size, styling, icon, messages, className, gtmContext, }: ILoadMoreProps) => import("react/jsx-runtime").JSX.Element | null;
25
25
  export default LoadMore;
@@ -1 +1,2 @@
1
+ export type { ITabsProps, ITab, ITabBreakPoint } from './tabs';
1
2
  export { default as Tabs } from './tabs';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- interface TabBreakPoint {
2
+ export interface ITabBreakPoint {
3
3
  target: 'min-width' | 'max-width';
4
4
  value: number;
5
5
  }
6
- interface TabType {
6
+ export interface ITab {
7
7
  /** An ID for the tab - this is used to create an anchor on the page */
8
8
  id?: string;
9
9
  /** The text to show for the tab */
@@ -17,15 +17,15 @@ interface TabType {
17
17
  /** Whether the tab has carousels - this is needed to ensure the carousel width loads as expected */
18
18
  hasCarousel?: boolean;
19
19
  /** The breakpoint at which the tab should be shown. If not specified, always show */
20
- breakpoint?: TabBreakPoint;
20
+ breakpoint?: ITabBreakPoint;
21
21
  }
22
- interface Props {
22
+ export interface ITabsProps {
23
23
  /** The tab details */
24
- tabs: TabType[];
24
+ tabs: ITab[];
25
25
  /** Additional classes */
26
26
  className?: string;
27
27
  /** Prevent window move by not jumping to the tab on click */
28
28
  preventLocationChange?: boolean;
29
29
  }
30
- declare const Tabs: ({ tabs, className, preventLocationChange }: Props) => import("react/jsx-runtime").JSX.Element;
30
+ declare const Tabs: ({ tabs, className, preventLocationChange }: ITabsProps) => import("react/jsx-runtime").JSX.Element;
31
31
  export default Tabs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.8.7-jc.6",
3
+ "version": "4.8.8",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -9,7 +9,7 @@ interface IPlaceholder {
9
9
  /** Cta message showing on a button */
10
10
  ctaMessage?: string;
11
11
  }
12
- interface Props {
12
+ export interface IEditSectionProps {
13
13
  /** Additional classes */
14
14
  className?: string;
15
15
  /** Content to be rendered */
@@ -33,5 +33,5 @@ interface Props {
33
33
  /** Placeholder settings */
34
34
  placeholder?: IPlaceholder;
35
35
  }
36
- declare const EditSection: ({ children, className, formProps, formComponent: originalFormComponent, href, title, showTitle, modalTitle, placeholder, showDivider, }: Props) => import("react/jsx-runtime").JSX.Element;
36
+ declare const EditSection: ({ children, className, formProps, formComponent: originalFormComponent, href, title, showTitle, modalTitle, placeholder, showDivider, }: IEditSectionProps) => import("react/jsx-runtime").JSX.Element;
37
37
  export default EditSection;
@@ -1 +1,2 @@
1
+ export type { IEditSectionProps } from './edit-section';
1
2
  export { default as EditSection } from './edit-section';
@@ -4,8 +4,6 @@ interface Props {
4
4
  styling?: {
5
5
  /** The background of the section. Defaults to `default` */
6
6
  background?: 'default' | 'light' | 'dark';
7
- /** The size of the padding. Defaults to `default` */
8
- padding?: 'none' | 'medium' | 'large';
9
7
  };
10
8
  /** Additional classes */
11
9
  className?: string;