@emeraldemperaur/vector-sigma 1.4.18 → 1.4.19

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.
@@ -2,22 +2,87 @@ import React, { ReactNode } from 'react';
2
2
  import '../../styles/main.scss';
3
3
  export type FileInputDesign = 'fileinput' | 'fileinput-material' | 'fileinput-outline' | 'fileinput-neumorphic';
4
4
  export interface FileInputProps {
5
- inputtype?: FileInputDesign & {};
5
+ /**
6
+ * * The required unique identifier for the File input field in useFormikContext().
7
+ * Alias referenced as `name` attribute and Formik state key.
8
+ * * @example
9
+ * alias="pmpCertificationFile"
10
+ */
6
11
  alias: string;
12
+ /**
13
+ * * The design variation of the File input.
14
+ * Default: 'fileinput-outline'
15
+ * Variants: 'fileinput', 'fileinput-outline', 'fileinput-material', 'fileinput-neumorphic'.
16
+ * * @example
17
+ * inputtype="fileinput-neumorphic"
18
+ */
19
+ inputtype?: FileInputDesign & {};
20
+ /**
21
+ * * The optional input label or description for the File input field.
22
+ * * @example
23
+ * inputLabel="Upload PMP® Certication"
24
+ */
7
25
  inputLabel?: string;
8
- icon?: React.ReactNode;
26
+ /**
27
+ * * The required viewport column width for the File input field.
28
+ * i.e. 1 - 12
29
+ * * @example
30
+ * width={5}
31
+ */
9
32
  width: number;
10
- defaultvalue?: any;
11
- value?: any;
33
+ /**
34
+ * * Option to render File input field on new row.
35
+ * * @example
36
+ * newRow
37
+ */
12
38
  newRow?: boolean;
13
- placeholder?: string;
39
+ /**
40
+ * * Option to disable edits for File input field.
41
+ * * @example
42
+ * readOnly
43
+ */
14
44
  readOnly?: boolean;
45
+ /**
46
+ * * Option to enable a hint for File input field.
47
+ * * @example
48
+ * isHinted
49
+ */
15
50
  isHinted?: boolean;
51
+ /**
52
+ * * Option to specify hint text for File input field.
53
+ * * @example
54
+ * hintText="This is a hint for a VΣ File"
55
+ */
16
56
  hintText?: string;
57
+ /**
58
+ * * Option to specify a hint url reference or resource for File input field.
59
+ * * @example
60
+ * hintUrl="https://www.mekaegwim.ca"
61
+ */
17
62
  hintUrl?: string;
63
+ /**
64
+ * * Option to enable image file previews for File input field.
65
+ * * @example
66
+ * preview
67
+ */
18
68
  preview?: boolean;
69
+ /**
70
+ * * Option to specify the .scss class selector for the File input field.
71
+ * * @example
72
+ * className="teletraan-1-file"
73
+ */
19
74
  className?: string;
75
+ /**
76
+ * * Option to specify the isRequired error text for the File input field.
77
+ * * @example
78
+ * errorText="Proof of PMP® certificartion is required"
79
+ */
20
80
  errorText?: ReactNode | string | null;
81
+ /**
82
+ * * Option to inject custom CSS the File input field.
83
+ * * @example
84
+ * style={{ color: "#000000" }}
85
+ */
21
86
  style?: React.CSSProperties;
22
87
  }
23
- export declare const File: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, newRow, isHinted, hintText, hintUrl, errorText, preview, className, style, ...props }: FileInputProps) => React.JSX.Element;
88
+ export declare const File: ({ inputtype, alias, readOnly, width, inputLabel, newRow, isHinted, hintText, hintUrl, errorText, preview, className, style, ...props }: FileInputProps) => React.JSX.Element;
@@ -2,22 +2,93 @@ import React, { ReactNode } from 'react';
2
2
  import '../../styles/main.scss';
3
3
  export type FileMultipleInputDesign = 'filemultiple' | 'filemultiple-material' | 'filemultiple-outline' | 'filemultiple-neumorphic';
