oneslash-design-system 1.1.9 → 1.1.10
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.
package/components/checkBox.tsx
CHANGED
|
@@ -37,7 +37,7 @@ export default function Checkbox({
|
|
|
37
37
|
<div
|
|
38
38
|
className={`relative z-10 w-4 h-4 border-2 rounded ${
|
|
39
39
|
isChecked
|
|
40
|
-
? 'bg-light-
|
|
40
|
+
? 'bg-light-text-primary dark:bg-dark-text-primary border-none'
|
|
41
41
|
: 'border-light-text-secondary dark:border-dark-text-secondary'
|
|
42
42
|
} flex items-center justify-center transition-colors`}
|
|
43
43
|
>
|
|
@@ -54,7 +54,7 @@ export default function Checkbox({
|
|
|
54
54
|
)}
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
57
|
-
{label && <span className="ml-2">{label}</span>}
|
|
57
|
+
{label && <span className="ml-2 text-body1 text-light-text-primary dark:text-dark-text-primary">{label}</span>}
|
|
58
58
|
</label>
|
|
59
59
|
);
|
|
60
60
|
}
|
|
@@ -93,7 +93,7 @@ export default function IconButton({
|
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
95
|
<button
|
|
96
|
-
className={`${baseClasses} ${bgColor} ${iconColor} ${bgColorHover} ${stateClasses}
|
|
96
|
+
className={`${baseClasses} ${bgColor} ${iconColor} ${bgColorHover} ${stateClasses} `}
|
|
97
97
|
disabled={state === 'disabled'}
|
|
98
98
|
onMouseEnter={() => setIsHovered(true)}
|
|
99
99
|
onMouseLeave={() => setIsHovered(false)}
|
package/components/menuItem.tsx
CHANGED
|
@@ -56,7 +56,7 @@ export default function MenuItem({
|
|
|
56
56
|
className={`
|
|
57
57
|
flex items-center space-x-2 p-2 rounded-[8px] cursor-pointer justify-start
|
|
58
58
|
${isSelected
|
|
59
|
-
? 'bg-light-
|
|
59
|
+
? 'bg-light-background-accent200 dark:bg-dark-background-accent200 hover:bg-light-background-accent300 dark:hover:bg-dark-background-accent300'
|
|
60
60
|
: 'hover:bg-light-background-accent100 hover:dark:bg-dark-background-accent100'}
|
|
61
61
|
`}
|
|
62
62
|
style={{ width: '100%' }}
|
|
@@ -70,7 +70,7 @@ export default function MenuItem({
|
|
|
70
70
|
)}
|
|
71
71
|
|
|
72
72
|
{/* label */}
|
|
73
|
-
<span className="whitespace-nowrap text-body1 px-2">
|
|
73
|
+
<span className="whitespace-nowrap text-body1 px-2 text-light-text-primary dark:text-dark-text-primary">
|
|
74
74
|
{label}
|
|
75
75
|
</span>
|
|
76
76
|
|
|
@@ -42,7 +42,7 @@ export default function RadioGroup({
|
|
|
42
42
|
<div className='absolute w-2 h-2 rounded-full bg-light-text-primary dark:bg-dark-text-primary'/>
|
|
43
43
|
)}
|
|
44
44
|
</div>
|
|
45
|
-
<span className="ml-2 text-body1">{option.label}</span>
|
|
45
|
+
<span className="ml-2 text-body1 text-light-text-primary dark:text-dark-text-primary">{option.label}</span>
|
|
46
46
|
</label>
|
|
47
47
|
))}
|
|
48
48
|
</div>
|
package/components/tab.tsx
CHANGED
|
@@ -64,7 +64,7 @@ export default function Tab({
|
|
|
64
64
|
return (
|
|
65
65
|
<div
|
|
66
66
|
className={`
|
|
67
|
-
flex items-center space-x-
|
|
67
|
+
flex items-center space-x-1 p-1 rounded-[8px] cursor-pointer justify-start
|
|
68
68
|
${isSelected
|
|
69
69
|
? 'bg-light-primary-dark dark:bg-dark-primary-dark text-light-text-contrast dark:text-dark-text-contrast'
|
|
70
70
|
: 'bg-transparent dark:bg-transparent hover:bg-light-background-accent200 dark:hover:bg-dark-background-accent200'}
|