reburn-ui 0.3.7 → 0.3.9
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.
|
@@ -156,26 +156,19 @@
|
|
|
156
156
|
style:--chart-grid-color={gridColor ? getThemeColor(gridColor) : undefined}
|
|
157
157
|
style:--chart-text-color={textColor ? getThemeColor(textColor) : undefined}
|
|
158
158
|
>
|
|
159
|
-
<
|
|
160
|
-
class="chart"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<ChartXGrid />
|
|
173
|
-
{/if}
|
|
174
|
-
|
|
175
|
-
{#if yGrid}
|
|
176
|
-
<ChartYGrid />
|
|
177
|
-
{/if}
|
|
178
|
-
</svg>
|
|
159
|
+
<div class="chart-container" bind:clientWidth={context.chartWidth} bind:clientHeight={context.chartHeight}>
|
|
160
|
+
<svg class="chart" viewBox="0 0 {context.chartWidth} {context.chartHeight}" bind:this={context.chartRef}>
|
|
161
|
+
{@render children(context)}
|
|
162
|
+
|
|
163
|
+
{#if xGrid}
|
|
164
|
+
<ChartXGrid />
|
|
165
|
+
{/if}
|
|
166
|
+
|
|
167
|
+
{#if yGrid}
|
|
168
|
+
<ChartYGrid />
|
|
169
|
+
{/if}
|
|
170
|
+
</svg>
|
|
171
|
+
</div>
|
|
179
172
|
|
|
180
173
|
{#if isBrowser() && withTooltip && context.chartRef}
|
|
181
174
|
<NewChartTooltip {...tooltipProps} />
|
|
@@ -197,7 +190,7 @@
|
|
|
197
190
|
grid-template-rows: 1fr 1.25rem;
|
|
198
191
|
grid-template-areas: "y-axis chart" "empty x-axis";
|
|
199
192
|
position: relative;
|
|
200
|
-
gap: 0.
|
|
193
|
+
gap: 0.5rem;
|
|
201
194
|
--chart-bar-label-color: var(--mantine-color-dimmed);
|
|
202
195
|
}
|
|
203
196
|
:global(:where([data-mantine-color-scheme="light"])) .root {
|
|
@@ -209,9 +202,9 @@
|
|
|
209
202
|
--chart-grid-color: rgba(105, 105, 105, 0.6);
|
|
210
203
|
}
|
|
211
204
|
|
|
212
|
-
.chart {
|
|
205
|
+
.chart-container {
|
|
213
206
|
grid-area: chart;
|
|
214
|
-
overflow:
|
|
207
|
+
overflow: hidden;
|
|
215
208
|
}
|
|
216
209
|
|
|
217
210
|
.y-axis-container {
|
|
@@ -39,15 +39,13 @@
|
|
|
39
39
|
|
|
40
40
|
let {
|
|
41
41
|
curveType = 'linear',
|
|
42
|
-
type = 'default',
|
|
43
42
|
gradientStops = [
|
|
44
43
|
{ offset: 0, color: 'red' },
|
|
45
44
|
{ offset: 100, color: 'blue' },
|
|
46
45
|
],
|
|
47
|
-
curve
|
|
46
|
+
curve,
|
|
48
47
|
color,
|
|
49
|
-
|
|
50
|
-
withYAxis = true,
|
|
48
|
+
type,
|
|
51
49
|
...props
|
|
52
50
|
}: LineChartProps<T> = $props();
|
|
53
51
|
</script>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
import ChartRoot from '../ChartRoot/ChartRoot.svelte';
|
|
24
24
|
import ScatterChartInner from './ScatterChartInner.svelte';
|
|
25
25
|
|
|
26
|
-
let { color, dotSize
|
|
26
|
+
let { color, dotSize, ...props }: ScatterChartProps<T> = $props();
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<ChartRoot {...props}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reburn-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@floating-ui/dom": "^1.7.3",
|
|
55
|
-
"@iconify/json": "^2.2.
|
|
55
|
+
"@iconify/json": "^2.2.367",
|
|
56
56
|
"@iconify/tools": "^4.1.2",
|
|
57
57
|
"@iconify/types": "^2.0.0",
|
|
58
58
|
"@iconify/utils": "^3.0.0",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"publint": "^0.3.12",
|
|
86
86
|
"sass-embedded": "^1.90.0",
|
|
87
87
|
"sonda": "^0.9.0",
|
|
88
|
-
"svelte": "^5.
|
|
88
|
+
"svelte": "^5.38.0",
|
|
89
89
|
"svelte-check": "^4.3.1",
|
|
90
90
|
"typescript": "^5.9.2",
|
|
91
91
|
"typescript-eslint": "^8.39.0",
|
|
92
|
-
"vite": "^7.0
|
|
92
|
+
"vite": "^7.1.0"
|
|
93
93
|
},
|
|
94
94
|
"keywords": [
|
|
95
95
|
"svelte"
|