@rkosafo/cai.components 0.0.13 → 0.0.15

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,7 +22,8 @@ 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
+ export * from './ui/icons/index.js';
26
+ export * from "./ui/box/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,5 @@ 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
+ import 'iconify-icon';
43
45
  export { YouTube, BaseEditor };
package/dist/index.js CHANGED
@@ -23,7 +23,8 @@ 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
+ export * from './ui/icons/index.js';
27
+ export * from "./ui/box/index.js";
27
28
  export * from './forms/input/index.js';
28
29
  export * from './forms/label/index.js';
29
30
  export * from './forms/datepicker/index.js';
@@ -41,4 +42,5 @@ export * from './forms/FormRadio/index.js';
41
42
  export * from './builders/filters/index.js';
42
43
  export * from './types/index.js';
43
44
  export * from './utils/index.js';
45
+ import 'iconify-icon';
44
46
  export { YouTube, BaseEditor };
@@ -772,3 +772,11 @@ export interface TabProps {
772
772
  tabStyle?: TabsVaraints['tabStyle'];
773
773
  divider?: boolean;
774
774
  }
775
+ export interface BoxProps extends svelteHTML.HTMLAttributes<HTMLDivElement> {
776
+ children: any;
777
+ otherClasses?: string;
778
+ bgWhite?: boolean;
779
+ rounded?: boolean;
780
+ padding?: boolean;
781
+ shadow?: boolean;
782
+ }
@@ -0,0 +1,28 @@
1
+ <script lang="ts">
2
+ import { cn, type BoxProps } from '../../index.js';
3
+
4
+ let {
5
+ children,
6
+ otherClasses = '',
7
+ bgWhite = false,
8
+ rounded = false,
9
+ padding = false,
10
+ shadow = false,
11
+ ...restProps
12
+ }: BoxProps = $props();
13
+ </script>
14
+
15
+ <div
16
+ {...restProps}
17
+ class={cn(
18
+ 'scrollbar-thumb-blue scrollbar-thumb-rounded scrollbar-track-blue-lighter scrollbar-w-2 scrolling-touch h-full w-full overflow-y-auto ',
19
+ otherClasses
20
+ )}
21
+ class:rounded-[5px]={rounded}
22
+ class:bgWhite
23
+ class:p-6={padding}
24
+ class:shadow-sm={shadow}
25
+ class:shadow-gray-400={shadow}
26
+ >
27
+ {@render children()}
28
+ </div>
@@ -0,0 +1,4 @@
1
+ import { type BoxProps } from '../../index.js';
2
+ declare const Box: import("svelte").Component<BoxProps, {}, "">;
3
+ type Box = ReturnType<typeof Box>;
4
+ export default Box;
@@ -0,0 +1 @@
1
+ export { default as Box } from './Box.svelte';
@@ -0,0 +1 @@
1
+ export { default as Box } from './Box.svelte';
@@ -0,0 +1,5 @@
1
+ declare const IconifyIcon: import("svelte").Component<{
2
+ icon: any;
3
+ } & Record<string, any>, {}, "">;
4
+ type IconifyIcon = ReturnType<typeof IconifyIcon>;
5
+ export default IconifyIcon;
@@ -1 +1 @@
1
- export { default as Icons } from './Icons.svelte';
1
+ export { default as IconifyIcon } from './IconifyIcon.svelte';
@@ -1 +1 @@
1
- export { default as Icons } from './Icons.svelte';
1
+ export { default as IconifyIcon } from './IconifyIcon.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkosafo/cai.components",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -1,5 +0,0 @@
1
- declare const Icons: import("svelte").Component<{
2
- icon: any;
3
- } & Record<string, any>, {}, "">;
4
- type Icons = ReturnType<typeof Icons>;
5
- export default Icons;