@stokr/components-library 2.3.61 → 2.3.62
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/dist/components/2FA/login-with-otp-flow.js +9 -1
- package/dist/components/Chips/Chip.js +5 -4
- package/dist/components/Chips/Chip.stories.js +2 -1
- package/dist/components/Chips/ChipWrapper.js +9 -4
- package/dist/components/Chips/ChipsWrapper.stories.js +7 -3
- package/dist/components/InfoIcon/InfoIcon.js +3 -2
- package/dist/components/InfoIcon/InfoIcon.stories.js +2 -1
- package/dist/components/headerHo/HeaderHo.js +2 -3
- package/dist/utils/check-todo-status.js +1 -1
- package/package.json +134 -134
|
@@ -214,7 +214,15 @@ const LoginWithOTP = _ref => {
|
|
|
214
214
|
handleSetPopupSuccess('forgot', "We sent a message to ".concat(email, " (you might need to check your junk or spam folder) \u2014 tap the link inside to create a new password."));
|
|
215
215
|
setIsActionLoading(undefined);
|
|
216
216
|
} catch (error) {
|
|
217
|
-
|
|
217
|
+
var _error$response;
|
|
218
|
+
console.log(error);
|
|
219
|
+
let errorMessage = "Too many requests. Please try again later.";
|
|
220
|
+
console.log(error === null || error === void 0 ? void 0 : error.response);
|
|
221
|
+
if ((error === null || error === void 0 || (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status) === 429) {
|
|
222
|
+
var _error$response$data;
|
|
223
|
+
errorMessage = (_error$response$data = error.response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.message;
|
|
224
|
+
}
|
|
225
|
+
handleSetPopupError('forgot', errorMessage);
|
|
218
226
|
setIsActionLoading(undefined);
|
|
219
227
|
}
|
|
220
228
|
}
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _ChipStyles = require("./Chip.styles.js");
|
|
10
10
|
var _InfoIcon = _interopRequireDefault(require("../InfoIcon/InfoIcon.js"));
|
|
11
|
-
const _excluded = ["children", "isActive", "onClick", "tooltip"];
|
|
11
|
+
const _excluded = ["children", "isActive", "onClick", "tooltip", "tooltipProps"];
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
14
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
@@ -18,19 +18,20 @@ const Chip = _ref => {
|
|
|
18
18
|
children,
|
|
19
19
|
isActive,
|
|
20
20
|
onClick,
|
|
21
|
-
tooltip
|
|
21
|
+
tooltip,
|
|
22
|
+
tooltipProps
|
|
22
23
|
} = _ref,
|
|
23
24
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement(_ChipStyles.StyledChip, _extends({
|
|
25
26
|
onClick: onClick,
|
|
26
27
|
isActive: isActive
|
|
27
|
-
}, props), /*#__PURE__*/_react.default.createElement(_ChipStyles.ChipText, null, children), tooltip && /*#__PURE__*/_react.default.createElement(_InfoIcon.default, {
|
|
28
|
+
}, props), /*#__PURE__*/_react.default.createElement(_ChipStyles.ChipText, null, children), tooltip && /*#__PURE__*/_react.default.createElement(_InfoIcon.default, _extends({
|
|
28
29
|
title: tooltip,
|
|
29
30
|
position: "top",
|
|
30
31
|
noIcon: true,
|
|
31
32
|
noMarginLeft: true,
|
|
32
33
|
noMarginRight: true
|
|
33
|
-
}, /*#__PURE__*/_react.default.createElement(_ChipStyles.TooltipChipIcon, null)));
|
|
34
|
+
}, tooltipProps), /*#__PURE__*/_react.default.createElement(_ChipStyles.TooltipChipIcon, null)));
|
|
34
35
|
};
|
|
35
36
|
exports.Chip = Chip;
|
|
36
37
|
Chip.propTypes = {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.WithTooltip = exports.Default = exports.Active = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Chip = _interopRequireDefault(require("./Chip"));
|
|
9
|
+
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16,7 +17,7 @@ var _default = exports.default = {
|
|
|
16
17
|
title: 'Components/Chip',
|
|
17
18
|
component: _Chip.default
|
|
18
19
|
};
|
|
19
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_Chip.default, args);
|
|
20
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_Chip.default, args));
|
|
20
21
|
const Default = exports.Default = Template.bind({});
|
|
21
22
|
Default.args = {
|
|
22
23
|
children: 'Default Chip',
|
|
@@ -9,7 +9,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _Chip = _interopRequireDefault(require("./Chip"));
|
|
10
10
|
var _Chip2 = require("./Chip.styles");
|
|
11
11
|
var _TabsNav = require("../TabsNav/TabsNav.styles");
|
|
12
|
-
const _excluded = ["chips", "onActiveChipChange", "customWrapperStyle"];
|
|
12
|
+
const _excluded = ["chips", "onActiveChipChange", "customWrapperStyle", "tooltipProps", "scrollStyles"];
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
15
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
@@ -19,7 +19,9 @@ const ChipsWrapper = _ref => {
|
|
|
19
19
|
let {
|
|
20
20
|
chips,
|
|
21
21
|
onActiveChipChange = () => {},
|
|
22
|
-
customWrapperStyle
|
|
22
|
+
customWrapperStyle,
|
|
23
|
+
tooltipProps,
|
|
24
|
+
scrollStyles
|
|
23
25
|
} = _ref,
|
|
24
26
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
27
|
const [activeChip, setActiveChip] = (0, _react.useState)(null);
|
|
@@ -34,13 +36,16 @@ const ChipsWrapper = _ref => {
|
|
|
34
36
|
setActiveChip(index);
|
|
35
37
|
onActiveChipChange(index); // Optionally notify parent about the change
|
|
36
38
|
};
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement(_TabsNav.Scroll,
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_TabsNav.Scroll, {
|
|
40
|
+
style: scrollStyles
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_Chip2.Wrapper, {
|
|
38
42
|
customWrapperStyle: customWrapperStyle
|
|
39
43
|
}, chips.map((chip, index) => /*#__PURE__*/_react.default.createElement(_Chip.default, _extends({
|
|
40
44
|
key: index,
|
|
41
45
|
isActive: activeChip === index,
|
|
42
46
|
onClick: () => handleChipClick(index),
|
|
43
|
-
tooltip: chip.tooltip
|
|
47
|
+
tooltip: chip.tooltip,
|
|
48
|
+
tooltipProps: tooltipProps
|
|
44
49
|
}, props), chip.label))));
|
|
45
50
|
};
|
|
46
51
|
exports.ChipsWrapper = ChipsWrapper;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.Default = exports.CustomStyle = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _ChipWrapper = _interopRequireDefault(require("./ChipWrapper"));
|
|
9
|
+
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16,7 +17,7 @@ var _default = exports.default = {
|
|
|
16
17
|
title: 'Components/ChipsWrapper',
|
|
17
18
|
component: _ChipWrapper.default
|
|
18
19
|
};
|
|
19
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_ChipWrapper.default, args);
|
|
20
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ChipWrapper.default, args));
|
|
20
21
|
const Default = exports.Default = Template.bind({});
|
|
21
22
|
Default.args = {
|
|
22
23
|
chips: [{
|
|
@@ -31,13 +32,16 @@ Default.args = {
|
|
|
31
32
|
label: 'Chip 3',
|
|
32
33
|
tooltip: 'Tooltip 3',
|
|
33
34
|
isActive: false
|
|
34
|
-
}]
|
|
35
|
-
onActiveChipChange: index => alert(
|
|
35
|
+
}]
|
|
36
|
+
// onActiveChipChange: (index) => alert(`Active chip changed to: ${index}`),
|
|
36
37
|
};
|
|
37
38
|
const CustomStyle = exports.CustomStyle = Template.bind({});
|
|
38
39
|
CustomStyle.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
39
40
|
customWrapperStyle: {
|
|
40
41
|
backgroundColor: '#f0f0f0',
|
|
41
42
|
padding: '10px'
|
|
43
|
+
},
|
|
44
|
+
tooltipProps: {
|
|
45
|
+
followCursor: true
|
|
42
46
|
}
|
|
43
47
|
});
|
|
@@ -10,6 +10,7 @@ var _reactTippy = require("react-tippy");
|
|
|
10
10
|
var _InfoIcon = require("./InfoIcon.styles");
|
|
11
11
|
const _excluded = ["title", "html", "position", "noMargin", "noMarginLeft", "noMarginRight", "noIcon", "disabled", "fullWidth", "containerStyle"];
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
14
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
14
15
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
16
|
const InfoIcon = _ref => {
|
|
@@ -32,7 +33,7 @@ const InfoIcon = _ref => {
|
|
|
32
33
|
noMarginRight: noMarginRight,
|
|
33
34
|
fullWidth: fullWidth,
|
|
34
35
|
style: containerStyle
|
|
35
|
-
}, /*#__PURE__*/_react.default.createElement(_reactTippy.Tooltip, {
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_reactTippy.Tooltip, _extends({}, props, {
|
|
36
37
|
position: position,
|
|
37
38
|
title: title,
|
|
38
39
|
html: html,
|
|
@@ -42,7 +43,7 @@ const InfoIcon = _ref => {
|
|
|
42
43
|
// onRequestClose={() => console.log('request to close tooltip')}
|
|
43
44
|
,
|
|
44
45
|
disabled: disabled
|
|
45
|
-
}, noIcon ? props.children : /*#__PURE__*/_react.default.createElement(_InfoIcon.Icon, null)));
|
|
46
|
+
}), noIcon ? props.children : /*#__PURE__*/_react.default.createElement(_InfoIcon.Icon, null)));
|
|
46
47
|
};
|
|
47
48
|
exports.InfoIcon = InfoIcon;
|
|
48
49
|
InfoIcon.propTypes = {
|
|
@@ -240,7 +240,6 @@ class HeaderHoClass extends _react.Component {
|
|
|
240
240
|
} = this.context;
|
|
241
241
|
if (!mobileMenuOpen) {
|
|
242
242
|
if (isOpenCurrent) {
|
|
243
|
-
console.log('🚀 ~ componentDidUpdate ~ isOpenCurrent:', isOpenCurrent);
|
|
244
243
|
document.body.style.overflow = 'hidden';
|
|
245
244
|
} else if (isOpenPrev) {
|
|
246
245
|
document.body.style.overflow = 'unset';
|
|
@@ -575,7 +574,6 @@ class HeaderHoClass extends _react.Component {
|
|
|
575
574
|
console.log('isResettingExpiredToken: ', isResettingExpiredToken);
|
|
576
575
|
payload.ventureInvite = true;
|
|
577
576
|
}
|
|
578
|
-
console.log('payload obj: ', payload);
|
|
579
577
|
try {
|
|
580
578
|
await (0, _auth.default)('forgotPass', payload);
|
|
581
579
|
this.setPopupSuccess('forgot', "We sent a message to ".concat(email, " (you might need to check your junk or spam folder) \u2014 tap the link inside to create a new password."));
|
|
@@ -584,7 +582,8 @@ class HeaderHoClass extends _react.Component {
|
|
|
584
582
|
var _error$response2;
|
|
585
583
|
console.log(error);
|
|
586
584
|
let errorMessage = "Too many requests. Please try again later.";
|
|
587
|
-
|
|
585
|
+
console.log(error === null || error === void 0 ? void 0 : error.response);
|
|
586
|
+
if ((error === null || error === void 0 || (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : _error$response2.status) === 429 || error !== null && error !== void 0 && error.includes('429')) {
|
|
588
587
|
var _error$response$data2;
|
|
589
588
|
errorMessage = (_error$response$data2 = error.response.data) === null || _error$response$data2 === void 0 ? void 0 : _error$response$data2.message;
|
|
590
589
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.checkTodoStatus = void 0;
|
|
7
7
|
var _checklistGenerator = require("./checklistGenerator");
|
|
8
8
|
const checkTodoStatus = user => {
|
|
9
|
-
if (user.user_type === 'investor' || user.user_type === 'investor-entity') {
|
|
9
|
+
if ((user === null || user === void 0 ? void 0 : user.user_type) === 'investor' || (user === null || user === void 0 ? void 0 : user.user_type) === 'investor-entity') {
|
|
10
10
|
const coreTasks = (0, _checklistGenerator.generateCoreChecklistTasks)(user);
|
|
11
11
|
return coreTasks.remainingCount;
|
|
12
12
|
} else return 0;
|
package/package.json
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@stokr/components-library",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"description": "STOKR - Components Library",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"README.md"
|
|
10
|
-
],
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "http://46.101.229.186:3000/stokr/components-library"
|
|
14
|
-
},
|
|
15
|
-
"author": "Bilal Hodzic <bilal@stokr.io>",
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "react-scripts build",
|
|
19
|
-
"build-storybook": "storybook build",
|
|
20
|
-
"build-storybook-docs": "storybook build -s public --docs",
|
|
21
|
-
"build:dist": "cross-env BABEL_ENV=production babel src -d dist",
|
|
22
|
-
"test": "react-scripts test",
|
|
23
|
-
"prepare": "npm run build",
|
|
24
|
-
"storybook": "storybook dev -p 6006",
|
|
25
|
-
"start": "npm run storybook",
|
|
26
|
-
"chromatic": "CHROMATIC_APP_CODE=7kzdke5umep chromatic",
|
|
27
|
-
"release": "auto shipit",
|
|
28
|
-
"pub": "rm -rf ./dist && npm publish --access public",
|
|
29
|
-
"start:script": "react-scripts start",
|
|
30
|
-
"serve": "npx http-server ./storybook-static -p 9009"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"ajv": "^8.17.1",
|
|
34
|
-
"axios": "^0.30.2",
|
|
35
|
-
"bignumber.js": "^9.1.1",
|
|
36
|
-
"cross-env": "^10.1.0",
|
|
37
|
-
"d3": "^7.8.3",
|
|
38
|
-
"date-fns": "^4.1.0",
|
|
39
|
-
"firebase": "^12.4.0",
|
|
40
|
-
"formik": "^2.2.9",
|
|
41
|
-
"formik-persist": "^1.1.0",
|
|
42
|
-
"html-react-parser": "^5.0.6",
|
|
43
|
-
"http-server": "^14.1.1",
|
|
44
|
-
"js-cookie": "^3.0.5",
|
|
45
|
-
"mobile-detect": "^1.4.5",
|
|
46
|
-
"moment": "^2.30.1",
|
|
47
|
-
"moment-timezone": "^0.6.0",
|
|
48
|
-
"prop-types": "^15.8.1",
|
|
49
|
-
"qrcode.react": "^4.2.0",
|
|
50
|
-
"react": "^18.3.1",
|
|
51
|
-
"react-collapse": "^5.1.1",
|
|
52
|
-
"react-copy-to-clipboard": "^5.1.0",
|
|
53
|
-
"react-countup": "^6.4.1",
|
|
54
|
-
"react-custom-scrollbars-2": "^4.5.0",
|
|
55
|
-
"react-day-picker": "^9.11.1",
|
|
56
|
-
"react-device-detect": "^2.2.3",
|
|
57
|
-
"react-dom": "^18.3.1",
|
|
58
|
-
"react-ga4": "^2.1.0",
|
|
59
|
-
"react-helmet": "^6.1.0",
|
|
60
|
-
"react-otp-input": "^3.1.0",
|
|
61
|
-
"react-portal": "^4.2.2",
|
|
62
|
-
"react-qr-code": "^2.0.12",
|
|
63
|
-
"react-range": "^1.8.14",
|
|
64
|
-
"react-router-dom": "^6.8.1",
|
|
65
|
-
"react-scripts": "5.0.1",
|
|
66
|
-
"react-select": "^5.7.0",
|
|
67
|
-
"react-slick": "^0.31.0",
|
|
68
|
-
"react-table": "^7.8.0",
|
|
69
|
-
"react-tippy": "^1.4.0",
|
|
70
|
-
"react-transition-group": "^4.4.5",
|
|
71
|
-
"react-visibility-sensor": "^5.1.1",
|
|
72
|
-
"scroll-to-element": "^2.0.3",
|
|
73
|
-
"semantic-ui-react": "^2.1.4",
|
|
74
|
-
"slick-carousel": "^1.8.1",
|
|
75
|
-
"styled-components": "^6.0.7",
|
|
76
|
-
"yup": "^1.0.0"
|
|
77
|
-
},
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"@babel/cli": "^7.20.7",
|
|
80
|
-
"@babel/core": "^7.20.12",
|
|
81
|
-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
82
|
-
"@babel/preset-env": "^7.20.2",
|
|
83
|
-
"@babel/preset-react": "^7.18.6",
|
|
84
|
-
"@chromatic-com/storybook": "^4.1.1",
|
|
85
|
-
"@storybook/addon-docs": "^9.1.15",
|
|
86
|
-
"@storybook/addon-links": "^9.1.15",
|
|
87
|
-
"@storybook/preset-create-react-app": "^9.1.15",
|
|
88
|
-
"@storybook/react-webpack5": "^9.1.15",
|
|
89
|
-
"babel-plugin-styled-components": "^2.1.4",
|
|
90
|
-
"prettier": "^3.0.3",
|
|
91
|
-
"storybook": "^9.1.15",
|
|
92
|
-
"styled-components.macro": "^1.0.0"
|
|
93
|
-
},
|
|
94
|
-
"eslintConfig": {
|
|
95
|
-
"extends": [
|
|
96
|
-
"react-app",
|
|
97
|
-
"react-app/jest"
|
|
98
|
-
],
|
|
99
|
-
"overrides": [
|
|
100
|
-
{
|
|
101
|
-
"files": [
|
|
102
|
-
"**/*.stories.*"
|
|
103
|
-
],
|
|
104
|
-
"rules": {
|
|
105
|
-
"import/no-anonymous-default-export": "off"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
"browserslist": {
|
|
111
|
-
"production": [
|
|
112
|
-
">0.2%",
|
|
113
|
-
"not dead",
|
|
114
|
-
"not op_mini all"
|
|
115
|
-
],
|
|
116
|
-
"development": [
|
|
117
|
-
"last 1 chrome version",
|
|
118
|
-
"last 1 firefox version",
|
|
119
|
-
"last 1 safari version"
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
"browser": {
|
|
123
|
-
"[module-name]": false
|
|
124
|
-
},
|
|
125
|
-
"bugs": {
|
|
126
|
-
"url": "https://github.com/stokr-io/components-library/issues"
|
|
127
|
-
},
|
|
128
|
-
"homepage": "https://github.com/stokr-io/components-library#readme",
|
|
129
|
-
"keywords": [
|
|
130
|
-
"stokr",
|
|
131
|
-
"components-library",
|
|
132
|
-
"story-book"
|
|
133
|
-
]
|
|
134
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@stokr/components-library",
|
|
3
|
+
"version": "2.3.62",
|
|
4
|
+
"description": "STOKR - Components Library",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "http://46.101.229.186:3000/stokr/components-library"
|
|
14
|
+
},
|
|
15
|
+
"author": "Bilal Hodzic <bilal@stokr.io>",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "react-scripts build",
|
|
19
|
+
"build-storybook": "storybook build",
|
|
20
|
+
"build-storybook-docs": "storybook build -s public --docs",
|
|
21
|
+
"build:dist": "cross-env BABEL_ENV=production babel src -d dist",
|
|
22
|
+
"test": "react-scripts test",
|
|
23
|
+
"prepare": "npm run build",
|
|
24
|
+
"storybook": "storybook dev -p 6006",
|
|
25
|
+
"start": "npm run storybook",
|
|
26
|
+
"chromatic": "CHROMATIC_APP_CODE=7kzdke5umep chromatic",
|
|
27
|
+
"release": "auto shipit",
|
|
28
|
+
"pub": "rm -rf ./dist && npm publish --access public",
|
|
29
|
+
"start:script": "react-scripts start",
|
|
30
|
+
"serve": "npx http-server ./storybook-static -p 9009"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"ajv": "^8.17.1",
|
|
34
|
+
"axios": "^0.30.2",
|
|
35
|
+
"bignumber.js": "^9.1.1",
|
|
36
|
+
"cross-env": "^10.1.0",
|
|
37
|
+
"d3": "^7.8.3",
|
|
38
|
+
"date-fns": "^4.1.0",
|
|
39
|
+
"firebase": "^12.4.0",
|
|
40
|
+
"formik": "^2.2.9",
|
|
41
|
+
"formik-persist": "^1.1.0",
|
|
42
|
+
"html-react-parser": "^5.0.6",
|
|
43
|
+
"http-server": "^14.1.1",
|
|
44
|
+
"js-cookie": "^3.0.5",
|
|
45
|
+
"mobile-detect": "^1.4.5",
|
|
46
|
+
"moment": "^2.30.1",
|
|
47
|
+
"moment-timezone": "^0.6.0",
|
|
48
|
+
"prop-types": "^15.8.1",
|
|
49
|
+
"qrcode.react": "^4.2.0",
|
|
50
|
+
"react": "^18.3.1",
|
|
51
|
+
"react-collapse": "^5.1.1",
|
|
52
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
53
|
+
"react-countup": "^6.4.1",
|
|
54
|
+
"react-custom-scrollbars-2": "^4.5.0",
|
|
55
|
+
"react-day-picker": "^9.11.1",
|
|
56
|
+
"react-device-detect": "^2.2.3",
|
|
57
|
+
"react-dom": "^18.3.1",
|
|
58
|
+
"react-ga4": "^2.1.0",
|
|
59
|
+
"react-helmet": "^6.1.0",
|
|
60
|
+
"react-otp-input": "^3.1.0",
|
|
61
|
+
"react-portal": "^4.2.2",
|
|
62
|
+
"react-qr-code": "^2.0.12",
|
|
63
|
+
"react-range": "^1.8.14",
|
|
64
|
+
"react-router-dom": "^6.8.1",
|
|
65
|
+
"react-scripts": "5.0.1",
|
|
66
|
+
"react-select": "^5.7.0",
|
|
67
|
+
"react-slick": "^0.31.0",
|
|
68
|
+
"react-table": "^7.8.0",
|
|
69
|
+
"react-tippy": "^1.4.0",
|
|
70
|
+
"react-transition-group": "^4.4.5",
|
|
71
|
+
"react-visibility-sensor": "^5.1.1",
|
|
72
|
+
"scroll-to-element": "^2.0.3",
|
|
73
|
+
"semantic-ui-react": "^2.1.4",
|
|
74
|
+
"slick-carousel": "^1.8.1",
|
|
75
|
+
"styled-components": "^6.0.7",
|
|
76
|
+
"yup": "^1.0.0"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@babel/cli": "^7.20.7",
|
|
80
|
+
"@babel/core": "^7.20.12",
|
|
81
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
82
|
+
"@babel/preset-env": "^7.20.2",
|
|
83
|
+
"@babel/preset-react": "^7.18.6",
|
|
84
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
85
|
+
"@storybook/addon-docs": "^9.1.15",
|
|
86
|
+
"@storybook/addon-links": "^9.1.15",
|
|
87
|
+
"@storybook/preset-create-react-app": "^9.1.15",
|
|
88
|
+
"@storybook/react-webpack5": "^9.1.15",
|
|
89
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
90
|
+
"prettier": "^3.0.3",
|
|
91
|
+
"storybook": "^9.1.15",
|
|
92
|
+
"styled-components.macro": "^1.0.0"
|
|
93
|
+
},
|
|
94
|
+
"eslintConfig": {
|
|
95
|
+
"extends": [
|
|
96
|
+
"react-app",
|
|
97
|
+
"react-app/jest"
|
|
98
|
+
],
|
|
99
|
+
"overrides": [
|
|
100
|
+
{
|
|
101
|
+
"files": [
|
|
102
|
+
"**/*.stories.*"
|
|
103
|
+
],
|
|
104
|
+
"rules": {
|
|
105
|
+
"import/no-anonymous-default-export": "off"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"browserslist": {
|
|
111
|
+
"production": [
|
|
112
|
+
">0.2%",
|
|
113
|
+
"not dead",
|
|
114
|
+
"not op_mini all"
|
|
115
|
+
],
|
|
116
|
+
"development": [
|
|
117
|
+
"last 1 chrome version",
|
|
118
|
+
"last 1 firefox version",
|
|
119
|
+
"last 1 safari version"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"browser": {
|
|
123
|
+
"[module-name]": false
|
|
124
|
+
},
|
|
125
|
+
"bugs": {
|
|
126
|
+
"url": "https://github.com/stokr-io/components-library/issues"
|
|
127
|
+
},
|
|
128
|
+
"homepage": "https://github.com/stokr-io/components-library#readme",
|
|
129
|
+
"keywords": [
|
|
130
|
+
"stokr",
|
|
131
|
+
"components-library",
|
|
132
|
+
"story-book"
|
|
133
|
+
]
|
|
134
|
+
}
|