Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies & fixed deprecation warnings #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
441 changes: 392 additions & 49 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "lib/WiredElements.js",
"types": "lib/WiredElements.d.ts",
"scripts": {
"build": "rm -rf lib && tsc",
"build": "rimraf -rf lib && tsc",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -25,11 +25,12 @@
},
"homepage": "https://github.com/rough-stuff/react-wired-elements#readme",
"dependencies": {
"@lit-labs/react": "^1.0.0-rc.1",
"react": "^17.0.2",
"@lit-labs/react": "^1.1.1",
"react": "^18.2.0",
"wired-elements": "^3.0.0-rc.6"
},
"devDependencies": {
"@types/react": "^17.0.3"
"@types/react": "^18.0.31",
"rimraf": "^4.4.1"
}
}
6 changes: 5 additions & 1 deletion src/WiredButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredButton as _WiredButton } from 'wired-elements/lib/wired-button.js';

export const WiredButton = createComponent(React, 'wired-button', _WiredButton);
export const WiredButton = createComponent({
react: React,
tagName: 'wired-button',
elementClass: _WiredButton
});
6 changes: 5 additions & 1 deletion src/WiredCalendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredCalendar as CE } from 'wired-elements/lib/wired-calendar.js';

export const WiredCalendar = createComponent(React, 'wired-calendar', CE);
export const WiredCalendar = createComponent({
react: React,
tagName: 'wired-calendar',
elementClass: CE
});
6 changes: 5 additions & 1 deletion src/WiredCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredCard as _WiredCard } from 'wired-elements/lib/wired-card.js';

export const WiredCard = createComponent(React, 'wired-card', _WiredCard);
export const WiredCard = createComponent({
tagName: 'wired-card',
elementClass: _WiredCard,
react: React,
});
11 changes: 8 additions & 3 deletions src/WiredCheckbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredCheckbox as _WiredCheckbox } from 'wired-elements/lib/wired-checkbox.js';

export const WiredCheckbox = createComponent(React, 'wired-checkbox', _WiredCheckbox, {
onchange: 'change',
onChange: 'change'
export const WiredCheckbox = createComponent({
react: React,
tagName: 'wired-checkbox',
elementClass: _WiredCheckbox,
events: {
onchange: 'change',
onChange: 'change'
}
});
9 changes: 7 additions & 2 deletions src/WiredCombo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredCombo as _WiredCombo } from 'wired-elements/lib/wired-combo.js';

export const WiredCombo = createComponent(React, 'wired-combo', _WiredCombo, {
onselected: 'selected'
export const WiredCombo = createComponent({
react: React,
tagName: 'wired-combo',
elementClass: _WiredCombo,
events: {
onselected: 'selected'
}
});
6 changes: 5 additions & 1 deletion src/WiredDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredDialog as _WiredDialog } from 'wired-elements/lib/wired-dialog.js';

export const WiredDialog = createComponent(React, 'wired-dialog', _WiredDialog);
export const WiredDialog = createComponent({
react: React,
tagName: 'wired-dialog',
elementClass: _WiredDialog
});
6 changes: 5 additions & 1 deletion src/WiredDivider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredDivider as _WiredDivider } from 'wired-elements/lib/wired-divider.js';

export const WiredDivider = createComponent(React, 'wired-divider', _WiredDivider);
export const WiredDivider = createComponent({
react: React,
tagName: 'wired-divider',
elementClass: _WiredDivider
});
2 changes: 1 addition & 1 deletion src/WiredElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export * from './WiredTab';
export * from './WiredTabs';
export * from './WiredTextarea';
export * from './WiredToggle';
export * from './WiredVideo';
export * from './WiredVideo';
6 changes: 5 additions & 1 deletion src/WiredFab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredFab as _WiredFab } from 'wired-elements/lib/wired-fab.js';

export const WiredFab = createComponent(React, 'wired-fab', _WiredFab);
export const WiredFab = createComponent({
react: React,
tagName: 'wired-fab',
elementClass: _WiredFab
});
6 changes: 5 additions & 1 deletion src/WiredIconButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredIconButton as _WiredIconButton } from 'wired-elements/lib/wired-icon-button.js';

export const WiredIconButton = createComponent(React, 'wired-icon-button', _WiredIconButton);
export const WiredIconButton = createComponent({
react: React,
tagName: 'wired-icon-button',
elementClass: _WiredIconButton
});
6 changes: 5 additions & 1 deletion src/WiredImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredImage as _WiredImage } from 'wired-elements/lib/wired-image.js';

export const WiredImage = createComponent(React, 'wired-image', _WiredImage);
export const WiredImage = createComponent({
react: React,
tagName: 'wired-image',
elementClass: _WiredImage
});
13 changes: 9 additions & 4 deletions src/WiredInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredInput as _WiredInput } from 'wired-elements/lib/wired-input.js';

export const WiredInput = createComponent(React, 'wired-input', _WiredInput, {
onChange: 'input',
onchange: 'input'
});
export const WiredInput = createComponent({
react: React,
tagName: 'wired-input',
elementClass: _WiredInput,
events: {
onChange: 'input',
onchange: 'input'
}
});
6 changes: 5 additions & 1 deletion src/WiredItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredItem as _WiredItem } from 'wired-elements/lib/wired-item.js';

