chromia 0.0.1 → 0.0.2
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/.gitignore +11 -0
- package/.npmrc +1 -0
- package/.svelte-kit/__package__/index.d.ts +42 -0
- package/.svelte-kit/__package__/index.js +42 -0
- package/.svelte-kit/ambient.d.ts +389 -0
- package/.svelte-kit/generated/client/app.js +19 -0
- package/.svelte-kit/generated/client/matchers.js +1 -0
- package/.svelte-kit/generated/client/nodes/0.js +1 -0
- package/.svelte-kit/generated/client/nodes/1.js +1 -0
- package/.svelte-kit/generated/client/nodes/2.js +1 -0
- package/.svelte-kit/generated/client-optimized/app.js +19 -0
- package/.svelte-kit/generated/client-optimized/matchers.js +1 -0
- package/.svelte-kit/generated/client-optimized/nodes/0.js +1 -0
- package/.svelte-kit/generated/client-optimized/nodes/1.js +1 -0
- package/.svelte-kit/generated/client-optimized/nodes/2.js +1 -0
- package/.svelte-kit/generated/root.svelte +57 -0
- package/.svelte-kit/generated/server/internal.js +30 -0
- package/.svelte-kit/non-ambient.d.ts +25 -0
- package/.svelte-kit/output/client/.vite/manifest.json +71 -0
- package/.svelte-kit/output/client/_app/immutable/chunks/index.fwz0P8IJ.js +1 -0
- package/.svelte-kit/output/client/_app/immutable/chunks/scheduler.k-kUyWhY.js +1 -0
- package/.svelte-kit/output/client/_app/immutable/chunks/singletons.BTKERuC0.js +1 -0
- package/.svelte-kit/output/client/_app/immutable/entry/app.WGYaKRLN.js +7 -0
- package/.svelte-kit/output/client/_app/immutable/entry/start.aC2tJUKM.js +4 -0
- package/.svelte-kit/output/client/_app/immutable/nodes/0.TPefyB_B.js +1 -0
- package/.svelte-kit/output/client/_app/immutable/nodes/1.YWupMHx9.js +1 -0
- package/.svelte-kit/output/client/_app/immutable/nodes/2.sCXEpvk1.js +1 -0
- package/.svelte-kit/output/client/_app/version.json +1 -0
- package/.svelte-kit/output/client/favicon.png +0 -0
- package/.svelte-kit/output/server/.vite/manifest.json +52 -0
- package/.svelte-kit/output/server/chunks/internal.js +211 -0
- package/.svelte-kit/output/server/chunks/ssr.js +117 -0
- package/.svelte-kit/output/server/entries/fallbacks/error.svelte.js +31 -0
- package/.svelte-kit/output/server/entries/fallbacks/layout.svelte.js +7 -0
- package/.svelte-kit/output/server/entries/pages/_page.svelte.js +7 -0
- package/.svelte-kit/output/server/index.js +3052 -0
- package/.svelte-kit/output/server/internal.js +10 -0
- package/.svelte-kit/output/server/manifest-full.js +34 -0
- package/.svelte-kit/output/server/manifest.js +34 -0
- package/.svelte-kit/output/server/nodes/0.js +8 -0
- package/.svelte-kit/output/server/nodes/1.js +8 -0
- package/.svelte-kit/output/server/nodes/2.js +8 -0
- package/.svelte-kit/tsconfig.json +46 -0
- package/.svelte-kit/types/route_meta_data.json +3 -0
- package/.svelte-kit/types/src/routes/$types.d.ts +22 -0
- package/dist/index.d.ts +41 -41
- package/dist/index.js +41 -41
- package/package.json +1 -1
- package/src/app.d.ts +13 -0
- package/src/app.html +12 -0
- package/src/icons/AddImageIcon.svelte +101 -0
- package/src/icons/AddImageIcon.svelte.d.ts +22 -0
- package/src/icons/AddSquareIcon.svelte +88 -0
- package/src/icons/AddSquareIcon.svelte.d.ts +22 -0
- package/src/icons/AlertCircleIcon.svelte +88 -0
- package/src/icons/AlertCircleIcon.svelte.d.ts +22 -0
- package/src/icons/AnnotationXIcon.svelte +88 -0
- package/src/icons/AnnotationXIcon.svelte.d.ts +22 -0
- package/src/icons/ArrowCalendarIcon.svelte +88 -0
- package/src/icons/ArrowCalendarIcon.svelte.d.ts +22 -0
- package/src/icons/ArrowLeftIcon.svelte +88 -0
- package/src/icons/ArrowLeftIcon.svelte.d.ts +22 -0
- package/src/icons/ArrowSwitchIcon.svelte +88 -0
- package/src/icons/ArrowSwitchIcon.svelte.d.ts +22 -0
- package/src/icons/ArrowUpIcon.svelte +88 -0
- package/src/icons/ArrowUpIcon.svelte.d.ts +22 -0
- package/src/icons/BellIcon.svelte +87 -0
- package/src/icons/BellIcon.svelte.d.ts +22 -0
- package/src/icons/BezierIcon.svelte +88 -0
- package/src/icons/BezierIcon.svelte.d.ts +22 -0
- package/src/icons/CalendarIcon.svelte +88 -0
- package/src/icons/CalendarIcon.svelte.d.ts +22 -0
- package/src/icons/CameraIcon.svelte +88 -0
- package/src/icons/CameraIcon.svelte.d.ts +22 -0
- package/src/icons/CertificateIcon.svelte +88 -0
- package/src/icons/CertificateIcon.svelte.d.ts +22 -0
- package/src/icons/CheckCircleIcon.svelte +88 -0
- package/src/icons/CheckCircleIcon.svelte.d.ts +22 -0
- package/src/icons/CheckIcon.svelte +88 -0
- package/src/icons/CheckIcon.svelte.d.ts +22 -0
- package/src/icons/ChevronDownIcon.svelte +88 -0
- package/src/icons/ChevronDownIcon.svelte.d.ts +22 -0
- package/src/icons/ChevronUpIcon.svelte +88 -0
- package/src/icons/ChevronUpIcon.svelte.d.ts +22 -0
- package/src/icons/ClockIcon.svelte +88 -0
- package/src/icons/ClockIcon.svelte.d.ts +22 -0
- package/src/icons/CloseIcon.svelte +88 -0
- package/src/icons/CloseIcon.svelte.d.ts +22 -0
- package/src/icons/CollectionIcon.svelte +88 -0
- package/src/icons/CollectionIcon.svelte.d.ts +22 -0
- package/src/icons/CopyIcon.svelte +88 -0
- package/src/icons/CopyIcon.svelte.d.ts +22 -0
- package/src/icons/EditIcon.svelte +88 -0
- package/src/icons/EditIcon.svelte.d.ts +22 -0
- package/src/icons/FavoriteIcon.svelte +88 -0
- package/src/icons/FavoriteIcon.svelte.d.ts +22 -0
- package/src/icons/FilterIcon.svelte +88 -0
- package/src/icons/FilterIcon.svelte.d.ts +22 -0
- package/src/icons/FlameIcon.svelte +88 -0
- package/src/icons/FlameIcon.svelte.d.ts +22 -0
- package/src/icons/FolderIcon.svelte +88 -0
- package/src/icons/FolderIcon.svelte.d.ts +22 -0
- package/src/icons/FolderPlusIcon.svelte +88 -0
- package/src/icons/FolderPlusIcon.svelte.d.ts +22 -0
- package/src/icons/GridIcon.svelte +133 -0
- package/src/icons/GridIcon.svelte.d.ts +22 -0
- package/src/icons/HourglassIcon.svelte +88 -0
- package/src/icons/HourglassIcon.svelte.d.ts +22 -0
- package/src/icons/LockIcon.svelte +88 -0
- package/src/icons/LockIcon.svelte.d.ts +22 -0
- package/src/icons/LogoutIcon.svelte +88 -0
- package/src/icons/LogoutIcon.svelte.d.ts +22 -0
- package/src/icons/MenuIcon.svelte +117 -0
- package/src/icons/MenuIcon.svelte.d.ts +22 -0
- package/src/icons/NoFolder.svelte +101 -0
- package/src/icons/NoFolder.svelte.d.ts +22 -0
- package/src/icons/NotificationIcon.svelte +88 -0
- package/src/icons/NotificationIcon.svelte.d.ts +22 -0
- package/src/icons/OverlapIcon.svelte +88 -0
- package/src/icons/OverlapIcon.svelte.d.ts +22 -0
- package/src/icons/SearchIcon.svelte +88 -0
- package/src/icons/SearchIcon.svelte.d.ts +22 -0
- package/src/icons/SendIcon.svelte +88 -0
- package/src/icons/SendIcon.svelte.d.ts +22 -0
- package/src/icons/TeamUserIcon.svelte +88 -0
- package/src/icons/TeamUserIcon.svelte.d.ts +22 -0
- package/src/icons/TrashIcon.svelte +88 -0
- package/src/icons/TrashIcon.svelte.d.ts +22 -0
- package/src/icons/UploadIcon.svelte +88 -0
- package/src/icons/UploadIcon.svelte.d.ts +22 -0
- package/src/icons/UserProfileIcon.svelte +89 -0
- package/src/icons/UserProfileIcon.svelte.d.ts +22 -0
- package/src/lib/index.ts +44 -0
- package/src/routes/+page.svelte +0 -0
- package/static/favicon.png +0 -0
- package/svelte.config.js +18 -0
- package/tsconfig.json +15 -0
- package/vite.config.ts +6 -0
- package/yarn.lock +1082 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
gradient?: {
|
|
6
|
+
colors: [string, string];
|
|
7
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
8
|
+
} | undefined;
|
|
9
|
+
size?: string | undefined;
|
|
10
|
+
weight?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type CollectionIconProps = typeof __propDef.props;
|
|
18
|
+
export type CollectionIconEvents = typeof __propDef.events;
|
|
19
|
+
export type CollectionIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class CollectionIcon extends SvelteComponent<CollectionIconProps, CollectionIconEvents, CollectionIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
interface GradientObj {
|
|
4
|
+
colors: [string, string];
|
|
5
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
6
|
+
}
|
|
7
|
+
export let color = "#000";
|
|
8
|
+
export let gradient: GradientObj = {
|
|
9
|
+
colors: ["", ""],
|
|
10
|
+
direction: "bottom",
|
|
11
|
+
};
|
|
12
|
+
export let size: string = "1rem";
|
|
13
|
+
export let weight: number = 1;
|
|
14
|
+
|
|
15
|
+
const getGradientDirection = (direction: string) => {
|
|
16
|
+
switch (direction) {
|
|
17
|
+
case "top":
|
|
18
|
+
return { x1: "0%", y1: "100%", x2: "0%", y2: "0%" };
|
|
19
|
+
case "right":
|
|
20
|
+
return { x1: "0%", y1: "0%", x2: "100%", y2: "0%" };
|
|
21
|
+
case "bottom":
|
|
22
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
23
|
+
case "left":
|
|
24
|
+
return { x1: "100%", y1: "0%", x2: "0%", y2: "0%" };
|
|
25
|
+
default:
|
|
26
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
{#if gradient !== undefined}
|
|
32
|
+
<svg
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
style="width: {size}; height: {size};"
|
|
35
|
+
viewBox="0 0 18 18"
|
|
36
|
+
fill="none"
|
|
37
|
+
>
|
|
38
|
+
<g id="id_Copy">
|
|
39
|
+
<path
|
|
40
|
+
id="icon_Copy"
|
|
41
|
+
d="M5.53388 7.64294L3.85879 9.31803C3.23319 9.94363 2.87343 10.7949 2.88 11.6895C2.88658 12.5841 3.23847 13.4405 3.89375 14.0755C4.52877 14.7308 5.38536 15.0827 6.27983 15.0893C7.1947 15.096 8.02577 14.7565 8.65141 14.1309L10.3265 12.4558M12.4661 10.3571L14.1412 8.68204C14.7668 8.05644 15.1266 7.20521 15.12 6.3106C15.1134 5.41599 14.7615 4.55958 14.1062 3.92453C13.4714 3.28966 12.6149 2.93776 11.7203 2.93118C10.8257 2.92461 9.97437 3.26395 9.34874 3.88957L7.67364 5.56466M6.45983 11.4954L11.4851 6.47013"
|
|
42
|
+
stroke="url(#grad-Copy)"
|
|
43
|
+
stroke-width={weight}
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
|
|
49
|
+
<defs>
|
|
50
|
+
<linearGradient
|
|
51
|
+
id="grad-Copy"
|
|
52
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
53
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
54
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
55
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
56
|
+
>
|
|
57
|
+
<stop
|
|
58
|
+
offset="0%"
|
|
59
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
60
|
+
/>
|
|
61
|
+
<stop
|
|
62
|
+
offset="100%"
|
|
63
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
64
|
+
/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
</defs>
|
|
67
|
+
</svg>
|
|
68
|
+
{:else}
|
|
69
|
+
<svg
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
style="width: {size}; height: {size};"
|
|
72
|
+
viewBox="0 0 18 18"
|
|
73
|
+
fill="none"
|
|
74
|
+
>
|
|
75
|
+
<g id="id_Copy">
|
|
76
|
+
<path
|
|
77
|
+
id="icon_Copy"
|
|
78
|
+
d="M5.53388 7.64294L3.85879 9.31803C3.23319 9.94363 2.87343 10.7949 2.88 11.6895C2.88658 12.5841 3.23847 13.4405 3.89375 14.0755C4.52877 14.7308 5.38536 15.0827 6.27983 15.0893C7.1947 15.096 8.02577 14.7565 8.65141 14.1309L10.3265 12.4558M12.4661 10.3571L14.1412 8.68204C14.7668 8.05644 15.1266 7.20521 15.12 6.3106C15.1134 5.41599 14.7615 4.55958 14.1062 3.92453C13.4714 3.28966 12.6149 2.93776 11.7203 2.93118C10.8257 2.92461 9.97437 3.26395 9.34874 3.88957L7.67364 5.56466M6.45983 11.4954L11.4851 6.47013"
|
|
79
|
+
stroke={color}
|
|
80
|
+
stroke-width={weight}
|
|
81
|
+
stroke-linecap="round"
|
|
82
|
+
stroke-linejoin="round"
|
|
83
|
+
/>
|
|
84
|
+
</g>
|
|
85
|
+
</svg>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
gradient?: {
|
|
6
|
+
colors: [string, string];
|
|
7
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
8
|
+
} | undefined;
|
|
9
|
+
size?: string | undefined;
|
|
10
|
+
weight?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type CopyIconProps = typeof __propDef.props;
|
|
18
|
+
export type CopyIconEvents = typeof __propDef.events;
|
|
19
|
+
export type CopyIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class CopyIcon extends SvelteComponent<CopyIconProps, CopyIconEvents, CopyIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
interface GradientObj {
|
|
4
|
+
colors: [string, string];
|
|
5
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
6
|
+
}
|
|
7
|
+
export let color = "#000";
|
|
8
|
+
export let gradient: GradientObj = {
|
|
9
|
+
colors: ["", ""],
|
|
10
|
+
direction: "bottom",
|
|
11
|
+
};
|
|
12
|
+
export let size: string = "1rem";
|
|
13
|
+
export let weight: number = 1;
|
|
14
|
+
|
|
15
|
+
const getGradientDirection = (direction: string) => {
|
|
16
|
+
switch (direction) {
|
|
17
|
+
case "top":
|
|
18
|
+
return { x1: "0%", y1: "100%", x2: "0%", y2: "0%" };
|
|
19
|
+
case "right":
|
|
20
|
+
return { x1: "0%", y1: "0%", x2: "100%", y2: "0%" };
|
|
21
|
+
case "bottom":
|
|
22
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
23
|
+
case "left":
|
|
24
|
+
return { x1: "100%", y1: "0%", x2: "0%", y2: "0%" };
|
|
25
|
+
default:
|
|
26
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
{#if gradient !== undefined}
|
|
32
|
+
<svg
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
style="width: {size}; height: {size};"
|
|
35
|
+
viewBox="0 0 17 17"
|
|
36
|
+
fill="none"
|
|
37
|
+
>
|
|
38
|
+
<g id="id_Edit">
|
|
39
|
+
<path
|
|
40
|
+
id="icon_Edit"
|
|
41
|
+
d="M7.86579 2.48449H3.86579C2.54031 2.48449 1.46579 3.55901 1.46579 4.88449V12.8846C1.46579 14.21 2.54031 15.2846 3.86579 15.2846H11.8658C13.1913 15.2846 14.2658 14.21 14.2658 12.8846L14.2658 8.88453M5.46579 11.2845L8.37645 10.698C8.53096 10.6669 8.67284 10.5908 8.78427 10.4793L15.3001 3.95995C15.6125 3.64738 15.6122 3.14072 15.2996 2.82841L13.9193 1.44969C13.6068 1.13751 13.1004 1.13773 12.7881 1.45017L6.27163 7.9702C6.16042 8.08147 6.08449 8.22306 6.05332 8.37726L5.46579 11.2845Z"
|
|
42
|
+
stroke="url(#grad-Edit)"
|
|
43
|
+
stroke-width={weight}
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
|
|
49
|
+
<defs>
|
|
50
|
+
<linearGradient
|
|
51
|
+
id="grad-Edit"
|
|
52
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
53
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
54
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
55
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
56
|
+
>
|
|
57
|
+
<stop
|
|
58
|
+
offset="0%"
|
|
59
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
60
|
+
/>
|
|
61
|
+
<stop
|
|
62
|
+
offset="100%"
|
|
63
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
64
|
+
/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
</defs>
|
|
67
|
+
</svg>
|
|
68
|
+
{:else}
|
|
69
|
+
<svg
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
style="width: {size}; height: {size};"
|
|
72
|
+
viewBox="0 0 17 17"
|
|
73
|
+
fill="none"
|
|
74
|
+
>
|
|
75
|
+
<g id="id_Edit">
|
|
76
|
+
<path
|
|
77
|
+
id="icon_Edit"
|
|
78
|
+
d="M7.86579 2.48449H3.86579C2.54031 2.48449 1.46579 3.55901 1.46579 4.88449V12.8846C1.46579 14.21 2.54031 15.2846 3.86579 15.2846H11.8658C13.1913 15.2846 14.2658 14.21 14.2658 12.8846L14.2658 8.88453M5.46579 11.2845L8.37645 10.698C8.53096 10.6669 8.67284 10.5908 8.78427 10.4793L15.3001 3.95995C15.6125 3.64738 15.6122 3.14072 15.2996 2.82841L13.9193 1.44969C13.6068 1.13751 13.1004 1.13773 12.7881 1.45017L6.27163 7.9702C6.16042 8.08147 6.08449 8.22306 6.05332 8.37726L5.46579 11.2845Z"
|
|
79
|
+
stroke={color}
|
|
80
|
+
stroke-width={weight}
|
|
81
|
+
stroke-linecap="round"
|
|
82
|
+
stroke-linejoin="round"
|
|
83
|
+
/>
|
|
84
|
+
</g>
|
|
85
|
+
</svg>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
gradient?: {
|
|
6
|
+
colors: [string, string];
|
|
7
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
8
|
+
} | undefined;
|
|
9
|
+
size?: string | undefined;
|
|
10
|
+
weight?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type EditIconProps = typeof __propDef.props;
|
|
18
|
+
export type EditIconEvents = typeof __propDef.events;
|
|
19
|
+
export type EditIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class EditIcon extends SvelteComponent<EditIconProps, EditIconEvents, EditIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
interface GradientObj {
|
|
4
|
+
colors: [string, string];
|
|
5
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
6
|
+
}
|
|
7
|
+
export let color = "#000";
|
|
8
|
+
export let gradient: GradientObj = {
|
|
9
|
+
colors: ["", ""],
|
|
10
|
+
direction: "bottom",
|
|
11
|
+
};
|
|
12
|
+
export let size: string = "1rem";
|
|
13
|
+
export let weight: number = 1;
|
|
14
|
+
|
|
15
|
+
const getGradientDirection = (direction: string) => {
|
|
16
|
+
switch (direction) {
|
|
17
|
+
case "top":
|
|
18
|
+
return { x1: "0%", y1: "100%", x2: "0%", y2: "0%" };
|
|
19
|
+
case "right":
|
|
20
|
+
return { x1: "0%", y1: "0%", x2: "100%", y2: "0%" };
|
|
21
|
+
case "bottom":
|
|
22
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
23
|
+
case "left":
|
|
24
|
+
return { x1: "100%", y1: "0%", x2: "0%", y2: "0%" };
|
|
25
|
+
default:
|
|
26
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
{#if gradient !== undefined}
|
|
32
|
+
<svg
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
style="width: {size}; height: {size};"
|
|
35
|
+
viewBox="0 0 14 14"
|
|
36
|
+
fill="none"
|
|
37
|
+
>
|
|
38
|
+
<g id="id_Favorite">
|
|
39
|
+
<path
|
|
40
|
+
id="icon_Favorite"
|
|
41
|
+
d="M2.80005 2.3999C2.80005 1.84762 3.24776 1.3999 3.80005 1.3999H10.2C10.7523 1.3999 11.2 1.84762 11.2 2.3999V11.5324C11.2 11.9563 10.7056 12.1879 10.38 11.9165L7.00005 9.0999L3.62014 11.9165C3.29448 12.1879 2.80005 11.9563 2.80005 11.5324V2.3999Z"
|
|
42
|
+
stroke="url(#grad-Favorite)"
|
|
43
|
+
stroke-width={weight}
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
|
|
49
|
+
<defs>
|
|
50
|
+
<linearGradient
|
|
51
|
+
id="grad-Favorite"
|
|
52
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
53
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
54
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
55
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
56
|
+
>
|
|
57
|
+
<stop
|
|
58
|
+
offset="0%"
|
|
59
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
60
|
+
/>
|
|
61
|
+
<stop
|
|
62
|
+
offset="100%"
|
|
63
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
64
|
+
/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
</defs>
|
|
67
|
+
</svg>
|
|
68
|
+
{:else}
|
|
69
|
+
<svg
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
style="width: {size}; height: {size};"
|
|
72
|
+
viewBox="0 0 14 14"
|
|
73
|
+
fill="none"
|
|
74
|
+
>
|
|
75
|
+
<g id="id_Favorite">
|
|
76
|
+
<path
|
|
77
|
+
id="icon_Favorite"
|
|
78
|
+
d="M2.80005 2.3999C2.80005 1.84762 3.24776 1.3999 3.80005 1.3999H10.2C10.7523 1.3999 11.2 1.84762 11.2 2.3999V11.5324C11.2 11.9563 10.7056 12.1879 10.38 11.9165L7.00005 9.0999L3.62014 11.9165C3.29448 12.1879 2.80005 11.9563 2.80005 11.5324V2.3999Z"
|
|
79
|
+
stroke={color}
|
|
80
|
+
stroke-width={weight}
|
|
81
|
+
stroke-linecap="round"
|
|
82
|
+
stroke-linejoin="round"
|
|
83
|
+
/>
|
|
84
|
+
</g>
|
|
85
|
+
</svg>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
gradient?: {
|
|
6
|
+
colors: [string, string];
|
|
7
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
8
|
+
} | undefined;
|
|
9
|
+
size?: string | undefined;
|
|
10
|
+
weight?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type FavoriteIconProps = typeof __propDef.props;
|
|
18
|
+
export type FavoriteIconEvents = typeof __propDef.events;
|
|
19
|
+
export type FavoriteIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class FavoriteIcon extends SvelteComponent<FavoriteIconProps, FavoriteIconEvents, FavoriteIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
interface GradientObj {
|
|
4
|
+
colors: [string, string];
|
|
5
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
6
|
+
}
|
|
7
|
+
export let color = "#000";
|
|
8
|
+
export let gradient: GradientObj = {
|
|
9
|
+
colors: ["", ""],
|
|
10
|
+
direction: "bottom",
|
|
11
|
+
};
|
|
12
|
+
export let size: string = "1rem";
|
|
13
|
+
export let weight: number = 1;
|
|
14
|
+
|
|
15
|
+
const getGradientDirection = (direction: string) => {
|
|
16
|
+
switch (direction) {
|
|
17
|
+
case "top":
|
|
18
|
+
return { x1: "0%", y1: "100%", x2: "0%", y2: "0%" };
|
|
19
|
+
case "right":
|
|
20
|
+
return { x1: "0%", y1: "0%", x2: "100%", y2: "0%" };
|
|
21
|
+
case "bottom":
|
|
22
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
23
|
+
case "left":
|
|
24
|
+
return { x1: "100%", y1: "0%", x2: "0%", y2: "0%" };
|
|
25
|
+
default:
|
|
26
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
{#if gradient !== undefined}
|
|
32
|
+
<svg
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
style="width: {size}; height: {size};"
|
|
35
|
+
viewBox="0 0 14 14"
|
|
36
|
+
fill="none"
|
|
37
|
+
>
|
|
38
|
+
<g id="id_Filter">
|
|
39
|
+
<path
|
|
40
|
+
id="icon_Filter"
|
|
41
|
+
d="M3.84995 6.99995H10.15M2.44995 4.19995H11.55M5.94995 9.79995H8.04995"
|
|
42
|
+
stroke="url(#grad-Filter)"
|
|
43
|
+
stroke-width={weight}
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
|
|
49
|
+
<defs>
|
|
50
|
+
<linearGradient
|
|
51
|
+
id="grad-Filter"
|
|
52
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
53
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
54
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
55
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
56
|
+
>
|
|
57
|
+
<stop
|
|
58
|
+
offset="0%"
|
|
59
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
60
|
+
/>
|
|
61
|
+
<stop
|
|
62
|
+
offset="100%"
|
|
63
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
64
|
+
/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
</defs>
|
|
67
|
+
</svg>
|
|
68
|
+
{:else}
|
|
69
|
+
<svg
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
style="width: {size}; height: {size};"
|
|
72
|
+
viewBox="0 0 14 14"
|
|
73
|
+
fill="none"
|
|
74
|
+
>
|
|
75
|
+
<g id="id_Filter">
|
|
76
|
+
<path
|
|
77
|
+
id="icon_Filter"
|
|
78
|
+
d="M3.84995 6.99995H10.15M2.44995 4.19995H11.55M5.94995 9.79995H8.04995"
|
|
79
|
+
stroke={color}
|
|
80
|
+
stroke-width={weight}
|
|
81
|
+
stroke-linecap="round"
|
|
82
|
+
stroke-linejoin="round"
|
|
83
|
+
/>
|
|
84
|
+
</g>
|
|
85
|
+
</svg>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
gradient?: {
|
|
6
|
+
colors: [string, string];
|
|
7
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
8
|
+
} | undefined;
|
|
9
|
+
size?: string | undefined;
|
|
10
|
+
weight?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type FilterIconProps = typeof __propDef.props;
|
|
18
|
+
export type FilterIconEvents = typeof __propDef.events;
|
|
19
|
+
export type FilterIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class FilterIcon extends SvelteComponent<FilterIconProps, FilterIconEvents, FilterIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
interface GradientObj {
|
|
4
|
+
colors: [string, string];
|
|
5
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
6
|
+
}
|
|
7
|
+
export let color = "#000";
|
|
8
|
+
export let gradient: GradientObj = {
|
|
9
|
+
colors: ["", ""],
|
|
10
|
+
direction: "bottom",
|
|
11
|
+
};
|
|
12
|
+
export let size: string = "1rem";
|
|
13
|
+
export let weight: number = 1;
|
|
14
|
+
|
|
15
|
+
const getGradientDirection = (direction: string) => {
|
|
16
|
+
switch (direction) {
|
|
17
|
+
case "top":
|
|
18
|
+
return { x1: "0%", y1: "100%", x2: "0%", y2: "0%" };
|
|
19
|
+
case "right":
|
|
20
|
+
return { x1: "0%", y1: "0%", x2: "100%", y2: "0%" };
|
|
21
|
+
case "bottom":
|
|
22
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
23
|
+
case "left":
|
|
24
|
+
return { x1: "100%", y1: "0%", x2: "0%", y2: "0%" };
|
|
25
|
+
default:
|
|
26
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
{#if gradient !== undefined}
|
|
32
|
+
<svg
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
style="width: {size}; height: {size};"
|
|
35
|
+
viewBox="0 0 10 14"
|
|
36
|
+
fill="none"
|
|
37
|
+
>
|
|
38
|
+
<g id="id_Flame">
|
|
39
|
+
<path
|
|
40
|
+
id="icon_Flame"
|
|
41
|
+
d="M5.00002 12.5999C2.68416 12.5999 0.799988 10.8254 0.799988 8.64415C0.799988 5.5999 5.00005 1.3999 5.00005 1.3999C5.00005 1.3999 9.19999 5.5999 9.19999 8.64415C9.19999 10.8254 7.31588 12.5999 5.00002 12.5999ZM5.00002 12.5999C3.84209 12.5999 2.89999 11.7126 2.89999 10.622C2.89999 9.0999 5.00002 6.9999 5.00002 6.9999C5.00002 6.9999 7.09999 9.0999 7.09999 10.622C7.09999 11.7126 6.15795 12.5999 5.00002 12.5999Z"
|
|
42
|
+
stroke="url(#grad-Flame)"
|
|
43
|
+
stroke-width={weight}
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
|
|
49
|
+
<defs>
|
|
50
|
+
<linearGradient
|
|
51
|
+
id="grad-Flame"
|
|
52
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
53
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
54
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
55
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
56
|
+
>
|
|
57
|
+
<stop
|
|
58
|
+
offset="0%"
|
|
59
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
60
|
+
/>
|
|
61
|
+
<stop
|
|
62
|
+
offset="100%"
|
|
63
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
64
|
+
/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
</defs>
|
|
67
|
+
</svg>
|
|
68
|
+
{:else}
|
|
69
|
+
<svg
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
style="width: {size}; height: {size};"
|
|
72
|
+
viewBox="0 0 10 14"
|
|
73
|
+
fill="none"
|
|
74
|
+
>
|
|
75
|
+
<g id="id_Flame">
|
|
76
|
+
<path
|
|
77
|
+
id="icon_Flame"
|
|
78
|
+
d="M5.00002 12.5999C2.68416 12.5999 0.799988 10.8254 0.799988 8.64415C0.799988 5.5999 5.00005 1.3999 5.00005 1.3999C5.00005 1.3999 9.19999 5.5999 9.19999 8.64415C9.19999 10.8254 7.31588 12.5999 5.00002 12.5999ZM5.00002 12.5999C3.84209 12.5999 2.89999 11.7126 2.89999 10.622C2.89999 9.0999 5.00002 6.9999 5.00002 6.9999C5.00002 6.9999 7.09999 9.0999 7.09999 10.622C7.09999 11.7126 6.15795 12.5999 5.00002 12.5999Z"
|
|
79
|
+
stroke={color}
|
|
80
|
+
stroke-width={weight}
|
|
81
|
+
stroke-linecap="round"
|
|
82
|
+
stroke-linejoin="round"
|
|
83
|
+
/>
|
|
84
|
+
</g>
|
|
85
|
+
</svg>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
gradient?: {
|
|
6
|
+
colors: [string, string];
|
|
7
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
8
|
+
} | undefined;
|
|
9
|
+
size?: string | undefined;
|
|
10
|
+
weight?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type FlameIconProps = typeof __propDef.props;
|
|
18
|
+
export type FlameIconEvents = typeof __propDef.events;
|
|
19
|
+
export type FlameIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class FlameIcon extends SvelteComponent<FlameIconProps, FlameIconEvents, FlameIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
interface GradientObj {
|
|
4
|
+
colors: [string, string];
|
|
5
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
6
|
+
}
|
|
7
|
+
export let color = "#000";
|
|
8
|
+
export let gradient: GradientObj = {
|
|
9
|
+
colors: ["", ""],
|
|
10
|
+
direction: "bottom",
|
|
11
|
+
};
|
|
12
|
+
export let size: string = "1rem";
|
|
13
|
+
export let weight: number = 1;
|
|
14
|
+
|
|
15
|
+
const getGradientDirection = (direction: string) => {
|
|
16
|
+
switch (direction) {
|
|
17
|
+
case "top":
|
|
18
|
+
return { x1: "0%", y1: "100%", x2: "0%", y2: "0%" };
|
|
19
|
+
case "right":
|
|
20
|
+
return { x1: "0%", y1: "0%", x2: "100%", y2: "0%" };
|
|
21
|
+
case "bottom":
|
|
22
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
23
|
+
case "left":
|
|
24
|
+
return { x1: "100%", y1: "0%", x2: "0%", y2: "0%" };
|
|
25
|
+
default:
|
|
26
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
{#if gradient !== undefined}
|
|
32
|
+
<svg
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
style="width: {size}; height: {size};"
|
|
35
|
+
viewBox="0 0 14 14"
|
|
36
|
+
fill="none"
|
|
37
|
+
>
|
|
38
|
+
<g id="id_Folder">
|
|
39
|
+
<path
|
|
40
|
+
id="icon_Folder"
|
|
41
|
+
d="M11.421 6.11594V4.75805C11.421 4.20576 10.9732 3.75805 10.421 3.75805H7.11938C6.85416 3.75805 6.59981 3.65269 6.41227 3.46516L5.81911 2.87199C5.63157 2.68446 5.37722 2.5791 5.112 2.5791H2.3999C1.84762 2.5791 1.3999 3.02682 1.3999 3.5791V10.537C1.3999 11.0253 1.79578 11.4212 2.28411 11.4212H2.66933C2.94492 11.4212 3.16832 11.1978 3.16832 10.9222V10.9222C3.16832 10.8624 3.17908 10.803 3.20009 10.747L4.69342 6.76482C4.83978 6.37452 5.2129 6.11594 5.62974 6.11594H11.2125C11.895 6.11594 12.377 6.78464 12.1612 7.43217L11.0594 10.7374C10.9233 11.1458 10.5412 11.4212 10.1107 11.4212H2.57885"
|
|
42
|
+
stroke="url(#grad-Folder)"
|
|
43
|
+
stroke-width={weight}
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
|
|
49
|
+
<defs>
|
|
50
|
+
<linearGradient
|
|
51
|
+
id="grad-Folder"
|
|
52
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
53
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
54
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
55
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
56
|
+
>
|
|
57
|
+
<stop
|
|
58
|
+
offset="0%"
|
|
59
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
60
|
+
/>
|
|
61
|
+
<stop
|
|
62
|
+
offset="100%"
|
|
63
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
64
|
+
/>
|
|
65
|
+
</linearGradient>
|
|
66
|
+
</defs>
|
|
67
|
+
</svg>
|
|
68
|
+
{:else}
|
|
69
|
+
<svg
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
style="width: {size}; height: {size};"
|
|
72
|
+
viewBox="0 0 14 14"
|
|
73
|
+
fill="none"
|
|
74
|
+
>
|
|
75
|
+
<g id="id_Folder">
|
|
76
|
+
<path
|
|
77
|
+
id="icon_Folder"
|
|
78
|
+
d="M11.421 6.11594V4.75805C11.421 4.20576 10.9732 3.75805 10.421 3.75805H7.11938C6.85416 3.75805 6.59981 3.65269 6.41227 3.46516L5.81911 2.87199C5.63157 2.68446 5.37722 2.5791 5.112 2.5791H2.3999C1.84762 2.5791 1.3999 3.02682 1.3999 3.5791V10.537C1.3999 11.0253 1.79578 11.4212 2.28411 11.4212H2.66933C2.94492 11.4212 3.16832 11.1978 3.16832 10.9222V10.9222C3.16832 10.8624 3.17908 10.803 3.20009 10.747L4.69342 6.76482C4.83978 6.37452 5.2129 6.11594 5.62974 6.11594H11.2125C11.895 6.11594 12.377 6.78464 12.1612 7.43217L11.0594 10.7374C10.9233 11.1458 10.5412 11.4212 10.1107 11.4212H2.57885"
|
|
79
|
+
stroke={color}
|
|
80
|
+
stroke-width={weight}
|
|
81
|
+
stroke-linecap="round"
|
|
82
|
+
stroke-linejoin="round"
|
|
83
|
+
/>
|
|
84
|
+
</g>
|
|
85
|
+
</svg>
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
|