Skip to content

Commit 9b7a3f0

Browse files
committed
feat: add minimal theme
1 parent 125e552 commit 9b7a3f0

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/utils/themableSwal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { SweetAlertTheme } from 'sweetalert2'
33
import Swal from 'sweetalert2'
44

55
import 'sweetalert2/themes/borderless.css'
6+
import 'sweetalert2/themes/minimal.css'
67

78
declare global {
89
interface Window {
@@ -33,6 +34,7 @@ export const ThemeSelector = () => {
3334
<option value="light">Default (light)</option>
3435
<option value="dark">Dark</option>
3536
<option value="auto">Auto</option>
37+
<option value="minimal">Minimal</option>
3638
<option value="borderless">Borderless</option>
3739
</select>
3840
</label>

yarn.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,9 +1480,9 @@ callsites@^3.0.0:
14801480
integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
14811481

14821482
caniuse-lite@^1.0.30001716:
1483-
version "1.0.30001716"
1484-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001716.tgz#39220dfbc58c85d9d4519e7090b656aa11ca4b85"
1485-
integrity sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw==
1483+
version "1.0.30001717"
1484+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001717.tgz#5d9fec5ce09796a1893013825510678928aca129"
1485+
integrity sha512-auPpttCq6BDEG8ZAuHJIplGw6GODhjw+/11e7IjpnYCxZcW/ONgPs0KVBJ0d1bY3e2+7PRe5RCLyP+PfwVgkYw==
14861486

14871487
chalk@^4.0.0:
14881488
version "4.1.2"
@@ -3278,9 +3278,9 @@ sweetalert2-react-content@^5.0.7:
32783278
integrity sha512-SBh41SdyHDY9NzwrIG6LACbClCMxIlEFP86tGVr/B4zGD4H2gGXB8o7UAJRc/RtBd/iQL9hIvuCAkrk0AgKEMA==
32793279

32803280
sweetalert2@^11.7.32:
3281-
version "11.20.0"
3282-
resolved "https://registry.yarnpkg.com/sweetalert2/-/sweetalert2-11.20.0.tgz#5da7e1791f0989adcc5c2e6a8fffa85dff359cfe"
3283-
integrity sha512-MuiRY4UcWvdOBg12WUWWdUAFH+njnx7Ot/ibzPRa9Tk2TXfZqGYK4Nlq5c/u9P1EKCgRkkNsMZuoB8SCvSrwgQ==
3281+
version "11.21.0"
3282+
resolved "https://registry.yarnpkg.com/sweetalert2/-/sweetalert2-11.21.0.tgz#afb4d9abd8d15446788671552f2b52e7eafdccbf"
3283+
integrity sha512-fiEK7SqRY/QD/wC2uqEHlfYGZ7qe2UcyQbJpbpj4YRVqplBgcI+euPZLZL+evLINcvbtXmL1SFUdZHKqBHGAAQ==
32843284

32853285
table@^6.9.0:
32863286
version "6.9.0"
@@ -3394,9 +3394,9 @@ vite-plugin-html-inject@^1.0.4:
33943394
integrity sha512-4DWANEcAw73H5JLWTAI4EvXdSyoGqGq/Is9fTRjpF+SJLor58LNdqB+YYnK3FOLwx6LMTAn4z1hkiRyc52lYLg==
33953395

33963396
vite@^6.0.0:
3397-
version "6.3.4"
3398-
resolved "https://registry.yarnpkg.com/vite/-/vite-6.3.4.tgz#d441a72c7cd9a93b719bb851250a4e6c119c9cff"
3399-
integrity sha512-BiReIiMS2fyFqbqNT/Qqt4CVITDU9M9vE+DKcVAsB+ZV0wvTKd+3hMbkpxz1b+NmEDMegpVbisKiAZOnvO92Sw==
3397+
version "6.3.5"
3398+
resolved "https://registry.yarnpkg.com/vite/-/vite-6.3.5.tgz#fec73879013c9c0128c8d284504c6d19410d12a3"
3399+
integrity sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==
34003400
dependencies:
34013401
esbuild "^0.25.0"
34023402
fdir "^6.4.4"
@@ -3460,6 +3460,6 @@ zod-to-json-schema@^3.24.1:
34603460
integrity sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==
34613461

34623462
zod@^3.23.8, zod@^3.24.2:
3463-
version "3.24.3"
3464-
resolved "https://registry.yarnpkg.com/zod/-/zod-3.24.3.tgz#1f40f750a05e477396da64438e0e1c0995dafd87"
3465-
integrity sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==
3463+
version "3.24.4"
3464+
resolved "https://registry.yarnpkg.com/zod/-/zod-3.24.4.tgz#e2e2cca5faaa012d76e527d0d36622e0a90c315f"
3465+
integrity sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg==

0 commit comments

Comments
 (0)