reburn-ui 0.4.3 → 0.4.5

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 (49) 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 +4 -2
  38. package/dist/core/components/PinInput/PinInput.svelte +274 -0
  39. package/dist/core/components/PinInput/PinInput.svelte.d.ts +58 -0
  40. package/dist/core/components/PinInput/create-pin-array.d.ts +1 -0
  41. package/dist/core/components/PinInput/create-pin-array.js +13 -0
  42. package/dist/core/components/Tooltip/Tooltip.svelte +3 -5
  43. package/dist/core/index.d.ts +1 -0
  44. package/dist/core/index.js +1 -0
  45. package/dist/docs/UsageDemo.svelte +113 -0
  46. package/dist/docs/UsageDemo.svelte.d.ts +41 -0
  47. package/dist/styles/_mixins.scss +1 -1
  48. package/dist/styles/_variables.scss +145 -5
  49. package/package.json +34 -25
@@ -0,0 +1,13 @@
1
+ export function createPinArray(length, value) {
2
+ if (length < 1) {
3
+ return [];
4
+ }
5
+ const values = new Array(length).fill('');
6
+ if (value) {
7
+ const splitted = value.trim().split('');
8
+ for (let i = 0; i < Math.min(length, splitted.length); i += 1) {
9
+ values[i] = splitted[i] === ' ' ? '' : splitted[i];
10
+ }
11
+ }
12
+ return values;
13
+ }
@@ -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']) & {
@@ -1,3 +1,4 @@
1
+ // :root variables
1
2
  $z-index-app: var(--mantine-z-index-app);
2
3
  $z-index-modal: var(--mantine-z-index-modal);
3
4
  $z-index-popover: var(--mantine-z-index-popover);
@@ -52,11 +53,6 @@ $shadow-sm: var(--mantine-shadow-sm);
52
53
  $shadow-md: var(--mantine-shadow-md);
53
54
  $shadow-lg: var(--mantine-shadow-lg);
54
55
  $shadow-xl: var(--mantine-shadow-xl);
55
- $radius-xs: var(--mantine-radius-xs);
56
- $radius-sm: var(--mantine-radius-sm);
57
- $radius-md: var(--mantine-radius-md);
58
- $radius-lg: var(--mantine-radius-lg);
59
- $radius-xl: var(--mantine-radius-xl);
60
56
  $primary-color-0: var(--mantine-primary-color-0);
61
57
  $primary-color-1: var(--mantine-primary-color-1);
62
58
  $primary-color-2: var(--mantine-primary-color-2);
@@ -67,6 +63,7 @@ $primary-color-6: var(--mantine-primary-color-6);
67
63
  $primary-color-7: var(--mantine-primary-color-7);
68
64
  $primary-color-8: var(--mantine-primary-color-8);
69
65
  $primary-color-9: var(--mantine-primary-color-9);
66
+ $dark-0: var(--mantine-color-dark-0);
70
67
  $dark-1: var(--mantine-color-dark-1);
71
68
  $dark-2: var(--mantine-color-dark-2);
72
69
  $dark-3: var(--mantine-color-dark-3);
@@ -76,6 +73,7 @@ $dark-6: var(--mantine-color-dark-6);
76
73
  $dark-7: var(--mantine-color-dark-7);
77
74
  $dark-8: var(--mantine-color-dark-8);
78
75
  $dark-9: var(--mantine-color-dark-9);
76
+ $gray-0: var(--mantine-color-gray-0);
79
77
  $gray-1: var(--mantine-color-gray-1);
80
78
  $gray-2: var(--mantine-color-gray-2);
81
79
  $gray-3: var(--mantine-color-gray-3);
@@ -85,6 +83,7 @@ $gray-6: var(--mantine-color-gray-6);
85
83
  $gray-7: var(--mantine-color-gray-7);
86
84
  $gray-8: var(--mantine-color-gray-8);
87
85
  $gray-9: var(--mantine-color-gray-9);
86
+ $red-0: var(--mantine-color-red-0);
88
87
  $red-1: var(--mantine-color-red-1);
89
88
  $red-2: var(--mantine-color-red-2);
90
89
  $red-3: var(--mantine-color-red-3);
@@ -94,6 +93,7 @@ $red-6: var(--mantine-color-red-6);
94
93
  $red-7: var(--mantine-color-red-7);
95
94
  $red-8: var(--mantine-color-red-8);
96
95
  $red-9: var(--mantine-color-red-9);
96
+ $pink-0: var(--mantine-color-pink-0);
97
97
  $pink-1: var(--mantine-color-pink-1);
98
98
  $pink-2: var(--mantine-color-pink-2);
99
99
  $pink-3: var(--mantine-color-pink-3);
@@ -103,6 +103,7 @@ $pink-6: var(--mantine-color-pink-6);
103
103
  $pink-7: var(--mantine-color-pink-7);
104
104
  $pink-8: var(--mantine-color-pink-8);
105
105
  $pink-9: var(--mantine-color-pink-9);
106
+ $grape-0: var(--mantine-color-grape-0);
106
107
  $grape-1: var(--mantine-color-grape-1);
107
108
  $grape-2: var(--mantine-color-grape-2);
108
109
  $grape-3: var(--mantine-color-grape-3);
@@ -112,6 +113,7 @@ $grape-6: var(--mantine-color-grape-6);
112
113
  $grape-7: var(--mantine-color-grape-7);
113
114
  $grape-8: var(--mantine-color-grape-8);
114
115
  $grape-9: var(--mantine-color-grape-9);
116
+ $violet-0: var(--mantine-color-violet-0);
115
117
  $violet-1: var(--mantine-color-violet-1);
116
118
  $violet-2: var(--mantine-color-violet-2);
117
119
  $violet-3: var(--mantine-color-violet-3);
@@ -121,6 +123,7 @@ $violet-6: var(--mantine-color-violet-6);
121
123
  $violet-7: var(--mantine-color-violet-7);
122
124
  $violet-8: var(--mantine-color-violet-8);
123
125
  $violet-9: var(--mantine-color-violet-9);
126
+ $indigo-0: var(--mantine-color-indigo-0);
124
127
  $indigo-1: var(--mantine-color-indigo-1);
125
128
  $indigo-2: var(--mantine-color-indigo-2);
126
129
  $indigo-3: var(--mantine-color-indigo-3);
@@ -130,6 +133,7 @@ $indigo-6: var(--mantine-color-indigo-6);
130
133
  $indigo-7: var(--mantine-color-indigo-7);
131
134
  $indigo-8: var(--mantine-color-indigo-8);
132
135
  $indigo-9: var(--mantine-color-indigo-9);
136
+ $blue-0: var(--mantine-color-blue-0);
133
137
  $blue-1: var(--mantine-color-blue-1);
134
138
  $blue-2: var(--mantine-color-blue-2);
135
139
  $blue-3: var(--mantine-color-blue-3);
@@ -139,6 +143,7 @@ $blue-6: var(--mantine-color-blue-6);
139
143
  $blue-7: var(--mantine-color-blue-7);
140
144
  $blue-8: var(--mantine-color-blue-8);
141
145
  $blue-9: var(--mantine-color-blue-9);
146
+ $cyan-0: var(--mantine-color-cyan-0);
142
147
  $cyan-1: var(--mantine-color-cyan-1);
143
148
  $cyan-2: var(--mantine-color-cyan-2);
144
149
  $cyan-3: var(--mantine-color-cyan-3);
@@ -148,6 +153,7 @@ $cyan-6: var(--mantine-color-cyan-6);
148
153
  $cyan-7: var(--mantine-color-cyan-7);
149
154
  $cyan-8: var(--mantine-color-cyan-8);
150
155
  $cyan-9: var(--mantine-color-cyan-9);
156
+ $teal-0: var(--mantine-color-teal-0);
151
157
  $teal-1: var(--mantine-color-teal-1);
152
158
  $teal-2: var(--mantine-color-teal-2);
153
159
  $teal-3: var(--mantine-color-teal-3);
@@ -157,6 +163,7 @@ $teal-6: var(--mantine-color-teal-6);
157
163
  $teal-7: var(--mantine-color-teal-7);
158
164
  $teal-8: var(--mantine-color-teal-8);
159
165
  $teal-9: var(--mantine-color-teal-9);
166
+ $green-0: var(--mantine-color-green-0);
160
167
  $green-1: var(--mantine-color-green-1);
161
168
  $green-2: var(--mantine-color-green-2);
162
169
  $green-3: var(--mantine-color-green-3);
@@ -166,6 +173,7 @@ $green-6: var(--mantine-color-green-6);
166
173
  $green-7: var(--mantine-color-green-7);
167
174
  $green-8: var(--mantine-color-green-8);
168
175
  $green-9: var(--mantine-color-green-9);
176
+ $lime-0: var(--mantine-color-lime-0);
169
177
  $lime-1: var(--mantine-color-lime-1);
170
178
  $lime-2: var(--mantine-color-lime-2);
171
179
  $lime-3: var(--mantine-color-lime-3);
@@ -175,6 +183,7 @@ $lime-6: var(--mantine-color-lime-6);
175
183
  $lime-7: var(--mantine-color-lime-7);
176
184
  $lime-8: var(--mantine-color-lime-8);
177
185
  $lime-9: var(--mantine-color-lime-9);
186
+ $yellow-0: var(--mantine-color-yellow-0);
178
187
  $yellow-1: var(--mantine-color-yellow-1);
179
188
  $yellow-2: var(--mantine-color-yellow-2);
180
189
  $yellow-3: var(--mantine-color-yellow-3);
@@ -184,6 +193,7 @@ $yellow-6: var(--mantine-color-yellow-6);
184
193
  $yellow-7: var(--mantine-color-yellow-7);
185
194
  $yellow-8: var(--mantine-color-yellow-8);
186
195
  $yellow-9: var(--mantine-color-yellow-9);
196
+ $orange-0: var(--mantine-color-orange-0);
187
197
  $orange-1: var(--mantine-color-orange-1);
188
198
  $orange-2: var(--mantine-color-orange-2);
189
199
  $orange-3: var(--mantine-color-orange-3);
@@ -211,3 +221,133 @@ $h5-font-weight: var(--mantine-h5-font-weight);
211
221
  $h6-font-size: var(--mantine-h6-font-size);
212
222
  $h6-line-height: var(--mantine-h6-line-height);
213
223
  $h6-font-weight: var(--mantine-h6-font-weight);
