@thx/controls 16.0.0-alpha.27 → 16.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/esm/date/DatePicker/styles.css.js +7 -0
  2. package/dist/esm/date/DatePicker/styles.css.js.map +1 -0
  3. package/dist/esm/date/LocalDatePicker/LocalDatePicker.js +12 -60
  4. package/dist/esm/date/LocalDatePicker/LocalDatePicker.js.map +1 -1
  5. package/dist/esm/date/LocalDatePicker/MaskedDateInput.js +6 -35
  6. package/dist/esm/date/LocalDatePicker/MaskedDateInput.js.map +1 -1
  7. package/dist/esm/date/LocalMonthSelect/LocalMonthSelect.js +6 -32
  8. package/dist/esm/date/LocalMonthSelect/LocalMonthSelect.js.map +1 -1
  9. package/dist/esm/date/LocalTimePicker/LocalTimePicker.js +12 -57
  10. package/dist/esm/date/LocalTimePicker/LocalTimePicker.js.map +1 -1
  11. package/dist/esm/date/LocalTimePicker/MaskedTimeInput.js +7 -33
  12. package/dist/esm/date/LocalTimePicker/MaskedTimeInput.js.map +1 -1
  13. package/dist/esm/date/MonthDayPicker/MonthDayPicker.js +12 -57
  14. package/dist/esm/date/MonthDayPicker/MonthDayPicker.js.map +1 -1
  15. package/dist/esm/date/MonthYearPicker/MonthYearPicker.js +14 -61
  16. package/dist/esm/date/MonthYearPicker/MonthYearPicker.js.map +1 -1
  17. package/dist/esm/date/YearSelect/YearSelect.js +6 -32
  18. package/dist/esm/date/YearSelect/YearSelect.js.map +1 -1
  19. package/dist/esm/external/style-inject/dist/style-inject.es.js +29 -0
  20. package/dist/esm/external/style-inject/dist/style-inject.es.js.map +1 -0
  21. package/dist/esm/form/TForm/TForm.js +4 -4
  22. package/dist/esm/form/TForm/TForm.js.map +1 -1
  23. package/dist/esm/form/TForm/useTForm.js +5 -35
  24. package/dist/esm/form/TForm/useTForm.js.map +1 -1
  25. package/dist/esm/index.js +5 -4
  26. package/dist/esm/index.js.map +1 -1
  27. package/dist/esm/inputs/CreditCardInput/CreditCardInput.js +3 -2
  28. package/dist/esm/inputs/CreditCardInput/CreditCardInput.js.map +1 -1
  29. package/dist/esm/inputs/CreditCardInput/CreditCardNumberInput.js +5 -35
  30. package/dist/esm/inputs/CreditCardInput/CreditCardNumberInput.js.map +1 -1
  31. package/dist/esm/inputs/CreditCardInput/styles.css.js +7 -0
  32. package/dist/esm/inputs/CreditCardInput/styles.css.js.map +1 -0
  33. package/dist/esm/inputs/MaskedInput/MaskedInput.js +5 -30
  34. package/dist/esm/inputs/MaskedInput/MaskedInput.js.map +1 -1
  35. package/dist/esm/inputs/MaskedInput/useMaskedInput.js +13 -32
  36. package/dist/esm/inputs/MaskedInput/useMaskedInput.js.map +1 -1
  37. package/dist/esm/inputs/PhoneInput/PhoneInput.js +6 -34
  38. package/dist/esm/inputs/PhoneInput/PhoneInput.js.map +1 -1
  39. package/dist/esm/inputs/RadioGroup/RadioGroup.js +6 -32
  40. package/dist/esm/inputs/RadioGroup/RadioGroup.js.map +1 -1
  41. package/dist/esm/inputs/Scriptel/Scriptel.js +1 -1
  42. package/dist/esm/inputs/Scriptel/Scriptel.js.map +1 -1
  43. package/dist/esm/inputs/Scriptel/ScriptelContext.js.map +1 -1
  44. package/dist/esm/inputs/Scriptel/scriptel/enums.js.map +1 -1
  45. package/dist/esm/inputs/Scriptel/scriptel/index.js.map +1 -1
  46. package/dist/esm/inputs/Scriptel/withScriptel.js +6 -17
  47. package/dist/esm/inputs/Scriptel/withScriptel.js.map +1 -1
  48. package/dist/esm/inputs/ScriptelInput/ScriptelInput.js +7 -10
  49. package/dist/esm/inputs/ScriptelInput/ScriptelInput.js.map +1 -1
  50. package/dist/esm/inputs/SinInput/SinInput.js +5 -35
  51. package/dist/esm/inputs/SinInput/SinInput.js.map +1 -1
  52. package/dist/esm/inputs/TableInput/DropdownCell.js +5 -34
  53. package/dist/esm/inputs/TableInput/DropdownCell.js.map +1 -1
  54. package/dist/esm/inputs/TableInput/HoverCell.js +4 -17
  55. package/dist/esm/inputs/TableInput/HoverCell.js.map +1 -1
  56. package/dist/esm/inputs/TableInput/MoneyCell.js +2 -1
  57. package/dist/esm/inputs/TableInput/MoneyCell.js.map +1 -1
  58. package/dist/esm/inputs/TableInput/MoneyEditCell.js +3 -3
  59. package/dist/esm/inputs/TableInput/MoneyEditCell.js.map +1 -1
  60. package/dist/esm/inputs/TableInput/MoneySumFooter.js +1 -0
  61. package/dist/esm/inputs/TableInput/MoneySumFooter.js.map +1 -1
  62. package/dist/esm/inputs/TableInput/StringEditCell.js +5 -24
  63. package/dist/esm/inputs/TableInput/StringEditCell.js.map +1 -1
  64. package/dist/esm/inputs/TableInput/TableInput.js +24 -27
  65. package/dist/esm/inputs/TableInput/TableInput.js.map +1 -1
  66. package/dist/esm/inputs/TableInput/addRowOnTab.js.map +1 -1
  67. package/dist/esm/money/MoneyCurrencyInput/MoneyCurrencyInput.js +7 -37
  68. package/dist/esm/money/MoneyCurrencyInput/MoneyCurrencyInput.js.map +1 -1
  69. package/dist/esm/money/MoneyInput/MoneyInput.js +5 -31
  70. package/dist/esm/money/MoneyInput/MoneyInput.js.map +1 -1
  71. package/dist/esm/money/useMoneyInput.js +7 -10
  72. package/dist/esm/money/useMoneyInput.js.map +1 -1
  73. package/dist/esm/step/FormStep.js +1 -1
  74. package/dist/esm/step/FormStep.js.map +1 -1
  75. package/dist/esm/step/Step.js +1 -0
  76. package/dist/esm/step/Step.js.map +1 -1
  77. package/dist/esm/step/StepProvider.js +17 -37
  78. package/dist/esm/step/StepProvider.js.map +1 -1
  79. package/dist/esm/step/stepContext.js.map +1 -1
  80. package/dist/esm/step/useStep.js.map +1 -1
  81. package/dist/stats.html +2689 -0
  82. package/dist/stats.txt +94 -0
  83. package/dist/types/date/LocalDatePicker/LocalDatePicker.d.ts +1 -0
  84. package/dist/types/inputs/MaskedInput/useMaskedInput.d.ts +1 -1
  85. package/package.json +12 -20
