@hievilmath/browser-formidavim 1.2.7 → 1.2.9

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.
@@ -5,7 +5,7 @@ export declare const DataRenderer: FC<PropsWithChildren<{
5
5
  onSubmit?: (formData: any) => Promise<any>;
6
6
  isPreview?: boolean;
7
7
  flowName?: string;
8
- version?: string;
8
+ version?: string | undefined;
9
9
  formidavimHost?: string;
10
10
  onNextStep?: (flow: any, currentForm: any) => any;
11
11
  onPrevStep?: (flow: any, currentForm: any) => any;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export declare const Address: FC<{
4
+ formComponent: Partial<FormComponent>;
5
+ }>;
@@ -6,6 +6,7 @@ export interface DatePickerProps {
6
6
  propertyId: string;
7
7
  minDate?: string;
8
8
  maxDate?: string;
9
+ minAge?: number;
9
10
  }
10
11
  export declare const DatePickerInput: FC<{
11
12
  formComponent: Partial<FormComponent>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export declare const Email: FC<{
4
+ formComponent: Partial<FormComponent>;
5
+ }>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export declare const Otp: React.FC<{
4
+ formComponent: Partial<FormComponent>;
5
+ }>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export declare const Password: FC<{
4
+ formComponent: Partial<FormComponent>;
5
+ }>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export declare const Phone: FC<{
4
+ formComponent: Partial<FormComponent>;
5
+ }>;
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export interface TitrationSelectProps {
4
+ label: string;
5
+ required: boolean;
6
+ propertyId: string;
7
+ defaultUnits: number;
8
+ lastPrescribedDose: number;
9
+ concentration: string;
10
+ vialSize: string;
11
+ }
12
+ export declare const TitrationCustomUnits: FC<{
13
+ formComponent: Partial<FormComponent>;
14
+ }>;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export interface TemplateProps {
4
+ text: string;
5
+ color?: string;
6
+ 'text-align'?: 'left' | 'center' | 'right' | 'justify';
7
+ }
8
+ export declare const Template: FC<{
9
+ formComponent: Partial<FormComponent>;
10
+ }>;
@@ -120,6 +120,7 @@ export declare const ComponentWrapper: import('styled-components/dist/types').IS
120
120
  export declare const BgWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BgWrapperProps>> & string;
121
121
  export declare const ImgWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ImgWrapperProps>> & string;
122
122
  export declare const FlexWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FlexWrapperProps>> & string;
123
+ export declare const FormComponentGenericWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormInputWrapperProps>> & string;
123
124
  export declare const FormInputWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormInputWrapperProps>> & string;
124
125
  export declare const FormTextRepeaterInputWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormTextRepeaterInputWrapperProps>> & string;
125
126
  export declare const FormRadioWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormRadioWrapperProps>> & string;
@@ -44,6 +44,7 @@ export declare const InlineLink: import('styled-components/dist/types').IStyledC
44
44
  }, TypographyBaseProps>> & string & Omit<import('react').ForwardRefExoticComponent<import('react-router-dom').LinkProps & import('react').RefAttributes<HTMLAnchorElement>>, keyof import('react').Component<any, {}, any>>;
45
45
  export declare const InlineA: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, TypographyBaseProps>> & string;
46
46
  export declare const InlineFormError: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, ErrorProps>> & string;
47
+ export declare const FormErrorWithIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ErrorProps>> & string;
47
48
  export declare const FormErrorTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, ErrorProps>> & string;
48
49
  export declare const InputSmallNote: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof LegacyTypographyProps> & LegacyTypographyProps, "ref"> & {
49
50
  ref?: ((instance: HTMLParagraphElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLParagraphElement> | null | undefined;
@@ -144,4 +144,14 @@ export declare const FlowStepTrackerContainerMobile: import('styled-components/d
144
144
  export declare const FormHeaderMobile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormHeaderMobileProps>> & string;
145
145
  export declare const FlowStepTrackerBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FlowStepTrackerBarProps>> & string;
146
146
  export declare const FlowBtnWrapperMobile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
147
+ export declare const TitrationImageWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
148
+ export declare const TitrationGreenContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
149
+ export declare const TitrationGreenOverlay: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
150
+ $width?: string;
151
+ }>> & string;
152
+ export declare const TitrationControlsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
153
+ export declare const TitrationButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
154
+ export declare const TitrationInputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
155
+ export declare const TitrationInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
156
+ export declare const TitrationUnitsLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
147
157
  export {};
@@ -0,0 +1,7 @@
1
+ export declare const domainList: string[];
2
+ export interface EmailValidationResult {
3
+ valid: boolean;
4
+ errorMsg: string;
5
+ suggestion: string;
6
+ }
7
+ export declare const isValidEmail: (email: string) => EmailValidationResult;
@@ -2,7 +2,7 @@ import { EvaluatedFormComponent } from '../components/FlowRenderer';
2
2
  /**
3
3
  * Validates that all required visible fields have values
4
4
  */
5
- export declare const validateRequiredFields: (evaluatedComponents: EvaluatedFormComponent[], getFlowValue: (field: string) => any) => boolean;
5
+ export declare const validateRequiredFields: (evaluatedComponents: EvaluatedFormComponent[], getFlowValue: (field: string) => any, getFlowError: (field: string) => any) => boolean;
6
6
  /**
7
7
  * Get all required components that are currently visible
8
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hievilmath/browser-formidavim",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "typings": "./index.d.ts",