224
+
225
+ // :root color scheme variables
226
+ $color-scheme: var(--mantine-color-scheme);
227
+ $primary-color-contrast: var(--mantine-primary-color-contrast);
228
+ $color-bright: var(--mantine-color-bright);
229
+ $color-text: var(--mantine-color-text);
230
+ $color-body: var(--mantine-color-body);
231
+ $color-error: var(--mantine-color-error);
232
+ $color-placeholder: var(--mantine-color-placeholder);
233
+ $color-anchor: var(--mantine-color-anchor);
234
+ $color-default: var(--mantine-color-default);
235
+ $color-default-hover: var(--mantine-color-default-hover);
236
+ $color-default-color: var(--mantine-color-default-color);
237
+ $color-default-border: var(--mantine-color-default-border);
238
+ $color-dimmed: var(--mantine-color-dimmed);
239
+ $color-disabled: var(--mantine-color-disabled);
240
+ $color-disabled-color: var(--mantine-color-disabled-color);
241
+ $color-disabled-border: var(--mantine-color-disabled-border);
242
+ $color-dark-text: var(--mantine-color-dark-text);
243
+ $color-dark-filled: var(--mantine-color-dark-filled);
244
+ $color-dark-filled-hover: var(--mantine-color-dark-filled-hover);
245
+ $color-dark-light: var(--mantine-color-dark-light);
246
+ $color-dark-light-hover: var(--mantine-color-dark-light-hover);
247
+ $color-dark-light-color: var(--mantine-color-dark-light-color);
248
+ $color-dark-outline: var(--mantine-color-dark-outline);
249
+ $color-dark-outline-hover: var(--mantine-color-dark-outline-hover);
250
+ $color-gray-text: var(--mantine-color-gray-text);
251
+ $color-gray-filled: var(--mantine-color-gray-filled);
252
+ $color-gray-filled-hover: var(--mantine-color-gray-filled-hover);
253
+ $color-gray-light: var(--mantine-color-gray-light);
254
+ $color-gray-light-hover: var(--mantine-color-gray-light-hover);
255
+ $color-gray-light-color: var(--mantine-color-gray-light-color);
256
+ $color-gray-outline: var(--mantine-color-gray-outline);
257
+ $color-gray-outline-hover: var(--mantine-color-gray-outline-hover);
258
+ $color-red-text: var(--mantine-color-red-text);
259
+ $color-red-filled: var(--mantine-color-red-filled);
260
+ $color-red-filled-hover: var(--mantine-color-red-filled-hover);
261
+ $color-red-light: var(--mantine-color-red-light);
262
+ $color-red-light-hover: var(--mantine-color-red-light-hover);
263
+ $color-red-light-color: var(--mantine-color-red-light-color);
264
+ $color-red-outline: var(--mantine-color-red-outline);
265
+ $color-red-outline-hover: var(--mantine-color-red-outline-hover);
266
+ $color-pink-text: var(--mantine-color-pink-text);
267
+ $color-pink-filled: var(--mantine-color-pink-filled);
268
+ $color-pink-filled-hover: var(--mantine-color-pink-filled-hover);
269
+ $color-pink-light: var(--mantine-color-pink-light);
270
+ $color-pink-light-hover: var(--mantine-color-pink-light-hover);
271
+ $color-pink-light-color: var(--mantine-color-pink-light-color);
272
+ $color-pink-outline: var(--mantine-color-pink-outline);
273
+ $color-pink-outline-hover: var(--mantine-color-pink-outline-hover);
274
+ $color-grape-text: var(--mantine-color-grape-text);
275
+ $color-grape-filled: var(--mantine-color-grape-filled);
276
+ $color-grape-filled-hover: var(--mantine-color-grape-filled-hover);
277
+ $color-grape-light: var(--mantine-color-grape-light);
278
+ $color-grape-light-hover: var(--mantine-color-grape-light-hover);
279
+ $color-grape-light-color: var(--mantine-color-grape-light-color);
280
+ $color-grape-outline: var(--mantine-color-grape-outline);
281
+ $color-grape-outline-hover: var(--mantine-color-grape-outline-hover);
282
+ $color-violet-text: var(--mantine-color-violet-text);
283
+ $color-violet-filled: var(--mantine-color-violet-filled);
284
+ $color-violet-filled-hover: var(--mantine-color-violet-filled-hover);
285
+ $color-violet-light: var(--mantine-color-violet-light);
286
+ $color-violet-light-hover: var(--mantine-color-violet-light-hover);
287
+ $color-violet-light-color: var(--mantine-color-violet-light-color);
288
+ $color-violet-outline: var(--mantine-color-violet-outline);
289
+ $color-violet-outline-hover: var(--mantine-color-violet-outline-hover);
290
+ $color-indigo-text: var(--mantine-color-indigo-text);
291
+ $color-indigo-filled: var(--mantine-color-indigo-filled);
292
+ $color-indigo-filled-hover: var(--mantine-color-indigo-filled-hover);
293
+ $color-indigo-light: var(--mantine-color-indigo-light);
294
+ $color-indigo-light-hover: var(--mantine-color-indigo-light-hover);
295
+ $color-indigo-light-color: var(--mantine-color-indigo-light-color);
296
+ $color-indigo-outline: var(--mantine-color-indigo-outline);
297
+ $color-indigo-outline-hover: var(--mantine-color-indigo-outline-hover);
298
+ $color-blue-text: var(--mantine-color-blue-text);
299
+ $color-blue-filled: var(--mantine-color-blue-filled);
300
+ $color-blue-filled-hover: var(--mantine-color-blue-filled-hover);
301
+ $color-blue-light: var(--mantine-color-blue-light);
302
+ $color-blue-light-hover: var(--mantine-color-blue-light-hover);
303
+ $color-blue-light-color: var(--mantine-color-blue-light-color);
304
+ $color-blue-outline: var(--mantine-color-blue-outline);
305
+ $color-blue-outline-hover: var(--mantine-color-blue-outline-hover);
306
+ $color-cyan-text: var(--mantine-color-cyan-text);
307
+ $color-cyan-filled: var(--mantine-color-cyan-filled);
308
+ $color-cyan-filled-hover: var(--mantine-color-cyan-filled-hover);
309
+ $color-cyan-light: var(--mantine-color-cyan-light);
310
+ $color-cyan-light-hover: var(--mantine-color-cyan-light-hover);
311
+ $color-cyan-light-color: var(--mantine-color-cyan-light-color);
312
+ $color-cyan-outline: var(--mantine-color-cyan-outline);
313
+ $color-cyan-outline-hover: var(--mantine-color-cyan-outline-hover);
314
+ $color-teal-text: var(--mantine-color-teal-text);
315
+ $color-teal-filled: var(--mantine-color-teal-filled);
316
+ $color-teal-filled-hover: var(--mantine-color-teal-filled-hover);
317
+ $color-teal-light: var(--mantine-color-teal-light);
318
+ $color-teal-light-hover: var(--mantine-color-teal-light-hover);
319
+ $color-teal-light-color: var(--mantine-color-teal-light-color);
320
+ $color-teal-outline: var(--mantine-color-teal-outline);
321
+ $color-teal-outline-hover: var(--mantine-color-teal-outline-hover);
322
+ $color-green-text: var(--mantine-color-green-text);
323
+ $color-green-filled: var(--mantine-color-green-filled);
324
+ $color-green-filled-hover: var(--mantine-color-green-filled-hover);
325
+ $color-green-light: var(--mantine-color-green-light);
326
+ $color-green-light-hover: var(--mantine-color-green-light-hover);
327
+ $color-green-light-color: var(--mantine-color-green-light-color);
328
+ $color-green-outline: var(--mantine-color-green-outline);
329
+ $color-green-outline-hover: var(--mantine-color-green-outline-hover);
330
+ $color-lime-text: var(--mantine-color-lime-text);
331
+ $color-lime-filled: var(--mantine-color-lime-filled);
332
+ $color-lime-filled-hover: var(--mantine-color-lime-filled-hover);
333
+ $color-lime-light: var(--mantine-color-lime-light);
334
+ $color-lime-light-hover: var(--mantine-color-lime-light-hover);
335
+ $color-lime-light-color: var(--mantine-color-lime-light-color);
336
+ $color-lime-outline: var(--mantine-color-lime-outline);
337
+ $color-lime-outline-hover: var(--mantine-color-lime-outline-hover);
338
+ $color-yellow-text: var(--mantine-color-yellow-text);
339
+ $color-yellow-filled: var(--mantine-color-yellow-filled);
340
+ $color-yellow-filled-hover: var(--mantine-color-yellow-filled-hover);
341
+ $color-yellow-light: var(--mantine-color-yellow-light);
342
+ $color-yellow-light-hover: var(--mantine-color-yellow-light-hover);
343
+ $color-yellow-light-color: var(--mantine-color-yellow-light-color);
344
+ $color-yellow-outline: var(--mantine-color-yellow-outline);
345
+ $color-yellow-outline-hover: var(--mantine-color-yellow-outline-hover);
346
+ $color-orange-text: var(--mantine-color-orange-text);
347
+ $color-orange-filled: var(--mantine-color-orange-filled);
348
+ $color-orange-filled-hover: var(--mantine-color-orange-filled-hover);
349
+ $color-orange-light: var(--mantine-color-orange-light);
350
+ $color-orange-light-hover: var(--mantine-color-orange-light-hover);
351
+ $color-orange-light-color: var(--mantine-color-orange-light-color);
352
+ $color-orange-outline: var(--mantine-color-orange-outline);
353
+ $color-orange-outline-hover: var(--mantine-color-orange-outline-hover);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reburn-ui",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -11,7 +11,8 @@
11
11
  "prepare": "svelte-kit sync || echo ''",
