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.
Files changed (139) hide show
  1. package/.gitignore +11 -0
  2. package/.npmrc +1 -0
  3. package/.svelte-kit/__package__/index.d.ts +42 -0
  4. package/.svelte-kit/__package__/index.js +42 -0
  5. package/.svelte-kit/ambient.d.ts +389 -0
  6. package/.svelte-kit/generated/client/app.js +19 -0
  7. package/.svelte-kit/generated/client/matchers.js +1 -0
  8. package/.svelte-kit/generated/client/nodes/0.js +1 -0
  9. package/.svelte-kit/generated/client/nodes/1.js +1 -0
  10. package/.svelte-kit/generated/client/nodes/2.js +1 -0
  11. package/.svelte-kit/generated/client-optimized/app.js +19 -0
  12. package/.svelte-kit/generated/client-optimized/matchers.js +1 -0
  13. package/.svelte-kit/generated/client-optimized/nodes/0.js +1 -0
  14. package/.svelte-kit/generated/client-optimized/nodes/1.js +1 -0
  15. package/.svelte-kit/generated/client-optimized/nodes/2.js +1 -0
  16. package/.svelte-kit/generated/root.svelte +57 -0
  17. package/.svelte-kit/generated/server/internal.js +30 -0
  18. package/.svelte-kit/non-ambient.d.ts +25 -0
  19. package/.svelte-kit/output/client/.vite/manifest.json +71 -0
  20. package/.svelte-kit/output/client/_app/immutable/chunks/index.fwz0P8IJ.js +1 -0
  21. package/.svelte-kit/output/client/_app/immutable/chunks/scheduler.k-kUyWhY.js +1 -0
  22. package/.svelte-kit/output/client/_app/immutable/chunks/singletons.BTKERuC0.js +1 -0
  23. package/.svelte-kit/output/client/_app/immutable/entry/app.WGYaKRLN.js +7 -0
  24. package/.svelte-kit/output/client/_app/immutable/entry/start.aC2tJUKM.js +4 -0
  25. package/.svelte-kit/output/client/_app/immutable/nodes/0.TPefyB_B.js +1 -0
  26. package/.svelte-kit/output/client/_app/immutable/nodes/1.YWupMHx9.js +1 -0
  27. package/.svelte-kit/output/client/_app/immutable/nodes/2.sCXEpvk1.js +1 -0
  28. package/.svelte-kit/output/client/_app/version.json +1 -0
  29. package/.svelte-kit/output/client/favicon.png +0 -0
  30. package/.svelte-kit/output/server/.vite/manifest.json +52 -0
  31. package/.svelte-kit/output/server/chunks/internal.js +211 -0
  32. package/.svelte-kit/output/server/chunks/ssr.js +117 -0
  33. package/.svelte-kit/output/server/entries/fallbacks/error.svelte.js +31 -0
  34. package/.svelte-kit/output/server/entries/fallbacks/layout.svelte.js +7 -0
  35. package/.svelte-kit/output/server/entries/pages/_page.svelte.js +7 -0
  36. package/.svelte-kit/output/server/index.js +3052 -0
  37. package/.svelte-kit/output/server/internal.js +10 -0
  38. package/.svelte-kit/output/server/manifest-full.js +34 -0
  39. package/.svelte-kit/output/server/manifest.js +34 -0
  40. package/.svelte-kit/output/server/nodes/0.js +8 -0
  41. package/.svelte-kit/output/server/nodes/1.js +8 -0
  42. package/.svelte-kit/output/server/nodes/2.js +8 -0
  43. package/.svelte-kit/tsconfig.json +46 -0
  44. package/.svelte-kit/types/route_meta_data.json +3 -0
  45. package/.svelte-kit/types/src/routes/$types.d.ts +22 -0
  46. package/dist/index.d.ts +41 -41
  47. package/dist/index.js +41 -41
  48. package/package.json +1 -1
  49. package/src/app.d.ts +13 -0
  50. package/src/app.html +12 -0
  51. package/src/icons/AddImageIcon.svelte +101 -0
  52. package/src/icons/AddImageIcon.svelte.d.ts +22 -0
  53. package/src/icons/AddSquareIcon.svelte +88 -0
  54. package/src/icons/AddSquareIcon.svelte.d.ts +22 -0
  55. package/src/icons/AlertCircleIcon.svelte +88 -0
  56. package/src/icons/AlertCircleIcon.svelte.d.ts +22 -0
  57. package/src/icons/AnnotationXIcon.svelte +88 -0
  58. package/src/icons/AnnotationXIcon.svelte.d.ts +22 -0
  59. package/src/icons/ArrowCalendarIcon.svelte +88 -0
  60. package/src/icons/ArrowCalendarIcon.svelte.d.ts +22 -0
  61. package/src/icons/ArrowLeftIcon.svelte +88 -0
  62. package/src/icons/ArrowLeftIcon.svelte.d.ts +22 -0
  63. package/src/icons/ArrowSwitchIcon.svelte +88 -0
  64. package/src/icons/ArrowSwitchIcon.svelte.d.ts +22 -0
  65. package/src/icons/ArrowUpIcon.svelte +88 -0
  66. package/src/icons/ArrowUpIcon.svelte.d.ts +22 -0
  67. package/src/icons/BellIcon.svelte +87 -0
  68. package/src/icons/BellIcon.svelte.d.ts +22 -0
  69. package/src/icons/BezierIcon.svelte +88 -0
  70. package/src/icons/BezierIcon.svelte.d.ts +22 -0
  71. package/src/icons/CalendarIcon.svelte +88 -0
  72. package/src/icons/CalendarIcon.svelte.d.ts +22 -0
  73. package/src/icons/CameraIcon.svelte +88 -0
  74. package/src/icons/CameraIcon.svelte.d.ts +22 -0
  75. package/src/icons/CertificateIcon.svelte +88 -0
  76. package/src/icons/CertificateIcon.svelte.d.ts +22 -0
  77. package/src/icons/CheckCircleIcon.svelte +88 -0
  78. package/src/icons/CheckCircleIcon.svelte.d.ts +22 -0
  79. package/src/icons/CheckIcon.svelte +88 -0
  80. package/src/icons/CheckIcon.svelte.d.ts +22 -0
  81. package/src/icons/ChevronDownIcon.svelte +88 -0
  82. package/src/icons/ChevronDownIcon.svelte.d.ts +22 -0
  83. package/src/icons/ChevronUpIcon.svelte +88 -0
  84. package/src/icons/ChevronUpIcon.svelte.d.ts +22 -0
  85. package/src/icons/ClockIcon.svelte +88 -0
  86. package/src/icons/ClockIcon.svelte.d.ts +22 -0
  87. package/src/icons/CloseIcon.svelte +88 -0
  88. package/src/icons/CloseIcon.svelte.d.ts +22 -0
  89. package/src/icons/CollectionIcon.svelte +88 -0
  90. package/src/icons/CollectionIcon.svelte.d.ts +22 -0
  91. package/src/icons/CopyIcon.svelte +88 -0
  92. package/src/icons/CopyIcon.svelte.d.ts +22 -0
  93. package/src/icons/EditIcon.svelte +88 -0
  94. package/src/icons/EditIcon.svelte.d.ts +22 -0
  95. package/src/icons/FavoriteIcon.svelte +88 -0
  96. package/src/icons/FavoriteIcon.svelte.d.ts +22 -0
  97. package/src/icons/FilterIcon.svelte +88 -0
  98. package/src/icons/FilterIcon.svelte.d.ts +22 -0
  99. package/src/icons/FlameIcon.svelte +88 -0
  100. package/src/icons/FlameIcon.svelte.d.ts +22 -0
  101. package/src/icons/FolderIcon.svelte +88 -0
  102. package/src/icons/FolderIcon.svelte.d.ts +22 -0
  103. package/src/icons/FolderPlusIcon.svelte +88 -0
  104. package/src/icons/FolderPlusIcon.svelte.d.ts +22 -0
  105. package/src/icons/GridIcon.svelte +133 -0
  106. package/src/icons/GridIcon.svelte.d.ts +22 -0
  107. package/src/icons/HourglassIcon.svelte +88 -0
  108. package/src/icons/HourglassIcon.svelte.d.ts +22 -0
  109. package/src/icons/LockIcon.svelte +88 -0
  110. package/src/icons/LockIcon.svelte.d.ts +22 -0
  111. package/src/icons/LogoutIcon.svelte +88 -0
  112. package/src/icons/LogoutIcon.svelte.d.ts +22 -0
  113. package/src/icons/MenuIcon.svelte +117 -0
  114. package/src/icons/MenuIcon.svelte.d.ts +22 -0
  115. package/src/icons/NoFolder.svelte +101 -0
  116. package/src/icons/NoFolder.svelte.d.ts +22 -0
  117. package/src/icons/NotificationIcon.svelte +88 -0
  118. package/src/icons/NotificationIcon.svelte.d.ts +22 -0
  119. package/src/icons/OverlapIcon.svelte +88 -0
  120. package/src/icons/OverlapIcon.svelte.d.ts +22 -0
  121. package/src/icons/SearchIcon.svelte +88 -0
  122. package/src/icons/SearchIcon.svelte.d.ts +22 -0
  123. package/src/icons/SendIcon.svelte +88 -0
  124. package/src/icons/SendIcon.svelte.d.ts +22 -0
  125. package/src/icons/TeamUserIcon.svelte +88 -0
  126. package/src/icons/TeamUserIcon.svelte.d.ts +22 -0
  127. package/src/icons/TrashIcon.svelte +88 -0
  128. package/src/icons/TrashIcon.svelte.d.ts +22 -0
  129. package/src/icons/UploadIcon.svelte +88 -0
  130. package/src/icons/UploadIcon.svelte.d.ts +22 -0
  131. package/src/icons/UserProfileIcon.svelte +89 -0
  132. package/src/icons/UserProfileIcon.svelte.d.ts +22 -0
  133. package/src/lib/index.ts +44 -0
  134. package/src/routes/+page.svelte +0 -0
  135. package/static/favicon.png +0 -0
  136. package/svelte.config.js +18 -0
  137. package/tsconfig.json +15 -0
  138. package/vite.config.ts +6 -0
  139. 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 CheckCircleIconProps = typeof __propDef.props;
