@makolabs/ripple 1.8.0 → 1.9.1

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 (51) hide show
  1. package/README.md +16 -0
  2. package/dist/ai/ai-types.d.ts +44 -0
  3. package/dist/ai/ai-types.js +1 -0
  4. package/dist/button/button-types.d.ts +25 -0
  5. package/dist/button/button-types.js +1 -0
  6. package/dist/charts/Chart.svelte +7 -22
  7. package/dist/charts/chart-types.d.ts +137 -0
  8. package/dist/charts/chart-types.js +1 -0
  9. package/dist/drawer/drawer-types.d.ts +33 -0
  10. package/dist/drawer/drawer-types.js +1 -0
  11. package/dist/elements/accordion/accordion-types.d.ts +29 -0
  12. package/dist/elements/accordion/accordion-types.js +1 -0
  13. package/dist/elements/badge/badge-types.d.ts +11 -0
  14. package/dist/elements/badge/badge-types.js +1 -0
  15. package/dist/elements/dropdown/dropdown-types.d.ts +68 -0
  16. package/dist/elements/dropdown/dropdown-types.js +1 -0
  17. package/dist/elements/file-upload/file-upload-types.d.ts +68 -0
  18. package/dist/elements/file-upload/file-upload-types.js +1 -0
  19. package/dist/elements/progress/progress-types.d.ts +22 -0
  20. package/dist/elements/progress/progress-types.js +1 -0
  21. package/dist/elements/timeline/timeline-types.d.ts +11 -0
  22. package/dist/elements/timeline/timeline-types.js +1 -0
  23. package/dist/filters/filter-types.d.ts +24 -0
  24. package/dist/filters/filter-types.js +1 -0
  25. package/dist/forms/Input.svelte +4 -2
  26. package/dist/forms/form-types.d.ts +168 -0
  27. package/dist/forms/form-types.js +1 -0
  28. package/dist/header/header-types.d.ts +43 -0
  29. package/dist/header/header-types.js +1 -0
  30. package/dist/index.d.ts +35 -1105
  31. package/dist/index.js +37 -14
  32. package/dist/layout/activity-list/activity-list-types.d.ts +30 -0
  33. package/dist/layout/activity-list/activity-list-types.js +1 -0
  34. package/dist/layout/card/card-types.d.ts +43 -0
  35. package/dist/layout/card/card-types.js +1 -0
  36. package/dist/layout/card/metric-card.d.ts +3 -3
  37. package/dist/layout/navbar/navbar-types.d.ts +19 -0
  38. package/dist/layout/navbar/navbar-types.js +1 -0
  39. package/dist/layout/sidebar/Sidebar.svelte +10 -1
  40. package/dist/layout/sidebar/sidebar-types.d.ts +63 -0
  41. package/dist/layout/sidebar/sidebar-types.js +1 -0
  42. package/dist/layout/table/table-types.d.ts +82 -0
  43. package/dist/layout/table/table-types.js +1 -0
  44. package/dist/layout/tabs/tabs-types.d.ts +43 -0
  45. package/dist/layout/tabs/tabs-types.js +1 -0
  46. package/dist/modal/modal-types.d.ts +34 -0
  47. package/dist/modal/modal-types.js +1 -0
  48. package/dist/types/echarts.d.ts +27 -0
  49. package/dist/user-management/user-management-types.d.ts +156 -0
  50. package/dist/user-management/user-management-types.js +1 -0
  51. package/package.json +1 -2
