intelicoreact 1.5.40 → 1.5.41
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/package.json +1 -1
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.interface.js +0 -4
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.stories.js +0 -89
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.test.js +0 -130
- package/dist/Atomic/FormElements/ActionAlert/index.js +0 -17
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.interface.js +0 -4
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.stories.js +0 -81
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.test.js +0 -104
- package/dist/Atomic/FormElements/AdvancedStatus/index.js +0 -17
- package/dist/Atomic/FormElements/Calendar/Calendar.props.js +0 -4
- package/dist/Atomic/FormElements/Calendar/Calendar.stories.js +0 -108
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.interface.js +0 -4
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.stories.js +0 -100
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.test.js +0 -143
- package/dist/Atomic/FormElements/CheckboxInput/index.js +0 -17
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.interface.js +0 -4
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.stories.js +0 -94
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.test.js +0 -177
- package/dist/Atomic/FormElements/CheckboxesLine/index.js +0 -17
- package/dist/Atomic/FormElements/Datepicker/Datepicker.stories.js +0 -51
- package/dist/Atomic/FormElements/Dropdown/Dropdown.stories.js +0 -596
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.stories.js +0 -272
- package/dist/Atomic/FormElements/FileLoader/FileLoader.stories.js +0 -182
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.stories.js +0 -327
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.stories.js +0 -186
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.stories.js +0 -84
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.stories.js +0 -107
- package/dist/Atomic/FormElements/Input/Input.stories.js +0 -251
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.stories.js +0 -115
- package/dist/Atomic/FormElements/InputColor/InputColor.stories.js +0 -119
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.interface.js +0 -4
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.stories.js +0 -178
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.test.js +0 -129
- package/dist/Atomic/FormElements/InputCurrency/index.js +0 -16
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.stories.js +0 -123
- package/dist/Atomic/FormElements/InputLink/InputLink.stories.js +0 -140
- package/dist/Atomic/FormElements/InputMask/InputMask.stories.js +0 -303
- package/dist/Atomic/FormElements/InputMask2/InputMask2.stories.js +0 -314
- package/dist/Atomic/FormElements/InputMask3/InputMask3.stories.js +0 -335
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.stories.js +0 -276
- package/dist/Atomic/FormElements/InputsRow/InputsRow.stories.js +0 -56
- package/dist/Atomic/FormElements/Label/Label.interface.js +0 -4
- package/dist/Atomic/FormElements/Label/Label.stories.js +0 -47
- package/dist/Atomic/FormElements/Label/Label.test.js +0 -167
- package/dist/Atomic/FormElements/Label/index.js +0 -17
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.stories.js +0 -172
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.stories.js +0 -121
- package/dist/Atomic/FormElements/NumericInput/NumericInput.stories.js +0 -184
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.stories.js +0 -79
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.stories.js +0 -151
- package/dist/Atomic/FormElements/RadioInput/RadioInput.stories.js +0 -67
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.stories.js +0 -116
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.stories.js +0 -107
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.stories.js +0 -92
- package/dist/Atomic/FormElements/RangeList/RangeList.stories.js +0 -169
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.stories.js +0 -401
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.stories.js +0 -314
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.stories.js +0 -137
- package/dist/Atomic/FormElements/Switcher/Switcher.stories.js +0 -91
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.stories.js +0 -104
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.stories.js +0 -96
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.stories.js +0 -140
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.stories.js +0 -112
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.stories.js +0 -145
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.stories.js +0 -158
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.stories.js +0 -101
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.stories.js +0 -131
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.stories.js +0 -357
- package/dist/Atomic/FormElements/Text/Text.stories.js +0 -80
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.stories.js +0 -106
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.test.js +0 -93
- package/dist/Atomic/FormElements/Textarea/Textarea.stories.js +0 -103
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.stories.js +0 -174
- package/dist/Atomic/FormElements/TimeRange/TimeRange.interface.js +0 -4
- package/dist/Atomic/FormElements/TimeRange/TimeRange.stories.js +0 -40
- package/dist/Atomic/FormElements/TimeRange/TimeRange.test.js +0 -163
- package/dist/Atomic/FormElements/TimeRange/index.js +0 -17
- package/dist/Atomic/FormElements/UserContacts/UserContact.test.js +0 -381
- package/dist/Atomic/FormElements/UserContacts/UserContacts.interface.js +0 -4
- package/dist/Atomic/FormElements/UserContacts/UserContacts.stories.js +0 -74
- package/dist/Atomic/FormElements/UserContacts/index.js +0 -17
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.stories.js +0 -193
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.stories.js +0 -147
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.stories.js +0 -151
- package/dist/Atomic/Layout/Header/Header.stories.js +0 -71
- package/dist/Atomic/Layout/MainMenu/MainMenu.stories.js +0 -115
- package/dist/Atomic/Layout/Spinner/Spinner.interface.js +0 -4
- package/dist/Atomic/Layout/Spinner/Spinner.stories.js +0 -46
- package/dist/Atomic/Layout/Spinner/Spinner.test.js +0 -54
- package/dist/Atomic/Layout/Spinner/index.js +0 -17
- package/dist/Atomic/UI/Accordion/Accordion.interface.js +0 -4
- package/dist/Atomic/UI/Accordion/Accordion.stories.js +0 -168
- package/dist/Atomic/UI/Accordion/Accordion.test.js +0 -54
- package/dist/Atomic/UI/Accordion/AccordionItem.test.js +0 -50
- package/dist/Atomic/UI/Accordion/index.js +0 -17
- package/dist/Atomic/UI/AccordionTable/AccordionTable.stories.js +0 -268
- package/dist/Atomic/UI/AccordionText/AccordionText.stories.js +0 -125
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.stories.js +0 -115
- package/dist/Atomic/UI/Alert/Alert.stories.js +0 -81
- package/dist/Atomic/UI/Arrow/Arrow.stories.js +0 -62
- package/dist/Atomic/UI/Box/Box.stories.js +0 -114
- package/dist/Atomic/UI/Button/Button.stories.js +0 -105
- package/dist/Atomic/UI/Button/Button.test.js +0 -147
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.stories.js +0 -129
- package/dist/Atomic/UI/Chart/Chart.stories.js +0 -93
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.stories.js +0 -85
- package/dist/Atomic/UI/DateTime/DateTime.stories.js +0 -50
- package/dist/Atomic/UI/DoubleString/DoubleString.stories.js +0 -79
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.interface.js +0 -4
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.stories.js +0 -98
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.test.js +0 -51
- package/dist/Atomic/UI/DynamicIcon/index.js +0 -17
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.stories.js +0 -98
- package/dist/Atomic/UI/Hint/Hint.stories.js +0 -101
- package/dist/Atomic/UI/Hint/index.js +0 -16
- package/dist/Atomic/UI/Modal/Modal.interface.js +0 -4
- package/dist/Atomic/UI/Modal/Modal.stories.js +0 -370
- package/dist/Atomic/UI/Modal/ModalHOC.stories.js +0 -191
- package/dist/Atomic/UI/Modal/ModalHOC.test.js +0 -187
- package/dist/Atomic/UI/Modal/index.js +0 -26
- package/dist/Atomic/UI/Modal/partials/ModalFooter.test.js +0 -118
- package/dist/Atomic/UI/Modal/partials/ModalTitle.test.js +0 -126
- package/dist/Atomic/UI/Modal/partials/useMobileModal.test.js +0 -133
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.interface.js +0 -4
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.stories.js +0 -513
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.test.js +0 -84
- package/dist/Atomic/UI/MonoAccordion/index.js +0 -17
- package/dist/Atomic/UI/NavLine/NavLine.interface.js +0 -4
- package/dist/Atomic/UI/NavLine/NavLine.stories.js +0 -434
- package/dist/Atomic/UI/NavLine/NavLine.test.js +0 -311
- package/dist/Atomic/UI/NavLine/index.js +0 -17
- package/dist/Atomic/UI/PageTitle/PageTitle.interface.js +0 -4
- package/dist/Atomic/UI/PageTitle/PageTitle.stories.js +0 -62
- package/dist/Atomic/UI/PageTitle/PageTitle.test.js +0 -181
- package/dist/Atomic/UI/PageTitle/index.js +0 -17
- package/dist/Atomic/UI/PieChart/PieChar.interface.js +0 -4
- package/dist/Atomic/UI/PieChart/PieChart.stories.js +0 -82
- package/dist/Atomic/UI/PieChart/PieChart.test.js +0 -142
- package/dist/Atomic/UI/PieChart/index.js +0 -26
- package/dist/Atomic/UI/Price/Price.interface.js +0 -4
- package/dist/Atomic/UI/Price/Price.stories.js +0 -52
- package/dist/Atomic/UI/Price/Price.test.js +0 -83
- package/dist/Atomic/UI/Price/index.js +0 -17
- package/dist/Atomic/UI/PriceRange/PriceRange.interface.js +0 -4
- package/dist/Atomic/UI/PriceRange/PriceRange.stories.js +0 -51
- package/dist/Atomic/UI/PriceRange/PriceRange.test.js +0 -72
- package/dist/Atomic/UI/PriceRange/index.js +0 -17
- package/dist/Atomic/UI/ProgressLine/ProgressLine.interface.js +0 -4
- package/dist/Atomic/UI/ProgressLine/ProgressLine.stories.js +0 -163
- package/dist/Atomic/UI/ProgressLine/ProgressLine.test.js +0 -60
- package/dist/Atomic/UI/ProgressLine/index.js +0 -17
- package/dist/Atomic/UI/Status/Status.interface.js +0 -4
- package/dist/Atomic/UI/Status/Status.stories.js +0 -79
- package/dist/Atomic/UI/Status/Status.test.js +0 -103
- package/dist/Atomic/UI/Status/index.js +0 -17
- package/dist/Atomic/UI/Table/Table.stories.js +0 -250
- package/dist/Atomic/UI/Tag/Tag.interface.js +0 -4
- package/dist/Atomic/UI/Tag/Tag.stories.js +0 -108
- package/dist/Atomic/UI/Tag/Tag.test.js +0 -75
- package/dist/Atomic/UI/Tag/index.js +0 -17
- package/dist/Atomic/UI/TagList/TagList.stories.js +0 -169
- package/dist/Atomic/UI/UserBox/UserBox.interface.js +0 -4
- package/dist/Atomic/UI/UserBox/UserBox.stories.js +0 -57
- package/dist/Atomic/UI/UserBox/UserBox.test.js +0 -136
- package/dist/Atomic/UI/UserBox/index.js +0 -17
- package/dist/Atomic/UI/WizardStepper/WizardStepper.stories.js +0 -70
- package/dist/Functions/useIsMobile/index.js +0 -17
- package/dist/Functions/useIsMobile/useIsMobile.js +0 -33
- package/dist/Functions/useIsMobile/useIsMobile.test.js +0 -104
- package/dist/Functions/useKeyPress/useHandleKeyPress.test.js +0 -96
- package/dist/Functions/useKeyPress/useKeyPress.test.js +0 -87
- package/dist/Molecular/FormElement/FormElement.stories.js +0 -92
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.stories.js +0 -301
- package/dist/Molecular/InputAddress/InputAddress.stories.js +0 -541
- package/dist/Molecular/InputPassword/InputPassword.stories.js +0 -86
- package/dist/types/base.interface.js +0 -4
- package/dist/types/base.types.js +0 -4
package/package.json
CHANGED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
TemplateActionAlert: function() {
|
|
13
|
-
return TemplateActionAlert;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _ActionAlert = /*#__PURE__*/ _interop_require_default(require("./ActionAlert"));
|
|
21
|
-
require("../../../../../scss/main.scss");
|
|
22
|
-
function _interop_require_default(obj) {
|
|
23
|
-
return obj && obj.__esModule ? obj : {
|
|
24
|
-
default: obj
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
const _default = {
|
|
28
|
-
title: 'Form Elements/ActionAlert',
|
|
29
|
-
component: _ActionAlert.default,
|
|
30
|
-
argTypes: {
|
|
31
|
-
variant: {
|
|
32
|
-
description: 'string: ["reject", "pending", "confirm", "default"]. optional',
|
|
33
|
-
control: {
|
|
34
|
-
type: 'select',
|
|
35
|
-
options: [
|
|
36
|
-
'reject',
|
|
37
|
-
'pending',
|
|
38
|
-
'confirm',
|
|
39
|
-
'default'
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
message: {
|
|
44
|
-
description: 'string. optional'
|
|
45
|
-
},
|
|
46
|
-
date: {
|
|
47
|
-
description: 'string. optional'
|
|
48
|
-
},
|
|
49
|
-
noButtons: {
|
|
50
|
-
description: 'boolean. optional'
|
|
51
|
-
},
|
|
52
|
-
className: {
|
|
53
|
-
description: 'string. optional'
|
|
54
|
-
},
|
|
55
|
-
testId: {
|
|
56
|
-
description: 'string. optional'
|
|
57
|
-
},
|
|
58
|
-
buttons: {
|
|
59
|
-
description: 'array. optional'
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const Template = (args)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
64
|
-
...args
|
|
65
|
-
});
|
|
66
|
-
const TemplateActionAlert = Template.bind({});
|
|
67
|
-
TemplateActionAlert.args = {
|
|
68
|
-
className: 'test-class',
|
|
69
|
-
date: '08.15.22 15:55',
|
|
70
|
-
message: 'Consumer Completion Status:',
|
|
71
|
-
noButtons: false,
|
|
72
|
-
variant: 'warning',
|
|
73
|
-
testId: 'test-id',
|
|
74
|
-
buttonsClassName: 'j6',
|
|
75
|
-
buttons: [
|
|
76
|
-
{
|
|
77
|
-
key: 'reviewBtn',
|
|
78
|
-
buttonColor: '',
|
|
79
|
-
buttonLabel: 'Review',
|
|
80
|
-
onClick: ()=>console.log('Review')
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
key: 'sendFundsBtn',
|
|
84
|
-
buttonColor: '#F59A2F',
|
|
85
|
-
buttonLabel: 'Send Funds',
|
|
86
|
-
onClick: ()=>console.log('Send Funds')
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
6
|
-
const _react = require("@testing-library/react");
|
|
7
|
-
require("@testing-library/jest-dom");
|
|
8
|
-
const _ActionAlert = /*#__PURE__*/ _interop_require_default(require("./ActionAlert"));
|
|
9
|
-
function _interop_require_default(obj) {
|
|
10
|
-
return obj && obj.__esModule ? obj : {
|
|
11
|
-
default: obj
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const mockButtons = [
|
|
15
|
-
{
|
|
16
|
-
key: 'button1',
|
|
17
|
-
buttonColor: '#007BFF',
|
|
18
|
-
buttonLabel: 'Confirm',
|
|
19
|
-
onClick: jest.fn()
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
key: 'button2',
|
|
23
|
-
buttonColor: '#FF0000',
|
|
24
|
-
buttonLabel: 'Cancel',
|
|
25
|
-
onClick: jest.fn()
|
|
26
|
-
}
|
|
27
|
-
];
|
|
28
|
-
describe('actionAlert component', ()=>{
|
|
29
|
-
it('renders with default props', ()=>{
|
|
30
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
31
|
-
message: "Test Alert"
|
|
32
|
-
}));
|
|
33
|
-
const alert = _react.screen.getByTestId('alert');
|
|
34
|
-
expect(alert).toBeInTheDocument();
|
|
35
|
-
expect(alert).toHaveClass('action-alert action-alert--default');
|
|
36
|
-
expect(_react.screen.getByText('Test Alert')).toBeInTheDocument();
|
|
37
|
-
});
|
|
38
|
-
it('renders with a custom variant', ()=>{
|
|
39
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
40
|
-
message: "Warning!",
|
|
41
|
-
variant: "warning"
|
|
42
|
-
}));
|
|
43
|
-
const alert = _react.screen.getByTestId('alert');
|
|
44
|
-
expect(alert).toHaveClass('action-alert--warning');
|
|
45
|
-
});
|
|
46
|
-
it('renders with date', ()=>{
|
|
47
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
48
|
-
message: "With Date",
|
|
49
|
-
date: "2024-12-30"
|
|
50
|
-
}));
|
|
51
|
-
const dateElement = _react.screen.getByText('2024-12-30');
|
|
52
|
-
expect(dateElement).toBeInTheDocument();
|
|
53
|
-
expect(dateElement).toHaveClass('action-alert__time');
|
|
54
|
-
});
|
|
55
|
-
it('renders with buttons', ()=>{
|
|
56
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
57
|
-
buttons: mockButtons
|
|
58
|
-
}));
|
|
59
|
-
const buttons = _react.screen.getAllByRole('button');
|
|
60
|
-
expect(buttons).toHaveLength(mockButtons.length);
|
|
61
|
-
mockButtons.forEach((btn)=>{
|
|
62
|
-
expect(_react.screen.getByText(btn.buttonLabel)).toBeInTheDocument();
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
it('calls button onClick handlers', ()=>{
|
|
66
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
67
|
-
buttons: mockButtons
|
|
68
|
-
}));
|
|
69
|
-
const buttons = _react.screen.getAllByRole('button');
|
|
70
|
-
_react.fireEvent.click(buttons[0]);
|
|
71
|
-
_react.fireEvent.click(buttons[1]);
|
|
72
|
-
expect(mockButtons[0].onClick).toHaveBeenCalledTimes(1);
|
|
73
|
-
expect(mockButtons[1].onClick).toHaveBeenCalledTimes(1);
|
|
74
|
-
});
|
|
75
|
-
it('does not render buttons when noButtons is true', ()=>{
|
|
76
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
77
|
-
noButtons: true,
|
|
78
|
-
buttons: mockButtons
|
|
79
|
-
}));
|
|
80
|
-
const buttons = _react.screen.queryAllByRole('button');
|
|
81
|
-
expect(buttons).toHaveLength(0);
|
|
82
|
-
});
|
|
83
|
-
it('renders children when message is not provided', ()=>{
|
|
84
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
85
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
86
|
-
children: "Custom Content"
|
|
87
|
-
})
|
|
88
|
-
}));
|
|
89
|
-
const customContent = _react.screen.getByText('Custom Content');
|
|
90
|
-
expect(customContent).toBeInTheDocument();
|
|
91
|
-
});
|
|
92
|
-
it('applies additional className to the root element', ()=>{
|
|
93
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
94
|
-
className: "custom-class"
|
|
95
|
-
}));
|
|
96
|
-
const alert = _react.screen.getByTestId('alert');
|
|
97
|
-
expect(alert).toHaveClass('custom-class');
|
|
98
|
-
});
|
|
99
|
-
it('applies buttonsClassName to the buttons container', ()=>{
|
|
100
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
101
|
-
buttons: mockButtons,
|
|
102
|
-
buttonsClassName: "buttons-custom-class"
|
|
103
|
-
}));
|
|
104
|
-
const buttonsContainer = _react.screen.getByTestId('alert').querySelector('.buttons-custom-class');
|
|
105
|
-
expect(buttonsContainer).toBeInTheDocument();
|
|
106
|
-
});
|
|
107
|
-
it('renders correctly with no props', ()=>{
|
|
108
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {}));
|
|
109
|
-
const alert = _react.screen.getByTestId('alert');
|
|
110
|
-
expect(alert).toBeInTheDocument();
|
|
111
|
-
expect(alert).toHaveClass('action-alert--default');
|
|
112
|
-
});
|
|
113
|
-
it('handles missing buttons gracefully', ()=>{
|
|
114
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
115
|
-
noButtons: true
|
|
116
|
-
}));
|
|
117
|
-
const buttons = _react.screen.queryAllByRole('button');
|
|
118
|
-
expect(buttons).toHaveLength(0);
|
|
119
|
-
});
|
|
120
|
-
it('handles long messages with children and ellipsis', ()=>{
|
|
121
|
-
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
122
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
123
|
-
className: "text-ellipsis",
|
|
124
|
-
children: "This is a very long custom content that should be truncated."
|
|
125
|
-
})
|
|
126
|
-
}));
|
|
127
|
-
const text = _react.screen.getByText('This is a very long custom content that should be truncated.');
|
|
128
|
-
expect(text).toHaveClass('text-ellipsis');
|
|
129
|
-
});
|
|
130
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _ActionAlert = /*#__PURE__*/ _interop_require_default(require("./ActionAlert"));
|
|
12
|
-
function _interop_require_default(obj) {
|
|
13
|
-
return obj && obj.__esModule ? obj : {
|
|
14
|
-
default: obj
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const _default = _ActionAlert.default;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
TemplateAdvancedStatus: function() {
|
|
13
|
-
return TemplateAdvancedStatus;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _react = require("react");
|
|
21
|
-
const _AdvancedStatus = /*#__PURE__*/ _interop_require_default(require("./AdvancedStatus"));
|
|
22
|
-
require("../../../../../scss/main.scss");
|
|
23
|
-
function _interop_require_default(obj) {
|
|
24
|
-
return obj && obj.__esModule ? obj : {
|
|
25
|
-
default: obj
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
const _default = {
|
|
29
|
-
title: 'Form Elements/AdvancedStatus',
|
|
30
|
-
component: _AdvancedStatus.default,
|
|
31
|
-
argTypes: {
|
|
32
|
-
value: {
|
|
33
|
-
description: 'boolean. optional'
|
|
34
|
-
},
|
|
35
|
-
className: {
|
|
36
|
-
description: 'string. optional'
|
|
37
|
-
},
|
|
38
|
-
testId: {
|
|
39
|
-
description: 'string. optional'
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
function Template(args) {
|
|
44
|
-
const [value, setValue] = (0, _react.useState)(null);
|
|
45
|
-
const buttonStyles = {
|
|
46
|
-
border: '1px solid black',
|
|
47
|
-
padding: '10px',
|
|
48
|
-
marginTop: '10px'
|
|
49
|
-
};
|
|
50
|
-
(0, _react.useEffect)(()=>{
|
|
51
|
-
if (value === null) setTimeout(()=>setValue(args.value), 1500);
|
|
52
|
-
}, [
|
|
53
|
-
value
|
|
54
|
-
]);
|
|
55
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
56
|
-
children: [
|
|
57
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
58
|
-
...args,
|
|
59
|
-
value: value,
|
|
60
|
-
onChange: setValue
|
|
61
|
-
}),
|
|
62
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
|
63
|
-
style: buttonStyles,
|
|
64
|
-
disabled: value === null,
|
|
65
|
-
onClick: ()=>setValue(null),
|
|
66
|
-
children: "Reload"
|
|
67
|
-
})
|
|
68
|
-
]
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
const TemplateAdvancedStatus = Template.bind({});
|
|
72
|
-
TemplateAdvancedStatus.args = {
|
|
73
|
-
value: false,
|
|
74
|
-
className: 'test-class',
|
|
75
|
-
testId: 'test-id',
|
|
76
|
-
activeText: 'Approved',
|
|
77
|
-
inactiveText: 'Review',
|
|
78
|
-
disabled: false,
|
|
79
|
-
isPrimary: true,
|
|
80
|
-
primaryStatusText: 'Primary'
|
|
81
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
6
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
7
|
-
const _react1 = require("@testing-library/react");
|
|
8
|
-
require("@testing-library/jest-dom");
|
|
9
|
-
const _AdvancedStatus = /*#__PURE__*/ _interop_require_default(require("./AdvancedStatus"));
|
|
10
|
-
function _interop_require_default(obj) {
|
|
11
|
-
return obj && obj.__esModule ? obj : {
|
|
12
|
-
default: obj
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
// Мокаем компонент Status, если он не нужен для тестов
|
|
16
|
-
jest.mock('../../UI/Status/Status', ()=>({ children })=>/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
17
|
-
children: children
|
|
18
|
-
}));
|
|
19
|
-
describe('advancedStatus Component', ()=>{
|
|
20
|
-
it('renders without crashing', ()=>{
|
|
21
|
-
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
22
|
-
onChange: ()=>{},
|
|
23
|
-
inactiveText: "Inactive",
|
|
24
|
-
activeText: "Active",
|
|
25
|
-
value: true
|
|
26
|
-
}));
|
|
27
|
-
expect(_react1.screen.getByTestId('advanced-status')).toBeInTheDocument();
|
|
28
|
-
});
|
|
29
|
-
it('renders with correct text based on value', ()=>{
|
|
30
|
-
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
31
|
-
onChange: ()=>{},
|
|
32
|
-
inactiveText: "Inactive",
|
|
33
|
-
activeText: "Active",
|
|
34
|
-
value: true
|
|
35
|
-
}));
|
|
36
|
-
// Проверяем, что отображается "Active"
|
|
37
|
-
expect(_react1.screen.getByText('Active')).toBeInTheDocument();
|
|
38
|
-
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
39
|
-
onChange: ()=>{},
|
|
40
|
-
inactiveText: "Inactive",
|
|
41
|
-
activeText: "Active",
|
|
42
|
-
value: false
|
|
43
|
-
}));
|
|
44
|
-
// Проверяем, что отображается "Inactive"
|
|
45
|
-
const inactiveElements = _react1.screen.getAllByText('Inactive');
|
|
46
|
-
expect(inactiveElements.length).toBeGreaterThan(0); // Проверяем, что хотя бы один элемент присутствует
|
|
47
|
-
inactiveElements.forEach((element)=>{
|
|
48
|
-
expect(element).toBeInTheDocument();
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
it('should call onChange when clicked', ()=>{
|
|
52
|
-
const onChangeMock = jest.fn();
|
|
53
|
-
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
54
|
-
onChange: onChangeMock,
|
|
55
|
-
inactiveText: "Inactive",
|
|
56
|
-
activeText: "Active",
|
|
57
|
-
value: false
|
|
58
|
-
}));
|
|
59
|
-
_react1.fireEvent.click(_react1.screen.getByText('Inactive'));
|
|
60
|
-
expect(onChangeMock).toHaveBeenCalledTimes(1);
|
|
61
|
-
});
|
|
62
|
-
it('applies correct class names based on props', ()=>{
|
|
63
|
-
const { container } = (0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
64
|
-
onChange: ()=>{},
|
|
65
|
-
inactiveText: "Inactive",
|
|
66
|
-
activeText: "Active",
|
|
67
|
-
value: true,
|
|
68
|
-
disabled: true,
|
|
69
|
-
className: "custom-class"
|
|
70
|
-
}));
|
|
71
|
-
expect(container.firstChild).toHaveClass('advanced-status_disabled');
|
|
72
|
-
expect(container.firstChild).toHaveClass('custom-class');
|
|
73
|
-
});
|
|
74
|
-
it('does not render Status component when isPrimary is false', ()=>{
|
|
75
|
-
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
76
|
-
onChange: ()=>{},
|
|
77
|
-
inactiveText: "Inactive",
|
|
78
|
-
activeText: "Active",
|
|
79
|
-
value: true,
|
|
80
|
-
isPrimary: false
|
|
81
|
-
}));
|
|
82
|
-
expect(_react1.screen.queryByText('warning')).not.toBeInTheDocument();
|
|
83
|
-
});
|
|
84
|
-
it('renders Status component when isPrimary is true', ()=>{
|
|
85
|
-
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
86
|
-
onChange: ()=>{},
|
|
87
|
-
inactiveText: "Inactive",
|
|
88
|
-
activeText: "Active",
|
|
89
|
-
value: true,
|
|
90
|
-
isPrimary: true,
|
|
91
|
-
primaryStatusText: "Primary Status"
|
|
92
|
-
}));
|
|
93
|
-
expect(_react1.screen.getByText('Primary Status')).toBeInTheDocument();
|
|
94
|
-
});
|
|
95
|
-
it('applies undefined styles if value is undefined or null', ()=>{
|
|
96
|
-
const { container } = (0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
97
|
-
onChange: ()=>{},
|
|
98
|
-
inactiveText: "Inactive",
|
|
99
|
-
activeText: "Active",
|
|
100
|
-
value: null
|
|
101
|
-
}));
|
|
102
|
-
expect(container.firstChild).toHaveClass('advanced-status_undefined');
|
|
103
|
-
});
|
|
104
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _AdvancedStatus = /*#__PURE__*/ _interop_require_default(require("./AdvancedStatus"));
|
|
12
|
-
function _interop_require_default(obj) {
|
|
13
|
-
return obj && obj.__esModule ? obj : {
|
|
14
|
-
default: obj
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const _default = _AdvancedStatus.default;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
CalendarTemplate: function() {
|
|
13
|
-
return CalendarTemplate;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
21
|
-
const _Calendar = /*#__PURE__*/ _interop_require_default(require("./Calendar"));
|
|
22
|
-
require("../../../../../scss/main.scss");
|
|
23
|
-
function _interop_require_default(obj) {
|
|
24
|
-
return obj && obj.__esModule ? obj : {
|
|
25
|
-
default: obj
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
29
|
-
if (typeof WeakMap !== "function") return null;
|
|
30
|
-
var cacheBabelInterop = new WeakMap();
|
|
31
|
-
var cacheNodeInterop = new WeakMap();
|
|
32
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
33
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
34
|
-
})(nodeInterop);
|
|
35
|
-
}
|
|
36
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
37
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
38
|
-
return obj;
|
|
39
|
-
}
|
|
40
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
41
|
-
return {
|
|
42
|
-
default: obj
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
46
|
-
if (cache && cache.has(obj)) {
|
|
47
|
-
return cache.get(obj);
|
|
48
|
-
}
|
|
49
|
-
var newObj = {
|
|
50
|
-
__proto__: null
|
|
51
|
-
};
|
|
52
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
53
|
-
for(var key in obj){
|
|
54
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
55
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
56
|
-
if (desc && (desc.get || desc.set)) {
|
|
57
|
-
Object.defineProperty(newObj, key, desc);
|
|
58
|
-
} else {
|
|
59
|
-
newObj[key] = obj[key];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
newObj.default = obj;
|
|
64
|
-
if (cache) {
|
|
65
|
-
cache.set(obj, newObj);
|
|
66
|
-
}
|
|
67
|
-
return newObj;
|
|
68
|
-
}
|
|
69
|
-
global.lng = 'en';
|
|
70
|
-
const _default = {
|
|
71
|
-
title: 'Form Elements/Calendar',
|
|
72
|
-
component: _Calendar.default,
|
|
73
|
-
argTypes: {
|
|
74
|
-
date: {
|
|
75
|
-
description: 'string. optional'
|
|
76
|
-
},
|
|
77
|
-
setDate: {
|
|
78
|
-
description: 'function. optional'
|
|
79
|
-
},
|
|
80
|
-
className: {
|
|
81
|
-
description: 'string. optional'
|
|
82
|
-
},
|
|
83
|
-
testId: {
|
|
84
|
-
description: 'string. optional'
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const Template = (args)=>{
|
|
89
|
-
const [date, setDate] = (0, _react.useState)('12/03/2021');
|
|
90
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
91
|
-
style: {
|
|
92
|
-
width: '320px'
|
|
93
|
-
},
|
|
94
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Calendar.default, {
|
|
95
|
-
...args,
|
|
96
|
-
date: date,
|
|
97
|
-
setDate: setDate
|
|
98
|
-
})
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
const CalendarTemplate = Template.bind({});
|
|
102
|
-
CalendarTemplate.args = {
|
|
103
|
-
params: {},
|
|
104
|
-
setDate: ()=>null,
|
|
105
|
-
setIsOpened: ()=>null,
|
|
106
|
-
className: '',
|
|
107
|
-
testId: 'test-id'
|
|
108
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
Checkbox: function() {
|
|
13
|
-
return Checkbox;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _react = require("react");
|
|
21
|
-
const _CheckboxInput = /*#__PURE__*/ _interop_require_default(require("./CheckboxInput"));
|
|
22
|
-
require("../../../../../scss/main.scss");
|
|
23
|
-
function _interop_require_default(obj) {
|
|
24
|
-
return obj && obj.__esModule ? obj : {
|
|
25
|
-
default: obj
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
const _default = {
|
|
29
|
-
title: 'Form Elements/CheckboxInput',
|
|
30
|
-
component: _CheckboxInput.default,
|
|
31
|
-
argTypes: {
|
|
32
|
-
className: {
|
|
33
|
-
description: 'string. optional'
|
|
34
|
-
},
|
|
35
|
-
value: {
|
|
36
|
-
description: 'boolean'
|
|
37
|
-
},
|
|
38
|
-
disabled: {
|
|
39
|
-
description: 'boolean'
|
|
40
|
-
},
|
|
41
|
-
isStark: {
|
|
42
|
-
description: 'checkbox third state. boolean. optional'
|
|
43
|
-
},
|
|
44
|
-
forced: {
|
|
45
|
-
description: 'checkbox third state. boolean. optional'
|
|
46
|
-
},
|
|
47
|
-
testid: {
|
|
48
|
-
description: 'string. optional'
|
|
49
|
-
},
|
|
50
|
-
onChange: {
|
|
51
|
-
description: 'function. optional'
|
|
52
|
-
},
|
|
53
|
-
label: {
|
|
54
|
-
description: 'string. optional'
|
|
55
|
-
},
|
|
56
|
-
attributesOfNativeInput: {
|
|
57
|
-
description: 'Object. Optional. This is list of attributes to add in native input'
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
function Template(args) {
|
|
62
|
-
const { value: argsValue } = args;
|
|
63
|
-
const [value, setValue] = (0, _react.useState)(argsValue);
|
|
64
|
-
const [value1, setValue1] = (0, _react.useState)(argsValue);
|
|
65
|
-
const [value2, setValue2] = (0, _react.useState)(argsValue);
|
|
66
|
-
const [value3, setValue3] = (0, _react.useState)(argsValue);
|
|
67
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
68
|
-
children: [
|
|
69
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckboxInput.default, {
|
|
70
|
-
...args,
|
|
71
|
-
value: value,
|
|
72
|
-
onChange: setValue
|
|
73
|
-
}),
|
|
74
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckboxInput.default, {
|
|
75
|
-
...args,
|
|
76
|
-
value: value1,
|
|
77
|
-
onChange: setValue1
|
|
78
|
-
}),
|
|
79
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckboxInput.default, {
|
|
80
|
-
...args,
|
|
81
|
-
value: value2,
|
|
82
|
-
onChange: setValue2
|
|
83
|
-
}),
|
|
84
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckboxInput.default, {
|
|
85
|
-
...args,
|
|
86
|
-
value: value3,
|
|
87
|
-
onChange: setValue3
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
const Checkbox = Template.bind({});
|
|
93
|
-
Checkbox.args = {
|
|
94
|
-
label: 'Test label',
|
|
95
|
-
value: true,
|
|
96
|
-
disabled: false,
|
|
97
|
-
isStark: false,
|
|
98
|
-
testId: 'testid',
|
|
99
|
-
className: 'test-class'
|
|
100
|
-
};
|