@functionalcms/svelte-components 4.7.2 → 4.7.4

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.
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { cn } from '../../utils.js';
3
3
  import type { Snippet } from 'svelte';
4
+ import type { EventHandler } from 'svelte/elements';
4
5
 
5
6
  interface Props {
6
7
  children: Snippet;
@@ -26,8 +27,8 @@
26
27
  ariaControls?: string;
27
28
  tabIndex?: number;
28
29
  ariaLabel: string;
29
- click?: () => void;
30
- keydown?: (e: KeyboardEvent) => void;
30
+ click?: (event: MouseEvent) => void;
31
+ keydown?: (event: KeyboardEvent) => void;
31
32
  }
32
33
 
33
34
  let {
@@ -76,7 +77,6 @@
76
77
  css ? `${css}` : ''
77
78
  )
78
79
  );
79
-
80
80
  </script>
81
81
 
82
82
  {#if type == 'link'}
@@ -23,8 +23,8 @@ declare const Button: import("svelte").Component<Partial<{
23
23
  ariaControls?: string;
24
24
  tabIndex?: number;
25
25
  ariaLabel: string;
26
- click?: () => void;
27
- keydown?: (e: KeyboardEvent) => void;
26
+ click?: (event: MouseEvent) => void;
27
+ keydown?: (event: KeyboardEvent) => void;
28
28
  }>, {}, "">;
29
29
  type Button = ReturnType<typeof Button>;
30
30
  export default Button;
@@ -30,7 +30,11 @@
30
30
  placeholder: string;
31
31
 
32
32
  type: Type;
33
- value: string;
33
+
34
+ maxLength: number | undefined;
35
+ minLength: number | undefined;
36
+
37
+ value: string | any;
34
38
  addonLeft: Snippet;
35
39
  addonRight: Snippet;
36
40
  }
@@ -20,7 +20,9 @@ declare const Input: import("svelte").Component<Partial<{
20
20
  css: string;
21
21
  placeholder: string;
22
22
  type: Type;
23
- value: string;
23
+ maxLength: number | undefined;
24
+ minLength: number | undefined;
25
+ value: string | any;
24
26
  addonLeft: Snippet;
25
27
  addonRight: Snippet;
26
28
  }>, {}, "">;
@@ -0,0 +1,10 @@
1
+ <script type='ts'>
2
+ interface Props {
3
+ children: Snippet;
4
+ }
5
+ let { children } = $props();
6
+ let dialog: any;
7
+ </script>
8
+ <dialog bind:this={dialog} on:close>
9
+ {@render children?.()}
10
+ </dialog>
@@ -0,0 +1,31 @@
1
+ export default Dialog;
2
+ type Dialog = SvelteComponent<$$ComponentProps, {
3
+ close: Event;
4
+ } & {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: "" | undefined;
8
+ };
9
+ declare const Dialog: $$__sveltets_2_IsomorphicComponent<{
10
+ children: any;
11
+ }, {
12
+ close: Event;
13
+ } & {
14
+ [evt: string]: CustomEvent<any>;
15
+ }, {}, {}, "">;
16
+ type $$ComponentProps = {
17
+ children: any;
18
+ };
19
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
20
+ new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
21
+ $$bindings?: Bindings;
22
+ } & Exports;
23
+ (internal: unknown, props: Props & {
24
+ $$events?: Events;
25
+ $$slots?: Slots;
26
+ }): Exports & {
27
+ $set?: any;
28
+ $on?: any;
29
+ };
30
+ z_$$bindings?: Bindings;
31
+ }
@@ -7,4 +7,4 @@ export { userAuthenticationProvider } from './auth/userAuthenticationProvider.js
7
7
  export { getBlobService, getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAIService, getAuthService, } from './server-side/getServices.js';
8
8
  export type { RedirectResponse } from './auth/RedirectResponse.js';
9
9
  export { createMachineTokenApprovedLocals } from './auth/getMachineAccessToken.js';
10
- export { isHuman } from './components/form/AntiBot.ts';
10
+ export { isHuman } from './components/form/AntiBot.js';
@@ -6,4 +6,4 @@ export { machineAuthenticationProvider } from './auth/machineAuthenticationProvi
6
6
  export { userAuthenticationProvider } from './auth/userAuthenticationProvider.js';
7
7
  export { getBlobService, getCommunicationService, getDataService, getTemplateService, getWebsiteService, getAIService, getAuthService, } from './server-side/getServices.js';
