@ibis-design/svelte 0.1.0
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/README.md +136 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1451 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/AppLayout.svelte.d.ts +1 -0
- package/dist/lib/AuthLayout.svelte.d.ts +1 -0
- package/dist/lib/Button.svelte.d.ts +1 -0
- package/dist/lib/Card.svelte.d.ts +1 -0
- package/dist/lib/DashboardLayout.svelte.d.ts +1 -0
- package/dist/types/button.d.ts +8 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/layout.d.ts +27 -0
- package/package.json +40 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button component variant and size options.
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
/** Visual variant for Button: primary (filled) or secondary (outline). */
|
|
6
|
+
export type ButtonVariant = "primary" | "secondary";
|
|
7
|
+
/** Size scale for Button: sm, md, or lg. */
|
|
8
|
+
export type ButtonSize = "sm" | "md" | "lg";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Snippet } from 'svelte';
|
|
2
|
+
/**
|
|
3
|
+
* Props for AuthLayout: optional logo, children (main), footer snippets.
|
|
4
|
+
*/
|
|
5
|
+
export interface AuthLayoutProps {
|
|
6
|
+
logo?: Snippet;
|
|
7
|
+
children?: Snippet;
|
|
8
|
+
footer?: Snippet;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Props for AppLayout: optional header, sidebar, children (main), footer snippets.
|
|
12
|
+
*/
|
|
13
|
+
export interface AppLayoutProps {
|
|
14
|
+
header?: Snippet;
|
|
15
|
+
sidebar?: Snippet;
|
|
16
|
+
children?: Snippet;
|
|
17
|
+
footer?: Snippet;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props for DashboardLayout: optional header, sidebar, children (main), footer snippets.
|
|
21
|
+
*/
|
|
22
|
+
export interface DashboardLayoutProps {
|
|
23
|
+
header?: Snippet;
|
|
24
|
+
sidebar?: Snippet;
|
|
25
|
+
children?: Snippet;
|
|
26
|
+
footer?: Snippet;
|
|
27
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ibis-design/svelte",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Svelte component library for the IBIS design system.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"svelte": "./dist/index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"svelte": "./dist/index.js",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@ibis-design/css": "^0.2.0",
|
|
23
|
+
"svelte": "^5.46.4"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@ibis-design/css": "0.2.0",
|
|
27
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
28
|
+
"svelte": "5.53.11",
|
|
29
|
+
"svelte-check": "^4.0.0",
|
|
30
|
+
"typescript": "^5.9.3",
|
|
31
|
+
"vite": "^8.0.0",
|
|
32
|
+
"vite-plugin-dts": "^4.3.0"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "vite build",
|
|
36
|
+
"prepublishOnly": "npm run build",
|
|
37
|
+
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
38
|
+
"dev": "vite build --watch"
|
|
39
|
+
}
|
|
40
|
+
}
|