loon-bulma-react 2025.1.2 → 2025.1.4

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.
Files changed (75) hide show
  1. package/dist/components/Box/BorderBox.d.ts +1 -1
  2. package/dist/components/Button/Button.d.ts +1 -1
  3. package/dist/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  4. package/dist/components/Calendar/DayContainer.d.ts +1 -1
  5. package/dist/components/Calendar/Fourweeks/FourweeksView.d.ts +1 -1
  6. package/dist/components/Calendar/Mini/MiniView.d.ts +1 -1
  7. package/dist/components/Calendar/Month/MonthView.d.ts +1 -1
  8. package/dist/components/Calendar/Planning/PlanningView.d.ts +2 -3
  9. package/dist/components/Calendar/Props.d.ts +2 -2
  10. package/dist/components/Calendar/Week/AlldayContainer.d.ts +1 -1
  11. package/dist/components/Calendar/Week/HourRow.d.ts +1 -1
  12. package/dist/components/Calendar/Week/WeekView.d.ts +1 -1
  13. package/dist/components/Calendar/calendar.functions.d.ts +1 -1
  14. package/dist/components/Container/Container.d.ts +1 -1
  15. package/dist/components/Content/Content.d.ts +1 -1
  16. package/dist/components/DataTable/DataTable.d.ts +4 -4
  17. package/dist/components/Divider/Divider.d.ts +1 -1
  18. package/dist/components/Footer/Footer.d.ts +1 -1
  19. package/dist/components/Help/Help.d.ts +1 -1
  20. package/dist/components/Hero/Hero.d.ts +1 -1
  21. package/dist/components/Icon/Icon.d.ts +1 -1
  22. package/dist/components/Indicator/Indicator.d.ts +1 -1
  23. package/dist/components/Link/Link.d.ts +1 -1
  24. package/dist/components/Message/Message.d.ts +1 -1
  25. package/dist/components/Modal/Modal.d.ts +1 -1
  26. package/dist/components/Notification/Notification.d.ts +1 -1
  27. package/dist/components/Pagination/Pagination.d.ts +1 -1
  28. package/dist/components/Panel/Panel.d.ts +2 -2
  29. package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
  30. package/dist/components/QuickView/QuickView.d.ts +1 -1
  31. package/dist/components/ScrollArea/ScrollArea.d.ts +1 -1
  32. package/dist/components/Section/Section.d.ts +1 -1
  33. package/dist/components/SimpleTable/SimpleTable.d.ts +4 -4
  34. package/dist/components/Steps/Steps.d.ts +1 -1
  35. package/dist/components/TabBar/TabBar.d.ts +1 -1
  36. package/dist/components/Tag/Tag.d.ts +1 -1
  37. package/dist/components/TimeLine/TimeLine.d.ts +1 -1
  38. package/dist/components/ToggleBar/ToggleBar.d.ts +1 -1
  39. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  40. package/dist/components/TreeView/TreeView.d.ts +2 -2
  41. package/dist/contexts/ActionSheet/ActionSheetContextProvider.d.ts +1 -1
  42. package/dist/contexts/AppProvider/AppProviders.d.ts +1 -1
  43. package/dist/contexts/ColorSchemeProvider/ColorSchemeProvider.d.ts +1 -1
  44. package/dist/contexts/DefaultsProvider/DefaultsProvider.d.ts +1 -1
  45. package/dist/contexts/Notifier/Notifier.d.ts +1 -1
  46. package/dist/contexts/Prompt/PromptContextProvider.d.ts +2 -2
  47. package/dist/forms/Checkbox/Checkbox.d.ts +1 -1
  48. package/dist/forms/ComboBox/ComboBox.d.ts +1 -1
  49. package/dist/forms/ComboBox/MultiComboBox.d.ts +1 -1
  50. package/dist/forms/Currency/CurrencyInput.d.ts +5 -3
  51. package/dist/forms/Datetimes/DateInput.d.ts +2 -2
  52. package/dist/forms/Datetimes/DateTimeInput.d.ts +2 -2
  53. package/dist/forms/Datetimes/TimeInput.d.ts +2 -2
  54. package/dist/forms/File/FileInput.d.ts +1 -1
  55. package/dist/forms/Input.d.ts +1 -1
  56. package/dist/forms/MaskedInput/MaskedInput.d.ts +3 -3
  57. package/dist/forms/Numeric/NumberInput.d.ts +1 -1
  58. package/dist/forms/Numeric/RangeInput.d.ts +1 -1
  59. package/dist/forms/Others/ColorInput.d.ts +1 -1
  60. package/dist/forms/Others/TelephoneInput.d.ts +1 -1
  61. package/dist/forms/Others/URLInput.d.ts +1 -1
  62. package/dist/forms/Periodes/MonthInput.d.ts +1 -1
  63. package/dist/forms/Periodes/WeekInput.d.ts +1 -1
  64. package/dist/forms/Radio/Radio.d.ts +1 -1
  65. package/dist/forms/Select/Select.d.ts +1 -1
  66. package/dist/forms/TagsInput/TagsInput.d.ts +1 -1
  67. package/dist/forms/Text/EmailInput.d.ts +1 -1
  68. package/dist/forms/Text/FormattedInput.d.ts +1 -1
  69. package/dist/forms/Text/PasswordInput.d.ts +1 -1
  70. package/dist/forms/Text/TextArea.d.ts +1 -1
  71. package/dist/forms/Text/TextEditor.d.ts +1 -1
  72. package/dist/forms/Text/TextInput.d.ts +1 -1
  73. package/dist/index.js +10410 -11159
  74. package/dist/internal_functions/getColorClass.d.ts +3 -3
  75. package/package.json +41 -41
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ColorProp, AlignmentProp, StrictOmit } from '~/lib/types';
2
+ import { ColorProp, AlignmentProp, StrictOmit } from './../../types';
3
3
  type BorderBoxProps = {
4
4
  children: React.ReactNode;
5
5
  title?: string | undefined;
@@ -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 '~/lib/types';
3
+ import { ColorProp, StrictOmit, SizeProp } from './../../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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AlignmentProp } from '~/lib/types';
2
+ import { AlignmentProp } from './../../types';
3
3
  type ButtonGroupProps = {
4
4
  /** Een buttongroup kan alleen Buttons als children hebben! */
5
5
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../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,4 +1,4 @@
1
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
2
2
  import React from 'react';
3
3
  import { BaseEventProps, CalendarOptions } from '../Props';
4
4
  type FourweekViewProps<T extends BaseEventProps> = {
@@ -1,4 +1,4 @@
1
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
2
2
  import { Locale } from 'date-fns';
3
3
  type MiniViewProps = {
4
4
  /** de viewDate waarop de mini-view start (optioneel, default = vandaag) */
@@ -1,4 +1,4 @@
1
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
2
2
  import React from 'react';
3
3
  import { BaseEventProps, CalendarOptions } from '../Props';
4
4
  type MonthViewProps<T extends BaseEventProps> = {
@@ -1,5 +1,4 @@
1
- import { KeyOf } from '~/lib/types';
2
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
3
2
  import React from 'react';
4
3
  import { BaseEventProps, CalendarOptions } from '../Props';
5
4
  type PlanningViewProps<R, E extends BaseEventProps = BaseEventProps> = {
@@ -16,7 +15,7 @@ type PlanningViewProps<R, E extends BaseEventProps = BaseEventProps> = {
16
15
  * - 'itself' -> Gebruik met R is een string of number.
17
16
  * - Anders moet de rowIdentifer een property van R zijn.
18
17
  */
19
- rowIdentifier?: 'itself' | KeyOf<R> | ((item: R, index?: number) => string);
18
+ rowIdentifier?: 'itself' | keyof R | ((item: R, index?: number) => string);
20
19
  /** Gebruik start en einde van de week? Dan is de 1e kolom met events altijd een maandag, de laatste altijd een zondag (bij visibleDays is allemaal) */
21
20
  alwaysStartOnMonday?: boolean;
22
21
  /** Opties voor deze view */
@@ -1,5 +1,5 @@
1
- import { ColorProp } from '~/lib/types';
2
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { ColorProp } from './../../types';
2
+ import { JSDateTime } from './../../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 '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
2
2
  import React from 'react';
3
3
  import { BaseEventProps, CalendarOptions } from '../Props';
4
4
  type AlldayContainerProps<T extends BaseEventProps> = {
@@ -1,4 +1,4 @@
1
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
2
2
  import React from 'react';
3
3
  import { BaseEventProps, CalendarOptions, CalendarHours } from '../Props';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { JSDateTime } from './../../../utils/JSDateTime.class';
2
2
  import React from 'react';
3
3
  import { BaseEventProps, CalendarOptions } from '../Props';
4
4
  type WeekViewProps<T extends BaseEventProps> = {
@@ -1,4 +1,4 @@
1
- import { JSDateTime } from "~/lib/utils/JSDateTime.class";
1
+ import { JSDateTime } from "./../../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 { SizeProp, StrictOmit } from '~/lib/index';
1
+ import { SizeProp, StrictOmit } from './../..';
2
2
  import React from 'react';
3
3
  type ContainerProps = {
4
4
  /** Container content */
@@ -1,4 +1,4 @@
1
- import { SizeProp } from '~/lib/types';
1
+ import { SizeProp } from './../../types';
2
2
  import React from 'react';
3
3
  type ContentPropsType = {
4
4
  /** Size van de content (default = 'm') */
@@ -1,4 +1,4 @@
1
- import { KeyOf, AlignmentProp, SizeProp } from '~/lib/types';
1
+ import { AlignmentProp, SizeProp } from './../../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`
@@ -11,9 +11,9 @@ type DataTableColumnProp<T extends unknown = unknown> = {
11
11
  /** sorteer-functie voor deze kolom. Als niet gedefinieerd kan je niet op deze kolom sorteren */
12
12
  sort?: (a: T, b: T) => -1 | 0 | 1 | number;
13
13
  /** de waarde van de kolom. Een fucnction of een property van object van type `T` (string) */
14
- value: KeyOf<T> | ((item: T, hovered?: boolean) => React.ReactNode);
14
+ value: keyof T | ((item: T, hovered?: boolean) => React.ReactNode);
15
15
  /** manier om deze cel te identificeren */
16
- cellIdentifier?: KeyOf<T> | ((item: T) => string);
16
+ cellIdentifier?: keyof T | ((item: T) => string);
17
17
  /** header voor de kolom. Als niet gedefinieerd wordt de `value` gebruikt, Dus als `value` een `function` is, **moet** je deze setten */
18
18
  header?: string | React.ReactNode;
19
19
  /** alignment van deze kolom (default = `l` */
@@ -125,7 +125,7 @@ type DataTableProps<T extends unknown = unknown> = {
125
125
  * - string: de property op het object van type `T`
126
126
  * - function: een function die een `string` returned om te gebruiken als `key` voor de row.
127
127
  */
128
- rowIdentifier: KeyOf<T> | ((item: T) => string);
128
+ rowIdentifier: keyof T | ((item: T) => string);
129
129
  /** extra content boven de tabel, links van het zoekveld. Deze content wordt automatisch gewrapped met een `<td>...</td>` */
130
130
  headerContent?: React.ReactNode;
131
131
  /** extra content onder de tabel. Een ReactNode.
@@ -1,4 +1,4 @@
1
- import { ColorProp } from '~/lib/types';
1
+ import { ColorProp } from './../../types';
2
2
  type DividerProps = {
3
3
  color?: ColorProp | 'default' | undefined;
4
4
  className?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { AlignmentProp } from '~/lib/types';
1
+ import { AlignmentProp } from './../../types';
2
2
  import React from 'react';
3
3
  export type FooterProps = {
4
4
  /** De content voor de footer */
@@ -1,4 +1,4 @@
1
- import { ColorProp, StrictOmit } from '~/lib/types';
1
+ import { ColorProp, StrictOmit } from './../../types';
2
2
  import React from 'react';
3
3
  type HelpTxtProps = {
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { SizeProp, AnchorTargetProp, AnchorRelProp } from '~/lib/types';
1
+ import { SizeProp, AnchorTargetProp, AnchorRelProp } from './../../types';
2
2
  import React from 'react';
3
3
  type HeroProps = {
4
4
  itemRef?: React.RefObject<any> | null;
@@ -1,5 +1,5 @@
1
1
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- import { SizeProp, ColorProp } from '~/lib/types';
2
+ import { SizeProp, ColorProp } from './../../types';
3
3
  import React from 'react';
4
4
  type IconProps = {
5
5
  /** React font-awesome icon
@@ -1,4 +1,4 @@
1
- import { IndicatorPositionProp, ColorProp } from '~/lib/types';
1
+ import { IndicatorPositionProp, ColorProp } from './../../types';
2
2
  import React from 'react';
3
3
  type IndicatorProps = {
4
4
  /** Positie van de indicator (default = 'tr' (top-right)) */
@@ -1,4 +1,4 @@
1
- import { ColorProp, AnchorTargetProp, AnchorRelProp } from '~/lib/types';
1
+ import { ColorProp, AnchorTargetProp, AnchorRelProp } from './../../types';
2
2
  import React from 'react';
3
3
  type LinkButtonProps = {
4
4
  fullwidth?: boolean;
@@ -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 '~/lib/types';
3
+ import { SizeProp, ColorProp, StrictOmit } from './../../types';
4
4
  type MessageProps = {
5
5
  /** ID voor de message */
6
6
  id?: string;
@@ -1,4 +1,4 @@
1
- import { SizeProp } from '~/lib/types';
1
+ import { SizeProp } from './../../types';
2
2
  import React from 'react';
3
3
  type ModalProps = {
4
4
  /** Content van de modal. Als deze te lang wordt, wordt hij scrollable */
@@ -1,5 +1,5 @@
1
1
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- import { ColorProp, StrictOmit } from '~/lib/types';
2
+ import { ColorProp, StrictOmit } from './../../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 '~/lib/types';
1
+ import { SizeProp } from './../../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 '~/lib/forms/Input';
3
- import { ColorProp, PrettierType, StrictOmit } from '~/lib/types';
2
+ import { InputValueType, InputPropsType, InputStylingPropsType } from './../../forms/Input';
3
+ import { ColorProp, PrettierType, StrictOmit } from './../../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, ColorProp } from '~/lib/types';
1
+ import { SizeProp, ColorProp } from './../../types';
2
2
  type ProgressBarProps = {
3
3
  /** Grootte van de progressbar */
4
4
  size?: SizeProp;
@@ -1,4 +1,4 @@
1
- import { ColorProp } from '~/lib/types';
1
+ import { ColorProp } from './../../types';
2
2
  import React from 'react';
3
3
  type QuickViewProps = {
4
4
  /** ref naar de quickview. Bijvoorbeeld voor gebruik met de `useClickOutside()`-hook */
@@ -1,4 +1,4 @@
1
- import { AlignmentProp } from '~/lib/types';
1
+ import { AlignmentProp } from './../../types';
2
2
  import React from 'react';
3
3
  /**
4
4
  * Maak een ScrollArea om in een bepaalde richting te kunnen scrollen. De scrollareas maken gebruik van flexbox.
@@ -1,4 +1,4 @@
1
- import { TagSizeProp } from '~/lib/types';
1
+ import { TagSizeProp } from './../../types';
2
2
  import React from 'react';
3
3
  type SectionPropsType = {
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import { KeyOf, StrictOmit } from '~/lib/types';
1
+ import { StrictOmit } from './../../types';
2
2
  import React from 'react';
3
3
  type SimpleTableProps<T extends unknown = unknown> = {
4
4
  id?: string;
@@ -10,11 +10,11 @@ type SimpleTableProps<T extends unknown = unknown> = {
10
10
  * - `TableColProps`: naam van de kolom en de object-key die daarbij hoort. Als name undefined, wordt de key genomen
11
11
  * - `undefined`: alle object keys worden gebruikt en getoont
12
12
  */
13
- columns?: KeyOf<T>[] | SimpleTableColProps<T>[];
13
+ columns?: (keyof T)[] | SimpleTableColProps<T>[];
14
14
  /** De data van tabel: een array objects */
15
15
  data: T[];
16
16
  /** Waarmee moet een rij worden geidentificeerd. Anders wordt index gebruikt, liever niet: react-performance */
17
- rowIdentifier: KeyOf<T> | ((item: T) => string | number);
17
+ rowIdentifier: keyof T | ((item: T) => string | number);
18
18
  /** Is de tabel narrow ? (default false) */
19
19
  narrow?: boolean;
20
20
  /** Is de tabel striped ? (default false) */
@@ -45,7 +45,7 @@ type SimpleTableColProps<T extends unknown = unknown> = {
45
45
  * - Als string: object[value] geeft de waarde
46
46
  * - Als function: eigen function om de value te zetten
47
47
  */
48
- value: KeyOf<T> | ((v: T) => string | React.ReactNode);
48
+ value: keyof T | ((v: T) => string | React.ReactNode);
49
49
  hidden?: boolean;
50
50
  };
51
51
  /**
@@ -1,4 +1,4 @@
1
- import { SizeProp } from '~/lib/types';
1
+ import { SizeProp } from './../../types';
2
2
  import React from 'react';
3
3
  type StatusType = 'active' | 'completed' | 'error' | 'pending';
4
4
  type StepChoiceType = 'neighbours' | 'disabled' | 'up' | 'down' | 'allowed';
@@ -1,4 +1,4 @@
1
- import { SizeProp, AlignmentProp, StrictOmit } from '~/lib/types';
1
+ import { SizeProp, AlignmentProp, StrictOmit } from './../../types';
2
2
  import React from 'react';
3
3
  export type TabBarProps = {
4
4
  /** Tab grootte. (default = 'm') */
@@ -1,4 +1,4 @@
1
- import { ColorProp, TagSizeProp, AlignmentProp } from '~/lib/types';
1
+ import { ColorProp, TagSizeProp, AlignmentProp } from './../../types';
2
2
  import React from 'react';
3
3
  export type TagProps = {
4
4
  /** Content van de tag */
@@ -1,5 +1,5 @@
1
1
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- import { AlignmentProp, ColorProp, TagSizeProp } from '~/lib/types';
2
+ import { AlignmentProp, ColorProp, TagSizeProp } from './../../types';
3
3
  type TimeLineProps = {
4
4
  id?: string;
5
5
  /** Alignment van de timeline (default = 'l', left) */
@@ -1,4 +1,4 @@
1
- import { AlignmentProp, SizeProp } from '~/lib/types';
1
+ import { AlignmentProp, SizeProp } from './../../types';
2
2
  import React from 'react';
3
3
  type ToggleBarProps = {
4
4
  /** De beginwaarde (default = undefined)
@@ -1,4 +1,4 @@
1
- import { PositionProp } from '~/lib/index';
1
+ import { PositionProp } from './../..';
2
2
  import React from 'react';
3
3
  /** actions die de tooltip kan doen */
4
4
  type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { KeyOf, StrictOmit } from '~/lib/types';
2
+ import { StrictOmit } from './../../types';
3
3
  /** De basis-props voor de nodes en de items */
4
4
  type BaseProps = {
5
5
  /** het path naar deze node*/
@@ -29,7 +29,7 @@ type TreeViewNode<T extends unknown = string> = {
29
29
  label: string | ((v: T) => string);
30
30
  /** hoe moeten we het item identificeren (te gebruiken als `key` in `.map()`).
31
31
  * Default ='value', die werkt alleen voor strings. Voor een ander type moet je een key of een functie geven. */
32
- childIdentifier?: 'value' | KeyOf<T> | ((item: T) => string);
32
+ childIdentifier?: 'value' | keyof T | ((item: T) => string);
33
33
  /** de child-items van deze tree node */
34
34
  items?: Array<TreeViewNode>;
35
35
  /** onclick-callback van de node
@@ -1,5 +1,5 @@
1
1
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- import { ColorProp } from '~/lib/types';
2
+ import { ColorProp } from './../../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 { ColorSchemeType } from '~/lib/types';
1
+ import { ColorSchemeType } from './../../types';
2
2
  import React from 'react';
3
3
  import { OptionalDefaultsType } from '../DefaultsProvider/DefaultsProvider';
4
4
  type AppProviderProps = {
@@ -1,4 +1,4 @@
1
- import { ColorSchemeType } from '~/lib/types';
1
+ import { ColorSchemeType } from './../../types';
2
2
  import React from 'react';
3
3
  export declare const ColorSchemeContext: React.Context<{
4
4
  scheme: ColorSchemeType;
@@ -1,4 +1,4 @@
1
- import { SizeProp, DirectionProp, AlignmentProp, ColorProp, TagSizeProp } from '~/lib/types';
1
+ import { SizeProp, DirectionProp, AlignmentProp, ColorProp, TagSizeProp } from './../../types';
2
2
  import React from 'react';
3
3
  type InputSettings = {
4
4
  /** default size setting (`m`) */
@@ -1,4 +1,4 @@
1
- import { ColorProp } from '~/lib/types';
1
+ import { ColorProp } from './../../types';
2
2
  import React from 'react';
3
3
  export type NotifierProviderProps = {
4
4
  /** De child-components die de notifier mogen gebruiken */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
3
- import { TextInputProps } from '~/lib/forms/Text/TextInput';
4
- import { StrictOmit } from '~/lib/types';
3
+ import { TextInputProps } from './../../forms/Text/TextInput';
4
+ import { StrictOmit } from './../../types';
5
5
  type State = {
6
6
  show: boolean;
7
7
  content: string | React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { StrictOmit, ColorProp } from '~/lib/types';
1
+ import { StrictOmit, ColorProp } from './../../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 '~/lib/types';
2
+ import { StrictOmit, AutoCompleteProp } from './../../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 '~/lib/types';
1
+ import { StrictOmit, AutoCompleteProp } from './../../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 '~/lib/types';
1
+ import { StrictOmit } from './../../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`) */
@@ -21,10 +21,12 @@ type CurrencyInputProps = StrictOmit<InputPropsType<number>, 'keyboardType' | 'p
21
21
  allowNegativeValue?: boolean;
22
22
  /** value-changed callback met de nieuwe waarde van de input. Kan direct met de `setX()` van `const [x, setX] = React.useState()` worden gebruikt
23
23
  * @example
24
- * const [x, setX] = React.useState<[number, string]>([0, '0']);
24
+ * const [x, setX] = React.useState<number>(0);
25
25
  * return <MyCurrencyInput value={x} onValueChange={setX} {...props} />
26
26
  */
27
27
  onValueChanged?: (value: number) => void | Promise<void>;
28
+ /** value-changed callback met de nieuwe string-waarde van de input. */
29
+ onStringValueChanged?: (value: string) => void | Promise<void>;
28
30
  };
29
31
  /** Een input speciaal voor bedragen. Geeft standaard een eur-teken weer met daarachter het ingevoerde bedrag.
30
32
  * Het bedrag wordt als number-string-tuple opgeslagen, zodat het ook met een `setX()` van `const [x, setX] = React.useState()` kan worden gebruikt.
@@ -42,6 +44,6 @@ type CurrencyInputProps = StrictOmit<InputPropsType<number>, 'keyboardType' | 'p
42
44
  * const [x, setX] = React.useState<string>('0');
43
45
  * <CurrencyInput value={x} onValueChanged={([strVal, _numVal]) => setX(strVal)} />
44
46
  */
45
- declare function CurrencyInput({ allowNegativeValue, placeholder, helpTag, errorMessage, infoMessage, label, disabled, title, name, value, required, showRequiredOnLabel, spellCheck, id, autoComplete, max, min, inputRef, readonly, step, autofocus, hideIconRight, infoData, form, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onValueChanged, size: sizeProp, alignment: alignmentProp, direction: directionProp, labelHidden, loading, icon, suffix, prefix, decimalScale, decimalSeparator, groupSeparator, }: CurrencyInputProps): import("react/jsx-runtime").JSX.Element;
47
+ declare function CurrencyInput({ allowNegativeValue, placeholder, helpTag, errorMessage, infoMessage, label, disabled, title, name, value, required, showRequiredOnLabel, spellCheck, id, autoComplete, max, min, inputRef, readonly, step, autofocus, hideIconRight, infoData, form, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onValueChanged, onStringValueChanged, size: sizeProp, alignment: alignmentProp, direction: directionProp, labelHidden, loading, icon, suffix, prefix, decimalScale, decimalSeparator, groupSeparator, }: CurrencyInputProps): import("react/jsx-runtime").JSX.Element;
46
48
  export { CurrencyInput };
47
49
  export type { CurrencyInputProps };
@@ -1,5 +1,5 @@
1
- import { StrictOmit } from '~/lib/types';
2
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { StrictOmit } from './../../types';
2
+ import { JSDateTime } from './../../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 '~/lib/types';
2
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { StrictOmit } from './../../types';
2
+ import { JSDateTime } from './../../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 '~/lib/types';
2
- import { JSDateTime } from '~/lib/utils/JSDateTime.class';
1
+ import { StrictOmit } from './../../types';
2
+ import { JSDateTime } from './../../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) */
@@ -1,4 +1,4 @@
1
- import { StrictOmit } from '~/lib/types';
1
+ import { StrictOmit } from './../../types';
2
2
  import React from 'react';
3
3
  import { InputPropsType, InputStylingPropsType, InputErrorProps } from '../Input';
4
4
  type FileInputValue = {
@@ -1,5 +1,5 @@
1
1
  import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- import { AlignmentProp, DirectionProp, AutoCompleteProp, KeyboardTypeProp, StrictOmit, SizeProp } from '~/lib/types';
2
+ import { AlignmentProp, DirectionProp, AutoCompleteProp, KeyboardTypeProp, StrictOmit, SizeProp } from './../types';
3
3
  import React from 'react';
4
4
  import { MonthInputString } from './Periodes/MonthInput';
5
5
  import { WeekInputString } from './Periodes/WeekInput';
@@ -10,8 +10,8 @@ interface MaskedInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
10
10
  onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
11
11
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
12
12
  }
13
- type Mask = Array<string | RegExp> | ((value: string, config?: any) => Array<string | RegExp> | false);
14
- interface ConformToMaskConfig {
13
+ export type Mask = Array<string | RegExp> | ((value: string, config?: any) => Array<string | RegExp> | false);
14
+ export interface ConformToMaskConfig {
15
15
  guide?: boolean;
16
16
  previousConformedValue?: string;
17
17
  placeholderChar?: string;
@@ -26,7 +26,7 @@ interface ConformToMaskResult {
26
26
  };
27
27
  }
28
28
  export declare const MaskedInput: React.ForwardRefExoticComponent<MaskedInputProps & React.RefAttributes<HTMLInputElement>>;
29
- export default function conformToMask(rawValue: string | undefined, mask: Mask, config?: ConformToMaskConfig): ConformToMaskResult;
29
+ export declare function conformToMask(rawValue: string | undefined, mask: Mask, config?: ConformToMaskConfig): ConformToMaskResult;
30
30
  export declare function createNumberMask({ prefix, suffix, includeThousandsSeparator, thousandsSeparatorSymbol, allowDecimal, decimalSymbol, decimalLimit, requireDecimal, allowNegative, allowLeadingZeroes, integerLimit, }?: {
31
31
  prefix?: string | undefined;
32
32
  suffix?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { StrictOmit } from '~/lib/types';
1
+ import { StrictOmit } from './../../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 '~/lib/types';
1
+ import { StrictOmit } from './../../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 '~/lib/types';
1
+ import { StrictOmit, HexColor, RGBColor, HSLColor } from './../../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 '~/lib/types';
1
+ import { StrictOmit } from './../../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 '~/lib/types';
1
+ import { StrictOmit } from './../../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 } from '~/lib/types';
1
+ import { StrictOmit } from './../../types';
2
2
  import { InputPropsType, InputStylingPropsType } from '../Input';
3
3
  /** WeekInput: input voor een weeknummer (format: yyyy-MM)
4
4
  * -1e getal: jaartal
@@ -1,4 +1,4 @@
1
- import { StrictOmit } from '~/lib/types';
1
+ import { StrictOmit } from './../../types';
2
2
  import { InputPropsType, InputStylingPropsType } from '../Input';
3
3
  /** WeekInput: input voor een weeknummer (format: yyyy-Www)
4
4
  * -1e getal: jaartal
@@ -1,4 +1,4 @@
1
- import { StrictOmit, DirectionProp, ColorProp } from '~/lib/types';
1
+ import { StrictOmit, DirectionProp, ColorProp } from './../../types';
2
2
  import React from 'react';
3
3
  import { InputValueType, InputStylingPropsType, InputErrorProps, InputPropsType } from '../Input';
4
4
  type RBValueType = InputValueType | {};