@snapdragonsnursery/react-components 1.0.1 → 1.0.2

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": "@snapdragonsnursery/react-components",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -59,17 +59,18 @@ function ThemeToggle({ theme, setTheme }) {
59
59
  };
60
60
 
61
61
  return (
62
- <div className="flex justify-center items-center bg-gray-200 dark:bg-gray-700 rounded-full p-1.5 w-full">
62
+ <div className="flex justify-center items-center bg-gray-200 dark:bg-gray-700 rounded-full p-2 w-full gap-2">
63
63
  {options.map((opt) => (
64
64
  <button
65
65
  key={opt.value}
66
66
  onClick={() => handleThemeChange(opt.value)}
67
- className={`flex-1 flex items-center justify-center h-10 rounded-full transition-all duration-200 focus:outline-none
67
+ className={`flex-1 flex items-center justify-center h-12 min-w-[44px] rounded-full transition-all duration-200 focus:outline-none mx-1
68
68
  ${
69
69
  theme === opt.value
70
70
  ? "bg-white dark:bg-gray-900 shadow text-blue-600 dark:text-yellow-400"
71
71
  : "bg-transparent text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600"
72
72
  }`}
73
+ style={{ padding: "0 12px" }}
73
74
  title={opt.label + " mode"}
74
75
  aria-pressed={theme === opt.value}
75
76
  >