neogestify-ui-components 1.2.10 → 1.2.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "neogestify-ui-components",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "Biblioteca de componentes UI reutilizables con React, Tailwind y SweetAlert",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -30,13 +30,13 @@ export const Select: FC<SelectProps> = ({
30
30
  const selectId = id || `select-${Math.random().toString(36).substring(2, 9)}`;
31
31
 
32
32
  const getVariantClasses = () => {
33
- const baseClasses = 'w-full bg-white dark:bg-gray-700 border rounded-lg text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed transition-colors';
33
+ const baseClasses = 'appearance-none relative block w-full px-3 py-2 border placeholder-gray-500 dark:placeholder-gray-400 text-gray-900 dark:text-white bg-white dark:bg-gray-800 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 dark:focus:ring-indigo-400 focus:border-indigo-500 focus:z-10 sm:text-sm disabled:opacity-50 disabled:cursor-not-allowed transition-colors duration-200';
34
34
 
35
35
  if (variant === 'small') {
36
- return `${baseClasses} px-2.5 py-1.5 text-sm border-gray-300 dark:border-gray-600`;
36
+ return `${baseClasses.replace('px-3 py-2', 'px-2.5 py-1.5 text-sm')} border-gray-300 dark:border-gray-600`;
37
37
  }
38
38
 
39
- return `${baseClasses} px-3 py-2 border-gray-300 dark:border-gray-600 ${error ? 'border-red-300 dark:border-red-600 focus:ring-red-500' : ''}`;
39
+ return `${baseClasses} border-gray-300 dark:border-gray-600 ${error ? 'border-red-300 dark:border-red-600 focus:ring-red-500 dark:focus:ring-red-400 focus:border-red-500' : ''}`;
40
40
  };
41
41
 
42
42
  const getOptionClasses = (option: Option) => {
@@ -48,7 +48,7 @@ export const Select: FC<SelectProps> = ({
48
48
  return (
49
49
  <div className="space-y-1 w-full">
50
50
  {label && typeof label === 'string' ? (
51
- <label htmlFor={selectId} className="block text-xs font-normal text-gray-700 dark:text-gray-300">
51
+ <label htmlFor={selectId} className="block text-sm font-medium text-gray-700 dark:text-gray-300">
52
52
  {label}
53
53
  </label>
54
54
  ) : (
@@ -73,7 +73,7 @@ export const Select: FC<SelectProps> = ({
73
73
  ))}
74
74
  </select>
75
75
  {helperText && (
76
- <p className={`mt-1 text-sm ${error ? 'text-red-600 dark:text-red-400' : 'text-gray-600 dark:text-gray-400'}`}>
76
+ <p className={`text-sm ${error ? 'text-red-600 dark:text-red-400' : 'text-gray-500 dark:text-gray-400'}`}>
77
77
  {helperText}
78
78
  </p>
79
79
  )}