@emeraldemperaur/vector-sigma 1.4.28 → 1.4.30

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/lib/index.cjs +569 -227
  2. package/lib/index.esm.js +570 -228
  3. package/lib/types/components/avatar/avatar.d.ts +7 -1
  4. package/lib/types/components/checkbox/checkbox.d.ts +7 -1
  5. package/lib/types/components/conditional/conditional.d.ts +7 -1
  6. package/lib/types/components/datepicker/datepicker.d.ts +7 -1
  7. package/lib/types/components/daterangepicker/daterangepicker.d.ts +7 -1
  8. package/lib/types/components/datetimepicker/datetimepicker.d.ts +7 -1
  9. package/lib/types/components/dropdown/dropdown.d.ts +7 -1
  10. package/lib/types/components/file/file.d.ts +7 -1
  11. package/lib/types/components/file/filemultiple.d.ts +7 -1
  12. package/lib/types/components/input/input.d.ts +11 -5
  13. package/lib/types/components/input/passwordInput.d.ts +1 -1
  14. package/lib/types/components/input/phoneInput.d.ts +1 -1
  15. package/lib/types/components/input/uuidInput.d.ts +69 -1
  16. package/lib/types/components/input/xCreditCardInput.d.ts +1 -1
  17. package/lib/types/components/inputcurrency/inputcurrency.d.ts +7 -1
  18. package/lib/types/components/inputcurrency/stockInput.d.ts +7 -1
  19. package/lib/types/components/radio/radio.d.ts +7 -1
  20. package/lib/types/components/select/select.d.ts +7 -1
  21. package/lib/types/components/selectmultiple/selectmultiple.d.ts +7 -1
  22. package/lib/types/components/slider/range.d.ts +7 -1
  23. package/lib/types/components/slider/slider.d.ts +7 -1
  24. package/lib/types/components/toggle/toggle.d.ts +57 -51
  25. package/lib/types/layouts/codex/codexcontrols.d.ts +6 -1
  26. package/lib/types/teletraan1.d.ts +47 -3
  27. package/lib/types/utils/architect.d.ts +66 -58
  28. package/lib/types/utils/artificer.d.ts +2 -0
  29. package/lib/types/utils/vinci.d.ts +2 -2
  30. package/lib/types/utils/voltron.d.ts +54 -0
  31. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { FormikContextType } from 'formik';
2
3
  export type AvatarDesign = 'avatar' | 'avatar-outline' | 'avatar-material' | 'avatar-neumorphic';
3
4
  export type AvatarShape = 'circle' | 'square' | 'rounded';
