@websline/system-components 0.0.4 → 0.0.6
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/dist/components/atoms/actions/closeButton/CloseButton.svelte +8 -5
- package/dist/components/atoms/actions/closeButton/CloseButton.svelte.d.ts +2 -2
- package/dist/components/atoms/feedback/progressBar/ProgressBar.svelte +47 -0
- package/dist/components/atoms/feedback/progressBar/ProgressBar.svelte.d.ts +41 -0
- package/dist/components/atoms/feedback/progressBar/progressBar.variants.d.ts +29 -0
- package/dist/components/atoms/feedback/progressBar/progressBar.variants.js +11 -0
- package/dist/components/atoms/icon/Icon.svelte +3 -1
- package/dist/components/atoms/icon/Icon.svelte.d.ts +2 -2
- package/dist/components/atoms/icon/components/Attach.svelte +27 -0
- package/dist/components/atoms/icon/components/Attach.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Block.svelte +27 -0
- package/dist/components/atoms/icon/components/Block.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Cogs.svelte +31 -0
- package/dist/components/atoms/icon/components/Cogs.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Controlling.svelte +27 -0
- package/dist/components/atoms/icon/components/Controlling.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Dashboard.svelte +41 -0
- package/dist/components/atoms/icon/components/Dashboard.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Database.svelte +27 -0
- package/dist/components/atoms/icon/components/Database.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Dragger.svelte +27 -0
- package/dist/components/atoms/icon/components/Dragger.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Globe.svelte +27 -0
- package/dist/components/atoms/icon/components/Globe.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Layout.svelte +27 -0
- package/dist/components/atoms/icon/components/Layout.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Menu.svelte +27 -0
- package/dist/components/atoms/icon/components/Menu.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Notifications.svelte +26 -0
- package/dist/components/atoms/icon/components/Notifications.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Picture.svelte +27 -0
- package/dist/components/atoms/icon/components/Picture.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Search.svelte +27 -0
- package/dist/components/atoms/icon/components/Search.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Settings.svelte +31 -0
- package/dist/components/atoms/icon/components/Settings.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/components/Trash.svelte +27 -0
- package/dist/components/atoms/icon/components/Trash.svelte.d.ts +41 -0
- package/dist/components/atoms/icon/index.d.ts +30 -0
- package/dist/components/atoms/icon/index.js +30 -0
- package/dist/components/molecules/formActions/formActions.svelte +25 -0
- package/dist/components/molecules/formActions/formActions.svelte.d.ts +41 -0
- package/dist/components/molecules/formActions/formActions.variants.d.ts +22 -0
- package/dist/components/molecules/formActions/formActions.variants.js +16 -0
- package/dist/components/{atoms/form → molecules}/formField/FormField.svelte +2 -2
- package/dist/components/{atoms/form → molecules}/formField/FormField.svelte.d.ts +2 -2
- package/dist/components/molecules/formLayout/FormLayout.svelte +17 -0
- package/dist/components/molecules/formLayout/FormLayout.svelte.d.ts +33 -0
- package/dist/components/molecules/formLayout/formLayout.variants.d.ts +31 -0
- package/dist/components/molecules/formLayout/formLayout.variants.js +18 -0
- package/dist/components/organisms/dialog/Dialog.svelte +17 -0
- package/dist/components/organisms/dialog/Dialog.svelte.d.ts +34 -0
- package/dist/components/organisms/dialog/DialogAction.svelte +72 -0
- package/dist/components/organisms/dialog/DialogAction.svelte.d.ts +33 -0
- package/dist/components/organisms/dialog/DialogActions.svelte +19 -0
- package/dist/components/organisms/dialog/DialogActions.svelte.d.ts +25 -0
- package/dist/components/organisms/dialog/DialogBody.svelte +18 -0
- package/dist/components/organisms/dialog/DialogBody.svelte.d.ts +25 -0
- package/dist/components/organisms/dialog/DialogContent.svelte +57 -0
- package/dist/components/organisms/dialog/DialogContent.svelte.d.ts +57 -0
- package/dist/components/organisms/dialog/DialogTrigger.svelte +14 -0
- package/dist/components/organisms/dialog/DialogTrigger.svelte.d.ts +17 -0
- package/dist/components/organisms/dialog/dialog.variants.d.ts +85 -0
- package/dist/components/organisms/dialog/dialog.variants.js +30 -0
- package/dist/components/organisms/dialog/index.d.ts +7 -0
- package/dist/components/organisms/dialog/index.js +8 -0
- package/dist/components/organisms/modal/Modal.svelte +17 -0
- package/dist/components/organisms/modal/Modal.svelte.d.ts +33 -0
- package/dist/components/organisms/modal/ModalBody.svelte +19 -0
- package/dist/components/organisms/modal/ModalBody.svelte.d.ts +33 -0
- package/dist/components/organisms/modal/ModalContent.svelte +70 -0
- package/dist/components/organisms/modal/ModalContent.svelte.d.ts +57 -0
- package/dist/components/organisms/modal/ModalHeader.svelte +28 -0
- package/dist/components/organisms/modal/ModalHeader.svelte.d.ts +33 -0
- package/dist/components/organisms/modal/ModalTrigger.svelte +14 -0
- package/dist/components/organisms/modal/ModalTrigger.svelte.d.ts +17 -0
- package/dist/components/organisms/modal/index.d.ts +6 -0
- package/dist/components/organisms/modal/index.js +7 -0
- package/dist/components/organisms/modal/modal.variants.d.ts +112 -0
- package/dist/components/organisms/modal/modal.variants.js +30 -0
- package/dist/index.d.ts +13 -9
- package/dist/index.js +13 -9
- package/dist/utils/a11y.d.ts +1 -0
- package/dist/utils/a11y.js +5 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +16 -16
- package/dist/components/molecules/navigationItem/NavigationItem.svelte +0 -80
- package/dist/components/molecules/navigationItem/NavigationItem.svelte.d.ts +0 -81
- package/dist/components/molecules/navigationItem/navigationItem.variants.d.ts +0 -61
- package/dist/components/molecules/navigationItem/navigationItem.variants.js +0 -29
- /package/dist/components/atoms/{form/helperText → helperText}/HelperText.svelte +0 -0
- /package/dist/components/atoms/{form/helperText → helperText}/HelperText.svelte.d.ts +0 -0
- /package/dist/components/atoms/{form/helperText → helperText}/helperText.variants.d.ts +0 -0
- /package/dist/components/atoms/{form/helperText → helperText}/helperText.variants.js +0 -0
- /package/dist/components/atoms/{form/input → input}/Input.svelte +0 -0
- /package/dist/components/atoms/{form/input → input}/Input.svelte.d.ts +0 -0
- /package/dist/components/atoms/{form/input → input}/input.variants.d.ts +0 -0
- /package/dist/components/atoms/{form/input → input}/input.variants.js +0 -0
- /package/dist/components/atoms/{form/label → label}/Label.svelte +0 -0
- /package/dist/components/atoms/{form/label → label}/Label.svelte.d.ts +0 -0
- /package/dist/components/atoms/{form/label → label}/label.variants.d.ts +0 -0
- /package/dist/components/atoms/{form/label → label}/label.variants.js +0 -0
- /package/dist/components/atoms/{form/radio → radio}/Radio.svelte +0 -0
- /package/dist/components/atoms/{form/radio → radio}/Radio.svelte.d.ts +0 -0
- /package/dist/components/atoms/{form/radio → radio}/radio.variants.d.ts +0 -0
- /package/dist/components/atoms/{form/radio → radio}/radio.variants.js +0 -0
- /package/dist/components/atoms/{form/select → select}/Select.svelte +0 -0
- /package/dist/components/atoms/{form/select → select}/Select.svelte.d.ts +0 -0
- /package/dist/components/atoms/{form/select → select}/select.variants.d.ts +0 -0
- /package/dist/components/atoms/{form/select → select}/select.variants.js +0 -0
- /package/dist/components/atoms/{form/switch → switch}/Switch.svelte +0 -0
- /package/dist/components/atoms/{form/switch → switch}/Switch.svelte.d.ts +0 -0
- /package/dist/components/atoms/{form/switch → switch}/switch.variants.d.ts +0 -0
- /package/dist/components/atoms/{form/switch → switch}/switch.variants.js +0 -0
- /package/dist/components/atoms/{form/textarea → textarea}/Textarea.svelte +0 -0
- /package/dist/components/atoms/{form/textarea → textarea}/Textarea.svelte.d.ts +0 -0
- /package/dist/components/atoms/{form/textarea → textarea}/textarea.variants.d.ts +0 -0
- /package/dist/components/atoms/{form/textarea → textarea}/textarea.variants.js +0 -0
- /package/dist/components/{atoms/form → molecules}/formField/formField.variants.d.ts +0 -0
- /package/dist/components/{atoms/form → molecules}/formField/formField.variants.js +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @typedef {Object} Props
|
|
7
7
|
* @property {boolean} [autoClose=false] Whether the button should automatically close after a duration
|
|
8
8
|
* @property {number} [durationInSeconds=6] Duration in seconds before auto-close triggers
|
|
9
|
-
* @property {() => void} onClose Function to call when the button is clicked or auto-closed
|
|
9
|
+
* @property {(event) => void} [onClose] Function to call when the button is clicked or auto-closed
|
|
10
10
|
* @property {string} [class=""] Additional CSS classes to apply to the component
|
|
11
11
|
* @property {"circle" | "square"} [shape="round"] Button shape
|
|
12
12
|
*/
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
autoClose = false,
|
|
17
17
|
class: className = "",
|
|
18
18
|
durationInSeconds = 6,
|
|
19
|
+
onclick,
|
|
19
20
|
onClose,
|
|
20
21
|
shape = "square",
|
|
21
22
|
...rest
|
|
@@ -48,12 +49,14 @@
|
|
|
48
49
|
|
|
49
50
|
let calculatedDurationInSeconds = $derived(durationInSeconds * 1000);
|
|
50
51
|
|
|
51
|
-
const handleClose = () => {
|
|
52
|
-
|
|
52
|
+
const handleClose = (e) => {
|
|
53
|
+
onClose?.(e);
|
|
54
|
+
if (e.defaultPrevented) return;
|
|
55
|
+
onclick?.(e);
|
|
53
56
|
};
|
|
54
57
|
|
|
55
|
-
const handleAnimationComplete = () => {
|
|
56
|
-
if (autoClose)
|
|
58
|
+
const handleAnimationComplete = (e) => {
|
|
59
|
+
if (autoClose) handleClose(e);
|
|
57
60
|
};
|
|
58
61
|
</script>
|
|
59
62
|
|
|
@@ -15,7 +15,7 @@ declare const CloseButton: import("svelte").Component<{
|
|
|
15
15
|
/**
|
|
16
16
|
* Function to call when the button is clicked or auto-closed
|
|
17
17
|
*/
|
|
18
|
-
onClose:
|
|
18
|
+
onClose?: (event: any) => void;
|
|
19
19
|
/**
|
|
20
20
|
* Additional CSS classes to apply to the component
|
|
21
21
|
*/
|
|
@@ -37,7 +37,7 @@ type Props = {
|
|
|
37
37
|
/**
|
|
38
38
|
* Function to call when the button is clicked or auto-closed
|
|
39
39
|
*/
|
|
40
|
-
onClose:
|
|
40
|
+
onClose?: (event: any) => void;
|
|
41
41
|
/**
|
|
42
42
|
* Additional CSS classes to apply to the component
|
|
43
43
|
*/
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { generateId } from "../../../../utils";
|
|
3
|
+
import { progressBarVariants } from "./progressBar.variants.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @typedef {Object} Props
|
|
7
|
+
* @property {string} [class=""] Additional CSS classes to apply to the component
|
|
8
|
+
* @property {number} [currentStep=1] The current step in the progress
|
|
9
|
+
* @property {string} [label=""] Optional label to display alongside the progress bar
|
|
10
|
+
* @property {number} [totalSteps] The total number of steps in the progress
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** @type {Props} */
|
|
14
|
+
let {
|
|
15
|
+
class: className = "",
|
|
16
|
+
currentStep = 1,
|
|
17
|
+
label = "",
|
|
18
|
+
totalSteps,
|
|
19
|
+
...rest
|
|
20
|
+
} = $props();
|
|
21
|
+
|
|
22
|
+
let labelId = generateId();
|
|
23
|
+
let styles = $derived(progressBarVariants());
|
|
24
|
+
|
|
25
|
+
// || 0 in case currentStep or totalSteps result in NaN
|
|
26
|
+
let steps = $derived({
|
|
27
|
+
current: Math.max(0, currentStep) || 0,
|
|
28
|
+
total: Math.max(0, totalSteps, currentStep) || 0,
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<div
|
|
33
|
+
aria-valuemax={steps.total}
|
|
34
|
+
aria-valuemin="0"
|
|
35
|
+
aria-valuenow={steps.current}
|
|
36
|
+
aria-labelledby={!label || rest["aria-label"] ? undefined : labelId}
|
|
37
|
+
role="progressbar"
|
|
38
|
+
class={styles.base({ class: className })}
|
|
39
|
+
{...rest}>
|
|
40
|
+
{#if label}
|
|
41
|
+
<span class={styles.label()} id={labelId}
|
|
42
|
+
>{label} {steps.current}/{steps.total}</span>
|
|
43
|
+
{/if}
|
|
44
|
+
<span
|
|
45
|
+
class={styles.bar()}
|
|
46
|
+
style:--progress={`${(steps.current / steps.total) * 100}%`}></span>
|
|
47
|
+
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default ProgressBar;
|
|
2
|
+
type ProgressBar = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const ProgressBar: import("svelte").Component<{
|
|
7
|
+
/**
|
|
8
|
+
* Additional CSS classes to apply to the component
|
|
9
|
+
*/
|
|
10
|
+
class?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The current step in the progress
|
|
13
|
+
*/
|
|
14
|
+
currentStep?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Optional label to display alongside the progress bar
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The total number of steps in the progress
|
|
21
|
+
*/
|
|
22
|
+
totalSteps?: number;
|
|
23
|
+
}, {}, "">;
|
|
24
|
+
type Props = {
|
|
25
|
+
/**
|
|
26
|
+
* Additional CSS classes to apply to the component
|
|
27
|
+
*/
|
|
28
|
+
class?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The current step in the progress
|
|
31
|
+
*/
|
|
32
|
+
currentStep?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Optional label to display alongside the progress bar
|
|
35
|
+
*/
|
|
36
|
+
label?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of steps in the progress
|
|
39
|
+
*/
|
|
40
|
+
totalSteps?: number;
|
|
41
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const progressBarVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
base?: import("tailwind-variants").ClassValue;
|
|
5
|
+
bar?: import("tailwind-variants").ClassValue;
|
|
6
|
+
label?: import("tailwind-variants").ClassValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
[x: string]: {
|
|
11
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
12
|
+
base?: import("tailwind-variants").ClassValue;
|
|
13
|
+
bar?: import("tailwind-variants").ClassValue;
|
|
14
|
+
label?: import("tailwind-variants").ClassValue;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
bar: string;
|
|
19
|
+
base: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}, undefined, any, {
|
|
22
|
+
bar: string;
|
|
23
|
+
base: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}, import("tailwind-variants").TVReturnType<any, {
|
|
26
|
+
bar: string;
|
|
27
|
+
base: string;
|
|
28
|
+
label: string;
|
|
29
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
const progressBarVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
bar: "h-1 w-full rounded-sm bg-neutral-100 after:block after:h-full after:w-[var(--progress)] after:rounded-sm after:bg-neutral-900 after:transition-[width] after:duration-300 after:ease-in-out dark:bg-neutral-900 dark:after:bg-neutral-100",
|
|
6
|
+
base: "flex items-center gap-4 p-2",
|
|
7
|
+
label: "body-small text-nowrap text-neutral-500",
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export { progressBarVariants };
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
size = 24,
|
|
19
19
|
strokeWidth = 1.5,
|
|
20
20
|
title = "",
|
|
21
|
+
...rest
|
|
21
22
|
} = $props();
|
|
22
23
|
|
|
23
24
|
let Comp = $derived(registry[name]);
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
height={wh}
|
|
39
40
|
role={title ? "img" : undefined}
|
|
40
41
|
{strokeWidth}
|
|
41
|
-
width={wh}
|
|
42
|
+
width={wh}
|
|
43
|
+
{...rest} />
|
|
42
44
|
{/if}
|
|
43
45
|
|
|
44
46
|
<style>
|
|
@@ -10,7 +10,7 @@ declare const Icon: import("svelte").Component<{
|
|
|
10
10
|
size?: number;
|
|
11
11
|
strokeWidth?: number;
|
|
12
12
|
title?: string;
|
|
13
|
-
}, {}, "">;
|
|
13
|
+
} & Record<string, any>, {}, "">;
|
|
14
14
|
type $$ComponentProps = {
|
|
15
15
|
class?: string;
|
|
16
16
|
color?: string;
|
|
@@ -18,4 +18,4 @@ type $$ComponentProps = {
|
|
|
18
18
|
size?: number;
|
|
19
19
|
strokeWidth?: number;
|
|
20
20
|
title?: string;
|
|
21
|
-
}
|
|
21
|
+
} & Record<string, any>;
|
|
@@ -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 20 20"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
{...rest}>
|
|
21
|
+
<path
|
|
22
|
+
d="M10.037 3.48299L3.63626 9.9625C2.12125 11.4962 2.12125 13.9827 3.63626 15.5164C5.15126 17.05 7.60758 17.05 9.12258 15.5164L16.7425 7.80265C17.7525 6.78023 17.7525 5.12253 16.7425 4.10007C15.7325 3.07765 14.095 3.07765 13.0849 4.10007L5.46506 11.8138C4.96004 12.325 4.96004 13.1539 5.46506 13.665C5.97003 14.1763 6.78881 14.1763 7.29382 13.665L13.6945 7.18556"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" />
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Attach;
|
|
2
|
+
type Attach = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Attach: 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="M22 7L12 2L2 7M22 7V17L12 22M22 7L12 12M2 7V17L12 22M2 7L12 12M12 22V12M17 4.5L7 9.5"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" />
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Block;
|
|
2
|
+
type Block = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Block: 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,31 @@
|
|
|
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 20 20"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
{...rest}>
|
|
21
|
+
<path
|
|
22
|
+
d="M7.6176 17.5001C6.22131 17.0892 4.97843 16.3264 3.99429 15.3157C4.36143 14.8857 4.58268 14.33 4.58268 13.7233C4.58268 12.3587 3.46339 11.2524 2.08268 11.2524C1.99916 11.2524 1.91659 11.2565 1.83518 11.2644C1.72426 10.7284 1.66602 10.1736 1.66602 9.60519C1.66602 8.74426 1.79967 7.91418 2.04759 7.13409C2.05927 7.13425 2.07097 7.13433 2.08268 7.13433C3.46339 7.13433 4.58268 6.02809 4.58268 4.66347C4.58268 4.27172 4.49043 3.90129 4.32627 3.57218C5.28997 2.68654 6.46622 2.02374 7.77106 1.66675C8.18452 2.46774 9.02714 3.01625 9.99935 3.01625C10.9716 3.01625 11.8142 2.46774 12.2276 1.66675C13.5325 2.02374 14.7087 2.68654 15.6724 3.57218C15.5083 3.90129 15.416 4.27172 15.416 4.66347C15.416 6.02809 16.5353 7.13433 17.916 7.13433C17.9277 7.13433 17.9394 7.13425 17.9511 7.13409C18.199 7.91418 18.3327 8.74426 18.3327 9.60519C18.3327 10.1736 18.2744 10.7284 18.1635 11.2644C18.0821 11.2565 17.9996 11.2524 17.916 11.2524C16.5353 11.2524 15.416 12.3587 15.416 13.7233C15.416 14.33 15.6373 14.8857 16.0044 15.3157C15.0203 16.3264 13.7774 17.0892 12.3811 17.5001C12.0588 16.5038 11.1143 15.7823 9.99935 15.7823C8.88435 15.7823 7.93985 16.5038 7.6176 17.5001Z"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linejoin="round" />
|
|
26
|
+
<path
|
|
27
|
+
d="M9.99935 12.4878C11.6102 12.4878 12.916 11.1972 12.916 9.60515C12.916 8.01309 11.6102 6.72248 9.99935 6.72248C8.38852 6.72248 7.08268 8.01309 7.08268 9.60515C7.08268 11.1972 8.38852 12.4878 9.99935 12.4878Z"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linejoin="round" />
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Cogs;
|
|
2
|
+
type Cogs = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Cogs: 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="M3 3V21H21M7 17L11 9L16 13.5L21 3"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" />
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Controlling;
|
|
2
|
+
type Controlling = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Controlling: 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,41 @@
|
|
|
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="M9 3H4C3.44771 3 3 3.44771 3 4V9C3 9.5523 3.44771 10 4 10H9C9.5523 10 10 9.5523 10 9V4C10 3.44771 9.5523 3 9 3Z"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linejoin="round" />
|
|
26
|
+
<path
|
|
27
|
+
d="M9 14H4C3.44771 14 3 14.4477 3 15V20C3 20.5523 3.44771 21 4 21H9C9.5523 21 10 20.5523 10 20V15C10 14.4477 9.5523 14 9 14Z"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linejoin="round" />
|
|
31
|
+
<path
|
|
32
|
+
d="M20 3H15C14.4477 3 14 3.44771 14 4V9C14 9.5523 14.4477 10 15 10H20C20.5523 10 21 9.5523 21 9V4C21 3.44771 20.5523 3 20 3Z"
|
|
33
|
+
stroke={color}
|
|
34
|
+
stroke-width={strokeWidth}
|
|
35
|
+
stroke-linejoin="round" />
|
|
36
|
+
<path
|
|
37
|
+
d="M20 14H15C14.4477 14 14 14.4477 14 15V20C14 20.5523 14.4477 21 15 21H20C20.5523 21 21 20.5523 21 20V15C21 14.4477 20.5523 14 20 14Z"
|
|
38
|
+
stroke={color}
|
|
39
|
+
stroke-width={strokeWidth}
|
|
40
|
+
stroke-linejoin="round" />
|
|
41
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Dashboard;
|
|
2
|
+
type Dashboard = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Dashboard: 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="M19 5.5V9.5M19 5.5C19 6.8807 15.6421 8 11.5 8C7.35785 8 4 6.8807 4 5.5M19 5.5C19 4.11929 15.6421 3 11.5 3C7.35785 3 4 4.11929 4 5.5M19 9.5V17.5C19 19 16 20 11.5 20C7 20 4 18.8807 4 17.5V13.5M19 9.5C19 11 15.6421 12 11.5 12C7.35785 12 4 10.8807 4 9.5M4 13.5V9.5M4 13.5C4 14.8807 7.35785 16 11.5 16C15.6421 16 19 15 19 13.5M4 9.5V5.5"
|
|
23
|
+
stroke={color}
|
|
24
|
+
stroke-width={strokeWidth}
|
|
25
|
+
stroke-linecap="round"
|
|
26
|
+
stroke-linejoin="round" />
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default Database;
|
|
2
|
+
type Database = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Database: 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 8 14"
|
|
18
|
+
fill="none"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
{...rest}>
|
|
21
|
+
<circle cx="1.5" cy="2" r={strokeWidth} fill={color} />
|
|
22
|
+
<circle cx="6.5" cy="2" r={strokeWidth} fill={color} />
|
|
23
|
+
<circle cx="1.5" cy="7" r={strokeWidth} fill={color} />
|
|
24
|
+
<circle cx="6.5" cy="7" r={strokeWidth} fill={color} />
|
|
25
|
+
<circle cx="1.5" cy="12" r={strokeWidth} fill={color} />
|
|
26
|
+
<circle cx="6.5" cy="12" r={strokeWidth} fill={color} />
|
|
27
|
+
</svg>
|