reburn-ui 0.4.2 → 0.4.3
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/CloseButton/CloseButton.svelte +2 -1
- package/dist/core/components/Combobox/ComboboxChevron.svelte +3 -3
- package/dist/core/icons/IconSelector.svelte +20 -0
- package/dist/core/icons/IconSelector.svelte.d.ts +4 -0
- package/dist/core/icons/IconX.svelte +20 -0
- package/dist/core/icons/IconX.svelte.d.ts +4 -0
- package/package.json +1 -1
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
39
|
<script lang="ts">
|
|
40
|
+
import IconX from '../../icons/IconX.svelte';
|
|
40
41
|
import { getRadius, getSize } from '../../utils/get-size.js';
|
|
41
42
|
import { rem } from '../../utils/units-converters/rem.js';
|
|
42
43
|
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
{#if icon}
|
|
57
58
|
{@render icon?.()}
|
|
58
59
|
{:else}
|
|
59
|
-
<
|
|
60
|
+
<IconX class="icon" />
|
|
60
61
|
{/if}
|
|
61
62
|
</button>
|
|
62
63
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<script lang="ts">
|
|
13
|
+
import IconSelector from '../../icons/IconSelector.svelte';
|
|
13
14
|
import { getThemeColor } from '../../MantineProvider/color-functions/get-theme-color.js';
|
|
14
15
|
import { getSize } from '../../utils/get-size.js';
|
|
15
16
|
import { getComboboxContext } from './ComboboxContext.svelte.js';
|
|
@@ -19,14 +20,13 @@
|
|
|
19
20
|
let { size = ctx.size, error, color, ...props }: ComboboxChevronProps = $props();
|
|
20
21
|
</script>
|
|
21
22
|
|
|
22
|
-
<
|
|
23
|
+
<IconSelector
|
|
23
24
|
{...props}
|
|
24
|
-
name="tabler:selector"
|
|
25
25
|
class={['chevron-5KwWrrOy', props.class]}
|
|
26
26
|
data-combobox-chevron
|
|
27
27
|
data-error={Boolean(error) || undefined}
|
|
28
28
|
style={`--combobox-chevron-size: ${getSize(size, 'combobox-chevron-size')}; ${props.style}; ${color ? `--combobox-chevron-color: ${getThemeColor(color)}` : ''}`}
|
|
29
|
-
|
|
29
|
+
/>
|
|
30
30
|
|
|
31
31
|
<!-- TODO: This works in production but not in dev -->
|
|
32
32
|
<style>:global(.chevron-5KwWrrOy) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let { size = '100%', ...props }: IconProps = $props();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<svg
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width={size}
|
|
10
|
+
height={size}
|
|
11
|
+
fill="none"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
stroke-width="2"
|
|
14
|
+
stroke-linecap="round"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
{...props}
|
|
18
|
+
>
|
|
19
|
+
<path d="M8 9l4-4 4 4M16 15l-4 4-4-4" />
|
|
20
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let { size = '100%', ...props }: IconProps = $props();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<svg
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width={size}
|
|
10
|
+
height={size}
|
|
11
|
+
fill="none"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
stroke-width="2"
|
|
14
|
+
stroke-linecap="round"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
{...props}
|
|
18
|
+
>
|
|
19
|
+
<path d="M18 6L6 18M6 6l12 12" />
|
|
20
|
+
</svg>
|