package/dist/stats.txt ADDED
@@ -0,0 +1,94 @@
1
+ -----------------------------
2
+ Rollup File Analysis
3
+ -----------------------------
4
+ bundle size: 43.634 KB
5
+ original size: 63.157 KB
6
+ code reduction: 30.91 %
7
+ module count: 43
8
+
9
+ /src/step/StepProvider.tsx
10
+ ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 8.1 % (3.535 KB)
11
+ /src/form/TForm/useTForm.tsx
12
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.71 % (2.93 KB)
13
+ /src/inputs/TableInput/TableInput.tsx
14
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.39 % (2.788 KB)
15
+ /src/inputs/Scriptel/scriptel/index.ts
16
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.8 % (2.53 KB)
17
+ /src/inputs/CreditCardInput/CreditCardInput.tsx
18
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.33 % (2.324 KB)
19
+ /src/money/useMoneyInput.ts
20
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.79 % (2.089 KB)
21
+ /src/date/MonthDayPicker/MonthDayPicker.tsx
22
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.5 % (1.965 KB)
23
+ /src/inputs/ScriptelInput/ScriptelInput.tsx
24
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.5 % (1.963 KB)
25
+ /src/inputs/CreditCardInput/CreditCardNumberInput.tsx
26
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.93 % (1.713 KB)
27
+ /src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
28
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.61 % (1.575 KB)
29
+ /src/date/YearSelect/YearSelect.tsx
30
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.56 % (1.553 KB)
31
+ /src/inputs/MaskedInput/useMaskedInput.ts
32
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.42 % (1.491 KB)
33
+ /src/inputs/Scriptel/Scriptel.tsx
34
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.92 % (1.275 KB)
35
+ /src/date/MonthYearPicker/MonthYearPicker.tsx
36
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.82 % (1.229 KB)
37
+ /src/date/LocalTimePicker/LocalTimePicker.tsx
38
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.76 % (1.205 KB)
39
+ /src/inputs/SinInput/SinInput.tsx
40
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.62 % (1.144 KB)
41
+ /src/date/LocalMonthSelect/LocalMonthSelect.tsx
42
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.6 % (1.135 KB)
43
+ /src/date/LocalDatePicker/LocalDatePicker.tsx
44
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.51 % (1.096 KB)
45
+ /src/inputs/Scriptel/scriptel/enums.ts
46
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.15 % (937 Bytes)
47
+ /src/money/MoneyInput/MoneyInput.tsx
48
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.78 % (778 Bytes)
49
+ /src/inputs/TableInput/StringEditCell.tsx
50
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.64 % (717 Bytes)
51
+ /home/mike/dev/esm/thx-esm/node_modules/style-inject/dist/style-inject.es.js
52
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.46 % (636 Bytes)
53
+ /src/inputs/TableInput/MoneyEditCell.tsx
54
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.42 % (620 Bytes)
55
+ /src/form/TForm/TForm.tsx
56
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.38 % (600 Bytes)
57
+ /src/inputs/RadioGroup/RadioGroup.tsx
58
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.29 % (561 Bytes)
59
+ /src/date/DatePicker/styles.css
60
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.23 % (538 Bytes)
61
+ /src/inputs/TableInput/DropdownCell.tsx
62
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.13 % (493 Bytes)
63
+ /src/date/LocalDatePicker/MaskedDateInput.tsx
64
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.06 % (464 Bytes)
65
+ /src/date/LocalTimePicker/MaskedTimeInput.tsx
66
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.02 % (446 Bytes)
67
+ /src/step/FormStep.tsx
68
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.01 % (440 Bytes)
69
+ /src/inputs/TableInput/HoverCell.tsx
70
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.92 % (403 Bytes)
71
+ /src/inputs/MaskedInput/MaskedInput.tsx
72
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.89 % (390 Bytes)
73
+ /src/inputs/PhoneInput/PhoneInput.tsx
74
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.87 % (381 Bytes)
75
+ /src/inputs/TableInput/MoneySumFooter.tsx
76
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.75 % (326 Bytes)
77
+ /src/inputs/TableInput/addRowOnTab.ts
78
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.72 % (312 Bytes)
79
+ /src/inputs/Scriptel/withScriptel.tsx
80
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.63 % (275 Bytes)
81
+ /src/inputs/TableInput/MoneyCell.tsx
82
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.59 % (257 Bytes)
83
+ /src/step/Step.tsx
84
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.47 % (203 Bytes)
85
+ /src/step/useStep.ts
86
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.26 % (113 Bytes)
87
+ /src/step/stepContext.ts
88
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.18 % (80 Bytes)
89
+ /src/inputs/CreditCardInput/styles.css
90
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.18 % (78 Bytes)
91
+ /src/inputs/Scriptel/ScriptelContext.ts
92
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.11 % (46 Bytes)
93
+ /src/index.ts
94
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 % (0 Byte)
@@ -2,6 +2,7 @@
2
2
  import type { LocalDate } from '@js-joda/core';