@@ -0,0 +1,168 @@
1
+ import type { ClassValue } from 'tailwind-variants';
2
+ import type { Snippet } from 'svelte';
3
+ import type { Component } from 'svelte';
4
+ import type { DOMAttributes } from 'svelte/elements';
5
+ import type { SuperForm } from 'sveltekit-superforms';
6
+ import type { VariantColors, VariantSizes } from '../index.js';
7
+ export interface FormProps<T extends Record<string, unknown>> {
8
+ form: SuperForm<any>;
9
+ class?: ClassValue;
10
+ method?: 'GET' | 'POST' | 'dialog' | 'get' | 'post' | 'DIALOG' | null | undefined;
11
+ action?: string;
12
+ enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain' | null | undefined;
13
+ autocomplete?: 'on' | 'off';
14
+ novalidate?: boolean;
15
+ children?: Snippet;
16
+ testId?: string;
17
+ }
18
+ export type InputProps = {
19
+ type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'date' | 'textarea';
20
+ value?: string | number;
21
+ name: string;
22
+ label?: string;
23
+ placeholder?: string;
24
+ required?: boolean;
25
+ disabled?: boolean;
26
+ class?: ClassValue;
27
+ size?: VariantSizes;
28
+ id?: string;
29
+ errors?: string[];
30
+ testId?: string;
31
+ } & DOMAttributes<HTMLInputElement>;
32
+ export type RadioOption = {
33
+ value: string;
34
+ label: string;
35
+ };
36
+ export type RadioInputsProps = {
37
+ name: string;
38
+ label?: string;
39
+ options: RadioOption[];
40
+ value?: string;
41
+ disabled?: boolean;
42
+ class?: ClassValue;
43
+ size?: VariantSizes;
44
+ color?: VariantColors;
45
+ errors?: string[];
46
+ required?: boolean;
47
+ testId?: string;
48
+ };
49
+ export type CheckboxProps = {
50
+ name: string;
51
+ label?: string;
52
+ value?: boolean;
53
+ disabled?: boolean;
54
+ class?: ClassValue;
55
+ size?: VariantSizes;
56
+ color?: VariantColors;
57
+ errors?: string[];
58
+ required?: boolean;
59
+ testId?: string;
60
+ };
61
+ export interface ToggleProps {
62
+ name: string;
63
+ label?: string;
64
+ disabled?: boolean;
65
+ class?: ClassValue;
66
+ value?: boolean;
67
+ size?: VariantSizes;
68
+ color?: VariantColors;
69
+ id?: string;
70
+ errors?: string[];
71
+ offColor?: string;
72
+ onColor?: string;
73
+ testId?: string;
74
+ }
75
+ export type CurrencyOption = {
76
+ value: string;
77
+ icon?: Component;
78
+ };
79
+ export type NumberInputProps = {
80
+ value?: number;
81
+ name?: string;
82
+ label?: string;
83
+ placeholder?: string;
84
+ size?: VariantSizes;
85
+ class?: ClassValue;
86
+ unit?: string;
87
+ units?: CurrencyOption[];
88
+ errors?: string[];
89
+ disabled?: boolean;
90
+ dropdownicon?: Component;
91
+ onunitchange?: (prevUnit: string, newUnit: string) => void;
92
+ testId?: string;
93
+ };
94
+ export interface DateRangeProps {
95
+ startDate?: Date;
96
+ endDate?: Date;
97
+ minDate?: Date;
98
+ maxDate?: Date;
99
+ disabled?: boolean;
100
+ class?: ClassValue;
101
+ placeholder?: string;
102
+ startLabel?: string;
103
+ endLabel?: string;
104
+ format?: string;
105
+ onselect?: ({ startDate, endDate }: {
106
+ startDate?: Date;
107
+ endDate?: Date;
108
+ }) => void;
109
+ id?: string;
110
+ name?: string;
111
+ testId?: string;
112
+ }
113
+ export interface DateSelectEvent {
114
+ startDate: Date | null;
115
+ endDate: Date | null;
116
+ }
117
+ export type TagsProps = {
118
+ value?: string[];
119
+ name?: string;
120
+ label?: string;
121
+ errors?: string[];
122
+ placeholder?: string;
123
+ size?: VariantSizes;
124
+ class?: ClassValue;
125
+ suggestions?: string[];
126
+ onaddtag?: (tag: string) => void;
127
+ onremovetag?: (tag: string) => void;
128
+ testId?: string;
129
+ };
130
+ export type SliderMode = 'single' | 'range' | 'enum';
131
+ export type NotationType = 'standard' | 'compact' | 'scientific' | 'engineering';
132
+ export type EnumOption = {
133
+ value: string | number;
134
+ label: string;
135
+ };
136
+ export interface SliderProps {
137
+ name: string;
138
+ label?: string;
139
+ mode?: SliderMode;
140
+ disabled?: boolean;
141
+ size?: VariantSizes;
142
+ errors?: string[];
143
+ class?: ClassValue;
144
+ min?: number;
145
+ max?: number;
146
+ step?: number;
147
+ value?: number | string;
148
+ valueStart?: number;
149
+ valueEnd?: number;
150
+ showValue?: boolean;
151
+ valuePrefix?: string;
152
+ valueSuffix?: string;
153
+ options?: EnumOption[];
154
+ formatOptions?: Intl.NumberFormatOptions & {
155
+ notation?: NotationType;
156
+ };
157
+ testId?: string;
158
+ }
159
+ export type RadioPillProps = {
160
+ name: string;
161
+ options: RadioOption[];
162
+ value?: string;
163
+ label?: string;
164
+ class?: ClassValue;
165
+ errors?: string[];
166
+ onchange?: (value: string) => void;
167
+ testId?: string;
168
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,43 @@
1
+ import type { ClassValue } from 'tailwind-variants';
2
+ import type { Snippet } from 'svelte';
3
+ import type { Component } from 'svelte';
4
+ import type { VariantColors } from '../index.js';
5
+ export type BreadcrumbItem = {
6
+ label: string;
7
+ href: string;
8
+ current?: boolean;
9
+ icon?: Component;
10
+ };
11
+ export type BreadcrumbsProps = {
12
+ items: BreadcrumbItem[];
13
+ size?: 'xs' | 'sm' | 'base' | 'lg';
14
+ weight?: 'normal' | 'medium' | 'semibold' | 'bold';
15
+ color?: VariantColors;
16
+ icon?: Component;
17
+ class?: ClassValue;
18
+ /** @deprecated Use listClass instead */
19
+ listclass?: ClassValue;
20
+ listClass?: ClassValue;
21
+ /** @deprecated Use itemClass instead */
22
+ itemclass?: ClassValue;
23
+ itemClass?: ClassValue;
24
+ /** @deprecated Use separatorClass instead */
25
+ separatorclass?: ClassValue;
26
+ separatorClass?: ClassValue;
27
+ /** @deprecated Use wrapperClass instead */
28
+ wrapperclass?: ClassValue;
29
+ wrapperClass?: ClassValue;
30
+ testId?: string;
31
+ };
32
+ export type PageHeaderProps = {
33
+ title: string;
34
+ subtitle?: string;
35
+ breadcrumbs?: BreadcrumbItem[];
36
+ children?: Snippet;
37
+ class?: ClassValue;
38
+ /** @deprecated Use titleClass instead */
39
+ titleclass?: ClassValue;
40
+ titleClass?: ClassValue;
41
+ layout?: 'vertical' | 'horizontal';
42
+ testId?: string;
43
+ };
@@ -0,0 +1 @@
1
+ export {};