loon-bulma-react 2025.1.1 → 2025.1.2
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 +29 -4
- package/dist/classes/Console.d.ts +1 -1
- package/dist/components/Box/BorderBox.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/components/Calendar/DayContainer.d.ts +1 -1
- package/dist/components/Calendar/Fourweeks/FourweeksView.d.ts +1 -1
- package/dist/components/Calendar/Mini/MiniView.d.ts +1 -1
- package/dist/components/Calendar/Month/MonthView.d.ts +1 -1
- package/dist/components/Calendar/Planning/PlanningView.d.ts +2 -2
- package/dist/components/Calendar/Props.d.ts +2 -2
- package/dist/components/Calendar/Week/AlldayContainer.d.ts +1 -1
- package/dist/components/Calendar/Week/HourRow.d.ts +1 -1
- package/dist/components/Calendar/Week/WeekView.d.ts +1 -1
- package/dist/components/Calendar/calendar.functions.d.ts +1 -1
- package/dist/components/Container/Container.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/Divider/Divider.d.ts +1 -1
- package/dist/components/Footer/Footer.d.ts +1 -1
- package/dist/components/Help/Help.d.ts +1 -1
- package/dist/components/Hero/Hero.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Indicator/Indicator.d.ts +1 -1
- package/dist/components/Link/Link.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/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Panel/Panel.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/QuickView/QuickView.d.ts +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts +1 -1
- package/dist/components/Section/Section.d.ts +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +1 -1
- package/dist/components/TabBar/TabBar.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/TimeLine/TimeLine.d.ts +1 -1
- package/dist/components/ToggleBar/ToggleBar.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/contexts/ActionSheet/ActionSheetContextProvider.d.ts +1 -1
- package/dist/contexts/AppProvider/AppProviders.d.ts +1 -1
- package/dist/contexts/ColorSchemeProvider/ColorSchemeProvider.d.ts +1 -1
- package/dist/contexts/DefaultsProvider/DefaultsProvider.d.ts +1 -1
- package/dist/contexts/Notifier/Notifier.d.ts +1 -1
- package/dist/contexts/Prompt/PromptContextProvider.d.ts +2 -2
- package/dist/forms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/forms/ComboBox/ComboBox.d.ts +1 -1
- package/dist/forms/ComboBox/MultiComboBox.d.ts +1 -1
- package/dist/forms/Currency/CurrencyInput.d.ts +1 -1
- package/dist/forms/Datetimes/DateInput.d.ts +2 -2
- package/dist/forms/Datetimes/DateTimeInput.d.ts +2 -2
- package/dist/forms/Datetimes/TimeInput.d.ts +2 -2
- package/dist/forms/File/FileInput.d.ts +1 -1
- package/dist/forms/Input.d.ts +1 -1
- package/dist/forms/Numeric/NumberInput.d.ts +1 -1
- package/dist/forms/Numeric/RangeInput.d.ts +1 -1
- package/dist/forms/Others/ColorInput.d.ts +1 -1
- package/dist/forms/Others/TelephoneInput.d.ts +1 -1
- package/dist/forms/Others/URLInput.d.ts +1 -1
- package/dist/forms/Periodes/MonthInput.d.ts +1 -1
- package/dist/forms/Periodes/WeekInput.d.ts +1 -1
- package/dist/forms/Radio/Radio.d.ts +1 -1
- package/dist/forms/Select/Select.d.ts +1 -1
- package/dist/forms/TagsInput/TagsInput.d.ts +3 -3
- package/dist/forms/Text/EmailInput.d.ts +1 -1
- package/dist/forms/Text/FormattedInput.d.ts +2 -2
- package/dist/forms/Text/PasswordInput.d.ts +1 -1
- package/dist/forms/Text/TextArea.d.ts +1 -1
- package/dist/forms/Text/TextEditor.d.ts +2 -2
- package/dist/forms/Text/TextInput.d.ts +1 -1
- package/dist/index.js +4279 -4271
- package/dist/internal_functions/getColorClass.d.ts +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +10 -10
- package/package.json +10 -11
package/README.md
CHANGED
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
# loon-bulma-react
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
## Build-procedure is gewijzigd
|
|
4
|
+
|
|
5
|
+
Alle builds **voor** versie `2025.1.0` zijn gebouwd met behulp van [tsup](https://tsup.egoist.dev/). Tsup wordt alleen niet meer onderhouden, daarom zijn we gemigreerd naar een ViteJS-lib configuratie. Daar was nog wel wat werk voor nodig. En er zijn behoorlijk wat config files bijgekomen:
|
|
6
|
+
|
|
7
|
+
- TSConfig files:
|
|
8
|
+
- `tsconfig.json`: Basis configuratie voor TypeScript
|
|
9
|
+
- `tsconfig.build.json`: Configuratie voor het bouwen van de library
|
|
10
|
+
- `tsconfig.node.json`: Configuratie voor Node.js omgevingen (nodig voor beide build-types)
|
|
11
|
+
- `tsconfig.app.json`: Configuratie voor de applicatie / voorbeeldsite
|
|
12
|
+
|
|
13
|
+
- Vite Config files
|
|
14
|
+
- `vite.build.config.ts`: Configuratie voor het bouwen van de library
|
|
15
|
+
- `vite.app.config.ts`: Configuratie voor de applicatie / voorbeeldsite
|
|
16
|
+
|
|
17
|
+
De voorbeeldsite en de npm-package worden nu dus met dezelfde tool gebouwd. De `lib`-folder bevat de code die naar de npm-package moet worden gepubliceerd (samen met deze README). De `src`-folder bevat de code om de voorbeeldsite te bouwen en de componenten uit de package te testen.
|
|
18
|
+
|
|
19
|
+
De build-scripts in de `package.json` zijn aangepast om Vite te gebruiken. Het zijn er 3:
|
|
20
|
+
- `build`: roept _beide_ bouw-scripts aan om de library **en** de voorbeeldsite te bouwen
|
|
21
|
+
- `lib:build`: voor het bouwen van de library. Deze publiceert naar de folder `./dist`
|
|
22
|
+
- `app:build`: voor het bouwen van de voorbeeldsite. Deze publiceert naar de folder `./.site`.
|
|
23
|
+
|
|
24
|
+
De `./dist`-folder bevat de gebundelde code voor de librar en hoeft dus niet in git. De `./.site`-folder bevat de gebundelde code voor de voorbeeldsite. Deze wordt via github naar een github-page gepubliceerd, dus moet **wel** in git blijven!
|
|
25
|
+
|
|
26
|
+
## Voorbeeld pagina
|
|
27
|
+
|
|
28
|
+
De voorbeelden voor de componenten vindt je op een [GitHub Page](https://timroos1990.github.io/loon-bulma-react/)
|
|
29
|
+
|
|
30
|
+
[F626428]
|
|
6
31
|
|
|
7
32
|
## [Bulma](https://bulma.io/) & [React](https://reactjs.org/) componenten voor Loon Salarissoftware.
|
|
8
33
|
|
|
@@ -46,7 +71,7 @@ Voor het meeste recente Loon-jaar kan je _wel_ `npm install loon-bulma-react@lat
|
|
|
46
71
|
> - `@y2020` --> Testversie voor **2020**, installeren met `npm install loon-bulma-react@y2021`.
|
|
47
72
|
> - `@y2021` --> Versie voor **2021**, installeren met `npm install loon-bulma-react@y2021`.
|
|
48
73
|
> - `@y2022` --> Versie voor **2022**, installeren met `npm install loon-bulma-react@y2022`.
|
|
49
|
-
> - `@y2023` --> Versie voor **2023**, installeren met `npm install loon-bulma-react@y2023`
|
|
74
|
+
> - `@y2023` --> Versie voor **2023**, installeren met `npm install loon-bulma-react@y2023`
|
|
50
75
|
> - `@y2024` --> Versie voor **2024**, installeren met `npm install loon-bulma-react@y2024`.
|
|
51
76
|
> - `@latest` --> Default versie die geïnstalleerd wordt met `npm install loon-bulma-react`.
|
|
52
77
|
> - `@beta` --> Versie om te testen _(TR!)_ van wat dingen`npm install loon-bulma-react@beta`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type ConsoleLevel = 'error' | 'warn' | 'log' | 'info' | string & {};
|
|
2
2
|
/** log in console */
|
|
3
3
|
export declare class Console {
|
|
4
|
-
static enabled:
|
|
4
|
+
static enabled: any;
|
|
5
5
|
/** console-log error - Alleen in Debug Modus! */
|
|
6
6
|
static Error(message?: any, ...optionalParams: any[]): void;
|
|
7
7
|
/** console-log warning - Alleen in Debug Modus! */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import { ColorProp, StrictOmit, SizeProp } from '
|
|
3
|
+
import { ColorProp, StrictOmit, SizeProp } from '~/lib/types';
|
|
4
4
|
type ButtonStyles = 'faded' | 'f' | 'inverted' | 'i' | 'static' | 's' | 'default' | 'd' | 'outlined' | 'o';
|
|
5
5
|
export type ButtonProps = {
|
|
6
6
|
/** Is de button loading ? */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSDateTime } from '
|
|
1
|
+
import { JSDateTime } from '~/lib/utils/JSDateTime.class';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { BaseEventProps, CalendarOptions, CalendarType } from './Props';
|
|
4
4
|
type DayContainerProps<T extends BaseEventProps> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { KeyOf } from '
|
|
2
|
-
import { JSDateTime } from '
|
|
1
|
+
import { KeyOf } from '~/lib/types';
|
|
2
|
+
import { JSDateTime } from '~/lib/utils/JSDateTime.class';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { BaseEventProps, CalendarOptions } from '../Props';
|
|
5
5
|
type PlanningViewProps<R, E extends BaseEventProps = BaseEventProps> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColorProp } from '
|
|
2
|
-
import { JSDateTime } from '
|
|
1
|
+
import { ColorProp } from '~/lib/types';
|
|
2
|
+
import { JSDateTime } from '~/lib/utils/JSDateTime.class';
|
|
3
3
|
import { Locale } from 'date-fns';
|
|
4
4
|
export type CalendarType = 'm' | 'v' | 'w' | 'p';
|
|
5
5
|
export type CalendarHours = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | (number & {});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSDateTime } from "
|
|
1
|
+
import { JSDateTime } from "~/lib/utils/JSDateTime.class";
|
|
2
2
|
import { BaseEventProps, CalendarOptions } from "./Props";
|
|
3
3
|
/** Controleer of een event zichtbaar moet zijn tussen twee datu,s:
|
|
4
4
|
* - startDt tussen start en eind
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyOf, AlignmentProp, SizeProp } from '
|
|
1
|
+
import { KeyOf, AlignmentProp, SizeProp } from '~/lib/types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type DataTableColumnProp<T extends unknown = unknown> = {
|
|
4
4
|
/** Instellen van de volgorde van de kolommen. Kolommen worden gesorteerd obv de waarde. De default waarde = `0`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import { SizeProp, ColorProp, StrictOmit } from '
|
|
3
|
+
import { SizeProp, ColorProp, StrictOmit } from '~/lib/types';
|
|
4
4
|
type MessageProps = {
|
|
5
5
|
/** ID voor de message */
|
|
6
6
|
id?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { ColorProp, StrictOmit } from '
|
|
2
|
+
import { ColorProp, StrictOmit } from '~/lib/types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
/** Props voor een Notification */
|
|
5
5
|
export type NotificationProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SizeProp } from '
|
|
1
|
+
import { SizeProp } from '~/lib/types';
|
|
2
2
|
type PaginationProps = {
|
|
3
3
|
/** current selected page number */ currentPage: number;
|
|
4
4
|
/** range to render bijvoorbeeld van de `usePagination()`-hook. Bestaat uit numbers en `'dots'` op de plekken waar puntjes moeten komen
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { InputValueType, InputPropsType, InputStylingPropsType } from '
|
|
3
|
-
import { ColorProp, PrettierType, StrictOmit } from '
|
|
2
|
+
import { InputValueType, InputPropsType, InputStylingPropsType } from '~/lib/forms/Input';
|
|
3
|
+
import { ColorProp, PrettierType, StrictOmit } from '~/lib/types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
type PanelProps = {
|
|
6
6
|
/** de kleur van het Panel (default = `i`) */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SizeProp, AlignmentProp, StrictOmit } from '
|
|
1
|
+
import { SizeProp, AlignmentProp, StrictOmit } from '~/lib/types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export type TabBarProps = {
|
|
4
4
|
/** Tab grootte. (default = 'm') */
|
|
@@ -42,6 +42,6 @@ export type TabBarItemProps = {
|
|
|
42
42
|
*/
|
|
43
43
|
declare const TabBar: {
|
|
44
44
|
({ id, type, activeTab: currentActiveTab, initialTab, size: sizeProp, alignment, fullwidth, children, onTabChange }: TabBarProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
Item(
|
|
45
|
+
Item(_props: StrictOmit<TabBarItemProps, "onClick" | "isActive">): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
};
|
|
47
47
|
export { TabBar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { AlignmentProp, ColorProp, TagSizeProp } from '
|
|
2
|
+
import { AlignmentProp, ColorProp, TagSizeProp } from '~/lib/types';
|
|
3
3
|
type TimeLineProps = {
|
|
4
4
|
id?: string;
|
|
5
5
|
/** Alignment van de timeline (default = 'l', left) */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { ColorProp } from '
|
|
2
|
+
import { ColorProp } from '~/lib/types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
type ActionSheetButton<T extends unknown = {}> = string | {
|
|
5
5
|
txt?: string | ((v: T) => string);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SizeProp, DirectionProp, AlignmentProp, ColorProp, TagSizeProp } from '
|
|
1
|
+
import { SizeProp, DirectionProp, AlignmentProp, ColorProp, TagSizeProp } from '~/lib/types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type InputSettings = {
|
|
4
4
|
/** default size setting (`m`) */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import { TextInputProps } from '
|
|
4
|
-
import { StrictOmit } from '
|
|
3
|
+
import { TextInputProps } from '~/lib/forms/Text/TextInput';
|
|
4
|
+
import { StrictOmit } from '~/lib/types';
|
|
5
5
|
type State = {
|
|
6
6
|
show: boolean;
|
|
7
7
|
content: string | React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit, ColorProp } from '
|
|
1
|
+
import { StrictOmit, ColorProp } from '~/lib/types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { InputPropsType, InputStylingPropsType, InputErrorProps } from '../Input';
|
|
4
4
|
type CheckBoxInputProps = StrictOmit<InputPropsType<boolean>, 'value' | 'type' | 'step' | 'pattern' | 'errorMessage' | 'infoMessage' | 'min' | 'max' | 'pattern' | 'placeholder' | 'hideIconRight'> & StrictOmit<InputStylingPropsType, 'icon'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StrictOmit, AutoCompleteProp } from '
|
|
2
|
+
import { StrictOmit, AutoCompleteProp } from '~/lib/types';
|
|
3
3
|
import { InputPropsType, InputStylingPropsType, InputErrorProps, InputValueType } from '../Input';
|
|
4
4
|
type ComboBoxProps<T extends unknown = {}> = StrictOmit<InputPropsType<number | string | string[]>, 'type' | 'step' | 'inputRef' | 'value' | 'onValueChanged' | 'min' | 'max' | 'readonly' | 'pattern' | 'errorMessage' | 'infoMessage' | 'title' | 'form' | 'autoComplete' | 'spellCheck' | 'keyboardType'> & InputStylingPropsType & {
|
|
5
5
|
/** De waarde van de combobox */ value: T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit, AutoCompleteProp } from '
|
|
1
|
+
import { StrictOmit, AutoCompleteProp } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType, InputErrorProps, InputValueType } from '../Input';
|
|
3
3
|
type MultiComboBoxProps<T extends unknown = {}> = StrictOmit<InputPropsType<number | string | string[]>, 'type' | 'step' | 'inputRef' | 'value' | 'onValueChanged' | 'min' | 'max' | 'readonly' | 'pattern' | 'errorMessage' | 'infoMessage' | 'title' | 'form' | 'autoComplete' | 'spellCheck' | 'keyboardType' | 'onChange'> & InputStylingPropsType & {
|
|
4
4
|
/** De waarde van de combobox */ value: T[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType, InputErrorProps } from '../Input';
|
|
3
3
|
type CurrencyInputProps = StrictOmit<InputPropsType<number>, 'keyboardType' | 'pattern' | 'value' | 'type' | 'onValueChanged' | 'errorMessage' | 'infoMessage'> & InputStylingPropsType & {
|
|
4
4
|
/** waarde van de input. Als number of als number-string-tuple (zoals waarde uit `onValueChanged`) */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
2
|
-
import { JSDateTime } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
|
+
import { JSDateTime } from '~/lib/utils/JSDateTime.class';
|
|
3
3
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
4
4
|
type DateInputProps = StrictOmit<InputPropsType<string>, 'type' | 'value' | 'onValueChanged'> & InputStylingPropsType & {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
2
|
-
import { JSDateTime } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
|
+
import { JSDateTime } from '~/lib/utils/JSDateTime.class';
|
|
3
3
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
4
4
|
type DateTimeInputProps = StrictOmit<InputPropsType<string>, 'type' | 'value' | 'onValueChanged'> & InputStylingPropsType & {
|
|
5
5
|
/** Moeten de secondes en de milliseconden ook getoond worden? (default = `'none'`)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
2
|
-
import { JSDateTime } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
|
+
import { JSDateTime } from '~/lib/utils/JSDateTime.class';
|
|
3
3
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
4
4
|
type TimeInputProps = StrictOmit<InputPropsType<string>, 'step' | 'type' | 'value' | 'onValueChanged'> & InputStylingPropsType & {
|
|
5
5
|
/** Moeten de secondes ook getoont worden in de input? (Default = false) */
|
package/dist/forms/Input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { AlignmentProp, DirectionProp, AutoCompleteProp, KeyboardTypeProp, StrictOmit, SizeProp } from '
|
|
2
|
+
import { AlignmentProp, DirectionProp, AutoCompleteProp, KeyboardTypeProp, StrictOmit, SizeProp } from '~/lib/types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { MonthInputString } from './Periodes/MonthInput';
|
|
5
5
|
import { WeekInputString } from './Periodes/WeekInput';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
3
3
|
type NumberInputProps = StrictOmit<InputPropsType<number>, 'type' | 'spellCheck'> & InputStylingPropsType & {
|
|
4
4
|
prefix?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
3
3
|
type RangeInputProps = StrictOmit<InputPropsType<number>, 'autofocus' | 'autoComplete' | 'type' | 'spellCheck' | 'placeholder' | 'hideIconRight'> & StrictOmit<InputStylingPropsType, 'alignment' | 'icon'> & {
|
|
4
4
|
/** value-unit om __voor__ de geselecteerde waarde te zetten. (default = `''`) */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit, HexColor, RGBColor, HSLColor } from '
|
|
1
|
+
import { StrictOmit, HexColor, RGBColor, HSLColor } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
3
3
|
type ColorInputProps = StrictOmit<InputPropsType<string>, 'type' | 'value' | 'onValueChanged' | 'step' | 'min' | 'max' | 'autoComplete' | 'spellCheck' | 'keyboardType'> & InputStylingPropsType & {
|
|
4
4
|
/** Gebruik de color-input met een hex-color, bijvooerbeeld`#ff8000` of `#fff` */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
3
3
|
type TelephoneInputProps = StrictOmit<InputPropsType<string>, 'type' | 'step' | 'pattern'> & InputStylingPropsType & {
|
|
4
4
|
pattern?: 'mobiel' | 'vast' | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
3
3
|
type URLInputProps = StrictOmit<InputPropsType<string>, 'type' | 'step' | 'pattern'> & InputStylingPropsType & {
|
|
4
4
|
pattern?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit, DirectionProp, ColorProp } from '
|
|
1
|
+
import { StrictOmit, DirectionProp, ColorProp } from '~/lib/types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { InputValueType, InputStylingPropsType, InputErrorProps, InputPropsType } from '../Input';
|
|
4
4
|
type RBValueType = InputValueType | {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
4
4
|
type SelectInputProps<T extends number | string | string[]> = StrictOmit<InputPropsType<number | string | string[]>, 'type' | 'step' | 'inputRef' | 'value' | 'onValueChanged' | 'onBlur' | 'onFocus' | 'onChange' | 'onKeyDown' | 'onKeyUp' | 'min' | 'max' | 'readonly' | 'pattern' | 'placeholder'> & InputStylingPropsType & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StrictOmit, ColorProp } from '
|
|
1
|
+
import { StrictOmit, ColorProp } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType, InputErrorProps } from '../Input';
|
|
3
|
-
type TagsInputProps = StrictOmit<InputPropsType<string>, 'type' | 'step' | 'value' | 'onValueChanged' | 'max' | 'min' | 'inputRef' | 'errorMessage'> & InputStylingPropsType & {
|
|
3
|
+
type TagsInputProps = StrictOmit<InputPropsType<string>, 'type' | 'step' | 'onChange' | 'value' | 'onValueChanged' | 'max' | 'min' | 'inputRef' | 'errorMessage'> & InputStylingPropsType & {
|
|
4
4
|
/** de values (dus de tags) van het input field */
|
|
5
5
|
value?: string[] | undefined;
|
|
6
6
|
/** mogen tags meerdere keren voorkomen (2 tags met dezelfde tekst). default = `false` */
|
|
@@ -39,6 +39,6 @@ type TagsInputProps = StrictOmit<InputPropsType<string>, 'type' | 'step' | 'valu
|
|
|
39
39
|
* </Section>
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
|
-
declare function TagsInput({ value, allowDuplicates, disableRemove, disabled, id, name, label, color: colorProp, direction: directionProp, errorMessage, infoMessage, showRequiredOnLabel, icon, labelHidden, required, loading, size: sizeProp, alignment: alignmentProp, autoComplete, optionListId, autofocus, form, helpTag, keyboardType, maxLength, minLength, pattern, placeholder, readonly, spellCheck, hideIconRight, title, className: extraClasses, styles, randomColors, maxTags, infoData, onBlur, onFocus, onValueChanged, onKeyDown, onKeyUp,
|
|
42
|
+
declare function TagsInput({ value, allowDuplicates, disableRemove, disabled, id, name, label, color: colorProp, direction: directionProp, errorMessage, infoMessage, showRequiredOnLabel, icon, labelHidden, required, loading, size: sizeProp, alignment: alignmentProp, autoComplete, optionListId, autofocus, form, helpTag, keyboardType, maxLength, minLength, pattern, placeholder, readonly, spellCheck, hideIconRight, title, className: extraClasses, styles, randomColors, maxTags, infoData, onBlur, onFocus, onValueChanged, onKeyDown, onKeyUp, }: TagsInputProps): import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
export { TagsInput };
|
|
44
44
|
export type { TagsInputProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictOmit } from '
|
|
1
|
+
import { StrictOmit } from '~/lib/types';
|
|
2
2
|
import { InputPropsType, InputStylingPropsType } from '../Input';
|
|
3
3
|
type EmailInputProps = StrictOmit<InputPropsType<string>, 'type' | 'step'> & InputStylingPropsType & {
|
|
4
4
|
pattern?: string;
|