3
3
  import type { ReactDatePickerProps } from 'react-datepicker';
4
4
  import type { InputProps } from 'semantic-ui-react';
5
+ import '../DatePicker/styles.css';
5
6
  interface ILocalDatePicker {
6
7
  value?: LocalDate | number | null;
7
8
  onChange?: (value: LocalDate | null) => void;
@@ -1,5 +1,5 @@
1
+ /// <reference types="inputmask" />
1
2
  /// <reference types="react" />
2
- import Inputmask from 'inputmask';
3
3
  export interface UseMaskedInputProps {
4
4
  value?: string;
5
5
  onChange?: (value?: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thx/controls",
3
- "version": "16.0.0-alpha.27+a99419e",
3
+ "version": "16.0.4",
4
4
  "description": "A collection of components designed with SemanticUI.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/thr-consulting/thr-addons/issues"
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "author": "Mike Kornelson <darkadept@durbn.net>",
14
- "sideEffects": false,
14
+ "sideEffects": true,
15
15
  "type": "module",
16
16
  "main": "./dist/esm/index.js",
17
17
  "types": "./dist/types/index.d.ts",
@@ -21,18 +21,20 @@
21
21
  "scripts": {
22
22
  "build": "thx build.roll",
23
23
  "clean": "thx clean",
24
- "deps": "thx -p *.stories.tsx,*.story.tsx,*.cjs deps",
24
+ "deps": "thx deps -p *.stories.tsx,*.story.tsx,*.cjs",
25
+ "docs.storybook": "build-storybook",
25
26
  "lint": "thx lint",
26
27
  "lint.fix": "thx lint.fix",
27
28
  "sort": "thx sort",
29
+ "storybook": "start-storybook -p 8000 --ci",
28
30
  "ts": "thx ts"
29
31
  },
30
32
  "dependencies": {
31
33
  "@js-joda/core": "^5.1.0",
32
- "@thx/date": "^16.0.0-alpha.27+a99419e",
33
- "@thx/money": "^16.0.0-alpha.27+a99419e",
34
- "@thx/yup-types": "^16.0.0-alpha.27+a99419e",
35
- "@types/inputmask": "^5.0.1",
34
+ "@thx/date": "^16.0.1",
35
+ "@thx/money": "^16.0.0",
36
+ "@thx/yup-types": "^16.0.0",
37
+ "@types/inputmask": "^5.0.3",
36
38
  "@types/react-datepicker": "^4.1.7",
37
39
  "credit-card-type": "^9.1.0",
38
40
  "debug": "^4.1.1",
@@ -44,7 +46,7 @@
44
46
  "lodash-es": "^4.17.15",
45
47
  "luhn": "^2.4.1",
46
48
  "react-credit-cards": "^0.8.3",
47
- "react-datepicker": "^4.2.1",
49
+ "react-datepicker": "^4.7.0",
48
50
  "react-table": "^7.6.3",
49
51
  "social-insurance-number": "^0.2.2",
50
52
  "use-deep-compare-effect": "1.4.0"
@@ -52,6 +54,7 @@
52
54
  "peerDependencies": {
53
55
  "react": "17.x",
54
56
  "react-dom": "17.x",
57
+ "react-router": "5.x",
55
58
  "react-router-dom": "5.x",
56
59
  "semantic-ui-react": "2.x"
57
60
  },
@@ -61,16 +64,5 @@
61
64
  "publishConfig": {
62
65
  "access": "public"
63
66
  },
64
- "Xscripts": {
65
- "build-storybook": "build-storybook",
66
- "build:dev": "thx build:dev",
67
- "build:prod": "thx build:prod",
68
- "deps": "thx -p *.stories.tsx,*.story.tsx -i style-loader,css-loader deps",
69
- "storybook": "start-storybook -p 8000 --ci"
70
- },
71
- "gitHead": "a99419e50e88d5c4a038ae53e095e2c5708c99cd",
72
- "xdevDependencies": {
73
- "css-loader": "^6.6.0",
74
- "style-loader": "^3.3.1"
75
- }
67
+ "gitHead": "c2a721c5bcc877187dc233835b9189f2b984122f"
76
68
  }