File tree Expand file tree Collapse file tree 11 files changed +505
-663
lines changed
Expand file tree Collapse file tree 11 files changed +505
-663
lines changed Original file line number Diff line number Diff line change 2626 },
2727 "devDependencies" : {
2828 "@astrojs/check" : " ^0.9.4" ,
29- "@astrojs/starlight" : " ^0.28.6 " ,
30- "@astrojs/svelte" : " ^5.7.3 " ,
31- "astro" : " ^4.16.10 " ,
29+ "@astrojs/starlight" : " ^0.29.0 " ,
30+ "@astrojs/svelte" : " ^6.0.1 " ,
31+ "astro" : " ^4.16.13 " ,
3232 "astro-vtbot" : " ^1.10.6" ,
3333 "sharp" : " ^0.33.5" ,
3434 "starlight-package-managers" : " ^0.8.0" ,
Original file line number Diff line number Diff line change 3131 "check" : " svelte-check --tsconfig ./tsconfig.json"
3232 },
3333 "dependencies" : {
34- "es-toolkit" : " ^1.26.1 " ,
34+ "es-toolkit" : " ^1.27.0 " ,
3535 "fast-equals" : " ^5.0.1" ,
3636 "json-schema-merge-allof" : " ^0.8.1" ,
3737 "jsonpointer" : " ^5.0.1"
Original file line number Diff line number Diff line change 6262 "postcss" : " catalog:" ,
6363 "prettier" : " catalog:" ,
6464 "prettier-plugin-svelte" : " catalog:" ,
65- "lucide-svelte" : " ^0.454 .0" ,
65+ "lucide-svelte" : " ^0.457 .0" ,
6666 "svelte" : " catalog:" ,
6767 "svelte-check" : " catalog:" ,
6868 "testing" : " workspace:*" ,
Original file line number Diff line number Diff line change 7777 "@types/eslint" : " catalog:" ,
7878 "ajv" : " catalog:" ,
7979 "autoprefixer" : " catalog:" ,
80- "bits-ui" : " ^1.0.0-next.46 " ,
80+ "bits-ui" : " ^1.0.0-next.57 " ,
8181 "clsx" : " ^2.1.1" ,
8282 "eslint" : " catalog:" ,
8383 "eslint-config-prettier" : " catalog:" ,
8484 "eslint-plugin-svelte" : " catalog:" ,
8585 "globals" : " catalog:" ,
86- "lucide-svelte" : " ^0.454 .0" ,
86+ "lucide-svelte" : " ^0.457 .0" ,
8787 "postcss" : " catalog:" ,
8888 "prettier" : " catalog:" ,
8989 "prettier-plugin-svelte" : " catalog:" ,
9090 "svelte" : " catalog:" ,
9191 "svelte-check" : " catalog:" ,
9292 "svelte-radix" : " ^2.0.1" ,
9393 "tailwind-merge" : " ^2.5.4" ,
94- "tailwind-variants" : " ^0.2.1 " ,
94+ "tailwind-variants" : " ^0.3.0 " ,
9595 "tailwindcss" : " catalog:" ,
9696 "tailwindcss-animate" : " ^1.0.7" ,
9797 "typescript-eslint" : " catalog:" ,
Original file line number Diff line number Diff line change 77 let {
88 ref = $bindable (null ),
99 checked = $bindable (false ),
10+ indeterminate = $bindable (false ),
1011 class : className,
1112 ... restProps
1213 }: WithoutChildrenOrChild <CheckboxPrimitive .RootProps > = $props ();
1920 className
2021 )}
2122 bind:checked
23+ bind:indeterminate
2224 {...restProps }
2325>
24- {#snippet children ({ checked })}
26+ {#snippet children ({ checked , indeterminate })}
2527 <div class =" flex size-4 items-center justify-center text-current" >
26- {#if checked === " indeterminate" }
28+ {#if indeterminate }
2729 <Minus class =" size-3.5" />
2830 {:else }
2931 <Check class ={cn (" size-3.5" , ! checked && " text-transparent" )} />
3032 {/if }
3133 </div >
3234 {/ snippet }
33- </CheckboxPrimitive .Root >
35+ </CheckboxPrimitive .Root >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { Checkbox as CheckboxPrimitive , type WithoutChildrenOrChild } from " bits-ui" ;
3- import Check from " svelte-radix/Check. svelte" ;
4- import Minus from " svelte-radix/Minus. svelte" ;
3+ import Check from " lucide- svelte/icons/check " ;
4+ import Minus from " lucide- svelte/icons/minus " ;
55 import { cn } from " $lib/utils.js" ;
66
77 let {
88 ref = $bindable (null ),
99 class : className,
1010 checked = $bindable (false ),
11+ indeterminate = $bindable (false ),
1112 ... restProps
1213 }: WithoutChildrenOrChild <CheckboxPrimitive .RootProps > = $props ();
1314 </script >
1920 )}
2021 bind:checked
2122 bind:ref
23+ bind:indeterminate
2224 {...restProps }
2325>
24- {#snippet children ({ checked })}
25- <span class =" flex size-4 items-center justify-center text-current" >
26- {#if checked === " indeterminate" }
27- <Minus class =" size-3.5 " />
26+ {#snippet children ({ checked , indeterminate })}
27+ <span class =" flex items-center justify-center text-current" >
28+ {#if indeterminate }
29+ <Minus class =" size-4 " />
2830 {:else }
29- <Check class ={cn (" size-3.5 " , ! checked && " text-transparent" )} />
31+ <Check class ={cn (" size-4 " , ! checked && " text-transparent" )} />
3032 {/if }
3133 </span >
3234 {/ snippet }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2626 checked ={indexes .has (indexStr )}
2727 value ={indexStr }
2828 onCheckedChange ={(v ) => {
29- if (v === ' indeterminate' ) {
30- return ;
31- }
3229 mapped .value = v
3330 ? mapped .value .concat (indexStr )
3431 : mapped .value .filter ((index ) => index !== indexStr );
Original file line number Diff line number Diff line change 5757 "@playwright/test" : " catalog:" ,
5858 "@sjsf/ajv8-validator" : " workspace:*" ,
5959 "@sjsf/form" : " workspace:*" ,
60- "@skeletonlabs/skeleton" : " 3.0.0-next.5 " ,
60+ "@skeletonlabs/skeleton" : " 3.0.0-next.9 " ,
6161 "@sveltejs/adapter-static" : " catalog:" ,
6262 "@sveltejs/kit" : " catalog:" ,
6363 "@sveltejs/package" : " catalog:" ,
You can’t perform that action at this time.
0 commit comments