@enonic/ui 0.37.0 → 0.38.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { ActiveCell } from '../../hooks/use-grid-navigation';
|
|
3
|
-
export type
|
|
3
|
+
export type GridListProps = {
|
|
4
4
|
baseId?: string;
|
|
5
5
|
/**
|
|
6
6
|
* Controlled active cell (use `undefined` for no active cell, omit for uncontrolled)
|
|
@@ -23,9 +23,6 @@ export type GridListRootProps = {
|
|
|
23
23
|
* @default false
|
|
24
24
|
*/
|
|
25
25
|
loop?: boolean;
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
};
|
|
28
|
-
export type GridListContentProps = {
|
|
29
26
|
/**
|
|
30
27
|
* Accessible label for the grid
|
|
31
28
|
*/
|
|
@@ -34,6 +31,10 @@ export type GridListContentProps = {
|
|
|
34
31
|
* ID of element that labels this grid (alternative to label)
|
|
35
32
|
*/
|
|
36
33
|
labelledBy?: string;
|
|
34
|
+
/**
|
|
35
|
+
* ID of element that describes this grid (for additional context)
|
|
36
|
+
*/
|
|
37
|
+
describedBy?: string;
|
|
37
38
|
className?: string;
|
|
38
39
|
children?: ReactNode;
|
|
39
40
|
} & Omit<ComponentPropsWithoutRef<'div'>, 'role'>;
|
|
@@ -70,15 +71,10 @@ export type GridListActionProps = {
|
|
|
70
71
|
*/
|
|
71
72
|
children: ReactElement;
|
|
72
73
|
};
|
|
73
|
-
export declare const GridList: {
|
|
74
|
-
(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Root: {
|
|
78
|
-
({ baseId, activeCell: controlledActiveCell, defaultActiveCell, onActiveCellChange, disabled, loop, children, }: GridListRootProps): ReactElement;
|
|
79
|
-
displayName: string;
|
|
80
|
-
};
|
|
81
|
-
Content: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<GridListContentProps> & {
|
|
74
|
+
export declare const GridList: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<GridListProps> & {
|
|
75
|
+
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
76
|
+
}> & {
|
|
77
|
+
Root: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<GridListProps> & {
|
|
82
78
|
ref?: import('preact').Ref<HTMLDivElement> | undefined;
|
|
83
79
|
}>;
|
|
84
80
|
Row: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<GridListRowProps> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { GridListCellProps,
|
|
1
|
+
export type { GridListCellProps, GridListProps, GridListRowProps } from './grid-list';
|
|
2
2
|
export { GridList } from './grid-list';
|