reburn-ui 0.4.4 → 0.4.6

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 (47) hide show
  1. package/dist/adapter/adapter-bun/adapter.js +2 -2
  2. package/dist/adapter/adapter-bun/index.d.ts +6 -0
  3. package/dist/core/CodeHighlight/CodeHighlight.context.svelte.d.ts +13 -0
  4. package/dist/core/CodeHighlight/CodeHighlight.context.svelte.js +13 -0
  5. package/dist/core/CodeHighlight/CodeHighlight.svelte +196 -0
  6. package/dist/core/CodeHighlight/CodeHighlight.svelte.d.ts +48 -0
  7. package/dist/core/CodeHighlight/CodeHighlightAdapterProvider.context.svelte.d.ts +17 -0
  8. package/dist/core/CodeHighlight/CodeHighlightAdapterProvider.context.svelte.js +20 -0
  9. package/dist/core/CodeHighlight/CodeHighlightControl.svelte +37 -0
  10. package/dist/core/CodeHighlight/CodeHighlightControl.svelte.d.ts +11 -0
  11. package/dist/core/CodeHighlight/CopyCodeButton/CopyCodeButton.svelte +23 -0
  12. package/dist/core/CodeHighlight/CopyCodeButton/CopyCodeButton.svelte.d.ts +8 -0
  13. package/dist/core/CodeHighlight/CopyCodeButton/CopyIcon.svelte +31 -0
  14. package/dist/core/CodeHighlight/CopyCodeButton/CopyIcon.svelte.d.ts +8 -0
  15. package/dist/core/CodeHighlight/ExpandCodeButton/ExpandCodeButton.svelte +23 -0
  16. package/dist/core/CodeHighlight/ExpandCodeButton/ExpandCodeButton.svelte.d.ts +9 -0
  17. package/dist/core/CodeHighlight/ExpandCodeButton/ExpandIcon.svelte +32 -0
  18. package/dist/core/CodeHighlight/ExpandCodeButton/ExpandIcon.svelte.d.ts +8 -0
  19. package/dist/core/CodeHighlight/code-highlight.css +93 -0
  20. package/dist/core/CodeHighlight/index.d.ts +2 -0
  21. package/dist/core/CodeHighlight/index.js +2 -0
  22. package/dist/core/Notifications/NotificationContainer.svelte +2 -2
  23. package/dist/core/Notifications/Notifications.svelte +2 -2
  24. package/dist/core/charts/ChartRoot/ChartRoot.svelte +3 -3
  25. package/dist/core/charts/ChartRoot/ChartRoot.svelte.d.ts +5 -5
  26. package/dist/core/charts/ChartRoot/ChartXGrid.svelte +2 -2
  27. package/dist/core/charts/ChartRoot/ChartXLabels.svelte +3 -3
  28. package/dist/core/charts/ChartRoot/ChartYGrid.svelte +2 -2
  29. package/dist/core/charts/ChartRoot/ChartYLabels.svelte +3 -3
  30. package/dist/core/charts/ChartTooltip/ChartTooltip.svelte +45 -47
  31. package/dist/core/charts/LineChart/LineChart.svelte +1 -1
  32. package/dist/core/charts/LineChart/LineChartInner.svelte +1 -1
  33. package/dist/core/charts/ScatterChart/ScatterChartInner.svelte +1 -1
  34. package/dist/core/components/ColorPicker/ColorSlider.svelte +0 -1
  35. package/dist/core/components/Floating/CreateFloating.svelte.d.ts +0 -1
  36. package/dist/core/components/Floating/CreateFloating.svelte.js +4 -4
  37. package/dist/core/components/Pill/Pill.svelte +3 -1
  38. package/dist/core/components/Tooltip/Tooltip.svelte +3 -5
  39. package/dist/core/index.d.ts +1 -0
  40. package/dist/core/index.js +1 -0
  41. package/dist/docs/UsageDemo.svelte +113 -0
  42. package/dist/docs/UsageDemo.svelte.d.ts +41 -0
  43. package/dist/styles/_mixins.scss +1 -1
  44. package/dist/styles/_variables.scss +145 -5
  45. package/package.json +33 -25
  46. package/dist/tools/icon-vite-plugin/icon-vite-plugin.d.ts +0 -10
  47. package/dist/tools/icon-vite-plugin/icon-vite-plugin.js +0 -407