4
5
  export interface AvatarProps {
@@ -99,5 +100,10 @@ export interface AvatarProps {
99
100
  * accept="image/*"
100
101
  */
101
102
  accept?: string;
103
+ /**
104
+ * * Optional explicit Formik context. Useful when bypassing duplicate
105
+ * context issues in monorepos or bundled npm packages.
106
+ */
107
+ formikContext?: FormikContextType<any>;
102
108
  }
103
- export declare const AvatarInput: ({ inputtype, alias, readOnly, width, inputLabel, shape, size, newRow, isHinted, hintText, hintUrl, errorText, style, className, accept, ...props }: AvatarProps) => React.JSX.Element;
109
+ export declare const AvatarInput: ({ inputtype, alias, readOnly, width, inputLabel, shape, size, newRow, isHinted, hintText, hintUrl, errorText, style, className, accept, formikContext, ...props }: AvatarProps) => React.JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { FormikContextType } from 'formik';
2
3
  import { InputOption } from 'utils/vinci';
3
4
  import '../../styles/main.scss';
4
5
  export type CheckBoxDesign = 'checkbox' | 'checkbox-material' | 'checkbox-outline' | 'checkbox-neumorphic';
@@ -103,5 +104,10 @@ export interface CheckboxGroup {
103
104
  * style={{ color: "#000000" }}
104
105
  */
105
106
  style?: React.CSSProperties;
107
+ /**
108
+ * * Optional explicit Formik context. Useful when bypassing duplicate
109
+ * context issues in monorepos or bundled npm packages.
110
+ */
111
+ formikContext?: FormikContextType<any>;
106
112
  }
107
- export declare const CheckboxGroupInput: ({ inputtype, alias, readOnly, width, inputLabel, style, inputOptions, newRow, isHinted, hintText, hintUrl, errorText, direction, columns, className, ...props }: CheckboxGroup) => React.JSX.Element;
113
+ export declare const CheckboxGroupInput: ({ inputtype, alias, readOnly, width, inputLabel, style, inputOptions, newRow, isHinted, hintText, hintUrl, errorText, direction, columns, className, formikContext, ...props }: CheckboxGroup) => React.JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from "react";
2
+ import { FormikContextType } from 'formik';
2
3
  import { InputOption } from "utils/vinci";
3
4
  import '../../styles/main.scss';
4
5
  export type ToggleTriggerDesign = 'conditionaltoggle' | 'conditionaltoggle-outline' | 'conditionaltoggle-material' | 'conditionaltoggle-neumorphic';
@@ -114,5 +115,10 @@ export interface ConditionalProps {
114
115
  * style={{ color: "#000000" }}
115
116
  */
116
117
  style?: React.CSSProperties;
118
+ /**
119
+ * * Optional explicit Formik context. Useful when bypassing duplicate
120
+ * context issues in monorepos or bundled npm packages.
121
+ */
122
+ formikContext?: FormikContextType<any>;
117
123
  }
118
- export declare const ConditionalTrigger: ({ alias, readOnly, width, placeholder, inputLabel, inputtype, triggerValue, inputOptions, children, newRow, isHinted, hintText, hintUrl, errorText, style, className, ...props }: ConditionalProps) => React.JSX.Element;
124
+ export declare const ConditionalTrigger: ({ alias, readOnly, width, placeholder, inputLabel, inputtype, triggerValue, inputOptions, children, newRow, isHinted, hintText, hintUrl, errorText, style, className, formikContext, ...props }: ConditionalProps) => React.JSX.Element | null;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import "react-datepicker/dist/react-datepicker.css";
3
+ import { FormikContextType } from 'formik';
3
4
  import '../../styles/main.scss';
4
5
  export type DatePickerDesign = 'datepicker' | 'datepicker-outline' | 'datepicker-material' | 'datepicker-neumorphic';
5
6
  interface DatePickerProps {
@@ -79,6 +80,11 @@ interface DatePickerProps {
79
80
  * className="teletraan-1-datepicker"
80
81
  */
81
82
  className?: string;
83
+ /**
84
+ * * Optional explicit Formik context. Useful when bypassing duplicate
85
+ * context issues in monorepos or bundled npm packages.
86
+ */
87
+ formikContext?: FormikContextType<any>;
82
88
  }
83
- export declare const DatePicker: ({ alias, inputLabel, inputtype, width, newRow, placeholder, isHinted, hintText, hintUrl, errorText, readOnly, className }: DatePickerProps) => React.JSX.Element;
89
+ export declare const DatePicker: ({ alias, inputLabel, inputtype, width, newRow, placeholder, isHinted, hintText, hintUrl, errorText, readOnly, className, formikContext }: DatePickerProps) => React.JSX.Element | null;
84
90
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import "react-datepicker/dist/react-datepicker.css";
3
+ import { FormikContextType } from 'formik';
3
4
  import '../../styles/main.scss';
4
5
  export type DateRangePickerDesign = 'daterangepicker' | 'daterangepicker-outline' | 'daterangepicker-material' | 'daterangepicker-neumorphic';
5
6
  interface DateRangePickerProps {
@@ -79,6 +80,11 @@ interface DateRangePickerProps {
79
80
  * className="teletraan-1-daterangepicker"
80
81
  */
81
82
  className?: string;
83
+ /**
84
+ * * Optional explicit Formik context. Useful when bypassing duplicate
85
+ * context issues in monorepos or bundled npm packages.
86
+ */
87
+ formikContext?: FormikContextType<any>;
82
88
  }
83
- export declare const DateRangePicker: ({ alias, inputLabel, inputtype, width, newRow, placeholder, isHinted, hintText, hintUrl, errorText, readOnly, className }: DateRangePickerProps) => React.JSX.Element;
89
+ export declare const DateRangePicker: ({ alias, inputLabel, inputtype, width, newRow, placeholder, isHinted, hintText, hintUrl, errorText, readOnly, className, formikContext }: DateRangePickerProps) => React.JSX.Element | null;
84
90
  export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import "react-datepicker/dist/react-datepicker.css";
3
+ import { FormikContextType } from 'formik';
3
4
  import '../../styles/main.scss';
4
5
  export type DateTimePickerDesign = 'datetimepicker' | 'datetimepicker-outline' | 'datetimepicker-material' | 'datetimepicker-neumorphic';
5
6
  interface DateTimePickerProps {
@@ -79,6 +80,11 @@ interface DateTimePickerProps {
79
80
  * className="teletraan-1-datetimepicker"
80
81
  */
81
82
  className?: string;
83
+ /**
84
+ * * Optional explicit Formik context. Useful when bypassing duplicate
85
+ * context issues in monorepos or bundled npm packages.
86
+ */
87
+ formikContext?: FormikContextType<any>;
82
88
  }
83
- export declare const DateTimePicker: ({ alias, inputLabel, inputtype, width, newRow, placeholder, isHinted, hintText, hintUrl, errorText, readOnly, className }: DateTimePickerProps) => React.JSX.Element;
89
+ export declare const DateTimePicker: ({ alias, inputLabel, inputtype, width, newRow, placeholder, isHinted, hintText, hintUrl, errorText, readOnly, className, formikContext }: DateTimePickerProps) => React.JSX.Element | null;
84
90
  export {};
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { InputOption } from "utils/vinci";
3
+ import { FormikContextType } from 'formik';
3
4
  import '../../styles/main.scss';
4
5
  export type xDropDownDesign = 'dropdown' | 'dropdown-material' | 'dropdown-outline' | 'dropdown-neumorphic';
5
6
  export interface xDropDownProps {
@@ -102,5 +103,10 @@ export interface xDropDownProps {
102
103
  * style={{ color: "#000000" }}
103
104
  */
104
105
  style?: React.CSSProperties;
106
+ /**
107
+ * * Optional explicit Formik context. Useful when bypassing duplicate
108
+ * context issues in monorepos or bundled npm packages.
109
+ */
110
+ formikContext?: FormikContextType<any>;
105
111
  }
106
- export declare const Dropdown: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, className, ...props }: xDropDownProps) => React.JSX.Element;
112
+ export declare const Dropdown: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, className, formikContext, ...props }: xDropDownProps) => React.JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { FormikContextType } from 'formik';
2
3
  import '../../styles/main.scss';
3
4
  export type FileInputDesign = 'fileinput' | 'fileinput-material' | 'fileinput-outline' | 'fileinput-neumorphic';
4
5
  export interface FileInputProps {
@@ -84,5 +85,10 @@ export interface FileInputProps {
84
85
  * style={{ color: "#000000" }}
85
86
  */
86
87
  style?: React.CSSProperties;
88
+ /**
89
+ * * Optional explicit Formik context. Useful when bypassing duplicate
90
+ * context issues in monorepos or bundled npm packages.
91
+ */
92
+ formikContext?: FormikContextType<any>;
87
93
  }
88
- export declare const File: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, preview, className, style, ...props }: FileInputProps) => React.JSX.Element;
94
+ export declare const File: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, preview, className, style, formikContext, ...props }: FileInputProps) => React.JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { FormikContextType } from 'formik';
2
3
  import '../../styles/main.scss';
