react-restyle-components 0.1.85 → 0.1.86

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 (200) hide show
  1. package/lib/cjs/index.d.ts +2 -0
  2. package/lib/cjs/index.js +18 -0
  3. package/lib/cjs/src/App.d.ts +4 -0
  4. package/lib/cjs/src/App.js +15 -0
  5. package/lib/cjs/src/core-components/atoms/buttons/button.stories.d.ts +6 -0
  6. package/lib/cjs/src/core-components/atoms/buttons/button.stories.js +42 -0
  7. package/lib/cjs/src/core-components/atoms/buttons/buttons.component.d.ts +11 -0
  8. package/lib/cjs/src/core-components/atoms/buttons/buttons.component.js +15 -0
  9. package/lib/cjs/src/core-components/atoms/buttons/buttons.test.js +13 -0
  10. package/lib/cjs/src/core-components/atoms/check-box/checkBox.component.d.ts +11 -0
  11. package/lib/cjs/src/core-components/atoms/check-box/checkBox.component.js +47 -0
  12. package/lib/cjs/src/core-components/atoms/check-box/checkBox.stories.d.ts +6 -0
  13. package/lib/cjs/src/core-components/atoms/check-box/checkBox.stories.js +26 -0
  14. package/lib/cjs/src/core-components/atoms/check-box/checkBox.test.d.ts +1 -0
  15. package/lib/cjs/src/core-components/atoms/check-box/checkBox.test.js +13 -0
  16. package/lib/cjs/src/core-components/atoms/date-picker/date-picker.component.d.ts +13 -0
  17. package/lib/cjs/src/core-components/atoms/date-picker/date-picker.component.js +52 -0
  18. package/lib/cjs/src/core-components/atoms/date-picker/date-picker.stories.d.ts +6 -0
  19. package/lib/cjs/src/core-components/atoms/date-picker/date-picker.stories.js +24 -0
  20. package/lib/cjs/src/core-components/atoms/date-picker/date-picker.test.d.ts +1 -0
  21. package/lib/cjs/src/core-components/atoms/date-picker/date-picker.test.js +14 -0
  22. package/lib/cjs/src/core-components/atoms/form/form.component.d.ts +102 -0
  23. package/lib/cjs/src/core-components/atoms/form/form.component.js +192 -0
  24. package/lib/cjs/src/core-components/atoms/form/form.test.d.ts +1 -0
  25. package/lib/cjs/src/core-components/atoms/form/form.test.js +99 -0
  26. package/lib/cjs/src/core-components/atoms/icons/icons.component.d.ts +11 -0
  27. package/lib/cjs/src/core-components/atoms/icons/icons.component.js +66 -0
  28. package/lib/cjs/src/core-components/atoms/icons/icons.stories.d.ts +6 -0
  29. package/lib/cjs/src/core-components/atoms/icons/icons.stories.js +22 -0
  30. package/lib/cjs/src/core-components/atoms/icons/icons.test.d.ts +1 -0
  31. package/lib/cjs/src/core-components/atoms/icons/icons.test.js +15 -0
  32. package/lib/cjs/src/core-components/atoms/input/input-otp.component.d.ts +15 -0
  33. package/lib/cjs/src/core-components/atoms/input/input-otp.component.js +88 -0
  34. package/lib/cjs/src/core-components/atoms/input/input-pin.component.d.ts +16 -0
  35. package/lib/cjs/src/core-components/atoms/input/input-pin.component.js +107 -0
  36. package/lib/cjs/src/core-components/atoms/input/input-pin.stories.d.ts +6 -0
  37. package/lib/cjs/src/core-components/atoms/input/input-pin.stories.js +23 -0
  38. package/lib/cjs/src/core-components/atoms/input/input-pin.test.d.ts +1 -0
  39. package/lib/cjs/src/core-components/atoms/input/input-pin.test.js +17 -0
  40. package/lib/cjs/src/core-components/atoms/input/input.component.d.ts +19 -0
  41. package/lib/cjs/src/core-components/atoms/input/input.component.js +45 -0
  42. package/lib/cjs/src/core-components/atoms/input/input.stories.d.ts +6 -0
  43. package/lib/cjs/src/core-components/atoms/input/input.stories.js +24 -0
  44. package/lib/cjs/src/core-components/atoms/input/input.test.d.ts +1 -0
  45. package/lib/cjs/src/core-components/atoms/input/input.test.js +17 -0
  46. package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +11 -0
  47. package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.component.js +64 -0
  48. package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.stories.d.ts +6 -0
  49. package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.stories.js +20 -0
  50. package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.test.d.ts +1 -0
  51. package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.test.js +13 -0
  52. package/lib/cjs/src/core-components/atoms/loader/loader.component.d.ts +4 -0
  53. package/lib/cjs/src/core-components/atoms/loader/loader.component.js +61 -0
  54. package/lib/cjs/src/core-components/atoms/loader/loader.stories.d.ts +6 -0
  55. package/lib/cjs/src/core-components/atoms/loader/loader.stories.js +16 -0
  56. package/lib/cjs/src/core-components/atoms/loader/loader.test.d.ts +1 -0
  57. package/lib/cjs/src/core-components/atoms/loader/loader.test.js +13 -0
  58. package/lib/cjs/src/core-components/atoms/radio/radio.component.d.ts +10 -0
  59. package/lib/cjs/src/core-components/atoms/radio/radio.component.js +49 -0
  60. package/lib/cjs/src/core-components/atoms/radio/radio.stories.d.ts +6 -0
  61. package/lib/cjs/src/core-components/atoms/radio/radio.stories.js +25 -0
  62. package/lib/cjs/src/core-components/atoms/radio/radio.test.d.ts +1 -0
  63. package/lib/cjs/src/core-components/atoms/radio/radio.test.js +13 -0
  64. package/lib/cjs/src/core-components/atoms/stepper/stepper.component.d.ts +10 -0
  65. package/lib/cjs/src/core-components/atoms/stepper/stepper.component.js +42 -0
  66. package/lib/cjs/src/core-components/atoms/stepper/stepper.stories.d.ts +6 -0
  67. package/lib/cjs/src/core-components/atoms/stepper/stepper.stories.js +21 -0
  68. package/lib/cjs/src/core-components/atoms/stepper/stepper.test.d.ts +1 -0
  69. package/lib/cjs/src/core-components/atoms/stepper/stepper.test.js +12 -0
  70. package/lib/cjs/src/core-components/atoms/tabs/tabs.component.d.ts +11 -0
  71. package/lib/cjs/src/core-components/atoms/tabs/tabs.component.js +46 -0
  72. package/lib/cjs/src/core-components/atoms/tabs/tabs.stories.d.ts +6 -0
  73. package/lib/cjs/src/core-components/atoms/tabs/tabs.stories.js +25 -0
  74. package/lib/cjs/src/core-components/atoms/tabs/tabs.test.d.ts +1 -0
  75. package/lib/cjs/src/core-components/atoms/tabs/tabs.test.js +18 -0
  76. package/lib/cjs/src/core-components/atoms/timer/timer.component.d.ts +7 -0
  77. package/lib/cjs/src/core-components/atoms/timer/timer.component.js +106 -0
  78. package/lib/cjs/src/core-components/atoms/timer/timer.test.d.ts +1 -0
  79. package/lib/cjs/src/core-components/atoms/timer/timer.test.js +19 -0
  80. package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.d.ts +10 -0
  81. package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.js +56 -0
  82. package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.test.d.ts +1 -0
  83. package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.test.js +14 -0
  84. package/lib/cjs/src/core-components/atoms/tooltip/tooltip.stories.d.ts +6 -0
  85. package/lib/cjs/src/core-components/atoms/tooltip/tooltip.stories.js +16 -0
  86. package/lib/cjs/src/core-components/index.d.ts +24 -0
  87. package/lib/cjs/src/core-components/index.js +53 -0
  88. package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.d.ts +18 -0
  89. package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +119 -0
  90. package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.test.d.ts +1 -0
  91. package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.test.js +14 -0
  92. package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.stories.d.ts +6 -0
  93. package/lib/cjs/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.stories.js +48 -0
  94. package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +17 -0
  95. package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +120 -0
  96. package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.test.d.ts +1 -0
  97. package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.test.js +21 -0
  98. package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.stories.d.ts +6 -0
  99. package/lib/cjs/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.stories.js +31 -0
  100. package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.d.ts +9 -0
  101. package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.js +144 -0
  102. package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.stories.d.ts +6 -0
  103. package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.stories.js +20 -0
  104. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +12 -0
  105. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +124 -0
  106. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.stories.d.ts +6 -0
  107. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.stories.js +16 -0
  108. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.test.d.ts +1 -0
  109. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.test.js +15 -0
  110. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-properties.d.ts +8931 -0
  111. package/lib/cjs/src/core-components/molecules/css-multiline-input/css-properties.js +164 -0
  112. package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.component.d.ts +12 -0
  113. package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.component.js +60 -0
  114. package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.stories.d.ts +6 -0
  115. package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.stories.js +23 -0
  116. package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.test.d.ts +1 -0
  117. package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.test.js +15 -0
  118. package/lib/cjs/src/core-components/molecules/multi-select/multi-select.component.d.ts +9 -0
  119. package/lib/cjs/src/core-components/molecules/multi-select/multi-select.component.js +79 -0
  120. package/lib/cjs/src/core-components/molecules/multi-select/multi-select.stories.d.ts +6 -0
  121. package/lib/cjs/src/core-components/molecules/multi-select/multi-select.stories.js +22 -0
  122. package/lib/cjs/src/core-components/molecules/multi-select/multi-select.test.d.ts +1 -0
  123. package/lib/cjs/src/core-components/molecules/multi-select/multi-select.test.js +15 -0
  124. package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.component.d.ts +10 -0
  125. package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.component.js +88 -0
  126. package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.stories.d.ts +6 -0
  127. package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.stories.js +23 -0
  128. package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.d.ts +1 -0
  129. package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.js +17 -0
  130. package/lib/cjs/src/core-utils/index.d.ts +1 -0
  131. package/lib/cjs/src/core-utils/index.js +17 -0
  132. package/lib/cjs/src/core-utils/unit-test.utils.d.ts +4 -0
  133. package/lib/cjs/src/core-utils/unit-test.utils.js +16 -0
  134. package/lib/cjs/src/index.d.ts +1 -0
  135. package/lib/cjs/src/index.js +17 -0
  136. package/lib/cjs/src/library/assets/svg/index.d.ts +9 -0
  137. package/lib/cjs/src/library/assets/svg/index.js +40 -0
  138. package/lib/cjs/src/reportWebVitals.d.ts +3 -0
  139. package/lib/cjs/src/reportWebVitals.js +37 -0
  140. package/lib/cjs/src/setupTests.d.ts +1 -0
  141. package/lib/cjs/src/setupTests.js +7 -0
  142. package/lib/package.json +24 -97
  143. package/lib/src/App.js +5 -9
  144. package/lib/src/core-components/atoms/buttons/buttons.component.d.ts +1 -1
  145. package/lib/src/core-components/atoms/buttons/buttons.component.js +1 -1
  146. package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts +1 -1
  147. package/lib/src/core-components/atoms/check-box/checkBox.component.js +2 -2
  148. package/lib/src/core-components/atoms/check-box/checkBox.stories.d.ts +1 -1
  149. package/lib/src/core-components/atoms/check-box/checkBox.stories.js +1 -1
  150. package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts +1 -1
  151. package/lib/src/core-components/atoms/date-picker/date-picker.component.js +1 -1
  152. package/lib/src/core-components/atoms/form/form.component.d.ts +2 -2
  153. package/lib/src/core-components/atoms/form/form.component.js +2 -2
  154. package/lib/src/core-components/atoms/icons/icons.component.d.ts +1 -2
  155. package/lib/src/core-components/atoms/icons/icons.component.js +1 -1
  156. package/lib/src/core-components/atoms/input/input-otp.component.d.ts +1 -1
  157. package/lib/src/core-components/atoms/input/input-otp.component.js +1 -1
  158. package/lib/src/core-components/atoms/input/input-pin.component.d.ts +1 -1
  159. package/lib/src/core-components/atoms/input/input-pin.component.js +1 -1
  160. package/lib/src/core-components/atoms/input/input.component.d.ts +1 -1
  161. package/lib/src/core-components/atoms/input/input.component.js +1 -1
  162. package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +1 -1
  163. package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.js +1 -1
  164. package/lib/src/core-components/atoms/loader/loader.component.d.ts +1 -1
  165. package/lib/src/core-components/atoms/loader/loader.component.js +1 -1
  166. package/lib/src/core-components/atoms/radio/radio.component.d.ts +1 -1
  167. package/lib/src/core-components/atoms/radio/radio.component.js +1 -1
  168. package/lib/src/core-components/atoms/stepper/stepper.component.d.ts +1 -1
  169. package/lib/src/core-components/atoms/stepper/stepper.component.js +1 -1
  170. package/lib/src/core-components/atoms/tabs/tabs.component.d.ts +1 -1
  171. package/lib/src/core-components/atoms/tabs/tabs.component.js +1 -1
  172. package/lib/src/core-components/atoms/timer/timer.component.d.ts +1 -1
  173. package/lib/src/core-components/atoms/timer/timer.component.js +1 -1
  174. package/lib/src/core-components/atoms/tooltip/tooltip.component.d.ts +1 -1
  175. package/lib/src/core-components/atoms/tooltip/tooltip.component.js +1 -1
  176. package/lib/src/core-components/index.d.ts +2 -1
  177. package/lib/src/core-components/index.js +2 -1
  178. package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.d.ts +1 -1
  179. package/lib/src/core-components/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +1 -1
  180. package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +1 -1
  181. package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +1 -1
  182. package/lib/src/core-components/molecules/autocomplete/autocomplete.css +46 -0
  183. package/lib/src/core-components/molecules/autocomplete/autocomplete.d.ts +9 -0
  184. package/lib/src/core-components/molecules/autocomplete/autocomplete.js +117 -0
  185. package/lib/src/core-components/molecules/autocomplete/autocomplete.stories.d.ts +6 -0
  186. package/lib/src/core-components/molecules/autocomplete/autocomplete.stories.js +17 -0
  187. package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +1 -1
  188. package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +1 -1
  189. package/lib/src/core-components/molecules/modal-confirm/modal-confirm.stories.d.ts +1 -1
  190. package/lib/src/core-components/molecules/modal-confirm/modal-confirm.stories.js +1 -1
  191. package/lib/src/index.css +17 -4
  192. package/lib/src/index.d.ts +1 -1
  193. package/lib/src/index.js +12 -1
  194. package/lib/src/reportWebVitals.d.ts +3 -1
  195. package/lib/src/reportWebVitals.js +12 -2
  196. package/lib/src/tc.css +1 -0
  197. package/lib/tc.css +1 -1
  198. package/package.json +23 -96
  199. package/lib/src/App.test.js +0 -8
  200. /package/lib/{src/App.test.d.ts → cjs/src/core-components/atoms/buttons/buttons.test.d.ts} +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const client_1 = __importDefault(require("react-dom/client"));
8
+ require("./index.css");
9
+ const App_1 = __importDefault(require("./App"));
10
+ const reportWebVitals_1 = __importDefault(require("./reportWebVitals"));
11
+ const root = client_1.default.createRoot(document.getElementById('root'));
12
+ root.render(react_1.default.createElement(react_1.default.StrictMode, null,
13
+ react_1.default.createElement(App_1.default, null)));
14
+ // If you want to start measuring performance in your app, pass a function
15
+ // to log results (for example: reportWebVitals(console.log))
16
+ // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17
+ (0, reportWebVitals_1.default)();
@@ -0,0 +1,9 @@
1
+ import UnCheckbox from './unCheckbox.svg';
2
+ import CheckedBox from './checkedBox.svg';
3
+ import DatePickerSvg from './datePicker.svg';
4
+ import CheckedRadio from './checkedRadio.svg';
5
+ import UncheckRadio from './uncheckRadio.svg';
6
+ import TimerSVG from './timer.svg';
7
+ import UpArrow from './UpArrow.svg';
8
+ import DownArrow from './DownArrow.svg';
9
+ export { UnCheckbox, CheckedBox, DatePickerSvg, CheckedRadio, UncheckRadio, TimerSVG, UpArrow, DownArrow, };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DownArrow = exports.UpArrow = exports.TimerSVG = exports.UncheckRadio = exports.CheckedRadio = exports.DatePickerSvg = exports.CheckedBox = exports.UnCheckbox = void 0;
7
+ const unCheckbox_svg_1 = __importDefault(require("./unCheckbox.svg"));
8
+ exports.UnCheckbox = unCheckbox_svg_1.default;
9
+ const checkedBox_svg_1 = __importDefault(require("./checkedBox.svg"));
10
+ exports.CheckedBox = checkedBox_svg_1.default;
11
+ const datePicker_svg_1 = __importDefault(require("./datePicker.svg"));
12
+ exports.DatePickerSvg = datePicker_svg_1.default;
13
+ const checkedRadio_svg_1 = __importDefault(require("./checkedRadio.svg"));
14
+ exports.CheckedRadio = checkedRadio_svg_1.default;
15
+ const uncheckRadio_svg_1 = __importDefault(require("./uncheckRadio.svg"));
16
+ exports.UncheckRadio = uncheckRadio_svg_1.default;
17
+ const timer_svg_1 = __importDefault(require("./timer.svg"));
18
+ exports.TimerSVG = timer_svg_1.default;
19
+ const UpArrow_svg_1 = __importDefault(require("./UpArrow.svg"));
20
+ exports.UpArrow = UpArrow_svg_1.default;
21
+ const DownArrow_svg_1 = __importDefault(require("./DownArrow.svg"));
22
+ exports.DownArrow = DownArrow_svg_1.default;
23
+ // import {ReactComponent as UnCheckbox} from '../../../library/assets/svg/unCheckbox.svg';
24
+ // import {ReactComponent as CheckedBox} from '../../../library/assets/svg/checkedBox.svg';
25
+ // import {ReactComponent as DatePickerSvg} from '../../../library/assets/svg/datePicker.svg';
26
+ // import {ReactComponent as CheckedRadio} from '../../../library/assets/svg/checkedRadio.svg';
27
+ // import {ReactComponent as UncheckRadio} from '../../../library/assets/svg/uncheckRadio.svg';
28
+ // import {ReactComponent as TimerSVG} from '../../../library/assets/svg/timer.svg';
29
+ // import {ReactComponent as UpArrow} from '../../../library/assets/svg/UpArrow.svg';
30
+ // import {ReactComponent as DownArrow} from '../../../library/assets/svg/DownArrow.svg';
31
+ // export {
32
+ // UnCheckbox,
33
+ // CheckedBox,
34
+ // DatePickerSvg,
35
+ // CheckedRadio,
36
+ // UncheckRadio,
37
+ // TimerSVG,
38
+ // UpArrow,
39
+ // DownArrow,
40
+ // };
@@ -0,0 +1,3 @@
1
+ import { ReportHandler } from 'web-vitals';
2
+ declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
+ export default reportWebVitals;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const reportWebVitals = (onPerfEntry) => {
27
+ if (onPerfEntry && onPerfEntry instanceof Function) {
28
+ Promise.resolve().then(() => __importStar(require('web-vitals'))).then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
29
+ getCLS(onPerfEntry);
30
+ getFID(onPerfEntry);
31
+ getFCP(onPerfEntry);
32
+ getLCP(onPerfEntry);
33
+ getTTFB(onPerfEntry);
34
+ });
35
+ }
36
+ };
37
+ exports.default = reportWebVitals;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // jest-dom adds custom jest matchers for asserting on DOM nodes.
4
+ // allows you to do things like:
5
+ // expect(element).toHaveTextContent(/react/i)
6
+ // learn more: https://github.com/testing-library/jest-dom
7
+ require("@testing-library/jest-dom");
package/lib/package.json CHANGED
@@ -1,25 +1,33 @@
1
1
  {
2
2
  "name": "react-restyle-components",
3
- "version": "0.1.84",
4
- "private": false,
3
+ "version": "0.1.86",
4
+ "private": true,
5
5
  "description": "Easy use restyle components",
6
- "main": "./lib/index.js",
7
- "types": "./lib/index.d.ts",
8
- "files": [
9
- "/lib"
10
- ],
11
6
  "author": {
12
7
  "email": "onlyappasaheb4@gmail.com",
13
8
  "name": "Lakade Appasaheb",
14
9
  "url": "http://github.com/appasaheb4"
15
10
  },
16
11
  "license": "MIT",
12
+ "dependencies": {
13
+ "@testing-library/jest-dom": "^5.17.0",
14
+ "@testing-library/react": "^13.4.0",
15
+ "@testing-library/user-event": "^13.5.0",
16
+ "@types/jest": "^27.5.2",
17
+ "@types/node": "^16.18.113",
18
+ "@types/react": "^18.3.11",
19
+ "@types/react-dom": "^18.3.0",
20
+ "react": "^18.3.1",
21
+ "react-dom": "^18.3.1",
22
+ "react-scripts": "5.0.1",
23
+ "typescript": "^4.9.5",
24
+ "web-vitals": "^2.1.4"
25
+ },
17
26
  "scripts": {
18
27
  "start": "serve -s ./build",
19
- "dev": "chmod +x setup.sh && sh ./setup.sh && craco start",
28
+ "dev": "craco start",
20
29
  "serve-webapp": "craco build && craco start",
21
- "build": "rm -rf ./lib && tsc && chmod +x npm-publish.sh && sh ./npm-publish.sh",
22
- "build:css": "tailwindcss -o dist/tc.css --minify",
30
+ "build": "rm -rf lib && chmod +x npm-publish.sh && sh ./npm-publish.sh && tsc -p tsconfig.json & tsc -p tsconfig-cjs.json",
23
31
  "test": "react-scripts test",
24
32
  "eject": "react-scripts eject",
25
33
  "precommit": "lint-staged --allow-empty",
@@ -29,57 +37,15 @@
29
37
  "prettier": "prettier --write '**/*.{js,jsx}'",
30
38
  "go": "npm run build && npm publish"
31
39
  },
32
- "dependencies": {
33
- "@loadable/component": "^5.16.4",
34
- "@mui/material": "^5.15.19",
35
- "@testing-library/jest-dom": "^5.16.4",
36
- "@testing-library/react": "^13.1.1",
37
- "@testing-library/user-event": "^13.5.0",
38
- "@types/jest": "^27.4.1",
39
- "@types/react": "^18.0.5",
40
- "@types/react-dom": "^18.0.1",
41
- "dayjs": "^1.11.1",
42
- "react-datepicker": "^4.7.0",
43
- "react-icons": "^5.2.1",
44
- "reactstrap": "^9.0.2",
45
- "tailwindcss": "^3.0.24",
46
- "typescript": "^4.6.3"
47
- },
48
- "peerDependencies": {
49
- "@testing-library/jest-dom": "*",
50
- "@testing-library/react": "*",
51
- "@testing-library/user-event": "*",
52
- "@types/jest": "*",
53
- "@types/react": "*",
54
- "@types/react-dom": "*",
55
- "dayjs": "*",
56
- "react": "*",
57
- "react-datepicker": "*",
58
- "react-dom": "*",
59
- "react-scripts": "*",
60
- "reactstrap": "*",
61
- "tailwindcss": "*",
62
- "typescript": "*",
63
- "web-vitals": "*"
64
- },
65
- "sideEffects": [
66
- "**/*.css"
40
+ "files": [
41
+ "*.md",
42
+ "dist",
43
+ "lib"
67
44
  ],
68
45
  "eslintConfig": {
69
46
  "extends": [
70
47
  "react-app",
71
- "react-app/jest",
72
- "plugin:storybook/recommended"
73
- ],
74
- "overrides": [
75
- {
76
- "files": [
77
- "**/*.stories.*"
78
- ],
79
- "rules": {
80
- "import/no-anonymous-default-export": "off"
81
- }
82
- }
48
+ "react-app/jest"
83
49
  ]
84
50
  },
85
51
  "browserslist": {
@@ -94,36 +60,6 @@
94
60
  "last 1 safari version"
95
61
  ]
96
62
  },
97
- "devDependencies": {
98
- "@chromatic-com/storybook": "^1.3.1",
99
- "@craco/craco": "^6.4.3",
100
- "@emotion/react": "^11.11.4",
101
- "@emotion/styled": "^11.11.5",
102
- "@storybook/addon-essentials": "^8.0.6",
103
- "@storybook/addon-interactions": "^8.0.6",
104
- "@storybook/addon-links": "^8.0.6",
105
- "@storybook/addon-onboarding": "^8.0.6",
106
- "@storybook/addon-webpack5-compiler-swc": "^1.0.2",
107
- "@storybook/blocks": "^8.0.6",
108
- "@storybook/react": "^8.0.6",
109
- "@storybook/react-webpack5": "^8.0.6",
110
- "@storybook/test": "^8.0.6",
111
- "@svgr/webpack": "^8.1.0",
112
- "autoprefixer": "^10.4.19",
113
- "copyfiles": "^2.4.1",
114
- "craco-alias": "^3.0.1",
115
- "css-loader": "^7.1.2",
116
- "eslint-plugin-storybook": "^0.8.0",
117
- "gh-pages": "^3.2.3",
118
- "husky": "^7.0.4",
119
- "lint-staged": "^12.4.0",
120
- "postcss-loader": "^8.1.1",
121
- "sass": "^1.77.5",
122
- "sass-loader": "^14.2.1",
123
- "storybook": "^8.0.6",
124
- "style-loader": "^4.0.0",
125
- "webpack": "^5.72.0"
126
- },
127
63
  "keywords": [
128
64
  "react",
129
65
  "components",
@@ -137,14 +73,5 @@
137
73
  "bugs": {
138
74
  "url": "https://github.com/appasaheb4/react-restyle-components/issues"
139
75
  },
140
- "homepage": "https://appasaheb4.github.io/react-restyle-components",
141
- "lint-staged": {
142
- "*.{js,jsx,json,css,scss,md}": [
143
- "prettier --write",
144
- "git add"
145
- ]
146
- },
147
- "resolutions": {
148
- "jackspeak": "2.1.1"
149
- }
76
+ "homepage": "https://github.com/appasaheb4/react-restyle-components#readme"
150
77
  }
package/lib/src/App.js CHANGED
@@ -1,14 +1,10 @@
1
1
  import React from 'react';
2
- import logo from './logo.svg';
3
2
  import './App.css';
3
+ import { Autocomplete } from './core-components';
4
4
  function App() {
5
- return (React.createElement("div", { className: "App" },
6
- React.createElement("header", { className: "App-header" },
7
- React.createElement("img", { src: logo, className: "App-logo", alt: "logo" }),
8
- React.createElement("p", null,
9
- "Edit ",
10
- React.createElement("code", null, "src/App.tsx"),
11
- " and save to reload."),
12
- React.createElement("a", { className: "App-link", href: "https://reactjs.org", target: "_blank", rel: "noopener noreferrer" }, "Learn npm submodules"))));
5
+ return (React.createElement("div", null,
6
+ React.createElement("div", null,
7
+ React.createElement("p", null, "New testing"),
8
+ React.createElement(Autocomplete, { value: "", onValueChange: () => { }, options: ['One', 'Two'] }))));
13
9
  }
14
10
  export default App;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface ButtonProps {
4
4
  type?: 'solid' | 'outline';
5
5
  className?: any;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  export const Button = ({ type = 'solid', className = 'w-40', disable = false, onClick, children, }) => {
4
4
  const buttonColorClass = type === 'solid'
5
5
  ? 'text-white bg-[#007BFF] hover:bg-[#007BFF] hover:shadow-lg text-white'
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface CheckBoxProps {
4
4
  title: string;
5
5
  data: Array<any>;
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  import { UnCheckbox, CheckedBox } from '../../../library/assets/svg';
4
4
  import { InputWrapper } from '../form/form.component';
5
5
  export const CheckBox = ({ title = 'Banks', data = [{ title: 'SBI Bank', checked: false }], className, onChange, }) => {
@@ -7,7 +7,7 @@ export const CheckBox = ({ title = 'Banks', data = [{ title: 'SBI Bank', checked
7
7
  const width = 20;
8
8
  return (React.createElement(InputWrapper, { label: title }, list?.map((item, index) => (React.createElement("div", { className: `${className} flex flex-row items-center `, onClick: () => {
9
9
  const result = list?.map((e, i) => {
10
- if (i == index)
10
+ if (i === index)
11
11
  return { ...e, checked: !item.checked };
12
12
  else
13
13
  return { ...e };
@@ -3,4 +3,4 @@ import { CheckBox } from './checkBox.component';
3
3
  declare const meta: Meta<typeof CheckBox>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof CheckBox>;
6
- export declare const Primary1: Story;
6
+ export declare const Primary: Story;
@@ -8,7 +8,7 @@ const meta = {
8
8
  },
9
9
  };
10
10
  export default meta;
11
- export const Primary1 = {
11
+ export const Primary = {
12
12
  args: {
13
13
  title: 'Banks',
14
14
  data: [
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  import 'react-datepicker/dist/react-datepicker.css';
4
4
  interface DatePickerProps {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import React, { useState, forwardRef } from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  import DatePicker from 'react-datepicker';
4
4
  import 'react-datepicker/dist/react-datepicker.css';
5
5
  import { DatePickerSvg } from '../../../library/assets/svg';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
3
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
+ import '../../../tc.css';
4
4
  interface LabelProps {
5
5
  htmlFor: string;
6
6
  hasError?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  import classNames from 'classnames';
4
- import '../../../../tc.css';
4
+ import '../../../tc.css';
5
5
  export const Label = (props) => (React.createElement(React.Fragment, null,
6
6
  React.createElement("label", { htmlFor: props.htmlFor, className: `${props.hasError ? 'text-red-400' : 'text-current'} block text-3xs font-medium mb-1`, style: { ...props.style } }, props.children)));
7
7
  export const InputWrapper = (props) => (React.createElement("div", { className: props.className, ref: props.ref },
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { IconBaseProps } from 'react-icons/lib';
3
- import '../../../../tc.css';
2
+ import '../../../tc.css';
4
3
  interface IconProps {
5
4
  nameIcon: string;
6
5
  propsIcon?: IconBaseProps;
@@ -2,7 +2,7 @@ import React, { Suspense } from 'react';
2
2
  import _ from 'lodash';
3
3
  import { Tooltip } from '../..';
4
4
  import loadable from '@loadable/component';
5
- import '../../../../tc.css';
5
+ import '../../../tc.css';
6
6
  let lib = 'md';
7
7
  export const Icon = ({ nameIcon, propsIcon, tooltip = '', isDisable = false, onClick, }) => {
8
8
  try {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './input-otp.styles.css';
3
- import '../../../../tc.css';
3
+ import '../../../tc.css';
4
4
  interface PinInputGridProps {
5
5
  title?: string;
6
6
  hasError?: boolean;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-console */
2
2
  import React, { useEffect, useRef } from 'react';
3
3
  import './input-otp.styles.css';
4
- import '../../../../tc.css';
4
+ import '../../../tc.css';
5
5
  export const InputOtp = ({ className, pin, onPinChanged, }) => {
6
6
  const pinLength = 6;
7
7
  const Pin_Min_Value = 0;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './input.styles.css';
3
- import '../../../../tc.css';
3
+ import '../../../tc.css';
4
4
  interface PinInputGridProps {
5
5
  title: string;
6
6
  hasError?: any;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import React, { useRef, useState } from 'react';
3
3
  import './input.styles.css';
4
- import '../../../../tc.css';
4
+ import '../../../tc.css';
5
5
  export const InputPin = ({ title, className, defaultPin, errorMsg, defaultMsg, hasError, onPinChanged, }) => {
6
6
  const pin = useRef([]);
7
7
  const [reload, setReload] = useState(false);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './input.styles.css';
3
- import '../../../../tc.css';
3
+ import '../../../tc.css';
4
4
  interface InputProps {
5
5
  title: string;
6
6
  defaultValue: string;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-console */
2
2
  import React, { useState } from 'react';
3
3
  import './input.styles.css';
4
- import '../../../../tc.css';
4
+ import '../../../tc.css';
5
5
  export const Input = ({ title, defaultValue, className, disable, hasError, errorMsg, defaultMsg, inputStyle, autoComplete, maxlength = 40, onChange, onBlur, }) => {
6
6
  const [value, setValue] = useState(defaultValue);
7
7
  const onKeyUpValue = (event) => {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface InputDropdownProps {
4
4
  title: string;
5
5
  items: Array<string>;
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect, useRef } from 'react';
2
2
  import { UpArrow, DownArrow } from '../../../library/assets/svg';
3
- import '../../../../tc.css';
3
+ import '../../../tc.css';
4
4
  export const InputDropdown = ({ items, className, hasError, title, onChange, }) => {
5
5
  const [isOpen, setIsOpen] = useState(false);
6
6
  const [value, setValue] = useState('');
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  export declare const Loader: () => React.JSX.Element;
4
4
  export declare const ModalLoader: () => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Container, Row, Spinner } from 'reactstrap';
3
- import '../../../../tc.css';
3
+ import '../../../tc.css';
4
4
  export const Loader = () => (React.createElement(Container, { fluid: true, className: "vh-50 d-flex" },
5
5
  React.createElement(Row, { className: "justify-content-center align-self-center w-100 text-center" },
6
6
  React.createElement(Spinner, { color: "primary" }))));
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface RadioProps {
4
4
  title: string;
5
5
  data: Array<any>;
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { CheckedRadio, UncheckRadio } from '../../../library/assets/svg';
3
3
  import { InputWrapper } from '../form/form.component';
4
- import '../../../../tc.css';
4
+ import '../../../tc.css';
5
5
  export const Radio = ({ title = 'Source', data = [], className, onChange, }) => {
6
6
  const [list, setList] = useState(data);
7
7
  const width = 20;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface StepperProps {
4
4
  className?: string;
5
5
  steps: Array<string>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  export const Stepper = ({ className = '', steps, currentStep = 1, onStepClick, }) => {
4
4
  const finalClass = `${className} w-full px-4 sm:px-8`;
5
5
  const progressClass = 'absolute my-4 top-1/2 left-0 h-0.5 transform -translate-y-1/2 bg-orange transition-width ease-in-out duration-500';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface TabsProps {
4
4
  options: Array<{
5
5
  title: string;
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import { Icon } from '../..';
3
- import '../../../../tc.css';
3
+ import '../../../tc.css';
4
4
  export const Tabs = ({ options, onSelect }) => {
5
5
  const [selected, setSelected] = useState(options[0].title);
6
6
  return (React.createElement("div", { className: "flex justify-center" },
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface TimerProps {
4
4
  onClear: () => void;
5
5
  }
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable @typescript-eslint/no-unused-expressions */
3
3
  import React, { useEffect, useState, useImperativeHandle } from 'react';
4
4
  import { TimerSVG } from '../../../library/assets/svg';
5
- import '../../../../tc.css';
5
+ import '../../../tc.css';
6
6
  // eslint-disable-next-line react/display-name
7
7
  export const Timer = React.forwardRef(({ onClear }, ref) => {
8
8
  const width = 15;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import '../../../../tc.css';
2
+ import '../../../tc.css';
3
3
  interface TooltipProps {
4
4
  tooltipText?: any;
5
5
  position?: 'bottom' | 'left' | 'top';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import * as Material from '@mui/material';
3
- import '../../../../tc.css';
3
+ import '../../../tc.css';
4
4
  export const Tooltip = ({ tooltipText, position = 'bottom-start', children, }) => {
5
5
  const positionRef = React.useRef({
6
6
  x: 0,
@@ -1,4 +1,4 @@
1
- import '../../tc.css';
1
+ import '../tc.css';
2
2
  import * as Form from './atoms/form/form.component';
3
3
  export * from './atoms/buttons/buttons.component';
4
4
  export * from './atoms/check-box/checkBox.component';
@@ -20,4 +20,5 @@ export * from './molecules/auto-complete-filter-single-select-multiple-fields-di
20
20
  export * from './molecules/multi-select/multi-select.component';
21
21
  export * from './molecules/multi-select-with-field/multi-select-with-field.component';
22
22
  export * from './molecules/modal-confirm/modal-confirm.component';
23
+ export * from './molecules/autocomplete/autocomplete';
23
24
  export { Form };
@@ -1,4 +1,4 @@
1
- import '../../tc.css';
1
+ import '../tc.css';
2
2
  import * as Form from './atoms/form/form.component';
3
3
  export * from './atoms/buttons/buttons.component';
4
4
  export * from './atoms/check-box/checkBox.component';
@@ -20,4 +20,5 @@ export * from './molecules/auto-complete-filter-single-select-multiple-fields-di
20
20
  export * from './molecules/multi-select/multi-select.component';
21
21
  export * from './molecules/multi-select-with-field/multi-select-with-field.component';
22
22
  export * from './molecules/modal-confirm/modal-confirm.component';
23
+ export * from './molecules/autocomplete/autocomplete';
23
24
  export { Form };