@webamoki/web-svelte 0.5.30 → 0.5.31

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.
Files changed (45) hide show
  1. package/dist/components/form/Button.svelte.d.ts +7 -13
  2. package/dist/components/form/Errors.svelte.d.ts +5 -13
  3. package/dist/components/form/FieldWrapper.svelte.d.ts +24 -11
  4. package/dist/components/form/Form.svelte.d.ts +29 -11
  5. package/dist/components/form/fields/ChoiceField.svelte.d.ts +25 -11
  6. package/dist/components/form/fields/ChoiceMultiField.svelte.d.ts +25 -11
  7. package/dist/components/form/fields/DateField.svelte.d.ts +26 -11
  8. package/dist/components/form/fields/HexColorField.svelte.d.ts +24 -11
  9. package/dist/components/form/fields/NumberField.svelte.d.ts +26 -11
  10. package/dist/components/form/fields/PasswordField.svelte.d.ts +24 -11
  11. package/dist/components/form/fields/SelectField.svelte.d.ts +31 -11
  12. package/dist/components/form/fields/SelectMultiField.svelte.d.ts +31 -11
  13. package/dist/components/form/fields/TextField.svelte.d.ts +27 -11
  14. package/dist/components/form/fields/TextFieldNullable.svelte.d.ts +27 -11
  15. package/dist/components/form/fields/TimeField.svelte.d.ts +27 -11
  16. package/dist/components/form/fields/WeekdayChoiceField.svelte.d.ts +25 -11
  17. package/dist/components/form/fields/WeekdayChoiceMultiField.svelte.d.ts +25 -11
  18. package/dist/components/showcase/CodeBlock.svelte.d.ts +28 -17
  19. package/dist/components/showcase/Container.svelte.d.ts +22 -18
  20. package/dist/components/showcase/Preview.svelte.d.ts +21 -22
  21. package/dist/components/showcase/Sidebar.svelte.d.ts +21 -22
  22. package/dist/components/showcase/SidebarLink.svelte.d.ts +18 -14
  23. package/dist/components/ui/choice/Choice.svelte.d.ts +21 -11
  24. package/dist/components/ui/choice/ChoiceInternal.svelte.d.ts +24 -11
  25. package/dist/components/ui/choice/ChoiceMulti.svelte.d.ts +21 -11
  26. package/dist/components/ui/choice/WeekdayChoice.svelte.d.ts +3 -14
  27. package/dist/components/ui/choice/WeekdayChoiceMulti.svelte.d.ts +3 -14
  28. package/dist/components/ui/search/SearchBar.svelte.d.ts +8 -13
  29. package/dist/shadcn/components/ui/button/button.svelte.d.ts +3 -14
  30. package/dist/shadcn/components/ui/input/input.svelte.d.ts +13 -14
  31. package/dist/shadcn/components/ui/select/select-content.svelte.d.ts +7 -13
  32. package/dist/shadcn/components/ui/select/select-group-heading.svelte.d.ts +10 -14
  33. package/dist/shadcn/components/ui/select/select-group.svelte.d.ts +4 -14
  34. package/dist/shadcn/components/ui/select/select-item.svelte.d.ts +4 -14
  35. package/dist/shadcn/components/ui/select/select-label.svelte.d.ts +6 -14
  36. package/dist/shadcn/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -14
  37. package/dist/shadcn/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -14
  38. package/dist/shadcn/components/ui/select/select-separator.svelte.d.ts +4 -14
  39. package/dist/shadcn/components/ui/select/select-trigger.svelte.d.ts +7 -13
  40. package/dist/shadcn/components/ui/separator/separator.svelte.d.ts +4 -14
  41. package/dist/utils/{form/index.d.ts → form.d.ts} +0 -1
  42. package/dist/utils/{form/index.js → form.js} +1 -2
  43. package/package.json +27 -16
  44. /package/dist/{utils/form/handler.d.ts → server/form-handler.d.ts} +0 -0
  45. /package/dist/{utils/form/handler.js → server/form-handler.js} +0 -0