3
4
  export type FileMultipleInputDesign = 'filemultiple' | 'filemultiple-material' | 'filemultiple-outline' | 'filemultiple-neumorphic';
4
5
  export interface FileMultipleInputProps {
@@ -90,5 +91,10 @@ export interface FileMultipleInputProps {
90
91
  * style={{ color: "#000000" }}
91
92
  */
92
93
  style?: React.CSSProperties;
94
+ /**
95
+ * * Optional explicit Formik context. Useful when bypassing duplicate
96
+ * context issues in monorepos or bundled npm packages.
97
+ */
98
+ formikContext?: FormikContextType<any>;
93
99
  }
94
- export declare const FileMultiple: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, newRow, isHinted, hintText, hintUrl, errorText, preview, className, style, ...props }: FileMultipleInputProps) => React.JSX.Element;
100
+ export declare const FileMultiple: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, newRow, isHinted, hintText, hintUrl, errorText, preview, className, style, formikContext, ...props }: FileMultipleInputProps) => React.JSX.Element | null;
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from "react";
2
+ import { FormikContextType } from "formik";
2
3
  import { TextField } from '@radix-ui/themes';
3
4
  import '../../styles/main.scss';
4
5
  export type InputType = 'date' | 'datetime-local' | 'email' | 'hidden' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';
@@ -71,10 +72,10 @@ export type xInputFieldProps = React.ComponentProps<typeof TextField.Root> & {
71
72
  */
72
73
  hintUrl?: string;
73
74
  /**
74
- * * Option to render Input field with icon passed as a ReactNode {}.
75
- * * @example
76
- * icon={<Icon name="stack"/>}
77
- */
75
+ * * Option to render Input field with icon passed as a ReactNode {}.
76
+ * * @example
77
+ * icon={<Icon name="stack"/>}
78
+ */
78
79
  icon?: React.ReactNode;
79
80
  /**
80
81
  * * Option to specify the isRequired error text for the Input field.
@@ -102,5 +103,10 @@ export type xInputFieldProps = React.ComponentProps<typeof TextField.Root> & {
102
103
  * inputvariant="input-neumorphic"
103
104
  */
104
105
  inputvariant?: InputDesign;
106
+ /**
107
+ * * Optional explicit Formik context. Useful when bypassing duplicate
108
+ * context issues in monorepos or bundled npm packages.
109
+ */
110
+ formikContext?: FormikContextType<any>;
105
111
  };
106
- export declare const Input: ({ alias, inputtype, width, inputLabel, readOnly, placeholder, newRow, isHinted, hintText, hintUrl, errorText, className, size, style, inputvariant, icon, ...props }: xInputFieldProps) => React.JSX.Element;
112
+ export declare const Input: ({ alias, inputtype, width, inputLabel, readOnly, placeholder, newRow, isHinted, hintText, hintUrl, errorText, className, size, style, inputvariant, icon, formikContext, ...props }: xInputFieldProps) => React.JSX.Element | null;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { xInputFieldProps } from "./input";
3
3
  import '../../styles/main.scss';
4
- export declare const PasswordInput: ({ alias, inputLabel, width, readOnly, placeholder, newRow, isHinted, hintText, hintUrl, errorText, inputvariant, size, className, ...props }: xInputFieldProps) => React.JSX.Element;
4
+ export declare const PasswordInput: ({ alias, inputLabel, width, readOnly, placeholder, newRow, isHinted, hintText, hintUrl, errorText, inputvariant, size, className, formikContext, ...props }: xInputFieldProps) => React.JSX.Element | null;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { xInputFieldProps } from "./input";
3
3
  import '../../styles/main.scss';
4
- export declare const PhoneInput: ({ alias, inputLabel, width, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, size, className, ...props }: xInputFieldProps) => React.JSX.Element;
4
+ export declare const PhoneInput: ({ alias, inputLabel, width, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, size, className, formikContext, ...props }: xInputFieldProps) => React.JSX.Element | null;
@@ -1,23 +1,91 @@
1
1
  import React, { ReactNode } from "react";
2
+ import { FormikContextType } from "formik";
2
3
  import '../../styles/main.scss';
3
4
  type startsWithUuid = `uuid${string}`;
