@stokr/components-library 2.3.65-beta.1 → 2.3.65-beta.11
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/main-flow.js +28 -7
- package/dist/components/AdminDashboard/Table/ReactTable.js +123 -7
- package/dist/components/Chips/Chip.js +1 -2
- package/dist/components/Chips/Chip.styles.js +3 -2
- package/dist/components/Input/Input.js +33 -33
- package/dist/components/Input/MultiSelect.js +319 -0
- package/dist/components/Input/SearchInput.js +78 -0
- package/dist/components/Input/SearchInput.styles.js +25 -0
- package/dist/components/Input/Select.js +51 -28
- package/dist/components/Modal/SideModal.js +82 -0
- package/dist/components/Modal/SideModal.styles.js +21 -0
- package/dist/components/Payment/PaymentDetailsCard.js +189 -0
- package/dist/components/Payment/PaymentDisplay.js +2 -12
- package/dist/components/ProfileBox/ProfileBox.js +2 -1
- package/dist/components/Snackbar/Snackbar.js +193 -0
- package/dist/components/Snackbar/Snackbar.styles.js +97 -0
- package/dist/components/Snackbar/SnackbarProvider.js +81 -0
- package/dist/components/Snackbar/index.js +32 -0
- package/dist/components/Snackbar/useSnackbar.js +43 -0
- package/dist/components/StatusTag/StatusTag.js +175 -0
- package/dist/components/StatusTag/StatusTag.styles.js +37 -0
- package/dist/components/StepsProgress/StepIndicator.js +59 -0
- package/dist/components/StepsProgress/StepIndicator.styles.js +30 -0
- package/dist/components/TextLink/TextLink.styles.js +1 -1
- package/dist/components/Timeline/TimelineStep.js +2 -2
- package/dist/constants/globalVariables.js +41 -2
- package/dist/context/Checkbox/CheckboxContext.js +0 -1
- package/dist/index.js +66 -0
- package/dist/static/images/bmn2-logo.svg +9 -0
- package/dist/static/images/document-icon.svg +3 -0
- package/dist/static/images/plus-icon.svg +4 -0
- package/dist/static/images/search-icon.svg +3 -0
- package/dist/static/images/sent-icon.svg +10 -0
- package/dist/static/images/transfer-icon.svg +10 -0
- package/dist/utils/formatCurrencyValue.js +43 -3
- package/package.json +3 -2
- package/dist/components/2FA/EnterCode.stories.js +0 -35
- package/dist/components/2FA/disable-2fa-flow.stories.js +0 -31
- package/dist/components/2FA/enable-2fa-flow.stories.js +0 -31
- package/dist/components/2FA/login-with-otp-flow.stories.js +0 -31
- package/dist/components/2FA/main-flow.stories.js +0 -33
- package/dist/components/AccountBalance/AccountBalance.stories.js +0 -83
- package/dist/components/AdminDashboard/Table/ReactTable.stories.js +0 -406
- package/dist/components/AgreementItem/AgreementItem.stories.js +0 -105
- package/dist/components/AnalyticGraphs/Analytic.js +0 -541
- package/dist/components/AnalyticGraphs/Analytic.styles.js +0 -25
- package/dist/components/BackButton/BackButton.stories.js +0 -32
- package/dist/components/Background/Background.stories.js +0 -75
- package/dist/components/BarChart/BarChart.js +0 -263
- package/dist/components/BarChart/BarChart.stories.js +0 -66
- package/dist/components/BarChart/BarChart.styles.js +0 -26
- package/dist/components/BarChartLegend/BarChartLegend.js +0 -79
- package/dist/components/BarChartLegend/BarChartLegend.styles.js +0 -21
- package/dist/components/BasicTable/BasicTable.stories.js +0 -59
- package/dist/components/BlogPost/BlogPost.stories.js +0 -160
- package/dist/components/Button/Button.stories.js +0 -146
- package/dist/components/Button/GlareButton.stories.js +0 -132
- package/dist/components/CapitalRaisedSummary/CapitalRaisedSummery.stories.js +0 -42
- package/dist/components/ChartBox/ChartBox.js +0 -41
- package/dist/components/ChartBox/ChartBox.stories.js +0 -17
- package/dist/components/ChartBox/ChartBox.styles.js +0 -27
- package/dist/components/ChartBox/ChartBoxDistribution.js +0 -27
- package/dist/components/ChartBox/ChartBoxDistribution.stories.js +0 -18
- package/dist/components/ChartLegend/ChartLegend.stories.js +0 -90
- package/dist/components/Checkbox/Checkbox.stories.js +0 -88
- package/dist/components/Checklist/ChecklistCard.stories.js +0 -102
- package/dist/components/Checklist/UserChecklist.js +0 -184
- package/dist/components/Checklist/UserChecklist.stories.js +0 -317
- package/dist/components/Chips/Chip.stories.js +0 -36
- package/dist/components/Chips/ChipsWrapper.stories.js +0 -47
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +0 -111
- package/dist/components/CryptoAddress/CryptoAddress.stories.js +0 -205
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.stories.js +0 -70
- package/dist/components/DonutChart/DonutChart.stories.js +0 -54
- package/dist/components/FAQ/FAQ.stories.js +0 -76
- package/dist/components/Footer/Footer.stories.js +0 -49
- package/dist/components/Footer/FooterLayout.stories.js +0 -26
- package/dist/components/Footer/FooterMenu.stories.js +0 -113
- package/dist/components/Footer/mangopay.png +0 -0
- package/dist/components/Footer/mangopay.svg +0 -20
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.stories.js +0 -69
- package/dist/components/Form/Form.stories.js +0 -32
- package/dist/components/FullscreenCard/FullscreenCard.styles.js +0 -27
- package/dist/components/Header/Header.stories.js +0 -192
- package/dist/components/InfoIcon/InfoIcon.stories.js +0 -299
- package/dist/components/InfoPanel/InfoPanel.js +0 -124
- package/dist/components/Input/DatePickerInput.stories.js +0 -87
- package/dist/components/Input/Input.stories.js +0 -142
- package/dist/components/Input/InputPassword.stories.js +0 -80
- package/dist/components/Input/InputWithButton.stories.js +0 -75
- package/dist/components/Input/OtpInput.stories.js +0 -57
- package/dist/components/Input/RangeInput.stories.js +0 -58
- package/dist/components/Input/Select.stories.js +0 -139
- package/dist/components/InvestCalculator/InvestCalculator.stories.js +0 -135
- package/dist/components/InvestmentStat/InvestmentStat.stories.js +0 -52
- package/dist/components/KYCFlow/BasicInfo.js +0 -448
- package/dist/components/KYCFlow/Confirmation.js +0 -46
- package/dist/components/KYCFlow/DocumentFileUpload.js +0 -263
- package/dist/components/KYCFlow/DocumentScan.js +0 -75
- package/dist/components/KYCFlow/DocumentScanUpload.js +0 -251
- package/dist/components/KYCFlow/DocumentSelect.js +0 -118
- package/dist/components/KYCFlow/DocumentSuccess.js +0 -63
- package/dist/components/KYCFlow/DocumentUpload.js +0 -53
- package/dist/components/KYCFlow/DocumentVerificationType.js +0 -131
- package/dist/components/KYCFlow/FaceScan.js +0 -54
- package/dist/components/KYCFlow/FaceScanRecognition.js +0 -61
- package/dist/components/KYCFlow/FaceScanSuccess.js +0 -56
- package/dist/components/KYCFlow/Terms.js +0 -119
- package/dist/components/KYCFlow/_styles.js +0 -111
- package/dist/components/KYCFlow/index.js +0 -97
- package/dist/components/KYCSelectBox/KYCSelectBox.styles.js +0 -29
- package/dist/components/LatestUpdate/LatestUpdate.stories.js +0 -58
- package/dist/components/Layout/Layout.stories.js +0 -60
- package/dist/components/LearnMoreCarousel/LearnMoreCarousel.stories.js +0 -66
- package/dist/components/LearnMorePage/LearnMore.stories.js +0 -48
- package/dist/components/LearnMorePage/LearnMoreItem.stories.js +0 -62
- package/dist/components/LearnMoreSection/LearnMore.stories.js +0 -30
- package/dist/components/LearnMoreSection/LearnMoreItem.stories.js +0 -59
- package/dist/components/LoginModal/LoginModal.stories.js +0 -74
- package/dist/components/MatomoConnect/Matomo.js +0 -228
- package/dist/components/MatomoConnect/Matomo_fuckup.js +0 -387
- package/dist/components/Modal/Modal.stories.js +0 -75
- package/dist/components/Modal/NewVentureModal/NewVentureModal.stories.js +0 -150
- package/dist/components/Modal/PaymentModal.stories.js +0 -57
- package/dist/components/MultiProgressBar/MultiProgressBar.stories.js +0 -67
- package/dist/components/Newsletter/Newsletter.stories.js +0 -16
- package/dist/components/NotificationContext/NotificationContext.js +0 -141
- package/dist/components/Number/Number.stories.js +0 -92
- package/dist/components/Pagination/Pagination.stories.js +0 -83
- package/dist/components/Pagination/PaginationControls.stories.js +0 -112
- package/dist/components/Payment/PaymentDisplay.stories.js +0 -302
- package/dist/components/Payment/TimerComponent.stories.js +0 -236
- package/dist/components/Process/Process.stories.js +0 -42
- package/dist/components/ProfileBadge/ProfileBadge.stories.js +0 -45
- package/dist/components/ProfileBox/ProfileBox.stories.js +0 -35
- package/dist/components/ProfileHeader/ProfileHeader.js +0 -252
- package/dist/components/ProfileHeader/ProfileHeader.styles.js +0 -65
- package/dist/components/ProfileStat/ProfileStat.stories.js +0 -66
- package/dist/components/ProofOfAddress/ProofOfAddress.styles.js +0 -53
- package/dist/components/QRCode/QRCode.stories.js +0 -104
- package/dist/components/Radio/Radio.stories.js +0 -73
- package/dist/components/RefreshButton/RefreshButton.stories.js +0 -38
- package/dist/components/RegisterAlgorand/AlgoAddressName.js +0 -138
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +0 -443
- package/dist/components/RegisterAlgorand/AlgoConnectWallet.js +0 -47
- package/dist/components/RegisterAlgorand/AlgoSuccess.js +0 -38
- package/dist/components/RegisterAlgorand/Algorand.stories.js +0 -80
- package/dist/components/RegisterAlgorand/ChooseWallet.js +0 -97
- package/dist/components/RegisterAlgorand/SelectProject.js +0 -89
- package/dist/components/RegisterAlgorand/_styles.js +0 -28
- package/dist/components/RegisterAlgorand/flow.js +0 -409
- package/dist/components/RegisterAlgorand/flowWithMemo.js +0 -410
- package/dist/components/RegisterAlgorand/index.js +0 -48
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +0 -41
- package/dist/components/RegisterEthereum/EthAddressLedger.js +0 -226
- package/dist/components/RegisterEthereum/EthAddressMetamask.js +0 -204
- package/dist/components/RegisterEthereum/EthAddressName.js +0 -135
- package/dist/components/RegisterEthereum/EthConnectLedger.js +0 -194
- package/dist/components/RegisterEthereum/EthConnectMetamask.js +0 -35
- package/dist/components/RegisterEthereum/EthFinish.js +0 -41
- package/dist/components/RegisterEthereum/EthIntro.js +0 -95
- package/dist/components/RegisterEthereum/_styles.js +0 -28
- package/dist/components/RegisterEthereum/index.js +0 -68
- package/dist/components/RegisterModal/RegisterModal.stories.js +0 -49
- package/dist/components/RequestDataBox/RequestDataBox.stories.js +0 -37
- package/dist/components/RiskQuestionnaire/RiskQuestionnaireContext.js +0 -185
- package/dist/components/RiskQuestionnaire/_styles.js +0 -15
- package/dist/components/SEO/SEO.stories.js +0 -60
- package/dist/components/SideLine/SideLine.stories.js +0 -28
- package/dist/components/SigningSubflow/SignSubAddressMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubConnectLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubConnectMetamask.js +0 -137
- package/dist/components/SigningSubflow/SignSubIntro.js +0 -55
- package/dist/components/SigningSubflow/SignSubSendLedger.js +0 -150
- package/dist/components/SigningSubflow/SignSubSendMetamask.js +0 -62
- package/dist/components/SigningSubflow/SignSubTransactionLedger.js +0 -161
- package/dist/components/SigningSubflow/SignSubTransactionMetamask.js +0 -166
- package/dist/components/SigningSubflow/_styles.js +0 -34
- package/dist/components/SigningSubflow/index.js +0 -32
- package/dist/components/Slider/Slider.stories.js +0 -68
- package/dist/components/StepController/StepController.stories.js +0 -60
- package/dist/components/StepController/StepControllerProgress.stories.js +0 -49
- package/dist/components/StepsProgress/StepsProgress.stories.js +0 -49
- package/dist/components/Switch/Switch.stories.js +0 -81
- package/dist/components/Tabs/Tabs.stories.js +0 -36
- package/dist/components/TabsNav/TabNav.stories.js +0 -40
- package/dist/components/TabsNav/TabsNav.stories.js +0 -37
- package/dist/components/TeamOverview/TeamOverview.stories.js +0 -76
- package/dist/components/TermsModal/TermsModal.stories.js +0 -31
- package/dist/components/Text/Headline.stories.js +0 -48
- package/dist/components/Text/Text.stories.js +0 -70
- package/dist/components/Timeline/Timeline.stories.js +0 -393
- package/dist/components/ToDoList/ToDoList.stories.js +0 -133
- package/dist/components/ToDoList/ToDoListTask.stories.js +0 -70
- package/dist/components/TransactionDetails/TransactionDetails.stories.js +0 -55
- package/dist/components/TransactionDetails/TransactionDetailsTable.stories.js +0 -305
- package/dist/components/TransactionInfo/TransactionInfo.stories.js +0 -61
- package/dist/components/TwoFactorModal/TwoFactorModal.js +0 -100
- package/dist/components/VerifyEmailModal/VerifyEmailModal.stories.js +0 -59
- package/dist/components/headerHo/HeaderHo.stories.js +0 -35
- package/dist/components/icons/Arrow.stories.js +0 -42
- package/dist/components/icons/ArrowSimple.stories.js +0 -48
- package/dist/components/icons/Check.stories.js +0 -22
- package/dist/components/icons/Facebook.stories.js +0 -21
- package/dist/components/icons/Facebook_Logo.png +0 -0
- package/dist/components/icons/Info.stories.js +0 -16
- package/dist/components/icons/Instagram.stories.js +0 -21
- package/dist/components/icons/LI-In-Bug.png +0 -0
- package/dist/components/icons/LinkIcon.stories.js +0 -21
- package/dist/components/icons/LinkedIn.stories.js +0 -16
- package/dist/components/icons/Medium.stories.js +0 -16
- package/dist/components/icons/Reddit.stories.js +0 -21
- package/dist/components/icons/Share.stories.js +0 -16
- package/dist/components/icons/Telegram-Logo.png +0 -0
- package/dist/components/icons/Telegram.stories.js +0 -16
- package/dist/components/icons/Twitter.stories.js +0 -21
- package/dist/components/icons/X-logo-black.png +0 -0
- package/dist/components/icons/X.stories.js +0 -16
- package/dist/components/icons/Youtube.stories.js +0 -21
- package/dist/components/icons/youtube_social_circle_red.png +0 -0
- package/dist/components/taxId/TaxId.stories.js +0 -50
- package/dist/components/video/Video.stories.js +0 -52
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ImagesCarousel = ImagesCarousel;
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _Slider = _interopRequireDefault(require("../Slider/Slider"));
|
|
10
|
-
var _Slider2 = require("../Slider/Slider.styles");
|
|
11
|
-
var _CaptialRaisedSummary = _interopRequireDefault(require("../CapitalRaisedSummary/CaptialRaisedSummary"));
|
|
12
|
-
var _Grid = require("../Grid/Grid.styles");
|
|
13
|
-
var _InvestmentStat = _interopRequireDefault(require("../InvestmentStat/InvestmentStat"));
|
|
14
|
-
var _parseBlockContent = _interopRequireDefault(require("../../utils/parseBlockContent"));
|
|
15
|
-
var _ProjectContext = require("context/Project/ProjectContext");
|
|
16
|
-
var _video = require("../video");
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
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); }
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
function ImagesCarousel(params) {
|
|
25
|
-
const [shouldRenderPage, setShouldRenderPage] = (0, _react.useState)(false);
|
|
26
|
-
const [carouselItems, setCarouselItems] = (0, _react.useState)([]);
|
|
27
|
-
// const [venture, setVenture] = useState({})
|
|
28
|
-
let {
|
|
29
|
-
project
|
|
30
|
-
} = (0, _react.useContext)(_ProjectContext.ProjectContext);
|
|
31
|
-
const [isVideoOpen, setIsVideoOpen] = (0, _react.useState)(false);
|
|
32
|
-
const [videoUri, setVideoUri] = (0, _react.useState)('');
|
|
33
|
-
(0, _react.useEffect)(() => {
|
|
34
|
-
const carouselFiles = generateCarouselItems(project.blocks.media);
|
|
35
|
-
setCarouselItems(carouselFiles);
|
|
36
|
-
setShouldRenderPage(true);
|
|
37
|
-
}, []);
|
|
38
|
-
const generateCarouselItems = media => {
|
|
39
|
-
const mediaParsed = (0, _parseBlockContent.default)(media);
|
|
40
|
-
const carouselFiles = [];
|
|
41
|
-
const tempObj = {};
|
|
42
|
-
|
|
43
|
-
// Find only carousel items
|
|
44
|
-
Object.keys(mediaParsed).forEach(key => {
|
|
45
|
-
if (key.includes('carouselFiles')) {
|
|
46
|
-
const index = key.split('carouselFiles_')[1].split('_')[0];
|
|
47
|
-
|
|
48
|
-
// Group video and its thumbnail
|
|
49
|
-
if (key.includes('videoThumbnail')) {
|
|
50
|
-
tempObj[index] = _objectSpread(_objectSpread({}, tempObj[index]), {}, {
|
|
51
|
-
videoThumbnail: mediaParsed[key]
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
tempObj[index] = _objectSpread(_objectSpread({}, tempObj[index]), mediaParsed[key]);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
Object.keys(tempObj).forEach(key => {
|
|
59
|
-
carouselFiles.push(tempObj[key]);
|
|
60
|
-
});
|
|
61
|
-
return carouselFiles;
|
|
62
|
-
};
|
|
63
|
-
const openVideo = videoUri => {
|
|
64
|
-
setIsVideoOpen(true);
|
|
65
|
-
setVideoUri(videoUri);
|
|
66
|
-
};
|
|
67
|
-
const closeVideo = () => {
|
|
68
|
-
setIsVideoOpen(false);
|
|
69
|
-
setVideoUri();
|
|
70
|
-
};
|
|
71
|
-
return shouldRenderPage ? /*#__PURE__*/_react.default.createElement(_Grid.Row, null, /*#__PURE__*/_react.default.createElement(_video.Video, {
|
|
72
|
-
src: videoUri,
|
|
73
|
-
isVideoOpen: true,
|
|
74
|
-
noPlayButton: true,
|
|
75
|
-
play: isVideoOpen,
|
|
76
|
-
onClose: closeVideo
|
|
77
|
-
}), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
78
|
-
part: 2,
|
|
79
|
-
full: 3
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider.default, {
|
|
81
|
-
dots: true
|
|
82
|
-
}, carouselItems.map(item => {
|
|
83
|
-
if (item.type === 'image') {
|
|
84
|
-
return /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlideWrapper, {
|
|
85
|
-
key: item.uri
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlide, {
|
|
87
|
-
src: item.uri,
|
|
88
|
-
alt: ""
|
|
89
|
-
}));
|
|
90
|
-
} else if (item.type === 'video') {
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlideWrapper, {
|
|
92
|
-
key: item.uri
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement(_Slider2.ImageSlide, {
|
|
94
|
-
src: item.videoThumbnail.uri,
|
|
95
|
-
alt: ""
|
|
96
|
-
}), /*#__PURE__*/_react.default.createElement(_video.PlayButton, {
|
|
97
|
-
onClick: () => openVideo(item.uri)
|
|
98
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
99
|
-
alt: "Play video",
|
|
100
|
-
src: require('../video/img/play-btn.svg')
|
|
101
|
-
})));
|
|
102
|
-
}
|
|
103
|
-
})), /*#__PURE__*/_react.default.createElement(_CaptialRaisedSummary.default, {
|
|
104
|
-
capital: project.totalSold,
|
|
105
|
-
multiProgressBar: project.multiProgressBar
|
|
106
|
-
})), /*#__PURE__*/_react.default.createElement(_Grid.Column, {
|
|
107
|
-
part: 1,
|
|
108
|
-
full: 3
|
|
109
|
-
}, /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
110
|
-
content: project.sharePercentage,
|
|
111
|
-
title: project.name === 'aquarius' ? 'Target return' : project.shareType,
|
|
112
|
-
tooltip: project.name === 'aquarius' ? 'The target yield per annum in accordance with the Offering Memorandum. Please read carefully the Offering Memorandum before investing' : project.name === 'mazzanti' ? 'The Securities represent the right to 50% of the sale proceeds for the sale of 1 (one) Millecavalli R car (minus any taxes).' : project.name === 'blockstream-mining' ? 'The percentage represents all Bitcoins mined over a period of 36 months in accordance with the Terms and Conditions. Please carefully read the Terms and Conditions before investing.' : "The percentage of the venture\u2019s future ".concat(project.name === 'infinite-fleet' ? 'profits' : 'revenues', " to be distributed in accordance with the Offering Terms. Please carefully read the Offering Terms and Offering Document\n before investing."),
|
|
113
|
-
borderTop: true
|
|
114
|
-
}), /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
115
|
-
content: project.name === 'aquarius' ? 'OPEN-ENDED' : project.name === 'infinite-fleet' ? 'TBD' : project.daysLeft,
|
|
116
|
-
title: project.name === 'aquarius' ? 'fund typ' : project.daysLeftText,
|
|
117
|
-
borderTop: true
|
|
118
|
-
}), /*#__PURE__*/_react.default.createElement(_InvestmentStat.default, {
|
|
119
|
-
content: project.name === 'aquarius' ? 'PROFESSIONAL' : project.investmentCount.toString(),
|
|
120
|
-
title: "Investors",
|
|
121
|
-
primaryBg: true
|
|
122
|
-
}))) : '';
|
|
123
|
-
}
|
|
124
|
-
var _default = exports.default = ImagesCarousel;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.DatePickerInputFilled = exports.DatePickerInputEmpty = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _DatePickerInput = require("./DatePickerInput");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
// import { date } from '@storybook/addon-knobs'
|
|
13
|
-
var _default = exports.default = {
|
|
14
|
-
title: 'Components Library/Inputs/Date Picker Input',
|
|
15
|
-
component: _DatePickerInput.DatePickerInput,
|
|
16
|
-
argTypes: {
|
|
17
|
-
id: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
name: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
label: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
defaultValue: ''
|
|
28
|
-
},
|
|
29
|
-
placeholder: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
defaultValue: ''
|
|
32
|
-
},
|
|
33
|
-
value: {
|
|
34
|
-
type: 'date',
|
|
35
|
-
control: {
|
|
36
|
-
type: 'object'
|
|
37
|
-
},
|
|
38
|
-
// control: { type: 'date' },
|
|
39
|
-
required: true
|
|
40
|
-
},
|
|
41
|
-
//oneOf string, date, required,
|
|
42
|
-
error: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
defaultValue: false
|
|
45
|
-
},
|
|
46
|
-
touched: {
|
|
47
|
-
type: 'boolean',
|
|
48
|
-
defaultValue: false
|
|
49
|
-
},
|
|
50
|
-
dashboard: {
|
|
51
|
-
type: 'boolean',
|
|
52
|
-
defaultValue: false
|
|
53
|
-
},
|
|
54
|
-
checkLabel: {
|
|
55
|
-
type: 'function'
|
|
56
|
-
},
|
|
57
|
-
onChange: {
|
|
58
|
-
action: 'change',
|
|
59
|
-
type: 'function',
|
|
60
|
-
required: true
|
|
61
|
-
},
|
|
62
|
-
onBlur: {
|
|
63
|
-
action: 'blur',
|
|
64
|
-
type: 'function'
|
|
65
|
-
},
|
|
66
|
-
onFocus: {
|
|
67
|
-
action: 'hasFocus',
|
|
68
|
-
type: 'function'
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_DatePickerInput.DatePickerInput, args)));
|
|
73
|
-
const DatePickerInputFilled = exports.DatePickerInputFilled = Template.bind({});
|
|
74
|
-
DatePickerInputFilled.args = {
|
|
75
|
-
label: 'label date',
|
|
76
|
-
value: '2022-1-4'
|
|
77
|
-
};
|
|
78
|
-
const DatePickerInputEmpty = exports.DatePickerInputEmpty = Template.bind({});
|
|
79
|
-
DatePickerInputEmpty.args = {
|
|
80
|
-
label: 'label date'
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
//doublecheck:
|
|
84
|
-
|
|
85
|
-
//works fine if clicking on element itself to change date,
|
|
86
|
-
//but changes to "value" in SB controls print UNIX timestamp
|
|
87
|
-
//value: new Date(2022, 0, 1, 0, 4) also not working interactively
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.InputLabeled = exports.InputFilled = exports.InputFillInverted = exports.InputEmpty = void 0;
|
|
7
|
-
var _viewport = require("storybook/viewport");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _Input = require("./Input");
|
|
10
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
11
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
var _default = exports.default = {
|
|
14
|
-
title: 'Components Library/Inputs/Input',
|
|
15
|
-
component: _Input.Input,
|
|
16
|
-
argTypes: {
|
|
17
|
-
type: {
|
|
18
|
-
type: 'string'
|
|
19
|
-
},
|
|
20
|
-
id: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
name: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
required: true
|
|
27
|
-
},
|
|
28
|
-
label: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
defaultValue: ''
|
|
31
|
-
},
|
|
32
|
-
placeholder: {
|
|
33
|
-
type: 'string',
|
|
34
|
-
defaultValue: ''
|
|
35
|
-
},
|
|
36
|
-
value: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
defaultValue: ''
|
|
39
|
-
},
|
|
40
|
-
error: {
|
|
41
|
-
type: 'boolean',
|
|
42
|
-
defaultValue: false
|
|
43
|
-
},
|
|
44
|
-
touched: {
|
|
45
|
-
type: 'boolean',
|
|
46
|
-
defaultValue: false
|
|
47
|
-
},
|
|
48
|
-
readOnly: {
|
|
49
|
-
type: 'boolean',
|
|
50
|
-
defaultValue: false
|
|
51
|
-
},
|
|
52
|
-
inverted: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
defaultValue: false
|
|
55
|
-
},
|
|
56
|
-
dashboard: {
|
|
57
|
-
type: 'boolean',
|
|
58
|
-
defaultValue: false
|
|
59
|
-
},
|
|
60
|
-
checkLabel: {
|
|
61
|
-
type: 'function'
|
|
62
|
-
},
|
|
63
|
-
onChange: {
|
|
64
|
-
action: 'change',
|
|
65
|
-
type: 'function'
|
|
66
|
-
},
|
|
67
|
-
onBlur: {
|
|
68
|
-
action: 'blur',
|
|
69
|
-
type: 'function'
|
|
70
|
-
},
|
|
71
|
-
onFocus: {
|
|
72
|
-
action: 'hasFocus',
|
|
73
|
-
type: 'function'
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
parameters: {
|
|
77
|
-
viewport: {
|
|
78
|
-
viewports: _viewport.INITIAL_VIEWPORTS,
|
|
79
|
-
defaultViewport: 'resetviewport'
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_Input.Input, args)));
|
|
84
|
-
|
|
85
|
-
//trying to integrate state:
|
|
86
|
-
// const Template = args => {
|
|
87
|
-
// const [value, setValue] = useState(args.value ?? '')
|
|
88
|
-
// return (
|
|
89
|
-
// <Input
|
|
90
|
-
// {...args}
|
|
91
|
-
// onChange={(...params) => {
|
|
92
|
-
// args.onChange(...params)
|
|
93
|
-
// setValue(...params)
|
|
94
|
-
// }}
|
|
95
|
-
// value={value}
|
|
96
|
-
// />
|
|
97
|
-
// }
|
|
98
|
-
|
|
99
|
-
const InputLabeled = exports.InputLabeled = Template.bind({});
|
|
100
|
-
InputLabeled.args = {
|
|
101
|
-
label: 'input description (label)'
|
|
102
|
-
};
|
|
103
|
-
InputLabeled.parameters = {
|
|
104
|
-
backgrounds: {
|
|
105
|
-
default: 'resetviewport'
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
const InputFilled = exports.InputFilled = Template.bind({});
|
|
109
|
-
InputFilled.args = {
|
|
110
|
-
label: 'input description (label)',
|
|
111
|
-
value: 'your text (value)'
|
|
112
|
-
};
|
|
113
|
-
InputFilled.parameters = {
|
|
114
|
-
backgrounds: {
|
|
115
|
-
default: 'resetviewport'
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
const InputFillInverted = exports.InputFillInverted = Template.bind({});
|
|
119
|
-
InputFillInverted.args = {
|
|
120
|
-
type: 'text',
|
|
121
|
-
label: 'input description (label) inverted',
|
|
122
|
-
value: 'your text (value) inverted',
|
|
123
|
-
inverted: true
|
|
124
|
-
};
|
|
125
|
-
InputFillInverted.parameters = {
|
|
126
|
-
backgrounds: {
|
|
127
|
-
default: 'grey'
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
const InputEmpty = exports.InputEmpty = Template.bind({});
|
|
131
|
-
InputEmpty.args = {};
|
|
132
|
-
InputEmpty.parameters = {
|
|
133
|
-
backgrounds: {
|
|
134
|
-
default: 'resetviewport'
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
//doublecheck:
|
|
139
|
-
|
|
140
|
-
// state?
|
|
141
|
-
// make error true version?
|
|
142
|
-
// why can I not fill in the input in storybook on page? not important?
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.PasswordStrength = exports.PasswordFilled = exports.InputPasswordEmpty = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _InputPassword = require("./InputPassword");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
var _default = exports.default = {
|
|
13
|
-
title: 'Components Library/Inputs/Input Password',
|
|
14
|
-
component: _InputPassword.InputPassword,
|
|
15
|
-
argTypes: {
|
|
16
|
-
type: {
|
|
17
|
-
type: 'string'
|
|
18
|
-
},
|
|
19
|
-
id: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
required: true
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
label: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
defaultValue: ''
|
|
30
|
-
},
|
|
31
|
-
value: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
defaultValue: ''
|
|
34
|
-
},
|
|
35
|
-
error: {
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
defaultValue: false
|
|
38
|
-
},
|
|
39
|
-
touched: {
|
|
40
|
-
type: 'boolean',
|
|
41
|
-
defaultValue: false
|
|
42
|
-
},
|
|
43
|
-
onChange: {
|
|
44
|
-
action: 'change',
|
|
45
|
-
type: 'function'
|
|
46
|
-
},
|
|
47
|
-
onBlur: {
|
|
48
|
-
action: 'blur',
|
|
49
|
-
type: 'function'
|
|
50
|
-
},
|
|
51
|
-
onFocus: {
|
|
52
|
-
action: 'hasFocus',
|
|
53
|
-
type: 'function'
|
|
54
|
-
},
|
|
55
|
-
info: {
|
|
56
|
-
type: 'string',
|
|
57
|
-
defaultValue: ''
|
|
58
|
-
},
|
|
59
|
-
showStrength: {
|
|
60
|
-
type: 'boolean',
|
|
61
|
-
defaultValue: false
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_InputPassword.InputPassword, args)));
|
|
66
|
-
const PasswordFilled = exports.PasswordFilled = Template.bind({});
|
|
67
|
-
PasswordFilled.args = {
|
|
68
|
-
label: 'input description (label) - PASSWORD',
|
|
69
|
-
value: 'your password (value)'
|
|
70
|
-
};
|
|
71
|
-
const PasswordStrength = exports.PasswordStrength = Template.bind({});
|
|
72
|
-
PasswordStrength.args = {
|
|
73
|
-
label: 'input description (label) - PASSWORD',
|
|
74
|
-
value: 'your password (value)',
|
|
75
|
-
showStrength: true
|
|
76
|
-
};
|
|
77
|
-
const InputPasswordEmpty = exports.InputPasswordEmpty = Template.bind({});
|
|
78
|
-
InputPasswordEmpty.args = {
|
|
79
|
-
label: 'input description (label) - PASSWORD'
|
|
80
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.InputButton = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _InputWithButton = require("./InputWithButton");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
var _Button = require("../Button/Button.styles");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
var _default = exports.default = {
|
|
14
|
-
title: 'Components Library/Inputs/Input With Button',
|
|
15
|
-
component: _InputWithButton.InputWithButton,
|
|
16
|
-
argTypes: {
|
|
17
|
-
type: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
defaultValue: 'number'
|
|
20
|
-
},
|
|
21
|
-
id: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
name: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
required: true
|
|
28
|
-
},
|
|
29
|
-
label: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
defaultValue: ''
|
|
32
|
-
},
|
|
33
|
-
value: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
defaultValue: ''
|
|
36
|
-
},
|
|
37
|
-
error: {
|
|
38
|
-
type: 'boolean',
|
|
39
|
-
defaultValue: false
|
|
40
|
-
},
|
|
41
|
-
touched: {
|
|
42
|
-
type: 'boolean',
|
|
43
|
-
defaultValue: false
|
|
44
|
-
},
|
|
45
|
-
onChange: {
|
|
46
|
-
action: 'change',
|
|
47
|
-
type: 'function'
|
|
48
|
-
},
|
|
49
|
-
onBlur: {
|
|
50
|
-
action: 'blur',
|
|
51
|
-
type: 'function'
|
|
52
|
-
},
|
|
53
|
-
onFocus: {
|
|
54
|
-
action: 'hasFocus',
|
|
55
|
-
type: 'function'
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_InputWithButton.InputWithButton, args, /*#__PURE__*/_react.default.createElement(_Button.Button, null, "apply"))));
|
|
60
|
-
const InputButton = exports.InputButton = Template.bind({});
|
|
61
|
-
InputButton.args = {
|
|
62
|
-
placeholder: 'Page size',
|
|
63
|
-
onChange: () => {
|
|
64
|
-
console.log('changed');
|
|
65
|
-
}
|
|
66
|
-
//label: 'test',
|
|
67
|
-
//value: 'test',
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// export const PasswordStrength = Template.bind({})
|
|
71
|
-
// PasswordStrength.args = {
|
|
72
|
-
// label: 'input description (label) - PASSWORD',
|
|
73
|
-
// value: 'your password (value)',
|
|
74
|
-
// showStrength: true,
|
|
75
|
-
// }
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.OtpInputPlain = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _OtpInput = require("./OtpInput");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
var _default = exports.default = {
|
|
13
|
-
title: 'Components Library/Inputs/OtpInput',
|
|
14
|
-
component: _OtpInput.OtpInput,
|
|
15
|
-
argTypes: {
|
|
16
|
-
inputType: {
|
|
17
|
-
type: 'string'
|
|
18
|
-
},
|
|
19
|
-
placeholder: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
defaultValue: ''
|
|
22
|
-
},
|
|
23
|
-
value: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
defaultValue: ''
|
|
26
|
-
},
|
|
27
|
-
numInputs: {
|
|
28
|
-
type: 'number',
|
|
29
|
-
defaultValue: 4
|
|
30
|
-
},
|
|
31
|
-
shouldAutoFocus: {
|
|
32
|
-
type: 'boolean',
|
|
33
|
-
defaultValue: false
|
|
34
|
-
},
|
|
35
|
-
onChange: {
|
|
36
|
-
action: 'change',
|
|
37
|
-
type: 'function'
|
|
38
|
-
},
|
|
39
|
-
onPaste: {
|
|
40
|
-
type: 'function'
|
|
41
|
-
}
|
|
42
|
-
// renderSeparator: { type: 'component' },
|
|
43
|
-
}
|
|
44
|
-
// parameters: {
|
|
45
|
-
// viewport: {
|
|
46
|
-
// viewports: INITIAL_VIEWPORTS,
|
|
47
|
-
// defaultViewport: 'resetviewport',
|
|
48
|
-
// },
|
|
49
|
-
// },
|
|
50
|
-
};
|
|
51
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_OtpInput.OtpInput, args)));
|
|
52
|
-
const OtpInputPlain = exports.OtpInputPlain = Template.bind({});
|
|
53
|
-
OtpInputPlain.args = {
|
|
54
|
-
onChange: e => console.log(e),
|
|
55
|
-
value: '',
|
|
56
|
-
placeholder: '1234'
|
|
57
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.RangeInputDefault = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _RangeInput = require("./RangeInput");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
var _default = exports.default = {
|
|
13
|
-
title: 'Components Library/Inputs/Range Input',
|
|
14
|
-
component: _RangeInput.RangeInput,
|
|
15
|
-
argTypes: {
|
|
16
|
-
id: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
name: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
disabled: {
|
|
25
|
-
type: 'boolean',
|
|
26
|
-
defaultValue: false
|
|
27
|
-
},
|
|
28
|
-
max: {
|
|
29
|
-
type: 'number',
|
|
30
|
-
defaultValue: 100
|
|
31
|
-
},
|
|
32
|
-
min: {
|
|
33
|
-
type: 'number',
|
|
34
|
-
defaultValue: 0
|
|
35
|
-
},
|
|
36
|
-
step: {
|
|
37
|
-
type: 'number',
|
|
38
|
-
defaultValue: 1
|
|
39
|
-
},
|
|
40
|
-
onChange: {
|
|
41
|
-
action: 'change',
|
|
42
|
-
type: 'function'
|
|
43
|
-
},
|
|
44
|
-
value: {
|
|
45
|
-
type: 'number',
|
|
46
|
-
required: true
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_RangeInput.RangeInput, args)));
|
|
51
|
-
const RangeInputDefault = exports.RangeInputDefault = Template.bind({});
|
|
52
|
-
RangeInputDefault.args = {
|
|
53
|
-
value: 80
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
//doublecheck:
|
|
57
|
-
|
|
58
|
-
// any other functions to take into args?
|