gatsby-matrix-theme 48.0.10 → 48.0.11

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,19 @@
1
+ ## [48.0.11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v48.0.10...v48.0.11) (2024-08-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * eslint and lighthuse ([fbc9737](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fbc973767bd040b1b94851ab8c16c7de8de1f87a))
7
+ * eslint and lighthuse ([15ddae3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/15ddae342ea5a98b5b56532566f4d4aaacde40e9))
8
+ * eslint and lighthuse ([066c684](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/066c684602bc501172e91a53d0f7110f24dedc51))
9
+ * fix tests ([990dd87](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/990dd874d853b383251145b6108d819abfa90509))
10
+ * update theme ([d4b63aa](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d4b63aab5c0305e1ec55cd466408f6e1a8595547))
11
+
12
+
13
+ ### Config
14
+
15
+ * update theme ([1c92d27](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1c92d27f40f9a13d41b69ef06c44e758926a7800))
16
+
1
17
  ## [48.0.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v48.0.9...v48.0.10) (2024-07-29)
2
18
 
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "48.0.10",
3
+ "version": "48.0.11",
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": "35.0.8",
28
+ "gatsby-core-theme": "35.1.1",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "prop-types": "15.7.2",
@@ -2,17 +2,16 @@
2
2
  import React from 'react';
3
3
  import { render, cleanup } from '@testing-library/react';
4
4
  import '@testing-library/jest-dom/extend-expect';
5
- import getOperatorData from '../../../../../../../tests/factories/pages/operator.factory';
5
+ import getOperatorData from 'gatsby-core-theme/tests/factories/relations/operator.factory';
6
6
  import TemplateFour from '.';
7
7
 
