react-restyle-components 0.1.14 → 0.1.17

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 (46) hide show
  1. package/README.md +16 -37
  2. package/lib/cjs/App.js +20 -0
  3. package/lib/cjs/App.js.map +1 -0
  4. package/lib/cjs/App.test.js +14 -0
  5. package/lib/cjs/App.test.js.map +1 -0
  6. package/lib/cjs/core-components/atoms/stepper/stepper.component.js +42 -0
  7. package/lib/cjs/core-components/atoms/stepper/stepper.component.js.map +1 -0
  8. package/lib/cjs/core-components/atoms/stepper/stepper.component.test.js +13 -0
  9. package/lib/cjs/core-components/atoms/stepper/stepper.component.test.js.map +1 -0
  10. package/lib/cjs/core-components/atoms/stepper/stepper.stories.js +23 -0
  11. package/lib/cjs/core-components/atoms/stepper/stepper.stories.js.map +1 -0
  12. package/lib/cjs/core-components/index.js +18 -0
  13. package/lib/cjs/core-components/index.js.map +1 -0
  14. package/lib/cjs/core-utils/index.js +18 -0
  15. package/lib/cjs/core-utils/index.js.map +1 -0
  16. package/lib/cjs/core-utils/unit-test.utils.js +17 -0
  17. package/lib/cjs/core-utils/unit-test.utils.js.map +1 -0
  18. package/lib/cjs/index.js +18 -0
  19. package/lib/cjs/index.js.map +1 -0
  20. package/lib/cjs/reportWebVitals.js +38 -0
  21. package/lib/cjs/reportWebVitals.js.map +1 -0
  22. package/lib/cjs/setupTests.js +8 -0
  23. package/lib/cjs/setupTests.js.map +1 -0
  24. package/lib/esm/App.js +15 -0
  25. package/lib/esm/App.js.map +1 -0
  26. package/lib/esm/App.test.js +9 -0
  27. package/lib/esm/App.test.js.map +1 -0
  28. package/lib/esm/core-components/atoms/stepper/stepper.component.js +35 -0
  29. package/lib/esm/core-components/atoms/stepper/stepper.component.js.map +1 -0
  30. package/lib/esm/core-components/atoms/stepper/stepper.component.test.js +8 -0
  31. package/lib/esm/core-components/atoms/stepper/stepper.component.test.js.map +1 -0
  32. package/lib/esm/core-components/atoms/stepper/stepper.stories.js +16 -0
  33. package/lib/esm/core-components/atoms/stepper/stepper.stories.js.map +1 -0
  34. package/lib/esm/core-components/index.js +2 -0
  35. package/lib/esm/core-components/index.js.map +1 -0
  36. package/lib/esm/core-utils/index.js +2 -0
  37. package/lib/esm/core-utils/index.js.map +1 -0
  38. package/lib/esm/core-utils/unit-test.utils.js +10 -0
  39. package/lib/esm/core-utils/unit-test.utils.js.map +1 -0
  40. package/lib/esm/index.js +2 -0
  41. package/lib/esm/index.js.map +1 -0
  42. package/lib/esm/reportWebVitals.js +13 -0
  43. package/lib/esm/reportWebVitals.js.map +1 -0
  44. package/lib/esm/setupTests.js +6 -0
  45. package/lib/esm/setupTests.js.map +1 -0
  46. package/package.json +5 -3
package/README.md CHANGED
@@ -1,46 +1,25 @@
1
- # Getting Started with Create React App
1
+ # react-restyle-components
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ Easy use restyle components
4
4
 
5
- ## Available Scripts
5
+ ## Installation
6
6
 
7
- In the project directory, you can run:
7
+ ```
8
+ npm i react-restyle-components
9
+ or
10
+ yarn add react-restyle-components
11
+ ```
8
12
 
9
- ### `npm start`
13
+ ##
10
14
 
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
15
+ ```jsx
16
+ import {Stepper} from 'react-restyle-components';
17
+ ```
13
18
 
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
19
+ ### Outputs
16
20
 
