@emeraldemperaur/vector-sigma 1.4.18 → 1.4.20
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 +21 -15
- package/lib/index.esm.js +21 -15
- package/lib/types/components/datepicker/datepicker.d.ts +65 -1
- 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/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/accordion/accordion.d.ts +88 -0
- package/lib/types/layouts/codex/codex.d.ts +88 -0
- 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 +4 -1
- package/lib/types/utils/architect.d.ts +14 -0
- package/lib/types/utils/voltaire.d.ts +24 -0
- package/package.json +12 -3
|
@@ -3,16 +3,77 @@ import type { ButtonProps } from '@radix-ui/themes';
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type ToggleDesign = 'toggle' | 'toggle-material' | 'toggle-outline' | 'toggle-neumorphic';
|
|
5
5
|
interface ToggleProps extends ButtonProps {
|
|
6
|
-
|
|
6
|
+
/**
|
|
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
|
+
*/
|
|
7
12
|
alias: string;
|
|
13
|
+
/**
|
|
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
|
+
*/
|
|
20
|
+
inputtype?: ToggleDesign & {};
|
|
21
|
+
/**
|
|
22
|
+
* * The optional input label or description for the Toggle input field.
|
|
23
|
+
* * @example
|
|
24
|
+
* inputLabel="Enable VΣ AI Insights"
|
|
25
|
+
*/
|
|
8
26
|
inputLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* * The required viewport column width for the Toggle input field.
|
|
29
|
+
* i.e. 1 - 12
|
|
30
|
+
* * @example
|
|
31
|
+
* width={5}
|
|
32
|
+
*/
|
|
9
33
|
width: number;
|
|
34
|
+
/**
|
|
35
|
+
* * Option to render Toggle input field on new row.
|
|
36
|
+
* * @example
|
|
37
|
+
* newRow
|
|
38
|
+
*/
|
|
10
39
|
newRow?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* * Option to disable edits for Toggle input field.
|
|
42
|
+
* * @example
|
|
43
|
+
* readOnly
|
|
44
|
+
*/
|
|
11
45
|
readOnly?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* * Option to enable a hint for Toggle input field.
|
|
48
|
+
* * @example
|
|
49
|
+
* isHinted
|
|
50
|
+
*/
|
|
12
51
|
isHinted?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* * Option to specify hint text for Toggle input field.
|
|
54
|
+
* * @example
|
|
55
|
+
* hintText="This is a hint for a VΣ Toggle input"
|
|
56
|
+
*/
|
|
13
57
|
hintText?: string;
|
|
58
|
+
/**
|
|
59
|
+
* * Option to specify a hint url reference or resource for Toggle input field.
|
|
60
|
+
* * @example
|
|
61
|
+
* hintUrl="https://www.mekaegwim.ca"
|
|
62
|
+
*/
|
|
14
63
|
hintUrl?: string;
|
|
64
|
+
/**
|
|
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
|
+
*/
|
|
15
71
|
icon?: string;
|
|
72
|
+
/**
|
|
73
|
+
* * Option to specify the isRequired error text for the Toggle input field.
|
|
74
|
+
* * @example
|
|
75
|
+
* errorText="A toggled selection is required"
|
|
76
|
+
*/
|
|
16
77
|
errorText?: ReactNode | string | null;
|
|
17
78
|
}
|
|
18
79
|
export declare const Toggle: ({ inputtype, alias, readOnly, width, inputLabel, style, children, newRow, isHinted, hintText, hintUrl, errorText, icon, ...props }: ToggleProps) => React.JSX.Element;
|
|
@@ -1,19 +1,91 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
interface TitleProps {
|
|
4
|
+
/**
|
|
5
|
+
* * The required title text for the SectionTitle component.
|
|
6
|
+
* * @example
|
|
7
|
+
* title="VΣ User Questionnaire"
|
|
8
|
+
*/
|
|
4
9
|
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* * The required viewport column width for the Toggle input field.
|
|
12
|
+
* i.e. 1 - 12
|
|
13
|
+
* * @example
|
|
14
|
+
* width={5}
|
|
15
|
+
*/
|
|
5
16
|
width?: number;
|
|
17
|
+
/**
|
|
18
|
+
* * Option to render Toggle input field on new row.
|
|
19
|
+
* * @example
|
|
20
|
+
* newRow
|
|
21
|
+
*/
|
|
6
22
|
newRow?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* * Option to specify a title font size.
|
|
25
|
+
* * @example
|
|
26
|
+
* size="2"
|
|
27
|
+
*/
|
|
7
28
|
size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
8
|
-
|
|
29
|
+
/**
|
|
30
|
+
* * Option to specify a subtitle text for the SectionTitle component.
|
|
31
|
+
* * @example
|
|
32
|
+
* subTitle="VΣ AI Reserch Group"
|
|
33
|
+
*/
|
|
9
34
|
subTitle?: string;
|
|
35
|
+
/**
|
|
36
|
+
* * Option to specify a subtitle font size.
|
|
37
|
+
* * @example
|
|
38
|
+
* subsize="1"
|
|
39
|
+
*/
|
|
40
|
+
subsize?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
41
|
+
/**
|
|
42
|
+
* * Option to specify a title text alignment for the SectionTitle component.
|
|
43
|
+
* Default: "left"
|
|
44
|
+
* * @example
|
|
45
|
+
* align="right"
|
|
46
|
+
*/
|
|
10
47
|
align?: "left" | "center" | "right";
|
|
48
|
+
/**
|
|
49
|
+
* * Option to render a bottom visual separator for the SectionTitle component.
|
|
50
|
+
* * @example
|
|
51
|
+
* withSeparator
|
|
52
|
+
*/
|
|
11
53
|
withSeparator?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* * Option to specify the .scss class selector for the SectionTitle component.
|
|
56
|
+
* * @example
|
|
57
|
+
* className="teletraan-1-sectiontitle"
|
|
58
|
+
*/
|
|
12
59
|
className?: string;
|
|
60
|
+
/**
|
|
61
|
+
* * Option to specify the background color for the SectionTitle component.
|
|
62
|
+
* * @example
|
|
63
|
+
* backgroundColor="#800020"
|
|
64
|
+
*/
|
|
13
65
|
backgroundColor?: string;
|
|
66
|
+
/**
|
|
67
|
+
* * Option to render SectionTitle component with icon passed as a ReactNode {}.
|
|
68
|
+
* * @example
|
|
69
|
+
* icon={<Icon name="stack"/>}
|
|
70
|
+
*/
|
|
14
71
|
icon?: React.ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* * Option to specify the title text color for the SectionTitle component.
|
|
74
|
+
* * @example
|
|
75
|
+
* titleColor="#ffffff"
|
|
76
|
+
*/
|
|
15
77
|
titleColor?: string;
|
|
78
|
+
/**
|
|
79
|
+
* * Option to specify the subtitle text color for the SectionTitle component.
|
|
80
|
+
* * @example
|
|
81
|
+
* subtitleColor="#ffffff"
|
|
82
|
+
*/
|
|
16
83
|
subtitleColor?: string;
|
|
84
|
+
/**
|
|
85
|
+
* * Option to specify the title and subtitle text letter spacing (em) for the SectionTitle component.
|
|
86
|
+
* * @example
|
|
87
|
+
* letterSpacing="0.13em"
|
|
88
|
+
*/
|
|
17
89
|
letterSpacing?: string;
|
|
18
90
|
}
|
|
19
91
|
export declare const SectionTitle: ({ title, width, newRow, size, subsize, subTitle, align, letterSpacing, withSeparator, className, backgroundColor, icon, titleColor, subtitleColor }: TitleProps) => React.JSX.Element;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import '../../styles/main.scss';
|
|
3
|
+
export type AccordionDesign = 'material' | 'outline' | 'neumorphic';
|
|
4
|
+
export interface AccordionProps {
|
|
5
|
+
/**
|
|
6
|
+
* * The design variation of the Accordion.
|
|
7
|
+
* Default: 'outline'
|
|
8
|
+
* Variants: 'outline', 'material', 'neumorphic'.
|
|
9
|
+
* * @example
|
|
10
|
+
* design="neumorphic"
|
|
11
|
+
*/
|
|
12
|
+
design?: AccordionDesign;
|
|
13
|
+
/**
|
|
14
|
+
* * The sectionId of the item that should be open by default.
|
|
15
|
+
* Renders all accordion sections in closed state if undefined.
|
|
16
|
+
* * @example
|
|
17
|
+
* defaultOpenId="section-1"
|
|
18
|
+
*/
|
|
19
|
+
defaultOpenId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* * Option to allow multiple sections to be open at the same time.
|
|
22
|
+
* Default: false (Limits open accordion items to only one)
|
|
23
|
+
* * @example
|
|
24
|
+
* allowMultiple={true}
|
|
25
|
+
*/
|
|
26
|
+
allowMultiple?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* * The required viewport column width for the Accordion component.
|
|
29
|
+
* i.e. 1 - 12
|
|
30
|
+
* * @example
|
|
31
|
+
* width={12}
|
|
32
|
+
*/
|
|
33
|
+
width?: number;
|
|
34
|
+
/**
|
|
35
|
+
* * Option to render Accordion component on a new row.
|
|
36
|
+
* * @example
|
|
37
|
+
* newRow
|
|
38
|
+
*/
|
|
39
|
+
newRow?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* * Option to specify the .scss class selector for the Accordion.
|
|
42
|
+
* * @example
|
|
43
|
+
* className="teletraan-1-accordion"
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* * Option to inject custom CSS to the Accordion wrapper.
|
|
48
|
+
* * @example
|
|
49
|
+
* style={{ margin: "20px 0" }}
|
|
50
|
+
*/
|
|
51
|
+
style?: React.CSSProperties;
|
|
52
|
+
/**
|
|
53
|
+
* * The AccordionItem child components.
|
|
54
|
+
*/
|
|
55
|
+
children: ReactNode;
|
|
56
|
+
}
|
|
57
|
+
export interface AccordionItemProps {
|
|
58
|
+
/**
|
|
59
|
+
* * The unique identifier for this specific accordion section.
|
|
60
|
+
* * @example
|
|
61
|
+
* sectionId="faq-1"
|
|
62
|
+
*/
|
|
63
|
+
sectionId: string;
|
|
64
|
+
/**
|
|
65
|
+
* * The header or trigger text for this accordion section.
|
|
66
|
+
* * @example
|
|
67
|
+
* title="What is the VΣ Protocol?"
|
|
68
|
+
*/
|
|
69
|
+
title: ReactNode | string;
|
|
70
|
+
/**
|
|
71
|
+
* * The content revealed when the section is opened.
|
|
72
|
+
*/
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* * Option to disable an accordion item section.
|
|
76
|
+
* * @example
|
|
77
|
+
* disabled
|
|
78
|
+
*/
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* * Option to append a custom icon to the left of the title.
|
|
82
|
+
* * @example
|
|
83
|
+
* icon={<Icon name="info" />}
|
|
84
|
+
*/
|
|
85
|
+
icon?: ReactNode;
|
|
86
|
+
}
|
|
87
|
+
export declare const Accordion: ({ design, defaultOpenId, allowMultiple, width, newRow, className, style, children }: AccordionProps) => React.JSX.Element;
|
|
88
|
+
export declare const AccordionItem: ({ sectionId, title, children, disabled, icon }: AccordionItemProps) => React.JSX.Element;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import '../../styles/main.scss';
|
|
3
|
+
export type CodexDesign = 'material' | 'outline' | 'neumorphic';
|
|
4
|
+
interface CodexContextProps {
|
|
5
|
+
activeStepId: string;
|
|
6
|
+
setActiveStepId: (id: string) => void;
|
|
7
|
+
design: CodexDesign;
|
|
8
|
+
}
|
|
9
|
+
export declare const useStepper: () => CodexContextProps;
|
|
10
|
+
export interface CodexProps {
|
|
11
|
+
/**
|
|
12
|
+
* * The design variation of the Codex component.
|
|
13
|
+
* Default: 'outline'
|
|
14
|
+
* Variants: 'outline', 'material', 'neumorphic'.
|
|
15
|
+
* * @example
|
|
16
|
+
* design="neumorphic"
|
|
17
|
+
*/
|
|
18
|
+
design?: CodexDesign;
|
|
19
|
+
/**
|
|
20
|
+
* * The sectionId of the step that should be active on render.
|
|
21
|
+
* Defaults to the first child step when undefined.
|
|
22
|
+
* * @example
|
|
23
|
+
* defaultStepId="billing-info"
|
|
24
|
+
*/
|
|
25
|
+
defaultStepId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* * The required viewport column width for the Codex component.
|
|
28
|
+
* i.e. 1 - 12
|
|
29
|
+
* * @example
|
|
30
|
+
* width={12}
|
|
31
|
+
*/
|
|
32
|
+
width?: number;
|
|
33
|
+
/**
|
|
34
|
+
* * Option to render Codex component on a new row.
|
|
35
|
+
* * @example
|
|
36
|
+
* newRow
|
|
37
|
+
*/
|
|
38
|
+
newRow?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* * Option to specify the .scss class selector for the Codex component.
|
|
41
|
+
* * @example
|
|
42
|
+
* className="teletraan-1-codex"
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
45
|
+
/**
|
|
46
|
+
* * Option to inject custom CSS to the Stepper wrapper.
|
|
47
|
+
* * @example
|
|
48
|
+
* style={{ margin: "20px 0" }}
|
|
49
|
+
*/
|
|
50
|
+
style?: React.CSSProperties;
|
|
51
|
+
/**
|
|
52
|
+
* * The CodexItem child components.
|
|
53
|
+
*/
|
|
54
|
+
children: ReactNode;
|
|
55
|
+
}
|
|
56
|
+
export interface CodexItemProps {
|
|
57
|
+
/**
|
|
58
|
+
* * The unique identifier for the step item.
|
|
59
|
+
* * @example
|
|
60
|
+
* stepId="step-1"
|
|
61
|
+
*/
|
|
62
|
+
stepId: string;
|
|
63
|
+
/**
|
|
64
|
+
* * The display title for the step header.
|
|
65
|
+
* * @example
|
|
66
|
+
* title="Account Setup"
|
|
67
|
+
*/
|
|
68
|
+
title: string;
|
|
69
|
+
/**
|
|
70
|
+
* * An optional subtitle description displayed below the title.
|
|
71
|
+
* * @example
|
|
72
|
+
* description="Enter your details"
|
|
73
|
+
*/
|
|
74
|
+
subtitleDescription?: string;
|
|
75
|
+
/**
|
|
76
|
+
* * The content revealed when this step is active.
|
|
77
|
+
*/
|
|
78
|
+
children: ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* * Option to provide a custom icon for the step circle.
|
|
81
|
+
* * @example
|
|
82
|
+
* icon={<Icon name="user" />}
|
|
83
|
+
*/
|
|
84
|
+
icon?: ReactNode;
|
|
85
|
+
}
|
|
86
|
+
export declare const Codex: ({ design, defaultStepId, width, newRow, className, style, children }: CodexProps) => React.JSX.Element;
|
|
87
|
+
export declare const CodexItem: ({ stepId, children, }: CodexItemProps) => React.JSX.Element | null;
|
|
88
|
+
export {};
|
|
@@ -2,13 +2,57 @@ import React from 'react';
|
|
|
2
2
|
import { Box } from '@radix-ui/themes';
|
|
3
3
|
type ColSize = number | "auto" | boolean;
|
|
4
4
|
type ColProps = React.ComponentProps<typeof Box> & {
|
|
5
|
+
/**
|
|
6
|
+
* * Option to specify a span number for the Column component.
|
|
7
|
+
* i.e. 1 - 12
|
|
8
|
+
* * @example
|
|
9
|
+
* span={6}
|
|
10
|
+
*/
|
|
5
11
|
span?: number;
|
|
12
|
+
/**
|
|
13
|
+
* * Option to render Column component on a line.
|
|
14
|
+
* * @example
|
|
15
|
+
* newRow
|
|
16
|
+
*/
|
|
6
17
|
newLine?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* * Option to enable or specify `xs` viewport column size/breakpoint.
|
|
20
|
+
* * @example
|
|
21
|
+
* xs={3}
|
|
22
|
+
*/
|
|
7
23
|
xs?: ColSize;
|
|
24
|
+
/**
|
|
25
|
+
* * Option to enable or specify `sm` viewport column size/breakpoint.
|
|
26
|
+
* * @example
|
|
27
|
+
* sm={4}
|
|
28
|
+
*/
|
|
8
29
|
sm?: ColSize;
|
|
30
|
+
/**
|
|
31
|
+
* * Option to enable or specify `md` viewport column size/breakpoint.
|
|
32
|
+
* * @example
|
|
33
|
+
* md={5}
|
|
34
|
+
*/
|
|
9
35
|
md?: ColSize;
|
|
36
|
+
/**
|
|
37
|
+
* * Option to enable or specify `lg` viewport column size/breakpoint.
|
|
38
|
+
* * @example
|
|
39
|
+
* lg={6}
|
|
40
|
+
*/
|
|
10
41
|
lg?: ColSize;
|
|
42
|
+
/**
|
|
43
|
+
* * Option to enable or specify `xl` viewport column size/breakpoint.
|
|
44
|
+
* * @example
|
|
45
|
+
* xl={6}
|
|
46
|
+
*/
|
|
11
47
|
xl?: ColSize;
|
|
48
|
+
/**
|
|
49
|
+
* * Required Column child components.
|
|
50
|
+
* * @example
|
|
51
|
+
* children={
|
|
52
|
+
* <Text/>
|
|
53
|
+
* ......
|
|
54
|
+
* }
|
|
55
|
+
*/
|
|
12
56
|
children?: React.ReactNode;
|
|
13
57
|
};
|
|
14
58
|
export declare const Column: ({ newLine, span, xs, sm, md, lg, xl, children, ...props }: ColProps) => React.JSX.Element;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ContainerProps as RadixContainerProps } from '@radix-ui/themes';
|
|
3
3
|
interface ContainerProps extends RadixContainerProps {
|
|
4
|
+
/**
|
|
5
|
+
* * Option to enable fluid container width style for the Container component.
|
|
6
|
+
* i.e. 1 - 12
|
|
7
|
+
* * @example
|
|
8
|
+
* width={5}
|
|
9
|
+
*/
|
|
4
10
|
fluid?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* * Required Container child components.
|
|
13
|
+
* * @example
|
|
14
|
+
* children={
|
|
15
|
+
* <Row>
|
|
16
|
+
* <Col><Col>
|
|
17
|
+
* </Row>
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
5
20
|
children: React.ReactNode;
|
|
6
21
|
}
|
|
7
22
|
export declare const Container: ({ fluid, children, ...props }: ContainerProps) => React.JSX.Element;
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface RowProps {
|
|
3
|
+
/**
|
|
4
|
+
* * Required Row child components.
|
|
5
|
+
* * @example
|
|
6
|
+
* children={
|
|
7
|
+
* <Col>
|
|
8
|
+
* <Text/>
|
|
9
|
+
* </Col>
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
3
12
|
children: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* * Option to specify the .scss class selector for the Row component.
|
|
15
|
+
* * @example
|
|
16
|
+
* className="teletraan-1-row"
|
|
17
|
+
*/
|
|
4
18
|
className?: string;
|
|
19
|
+
/**
|
|
20
|
+
* * Option to specify a buffer spacing for child elements in the Row component.
|
|
21
|
+
* Default: "4"
|
|
22
|
+
* * @example
|
|
23
|
+
* gap="6"
|
|
24
|
+
*/
|
|
5
25
|
gap?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
6
26
|
}
|
|
7
27
|
export declare const Row: ({ children, className, gap }: RowProps) => React.JSX.Element;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { xForm } from 'utils/architect';
|
|
3
|
+
export type teletraan1Display = 'accordion' | 'codice' | 'codex' | 'dual';
|
|
4
|
+
export declare const teletraan1: (xFormModel: xForm, readOnlyMode: boolean, displayMode: teletraan1Display) => React.JSX.Element;
|
|
@@ -13,6 +13,7 @@ declare const NestedQuerySchema: z.ZodObject<{
|
|
|
13
13
|
inputAlias: z.ZodString;
|
|
14
14
|
inputLabel: z.ZodString;
|
|
15
15
|
inputPlaceholder: z.ZodString;
|
|
16
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
16
17
|
newRow: z.ZodBoolean;
|
|
17
18
|
inputWidth: z.ZodNumber;
|
|
18
19
|
isRequired: z.ZodBoolean;
|
|
@@ -30,6 +31,7 @@ declare const NestedQuerySchema: z.ZodObject<{
|
|
|
30
31
|
}, z.core.$strip>>>>;
|
|
31
32
|
toggledInput: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
32
33
|
toggleTrigger: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
34
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
33
35
|
}, z.core.$strip>;
|
|
34
36
|
declare const QuerySchema: z.ZodObject<{
|
|
35
37
|
queryId: z.ZodUnion<[z.ZodNumber, z.ZodUUID]>;
|
|
@@ -37,6 +39,7 @@ declare const QuerySchema: z.ZodObject<{
|
|
|
37
39
|
inputAlias: z.ZodString;
|
|
38
40
|
inputLabel: z.ZodString;
|
|
39
41
|
inputPlaceholder: z.ZodString;
|
|
42
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
40
43
|
minValue: z.ZodOptional<z.ZodNumber>;
|
|
41
44
|
maxValue: z.ZodOptional<z.ZodNumber>;
|
|
42
45
|
stepValue: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodFloat64]>>;
|
|
@@ -61,6 +64,7 @@ declare const QuerySchema: z.ZodObject<{
|
|
|
61
64
|
inputAlias: z.ZodString;
|
|
62
65
|
inputLabel: z.ZodString;
|
|
63
66
|
inputPlaceholder: z.ZodString;
|
|
67
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
64
68
|
newRow: z.ZodBoolean;
|
|
65
69
|
inputWidth: z.ZodNumber;
|
|
66
70
|
isRequired: z.ZodBoolean;
|
|
@@ -78,8 +82,10 @@ declare const QuerySchema: z.ZodObject<{
|
|
|
78
82
|
}, z.core.$strip>>>>;
|
|
79
83
|
toggledInput: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
80
84
|
toggleTrigger: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
85
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
81
86
|
}, z.core.$strip>>>;
|
|
82
87
|
toggleTrigger: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
88
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
83
89
|
}, z.core.$strip>;
|
|
84
90
|
declare const SectionSchema: z.ZodObject<{
|
|
85
91
|
sectionId: z.ZodNumber;
|
|
@@ -91,6 +97,7 @@ declare const SectionSchema: z.ZodObject<{
|
|
|
91
97
|
inputAlias: z.ZodString;
|
|
92
98
|
inputLabel: z.ZodString;
|
|
93
99
|
inputPlaceholder: z.ZodString;
|
|
100
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
94
101
|
minValue: z.ZodOptional<z.ZodNumber>;
|
|
95
102
|
maxValue: z.ZodOptional<z.ZodNumber>;
|
|
96
103
|
stepValue: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodFloat64]>>;
|
|
@@ -115,6 +122,7 @@ declare const SectionSchema: z.ZodObject<{
|
|
|
115
122
|
inputAlias: z.ZodString;
|
|
116
123
|
inputLabel: z.ZodString;
|
|
117
124
|
inputPlaceholder: z.ZodString;
|
|
125
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
118
126
|
newRow: z.ZodBoolean;
|
|
119
127
|
inputWidth: z.ZodNumber;
|
|
120
128
|
isRequired: z.ZodBoolean;
|
|
@@ -132,8 +140,10 @@ declare const SectionSchema: z.ZodObject<{
|
|
|
132
140
|
}, z.core.$strip>>>>;
|
|
133
141
|
toggledInput: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
134
142
|
toggleTrigger: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
143
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
135
144
|
}, z.core.$strip>>>;
|
|
136
145
|
toggleTrigger: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
146
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
137
147
|
}, z.core.$strip>>;
|
|
138
148
|
}, z.core.$strip>;
|
|
139
149
|
export declare const xFormSchema: z.ZodObject<{
|
|
@@ -151,6 +161,7 @@ export declare const xFormSchema: z.ZodObject<{
|
|
|
151
161
|
inputAlias: z.ZodString;
|
|
152
162
|
inputLabel: z.ZodString;
|
|
153
163
|
inputPlaceholder: z.ZodString;
|
|
164
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
154
165
|
minValue: z.ZodOptional<z.ZodNumber>;
|
|
155
166
|
maxValue: z.ZodOptional<z.ZodNumber>;
|
|
156
167
|
stepValue: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodFloat64]>>;
|
|
@@ -175,6 +186,7 @@ export declare const xFormSchema: z.ZodObject<{
|
|
|
175
186
|
inputAlias: z.ZodString;
|
|
176
187
|
inputLabel: z.ZodString;
|
|
177
188
|
inputPlaceholder: z.ZodString;
|
|
189
|
+
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
178
190
|
newRow: z.ZodBoolean;
|
|
179
191
|
inputWidth: z.ZodNumber;
|
|
180
192
|
isRequired: z.ZodBoolean;
|
|
@@ -192,8 +204,10 @@ export declare const xFormSchema: z.ZodObject<{
|
|
|
192
204
|
}, z.core.$strip>>>>;
|
|
193
205
|
toggledInput: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
194
206
|
toggleTrigger: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
207
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
195
208
|
}, z.core.$strip>>>;
|
|
196
209
|
toggleTrigger: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
210
|
+
errorText: z.ZodOptional<z.ZodString>;
|
|
197
211
|
}, z.core.$strip>>;
|
|
198
212
|
}, z.core.$strip>>;
|
|
199
213
|
}, z.core.$strip>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const avatarInputType: string[];
|
|
2
|
+
export declare const buttonInputType: string[];
|
|
3
|
+
export declare const checkboxInputType: string[];
|
|
4
|
+
export declare const datePickerInputType: string[];
|
|
5
|
+
export declare const dateRangePickerInputType: string[];
|
|
6
|
+
export declare const dateTimePickerInputType: string[];
|
|
7
|
+
export declare const dropdownInputType: string[];
|
|
8
|
+
export declare const fileInputType: string[];
|
|
9
|
+
export declare const fileMultipleInputType: string[];
|
|
10
|
+
export declare const imageOutputType: string[];
|
|
11
|
+
export declare const textInputType: string[];
|
|
12
|
+
export declare const passwordInputType: string[];
|
|
13
|
+
export declare const phoneInputType: string[];
|
|
14
|
+
export declare const creditCardInputType: string[];
|
|
15
|
+
export declare const currencyInputType: string[];
|
|
16
|
+
export declare const stockInputType: string[];
|
|
17
|
+
export declare const radioInputType: string[];
|
|
18
|
+
export declare const selectInputType: string[];
|
|
19
|
+
export declare const selectMultipleInputType: string[];
|
|
20
|
+
export declare const sliderInputType: string[];
|
|
21
|
+
export declare const rangeSliderInputType: string[];
|
|
22
|
+
export declare const toggleInputType: string[];
|
|
23
|
+
export declare const sectionTitleOutputType: string[];
|
|
24
|
+
export declare const conditionalInputType: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeraldemperaur/vector-sigma",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.20",
|
|
4
4
|
"description": "Dynamic Form Orchestrator: NPM Package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,12 @@
|
|
|
28
28
|
"prepublishOnly": "npm run build",
|
|
29
29
|
"release-package": "npm run build && npx changeset publish",
|
|
30
30
|
"test": "jest",
|
|
31
|
-
"test:
|
|
31
|
+
"test:fast": "jest --runInBand",
|
|
32
|
+
"test:watch": "jest --watch",
|
|
33
|
+
"test:leaks": "jest --detectOpenHandles",
|
|
34
|
+
"test:changed": "jest --onlyChanged",
|
|
35
|
+
"test:bail": "jest --bail",
|
|
36
|
+
"test:ci": "jest --maxWorkers=50% --ci"
|
|
32
37
|
},
|
|
33
38
|
"devDependencies": {
|
|
34
39
|
"@changesets/cli": "^2.29.8",
|
|
@@ -53,7 +58,7 @@
|
|
|
53
58
|
"react": "^19.2.4",
|
|
54
59
|
"react-dom": "^19.2.4",
|
|
55
60
|
"rollup": "^4.17.2",
|
|
56
|
-
"rollup-plugin-delete": "^
|
|
61
|
+
"rollup-plugin-delete": "^3.0.2",
|
|
57
62
|
"rollup-plugin-postcss": "^4.0.2",
|
|
58
63
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
59
64
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
@@ -73,6 +78,7 @@
|
|
|
73
78
|
"yup": "^1.7.1"
|
|
74
79
|
},
|
|
75
80
|
"dependencies": {
|
|
81
|
+
"@radix-ui/react-accordion": "^1.2.12",
|
|
76
82
|
"@radix-ui/react-icons": "^1.3.2",
|
|
77
83
|
"@radix-ui/themes": "^3.3.0",
|
|
78
84
|
"@types/react-datepicker": "^6.2.0",
|
|
@@ -81,6 +87,9 @@
|
|
|
81
87
|
"react-imask": "^7.6.1",
|
|
82
88
|
"react-phone-number-input": "^3.4.14"
|
|
83
89
|
},
|
|
90
|
+
"overrides": {
|
|
91
|
+
"minimatch": "^10.2.1"
|
|
92
|
+
},
|
|
84
93
|
"publishConfig": {
|
|
85
94
|
"access": "public"
|
|
86
95
|
}
|