@bonlineza/luxity-lib 2.30.3 → 2.31.1
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/GALink.js +60 -0
- package/GraphQLDropdownSelector.js +6 -1
- package/LuxityDesktopHeader.js +413 -0
- package/LuxityFooter.js +2026 -0
- package/LuxityGraphQLDropdownSelector.js +6 -1
- package/LuxityMobileHeader.js +567 -0
- package/LuxitySideNav.js +424 -0
- package/MaterialSelector.js +6 -1
- package/ModelSelector.js +6 -1
- package/Tracking.js +27 -0
- package/build/bundle.css +1 -0
- package/build/bundle.js +1037 -0
- package/package.json +5 -5
- package/CHANGELOG.md +0 -285
- package/CreateRarestepInterest.js +0 -85
- package/RarestepAddInterests.js +0 -118
- package/RarestepInterests.js +0 -118
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonlineza/luxity-lib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "start-storybook -p 9001 -c .storybook -s ./public",
|
|
6
6
|
"clean": "rimraf ./build/*.*",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@storybook/preset-create-react-app": "^3.1.4",
|
|
77
77
|
"@storybook/react": "^6.5.9",
|
|
78
78
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
79
|
-
"autoprefixer": "^
|
|
79
|
+
"autoprefixer": "^10.4.17",
|
|
80
80
|
"axios": "^0.19.2",
|
|
81
81
|
"babel-eslint": "^10.1.0",
|
|
82
82
|
"babel-loader": "^8.1.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"babel-preset-env": "^1.7.0",
|
|
92
92
|
"babel-preset-react": "^6.24.1",
|
|
93
93
|
"css-loader": "^1.0.0",
|
|
94
|
-
"cssnano": "^
|
|
94
|
+
"cssnano": "^6.0.3",
|
|
95
95
|
"enzyme": "^3.11.0",
|
|
96
96
|
"eslint": "^6.8.0",
|
|
97
97
|
"eslint-config-airbnb": "17.1.1",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"lint-staged": "^7.3.0",
|
|
112
112
|
"moxios": "^0.4.0",
|
|
113
113
|
"npm-run-all": "^4.1.1",
|
|
114
|
-
"postcss": "^
|
|
114
|
+
"postcss": "^8.4.33",
|
|
115
115
|
"prettier": "^1.19.1",
|
|
116
116
|
"react": "^17.0.2",
|
|
117
117
|
"react-docgen": "^4.1.1",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"react-test-renderer": "^16.13.1",
|
|
123
123
|
"rollup": "^1.32.1",
|
|
124
124
|
"rollup-plugin-babel": "^4.4.0",
|
|
125
|
-
"rollup-plugin-sass": "^1.
|
|
125
|
+
"rollup-plugin-sass": "^1.12.21",
|
|
126
126
|
"style-loader": "^0.23.1",
|
|
127
127
|
"styled-components": "^5.1.1",
|
|
128
128
|
"typescript": "^3.9.7",
|
package/CHANGELOG.md
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
## Changelog
|
|
2
|
-
|
|
3
|
-
### 2.30.1
|
|
4
|
-
- adding a class name prop for the buttons on the communications preference components.
|
|
5
|
-
- removing the default section header on communication preferences.
|
|
6
|
-
|
|
7
|
-
### 2.30.0
|
|
8
|
-
- Components added:
|
|
9
|
-
- `CommunicationPreferences`
|
|
10
|
-
- `CommunicationPreferenceSection`
|
|
11
|
-
- `CommunicationPreferenceOptionRenderer`
|
|
12
|
-
|
|
13
|
-
### 2.29.1
|
|
14
|
-
- Allow the search input container to auto focus on render
|
|
15
|
-
|
|
16
|
-
### 2.29.0
|
|
17
|
-
- Removed models and materials filtering from `Style Selector`
|
|
18
|
-
- Showing brands as multiselect instead of dropdown on `Add Interest` form
|
|
19
|
-
|
|
20
|
-
### 2.28.0
|
|
21
|
-
Removed models and materials select from `Add Interest`
|
|
22
|
-
|
|
23
|
-
### 2.27.0
|
|
24
|
-
Add click event on Sidebar of `Rarestep Header`
|
|
25
|
-
|
|
26
|
-
### 2.26.0
|
|
27
|
-
Once user click on Menu Items Nav will closed `Rarestep Header`
|
|
28
|
-
|
|
29
|
-
### 2.25.0
|
|
30
|
-
User icon show when it present in `Rarestep Header`
|
|
31
|
-
|
|
32
|
-
### 2.24.0
|
|
33
|
-
Reduce padding and size of X of `Rarestep Header`
|
|
34
|
-
|
|
35
|
-
### 2.23.0
|
|
36
|
-
- All items are capitalize headers in `RarestepHeader`
|
|
37
|
-
|
|
38
|
-
### 2.22.0
|
|
39
|
-
- Add More Navigation Specific for `RarestepHeader`
|
|
40
|
-
|
|
41
|
-
### 2.21.0
|
|
42
|
-
- Capitalize all headers in `RarestepHeader`
|
|
43
|
-
|
|
44
|
-
### 2.20.0
|
|
45
|
-
- Move rarestep dropdown brands to header
|
|
46
|
-
|
|
47
|
-
### 2.19.0
|
|
48
|
-
- Show tiktok icon on `RareStepFooter`
|
|
49
|
-
|
|
50
|
-
### 2.18.5
|
|
51
|
-
- Allow `RareStepHeader` brands on menu dropdown to be clickable
|
|
52
|
-
|
|
53
|
-
### 2.18.4
|
|
54
|
-
- Replace `CurrencyInputFormatter` with custom code
|
|
55
|
-
|
|
56
|
-
### 2.18.3
|
|
57
|
-
- Only show the scroll bar on the `RareStepHeader` side nav when there is scrollable content
|
|
58
|
-
|
|
59
|
-
### 2.18.2
|
|
60
|
-
- Reduce `RareStepFooter` link font size
|
|
61
|
-
|
|
62
|
-
### 2.18.1
|
|
63
|
-
- Ensure RareStep SubMenuLink opens SubMenu instead of opening link
|
|
64
|
-
|
|
65
|
-
### 2.18.0
|
|
66
|
-
- Passing brands, models and materials to the styles graphql query to filter out styles that don't match up to the selected brands, models and materials.
|
|
67
|
-
|
|
68
|
-
### 2.17.5
|
|
69
|
-
- Open RareStep social media links in a new tab
|
|
70
|
-
|
|
71
|
-
### 2.17.4
|
|
72
|
-
- Fix stretching of `RareStepFooter` and `RareStepHeader` logo images
|
|
73
|
-
|
|
74
|
-
### 2.17.3
|
|
75
|
-
- Set a static height size for images on the desktop dropdown menu
|
|
76
|
-
|
|
77
|
-
### 2.17.2
|
|
78
|
-
- Made links on `RareStepHeader` dropdown clickable
|
|
79
|
-
|
|
80
|
-
### 2.17.1
|
|
81
|
-
- Aligned `SellToUsLink` with `HeaderIcon`
|
|
82
|
-
|
|
83
|
-
### 2.17.0
|
|
84
|
-
- Update `HeaderLogo` dimensions
|
|
85
|
-
- Update `HeaderIcon` dimensions
|
|
86
|
-
- Show dropdown on hover of user icon in the header
|
|
87
|
-
|
|
88
|
-
### 2.16.0
|
|
89
|
-
- Removed unused links from `RareStepFooter` and `RareStepHeader` components
|
|
90
|
-
- Centre aligned the logo on `RareStepHeader` mobile
|
|
91
|
-
- Changed background color of search container of `RareStepHeader` mobile
|
|
92
|
-
- `RareStepHeader` now accepts handleOnCartClick function to navigate to cart page
|
|
93
|
-
|
|
94
|
-
### 2.15.1
|
|
95
|
-
- Ensure dropdown search fills page width
|
|
96
|
-
- Make `RareStepFooter` and `RareStepHeader` logo clickable
|
|
97
|
-
### 2.15.0
|
|
98
|
-
- Adds sliding animation to `RareStepHeader` on mobile
|
|
99
|
-
- Change props to camel case for `RareStepFooter` and `RareStepHeader` components
|
|
100
|
-
|
|
101
|
-
### 2.14.0
|
|
102
|
-
- Made `RareStepFooter` and `RareStepHeader` components responsive
|
|
103
|
-
|
|
104
|
-
### 2.13.1
|
|
105
|
-
- Changed interest page heading from `My Interests` to `Interests`.
|
|
106
|
-
|
|
107
|
-
### 2.13.0
|
|
108
|
-
- Removed `LuxityLoader` component
|
|
109
|
-
|
|
110
|
-
### 2.12.0
|
|
111
|
-
- Added a `RareStepHeader` and `RareStepFooter` components
|
|
112
|
-
|
|
113
|
-
### 2.11.0
|
|
114
|
-
- Components added:
|
|
115
|
-
-- `GraphQLDropdownSelector`, `LuxityGraphQLDropdownSelector`, `MaterialSelector`, and `ModelSelector`
|
|
116
|
-
- Added models and materials select form fields to add interests.
|
|
117
|
-
|
|
118
|
-
### 2.10.0
|
|
119
|
-
- Added a `LuxityLoader` component
|
|
120
|
-
### 2.9.2
|
|
121
|
-
- Ensure the search icon is not cutting off
|
|
122
|
-
|
|
123
|
-
### 2.9.1
|
|
124
|
-
- Ensure the interest categories wrap on small screen
|
|
125
|
-
|
|
126
|
-
### 2.9.0
|
|
127
|
-
- Added clothing as an interest item
|
|
128
|
-
### 2.8.0
|
|
129
|
-
- Breaking - `CurrencyInput` component renamed to `CurrencyInputFormatter`
|
|
130
|
-
- CurrencyInputFormatter props `onChange, value, prefix, allowNegativeValue,
|
|
131
|
-
groupSeparator,
|
|
132
|
-
decimalSeparator,`
|
|
133
|
-
- upgrade react to react 17.0.2
|
|
134
|
-
- upgrade storybook
|
|
135
|
-
- remove storybook-readme
|
|
136
|
-
|
|
137
|
-
### 2.7.5
|
|
138
|
-
- Change color of the active Interest category
|
|
139
|
-
when adding item as interest
|
|
140
|
-
### 2.7.4
|
|
141
|
-
- Bug fix for IOS, extra space showing on `InterestItem`
|
|
142
|
-
### 2.7.3
|
|
143
|
-
- Fix container alignment of `AddInterest` and `InterestItem` so they match
|
|
144
|
-
- Center alignment trash icon in `InterestItem`
|
|
145
|
-
### 2.7.2
|
|
146
|
-
- Dont show `MyInterestTitleHeading` if don't have interest items
|
|
147
|
-
### 2.7.1
|
|
148
|
-
- Change svg colors from pink to black
|
|
149
|
-
### 2.7.0
|
|
150
|
-
- `AddInterest` and `InterestItem` have a new design that does not use the `Accordion` component
|
|
151
|
-
- Can add a watch as interest
|
|
152
|
-
### 2.6.2
|
|
153
|
-
- Limit the width of the title of `InterestItem` so that it does not overlap with trash icon
|
|
154
|
-
### 2.6.1
|
|
155
|
-
- Upgrade `@bonlineza/b-lib` to v3.2.2
|
|
156
|
-
|
|
157
|
-
### 2.6.0
|
|
158
|
-
- `InterestItem` now has a delete button next to the interest title
|
|
159
|
-
### 2.5.4
|
|
160
|
-
- Changed background color on `Add Interest` component buttons to black with white text
|
|
161
|
-
### 2.5.3
|
|
162
|
-
- Changed text color on `Add Interest` component buttons
|
|
163
|
-
|
|
164
|
-
### 2.5.2
|
|
165
|
-
- `Notify` component now includes a warning function
|
|
166
|
-
### 2.5.1
|
|
167
|
-
- change base color from pink to black
|
|
168
|
-
### 2.5.0
|
|
169
|
-
- `Accordion` component now accepts defaultHeight as a prop
|
|
170
|
-
### 2.4.0
|
|
171
|
-
- Formatted `mark` data for `RangeSlider`
|
|
172
|
-
### 2.3.0
|
|
173
|
-
- Changed `title` prop on `Accordion` to include support for Component rendering
|
|
174
|
-
### 2.2.0
|
|
175
|
-
- Add `DummyAccordion` component that looks like an `Accordion` only with a button-like behaviour
|
|
176
|
-
- Remove bundle conversion of Flow types to prop-types
|
|
177
|
-
- Strip 'prop-types' from exported bundles (removed the 'prop-types' Dependency)
|
|
178
|
-
- Add `SvgWrapper` as exported component
|
|
179
|
-
- Include `svgs` in package - can now import them induvidually as `@bonlineza/luxity-lib/svg/Add`
|
|
180
|
-
- Update all packages
|
|
181
|
-
- include `package-lock.json` file
|
|
182
|
-
- Update `Tooltip` - allow passing custom classes for `containerClassName` and `bodyClassName`
|
|
183
|
-
- Update `TextButton` - add default `type` prop as 'button' to prevent unintended form submissions
|
|
184
|
-
|
|
185
|
-
### 2.1.1
|
|
186
|
-
- Update `CountryCodeSelect` change the value that is used in the onChange callback
|
|
187
|
-
|
|
188
|
-
### 2.1.0
|
|
189
|
-
- Add components: `CountryCodeSelect` and `ReactSelectWrapper`
|
|
190
|
-
|
|
191
|
-
### 2.0.3
|
|
192
|
-
- Fix: prevent event from being passed into the `closeAccordion` function
|
|
193
|
-
|
|
194
|
-
### 2.0.2
|
|
195
|
-
- Fix: export `constants` properly - can now import directly from: `@bonlineza/luxity-lib/constants`
|
|
196
|
-
|
|
197
|
-
### 2.0.1
|
|
198
|
-
- Add fade transition to for `ShoeSizeTypeSelector` to improve ux
|
|
199
|
-
|
|
200
|
-
### 2.0.0
|
|
201
|
-
- Amend version to `2.0.0` for sanity due to the last feature being a breaking change
|
|
202
|
-
|
|
203
|
-
### 1.3.0
|
|
204
|
-
- Correct versioning of package due to `shoe-size-type` feature being a breaking
|
|
205
|
-
change
|
|
206
|
-
|
|
207
|
-
### 1.2.9
|
|
208
|
-
- Add functionality to choose size type for the `ShoeSelector` in the
|
|
209
|
-
`AddInterest` component due to spec changes. Add prop `shoe_size_type` to
|
|
210
|
-
payload of of request for adding an interest
|
|
211
|
-
- Add default check functionality for `RadioButton` component
|
|
212
|
-
- Update tests for `RadioButton` and `InterestItem`
|
|
213
|
-
- Correct prop definition `SimpleErrorBoundary` which was preventing `yarn docs`
|
|
214
|
-
from creating an `md` file for that component
|
|
215
|
-
|
|
216
|
-
### 1.2.8
|
|
217
|
-
- Surround `InterestItem` with `SimpleErrorBoundary`
|
|
218
|
-
- Add sanity to the `getShoeSize` output
|
|
219
|
-
- Export `gender` constants
|
|
220
|
-
|
|
221
|
-
### 1.2.7
|
|
222
|
-
- Change Full Size Range Button in Add Interest inverted button
|
|
223
|
-
|
|
224
|
-
### 1.2.6
|
|
225
|
-
- Remove deselectAll from AddInterest
|
|
226
|
-
- Fix infinite loop of CheckboxButton
|
|
227
|
-
- Remove reference props in GenderSelector
|
|
228
|
-
- Update test for CheckboxButton
|
|
229
|
-
|
|
230
|
-
### 1.2.4
|
|
231
|
-
- Change InterestItem to use the 'title' prop and add test
|
|
232
|
-
|
|
233
|
-
### 1.2.3
|
|
234
|
-
- Refactor styles of InterestItem so it looks the way it is required to look
|
|
235
|
-
- Fix logic for deselecting brands and styles for GraphQLMultiSelector when a category changes
|
|
236
|
-
- Add forwardRef logic to themed function
|
|
237
|
-
|
|
238
|
-
### 1.2.2
|
|
239
|
-
- Fix InterstItem render that uses new 'name' prop from Styles
|
|
240
|
-
|
|
241
|
-
### 1.2.1
|
|
242
|
-
- Fix Border Style for NotificationDropdown
|
|
243
|
-
- Change deleteInterest prop to `deleteInterestApi` to better describe it
|
|
244
|
-
|
|
245
|
-
### 1.2.0
|
|
246
|
-
- No Longer Exporting: BrandSelector and AddInterest
|
|
247
|
-
- Added Component: Interests
|
|
248
|
-
|
|
249
|
-
### 1.1.1
|
|
250
|
-
- Fix RangeSlider: Tooltip component receives correct props
|
|
251
|
-
|
|
252
|
-
### 1.1.0
|
|
253
|
-
- Added Components:
|
|
254
|
-
- AddInterest
|
|
255
|
-
- BrandSelector
|
|
256
|
-
- CurrencyInput
|
|
257
|
-
- GraphQLMultiSelector
|
|
258
|
-
- InterestCatSelector
|
|
259
|
-
- InterestItem
|
|
260
|
-
- LuxityGraphQLMultiSelector
|
|
261
|
-
- LuxityPageReady
|
|
262
|
-
- StyleSelector
|
|
263
|
-
- RangeSlider
|
|
264
|
-
- ShoeSizeSelector
|
|
265
|
-
- PriceRangeSelector
|
|
266
|
-
- Added List of Helper functions to the Readme
|
|
267
|
-
- Added Development guide to the Readme
|
|
268
|
-
- Added Publishing Guide to the Readme
|
|
269
|
-
|
|
270
|
-
### 1.0.0
|
|
271
|
-
- Breaking Change: Reworked Button 'variant' prop into individual Components
|
|
272
|
-
- Removed Generic Button component
|
|
273
|
-
- New Button components: PrimaryButton, SecondaryButton, TextButton, InvertedTextButton, WrapperButton
|
|
274
|
-
- Added SVG components (see README for full List)
|
|
275
|
-
|
|
276
|
-
### 0.1.2
|
|
277
|
-
- Updated `styled-components` version to v5
|
|
278
|
-
|
|
279
|
-
### 0.1.1
|
|
280
|
-
- Moved `styled-components` to dev and peer-dependencies as it is a host project requirement
|
|
281
|
-
|
|
282
|
-
### 0.1.0
|
|
283
|
-
- Added Components: Checkbox, RadioButtons, Tooltip
|
|
284
|
-
- Added generated ocumentation for components
|
|
285
|
-
- Added Element: Button
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['react'], factory) :
|
|
4
|
-
(global = global || self, global.CreateRarestepInterest = factory(global.React));
|
|
5
|
-
}(this, (function (React) { 'use strict';
|
|
6
|
-
|
|
7
|
-
var React__default = 'default' in React ? React['default'] : React;
|
|
8
|
-
|
|
9
|
-
function _slicedToArray(arr, i) {
|
|
10
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function _arrayWithHoles(arr) {
|
|
14
|
-
if (Array.isArray(arr)) return arr;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function _iterableToArrayLimit(arr, i) {
|
|
18
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
19
|
-
|
|
20
|
-
if (_i == null) return;
|
|
21
|
-
var _arr = [];
|
|
22
|
-
var _n = true;
|
|
23
|
-
var _d = false;
|
|
24
|
-
|
|
25
|
-
var _s, _e;
|
|
26
|
-
|
|
27
|
-
try {
|
|
28
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
29
|
-
_arr.push(_s.value);
|
|
30
|
-
|
|
31
|
-
if (i && _arr.length === i) break;
|
|
32
|
-
}
|
|
33
|
-
} catch (err) {
|
|
34
|
-
_d = true;
|
|
35
|
-
_e = err;
|
|
36
|
-
} finally {
|
|
37
|
-
try {
|
|
38
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
39
|
-
} finally {
|
|
40
|
-
if (_d) throw _e;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return _arr;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
48
|
-
if (!o) return;
|
|
49
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
50
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
51
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
52
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
53
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function _arrayLikeToArray(arr, len) {
|
|
57
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
58
|
-
|
|
59
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
60
|
-
|
|
61
|
-
return arr2;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function _nonIterableRest() {
|
|
65
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
var CreateRarestepInterest = function CreateRarestepInterest() {
|
|
69
|
-
var _useState = React.useState(null),
|
|
70
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
71
|
-
state = _useState2[0],
|
|
72
|
-
setState = _useState2[1];
|
|
73
|
-
|
|
74
|
-
React.useEffect(function () {
|
|
75
|
-
setState(1);
|
|
76
|
-
}, []);
|
|
77
|
-
console.log(state);
|
|
78
|
-
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
79
|
-
className: "test"
|
|
80
|
-
}, /*#__PURE__*/React__default.createElement("h1", null, "Hie")));
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return CreateRarestepInterest;
|
|
84
|
-
|
|
85
|
-
})));
|
package/RarestepAddInterests.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
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.RarestepAddInterests = 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
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
|
-
return _extends.apply(this, arguments);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
28
|
-
if (!raw) {
|
|
29
|
-
raw = strings.slice(0);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
33
|
-
raw: {
|
|
34
|
-
value: Object.freeze(raw)
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var _templateObject;
|
|
40
|
-
var AddInterestWrapper = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n }\n"])), function (props) {
|
|
41
|
-
return props.theme.rareStepColors.ntrl50;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
var theme = {
|
|
45
|
-
breakpoints: ['40em', '52em', '64em'],
|
|
46
|
-
space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
|
|
47
|
-
fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
|
|
48
|
-
marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
|
|
49
|
-
letterSpacings: ['-0.5px', '0px', '+0.5px'],
|
|
50
|
-
radii: ['0px', '2px', '4px', '8px'],
|
|
51
|
-
borderRadius: '6px',
|
|
52
|
-
colors: {
|
|
53
|
-
primary: '#000',
|
|
54
|
-
base: '#4e4949',
|
|
55
|
-
baseLt: '#817c7c',
|
|
56
|
-
borderColor: '#d8d8d8',
|
|
57
|
-
ntrlMin: '#fff',
|
|
58
|
-
ntrlMinTen: '#e6e6e6',
|
|
59
|
-
gray: '#efefef',
|
|
60
|
-
darkerGray: '#454141'
|
|
61
|
-
},
|
|
62
|
-
rareStepColors: {
|
|
63
|
-
primary: '#202b58',
|
|
64
|
-
secondary: '#ef5c2d',
|
|
65
|
-
ntrlMin: '#ffffff',
|
|
66
|
-
ntrl40: '#f4f4f4',
|
|
67
|
-
ntrl50: '#808080',
|
|
68
|
-
ntrl60: '#e8e8e8',
|
|
69
|
-
ntrl70: '#252525',
|
|
70
|
-
ntrlMax: '#000000'
|
|
71
|
-
},
|
|
72
|
-
rareStepFontWeights: {
|
|
73
|
-
normal: 400,
|
|
74
|
-
medium: 500,
|
|
75
|
-
semiBold: 600,
|
|
76
|
-
bold: 700
|
|
77
|
-
},
|
|
78
|
-
rareStepFontSize: {
|
|
79
|
-
h1: '36px',
|
|
80
|
-
h2: '30px',
|
|
81
|
-
h3: '24px',
|
|
82
|
-
h4: '20px',
|
|
83
|
-
h5: '16px',
|
|
84
|
-
h6: '14px',
|
|
85
|
-
footerTitle: '16px'
|
|
86
|
-
},
|
|
87
|
-
rareStepPageSizes: {
|
|
88
|
-
mobile: '500px',
|
|
89
|
-
tablet: '768px',
|
|
90
|
-
desktop: '992px',
|
|
91
|
-
screenl: '1280px',
|
|
92
|
-
screenxl: '1680px',
|
|
93
|
-
screenxxl: '1920px',
|
|
94
|
-
container: '1600px'
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
var themed = (function (Component) {
|
|
99
|
-
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
100
|
-
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
101
|
-
theme: theme
|
|
102
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
103
|
-
ref: ref
|
|
104
|
-
})));
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
var RarestepAddInterest = function RarestepAddInterest() {
|
|
109
|
-
return /*#__PURE__*/React__default.createElement(AddInterestWrapper, null, /*#__PURE__*/React__default.createElement("div", {
|
|
110
|
-
className: "hello"
|
|
111
|
-
}, "Hello"));
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var index = themed(RarestepAddInterest);
|
|
115
|
-
|
|
116
|
-
return index;
|
|
117
|
-
|
|
118
|
-
})));
|
package/RarestepInterests.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
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.RarestepInterests = 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
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
|
-
return _extends.apply(this, arguments);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
28
|
-
if (!raw) {
|
|
29
|
-
raw = strings.slice(0);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
33
|
-
raw: {
|
|
34
|
-
value: Object.freeze(raw)
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var _templateObject;
|
|
40
|
-
var AddInterestWrapper = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n }\n"])), function (props) {
|
|
41
|
-
return props.theme.rareStepColors.ntrl50;
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
var theme = {
|
|
45
|
-
breakpoints: ['40em', '52em', '64em'],
|
|
46
|
-
space: ['0px', '4px', '8px', '16px', '32px', '64px', '128px', '256px', '512px'],
|
|
47
|
-
fontSizes: ['12px', '14px', '16px', '20px', '24px', '32px', '48px', '64px', '72px'],
|
|
48
|
-
marginPaddings: ['0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem'],
|
|
49
|
-
letterSpacings: ['-0.5px', '0px', '+0.5px'],
|
|
50
|
-
radii: ['0px', '2px', '4px', '8px'],
|
|
51
|
-
borderRadius: '6px',
|
|
52
|
-
colors: {
|
|
53
|
-
primary: '#000',
|
|
54
|
-
base: '#4e4949',
|
|
55
|
-
baseLt: '#817c7c',
|
|
56
|
-
borderColor: '#d8d8d8',
|
|
57
|
-
ntrlMin: '#fff',
|
|
58
|
-
ntrlMinTen: '#e6e6e6',
|
|
59
|
-
gray: '#efefef',
|
|
60
|
-
darkerGray: '#454141'
|
|
61
|
-
},
|
|
62
|
-
rareStepColors: {
|
|
63
|
-
primary: '#202b58',
|
|
64
|
-
secondary: '#ef5c2d',
|
|
65
|
-
ntrlMin: '#ffffff',
|
|
66
|
-
ntrl40: '#f4f4f4',
|
|
67
|
-
ntrl50: '#808080',
|
|
68
|
-
ntrl60: '#e8e8e8',
|
|
69
|
-
ntrl70: '#252525',
|
|
70
|
-
ntrlMax: '#000000'
|
|
71
|
-
},
|
|
72
|
-
rareStepFontWeights: {
|
|
73
|
-
normal: 400,
|
|
74
|
-
medium: 500,
|
|
75
|
-
semiBold: 600,
|
|
76
|
-
bold: 700
|
|
77
|
-
},
|
|
78
|
-
rareStepFontSize: {
|
|
79
|
-
h1: '36px',
|
|
80
|
-
h2: '30px',
|
|
81
|
-
h3: '24px',
|
|
82
|
-
h4: '20px',
|
|
83
|
-
h5: '16px',
|
|
84
|
-
h6: '14px',
|
|
85
|
-
footerTitle: '16px'
|
|
86
|
-
},
|
|
87
|
-
rareStepPageSizes: {
|
|
88
|
-
mobile: '500px',
|
|
89
|
-
tablet: '768px',
|
|
90
|
-
desktop: '992px',
|
|
91
|
-
screenl: '1280px',
|
|
92
|
-
screenxl: '1680px',
|
|
93
|
-
screenxxl: '1920px',
|
|
94
|
-
container: '1600px'
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
var themed = (function (Component) {
|
|
99
|
-
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
100
|
-
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
101
|
-
theme: theme
|
|
102
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
103
|
-
ref: ref
|
|
104
|
-
})));
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
var RarestepAddInterest = function RarestepAddInterest() {
|
|
109
|
-
return /*#__PURE__*/React__default.createElement(AddInterestWrapper, null, /*#__PURE__*/React__default.createElement("div", {
|
|
110
|
-
className: "hello"
|
|
111
|
-
}, "Hello"));
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
var index = themed(RarestepAddInterest);
|
|
115
|
-
|
|
116
|
-
return index;
|
|
117
|
-
|
|
118
|
-
})));
|