Ready to update

This commit is contained in:
MaxOvs19 2023-03-21 14:44:24 +03:00
parent c635e838c8
commit e75cfd96a6
4 changed files with 0 additions and 67 deletions

View File

@ -10,7 +10,6 @@
}, },
"homepage": "https://cg-select.itguild.info", "homepage": "https://cg-select.itguild.info",
"scripts": { "scripts": {
"start": "parcel ./test/index.html -p 4500 --open",
"watch": "parcel watch", "watch": "parcel watch",
"build": "parcel build", "build": "parcel build",
"deploy": "gh-pages -d dist", "deploy": "gh-pages -d dist",

View File

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Test</title>
</head>
<body>
<!-- TODO: Удалить после окончания обновления -->
<button class="cg-dropdown cg-dropdown_selector"></button>
</body>
<script src="index.js" type="module"></script>
</html>

View File

@ -1,23 +0,0 @@
import { CGSelect } from '../src/cg-select';
import { newTheme } from './test';
const dropdown = new CGSelect({
selector: '.cg-dropdown_selector',
placeholder: 'Выберите авто',
label: 'HI',
items: [
'BMW',
{
id: '213sade',
title: 'Opel',
value: 1,
},
'Mersedes',
'MAN',
'Ferari',
],
searchMode: true,
multiselect: true,
multiselectTag: true,
theme: newTheme,
});

View File

@ -1,29 +0,0 @@
import { CustomThemeJson } from 'components/theme/theme.interface';
export const newTheme: CustomThemeJson = {
name: 'lol',
styles: {
head: {
color: 'red',
fontSize: '18px',
background: '#ff000066',
},
lable: {
color: 'black',
fontSize: '26px',
},
list: {
background: 'black',
color: 'red',
},
placeholder: {
color: 'green',
},
caret: {
borderTop: '6px solid #607ab1',
},
search: {
background: 'red',
},
},
};