@bonlineza/luxity-lib 2.30.1 → 2.30.3

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/build/bundle.js CHANGED
@@ -9406,6 +9406,122 @@
9406
9406
  category: ''
9407
9407
  };
9408
9408
 
9409
+ var _templateObject$C;
9410
+ var ShoeSizeInputWrapper = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: row nowrap;\n justify-content: space-between;\n\n input[data-qe-id='masked-input-min'],\n input[data-qe-id='masked-input-max'] {\n flex-basis: 49%;\n border: 1px solid ", ";\n border-radius: 6px;\n background-color: ", ";\n padding: 10px;\n }\n\n @media (max-width: ", ") {\n flex-direction: column;\n input[data-qe-id='masked-input-min'] {\n margin-bottom: 10px;\n }\n input[data-qe-id='masked-input-min'],\n input[data-qe-id='masked-input-max'] {\n flex-basis: 100%;\n }\n }\n"])), function (props) {
9411
+ return props.theme.rareStepColors.primary;
9412
+ }, function (props) {
9413
+ return props.theme.rareStepColors.ntrl40;
9414
+ }, media.xs);
9415
+
9416
+ var debounceBuilder$2 = functions.debounced(50);
9417
+ var shoeSizeType = {
9418
+ Uk: 'Uk',
9419
+ Eu: 'Eu',
9420
+ Us: 'Us'
9421
+ };
9422
+
9423
+ var getMaxShoeSize = function getMaxShoeSize(euShoeSizes, ukShoeSizes, type) {
9424
+ var shoeSizes = ukShoeSizes;
9425
+
9426
+ if (type === (shoeSizeType === null || shoeSizeType === void 0 ? void 0 : shoeSizeType.Eu)) {
9427
+ shoeSizes = euShoeSizes;
9428
+ }
9429
+
9430
+ var sizes = shoeSizes.map(function (item) {
9431
+ return parseFloat(item.size);
9432
+ }); // Use the Math.max function to find the maximum size value
9433
+
9434
+ var maxSize = sizes.reduce(function (max, current) {
9435
+ return Math.max(max, current);
9436
+ }, -50);
9437
+ return maxSize;
9438
+ };
9439
+ /** UI Slider with minimum and max input fields give the ability to
9440
+ * select a shoe size range */
9441
+
9442
+
9443
+ var ShoeSizeRangeSelector = function ShoeSizeRangeSelector(_ref) {
9444
+ var onChange = _ref.onChange,
9445
+ euShoeSizes = _ref.euShoeSizes,
9446
+ ukShoeSizes = _ref.ukShoeSizes,
9447
+ sizeType = _ref.sizeType;
9448
+ var maxShoeSize = getMaxShoeSize(euShoeSizes, ukShoeSizes, sizeType);
9449
+
9450
+ var handleSlideChange = function handleSlideChange(value) {
9451
+ var min_shoe_size = value.min,
9452
+ max_shoe_size = value.max;
9453
+ onChange({
9454
+ min_shoe_size: min_shoe_size,
9455
+ max_shoe_size: max_shoe_size
9456
+ });
9457
+ };
9458
+
9459
+ var handleMinShoeSizeChange = function handleMinShoeSizeChange(targetValue, currMaxVal, manuallyChangeMinValue) {
9460
+ var value = parseInt(targetValue, 10);
9461
+ value = Number.isNaN(value) ? 0 : value;
9462
+ value = value > currMaxVal ? currMaxVal : value;
9463
+ debounceBuilder$2(function () {
9464
+ manuallyChangeMinValue(value);
9465
+ onChange({
9466
+ min_shoe_size: value,
9467
+ max_shoe_size: currMaxVal
9468
+ });
9469
+ });
9470
+ };
9471
+
9472
+ var handleMaxShoeSizeChange = function handleMaxShoeSizeChange(targetValue, currMinVal, manuallyChangeMaxValue) {
9473
+ var value = parseInt(targetValue, 10);
9474
+ value = Number.isNaN(value) ? 0 : value;
9475
+ value = value < currMinVal ? currMinVal : value;
9476
+ debounceBuilder$2(function () {
9477
+ manuallyChangeMaxValue(value);
9478
+ onChange({
9479
+ max_shoe_size: value,
9480
+ min_shoe_size: currMinVal
9481
+ });
9482
+ });
9483
+ };
9484
+
9485
+ return /*#__PURE__*/React__default.createElement("div", {
9486
+ className: "shoe-size-ranges"
9487
+ }, /*#__PURE__*/React__default.createElement(RangeSlider$1, {
9488
+ identifier: "shoe-size-range-slider",
9489
+ max: maxShoeSize,
9490
+ defaultMinValue: 1,
9491
+ min: 1,
9492
+ onChange: handleSlideChange,
9493
+ defaultMaxValue: maxShoeSize,
9494
+ title: "Shoe Size Ranges"
9495
+ }, function (_ref2) {
9496
+ var manuallyChangeMinValue = _ref2.manuallyChangeMinValue,
9497
+ manuallyChangeMaxValue = _ref2.manuallyChangeMaxValue,
9498
+ currMinVal = _ref2.currMinVal,
9499
+ currMaxVal = _ref2.currMaxVal;
9500
+ return /*#__PURE__*/React__default.createElement(ShoeSizeInputWrapper, null, /*#__PURE__*/React__default.createElement("input", {
9501
+ "data-qe-id": "masked-input-min",
9502
+ value: currMinVal,
9503
+ onChange: function onChange(value) {
9504
+ handleMinShoeSizeChange(value, currMaxVal, manuallyChangeMinValue);
9505
+ }
9506
+ }), /*#__PURE__*/React__default.createElement("input", {
9507
+ "data-qe-id": "masked-input-max",
9508
+ value: currMaxVal,
9509
+ onChange: function onChange(value) {
9510
+ handleMaxShoeSizeChange(value, currMinVal, manuallyChangeMaxValue);
9511
+ }
9512
+ }));
9513
+ }));
9514
+ };
9515
+
9516
+ ShoeSizeRangeSelector.defaultProps = {
9517
+ onChange: function onChange() {
9518
+ return false;
9519
+ },
9520
+ euShoeSizes: [],
9521
+ ukShoeSizes: [],
9522
+ sizeType: 'Uk'
9523
+ };
9524
+
9409
9525
  var getMaxSizeIndex = function getMaxSizeIndex() {
9410
9526
  var shoe_sizes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
9411
9527
  return shoe_sizes.length - 1;
@@ -9523,8 +9639,8 @@
9523
9639
  showMessageOnError: true
9524
9640
  };
