@bigbinary/neeto-site-blocks 0.15.1 → 0.15.2

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/dist/index.cjs.js CHANGED
@@ -27393,7 +27393,7 @@ var FeatureWithLink = function FeatureWithLink(_ref) {
27393
27393
 
27394
27394
  function cov_26jzxz7dh2() {
27395
27395
  var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/FeatureWithList.jsx";
27396
- var hash = "5ab009021ab768eb2912b81a4a1ac687bec83205";
27396
+ var hash = "9c3e6d67bd4099dfadc881d9d1f0e6dc7eab0cad";
27397
27397
  var global = new Function("return this")();
27398
27398
  var gcv = "__coverage__";
27399
27399
  var coverageData = {
@@ -27402,81 +27402,91 @@ function cov_26jzxz7dh2() {
27402
27402
  "0": {
27403
27403
  start: {
27404
27404
  line: 12,
27405
- column: 24
27405
+ column: 0
27406
27406
  },
27407
27407
  end: {
27408
- line: 104,
27409
- column: 1
27408
+ line: 12,
27409
+ column: 13
27410
27410
  }
27411
27411
  },
27412
27412
  "1": {
27413
27413
  start: {
27414
- line: 13,
27415
- column: 33
27414
+ line: 14,
27415
+ column: 24
27416
27416
  },
27417
27417
  end: {
27418
- line: 13,
27419
- column: 47
27418
+ line: 90,
27419
+ column: 1
27420
27420
  }
27421
27421
  },
27422
27422
  "2": {
27423
27423
  start: {
27424
- line: 19,
27425
- column: 6
27424
+ line: 15,
27425
+ column: 33
27426
27426
  },
27427
27427
  end: {
27428
- line: 19,
27429
- column: 16
27428
+ line: 15,
27429
+ column: 47
27430
27430
  }
27431
27431
  },
27432
27432
  "3": {
27433
27433
  start: {
27434
27434
  line: 21,
27435
- column: 25
27435
+ column: 6
27436
27436
  },
27437
27437
  end: {
27438
27438
  line: 21,
27439
- column: 40
27439
+ column: 16
27440
27440
  }
27441
27441
  },
27442
27442
  "4": {
27443
27443
  start: {
27444
- line: 23,
27445
- column: 22
27444
+ line: 24,
27445
+ column: 4
27446
27446
  },
27447
27447
  end: {
27448
- line: 30,
27449
- column: 4
27448
+ line: 24,
27449
+ column: 78
27450
27450
  }
27451
27451
  },
27452
27452
  "5": {
27453
27453
  start: {
27454
- line: 32,
27454
+ line: 26,
27455
27455
  column: 27
27456
27456
  },
27457
27457
  end: {
27458
- line: 36,
27458
+ line: 32,
27459
27459
  column: 4
27460
27460
  }
27461
27461
  },
27462
27462
  "6": {
27463
27463
  start: {
27464
- line: 38,
27465
- column: 2
27464
+ line: 34,
27465
+ column: 29
27466
27466
  },
27467
27467
  end: {
27468
- line: 103,
27468
+ line: 39,
27469
27469
  column: 4
27470
27470
  }
27471
27471
  },
27472
27472
  "7": {
27473
27473
  start: {
27474
- line: 75,
27475
- column: 12
27474
+ line: 41,
27475
+ column: 2
27476
27476
  },
27477
27477
  end: {
27478
- line: 91,
27479
- column: 18
27478
+ line: 89,
27479
+ column: 4
27480
+ }
27481
+ },
27482
+ "8": {
27483
+ start: {
27484
+ line: 62,
27485
+ column: 16
27486
+ },
27487
+ end: {
27488
+ line: 75,
27489
+ column: 22
27480
27490
  }
27481
27491
  }
27482
27492
  },
@@ -27485,132 +27495,165 @@ function cov_26jzxz7dh2() {
27485
27495
  name: "(anonymous_0)",
27486
27496
  decl: {
27487
27497
  start: {
27488
- line: 12,
27498
+ line: 14,
27489
27499
  column: 24
27490
27500
  },
27491
27501
  end: {
27492
- line: 12,
27502
+ line: 14,
27493
27503
  column: 25
27494
27504
  }
27495
27505
  },
27496
27506
  loc: {
27497
27507
  start: {
27498
- line: 12,
27508
+ line: 14,
27499
27509
  column: 68
27500
27510
  },
27501
27511
  end: {
27502
- line: 104,
27512
+ line: 90,
27503
27513
  column: 1
27504
27514
  }
27505
27515
  },
27506
- line: 12
27516
+ line: 14
27507
27517
  },
27508
27518
  "1": {
27509
27519
  name: "(anonymous_1)",
27510
27520
  decl: {
27511
27521
  start: {
27512
- line: 65,
27513
- column: 10
27522
+ line: 58,
27523
+ column: 14
27514
27524
  },
27515
27525
  end: {
27516
- line: 65,
27517
- column: 11
27526
+ line: 58,
27527
+ column: 15
27518
27528
  }
27519
27529
  },
27520
27530
  loc: {
27521
27531
  start: {
27522
- line: 75,
27523
- column: 12
27532
+ line: 62,
27533
+ column: 16
27524
27534
  },
27525
27535
  end: {
27526
- line: 91,
27527
- column: 18
27536
+ line: 75,
27537
+ column: 22
27528
27538
  }
27529
27539
  },
27530
- line: 75
27540
+ line: 62
27531
27541
  }
27532
27542
  },
27533
27543
  branchMap: {
27534
27544
  "0": {
27535
27545
  loc: {
27536
27546
  start: {
27537
- line: 12,
27547
+ line: 14,
27538
27548
  column: 43
27539
27549
  },
27540
27550
  end: {
27541
- line: 12,
27551
+ line: 14,
27542
27552
  column: 57
27543
27553
  }
27544
27554
  },
27545
27555
  type: "default-arg",
27546
27556
  locations: [{
27547
27557
  start: {
27548
- line: 12,
27558
+ line: 14,
27549
27559
  column: 55
27550
27560
  },
27551
27561
  end: {
27552
- line: 12,
27562
+ line: 14,
27553
27563
  column: 57
27554
27564
  }
27555
27565
  }],
27556
- line: 12
27566
+ line: 14
27557
27567
  },
27558
27568
  "1": {
27559
27569
  loc: {
27560
27570
  start: {
27561
- line: 16,
27571
+ line: 18,
27562
27572
  column: 4
27563
27573
  },
27564
27574
  end: {
27565
- line: 16,
27575
+ line: 18,
27566
27576
  column: 17
27567
27577
  }
27568
27578
  },
27569
27579
  type: "default-arg",
27570
27580
  locations: [{
27571
27581
  start: {
27572
- line: 16,
27582
+ line: 18,
27573
27583
  column: 15
27574
27584
  },
27575
27585
  end: {
27576
- line: 16,
27586
+ line: 18,
27577
27587
  column: 17
27578
27588
  }
27579
27589
  }],
27580
- line: 16
27590
+ line: 18
27581
27591
  },
27582
27592
  "2": {
27583
27593
  loc: {
27584
27594
  start: {
27585
- line: 34,
27595
+ line: 36,
27586
27596
  column: 6
27587
27597
  },
27588
27598
  end: {
27589
- line: 35,
27590
- column: 44
27599
+ line: 36,
27600
+ column: 57
27591
27601
  }
27592
27602
  },
27593
27603
  type: "binary-expr",
27594
27604
  locations: [{
27595
27605
  start: {
27596
- line: 34,
27606
+ line: 36,
27597
27607
  column: 6
27598
27608
  },
27599
27609
  end: {
27600
- line: 34,
27610
+ line: 36,
27601
27611
  column: 45
27602
27612
  }
27603
27613
  }, {
27604
27614
  start: {
27605
- line: 35,
27615
+ line: 36,
27616
+ column: 49
27617
+ },
27618
+ end: {
27619
+ line: 36,
27620
+ column: 57
27621
+ }
27622
+ }],
27623
+ line: 36
27624
+ },
27625
+ "3": {
27626
+ loc: {
27627
+ start: {
27628
+ line: 38,
27606
27629
  column: 6
27607
27630
  },
27608
27631
  end: {
27609
- line: 35,
27632
+ line: 38,
27633
+ column: 56
27634
+ }
27635
+ },
27636
+ type: "binary-expr",
27637
+ locations: [{
27638
+ start: {
27639
+ line: 38,
27640
+ column: 6
27641
+ },
27642
+ end: {
27643
+ line: 38,
27610
27644
  column: 44
27611
27645
  }
27646
+ }, {
27647
+ start: {
27648
+ line: 38,
27649
+ column: 48
27650
+ },
27651
+ end: {
27652
+ line: 38,
27653
+ column: 56
27654
+ }
27612
27655
  }],
27613
- line: 34
27656
+ line: 38
27614
27657
  }
27615
27658
  },
27616
27659
  s: {
@@ -27621,7 +27664,8 @@ function cov_26jzxz7dh2() {
27621
27664
  "4": 0,
27622
27665
  "5": 0,
27623
27666
  "6": 0,
27624
- "7": 0
27667
+ "7": 0,
27668
+ "8": 0
27625
27669
  },
27626
27670
  f: {
27627
27671
  "0": 0,
@@ -27630,10 +27674,11 @@ function cov_26jzxz7dh2() {
27630
27674
  b: {
27631
27675
  "0": [0],
27632
27676
  "1": [0],
27633
- "2": [0, 0]
27677
+ "2": [0, 0],
27678
+ "3": [0, 0]
27634
27679
  },
27635
27680
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
27636
- hash: "5ab009021ab768eb2912b81a4a1ac687bec83205"
27681
+ hash: "9c3e6d67bd4099dfadc881d9d1f0e6dc7eab0cad"
27637
27682
  };
27638
27683
  var coverage = global[gcv] || (global[gcv] = {});
27639
27684
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -27650,52 +27695,48 @@ function cov_26jzxz7dh2() {
27650
27695
  }
27651
27696
  cov_26jzxz7dh2();
27652
27697
  cov_26jzxz7dh2().s[0]++;
27698
+ cov_26jzxz7dh2().s[1]++;
27653
27699
  var FeatureWithList = function FeatureWithList(_ref) {
27654
27700
  var configurations = _ref.configurations,
27655
27701
  _ref$className = _ref.className,
27656
27702
  className = _ref$className === void 0 ? (cov_26jzxz7dh2().b[0][0]++, "") : _ref$className,
27657
27703
  id = _ref.id;
27658
27704
  cov_26jzxz7dh2().f[0]++;
27659
- var _ref2 = (cov_26jzxz7dh2().s[1]++, configurations),
27705
+ var _ref2 = (cov_26jzxz7dh2().s[2]++, configurations),
27660
27706
  properties = _ref2.properties,
27661
27707
  design = _ref2.design;
27662
- var _ref3 = (cov_26jzxz7dh2().s[2]++, properties),
27708
+ var _ref3 = (cov_26jzxz7dh2().s[3]++, properties),
27663
27709
  _ref3$content = _ref3.content,
27664
27710
  title = _ref3$content.title,
27665
27711
  description = _ref3$content.description,
27666
- contentPosition = _ref3$content.position,
27667
27712
  _ref3$features = _ref3.features,
27668
27713
  features = _ref3$features === void 0 ? (cov_26jzxz7dh2().b[1][0]++, []) : _ref3$features,
27669
27714
  _ref3$image = _ref3.image,
27670
27715
  imageURL = _ref3$image.src,
27671
27716
  imagePosition = _ref3$image.position,
27672
27717
  src = _ref3.backgroundImage.src;
27673
- var textOnlyLayout = (cov_26jzxz7dh2().s[3]++, imageURL === "");
27674
- var baseClasses = (cov_26jzxz7dh2().s[4]++, classnames$1("flex gap-12", {
27675
- "items-center": !textOnlyLayout,
27676
- "flex-col lg:flex-row": imagePosition === POSITIONS.RIGHT.label,
27677
- "flex-col-reverse lg:flex-row-reverse": imagePosition === POSITIONS.LEFT.label,
27678
- "flex-col": imagePosition === POSITIONS.BOTTOM.label,
27679
- "flex-col-reverse": imagePosition === POSITIONS.TOP.label
27718
+ var baseClasses = (cov_26jzxz7dh2().s[4]++, "grid grid-cols-12 items-center sm:gap-x-2 lg:gap-x-4 grid-flow-row-dense");
27719
+ var imageBaseClasses = (cov_26jzxz7dh2().s[5]++, classnames$1("col-span-12", {
27720
+ "sm:col-span-7 sm:col-start-7 lg:col-span-6 lg:col-start-7": imagePosition === POSITIONS.RIGHT.label,
27721
+ "sm:col-span-6 sm:col-start-1 lg:col-span-6": imagePosition === POSITIONS.LEFT.label,
27722
+ hidden: !imageURL
27680
27723
  }));
27681
- var imageBaseClasses = (cov_26jzxz7dh2().s[5]++, classnames$1("flex justify-center", {
27682
- "sm:w-2/3 lg:w-1/2 flex-shrink-0": (cov_26jzxz7dh2().b[2][0]++, imagePosition === POSITIONS.RIGHT.label) || (cov_26jzxz7dh2().b[2][1]++, imagePosition === POSITIONS.LEFT.label)
27724
+ var contentBaseClasses = (cov_26jzxz7dh2().s[6]++, classnames$1("col-span-12", {
27725
+ "sm:col-span-5 sm:col-start-1": (cov_26jzxz7dh2().b[2][0]++, imagePosition === POSITIONS.RIGHT.label) && (cov_26jzxz7dh2().b[2][1]++, imageURL),
27726
+ "sm:col-span-5 sm:col-start-8 lg:col-start-8": (cov_26jzxz7dh2().b[3][0]++, imagePosition === POSITIONS.LEFT.label) && (cov_26jzxz7dh2().b[3][1]++, imageURL)
27683
27727
  }));
27684
- cov_26jzxz7dh2().s[6]++;
27728
+ cov_26jzxz7dh2().s[7]++;
27685
27729
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
27686
27730
  backgroundImage: mergeLeft({
27687
27731
  src: src
27688
27732
  }, design.backgroundImage),
27733
+ className: className,
27689
27734
  design: design.body,
27690
- id: id,
27691
- className: classnames$1("border border-l-0 border-r-0", [className, baseClasses])
27735
+ id: id
27692
27736
  }, /*#__PURE__*/React__default["default"].createElement("div", {
27693
- className: classnames$1({
27694
- "relative flex flex-grow flex-col": true,
27695
- "sm:items-center sm:text-center lg:items-start": contentPosition === POSITIONS.LEFT.label,
27696
- "items-center text-center": contentPosition === POSITIONS.CENTER.label,
27697
- "items-end": contentPosition === POSITIONS.RIGHT.label
27698
- })
27737
+ className: classnames$1("neeto-site-block-wrapper", baseClasses)
27738
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
27739
+ className: contentBaseClasses
27699
27740
  }, /*#__PURE__*/React__default["default"].createElement(Typography, {
27700
27741
  isTitle: true,
27701
27742
  component: "h1",
@@ -27703,17 +27744,15 @@ var FeatureWithList = function FeatureWithList(_ref) {
27703
27744
  }, title), /*#__PURE__*/React__default["default"].createElement(Typography, {
27704
27745
  component: "p",
27705
27746
  style: design.description
27706
- }, description), features.map(function (_ref4, index) {
27747
+ }, description), /*#__PURE__*/React__default["default"].createElement("div", {
27748
+ className: "space-y-6"
27749
+ }, features.map(function (_ref4, index) {
27707
27750
  var featureTitle = _ref4.title,
27708
- featureDescription = _ref4.description,
27709
- label = _ref4.label,
27710
- url = _ref4.url,
27711
- action = _ref4.action;
27751
+ featureDescription = _ref4.description;
27712
27752
  cov_26jzxz7dh2().f[1]++;
27713
- cov_26jzxz7dh2().s[7]++;
27753
+ cov_26jzxz7dh2().s[8]++;
27714
27754
  return /*#__PURE__*/React__default["default"].createElement("div", {
27715
- className: "mb-6 w-full last:mb-0",
27716
- key: getUniqueKey(featureTitle, url, index)
27755
+ key: getUniqueKey(featureTitle, featureDescription, index)
27717
27756
  }, /*#__PURE__*/React__default["default"].createElement(Typography, {
27718
27757
  isTitle: true,
27719
27758
  component: "h4",
@@ -27721,19 +27760,14 @@ var FeatureWithList = function FeatureWithList(_ref) {
27721
27760
  }, featureTitle), /*#__PURE__*/React__default["default"].createElement(Typography, {
27722
27761
  component: "p",
27723
27762
  style: design.featureDescription
27724
- }, featureDescription), /*#__PURE__*/React__default["default"].createElement(LinkElement, {
27725
- action: action,
27726
- label: label,
27727
- style: design.featureLink,
27728
- to: url
27729
- }));
27730
- })), /*#__PURE__*/React__default["default"].createElement("div", {
27763
+ }, featureDescription));
27764
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
27731
27765
  className: imageBaseClasses
27732
27766
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage, {
27733
27767
  design: design.image,
27734
27768
  lgImageSize: design.image.width,
27735
27769
  src: imageURL
27736
- })));
27770
+ }))));
27737
27771
  };
27738
27772
 
27739
27773
  function cov_2e4crtgg2y() {