PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.4
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.4
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / blocks / button / hoverEffectsItems.js

hoverEffectsItems.js in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.4, at src/blocks/button/hoverEffectsItems.js

109 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {
2 SmartButtonGhostIcon,
3 SmartButtonHoverMultilayersIcon,
4 SmartButtonHoverShineIcon,
5 SmartButtonHoverRaiseShadowIcon,
6 SmartButtonHoverGradShadowIcon,
7 SmartButtonHoverFlipIcon,
8 SmartButtonDefaultIcon,
9 SmartButtonHoverSlideRightIcon,
10 SmartButtonHoverSlideSkewIcon,
11 SmartButtonHoverSlidTopIcon,
12 SmartButtonHoverNeoFollowIcon,
13 SmartButtonHoverDrawOutlineIcon,
14 } from "../../icons/icons";
15
16 const hoverEffectsItems = (buttonStyle, hoverEffects) => {
17 let effect = [];
18 if (buttonStyle === "default") {
19 effect = [
20 {
21 icon: <SmartButtonDefaultIcon value={hoverEffects} />,
22 label: "Default",
23 value: "defaultHover",
24 },
25 {
26 icon: <SmartButtonHoverRaiseShadowIcon value={hoverEffects} />,
27 label: "Raise Shadow",
28 value: "raiseShadow",
29 type: "pro",
30 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
31 },
32 {
33 icon: <SmartButtonHoverGradShadowIcon value={hoverEffects} />,
34 label: "Grad Shadow",
35 value: "gradShadow",
36 type: "pro",
37 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
38 },
39 {
40 icon: <SmartButtonHoverShineIcon value={hoverEffects} />,
41 label: "Shine",
42 value: "shine",
43 type: "pro",
44 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
45 },
46 {
47 icon: <SmartButtonHoverMultilayersIcon value={hoverEffects} />,
48 label: "Multi-layers",
49 value: "multiLayers",
50 type: "pro",
51 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
52 },
53 {
54 icon: <SmartButtonHoverFlipIcon value={hoverEffects} />,
55 label: "Flip",
56 value: "flip",
57 type: "pro",
58 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
59 },
60 ];
61 } else if (buttonStyle === "ghost") {
62 effect = [
63 {
64 icon: <SmartButtonGhostIcon value={hoverEffects} />,
65 label: "Default",
66 value: "ghostDefault",
67 },
68 {
69 icon: <SmartButtonHoverSlideRightIcon value={hoverEffects} />,
70 label: "Slide Right",
71 value: "slideRight",
72 type: "pro",
73 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
74 },
75 {
76 icon: <SmartButtonHoverSlideSkewIcon value={hoverEffects} />,
77 label: "Slide Skew",
78 value: "slideSkew",
79 type: "pro",
80 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
81 },
82 {
83 icon: <SmartButtonHoverSlidTopIcon value={hoverEffects} />,
84 label: "Slide Top",
85 value: "slideTop",
86 type: "pro",
87 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
88 },
89 {
90 icon: <SmartButtonHoverNeoFollowIcon value={hoverEffects} />,
91 label: "Neo Follow",
92 value: "neoFollow",
93 type: "pro",
94 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
95 },
96 {
97 icon: <SmartButtonHoverDrawOutlineIcon value={hoverEffects} />,
98 label: "Draw Outline",
99 value: "drawOutline",
100 type: "pro",
101 demoLink: "https://wpsmartpost.com/blocks/#demoId3588",
102 },
103 ];
104 }
105 return effect;
106 };
107
108 export default hoverEffectsItems;
109