9525
9641
 
9526
- var _templateObject$C;
9527
- var StyledHeader = styled__default.h5(_templateObject$C || (_templateObject$C = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n display: block;\n }\n\n .icon-header__left {\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n align-self: flex-start;\n }\n\n svg {\n height: 1.5em;\n width: 1.5em;\n margin-right: ", ";\n }\n }\n\n .icon-header__right {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n"])), media.sm, media.sm, function (props) {
9642
+ var _templateObject$D;
9643
+ var StyledHeader = styled__default.h5(_templateObject$D || (_templateObject$D = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n display: block;\n }\n\n .icon-header__left {\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n\n @media (max-width: ", ") {\n align-self: flex-start;\n }\n\n svg {\n height: 1.5em;\n width: 1.5em;\n margin-right: ", ";\n }\n }\n\n .icon-header__right {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n }\n"])), media.sm, media.sm, function (props) {
9528
9644
  return props.theme.marginPaddings[1];
9529
9645
  });
9530
9646
 
@@ -9570,8 +9686,8 @@
9570
9686
  }));
9571
9687
  });
9572
9688
 
9573
- var _templateObject$D;
9574
- var NotifyContainer = styled__default.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 150px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
9689
+ var _templateObject$E;
9690
+ var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 150px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
9575
9691
  return props.theme.colors.ntrlMin;
