@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.
Files changed (129) hide show
  1. package/README.md +394 -54
  2. package/dist/button/Button.svelte +5 -3
  3. package/dist/button/Button.svelte.d.ts +1 -1
  4. package/dist/button/button.d.ts +40 -63
  5. package/dist/button/button.js +15 -14
  6. package/dist/charts/Chart.svelte +545 -0
  7. package/dist/charts/Chart.svelte.d.ts +4 -0
  8. package/dist/drawer/Drawer.svelte +13 -2
  9. package/dist/drawer/Drawer.svelte.d.ts +1 -1
  10. package/dist/drawer/drawer.d.ts +0 -17
  11. package/dist/drawer/drawer.js +3 -3
  12. package/dist/elements/accordion/Accordion.svelte +83 -0
  13. package/dist/elements/accordion/Accordion.svelte.d.ts +4 -0
  14. package/dist/elements/accordion/accordion.d.ts +200 -0
  15. package/dist/elements/accordion/accordion.js +86 -0
  16. package/dist/elements/alert/Alert.svelte +57 -0
  17. package/dist/elements/alert/Alert.svelte.d.ts +4 -0
  18. package/dist/elements/badge/Badge.svelte +13 -5
  19. package/dist/elements/badge/Badge.svelte.d.ts +1 -1
  20. package/dist/elements/badge/badge.d.ts +0 -12
  21. package/dist/elements/dropdown/Dropdown.svelte +32 -37
  22. package/dist/elements/dropdown/Dropdown.svelte.d.ts +1 -1
  23. package/dist/elements/dropdown/Select.svelte +143 -59
  24. package/dist/elements/dropdown/Select.svelte.d.ts +1 -1
  25. package/dist/elements/dropdown/dropdown.d.ts +34 -57
  26. package/dist/elements/dropdown/dropdown.js +10 -4
  27. package/dist/elements/dropdown/select.d.ts +34 -54
  28. package/dist/elements/dropdown/select.js +22 -14
  29. package/dist/elements/file-upload/FileUpload.svelte +130 -0
  30. package/dist/elements/file-upload/FileUpload.svelte.d.ts +4 -0
  31. package/dist/elements/file-upload/FilesPreview.svelte +93 -0
  32. package/dist/elements/file-upload/FilesPreview.svelte.d.ts +4 -0
  33. package/dist/elements/progress/Progress.svelte +145 -0
  34. package/dist/elements/progress/Progress.svelte.d.ts +4 -0
  35. package/dist/elements/timeline/Timeline.svelte +92 -0
  36. package/dist/elements/timeline/Timeline.svelte.d.ts +7 -0
  37. package/dist/forms/Checkbox.svelte +54 -0
  38. package/dist/forms/Checkbox.svelte.d.ts +4 -0
  39. package/dist/forms/DateRange.svelte +493 -0
  40. package/dist/forms/DateRange.svelte.d.ts +4 -0
  41. package/dist/forms/Form.svelte +39 -0
  42. package/dist/forms/Form.svelte.d.ts +4 -0
  43. package/dist/forms/Input.svelte +86 -0
  44. package/dist/forms/Input.svelte.d.ts +4 -0
  45. package/dist/forms/NumberInput.svelte +159 -0
  46. package/dist/forms/NumberInput.svelte.d.ts +4 -0
  47. package/dist/forms/RadioInputs.svelte +64 -0
  48. package/dist/forms/RadioInputs.svelte.d.ts +4 -0
  49. package/dist/forms/RadioPill.svelte +66 -0
  50. package/dist/forms/RadioPill.svelte.d.ts +4 -0
  51. package/dist/forms/Slider.svelte +342 -0
  52. package/dist/forms/Slider.svelte.d.ts +4 -0
  53. package/dist/forms/Tags.svelte +181 -0
  54. package/dist/forms/Tags.svelte.d.ts +4 -0
  55. package/dist/forms/Toggle.svelte +132 -0
  56. package/dist/forms/Toggle.svelte.d.ts +4 -0
  57. package/dist/forms/slider.d.ts +143 -0
  58. package/dist/forms/slider.js +62 -0
  59. package/dist/header/Breadcrumbs.svelte +2 -1
  60. package/dist/header/Breadcrumbs.svelte.d.ts +1 -1
  61. package/dist/header/PageHeader.svelte +2 -2
  62. package/dist/header/PageHeader.svelte.d.ts +1 -1
  63. package/dist/header/breadcrumbs.d.ts +20 -14
  64. package/dist/header/breadcrumbs.js +6 -0
  65. package/dist/helper/date.d.ts +7 -0
  66. package/dist/helper/date.js +15 -0
  67. package/dist/index.d.ts +762 -9
  68. package/dist/index.js +70 -16
  69. package/dist/layout/card/Card.svelte +5 -8
  70. package/dist/layout/card/Card.svelte.d.ts +1 -1
  71. package/dist/layout/card/StatsCard.svelte +119 -89
  72. package/dist/layout/card/StatsCard.svelte.d.ts +1 -1
  73. package/dist/layout/card/card.d.ts +22 -33
  74. package/dist/layout/card/card.js +9 -8
  75. package/dist/layout/card/stats-card.d.ts +22 -39
  76. package/dist/layout/card/stats-card.js +14 -14
  77. package/dist/layout/navbar/navbar.d.ts +0 -23
  78. package/dist/layout/sidebar/NavGroup.svelte +38 -48
  79. package/dist/layout/sidebar/NavGroup.svelte.d.ts +1 -1
  80. package/dist/layout/sidebar/NavItem.svelte +3 -3
  81. package/dist/layout/sidebar/NavItem.svelte.d.ts +1 -1
  82. package/dist/layout/sidebar/Sidebar.svelte +101 -72
  83. package/dist/layout/sidebar/Sidebar.svelte.d.ts +1 -1
  84. package/dist/layout/table/Table.svelte +2 -2
  85. package/dist/layout/table/Table.svelte.d.ts +1 -1
  86. package/dist/layout/table/table.d.ts +1 -20
  87. package/dist/layout/table/table.js +0 -8
  88. package/dist/layout/tabs/TabGroup.svelte +2 -2
  89. package/dist/layout/tabs/TabGroup.svelte.d.ts +2 -2
  90. package/dist/layout/tabs/tabs.d.ts +2 -2
  91. package/dist/modal/Modal.svelte +2 -1
  92. package/dist/modal/Modal.svelte.d.ts +1 -1
  93. package/dist/modal/modal.d.ts +0 -23
  94. package/dist/modal/modal.js +3 -3
  95. package/dist/sonner/sonner.svelte +13 -0
  96. package/dist/sonner/sonner.svelte.d.ts +4 -0
  97. package/dist/types/variants.d.ts +1 -21
  98. package/dist/types/variants.js +1 -19
  99. package/dist/variants.d.ts +30 -0
  100. package/dist/variants.js +36 -0
  101. package/package.json +7 -3
  102. package/dist/button/index.d.ts +0 -1
  103. package/dist/button/index.js +0 -1
  104. package/dist/drawer/index.d.ts +0 -2
  105. package/dist/drawer/index.js +0 -1
  106. package/dist/elements/badge/index.d.ts +0 -2
  107. package/dist/elements/badge/index.js +0 -2
  108. package/dist/elements/dropdown/index.d.ts +0 -3
  109. package/dist/elements/dropdown/index.js +0 -2
  110. package/dist/header/index.d.ts +0 -4
  111. package/dist/header/index.js +0 -2
  112. package/dist/header/pageheaders.d.ts +0 -10
  113. package/dist/header/pageheaders.js +0 -1
  114. package/dist/layout/card/index.d.ts +0 -4
  115. package/dist/layout/card/index.js +0 -2
  116. package/dist/layout/index.d.ts +0 -7
  117. package/dist/layout/index.js +0 -7
  118. package/dist/layout/navbar/index.d.ts +0 -2
  119. package/dist/layout/navbar/index.js +0 -2
  120. package/dist/layout/sidebar/index.d.ts +0 -2
  121. package/dist/layout/sidebar/index.js +0 -1
  122. package/dist/layout/sidebar/sidebar.d.ts +0 -46
  123. package/dist/layout/sidebar/sidebar.js +0 -1
  124. package/dist/layout/table/index.d.ts +0 -3
  125. package/dist/layout/table/index.js +0 -2
  126. package/dist/layout/tabs/index.d.ts +0 -3
  127. package/dist/layout/tabs/index.js +0 -3
  128. package/dist/modal/index.d.ts +0 -1
  129. package/dist/modal/index.js +0 -1