@@ -1,14 +1,8 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: Record<string, never>;
4
- events: {
5
- [evt: string]: CustomEvent<any>;
6
- };
7
- slots: {};
1
+ import { Select as SelectPrimitive } from 'bits-ui';
2
+ import { type WithoutChild } from '../../../utils.js';
3
+ type $$ComponentProps = WithoutChild<SelectPrimitive.ContentProps> & {
4
+ portalProps?: SelectPrimitive.PortalProps;
8
5
  };
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 {};
6
+ declare const SelectContent: import("svelte").Component<$$ComponentProps, {}, "ref">;
7
+ type SelectContent = ReturnType<typeof SelectContent>;
8
+ export default SelectContent;
@@ -1,14 +1,10 @@
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
+ declare const SelectGroupHeading: import("svelte").Component<Omit<{}, "child" | "children"> & {
2
+ child?: import("svelte").Snippet<[{
3
+ props: Record<string, unknown>;
4
+ }]> | undefined;
5
+ children?: import("svelte").Snippet<[]> | undefined;
6
+ style?: import("bits-ui").StyleProperties | string | null | undefined;
7
+ ref?: HTMLElement | null | undefined;
8
+ } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, import("bits-ui").ComboboxGroupHeadingPropsWithoutHTML>, {}, "ref">;
9
+ type SelectGroupHeading = ReturnType<typeof SelectGroupHeading>;
10
+ export default SelectGroupHeading;
@@ -1,14 +1,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
+ import { Select as SelectPrimitive } from 'bits-ui';
2
+ declare const SelectGroup: import("svelte").Component<SelectPrimitive.GroupProps, {}, "ref">;
3
+ type SelectGroup = ReturnType<typeof SelectGroup>;
4
+ export default SelectGroup;
@@ -1,14 +1,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
+ import { Select as SelectPrimitive } from 'bits-ui';
2
+ declare const SelectItem: import("svelte").Component<Omit<SelectPrimitive.ItemProps, "child">, {}, "ref">;
3
+ type SelectItem = ReturnType<typeof SelectItem>;
4
+ export default SelectItem;
@@ -1,14 +1,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
+ import { type WithElementRef } from '../../../utils.js';
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {};
4
+ declare const SelectLabel: import("svelte").Component<$$ComponentProps, {}, "ref">;
5
+ type SelectLabel = ReturnType<typeof SelectLabel>;
6
+ export default SelectLabel;
@@ -1,14 +1,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
+ import { Select as SelectPrimitive } from 'bits-ui';
2
+ declare const SelectScrollDownButton: import("svelte").Component<Omit<Omit<SelectPrimitive.ScrollDownButtonProps, "child">, "children">, {}, "ref">;
3
+ type SelectScrollDownButton = ReturnType<typeof SelectScrollDownButton>;
4
+ export default SelectScrollDownButton;
@@ -1,14 +1,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
+ import { Select as SelectPrimitive } from 'bits-ui';
2
+ declare const SelectScrollUpButton: import("svelte").Component<Omit<Omit<SelectPrimitive.ScrollUpButtonProps, "child">, "children">, {}, "ref">;
3
+ type SelectScrollUpButton = ReturnType<typeof SelectScrollUpButton>;
4
+ export default SelectScrollUpButton;
@@ -1,14 +1,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
+ import type { Separator as SeparatorPrimitive } from 'bits-ui';
2
+ declare const SelectSeparator: import("svelte").Component<SeparatorPrimitive.RootProps, {}, "ref">;
3
+ type SelectSeparator = ReturnType<typeof SelectSeparator>;
4
+ export default SelectSeparator;
@@ -1,14 +1,8 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- declare const __propDef: {
3
- props: Record<string, never>;
4
- events: {
5
- [evt: string]: CustomEvent<any>;
6
- };
7
- slots: {};
1
+ import { Select as SelectPrimitive } from 'bits-ui';
2
+ import { type WithoutChild } from '../../../utils.js';
3
+ type $$ComponentProps = WithoutChild<SelectPrimitive.TriggerProps> & {
4
+ size?: 'sm' | 'default';
8
5
  };
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 {};
6
+ declare const SelectTrigger: import("svelte").Component<$$ComponentProps, {}, "ref">;
7
+ type SelectTrigger = ReturnType<typeof SelectTrigger>;
8
+ export default SelectTrigger;
@@ -1,14 +1,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
+ import { Separator as SeparatorPrimitive } from 'bits-ui';
2
+ declare const Separator: import("svelte").Component<SeparatorPrimitive.RootProps, {}, "ref">;
3
+ type Separator = ReturnType<typeof Separator>;
4
+ export default Separator;
@@ -1,4 +1,3 @@
1
- export * from './handler.js';
2
1
  import { type } from 'arktype';
3
2
  import { type SuperValidated } from 'sveltekit-superforms';
4
3
  export declare function prepareForm<S extends type.Any<Record<string, unknown>>>(validated: SuperValidated<S['infer']> | S['infer'], schema: S, options?: Partial<{
@@ -1,9 +1,8 @@
1
- export * from './handler.js';
2
1
  import { type } from 'arktype';
3
2
  import { toast } from 'svelte-sonner';
4
3
  import { defaults, superForm, superValidate } from 'sveltekit-superforms';
5
4
  import { arktype, arktypeClient } from 'sveltekit-superforms/adapters';
6
- import { dateTransport } from '../datetime/index.js';
5
+ import { dateTransport } from './datetime/index.js';
7
6
  export function prepareForm(validated, schema, options) {
8
7
  const form = superForm(validated, {
9
8
  validators: arktypeClient(schema),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.30",
6
+ "version": "0.5.31",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "dist",
@@ -40,8 +40,12 @@
40
40
  "import": "./dist/utils/types/db.js"
41
41
  },
42
42
  "./utils/form": {
43
- "types": "./dist/utils/form/index.d.ts",
44
- "import": "./dist/utils/form/index.js"
43
+ "types": "./dist/utils/form.d.ts",
44
+ "import": "./dist/utils/form.js"
45
+ },
46
+ "./server/form-handler": {
47
+ "types": "./dist/server/form-handler.d.ts",
48
+ "import": "./dist/server/form-handler.js"
45
49
  },
46
50
  "./utils/search": {
47
51
  "types": "./dist/utils/search.d.ts",
@@ -50,18 +54,10 @@
50
54
  },
51
55
  "peerDependencies": {
52
56
  "@internationalized/date": "^3.9.0",
53
- "@lucide/svelte": "^0.544.0",
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",
60
- "ramda": "^0.31.3",
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"
57
+ "@lucide/svelte": "^0.553.0",
58
+ "arktype": "^2.1.22",
59
+ "svelte": "^5.43.6",
60
+ "sveltekit-superforms": "^2.27.1"
65
61
  },
66
62
  "devDependencies": {
67
63
  "@changesets/cli": "^2.29.7",
@@ -71,13 +67,14 @@
71
67
  "@sveltejs/kit": "^2.48.4",
72
68
  "@sveltejs/package": "^2.5.4",
73
69
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
74
- "@tailwindcss/vite": "^4.1.17",
75
70
  "@tailwindcss/forms": "^0.5.10",
76
71
  "@tailwindcss/typography": "^0.5.19",
72
+ "@tailwindcss/vite": "^4.1.17",
77
73
  "@types/node": "^22.19.1",
78
74
  "@types/pg": "^8.15.6",
79
75
  "@types/ramda": "^0.31.1",
80
76
  "@types/sorted-array-functions": "^1.3.3",
77
+ "clsx": "^2.1.1",
81
78
  "eslint": "^9.39.1",
82
79
  "eslint-config-prettier": "^10.1.8",
83
80
  "eslint-plugin-svelte": "^3.13.0",
@@ -101,6 +98,20 @@
101
98
  "keywords": [
102
99
  "svelte"
103
100
  ],
101
+ "dependencies": {
102
+ "@internationalized/date": "^3.10.0",
103
+ "@lucide/svelte": "^0.553.0",
104
+ "arktype": "^2.1.26",
105
+ "bits-ui": "^2.14.3",
106
+ "drizzle-orm": "^0.44.7",
107
+ "formsnap": "^2.0.1",
108
+ "pg": "^8.16.3",
109
+ "ramda": "^0.31.3",
110
+ "sorted-array-functions": "^1.3.0",
111
+ "svelte-awesome-color-picker": "^4.1.0",
112
+ "svelte-sonner": "^1.0.6",
113
+ "sveltekit-superforms": "^2.28.1"
114
+ },
104
115
  "scripts": {
105
116
  "dev": "vite dev",
106
117
  "build": "vite build && pnpm prepack",