@ostack.tech/ui 0.16.3 → 0.16.4
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui",
|
|
3
3
|
"description": "ostack/UI component library.",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.4",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"esm-env": "^1.2.2",
|
|
49
49
|
"from-exponential": "^1.1.1",
|
|
50
50
|
"radix-ui": "^1.6.7",
|
|
51
|
-
"react-error-boundary": "^6.1.
|
|
51
|
+
"react-error-boundary": "^6.1.3",
|
|
52
52
|
"react-number-format": "^5.4.5",
|
|
53
53
|
"react-to-print": "^3.3.0",
|
|
54
54
|
"tinykeys": "^4.0.0"
|
|
@@ -5,7 +5,6 @@ import type { ControlStatus } from "./Control.tsx";
|
|
|
5
5
|
/** Options of the {@link useRegisterControl} hook. */
|
|
6
6
|
export interface UseRegisterControlOptions {
|
|
7
7
|
id: string | undefined;
|
|
8
|
-
name?: string;
|
|
9
8
|
tagName: string | undefined;
|
|
10
9
|
required: boolean | undefined;
|
|
11
10
|
status: ControlStatus | undefined;
|
|
@@ -23,6 +22,6 @@ export interface UseRegisterControlResult {
|
|
|
23
22
|
helperTextIds: string[] | undefined;
|
|
24
23
|
}
|
|
25
24
|
/** Hook used to register a control where necessary. */
|
|
26
|
-
export declare function useRegisterControl({ id,
|
|
25
|
+
export declare function useRegisterControl({ id, tagName, required, status, code, codeProps, }: UseRegisterControlOptions): UseRegisterControlResult;
|
|
27
26
|
/** Transforms a control status into a colour accent. */
|
|
28
27
|
export declare function controlStatusToAccent(status?: ControlStatus, defaultAccent?: AccentColor): AccentColor | undefined;
|
|
@@ -8,10 +8,15 @@ export declare function useFeedbackIds(): string[] | undefined;
|
|
|
8
8
|
/** Hook exposing whether the `name` of a control. */
|
|
9
9
|
export declare function useFeedbackControlName(): string | undefined;
|
|
10
10
|
/**
|
|
11
|
-
* Hook that registers
|
|
12
|
-
*
|
|
11
|
+
* Hook that registers the name of a control. Returns whether there is a
|
|
12
|
+
* feedback provider to register in.
|
|
13
13
|
*/
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function useRegisterControlNameInFeedbackProvider(name?: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Hook that registers the status of a control. Returns whether there is a
|
|
17
|
+
* feedback provider to register in.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useRegisterControlStatusInFeedbackProvider(status?: ControlStatus): boolean;
|
|
15
20
|
/**
|
|
16
21
|
* Hook which returns a function that can be used to set the focus status of the
|
|
17
22
|
* field's control.
|