@functionalcms/svelte-components 2.38.0 → 2.38.1

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,4 +1,4 @@
1
- <script>import { HeaderNavigationItem, isSelected, defaultCss } from "./Menu.js";
1
+ <script>import { isSelected, defaultCss } from "./Menu.js";
2
2
  import { Orientation } from "../Styling.js";
3
3
  import Link from "../Link.svelte";
4
4
  import { page } from "$app/stores";
@@ -1,5 +1,5 @@
1
1
  import { SvelteComponent } from "svelte";
2
- import { HeaderNavigationItem } from './Menu.js';
2
+ import { type HeaderNavigationItem } from './Menu.js';
3
3
  import { Orientation } from '../Styling.js';
4
4
  declare const __propDef: {
5
5
  props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "2.38.0",
3
+ "version": "2.38.1",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [
@@ -1,25 +0,0 @@
1
- <script>export let disabled = false;
2
- export let isSelected = false;
3
- export let classes;
4
- let btn;
5
- export function focus() {
6
- return btn.focus();
7
- }
8
- export function isDisabled() {
9
- return btn.disabled;
10
- }
11
- </script>
12
- <button
13
- on:click
14
- on:keydown
15
- bind:this={btn}
16
- role="menuitem"
17
- tabindex={isSelected ? 0 : -1}
18
- disabled={disabled}
19
- class={classes}
20
- >
21
- <slot />
22
- </button>
23
-
24
- <style>
25
- </style>
@@ -1,29 +0,0 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- disabled?: boolean;
5
- isSelected?: boolean;
6
- classes: any;
7
- focus?: () => any;
8
- isDisabled?: () => any;
9
- };
10
- events: {
11
- click: MouseEvent;
12
- keydown: KeyboardEvent;
13
- } & {
14
- [evt: string]: CustomEvent<any>;
15
- };
16
- slots: {
17
- default: {};
18
- };
19
- exports?: {} | undefined;
20
- bindings?: string | undefined;
21
- };
22
- export type LinkMenuItemProps = typeof __propDef.props;
23
- export type LinkMenuItemEvents = typeof __propDef.events;
24
- export type LinkMenuItemSlots = typeof __propDef.slots;
25
- export default class LinkMenuItem extends SvelteComponent<LinkMenuItemProps, LinkMenuItemEvents, LinkMenuItemSlots> {
26
- get focus(): () => any;
27
- get isDisabled(): () => any;
28
- }
29
- export {};