9576
9692
  }, function (props) {
9577
9693
  return props.theme.colors.base;
@@ -9709,14 +9825,14 @@
9709
9825
 
9710
9826
  var NotificationDropDown$1 = themed(NotificationDropDown);
9711
9827
 
9712
- var _templateObject$E, _templateObject2$6;
9828
+ var _templateObject$F, _templateObject2$6;
9713
9829
  var ALL_ITEM = {
9714
9830
  id: 'ALL',
9715
9831
  name: 'ALL'
9716
9832
  };
9717
9833
  var multiSelectorItemMaxHeight = '3rem';
9718
9834
  var multiSelectorItemAnimationDuration = '300ms';
9719
- var multiselectorItemFadeIn = styled.keyframes(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n from {\n margin: 0;\n max-height: 0px;\n opacity: 0;\n }\n to {\n max-height: ", ";\n opacity: 1;\n }\n"])), multiSelectorItemMaxHeight);
9835
+ var multiselectorItemFadeIn = styled.keyframes(_templateObject$F || (_templateObject$F = _taggedTemplateLiteral(["\n from {\n margin: 0;\n max-height: 0px;\n opacity: 0;\n }\n to {\n max-height: ", ";\n opacity: 1;\n }\n"])), multiSelectorItemMaxHeight);
9720
9836
  var StyledMultiselector = styled__default.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: wrap;\n margin-left: calc(-1 * ", ");\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-transform: none;\n box-sizing: border-box;\n animation: ", " ease-in-out\n ", " forwards;\n flex-basis: calc(25% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n text-overflow: ellipsis;\n overflow-x: hidden;\n min-height: 40px;\n\n @media (max-width: ", ") {\n flex-basis: calc(50% - ", ");\n }\n }\n }\n\n .multiselector__footer {\n display: flex;\n justify-content: center;\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n background-color: ", ";\n color: ", ";\n }\n }\n"])), function (props) {
9721
9837
  return props.theme.marginPaddings[2];
9722
9838
  }, function (props) {
@@ -9954,7 +10070,7 @@
9954
10070
  }));
9955
10071
  });
9956
10072
 
9957
- var _templateObject$F;
10073
+ var _templateObject$G;
9958
10074
 
9959
10075
  var Title$3 = function Title(_ref) {
9960
10076
  var baseClass = _ref.baseClass,
@@ -9975,7 +10091,7 @@
9975
10091
  })));
9976
10092
  };
9977
10093
 
