@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 +3 -1
- package/dist/index.js +3 -1
- package/dist/types/index.d.ts +8 -0
- package/dist/ui/box/Box.svelte +28 -0
- package/dist/ui/box/Box.svelte.d.ts +4 -0
- package/dist/ui/box/index.d.ts +1 -0
- package/dist/ui/box/index.js +1 -0
- package/dist/ui/icons/IconifyIcon.svelte.d.ts +5 -0
- package/dist/ui/icons/index.d.ts +1 -1
- package/dist/ui/icons/index.js +1 -1
- package/package.json +1 -1
- package/dist/ui/icons/Icons.svelte.d.ts +0 -5
- /package/dist/ui/icons/{Icons.svelte → IconifyIcon.svelte} +0 -0
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
|
|
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
|
|
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 };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
export { default as Box } from './Box.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Box } from './Box.svelte';
|
package/dist/ui/icons/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as IconifyIcon } from './IconifyIcon.svelte';
|
package/dist/ui/icons/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as IconifyIcon } from './IconifyIcon.svelte';
|
package/package.json
CHANGED
|
File without changes
|