@webamoki/web-svelte 0.5.21 → 0.5.22
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,7 +6,7 @@
|
|
|
6
6
|
getLabel: (item: I) => string;
|
|
7
7
|
getValue: (item: I) => V;
|
|
8
8
|
vertical?: boolean;
|
|
9
|
-
buttonContent?: Snippet<[label: string]>;
|
|
9
|
+
buttonContent?: Snippet<[label: string, item: I]>;
|
|
10
10
|
}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
data-state={isActive(item) ? 'active' : 'inactive'}
|
|
58
58
|
class="cursor-pointer rounded-lg bg-transparent text-muted-foreground hover:text-foreground hover:outline-2 focus-visible:outline-ring data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"
|
|
59
59
|
>
|
|
60
|
-
{@render buttonContent(getLabel(item))}
|
|
60
|
+
{@render buttonContent(getLabel(item), item)}
|
|
61
61
|
</button>
|
|
62
62
|
{:else}
|
|
63
63
|
<button
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
handleItemClick(item);
|
|
68
68
|
}}
|
|
69
69
|
data-state={isActive(item) ? 'active' : 'inactive'}
|
|
70
|
-
class="h-8 cursor-pointer rounded-lg bg-transparent
|
|
70
|
+
class="1p-2 h-8 cursor-pointer rounded-lg bg-transparent text-muted-foreground hover:text-foreground hover:outline-2 focus-visible:outline-ring data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"
|
|
71
71
|
>
|
|
72
72
|
{getLabel(item)}
|
|
73
73
|
</button>
|
|
@@ -4,7 +4,7 @@ export interface ChoiceInternalProps<V, I, K extends string | number | symbol> e
|
|
|
4
4
|
getLabel: (item: I) => string;
|
|
5
5
|
getValue: (item: I) => V;
|
|
6
6
|
vertical?: boolean;
|
|
7
|
-
buttonContent?: Snippet<[label: string]>;
|
|
7
|
+
buttonContent?: Snippet<[label: string, item: I]>;
|
|
8
8
|
}
|
|
9
9
|
import type { FormAttrs } from '../../form/FieldWrapper.svelte';
|
|
10
10
|
import type { Snippet } from 'svelte';
|
|
@@ -2,16 +2,16 @@ import { Type } from 'arktype';
|
|
|
2
2
|
import { Days } from '../datetime/index.js';
|
|
3
3
|
import { Time as timeImport, CalendarDate as calendarImport } from '@internationalized/date';
|
|
4
4
|
/** Type string which is trimmed before narrowing the type checking */
|
|
5
|
-
export declare function trimTo(typeTo: Type<string>): import("arktype/internal/
|
|
6
|
-
export declare const Day: import("arktype/internal/
|
|
5
|
+
export declare function trimTo(typeTo: Type<string>): import("arktype/internal/variants/object.ts").ObjectType<(In: string) => import("arktype/internal/attributes.ts").To<string>, {}>;
|
|
6
|
+
export declare const Day: import("arktype/internal/variants/string.ts").StringType<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", {}>;
|
|
7
7
|
export type Day = (typeof Days)[number];
|
|
8
|
-
export declare const Time: import("arktype/internal/
|
|
9
|
-
export declare const CalendarDate: import("arktype/internal/
|
|
10
|
-
export declare const HexColor: import("arktype/internal/
|
|
11
|
-
export declare const Email: import("arktype/internal/
|
|
12
|
-
export declare const Name: import("arktype/internal/
|
|
13
|
-
export declare const FirstName: import("arktype/internal/
|
|
14
|
-
export declare const LastName: import("arktype/internal/
|
|
15
|
-
export declare const Id: import("arktype/internal/
|
|
16
|
-
export declare const Password: import("arktype/internal/
|
|
17
|
-
export declare const Duration: import("arktype/internal/
|
|
8
|
+
export declare const Time: import("arktype/internal/variants/object.ts").ObjectType<timeImport, {}>;
|
|
9
|
+
export declare const CalendarDate: import("arktype/internal/variants/object.ts").ObjectType<calendarImport, {}>;
|
|
10
|
+
export declare const HexColor: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
11
|
+
export declare const Email: import("arktype/internal/variants/object.ts").ObjectType<(In: string) => import("arktype").Out<string>, {}>;
|
|
12
|
+
export declare const Name: import("arktype/internal/variants/object.ts").ObjectType<(In: string) => import("arktype").Out<string>, {}>;
|
|
13
|
+
export declare const FirstName: import("arktype/internal/variants/object.ts").ObjectType<(In: string) => import("arktype").Out<string>, {}>;
|
|
14
|
+
export declare const LastName: import("arktype/internal/variants/object.ts").ObjectType<(In: string) => import("arktype").Out<string>, {}>;
|
|
15
|
+
export declare const Id: import("arktype/internal/variants/number.ts").NumberType<number, {}>;
|
|
16
|
+
export declare const Password: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
17
|
+
export declare const Duration: import("arktype/internal/variants/number.ts").NumberType<number, {}>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.5.
|
|
6
|
+
"version": "0.5.22",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
@@ -57,49 +57,49 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@changesets/cli": "^2.29.7",
|
|
60
|
-
"@eslint/compat": "^1.
|
|
61
|
-
"@eslint/js": "^9.
|
|
60
|
+
"@eslint/compat": "^1.4.0",
|
|
61
|
+
"@eslint/js": "^9.37.0",
|
|
62
62
|
"@lucide/svelte": "^0.544.0",
|
|
63
|
-
"@sveltejs/adapter-static": "^3.0.
|
|
64
|
-
"@sveltejs/kit": "^2.
|
|
65
|
-
"@sveltejs/package": "^2.
|
|
66
|
-
"@sveltejs/vite-plugin-svelte": "^6.
|
|
67
|
-
"@tailwindcss/forms": "^0.5.
|
|
68
|
-
"@tailwindcss/typography": "^0.5.
|
|
69
|
-
"@tailwindcss/vite": "^4.
|
|
70
|
-
"@types/node": "^22",
|
|
63
|
+
"@sveltejs/adapter-static": "^3.0.10",
|
|
64
|
+
"@sveltejs/kit": "^2.46.5",
|
|
65
|
+
"@sveltejs/package": "^2.5.4",
|
|
66
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
67
|
+
"@tailwindcss/forms": "^0.5.10",
|
|
68
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
69
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
70
|
+
"@types/node": "^22.18.10",
|
|
71
71
|
"@types/ramda": "^0.31.1",
|
|
72
72
|
"@types/sorted-array-functions": "^1.3.3",
|
|
73
|
-
"arktype": "^2.1.
|
|
74
|
-
"bits-ui": "^2.11.
|
|
73
|
+
"arktype": "^2.1.23",
|
|
74
|
+
"bits-ui": "^2.11.5",
|
|
75
75
|
"clsx": "^2.1.1",
|
|
76
|
-
"eslint": "^9.
|
|
77
|
-
"eslint-config-prettier": "^10.
|
|
78
|
-
"eslint-plugin-svelte": "^3.
|
|
79
|
-
"globals": "^16.
|
|
80
|
-
"prettier": "^3.
|
|
81
|
-
"prettier-plugin-svelte": "^3.
|
|
82
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
83
|
-
"publint": "^0.3.
|
|
76
|
+
"eslint": "^9.37.0",
|
|
77
|
+
"eslint-config-prettier": "^10.1.8",
|
|
78
|
+
"eslint-plugin-svelte": "^3.12.4",
|
|
79
|
+
"globals": "^16.4.0",
|
|
80
|
+
"prettier": "^3.6.2",
|
|
81
|
+
"prettier-plugin-svelte": "^3.4.0",
|
|
82
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
83
|
+
"publint": "^0.3.14",
|
|
84
84
|
"shiki": "^3.13.0",
|
|
85
|
-
"svelte": "^5.
|
|
86
|
-
"svelte-check": "^4.
|
|
87
|
-
"sveltekit-superforms": "^2.27.
|
|
85
|
+
"svelte": "^5.40.0",
|
|
86
|
+
"svelte-check": "^4.3.3",
|
|
87
|
+
"sveltekit-superforms": "^2.27.4",
|
|
88
88
|
"tailwind-merge": "^3.3.1",
|
|
89
89
|
"tailwind-variants": "^3.1.1",
|
|
90
|
-
"tailwindcss": "^4.
|
|
91
|
-
"tw-animate-css": "^1.
|
|
92
|
-
"typescript": "^5.
|
|
93
|
-
"typescript-eslint": "^8.
|
|
94
|
-
"vite": "^7.
|
|
95
|
-
"vitest": "^3.2.
|
|
90
|
+
"tailwindcss": "^4.1.14",
|
|
91
|
+
"tw-animate-css": "^1.4.0",
|
|
92
|
+
"typescript": "^5.9.3",
|
|
93
|
+
"typescript-eslint": "^8.46.1",
|
|
94
|
+
"vite": "^7.1.10",
|
|
95
|
+
"vitest": "^3.2.4"
|
|
96
96
|
},
|
|
97
97
|
"keywords": [
|
|
98
98
|
"svelte"
|
|
99
99
|
],
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"dotenv": "^17.2.3",
|
|
102
|
-
"drizzle-orm": "^0.44.
|
|
102
|
+
"drizzle-orm": "^0.44.6",
|
|
103
103
|
"formsnap": "^2.0.1",
|
|
104
104
|
"pg": "^8.16.3",
|
|
105
105
|
"ramda": "^0.31.3",
|