9978
- var StyledTitle = styled__default(Title$3)(_templateObject$F || (_templateObject$F = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-weight: bold;\n display: flex;\n align-items: center;\n font-size: ", ";\n\n .title__search,\n .title__search {\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 30px;\n margin-bottom: ", ";\n\n svg {\n margin-left: ", ";\n fill: ", ";\n stroke: ", ";\n }\n\n input {\n width: 140px;\n border: none;\n font-size: ", ";\n transition: 0.2s border-color ease-in-out;\n margin-left: ", ";\n padding: 0;\n\n :focus {\n border-color: ", ";\n border-bottom: none;\n }\n }\n }\n"])), function (props) {
10094
+ var StyledTitle = styled__default(Title$3)(_templateObject$G || (_templateObject$G = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-weight: bold;\n display: flex;\n align-items: center;\n font-size: ", ";\n\n .title__search,\n .title__search {\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 30px;\n margin-bottom: ", ";\n\n svg {\n margin-left: ", ";\n fill: ", ";\n stroke: ", ";\n }\n\n input {\n width: 140px;\n border: none;\n font-size: ", ";\n transition: 0.2s border-color ease-in-out;\n margin-left: ", ";\n padding: 0;\n\n :focus {\n border-color: ", ";\n border-bottom: none;\n }\n }\n }\n"])), function (props) {
9979
10095
  return props.theme.marginPaddings[2];
9980
10096
  }, function (props) {
9981
10097
  return props.theme.fontSizes[2];
@@ -9996,7 +10112,7 @@
9996
10112
  });
9997
10113
  var Title$4 = themed(StyledTitle);
9998
10114
 
9999
- var debounceBuilder$2 = functions.debounced(200);
10115
+ var debounceBuilder$3 = functions.debounced(200);
10000
10116
 
10001
10117
  /**
10002
10118
  * Luxity flavoured GraphQLMultiselector with text Search, category and limit controls
@@ -10030,7 +10146,7 @@
10030
10146
  _defineProperty(_assertThisInitialized(_this), "onSearchChanged", function (event) {
10031
10147
  event.preventDefault();
10032
10148
  var searchText = event.target.value;
10033
- debounceBuilder$2(function () {
10149
+ debounceBuilder$3(function () {
10034
10150
  _this.setState({
10035
10151
  nameFilter: searchText
10036
10152
  });
@@ -10115,8 +10231,8 @@
10115
10231
  baseQueryLimit: 12
10116
10232
  };
10117
10233
 
10118
- var _templateObject$G;
10119
- var BaseButton = styled__default.button(_templateObject$G || (_templateObject$G = _taggedTemplateLiteral(["\n color: ", ";\n border: 1px solid ", ";\n background-color: ", ";\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n"])), function (props) {
10234
+ var _templateObject$H;
10235
+ var BaseButton = styled__default.button(_templateObject$H || (_templateObject$H = _taggedTemplateLiteral(["\n color: ", ";\n border: 1px solid ", ";\n background-color: ", ";\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n"])), function (props) {
10120
10236
  return props.theme.colors.base;
10121
10237
  }, function (props) {
10122
10238
  return props.theme.colors.borderColor;
@@ -10217,8 +10333,8 @@
10217
10333
  }
10218
10334
  };
10219
10335
 
10220
- var _templateObject$H, _templateObject2$7;
10221
- var TitleWrapper = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: nowrap row;\n justify-content: space-between;\n margin-bottom: ", ";\n label {\n margin-bottom: 0;\n }\n"])), function (props) {
10336
+ var _templateObject$I, _templateObject2$7;
10337
+ var TitleWrapper = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: nowrap row;\n justify-content: space-between;\n margin-bottom: ", ";\n label {\n margin-bottom: 0;\n }\n"])), function (props) {
10222
10338
  return props.theme.marginPaddings[4];
10223
10339
  });
10224
10340
  var onShoeSizeTypeChangeTimeout = 300;
@@ -10356,8 +10472,8 @@
10356
10472
  }
10357
10473
  };
10358
10474
 
10359
- var _templateObject$I;
10360
- var SelectionWrapper = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteral(["\n display: flex;\n margin-left: calc(-1 * ", ");\n label {\n margin-bottom: ", ";\n flex-basis: calc(33.33% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n }\n @media (max-width: ", ") {\n label {\n flex-basis: calc(50% - ", ");\n }\n }\n"])), function (props) {
10475
+ var _templateObject$J;
10476
+ var SelectionWrapper = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteral(["\n display: flex;\n margin-left: calc(-1 * ", ");\n label {\n margin-bottom: ", ";\n flex-basis: calc(33.33% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n }\n @media (max-width: ", ") {\n label {\n flex-basis: calc(50% - ", ");\n }\n }\n"])), function (props) {
10361
10477
  return props.theme.marginPaddings[2];
10362
10478
  }, function (props) {
10363
10479
  return props.theme.marginPaddings[2];
@@ -10373,8 +10489,8 @@
10373
10489
 
10374
10490
  var _excluded$7 = ["title", "checked", "renderIcon", "onChange", "checkedValue", "unCheckedValue"];
10375
10491
 
10376
- var _templateObject$J, _templateObject2$8, _templateObject3$3;
10377
- var Content = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteral(["\n background-color: transparent;\n border: 1px solid ", ";\n transition: 200ms ease-in-out;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n cursor: pointer;\n"])), function (props) {
10492
+ var _templateObject$K, _templateObject2$8, _templateObject3$3;
10493
+ var Content = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteral(["\n background-color: transparent;\n border: 1px solid ", ";\n transition: 200ms ease-in-out;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n cursor: pointer;\n"])), function (props) {
10378
10494
  return props.theme.colors.primary;
10379
10495
  }, function (props) {
10380
10496
  return props.theme.marginPaddings[0];
@@ -10539,9 +10655,9 @@
10539
10655
  }));
10540
10656
  });
10541
10657
 
10542
- var _templateObject$K, _templateObject2$9, _templateObject3$4, _templateObject4$3, _templateObject5$1;
10658
+ var _templateObject$L, _templateObject2$9, _templateObject3$4, _templateObject4$3, _templateObject5$1;
10543
10659
  var UNISEX$1 = genders.UNISEX;
10544
- var AddInterestContainer = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n border: 1px solid ", ";\n padding: ", ";\n"])), function (props) {
10660
+ var AddInterestContainer = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n border: 1px solid ", ";\n padding: ", ";\n"])), function (props) {
10545
10661
  return props.theme.marginPaddings[6];
10546
10662
  }, function (props) {
10547
10663
  return props.theme.colors.borderColor;
@@ -10829,8 +10945,8 @@
10829
10945
 
10830
10946
  var AddInterest$1 = themed(AddInterest);
10831
10947
 
10832
- var _templateObject$L;
10833
- var MyInterestTitleHeadingContainer = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n\n .heading-title-section {\n display: flex;\n justify-content: space-between;\n width: 95%;\n padding: ", ";\n }\n\n .heading-title {\n color: ", ";\n font-weight: bold;\n flex-basis: calc(100% / 6);\n margin-left: ", ";\n padding-bottom: 0;\n }\n\n .heading-title-empty {\n flex-basis: 5%;\n margin-left: 1rem;\n }\n\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (props) {
10948
+ var _templateObject$M;
10949
+ var MyInterestTitleHeadingContainer = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n\n .heading-title-section {\n display: flex;\n justify-content: space-between;\n width: 95%;\n padding: ", ";\n }\n\n .heading-title {\n color: ", ";\n font-weight: bold;\n flex-basis: calc(100% / 6);\n margin-left: ", ";\n padding-bottom: 0;\n }\n\n .heading-title-empty {\n flex-basis: 5%;\n margin-left: 1rem;\n }\n\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (props) {
10834
10950
  return props.theme.marginPaddings[0];
10835
10951
  }, function (props) {
10836
10952
  return props.theme.colors.primary;
@@ -10860,8 +10976,8 @@
10860
10976
 
10861
10977
  var MyInterestTitleHeading$1 = themed(MyInterestTitleHeading);
10862
10978
 
10863
- var _templateObject$M;
10864
- var SvgWrapper$2 = styled__default.span(_templateObject$M || (_templateObject$M = _taggedTemplateLiteral(["\n svg {\n path {\n fill: ", ";\n }\n }\n"])), function (props) {
10979
+ var _templateObject$N;
10980
+ var SvgWrapper$2 = styled__default.span(_templateObject$N || (_templateObject$N = _taggedTemplateLiteral(["\n svg {\n path {\n fill: ", ";\n }\n }\n"])), function (props) {
10865
10981
  return props.theme.colors.primary;
10866
10982
  });
10867
10983
  var AccountIcon = themed(function () {
@@ -11007,8 +11123,8 @@
11007
11123
  defaultShoeSizeType: shoeSizeTypes.eu.value
11008
11124
  };
11009
11125
 
11010
- var _templateObject$N, _templateObject2$a, _templateObject3$5, _templateObject4$4, _templateObject5$2, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30;
11011
- var HeaderWrapper = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteral(["\n {\n display: inline-block;\n background-color: ", ";\n position: relative;\n width: 100%;\n\n .header__search-container,\n .header__search-input {\n background-color: ", ";\n }\n\n .header__search-container {\n max-width: ", ";\n margin: 0 auto;\n padding: ", " 5%;\n }\n }\n"])), function (props) {
11126
+ var _templateObject$O, _templateObject2$a, _templateObject3$5, _templateObject4$4, _templateObject5$2, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30;
11127
+ var HeaderWrapper = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteral(["\n {\n display: inline-block;\n background-color: ", ";\n position: relative;\n width: 100%;\n\n .header__search-container,\n .header__search-input {\n background-color: ", ";\n }\n\n .header__search-container {\n max-width: ", ";\n margin: 0 auto;\n padding: ", " 5%;\n }\n }\n"])), function (props) {
11012
11128
  return props.theme.rareStepColors.ntrlMin;
11013
11129
  }, function (props) {
11014
11130
  return props.theme.rareStepColors.primary;
@@ -11072,12 +11188,12 @@
11072
11188
  return props.theme.rareStepFontSize.h5;
11073
11189
  });
11074
11190
  var DropdownBrands = styled__default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n {\n display: flex;\n flex-direction: column;\n width: 20%;\n }\n"])));
11075
- var DropdownModels = styled__default.ul(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n {\n padding: 0 ", ";\n border-right: 1px solid ", ";\n width: 50%;\n column-count: 3;\n }\n"])), function (props) {
11191
+ var DropdownLinks = styled__default.ul(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n {\n padding: 0 ", ";\n border-right: 1px solid ", ";\n width: 50%;\n column-count: 3;\n }\n"])), function (props) {
11076
11192
  return props.theme.marginPaddings[3];
11077
11193
  }, function (props) {
11078
11194
  return props.theme.rareStepColors.ntrl40;
11079
11195
  });
11080
- var DropdownModelsList = styled__default.li(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n {\n list-style: none;\n }\n"])));
11196
+ var DropdownLinksList = styled__default.li(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n {\n list-style: none;\n }\n"])));
11081
11197
  var DropdownFigure = styled__default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n {\n display: flex;\n width: 30%;\n padding-left: ", ";\n }\n"])), function (props) {
11082
11198
  return props.theme.marginPaddings[5];
11083
11199
  });
@@ -11186,12 +11302,12 @@
11186
11302
  return /*#__PURE__*/React__default.createElement(Dropdown, {
11187
11303
  onMouseOver: handleShowDropdown,
11188
11304
  onMouseOut: handleHideDropdown
11189
- }, /*#__PURE__*/React__default.createElement(PageContainer, null, /*#__PURE__*/React__default.createElement(DropdownModels, null, ((currentSelectedItem === null || currentSelectedItem === void 0 ? void 0 : currentSelectedItem.models) || []).map(function (model, index) {
11190
- return /*#__PURE__*/React__default.createElement(DropdownModelsList, {
11305
+ }, /*#__PURE__*/React__default.createElement(PageContainer, null, /*#__PURE__*/React__default.createElement(DropdownLinks, null, ((currentSelectedItem === null || currentSelectedItem === void 0 ? void 0 : currentSelectedItem.items) || []).map(function (item, index) {
11306
+ return /*#__PURE__*/React__default.createElement(DropdownLinksList, {
11191
11307
  key: index
11192
11308
  }, /*#__PURE__*/React__default.createElement(DropdownLink, {
11193
- href: model.modelLink
11194
- }, capitalizeWords(model.modelName)));
11309
+ href: item.itemLink
11310
+ }, capitalizeWords(item.itemName)));
11195
11311
  })), /*#__PURE__*/React__default.createElement(DropdownFigure, null, (currentSelectedItem === null || currentSelectedItem === void 0 ? void 0 : currentSelectedItem.brandImageUrl) && /*#__PURE__*/React__default.createElement(DropdownImage, {
11196
11312
  src: currentSelectedItem === null || currentSelectedItem === void 0 ? void 0 : currentSelectedItem.brandImageUrl
11197
11313
  }))));
@@ -11345,8 +11461,8 @@
11345
11461
 
11346
11462
  var RareStepDesktopHeader$1 = themed(RareStepDesktopHeader);
11347
11463
 
11348
- var _templateObject$O, _templateObject2$b, _templateObject3$6, _templateObject4$5, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
11349
- var HeaderWrapper$1 = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteral(["\n {\n display: flex;\n background-color: ", ";\n position: relative;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n padding: ", " 5%;\n }\n"])), function (props) {
11464
+ var _templateObject$P, _templateObject2$b, _templateObject3$6, _templateObject4$5, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
11465
+ var HeaderWrapper$1 = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteral(["\n {\n display: flex;\n background-color: ", ";\n position: relative;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n padding: ", " 5%;\n }\n"])), function (props) {
11350
11466
  return props.theme.rareStepColors.ntrlMin;
11351
11467
  }, function (props) {
11352
11468
  return props.theme.marginPaddings[3];
@@ -11697,8 +11813,8 @@
11697
11813
  };
11698
11814
  var index$3 = themed(RareStepHeader);
11699
11815
 
11700
- var _templateObject$P, _templateObject2$c, _templateObject3$7, _templateObject4$6, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2;
11701
- var FooterWrapper = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n font-weight: ", ";\n padding-top: ", ";\n font-size: ", ";\n }\n"])), function (props) {
11816
+ var _templateObject$Q, _templateObject2$c, _templateObject3$7, _templateObject4$6, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2;
11817
+ var FooterWrapper = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n font-weight: ", ";\n padding-top: ", ";\n font-size: ", ";\n }\n"])), function (props) {
11702
11818
  return props.theme.rareStepColors.ntrlMax;
11703
11819
  }, function (props) {
11704
11820
  return props.theme.rareStepFontWeights.bold;
@@ -13888,18 +14004,14 @@
13888
14004
 
13889
14005
  var _excluded$8 = ["ref"];
13890
14006
 
13891
- var _templateObject$Q, _templateObject2$d, _templateObject3$8, _templateObject4$7, _templateObject5$5;
13892
- var OptionsRow = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
13893
- var OptionsRowDescription = styled__default.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n flex-basis: 30%;\n margin-right: 10px;\n"])));
13894
- var Options = styled__default.div(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
13895
- var OptionRadioInputContainer = styled__default.span(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteral(["\n flex-basis: 50%;\n"])));
13896
- var OptionRadioInput = styled__default.input(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n margin-right: 5px;\n"])));
14007
+ var _templateObject$R, _templateObject2$d;
14008
+ var OptionsRow = styled__default.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
14009
+ var Options = styled__default.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
13897
14010
 
13898
14011
  var CommunicationPreferenceOptionsRenderer = function CommunicationPreferenceOptionsRenderer(_ref) {
13899
- var description = _ref.description,
13900
- control = _ref.control,
14012
+ var control = _ref.control,
13901
14013
  name = _ref.name,
13902
- is_disabled = _ref.is_disabled,
14014
+ isDisabled = _ref.isDisabled,
13903
14015
  options = _ref.options,
13904
14016
  defaultValue = _ref.defaultValue,
13905
14017
  setValue = _ref.setValue;
@@ -13921,34 +14033,27 @@
13921
14033
  setValue(name, defaultValue);
13922
14034
  }
13923
14035
  }, [defaultValue, name, setValue]);
