@eightshift/frontend-libs-tailwind 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/package.json +11 -18
- package/blocks/init/assets/application-admin.js +0 -10
- package/blocks/init/assets/application.js +0 -13
- package/blocks/init/assets/fonts/fraunces-italic-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-italic-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-italic-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-italic-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-latin.woff2 +0 -0
- package/blocks/init/assets/images/index.js +0 -5
- package/blocks/init/assets/scripts/application-admin.js +0 -7
- package/blocks/init/assets/scripts/application.js +0 -3
- package/blocks/init/assets/scripts/theme-colors.js +0 -39
- package/blocks/init/assets/styles/application-admin.css +0 -6
- package/blocks/init/assets/styles/application.css +0 -3
- package/blocks/init/src/Blocks/assets/application-blocks-editor.js +0 -14
- package/blocks/init/src/Blocks/assets/application-blocks-frontend.js +0 -13
- package/blocks/init/src/Blocks/assets/application-blocks.js +0 -9
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-editor.js +0 -65
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-frontend.js +0 -24
- package/blocks/init/src/Blocks/assets/scripts/link-section-editor.js +0 -262
- package/blocks/init/src/Blocks/assets/scripts/shared.js +0 -25
- package/blocks/init/src/Blocks/assets/styles/application-blocks-editor.css +0 -15
- package/blocks/init/src/Blocks/assets/styles/application-blocks-frontend.css +0 -9
- package/blocks/init/src/Blocks/assets/styles/application-blocks.css +0 -1
- package/blocks/init/src/Blocks/assets/styles/editor/editor-overrides.css +0 -15
- package/blocks/init/src/Blocks/assets/styles/fonts.css +0 -90
- package/blocks/init/src/Blocks/assets/styles/tailwind.css +0 -30
- package/blocks/init/src/Blocks/components/admin-theme-options/admin-theme-options.php +0 -20
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/index.js +0 -36
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/pages/parts.js +0 -56
- package/blocks/init/src/Blocks/components/admin-theme-options/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/button/assets/index.js +0 -22
- package/blocks/init/src/Blocks/components/button/button.php +0 -88
- package/blocks/init/src/Blocks/components/button/components/button-editor.js +0 -36
- package/blocks/init/src/Blocks/components/button/components/button-options.js +0 -134
- package/blocks/init/src/Blocks/components/button/manifest.json +0 -302
- package/blocks/init/src/Blocks/components/card/card.php +0 -42
- package/blocks/init/src/Blocks/components/card/components/card-editor.js +0 -43
- package/blocks/init/src/Blocks/components/card/components/card-options.js +0 -55
- package/blocks/init/src/Blocks/components/card/manifest.json +0 -111
- package/blocks/init/src/Blocks/components/head/head.php +0 -52
- package/blocks/init/src/Blocks/components/head/manifest.json +0 -17
- package/blocks/init/src/Blocks/components/heading/components/heading-editor.js +0 -26
- package/blocks/init/src/Blocks/components/heading/components/heading-options.js +0 -62
- package/blocks/init/src/Blocks/components/heading/heading.php +0 -45
- package/blocks/init/src/Blocks/components/heading/manifest.json +0 -76
- package/blocks/init/src/Blocks/components/hero/components/hero-editor.js +0 -42
- package/blocks/init/src/Blocks/components/hero/components/hero-options.js +0 -100
- package/blocks/init/src/Blocks/components/hero/hero.php +0 -45
- package/blocks/init/src/Blocks/components/hero/manifest.json +0 -96
- package/blocks/init/src/Blocks/components/icon/components/icon-editor.js +0 -23
- package/blocks/init/src/Blocks/components/icon/components/icon-options.js +0 -65
- package/blocks/init/src/Blocks/components/icon/icon.php +0 -53
- package/blocks/init/src/Blocks/components/icon/manifest.json +0 -1238
- package/blocks/init/src/Blocks/components/image/components/image-editor.js +0 -64
- package/blocks/init/src/Blocks/components/image/components/image-options.js +0 -111
- package/blocks/init/src/Blocks/components/image/image.php +0 -68
- package/blocks/init/src/Blocks/components/image/manifest.json +0 -125
- package/blocks/init/src/Blocks/components/list/components/list-editor.js +0 -30
- package/blocks/init/src/Blocks/components/list/components/list-options.js +0 -62
- package/blocks/init/src/Blocks/components/list/list.php +0 -32
- package/blocks/init/src/Blocks/components/list/manifest.json +0 -127
- package/blocks/init/src/Blocks/components/load-more/assets/index.js +0 -19
- package/blocks/init/src/Blocks/components/load-more/assets/load-more.js +0 -146
- package/blocks/init/src/Blocks/components/load-more/components/load-more-editor.js +0 -14
- package/blocks/init/src/Blocks/components/load-more/components/load-more-options.js +0 -19
- package/blocks/init/src/Blocks/components/load-more/load-more.php +0 -47
- package/blocks/init/src/Blocks/components/load-more/manifest.json +0 -39
- package/blocks/init/src/Blocks/components/modal/assets/index.js +0 -27
- package/blocks/init/src/Blocks/components/modal/manifest.json +0 -48
- package/blocks/init/src/Blocks/components/modal/modal.php +0 -46
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js +0 -38
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js +0 -48
- package/blocks/init/src/Blocks/components/paragraph/manifest.json +0 -81
- package/blocks/init/src/Blocks/components/paragraph/paragraph.php +0 -33
- package/blocks/init/src/Blocks/components/post-header/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/post-header/post-header.php +0 -24
- package/blocks/init/src/Blocks/components/quote/components/quote-editor.js +0 -53
- package/blocks/init/src/Blocks/components/quote/components/quote-options.js +0 -29
- package/blocks/init/src/Blocks/components/quote/manifest.json +0 -47
- package/blocks/init/src/Blocks/components/quote/quote.php +0 -49
- package/blocks/init/src/Blocks/components/share/assets/index.js +0 -39
- package/blocks/init/src/Blocks/components/share/components/share-editor.js +0 -28
- package/blocks/init/src/Blocks/components/share/components/share-options.js +0 -112
- package/blocks/init/src/Blocks/components/share/manifest.json +0 -72
- package/blocks/init/src/Blocks/components/share/share.php +0 -69
- package/blocks/init/src/Blocks/components/tracking-before-body-end/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php +0 -9
- package/blocks/init/src/Blocks/components/tracking-head/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/tracking-head/tracking-head.php +0 -9
- package/blocks/init/src/Blocks/components/video/components/video-editor.js +0 -74
- package/blocks/init/src/Blocks/components/video/components/video-options.js +0 -279
- package/blocks/init/src/Blocks/components/video/manifest.json +0 -120
- package/blocks/init/src/Blocks/components/video/video.php +0 -70
- package/blocks/init/src/Blocks/custom/accordion/accordion-block.js +0 -15
- package/blocks/init/src/Blocks/custom/accordion/accordion.php +0 -28
- package/blocks/init/src/Blocks/custom/accordion/assets/index.js +0 -37
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-editor.js +0 -22
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-options.js +0 -18
- package/blocks/init/src/Blocks/custom/accordion/manifest.json +0 -32
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item-block.js +0 -19
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item.php +0 -46
- package/blocks/init/src/Blocks/custom/accordion-item/components/accordion-item-editor.js +0 -60
- package/blocks/init/src/Blocks/custom/accordion-item/manifest.json +0 -69
- package/blocks/init/src/Blocks/custom/button/button-block.js +0 -13
- package/blocks/init/src/Blocks/custom/button/button.php +0 -11
- package/blocks/init/src/Blocks/custom/button/components/button-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/button/components/button-options.js +0 -12
- package/blocks/init/src/Blocks/custom/button/manifest.json +0 -18
- package/blocks/init/src/Blocks/custom/card/card-block.js +0 -13
- package/blocks/init/src/Blocks/custom/card/card.php +0 -11
- package/blocks/init/src/Blocks/custom/card/components/card-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/card/components/card-options.js +0 -15
- package/blocks/init/src/Blocks/custom/card/manifest.json +0 -18
- package/blocks/init/src/Blocks/custom/carousel/assets/index.js +0 -46
- package/blocks/init/src/Blocks/custom/carousel/assets/navigation.js +0 -31
- package/blocks/init/src/Blocks/custom/carousel/assets/pagination.js +0 -40
- package/blocks/init/src/Blocks/custom/carousel/carousel-block.js +0 -21
- package/blocks/init/src/Blocks/custom/carousel/carousel.php +0 -61
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-editor.js +0 -25
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-options.js +0 -47
- package/blocks/init/src/Blocks/custom/carousel/manifest.json +0 -130
- package/blocks/init/src/Blocks/custom/column/column-block.js +0 -21
- package/blocks/init/src/Blocks/custom/column/column-hooks.js +0 -32
- package/blocks/init/src/Blocks/custom/column/column.php +0 -21
- package/blocks/init/src/Blocks/custom/column/components/column-editor.js +0 -22
- package/blocks/init/src/Blocks/custom/column/components/column-options.js +0 -580
- package/blocks/init/src/Blocks/custom/column/manifest.json +0 -625
- package/blocks/init/src/Blocks/custom/columns/columns-block.js +0 -20
- package/blocks/init/src/Blocks/custom/columns/columns.php +0 -21
- package/blocks/init/src/Blocks/custom/columns/components/columns-editor.js +0 -81
- package/blocks/init/src/Blocks/custom/columns/components/columns-options.js +0 -104
- package/blocks/init/src/Blocks/custom/columns/manifest.json +0 -581
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-editor.js +0 -28
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-options.js +0 -248
- package/blocks/init/src/Blocks/custom/featured-content/featured-content-block.js +0 -13
- package/blocks/init/src/Blocks/custom/featured-content/featured-content.php +0 -139
- package/blocks/init/src/Blocks/custom/featured-content/manifest.json +0 -131
- package/blocks/init/src/Blocks/custom/featured-content/partials/cards.php +0 -39
- package/blocks/init/src/Blocks/custom/group/components/group-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/group/group-block.js +0 -14
- package/blocks/init/src/Blocks/custom/group/group.php +0 -10
- package/blocks/init/src/Blocks/custom/group/manifest.json +0 -32
- package/blocks/init/src/Blocks/custom/heading/components/heading-editor.js +0 -15
- package/blocks/init/src/Blocks/custom/heading/components/heading-options.js +0 -38
- package/blocks/init/src/Blocks/custom/heading/heading-block.js +0 -13
- package/blocks/init/src/Blocks/custom/heading/heading-transforms.js +0 -26
- package/blocks/init/src/Blocks/custom/heading/heading.php +0 -15
- package/blocks/init/src/Blocks/custom/heading/manifest.json +0 -79
- package/blocks/init/src/Blocks/custom/hero/components/hero-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/hero/components/hero-options.js +0 -14
- package/blocks/init/src/Blocks/custom/hero/hero-block.js +0 -13
- package/blocks/init/src/Blocks/custom/hero/hero.php +0 -11
- package/blocks/init/src/Blocks/custom/hero/manifest.json +0 -17
- package/blocks/init/src/Blocks/custom/image/components/image-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/image/components/image-options.js +0 -14
- package/blocks/init/src/Blocks/custom/image/image-block.js +0 -13
- package/blocks/init/src/Blocks/custom/image/image.php +0 -11
- package/blocks/init/src/Blocks/custom/image/manifest.json +0 -33
- package/blocks/init/src/Blocks/custom/list/components/list-editor.js +0 -14
- package/blocks/init/src/Blocks/custom/list/components/list-options.js +0 -39
- package/blocks/init/src/Blocks/custom/list/list-block.js +0 -13
- package/blocks/init/src/Blocks/custom/list/list.php +0 -15
- package/blocks/init/src/Blocks/custom/list/manifest.json +0 -58
- package/blocks/init/src/Blocks/custom/map/assets/index.js +0 -20
- package/blocks/init/src/Blocks/custom/map/assets/map-controller.js +0 -41
- package/blocks/init/src/Blocks/custom/map/assets/utils.js +0 -161
- package/blocks/init/src/Blocks/custom/map/components/map-components.js +0 -403
- package/blocks/init/src/Blocks/custom/map/components/map-editor.js +0 -56
- package/blocks/init/src/Blocks/custom/map/components/map-options.js +0 -550
- package/blocks/init/src/Blocks/custom/map/manifest.json +0 -79
- package/blocks/init/src/Blocks/custom/map/map-block.js +0 -13
- package/blocks/init/src/Blocks/custom/map/map.php +0 -52
- package/blocks/init/src/Blocks/custom/map/styles.css +0 -2
- package/blocks/init/src/Blocks/custom/modal/components/modal-editor.js +0 -90
- package/blocks/init/src/Blocks/custom/modal/manifest.json +0 -51
- package/blocks/init/src/Blocks/custom/modal/modal-block.js +0 -14
- package/blocks/init/src/Blocks/custom/modal/modal.php +0 -20
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-editor.js +0 -17
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-options.js +0 -38
- package/blocks/init/src/Blocks/custom/paragraph/manifest.json +0 -82
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-block.js +0 -13
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-transforms.js +0 -46
- package/blocks/init/src/Blocks/custom/paragraph/paragraph.php +0 -15
- package/blocks/init/src/Blocks/custom/quote/components/quote-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/quote/components/quote-options.js +0 -14
- package/blocks/init/src/Blocks/custom/quote/manifest.json +0 -17
- package/blocks/init/src/Blocks/custom/quote/quote-block.js +0 -13
- package/blocks/init/src/Blocks/custom/quote/quote.php +0 -13
- package/blocks/init/src/Blocks/custom/share/components/share-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/share/components/share-options.js +0 -12
- package/blocks/init/src/Blocks/custom/share/manifest.json +0 -19
- package/blocks/init/src/Blocks/custom/share/share-block.js +0 -13
- package/blocks/init/src/Blocks/custom/share/share.php +0 -11
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-editor.js +0 -57
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-options.js +0 -106
- package/blocks/init/src/Blocks/custom/site-footer/manifest.json +0 -73
- package/blocks/init/src/Blocks/custom/site-footer/site-footer-block.js +0 -13
- package/blocks/init/src/Blocks/custom/site-footer/site-footer.php +0 -74
- package/blocks/init/src/Blocks/custom/site-navigation/assets/index.js +0 -9
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-editor.js +0 -42
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-options.js +0 -73
- package/blocks/init/src/Blocks/custom/site-navigation/manifest.json +0 -77
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation-block.js +0 -13
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation.php +0 -99
- package/blocks/init/src/Blocks/custom/table-of-contents/assets/index.js +0 -58
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-editor.js +0 -38
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-options.js +0 -32
- package/blocks/init/src/Blocks/custom/table-of-contents/manifest.json +0 -48
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents-block.js +0 -13
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents.php +0 -31
- package/blocks/init/src/Blocks/custom/video/components/video-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/video/components/video-options.js +0 -12
- package/blocks/init/src/Blocks/custom/video/manifest.json +0 -29
- package/blocks/init/src/Blocks/custom/video/video-block.js +0 -13
- package/blocks/init/src/Blocks/custom/video/video.php +0 -22
- package/blocks/init/src/Blocks/manifest.json +0 -32
- package/blocks/init/src/Blocks/variations/card-simple/manifest.json +0 -17
- package/blocks/init/src/Blocks/wrapper/components/wrapper-editor.js +0 -12
- package/blocks/init/src/Blocks/wrapper/components/wrapper-options.js +0 -364
- package/blocks/init/src/Blocks/wrapper/manifest.json +0 -459
- package/blocks/init/src/Blocks/wrapper/styles-editor.css +0 -13
- package/blocks/init/src/Blocks/wrapper/styles.css +0 -19
- package/blocks/init/src/Blocks/wrapper/wrapper.js +0 -27
- package/blocks/init/src/Blocks/wrapper/wrapper.php +0 -34
|
@@ -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>
|