4
4
  export interface FileMultipleInputProps {
5
- inputtype?: FileMultipleInputDesign;
5
+ /**
6
+ * * The required unique identifier for the FileMultiple input field in useFormikContext().
7
+ * Alias referenced as `name` attribute and Formik state key.
8
+ * * @example
9
+ * alias="awsCertificationFiles"
10
+ */
6
11
  alias: string;
12
+ /**
13
+ * * The design variation of the FileMultiple input.
14
+ * Default: 'fileinput-outline'
15
+ * Variants: 'fileinput', 'fileinput-outline', 'fileinput-material', 'fileinput-neumorphic'.
16
+ * * @example
17
+ * inputtype="fileinput-neumorphic"
18
+ */
19
+ inputtype?: FileMultipleInputDesign;
20
+ /**
21
+ * * The optional input label or description for the FileMultiple input field.
22
+ * * @example
23
+ * inputLabel="Upload AWS Certication(s)"
24
+ */
7
25
  inputLabel?: string;
8
- icon?: React.ReactNode;
26
+ /**
27
+ * * The required viewport column width for the FileMultiple input field.
28
+ * i.e. 1 - 12
29
+ * * @example
30
+ * width={5}
31
+ */
9
32
  width: number;
10
- defaultvalue?: any;
11
- value?: any;
33
+ /**
34
+ * * Option to render FileMultiple input field on new row.
35
+ * * @example
36
+ * newRow
37
+ */
12
38
  newRow?: boolean;
39
+ /**
40
+ * * Option to force set the placeholder text for a FileMultiple input field.
41
+ * * @example
42
+ * placeholder="Select an auto model"
43
+ */
13
44
  placeholder?: string;
45
+ /**
46
+ * * Option to disable edits for FileMultiple input field.
47
+ * * @example
48
+ * readOnly
49
+ */
14
50
  readOnly?: boolean;
51
+ /**
52
+ * * Option to enable a hint for FileMultiple input field.
53
+ * * @example
54
+ * isHinted
55
+ */
15
56
  isHinted?: boolean;
57
+ /**
58
+ * * Option to specify hint text for FileMultiple input field.
59
+ * * @example
60
+ * hintText="This is a hint for a VΣ FileMultiple"
61
+ */
16
62
  hintText?: string;
63
+ /**
64
+ * * Option to specify a hint url reference or resource for FileMultiple input field.
65
+ * * @example
66
+ * hintUrl="https://www.mekaegwim.ca"
67
+ */
17
68
  hintUrl?: string;
69
+ /**
70
+ * * Option to enable image file previews for FileMultiple input field.
71
+ * * @example
72
+ * preview
73
+ */
18
74
  preview?: boolean;
75
+ /**
76
+ * * Option to specify the isRequired error text for the FileMultiple input field.
77
+ * * @example
78
+ * errorText="Proof of AWS certificartion is required"
79
+ */
19
80
  errorText?: ReactNode | string | null;
81
+ /**
82
+ * * Option to specify the .scss class selector for the FileMultiple input field.
83
+ * * @example
84
+ * className="teletraan-1-file"
85
+ */
20
86
  className?: string;
87
+ /**
88
+ * * Option to inject custom CSS the FileMultiple input field.
89
+ * * @example
90
+ * style={{ color: "#000000" }}
91
+ */
21
92
  style?: React.CSSProperties;
22
93
  }
23
94
  export declare const FileMultiple: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, newRow, isHinted, hintText, hintUrl, errorText, preview, className, style, ...props }: FileMultipleInputProps) => React.JSX.Element;
@@ -2,6 +2,11 @@ import React from "react";
2
2
  import * as Flags from "country-flag-icons/react/3x2";
3
3
  type CountryCode = keyof typeof Flags;
