oneslash-design-system 1.1.7 → 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.
@@ -49,8 +49,8 @@ export default function IconButton({
49
49
 
50
50
  // padding, corner
51
51
  const baseClasses = variant === 'contained'
52
- ? 'p-2 rounded-[8px] leading-none '
53
- : 'p-2 rounded-[8px] leading-none ';
52
+ ? 'p-1 rounded-[8px] leading-none '
53
+ : 'p-1 rounded-[8px] leading-none ';
54
54
 
55
55
  // bg color
56
56
  const bgColor = variant === 'contained'
@@ -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({
@@ -76,7 +76,7 @@ export default function Modal({
76
76
  {children}
77
77
  </div>
78
78
  {actions && (
79
- <div className='pt-6 border-t border-light-misc-divider dark:border-dark-misc-divider'>
79
+ <div className='pt-6'>
80
80
  <div className="flex justify-between" >
81
81
  {actions}
82
82
  </div>
@@ -10,7 +10,6 @@ interface RadioGroupProps {
10
10
  options: RadioOption[];
11
11
  selectedValue: string;
12
12
  onChange: (value: string) => void;
13
- name: string;
14
13
  direction?: 'horizontal' | 'vertical';
15
14
  }
16
15
 
@@ -18,45 +17,30 @@ export default function RadioGroup({
18
17
  options,
19
18
  selectedValue,
20
19
  onChange,
21
- name,
22
20
  direction = 'vertical',
23
21
  }: RadioGroupProps) {
24
22
  return (
25
23
  <div
26
- className={`flex ${
27
- direction === 'horizontal' ? 'space-x-4' : 'flex-col space-y-2'
28
- }`}
24
+ className={`flex ${ direction === 'horizontal' ? 'space-x-4' : 'flex-col space-y-2' }`}
29
25
  >
30
26
  {options.map((option) => (
31
27
  <label
32
28
  key={option.value}
33
29
  className="flex items-center cursor-pointer"
30
+ onClick={() => onChange(option.value)}
34
31
  >
32
+ {/* outer circle */}
35
33
  <div
36
- onClick={() => onChange(option.value)}
37
- className="relative flex items-center justify-center w-6 h-6 group"
34
+ className={`relative flex justify-center items-center w-4 h-4 rounded-full border-2
35
+ ${selectedValue === option.value
36
+ ? 'border-light-text-primary dark:border-dark-text-primary'
37
+ : 'border-light-text-secondary dark:border-dark-text-secondary'}
38
+ `}
38
39
  >
39
- {/* Hover background circle */}
40
- <div
41
- className={`absolute w-6 h-6 rounded-full transition-all
42
- hover:bg-light-action-hovered dark:group-hover:bg-dark-action-hovered
43
- bg-transparent group-hover:w-7 group-hover:h-7`}
44
- ></div>
45
-
46
- {/* Outer circle */}
47
- <div
48
- className={`relative z-10 w-4 h-4 border-2 rounded-full transition-colors
49
- ${selectedValue === option.value ? 'border-light-text-primary dark:border-dark-text-primary' : 'border-light-text-secondary dark:border-dark-text-secondary'}
50
- `}
51
- >
52
-
53
- {/* Inner circle when selected */}
54
- {selectedValue === option.value && (
55
- <div
56
- className="w-2 h-2 bg-light-text-primary dark:bg-dark-text-primary rounded-full absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
57
- />
40
+ {/* Inner circle */}
41
+ {selectedValue === option.value && (
42
+ <div className='absolute w-2 h-2 rounded-full bg-light-text-primary dark:bg-dark-text-primary'/>
58
43
  )}
59
- </div>
60
44
  </div>
61
45
  <span className="ml-2 text-body1">{option.label}</span>
62
46
  </label>
@@ -64,10 +64,10 @@ export default function Tab({
64
64
  return (
65
65
  <div
66
66
  className={`
67
- flex items-center space-x-2 p-2 rounded-[8px] cursor-pointer justify-start
67
+ flex items-center space-x-2 p-1 rounded-[8px] cursor-pointer justify-start
68
68
  ${isSelected
69
- ? 'bg-light-primary-main dark:bg-dark-primary-main text-light-text-contrast dark:text-dark-text-contrast'
70
- : 'bg-light-action-selected dark:bg-dark-action-selected hover:bg-light-background-default dark:hover:bg-dark-action-hover'}
69
+ ? 'bg-light-primary-dark dark:bg-dark-primary-dark text-light-text-contrast dark:text-dark-text-contrast'
70
+ : 'bg-transparent dark:bg-transparent hover:bg-light-background-accent200 dark:hover:bg-dark-background-accent200'}
71
71
  `}
72
72
  onClick={handleClick}
73
73
  >
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.7",
4
+ "version": "1.1.9",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -3,8 +3,6 @@ const designTokens = require('./designTokens');
3
3
  module.exports = {
4
4
  darkMode: 'class',
5
5
  content: [
6
- "./src/**/*.{js,jsx,ts,tsx}",
7
- "./dist/**/*.{html,js}",
8
6
  "./components/**/*.{js,ts,jsx,tsx}",
9
7
  ],
10
8
  theme: {