reburn-ui 0.4.6 → 0.4.8
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/dist/core/CodeHighlight/CodeHighlight.svelte +4 -4
- package/dist/core/charts/ChartRoot/ChartRoot.svelte +2 -2
- package/dist/core/charts/ChartTooltip/ChartTooltip.svelte +62 -59
- package/dist/core/charts/ChartTooltip/ChartTooltipData.svelte +9 -7
- package/dist/core/charts/ChartTooltip/ChartTooltipData.svelte.d.ts +1 -1
- package/dist/core/charts/ChartTooltip/utils/getTooltipPosition.js +2 -1
- package/dist/core/charts/ScatterChart/ScatterChartInner.svelte +10 -8
- package/dist/core/components/Accordion/Accordion.svelte +14 -14
- package/dist/core/components/ActionIcon/ActionIcon.svelte +8 -8
- package/dist/core/components/ActionIcon/ActionIconGroupSection.svelte +6 -6
- package/dist/core/components/AppShell/AppShell.svelte +2 -2
- package/dist/core/components/AppShell/AppShellAside.svelte +1 -1
- package/dist/core/components/AppShell/AppShellNavbar.svelte +1 -1
- package/dist/core/components/Badge/Badge.svelte +2 -2
- package/dist/core/components/Burger/Burger.svelte +2 -2
- package/dist/core/components/Button/Button.svelte +2 -2
- package/dist/core/components/Button/ButtonGroupSection.svelte +6 -6
- package/dist/core/components/Checkbox/Checkbox.svelte +2 -2
- package/dist/core/components/Checkbox/CheckboxCard/CheckboxCard.svelte +2 -2
- package/dist/core/components/Checkbox/CheckboxIndicator.svelte +4 -4
- package/dist/core/components/Chip/Chip.svelte +18 -18
- package/dist/core/components/CloseButton/CloseButton.svelte +6 -6
- package/dist/core/components/ColorPicker/ColorSlider.svelte +4 -4
- package/dist/core/components/ColorPicker/Saturation.svelte +2 -2
- package/dist/core/components/ColorSwatch/ColorSwatch.svelte +2 -2
- package/dist/core/components/Combobox/ComboboxChevron.svelte +2 -2
- package/dist/core/components/Combobox/ComboboxFooter.svelte +2 -2
- package/dist/core/components/Combobox/ComboboxGroup.svelte +2 -2
- package/dist/core/components/Combobox/ComboboxHeader.svelte +2 -2
- package/dist/core/components/Combobox/ComboboxOption.svelte +4 -4
- package/dist/core/components/Combobox/ComboboxSearch.svelte +4 -4
- package/dist/core/components/Dropzone/Dropzone.svelte +6 -6
- package/dist/core/components/Fieldset/Fieldset.svelte +4 -4
- package/dist/core/components/Input/Input.svelte +7 -7
- package/dist/core/components/NavLink/NavLink.svelte +4 -4
- package/dist/core/components/Notification/Notification.svelte +14 -14
- package/dist/core/components/Paper/Paper.svelte +2 -2
- package/dist/core/components/Pill/Pill.svelte +6 -6
- package/dist/core/components/Popover/PopoverDropdown.svelte +2 -2
- package/dist/core/components/Progress/ProgressRoot.svelte +2 -2
- package/dist/core/components/ScrollArea/ScrollAreaCorner.svelte +2 -2
- package/dist/core/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.svelte +8 -8
- package/dist/core/components/ScrollArea/ScrollAreaThumb.svelte +2 -2
- package/dist/core/components/SegmentedControl/SegmentedControl.svelte +16 -16
- package/dist/core/components/Slider/Marks.svelte +4 -4
- package/dist/core/components/Slider/SliderRoot.svelte +2 -2
- package/dist/core/components/Slider/Thumb.svelte +5 -5
- package/dist/core/components/Switch/Switch.svelte +4 -4
- package/dist/core/components/Table/Table.svelte +2 -2
- package/dist/core/components/Table/TableTh.svelte +3 -3
- package/dist/core/components/Tooltip/Tooltip.svelte +2 -2
- package/package.json +20 -19
|
@@ -139,10 +139,10 @@
|
|
|
139
139
|
border-radius: var(--ch-radius, 0px);
|
|
140
140
|
overflow: hidden;
|
|
141
141
|
}
|
|
142
|
-
:global(:where([data-mantine-color-scheme=
|
|
142
|
+
:global(:where([data-mantine-color-scheme='light'])) .code-highlight:where([data-with-border]) {
|
|
143
143
|
border: 1px solid var(--mantine-color-gray-2);
|
|
144
144
|
}
|
|
145
|
-
:global(:where([data-mantine-color-scheme=
|
|
145
|
+
:global(:where([data-mantine-color-scheme='dark'])) .code-highlight:where([data-with-border]) {
|
|
146
146
|
border: 1px solid var(--mantine-color-dark-6);
|
|
147
147
|
}
|
|
148
148
|
.code-highlight:where([data-with-border]):where([data-code-color-scheme=dark]) {
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
.code-highlight:where([data-with-border]):where([data-code-color-scheme=light]) {
|
|
152
152
|
border: 1px solid var(--mantine-color-gray-2);
|
|
153
153
|
}
|
|
154
|
-
:global(:where([data-mantine-color-scheme=
|
|
154
|
+
:global(:where([data-mantine-color-scheme='light'])) .code-highlight {
|
|
155
155
|
--ch-background: var(--mantine-color-gray-0);
|
|
156
156
|
}
|
|
157
|
-
:global(:where([data-mantine-color-scheme=
|
|
157
|
+
:global(:where([data-mantine-color-scheme='dark'])) .code-highlight {
|
|
158
158
|
--ch-background: var(--mantine-color-dark-8);
|
|
159
159
|
}
|
|
160
160
|
|
|
@@ -197,11 +197,11 @@
|
|
|
197
197
|
gap: 0.5rem;
|
|
198
198
|
--chart-bar-label-color: var(--mantine-color-dimmed);
|
|
199
199
|
}
|
|
200
|
-
:global(:where([data-mantine-color-scheme=
|
|
200
|
+
:global(:where([data-mantine-color-scheme='light'])) .root {
|
|
201
201
|
--chart-grid-color: rgba(173, 181, 189, 0.6);
|
|
202
202
|
--chart-cursor-fill: rgba(173, 181, 189, 0.15);
|
|
203
203
|
}
|
|
204
|
-
:global(:where([data-mantine-color-scheme=
|
|
204
|
+
:global(:where([data-mantine-color-scheme='dark'])) .root {
|
|
205
205
|
--chart-cursor-fill: rgba(105, 105, 105, 0.15);
|
|
206
206
|
--chart-grid-color: rgba(105, 105, 105, 0.6);
|
|
207
207
|
}
|
|
@@ -40,14 +40,6 @@
|
|
|
40
40
|
let chartRect = $state<DOMRect>();
|
|
41
41
|
let dots = $state<{ top: number; left: number; color: string }[]>([]);
|
|
42
42
|
|
|
43
|
-
function calcLeft(x: number, rect: DOMRect) {
|
|
44
|
-
return x + rect.left;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function calcTop(y: number, rect: DOMRect) {
|
|
48
|
-
return y;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
43
|
// TODO: refactor this
|
|
52
44
|
function handleMouseMove(event: PointerEvent & { currentTarget: EventTarget & SVGSVGElement }) {
|
|
53
45
|
const { tooltip, rect } = getTooltipPosition(event);
|
|
@@ -67,8 +59,8 @@
|
|
|
67
59
|
element = nearestElement;
|
|
68
60
|
|
|
69
61
|
tooltipLine = {
|
|
70
|
-
top:
|
|
71
|
-
left:
|
|
62
|
+
top: 0,
|
|
63
|
+
left: actualX,
|
|
72
64
|
height: rect.height,
|
|
73
65
|
};
|
|
74
66
|
|
|
@@ -77,8 +69,8 @@
|
|
|
77
69
|
const left = ctx.xScale(ctx.xAccessor(nearestElement));
|
|
78
70
|
|
|
79
71
|
return {
|
|
80
|
-
top:
|
|
81
|
-
left:
|
|
72
|
+
top: top,
|
|
73
|
+
left: left,
|
|
82
74
|
color: getThemeColor(series.color),
|
|
83
75
|
};
|
|
84
76
|
});
|
|
@@ -141,51 +133,63 @@
|
|
|
141
133
|
}
|
|
142
134
|
</script>
|
|
143
135
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
136
|
+
<div class="container">
|
|
137
|
+
{#if show && chartRect}
|
|
138
|
+
<div class="tooltip" bind:this={tooltipRef} style:top="{tooltipY}px" style:left="{tooltipX}px">
|
|
139
|
+
{#if children && element}
|
|
140
|
+
{@render children(element)}
|
|
141
|
+
{:else if element}
|
|
142
|
+
<Paper withBorder shadow="md">
|
|
143
|
+
<div class="label">{ctx.xFormatLabel(ctx.xAccessor(element as T))}</div>
|
|
144
|
+
|
|
145
|
+
<div class="body">
|
|
146
|
+
{#each ctx.series as series (series.name)}
|
|
147
|
+
{@const data = series.accessor?.(element[series.name]) || element[series.name]}
|
|
148
|
+
|
|
149
|
+
{#if data !== undefined}
|
|
150
|
+
<div class="item">
|
|
151
|
+
<div class="item-body">
|
|
152
|
+
{#if showColor}
|
|
153
|
+
<div class="item-color">
|
|
154
|
+
<svg>
|
|
155
|
+
<circle r={6} fill={getThemeColor(series.color)} width={12} height={12} cx={6} cy={6} />
|
|
156
|
+
</svg>
|
|
157
|
+
</div>
|
|
158
|
+
{/if}
|
|
159
|
+
|
|
160
|
+
<div class="item-name">{series.name}</div>
|
|
161
161
|
</div>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
{
|
|
187
|
-
|
|
188
|
-
|
|
162
|
+
|
|
163
|
+
<ChartTooltipData {series} {data} />
|
|
164
|
+
</div>
|
|
165
|
+
{/if}
|
|
166
|
+
{/each}
|
|
167
|
+
</div>
|
|
168
|
+
</Paper>
|
|
169
|
+
{/if}
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div
|
|
173
|
+
class="line"
|
|
174
|
+
style:top="{tooltipLine.top}px"
|
|
175
|
+
style:left="{tooltipLine.left}px"
|
|
176
|
+
style:height="{tooltipLine.height}px"
|
|
177
|
+
bind:this={tooltipLineRef}
|
|
178
|
+
></div>
|
|
179
|
+
|
|
180
|
+
{#each dots as dot}
|
|
181
|
+
<div class="dot" style:top="{dot.top}px" style:left="{dot.left}px" style:background-color={dot.color}></div>
|
|
182
|
+
{/each}
|
|
183
|
+
{/if}
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<style>.container {
|
|
187
|
+
grid-area: chart;
|
|
188
|
+
pointer-events: none;
|
|
189
|
+
position: relative;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.tooltip {
|
|
189
193
|
position: absolute;
|
|
190
194
|
z-index: 10;
|
|
191
195
|
}
|
|
@@ -228,10 +232,10 @@
|
|
|
228
232
|
font-size: var(--mantine-font-size-sm);
|
|
229
233
|
}
|
|
230
234
|
|
|
231
|
-
:global(:where([data-mantine-color-scheme=
|
|
235
|
+
:global(:where([data-mantine-color-scheme='light'])) .line {
|
|
232
236
|
--chart-grid-color: rgba(173, 181, 189, 0.6);
|
|
233
237
|
}
|
|
234
|
-
:global(:where([data-mantine-color-scheme=
|
|
238
|
+
:global(:where([data-mantine-color-scheme='dark'])) .line {
|
|
235
239
|
--chart-grid-color: rgba(105, 105, 105, 0.6);
|
|
236
240
|
}
|
|
237
241
|
.line {
|
|
@@ -254,7 +258,6 @@
|
|
|
254
258
|
}
|
|
255
259
|
|
|
256
260
|
.dot,
|
|
257
|
-
.root,
|
|
258
261
|
.line {
|
|
259
262
|
pointer-events: none;
|
|
260
263
|
}</style>
|
|
@@ -3,24 +3,26 @@
|
|
|
3
3
|
|
|
4
4
|
export interface ChartTooltipDataProps<T extends ChartData, K extends keyof T> {
|
|
5
5
|
series: ChartSeries<T, K>;
|
|
6
|
-
|
|
6
|
+
data: number | T[keyof T];
|
|
7
7
|
}
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<script lang="ts" generics="T extends ChartData, K extends keyof T">
|
|
11
|
-
let { series,
|
|
11
|
+
let { series, data }: ChartTooltipDataProps<T, K> = $props();
|
|
12
12
|
|
|
13
13
|
function defaultFormatLabel(d: number) {
|
|
14
14
|
return d.toString();
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const formatLabel = $derived(series.formatLabel || defaultFormatLabel);
|
|
18
18
|
|
|
19
|
-
const
|
|
19
|
+
const formatted = $derived.by(() => {
|
|
20
|
+
if (data === undefined) return;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
if (Array.isArray(data)) return data.sort((a, b) => b - a).map((item) => formatLabel(item as number));
|
|
23
|
+
|
|
24
|
+
return formatLabel(data as number);
|
|
25
|
+
});
|
|
24
26
|
</script>
|
|
25
27
|
|
|
26
28
|
<div class="item">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChartData, ChartSeries } from '../types.js';
|
|
2
2
|
export interface ChartTooltipDataProps<T extends ChartData, K extends keyof T> {
|
|
3
3
|
series: ChartSeries<T, K>;
|
|
4
|
-
|
|
4
|
+
data: number | T[keyof T];
|
|
5
5
|
}
|
|
6
6
|
declare function $$render<T extends ChartData, K extends keyof T>(): {
|
|
7
7
|
props: ChartTooltipDataProps<T, K>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export function getTooltipPosition(event) {
|
|
2
2
|
const rect = event.currentTarget.getBoundingClientRect();
|
|
3
3
|
const x = event.clientX - rect.left;
|
|
4
|
-
|
|
4
|
+
const y = event.clientY - rect.top;
|
|
5
|
+
return { tooltip: { x: x, y: y }, rect };
|
|
5
6
|
}
|
|
6
7
|
// if needed: {mouse: {x: event.clientX, y: event.clientY}}
|
|
@@ -40,14 +40,16 @@
|
|
|
40
40
|
</script>
|
|
41
41
|
|
|
42
42
|
{#snippet dot(item: T, series: ChartSeries<T, keyof T>, value: T[keyof T])}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
{#if value !== undefined}
|
|
44
|
+
<circle
|
|
45
|
+
{...props}
|
|
46
|
+
cx={context.xScale(context.xAccessor(item))}
|
|
47
|
+
cy={context.yScale(series.accessor?.(value) || value)}
|
|
48
|
+
class="dot"
|
|
49
|
+
fill={getColor(series.color || color)}
|
|
50
|
+
r={dotSize}
|
|
51
|
+
/>
|
|
52
|
+
{/if}
|
|
51
53
|
{/snippet}
|
|
52
54
|
|
|
53
55
|
{#if context.xRange}
|
|
@@ -194,30 +194,30 @@
|
|
|
194
194
|
flex-direction: row;
|
|
195
195
|
padding-inline-start: 0;
|
|
196
196
|
}
|
|
197
|
-
:global(:where([data-mantine-color-scheme=
|
|
197
|
+
:global(:where([data-mantine-color-scheme='light'])) .control {
|
|
198
198
|
color: var(--mantine-color-black);
|
|
199
199
|
}
|
|
200
|
-
:global(:where([data-mantine-color-scheme=
|
|
200
|
+
:global(:where([data-mantine-color-scheme='dark'])) .control {
|
|
201
201
|
color: var(--mantine-color-white);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
@media (hover: hover) {
|
|
205
|
-
:global(:where([data-mantine-color-scheme=
|
|
206
|
-
:global(:where([data-mantine-color-scheme=
|
|
205
|
+
:global(:where([data-mantine-color-scheme='light'])) .control--default:where(:not(:disabled, [data-disabled])):hover,
|
|
206
|
+
:global(:where([data-mantine-color-scheme='light'])) .control--contained:where(:not(:disabled, [data-disabled])):hover {
|
|
207
207
|
background-color: var(--mantine-color-gray-0);
|
|
208
208
|
}
|
|
209
|
-
:global(:where([data-mantine-color-scheme=
|
|
210
|
-
:global(:where([data-mantine-color-scheme=
|
|
209
|
+
:global(:where([data-mantine-color-scheme='dark'])) .control--default:where(:not(:disabled, [data-disabled])):hover,
|
|
210
|
+
:global(:where([data-mantine-color-scheme='dark'])) .control--contained:where(:not(:disabled, [data-disabled])):hover {
|
|
211
211
|
background-color: var(--mantine-color-dark-6);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
@media (hover: none) {
|
|
215
|
-
:global(:where([data-mantine-color-scheme=
|
|
216
|
-
:global(:where([data-mantine-color-scheme=
|
|
215
|
+
:global(:where([data-mantine-color-scheme='light'])) .control--default:where(:not(:disabled, [data-disabled])):active,
|
|
216
|
+
:global(:where([data-mantine-color-scheme='light'])) .control--contained:where(:not(:disabled, [data-disabled])):active {
|
|
217
217
|
background-color: var(--mantine-color-gray-0);
|
|
218
218
|
}
|
|
219
|
-
:global(:where([data-mantine-color-scheme=
|
|
220
|
-
:global(:where([data-mantine-color-scheme=
|
|
219
|
+
:global(:where([data-mantine-color-scheme='dark'])) .control--default:where(:not(:disabled, [data-disabled])):active,
|
|
220
|
+
:global(:where([data-mantine-color-scheme='dark'])) .control--contained:where(:not(:disabled, [data-disabled])):active {
|
|
221
221
|
background-color: var(--mantine-color-dark-6);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
@@ -260,11 +260,11 @@
|
|
|
260
260
|
margin-inline-start: var(--mantine-spacing-lg);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
:global(:where([data-mantine-color-scheme=
|
|
263
|
+
:global(:where([data-mantine-color-scheme='light'])) .item {
|
|
264
264
|
--item-border-color: var(--mantine-color-gray-3);
|
|
265
265
|
--item-filled-color: var(--mantine-color-gray-0);
|
|
266
266
|
}
|
|
267
|
-
:global(:where([data-mantine-color-scheme=
|
|
267
|
+
:global(:where([data-mantine-color-scheme='dark'])) .item {
|
|
268
268
|
--item-border-color: var(--mantine-color-dark-4);
|
|
269
269
|
--item-filled-color: var(--mantine-color-dark-6);
|
|
270
270
|
}
|
|
@@ -316,10 +316,10 @@
|
|
|
316
316
|
.item--separated[data-active] {
|
|
317
317
|
border-color: var(--item-filled-color);
|
|
318
318
|
}
|
|
319
|
-
:global(:where([data-mantine-color-scheme=
|
|
319
|
+
:global(:where([data-mantine-color-scheme='light'])) .item--separated[data-active] {
|
|
320
320
|
background-color: var(--mantine-color-white);
|
|
321
321
|
}
|
|
322
|
-
:global(:where([data-mantine-color-scheme=
|
|
322
|
+
:global(:where([data-mantine-color-scheme='dark'])) .item--separated[data-active] {
|
|
323
323
|
background-color: var(--mantine-color-dark-7);
|
|
324
324
|
}
|
|
325
325
|
.item--separated + .item--separated {
|
|
@@ -118,31 +118,31 @@
|
|
|
118
118
|
border: var(--ai-bd, calc(0.0625rem * var(--mantine-scale)) solid transparent);
|
|
119
119
|
cursor: pointer;
|
|
120
120
|
}
|
|
121
|
-
:global(.group[data-orientation=
|
|
121
|
+
:global(.group[data-orientation='horizontal']) > .root:not(:only-child):first-child {
|
|
122
122
|
border-end-end-radius: 0;
|
|
123
123
|
border-start-end-radius: 0;
|
|
124
124
|
border-inline-end-width: calc(var(--ai-border-width) / 2);
|
|
125
125
|
}
|
|
126
|
-
:global(.group[data-orientation=
|
|
126
|
+
:global(.group[data-orientation='horizontal']) > .root:not(:only-child):last-child {
|
|
127
127
|
border-end-start-radius: 0;
|
|
128
128
|
border-start-start-radius: 0;
|
|
129
129
|
border-inline-start-width: calc(var(--ai-border-width) / 2);
|
|
130
130
|
}
|
|
131
|
-
:global(.group[data-orientation=
|
|
131
|
+
:global(.group[data-orientation='horizontal']) > .root:not(:only-child):not(:first-child):not(:last-child) {
|
|
132
132
|
border-radius: 0;
|
|
133
133
|
border-inline-width: calc(var(--ai-border-width) / 2);
|
|
134
134
|
}
|
|
135
|
-
:global(.group[data-orientation=
|
|
135
|
+
:global(.group[data-orientation='vertical']) > .root:not(:only-child):first-child {
|
|
136
136
|
border-end-start-radius: 0;
|
|
137
137
|
border-end-end-radius: 0;
|
|
138
138
|
border-bottom-width: calc(var(--ai-border-width) / 2);
|
|
139
139
|
}
|
|
140
|
-
:global(.group[data-orientation=
|
|
140
|
+
:global(.group[data-orientation='vertical']) > .root:not(:only-child):last-child {
|
|
141
141
|
border-start-start-radius: 0;
|
|
142
142
|
border-start-end-radius: 0;
|
|
143
143
|
border-top-width: calc(var(--ai-border-width) / 2);
|
|
144
144
|
}
|
|
145
|
-
:global(.group[data-orientation=
|
|
145
|
+
:global(.group[data-orientation='vertical']) > .root:not(:only-child):not(:first-child):not(:last-child) {
|
|
146
146
|
border-radius: 0;
|
|
147
147
|
border-bottom-width: calc(var(--ai-border-width) / 2);
|
|
148
148
|
border-top-width: calc(var(--ai-border-width) / 2);
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
align-items: center;
|
|
185
185
|
justify-content: center;
|
|
186
186
|
}
|
|
187
|
-
:global(:where([data-mantine-color-scheme=
|
|
187
|
+
:global(:where([data-mantine-color-scheme='light'])) .loader {
|
|
188
188
|
background-color: rgba(255, 255, 255, 0.15);
|
|
189
189
|
}
|
|
190
|
-
:global(:where([data-mantine-color-scheme=
|
|
190
|
+
:global(:where([data-mantine-color-scheme='dark'])) .loader {
|
|
191
191
|
background-color: rgba(0, 0, 0, 0.15);
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -85,31 +85,31 @@
|
|
|
85
85
|
align-items: center;
|
|
86
86
|
justify-content: center;
|
|
87
87
|
}
|
|
88
|
-
:global(.group[data-orientation=
|
|
88
|
+
:global(.group[data-orientation='horizontal']) > .group-section:not(:only-child):first-child {
|
|
89
89
|
border-end-end-radius: 0;
|
|
90
90
|
border-start-end-radius: 0;
|
|
91
91
|
border-inline-end-width: calc(var(--ai-border-width) / 2);
|
|
92
92
|
}
|
|
93
|
-
:global(.group[data-orientation=
|
|
93
|
+
:global(.group[data-orientation='horizontal']) > .group-section:not(:only-child):last-child {
|
|
94
94
|
border-end-start-radius: 0;
|
|
95
95
|
border-start-start-radius: 0;
|
|
96
96
|
border-inline-start-width: calc(var(--ai-border-width) / 2);
|
|
97
97
|
}
|
|
98
|
-
:global(.group[data-orientation=
|
|
98
|
+
:global(.group[data-orientation='horizontal']) > .group-section:not(:only-child):not(:first-child):not(:last-child) {
|
|
99
99
|
border-radius: 0;
|
|
100
100
|
border-inline-width: calc(var(--ai-border-width) / 2);
|
|
101
101
|
}
|
|
102
|
-
:global(.group[data-orientation=
|
|
102
|
+
:global(.group[data-orientation='vertical']) > .group-section:not(:only-child):first-child {
|
|
103
103
|
border-end-start-radius: 0;
|
|
104
104
|
border-end-end-radius: 0;
|
|
105
105
|
border-bottom-width: calc(var(--ai-border-width) / 2);
|
|
106
106
|
}
|
|
107
|
-
:global(.group[data-orientation=
|
|
107
|
+
:global(.group[data-orientation='vertical']) > .group-section:not(:only-child):last-child {
|
|
108
108
|
border-start-start-radius: 0;
|
|
109
109
|
border-start-end-radius: 0;
|
|
110
110
|
border-top-width: calc(var(--ai-border-width) / 2);
|
|
111
111
|
}
|
|
112
|
-
:global(.group[data-orientation=
|
|
112
|
+
:global(.group[data-orientation='vertical']) > .group-section:not(:only-child):not(:first-child):not(:last-child) {
|
|
113
113
|
border-radius: 0;
|
|
114
114
|
border-bottom-width: calc(var(--ai-border-width) / 2);
|
|
115
115
|
border-top-width: calc(var(--ai-border-width) / 2);
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
--app-shell-aside-offset: 0rem !important;
|
|
108
108
|
--app-shell-footer-offset: 0rem !important;
|
|
109
109
|
}
|
|
110
|
-
:global([data-mantine-color-scheme=
|
|
110
|
+
:global([data-mantine-color-scheme='light']) .root {
|
|
111
111
|
--app-shell-border-color: var(--mantine-color-gray-3);
|
|
112
112
|
}
|
|
113
|
-
:global([data-mantine-color-scheme=
|
|
113
|
+
:global([data-mantine-color-scheme='dark']) .root {
|
|
114
114
|
--app-shell-border-color: var(--mantine-color-dark-4);
|
|
115
115
|
}</style>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
transform: var(--app-shell-aside-transform);
|
|
50
50
|
z-index: var(--app-shell-aside-z-index);
|
|
51
51
|
}
|
|
52
|
-
.aside :global(:where([dir=
|
|
52
|
+
.aside :global(:where([dir='rtl'])) {
|
|
53
53
|
transform: var(--app-shell-aside-transform-rtl);
|
|
54
54
|
}
|
|
55
55
|
.aside:where([data-with-border]) {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
transform: var(--app-shell-navbar-transform);
|
|
51
51
|
z-index: var(--app-shell-navbar-z-index);
|
|
52
52
|
}
|
|
53
|
-
.navbar :global(:where([dir=
|
|
53
|
+
.navbar :global(:where([dir='rtl'])) {
|
|
54
54
|
transform: var(--app-shell-navbar-transform-rtl);
|
|
55
55
|
}
|
|
56
56
|
.navbar:where([data-with-border]) {
|
|
@@ -158,12 +158,12 @@
|
|
|
158
158
|
.root--dot {
|
|
159
159
|
--badge-dot-size: calc(var(--badge-height) / 3.4);
|
|
160
160
|
}
|
|
161
|
-
:global(:where([data-mantine-color-scheme=
|
|
161
|
+
:global(:where([data-mantine-color-scheme='light'])) .root--dot {
|
|
162
162
|
background-color: var(--mantine-color-white);
|
|
163
163
|
border-color: var(--mantine-color-gray-4);
|
|
164
164
|
color: var(--mantine-color-black);
|
|
165
165
|
}
|
|
166
|
-
:global(:where([data-mantine-color-scheme=
|
|
166
|
+
:global(:where([data-mantine-color-scheme='dark'])) .root--dot {
|
|
167
167
|
background-color: var(--mantine-color-dark-5);
|
|
168
168
|
border-color: var(--mantine-color-dark-5);
|
|
169
169
|
color: var(--mantine-color-white);
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
padding: calc(var(--mantine-spacing-xs) / 2);
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
}
|
|
70
|
-
:global(:where([data-mantine-color-scheme=
|
|
70
|
+
:global(:where([data-mantine-color-scheme='light'])) .root {
|
|
71
71
|
--burger-color: var(--mantine-color-black);
|
|
72
72
|
}
|
|
73
|
-
:global(:where([data-mantine-color-scheme=
|
|
73
|
+
:global(:where([data-mantine-color-scheme='dark'])) .root {
|
|
74
74
|
--burger-color: var(--mantine-color-white);
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -202,10 +202,10 @@
|
|
|
202
202
|
filter: blur(12px);
|
|
203
203
|
transition: transform 150ms ease, opacity 100ms ease;
|
|
204
204
|
}
|
|
205
|
-
:global(:where([data-mantine-color-scheme=
|
|
205
|
+
:global(:where([data-mantine-color-scheme='light'])) .root::before {
|
|
206
206
|
background-color: rgba(255, 255, 255, 0.15);
|
|
207
207
|
}
|
|
208
|
-
:global(:where([data-mantine-color-scheme=
|
|
208
|
+
:global(:where([data-mantine-color-scheme='dark'])) .root::before {
|
|
209
209
|
background-color: rgba(0, 0, 0, 0.15);
|
|
210
210
|
}
|
|
211
211
|
.root:where([data-loading]) {
|
|
@@ -84,36 +84,36 @@
|
|
|
84
84
|
justify-content: center;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
:global(.group[data-orientation=
|
|
87
|
+
:global(.group[data-orientation='horizontal']) .groupSection:not(:only-child):first-child {
|
|
88
88
|
border-end-end-radius: 0;
|
|
89
89
|
border-start-end-radius: 0;
|
|
90
90
|
border-inline-end-width: calc(var(--button-border-width) / 2);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
:global(.group[data-orientation=
|
|
93
|
+
:global(.group[data-orientation='horizontal']) .groupSection:not(:only-child):last-child {
|
|
94
94
|
border-end-start-radius: 0;
|
|
95
95
|
border-start-start-radius: 0;
|
|
96
96
|
border-inline-start-width: calc(var(--button-border-width) / 2);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
:global(.group[data-orientation=
|
|
99
|
+
:global(.group[data-orientation='horizontal']) .groupSection:not(:only-child):not(:first-child):not(:last-child) {
|
|
100
100
|
border-radius: 0;
|
|
101
101
|
border-inline-width: calc(var(--button-border-width) / 2);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
:global(.group[data-orientation=
|
|
104
|
+
:global(.group[data-orientation='vertical']) .groupSection:not(:only-child):first-child {
|
|
105
105
|
border-end-start-radius: 0;
|
|
106
106
|
border-end-end-radius: 0;
|
|
107
107
|
border-bottom-width: calc(var(--button-border-width) / 2);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
:global(.group[data-orientation=
|
|
110
|
+
:global(.group[data-orientation='vertical']) .groupSection:not(:only-child):last-child {
|
|
111
111
|
border-start-start-radius: 0;
|
|
112
112
|
border-start-end-radius: 0;
|
|
113
113
|
border-top-width: calc(var(--button-border-width) / 2);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
:global(.group[data-orientation=
|
|
116
|
+
:global(.group[data-orientation='vertical']) .groupSection:not(:only-child):not(:first-child):not(:last-child) {
|
|
117
117
|
border-radius: 0;
|
|
118
118
|
border-bottom-width: calc(var(--button-border-width) / 2);
|
|
119
119
|
border-top-width: calc(var(--button-border-width) / 2);
|
|
@@ -177,11 +177,11 @@
|
|
|
177
177
|
cursor: var(--mantine-cursor-type);
|
|
178
178
|
-webkit-tap-highlight-color: transparent;
|
|
179
179
|
}
|
|
180
|
-
:global(:where([data-mantine-color-scheme=
|
|
180
|
+
:global(:where([data-mantine-color-scheme='light'])) .input {
|
|
181
181
|
background-color: var(--mantine-color-white);
|
|
182
182
|
border-color: var(--mantine-color-gray-4);
|
|
183
183
|
}
|
|
184
|
-
:global(:where([data-mantine-color-scheme=
|
|
184
|
+
:global(:where([data-mantine-color-scheme='dark'])) .input {
|
|
185
185
|
background-color: var(--mantine-color-dark-6);
|
|
186
186
|
border-color: var(--mantine-color-dark-4);
|
|
187
187
|
}
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
:global(.card-nx0ZB2nP:where([data-with-border])) {
|
|
83
83
|
border: 1px solid transparent;
|
|
84
84
|
}
|
|
85
|
-
:global(:where([data-mantine-color-scheme=
|
|
85
|
+
:global(:where([data-mantine-color-scheme='light'])) :global(.card-nx0ZB2nP:where([data-with-border])) {
|
|
86
86
|
border-color: var(--mantine-color-gray-3);
|
|
87
87
|
}
|
|
88
|
-
:global(:where([data-mantine-color-scheme=
|
|
88
|
+
:global(:where([data-mantine-color-scheme='dark'])) :global(.card-nx0ZB2nP:where([data-with-border])) {
|
|
89
89
|
border-color: var(--mantine-color-dark-4);
|
|
90
90
|
}</style>
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
align-items: center;
|
|
129
129
|
justify-content: center;
|
|
130
130
|
}
|
|
131
|
-
:global(:where([data-mantine-color-scheme=
|
|
131
|
+
:global(:where([data-mantine-color-scheme='light'])) .indicator {
|
|
132
132
|
background-color: var(--mantine-color-white);
|
|
133
133
|
border-color: var(--mantine-color-gray-4);
|
|
134
134
|
}
|
|
135
|
-
:global(:where([data-mantine-color-scheme=
|
|
135
|
+
:global(:where([data-mantine-color-scheme='dark'])) .indicator {
|
|
136
136
|
background-color: var(--mantine-color-dark-6);
|
|
137
137
|
border-color: var(--mantine-color-dark-4);
|
|
138
138
|
}
|
|
@@ -168,10 +168,10 @@
|
|
|
168
168
|
color: var(--checkbox-icon-color);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
:global([data-mantine-color-scheme=
|
|
171
|
+
:global([data-mantine-color-scheme='light']) * :global(.icon[data-disabled][data-checked]) {
|
|
172
172
|
color: var(--mantine-color-gray-5);
|
|
173
173
|
}
|
|
174
|
-
:global([data-mantine-color-scheme=
|
|
174
|
+
:global([data-mantine-color-scheme='dark']) * :global(.icon[data-disabled][data-checked]) {
|
|
175
175
|
color: var(--mantine-color-dark-3);
|
|
176
176
|
}
|
|
177
177
|
|