chromia 0.0.26 → 0.0.28
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,73 @@
|
|
|
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 16 16"
|
|
29
|
+
fill="none"
|
|
30
|
+
>
|
|
31
|
+
<path
|
|
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
|
+
stroke="url(#grad-custom)"
|
|
34
|
+
stroke-width={weight}
|
|
35
|
+
stroke-linejoin="round"
|
|
36
|
+
stroke-linecap="round"
|
|
37
|
+
/>
|
|
38
|
+
|
|
39
|
+
<defs>
|
|
40
|
+
<linearGradient
|
|
41
|
+
id="grad-custom"
|
|
42
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
43
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
44
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
45
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
46
|
+
>
|
|
47
|
+
<stop
|
|
48
|
+
offset="0%"
|
|
49
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
50
|
+
/>
|
|
51
|
+
<stop
|
|
52
|
+
offset="100%"
|
|
53
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
54
|
+
/>
|
|
55
|
+
</linearGradient>
|
|
56
|
+
</defs>
|
|
57
|
+
</svg>
|
|
58
|
+
{:else}
|
|
59
|
+
<svg
|
|
60
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
61
|
+
style="width: {size}; height: {size};"
|
|
62
|
+
viewBox="0 0 16 16"
|
|
63
|
+
fill="none"
|
|
64
|
+
>
|
|
65
|
+
<path
|
|
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"
|
|
67
|
+
stroke={color}
|
|
68
|
+
stroke-width={weight}
|
|
69
|
+
stroke-linecap="round"
|
|
70
|
+
stroke-linejoin="round"
|
|
71
|
+
/>
|
|
72
|
+
</svg>
|
|
73
|
+
{/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 MinimizeIconProps = typeof __propDef.props;
|
|
20
|
+
export type MinimizeIconEvents = typeof __propDef.events;
|
|
21
|
+
export type MinimizeIconSlots = typeof __propDef.slots;
|
|
22
|
+
export default class MinimizeIcon extends SvelteComponent<
|
|
23
|
+
MinimizeIconProps,
|
|
24
|
+
MinimizeIconEvents,
|
|
25
|
+
MinimizeIconSlots
|
|
26
|
+
> {}
|
|
27
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ import LockIcon from "./icons/LockIcon.svelte";
|
|
|
48
48
|
import LogoutIcon from "./icons/LogoutIcon.svelte";
|
|
49
49
|
import MaterialIcon from "./icons/MaterialIcon.svelte";
|
|
50
50
|
import MenuIcon from "./icons/MenuIcon.svelte";
|
|
51
|
+
import MinimizeIcon from "./icons/MinimizeIcon.svelte";
|
|
51
52
|
import NoFolder from "./icons/NoFolder.svelte";
|
|
52
53
|
import NotificationIcon from "./icons/NotificationIcon.svelte";
|
|
53
54
|
import OverlapIcon from "./icons/OverlapIcon.svelte";
|
|
@@ -70,5 +71,5 @@ import ViewModeIcon from "./icons/ViewModeIcon.svelte";
|
|
|
70
71
|
import ZoomIcon from "./icons/ZoomIcon.svelte";
|
|
71
72
|
import ZoomSliderIcon from "./icons/ZoomSliderIcon.svelte";
|
|
72
73
|
import type IconProps from "./types/IconProps.ts";
|
|
73
|
-
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, NoFolder, NotificationIcon, OverlapIcon, PinIcon, PlayIcon, ReloadIcon, ReportIcon, SearchIcon, SendIcon, SettingsIcon, StarIcon, TeamUserIcon, TextureIcon, TrashIcon, TrendUpIcon, UpgradeIcon, UploadIcon, UserProfileIcon, ViewModeIcon, ZoomIcon, ZoomSliderIcon, };
|
|
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, };
|
|
74
75
|
export type { IconProps };
|
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ import LockIcon from "./icons/LockIcon.svelte";
|
|
|
48
48
|
import LogoutIcon from "./icons/LogoutIcon.svelte";
|
|
49
49
|
import MaterialIcon from "./icons/MaterialIcon.svelte";
|
|
50
50
|
import MenuIcon from "./icons/MenuIcon.svelte";
|
|
51
|
+
import MinimizeIcon from "./icons/MinimizeIcon.svelte";
|
|
51
52
|
import NoFolder from "./icons/NoFolder.svelte";
|
|
52
53
|
import NotificationIcon from "./icons/NotificationIcon.svelte";
|
|
53
54
|
import OverlapIcon from "./icons/OverlapIcon.svelte";
|
|
@@ -69,4 +70,4 @@ import UserProfileIcon from "./icons/UserProfileIcon.svelte";
|
|
|
69
70
|
import ViewModeIcon from "./icons/ViewModeIcon.svelte";
|
|
70
71
|
import ZoomIcon from "./icons/ZoomIcon.svelte";
|
|
71
72
|
import ZoomSliderIcon from "./icons/ZoomSliderIcon.svelte";
|
|
72
|
-
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, NoFolder, NotificationIcon, OverlapIcon, PinIcon, PlayIcon, ReloadIcon, ReportIcon, SearchIcon, SendIcon, SettingsIcon, StarIcon, TeamUserIcon, TextureIcon, TrashIcon, TrendUpIcon, UpgradeIcon, UploadIcon, UserProfileIcon, ViewModeIcon, ZoomIcon, ZoomSliderIcon, };
|
|
73
|
+
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, };
|