loon-bulma-react 2023.0.13 → 2023.0.14
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/components/AspectRatio/AspectRatio.d.ts +5 -5
- package/dist/components/Box/Box.d.ts +2 -2
- package/dist/components/Button/ButtonProps.d.ts +11 -11
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/components/Calendar/CalendarItems/CalendarColoredItem.d.ts +3 -3
- package/dist/components/Calendar/CalendarItems/CalendarItem.d.ts +3 -3
- package/dist/components/Calendar/DayContainer.d.ts +5 -5
- package/dist/components/Calendar/Fourweeks/FourweeksView.d.ts +6 -6
- package/dist/components/Calendar/Fourweeks/MoreEvents.d.ts +4 -4
- package/dist/components/Calendar/Month/MonthView.d.ts +6 -6
- package/dist/components/Calendar/Month/MoreEvents.d.ts +4 -4
- package/dist/components/Calendar/Week/AlldayContainer.d.ts +2 -2
- package/dist/components/Calendar/Week/HourRow.d.ts +3 -3
- package/dist/components/Calendar/Week/WeekView.d.ts +6 -6
- package/dist/components/Columns/Column.d.ts +6 -6
- package/dist/components/Columns/Columns.d.ts +5 -5
- package/dist/components/Container/Container.d.ts +3 -2
- package/dist/components/Content/Content.d.ts +4 -0
- package/dist/components/DataTable/DataTable.d.ts +22 -22
- package/dist/components/Footer/Footer.d.ts +4 -4
- package/dist/components/Hero/Hero.d.ts +4 -5
- package/dist/components/Icon/Icon.d.ts +19 -16
- package/dist/components/Image/Image.d.ts +7 -7
- package/dist/components/Indicator/Indicator.d.ts +5 -5
- package/dist/components/Kbd/Kbd.d.ts +5 -5
- package/dist/components/Link/Link.d.ts +10 -10
- package/dist/components/Menu/Menu.d.ts +8 -8
- package/dist/components/Message/Message.d.ts +10 -13
- package/dist/components/Modal/Modal.d.ts +7 -7
- package/dist/components/Notification/Notification.d.ts +9 -9
- package/dist/components/ProgressBar/ProgressBar.d.ts +5 -8
- package/dist/components/ScrollArea/ScrollArea.d.ts +27 -27
- package/dist/components/Section/Section.d.ts +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +19 -19
- package/dist/components/Steps/Steps.d.ts +15 -15
- package/dist/components/TabBar/TabBar.d.ts +10 -11
- package/dist/components/Tag/Tag.d.ts +12 -12
- package/dist/components/TimeLine/TimeLine.d.ts +13 -13
- package/dist/components/Titles/Titles.d.ts +14 -15
- package/dist/components/ToggleBar/ToggleBar.d.ts +18 -18
- package/dist/contexts/Notifier/Notifier.d.ts +1 -1
- package/dist/contexts/Notifier/NotifierProps.d.ts +12 -11
- package/dist/contexts/Notifier/NotifierProvider.d.ts +3 -3
- package/dist/forms/Checkbox/Checkbox.d.ts +4 -4
- package/dist/forms/Currency/CurrencyInput.d.ts +8 -8
- package/dist/forms/Datetimes/DateInput.d.ts +1 -1
- package/dist/forms/Datetimes/DateTimeInput.d.ts +1 -1
- package/dist/forms/Datetimes/TimeInput.d.ts +2 -2
- package/dist/forms/File/FileInput.d.ts +11 -11
- package/dist/forms/Form.d.ts +29 -29
- package/dist/forms/Input.d.ts +4 -5
- package/dist/forms/Numeric/MultiRangeInput.d.ts +2 -2
- package/dist/forms/Numeric/NumberInput.d.ts +2 -2
- package/dist/forms/Numeric/RangeInput.d.ts +2 -2
- package/dist/forms/Others/ColorInput.d.ts +1 -1
- package/dist/forms/Others/HiddenInput.d.ts +5 -5
- package/dist/forms/Radio/Radio.d.ts +9 -9
- package/dist/forms/Selects/BaseSelectProps.d.ts +4 -4
- package/dist/forms/Selects/MultiSelect.d.ts +3 -3
- package/dist/forms/Selects/Select.d.ts +5 -5
- package/dist/forms/Text/EmailInput.d.ts +2 -2
- package/dist/forms/Text/PasswordInput.d.ts +2 -2
- package/dist/forms/Text/TextArea.d.ts +2 -2
- package/dist/forms/Text/TextInput.d.ts +10 -10
- package/dist/forms/shared/Base.Input.Container.d.ts +1 -1
- package/dist/forms/shared/BaseInputProps.d.ts +32 -32
- package/dist/forms/shared/InputError.d.ts +3 -3
- package/dist/hooks/useClipboard.d.ts +2 -2
- package/dist/hooks/useDebouncedValue.d.ts +5 -5
- package/dist/hooks/useHotkeys.d.ts +7 -7
- package/dist/hooks/useLocalStoredState.d.ts +6 -6
- package/dist/hooks/usePagination.d.ts +3 -3
- package/dist/hooks/useUncontrolled.d.ts +2 -2
- package/dist/hooks/useValidatedState.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/loon-react-bulma-types.d.ts +26 -17
- package/dist/utils/JSDateTime.class.d.ts +81 -82
- package/dist/utils/JSDuration.class.d.ts +18 -19
- package/package.json +10 -10
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/** Props voor een aspect-ratio */
|
|
3
3
|
declare type AspectRatioProps = {
|
|
4
|
-
/**
|
|
4
|
+
/** De ratio (width x height) van het gewenste element */
|
|
5
5
|
ratio: '1by1' | '5by4' | '4by5' | '4by3' | '3by4' | '3by2' | '2by3' | '5by3' | '3by5' | '16by9' | '9by16' | '2by1' | '1by2' | '3by1' | '1by3';
|
|
6
|
-
/**
|
|
6
|
+
/** Het item dat aan de aspect-ratio moet voldoen */
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
/**
|
|
8
|
+
/** ? */
|
|
9
9
|
caption?: {
|
|
10
10
|
placement: 'top' | 'bottom';
|
|
11
11
|
text: string;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
13
|
+
/** Extra classes on aspect-ratio-element */
|
|
14
14
|
className?: string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Gebruik een aspect-ratio voor een bepaald resizable element, waar een width en height bij hoort.
|
|
18
18
|
* Zoals bijvoorbeeld een iframe, img, etc
|
|
19
19
|
* @param props
|
|
20
20
|
* @returns een aspect-ratio'd element.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
declare type BoxProps = {
|
|
3
|
-
/**
|
|
3
|
+
/** De children van de box */
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
/** Andere classes om op de box toe te passen */
|
|
6
6
|
className?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Style props direct op de box */
|
|
8
8
|
styles?: CSSProperties;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -3,29 +3,29 @@ import { ColorProp, SizeProp } from '../../loon-react-bulma-types';
|
|
|
3
3
|
declare type ButtonTypes = 'button' | 'submit' | 'reset' | undefined;
|
|
4
4
|
declare type ButtonStyles = 'static' | 's' | 'light' | 'l' | 'outlined' | 'o' | 'inverted' | 'i' | 'light-outlined' | 'lo' | 'default';
|
|
5
5
|
export declare type ButtonProps = {
|
|
6
|
-
/**
|
|
6
|
+
/** Is de button loading ? */
|
|
7
7
|
loading?: boolean | undefined;
|
|
8
|
-
/**
|
|
8
|
+
/** Heeft de button afgeronde hoeken ? */
|
|
9
9
|
rounded?: boolean | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** Wat moet er op de button komen (text, icons etc.) */
|
|
11
11
|
children?: ReactNode;
|
|
12
|
-
/**
|
|
12
|
+
/** Button type: <button type="..."> */
|
|
13
13
|
type?: ButtonTypes;
|
|
14
|
-
/**
|
|
14
|
+
/** Styling voor de button */
|
|
15
15
|
styling?: ButtonStyles;
|
|
16
|
-
/**
|
|
16
|
+
/** De grootte van de button */
|
|
17
17
|
size?: SizeProp;
|
|
18
|
-
/**
|
|
18
|
+
/** Is de buttton disabled? */
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
|
-
/**
|
|
20
|
+
/** Een tooltip voor de button */
|
|
21
21
|
tooltip?: string;
|
|
22
|
-
/** id */
|
|
22
|
+
/** ID voor de button (id="...") */
|
|
23
23
|
id?: string;
|
|
24
|
-
/**
|
|
24
|
+
/** Function voor onclick event */
|
|
25
25
|
onClick?(e: MouseEvent): void;
|
|
26
26
|
};
|
|
27
27
|
export declare type BaseButtonProps = ButtonProps & {
|
|
28
|
-
/**
|
|
28
|
+
/** De kleur van de button */
|
|
29
29
|
color?: ColorProp;
|
|
30
30
|
};
|
|
31
31
|
export {};
|
|
@@ -5,9 +5,9 @@ declare type ButtonGroupProps = {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
/** Moeten de buttons aan elkaar vast gezet worden (default = false) */
|
|
7
7
|
hasAddons?: boolean;
|
|
8
|
-
/**
|
|
8
|
+
/** Aan welke kant moeten de buttons aligned worden (default = l) */
|
|
9
9
|
alignment?: AlignmentProp | undefined;
|
|
10
|
-
/**
|
|
10
|
+
/** Voeg extra classes aan de buttons-container toe */
|
|
11
11
|
className?: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import { EventOptions, BaseEventProps } from '../Props';
|
|
3
3
|
declare type CalendarColoredItemProps<T extends BaseEventProps> = {
|
|
4
|
-
/**
|
|
4
|
+
/** Het event */
|
|
5
5
|
desc: (event: T) => JSX.Element;
|
|
6
6
|
event: T;
|
|
7
|
-
/**
|
|
7
|
+
/** Opties voor events */
|
|
8
8
|
options?: EventOptions<T>;
|
|
9
|
-
/**
|
|
9
|
+
/** Onclick handler voor het event */
|
|
10
10
|
onClick?: (event: T, clickEvent: MouseEvent<HTMLElement>) => void;
|
|
11
11
|
tooltip?: string;
|
|
12
12
|
};
|
|
@@ -2,11 +2,11 @@ import { MouseEvent } from 'react';
|
|
|
2
2
|
import { EventOptions, BaseEventProps } from '../Props';
|
|
3
3
|
declare type CalendarItemProps<T extends BaseEventProps> = {
|
|
4
4
|
desc: (event: T) => JSX.Element;
|
|
5
|
-
/**
|
|
5
|
+
/** Het event */
|
|
6
6
|
event: T;
|
|
7
|
-
/**
|
|
7
|
+
/** Opties voor events */
|
|
8
8
|
options?: EventOptions<T>;
|
|
9
|
-
/**
|
|
9
|
+
/** Onclick handler */
|
|
10
10
|
onClick?: (event: T, clickEvent: MouseEvent<HTMLElement>) => void;
|
|
11
11
|
tooltip?: string;
|
|
12
12
|
};
|
|
@@ -2,15 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { BaseEventProps, CalendarOptions } from './Props';
|
|
3
3
|
import { JSDateTime } from '~/utils';
|
|
4
4
|
declare type DayContainerProps<T extends BaseEventProps> = {
|
|
5
|
-
/**
|
|
5
|
+
/** Events op deze dag */
|
|
6
6
|
events: T[];
|
|
7
|
-
/**
|
|
7
|
+
/** Wat te doen als een event aangeklikt wordt */
|
|
8
8
|
onEventClick?: (event: T, clickEvent: React.MouseEvent<HTMLElement>) => void;
|
|
9
|
-
/**
|
|
9
|
+
/** Wat te doen als een dag aangeklikt wordt */
|
|
10
10
|
onDayClick?: (date: JSDateTime, clickEvent: React.MouseEvent<HTMLElement>) => void;
|
|
11
|
-
/**
|
|
11
|
+
/** Opties voor deze container */
|
|
12
12
|
options?: CalendarOptions<T>;
|
|
13
|
-
/**
|
|
13
|
+
/** De datum voor de container */
|
|
14
14
|
date: JSDateTime;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
@@ -2,19 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import { JSDateTime } from '~/utils';
|
|
3
3
|
import { BaseEventProps, CalendarOptions } from '../Props';
|
|
4
4
|
declare type FourweekViewProps<T extends BaseEventProps> = {
|
|
5
|
-
/**
|
|
5
|
+
/** Events voor deze view */
|
|
6
6
|
events: T[];
|
|
7
|
-
/**
|
|
7
|
+
/** Opties voor deze view */
|
|
8
8
|
options?: CalendarOptions<T>;
|
|
9
|
-
/**
|
|
9
|
+
/** Event aangeklikt */
|
|
10
10
|
onEventClick?: (e: T, event: React.MouseEvent<HTMLElement>) => void;
|
|
11
|
-
/**
|
|
11
|
+
/** Dag-datum geklikt? */
|
|
12
12
|
onDayClick?: (date: JSDateTime, event: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
-
/**
|
|
13
|
+
/** Huidige geselecteerde datum */
|
|
14
14
|
viewDate: Date | JSDateTime;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Maak een vierweken-view (grid) met events
|
|
18
18
|
* @param props
|
|
19
19
|
* @returns
|
|
20
20
|
*/
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import { BaseEventProps, EventOptions } from '../Props';
|
|
3
3
|
declare type MoreEventsViewProps<T extends BaseEventProps> = {
|
|
4
|
-
/**
|
|
4
|
+
/** De events op deze dag */
|
|
5
5
|
events: T[];
|
|
6
|
-
/**
|
|
6
|
+
/** Event-click handling */
|
|
7
7
|
onEventClick?: (event: T, clickEvent: MouseEvent<HTMLElement>) => void;
|
|
8
|
-
/**
|
|
8
|
+
/** Global event options */
|
|
9
9
|
options?: {
|
|
10
10
|
allday?: EventOptions<T>;
|
|
11
11
|
timed?: EventOptions<T>;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Expandable events als er meer dan 5 events op een dag vallen
|
|
16
16
|
* @param props
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
@@ -2,19 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import { JSDateTime } from '~/utils';
|
|
3
3
|
import { BaseEventProps, CalendarOptions } from '../Props';
|
|
4
4
|
declare type MonthViewProps<T extends BaseEventProps> = {
|
|
5
|
-
/**
|
|
5
|
+
/** Events voor deze view */
|
|
6
6
|
events: T[];
|
|
7
|
-
/**
|
|
7
|
+
/** Opties voor deze view */
|
|
8
8
|
options?: CalendarOptions<T>;
|
|
9
|
-
/**
|
|
9
|
+
/** Event aangeklikt */
|
|
10
10
|
onEventClick?: (e: T, event: React.MouseEvent<HTMLElement>) => void;
|
|
11
|
-
/**
|
|
11
|
+
/** Dag-datum geklikt? */
|
|
12
12
|
onDayClick?: (date: JSDateTime, event: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
-
/**
|
|
13
|
+
/** Huidige geselecteerde datum */
|
|
14
14
|
viewDate: Date | JSDateTime;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Maak een maand-view (grid) met events
|
|
18
18
|
* @param props
|
|
19
19
|
* @returns
|
|
20
20
|
*/
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import { BaseEventProps, EventOptions } from '../Props';
|
|
3
3
|
declare type MoreEventsViewProps<T extends BaseEventProps> = {
|
|
4
|
-
/**
|
|
4
|
+
/** De events op deze dag */
|
|
5
5
|
events: T[];
|
|
6
|
-
/**
|
|
6
|
+
/** Event-click handling */
|
|
7
7
|
onEventClick?: (event: T, clickEvent: MouseEvent<HTMLElement>) => void;
|
|
8
|
-
/**
|
|
8
|
+
/** Global event options */
|
|
9
9
|
options?: {
|
|
10
10
|
allday?: EventOptions<T>;
|
|
11
11
|
timed?: EventOptions<T>;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Expandable events als er meer dan 5 events op een dag vallen
|
|
16
16
|
* @param props
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { BaseEventProps, CalendarOptions } from '../Props';
|
|
3
3
|
declare type AlldayContainerProps<T extends BaseEventProps> = {
|
|
4
4
|
events: T[];
|
|
5
|
-
/**
|
|
5
|
+
/** Wat te doen als een event aangeklikt wordt */
|
|
6
6
|
onEventClick?: (event: T, clickEvent: React.MouseEvent<HTMLElement>) => void;
|
|
7
|
-
/**
|
|
7
|
+
/** Wat te doen als een dag aangeklikt wordt */
|
|
8
8
|
options?: CalendarOptions<T>;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -9,11 +9,11 @@ export declare function HourNumber({ hour }: {
|
|
|
9
9
|
hour: number;
|
|
10
10
|
}): JSX.Element;
|
|
11
11
|
declare type HourSlotProps<T extends BaseEventProps> = {
|
|
12
|
-
/**
|
|
12
|
+
/** De events voor deze HourProp */
|
|
13
13
|
events: T[];
|
|
14
|
-
/**
|
|
14
|
+
/** Event-selected callback Fn */
|
|
15
15
|
onEventClick?: (event: T, clickEvent: React.MouseEvent<HTMLElement>) => void;
|
|
16
|
-
/**
|
|
16
|
+
/** Options bij de calendar */
|
|
17
17
|
options?: CalendarOptions<T>;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
@@ -2,19 +2,19 @@ import { BaseEventProps, CalendarOptions } from '../Props';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { JSDateTime } from '~/utils';
|
|
4
4
|
declare type WeekViewProps<T extends BaseEventProps> = {
|
|
5
|
-
/**
|
|
5
|
+
/** Events voor deze view */
|
|
6
6
|
events: T[];
|
|
7
|
-
/**
|
|
7
|
+
/** Opties voor deze view */
|
|
8
8
|
options?: CalendarOptions<T>;
|
|
9
|
-
/**
|
|
9
|
+
/** Event aangeklikt */
|
|
10
10
|
onEventClick?: (e: T, event: React.MouseEvent<HTMLElement>) => void;
|
|
11
|
-
/**
|
|
11
|
+
/** Dag-datum geklikt? */
|
|
12
12
|
onDayClick?: (date: JSDateTime, event: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
-
/**
|
|
13
|
+
/** Huidige geselecteerde datum */
|
|
14
14
|
viewDate: Date | JSDateTime;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Maak een week-view (grid) met events
|
|
18
18
|
* @param props
|
|
19
19
|
* @returns een weekview (grid) met de events
|
|
20
20
|
* @ex
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
declare type ColumnProps = {
|
|
3
|
-
/**
|
|
3
|
+
/** De inhoud van de column */
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
/**
|
|
5
|
+
/** Extra classes op deze kolom */
|
|
6
6
|
className?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Zet de styling direct */
|
|
8
8
|
styles?: CSSProperties;
|
|
9
9
|
};
|
|
10
10
|
declare type ExpandedColumnProps = ColumnProps & {
|
|
11
|
-
/**
|
|
11
|
+
/** Is deze kolom zo smal mogelijk of vanaf welke schermmaat */
|
|
12
12
|
narrow?: boolean | 'mobile' | 'tablet' | 'touch' | 'desktop' | 'widescreen' | 'fullhd';
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
@@ -21,12 +21,12 @@ declare type ExpandedColumnProps = ColumnProps & {
|
|
|
21
21
|
*/
|
|
22
22
|
declare const Column: {
|
|
23
23
|
(props: ExpandedColumnProps): JSX.Element;
|
|
24
|
-
/** Column
|
|
24
|
+
/** Column full width of parent
|
|
25
25
|
* @returns een kolom met de maximale breedte van de parent 'Columns'
|
|
26
26
|
* @example <Column.Full>This is a full column</Column.Full>
|
|
27
27
|
*/
|
|
28
28
|
Full(props: ColumnProps): JSX.Element;
|
|
29
|
-
/** Column
|
|
29
|
+
/** Column 1/2 width of parent
|
|
30
30
|
* @returns een kolom met de halve breedte van de parent 'Columns'
|
|
31
31
|
* @example <Column.Half>This is a half column</Column.Half>
|
|
32
32
|
*/
|
|
@@ -2,15 +2,15 @@ import React, { CSSProperties } from 'react';
|
|
|
2
2
|
export declare type ColumnsProps = {
|
|
3
3
|
/** Children van de Columns. Moeten van het type @see Column zijn */
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
/**
|
|
5
|
+
/** De gap-grootte (stappen van .25rem), een margin tussen kolommen (default = 3, 0.75rem) */
|
|
6
6
|
gap?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | undefined;
|
|
7
|
-
/**
|
|
7
|
+
/** Mogen de kolommen over meerdere rijen verdeeld worden */
|
|
8
8
|
multiline?: boolean;
|
|
9
|
-
/**
|
|
9
|
+
/** Moeten de kolom centraal aligned worden */
|
|
10
10
|
centered?: boolean;
|
|
11
|
-
/**
|
|
11
|
+
/** Extra classes voor dit element */
|
|
12
12
|
className?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Set de styling direct */
|
|
14
14
|
styles?: CSSProperties;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
declare type ContainerProps = {
|
|
3
|
+
/** Container content */
|
|
3
4
|
children: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
+
/** Extra classes */
|
|
5
6
|
className?: string;
|
|
6
|
-
/**
|
|
7
|
+
/** Set styling directly on container */
|
|
7
8
|
styles?: CSSProperties;
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { SizeProp } from '../../loon-react-bulma-types';
|
|
3
3
|
declare type ContentPropsType = {
|
|
4
|
+
/** Size van de content (default = 'm') */
|
|
4
5
|
size?: SizeProp;
|
|
6
|
+
/** Content voor het content-element */
|
|
5
7
|
children: React.ReactNode;
|
|
8
|
+
/** Extra classes */
|
|
6
9
|
className?: string;
|
|
10
|
+
/** Extra inline styles */
|
|
7
11
|
styles?: CSSProperties;
|
|
8
12
|
};
|
|
9
13
|
/**
|
|
@@ -4,43 +4,43 @@ import { AlignmentProp } from '../../loon-react-bulma-types';
|
|
|
4
4
|
declare type DataTableProps<T extends unknown> = {
|
|
5
5
|
/** Titels voor de kolommen als die afwijken van de object-properties */
|
|
6
6
|
columns: DataTableColumn<T>[];
|
|
7
|
-
/**
|
|
7
|
+
/** Header-name van de default-sorteer-kolom (default: 1e kolom die 'sortable' is) */
|
|
8
8
|
defaultSortCol?: string;
|
|
9
|
-
/** (optionele)
|
|
9
|
+
/** (optionele) Content voor de header. Verschijnt links van de search-bar */
|
|
10
10
|
headerContent?: React.ReactNode;
|
|
11
11
|
/** De array met daarin de data voor de datatabel */
|
|
12
12
|
data: T[];
|
|
13
|
-
/**
|
|
13
|
+
/** Welke data-object-property is uniek? Anders wordt de index gebruikt (liever niet, react-performance-reasons)
|
|
14
14
|
* - als string: de property die uniek is: obj.<string>
|
|
15
15
|
* - als function: stel een string samen die uniek is.
|
|
16
16
|
*/
|
|
17
17
|
rowIdentifier?: string | ((item: T) => string);
|
|
18
|
-
/**
|
|
18
|
+
/** Een functie om de classes op een row te zetten, op basis van het object */
|
|
19
19
|
rowClasses?: (item: T, index?: number) => string;
|
|
20
|
-
/**
|
|
20
|
+
/** Moet de tabel zichzelf wat kleiner maken ? */
|
|
21
21
|
narrow?: boolean;
|
|
22
22
|
/** Is de tabel gestreept? (om-en-om wit/grijze rijen) */
|
|
23
23
|
striped?: boolean;
|
|
24
|
-
/**
|
|
24
|
+
/** Is de tabel fullwidth ? (default true) */
|
|
25
25
|
fullwidth?: boolean;
|
|
26
|
-
/**
|
|
26
|
+
/** Is de tabel bordered? */
|
|
27
27
|
bordered?: boolean;
|
|
28
|
-
/**
|
|
28
|
+
/** Is de tabel hoverbaar (verkleuring rij waar de muis op hangt) */
|
|
29
29
|
hoverable?: boolean;
|
|
30
|
-
/**
|
|
30
|
+
/** Wat is het maximaal aantal rijen dat zichtbaar is zonder paginatie? Als 0 is er geen maximum aantal rijen (default 0) */
|
|
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
|
-
/**
|
|
34
|
+
/** Placeholder voor zoekveld. Als er geen placeholder is (undefined or emptystring), is er geen zoek-veld @deprecated: use `searchPlaceholder` */
|
|
35
35
|
searchTxt?: string;
|
|
36
36
|
/**
|
|
37
|
-
* (Optionele)
|
|
37
|
+
* (Optionele) Eigen zoek-functie. De default-zoek-functie wordt dan vervangen.
|
|
38
38
|
* @param searchTerm de content van het zoekveld
|
|
39
39
|
* @param items de items waarbinnen gezocht moet worden
|
|
40
40
|
* @returns een array met de gefilterde items
|
|
41
41
|
*/
|
|
42
42
|
onSearch?: (searchTerm: string, items: T[]) => T[];
|
|
43
|
-
/**
|
|
43
|
+
/** Terugkoppeling voor een geselecteerde rij.
|
|
44
44
|
* @param item: Het geselecteerde item
|
|
45
45
|
* @param row: de tabel-rij waarop geklikt is (<tr> tag). Om de row 'selected' te laten lijken: toggle de 'is-selected' class
|
|
46
46
|
*/
|
|
@@ -54,23 +54,23 @@ declare type DataTableProps<T extends unknown> = {
|
|
|
54
54
|
};
|
|
55
55
|
/** Props voor het samenstellen van de kolommen van de tabel */
|
|
56
56
|
declare type DataTableColumn<T extends unknown> = {
|
|
57
|
-
/**
|
|
57
|
+
/** Naam voor de kolom, als die anders is dan de key-value */
|
|
58
58
|
header?: string;
|
|
59
59
|
/** Sorteren op deze kolom mogelijk? zo ja:
|
|
60
|
-
* - string
|
|
61
|
-
* - number
|
|
62
|
-
* - boolean
|
|
63
|
-
* - function
|
|
60
|
+
* - `string`: sorteer alfabetisch
|
|
61
|
+
* - `number`: sorteer numeriek
|
|
62
|
+
* - `boolean`: sorteer op true/false
|
|
63
|
+
* - `function`: een eigen sorteermechanisme
|
|
64
64
|
*/
|
|
65
65
|
sort?: true | false | ((a: T, B: T) => -1 | 0 | 1 | number);
|
|
66
66
|
/** Wat is de object property die bij deze kolom hoort als je wil sorteren
|
|
67
|
-
* - string
|
|
68
|
-
* - function
|
|
67
|
+
* - `string`: de object-property-key --> obj['colValue']
|
|
68
|
+
* - `function`: samenstellen van de waarde.
|
|
69
69
|
*/
|
|
70
70
|
value: string | JSX.Element | ((e: T) => string | JSX.Element);
|
|
71
|
-
/**
|
|
71
|
+
/** Moet de kolom-content link, rechts of centraal aligned worden (default = 'l') */
|
|
72
72
|
alignment?: AlignmentProp;
|
|
73
|
-
/**
|
|
73
|
+
/** Een functie om een class per cell toe te voegen */
|
|
74
74
|
columnClasses?: (item: T, index?: number) => string;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlignmentProp } from '../../loon-react-bulma-types';
|
|
3
3
|
export declare type FooterProps = {
|
|
4
|
-
/**
|
|
4
|
+
/** De content voor de footer */
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
/**
|
|
6
|
+
/** Alignment bij de footer. (default = 'c') */
|
|
7
7
|
alignment?: AlignmentProp;
|
|
8
|
-
/**
|
|
8
|
+
/** Extra classes voor op de footer */
|
|
9
9
|
className?: string;
|
|
10
|
-
/**
|
|
10
|
+
/** Custom styles voor de footer */
|
|
11
11
|
styles?: React.CSSProperties;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { SizeProp } from '../../loon-react-bulma-types';
|
|
3
3
|
declare type HeroProps = {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
-
/**
|
|
5
|
+
/** Type hero */
|
|
6
6
|
heroColorFor?: 'werknemer' | 'werkgever' | 'klant' | 'admin' | 'primary' | undefined;
|
|
7
|
-
/**
|
|
7
|
+
/** De grootte van de hero (default = small ('s')) */
|
|
8
8
|
size?: SizeProp | undefined;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
@@ -12,7 +12,6 @@ declare type HeroProps = {
|
|
|
12
12
|
* @param props
|
|
13
13
|
* @returns een Hero
|
|
14
14
|
* @example
|
|
15
|
-
|
|
16
15
|
*/
|
|
17
16
|
declare const Hero: {
|
|
18
17
|
(props: HeroProps): JSX.Element;
|
|
@@ -33,7 +32,7 @@ declare const Hero: {
|
|
|
33
32
|
(props: {
|
|
34
33
|
children: React.ReactNode;
|
|
35
34
|
}): JSX.Element;
|
|
36
|
-
/**
|
|
35
|
+
/** Een button in de hero head
|
|
37
36
|
* @param props props
|
|
38
37
|
* @returns een button in de hero head
|
|
39
38
|
* @example <Hero.Head.Button onClick={handleClick}>Button</Hero.Head.Button>
|
|
@@ -57,7 +56,7 @@ declare const Hero: {
|
|
|
57
56
|
}): JSX.Element;
|
|
58
57
|
};
|
|
59
58
|
/**
|
|
60
|
-
*
|
|
59
|
+
* Body of the hero, which could contain a title and/or subtitle
|
|
61
60
|
* @param props props
|
|
62
61
|
* @returns hero body with content
|
|
63
62
|
* @example
|
|
@@ -2,20 +2,20 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ColorProp, SizeProp } from '../../loon-react-bulma-types';
|
|
4
4
|
declare type IconProps = {
|
|
5
|
-
/**
|
|
6
|
-
* - string
|
|
7
|
-
* -
|
|
5
|
+
/** React font-awesome icon
|
|
6
|
+
* - `string`: geef de gehele font-awesome-class op. 'flip', 'animate', 'rotation' worden dan al gebruikt in deze class.
|
|
7
|
+
* - `IconProp (fontawesome)`: geef een react IconProp object door.
|
|
8
8
|
*/
|
|
9
9
|
icon: string | IconProp;
|
|
10
|
-
/**
|
|
10
|
+
/** De icon-grootte */
|
|
11
11
|
size?: SizeProp;
|
|
12
|
-
/**
|
|
12
|
+
/** De kleur voor het icoon */
|
|
13
13
|
color?: ColorProp;
|
|
14
|
-
/**
|
|
14
|
+
/** Hoeveel graden moet het icoon gedraait zijn (0 - 360) */
|
|
15
15
|
rotation?: 90 | 180 | 270;
|
|
16
|
-
/**
|
|
16
|
+
/** Horizontaal, verticaal of beiden gespiegeld */
|
|
17
17
|
flip?: 'horizontal' | 'vertical' | 'both';
|
|
18
|
-
/**
|
|
18
|
+
/** Moet het icon spinnen of pulseren */
|
|
19
19
|
animate?: 'spin' | 'pulse';
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -28,19 +28,22 @@ declare type IconProps = {
|
|
|
28
28
|
*/
|
|
29
29
|
declare const Icon: (props: IconProps) => JSX.Element;
|
|
30
30
|
declare type IconTextProps = {
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
/** React font-awesome icon
|
|
32
|
+
* - `string`: geef de gehele font-awesome-class op. 'flip', 'animate', 'rotation' worden dan al gebruikt in deze class.
|
|
33
|
+
* - `IconProp (fontawesome)`: geef een react IconProp object door.
|
|
34
|
+
*/
|
|
35
|
+
icon: string | IconProp;
|
|
36
|
+
/** De icon-grootte */
|
|
34
37
|
size?: SizeProp;
|
|
35
|
-
/**
|
|
38
|
+
/** De kleur voor het icoon */
|
|
36
39
|
color?: ColorProp;
|
|
37
|
-
/**
|
|
40
|
+
/** Hoeveel graden moet het icoon gedraait zijn (0 - 360) */
|
|
38
41
|
rotation?: 90 | 180 | 270;
|
|
39
|
-
/**
|
|
42
|
+
/** Horizontaal, verticaal of beiden geflipt */
|
|
40
43
|
flip?: 'horizontal' | 'vertical' | 'both';
|
|
41
|
-
/**
|
|
44
|
+
/** Moet het icon spinnen of pulseren */
|
|
42
45
|
animate?: 'spin' | 'pulse';
|
|
43
|
-
/**
|
|
46
|
+
/** Tekst bij het icon */
|
|
44
47
|
children: React.ReactNode;
|
|
45
48
|
};
|
|
46
49
|
/**
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare type ImageProps = {
|
|
3
|
-
/**
|
|
3
|
+
/** De ratio (width x height) van de afbeelding */
|
|
4
4
|
ratio: '1by1' | '5by4' | '4by5' | '4by3' | '3by4' | '3by2' | '2by3' | '5by3' | '3by5' | '16by9' | '9by16' | '2by1' | '1by2' | '3by1' | '1by3' | 'square';
|
|
5
|
-
/**
|
|
5
|
+
/** Geef een gewenste width op in geval van een ratio. Als er geen waarde is, wordt de parent gevuld
|
|
6
6
|
* voor ratio='square' MOETEN de string literal waarden worden gebruikt */
|
|
7
7
|
imgWidth?: '16' | '24' | '32' | '48' | '64' | '96' | '128' | string;
|
|
8
|
-
/**
|
|
8
|
+
/** Wordt de afbeelding rond ? LET OP: Alleen voor ratio == 'square'! */
|
|
9
9
|
isRounded?: boolean;
|
|
10
|
-
/** src
|
|
10
|
+
/** `src`-Attribuut van image tag */
|
|
11
11
|
src: string;
|
|
12
|
-
/** alt
|
|
12
|
+
/** `alt`-Attribuut van image tag */
|
|
13
13
|
alt: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Een optionele figcaption */
|
|
15
15
|
figCaption?: string;
|
|
16
|
-
/** classNames voor de omringende div */
|
|
16
|
+
/** extra classNames voor de omringende div */
|
|
17
17
|
className?: string;
|
|
18
18
|
};
|
|
19
19
|
/**
|