Skip to content

Commit

Permalink
Merge pull request #338 from iCHEF/feature/radio-svg-component
Browse files Browse the repository at this point in the history
[RadioSelectList] 加入 radio 相關的 svg 檔案及元件
  • Loading branch information
benny0642 authored May 3, 2022
2 parents 5f86132 + cdfb6d4 commit 15597c2
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 6 deletions.
17 changes: 17 additions & 0 deletions packages/core/src/icons/components/RadioEmpty.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import * as React from 'react';
export default function SvgRadioEmpty(props) {
return (
<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" {...props}>
<rect
x={7}
y={7}
width={18}
height={18}
rx={9}
stroke="currentColor"
strokeWidth={2}
fill="none"
/>
</svg>
);
}
25 changes: 25 additions & 0 deletions packages/core/src/icons/components/RadioSelected.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import * as React from 'react';
export default function SvgRadioSelected(props) {
return (
<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" {...props}>
<rect
x={7}
y={7}
width={18}
height={18}
rx={9}
stroke="currentColor"
strokeWidth={2}
fill="none"
/>
<rect
x={11.5}
y={11.5}
width={9}
height={9}
rx={4.5}
stroke="currentColor"
/>
</svg>
);
}
16 changes: 10 additions & 6 deletions packages/core/src/icons/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import AddMultiItems from './AddMultiItems';
import Add from './Add';
import Announce from './Announce';
import Cash from './Cash';
import CheckboxEmpty from './CheckboxEmpty';
import CheckboxHalf from './CheckboxHalf';
import CheckboxSelected from './CheckboxSelected';
import ClearItem from './ClearItem';
import CopyLink from './CopyLink';
import Copypaste from './Copypaste';
Expand Down Expand Up @@ -62,9 +65,8 @@ import PrevPage from './PrevPage';
import Prev from './Prev';
import Printer from './Printer';
import Question from './Question';
import CheckboxEmpty from './CheckboxEmpty';
import CheckboxHalf from './CheckboxHalf';
import CheckboxSelected from './CheckboxSelected';
import RadioEmpty from './RadioEmpty';
import RadioSelected from './RadioSelected';
import Refresh from './Refresh';
import RemoveElement from './RemoveElement';
import Retry from './Retry';
Expand All @@ -85,6 +87,9 @@ export default {
add: Add,
announce: Announce,
cash: Cash,
'checkbox-empty': CheckboxEmpty,
'checkbox-half': CheckboxHalf,
'checkbox-selected': CheckboxSelected,
'clear-item': ClearItem,
'copy-link': CopyLink,
copypaste: Copypaste,
Expand Down Expand Up @@ -143,9 +148,8 @@ export default {
prev: Prev,
printer: Printer,
question: Question,
'checkbox-empty': CheckboxEmpty,
'checkbox-half': CheckboxHalf,
'checkbox-selected': CheckboxSelected,
'radio-empty': RadioEmpty,
'radio-selected': RadioSelected,
refresh: Refresh,
'remove-element': RemoveElement,
retry: Retry,
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/icons/svg/radio-empty.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/core/src/icons/svg/radio-selected.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15597c2

Please sign in to comment.