tera-system-ui 0.1.2 → 0.1.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.
- package/dist/components/command/command.d.ts +11 -6
- package/dist/components/command/command.js +2 -2
- package/dist/components/command/command.scss +1 -1
- package/dist/components/command/components/Command.svelte.d.ts +2 -1
- package/dist/components/command/components/CommandEmpty.svelte.d.ts +2 -1
- package/dist/components/command/components/CommandGroup.svelte.d.ts +2 -1
- package/dist/components/command/components/CommandInput.svelte +2 -2
- package/dist/components/command/components/CommandItem.svelte.d.ts +2 -1
- package/dist/components/command/components/CommandLoading.svelte.d.ts +7 -1
- package/dist/components/command/components/CommandSeparator.svelte.d.ts +2 -1
- package/dist/components/dialog/dialog.scss +1 -1
- package/dist/components/dropdown-menu/components/DropdownMenuItem.svelte.d.ts +1 -0
- package/dist/components/popover-responsive/PopoverResponsive.svelte +2 -1
- package/dist/components/side-navigation/sidenav.scss +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommandProps, Context, Group, State, StateStore } from './types
|
|
1
|
+
import type { CommandProps, Context, Group, State, StateStore } from './types';
|
|
2
2
|
import './command.scss';
|
|
3
3
|
export declare const LIST_SELECTOR = "[data-cmdk-list-sizer]";
|
|
4
4
|
export declare const GROUP_SELECTOR = "[data-cmdk-group]";
|
|
@@ -11,18 +11,23 @@ export declare const defaultFilter: (value: string, search: string) => number;
|
|
|
11
11
|
export declare function getCtx(): Context;
|
|
12
12
|
export declare function getState(): StateStore;
|
|
13
13
|
export declare function createGroup(alwaysRender: boolean | undefined): {
|
|
14
|
-
id:
|
|
14
|
+
id: string;
|
|
15
15
|
};
|
|
16
16
|
export declare function getGroup(): Group | undefined;
|
|
17
17
|
export declare function createState(initialValues?: Partial<State>): import("svelte/store").Writable<State>;
|
|
18
18
|
export declare function createCommand(props: CommandProps): {
|
|
19
19
|
state: {
|
|
20
|
-
subscribe:
|
|
21
|
-
update:
|
|
22
|
-
set:
|
|
20
|
+
subscribe: (this: void, run: import("svelte/store").Subscriber<State>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
|
|
21
|
+
update: (this: void, updater: import("svelte/store").Updater<State>) => void;
|
|
22
|
+
set: (this: void, value: State) => void;
|
|
23
23
|
updateState: <K extends keyof State>(key: K, value: State[K], preventScroll?: boolean) => void;
|
|
24
24
|
};
|
|
25
25
|
handleRootKeydown: (e: KeyboardEvent) => void;
|
|
26
26
|
commandEl: import("svelte/store").Writable<HTMLDivElement | null>;
|
|
27
|
-
ids:
|
|
27
|
+
ids: {
|
|
28
|
+
list: string;
|
|
29
|
+
input: string;
|
|
30
|
+
label: string;
|
|
31
|
+
root: string;
|
|
32
|
+
};
|
|
28
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContext, setContext, tick } from 'svelte';
|
|
2
|
-
import { commandScore } from '../../internal/command-score
|
|
2
|
+
import { commandScore } from '../../internal/command-score';
|
|
3
3
|
import { get, writable } from 'svelte/store';
|
|
4
|
-
import { omit, generateId, toWritableStores, isUndefined, kbd, removeUndefined, effect } from '../../internal
|
|
4
|
+
import { omit, generateId, toWritableStores, isUndefined, kbd, removeUndefined, effect } from '../../internal';
|
|
5
5
|
import './command.scss';
|
|
6
6
|
const NAME = 'Command';
|
|
7
7
|
const STATE_NAME = 'CommandState';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { EmptyProps } from '../types.js';
|
|
2
|
+
declare const CommandEmpty: import("svelte").Component<EmptyProps, {}, "">;
|
|
2
3
|
type CommandEmpty = ReturnType<typeof CommandEmpty>;
|
|
3
4
|
export default CommandEmpty;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { GroupProps } from '../types.js';
|
|
2
|
+
declare const CommandGroup: import("svelte").Component<GroupProps, {}, "">;
|
|
2
3
|
type CommandGroup = ReturnType<typeof CommandGroup>;
|
|
3
4
|
export default CommandGroup;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import {derived, get} from 'svelte/store';
|
|
3
3
|
import {getCtx, getState, ITEM_SELECTOR, VALUE_ATTR} from '../command.js';
|
|
4
|
-
import {isBrowser} from '../../../internal/index
|
|
4
|
+
import {isBrowser} from '../../../internal/index';
|
|
5
5
|
import type {InputEvents, InputProps} from '../types.js';
|
|
6
6
|
import {sleep} from '../../../internal/helpers/sleep.js';
|
|
7
7
|
import {styles} from "../../input/Input";
|
|
8
|
-
import {IconSearch} from "
|
|
8
|
+
import {IconSearch} from "../../icons";
|
|
9
9
|
|
|
10
10
|
type $$Props = InputProps;
|
|
11
11
|
type $$Events = InputEvents;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ItemProps } from '../types.js';
|
|
2
|
+
declare const CommandItem: import("svelte").Component<ItemProps, {}, "">;
|
|
2
3
|
type CommandItem = ReturnType<typeof CommandItem>;
|
|
3
4
|
export default CommandItem;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LoadingProps } from '../types.js';
|
|
2
|
+
import type { Snippet } from "svelte";
|
|
3
|
+
type $$Props = LoadingProps;
|
|
4
|
+
type $$ComponentProps = $$Props & {
|
|
5
|
+
childrenWithProps: Snippet<[any]>;
|
|
6
|
+
};
|
|
7
|
+
declare const CommandLoading: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
2
8
|
type CommandLoading = ReturnType<typeof CommandLoading>;
|
|
3
9
|
export default CommandLoading;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SeparatorProps } from '../types.js';
|
|
2
|
+
declare const CommandSeparator: import("svelte").Component<SeparatorProps, {}, "">;
|
|
2
3
|
type CommandSeparator = ReturnType<typeof CommandSeparator>;
|
|
3
4
|
export default CommandSeparator;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import {type PopoverResponsiveProps} from "./PopoverResponsive";
|
|
3
|
-
import {Dialog
|
|
3
|
+
import {Dialog} from "../dialog";
|
|
4
|
+
import {Popover} from "../popover";
|
|
4
5
|
import {onMount} from "svelte";
|
|
5
6
|
import {getScreenWidth, SCREEN_BREAK_POINTS} from "../side-navigation/SideNavigation";
|
|
6
7
|
|