@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.
@@ -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
- inputtype?: ToggleDesign & {};
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
- subsize?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
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
- export declare const teletraan1: (name: String) => string;
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.17",
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:watch": "jest --watch"
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",