@bonlineza/luxity-lib 2.28.0 → 2.29.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.
@@ -9382,42 +9382,6 @@
9382
9382
 
9383
9383
  var NotificationDropDown$1 = themed(NotificationDropDown);
9384
9384
 
9385
- var BrandSelector = function BrandSelector(_ref) {
9386
- var onChange = _ref.onChange,
9387
- category = _ref.category,
9388
- graphApi = _ref.graphApi,
9389
- getGraphQuery = _ref.getGraphQuery,
9390
- resultProcessor = _ref.resultProcessor,
9391
- requestInstance = _ref.requestInstance;
9392
- return /*#__PURE__*/React__default.createElement(LuxityGraphQLDropdownSelector, {
9393
- baseQueryLimit: 9999,
9394
- title: "Brands",
9395
- queryId: "getBrands",
9396
- baseClass: "brand-selector",
9397
- identifier: "brand-selector",
9398
- searchPlaceHolder: "Search brands",
9399
- query_arguments: category,
9400
- onChange: onChange,
9401
- graphApi: graphApi,
9402
- getGraphQuery: getGraphQuery,
9403
- resultProcessor: resultProcessor,
9404
- requestInstance: requestInstance
9405
- });
9406
- };
9407
-
9408
- BrandSelector.defaultProps = {
9409
- resultProcessor: function resultProcessor(result) {
9410
- return result.data.data.luxity_brands.data.map(function (_ref2) {
9411
- var id = _ref2.id,
9412
- name = _ref2.name;
9413
- return {
9414
- label: name,
9415
- value: id
9416
- };
9417
- });
9418
- }
9419
- };
9420
-
9421
9385
  var _templateObject$E, _templateObject2$6;
9422
9386
  var ALL_ITEM = {
9423
9387
  id: 'ALL',
@@ -9750,10 +9714,7 @@
9750
9714
  var _this$state = _this.state,
9751
9715
  limit = _this$state.limit,
9752
9716
  category = _this$state.category,
9753
- nameFilter = _this$state.nameFilter,
9754
- brands = _this$state.brands,
9755
- models = _this$state.models,
9756
- materials = _this$state.materials;
9717
+ nameFilter = _this$state.nameFilter;
9757
9718
  var _this$props = _this.props,
9758
9719
  title = _this$props.title,
9759
9720
  baseClass = _this$props.baseClass,
@@ -9774,10 +9735,10 @@
9774
9735
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
9775
9736
  triggerRequest: function triggerRequest() {
9776
9737
  return requestInstance.post(graphApi, {
9777
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
9738
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
9778
9739
  });
9779
9740
  },
9780
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
9741
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
9781
9742
  identifier: identifier,
9782
9743
  ref: _this.multiSelectorRef,
9783
9744
  onChange: _this.onChange,
@@ -9790,9 +9751,6 @@
9790
9751
  _this.state = {
9791
9752
  limit: props.baseQueryLimit,
9792
9753
  category: props.category,
9793
- brands: props.brands,
9794
- models: props.models,
9795
- materials: props.materials,
9796
9754
  nameFilter: ''
9797
9755
  };
9798
9756
  return _this;
@@ -9801,23 +9759,11 @@
9801
9759
  _createClass(LuxityGraphQLMultiselector, [{
9802
9760
  key: "componentDidUpdate",
9803
9761
  value: function componentDidUpdate(prevProps) {
9804
- var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
9762
+ var _this$multiSelectorRe;
9805
9763
 
9806
9764
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
9807
9765
  this.multiSelectorRef.current.emptySelected();
9808
9766
  }
9809
-
9810
- if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
9811
- this.multiSelectorRef.current.emptySelected();
9812
- }
9813
-
9814
- if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
9815
- this.multiSelectorRef.current.emptySelected();
9816
- }
9817
-
9818
- if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
9819
- this.multiSelectorRef.current.emptySelected();
9820
- }
9821
9767
  }
9822
9768
  }], [{
9823
9769
  key: "getDerivedStateFromProps",
@@ -9828,24 +9774,6 @@
9828
9774
  };
9829
9775
  }
9830
9776
 
