loon-bulma-react 2023.0.24 → 2023.0.26
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/README.md +4 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/Container/Container.d.ts +4 -4
- package/dist/components/DataTable/DataTable.d.ts +1 -3
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/Notification/Notification.d.ts +14 -14
- package/dist/forms/Checkbox/CB.d.ts +3 -3
- package/dist/forms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/forms/Currency/CurrencyInput.d.ts +3 -2
- package/dist/forms/Datetimes/DateInput.d.ts +1 -0
- package/dist/forms/Datetimes/DateTimeInput.d.ts +1 -0
- package/dist/forms/Datetimes/TimeInput.d.ts +1 -0
- package/dist/forms/File/FileInput.d.ts +1 -0
- package/dist/forms/FormBuilder/FormBuilderProps.d.ts +4 -2
- package/dist/forms/Input.d.ts +87 -48
- package/dist/forms/Numeric/MultiRangeInput.d.ts +2 -1
- package/dist/forms/Numeric/NumberInput.d.ts +1 -0
- package/dist/forms/Numeric/RangeInput.d.ts +1 -1
- package/dist/forms/Others/ColorInput.d.ts +1 -0
- package/dist/forms/Radio/RB.d.ts +2 -2
- package/dist/forms/Radio/Radio.d.ts +3 -1
- package/dist/forms/Selects/MultiSelect.d.ts +1 -1
- package/dist/forms/Selects/Select.d.ts +1 -1
- package/dist/forms/Text/EmailInput.d.ts +1 -0
- package/dist/forms/Text/PasswordInput.d.ts +1 -0
- package/dist/forms/Text/TextArea.d.ts +1 -0
- package/dist/forms/Text/TextEditor.d.ts +21 -0
- package/dist/forms/Text/TextInput.d.ts +2 -1
- package/dist/forms/index.d.ts +2 -1
- package/dist/forms/shared/Base.Input.Container.d.ts +1 -0
- package/dist/forms/shared/BaseInputProps.d.ts +12 -6
- package/dist/hooks/useCaretPosition.d.ts +10 -0
- package/dist/hooks/useLocalStoredState.d.ts +2 -0
- package/dist/index.js +8575 -456
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45372 -0
- package/dist/index.modern.js +8577 -455
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +1080 -0
- package/dist/loon-react-bulma-types.d.ts +2 -1
- package/dist/utils/JSDateTime.class.d.ts +10 -4
- package/dist/utils/JSDuration.class.d.ts +3 -5
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/isIBAN.function.d.ts +25 -0
- package/package.json +46 -21
- package/styles/_all.scss +1 -0
- package/styles/checkradio.scss +1 -1
- package/styles/tiptap-editor.scss +11 -0
- package/dist/components/Calendar/Fourweeks/DayContainer.d.ts +0 -22
- package/dist/components/Calendar/Fourweeks/MonthView.d.ts +0 -23
- package/dist/components/Calendar/Month/DayContainer.d.ts +0 -22
- package/dist/components/DataTable/DataTableProps.d.ts +0 -102
- package/dist/components/Form/Checkbox/Checkbox.d.ts +0 -49
- package/dist/components/Form/Datetimes/DateInput.d.ts +0 -43
- package/dist/components/Form/Datetimes/DateTimeInput.d.ts +0 -43
- package/dist/components/Form/Datetimes/TimeInput.d.ts +0 -46
- package/dist/components/Form/File/FileInput.d.ts +0 -65
- package/dist/components/Form/Form.d.ts +0 -186
- package/dist/components/Form/FormBuilder/FormBuilder.d.ts +0 -9
- package/dist/components/Form/FormBuilder/FormBuilderProps.d.ts +0 -94
- package/dist/components/Form/Input.d.ts +0 -56
- package/dist/components/Form/Numeric/MultiRangeInput.d.ts +0 -44
- package/dist/components/Form/Numeric/NumberInput.d.ts +0 -46
- package/dist/components/Form/Numeric/RangeInput.d.ts +0 -45
- package/dist/components/Form/Others/ColorInput.d.ts +0 -42
- package/dist/components/Form/Others/HiddenInput.d.ts +0 -29
- package/dist/components/Form/Radio/Radio.d.ts +0 -120
- package/dist/components/Form/Selects/BaseSelectProps.d.ts +0 -21
- package/dist/components/Form/Selects/MultiSelect.d.ts +0 -56
- package/dist/components/Form/Selects/Select.d.ts +0 -56
- package/dist/components/Form/Text/EmailInput.d.ts +0 -49
- package/dist/components/Form/Text/PasswordInput.d.ts +0 -49
- package/dist/components/Form/Text/TextArea.d.ts +0 -46
- package/dist/components/Form/Text/TextInput.d.ts +0 -61
- package/dist/components/Form/shared/Base.Input.Container.d.ts +0 -13
- package/dist/components/Form/shared/BaseInputProps.d.ts +0 -105
- package/dist/components/Form/shared/InputError.d.ts +0 -12
- package/dist/components/Form/shared/InputIcons.d.ts +0 -13
- package/dist/components/Form/shared/index.d.ts +0 -4
- package/dist/components/Layout/AspectRatio/AspectRatio.d.ts +0 -28
- package/dist/components/Layout/Box/Box.d.ts +0 -19
- package/dist/components/Layout/Columns/Column.d.ts +0 -153
- package/dist/components/Layout/Columns/Columns.d.ts +0 -29
- package/dist/components/Layout/Container/Container.d.ts +0 -78
- package/dist/components/Layout/Content/Content.d.ts +0 -16
- package/dist/components/Layout/Footer/Footer.d.ts +0 -18
- package/dist/components/Layout/Hero/Hero.d.ts +0 -120
- package/dist/components/Layout/Image/Image.d.ts +0 -27
- package/dist/components/Layout/ScrollArea/ScrollArea.d.ts +0 -72
- package/dist/components/Layout/Section/Section.d.ts +0 -15
- package/dist/contexts/Confirm/Confirm.d.ts +0 -20
- package/dist/contexts/Confirm/ConfirmDialog.d.ts +0 -2
- package/dist/functions/calculateTxtColor.function.d.ts +0 -15
- package/dist/functions/hasBSN.d.ts +0 -15
- package/dist/functions/index.d.ts +0 -1
- package/dist/functions/txtColorDecision.d.ts +0 -15
- package/dist/test-data.d.ts +0 -9
- package/dist/utils/JSDuration.d.ts +0 -82
- package/dist/utils/date-utils.d.ts +0 -312
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> ## Aanpassingen
|
|
4
4
|
>
|
|
5
|
+
> - `spellCheck`-property op de meeste `<input`-componenten. Default = `false`
|
|
6
|
+
> - `<TextInput />` onthoudt nu de caret-positie, als je typt.
|
|
7
|
+
> - `useCaretPosition`-hook gemaakt voor hierbovengenoemde gebruik.
|
|
8
|
+
> - `<TekstEditor>` -component gemaakt. Eigenlijk ene tekst-editor met wat opmaak-opties die HTML of JSON kan genereren om de opmaak te bewaren (of gewoon platte tekst kan gebruiken). Intern gebruikt met [tiptap](https://tiptap.dev/). Component was nodig voor de Help-In-Loon-prakker.
|
|
5
9
|
> - `useSessionStoredState()`-hook gemaakt. Gebruik session-storage in plaats van local-storage om gegevens te verwijderen bij het sluiten van de tab/browser.
|
|
6
10
|
> - `<CB>`-component gemaakt. Een kale checkbox met een label. Geen wrapper, geen direction, geen form.
|
|
7
11
|
> - `<RB>`-component gemaakt. Een Radio-button met een label. Geen wrapper, geen direction, geen form.
|
|
@@ -23,6 +23,6 @@ declare type AspectRatioProps = {
|
|
|
23
23
|
* <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ">
|
|
24
24
|
* </AspectRatio>
|
|
25
25
|
*/
|
|
26
|
-
declare function AspectRatio(
|
|
26
|
+
declare function AspectRatio({ ratio, children, caption, className }: AspectRatioProps): JSX.Element;
|
|
27
27
|
export { AspectRatio };
|
|
28
28
|
export type { AspectRatioProps };
|
|
@@ -25,6 +25,6 @@ declare type ButtonGroupProps = {
|
|
|
25
25
|
* <Button>Right</Button>
|
|
26
26
|
* </ButtonGroup>
|
|
27
27
|
*/
|
|
28
|
-
declare const ButtonGroup: (
|
|
28
|
+
declare const ButtonGroup: ({ children, hasAddons, alignment, className }: ButtonGroupProps) => JSX.Element;
|
|
29
29
|
export { ButtonGroup };
|
|
30
30
|
export type { ButtonGroupProps };
|
|
@@ -23,7 +23,7 @@ declare type ContainerProps = {
|
|
|
23
23
|
* @example <Container>This is a container</Container>
|
|
24
24
|
*/
|
|
25
25
|
declare const Container: {
|
|
26
|
-
(
|
|
26
|
+
({ className, children, styles }: ContainerProps): JSX.Element;
|
|
27
27
|
/**
|
|
28
28
|
* Een container om content horizontaal te centreren in grote viewports.
|
|
29
29
|
* @param props
|
|
@@ -39,7 +39,7 @@ declare const Container: {
|
|
|
39
39
|
*
|
|
40
40
|
* @example <Container.Wide>This is a somewhat wider container</Container.Wide>
|
|
41
41
|
*/
|
|
42
|
-
Wide(
|
|
42
|
+
Wide({ className, children, styles }: ContainerProps): JSX.Element;
|
|
43
43
|
/**
|
|
44
44
|
* Een container om content horizontaal te centreren in grote viewports.
|
|
45
45
|
* @param props
|
|
@@ -55,7 +55,7 @@ declare const Container: {
|
|
|
55
55
|
*
|
|
56
56
|
* @example <Container.Widest>This is a wide container</Container.Widest>
|
|
57
57
|
*/
|
|
58
|
-
Widest(
|
|
58
|
+
Widest({ className, children, styles }: ContainerProps): JSX.Element;
|
|
59
59
|
/**
|
|
60
60
|
* Een container om content horizontaal te centreren in grote viewports.
|
|
61
61
|
* De width van de container is afhankelijk van de maximale viewport width.
|
|
@@ -73,7 +73,7 @@ declare const Container: {
|
|
|
73
73
|
*
|
|
74
74
|
* @example <Container.Max>This is an almost-fullwidth container </Container.Max>
|
|
75
75
|
*/
|
|
76
|
-
Max(
|
|
76
|
+
Max({ className, children, styles }: ContainerProps): JSX.Element;
|
|
77
77
|
};
|
|
78
78
|
export { Container };
|
|
79
79
|
export type { ContainerProps };
|
|
@@ -31,8 +31,6 @@ declare type DataTableProps<T extends unknown> = {
|
|
|
31
31
|
maxRows?: number;
|
|
32
32
|
/** Placeholder voor zoekveld. Als er geen placeholder is (undefined or emptystring), is er geen zoek-veld */
|
|
33
33
|
searchPlaceholder?: string;
|
|
34
|
-
/** Placeholder voor zoekveld. Als er geen placeholder is (undefined or emptystring), is er geen zoek-veld @deprecated: use `searchPlaceholder` */
|
|
35
|
-
searchTxt?: string;
|
|
36
34
|
/**
|
|
37
35
|
* (Optionele) Eigen zoek-functie. De default-zoek-functie wordt dan vervangen.
|
|
38
36
|
* @param searchTerm de content van het zoekveld
|
|
@@ -126,6 +124,6 @@ declare type DataTableColumn<T extends unknown> = {
|
|
|
126
124
|
* );
|
|
127
125
|
*
|
|
128
126
|
*/
|
|
129
|
-
declare function DataTable<T extends unknown>({ fullwidth, bordered, narrow, striped, hoverable, defaultSortCol, data, maxRows, columns, rowIdentifier, headerContent,
|
|
127
|
+
declare function DataTable<T extends unknown>({ fullwidth, bordered, narrow, striped, hoverable, defaultSortCol, data, maxRows, columns, rowIdentifier, headerContent, searchPlaceholder, onSearch, rowClasses, onRowSelected, onNoRowsToRender, }: DataTableProps<T>): JSX.Element;
|
|
130
128
|
export { DataTable };
|
|
131
129
|
export type { DataTableProps, DataTableColumn };
|
|
@@ -26,7 +26,7 @@ declare type IconProps = {
|
|
|
26
26
|
* <Icon icon="fas fa-flag" />
|
|
27
27
|
* <Icon icon={faFlag} /> // import { faFlag } from '@fortawesome/free-solid-svg-icons';
|
|
28
28
|
*/
|
|
29
|
-
declare const Icon: (
|
|
29
|
+
declare const Icon: ({ color, size, rotation, icon, flip, animate }: IconProps) => JSX.Element;
|
|
30
30
|
declare type IconTextProps = {
|
|
31
31
|
/** React font-awesome icon
|
|
32
32
|
* - `string`: geef de gehele font-awesome-class op. 'flip', 'animate', 'rotation' worden dan al gebruikt in deze class.
|
|
@@ -55,6 +55,6 @@ declare type IconTextProps = {
|
|
|
55
55
|
* <IconText icon="fas fa-flag">Flag</IconText>
|
|
56
56
|
* <IconText icon={faFlag}>Flag</IconText> // import { faFlag } from '@fortawesome/free-solid-svg-icons';
|
|
57
57
|
*/
|
|
58
|
-
declare const IconText: (
|
|
58
|
+
declare const IconText: ({ icon, size, color, rotation, flip, animate, children }: IconTextProps) => JSX.Element;
|
|
59
59
|
export { Icon, IconText };
|
|
60
60
|
export type { IconProps, IconTextProps };
|
|
@@ -24,6 +24,6 @@ declare type ImageProps = {
|
|
|
24
24
|
* @returns an image with a fixed aspect ratio
|
|
25
25
|
* @example <Image ratio="1by1" src="https://www.loon.be/images/logo.png" alt="Loon.be" />
|
|
26
26
|
*/
|
|
27
|
-
declare function Image(
|
|
27
|
+
declare function Image({ ratio, imgWidth, alt, figCaption, className, isRounded, src }: ImageProps): JSX.Element;
|
|
28
28
|
export { Image };
|
|
29
29
|
export type { ImageProps };
|
|
@@ -43,6 +43,6 @@ declare type LinkProps = {
|
|
|
43
43
|
* @returns een link
|
|
44
44
|
* @example <Link href="https://www.google.com">Google</Link>
|
|
45
45
|
*/
|
|
46
|
-
declare const Link: (
|
|
46
|
+
declare const Link: ({ href, target, tooltip, id, rel, children }: LinkProps) => JSX.Element;
|
|
47
47
|
export { Link, LinkButton };
|
|
48
48
|
export type { LinkProps, LinkButtonProps };
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ColorProp } from '../../loon-react-bulma-types';
|
|
3
|
+
/** Props voor een Notification */
|
|
4
|
+
export declare type NotificationProps = {
|
|
5
|
+
/** Content van de notificatie */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Afhandeling van dismiss-click notificatie
|
|
9
|
+
* @param e event
|
|
10
|
+
*/
|
|
11
|
+
onDismiss(e?: any): void;
|
|
12
|
+
/** Roep de @see onDismiss() automatisch aan na ... milliseconden */
|
|
13
|
+
autoDismissAfter?: number;
|
|
14
|
+
};
|
|
3
15
|
/**
|
|
4
16
|
* Een instelbare notificatie. Default is een info-notificatie
|
|
5
17
|
* @param props
|
|
@@ -7,8 +19,8 @@ import { ColorProp } from '../../loon-react-bulma-types';
|
|
|
7
19
|
* @example <Notification>Hello World</Notification>
|
|
8
20
|
*/
|
|
9
21
|
declare const Notification: {
|
|
10
|
-
(
|
|
11
|
-
color?:
|
|
22
|
+
({ children, onDismiss, autoDismissAfter, color, }: NotificationProps & {
|
|
23
|
+
color?: string | undefined;
|
|
12
24
|
}): JSX.Element;
|
|
13
25
|
/** Een primary-colored notificatie
|
|
14
26
|
* @param props
|
|
@@ -48,15 +60,3 @@ declare const Notification: {
|
|
|
48
60
|
Info(props: NotificationProps): JSX.Element;
|
|
49
61
|
};
|
|
50
62
|
export { Notification };
|
|
51
|
-
/** Props voor een Notification */
|
|
52
|
-
export declare type NotificationProps = {
|
|
53
|
-
/** Content van de notificatie */
|
|
54
|
-
children: React.ReactNode;
|
|
55
|
-
/**
|
|
56
|
-
* Afhandeling van dismiss-click notificatie
|
|
57
|
-
* @param e event
|
|
58
|
-
*/
|
|
59
|
-
onDismiss(e?: any): void;
|
|
60
|
-
/** Roep de @see onDismiss() automatisch aan na ... milliseconden */
|
|
61
|
-
autoDismissAfter?: number;
|
|
62
|
-
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CheckradioStylingType, ColorProp } from '../../loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
|
-
declare type CBInputProps = Omit<BaseInputProps, 'keyboardType' | 'icons' | 'direction' | 'validation' | 'labelHidden' | 'label'> & {
|
|
4
|
+
declare type CBInputProps = Omit<BaseInputProps, 'keyboardType' | 'icons' | 'direction' | 'validation' | 'labelHidden' | 'label' | 'spellCheck'> & {
|
|
5
5
|
/** Speciale styling van de checkbox */
|
|
6
6
|
styling?: CheckradioStylingType;
|
|
7
7
|
/** Is de checkbox checked */
|
|
@@ -41,6 +41,6 @@ declare type CBInputProps = Omit<BaseInputProps, 'keyboardType' | 'icons' | 'dir
|
|
|
41
41
|
* | onValueChanged() | `function` | | (value: boolean, valid?: boolean) => void |
|
|
42
42
|
* | onKeyDown() | `function` | | (event: React.KeyboardEvent) => void |
|
|
43
43
|
*/
|
|
44
|
-
declare function
|
|
45
|
-
export {
|
|
44
|
+
declare function CB({ checked, label, name, id, size, color, styling, textAlign, disabled, errorMessage, helpTag, onValueChanged, onKeyDown, onFocus, }: CBInputProps): JSX.Element;
|
|
45
|
+
export { CB };
|
|
46
46
|
export type { CBInputProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CheckradioStylingType, ColorProp } from '../../loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
|
-
declare type CheckboxInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
4
|
+
declare type CheckboxInputProps = Omit<BaseInputProps, 'icons' | 'labelHidden' | 'spellCheck'> & {
|
|
5
5
|
/** Kleur van de checkbox (default = 'l', link) */
|
|
6
6
|
color?: ColorProp;
|
|
7
7
|
/** Speciale styling van de checkbox */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseInputProps } from '../shared';
|
|
3
|
-
declare type CurrencyInputProps =
|
|
3
|
+
declare type CurrencyInputProps = BaseInputProps & {
|
|
4
4
|
/** Start value voor deze input (optional) */
|
|
5
5
|
value?: number;
|
|
6
6
|
/**
|
|
@@ -32,6 +32,7 @@ declare type CurrencyInputProps = Omit<BaseInputProps, 'labelHidden'> & {
|
|
|
32
32
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
33
33
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
34
34
|
* | textAlign | `l`, `c`, `r` | `l` | de text-align van de input |
|
|
35
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
35
36
|
* | keyboardType | `search`, `text`, | `text ` | de type van de keyboard (touch-devices) |
|
|
36
37
|
* | | `email`,`tel`,`url` | | |
|
|
37
38
|
* | | `numeric`, `decimal` | | |
|
|
@@ -44,6 +45,6 @@ declare type CurrencyInputProps = Omit<BaseInputProps, 'labelHidden'> & {
|
|
|
44
45
|
* | onValueChanged() | `function` | | (value: string, valid?: boolean) => void |
|
|
45
46
|
* | onKeyDown() | `function` | | (event: React.KeyboardEvent) => void |
|
|
46
47
|
*/
|
|
47
|
-
declare function LbrCurrencyInput({ label, name, id, value, validation, errorMessage, size, textAlign, disabled, placeholder, keyboardType, tooltip, direction, onValueChanged, onKeyDown, decimalSeparator, alwaysShowCents, ...props }: CurrencyInputProps): JSX.Element;
|
|
48
|
+
declare function LbrCurrencyInput({ label, name, id, value, validation, errorMessage, size, textAlign, disabled, placeholder, keyboardType, tooltip, direction, labelHidden, onValueChanged, onKeyDown, decimalSeparator, alwaysShowCents, ...props }: CurrencyInputProps): JSX.Element;
|
|
48
49
|
export { LbrCurrencyInput as CurrencyInput };
|
|
49
50
|
export type { CurrencyInputProps };
|
|
@@ -25,6 +25,7 @@ declare type DateInputProps = BaseInputProps & {
|
|
|
25
25
|
* | id | `string ` | `name` | de id voor de input |
|
|
26
26
|
* | tooltip | `string ` | | tooltip voor de input |
|
|
27
27
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
28
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
28
29
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
29
30
|
* | textAlign | `l`, `c`, `r` | `l` | de text-uitlijning van de input |
|
|
30
31
|
* | keyboardType | `search`, `text`, | `text` | de type van de keyboard (touch-devices) |
|
|
@@ -24,6 +24,7 @@ declare type DateTimeInputProps = BaseInputProps & {
|
|
|
24
24
|
* | id | `string ` | `name` | de id voor de input |
|
|
25
25
|
* | tooltip | `string ` | | tooltip voor de input |
|
|
26
26
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
27
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
27
28
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
28
29
|
* | textAlign | `l`, `c`, `r` | `l` | de text-uitlijning van de input |
|
|
29
30
|
* | keyboardType | `search`, `text`, | `text ` | de type van de keyboard (touch-devices) |
|
|
@@ -25,6 +25,7 @@ declare type TimeInputProps = BaseInputProps & {
|
|
|
25
25
|
* | name | `string ` | | de naam voor de input (REQUIRED) |
|
|
26
26
|
* | label | `string ` | `name` | de label voor de input |
|
|
27
27
|
* | id | `string ` | `name` | de id voor de input |
|
|
28
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
28
29
|
* | tooltip | `string ` | | tooltip voor de input |
|
|
29
30
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
30
31
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
@@ -35,6 +35,7 @@ declare type FileInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
|
35
35
|
* | name | `string` | | de naam voor de input (REQUIRED) |
|
|
36
36
|
* | label | `string` | `name` | de label voor de input |
|
|
37
37
|
* | kiesLabel | `string` | | de tekst voor de selecteer-file-button |
|
|
38
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
38
39
|
* | multiple | `boolean` | `false` | of er meerdere files geselecteerd moeten |
|
|
39
40
|
* | boxed | `boolean` | `false` | of de input als een block moet worden |
|
|
40
41
|
* | accept | `string` | | de file-types die geselecteerd mogen worden|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColorProp, DirectionProp } from '~/loon-react-bulma-types';
|
|
3
|
+
import { FormValidationType } from '../shared';
|
|
3
4
|
import { SelectOptionType, SelectOptionGroupType } from './../Selects/BaseSelectProps';
|
|
4
5
|
/** Props voor de Form-component */
|
|
5
6
|
export declare type FormBuilderProps = {
|
|
@@ -36,6 +37,7 @@ export declare type FormBuilderProps = {
|
|
|
36
37
|
};
|
|
37
38
|
/** Props voor de fields in een form van de Form-Component */
|
|
38
39
|
export declare type FormBuilderFieldProps = {
|
|
40
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>, helpTag?: string) => void;
|
|
39
41
|
/** de naam voor het field. gebruikt in input en in <label> als geen label gedefinieerd.
|
|
40
42
|
* <input name="..." /> */
|
|
41
43
|
name: string;
|
package/dist/forms/Input.d.ts
CHANGED
|
@@ -1,55 +1,94 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
declare type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AlignmentProp, AutoCompleteType, DirectionProp, KeyboardTypeProp, SizeProp } from '..';
|
|
4
|
+
import { InputTypeProp } from './shared';
|
|
5
|
+
declare type InputValueType = string | number | readonly string[] | undefined;
|
|
6
|
+
declare type InputStylingPropsType = {
|
|
7
|
+
/** grootte van de input (default = `m`, medium)*/ size?: SizeProp;
|
|
8
|
+
/** alignment van de input (default = `l`, left) */ alignment?: AlignmentProp;
|
|
9
|
+
/** label boven (`v`) of voor (`h`) de input, (default = `h`, horizontal) */ direction?: DirectionProp;
|
|
10
|
+
/** (optioneel) icon op de input */ iconLeft?: IconProp | string;
|
|
11
|
+
/** (optioneel) icon aan einde op de input */ iconRight?: IconProp | string;
|
|
12
|
+
};
|
|
13
|
+
declare type InputPropsType<T = InputValueType> = {
|
|
14
|
+
/** label bij de input. Als geen label, dan wordt de `name`-property gebruikt */ label?: string;
|
|
15
|
+
/** foutmelding bij de input*/ errorMessage?: string;
|
|
16
|
+
/** helptag in Loon bij de input (`:HOOFDGROEP:SUBGROEP:`)*/ helpTag?: string;
|
|
17
|
+
/** type input (default = `text`)*/ type?: InputTypeProp;
|
|
18
|
+
/** (optioneel) tooltip-title voor de input*/ title?: string;
|
|
19
|
+
/** (optioneel) id voor de input. Als geen id, dan wordt de `name`-property gebruikt */ id?: string;
|
|
20
|
+
/** name-property voor de input */ name: string;
|
|
21
|
+
/** waarde voor de input */ value?: T;
|
|
22
|
+
/** gebruikt deze input de spellchecked (default = `false`) */ spellCheck?: boolean;
|
|
23
|
+
/** is deze input required (default= `false`)*/ required?: boolean;
|
|
24
|
+
/** autocomplete voor deze input (default = `off`)*/ autoComplete?: AutoCompleteType;
|
|
25
|
+
/** type toetsenbord (voor smartphones) voor deze input (default = `text`)*/ keyboardType?: KeyboardTypeProp;
|
|
26
|
+
/** placeholder in de input */ placeholder?: string;
|
|
27
|
+
/** is deze input disabled 9default = `false`)*/ disabled?: boolean;
|
|
28
|
+
/** bij welk form hoort deze input?*/ form?: string;
|
|
29
|
+
/**
|
|
30
|
+
* max waarde of max lengte voor de input
|
|
31
|
+
* _(altijd hoger dan de `min`-prop)_
|
|
32
|
+
* @example // voor max waarde
|
|
33
|
+
* <Input type="number" max="100"/>
|
|
34
|
+
* <Input type="range" max="100"/>
|
|
35
|
+
* <Input type="date" max="2019-12-25"/>
|
|
36
|
+
* <Input type="month" max="2019-12"/>
|
|
37
|
+
* <Input type="week" max="2019-W23"/>
|
|
38
|
+
* <Input type="time" max="17:30"/>
|
|
39
|
+
* <Input type="datetime-local" max="29-12-25T23:59"/>
|
|
40
|
+
* @example //strings: voor max length, altijd 0 of hoger
|
|
41
|
+
* <Input type="text" max="100"/>
|
|
42
|
+
* <Input type="password" max="50"/>
|
|
43
|
+
*/
|
|
44
|
+
max?: number;
|
|
15
45
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
46
|
+
* min waarde of min lengte voor de input
|
|
47
|
+
* _(altijd lager dan de `max`-prop)_
|
|
48
|
+
* @example <Input type="number" min="1"/>
|
|
49
|
+
* <Input type="range" min="1"/>
|
|
50
|
+
* <Input type="date" min="2019-01-01"/>
|
|
51
|
+
* <Input type="month" min="2019-01-01"/>
|
|
52
|
+
* <Input type="week" min="2019-W01"/>
|
|
53
|
+
* <Input type="time" min="08:30"/>
|
|
54
|
+
* <Input type="datetime-local" max="2019-01-01T00:00"/>
|
|
55
|
+
* @example //strings: voor max length, altijd 0 of hoger
|
|
56
|
+
* <Input type="text" min="100"/>
|
|
57
|
+
* <Input type="password" min="50"/>*/
|
|
58
|
+
min?: number;
|
|
59
|
+
/** stapgrootte voor groter/kleiner aanpassingen
|
|
60
|
+
* | type| value | Example|
|
|
61
|
+
* |----------------|----------------|---------------------------------------------|
|
|
62
|
+
* | number | `1` | `<Input type="number" step="2"/>` |
|
|
63
|
+
* | range | `1` | `<Input type="range" step="2"/>` |
|
|
64
|
+
* | date | `1` (day) | `<Input type="date" step="2"/>` |
|
|
65
|
+
* | month | `1` (month) | `<Input type="month" step="2"/>` |
|
|
66
|
+
* | week | `1` (week) | `<Input type="week" step="2"/>` |
|
|
67
|
+
* | time | `60` (seconds) | `<Input type="time" step="2"/>` |
|
|
68
|
+
* | datetime-local | `1` (second) | `<Input type="datetime-local" step="900"/>` |
|
|
19
69
|
*/
|
|
20
|
-
|
|
70
|
+
step?: number;
|
|
71
|
+
/** Is deze input readonly (default = `false`). Bij `true` zie je alleen nog maar de content van de input*/
|
|
72
|
+
readonly?: boolean;
|
|
73
|
+
/** moet deze input de focus krijgen? (default = `false`)*/ autofocus?: boolean;
|
|
74
|
+
/** (optionele) `ref` voor gebruik met `React.useRef`*/ ref?: React.Ref<HTMLInputElement>;
|
|
75
|
+
/** callback voor unfocus (blur), zet OOK de input op `touched`*/
|
|
76
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
77
|
+
/** callback voor onChange*/
|
|
78
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
79
|
+
/** callback voor focus */
|
|
80
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement>, helpTag?: string) => void;
|
|
81
|
+
/** callback voor typen */
|
|
82
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
83
|
+
/** callback voor typen */
|
|
84
|
+
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
21
85
|
};
|
|
86
|
+
declare function BaseInput<T extends InputValueType = string>({ placeholder, helpTag, errorMessage, label, disabled, keyboardType, type, title, name, value, required, spellCheck, id, autoComplete, max, min, readonly, step, autofocus, form, onBlur, onChange, onFocus, onKeyDown, onKeyUp, size, alignment, }: InputPropsType<T> & Omit<InputStylingPropsType, 'direction' | 'iconLeft' | 'iconRight'>): JSX.Element;
|
|
22
87
|
/**
|
|
23
|
-
*
|
|
24
|
-
* LET OP: Voor validatie kan ALLEEN de onValidate() function gebruikt
|
|
88
|
+
*
|
|
25
89
|
* @param props
|
|
26
|
-
* @returns
|
|
27
|
-
* @example <Input<T> type="text" placeholder="placeholder" name="name" id="id" value={value} {...props}/>
|
|
28
|
-
* @description alle props voor Input<T> component
|
|
29
|
-
* | prop | type | default | description |
|
|
30
|
-
* |-------------------|---------------------------|---------|--------------------------------------------|
|
|
31
|
-
* | name | `string` | | de naam voor de input (REQUIRED) |
|
|
32
|
-
* | type | `InputTypeProp` | | type voor de input (REQUIRED) |
|
|
33
|
-
* | label | `string` | `name` | de label voor de input |
|
|
34
|
-
* | id | `string` | `name` | de id voor de input |
|
|
35
|
-
* | icon | `string`, `IconProp` | | Optioneel icon voor de input |
|
|
36
|
-
* | tooltip | `string` | | tooltip voor de input |
|
|
37
|
-
* | autocomplete | `AutoCompleteType` | | autocomplete voor de input |
|
|
38
|
-
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
39
|
-
* | disabled | `boolean` | `false` | de input is disabled |
|
|
40
|
-
* | textAlign | `l`, `c`, `r` | `l` | de text-align van de input |
|
|
41
|
-
* | keyboardType | `search`, `text`, | `text ` | de type van de keyboard (touch-devices) |
|
|
42
|
-
* | | `email`,`tel`,`url` | | |
|
|
43
|
-
* | | `numeric`, `decimal` | | |
|
|
44
|
-
* | validation | `FormValidationType` | `{}` | de validatie voor de input |
|
|
45
|
-
* | value | `T` | | de waarde, generic<T> |
|
|
46
|
-
* | size | `s`,`m`,`l`,`xl` | `m` | de grootte van de input |
|
|
47
|
-
* | direction | `h`,`v` | `h` | de form-richting voor de input |
|
|
48
|
-
* | errorMessage | `string`, `function` | | een error message (van buiten setbaar) |
|
|
49
|
-
* | placeholder | `string` | | de placeholder voor de input |
|
|
50
|
-
* | onValueChanged() | `function` | | (value: T, valid?: boolean) => void |
|
|
51
|
-
* | onKeyDown() | `function` | | (event: React.KeyboardEvent) => void |
|
|
90
|
+
* @returns
|
|
52
91
|
*/
|
|
53
|
-
declare function Input<T extends InputValueType>(props:
|
|
54
|
-
export { Input };
|
|
55
|
-
export type {
|
|
92
|
+
declare function Input<T extends InputValueType = string>({ errorMessage, label, name, id, iconLeft, iconRight, direction, onBlur, ...props }: InputPropsType<T> & InputStylingPropsType): JSX.Element;
|
|
93
|
+
export { BaseInput, Input };
|
|
94
|
+
export type { InputPropsType, InputStylingPropsType, InputValueType };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseInputProps } from '../shared';
|
|
3
|
-
declare type MultiRangeInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
3
|
+
declare type MultiRangeInputProps = Omit<BaseInputProps, 'icons' | 'spellCheck' | 'helpTag'> & {
|
|
4
|
+
helpTag?: [string, string];
|
|
4
5
|
/** Stap-grootte voor de input (optional, default = 1) */
|
|
5
6
|
step?: number;
|
|
6
7
|
/** De start-waarde voor de input (optional) */
|
|
@@ -26,6 +26,7 @@ declare type NumberInputProps = BaseInputProps & {
|
|
|
26
26
|
* | id | `string ` | `name` | de id voor de input |
|
|
27
27
|
* | step | `number ` | `1` | stapgrootte voor de input (+ & - aansturen)|
|
|
28
28
|
* | tooltip | `string ` | | tooltip voor de input |
|
|
29
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
29
30
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
30
31
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
31
32
|
* | textAlign | `l`, `c`, `r` | `l` | de text-align van de input |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseInputProps } from '../shared';
|
|
3
|
-
declare type RangeInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
3
|
+
declare type RangeInputProps = Omit<BaseInputProps, 'icons' | 'spellCheck'> & {
|
|
4
4
|
/** Stap-grootte voor de input (optional, default = 1) */
|
|
5
5
|
step?: number;
|
|
6
6
|
/** een getals-unit (`%`, `kg/m3`, etc) om weer te geven op de range-input */
|
|
@@ -24,6 +24,7 @@ declare type ColorInputProps = BaseInputProps & {
|
|
|
24
24
|
* | id | `string` | `name` | de id voor de input |
|
|
25
25
|
* | tooltip | `string` | | tooltip voor de input |
|
|
26
26
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
27
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
27
28
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
28
29
|
* | keyboardType | `search`, `text`, | `text ` | de type van de keyboard (touch-devices) |
|
|
29
30
|
* | | `email`,`tel`,`url` | | |
|
package/dist/forms/Radio/RB.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CheckradioStylingType, ColorProp } from '../../loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
|
-
declare type RBInputProps<T = string> = Omit<BaseInputProps, 'keyboardType' | 'icons' | 'direction' | 'validation' | 'labelHidden' | 'label' | 'id' | 'name'> & {
|
|
4
|
+
declare type RBInputProps<T = string> = Omit<BaseInputProps, 'keyboardType' | 'icons' | 'direction' | 'validation' | 'labelHidden' | 'label' | 'id' | 'name' | 'spellCheck'> & {
|
|
5
5
|
/** de group-name voor deze inputs. Radiobuttons werken daar iets anders mee */
|
|
6
6
|
groupName: string;
|
|
7
7
|
/** Speciale styling van de checkbox */
|
|
@@ -46,6 +46,6 @@ declare type RBInputProps<T = string> = Omit<BaseInputProps, 'keyboardType' | 'i
|
|
|
46
46
|
* | errorMessage | `string ` | | een error message (van buiten setbaar) |
|
|
47
47
|
* | setValueFn() | `function` | | (newVal: T) => void. Gebruik om een React-useState-setfunction aan te roepen |
|
|
48
48
|
*/
|
|
49
|
-
declare function JustARadioButon<T = string>({ value, checked, label, groupName: name, id, size, color, styling, textAlign, disabled, errorMessage, onValueChanged, }: RBInputProps<T>): JSX.Element;
|
|
49
|
+
declare function JustARadioButon<T = string>({ value, checked, label, groupName: name, id, size, color, styling, textAlign, disabled, errorMessage, helpTag, onValueChanged, onFocus, }: RBInputProps<T>): JSX.Element;
|
|
50
50
|
export { JustARadioButon as RB };
|
|
51
51
|
export type { RBInputProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CheckradioStylingType, ColorProp, DirectionProp, SizeProp, TextAlignmentProp } from '../../loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
|
-
declare type RadioInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
4
|
+
declare type RadioInputProps = Omit<BaseInputProps, 'icons' | 'labelHidden' | 'spellCheck'> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
onValueChanged?(newVal: string, isValid?: boolean): any | void;
|
|
@@ -89,7 +89,9 @@ declare const RadioGroup: {
|
|
|
89
89
|
declare function InternRadioItem(props: RadioItemProps & {
|
|
90
90
|
name: string;
|
|
91
91
|
selectedItem: string;
|
|
92
|
+
helpTag?: string;
|
|
92
93
|
setter: (identifier: string) => void;
|
|
94
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement>, ht?: string) => void;
|
|
93
95
|
}): JSX.Element;
|
|
94
96
|
/**
|
|
95
97
|
* Een losstaand radio-item om zelf de groep te maken
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseInputProps } from '../shared';
|
|
3
3
|
import { SelectOptionType, SelectOptionGroupType } from './BaseSelectProps';
|
|
4
|
-
declare type MultiSelectInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
4
|
+
declare type MultiSelectInputProps = Omit<BaseInputProps, 'icons' | 'spellCheck'> & {
|
|
5
5
|
/** De waarde */
|
|
6
6
|
value?: string[];
|
|
7
7
|
/** De values voor de options. DEZE MOETEN UNIEK ZIJN! */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { SizeProp } from '../../loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
4
|
import { SelectOptionType, SelectOptionGroupType } from './BaseSelectProps';
|
|
5
|
-
declare type SelectInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
5
|
+
declare type SelectInputProps = Omit<BaseInputProps, 'icons' | 'spellCheck'> & {
|
|
6
6
|
/** De waarde */
|
|
7
7
|
value?: number | string;
|
|
8
8
|
/** De values voor de options. DEZE MOETEN UNIEK ZIJN! */
|
|
@@ -26,6 +26,7 @@ declare type EmailInputProps = BaseInputProps & {
|
|
|
26
26
|
* | name | `string` | | de naam voor de input (REQUIRED) |
|
|
27
27
|
* | label | `string` | `name` | de label voor de input |
|
|
28
28
|
* | id | `string` | `name` | de id voor de input |
|
|
29
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
29
30
|
* | autoComplete | `AutoCompleteType` | `email` | de autocomplete type (password managers) |
|
|
30
31
|
* | tooltip | `string` | | tooltip voor de input |
|
|
31
32
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
@@ -27,6 +27,7 @@ declare type PasswordInputProps = BaseInputProps & {
|
|
|
27
27
|
* | label | `string` | `name` | de label voor de input |
|
|
28
28
|
* | id | `string` | `name` | de id voor de input |
|
|
29
29
|
* | autoComplete | `AutoCompleteType` | | de autocomplete type (password managers) |
|
|
30
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
30
31
|
* | tooltip | `string` | | tooltip voor de input |
|
|
31
32
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
32
33
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
@@ -25,6 +25,7 @@ declare type TextAreaProps = Omit<BaseInputProps, 'icons'> & {
|
|
|
25
25
|
* | label | `string` | `name` | de label voor de input |
|
|
26
26
|
* | id | `string` | `name` | de id voor de input |
|
|
27
27
|
* | tooltip | `string` | | tooltip voor de input |
|
|
28
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
28
29
|
* | autocomplete | `AutoCompleteType` | | autocomplete voor de input |
|
|
29
30
|
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
30
31
|
* | disabled | `boolean` | `false` | de input is disabled |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { JSONContent } from '@tiptap/react';
|
|
3
|
+
/**
|
|
4
|
+
* Een Rich Text Editor, dus een uitgebreide vorm van een `<textarea>`, want je kan dingen **bold**, *italic*, enz. maken.
|
|
5
|
+
* De output is in HTML-vorm of in JSON-vorm. Je kan er ook gewoon platte tekst uitkrijgen, maar dan vervalt de opmaak.
|
|
6
|
+
* @url https://tiptap.dev/ voor de documentatie van hoe deze component in elkaar steekt.
|
|
7
|
+
* @returns een component voor het maken van rich text met HTML of JSON output
|
|
8
|
+
* @description
|
|
9
|
+
* | prop | type | uitleg |
|
|
10
|
+
* |--------------|----------------------------|-------------------------|
|
|
11
|
+
* | content | `string` | de inhoud van de editor |
|
|
12
|
+
* | onChangeHtml | `(c: string) => void` | een callback die wordt aangeroepen als de inhoud van de editor verandert. De inhoud wordt dan als HTML meegegeven. |
|
|
13
|
+
* | onChangeText | `(c: string) => void` | een callback die wordt aangeroepen als de inhoud van de editor verandert. De inhoud wordt dan als platte tekst meegegeven. |
|
|
14
|
+
* | onChangeJson | `(c: JSONContent) => void` | een callback die wordt aangeroepen als de inhoud van de editor verandert. De inhoud wordt dan als JSON meegegeven. |
|
|
15
|
+
*/
|
|
16
|
+
export declare function TextEditor({ content, onChangeHtml, onChangeText, onChangeJson, }: {
|
|
17
|
+
content?: string;
|
|
18
|
+
onChangeHtml?: (content: string) => void;
|
|
19
|
+
onChangeText?: (content: string) => void;
|
|
20
|
+
onChangeJson?: (content: JSONContent) => void;
|
|
21
|
+
}): JSX.Element;
|
|
@@ -15,7 +15,7 @@ declare type TextInputProps = BaseInputProps & {
|
|
|
15
15
|
* - `A-Z`: alleen uppercase letters. lowercase maken we uppercase
|
|
16
16
|
* - `a-Z`: alleen lowercase en uppercase letters
|
|
17
17
|
* - `0-Z`: lowercase, uppercase & numeriek
|
|
18
|
-
* - `RegExp`: geef een regex op met alle toegestande karakters om NIET te replacen
|
|
18
|
+
* - `RegExp`: geef een regex op met alle toegestande karakters om **NIET** te replacen
|
|
19
19
|
*/
|
|
20
20
|
characters?: CharType;
|
|
21
21
|
/**
|
|
@@ -38,6 +38,7 @@ declare type TextInputProps = BaseInputProps & {
|
|
|
38
38
|
* | label | `string` | `name` | de label voor de input |
|
|
39
39
|
* | characters | `string`, `RegExp`, `0-Z`,| | de toegestane karakters in de input |
|
|
40
40
|
* | | `0-9`, `a-z`, `A-Z`, `a-Z`| | |
|
|
41
|
+
* | spellCheck | `boolean` | `false` | Moet de browser deze input spell-checken? |
|
|
41
42
|
* | autocomplete | `AutoCompleteType` | | de autocomplete type voor de input |
|
|
42
43
|
* | id | `string` | `name` | de id voor de input |
|
|
43
44
|
* | tooltip | `string` | | tooltip voor de input |
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { ColorInputProps } from './Others/ColorInput';
|
|
|
16
16
|
export { HiddenInput } from './Others/HiddenInput';
|
|
17
17
|
export type { HiddenInputProps } from './Others/HiddenInput';
|
|
18
18
|
export { Input } from './Input';
|
|
19
|
-
export type {
|
|
19
|
+
export type { InputPropsType, InputStylingPropsType, InputValueType } from './Input';
|
|
20
20
|
export { RadioGroup, Radio } from './Radio/Radio';
|
|
21
21
|
export { RB } from './Radio/RB';
|
|
22
22
|
export type { RBInputProps } from './Radio/RB';
|
|
@@ -24,6 +24,7 @@ export { EmailInput } from './Text/EmailInput';
|
|
|
24
24
|
export type { EmailInputProps } from './Text/EmailInput';
|
|
25
25
|
export { PasswordInput } from './Text/PasswordInput';
|
|
26
26
|
export type { PasswordInputProps } from './Text/PasswordInput';
|
|
27
|
+
export { TextEditor } from './Text/TextEditor';
|
|
27
28
|
export { TextArea } from './Text/TextArea';
|
|
28
29
|
export type { TextAreaProps } from './Text/TextArea';
|
|
29
30
|
export { TextInput } from './Text/TextInput';
|