rw-elements-tools 1.2.0

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.
Files changed (185) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +1333 -0
  3. package/bin/cli.js +213 -0
  4. package/build-properties.js +654 -0
  5. package/build-shared-hooks.js +253 -0
  6. package/config.js +148 -0
  7. package/controls/Animations/AnimationEffects.js +111 -0
  8. package/controls/Animations/AnimationSettings.js +437 -0
  9. package/controls/Animations/Reveals.js +168 -0
  10. package/controls/Animations/ScrollAnimation_Opacity.js +15 -0
  11. package/controls/Animations/ScrollAnimation_Rotate.js +17 -0
  12. package/controls/Animations/ScrollAnimation_Scale.js +18 -0
  13. package/controls/Animations/ScrollAnimation_Translate.js +31 -0
  14. package/controls/Background/Background.js +66 -0
  15. package/controls/Background/BackgroundButton.js +69 -0
  16. package/controls/Background/BackgroundColor.js +28 -0
  17. package/controls/Background/BackgroundContainer.js +73 -0
  18. package/controls/Background/BackgroundGradient.js +149 -0
  19. package/controls/Background/BackgroundImage.js +108 -0
  20. package/controls/Background/BackgroundOnlyColor.js +53 -0
  21. package/controls/Background/BackgroundTransparent.js +66 -0
  22. package/controls/Background/BackgroundVideo.js +9 -0
  23. package/controls/Background/Color.js +52 -0
  24. package/controls/Background/Gradient.js +263 -0
  25. package/controls/Background/GradientContainer.js +263 -0
  26. package/controls/Background/Image.js +269 -0
  27. package/controls/Background/Image_CMS.js +305 -0
  28. package/controls/Background/SVG.js +235 -0
  29. package/controls/Background/Video.js +29 -0
  30. package/controls/Borders/Border.js +114 -0
  31. package/controls/Borders/BorderColor.js +25 -0
  32. package/controls/Borders/BorderRadius.js +19 -0
  33. package/controls/Borders/BorderStyle.js +26 -0
  34. package/controls/Borders/BorderWidth.js +20 -0
  35. package/controls/Borders/Borders.js +69 -0
  36. package/controls/Borders/BordersContainer.js +90 -0
  37. package/controls/Borders/BordersInput.js +107 -0
  38. package/controls/Borders/Outline.js +100 -0
  39. package/controls/Borders/OutlineColor.js +25 -0
  40. package/controls/Borders/OutlineOffset.js +13 -0
  41. package/controls/Borders/OutlineStyle.js +26 -0
  42. package/controls/Borders/OutlineWidth.js +13 -0
  43. package/controls/Effects/BackdropBlur.js +11 -0
  44. package/controls/Effects/Blur.js +11 -0
  45. package/controls/Effects/BoxShadow.js +15 -0
  46. package/controls/Effects/Brightness.js +11 -0
  47. package/controls/Effects/DropShadow.js +14 -0
  48. package/controls/Effects/Effects.js +71 -0
  49. package/controls/Effects/Filters.js +114 -0
  50. package/controls/Effects/Opacity.js +14 -0
  51. package/controls/Effects/Saturate.js +11 -0
  52. package/controls/Layout/AspectRatio.js +53 -0
  53. package/controls/Layout/Container.js +24 -0
  54. package/controls/Layout/Hidden.js +9 -0
  55. package/controls/Layout/Inset.js +15 -0
  56. package/controls/Layout/Isolation.js +25 -0
  57. package/controls/Layout/Layout.js +38 -0
  58. package/controls/Layout/Overflow.js +33 -0
  59. package/controls/Layout/Position.js +37 -0
  60. package/controls/Layout/TopRightBottomLeft.js +90 -0
  61. package/controls/Layout/Visibility.js +25 -0
  62. package/controls/Layout/ZIndex.js +36 -0
  63. package/controls/Overlay/Color.js +52 -0
  64. package/controls/Overlay/Gradient.js +298 -0
  65. package/controls/Overlay/Image.js +226 -0
  66. package/controls/Overlay/Overlay.js +66 -0
  67. package/controls/Sizing/Height.js +18 -0
  68. package/controls/Sizing/MaxHeight.js +17 -0
  69. package/controls/Sizing/MaxWidth.js +17 -0
  70. package/controls/Sizing/MinHeight.js +18 -0
  71. package/controls/Sizing/MinWidth.js +18 -0
  72. package/controls/Sizing/Sizing.js +66 -0
  73. package/controls/Sizing/SizingContainer.js +122 -0
  74. package/controls/Sizing/SizingImage.js +75 -0
  75. package/controls/Sizing/SizingInput.js +71 -0
  76. package/controls/Sizing/SizingSVG.js +74 -0
  77. package/controls/Sizing/Width.js +18 -0
  78. package/controls/Spacing/Margin.js +17 -0
  79. package/controls/Spacing/Padding.js +17 -0
  80. package/controls/Spacing/Spacing.js +23 -0
  81. package/controls/Spacing/SpacingButton.js +42 -0
  82. package/controls/Spacing/SpacingContainer.js +32 -0
  83. package/controls/Spacing/SpacingInput.js +42 -0
  84. package/controls/Transforms/Rotate.js +13 -0
  85. package/controls/Transforms/Scale.js +13 -0
  86. package/controls/Transforms/Skew.js +25 -0
  87. package/controls/Transforms/TransformOrigin.js +12 -0
  88. package/controls/Transforms/Transforms.js +98 -0
  89. package/controls/Transforms/Translate.js +26 -0
  90. package/controls/Transitions/Delay.js +13 -0
  91. package/controls/Transitions/Duration.js +13 -0
  92. package/controls/Transitions/Property.js +42 -0
  93. package/controls/Transitions/TimingFunction.js +44 -0
  94. package/controls/Transitions/Transitions.js +20 -0
  95. package/controls/alignment/AlignContent.js +48 -0
  96. package/controls/alignment/AlignItems.js +64 -0
  97. package/controls/alignment/AlignSelf.js +34 -0
  98. package/controls/alignment/JustifyContent.js +44 -0
  99. package/controls/alignment/JustifyItems.js +32 -0
  100. package/controls/alignment/JustifySelf.js +34 -0
  101. package/controls/core/CSSClasses.js +11 -0
  102. package/controls/core/ControlType.js +25 -0
  103. package/controls/core/HTMLTag.js +80 -0
  104. package/controls/core/HoverGroup.js +38 -0
  105. package/controls/core/ID.js +12 -0
  106. package/controls/core/Image.js +95 -0
  107. package/controls/core/MenuItem.js +187 -0
  108. package/controls/core/ObjectFit.js +32 -0
  109. package/controls/core/ObjectPosition.js +65 -0
  110. package/controls/grid-flex/ActAsGridOrFlexItem.js +54 -0
  111. package/controls/grid-flex/ColEnd.js +28 -0
  112. package/controls/grid-flex/ColStart.js +27 -0
  113. package/controls/grid-flex/Columns.js +38 -0
  114. package/controls/grid-flex/FlexDirection.js +27 -0
  115. package/controls/grid-flex/FlexItem.js +106 -0
  116. package/controls/grid-flex/GridItem.js +41 -0
  117. package/controls/grid-flex/Order.js +45 -0
  118. package/controls/grid-flex/RowEnd.js +28 -0
  119. package/controls/grid-flex/RowStart.js +27 -0
  120. package/controls/grid-flex/Rows.js +38 -0
  121. package/controls/index.js +187 -0
  122. package/controls/interactive/ButtonFontAndTextStyles.js +208 -0
  123. package/controls/interactive/Filter.js +54 -0
  124. package/controls/interactive/InputFontAndTextStyles.js +156 -0
  125. package/controls/interactive/Link.js +13 -0
  126. package/controls/typography/HeadingColor.js +112 -0
  127. package/controls/typography/TextColor.js +51 -0
  128. package/controls/typography/TextDecoration.js +99 -0
  129. package/controls/typography/TextFontsAndTextStyles.js +243 -0
  130. package/controls/typography/TextSimple.js +55 -0
  131. package/controls/typography/TextStyles.js +55 -0
  132. package/controls/typography/Typography.js +13 -0
  133. package/index.js +19 -0
  134. package/package.json +55 -0
  135. package/properties/BackgroundType.js +18 -0
  136. package/properties/ButtonSize.js +19 -0
  137. package/properties/ContainerHeights.js +23 -0
  138. package/properties/ContainerWidths.js +27 -0
  139. package/properties/FontWeight.js +16 -0
  140. package/properties/GradientDirection.js +39 -0
  141. package/properties/LetterSpacing.js +13 -0
  142. package/properties/LineHeight.js +13 -0
  143. package/properties/RevealAnimations.js +12 -0
  144. package/properties/Slider.js +10 -0
  145. package/properties/TextAlign.js +23 -0
  146. package/properties/TransformOrigins.js +43 -0
  147. package/properties/TransitionNames.js +20 -0
  148. package/properties/index.js +13 -0
  149. package/shared-hooks/animations/globalAnimations.js +141 -0
  150. package/shared-hooks/animations/globalReveal.js +48 -0
  151. package/shared-hooks/background/globalBackground.js +306 -0
  152. package/shared-hooks/background/globalBgImageFetchPriority.js +34 -0
  153. package/shared-hooks/borders/globalBorders.js +85 -0
  154. package/shared-hooks/borders/globalOutline.js +39 -0
  155. package/shared-hooks/core/addPrefixToTailwindClasses.js +24 -0
  156. package/shared-hooks/core/advancedClasses.js +5 -0
  157. package/shared-hooks/core/classnames.js +92 -0
  158. package/shared-hooks/core/getHoverPrefix.js +21 -0
  159. package/shared-hooks/core/globalHTMLTag.js +17 -0
  160. package/shared-hooks/core/injectPrefixOnDarkModeColors.js +6 -0
  161. package/shared-hooks/effects/globalEffects.js +45 -0
  162. package/shared-hooks/effects/globalFilters.js +80 -0
  163. package/shared-hooks/effects/globalOverlay.js +166 -0
  164. package/shared-hooks/interactive/globalFilter.js +24 -0
  165. package/shared-hooks/interactive/globalLink.js +23 -0
  166. package/shared-hooks/layout/globalActAsGridOrFlexItem.js +66 -0
  167. package/shared-hooks/layout/globalLayout.js +50 -0
  168. package/shared-hooks/navigation/globalMenuItem.js +35 -0
  169. package/shared-hooks/navigation/globalNavItems.js +60 -0
  170. package/shared-hooks/navigation/globalNavTitle.js +23 -0
  171. package/shared-hooks/sizing/aspectRatioClasses.js +20 -0
  172. package/shared-hooks/sizing/globalSizing.js +19 -0
  173. package/shared-hooks/sizing/globalSizingContainer.js +40 -0
  174. package/shared-hooks/sizing/objectClasses.js +9 -0
  175. package/shared-hooks/spacing/globalSpacing.js +13 -0
  176. package/shared-hooks/spacing/globalSpacingMargin.js +11 -0
  177. package/shared-hooks/spacing/globalSpacingPadding.js +11 -0
  178. package/shared-hooks/transforms/globalTransforms.js +78 -0
  179. package/shared-hooks/transitions/getAlpineTransitionAttributesDesktop.js +111 -0
  180. package/shared-hooks/transitions/getAlpineTransitionAttributesMobile.js +110 -0
  181. package/shared-hooks/transitions/globalTransitions.js +48 -0
  182. package/shared-hooks/typography/globalButtonFontAndTextStyles.js +65 -0
  183. package/shared-hooks/typography/globalHeadingColor.js +69 -0
  184. package/shared-hooks/typography/globalInputFontAndTextStyles.js +40 -0
  185. package/shared-hooks/typography/globalTextFontsAndTextStyles.js +47 -0