12
12
  "prepack": "bun vite build && bun svelte-kit sync && PREPACK=true bun svelte-package && bun publint",
13
13
  "transform-css-files": "bun run scripts/transform-css-files.ts",
14
- "lint": "eslint ."
14
+ "lint": "eslint .",
15
+ "postinstall": "bun run transform-css-files"
15
16
  },
16
17
  "files": [
17
18
  "dist",
@@ -44,51 +45,59 @@
44
45
  "./styles/global.css": "./dist/styles/global.css",
45
46
  "./styles/_functions.scss": "./dist/styles/_functions.scss",
46
47
  "./styles/_mixins.scss": "./dist/styles/_mixins.scss",
47
- "./styles/_variables.scss": "./dist/styles/_variables.scss"
48
+ "./styles/_variables.scss": "./dist/styles/_variables.scss",
49
+ "./styles/code-highlight/styles.css": "./dist/core/CodeHighlight/code-highlight.css"
48
50
  },
49
51
  "peerDependencies": {
50
52
  "svelte": "^5.29.0"
51
53
  },
52
54
  "dependencies": {
53
55
  "@floating-ui/dom": "^1.7.4",
54
- "@iconify/json": "^2.2.392",
56
+ "@fontsource-variable/outfit": "^5.2.8",
57
+ "@iconify/json": "^2.2.409",
55
58
  "attr-accept": "^2.2.5",
56
- "dayjs": "^1.11.18",
57
- "es-toolkit": "^1.39.10",
59
+ "dayjs": "^1.11.19",
60
+ "es-toolkit": "^1.42.0",
61
+ "highlight.js": "^11.11.1",
62
+ "highlight.svelte": "^0.1.3",
58
63
  "nanoid": "^5",
59
- "type-fest": "^5.0.1",
60
- "unplugin-icons": "^22.4.2"
64
+ "type-fest": "^5.2.0",
65
+ "unplugin-icons": "^22.5.0"
61
66
  },
