@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.
- package/README.md +12 -1
- package/lib/index.cjs +15 -13
- package/lib/index.esm.js +15 -13
- 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/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
|
@@ -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;
|
|
@@ -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,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { xForm } from "xForm";
|
|
2
|
+
export declare const teletraan1: (xFormModel: xForm, readOnlyMode: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeraldemperaur/vector-sigma",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.19",
|
|
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",
|