9831
- if (prevState.brands !== props.brands) {
9832
- return {
9833
- brands: props.brands
9834
- };
9835
- }
9836
-
9837
- if (prevState.models !== props.models) {
9838
- return {
9839
- models: props.models
9840
- };
9841
- }
9842
-
9843
- if (prevState.materials !== props.materials) {
9844
- return {
9845
- materials: props.materials
9846
- };
9847
- }
9848
-
9849
9777
  return null;
9850
9778
  }
9851
9779
  }]);
@@ -9887,6 +9815,38 @@
9887
9815
  return selected ? /*#__PURE__*/React__default.createElement(PrimaryButton$1, props, item.name) : /*#__PURE__*/React__default.createElement(UnselectedButton, props, item.name);
9888
9816
  };
9889
9817
 
9818
+ var BrandSelector = function BrandSelector(_ref) {
9819
+ var onChange = _ref.onChange,
9820
+ category = _ref.category,
9821
+ graphApi = _ref.graphApi,
9822
+ itemRenderer = _ref.itemRenderer,
9823
+ getGraphQuery = _ref.getGraphQuery,
9824
+ resultProcessor = _ref.resultProcessor,
9825
+ requestInstance = _ref.requestInstance;
9826
+ return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
9827
+ baseQueryLimit: 16,
9828
+ title: "Brands",
9829
+ queryId: "getBrands",
9830
+ baseClass: "brand-selector",
9831
+ identifier: "brand-selector",
9832
+ searchPlaceHolder: "Search brands",
9833
+ category: category,
9834
+ onChange: onChange,
9835
+ graphApi: graphApi,
9836
+ itemRenderer: itemRenderer,
9837
+ getGraphQuery: getGraphQuery,
9838
+ resultProcessor: resultProcessor,
9839
+ requestInstance: requestInstance
9840
+ });
9841
+ };
9842
+
9843
+ BrandSelector.defaultProps = {
9844
+ itemRenderer: ItemRenderer,
9845
+ resultProcessor: function resultProcessor(result) {
9846
+ return result.data.data.luxity_brands;
9847
+ }
9848
+ };
9849
+
9890
9850
  var StyleSelector = function StyleSelector(_ref) {
9891
9851
  var onChange = _ref.onChange,
9892
9852
  category = _ref.category,
@@ -9894,10 +9854,7 @@
9894
9854
  itemRenderer = _ref.itemRenderer,
9895
9855
  getGraphQuery = _ref.getGraphQuery,
9896
9856
  resultProcessor = _ref.resultProcessor,
9897
- requestInstance = _ref.requestInstance,
9898
- brands = _ref.brands,
9899
- models = _ref.models,
9900
- materials = _ref.materials;
9857
+ requestInstance = _ref.requestInstance;
9901
9858
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
9902
9859
  title: "Styles",
9903
9860
  queryId: "getStyles",
@@ -9906,9 +9863,6 @@
9906
9863
  identifier: "style-selector",
9907
9864
  searchPlaceHolder: "Search Styles",
9908
9865
  category: category,
9909
- brands: brands,
9910
- models: models,
9911
- materials: materials,
9912
9866
  onChange: onChange,
9913
9867
  graphApi: graphApi,
9914
9868
  itemRenderer: itemRenderer,
@@ -817,10 +817,7 @@
817
817
  var _this$state = _this.state,
818
818
  limit = _this$state.limit,
819
819
  category = _this$state.category,
820
- nameFilter = _this$state.nameFilter,
821
- brands = _this$state.brands,
822
- models = _this$state.models,
823
- materials = _this$state.materials;
820
+ nameFilter = _this$state.nameFilter;
824
821
  var _this$props = _this.props,
825
822
  title = _this$props.title,
826
823
  baseClass = _this$props.baseClass,
@@ -841,10 +838,10 @@
841
838
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
842
839
  triggerRequest: function triggerRequest() {
843
840
  return requestInstance.post(graphApi, {
844
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
841
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
845
842
  });
846
843
  },
847
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
844
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
848
845
  identifier: identifier,
849
846
  ref: _this.multiSelectorRef,
850
847
  onChange: _this.onChange,
@@ -857,9 +854,6 @@
857
854
  _this.state = {
858
855
  limit: props.baseQueryLimit,
859
856
  category: props.category,
860
- brands: props.brands,
861
- models: props.models,
862
- materials: props.materials,
863
857
  nameFilter: ''
864
858
  };
865
859
  return _this;
@@ -868,23 +862,11 @@
868
862
  _createClass(LuxityGraphQLMultiselector, [{
869
863
  key: "componentDidUpdate",
870
864
  value: function componentDidUpdate(prevProps) {
871
- var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
865
+ var _this$multiSelectorRe;
872
866
 
873
867
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
874
868
  this.multiSelectorRef.current.emptySelected();
875
869
  }
876
-
877
- if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
878
- this.multiSelectorRef.current.emptySelected();
879
- }
880
-
881
- if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
882
- this.multiSelectorRef.current.emptySelected();
883
- }
884
-
885
- if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
886
- this.multiSelectorRef.current.emptySelected();
887
- }
888
870
  }
