oneslash-design-system 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ interface MenuItemProps {
12
12
  userImgUrl?: string;
13
13
  label: string;
14
14
  isSelected?: boolean;
15
- onClick: any;
15
+ onClick?: any;
16
16
  }
17
17
 
18
18
  export default function MenuItem({
@@ -33,19 +33,14 @@ export default function RadioGroup({
33
33
  <div
34
34
  className={`relative flex justify-center items-center w-4 h-4 rounded-full border-2
35
35
  ${selectedValue === option.value
36
- ? 'border-2 border-light-text-primary dark:border-dark-text-primary'
37
- : 'border-2 border-light-text-secondary dark:border-dark-text-secondary'}
36
+ ? 'border-light-text-primary dark:border-dark-text-primary'
37
+ : 'border-light-text-secondary dark:border-dark-text-secondary'}
38
38
  `}
39
39
  >
40
40
  {/* Inner circle */}
41
- <div
42
- className={`absolute w-2 h-2 rounded-full
43
- ${selectedValue === option.value
44
- ? 'bg-light-text-primary dark:bg-dark-text-primary'
45
- : 'bg-transparent'}
46
- `}
47
- />
48
-
41
+ {selectedValue === option.value && (
42
+ <div className='absolute w-2 h-2 rounded-full bg-light-text-primary dark:bg-dark-text-primary'/>
43
+ )}
49
44
  </div>
50
45
  <span className="ml-2 text-body1">{option.label}</span>
51
46
  </label>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oneslash-design-system",
3
3
  "description": "A design system for the Oneslash projects",
4
- "version": "1.1.8",
4
+ "version": "1.1.9",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",