@websline/system-components 0.0.1

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 (84) hide show
  1. package/README.md +0 -0
  2. package/dist/components/atoms/avatar/Avatar.svelte +78 -0
  3. package/dist/components/atoms/avatar/Avatar.svelte.d.ts +65 -0
  4. package/dist/components/atoms/avatar/avatar.variants.d.ts +37 -0
  5. package/dist/components/atoms/avatar/avatar.variants.js +20 -0
  6. package/dist/components/atoms/closeButton/CloseButton.svelte +92 -0
  7. package/dist/components/atoms/closeButton/CloseButton.svelte.d.ts +25 -0
  8. package/dist/components/atoms/closeButton/closeButton.variants.d.ts +37 -0
  9. package/dist/components/atoms/closeButton/closeButton.variants.js +21 -0
  10. package/dist/components/atoms/form/button/Button.svelte +67 -0
  11. package/dist/components/atoms/form/button/Button.svelte.d.ts +81 -0
  12. package/dist/components/atoms/form/button/button.variants.d.ts +58 -0
  13. package/dist/components/atoms/form/button/button.variants.js +82 -0
  14. package/dist/components/atoms/form/formField/FormField.svelte +69 -0
  15. package/dist/components/atoms/form/formField/FormField.svelte.d.ts +73 -0
  16. package/dist/components/atoms/form/helperText/HelperText.svelte +18 -0
  17. package/dist/components/atoms/form/helperText/HelperText.svelte.d.ts +15 -0
  18. package/dist/components/atoms/form/iconButton/IconButton.svelte +69 -0
  19. package/dist/components/atoms/form/iconButton/IconButton.svelte.d.ts +89 -0
  20. package/dist/components/atoms/form/iconButton/iconButton.variants.d.ts +64 -0
  21. package/dist/components/atoms/form/iconButton/iconButton.variants.js +91 -0
  22. package/dist/components/atoms/form/input/Input.svelte +65 -0
  23. package/dist/components/atoms/form/input/Input.svelte.d.ts +89 -0
  24. package/dist/components/atoms/form/input/input.variants.d.ts +22 -0
  25. package/dist/components/atoms/form/input/input.variants.js +15 -0
  26. package/dist/components/atoms/form/label/Label.svelte +36 -0
  27. package/dist/components/atoms/form/label/Label.svelte.d.ts +41 -0
  28. package/dist/components/atoms/form/textarea/Textarea.svelte +64 -0
  29. package/dist/components/atoms/form/textarea/Textarea.svelte.d.ts +89 -0
  30. package/dist/components/atoms/form/textarea/textarea.variants.d.ts +37 -0
  31. package/dist/components/atoms/form/textarea/textarea.variants.js +20 -0
  32. package/dist/components/atoms/icon/Icon.svelte +41 -0
  33. package/dist/components/atoms/icon/Icon.svelte.d.ts +21 -0
  34. package/dist/components/atoms/icon/components/Academy.svelte +27 -0
  35. package/dist/components/atoms/icon/components/Academy.svelte.d.ts +41 -0
  36. package/dist/components/atoms/icon/components/Bold.svelte +27 -0
  37. package/dist/components/atoms/icon/components/Bold.svelte.d.ts +41 -0
  38. package/dist/components/atoms/icon/components/Close.svelte +27 -0
  39. package/dist/components/atoms/icon/components/Close.svelte.d.ts +41 -0
  40. package/dist/components/atoms/icon/components/Italic.svelte +27 -0
  41. package/dist/components/atoms/icon/components/Italic.svelte.d.ts +41 -0
  42. package/dist/components/atoms/icon/components/Link.svelte +27 -0
  43. package/dist/components/atoms/icon/components/Link.svelte.d.ts +41 -0
  44. package/dist/components/atoms/icon/components/ListOrdered.svelte +27 -0
  45. package/dist/components/atoms/icon/components/ListOrdered.svelte.d.ts +41 -0
  46. package/dist/components/atoms/icon/components/ListUnordered.svelte +26 -0
  47. package/dist/components/atoms/icon/components/ListUnordered.svelte.d.ts +41 -0
  48. package/dist/components/atoms/icon/components/Refresh.svelte +27 -0
  49. package/dist/components/atoms/icon/components/Refresh.svelte.d.ts +41 -0
  50. package/dist/components/atoms/icon/components/Underline.svelte +26 -0
  51. package/dist/components/atoms/icon/components/Underline.svelte.d.ts +41 -0
  52. package/dist/components/atoms/icon/index.d.ts +20 -0
  53. package/dist/components/atoms/icon/index.js +21 -0
  54. package/dist/components/atoms/loading/spinner/Spinner.svelte +40 -0
  55. package/dist/components/atoms/loading/spinner/Spinner.svelte.d.ts +25 -0
  56. package/dist/components/molecules/notification/Notification.svelte +42 -0
  57. package/dist/components/molecules/notification/Notification.svelte.d.ts +57 -0
  58. package/dist/components/molecules/notification/notification.variants.d.ts +67 -0
  59. package/dist/components/molecules/notification/notification.variants.js +30 -0
  60. package/dist/components/molecules/richTextEditor/RichTextEditor.svelte +144 -0
  61. package/dist/components/molecules/richTextEditor/RichTextEditor.svelte.d.ts +87 -0
  62. package/dist/components/molecules/richTextEditor/RichTextEditorToolbar.svelte +5 -0
  63. package/dist/components/molecules/richTextEditor/RichTextEditorToolbar.svelte.d.ts +11 -0
  64. package/dist/components/molecules/richTextEditor/richTextEditor.variants.d.ts +64 -0
  65. package/dist/components/molecules/richTextEditor/richTextEditor.variants.js +30 -0
  66. package/dist/components/molecules/toggleGroup/ToggleGroup.svelte +61 -0
  67. package/dist/components/molecules/toggleGroup/ToggleGroup.svelte.d.ts +49 -0
  68. package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte +47 -0
  69. package/dist/components/molecules/toggleGroup/ToggleGroupItem.svelte.d.ts +25 -0
  70. package/dist/components/molecules/toggleGroup/toggleGroup.variants.d.ts +35 -0
  71. package/dist/components/molecules/toggleGroup/toggleGroup.variants.js +21 -0
  72. package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.d.ts +110 -0
  73. package/dist/components/molecules/toggleGroup/toggleGroupItem.variants.js +69 -0
  74. package/dist/components/organisms/notificationGroup/NotificationGroup.svelte +68 -0
  75. package/dist/components/organisms/notificationGroup/NotificationGroup.svelte.d.ts +6 -0
  76. package/dist/components/organisms/notificationGroup/notificationGroup.variants.d.ts +24 -0
  77. package/dist/components/organisms/notificationGroup/notificationGroup.variants.js +11 -0
  78. package/dist/index.d.ts +17 -0
  79. package/dist/index.js +32 -0
  80. package/dist/utils/index.d.ts +1 -0
  81. package/dist/utils/index.js +1 -0
  82. package/dist/utils/notification.d.ts +1 -0
  83. package/dist/utils/notification.js +11 -0
  84. package/package.json +95 -0