@@ -50,8 +50,8 @@
50
50
  autoClose = 4000,
51
51
  transitionDuration = 250,
52
52
  containerWidth = 440,
53
- notificationMaxHeight = 200,
54
- limit = 5,
53
+ // notificationMaxHeight = 200,
54
+ // limit = 5,
55
55
  zIndex = getDefaultZIndex('overlay'),
56
56
  store = notifications,
57
57
  withinPortal = true,
@@ -110,7 +110,7 @@
110
110
  }
111
111
  </script>
112
112
 
113
- <script lang="ts" generics="T extends Record<string, any>">
113
+ <script lang="ts" generics="T extends Record<string, unknown>">
114
114
  import { setContext, type Snippet } from 'svelte';
115
115
 
116
116
  let {
@@ -142,8 +142,8 @@
142
142
  dataKey: () => dataKey,
143
143
  yAxisProps: () => yAxisProps,
144
144
  xAxisProps: () => xAxisProps,
145
- xScale: () => scaleLinear,
146
- yScale: () => scaleLinear,
145
+ xScale: () => xScale,
146
+ yScale: () => yScale,
147
147
  xGrid: () => xGrid,
148
148
  yGrid: () => yGrid,
149
149
  });
@@ -63,14 +63,14 @@ export interface ChartRootProps<T extends Record<string, unknown>> extends Omit<
63
63
  svgProps?: SvgElement;
64
64
  }
65
65
  import { type Snippet } from 'svelte';
