reburn-ui 0.3.3 → 0.3.4
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/components/Accordion/Accordion.svelte +2 -3
- package/dist/core/components/Checkbox/Checkbox.svelte +3 -5
- package/dist/core/components/Checkbox/CheckboxIndicator.svelte +3 -5
- package/dist/core/components/Chip/Chip.svelte +2 -3
- package/dist/core/components/CloseButton/CloseButton.svelte +2 -3
- package/dist/core/components/Combobox/ComboboxChevron.svelte +9 -3
- package/dist/core/components/Combobox/OptionsDropdown/OptionsDropdownOption.svelte +3 -4
- package/dist/core/components/NavLink/NavLink.svelte +2 -3
- package/package.json +2 -2
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
|
-
<script lang="ts" generics="T extends AccordionItem, Multiple extends boolean = false">
|
|
69
|
-
|
|
68
|
+
<script lang="ts" generics="T extends AccordionItem, Multiple extends boolean = false">
|
|
70
69
|
import type { Snippet } from 'svelte';
|
|
71
70
|
import { type TransitionConfig } from 'svelte/transition';
|
|
72
71
|
|
|
@@ -132,7 +131,7 @@
|
|
|
132
131
|
{#if chevron}
|
|
133
132
|
{@render chevron()}
|
|
134
133
|
{:else}
|
|
135
|
-
<
|
|
134
|
+
<icon name="tabler:chevron-down"></icon>
|
|
136
135
|
{/if}
|
|
137
136
|
</span>
|
|
138
137
|
|
|
@@ -55,9 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
|
-
<script lang="ts">
|
|
59
|
-
import TablerCheck from "/home/moritz/Documents/GitHub/mantine-reburn-ui/node_modules/.generated-reburn-icons/TablerCheck.svelte";
|
|
60
|
-
|
|
58
|
+
<script lang="ts">
|
|
61
59
|
import { parseThemeColor } from '../../MantineProvider/color-functions/parse-theme-color.svelte.js';
|
|
62
60
|
import { theme } from '../../MantineProvider/theme.svelte.js';
|
|
63
61
|
import { getRadius, getSize } from '../../utils/get-size.js';
|
|
@@ -137,9 +135,9 @@
|
|
|
137
135
|
{#if icon}
|
|
138
136
|
{@render icon(indeterminate, 'icon')}
|
|
139
137
|
{:else if indeterminate}
|
|
140
|
-
<
|
|
138
|
+
<icon name="tabler:minus" class="icon"></icon>
|
|
141
139
|
{:else}
|
|
142
|
-
<
|
|
140
|
+
<icon name="tabler:check" class="icon"></icon>
|
|
143
141
|
{/if}
|
|
144
142
|
{/if}
|
|
145
143
|
</div>
|
|
@@ -39,9 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
</script>
|
|
41
41
|
|
|
42
|
-
<script lang="ts">
|
|
43
|
-
import TablerCheck from "/home/moritz/Documents/GitHub/mantine-reburn-ui/node_modules/.generated-reburn-icons/TablerCheck.svelte";
|
|
44
|
-
|
|
42
|
+
<script lang="ts">
|
|
45
43
|
import { getAutoContrastValue } from '../../MantineProvider/color-functions/get-auto-contrast-value.svelte.js';
|
|
46
44
|
import { getContrastColor } from '../../MantineProvider/color-functions/get-contrast-color.svelte.js';
|
|
47
45
|
import { getThemeColor } from '../../MantineProvider/color-functions/get-theme-color.js';
|
|
@@ -98,9 +96,9 @@
|
|
|
98
96
|
>
|
|
99
97
|
{#if _checked}
|
|
100
98
|
{#if indeterminate}
|
|
101
|
-
<
|
|
99
|
+
<icon name="tabler:minus" class={['icon', `icon--${variant}`]} {...dataAttributes}></icon>
|
|
102
100
|
{:else}
|
|
103
|
-
<
|
|
101
|
+
<icon name="tabler:check" class={['icon', `icon--${variant}`]} {...dataAttributes}></icon>
|
|
104
102
|
{/if}
|
|
105
103
|
{/if}
|
|
106
104
|
</div>
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
</script>
|
|
56
56
|
|
|
57
|
-
<script lang="ts">
|
|
58
|
-
|
|
57
|
+
<script lang="ts">
|
|
59
58
|
import { theme } from '../../MantineProvider/theme.svelte.js';
|
|
60
59
|
import { getFontSize, getRadius, getSize } from '../../utils/get-size.js';
|
|
61
60
|
import { getChipGroupContext } from './ChipGroup/ChipGroupContext.svelte.js';
|
|
@@ -121,7 +120,7 @@
|
|
|
121
120
|
{#if icon}
|
|
122
121
|
{@render icon()}
|
|
123
122
|
{:else}
|
|
124
|
-
<
|
|
123
|
+
<icon name="tabler:check" class="check-icon"></icon>
|
|
125
124
|
{/if}
|
|
126
125
|
</span>
|
|
127
126
|
{/if}
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
export interface CloseButtonProps extends __CloseButtonProps, Omit<HTMLButtonAttributes, 'disabled'> {}
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
|
-
<script lang="ts">
|
|
40
|
-
|
|
39
|
+
<script lang="ts">
|
|
41
40
|
import { getRadius, getSize } from '../../utils/get-size.js';
|
|
42
41
|
import { rem } from '../../utils/units-converters/rem.js';
|
|
43
42
|
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
{#if icon}
|
|
58
57
|
{@render icon?.()}
|
|
59
58
|
{:else}
|
|
60
|
-
<
|
|
59
|
+
<icon class="icon" name="tabler:x"></icon>
|
|
61
60
|
{/if}
|
|
62
61
|
</button>
|
|
63
62
|
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<script lang="ts">
|
|
13
|
-
|
|
12
|
+
<script lang="ts">
|
|
14
13
|
import { getThemeColor } from '../../MantineProvider/color-functions/get-theme-color.js';
|
|
15
14
|
import { getSize } from '../../utils/get-size.js';
|
|
16
15
|
import { getComboboxContext } from './ComboboxContext.svelte.js';
|
|
@@ -20,7 +19,14 @@
|
|
|
20
19
|
let { size = ctx.size, error, color, ...props }: ComboboxChevronProps = $props();
|
|
21
20
|
</script>
|
|
22
21
|
|
|
23
|
-
<
|
|
22
|
+
<icon
|
|
23
|
+
{...props}
|
|
24
|
+
name="tabler:selector"
|
|
25
|
+
class={['chevron-5KwWrrOy', props.class]}
|
|
26
|
+
data-combobox-chevron
|
|
27
|
+
data-error={Boolean(error) || undefined}
|
|
28
|
+
style={`--combobox-chevron-size: ${getSize(size, 'combobox-chevron-size')}; ${props.style}; ${color ? `--combobox-chevron-color: ${getThemeColor(color)}` : ''}`}
|
|
29
|
+
></icon>
|
|
24
30
|
|
|
25
31
|
<!-- TODO: This works in production but not in dev -->
|
|
26
32
|
<style>:global(.chevron-5KwWrrOy) {
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
|
-
<script lang="ts">
|
|
22
|
-
|
|
21
|
+
<script lang="ts">
|
|
23
22
|
import { isOptionsGroup } from './is-options-group.js';
|
|
24
23
|
|
|
25
24
|
let { data, withCheckIcon, value, checkIconPosition, renderOption }: OptionProps = $props();
|
|
@@ -46,11 +45,11 @@
|
|
|
46
45
|
{@render renderOption({ option: data, checked })}
|
|
47
46
|
{:else}
|
|
48
47
|
{#if withCheckIcon && checked && checkIconPosition === 'left'}
|
|
49
|
-
<
|
|
48
|
+
<icon name="tabler:check" class="icon-71XliHqC" data-reverse={reverse} data-checked={selected} stroke-width="4"></icon>
|
|
50
49
|
{/if}
|
|
51
50
|
<span>{data.label}</span>
|
|
52
51
|
{#if withCheckIcon && checked && checkIconPosition === 'right'}
|
|
53
|
-
<
|
|
52
|
+
<icon name="tabler:check" class="icon-71XliHqC" data-reverse={reverse} data-checked={selected} stroke-width="4"></icon>
|
|
54
53
|
{/if}
|
|
55
54
|
{/if}
|
|
56
55
|
</Combobox.Option>
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
</script>
|
|
53
53
|
|
|
54
|
-
<script lang="ts">
|
|
55
|
-
|
|
54
|
+
<script lang="ts">
|
|
56
55
|
let {
|
|
57
56
|
label,
|
|
58
57
|
description,
|
|
@@ -122,7 +121,7 @@
|
|
|
122
121
|
{#if rightSection}
|
|
123
122
|
{@render rightSection?.()}
|
|
124
123
|
{:else}
|
|
125
|
-
<
|
|
124
|
+
<icon name="tabler:chevron-down"></icon>
|
|
126
125
|
{/if}
|
|
127
126
|
{:else}
|
|
128
127
|
{@render rightSection?.()}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reburn-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build": "bun run build-icon-tool && LOCAL_REBURN_UI_INSTALLED=true vite build",
|
|
10
10
|
"preview": "vite preview",
|
|
11
11
|
"prepare": "svelte-kit sync || echo ''",
|
|
12
|
-
"prepack": "LOCAL_REBURN_UI_INSTALLED=true bun vite build && bun svelte-kit sync && bun svelte-package && bun publint",
|
|
12
|
+
"prepack": "LOCAL_REBURN_UI_INSTALLED=true 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
14
|
"lint": "eslint .",
|
|
15
15
|
"build-icon-tool": "bun run scripts/build-icon-tool.ts"
|