@eightshift/frontend-libs-tailwind 1.5.0 → 2.0.1

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 (246) hide show
  1. package/.gitattributes +8 -30
  2. package/.github/workflows/ci.yml +2 -1
  3. package/CHANGELOG.md +29 -1
  4. package/bun.lock +1009 -0
  5. package/package.json +16 -26
  6. package/schemas/globalManifest.json +5 -0
  7. package/scripts/components/picker-placeholder.js +1 -1
  8. package/scripts/editor/colors.js +2 -2
  9. package/scripts/editor/options.js +1 -1
  10. package/scripts/editor/registration.js +4 -7
  11. package/scripts/editor/store.js +19 -0
  12. package/scripts/helpers/cookies.js +24 -16
  13. package/scripts/plugins/yoast-seo.js +71 -45
  14. package/webpack/base.mjs +0 -5
  15. package/webpack/helpers.mjs +1 -5
  16. package/webpack/index.mjs +0 -1
  17. package/webpack/project.mjs +0 -5
  18. package/blocks/init/assets/application-admin.js +0 -10
  19. package/blocks/init/assets/application.js +0 -13
  20. package/blocks/init/assets/fonts/fraunces-italic-latin-extended.woff2 +0 -0
  21. package/blocks/init/assets/fonts/fraunces-italic-latin.woff2 +0 -0
  22. package/blocks/init/assets/fonts/fraunces-latin-extended.woff2 +0 -0
  23. package/blocks/init/assets/fonts/fraunces-latin.woff2 +0 -0
  24. package/blocks/init/assets/fonts/noto-sans-italic-latin-extended.woff2 +0 -0
  25. package/blocks/init/assets/fonts/noto-sans-italic-latin.woff2 +0 -0
  26. package/blocks/init/assets/fonts/noto-sans-latin-extended.woff2 +0 -0
  27. package/blocks/init/assets/fonts/noto-sans-latin.woff2 +0 -0
  28. package/blocks/init/assets/images/index.js +0 -5
  29. package/blocks/init/assets/scripts/application-admin.js +0 -7
  30. package/blocks/init/assets/scripts/application.js +0 -3
  31. package/blocks/init/assets/scripts/theme-colors.js +0 -39
  32. package/blocks/init/assets/styles/application-admin.css +0 -6
  33. package/blocks/init/assets/styles/application.css +0 -3
  34. package/blocks/init/src/Blocks/assets/application-blocks-editor.js +0 -14
  35. package/blocks/init/src/Blocks/assets/application-blocks-frontend.js +0 -13
  36. package/blocks/init/src/Blocks/assets/application-blocks.js +0 -9
  37. package/blocks/init/src/Blocks/assets/scripts/application-blocks-editor.js +0 -65
  38. package/blocks/init/src/Blocks/assets/scripts/application-blocks-frontend.js +0 -24
  39. package/blocks/init/src/Blocks/assets/scripts/link-section-editor.js +0 -262
  40. package/blocks/init/src/Blocks/assets/scripts/shared.js +0 -25
  41. package/blocks/init/src/Blocks/assets/styles/application-blocks-editor.css +0 -15
  42. package/blocks/init/src/Blocks/assets/styles/application-blocks-frontend.css +0 -9
  43. package/blocks/init/src/Blocks/assets/styles/application-blocks.css +0 -1
  44. package/blocks/init/src/Blocks/assets/styles/editor/editor-overrides.css +0 -15
  45. package/blocks/init/src/Blocks/assets/styles/fonts.css +0 -90
  46. package/blocks/init/src/Blocks/assets/styles/tailwind.css +0 -30
  47. package/blocks/init/src/Blocks/components/admin-theme-options/admin-theme-options.php +0 -20
  48. package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/index.js +0 -36
  49. package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/pages/parts.js +0 -56
  50. package/blocks/init/src/Blocks/components/admin-theme-options/manifest.json +0 -5
  51. package/blocks/init/src/Blocks/components/button/assets/index.js +0 -22
  52. package/blocks/init/src/Blocks/components/button/button.php +0 -88
  53. package/blocks/init/src/Blocks/components/button/components/button-editor.js +0 -36
  54. package/blocks/init/src/Blocks/components/button/components/button-options.js +0 -134
  55. package/blocks/init/src/Blocks/components/button/manifest.json +0 -302
  56. package/blocks/init/src/Blocks/components/card/card.php +0 -42
  57. package/blocks/init/src/Blocks/components/card/components/card-editor.js +0 -43
  58. package/blocks/init/src/Blocks/components/card/components/card-options.js +0 -55
  59. package/blocks/init/src/Blocks/components/card/manifest.json +0 -111
  60. package/blocks/init/src/Blocks/components/head/head.php +0 -52
  61. package/blocks/init/src/Blocks/components/head/manifest.json +0 -17
  62. package/blocks/init/src/Blocks/components/heading/components/heading-editor.js +0 -26
  63. package/blocks/init/src/Blocks/components/heading/components/heading-options.js +0 -62
  64. package/blocks/init/src/Blocks/components/heading/heading.php +0 -45
  65. package/blocks/init/src/Blocks/components/heading/manifest.json +0 -76
  66. package/blocks/init/src/Blocks/components/hero/components/hero-editor.js +0 -42
  67. package/blocks/init/src/Blocks/components/hero/components/hero-options.js +0 -100
  68. package/blocks/init/src/Blocks/components/hero/hero.php +0 -45
  69. package/blocks/init/src/Blocks/components/hero/manifest.json +0 -96
  70. package/blocks/init/src/Blocks/components/icon/components/icon-editor.js +0 -23
  71. package/blocks/init/src/Blocks/components/icon/components/icon-options.js +0 -65
  72. package/blocks/init/src/Blocks/components/icon/icon.php +0 -53
  73. package/blocks/init/src/Blocks/components/icon/manifest.json +0 -1238
  74. package/blocks/init/src/Blocks/components/image/components/image-editor.js +0 -64
  75. package/blocks/init/src/Blocks/components/image/components/image-options.js +0 -111
  76. package/blocks/init/src/Blocks/components/image/image.php +0 -68
  77. package/blocks/init/src/Blocks/components/image/manifest.json +0 -125
  78. package/blocks/init/src/Blocks/components/list/components/list-editor.js +0 -30
  79. package/blocks/init/src/Blocks/components/list/components/list-options.js +0 -62
  80. package/blocks/init/src/Blocks/components/list/list.php +0 -32
  81. package/blocks/init/src/Blocks/components/list/manifest.json +0 -127
  82. package/blocks/init/src/Blocks/components/load-more/assets/index.js +0 -19
  83. package/blocks/init/src/Blocks/components/load-more/assets/load-more.js +0 -146
  84. package/blocks/init/src/Blocks/components/load-more/components/load-more-editor.js +0 -14
  85. package/blocks/init/src/Blocks/components/load-more/components/load-more-options.js +0 -19
  86. package/blocks/init/src/Blocks/components/load-more/load-more.php +0 -47
  87. package/blocks/init/src/Blocks/components/load-more/manifest.json +0 -39
  88. package/blocks/init/src/Blocks/components/modal/assets/index.js +0 -27
  89. package/blocks/init/src/Blocks/components/modal/manifest.json +0 -48
  90. package/blocks/init/src/Blocks/components/modal/modal.php +0 -46
  91. package/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js +0 -38
  92. package/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js +0 -48
  93. package/blocks/init/src/Blocks/components/paragraph/manifest.json +0 -81
  94. package/blocks/init/src/Blocks/components/paragraph/paragraph.php +0 -33
  95. package/blocks/init/src/Blocks/components/post-header/manifest.json +0 -5
  96. package/blocks/init/src/Blocks/components/post-header/post-header.php +0 -24
  97. package/blocks/init/src/Blocks/components/quote/components/quote-editor.js +0 -53
  98. package/blocks/init/src/Blocks/components/quote/components/quote-options.js +0 -29
  99. package/blocks/init/src/Blocks/components/quote/manifest.json +0 -47
  100. package/blocks/init/src/Blocks/components/quote/quote.php +0 -49
  101. package/blocks/init/src/Blocks/components/share/assets/index.js +0 -39
  102. package/blocks/init/src/Blocks/components/share/components/share-editor.js +0 -28
  103. package/blocks/init/src/Blocks/components/share/components/share-options.js +0 -112
  104. package/blocks/init/src/Blocks/components/share/manifest.json +0 -72
  105. package/blocks/init/src/Blocks/components/share/share.php +0 -69
  106. package/blocks/init/src/Blocks/components/tracking-before-body-end/manifest.json +0 -5
  107. package/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php +0 -9
  108. package/blocks/init/src/Blocks/components/tracking-head/manifest.json +0 -5
  109. package/blocks/init/src/Blocks/components/tracking-head/tracking-head.php +0 -9
  110. package/blocks/init/src/Blocks/components/video/components/video-editor.js +0 -74
  111. package/blocks/init/src/Blocks/components/video/components/video-options.js +0 -279
  112. package/blocks/init/src/Blocks/components/video/manifest.json +0 -120
  113. package/blocks/init/src/Blocks/components/video/video.php +0 -70
  114. package/blocks/init/src/Blocks/custom/accordion/accordion-block.js +0 -15
  115. package/blocks/init/src/Blocks/custom/accordion/accordion.php +0 -28
  116. package/blocks/init/src/Blocks/custom/accordion/assets/index.js +0 -37
  117. package/blocks/init/src/Blocks/custom/accordion/components/accordion-editor.js +0 -22
  118. package/blocks/init/src/Blocks/custom/accordion/components/accordion-options.js +0 -18
  119. package/blocks/init/src/Blocks/custom/accordion/manifest.json +0 -32
  120. package/blocks/init/src/Blocks/custom/accordion-item/accordion-item-block.js +0 -19
  121. package/blocks/init/src/Blocks/custom/accordion-item/accordion-item.php +0 -46
  122. package/blocks/init/src/Blocks/custom/accordion-item/components/accordion-item-editor.js +0 -60
  123. package/blocks/init/src/Blocks/custom/accordion-item/manifest.json +0 -69
  124. package/blocks/init/src/Blocks/custom/button/button-block.js +0 -13
  125. package/blocks/init/src/Blocks/custom/button/button.php +0 -11
  126. package/blocks/init/src/Blocks/custom/button/components/button-editor.js +0 -12
  127. package/blocks/init/src/Blocks/custom/button/components/button-options.js +0 -12
  128. package/blocks/init/src/Blocks/custom/button/manifest.json +0 -18
  129. package/blocks/init/src/Blocks/custom/card/card-block.js +0 -13
  130. package/blocks/init/src/Blocks/custom/card/card.php +0 -11
  131. package/blocks/init/src/Blocks/custom/card/components/card-editor.js +0 -12
  132. package/blocks/init/src/Blocks/custom/card/components/card-options.js +0 -15
  133. package/blocks/init/src/Blocks/custom/card/manifest.json +0 -18
  134. package/blocks/init/src/Blocks/custom/carousel/assets/index.js +0 -46
  135. package/blocks/init/src/Blocks/custom/carousel/assets/navigation.js +0 -31
  136. package/blocks/init/src/Blocks/custom/carousel/assets/pagination.js +0 -40
  137. package/blocks/init/src/Blocks/custom/carousel/carousel-block.js +0 -21
  138. package/blocks/init/src/Blocks/custom/carousel/carousel.php +0 -61
  139. package/blocks/init/src/Blocks/custom/carousel/components/carousel-editor.js +0 -25
  140. package/blocks/init/src/Blocks/custom/carousel/components/carousel-options.js +0 -47
  141. package/blocks/init/src/Blocks/custom/carousel/manifest.json +0 -130
  142. package/blocks/init/src/Blocks/custom/column/column-block.js +0 -21
  143. package/blocks/init/src/Blocks/custom/column/column-hooks.js +0 -32
  144. package/blocks/init/src/Blocks/custom/column/column.php +0 -21
  145. package/blocks/init/src/Blocks/custom/column/components/column-editor.js +0 -22
  146. package/blocks/init/src/Blocks/custom/column/components/column-options.js +0 -580
  147. package/blocks/init/src/Blocks/custom/column/manifest.json +0 -625
  148. package/blocks/init/src/Blocks/custom/columns/columns-block.js +0 -20
  149. package/blocks/init/src/Blocks/custom/columns/columns.php +0 -21
  150. package/blocks/init/src/Blocks/custom/columns/components/columns-editor.js +0 -81
  151. package/blocks/init/src/Blocks/custom/columns/components/columns-options.js +0 -104
  152. package/blocks/init/src/Blocks/custom/columns/manifest.json +0 -581
  153. package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-editor.js +0 -28
  154. package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-options.js +0 -248
  155. package/blocks/init/src/Blocks/custom/featured-content/featured-content-block.js +0 -13
  156. package/blocks/init/src/Blocks/custom/featured-content/featured-content.php +0 -139
  157. package/blocks/init/src/Blocks/custom/featured-content/manifest.json +0 -131
  158. package/blocks/init/src/Blocks/custom/featured-content/partials/cards.php +0 -39
  159. package/blocks/init/src/Blocks/custom/group/components/group-editor.js +0 -6
  160. package/blocks/init/src/Blocks/custom/group/group-block.js +0 -14
  161. package/blocks/init/src/Blocks/custom/group/group.php +0 -10
  162. package/blocks/init/src/Blocks/custom/group/manifest.json +0 -32
  163. package/blocks/init/src/Blocks/custom/heading/components/heading-editor.js +0 -15
  164. package/blocks/init/src/Blocks/custom/heading/components/heading-options.js +0 -38
  165. package/blocks/init/src/Blocks/custom/heading/heading-block.js +0 -13
  166. package/blocks/init/src/Blocks/custom/heading/heading-transforms.js +0 -26
  167. package/blocks/init/src/Blocks/custom/heading/heading.php +0 -15
  168. package/blocks/init/src/Blocks/custom/heading/manifest.json +0 -79
  169. package/blocks/init/src/Blocks/custom/hero/components/hero-editor.js +0 -12
  170. package/blocks/init/src/Blocks/custom/hero/components/hero-options.js +0 -14
  171. package/blocks/init/src/Blocks/custom/hero/hero-block.js +0 -13
  172. package/blocks/init/src/Blocks/custom/hero/hero.php +0 -11
  173. package/blocks/init/src/Blocks/custom/hero/manifest.json +0 -17
  174. package/blocks/init/src/Blocks/custom/image/components/image-editor.js +0 -12
  175. package/blocks/init/src/Blocks/custom/image/components/image-options.js +0 -14
  176. package/blocks/init/src/Blocks/custom/image/image-block.js +0 -13
  177. package/blocks/init/src/Blocks/custom/image/image.php +0 -11
  178. package/blocks/init/src/Blocks/custom/image/manifest.json +0 -33
  179. package/blocks/init/src/Blocks/custom/list/components/list-editor.js +0 -14
  180. package/blocks/init/src/Blocks/custom/list/components/list-options.js +0 -39
  181. package/blocks/init/src/Blocks/custom/list/list-block.js +0 -13
  182. package/blocks/init/src/Blocks/custom/list/list.php +0 -15
  183. package/blocks/init/src/Blocks/custom/list/manifest.json +0 -58
  184. package/blocks/init/src/Blocks/custom/map/assets/index.js +0 -20
  185. package/blocks/init/src/Blocks/custom/map/assets/map-controller.js +0 -41
  186. package/blocks/init/src/Blocks/custom/map/assets/utils.js +0 -161
  187. package/blocks/init/src/Blocks/custom/map/components/map-components.js +0 -403
  188. package/blocks/init/src/Blocks/custom/map/components/map-editor.js +0 -56
  189. package/blocks/init/src/Blocks/custom/map/components/map-options.js +0 -550
  190. package/blocks/init/src/Blocks/custom/map/manifest.json +0 -79
  191. package/blocks/init/src/Blocks/custom/map/map-block.js +0 -13
  192. package/blocks/init/src/Blocks/custom/map/map.php +0 -52
  193. package/blocks/init/src/Blocks/custom/map/styles.css +0 -2
  194. package/blocks/init/src/Blocks/custom/modal/components/modal-editor.js +0 -90
  195. package/blocks/init/src/Blocks/custom/modal/manifest.json +0 -51
  196. package/blocks/init/src/Blocks/custom/modal/modal-block.js +0 -14
  197. package/blocks/init/src/Blocks/custom/modal/modal.php +0 -20
  198. package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-editor.js +0 -17
  199. package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-options.js +0 -38
  200. package/blocks/init/src/Blocks/custom/paragraph/manifest.json +0 -82
  201. package/blocks/init/src/Blocks/custom/paragraph/paragraph-block.js +0 -13
  202. package/blocks/init/src/Blocks/custom/paragraph/paragraph-transforms.js +0 -46
  203. package/blocks/init/src/Blocks/custom/paragraph/paragraph.php +0 -15
  204. package/blocks/init/src/Blocks/custom/quote/components/quote-editor.js +0 -12
  205. package/blocks/init/src/Blocks/custom/quote/components/quote-options.js +0 -14
  206. package/blocks/init/src/Blocks/custom/quote/manifest.json +0 -17
  207. package/blocks/init/src/Blocks/custom/quote/quote-block.js +0 -13
  208. package/blocks/init/src/Blocks/custom/quote/quote.php +0 -13
  209. package/blocks/init/src/Blocks/custom/share/components/share-editor.js +0 -6
  210. package/blocks/init/src/Blocks/custom/share/components/share-options.js +0 -12
  211. package/blocks/init/src/Blocks/custom/share/manifest.json +0 -19
  212. package/blocks/init/src/Blocks/custom/share/share-block.js +0 -13
  213. package/blocks/init/src/Blocks/custom/share/share.php +0 -11
  214. package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-editor.js +0 -57
  215. package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-options.js +0 -106
  216. package/blocks/init/src/Blocks/custom/site-footer/manifest.json +0 -73
  217. package/blocks/init/src/Blocks/custom/site-footer/site-footer-block.js +0 -13
  218. package/blocks/init/src/Blocks/custom/site-footer/site-footer.php +0 -74
  219. package/blocks/init/src/Blocks/custom/site-navigation/assets/index.js +0 -9
  220. package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-editor.js +0 -42
  221. package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-options.js +0 -73
  222. package/blocks/init/src/Blocks/custom/site-navigation/manifest.json +0 -77
  223. package/blocks/init/src/Blocks/custom/site-navigation/site-navigation-block.js +0 -13
  224. package/blocks/init/src/Blocks/custom/site-navigation/site-navigation.php +0 -99
  225. package/blocks/init/src/Blocks/custom/table-of-contents/assets/index.js +0 -58
  226. package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-editor.js +0 -38
  227. package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-options.js +0 -32
  228. package/blocks/init/src/Blocks/custom/table-of-contents/manifest.json +0 -48
  229. package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents-block.js +0 -13
  230. package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents.php +0 -31
  231. package/blocks/init/src/Blocks/custom/video/components/video-editor.js +0 -6
  232. package/blocks/init/src/Blocks/custom/video/components/video-options.js +0 -12
  233. package/blocks/init/src/Blocks/custom/video/manifest.json +0 -29
  234. package/blocks/init/src/Blocks/custom/video/video-block.js +0 -13
  235. package/blocks/init/src/Blocks/custom/video/video.php +0 -22
  236. package/blocks/init/src/Blocks/manifest.json +0 -32
  237. package/blocks/init/src/Blocks/variations/card-simple/manifest.json +0 -17
  238. package/blocks/init/src/Blocks/wrapper/components/wrapper-editor.js +0 -12
  239. package/blocks/init/src/Blocks/wrapper/components/wrapper-options.js +0 -364
  240. package/blocks/init/src/Blocks/wrapper/manifest.json +0 -459
  241. package/blocks/init/src/Blocks/wrapper/styles-editor.css +0 -13
  242. package/blocks/init/src/Blocks/wrapper/styles.css +0 -19
  243. package/blocks/init/src/Blocks/wrapper/wrapper.js +0 -27
  244. package/blocks/init/src/Blocks/wrapper/wrapper.php +0 -34
  245. package/bun.lockb +0 -0
  246. package/readme/packages.md +0 -74
