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