@utrecht/component-library-react 3.0.1-alpha.25 → 3.0.1-alpha.27

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.
@@ -2,10 +2,14 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2023 Robbert Broersma
4
4
  */
5
- import { HTMLAttributes, PropsWithChildren } from 'react';
5
+ import { HTMLAttributes } from 'react';
6
6
  export type ComboboxProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const Combobox: ({ className, ...restProps }: PropsWithChildren<ComboboxProps>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Combobox: import("react").ForwardRefExoticComponent<ComboboxProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
8
10
  export interface ComboboxPopoverProps extends HTMLAttributes<HTMLDivElement> {
9
11
  position?: string | 'block-end' | 'block-start';
10
12
  }
11
- export declare const ComboboxPopover: ({ className, position, ...restProps }: PropsWithChildren<ComboboxPopoverProps>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ComboboxPopover: import("react").ForwardRefExoticComponent<ComboboxPopoverProps & {
14
+ children?: import("react").ReactNode;
15
+ } & import("react").RefAttributes<HTMLDivElement>>;
package/dist/Listbox.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2023 Robbert Broersma
4
4
  */
5
- import { HTMLAttributes, LiHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
5
+ import { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
6
6
  export interface ListboxProps extends HTMLAttributes<HTMLDivElement> {
7
7
  disabled?: boolean;
8
8
  invalid?: boolean;
@@ -10,14 +10,20 @@ export interface ListboxProps extends HTMLAttributes<HTMLDivElement> {
10
10
  readOnly?: boolean;
11
11
  required?: boolean;
12
12
  }
13
- export declare const Listbox: ({ children, className, disabled, invalid, multiple, readOnly, required, ...restProps }: PropsWithChildren<ListboxProps>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Listbox: import("react").ForwardRefExoticComponent<ListboxProps & {
14
+ children?: ReactNode;
15
+ } & import("react").RefAttributes<HTMLDivElement>>;
14
16
  export interface ListboxOptionGroupProps extends LiHTMLAttributes<HTMLLIElement> {
15
17
  label?: ReactNode;
16
18
  }
17
- export declare const ListboxOptionGroup: ({ children, label, ...restProps }: PropsWithChildren<ListboxOptionGroupProps>) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const ListboxOptionGroup: import("react").ForwardRefExoticComponent<ListboxOptionGroupProps & {
20
+ children?: ReactNode;
21
+ } & import("react").RefAttributes<HTMLLIElement>>;
18
22
  export interface ListboxOptionProps extends HTMLAttributes<HTMLLIElement> {
19
23
  active?: boolean;
20
24
  disabled?: boolean;
21
25
  selected?: boolean;
22
26
  }
23
- export declare const ListboxOption: ({ active, className, disabled, selected, ...restProps }: PropsWithChildren<ListboxOptionProps>) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const ListboxOption: import("react").ForwardRefExoticComponent<ListboxOptionProps & {
28
+ children?: ReactNode;
29
+ } & import("react").RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ export interface TableContainerProps extends HTMLAttributes<HTMLDivElement> {
7
+ overflowInline?: boolean;
8
+ }
9
+ export declare const TableContainer: import("react").ForwardRefExoticComponent<TableContainerProps & {
10
+ children?: import("react").ReactNode;
11
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -2,10 +2,14 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2023 Robbert Broersma
4
4
  */
5
- import { HTMLAttributes, PropsWithChildren } from 'react';
5
+ import { HTMLAttributes } from 'react';
6
6
  export type ComboboxProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const Combobox: ({ className, ...restProps }: PropsWithChildren<ComboboxProps>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Combobox: import("react").ForwardRefExoticComponent<ComboboxProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
8
10
  export interface ComboboxPopoverProps extends HTMLAttributes<HTMLDivElement> {
9
11
  position?: string | 'block-end' | 'block-start';
10
12
  }
11
- export declare const ComboboxPopover: ({ className, position, ...restProps }: PropsWithChildren<ComboboxPopoverProps>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ComboboxPopover: import("react").ForwardRefExoticComponent<ComboboxPopoverProps & {
14
+ children?: import("react").ReactNode;
15
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -2,7 +2,7 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2023 Robbert Broersma
4
4
  */
5
- import { HTMLAttributes, LiHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
5
+ import { HTMLAttributes, LiHTMLAttributes, ReactNode } from 'react';
6
6
  export interface ListboxProps extends HTMLAttributes<HTMLDivElement> {
7
7
  disabled?: boolean;
8
8
  invalid?: boolean;
@@ -10,14 +10,20 @@ export interface ListboxProps extends HTMLAttributes<HTMLDivElement> {
10
10
  readOnly?: boolean;
11
11
  required?: boolean;
12
12
  }
13
- export declare const Listbox: ({ children, className, disabled, invalid, multiple, readOnly, required, ...restProps }: PropsWithChildren<ListboxProps>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Listbox: import("react").ForwardRefExoticComponent<ListboxProps & {
14
+ children?: ReactNode;
15
+ } & import("react").RefAttributes<HTMLDivElement>>;
14
16
  export interface ListboxOptionGroupProps extends LiHTMLAttributes<HTMLLIElement> {
15
17
  label?: ReactNode;
16
18
  }
17
- export declare const ListboxOptionGroup: ({ children, label, ...restProps }: PropsWithChildren<ListboxOptionGroupProps>) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const ListboxOptionGroup: import("react").ForwardRefExoticComponent<ListboxOptionGroupProps & {
20
+ children?: ReactNode;
21
+ } & import("react").RefAttributes<HTMLLIElement>>;
18
22
  export interface ListboxOptionProps extends HTMLAttributes<HTMLLIElement> {
19
23
  active?: boolean;
20
24
  disabled?: boolean;
21
25
  selected?: boolean;
22
26
  }
23
- export declare const ListboxOption: ({ active, className, disabled, selected, ...restProps }: PropsWithChildren<ListboxOptionProps>) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const ListboxOption: import("react").ForwardRefExoticComponent<ListboxOptionProps & {
28
+ children?: ReactNode;
29
+ } & import("react").RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ export interface TableContainerProps extends HTMLAttributes<HTMLDivElement> {
7
+ overflowInline?: boolean;
8
+ }
9
+ export declare const TableContainer: import("react").ForwardRefExoticComponent<TableContainerProps & {
10
+ children?: import("react").ReactNode;
11
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2024 Frameless B.V.
4
+ */
5
+ import '../../../../components/table/css/index.scss';
6
+ export * from '../TableContainer';
@@ -153,6 +153,8 @@ export type { StrongProps } from '../Strong';
153
153
  export { Strong } from './Strong';
154
154
  export type { SurfaceProps } from '../Surface';
155
155
  export { Surface } from './Surface';
156
+ export type { TableContainerProps } from '../TableContainer';
157
+ export { TableContainer } from '../TableContainer';
156
158
  export type { TableProps } from '../Table';
157
159
  export { Table } from './Table';
158
160
  export type { TableBodyProps } from '../TableBody';
@@ -154,6 +154,8 @@ export type { StrongProps } from './Strong';
154
154
  export { Strong } from './Strong';
155
155
  export type { SurfaceProps } from './Surface';
156
156
  export { Surface } from './Surface';
157
+ export type { TableContainerProps } from './TableContainer';
158
+ export { TableContainer } from './TableContainer';
157
159
  export type { TableProps } from './Table';
158
160
  export { Table } from './Table';
159
161
  export type { TableBodyProps } from './TableBody';