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
|
@@ -1,92 +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
|
-
RangeInputsTemplate: function() {
|
|
13
|
-
return RangeInputsTemplate;
|
|
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 _RangeInputs = /*#__PURE__*/ _interop_require_default(require("./RangeInputs"));
|
|
22
|
-
require("./RangeInputs.scss");
|
|
23
|
-
require("../../../../../scss/main.scss");
|
|
24
|
-
function _interop_require_default(obj) {
|
|
25
|
-
return obj && obj.__esModule ? obj : {
|
|
26
|
-
default: obj
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
30
|
-
if (typeof WeakMap !== "function") return null;
|
|
31
|
-
var cacheBabelInterop = new WeakMap();
|
|
32
|
-
var cacheNodeInterop = new WeakMap();
|
|
33
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
34
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
35
|
-
})(nodeInterop);
|
|
36
|
-
}
|
|
37
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
38
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
39
|
-
return obj;
|
|
40
|
-
}
|
|
41
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
42
|
-
return {
|
|
43
|
-
default: obj
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
47
|
-
if (cache && cache.has(obj)) {
|
|
48
|
-
return cache.get(obj);
|
|
49
|
-
}
|
|
50
|
-
var newObj = {
|
|
51
|
-
__proto__: null
|
|
52
|
-
};
|
|
53
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
54
|
-
for(var key in obj){
|
|
55
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
56
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
57
|
-
if (desc && (desc.get || desc.set)) {
|
|
58
|
-
Object.defineProperty(newObj, key, desc);
|
|
59
|
-
} else {
|
|
60
|
-
newObj[key] = obj[key];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
newObj.default = obj;
|
|
65
|
-
if (cache) {
|
|
66
|
-
cache.set(obj, newObj);
|
|
67
|
-
}
|
|
68
|
-
return newObj;
|
|
69
|
-
}
|
|
70
|
-
global.lng = 'en';
|
|
71
|
-
const _default = {
|
|
72
|
-
title: 'Form Elements/RangeInputs',
|
|
73
|
-
component: _RangeInputs.default
|
|
74
|
-
};
|
|
75
|
-
const Template = (args)=>{
|
|
76
|
-
const [state, setState] = (0, _react.useState)();
|
|
77
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_RangeInputs.default, {
|
|
78
|
-
...args,
|
|
79
|
-
onChange: setState,
|
|
80
|
-
value: state,
|
|
81
|
-
setError: ()=>{}
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
const RangeInputsTemplate = Template.bind({});
|
|
85
|
-
RangeInputsTemplate.args = {
|
|
86
|
-
isColumnPosition: true,
|
|
87
|
-
className: '',
|
|
88
|
-
type: 'int',
|
|
89
|
-
label: 'Range Inputs',
|
|
90
|
-
isPrice: true,
|
|
91
|
-
withZero: true
|
|
92
|
-
};
|
|
@@ -1,169 +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
|
-
RangeListTemplate: function() {
|
|
13
|
-
return RangeListTemplate;
|
|
14
|
-
},
|
|
15
|
-
TestRangeList: function() {
|
|
16
|
-
return TestRangeList;
|
|
17
|
-
},
|
|
18
|
-
default: function() {
|
|
19
|
-
return _default;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
23
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
24
|
-
const _RangeList = /*#__PURE__*/ _interop_require_default(require("./RangeList"));
|
|
25
|
-
require("../../../../../scss/main.scss");
|
|
26
|
-
require("./partial/AnyOuterClass.scss");
|
|
27
|
-
function _interop_require_default(obj) {
|
|
28
|
-
return obj && obj.__esModule ? obj : {
|
|
29
|
-
default: obj
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
33
|
-
if (typeof WeakMap !== "function") return null;
|
|
34
|
-
var cacheBabelInterop = new WeakMap();
|
|
35
|
-
var cacheNodeInterop = new WeakMap();
|
|
36
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
37
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
38
|
-
})(nodeInterop);
|
|
39
|
-
}
|
|
40
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
41
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
42
|
-
return obj;
|
|
43
|
-
}
|
|
44
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
45
|
-
return {
|
|
46
|
-
default: obj
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
50
|
-
if (cache && cache.has(obj)) {
|
|
51
|
-
return cache.get(obj);
|
|
52
|
-
}
|
|
53
|
-
var newObj = {
|
|
54
|
-
__proto__: null
|
|
55
|
-
};
|
|
56
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
57
|
-
for(var key in obj){
|
|
58
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
59
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
60
|
-
if (desc && (desc.get || desc.set)) {
|
|
61
|
-
Object.defineProperty(newObj, key, desc);
|
|
62
|
-
} else {
|
|
63
|
-
newObj[key] = obj[key];
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
newObj.default = obj;
|
|
68
|
-
if (cache) {
|
|
69
|
-
cache.set(obj, newObj);
|
|
70
|
-
}
|
|
71
|
-
return newObj;
|
|
72
|
-
}
|
|
73
|
-
global.lng = 'en';
|
|
74
|
-
const _default = {
|
|
75
|
-
title: 'Form Elements/RangeList',
|
|
76
|
-
component: _RangeList.default
|
|
77
|
-
};
|
|
78
|
-
const rootStyles = {
|
|
79
|
-
with: '100%',
|
|
80
|
-
padding: '20px',
|
|
81
|
-
backgroundColor: '#f7fafc'
|
|
82
|
-
};
|
|
83
|
-
const Template = (args)=>{
|
|
84
|
-
const { isIncludeOuterStyles, isAddValidateErrorsForExample, isUseErrorsState, isUseInitialValues, initialValues, ...restArgs } = args;
|
|
85
|
-
const [value, setValue] = (0, _react.useState)();
|
|
86
|
-
const [error, setError] = (0, _react.useState)('');
|
|
87
|
-
const getValidate = (isUseState)=>(from, to)=>{
|
|
88
|
-
const errorText = '18 is the minimum allowed value';
|
|
89
|
-
if (+from < 18) {
|
|
90
|
-
if (isUseState) setError(errorText);
|
|
91
|
-
return errorText;
|
|
92
|
-
} else {
|
|
93
|
-
if (isUseState) setError('');
|
|
94
|
-
return '';
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
(0, _react.useEffect)(()=>{
|
|
98
|
-
if (isUseInitialValues) setValue(initialValues);
|
|
99
|
-
else setValue([]);
|
|
100
|
-
setError('');
|
|
101
|
-
}, [
|
|
102
|
-
isUseInitialValues,
|
|
103
|
-
restArgs.isFloatValues
|
|
104
|
-
]);
|
|
105
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
106
|
-
style: rootStyles,
|
|
107
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_RangeList.default, {
|
|
108
|
-
...restArgs,
|
|
109
|
-
className: isIncludeOuterStyles ? 'any-outer-class__range-list' : null,
|
|
110
|
-
value: value,
|
|
111
|
-
onChange: (val)=>setValue(val),
|
|
112
|
-
error: error,
|
|
113
|
-
validateErrors: isAddValidateErrorsForExample ? getValidate(isUseErrorsState) : null
|
|
114
|
-
})
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
const RangeListTemplate = Template.bind({});
|
|
118
|
-
RangeListTemplate.args = {
|
|
119
|
-
isIncludeOuterStyles: false,
|
|
120
|
-
isAddValidateErrorsForExample: false,
|
|
121
|
-
isUseErrorsState: false,
|
|
122
|
-
disabled: false,
|
|
123
|
-
isFloatValues: false,
|
|
124
|
-
decimalPlaces: 2,
|
|
125
|
-
defaultErrorText: 'Set a valid range',
|
|
126
|
-
nullValueText: 'Not set',
|
|
127
|
-
isUseInitialValues: true,
|
|
128
|
-
isOnlyOneRow: false,
|
|
129
|
-
initialValues: [
|
|
130
|
-
{
|
|
131
|
-
from: 15,
|
|
132
|
-
to: 17
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
from: 19,
|
|
136
|
-
to: 23
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
from: 25,
|
|
140
|
-
to: 30
|
|
141
|
-
}
|
|
142
|
-
]
|
|
143
|
-
};
|
|
144
|
-
const TestRangeList = Template.bind({});
|
|
145
|
-
TestRangeList.args = {
|
|
146
|
-
isIncludeOuterStyles: false,
|
|
147
|
-
isAddValidateErrorsForExample: false,
|
|
148
|
-
isUseErrorsState: false,
|
|
149
|
-
disabled: false,
|
|
150
|
-
isFloatValues: false,
|
|
151
|
-
decimalPlaces: 2,
|
|
152
|
-
defaultErrorText: 'Set a valid range',
|
|
153
|
-
nullValueText: 'Not set',
|
|
154
|
-
isUseInitialValues: true,
|
|
155
|
-
initialValues: [
|
|
156
|
-
{
|
|
157
|
-
from: 15,
|
|
158
|
-
to: 17
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
from: 19,
|
|
162
|
-
to: 23
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
from: 25,
|
|
166
|
-
to: 30
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
};
|
|
@@ -1,401 +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
|
-
RangeSliderTemplate: function() {
|
|
13
|
-
return RangeSliderTemplate;
|
|
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 _RangeSlider = /*#__PURE__*/ _interop_require_default(require("./RangeSlider"));
|
|
22
|
-
require("./RangeSlider.stories.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/RangeSlider',
|
|
72
|
-
component: _RangeSlider.default,
|
|
73
|
-
argTypes: {
|
|
74
|
-
min: {
|
|
75
|
-
name: 'min',
|
|
76
|
-
type: {
|
|
77
|
-
name: 'number',
|
|
78
|
-
required: true
|
|
79
|
-
},
|
|
80
|
-
description: 'Minimal value of Range',
|
|
81
|
-
table: {
|
|
82
|
-
type: {
|
|
83
|
-
summary: 'number'
|
|
84
|
-
},
|
|
85
|
-
defaultValue: {
|
|
86
|
-
summary: 0
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
control: {
|
|
90
|
-
type: 'number'
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
max: {
|
|
94
|
-
name: 'max',
|
|
95
|
-
type: {
|
|
96
|
-
name: 'number',
|
|
97
|
-
required: true
|
|
98
|
-
},
|
|
99
|
-
description: 'Maximal value of Range',
|
|
100
|
-
table: {
|
|
101
|
-
type: {
|
|
102
|
-
summary: 'number'
|
|
103
|
-
},
|
|
104
|
-
defaultValue: {
|
|
105
|
-
summary: 100
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
control: {
|
|
109
|
-
type: 'number'
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
minRange: {
|
|
113
|
-
name: 'minRange',
|
|
114
|
-
type: {
|
|
115
|
-
name: 'number',
|
|
116
|
-
required: false
|
|
117
|
-
},
|
|
118
|
-
description: 'Minimal Range',
|
|
119
|
-
table: {
|
|
120
|
-
type: {
|
|
121
|
-
summary: 'number'
|
|
122
|
-
},
|
|
123
|
-
defaultValue: {
|
|
124
|
-
summary: 0
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
control: {
|
|
128
|
-
type: 'number'
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
precision: {
|
|
132
|
-
name: 'precision',
|
|
133
|
-
type: {
|
|
134
|
-
name: 'number',
|
|
135
|
-
required: false
|
|
136
|
-
},
|
|
137
|
-
description: 'Number of Symbols After Comma',
|
|
138
|
-
table: {
|
|
139
|
-
type: {
|
|
140
|
-
summary: 'number'
|
|
141
|
-
},
|
|
142
|
-
defaultValue: {
|
|
143
|
-
summary: 0
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
control: {
|
|
147
|
-
type: 'number'
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
value: {
|
|
151
|
-
name: 'value',
|
|
152
|
-
type: {
|
|
153
|
-
name: 'object',
|
|
154
|
-
required: false
|
|
155
|
-
},
|
|
156
|
-
description: 'Incoming Value',
|
|
157
|
-
defaultValue: {
|
|
158
|
-
from: 0,
|
|
159
|
-
to: 100
|
|
160
|
-
},
|
|
161
|
-
table: {
|
|
162
|
-
type: {
|
|
163
|
-
summary: 'object'
|
|
164
|
-
},
|
|
165
|
-
defaultValue: {
|
|
166
|
-
summary: JSON.stringify({
|
|
167
|
-
from: 0,
|
|
168
|
-
to: 100
|
|
169
|
-
}, null, 2)
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
control: {
|
|
173
|
-
type: 'object',
|
|
174
|
-
value: {
|
|
175
|
-
from: 0,
|
|
176
|
-
to: 100
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
unit: {
|
|
181
|
-
name: 'unit',
|
|
182
|
-
type: {
|
|
183
|
-
name: 'string',
|
|
184
|
-
required: false
|
|
185
|
-
},
|
|
186
|
-
description: 'Unit for RangeSlider Values',
|
|
187
|
-
table: {
|
|
188
|
-
type: {
|
|
189
|
-
summary: 'string'
|
|
190
|
-
},
|
|
191
|
-
defaultValue: {
|
|
192
|
-
summary: ''
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
control: {
|
|
196
|
-
type: 'text'
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
label: {
|
|
200
|
-
name: 'label',
|
|
201
|
-
type: {
|
|
202
|
-
name: 'string',
|
|
203
|
-
required: true
|
|
204
|
-
},
|
|
205
|
-
description: 'Label Text for RangeSlider',
|
|
206
|
-
table: {
|
|
207
|
-
type: {
|
|
208
|
-
summary: 'string'
|
|
209
|
-
},
|
|
210
|
-
defaultValue: {
|
|
211
|
-
summary: 'Label'
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
control: {
|
|
215
|
-
type: 'text'
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
onChange: {
|
|
219
|
-
name: 'onChange',
|
|
220
|
-
type: {
|
|
221
|
-
name: 'function',
|
|
222
|
-
required: false
|
|
223
|
-
},
|
|
224
|
-
description: 'Callback function for onChange Event',
|
|
225
|
-
table: {
|
|
226
|
-
type: {
|
|
227
|
-
summary: 'function'
|
|
228
|
-
},
|
|
229
|
-
defaultValue: {
|
|
230
|
-
summary: `({from, to}) => {}`
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
control: {
|
|
234
|
-
type: 'function'
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
const Template = (args)=>{
|
|
240
|
-
args = {
|
|
241
|
-
0: {
|
|
242
|
-
...args
|
|
243
|
-
},
|
|
244
|
-
1: {
|
|
245
|
-
min: 5,
|
|
246
|
-
max: 18.9,
|
|
247
|
-
label: 'APR range',
|
|
248
|
-
unit: '%',
|
|
249
|
-
minRange: 1,
|
|
250
|
-
precision: 1
|
|
251
|
-
},
|
|
252
|
-
2: {
|
|
253
|
-
min: 0,
|
|
254
|
-
max: 10,
|
|
255
|
-
label: 'Merchant Fee range',
|
|
256
|
-
unit: '%',
|
|
257
|
-
minRange: 1,
|
|
258
|
-
precision: 2
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
const [values1, setValues1] = (0, _react.useState)({
|
|
262
|
-
from: 0,
|
|
263
|
-
to: 1500
|
|
264
|
-
});
|
|
265
|
-
const [values2, setValues2] = (0, _react.useState)({
|
|
266
|
-
from: 5,
|
|
267
|
-
to: 18.9
|
|
268
|
-
});
|
|
269
|
-
const [values3, setValues3] = (0, _react.useState)({
|
|
270
|
-
from: 0,
|
|
271
|
-
to: 10
|
|
272
|
-
});
|
|
273
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
274
|
-
style: {
|
|
275
|
-
display: 'flex',
|
|
276
|
-
maxWidth: '900px',
|
|
277
|
-
padding: '48px',
|
|
278
|
-
margin: '16px auto',
|
|
279
|
-
justifyContent: 'space-between'
|
|
280
|
-
},
|
|
281
|
-
children: [
|
|
282
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
283
|
-
children: [
|
|
284
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_RangeSlider.default, {
|
|
285
|
-
...args[0],
|
|
286
|
-
value: values1,
|
|
287
|
-
onChange: (v)=>{
|
|
288
|
-
console.log(v);
|
|
289
|
-
setValues1(v);
|
|
290
|
-
}
|
|
291
|
-
}),
|
|
292
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
293
|
-
className: "desc",
|
|
294
|
-
children: [
|
|
295
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("code", {
|
|
296
|
-
children: [
|
|
297
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("h4", {
|
|
298
|
-
children: "Value:"
|
|
299
|
-
}),
|
|
300
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("pre", {
|
|
301
|
-
children: JSON.stringify(values1, null, 2)
|
|
302
|
-
})
|
|
303
|
-
]
|
|
304
|
-
}),
|
|
305
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("code", {
|
|
306
|
-
children: [
|
|
307
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("h4", {
|
|
308
|
-
children: "Arguments:"
|
|
309
|
-
}),
|
|
310
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("pre", {
|
|
311
|
-
children: JSON.stringify(args[0], null, 2)
|
|
312
|
-
})
|
|
313
|
-
]
|
|
314
|
-
})
|
|
315
|
-
]
|
|
316
|
-
})
|
|
317
|
-
]
|
|
318
|
-
}),
|
|
319
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
320
|
-
children: [
|
|
321
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_RangeSlider.default, {
|
|
322
|
-
...args[1],
|
|
323
|
-
value: values2,
|
|
324
|
-
onChange: setValues2
|
|
325
|
-
}),
|
|
326
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
327
|
-
className: "desc",
|
|
328
|
-
children: [
|
|
329
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("code", {
|
|
330
|
-
children: [
|
|
331
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("h4", {
|
|
332
|
-
children: "Value:"
|
|
333
|
-
}),
|
|
334
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("pre", {
|
|
335
|
-
children: JSON.stringify(values2, null, 2)
|
|
336
|
-
})
|
|
337
|
-
]
|
|
338
|
-
}),
|
|
339
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("code", {
|
|
340
|
-
children: [
|
|
341
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("h4", {
|
|
342
|
-
children: "Arguments:"
|
|
343
|
-
}),
|
|
344
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("pre", {
|
|
345
|
-
children: JSON.stringify(args[1], null, 2)
|
|
346
|
-
})
|
|
347
|
-
]
|
|
348
|
-
})
|
|
349
|
-
]
|
|
350
|
-
})
|
|
351
|
-
]
|
|
352
|
-
}),
|
|
353
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
354
|
-
children: [
|
|
355
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_RangeSlider.default, {
|
|
356
|
-
...args[2],
|
|
357
|
-
value: values3,
|
|
358
|
-
onChange: setValues3
|
|
359
|
-
}),
|
|
360
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
361
|
-
className: "desc",
|
|
362
|
-
children: [
|
|
363
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("code", {
|
|
364
|
-
children: [
|
|
365
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("h4", {
|
|
366
|
-
children: "Value:"
|
|
367
|
-
}),
|
|
368
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("pre", {
|
|
369
|
-
children: JSON.stringify(values3, null, 2)
|
|
370
|
-
})
|
|
371
|
-
]
|
|
372
|
-
}),
|
|
373
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)("code", {
|
|
374
|
-
children: [
|
|
375
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("h4", {
|
|
376
|
-
children: "Arguments:"
|
|
377
|
-
}),
|
|
378
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)("pre", {
|
|
379
|
-
children: JSON.stringify(args[2], null, 2)
|
|
380
|
-
})
|
|
381
|
-
]
|
|
382
|
-
})
|
|
383
|
-
]
|
|
384
|
-
})
|
|
385
|
-
]
|
|
386
|
-
})
|
|
387
|
-
]
|
|
388
|
-
});
|
|
389
|
-
};
|
|
390
|
-
const RangeSliderTemplate = Template.bind({});
|
|
391
|
-
RangeSliderTemplate.args = {
|
|
392
|
-
min: 0,
|
|
393
|
-
max: 15000,
|
|
394
|
-
rangeSymbol: '$',
|
|
395
|
-
label: 'Period range (months)',
|
|
396
|
-
minRange: 6,
|
|
397
|
-
precision: 0,
|
|
398
|
-
noLabel: false,
|
|
399
|
-
required: true,
|
|
400
|
-
noTrack: false
|
|
401
|
-
};
|