@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,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.PaymentModalOpen = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _PaymentModal = require("./PaymentModal");
|
|
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/Modal',
|
|
14
|
-
component: _PaymentModal.PaymentModal,
|
|
15
|
-
argTypes: {
|
|
16
|
-
data: {
|
|
17
|
-
type: 'object',
|
|
18
|
-
defaultValue: false
|
|
19
|
-
},
|
|
20
|
-
isModalOpen: {
|
|
21
|
-
type: 'boolean',
|
|
22
|
-
defaultValue: false
|
|
23
|
-
},
|
|
24
|
-
onClose: {
|
|
25
|
-
type: 'function',
|
|
26
|
-
action: 'onClose'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
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(_PaymentModal.PaymentModal, args)));
|
|
31
|
-
const PaymentModalOpen = exports.PaymentModalOpen = Template.bind({});
|
|
32
|
-
PaymentModalOpen.args = {
|
|
33
|
-
//children: 'I am the Child Element',
|
|
34
|
-
isModalOpen: true,
|
|
35
|
-
formatAmountInLink: true,
|
|
36
|
-
data: {
|
|
37
|
-
projectData: {
|
|
38
|
-
companyWallet: 'something'
|
|
39
|
-
},
|
|
40
|
-
tokeDecimals: 2,
|
|
41
|
-
currencyAmount: 32,
|
|
42
|
-
tokenAmount: '67',
|
|
43
|
-
tokenPrice: '345',
|
|
44
|
-
tokenSymbol: '$',
|
|
45
|
-
createdAt: Date.now(),
|
|
46
|
-
GAID: 'some gaid',
|
|
47
|
-
currencyType: 'lbtc'
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
// export const PaymentModalFullscreen = Template.bind({})
|
|
52
|
-
// ModalFullscreen.args = {
|
|
53
|
-
// //children: 'I am the Child Element and I am Fullscreen',
|
|
54
|
-
// isOpen: true,
|
|
55
|
-
// //fullscreen: true,
|
|
56
|
-
|
|
57
|
-
// }
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.MPBarMin30 = exports.MPBarMax70Fill65 = exports.MPBarAllparts = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _MultiProgressBar = _interopRequireDefault(require("./MultiProgressBar"));
|
|
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/Multi Progress Bar',
|
|
14
|
-
component: _MultiProgressBar.default,
|
|
15
|
-
argTypes: {
|
|
16
|
-
backParts: {
|
|
17
|
-
type: 'array of shape',
|
|
18
|
-
defaultValue: [{
|
|
19
|
-
value: 0
|
|
20
|
-
}, {
|
|
21
|
-
label: ''
|
|
22
|
-
}]
|
|
23
|
-
},
|
|
24
|
-
fillParts: {
|
|
25
|
-
type: 'array of shape',
|
|
26
|
-
defaultValue: [{
|
|
27
|
-
value: 0
|
|
28
|
-
}, {
|
|
29
|
-
label: ''
|
|
30
|
-
}]
|
|
31
|
-
},
|
|
32
|
-
fill: {
|
|
33
|
-
type: 'number',
|
|
34
|
-
defaultValue: 0
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}; // backpart: minumum fill
|
|
38
|
-
// fillparts: maximum fill
|
|
39
|
-
// fill: fill between min and max
|
|
40
|
-
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(_MultiProgressBar.default, args)));
|
|
41
|
-
const MPBarMin30 = exports.MPBarMin30 = Template.bind({});
|
|
42
|
-
MPBarMin30.args = {
|
|
43
|
-
backParts: [{
|
|
44
|
-
value: 30,
|
|
45
|
-
label: 'backparts - minumum fill'
|
|
46
|
-
}]
|
|
47
|
-
};
|
|
48
|
-
const MPBarMax70Fill65 = exports.MPBarMax70Fill65 = Template.bind({});
|
|
49
|
-
MPBarMax70Fill65.args = {
|
|
50
|
-
fillParts: [{
|
|
51
|
-
value: 70,
|
|
52
|
-
label: 'fillparts - maximum fill'
|
|
53
|
-
}],
|
|
54
|
-
fill: 65
|
|
55
|
-
};
|
|
56
|
-
const MPBarAllparts = exports.MPBarAllparts = Template.bind({});
|
|
57
|
-
MPBarAllparts.args = {
|
|
58
|
-
backParts: [{
|
|
59
|
-
value: 7,
|
|
60
|
-
label: 'backparts - minumum fill'
|
|
61
|
-
}],
|
|
62
|
-
fillParts: [{
|
|
63
|
-
value: 60,
|
|
64
|
-
label: 'fillparts - maximum fill'
|
|
65
|
-
}],
|
|
66
|
-
fill: 50
|
|
67
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.NewsletterStokr = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Newsletter = _interopRequireDefault(require("./Newsletter"));
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
var _default = exports.default = {
|
|
12
|
-
title: 'Components Library/Newsletter',
|
|
13
|
-
component: _Newsletter.default
|
|
14
|
-
};
|
|
15
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_Newsletter.default, args));
|
|
16
|
-
const NewsletterStokr = exports.NewsletterStokr = Template.bind({});
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NotificationProvider = exports.NotificationConsumer = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _socket = _interopRequireDefault(require("socket.io-client"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
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); }
|
|
12
|
-
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; }
|
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
14
|
-
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); }
|
|
15
|
-
const NotificationContext = /*#__PURE__*/_react.default.createContext();
|
|
16
|
-
class NotificationProvider extends _react.Component {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
_defineProperty(this, "socket", {});
|
|
20
|
-
_defineProperty(this, "projectSocket", {});
|
|
21
|
-
_defineProperty(this, "state", {
|
|
22
|
-
notifications: [],
|
|
23
|
-
projectNotifications: []
|
|
24
|
-
});
|
|
25
|
-
_defineProperty(this, "connectToSocket", () => {
|
|
26
|
-
const {
|
|
27
|
-
userId
|
|
28
|
-
} = this.props;
|
|
29
|
-
this.socket = (0, _socket.default)(process.env.REACT_APP_NOTIFICATION_API_URL, {
|
|
30
|
-
path: '/notification'
|
|
31
|
-
});
|
|
32
|
-
this.setSocketEvents();
|
|
33
|
-
this.setState({
|
|
34
|
-
notifications: []
|
|
35
|
-
}, () => {
|
|
36
|
-
this.socket.emit('login_to_socket', {
|
|
37
|
-
userId
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
_defineProperty(this, "connectToProjectSocket", () => {
|
|
42
|
-
const {
|
|
43
|
-
projectId
|
|
44
|
-
} = this.props;
|
|
45
|
-
this.projectSocket = (0, _socket.default)(process.env.REACT_APP_NOTIFICATION_API_URL, {
|
|
46
|
-
path: '/notification'
|
|
47
|
-
});
|
|
48
|
-
this.setProjectSocketEvents();
|
|
49
|
-
this.setState({
|
|
50
|
-
projectNotifications: []
|
|
51
|
-
}, () => {
|
|
52
|
-
this.projectSocket.emit('login_to_socket', {
|
|
53
|
-
userId: projectId
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
_defineProperty(this, "setSocketEvents", () => {
|
|
58
|
-
this.socket.on('has_error', this.onHasError);
|
|
59
|
-
this.socket.on('notification', this.onNotification);
|
|
60
|
-
});
|
|
61
|
-
_defineProperty(this, "setProjectSocketEvents", () => {
|
|
62
|
-
this.projectSocket.on('has_error', this.onHasError);
|
|
63
|
-
this.projectSocket.on('notification', this.onProjectNotification);
|
|
64
|
-
});
|
|
65
|
-
_defineProperty(this, "onHasError", data => {
|
|
66
|
-
console.warn(data);
|
|
67
|
-
});
|
|
68
|
-
_defineProperty(this, "onNotification", notification => {
|
|
69
|
-
this.setState(prevState => ({
|
|
70
|
-
notifications: [notification, ...prevState.notifications]
|
|
71
|
-
}));
|
|
72
|
-
});
|
|
73
|
-
_defineProperty(this, "onProjectNotification", notification => {
|
|
74
|
-
this.setState(prevState => ({
|
|
75
|
-
projectNotifications: [notification, ...prevState.projectNotifications]
|
|
76
|
-
}));
|
|
77
|
-
});
|
|
78
|
-
_defineProperty(this, "markAsRead", userNotificationId => {
|
|
79
|
-
const {
|
|
80
|
-
notifications
|
|
81
|
-
} = this.state;
|
|
82
|
-
this.socket.emit('mark_as_read', {
|
|
83
|
-
userNotificationId
|
|
84
|
-
});
|
|
85
|
-
this.setState({
|
|
86
|
-
notifications: notifications.filter(notificationItem => notificationItem._id !== userNotificationId)
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
componentDidMount() {
|
|
91
|
-
const {
|
|
92
|
-
userId,
|
|
93
|
-
projectId
|
|
94
|
-
} = this.props;
|
|
95
|
-
if (userId !== '') {
|
|
96
|
-
//this.connectToSocket();
|
|
97
|
-
}
|
|
98
|
-
if (projectId !== '') {
|
|
99
|
-
//this.connectToProjectSocket();
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
componentDidUpdate(prevProps) {
|
|
103
|
-
const {
|
|
104
|
-
userId,
|
|
105
|
-
projectId
|
|
106
|
-
} = this.props;
|
|
107
|
-
if (prevProps.userId === '' && userId !== '') {
|
|
108
|
-
//this.connectToSocket()
|
|
109
|
-
}
|
|
110
|
-
if (prevProps.projectId === '' && projectId !== '') {
|
|
111
|
-
this.connectToProjectSocket();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
render() {
|
|
115
|
-
const {
|
|
116
|
-
children
|
|
117
|
-
} = this.props;
|
|
118
|
-
const {
|
|
119
|
-
notifications,
|
|
120
|
-
projectNotifications
|
|
121
|
-
} = this.state;
|
|
122
|
-
return /*#__PURE__*/_react.default.createElement(NotificationContext.Provider, {
|
|
123
|
-
value: {
|
|
124
|
-
notifications: notifications.filter(notification => !notification.isRead),
|
|
125
|
-
projectNotifications,
|
|
126
|
-
markAsRead: this.markAsRead
|
|
127
|
-
}
|
|
128
|
-
}, children);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
exports.NotificationProvider = NotificationProvider;
|
|
132
|
-
NotificationProvider.propTypes = {
|
|
133
|
-
children: _propTypes.default.node.isRequired,
|
|
134
|
-
userId: _propTypes.default.string,
|
|
135
|
-
projectId: _propTypes.default.string
|
|
136
|
-
};
|
|
137
|
-
NotificationProvider.defaultProps = {
|
|
138
|
-
userId: '',
|
|
139
|
-
projectId: ''
|
|
140
|
-
};
|
|
141
|
-
const NotificationConsumer = exports.NotificationConsumer = NotificationContext.Consumer;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Zero = exports.Two = exports.Three = exports.Six = exports.Seven = exports.One = exports.NumberRow = exports.Nine = exports.InvalidNumber = exports.Four = exports.Five = exports.Eight = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Number = require("./Number");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
var _default = exports.default = {
|
|
11
|
-
title: 'Components Library/Number',
|
|
12
|
-
component: _Number.Number,
|
|
13
|
-
parameters: {
|
|
14
|
-
docs: {
|
|
15
|
-
description: {
|
|
16
|
-
component: 'A component that displays numbers using SVG icons.'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
argTypes: {
|
|
21
|
-
number: {
|
|
22
|
-
control: {
|
|
23
|
-
type: 'number',
|
|
24
|
-
min: 0,
|
|
25
|
-
max: 9,
|
|
26
|
-
step: 1
|
|
27
|
-
},
|
|
28
|
-
description: 'Number to display (0-9)'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const Template = args => /*#__PURE__*/_react.default.createElement(_Number.Number, args);
|
|
33
|
-
|
|
34
|
-
// Individual numbers
|
|
35
|
-
const Zero = exports.Zero = Template.bind({});
|
|
36
|
-
Zero.args = {
|
|
37
|
-
number: 0
|
|
38
|
-
};
|
|
39
|
-
const One = exports.One = Template.bind({});
|
|
40
|
-
One.args = {
|
|
41
|
-
number: 1
|
|
42
|
-
};
|
|
43
|
-
const Two = exports.Two = Template.bind({});
|
|
44
|
-
Two.args = {
|
|
45
|
-
number: 2
|
|
46
|
-
};
|
|
47
|
-
const Three = exports.Three = Template.bind({});
|
|
48
|
-
Three.args = {
|
|
49
|
-
number: 3
|
|
50
|
-
};
|
|
51
|
-
const Four = exports.Four = Template.bind({});
|
|
52
|
-
Four.args = {
|
|
53
|
-
number: 4
|
|
54
|
-
};
|
|
55
|
-
const Five = exports.Five = Template.bind({});
|
|
56
|
-
Five.args = {
|
|
57
|
-
number: 5
|
|
58
|
-
};
|
|
59
|
-
const Six = exports.Six = Template.bind({});
|
|
60
|
-
Six.args = {
|
|
61
|
-
number: 6
|
|
62
|
-
};
|
|
63
|
-
const Seven = exports.Seven = Template.bind({});
|
|
64
|
-
Seven.args = {
|
|
65
|
-
number: 7
|
|
66
|
-
};
|
|
67
|
-
const Eight = exports.Eight = Template.bind({});
|
|
68
|
-
Eight.args = {
|
|
69
|
-
number: 8
|
|
70
|
-
};
|
|
71
|
-
const Nine = exports.Nine = Template.bind({});
|
|
72
|
-
Nine.args = {
|
|
73
|
-
number: 9
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// Example of invalid number
|
|
77
|
-
const InvalidNumber = exports.InvalidNumber = Template.bind({});
|
|
78
|
-
InvalidNumber.args = {
|
|
79
|
-
number: 10
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
// Row of multiple numbers
|
|
83
|
-
const NumberRow = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
-
style: {
|
|
85
|
-
display: 'flex',
|
|
86
|
-
gap: '8px'
|
|
87
|
-
}
|
|
88
|
-
}, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map(num => /*#__PURE__*/_react.default.createElement(_Number.Number, {
|
|
89
|
-
key: num,
|
|
90
|
-
number: num
|
|
91
|
-
})));
|
|
92
|
-
exports.NumberRow = NumberRow;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.PaginationWithInput = exports.PaginationExample = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _Pagination = require("./Pagination");
|
|
9
|
-
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
11
|
-
var _InputWithButton = require("../Input/InputWithButton");
|
|
12
|
-
var _Button = require("../Button/Button.styles");
|
|
13
|
-
var _Card = require("../Card/Card.styles");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
var _default = exports.default = {
|
|
16
|
-
title: 'Components Library/Pagination',
|
|
17
|
-
component: _Pagination.Pagination,
|
|
18
|
-
argTypes: {
|
|
19
|
-
currentPage: {
|
|
20
|
-
type: 'number',
|
|
21
|
-
defaultValue: 0
|
|
22
|
-
},
|
|
23
|
-
totalCount: {
|
|
24
|
-
type: 'number',
|
|
25
|
-
defaultValue: 0
|
|
26
|
-
},
|
|
27
|
-
pageSize: {
|
|
28
|
-
type: 'number',
|
|
29
|
-
defaultValue: 10
|
|
30
|
-
},
|
|
31
|
-
siblingCount: {
|
|
32
|
-
type: 'number',
|
|
33
|
-
defaultValue: 0
|
|
34
|
-
},
|
|
35
|
-
onPageChange: {
|
|
36
|
-
type: 'function',
|
|
37
|
-
required: true
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
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(_Pagination.Pagination, args)));
|
|
42
|
-
const TemplateWithInput = args => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, {
|
|
43
|
-
noPaddingHorizontal: true,
|
|
44
|
-
flex: true,
|
|
45
|
-
style: {
|
|
46
|
-
justifyContent: 'space-between',
|
|
47
|
-
flexWrap: 'wrap'
|
|
48
|
-
}
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_Pagination.Pagination, args), /*#__PURE__*/_react.default.createElement(_Card.Card, {
|
|
50
|
-
noPadding: true
|
|
51
|
-
}, /*#__PURE__*/_react.default.createElement(_Card.CardTitle, {
|
|
52
|
-
style: {
|
|
53
|
-
padding: '2px 20px'
|
|
54
|
-
}
|
|
55
|
-
}, "Page Size:"), /*#__PURE__*/_react.default.createElement(_InputWithButton.InputWithButton, {
|
|
56
|
-
id: "pageSize",
|
|
57
|
-
name: "pageSize",
|
|
58
|
-
type: "number",
|
|
59
|
-
placeholder: 'Page size'
|
|
60
|
-
// onChange={(e) => setinputPageSize(e.target.value)}
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.Button
|
|
62
|
-
// onClick={() => setpageSize(Number(inputPageSize))}
|
|
63
|
-
, null, "apply")))));
|
|
64
|
-
const PaginationExample = exports.PaginationExample = Template.bind({});
|
|
65
|
-
PaginationExample.args = {
|
|
66
|
-
currentPage: 1,
|
|
67
|
-
totalCount: 100,
|
|
68
|
-
pageSize: 10,
|
|
69
|
-
siblingCount: 1,
|
|
70
|
-
onPageChange: page => {
|
|
71
|
-
console.log('page changed to', page);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
const PaginationWithInput = exports.PaginationWithInput = TemplateWithInput.bind({});
|
|
75
|
-
PaginationWithInput.args = {
|
|
76
|
-
currentPage: 1,
|
|
77
|
-
totalCount: 100,
|
|
78
|
-
pageSize: 10,
|
|
79
|
-
siblingCount: 1,
|
|
80
|
-
onPageChange: page => {
|
|
81
|
-
console.log('page changed to', page);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.WithoutPageSizeControl = exports.SmallDataSet = exports.LargeDataSet = exports.Default = exports.CustomStyle = exports.CustomPageSizeLabel = exports.CustomListStyle = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _PaginationControls = _interopRequireDefault(require("./PaginationControls"));
|
|
9
|
-
var _global = _interopRequireDefault(require("../../styles/global"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
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); }
|
|
12
|
-
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; }
|
|
13
|
-
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; }
|
|
14
|
-
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; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
16
|
-
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); }
|
|
17
|
-
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); }
|
|
18
|
-
// Create mock data array
|
|
19
|
-
const mockItems = Array.from({
|
|
20
|
-
length: 15
|
|
21
|
-
}, (_, index) => ({
|
|
22
|
-
id: index + 1,
|
|
23
|
-
name: "Item ".concat(index + 1)
|
|
24
|
-
}));
|
|
25
|
-
var _default = exports.default = {
|
|
26
|
-
title: 'Components Library/Pagination',
|
|
27
|
-
component: _PaginationControls.default,
|
|
28
|
-
parameters: {
|
|
29
|
-
docs: {
|
|
30
|
-
description: {
|
|
31
|
-
component: 'Pagination controls component with customizable page size and navigation.'
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const Template = args => {
|
|
37
|
-
const [currentPage, setCurrentPage] = (0, _react.useState)(1);
|
|
38
|
-
const [pageSize, setPageSize] = (0, _react.useState)(10);
|
|
39
|
-
const [inputPageSize, setInputPageSize] = (0, _react.useState)(10);
|
|
40
|
-
|
|
41
|
-
// Get current items
|
|
42
|
-
const indexOfLastItem = currentPage * pageSize;
|
|
43
|
-
const indexOfFirstItem = indexOfLastItem - pageSize;
|
|
44
|
-
const currentItems = mockItems.slice(indexOfFirstItem, indexOfLastItem);
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_global.default, null), /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
-
style: {
|
|
47
|
-
marginBottom: '20px'
|
|
48
|
-
}
|
|
49
|
-
}, "Showing items ", (currentPage - 1) * pageSize + 1, " to", ' ', Math.min(currentPage * pageSize, mockItems.length), " of", ' ', mockItems.length), /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
-
style: {
|
|
51
|
-
marginBottom: '20px'
|
|
52
|
-
}
|
|
53
|
-
}, currentItems.map(item => /*#__PURE__*/_react.default.createElement("div", {
|
|
54
|
-
key: item.id,
|
|
55
|
-
style: {
|
|
56
|
-
padding: '8px',
|
|
57
|
-
borderBottom: '1px solid #eee'
|
|
58
|
-
}
|
|
59
|
-
}, item.name))), /*#__PURE__*/_react.default.createElement(_PaginationControls.default, _extends({}, args, {
|
|
60
|
-
currentPage: currentPage,
|
|
61
|
-
totalCount: mockItems.length,
|
|
62
|
-
pageSize: pageSize,
|
|
63
|
-
inputPageSize: inputPageSize,
|
|
64
|
-
onPageChange: setCurrentPage,
|
|
65
|
-
setPageSize: setPageSize,
|
|
66
|
-
setInputPageSize: setInputPageSize
|
|
67
|
-
})));
|
|
68
|
-
};
|
|
69
|
-
const Default = exports.Default = Template.bind({});
|
|
70
|
-
Default.args = {
|
|
71
|
-
scrollOffset: -100,
|
|
72
|
-
showPageSizeControl: true,
|
|
73
|
-
pageSizeLabel: 'Page Size:',
|
|
74
|
-
applyButtonText: 'Apply'
|
|
75
|
-
};
|
|
76
|
-
const WithoutPageSizeControl = exports.WithoutPageSizeControl = Template.bind({});
|
|
77
|
-
WithoutPageSizeControl.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
78
|
-
showPageSizeControl: false
|
|
79
|
-
});
|
|
80
|
-
const CustomPageSizeLabel = exports.CustomPageSizeLabel = Template.bind({});
|
|
81
|
-
CustomPageSizeLabel.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
82
|
-
pageSizeLabel: 'Items per page:',
|
|
83
|
-
applyButtonText: 'Set'
|
|
84
|
-
});
|
|
85
|
-
const CustomStyle = exports.CustomStyle = Template.bind({});
|
|
86
|
-
CustomStyle.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
87
|
-
containerStyle: {
|
|
88
|
-
backgroundColor: '#f5f5f5',
|
|
89
|
-
padding: '20px',
|
|
90
|
-
borderRadius: '8px'
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
const SmallDataSet = exports.SmallDataSet = Template.bind({});
|
|
94
|
-
SmallDataSet.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
95
|
-
totalCount: 20
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// Example showing how the component handles a large dataset
|
|
99
|
-
const LargeDataSet = exports.LargeDataSet = Template.bind({});
|
|
100
|
-
LargeDataSet.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
101
|
-
totalCount: 1000
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
// Example with custom list style
|
|
105
|
-
const CustomListStyle = exports.CustomListStyle = Template.bind({});
|
|
106
|
-
CustomListStyle.args = _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
107
|
-
listStyle: {
|
|
108
|
-
backgroundColor: '#e6f7ff',
|
|
109
|
-
borderRadius: '4px',
|
|
110
|
-
padding: '8px'
|
|
111
|
-
}
|
|
112
|
-
});
|