889
871
  }], [{
890
872
  key: "getDerivedStateFromProps",
@@ -895,24 +877,6 @@
895
877
  };
896
878
  }
897
879
 
898
- if (prevState.brands !== props.brands) {
899
- return {
900
- brands: props.brands
901
- };
902
- }
903
-
904
- if (prevState.models !== props.models) {
905
- return {
906
- models: props.models
907
- };
908
- }
909
-
910
- if (prevState.materials !== props.materials) {
911
- return {
912
- materials: props.materials
913
- };
914
- }
915
-
916
880
  return null;
917
881
  }
918
882
  }]);
@@ -9382,42 +9382,6 @@
9382
9382
 
9383
9383
  var NotificationDropDown$1 = themed(NotificationDropDown);
9384
9384
 
9385
- var BrandSelector = function BrandSelector(_ref) {
9386
- var onChange = _ref.onChange,
9387
- category = _ref.category,
9388
- graphApi = _ref.graphApi,
9389
- getGraphQuery = _ref.getGraphQuery,
9390
- resultProcessor = _ref.resultProcessor,
9391
- requestInstance = _ref.requestInstance;
9392
- return /*#__PURE__*/React__default.createElement(LuxityGraphQLDropdownSelector, {
9393
- baseQueryLimit: 9999,
9394
- title: "Brands",
9395
- queryId: "getBrands",
9396
- baseClass: "brand-selector",
9397
- identifier: "brand-selector",
9398
- searchPlaceHolder: "Search brands",
9399
- query_arguments: category,
9400
- onChange: onChange,
9401
- graphApi: graphApi,
9402
- getGraphQuery: getGraphQuery,
9403
- resultProcessor: resultProcessor,
9404
- requestInstance: requestInstance
9405
- });
9406
- };
9407
-
9408
- BrandSelector.defaultProps = {
9409
- resultProcessor: function resultProcessor(result) {
9410
- return result.data.data.luxity_brands.data.map(function (_ref2) {
9411
- var id = _ref2.id,
9412
- name = _ref2.name;
9413
- return {
9414
- label: name,
9415
- value: id
9416
- };
9417
- });
9418
- }
9419
- };
9420
-
9421
9385
  var _templateObject$E, _templateObject2$6;
