@bento-core/facet-filter 1.0.1-ccdihub.3 → 1.0.1-ccdihub.5

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.
@@ -118,7 +118,7 @@ const styles = () => ({
118
118
  marginRight: 'Auto',
119
119
  paddingRight: '20px'
120
120
  },
121
- minValue: props => ({
121
+ minValue: props => props.facet.style && props.facet.style.minValue ? props.facet.style.minValue : {
122
122
  fontFamily: 'Nunito',
123
123
  fontSize: '15px',
124
124
  color: '#000000',
@@ -126,57 +126,57 @@ const styles = () => ({
126
126
  float: 'left',
127
127
  width: '75px',
128
128
  display: 'flex'
129
- }),
130
- maxValue: props => ({
129
+ },
130
+ maxValue: props => props.facet.style && props.facet.style.maxValue ? props.facet.style.maxValue : {
131
131
  fontFamily: 'Nunito',
132
132
  fontSize: '15px',
133
133
  color: '#000000',
134
134
  float: 'right',
135
135
  marginBottom: '0px',
136
136
  display: 'flex'
137
- }),
138
- rail: props => ({
137
+ },
138
+ rail: props => props.facet.style && props.facet.style.rail ? props.facet.style.rail : {
139
139
  borderRadius: 4,
140
140
  height: 6,
141
141
  background: '#142D64'
142
- }),
143
- minInputLabel: props => ({
142
+ },
143
+ minInputLabel: props => props.facet.style && props.facet.style.minInputLabel ? props.facet.style.minInputLabel : {
144
144
  float: 'left',
145
145
  lineHeight: '34px',
146
146
  marginRight: '5px'
147
- }),
148
- maxInputLabel: props => ({
147
+ },
148
+ maxInputLabel: props => props.facet.style && props.facet.style.maxInputLabel ? props.facet.style.maxInputLabel : {
149
149
  float: 'left',
150
150
  lineHeight: '34px',
151
151
  marginRight: '5px'
152
- }),
153
- thumb: props => ({
152
+ },
153
+ thumb: props => props.facet.style && props.facet.style.thumb ? props.facet.style.thumb : {
154
154
  height: 16,
155
155
  width: 16,
156
156
  background: '#10A075'
157
- }),
158
- invalidThumb: props => ({
157
+ },
158
+ invalidThumb: props => props.facet.style && props.facet.style.invalidThumb ? props.facet.style.invalidThumb : {
159
159
  height: 16,
160
160
  width: 16,
161
161
  background: '#F44336'
162
- }),
163
- track: props => ({
162
+ },
163
+ track: props => props.facet.style && props.facet.style.track ? props.facet.style.track : {
164
164
  borderRadius: 4,
165
165
  height: 6,
166
166
  background: '#10A075',
167
167
  '&~&': {
168
168
  background: '#142D64'
169
169
  }
170
- }),
171
- invalidTrack: props => ({
170
+ },
171
+ invalidTrack: props => props.facet.style && props.facet.style.invalidTrack ? props.facet.style.invalidTrack : {
172
172
  borderRadius: 4,
173
173
  height: 6,
174
174
  background: '#F44336',
175
175
  '&~&': {
176
176
  background: '#142D64'
177
177
  }
178
- }),
179
- upperBound: props => ({
178
+ },
179
+ upperBound: props => props.facet.style && props.facet.style.upperBound ? props.facet.style.upperBound : {
180
180
  fontFamily: 'Nunito',
181
181
  fontSize: '10px',
182
182
  color: '#000000',
@@ -184,8 +184,8 @@ const styles = () => ({
184
184
  marginLeft: 'Auto',
185
185
  marginRight: 'Auto',
186
186
  marginBottom: '15px'
187
- }),
188
- lowerBound: props => ({
187
+ },
188
+ lowerBound: props => props.facet.style && props.facet.style.lowerBound ? props.facet.style.lowerBound : {
189
189
  fontFamily: 'Nunito',
190
190
  fontSize: '10px',
191
191
  color: '#000000',
@@ -193,8 +193,8 @@ const styles = () => ({
193
193
  marginLeft: 'Auto',
194
194
  marginRight: 'Auto',
195
195
  marginBottom: '15px'
196
- }),
197
- sliderText: props => ({
196
+ },
197
+ sliderText: props => props.facet.style && props.facet.style.sliderText ? props.facet.style.sliderText : {
198
198
  color: '#10a075',
199
199
  lineHeight: '120%',
200
200
  fontFamily: 'Nunito',
@@ -204,8 +204,8 @@ const styles = () => ({
204
204
  textAlign: 'right',
205
205
  background: '#f5fdee',
206
206
  marginTop: '10px'
207
- }),
208
- invalidSliderText: props => ({
207
+ },
208
+ invalidSliderText: props => props.facet.style && props.facet.style.invalidSliderText ? props.facet.style.invalidSliderText : {
209
209
  color: '#D32F2F',
210
210
  lineHeight: '120%',
211
211
  fontFamily: 'Nunito',
@@ -215,18 +215,18 @@ const styles = () => ({
215
215
  textAlign: 'right',
216
216
  background: '#E57373',
217
217
  marginTop: '10px'
218
- }),
219
- sliderListItem: props => ({
218
+ },
219
+ sliderListItem: props => props.facet.style && props.facet.style.sliderListItem ? props.facet.style.sliderListItem : {
220
220
  height: '15px'
221
- }),
222
- listItemGutters: props => ({
221
+ },
222
+ listItemGutters: props => props.facet.style && props.facet.style.listItemGutters ? props.facet.style.listItemGutters : {
223
223
  display: 'flex',
224
224
  justifyContent: 'space-between',
225
225
  padding: '2px 5px 2px 8px'
226
- }),
227
- lowerUpperBound: props => ({
226
+ },
227
+ lowerUpperBound: props => props.facet.style && props.facet.style.lowerUpperBound ? props.facet.style.lowerUpperBound : {
228
228
  height: '15px'
229
- })
229
+ }
230
230
  });
231
231
  var _default = (0, _core.withStyles)(styles)(SliderView);
232
232
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/facet-filter",
3
- "version": "1.0.1-ccdihub.3",
3
+ "version": "1.0.1-ccdihub.5",
4
4
  "description": "### Bento core sidebar design:",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -136,115 +136,147 @@ const styles = () => ({
136
136
  marginRight: 'Auto',
137
137
  paddingRight: '20px',
138
138
  }),
139
- minValue: (props) => ({
140
- fontFamily: 'Nunito',
141
- fontSize: '15px',
142
- color: '#000000',
143
- marginBottom: '0px',
144
- float: 'left',
145
- width: '75px',
146
- display: 'flex',
147
- }),
148
- maxValue: (props) => ({
149
- fontFamily: 'Nunito',
150
- fontSize: '15px',
151
- color: '#000000',
152
- float: 'right',
153
- marginBottom: '0px',
154
- display: 'flex',
155
- }),
156
- rail: (props) => ({
157
- borderRadius: 4,
158
- height: 6,
159
- background: '#142D64',
160
- }),
161
- minInputLabel: (props) => ({
162
- float: 'left',
163
- lineHeight: '34px',
164
- marginRight: '5px',
165
- }),
166
- maxInputLabel: (props) => ({
167
- float: 'left',
168
- lineHeight: '34px',
169
- marginRight: '5px',
170
- }),
171
- thumb: (props) => ({
172
- height: 16,
173
- width: 16,
174
- background: '#10A075',
175
- }),
176
- invalidThumb: (props) => ({
177
- height: 16,
178
- width: 16,
179
- background: '#F44336',
180
- }),
181
- track: (props) => ({
182
- borderRadius: 4,
183
- height: 6,
184
- background: '#10A075',
185
- '&~&': {
186
- background: '#142D64',
187
- },
188
- }),
189
- invalidTrack: (props) => ({
190
- borderRadius: 4,
191
- height: 6,
192
- background: '#F44336',
193
- '&~&': {
139
+ minValue: (props) => (props.facet.style && props.facet.style.minValue
140
+ ? props.facet.style.minValue
141
+ : {
142
+ fontFamily: 'Nunito',
143
+ fontSize: '15px',
144
+ color: '#000000',
145
+ marginBottom: '0px',
146
+ float: 'left',
147
+ width: '75px',
148
+ display: 'flex',
149
+ }),
150
+ maxValue: (props) => (props.facet.style && props.facet.style.maxValue
151
+ ? props.facet.style.maxValue
152
+ : {
153
+ fontFamily: 'Nunito',
154
+ fontSize: '15px',
155
+ color: '#000000',
156
+ float: 'right',
157
+ marginBottom: '0px',
158
+ display: 'flex',
159
+ }),
160
+ rail: (props) => (props.facet.style && props.facet.style.rail
161
+ ? props.facet.style.rail
162
+ : {
163
+ borderRadius: 4,
164
+ height: 6,
194
165
  background: '#142D64',
195
- },
196
- }),
197
- upperBound: (props) => ({
198
- fontFamily: 'Nunito',
199
- fontSize: '10px',
200
- color: '#000000',
201
- float: 'right',
202
- marginLeft: 'Auto',
203
- marginRight: 'Auto',
204
- marginBottom: '15px',
205
- }),
206
- lowerBound: (props) => ({
207
- fontFamily: 'Nunito',
208
- fontSize: '10px',
209
- color: '#000000',
210
- float: 'left',
211
- marginLeft: 'Auto',
212
- marginRight: 'Auto',
213
- marginBottom: '15px',
214
- }),
215
- sliderText: (props) => ({
216
- color: '#10a075',
217
- lineHeight: '120%',
218
- fontFamily: 'Nunito',
219
- fontSize: '14px',
220
- padding: '5px 15px 5px 0px',
221
- width: '100%',
222
- textAlign: 'right',
223
- background: '#f5fdee',
224
- marginTop: '10px',
225
- }),
226
- invalidSliderText: (props) => ({
227
- color: '#D32F2F',
228
- lineHeight: '120%',
229
- fontFamily: 'Nunito',
230
- fontSize: '14px',
231
- padding: '5px 15px 5px 0px',
232
- width: '100%',
233
- textAlign: 'right',
234
- background: '#E57373',
235
- marginTop: '10px',
236
- }),
237
- sliderListItem: (props) => ({
238
- height: '15px',
239
- }),
240
- listItemGutters: (props) => ({
241
- display: 'flex',
242
- justifyContent: 'space-between',
243
- padding: '2px 5px 2px 8px',
244
- }),
245
- lowerUpperBound: (props) => ({
246
- height: '15px',
247
- }),
166
+ }),
167
+ minInputLabel: (props) => (props.facet.style && props.facet.style.minInputLabel
168
+ ? props.facet.style.minInputLabel
169
+ : {
170
+ float: 'left',
171
+ lineHeight: '34px',
172
+ marginRight: '5px',
173
+ }),
174
+ maxInputLabel: (props) => (props.facet.style && props.facet.style.maxInputLabel
175
+ ? props.facet.style.maxInputLabel
176
+ : {
177
+ float: 'left',
178
+ lineHeight: '34px',
179
+ marginRight: '5px',
180
+ }),
181
+ thumb: (props) => (props.facet.style && props.facet.style.thumb
182
+ ? props.facet.style.thumb
183
+ : {
184
+ height: 16,
185
+ width: 16,
186
+ background: '#10A075',
187
+ }),
188
+ invalidThumb: (props) => (props.facet.style && props.facet.style.invalidThumb
189
+ ? props.facet.style.invalidThumb
190
+ : {
191
+ height: 16,
192
+ width: 16,
193
+ background: '#F44336',
194
+ }),
195
+ track: (props) => (props.facet.style && props.facet.style.track
196
+ ? props.facet.style.track
197
+ : {
198
+ borderRadius: 4,
199
+ height: 6,
200
+ background: '#10A075',
201
+ '&~&': {
202
+ background: '#142D64',
203
+ },
204
+ }),
205
+ invalidTrack: (props) => (props.facet.style && props.facet.style.invalidTrack
206
+ ? props.facet.style.invalidTrack
207
+ : {
208
+ borderRadius: 4,
209
+ height: 6,
210
+ background: '#F44336',
211
+ '&~&': {
212
+ background: '#142D64',
213
+ },
214
+ }),
215
+ upperBound: (props) => (props.facet.style && props.facet.style.upperBound
216
+ ? props.facet.style.upperBound
217
+ : {
218
+ fontFamily: 'Nunito',
219
+ fontSize: '10px',
220
+ color: '#000000',
221
+ float: 'right',
222
+ marginLeft: 'Auto',
223
+ marginRight: 'Auto',
224
+ marginBottom: '15px',
225
+ }),
226
+ lowerBound: (props) => (props.facet.style && props.facet.style.lowerBound
227
+ ? props.facet.style.lowerBound
228
+ : {
229
+ fontFamily: 'Nunito',
230
+ fontSize: '10px',
231
+ color: '#000000',
232
+ float: 'left',
233
+ marginLeft: 'Auto',
234
+ marginRight: 'Auto',
235
+ marginBottom: '15px',
236
+ }),
237
+ sliderText: (props) => (props.facet.style && props.facet.style.sliderText
238
+ ? props.facet.style.sliderText
239
+ : {
240
+ color: '#10a075',
241
+ lineHeight: '120%',
242
+ fontFamily: 'Nunito',
243
+ fontSize: '14px',
244
+ padding: '5px 15px 5px 0px',
245
+ width: '100%',
246
+ textAlign: 'right',
247
+ background: '#f5fdee',
248
+ marginTop: '10px',
249
+ }),
250
+ invalidSliderText: (props) => (props.facet.style && props.facet.style.invalidSliderText
251
+ ? props.facet.style.invalidSliderText
252
+ : {
253
+ color: '#D32F2F',
254
+ lineHeight: '120%',
255
+ fontFamily: 'Nunito',
256
+ fontSize: '14px',
257
+ padding: '5px 15px 5px 0px',
258
+ width: '100%',
259
+ textAlign: 'right',
260
+ background: '#E57373',
261
+ marginTop: '10px',
262
+ }),
263
+ sliderListItem: (props) => (props.facet.style && props.facet.style.sliderListItem
264
+ ? props.facet.style.sliderListItem
265
+ : {
266
+ height: '15px',
267
+ }),
268
+ listItemGutters: (props) => (props.facet.style && props.facet.style.listItemGutters
269
+ ? props.facet.style.listItemGutters
270
+ : {
271
+ display: 'flex',
272
+ justifyContent: 'space-between',
273
+ padding: '2px 5px 2px 8px',
274
+ }),
275
+ lowerUpperBound: (props) => (props.facet.style && props.facet.style.lowerUpperBound
276
+ ? props.facet.style.lowerUpperBound
277
+ : {
278
+ height: '15px',
279
+ }),
248
280
  });
249
281
 
250
282
  export default withStyles(styles)(SliderView);