@bento-core/query-bar 1.0.0-c3dc.0 → 1.0.0-c3dc.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.
@@ -27,7 +27,8 @@ const QueryBarGenerator = function QueryBarGenerator() {
27
27
  let uiConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _config.default;
28
28
  const {
29
29
  config,
30
- functions
30
+ functions,
31
+ customStyles
31
32
  } = uiConfig;
32
33
  const {
33
34
  CHECKBOX
@@ -41,7 +42,7 @@ const QueryBarGenerator = function QueryBarGenerator() {
41
42
  const resetFacetCheckbox = functions && typeof functions.resetFacetCheckbox === 'function' ? functions.resetFacetCheckbox : _config.default.functions.resetFacetCheckbox;
42
43
  const resetFacetSlider = functions && typeof functions.resetFacetSlider === 'function' ? functions.resetFacetSlider : _config.default.functions.resetFacetSlider;
43
44
  return {
44
- QueryBar: (0, _core.withStyles)(_styles.default, {
45
+ QueryBar: (0, _core.withStyles)(customStyles || _styles.default, {
45
46
  withTheme: true
46
47
  })(props => {
47
48
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/query-bar",
3
- "version": "1.0.0-c3dc.0",
3
+ "version": "1.0.0-c3dc.1",
4
4
  "description": "This package provides the Query Bar component that displays the current Facet Search and Local Find filters on the Dashboard/Explore page. It also provides the direct ability to reset all or some of the filters with the click of a button. It is designed to be implemented directly with the:",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@ import DEFAULT_CONFIG from './config';
13
13
  * @returns {object} { QueryBar }
14
14
  */
15
15
  export const QueryBarGenerator = (uiConfig = DEFAULT_CONFIG) => {
16
- const { config, functions } = uiConfig;
16
+ const { config, functions, customStyles } = uiConfig;
17
17
  const { CHECKBOX } = InputTypes;
18
18
 
19
19
  const maxItems = config && typeof config.maxItems === 'number'
@@ -49,7 +49,8 @@ export const QueryBarGenerator = (uiConfig = DEFAULT_CONFIG) => {
49
49
  : DEFAULT_CONFIG.functions.resetFacetSlider;
50
50
 
51
51
  return {
52
- QueryBar: withStyles(DEFAULT_STYLES, { withTheme: true })((props) => {
52
+ QueryBar: withStyles(customStyles || DEFAULT_STYLES,
53
+ { withTheme: true })((props) => {
53
54
  const { statusReducer, localFind, classes } = props;
54
55
 
55
56
  const { autocomplete, upload } = localFind;