Skip to content

Commit

Permalink
Update parade, move all files to tsx (dojo#933)
Browse files Browse the repository at this point in the history
* update parade and parade config

* move all files to tsx

* fix some moves

* move back to index.ts for themes

* fix version
  • Loading branch information
matt-gadd authored and ericos committed Jan 3, 2020
1 parent d380604 commit 2864850
Show file tree
Hide file tree
Showing 103 changed files with 173 additions and 728 deletions.
878 changes: 157 additions & 721 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
"devDependencies": {
"@dojo/cli": "7.0.0-alpha.1",
"@dojo/cli-build-app": "7.0.0-alpha.4",
"@dojo/cli-build-widget": "7.0.0-alpha.2",
"@dojo/cli-build-theme": "7.0.0-alpha.1",
"@dojo/cli-build-widget": "7.0.0-alpha.2",
"@dojo/cli-test-intern": "7.0.0-alpha.3",
"@dojo/framework": "7.0.0-alpha.4",
"@dojo/parade": "0.0.1",
"@dojo/parade": "0.0.3",
"@dojo/scripts": "^4.0.2",
"@material/button": "2.1.1",
"@material/checkbox": "4.0.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions src/examples/src/config.ts → src/examples/src/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const tests = typeof testsContext !== 'undefined' ? testsContext : [];
export const config = {
themes: [dojoTheme],
tests,
readmePath: (widget: string) => `src/${widget}/README.md`,
widgetPath: (widget: string, filename: string) => `src/${widget}/${filename || 'index'}.tsx`,
examplePath: (widget: string, filename: string) =>
`src/examples/src/widgets/${widget}/${filename || 'index'}.tsx`,
widgets: {
'accordion-pane': {
examples: [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ registerSuite('Listbox', {
theme: {}
}),
expectedThirdOption({
css: <any>[css.option, null, css.disabledOption, null],
css: [css.option, null, css.disabledOption, null],
disabled: true,
label: 'Three',
theme: {}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/select/index.ts → src/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class Select<T = any> extends ThemedMixin(FocusMixin(WidgetBase))<SelectP
private _onNativeChange(event: Event) {
const { getOptionValue, options = [], onValue } = this.properties;
event.stopPropagation();
const value = (<HTMLInputElement>event.target).value;
const value = (event.target as HTMLInputElement).value;
const option = find(options, (option: T, index: number) => {
if (getOptionValue) {
return getOptionValue(option, index) === value;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 8 additions & 3 deletions src/tab-controller/index.ts → src/tab-controller/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,14 @@ export class TabController extends ThemedMixin(FocusMixin(WidgetBase))<

protected renderTabButtons(): DNode[] {
return this._tabs.map((tab, i) => {
const { closeable, disabled, key, label, theme, classes } = <TabProperties>(
tab.properties
);
const {
closeable,
disabled,
key,
label,
theme,
classes
} = tab.properties as TabProperties;

return w(
TabButton,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2864850

Please sign in to comment.