@@ -1,459 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/infinum/eightshift-frontend-libs-tailwind/main/schemas/component.json",
3
- "componentName": "wrapper",
4
- "title": "Wrapper",
5
- "componentClass": "wrapper",
6
- "example": {
7
- "attributes": {
8
- "wrapperId": "This a custom ID",
9
- "wrapperBgColorType": "project",
10
- "wrapperBgColorProject": "white",
11
- "wrapperUse": true,
12
- "wrapperSimple": false,
13
- "wrapperUseShowControl": true,
14
- "wrapperNoControls": false,
15
- "wrapperParentClass": "",
16
- "wrapperWidthLarge": 12,
17
- "wrapperOffsetLarge": 1,
18
- "wrapperHideLarge": false,
19
- "wrapperIsFullWidthLarge": true,
20
- "wrapperSpacingTopLarge": 1,
21
- "wrapperSpacingBottomLarge": 1,
22
- "wrapperSpacingTopInLarge": 1,
23
- "wrapperDividerTopLarge": true,
24
- "wrapperDividerColor": "black"
25
- }
26
- },
27
- "attributes": {
28
- "wrapperUse": {
29
- "type": "boolean",
30
- "default": true
31
- },
32
- "wrapperNoControls": {
33
- "type": "boolean",
34
- "default": false
35
- },
36
- "wrapperNoWidthControls": {
37
- "type": "boolean",
38
- "default": false
39
- },
40
- "wrapperWidth": {
41
- "type": "string",
42
- "default": "contained"
43
- },
44
- "wrapperBackground": {
45
- "type": "string",
46
- "default": "none"
47
- },
48
- "wrapperGradientDirection": {
49
- "type": "string"
50
- },
51
- "wrapperBorderRadius": {
52
- "type": "string",
53
- "default": "none"
54
- },
55
- "wrapperHide": {
56
- "type": "object",
57
- "default": {
58
- "_default": false,
59
- "_desktopFirst": true
60
- }
61
- },
62
- "wrapperMarginTop": {
63
- "type": "object",
64
- "default": {
65
- "_default": "none",
66
- "_desktopFirst": true
67
- }
68
- },
69
- "wrapperMarginBottom": {
70
- "type": "object",
71
- "default": {
72
- "_default": "sm",
73
- "_desktopFirst": true
74
- }
75
- },
76
- "wrapperPaddingTop": {
77
- "type": "object",
78
- "default": {
79
- "_default": "none",
80
- "_desktopFirst": true
81
- }
82
- },
83
- "wrapperPaddingBottom": {
84
- "type": "object",
85
- "default": {
86
- "_default": "none",
87
- "_desktopFirst": true
88
- }
89
- },
90
- "wrapperContentWidth": {
91
- "type": "object",
92
- "default": {
93
- "_default": "auto",
94
- "_desktopFirst": true
95
- }
96
- },
97
- "wrapperId": {
98
- "type": "string"
99
- },
100
- "wrapperDisabledOptions": {
101
- "type": "string"
102
- }
103
- },
104
- "options": {
105
- "wrapperWidth": [
106
- {
107
- "value": "off",
108
- "label": "Off",
109
- "endIcon": "none",
110
- "separator": "below"
111
- },
112
- {
113
- "value": "contained",
114
- "label": "Contained",
115
- "endIcon": "wrapperSimple"
116
- },
117
- {
118
- "value": "contained-wide-bg",
119
- "label": "Contained",
120
- "subtitle": "Full-width background",
121
- "endIcon": "wrapper",
122
- "separator": "below"
123
- },
124
- {
125
- "value": "full",
126
- "label": "Full-width",
127
- "endIcon": "width"
128
- }
129
- ],
130
- "wrapperBackground": [
131
- {
132
- "value": "none",
133
- "label": "None",
134
- "icon": "none"
135
- },
136
- {
137
- "value": "solid",
138
- "label": "Color",
139
- "icon": "color"
140
- },
141
- {
142
- "value": "gradient",
143
- "label": "Gradient",
144
- "icon": "gradient"
145
- }
146
- ],
147
- "wrapperBackgroundSolid": [
148
- "red-50",
149
- "red-500",
150
- "red-950",
151
- "navy-50",
152
- "navy-500",
153
- "navy-950",
154
- "gray-50",
155
- "gray-500",
156
- "gray-950"
157
- ],
158
- "wrapperBackgroundGradient": [
159
- {
160
- "label": "Light gray",
161
- "value": "gradient-light-gray"
162
- },
163
- {
164
- "label": "Dark gray",
165
- "value": "gradient-dark-gray"
166
- },
167
- {
168
- "label": "Light navy",
169
- "value": "gradient-light-navy"
170
- },
171
- {
172
- "label": "Dark navy",
173
- "value": "gradient-dark-navy"
174
- },
175
- {
176
- "label": "Light red",
177
- "value": "gradient-light-red"
178
- },
179
- {
180
- "label": "Dark red",
181
- "value": "gradient-dark-red"
182
- },
183
- {
184
- "label": "Navy to red (light)",
185
- "value": "gradient-navy-red-light"
186
- },
187
- {
188
- "label": "Navy to red (dark)",
189
- "value": "gradient-navy-red-dark"
190
- }
191
- ],
192
- "wrapperGradientDirection": [
193
- {
194
- "label": "To top",
195
- "value": "to-t"
196
- },
197
- {
198
- "label": "To top-right",
199
- "value": "to-tr"
200
- },
201
- {
202
- "label": "To right",
203
- "value": "to-r"
204
- },
205
- {
206
- "label": "To bottom-right",
207
- "value": "to-br"
208
- },
209
- {
210
- "label": "To bottom",
211
- "value": "to-b"
212
- },
213
- {
214
- "label": "To bottom-left",
215
- "value": "to-bl"
216
- },
217
- {
218
- "label": "To left",
219
- "value": "to-l"
220
- },
221
- {
222
- "label": "To top-left",
223
- "value": "to-tl"
224
- }
225
- ],
226
- "wrapperBorderRadius": [
227
- {
228
- "label": "Square",
229
- "value": "none",
230
- "separator": "below"
231
- },
232
- {
233
- "label": "Small",
234
- "value": "sm"
235
- },
236
- {
237
- "label": "Medium",
238
- "value": "md"
239
- },
240
- {
241
- "label": "Large",
242
- "value": "lg"
243
- },
244
- {
245
- "label": "Very large",
246
- "value": "xl"
247
- }
248
- ],
249
- "wrapperSpacing": [
250
- {
251
- "label": "0",
252
- "value": "none"
253
- },
254
- {
255
- "label": "8",
256
- "value": "xs"
257
- },
258
- {
259
- "label": "16",
260
- "value": "sm"
261
- },
262
- {
263
- "label": "32",
264
- "value": "md"
265
- },
266
- {
267
- "label": "48",
268
- "value": "lg"
269
- },
270
- {
271
- "label": "64",
272
- "value": "xl"
273
- },
274
- {
275
- "label": "80",
276
- "value": "2xl"
277
- }
278
- ],
279
- "wrapperHide": [
280
- {
281
- "label": "Visible",
282
- "value": "false",
283
- "icon": "visible"
284
- },
285
- {
286
- "label": "Hidden",
287
- "value": "true",
288
- "icon": "hide"
289
- }
290
- ],
291
- "wrapperContentWidth": [
292
- {
293
- "label": "Auto",
294
- "value": "auto",
295
- "separator": "below"
296
- },
297
- {
298
- "label": "Full",
299
- "value": "full",
300
- "separator": "below"
301
- },
302
- {
303
- "label": "1/2",
304
- "value": "half",
305
- "separator": "below"
306
- },
307
- {
308
- "label": "1/3",
309
- "value": "one-third"
310
- },
311
- {
312
- "label": "2/3",
313
- "value": "two-thirds",
314
- "separator": "below"
315
- },
316
- {
317
- "label": "1/4",
318
- "value": "one-quarter"
319
- },
320
- {
321
- "label": "3/4",
322
- "value": "three-quarters",
323
- "separator": "below"
324
- },
325
- {
326
- "label": "Reading-optimized",
327
- "value": "prose",
328
- "subtitle": "65 characters per line"
329
- }
330
- ]
331
- },
332
- "tailwind": {
333
- "base": {
334
- "twClasses": "scroll-my-24",
335
- "twClassesEditorOnly": "flow-root"
336
- },
337
- "options": {
338
- "wrapperBackground": {
339
- "twClasses": {
340
- "solid-red-50": "bg-red-50",
341
- "solid-red-500": "bg-red-500",
342
- "solid-red-950": "bg-red-950",
343
- "solid-navy-50": "bg-navy-50",
344
- "solid-navy-500": "bg-navy-500",
345
- "solid-navy-950": "bg-navy-950",
346
- "solid-gray-50": "bg-gray-50",
347
- "solid-gray-500": "bg-gray-500",
348
- "solid-gray-950": "bg-gray-950",
349
- "gradient-light-gray": "from-gray-50 to-gray-100",
350
- "gradient-dark-gray": "from-gray-800 to-gray-950",
351
- "gradient-light-navy": "from-navy-50 to-navy-100",
352
- "gradient-dark-navy": "from-navy-800 to-navy-950",
353
- "gradient-light-red": "from-red-50 to-red-100",
354
- "gradient-dark-red": "from-red-800 to-red-950",
355
- "gradient-navy-red-light": "from-red-200 to-navy-300",
356
- "gradient-navy-red-dark": "from-red-700 to-navy-800"
357
- }
358
- },
359
- "wrapperGradientDirection": {
360
- "twClasses": {
361
- "to-t": "bg-gradient-to-t",
362
- "to-tr": "bg-gradient-to-tr",
363
- "to-r": "bg-gradient-to-r",
364
- "to-br": "bg-gradient-to-br",
365
- "to-b": "bg-gradient-to-b",
366
- "to-bl": "bg-gradient-to-bl",
367
- "to-l": "bg-gradient-to-l",
368
- "to-tl": "bg-gradient-to-tl"
369
- }
370
- },
371
- "wrapperWidth": {
372
- "twClasses": {
373
- "contained": "wrapper-contained",
374
- "contained-wide-bg": "wrapper-contained-wide",
375
- "full": "wrapper-full"
376
- }
377
- },
378
- "wrapperBorderRadius": {
379
- "twClasses": {
380
- "sm": "rounded",
381
- "md": "rounded-md",
382
- "lg": "rounded-lg",
383
- "xl": "rounded-xl"
384
- }
385
- },
386
- "wrapperHide": {
387
- "responsive": true,
388
- "twClasses": {
389
- "true": "hidden",
390
- "false": "block"
391
- },
392
- "twClassesEditorOnly": {
393
- "true": "opacity-25"
394
- }
395
- },
396
- "wrapperMarginTop": {
397
- "responsive": true,
398
- "twClasses": {
399
- "none": "mt-0",
400
- "xs": "mt-2",
401
- "sm": "mt-4",
402
- "md": "mt-8",
403
- "lg": "mt-12",
404
- "xl": "mt-16",
405
- "2xl": "mt-20"
406
- }
407
- },
408
- "wrapperMarginBottom": {
409
- "responsive": true,
410
- "twClasses": {
411
- "none": "mb-0",
412
- "xs": "mb-2",
413
- "sm": "mb-4",
414
- "md": "mb-8",
415
- "lg": "mb-12",
416
- "xl": "mb-16",
417
- "2xl": "mb-20"
418
- }
419
- },
420
- "wrapperPaddingTop": {
421
- "responsive": true,
422
- "twClasses": {
423
- "none": "pt-0",
424
- "xs": "pt-2",
425
- "sm": "pt-4",
426
- "md": "pt-8",
427
- "lg": "pt-12",
428
- "xl": "pt-16",
429
- "2xl": "pt-20"
430
- }
431
- },
432
- "wrapperPaddingBottom": {
433
- "responsive": true,
434
- "twClasses": {
435
- "none": "pb-0",
436
- "xs": "pb-2",
437
- "sm": "pb-4",
438
- "md": "pb-8",
439
- "lg": "pb-12",
440
- "xl": "pb-16",
441
- "2xl": "pb-20"
442
- }
443
- },
444
- "wrapperContentWidth": {
445
- "responsive": true,
446
- "twClasses": {
447
- "auto": "w-auto",
448
- "full": "w-full",
449
- "half": "w-1/2",
450
- "one-third": "w-1/3",
451
- "two-thirds": "w-3/4",
452
- "one-quarter": "w-1/4",
453
- "three-quarters": "w-3/4",
454
- "prose": "w-full max-w-4xl"
455
- }
456
- }
457
- }
458
- }
459
- }
@@ -1,13 +0,0 @@
1
- .is-root-container.wp-block-post-content.block-editor-block-list__layout {
2
- @apply pt-10;
3
- }
4
-
5
- /* stylelint-disable-next-line selector-max-specificity */
6
- .is-root-container.wp-block-post-content.block-editor-block-list__layout > .block-editor-block-list__block.wp-block {
7
- @apply !mx-0 !mt-0 [&:not(.is-selected)]:!mb-0 sm:grid sm:grid-cols-[minmax(0,_1fr)_minmax(0,_80rem)_minmax(0,_1fr)];
8
-
9
- /* stylelint-disable-next-line selector-max-specificity */
10
- & > *:not(.wrapper-contained, .wrapper-contained-wide, .wrapper-full) {
11
- @apply sm:col-start-2 col-span-1;
12
- }
13
- }
@@ -1,19 +0,0 @@
1
- .wrapper-contained {
2
- @apply col-start-2 col-span-1 ~sm/md:~px-8/20;
3
- }
4
-
5
- .wrapper-contained-wide {
6
- @apply col-span-full ~sm/md:~px-8/20 ~sm/md:~gap-x-16/40 sm:grid sm:grid-cols-subgrid sm:*:col-start-2 sm:*:col-span-1;
7
- }
8
-
9
- .wrapper-full {
10
- @apply col-span-full;
11
- }
12
-
13
- .layout-base {
14
- @apply sm:grid sm:grid-cols-[minmax(0,_1fr)_minmax(0,_80rem)_minmax(0,_1fr)];
15
-
16
- & > *:not(.wrapper-contained, .wrapper-contained-wide, .wrapper-full) {
17
- @apply sm:col-start-2 col-span-1;
18
- }
19
- }
@@ -1,27 +0,0 @@
1
- import { InspectorControls } from '@wordpress/block-editor';
2
- import { WrapperEditor } from './components/wrapper-editor';
3
- import { WrapperOptions } from './components/wrapper-options';
4
-
5
- export const Wrapper = (props) => {
6
- const {
7
- props: { setAttributes, attributes },
8
- children,
9
- } = props;
10
-
11
- return (
12
- <>
13
- <InspectorControls>
14
- <WrapperOptions
15
- attributes={attributes}
16
- setAttributes={setAttributes}
17
- />
18
- </InspectorControls>
19
-
20
- <WrapperEditor
21
- attributes={attributes}
22
- children={children}
23
- setAttributes={setAttributes}
24
- />
25
- </>
26
- );
27
- };
@@ -1,34 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Wrapper block template.
5
- *
6
- * @package %g_namespace%
7
- */
8
-
9
- use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
10
-
11
- $manifest = Helpers::getManifestByDir(__DIR__);
12
-
13
- $wrapperUse = Helpers::checkAttr('wrapperUse', $attributes, $manifest);
14
-
15
- if (!$wrapperUse) {
16
- // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped
17
- echo $renderContent;
18
- return;
19
- }
20
-
21
- $wrapperId = Helpers::checkAttr('wrapperId', $attributes, $manifest);
22
- ?>
23
-
24
- <div
25
- class="<?php echo esc_attr(Helpers::tailwindClasses('base', $attributes, $manifest)); ?>"
26
- <?php if (!empty($wrapperId)) { ?>
27
- id="<?php echo esc_attr($wrapperId); ?>"
28
- <?php } ?>
29
- >
30
- <?php
31
- // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped
32
- echo $renderContent;
33
- ?>
34
- </div>
package/bun.lockb DELETED
Binary file
@@ -1,74 +0,0 @@
1
- # Packages readme
2
-
3
- This is a document explaining what each `package.json` package is used for.
4
-
5
- ## Dependencies
6
-
7
- * @babel/cli - Adds terminal commands for babel.
8
- * @babel/core - Main Babel core package.
9
- * @babel/eslint-parser - JS Parser for babel.
10
- * @babel/eslint-plugin - JS Parser for babel plugin.
11
- * @dnd-kit/core - Modern helper for creating re-orderable react components
12
- * @dnd-kit/modifiers - Modern helper for creating re-orderable react components
13
- * @dnd-kit/sortable - Modern helper for creating re-orderable react components
14
- * @dnd-kit/utilities - Modern helper for creating re-orderable react components
15
- * @infinumjs/eslint-config-react-js - Adds JS linter config.
16
- * @swc/core - loader swc for faster build times.
17
- * @wordpress/api-fetch - WP package for api fetch.
18
- * @wordpress/dependency-extraction-webpack-plugin - Allows Webpack to read all @wordpress packages as external dependency.
19
- * @wordpress/dom-ready - WP package to load JS when dom is ready.
20
- * @wordpress/icons - WP icons package.
21
- * autoprefixer - Package for adding vendor prefix depending on your browserlist.
22
- * babel-loader - Loader used for Webpack.
23
- * browser-sync - Browser sync.
24
- * browser-sync-webpack-plugin - Browser sync plugin for Webpack.
25
- * classnames - Classnames package used in view components.
26
- * clean-webpack-plugin - Webpack plugin used to delete build folder.
27
- * core-js - Latest core Js to use in babel.
28
- * css-loader - Webpack loader user for css.
29
- * css-minimizer-webpack-plugin - Webpack plugin used to minimize output.
30
- * eslint - Package used for linting JS.
31
- * eslint-plugin-jsx-a11y - Package used for linting JS.
32
- * eslint-plugin-react - Package used for linting JS.
33
- * eslint-plugin-react-hooks - Package used for linting JS.
34
- * file-loader - Webpack loaded used for images and files.
35
- * husky - Package used for linting code on git commands.
36
- * import-glob - Webpack loader used for putting regex in css import.
37
- * media-blender - Package used for providing media queries.
38
- * mini-css-extract-plugin - Webpack plugin extracts CSS into separate files.
39
- * postcss - package for getting postcss options.
40
- * postcss-loader - Webpack loader used for postcss.
41
- * postcss-scss - package for parsing scss used for style linter.
42
- * promisify-child-process - Async child process library used in project setup.
43
- * raw-loader - Webpack loader used for files.
44
- * rc-slider - React slider component used in our components.
45
- * rc-tooltip - React tooltip component used in our components.
46
- * react-select - Select component for React.
47
- * regenerator-runtime - Used for Core-js polyfill.
48
- * sass - A pure JavaScript implementation of Sass
49
- * sass-loader - Webpack loader used for sass.
50
- * storybook - Storybook library used in projects.
51
- * style-loader - Webpack loader used for styles.
52
- * stylelint - Css linter.
53
- * stylelint-config-standard-scss - Css linter for scss type.
54
- * terser-webpack-plugin - Webpack plugin used for minimization.
55
- * webpack - Webpack library.
56
- * webpack-cli - Webpack cli library.
57
- * webpack-manifest-plugin - Webpack plugin used for outputting manifest.json.
58
- * webpack-merge - Webpack utility for merging multiple webpack files.
59
-
60
- ## Dev dependencies
61
-
62
- * @babel/preset-env - Is a smart preset that allows you to use the latest JavaScript without needing to micromanage.
63
- * @babel/preset-react - Babel preset for React.
64
- * @eightshift/storybook - Our storybook used for frontend libs.
65
- * chalk - Terminal coloring library. Used in project setup.
66
- * del - Terminal delete library. Used in project setup.
67
- * gh-pages - Terminal GH pages lib for deployment to GH pages.
68
- * micromodal - Modal component used in the project here only for storybook.
69
- * ol - Map component used in the project here only for storybook.
70
- * ol-mapbox-style - Map component used in the project here only for storybook.
71
- * react-test-renderer - This package provides an experimental React renderer that can be used to render React components to pure JavaScript objects.
72
- * replace-in-file - A simple utility to quickly replace text in one or more files or globs.
73
- * sassdoc - Sass docs library.
74
- * swiper - Swiper component used in the project here only for storybook.