@apolitical/component-library 3.0.1 → 3.0.2-ac.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.
@@ -92,6 +92,8 @@ export interface CarouselTitleProps {
92
92
  size?: 'medium' | 'large';
93
93
  /** The `href` to point the 'view all' link to; it won't show unless this is defined */
94
94
  link?: string;
95
+ /** Whether the title should be hidden */
96
+ hidden?: boolean;
95
97
  }
96
98
  export interface BaseCarouselProps {
97
99
  /** A function to parse and build the card data - this is especially needed in carousels to hydrate the cards */
@@ -27,7 +27,7 @@ export declare const Checkbox: ({ className, disabled, element, functions: allFu
27
27
  options?: import("../../../form.types").IFieldOption[] | undefined;
28
28
  placeholder?: string | undefined;
29
29
  props?: {
30
- [key: string]: string | boolean | React.RefObject<any> | (() => void);
30
+ [key: string]: string | boolean | object | React.RefObject<any> | (() => void);
31
31
  } | undefined;
32
32
  required?: boolean | undefined;
33
33
  validation?: import("../../../form.types").IFieldValidation[] | undefined;
@@ -35,7 +35,7 @@ export declare const Input: ({ className, element, id, inputRef: ref, functions,
35
35
  } | undefined;
36
36
  options?: import("../../../form.types").IFieldOption[] | undefined;
37
37
  props?: {
38
- [key: string]: string | boolean | React.RefObject<any> | (() => void);
38
+ [key: string]: string | boolean | object | React.RefObject<any> | (() => void);
39
39
  } | undefined;
40
40
  required?: boolean | undefined;
41
41
  shownValue?: InputValues | undefined;
@@ -134,7 +134,7 @@ export interface IField {
134
134
  placeholder?: string;
135
135
  /** Additional props to be passed to the field */
136
136
  props?: {
137
- [key: string]: string | boolean | (() => void) | React.RefObject<any>;
137
+ [key: string]: string | boolean | object | (() => void) | React.RefObject<any>;
138
138
  };
139
139
  /** Whether the field is required */
140
140
  required?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- type MatchingRules = {
2
+ export type MatchingRules = {
3
3
  isMoreThanEightCharacters: boolean;
4
4
  includesNumberAndSymbol: boolean;
5
5
  includesLowerAndUppercase: boolean;
@@ -1,4 +1,5 @@
1
1
  export * from './contact-form';
2
2
  export * from './invite-form';
3
+ export * from './password-form';
3
4
  export * from './search-form';
4
5
  export * from './signup-form';
@@ -0,0 +1 @@
1
+ export function generateConditions(conditions: any): any;
@@ -0,0 +1,2 @@
1
+ export { default as PasswordForm } from './password-form';
2
+ export * from './helper';
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { FormValues, IFormValues } from '../../components/form/form.types';
3
+ interface Props {
4
+ /** Indicated for whether to show the current password field */
5
+ isPasswordChange?: boolean;
6
+ /** The functions being passed to the form */
7
+ functions: {
8
+ /** The function to call to create the password */
9
+ createPassword: (arg: IFormValues) => Promise<void>;
10
+ /** The function to call when onSuccess fails */
11
+ onCatch?: (error?: unknown) => void;
12
+ /** The function to call when the form submission fails */
13
+ onFailure?: (arg: IFormValues, arg2?: FormValues) => void;
14
+ /** The function to call when the form is successfully submitted */
15
+ onSuccess?: (arg: IFormValues) => Promise<void>;
16
+ /** The function to call when the cancel button is clicked */
17
+ onCancel?: () => void;
18
+ };
19
+ }
20
+ declare const PasswordForm: React.FC<Props>;
21
+ export default PasswordForm;
@@ -2,6 +2,7 @@ export * from './buttons';
2
2
  export * from './divider';
3
3
  export * from './image-container';
4
4
  export * from './link';
5
+ export * from './navigation-dots';
5
6
  export * from './responsive-image';
6
7
  export * from './return-to-nav-button';
7
8
  export * from './tooltip';
@@ -0,0 +1 @@
1
+ export { default as NavigationDots } from './navigation-dots';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ /** The current step */
4
+ currentStep?: number;
5
+ /** The total number of steps */
6
+ steps?: number;
7
+ }
8
+ declare const NavigationDots: React.FC<Props>;
9
+ export default NavigationDots;