Skip to content

Commit 0cbac7f

Browse files
committed
Updated baseURL to end in 0.06
1 parent 0ac1a7e commit 0cbac7f

File tree

3 files changed

+6
-25
lines changed

3 files changed

+6
-25
lines changed

zephyrcore/zephyr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* and data binding capabilities.
44
*/
55
export default class ZephyrJS extends HTMLElement {
6-
static baseUrl = 'https://cdn.jsdelivr.net/gh/RPDevJesco/ZephyrJS@0.05';
6+
static baseUrl = 'https://cdn.jsdelivr.net/gh/RPDevJesco/ZephyrJS@0.06';
77

88
static setBaseUrl(url) {
99
ZephyrJS.baseUrl = url.endsWith('/') ? url : url + '/';

zephyrtemplates/Dropdown.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,16 @@ export default class Dropdown extends ZephyrJS {
1212
selectedOption: null,
1313
placeholder: 'Select an option'
1414
};
15-
console.log('Dropdown constructor called');
1615
}
1716

1817
async connectedCallback() {
19-
console.log('Dropdown connectedCallback started');
2018
await super.connectedCallback();
21-
console.log('Dropdown super.connectedCallback completed');
2219

2320
this.setOptions(JSON.parse(this.getAttribute('options') || '[]'));
2421
this.state.placeholder = this.getAttribute('placeholder') || this.state.placeholder;
2522
this.state.selectedOption = this.getAttribute('selected') || null;
2623

27-
console.log('Dropdown state after attribute processing:', this.state);
28-
2924
await this.renderAndAddListeners();
30-
console.log('Dropdown renderAndAddListeners completed');
3125
}
3226

3327
setOptions(options) {
@@ -36,28 +30,22 @@ export default class Dropdown extends ZephyrJS {
3630
}
3731

3832
async renderAndAddListeners() {
39-
console.log('renderAndAddListeners started');
4033
await this.render();
4134
this.addEventListeners();
42-
console.log('renderAndAddListeners completed');
4335
}
4436

4537
async render() {
46-
console.log('Render started');
4738
if (!this.shadowRoot) {
4839
console.error('Shadow root not found');
4940
return;
5041
}
5142

5243
let select = this.shadowRoot.querySelector('select');
5344
if (!select) {
54-
console.log('Select element not found, inserting template content');
5545
if (this.template && this.template.content) {
5646
const templateContent = this.template.content.cloneNode(true);
57-
console.log('Cloned template content:', templateContent);
5847
this.shadowRoot.appendChild(templateContent);
5948
select = this.shadowRoot.querySelector('select');
60-
console.log('Select element after insertion:', select);
6149
} else {
6250
console.error('Template content not available');
6351
return;
@@ -91,30 +79,23 @@ export default class Dropdown extends ZephyrJS {
9179
optionElement.selected = option.value === this.state.selectedOption;
9280
select.appendChild(optionElement);
9381
});
94-
95-
console.log('Render completed, select content:', select.innerHTML);
9682
}
9783

9884
addEventListeners() {
99-
console.log('Adding event listeners');
10085
const select = this.shadowRoot.querySelector('select');
10186

10287
if (select) {
10388
select.addEventListener('change', (e) => {
10489
this.state.selectedOption = e.target.value;
10590
this.dispatchCustomEvent('optionSelected', { option: this.state.selectedOption });
10691
});
107-
console.log('Change listener added to select element');
10892
} else {
10993
console.error('Select element not found');
11094
}
111-
112-
console.log('Event listeners added');
11395
}
11496

11597
disconnectedCallback() {
11698
super.disconnectedCallback();
117-
console.log('Dropdown disconnected');
11899
}
119100
}
120101

zephyrtemplates/templates/dropdown.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
}
1111
.dropdown-toggle {
1212
padding: 10px;
13-
border: 1px solid var(--neutral-color, #ccc);
14-
background-color: var(--light-color, #fff);
13+
border: 1px solid var(--neutral-color);
14+
background-color: var(--background-color);
1515
color: var(--dark-text, #333);
1616
cursor: pointer;
1717
user-select: none;
@@ -22,8 +22,8 @@
2222
top: 100%;
2323
left: 0;
2424
right: 0;
25-
background-color: var(--light-color, #fff);
26-
border: 1px solid var(--neutral-color, #ccc);
25+
background-color: var(--background-color);
26+
border: 1px solid var(--neutral-color);
2727
border-top: none;
2828
list-style-type: none;
2929
padding: 0;
@@ -40,7 +40,7 @@
4040
cursor: pointer;
4141
}
4242
.dropdown-option:hover {
43-
background-color: var(--secondary-color, #f0f0f0);
43+
background-color: var(--secondary-color);
4444
}
4545
</style>
4646
<div class="dropdown-container">

0 commit comments

Comments
 (0)