reburn-ui 0.4.1 → 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.
@@ -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
- <icon class="icon" name="tabler:x"></icon>
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
- <icon
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
- ></icon>
29
+ />
30
30
 
31
31
  <!-- TODO: This works in production but not in dev -->
32
32
  <style>:global(.chevron-5KwWrrOy) {
@@ -13,6 +13,7 @@
13
13
  stroke-width="2"
14
14
  stroke-linecap="round"
15
15
  stroke-linejoin="round"
16
+ viewBox="0 0 24 24"
16
17
  {...props}
17
18
  >
18
19
  <path d="M5 12l5 5L20 7" />
@@ -13,6 +13,7 @@
13
13
  stroke-width="2"
14
14
  stroke-linecap="round"
15
15
  stroke-linejoin="round"
16
+ viewBox="0 0 24 24"
16
17
  {...props}
17
18
  >
18
19
  <path d="M6 9l6 6 6-6" />
@@ -13,6 +13,7 @@
13
13
  stroke-width="2"
14
14
  stroke-linecap="round"
15
15
  stroke-linejoin="round"
16
+ viewBox="0 0 24 24"
16
17
  {...props}
17
18
  >
18
19
  <path d="M5 12h14" />
@@ -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,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconSelector: import("svelte").Component<IconProps, {}, "">;
3
+ type IconSelector = ReturnType<typeof IconSelector>;
4
+ export default IconSelector;
@@ -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>
@@ -0,0 +1,4 @@
1
+ import type { IconProps } from './types.js';
2
+ declare const IconX: import("svelte").Component<IconProps, {}, "">;
3
+ type IconX = ReturnType<typeof IconX>;
4
+ export default IconX;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reburn-ui",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {