@eightshift/frontend-libs-tailwind 1.5.0 → 2.0.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 (229) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +11 -18
  3. package/blocks/init/assets/application-admin.js +0 -10
  4. package/blocks/init/assets/application.js +0 -13
  5. package/blocks/init/assets/fonts/fraunces-italic-latin-extended.woff2 +0 -0
  6. package/blocks/init/assets/fonts/fraunces-italic-latin.woff2 +0 -0
  7. package/blocks/init/assets/fonts/fraunces-latin-extended.woff2 +0 -0
  8. package/blocks/init/assets/fonts/fraunces-latin.woff2 +0 -0
  9. package/blocks/init/assets/fonts/noto-sans-italic-latin-extended.woff2 +0 -0
  10. package/blocks/init/assets/fonts/noto-sans-italic-latin.woff2 +0 -0
  11. package/blocks/init/assets/fonts/noto-sans-latin-extended.woff2 +0 -0
  12. package/blocks/init/assets/fonts/noto-sans-latin.woff2 +0 -0
  13. package/blocks/init/assets/images/index.js +0 -5
  14. package/blocks/init/assets/scripts/application-admin.js +0 -7
  15. package/blocks/init/assets/scripts/application.js +0 -3
  16. package/blocks/init/assets/scripts/theme-colors.js +0 -39
  17. package/blocks/init/assets/styles/application-admin.css +0 -6
  18. package/blocks/init/assets/styles/application.css +0 -3
  19. package/blocks/init/src/Blocks/assets/application-blocks-editor.js +0 -14
  20. package/blocks/init/src/Blocks/assets/application-blocks-frontend.js +0 -13
  21. package/blocks/init/src/Blocks/assets/application-blocks.js +0 -9
  22. package/blocks/init/src/Blocks/assets/scripts/application-blocks-editor.js +0 -65
  23. package/blocks/init/src/Blocks/assets/scripts/application-blocks-frontend.js +0 -24
  24. package/blocks/init/src/Blocks/assets/scripts/link-section-editor.js +0 -262
  25. package/blocks/init/src/Blocks/assets/scripts/shared.js +0 -25
  26. package/blocks/init/src/Blocks/assets/styles/application-blocks-editor.css +0 -15
  27. package/blocks/init/src/Blocks/assets/styles/application-blocks-frontend.css +0 -9
  28. package/blocks/init/src/Blocks/assets/styles/application-blocks.css +0 -1
  29. package/blocks/init/src/Blocks/assets/styles/editor/editor-overrides.css +0 -15
  30. package/blocks/init/src/Blocks/assets/styles/fonts.css +0 -90
  31. package/blocks/init/src/Blocks/assets/styles/tailwind.css +0 -30
  32. package/blocks/init/src/Blocks/components/admin-theme-options/admin-theme-options.php +0 -20
  33. package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/index.js +0 -36
  34. package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/pages/parts.js +0 -56
  35. package/blocks/init/src/Blocks/components/admin-theme-options/manifest.json +0 -5
  36. package/blocks/init/src/Blocks/components/button/assets/index.js +0 -22
  37. package/blocks/init/src/Blocks/components/button/button.php +0 -88
  38. package/blocks/init/src/Blocks/components/button/components/button-editor.js +0 -36
  39. package/blocks/init/src/Blocks/components/button/components/button-options.js +0 -134
  40. package/blocks/init/src/Blocks/components/button/manifest.json +0 -302
  41. package/blocks/init/src/Blocks/components/card/card.php +0 -42
  42. package/blocks/init/src/Blocks/components/card/components/card-editor.js +0 -43
  43. package/blocks/init/src/Blocks/components/card/components/card-options.js +0 -55
  44. package/blocks/init/src/Blocks/components/card/manifest.json +0 -111
  45. package/blocks/init/src/Blocks/components/head/head.php +0 -52
  46. package/blocks/init/src/Blocks/components/head/manifest.json +0 -17
  47. package/blocks/init/src/Blocks/components/heading/components/heading-editor.js +0 -26
  48. package/blocks/init/src/Blocks/components/heading/components/heading-options.js +0 -62
  49. package/blocks/init/src/Blocks/components/heading/heading.php +0 -45
  50. package/blocks/init/src/Blocks/components/heading/manifest.json +0 -76
  51. package/blocks/init/src/Blocks/components/hero/components/hero-editor.js +0 -42
  52. package/blocks/init/src/Blocks/components/hero/components/hero-options.js +0 -100
  53. package/blocks/init/src/Blocks/components/hero/hero.php +0 -45
  54. package/blocks/init/src/Blocks/components/hero/manifest.json +0 -96
  55. package/blocks/init/src/Blocks/components/icon/components/icon-editor.js +0 -23
  56. package/blocks/init/src/Blocks/components/icon/components/icon-options.js +0 -65
  57. package/blocks/init/src/Blocks/components/icon/icon.php +0 -53
  58. package/blocks/init/src/Blocks/components/icon/manifest.json +0 -1238
  59. package/blocks/init/src/Blocks/components/image/components/image-editor.js +0 -64
  60. package/blocks/init/src/Blocks/components/image/components/image-options.js +0 -111
  61. package/blocks/init/src/Blocks/components/image/image.php +0 -68
  62. package/blocks/init/src/Blocks/components/image/manifest.json +0 -125
  63. package/blocks/init/src/Blocks/components/list/components/list-editor.js +0 -30
  64. package/blocks/init/src/Blocks/components/list/components/list-options.js +0 -62
  65. package/blocks/init/src/Blocks/components/list/list.php +0 -32
  66. package/blocks/init/src/Blocks/components/list/manifest.json +0 -127
  67. package/blocks/init/src/Blocks/components/load-more/assets/index.js +0 -19
  68. package/blocks/init/src/Blocks/components/load-more/assets/load-more.js +0 -146
  69. package/blocks/init/src/Blocks/components/load-more/components/load-more-editor.js +0 -14
  70. package/blocks/init/src/Blocks/components/load-more/components/load-more-options.js +0 -19
  71. package/blocks/init/src/Blocks/components/load-more/load-more.php +0 -47
  72. package/blocks/init/src/Blocks/components/load-more/manifest.json +0 -39
  73. package/blocks/init/src/Blocks/components/modal/assets/index.js +0 -27
  74. package/blocks/init/src/Blocks/components/modal/manifest.json +0 -48
  75. package/blocks/init/src/Blocks/components/modal/modal.php +0 -46
  76. package/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js +0 -38
  77. package/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js +0 -48
  78. package/blocks/init/src/Blocks/components/paragraph/manifest.json +0 -81
  79. package/blocks/init/src/Blocks/components/paragraph/paragraph.php +0 -33
  80. package/blocks/init/src/Blocks/components/post-header/manifest.json +0 -5
  81. package/blocks/init/src/Blocks/components/post-header/post-header.php +0 -24
  82. package/blocks/init/src/Blocks/components/quote/components/quote-editor.js +0 -53
  83. package/blocks/init/src/Blocks/components/quote/components/quote-options.js +0 -29
  84. package/blocks/init/src/Blocks/components/quote/manifest.json +0 -47
  85. package/blocks/init/src/Blocks/components/quote/quote.php +0 -49
  86. package/blocks/init/src/Blocks/components/share/assets/index.js +0 -39
  87. package/blocks/init/src/Blocks/components/share/components/share-editor.js +0 -28
  88. package/blocks/init/src/Blocks/components/share/components/share-options.js +0 -112
  89. package/blocks/init/src/Blocks/components/share/manifest.json +0 -72
  90. package/blocks/init/src/Blocks/components/share/share.php +0 -69
  91. package/blocks/init/src/Blocks/components/tracking-before-body-end/manifest.json +0 -5
  92. package/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php +0 -9
  93. package/blocks/init/src/Blocks/components/tracking-head/manifest.json +0 -5
  94. package/blocks/init/src/Blocks/components/tracking-head/tracking-head.php +0 -9
  95. package/blocks/init/src/Blocks/components/video/components/video-editor.js +0 -74
  96. package/blocks/init/src/Blocks/components/video/components/video-options.js +0 -279
  97. package/blocks/init/src/Blocks/components/video/manifest.json +0 -120
  98. package/blocks/init/src/Blocks/components/video/video.php +0 -70
  99. package/blocks/init/src/Blocks/custom/accordion/accordion-block.js +0 -15
  100. package/blocks/init/src/Blocks/custom/accordion/accordion.php +0 -28
  101. package/blocks/init/src/Blocks/custom/accordion/assets/index.js +0 -37
  102. package/blocks/init/src/Blocks/custom/accordion/components/accordion-editor.js +0 -22
  103. package/blocks/init/src/Blocks/custom/accordion/components/accordion-options.js +0 -18
  104. package/blocks/init/src/Blocks/custom/accordion/manifest.json +0 -32
  105. package/blocks/init/src/Blocks/custom/accordion-item/accordion-item-block.js +0 -19
  106. package/blocks/init/src/Blocks/custom/accordion-item/accordion-item.php +0 -46
  107. package/blocks/init/src/Blocks/custom/accordion-item/components/accordion-item-editor.js +0 -60
  108. package/blocks/init/src/Blocks/custom/accordion-item/manifest.json +0 -69
  109. package/blocks/init/src/Blocks/custom/button/button-block.js +0 -13
  110. package/blocks/init/src/Blocks/custom/button/button.php +0 -11
  111. package/blocks/init/src/Blocks/custom/button/components/button-editor.js +0 -12
  112. package/blocks/init/src/Blocks/custom/button/components/button-options.js +0 -12
  113. package/blocks/init/src/Blocks/custom/button/manifest.json +0 -18
  114. package/blocks/init/src/Blocks/custom/card/card-block.js +0 -13
  115. package/blocks/init/src/Blocks/custom/card/card.php +0 -11
  116. package/blocks/init/src/Blocks/custom/card/components/card-editor.js +0 -12
  117. package/blocks/init/src/Blocks/custom/card/components/card-options.js +0 -15
  118. package/blocks/init/src/Blocks/custom/card/manifest.json +0 -18
  119. package/blocks/init/src/Blocks/custom/carousel/assets/index.js +0 -46
  120. package/blocks/init/src/Blocks/custom/carousel/assets/navigation.js +0 -31
  121. package/blocks/init/src/Blocks/custom/carousel/assets/pagination.js +0 -40
  122. package/blocks/init/src/Blocks/custom/carousel/carousel-block.js +0 -21
  123. package/blocks/init/src/Blocks/custom/carousel/carousel.php +0 -61
  124. package/blocks/init/src/Blocks/custom/carousel/components/carousel-editor.js +0 -25
  125. package/blocks/init/src/Blocks/custom/carousel/components/carousel-options.js +0 -47
  126. package/blocks/init/src/Blocks/custom/carousel/manifest.json +0 -130
  127. package/blocks/init/src/Blocks/custom/column/column-block.js +0 -21
  128. package/blocks/init/src/Blocks/custom/column/column-hooks.js +0 -32
  129. package/blocks/init/src/Blocks/custom/column/column.php +0 -21
  130. package/blocks/init/src/Blocks/custom/column/components/column-editor.js +0 -22
  131. package/blocks/init/src/Blocks/custom/column/components/column-options.js +0 -580
  132. package/blocks/init/src/Blocks/custom/column/manifest.json +0 -625
  133. package/blocks/init/src/Blocks/custom/columns/columns-block.js +0 -20
  134. package/blocks/init/src/Blocks/custom/columns/columns.php +0 -21
  135. package/blocks/init/src/Blocks/custom/columns/components/columns-editor.js +0 -81
  136. package/blocks/init/src/Blocks/custom/columns/components/columns-options.js +0 -104
  137. package/blocks/init/src/Blocks/custom/columns/manifest.json +0 -581
  138. package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-editor.js +0 -28
  139. package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-options.js +0 -248
  140. package/blocks/init/src/Blocks/custom/featured-content/featured-content-block.js +0 -13
  141. package/blocks/init/src/Blocks/custom/featured-content/featured-content.php +0 -139
  142. package/blocks/init/src/Blocks/custom/featured-content/manifest.json +0 -131
  143. package/blocks/init/src/Blocks/custom/featured-content/partials/cards.php +0 -39
  144. package/blocks/init/src/Blocks/custom/group/components/group-editor.js +0 -6
  145. package/blocks/init/src/Blocks/custom/group/group-block.js +0 -14
  146. package/blocks/init/src/Blocks/custom/group/group.php +0 -10
  147. package/blocks/init/src/Blocks/custom/group/manifest.json +0 -32
  148. package/blocks/init/src/Blocks/custom/heading/components/heading-editor.js +0 -15
  149. package/blocks/init/src/Blocks/custom/heading/components/heading-options.js +0 -38
  150. package/blocks/init/src/Blocks/custom/heading/heading-block.js +0 -13
  151. package/blocks/init/src/Blocks/custom/heading/heading-transforms.js +0 -26
  152. package/blocks/init/src/Blocks/custom/heading/heading.php +0 -15
  153. package/blocks/init/src/Blocks/custom/heading/manifest.json +0 -79
  154. package/blocks/init/src/Blocks/custom/hero/components/hero-editor.js +0 -12
  155. package/blocks/init/src/Blocks/custom/hero/components/hero-options.js +0 -14
  156. package/blocks/init/src/Blocks/custom/hero/hero-block.js +0 -13
  157. package/blocks/init/src/Blocks/custom/hero/hero.php +0 -11
  158. package/blocks/init/src/Blocks/custom/hero/manifest.json +0 -17
  159. package/blocks/init/src/Blocks/custom/image/components/image-editor.js +0 -12
  160. package/blocks/init/src/Blocks/custom/image/components/image-options.js +0 -14
  161. package/blocks/init/src/Blocks/custom/image/image-block.js +0 -13
  162. package/blocks/init/src/Blocks/custom/image/image.php +0 -11
  163. package/blocks/init/src/Blocks/custom/image/manifest.json +0 -33
  164. package/blocks/init/src/Blocks/custom/list/components/list-editor.js +0 -14
  165. package/blocks/init/src/Blocks/custom/list/components/list-options.js +0 -39
  166. package/blocks/init/src/Blocks/custom/list/list-block.js +0 -13
  167. package/blocks/init/src/Blocks/custom/list/list.php +0 -15
  168. package/blocks/init/src/Blocks/custom/list/manifest.json +0 -58
  169. package/blocks/init/src/Blocks/custom/map/assets/index.js +0 -20
  170. package/blocks/init/src/Blocks/custom/map/assets/map-controller.js +0 -41
  171. package/blocks/init/src/Blocks/custom/map/assets/utils.js +0 -161
  172. package/blocks/init/src/Blocks/custom/map/components/map-components.js +0 -403
  173. package/blocks/init/src/Blocks/custom/map/components/map-editor.js +0 -56
  174. package/blocks/init/src/Blocks/custom/map/components/map-options.js +0 -550
  175. package/blocks/init/src/Blocks/custom/map/manifest.json +0 -79
  176. package/blocks/init/src/Blocks/custom/map/map-block.js +0 -13
  177. package/blocks/init/src/Blocks/custom/map/map.php +0 -52
  178. package/blocks/init/src/Blocks/custom/map/styles.css +0 -2
  179. package/blocks/init/src/Blocks/custom/modal/components/modal-editor.js +0 -90
  180. package/blocks/init/src/Blocks/custom/modal/manifest.json +0 -51
  181. package/blocks/init/src/Blocks/custom/modal/modal-block.js +0 -14
  182. package/blocks/init/src/Blocks/custom/modal/modal.php +0 -20
  183. package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-editor.js +0 -17
  184. package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-options.js +0 -38
  185. package/blocks/init/src/Blocks/custom/paragraph/manifest.json +0 -82
  186. package/blocks/init/src/Blocks/custom/paragraph/paragraph-block.js +0 -13
  187. package/blocks/init/src/Blocks/custom/paragraph/paragraph-transforms.js +0 -46
  188. package/blocks/init/src/Blocks/custom/paragraph/paragraph.php +0 -15
  189. package/blocks/init/src/Blocks/custom/quote/components/quote-editor.js +0 -12
  190. package/blocks/init/src/Blocks/custom/quote/components/quote-options.js +0 -14
  191. package/blocks/init/src/Blocks/custom/quote/manifest.json +0 -17
  192. package/blocks/init/src/Blocks/custom/quote/quote-block.js +0 -13
  193. package/blocks/init/src/Blocks/custom/quote/quote.php +0 -13
  194. package/blocks/init/src/Blocks/custom/share/components/share-editor.js +0 -6
  195. package/blocks/init/src/Blocks/custom/share/components/share-options.js +0 -12
  196. package/blocks/init/src/Blocks/custom/share/manifest.json +0 -19
  197. package/blocks/init/src/Blocks/custom/share/share-block.js +0 -13
  198. package/blocks/init/src/Blocks/custom/share/share.php +0 -11
  199. package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-editor.js +0 -57
  200. package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-options.js +0 -106
  201. package/blocks/init/src/Blocks/custom/site-footer/manifest.json +0 -73
  202. package/blocks/init/src/Blocks/custom/site-footer/site-footer-block.js +0 -13
  203. package/blocks/init/src/Blocks/custom/site-footer/site-footer.php +0 -74
  204. package/blocks/init/src/Blocks/custom/site-navigation/assets/index.js +0 -9
  205. package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-editor.js +0 -42
  206. package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-options.js +0 -73
  207. package/blocks/init/src/Blocks/custom/site-navigation/manifest.json +0 -77
  208. package/blocks/init/src/Blocks/custom/site-navigation/site-navigation-block.js +0 -13
  209. package/blocks/init/src/Blocks/custom/site-navigation/site-navigation.php +0 -99
  210. package/blocks/init/src/Blocks/custom/table-of-contents/assets/index.js +0 -58
  211. package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-editor.js +0 -38
  212. package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-options.js +0 -32
  213. package/blocks/init/src/Blocks/custom/table-of-contents/manifest.json +0 -48
  214. package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents-block.js +0 -13
  215. package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents.php +0 -31
  216. package/blocks/init/src/Blocks/custom/video/components/video-editor.js +0 -6
  217. package/blocks/init/src/Blocks/custom/video/components/video-options.js +0 -12
  218. package/blocks/init/src/Blocks/custom/video/manifest.json +0 -29
  219. package/blocks/init/src/Blocks/custom/video/video-block.js +0 -13
  220. package/blocks/init/src/Blocks/custom/video/video.php +0 -22
  221. package/blocks/init/src/Blocks/manifest.json +0 -32
  222. package/blocks/init/src/Blocks/variations/card-simple/manifest.json +0 -17
  223. package/blocks/init/src/Blocks/wrapper/components/wrapper-editor.js +0 -12
  224. package/blocks/init/src/Blocks/wrapper/components/wrapper-options.js +0 -364
  225. package/blocks/init/src/Blocks/wrapper/manifest.json +0 -459
  226. package/blocks/init/src/Blocks/wrapper/styles-editor.css +0 -13
  227. package/blocks/init/src/Blocks/wrapper/styles.css +0 -19
  228. package/blocks/init/src/Blocks/wrapper/wrapper.js +0 -27
  229. package/blocks/init/src/Blocks/wrapper/wrapper.php +0 -34
@@ -1,581 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/infinum/eightshift-frontend-libs-tailwind/main/schemas/block.json",
3
- "blockName": "columns",
4
- "title": "Columns",
5
- "description": "Expand your content into two dimensions.",
6
- "category": "eightshift",
7
- "icon": {
8
- "src": "es-columns"
9
- },
10
- "keywords": [
11
- "columns"
12
- ],
13
- "example": {
14
- "attributes": {
15
- "columnsNumOfColumns": {
16
- "_default": "2",
17
- "_desktopFirst": true,
18
- "max-sm": "1"
19
- },
20
- "wrapperBackground": "solid-gray-50",
21
- "wrapperBorderRadius": "lg",
22
- "wrapperPaddingTop": {
23
- "_default": "md",
24
- "_desktopFirst": true
25
- },
26
- "wrapperPaddingBottom": {
27
- "_default": "md",
28
- "_desktopFirst": true
29
- }
30
- },
31
- "innerBlocks": [
32
- {
33
- "name": "eightshift-boilerplate/column",
34
- "attributes": {
35
- "columnOffset": {
36
- "_default": "1",
37
- "_desktopFirst": true,
38
- "max-sm": "1"
39
- },
40
- "columnWidth": {
41
- "_default": "1",
42
- "_desktopFirst": true,
43
- "max-sm": "1"
44
- },
45
- "columnVerticalAlign": {
46
- "_default": "center",
47
- "_desktopFirst": true
48
- }
49
- },
50
- "innerBlocks": [
51
- {
52
- "name": "eightshift-boilerplate/heading",
53
- "attributes": {
54
- "wrapperNoWidthControls": true,
55
- "wrapperWidth": "none",
56
- "headingHeadingContent": "Lorem ipsum",
57
- "headingHeadingSize": "xl"
58
- }
59
- },
60
- {
61
- "name": "eightshift-boilerplate/paragraph",
62
- "attributes": {
63
- "wrapperNoWidthControls": true,
64
- "wrapperWidth": "none",
65
- "paragraphParagraphContent": "Dolor sit amet"
66
- }
67
- }
68
- ]
69
- },
70
- {
71
- "name": "eightshift-boilerplate/column",
72
- "attributes": {
73
- "columnOffset": {
74
- "_default": "2",
75
- "_desktopFirst": true,
76
- "max-sm": "1"
77
- },
78
- "columnWidth": {
79
- "_default": "1",
80
- "_desktopFirst": true,
81
- "max-sm": "1"
82
- },
83
- "columnHorizontalAlign": {
84
- "_default": "end",
85
- "_desktopFirst": true
86
- }
87
- },
88
- "innerBlocks": [
89
- {
90
- "name": "eightshift-boilerplate/image",
91
- "attributes": {
92
- "wrapperNoWidthControls": true,
93
- "wrapperWidth": "none",
94
- "imageImageData": {
95
- "_desktopFirst": false,
96
- "_default": {
97
- "id": 245,
98
- "url": "https://picsum.photos/id/17/400/400"
99
- }
100
- }
101
- }
102
- }
103
- ]
104
- }
105
- ]
106
- },
107
- "hasInnerBlocks": true,
108
- "attributes": {
109
- "columnsNumOfColumns": {
110
- "type": "object",
111
- "default": {
112
- "_default": "12",
113
- "_desktopFirst": true
114
- }
115
- },
116
- "columnsColumnGap": {
117
- "type": "object",
118
- "default": {
119
- "_default": "m",
120
- "_desktopFirst": true
121
- }
122
- },
123
- "columnsRowGap": {
124
- "type": "object",
125
- "default": {
126
- "_default": "m",
127
- "_desktopFirst": true
128
- }
129
- },
130
- "columnsRowHeight": {
131
- "type": "object",
132
- "default": {
133
- "_default": "auto",
134
- "_desktopFirst": true
135
- }
136
- }
137
- },
138
- "options": {
139
- "columnsGap": [
140
- {
141
- "label": "0",
142
- "value": "none"
143
- },
144
- {
145
- "label": "8",
146
- "value": "s"
147
- },
148
- {
149
- "label": "16",
150
- "value": "m"
151
- },
152
- {
153
- "label": "32",
154
- "value": "l"
155
- },
156
- {
157
- "label": "64",
158
- "value": "xl"
159
- }
160
- ],
161
- "columnsRowHeight": [
162
- {
163
- "label": "Auto",
164
- "value": "auto"
165
- },
166
- {
167
- "label": "Equal",
168
- "value": "equal"
169
- }
170
- ]
171
- },
172
- "innerBlocksDependency": [
173
- "column"
174
- ],
175
- "layoutPresets": [
176
- {
177
- "name": "2 columns",
178
- "icon": "twoColumns",
179
- "attributes": {
180
- "columnsNumOfColumns": {
181
- "_default": "2",
182
- "_desktopFirst": true,
183
- "max-sm": "1"
184
- }
185
- },
186
- "blocks": [
187
- {
188
- "name": "eightshift-boilerplate/column",
189
- "attributes": {
190
- "columnOffset": {
191
- "_default": "1",
192
- "_desktopFirst": true,
193
- "max-sm": "1"
194
- },
195
- "columnWidth": {
196
- "_default": "1",
197
- "_desktopFirst": true,
198
- "max-sm": "1"
199
- }
200
- }
201
- },
202
- {
203
- "name": "eightshift-boilerplate/column",
204
- "attributes": {
205
- "columnOffset": {
206
- "_default": "2",
207
- "_desktopFirst": true,
208
- "max-sm": "1"
209
- },
210
- "columnWidth": {
211
- "_default": "1",
212
- "_desktopFirst": true,
213
- "max-sm": "1"
214
- }
215
- }
216
- }
217
- ]
218
- },
219
- {
220
- "name": "3 columns",
221
- "icon": "columns",
222
- "attributes": {
223
- "columnsNumOfColumns": {
224
- "_default": "3",
225
- "_desktopFirst": true,
226
- "max-sm": "1",
227
- "max-md": "4"
228
- }
229
- },
230
- "blocks": [
231
- {
232
- "name": "eightshift-boilerplate/column",
233
- "attributes": {
234
- "columnOffset": {
235
- "_default": "1",
236
- "_desktopFirst": true,
237
- "max-sm": "1",
238
- "max-md": "1"
239
- },
240
- "columnWidth": {
241
- "_default": "1",
242
- "_desktopFirst": true,
243
- "max-sm": "1",
244
- "max-md": "2"
245
- }
246
- }
247
- },
248
- {
249
- "name": "eightshift-boilerplate/column",
250
- "attributes": {
251
- "columnOffset": {
252
- "_default": "2",
253
- "_desktopFirst": true,
254
- "max-sm": "1",
255
- "max-md": "3"
256
- },
257
- "columnWidth": {
258
- "_default": "1",
259
- "_desktopFirst": true,
260
- "max-sm": "1",
261
- "max-md": "2"
262
- }
263
- }
264
- },
265
- {
266
- "name": "eightshift-boilerplate/column",
267
- "attributes": {
268
- "columnOffset": {
269
- "_default": "3",
270
- "_desktopFirst": true,
271
- "max-sm": "1",
272
- "max-md": "2"
273
- },
274
- "columnWidth": {
275
- "_default": "1",
276
- "_desktopFirst": true,
277
- "max-sm": "1",
278
- "max-md": "2"
279
- }
280
- }
281
- }
282
- ]
283
- },
284
- {
285
- "name": "4 columns",
286
- "icon": "fourColumns",
287
- "attributes": {
288
- "columnsNumOfColumns": {
289
- "_default": "4",
290
- "_desktopFirst": true,
291
- "max-sm": "1",
292
- "max-md": "2"
293
- }
294
- },
295
- "blocks": [
296
- {
297
- "name": "eightshift-boilerplate/column",
298
- "attributes": {
299
- "columnOffset": {
300
- "_default": "1",
301
- "_desktopFirst": true,
302
- "max-sm": "1",
303
- "max-md": "1"
304
- },
305
- "columnWidth": {
306
- "_default": "1",
307
- "_desktopFirst": true,
308
- "max-sm": "1",
309
- "max-md": "1"
310
- }
311
- }
312
- },
313
- {
314
- "name": "eightshift-boilerplate/column",
315
- "attributes": {
316
- "columnOffset": {
317
- "_default": "2",
318
- "_desktopFirst": true,
319
- "max-sm": "1",
320
- "max-md": "2"
321
- },
322
- "columnWidth": {
323
- "_default": "1",
324
- "_desktopFirst": true,
325
- "max-sm": "1",
326
- "max-md": "1"
327
- }
328
- }
329
- },
330
- {
331
- "name": "eightshift-boilerplate/column",
332
- "attributes": {
333
- "columnOffset": {
334
- "_default": "3",
335
- "_desktopFirst": true,
336
- "max-sm": "1",
337
- "max-md": "1"
338
- },
339
- "columnWidth": {
340
- "_default": "1",
341
- "_desktopFirst": true,
342
- "max-sm": "1",
343
- "max-md": "1"
344
- }
345
- }
346
- },
347
- {
348
- "name": "eightshift-boilerplate/column",
349
- "attributes": {
350
- "columnOffset": {
351
- "_default": "4",
352
- "_desktopFirst": true,
353
- "max-sm": "1",
354
- "max-md": "2"
355
- },
356
- "columnWidth": {
357
- "_default": "1",
358
- "_desktopFirst": true,
359
- "max-sm": "1",
360
- "max-md": "1"
361
- }
362
- }
363
- }
364
- ]
365
- },
366
- {
367
- "name": "1/3 - 2/3",
368
- "icon": "columns3366",
369
- "attributes": {
370
- "columnsNumOfColumns": {
371
- "_default": "3",
372
- "_desktopFirst": true,
373
- "max-sm": "1",
374
- "max-md": "2"
375
- }
376
- },
377
- "blocks": [
378
- {
379
- "name": "eightshift-boilerplate/column",
380
- "attributes": {
381
- "columnOffset": {
382
- "_default": "1",
383
- "_desktopFirst": true,
384
- "max-sm": "1",
385
- "max-md": "1"
386
- },
387
- "columnWidth": {
388
- "_default": "1",
389
- "_desktopFirst": true,
390
- "max-sm": "1",
391
- "max-md": "1"
392
- }
393
- }
394
- },
395
- {
396
- "name": "eightshift-boilerplate/column",
397
- "attributes": {
398
- "columnOffset": {
399
- "_default": "2",
400
- "_desktopFirst": true,
401
- "max-sm": "1",
402
- "max-md": "2"
403
- },
404
- "columnWidth": {
405
- "_default": "2",
406
- "_desktopFirst": true,
407
- "max-sm": "1",
408
- "max-md": "1"
409
- }
410
- }
411
- }
412
- ]
413
- },
414
- {
415
- "name": "2/3 - 1/3",
416
- "icon": "columns6633",
417
- "attributes": {
418
- "columnsNumOfColumns": {
419
- "_default": "3",
420
- "_desktopFirst": true,
421
- "max-sm": "1",
422
- "max-md": "2"
423
- }
424
- },
425
- "blocks": [
426
- {
427
- "name": "eightshift-boilerplate/column",
428
- "attributes": {
429
- "columnOffset": {
430
- "_default": "1",
431
- "_desktopFirst": true,
432
- "max-sm": "1",
433
- "max-md": "1"
434
- },
435
- "columnWidth": {
436
- "_default": "2",
437
- "_desktopFirst": true,
438
- "max-sm": "1",
439
- "max-md": "1"
440
- }
441
- }
442
- },
443
- {
444
- "name": "eightshift-boilerplate/column",
445
- "attributes": {
446
- "columnOffset": {
447
- "_default": "3",
448
- "_desktopFirst": true,
449
- "max-sm": "1",
450
- "max-md": "2"
451
- },
452
- "columnWidth": {
453
- "_default": "1",
454
- "_desktopFirst": true,
455
- "max-sm": "1",
456
- "max-md": "1"
457
- }
458
- }
459
- }
460
- ]
461
- },
462
- {
463
- "name": "Bento box",
464
- "icon": "layoutAlt2",
465
- "attributes": {
466
- "columnsNumOfColumns": {
467
- "_default": "2",
468
- "_desktopFirst": true,
469
- "max-sm": "1"
470
- },
471
- "columnsRowHeight": {
472
- "_default": "equal",
473
- "_desktopFirst": true,
474
- "max-sm": "auto"
475
- }
476
- },
477
- "blocks": [
478
- {
479
- "name": "eightshift-boilerplate/column",
480
- "attributes": {
481
- "columnOffset": {
482
- "_default": "1",
483
- "_desktopFirst": true,
484
- "max-sm": "1"
485
- },
486
- "columnWidth": {
487
- "_default": "1",
488
- "_desktopFirst": true,
489
- "max-sm": "1"
490
- },
491
- "columnRowSpan": {
492
- "_default": "2",
493
- "_desktopFirst": true
494
- }
495
- }
496
- },
497
- {
498
- "name": "eightshift-boilerplate/column",
499
- "attributes": {
500
- "columnOffset": {
501
- "_default": "2",
502
- "_desktopFirst": true,
503
- "max-sm": "1"
504
- },
505
- "columnWidth": {
506
- "_default": "1",
507
- "_desktopFirst": true,
508
- "max-sm": "1",
509
- "max-md": "2"
510
- }
511
- }
512
- },
513
- {
514
- "name": "eightshift-boilerplate/column",
515
- "attributes": {
516
- "columnOffset": {
517
- "_default": "2",
518
- "_desktopFirst": true,
519
- "max-sm": "1"
520
- },
521
- "columnWidth": {
522
- "_default": "1",
523
- "_desktopFirst": true,
524
- "max-sm": "1"
525
- }
526
- }
527
- }
528
- ]
529
- }
530
- ],
531
- "tailwind": {
532
- "base": {
533
- "twClasses": "grid"
534
- },
535
- "options": {
536
- "columnsNumOfColumns": {
537
- "responsive": true,
538
- "twClasses": {
539
- "1": "grid-cols-1",
540
- "2": "grid-cols-2",
541
- "3": "grid-cols-3",
542
- "4": "grid-cols-4",
543
- "5": "grid-cols-5",
544
- "6": "grid-cols-6",
545
- "7": "grid-cols-7",
546
- "8": "grid-cols-8",
547
- "9": "grid-cols-9",
548
- "10": "grid-cols-10",
549
- "11": "grid-cols-11",
550
- "12": "grid-cols-12"
551
- }
552
- },
553
- "columnsRowGap": {
554
- "responsive": true,
555
- "twClasses": {
556
- "none": "",
557
- "s": "gap-y-2",
558
- "m": "gap-y-4",
559
- "l": "gap-y-8",
560
- "xl": "gap-y-16"
561
- }
562
- },
563
- "columnsColumnGap": {
564
- "responsive": true,
565
- "twClasses": {
566
- "none": "",
567
- "s": "gap-x-2",
568
- "m": "gap-x-4",
569
- "l": "gap-x-8",
570
- "xl": "gap-x-16"
571
- }
572
- },
573
- "columnsRowHeight": {
574
- "responsive": true,
575
- "twClasses": {
576
- "equal": "auto-rows-fr"
577
- }
578
- }
579
- }
580
- }
581
- }
@@ -1,28 +0,0 @@
1
- import { ServerSideRender, tailwindClasses, props } from '@eightshift/frontend-libs-tailwind/scripts';
2
- import { LoadMoreEditor } from '../../../components/load-more/components/load-more-editor';
3
- import manifest from '../manifest.json';
4
-
5
- export const FeaturedContentEditor = ({ attributes, setAttributes }) => {
6
- const { blockFullName } = attributes;
7
-
8
- return (
9
- <>
10
- <ServerSideRender
11
- block={blockFullName}
12
- attributes={{
13
- ...attributes,
14
- featuredContentServerSideRender: true,
15
- wrapperUse: false,
16
- }}
17
- />
18
-
19
- <div className={tailwindClasses('loadMoreContainer', attributes, manifest)}>
20
- <LoadMoreEditor
21
- {...props('loadMore', attributes, {
22
- setAttributes,
23
- })}
24
- />
25
- </div>
26
- </>
27
- );
28
- };