@enviabybus/react-utility-belt 2.4.2 → 2.5.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 (94) hide show
  1. package/dist/chunks/http.error.0pMVpraj.js +2 -0
  2. package/dist/chunks/http.error.a7ylLT2G.js +75 -0
  3. package/dist/chunks/parser.helper.BHm3KRPh.js +42 -0
  4. package/dist/chunks/parser.helper.BKRe6p7c.js +1 -0
  5. package/dist/chunks/services.helper.-kkjd_CH.js +1 -0
  6. package/dist/chunks/services.helper.DjoudiHA.js +74 -0
  7. package/dist/components.cjs.js +1 -0
  8. package/dist/components.d.ts +1 -0
  9. package/dist/components.es.js +614 -0
  10. package/dist/errors.cjs.js +1 -2
  11. package/dist/errors.es.js +15 -72
  12. package/dist/helpers.cjs.js +3 -1
  13. package/dist/helpers.es.js +1469 -63
  14. package/dist/services.cjs.js +1 -10
  15. package/dist/services.es.js +317 -2178
  16. package/dist/src/components/form/AutocompleteField.d.ts +35 -0
  17. package/dist/src/components/form/AutocompleteField.d.ts.map +1 -0
  18. package/dist/src/components/form/BooleanSelectField.d.ts +10 -0
  19. package/dist/src/components/form/BooleanSelectField.d.ts.map +1 -0
  20. package/dist/src/components/form/CheckboxField.d.ts +40 -0
  21. package/dist/src/components/form/CheckboxField.d.ts.map +1 -0
  22. package/dist/src/components/form/DateTimeField.d.ts +33 -0
  23. package/dist/src/components/form/DateTimeField.d.ts.map +1 -0
  24. package/dist/src/components/form/EmailField.d.ts +8 -0
  25. package/dist/src/components/form/EmailField.d.ts.map +1 -0
  26. package/dist/src/components/form/NumberField.d.ts +10 -0
  27. package/dist/src/components/form/NumberField.d.ts.map +1 -0
  28. package/dist/src/components/form/PasswordField.d.ts +8 -0
  29. package/dist/src/components/form/PasswordField.d.ts.map +1 -0
  30. package/dist/src/components/form/RadioField.d.ts +37 -0
  31. package/dist/src/components/form/RadioField.d.ts.map +1 -0
  32. package/dist/src/components/form/SelectField.d.ts +33 -0
  33. package/dist/src/components/form/SelectField.d.ts.map +1 -0
  34. package/dist/src/components/form/SubmitButton.d.ts +20 -0
  35. package/dist/src/components/form/SubmitButton.d.ts.map +1 -0
  36. package/dist/src/components/form/TextField.d.ts +23 -0
  37. package/dist/src/components/form/TextField.d.ts.map +1 -0
  38. package/dist/src/components/form/index.d.ts +12 -0
  39. package/dist/src/components/form/index.d.ts.map +1 -0
  40. package/dist/src/components/index.d.ts +2 -0
  41. package/dist/src/components/index.d.ts.map +1 -0
  42. package/dist/src/errors/http.error.d.ts +1 -0
  43. package/dist/src/errors/http.error.d.ts.map +1 -1
  44. package/dist/src/helpers/audio.helper.d.ts +7 -0
  45. package/dist/src/helpers/audio.helper.d.ts.map +1 -0
  46. package/dist/src/helpers/currency.helper.d.ts +2 -0
  47. package/dist/src/helpers/currency.helper.d.ts.map +1 -0
  48. package/dist/src/helpers/date.helper.d.ts +12 -0
  49. package/dist/src/helpers/date.helper.d.ts.map +1 -0
  50. package/dist/src/helpers/external-storage.helper.d.ts +7 -0
  51. package/dist/src/helpers/external-storage.helper.d.ts.map +1 -0
  52. package/dist/src/helpers/file.helper.d.ts +8 -0
  53. package/dist/src/helpers/file.helper.d.ts.map +1 -0
  54. package/dist/src/helpers/graphql.helper.d.ts +5 -0
  55. package/dist/src/helpers/graphql.helper.d.ts.map +1 -0
  56. package/dist/src/helpers/http.helper.d.ts +23 -1
  57. package/dist/src/helpers/http.helper.d.ts.map +1 -1
  58. package/dist/src/helpers/index.d.ts +14 -0
  59. package/dist/src/helpers/index.d.ts.map +1 -1
  60. package/dist/src/helpers/interaction.helper.d.ts +7 -0
  61. package/dist/src/helpers/interaction.helper.d.ts.map +1 -0
  62. package/dist/src/helpers/mask.helper.d.ts +6 -0
  63. package/dist/src/helpers/mask.helper.d.ts.map +1 -0
  64. package/dist/src/helpers/measurement.helper.d.ts +10 -0
  65. package/dist/src/helpers/measurement.helper.d.ts.map +1 -0
  66. package/dist/src/helpers/navigation.helper.d.ts +5 -0
  67. package/dist/src/helpers/navigation.helper.d.ts.map +1 -0
  68. package/dist/src/helpers/object.helper.d.ts +4 -0
  69. package/dist/src/helpers/object.helper.d.ts.map +1 -0
  70. package/dist/src/helpers/pagination.helper.d.ts +2 -0
  71. package/dist/src/helpers/pagination.helper.d.ts.map +1 -0
  72. package/dist/src/helpers/parser.helper.d.ts +7 -0
  73. package/dist/src/helpers/parser.helper.d.ts.map +1 -0
  74. package/dist/src/helpers/version.helper.d.ts +7 -0
  75. package/dist/src/helpers/version.helper.d.ts.map +1 -0
  76. package/dist/src/services/tracker/posthog.adapter.d.ts.map +1 -1
  77. package/dist/src/services/tracker/tracker.service.d.ts +2 -1
  78. package/dist/src/services/tracker/tracker.service.d.ts.map +1 -1
  79. package/dist/src/types/form.d.ts +12 -0
  80. package/dist/src/types/form.d.ts.map +1 -0
  81. package/dist/src/types/graphql.d.ts +16 -0
  82. package/dist/src/types/graphql.d.ts.map +1 -0
  83. package/dist/src/types/helpers.d.ts +1 -0
  84. package/dist/src/types/helpers.d.ts.map +1 -1
  85. package/dist/src/types/index.d.ts +4 -0
  86. package/dist/src/types/index.d.ts.map +1 -1
  87. package/dist/src/types/measurements.d.ts +10 -0
  88. package/dist/src/types/measurements.d.ts.map +1 -0
  89. package/dist/types.cjs.js +1 -1
  90. package/dist/types.es.js +5 -1
  91. package/dist/vite.config.d.ts.map +1 -1
  92. package/package.json +16 -2
  93. package/dist/chunks/services.helper.BhBSTY1M.js +0 -3741
  94. package/dist/chunks/services.helper.DolZWkEs.js +0 -47
@@ -0,0 +1,35 @@
1
+ import { Autocomplete as MuiAutocomplete } from '@mui/material';
2
+ import { ComponentProps, FC } from 'react';
3
+ import { FormFieldProps, FormStructure } from '../../types';
4
+
5
+ type ExposedProps = 'sx' | 'fullWidth';
6
+ export declare namespace AutocompleteFieldProps {
7
+ type AutocompleteProps = Omit<ComponentProps<typeof MuiAutocomplete>, 'options' | 'renderInput' | 'onChange' | 'getOptionLabel' | 'isOptionEqualToValue' | 'multiple' | 'freeSolo' | 'getOptionDisabled'>;
8
+ type AutocompleteOption = {
9
+ label: string;
10
+ value: string;
11
+ enabled?: boolean;
12
+ };
13
+ type OptionProps<Option extends AutocompleteOption = AutocompleteOption> = {
14
+ option: Option;
15
+ };
16
+ type MainProps<Form extends FormStructure, Value, Option extends AutocompleteOption = AutocompleteOption> = FormFieldProps<Form> & Pick<AutocompleteProps, ExposedProps> & {
17
+ label?: string;
18
+ options: Option[];
19
+ getOptionLabel?: (option: Option) => string;
20
+ getOptionDisabled?: (option: Option) => boolean;
21
+ transform?: (value: string) => Value;
22
+ serialize?: (value: Value) => string;
23
+ allowAnyText?: boolean;
24
+ multiple?: boolean;
25
+ helperText?: string;
26
+ Autocomplete?: FC<ComponentProps<typeof MuiAutocomplete>>;
27
+ AutocompleteProps?: Omit<AutocompleteProps, ExposedProps>;
28
+ };
29
+ }
30
+ export declare const AutocompleteField: {
31
+ Autocomplete: typeof MuiAutocomplete;
32
+ Main: <Form extends FormStructure, Value, Option extends AutocompleteFieldProps.AutocompleteOption = AutocompleteFieldProps.AutocompleteOption>({ Autocomplete, AutocompleteProps, name, options, label, sx, getOptionLabel, getOptionDisabled, transform, serialize, allowAnyText, multiple, fullWidth, helperText, }: AutocompleteFieldProps.MainProps<Form, Value, Option>) => import("react/jsx-runtime").JSX.Element;
33
+ };
34
+ export {};
35
+ //# sourceMappingURL=AutocompleteField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutocompleteField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/AutocompleteField.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,eAAe,EAGhC,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAY,aAAa,EAAE,MAAM,SAAS,CAAC;AAElE,KAAK,YAAY,GAAG,IAAI,GAAG,WAAW,CAAC;AAOvC,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,iBAAiB,GAAG,IAAI,CAClC,cAAc,CAAC,OAAO,eAAe,CAAC,EACpC,SAAS,GACT,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,sBAAsB,GACtB,UAAU,GACV,UAAU,GACV,mBAAmB,CACtB,CAAC;IAEF,KAAY,kBAAkB,GAAG;QAC/B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IAEF,KAAY,WAAW,CACrB,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,IACpD;QACF,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,KAAY,SAAS,CACnB,IAAI,SAAS,aAAa,EAC1B,KAAK,EACL,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,IACpD,cAAc,CAAC,IAAI,CAAC,GACtB,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG;QACtC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;QAC5C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;QAChD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC;QACrC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;QACrC,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;QAC1D,iBAAiB,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;KAC3D,CAAC;CACL;AAiHD,eAAO,MAAM,iBAAiB;;WApG5B,IAAI,SAAS,aAAa,EAC1B,KAAK,EACL,MAAM,SAAS,sBAAsB,CAAC,kBAAkB,sNAqBvD,sBAAsB,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC;CAgFvD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { FormStructure } from '../../types';
3
+ import { SelectFieldProps } from './SelectField';
4
+
5
+ type BooleanSelectFieldProps = Omit<SelectFieldProps.MainProps<FormStructure, boolean | null>, 'options' | 'getKey' | 'transform' | 'serialize'> & {
6
+ isOptional?: boolean;
7
+ };
8
+ export declare const BooleanSelectField: FC<BooleanSelectFieldProps>;
9
+ export {};
10
+ //# sourceMappingURL=BooleanSelectField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BooleanSelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/BooleanSelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,KAAK,uBAAuB,GAAG,IAAI,CACjC,gBAAgB,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC,EACzD,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CACjD,GAAG;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAQF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAc1D,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Checkbox as MuiCheckbox } from '@mui/material';
2
+ import { ComponentProps, FC } from 'react';
3
+ import { FormArrayFieldProps, FormFieldProps, FormStructure } from '../../types';
4
+
5
+ type ExposedProps = 'sx' | 'disabled';
6
+ export declare namespace CheckboxFieldProps {
7
+ type BaseProps = ComponentProps<typeof MuiCheckbox>;
8
+ export type CheckboxValue = string | number | boolean;
9
+ export type CheckboxGroupOption = Pick<CheckboxProps<Exclude<CheckboxValue, boolean>>, 'label' | 'value' | 'disabled'>;
10
+ export type CheckboxProps<Value extends CheckboxValue = CheckboxValue> = Pick<BaseProps, ExposedProps> & {
11
+ value: Value;
12
+ label: string | React.ReactNode;
13
+ checked?: boolean;
14
+ onChange?: (value: Value) => void;
15
+ Checkbox?: FC<BaseProps>;
16
+ CheckboxProps?: Omit<BaseProps, 'value' | 'checked' | 'onChange' | ExposedProps>;
17
+ };
18
+ export type GroupProps<Form extends FormStructure> = FormArrayFieldProps<Form> & Pick<BaseProps, ExposedProps> & {
19
+ label?: string | React.ReactNode;
20
+ helperText?: string;
21
+ options: CheckboxGroupOption[];
22
+ children?: (renderArgs: {
23
+ options: CheckboxGroupOption[];
24
+ buildProps: (option: CheckboxGroupOption) => CheckboxProps<Exclude<CheckboxValue, boolean>>;
25
+ }) => React.ReactNode;
26
+ Checkbox?: FC<CheckboxProps<Exclude<CheckboxValue, boolean>>>;
27
+ CheckboxProps?: CheckboxProps['CheckboxProps'];
28
+ };
29
+ export type MainProps<Form extends FormStructure> = FormFieldProps<Form> & Omit<CheckboxProps, 'checked' | 'onChange' | 'Checkbox'> & {
30
+ Checkbox?: FC<CheckboxProps>;
31
+ };
32
+ export {};
33
+ }
34
+ export declare const CheckboxField: {
35
+ Checkbox: <V extends CheckboxFieldProps.CheckboxValue>({ value, label, checked, onChange, CheckboxProps, Checkbox, }: CheckboxFieldProps.CheckboxProps<V>) => import("react/jsx-runtime").JSX.Element;
36
+ Group: <Form extends FormStructure>({ CheckboxProps, Checkbox, name, disabled, sx, options, label, children, helperText: helperTextProp, }: CheckboxFieldProps.GroupProps<Form>) => import("react/jsx-runtime").JSX.Element;
37
+ Main: <Form extends FormStructure>({ Checkbox, CheckboxProps, name, label, value, disabled, sx, }: CheckboxFieldProps.MainProps<Form>) => import("react/jsx-runtime").JSX.Element;
38
+ };
39
+ export {};
40
+ //# sourceMappingURL=CheckboxField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/CheckboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,QAAQ,IAAI,WAAW,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQ3C,OAAO,EACL,mBAAmB,EAEnB,cAAc,EAEd,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,KAAK,YAAY,GAAG,IAAI,GAAG,UAAU,CAAC;AAEtC,yBAAiB,kBAAkB,CAAC;IAClC,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;IAEpD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAEtD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,aAAa,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EAC9C,OAAO,GAAG,OAAO,GAAG,UAAU,CAC/B,CAAC;IAEF,MAAM,MAAM,aAAa,CAAC,KAAK,SAAS,aAAa,GAAG,aAAa,IAAI,IAAI,CAC3E,SAAS,EACT,YAAY,CACb,GAAG;QACF,KAAK,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;QAChC,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QAClC,QAAQ,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC;QACzB,aAAa,CAAC,EAAE,IAAI,CAClB,SAAS,EACT,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAChD,CAAC;KACH,CAAC;IAEF,MAAM,MAAM,UAAU,CAAC,IAAI,SAAS,aAAa,IAC/C,mBAAmB,CAAC,IAAI,CAAC,GACvB,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG;QAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,mBAAmB,EAAE,CAAC;QAC/B,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE;YACtB,OAAO,EAAE,mBAAmB,EAAE,CAAC;YAC/B,UAAU,EAAE,CACV,MAAM,EAAE,mBAAmB,KACxB,aAAa,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;SACrD,KAAK,KAAK,CAAC,SAAS,CAAC;QACtB,QAAQ,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QAC9D,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;KAChD,CAAC;IAEN,MAAM,MAAM,SAAS,CAAC,IAAI,SAAS,aAAa,IAAI,cAAc,CAAC,IAAI,CAAC,GACtE,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC,GAAG;QACzD,QAAQ,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC;KAC9B,CAAC;;CACL;AAqJD,eAAO,MAAM,aAAa;eAnJC,CAAC,SAAS,kBAAkB,CAAC,aAAa,iEAOlE,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC;YAoBd,IAAI,SAAS,aAAa,0GAc/C,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC;WAuEf,IAAI,SAAS,aAAa,kEAW9C,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC;CA4BpC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { DateTimePicker as MuiDateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
2
+ import { ComponentProps, FC, Ref } from 'react';
3
+ import { FormFieldProps, FormStructure } from '../../types';
4
+
5
+ type ExposedProps = 'sx' | 'fullWidth' | 'label' | 'helperText';
6
+ export declare namespace DateTimeFieldProps {
7
+ type BaseComponentProps = ComponentProps<typeof MuiDateTimePicker>;
8
+ export type DateTimePickerProps = Omit<BaseComponentProps, 'error' | 'onChange' | 'value' | 'slotProps'> & {
9
+ hasErrors?: boolean;
10
+ errorMessage?: string;
11
+ helperText?: string;
12
+ forwardRef?: Ref<any>;
13
+ value?: Date | null;
14
+ onChange?: (value: Date | null) => void;
15
+ fullWidth?: boolean;
16
+ slotProps?: Omit<BaseComponentProps['slotProps'], 'textField'> & {
17
+ textField?: Omit<NonNullable<BaseComponentProps['slotProps']>['textField'], 'error' | 'helperText' | 'inputRef'>;
18
+ };
19
+ };
20
+ export type MainProps<Form extends FormStructure> = FormFieldProps<Form> & Pick<DateTimePickerProps, ExposedProps> & {
21
+ DateTimePicker?: FC<DateTimePickerProps>;
22
+ DateTimePickerProps?: Omit<DateTimePickerProps, ExposedProps>;
23
+ };
24
+ export {};
25
+ }
26
+ export declare const DateTimeField: {
27
+ DatePicker: ({ views, format, ...props }: DateTimeFieldProps.DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
28
+ DateTimePicker: ({ hasErrors, format, ampm, views, errorMessage, forwardRef, value, onChange, fullWidth, slotProps, helperText, ...datePickerProps }: DateTimeFieldProps.DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
29
+ Main: <Form extends FormStructure>({ DateTimePicker, DateTimePickerProps, name, sx, fullWidth, label, helperText, }: DateTimeFieldProps.MainProps<Form>) => import("react/jsx-runtime").JSX.Element;
30
+ TimePicker: ({ views, format, ...props }: DateTimeFieldProps.DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
31
+ };
32
+ export {};
33
+ //# sourceMappingURL=DateTimeField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateTimeField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/DateTimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAY,aAAa,EAAE,MAAM,SAAS,CAAC;AAElE,KAAK,YAAY,GAAG,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;AAEhE,yBAAiB,kBAAkB,CAAC;IAClC,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAEnE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,kBAAkB,EAClB,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAC7C,GAAG;QACF,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;QACtB,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;QACxC,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,SAAS,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,GAAG;YAC/D,SAAS,CAAC,EAAE,IAAI,CACd,WAAW,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,EACzD,OAAO,GAAG,YAAY,GAAG,UAAU,CACpC,CAAC;SACH,CAAC;KACH,CAAC;IAEF,MAAM,MAAM,SAAS,CAAC,IAAI,SAAS,aAAa,IAAI,cAAc,CAAC,IAAI,CAAC,GACtE,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,GAAG;QACxC,cAAc,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC;QACzC,mBAAmB,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;KAC/D,CAAC;;CACL;AAgGD,eAAO,MAAM,aAAa;8CAjDvB,kBAAkB,CAAC,mBAAmB;0JAhCtC,kBAAkB,CAAC,mBAAmB;WA4ClB,IAAI,SAAS,aAAa,oFAW9C,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC;8CAflC,kBAAkB,CAAC,mBAAmB;CA8CxC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FormStructure } from '../../types';
2
+ import { TextFieldProps } from './TextField';
3
+
4
+ export type EmailFieldProps<Form extends FormStructure> = Omit<TextFieldProps.MainProps<Form>, 'InputProps'> & {
5
+ InputProps?: Omit<TextFieldProps.InputProps, 'autoCapitalize' | 'autoCompleteType' | 'keyboardType'>;
6
+ };
7
+ export declare const EmailField: <Form extends FormStructure>({ InputProps, ...props }: EmailFieldProps<Form>) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=EmailField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/EmailField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,eAAe,CAAC,IAAI,SAAS,aAAa,IAAI,IAAI,CAC5D,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAC9B,YAAY,CACb,GAAG;IACF,UAAU,CAAC,EAAE,IAAI,CACf,cAAc,CAAC,UAAU,EACzB,gBAAgB,GAAG,kBAAkB,GAAG,cAAc,CACvD,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,IAAI,SAAS,aAAa,EAAE,0BAGpD,eAAe,CAAC,IAAI,CAAC,4CASvB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { FormStructure } from '../../types/form';
3
+ import { TextFieldProps } from './TextField';
4
+
5
+ type NumberFieldProps = Omit<TextFieldProps.MainProps<FormStructure>, 'applyMask' | 'removeMask' | 'transform' | 'serialize'> & {
6
+ hideNumberArrows?: boolean;
7
+ };
8
+ export declare const NumberField: FC<NumberFieldProps>;
9
+ export {};
10
+ //# sourceMappingURL=NumberField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,KAAK,gBAAgB,GAAG,IAAI,CAC1B,cAAc,CAAC,SAAS,CAAC,aAAa,CAAC,EACvC,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,CACvD,GAAG;IACF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsB5C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FormStructure } from '../../types';
2
+ import { TextFieldProps } from './TextField';
3
+
4
+ export type PasswordFieldProps<Form extends FormStructure> = Omit<TextFieldProps.MainProps<Form>, 'InputProps'> & {
5
+ InputProps?: Omit<TextFieldProps.InputProps, 'autoCapitalize' | 'autoComplete' | 'type'>;
6
+ };
7
+ export declare const PasswordField: <Form extends FormStructure>({ InputProps, ...props }: PasswordFieldProps<Form>) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=PasswordField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PasswordField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/PasswordField.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,kBAAkB,CAAC,IAAI,SAAS,aAAa,IAAI,IAAI,CAC/D,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAC9B,YAAY,CACb,GAAG;IACF,UAAU,CAAC,EAAE,IAAI,CACf,cAAc,CAAC,UAAU,EACzB,gBAAgB,GAAG,cAAc,GAAG,MAAM,CAC3C,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,IAAI,SAAS,aAAa,EAAE,0BAGvD,kBAAkB,CAAC,IAAI,CAAC,4CA2B1B,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { Radio as MuiRadio } from '@mui/material';
2
+ import { ComponentProps, FC } from 'react';
3
+ import { FormFieldProps, FormStructure } from '../../types';
4
+ import { CheckboxFieldProps } from './CheckboxField';
5
+
6
+ type ExposedProps = 'sx' | 'disabled';
7
+ export declare namespace RadioFieldProps {
8
+ type BaseProps = ComponentProps<typeof MuiRadio>;
9
+ export type RadioValue = CheckboxFieldProps.CheckboxValue;
10
+ export type RadioOption = Pick<RadioProps, 'label' | 'value' | 'disabled'>;
11
+ export type RadioProps = Pick<BaseProps, ExposedProps> & {
12
+ value: RadioValue;
13
+ label: string | React.ReactNode;
14
+ checked?: boolean;
15
+ onChange?: (value: RadioValue) => void;
16
+ Radio?: FC<BaseProps>;
17
+ RadioProps?: Omit<BaseProps, 'value' | 'checked' | 'onChange' | ExposedProps>;
18
+ };
19
+ export type MainProps<Form extends FormStructure> = FormFieldProps<Form> & Pick<BaseProps, ExposedProps> & {
20
+ label?: string | React.ReactNode;
21
+ helperText?: string;
22
+ options: RadioOption[];
23
+ children?: (renderArgs: {
24
+ options: RadioOption[];
25
+ buildProps: (option: RadioOption) => RadioProps;
26
+ }) => React.ReactNode;
27
+ Radio?: FC<RadioProps>;
28
+ RadioProps?: RadioProps['RadioProps'];
29
+ };
30
+ export {};
31
+ }
32
+ export declare const RadioField: {
33
+ Main: <Form extends FormStructure>({ RadioProps, Radio, name, disabled, sx, options, label, helperText: helperTextProp, children, }: RadioFieldProps.MainProps<Form>) => import("react/jsx-runtime").JSX.Element;
34
+ Radio: ({ value, label, checked, onChange, RadioProps, Radio, }: RadioFieldProps.RadioProps) => import("react/jsx-runtime").JSX.Element;
35
+ };
36
+ export {};
37
+ //# sourceMappingURL=RadioField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/RadioField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,IAAI,QAAQ,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAY,aAAa,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,KAAK,YAAY,GAAG,IAAI,GAAG,UAAU,CAAC;AAEtC,yBAAiB,eAAe,CAAC;IAC/B,KAAK,SAAS,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;IAEjD,MAAM,MAAM,UAAU,GAAG,kBAAkB,CAAC,aAAa,CAAC;IAC1D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC;IAE3E,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG;QACvD,KAAK,EAAE,UAAU,CAAC;QAClB,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;QAChC,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;QACvC,KAAK,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC;QACtB,UAAU,CAAC,EAAE,IAAI,CACf,SAAS,EACT,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAChD,CAAC;KACH,CAAC;IAEF,MAAM,MAAM,SAAS,CAAC,IAAI,SAAS,aAAa,IAAI,cAAc,CAAC,IAAI,CAAC,GACtE,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG;QAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,WAAW,EAAE,CAAC;QACvB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE;YACtB,OAAO,EAAE,WAAW,EAAE,CAAC;YACvB,UAAU,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,UAAU,CAAC;SACjD,KAAK,KAAK,CAAC,SAAS,CAAC;QACtB,KAAK,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC;QACvB,UAAU,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;KACvC,CAAC;;CACL;AAmGD,eAAO,MAAM,UAAU;WAtEA,IAAI,SAAS,aAAa,oGAc9C,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC;qEAlC/B,eAAe,CAAC,UAAU;CA6F5B,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { Select as MuiSelect } from '@mui/material';
2
+ import { ComponentProps, FC } from 'react';
3
+ import { FormFieldProps, FormStructure } from '../../types';
4
+
5
+ type ExposedProps = 'sx';
6
+ export declare namespace SelectFieldProps {
7
+ type SelectProps = ComponentProps<typeof MuiSelect>;
8
+ type SelectOption = {
9
+ label: string;
10
+ value: string;
11
+ };
12
+ type OptionProps<Option extends SelectOption = SelectOption> = {
13
+ option: Option;
14
+ };
15
+ type MainProps<Form extends FormStructure, Value, Option extends SelectOption = SelectOption> = FormFieldProps<Form> & Pick<SelectProps, ExposedProps> & {
16
+ label?: string;
17
+ options: Option[];
18
+ getKey?: (option: Option) => string;
19
+ transform?: (value: string) => Value;
20
+ serialize?: (value: Value) => string;
21
+ helperText?: string;
22
+ Select?: FC<SelectProps>;
23
+ SelectProps?: Omit<SelectProps, ExposedProps | 'error'>;
24
+ };
25
+ }
26
+ export declare const SelectField: {
27
+ Main: <Form extends FormStructure, Value, Option extends SelectFieldProps.SelectOption = SelectFieldProps.SelectOption>({ Select, SelectProps, name, sx, options, label, getKey, transform, serialize, helperText: helperTextProp, }: SelectFieldProps.MainProps<Form, Value, Option>) => import("react/jsx-runtime").JSX.Element;
28
+ Select: (<Value = unknown>(props: import('@mui/material').SelectProps<Value>) => React.JSX.Element) & {
29
+ muiName: string;
30
+ };
31
+ };
32
+ export {};
33
+ //# sourceMappingURL=SelectField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,MAAM,IAAI,SAAS,EAEpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,EAAE,EAAS,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAY,aAAa,EAAE,MAAM,SAAS,CAAC;AAElE,KAAK,YAAY,GAAG,IAAI,CAAC;AAEzB,yBAAiB,gBAAgB,CAAC;IAChC,KAAY,WAAW,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IAE3D,KAAY,YAAY,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5D,KAAY,WAAW,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,IAAI;QACpE,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,KAAY,SAAS,CACnB,IAAI,SAAS,aAAa,EAC1B,KAAK,EACL,MAAM,SAAS,YAAY,GAAG,YAAY,IACxC,cAAc,CAAC,IAAI,CAAC,GACtB,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG;QAChC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;QACpC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC;QACrC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;QACrC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;QACzB,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC;KACzD,CAAC;CACL;AA0ED,eAAO,MAAM,WAAW;WA/DtB,IAAI,SAAS,aAAa,EAC1B,KAAK,EACL,MAAM,SAAS,gBAAgB,CAAC,YAAY,gJAgB3C,gBAAgB,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC;;;;CAgDjD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Button as MuiButton } from '@mui/material';
2
+ import { ComponentProps, FC } from 'react';
3
+ import { FormStructure } from '../../types/form';
4
+
5
+ type ExposedProps = 'sx' | 'children' | 'disabled' | 'loading';
6
+ export declare namespace SubmitButtonProps {
7
+ type ButtonProps = ComponentProps<typeof MuiButton>;
8
+ type MainProps<Form extends FormStructure> = Pick<ButtonProps, ExposedProps> & {
9
+ onSubmit: (data: Form) => void | Promise<void>;
10
+ showLabelOnLoading?: boolean;
11
+ Button?: FC<ButtonProps>;
12
+ ButtonProps?: Omit<ButtonProps, 'onClick' | 'onSubmit' | ExposedProps>;
13
+ };
14
+ }
15
+ export declare const SubmitButton: {
16
+ Button: import('@mui/material').ExtendButtonBase<import('@mui/material').ButtonTypeMap<{}, "button">>;
17
+ Main: <Form extends FormStructure>({ Button, ButtonProps, disabled, loading, sx, children, onSubmit, showLabelOnLoading, }: SubmitButtonProps.MainProps<Form>) => import("react/jsx-runtime").JSX.Element;
18
+ };
19
+ export {};
20
+ //# sourceMappingURL=SubmitButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubmitButton.d.ts","sourceRoot":"","sources":["../../../../src/components/form/SubmitButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,KAAK,YAAY,GAAG,IAAI,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D,yBAAiB,iBAAiB,CAAC;IACjC,KAAY,WAAW,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IAE3D,KAAY,SAAS,CAAC,IAAI,SAAS,aAAa,IAAI,IAAI,CACtD,WAAW,EACX,YAAY,CACb,GAAG;QACF,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/C,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAE7B,MAAM,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;QACzB,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,UAAU,GAAG,YAAY,CAAC,CAAC;KACxE,CAAC;CACH;AAoCD,eAAO,MAAM,YAAY;;WAhCF,IAAI,SAAS,aAAa,2FAY9C,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC;CAuBnC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { TextField as MuiTextField } from '@mui/material';
2
+ import { ComponentProps, FC } from 'react';
3
+ import { FieldPathValue } from 'react-hook-form';
4
+ import { FormFieldProps, FormPath, FormStructure } from '../../types';
5
+
6
+ type ExposedProps = 'label' | 'placeholder' | 'sx' | 'helperText';
7
+ export declare namespace TextFieldProps {
8
+ type InputProps = ComponentProps<typeof MuiTextField>;
9
+ type MainProps<Form extends FormStructure> = FormFieldProps<Form> & Pick<InputProps, ExposedProps> & {
10
+ applyMask?: (value: string) => string;
11
+ removeMask?: (value: string) => string;
12
+ transform?: (value: string) => FieldPathValue<Form, FormPath<Form>>;
13
+ serialize?: (value: FieldPathValue<Form, FormPath<Form>>) => string;
14
+ Input?: FC<InputProps>;
15
+ InputProps?: Omit<InputProps, ExposedProps | 'error'>;
16
+ };
17
+ }
18
+ export declare const TextField: {
19
+ Input: typeof MuiTextField;
20
+ Main: <Form extends FormStructure>({ Input, InputProps, name, label, placeholder, helperText, sx, applyMask, removeMask, transform, serialize, }: TextFieldProps.MainProps<Form>) => import("react/jsx-runtime").JSX.Element;
21
+ };
22
+ export {};
23
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/components/form/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAe,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,cAAc,EAAiC,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAElE,KAAK,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,IAAI,GAAG,YAAY,CAAC;AAElE,yBAAiB,cAAc,CAAC;IAC9B,KAAY,UAAU,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;IAE7D,KAAY,SAAS,CAAC,IAAI,SAAS,aAAa,IAAI,cAAc,CAAC,IAAI,CAAC,GACtE,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG;QAC/B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;QACtC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;QACvC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QACpE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,CAAC;QAEpE,KAAK,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC;QACvB,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC;KACvD,CAAC;CACL;AA2DD,eAAO,MAAM,SAAS;;WAvDC,IAAI,SAAS,aAAa,iHAgB9C,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC;CA0ChC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export * from './AutocompleteField';
2
+ export * from './BooleanSelectField';
3
+ export * from './CheckboxField';
4
+ export * from './DateTimeField';
5
+ export * from './EmailField';
6
+ export * from './NumberField';
7
+ export * from './PasswordField';
8
+ export * from './RadioField';
9
+ export * from './SelectField';
10
+ export * from './SubmitButton';
11
+ export * from './TextField';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './form';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -24,6 +24,7 @@ export declare class HttpServiceError extends BaseError implements HttpServiceEr
24
24
  }
25
25
  export declare class HttpResponseHandlingError extends BaseError {
26
26
  constructor({ message }: BaseErrorAttributes);
27
+ static buildMessage(methodName: string): (error: Error) => string;
27
28
  }
28
29
  export declare class HttpClientSideError extends BaseError {
29
30
  constructor({ message }: BaseErrorAttributes);
@@ -1 +1 @@
1
- {"version":3,"file":"http.error.d.ts","sourceRoot":"","sources":["../../../src/errors/http.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,GAAG,CAAC;AAInD,oBAAY,oBAAoB;IAC9B,OAAO,uBAAuB;IAC9B,YAAY,kBAAkB;IAC9B,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB,2BAInC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG;IACjD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG;IAC7D,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC,CAAC;AAIF,qBAAa,gBACX,SAAQ,SACR,YAAW,0BAA0B;IAErC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,CAAC,EAAE,uBAAuB,CAAC;gBAEtB,EACV,IAAmC,EACnC,OAAO,EACP,OAAO,GACR,EAAE,0BAA0B;CAK9B;AAED,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,EAAE,OAAO,EAAE,EAAE,mBAAmB;CAG7C;AAED,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,EAAE,OAAO,EAAE,EAAE,mBAAmB;CAG7C"}
1
+ {"version":3,"file":"http.error.d.ts","sourceRoot":"","sources":["../../../src/errors/http.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,GAAG,CAAC;AAInD,oBAAY,oBAAoB;IAC9B,OAAO,uBAAuB;IAC9B,YAAY,kBAAkB;IAC9B,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB,2BAInC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG;IACjD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG;IAC7D,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC,CAAC;AAIF,qBAAa,gBACX,SAAQ,SACR,YAAW,0BAA0B;IAErC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,CAAC,EAAE,uBAAuB,CAAC;gBAEtB,EACV,IAAmC,EACnC,OAAO,EACP,OAAO,GACR,EAAE,0BAA0B;CAK9B;AAED,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,EAAE,OAAO,EAAE,EAAE,mBAAmB;IAI5C,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,IAC5B,OAAO,KAAK;CAKvB;AAED,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,EAAE,OAAO,EAAE,EAAE,mBAAmB;CAG7C"}
@@ -0,0 +1,7 @@
1
+ export declare const initAudioContext: () => void;
2
+ export declare const playTone: (frequency: number, duration: number, gainValue?: number) => void;
3
+ export declare const useAudioFeedback: () => {
4
+ playError: () => void;
5
+ playSuccess: () => void;
6
+ };
7
+ //# sourceMappingURL=audio.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/audio.helper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,YAS5B,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,kBAAe,SAqBhB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;CAW5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const formatCurrency: (value: number) => string;
2
+ //# sourceMappingURL=currency.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/currency.helper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAQ9C,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const formatYearMonthDay: (date: Date) => string;
2
+ export declare const formatDayMonthYear: (date: Date) => string;
3
+ export declare const formatDateTime: (date: string) => string;
4
+ export declare const formatDayMonth: (date: string) => string;
5
+ export declare const formatTime: (date: string) => string;
6
+ export declare const formatRelativeDate: (date: string, options?: {
7
+ format?: string;
8
+ } | {
9
+ sameYearFormat?: string;
10
+ differentYearFormat?: string;
11
+ }) => string;
12
+ //# sourceMappingURL=date.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/date.helper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,GAAI,MAAM,IAAI,WAA+B,CAAC;AAE7E,eAAO,MAAM,kBAAkB,GAAI,MAAM,IAAI,WAA+B,CAAC;AAE7E,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,WACC,CAAC;AAE7C,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,WAAoC,CAAC;AAEhF,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,WAAoC,CAAC;AAE5E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,EACZ,UACI;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACnB;IAAE,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAAO,KACjE,MA6BF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type ExternalStorage<T> = {
2
+ value: T | undefined;
3
+ setValue: (value: T) => void;
4
+ isInitialized: boolean;
5
+ };
6
+ export declare const createExternalStorage: <T>() => ExternalStorage<T>;
7
+ //# sourceMappingURL=external-storage.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-storage.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/external-storage.helper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC/B,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,CAAC,OAAK,eAAe,CAAC,CAAC,CAkB5D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ChangeEvent } from 'react';
2
+
3
+ export declare const openFile: (file: File | Blob | string, options?: {
4
+ shouldPrint?: boolean;
5
+ }) => Promise<void>;
6
+ export declare const parseFileToBase64: (file: File) => Promise<string>;
7
+ export declare const getFilesFromEvent: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => FileList | undefined;
8
+ //# sourceMappingURL=file.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/file.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAIpC,eAAO,MAAM,QAAQ,GACnB,MAAM,IAAI,GAAG,IAAI,GAAG,MAAM,EAC1B,UAAU;IACR,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,kBAUF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,MAAM,IAAI,oBAOjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,yBAI3D,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type FragmentDependencies = (string | string[])[];
2
+ export declare const gql: (stringChunks: TemplateStringsArray, ...expressions: unknown[]) => string;
3
+ export declare const buildFragment: (fragment: string, dependencies?: FragmentDependencies) => string[];
4
+ export declare const withFragments: (...args: string[][]) => string;
5
+ //# sourceMappingURL=graphql.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/graphql.helper.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC;AAEzD,eAAO,MAAM,GAAG,GACd,cAAc,oBAAoB,EAClC,GAAG,aAAa,OAAO,EAAE,KACxB,MAMF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,UAAU,MAAM,EAChB,eAAe,oBAAoB,aAC0B,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,GAAG,MAAM,MAAM,EAAE,EAAE,KAAG,MAGnD,CAAC"}
@@ -1,8 +1,30 @@
1
- import { HttpHeaders } from '../services';
1
+ import { ZodType } from 'zod';
2
+ import { HttpResponseHandlingError } from '../errors';
3
+ import { HttpHeaders, HttpResponse } from '../services';
4
+ import { jsonObject } from '../types';
2
5
 
3
6
  export declare const addQueryParams: (url: string, params: Record<string, string | number | boolean>) => string;
4
7
  export declare const buildAuthorizationHeader: (token: string) => HttpHeaders & {
5
8
  Authorization: string;
6
9
  };
7
10
  export declare const buildUrl: (url: string[]) => string;
11
+ export declare const isResponseJson: <T extends HttpHeaders>(response: HttpResponse<unknown, T>) => response is HttpResponse<jsonObject, T>;
12
+ export declare const isResponseBuffer: <T extends HttpHeaders>(response: HttpResponse<any, T>) => response is HttpResponse<ArrayBuffer, T>;
13
+ export declare const parseResponseToBlob: (response: HttpResponse<ArrayBuffer, HttpHeaders>) => Blob;
14
+ export declare const ensureResponseData: <T extends ZodType>(data: unknown, schema: T, { buildErrorMessage, onError, }: {
15
+ buildErrorMessage?: (error: Error) => string;
16
+ onError?: (error: HttpResponseHandlingError) => void;
17
+ }) => import('zod').infer<T>;
18
+ export declare const useUrlParams: <T extends {
19
+ [key: string]: string;
20
+ } = {
21
+ [key: string]: string;
22
+ }>(initialParams?: T) => {
23
+ clear: (key?: keyof T) => void;
24
+ get: {
25
+ (key?: undefined): Partial<T>;
26
+ (key: keyof T): string;
27
+ };
28
+ set: import('react-router').SetURLSearchParams;
29
+ };
8
30
  //# sourceMappingURL=http.helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"http.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/http.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,eAAO,MAAM,cAAc,GACzB,KAAK,MAAM,EACX,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,KAChD,MAQF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,OAAO,MAAM,KACZ,WAAW,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAEvC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,KAAG,MAKxC,CAAC"}
1
+ {"version":3,"file":"http.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/http.helper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAE9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,eAAO,MAAM,cAAc,GACzB,KAAK,MAAM,EACX,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,KAChD,MAQF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,OAAO,MAAM,KACZ,WAAW,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAEvC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,KAAG,MAKxC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,WAAW,EAClD,UAAU,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC,KACjC,QAAQ,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC,CAGA,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,WAAW,EACpD,UAAU,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC,KAC7B,QAAQ,IAAI,YAAY,CAAC,WAAW,EAAE,CAAC,CACJ,CAAC;AAEvC,eAAO,MAAM,mBAAmB,GAC9B,UAAU,YAAY,CAAC,WAAW,EAAE,WAAW,CAAC,KAC/C,IAGC,CAAC;AAEL,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,OAAO,EAClD,MAAM,OAAO,EACb,QAAQ,CAAC,EACT,iCAGG;IACD,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;IAC7C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtD,2BA2BF,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAE/D,gBAAgB,CAAC;kBASI,MAAM,CAAC;;eAYnB,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;cACvB,MAAM,CAAC,GAAG,MAAM;;;CAWzB,CAAC"}
@@ -1,5 +1,19 @@
1
1
  export * from './array.helper';
2
+ export * from './audio.helper';
2
3
  export * from './context.helper';
4
+ export * from './currency.helper';
5
+ export * from './date.helper';
6
+ export * from './external-storage.helper';
7
+ export * from './file.helper';
8
+ export * from './graphql.helper';
3
9
  export * from './http.helper';
10
+ export * from './interaction.helper';
11
+ export * from './mask.helper';
12
+ export * from './measurement.helper';
13
+ export * from './navigation.helper';
14
+ export * from './object.helper';
15
+ export * from './pagination.helper';
16
+ export * from './parser.helper';
4
17
  export * from './services.helper';
18
+ export * from './version.helper';
5
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const useOpen: (initialOpenState?: boolean) => {
2
+ close: () => void;
3
+ isOpen: boolean;
4
+ open: () => void;
5
+ toggle: () => void;
6
+ };
7
+ //# sourceMappingURL=interaction.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interaction.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/interaction.helper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,GAAI,0BAAwB;;;;;CAa/C,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type Mask = {
2
+ apply: (value: string) => string;
3
+ remove: (value: string) => string;
4
+ };
5
+ export declare const timeMask: Mask;
6
+ //# sourceMappingURL=mask.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mask.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/mask.helper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACnC,CAAC;AAQF,eAAO,MAAM,QAAQ,EAAE,IAStB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Length, Weight } from '../types';
2
+
3
+ export declare const convertMeasurement: <T extends Length | Weight>(value: number, from: T, to: T) => number;
4
+ export declare const formatLength: (value: number, unit: Length, options?: {
5
+ decimals?: number;
6
+ }) => string;
7
+ export declare const formatWeight: (value: number, unit: Weight, options?: {
8
+ decimals?: number;
9
+ }) => string;
10
+ //# sourceMappingURL=measurement.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measurement.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/measurement.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,MAAM,GAAG,MAAM,EAC1D,OAAO,MAAM,EACb,MAAM,CAAC,EACP,IAAI,CAAC,KACJ,MAAkD,CAAC;AAEtD,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,EACb,MAAM,MAAM,EACZ,UAAU;IACR,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,KACA,MAiBQ,CAAC;AAEZ,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,EACb,MAAM,MAAM,EACZ,UAAU;IACR,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,KACA,MAeQ,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const openInNewTab: (url: string, options?: {
2
+ fallback?: (url: string) => Window | null | void | Promise<Window | null | void>;
3
+ }) => Promise<Window | null>;
4
+ export declare const navigateToUrl: (url: string) => void;
5
+ //# sourceMappingURL=navigation.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/navigation.helper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EACX,UAAU;IACR,QAAQ,CAAC,EAAE,CACT,GAAG,EAAE,MAAM,KACR,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;CAC3D,KACA,OAAO,CAAC,MAAM,GAAG,IAAI,CAOvB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,SAExC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { UnionToIntersection } from '../types/helpers';
2
+
3
+ export declare const mergeObjectsInOrder: <T extends readonly Record<string, any>[]>(...objects: T) => UnionToIntersection<T[number]>;
4
+ //# sourceMappingURL=object.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/object.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAC1E,GAAG,SAAS,CAAC,KACZ,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAkC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const getOffsetFromPage: (page: number, itemsPerPage: number) => number;
2
+ //# sourceMappingURL=pagination.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/pagination.helper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,cAAc,MAAM,WAEnE,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type Parser<T> = {
2
+ serialize: (value: T | null) => string;
3
+ parse: (value: string) => T | null;
4
+ };
5
+ export declare const numberParser: Parser<number>;
6
+ export declare const booleanParser: Parser<boolean>;
7
+ //# sourceMappingURL=parser.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.helper.d.ts","sourceRoot":"","sources":["../../../src/helpers/parser.helper.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;IACtB,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,KAAK,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,CAavC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,OAAO,CAUzC,CAAC"}