@enonic/ui 0.18.0 → 0.18.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/enonic-ui.cjs +1 -1
- package/dist/enonic-ui.es.js +48 -48
- package/dist/types/components/dialog/dialog.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/search-field/search-field.d.ts +0 -1
- package/dist/types/providers/dialog-provider.d.ts +4 -0
- package/dist/types/providers/search-field-provider.d.ts +5 -1
- package/package.json +1 -1
|
@@ -39,9 +39,11 @@ export type DialogCloseProps = {
|
|
|
39
39
|
asChild?: boolean;
|
|
40
40
|
} & ComponentPropsWithoutRef<'button'>;
|
|
41
41
|
export type DialogTitleProps = {
|
|
42
|
+
id?: string;
|
|
42
43
|
asChild?: boolean;
|
|
43
44
|
} & ComponentPropsWithoutRef<'h2'>;
|
|
44
45
|
export type DialogDescriptionProps = {
|
|
46
|
+
id?: string;
|
|
45
47
|
asChild?: boolean;
|
|
46
48
|
} & ComponentPropsWithoutRef<'p'>;
|
|
47
49
|
export type DialogBodyProps = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
2
|
export type InputProps = {
|
|
3
|
-
className?: string;
|
|
4
3
|
label?: string;
|
|
5
4
|
description?: string;
|
|
6
5
|
error?: string;
|
|
@@ -8,6 +7,7 @@ export type InputProps = {
|
|
|
8
7
|
endAddon?: string | ReactElement;
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
readOnly?: boolean;
|
|
10
|
+
className?: string;
|
|
11
11
|
} & ComponentPropsWithoutRef<'input'>;
|
|
12
12
|
export declare const Input: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<InputProps> & {
|
|
13
13
|
ref?: import('preact').Ref<HTMLInputElement> | undefined;
|
|
@@ -2,6 +2,10 @@ import { ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
export type DialogContextValue = {
|
|
3
3
|
open: boolean;
|
|
4
4
|
setOpen: (next: boolean) => void;
|
|
5
|
+
titleId: string;
|
|
6
|
+
descriptionId: string;
|
|
7
|
+
setTitleId: (id: string) => void;
|
|
8
|
+
setDescriptionId: (id: string) => void;
|
|
5
9
|
};
|
|
6
10
|
export type DialogProviderProps = {
|
|
7
11
|
value: DialogContextValue;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
2
|
export type SearchFieldContextValue = {
|
|
3
3
|
id: string;
|
|
4
|
+
setId: (id: string) => void;
|
|
4
5
|
value: string;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
readOnly?: boolean;
|
|
@@ -13,5 +14,8 @@ export type SearchFieldProviderProps = {
|
|
|
13
14
|
value: SearchFieldContextValue;
|
|
14
15
|
children?: ReactNode;
|
|
15
16
|
};
|
|
16
|
-
export declare const SearchFieldProvider:
|
|
17
|
+
export declare const SearchFieldProvider: {
|
|
18
|
+
({ value, children }: SearchFieldProviderProps): ReactElement;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
17
21
|
export declare const useSearchField: () => SearchFieldContextValue;
|