13924
- return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(OptionsRowDescription, null, description), is_disabled ? /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
13925
- return /*#__PURE__*/React__default.createElement(OptionRadioInputContainer, {
13926
- key: option.value
13927
- }, /*#__PURE__*/React__default.createElement(OptionRadioInput, _extends({
13928
- type: "radio",
13929
- ref: ref
13930
- }, inputProps, {
13931
- value: option.value,
13932
- checked: inputProps.value === option.value.toString(),
13933
- disabled: true
13934
- })), option.label);
13935
- })) : /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
13936
- return /*#__PURE__*/React__default.createElement(OptionRadioInputContainer, {
13937
- key: option.value
13938
- }, /*#__PURE__*/React__default.createElement(OptionRadioInput, _extends({
14036
+ return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
14037
+ return /*#__PURE__*/React__default.createElement(RadioButtonLabel, {
14038
+ key: option.value,
14039
+ htmlFor: option.value
14040
+ }, /*#__PURE__*/React__default.createElement(RadioButtonInput, _extends({
14041
+ id: option.value,
14042
+ ref: ref,
13939
14043
  type: "radio",
13940
- ref: ref
14044
+ name: name,
14045
+ defaultChecked: inputProps.value === option.value.toString()
13941
14046
  }, inputProps, {
13942
- value: option.value,
13943
- checked: inputProps.value === option.value.toString()
13944
- })), option.label);
14047
+ disabled: isDisabled,
14048
+ value: option.value
14049
+ })), /*#__PURE__*/React__default.createElement(RadioButtonCircle, null, /*#__PURE__*/React__default.createElement(RadioButtonCircleInner, null)), /*#__PURE__*/React__default.createElement(RadioButtonText, null, option.label));
13945
14050
  })), invalid && /*#__PURE__*/React__default.createElement("span", {
13946
14051
  className: "form__error"
13947
14052
  }, error === null || error === void 0 ? void 0 : error.message));