8
8
  export { createMachineTokenApprovedLocals } from './auth/getMachineAccessToken.js';
9
- export { isHuman } from './components/form/AntiBot.ts';
9
+ export { isHuman } from './components/form/AntiBot.js';
package/dist/index.d.ts CHANGED
@@ -6,13 +6,13 @@ export { default as Well } from './components/layouts/Well.svelte';
6
6
  export { default as Banner } from './components/layouts/Banner.svelte';
7
7
  export { default as SimpleFooter } from './components/layouts/SimpleFooter.svelte';
8
8
  export { default as Tabs } from './components/layouts/Tabs.svelte';
9
- export type { Tab, TabSizes, NavigationDirection } from './components/layouts/tabs.ts';
9
+ export type { Tab, TabSizes, NavigationDirection } from './components/layouts/tabs.js';
10
10
  export { Justify, AlignItmes, Placement, Orientation, Position, Sizes, ComponentSize } from './components/Styling.js';
11
11
  export { default as Link } from './components/presentation/Link.svelte';
12
12
  export { default as Logo } from './components/presentation/Logo.svelte';
13
13
  export { default as Card } from './components/presentation/Card.svelte';
14
14
  export { default as Gallery } from './components/presentation/Gallery.svelte';
15
- export type { CarouselItem } from './components/presentation/Carousel.ts';
15
+ export type { CarouselItem } from './components/presentation/Carousel.js';
16
16
  export { default as Carousel } from './components/presentation/Carousel.svelte';
17
17
  export { default as Drawer } from './components/presentation/Drawer.svelte';
18
18
  export { default as Disclose } from './components/presentation/Disclose.svelte';
@@ -22,14 +22,14 @@ export { default as ListMenu } from './components/menu/ListMenu.svelte';
22
22
  export { default as DynamicMenu } from './components/menu/DynamicMenu.svelte';
23
23
  export { default as HamburgerMenu } from './components/menu/HamburgerMenu.svelte';
24
24
  export { default as CollapsibleMenu } from './components/menu/CollapsibleMenu.svelte';
25
- export { isAuthenticated, selectVisible } from './components/menu/types.ts';
26
- export { HeaderNavigationItem, Visiblity } from './components/menu/types.ts';
25
+ export { isAuthenticated, selectVisible } from './components/menu/types.js';
26
+ export { HeaderNavigationItem, Visiblity } from './components/menu/types.js';
27
27
  export { default as Button } from './components/form/Button.svelte';
28
28
  export { default as Input } from './components/form/Input.svelte';
29
29
  export { default as Switch } from './components/form/Switch.svelte';
30
30
  export { default as ChoiceInput } from './components/form/ChoiceInput.svelte';
31
- export type { ChoiceInputOption } from './components/form/utils.ts';
31
+ export type { ChoiceInputOption } from './components/form/utils.js';
32
32
  export { default as AntiBot } from './components/form/AntiBot.svelte';
33
33
  export { default as Markdown } from './components/content/Markdown.svelte';
34
- export { type BlogPost, listAllPosts, importPost } from './components/blog/blog.ts';
34
+ export { type BlogPost, listAllPosts, importPost } from './components/blog/blog.js';
35
35
  export { default as EasyTools } from './components/integrations/EasyTools.svelte';
package/dist/index.js CHANGED
@@ -32,8 +32,8 @@ export { default as ListMenu } from './components/menu/ListMenu.svelte';
32
32
  export { default as DynamicMenu } from './components/menu/DynamicMenu.svelte';
33
33
  export { default as HamburgerMenu } from './components/menu/HamburgerMenu.svelte';
34
34
  export { default as CollapsibleMenu } from './components/menu/CollapsibleMenu.svelte';
35
- export { isAuthenticated, selectVisible } from './components/menu/types.ts';
36
- export { HeaderNavigationItem, Visiblity } from './components/menu/types.ts';
35
+ export { isAuthenticated, selectVisible } from './components/menu/types.js';
36
+ export { HeaderNavigationItem, Visiblity } from './components/menu/types.js';
37
37
  /*
38
38
  * Form
39
39
  */
@@ -49,7 +49,7 @@ export { default as Markdown } from './components/content/Markdown.svelte';
49
49
  /*
50
50
  * Blog
51
51
  */
52
- export { listAllPosts, importPost } from './components/blog/blog.ts';
52
+ export { listAllPosts, importPost } from './components/blog/blog.js';
53
53
  /*
54
54
  * Integrations
55
55
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.7.2",
3
+ "version": "4.7.4",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [