@thx/controls 16.3.0 → 17.0.0-mantine.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.
- package/dist/esm/date/LocalDatePicker/LocalDatePicker.js +11 -54
- package/dist/esm/date/LocalDatePicker/LocalDatePicker.js.map +1 -1
- package/dist/esm/date/LocalMonthSelect/LocalMonthSelect.js +19 -23
- package/dist/esm/date/LocalMonthSelect/LocalMonthSelect.js.map +1 -1
- package/dist/esm/date/LocalTimePicker/LocalTimePicker.js +6 -55
- package/dist/esm/date/LocalTimePicker/LocalTimePicker.js.map +1 -1
- package/dist/esm/date/MonthDayPicker/MonthDayPicker.js +13 -69
- package/dist/esm/date/MonthDayPicker/MonthDayPicker.js.map +1 -1
- package/dist/esm/date/MonthYearPicker/MonthYearPicker.js +14 -57
- package/dist/esm/date/MonthYearPicker/MonthYearPicker.js.map +1 -1
- package/dist/esm/date/YearSelect/YearSelect.js +25 -39
- package/dist/esm/date/YearSelect/YearSelect.js.map +1 -1
- package/dist/esm/form/TForm/useTForm.js +12 -8
- package/dist/esm/form/TForm/useTForm.js.map +1 -1
- package/dist/esm/form/TMForm/TMForm.js +55 -0
- package/dist/esm/form/TMForm/TMForm.js.map +1 -0
- package/dist/esm/form/TMForm/errorMessages.js +39 -0
- package/dist/esm/form/TMForm/errorMessages.js.map +1 -0
- package/dist/esm/form/TMForm/graphqlErrorTypes.js +6 -0
- package/dist/esm/form/TMForm/graphqlErrorTypes.js.map +1 -0
- package/dist/esm/index.js +1 -23
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/inputs/MaskedInput/MaskedInput.js +5 -8
- package/dist/esm/inputs/MaskedInput/MaskedInput.js.map +1 -1
- package/dist/esm/inputs/MaskedInput/useMaskedInput.js +2 -3
- package/dist/esm/inputs/MaskedInput/useMaskedInput.js.map +1 -1
- package/dist/esm/inputs/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +26 -86
- package/dist/types/commonTypes.d.ts +1 -0
- package/dist/types/date/LocalDatePicker/LocalDatePicker.d.ts +5 -7
- package/dist/types/date/LocalDatePicker/localdatepicker.stories.d.ts +6 -0
- package/dist/types/date/LocalMonthSelect/LocalMonthSelect.d.ts +2 -3
- package/dist/types/date/LocalMonthSelect/localmonthselect.stories.d.ts +5 -0
- package/dist/types/date/LocalTimePicker/LocalTimePicker.d.ts +2 -6
- package/dist/types/date/LocalTimePicker/localtimepicker.stories.d.ts +5 -0
- package/dist/types/date/MonthDayPicker/MonthDayPicker.d.ts +7 -6
- package/dist/types/date/MonthDayPicker/monthdaypicker.stories.d.ts +5 -0
- package/dist/types/date/MonthYearPicker/MonthYearPicker.d.ts +10 -11
- package/dist/types/date/MonthYearPicker/monthyearpicker.stories.d.ts +6 -0
- package/dist/types/date/YearSelect/YearSelect.d.ts +1 -3
- package/dist/types/date/YearSelect/yearselect.stories.d.ts +7 -0
- package/dist/types/form/TForm/tform.stories.d.ts +19 -0
- package/dist/types/form/TForm/types.d.ts +32 -0
- package/dist/types/form/TMForm/TMForm.d.ts +8 -0
- package/dist/types/form/TMForm/errorMessages.d.ts +5 -0
- package/dist/types/form/TMForm/graphqlErrorTypes.d.ts +50 -0
- package/dist/types/form/TMForm/tmform.stories.d.ts +12 -0
- package/dist/types/index.d.ts +2 -19
- package/dist/types/inputs/CreditCardInput/CreditCardInput.d.ts +3 -2
- package/dist/types/inputs/CreditCardInput/CreditCardNumberInput.d.ts +2 -2
- package/dist/types/inputs/CreditCardInput/creditcardinput.stories.d.ts +5 -0
- package/dist/types/inputs/CreditCardInput/creditcardnumberinput.stories.d.ts +5 -0
- package/dist/types/inputs/MaskedInput/MaskedInput.d.ts +2 -3
- package/dist/types/inputs/MaskedInput/maskedinput.stories.d.ts +6 -0
- package/dist/types/inputs/MaskedInput/useMaskedInput.d.ts +10 -0
- package/dist/types/inputs/PhoneInput/PhoneInput.d.ts +1 -2
- package/dist/types/inputs/PhoneInput/phoneinput.stories.d.ts +5 -0
- package/dist/types/inputs/RadioGroup/radiogroup.stories.d.ts +5 -0
- package/dist/types/inputs/SinInput/SinInput.d.ts +0 -1
- package/dist/types/inputs/SinInput/sininput.stories.d.ts +5 -0
- package/dist/types/inputs/TableInput/DropdownCell.d.ts +3 -2
- package/dist/types/inputs/TableInput/HoverCell.d.ts +6 -0
- package/dist/types/inputs/TableInput/MoneyCell.d.ts +8 -0
- package/dist/types/inputs/TableInput/MoneyEditCell.d.ts +2 -1
- package/dist/types/inputs/TableInput/MoneySumFooter.d.ts +6 -0
- package/dist/types/inputs/TableInput/StringEditCell.d.ts +2 -2
- package/dist/types/inputs/TableInput/TableInput.d.ts +5 -2
- package/dist/types/inputs/TableInput/addRowOnTab.d.ts +1 -0
- package/dist/types/inputs/TableInput/main.story.d.ts +7 -0
- package/dist/types/inputs/TableInput/tableinput.stories.d.ts +5 -0
- package/dist/types/inputs/TableInput/withHover.story.d.ts +7 -0
- package/dist/types/money/MoneyCurrencyInput/MoneyCurrencyInput.d.ts +2 -4
- package/dist/types/money/MoneyCurrencyInput/moneycurrencyinput.stories.d.ts +5 -0
- package/dist/types/money/MoneyInput/MoneyInput.d.ts +4 -5
- package/dist/types/money/MoneyInput/moneyinput.stories.d.ts +6 -0
- package/dist/types/money/useMoneyInput.d.ts +13 -0
- package/dist/types/storyDecorator.d.ts +6 -0
- package/package.json +13 -10
- package/dist/esm/date/DatePicker/styles.css.js +0 -7
- package/dist/esm/date/DatePicker/styles.css.js.map +0 -1
- package/dist/esm/date/LocalDatePicker/MaskedDateInput.js +0 -22
- package/dist/esm/date/LocalDatePicker/MaskedDateInput.js.map +0 -1
- package/dist/esm/date/LocalTimePicker/MaskedTimeInput.js +0 -21
- package/dist/esm/date/LocalTimePicker/MaskedTimeInput.js.map +0 -1
- package/dist/esm/external/style-inject/dist/style-inject.es.js +0 -29
- package/dist/esm/external/style-inject/dist/style-inject.es.js.map +0 -1
- package/dist/esm/inputs/CreditCardInput/CreditCardInput.js +0 -71
- package/dist/esm/inputs/CreditCardInput/CreditCardInput.js.map +0 -1
- package/dist/esm/inputs/CreditCardInput/CreditCardNumberInput.js +0 -76
- package/dist/esm/inputs/CreditCardInput/CreditCardNumberInput.js.map +0 -1
- package/dist/esm/inputs/CreditCardInput/styles.css.js +0 -7
- package/dist/esm/inputs/CreditCardInput/styles.css.js.map +0 -1
- package/dist/esm/inputs/RadioGroup/RadioGroup.js +0 -25
- package/dist/esm/inputs/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/esm/inputs/Scriptel/Scriptel.js +0 -52
- package/dist/esm/inputs/Scriptel/Scriptel.js.map +0 -1
- package/dist/esm/inputs/Scriptel/ScriptelContext.js +0 -6
- package/dist/esm/inputs/Scriptel/ScriptelContext.js.map +0 -1
- package/dist/esm/inputs/Scriptel/scriptel/enums.js +0 -21
- package/dist/esm/inputs/Scriptel/scriptel/enums.js.map +0 -1
- package/dist/esm/inputs/Scriptel/scriptel/index.js +0 -93
- package/dist/esm/inputs/Scriptel/scriptel/index.js.map +0 -1
- package/dist/esm/inputs/Scriptel/withScriptel.js +0 -15
- package/dist/esm/inputs/Scriptel/withScriptel.js.map +0 -1
- package/dist/esm/inputs/ScriptelInput/ScriptelInput.js +0 -67
- package/dist/esm/inputs/ScriptelInput/ScriptelInput.js.map +0 -1
- package/dist/esm/inputs/SinInput/SinInput.js +0 -54
- package/dist/esm/inputs/SinInput/SinInput.js.map +0 -1
- package/dist/esm/inputs/TableInput/DropdownCell.js +0 -26
- package/dist/esm/inputs/TableInput/DropdownCell.js.map +0 -1
- package/dist/esm/inputs/TableInput/HoverCell.js +0 -20
- package/dist/esm/inputs/TableInput/HoverCell.js.map +0 -1
- package/dist/esm/inputs/TableInput/LocalDateCell.js +0 -13
- package/dist/esm/inputs/TableInput/LocalDateCell.js.map +0 -1
- package/dist/esm/inputs/TableInput/LocalDateEditCell.js +0 -29
- package/dist/esm/inputs/TableInput/LocalDateEditCell.js.map +0 -1
- package/dist/esm/inputs/TableInput/MoneyCell.js +0 -13
- package/dist/esm/inputs/TableInput/MoneyCell.js.map +0 -1
- package/dist/esm/inputs/TableInput/MoneyEditCell.js +0 -30
- package/dist/esm/inputs/TableInput/MoneyEditCell.js.map +0 -1
- package/dist/esm/inputs/TableInput/MoneySumFooter.js +0 -15
- package/dist/esm/inputs/TableInput/MoneySumFooter.js.map +0 -1
- package/dist/esm/inputs/TableInput/StringEditCell.js +0 -34
- package/dist/esm/inputs/TableInput/StringEditCell.js.map +0 -1
- package/dist/esm/inputs/TableInput/TableInput.js +0 -75
- package/dist/esm/inputs/TableInput/TableInput.js.map +0 -1
- package/dist/esm/inputs/TableInput/addRowOnTab.js +0 -13
- package/dist/esm/inputs/TableInput/addRowOnTab.js.map +0 -1
- package/dist/esm/money/MoneyCurrencyInput/MoneyCurrencyInput.js +0 -51
- package/dist/esm/money/MoneyCurrencyInput/MoneyCurrencyInput.js.map +0 -1
- package/dist/esm/money/MoneyInput/MoneyInput.js +0 -31
- package/dist/esm/money/MoneyInput/MoneyInput.js.map +0 -1
- package/dist/esm/money/useMoneyInput.js +0 -75
- package/dist/esm/money/useMoneyInput.js.map +0 -1
- package/dist/esm/step/FormStep.js +0 -17
- package/dist/esm/step/FormStep.js.map +0 -1
- package/dist/esm/step/Step.js +0 -10
- package/dist/esm/step/Step.js.map +0 -1
- package/dist/esm/step/StepProvider.js +0 -95
- package/dist/esm/step/StepProvider.js.map +0 -1
- package/dist/esm/step/stepContext.js +0 -10
- package/dist/esm/step/stepContext.js.map +0 -1
- package/dist/esm/step/useStep.js +0 -10
- package/dist/esm/step/useStep.js.map +0 -1
- package/dist/types/date/LocalDatePicker/MaskedDateInput.d.ts +0 -12
- package/dist/types/date/LocalTimePicker/MaskedTimeInput.d.ts +0 -11
- package/dist/types/inputs/CreditCardInput/index.d.ts +0 -2
- package/dist/types/inputs/RadioGroup/RadioGroup.d.ts +0 -8
- package/dist/types/inputs/RadioGroup/index.d.ts +0 -2
- package/dist/types/inputs/ScriptelInput/ScriptelInput.d.ts +0 -8
- package/dist/types/inputs/ScriptelInput/index.d.ts +0 -2
- package/dist/types/inputs/SinInput/index.d.ts +0 -2
- package/dist/types/inputs/TableInput/LocalDateCell.d.ts +0 -8
- package/dist/types/inputs/TableInput/LocalDateEditCell.d.ts +0 -3
- package/dist/types/inputs/TableInput/index.d.ts +0 -11
- package/dist/types/money/MoneyCurrencyInput/index.d.ts +0 -2
- package/dist/types/step/StepProvider.d.ts +0 -10
- package/dist/types/step/index.d.ts +0 -4
package/dist/stats.txt
CHANGED
|
@@ -1,98 +1,38 @@
|
|
|
1
1
|
-----------------------------
|
|
2
2
|
Rollup File Analysis
|
|
3
3
|
-----------------------------
|
|
4
|
-
bundle size:
|
|
5
|
-
original size:
|
|
6
|
-
code reduction:
|
|
7
|
-
module count:
|
|
4
|
+
bundle size: 12.967 KB
|
|
5
|
+
original size: 22.778 KB
|
|
6
|
+
code reduction: 43.07 %
|
|
7
|
+
module count: 15
|
|
8
8
|
|
|
9
|
-
/src/step/StepProvider.tsx
|
|
10
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.92 % (3.529 KB)
|
|
11
9
|
/src/form/TForm/useTForm.tsx
|
|
12
|
-
|
|
13
|
-
/src/inputs/TableInput/TableInput.tsx
|
|
14
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.26 % (2.788 KB)
|
|
15
|
-
/src/inputs/Scriptel/scriptel/index.ts
|
|
16
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.68 % (2.53 KB)
|
|
17
|
-
/src/inputs/CreditCardInput/CreditCardInput.tsx
|
|
18
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.22 % (2.324 KB)
|
|
19
|
-
/src/money/useMoneyInput.ts
|
|
20
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.84 % (2.155 KB)
|
|
21
|
-
/src/date/MonthDayPicker/MonthDayPicker.tsx
|
|
22
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.41 % (1.965 KB)
|
|
23
|
-
/src/inputs/ScriptelInput/ScriptelInput.tsx
|
|
24
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.41 % (1.963 KB)
|
|
25
|
-
/src/inputs/CreditCardInput/CreditCardNumberInput.tsx
|
|
26
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.85 % (1.713 KB)
|
|
27
|
-
/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
|
|
28
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.54 % (1.575 KB)
|
|
29
|
-
/src/date/YearSelect/YearSelect.tsx
|
|
30
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.49 % (1.553 KB)
|
|
10
|
+
███████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 22.2 % (2.879 KB)
|
|
31
11
|
/src/inputs/MaskedInput/useMaskedInput.ts
|
|
32
|
-
|
|
33
|
-
/src/
|
|
34
|
-
|
|
35
|
-
/src/date/
|
|
36
|
-
|
|
37
|
-
/src/date/LocalTimePicker/LocalTimePicker.tsx
|
|
38
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.71 % (1.205 KB)
|
|
39
|
-
/src/inputs/SinInput/SinInput.tsx
|
|
40
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.57 % (1.144 KB)
|
|
12
|
+
█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11.46 % (1.486 KB)
|
|
13
|
+
/src/form/TMForm/TMForm.tsx
|
|
14
|
+
█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 11.14 % (1.445 KB)
|
|
15
|
+
/src/date/YearSelect/YearSelect.tsx
|
|
16
|
+
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.05 % (1.174 KB)
|
|
41
17
|
/src/date/LocalMonthSelect/LocalMonthSelect.tsx
|
|
42
|
-
|
|
18
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.18 % (931 Bytes)
|
|
19
|
+
/src/form/TMForm/errorMessages.ts
|
|
20
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.72 % (872 Bytes)
|
|
21
|
+
/src/date/MonthYearPicker/MonthYearPicker.tsx
|
|
22
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.15 % (797 Bytes)
|
|
23
|
+
/src/date/MonthDayPicker/MonthDayPicker.tsx
|
|
24
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.08 % (789 Bytes)
|
|
43
25
|
/src/date/LocalDatePicker/LocalDatePicker.tsx
|
|
44
|
-
|
|
45
|
-
/src/inputs/Scriptel/scriptel/enums.ts
|
|
46
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.1 % (937 Bytes)
|
|
47
|
-
/src/money/MoneyInput/MoneyInput.tsx
|
|
48
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.75 % (778 Bytes)
|
|
49
|
-
/src/inputs/TableInput/StringEditCell.tsx
|
|
50
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.61 % (717 Bytes)
|
|
51
|
-
/home/mike/dev/esm/thx-esm/node_modules/style-inject/dist/style-inject.es.js
|
|
52
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.43 % (636 Bytes)
|
|
53
|
-
/src/inputs/TableInput/MoneyEditCell.tsx
|
|
54
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.39 % (620 Bytes)
|
|
26
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.68 % (737 Bytes)
|
|
55
27
|
/src/form/TForm/TForm.tsx
|
|
56
|
-
|
|
57
|
-
/src/
|
|
58
|
-
|
|
59
|
-
/src/inputs/RadioGroup/RadioGroup.tsx
|
|
60
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.26 % (561 Bytes)
|
|
61
|
-
/src/date/DatePicker/styles.css
|
|
62
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.21 % (538 Bytes)
|
|
63
|
-
/src/inputs/TableInput/DropdownCell.tsx
|
|
64
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.11 % (493 Bytes)
|
|
65
|
-
/src/date/LocalDatePicker/MaskedDateInput.tsx
|
|
66
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.04 % (464 Bytes)
|
|
67
|
-
/src/date/LocalTimePicker/MaskedTimeInput.tsx
|
|
68
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 % (446 Bytes)
|
|
69
|
-
/src/step/FormStep.tsx
|
|
70
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.99 % (440 Bytes)
|
|
71
|
-
/src/inputs/TableInput/HoverCell.tsx
|
|
72
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.9 % (403 Bytes)
|
|
73
|
-
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
74
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.88 % (390 Bytes)
|
|
28
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.63 % (600 Bytes)
|
|
29
|
+
/src/date/LocalTimePicker/LocalTimePicker.tsx
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.86 % (500 Bytes)
|
|
75
31
|
/src/inputs/PhoneInput/PhoneInput.tsx
|
|
76
|
-
|
|
77
|
-
/src/inputs/
|
|
78
|
-
|
|
79
|
-
/src/
|
|
80
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
81
|
-
/src/inputs/Scriptel/withScriptel.tsx
|
|
82
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.62 % (275 Bytes)
|
|
83
|
-
/src/inputs/TableInput/LocalDateCell.tsx
|
|
84
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.59 % (264 Bytes)
|
|
85
|
-
/src/inputs/TableInput/MoneyCell.tsx
|
|
86
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.58 % (257 Bytes)
|
|
87
|
-
/src/step/Step.tsx
|
|
88
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.46 % (203 Bytes)
|
|
89
|
-
/src/step/useStep.ts
|
|
90
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.25 % (113 Bytes)
|
|
91
|
-
/src/step/stepContext.ts
|
|
92
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.18 % (80 Bytes)
|
|
93
|
-
/src/inputs/CreditCardInput/styles.css
|
|
94
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.18 % (78 Bytes)
|
|
95
|
-
/src/inputs/Scriptel/ScriptelContext.ts
|
|
96
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.1 % (46 Bytes)
|
|
32
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.94 % (381 Bytes)
|
|
33
|
+
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.3 % (298 Bytes)
|
|
35
|
+
/src/form/TMForm/graphqlErrorTypes.ts
|
|
36
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.6 % (78 Bytes)
|
|
97
37
|
/src/index.ts
|
|
98
38
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 % (0 Byte)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type OnChangeValue<T> = (value?: T) => void;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LocalDate } from '@js-joda/core';
|
|
3
|
-
import type {
|
|
4
|
-
import type { InputProps } from 'semantic-ui-react';
|
|
5
|
-
import '../DatePicker/styles.css';
|
|
3
|
+
import type { DatePickerProps } from '@mantine/dates';
|
|
6
4
|
interface ILocalDatePicker {
|
|
5
|
+
defaultValue?: LocalDate | number | null;
|
|
6
|
+
initialMonth?: LocalDate | number | null;
|
|
7
7
|
value?: LocalDate | number | null;
|
|
8
8
|
onChange?: (value: LocalDate | null) => void;
|
|
9
|
-
onChangeRaw?: () => void;
|
|
9
|
+
onChangeRaw?: (value: Date | null) => void;
|
|
10
10
|
minDate?: LocalDate;
|
|
11
11
|
maxDate?: LocalDate;
|
|
12
12
|
}
|
|
13
|
-
declare type
|
|
14
|
-
declare type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'minDate' | 'maxDate'>;
|
|
15
|
-
export declare type LocalDatePickerProps = ILocalDatePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;
|
|
13
|
+
export declare type LocalDatePickerProps = ILocalDatePicker & Omit<DatePickerProps, 'onChange' | 'value' | 'defaultValue' | 'initialMonth' | 'minDate' | 'maxDate'>;
|
|
16
14
|
export declare function LocalDatePicker(props: LocalDatePickerProps): JSX.Element;
|
|
17
15
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { LocalDatePicker } from './LocalDatePicker';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof LocalDatePicker>;
|
|
6
|
+
export declare const WithMinMaxDates: ComponentStory<typeof LocalDatePicker>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LocalDate } from '@js-joda/core';
|
|
3
|
-
import { SelectProps } from '
|
|
3
|
+
import type { SelectProps } from '@mantine/core';
|
|
4
4
|
interface ILocalMonthSelectProps {
|
|
5
5
|
onChange?: (value: LocalDate | null) => void;
|
|
6
6
|
value?: LocalDate | null;
|
|
7
7
|
year?: number;
|
|
8
|
-
handleBlur?: (event: any) => void;
|
|
9
8
|
}
|
|
10
|
-
export declare type LocalMonthSelectProps = ILocalMonthSelectProps & Omit<SelectProps, 'options'>;
|
|
9
|
+
export declare type LocalMonthSelectProps = ILocalMonthSelectProps & Omit<SelectProps, 'options' | 'data' | 'value' | 'onChange'>;
|
|
11
10
|
export declare function LocalMonthSelect(props: LocalMonthSelectProps): JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { LocalMonthSelect } from './LocalMonthSelect';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof LocalMonthSelect>;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LocalTime } from '@js-joda/core';
|
|
3
|
-
import type {
|
|
4
|
-
import type { InputProps } from 'semantic-ui-react';
|
|
3
|
+
import type { TimeInputProps } from '@mantine/dates';
|
|
5
4
|
interface ILocalTimePicker {
|
|
6
5
|
value?: LocalTime | number | null;
|
|
7
6
|
onChange?: (value: LocalTime | null) => void;
|
|
8
|
-
onChangeRaw?: () => void;
|
|
9
7
|
}
|
|
10
|
-
declare type
|
|
11
|
-
declare type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange'>;
|
|
12
|
-
export declare type LocalTimePickerProps = ILocalTimePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;
|
|
8
|
+
export declare type LocalTimePickerProps = ILocalTimePicker & Omit<TimeInputProps, 'onChange' | 'value'>;
|
|
13
9
|
export declare function LocalTimePicker(props: LocalTimePickerProps): JSX.Element;
|
|
14
10
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { LocalTimePicker } from './LocalTimePicker';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof LocalTimePicker>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LocalDate } from '@js-joda/core';
|
|
3
|
-
import type {
|
|
4
|
-
import { InputProps } from 'semantic-ui-react';
|
|
3
|
+
import type { DatePickerProps } from '@mantine/dates';
|
|
5
4
|
interface IMonthDayPickerProps {
|
|
5
|
+
defaultValue?: LocalDate | number | null;
|
|
6
|
+
initialMonth?: LocalDate | number | null;
|
|
6
7
|
value?: LocalDate | number | null;
|
|
7
8
|
onChange?: (value: LocalDate | null) => void;
|
|
8
|
-
onChangeRaw?: () => void;
|
|
9
|
+
onChangeRaw?: (value: Date | null) => void;
|
|
10
|
+
minDate?: LocalDate;
|
|
11
|
+
maxDate?: LocalDate;
|
|
9
12
|
}
|
|
10
|
-
declare type
|
|
11
|
-
declare type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange'>;
|
|
12
|
-
export declare type MonthDayPickerProps = IMonthDayPickerProps & InputPropsOmitted & ReactDatePickerPropsOmitted;
|
|
13
|
+
export declare type MonthDayPickerProps = IMonthDayPickerProps & Omit<DatePickerProps, 'onChange' | 'value'>;
|
|
13
14
|
export declare function MonthDayPicker(props: MonthDayPickerProps): JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { MonthDayPicker } from './MonthDayPicker';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof MonthDayPicker>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LocalDate } from '@js-joda/core';
|
|
3
|
-
import type {
|
|
4
|
-
import { InputProps } from 'semantic-ui-react';
|
|
2
|
+
import type { LocalDate } from '@js-joda/core';
|
|
3
|
+
import type { DatePickerProps } from '@mantine/dates';
|
|
5
4
|
interface IMonthYearPickerProps {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
defaultValue?: LocalDate | number | null;
|
|
6
|
+
initialMonth?: LocalDate | number | null;
|
|
7
|
+
value?: LocalDate | number | null;
|
|
8
|
+
onChange?: (value: LocalDate | null) => void;
|
|
9
|
+
onChangeRaw?: (value: Date | null) => void;
|
|
10
|
+
minDate?: LocalDate;
|
|
11
|
+
maxDate?: LocalDate;
|
|
11
12
|
}
|
|
12
|
-
declare type
|
|
13
|
-
declare type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value' | 'minDate' | 'maxDate'>, 'onChange'>;
|
|
14
|
-
export declare type MonthYearPickerProps = IMonthYearPickerProps & InputPropsOmitted & ReactDatePickerPropsOmitted;
|
|
13
|
+
export declare type MonthYearPickerProps = IMonthYearPickerProps & Omit<DatePickerProps, 'onChange' | 'value' | 'minDate' | 'maxDate'>;
|
|
15
14
|
export declare function MonthYearPicker(props: MonthYearPickerProps): JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { MonthYearPicker } from './MonthYearPicker';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof MonthYearPicker>;
|
|
6
|
+
export declare const WithMinMaxDates: ComponentStory<typeof MonthYearPicker>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SegmentProps } from 'semantic-ui-react';
|
|
3
2
|
export interface YearSelectProps {
|
|
4
3
|
onChange?: (value: number) => void;
|
|
5
|
-
onBlur?: (ev: any) => void;
|
|
6
4
|
value: number;
|
|
7
5
|
minYear?: number;
|
|
8
6
|
maxYear?: number;
|
|
9
7
|
error?: boolean;
|
|
10
8
|
}
|
|
11
|
-
export declare function YearSelect(props: YearSelectProps
|
|
9
|
+
export declare function YearSelect(props: YearSelectProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { YearSelect } from './YearSelect';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof YearSelect>;
|
|
6
|
+
export declare const WithError: ComponentStory<typeof YearSelect>;
|
|
7
|
+
export declare const WithMinMaxYears: ComponentStory<typeof YearSelect>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function Main(args: any): JSX.Element;
|
|
6
|
+
export declare namespace Main {
|
|
7
|
+
var args: {
|
|
8
|
+
enableReinitialize: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function WithError(args: any): JSX.Element;
|
|
13
|
+
export declare namespace WithError {
|
|
14
|
+
var args: {
|
|
15
|
+
error: undefined;
|
|
16
|
+
enableReinitialize: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FormikConfig, FormikProps } from 'formik';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export interface TFormProps<Values> extends FormikProps<Values> {
|
|
4
|
+
hasErrors: boolean;
|
|
5
|
+
hasWarnings: boolean;
|
|
6
|
+
isValid: boolean;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
submitDisabled: boolean;
|
|
9
|
+
errorMarkedCleared: boolean;
|
|
10
|
+
formError: boolean;
|
|
11
|
+
renderWarnings: () => JSX.Element | null;
|
|
12
|
+
fieldError: (fieldName: keyof Values | string | number) => boolean;
|
|
13
|
+
handleSubmit: (e?: React.FormEvent<HTMLFormElement>) => void;
|
|
14
|
+
}
|
|
15
|
+
interface ApolloError {
|
|
16
|
+
message?: string;
|
|
17
|
+
graphQLErrors?: {
|
|
18
|
+
message?: string;
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
export interface TFormConfig<Values, InitialValues = any> extends Omit<FormikConfig<Values>, 'component' | 'render' | 'children' | 'initialValues'> {
|
|
22
|
+
component?: React.ComponentType<TFormProps<Values>> | React.ReactNode;
|
|
23
|
+
render?: (props: TFormProps<Values>) => React.ReactNode;
|
|
24
|
+
children?: ((props: TFormProps<Values>) => React.ReactNode) | React.ReactNode;
|
|
25
|
+
initialValues: InitialValues;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
error?: ApolloError;
|
|
28
|
+
onValidate?: (isValid: boolean) => void;
|
|
29
|
+
getSubmitFn?: (submitFormFn: () => Promise<void> | Promise<any>) => void;
|
|
30
|
+
onChange?: (values: Values) => void;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { UseFormReturnType } from '@mantine/form/lib/use-form';
|
|
3
|
+
export interface TMFormProps<T> {
|
|
4
|
+
form: UseFormReturnType<T>;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
onSubmit?: (values: T, event: React.FormEvent) => void | Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare function TMForm<T>(props: TMFormProps<T>): JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
interface SourceLocation {
|
|
2
|
+
readonly line: number;
|
|
3
|
+
readonly column: number;
|
|
4
|
+
}
|
|
5
|
+
interface Source {
|
|
6
|
+
body: string;
|
|
7
|
+
name: string;
|
|
8
|
+
locationOffset: Location;
|
|
9
|
+
}
|
|
10
|
+
interface GraphQLErrorExtensions {
|
|
11
|
+
[attributeName: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
interface GraphQLFormattedError {
|
|
14
|
+
readonly message: string;
|
|
15
|
+
readonly locations?: ReadonlyArray<SourceLocation>;
|
|
16
|
+
readonly path?: ReadonlyArray<string | number>;
|
|
17
|
+
readonly extensions?: {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
declare type ServerParseError = Error & {
|
|
22
|
+
response: Response;
|
|
23
|
+
statusCode: number;
|
|
24
|
+
bodyText: string;
|
|
25
|
+
};
|
|
26
|
+
declare type ServerError = Error & {
|
|
27
|
+
response: Response;
|
|
28
|
+
result: Record<string, any>;
|
|
29
|
+
statusCode: number;
|
|
30
|
+
};
|
|
31
|
+
interface GraphQLError extends Error {
|
|
32
|
+
readonly locations?: ReadonlyArray<SourceLocation>;
|
|
33
|
+
readonly path?: ReadonlyArray<string | number>;
|
|
34
|
+
readonly nodes?: ReadonlyArray<any>;
|
|
35
|
+
readonly source?: Source;
|
|
36
|
+
readonly positions?: ReadonlyArray<number>;
|
|
37
|
+
readonly originalError?: Error;
|
|
38
|
+
readonly extensions: GraphQLErrorExtensions;
|
|
39
|
+
toString: () => string;
|
|
40
|
+
toJSON: () => GraphQLFormattedError;
|
|
41
|
+
}
|
|
42
|
+
export interface ApolloError extends Error {
|
|
43
|
+
message: string;
|
|
44
|
+
graphQLErrors: ReadonlyArray<GraphQLError>;
|
|
45
|
+
clientErrors: ReadonlyArray<Error>;
|
|
46
|
+
networkError: Error | ServerParseError | ServerError | null;
|
|
47
|
+
extraInfo: any;
|
|
48
|
+
}
|
|
49
|
+
export declare function isApolloError(error: Error): error is ApolloError;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function Main(): JSX.Element;
|
|
6
|
+
export declare namespace Main {
|
|
7
|
+
var args: {};
|
|
8
|
+
}
|
|
9
|
+
export declare function SubmitPromises(): JSX.Element;
|
|
10
|
+
export declare namespace SubmitPromises {
|
|
11
|
+
var args: {};
|
|
12
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export type { DatePicker } from './date/DatePicker';
|
|
2
1
|
export { LocalDatePicker } from './date/LocalDatePicker';
|
|
3
2
|
export type { LocalDatePickerProps } from './date/LocalDatePicker';
|
|
4
3
|
export { LocalMonthSelect } from './date/LocalMonthSelect';
|
|
@@ -13,25 +12,9 @@ export { YearSelect } from './date/YearSelect';
|
|
|
13
12
|
export type { YearSelectProps } from './date/YearSelect';
|
|
14
13
|
export { useTForm, TForm } from './form/TForm';
|
|
15
14
|
export type { TFormProps } from './form/TForm';
|
|
15
|
+
export { TMForm } from './form/TMForm/TMForm';
|
|
16
|
+
export type { TMFormProps } from './form/TMForm/TMForm';
|
|
16
17
|
export { MaskedInput } from './inputs/MaskedInput';
|
|
17
18
|
export type { MaskedInputProps } from './inputs/MaskedInput';
|
|
18
|
-
export { RadioGroup } from './inputs/RadioGroup';
|
|
19
|
-
export type { RadioGroupProps } from './inputs/RadioGroup';
|
|
20
|
-
export { Scriptel, withScriptel } from './inputs/Scriptel';
|
|
21
|
-
export type { ScriptelProps, ScriptelMessageClass, ScriptelPenStyle } from './inputs/Scriptel';
|
|
22
|
-
export { ScriptelInput } from './inputs/ScriptelInput';
|
|
23
|
-
export type { ScriptelInputProps } from './inputs/ScriptelInput';
|
|
24
19
|
export { PhoneInput } from './inputs/PhoneInput';
|
|
25
20
|
export type { PhoneInputProps } from './inputs/PhoneInput';
|
|
26
|
-
export { CreditCardInput } from './inputs/CreditCardInput';
|
|
27
|
-
export type { CreditCardInputProps } from './inputs/CreditCardInput';
|
|
28
|
-
export { SinInput } from './inputs/SinInput';
|
|
29
|
-
export type { SinInputProps } from './inputs/SinInput';
|
|
30
|
-
export { TableInput, MoneyCell, MoneyEditCell, LocalDateCell, LocalDateEditCell, MoneySumFooter, StringEditCell, DropdownCell, HoverCell, addRowOnTab, } from './inputs/TableInput';
|
|
31
|
-
export type { AddRowOnTabIf } from './inputs/TableInput';
|
|
32
|
-
export { useMoneyInput } from './money/useMoneyInput';
|
|
33
|
-
export { MoneyInput } from './money/MoneyInput';
|
|
34
|
-
export type { MoneyInputProps } from './money/MoneyInput';
|
|
35
|
-
export { MoneyCurrencyInput } from './money/MoneyCurrencyInput';
|
|
36
|
-
export type { MoneyCurrencyInputProps } from './money/MoneyCurrencyInput';
|
|
37
|
-
export { FormStep, StepProvider, useStep, Step } from './step';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LocalDate } from '@js-joda/core';
|
|
3
3
|
import 'react-credit-cards/es/styles-compiled.css';
|
|
4
|
-
import { InputProps } from 'semantic-ui-react';
|
|
5
4
|
import './styles.css';
|
|
6
5
|
export interface CreditCardData {
|
|
7
6
|
number?: string;
|
|
@@ -12,5 +11,7 @@ export interface CreditCardData {
|
|
|
12
11
|
export declare type CreditCardInputProps = {
|
|
13
12
|
value?: CreditCardData;
|
|
14
13
|
onChange?: (data: CreditCardData) => void;
|
|
15
|
-
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
showCard?: boolean;
|
|
16
|
+
};
|
|
16
17
|
export declare function CreditCardInput(props: CreditCardInputProps): JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import type { TextInputProps } from '@mantine/core';
|
|
3
3
|
interface CreditCardNumberInputProps {
|
|
4
4
|
onChange?: (value: string | undefined) => void;
|
|
5
5
|
value?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function CreditCardNumberInput(props: CreditCardNumberInputProps & Omit<
|
|
7
|
+
export declare function CreditCardNumberInput(props: CreditCardNumberInputProps & Omit<TextInputProps, 'onChange'>): JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { CreditCardInput } from './CreditCardInput';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof CreditCardInput>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { CreditCardNumberInput } from './CreditCardNumberInput';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const CreditCardNumberInputStory: ComponentStory<typeof CreditCardNumberInput>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { TextInputProps } from '@mantine/core';
|
|
3
3
|
import { UseMaskedInputProps } from './useMaskedInput';
|
|
4
4
|
export declare type MaskedInputProps = {
|
|
5
5
|
name?: string;
|
|
6
|
-
|
|
7
|
-
} & UseMaskedInputProps & Omit<InputProps, 'onChange'>;
|
|
6
|
+
} & UseMaskedInputProps & Omit<TextInputProps, 'onChange' | 'value'>;
|
|
8
7
|
export declare function MaskedInput(props: MaskedInputProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
2
|
+
import { MaskedInput } from './MaskedInput';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<typeof MaskedInput>;
|
|
6
|
+
export declare const AutoUnmask: ComponentStory<typeof MaskedInput>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="inputmask" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { OnChangeValue } from '../../commonTypes';
|
|
4
|
+
export interface UseMaskedInputProps {
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: OnChangeValue<string>;
|
|
7
|
+
mask?: Inputmask.Options;
|
|
8
|
+
onSet?: (value?: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useMaskedInput(props: UseMaskedInputProps): import("react").MutableRefObject<HTMLInputElement | null>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MaskedInputProps } from '../MaskedInput';
|
|
3
|
-
export interface PhoneInputProps {
|
|
3
|
+
export interface PhoneInputProps extends Omit<MaskedInputProps, 'mask'> {
|
|
4
4
|
extension?: boolean;
|
|
5
|
-
onChange?: (value?: string) => void;
|
|
6
5
|
}
|
|
7
6
|
export declare function PhoneInput(props: PhoneInputProps & Omit<MaskedInputProps, 'mask' | 'onChange'>): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ComponentStory, Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Main: ComponentStory<import("react").ForwardRefExoticComponent<import("@mantine/core").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectProps } from '@mantine/core';
|
|
2
3
|
import type { TableCellProps } from './TableInput';
|
|
3
|
-
export declare function DropdownCell<D extends Record<string, unknown>>(dropdownProps:
|
|
4
|
+
export declare function DropdownCell<D extends Record<string, unknown>>(dropdownProps: SelectProps): (props: TableCellProps<D>) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CellProps, Renderer } from 'react-table';
|
|
2
|
+
interface HoverCellOptions<D extends Record<string, unknown>> {
|
|
3
|
+
action: Renderer<CellProps<D>>;
|
|
4
|
+
}
|
|
5
|
+
export declare function HoverCell<D extends Record<string, unknown>>(options: HoverCellOptions<D>): (props: CellProps<D>) => JSX.Element | null;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type Money from 'js-money';
|
|
2
|
+
import type { CellProps } from 'react-table';
|
|
3
|
+
interface MoneyCellOptions<D extends Record<string, unknown>> {
|
|
4
|
+
/** If provided, this function will override the Money value displayed */
|
|
5
|
+
overrideValue?: (props: CellProps<D, Money>) => Money;
|
|
6
|
+
}
|
|
7
|
+
export declare function MoneyCell<D extends Record<string, unknown>>(options?: MoneyCellOptions<D>): (props: CellProps<D, Money>) => JSX.Element;
|
|
8
|
+
export {};
|