chromia 0.0.27 → 0.0.29
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.
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<script>export let color = "#000";
|
|
2
|
+
export let gradient = {
|
|
3
|
+
colors: ["", ""],
|
|
4
|
+
direction: "bottom"
|
|
5
|
+
};
|
|
6
|
+
export let size = "1rem";
|
|
7
|
+
export let weight = 1;
|
|
8
|
+
const getGradientDirection = (direction) => {
|
|
9
|
+
switch (direction) {
|
|
10
|
+
case "top":
|
|
11
|
+
return { x1: "0%", y1: "100%", x2: "0%", y2: "0%" };
|
|
12
|
+
case "right":
|
|
13
|
+
return { x1: "0%", y1: "0%", x2: "100%", y2: "0%" };
|
|
14
|
+
case "bottom":
|
|
15
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
16
|
+
case "left":
|
|
17
|
+
return { x1: "100%", y1: "0%", x2: "0%", y2: "0%" };
|
|
18
|
+
default:
|
|
19
|
+
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
{#if gradient.colors[1] !== ""}
|
|
25
|
+
<svg
|
|
26
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
+
style="width: {size}; height: {size};"
|
|
28
|
+
viewBox="0 0 24 24"
|
|
29
|
+
fill="none"
|
|
30
|
+
>
|
|
31
|
+
<path
|
|
32
|
+
d="M16.862 4.487l2.651 2.65m-2.651-2.65l-9.62 9.62-.354 3.005 3.005-.354 9.62-9.62-2.65-2.651zM19.513 2.95a1.5 1.5 0 012.122 2.121l-1.122 1.122-2.65-2.65 1.65-1.593zM4 21h16"
|
|
33
|
+
stroke="url(#grad-edit)"
|
|
34
|
+
stroke-width={weight}
|
|
35
|
+
stroke-linecap="round"
|
|
36
|
+
stroke-linejoin="round"
|
|
37
|
+
/>
|
|
38
|
+
<defs>
|
|
39
|
+
<linearGradient
|
|
40
|
+
id="grad-edit"
|
|
41
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
42
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
43
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
44
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
45
|
+
>
|
|
46
|
+
<stop
|
|
47
|
+
offset="0%"
|
|
48
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
49
|
+
/>
|
|
50
|
+
<stop
|
|
51
|
+
offset="100%"
|
|
52
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
53
|
+
/>
|
|
54
|
+
</linearGradient>
|
|
55
|
+
</defs>
|
|
56
|
+
</svg>
|
|
57
|
+
{:else}
|
|
58
|
+
<svg
|
|
59
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
+
style="width: {size}; height: {size};"
|
|
61
|
+
viewBox="0 0 24 24"
|
|
62
|
+
fill="none"
|
|
63
|
+
>
|
|
64
|
+
<path
|
|
65
|
+
d="M16.862 4.487l2.651 2.65m-2.651-2.65l-9.62 9.62-.354 3.005 3.005-.354 9.62-9.62-2.65-2.651zM19.513 2.95a1.5 1.5 0 012.122 2.121l-1.122 1.122-2.65-2.65 1.65-1.593zM4 21h16"
|
|
66
|
+
stroke={color}
|
|
67
|
+
stroke-width={weight}
|
|
68
|
+
stroke-linecap="round"
|
|
69
|
+
stroke-linejoin="round"
|
|
70
|
+
/>
|
|
71
|
+
</svg>
|
|
72
|
+
{/if}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
gradient?:
|
|
6
|
+
| {
|
|
7
|
+
colors: [string, string];
|
|
8
|
+
direction: "top" | "right" | "bottom" | "left";
|
|
9
|
+
}
|
|
10
|
+
| undefined;
|
|
11
|
+
size?: string | undefined;
|
|
12
|
+
weight?: number | undefined;
|
|
13
|
+
};
|
|
14
|
+
events: {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
};
|
|
17
|
+
slots: {};
|
|
18
|
+
};
|
|
19
|
+
export type Edit01IconProps = typeof __propDef.props;
|
|
20
|
+
export type Edit01IconEvents = typeof __propDef.events;
|
|
21
|
+
export type Edit01IconSlots = typeof __propDef.slots;
|
|
22
|
+
export default class Edit01Icon extends SvelteComponent<
|
|
23
|
+
Edit01IconProps,
|
|
24
|
+
Edit01IconEvents,
|
|
25
|
+
Edit01IconSlots
|
|
26
|
+
> {}
|
|
27
|
+
export {};
|
|
@@ -29,12 +29,13 @@ const getGradientDirection = (direction) => {
|
|
|
29
29
|
fill="none"
|
|
30
30
|
>
|
|
31
31
|
<path
|
|
32
|
-
d="
|
|
32
|
+
d="M2.66926 10.1171L7.88306 10.1171M7.88306 10.1171L7.88306 15.3309M7.88306 10.1171L1.80029 16.1999M15.3303 7.88281L10.1165 7.88281M10.1165 7.88281V2.66901M10.1165 7.88281L16.1993 1.80005"
|
|
33
33
|
stroke="url(#grad-custom)"
|
|
34
34
|
stroke-width={weight}
|
|
35
|
-
stroke-linecap="round"
|
|
36
35
|
stroke-linejoin="round"
|
|
36
|
+
stroke-linecap="round"
|
|
37
37
|
/>
|
|
38
|
+
|
|
38
39
|
<defs>
|
|
39
40
|
<linearGradient
|
|
40
41
|
id="grad-custom"
|
|
@@ -62,7 +63,7 @@ const getGradientDirection = (direction) => {
|
|
|
62
63
|
fill="none"
|
|
63
64
|
>
|
|
64
65
|
<path
|
|
65
|
-
d="
|
|
66
|
+
d="M2.66926 10.1171L7.88306 10.1171M7.88306 10.1171L7.88306 15.3309M7.88306 10.1171L1.80029 16.1999M15.3303 7.88281L10.1165 7.88281M10.1165 7.88281V2.66901M10.1165 7.88281L16.1993 1.80005"
|
|
66
67
|
stroke={color}
|
|
67
68
|
stroke-width={weight}
|
|
68
69
|
stroke-linecap="round"
|
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ import UserProfileIcon from "./icons/UserProfileIcon.svelte";
|
|
|
70
70
|
import ViewModeIcon from "./icons/ViewModeIcon.svelte";
|
|
71
71
|
import ZoomIcon from "./icons/ZoomIcon.svelte";
|
|
72
72
|
import ZoomSliderIcon from "./icons/ZoomSliderIcon.svelte";
|
|
73
|
+
import Edit01Icon from "./icons/Edit01Icon.svelte";
|
|
73
74
|
import type IconProps from "./types/IconProps.ts";
|
|
74
|
-
export { AddImageIcon, AddSquareIcon, AlertCircleIcon, AnnotationXIcon, ArrowCalendarIcon, ArrowLeftIcon, ArrowSwitchIcon, ArrowUpIcon, BellIcon, BezierIcon, BoxIcon, BrandIcon, CalendarIcon, CameraIcon, CategoryIcon, CertificateIcon, ChartTrendUp, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon, ClockIcon, CloseIcon, CollectionIcon, ColumnHorizontal, CopyIcon, CrownIcon, DarkIcon, DownloadCloudIcon, DownloadIcon, EditIcon, EyeClosedIcon, EyeOpenIcon, FavoriteIcon, FilterIcon, FlameIcon, FlipLeftIcon, FolderIcon, FolderPlusIcon, GridIcon, HeartIcon, HomeIcon, HourglassIcon, Icon, LightBulb01Icon, LightIcon, LockIcon, LogoutIcon, MaterialIcon, MenuIcon, MinimizeIcon, NoFolder, NotificationIcon, OverlapIcon, PinIcon, PlayIcon, ReloadIcon, ReportIcon, SearchIcon, SendIcon, SettingsIcon, StarIcon, TeamUserIcon, TextureIcon, TrashIcon, TrendUpIcon, UpgradeIcon, UploadIcon, UserProfileIcon, ViewModeIcon, ZoomIcon, ZoomSliderIcon, };
|
|
75
|
+
export { AddImageIcon, AddSquareIcon, AlertCircleIcon, AnnotationXIcon, ArrowCalendarIcon, ArrowLeftIcon, ArrowSwitchIcon, ArrowUpIcon, BellIcon, BezierIcon, BoxIcon, BrandIcon, CalendarIcon, CameraIcon, CategoryIcon, CertificateIcon, ChartTrendUp, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon, ClockIcon, CloseIcon, CollectionIcon, ColumnHorizontal, CopyIcon, CrownIcon, DarkIcon, DownloadCloudIcon, DownloadIcon, EditIcon, EyeClosedIcon, EyeOpenIcon, FavoriteIcon, FilterIcon, FlameIcon, FlipLeftIcon, FolderIcon, FolderPlusIcon, GridIcon, HeartIcon, HomeIcon, HourglassIcon, Icon, LightBulb01Icon, LightIcon, LockIcon, LogoutIcon, MaterialIcon, MenuIcon, MinimizeIcon, NoFolder, NotificationIcon, OverlapIcon, PinIcon, PlayIcon, ReloadIcon, ReportIcon, SearchIcon, SendIcon, SettingsIcon, StarIcon, TeamUserIcon, TextureIcon, TrashIcon, TrendUpIcon, UpgradeIcon, UploadIcon, UserProfileIcon, ViewModeIcon, ZoomIcon, ZoomSliderIcon, Edit01Icon, };
|
|
75
76
|
export type { IconProps };
|
package/dist/index.js
CHANGED
|
@@ -70,4 +70,5 @@ import UserProfileIcon from "./icons/UserProfileIcon.svelte";
|
|
|
70
70
|
import ViewModeIcon from "./icons/ViewModeIcon.svelte";
|
|
71
71
|
import ZoomIcon from "./icons/ZoomIcon.svelte";
|
|
72
72
|
import ZoomSliderIcon from "./icons/ZoomSliderIcon.svelte";
|
|
73
|
-
|
|
73
|
+
import Edit01Icon from "./icons/Edit01Icon.svelte";
|
|
74
|
+
export { AddImageIcon, AddSquareIcon, AlertCircleIcon, AnnotationXIcon, ArrowCalendarIcon, ArrowLeftIcon, ArrowSwitchIcon, ArrowUpIcon, BellIcon, BezierIcon, BoxIcon, BrandIcon, CalendarIcon, CameraIcon, CategoryIcon, CertificateIcon, ChartTrendUp, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon, ClockIcon, CloseIcon, CollectionIcon, ColumnHorizontal, CopyIcon, CrownIcon, DarkIcon, DownloadCloudIcon, DownloadIcon, EditIcon, EyeClosedIcon, EyeOpenIcon, FavoriteIcon, FilterIcon, FlameIcon, FlipLeftIcon, FolderIcon, FolderPlusIcon, GridIcon, HeartIcon, HomeIcon, HourglassIcon, Icon, LightBulb01Icon, LightIcon, LockIcon, LogoutIcon, MaterialIcon, MenuIcon, MinimizeIcon, NoFolder, NotificationIcon, OverlapIcon, PinIcon, PlayIcon, ReloadIcon, ReportIcon, SearchIcon, SendIcon, SettingsIcon, StarIcon, TeamUserIcon, TextureIcon, TrashIcon, TrendUpIcon, UpgradeIcon, UploadIcon, UserProfileIcon, ViewModeIcon, ZoomIcon, ZoomSliderIcon, Edit01Icon, };
|