chromia 0.0.4 → 0.0.5
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/README.md +58 -58
- package/dist/icons/AddImageIcon.svelte +74 -74
- package/dist/icons/AddImageIcon.svelte.d.ts +22 -22
- package/dist/icons/AddSquareIcon.svelte +60 -60
- package/dist/icons/AddSquareIcon.svelte.d.ts +22 -22
- package/dist/icons/AlertCircleIcon.svelte +60 -60
- package/dist/icons/AlertCircleIcon.svelte.d.ts +22 -22
- package/dist/icons/AnnotationXIcon.svelte +60 -60
- package/dist/icons/AnnotationXIcon.svelte.d.ts +22 -22
- package/dist/icons/ArrowCalendarIcon.svelte +60 -60
- package/dist/icons/ArrowCalendarIcon.svelte.d.ts +22 -22
- package/dist/icons/ArrowLeftIcon.svelte +60 -60
- package/dist/icons/ArrowLeftIcon.svelte.d.ts +22 -22
- package/dist/icons/ArrowSwitchIcon.svelte +60 -60
- package/dist/icons/ArrowSwitchIcon.svelte.d.ts +22 -22
- package/dist/icons/ArrowUpIcon.svelte +60 -60
- package/dist/icons/ArrowUpIcon.svelte.d.ts +22 -22
- package/dist/icons/BellIcon.svelte +59 -59
- package/dist/icons/BellIcon.svelte.d.ts +22 -22
- package/dist/icons/BezierIcon.svelte +60 -60
- package/dist/icons/BezierIcon.svelte.d.ts +22 -22
- package/dist/icons/CalendarIcon.svelte +60 -60
- package/dist/icons/CalendarIcon.svelte.d.ts +22 -22
- package/dist/icons/CameraIcon.svelte +60 -60
- package/dist/icons/CameraIcon.svelte.d.ts +22 -22
- package/dist/icons/CertificateIcon.svelte +60 -60
- package/dist/icons/CertificateIcon.svelte.d.ts +22 -22
- package/dist/icons/CheckCircleIcon.svelte +60 -60
- package/dist/icons/CheckCircleIcon.svelte.d.ts +22 -22
- package/dist/icons/CheckIcon.svelte +60 -60
- package/dist/icons/CheckIcon.svelte.d.ts +22 -22
- package/dist/icons/ChevronDownIcon.svelte +60 -60
- package/dist/icons/ChevronDownIcon.svelte.d.ts +22 -22
- package/dist/icons/ChevronUpIcon.svelte +60 -60
- package/dist/icons/ChevronUpIcon.svelte.d.ts +22 -22
- package/dist/icons/ClockIcon.svelte +60 -60
- package/dist/icons/ClockIcon.svelte.d.ts +22 -22
- package/dist/icons/CloseIcon.svelte +60 -60
- package/dist/icons/CloseIcon.svelte.d.ts +22 -22
- package/dist/icons/CollectionIcon.svelte +60 -60
- package/dist/icons/CollectionIcon.svelte.d.ts +22 -22
- package/dist/icons/CopyIcon.svelte +60 -60
- package/dist/icons/CopyIcon.svelte.d.ts +22 -22
- package/dist/icons/EditIcon.svelte +60 -60
- package/dist/icons/EditIcon.svelte.d.ts +22 -22
- package/dist/icons/EyeClosedIcon.svelte +60 -60
- package/dist/icons/EyeOpenIcon.svelte +61 -61
- package/dist/icons/FavoriteIcon.svelte +60 -60
- package/dist/icons/FavoriteIcon.svelte.d.ts +22 -22
- package/dist/icons/FilterIcon.svelte +60 -60
- package/dist/icons/FilterIcon.svelte.d.ts +22 -22
- package/dist/icons/FlameIcon.svelte +60 -60
- package/dist/icons/FlameIcon.svelte.d.ts +22 -22
- package/dist/icons/FolderIcon.svelte +60 -60
- package/dist/icons/FolderIcon.svelte.d.ts +22 -22
- package/dist/icons/FolderPlusIcon.svelte +60 -60
- package/dist/icons/FolderPlusIcon.svelte.d.ts +22 -22
- package/dist/icons/GridIcon.svelte +106 -106
- package/dist/icons/GridIcon.svelte.d.ts +22 -22
- package/dist/icons/HourglassIcon.svelte +60 -60
- package/dist/icons/HourglassIcon.svelte.d.ts +22 -22
- package/dist/icons/Icon.svelte +60 -60
- package/dist/icons/LockIcon.svelte +60 -60
- package/dist/icons/LockIcon.svelte.d.ts +22 -22
- package/dist/icons/LogoutIcon.svelte +60 -60
- package/dist/icons/LogoutIcon.svelte.d.ts +22 -22
- package/dist/icons/MenuIcon.svelte +90 -90
- package/dist/icons/MenuIcon.svelte.d.ts +22 -22
- package/dist/icons/NoFolder.svelte +74 -74
- package/dist/icons/NoFolder.svelte.d.ts +22 -22
- package/dist/icons/NotificationIcon.svelte +60 -60
- package/dist/icons/NotificationIcon.svelte.d.ts +22 -22
- package/dist/icons/OverlapIcon.svelte +60 -60
- package/dist/icons/OverlapIcon.svelte.d.ts +22 -22
- package/dist/icons/SearchIcon.svelte +60 -60
- package/dist/icons/SearchIcon.svelte.d.ts +22 -22
- package/dist/icons/SendIcon.svelte +60 -60
- package/dist/icons/SendIcon.svelte.d.ts +22 -22
- package/dist/icons/TeamUserIcon.svelte +60 -60
- package/dist/icons/TeamUserIcon.svelte.d.ts +22 -22
- package/dist/icons/TrashIcon.svelte +60 -60
- package/dist/icons/TrashIcon.svelte.d.ts +22 -22
- package/dist/icons/TrendUpIcon.svelte +79 -0
- package/dist/icons/TrendUpIcon.svelte.d.ts +22 -0
- package/dist/icons/UploadIcon.svelte +60 -60
- package/dist/icons/UploadIcon.svelte.d.ts +22 -22
- package/dist/icons/UserProfileIcon.svelte +61 -61
- package/dist/icons/UserProfileIcon.svelte.d.ts +22 -22
- package/package.json +43 -43
package/README.md
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
# create-svelte
|
|
2
|
-
|
|
3
|
-
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
|
|
4
|
-
|
|
5
|
-
Read more about creating a library [in the docs](https://kit.svelte.dev/docs/packaging).
|
|
6
|
-
|
|
7
|
-
## Creating a project
|
|
8
|
-
|
|
9
|
-
If you're seeing this, you've probably already done this step. Congrats!
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
# create a new project in the current directory
|
|
13
|
-
npm create svelte@latest
|
|
14
|
-
|
|
15
|
-
# create a new project in my-app
|
|
16
|
-
npm create svelte@latest my-app
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Developing
|
|
20
|
-
|
|
21
|
-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npm run dev
|
|
25
|
-
|
|
26
|
-
# or start the server and open the app in a new browser tab
|
|
27
|
-
npm run dev -- --open
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
|
|
31
|
-
|
|
32
|
-
## Building
|
|
33
|
-
|
|
34
|
-
To build your library:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm run package
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
To create a production version of your showcase app:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npm run build
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
You can preview the production build with `npm run preview`.
|
|
47
|
-
|
|
48
|
-
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
49
|
-
|
|
50
|
-
## Publishing
|
|
51
|
-
|
|
52
|
-
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
|
|
53
|
-
|
|
54
|
-
To publish your library to [npm](https://www.npmjs.com):
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
npm publish
|
|
58
|
-
```
|
|
1
|
+
# create-svelte
|
|
2
|
+
|
|
3
|
+
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
|
|
4
|
+
|
|
5
|
+
Read more about creating a library [in the docs](https://kit.svelte.dev/docs/packaging).
|
|
6
|
+
|
|
7
|
+
## Creating a project
|
|
8
|
+
|
|
9
|
+
If you're seeing this, you've probably already done this step. Congrats!
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# create a new project in the current directory
|
|
13
|
+
npm create svelte@latest
|
|
14
|
+
|
|
15
|
+
# create a new project in my-app
|
|
16
|
+
npm create svelte@latest my-app
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Developing
|
|
20
|
+
|
|
21
|
+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm run dev
|
|
25
|
+
|
|
26
|
+
# or start the server and open the app in a new browser tab
|
|
27
|
+
npm run dev -- --open
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
|
|
31
|
+
|
|
32
|
+
## Building
|
|
33
|
+
|
|
34
|
+
To build your library:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm run package
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
To create a production version of your showcase app:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm run build
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can preview the production build with `npm run preview`.
|
|
47
|
+
|
|
48
|
+
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
49
|
+
|
|
50
|
+
## Publishing
|
|
51
|
+
|
|
52
|
+
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
|
|
53
|
+
|
|
54
|
+
To publish your library to [npm](https://www.npmjs.com):
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npm publish
|
|
58
|
+
```
|
|
@@ -19,77 +19,77 @@ const getGradientDirection = (direction) => {
|
|
|
19
19
|
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
20
20
|
}
|
|
21
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 20 20"
|
|
29
|
-
fill="none"
|
|
30
|
-
>
|
|
31
|
-
<g id="id_AddImage">
|
|
32
|
-
<path
|
|
33
|
-
d="M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
34
|
-
id="icon_AddImage"
|
|
35
|
-
stroke="url(#grad-AddImage)"
|
|
36
|
-
stroke-width={weight}
|
|
37
|
-
stroke-linecap="round"
|
|
38
|
-
stroke-linejoin="round"
|
|
39
|
-
/>
|
|
40
|
-
<path
|
|
41
|
-
d="M4.08582 18.4142L11.1729 11.7441C11.9601 11.0032 13.1935 11.0219 13.9578 11.7862L16.5858 14.4142M4.08582 18.4142H14.0858C15.7427 18.4142 17.0858 17.0711 17.0858 15.4142V10.4142M4.08582 18.4142C2.42896 18.4142 1.08582 17.0711 1.08582 15.4142V5.41424C1.08582 3.75739 2.42896 2.41424 4.08582 2.41424H10.5858M16.0858 7.24267L16.0858 4.41424M16.0858 4.41424L16.0858 1.58582M16.0858 4.41424L13.2574 4.41424M16.0858 4.41424L18.9142 4.41424M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
42
|
-
id="icon_AddImage"
|
|
43
|
-
stroke="url(#grad-AddImage)"
|
|
44
|
-
stroke-width={weight}
|
|
45
|
-
stroke-linecap="round"
|
|
46
|
-
stroke-linejoin="round"
|
|
47
|
-
/>
|
|
48
|
-
</g>
|
|
49
|
-
|
|
50
|
-
<defs>
|
|
51
|
-
<linearGradient
|
|
52
|
-
id="grad-AddImage"
|
|
53
|
-
x1={getGradientDirection(gradient.direction).x1}
|
|
54
|
-
y1={getGradientDirection(gradient.direction).y1}
|
|
55
|
-
x2={getGradientDirection(gradient.direction).x2}
|
|
56
|
-
y2={getGradientDirection(gradient.direction).y2}
|
|
57
|
-
>
|
|
58
|
-
<stop
|
|
59
|
-
offset="0%"
|
|
60
|
-
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
61
|
-
/>
|
|
62
|
-
<stop
|
|
63
|
-
offset="100%"
|
|
64
|
-
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
65
|
-
/>
|
|
66
|
-
</linearGradient>
|
|
67
|
-
</defs>
|
|
68
|
-
</svg>
|
|
69
|
-
{:else}
|
|
70
|
-
<svg
|
|
71
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
72
|
-
style="width: {size}; height: {size};"
|
|
73
|
-
viewBox="0 0 20 20"
|
|
74
|
-
fill="none"
|
|
75
|
-
>
|
|
76
|
-
<g id="id_AddImage">
|
|
77
|
-
<path
|
|
78
|
-
d="M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
79
|
-
id="icon_AddImage"
|
|
80
|
-
stroke={color}
|
|
81
|
-
stroke-width={weight}
|
|
82
|
-
stroke-linecap="round"
|
|
83
|
-
stroke-linejoin="round"
|
|
84
|
-
/>
|
|
85
|
-
<path
|
|
86
|
-
d="M4.08582 18.4142L11.1729 11.7441C11.9601 11.0032 13.1935 11.0219 13.9578 11.7862L16.5858 14.4142M4.08582 18.4142H14.0858C15.7427 18.4142 17.0858 17.0711 17.0858 15.4142V10.4142M4.08582 18.4142C2.42896 18.4142 1.08582 17.0711 1.08582 15.4142V5.41424C1.08582 3.75739 2.42896 2.41424 4.08582 2.41424H10.5858M16.0858 7.24267L16.0858 4.41424M16.0858 4.41424L16.0858 1.58582M16.0858 4.41424L13.2574 4.41424M16.0858 4.41424L18.9142 4.41424M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
87
|
-
id="icon_AddImage"
|
|
88
|
-
stroke={color}
|
|
89
|
-
stroke-width={weight}
|
|
90
|
-
stroke-linecap="round"
|
|
91
|
-
stroke-linejoin="round"
|
|
92
|
-
/>
|
|
93
|
-
</g>
|
|
94
|
-
</svg>
|
|
95
|
-
{/if}
|
|
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 20 20"
|
|
29
|
+
fill="none"
|
|
30
|
+
>
|
|
31
|
+
<g id="id_AddImage">
|
|
32
|
+
<path
|
|
33
|
+
d="M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
34
|
+
id="icon_AddImage"
|
|
35
|
+
stroke="url(#grad-AddImage)"
|
|
36
|
+
stroke-width={weight}
|
|
37
|
+
stroke-linecap="round"
|
|
38
|
+
stroke-linejoin="round"
|
|
39
|
+
/>
|
|
40
|
+
<path
|
|
41
|
+
d="M4.08582 18.4142L11.1729 11.7441C11.9601 11.0032 13.1935 11.0219 13.9578 11.7862L16.5858 14.4142M4.08582 18.4142H14.0858C15.7427 18.4142 17.0858 17.0711 17.0858 15.4142V10.4142M4.08582 18.4142C2.42896 18.4142 1.08582 17.0711 1.08582 15.4142V5.41424C1.08582 3.75739 2.42896 2.41424 4.08582 2.41424H10.5858M16.0858 7.24267L16.0858 4.41424M16.0858 4.41424L16.0858 1.58582M16.0858 4.41424L13.2574 4.41424M16.0858 4.41424L18.9142 4.41424M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
42
|
+
id="icon_AddImage"
|
|
43
|
+
stroke="url(#grad-AddImage)"
|
|
44
|
+
stroke-width={weight}
|
|
45
|
+
stroke-linecap="round"
|
|
46
|
+
stroke-linejoin="round"
|
|
47
|
+
/>
|
|
48
|
+
</g>
|
|
49
|
+
|
|
50
|
+
<defs>
|
|
51
|
+
<linearGradient
|
|
52
|
+
id="grad-AddImage"
|
|
53
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
54
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
55
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
56
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
57
|
+
>
|
|
58
|
+
<stop
|
|
59
|
+
offset="0%"
|
|
60
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
61
|
+
/>
|
|
62
|
+
<stop
|
|
63
|
+
offset="100%"
|
|
64
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
65
|
+
/>
|
|
66
|
+
</linearGradient>
|
|
67
|
+
</defs>
|
|
68
|
+
</svg>
|
|
69
|
+
{:else}
|
|
70
|
+
<svg
|
|
71
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
72
|
+
style="width: {size}; height: {size};"
|
|
73
|
+
viewBox="0 0 20 20"
|
|
74
|
+
fill="none"
|
|
75
|
+
>
|
|
76
|
+
<g id="id_AddImage">
|
|
77
|
+
<path
|
|
78
|
+
d="M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
79
|
+
id="icon_AddImage"
|
|
80
|
+
stroke={color}
|
|
81
|
+
stroke-width={weight}
|
|
82
|
+
stroke-linecap="round"
|
|
83
|
+
stroke-linejoin="round"
|
|
84
|
+
/>
|
|
85
|
+
<path
|
|
86
|
+
d="M4.08582 18.4142L11.1729 11.7441C11.9601 11.0032 13.1935 11.0219 13.9578 11.7862L16.5858 14.4142M4.08582 18.4142H14.0858C15.7427 18.4142 17.0858 17.0711 17.0858 15.4142V10.4142M4.08582 18.4142C2.42896 18.4142 1.08582 17.0711 1.08582 15.4142V5.41424C1.08582 3.75739 2.42896 2.41424 4.08582 2.41424H10.5858M16.0858 7.24267L16.0858 4.41424M16.0858 4.41424L16.0858 1.58582M16.0858 4.41424L13.2574 4.41424M16.0858 4.41424L18.9142 4.41424M7.08582 6.91424C7.08582 7.74267 6.41424 8.41424 5.58582 8.41424C4.75739 8.41424 4.08582 7.74267 4.08582 6.91424C4.08582 6.08582 4.75739 5.41424 5.58582 5.41424C6.41424 5.41424 7.08582 6.08582 7.08582 6.91424Z"
|
|
87
|
+
id="icon_AddImage"
|
|
88
|
+
stroke={color}
|
|
89
|
+
stroke-width={weight}
|
|
90
|
+
stroke-linecap="round"
|
|
91
|
+
stroke-linejoin="round"
|
|
92
|
+
/>
|
|
93
|
+
</g>
|
|
94
|
+
</svg>
|
|
95
|
+
{/if}
|
|
@@ -1,22 +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 AddImageIconProps = typeof __propDef.props;
|
|
18
|
-
export type AddImageIconEvents = typeof __propDef.events;
|
|
19
|
-
export type AddImageIconSlots = typeof __propDef.slots;
|
|
20
|
-
export default class AddImageIcon extends SvelteComponent<AddImageIconProps, AddImageIconEvents, AddImageIconSlots> {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
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 AddImageIconProps = typeof __propDef.props;
|
|
18
|
+
export type AddImageIconEvents = typeof __propDef.events;
|
|
19
|
+
export type AddImageIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class AddImageIcon extends SvelteComponent<AddImageIconProps, AddImageIconEvents, AddImageIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
<script>export let color = "#000";
|
|
3
3
|
export let gradient = {
|
|
4
4
|
colors: ["", ""],
|
|
@@ -20,63 +20,63 @@ const getGradientDirection = (direction) => {
|
|
|
20
20
|
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
{#if gradient.colors[1] !== ""}
|
|
26
|
-
<svg
|
|
27
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
-
style="width: {size}; height: {size};"
|
|
29
|
-
viewBox="0 0 12 12"
|
|
30
|
-
fill="none"
|
|
31
|
-
>
|
|
32
|
-
<g id="id_AddSquare">
|
|
33
|
-
<path
|
|
34
|
-
id="icon_AddSquare"
|
|
35
|
-
d="M5.99995 3.59995L5.99995 5.99995M5.99995 5.99995V8.39995M5.99995 5.99995H8.39995M5.99995 5.99995H3.59995M10.8 2.99995L10.8 9.00001C10.7999 9.99412 9.99406 10.8 8.99995 10.8H2.99995C2.00584 10.8 1.19995 9.99412 1.19995 9.00001V2.99995C1.19995 2.00584 2.00584 1.19995 2.99995 1.19995H8.99995C9.99406 1.19995 10.8 2.00584 10.8 2.99995Z"
|
|
36
|
-
stroke="url(#grad-AddSquare)"
|
|
37
|
-
stroke-width={weight}
|
|
38
|
-
stroke-linecap="round"
|
|
39
|
-
stroke-linejoin="round"
|
|
40
|
-
/>
|
|
41
|
-
</g>
|
|
42
|
-
|
|
43
|
-
<defs>
|
|
44
|
-
<linearGradient
|
|
45
|
-
id="grad-AddSquare"
|
|
46
|
-
x1={getGradientDirection(gradient.direction).x1}
|
|
47
|
-
y1={getGradientDirection(gradient.direction).y1}
|
|
48
|
-
x2={getGradientDirection(gradient.direction).x2}
|
|
49
|
-
y2={getGradientDirection(gradient.direction).y2}
|
|
50
|
-
>
|
|
51
|
-
<stop
|
|
52
|
-
offset="0%"
|
|
53
|
-
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
54
|
-
/>
|
|
55
|
-
<stop
|
|
56
|
-
offset="100%"
|
|
57
|
-
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
58
|
-
/>
|
|
59
|
-
</linearGradient>
|
|
60
|
-
</defs>
|
|
61
|
-
</svg>
|
|
62
|
-
{:else}
|
|
63
|
-
<svg
|
|
64
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
-
style="width: {size}; height: {size};"
|
|
66
|
-
viewBox="0 0 12 12"
|
|
67
|
-
fill="none"
|
|
68
|
-
>
|
|
69
|
-
<g id="id_AddSquare">
|
|
70
|
-
<path
|
|
71
|
-
id="icon_AddSquare"
|
|
72
|
-
d="M5.99995 3.59995L5.99995 5.99995M5.99995 5.99995V8.39995M5.99995 5.99995H8.39995M5.99995 5.99995H3.59995M10.8 2.99995L10.8 9.00001C10.7999 9.99412 9.99406 10.8 8.99995 10.8H2.99995C2.00584 10.8 1.19995 9.99412 1.19995 9.00001V2.99995C1.19995 2.00584 2.00584 1.19995 2.99995 1.19995H8.99995C9.99406 1.19995 10.8 2.00584 10.8 2.99995Z"
|
|
73
|
-
stroke={color}
|
|
74
|
-
stroke-width={weight}
|
|
75
|
-
stroke-linecap="round"
|
|
76
|
-
stroke-linejoin="round"
|
|
77
|
-
/>
|
|
78
|
-
</g>
|
|
79
|
-
</svg>
|
|
80
|
-
{/if}
|
|
81
|
-
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
{#if gradient.colors[1] !== ""}
|
|
26
|
+
<svg
|
|
27
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
+
style="width: {size}; height: {size};"
|
|
29
|
+
viewBox="0 0 12 12"
|
|
30
|
+
fill="none"
|
|
31
|
+
>
|
|
32
|
+
<g id="id_AddSquare">
|
|
33
|
+
<path
|
|
34
|
+
id="icon_AddSquare"
|
|
35
|
+
d="M5.99995 3.59995L5.99995 5.99995M5.99995 5.99995V8.39995M5.99995 5.99995H8.39995M5.99995 5.99995H3.59995M10.8 2.99995L10.8 9.00001C10.7999 9.99412 9.99406 10.8 8.99995 10.8H2.99995C2.00584 10.8 1.19995 9.99412 1.19995 9.00001V2.99995C1.19995 2.00584 2.00584 1.19995 2.99995 1.19995H8.99995C9.99406 1.19995 10.8 2.00584 10.8 2.99995Z"
|
|
36
|
+
stroke="url(#grad-AddSquare)"
|
|
37
|
+
stroke-width={weight}
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"
|
|
40
|
+
/>
|
|
41
|
+
</g>
|
|
42
|
+
|
|
43
|
+
<defs>
|
|
44
|
+
<linearGradient
|
|
45
|
+
id="grad-AddSquare"
|
|
46
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
47
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
48
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
49
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
50
|
+
>
|
|
51
|
+
<stop
|
|
52
|
+
offset="0%"
|
|
53
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
54
|
+
/>
|
|
55
|
+
<stop
|
|
56
|
+
offset="100%"
|
|
57
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
58
|
+
/>
|
|
59
|
+
</linearGradient>
|
|
60
|
+
</defs>
|
|
61
|
+
</svg>
|
|
62
|
+
{:else}
|
|
63
|
+
<svg
|
|
64
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
+
style="width: {size}; height: {size};"
|
|
66
|
+
viewBox="0 0 12 12"
|
|
67
|
+
fill="none"
|
|
68
|
+
>
|
|
69
|
+
<g id="id_AddSquare">
|
|
70
|
+
<path
|
|
71
|
+
id="icon_AddSquare"
|
|
72
|
+
d="M5.99995 3.59995L5.99995 5.99995M5.99995 5.99995V8.39995M5.99995 5.99995H8.39995M5.99995 5.99995H3.59995M10.8 2.99995L10.8 9.00001C10.7999 9.99412 9.99406 10.8 8.99995 10.8H2.99995C2.00584 10.8 1.19995 9.99412 1.19995 9.00001V2.99995C1.19995 2.00584 2.00584 1.19995 2.99995 1.19995H8.99995C9.99406 1.19995 10.8 2.00584 10.8 2.99995Z"
|
|
73
|
+
stroke={color}
|
|
74
|
+
stroke-width={weight}
|
|
75
|
+
stroke-linecap="round"
|
|
76
|
+
stroke-linejoin="round"
|
|
77
|
+
/>
|
|
78
|
+
</g>
|
|
79
|
+
</svg>
|
|
80
|
+
{/if}
|
|
81
|
+
|
|
82
82
|
|
|
@@ -1,22 +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 AddSquareIconProps = typeof __propDef.props;
|
|
18
|
-
export type AddSquareIconEvents = typeof __propDef.events;
|
|
19
|
-
export type AddSquareIconSlots = typeof __propDef.slots;
|
|
20
|
-
export default class AddSquareIcon extends SvelteComponent<AddSquareIconProps, AddSquareIconEvents, AddSquareIconSlots> {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
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 AddSquareIconProps = typeof __propDef.props;
|
|
18
|
+
export type AddSquareIconEvents = typeof __propDef.events;
|
|
19
|
+
export type AddSquareIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class AddSquareIcon extends SvelteComponent<AddSquareIconProps, AddSquareIconEvents, AddSquareIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
<script>export let color = "#000";
|
|
3
3
|
export let gradient = {
|
|
4
4
|
colors: ["", ""],
|
|
@@ -20,63 +20,63 @@ const getGradientDirection = (direction) => {
|
|
|
20
20
|
return { x1: "0%", y1: "0%", x2: "0%", y2: "100%" };
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
{#if gradient.colors[1] !== ""}
|
|
26
|
-
<svg
|
|
27
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
-
style="width: {size}; height: {size};"
|
|
29
|
-
viewBox="0 0 16 16"
|
|
30
|
-
fill="none"
|
|
31
|
-
>
|
|
32
|
-
<g id="id_AlertCircle">
|
|
33
|
-
<path
|
|
34
|
-
id="icon_AlertCircle"
|
|
35
|
-
d="M8.00001 8V4.8M8.00001 10.3719V10.4M14.4 8C14.4 11.5346 11.5346 14.4 8.00001 14.4C4.46538 14.4 1.60001 11.5346 1.60001 8C1.60001 4.46538 4.46538 1.6 8.00001 1.6C11.5346 1.6 14.4 4.46538 14.4 8Z"
|
|
36
|
-
stroke="url(#grad-AlertCircle)"
|
|
37
|
-
stroke-width={weight}
|
|
38
|
-
stroke-linecap="round"
|
|
39
|
-
stroke-linejoin="round"
|
|
40
|
-
/>
|
|
41
|
-
</g>
|
|
42
|
-
|
|
43
|
-
<defs>
|
|
44
|
-
<linearGradient
|
|
45
|
-
id="grad-AlertCircle"
|
|
46
|
-
x1={getGradientDirection(gradient.direction).x1}
|
|
47
|
-
y1={getGradientDirection(gradient.direction).y1}
|
|
48
|
-
x2={getGradientDirection(gradient.direction).x2}
|
|
49
|
-
y2={getGradientDirection(gradient.direction).y2}
|
|
50
|
-
>
|
|
51
|
-
<stop
|
|
52
|
-
offset="0%"
|
|
53
|
-
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
54
|
-
/>
|
|
55
|
-
<stop
|
|
56
|
-
offset="100%"
|
|
57
|
-
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
58
|
-
/>
|
|
59
|
-
</linearGradient>
|
|
60
|
-
</defs>
|
|
61
|
-
</svg>
|
|
62
|
-
{:else}
|
|
63
|
-
<svg
|
|
64
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
-
style="width: {size}; height: {size};"
|
|
66
|
-
viewBox="0 0 16 16"
|
|
67
|
-
fill="none"
|
|
68
|
-
>
|
|
69
|
-
<g id="id_AlertCircle">
|
|
70
|
-
<path
|
|
71
|
-
id="icon_AlertCircle"
|
|
72
|
-
d="M8.00001 8V4.8M8.00001 10.3719V10.4M14.4 8C14.4 11.5346 11.5346 14.4 8.00001 14.4C4.46538 14.4 1.60001 11.5346 1.60001 8C1.60001 4.46538 4.46538 1.6 8.00001 1.6C11.5346 1.6 14.4 4.46538 14.4 8Z"
|
|
73
|
-
stroke={color}
|
|
74
|
-
stroke-width={weight}
|
|
75
|
-
stroke-linecap="round"
|
|
76
|
-
stroke-linejoin="round"
|
|
77
|
-
/>
|
|
78
|
-
</g>
|
|
79
|
-
</svg>
|
|
80
|
-
{/if}
|
|
81
|
-
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
{#if gradient.colors[1] !== ""}
|
|
26
|
+
<svg
|
|
27
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
+
style="width: {size}; height: {size};"
|
|
29
|
+
viewBox="0 0 16 16"
|
|
30
|
+
fill="none"
|
|
31
|
+
>
|
|
32
|
+
<g id="id_AlertCircle">
|
|
33
|
+
<path
|
|
34
|
+
id="icon_AlertCircle"
|
|
35
|
+
d="M8.00001 8V4.8M8.00001 10.3719V10.4M14.4 8C14.4 11.5346 11.5346 14.4 8.00001 14.4C4.46538 14.4 1.60001 11.5346 1.60001 8C1.60001 4.46538 4.46538 1.6 8.00001 1.6C11.5346 1.6 14.4 4.46538 14.4 8Z"
|
|
36
|
+
stroke="url(#grad-AlertCircle)"
|
|
37
|
+
stroke-width={weight}
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"
|
|
40
|
+
/>
|
|
41
|
+
</g>
|
|
42
|
+
|
|
43
|
+
<defs>
|
|
44
|
+
<linearGradient
|
|
45
|
+
id="grad-AlertCircle"
|
|
46
|
+
x1={getGradientDirection(gradient.direction).x1}
|
|
47
|
+
y1={getGradientDirection(gradient.direction).y1}
|
|
48
|
+
x2={getGradientDirection(gradient.direction).x2}
|
|
49
|
+
y2={getGradientDirection(gradient.direction).y2}
|
|
50
|
+
>
|
|
51
|
+
<stop
|
|
52
|
+
offset="0%"
|
|
53
|
+
style="stop-color:{gradient.colors[0]};stop-opacity:1"
|
|
54
|
+
/>
|
|
55
|
+
<stop
|
|
56
|
+
offset="100%"
|
|
57
|
+
style="stop-color:{gradient.colors[1]};stop-opacity:1"
|
|
58
|
+
/>
|
|
59
|
+
</linearGradient>
|
|
60
|
+
</defs>
|
|
61
|
+
</svg>
|
|
62
|
+
{:else}
|
|
63
|
+
<svg
|
|
64
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
+
style="width: {size}; height: {size};"
|
|
66
|
+
viewBox="0 0 16 16"
|
|
67
|
+
fill="none"
|
|
68
|
+
>
|
|
69
|
+
<g id="id_AlertCircle">
|
|
70
|
+
<path
|
|
71
|
+
id="icon_AlertCircle"
|
|
72
|
+
d="M8.00001 8V4.8M8.00001 10.3719V10.4M14.4 8C14.4 11.5346 11.5346 14.4 8.00001 14.4C4.46538 14.4 1.60001 11.5346 1.60001 8C1.60001 4.46538 4.46538 1.6 8.00001 1.6C11.5346 1.6 14.4 4.46538 14.4 8Z"
|
|
73
|
+
stroke={color}
|
|
74
|
+
stroke-width={weight}
|
|
75
|
+
stroke-linecap="round"
|
|
76
|
+
stroke-linejoin="round"
|
|
77
|
+
/>
|
|
78
|
+
</g>
|
|
79
|
+
</svg>
|
|
80
|
+
{/if}
|
|
81
|
+
|
|
82
82
|
|
|
@@ -1,22 +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 AlertCircleIconProps = typeof __propDef.props;
|
|
18
|
-
export type AlertCircleIconEvents = typeof __propDef.events;
|
|
19
|
-
export type AlertCircleIconSlots = typeof __propDef.slots;
|
|
20
|
-
export default class AlertCircleIcon extends SvelteComponent<AlertCircleIconProps, AlertCircleIconEvents, AlertCircleIconSlots> {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
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 AlertCircleIconProps = typeof __propDef.props;
|
|
18
|
+
export type AlertCircleIconEvents = typeof __propDef.events;
|
|
19
|
+
export type AlertCircleIconSlots = typeof __propDef.slots;
|
|
20
|
+
export default class AlertCircleIcon extends SvelteComponent<AlertCircleIconProps, AlertCircleIconEvents, AlertCircleIconSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|