4
4
  export interface FlagIconProps {
5
+ /**
6
+ * * The required country identifier for the FlagIcon component.
7
+ * * @example
8
+ * alias="NG"
9
+ */
5
10
  country: CountryCode | 'EU';
6
11
  }
7
12
  export declare const FlagIcon: ({ country }: FlagIconProps) => React.JSX.Element;
@@ -2,16 +2,77 @@ import React from 'react';
2
2
  export type ImageDesign = 'outline' | 'material' | 'neumorphic';
3
3
  export type ImageLayout = 'normal' | 'rounded' | 'squared';
4
4
  export interface ImageDisplayProps {
5
+ /**
6
+ * * The required unique identifier for the ImageOutput component.
7
+ * * @example
8
+ * id="profileImage"
9
+ */
5
10
  id: string | number;
11
+ /**
12
+ * * The required source or url file path for the ImageOutput component.
13
+ * * @example
14
+ * src="https://www.mekaegwim.ca/logo.png"
15
+ */
6
16
  src: string;
17
+ /**
18
+ * * The optional alternative text for ImageOutput component accessibility
19
+ * * @example
20
+ * src="https://www.mekaegwim.ca/logo.png"
21
+ */
7
22
  alt?: string;
23
+ /**
24
+ * * The design variation of the ImageOutput component.
25
+ * Default: 'outline'
26
+ * Variants: 'outline', 'material', 'neumorphic'.
27
+ * * @example
28
+ * design="neumorphic"
29
+ */
8
30
  design?: ImageDesign & {};
31
+ /**
32
+ * * The layout variation of the ImageOutput component.
33
+ * Default: 'normal'
34
+ * Variants: 'normal', 'rounded', 'squared'.
35
+ * * @example
36
+ * design="rounded"
37
+ */
9
38
  layout?: ImageLayout & {};
39
+ /**
40
+ * * The aspect ratio of the ImageOutput component.
41
+ * Default: 16 / 9
42
+ * Variants: 16 / 9, 4 / 3, 1.
43
+ * * @example
44
+ * aspectratio={ 16 / 9 || 4 / 3 }
45
+ */
10
46
  aspectratio?: number;
47
+ /**
48
+ * * Option to specify a height for ImageOutput component.
49
+ * * @example
50
+ * preview
51
+ */
11
52
  height?: string | number;
53
+ /**
54
+ * * Option to specify a width for ImageOutput component.
55
+ * * @example
56
+ * preview
57
+ */
12
58
  width?: string | number;
59
+ /**
60
+ * * Option to specify the .scss class selector for the ImageOutput component.
61
+ * * @example
62
+ * className="teletraan-1-image"
63
+ */
13
64
  className?: string;
65
+ /**
66
+ * * Option to inject custom CSS the ImageOutput component.
67
+ * * @example
68
+ * style={{ color: "#000000" }}
69
+ */
14
70
  style?: React.CSSProperties;
71
+ /**
72
+ * * onClick event handler function for ImageOutput component.
73
+ * * @example
74
+ * onClick={onClickHandlerFunction}
75
+ */
15
76
  onClick?: () => void;
16
77
  }
17
78
  export declare const ImageOutput: ({ id, src, alt, design, layout, aspectratio, height, width, className, style, onClick, }: ImageDisplayProps) => React.JSX.Element;
@@ -4,24 +4,103 @@ import '../../styles/main.scss';
4
4
  export type InputType = 'date' | 'datetime-local' | 'email' | 'hidden' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';
5
5
  export type InputDesign = "input" | "input-material" | "input-outline" | "input-neumorphic";