@@ -1,4 +1,4 @@
1
- import type { SidebarProps } from './sidebar.js';
1
+ import type { SidebarProps } from '../../index.js';
2
2
  declare const Sidebar: import("svelte").Component<SidebarProps, {}, "">;
3
3
  type Sidebar = ReturnType<typeof Sidebar>;
4
4
  export default Sidebar;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { cn } from '../../helper/cls.js';
3
- import { table, type TableProps, type SortDirection, type SortState } from './table.js';
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,4 +1,4 @@
1
- import { type TableProps } from './table.js';
1
+ import type { TableProps } from '../../index.js';
2
2
  declare const Table: import("svelte").Component<TableProps<any>, {}, "selected">;
3
3
  type Table = ReturnType<typeof Table>;
4
4
  export default Table;
@@ -1,24 +1,5 @@
1
1
  import type { ClassValue } from 'tailwind-variants';
2
- import type { Snippet } from 'svelte';
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 TabsProps } from './tabs.js';
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
- }: TabsProps = $props();
17
+ }: TabsGroupProps = $props();
18
18
 
19
19
  const { base, list, panel } = $derived(
20
20
  tabs({
@@ -1,4 +1,4 @@
1
- import { type TabsProps } from './tabs.js';
2
- declare const TabGroup: import("svelte").Component<TabsProps, {}, "selected">;
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 '../../types/variants.js';
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 TabsProps = {
20
+ export type TabsGroupProps = {
21
21
  tabs: TabItem[];
22
22
  selected?: string;
23
23
  color?: VariantColors;
@@ -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, type MakeModalProps } from './modal.js';
7
+ import { modal } from './modal.js';
8
+ import type { MakeModalProps } from '../index.js';
8
9
 
9
10
  let {
10
11
  open = $bindable(false),
@@ -1,4 +1,4 @@
1
- import { type MakeModalProps } from './modal.js';
1
+ import type { MakeModalProps } from '../index.js';
2
2
  declare const Modal: import("svelte").Component<MakeModalProps, {}, "open">;
3
3
  type Modal = ReturnType<typeof Modal>;
4
4
  export default Modal;
@@ -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
- };
@@ -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-gray-200',
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-gray-400 hover:text-gray-500 rounded-md cursor-pointer'
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-gray-200'
68
+ content: 'border border-default-200'
69
69
  },
70
70
  colored: {
71
71
  content: 'border'
@@ -0,0 +1,13 @@
1
+ <script lang="ts">
2
+ import { Toaster as Sonner, type ToasterProps as SonnerProps } from 'svelte-sonner';
3
+
4
+ let restProps: SonnerProps = $props();
5
+ </script>
6
+
7
+ <Sonner
8
+ class="toaster group"
9
+ toastOptions={{
10
+
11
+ }}
12
+ {...restProps}
13
+ />
@@ -0,0 +1,4 @@
1
+ import { Toaster as Sonner, type ToasterProps as SonnerProps } from 'svelte-sonner';
2
+ declare const Sonner: import("svelte").Component<SonnerProps, {}, "">;
3
+ type Sonner = ReturnType<typeof Sonner>;
4
+ export default Sonner;
@@ -1,21 +1 @@
1
- export declare const Color: {
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 {};
@@ -1,19 +1 @@
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 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")[];
@@ -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.4",
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/mako-ui-components.git"
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
  }
@@ -1 +0,0 @@
1
- export { default as Button } from './Button.svelte';
@@ -1 +0,0 @@
1
- export { default as Button } from './Button.svelte';
@@ -1,2 +0,0 @@
1
- export { default as Drawer } from './Drawer.svelte';
2
- export type { DrawerProps } from './drawer.js';
@@ -1 +0,0 @@
1
- export { default as Drawer } from './Drawer.svelte';
@@ -1,2 +0,0 @@
1
- export { default as Badge } from './Badge.svelte';
2
- export { badge, type BadgeProps } from './badge.js';
@@ -1,2 +0,0 @@
1
- export { default as Badge } from './Badge.svelte';
2
- export { badge } from './badge.js';
@@ -1,3 +0,0 @@
1
- export { default as Select } from './Select.svelte';
2
- export { default as Dropdown } from './Dropdown.svelte';
3
- export type { SelectItem, SelectProps } from './select.js';
@@ -1,2 +0,0 @@
1
- export { default as Select } from './Select.svelte';
2
- export { default as Dropdown } from './Dropdown.svelte';
@@ -1,4 +0,0 @@
1
- export { default as PageHeader } from './PageHeader.svelte';
2
- export type { PageHeaderProps } from './pageheaders.js';
3
- export { default as Breadcrumbs } from './Breadcrumbs.svelte';
4
- export type { BreadcrumbsProps } from './breadcrumbs.js';
@@ -1,2 +0,0 @@
1
- export { default as PageHeader } from './PageHeader.svelte';
2
- export { default as Breadcrumbs } from './Breadcrumbs.svelte';
@@ -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';
@@ -1,4 +0,0 @@
1
- export { default as Card } from './Card.svelte';
2
- export type { CardProps } from './card.js';
3
- export { default as StatsCard } from './StatsCard.svelte';
4
- export type { StatsCardProps } from './stats-card.js';
@@ -1,2 +0,0 @@
1
- export { default as Card } from './Card.svelte';
2
- export { default as StatsCard } from './StatsCard.svelte';
@@ -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';
@@ -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,2 +0,0 @@
1
- export { default as Navbar } from './Navbar.svelte';
2
- export { navbar, type NavbarProps, type NavbarLinkItem } from './navbar.js';
@@ -1,2 +0,0 @@
1
- export { default as Navbar } from './Navbar.svelte';
2
- export { navbar } from './navbar.js';
@@ -1,2 +0,0 @@
1
- export { default as Sidebar } from './Sidebar.svelte';
2
- export type { SidebarProps } from './sidebar.js';
@@ -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 {};
@@ -1,3 +0,0 @@
1
- export { default as Table } from './Table.svelte';
2
- export type { TableProps, KeyType, DataRow, StatusType, TableColumn, SortState, SortDirection } from './table.js';
3
- export { default as Cells } from './Cells.svelte';
@@ -1,2 +0,0 @@
1
- export { default as Table } from './Table.svelte';
2
- export { default as Cells } from './Cells.svelte';
@@ -1,3 +0,0 @@
1
- export { default as Tab } from './Tab.svelte';
2
- export { default as TabContent } from './TabContent.svelte';
3
- export { default as TabGroup } from './TabGroup.svelte';
@@ -1,3 +0,0 @@
1
- export { default as Tab } from './Tab.svelte';
2
- export { default as TabContent } from './TabContent.svelte';
3
- export { default as TabGroup } from './TabGroup.svelte';
@@ -1 +0,0 @@
1
- export { default as Modal } from './Modal.svelte';
@@ -1 +0,0 @@
1
- export { default as Modal } from './Modal.svelte';