13948
14053
  };
13949
14054
 
13950
- var _templateObject$R, _templateObject2$e;
13951
- var SectionContainer = styled__default.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteral(["\n border-top: flex 1px solid ", ";\n border-top-width: calc(100% - 50px);\n padding: 5px 10px;\n"])), function (props) {
14055
+ var _templateObject$S, _templateObject2$e;
14056
+ var SectionContainer = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteral(["\n border-top: flex 1px solid ", ";\n border-top-width: calc(100% - 50px);\n padding: 5px 10px;\n"])), function (props) {
13952
14057
  return props.theme.colors.primary;
13953
14058
  });
13954
14059
  var SectionHeading = styled__default.div(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n padding: 5px 10px;\n"])));
@@ -13958,7 +14063,7 @@
13958
14063
  description = _ref.description,
13959
14064
  control = _ref.control,
13960
14065
  name = _ref.name,
13961
- is_disabled = _ref.is_disabled,
14066
+ isDisabled = _ref.isDisabled,
13962
14067
  options = _ref.options,
13963
14068
  defaultValue = _ref.defaultValue,
13964
14069
  setValue = _ref.setValue;
@@ -13966,7 +14071,7 @@
13966
14071
  description: description,
13967
14072
  control: control,
13968
14073
  name: name,
13969
- is_disabled: is_disabled,
14074
+ isDisabled: isDisabled,
13970
14075
  options: options,
13971
14076
  defaultValue: defaultValue,
13972
14077
  setValue: setValue
@@ -13975,10 +14080,10 @@
13975
14080
 
13976
14081
  var CommunicationPreferenceSection$1 = themed(CommunicationPreferenceSection);
13977
14082
 
13978
- var _templateObject$S, _templateObject2$f, _templateObject3$9;
13979
- var CommunicationPreferenceContainer = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteral(["\n border: solid 1px #d1d5dbff;\n margin-bottom: 40px;\n"])));
14083
+ var _templateObject$T, _templateObject2$f, _templateObject3$8;
14084
+ var CommunicationPreferenceContainer = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteral(["\n border: solid 1px #d1d5dbff;\n margin-bottom: 40px;\n"])));
13980
14085
  var EditButtonRow = styled__default.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\n display: flex;\n justify-content: end;\n padding: 10px 5px;\n margin-right: 16px;\n"])));
