intelicoreact 1.5.40 → 1.5.41

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 (177) hide show
  1. package/package.json +1 -1
  2. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.interface.js +0 -4
  3. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.stories.js +0 -89
  4. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.test.js +0 -130
  5. package/dist/Atomic/FormElements/ActionAlert/index.js +0 -17
  6. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.interface.js +0 -4
  7. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.stories.js +0 -81
  8. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.test.js +0 -104
  9. package/dist/Atomic/FormElements/AdvancedStatus/index.js +0 -17
  10. package/dist/Atomic/FormElements/Calendar/Calendar.props.js +0 -4
  11. package/dist/Atomic/FormElements/Calendar/Calendar.stories.js +0 -108
  12. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.interface.js +0 -4
  13. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.stories.js +0 -100
  14. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.test.js +0 -143
  15. package/dist/Atomic/FormElements/CheckboxInput/index.js +0 -17
  16. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.interface.js +0 -4
  17. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.stories.js +0 -94
  18. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.test.js +0 -177
  19. package/dist/Atomic/FormElements/CheckboxesLine/index.js +0 -17
  20. package/dist/Atomic/FormElements/Datepicker/Datepicker.stories.js +0 -51
  21. package/dist/Atomic/FormElements/Dropdown/Dropdown.stories.js +0 -596
  22. package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.stories.js +0 -272
  23. package/dist/Atomic/FormElements/FileLoader/FileLoader.stories.js +0 -182
  24. package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.stories.js +0 -327
  25. package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.stories.js +0 -186
  26. package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.stories.js +0 -84
  27. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.stories.js +0 -107
  28. package/dist/Atomic/FormElements/Input/Input.stories.js +0 -251
  29. package/dist/Atomic/FormElements/InputCalendar/InputCalendar.stories.js +0 -115
  30. package/dist/Atomic/FormElements/InputColor/InputColor.stories.js +0 -119
  31. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.interface.js +0 -4
  32. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.stories.js +0 -178
  33. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.test.js +0 -129
  34. package/dist/Atomic/FormElements/InputCurrency/index.js +0 -16
  35. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.stories.js +0 -123
  36. package/dist/Atomic/FormElements/InputLink/InputLink.stories.js +0 -140
  37. package/dist/Atomic/FormElements/InputMask/InputMask.stories.js +0 -303
  38. package/dist/Atomic/FormElements/InputMask2/InputMask2.stories.js +0 -314
  39. package/dist/Atomic/FormElements/InputMask3/InputMask3.stories.js +0 -335
  40. package/dist/Atomic/FormElements/InputWithAction/InputWithAction.stories.js +0 -276
  41. package/dist/Atomic/FormElements/InputsRow/InputsRow.stories.js +0 -56
  42. package/dist/Atomic/FormElements/Label/Label.interface.js +0 -4
  43. package/dist/Atomic/FormElements/Label/Label.stories.js +0 -47
  44. package/dist/Atomic/FormElements/Label/Label.test.js +0 -167
  45. package/dist/Atomic/FormElements/Label/index.js +0 -17
  46. package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.stories.js +0 -172
  47. package/dist/Atomic/FormElements/MultiSelect/MultiSelect.stories.js +0 -121
  48. package/dist/Atomic/FormElements/NumericInput/NumericInput.stories.js +0 -184
  49. package/dist/Atomic/FormElements/RadioGroup/RadioGroup.stories.js +0 -79
  50. package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.stories.js +0 -151
  51. package/dist/Atomic/FormElements/RadioInput/RadioInput.stories.js +0 -67
  52. package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.stories.js +0 -116
  53. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.stories.js +0 -107
  54. package/dist/Atomic/FormElements/RangeInputs/RangeInputs.stories.js +0 -92
  55. package/dist/Atomic/FormElements/RangeList/RangeList.stories.js +0 -169
  56. package/dist/Atomic/FormElements/RangeSlider/RangeSlider.stories.js +0 -401
  57. package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.stories.js +0 -314
  58. package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.stories.js +0 -137
  59. package/dist/Atomic/FormElements/Switcher/Switcher.stories.js +0 -91
  60. package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.stories.js +0 -104
  61. package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.stories.js +0 -96
  62. package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.stories.js +0 -140
  63. package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.stories.js +0 -112
  64. package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.stories.js +0 -145
  65. package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.stories.js +0 -158
  66. package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.stories.js +0 -101
  67. package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.stories.js +0 -131
  68. package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.stories.js +0 -357
  69. package/dist/Atomic/FormElements/Text/Text.stories.js +0 -80
  70. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.stories.js +0 -106
  71. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.test.js +0 -93
  72. package/dist/Atomic/FormElements/Textarea/Textarea.stories.js +0 -103
  73. package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.stories.js +0 -174
  74. package/dist/Atomic/FormElements/TimeRange/TimeRange.interface.js +0 -4
  75. package/dist/Atomic/FormElements/TimeRange/TimeRange.stories.js +0 -40
  76. package/dist/Atomic/FormElements/TimeRange/TimeRange.test.js +0 -163
  77. package/dist/Atomic/FormElements/TimeRange/index.js +0 -17
  78. package/dist/Atomic/FormElements/UserContacts/UserContact.test.js +0 -381
  79. package/dist/Atomic/FormElements/UserContacts/UserContacts.interface.js +0 -4
  80. package/dist/Atomic/FormElements/UserContacts/UserContacts.stories.js +0 -74
  81. package/dist/Atomic/FormElements/UserContacts/index.js +0 -17
  82. package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.stories.js +0 -193
  83. package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.stories.js +0 -147
  84. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.stories.js +0 -151
  85. package/dist/Atomic/Layout/Header/Header.stories.js +0 -71
  86. package/dist/Atomic/Layout/MainMenu/MainMenu.stories.js +0 -115
  87. package/dist/Atomic/Layout/Spinner/Spinner.interface.js +0 -4
  88. package/dist/Atomic/Layout/Spinner/Spinner.stories.js +0 -46
  89. package/dist/Atomic/Layout/Spinner/Spinner.test.js +0 -54
  90. package/dist/Atomic/Layout/Spinner/index.js +0 -17
  91. package/dist/Atomic/UI/Accordion/Accordion.interface.js +0 -4
  92. package/dist/Atomic/UI/Accordion/Accordion.stories.js +0 -168
  93. package/dist/Atomic/UI/Accordion/Accordion.test.js +0 -54
  94. package/dist/Atomic/UI/Accordion/AccordionItem.test.js +0 -50
  95. package/dist/Atomic/UI/Accordion/index.js +0 -17
  96. package/dist/Atomic/UI/AccordionTable/AccordionTable.stories.js +0 -268
  97. package/dist/Atomic/UI/AccordionText/AccordionText.stories.js +0 -125
  98. package/dist/Atomic/UI/AdvancedTag/AdvancedTags.stories.js +0 -115
  99. package/dist/Atomic/UI/Alert/Alert.stories.js +0 -81
  100. package/dist/Atomic/UI/Arrow/Arrow.stories.js +0 -62
  101. package/dist/Atomic/UI/Box/Box.stories.js +0 -114
  102. package/dist/Atomic/UI/Button/Button.stories.js +0 -105
  103. package/dist/Atomic/UI/Button/Button.test.js +0 -147
  104. package/dist/Atomic/UI/ButtonsBar/ButtonsBar.stories.js +0 -129
  105. package/dist/Atomic/UI/Chart/Chart.stories.js +0 -93
  106. package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.stories.js +0 -85
  107. package/dist/Atomic/UI/DateTime/DateTime.stories.js +0 -50
  108. package/dist/Atomic/UI/DoubleString/DoubleString.stories.js +0 -79
  109. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.interface.js +0 -4
  110. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.stories.js +0 -98
  111. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.test.js +0 -51
  112. package/dist/Atomic/UI/DynamicIcon/index.js +0 -17
  113. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.stories.js +0 -98
  114. package/dist/Atomic/UI/Hint/Hint.stories.js +0 -101
  115. package/dist/Atomic/UI/Hint/index.js +0 -16
  116. package/dist/Atomic/UI/Modal/Modal.interface.js +0 -4
  117. package/dist/Atomic/UI/Modal/Modal.stories.js +0 -370
  118. package/dist/Atomic/UI/Modal/ModalHOC.stories.js +0 -191
  119. package/dist/Atomic/UI/Modal/ModalHOC.test.js +0 -187
  120. package/dist/Atomic/UI/Modal/index.js +0 -26
  121. package/dist/Atomic/UI/Modal/partials/ModalFooter.test.js +0 -118
  122. package/dist/Atomic/UI/Modal/partials/ModalTitle.test.js +0 -126
  123. package/dist/Atomic/UI/Modal/partials/useMobileModal.test.js +0 -133
  124. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.interface.js +0 -4
  125. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.stories.js +0 -513
  126. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.test.js +0 -84
  127. package/dist/Atomic/UI/MonoAccordion/index.js +0 -17
  128. package/dist/Atomic/UI/NavLine/NavLine.interface.js +0 -4
  129. package/dist/Atomic/UI/NavLine/NavLine.stories.js +0 -434
  130. package/dist/Atomic/UI/NavLine/NavLine.test.js +0 -311
  131. package/dist/Atomic/UI/NavLine/index.js +0 -17
  132. package/dist/Atomic/UI/PageTitle/PageTitle.interface.js +0 -4
  133. package/dist/Atomic/UI/PageTitle/PageTitle.stories.js +0 -62
  134. package/dist/Atomic/UI/PageTitle/PageTitle.test.js +0 -181
  135. package/dist/Atomic/UI/PageTitle/index.js +0 -17
  136. package/dist/Atomic/UI/PieChart/PieChar.interface.js +0 -4
  137. package/dist/Atomic/UI/PieChart/PieChart.stories.js +0 -82
  138. package/dist/Atomic/UI/PieChart/PieChart.test.js +0 -142
  139. package/dist/Atomic/UI/PieChart/index.js +0 -26
  140. package/dist/Atomic/UI/Price/Price.interface.js +0 -4
  141. package/dist/Atomic/UI/Price/Price.stories.js +0 -52
  142. package/dist/Atomic/UI/Price/Price.test.js +0 -83
  143. package/dist/Atomic/UI/Price/index.js +0 -17
  144. package/dist/Atomic/UI/PriceRange/PriceRange.interface.js +0 -4
  145. package/dist/Atomic/UI/PriceRange/PriceRange.stories.js +0 -51
  146. package/dist/Atomic/UI/PriceRange/PriceRange.test.js +0 -72
  147. package/dist/Atomic/UI/PriceRange/index.js +0 -17
  148. package/dist/Atomic/UI/ProgressLine/ProgressLine.interface.js +0 -4
  149. package/dist/Atomic/UI/ProgressLine/ProgressLine.stories.js +0 -163
  150. package/dist/Atomic/UI/ProgressLine/ProgressLine.test.js +0 -60
  151. package/dist/Atomic/UI/ProgressLine/index.js +0 -17
  152. package/dist/Atomic/UI/Status/Status.interface.js +0 -4
  153. package/dist/Atomic/UI/Status/Status.stories.js +0 -79
  154. package/dist/Atomic/UI/Status/Status.test.js +0 -103
  155. package/dist/Atomic/UI/Status/index.js +0 -17
  156. package/dist/Atomic/UI/Table/Table.stories.js +0 -250
  157. package/dist/Atomic/UI/Tag/Tag.interface.js +0 -4
  158. package/dist/Atomic/UI/Tag/Tag.stories.js +0 -108
  159. package/dist/Atomic/UI/Tag/Tag.test.js +0 -75
  160. package/dist/Atomic/UI/Tag/index.js +0 -17
  161. package/dist/Atomic/UI/TagList/TagList.stories.js +0 -169
  162. package/dist/Atomic/UI/UserBox/UserBox.interface.js +0 -4
  163. package/dist/Atomic/UI/UserBox/UserBox.stories.js +0 -57
  164. package/dist/Atomic/UI/UserBox/UserBox.test.js +0 -136
  165. package/dist/Atomic/UI/UserBox/index.js +0 -17
  166. package/dist/Atomic/UI/WizardStepper/WizardStepper.stories.js +0 -70
  167. package/dist/Functions/useIsMobile/index.js +0 -17
  168. package/dist/Functions/useIsMobile/useIsMobile.js +0 -33
  169. package/dist/Functions/useIsMobile/useIsMobile.test.js +0 -104
  170. package/dist/Functions/useKeyPress/useHandleKeyPress.test.js +0 -96
  171. package/dist/Functions/useKeyPress/useKeyPress.test.js +0 -87
  172. package/dist/Molecular/FormElement/FormElement.stories.js +0 -92
  173. package/dist/Molecular/FormWithDependOn/FormWithDependOn.stories.js +0 -301
  174. package/dist/Molecular/InputAddress/InputAddress.stories.js +0 -541
  175. package/dist/Molecular/InputPassword/InputPassword.stories.js +0 -86
  176. package/dist/types/base.interface.js +0 -4
  177. package/dist/types/base.types.js +0 -4
