@joyautomation/salt 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.
- package/LICENSE +674 -0
- package/README.md +58 -0
- package/dist/actions.d.ts +2 -0
- package/dist/actions.js +15 -0
- package/dist/client.d.ts +3 -0
- package/dist/client.js +12 -0
- package/dist/components/ThemeButton.svelte +17 -0
- package/dist/components/ThemeButton.svelte.d.ts +17 -0
- package/dist/components/Toast.svelte +67 -0
- package/dist/components/Toast.svelte.d.ts +14 -0
- package/dist/components/Toggle.svelte +75 -0
- package/dist/components/Toggle.svelte.d.ts +21 -0
- package/dist/components/icons/ArrowPath.svelte +19 -0
- package/dist/components/icons/ArrowPath.svelte.d.ts +23 -0
- package/dist/components/icons/ChevronDown.svelte +15 -0
- package/dist/components/icons/ChevronDown.svelte.d.ts +23 -0
- package/dist/components/icons/ChevronUpDown.svelte +18 -0
- package/dist/components/icons/ChevronUpDown.svelte.d.ts +16 -0
- package/dist/components/icons/DocumentMinus.svelte +19 -0
- package/dist/components/icons/DocumentMinus.svelte.d.ts +23 -0
- package/dist/components/icons/DocumentPlus.svelte +19 -0
- package/dist/components/icons/DocumentPlus.svelte.d.ts +23 -0
- package/dist/components/icons/Link.svelte +19 -0
- package/dist/components/icons/Link.svelte.d.ts +23 -0
- package/dist/components/icons/Moon.svelte +18 -0
- package/dist/components/icons/Moon.svelte.d.ts +16 -0
- package/dist/components/icons/PauseCircle.svelte +18 -0
- package/dist/components/icons/PauseCircle.svelte.d.ts +16 -0
- package/dist/components/icons/Pencil.svelte +18 -0
- package/dist/components/icons/Pencil.svelte.d.ts +16 -0
- package/dist/components/icons/PlayCircle.svelte +20 -0
- package/dist/components/icons/PlayCircle.svelte.d.ts +23 -0
- package/dist/components/icons/Plus.svelte +14 -0
- package/dist/components/icons/Plus.svelte.d.ts +16 -0
- package/dist/components/icons/Sun.svelte +18 -0
- package/dist/components/icons/Sun.svelte.d.ts +16 -0
- package/dist/components/icons/Trash.svelte +18 -0
- package/dist/components/icons/Trash.svelte.d.ts +16 -0
- package/dist/components/icons/WrenchScrewdriver.svelte +18 -0
- package/dist/components/icons/WrenchScrewdriver.svelte.d.ts +16 -0
- package/dist/components/icons/Xmark.svelte +14 -0
- package/dist/components/icons/Xmark.svelte.d.ts +16 -0
- package/dist/components/icons/index.d.ts +14 -0
- package/dist/components/icons/index.js +14 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/stores/notifications.d.ts +12 -0
- package/dist/stores/notifications.js +17 -0
- package/dist/styles/buttons.scss +72 -0
- package/dist/styles/colors.scss +283 -0
- package/dist/styles/form.scss +40 -0
- package/dist/styles/layout.scss +56 -0
- package/dist/styles/main.scss +17 -0
- package/dist/styles/preflight.scss +90 -0
- package/dist/styles/rounded.scss +18 -0
- package/dist/styles/shadow.scss +10 -0
- package/dist/styles/spacing.scss +98 -0
- package/dist/styles/text.scss +111 -0
- package/dist/styles/themeDark.scss +1 -0
- package/dist/styles/themeLight.scss +1 -0
- package/dist/styles/themes.scss +95 -0
- package/package.json +65 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type PencilProps = typeof __propDef.props;
|
|
12
|
+
export type PencilEvents = typeof __propDef.events;
|
|
13
|
+
export type PencilSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Pencil extends SvelteComponent<PencilProps, PencilEvents, PencilSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export let size = '1.5rem';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
fill="none"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
stroke-width="1.5"
|
|
10
|
+
stroke="currentColor"
|
|
11
|
+
style:height={size}
|
|
12
|
+
style:width={size}
|
|
13
|
+
>
|
|
14
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
|
15
|
+
<path
|
|
16
|
+
stroke-linecap="round"
|
|
17
|
+
stroke-linejoin="round"
|
|
18
|
+
d="M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"
|
|
19
|
+
/>
|
|
20
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} PlayCircleProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} PlayCircleEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} PlayCircleSlots */
|
|
4
|
+
export default class PlayCircle extends SvelteComponent<{
|
|
5
|
+
size?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type PlayCircleProps = typeof __propDef.props;
|
|
11
|
+
export type PlayCircleEvents = typeof __propDef.events;
|
|
12
|
+
export type PlayCircleSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponent } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
size?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>export let size = "1.5rem";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
fill="none"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
stroke-width="1.5"
|
|
9
|
+
stroke="currentColor"
|
|
10
|
+
style:height={size}
|
|
11
|
+
style:width={size}
|
|
12
|
+
>
|
|
13
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type PlusProps = typeof __propDef.props;
|
|
12
|
+
export type PlusEvents = typeof __propDef.events;
|
|
13
|
+
export type PlusSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Plus extends SvelteComponent<PlusProps, PlusEvents, PlusSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script>export let size = "1.5rem";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
fill="none"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
stroke-width="1.5"
|
|
9
|
+
stroke="currentColor"
|
|
10
|
+
style:width={size}
|
|
11
|
+
style:height={size}
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
stroke-linecap="round"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
d="M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type SunProps = typeof __propDef.props;
|
|
12
|
+
export type SunEvents = typeof __propDef.events;
|
|
13
|
+
export type SunSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Sun extends SvelteComponent<SunProps, SunEvents, SunSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script>export let size = "1rem";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
fill="none"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
stroke-width="1.5"
|
|
9
|
+
stroke="currentColor"
|
|
10
|
+
style:height={size}
|
|
11
|
+
style:width={size}
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
stroke-linecap="round"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type TrashProps = typeof __propDef.props;
|
|
12
|
+
export type TrashEvents = typeof __propDef.events;
|
|
13
|
+
export type TrashSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Trash extends SvelteComponent<TrashProps, TrashEvents, TrashSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script>export let size = "1.5rem";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
fill="none"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
stroke-width="1.5"
|
|
9
|
+
stroke="currentColor"
|
|
10
|
+
style:height={size}
|
|
11
|
+
style:width={size}
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
stroke-linecap="round"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
d="M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type WrenchScrewdriverProps = typeof __propDef.props;
|
|
12
|
+
export type WrenchScrewdriverEvents = typeof __propDef.events;
|
|
13
|
+
export type WrenchScrewdriverSlots = typeof __propDef.slots;
|
|
14
|
+
export default class WrenchScrewdriver extends SvelteComponent<WrenchScrewdriverProps, WrenchScrewdriverEvents, WrenchScrewdriverSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>export let size = "1.5rem";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
fill="none"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
stroke-width="1.5"
|
|
9
|
+
stroke="currentColor"
|
|
10
|
+
style:height={size}
|
|
11
|
+
style:width={size}
|
|
12
|
+
>
|
|
13
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type XmarkProps = typeof __propDef.props;
|
|
12
|
+
export type XmarkEvents = typeof __propDef.events;
|
|
13
|
+
export type XmarkSlots = typeof __propDef.slots;
|
|
14
|
+
export default class Xmark extends SvelteComponent<XmarkProps, XmarkEvents, XmarkSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as ArrowPath } from './ArrowPath.svelte';
|
|
2
|
+
export { default as ChevronDown } from './ChevronDown.svelte';
|
|
3
|
+
export { default as ChevronUpDown } from './ChevronUpDown.svelte';
|
|
4
|
+
export { default as DocumentMinus } from './DocumentMinus.svelte';
|
|
5
|
+
export { default as DocumentPlus } from './DocumentPlus.svelte';
|
|
6
|
+
export { default as Link } from './Link.svelte';
|
|
7
|
+
export { default as Moon } from './Moon.svelte';
|
|
8
|
+
export { default as PauseCircle } from './PauseCircle.svelte';
|
|
9
|
+
export { default as Pencil } from './Pencil.svelte';
|
|
10
|
+
export { default as PlayCircle } from './PlayCircle.svelte';
|
|
11
|
+
export { default as Sun } from './Sun.svelte';
|
|
12
|
+
export { default as Trash } from './Trash.svelte';
|
|
13
|
+
export { default as WrenchScrewdriver } from './WrenchScrewdriver.svelte';
|
|
14
|
+
export { default as Xmark } from './Xmark.svelte';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as ArrowPath } from './ArrowPath.svelte';
|
|
2
|
+
export { default as ChevronDown } from './ChevronDown.svelte';
|
|
3
|
+
export { default as ChevronUpDown } from './ChevronUpDown.svelte';
|
|
4
|
+
export { default as DocumentMinus } from './DocumentMinus.svelte';
|
|
5
|
+
export { default as DocumentPlus } from './DocumentPlus.svelte';
|
|
6
|
+
export { default as Link } from './Link.svelte';
|
|
7
|
+
export { default as Moon } from './Moon.svelte';
|
|
8
|
+
export { default as PauseCircle } from './PauseCircle.svelte';
|
|
9
|
+
export { default as Pencil } from './Pencil.svelte';
|
|
10
|
+
export { default as PlayCircle } from './PlayCircle.svelte';
|
|
11
|
+
export { default as Sun } from './Sun.svelte';
|
|
12
|
+
export { default as Trash } from './Trash.svelte';
|
|
13
|
+
export { default as WrenchScrewdriver } from './WrenchScrewdriver.svelte';
|
|
14
|
+
export { default as Xmark } from './Xmark.svelte';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * as actions from './actions.js';
|
|
2
|
+
export * as client from './client.js';
|
|
3
|
+
export { default as ThemeButton } from './components/ThemeButton.svelte';
|
|
4
|
+
export { default as Toast } from './components/Toast.svelte';
|
|
5
|
+
export * as icons from './components/icons/index.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * as actions from './actions.js';
|
|
2
|
+
export * as client from './client.js';
|
|
3
|
+
export { default as ThemeButton } from './components/ThemeButton.svelte';
|
|
4
|
+
export { default as Toast } from './components/Toast.svelte';
|
|
5
|
+
export * as icons from './components/icons/index.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
export interface NotificationInput {
|
|
3
|
+
type: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Notification {
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const notifications: import("svelte/store").Writable<Notification[]>;
|
|
12
|
+
export declare function addNotification(notification: NotificationInput): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { writable } from 'svelte/store';
|
|
2
|
+
import { nanoid } from 'nanoid';
|
|
3
|
+
const initializer = [];
|
|
4
|
+
export const notifications = writable(initializer);
|
|
5
|
+
export function addNotification(notification) {
|
|
6
|
+
const id = nanoid();
|
|
7
|
+
notifications.update((notifications) => [
|
|
8
|
+
...notifications,
|
|
9
|
+
{
|
|
10
|
+
id,
|
|
11
|
+
...notification,
|
|
12
|
+
},
|
|
13
|
+
]);
|
|
14
|
+
setTimeout(() => {
|
|
15
|
+
notifications.update((notifications) => notifications.filter((n) => n.id !== id));
|
|
16
|
+
}, 5000);
|
|
17
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
button,
|
|
2
|
+
a.button {
|
|
3
|
+
transition: color .3s ease-out, background-color 0.3s ease-out;
|
|
4
|
+
border: none;
|
|
5
|
+
border-radius: 0.2rem;
|
|
6
|
+
padding: calc(2 * var(--spacing-unit));
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
text-align: center;
|
|
9
|
+
font-weight: 700;
|
|
10
|
+
font-size: var(--text-sm);
|
|
11
|
+
line-height: var(--text-sm-lh);
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.button--primary {
|
|
16
|
+
color: var(--white) !important;
|
|
17
|
+
background-color: var(--theme-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.button--primary:hover {
|
|
21
|
+
background-color: var(--theme-primary-hover);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.button--primary:disabled {
|
|
25
|
+
color: var(--theme-neutral-300);
|
|
26
|
+
background-color: var(--theme-neutral-500);
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.button--secondary {
|
|
31
|
+
background-color: var(--theme-neutral-300);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.button--secondary:hover {
|
|
35
|
+
color: var(--white);
|
|
36
|
+
background-color: var(--primary-hover);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.button--icon {
|
|
40
|
+
aspect-ratio: 1;
|
|
41
|
+
height: calc(1.5rem + var(--spacing-unit) * 2);
|
|
42
|
+
width: calc(1.5rem + var(--spacing-unit) * 2);
|
|
43
|
+
color: currentColor;
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
border-radius: var(--rounded-full);
|
|
46
|
+
padding: calc(var(--spacing-unit));
|
|
47
|
+
display: flex;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
transition: all .3s ease-out;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
a.button--icon {
|
|
55
|
+
height: 16px;
|
|
56
|
+
width: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.button--icon:hover {
|
|
60
|
+
color: white;
|
|
61
|
+
background-color: var(--theme-primary);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.button--icon:disabled {
|
|
65
|
+
&:hover {
|
|
66
|
+
background-color: var(--theme-neutral-500);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
color: var(--theme-neutral-300);
|
|
70
|
+
background-color: var(--theme-neutral-500);
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
$palette: (
|
|
2
|
+
inherit: 'inherit',
|
|
3
|
+
current: 'currentColor',
|
|
4
|
+
transparent: 'transparent',
|
|
5
|
+
black: '#000',
|
|
6
|
+
white: '#fff',
|
|
7
|
+
"slate": (50: '#f8fafc',
|
|
8
|
+
100: '#f1f5f9',
|
|
9
|
+
200: '#e2e8f0',
|
|
10
|
+
300: '#cbd5e1',
|
|
11
|
+
400: '#94a3b8',
|
|
12
|
+
500: '#64748b',
|
|
13
|
+
600: '#475569',
|
|
14
|
+
700: '#334155',
|
|
15
|
+
800: '#1e293b',
|
|
16
|
+
900: '#0f172a',
|
|
17
|
+
950: '#020617',
|
|
18
|
+
),
|
|
19
|
+
"gray": (50: '#f9fafb',
|
|
20
|
+
100: '#f3f4f6',
|
|
21
|
+
200: '#e5e7eb',
|
|
22
|
+
300: '#d1d5db',
|
|
23
|
+
400: '#9ca3af',
|
|
24
|
+
500: '#6b7280',
|
|
25
|
+
600: '#4b5563',
|
|
26
|
+
700: '#374151',
|
|
27
|
+
800: '#1f2937',
|
|
28
|
+
900: '#111827',
|
|
29
|
+
950: '#030712',
|
|
30
|
+
),
|
|
31
|
+
"zinc": (50: '#fafafa',
|
|
32
|
+
100: '#f4f4f5',
|
|
33
|
+
200: '#e4e4e7',
|
|
34
|
+
300: '#d4d4d8',
|
|
35
|
+
400: '#a1a1aa',
|
|
36
|
+
500: '#71717a',
|
|
37
|
+
600: '#52525b',
|
|
38
|
+
700: '#3f3f46',
|
|
39
|
+
800: '#27272a',
|
|
40
|
+
900: '#18181b',
|
|
41
|
+
950: '#09090b',
|
|
42
|
+
),
|
|
43
|
+
"neutral": (50: '#fafafa',
|
|
44
|
+
100: '#f5f5f5',
|
|
45
|
+
200: '#e5e5e5',
|
|
46
|
+
300: '#d4d4d4',
|
|
47
|
+
400: '#a3a3a3',
|
|
48
|
+
500: '#737373',
|
|
49
|
+
600: '#525252',
|
|
50
|
+
700: '#404040',
|
|
51
|
+
800: '#262626',
|
|
52
|
+
900: '#171717',
|
|
53
|
+
950: '#0a0a0a',
|
|
54
|
+
),
|
|
55
|
+
"stone": (50: '#fafaf9',
|
|
56
|
+
100: '#f5f5f4',
|
|
57
|
+
200: '#e7e5e4',
|
|
58
|
+
300: '#d6d3d1',
|
|
59
|
+
400: '#a8a29e',
|
|
60
|
+
500: '#78716c',
|
|
61
|
+
600: '#57534e',
|
|
62
|
+
700: '#44403c',
|
|
63
|
+
800: '#292524',
|
|
64
|
+
900: '#1c1917',
|
|
65
|
+
950: '#0c0a09',
|
|
66
|
+
),
|
|
67
|
+
"red": (50: '#fef2f2',
|
|
68
|
+
100: '#fee2e2',
|
|
69
|
+
200: '#fecaca',
|
|
70
|
+
300: '#fca5a5',
|
|
71
|
+
400: '#f87171',
|
|
72
|
+
500: '#ef4444',
|
|
73
|
+
600: '#dc2626',
|
|
74
|
+
700: '#b91c1c',
|
|
75
|
+
800: '#991b1b',
|
|
76
|
+
900: '#7f1d1d',
|
|
77
|
+
950: '#450a0a',
|
|
78
|
+
),
|
|
79
|
+
"orange": (50: '#fff7ed',
|
|
80
|
+
100: '#ffedd5',
|
|
81
|
+
200: '#fed7aa',
|
|
82
|
+
300: '#fdba74',
|
|
83
|
+
400: '#fb923c',
|
|
84
|
+
500: '#f97316',
|
|
85
|
+
600: '#ea580c',
|
|
86
|
+
700: '#c2410c',
|
|
87
|
+
800: '#9a3412',
|
|
88
|
+
900: '#7c2d12',
|
|
89
|
+
950: '#431407',
|
|
90
|
+
),
|
|
91
|
+
"amber": (50: '#fffbeb',
|
|
92
|
+
100: '#fef3c7',
|
|
93
|
+
200: '#fde68a',
|
|
94
|
+
300: '#fcd34d',
|
|
95
|
+
400: '#fbbf24',
|
|
96
|
+
500: '#f59e0b',
|
|
97
|
+
600: '#d97706',
|
|
98
|
+
700: '#b45309',
|
|
99
|
+
800: '#92400e',
|
|
100
|
+
900: '#78350f',
|
|
101
|
+
950: '#451a03',
|
|
102
|
+
),
|
|
103
|
+
"yellow": (50: '#fefce8',
|
|
104
|
+
100: '#fef9c3',
|
|
105
|
+
200: '#fef08a',
|
|
106
|
+
300: '#fde047',
|
|
107
|
+
400: '#facc15',
|
|
108
|
+
500: '#eab308',
|
|
109
|
+
600: '#ca8a04',
|
|
110
|
+
700: '#a16207',
|
|
111
|
+
800: '#854d0e',
|
|
112
|
+
900: '#713f12',
|
|
113
|
+
950: '#422006',
|
|
114
|
+
),
|
|
115
|
+
"lime": (50: '#f7fee7',
|
|
116
|
+
100: '#ecfccb',
|
|
117
|
+
200: '#d9f99d',
|
|
118
|
+
300: '#bef264',
|
|
119
|
+
400: '#a3e635',
|
|
120
|
+
500: '#84cc16',
|
|
121
|
+
600: '#65a30d',
|
|
122
|
+
700: '#4d7c0f',
|
|
123
|
+
800: '#3f6212',
|
|
124
|
+
900: '#365314',
|
|
125
|
+
950: '#1a2e05',
|
|
126
|
+
),
|
|
127
|
+
"green": (50: '#f0fdf4',
|
|
128
|
+
100: '#dcfce7',
|
|
129
|
+
200: '#bbf7d0',
|
|
130
|
+
300: '#86efac',
|
|
131
|
+
400: '#4ade80',
|
|
132
|
+
500: '#22c55e',
|
|
133
|
+
600: '#16a34a',
|
|
134
|
+
700: '#15803d',
|
|
135
|
+
800: '#166534',
|
|
136
|
+
900: '#14532d',
|
|
137
|
+
950: '#052e16',
|
|
138
|
+
),
|
|
139
|
+
"emerald": (50: '#ecfdf5',
|
|
140
|
+
100: '#d1fae5',
|
|
141
|
+
200: '#a7f3d0',
|
|
142
|
+
300: '#6ee7b7',
|
|
143
|
+
400: '#34d399',
|
|
144
|
+
500: '#10b981',
|
|
145
|
+
600: '#059669',
|
|
146
|
+
700: '#047857',
|
|
147
|
+
800: '#065f46',
|
|
148
|
+
900: '#064e3b',
|
|
149
|
+
950: '#022c22',
|
|
150
|
+
),
|
|
151
|
+
"teal": (50: '#f0fdfa',
|
|
152
|
+
100: '#ccfbf1',
|
|
153
|
+
200: '#99f6e4',
|
|
154
|
+
300: '#5eead4',
|
|
155
|
+
400: '#2dd4bf',
|
|
156
|
+
500: '#14b8a6',
|
|
157
|
+
600: '#0d9488',
|
|
158
|
+
700: '#0f766e',
|
|
159
|
+
800: '#115e59',
|
|
160
|
+
900: '#134e4a',
|
|
161
|
+
950: '#042f2e',
|
|
162
|
+
),
|
|
163
|
+
"cyan": (50: '#ecfeff',
|
|
164
|
+
100: '#cffafe',
|
|
165
|
+
200: '#a5f3fc',
|
|
166
|
+
300: '#67e8f9',
|
|
167
|
+
400: '#22d3ee',
|
|
168
|
+
500: '#06b6d4',
|
|
169
|
+
600: '#0891b2',
|
|
170
|
+
700: '#0e7490',
|
|
171
|
+
800: '#155e75',
|
|
172
|
+
900: '#164e63',
|
|
173
|
+
950: '#083344',
|
|
174
|
+
),
|
|
175
|
+
"sky": (50: '#f0f9ff',
|
|
176
|
+
100: '#e0f2fe',
|
|
177
|
+
200: '#bae6fd',
|
|
178
|
+
300: '#7dd3fc',
|
|
179
|
+
400: '#38bdf8',
|
|
180
|
+
500: '#0ea5e9',
|
|
181
|
+
600: '#0284c7',
|
|
182
|
+
700: '#0369a1',
|
|
183
|
+
800: '#075985',
|
|
184
|
+
900: '#0c4a6e',
|
|
185
|
+
950: '#082f49',
|
|
186
|
+
),
|
|
187
|
+
"blue": (50: '#eff6ff',
|
|
188
|
+
100: '#dbeafe',
|
|
189
|
+
200: '#bfdbfe',
|
|
190
|
+
300: '#93c5fd',
|
|
191
|
+
400: '#60a5fa',
|
|
192
|
+
500: '#3b82f6',
|
|
193
|
+
600: '#2563eb',
|
|
194
|
+
700: '#1d4ed8',
|
|
195
|
+
800: '#1e40af',
|
|
196
|
+
900: '#1e3a8a',
|
|
197
|
+
950: '#172554',
|
|
198
|
+
),
|
|
199
|
+
"indigo": (50: '#eef2ff',
|
|
200
|
+
100: '#e0e7ff',
|
|
201
|
+
200: '#c7d2fe',
|
|
202
|
+
300: '#a5b4fc',
|
|
203
|
+
400: '#818cf8',
|
|
204
|
+
500: '#6366f1',
|
|
205
|
+
600: '#4f46e5',
|
|
206
|
+
700: '#4338ca',
|
|
207
|
+
800: '#3730a3',
|
|
208
|
+
900: '#312e81',
|
|
209
|
+
950: '#1e1b4b',
|
|
210
|
+
),
|
|
211
|
+
"violet": (50: '#f5f3ff',
|
|
212
|
+
100: '#ede9fe',
|
|
213
|
+
200: '#ddd6fe',
|
|
214
|
+
300: '#c4b5fd',
|
|
215
|
+
400: '#a78bfa',
|
|
216
|
+
500: '#8b5cf6',
|
|
217
|
+
600: '#7c3aed',
|
|
218
|
+
700: '#6d28d9',
|
|
219
|
+
800: '#5b21b6',
|
|
220
|
+
900: '#4c1d95',
|
|
221
|
+
950: '#2e1065',
|
|
222
|
+
),
|
|
223
|
+
"purple": (50: '#faf5ff',
|
|
224
|
+
100: '#f3e8ff',
|
|
225
|
+
200: '#e9d5ff',
|
|
226
|
+
300: '#d8b4fe',
|
|
227
|
+
400: '#c084fc',
|
|
228
|
+
500: '#a855f7',
|
|
229
|
+
600: '#9333ea',
|
|
230
|
+
700: '#7e22ce',
|
|
231
|
+
800: '#6b21a8',
|
|
232
|
+
900: '#581c87',
|
|
233
|
+
950: '#3b0764',
|
|
234
|
+
),
|
|
235
|
+
"fuchsia": (50: '#fdf4ff',
|
|
236
|
+
100: '#fae8ff',
|
|
237
|
+
200: '#f5d0fe',
|
|
238
|
+
300: '#f0abfc',
|
|
239
|
+
400: '#e879f9',
|
|
240
|
+
500: '#d946ef',
|
|
241
|
+
600: '#c026d3',
|
|
242
|
+
700: '#a21caf',
|
|
243
|
+
800: '#86198f',
|
|
244
|
+
900: '#701a75',
|
|
245
|
+
950: '#4a044e',
|
|
246
|
+
),
|
|
247
|
+
"pink": (50: '#fdf2f8',
|
|
248
|
+
100: '#fce7f3',
|
|
249
|
+
200: '#fbcfe8',
|
|
250
|
+
300: '#f9a8d4',
|
|
251
|
+
400: '#f472b6',
|
|
252
|
+
500: '#ec4899',
|
|
253
|
+
600: '#db2777',
|
|
254
|
+
700: '#be185d',
|
|
255
|
+
800: '#9d174d',
|
|
256
|
+
900: '#831843',
|
|
257
|
+
950: '#500724',
|
|
258
|
+
),
|
|
259
|
+
"rose": (50: '#fff1f2',
|
|
260
|
+
100: '#ffe4e6',
|
|
261
|
+
200: '#fecdd3',
|
|
262
|
+
300: '#fda4af',
|
|
263
|
+
400: '#fb7185',
|
|
264
|
+
500: '#f43f5e',
|
|
265
|
+
600: '#e11d48',
|
|
266
|
+
700: '#be123c',
|
|
267
|
+
800: '#9f1239',
|
|
268
|
+
900: '#881337',
|
|
269
|
+
950: '#4c0519',
|
|
270
|
+
),
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
:root {
|
|
274
|
+
--white: white;
|
|
275
|
+
--black: black;
|
|
276
|
+
--transparent: transparent;
|
|
277
|
+
|
|
278
|
+
@each $color, $shades in $palette {
|
|
279
|
+
@each $shade, $value in $shades {
|
|
280
|
+
--#{""+$color}-#{$shade}: #{$value};
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|