react-restyle-components 0.1.84 → 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.
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +18 -0
- package/lib/cjs/src/App.d.ts +4 -0
- package/lib/cjs/src/App.js +15 -0
- package/lib/cjs/src/core-components/atoms/buttons/button.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/buttons/button.stories.js +42 -0
- package/lib/cjs/src/core-components/atoms/buttons/buttons.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/buttons/buttons.component.js +15 -0
- package/lib/cjs/src/core-components/atoms/buttons/buttons.test.js +13 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.component.js +47 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.stories.js +26 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/check-box/checkBox.test.js +13 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.component.d.ts +13 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.component.js +52 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.stories.js +24 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/date-picker/date-picker.test.js +14 -0
- package/lib/cjs/src/core-components/atoms/form/form.component.d.ts +102 -0
- package/lib/cjs/src/core-components/atoms/form/form.component.js +192 -0
- package/lib/cjs/src/core-components/atoms/form/form.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/form/form.test.js +99 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.component.js +66 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.stories.js +22 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/icons/icons.test.js +15 -0
- package/lib/cjs/src/core-components/atoms/input/input-otp.component.d.ts +15 -0
- package/lib/cjs/src/core-components/atoms/input/input-otp.component.js +88 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.component.d.ts +16 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.component.js +107 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.stories.js +23 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/input/input-pin.test.js +17 -0
- package/lib/cjs/src/core-components/atoms/input/input.component.d.ts +19 -0
- package/lib/cjs/src/core-components/atoms/input/input.component.js +45 -0
- package/lib/cjs/src/core-components/atoms/input/input.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/input/input.stories.js +24 -0
- package/lib/cjs/src/core-components/atoms/input/input.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/input/input.test.js +17 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.component.js +64 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.stories.js +20 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/input-dropdown/input-dropdown.test.js +13 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.component.d.ts +4 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.component.js +61 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.stories.js +16 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/loader/loader.test.js +13 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.component.d.ts +10 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.component.js +49 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.stories.js +25 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/radio/radio.test.js +13 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.component.d.ts +10 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.component.js +42 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.stories.js +21 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/stepper/stepper.test.js +12 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.component.d.ts +11 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.component.js +46 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.stories.js +25 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/tabs/tabs.test.js +18 -0
- package/lib/cjs/src/core-components/atoms/timer/timer.component.d.ts +7 -0
- package/lib/cjs/src/core-components/atoms/timer/timer.component.js +106 -0
- package/lib/cjs/src/core-components/atoms/timer/timer.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/timer/timer.test.js +19 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.d.ts +10 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.js +56 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.test.d.ts +1 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.component.test.js +14 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/atoms/tooltip/tooltip.stories.js +16 -0
- package/lib/cjs/src/core-components/index.d.ts +24 -0
- package/lib/cjs/src/core-components/index.js +53 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.d.ts +9 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.js +144 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/autocomplete/autocomplete.stories.js +20 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +12 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +124 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.stories.js +16 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.test.d.ts +1 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-multiline-input.test.js +15 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-properties.d.ts +8931 -0
- package/lib/cjs/src/core-components/molecules/css-multiline-input/css-properties.js +164 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.component.d.ts +12 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.component.js +60 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.stories.js +23 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.test.d.ts +1 -0
- package/lib/cjs/src/core-components/molecules/modal-confirm/modal-confirm.test.js +15 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.component.d.ts +9 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.component.js +79 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.stories.js +22 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.test.d.ts +1 -0
- package/lib/cjs/src/core-components/molecules/multi-select/multi-select.test.js +15 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.component.d.ts +10 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.component.js +88 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.stories.d.ts +6 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.stories.js +23 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.d.ts +1 -0
- package/lib/cjs/src/core-components/molecules/multi-select-with-field/multi-select-with-field.test.js +17 -0
- package/lib/cjs/src/core-utils/index.d.ts +1 -0
- package/lib/cjs/src/core-utils/index.js +17 -0
- package/lib/cjs/src/core-utils/unit-test.utils.d.ts +4 -0
- package/lib/cjs/src/core-utils/unit-test.utils.js +16 -0
- package/lib/cjs/src/index.d.ts +1 -0
- package/lib/cjs/src/index.js +17 -0
- package/lib/cjs/src/library/assets/svg/index.d.ts +9 -0
- package/lib/cjs/src/library/assets/svg/index.js +40 -0
- package/lib/cjs/src/reportWebVitals.d.ts +3 -0
- package/lib/cjs/src/reportWebVitals.js +37 -0
- package/lib/cjs/src/setupTests.d.ts +1 -0
- package/lib/cjs/src/setupTests.js +7 -0
- package/lib/package.json +24 -97
- package/lib/src/App.js +5 -9
- package/lib/src/core-components/atoms/buttons/buttons.component.d.ts +1 -1
- package/lib/src/core-components/atoms/buttons/buttons.component.js +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.js +2 -2
- package/lib/src/core-components/atoms/check-box/checkBox.stories.d.ts +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.stories.js +1 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts +1 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.js +1 -1
- package/lib/src/core-components/atoms/form/form.component.d.ts +2 -2
- package/lib/src/core-components/atoms/form/form.component.js +2 -2
- package/lib/src/core-components/atoms/icons/icons.component.d.ts +1 -2
- package/lib/src/core-components/atoms/icons/icons.component.js +1 -1
- package/lib/src/core-components/atoms/input/input-otp.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input/input-otp.component.js +1 -1
- package/lib/src/core-components/atoms/input/input-pin.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input/input-pin.component.js +1 -1
- package/lib/src/core-components/atoms/input/input.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input/input.component.js +1 -1
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts +1 -1
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.js +1 -1
- package/lib/src/core-components/atoms/loader/loader.component.d.ts +1 -1
- package/lib/src/core-components/atoms/loader/loader.component.js +1 -1
- package/lib/src/core-components/atoms/radio/radio.component.d.ts +1 -1
- package/lib/src/core-components/atoms/radio/radio.component.js +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.d.ts +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.js +1 -1
- package/lib/src/core-components/atoms/tabs/tabs.component.d.ts +1 -1
- package/lib/src/core-components/atoms/tabs/tabs.component.js +1 -1
- package/lib/src/core-components/atoms/timer/timer.component.d.ts +1 -1
- package/lib/src/core-components/atoms/timer/timer.component.js +1 -1
- package/lib/src/core-components/atoms/tooltip/tooltip.component.d.ts +1 -1
- package/lib/src/core-components/atoms/tooltip/tooltip.component.js +1 -1
- package/lib/src/core-components/index.d.ts +2 -1
- package/lib/src/core-components/index.js +2 -1
- 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
- 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
- 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
- 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
- package/lib/src/core-components/molecules/autocomplete/autocomplete.css +46 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.d.ts +9 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.js +117 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.stories.d.ts +6 -0
- package/lib/src/core-components/molecules/autocomplete/autocomplete.stories.js +17 -0
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.d.ts +1 -1
- package/lib/src/core-components/molecules/css-multiline-input/css-multiline-input.component.js +1 -1
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.component.d.ts +2 -1
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.component.js +2 -2
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.stories.d.ts +1 -1
- package/lib/src/core-components/molecules/modal-confirm/modal-confirm.stories.js +1 -1
- package/lib/src/index.css +17 -4
- package/lib/src/index.d.ts +1 -1
- package/lib/src/index.js +12 -1
- package/lib/src/reportWebVitals.d.ts +3 -1
- package/lib/src/reportWebVitals.js +12 -2
- package/lib/src/tc.css +1 -0
- package/lib/tc.css +1 -1
- package/package.json +23 -96
- package/lib/src/App.test.js +0 -8
- /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,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.
|
|
4
|
-
"private":
|
|
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": "
|
|
28
|
+
"dev": "craco start",
|
|
20
29
|
"serve-webapp": "craco build && craco start",
|
|
21
|
-
"build": "rm -rf
|
|
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
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
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://
|
|
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",
|
|
6
|
-
React.createElement("
|
|
7
|
-
React.createElement("
|
|
8
|
-
React.createElement("
|
|
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 '
|
|
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, { useState } from 'react';
|
|
2
|
-
import '
|
|
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
|
|
10
|
+
if (i === index)
|
|
11
11
|
return { ...e, checked: !item.checked };
|
|
12
12
|
else
|
|
13
13
|
return { ...e };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, forwardRef } from 'react';
|
|
2
|
-
import '
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import '
|
|
2
|
+
import '../../../tc.css';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import '
|
|
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 },
|
|
@@ -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 '
|
|
5
|
+
import '../../../tc.css';
|
|
6
6
|
let lib = 'md';
|
|
7
7
|
export const Icon = ({ nameIcon, propsIcon, tooltip = '', isDisable = false, onClick, }) => {
|
|
8
8
|
try {
|
|
@@ -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 '
|
|
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,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import React, { useRef, useState } from 'react';
|
|
3
3
|
import './input.styles.css';
|
|
4
|
-
import '
|
|
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,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import './input.styles.css';
|
|
4
|
-
import '
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import { UpArrow, DownArrow } from '../../../library/assets/svg';
|
|
3
|
-
import '
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Container, Row, Spinner } from 'reactstrap';
|
|
3
|
-
import '
|
|
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,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 '
|
|
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 '
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Icon } from '../..';
|
|
3
|
-
import '
|
|
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" },
|
|
@@ -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 '
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
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 '
|
|
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 };
|