diff --git a/examples/wrapper-components/react-javascript/src/App.js b/examples/wrapper-components/react-javascript/src/App.js index c3083c0977..ff180c3490 100644 --- a/examples/wrapper-components/react-javascript/src/App.js +++ b/examples/wrapper-components/react-javascript/src/App.js @@ -1,14 +1,16 @@ import './App.css'; import Link from './components/Link/Link'; -import SearchInput from './components/SearchInput/SearchInput'; +import SearchField from './components/SearchField/SearchField'; import Spinner from './components/Spinner/Spinner'; import NumberIndicator from './components/NumberIndicator/NumberIndicator'; function App() { return (
+

Stencil Framework integration - React + TS

+

Search Field

- +

Spinner

diff --git a/examples/wrapper-components/react-javascript/src/components/SearchBar/SearchBar.js b/examples/wrapper-components/react-javascript/src/components/SearchBar/SearchBar.js index f9f666d11d..2cc7b52c24 100644 --- a/examples/wrapper-components/react-javascript/src/components/SearchBar/SearchBar.js +++ b/examples/wrapper-components/react-javascript/src/components/SearchBar/SearchBar.js @@ -3,7 +3,7 @@ import { IfxSearchBar } from '@infineon/infineon-design-system-react'; function SearchBar() { const handleSearch = (event) => { - console.log("handling search: ", event.detail?.detail) + console.log("handling search: ", event.detail) }; return (
diff --git a/examples/wrapper-components/react-javascript/src/components/SearchField/SearchField.js b/examples/wrapper-components/react-javascript/src/components/SearchField/SearchField.js new file mode 100644 index 0000000000..f2cb803a98 --- /dev/null +++ b/examples/wrapper-components/react-javascript/src/components/SearchField/SearchField.js @@ -0,0 +1,18 @@ +import React from 'react'; +import { IfxSearchField } from '@infineon/infineon-design-system-react'; + +function SearchField() { + const handleSearch = (event) => { + console.log("handling input: ", event.detail) + }; + + return ( +
+ +
+ ) +} + +export default SearchField; + + diff --git a/examples/wrapper-components/react-javascript/src/components/SearchInput/SearchInput.js b/examples/wrapper-components/react-javascript/src/components/SearchInput/SearchInput.js deleted file mode 100644 index d68a4cdec7..0000000000 --- a/examples/wrapper-components/react-javascript/src/components/SearchInput/SearchInput.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import { IfxIcon, IfxSearchInput } from '@infineon/infineon-design-system-react'; - -function SearchInput() { - const handleSearch = (event) => { - console.log("handling input: ", event.detail?.detail) - }; - - return ( -
- -
- ) -} - -export default SearchInput; - - diff --git a/examples/wrapper-components/react-typescript/src/App.tsx b/examples/wrapper-components/react-typescript/src/App.tsx index 60bdb4766b..398ccca0ee 100644 --- a/examples/wrapper-components/react-typescript/src/App.tsx +++ b/examples/wrapper-components/react-typescript/src/App.tsx @@ -8,11 +8,11 @@ import SearchBar from './components/SearchBar/SearchBar'; import Accordion from './components/Accordion/Accordion'; import RadioButton from './components/RadioButton/RadioButton'; -import Spinner from './Components/Spinner/Spinner' +import Spinner from './components/Spinner' import NumberIndicator from './components/NumberIndicator/NumberIndicator' -import SearchInput from './components/SearchInput/SearchInput' +import SearchField from './components/SearchField/SearchField' function App() { @@ -56,7 +56,7 @@ function App() {

Search Field

- +

Search Bar

diff --git a/examples/wrapper-components/react-typescript/src/components/SearchBar/SearchBar.tsx b/examples/wrapper-components/react-typescript/src/components/SearchBar/SearchBar.tsx index feddf5e8a5..cfdd3993f7 100644 --- a/examples/wrapper-components/react-typescript/src/components/SearchBar/SearchBar.tsx +++ b/examples/wrapper-components/react-typescript/src/components/SearchBar/SearchBar.tsx @@ -2,7 +2,7 @@ import { IfxSearchBar } from '@infineon/infineon-design-system-react'; function SearchBar() { const handleSearch = (event: CustomEvent) => { - console.log("handling search: ", event.detail?.detail) + console.log("handling search: ", event.detail) }; return (
diff --git a/examples/wrapper-components/react-typescript/src/components/SearchField/SearchField.tsx b/examples/wrapper-components/react-typescript/src/components/SearchField/SearchField.tsx new file mode 100644 index 0000000000..9c242fa261 --- /dev/null +++ b/examples/wrapper-components/react-typescript/src/components/SearchField/SearchField.tsx @@ -0,0 +1,17 @@ +import { IfxSearchField } from '@infineon/infineon-design-system-react'; + +function SearchField() { + const handleSearch = (event: CustomEvent) => { + console.log("handling input: ", event.detail) + }; + + return ( +
+ +
+ ) +} + +export default SearchField; + + diff --git a/examples/wrapper-components/react-typescript/src/components/SearchInput/SearchInput.tsx b/examples/wrapper-components/react-typescript/src/components/SearchInput/SearchInput.tsx deleted file mode 100644 index afebd68255..0000000000 --- a/examples/wrapper-components/react-typescript/src/components/SearchInput/SearchInput.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { IfxIcon, IfxSearchInput } from '@infineon/infineon-design-system-react'; - -function SearchInput() { - const handleSearch = (event: CustomEvent) => { - console.log("handling input: ", event.detail?.detail) - }; - - return ( -
- -
- ) -} - -export default SearchInput; - - diff --git a/examples/wrapper-components/react-typescript/src/Components/Spinner/Spinner.tsx b/examples/wrapper-components/react-typescript/src/components/Spinner.tsx similarity index 100% rename from examples/wrapper-components/react-typescript/src/Components/Spinner/Spinner.tsx rename to examples/wrapper-components/react-typescript/src/components/Spinner.tsx diff --git a/examples/wrapper-components/vue-javascript/src/App.vue b/examples/wrapper-components/vue-javascript/src/App.vue index 84a0ca956d..0178af2a75 100644 --- a/examples/wrapper-components/vue-javascript/src/App.vue +++ b/examples/wrapper-components/vue-javascript/src/App.vue @@ -1,6 +1,5 @@