@rkosafo/cai.components 0.0.6 → 0.0.8

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/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export * from './ui/tableLoader/index.js';
22
22
  export * from './ui/alertDialog/index.js';
23
23
  export * from './ui/accordion/index.js';
24
24
  export * from './ui/tab/index.js';
25
+ export * from "./ui/icons/index.js";
25
26
  export * from './forms/input/index.js';
26
27
  export * from './forms/label/index.js';
27
28
  export * from './forms/datepicker/index.js';
@@ -39,4 +40,5 @@ export * from './forms/FormRadio/index.js';
39
40
  export * from './builders/filters/index.js';
40
41
  export * from './types/index.js';
41
42
  export * from './utils/index.js';
43
+ import "../styles/tf-layout.css";
42
44
  export { YouTube, BaseEditor };
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ export * from './ui/tableLoader/index.js';
23
23
  export * from './ui/alertDialog/index.js';
24
24
  export * from './ui/accordion/index.js';
25
25
  export * from './ui/tab/index.js';
26
+ export * from "./ui/icons/index.js";
26
27
  export * from './forms/input/index.js';
27
28
  export * from './forms/label/index.js';
28
29
  export * from './forms/datepicker/index.js';
@@ -40,4 +41,6 @@ export * from './forms/FormRadio/index.js';
40
41
  export * from './builders/filters/index.js';
41
42
  export * from './types/index.js';
42
43
  export * from './utils/index.js';
44
+ // styles
45
+ import "../styles/tf-layout.css";
43
46
  export { YouTube, BaseEditor };
@@ -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 {
@@ -0,0 +1,5 @@
1
+ <script lang="ts">
2
+ let { icon, ...otherProps } = $props();
3
+ </script>
4
+
5
+ <iconify-icon {icon} {...otherProps}></iconify-icon>
@@ -0,0 +1,5 @@
1
+ declare const Icons: import("svelte").Component<{
2
+ icon: any;
3
+ } & Record<string, any>, {}, "">;
4
+ type Icons = ReturnType<typeof Icons>;
5
+ export default Icons;
@@ -0,0 +1 @@
1
+ export { default as Icons } from './Icons.svelte';
@@ -0,0 +1 @@
1
+ export { default as Icons } from './Icons.svelte';
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.8",
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",