62
67
  "devDependencies": {
63
- "@eslint/compat": "^1.4.0",
64
- "@eslint/js": "^9.37.0",
65
- "@sveltejs/adapter-auto": "^6.1.1",
66
- "@sveltejs/kit": "^2.44.0",
68
+ "@eslint/compat": "^2.0.0",
69
+ "@eslint/js": "^9.39.1",
70
+ "@sveltejs/adapter-auto": "^7.0.0",
71
+ "@sveltejs/kit": "^2.48.5",
67
72
  "@sveltejs/package": "2.5.4",
68
73
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
69
- "@types/bun": "^1.2.23",
70
- "csstype": "^3.1.3",
71
- "eslint": "^9.37.0",
72
- "eslint-plugin-svelte": "^3.12.4",
73
- "globals": "^16.4.0",
74
+ "@types/bun": "^1.3.2",
75
+ "csstype": "^3.2.3",
76
+ "eslint": "^9.39.1",
77
+ "eslint-plugin-svelte": "^3.13.0",
78
+ "globals": "^16.5.0",
79
+ "mdsvex": "^0.12.6",
74
80
  "mitata": "^1.0.34",
75
81
  "postcss": "^8.5.6",
76
82
  "postcss-load-config": "^6.0.1",
77
83
  "postcss-preset-mantine": "^1.18.0",
78
84
  "postcss-simple-vars": "^7.0.1",
79
- "publint": "^0.3.14",
80
- "sass-embedded": "^1.93.2",
81
- "sonda": "^0.9.0",
82
- "svelte": "^5.39.9",
83
- "svelte-check": "^4.3.2",
85
+ "publint": "^0.3.15",
86
+ "sass-embedded": "^1.93.3",
87
+ "sonda": "^0.10.0",
88
+ "svelte": "^5.43.12",
89
+ "svelte-check": "^4.3.4",
84
90
  "typescript": "^5.9.3",
85
- "typescript-eslint": "^8.45.0",
86
- "vite": "^7.1.9"
91
+ "typescript-eslint": "^8.47.0",
92
+ "vite": "^7.2.4"
87
93
  },
88
94
  "keywords": [
89
95
  "svelte"
90
96
  ],
91
97
  "patchedDependencies": {
92
98
  "@sveltejs/package@2.5.4": "patches/@sveltejs%2Fpackage@2.5.4.patch"
93
- }
99
+ },
100
+ "trustedDependencies": [
101
+ "@parcel/watcher"
102
+ ]
94
103
  }