@mdguggenbichler/slugbase-core 0.0.23 → 0.0.24

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.
@@ -6,6 +6,8 @@ import { useToast } from '../ui/Toast';
6
6
  import { Save, Mail, Send } from 'lucide-react';
7
7
  import Button from '../ui/Button';
8
8
  import { PageLoadingSkeleton } from '../ui/PageLoadingSkeleton';
9
+ import { Switch } from '../ui/switch';
10
+ import { Label } from '../ui/label';
9
11
 
10
12
  export default function AdminSettings() {
11
13
  const { t } = useTranslation();
@@ -106,16 +108,14 @@ export default function AdminSettings() {
106
108
 
107
109
  <div className="space-y-4">
108
110
  <div className="flex items-center gap-3">
109
- <input
110
- type="checkbox"
111
+ <Switch
111
112
  id="smtp-enabled"
112
113
  checked={smtpSettings.enabled}
113
- onChange={(e) => setSmtpSettings({ ...smtpSettings, enabled: e.target.checked })}
114
- className="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"
114
+ onCheckedChange={(checked) => setSmtpSettings({ ...smtpSettings, enabled: checked })}
115
115
  />
116
- <label htmlFor="smtp-enabled" className="text-sm font-medium text-gray-900 dark:text-white">
116
+ <Label htmlFor="smtp-enabled" className="text-sm font-medium text-gray-900 dark:text-white cursor-pointer">
117
117
  {t('smtp.enabled')}
118
- </label>
118
+ </Label>
119
119
  </div>
120
120
 
121
121
  <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
@@ -212,16 +212,14 @@ export default function AdminSettings() {
212
212
  </div>
213
213
 
214
214
  <div className="flex items-center gap-3 pt-2">
215
- <input
216
- type="checkbox"
215
+ <Switch
217
216
  id="smtp-secure"
218
217
  checked={smtpSettings.secure}
219
- onChange={(e) => setSmtpSettings({ ...smtpSettings, secure: e.target.checked })}
220
- className="w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"
218
+ onCheckedChange={(checked) => setSmtpSettings({ ...smtpSettings, secure: checked })}
221
219
  />
222
- <label htmlFor="smtp-secure" className="text-sm font-medium text-gray-900 dark:text-white">
220
+ <Label htmlFor="smtp-secure" className="text-sm font-medium text-gray-900 dark:text-white cursor-pointer">
223
221
  {t('smtp.secure')}
224
- </label>
222
+ </Label>
225
223
  </div>
226
224
 
227
225
  <div className="flex items-center gap-4 pt-4 border-t border-gray-200 dark:border-gray-700">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdguggenbichler/slugbase-core",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "SlugBase core: backend and frontend entrypoints for self-hosted and cloud apps",
5
5
  "type": "module",
6
6
  "exports": {