@apolitical/component-library 2.0.3-beta.3 → 2.0.3

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 (34) hide show
  1. package/banners/banner-section/banner-section.d.ts +1 -1
  2. package/banners/highlight-section/highlight-section.d.ts +14 -0
  3. package/banners/highlight-section/index.d.ts +1 -0
  4. package/banners/index.d.ts +1 -1
  5. package/banners/marketing-block/index.d.ts +1 -1
  6. package/form/components/index.d.ts +0 -1
  7. package/index.js +20 -26
  8. package/index.mjs +5606 -6723
  9. package/layout/content-layout/columns/columns.d.ts +1 -1
  10. package/package.json +1 -3
  11. package/sections/full-width-section/full-width-section.d.ts +1 -6
  12. package/style.css +1 -1
  13. package/styles/base/_layout.scss +0 -4
  14. package/styles/base/_table.scss +0 -2
  15. package/styles/base/_text.scss +1 -1
  16. package/styles/base/_titles.scss +0 -10
  17. package/styles/functions/_maps.scss +2 -18
  18. package/styles/variables/colors/theme/_banners.scss +2 -3
  19. package/styles/variables/colors/theme/_form.scss +0 -3
  20. package/styles/variables/colors/theme/_index.scss +2 -2
  21. package/styles/variables/colors/theme/_pages.scss +0 -2
  22. package/styles/variables/colors/theme/_user.scss +0 -1
  23. package/text/index.d.ts +1 -0
  24. package/text/testimonial-block/index.d.ts +1 -0
  25. package/text/testimonial-block/testimonial-block.d.ts +11 -0
  26. package/user/index.d.ts +0 -1
  27. package/banners/banner/banner.d.ts +0 -11
  28. package/banners/banner/index.d.ts +0 -1
  29. package/form/components/toggle/index.d.ts +0 -1
  30. package/form/components/toggle/toggle.d.ts +0 -23
  31. package/styles/variables/colors/theme/_sections.scss +0 -7
  32. package/testing/__mocks__/tabbable.d.ts +0 -2
  33. package/user/directory/directory.d.ts +0 -18
  34. package/user/directory/index.d.ts +0 -1
@@ -24,7 +24,7 @@ export interface BannerSectionType {
24
24
  /** The image to display */
25
25
  image?: ResponsiveImageType;
26
26
  /** The colour variant (when there's no image) */
27
- variant?: 'default' | 'light' | 'gradient';
27
+ variant?: 'default' | 'light';
28
28
  /** How to handle spacing on the banner */
29
29
  spacing?: 'normal' | 'slim';
30
30
  /** Whether or not to show the ContentType.text, eyebrow or title */
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { ResponsiveImageType } from '../../general';
3
+ export type HighlightSectionProps = {
4
+ /** The content to display */
5
+ content: string | React.ReactNode;
6
+ /** Additional className */
7
+ className?: string;
8
+ /** How to align the image, left or right. Defaults to left */
9
+ alignImage?: 'left' | 'right';
10
+ /** The image to display */
11
+ image?: ResponsiveImageType;
12
+ };
13
+ declare const _default: import("react").MemoExoticComponent<({ alignImage, className, content, image, }: HighlightSectionProps) => import("react/jsx-runtime").JSX.Element>;
14
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as HighlightSection } from './highlight-section';
@@ -1,3 +1,3 @@
1
- export * from './banner';
2
1
  export * from './banner-section';
2
+ export * from './highlight-section';
3
3
  export * from './marketing-block';
@@ -1 +1 @@
1
- export { default as MarketingBlock } from './marketing-block';
1
+ export { default as MarketingBox } from './marketing-block';
@@ -2,4 +2,3 @@ export * from './email-helper-text-box';
2
2
  export * from './form';
3
3
  export * from './password-rules';
4
4
  export * from './rating';
5
- export * from './toggle';