@capillarytech/blaze-ui 4.20.1-beta.2 → 4.20.1-beta.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.
@@ -14386,7 +14386,6 @@ const {
14386
14386
  const rangeLimits = [0, 100];
14387
14387
  const railStyles = document.body && document.body.style;
14388
14388
  const CapSplit = props => {
14389
- var _splitGroups;
14390
14389
  const {
14391
14390
  showAudienceSplit,
14392
14391
  setShowAudienceSplit,
@@ -14463,11 +14462,6 @@ const CapSplit = props => {
14463
14462
  }, splitGroup.splitGroupKey));
14464
14463
  return updatedSplitGroups;
14465
14464
  };
14466
- const getTrackStyles = () => {
14467
- return splitGroups.slice(0, -1).map(group => ({
14468
- backgroundColor: group.splitGroupColor
14469
- }));
14470
- };
14471
14465
  const onClickdone = () => {
14472
14466
  setGroupsData(groupsData == null ? void 0 : groupsData.map((group, index) => {
14473
14467
  group.weightage = splitGroups[index].splitGroupPercentage;
@@ -14542,12 +14536,12 @@ const CapSplit = props => {
14542
14536
  children: groupsData.length
14543
14537
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Range, {
14544
14538
  pushable: 1,
14545
- trackStyle: getTrackStyles(),
14539
+ trackStyle: _constants.sliderBackgroundColors,
14546
14540
  handleStyle: [{
14547
14541
  backgroundColor: _variables.CAP_WHITE
14548
14542
  }],
14549
14543
  railStyle: {
14550
- backgroundColor: ((_splitGroups = splitGroups[splitGroups.length - 1]) == null ? void 0 : _splitGroups.splitGroupColor) || _variables.CAP_COLOR_23
14544
+ backgroundColor: "linear-gradient(to right, " + _variables.CAP_COLOR_22 + " 0%, " + _variables.CAP_COLOR_22 + " 50%, " + _variables.CAP_COLOR_23 + " 50%, " + _variables.CAP_COLOR_23 + " 100%)"
14551
14545
  },
14552
14546
  onChange: handleChange,
14553
14547
  allowCross: false,
@@ -28491,7 +28485,7 @@ var _default = exports["default"] = SvgMail;
28491
28485
 
28492
28486
 
28493
28487
  exports.__esModule = true;
28494
- exports.sliderColors = void 0;
28488
+ exports.sliderColors = exports.sliderBackgroundColors = void 0;
28495
28489
  var _variables = __webpack_require__(56587);
28496
28490
  const sliderColors = exports.sliderColors = {
28497
28491
  1: [_variables.CAP_COLOR_22, _variables.CAP_COLOR_23],
@@ -28499,6 +28493,13 @@ const sliderColors = exports.sliderColors = {
28499
28493
  3: [_variables.CAP_COLOR_22, _variables.CAP_COLOR_24, _variables.CAP_COLOR_25, _variables.CAP_COLOR_23],
28500
28494
  4: [_variables.CAP_COLOR_22, _variables.CAP_COLOR_24, _variables.CAP_COLOR_25, _variables.CAP_COLOR_26, _variables.CAP_COLOR_23]
28501
28495
  };
28496
+ const sliderBackgroundColors = exports.sliderBackgroundColors = [{
28497
+ backgroundColor: _variables.CAP_COLOR_24
28498
+ }, {
28499
+ backgroundColor: _variables.CAP_COLOR_25
28500
+ }, {
28501
+ backgroundColor: _variables.CAP_COLOR_26
28502
+ }];
28502
28503
 
28503
28504
  /***/ }),
28504
28505