@deveye/types 0.23.1 → 0.24.0
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 +1 -1
- package/src/sdk/client-ambient.d.ts +24 -2
package/package.json
CHANGED
|
@@ -16,7 +16,8 @@ declare module 'deveye-sdk-client' {
|
|
|
16
16
|
DragEvent,
|
|
17
17
|
InputHTMLAttributes,
|
|
18
18
|
ReactNode,
|
|
19
|
-
RefObject
|
|
19
|
+
RefObject,
|
|
20
|
+
TextareaHTMLAttributes
|
|
20
21
|
} from 'react';
|
|
21
22
|
import type { z, ZodType } from 'zod';
|
|
22
23
|
import type {
|
|
@@ -51,7 +52,23 @@ declare module 'deveye-sdk-client' {
|
|
|
51
52
|
}
|
|
52
53
|
>;
|
|
53
54
|
export const TextInput: ComponentType<
|
|
54
|
-
InputHTMLAttributes<HTMLInputElement> & {
|
|
55
|
+
InputHTMLAttributes<HTMLInputElement> & {
|
|
56
|
+
enableShowHideButton?: boolean;
|
|
57
|
+
error?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Shows a clear button inside the field while it holds a value. On a date or time
|
|
60
|
+
* field it shows on touch screens only: desktop browsers draw their own.
|
|
61
|
+
*/
|
|
62
|
+
onClear?: () => void;
|
|
63
|
+
}
|
|
64
|
+
>;
|
|
65
|
+
/** A multi-line field with the look of `TextInput`. */
|
|
66
|
+
export const TextArea: ComponentType<
|
|
67
|
+
TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
68
|
+
/** The height follows the content from one line on, with no manual resize. */
|
|
69
|
+
autoGrow?: boolean;
|
|
70
|
+
error?: string;
|
|
71
|
+
}
|
|
55
72
|
>;
|
|
56
73
|
export interface ActionMenuItem {
|
|
57
74
|
label: string;
|
|
@@ -1062,6 +1079,11 @@ declare module 'deveye-sdk-client' {
|
|
|
1062
1079
|
}>;
|
|
1063
1080
|
/** The CSS variable of an account colour, the one the live presence paints with. */
|
|
1064
1081
|
export function userColorVar(color: MinimalUser['color']): string;
|
|
1082
|
+
/**
|
|
1083
|
+
* The theme on screen. Code that reads theme tokens from JS (a canvas, a
|
|
1084
|
+
* third-party library) depends on it to read them again when it changes.
|
|
1085
|
+
*/
|
|
1086
|
+
export function useColorScheme(): 'dark' | 'light';
|
|
1065
1087
|
/**
|
|
1066
1088
|
* Two sticky bands, one under the other: measure the top one and hand the
|
|
1067
1089
|
* ancestor a `--sticky-head` variable the lower band offsets itself by.
|