This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use external dep for elem2react (#258)
- Loading branch information
Showing
13 changed files
with
40 additions
and
215 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import CoreDatepicker from './core-datepicker.js' | ||
import { elementToReact } from '../utils.js' | ||
import customElementToReact from '@nrk/custom-element-to-react' | ||
|
||
export default elementToReact(CoreDatepicker, 'datepicker.change', 'datepicker.click.day', 'disabled', 'months', 'days') | ||
export default customElementToReact(CoreDatepicker, { | ||
props: ['disabled', 'months', 'days'], | ||
customEvents: ['datepicker.change', 'datepicker.click.day'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import CoreDialog from './core-dialog.js' | ||
import { elementToReact } from '../utils.js' | ||
import customElementToReact from '@nrk/custom-element-to-react' | ||
|
||
export default elementToReact(CoreDialog, 'dialog.toggle') | ||
export default customElementToReact(CoreDialog, { | ||
customEvents: ['dialog.toggle'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import CoreProgress from './core-progress.js' | ||
import { elementToReact } from '../utils.js' | ||
import customElementToReact from '@nrk/custom-element-to-react' | ||
|
||
export default elementToReact(CoreProgress, 'change') | ||
export default customElementToReact(CoreProgress, { | ||
customEvents: ['change'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import CoreScroll from './core-scroll.js' | ||
import { elementToReact } from '../utils.js' | ||
import customElementToReact from '@nrk/custom-element-to-react' | ||
|
||
export default elementToReact(CoreScroll, 'scroll.change') | ||
export default customElementToReact(CoreScroll, { | ||
customEvents: ['scroll.change'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import CoreSuggest from './core-suggest.js' | ||
import { elementToReact } from '../utils.js' | ||
import customElementToReact from '@nrk/custom-element-to-react' | ||
|
||
export default elementToReact(CoreSuggest, 'suggest.filter', 'suggest.select', 'suggest.ajax', 'suggest.ajax.beforeSend') | ||
export default customElementToReact(CoreSuggest, { | ||
customEvents: ['suggest.filter', 'suggest.select', 'suggest.ajax', 'suggest.ajax.beforeSend'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import CoreTabs from './core-tabs.js' | ||
import { elementToReact } from '../utils.js' | ||
import customElementToReact from '@nrk/custom-element-to-react' | ||
|
||
export default elementToReact(CoreTabs, 'tab', 'tabs.toggle') | ||
export default customElementToReact(CoreTabs, { | ||
props: ['tab'], | ||
customEvents: ['tabs.toggle'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import CoreToggle from './core-toggle.js' | ||
import { elementToReact } from '../utils.js' | ||
import customElementToReact from '@nrk/custom-element-to-react' | ||
|
||
export default elementToReact(CoreToggle, 'toggle', 'toggle.select') | ||
export default customElementToReact(CoreToggle, { | ||
customEvents: ['toggle', 'toggle.select'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters