Finish update 0.2.

This commit is contained in:
MaxOvs19 2023-02-20 14:26:47 +03:00
parent 93fec79c1e
commit 682332645e
10 changed files with 63 additions and 35 deletions

View File

@ -47,4 +47,9 @@ Tested in JS and React. Errors in work in React applications are revealed.
- Documentation navigation update. - Documentation navigation update.
- Added icon for example page and documentation. - Added icon for example page and documentation.
##### 00.02.2023 - update 0.2.34 ### 20.02.2023 - update 0.2.4
- Added ability to create custom themes.
- Added style builder on homepage.
- Fixed documentation.
- Added a block describing how to create your own themes.

View File

@ -1,6 +1,6 @@
# CG-SELECT # CG-SELECT
## version ~ 0.2.34 ## version ~ 0.2.4
This component allows you to create a custom select. It offers more flexible customization and use of select. This component allows you to create a custom select. It offers more flexible customization and use of select.
Customization, multi-selection and live search by elements are available. Customization, multi-selection and live search by elements are available.

View File

@ -1,6 +1,6 @@
# CG-SELECT # CG-SELECT
## version ~ 0.2.34 ## version ~ 0.2.4
Этот компонент позволяет вам создать пользовательский Select. Он предлагает более гибкую настройку и использование select. Этот компонент позволяет вам создать пользовательский Select. Он предлагает более гибкую настройку и использование select.
Доступна кастомизация, multi-selection, живой поиск по элементам и многое другое. Доступна кастомизация, multi-selection, живой поиск по элементам и многое другое.

View File

@ -62,7 +62,7 @@
</a> </a>
<a href="#version--0231" id="version--0231" style="color: inherit; text-decoration: none"> <a href="#version--0231" id="version--0231" style="color: inherit; text-decoration: none">
<h2>version ~ 0.2.34</h2> <h2>version ~ 0.2.4</h2>
</a> </a>
<p> <p>
This component allows you to create a custom select. It offers more flexible This component allows you to create a custom select. It offers more flexible

View File

@ -43,6 +43,7 @@
} }
.header { .header {
position: relative;
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
display: flex; display: flex;
@ -161,6 +162,7 @@
.description-theme { .description-theme {
color: white; color: white;
.col { .col {
width: 54%; width: 54%;
} }
@ -258,3 +260,11 @@ pre {
height: 40px; height: 40px;
} }
} }
.version {
position: absolute;
color: white;
font-size: 10px;
right: 20px;
bottom: 0px;
}

View File

@ -31,6 +31,7 @@
<li><a href="/docs/index.html">Documentation</a></li> <li><a href="/docs/index.html">Documentation</a></li>
</ul> </ul>
</nav> </nav>
<p class="version">v. 0.2.4</p>
</header> </header>
</div> </div>
@ -193,7 +194,7 @@
</div> </div>
<div class="example-select description-theme"> <div class="example-select description-theme">
<h1 class="example-select_title">Setting up and adding a theme.</h1> <h1 class="example-select_title">Setting up and adding a theme</h1>
<div class="layout-select"> <div class="layout-select">
<div class="row"> <div class="row">
@ -322,33 +323,38 @@
<div class="example-select"> <div class="example-select">
<h1 class="example-select_title">Select constructor</h1> <h1 class="example-select_title">Select constructor</h1>
<div class="col" style="margin: 20px; color: white"> <div class="row" style="margin: 20px; color: white">
<h5 style="font-size: 18px">Select Style Builder:</h5> <div class="col">
<p style="margin-right: 50px; font-size: 17px"> <h5 style="font-size: 18px; margin: 0;">Select Style Builder:</h5>
This is a constructor for styling a select online without downloading. For it to work, <p style="margin-right: 50px; font-size: 17px">
you need to: This is a constructor for styling a select online without downloading. For it to work,
<ol style="font-size: 15px;"> you need to:
<li>Select a part of the select for customization. </li> <ol style="font-size: 15px;">
<li>Enter styles in the text field in the form "color: red;".</li> <li class="liList">Select a part of the select for customization. </li>
<li>Click on the render button.</li> <li class="liList">Enter styles in the text field in the form "color: red;".</li>
</ol> <li class="liList">Click on the render button.</li>
</ol>
</p> </p>
</div>
<div class="col">
<div class="layout-select constructor">
<button class="cg-dropdown body"></button>
<textarea
name="styles"
id="styles"
cols="30"
rows="5"
class="textareaStyle"
placeholder="Enter CSS properties"
disabled="disabled"
></textarea>
<button type="button" class="check-code render">Render</button>
</div>
</div>
</div> </div>
<div class="layout-select constructor"> <div class="layout-select constructor" style="margin-bottom: 60px;">
<button class="cg-dropdown body"></button>
<textarea
name="styles"
id="styles"
cols="30"
rows="5"
class="textareaStyle"
placeholder="Enter CSS properties"
disabled="disabled"
></textarea>
<button type="button" class="check-code render">Render</button>
</div>
<div class="layout-select constructor">
<button class="cg-dropdown select"></button> <button class="cg-dropdown select"></button>
</div> </div>
</div> </div>

View File

@ -52,6 +52,7 @@ renderBtn.addEventListener('click', () => {
const select = new CGSelect({ const select = new CGSelect({
selector: '.select', selector: '.select',
placeholder: 'Choose a car', placeholder: 'Choose a car',
label: 'Exemple select',
items: [ items: [
'BMW', 'BMW',
{ {

View File

@ -1,10 +1,16 @@
.textareaStyle { .textareaStyle {
resize: none; resize: none;
border-radius: 5px; border-radius: 5px;
margin-left: 53px; margin: 15px;
} }
.constructor { .constructor {
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column;
}
.liList {
margin-bottom: 5px;
font-size: 17px;
} }

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "cg-select", "name": "cg-select",
"version": "0.2.34", "version": "0.2.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cg-select", "name": "cg-select",
"version": "0.2.34", "version": "0.2.4",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@parcel/optimizer-css": "^2.8.0", "@parcel/optimizer-css": "^2.8.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "cg-select", "name": "cg-select",
"version": "0.2.34", "version": "0.2.4",
"description": "Feature rich Select control for React/JS with multiselect, autocomplete and styling", "description": "Feature rich Select control for React/JS with multiselect, autocomplete and styling",
"author": { "author": {
"name": "CraftGroup", "name": "CraftGroup",