@utrecht/component-library-react 3.0.1-alpha.21 → 3.0.1-alpha.23
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/.jest-test-results.json +1 -1
- package/dist/Combobox.d.ts +11 -0
- package/dist/FormField.d.ts +5 -2
- package/dist/Listbox.d.ts +23 -0
- package/dist/css-module/Combobox.d.ts +11 -0
- package/dist/css-module/FormField.d.ts +5 -2
- package/dist/css-module/Listbox.d.ts +23 -0
- package/dist/css-module/css-module/Combobox.d.ts +6 -0
- package/dist/css-module/css-module/Listbox.d.ts +6 -0
- package/dist/css-module/css-module/index.d.ts +4 -0
- package/dist/css-module/index.d.ts +4 -0
- package/dist/css-module/index.js +485 -368
- package/dist/css-module/index.js.map +1 -1
- package/dist/css-module/index.mjs +481 -369
- package/dist/css-module/index.mjs.map +1 -1
- package/dist/index.cjs.js +389 -278
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.esm.js +385 -279
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2023 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
6
|
+
export type ComboboxProps = HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export declare const Combobox: ({ className, ...restProps }: PropsWithChildren<ComboboxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export interface ComboboxPopoverProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
position?: string | 'block-end' | 'block-start';
|
|
10
|
+
}
|
|
11
|
+
export declare const ComboboxPopover: ({ className, position, ...restProps }: PropsWithChildren<ComboboxPopoverProps>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/FormField.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
description?: ReactNode;
|
|
4
|
+
input?: ReactNode;
|
|
3
5
|
invalid?: boolean;
|
|
6
|
+
label?: ReactNode;
|
|
4
7
|
type?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & {
|
|
7
|
-
children?:
|
|
10
|
+
children?: ReactNode;
|
|
8
11
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2023 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
import { HTMLAttributes, LiHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
6
|
+
export interface ListboxProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Listbox: ({ children, className, disabled, invalid, multiple, readOnly, required, ...restProps }: PropsWithChildren<ListboxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface ListboxOptionGroupProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const ListboxOptionGroup: ({ children, label, ...restProps }: PropsWithChildren<ListboxOptionGroupProps>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export interface ListboxOptionProps extends HTMLAttributes<HTMLLIElement> {
|
|
19
|
+
active?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const ListboxOption: ({ active, className, disabled, selected, ...restProps }: PropsWithChildren<ListboxOptionProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2023 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
6
|
+
export type ComboboxProps = HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export declare const Combobox: ({ className, ...restProps }: PropsWithChildren<ComboboxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export interface ComboboxPopoverProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
position?: string | 'block-end' | 'block-start';
|
|
10
|
+
}
|
|
11
|
+
export declare const ComboboxPopover: ({ className, position, ...restProps }: PropsWithChildren<ComboboxPopoverProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
description?: ReactNode;
|
|
4
|
+
input?: ReactNode;
|
|
3
5
|
invalid?: boolean;
|
|
6
|
+
label?: ReactNode;
|
|
4
7
|
type?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & {
|
|
7
|
-
children?:
|
|
10
|
+
children?: ReactNode;
|
|
8
11
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2023 Robbert Broersma
|
|
4
|
+
*/
|
|
5
|
+
import { HTMLAttributes, LiHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
6
|
+
export interface ListboxProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Listbox: ({ children, className, disabled, invalid, multiple, readOnly, required, ...restProps }: PropsWithChildren<ListboxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface ListboxOptionGroupProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const ListboxOptionGroup: ({ children, label, ...restProps }: PropsWithChildren<ListboxOptionGroupProps>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export interface ListboxOptionProps extends HTMLAttributes<HTMLLIElement> {
|
|
19
|
+
active?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const ListboxOption: ({ active, className, disabled, selected, ...restProps }: PropsWithChildren<ListboxOptionProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -33,6 +33,8 @@ export type { ColorSampleProps } from '../ColorSample';
|
|
|
33
33
|
export { ColorSample } from './ColorSample';
|
|
34
34
|
export type { ColumnLayoutProps } from '../ColumnLayout';
|
|
35
35
|
export { ColumnLayout } from './ColumnLayout';
|
|
36
|
+
export type { ComboboxProps, ComboboxPopoverProps } from './Combobox';
|
|
37
|
+
export { Combobox, ComboboxPopover } from './Combobox';
|
|
36
38
|
export type { CurrencyDataProps } from '../CurrencyData';
|
|
37
39
|
export { CurrencyData } from './CurrencyData';
|
|
38
40
|
export type { DataBadgeProps } from '../DataBadge';
|
|
@@ -97,6 +99,8 @@ export type { LinkSocialProps } from '../LinkSocial';
|
|
|
97
99
|
export { LinkList, LinkListLink } from './LinkList';
|
|
98
100
|
export type { LinkListProps, LinkListLinkProps } from './LinkList';
|
|
99
101
|
export { LinkSocial } from './LinkSocial';
|
|
102
|
+
export type { ListboxProps, ListboxOptionProps, ListboxOptionGroupProps } from './Listbox';
|
|
103
|
+
export { Listbox, ListboxOption, ListboxOptionGroup } from './Listbox';
|
|
100
104
|
export type { ListSocialProps, ListSocialItemProps } from '../ListSocial';
|
|
101
105
|
export { ListSocial, ListSocialItem } from './ListSocial';
|
|
102
106
|
export type { LogoProps } from '../Logo';
|
|
@@ -34,6 +34,8 @@ export type { ColorSampleProps } from './ColorSample';
|
|
|
34
34
|
export { ColorSample } from './ColorSample';
|
|
35
35
|
export type { ColumnLayoutProps } from './ColumnLayout';
|
|
36
36
|
export { ColumnLayout } from './ColumnLayout';
|
|
37
|
+
export type { ComboboxProps, ComboboxPopoverProps } from './Combobox';
|
|
38
|
+
export { Combobox, ComboboxPopover } from './Combobox';
|
|
37
39
|
export type { CurrencyDataProps } from './CurrencyData';
|
|
38
40
|
export { CurrencyData } from './CurrencyData';
|
|
39
41
|
export type { DataBadgeProps } from './DataBadge';
|
|
@@ -98,6 +100,8 @@ export type { LinkSocialProps } from './LinkSocial';
|
|
|
98
100
|
export { LinkSocial } from './LinkSocial';
|
|
99
101
|
export type { LinkListProps, LinkListLinkProps } from './LinkList';
|
|
100
102
|
export { LinkList, LinkListLink } from './LinkList';
|
|
103
|
+
export type { ListboxProps, ListboxOptionProps, ListboxOptionGroupProps } from './Listbox';
|
|
104
|
+
export { Listbox, ListboxOption, ListboxOptionGroup } from './Listbox';
|
|
101
105
|
export type { ListSocialProps, ListSocialItemProps } from './ListSocial';
|
|
102
106
|
export { ListSocial, ListSocialItem } from './ListSocial';
|
|
103
107
|
export type { LogoProps } from './Logo';
|