@webamoki/web-svelte 0.5.28 → 0.5.30
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/dist/components/form/Button.svelte.d.ts +13 -7
- package/dist/components/form/Errors.svelte.d.ts +13 -5
- package/dist/components/form/FieldWrapper.svelte.d.ts +11 -24
- package/dist/components/form/Form.svelte.d.ts +11 -29
- package/dist/components/form/fields/ChoiceField.svelte.d.ts +11 -25
- package/dist/components/form/fields/ChoiceMultiField.svelte.d.ts +11 -25
- package/dist/components/form/fields/DateField.svelte.d.ts +11 -26
- package/dist/components/form/fields/HexColorField.svelte.d.ts +11 -24
- package/dist/components/form/fields/NumberField.svelte.d.ts +11 -26
- package/dist/components/form/fields/PasswordField.svelte.d.ts +11 -24
- package/dist/components/form/fields/SelectField.svelte.d.ts +11 -31
- package/dist/components/form/fields/SelectMultiField.svelte.d.ts +11 -31
- package/dist/components/form/fields/TextField.svelte.d.ts +11 -27
- package/dist/components/form/fields/TextFieldNullable.svelte.d.ts +11 -27
- package/dist/components/form/fields/TimeField.svelte.d.ts +11 -27
- package/dist/components/form/fields/WeekdayChoiceField.svelte.d.ts +11 -25
- package/dist/components/form/fields/WeekdayChoiceMultiField.svelte.d.ts +11 -25
- package/dist/components/showcase/CodeBlock.svelte.d.ts +17 -28
- package/dist/components/showcase/Container.svelte.d.ts +18 -22
- package/dist/components/showcase/Preview.svelte.d.ts +22 -21
- package/dist/components/showcase/Sidebar.svelte.d.ts +22 -21
- package/dist/components/showcase/SidebarLink.svelte.d.ts +14 -18
- package/dist/components/ui/choice/Choice.svelte.d.ts +11 -21
- package/dist/components/ui/choice/ChoiceInternal.svelte.d.ts +11 -24
- package/dist/components/ui/choice/ChoiceMulti.svelte.d.ts +11 -21
- package/dist/components/ui/choice/WeekdayChoice.svelte.d.ts +14 -3
- package/dist/components/ui/choice/WeekdayChoiceMulti.svelte.d.ts +14 -3
- package/dist/components/ui/search/SearchBar.svelte.d.ts +13 -8
- package/dist/shadcn/components/ui/button/button.svelte.d.ts +14 -3
- package/dist/shadcn/components/ui/input/input.svelte.d.ts +14 -13
- package/dist/shadcn/components/ui/select/select-content.svelte.d.ts +13 -7
- package/dist/shadcn/components/ui/select/select-group-heading.svelte.d.ts +14 -10
- package/dist/shadcn/components/ui/select/select-group.svelte.d.ts +14 -4
- package/dist/shadcn/components/ui/select/select-item.svelte.d.ts +14 -4
- package/dist/shadcn/components/ui/select/select-label.svelte.d.ts +14 -6
- package/dist/shadcn/components/ui/select/select-scroll-down-button.svelte.d.ts +14 -4
- package/dist/shadcn/components/ui/select/select-scroll-up-button.svelte.d.ts +14 -4
- package/dist/shadcn/components/ui/select/select-separator.svelte.d.ts +14 -4
- package/dist/shadcn/components/ui/select/select-trigger.svelte.d.ts +13 -7
- package/dist/shadcn/components/ui/separator/separator.svelte.d.ts +14 -4
- package/dist/utils/types/arktype.d.ts +1 -0
- package/dist/utils/types/arktype.js +9 -0
- package/package.json +18 -29
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
export
|
|
9
|
+
export type SelectContentProps = typeof __propDef.props;
|
|
10
|
+
export type SelectContentEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectContentSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectContent extends SvelteComponentTyped<SelectContentProps, SelectContentEvents, SelectContentSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
type
|
|
10
|
-
export
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SelectGroupHeadingProps = typeof __propDef.props;
|
|
10
|
+
export type SelectGroupHeadingEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectGroupHeadingSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectGroupHeading extends SvelteComponentTyped<SelectGroupHeadingProps, SelectGroupHeadingEvents, SelectGroupHeadingSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SelectGroupProps = typeof __propDef.props;
|
|
10
|
+
export type SelectGroupEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectGroupSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectGroup extends SvelteComponentTyped<SelectGroupProps, SelectGroupEvents, SelectGroupSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SelectItemProps = typeof __propDef.props;
|
|
10
|
+
export type SelectItemEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectItemSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectItem extends SvelteComponentTyped<SelectItemProps, SelectItemEvents, SelectItemSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SelectLabelProps = typeof __propDef.props;
|
|
10
|
+
export type SelectLabelEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectLabelSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectLabel extends SvelteComponentTyped<SelectLabelProps, SelectLabelEvents, SelectLabelSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SelectScrollDownButtonProps = typeof __propDef.props;
|
|
10
|
+
export type SelectScrollDownButtonEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectScrollDownButtonSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectScrollDownButton extends SvelteComponentTyped<SelectScrollDownButtonProps, SelectScrollDownButtonEvents, SelectScrollDownButtonSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SelectScrollUpButtonProps = typeof __propDef.props;
|
|
10
|
+
export type SelectScrollUpButtonEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectScrollUpButtonSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectScrollUpButton extends SvelteComponentTyped<SelectScrollUpButtonProps, SelectScrollUpButtonEvents, SelectScrollUpButtonSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SelectSeparatorProps = typeof __propDef.props;
|
|
10
|
+
export type SelectSeparatorEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectSeparatorSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectSeparator extends SvelteComponentTyped<SelectSeparatorProps, SelectSeparatorEvents, SelectSeparatorSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
export
|
|
9
|
+
export type SelectTriggerProps = typeof __propDef.props;
|
|
10
|
+
export type SelectTriggerEvents = typeof __propDef.events;
|
|
11
|
+
export type SelectTriggerSlots = typeof __propDef.slots;
|
|
12
|
+
export default class SelectTrigger extends SvelteComponentTyped<SelectTriggerProps, SelectTriggerEvents, SelectTriggerSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type SeparatorProps = typeof __propDef.props;
|
|
10
|
+
export type SeparatorEvents = typeof __propDef.events;
|
|
11
|
+
export type SeparatorSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Separator extends SvelteComponentTyped<SeparatorProps, SeparatorEvents, SeparatorSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
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
|
+
export declare const Phone: import("arktype/internal/variants/string.ts").StringType<string, {}>;
|
|
4
5
|
/** Type string which is trimmed before narrowing the type checking */
|
|
5
6
|
export declare function trimTo(typeTo: Type<string>): import("arktype/internal/variants/object.ts").ObjectType<(In: string) => import("arktype/internal/attributes.ts").To<string>, {}>;
|
|
6
7
|
export declare const Day: import("arktype/internal/variants/string.ts").StringType<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", {}>;
|
|
@@ -3,6 +3,15 @@ import { Days } from '../datetime/index.js';
|
|
|
3
3
|
import { Time as timeImport, CalendarDate as calendarImport } from '@internationalized/date';
|
|
4
4
|
import { EMAIL_MAX, FIRST_NAME_MAX, LAST_NAME_MAX, NAME_MAX } from './consts.js';
|
|
5
5
|
import { toTitleCase } from '../string.js';
|
|
6
|
+
// Phone arktype: allows "+", digits, and spaces only
|
|
7
|
+
export const Phone = type('string').narrow((value, ctx) => {
|
|
8
|
+
if (!/^[+0-9 ]+$/.test(value)) {
|
|
9
|
+
return ctx.reject({
|
|
10
|
+
problem: 'invalid phone number. Only +, digits, and spaces are allowed.'
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return true;
|
|
14
|
+
});
|
|
6
15
|
/** Type string which is trimmed before narrowing the type checking */
|
|
7
16
|
export function trimTo(typeTo) {
|
|
8
17
|
return type('string.trim').to(typeTo);
|
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.30",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
@@ -51,33 +51,33 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@internationalized/date": "^3.9.0",
|
|
53
53
|
"@lucide/svelte": "^0.544.0",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
54
|
+
"arktype": "^2.1.25",
|
|
55
|
+
"bits-ui": "^2.14.2",
|
|
56
|
+
"clsx": "^2.1.1",
|
|
57
|
+
"drizzle-orm": "^0.44.7",
|
|
58
|
+
"formsnap": "^2.0.1",
|
|
59
|
+
"pg": "^8.16.3",
|
|
57
60
|
"ramda": "^0.31.3",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
+
"sorted-array-functions": "^1.3.0",
|
|
62
|
+
"svelte-awesome-color-picker": "^4.1.0",
|
|
63
|
+
"svelte-sonner": "^1.0.5",
|
|
64
|
+
"sveltekit-superforms": "^2.28.1"
|
|
61
65
|
},
|
|
62
66
|
"devDependencies": {
|
|
63
67
|
"@changesets/cli": "^2.29.7",
|
|
64
68
|
"@eslint/compat": "^1.4.1",
|
|
65
69
|
"@eslint/js": "^9.39.1",
|
|
66
|
-
"@lucide/svelte": "^0.544.0",
|
|
67
70
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
68
71
|
"@sveltejs/kit": "^2.48.4",
|
|
69
72
|
"@sveltejs/package": "^2.5.4",
|
|
70
73
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
74
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
71
75
|
"@tailwindcss/forms": "^0.5.10",
|
|
72
76
|
"@tailwindcss/typography": "^0.5.19",
|
|
73
|
-
"@
|
|
74
|
-
"@types/node": "^22.19.0",
|
|
77
|
+
"@types/node": "^22.19.1",
|
|
75
78
|
"@types/pg": "^8.15.6",
|
|
76
79
|
"@types/ramda": "^0.31.1",
|
|
77
80
|
"@types/sorted-array-functions": "^1.3.3",
|
|
78
|
-
"arktype": "^2.1.25",
|
|
79
|
-
"bits-ui": "^2.14.2",
|
|
80
|
-
"clsx": "^2.1.1",
|
|
81
81
|
"eslint": "^9.39.1",
|
|
82
82
|
"eslint-config-prettier": "^10.1.8",
|
|
83
83
|
"eslint-plugin-svelte": "^3.13.0",
|
|
@@ -87,31 +87,20 @@
|
|
|
87
87
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
88
88
|
"publint": "^0.3.15",
|
|
89
89
|
"shiki": "^3.15.0",
|
|
90
|
-
"svelte": "^5.43.
|
|
91
|
-
"svelte-check": "^4.3.
|
|
92
|
-
"
|
|
93
|
-
"tailwind-merge": "^3.3.1",
|
|
90
|
+
"svelte": "^5.43.6",
|
|
91
|
+
"svelte-check": "^4.3.4",
|
|
92
|
+
"tailwind-merge": "^3.4.0",
|
|
94
93
|
"tailwind-variants": "^3.1.1",
|
|
95
94
|
"tailwindcss": "^4.1.17",
|
|
96
95
|
"tw-animate-css": "^1.4.0",
|
|
97
96
|
"typescript": "^5.9.3",
|
|
98
|
-
"typescript-eslint": "^8.46.
|
|
99
|
-
"vite": "^7.2.
|
|
97
|
+
"typescript-eslint": "^8.46.4",
|
|
98
|
+
"vite": "^7.2.2",
|
|
100
99
|
"vitest": "^3.2.4"
|
|
101
100
|
},
|
|
102
101
|
"keywords": [
|
|
103
102
|
"svelte"
|
|
104
103
|
],
|
|
105
|
-
"dependencies": {
|
|
106
|
-
"dotenv": "^17.2.3",
|
|
107
|
-
"drizzle-orm": "^0.44.7",
|
|
108
|
-
"formsnap": "^2.0.1",
|
|
109
|
-
"pg": "^8.16.3",
|
|
110
|
-
"ramda": "^0.31.3",
|
|
111
|
-
"sorted-array-functions": "^1.3.0",
|
|
112
|
-
"svelte-awesome-color-picker": "^4.1.0",
|
|
113
|
-
"svelte-sonner": "^1.0.5"
|
|
114
|
-
},
|
|
115
104
|
"scripts": {
|
|
116
105
|
"dev": "vite dev",
|
|
117
106
|
"build": "vite build && pnpm prepack",
|