gatsby-matrix-theme 37.0.40 → 37.0.42

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/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [37.0.42](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.41...v37.0.42) (2023-12-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add buttin style ([f8c3608](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f8c3608597975fb6d100f071c7d9aa88c16214af))
7
+ * add style ([501e2df](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/501e2dfb87cd3ed90d1547f8103c957a35280aad))
8
+ * fix the result logic ([0e2fa6c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0e2fa6cf6e87ec2cddcea13851a548d51c8b7413))
9
+ * make style ([82933bb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/82933bb9a645fb79993c075dbc16541739166d5e))
10
+ * update matrix theme ([a57d925](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a57d925c21962ac471f1caffeaffd6de59f9c63d))
11
+ * update srettings newsletter constant ([143d117](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/143d1173f4e8a846c31b593e0931cff847b1f296))
12
+
13
+
14
+ * Merge branch 'horse-calculator' into 'master' ([68ab90d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/68ab90d2a4d77193776038aaf1bcc8b9fd59711c))
15
+ * Merge branch 'tm-3901-404-page' into 'master' ([0b17a1b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0b17a1b33e7ac15f91bec759bfcaefb1cecaa474))
16
+
17
+ ## [37.0.41](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.40...v37.0.41) (2023-12-26)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * jest ([19e145e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/19e145e1544b72414fd29ac100fbc345c8f62813))
23
+ * tooltip scrolling fix ([3d171e5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3d171e51c9b2557eea755cb1ddd4deff76e7011a))
24
+ * update to latest core theme ([1d0f786](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1d0f7869fb703e1d018fa68aa770623017ab43b3))
25
+
26
+
27
+ * Merge branch 'tooltip-scrolling-fix' into 'master' ([c362f78](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c362f7870b5053acf8dfdaa32961116a6b8f7c73))
28
+
1
29
  ## [37.0.40](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.39...v37.0.40) (2023-12-20)
2
30
 
3
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "37.0.40",
3
+ "version": "37.0.42",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "gatsby": "^5.11.0",
28
- "gatsby-core-theme": "30.0.37",
28
+ "gatsby-core-theme": "30.0.39",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-plugin-sitemap": "^3.3.0",
31
31
  "gatsby-transformer-sharp": "^5.11.0",
@@ -40,14 +40,16 @@ const Tooltip = ({ content, delay = 0, children, direction, minWidth = 10 }) =>
40
40
  };
41
41
 