4
5
  interface UUIDInputProps {
6
+ /**
7
+ * * The required unique identifier for the Input field in useFormikContext().
8
+ * Alias referenced as `name` attribute and Formik state key.
9
+ * * @example
10
+ * alias="userUUIDNumber"
11
+ */
5
12
  alias: string;
6
13
  type?: startsWithUuid | string;
14
+ /**
15
+ * * The optional input label or description for the UUIDInput field.
16
+ * * @example
17
+ * inputLabel="PMP® Certication Number"
18
+ */
7
19
  inputLabel?: string;
20
+ /**
21
+ * * The required viewport column width for the UUIDInput field.
22
+ * i.e. 1 - 12
23
+ * * @example
24
+ * width={5}
25
+ */
8
26
  width: number;
27
+ /**
28
+ * * Option to render UUIDInput field on new row.
29
+ * * @example
30
+ * newRow
31
+ */
9
32
  newRow?: boolean;
10
33
  delimiter?: string;
11
34
  format?: number[];
35
+ /**
36
+ * * Option to enable a hint for UUIDInput field.
37
+ * * @example
38
+ * isHinted
39
+ */
12
40
  isHinted?: boolean;
41
+ /**
42
+ * * Option to specify hint text for UUIDInput field.
43
+ * * @example
44
+ * hintText="This is a hint for a VΣ UUIDInput field"
45
+ */
13
46
  hintText?: string;
47
+ /**
48
+ * * Option to specify a hint url reference or resource for Input field.
49
+ * * @example
50
+ * hintUrl="https://www.mekaegwim.ca"
51
+ */
14
52
  hintUrl?: string;
53
+ /**
54
+ * * Option to force set the default value for UUIDInput field.
55
+ * * @example
56
+ * placeholder="Enter VΣ UUID"
57
+ */
15
58
  placeholder?: string;
59
+ /**
60
+ * * Option to specify the isRequired error text for the UUIDInput field.
61
+ * * @example
62
+ * errorText="UUID is required"
63
+ */
16
64
  errorText?: ReactNode | string | null;
65
+ /**
66
+ * * Option to specify the .scss class selector for the UUIDInput field.
67
+ * * @example
68
+ * className="teletraan-1-uuid"
69
+ */
17
70
  className?: string;
18
71
  inputVariant?: 'uuid' | 'uuid-outline' | 'uuid' | 'uuid-neumorphic';
72
+ /**
73
+ * * Option to disable edits for UUIDInput field.
74
+ * * @example
75
+ * readOnly
76
+ */
19
77
  readOnly?: boolean;
78
+ /**
79
+ * * Option to set text size for UUIDInput field.
80
+ * * @example
81
+ * readOnly
82
+ */
20
83
  size?: "1" | "2" | "3";
84
+ /**
85
+ * * Optional explicit Formik context. Useful when bypassing duplicate
86
+ * context issues in monorepos or bundled npm packages.
87
+ */
88
+ formikContext?: FormikContextType<any>;
21
89
  }
22
- export declare const UUIDInput: ({ alias, type, inputLabel, width, delimiter, format, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputVariant, size, className, ...props }: UUIDInputProps) => React.JSX.Element;
90
+ export declare const UUIDInput: ({ alias, type, inputLabel, width, delimiter, format, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputVariant, size, className, formikContext, ...props }: UUIDInputProps) => React.JSX.Element | null;
23
91
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { xInputFieldProps } from "./input";
3
3
  import '../../styles/main.scss';
4
- export declare const CreditCardInput: ({ alias, inputLabel, width, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, ...props }: xInputFieldProps) => React.JSX.Element;
4
+ export declare const CreditCardInput: ({ alias, inputLabel, width, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, formikContext, ...props }: xInputFieldProps) => React.JSX.Element | null;
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import { SupportedCurrency } from '../../utils/currencyconfig';
3
+ import { FormikContextType } from 'formik';
3
4
  import { InputDesign } from "components/input/input";
4
5
  import '../../styles/main.scss';
5
6
  type CurrencyInputProps = {
@@ -105,6 +106,11 @@ type CurrencyInputProps = {
105
106
  * className="teletraan-1-currencyinput"
106
107
  */
107
108
  className?: string;
109
+ /**
110
+ * * Optional explicit Formik context. Useful when bypassing duplicate
111
+ * context issues in monorepos or bundled npm packages.
112
+ */
113
+ formikContext?: FormikContextType<any>;
108
114
  };
109
- export declare const CurrencyInput: ({ alias, inputtype, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, ...props }: CurrencyInputProps) => React.JSX.Element;
115
+ export declare const CurrencyInput: ({ alias, inputtype, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, formikContext, ...props }: CurrencyInputProps) => React.JSX.Element | null;
110
116
  export {};
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from "react";
2
+ import { FormikContextType } from 'formik';
2
3
  import { InputDesign } from "components/input/input";
3
4
  import '../../styles/main.scss';
4
5
  type StockInputProps = {
@@ -85,6 +86,11 @@ type StockInputProps = {
85
86
  * className="teletraan-1-stockinput"
86
87
  */
87
88
  className?: string;
89
+ /**
90
+ * * Optional explicit Formik context. Useful when bypassing duplicate
91
+ * context issues in monorepos or bundled npm packages.
92
+ */
93
+ formikContext?: FormikContextType<any>;
88
94
  };
89
- export declare const StockInput: ({ alias, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, ...props }: StockInputProps) => React.JSX.Element;
95
+ export declare const StockInput: ({ alias, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, formikContext, ...props }: StockInputProps) => React.JSX.Element | null;
90
96
  export {};
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { FormikContextType } from 'formik';
2
3
  import { InputOption } from 'utils/vinci';
3
4
  import '../../styles/main.scss';
4
5
  export type RadioDesign = 'radio' | 'radio-material' | 'radio-outline' | 'radio-neumorphic';
@@ -105,6 +106,11 @@ interface RadioGroupProps {
105
106
  * style={{ color: "#000000" }}
106
107
  */
107
108
  style?: React.CSSProperties;
109
+ /**
110
+ * * Optional explicit Formik context. Useful when bypassing duplicate
111
+ * context issues in monorepos or bundled npm packages.
112
+ */
113
+ formikContext?: FormikContextType<any>;
108
114
  }
109
- export declare const RadioGroupInput: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, direction, columns, className, ...props }: RadioGroupProps) => React.JSX.Element;
115
+ export declare const RadioGroupInput: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, direction, columns, className, formikContext, ...props }: RadioGroupProps) => React.JSX.Element | null;
110
116
  export {};
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { InputOption } from "utils/vinci";
3
+ import { FormikContextType } from 'formik';
3
4
  import '../../styles/main.scss';
4
5
  export type OptionSelectDesign = 'dropdown' | 'dropdown-material' | 'dropdown-outline' | 'dropdown-neumorphic';
5
6
  export interface SelectProps {
@@ -102,5 +103,10 @@ export interface SelectProps {
102
103
  * style={{ color: "#000000" }}
103
104
  */
104
105
  style?: React.CSSProperties;
106
+ /**
107
+ * * Optional explicit Formik context. Useful when bypassing duplicate
108
+ * context issues in monorepos or bundled npm packages.
109
+ */
110
+ formikContext?: FormikContextType<any>;
105
111
  }
106
- export declare const OptionSelect: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, ...props }: SelectProps) => React.JSX.Element;
112
+ export declare const OptionSelect: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, formikContext, ...props }: SelectProps) => React.JSX.Element | null;
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { InputOption } from "utils/vinci";
3
+ import { FormikContextType } from 'formik';
3
4
  import '../../styles/main.scss';
4
5
  export type MultipleSelectDesign = 'multiselect' | 'multiselect-material' | 'multiselect-outline' | 'multiselect-neumorphic';
5
6
  interface MultipleSelectProps {
@@ -96,6 +97,11 @@ interface MultipleSelectProps {
96
97
  * style={{ color: "#000000" }}
97
98
  */
98
99
  style?: React.CSSProperties;
100
+ /**
101
+ * * Optional explicit Formik context. Useful when bypassing duplicate
102
+ * context issues in monorepos or bundled npm packages.
103
+ */
104
+ formikContext?: FormikContextType<any>;
99
105
  }
100
- export declare const MultipleSelect: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, className, ...props }: MultipleSelectProps) => React.JSX.Element;
106
+ export declare const MultipleSelect: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, className, formikContext, ...props }: MultipleSelectProps) => React.JSX.Element | null;
101
107
  export {};
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { FormikContextType } from 'formik';
2
3
  import '../../styles/main.scss';
3
4
  export type RangeDesign = 'range' | 'range-material' | 'range-outline' | 'range-neumorphic';
