loon-bulma-react 2022.3.21 → 2022.3.22
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/Button/ButtonProps.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/Calendar/Month/DayContainer.d.ts +1 -1
- package/dist/components/Calendar/Month/MonthView.d.ts +1 -1
- package/dist/components/Calendar/Week/WeekView.d.ts +1 -1
- package/dist/components/Content/Content.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/Footer/Footer.d.ts +4 -2
- package/dist/components/Hero/Hero.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +2 -0
- package/dist/components/Indicator/Indicator.d.ts +1 -1
- package/dist/components/Message/Message.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +1 -1
- package/dist/components/TabBar/TabBar.d.ts +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -2
- package/dist/components/TimeLine/TimeLine.d.ts +1 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts +1 -1
- package/dist/contexts/Notifier/NotifierProps.d.ts +1 -1
- package/dist/forms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/forms/Currency/CurrencyInput.d.ts +47 -0
- package/dist/forms/Form.d.ts +1 -1
- package/dist/forms/Input.d.ts +1 -1
- package/dist/forms/Radio/Radio.d.ts +1 -1
- package/dist/forms/Selects/Select.d.ts +1 -1
- package/dist/forms/Text/EmailInput.d.ts +1 -1
- package/dist/forms/Text/PasswordInput.d.ts +1 -1
- package/dist/forms/Text/TextInput.d.ts +1 -1
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/shared/BaseInputProps.d.ts +1 -1
- package/dist/index.js +678 -542
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +679 -544
- package/dist/index.modern.js.map +1 -1
- package/package.json +9 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ColorProp, SizeProp } from '
|
|
2
|
+
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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AlignmentProp } from '
|
|
2
|
+
import { AlignmentProp } from '~/loon-react-bulma-types';
|
|
3
3
|
declare type ButtonGroupProps = {
|
|
4
4
|
/** Een buttongroup kan alleen Buttons als children hebben! */
|
|
5
5
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseEventProps, CalendarOptions } from '../Props';
|
|
3
|
-
import { JSDateTime } from '
|
|
3
|
+
import { JSDateTime } from '~/utils';
|
|
4
4
|
declare type DayContainerProps<T extends BaseEventProps> = {
|
|
5
5
|
/** events op deze dag */
|
|
6
6
|
events: T[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { JSDateTime } from '
|
|
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 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseEventProps, CalendarOptions } from '../Props';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { JSDateTime } from '
|
|
3
|
+
import { JSDateTime } from '~/utils';
|
|
4
4
|
declare type WeekViewProps<T extends BaseEventProps> = {
|
|
5
5
|
/** events voor deze view */
|
|
6
6
|
events: T[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AlignmentProp } from '
|
|
2
|
+
import { AlignmentProp } from '~/loon-react-bulma-types';
|
|
3
3
|
/** De props voor de DataTable Component zelf. */
|
|
4
4
|
declare type DataTableProps<T extends unknown> = {
|
|
5
5
|
/** Titels voor de kolommen als die afwijken van de object-properties */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AlignmentProp } from '
|
|
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;
|
|
@@ -7,6 +7,8 @@ export declare type FooterProps = {
|
|
|
7
7
|
alignment?: AlignmentProp;
|
|
8
8
|
/** extra classes voor op de footer */
|
|
9
9
|
className?: string;
|
|
10
|
+
/** custom styles voor de footer */
|
|
11
|
+
styles?: React.CSSProperties;
|
|
10
12
|
};
|
|
11
13
|
/**
|
|
12
14
|
* Maak een footer voor onderaan de pagina.
|
|
@@ -15,4 +17,4 @@ export declare type FooterProps = {
|
|
|
15
17
|
* @returns een footer met daarin de content.
|
|
16
18
|
* @example <Footer>This is a footer</Footer>
|
|
17
19
|
*/
|
|
18
|
-
export declare function Footer({ children, alignment, className }: FooterProps): JSX.Element;
|
|
20
|
+
export declare function Footer({ children, alignment, className, styles }: FooterProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ColorProp, SizeProp } from '
|
|
3
|
+
import { ColorProp, SizeProp } from '~/loon-react-bulma-types';
|
|
4
4
|
declare type IconProps = {
|
|
5
5
|
/** react font-awesome icon
|
|
6
6
|
* - string: geef de gehele font-awesome-class op. 'flip', 'animate', 'rotation' worden dan al gebruikt in deze class.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ColorProp, IndicatorPositionProp } from '
|
|
2
|
+
import { ColorProp, IndicatorPositionProp } from '~/loon-react-bulma-types';
|
|
3
3
|
declare type IndicatorProps = {
|
|
4
4
|
/** positie van de indicator (default = 'tr' (top-right)) */
|
|
5
5
|
position?: IndicatorPositionProp;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SizeProp } from '
|
|
1
|
+
import { SizeProp } from '~/loon-react-bulma-types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare type StatusType = 'active' | 'completed' | 'error' | 'pending';
|
|
4
4
|
declare type StepChoiceType = 'disabled' | 'up' | 'down' | 'allowed';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AlignmentProp, SizeProp } from '
|
|
2
|
+
import type { AlignmentProp, SizeProp } from '~/loon-react-bulma-types';
|
|
3
3
|
export declare type TabBarProps = {
|
|
4
4
|
/** tab grootte. (default = 'n') */
|
|
5
5
|
size?: SizeProp;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AlignmentProp } from '
|
|
3
|
-
import { ColorProp, TagSizeProp } from '../../loon-react-bulma-types';
|
|
2
|
+
import { ColorProp, TagSizeProp, AlignmentProp } from '~/loon-react-bulma-types';
|
|
4
3
|
export declare type TagProps = {
|
|
5
4
|
/** content van de tag */
|
|
6
5
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AlignmentProp, ColorProp, TagSizeProp } from '
|
|
3
|
+
import { AlignmentProp, ColorProp, TagSizeProp } from '~/loon-react-bulma-types';
|
|
4
4
|
declare type TimeLineProps = {
|
|
5
5
|
/** alignment van de timeline (default = 'l', left) */
|
|
6
6
|
alignment?: AlignmentProp;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SizeProp, ColorProp, AlignmentProp } from '
|
|
2
|
+
import { SizeProp, ColorProp, AlignmentProp } from '~/loon-react-bulma-types';
|
|
3
3
|
declare type ToggleBarProps = {
|
|
4
4
|
/** de beginwaarde (default = undefined)
|
|
5
5
|
* Deze property wordt alleen voor ToggleItems gebruikt. voor OnOffToggleItems kan dat per item geset worden
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ColorProp } from '
|
|
2
|
+
import { ColorProp } from '~/loon-react-bulma-types';
|
|
3
3
|
export declare type NotifierProviderProps = {
|
|
4
4
|
/** de child-components die de notifier mogen gebruiken */
|
|
5
5
|
children: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CheckradioStylingType, ColorProp } from '
|
|
2
|
+
import { CheckradioStylingType, ColorProp } from '~/loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
4
|
declare type CheckboxInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
5
5
|
/** kleur van de checkbox (default = 'l', link) */
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseInputProps } from '../shared';
|
|
3
|
+
declare type CurrencyInputProps = Omit<BaseInputProps, 'labelHidden'> & {
|
|
4
|
+
/** start value voor deze input (optioneel) */
|
|
5
|
+
value?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Wat te doen als de waarde is veranderd
|
|
8
|
+
* @param newVal: de nieuwe waarde
|
|
9
|
+
* @param isValid: is de nieuwe waarde geldig?
|
|
10
|
+
*/
|
|
11
|
+
onValueChanged?(newVal: [number, string], isValid?: boolean): void;
|
|
12
|
+
/** scheidingsteken gehele getallen en decimalen (default = ',' ) */
|
|
13
|
+
decimalSeparator?: string;
|
|
14
|
+
/** scheidingsteken per duizend (default = '.') */
|
|
15
|
+
thousandsSeparator?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Maak een input van een tekst-type met optionele validation.
|
|
19
|
+
* @param props
|
|
20
|
+
* @returns Een CurrencyInput
|
|
21
|
+
* @example <CurrencyInput value="12" {...props} />
|
|
22
|
+
* @description alle props voor CurencyInput component
|
|
23
|
+
* | prop | type | default | description |
|
|
24
|
+
* |-------------------|---------------------------|---------|--------------------------------------------|
|
|
25
|
+
* | name | `string` | | de naam voor de input (REQUIRED) |
|
|
26
|
+
* | label | `string` | `name` | de label voor de input |
|
|
27
|
+
* | autocomplete | `AutoCompleteType` | | de autocomplete type voor de input |
|
|
28
|
+
* | id | `string` | `name` | de id voor de input |
|
|
29
|
+
* | tooltip | `string` | | tooltip voor de input |
|
|
30
|
+
* | labelHidden | `boolean` | `false` | de label is verborgen (screenreaders) |
|
|
31
|
+
* | disabled | `boolean` | `false` | de input is disabled |
|
|
32
|
+
* | textAlign | `l`, `c`, `r` | `l` | de text-align van de input |
|
|
33
|
+
* | keyboardType | `search`, `text`, | `text ` | de type van de keyboard (touch-devices) |
|
|
34
|
+
* | | `email`,`tel`,`url` | | |
|
|
35
|
+
* | | `numeric`, `decimal` | | |
|
|
36
|
+
* | validation | `FormValidationType` | `{}` | de validatie voor de input |
|
|
37
|
+
* | value | `string`|`number` | | de waarde |
|
|
38
|
+
* | size | `s`,`m`,`l`,`xl` | `m` | de grootte van de input |
|
|
39
|
+
* | direction | `h`,`v` | `h` | de form-richting voor de input |
|
|
40
|
+
* | errorMessage | `string`, `function` | | een error message (van buiten setbaar) |
|
|
41
|
+
* | placeholder | `string` | | de placeholder voor de input |
|
|
42
|
+
* | onValueChanged() | `function` | | (value: string, valid?: boolean) => void |
|
|
43
|
+
* | onKeyDown() | `function` | | (event: React.KeyboardEvent) => void |
|
|
44
|
+
*/
|
|
45
|
+
declare function LbrCurrencyInput({ label, name, id, value, validation, errorMessage, size, textAlign, disabled, placeholder, keyboardType, tooltip, direction, onValueChanged, onKeyDown, decimalSeparator, ...props }: CurrencyInputProps): JSX.Element;
|
|
46
|
+
export { LbrCurrencyInput as CurrencyInput };
|
|
47
|
+
export type { CurrencyInputProps };
|
package/dist/forms/Form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlignmentProp, DirectionProp, SizeProp } from '
|
|
1
|
+
import { AlignmentProp, DirectionProp, SizeProp } from '~/loon-react-bulma-types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CheckBox } from './Checkbox/Checkbox';
|
|
4
4
|
import { DateInput } from './Datetimes/DateInput';
|
package/dist/forms/Input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import { AutoCompleteType } from '
|
|
3
|
+
import { AutoCompleteType } from '~/loon-react-bulma-types';
|
|
4
4
|
import { BaseInputProps, InputTypeProp } from './shared';
|
|
5
5
|
declare type InputValueType = string | number | readonly string[] | Date | undefined;
|
|
6
6
|
declare type InputProps<T extends InputValueType> = BaseInputProps<T> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CheckradioStylingType, ColorProp, DirectionProp, SizeProp, TextAlignmentProp } from '
|
|
2
|
+
import { CheckradioStylingType, ColorProp, DirectionProp, SizeProp, TextAlignmentProp } from '~/loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
4
|
declare type RadioInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
5
5
|
value?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SizeProp } from '
|
|
2
|
+
import { SizeProp } from '~/loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
4
|
import { SelectOptionType, SelectOptionGroupType } from './BaseSelectProps';
|
|
5
5
|
declare type SelectInputProps = Omit<BaseInputProps, 'icons'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AutoCompleteType } from '
|
|
2
|
+
import { AutoCompleteType } from '~/loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
4
|
declare type EmailInputProps = BaseInputProps & {
|
|
5
5
|
/** start value voor deze input (optioneel) */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AutoCompleteType } from '
|
|
2
|
+
import { AutoCompleteType } from '~/loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
4
|
declare type PasswordInputProps = BaseInputProps & {
|
|
5
5
|
/** start value voor deze input (optioneel) */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AutoCompleteType } from '
|
|
2
|
+
import { AutoCompleteType } from '~/loon-react-bulma-types';
|
|
3
3
|
import { BaseInputProps } from '../shared';
|
|
4
4
|
declare type CharType = '0-9' | 'a-z' | 'A-Z' | 'a-Z' | '0-Z' | string | RegExp;
|
|
5
5
|
declare type TextInputProps = BaseInputProps & {
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -38,3 +38,5 @@ export { TimeInput } from './Datetimes/TimeInput';
|
|
|
38
38
|
export type { TimeInputProps } from './Datetimes/TimeInput';
|
|
39
39
|
export { FileInput } from './File/FileInput';
|
|
40
40
|
export type { FileInputProps } from './File/FileInput';
|
|
41
|
+
export { CurrencyInput } from './Currency/CurrencyInput';
|
|
42
|
+
export type { CurrencyInputProps } from './Currency/CurrencyInput';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TextAlignmentProp, DirectionProp, KeyboardTypeProp, SizeProp } from '
|
|
3
|
+
import { TextAlignmentProp, DirectionProp, KeyboardTypeProp, SizeProp } from '~/loon-react-bulma-types';
|
|
4
4
|
export declare type BaseInputProps<T extends any = void> = {
|
|
5
5
|
/** is dit veld disabled ? (optioneel) */
|
|
6
6
|
disabled?: boolean;
|