42
42
  return (
43
+ // eslint-disable-next-line jsx-a11y/interactive-supports-focus, jsx-a11y/click-events-have-key-events
43
44
  <div
44
45
  className={styles?.wrapper || ''}
45
46
  onMouseEnter={showTip}
46
47
  onMouseLeave={hideTip}
47
- onTouchStart={(e) => {
48
+ onClick={(e) => {
48
49
  getPositionClass(e.target, styles);
49
50
  showTip();
50
51
  }}
52
+ role="button"
51
53
  >
52
54
  {children}
53
55
  {active && (
@@ -57,7 +59,7 @@ const Tooltip = ({ content, delay = 0, children, direction, minWidth = 10 }) =>
57
59
  styles[direction] ? styles[direction] || '' : styles.top || ''
58
60
  }`}
59
61
  >
60
- {content}
62
+ <span>{content}</span>
61
63
  </div>
62
64
  )}
63
65
  </div>
@@ -30,7 +30,7 @@ describe('Tooltip Component', () => {
30
30
  expect(container).toBeTruthy();
31
31
  expect(getByText('Test Children')).toBeTruthy();
32
32
 
33
- fireEvent.touchStart(screen.getByText('Test Children'));
33
+ fireEvent.click(screen.getByText('Test Children'));
34
34
  await waitFor(() => screen.getByText('test content'));
35
35
  });
36
36
  test('render tooltip with different direction', async () => {
@@ -42,7 +42,7 @@ describe('Tooltip Component', () => {
42
42
  expect(container).toBeTruthy();
43
43
  expect(getByText('Test Children')).toBeTruthy();
44
44
 
45
- fireEvent.touchStart(screen.getByText('Test Children'));
45
+ fireEvent.click(screen.getByText('Test Children'));
46
46
  await waitFor(() => {
47
47
  screen.getByText('test content');
48
48
  expect(container.querySelector('.tooltip')).toBeTruthy();
@@ -1,5 +1,5 @@
1
1
  .innerContainer {
2
- background: var(--horse-calc-background-color);
2
+ background: var(--horse-calc-background-color, #fff);
3
3
  border-radius: var(--horse-calc-border-radius, 1.6rem);
4
4
  border: 1px solid var(--horse-calc-border-color, transparent);
5
5
  padding: 3.7rem 1rem;
@@ -20,7 +20,7 @@
20
20
  gap: 2rem;
21
21
 
22
22
  table {
23
- width: 100%;
23
+ width: 100% !important;
24
24
  background-color: var(--horse-calc-totals-table-background, #fff);
25
25
 
26
26
  th,
@@ -44,6 +44,61 @@
44
44
  }
45
45
  }
46
46
  }
47
+ .cells{
48
+ @include flex-direction(row);
49
+ @include flex-align(center, space-between);
50
+ @include min(tablet){
51
+ @include flex-direction(column);
52
+ @include flex-align(start, start);
53
+ width: 100%;
54
+ >div{
55
+ width: 100%;
56
+ }
57
+ }
58
+ &:before{
59
+ color: #39394f;
60
+ font-size: 16px;
61
+ font-style: normal;
62
+ font-weight: 600;
63
+ line-height: 24px;
64
+ @include min(tablet){
65
+ font-size: 1.4rem;
66
+ }
67
+ }
68
+ select, label{
69
+ max-width: 13.2rem;
70
+ @include min(tablet){
71
+ max-width: 100%;
72
+ width: 100%;
73
+ }
74
+ }
75
+ }
76
+
77
+ .outComing{
78
+ &:before{
79
+ content: 'Outcome:';
80
+ }
81
+ }
82
+
83
+ .odds{
84
+ &:before{
85
+ content: 'Odds:';
86
+ }
87
+ }
88
+ .placeOdds{
89
+ &:before{
90
+ content: 'Place Odds:';
91
+ }
92
+ }
93
+ .ruleFour{
94
+ select{
95
+ min-width: 13.2rem;
96
+ }
97
+ &:before{
98
+ content: 'Rule Four:';
99
+ }
100
+ }
101
+
47
102
  .placeOdds {
48
103
  width: 100%;
49
104
  @include flex-direction(row);
@@ -189,7 +244,7 @@
189
244
 
190
245
  select{
191
246
  width: 100%;
192
-
247
+ min-width: 13.2rem;
193
248
  }
194
249
  label {
195
250
  flex-basis: 100% !important;
@@ -396,7 +451,6 @@
396
451
 
397
452
  td {
398
453
  text-align: start;
399
- border-bottom: 1px solid #eae5e0;
400
454
  padding: 1rem;
401
455
  @include min(tablet) {
402
456
  flex: 1;
@@ -570,3 +624,4 @@
570
624
  }
571
625
  }
572
626
  }
627
+
@@ -374,9 +374,9 @@ const HorseCalculator = () => {
374
374
  ref={(el) => (outcomesTableRefs.current[index] = el)}
375
375
  >
376
376
  {addNotes === 'No' && <td>{index + 1}</td>}
377
- <td>
377
+ <td className={`${styles.outComing} ${styles.cells}`}>
378
378
  <Select
379
- label="Outcome:"
379
+ // label="Outcome:"
380
380
  id={`outcome-${index}`}
381
381
  onChangeFunc={handleOutcomeSelection}
382
382
  options={outcomeOptions.map((option) => (
@@ -386,16 +386,13 @@ const HorseCalculator = () => {
386
386
  />
387
387
  </td>
388
388
  <td
389
- className={`${
389
+ className={`${styles.cells} ${styles.odds}${
390
390
  outcomeSelection[index] === 'lost' || outcomeSelection[index] === 'void'
391
391
  ? styles.displayNone || ''
392
392
  : ''
393
393
  }`}
394
394
  >
395
395
  <label>
396
- {!(
397
- outcomeSelection[index] === 'lost' || outcomeSelection[index] === 'void'
398
- ) && <div>Odds:</div>}
399
396
  <input
400
397
  onChange={calculateTotalBet}
401
398
  className={
@@ -410,8 +407,7 @@ const HorseCalculator = () => {
410
407
  </label>
411
408
  </td>
412
409
  {eachWay === 'Yes' && (
413
- <td className={styles?.placeOdds}>
414
- <label>Place odds</label>
410
+ <td className={`${styles?.placeOdds} ${styles.cells} ${styles.placeOdds}`}>
415
411
  <Select
416
412
  id="place_odds"
417
413
  onChangeFunc={calculateTotalBet}
@@ -422,9 +418,8 @@ const HorseCalculator = () => {
422
418
  </td>
423
419
  )}
424
420
  {ruleFour === 'Yes' && (
425
- <td>
421
+ <td className={`${styles.cells} ${styles.ruleFour}`}>
426
422
  <Select
427
- label="Rule Four"
428
423
  id="rule_four"
429
424
  onChangeFunc={calculateTotalBet}
430
425
  options={ruleFourOptions.map((option) => (
@@ -1,8 +1,8 @@
1
1
  .buttLeft,
2
2
  .buttRight {
3
3
  position: absolute;
4
- left: 3.8rem;
5
- bottom: 4rem;
4
+ top: 1rem;
5
+ right: 1rem;
6
6
  width: 4rem;
7
7
  height: 4rem;
8
8
  border-radius: 100px;
@@ -14,4 +14,7 @@ export default {
14
14
  'xn--nt-casino-v2a.se': {
15
15
  filter_pages: ['page', 'operator', 'game', 'article', 'payment_method', 'software_provider'],
16
16
  },
17
+ 'betamericalatina.com': {
18
+ filter_pages: ['*'],
19
+ },
17
20
  };
@@ -10,7 +10,7 @@ const getOutcomeRow = (row, addNotes, applyEachWay, applyRuleFour) => {
10
10
  let ruleFour = null;
11
11
  if (row.children.length > 2) {
12
12
  if (applyEachWay === 'Yes') {
13
- placeOdds = row.children[addNotes ? 2 : 3].children[1].children[0].value;
13
+ placeOdds = row.children[addNotes ? 2 : 3].children[0].children[0].value;
14
14
  }
15
15
 
16
16
  if (applyRuleFour && applyEachWay === 'Yes') {
@@ -25,9 +25,10 @@ const getOutcomeRow = (row, addNotes, applyEachWay, applyRuleFour) => {
25
25
  };
26
26
 
27
27
  const getDeadHeatRow = (row) => {
28
- const tiedPosition = row.children[1].children[0].children[0].children[0].children[0].value;
29
- const deadHeatsrunners = row.children[1].children[0].children[1].children[0].children[0].value;
30
- const placesOffered = row.children[1].children[0].children[2].children[0].children[0].value;
28
+ const tiedPosition = row.children[1]?.children[0]?.children[0]?.children[1]?.children[0]?.value;
29
+ const deadHeatsrunners =
30
+ row.children[1]?.children[0]?.children[1]?.children[1]?.children[0]?.value;
31
+ const placesOffered = row.children[1]?.children[0]?.children[2]?.children[1]?.children[0]?.value;
31
32
 
32
33
  return [tiedPosition, deadHeatsrunners, placesOffered];
33
34
  };