@makolabs/ripple 0.0.1-dev.4 → 0.0.1-dev.40
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 +394 -54
- package/dist/button/Button.svelte +5 -3
- package/dist/button/Button.svelte.d.ts +1 -1
- package/dist/button/button.d.ts +40 -63
- package/dist/button/button.js +15 -14
- package/dist/charts/Chart.svelte +545 -0
- package/dist/charts/Chart.svelte.d.ts +4 -0
- package/dist/drawer/Drawer.svelte +13 -2
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/drawer.d.ts +0 -17
- package/dist/drawer/drawer.js +3 -3
- package/dist/elements/accordion/Accordion.svelte +83 -0
- package/dist/elements/accordion/Accordion.svelte.d.ts +4 -0
- package/dist/elements/accordion/accordion.d.ts +200 -0
- package/dist/elements/accordion/accordion.js +86 -0
- package/dist/elements/alert/Alert.svelte +57 -0
- package/dist/elements/alert/Alert.svelte.d.ts +4 -0
- package/dist/elements/badge/Badge.svelte +13 -5
- package/dist/elements/badge/Badge.svelte.d.ts +1 -1
- package/dist/elements/badge/badge.d.ts +0 -12
- package/dist/elements/dropdown/Dropdown.svelte +32 -37
- package/dist/elements/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/elements/dropdown/Select.svelte +143 -59
- package/dist/elements/dropdown/Select.svelte.d.ts +1 -1
- package/dist/elements/dropdown/dropdown.d.ts +34 -57
- package/dist/elements/dropdown/dropdown.js +10 -4
- package/dist/elements/dropdown/select.d.ts +34 -54
- package/dist/elements/dropdown/select.js +22 -14
- package/dist/elements/file-upload/FileUpload.svelte +130 -0
- package/dist/elements/file-upload/FileUpload.svelte.d.ts +4 -0
- package/dist/elements/file-upload/FilesPreview.svelte +93 -0
- package/dist/elements/file-upload/FilesPreview.svelte.d.ts +4 -0
- package/dist/elements/progress/Progress.svelte +145 -0
- package/dist/elements/progress/Progress.svelte.d.ts +4 -0
- package/dist/elements/timeline/Timeline.svelte +92 -0
- package/dist/elements/timeline/Timeline.svelte.d.ts +7 -0
- package/dist/forms/Checkbox.svelte +54 -0
- package/dist/forms/Checkbox.svelte.d.ts +4 -0
- package/dist/forms/DateRange.svelte +493 -0
- package/dist/forms/DateRange.svelte.d.ts +4 -0
- package/dist/forms/Form.svelte +39 -0
- package/dist/forms/Form.svelte.d.ts +4 -0
- package/dist/forms/Input.svelte +86 -0
- package/dist/forms/Input.svelte.d.ts +4 -0
- package/dist/forms/NumberInput.svelte +159 -0
- package/dist/forms/NumberInput.svelte.d.ts +4 -0
- package/dist/forms/RadioInputs.svelte +64 -0
- package/dist/forms/RadioInputs.svelte.d.ts +4 -0
- package/dist/forms/RadioPill.svelte +66 -0
- package/dist/forms/RadioPill.svelte.d.ts +4 -0
- package/dist/forms/Slider.svelte +342 -0
- package/dist/forms/Slider.svelte.d.ts +4 -0
- package/dist/forms/Tags.svelte +181 -0
- package/dist/forms/Tags.svelte.d.ts +4 -0
- package/dist/forms/Toggle.svelte +132 -0
- package/dist/forms/Toggle.svelte.d.ts +4 -0
- package/dist/forms/slider.d.ts +143 -0
- package/dist/forms/slider.js +62 -0
- package/dist/header/Breadcrumbs.svelte +2 -1
- package/dist/header/Breadcrumbs.svelte.d.ts +1 -1
- package/dist/header/PageHeader.svelte +2 -2
- package/dist/header/PageHeader.svelte.d.ts +1 -1
- package/dist/header/breadcrumbs.d.ts +20 -14
- package/dist/header/breadcrumbs.js +6 -0
- package/dist/helper/date.d.ts +7 -0
- package/dist/helper/date.js +15 -0
- package/dist/index.d.ts +762 -9
- package/dist/index.js +70 -16
- package/dist/layout/card/Card.svelte +5 -8
- package/dist/layout/card/Card.svelte.d.ts +1 -1
- package/dist/layout/card/StatsCard.svelte +119 -89
- package/dist/layout/card/StatsCard.svelte.d.ts +1 -1
- package/dist/layout/card/card.d.ts +22 -33
- package/dist/layout/card/card.js +9 -8
- package/dist/layout/card/stats-card.d.ts +22 -39
- package/dist/layout/card/stats-card.js +14 -14
- package/dist/layout/navbar/navbar.d.ts +0 -23
- package/dist/layout/sidebar/NavGroup.svelte +38 -48
- package/dist/layout/sidebar/NavGroup.svelte.d.ts +1 -1
- package/dist/layout/sidebar/NavItem.svelte +3 -3
- package/dist/layout/sidebar/NavItem.svelte.d.ts +1 -1
- package/dist/layout/sidebar/Sidebar.svelte +101 -72
- package/dist/layout/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/layout/table/Table.svelte +2 -2
- package/dist/layout/table/Table.svelte.d.ts +1 -1
- package/dist/layout/table/table.d.ts +1 -20
- package/dist/layout/table/table.js +0 -8
- package/dist/layout/tabs/TabGroup.svelte +2 -2
- package/dist/layout/tabs/TabGroup.svelte.d.ts +2 -2
- package/dist/layout/tabs/tabs.d.ts +2 -2
- package/dist/modal/Modal.svelte +2 -1
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/modal/modal.d.ts +0 -23
- package/dist/modal/modal.js +3 -3
- package/dist/sonner/sonner.svelte +13 -0
- package/dist/sonner/sonner.svelte.d.ts +4 -0
- package/dist/types/variants.d.ts +1 -21
- package/dist/types/variants.js +1 -19
- package/dist/variants.d.ts +30 -0
- package/dist/variants.js +36 -0
- package/package.json +7 -3
- package/dist/button/index.d.ts +0 -1
- package/dist/button/index.js +0 -1
- package/dist/drawer/index.d.ts +0 -2
- package/dist/drawer/index.js +0 -1
- package/dist/elements/badge/index.d.ts +0 -2
- package/dist/elements/badge/index.js +0 -2
- package/dist/elements/dropdown/index.d.ts +0 -3
- package/dist/elements/dropdown/index.js +0 -2
- package/dist/header/index.d.ts +0 -4
- package/dist/header/index.js +0 -2
- package/dist/header/pageheaders.d.ts +0 -10
- package/dist/header/pageheaders.js +0 -1
- package/dist/layout/card/index.d.ts +0 -4
- package/dist/layout/card/index.js +0 -2
- package/dist/layout/index.d.ts +0 -7
- package/dist/layout/index.js +0 -7
- package/dist/layout/navbar/index.d.ts +0 -2
- package/dist/layout/navbar/index.js +0 -2
- package/dist/layout/sidebar/index.d.ts +0 -2
- package/dist/layout/sidebar/index.js +0 -1
- package/dist/layout/sidebar/sidebar.d.ts +0 -46
- package/dist/layout/sidebar/sidebar.js +0 -1
- package/dist/layout/table/index.d.ts +0 -3
- package/dist/layout/table/index.js +0 -2
- package/dist/layout/tabs/index.d.ts +0 -3
- package/dist/layout/tabs/index.js +0 -3
- package/dist/modal/index.d.ts +0 -1
- package/dist/modal/index.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { cn } from '../../helper/cls.js';
|
|
3
|
-
import { table
|
|
4
|
-
|
|
3
|
+
import { table } from './table.js';
|
|
4
|
+
import type { TableProps, SortDirection, SortState } from '../../index.js';
|
|
5
5
|
let {
|
|
6
6
|
data = [],
|
|
7
7
|
columns = [],
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import type { ClassValue } from 'tailwind-variants';
|
|
2
|
-
import type {
|
|
3
|
-
import type { VariantColors, VariantSizes } from '../../types/variants.js';
|
|
4
|
-
export type DataRow = Record<string, any>;
|
|
5
|
-
export type KeyType = keyof DataRow;
|
|
6
|
-
export type StatusType = 'active' | 'inactive' | 'pending' | 'error' | 'default';
|
|
7
|
-
export type TableColumn<T extends DataRow = any> = {
|
|
8
|
-
key: KeyType;
|
|
9
|
-
header: string;
|
|
10
|
-
cell?: Snippet<[row: T, key: KeyType, index?: number]>;
|
|
11
|
-
sortable?: boolean;
|
|
12
|
-
sortKey?: string;
|
|
13
|
-
align?: 'left' | 'center' | 'right';
|
|
14
|
-
width?: string;
|
|
15
|
-
class?: ClassValue;
|
|
16
|
-
};
|
|
17
|
-
export type SortDirection = 'asc' | 'desc' | null;
|
|
18
|
-
export type SortState = {
|
|
19
|
-
column: string | null;
|
|
20
|
-
direction: SortDirection;
|
|
21
|
-
};
|
|
2
|
+
import type { VariantColors, VariantSizes } from '../../index.js';
|
|
22
3
|
export declare const table: import("tailwind-variants").TVReturnType<{
|
|
23
4
|
size: {
|
|
24
5
|
xs: {
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
|
-
// Prebuild Cell rendering options
|
|
3
|
-
// Snippet 1 - Date
|
|
4
|
-
// Snippet 2 - Currency
|
|
5
|
-
// Snippet 3 - Percentage
|
|
6
|
-
// Snippet 4 - Phone Number
|
|
7
|
-
// Snippet 5 - Email
|
|
8
|
-
// Snippet 6 - Status
|
|
9
|
-
// Snippet 7 - Time
|
|
10
2
|
export const table = tv({
|
|
11
3
|
slots: {
|
|
12
4
|
base: 'w-full',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { cn } from '../../helper/cls.js';
|
|
3
3
|
import Tab from './Tab.svelte';
|
|
4
|
-
import { tabs, type
|
|
4
|
+
import { tabs, type TabsGroupProps } from './tabs.js';
|
|
5
5
|
import { setContext } from 'svelte';
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
panelClass = '',
|
|
15
15
|
onchange = () => {},
|
|
16
16
|
children
|
|
17
|
-
}:
|
|
17
|
+
}: TabsGroupProps = $props();
|
|
18
18
|
|
|
19
19
|
const { base, list, panel } = $derived(
|
|
20
20
|
tabs({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
declare const TabGroup: import("svelte").Component<
|
|
1
|
+
import { type TabsGroupProps } from './tabs.js';
|
|
2
|
+
declare const TabGroup: import("svelte").Component<TabsGroupProps, {}, "selected">;
|
|
3
3
|
type TabGroup = ReturnType<typeof TabGroup>;
|
|
4
4
|
export default TabGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ClassValue } from 'tailwind-variants';
|
|
2
2
|
import type { Component, Snippet } from 'svelte';
|
|
3
|
-
import type { VariantColors, VariantSizes } from '../../
|
|
3
|
+
import type { VariantColors, VariantSizes } from '../../index.js';
|
|
4
4
|
export type TabItem = {
|
|
5
5
|
value: string;
|
|
6
6
|
label: string;
|
|
@@ -17,7 +17,7 @@ export type TabProps = {
|
|
|
17
17
|
size?: VariantSizes;
|
|
18
18
|
onclick?: (event: Event) => void;
|
|
19
19
|
};
|
|
20
|
-
export type
|
|
20
|
+
export type TabsGroupProps = {
|
|
21
21
|
tabs: TabItem[];
|
|
22
22
|
selected?: string;
|
|
23
23
|
color?: VariantColors;
|
package/dist/modal/Modal.svelte
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import { fade, scale } from 'svelte/transition';
|
|
5
5
|
import { quintOut } from 'svelte/easing';
|
|
6
6
|
import { cn } from '../helper/cls.js';
|
|
7
|
-
import { modal
|
|
7
|
+
import { modal } from './modal.js';
|
|
8
|
+
import type { MakeModalProps } from '../index.js';
|
|
8
9
|
|
|
9
10
|
let {
|
|
10
11
|
open = $bindable(false),
|
package/dist/modal/modal.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { VariantSizes } from '../types/variants.js';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
1
|
export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
4
2
|
open: {
|
|
5
3
|
true: {
|
|
@@ -211,24 +209,3 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
211
209
|
title: string;
|
|
212
210
|
closeButton: string;
|
|
213
211
|
}, undefined, unknown, unknown, undefined>>;
|
|
214
|
-
export type MakeModalProps = {
|
|
215
|
-
open?: boolean;
|
|
216
|
-
onclose?: () => void;
|
|
217
|
-
title?: string;
|
|
218
|
-
description?: string;
|
|
219
|
-
hideCloseButton?: boolean;
|
|
220
|
-
closeOnBackdropClick?: boolean;
|
|
221
|
-
closeOnEsc?: boolean;
|
|
222
|
-
position?: keyof typeof modal.variants.position;
|
|
223
|
-
size?: VariantSizes;
|
|
224
|
-
class?: string;
|
|
225
|
-
backdropclass?: string;
|
|
226
|
-
contentclass?: string;
|
|
227
|
-
headerclass?: string;
|
|
228
|
-
bodyclass?: string;
|
|
229
|
-
titleclass?: string;
|
|
230
|
-
children?: Snippet;
|
|
231
|
-
header?: Snippet;
|
|
232
|
-
footer?: Snippet;
|
|
233
|
-
custom?: Snippet;
|
|
234
|
-
};
|
package/dist/modal/modal.js
CHANGED
|
@@ -5,10 +5,10 @@ export const modal = tv({
|
|
|
5
5
|
backdrop: 'fixed inset-0 transition-opacity bg-black/50',
|
|
6
6
|
contentWrapper: 'absolute transform overflow-hidden transition-all px-2',
|
|
7
7
|
content: 'bg-white overflow-hidden rounded-lg',
|
|
8
|
-
header: 'px-4 py-3 flex items-center justify-between border-b border-
|
|
8
|
+
header: 'px-4 py-3 flex items-center justify-between border-b border-default-200',
|
|
9
9
|
body: 'px-3 py-2 max-h-[70dvh] overflow-y-auto',
|
|
10
10
|
title: 'text-default-900 leading-6 text-base font-semibold',
|
|
11
|
-
closeButton: 'text-
|
|
11
|
+
closeButton: 'text-default-400 hover:text-default-500 rounded-md cursor-pointer'
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
open: {
|
|
@@ -65,7 +65,7 @@ export const modal = tv({
|
|
|
65
65
|
content: 'border-0'
|
|
66
66
|
},
|
|
67
67
|
default: {
|
|
68
|
-
content: 'border border-
|
|
68
|
+
content: 'border border-default-200'
|
|
69
69
|
},
|
|
70
70
|
colored: {
|
|
71
71
|
content: 'border'
|
package/dist/types/variants.d.ts
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
readonly DEFAULT: "default";
|
|
3
|
-
readonly PRIMARY: "primary";
|
|
4
|
-
readonly SECONDARY: "secondary";
|
|
5
|
-
readonly INFO: "info";
|
|
6
|
-
readonly SUCCESS: "success";
|
|
7
|
-
readonly WARNING: "warning";
|
|
8
|
-
readonly DANGER: "danger";
|
|
9
|
-
};
|
|
10
|
-
export type VariantColors = (typeof Color)[keyof typeof Color];
|
|
11
|
-
export declare const Size: {
|
|
12
|
-
readonly XS: "xs";
|
|
13
|
-
readonly SM: "sm";
|
|
14
|
-
readonly BASE: "base";
|
|
15
|
-
readonly LG: "lg";
|
|
16
|
-
readonly XL: "xl";
|
|
17
|
-
readonly XXL: "2xl";
|
|
18
|
-
};
|
|
19
|
-
export type VariantSizes = (typeof Size)[keyof typeof Size];
|
|
20
|
-
export declare const colors: VariantColors[];
|
|
21
|
-
export declare const sizes: VariantSizes[];
|
|
1
|
+
export {};
|
package/dist/types/variants.js
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
DEFAULT: 'default',
|
|
3
|
-
PRIMARY: 'primary',
|
|
4
|
-
SECONDARY: 'secondary',
|
|
5
|
-
INFO: 'info',
|
|
6
|
-
SUCCESS: 'success',
|
|
7
|
-
WARNING: 'warning',
|
|
8
|
-
DANGER: 'danger'
|
|
9
|
-
};
|
|
10
|
-
export const Size = {
|
|
11
|
-
XS: 'xs',
|
|
12
|
-
SM: 'sm',
|
|
13
|
-
BASE: 'base',
|
|
14
|
-
LG: 'lg',
|
|
15
|
-
XL: 'xl',
|
|
16
|
-
XXL: '2xl'
|
|
17
|
-
};
|
|
18
|
-
export const colors = Object.values(Color);
|
|
19
|
-
export const sizes = Object.values(Size);
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ChartColors, VariantColors, VariantSizes } from './index.js';
|
|
2
|
+
export declare const Color: {
|
|
3
|
+
DEFAULT: string;
|
|
4
|
+
PRIMARY: string;
|
|
5
|
+
SECONDARY: string;
|
|
6
|
+
INFO: string;
|
|
7
|
+
SUCCESS: string;
|
|
8
|
+
WARNING: string;
|
|
9
|
+
DANGER: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Size: {
|
|
12
|
+
XS: string;
|
|
13
|
+
SM: string;
|
|
14
|
+
BASE: string;
|
|
15
|
+
LG: string;
|
|
16
|
+
XL: string;
|
|
17
|
+
XXL: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const ChartColor: {
|
|
20
|
+
readonly HEALTH: "health";
|
|
21
|
+
readonly PROPERTY: "property";
|
|
22
|
+
readonly AUTO: "auto";
|
|
23
|
+
readonly LIFE: "life";
|
|
24
|
+
readonly OTHER: "other";
|
|
25
|
+
readonly DEFAULT: "default";
|
|
26
|
+
};
|
|
27
|
+
export declare const defaultChartColors: ChartColors;
|
|
28
|
+
export declare const colors: VariantColors[];
|
|
29
|
+
export declare const sizes: VariantSizes[];
|
|
30
|
+
export declare const chartColors: ("default" | "health" | "property" | "auto" | "life" | "other")[];
|
package/dist/variants.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const Color = {
|
|
2
|
+
DEFAULT: 'default',
|
|
3
|
+
PRIMARY: 'primary',
|
|
4
|
+
SECONDARY: 'secondary',
|
|
5
|
+
INFO: 'info',
|
|
6
|
+
SUCCESS: 'success',
|
|
7
|
+
WARNING: 'warning',
|
|
8
|
+
DANGER: 'danger'
|
|
9
|
+
};
|
|
10
|
+
export const Size = {
|
|
11
|
+
XS: 'xs',
|
|
12
|
+
SM: 'sm',
|
|
13
|
+
BASE: 'base',
|
|
14
|
+
LG: 'lg',
|
|
15
|
+
XL: 'xl',
|
|
16
|
+
XXL: '2xl'
|
|
17
|
+
};
|
|
18
|
+
export const ChartColor = {
|
|
19
|
+
HEALTH: 'health',
|
|
20
|
+
PROPERTY: 'property',
|
|
21
|
+
AUTO: 'auto',
|
|
22
|
+
LIFE: 'life',
|
|
23
|
+
OTHER: 'other',
|
|
24
|
+
DEFAULT: 'default'
|
|
25
|
+
};
|
|
26
|
+
export const defaultChartColors = {
|
|
27
|
+
[ChartColor.HEALTH]: '#1F69FF',
|
|
28
|
+
[ChartColor.PROPERTY]: '#2D9D78',
|
|
29
|
+
[ChartColor.AUTO]: '#E8A317',
|
|
30
|
+
[ChartColor.LIFE]: '#E34974',
|
|
31
|
+
[ChartColor.OTHER]: '#7B3FE4',
|
|
32
|
+
[ChartColor.DEFAULT]: '#6B7280'
|
|
33
|
+
};
|
|
34
|
+
export const colors = Object.values(Color);
|
|
35
|
+
export const sizes = Object.values(Size);
|
|
36
|
+
export const chartColors = Object.values(ChartColor);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makolabs/ripple",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.40",
|
|
4
4
|
"description": "Simple Svelte 5 powered component library ✨",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/makolabsai/
|
|
7
|
+
"url": "https://github.com/makolabsai/ripple-ui.git"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite dev",
|
|
@@ -63,11 +63,13 @@
|
|
|
63
63
|
"publint": "^0.3.2",
|
|
64
64
|
"svelte": "^5.0.0",
|
|
65
65
|
"svelte-check": "^4.0.0",
|
|
66
|
+
"sveltekit-superforms": "^2.24.0",
|
|
66
67
|
"tailwindcss": "^4.0.0",
|
|
67
68
|
"typescript": "^5.0.0",
|
|
68
69
|
"typescript-eslint": "^8.20.0",
|
|
69
70
|
"vite": "^6.0.0",
|
|
70
|
-
"vitest": "^3.0.0"
|
|
71
|
+
"vitest": "^3.0.0",
|
|
72
|
+
"zod": "^3.24.2"
|
|
71
73
|
},
|
|
72
74
|
"keywords": [
|
|
73
75
|
"svelte",
|
|
@@ -95,7 +97,9 @@
|
|
|
95
97
|
"toast"
|
|
96
98
|
],
|
|
97
99
|
"dependencies": {
|
|
100
|
+
"dayjs": "^1.11.13",
|
|
98
101
|
"echarts": "^5.6.0",
|
|
102
|
+
"svelte-sonner": "^0.3.28",
|
|
99
103
|
"tailwind-merge": "^3.0.2",
|
|
100
104
|
"tailwind-variants": "^1.0.0"
|
|
101
105
|
}
|
package/dist/button/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './Button.svelte';
|
package/dist/button/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './Button.svelte';
|
package/dist/drawer/index.d.ts
DELETED
package/dist/drawer/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Drawer } from './Drawer.svelte';
|
package/dist/header/index.d.ts
DELETED
package/dist/header/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ClassValue } from 'tailwind-variants';
|
|
2
|
-
import type { BreadcrumbItem } from './breadcrumbs.js';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
export type PageHeaderProps = {
|
|
5
|
-
title: string;
|
|
6
|
-
breadcrumbs?: BreadcrumbItem[];
|
|
7
|
-
children?: Snippet;
|
|
8
|
-
class?: ClassValue;
|
|
9
|
-
titleclass?: ClassValue;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {} from 'tailwind-variants';
|
package/dist/layout/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Card } from './card/Card.svelte';
|
|
2
|
-
export { default as Tab } from './tabs/Tab.svelte';
|
|
3
|
-
export { default as TabGroup } from './tabs/TabGroup.svelte';
|
|
4
|
-
export { default as Table } from './table/Table.svelte';
|
|
5
|
-
export { tabs, type TabItem, type TabProps, type TabsProps } from './tabs/tabs.js';
|
|
6
|
-
export { default as Cell } from './table/Cells.svelte';
|
|
7
|
-
export { default as StatsCard } from './card/StatsCard.svelte';
|
package/dist/layout/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Card } from './card/Card.svelte';
|
|
2
|
-
export { default as Tab } from './tabs/Tab.svelte';
|
|
3
|
-
export { default as TabGroup } from './tabs/TabGroup.svelte';
|
|
4
|
-
export { default as Table } from './table/Table.svelte';
|
|
5
|
-
export { tabs } from './tabs/tabs.js';
|
|
6
|
-
export { default as Cell } from './table/Cells.svelte';
|
|
7
|
-
export { default as StatsCard } from './card/StatsCard.svelte';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Sidebar } from './Sidebar.svelte';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'svelte';
|
|
2
|
-
import type { ClassValue } from 'tailwind-variants';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
export type MenuBar = {
|
|
5
|
-
collapsed: boolean;
|
|
6
|
-
};
|
|
7
|
-
export interface BaseNavigationItem {
|
|
8
|
-
label: string;
|
|
9
|
-
}
|
|
10
|
-
export interface WithIcon {
|
|
11
|
-
Icon?: Component;
|
|
12
|
-
}
|
|
13
|
-
export interface Activatable {
|
|
14
|
-
active?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface LinkItem extends BaseNavigationItem, WithIcon, Activatable {
|
|
17
|
-
href: string;
|
|
18
|
-
meta?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ParentItem extends BaseNavigationItem, WithIcon, Activatable {
|
|
21
|
-
children: LinkItem[];
|
|
22
|
-
}
|
|
23
|
-
export interface DividerItem {
|
|
24
|
-
type: 'horizontal-divider';
|
|
25
|
-
}
|
|
26
|
-
export type NavigationItem = LinkItem | ParentItem | DividerItem;
|
|
27
|
-
export type LogoType = {
|
|
28
|
-
src?: string;
|
|
29
|
-
title: string;
|
|
30
|
-
};
|
|
31
|
-
export interface NavGroupProps {
|
|
32
|
-
labelArea: Snippet<[ClassValue]>;
|
|
33
|
-
active?: boolean;
|
|
34
|
-
children?: Snippet;
|
|
35
|
-
class?: ClassValue;
|
|
36
|
-
}
|
|
37
|
-
export interface NavItemProps {
|
|
38
|
-
href: string;
|
|
39
|
-
active?: boolean;
|
|
40
|
-
children: Snippet<[ClassValue]>;
|
|
41
|
-
class?: ClassValue;
|
|
42
|
-
}
|
|
43
|
-
export interface SidebarProps {
|
|
44
|
-
items?: NavigationItem[];
|
|
45
|
-
logo: LogoType;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/modal/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Modal } from './Modal.svelte';
|
package/dist/modal/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Modal } from './Modal.svelte';
|