66
- declare function $$render<T extends Record<string, any>>(): {
66
+ declare function $$render<T extends Record<string, unknown>>(): {
67
67
  props: ChartRootProps<T>;
68
68
  exports: {};
69
69
  bindings: "";
70
70
  slots: {};
71
71
  events: {};
72
72
  };
73
- declare class __sveltets_Render<T extends Record<string, any>> {
73
+ declare class __sveltets_Render<T extends Record<string, unknown>> {
74
74
  props(): ReturnType<typeof $$render<T>>['props'];
75
75
  events(): ReturnType<typeof $$render<T>>['events'];
76
76
  slots(): ReturnType<typeof $$render<T>>['slots'];
@@ -78,12 +78,12 @@ declare class __sveltets_Render<T extends Record<string, any>> {
78
78
  exports(): {};
79
79
  }
80
80
  interface $$IsomorphicComponent {
81
- new <T extends Record<string, any>>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
81
+ new <T extends Record<string, unknown>>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
82
82
  $$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
83
83
  } & ReturnType<__sveltets_Render<T>['exports']>;
84
- <T extends Record<string, any>>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
84
+ <T extends Record<string, unknown>>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
85
85
  z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
86
86
  }
87
87
  declare const ChartRoot: $$IsomorphicComponent;
88
- type ChartRoot<T extends Record<string, any>> = InstanceType<typeof ChartRoot<T>>;
88
+ type ChartRoot<T extends Record<string, unknown>> = InstanceType<typeof ChartRoot<T>>;
89
89
  export default ChartRoot;
@@ -5,8 +5,8 @@
5
5
  </script>
6
6
 
7
7
  {#if typeof ctx.xGrid === 'boolean'}
8
- {#each ctx.xTicks.labels as tick}
9
- <line class="grid-lines" x1={tick.position} x2={tick.position} y1={0} y2={ctx.chartHeight} />
8
+ {#each ctx.xTicks.labels as { position }}
9
+ <line class="grid-lines" x1={position} x2={position} y1={0} y2={ctx.chartHeight} />
10
10
  {/each}
11
11
  {:else if typeof ctx.xGrid === 'string'}
12
12
  {#if ctx.xGrid.includes('top')}
@@ -5,9 +5,9 @@
5
5
  </script>
6
6
 
7
7
  <div class="container">
8
- {#each ctx.xTicks.labels as tick}
9
- <span class="label" style:left="{tick.position}px">
10
- {tick.label}
8
+ {#each ctx.xTicks.labels as { position, label }}
9
+ <span class="label" style:left="{position}px">
10
+ {label}
11
11
  </span>
12
12
  {/each}
13
13
  </div>
@@ -5,8 +5,8 @@
5
5
  </script>
6
6
 
7
7
  {#if typeof ctx.yGrid === 'boolean'}
8
- {#each ctx.yTicks.labels as tick, index}
9
- <line class="grid-lines" x1={0} x2={ctx.chartWidth} y1={tick.position} y2={tick.position} />
8
+ {#each ctx.yTicks.labels as { position }}
9
+ <line class="grid-lines" x1={0} x2={ctx.chartWidth} y1={position} y2={position} />
10
10
  {/each}
11
11
  {:else if typeof ctx.yGrid === 'string'}
12
12
  {#if ctx.yGrid.includes('top')}
@@ -5,9 +5,9 @@
5
5
  </script>
6
6
 
7
7
  <div class="container" style:width="{ctx.yTicks.maxLength * 8}px">
8
- {#each ctx.yTicks.labels as tick}
9
- <span class="label" style:top="{tick.position}px">
10
- {tick.label}
8
+ {#each ctx.yTicks.labels as { position, label }}
9
+ <span class="label" style:top="{position}px">
10
+ {label}
11
11
  </span>
12
12
  {/each}
13
13
  </div>
@@ -17,7 +17,7 @@
17
17
 
18
18
  <script lang="ts" generics="T extends ChartData">
19
19
  import { CreateFloating, type UpdatePositionProps } from '../../components/Floating/CreateFloating.svelte.js';
20
- import { Paper, Portal } from '../../components/index.js';
20
+ import { Paper } from '../../components/index.js';
21
21
  import { getThemeColor } from '../../MantineProvider/color-functions/get-theme-color.js';
22
22
  import { flip, offset } from '@floating-ui/dom';
23
23
  import { on } from 'svelte/events';
@@ -41,11 +41,11 @@
41
41
  let dots = $state<{ top: number; left: number; color: string }[]>([]);
42
42
 
43
43
  function calcLeft(x: number, rect: DOMRect) {
44
- return x + rect.left + window.scrollX;
44
+ return x + rect.left;
45
45
  }
46
46
 
47
47
  function calcTop(y: number, rect: DOMRect) {
48
- return y + rect.top + window.scrollY;
48
+ return y;
49
49
  }
50
50
 
51
51
  // TODO: refactor this
@@ -141,51 +141,49 @@
141
141
  }
142
142
  </script>
143
143
 
144
- <Portal>
145
- {#if show && chartRect}
146
- <div class="root" bind:this={tooltipRef} style:top="{tooltipY}px" style:left="{tooltipX}px">
147
- {#if children && element}
148
- {@render children(element)}
149
- {:else if element}
150
- <Paper withBorder shadow="md">
151
- <div class="label">{ctx.xFormatLabel(ctx.xAccessor(element as T))}</div>
152
-
153
- <div class="body">
154
- {#each ctx.series as series}
155
- <div class="item">
156
- <div class="item-body">
157
- {#if showColor}
158
- <div class="item-color">
159
- <svg>
160
- <circle r={6} fill={getThemeColor(series.color)} width={12} height={12} cx={6} cy={6} />
161
- </svg>
162
- </div>
163
- {/if}
164
-
165
- <div class="item-name">{series.name}</div>
166
- </div>
167
-
168
- <ChartTooltipData {series} {element} />
144
+ {#if show && chartRect}
145
+ <div class="root" bind:this={tooltipRef} style:top="{tooltipY}px" style:left="{tooltipX}px">
146
+ {#if children && element}
147
+ {@render children(element)}
148
+ {:else if element}
149
+ <Paper withBorder shadow="md">
150
+ <div class="label">{ctx.xFormatLabel(ctx.xAccessor(element as T))}</div>
151
+
152
+ <div class="body">
153
+ {#each ctx.series as series (series.name)}
154
+ <div class="item">
155
+ <div class="item-body">
156
+ {#if showColor}
157
+ <div class="item-color">
158
+ <svg>
159
+ <circle r={6} fill={getThemeColor(series.color)} width={12} height={12} cx={6} cy={6} />
160
+ </svg>
161
+ </div>
162
+ {/if}
163
+
164
+ <div class="item-name">{series.name}</div>
169
165
  </div>
170
- {/each}
171
- </div>
172
- </Paper>
173
- {/if}
174
- </div>
175
-
176
- <div
177
- class="line"
178
- style:top="{tooltipLine.top}px"
179
- style:left="{tooltipLine.left}px"
180
- style:height="{tooltipLine.height}px"
181
- bind:this={tooltipLineRef}
182
- ></div>
183
-
184
- {#each dots as dot}
185
- <div class="dot" style:top="{dot.top}px" style:left="{dot.left}px" style:background-color={dot.color}></div>
186
- {/each}
187
- {/if}
188
- </Portal>
166
+
167
+ <ChartTooltipData {series} {element} />
168
+ </div>
169
+ {/each}
170
+ </div>
171
+ </Paper>
172
+ {/if}
173
+ </div>
174
+
175
+ <div
176
+ class="line"
177
+ style:top="{tooltipLine.top}px"
178
+ style:left="{tooltipLine.left}px"
179
+ style:height="{tooltipLine.height}px"
180
+ bind:this={tooltipLineRef}
181
+ ></div>
182
+
183
+ {#each dots as dot}
184
+ <div class="dot" style:top="{dot.top}px" style:left="{dot.left}px" style:background-color={dot.color}></div>
185
+ {/each}
186
+ {/if}
189
187
 
190
188
  <style>.root {
191
189
  position: absolute;
@@ -38,7 +38,7 @@
38
38
  import LineChartInner from './LineChartInner.svelte';
39
39
 
40
40
  let {
41
- curveType = 'linear',
41
+ // curveType = 'linear',
42
42
  gradientStops = [
43
43
  { offset: 0, color: 'red' },
44
44
  { offset: 100, color: 'blue' },
@@ -42,7 +42,7 @@
42
42
  {/if}
43
43
 
44
44
  {#if context.xRange}
45
- {#each context.series as series}
45
+ {#each context.series as series (series.name)}
46
46
  {#if isLineSeries(series)}
47
47
  <path
48
48
  {...props}
@@ -52,7 +52,7 @@
52
52
 
53
53
  {#if context.xRange}
54
54
  {#each context.data as item}
55
- {#each context.series as series}
55
+ {#each context.series as series (series.name)}
56
56
  {#if isScatterSeries(series)}
57
57
  {#if Array.isArray(item[series.name])}
58
58
  {#each item[series.name] as value}
@@ -34,7 +34,6 @@
34
34
  overlays,
35
35
  round,
36
36
  thumbColor,
37
- children,
38
37
  ...props
39
38
  }: ColorSliderProps = $props();
40
39
 
@@ -22,6 +22,5 @@ export declare class CreateFloating {
22
22
  y: number;
23
23
  middlewareData: MiddlewareData | undefined;
24
24
  constructor(props: CreateFloatingProps);
25
- updatePosition: () => void;
26
25
  }
27
26
  export {};
@@ -17,14 +17,14 @@ export class CreateFloating {
17
17
  $effect(() => {
18
18
  if (!this.#elementsSet())
19
19
  return;
20
- const cleanup = autoUpdate(this.#referenceElement, this.#floatingElement, this.updatePosition);
20
+ const cleanup = autoUpdate(this.#referenceElement, this.#floatingElement, this.#updatePosition);
21
21
  return () => cleanup();
22
22
  });
23
23
  }
24
- #elementsSet = () => {
24
+ #elementsSet() {
25
25
  return this.#referenceElement && this.#floatingElement;
26
- };
27
- updatePosition = () => {
26
+ }
27
+ #updatePosition = () => {
28
28
  if (!this.#elementsSet())
29
29
  return;
30
30
  computePosition(this.#referenceElement, this.#floatingElement, {
@@ -72,9 +72,11 @@
72
72
  onremove?.();
73
73
  removeButtonProps?.onclick?.(event);
74
74
  }}
75
- />{/if}
75
+ />
76
+ {/if}
76
77
  </div>
77
78
 
79
+ <!-- svelte-ignore css_unused_selector -->
78
80
  <style>.root {
79
81
  --pill-fz-xs: calc(0.625rem * var(--mantine-scale));
80
82
  --pill-fz-sm: calc(0.75rem * var(--mantine-scale));
@@ -89,7 +89,7 @@
89
89
  onmousemove,
90
90
  onpointerdown,
91
91
  onpointerenter,
92
- defaultOpened = true,
92
+ defaultOpened = false,
93
93
  opened = $bindable(defaultOpened),
94
94
  label,
95
95
  withArrow = false,
@@ -154,8 +154,6 @@
154
154
  );
155
155
  </script>
156
156
 
157
- <!-- TODO: Tooltip position is not correct -->
158
-
159
157
  <OptionalPortal {withinPortal} {...portalProps}>
160
158
  {#if opened}
161
159
  <div
@@ -167,8 +165,8 @@
167
165
  style:--tooltip-bg={color ? colors.background : undefined}
168
166
  style:--tooltip-color={color ? colors.color : undefined}
169
167
  style:z-index={zIndex}
170
- style:top="{floating.x}px"
171
- style:left="{floating.y}px"
168
+ style:top="{floating.y}px"
169
+ style:left="{floating.x}px"
172
170
  data-multiline={multiline || undefined}
173
171
  data-fixed={floatingStrategy === 'fixed' || undefined}
174
172
  >
@@ -1,4 +1,5 @@
1
1
  export * from './charts/index.js';
2
+ export * from './CodeHighlight/index.js';
2
3
  export * from './components/index.js';
3
4
  export * from './creators/index.js';
4
5
  export * from './DirectionProvider/direction.svelte.js';
@@ -1,4 +1,5 @@
1
1
  export * from './charts/index.js';
2
+ export * from './CodeHighlight/index.js';
2
3
  export * from './components/index.js';
3
4
  export * from './creators/index.js';
4
5
  export * from './DirectionProvider/direction.svelte.js';
@@ -0,0 +1,113 @@
1
+ <script lang="ts">
2
+ import type { SegmentedControlProps } from '../core/components/SegmentedControl/SegmentedControl.svelte';
3
+ import type { SliderProps } from '../core/components/Slider/Slider.svelte';
4
+ import type { SwitchProps } from '../core/components/Switch/Switch.svelte';
5
+ import type { TextInputProps } from '../core/components/TextInput/TextInput.svelte';
6
+ import { SegmentedControl, Slider, Switch, TextInput } from '../core/index.js';
7
+ import type { Snippet } from 'svelte';
8
+
9
+ interface SegmentedControlItem extends SegmentedControlProps {
10
+ type: 'segmented-control';
11
+ name: string;
12
+ defaultValue: string;
13
+ label: string;
14
+ }
15
+
16
+ interface TextInputItem extends TextInputProps {
17
+ type: 'text';
18
+ label: string;
19
+ placeholder: string;
20
+ name: string;
21
+ }
22
+
23
+ interface SliderItem extends SliderProps {
24
+ type: 'slider';
25
+ name: string;
26
+ defaultValue: number;
27
+ }
28
+
29
+ interface SwitchItem extends SwitchProps {
30
+ type: 'switch';
31
+ label: string;
32
+ name: string;
33
+ defaultValue: boolean;
34
+ }
35
+
36
+ type UsageDemoSettings = SegmentedControlItem | TextInputItem | SliderItem | SwitchItem;
37
+
38
+ interface UsageDemoProps {
39
+ title?: string;
40
+ children: Snippet<[props: Record<string, unknown>]>;
41
+ withPadding?: boolean;
42
+ centered?: boolean;
43
+ href: string;
44
+
45
+ defaultProps?: Record<string, unknown>;
46
+ settings: UsageDemoSettings[];
47
+ }
48
+
49
+ let { title = 'Usage', children, withPadding = true, centered = true, href, defaultProps = {}, settings }: UsageDemoProps = $props();
50
+
51
+ function createPreviewProps(settings: UsageDemoSettings[]) {
52
+ const _props = { ...defaultProps };
53
+ settings.forEach((setting) => {
54
+ _props[setting.name] = 'value' in setting ? setting.value : setting.defaultValue;
55
+ });
56
+ return _props;
57
+ }
58
+
59
+ let previewProps = $state(createPreviewProps(settings));
60
+ </script>
61
+
62
+ <h2 class="title">
63
+ <a class="link" href={`${href}#usage`} id="usage">{title}</a>
64
+ </h2>
65
+
66
+ <div class="container">
67
+ <div class="demo-container">
68
+ <div class="demo-preview" data-with-padding={withPadding || undefined} data-centered={centered || undefined}>
69
+ {@render children(previewProps)}
70
+ </div>
71
+
72
+ <div class="demo-settings">
73
+ {#each settings as setting}
74
+ {#if setting.type === 'segmented-control'}
75
+ <SegmentedControl {...setting} bind:value={previewProps[setting.name] as string} />
76
+ {:else if setting.type === 'text'}
77
+ <TextInput {...setting} bind:value={previewProps[setting.name] as string} />
78
+ {:else if setting.type === 'slider'}
79
+ <Slider {...setting} bind:value={previewProps[setting.name] as number} />
80
+ {:else if setting.type === 'switch'}
81
+ <Switch {...setting} bind:checked={previewProps[setting.name] as boolean} />
82
+ {/if}
83
+ {/each}
84
+ </div>
85
+ </div>
86
+ </div>
87
+
88
+ <style>.container {
89
+ container-type: inline-size;
90
+ }
91
+
92
+ .demo-container {
93
+ display: flex;
94
+ }
95
+
96
+ .demo-preview {
97
+ flex: 1;
98
+ border-top-left-radius: calc(var(--mantine-radius-md) - 1px);
99
+ border-top-right-radius: calc(var(--mantine-radius-md) - 1px);
100
+ }
101
+ .demo-preview[data-with-padding] {
102
+ padding: var(--mantine-spacing-md);
103
+ }
104
+ .demo-preview[data-centered] {
105
+ display: flex;
106
+ align-items: center;
107
+ justify-content: center;
108
+ }
109
+
110
+ .link {
111
+ text-decoration: none;
112
+ color: inherit;
113
+ }</style>
@@ -0,0 +1,41 @@
1
+ import type { SegmentedControlProps } from '../core/components/SegmentedControl/SegmentedControl.svelte';
2
+ import type { SliderProps } from '../core/components/Slider/Slider.svelte';
3
+ import type { SwitchProps } from '../core/components/Switch/Switch.svelte';
4
+ import type { TextInputProps } from '../core/components/TextInput/TextInput.svelte';
5
+ import type { Snippet } from 'svelte';
6
+ interface SegmentedControlItem extends SegmentedControlProps {
7
+ type: 'segmented-control';
8
+ name: string;
9
+ defaultValue: string;
10
+ label: string;
11
+ }
12
+ interface TextInputItem extends TextInputProps {
13
+ type: 'text';
14
+ label: string;
15
+ placeholder: string;
16
+ name: string;
17
+ }
18
+ interface SliderItem extends SliderProps {
19
+ type: 'slider';
20
+ name: string;
21
+ defaultValue: number;
22
+ }
23
+ interface SwitchItem extends SwitchProps {
24
+ type: 'switch';
25
+ label: string;
26
+ name: string;
27
+ defaultValue: boolean;
28
+ }
29
+ type UsageDemoSettings = SegmentedControlItem | TextInputItem | SliderItem | SwitchItem;
30
+ interface UsageDemoProps {
31
+ title?: string;
32
+ children: Snippet<[props: Record<string, unknown>]>;
33
+ withPadding?: boolean;
34
+ centered?: boolean;
35
+ href: string;
36
+ defaultProps?: Record<string, unknown>;
37
+ settings: UsageDemoSettings[];
38
+ }
39
+ declare const UsageDemo: import("svelte").Component<UsageDemoProps, {}, "">;
40
+ type UsageDemo = ReturnType<typeof UsageDemo>;
41
+ export default UsageDemo;
@@ -1,4 +1,4 @@
1
- @import './functions';
1
+ @use './functions' as *;
2
2
 
3
3
  @mixin light {
4
4
  :global([data-mantine-color-scheme='light']) & {