@rkosafo/cai.components 0.0.6 → 0.0.7

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,30 +1,8 @@
1
- <script lang="ts" module>
2
- export interface TFSidebarProps {
3
- homeUrl: string;
4
- logoUrl: string;
5
- appShortName: string;
6
- appName: string;
7
- hideSidebar?: boolean;
8
- menuItems: IMenuItem[];
9
- logo?: Snippet;
10
- }
11
-
12
- export interface IMenuItem {
13
- title: string;
14
- icon?: string;
15
- path?: string;
16
- items?: IMenuItem[] | null;
17
- description?: string;
18
- iconBg?: string;
19
- iconColor?: string;
20
- iconSize?: number;
21
- }
22
- </script>
23
-
24
1
  <script lang="ts">
25
2
  import { cn } from '../../../utils/index.js';
26
3
  import { page } from '$app/state';
27
4
  import type { Snippet } from 'svelte';
5
+ import type { IMenuItem, TFSidebarProps } from '../../../index.js';
28
6
 
29
7
  let {
30
8
  homeUrl,
@@ -1,23 +1,4 @@
1
- export interface TFSidebarProps {
2
- homeUrl: string;
3
- logoUrl: string;
4
- appShortName: string;
5
- appName: string;
6
- hideSidebar?: boolean;
7
- menuItems: IMenuItem[];
8
- logo?: Snippet;
9
- }
10
- export interface IMenuItem {
11
- title: string;
12
- icon?: string;
13
- path?: string;
14
- items?: IMenuItem[] | null;
15
- description?: string;
16
- iconBg?: string;
17
- iconColor?: string;
18
- iconSize?: number;
19
- }
20
- import type { Snippet } from 'svelte';
1
+ import type { TFSidebarProps } from '../../../index.js';
21
2
  declare const Sidebar: import("svelte").Component<TFSidebarProps, {}, "">;
22
3
  type Sidebar = ReturnType<typeof Sidebar>;
23
4
  export default Sidebar;
@@ -22,6 +22,25 @@ import type { RadioVariants } from '../forms/radio/theme.js';
22
22
  import type { CheckboxVariants } from '../forms/checkbox/theme.js';
23
23
  import type { AccordionItemVariants, AccordionVariants } from '../ui/accordion/theme.js';
24
24
  import type { TabsVaraints } from '../ui/tab/theme.js';
25
+ export interface TFSidebarProps {
26
+ homeUrl: string;
27
+ logoUrl: string;
28
+ appShortName: string;
29
+ appName: string;
30
+ hideSidebar?: boolean;
31
+ menuItems: IMenuItem[];
32
+ logo?: Snippet;
33
+ }
34
+ export interface IMenuItem {
35
+ title: string;
36
+ icon?: string;
37
+ path?: string;
38
+ items?: IMenuItem[] | null;
39
+ description?: string;
40
+ iconBg?: string;
41
+ iconColor?: string;
42
+ iconSize?: number;
43
+ }
25
44
  export type ParamsType = FadeParams | BlurParams | FlyParams | SlideParams | ScaleParams | undefined;
26
45
  export type TransitionFunc = (node: HTMLElement, params: ParamsType) => TransitionConfig;
27
46
  export interface TriggeredToggleEvent extends ToggleEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkosafo/cai.components",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -37,7 +37,6 @@
37
37
  "semantic-release": "^24.2.9",
38
38
  "svelte": "^5.0.0",
39
39
  "svelte-check": "^4.0.0",
40
- "svelte-headless-table": "^0.18.3",
41
40
  "tailwindcss": "^4.0.0",
42
41
  "typescript": "^5.0.0",
43
42
  "vite": "^7.0.4",
@@ -62,6 +61,7 @@
62
61
  "mdsvex": "^0.12.6",
63
62
  "nanoid": "^5.1.5",
64
63
  "svelecte": "^5.3.0",
64
+ "svelte-headless-table": "^0.18.3",
65
65
  "svelte-meta-tags": "^4.4.0",
66
66
  "tailwind-merge": "^3.3.1",
67
67
  "tailwind-variants": "^2.1.0",