@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.
Files changed (92) hide show
  1. package/Accordion.js +352 -342
  2. package/AddInterest.js +3141 -3135
  3. package/AddProductInterest.js +7584 -1011
  4. package/BrandSelector.js +861 -854
  5. package/Checkbox.js +250 -240
  6. package/CheckboxButton.js +236 -229
  7. package/CommunicationPreferenceOptionsRenderer.js +568 -560
  8. package/CommunicationPreferenceSection.js +659 -651
  9. package/CommunicationPreferences.js +2402 -2394
  10. package/ConditionSelector.js +859 -852
  11. package/CountryCodeSelect.js +6650 -79
  12. package/CurrencyInputFormatter.js +96 -86
  13. package/CurrencySelect.js +227 -219
  14. package/DropdownSelector.js +6820 -211
  15. package/GALink.js +51 -43
  16. package/GenderSelector.js +362 -355
  17. package/GraphQLDropdownSelector.js +11878 -5308
  18. package/GraphQLMultiSelector.js +601 -593
  19. package/IconHeader.js +126 -118
  20. package/IconWrapper.js +25 -17
  21. package/InterestCatSelector.js +432 -424
  22. package/InterestItem.js +470 -462
  23. package/Interests.js +11286 -4716
  24. package/InterestsSubheading.js +41 -33
  25. package/InvertedTextButton.js +175 -167
  26. package/LuxityAppSideNav.js +189 -181
  27. package/LuxityDesktopHeader.js +1363 -1355
  28. package/LuxityFooter.js +2236 -2228
  29. package/LuxityGraphQLDropdownSelector.js +11963 -5393
  30. package/LuxityGraphQLMultiselector.js +785 -778
  31. package/LuxityMobileHeader.js +1794 -1786
  32. package/LuxityPageReady.js +209 -199
  33. package/LuxityProductInterestItem.js +367 -359
  34. package/LuxitySideNav.js +673 -665
  35. package/MaterialSelector.js +11993 -5423
  36. package/ModelSelector.js +11993 -5423
  37. package/NotificationDropDown.js +7029 -459
  38. package/Notify.js +32 -20
  39. package/OutlinePrimaryButton.js +142 -134
  40. package/PriceRangeSelector.js +1270 -1264
  41. package/PrimaryButton.js +137 -129
  42. package/RadioButtons.js +318 -308
  43. package/RangeSlider.js +1039 -1033
  44. package/RareStepFooter.js +264 -257
  45. package/RareStepHeader.js +808 -801
  46. package/ReactSelectWrapper.js +6604 -33
  47. package/SecondaryButton.js +152 -144
  48. package/ShoeSizeRangeSelector.js +1153 -1147
  49. package/ShoeSizeSelector.js +1154 -1146
  50. package/SimpleErrorBoundary.js +138 -130
  51. package/StyleSelector.js +861 -854
  52. package/TextButton.js +143 -135
  53. package/Tooltip.js +184 -176
  54. package/Tracking.js +25 -15
  55. package/WrapperButton.js +58 -50
  56. package/build/bundle.css +1 -1
  57. package/build/bundle.js +17236 -10632
  58. package/build/constants.js +45 -32
  59. package/package.json +2 -2
  60. package/svg/Accessories.js +42 -34
  61. package/svg/Account.js +38 -30
  62. package/svg/Add.js +39 -31
  63. package/svg/ArrowRight.js +36 -28
  64. package/svg/Bags.js +48 -40
  65. package/svg/BurgerMenu.js +32 -24
  66. package/svg/Calendar.js +106 -98
  67. package/svg/CalendarCircled.js +108 -100
  68. package/svg/CheckCircled.js +40 -32
  69. package/svg/Close.js +37 -29
  70. package/svg/Clothing.js +44 -36
  71. package/svg/Dot.js +40 -32
  72. package/svg/Edit.js +35 -27
  73. package/svg/Eye.js +36 -28
  74. package/svg/FileAttach.js +36 -28
  75. package/svg/FileAttachCircled.js +38 -30
  76. package/svg/Jewellery.js +57 -49
  77. package/svg/LightBulb.js +66 -58
  78. package/svg/Logo.js +140 -132
  79. package/svg/LuxityMenu.js +36 -28
  80. package/svg/Minus.js +37 -29
  81. package/svg/MobileAvatar.js +36 -28
  82. package/svg/MyOrder.js +44 -36
  83. package/svg/MyPayment.js +44 -36
  84. package/svg/MyProfile.js +52 -44
  85. package/svg/MySale.js +39 -31
  86. package/svg/Notification.js +38 -30
  87. package/svg/PointerDown.js +36 -28
  88. package/svg/Search.js +35 -27
  89. package/svg/Shoes.js +45 -37
  90. package/svg/SvgWrapper.js +21 -13
  91. package/svg/Trash.js +40 -32
  92. package/svg/Watches.js +55 -47