@@ -0,0 +1,36 @@
1
+ <script>
2
+ import { tv } from "tailwind-variants";
3
+
4
+ /**
5
+ * @typedef {Object} Props
6
+ * @property {string} [children] The content of the label
7
+ * @property {string} [class=""] Additional CSS classes to apply to the component
8
+ * @property {boolean} [error=false] Whether the label is in an error state
9
+ * @property {boolean} [hidden=false] Whether the label should be visually hidden
10
+ */
11
+
12
+ /** @type {Props} */
13
+ let {
14
+ children,
15
+ class: className = "",
16
+ hidden = false,
17
+ error = false,
18
+ ...rest
19
+ } = $props();
20
+
21
+ const labelVariants = tv({
22
+ base: "body-small text-neutral-500",
23
+ variants: {
24
+ error: {
25
+ true: "text-red-500",
26
+ },
27
+ hidden: {
28
+ true: "sr-only",
29
+ },
30
+ },
31
+ });
32
+ </script>
33
+
34
+ <label class={labelVariants({ class: className, hidden, error })} {...rest}>
35
+ {@render children?.()}
36
+ </label>
@@ -0,0 +1,41 @@
1
+ export default Label;
2
+ type Label = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<Props>): void;
5
+ };
6
+ declare const Label: import("svelte").Component<{
7
+ /**
8
+ * The content of the label
9
+ */
10
+ children?: string;
11
+ /**
12
+ * Additional CSS classes to apply to the component
13
+ */
14
+ class?: string;
15
+ /**
16
+ * Whether the label is in an error state
17
+ */
18
+ error?: boolean;
19
+ /**
20
+ * Whether the label should be visually hidden
21
+ */
22
+ hidden?: boolean;
23
+ }, {}, "">;
24
+ type Props = {
25
+ /**
26
+ * The content of the label
27
+ */
28
+ children?: string;
29
+ /**
30
+ * Additional CSS classes to apply to the component
31
+ */
32
+ class?: string;
33
+ /**
34
+ * Whether the label is in an error state
35
+ */
36
+ error?: boolean;
37
+ /**
38
+ * Whether the label should be visually hidden
39
+ */
40
+ hidden?: boolean;
41
+ };
@@ -0,0 +1,64 @@
1
+ <script>
2
+ import { getContext } from "svelte";
3
+ import { textareaVariants } from "./textarea.variants.js";
4
+
5
+ /**
6
+ * @typedef {Object} Props
7
+ * @property {string} [class=""] Additional CSS classes to apply to the component
8
+ * @property {boolean} [disabled=false] Whether the textarea is disabled
9
+ * @property {boolean} [error=false] Whether the textarea has an error state
10
+ * @property {string} [id=""] The ID of the textarea element
11
+ * @property {string} [name] The name of the textarea, used for form submission
12
+ * @property {string} [placeholder=""] Placeholder text for the textarea
13
+ * @property {boolean} [readonly=false] Whether the textarea is read-only
14
+ * @property {boolean} [required=false] Whether the textarea is required
15
+ * @property {"small" | "medium" | "large"} [size="medium"] Textarea size
16
+ * @property {string} [value=""] The value of the textarea, bound to the component
17
+ */
18
+
19
+ /** @type {Props} */
20
+ let {
21
+ class: className = "",
22
+ disabled = false,
23
+ error = false,
24
+ id = "",
25
+ name,
26
+ placeholder = "",
27
+ readonly = false,
28
+ required = false,
29
+ size = "medium",
30
+ value = $bindable(),
31
+ ...rest
32
+ } = $props();
33
+
34
+ let store = getContext("form-field-store");
35
+
36
+ let localValues = $derived.by(() => {
37
+ if (store) {
38
+ return {
39
+ ...store(),
40
+ };
41
+ }
42
+
43
+ return {
44
+ id,
45
+ error,
46
+ required,
47
+ };
48
+ });
49
+ </script>
50
+
51
+ <textarea
52
+ class={textareaVariants({
53
+ class: className,
54
+ disabled,
55
+ error: localValues.error,
56
+ size,
57
+ })}
58
+ {disabled}
59
+ id={localValues.id}
60
+ {name}
61
+ {placeholder}
62
+ {readonly}
63
+ required={localValues.required}
64
+ {...rest}>{value}</textarea>
@@ -0,0 +1,89 @@
1
+ export default Textarea;
2
+ type Textarea = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<Props>): void;
5
+ };
6
+ declare const Textarea: import("svelte").Component<{
7
+ /**
8
+ * Additional CSS classes to apply to the component
9
+ */
10
+ class?: string;
11
+ /**
12
+ * Whether the textarea is disabled
13
+ */
14
+ disabled?: boolean;
15
+ /**
16
+ * Whether the textarea has an error state
17
+ */
18
+ error?: boolean;
19
+ /**
20
+ * The ID of the textarea element
21
+ */
22
+ id?: string;
23
+ /**
24
+ * The name of the textarea, used for form submission
25
+ */
26
+ name?: string;
27
+ /**
28
+ * Placeholder text for the textarea
29
+ */
30
+ placeholder?: string;
31
+ /**
32
+ * Whether the textarea is read-only
33
+ */
34
+ readonly?: boolean;
35
+ /**
36
+ * Whether the textarea is required
37
+ */
38
+ required?: boolean;
39
+ /**
40
+ * Textarea size
41
+ */
42
+ size?: "small" | "medium" | "large";
43
+ /**
44
+ * The value of the textarea, bound to the component
45
+ */
46
+ value?: string;
47
+ }, {}, "value">;
48
+ type Props = {
49
+ /**
50
+ * Additional CSS classes to apply to the component
51
+ */
52
+ class?: string;
53
+ /**
54
+ * Whether the textarea is disabled
55
+ */
56
+ disabled?: boolean;
57
+ /**
58
+ * Whether the textarea has an error state
59
+ */
60
+ error?: boolean;
61
+ /**
62
+ * The ID of the textarea element
63
+ */
64
+ id?: string;
65
+ /**
66
+ * The name of the textarea, used for form submission
67
+ */
68
+ name?: string;
69
+ /**
70
+ * Placeholder text for the textarea
71
+ */
72
+ placeholder?: string;
73
+ /**
74
+ * Whether the textarea is read-only
75
+ */
76
+ readonly?: boolean;
77
+ /**
78
+ * Whether the textarea is required
79
+ */
80
+ required?: boolean;
81
+ /**
82
+ * Textarea size
83
+ */
84
+ size?: "small" | "medium" | "large";
85
+ /**
86
+ * The value of the textarea, bound to the component
87
+ */
88
+ value?: string;
89
+ };
@@ -0,0 +1,37 @@
1
+ export const textareaVariants: import("tailwind-variants").TVReturnType<{
2
+ disabled: {
3
+ true: string;
4
+ };
5
+ error: {
6
+ true: string;
7
+ };
8
+ size: {
9
+ small: string;
10
+ medium: string;
11
+ large: string;
12
+ };
13
+ }, undefined, "rounded p-4 body-default bg-transparent border border-neutral-500 text-neutral-800 placeholder-neutral-500 w-full outline-transparent focus:ring-1 focus:ring-blue-500 focus:border-blue-500 hover:border-neutral-800 transition-[border, outline] duration-300 resize-none dark:text-white dark:hover:border-neutral-200 dark:focus:ring-white dark:focus:border-white", {
14
+ disabled: {
15
+ true: string;
16
+ };
17
+ error: {
18
+ true: string;
19
+ };
20
+ size: {
21
+ small: string;
22
+ medium: string;
23
+ large: string;
24
+ };
25
+ }, undefined, import("tailwind-variants").TVReturnType<{
26
+ disabled: {
27
+ true: string;
28
+ };
29
+ error: {
30
+ true: string;
31
+ };
32
+ size: {
33
+ small: string;
34
+ medium: string;
35
+ large: string;
36
+ };
37
+ }, undefined, "rounded p-4 body-default bg-transparent border border-neutral-500 text-neutral-800 placeholder-neutral-500 w-full outline-transparent focus:ring-1 focus:ring-blue-500 focus:border-blue-500 hover:border-neutral-800 transition-[border, outline] duration-300 resize-none dark:text-white dark:hover:border-neutral-200 dark:focus:ring-white dark:focus:border-white", unknown, unknown, undefined>>;
@@ -0,0 +1,20 @@
1
+ import { tv } from "tailwind-variants";
2
+
3
+ const textareaVariants = tv({
4
+ base: "rounded p-4 body-default bg-transparent border border-neutral-500 text-neutral-800 placeholder-neutral-500 w-full outline-transparent focus:ring-1 focus:ring-blue-500 focus:border-blue-500 hover:border-neutral-800 transition-[border, outline] duration-300 resize-none dark:text-white dark:hover:border-neutral-200 dark:focus:ring-white dark:focus:border-white",
5
+ variants: {
6
+ disabled: {
7
+ true: "cursor-not-allowed opacity-50",
8
+ },
9
+ error: {
10
+ true: "border border-red-500 outline focus:ring-red-500 focus:border-red-500 outline-red-500 text-red-500",
11
+ },
12
+ size: {
13
+ small: "h-30",
14
+ medium: "h-42",
15
+ large: "h-80",
16
+ },
17
+ },
18
+ });
19
+
20
+ export { textareaVariants };
@@ -0,0 +1,41 @@
1
+ <script>
2
+ import { registry } from "./index.js";
3
+
4
+ /**
5
+ * @typedef {Object} Props
6
+ * @property {string} [class=""] Additional CSS classes to apply to the component
7
+ * @property {string} [color=""] Icon color
8
+ * @property {string} [name=""] Icon name
9
+ * @property {number} [size=24] Icon size
10
+ * @property {number} [strokeWidth=1.5] Icon stroke width
11
+ * @property {string} [title=""] Icon title
12
+ */
13
+
14
+ let {
15
+ class: className = "",
16
+ color = "currentColor",
17
+ name = "",
18
+ size = 24,
19
+ strokeWidth = 1.5,
20
+ title = "",
21
+ } = $props();
22
+
23
+ let Comp = $derived(registry[name]);
24
+ let wh = $derived(typeof size === "number" ? `${size}px` : size);
25
+ </script>
26
+
27
+ {#if !Comp}
28
+ <span
29
+ aria-hidden="true"
30
+ style={`display: inline-block; height: ${wh}; width: ${wh};`}></span>
31
+ {:else}
32
+ <Comp
33
+ aria-hidden={title ? undefined : "true"}
34
+ aria-label={title || undefined}
35
+ class={className}
36
+ {color}
37
+ height={wh}
38
+ role={title ? "img" : undefined}
39
+ {strokeWidth}
40
+ width={wh} />
41
+ {/if}
@@ -0,0 +1,21 @@
1
+ export default Icon;
2
+ type Icon = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ declare const Icon: import("svelte").Component<{
7
+ class?: string;
8
+ color?: string;
9
+ name?: string;
10
+ size?: number;
11
+ strokeWidth?: number;
12
+ title?: string;
13
+ }, {}, "">;
14
+ type $$ComponentProps = {
15
+ class?: string;
16
+ color?: string;
17
+ name?: string;
18
+ size?: number;
19
+ strokeWidth?: number;
20
+ title?: string;
21
+ };
@@ -0,0 +1,27 @@
1
+ <script>
2
+ /**
3
+ * @typedef {Object} Props
4
+ * @property {string} [color=""] Icon color
5
+ * @property {number} [height=24] Icon height
6
+ * @property {number} [strokeWidth=24] Icon StrokeWidth
7
+ * @property {number} [width=24] Icon width
8
+ */
9
+
10
+ /** @type {Props} */
11
+ let { color, height, width, strokeWidth, ...rest } = $props();
12
+ </script>
13
+
14
+ <svg
15
+ {height}
16
+ {width}
17
+ viewBox="0 0 24 24"
18
+ fill="none"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ {...rest}>
21
+ <path
22
+ d="M23 8.53868V13.4577M6.00008 10.8401V17.4756C6.00008 17.4756 8.517 20 12.0001 20C15.4832 20 18.0001 17.4756 18.0001 17.4756V10.8401M1 8.48001L12 4L23 8.48001L12 12.96L1 8.48001Z"
23
+ stroke={color}
24
+ stroke-width={strokeWidth}
25
+ stroke-linecap="round"
26
+ stroke-linejoin="round" />
27
+ </svg>
@@ -0,0 +1,41 @@
1
+ export default Academy;
2
+ type Academy = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<Props>): void;
5
+ };
6
+ declare const Academy: import("svelte").Component<{
7
+ /**
8
+ * Icon color
9
+ */
10
+ color?: string;
11
+ /**
12
+ * Icon height
13
+ */
14
+ height?: number;
15
+ /**
16
+ * Icon StrokeWidth
17
+ */
18
+ strokeWidth?: number;
19
+ /**
20
+ * Icon width
21
+ */
22
+ width?: number;
23
+ }, {}, "">;
24
+ type Props = {
25
+ /**
26
+ * Icon color
27
+ */
28
+ color?: string;
29
+ /**
30
+ * Icon height
31
+ */
32
+ height?: number;
33
+ /**
34
+ * Icon StrokeWidth
35
+ */
36
+ strokeWidth?: number;
37
+ /**
38
+ * Icon width
39
+ */
40
+ width?: number;
41
+ };
@@ -0,0 +1,27 @@
1
+ <script>
2
+ /**
3
+ * @typedef {Object} Props
4
+ * @property {string} [color=""] Icon color
5
+ * @property {number} [height=24] Icon height
6
+ * @property {number} [strokeWidth=24] Icon StrokeWidth
7
+ * @property {number} [width=24] Icon width
8
+ */
9
+
10
+ /** @type {Props} */
11
+ let { color, height, width, strokeWidth, ...rest } = $props();
12
+ </script>
13
+
14
+ <svg
15
+ {height}
16
+ {width}
17
+ viewBox="0 0 24 24"
18
+ fill="none"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ {...rest}>
21
+ <path
22
+ d="M6 12V3H12.2258C14.8625 3 17 5.01472 17 7.5C17 9.98526 14.8625 12 12.2258 12H6ZM6 12H14.2002C16.8511 12 19 14.0147 19 16.5C19 18.9853 16.8511 21 14.2002 21H6V12Z"
23
+ stroke={color}
24
+ stroke-width={strokeWidth}
25
+ stroke-linecap="round"
26
+ stroke-linejoin="round" />
27
+ </svg>
@@ -0,0 +1,41 @@
1
+ export default Bold;
2
+ type Bold = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<Props>): void;
5
+ };
6
+ declare const Bold: import("svelte").Component<{
7
+ /**
8
+ * Icon color
9
+ */
10
+ color?: string;
11
+ /**
12
+ * Icon height
13
+ */
14
+ height?: number;
15
+ /**
16
+ * Icon StrokeWidth
17
+ */
18
+ strokeWidth?: number;
19
+ /**
20
+ * Icon width
21
+ */
22
+ width?: number;
23
+ }, {}, "">;
24
+ type Props = {
25
+ /**
26
+ * Icon color
27
+ */
28
+ color?: string;
29
+ /**
30
+ * Icon height
31
+ */
32
+ height?: number;
33
+ /**
34
+ * Icon StrokeWidth
35
+ */
36
+ strokeWidth?: number;
37
+ /**
38
+ * Icon width
39
+ */
40
+ width?: number;
41
+ };
@@ -0,0 +1,27 @@
1
+ <script>
2
+ /**
3
+ * @typedef {Object} Props
4
+ * @property {string} [color=""] Icon color
5
+ * @property {number} [height=24] Icon height
6
+ * @property {number} [strokeWidth=24] Icon StrokeWidth
7
+ * @property {number} [width=24] Icon width
8
+ */
9
+
10
+ /** @type {Props} */
11
+ let { color, height, width, strokeWidth, ...rest } = $props();
12
+ </script>
13
+
14
+ <svg
15
+ {height}
16
+ {width}
17
+ viewBox="0 0 24 24"
18
+ fill="none"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ {...rest}>
21
+ <path
22
+ d="M4 4L20 20M4 20L20 4"
23
+ stroke={color}
24
+ stroke-width={strokeWidth}
25
+ stroke-linecap="round"
26
+ stroke-linejoin="round" />
27
+ </svg>
@@ -0,0 +1,41 @@
1
+ export default Close;
2
+ type Close = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<Props>): void;
5
+ };
6
+ declare const Close: import("svelte").Component<{
7
+ /**
8
+ * Icon color
9
+ */
10
+ color?: string;
11
+ /**
12
+ * Icon height
13
+ */
14
+ height?: number;
15
+ /**
16
+ * Icon StrokeWidth
17
+ */
18
+ strokeWidth?: number;
19
+ /**
20
+ * Icon width
21
+ */
22
+ width?: number;
23
+ }, {}, "">;
24
+ type Props = {
25
+ /**
26
+ * Icon color
27
+ */
28
+ color?: string;
29
+ /**
30
+ * Icon height
31
+ */
32
+ height?: number;
33
+ /**
34
+ * Icon StrokeWidth
35
+ */
36
+ strokeWidth?: number;
37
+ /**
38
+ * Icon width
39
+ */
40
+ width?: number;
41
+ };
@@ -0,0 +1,27 @@
1
+ <script>
2
+ /**
3
+ * @typedef {Object} Props
4
+ * @property {string} [color=""] Icon color
5
+ * @property {number} [height=24] Icon height
6
+ * @property {number} [strokeWidth=24] Icon StrokeWidth
7
+ * @property {number} [width=24] Icon width
8
+ */
9
+
10
+ /** @type {Props} */
11
+ let { color, height, strokeWidth, width, ...rest } = $props();
12
+ </script>
13
+
14
+ <svg
15
+ {height}
16
+ {width}
17
+ viewBox="0 0 24 24"
18
+ fill="none"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ {...rest}>
21
+ <path
22
+ d="M10 4H18M6 20H14M15 4L10 20"
23
+ stroke={color}
24
+ stroke-width={strokeWidth}
25
+ stroke-linecap="round"
26
+ stroke-linejoin="round" />
27
+ </svg>
@@ -0,0 +1,41 @@
1
+ export default Italic;
2
+ type Italic = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<Props>): void;
5
+ };
6
+ declare const Italic: import("svelte").Component<{
7
+ /**
8
+ * Icon color
9
+ */
10
+ color?: string;
11
+ /**
12
+ * Icon height
13
+ */
14
+ height?: number;
15
+ /**
16
+ * Icon StrokeWidth
17
+ */
18
+ strokeWidth?: number;
19
+ /**
20
+ * Icon width
21
+ */
22
+ width?: number;
23
+ }, {}, "">;
24
+ type Props = {
25
+ /**
26
+ * Icon color
27
+ */
28
+ color?: string;
29
+ /**
30
+ * Icon height
31
+ */
32
+ height?: number;
33
+ /**
34
+ * Icon StrokeWidth
35
+ */
36
+ strokeWidth?: number;
37
+ /**
38
+ * Icon width
39
+ */
40
+ width?: number;
41
+ };
@@ -0,0 +1,27 @@
1
+ <script>
2
+ /**
3
+ * @typedef {Object} Props
4
+ * @property {string} [color=""] Icon color
5
+ * @property {number} [height=24] Icon height
6
+ * @property {number} [strokeWidth=24] Icon StrokeWidth
7
+ * @property {number} [width=24] Icon width
8
+ */
9
+
10
+ /** @type {Props} */
11
+ let { color, height, width, strokeWidth, ...rest } = $props();
12
+ </script>
13
+
14
+ <svg
15
+ {height}
16
+ {width}
17
+ viewBox="0 0 24 24"
18
+ fill="none"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ {...rest}>
21
+ <path
22
+ d="M15 10H10C7.79085 10 6 11.7908 6 14C6 16.2092 7.79085 18 10 18H18C20.2092 18 22 16.2092 22 14C22 12.9856 21.6223 12.0593 21 11.3542M3 12.6458C2.37764 11.9407 2 11.0144 2 10C2 7.79085 3.79086 6 6 6H14C16.2092 6 18 7.79085 18 10C18 12.2092 16.2092 14 14 14H9"
23
+ stroke={color}
24
+ stroke-width={strokeWidth}
25
+ stroke-linecap="round"
26
+ stroke-linejoin="round" />
27
+ </svg>