@geotab/zenith 3.0.0-beta.0 → 3.0.0-beta.1
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/dist/formField/formField.d.ts +2 -2
- package/dist/selectRaw/selectRaw.d.ts +2 -2
- package/dist/textInputRaw/textInputRaw.d.ts +2 -2
- package/dist/textareaRaw/textareaRaw.d.ts +2 -2
- package/esm/formField/formField.d.ts +2 -2
- package/esm/selectRaw/selectRaw.d.ts +2 -2
- package/esm/textInputRaw/textInputRaw.d.ts +2 -2
- package/esm/textareaRaw/textareaRaw.d.ts +2 -2
- package/package.json +6 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { RefObject } from "react";
|
|
1
|
+
import React, { RefCallback, RefObject } from "react";
|
|
2
2
|
import "./formField.less";
|
|
3
3
|
export interface IFormField {
|
|
4
4
|
className?: string;
|
|
5
5
|
inputClassName?: string;
|
|
6
|
-
ref?: RefObject<HTMLElement | null>;
|
|
6
|
+
ref?: RefObject<HTMLElement | null> | RefCallback<HTMLElement | null>;
|
|
7
7
|
error?: string;
|
|
8
8
|
assistive?: string;
|
|
9
9
|
counter?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
1
|
+
import { RefCallback, RefObject } from "react";
|
|
2
2
|
import { IListState } from "../selectList/selectList";
|
|
3
3
|
import { ISelectListItem } from "../selectList/selectListItem";
|
|
4
4
|
import "./selectRaw.less";
|
|
@@ -15,7 +15,7 @@ export interface ISelectRaw extends IZenComponentProps {
|
|
|
15
15
|
forceSelection?: boolean;
|
|
16
16
|
isError?: boolean;
|
|
17
17
|
onChange?: (id: string | undefined) => void;
|
|
18
|
-
ref?: RefObject<HTMLDivElement | null>;
|
|
18
|
+
ref?: RefObject<HTMLDivElement | null> | RefCallback<HTMLDivElement | null>;
|
|
19
19
|
}
|
|
20
20
|
export interface ISelectStateRaw extends IListState {
|
|
21
21
|
expanded: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import "./textInputRaw.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
|
-
import { RefObject } from "react";
|
|
4
|
+
import { RefCallback, RefObject } from "react";
|
|
5
5
|
export interface ITextInputRaw extends IZenComponentProps {
|
|
6
6
|
id?: string;
|
|
7
7
|
value: string;
|
|
@@ -20,6 +20,6 @@ export interface ITextInputRaw extends IZenComponentProps {
|
|
|
20
20
|
ariaLabelledby?: string;
|
|
21
21
|
ariaLabel?: string;
|
|
22
22
|
autoFocus?: boolean;
|
|
23
|
-
ref?: RefObject<HTMLInputElement | null>;
|
|
23
|
+
ref?: RefObject<HTMLInputElement | null> | RefCallback<HTMLInputElement | null>;
|
|
24
24
|
}
|
|
25
25
|
export declare const TextInputRaw: (props: ITextInputRaw) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import "../textInputRaw/textInputRaw.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
4
|
import "./textareaRaw.less";
|
|
5
|
-
import { RefObject } from "react";
|
|
5
|
+
import { RefCallback, RefObject } from "react";
|
|
6
6
|
export interface ITextareaRaw extends IZenComponentProps {
|
|
7
7
|
id?: string;
|
|
8
8
|
value: string;
|
|
@@ -19,7 +19,7 @@ export interface ITextareaRaw extends IZenComponentProps {
|
|
|
19
19
|
ariaLabel?: string;
|
|
20
20
|
resize?: boolean;
|
|
21
21
|
readonly?: boolean;
|
|
22
|
-
ref?: RefObject<HTMLTextAreaElement | null>;
|
|
22
|
+
ref?: RefObject<HTMLTextAreaElement | null> | RefCallback<HTMLTextAreaElement | null>;
|
|
23
23
|
}
|
|
24
24
|
export declare const TextareaRaw: {
|
|
25
25
|
({ id, rows, maxLength, className, value, resize, readonly, placeholder, disabled, isError, ariaLabel, ariaLabelledby, onChange, onKeyDown, onFocus, onBlur, ref }: ITextareaRaw): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { RefObject } from "react";
|
|
1
|
+
import React, { RefCallback, RefObject } from "react";
|
|
2
2
|
import "./formField.less";
|
|
3
3
|
export interface IFormField {
|
|
4
4
|
className?: string;
|
|
5
5
|
inputClassName?: string;
|
|
6
|
-
ref?: RefObject<HTMLElement | null>;
|
|
6
|
+
ref?: RefObject<HTMLElement | null> | RefCallback<HTMLElement | null>;
|
|
7
7
|
error?: string;
|
|
8
8
|
assistive?: string;
|
|
9
9
|
counter?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
1
|
+
import { RefCallback, RefObject } from "react";
|
|
2
2
|
import { IListState } from "../selectList/selectList";
|
|
3
3
|
import { ISelectListItem } from "../selectList/selectListItem";
|
|
4
4
|
import "./selectRaw.less";
|
|
@@ -15,7 +15,7 @@ export interface ISelectRaw extends IZenComponentProps {
|
|
|
15
15
|
forceSelection?: boolean;
|
|
16
16
|
isError?: boolean;
|
|
17
17
|
onChange?: (id: string | undefined) => void;
|
|
18
|
-
ref?: RefObject<HTMLDivElement | null>;
|
|
18
|
+
ref?: RefObject<HTMLDivElement | null> | RefCallback<HTMLDivElement | null>;
|
|
19
19
|
}
|
|
20
20
|
export interface ISelectStateRaw extends IListState {
|
|
21
21
|
expanded: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import "./textInputRaw.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
|
-
import { RefObject } from "react";
|
|
4
|
+
import { RefCallback, RefObject } from "react";
|
|
5
5
|
export interface ITextInputRaw extends IZenComponentProps {
|
|
6
6
|
id?: string;
|
|
7
7
|
value: string;
|
|
@@ -20,6 +20,6 @@ export interface ITextInputRaw extends IZenComponentProps {
|
|
|
20
20
|
ariaLabelledby?: string;
|
|
21
21
|
ariaLabel?: string;
|
|
22
22
|
autoFocus?: boolean;
|
|
23
|
-
ref?: RefObject<HTMLInputElement | null>;
|
|
23
|
+
ref?: RefObject<HTMLInputElement | null> | RefCallback<HTMLInputElement | null>;
|
|
24
24
|
}
|
|
25
25
|
export declare const TextInputRaw: (props: ITextInputRaw) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import "../textInputRaw/textInputRaw.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
4
|
import "./textareaRaw.less";
|
|
5
|
-
import { RefObject } from "react";
|
|
5
|
+
import { RefCallback, RefObject } from "react";
|
|
6
6
|
export interface ITextareaRaw extends IZenComponentProps {
|
|
7
7
|
id?: string;
|
|
8
8
|
value: string;
|
|
@@ -19,7 +19,7 @@ export interface ITextareaRaw extends IZenComponentProps {
|
|
|
19
19
|
ariaLabel?: string;
|
|
20
20
|
resize?: boolean;
|
|
21
21
|
readonly?: boolean;
|
|
22
|
-
ref?: RefObject<HTMLTextAreaElement | null>;
|
|
22
|
+
ref?: RefObject<HTMLTextAreaElement | null> | RefCallback<HTMLTextAreaElement | null>;
|
|
23
23
|
}
|
|
24
24
|
export declare const TextareaRaw: {
|
|
25
25
|
({ id, rows, maxLength, className, value, resize, readonly, placeholder, disabled, isError, ariaLabel, ariaLabelledby, onChange, onKeyDown, onFocus, onBlur, ref }: ITextareaRaw): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geotab/zenith",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "Zenith components library on React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "esm/index.d.ts",
|
|
@@ -36,13 +36,15 @@
|
|
|
36
36
|
"build-storybook": "storybook build && npm run build-ai-mdx",
|
|
37
37
|
"clean": "rm -rf ./dist && rm -rf ./esm && rm -rf ./jest-coverage"
|
|
38
38
|
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
39
42
|
"author": "",
|
|
40
43
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
41
44
|
"devDependencies": {
|
|
42
45
|
"@babel/preset-env": "^7.24.3",
|
|
43
46
|
"@babel/preset-react": "^7.24.1",
|
|
44
47
|
"@babel/preset-typescript": "^7.24.1",
|
|
45
|
-
"@storybook/addon-docs": "^9.1.15",
|
|
46
48
|
"@storybook/addon-links": "^9.1.15",
|
|
47
49
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
48
50
|
"@storybook/react-webpack5": "^9.1.15",
|
|
@@ -69,7 +71,8 @@
|
|
|
69
71
|
"style-loader": "^4.0.0",
|
|
70
72
|
"typescript": "^5.4.3",
|
|
71
73
|
"webpack": "^5.96.1",
|
|
72
|
-
"xml2js": "^0.6.0"
|
|
74
|
+
"xml2js": "^0.6.0",
|
|
75
|
+
"@storybook/addon-docs": "^9.1.15"
|
|
73
76
|
},
|
|
74
77
|
"dependencies": {
|
|
75
78
|
"chart.js": "^4.4.6",
|
|
@@ -96,8 +99,5 @@
|
|
|
96
99
|
"last 1 firefox version",
|
|
97
100
|
"last 1 safari version"
|
|
98
101
|
]
|
|
99
|
-
},
|
|
100
|
-
"publishConfig": {
|
|
101
|
-
"access": "public"
|
|
102
102
|
}
|
|
103
103
|
}
|