package/IconHeader.js CHANGED
@@ -1,134 +1,142 @@
1
- import React, { forwardRef } from 'react';
2
- import styled, { ThemeProvider } from 'styled-components';
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.IconHeader = factory(global.React, global.styled));
5
+ }(this, (function (React, styled) { 'use strict';
3
6
 
4
- function _extends() {
5
- _extends = Object.assign ? Object.assign.bind() : function (target) {
6
- for (var i = 1; i < arguments.length; i++) {
7
- var source = arguments[i];
7
+ var React__default = 'default' in React ? React['default'] : React;
8
+ var styled__default = 'default' in styled ? styled['default'] : styled;
8
9
 
9
- for (var key in source) {
10
- if (Object.prototype.hasOwnProperty.call(source, key)) {
11
- target[key] = source[key];
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
  }
14
- }
15
-
16
- return target;
17
- };
18
- return _extends.apply(this, arguments);
19
- }
20
21
 
21
- function _taggedTemplateLiteral(strings, raw) {
22
- if (!raw) {
23
- raw = strings.slice(0);
22
+ return target;
23
+ };
24
+ return _extends.apply(this, arguments);
24
25
  }
25
26
 
26
- return Object.freeze(Object.defineProperties(strings, {
27
- raw: {
28
- value: Object.freeze(raw)
27
+ function _taggedTemplateLiteral(strings, raw) {
28
+ if (!raw) {
29
+ raw = strings.slice(0);
29
30
  }
30
- }));
31
- }
32
31
 
33
- var media = {
34
- xs: '576px',
35
- sm: '768px',
36
- md: '992px',
37
- lg: '1200px'
38
- };
39
-
40
- var theme = {
41
- breakpoints: ['40em', '52em', '64em'],
42
- space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
43
- fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
44
- marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
45
- letterSpacings: ['-0.5px', '0px', '+0.5px'],
46
- radii: ['0px', '2px', '4px', '8px'],
47
- borderRadius: '6px',
48
- colors: {
49
- primary: '#000',
50
- base: '#4e4949',
51
- baseLt: '#817c7c',
52
- borderColor: '#d8d8d8',
53
- ntrlMin: '#fff',
54
- ntrlMinTen: '#e6e6e6',
55
- gray: '#efefef',
56
- darkerGray: '#454141'
57
- },
58
- rareStepColors: {
59
- primary: '#202b58',
60
- secondary: '#ef5c2d',
61
- ntrlMin: '#ffffff',
62
- ntrl40: '#f4f4f4',
63
- ntrl50: '#808080',
64
- ntrl60: '#e8e8e8',
65
- ntrl70: '#252525',
66
- ntrlMax: '#000000'
67
- },
68
- rareStepFontWeights: {
69
- normal: 400,
70
- medium: 500,
71
- semiBold: 600,
72
- bold: 700
73
- },
74
- rareStepFontSize: {
75
- h1: '36px',
76
- h2: '30px',
77
- h3: '24px',
78
- h4: '20px',
79
- h5: '16px',
80
- h6: '14px',
81
- footerTitle: '16px'
82
- },
83
- rareStepPageSizes: {
84
- mobile: '500px',
85
- tablet: '768px',
86
- desktop: '992px',
87
- screenl: '1280px',
88
- screenxl: '1680px',
89
- screenxxl: '1920px',
90
- container: '1600px'
32
+ return Object.freeze(Object.defineProperties(strings, {
33
+ raw: {
34
+ value: Object.freeze(raw)
35
+ }
36
+ }));
91
37
  }
92
- };
93
38
 
94
- var themed = (function (Component) {
95
- return /*#__PURE__*/forwardRef(function (props, ref) {
96
- return /*#__PURE__*/React.createElement(ThemeProvider, {
97
- theme: theme
98
- }, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
99
- ref: ref
100
- })));
39
+ var media = {
40
+ xs: '576px',
41
+ sm: '768px',
42
+ md: '992px',
43
+ lg: '1200px'
44
+ };
45
+
46
+ var theme = {
47
+ breakpoints: ['40em', '52em', '64em'],
48
+ space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
49
+ fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
50
+ marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
51
+ letterSpacings: ['-0.5px', '0px', '+0.5px'],
52
+ radii: ['0px', '2px', '4px', '8px'],
53
+ borderRadius: '6px',
54
+ colors: {
55
+ primary: '#000',
56
+ base: '#4e4949',
57
+ baseLt: '#817c7c',
58
+ borderColor: '#d8d8d8',
59
+ ntrlMin: '#fff',
60
+ ntrlMinTen: '#e6e6e6',
61
+ gray: '#efefef',
62
+ darkerGray: '#454141'
63
+ },
64
+ rareStepColors: {
65
+ primary: '#202b58',
66
+ secondary: '#ef5c2d',
67
+ ntrlMin: '#ffffff',
68
+ ntrl40: '#f4f4f4',
69
+ ntrl50: '#808080',
70
+ ntrl60: '#e8e8e8',
71
+ ntrl70: '#252525',
72
+ ntrlMax: '#000000'
73
+ },
74
+ rareStepFontWeights: {
75
+ normal: 400,
76
+ medium: 500,
77
+ semiBold: 600,
78
+ bold: 700
79
+ },
80
+ rareStepFontSize: {
81
+ h1: '36px',
82
+ h2: '30px',
83
+ h3: '24px',
84
+ h4: '20px',
85
+ h5: '16px',
86
+ h6: '14px',
87
+ footerTitle: '16px'
88
+ },
89
+ rareStepPageSizes: {
90
+ mobile: '500px',
91
+ tablet: '768px',
92
+ desktop: '992px',
93
+ screenl: '1280px',
94
+ screenxl: '1680px',
95
+ screenxxl: '1920px',
96
+ container: '1600px'
97
+ }
98
+ };
99
+
100
+ var themed = (function (Component) {
101
+ return /*#__PURE__*/React.forwardRef(function (props, ref) {
102
+ return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
103
+ theme: theme
104
+ }, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
105
+ ref: ref
106
+ })));
107
+ });
101
108
  });
102
- });
103
109
 
104
- var _templateObject;
105
- var StyledHeader = styled.h5(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n display: block;\n }\n\n .icon-header__left {\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n align-self: flex-start;\n }\n\n svg {\n height: 1.5em;\n width: 1.5em;\n margin-right: ", ";\n }\n }\n\n .icon-header__right {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n\n @media (max-width: ", ") {\n justify-content: flex-start;\n }\n }\n"])), media.sm, media.sm, function (props) {
106
- return props.theme.marginPaddings[1];
107
- }, media.sm);
110
+ var _templateObject;
111
+ var StyledHeader = styled__default.h5(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n display: block;\n }\n\n .icon-header__left {\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n align-self: flex-start;\n }\n\n svg {\n height: 1.5em;\n width: 1.5em;\n margin-right: ", ";\n }\n }\n\n .icon-header__right {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n\n @media (max-width: ", ") {\n justify-content: flex-start;\n }\n }\n"])), media.sm, media.sm, function (props) {
112
+ return props.theme.marginPaddings[1];
113
+ }, media.sm);
114
+
115
+ /**
116
+ * IconHeader can render the standard Luxity Page/Section Header nodes with SVG
117
+ */
118
+ var IconHeader = function IconHeader(_ref) {
119
+ var title = _ref.title,
120
+ SvgComponent = _ref.svgComponent,
121
+ renderAppendage = _ref.renderAppendage;
122
+ return /*#__PURE__*/React__default.createElement(StyledHeader, null, /*#__PURE__*/React__default.createElement("div", {
123
+ className: "icon-header__left"
124
+ }, /*#__PURE__*/React__default.createElement(SvgComponent, null), title), /*#__PURE__*/React__default.createElement("div", {
125
+ className: "icon-header__right"
126
+ }, renderAppendage && renderAppendage()));
127
+ };
108
128
 
109
- /**
110
- * IconHeader can render the standard Luxity Page/Section Header nodes with SVG
111
- */
112
- var IconHeader = function IconHeader(_ref) {
113
- var title = _ref.title,
114
- SvgComponent = _ref.svgComponent,
115
- renderAppendage = _ref.renderAppendage;
116
- return /*#__PURE__*/React.createElement(StyledHeader, null, /*#__PURE__*/React.createElement("div", {
117
- className: "icon-header__left"
118
- }, /*#__PURE__*/React.createElement(SvgComponent, null), title), /*#__PURE__*/React.createElement("div", {
119
- className: "icon-header__right"
120
- }, renderAppendage && renderAppendage()));
121
- };
129
+ IconHeader.defaultProps = {
130
+ title: '',
131
+ svgComponent: function svgComponent() {
132
+ return false;
133
+ },
134
+ renderAppendage: function renderAppendage() {
135
+ return false;
136
+ }
137
+ };
138
+ var index = themed(IconHeader);
122
139
 
123
- IconHeader.defaultProps = {
124
- title: '',
125
- svgComponent: function svgComponent() {
126
- return false;
127
- },
128
- renderAppendage: function renderAppendage() {
129
- return false;
130
- }
131
- };
132
- var index = themed(IconHeader);
140
+ return index;
133
141
 
134
- export default index;
142
+ })));
package/IconWrapper.js CHANGED
@@ -1,22 +1,30 @@
1
- import styled from 'styled-components';
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('styled-components')) :
3
+ typeof define === 'function' && define.amd ? define(['styled-components'], factory) :
4
+ (global = global || self, global.IconWrapper = factory(global.styled));
5
+ }(this, (function (styled) { 'use strict';
2
6
 
3
- function _taggedTemplateLiteral(strings, raw) {
4
- if (!raw) {
5
- raw = strings.slice(0);
6
- }
7
+ styled = styled && Object.prototype.hasOwnProperty.call(styled, 'default') ? styled['default'] : styled;
7
8
 
8
- return Object.freeze(Object.defineProperties(strings, {
9
- raw: {
10
- value: Object.freeze(raw)
9
+ function _taggedTemplateLiteral(strings, raw) {
10
+ if (!raw) {
11
+ raw = strings.slice(0);
11
12
  }
12
- }));
13
- }
14
13
 
15
- var _templateObject;
16
- var IconWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n height: auto;\n margin-bottom: 1rem;\n margin-left: 1rem;\n display: flex;\n align-items: center;\n height: auto;\n\n :hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n #svg-trash {\n width: 15px;\n height: 100%;\n }\n"])), function (props) {
17
- return props.theme.colors.borderColor;
18
- }, function (props) {
19
- return props.theme.colors.borderColor;
20
- });
14
+ return Object.freeze(Object.defineProperties(strings, {
15
+ raw: {
16
+ value: Object.freeze(raw)
17
+ }
18
+ }));
19
+ }
20
+
21
+ var _templateObject;
22
+ var IconWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n height: auto;\n margin-bottom: 1rem;\n margin-left: 1rem;\n display: flex;\n align-items: center;\n height: auto;\n\n :hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n #svg-trash {\n width: 15px;\n height: 100%;\n }\n"])), function (props) {
23
+ return props.theme.colors.borderColor;
24
+ }, function (props) {
25
+ return props.theme.colors.borderColor;
26
+ });
27
+
28
+ return IconWrapper;
21
29
 
22
- export default IconWrapper;
30
+ })));