9422
9386
  var ALL_ITEM = {
9423
9387
  id: 'ALL',
@@ -9750,10 +9714,7 @@
9750
9714
  var _this$state = _this.state,
9751
9715
  limit = _this$state.limit,
9752
9716
  category = _this$state.category,
9753
- nameFilter = _this$state.nameFilter,
9754
- brands = _this$state.brands,
9755
- models = _this$state.models,
9756
- materials = _this$state.materials;
9717
+ nameFilter = _this$state.nameFilter;
9757
9718
  var _this$props = _this.props,
9758
9719
  title = _this$props.title,
9759
9720
  baseClass = _this$props.baseClass,
@@ -9774,10 +9735,10 @@
9774
9735
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
9775
9736
  triggerRequest: function triggerRequest() {
9776
9737
  return requestInstance.post(graphApi, {
9777
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
9738
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
9778
9739
  });
9779
9740
  },
9780
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
9741
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
9781
9742
  identifier: identifier,
9782
9743
  ref: _this.multiSelectorRef,
9783
9744
  onChange: _this.onChange,
@@ -9790,9 +9751,6 @@
9790
9751
  _this.state = {
9791
9752
  limit: props.baseQueryLimit,
9792
9753
  category: props.category,
9793
- brands: props.brands,
9794
- models: props.models,
9795
- materials: props.materials,
9796
9754
  nameFilter: ''
9797
9755
  };
9798
9756
  return _this;
@@ -9801,23 +9759,11 @@
9801
9759
  _createClass(LuxityGraphQLMultiselector, [{
9802
9760
  key: "componentDidUpdate",
9803
9761
  value: function componentDidUpdate(prevProps) {
9804
- var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
9762
+ var _this$multiSelectorRe;
9805
9763
 
9806
9764
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
9807
9765
  this.multiSelectorRef.current.emptySelected();
9808
9766
  }
9809
-
9810
- if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
9811
- this.multiSelectorRef.current.emptySelected();
9812
- }
9813
-
9814
- if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
9815
- this.multiSelectorRef.current.emptySelected();
9816
- }
9817
-
9818
- if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
9819
- this.multiSelectorRef.current.emptySelected();
9820
- }
9821
9767
  }
9822
9768
  }], [{
9823
9769
  key: "getDerivedStateFromProps",
@@ -9828,24 +9774,6 @@
9828
9774
  };
9829
9775
  }
9830
9776
 
9831
- if (prevState.brands !== props.brands) {
9832
- return {
9833
- brands: props.brands
9834
- };
9835
- }
9836
-
9837
- if (prevState.models !== props.models) {
9838
- return {
9839
- models: props.models
9840
- };
9841
- }
9842
-
9843
- if (prevState.materials !== props.materials) {
9844
- return {
9845
- materials: props.materials
9846
- };
9847
- }
9848
-
9849
9777
  return null;
9850
9778
  }
9851
9779
  }]);
@@ -9887,6 +9815,38 @@
9887
9815
  return selected ? /*#__PURE__*/React__default.createElement(PrimaryButton$1, props, item.name) : /*#__PURE__*/React__default.createElement(UnselectedButton, props, item.name);
9888
9816
  };
9889
9817
 
