@emeraldemperaur/vector-sigma 1.4.17 → 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.
- package/README.md +12 -1
- package/lib/index.cjs +24 -29
- package/lib/index.esm.js +24 -29
- package/lib/types/components/datepicker/datepicker.d.ts +64 -0
- package/lib/types/components/daterangepicker/daterangepicker.d.ts +64 -0
- package/lib/types/components/datetimepicker/datetimepicker.d.ts +64 -0
- package/lib/types/components/dropdown/dropdown.d.ts +88 -14
- package/lib/types/components/file/file.d.ts +71 -6
- package/lib/types/components/file/filemultiple.d.ts +75 -4
- package/lib/types/components/icons/flagicon.d.ts +5 -0
- package/lib/types/components/image/image.d.ts +61 -0
- package/lib/types/components/input/input.d.ts +83 -4
- package/lib/types/components/input/uuidInput.d.ts +1 -1
- package/lib/types/components/inputcurrency/inputcurrency.d.ts +88 -0
- package/lib/types/components/inputcurrency/stockInput.d.ts +70 -0
- package/lib/types/components/radio/radio.d.ts +89 -6
- package/lib/types/components/select/select.d.ts +88 -14
- package/lib/types/components/selectmultiple/selectmultiple.d.ts +80 -4
- package/lib/types/components/slider/range.d.ts +86 -7
- package/lib/types/components/slider/slider.d.ts +84 -9
- package/lib/types/components/toggle/toggle.d.ts +62 -1
- package/lib/types/components/xtitle/xtitle.d.ts +73 -1
- package/lib/types/layouts/column/column.d.ts +44 -0
- package/lib/types/layouts/container/container.d.ts +15 -0
- package/lib/types/layouts/row/row.d.ts +20 -0
- package/lib/types/teletraan1.d.ts +2 -1
- package/package.json +7 -2
|
@@ -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;
|
|
@@ -3,25 +3,108 @@ import { InputOption } from 'utils/vinci';
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type RadioDesign = 'radio' | 'radio-material' | 'radio-outline' | 'radio-neumorphic';
|
|
5
5
|
interface RadioGroupProps {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* * The required unique identifier for the Radio Group input field in useFormikContext().
|
|
8
|
+
* Alias referenced as `name` attribute and Formik state key.
|
|
9
|
+
* * @example
|
|
10
|
+
* alias="productSKUPrice"
|
|
11
|
+
*/
|
|
7
12
|
alias: string;
|
|
13
|
+
/**
|
|
14
|
+
* * The optional input label or description for the Radio Group input field.
|
|
15
|
+
* * @example
|
|
16
|
+
* inputLabel="VΣ Stock Price"
|
|
17
|
+
*/
|
|
8
18
|
inputLabel?: string;
|
|
9
|
-
|
|
19
|
+
/**
|
|
20
|
+
* * The optional input value type for the Radio Group input field.
|
|
21
|
+
* Default: 'text'
|
|
22
|
+
* Options: "number" | "hidden" | "date" | "datetime-local" |
|
|
23
|
+
* "email" | "month" | "password" | "search" |
|
|
24
|
+
* "tel" | "text" | "time" | "url" | "week"
|
|
25
|
+
* * @example
|
|
26
|
+
* inputtype="email"
|
|
27
|
+
*/
|
|
28
|
+
inputtype?: RadioDesign & {};
|
|
29
|
+
/**
|
|
30
|
+
* * The required viewport column width for the Radio Group input field.
|
|
31
|
+
* i.e. 1 - 12
|
|
32
|
+
* * @example
|
|
33
|
+
* width={5}
|
|
34
|
+
*/
|
|
10
35
|
width: number;
|
|
11
|
-
|
|
12
|
-
|
|
36
|
+
/**
|
|
37
|
+
* * Option to render Radio Group input field on new row.
|
|
38
|
+
* * @example
|
|
39
|
+
* newRow
|
|
40
|
+
*/
|
|
13
41
|
newRow?: boolean;
|
|
14
|
-
|
|
42
|
+
/**
|
|
43
|
+
* * Option to disable edits for Radio Group input field.
|
|
44
|
+
* * @example
|
|
45
|
+
* readOnly
|
|
46
|
+
*/
|
|
15
47
|
readOnly?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* * Option to enable a hint for Radio Group input field.
|
|
50
|
+
* * @example
|
|
51
|
+
* isHinted
|
|
52
|
+
*/
|
|
16
53
|
isHinted?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* * Option to specify hint text for Radio Group input field.
|
|
56
|
+
* * @example
|
|
57
|
+
* hintText="This is a hint for a VΣ RadioGroup"
|
|
58
|
+
*/
|
|
17
59
|
hintText?: string;
|
|
60
|
+
/**
|
|
61
|
+
* * Option to specify a hint url reference or resource for Radio Group input field.
|
|
62
|
+
* * @example
|
|
63
|
+
* hintUrl="https://www.mekaegwim.ca"
|
|
64
|
+
*/
|
|
18
65
|
hintUrl?: string;
|
|
66
|
+
/**
|
|
67
|
+
* * Required inputOptions{} for the Radio Group input field.
|
|
68
|
+
* * @example
|
|
69
|
+
* inputOptions={
|
|
70
|
+
[
|
|
71
|
+
{optionid: 1, optionvalue: "Kaiju", optionurl:"https://github.com/emeraldemperaur", text: "Kaiju"},
|
|
72
|
+
{optionid: 2, optionvalue: "MekaGodzilla", optionurl:"https://github.com/emeraldemperaur", text: "MekaGodzilla"},
|
|
73
|
+
{optionid: 3, optionvalue: "Zaibatsu", optionurl:"https://github.com/emeraldemperaur", text: "Zaibatsu"},
|
|
74
|
+
]}
|
|
75
|
+
*/
|
|
19
76
|
inputOptions: InputOption[];
|
|
77
|
+
/**
|
|
78
|
+
* * Option to specify CSS layout direction for the Radio Group input field.
|
|
79
|
+
* Default: "row"
|
|
80
|
+
* * @example
|
|
81
|
+
* direction="column"
|
|
82
|
+
*/
|
|
20
83
|
direction?: 'row' | 'column';
|
|
84
|
+
/**
|
|
85
|
+
* * Option to specify CSS grid template columns for the Radio Group input field.
|
|
86
|
+
* * @example
|
|
87
|
+
* columns="1fr 1fr"
|
|
88
|
+
*/
|
|
21
89
|
columns?: string;
|
|
90
|
+
/**
|
|
91
|
+
* * Option to specify the .scss class selector for the Radio Group input field.
|
|
92
|
+
* * @example
|
|
93
|
+
* className="teletraan-1-stockinput"
|
|
94
|
+
*/
|
|
22
95
|
className?: string;
|
|
96
|
+
/**
|
|
97
|
+
* * Option to specify the isRequired error text for the Radio Group input field.
|
|
98
|
+
* * @example
|
|
99
|
+
* errorText="VΣ product price is required"
|
|
100
|
+
*/
|
|
23
101
|
errorText?: ReactNode | string | null;
|
|
102
|
+
/**
|
|
103
|
+
* * Option to inject custom CSS the Radio Group input field.
|
|
104
|
+
* * @example
|
|
105
|
+
* style={{ color: "#000000" }}
|
|
106
|
+
*/
|
|
24
107
|
style?: React.CSSProperties;
|
|
25
108
|
}
|
|
26
|
-
export declare const RadioGroupInput: ({ inputtype, alias, readOnly, width, inputLabel,
|
|
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;
|
|
27
110
|
export {};
|
|
@@ -1,32 +1,106 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { InputOption } from "utils/vinci";
|
|
2
3
|
import '../../styles/main.scss';
|
|
3
4
|
export type OptionSelectDesign = 'dropdown' | 'dropdown-material' | 'dropdown-outline' | 'dropdown-neumorphic';
|
|
4
5
|
export interface SelectProps {
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* * The required unique identifier for the OptionSelect input field in useFormikContext().
|
|
8
|
+
* Alias referenced as `name` attribute and Formik state key.
|
|
9
|
+
* * @example
|
|
10
|
+
* alias="productCategory"
|
|
11
|
+
*/
|
|
6
12
|
alias: string;
|
|
13
|
+
/**
|
|
14
|
+
* * The design variation of the OptionSelect input field.
|
|
15
|
+
* Default: 'dropdown-outline'
|
|
16
|
+
* Variants: 'dropdown', 'dropdown-outline', 'dropdown-material', 'dropdown-neumorphic'.
|
|
17
|
+
* * @example
|
|
18
|
+
* inputtype="dropdown-neumorphic"
|
|
19
|
+
*/
|
|
20
|
+
inputtype?: OptionSelectDesign & {};
|
|
21
|
+
/**
|
|
22
|
+
* * The optional input label or description for the OptionSelect input field.
|
|
23
|
+
* * @example
|
|
24
|
+
* inputLabel="Choose a VΣ category"
|
|
25
|
+
*/
|
|
7
26
|
inputLabel?: string;
|
|
8
|
-
|
|
27
|
+
/**
|
|
28
|
+
* * The required viewport column width for the OptionSelect input field.
|
|
29
|
+
* i.e. 1 - 12
|
|
30
|
+
* * @example
|
|
31
|
+
* width={5}
|
|
32
|
+
*/
|
|
9
33
|
width: number;
|
|
10
|
-
|
|
11
|
-
|
|
34
|
+
/**
|
|
35
|
+
* * Option to render OptionSelect input field on new row.
|
|
36
|
+
* * @example
|
|
37
|
+
* newRow
|
|
38
|
+
*/
|
|
12
39
|
newRow?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* * Option to force set the placeholder text for a OptionSelect input field.
|
|
42
|
+
* * @example
|
|
43
|
+
* placeholder="Select a category"
|
|
44
|
+
*/
|
|
13
45
|
placeholder?: string;
|
|
46
|
+
/**
|
|
47
|
+
* * Option to disable edits for OptionSelect input field.
|
|
48
|
+
* * @example
|
|
49
|
+
* readOnly
|
|
50
|
+
*/
|
|
14
51
|
readOnly?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* * Option to enable a hint for OptionSelect input field.
|
|
54
|
+
* * @example
|
|
55
|
+
* isHinted
|
|
56
|
+
*/
|
|
15
57
|
isHinted?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* * Option to specify hint text for OptionSelect input field.
|
|
60
|
+
* * @example
|
|
61
|
+
* hintText="This is a hint for a VΣ OptionSelect"
|
|
62
|
+
*/
|
|
16
63
|
hintText?: string;
|
|
64
|
+
/**
|
|
65
|
+
* * Option to specify a hint url reference or resource for OptionSelect input field.
|
|
66
|
+
* * @example
|
|
67
|
+
* hintUrl="https://www.mekaegwim.ca"
|
|
68
|
+
*/
|
|
17
69
|
hintUrl?: string;
|
|
70
|
+
/**
|
|
71
|
+
* * onValueChange event handler function for OptionSelect input field.
|
|
72
|
+
* * @example
|
|
73
|
+
* props.onValueChange(finalVal)
|
|
74
|
+
*/
|
|
18
75
|
onValueChange?: (value: string) => void;
|
|
76
|
+
/**
|
|
77
|
+
* * Option to specify the isRequired error text for the OptionSelect input field.
|
|
78
|
+
* * @example
|
|
79
|
+
* errorText="VΣ category is required"
|
|
80
|
+
*/
|
|
19
81
|
errorText?: ReactNode | string | null;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
82
|
+
/**
|
|
83
|
+
* * Required inputOptions{} for the OptionSelect input field.
|
|
84
|
+
* * @example
|
|
85
|
+
* inputOptions={
|
|
86
|
+
[
|
|
87
|
+
{optionid: 1, optionvalue: "Kaiju", optionurl:"https://github.com/emeraldemperaur", text: "Kaiju"},
|
|
88
|
+
{optionid: 2, optionvalue: "MekaGodzilla", optionurl:"https://github.com/emeraldemperaur", text: "MekaGodzilla"},
|
|
89
|
+
{optionid: 3, optionvalue: "Zaibatsu", optionurl:"https://github.com/emeraldemperaur", text: "Zaibatsu"},
|
|
90
|
+
]}
|
|
91
|
+
*/
|
|
92
|
+
inputOptions: InputOption[];
|
|
93
|
+
/**
|
|
94
|
+
* * Option to specify the .scss class selector for the OptionSelect input field.
|
|
95
|
+
* * @example
|
|
96
|
+
* className="teletraan-1-optionselect"
|
|
97
|
+
*/
|
|
29
98
|
className?: string;
|
|
99
|
+
/**
|
|
100
|
+
* * Option to inject custom CSS the OptionSelect input field.
|
|
101
|
+
* * @example
|
|
102
|
+
* style={{ color: "#000000" }}
|
|
103
|
+
*/
|
|
30
104
|
style?: React.CSSProperties;
|
|
31
105
|
}
|
|
32
|
-
export declare const OptionSelect: ({ inputtype, alias, readOnly, width, inputLabel, placeholder,
|
|
106
|
+
export declare const OptionSelect: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, inputOptions, style, newRow, isHinted, hintText, hintUrl, errorText, ...props }: SelectProps) => React.JSX.Element;
|
|
@@ -3,22 +3,98 @@ import { InputOption } from "utils/vinci";
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type MultipleSelectDesign = 'multiselect' | 'multiselect-material' | 'multiselect-outline' | 'multiselect-neumorphic';
|
|
5
5
|
interface MultipleSelectProps {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* * The required unique identifier for the MultipleSelect input field in useFormikContext().
|
|
8
|
+
* Alias referenced as `name` attribute and Formik state key.
|
|
9
|
+
* * @example
|
|
10
|
+
* alias="productCategories"
|
|
11
|
+
*/
|
|
7
12
|
alias: string;
|
|
13
|
+
/**
|
|
14
|
+
* * The design variation of the MultipleSelect input.
|
|
15
|
+
* Default: 'multiselect-outline'
|
|
16
|
+
* Variants: 'multiselect', 'multiselect-outline', 'multiselect-material', 'multiselect-neumorphic'.
|
|
17
|
+
* * @example
|
|
18
|
+
* inputtype="multiselect-neumorphic"
|
|
19
|
+
*/
|
|
20
|
+
inputtype?: MultipleSelectDesign & {};
|
|
21
|
+
/**
|
|
22
|
+
* * The optional input label or description for the MultipleSelect input field.
|
|
23
|
+
* * @example
|
|
24
|
+
* inputLabel="Choose at least one VΣ category"
|
|
25
|
+
*/
|
|
8
26
|
inputLabel?: string;
|
|
9
|
-
|
|
27
|
+
/**
|
|
28
|
+
* * The required viewport column width for the MultipleSelect input field.
|
|
29
|
+
* i.e. 1 - 12
|
|
30
|
+
* * @example
|
|
31
|
+
* width={5}
|
|
32
|
+
*/
|
|
10
33
|
width: number;
|
|
11
|
-
|
|
12
|
-
|
|
34
|
+
/**
|
|
35
|
+
* * Option to render MultipleSelect input field on new row.
|
|
36
|
+
* * @example
|
|
37
|
+
* newRow
|
|
38
|
+
*/
|
|
13
39
|
newRow?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* * Option to force set the placeholder text for a MultipleSelect input field.
|
|
42
|
+
* * @example
|
|
43
|
+
* placeholder="Select products of interest"
|
|
44
|
+
*/
|
|
14
45
|
placeholder?: string;
|
|
46
|
+
/**
|
|
47
|
+
* * Option to disable edits for MultipleSelect input field.
|
|
48
|
+
* * @example
|
|
49
|
+
* readOnly
|
|
50
|
+
*/
|
|
15
51
|
readOnly?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* * Option to enable a hint for MultipleSelect input field.
|
|
54
|
+
* * @example
|
|
55
|
+
* isHinted
|
|
56
|
+
*/
|
|
16
57
|
isHinted?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* * Option to specify hint text for MultipleSelect input field.
|
|
60
|
+
* * @example
|
|
61
|
+
* hintText="This is a hint for a VΣ MultipleSelect"
|
|
62
|
+
*/
|
|
17
63
|
hintText?: string;
|
|
64
|
+
/**
|
|
65
|
+
* * Option to specify a hint url reference or resource for MultipleSelect input field.
|
|
66
|
+
* * @example
|
|
67
|
+
* hintUrl="https://www.mekaegwim.ca"
|
|
68
|
+
*/
|
|
18
69
|
hintUrl?: string;
|
|
70
|
+
/**
|
|
71
|
+
* * Required inputOptions{} for the MultipleSelect input field.
|
|
72
|
+
* * @example
|
|
73
|
+
* inputOptions={
|
|
74
|
+
[
|
|
75
|
+
{optionid: 1, optionvalue: "Kaiju", optionurl:"https://github.com/emeraldemperaur", text: "Kaiju"},
|
|
76
|
+
{optionid: 2, optionvalue: "MekaGodzilla", optionurl:"https://github.com/emeraldemperaur", text: "MekaGodzilla"},
|
|
77
|
+
{optionid: 3, optionvalue: "Zaibatsu", optionurl:"https://github.com/emeraldemperaur", text: "Zaibatsu"},
|
|
78
|
+
]}
|
|
79
|
+
*/
|
|
19
80
|
inputOptions: InputOption[];
|
|
81
|
+
/**
|
|
82
|
+
* * Option to specify the isRequired error text for the MultipleSelect input field.
|
|
83
|
+
* * @example
|
|
84
|
+
* errorText="At least one product category selection is required"
|
|
85
|
+
*/
|
|
20
86
|
errorText?: ReactNode | string | null;
|
|
87
|
+
/**
|
|
88
|
+
* * Option to specify the .scss class selector for the MultipleSelect input field.
|
|
89
|
+
* * @example
|
|
90
|
+
* className="teletraan-1-multipleselect"
|
|
91
|
+
*/
|
|
21
92
|
className?: string;
|
|
93
|
+
/**
|
|
94
|
+
* * Option to inject custom CSS the MultipleSelect input field.
|
|
95
|
+
* * @example
|
|
96
|
+
* style={{ color: "#000000" }}
|
|
97
|
+
*/
|
|
22
98
|
style?: React.CSSProperties;
|
|
23
99
|
}
|
|
24
100
|
export declare const MultipleSelect: ({ inputtype, alias, readOnly, width, inputLabel, placeholder, newRow, isHinted, hintText, hintUrl, errorText, style, inputOptions, className, ...props }: MultipleSelectProps) => React.JSX.Element;
|
|
@@ -2,27 +2,106 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type RangeDesign = 'range' | 'range-material' | 'range-outline' | 'range-neumorphic';
|
|
4
4
|
interface RangeProps {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* * The required unique identifier for the RangeSlider input field in useFormikContext().
|
|
7
|
+
* Alias referenced as `name` attribute and Formik state key.
|
|
8
|
+
* * @example
|
|
9
|
+
* alias="coverageRange"
|
|
10
|
+
*/
|
|
6
11
|
alias: string;
|
|
12
|
+
/**
|
|
13
|
+
* * The optional input label or description for the RangeSlider input field.
|
|
14
|
+
* * @example
|
|
15
|
+
* inputLabel="Specify the desired coverage radius"
|
|
16
|
+
*/
|
|
7
17
|
inputLabel?: string;
|
|
8
|
-
|
|
18
|
+
/**
|
|
19
|
+
* * The design variation of the RangeSlider input.
|
|
20
|
+
* Default: 'range-outline'
|
|
21
|
+
* Variants: 'range', 'range-outline', 'range-material', 'range-neumorphic'.
|
|
22
|
+
* * @example
|
|
23
|
+
* inputtype="range-neumorphic"
|
|
24
|
+
*/
|
|
25
|
+
inputtype?: RangeDesign & {};
|
|
26
|
+
/**
|
|
27
|
+
* * The required viewport column width for the RangeSlider input field.
|
|
28
|
+
* i.e. 1 - 12
|
|
29
|
+
* * @example
|
|
30
|
+
* width={5}
|
|
31
|
+
*/
|
|
9
32
|
width: number;
|
|
10
|
-
|
|
11
|
-
|
|
33
|
+
/**
|
|
34
|
+
* * Option to render RangeSlider input field on new row.
|
|
35
|
+
* * @example
|
|
36
|
+
* newRow
|
|
37
|
+
*/
|
|
12
38
|
newRow?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* * Option to specify the isRequired error text for the RangeSlider input field.
|
|
41
|
+
* * @example
|
|
42
|
+
* errorText="A coverage range selection is required"
|
|
43
|
+
*/
|
|
13
44
|
errorText?: ReactNode | string | null;
|
|
14
|
-
|
|
45
|
+
/**
|
|
46
|
+
* * Option to disable edits for RangeSlider input field.
|
|
47
|
+
* * @example
|
|
48
|
+
* readOnly
|
|
49
|
+
*/
|
|
15
50
|
readOnly?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* * Option to enable a hint for RangeSlider input field.
|
|
53
|
+
* * @example
|
|
54
|
+
* isHinted
|
|
55
|
+
*/
|
|
16
56
|
isHinted?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* * Option to specify hint text for RangeSlider input field.
|
|
59
|
+
* * @example
|
|
60
|
+
* hintText="This is a hint for a VΣ RangeSlider"
|
|
61
|
+
*/
|
|
17
62
|
hintText?: string;
|
|
63
|
+
/**
|
|
64
|
+
* * Option to specify a hint url reference or resource for RangeSlider input field.
|
|
65
|
+
* * @example
|
|
66
|
+
* hintUrl="https://www.mekaegwim.ca"
|
|
67
|
+
*/
|
|
18
68
|
hintUrl?: string;
|
|
69
|
+
/**
|
|
70
|
+
* * Option to specify a minimum value for RangeSlider input field.
|
|
71
|
+
* * @example
|
|
72
|
+
* minvalue={10}
|
|
73
|
+
*/
|
|
19
74
|
minvalue?: number;
|
|
75
|
+
/**
|
|
76
|
+
* * Option to specify a maximum value for RangeSlider input field.
|
|
77
|
+
* * @example
|
|
78
|
+
* minvalue={100}
|
|
79
|
+
*/
|
|
20
80
|
maxvalue?: number;
|
|
81
|
+
/**
|
|
82
|
+
* * Option to specify an incremental step value for RangeSlider input field.
|
|
83
|
+
* * @example
|
|
84
|
+
* minvalue={10}
|
|
85
|
+
*/
|
|
21
86
|
stepvalue?: number;
|
|
87
|
+
/**
|
|
88
|
+
* * Option to specify a number for the minimum steps expected between values for RangeSlider input field.
|
|
89
|
+
* * @example
|
|
90
|
+
* minvalue={10}
|
|
91
|
+
*/
|
|
22
92
|
minStepsBetweenThumbs?: number;
|
|
23
|
-
|
|
93
|
+
/**
|
|
94
|
+
* * Option to specify the .scss class selector for the RangeSlider input field.
|
|
95
|
+
* * @example
|
|
96
|
+
* className="teletraan-1-rangeslider"
|
|
97
|
+
*/
|
|
24
98
|
className?: string;
|
|
99
|
+
/**
|
|
100
|
+
* * Option to inject custom CSS the RangeSlider input field.
|
|
101
|
+
* * @example
|
|
102
|
+
* style={{ color: "#000000" }}
|
|
103
|
+
*/
|
|
25
104
|
style?: React.CSSProperties;
|
|
26
105
|
}
|
|
27
|
-
export declare const RangeSlider: ({ inputtype, alias, readOnly, width, inputLabel,
|
|
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;
|
|
28
107
|
export {};
|
|
@@ -2,25 +2,100 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type SliderDesign = 'slider' | 'slider-material' | 'slider-outline' | 'slider-neumorphic';
|
|
4
4
|
interface SliderProps {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* * The required unique identifier for the SliderInput field in useFormikContext().
|
|
7
|
+
* Alias referenced as `name` attribute and Formik state key.
|
|
8
|
+
* * @example
|
|
9
|
+
* alias="numberOfRentalRooms"
|
|
10
|
+
*/
|
|
6
11
|
alias: string;
|
|
12
|
+
/**
|
|
13
|
+
* * The optional input label or description for the SliderInput field.
|
|
14
|
+
* * @example
|
|
15
|
+
* inputLabel="Specify number of rooms for rental"
|
|
16
|
+
*/
|
|
7
17
|
inputLabel?: string;
|
|
8
|
-
|
|
18
|
+
/**
|
|
19
|
+
* * The design variation of the SliderInput field.
|
|
20
|
+
* Default: 'slider-outline'
|
|
21
|
+
* Variants: 'slider', 'slider-outline', 'slider-material', 'slider-neumorphic'.
|
|
22
|
+
* * @example
|
|
23
|
+
* inputtype="slider-neumorphic"
|
|
24
|
+
*/
|
|
25
|
+
inputtype?: SliderDesign & {};
|
|
26
|
+
/**
|
|
27
|
+
* * The required viewport column width for the SliderInput field.
|
|
28
|
+
* i.e. 1 - 12
|
|
29
|
+
* * @example
|
|
30
|
+
* width={5}
|
|
31
|
+
*/
|
|
9
32
|
width: number;
|
|
10
|
-
|
|
11
|
-
|
|
33
|
+
/**
|
|
34
|
+
* * Option to render SliderInput field on new row.
|
|
35
|
+
* * @example
|
|
36
|
+
* newRow
|
|
37
|
+
*/
|
|
12
38
|
newRow?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* * Option to specify the isRequired error text for the SliderInput field.
|
|
41
|
+
* * @example
|
|
42
|
+
* errorText="A number range selection is required"
|
|
43
|
+
*/
|
|
13
44
|
errorText?: ReactNode | string | null;
|
|
14
|
-
|
|
45
|
+
/**
|
|
46
|
+
* * Option to disable edits for SliderInput field.
|
|
47
|
+
* * @example
|
|
48
|
+
* readOnly
|
|
49
|
+
*/
|
|
15
50
|
readOnly?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* * Option to enable a hint for SliderInput field.
|
|
53
|
+
* * @example
|
|
54
|
+
* isHinted
|
|
55
|
+
*/
|
|
16
56
|
isHinted?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* * Option to specify hint text for SliderInput field.
|
|
59
|
+
* * @example
|
|
60
|
+
* hintText="This is a hint for a VΣ SliderInput"
|
|
61
|
+
*/
|
|
17
62
|
hintText?: string;
|
|
63
|
+
/**
|
|
64
|
+
* * Option to specify a hint url reference or resource for SliderInput field.
|
|
65
|
+
* * @example
|
|
66
|
+
* hintUrl="https://www.mekaegwim.ca"
|
|
67
|
+
*/
|
|
18
68
|
hintUrl?: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
69
|
+
/**
|
|
70
|
+
* * Option to specify a minimum value for SliderInput field.
|
|
71
|
+
* * @example
|
|
72
|
+
* minvalue={10}
|
|
73
|
+
*/
|
|
74
|
+
minvalue?: number;
|
|
75
|
+
/**
|
|
76
|
+
* * Option to specify a maximum value for SliderInput field.
|
|
77
|
+
* * @example
|
|
78
|
+
* minvalue={100}
|
|
79
|
+
*/
|
|
80
|
+
maxvalue?: number;
|
|
81
|
+
/**
|
|
82
|
+
* * Option to specify an incremental step value for SliderInput field.
|
|
83
|
+
* * @example
|
|
84
|
+
* minvalue={10}
|
|
85
|
+
*/
|
|
86
|
+
stepvalue?: number;
|
|
87
|
+
/**
|
|
88
|
+
* * Option to specify the .scss class selector for the SliderInput field.
|
|
89
|
+
* * @example
|
|
90
|
+
* className="teletraan-1-sliderinput"
|
|
91
|
+
*/
|
|
22
92
|
className?: string;
|
|
93
|
+
/**
|
|
94
|
+
* * Option to inject custom CSS the SliderInput field.
|
|
95
|
+
* * @example
|
|
96
|
+
* style={{ color: "#000000" }}
|
|
97
|
+
*/
|
|
23
98
|
style?: React.CSSProperties;
|
|
24
99
|
}
|
|
25
|
-
export declare const SliderInput: ({ inputtype, alias, readOnly, width, inputLabel,
|
|
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;
|
|
26
101
|
export {};
|