@bonlineza/luxity-lib 2.39.6 → 2.39.7
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 +352 -342
- package/AddInterest.js +3141 -3135
- package/AddProductInterest.js +7584 -1011
- package/BrandSelector.js +861 -854
- package/Checkbox.js +250 -240
- package/CheckboxButton.js +236 -229
- package/CommunicationPreferenceOptionsRenderer.js +568 -560
- package/CommunicationPreferenceSection.js +659 -651
- package/CommunicationPreferences.js +2402 -2394
- package/ConditionSelector.js +859 -852
- package/CountryCodeSelect.js +6650 -79
- package/CurrencyInputFormatter.js +96 -86
- package/CurrencySelect.js +227 -219
- package/DropdownSelector.js +6820 -211
- package/GALink.js +51 -43
- package/GenderSelector.js +362 -355
- package/GraphQLDropdownSelector.js +11878 -5308
- package/GraphQLMultiSelector.js +601 -593
- package/IconHeader.js +126 -118
- package/IconWrapper.js +25 -17
- package/InterestCatSelector.js +432 -424
- package/InterestItem.js +470 -462
- package/Interests.js +11286 -4716
- package/InterestsSubheading.js +41 -33
- package/InvertedTextButton.js +175 -167
- package/LuxityAppSideNav.js +189 -181
- package/LuxityDesktopHeader.js +1363 -1355
- package/LuxityFooter.js +2236 -2228
- package/LuxityGraphQLDropdownSelector.js +11963 -5393
- package/LuxityGraphQLMultiselector.js +785 -778
- package/LuxityMobileHeader.js +1794 -1786
- package/LuxityPageReady.js +209 -199
- package/LuxityProductInterestItem.js +367 -359
- package/LuxitySideNav.js +673 -665
- package/MaterialSelector.js +11993 -5423
- package/ModelSelector.js +11993 -5423
- package/NotificationDropDown.js +7029 -459
- package/Notify.js +32 -20
- package/OutlinePrimaryButton.js +142 -134
- package/PriceRangeSelector.js +1270 -1264
- package/PrimaryButton.js +137 -129
- package/RadioButtons.js +318 -308
- package/RangeSlider.js +1039 -1033
- package/RareStepFooter.js +264 -257
- package/RareStepHeader.js +808 -801
- package/ReactSelectWrapper.js +6604 -33
- package/SecondaryButton.js +152 -144
- package/ShoeSizeRangeSelector.js +1153 -1147
- package/ShoeSizeSelector.js +1154 -1146
- package/SimpleErrorBoundary.js +138 -130
- package/StyleSelector.js +861 -854
- package/TextButton.js +143 -135
- package/Tooltip.js +184 -176
- package/Tracking.js +25 -15
- package/WrapperButton.js +58 -50
- package/build/bundle.css +1 -1
- package/build/bundle.js +17236 -10632
- package/build/constants.js +45 -32
- package/package.json +2 -2
- package/svg/Accessories.js +42 -34
- package/svg/Account.js +38 -30
- package/svg/Add.js +39 -31
- package/svg/ArrowRight.js +36 -28
- package/svg/Bags.js +48 -40
- package/svg/BurgerMenu.js +32 -24
- package/svg/Calendar.js +106 -98
- package/svg/CalendarCircled.js +108 -100
- package/svg/CheckCircled.js +40 -32
- package/svg/Close.js +37 -29
- package/svg/Clothing.js +44 -36
- package/svg/Dot.js +40 -32
- package/svg/Edit.js +35 -27
- package/svg/Eye.js +36 -28
- package/svg/FileAttach.js +36 -28
- package/svg/FileAttachCircled.js +38 -30
- package/svg/Jewellery.js +57 -49
- package/svg/LightBulb.js +66 -58
- package/svg/Logo.js +140 -132
- package/svg/LuxityMenu.js +36 -28
- package/svg/Minus.js +37 -29
- package/svg/MobileAvatar.js +36 -28
- package/svg/MyOrder.js +44 -36
- package/svg/MyPayment.js +44 -36
- package/svg/MyProfile.js +52 -44
- package/svg/MySale.js +39 -31
- package/svg/Notification.js +38 -30
- package/svg/PointerDown.js +36 -28
- package/svg/Search.js +35 -27
- package/svg/Shoes.js +45 -37
- package/svg/SvgWrapper.js +21 -13
- package/svg/Trash.js +40 -32
- package/svg/Watches.js +55 -47
package/TextButton.js
CHANGED
|
@@ -1,160 +1,168 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['react', 'styled-components'], factory) :
|
|
4
|
+
(global = global || self, global.TextButton = factory(global.React, global.styled));
|
|
5
|
+
}(this, (function (React, styled) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var React__default = 'default' in React ? React['default'] : React;
|
|
8
|
+
var styled__default = 'default' in styled ? styled['default'] : styled;
|
|
9
|
+
|
|
10
|
+
function _extends() {
|
|
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
|
+
}
|
|
12
19
|
}
|
|
13
20
|
}
|
|
21
|
+
|
|
22
|
+
return target;
|
|
23
|
+
};
|
|
24
|
+
return _extends.apply(this, arguments);
|
|
25
|
+
}
|
|
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];
|
|
14
37
|
}
|
|
15
38
|
|
|
16
39
|
return target;
|
|
17
|
-
};
|
|
18
|
-
return _extends.apply(this, arguments);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
22
|
-
if (source == null) return {};
|
|
23
|
-
var target = {};
|
|
24
|
-
var sourceKeys = Object.keys(source);
|
|
25
|
-
var key, i;
|
|
26
|
-
|
|
27
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
28
|
-
key = sourceKeys[i];
|
|
29
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
30
|
-
target[key] = source[key];
|
|
31
40
|
}
|
|
32
41
|
|
|
33
|
-
|
|
34
|
-
}
|
|
42
|
+
function _objectWithoutProperties(source, excluded) {
|
|
43
|
+
if (source == null) return {};
|
|
35
44
|
|
|
36
|
-
|
|
37
|
-
if (source == null) return {};
|
|
45
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
var key, i;
|
|
40
48
|
|
|
41
|
-
|
|
49
|
+
if (Object.getOwnPropertySymbols) {
|
|
50
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
42
51
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
50
|
-
target[key] = source[key];
|
|
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
|
+
}
|
|
51
58
|
}
|
|
59
|
+
|
|
60
|
+
return target;
|
|
52
61
|
}
|
|
53
62
|
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
function _taggedTemplateLiteral(strings, raw) {
|
|
64
|
+
if (!raw) {
|
|
65
|
+
raw = strings.slice(0);
|
|
66
|
+
}
|
|
56
67
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
69
|
+
raw: {
|
|
70
|
+
value: Object.freeze(raw)
|
|
71
|
+
}
|
|
72
|
+
}));
|
|
60
73
|
}
|
|
61
74
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
75
|
+
var _templateObject, _templateObject2;
|
|
76
|
+
var disabledButtonStyle = styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: not-allowed;\n opacity: 0.4;\n"])));
|
|
77
|
+
var baseButtonStyle = styled.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1rem 2rem;\n cursor: pointer;\n letter-spacing: 1.3px;\n border-style: none;\n text-transform: uppercase;\n font-size: 12px;\n color: #fff;\n transition: 0.2s ease-in-out;\n outline: none;\n"])));
|
|
78
|
+
|
|
79
|
+
var theme = {
|
|
80
|
+
breakpoints: ['40em', '52em', '64em'],
|
|
81
|
+
space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
|
|
82
|
+
fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
|
|
83
|
+
marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
|
|
84
|
+
letterSpacings: ['-0.5px', '0px', '+0.5px'],
|
|
85
|
+
radii: ['0px', '2px', '4px', '8px'],
|
|
86
|
+
borderRadius: '6px',
|
|
87
|
+
colors: {
|
|
88
|
+
primary: '#000',
|
|
89
|
+
base: '#4e4949',
|
|
90
|
+
baseLt: '#817c7c',
|
|
91
|
+
borderColor: '#d8d8d8',
|
|
92
|
+
ntrlMin: '#fff',
|
|
93
|
+
ntrlMinTen: '#e6e6e6',
|
|
94
|
+
gray: '#efefef',
|
|
95
|
+
darkerGray: '#454141'
|
|
96
|
+
},
|
|
97
|
+
rareStepColors: {
|
|
98
|
+
primary: '#202b58',
|
|
99
|
+
secondary: '#ef5c2d',
|
|
100
|
+
ntrlMin: '#ffffff',
|
|
101
|
+
ntrl40: '#f4f4f4',
|
|
102
|
+
ntrl50: '#808080',
|
|
103
|
+
ntrl60: '#e8e8e8',
|
|
104
|
+
ntrl70: '#252525',
|
|
105
|
+
ntrlMax: '#000000'
|
|
106
|
+
},
|
|
107
|
+
rareStepFontWeights: {
|
|
108
|
+
normal: 400,
|
|
109
|
+
medium: 500,
|
|
110
|
+
semiBold: 600,
|
|
111
|
+
bold: 700
|
|
112
|
+
},
|
|
113
|
+
rareStepFontSize: {
|
|
114
|
+
h1: '36px',
|
|
115
|
+
h2: '30px',
|
|
116
|
+
h3: '24px',
|
|
117
|
+
h4: '20px',
|
|
118
|
+
h5: '16px',
|
|
119
|
+
h6: '14px',
|
|
120
|
+
footerTitle: '16px'
|
|
121
|
+
},
|
|
122
|
+
rareStepPageSizes: {
|
|
123
|
+
mobile: '500px',
|
|
124
|
+
tablet: '768px',
|
|
125
|
+
desktop: '992px',
|
|
126
|
+
screenl: '1280px',
|
|
127
|
+
screenxl: '1680px',
|
|
128
|
+
screenxxl: '1920px',
|
|
129
|
+
container: '1600px'
|
|
65
130
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
|
|
77
|
-
marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
|
|
78
|
-
letterSpacings: ['-0.5px', '0px', '+0.5px'],
|
|
79
|
-
radii: ['0px', '2px', '4px', '8px'],
|
|
80
|
-
borderRadius: '6px',
|
|
81
|
-
colors: {
|
|
82
|
-
primary: '#000',
|
|
83
|
-
base: '#4e4949',
|
|
84
|
-
baseLt: '#817c7c',
|
|
85
|
-
borderColor: '#d8d8d8',
|
|
86
|
-
ntrlMin: '#fff',
|
|
87
|
-
ntrlMinTen: '#e6e6e6',
|
|
88
|
-
gray: '#efefef',
|
|
89
|
-
darkerGray: '#454141'
|
|
90
|
-
},
|
|
91
|
-
rareStepColors: {
|
|
92
|
-
primary: '#202b58',
|
|
93
|
-
secondary: '#ef5c2d',
|
|
94
|
-
ntrlMin: '#ffffff',
|
|
95
|
-
ntrl40: '#f4f4f4',
|
|
96
|
-
ntrl50: '#808080',
|
|
97
|
-
ntrl60: '#e8e8e8',
|
|
98
|
-
ntrl70: '#252525',
|
|
99
|
-
ntrlMax: '#000000'
|
|
100
|
-
},
|
|
101
|
-
rareStepFontWeights: {
|
|
102
|
-
normal: 400,
|
|
103
|
-
medium: 500,
|
|
104
|
-
semiBold: 600,
|
|
105
|
-
bold: 700
|
|
106
|
-
},
|
|
107
|
-
rareStepFontSize: {
|
|
108
|
-
h1: '36px',
|
|
109
|
-
h2: '30px',
|
|
110
|
-
h3: '24px',
|
|
111
|
-
h4: '20px',
|
|
112
|
-
h5: '16px',
|
|
113
|
-
h6: '14px',
|
|
114
|
-
footerTitle: '16px'
|
|
115
|
-
},
|
|
116
|
-
rareStepPageSizes: {
|
|
117
|
-
mobile: '500px',
|
|
118
|
-
tablet: '768px',
|
|
119
|
-
desktop: '992px',
|
|
120
|
-
screenl: '1280px',
|
|
121
|
-
screenxl: '1680px',
|
|
122
|
-
screenxxl: '1920px',
|
|
123
|
-
container: '1600px'
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
var themed = (function (Component) {
|
|
128
|
-
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
129
|
-
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
130
|
-
theme: theme
|
|
131
|
-
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
132
|
-
ref: ref
|
|
133
|
-
})));
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
var themed = (function (Component) {
|
|
134
|
+
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
135
|
+
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
136
|
+
theme: theme
|
|
137
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
138
|
+
ref: ref
|
|
139
|
+
})));
|
|
140
|
+
});
|
|
134
141
|
});
|
|
135
|
-
});
|
|
136
142
|
|
|
137
|
-
var _excluded = ["children"];
|
|
143
|
+
var _excluded = ["children"];
|
|
144
|
+
|
|
145
|
+
var _templateObject$1;
|
|
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) {
|
|
147
|
+
return props.theme.colors.base;
|
|
148
|
+
}, function (props) {
|
|
149
|
+
return props.theme.colors.primary;
|
|
150
|
+
}, disabledButtonStyle, function (props) {
|
|
151
|
+
return props.theme.colors.base;
|
|
152
|
+
});
|
|
138
153
|
|
|
139
|
-
var
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
}, function (props) {
|
|
143
|
-
return props.theme.colors.primary;
|
|
144
|
-
}, disabledButtonStyle, function (props) {
|
|
145
|
-
return props.theme.colors.base;
|
|
146
|
-
});
|
|
154
|
+
var TextButton = function TextButton(_ref) {
|
|
155
|
+
var children = _ref.children,
|
|
156
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
147
157
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
158
|
+
return /*#__PURE__*/React__default.createElement(Button, restProps, children);
|
|
159
|
+
};
|
|
151
160
|
|
|
152
|
-
|
|
153
|
-
|
|
161
|
+
TextButton.defaultProps = {
|
|
162
|
+
type: 'button'
|
|
163
|
+
};
|
|
164
|
+
var index = themed(TextButton);
|
|
154
165
|
|
|
155
|
-
|
|
156
|
-
type: 'button'
|
|
157
|
-
};
|
|
158
|
-
var index = themed(TextButton);
|
|
166
|
+
return index;
|
|
159
167
|
|
|
160
|
-
|
|
168
|
+
})));
|