9818
+ var BrandSelector = function BrandSelector(_ref) {
9819
+ var onChange = _ref.onChange,
9820
+ category = _ref.category,
9821
+ graphApi = _ref.graphApi,
9822
+ itemRenderer = _ref.itemRenderer,
9823
+ getGraphQuery = _ref.getGraphQuery,
9824
+ resultProcessor = _ref.resultProcessor,
9825
+ requestInstance = _ref.requestInstance;
9826
+ return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
9827
+ baseQueryLimit: 16,
9828
+ title: "Brands",
9829
+ queryId: "getBrands",
9830
+ baseClass: "brand-selector",
9831
+ identifier: "brand-selector",
9832
+ searchPlaceHolder: "Search brands",
9833
+ category: category,
9834
+ onChange: onChange,
9835
+ graphApi: graphApi,
9836
+ itemRenderer: itemRenderer,
9837
+ getGraphQuery: getGraphQuery,
9838
+ resultProcessor: resultProcessor,
9839
+ requestInstance: requestInstance
9840
+ });
9841
+ };
9842
+
9843
+ BrandSelector.defaultProps = {
9844
+ itemRenderer: ItemRenderer,
9845
+ resultProcessor: function resultProcessor(result) {
9846
+ return result.data.data.luxity_brands;
9847
+ }
9848
+ };
9849
+
9890
9850
  var StyleSelector = function StyleSelector(_ref) {
9891
9851
  var onChange = _ref.onChange,
9892
9852
  category = _ref.category,
@@ -9894,10 +9854,7 @@
9894
9854
  itemRenderer = _ref.itemRenderer,
9895
9855
  getGraphQuery = _ref.getGraphQuery,
9896
9856
  resultProcessor = _ref.resultProcessor,
9897
- requestInstance = _ref.requestInstance,
9898
- brands = _ref.brands,
9899
- models = _ref.models,
9900
- materials = _ref.materials;
9857
+ requestInstance = _ref.requestInstance;
9901
9858
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
9902
9859
  title: "Styles",
9903
9860
  queryId: "getStyles",
@@ -9906,9 +9863,6 @@
9906
9863
  identifier: "style-selector",
9907
9864
  searchPlaceHolder: "Search Styles",
9908
9865
  category: category,
9909
- brands: brands,
9910
- models: models,
9911
- materials: materials,
9912
9866
  onChange: onChange,
9913
9867
  graphApi: graphApi,
9914
9868
  itemRenderer: itemRenderer,
package/ModelSelector.js CHANGED
@@ -9382,42 +9382,6 @@
9382
9382
 
9383
9383
  var NotificationDropDown$1 = themed(NotificationDropDown);
9384
9384
 
9385
- var BrandSelector = function BrandSelector(_ref) {
9386
- var onChange = _ref.onChange,
9387
- category = _ref.category,
9388
- graphApi = _ref.graphApi,
9389
- getGraphQuery = _ref.getGraphQuery,
9390
- resultProcessor = _ref.resultProcessor,
9391
- requestInstance = _ref.requestInstance;
9392
- return /*#__PURE__*/React__default.createElement(LuxityGraphQLDropdownSelector, {
9393
- baseQueryLimit: 9999,
9394
- title: "Brands",
9395
- queryId: "getBrands",
9396
- baseClass: "brand-selector",
9397
- identifier: "brand-selector",
9398
- searchPlaceHolder: "Search brands",
9399
- query_arguments: category,
9400
- onChange: onChange,
9401
- graphApi: graphApi,
9402
- getGraphQuery: getGraphQuery,
9403
- resultProcessor: resultProcessor,
9404
- requestInstance: requestInstance
9405
- });
9406
- };
9407
-
9408
- BrandSelector.defaultProps = {
9409
- resultProcessor: function resultProcessor(result) {
9410
- return result.data.data.luxity_brands.data.map(function (_ref2) {
9411
- var id = _ref2.id,
9412
- name = _ref2.name;
9413
- return {
9414
- label: name,
9415
- value: id
9416
- };
9417
- });
9418
- }
9419
- };
9420
-
9421
9385
  var _templateObject$E, _templateObject2$6;
9422
9386
  var ALL_ITEM = {
9423
9387
  id: 'ALL',
@@ -9750,10 +9714,7 @@
9750
9714
  var _this$state = _this.state,
9751
9715
  limit = _this$state.limit,
9752
9716
  category = _this$state.category,
9753
- nameFilter = _this$state.nameFilter,
9754
- brands = _this$state.brands,
9755
- models = _this$state.models,
9756
- materials = _this$state.materials;
9717
+ nameFilter = _this$state.nameFilter;
9757
9718
  var _this$props = _this.props,
9758
9719
  title = _this$props.title,
9759
9720
  baseClass = _this$props.baseClass,
@@ -9774,10 +9735,10 @@
9774
9735
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
9775
9736
  triggerRequest: function triggerRequest() {
9776
9737
  return requestInstance.post(graphApi, {
9777
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
9738
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
9778
9739
  });
9779
9740
  },
9780
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
9741
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
9781
9742
  identifier: identifier,
9782
9743
  ref: _this.multiSelectorRef,
9783
9744
  onChange: _this.onChange,
@@ -9790,9 +9751,6 @@
9790
9751
  _this.state = {
9791
9752
  limit: props.baseQueryLimit,
9792
9753
  category: props.category,
9793
- brands: props.brands,
9794
- models: props.models,
9795
- materials: props.materials,
9796
9754
  nameFilter: ''
9797
9755
  };
9798
9756
  return _this;
@@ -9801,23 +9759,11 @@
9801
9759
  _createClass(LuxityGraphQLMultiselector, [{
9802
9760
  key: "componentDidUpdate",
9803
9761
  value: function componentDidUpdate(prevProps) {
9804
- var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
9762
+ var _this$multiSelectorRe;
9805
9763
 
9806
9764
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
9807
9765
  this.multiSelectorRef.current.emptySelected();
9808
9766
  }
9809
-
9810
- if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
9811
- this.multiSelectorRef.current.emptySelected();
9812
- }
9813
-
9814
- if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
9815
- this.multiSelectorRef.current.emptySelected();
9816
- }
9817
-
9818
- if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
9819
- this.multiSelectorRef.current.emptySelected();
9820
- }
9821
9767
  }
9822
9768
  }], [{
9823
9769
  key: "getDerivedStateFromProps",
@@ -9828,24 +9774,6 @@
9828
9774
  };
9829
9775
  }