18
+ export type CheckCircleIconEvents = typeof __propDef.events;
19
+ export type CheckCircleIconSlots = typeof __propDef.slots;
20
+ export default class CheckCircleIcon extends SvelteComponent<CheckCircleIconProps, CheckCircleIconEvents, CheckCircleIconSlots> {
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_Check">
39
+ <path
40
+ id="icon_Check"
41
+ d="M12.25 2.9165L4.41928 11.0832L1.75 8.29938"
42
+ stroke="url(#grad-Check)"
43
+ stroke-width={weight}
44
+ stroke-linecap="round"
45
+ stroke-linejoin="round"
46
+ />
47
+ </g>
48
+
49
+ <defs>
50
+ <linearGradient
51
+ id="grad-Check"
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_Check">
76
+ <path
77
+ id="icon_Check"
78
+ d="M12.25 2.9165L4.41928 11.0832L1.75 8.29938"
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 CheckIconProps = typeof __propDef.props;
18
+ export type CheckIconEvents = typeof __propDef.events;
19
+ export type CheckIconSlots = typeof __propDef.slots;
20
+ export default class CheckIcon extends SvelteComponent<CheckIconProps, CheckIconEvents, CheckIconSlots> {
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_ChevronDown">
39
+ <path
40
+ id="icon_ChevronDown"
41
+ d="M9.7998 5.59999L6.9998 8.39999L4.19981 5.59999"
42
+ stroke="url(#grad-ChevronDown)"
43
+ stroke-width={weight}
44
+ stroke-linecap="round"
45
+ stroke-linejoin="round"
46
+ />
47
+ </g>
48
+
49
+ <defs>
50
+ <linearGradient
51
+ id="grad-ChevronDown"
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_ChevronDown">
76
+ <path
77
+ id="icon_ChevronDown"
78
+ d="M9.7998 5.59999L6.9998 8.39999L4.19981 5.59999"
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 ChevronDownIconProps = typeof __propDef.props;
18
+ export type ChevronDownIconEvents = typeof __propDef.events;
19
+ export type ChevronDownIconSlots = typeof __propDef.slots;
20
+ export default class ChevronDownIcon extends SvelteComponent<ChevronDownIconProps, ChevronDownIconEvents, ChevronDownIconSlots> {
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_ChevronUp">
39
+ <path
40
+ id="icon_ChevronUp"
41
+ d="M5.39999 10.8L8.99999 7.19995L12.6 10.8"
42
+ stroke="url(#grad-ChevronUp)"
43
+ stroke-width={weight}
44
+ stroke-linecap="round"
45
+ stroke-linejoin="round"
46
+ />
47
+ </g>
48
+
49
+ <defs>
50
+ <linearGradient
51
+ id="grad-ChevronUp"
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_ChevronUp">
76
+ <path
77
+ id="icon_ChevronUp"
78
+ d="M5.39999 10.8L8.99999 7.19995L12.6 10.8"
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 ChevronUpIconProps = typeof __propDef.props;
18
+ export type ChevronUpIconEvents = typeof __propDef.events;
19
+ export type ChevronUpIconSlots = typeof __propDef.slots;
20
+ export default class ChevronUpIcon extends SvelteComponent<ChevronUpIconProps, ChevronUpIconEvents, ChevronUpIconSlots> {
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_Clock">
39
+ <path
40
+ id="icon_Clock"
41
+ d="M11.9695 6.9999C11.9695 10.0927 9.46165 12.5999 6.36805 12.5999C3.27446 12.5999 0.766602 10.0927 0.766602 6.9999C0.766602 3.90711 3.27446 1.3999 6.36805 1.3999C8.44138 1.3999 10.2516 2.52606 11.2201 4.1999M10.4329 7.61444L11.8332 6.21444L13.2336 7.61444M8.4666 8.52692L6.3666 7.82692V4.8999"
42
+ stroke="url(#grad-Clock)"
43
+ stroke-width={weight}
44
+ stroke-linecap="round"
45
+ stroke-linejoin="round"
46
+ />
47
+ </g>
48
+
49
+ <defs>
50
+ <linearGradient
51
+ id="grad-Clock"
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_Clock">
76
+ <path
77
+ id="icon_Clock"
78
+ d="M11.9695 6.9999C11.9695 10.0927 9.46165 12.5999 6.36805 12.5999C3.27446 12.5999 0.766602 10.0927 0.766602 6.9999C0.766602 3.90711 3.27446 1.3999 6.36805 1.3999C8.44138 1.3999 10.2516 2.52606 11.2201 4.1999M10.4329 7.61444L11.8332 6.21444L13.2336 7.61444M8.4666 8.52692L6.3666 7.82692V4.8999"
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 ClockIconProps = typeof __propDef.props;
18
+ export type ClockIconEvents = typeof __propDef.events;
19
+ export type ClockIconSlots = typeof __propDef.slots;
20
+ export default class ClockIcon extends SvelteComponent<ClockIconProps, ClockIconEvents, ClockIconSlots> {
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 10"
36
+ fill="none"
37
+ >
38
+ <g id="id_Close">
39
+ <path
40
+ id="icon_Close"
41
+ d="M9 1L1 9M9 9L1 1"
42
+ stroke="url(#grad-Close)"
43
+ stroke-width={weight}
44
+ stroke-linecap="round"
45
+ stroke-linejoin="round"
46
+ />
47
+ </g>
48
+
49
+ <defs>
50
+ <linearGradient
51
+ id="grad-Close"
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 10"
73
+ fill="none"
74
+ >
75
+ <g id="id_Close">
76
+ <path
77
+ id="icon_Close"
78
+ d="M9 1L1 9M9 9L1 1"
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 CloseIconProps = typeof __propDef.props;
18
+ export type CloseIconEvents = typeof __propDef.events;
19
+ export type CloseIconSlots = typeof __propDef.slots;
20
+ export default class CloseIcon extends SvelteComponent<CloseIconProps, CloseIconEvents, CloseIconSlots> {
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 16 16"
36
+ fill="none"
37
+ >
38
+ <g id="id_Collection">
39
+ <path
40
+ id="icon_Collection"
41
+ d="M11.5556 14.4C10.8012 14.4 10.0777 14.1003 9.54423 13.5669C9.0108 13.0334 8.71112 12.31 8.71112 11.5556V3.02223C8.71112 2.64503 8.86096 2.28328 9.12768 2.01657C9.39439 1.74985 9.75614 1.60001 10.1333 1.60001H12.9778C13.355 1.60001 13.7167 1.74985 13.9834 2.01657C14.2502 2.28328 14.4 2.64503 14.4 3.02223V11.5556C14.4 12.31 14.1003 13.0334 13.5669 13.5669C13.0334 14.1003 12.31 14.4 11.5556 14.4ZM11.5556 14.4H3.02223C2.64503 14.4 2.28328 14.2502 2.01657 13.9834C1.74985 13.7167 1.60001 13.355 1.60001 12.9778V10.1333C1.60001 9.75614 1.74985 9.39439 2.01657 9.12768C2.28328 8.86096 2.64503 8.71112 3.02223 8.71112H4.65778M8.71112 4.69334L7.28889 3.27112C7.02219 3.00449 6.66051 2.85471 6.28338 2.85471C5.90626 2.85471 5.54458 3.00449 5.27787 3.27112L3.26685 5.28214C3.00022 5.54885 2.85044 5.91053 2.85044 6.28765C2.85044 6.66477 3.00022 7.02645 3.26685 7.29316L9.66685 13.6932M11.5556 11.5556V11.5627"
42
+ stroke="url(#grad-Collection)"
43
+ stroke-width={weight}
44
+ stroke-linecap="round"
45
+ stroke-linejoin="round"
46
+ />
47
+ </g>
48
+
49
+ <defs>
50
+ <linearGradient
51
+ id="grad-Collection"
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 16 16"
73
+ fill="none"
74
+ >
75
+ <g id="id_Collection">
76
+ <path
77
+ id="icon_Collection"
78
+ d="M11.5556 14.4C10.8012 14.4 10.0777 14.1003 9.54423 13.5669C9.0108 13.0334 8.71112 12.31 8.71112 11.5556V3.02223C8.71112 2.64503 8.86096 2.28328 9.12768 2.01657C9.39439 1.74985 9.75614 1.60001 10.1333 1.60001H12.9778C13.355 1.60001 13.7167 1.74985 13.9834 2.01657C14.2502 2.28328 14.4 2.64503 14.4 3.02223V11.5556C14.4 12.31 14.1003 13.0334 13.5669 13.5669C13.0334 14.1003 12.31 14.4 11.5556 14.4ZM11.5556 14.4H3.02223C2.64503 14.4 2.28328 14.2502 2.01657 13.9834C1.74985 13.7167 1.60001 13.355 1.60001 12.9778V10.1333C1.60001 9.75614 1.74985 9.39439 2.01657 9.12768C2.28328 8.86096 2.64503 8.71112 3.02223 8.71112H4.65778M8.71112 4.69334L7.28889 3.27112C7.02219 3.00449 6.66051 2.85471 6.28338 2.85471C5.90626 2.85471 5.54458 3.00449 5.27787 3.27112L3.26685 5.28214C3.00022 5.54885 2.85044 5.91053 2.85044 6.28765C2.85044 6.66477 3.00022 7.02645 3.26685 7.29316L9.66685 13.6932M11.5556 11.5556V11.5627"
79
+ stroke={color}
80
+ stroke-width={weight}
81
+ stroke-linecap="round"
82
+ stroke-linejoin="round"
83
+ />
84
+ </g>
85
+ </svg>
86
+ {/if}
87
+
88
+