Skip to content

Commit 7b16c52

Browse files
authored
Merge pull request #1732 from Infineon/1418-new-component-radio-group
New component: Radio button group
2 parents e2ddc34 + eb1e878 commit 7b16c52

File tree

30 files changed

+1536
-874
lines changed

30 files changed

+1536
-874
lines changed

examples/stencil-components/vanilla-cdn/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,15 @@ <h2>Radio Button</h2>
380380
<ifx-radio-button error="false" disabled="false" size="s" name="fruit" value="orange">Orange</ifx-radio-button>
381381
<ifx-button type="submit">Submit</ifx-button>
382382
</form>
383+
<br />
383384

385+
<h2>Radio Button Group</h2>
386+
<ifx-radio-button-group alignment="vertical" show-group-label="true" group-label-text="Group Label" show-caption="true" caption-text="Caption text, description, error notification" show-caption-icon="true">
387+
<ifx-radio-button value="0" disabled="false" checked="false" size="m" error="false">Option 0</ifx-radio-button>
388+
<ifx-radio-button value="1" disabled="false" checked="false" size="m" error="false">Option 1</ifx-radio-button>
389+
<ifx-radio-button value="2" disabled="false" checked="false" size="m" error="false">Option 2</ifx-radio-button>
390+
<ifx-radio-button value="3" disabled="false" checked="false" size="m" error="false">Option 3</ifx-radio-button>
391+
</ifx-radio-button-group>
384392
<br />
385393

386394
<h2>Spinner</h2>

examples/wrapper-components/react-vite-js/package-lock.json

Lines changed: 194 additions & 194 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/wrapper-components/react-vite-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test:local": "run-p preview:link watch:library"
1919
},
2020
"dependencies": {
21-
"@infineon/infineon-design-system-react": "32.1.2--canary.1731.3fd7f9c0f096716fb3c31291a3ab92da9790285b.0",
21+
"@infineon/infineon-design-system-react": "32.1.3--canary.1732.d3813f209f738a14784b9c29ce072ceb36068e2f.0",
2222
"path": "^0.12.7",
2323
"react": "^18.3.1",
2424
"react-dom": "^18.3.1"

examples/wrapper-components/react-vite-js/src/App.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ProgressBar from './components/ProgressBar/ProgressBar';
66
import SearchBar from './components/SearchBar/SearchBar';
77
import Accordion from './components/Accordion/Accordion';
88
import RadioButton from './components/RadioButton/RadioButton';
9+
import RadioButtonGroup from './components/RadioButtonGroup/RadioButtonGroup';
910
import Sidebar from './components/Sidebar/Sidebar'
1011
import Notification from './components/Notification/Notification'
1112
import NumberIndicator from './components/NumberIndicator/NumberIndicator'
@@ -136,6 +137,10 @@ function App() {
136137
<RadioButton />
137138
<br />
138139

140+
<h2>Radio Button Group</h2>
141+
<RadioButtonGroup />
142+
<br />
143+
139144

140145
<h2>SingleSelect</h2>
141146
<SingleSelect />
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { IfxRadioButtonGroup, IfxRadioButton } from '@infineon/infineon-design-system-react';
2+
3+
function RadioButtonGroup() {
4+
5+
return (
6+
<div>
7+
<IfxRadioButtonGroup alignment="vertical" show-group-label="true" group-label-text="Group Label" show-caption="true" caption-text="Caption text, description, error notification" show-caption-icon="true">
8+
<IfxRadioButton value="0" disabled="false" checked="false" size="m" error="false">Option 0</IfxRadioButton>
9+
<IfxRadioButton value="1" disabled="false" checked="false" size="m" error="false">Option 1</IfxRadioButton>
10+
<IfxRadioButton value="2" disabled="false" checked="false" size="m" error="false">Option 2</IfxRadioButton>
11+
<IfxRadioButton value="3" disabled="false" checked="false" size="m" error="false">Option 3</IfxRadioButton>
12+
</IfxRadioButtonGroup>
13+
</div>
14+
);
15+
}
16+
17+
export default RadioButtonGroup;

examples/wrapper-components/vue-javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test:local": "run-p preview:link watch:library"
1616
},
1717
"dependencies": {
18-
"@infineon/infineon-design-system-vue": "32.1.2--canary.1731.3fd7f9c0f096716fb3c31291a3ab92da9790285b.0",
18+
"@infineon/infineon-design-system-vue": "32.1.3--canary.1732.d3813f209f738a14784b9c29ce072ceb36068e2f.0",
1919
"@vitejs/plugin-vue": "^4.0.0",
2020
"@vitejs/plugin-vue-jsx": "^4.0.0",
2121
"vite": "^5.0.12",

examples/wrapper-components/vue-javascript/src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<Pagination />
2525
<ProgressBar />
2626
<RadioButton />
27+
<RadioButtonGroup />
2728
<SearchField />
2829
<SearchBar />
2930
<SegmentedControl />
@@ -54,6 +55,7 @@ import CheckboxGroup from './components/CheckboxGroup.vue'
5455
import Chip from './components/Chip.vue'
5556
import ProgressBar from './components/ProgressBar.vue'
5657
import RadioButton from './components/RadioButton.vue'
58+
import RadioButtonGroup from './components/RadioButtonGroup.vue'
5759
import TextField from './components/TextField.vue'
5860
import Tag from './components/Tag.vue'
5961
import Spinner from './components/Spinner.vue'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
<template>
3+
<div>
4+
<h2>Radio Button Group</h2>
5+
<ifx-radio-button-group alignment="vertical" show-group-label="false" group-label-text="Group Label" show-caption="false" caption-text="Caption text, description, error notification" show-caption-icon="false">
6+
<ifx-radio-button value="0" disabled="false" checked="false" size="m" error="false">Option 0</ifx-radio-button>
7+
<ifx-radio-button value="1" size="m">Option 1</ifx-radio-button>
8+
<ifx-radio-button value="2" size="m">Option 2</ifx-radio-button>
9+
</ifx-radio-button-group>
10+
<br />
11+
<br />
12+
</div>
13+
</template>
14+
15+
<script setup>
16+
17+
18+
</script>

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "32.1.2--canary.1731.3fd7f9c0f096716fb3c31291a3ab92da9790285b.0",
3+
"version": "32.1.3--canary.1732.d3813f209f738a14784b9c29ce072ceb36068e2f.0",
44
"command": {
55
"publish": {
66
"verifyAccess": false

0 commit comments

Comments
 (0)