13981
- var SubmitButton = styled__default.input(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteral(["\n flex-basis: 15%;\n margin-right: 5px;\n"])));
14086
+ var SubmitButton = styled__default.input(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n flex-basis: 15%;\n margin-right: 5px;\n"])));
13982
14087
  var BaseRequest = {
13983
14088
  loading: false,
13984
14089
  success: false,
@@ -14052,11 +14157,10 @@
14052
14157
  return /*#__PURE__*/React__default.createElement(React.Fragment, null, requestState.loading && /*#__PURE__*/React__default.createElement(EllipsisLoader, null), header, /*#__PURE__*/React__default.createElement(CommunicationPreferenceContainer, null, /*#__PURE__*/React__default.createElement("form", {
14053
14158
  onSubmit: handleSubmit(onSubmit)
14054
14159
  }, /*#__PURE__*/React__default.createElement(CommunicationPreferenceSection$1, {
14055
- description: "How would you prefer to receive communication: ",
14056
14160
  control: control,
14057
14161
  name: "default_communication",
14058
14162
  options: communicationOptions,
14059
- is_disabled: !isEditing,
14163
+ isDisabled: !isEditing,
14060
14164
  defaultValue: preferenceData.default_communication,
14061
14165
  setValue: setValue
14062
14166
  }), isEditing ? /*#__PURE__*/React__default.createElement(EditButtonRow, null, /*#__PURE__*/React__default.createElement(SubmitButton, {
@@ -14102,6 +14206,7 @@
14102
14206
  exports.RareStepHeader = index$3;
14103
14207
  exports.ReactSelectWrapper = ReactSelectWrapper;
14104
14208
  exports.SecondaryButton = SecondaryButton$1;
14209
+ exports.ShoeSizeRangeSelector = ShoeSizeRangeSelector;
14105
14210
  exports.ShoeSizeSelector = ShoeSizeSelector;
14106
14211
  exports.TextButton = TextButton$1;
14107
14212
  exports.Tooltip = index$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonlineza/luxity-lib",
3
- "version": "2.30.1",
3
+ "version": "2.30.3",
4
4
  "scripts": {
5
5
  "start": "start-storybook -p 9001 -c .storybook -s ./public",
6
6
  "clean": "rimraf ./build/*.*",