@@ -0,0 +1,71 @@
1
+ const SizingInput = [
2
+ {
3
+ title: "Size",
4
+ heading: {}
5
+ },
6
+ {
7
+ globalControl: "Width",
8
+ themeSpacing: {
9
+ mode: "single",
10
+ default: {
11
+ base: {
12
+ value: "100%",
13
+ custom: true
14
+ }
15
+ }
16
+ }
17
+ },
18
+ {
19
+ globalControl: "Height"
20
+ },
21
+ {
22
+ divider: {}
23
+ },
24
+ {
25
+ title: "Min & Max Settings",
26
+ heading: {}
27
+ },
28
+ {
29
+ information: {},
30
+ title: "Enable this to set both min and max height and width settings."
31
+ },
32
+ {
33
+ title: "Enable",
34
+ id: "globalSizingMinMaxEnabled",
35
+ switch: {
36
+ default: false
37
+ }
38
+ },
39
+ {
40
+ visible: "globalSizingMinMaxEnabled == true",
41
+ title: "Width",
42
+ heading: {}
43
+ },
44
+ {
45
+ visible: "globalSizingMinMaxEnabled == true",
46
+ title: "Min",
47
+ globalControl: "MinWidth"
48
+ },
49
+ {
50
+ visible: "globalSizingMinMaxEnabled == true",
51
+ title: "Max",
52
+ globalControl: "MaxWidth"
53
+ },
54
+ {
55
+ visible: "globalSizingMinMaxEnabled == true",
56
+ title: "Height",
57
+ heading: {}
58
+ },
59
+ {
60
+ visible: "globalSizingMinMaxEnabled == true",
61
+ title: "Min",
62
+ globalControl: "MinHeight"
63
+ },
64
+ {
65
+ visible: "globalSizingMinMaxEnabled == true",
66
+ title: "Max",
67
+ globalControl: "MaxHeight"
68
+ }
69
+ ]
70
+
71
+ export default SizingInput;
@@ -0,0 +1,74 @@
1
+ const SizingSVG = [
2
+ {
3
+ title: "Size",
4
+ heading: {}
5
+ },
6
+ {
7
+ globalControl: "Width",
8
+ themeSpacing: {
9
+ mode: "single",
10
+ default: {
11
+ base: {
12
+ value: "20",
13
+ }
14
+ }
15
+ }
16
+ },
17
+ {
18
+ globalControl: "Height"
19
+ },
20
+ {
21
+ divider: {}
22
+ },
23
+ {
24
+ title: "Min & Max Settings",
25
+ heading: {}
26
+ },
27
+ {
28
+ information: {},
29
+ title: "Enable this to set both min and max height and width settings."
30
+ },
31
+ {
32
+ title: "Enable",
33
+ id: "globalSizingMinMaxEnabled",
34
+ switch: {
35
+ default: false
36
+ }
37
+ },
38
+ {
39
+ visible: "globalSizingMinMaxEnabled == true",
40
+ title: "Width",
41
+ heading: {}
42
+ },
43
+ {
44
+ visible: "globalSizingMinMaxEnabled == true",
45
+ title: "Min",
46
+ globalControl: "MinWidth"
47
+ },
48
+ {
49
+ visible: "globalSizingMinMaxEnabled == true",
50
+ title: "Max",
51
+ globalControl: "MaxWidth"
52
+ },
53
+ {
54
+ visible: "globalSizingMinMaxEnabled == true",
55
+ divider: {}
56
+ },
57
+ {
58
+ visible: "globalSizingMinMaxEnabled == true",
59
+ title: "Height",
60
+ heading: {}
61
+ },
62
+ {
63
+ visible: "globalSizingMinMaxEnabled == true",
64
+ title: "Min",
65
+ globalControl: "MinHeight"
66
+ },
67
+ {
68
+ visible: "globalSizingMinMaxEnabled == true",
69
+ title: "Max",
70
+ globalControl: "MaxHeight"
71
+ }
72
+ ]
73
+
74
+ export default SizingSVG;
@@ -0,0 +1,18 @@
1
+ const Width = [
2
+ {
3
+ title: "Width",
4
+ id: "globalWidth",
5
+ format: "w-{{value}}",
6
+ themeSpacing: {
7
+ mode: "single",
8
+ default: {
9
+ base: {
10
+ custom: false,
11
+ value: "auto"
12
+ }
13
+ }
14
+ }
15
+ }
16
+ ];
17
+
18
+ export default Width;
@@ -0,0 +1,17 @@
1
+ const Margin = {
2
+ title: "Margin",
3
+ id: "globalMargin",
4
+ themeSpacing: {
5
+ mode: "margin",
6
+ default: {
7
+ base: {
8
+ top: "0",
9
+ right: "0",
10
+ bottom: "0",
11
+ left: "0",
12
+ },
13
+ },
14
+ },
15
+ };
16
+
17
+ export default Margin;
@@ -0,0 +1,17 @@
1
+ const Padding = {
2
+ title: "Padding",
3
+ id: "globalPadding",
4
+ themeSpacing: {
5
+ mode: "padding",
6
+ default: {
7
+ base: {
8
+ top: "0",
9
+ right: "0",
10
+ bottom: "0",
11
+ left: "0",
12
+ },
13
+ },
14
+ },
15
+ };
16
+
17
+ export default Padding;
@@ -0,0 +1,23 @@
1
+ const Spacing = [
2
+ {
3
+ title: "Margin & Padding",
4
+ heading: {}
5
+ },
6
+ {
7
+ title: "Enable",
8
+ id: "globalSpacingEnabled",
9
+ switch: {
10
+ default: false
11
+ }
12
+ },
13
+ {
14
+ visible: "globalSpacingEnabled == true",
15
+ globalControl: "Margin"
16
+ },
17
+ {
18
+ visible: "globalSpacingEnabled == true",
19
+ globalControl: "Padding"
20
+ }
21
+ ];
22
+
23
+ export default Spacing;
@@ -0,0 +1,42 @@
1
+ const SpacingButton = [
2
+ {
3
+ title: "Margin & Padding",
4
+ heading: {}
5
+ },
6
+ {
7
+ title: "Enable",
8
+ id: "globalSpacingEnabled",
9
+ switch: {
10
+ default: true
11
+ }
12
+ },
13
+ {
14
+ visible: "globalSpacingEnabled == true",
15
+ globalControl: "Margin",
16
+ default: {
17
+ base: {
18
+ top: "0",
19
+ right: "auto",
20
+ bottom: "0",
21
+ left: "auto",
22
+ linkHorizontal: true,
23
+ }
24
+ }
25
+ },
26
+ {
27
+ visible: "globalSpacingEnabled == true",
28
+ globalControl: "Padding",
29
+ default: {
30
+ base: {
31
+ top: "2",
32
+ right: "3.5",
33
+ bottom: "2",
34
+ left: "3.5",
35
+ linkHorizontal: true,
36
+ linkVertical: true,
37
+ }
38
+ }
39
+ }
40
+ ];
41
+
42
+ export default SpacingButton;
@@ -0,0 +1,32 @@
1
+ const SpacingContainer = [
2
+ {
3
+ title: "Margin & Padding",
4
+ heading: {}
5
+ },
6
+ {
7
+ title: "Enable",
8
+ id: "globalSpacingEnabled",
9
+ switch: {
10
+ default: true
11
+ }
12
+ },
13
+ {
14
+ visible: "globalSpacingEnabled == true",
15
+ globalControl: "Margin",
16
+ default: {
17
+ base: {
18
+ top: "0",
19
+ right: "auto",
20
+ bottom: "0",
21
+ left: "auto",
22
+ linkHorizontal: true,
23
+ }
24
+ }
25
+ },
26
+ {
27
+ visible: "globalSpacingEnabled == true",
28
+ globalControl: "Padding"
29
+ }
30
+ ];
31
+
32
+ export default SpacingContainer;
@@ -0,0 +1,42 @@
1
+ const SpacingInput = [
2
+ {
3
+ title: "Margin & Padding",
4
+ heading: {}
5
+ },
6
+ {
7
+ title: "Enable",
8
+ id: "globalSpacingEnabled",
9
+ switch: {
10
+ default: true
11
+ }
12
+ },
13
+ {
14
+ visible: "globalSpacingEnabled == true",
15
+ globalControl: "Margin",
16
+ default: {
17
+ base: {
18
+ top: "0",
19
+ right: "0",
20
+ bottom: "0",
21
+ left: "0",
22
+ linkHorizontal: true,
23
+ }
24
+ }
25
+ },
26
+ {
27
+ visible: "globalSpacingEnabled == true",
28
+ globalControl: "Padding",
29
+ default: {
30
+ base: {
31
+ top: "2",
32
+ right: "3.5",
33
+ bottom: "2",
34
+ left: "3.5",
35
+ linkHorizontal: true,
36
+ linkVertical: true,
37
+ }
38
+ }
39
+ }
40
+ ];
41
+
42
+ export default SpacingInput;
@@ -0,0 +1,13 @@
1
+ const Rotate = [
2
+ {
3
+ title: "Rotate",
4
+ id: "globalTransformRotate",
5
+ format: "rotate-[{{value}}deg]",
6
+ number: {
7
+ default: 0,
8
+ subtitle: "in degrees",
9
+ },
10
+ },
11
+ ];
12
+
13
+ export default Rotate;
@@ -0,0 +1,13 @@
1
+ const Scale = [
2
+ {
3
+ title: "Scale",
4
+ id: "globalTransformScale",
5
+ format: "scale-[{{value}}%]",
6
+ number: {
7
+ default: 100,
8
+ subtitle: "%",
9
+ },
10
+ },
11
+ ];
12
+
13
+ export default Scale;
@@ -0,0 +1,25 @@
1
+ const Skew = [
2
+ {
3
+ title: "Skew",
4
+ heading: {}
5
+ },
6
+ {
7
+ title: "Horizontal",
8
+ id: "globalTransformSkewX",
9
+ format: "skew-x-[{{value}}deg]",
10
+ number: {
11
+ default: 0,
12
+ },
13
+ },
14
+ {
15
+ title: "Vertical",
16
+ id: "globalTransformSkewY",
17
+ format: "skew-y-[{{value}}deg]",
18
+ number: {
19
+ default: 0,
20
+ subtitle: "in degrees",
21
+ },
22
+ },
23
+ ];
24
+
25
+ export default Skew;
@@ -0,0 +1,12 @@
1
+ const TransformOrigin = [
2
+ {
3
+ title: "Origin",
4
+ id: "globalTransformOrigin",
5
+ format: "origin-{{value}}",
6
+ select: {
7
+ use: "TransformOrigins",
8
+ }
9
+ }
10
+ ];
11
+
12
+ export default TransformOrigin;
@@ -0,0 +1,98 @@
1
+ const Transforms = [
2
+ {
3
+ globalControl: "ControlType",
4
+ id: "{{value}}Transforms",
5
+ },
6
+ {
7
+ visible: "globalControlTypeTransforms == 'hover'",
8
+ globalControl: "HoverGroup",
9
+ id: "{{value}}Transforms",
10
+ },
11
+ {
12
+ visible:
13
+ "globalControlTypeTransforms == 'hover' && globalHoverGroupTransforms == 'custom'",
14
+ title: "ID",
15
+ id: "globalHoverGroupCustomIdTransforms",
16
+ text: {},
17
+ },
18
+ {
19
+ visible: "globalHoverGroupTransforms == 'custom'",
20
+ title: "The ID of the parent element to trigger the transforms.",
21
+ information: {},
22
+ },
23
+ {
24
+ visible:
25
+ "globalControlTypeTransforms != 'none' && globalControlTypeTransforms != 'static'",
26
+ title: "State",
27
+ id: "globalTransformsState",
28
+ responsive: false,
29
+ segmented: {
30
+ default: "start",
31
+ items: [
32
+ {
33
+ title: "Start",
34
+ value: "start",
35
+ },
36
+ {
37
+ title: "End",
38
+ value: "end",
39
+ },
40
+ ],
41
+ },
42
+ },
43
+ {
44
+ visible: "globalControlTypeTransforms != 'none'",
45
+ divider: {},
46
+ },
47
+ {
48
+ visible: "globalControlTypeTransforms != 'none'",
49
+ globalControl: "TransformOrigin",
50
+ },
51
+ {
52
+ visible:
53
+ "globalControlTypeTransforms == 'static' || (globalControlTypeTransforms == 'hover' && globalTransformsState == 'start')",
54
+ globalControl: "Scale",
55
+ },
56
+ {
57
+ visible:
58
+ "globalControlTypeTransforms == 'static' || (globalControlTypeTransforms == 'hover' && globalTransformsState == 'start')",
59
+ globalControl: "Rotate",
60
+ },
61
+ {
62
+ visible:
63
+ "globalControlTypeTransforms == 'static' || (globalControlTypeTransforms == 'hover' && globalTransformsState == 'start')",
64
+ globalControl: "Translate",
65
+ },
66
+ {
67
+ visible:
68
+ "globalControlTypeTransforms == 'static' || (globalControlTypeTransforms == 'hover' && globalTransformsState == 'start')",
69
+ globalControl: "Skew",
70
+ },
71
+
72
+ {
73
+ visible:
74
+ "(globalControlTypeTransforms == 'hover' && globalTransformsState == 'end')",
75
+ globalControl: "Scale",
76
+ id: "{{value}}End",
77
+ },
78
+ {
79
+ visible:
80
+ "(globalControlTypeTransforms == 'hover' && globalTransformsState == 'end')",
81
+ globalControl: "Rotate",
82
+ id: "{{value}}End",
83
+ },
84
+ {
85
+ visible:
86
+ "(globalControlTypeTransforms == 'hover' && globalTransformsState == 'end')",
87
+ globalControl: "Translate",
88
+ id: "{{value}}End",
89
+ },
90
+ {
91
+ visible:
92
+ "(globalControlTypeTransforms == 'hover' && globalTransformsState == 'end')",
93
+ globalControl: "Skew",
94
+ id: "{{value}}End",
95
+ },
96
+ ];
97
+
98
+ export default Transforms;
@@ -0,0 +1,26 @@
1
+ const Translate = [
2
+ {
3
+ title: "Translate",
4
+ heading: {},
5
+ },
6
+ {
7
+ title: "Horizontal",
8
+ id: "globalTransformTranslateX",
9
+ format: "translate-x-[{{value}}]",
10
+ text: {
11
+ default: "0px",
12
+ base: "0px",
13
+ },
14
+ },
15
+ {
16
+ title: "Vertical",
17
+ id: "globalTransformTranslateY",
18
+ format: "translate-y-[{{value}}]",
19
+ text: {
20
+ default: "0px",
21
+ subtitle: "Use valid CSS values. 10px, 50%, 10vw.",
22
+ }
23
+ },
24
+ ];
25
+
26
+ export default Translate;
@@ -0,0 +1,13 @@
1
+ const Delay = [
2
+ {
3
+ visible: "globalTransitionsProperty != 'none'",
4
+ title: "Delay",
5
+ id: "globalTransitionsDelay",
6
+ format: "delay-[{{value}}ms]",
7
+ number: {
8
+ default: 0,
9
+ },
10
+ },
11
+ ];
12
+
13
+ export default Delay;
@@ -0,0 +1,13 @@
1
+ const Duration = [
2
+ {
3
+ visible: "globalTransitionsProperty != 'none'",
4
+ title: "Duration",
5
+ id: "globalTransitionsDuration",
6
+ format: "duration-[{{value}}ms]",
7
+ number: {
8
+ default: 300,
9
+ },
10
+ },
11
+ ];
12
+
13
+ export default Duration;
@@ -0,0 +1,42 @@
1
+ const Property = [
2
+ {
3
+ title: "Apply to",
4
+ id: "globalTransitionsProperty",
5
+ format: "transition-{{value}}",
6
+ select: {
7
+ default: "all",
8
+ items: [
9
+ {
10
+ title: "None",
11
+ value: "none",
12
+ },
13
+ {
14
+ title: "All",
15
+ value: "all",
16
+ },
17
+ {
18
+ title: "Most Common",
19
+ value: "default",
20
+ },
21
+ {
22
+ title: "Colors",
23
+ value: "colors",
24
+ },
25
+ {
26
+ title: "Opacity",
27
+ value: "opacity",
28
+ },
29
+ {
30
+ title: "Shadows",
31
+ value: "shadow",
32
+ },
33
+ {
34
+ title: "Transforms",
35
+ value: "transform",
36
+ },
37
+ ],
38
+ },
39
+ },
40
+ ];
41
+
42
+ export default Property;
@@ -0,0 +1,44 @@
1
+ const TimingFunction = [
2
+ {
3
+ visible: "globalTransitionsProperty != 'none'",
4
+ title: "Function",
5
+ id: "globalTransitionsTimingFunction",
6
+ select: {
7
+ default: "ease-in-out",
8
+ items: [
9
+ {
10
+ title: "Custom",
11
+ value: "custom",
12
+ },
13
+ {
14
+ title: "Linear",
15
+ value: "linear",
16
+ },
17
+ {
18
+ title: "Ease-in",
19
+ value: "ease-in",
20
+ },
21
+ {
22
+ title: "Ease-out",
23
+ value: "ease-out",
24
+ },
25
+ {
26
+ title: "Ease-in-out",
27
+ value: "ease-in-out",
28
+ },
29
+ ],
30
+ },
31
+ },
32
+ {
33
+ visible: "globalTransitionsTimingFunction == 'custom'",
34
+ title: "Cubic Bezier",
35
+ id: "globalTransitionsTimingFunctionCustom",
36
+ format: "ease-[cubic-bezier({{value}})]",
37
+ input: {
38
+ default: "0.95,0.05,0.795,0.035",
39
+ subtitle: "x1, y1, x2, y2",
40
+ }
41
+ },
42
+ ];
43
+
44
+ export default TimingFunction;
@@ -0,0 +1,20 @@
1
+ const Transitions = [
2
+ {
3
+ globalControl: "Property",
4
+ },
5
+ {
6
+ globalControl: "TimingFunction",
7
+ },
8
+ {
9
+ heading: {},
10
+ title: "Timing",
11
+ },
12
+ {
13
+ globalControl: "Duration",
14
+ },
15
+ {
16
+ globalControl: "Delay",
17
+ },
18
+ ];
19
+
20
+ export default Transitions;