@apolitical/component-library 1.14.12 → 1.14.14

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.
@@ -27,6 +27,12 @@ export interface BannerSectionType {
27
27
  variant?: 'default' | 'light';
28
28
  /** How to handle spacing on the banner */
29
29
  spacing?: 'normal' | 'slim';
30
+ /** Whether or not to show the ContentType.text, eyebrow or title */
31
+ hideElements?: {
32
+ eyebrow?: boolean;
33
+ title?: boolean;
34
+ text?: boolean;
35
+ };
30
36
  /** The CTA to display */
31
37
  cta?: {
32
38
  text: string;
@@ -38,5 +44,5 @@ export interface BannerSectionType {
38
44
  /** Any additional children */
39
45
  children?: React.ReactNode;
40
46
  }
41
- declare const _default: React.MemoExoticComponent<({ className, content: contentProp, image, variant, spacing, cta, children, }: BannerSectionType) => import("react/jsx-runtime").JSX.Element>;
47
+ declare const _default: React.MemoExoticComponent<({ className, content: contentProp, image, variant, spacing, hideElements, cta, children, }: BannerSectionType) => import("react/jsx-runtime").JSX.Element>;
42
48
  export default _default;
@@ -1,13 +1,26 @@
1
1
  export type DateType = Date | string;
2
+ interface IGetDateWithDelta {
3
+ (delta: {
4
+ minute?: number;
5
+ hour?: number;
6
+ day?: number;
7
+ week?: number;
8
+ month?: number;
9
+ year?: number;
10
+ }, baseDate?: Date): Date;
11
+ }
12
+ interface IGetShortDateHowLongAgo {
13
+ (dateInPast: Date | string): {
14
+ path: string;
15
+ number?: number | undefined;
16
+ } | '';
17
+ }
2
18
  export declare const getMonth: (date: DateType, locale?: string) => string;
3
19
  export declare const getNumericDay: (date: DateType, locale?: string) => string;
4
20
  export declare const getShortDate: (date: DateType, locale?: string) => string;
5
21
  export declare const getDateWithYear: (date: DateType, locale?: string) => string;
6
22
  export declare const getLongDate: (date: DateType, locale?: string) => string;
7
- export declare const getShortDateHowLongAgo: (dateInPast: Date | string) => "" | {
8
- path: string;
9
- number?: undefined;
10
- } | {
11
- path: string;
12
- number: number;
13
- };
23
+ export declare const getShortDateHowLongAgo: IGetShortDateHowLongAgo;
24
+ export declare const getDateWithDelta: IGetDateWithDelta;
25
+ export declare const dateToUTC: (date?: Date) => Date;
26
+ export {};