8
8
  describe('Operator template four component', () => {
9
9
  const data = getOperatorData();
10
10
 
11
11
  test('Template Four Status Active', () => {
12
- const { container, getByText } = render(<TemplateFour {...data} />);
12
+ const { container, getByText } = render(<TemplateFour {...data} type='operator' />);
13
13
  expect(getByText('Ice Casino')).toBeTruthy();
14
14
  expect(container.querySelectorAll('h1')).toHaveLength(1);
15
- expect(getByText('New')).toBeTruthy();
16
15
  expect(container.querySelectorAll('a')).toHaveLength(3);
17
16
  expect(getByText('100% Bonus')).toBeTruthy();
18
17
  expect(getByText('+ Big Promotions')).toBeTruthy();
@@ -2,17 +2,16 @@
2
2
  import React from 'react';
3
3
  import { render, cleanup, waitFor } from '@testing-library/react';
4
4
  import '@testing-library/jest-dom/extend-expect';
5
- import getOperatorData from '../../../../../../../tests/factories/pages/operator.factory';
5
+ import getOperatorData from 'gatsby-core-theme/tests/factories/relations/operator.factory';
6
6
  import TemplateThree from '.';
7
7
 
8
8
  describe('Operator template three component', () => {
9
9
  const data = getOperatorData();
10
10
 
11
11
  test('Template Three Status Active', () => {
12
- const { container, getByText } = render(<TemplateThree {...data} />);
12
+ const { container, getByText } = render(<TemplateThree {...data} type="operator" />);
13
13
  expect(getByText('Ice Casino')).toBeTruthy();
14
14
  expect(container.querySelectorAll('h1')).toHaveLength(1);
15
- expect(getByText('New')).toBeTruthy();
16
15
  expect(container.querySelectorAll('a')).toHaveLength(3);
17
16
  expect(getByText('100% Bonus')).toBeTruthy();
18
17
  expect(getByText('+ Big Promotions')).toBeTruthy();
@@ -20,7 +19,7 @@ describe('Operator template three component', () => {
20
19
  expect(container.querySelectorAll('li')).toHaveLength(6);
21
20
  });
22
21
  test('Template Three variable component', async () => {
23
- const { container } = render(<TemplateThree {...data} hasVariableComponent />);
22
+ const { container } = render(<TemplateThree {...data} hasVariableComponent type="operator" />);
24
23
 
25
24
  await waitFor(() => {
26
25
  expect(container.querySelector('.variable')).toBeTruthy();
@@ -1,76 +1,81 @@
1
+ .titleAndTab {
2
+ width: 100%;
3
+
4
+ @include flex-direction(column);
5
+ @include flex-align(center, space-between);
6
+
7
+ gap: 0.8rem;
8
+ flex-wrap: wrap;
9
+
10
+ > * {
11
+ flex: 0 0 30%;
12
+
13
+ @include min(tablet) {
14
+ flex: unset;
15
+ }
16
+ }
17
+
18
+ > h2 {
19
+ flex: 0 0 58%;
20
+
21
+ @include min(tablet) {
22
+ flex: 1;
23
+ }
24
+ }
25
+ }
26
+
1
27
  .tabsHeader {
2
28
  display: grid;
3
29
  grid-template-columns: auto;
4
- &.invertOrder {
5
- grid-template-columns: max-content;
6
- margin-bottom: 2rem;
7
- }
30
+
8
31
  @include min(tablet) {
9
32
  grid-template-columns: 1fr 1fr;
33
+
10
34
  &.tabsonly {
11
35
  grid-template-columns: 1fr;
12
36
  }
37
+ }
13
38
 
14
- &.invertOrder {
15
- grid-template-columns: max-content;
16
- margin-bottom: 2rem;
17
- }
39
+ h2 {
40
+ margin: 0;
18
41
  }
19
- &.invertOrder {
20
- display: flex;
21
- justify-content: space-between;
22
- flex-direction: column;
23
- > div:first-child {
24
- grid-column: 2;
25
- }
26
- @include min(laptop) {
27
- // flex-direction: row;
28
- align-items: center;
29
- }
42
+ }
30
43
 
31
- > div:nth-child(2) {
32
- grid-column: 1;
33
- @include flex-align(center, flex-start);
34
- display: block;
35
- }
44
+ .invertOrder {
45
+ display: flex;
46
+ justify-content: space-between;
47
+ flex-direction: column;
48
+ margin-bottom: 2rem;
36
49
 
37
- .titleAndTab {
38
- flex-direction: row;
50
+ @include min(tablet) {
51
+ grid-template-columns: max-content;
52
+ margin-bottom: 2rem;
53
+ }
39
54
 
40
- button,
41
- ol {
42
- @include min(tablet) {
43
- width: 100%;
44
- }
45
- }
46
- }
55
+ @include min(laptop) {
56
+ align-items: center;
47
57
  }
48
58
 
49
- h2 {
50
- margin: 0;
59
+ > div:first-child {
60
+ grid-column: 2;
51
61
  }
52
- }
53
62
 
54
- .titleAndTab {
55
- width: 100%;
56
- @include flex-direction(column);
57
- @include flex-align(center, space-between);
58
- gap: 0.8rem;
59
- flex-wrap: wrap;
63
+ > div:nth-child(2) {
64
+ grid-column: 1;
60
65
 
61
- > * {
62
- flex: 0 0 30%;
66
+ @include flex-align(center, flex-start);
63
67
 
64
- @include min(tablet) {
65
- flex: unset;
66
- }
68
+ display: block;
67
69
  }
68
-
69
- > h2 {
70
- flex: 0 0 58%;
71
70
 
72
- @include min(tablet) {
73
- flex: 1;
71
+ .titleAndTab {
72
+ flex-direction: row;
73
+
74
+ button,
75
+ ol {
76
+ @include min(tablet) {
77
+ width: 100%;
78
+ }
74
79
  }
75
80
  }
76
81
  }
@@ -82,7 +87,7 @@
82
87
  padding: 0.9rem 2rem;
83
88
  border: 0;
84
89
  border-radius: 0.4rem;
85
- box-shadow: 0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.2);
90
+ box-shadow: 0 0.1rem 0.2rem 0 rgb(0 0 0 / 20%);
86
91
  background: var(--color-9);
87
92
  color: var(--color-22);
88
93
  font-weight: 700;