=== Block Collections === Contributors: itmaroon Tags: block, Gutenberg, design, textbox, input Requires at least: 6.4 Tested up to: 7.1 Stable tag: 2.3.3 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html Requires PHP: 8.2.10 It is a plug-in that collects small scale blocks. == Related Links == * [block-collections:Github](https://github.com/itmaroon/block-collections) * [block-class-package:GitHub](https://github.com/itmaroon/block-class-package) * [block-class-package:Packagist](https://packagist.org/packages/itmar/block-class-package) * [itmar-block-packages:npm](https://www.npmjs.com/package/itmar-block-packages) * [itmar-block-packages:GitHub](https://github.com/itmaroon/itmar-block-packages) * [Google Cloud Console](https://console.cloud.google.com/welcome) * This plugin uses the API of "Google Cloud Translation API". * Get the project ID and API key obtained by creating a project and enabling the Cloud Translation API from the [Google Cloud Platform dashboard](https://console.cloud.google.com/home/dashboard). * You can register the authentication information from the setting screen. == Description == When this plugin is installed, the following 9 blocks are registered and can be used not only in the block editor but also in the site editor (tested on WordPress 6.4.2). In principle, each block can be configured with basic styles such as text color, background color, border, and white space, and in some cases it is also possible to set shadows and icons. There are also some that have simple animations set. Below is a brief explanation of each block. 1 Design Title A block that allows you to style HTML heading tags. In addition to the normal style, we have prepared a type that allows you to insert a circular marker, and a type that allows you to add sub copies and icons. 2 Design Text Control This is a block that allows you to style text controls and text area controls for HTML input elements. This time, we have prepared a normal box type and a line type. It is now possible to display required inputs, and it is a block that can be used for validation checks as an inner block of the Form Send Block. 3 Design CheckBox This is a block that allows you to style checkboxes in HTML input elements. Check animation. At the moment, we only have one type available, but we plan to gradually offer other variations in the future. 4 Design Select A block that allows you to style HTML SELECT elements. It boasts that the selection element moves with a slightly fancy animation. Supports single selection and multiple selection. 5 Design Process A block for displaying the input process of form input. It is assumed that it will be used as an inner block for the Guest Contact Block, which will be released soon, and this block will not work on its own. 6 Code HighLight This block allows you to enter code in the text area in edit mode and highlight it on the front end. This block uses the Google Code Prettify library for highlighting. 7. Design Table Displays the contents of a form object placed on a web page as a data source. It is intended to be installed in the input confirmation form as an inner block of Form Send Blocks, which will be released soon. 8. Design Button You can choose between regular buttons and submit buttons inside form elements. When you select the regular button, you can select a link to a fixed page and transition to that page. 9. Design Group - Its main function is to store blocks and set their arrangement. The placement can be selected according to the CSS display property block, flex(row), flex(column), or grid. If you select grid, you can set various grid styles. - Compatible with block themes, you can select contentSize and wideSize in the layout clause of theme.json, and you can also set the width to match the content width or freely set the width. - By setting it to "Make it a menu", it will become a hamburger button in mobile mode (displayed on devices with a width of 767px or less), and when you click it, it will stick out from the left. - These settings can be set separately for desktop mode (displayed on devices with a width of 768px or more) and mobile mode (displayed on devices with a width of 767px or less). - By setting it to be movable, you can adjust the placement by dragging. With this feature installed, the old version of Draggble Box has been discontinued. 10. Design Radio This block allows you to set styles for HTML radio button input elements. This time, we have prepared a normal radio button type and a button type. It is possible to add a button to deselect the element. 11. Design Calender - This block allows you to select and enter a date from a calendar. You can choose the start day of the week to be Sunday or Monday. - You can also set the display of holidays. To set holidays, you need to obtain an API key for the Google Calendar API. This plugin contains the ability to extend the core blocks: core/paragraph, core/image, core/table, core/list, and core/quote. The extended core blocks act as inner blocks of the blocks specified by the plugin, so they cannot function independently outside of the plugin. 1. core/paragraph - Added ability to set margins and padding. - Added the ability to set line height. - A function has been added that allows you to set a maximum height, and if the height exceeds that, a "See more" button will be displayed and displayed using that button. 2. core/list - Added ability to set margins and padding. - Added the ability to set line height. - Added the ability to set borderlines and rounded corners. 3. core/quote - Added ability to set margins and padding. - Added the ability to set borderlines and rounded corners. - Added the ability to set line height. 4. core/table - Added ability to set margins and padding. - Added the ability to set borderlines and rounded corners. 5. core/image - Added the ability to choose whether to fit the size to the parent element. - Added ability to set margins and padding. - Added the ability to set the image size. == Installation == 1. From the WP admin panel, click “Plugins” -> “Add new”. 2. In the browser input box, type “Block Collections”. 3. Select the “Block Collections” plugin and click “Install”. 4. Activate the plugin. OR… 1. Download the plugin from this page. 2. Save the .zip file to a location on your computer. 3. Open the WP admin panel, and click “Plugins” -> “Add new”. 4. Click “upload”.. then browse to the .zip file downloaded from this page. 5. Click “Install”.. and then “Activate plugin”. == Frequently Asked Questions == == Screenshots == 1. 3 types of design title blocks 2. Two types of design text control blocks 3. design checkbox block 4. Two types of design selection blocks 5. code highlighting block 6. Two types of design process blocks 7. Edit Design Group Grid Style 8. Design Table and Design Button 9. A block icon registered by the plugin. Divided into design group and widget group 10. Blocks that slide in with animation 11. Design Calender 12. Design Radio == Changelog == = 2.3.3 = - Added: svh, dvh and lvh units for the free height of Design Group (and other blocks using the shared height control). They follow the browser toolbars on phones, so a full-screen block is not hidden behind the bottom bar on iPhone. = 2.3.2 = - Fixed: the hamburger menu backdrop and slide-in panel did not reach the bottom of the screen on iPhone (Safari). They now use the large viewport height (100lvh). - Fixed: vertical text in Design Title wrapped after a few characters on iPhone (Safari) when the parent is sized by its content. The heading now takes the length of its content. = 2.3.1 = - Fixed: the typography chosen for a Title block (font, letter spacing, line height, font weight, font style, text transform, text decoration) now reaches the heading inside the block. Before, a theme that sets these for headings (h1 to h6) overrode the values chosen for the block. = 2.3.0 = - Changed: the Radio, Select, Text Control and Code Highlight blocks no longer save translated labels ("Clear", "Please Select.", "Address Search", "Copy", the zip-code placeholder). They are saved in English and translated when the page is shown, so a block does not become invalid when its content is moved to a site that uses another language. Content saved by earlier versions still opens without any warning (it is read by the older save, and updated when you save). - Changed: the Title block saves numbers and amounts in a fixed format that does not depend on the site language (amounts are Japanese yen). Earlier content is read as before. - Fixed: the label of the first option of a Select block is shown in the language of the site, on the front end. = 2.2.1 = - Fixed: opening a template or template part in the Site Editor no longer marks it as changed. Blocks that wrote their own attributes on load (shadow colors, menu flags, block style) now write only when the value really changes, and a transparent background is no longer saved as the shadow base color. = 2.2.0 = - Colors now come from the `--itmar-*` role variables (content, content-back, background, accents) in the block styles as well as in the saved defaults, so the blocks follow the active theme's palette. The theme.json color-slot filter was removed because it listed the same colors twice in themes that have their own palette names. - Added `itmar-design-roles.css`: font, spacing and width roles (`--itmar-font-*`, `--itmar-space-*`, `--itmar-width-*`) with theme-independent fallbacks, so ready-made patterns look right in any theme. - Calendar: the editor now asks the server whether the API key is saved (new REST route `itmar/v1/calendar-key-status`), so a saved key no longer looks "not set" after reopening the page. - Rebuilt the design blocks (Group, Title, Button, Table, Calendar, Text Control, Checkbox, Radio, Select, Process, Code Highlight) with the latest shared packages and fixes. - Updated the Japanese translation. = 2.1.0 = - Hamburger menu: replaced the toggle `
` with a real `