@thx/controls 15.0.0 → 16.0.0-alpha.0

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 (38) hide show
  1. package/dist/date/LocalDatePicker/MaskedDateInput.d.ts +2 -2
  2. package/dist/date/LocalTimePicker/MaskedTimeInput.d.ts +2 -2
  3. package/dist/form/TForm/useTForm.d.ts +6 -6
  4. package/dist/index.js +327 -349
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/inputs/Scriptel/ScriptelContext.d.ts +2 -2
  8. package/dist/inputs/Scriptel/withScriptel.d.ts +1 -0
  9. package/dist/inputs/TableInput/DropdownCell.d.ts +1 -0
  10. package/dist/inputs/TableInput/HoverCell.d.ts +1 -0
  11. package/dist/inputs/TableInput/MoneyCell.d.ts +1 -0
  12. package/dist/inputs/TableInput/MoneyEditCell.d.ts +1 -0
  13. package/dist/inputs/TableInput/MoneySumFooter.d.ts +1 -0
  14. package/dist/inputs/TableInput/StringEditCell.d.ts +1 -0
  15. package/dist/step/stepContext.d.ts +2 -2
  16. package/package.json +6 -6
  17. package/dist/date/DatePicker/datepicker.stories.d.ts +0 -7
  18. package/dist/date/LocalDatePicker/localdatepicker.stories.d.ts +0 -8
  19. package/dist/date/LocalDatePicker/maskeddateinput.stories.d.ts +0 -5
  20. package/dist/date/LocalMonthSelect/localmonthselect.stories.d.ts +0 -6
  21. package/dist/date/LocalTimePicker/localtimepicker.stories.d.ts +0 -7
  22. package/dist/date/LocalTimePicker/maskedtimeinput.stories.d.ts +0 -7
  23. package/dist/date/MonthDayPicker/monthdaypicker.stories.d.ts +0 -7
  24. package/dist/date/MonthYearPicker/monthyearpicker.stories.d.ts +0 -8
  25. package/dist/date/YearSelect/yearselect.stories.d.ts +0 -7
  26. package/dist/form/TForm/addeditforms.stories.d.ts +0 -30
  27. package/dist/form/TForm/tform.stories.d.ts +0 -7
  28. package/dist/inputs/CreditCardInput/creditcardinput.stories.d.ts +0 -5
  29. package/dist/inputs/MaskedInput/maskedinput.stories.d.ts +0 -6
  30. package/dist/inputs/PhoneInput/phoneinput.stories.d.ts +0 -5
  31. package/dist/inputs/RadioGroup/radiogroup.stories.d.ts +0 -6
  32. package/dist/inputs/ScriptelInput/scriptelnput.stories.d.ts +0 -5
  33. package/dist/inputs/SinInput/sininput.stories.d.ts +0 -5
  34. package/dist/inputs/TableInput/main.story.d.ts +0 -7
  35. package/dist/inputs/TableInput/tableinput.stories.d.ts +0 -6
  36. package/dist/inputs/TableInput/withHover.story.d.ts +0 -7
  37. package/dist/money/MoneyCurrencyInput/moneycurrencyinput.stories.d.ts +0 -5
  38. package/dist/money/MoneyInput/moneyinput.stories.d.ts +0 -6
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { MaskedInputProps } from '../../inputs/MaskedInput';
3
3
  export interface MaskedDateInputValue {
4
4
  target: {
@@ -9,4 +9,4 @@ export interface MaskedDateInputProps {
9
9
  name?: string;
10
10
  onChange?: (value: MaskedDateInputValue) => void;
11
11
  }
12
- export declare const MaskedDateInput: React.ForwardRefExoticComponent<Pick<MaskedDateInputProps & Omit<MaskedInputProps, "onChange">, string | number> & React.RefAttributes<unknown>>;
12
+ export declare const MaskedDateInput: import("react").ForwardRefExoticComponent<Pick<MaskedDateInputProps & Omit<MaskedInputProps, "onChange">, string | number> & import("react").RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { MaskedInputProps } from '../../inputs/MaskedInput';
3
3
  export interface MaskedTimeInputValue {
4
4
  target: {
@@ -8,4 +8,4 @@ export interface MaskedTimeInputValue {
8
8
  export interface MaskedTimeInputProps {
9
9
  onChange?: (value: MaskedTimeInputValue) => void;
10
10
  }
11
- export declare const MaskedTimeInput: React.ForwardRefExoticComponent<Pick<MaskedTimeInputProps & Omit<MaskedInputProps, "onChange">, string | number> & React.RefAttributes<unknown>>;
11
+ export declare const MaskedTimeInput: import("react").ForwardRefExoticComponent<Pick<MaskedTimeInputProps & Omit<MaskedInputProps, "onChange">, string | number> & import("react").RefAttributes<unknown>>;
@@ -1,5 +1,5 @@
1
1
  import { FormikValues, FormikErrors, FormikTouched } from 'formik';
2
- import React from 'react';
2
+ import { FormEvent } from 'react';
3
3
  import type { TFormConfig } from './types';
4
4
  export declare function useTForm<Values extends FormikValues = FormikValues, InitialValues = any>(config: TFormConfig<Values, InitialValues>): {
5
5
  hasErrors: boolean;
@@ -11,18 +11,18 @@ export declare function useTForm<Values extends FormikValues = FormikValues, Ini
11
11
  formError: boolean;
12
12
  renderWarnings: () => JSX.Element | null;
13
13
  fieldError: (fieldName: keyof Values | string | number) => boolean;
14
- handleSubmit: (e?: React.FormEvent<HTMLFormElement> | undefined) => void;
14
+ handleSubmit: (e?: FormEvent<HTMLFormElement> | undefined) => void;
15
15
  initialValues: Values;
16
16
  initialErrors: FormikErrors<unknown>;
17
17
  initialTouched: FormikTouched<unknown>;
18
18
  initialStatus: any;
19
19
  handleBlur: {
20
- (e: React.FocusEvent<any>): void;
20
+ (e: import("react").FocusEvent<any, Element>): void;
21
21
  <T = any>(fieldOrEvent: T): T extends string ? (e: any) => void : void;
22
22
  };
23
23
  handleChange: {
24
- (e: React.ChangeEvent<any>): void;
25
- <T_1 = string | React.ChangeEvent<any>>(field: T_1): T_1 extends React.ChangeEvent<any> ? void : (e: string | React.ChangeEvent<any>) => void;
24
+ (e: import("react").ChangeEvent<any>): void;
25
+ <T_1 = string | import("react").ChangeEvent<any>>(field: T_1): T_1 extends import("react").ChangeEvent<any> ? void : (e: string | import("react").ChangeEvent<any>) => void;
26
26
  };
27
27
  handleReset: (e: any) => void;
28
28
  resetForm: (nextState?: Partial<import("formik").FormikState<Values>> | undefined) => void;
@@ -34,7 +34,7 @@ export declare function useTForm<Values extends FormikValues = FormikValues, Ini
34
34
  setStatus: (status: any) => void;
35
35
  setSubmitting: (isSubmitting: boolean) => void;
36
36
  setTouched: (touched: FormikTouched<Values>, shouldValidate?: boolean | undefined) => Promise<void> | Promise<FormikErrors<Values>>;
37
- setValues: (values: React.SetStateAction<Values>, shouldValidate?: boolean | undefined) => Promise<void> | Promise<FormikErrors<Values>>;
37
+ setValues: (values: import("react").SetStateAction<Values>, shouldValidate?: boolean | undefined) => Promise<void> | Promise<FormikErrors<Values>>;
38
38
  submitForm: () => Promise<any>;
39
39
  validateForm: (values?: Values | undefined) => Promise<FormikErrors<Values>>;
40
40
  validateField: (name: string) => Promise<void> | Promise<string | undefined>;