@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.
- package/.gitattributes +37 -0
- package/.github/CODEOWNERS +1 -0
- package/.github/CONTRIBUTING.md +17 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +10 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +10 -0
- package/.github/ISSUE_TEMPLATE/question.md +10 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +11 -0
- package/.github/workflows/ci.yml +31 -0
- package/.husky/pre-commit +1 -0
- package/.prettierrc +14 -0
- package/.stylelintrc +4 -0
- package/CHANGELOG.md +13 -0
- package/CODE_OF_CONDUCT.md +76 -0
- package/LICENSE +21 -0
- package/README.md +24 -0
- package/blocks/init/assets/application-admin.js +10 -0
- package/blocks/init/assets/application.js +13 -0
- package/blocks/init/assets/images/index.js +5 -0
- package/blocks/init/assets/scripts/application-admin.js +7 -0
- package/blocks/init/assets/scripts/application.js +3 -0
- package/blocks/init/assets/scripts/theme-colors.js +39 -0
- package/blocks/init/assets/styles/application-admin.css +6 -0
- package/blocks/init/assets/styles/application.css +3 -0
- package/blocks/init/src/Blocks/assets/application-blocks-editor.js +14 -0
- package/blocks/init/src/Blocks/assets/application-blocks-frontend.js +13 -0
- package/blocks/init/src/Blocks/assets/application-blocks.js +9 -0
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-editor.js +65 -0
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-frontend.js +24 -0
- package/blocks/init/src/Blocks/assets/scripts/link-section-editor.js +258 -0
- package/blocks/init/src/Blocks/assets/scripts/shared.js +25 -0
- package/blocks/init/src/Blocks/assets/styles/application-blocks-editor.css +15 -0
- package/blocks/init/src/Blocks/assets/styles/application-blocks-frontend.css +12 -0
- package/blocks/init/src/Blocks/assets/styles/application-blocks.css +0 -0
- package/blocks/init/src/Blocks/assets/styles/editor/editor-overrides.css +15 -0
- package/blocks/init/src/Blocks/assets/styles/tailwind.css +34 -0
- package/blocks/init/src/Blocks/components/admin-theme-options/admin-theme-options.php +20 -0
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/index.js +36 -0
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/pages/parts.js +55 -0
- package/blocks/init/src/Blocks/components/admin-theme-options/manifest.json +5 -0
- package/blocks/init/src/Blocks/components/button/assets/index.js +22 -0
- package/blocks/init/src/Blocks/components/button/button.php +77 -0
- package/blocks/init/src/Blocks/components/button/components/button-editor.js +40 -0
- package/blocks/init/src/Blocks/components/button/components/button-options.js +135 -0
- package/blocks/init/src/Blocks/components/button/manifest.json +299 -0
- package/blocks/init/src/Blocks/components/card/card.php +42 -0
- package/blocks/init/src/Blocks/components/card/components/card-editor.js +39 -0
- package/blocks/init/src/Blocks/components/card/components/card-options.js +56 -0
- package/blocks/init/src/Blocks/components/card/manifest.json +111 -0
- package/blocks/init/src/Blocks/components/head/head.php +52 -0
- package/blocks/init/src/Blocks/components/head/manifest.json +17 -0
- package/blocks/init/src/Blocks/components/heading/components/heading-editor.js +30 -0
- package/blocks/init/src/Blocks/components/heading/components/heading-options.js +62 -0
- package/blocks/init/src/Blocks/components/heading/heading.php +45 -0
- package/blocks/init/src/Blocks/components/heading/manifest.json +76 -0
- package/blocks/init/src/Blocks/components/hero/components/hero-editor.js +42 -0
- package/blocks/init/src/Blocks/components/hero/components/hero-options.js +100 -0
- package/blocks/init/src/Blocks/components/hero/hero.php +45 -0
- package/blocks/init/src/Blocks/components/hero/manifest.json +96 -0
- package/blocks/init/src/Blocks/components/icon/components/icon-editor.js +23 -0
- package/blocks/init/src/Blocks/components/icon/components/icon-options.js +65 -0
- package/blocks/init/src/Blocks/components/icon/icon.php +34 -0
- package/blocks/init/src/Blocks/components/icon/manifest.json +1234 -0
- package/blocks/init/src/Blocks/components/image/components/image-editor.js +65 -0
- package/blocks/init/src/Blocks/components/image/components/image-options.js +111 -0
- package/blocks/init/src/Blocks/components/image/image.php +62 -0
- package/blocks/init/src/Blocks/components/image/manifest.json +125 -0
- package/blocks/init/src/Blocks/components/list/components/list-editor.js +30 -0
- package/blocks/init/src/Blocks/components/list/components/list-options.js +62 -0
- package/blocks/init/src/Blocks/components/list/list.php +32 -0
- package/blocks/init/src/Blocks/components/list/manifest.json +127 -0
- package/blocks/init/src/Blocks/components/load-more/assets/index.js +19 -0
- package/blocks/init/src/Blocks/components/load-more/assets/load-more.js +147 -0
- package/blocks/init/src/Blocks/components/load-more/components/load-more-editor.js +14 -0
- package/blocks/init/src/Blocks/components/load-more/components/load-more-options.js +18 -0
- package/blocks/init/src/Blocks/components/load-more/load-more.php +47 -0
- package/blocks/init/src/Blocks/components/load-more/manifest.json +39 -0
- package/blocks/init/src/Blocks/components/modal/assets/index.js +27 -0
- package/blocks/init/src/Blocks/components/modal/manifest.json +48 -0
- package/blocks/init/src/Blocks/components/modal/modal.php +46 -0
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js +40 -0
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js +48 -0
- package/blocks/init/src/Blocks/components/paragraph/manifest.json +83 -0
- package/blocks/init/src/Blocks/components/paragraph/paragraph.php +33 -0
- package/blocks/init/src/Blocks/components/post-header/manifest.json +5 -0
- package/blocks/init/src/Blocks/components/post-header/post-header.php +24 -0
- package/blocks/init/src/Blocks/components/quote/components/quote-editor.js +53 -0
- package/blocks/init/src/Blocks/components/quote/components/quote-options.js +29 -0
- package/blocks/init/src/Blocks/components/quote/manifest.json +47 -0
- package/blocks/init/src/Blocks/components/quote/quote.php +49 -0
- package/blocks/init/src/Blocks/components/share/assets/index.js +39 -0
- package/blocks/init/src/Blocks/components/share/components/share-editor.js +25 -0
- package/blocks/init/src/Blocks/components/share/components/share-options.js +112 -0
- package/blocks/init/src/Blocks/components/share/manifest.json +72 -0
- package/blocks/init/src/Blocks/components/share/share.php +66 -0
- package/blocks/init/src/Blocks/components/tracking-before-body-end/manifest.json +5 -0
- package/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php +9 -0
- package/blocks/init/src/Blocks/components/tracking-head/manifest.json +5 -0
- package/blocks/init/src/Blocks/components/tracking-head/tracking-head.php +9 -0
- package/blocks/init/src/Blocks/components/video/components/video-editor.js +74 -0
- package/blocks/init/src/Blocks/components/video/components/video-options.js +280 -0
- package/blocks/init/src/Blocks/components/video/manifest.json +116 -0
- package/blocks/init/src/Blocks/components/video/video.php +72 -0
- package/blocks/init/src/Blocks/custom/accordion/accordion-block.js +15 -0
- package/blocks/init/src/Blocks/custom/accordion/accordion.php +28 -0
- package/blocks/init/src/Blocks/custom/accordion/assets/index.js +37 -0
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-editor.js +17 -0
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-options.js +18 -0
- package/blocks/init/src/Blocks/custom/accordion/manifest.json +32 -0
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item-block.js +19 -0
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item.php +46 -0
- package/blocks/init/src/Blocks/custom/accordion-item/components/accordion-item-editor.js +60 -0
- package/blocks/init/src/Blocks/custom/accordion-item/manifest.json +69 -0
- package/blocks/init/src/Blocks/custom/button/button-block.js +13 -0
- package/blocks/init/src/Blocks/custom/button/button.php +11 -0
- package/blocks/init/src/Blocks/custom/button/components/button-editor.js +12 -0
- package/blocks/init/src/Blocks/custom/button/components/button-options.js +12 -0
- package/blocks/init/src/Blocks/custom/button/manifest.json +18 -0
- package/blocks/init/src/Blocks/custom/card/card-block.js +13 -0
- package/blocks/init/src/Blocks/custom/card/card.php +11 -0
- package/blocks/init/src/Blocks/custom/card/components/card-editor.js +12 -0
- package/blocks/init/src/Blocks/custom/card/components/card-options.js +15 -0
- package/blocks/init/src/Blocks/custom/card/manifest.json +18 -0
- package/blocks/init/src/Blocks/custom/carousel/assets/index.js +46 -0
- package/blocks/init/src/Blocks/custom/carousel/assets/navigation.js +31 -0
- package/blocks/init/src/Blocks/custom/carousel/assets/pagination.js +39 -0
- package/blocks/init/src/Blocks/custom/carousel/carousel-block.js +21 -0
- package/blocks/init/src/Blocks/custom/carousel/carousel.php +61 -0
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-editor.js +25 -0
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-options.js +47 -0
- package/blocks/init/src/Blocks/custom/carousel/manifest.json +130 -0
- package/blocks/init/src/Blocks/custom/column/column-block.js +21 -0
- package/blocks/init/src/Blocks/custom/column/column-hooks.js +32 -0
- package/blocks/init/src/Blocks/custom/column/column.php +21 -0
- package/blocks/init/src/Blocks/custom/column/components/column-editor.js +19 -0
- package/blocks/init/src/Blocks/custom/column/components/column-options.js +579 -0
- package/blocks/init/src/Blocks/custom/column/manifest.json +625 -0
- package/blocks/init/src/Blocks/custom/columns/columns-block.js +20 -0
- package/blocks/init/src/Blocks/custom/columns/columns.php +21 -0
- package/blocks/init/src/Blocks/custom/columns/components/columns-editor.js +81 -0
- package/blocks/init/src/Blocks/custom/columns/components/columns-options.js +104 -0
- package/blocks/init/src/Blocks/custom/columns/manifest.json +555 -0
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-editor.js +28 -0
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-options.js +239 -0
- package/blocks/init/src/Blocks/custom/featured-content/featured-content-block.js +13 -0
- package/blocks/init/src/Blocks/custom/featured-content/featured-content.php +139 -0
- package/blocks/init/src/Blocks/custom/featured-content/manifest.json +131 -0
- package/blocks/init/src/Blocks/custom/featured-content/partials/cards.php +39 -0
- package/blocks/init/src/Blocks/custom/group/components/group-editor.js +8 -0
- package/blocks/init/src/Blocks/custom/group/group-block.js +14 -0
- package/blocks/init/src/Blocks/custom/group/group.php +10 -0
- package/blocks/init/src/Blocks/custom/group/manifest.json +32 -0
- package/blocks/init/src/Blocks/custom/heading/components/heading-editor.js +15 -0
- package/blocks/init/src/Blocks/custom/heading/components/heading-options.js +38 -0
- package/blocks/init/src/Blocks/custom/heading/heading-block.js +13 -0
- package/blocks/init/src/Blocks/custom/heading/heading-transforms.js +25 -0
- package/blocks/init/src/Blocks/custom/heading/heading.php +15 -0
- package/blocks/init/src/Blocks/custom/heading/manifest.json +79 -0
- package/blocks/init/src/Blocks/custom/hero/components/hero-editor.js +12 -0
- package/blocks/init/src/Blocks/custom/hero/components/hero-options.js +14 -0
- package/blocks/init/src/Blocks/custom/hero/hero-block.js +13 -0
- package/blocks/init/src/Blocks/custom/hero/hero.php +11 -0
- package/blocks/init/src/Blocks/custom/hero/manifest.json +17 -0
- package/blocks/init/src/Blocks/custom/image/components/image-editor.js +12 -0
- package/blocks/init/src/Blocks/custom/image/components/image-options.js +14 -0
- package/blocks/init/src/Blocks/custom/image/image-block.js +13 -0
- package/blocks/init/src/Blocks/custom/image/image.php +11 -0
- package/blocks/init/src/Blocks/custom/image/manifest.json +105 -0
- package/blocks/init/src/Blocks/custom/list/components/list-editor.js +14 -0
- package/blocks/init/src/Blocks/custom/list/components/list-options.js +39 -0
- package/blocks/init/src/Blocks/custom/list/list-block.js +13 -0
- package/blocks/init/src/Blocks/custom/list/list.php +15 -0
- package/blocks/init/src/Blocks/custom/list/manifest.json +58 -0
- package/blocks/init/src/Blocks/custom/map/assets/index.js +20 -0
- package/blocks/init/src/Blocks/custom/map/assets/map-controller.js +42 -0
- package/blocks/init/src/Blocks/custom/map/assets/utils.js +161 -0
- package/blocks/init/src/Blocks/custom/map/components/map-components.js +403 -0
- package/blocks/init/src/Blocks/custom/map/components/map-editor.js +56 -0
- package/blocks/init/src/Blocks/custom/map/components/map-options.js +557 -0
- package/blocks/init/src/Blocks/custom/map/manifest.json +79 -0
- package/blocks/init/src/Blocks/custom/map/map-block.js +13 -0
- package/blocks/init/src/Blocks/custom/map/map.php +52 -0
- package/blocks/init/src/Blocks/custom/map/styles.css +2 -0
- package/blocks/init/src/Blocks/custom/modal/components/modal-editor.js +90 -0
- package/blocks/init/src/Blocks/custom/modal/manifest.json +51 -0
- package/blocks/init/src/Blocks/custom/modal/modal-block.js +14 -0
- package/blocks/init/src/Blocks/custom/modal/modal.php +20 -0
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-editor.js +41 -0
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-options.js +38 -0
- package/blocks/init/src/Blocks/custom/paragraph/manifest.json +79 -0
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-block.js +13 -0
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-transforms.js +45 -0
- package/blocks/init/src/Blocks/custom/paragraph/paragraph.php +15 -0
- package/blocks/init/src/Blocks/custom/quote/components/quote-editor.js +12 -0
- package/blocks/init/src/Blocks/custom/quote/components/quote-options.js +14 -0
- package/blocks/init/src/Blocks/custom/quote/manifest.json +17 -0
- package/blocks/init/src/Blocks/custom/quote/quote-block.js +13 -0
- package/blocks/init/src/Blocks/custom/quote/quote.php +13 -0
- package/blocks/init/src/Blocks/custom/share/components/share-editor.js +6 -0
- package/blocks/init/src/Blocks/custom/share/components/share-options.js +12 -0
- package/blocks/init/src/Blocks/custom/share/manifest.json +19 -0
- package/blocks/init/src/Blocks/custom/share/share-block.js +13 -0
- package/blocks/init/src/Blocks/custom/share/share.php +11 -0
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-editor.js +57 -0
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-options.js +106 -0
- package/blocks/init/src/Blocks/custom/site-footer/manifest.json +73 -0
- package/blocks/init/src/Blocks/custom/site-footer/site-footer-block.js +13 -0
- package/blocks/init/src/Blocks/custom/site-footer/site-footer.php +72 -0
- package/blocks/init/src/Blocks/custom/site-navigation/assets/index.js +9 -0
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-editor.js +42 -0
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-options.js +73 -0
- package/blocks/init/src/Blocks/custom/site-navigation/manifest.json +77 -0
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation-block.js +13 -0
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation.php +99 -0
- package/blocks/init/src/Blocks/custom/table-of-contents/assets/index.js +58 -0
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-editor.js +38 -0
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-options.js +32 -0
- package/blocks/init/src/Blocks/custom/table-of-contents/manifest.json +48 -0
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents-block.js +13 -0
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents.php +31 -0
- package/blocks/init/src/Blocks/custom/video/components/video-editor.js +6 -0
- package/blocks/init/src/Blocks/custom/video/components/video-options.js +12 -0
- package/blocks/init/src/Blocks/custom/video/manifest.json +105 -0
- package/blocks/init/src/Blocks/custom/video/video-block.js +13 -0
- package/blocks/init/src/Blocks/custom/video/video.php +22 -0
- package/blocks/init/src/Blocks/manifest.json +14 -0
- package/blocks/init/src/Blocks/variations/card-simple/manifest.json +17 -0
- package/blocks/init/src/Blocks/wrapper/components/wrapper-editor.js +12 -0
- package/blocks/init/src/Blocks/wrapper/components/wrapper-options.js +348 -0
- package/blocks/init/src/Blocks/wrapper/manifest.json +450 -0
- package/blocks/init/src/Blocks/wrapper/styles-editor.css +13 -0
- package/blocks/init/src/Blocks/wrapper/styles.css +19 -0
- package/blocks/init/src/Blocks/wrapper/wrapper.js +30 -0
- package/blocks/init/src/Blocks/wrapper/wrapper.php +34 -0
- package/eslint.config.mjs +3 -0
- package/linters/base.config.mjs +81 -0
- package/linters/eslint.config.mjs +4 -0
- package/linters/ignore-gitignored.mjs +9 -0
- package/linters/stylelint.config.js +146 -0
- package/package.json +93 -0
- package/readme/packages.md +74 -0
- package/schemas/block.json +302 -0
- package/schemas/component.json +240 -0
- package/schemas/globalManifest.json +73 -0
- package/schemas/variation.json +83 -0
- package/scripts/components/block-inserter.js +70 -0
- package/scripts/components/file-picker.js +243 -0
- package/scripts/components/index.js +6 -0
- package/scripts/components/link-section-editor.js +319 -0
- package/scripts/components/media-picker.js +86 -0
- package/scripts/components/server-side-render.js +37 -0
- package/scripts/components/settings/settings.js +48 -0
- package/scripts/components/settings/use-theme-options.js +52 -0
- package/scripts/editor/attributes.js +304 -0
- package/scripts/editor/colors.js +64 -0
- package/scripts/editor/editor.js +139 -0
- package/scripts/editor/fetch.js +102 -0
- package/scripts/editor/hooks.js +44 -0
- package/scripts/editor/index.js +11 -0
- package/scripts/editor/options.js +152 -0
- package/scripts/editor/registration.js +901 -0
- package/scripts/editor/store.js +213 -0
- package/scripts/editor/tailwindcss.js +224 -0
- package/scripts/editor/utility.js +47 -0
- package/scripts/helpers/breakpoints.js +48 -0
- package/scripts/helpers/cookies.js +65 -0
- package/scripts/helpers/dynamic-import.js +19 -0
- package/scripts/helpers/index.js +11 -0
- package/scripts/index.js +22 -0
- package/scripts/plugins/index.js +3 -0
- package/scripts/plugins/yoast-seo.js +70 -0
- package/webpack/base.mjs +138 -0
- package/webpack/helpers.mjs +67 -0
- package/webpack/index.mjs +52 -0
- package/webpack/production.mjs +60 -0
- package/webpack/project.mjs +55 -0
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/infinum/eightshift-frontend-libs-tailwind/main/schemas/block.json",
|
|
3
|
+
"blockName": "column",
|
|
4
|
+
"title": "Column",
|
|
5
|
+
"description": "A single column.",
|
|
6
|
+
"category": "eightshift",
|
|
7
|
+
"icon": {
|
|
8
|
+
"src": "es-column"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"column"
|
|
12
|
+
],
|
|
13
|
+
"parent": [
|
|
14
|
+
"eightshift-boilerplate/columns"
|
|
15
|
+
],
|
|
16
|
+
"example": {
|
|
17
|
+
"attributes": {
|
|
18
|
+
"wrapperNoControls": true,
|
|
19
|
+
"columnWidthLarge": 4
|
|
20
|
+
},
|
|
21
|
+
"innerBlocks": [
|
|
22
|
+
{
|
|
23
|
+
"name": "eightshift-boilerplate/card",
|
|
24
|
+
"attributes": {
|
|
25
|
+
"cardCardImageUrl": "https://loremflickr.com/800/800",
|
|
26
|
+
"cardCardIntroContent": "Intro",
|
|
27
|
+
"cardCardIntroSize": "small",
|
|
28
|
+
"cardCardIntroColor": "light",
|
|
29
|
+
"cardCardHeadingContent": "Heading",
|
|
30
|
+
"cardCardParagraphContent": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquam est id semper aliquet.",
|
|
31
|
+
"cardCardButtonUse": false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"hasInnerBlocks": true,
|
|
37
|
+
"attributes": {
|
|
38
|
+
"wrapperNoControls": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": true
|
|
41
|
+
},
|
|
42
|
+
"wrapperUse": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
"columnOffset": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"default": {
|
|
49
|
+
"_default": "1",
|
|
50
|
+
"_desktopFirst": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"columnWidth": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"default": {
|
|
56
|
+
"_default": "1",
|
|
57
|
+
"_desktopFirst": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"columnRowSpan": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"default": {
|
|
63
|
+
"_default": "1",
|
|
64
|
+
"_desktopFirst": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"columnOverflow": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"default": {
|
|
70
|
+
"_default": "visible",
|
|
71
|
+
"_desktopFirst": true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"columnHide": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"default": {
|
|
77
|
+
"_default": false,
|
|
78
|
+
"_desktopFirst": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"columnVerticalAlign": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"default": {
|
|
84
|
+
"_default": "stretch",
|
|
85
|
+
"_desktopFirst": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"columnHorizontalAlign": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"default": {
|
|
91
|
+
"_default": "stretch",
|
|
92
|
+
"_desktopFirst": true
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"columnPaddingLeft": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"default": {
|
|
98
|
+
"_default": "none",
|
|
99
|
+
"_desktopFirst": true
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"columnPaddingRight": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"default": {
|
|
105
|
+
"_default": "none",
|
|
106
|
+
"_desktopFirst": true
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"columnPaddingTop": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"default": {
|
|
112
|
+
"_default": "none",
|
|
113
|
+
"_desktopFirst": true
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"columnPaddingBottom": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"default": {
|
|
119
|
+
"_default": "none",
|
|
120
|
+
"_desktopFirst": true
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"columnBackground": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"default": "none"
|
|
126
|
+
},
|
|
127
|
+
"columnGradientDirection": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"default": "to-r"
|
|
130
|
+
},
|
|
131
|
+
"columnBorderRadius": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"default": "none"
|
|
134
|
+
},
|
|
135
|
+
"columnShadow": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"default": "none"
|
|
138
|
+
},
|
|
139
|
+
"columnBorder": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"default": "none"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"options": {
|
|
145
|
+
"columnVerticalAlign": [
|
|
146
|
+
{
|
|
147
|
+
"label": "Stretch",
|
|
148
|
+
"value": "stretch",
|
|
149
|
+
"icon": "verticalAlignStretch"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"label": "Start",
|
|
153
|
+
"value": "start",
|
|
154
|
+
"icon": "verticalAlignTop"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"label": "Center",
|
|
158
|
+
"value": "center",
|
|
159
|
+
"icon": "verticalAlignCenter"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"label": "End",
|
|
163
|
+
"value": "end",
|
|
164
|
+
"icon": "verticalAlignBottom"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"columnHorizontalAlign": [
|
|
168
|
+
{
|
|
169
|
+
"label": "Stretch",
|
|
170
|
+
"value": "stretch",
|
|
171
|
+
"icon": "horizontalAlignStretch"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"label": "Start",
|
|
175
|
+
"value": "start",
|
|
176
|
+
"icon": "horizontalAlignLeft"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"label": "Center",
|
|
180
|
+
"value": "center",
|
|
181
|
+
"icon": "horizontalAlignCenter"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"label": "End",
|
|
185
|
+
"value": "end",
|
|
186
|
+
"icon": "horizontalAlignRight"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"columnHide": [
|
|
190
|
+
{
|
|
191
|
+
"label": "Visible",
|
|
192
|
+
"value": "false",
|
|
193
|
+
"icon": "visible"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"label": "Hidden",
|
|
197
|
+
"value": "true",
|
|
198
|
+
"icon": "hide"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"columnSpacing": [
|
|
202
|
+
{
|
|
203
|
+
"label": "0",
|
|
204
|
+
"value": "none"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"label": "4",
|
|
208
|
+
"value": "xs"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"label": "8",
|
|
212
|
+
"value": "sm"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"label": "16",
|
|
216
|
+
"value": "md"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"label": "32",
|
|
220
|
+
"value": "lg"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"label": "40",
|
|
224
|
+
"value": "xl"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"label": "56",
|
|
228
|
+
"value": "2xl"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"columnBackground": [
|
|
232
|
+
{
|
|
233
|
+
"value": "none",
|
|
234
|
+
"label": "None",
|
|
235
|
+
"icon": "none"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"value": "solid",
|
|
239
|
+
"label": "Color",
|
|
240
|
+
"icon": "color"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"value": "gradient",
|
|
244
|
+
"label": "Gradient",
|
|
245
|
+
"icon": "gradient"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"columnBackgroundSolid": [
|
|
249
|
+
"red-50",
|
|
250
|
+
"red-500",
|
|
251
|
+
"red-950",
|
|
252
|
+
"navy-50",
|
|
253
|
+
"navy-500",
|
|
254
|
+
"navy-950",
|
|
255
|
+
"gray-50",
|
|
256
|
+
"gray-500",
|
|
257
|
+
"gray-950",
|
|
258
|
+
"black",
|
|
259
|
+
"white"
|
|
260
|
+
],
|
|
261
|
+
"columnBackgroundGradient": [
|
|
262
|
+
{
|
|
263
|
+
"label": "Light gray",
|
|
264
|
+
"value": "gradient-light-gray"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"label": "Dark gray",
|
|
268
|
+
"value": "gradient-dark-gray"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"label": "Light navy",
|
|
272
|
+
"value": "gradient-light-navy"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"label": "Dark navy",
|
|
276
|
+
"value": "gradient-dark-navy"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"label": "Light red",
|
|
280
|
+
"value": "gradient-light-red"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"label": "Dark red",
|
|
284
|
+
"value": "gradient-dark-red"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"label": "Navy to red (light)",
|
|
288
|
+
"value": "gradient-navy-red-light"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"label": "Navy to red (dark)",
|
|
292
|
+
"value": "gradient-navy-red-dark"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"columnGradientDirection": [
|
|
296
|
+
{
|
|
297
|
+
"label": "To top",
|
|
298
|
+
"value": "to-t"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"label": "To top-right",
|
|
302
|
+
"value": "to-tr"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"label": "To right",
|
|
306
|
+
"value": "to-r"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"label": "To bottom-right",
|
|
310
|
+
"value": "to-br"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"label": "To bottom",
|
|
314
|
+
"value": "to-b"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"label": "To bottom-left",
|
|
318
|
+
"value": "to-bl"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"label": "To left",
|
|
322
|
+
"value": "to-l"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"label": "To top-left",
|
|
326
|
+
"value": "to-tl"
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"columnBorderRadius": [
|
|
330
|
+
{
|
|
331
|
+
"label": "0",
|
|
332
|
+
"value": "none",
|
|
333
|
+
"separator": "below"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"label": "4",
|
|
337
|
+
"value": "sm"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"label": "6",
|
|
341
|
+
"value": "md"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"label": "8",
|
|
345
|
+
"value": "lg"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"label": "12",
|
|
349
|
+
"value": "xl"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"label": "16",
|
|
353
|
+
"value": "2xl"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"columnShadow": [
|
|
357
|
+
{
|
|
358
|
+
"label": "None",
|
|
359
|
+
"value": "none",
|
|
360
|
+
"separator": "below"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"label": "Small",
|
|
364
|
+
"value": "sm"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"label": "Medium",
|
|
368
|
+
"value": "md"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"label": "Large",
|
|
372
|
+
"value": "lg"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"label": "Huge",
|
|
376
|
+
"value": "xl"
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"columnBorder": [
|
|
380
|
+
"red-100",
|
|
381
|
+
"red-500",
|
|
382
|
+
"red-900",
|
|
383
|
+
"navy-100",
|
|
384
|
+
"navy-500",
|
|
385
|
+
"navy-900",
|
|
386
|
+
"gray-100",
|
|
387
|
+
"gray-500",
|
|
388
|
+
"gray-900",
|
|
389
|
+
"black",
|
|
390
|
+
"white"
|
|
391
|
+
],
|
|
392
|
+
"columnOverflow": [
|
|
393
|
+
{
|
|
394
|
+
"label": "Visible",
|
|
395
|
+
"value": "visible",
|
|
396
|
+
"subtitle": "Default",
|
|
397
|
+
"separator": "below"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"label": "Scroll",
|
|
401
|
+
"value": "scroll",
|
|
402
|
+
"separator": "below"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"label": "Hidden",
|
|
406
|
+
"value": "hidden"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"label": "Clip",
|
|
410
|
+
"value": "clip"
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
"tailwind": {
|
|
415
|
+
"base": {
|
|
416
|
+
"twClasses": "flex flex-col"
|
|
417
|
+
},
|
|
418
|
+
"options": {
|
|
419
|
+
"columnOffset": {
|
|
420
|
+
"responsive": true,
|
|
421
|
+
"twClasses": {
|
|
422
|
+
"1": "col-start-1",
|
|
423
|
+
"2": "col-start-2",
|
|
424
|
+
"3": "col-start-3",
|
|
425
|
+
"4": "col-start-4",
|
|
426
|
+
"5": "col-start-5",
|
|
427
|
+
"6": "col-start-6",
|
|
428
|
+
"7": "col-start-7",
|
|
429
|
+
"8": "col-start-8",
|
|
430
|
+
"9": "col-start-9",
|
|
431
|
+
"10": "col-start-10",
|
|
432
|
+
"11": "col-start-11",
|
|
433
|
+
"12": "col-start-12"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"columnWidth": {
|
|
437
|
+
"responsive": true,
|
|
438
|
+
"twClasses": {
|
|
439
|
+
"1": "col-end-span-1",
|
|
440
|
+
"2": "col-end-span-2",
|
|
441
|
+
"3": "col-end-span-3",
|
|
442
|
+
"4": "col-end-span-4",
|
|
443
|
+
"5": "col-end-span-5",
|
|
444
|
+
"6": "col-end-span-6",
|
|
445
|
+
"7": "col-end-span-7",
|
|
446
|
+
"8": "col-end-span-8",
|
|
447
|
+
"9": "col-end-span-9",
|
|
448
|
+
"10": "col-end-span-10",
|
|
449
|
+
"11": "col-end-span-11",
|
|
450
|
+
"12": "col-end-span-12"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"columnRowSpan": {
|
|
454
|
+
"responsive": true,
|
|
455
|
+
"twClasses": {
|
|
456
|
+
"1": "row-end-span-1",
|
|
457
|
+
"2": "row-end-span-2",
|
|
458
|
+
"3": "row-end-span-3",
|
|
459
|
+
"4": "row-end-span-4",
|
|
460
|
+
"5": "row-end-span-5",
|
|
461
|
+
"6": "row-end-span-6",
|
|
462
|
+
"7": "row-end-span-7",
|
|
463
|
+
"8": "row-end-span-8",
|
|
464
|
+
"9": "row-end-span-9",
|
|
465
|
+
"10": "row-end-span-10",
|
|
466
|
+
"11": "row-end-span-11",
|
|
467
|
+
"12": "row-end-span-12"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"columnHide": {
|
|
471
|
+
"responsive": true,
|
|
472
|
+
"twClasses": {
|
|
473
|
+
"true": "hidden",
|
|
474
|
+
"false": "flex"
|
|
475
|
+
},
|
|
476
|
+
"twClassesEditor": {
|
|
477
|
+
"true": "opacity-25",
|
|
478
|
+
"false": "opacity-100"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"columnVerticalAlign": {
|
|
482
|
+
"responsive": true,
|
|
483
|
+
"twClasses": {
|
|
484
|
+
"stretch": "justify-stretch h-full [&>*:only-child]:h-full",
|
|
485
|
+
"start": "justify-start",
|
|
486
|
+
"center": "justify-center",
|
|
487
|
+
"end": "justify-end"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"columnHorizontalAlign": {
|
|
491
|
+
"responsive": true,
|
|
492
|
+
"twClasses": {
|
|
493
|
+
"stretch": "items-stretch w-full [&>*:only-child]:w-full",
|
|
494
|
+
"start": "items-start",
|
|
495
|
+
"center": "items-center",
|
|
496
|
+
"end": "items-end"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"columnPaddingLeft": {
|
|
500
|
+
"responsive": true,
|
|
501
|
+
"twClasses": {
|
|
502
|
+
"none": "pl-0",
|
|
503
|
+
"xs": "pl-1",
|
|
504
|
+
"sm": "pl-2",
|
|
505
|
+
"md": "pl-4",
|
|
506
|
+
"lg": "pl-8",
|
|
507
|
+
"xl": "pl-10",
|
|
508
|
+
"2xl": "pl-14"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"columnPaddingRight": {
|
|
512
|
+
"responsive": true,
|
|
513
|
+
"twClasses": {
|
|
514
|
+
"none": "pr-0",
|
|
515
|
+
"xs": "pr-1",
|
|
516
|
+
"sm": "pr-2",
|
|
517
|
+
"md": "pr-4",
|
|
518
|
+
"lg": "pr-8",
|
|
519
|
+
"xl": "pr-10",
|
|
520
|
+
"2xl": "pr-14"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"columnPaddingTop": {
|
|
524
|
+
"responsive": true,
|
|
525
|
+
"twClasses": {
|
|
526
|
+
"none": "pt-0",
|
|
527
|
+
"xs": "pt-1",
|
|
528
|
+
"sm": "pt-2",
|
|
529
|
+
"md": "pt-4",
|
|
530
|
+
"lg": "pt-8",
|
|
531
|
+
"xl": "pt-10",
|
|
532
|
+
"2xl": "pt-14"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"columnPaddingBottom": {
|
|
536
|
+
"responsive": true,
|
|
537
|
+
"twClasses": {
|
|
538
|
+
"none": "pb-0",
|
|
539
|
+
"xs": "pb-1",
|
|
540
|
+
"sm": "pb-2",
|
|
541
|
+
"md": "pb-4",
|
|
542
|
+
"lg": "pb-8",
|
|
543
|
+
"xl": "pb-10",
|
|
544
|
+
"2xl": "pb-14"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"columnBackground": {
|
|
548
|
+
"twClasses": {
|
|
549
|
+
"solid-red-50": "bg-red-50",
|
|
550
|
+
"solid-red-500": "bg-red-500",
|
|
551
|
+
"solid-red-950": "bg-red-950",
|
|
552
|
+
"solid-navy-50": "bg-navy-50",
|
|
553
|
+
"solid-navy-500": "bg-navy-500",
|
|
554
|
+
"solid-navy-950": "bg-navy-950",
|
|
555
|
+
"solid-gray-50": "bg-gray-50",
|
|
556
|
+
"solid-gray-500": "bg-gray-500",
|
|
557
|
+
"solid-gray-950": "bg-gray-950",
|
|
558
|
+
"solid-black": "bg-black",
|
|
559
|
+
"solid-white": "bg-white",
|
|
560
|
+
"gradient-light-gray": "from-gray-50 to-gray-100",
|
|
561
|
+
"gradient-dark-gray": "from-gray-800 to-gray-950",
|
|
562
|
+
"gradient-light-navy": "from-navy-50 to-navy-100",
|
|
563
|
+
"gradient-dark-navy": "from-navy-800 to-navy-950",
|
|
564
|
+
"gradient-light-red": "from-red-50 to-red-100",
|
|
565
|
+
"gradient-dark-red": "from-red-800 to-red-950",
|
|
566
|
+
"gradient-navy-red-light": "from-red-200 to-navy-300",
|
|
567
|
+
"gradient-navy-red-dark": "from-red-700 to-navy-800"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"columnGradientDirection": {
|
|
571
|
+
"twClasses": {
|
|
572
|
+
"to-t": "bg-gradient-to-r",
|
|
573
|
+
"to-tr": "bg-gradient-to-tr",
|
|
574
|
+
"to-r": "bg-gradient-to-r",
|
|
575
|
+
"to-br": "bg-gradient-to-br",
|
|
576
|
+
"to-b": "bg-gradient-to-b",
|
|
577
|
+
"to-bl": "bg-gradient-to-bl",
|
|
578
|
+
"to-l": "bg-gradient-to-l",
|
|
579
|
+
"to-tl": "bg-gradient-to-tl"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"columnBorderRadius": {
|
|
583
|
+
"twClasses": {
|
|
584
|
+
"sm": "rounded",
|
|
585
|
+
"md": "rounded-md",
|
|
586
|
+
"lg": "rounded-lg",
|
|
587
|
+
"xl": "rounded-xl",
|
|
588
|
+
"2xl": "rounded-2xl"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"columnShadow": {
|
|
592
|
+
"twClasses": {
|
|
593
|
+
"sm": "shadow",
|
|
594
|
+
"md": "shadow-md",
|
|
595
|
+
"lg": "shadow-lg",
|
|
596
|
+
"xl": "shadow-xl"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"columnBorder": {
|
|
600
|
+
"twClasses": {
|
|
601
|
+
"red-100": "border border-red-100",
|
|
602
|
+
"red-500": "border border-red-500",
|
|
603
|
+
"red-900": "border border-red-900",
|
|
604
|
+
"navy-100": "border border-navy-100",
|
|
605
|
+
"navy-500": "border border-navy-500",
|
|
606
|
+
"navy-900": "border border-navy-900",
|
|
607
|
+
"gray-100": "border border-gray-100",
|
|
608
|
+
"gray-500": "border border-gray-500",
|
|
609
|
+
"gray-900": "border border-gray-900",
|
|
610
|
+
"black": "border border-black",
|
|
611
|
+
"white": "border border-white"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
"columnOverflow": {
|
|
615
|
+
"responsive": true,
|
|
616
|
+
"twClasses": {
|
|
617
|
+
"visible": "overflow-visible",
|
|
618
|
+
"hidden": "overflow-hidden",
|
|
619
|
+
"scroll": "overflow-scroll",
|
|
620
|
+
"clip": "overflow-clip"
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useSelect } from '@wordpress/data';
|
|
2
|
+
import { ColumnsOptions } from './components/columns-options';
|
|
3
|
+
import { ColumnsEditor } from './components/columns-editor';
|
|
4
|
+
import { GutenbergBlock, overrideInnerBlockAttributes } from '@eightshift/frontend-libs-tailwind/scripts';
|
|
5
|
+
|
|
6
|
+
export const Columns = (props) => {
|
|
7
|
+
useSelect((select) => {
|
|
8
|
+
overrideInnerBlockAttributes(select, props.clientId, {
|
|
9
|
+
columnsConfig: props.attributes.columnsNumOfColumns,
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<GutenbergBlock
|
|
15
|
+
{...props}
|
|
16
|
+
options={ColumnsOptions}
|
|
17
|
+
editor={ColumnsEditor}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Columns 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
|
+
$blockClass = Helpers::getTwClasses($attributes, $manifest);
|
|
14
|
+
?>
|
|
15
|
+
|
|
16
|
+
<div class="<?php echo esc_attr($blockClass); ?>" >
|
|
17
|
+
<?php
|
|
18
|
+
// phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped
|
|
19
|
+
echo $renderContent;
|
|
20
|
+
?>
|
|
21
|
+
</div>
|