@bonlineza/luxity-lib 2.34.2 → 2.34.4
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/Accordion.js +116 -76
- package/AddInterest.js +768 -434
- package/BrandSelector.js +336 -176
- package/Checkbox.js +101 -68
- package/CheckboxButton.js +124 -79
- package/CommunicationPreferenceOptionsRenderer.js +125 -107
- package/CommunicationPreferenceSection.js +134 -114
- package/CommunicationPreferences.js +339 -443
- package/CountryCodeSelect.js +10 -7
- package/CurrencyInputFormatter.js +56 -29
- package/CurrencySelect.js +49 -23
- package/GALink.js +16 -6
- package/GenderSelector.js +142 -88
- package/GraphQLDropdownSelector.js +937 -503
- package/GraphQLMultiSelector.js +274 -141
- package/IconHeader.js +25 -11
- package/IconWrapper.js +7 -3
- package/InterestCatSelector.js +74 -34
- package/InterestItem.js +187 -103
- package/Interests.js +890 -485
- package/InterestsSubheading.js +10 -5
- package/InvertedTextButton.js +63 -27
- package/LuxityAppSideNav.js +21 -18
- package/LuxityDesktopHeader.js +246 -189
- package/LuxityFooter.js +276 -374
- package/LuxityGraphQLDropdownSelector.js +969 -519
- package/LuxityGraphQLMultiselector.js +321 -167
- package/LuxityMobileHeader.js +534 -219
- package/LuxityPageReady.js +136 -74
- package/LuxitySideNav.js +402 -137
- package/MaterialSelector.js +976 -525
- package/ModelSelector.js +976 -525
- package/NotificationDropDown.js +209 -111
- package/Notify.js +1 -0
- package/OutlinePrimaryButton.js +58 -26
- package/PriceRangeSelector.js +281 -168
- package/PrimaryButton.js +58 -26
- package/RadioButtons.js +140 -114
- package/RangeSlider.js +242 -152
- package/RareStepFooter.js +41 -27
- package/RareStepHeader.js +190 -139
- package/ReactSelectWrapper.js +1 -0
- package/SecondaryButton.js +58 -26
- package/ShoeSizeRangeSelector.js +260 -162
- package/ShoeSizeSelector.js +263 -158
- package/SimpleErrorBoundary.js +106 -59
- package/StyleSelector.js +336 -176
- package/TextButton.js +58 -26
- package/Tooltip.js +39 -17
- package/Tracking.js +1 -0
- package/WrapperButton.js +43 -20
- package/build/bundle.css +1 -1
- package/build/bundle.js +1701 -1254
- package/package.json +1 -1
- package/svg/Accessories.js +13 -6
- package/svg/Account.js +13 -6
- package/svg/Add.js +13 -6
- package/svg/ArrowRight.js +13 -6
- package/svg/Bags.js +13 -6
- package/svg/BurgerMenu.js +13 -6
- package/svg/Calendar.js +13 -6
- package/svg/CalendarCircled.js +13 -6
- package/svg/CheckCircled.js +13 -6
- package/svg/Close.js +13 -6
- package/svg/Clothing.js +13 -6
- package/svg/Dot.js +13 -6
- package/svg/Edit.js +13 -6
- package/svg/Eye.js +13 -6
- package/svg/FileAttach.js +13 -6
- package/svg/FileAttachCircled.js +13 -6
- package/svg/LightBulb.js +13 -6
- package/svg/Logo.js +13 -6
- package/svg/LuxityMenu.js +13 -6
- package/svg/Minus.js +13 -6
- package/svg/MobileAvatar.js +13 -6
- package/svg/MyOrder.js +13 -6
- package/svg/MyPayment.js +13 -6
- package/svg/MyProfile.js +14 -8
- package/svg/MySale.js +13 -6
- package/svg/Notification.js +13 -6
- package/svg/PointerDown.js +13 -6
- package/svg/Search.js +13 -6
- package/svg/Shoes.js +13 -6
- package/svg/SvgWrapper.js +7 -3
- package/svg/Trash.js +13 -6
- package/svg/Watches.js +13 -6
package/InterestsSubheading.js
CHANGED
|
@@ -7,10 +7,14 @@
|
|
|
7
7
|
React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
|
|
8
8
|
styled = styled && Object.prototype.hasOwnProperty.call(styled, 'default') ? styled['default'] : styled;
|
|
9
9
|
|
|
10
|
-
function _taggedTemplateLiteral(
|
|
11
|
-
|
|
10
|
+
function _taggedTemplateLiteral(strings, raw) {
|
|
11
|
+
if (!raw) {
|
|
12
|
+
raw = strings.slice(0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
12
16
|
raw: {
|
|
13
|
-
value: Object.freeze(
|
|
17
|
+
value: Object.freeze(raw)
|
|
14
18
|
}
|
|
15
19
|
}));
|
|
16
20
|
}
|
|
@@ -28,10 +32,11 @@
|
|
|
28
32
|
}, function (props) {
|
|
29
33
|
return props.theme.marginPaddings[3];
|
|
30
34
|
});
|
|
35
|
+
|
|
31
36
|
var InterestsSubheading = function InterestsSubheading(_ref) {
|
|
32
37
|
var title = _ref.title,
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
children = _ref.children,
|
|
39
|
+
className = _ref.className;
|
|
35
40
|
return /*#__PURE__*/React.createElement(InterestsSubheadingContainer, {
|
|
36
41
|
className: className
|
|
37
42
|
}, /*#__PURE__*/React.createElement(Title, null, title), /*#__PURE__*/React.createElement("div", null, children));
|
package/InvertedTextButton.js
CHANGED
|
@@ -8,38 +8,66 @@
|
|
|
8
8
|
var styled__default = 'default' in styled ? styled['default'] : styled;
|
|
9
9
|
|
|
10
10
|
function _extends() {
|
|
11
|
-
|
|
12
|
-
for (var
|
|
13
|
-
var
|
|
14
|
-
|
|
11
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
12
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
+
var source = arguments[i];
|
|
14
|
+
|
|
15
|
+
for (var key in source) {
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
+
target[key] = source[key];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
|
|
22
|
+
return target;
|
|
23
|
+
};
|
|
24
|
+
return _extends.apply(this, arguments);
|
|
18
25
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
28
|
+
if (source == null) return {};
|
|
29
|
+
var target = {};
|
|
30
|
+
var sourceKeys = Object.keys(source);
|
|
31
|
+
var key, i;
|
|
32
|
+
|
|
33
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
34
|
+
key = sourceKeys[i];
|
|
35
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36
|
+
target[key] = source[key];
|
|
27
37
|
}
|
|
28
|
-
|
|
38
|
+
|
|
39
|
+
return target;
|
|
29
40
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
|
|
42
|
+
function _objectWithoutProperties(source, excluded) {
|
|
43
|
+
if (source == null) return {};
|
|
44
|
+
|
|
45
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
46
|
+
|
|
47
|
+
var key, i;
|
|
48
|
+
|
|
49
|
+
if (Object.getOwnPropertySymbols) {
|
|
50
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
51
|
+
|
|
52
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
53
|
+
key = sourceSymbolKeys[i];
|
|
54
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
55
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
56
|
+
target[key] = source[key];
|
|
57
|
+
}
|
|
36
58
|
}
|
|
37
|
-
|
|
59
|
+
|
|
60
|
+
return target;
|
|
38
61
|
}
|
|
39
|
-
|
|
40
|
-
|
|
62
|
+
|
|
63
|
+
function _taggedTemplateLiteral(strings, raw) {
|
|
64
|
+
if (!raw) {
|
|
65
|
+
raw = strings.slice(0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
41
69
|
raw: {
|
|
42
|
-
value: Object.freeze(
|
|
70
|
+
value: Object.freeze(raw)
|
|
43
71
|
}
|
|
44
72
|
}));
|
|
45
73
|
}
|
|
@@ -113,6 +141,7 @@
|
|
|
113
141
|
});
|
|
114
142
|
|
|
115
143
|
var _excluded = ["children"];
|
|
144
|
+
|
|
116
145
|
var _templateObject$1;
|
|
117
146
|
var Button = styled__default.button(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n ", ";\n background-color: transparent;\n color: ", ";\n &:hover {\n color: ", ";\n }\n &:disabled {\n ", ";\n color: ", ";\n }\n"])), baseButtonStyle, function (props) {
|
|
118
147
|
return props.theme.colors.base;
|
|
@@ -121,17 +150,21 @@
|
|
|
121
150
|
}, disabledButtonStyle, function (props) {
|
|
122
151
|
return props.theme.colors.base;
|
|
123
152
|
});
|
|
153
|
+
|
|
124
154
|
var TextButton = function TextButton(_ref) {
|
|
125
155
|
var children = _ref.children,
|
|
126
|
-
|
|
156
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
157
|
+
|
|
127
158
|
return /*#__PURE__*/React__default.createElement(Button, restProps, children);
|
|
128
159
|
};
|
|
160
|
+
|
|
129
161
|
TextButton.defaultProps = {
|
|
130
162
|
type: 'button'
|
|
131
163
|
};
|
|
132
164
|
var TextButton$1 = themed(TextButton);
|
|
133
165
|
|
|
134
166
|
var _excluded$1 = ["children"];
|
|
167
|
+
|
|
135
168
|
var _templateObject$2;
|
|
136
169
|
var Button$1 = styled__default(TextButton$1)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n color: ", ";\n background-color: ", ";\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n color: ", ";\n }\n"])), function (props) {
|
|
137
170
|
return props.theme.colors.ntrlMin;
|
|
@@ -146,11 +179,14 @@
|
|
|
146
179
|
}, function (props) {
|
|
147
180
|
return props.theme.colors.primary;
|
|
148
181
|
});
|
|
182
|
+
|
|
149
183
|
var InvertedTextButton = function InvertedTextButton(_ref) {
|
|
150
184
|
var children = _ref.children,
|
|
151
|
-
|
|
185
|
+
restProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
186
|
+
|
|
152
187
|
return /*#__PURE__*/React__default.createElement(Button$1, restProps, children);
|
|
153
188
|
};
|
|
189
|
+
|
|
154
190
|
var index = themed(InvertedTextButton);
|
|
155
191
|
|
|
156
192
|
return index;
|
package/LuxityAppSideNav.js
CHANGED
|
@@ -8,30 +8,33 @@
|
|
|
8
8
|
|
|
9
9
|
var LuxityAppSideNav = function LuxityAppSideNav(_ref) {
|
|
10
10
|
var closeIcon = _ref.closeIcon,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
accountIcon = _ref.accountIcon,
|
|
12
|
+
orderIcon = _ref.orderIcon,
|
|
13
|
+
saleIcon = _ref.saleIcon,
|
|
14
|
+
onDashboardClick = _ref.onDashboardClick,
|
|
15
|
+
onLogoutClick = _ref.onLogoutClick,
|
|
16
|
+
bugReportLink = _ref.bugReportLink,
|
|
17
|
+
onLuxityShopClick = _ref.onLuxityShopClick,
|
|
18
|
+
onInterestClick = _ref.onInterestClick,
|
|
19
|
+
onAddressClick = _ref.onAddressClick,
|
|
20
|
+
onCouponsClick = _ref.onCouponsClick,
|
|
21
|
+
onEditProfileClick = _ref.onEditProfileClick,
|
|
22
|
+
onCurrentOrdersClick = _ref.onCurrentOrdersClick,
|
|
23
|
+
onPastOrdersClick = _ref.onPastOrdersClick,
|
|
24
|
+
onSubmissionsClick = _ref.onSubmissionsClick,
|
|
25
|
+
onPastSalesClick = _ref.onPastSalesClick,
|
|
26
|
+
onPaidOutClick = _ref.onPaidOutClick,
|
|
27
|
+
showSideNav = _ref.showSideNav,
|
|
28
|
+
onMenuClick = _ref.onMenuClick;
|
|
29
|
+
|
|
29
30
|
var onCloseSideNav = function onCloseSideNav(e) {
|
|
30
31
|
onMenuClick();
|
|
32
|
+
|
|
31
33
|
if (e.key === 'Enter') {
|
|
32
34
|
e.preventDefault();
|
|
33
35
|
}
|
|
34
36
|
};
|
|
37
|
+
|
|
35
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
36
39
|
className: "side-nav"
|
|
37
40
|
}, /*#__PURE__*/React.createElement("div", {
|