6
6
  export type xInputFieldProps = React.ComponentProps<typeof TextField.Root> & {
7
+ /**
8
+ * * The required unique identifier for the Input field in useFormikContext().
9
+ * Alias referenced as `name` attribute and Formik state key.
10
+ * * @example
11
+ * alias="userInput"
12
+ */
7
13
  alias: string;
14
+ /**
15
+ * * The optional input value type for the Input field.
16
+ * Default: 'text'
17
+ * Options: "number" | "hidden" | "date" | "datetime-local" |
18
+ * "email" | "month" | "password" | "search" |
19
+ * "tel" | "text" | "time" | "url" | "week"
20
+ * * @example
21
+ * inputtype="email"
22
+ */
8
23
  inputtype?: InputType;
24
+ /**
25
+ * * The optional input label or description for the Input field.
26
+ * * @example
27
+ * inputLabel="Upload PMP® Certication"
28
+ */
9
29
  inputLabel?: string;
30
+ /**
31
+ * * The required viewport column width for the Input field.
32
+ * i.e. 1 - 12
33
+ * * @example
34
+ * width={5}
35
+ */
10
36
  width: number;
37
+ /**
38
+ * * Option to render Input field on new row.
39
+ * * @example
40
+ * newRow
41
+ */
11
42
  newRow?: boolean;
43
+ /**
44
+ * * Option to force set the default value for Input field.
45
+ * * @example
46
+ * placeholder="Enter a value"
47
+ */
12
48
  placeholder?: string;
49
+ /**
50
+ * * Option to disable edits for Input field.
51
+ * * @example
52
+ * readOnly
53
+ */
13
54
  readOnly?: boolean;
55
+ /**
56
+ * * Option to enable a hint for Input field.
57
+ * * @example
58
+ * isHinted
59
+ */
14
60
  isHinted?: boolean;
61
+ /**
62
+ * * Option to specify hint text for Input field.
63
+ * * @example
64
+ * hintText="This is a hint for a VΣ Input field"
65
+ */
15
66
  hintText?: string;
67
+ /**
68
+ * * Option to specify a hint url reference or resource for Input field.
69
+ * * @example
70
+ * hintUrl="https://www.mekaegwim.ca"
71
+ */
16
72
  hintUrl?: string;
73
+ /**
74
+ * * Option to render Input field with icon passed as a ReactNode {}.
75
+ * * @example
76
+ * icon={<Icon name="stack"/>}
77
+ */
17
78
  icon?: React.ReactNode;
18
- defaultvalue?: string;
19
- value?: string;
79
+ /**
80
+ * * Option to specify the isRequired error text for the Input field.
81
+ * * @example
82
+ * errorText="Username is required"
83
+ */
20
84
  errorText?: ReactNode | string | null;
85
+ /**
86
+ * * Option to specify the .scss class selector for the Input field.
87
+ * * @example
88
+ * className="teletraan-1-input"
89
+ */
21
90
  className?: string;
91
+ /**
92
+ * * Option to inject custom CSS the Input field.
93
+ * * @example
94
+ * style={{ color: "#000000" }}
95
+ */
22
96
  style?: React.CSSProperties;
97
+ /**
98
+ * * The design variation of the Input field.
99
+ * Default: 'input-outline'
100
+ * Variants: 'input', 'input-outline', 'input-material', 'input-neumorphic'.
101
+ * * @example
102
+ * inputvariant="input-neumorphic"
103
+ */
23
104
  inputvariant?: InputDesign;
24
- delimiter?: string;
25
- format?: number[];
26
105
  };
27
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;
@@ -3,19 +3,107 @@ import { SupportedCurrency } from '../../utils/currencyconfig';
3
3
  import { InputDesign } from "components/input/input";
4
4
  import '../../styles/main.scss';
