@geneui/components 3.0.0-next-9ffcb93-16102024 → 3.0.0-next-48d0ef7-31102024
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/Avatar.js +63 -0
- package/CHANGELOG.md +7 -0
- package/Divider.js +23 -0
- package/{GeneUIProvider/index.js → GeneUIProvider.js} +52 -65
- package/HelperText.js +69 -0
- package/Info.js +64 -0
- package/Label.js +38 -0
- package/Loader.js +21 -0
- package/Pill.js +64 -0
- package/TextLink.js +20 -0
- package/{index-65217440.js → Tooltip.js} +104 -80
- package/{lib → components}/atoms/Avatar/Avatar.d.ts +7 -6
- package/components/atoms/Avatar/index.d.ts +1 -0
- package/{lib → components}/atoms/Divider/Divider.d.ts +5 -5
- package/components/atoms/Divider/index.d.ts +1 -0
- package/{lib → components}/atoms/HelperText/HelperText.d.ts +6 -5
- package/components/atoms/HelperText/index.d.ts +1 -0
- package/{lib → components}/atoms/Info/Info.d.ts +5 -5
- package/components/atoms/Info/index.d.ts +1 -0
- package/{lib → components}/atoms/Label/Label.d.ts +3 -3
- package/components/atoms/Label/index.d.ts +1 -0
- package/{lib → components}/atoms/Loader/Loader.d.ts +5 -5
- package/components/atoms/Loader/index.d.ts +1 -0
- package/{lib → components}/atoms/Pill/Pill.d.ts +7 -6
- package/components/atoms/Pill/index.d.ts +1 -0
- package/{lib → components}/atoms/TextLink/TextLink.d.ts +5 -5
- package/components/atoms/TextLink/index.d.ts +1 -0
- package/{lib → components}/molecules/Tooltip/Tooltip.d.ts +26 -21
- package/components/molecules/Tooltip/index.d.ts +1 -0
- package/components/providers/GeneUIProvider/GeneUIProvider.d.ts +30 -0
- package/components/providers/GeneUIProvider/index.d.ts +1 -0
- package/hooks/index.d.ts +2 -20
- package/hooks/useDebounceCallback/index.d.ts +1 -0
- package/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
- package/hooks/useEllipsisDetection/index.d.ts +1 -1
- package/hooks/useEllipsisDetection/useEllipsisDetection.d.ts +2 -2
- package/{index-031ff73c.js → index-ce02421b.js} +4 -4
- package/index.d.ts +11 -121
- package/index.js +12 -159
- package/package.json +24 -43
- package/tokens-0abb4e1b.js +6 -0
- package/types/index.d.ts +0 -3
- package/useEllipsisDetection-46d712b6.js +34 -0
- package/ActionableList/index.js +0 -1694
- package/AdvancedSearch/index.js +0 -892
- package/Alert/index.js +0 -98
- package/Avatar/index.js +0 -58
- package/Badge/index.js +0 -29
- package/Breadcrumb/index.js +0 -130
- package/BusyLoader/index.js +0 -31
- package/Button/index.js +0 -30
- package/Card/index.js +0 -502
- package/CardList/index.js +0 -662
- package/CellMeasurerCache-80be385d.js +0 -229
- package/Charts/index.js +0 -17662
- package/Checkbox/index.js +0 -229
- package/CheckboxGroup/index.js +0 -203
- package/CheckboxGroupWithSearch/index.js +0 -280
- package/Collapse/index.js +0 -195
- package/ColorPicker/index.js +0 -210
- package/ComboBox/index.js +0 -524
- package/Copy/index.js +0 -56
- package/Counter/index.js +0 -312
- package/DateFilter/index.js +0 -183
- package/DatePicker/index.js +0 -1229
- package/DatePickerInput/index.js +0 -883
- package/Divider/index.js +0 -23
- package/Drawer/index.js +0 -261
- package/Dropdown/index.js +0 -43
- package/Editor/index.js +0 -22975
- package/Empty/index.js +0 -76
- package/ExtendedInput/index.js +0 -590
- package/Form/index.js +0 -85
- package/FormContainer/index.js +0 -189
- package/FormableCheckbox/index.js +0 -24
- package/FormableDatePicker/index.js +0 -43
- package/FormableDropdown/index.js +0 -50
- package/FormableEditor/index.js +0 -26
- package/FormableHOC-85f89a81.js +0 -83
- package/FormableMultiSelectDropdown/index.js +0 -50
- package/FormableNumberInput/index.js +0 -34
- package/FormableRadio/index.js +0 -22
- package/FormableSwitcher/index.js +0 -22
- package/FormableTextInput/index.js +0 -34
- package/FormableUploader/index.js +0 -44
- package/Grid/index.js +0 -167
- package/HelperText/index.js +0 -86
- package/Holder/index.js +0 -261
- package/Icon/index.js +0 -62
- package/Image/index.js +0 -45
- package/ImagePreview/index.js +0 -217
- package/Info/index.js +0 -41
- package/InfoOutline-dd2e89d9.js +0 -29
- package/InteractiveWidget/index.js +0 -78
- package/KeyValue/index.js +0 -22
- package/Label/index.js +0 -48
- package/LinkButton/index.js +0 -34
- package/Loader/index.js +0 -23
- package/Menu/index.js +0 -281
- package/MobileNavigation/index.js +0 -94
- package/MobilePopup/index.js +0 -182
- package/Modal/index.js +0 -251
- package/ModuleTitle/index.js +0 -141
- package/NavigationMenu/index.js +0 -222
- package/Notification/index.js +0 -120
- package/Option/index.js +0 -184
- package/Overlay/index.js +0 -187
- package/Overspread/index.js +0 -291
- package/Pagination/index.js +0 -261
- package/Paper/index.js +0 -96
- package/Pill/index.js +0 -67
- package/Popover/index.js +0 -725
- package/PopoverV2/index.js +0 -19
- package/Portal/index.js +0 -58
- package/Products/index.js +0 -115
- package/Profile/index.js +0 -589
- package/Progress/index.js +0 -200
- package/QRCode/index.js +0 -814
- package/Radio/index.js +0 -151
- package/RadioGroup/index.js +0 -104
- package/Range/index.js +0 -191
- package/Rating/index.js +0 -174
- package/RichEditor/index.js +0 -13
- package/RichEditor-78c2617e.js +0 -228
- package/Scrollbar/index.js +0 -1585
- package/Search/index.js +0 -75
- package/SearchWithDropdown/index.js +0 -140
- package/Section/index.js +0 -61
- package/SkeletonLoader/index.js +0 -81
- package/Slider/index.js +0 -261
- package/Status/index.js +0 -97
- package/Steps/index.js +0 -314
- package/SuggestionList/index.js +0 -385
- package/Switcher/index.js +0 -193
- package/Table/index.js +0 -57
- package/TableCompositions/index.js +0 -16995
- package/Tabs/index.js +0 -235
- package/Tag/index.js +0 -102
- package/TextLink/index.js +0 -20
- package/Textarea/index.js +0 -242
- package/Time/index.js +0 -62
- package/TimePicker/index.js +0 -575
- package/Timeline/index.js +0 -113
- package/Title/index.js +0 -65
- package/Toaster/index.js +0 -116
- package/Tooltip/index.js +0 -6
- package/TransferList/index.js +0 -493
- package/Uploader/index.js +0 -992
- package/ValidatableCheckbox/index.js +0 -123
- package/ValidatableDatePicker/index.js +0 -316
- package/ValidatableDropdown/index.js +0 -141
- package/ValidatableElements/index.js +0 -67
- package/ValidatableMultiSelectDropdown/index.js +0 -152
- package/ValidatableNumberInput/index.js +0 -204
- package/ValidatableRadio/index.js +0 -116
- package/ValidatableSwitcher/index.js +0 -93
- package/ValidatableTextInput/index.js +0 -167
- package/ValidatableTimeInput/index.js +0 -174
- package/ValidatableUploader/index.js +0 -98
- package/Widget/index.js +0 -225
- package/_commonjsHelpers-24198af3.js +0 -35
- package/_rollupPluginBabelHelpers-a83240e1.js +0 -11
- package/callAfterDelay-7272faca.js +0 -12
- package/checkTimeValidation-e56771be.js +0 -16
- package/checkboxRadioSwitcher-5b69d7bd.js +0 -4
- package/clsx.m-2bb6df4b.js +0 -3
- package/config-1053d64d.js +0 -20
- package/configs-00612ce0.js +0 -103
- package/configs.js +0 -111
- package/dateValidation-67caec66.js +0 -225
- package/debounce-4419bc2f.js +0 -17
- package/guid-8ddf77b3.js +0 -16
- package/hooks/useBodyScroll.js +0 -16
- package/hooks/useClick.js +0 -18
- package/hooks/useClickOutside.js +0 -25
- package/hooks/useDebounce.js +0 -28
- package/hooks/useDeviceType.js +0 -17
- package/hooks/useDidMount.js +0 -15
- package/hooks/useForceUpdate.js +0 -8
- package/hooks/useHover.js +0 -20
- package/hooks/useImgDownload.js +0 -18
- package/hooks/useKeyDown.js +0 -21
- package/hooks/useMount.js +0 -13
- package/hooks/useMutationObserver.js +0 -21
- package/hooks/usePrevious.js +0 -10
- package/hooks/useThrottle.js +0 -16
- package/hooks/useToggle.js +0 -11
- package/hooks/useUpdatableRef.js +0 -14
- package/hooks/useUpdate.js +0 -10
- package/hooks/useWidth.js +0 -16
- package/hooks/useWindowSize.js +0 -40
- package/index-122432cd.js +0 -270
- package/index-262edd7a.js +0 -77
- package/index-2f5aa51e.js +0 -6483
- package/index-370f9acd.js +0 -4
- package/index-45eafea6.js +0 -90
- package/index-480fd7d9.js +0 -10032
- package/index-5f37f281.js +0 -168
- package/index-73aaa093.js +0 -1940
- package/index.mobile.d.ts +0 -14
- package/lib/atoms/Avatar/index.d.ts +0 -1
- package/lib/atoms/Badge/Badge.d.ts +0 -36
- package/lib/atoms/Badge/index.d.ts +0 -1
- package/lib/atoms/BusyLoader/BusyLoader.d.ts +0 -32
- package/lib/atoms/BusyLoader/BusyLoaderHolderHOC.d.ts +0 -8
- package/lib/atoms/BusyLoader/index.d.ts +0 -1
- package/lib/atoms/Button/Button.d.ts +0 -70
- package/lib/atoms/Button/index.d.ts +0 -1
- package/lib/atoms/Divider/index.d.ts +0 -1
- package/lib/atoms/Empty/Empty.d.ts +0 -39
- package/lib/atoms/Empty/index.d.ts +0 -1
- package/lib/atoms/Empty/utils.d.ts +0 -9
- package/lib/atoms/HelperText/index.d.ts +0 -1
- package/lib/atoms/Image/Image.d.ts +0 -51
- package/lib/atoms/Image/index.d.ts +0 -1
- package/lib/atoms/ImagePreview/ImagePreview.d.ts +0 -56
- package/lib/atoms/ImagePreview/ImagePreviewHOC.d.ts +0 -4
- package/lib/atoms/ImagePreview/Magnifier.d.ts +0 -40
- package/lib/atoms/ImagePreview/index.d.ts +0 -1
- package/lib/atoms/Info/index.d.ts +0 -1
- package/lib/atoms/KeyValue/KeyValue.d.ts +0 -29
- package/lib/atoms/KeyValue/index.d.ts +0 -1
- package/lib/atoms/Label/index.d.ts +0 -1
- package/lib/atoms/LinkButton/LinkButton.d.ts +0 -46
- package/lib/atoms/LinkButton/index.d.ts +0 -1
- package/lib/atoms/Loader/index.d.ts +0 -1
- package/lib/atoms/Pill/index.d.ts +0 -1
- package/lib/atoms/Rating/DefaultSvg.d.ts +0 -3
- package/lib/atoms/Rating/Rating.d.ts +0 -49
- package/lib/atoms/Rating/index.d.ts +0 -1
- package/lib/atoms/TextLink/index.d.ts +0 -1
- package/lib/molecules/Copy/Copy.d.ts +0 -38
- package/lib/molecules/Copy/index.d.ts +0 -1
- package/lib/molecules/InteractiveWidget/InteractiveWidget.d.ts +0 -70
- package/lib/molecules/InteractiveWidget/InteractiveWidgetIcon.d.ts +0 -8
- package/lib/molecules/InteractiveWidget/index.d.ts +0 -1
- package/lib/molecules/Tooltip/index.d.ts +0 -1
- package/lib/providers/GeneUIProvider/GeneUIProvider.d.ts +0 -30
- package/lib/providers/GeneUIProvider/index.d.ts +0 -1
- package/localization-4ba17032.js +0 -46
- package/objectWithoutPropertiesLoose-e1596bdb.js +0 -62
- package/rangeAndSlider-693a3d41.js +0 -8684
- package/react-beautiful-dnd.esm-b637016a.js +0 -10116
- package/react-lifecycles-compat.es-6e1f3768.js +0 -158
- package/redux-e591c1b8.js +0 -536
- package/tokens-8ab1179c.js +0 -6
- package/tslib.es6-f211516f.js +0 -35
- package/useEllipsisDetection-c1c9ad94.js +0 -38
package/PopoverV2/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import '../_rollupPluginBabelHelpers-a83240e1.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
export { P as default } from '../index-73aaa093.js';
|
|
4
|
-
import '../index-122432cd.js';
|
|
5
|
-
import '../index-031ff73c.js';
|
|
6
|
-
import 'prop-types';
|
|
7
|
-
import '../index-5f37f281.js';
|
|
8
|
-
import '../hooks/useDeviceType.js';
|
|
9
|
-
import '../hooks/useClickOutside.js';
|
|
10
|
-
import '../configs-00612ce0.js';
|
|
11
|
-
import '../Scrollbar/index.js';
|
|
12
|
-
import '../GeneUIProvider/index.js';
|
|
13
|
-
import '../debounce-4419bc2f.js';
|
|
14
|
-
import '../_commonjsHelpers-24198af3.js';
|
|
15
|
-
import 'react-dom';
|
|
16
|
-
import '../style-inject.es-746bb8ed.js';
|
|
17
|
-
import '../dateValidation-67caec66.js';
|
|
18
|
-
import '../hooks/useWindowSize.js';
|
|
19
|
-
import '../hooks/useDebounce.js';
|
package/Portal/index.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { memo, useState, useContext, useEffect } from 'react';
|
|
2
|
-
import ReactDOM__default from 'react-dom';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { GeneUIDesignSystemContext } from '../GeneUIProvider/index.js';
|
|
5
|
-
import '../style-inject.es-746bb8ed.js';
|
|
6
|
-
|
|
7
|
-
function Portal(_ref) {
|
|
8
|
-
let {
|
|
9
|
-
isOpen,
|
|
10
|
-
children,
|
|
11
|
-
className,
|
|
12
|
-
container: propsContainer
|
|
13
|
-
} = _ref;
|
|
14
|
-
const [container, setContainer] = useState(propsContainer);
|
|
15
|
-
const {
|
|
16
|
-
geneUIProviderRef
|
|
17
|
-
} = useContext(GeneUIDesignSystemContext);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (!propsContainer) {
|
|
20
|
-
var _geneUIProviderRef$cu;
|
|
21
|
-
const div = document.createElement('div');
|
|
22
|
-
if (className) {
|
|
23
|
-
div.className = className;
|
|
24
|
-
}
|
|
25
|
-
setContainer(div);
|
|
26
|
-
(_geneUIProviderRef$cu = geneUIProviderRef.current) === null || _geneUIProviderRef$cu === void 0 ? void 0 : _geneUIProviderRef$cu.appendChild(div);
|
|
27
|
-
return () => {
|
|
28
|
-
var _geneUIProviderRef$cu2;
|
|
29
|
-
(_geneUIProviderRef$cu2 = geneUIProviderRef.current) === null || _geneUIProviderRef$cu2 === void 0 ? void 0 : _geneUIProviderRef$cu2.removeChild(div);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}, [className, propsContainer, geneUIProviderRef.current]);
|
|
33
|
-
return isOpen && container ? /*#__PURE__*/ReactDOM__default.createPortal(children, container) : null;
|
|
34
|
-
}
|
|
35
|
-
Portal.propTypes = {
|
|
36
|
-
/**
|
|
37
|
-
* Specify Portal visibility
|
|
38
|
-
*/
|
|
39
|
-
isOpen: PropTypes.bool,
|
|
40
|
-
/**
|
|
41
|
-
* A DOM element for Portal to be appended. When not specified the Portal will create a "div" element and append in body
|
|
42
|
-
*/
|
|
43
|
-
container: PropTypes.instanceOf(Element),
|
|
44
|
-
/**
|
|
45
|
-
* Additional className
|
|
46
|
-
*/
|
|
47
|
-
className: PropTypes.string,
|
|
48
|
-
/**
|
|
49
|
-
* Anything passed to the Portal as child will be rendered in "container". Any valid React node
|
|
50
|
-
*/
|
|
51
|
-
children: PropTypes.node
|
|
52
|
-
};
|
|
53
|
-
Portal.defaultProps = {
|
|
54
|
-
isOpen: false
|
|
55
|
-
};
|
|
56
|
-
var Portal$1 = /*#__PURE__*/memo(Portal);
|
|
57
|
-
|
|
58
|
-
export { Portal$1 as default };
|
package/Products/index.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from '../_rollupPluginBabelHelpers-a83240e1.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { c as classnames } from '../index-031ff73c.js';
|
|
5
|
-
import { s as screenTypes } from '../configs-00612ce0.js';
|
|
6
|
-
import '../dateValidation-67caec66.js';
|
|
7
|
-
import 'react-dom';
|
|
8
|
-
import useDeviceType from '../hooks/useDeviceType.js';
|
|
9
|
-
import Icon from '../Icon/index.js';
|
|
10
|
-
import Divider from '../Divider/index.js';
|
|
11
|
-
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
12
|
-
import '../_commonjsHelpers-24198af3.js';
|
|
13
|
-
import '../hooks/useWindowSize.js';
|
|
14
|
-
import '../hooks/useDebounce.js';
|
|
15
|
-
|
|
16
|
-
var css_248z = "[data-gene-ui-version=\"2.16.3\"] .products-switcher-holder{display:flex;flex-wrap:wrap;justify-content:flex-start;padding:.5rem 2rem;text-align:center;width:100%}[data-gene-ui-version=\"2.16.3\"] .products-switcher-holder .divider{margin-left:auto;margin-right:auto}[data-gene-ui-version=\"2.16.3\"] .product-item{border:1px solid #0000;border-radius:1rem;cursor:pointer;display:flex;flex-wrap:wrap;font:600 1.2rem/1.42 var(--font-family);justify-content:center;margin:.5rem 0;padding:1rem .5rem;text-align:center;width:33.3333333333%}[data-gene-ui-version=\"2.16.3\"] .product-item .icon{align-items:center;background:rgba(var(--background-sc-rgb),.05);border-radius:100%;display:flex;height:5rem;justify-content:center;margin:0 0 .5rem;transition:color .2s,background .2s;width:5rem}[data-gene-ui-version=\"2.16.3\"] .product-item p{width:100%}@media (hover:hover){[data-gene-ui-version=\"2.16.3\"] .product-item:hover .icon{background:var(--hero);color:var(--hero-sc)}}[data-gene-ui-version=\"2.16.3\"] .product-item.active .icon{background:var(--hero);color:var(--hero-sc)}[data-gene-ui-version=\"2.16.3\"] .product-item.active{pointer-events:none}@media (hover:hover){[data-gene-ui-version=\"2.16.3\"] .product-item:hover{border-color:rgba(var(--background-sc-rgb),.11)}}";
|
|
17
|
-
styleInject(css_248z);
|
|
18
|
-
|
|
19
|
-
function Products(_ref) {
|
|
20
|
-
let {
|
|
21
|
-
list,
|
|
22
|
-
activeSlug,
|
|
23
|
-
onChange,
|
|
24
|
-
favorites,
|
|
25
|
-
className,
|
|
26
|
-
screenType,
|
|
27
|
-
...restProps
|
|
28
|
-
} = _ref;
|
|
29
|
-
const {
|
|
30
|
-
isMobile
|
|
31
|
-
} = useDeviceType(screenType);
|
|
32
|
-
const hasFavorites = favorites.length;
|
|
33
|
-
const handleClick = event => {
|
|
34
|
-
const {
|
|
35
|
-
index
|
|
36
|
-
} = event.currentTarget.dataset;
|
|
37
|
-
const item = list[index];
|
|
38
|
-
onChange && onChange(item);
|
|
39
|
-
};
|
|
40
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
41
|
-
className: classnames('products-switcher-holder', className)
|
|
42
|
-
}, restProps), list.map((item, index) => /*#__PURE__*/React__default.createElement("button", {
|
|
43
|
-
key: item.slug,
|
|
44
|
-
className: classnames('product-item', {
|
|
45
|
-
active: item.slug === activeSlug
|
|
46
|
-
}),
|
|
47
|
-
"data-index": index,
|
|
48
|
-
onClick: handleClick,
|
|
49
|
-
title: item.title
|
|
50
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
51
|
-
type: item.icon
|
|
52
|
-
}), /*#__PURE__*/React__default.createElement("p", {
|
|
53
|
-
className: "ellipsis-text"
|
|
54
|
-
}, item.title))), hasFavorites > 0 && /*#__PURE__*/React__default.createElement(Divider, {
|
|
55
|
-
type: "horizontal",
|
|
56
|
-
size: isMobile ? '76%' : '100%'
|
|
57
|
-
}), hasFavorites > 0 && favorites.map((item, index) => /*#__PURE__*/React__default.createElement("button", {
|
|
58
|
-
key: item.slug,
|
|
59
|
-
className: classnames('product-item', {
|
|
60
|
-
active: item.slug === activeSlug
|
|
61
|
-
}),
|
|
62
|
-
"data-index": index,
|
|
63
|
-
onClick: handleClick,
|
|
64
|
-
title: item.title
|
|
65
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
66
|
-
type: item.icon
|
|
67
|
-
}), /*#__PURE__*/React__default.createElement("p", {
|
|
68
|
-
className: "ellipsis-text"
|
|
69
|
-
}, item.title))));
|
|
70
|
-
}
|
|
71
|
-
const propShape = PropTypes.arrayOf(PropTypes.shape({
|
|
72
|
-
/**
|
|
73
|
-
* Product title
|
|
74
|
-
*/
|
|
75
|
-
title: PropTypes.string,
|
|
76
|
-
/**
|
|
77
|
-
* Product slug
|
|
78
|
-
*/
|
|
79
|
-
slug: PropTypes.string,
|
|
80
|
-
/**
|
|
81
|
-
* Product icon
|
|
82
|
-
*/
|
|
83
|
-
icon: PropTypes.string
|
|
84
|
-
}));
|
|
85
|
-
Products.propTypes = {
|
|
86
|
-
/**
|
|
87
|
-
* Array of products data
|
|
88
|
-
*/
|
|
89
|
-
list: propShape.isRequired,
|
|
90
|
-
/**
|
|
91
|
-
* Array of favorite products data
|
|
92
|
-
*/
|
|
93
|
-
favorites: propShape,
|
|
94
|
-
/**
|
|
95
|
-
* Selected item
|
|
96
|
-
*/
|
|
97
|
-
activeSlug: PropTypes.string,
|
|
98
|
-
/**
|
|
99
|
-
* CSS class name for element
|
|
100
|
-
*/
|
|
101
|
-
className: PropTypes.string,
|
|
102
|
-
/**
|
|
103
|
-
* Callback fires when click on product
|
|
104
|
-
*/
|
|
105
|
-
onClick: PropTypes.func,
|
|
106
|
-
/**
|
|
107
|
-
* Pass screenType to control appearance, weather it should be mobile version etc.
|
|
108
|
-
*/
|
|
109
|
-
screenType: PropTypes.oneOf(screenTypes)
|
|
110
|
-
};
|
|
111
|
-
Products.defaultProps = {
|
|
112
|
-
favorites: []
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export { Products as default };
|