code7-leia 0.1.149 → 0.1.150

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.149",
2
+ "version": "0.1.150",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -17,7 +17,7 @@ const CustomSelect: React.FC<SelectProps> = ({ options, onSelect, placeholder })
17
17
  const [selectedValue, setSelectedValue] = useState<string | number>('');
18
18
 
19
19
  const handleSelectOption = (value: string | number) => {
20
- const selected = String(value); // Convertendo para string
20
+ const selected = String(value);
21
21
  setSelectedValue(selected);
22
22
  onSelect(selected);
23
23
  setIsOpen(false);
@@ -32,6 +32,7 @@ const CustomSelect: React.FC<SelectProps> = ({ options, onSelect, placeholder })
32
32
  {options.map(option => (
33
33
  <div
34
34
  key={option.value}
35
+ style={{ background: option.value === selectedValue ? '#a0b7f5' : 'none' }}
35
36
  className="option"
36
37
  onClick={() => handleSelectOption(option.value)}
37
38
  >
@@ -18,6 +18,7 @@ export const Container = styled.div`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: space-between;
21
+ font-size: 14px;
21
22
  }
22
23
 
23
24
  .options {
@@ -33,10 +34,13 @@ export const Container = styled.div`
33
34
  .option {
34
35
  padding: 12px;
35
36
  cursor: pointer;
36
- transition: background-color 0.3s;
37
+ transition: background-color 0.1s;
38
+ letter-spacing: 0.5px;
39
+ font-size: 14px;
37
40
 
38
41
  &:hover {
39
- background-color: #f0f0f0;
42
+ background-color: #6690ff;
43
+ color: white;
40
44
  }
41
45
  }
42
46
  }