@total_onion/onion-library 2.0.89 → 2.0.91
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/components/block-standard-content-v3/standard-content-v3.js +39 -0
- package/components/block-standard-content-v3/standard-content-v3.scss +9 -0
- package/components/block-sub-group-container-v3/sub-group-container-v3.js +9 -0
- package/components/block-sub-group-container-v3/sub-group-container-v3.scss +27 -0
- package/new-block-templates/template-acf.js +1 -1
- package/new-block-templates/template-scss-blank.js +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export default function standardcontentv3Js(options = {}) {
|
|
2
|
+
try {
|
|
3
|
+
const {block} = options;
|
|
4
|
+
// const formContainerElement = block.querySelector('.form-container');
|
|
5
|
+
// const modalFormContainerElement = block.querySelector(
|
|
6
|
+
// '.form-container__modal'
|
|
7
|
+
// );
|
|
8
|
+
// const countdownElement = block.querySelector('.countdowndate');
|
|
9
|
+
// const socialMediaElement = block.querySelector(
|
|
10
|
+
// '.social-media-share-popup'
|
|
11
|
+
// );
|
|
12
|
+
|
|
13
|
+
// if (formContainerElement || modalFormContainerElement) {
|
|
14
|
+
// import(
|
|
15
|
+
// 'Assets/js/modules/library-modules/form-selection/form-selection.js'
|
|
16
|
+
// ).then((module) => {
|
|
17
|
+
// module.default(block);
|
|
18
|
+
// });
|
|
19
|
+
// }
|
|
20
|
+
|
|
21
|
+
// if (countdownElement) {
|
|
22
|
+
// import(
|
|
23
|
+
// 'Assets/js/modules/library-modules/countdown/countdown.js'
|
|
24
|
+
// ).then((module) => {
|
|
25
|
+
// module.default(block);
|
|
26
|
+
// });
|
|
27
|
+
// }
|
|
28
|
+
|
|
29
|
+
// if (socialMediaElement) {
|
|
30
|
+
// import(
|
|
31
|
+
// 'Assets/js/modules/library-modules/social-media-share/social-media-share.js'
|
|
32
|
+
// ).then((module) => {
|
|
33
|
+
// module.default(block);
|
|
34
|
+
// });
|
|
35
|
+
// }
|
|
36
|
+
} catch (error) {
|
|
37
|
+
console.error(error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@use '../fields-core-mixins-v3/core-mixins-v3';
|
|
2
|
+
@use '../component-content-box-v3/content-box-v3';
|
|
3
|
+
|
|
4
|
+
.standard-content-v3 {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template: 'main' / 1fr;
|
|
7
|
+
@include core-mixins-v3.responsiveShowHide(grid);
|
|
8
|
+
@include content-box-v3.contentBoxV3();
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// LIBRARY FILE - Do not modify/override here as your changes will be lost when the package is updated.
|
|
2
|
+
export default function subgroupcontainerv3Js(options = {}) {
|
|
3
|
+
// try {
|
|
4
|
+
// const {block} = options;
|
|
5
|
+
// loadCss(block.dataset.assetkey, options).then(() => {});
|
|
6
|
+
// } catch (error) {
|
|
7
|
+
// console.error(error);
|
|
8
|
+
// }
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../component-grid-layout-element-v3/grid-layout-element-v3';
|
|
2
|
+
@use '../component-grid-layout-container-v3/grid-layout-container-v3';
|
|
3
|
+
@use '../component-flex-layout-container-v3/flex-layout-container-v3';
|
|
4
|
+
@use '../component-animations-v3/animations-v3';
|
|
5
|
+
|
|
6
|
+
.sub-group-container-v3 {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template: 'main' / 1fr;
|
|
9
|
+
place-items: center;
|
|
10
|
+
@include animations-v3.animations();
|
|
11
|
+
&__grid-container {
|
|
12
|
+
grid-area: main;
|
|
13
|
+
place-self: stretch;
|
|
14
|
+
&.flex-layout-container {
|
|
15
|
+
@include flex-layout-container-v3.flexLayoutContainer();
|
|
16
|
+
}
|
|
17
|
+
&.grid-layout-container {
|
|
18
|
+
@include grid-layout-container-v3.gridLayoutContainer();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&__block-container {
|
|
22
|
+
z-index: 5;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
position: relative;
|
|
25
|
+
@include grid-layout-element-v3.gridLayoutElement();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -8,7 +8,7 @@ acf_register_block_type(
|
|
|
8
8
|
newBlockName.charAt(0).toUpperCase() +
|
|
9
9
|
newBlockName.slice(1).replaceAll('-', ' ')
|
|
10
10
|
}', '${projectName} Admin' ),
|
|
11
|
-
'render_callback' => '
|
|
11
|
+
'render_callback' => 'core_block_render_post_object_v3',
|
|
12
12
|
'category' => 'common',
|
|
13
13
|
'icon' => get_svg_icon_content('brick.svg'),
|
|
14
14
|
'keywords' => array('content', 'text' ),
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
module.exports = function (newBlockName, projectName) {
|
|
2
|
-
return
|
|
2
|
+
return `// @use 'NodeModules/@total_onion/onion-library/components/fields-core-mixins-v3/core-mixins-v3';
|
|
3
|
+
// @use 'NodeModules/@total_onion/onion-library/components/fields-core-functions-v3/core-functions-v3';
|
|
4
|
+
// @use 'NodeModules/@total_onion/onion-library/breakpoints';
|
|
5
|
+
.${newBlockName} {}`;
|
|
3
6
|
};
|