@bonlineza/luxity-lib 2.7.4 → 2.9.0

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 (71) hide show
  1. package/Accordion.js +39 -85
  2. package/AddInterest.js +943 -756
  3. package/BrandSelector.js +82 -166
  4. package/Checkbox.js +18 -24
  5. package/CheckboxButton.js +18 -42
  6. package/CountryCodeSelect.js +16 -3
  7. package/CurrencyInputFormatter.js +671 -0
  8. package/GenderSelector.js +31 -81
  9. package/GraphQLMultiSelector.js +45 -87
  10. package/IconHeader.js +8 -17
  11. package/IconWrapper.js +2 -10
  12. package/InterestCatSelector.js +89 -123
  13. package/InterestItem.js +103 -134
  14. package/Interests.js +1035 -897
  15. package/InterestsSubheading.js +5 -23
  16. package/InvertedTextButton.js +17 -48
  17. package/LuxityGraphQLMultiselector.js +73 -143
  18. package/LuxityPageReady.js +15 -8
  19. package/NotificationDropDown.js +66 -63
  20. package/Notify.js +1 -1
  21. package/OutlinePrimaryButton.js +12 -37
  22. package/PriceRangeSelector.js +679 -282
  23. package/PrimaryButton.js +12 -37
  24. package/README.md +1 -1
  25. package/RadioButtons.js +61 -139
  26. package/RangeSlider.js +55 -125
  27. package/ReactSelectWrapper.js +15 -2
  28. package/SecondaryButton.js +12 -37
  29. package/ShoeSizeSelector.js +71 -171
  30. package/SimpleErrorBoundary.js +12 -5
  31. package/StyleSelector.js +82 -166
  32. package/TextButton.js +12 -37
  33. package/Tooltip.js +16 -81
  34. package/WrapperButton.js +8 -32
  35. package/build/bundle.js +1098 -1115
  36. package/build/constants.js +4 -2
  37. package/package.json +10 -12
  38. package/svg/Accessories.js +4 -5
  39. package/svg/Account.js +4 -5
  40. package/svg/Add.js +4 -5
  41. package/svg/ArrowRight.js +3 -4
  42. package/svg/Bags.js +6 -7
  43. package/svg/BurgerMenu.js +3 -4
  44. package/svg/Calendar.js +17 -18
  45. package/svg/CalendarCircled.js +18 -19
  46. package/svg/CheckCircled.js +4 -5
  47. package/svg/Close.js +3 -4
  48. package/svg/Clothing.js +50 -0
  49. package/svg/Dot.js +3 -4
  50. package/svg/Edit.js +3 -4
  51. package/svg/Eye.js +4 -5
  52. package/svg/FileAttach.js +3 -4
  53. package/svg/FileAttachCircled.js +4 -5
  54. package/svg/LightBulb.js +11 -12
  55. package/svg/Logo.js +38 -39
  56. package/svg/LuxityMenu.js +3 -4
  57. package/svg/Minus.js +3 -4
  58. package/svg/MobileAvatar.js +3 -4
  59. package/svg/MyOrder.js +6 -7
  60. package/svg/MyPayment.js +6 -7
  61. package/svg/MyProfile.js +7 -8
  62. package/svg/MySale.js +4 -5
  63. package/svg/Notification.js +4 -5
  64. package/svg/PointerDown.js +3 -4
  65. package/svg/Search.js +3 -4
  66. package/svg/Shoes.js +6 -7
  67. package/svg/SvgWrapper.js +2 -10
  68. package/svg/Trash.js +5 -6
  69. package/svg/Watches.js +11 -12
  70. package/CHANGELOG.md +0 -149
  71. package/CurrencyInput.js +0 -156
package/CurrencyInput.js DELETED
@@ -1,156 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('text-mask-all/addons/dist/createNumberMask'), require('text-mask-all/react/dist/reactTextMask')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', 'text-mask-all/addons/dist/createNumberMask', 'text-mask-all/react/dist/reactTextMask'], factory) :
4
- (global = global || self, factory(global.CurrencyInput = {}, global.React, global.createNumberMask, global.MaskedInput));
5
- }(this, (function (exports, React, createNumberMask, MaskedInput) { 'use strict';
6
-
7
- React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
8
- createNumberMask = createNumberMask && Object.prototype.hasOwnProperty.call(createNumberMask, 'default') ? createNumberMask['default'] : createNumberMask;
9
- MaskedInput = MaskedInput && Object.prototype.hasOwnProperty.call(MaskedInput, 'default') ? MaskedInput['default'] : MaskedInput;
10
-
11
- function _defineProperty(obj, key, value) {
12
- if (key in obj) {
13
- Object.defineProperty(obj, key, {
14
- value: value,
15
- enumerable: true,
16
- configurable: true,
17
- writable: true
18
- });
19
- } else {
20
- obj[key] = value;
21
- }
22
-
23
- return obj;
24
- }
25
-
26
- function _extends() {
27
- _extends = Object.assign || function (target) {
28
- for (var i = 1; i < arguments.length; i++) {
29
- var source = arguments[i];
30
-
31
- for (var key in source) {
32
- if (Object.prototype.hasOwnProperty.call(source, key)) {
33
- target[key] = source[key];
34
- }
35
- }
36
- }
37
-
38
- return target;
39
- };
40
-
41
- return _extends.apply(this, arguments);
42
- }
43
-
44
- function ownKeys(object, enumerableOnly) {
45
- var keys = Object.keys(object);
46
-
47
- if (Object.getOwnPropertySymbols) {
48
- var symbols = Object.getOwnPropertySymbols(object);
49
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
50
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
51
- });
52
- keys.push.apply(keys, symbols);
53
- }
54
-
55
- return keys;
56
- }
57
-
58
- function _objectSpread2(target) {
59
- for (var i = 1; i < arguments.length; i++) {
60
- var source = arguments[i] != null ? arguments[i] : {};
61
-
62
- if (i % 2) {
63
- ownKeys(Object(source), true).forEach(function (key) {
64
- _defineProperty(target, key, source[key]);
65
- });
66
- } else if (Object.getOwnPropertyDescriptors) {
67
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
68
- } else {
69
- ownKeys(Object(source)).forEach(function (key) {
70
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
71
- });
72
- }
73
- }
74
-
75
- return target;
76
- }
77
-
78
- function _objectWithoutPropertiesLoose(source, excluded) {
79
- if (source == null) return {};
80
- var target = {};
81
- var sourceKeys = Object.keys(source);
82
- var key, i;
83
-
84
- for (i = 0; i < sourceKeys.length; i++) {
85
- key = sourceKeys[i];
86
- if (excluded.indexOf(key) >= 0) continue;
87
- target[key] = source[key];
88
- }
89
-
90
- return target;
91
- }
92
-
93
- function _objectWithoutProperties(source, excluded) {
94
- if (source == null) return {};
95
-
96
- var target = _objectWithoutPropertiesLoose(source, excluded);
97
-
98
- var key, i;
99
-
100
- if (Object.getOwnPropertySymbols) {
101
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
102
-
103
- for (i = 0; i < sourceSymbolKeys.length; i++) {
104
- key = sourceSymbolKeys[i];
105
- if (excluded.indexOf(key) >= 0) continue;
106
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
107
- target[key] = source[key];
108
- }
109
- }
110
-
111
- return target;
112
- }
113
-
114
- var defaultMaskOptions = {
115
- prefix: 'R',
116
- suffix: '',
117
- includeThousandsSeparator: true,
118
- thousandsSeparatorSymbol: ',',
119
- allowDecimal: true,
120
- decimalSymbol: '.',
121
- decimalLimit: 2,
122
- // how many digits allowed after the decimal
123
- allowNegative: false,
124
- allowLeadingZeroes: false
125
- };
126
- var unMask = function unMask() {
127
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
128
- return value.replace(/\D/g, '');
129
- };
130
- /**
131
- * Currency Input Masks text to specific format
132
- */
133
-
134
- var CurrencyInput = function CurrencyInput(_ref) {
135
- var inputMode = _ref.inputMode,
136
- maskOptions = _ref.maskOptions,
137
- inputProps = _objectWithoutProperties(_ref, ["inputMode", "maskOptions"]);
138
-
139
- var currencyMask = createNumberMask(_objectSpread2(_objectSpread2({}, defaultMaskOptions), maskOptions));
140
- return React.createElement(MaskedInput, _extends({}, inputProps, {
141
- inputMode: inputMode,
142
- mask: currencyMask
143
- }));
144
- };
145
-
146
- CurrencyInput.defaultProps = {
147
- maskOptions: defaultMaskOptions,
148
- inputMode: 'numeric'
149
- };
150
-
151
- exports.default = CurrencyInput;
152
- exports.unMask = unMask;
153
-
154
- Object.defineProperty(exports, '__esModule', { value: true });
155
-
156
- })));