export const WiredItem = createComponent(React, 'wired-item', _WiredItem);
export const WiredItem = createComponent({
react: React,
tagName: 'wired-item',
elementClass: _WiredItem
});
6 changes: 5 additions & 1 deletion src/WiredLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredLink as _WiredLink } from 'wired-elements/lib/wired-link.js';

export const WiredLink = createComponent(React, 'wired-link', _WiredLink);
export const WiredLink = createComponent({
react: React,
tagName: 'wired-link',
elementClass: _WiredLink
});
9 changes: 6 additions & 3 deletions src/WiredListbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredListbox as CE } from 'wired-elements/lib/wired-listbox.js';

export const WiredListbox = createComponent(React, 'wired-listbox', CE, {
onselected: 'selected'
});
export const WiredListbox = createComponent({
react: React,
tagName: 'wired-listbox',
elementClass: CE,
events: {onselected: 'selected'}
});
6 changes: 5 additions & 1 deletion src/WiredProgress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredProgress as CE } from 'wired-elements/lib/wired-progress.js';

export const WiredProgress = createComponent(React, 'wired-progress', CE);
export const WiredProgress = createComponent({
react: React,
tagName: 'wired-progress',
elementClass: CE
});
13 changes: 9 additions & 4 deletions src/WiredRadio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredRadio as CE } from 'wired-elements/lib/wired-radio.js';

export const WiredRadio = createComponent(React, 'wired-radio', CE, {
onchange: 'change',
onChange: 'change'
});
export const WiredRadio = createComponent({
react: React,
tagName: 'wired-radio',
elementClass: CE,
events: {
onchange: 'change',
onChange: 'change'
}
});
11 changes: 8 additions & 3 deletions src/WiredRadioGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredRadioGroup as CE } from 'wired-elements/lib/wired-radio-group.js';

export const WiredRadioGroup = createComponent(React, 'wired-radio-group', CE, {
onselected: 'selected'
});
export const WiredRadioGroup = createComponent({
react: React,
tagName: 'wired-radio-group',
elementClass: CE,
events: {
onselected: 'selected'
}
});
13 changes: 9 additions & 4 deletions src/WiredSearchInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredSearchInput as CE } from 'wired-elements/lib/wired-search-input.js';

export const WiredSearchInput = createComponent(React, 'wired-search-input', CE, {
onChange: 'input',
onchange: 'input'
});
export const WiredSearchInput = createComponent({
react: React,
tagName: 'wired-search-input',
elementClass: CE,
events: {
onChange: 'input',
onchange: 'input'
}
});
13 changes: 9 additions & 4 deletions src/WiredSlider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredSlider as CE } from 'wired-elements/lib/wired-slider.js';

export const WiredSlider = createComponent(React, 'wired-slider', CE, {
onchange: 'change',
onChange: 'change'
});
export const WiredSlider = createComponent({
react: React,
tagName: 'wired-slider',
elementClass: CE,
events: {
onchange: 'change',
onChange: 'change'
}
});
6 changes: 5 additions & 1 deletion src/WiredSpinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredSpinner as CE } from 'wired-elements/lib/wired-spinner.js';

export const WiredSpinner = createComponent(React, 'wired-spinner', CE);
export const WiredSpinner = createComponent({
react: React,
tagName: 'wired-spinner',
elementClass: CE
});
6 changes: 5 additions & 1 deletion src/WiredTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredTab as CE } from 'wired-elements/lib/wired-tab.js';

export const WiredTab = createComponent(React, 'wired-tab', CE);
export const WiredTab = createComponent({
react: React,
tagName: 'wired-tab',
elementClass: CE
});
6 changes: 5 additions & 1 deletion src/WiredTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredTabs as CE } from 'wired-elements/lib/wired-tabs.js';

export const WiredTabs = createComponent(React, 'wired-tabs', CE);
export const WiredTabs = createComponent({
react: React,
tagName: 'wired-tabs',
elementClass: CE
});
13 changes: 9 additions & 4 deletions src/WiredTextarea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredTextarea as CE } from 'wired-elements/lib/wired-textarea.js';

export const WiredTextarea = createComponent(React, 'wired-textarea', CE, {
onChange: 'input',
onchange: 'input'
});
export const WiredTextarea = createComponent({
react: React,
tagName: 'wired-textarea',
elementClass: CE,
events: {
onChange: 'input',
onchange: 'input'
}
});
13 changes: 9 additions & 4 deletions src/WiredToggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredToggle as CE } from 'wired-elements/lib/wired-toggle.js';

export const WiredToggle = createComponent(React, 'wired-toggle', CE, {
onchange: 'change',
onChange: 'change'
});
export const WiredToggle = createComponent({
react: React,
tagName: 'wired-toggle',
elementClass: CE,
events: {
onchange: 'change',
onChange: 'change'
}
});
6 changes: 5 additions & 1 deletion src/WiredVideo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import * as React from 'react';
import { createComponent } from '@lit-labs/react';
import { WiredVideo as CE } from 'wired-elements/lib/wired-video.js';

export const WiredVideo = createComponent(React, 'wired-video', CE);
export const WiredVideo = createComponent({
react: React,
tagName: 'wired-video',
elementClass: CE
});