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.
@@ -1,4 +1,4 @@
1
- import type { CommandProps, Context, Group, State, StateStore } from './types.js';
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: any;
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: any;
21
- update: any;
22
- set: any;
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: any;
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.js';
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/index.js';
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,4 +1,4 @@
1
- @reference "../../themes/tera-ui-base.css";
1
+ @reference "tailwindcss/theme";
2
2
 
3
3
  [data-cmdk-root] {
4
4
  transition: transform 100ms ease;
@@ -1,3 +1,4 @@
1
- declare const Command: import("svelte").Component<any, {}, "">;
1
+ import type { CommandProps } from '../types.js';
2
+ declare const Command: import("svelte").Component<CommandProps, {}, "">;
2
3
  type Command = ReturnType<typeof Command>;
3
4
  export default Command;
@@ -1,3 +1,4 @@
1
- declare const CommandEmpty: import("svelte").Component<any, {}, "">;
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
- declare const CommandGroup: import("svelte").Component<any, {}, "">;
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.js';
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
- declare const CommandItem: import("svelte").Component<any, {}, "">;
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
- declare const CommandLoading: import("svelte").Component<any, {}, "">;
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
- declare const CommandSeparator: import("svelte").Component<any, {}, "">;
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,4 +1,4 @@
1
- @reference "../../themes/tera-ui-base.css";
1
+ @reference "tailwindcss/theme";
2
2
 
3
3
 
4
4
  .dialog-box {
@@ -1,3 +1,4 @@
1
+ import { type DropdownMenuItemProps } from "../DropdownMenu";
1
2
  declare const DropdownMenuItem: import("svelte").Component<DropdownMenuItemProps, {}, "">;
2
3
  type DropdownMenuItem = ReturnType<typeof DropdownMenuItem>;
3
4
  export default DropdownMenuItem;
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import {type PopoverResponsiveProps} from "./PopoverResponsive";
3
- import {Dialog, Popover} from "../..";
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
 
@@ -1,4 +1,4 @@
1
- @reference "../../themes/tera-ui-base.css";
1
+ @reference "tailwindcss/theme";
2
2
 
3
3
  :root {
4
4
  --sidebar-width: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tera-system-ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run customPrepublish && npm run generate-index && vite build && npm run package && npm run postpublish",