4
5
  interface RangeProps {
@@ -102,6 +103,11 @@ interface RangeProps {
102
103
  * style={{ color: "#000000" }}
103
104
  */
104
105
  style?: React.CSSProperties;
106
+ /**
107
+ * * Optional explicit Formik context. Useful when bypassing duplicate
108
+ * context issues in monorepos or bundled npm packages.
109
+ */
110
+ formikContext?: FormikContextType<any>;
105
111
  }
106
- export declare const RangeSlider: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue, maxvalue, stepvalue, minStepsBetweenThumbs, className, style, ...props }: RangeProps) => React.JSX.Element;
112
+ export declare const RangeSlider: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue, maxvalue, stepvalue, minStepsBetweenThumbs, className, style, formikContext, ...props }: RangeProps) => React.JSX.Element | null;
107
113
  export {};
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { FormikContextType } from 'formik';
2
3
  import '../../styles/main.scss';
3
4
  export type SliderDesign = 'slider' | 'slider-material' | 'slider-outline' | 'slider-neumorphic';
4
5
  interface SliderProps {
@@ -96,6 +97,11 @@ interface SliderProps {
96
97
  * style={{ color: "#000000" }}
97
98
  */
98
99
  style?: React.CSSProperties;
100
+ /**
101
+ * * Optional explicit Formik context. Useful when bypassing duplicate
102
+ * context issues in monorepos or bundled npm packages.
103
+ */
104
+ formikContext?: FormikContextType<any>;
99
105
  }
100
- export declare const SliderInput: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue, maxvalue, stepvalue, className, style, ...props }: SliderProps) => React.JSX.Element;
106
+ export declare const SliderInput: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, minvalue, maxvalue, stepvalue, className, style, formikContext, ...props }: SliderProps) => React.JSX.Element | null;
101
107
  export {};
@@ -1,80 +1,86 @@
1
1
  import React, { ReactNode } from "react";
2
+ import { FormikContextType } from 'formik';
2
3
  import type { ButtonProps } from '@radix-ui/themes';
3
4
  import '../../styles/main.scss';
4
5
  export type ToggleDesign = 'toggle' | 'toggle-material' | 'toggle-outline' | 'toggle-neumorphic';
5
6
  interface ToggleProps extends ButtonProps {
6
7
  /**
7
- * * The required unique identifier for the Toggle input field in useFormikContext().
8
- * Alias referenced as `name` attribute and Formik state key.
9
- * * @example
10
- * alias="numberOfRentalRooms"
11
- */
8
+ * * The required unique identifier for the Toggle input field in useFormikContext().
9
+ * Alias referenced as `name` attribute and Formik state key.
10
+ * * @example
11
+ * alias="numberOfRentalRooms"
12
+ */
12
13
  alias: string;
13
14
  /**
14
- * * The design variation of the Toggle input field.
15
- * Default: 'slider-outline'
16
- * Variants: 'slider', 'slider-outline', 'slider-material', 'slider-neumorphic'.
17
- * * @example
18
- * inputtype="slider-neumorphic"
19
- */
15
+ * * The design variation of the Toggle input field.
16
+ * Default: 'slider-outline'
17
+ * Variants: 'slider', 'slider-outline', 'slider-material', 'slider-neumorphic'.
18
+ * * @example
19
+ * inputtype="slider-neumorphic"
20
+ */
20
21
  inputtype?: ToggleDesign & {};
21
22
  /**
22
- * * The optional input label or description for the Toggle input field.
23
- * * @example
24
- * inputLabel="Enable VΣ AI Insights"
25
- */
23
+ * * The optional input label or description for the Toggle input field.
24
+ * * @example
25
+ * inputLabel="Enable VΣ AI Insights"
26
+ */
26
27
  inputLabel?: string;
27
28
  /**
28
- * * The required viewport column width for the Toggle input field.
29
- * i.e. 1 - 12
30
- * * @example
31
- * width={5}
32
- */
29
+ * * The required viewport column width for the Toggle input field.
30
+ * i.e. 1 - 12
31
+ * * @example
32
+ * width={5}
33
+ */
33
34
  width: number;
34
35
  /**
35
- * * Option to render Toggle input field on new row.
36
- * * @example
37
- * newRow
38
- */
36
+ * * Option to render Toggle input field on new row.
37
+ * * @example
38
+ * newRow
39
+ */
39
40
  newRow?: boolean;
40
41
  /**
41
- * * Option to disable edits for Toggle input field.
42
- * * @example
43
- * readOnly
44
- */
42
+ * * Option to disable edits for Toggle input field.
43
+ * * @example
44
+ * readOnly
45
+ */
45
46
  readOnly?: boolean;
46
47
  /**
47
- * * Option to enable a hint for Toggle input field.
48
- * * @example
49
- * isHinted
50
- */
48
+ * * Option to enable a hint for Toggle input field.
49
+ * * @example
50
+ * isHinted
51
+ */
51
52
  isHinted?: boolean;
52
53
  /**
53
- * * Option to specify hint text for Toggle input field.
54
- * * @example
55
- * hintText="This is a hint for a VΣ Toggle input"
56
- */
54
+ * * Option to specify hint text for Toggle input field.
55
+ * * @example
56
+ * hintText="This is a hint for a VΣ Toggle input"
57
+ */
57
58
  hintText?: string;
58
59
  /**
59
- * * Option to specify a hint url reference or resource for Toggle input field.
60
- * * @example
61
- * hintUrl="https://www.mekaegwim.ca"
62
- */
60
+ * * Option to specify a hint url reference or resource for Toggle input field.
61
+ * * @example
62
+ * hintUrl="https://www.mekaegwim.ca"
63
+ */
63
64
  hintUrl?: string;
64
65
  /**
65
- * * Option to specify an Icon name for Toggle input field.
66
- * e.g. `sun`, `moon`
67
- * Defaults to `stack` icon if `name` not provided
68
- * * @example
69
- * icon="star"
70
- */
66
+ * * Option to specify an Icon name for Toggle input field.
67
+ * e.g. `sun`, `moon`
68
+ * Defaults to `stack` icon if `name` not provided
69
+ * * @example
70
+ * icon="star"
71
+ */
71
72
  icon?: string;
72
73
  /**
73
- * * Option to specify the isRequired error text for the Toggle input field.
74
- * * @example
75
- * errorText="A toggled selection is required"
76
- */
74
+ * * Option to specify the isRequired error text for the Toggle input field.
75
+ * * @example
76
+ * errorText="A toggled selection is required"
77
+ */
77
78
  errorText?: ReactNode | string | null;
79
+ /**
80
+ * * Optional explicit Formik context. Useful when bypassing duplicate
81
+ * context issues in monorepos or bundled npm packages.
82
+ */
83
+ formikContext?: FormikContextType<any>;
78
84
  }
79
- export declare const Toggle: ({ inputtype, alias, readOnly, width, inputLabel, style, children, newRow, isHinted, hintText, hintUrl, errorText, icon, ...props }: ToggleProps) => React.JSX.Element;
85
+ export declare const Toggle: ({ inputtype, alias, readOnly, width, inputLabel, style, children, newRow, isHinted, hintText, hintUrl, errorText, icon, formikContext, ...props }: ToggleProps) => React.JSX.Element | null;
80
86
  export {};
@@ -45,6 +45,11 @@ export interface CodexControlsProps {
45
45
  * Default: "paperplane"
46
46
  */
47
47
  finishIcon?: string;
48
+ /**
49
+ * * Option to enable `onFinish` control button as `submit` button type.
50
+ * Default: true
51
+ */
52
+ onSubmit?: boolean;
48
53
  /**
49
54
  * * Optional callback triggered before navigating to the next step.
50
55
  * Useful for triggering form validation.
@@ -59,4 +64,4 @@ export interface CodexControlsProps {
59
64
  */
60
65
  onFinish?: () => void;
61
66
  }
62
- export declare const CodexControls: ({ nextStepId, prevStepId, nextLabel, prevLabel, finishLabel, prevIcon, nextIcon, finishIcon, onNext, onPrev, onFinish }: CodexControlsProps) => React.JSX.Element;
67
+ export declare const CodexControls: ({ nextStepId, prevStepId, nextLabel, prevLabel, finishLabel, prevIcon, nextIcon, finishIcon, onSubmit, onNext, onPrev, onFinish }: CodexControlsProps) => React.JSX.Element;