17
- ### `npm test`
21
+ # Storybook
18
22
 
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
23
+ https://appasaheb4.github.io/react-restyle-components
21
24
 
22
- ### `npm run build`
23
-
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
- ### `npm run eject`
33
-
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
-
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
-
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
-
42
- ## Learn More
43
-
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
25
+ ### More inforamtion watch youtube channel: https://www.youtube.com/tech-abl
package/lib/cjs/App.js ADDED
@@ -0,0 +1,20 @@
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 logo_svg_1 = __importDefault(require("./logo.svg"));
8
+ require("./App.css");
9
+ function App() {
10
+ return (react_1.default.createElement("div", { className: "App" },
11
+ react_1.default.createElement("header", { className: "App-header" },
12
+ react_1.default.createElement("img", { src: logo_svg_1.default, className: "App-logo", alt: "logo" }),
13
+ react_1.default.createElement("p", null,
14
+ "Edit ",
15
+ react_1.default.createElement("code", null, "src/App.tsx"),
16
+ " and save to reload."),
17
+ react_1.default.createElement("a", { className: "App-link", href: "https://reactjs.org", target: "_blank", rel: "noopener noreferrer" }, "Learn React"))));
18
+ }
19
+ exports.default = App;
20
+ //# sourceMappingURL=App.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,0DAA8B;AAC9B,qBAAmB;AAEnB,SAAS,GAAG;IACV,OAAO,CACL,uCAAK,SAAS,EAAC,KAAK;QAClB,0CAAQ,SAAS,EAAC,YAAY;YAC5B,uCAAK,GAAG,EAAE,kBAAI,EAAE,SAAS,EAAC,UAAU,EAAC,GAAG,EAAC,MAAM,GAAG;YAClD;;gBACO,0DAAwB;uCAC3B;YACJ,qCACE,SAAS,EAAC,UAAU,EACpB,IAAI,EAAC,qBAAqB,EAC1B,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,kBAGvB,CACG,CACL,CACP,CAAC;AACJ,CAAC;AAED,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,14 @@
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 react_2 = require("@testing-library/react");
8
+ const App_1 = __importDefault(require("./App"));
9
+ test('renders learn react link', () => {
10
+ (0, react_2.render)(react_1.default.createElement(App_1.default, null));
11
+ const linkElement = react_2.screen.getByText(/learn react/i);
12
+ expect(linkElement).toBeInTheDocument();
13
+ });
14
+ //# sourceMappingURL=App.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.test.js","sourceRoot":"","sources":["../../src/App.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,kDAAwD;AACxD,gDAAwB;AAExB,IAAI,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACpC,IAAA,cAAM,EAAC,8BAAC,aAAG,OAAG,CAAC,CAAC;IAChB,MAAM,WAAW,GAAG,cAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACrD,MAAM,CAAC,WAAW,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC"}
@@ -0,0 +1,42 @@
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.Stepper = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Stepper = ({ className = '', steps, currentStep = 1, onStepClick, }) => {
9
+ const finalClass = `${className} w-full px-4 sm:px-8`;
10
+ 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';
11
+ const Steps = steps === null || steps === void 0 ? void 0 : steps.map((step, index) => {
12
+ let stepClass = 'inline-block transform -translate-x-1/2 pt-1 w-8 h-8 rounded-full text-center';
13
+ if (index < currentStep)
14
+ stepClass +=
15
+ ' font-medium border border-orange bg-background-secondary text-gray';
16
+ else if (index > currentStep)
17
+ stepClass +=
18
+ ' font-medium border border-gray-dark-secondary text-gray bg-background-secondary';
19
+ else if (currentStep === index)
20
+ stepClass += ' font-medium bg-orange text-white';
21
+ if (typeof onStepClick === 'function')
22
+ stepClass += ' cursor-pointer';
23
+ return (react_1.default.createElement("div", { key: step, style: { left: `${(index / (steps.length - 1)) * 100}%` }, className: "absolute" },
24
+ react_1.default.createElement("span", { className: `${stepClass} font-nunitoSansRegular text-4xs text-center`, onClick: () => {
25
+ if (typeof onStepClick === 'function')
26
+ onStepClick(index + 1, step);
27
+ } }, step)));
28
+ });
29
+ return (react_1.default.createElement("div", { className: finalClass },
30
+ react_1.default.createElement("div", { className: "w-full relative" },
31
+ react_1.default.createElement("div", { className: progressClass, style: {
32
+ width: `${(currentStep / (steps.length - 1)) * 100}%`,
33
+ } },
34
+ react_1.default.createElement("div", { className: "w-3 h-3 bg-orange rounded-full absolute right-0 top-1/2 transform translate-x-1/2 -translate-y-1/2" })),
35
+ react_1.default.createElement("div", { className: 'absolute h-0.5 my-4 top-1/2 left-0 transform -translate-y-1/2 bg-gray-dark-secondary transition-width ease-in-out duration-500', style: {
36
+ marginLeft: `${(currentStep / (steps.length - 1)) * 100}%`,
37
+ width: `${100 - (currentStep / (steps.length - 1)) * 100}%`,
38
+ } })),
39
+ react_1.default.createElement("div", { className: "relative sm:block" }, Steps)));
40
+ };
41
+ exports.Stepper = Stepper;
42
+ //# sourceMappingURL=stepper.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.component.js","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.component.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AASnB,MAAM,OAAO,GAAG,CAAC,EACtB,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,GAAG,CAAC,EACf,WAAW,GACE,EAAE,EAAE;IACjB,MAAM,UAAU,GAAG,GAAG,SAAS,sBAAsB,CAAC;IACtD,MAAM,aAAa,GACjB,oHAAoH,CAAC;IACvH,MAAM,KAAK,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACvC,IAAI,SAAS,GACX,+EAA+E,CAAC;QAClF,IAAI,KAAK,GAAG,WAAW;YACrB,SAAS;gBACP,sEAAsE,CAAC;aACtE,IAAI,KAAK,GAAG,WAAW;YAC1B,SAAS;gBACP,kFAAkF,CAAC;aAClF,IAAI,WAAW,KAAK,KAAK;YAC5B,SAAS,IAAI,mCAAmC,CAAC;QACnD,IAAI,OAAO,WAAW,KAAK,UAAU;YAAE,SAAS,IAAI,iBAAiB,CAAC;QACtE,OAAO,CACL,uCACE,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,EAAC,IAAI,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,EAAC,EACvD,SAAS,EAAC,UAAU;YAEpB,wCACE,SAAS,EAAE,GAAG,SAAS,+CAA+C,EACtE,OAAO,EAAE,GAAG,EAAE;oBACZ,IAAI,OAAO,WAAW,KAAK,UAAU;wBAAE,WAAW,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;gBACtE,CAAC,IAEA,IAAI,CACA,CACH,CACP,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,CACL,uCAAK,SAAS,EAAE,UAAU;QACxB,uCAAK,SAAS,EAAC,iBAAiB;YAC9B,uCACE,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE;oBACL,KAAK,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG;iBACtD;gBAED,uCAAK,SAAS,EAAC,oGAAoG,GAAG,CAClH;YACN,uCACE,SAAS,EACP,gIAAgI,EAElI,KAAK,EAAE;oBACL,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG;oBAC1D,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG;iBAC5D,GACI,CACH;QACN,uCAAK,SAAS,EAAC,mBAAmB,IAAE,KAAK,CAAO,CAC5C,CACP,CAAC;AACJ,CAAC,CAAC;AA9DW,QAAA,OAAO,WA8DlB"}
@@ -0,0 +1,13 @@
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 _core_utils_1 = require("@core-utils");
8
+ const stepper_component_1 = require("./stepper.component");
9
+ it('render XB_Stepper correctly', () => {
10
+ const stepper = (0, _core_utils_1.render)(react_1.default.createElement(stepper_component_1.Stepper, { steps: ['1', '2', '3', '4'], currentStep: 3, onStepClick: () => jest.fn(), className: "mt-4" }));
11
+ expect(stepper).toMatchSnapshot();
12
+ });
13
+ //# sourceMappingURL=stepper.component.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.component.test.js","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.component.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,6CAAmC;AACnC,2DAA4C;AAC5C,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;IACrC,MAAM,OAAO,GAAG,IAAA,oBAAM,EACpB,8BAAC,2BAAO,IACN,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC3B,WAAW,EAAE,CAAC,EACd,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAC5B,SAAS,EAAC,MAAM,GAChB,CACH,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,CAAC;AACpC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,23 @@
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.Primary = void 0;
7
+ /* eslint-disable @typescript-eslint/no-unused-vars */
8
+ /* eslint-disable react/jsx-indent-props */
9
+ const react_1 = __importDefault(require("react"));
10
+ const stepper_component_1 = require("./stepper.component");
11
+ // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
12
+ exports.default = {
13
+ title: 'Atoms/Stepper',
14
+ component: stepper_component_1.Stepper,
15
+ // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
16
+ argTypes: {
17
+ backgroundColor: { control: 'color' },
18
+ },
19
+ };
20
+ // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
21
+ const Primary = () => (react_1.default.createElement(stepper_component_1.Stepper, { steps: ['1', '2', '3', '4'], currentStep: 2, onStepClick: (currentStep, step) => { }, className: "mt-4" }));
22
+ exports.Primary = Primary;
23
+ //# sourceMappingURL=stepper.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.stories.tsx"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,2CAA2C;AAC3C,kDAA0B;AAE1B,2DAA4C;AAE5C,0GAA0G;AAC1G,kBAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,2BAAO;IAClB,qEAAqE;IACrE,QAAQ,EAAE;QACR,eAAe,EAAE,EAAC,OAAO,EAAE,OAAO,EAAC;KACpC;CAC+B,CAAC;AAEnC,2GAA2G;AACpG,MAAM,OAAO,GAAmC,GAAG,EAAE,CAAC,CAC3D,8BAAC,2BAAO,IACN,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC3B,WAAW,EAAE,CAAC,EACd,WAAW,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,EAAE,GAAE,CAAC,EACtC,SAAS,EAAC,MAAM,GAChB,CACH,CAAC;AAPW,QAAA,OAAO,WAOlB"}
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./atoms/stepper/stepper.component"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core-components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD"}
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./unit-test.utils"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -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
+ exports.Providers = exports.render = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const react_2 = require("@testing-library/react");
9
+ const Providers = ({ children }) => {
10
+ return react_1.default.createElement("div", null, children);
11
+ };
12
+ exports.Providers = Providers;
13
+ const render = (Component) => {
14
+ return (0, react_2.render)(Component, { wrapper: Providers });
15
+ };
16
+ exports.render = render;
17
+ //# sourceMappingURL=unit-test.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-test.utils.js","sourceRoot":"","sources":["../../../src/core-utils/unit-test.utils.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,kDAAiE;AAEjE,MAAM,SAAS,GAAG,CAAC,EAAC,QAAQ,EAAM,EAAE,EAAE;IACpC,OAAO,2CAAM,QAAQ,CAAO,CAAC;AAC/B,CAAC,CAAC;AAMc,8BAAS;AAJzB,MAAM,MAAM,GAAG,CAAC,SAAsB,EAAE,EAAE;IACxC,OAAO,IAAA,cAAe,EAAC,SAAS,EAAE,EAAC,OAAO,EAAE,SAAS,EAAC,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEM,wBAAM"}
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./core-components"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,38 @@
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;
38
+ //# sourceMappingURL=reportWebVitals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportWebVitals.js","sourceRoot":"","sources":["../../src/reportWebVitals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAM,eAAe,GAAG,CAAC,WAA2B,EAAE,EAAE;IACtD,IAAI,WAAW,IAAI,WAAW,YAAY,QAAQ,EAAE;QAClD,kDAAO,YAAY,IAAE,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;YACxE,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,OAAO,CAAC,WAAW,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;KACJ;AACH,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
@@ -0,0 +1,8 @@
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");
8
+ //# sourceMappingURL=setupTests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupTests.js","sourceRoot":"","sources":["../../src/setupTests.ts"],"names":[],"mappings":";;AAAA,iEAAiE;AACjE,gCAAgC;AAChC,8CAA8C;AAC9C,0DAA0D;AAC1D,qCAAmC"}
package/lib/esm/App.js ADDED
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import logo from './logo.svg';
3
+ import './App.css';
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 React"))));
13
+ }
14
+ export default App;
15
+ //# sourceMappingURL=App.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,WAAW,CAAC;AAEnB,SAAS,GAAG;IACV,OAAO,CACL,6BAAK,SAAS,EAAC,KAAK;QAClB,gCAAQ,SAAS,EAAC,YAAY;YAC5B,6BAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAC,UAAU,EAAC,GAAG,EAAC,MAAM,GAAG;YAClD;;gBACO,gDAAwB;uCAC3B;YACJ,2BACE,SAAS,EAAC,UAAU,EACpB,IAAI,EAAC,qBAAqB,EAC1B,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,kBAGvB,CACG,CACL,CACP,CAAC;AACJ,CAAC;AAED,eAAe,GAAG,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { render, screen } from '@testing-library/react';
3
+ import App from './App';
4
+ test('renders learn react link', () => {
5
+ render(React.createElement(App, null));
6
+ const linkElement = screen.getByText(/learn react/i);
7
+ expect(linkElement).toBeInTheDocument();
8
+ });
9
+ //# sourceMappingURL=App.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.test.js","sourceRoot":"","sources":["../../src/App.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,IAAI,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACpC,MAAM,CAAC,oBAAC,GAAG,OAAG,CAAC,CAAC;IAChB,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACrD,MAAM,CAAC,WAAW,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ export const Stepper = ({ className = '', steps, currentStep = 1, onStepClick, }) => {
3
+ const finalClass = `${className} w-full px-4 sm:px-8`;
4
+ 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';
5
+ const Steps = steps === null || steps === void 0 ? void 0 : steps.map((step, index) => {
6
+ let stepClass = 'inline-block transform -translate-x-1/2 pt-1 w-8 h-8 rounded-full text-center';
7
+ if (index < currentStep)
8
+ stepClass +=
9
+ ' font-medium border border-orange bg-background-secondary text-gray';
10
+ else if (index > currentStep)
11
+ stepClass +=
12
+ ' font-medium border border-gray-dark-secondary text-gray bg-background-secondary';
13
+ else if (currentStep === index)
14
+ stepClass += ' font-medium bg-orange text-white';
15
+ if (typeof onStepClick === 'function')
16
+ stepClass += ' cursor-pointer';
17
+ return (React.createElement("div", { key: step, style: { left: `${(index / (steps.length - 1)) * 100}%` }, className: "absolute" },
18
+ React.createElement("span", { className: `${stepClass} font-nunitoSansRegular text-4xs text-center`, onClick: () => {
19
+ if (typeof onStepClick === 'function')
20
+ onStepClick(index + 1, step);
21
+ } }, step)));
22
+ });
23
+ return (React.createElement("div", { className: finalClass },
24
+ React.createElement("div", { className: "w-full relative" },
25
+ React.createElement("div", { className: progressClass, style: {
26
+ width: `${(currentStep / (steps.length - 1)) * 100}%`,
27
+ } },
28
+ React.createElement("div", { className: "w-3 h-3 bg-orange rounded-full absolute right-0 top-1/2 transform translate-x-1/2 -translate-y-1/2" })),
29
+ React.createElement("div", { className: 'absolute h-0.5 my-4 top-1/2 left-0 transform -translate-y-1/2 bg-gray-dark-secondary transition-width ease-in-out duration-500', style: {
30
+ marginLeft: `${(currentStep / (steps.length - 1)) * 100}%`,
31
+ width: `${100 - (currentStep / (steps.length - 1)) * 100}%`,
32
+ } })),
33
+ React.createElement("div", { className: "relative sm:block" }, Steps)));
34
+ };
35
+ //# sourceMappingURL=stepper.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.component.js","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EACtB,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,GAAG,CAAC,EACf,WAAW,GACE,EAAE,EAAE;IACjB,MAAM,UAAU,GAAG,GAAG,SAAS,sBAAsB,CAAC;IACtD,MAAM,aAAa,GACjB,oHAAoH,CAAC;IACvH,MAAM,KAAK,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACvC,IAAI,SAAS,GACX,+EAA+E,CAAC;QAClF,IAAI,KAAK,GAAG,WAAW;YACrB,SAAS;gBACP,sEAAsE,CAAC;aACtE,IAAI,KAAK,GAAG,WAAW;YAC1B,SAAS;gBACP,kFAAkF,CAAC;aAClF,IAAI,WAAW,KAAK,KAAK;YAC5B,SAAS,IAAI,mCAAmC,CAAC;QACnD,IAAI,OAAO,WAAW,KAAK,UAAU;YAAE,SAAS,IAAI,iBAAiB,CAAC;QACtE,OAAO,CACL,6BACE,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,EAAC,IAAI,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,EAAC,EACvD,SAAS,EAAC,UAAU;YAEpB,8BACE,SAAS,EAAE,GAAG,SAAS,+CAA+C,EACtE,OAAO,EAAE,GAAG,EAAE;oBACZ,IAAI,OAAO,WAAW,KAAK,UAAU;wBAAE,WAAW,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;gBACtE,CAAC,IAEA,IAAI,CACA,CACH,CACP,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,CACL,6BAAK,SAAS,EAAE,UAAU;QACxB,6BAAK,SAAS,EAAC,iBAAiB;YAC9B,6BACE,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE;oBACL,KAAK,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG;iBACtD;gBAED,6BAAK,SAAS,EAAC,oGAAoG,GAAG,CAClH;YACN,6BACE,SAAS,EACP,gIAAgI,EAElI,KAAK,EAAE;oBACL,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG;oBAC1D,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG;iBAC5D,GACI,CACH;QACN,6BAAK,SAAS,EAAC,mBAAmB,IAAE,KAAK,CAAO,CAC5C,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { render } from '@core-utils';
3
+ import { Stepper } from './stepper.component';
4
+ it('render XB_Stepper correctly', () => {
5
+ const stepper = render(React.createElement(Stepper, { steps: ['1', '2', '3', '4'], currentStep: 3, onStepClick: () => jest.fn(), className: "mt-4" }));
6
+ expect(stepper).toMatchSnapshot();
7
+ });
8
+ //# sourceMappingURL=stepper.component.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.component.test.js","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.component.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAC5C,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;IACrC,MAAM,OAAO,GAAG,MAAM,CACpB,oBAAC,OAAO,IACN,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC3B,WAAW,EAAE,CAAC,EACd,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAC5B,SAAS,EAAC,MAAM,GAChB,CACH,CAAC;IACF,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,CAAC;AACpC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /* eslint-disable react/jsx-indent-props */
3
+ import React from 'react';
4
+ import { Stepper } from './stepper.component';
5
+ // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
6
+ export default {
7
+ title: 'Atoms/Stepper',
8
+ component: Stepper,
9
+ // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
10
+ argTypes: {
11
+ backgroundColor: { control: 'color' },
12
+ },
13
+ };
14
+ // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
15
+ export const Primary = () => (React.createElement(Stepper, { steps: ['1', '2', '3', '4'], currentStep: 2, onStepClick: (currentStep, step) => { }, className: "mt-4" }));
16
+ //# sourceMappingURL=stepper.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.stories.js","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.stories.tsx"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,2CAA2C;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C,0GAA0G;AAC1G,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,OAAO;IAClB,qEAAqE;IACrE,QAAQ,EAAE;QACR,eAAe,EAAE,EAAC,OAAO,EAAE,OAAO,EAAC;KACpC;CAC+B,CAAC;AAEnC,2GAA2G;AAC3G,MAAM,CAAC,MAAM,OAAO,GAAmC,GAAG,EAAE,CAAC,CAC3D,oBAAC,OAAO,IACN,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC3B,WAAW,EAAE,CAAC,EACd,WAAW,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,EAAE,GAAE,CAAC,EACtC,SAAS,EAAC,MAAM,GAChB,CACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './atoms/stepper/stepper.component';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core-components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './unit-test.utils';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { render as renderComponent } from '@testing-library/react';
3
+ const Providers = ({ children }) => {
4
+ return React.createElement("div", null, children);
5
+ };
6
+ const render = (Component) => {
7
+ return renderComponent(Component, { wrapper: Providers });
8
+ };
9
+ export { render, Providers };
10
+ //# sourceMappingURL=unit-test.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-test.utils.js","sourceRoot":"","sources":["../../../src/core-utils/unit-test.utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,IAAI,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEjE,MAAM,SAAS,GAAG,CAAC,EAAC,QAAQ,EAAM,EAAE,EAAE;IACpC,OAAO,iCAAM,QAAQ,CAAO,CAAC;AAC/B,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,CAAC,SAAsB,EAAE,EAAE;IACxC,OAAO,eAAe,CAAC,SAAS,EAAE,EAAC,OAAO,EAAE,SAAS,EAAC,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,OAAO,EAAC,MAAM,EAAE,SAAS,EAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './core-components';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ const reportWebVitals = (onPerfEntry) => {
2
+ if (onPerfEntry && onPerfEntry instanceof Function) {
3
+ import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4
+ getCLS(onPerfEntry);
5
+ getFID(onPerfEntry);
6
+ getFCP(onPerfEntry);
7
+ getLCP(onPerfEntry);
8
+ getTTFB(onPerfEntry);
9
+ });
10
+ }
11
+ };
12
+ export default reportWebVitals;
13
+ //# sourceMappingURL=reportWebVitals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reportWebVitals.js","sourceRoot":"","sources":["../../src/reportWebVitals.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,CAAC,WAA2B,EAAE,EAAE;IACtD,IAAI,WAAW,IAAI,WAAW,YAAY,QAAQ,EAAE;QAClD,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;YACxE,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,MAAM,CAAC,WAAW,CAAC,CAAC;YACpB,OAAO,CAAC,WAAW,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;KACJ;AACH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
+ // allows you to do things like:
3
+ // expect(element).toHaveTextContent(/react/i)
4
+ // learn more: https://github.com/testing-library/jest-dom
5
+ import '@testing-library/jest-dom';
6
+ //# sourceMappingURL=setupTests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupTests.js","sourceRoot":"","sources":["../../src/setupTests.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,gCAAgC;AAChC,8CAA8C;AAC9C,0DAA0D;AAC1D,OAAO,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-restyle-components",
3
- "version": "0.1.14",
3
+ "version": "0.1.17",
4
4
  "private": false,
5
5
  "description": "Easy use restyle components",
6
6
  "types": "lib/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "@testing-library/react": "^13.1.1",
18
18
  "@testing-library/user-event": "^13.5.0",
19
19
  "@types/jest": "^27.4.1",
20
- "@types/node": "^16.11.27",
20
+ "@types/node": "^17.0.25",
21
21
  "@types/react": "^18.0.5",
22
22
  "@types/react-dom": "^18.0.1",
23
23
  "react": "^18.0.0",
@@ -36,7 +36,8 @@
36
36
  "test": "react-scripts test",
37
37
  "eject": "react-scripts eject",
38
38
  "storybook": "start-storybook -p 6006 -s public",
39
- "build-storybook": "build-storybook -s public"
39
+ "build-storybook": "build-storybook -o docs-build",
40
+ "deploy-storybook": "gh-pages -d docs-build"
40
41
  },
41
42
  "files": [
42
43
  "lib/"
@@ -82,6 +83,7 @@
82
83
  "@storybook/react": "^6.4.22",
83
84
  "@storybook/testing-library": "^0.0.10",
84
85
  "craco-alias": "^3.0.1",
86
+ "node": "^17.7.2",
85
87
  "webpack": "^5.72.0"
86
88
  },
87
89
  "keywords": [