5
5
  type CurrencyInputProps = {
6
+ /**
7
+ * * The required unique identifier for the CurrencyInput field in useFormikContext().
8
+ * Alias referenced as `name` attribute and Formik state key.
9
+ * * @example
10
+ * alias="productSKUPrice"
11
+ */
6
12
  alias: string;
13
+ /**
14
+ * * The optional input value type for the CurrencyInput field.
15
+ * Default: 'currency' -> "USD"
16
+ * Options: "USD" | "CAD" | "MXN" | "GTQ" | "CRC" | "DOP" | "JMD" | "PAB" | "BRL"
17
+ * | "ARS" | "COP" | "CLP" | "PEN" | "UYU" | "PYG" | "BOB" | "VES" | "EUR" | "GBP"
18
+ * | "CHF" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "HUF" | "RON" | "ISK" | "UAH"
19
+ * | "JPY" | "CNY" | "HKD" | "TWD" | "INR" | "KRW" | "SGD" | "MYR" | "THB" | "VND"
20
+ * | "PHP" | "IDR" | "PKR" | "AED" | "SAR" | "ILS" | "TRY" | "QAR" | "ZAR" | "NGN"
21
+ * | "EGP" | "KES" | "GHS" | "MAD" | "TZS" | "UGX" | "XOF" | "AUD" | "NZD" | "FJD"
22
+ * * @example
23
+ * inputtype="currency"
24
+ */
7
25
  inputtype?: SupportedCurrency | "currency";
26
+ /**
27
+ * * The optional input label or description for the CurrencyInput field.
28
+ * * @example
29
+ * inputLabel="VΣ Product Price"
30
+ */
8
31
  inputLabel?: string;
32
+ /**
33
+ * * The required viewport column width for the CurrencyInput field.
34
+ * i.e. 1 - 12
35
+ * * @example
36
+ * width={5}
37
+ */
9
38
  width: number;
39
+ /**
40
+ * * Option to render CurrencyInput field on new row.
41
+ * * @example
42
+ * newRow
43
+ */
10
44
  newRow?: boolean;
45
+ /**
46
+ * * The optional default currency for the CurrencyInput field.
47
+ * Default: 'USD'
48
+ * Options: "USD" | "CAD" | "MXN" | "GTQ" | "CRC" | "DOP" | "JMD" | "PAB" | "BRL"
49
+ * | "ARS" | "COP" | "CLP" | "PEN" | "UYU" | "PYG" | "BOB" | "VES" | "EUR" | "GBP"
50
+ * | "CHF" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "HUF" | "RON" | "ISK" | "UAH"
51
+ * | "JPY" | "CNY" | "HKD" | "TWD" | "INR" | "KRW" | "SGD" | "MYR" | "THB" | "VND"
52
+ * | "PHP" | "IDR" | "PKR" | "AED" | "SAR" | "ILS" | "TRY" | "QAR" | "ZAR" | "NGN"
53
+ * | "EGP" | "KES" | "GHS" | "MAD" | "TZS" | "UGX" | "XOF" | "AUD" | "NZD" | "FJD"
54
+ * * @example
55
+ * defaultvalue="USD"
56
+ */
11
57
  defaultvalue?: string;
58
+ /**
59
+ * * Option to set the default placeholder text for the CurrencyInput input field.
60
+ * * @example
61
+ * placeholder="0.00"
62
+ */
12
63
  placeholder?: string;
64
+ /**
65
+ * * Option to disable edits for CurrencyInput input field.
66
+ * * @example
67
+ * readOnly
68
+ */
13
69
  readOnly?: boolean;
70
+ /**
71
+ * * Option to enable a hint for CurrencyInput input field.
72
+ * * @example
73
+ * isHinted
74
+ */
14
75
  isHinted?: boolean;
76
+ /**
77
+ * * Option to specify hint text for CurrencyInput input field.
78
+ * * @example
79
+ * hintText="This is a hint for a VΣ CurrencyInput"
80
+ */
15
81
  hintText?: string;
82
+ /**
83
+ * * Option to specify the isRequired error text for the CurrencyInput input field.
84
+ * * @example
85
+ * errorText="VΣ product price is required"
86
+ */
16
87
  errorText?: ReactNode | string | null;
88
+ /**
89
+ * * Option to specify a hint url reference or resource for CurrencyInput input field.
90
+ * * @example
91
+ * hintUrl="https://www.mekaegwim.ca"
92
+ */
17
93
  hintUrl?: string;
94
+ /**
95
+ * * The design variation of the CurrencyInput input.
96
+ * Default: 'input-outline'
97
+ * Variants: 'input', 'input-outline', 'input-material', 'input-neumorphic',
98
+ * * @example
99
+ * inputtype="input-neumorphic"
100
+ */
18
101
  inputvariant?: InputDesign & {};
102
+ /**
103
+ * * Option to specify the .scss class selector for the CurrencyInput input field.
104
+ * * @example
105
+ * className="teletraan-1-currencyinput"
106
+ */
19
107
  className?: string;
20
108
  };
21
109
  export declare const CurrencyInput: ({ alias, inputtype, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, ...props }: CurrencyInputProps) => React.JSX.Element;
@@ -2,18 +2,88 @@ import React, { ReactNode } from "react";
2
2
  import { InputDesign } from "components/input/input";
3
3
  import '../../styles/main.scss';
4
4
  type StockInputProps = {
5
+ /**
6
+ * * The required unique identifier for the StockInput field in useFormikContext().
7
+ * Alias referenced as `name` attribute and Formik state key.
8
+ * * @example
9
+ * alias="restrictedStocksTSLA"
10
+ */
5
11
  alias: string;
12
+ /**
13
+ * * The optional input label or description for the StockInput field.
14
+ * * @example
15
+ * inputLabel="VΣ Stock Price"
16
+ */
6
17
  inputLabel?: string;
18
+ /**
19
+ * * The required viewport column width for the StockInput field.
20
+ * i.e. 1 - 12
21
+ * * @example
22
+ * width={5}
23
+ */
7
24
  width: number;
25
+ /**
26
+ * * The optional default stock ticker symbol for the StockInput field.
27
+ * Renders a chart icon if no ticker symbol text value is provided
28
+ * * @example
29
+ * defaultvalue="TSLA"
30
+ */
8
31
  defaultvalue: string;
32
+ /**
33
+ * * Option to render StockInput field on new row.
34
+ * * @example
35
+ * newRow
36
+ */
9
37
  newRow?: boolean;
38
+ /**
39
+ * * Option to set the default placeholder text for the StockInput input field.
40
+ * * @example
41
+ * placeholder="00.00"
42
+ */
10
43
  placeholder?: string;
44
+ /**
45
+ * * Option to disable edits for StockInput input field.
46
+ * * @example
47
+ * readOnly
48
+ */
11
49
  readOnly?: boolean;
50
+ /**
51
+ * * Option to enable a hint for StockInput input field.
52
+ * * @example
53
+ * isHinted
54
+ */
12
55
  isHinted?: boolean;
56
+ /**
57
+ * * Option to specify hint text for StockInput input field.
58
+ * * @example
59
+ * hintText="This is a hint for a VΣ StockInput"
60
+ */
13
61
  hintText?: string;
62
+ /**
63
+ * * Option to specify a hint url reference or resource for StockInput input field.
64
+ * * @example
65
+ * hintUrl="https://www.mekaegwim.ca"
66
+ */
14
67
  hintUrl?: string;
68
+ /**
69
+ * * Option to specify the isRequired error text for the StockInput input field.
70
+ * * @example
71
+ * errorText="VΣ product price is required"
72
+ */
15
73
  errorText?: ReactNode | string | null;
74
+ /**
75
+ * * The design variation of the StockInput input.
76
+ * Default: 'input-outline'
77
+ * Variants: 'input', 'input-outline', 'input-material', 'input-neumorphic',
78
+ * * @example
79
+ * inputtype="input-neumorphic"
80
+ */
16
81
  inputvariant?: InputDesign & {};
82
+ /**
83
+ * * Option to specify the .scss class selector for the StockInput input field.
84
+ * * @example
85
+ * className="teletraan-1-stockinput"
86
+ */
17
87
  className?: string;
18
88
  };
19
89
  export declare const StockInput: ({ alias, inputLabel, width, defaultvalue, placeholder, newRow, isHinted, hintText, hintUrl, errorText, readOnly, inputvariant, className, ...props }: StockInputProps) => React.JSX.Element;