9830
9776
 
9831
- if (prevState.brands !== props.brands) {
9832
- return {
9833
- brands: props.brands
9834
- };
9835
- }
9836
-
9837
- if (prevState.models !== props.models) {
9838
- return {
9839
- models: props.models
9840
- };
9841
- }
9842
-
9843
- if (prevState.materials !== props.materials) {
9844
- return {
9845
- materials: props.materials
9846
- };
9847
- }
9848
-
9849
9777
  return null;
9850
9778
  }
9851
9779
  }]);
@@ -9887,6 +9815,38 @@
9887
9815
  return selected ? /*#__PURE__*/React__default.createElement(PrimaryButton$1, props, item.name) : /*#__PURE__*/React__default.createElement(UnselectedButton, props, item.name);
9888
9816
  };
9889
9817
 
9818
+ var BrandSelector = function BrandSelector(_ref) {
9819
+ var onChange = _ref.onChange,
9820
+ category = _ref.category,
9821
+ graphApi = _ref.graphApi,
9822
+ itemRenderer = _ref.itemRenderer,
9823
+ getGraphQuery = _ref.getGraphQuery,
9824
+ resultProcessor = _ref.resultProcessor,
9825
+ requestInstance = _ref.requestInstance;
9826
+ return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
9827
+ baseQueryLimit: 16,
9828
+ title: "Brands",
9829
+ queryId: "getBrands",
9830
+ baseClass: "brand-selector",
9831
+ identifier: "brand-selector",
9832
+ searchPlaceHolder: "Search brands",
9833
+ category: category,
9834
+ onChange: onChange,
9835
+ graphApi: graphApi,
9836
+ itemRenderer: itemRenderer,
9837
+ getGraphQuery: getGraphQuery,
9838
+ resultProcessor: resultProcessor,
9839
+ requestInstance: requestInstance
9840
+ });
9841
+ };
9842
+
9843
+ BrandSelector.defaultProps = {
9844
+ itemRenderer: ItemRenderer,
9845
+ resultProcessor: function resultProcessor(result) {
9846
+ return result.data.data.luxity_brands;
9847
+ }
9848
+ };
9849
+
9890
9850
  var StyleSelector = function StyleSelector(_ref) {
9891
9851
  var onChange = _ref.onChange,
9892
9852
  category = _ref.category,
@@ -9894,10 +9854,7 @@
9894
9854
  itemRenderer = _ref.itemRenderer,
9895
9855
  getGraphQuery = _ref.getGraphQuery,
9896
9856
  resultProcessor = _ref.resultProcessor,
9897
- requestInstance = _ref.requestInstance,
9898
- brands = _ref.brands,
9899
- models = _ref.models,
9900
- materials = _ref.materials;
9857
+ requestInstance = _ref.requestInstance;
9901
9858
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
9902
9859
  title: "Styles",
9903
9860
  queryId: "getStyles",
@@ -9906,9 +9863,6 @@
9906
9863
  identifier: "style-selector",
9907
9864
  searchPlaceHolder: "Search Styles",
9908
9865
  category: category,
9909
- brands: brands,
9910
- models: models,
9911
- materials: materials,
9912
9866
  onChange: onChange,
9913
9867
  graphApi: graphApi,
9914
9868
  itemRenderer: itemRenderer,
package/RareStepHeader.js CHANGED
@@ -304,6 +304,9 @@
304
304
  }
305
305
  };
306
306
 
307
+ React.useEffect(function () {
308
+ searchInputRef.current.focus();
309
+ }, []);
307
310
  return /*#__PURE__*/React__default.createElement(SearchContainer, {
308
311
  className: "header__search-container"
309
312
  }, /*#__PURE__*/React__default.createElement(SearchIcon, {