gatsby-matrix-theme 37.0.26 → 37.0.28
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 +17 -0
- package/package.json +2 -2
- package/src/components/atoms/coupon/index.js +7 -5
- package/storybook/public/{182.47d823d2.iframe.bundle.js → 182.dd603f55.iframe.bundle.js} +3 -3
- package/storybook/public/{182.47d823d2.iframe.bundle.js.map → 182.dd603f55.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.4d539514.iframe.bundle.js +2 -0
- package/storybook/public/main.1b3593c6.iframe.bundle.js +0 -2
- /package/storybook/public/{182.47d823d2.iframe.bundle.js.LICENSE.txt → 182.dd603f55.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook/public/{main.1b3593c6.iframe.bundle.js.LICENSE.txt → main.4d539514.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [37.0.28](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.27...v37.0.28) (2023-12-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* theme update ([a7b8529](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a7b852951bd362bd7192f6ef97fdf50abf74fe64))
|
|
7
|
+
|
|
8
|
+
## [37.0.27](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.26...v37.0.27) (2023-12-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Code Refactoring
|
|
12
|
+
|
|
13
|
+
* add class to target the whole coupon container when copied ([47f0e98](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/47f0e987695b17eb8900412583a741d325be09e5))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
* Merge branch 'tm-coupon' into 'master' ([fd9b494](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fd9b494025f7a8868e55b508f15e88da3b663b5d))
|
|
17
|
+
|
|
1
18
|
## [37.0.26](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v37.0.25...v37.0.26) (2023-12-05)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "37.0.
|
|
3
|
+
"version": "37.0.28",
|
|
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.
|
|
28
|
+
"gatsby-core-theme": "30.0.32",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -31,7 +31,11 @@ const Coupon = ({
|
|
|
31
31
|
const inactive = status === 'inactive';
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
|
-
<div
|
|
34
|
+
<div
|
|
35
|
+
className={`${styles?.couponContainer || ''} ${!templateOne ? styles.templateTwo : ''} ${
|
|
36
|
+
copySuccess ? styles.copiedContainer : ''
|
|
37
|
+
} `}
|
|
38
|
+
>
|
|
35
39
|
{!templateOne && showprefix && (
|
|
36
40
|
<span className={styles.prefix}>
|
|
37
41
|
{translate(translations, translationKey, defaultTranslation)}
|
|
@@ -41,10 +45,8 @@ const Coupon = ({
|
|
|
41
45
|
onClick={() => (code !== null && !inactive ? copyToClipBoard(code) : '')}
|
|
42
46
|
type="button"
|
|
43
47
|
className={`${styles.coupon} ${copySuccess ? styles.copied : ''}
|
|
44
|
-
${
|
|
45
|
-
${
|
|
46
|
-
inactive ? styles.disabled : ''
|
|
47
|
-
}`}
|
|
48
|
+
${code === null ? styles.noCode : ''}
|
|
49
|
+
${inactive ? styles.disabled : ''}`}
|
|
48
50
|
disabled={inactive}
|
|
49
51
|
>
|
|
50
52
|
{!copySuccess ? (
|