@@ -1,335 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- InputMask3Template: function() {
13
- return InputMask3Template;
14
- },
15
- default: function() {
16
- return _default;
17
- }
18
- });
19
- const _jsxruntime = require("react/jsx-runtime");
20
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
21
- const _config = require("./config");
22
- require("../../../../../scss/main.scss");
23
- const _InputMask3 = /*#__PURE__*/ _interop_require_default(require("./InputMask3"));
24
- function _interop_require_default(obj) {
25
- return obj && obj.__esModule ? obj : {
26
- default: obj
27
- };
28
- }
29
- function _getRequireWildcardCache(nodeInterop) {
30
- if (typeof WeakMap !== "function") return null;
31
- var cacheBabelInterop = new WeakMap();
32
- var cacheNodeInterop = new WeakMap();
33
- return (_getRequireWildcardCache = function(nodeInterop) {
34
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
35
- })(nodeInterop);
36
- }
37
- function _interop_require_wildcard(obj, nodeInterop) {
38
- if (!nodeInterop && obj && obj.__esModule) {
39
- return obj;
40
- }
41
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
42
- return {
43
- default: obj
44
- };
45
- }
46
- var cache = _getRequireWildcardCache(nodeInterop);
47
- if (cache && cache.has(obj)) {
48
- return cache.get(obj);
49
- }
50
- var newObj = {
51
- __proto__: null
52
- };
53
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
54
- for(var key in obj){
55
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
56
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
57
- if (desc && (desc.get || desc.set)) {
58
- Object.defineProperty(newObj, key, desc);
59
- } else {
60
- newObj[key] = obj[key];
61
- }
62
- }
63
- }
64
- newObj.default = obj;
65
- if (cache) {
66
- cache.set(obj, newObj);
67
- }
68
- return newObj;
69
- }
70
- global.lng = 'en';
71
- const _default = {
72
- title: 'Form Elements/Input Mask3',
73
- component: _InputMask3.default,
74
- argTypes: {
75
- maskPattern: {
76
- title: 'Mask Pattern',
77
- description: `<b>"${_config.DIGIT_MASK_CHAR}"</b> - Digit.<br/><b>"${_config.UPPERCASE_LETTER_MASK_CHAR}"</b> or <b>"${_config.LOWERCASE_LETTER_MASK_CHAR}"</b> - Letter.`
78
- },
79
- maskPatternPlaceholder: {
80
- title: 'Pattern Placeholder',
81
- description: 'Fine-tuning the mask character.<br/>Works if <b>"usePatternPlaceholder"</b> is <b>ENABLED</b>.'
82
- },
83
- usePatternPlaceholder: {
84
- title: 'Pattern Placeholder',
85
- type: 'boolean',
86
- default: false,
87
- description: 'Turn <b>On/Off</b> use of <b>"maskPatternPlaceholder"</b>'
88
- },
89
- maskPlaceholder: {
90
- title: 'Mask Placeholder',
91
- type: 'string',
92
- description: 'General Mask Char.<br/>Uses if <b>"usePatternPlaceholder"</b> is <b>Turned Off</b> or Specialized Mask Char is not recieved.'
93
- },
94
- maskDigitPlaceholder: {
95
- title: 'Specialized Mask Placeholder for Digit Char',
96
- description: 'Specialized Mask Placeholder for <b>Digit</b>.'
97
- },
98
- maskLetterPlaceholder: {
99
- title: 'Specialized Mask Placeholder for Letter Char',
100
- description: 'Specialized Mask Placeholder for <b>Letter</b>.'
101
- },
102
- maskAsPlaceholder: {
103
- title: 'Use Mask As Placeholder',
104
- description: 'Use Mask As Placeholder',
105
- type: 'boolean',
106
- default: true
107
- },
108
- hideMaskOnBlur: {
109
- title: 'Hide mask on field blur if value is Empty',
110
- type: 'boolean',
111
- default: true
112
- },
113
- isCaseSensitive: {
114
- type: 'boolean',
115
- default: false,
116
- description: 'Turn <b>On/Off</b> use of <b>Case Sensitive Mode</b>.'
117
- },
118
- adaptTextCase: {
119
- type: 'boolean',
120
- default: false,
121
- description: 'Turn <b>On/Off</b> use of <b>Auto Text Case Adapt</b>.'
122
- },
123
- icon: {
124
- type: 'object',
125
- description: 'Icon for Input.<br/>Will works only if <b>"showIcon"</b> is <b>ENABLED</b>.'
126
- },
127
- showIcon: {
128
- type: 'boolean',
129
- default: false,
130
- description: 'Turn <b>On/Off</b> Icon Display.'
131
- },
132
- isIconLeft: {
133
- type: 'boolean',
134
- default: false,
135
- description: 'Display Icon on Left Side.'
136
- },
137
- isIconRight: {
138
- type: 'boolean',
139
- default: false,
140
- description: 'Display Icon on Right Side.'
141
- },
142
- isClearable: {
143
- type: 'boolean',
144
- default: false,
145
- description: 'Display Clear Button and Enable Clearable Possibility.'
146
- },
147
- withHiddenMode: {
148
- type: 'boolean',
149
- default: false,
150
- description: 'Enable Password/Hidden Mode.'
151
- },
152
- hiddenChar: {
153
- type: 'string',
154
- description: 'Hidden char. If Password/Hidden Mode ENABLED value will be masked as hiddenChar',
155
- default: '*'
156
- },
157
- value: {
158
- type: 'string',
159
- description: 'Input Value',
160
- default: ''
161
- },
162
- blinkErrors: {
163
- type: 'boolean',
164
- default: true,
165
- description: 'Turn <b>On/Off</b> Blinking Error Mode.'
166
- },
167
- blinkDuration: {
168
- type: 'number',
169
- description: 'Duration of <b>Error Blink</b> in <b>ms</b>.',
170
- default: 100
171
- },
172
- showErrors: {
173
- type: 'boolean',
174
- default: true,
175
- description: 'Turn <b>On/Off</b> Display of Errors.'
176
- },
177
- errors: {
178
- type: 'object',
179
- description: `Errors Descriptions: <br/>
180
- <code>
181
- {
182
- ${Object.keys(_config.DEFAULT_ERRORS).map((key)=>`<br/> &nbsp;&nbsp;&nbsp;&nbsp;${key}: '${_config.DEFAULT_ERRORS[key]}'`)}
183
- <br/>
184
- }
185
- </code>`
186
- },
187
- error: {
188
- type: 'string',
189
- default: '',
190
- description: 'Custom Error Text. If is not empty, field would be hightlited'
191
- },
192
- onChange: {
193
- type: 'function',
194
- description: 'Callback Function for Handle <b>Input Value Change</b>'
195
- },
196
- onFocus: {
197
- type: 'function',
198
- description: 'Callback Function for Handle <b>Input Focus</b>'
199
- },
200
- onBlur: {
201
- type: 'function',
202
- description: 'Callback Function for Handle <b>Input Blur</b>'
203
- },
204
- className: {
205
- type: 'string',
206
- description: 'ClassName For Input Mask Wrapper',
207
- default: ''
208
- },
209
- isFocusedDefault: {
210
- type: 'boolean',
211
- description: 'Set Autofocus On Render',
212
- default: false
213
- },
214
- imitateTypingOnPaste: {
215
- type: 'boolean',
216
- description: '<b>Manual Input Simulation Mode</b> when called <b>Pasting Text Event</b>.',
217
- default: false
218
- },
219
- imitateTypingOnPasteDelay: {
220
- type: 'number',
221
- description: '<b>Delay Time</b> for <b>Manual Input Simulation Mode</b> when called <b>Pasting Text Event</b>.',
222
- default: 100
223
- },
224
- showHint: {
225
- type: 'boolean',
226
- description: 'Turn <b>On/Off</b> Input Hint.',
227
- default: false
228
- },
229
- hintText: {
230
- type: 'string',
231
- description: 'Input Hint Text.',
232
- default: ''
233
- },
234
- hintClassName: {
235
- type: 'string',
236
- description: 'ClassName for Input Hint.',
237
- default: ''
238
- },
239
- isHintLeft: {
240
- type: 'boolean',
241
- default: false,
242
- description: 'Display Input Hint on Left Side.'
243
- },
244
- isHintRight: {
245
- type: 'boolean',
246
- default: true,
247
- description: 'Display Input Hint on Right Side.'
248
- },
249
- hintPosition: {
250
- type: 'string',
251
- description: 'Position of <b>Input Hint Text</b>',
252
- default: 'right'
253
- },
254
- attributesOfNativeInput: {
255
- description: 'Object. Optional. This is list of attributes to add in native input'
256
- }
257
- }
258
- };
259
- const Template = (args)=>{
260
- const ref = (0, _react.useRef)(null);
261
- const [value, setValue] = (0, _react.useState)('0123456789');
262
- const onChange = (v, cv)=>{
263
- console.log('onChange', {
264
- value,
265
- v,
266
- cv
267
- });
268
- setValue(v);
269
- };
270
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
271
- children: [
272
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_InputMask3.default, {
273
- ...args,
274
- name: "storybook-InputMask3",
275
- onChange: onChange,
276
- value: value,
277
- onFilled: ()=>console.log('Done')
278
- }),
279
- /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
280
- onClick: ()=>setValue(''),
281
- children: "Reset Value"
282
- })
283
- ]
284
- });
285
- };
286
- const InputMask3Template = Template.bind({});
287
- InputMask3Template.args = {
288
- // maskPattern: 'DD/DD/DDDD',
289
- // maskPatternPlaceholder: 'MM/DD/YYYY',
290
- maskPattern: 'DDD-DDD-DDDD',
291
- maskPatternPlaceholder: 'XXX-XXX-XXXX',
292
- usePatternPlaceholder: true,
293
- maskPlaceholder: 'X',
294
- maskDigitPlaceholder: '',
295
- maskLetterPlaceholder: '',
296
- maskAsPlaceholder: true,
297
- maxEditableIndex: -1,
298
- maxHiddenIndex: -1,
299
- isCaseSensitive: false,
300
- adaptTextCase: false,
301
- // icon: <Type />,
302
- showIcon: false,
303
- isIconLeft: true,
304
- isIconRight: false,
305
- isClearable: true,
306
- isLoading: false,
307
- withHiddenMode: false,
308
- hiddenChar: '*',
309
- value: '1234567890',
310
- onChange: ()=>{},
311
- blinkErrors: true,
312
- blinkDuration: 100,
313
- showErrors: true,
314
- errors: {},
315
- error: '',
316
- onFocus: ()=>{},
317
- onBlur: ()=>{},
318
- className: '',
319
- isFocusedDefault: false,
320
- disabled: false,
321
- imitateTypingOnPaste: false,
322
- imitateTypingOnPasteDelay: 100,
323
- showHint: false,
324
- hintText: 'Hint Text',
325
- hintClassName: '',
326
- isHintRight: true,
327
- isHintLeft: false,
328
- hintPosition: 'right',
329
- hideMaskOnBlur: true,
330
- iconDynamicKey: 'Anchor',
331
- iconDynamicProps: {
332
- size: 16,
333
- color: 'green'
334
- }
335
- };
@@ -1,276 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- InputWithActionTemplate: function() {
13
- return InputWithActionTemplate;
14
- },
15
- default: function() {
16
- return _default;
17
- }
18
- });
19
- const _jsxruntime = require("react/jsx-runtime");
20
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
21
- const _InputWithAction = /*#__PURE__*/ _interop_require_default(require("./InputWithAction"));
22
- function _interop_require_default(obj) {
23
- return obj && obj.__esModule ? obj : {
24
- default: obj
25
- };
26
- }
27
- function _getRequireWildcardCache(nodeInterop) {
28
- if (typeof WeakMap !== "function") return null;
29
- var cacheBabelInterop = new WeakMap();
30
- var cacheNodeInterop = new WeakMap();
31
- return (_getRequireWildcardCache = function(nodeInterop) {
32
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
33
- })(nodeInterop);
34
- }
35
- function _interop_require_wildcard(obj, nodeInterop) {
36
- if (!nodeInterop && obj && obj.__esModule) {
37
- return obj;
38
- }
39
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
40
- return {
41
- default: obj
42
- };
43
- }
44
- var cache = _getRequireWildcardCache(nodeInterop);
45
- if (cache && cache.has(obj)) {
46
- return cache.get(obj);
47
- }
48
- var newObj = {
49
- __proto__: null
50
- };
51
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
52
- for(var key in obj){
53
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
54
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
55
- if (desc && (desc.get || desc.set)) {
56
- Object.defineProperty(newObj, key, desc);
57
- } else {
58
- newObj[key] = obj[key];
59
- }
60
- }
61
- }
62
- newObj.default = obj;
63
- if (cache) {
64
- cache.set(obj, newObj);
65
- }
66
- return newObj;
67
- }
68
- const _default = {
69
- title: 'Form Elements/InputWithAction',
70
- component: _InputWithAction.default,
71
- argTypes: {
72
- className: {
73
- description: 'string - classes of component'
74
- },
75
- inputClassName: {
76
- description: 'string - classes of inner component "Input"'
77
- },
78
- isHideAction: {
79
- description: 'boolean - if false then render the action trigger'
80
- },
81
- actionContent: {
82
- description: 'string or JSX or undefined - action trigger content (if isHideAction: false, but actionContent: undefinet then will be rendered actionLabel)'
83
- },
84
- actionLabel: {
85
- description: 'string - action trigger text if actionContent: undefined'
86
- },
87
- doAction: {
88
- description: 'function - action method if actionContent: undefined (await doAction?.(value, actionProps))'
89
- },
90
- actionProps: {
91
- description: 'object - additional properties for doAction method'
92
- },
93
- isNoChangeAfterAction: {
94
- description: 'boolean - if true then after the action, the onChange(actionResult) will not be called'
95
- },
96
- isWithCopy: {
97
- description: 'boolean - if true then render the copy button'
98
- },
99
- copyLabel: {
100
- description: 'text - copy button text, default "Coppy"'
101
- },
102
- copy: {
103
- description: 'function - copy button method, copy(inputValue)'
104
- },
105
- copyIcon: {
106
- description: 'JSX'
107
- },
108
- isNoCopyIcon: {
109
- description: 'bolean - if true then copy icon is not render'
110
- },
111
- isCopyIconRight: {
112
- description: 'bolean - enable position to right for copy icon'
113
- },
114
- copyButtonVariant: {
115
- description: 'sting - see variants for "Button" component'
116
- },
117
- isLodaing: {
118
- description: 'boolean - on|off inner spiner'
119
- },
120
- disabled: {
121
- description: 'boolean'
122
- },
123
- isInputZoneDisabled: {
124
- description: 'boolean'
125
- },
126
- isInputDisabled: {
127
- description: 'boolean'
128
- },
129
- error: {
130
- description: 'text - coloring input if is errored'
131
- },
132
- isPriceInput: {
133
- description: 'boolean - if true, the input will be styled as PriceInput'
134
- },
135
- withDelete: {
136
- description: 'boolean - add clear-cross by hover'
137
- },
138
- onlyNumbers: {
139
- description: 'object - only numbers'
140
- },
141
- softStringMode: {
142
- description: 'boolean - only strings'
143
- },
144
- hardStringMode: {
145
- description: 'boolean - soft or hard validation'
146
- },
147
- isTwoDigitAfterDot: {
148
- description: 'boolean - only two digits after dot'
149
- },
150
- isFocusDefault: {
151
- description: 'boolean - if true, input will be focused on mount'
152
- },
153
- isCropFirstNool: {
154
- description: 'boolean - if true and isPriceInput - true, crop first 0'
155
- },
156
- placeholder: {
157
- description: 'text'
158
- },
159
- type: {
160
- description: "'text', 'number', 'password', 'color', 'date', 'datetime-local', 'month', 'time', 'email', 'range'",
161
- control: {
162
- type: 'select',
163
- options: [
164
- 'text',
165
- 'number',
166
- 'password',
167
- 'color',
168
- 'date',
169
- 'datetime-local',
170
- 'month',
171
- 'time',
172
- 'email',
173
- 'range'
174
- ]
175
- }
176
- },
177
- icon: {
178
- description: 'JSX'
179
- },
180
- value: {
181
- description: '(* - required prop)'
182
- },
183
- mask: {
184
- description: 'string: force input to masked https://www.npmjs.com/package/react-input-mask'
185
- },
186
- symbolsLimit: {
187
- description: 'Set limit of symbols in input, overhead will be ignored'
188
- },
189
- onBlur: {
190
- description: 'custom callback on blur'
191
- },
192
- onFocus: {
193
- description: 'custom callback on focus'
194
- },
195
- onKeyUp: {
196
- description: 'custom callback on keyup, returns event keyCode'
197
- },
198
- isNumericMobileKeyboard: {
199
- description: 'Enable Mobile Numeric Keyboard',
200
- type: 'boolean',
201
- default: false
202
- }
203
- }
204
- };
205
- const styles = {
206
- with: '200px'
207
- };
208
- const doAction = async (value, props)=>{
209
- return new Promise((resolve)=>{
210
- const { newValue, onChange } = props;
211
- setTimeout(()=>{
212
- resolve(newValue) //? if isNoChangeAfterAction: false
213
- ;
214
- //? or
215
- // onChange(newValue) //? if actionProps has onChange
216
- }, 1000);
217
- });
218
- };
219
- const copy = (value)=>alert(value);
220
- const Template = (args)=>{
221
- const [value, setValue] = (0, _react.useState)();
222
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_InputWithAction.default, {
223
- ...args,
224
- value: value,
225
- doAction: doAction,
226
- copy: copy,
227
- actionProps: {
228
- newValue: 'test-test-test',
229
- setValue
230
- },
231
- style: styles,
232
- onChange: setValue
233
- });
234
- };
235
- const InputWithActionTemplate = Template.bind({});
236
- InputWithActionTemplate.args = {
237
- testId: 'test',
238
- className: 'test-class-name',
239
- inputClassName: 'test-class-name__input',
240
- isHideAction: false,
241
- // actionContent,
242
- // actionLabel: 'Generate',
243
- isNoChangeAfterAction: false,
244
- isWithCopy: true,
245
- // copyLabel: 'Coppy this value',
246
- // copy,
247
- copyIcon: null,
248
- isNoCopyIcon: true,
249
- isCopyIconRight: false,
250
- // copyButtonVariant: 'primary',
251
- disabled: false,
252
- isInputZoneDisabled: false,
253
- isInputDisabled: false,
254
- isLodaing: false,
255
- type: 'text',
256
- isFocusDefault: false,
257
- // onlyNumbers: {type: 'float', decimalPlaces: 2, min: 0, max: 1000, isNoEmptyValues: true},
258
- isOnlyString: false,
259
- isPriceInput: false,
260
- isTwoDigitAfterDot: false,
261
- isReadOnly: false,
262
- error: '',
263
- mask: '',
264
- softStringMode: false,
265
- withDelete: false,
266
- symbolsLimit: 255,
267
- placeholder: 'Placeholder',
268
- // icon: <User className="mr5" />,
269
- isNumericMobileKeyboard: false,
270
- isNotValidateASCII: false,
271
- isCropFirstNool: false,
272
- name: 'test-name',
273
- fieldKey: 'test-fieldKey',
274
- key: 'test-key',
275
- id: 'test-id'
276
- };
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- InputsRowTemplate: function() {
13
- return InputsRowTemplate;
14
- },
15
- default: function() {
16
- return _default;
17
- }
18
- });
19
- const _jsxruntime = require("react/jsx-runtime");
20
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
21
- const _InputsRow = /*#__PURE__*/ _interop_require_default(require("./InputsRow"));
22
- require("../../../../../scss/main.scss");
23
- function _interop_require_default(obj) {
24
- return obj && obj.__esModule ? obj : {
25
- default: obj
26
- };
27
- }
28
- global.lng = 'en';
29
- const _default = {
30
- title: 'Form Elements/InputsRow',
31
- component: _InputsRow.default
32
- };
33
- const Template = (args)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_InputsRow.default, {
34
- ...args
35
- });
36
- const InputsRowTemplate = Template.bind({});
37
- InputsRowTemplate.args = {
38
- title: 'InputsRow title',
39
- paramPlaceholder: 'Params placeholder',
40
- valuePlaceholder: 'Value placeholder',
41
- descriptionPlaceholder: 'Description placeholder',
42
- items: [
43
- {
44
- param: 'x-leadgen-id',
45
- value: 'QUIDDI_220',
46
- description: '',
47
- rowId: '1'
48
- },
49
- {
50
- param: '',
51
- value: '',
52
- description: '',
53
- rowId: '2'
54
- }
55
- ]
56
- };
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });