reburn-ui 0.4.0 → 0.4.1
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 +1 -1
- package/dist/core/components/Checkbox/Checkbox.svelte +2 -2
- package/dist/core/components/Checkbox/CheckboxIndicator.svelte +2 -2
- package/dist/core/components/Chip/Chip.svelte +1 -1
- package/dist/core/components/Combobox/OptionsDropdown/OptionsDropdownOption.svelte +1 -1
- package/dist/core/components/NavLink/NavLink.svelte +1 -1
- package/dist/core/icons/IconCheck.svelte +19 -0
- package/dist/core/icons/IconCheck.svelte.d.ts +4 -0
- package/dist/core/icons/IconChevronDown.svelte +19 -0
- package/dist/core/icons/IconChevronDown.svelte.d.ts +4 -0
- package/dist/core/icons/IconMinus.svelte +19 -0
- package/dist/core/icons/IconMinus.svelte.d.ts +4 -0
- package/dist/core/icons/types.d.ts +4 -0
- package/dist/core/icons/types.js +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/icons/IconContainer.svelte +0 -30
- package/dist/icons/IconContainer.svelte.d.ts +0 -11
- package/dist/icons/icon.d.ts +0 -12
- package/dist/icons/index.d.ts +0 -1
- package/dist/icons/index.js +0 -1
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<script lang="ts" generics="T extends AccordionItem, Multiple extends boolean = false">
|
|
69
|
+
import IconChevronDown from '../../icons/IconChevronDown.svelte';
|
|
69
70
|
import type { Snippet } from 'svelte';
|
|
70
71
|
import { type TransitionConfig } from 'svelte/transition';
|
|
71
|
-
import IconChevronDown from 'virtual:icons/tabler/chevron-down';
|
|
72
72
|
|
|
73
73
|
let {
|
|
74
74
|
multiple = false as Multiple,
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
58
|
<script lang="ts">
|
|
59
|
+
import IconCheck from '../../icons/IconCheck.svelte';
|
|
60
|
+
import IconMinus from '../../icons/IconMinus.svelte';
|
|
59
61
|
import { parseThemeColor } from '../../MantineProvider/color-functions/parse-theme-color.svelte.js';
|
|
60
62
|
import { theme } from '../../MantineProvider/theme.svelte.js';
|
|
61
63
|
import { getRadius, getSize } from '../../utils/get-size.js';
|
|
62
|
-
import IconCheck from 'virtual:icons/tabler/check';
|
|
63
|
-
import IconMinus from 'virtual:icons/tabler/minus';
|
|
64
64
|
import InlineInput from '../InlineInput/InlineInput.svelte';
|
|
65
65
|
import { getCheckboxGroupContext } from './CheckboxGroup/CheckboxGroupContext.svelte.js';
|
|
66
66
|
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
</script>
|
|
41
41
|
|
|
42
42
|
<script lang="ts">
|
|
43
|
+
import IconCheck from '../../icons/IconCheck.svelte';
|
|
44
|
+
import IconMinus from '../../icons/IconMinus.svelte';
|
|
43
45
|
import { getAutoContrastValue } from '../../MantineProvider/color-functions/get-auto-contrast-value.svelte.js';
|
|
44
46
|
import { getContrastColor } from '../../MantineProvider/color-functions/get-contrast-color.svelte.js';
|
|
45
47
|
import { getThemeColor } from '../../MantineProvider/color-functions/get-theme-color.js';
|
|
46
48
|
import { parseThemeColor } from '../../MantineProvider/color-functions/parse-theme-color.svelte.js';
|
|
47
49
|
import { theme } from '../../MantineProvider/theme.svelte.js';
|
|
48
50
|
import { getRadius, getSize } from '../../utils/get-size.js';
|
|
49
|
-
import IconCheck from 'virtual:icons/tabler/check';
|
|
50
|
-
import IconMinus from 'virtual:icons/tabler/minus';
|
|
51
51
|
import { getCheckboxCardContext } from './CheckboxCard/CheckboxCardContext.svelte.js';
|
|
52
52
|
|
|
53
53
|
let {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
<script lang="ts">
|
|
58
58
|
import { theme } from '../../MantineProvider/theme.svelte.js';
|
|
59
59
|
import { getFontSize, getRadius, getSize } from '../../utils/get-size.js';
|
|
60
|
-
import IconCheck from 'virtual:icons/tabler/check';
|
|
61
60
|
import { getChipGroupContext } from './ChipGroup/ChipGroupContext.svelte.js';
|
|
61
|
+
import IconCheck from '../../icons/IconCheck.svelte';
|
|
62
62
|
|
|
63
63
|
const _id = $props.id();
|
|
64
64
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<script lang="ts">
|
|
22
|
-
import IconCheck from '
|
|
22
|
+
import IconCheck from '../../../icons/IconCheck.svelte';
|
|
23
23
|
import { isOptionsGroup } from './is-options-group.js';
|
|
24
24
|
|
|
25
25
|
let { data, withCheckIcon, value, checkIconPosition, renderOption }: OptionProps = $props();
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
{...props}
|
|
17
|
+
>
|
|
18
|
+
<path d="M5 12l5 5L20 7" />
|
|
19
|
+
</svg>
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
{...props}
|
|
17
|
+
>
|
|
18
|
+
<path d="M6 9l6 6 6-6" />
|
|
19
|
+
</svg>
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
{...props}
|
|
17
|
+
>
|
|
18
|
+
<path d="M5 12h14" />
|
|
19
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { SVGAttributes } from 'svelte/elements';
|
|
4
|
-
|
|
5
|
-
export type IconContainerProps = SVGAttributes<SVGElement> & {
|
|
6
|
-
/** width and height of the icon */
|
|
7
|
-
size?: number | string;
|
|
8
|
-
|
|
9
|
-
/** children of the icon */
|
|
10
|
-
children: Snippet;
|
|
11
|
-
};
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<script lang="ts">
|
|
15
|
-
let { size = '100%', children, ...props }: IconContainerProps = $props();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<svg
|
|
19
|
-
width={size}
|
|
20
|
-
height={size}
|
|
21
|
-
viewBox="0 0 24 24"
|
|
22
|
-
stroke-linecap="round"
|
|
23
|
-
stroke-linejoin="round"
|
|
24
|
-
fill="none"
|
|
25
|
-
stroke="currentColor"
|
|
26
|
-
stroke-width="2"
|
|
27
|
-
{...props}
|
|
28
|
-
>
|
|
29
|
-
{@render children()}
|
|
30
|
-
</svg>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
import type { SVGAttributes } from 'svelte/elements';
|
|
3
|
-
export type IconContainerProps = SVGAttributes<SVGElement> & {
|
|
4
|
-
/** width and height of the icon */
|
|
5
|
-
size?: number | string;
|
|
6
|
-
/** children of the icon */
|
|
7
|
-
children: Snippet;
|
|
8
|
-
};
|
|
9
|
-
declare const IconContainer: import("svelte").Component<IconContainerProps, {}, "">;
|
|
10
|
-
type IconContainer = ReturnType<typeof IconContainer>;
|
|
11
|
-
export default IconContainer;
|
package/dist/icons/icon.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IconContainerProps } from './IconContainer.svelte';
|
|
2
|
-
|
|
3
|
-
// https://svelte.dev/docs/svelte/typescript#enhancing-built-in-dom-types
|
|
4
|
-
declare module 'svelte/elements' {
|
|
5
|
-
export interface SvelteHTMLElements {
|
|
6
|
-
icon: Omit<IconContainerProps, 'children'> & {
|
|
7
|
-
name: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export {}; // ensure this is not an ambient module, else types will be overridden instead of augmented
|
package/dist/icons/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IconContainer } from './IconContainer.svelte';
|
package/dist/icons/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IconContainer } from './IconContainer.svelte';
|