@netless/fastboard-ui 0.3.2-canary.5 → 0.3.3

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 (110) hide show
  1. package/LICENSE.txt +21 -21
  2. package/README.md +7 -7
  3. package/dist/index.d.ts +102 -102
  4. package/dist/index.js +30 -23
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +30 -23
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/index.svelte.mjs +22 -17
  9. package/dist/index.svelte.mjs.map +1 -1
  10. package/package.json +4 -5
  11. package/src/actions/height.ts +43 -43
  12. package/src/actions/scroll.ts +31 -31
  13. package/src/actions/tippy.ts +71 -71
  14. package/src/behaviors/apps.ts +74 -74
  15. package/src/behaviors/index.ts +1 -1
  16. package/src/components/Button/Button.svelte +51 -51
  17. package/src/components/Button/Button.svelte.d.ts +26 -26
  18. package/src/components/Button/index.ts +2 -2
  19. package/src/components/Fastboard/Fastboard.scss +61 -61
  20. package/src/components/Fastboard/Fastboard.svelte +80 -80
  21. package/src/components/Fastboard/Fastboard.svelte.ts +14 -14
  22. package/src/components/Fastboard/ReplayFastboard.svelte +43 -43
  23. package/src/components/Fastboard/ReplayFastboard.svelte.ts +13 -13
  24. package/src/components/Fastboard/index.ts +5 -5
  25. package/src/components/Icon/Icon.svelte +11 -11
  26. package/src/components/Icon/Icon.svelte.d.ts +10 -10
  27. package/src/components/Icon/index.ts +2 -2
  28. package/src/components/Icons/Apps.svelte +49 -49
  29. package/src/components/Icons/Arrow.svelte +16 -16
  30. package/src/components/Icons/ArrowBolded.svelte +17 -17
  31. package/src/components/Icons/Balloon.svelte +16 -16
  32. package/src/components/Icons/BalloonBolded.svelte +16 -16
  33. package/src/components/Icons/Circle.svelte +20 -20
  34. package/src/components/Icons/CircleBolded.svelte +20 -20
  35. package/src/components/Icons/Clean.svelte +14 -14
  36. package/src/components/Icons/Clear.svelte +16 -16
  37. package/src/components/Icons/Click.svelte +16 -16
  38. package/src/components/Icons/ClickFilled.svelte +10 -10
  39. package/src/components/Icons/Diamond.svelte +16 -16
  40. package/src/components/Icons/Down.svelte +16 -16
  41. package/src/components/Icons/Eraser.svelte +16 -16
  42. package/src/components/Icons/EraserFilled.svelte +16 -16
  43. package/src/components/Icons/Icons.scss +20 -20
  44. package/src/components/Icons/Left.svelte +16 -16
  45. package/src/components/Icons/Line.svelte +16 -16
  46. package/src/components/Icons/LineBolded.svelte +16 -16
  47. package/src/components/Icons/Loading.svelte +10 -10
  48. package/src/components/Icons/Minus.svelte +16 -16
  49. package/src/components/Icons/Pause.svelte +10 -10
  50. package/src/components/Icons/Pencil.svelte +29 -29
  51. package/src/components/Icons/PencilFilled.svelte +16 -16
  52. package/src/components/Icons/Play.svelte +10 -10
  53. package/src/components/Icons/Plus.svelte +16 -16
  54. package/src/components/Icons/Rectangle.svelte +16 -16
  55. package/src/components/Icons/RectangleBolded.svelte +16 -16
  56. package/src/components/Icons/Redo.svelte +15 -15
  57. package/src/components/Icons/Reset.svelte +26 -26
  58. package/src/components/Icons/Rhombus.svelte +16 -16
  59. package/src/components/Icons/RhombusBolded.svelte +16 -16
  60. package/src/components/Icons/Right.svelte +16 -16
  61. package/src/components/Icons/Selector.svelte +24 -24
  62. package/src/components/Icons/SelectorFilled.svelte +18 -18
  63. package/src/components/Icons/SpeechBalloon.svelte +16 -16
  64. package/src/components/Icons/Star.svelte +16 -16
  65. package/src/components/Icons/StarBolded.svelte +16 -16
  66. package/src/components/Icons/Text.svelte +16 -16
  67. package/src/components/Icons/TextFilled.svelte +17 -17
  68. package/src/components/Icons/Triangle.svelte +16 -16
  69. package/src/components/Icons/TriangleBolded.svelte +16 -16
  70. package/src/components/Icons/Undo.svelte +15 -15
  71. package/src/components/Icons/Up.svelte +16 -16
  72. package/src/components/Icons/WhiteboardAdd.svelte +34 -34
  73. package/src/components/Icons/index.ts +93 -93
  74. package/src/components/PageControl/PageControl.scss +15 -15
  75. package/src/components/PageControl/PageControl.svelte +79 -79
  76. package/src/components/PageControl/PageControl.svelte.d.ts +13 -13
  77. package/src/components/PageControl/index.ts +2 -2
  78. package/src/components/PlayerControl/PlayerControl.scss +57 -57
  79. package/src/components/PlayerControl/PlayerControl.svelte +153 -153
  80. package/src/components/PlayerControl/PlayerControl.svelte.d.ts +13 -13
  81. package/src/components/PlayerControl/index.ts +2 -2
  82. package/src/components/RedoUndo/RedoUndo.scss +11 -11
  83. package/src/components/RedoUndo/RedoUndo.svelte +60 -60
  84. package/src/components/RedoUndo/RedoUndo.svelte.d.ts +13 -13
  85. package/src/components/RedoUndo/index.ts +2 -2
  86. package/src/components/Toolbar/README.md +57 -57
  87. package/src/components/Toolbar/Toolbar.scss +78 -78
  88. package/src/components/Toolbar/Toolbar.svelte +62 -62
  89. package/src/components/Toolbar/Toolbar.svelte.d.ts +13 -13
  90. package/src/components/Toolbar/components/Contents.scss +168 -168
  91. package/src/components/Toolbar/components/Contents.svelte +202 -197
  92. package/src/components/Toolbar/components/Shapes.svelte +85 -85
  93. package/src/components/Toolbar/components/Slider.scss +119 -119
  94. package/src/components/Toolbar/components/Slider.svelte +54 -54
  95. package/src/components/Toolbar/components/StrokeColor.svelte +39 -39
  96. package/src/components/Toolbar/components/StrokeWidth.svelte +20 -20
  97. package/src/components/Toolbar/components/TextColor.svelte +39 -39
  98. package/src/components/Toolbar/components/constants.ts +80 -80
  99. package/src/components/Toolbar/components/helper.ts +24 -24
  100. package/src/components/Toolbar/index.ts +2 -2
  101. package/src/components/ZoomControl/ZoomControl.scss +15 -15
  102. package/src/components/ZoomControl/ZoomControl.svelte +99 -99
  103. package/src/components/ZoomControl/ZoomControl.svelte.d.ts +13 -13
  104. package/src/components/ZoomControl/index.ts +2 -2
  105. package/src/components/helpers.ts +3 -3
  106. package/src/components/theme.scss +92 -92
  107. package/src/components/variables.scss +69 -69
  108. package/src/index.ts +13 -13
  109. package/src/style.scss +36 -36
  110. package/src/typings.ts +38 -38
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- stroke="#5D6066"
11
- stroke-linejoin="round"
12
- stroke-width="1.25"
13
- d="M19 7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2v3l2.414-2.414A2 2 0 0 1 12.828 16H17a2 2 0 0 0 2-2V7Z"
14
- class="fastboard-icon-stroke-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ stroke="#5D6066"
11
+ stroke-linejoin="round"
12
+ stroke-width="1.25"
13
+ d="M19 7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2v3l2.414-2.414A2 2 0 0 1 12.828 16H17a2 2 0 0 0 2-2V7Z"
14
+ class="fastboard-icon-stroke-color"
15
+ />
16
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- stroke="#5D6066"
11
- stroke-linejoin="round"
12
- stroke-width="1.75"
13
- d="M19 7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2v3l2.414-2.414A2 2 0 0 1 12.828 16H17a2 2 0 0 0 2-2V7Z"
14
- class="fastboard-icon-stroke-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ stroke="#5D6066"
11
+ stroke-linejoin="round"
12
+ stroke-width="1.75"
13
+ d="M19 7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2v3l2.414-2.414A2 2 0 0 1 12.828 16H17a2 2 0 0 0 2-2V7Z"
14
+ class="fastboard-icon-stroke-color"
15
+ />
16
+ </svg>
@@ -1,20 +1,20 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <rect
10
- width="16"
11
- height="16"
12
- x="4"
13
- y="4"
14
- stroke="#5D6066"
15
- stroke-linejoin="round"
16
- stroke-width="1.25"
17
- rx="8"
18
- class="fastboard-icon-stroke-color"
19
- />
20
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <rect
10
+ width="16"
11
+ height="16"
12
+ x="4"
13
+ y="4"
14
+ stroke="#5D6066"
15
+ stroke-linejoin="round"
16
+ stroke-width="1.25"
17
+ rx="8"
18
+ class="fastboard-icon-stroke-color"
19
+ />
20
+ </svg>
@@ -1,20 +1,20 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <rect
10
- width="16"
11
- height="16"
12
- x="4"
13
- y="4"
14
- stroke="#5D6066"
15
- stroke-linejoin="round"
16
- stroke-width="1.75"
17
- rx="8"
18
- class="fastboard-icon-stroke-color"
19
- />
20
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <rect
10
+ width="16"
11
+ height="16"
12
+ x="4"
13
+ y="4"
14
+ stroke="#5D6066"
15
+ stroke-linejoin="round"
16
+ stroke-width="1.75"
17
+ rx="8"
18
+ class="fastboard-icon-stroke-color"
19
+ />
20
+ </svg>
@@ -1,14 +1,14 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- fill="#5D6066"
11
- d="M9.754 11.99c0 1.856-.711 3.62-1.96 4.951l-.151.155h1.403l.855-.853h.707l.853.853h2.635l.094-.064a6.237 6.237 0 0 0 2.559-4.781l.005-.26h1a7.237 7.237 0 0 1-2.994 5.862l-.229.16-.277.083h-3l-.353-.146-.647-.647-.646.647-.354.146h-3l-.286-.91.214-.148a6.237 6.237 0 0 0 2.567-4.787l.005-.26h1Zm4.772-6.502v2l.35.039a2.98 2.98 0 0 1 2.644 2.78l.006.181h-8a2.98 2.98 0 0 1 2.65-2.961l.35-.039v-2h2Z"
12
- class="fastboard-icon-fill-color"
13
- />
14
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ fill="#5D6066"
11
+ d="M9.754 11.99c0 1.856-.711 3.62-1.96 4.951l-.151.155h1.403l.855-.853h.707l.853.853h2.635l.094-.064a6.237 6.237 0 0 0 2.559-4.781l.005-.26h1a7.237 7.237 0 0 1-2.994 5.862l-.229.16-.277.083h-3l-.353-.146-.647-.647-.646.647-.354.146h-3l-.286-.91.214-.148a6.237 6.237 0 0 0 2.567-4.787l.005-.26h1Zm4.772-6.502v2l.35.039a2.98 2.98 0 0 1 2.644 2.78l.006.181h-8a2.98 2.98 0 0 1 2.65-2.961l.35-.039v-2h2Z"
12
+ class="fastboard-icon-fill-color"
13
+ />
14
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- stroke="#5D6066"
11
- stroke-linejoin="round"
12
- stroke-width="1.25"
13
- d="m17.95 4.636-2.83 2.828-1.413-1.414a2 2 0 0 0-2.829 0l-.707.707 7.071 7.071.707-.707a2 2 0 0 0 0-2.828l-1.414-1.414 2.829-2.829-1.415-1.414Zm-1.415 9.9-5.656 5.656-.707-.707 1.767-3.182-3.182 1.768.707-2.121-2.121.707 1.768-3.182-3.182 1.768.707-2.122-2.121.707-.707-.707 5.656-5.657"
14
- class="fastboard-icon-stroke-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ stroke="#5D6066"
11
+ stroke-linejoin="round"
12
+ stroke-width="1.25"
13
+ d="m17.95 4.636-2.83 2.828-1.413-1.414a2 2 0 0 0-2.829 0l-.707.707 7.071 7.071.707-.707a2 2 0 0 0 0-2.828l-1.414-1.414 2.829-2.829-1.415-1.414Zm-1.415 9.9-5.656 5.656-.707-.707 1.767-3.182-3.182 1.768.707-2.121-2.121.707 1.768-3.182-3.182 1.768.707-2.122-2.121.707-.707-.707 5.656-5.657"
14
+ class="fastboard-icon-stroke-color"
15
+ />
16
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- stroke="#5D6066"
11
- stroke-linejoin="round"
12
- stroke-width="1.25"
13
- d="M10 18 6 6l12 4-6 2-2 6Z"
14
- class="fastboard-icon-stroke-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ stroke="#5D6066"
11
+ stroke-linejoin="round"
12
+ stroke-width="1.25"
13
+ d="M10 18 6 6l12 4-6 2-2 6Z"
14
+ class="fastboard-icon-stroke-color"
15
+ />
16
+ </svg>
@@ -1,10 +1,10 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path fill="#5D6066" d="M10 18 6 6l12 4-6 2-2 6Z" class="fastboard-icon-fill-color" />
10
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path fill="#5D6066" d="M10 18 6 6l12 4-6 2-2 6Z" class="fastboard-icon-fill-color" />
10
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- class="fastboard-icon-stroke-color"
11
- d="M4.222 12 12 4.222 19.778 12 12 19.778z"
12
- stroke="#5D6066"
13
- stroke-linejoin="round"
14
- stroke-width="1.25"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ class="fastboard-icon-stroke-color"
11
+ d="M4.222 12 12 4.222 19.778 12 12 19.778z"
12
+ stroke="#5D6066"
13
+ stroke-linejoin="round"
14
+ stroke-width="1.25"
15
+ />
16
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- class="fastboard-icon-stroke-color"
11
- d="m16 10-2 2-2 2-2-2-2-2"
12
- stroke="#5D6066"
13
- stroke-linejoin="round"
14
- stroke-width="1.25"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ class="fastboard-icon-stroke-color"
11
+ d="m16 10-2 2-2 2-2-2-2-2"
12
+ stroke="#5D6066"
13
+ stroke-linejoin="round"
14
+ stroke-width="1.25"
15
+ />
16
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- stroke="#5D6066"
11
- stroke-linejoin="round"
12
- stroke-width="1.25"
13
- d="M13.414 4.929a2 2 0 0 1 2.829 0l2.828 2.828a2 2 0 0 1 0 2.829L12 17.656a4 4 0 0 1-5.657 0L4.93 16.244a2 2 0 0 1 0-2.829l8.485-8.485ZM12 6.343 17.657 12m-1.414-7.071-2.829 2.828m4.243-1.414-2.829 2.829m4.243-1.415-2.828 2.829"
14
- class="fastboard-icon-stroke-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ stroke="#5D6066"
11
+ stroke-linejoin="round"
12
+ stroke-width="1.25"
13
+ d="M13.414 4.929a2 2 0 0 1 2.829 0l2.828 2.828a2 2 0 0 1 0 2.829L12 17.656a4 4 0 0 1-5.657 0L4.93 16.244a2 2 0 0 1 0-2.829l8.485-8.485ZM12 6.343 17.657 12m-1.414-7.071-2.829 2.828m4.243-1.414-2.829 2.829m4.243-1.415-2.828 2.829"
14
+ class="fastboard-icon-stroke-color"
15
+ />
16
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- fill="#5D6066"
11
- fill-rule="evenodd"
12
- d="M16.242 4.929a2 2 0 0 0-2.828 0L4.93 13.414a2 2 0 0 0 0 2.829l1.414 1.414a4 4 0 0 0 5.657 0l5.215-5.215-5.657-5.657.884-.884 5.657 5.657.972-.972a2 2 0 0 0 0-2.829l-2.83-2.827Z"
13
- clip-rule="evenodd"
14
- class="fastboard-icon-fill-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ fill="#5D6066"
11
+ fill-rule="evenodd"
12
+ d="M16.242 4.929a2 2 0 0 0-2.828 0L4.93 13.414a2 2 0 0 0 0 2.829l1.414 1.414a4 4 0 0 0 5.657 0l5.215-5.215-5.657-5.657.884-.884 5.657 5.657.972-.972a2 2 0 0 0 0-2.829l-2.83-2.827Z"
13
+ clip-rule="evenodd"
14
+ class="fastboard-icon-fill-color"
15
+ />
16
+ </svg>
@@ -1,20 +1,20 @@
1
- @import "../theme.scss";
2
-
3
- @each $name, $theme in $themes {
4
- .fastboard-icon.#{$name} {
5
- .fastboard-icon-stroke-color {
6
- stroke: read($theme, "color");
7
- }
8
- .fastboard-icon-fill-color {
9
- fill: read($theme, "color");
10
- }
11
- &.is-active {
12
- .fastboard-icon-stroke-color {
13
- stroke: read($theme, "active-color");
14
- }
15
- .fastboard-icon-fill-color {
16
- fill: read($theme, "active-color");
17
- }
18
- }
19
- }
20
- }
1
+ @import "../theme.scss";
2
+
3
+ @each $name, $theme in $themes {
4
+ .fastboard-icon.#{$name} {
5
+ .fastboard-icon-stroke-color {
6
+ stroke: read($theme, "color");
7
+ }
8
+ .fastboard-icon-fill-color {
9
+ fill: read($theme, "color");
10
+ }
11
+ &.is-active {
12
+ .fastboard-icon-stroke-color {
13
+ stroke: read($theme, "active-color");
14
+ }
15
+ .fastboard-icon-fill-color {
16
+ fill: read($theme, "active-color");
17
+ }
18
+ }
19
+ }
20
+ }
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- d="m14 8-2 2-2 2 2 2 2 2"
11
- class="fastboard-icon-stroke-color"
12
- stroke="#5D6066"
13
- stroke-linejoin="round"
14
- stroke-width="1.25"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ d="m14 8-2 2-2 2 2 2 2 2"
11
+ class="fastboard-icon-stroke-color"
12
+ stroke="#5D6066"
13
+ stroke-linejoin="round"
14
+ stroke-width="1.25"
15
+ />
16
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- stroke="#5D6066"
11
- stroke-linejoin="round"
12
- stroke-width="1.25"
13
- d="M5 19 19 5"
14
- class="fastboard-icon-stroke-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ stroke="#5D6066"
11
+ stroke-linejoin="round"
12
+ stroke-width="1.25"
13
+ d="M5 19 19 5"
14
+ class="fastboard-icon-stroke-color"
15
+ />
16
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- stroke="#5D6066"
11
- stroke-linejoin="round"
12
- stroke-width="1.75"
13
- d="M5 19 19 5"
14
- class="fastboard-icon-stroke-color"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ stroke="#5D6066"
11
+ stroke-linejoin="round"
12
+ stroke-width="1.75"
13
+ d="M5 19 19 5"
14
+ class="fastboard-icon-stroke-color"
15
+ />
16
+ </svg>
@@ -1,10 +1,10 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path fill="#5D6066" d="M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8z" class="fastboard-icon-fill-color" />
10
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path fill="#5D6066" d="M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8z" class="fastboard-icon-fill-color" />
10
+ </svg>
@@ -1,16 +1,16 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path
10
- d="M5 12h14"
11
- class="fastboard-icon-stroke-color"
12
- stroke="#5D6066"
13
- stroke-linejoin="round"
14
- stroke-width="1.25"
15
- />
16
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path
10
+ d="M5 12h14"
11
+ class="fastboard-icon-stroke-color"
12
+ stroke="#5D6066"
13
+ stroke-linejoin="round"
14
+ stroke-width="1.25"
15
+ />
16
+ </svg>
@@ -1,10 +1,10 @@
1
- <script lang="ts">
2
- import type { Theme } from "../../typings";
3
-
4
- export let theme: Theme = "light";
5
- export let active = false;
6
- </script>
7
-
8
- <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
- <path fill="#5D6066" d="M14 19h4V5h-4M6 19h4V5H6v14z" class="fastboard-icon-fill-color" />
10
- </svg>
1
+ <script lang="ts">
2
+ import type { Theme } from "../../typings";
3
+
4
+ export let theme: Theme = "light";
5
+ export let active = false;
6
+ </script>
7
+
8
+ <svg fill="none" viewBox="0 0 24 24" class="fastboard-icon {theme}" class:is-active={active}>
9
+ <path fill="#5D6066" d="M14 19h4V5h-4M6 19h4V5H6v14z" class="fastboard-icon-fill-color" />
10
+ </svg>