@makolabs/ripple 0.0.1-dev.23 → 0.0.1-dev.25
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.
|
@@ -70,8 +70,12 @@
|
|
|
70
70
|
<label
|
|
71
71
|
class={cn(
|
|
72
72
|
'group relative block rounded-[32px] border-2 border-dashed p-12 text-center transition-colors',
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
{
|
|
74
|
+
'border-primary-400 bg-primary-50': isDragging,
|
|
75
|
+
'border-default-200 bg-white': !isDragging,
|
|
76
|
+
'cursor-not-allowed opacity-50': disabled,
|
|
77
|
+
'hover:bg-default-50 cursor-pointer': !disabled
|
|
78
|
+
},
|
|
75
79
|
dropzoneClass
|
|
76
80
|
)}
|
|
77
81
|
ondragenter={handleDragEnter}
|
|
@@ -107,13 +111,13 @@
|
|
|
107
111
|
</div>
|
|
108
112
|
|
|
109
113
|
<!-- Upload Text -->
|
|
110
|
-
<div class="text-
|
|
114
|
+
<div class="text-sm">
|
|
111
115
|
<span class="text-primary-500 font-medium">Click here</span>
|
|
112
116
|
<span class="text-default-600"> to upload your file or drag and drop.</span>
|
|
113
117
|
</div>
|
|
114
118
|
|
|
115
119
|
<!-- File Type Info -->
|
|
116
|
-
<div class="text-default-500 text-
|
|
120
|
+
<div class="text-default-500 text-xs">
|
|
117
121
|
Supported Format: {allowedMimeTypes.length ? allowedMimeTypes.join(', ') : 'SVG, JPG, PNG'}
|
|
118
122
|
{#if maxSize}
|
|
119
123
|
({formatFileSize(maxSize)} each)
|
package/dist/index.d.ts
CHANGED
|
@@ -152,8 +152,8 @@ export type AlertProps = {
|
|
|
152
152
|
onclose?: () => void;
|
|
153
153
|
};
|
|
154
154
|
export type StatsCardProps = {
|
|
155
|
-
label
|
|
156
|
-
value
|
|
155
|
+
label?: string;
|
|
156
|
+
value?: string | number;
|
|
157
157
|
previousValue?: string | number;
|
|
158
158
|
previousValuePrefix?: string;
|
|
159
159
|
trend?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { cn } from '../../helper/cls.js';
|
|
3
|
-
import { statsCard
|
|
3
|
+
import { statsCard } from './stats-card.js';
|
|
4
4
|
import { onMount } from 'svelte';
|
|
5
5
|
import * as echarts from 'echarts/core';
|
|
6
6
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
// @ts-expect-error - ECharts types are not available
|
|
13
13
|
import { SVGRenderer } from 'echarts/renderers';
|
|
14
14
|
import { Color } from '../../variants.js';
|
|
15
|
+
import type { StatsCardProps } from '../../index.js';
|
|
15
16
|
|
|
16
17
|
// @ts-expect-error - ECharts types are not available
|
|
17
18
|
echarts.use([LineChart, GridComponent, SVGRenderer]);
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import type { ClassValue } from 'tailwind-variants';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { VariantColors } from '../../index.js';
|
|
4
1
|
import { Color } from '../../variants.js';
|
|
5
2
|
export declare const statsCard: import("tailwind-variants").TVReturnType<{
|
|
6
3
|
color: {
|
|
@@ -192,15 +189,3 @@ export declare const statsCard: import("tailwind-variants").TVReturnType<{
|
|
|
192
189
|
previousValue: string;
|
|
193
190
|
unit: string;
|
|
194
191
|
}, undefined, unknown, unknown, undefined>>;
|
|
195
|
-
export type StatsCardProps = {
|
|
196
|
-
label?: string;
|
|
197
|
-
value?: string | number;
|
|
198
|
-
previousValue?: string | number;
|
|
199
|
-
previousValuePrefix?: string;
|
|
200
|
-
trend?: number;
|
|
201
|
-
color?: VariantColors;
|
|
202
|
-
chartData?: number[];
|
|
203
|
-
children?: Snippet;
|
|
204
|
-
class?: ClassValue;
|
|
205
|
-
formatLargeNumbers?: boolean;
|
|
206
|
-
};
|