@intechstudio/grid-uikit 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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Grid UI Kit
2
+
3
+ The UI elements and configurations for projects used by the Grid Ecosystem.
4
+
5
+ ## Developing
6
+
7
+ When developing this package, the library should be linked using the `npm link` command, which will overwrite the existing folder from node_modules with the locally available package.
@@ -0,0 +1,9 @@
1
+ <script>export let border = "transparent";
2
+ </script>
3
+
4
+ <div
5
+ class="py-4 border {border !== 'transparent' ? 'px-4' : ''} {'border-' +
6
+ border}"
7
+ >
8
+ <slot />
9
+ </div>
@@ -0,0 +1,18 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ border?: string | undefined;
5
+ };
6
+ events: {
7
+ [evt: string]: CustomEvent<any>;
8
+ };
9
+ slots: {
10
+ default: {};
11
+ };
12
+ };
13
+ export type BlockProps = typeof __propDef.props;
14
+ export type BlockEvents = typeof __propDef.events;
15
+ export type BlockSlots = typeof __propDef.slots;
16
+ export default class Block extends SvelteComponent<BlockProps, BlockEvents, BlockSlots> {
17
+ }
18
+ export {};
@@ -0,0 +1,5 @@
1
+ <script></script>
2
+
3
+ <div class="text-white text-opacity-60 py-2">
4
+ <slot />
5
+ </div>
@@ -0,0 +1,16 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: Record<string, never>;
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {
8
+ default: {};
9
+ };
10
+ };
11
+ export type BlockBodyProps = typeof __propDef.props;
12
+ export type BlockBodyEvents = typeof __propDef.events;
13
+ export type BlockBodySlots = typeof __propDef.slots;
14
+ export default class BlockBody extends SvelteComponent<BlockBodyProps, BlockBodyEvents, BlockBodySlots> {
15
+ }
16
+ export {};
@@ -0,0 +1,5 @@
1
+ <script></script>
2
+
3
+ <div class="flex flex-row w-full gap-x-4 py-2">
4
+ <slot />
5
+ </div>
@@ -0,0 +1,16 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: Record<string, never>;
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {
8
+ default: {};
9
+ };
10
+ };
11
+ export type BlockRowProps = typeof __propDef.props;
12
+ export type BlockRowEvents = typeof __propDef.events;
13
+ export type BlockRowSlots = typeof __propDef.slots;
14
+ export default class BlockRow extends SvelteComponent<BlockRowProps, BlockRowEvents, BlockRowSlots> {
15
+ }
16
+ export {};
@@ -0,0 +1,5 @@
1
+ <script></script>
2
+
3
+ <div class="text-white py-2">
4
+ <slot />
5
+ </div>
@@ -0,0 +1,16 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: Record<string, never>;
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {
8
+ default: {};
9
+ };
10
+ };
11
+ export type BlockTitleProps = typeof __propDef.props;
12
+ export type BlockTitleEvents = typeof __propDef.events;
13
+ export type BlockTitleSlots = typeof __propDef.slots;
14
+ export default class BlockTitle extends SvelteComponent<BlockTitleProps, BlockTitleEvents, BlockTitleSlots> {
15
+ }
16
+ export {};
@@ -0,0 +1,47 @@
1
+ <script>import { createCheckbox, melt } from "@melt-ui/svelte";
2
+ export let target;
3
+ export let title;
4
+ const {
5
+ elements: { root, input },
6
+ helpers: { isChecked, isIndeterminate },
7
+ states: { checked }
8
+ } = createCheckbox({
9
+ defaultChecked: target
10
+ });
11
+ let oldTarget;
12
+ $: {
13
+ if (target !== oldTarget) {
14
+ $checked = target;
15
+ oldTarget = target;
16
+ }
17
+ if (target !== $checked) {
18
+ oldTarget = target = $checked;
19
+ }
20
+ }
21
+ </script>
22
+
23
+ <label
24
+ class="my-4 bg-black bg-opacity-10 border border-black border-opacity-20 group flex text-white items-center cursor-pointer p-2"
25
+ >
26
+ <button {...$root} use:root class="">
27
+ <div
28
+ class="relative flex items-center justify-center rounded border w-6 h-6"
29
+ >
30
+ <div
31
+ class="{target
32
+ ? 'block'
33
+ : 'hidden'} absolute rounded-sm bg-white h-3 w-3"
34
+ />
35
+ </div>
36
+
37
+ <input {...$input} use:input />
38
+ </button>
39
+
40
+ <div
41
+ class="pl-2 text-white group-hover:text-opacity-100 {target
42
+ ? 'text-opacity-100'
43
+ : 'text-opacity-80'}"
44
+ >
45
+ {title}
46
+ </div>
47
+ </label>
@@ -0,0 +1,17 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ target: any;
5
+ title: any;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export type MeltCheckboxProps = typeof __propDef.props;
13
+ export type MeltCheckboxEvents = typeof __propDef.events;
14
+ export type MeltCheckboxSlots = typeof __propDef.slots;
15
+ export default class MeltCheckbox extends SvelteComponent<MeltCheckboxProps, MeltCheckboxEvents, MeltCheckboxSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,95 @@
1
+ <script>import { createRadioGroup, melt } from "@melt-ui/svelte";
2
+ import { writable } from "svelte/store";
3
+ export let options;
4
+ export let target;
5
+ export let orientation = "vertical";
6
+ export let style = "radio";
7
+ export let size = "auto";
8
+ const {
9
+ elements: { root, item },
10
+ helpers: { isChecked },
11
+ states: { value }
12
+ } = createRadioGroup({
13
+ defaultValue: target,
14
+ orientation
15
+ });
16
+ let oldTarget;
17
+ $: {
18
+ if (target.toString() !== oldTarget) {
19
+ $value = target.toString();
20
+ oldTarget = target.toString();
21
+ }
22
+ if (target.toString() !== $value) {
23
+ oldTarget = $value;
24
+ if ($value === "true") {
25
+ target = true;
26
+ } else if ($value === "false") {
27
+ target = false;
28
+ } else if ($value !== "" && !isNaN(Number($value))) {
29
+ target = Number($value);
30
+ } else {
31
+ target = $value;
32
+ }
33
+ }
34
+ }
35
+ </script>
36
+
37
+ <div
38
+ {...$root}
39
+ use:root
40
+ class="text-white overflow-auto
41
+ {size == 'full' && orientation == 'horizontal' ? 'w-full' : ''}
42
+ {orientation === 'vertical'
43
+ ? 'grid grid-flow-row my-2 gap-4'
44
+ : 'grid grid-flow-col'}
45
+ {style === 'button' ? 'gap-4' : ''}
46
+ {style !== 'button' && orientation !== 'vertical'
47
+ ? 'border border-black border-opacity-20 bg-black bg-opacity-10'
48
+ : ''} py-2"
49
+ >
50
+ {#each options as option}
51
+ <!-- Convert value to string in case it was originally boolean -->
52
+ {@const value = option.value.toString()}
53
+ {@const title = option.title}
54
+ <label
55
+ class="
56
+ {orientation === 'vertical'
57
+ ? 'border border-black border-opacity-20 bg-black bg-opacity-10 py-2'
58
+ : ''}
59
+ group cursor-pointer flex items-center {style !== 'button' ? 'px-2' : ''}"
60
+ >
61
+ {#if style === "radio"}
62
+ <button {...$item(value)} use:item id={title}>
63
+ <div
64
+ class="relative flex items-center justify-center rounded-full border w-6 h-6 mr-3"
65
+ >
66
+ <div
67
+ class="{$isChecked(value)
68
+ ? 'block'
69
+ : 'hidden'} absolute rounded-full bg-white h-3 w-3"
70
+ />
71
+ </div>
72
+ </button>
73
+
74
+ <span id="{title}-label">{title}</span>
75
+ {/if}
76
+ {#if style === "button"}
77
+ <button
78
+ {...$item(value)}
79
+ use:item
80
+ id={title}
81
+ class="relative px-2 py-1 w-full rounded bg-black bg-opacity-10 border border-black border-opacity-40"
82
+ class:bg-opacity-60={$isChecked(value)}
83
+ class:hover:bg-opacity-40={!$isChecked(value)}
84
+ >
85
+ {#if typeof title !== "undefined"}
86
+ <span id="{title}-label">{title}</span>
87
+ {:else}
88
+ <span class="invisible">N/A</span>
89
+ {/if}
90
+ <slot name="item" {value} />
91
+ </button>
92
+ {/if}
93
+ </label>
94
+ {/each}
95
+ </div>
@@ -0,0 +1,31 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ options: {
5
+ title: string;
6
+ value: string | boolean | number;
7
+ }[];
8
+ target: any;
9
+ orientation?: "vertical" | "horizontal" | undefined;
10
+ style?: "button" | "radio" | undefined;
11
+ size?: "auto" | "full" | undefined;
12
+ };
13
+ events: {
14
+ [evt: string]: CustomEvent<any>;
15
+ };
16
+ slots: {
17
+ item: {
18
+ value: {
19
+ update: (updater: import("svelte/store").Updater<string>, sideEffect?: ((newValue: string) => void) | undefined) => void;
20
+ set: (this: void, value: string) => void;
21
+ subscribe(this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined): import("svelte/store").Unsubscriber;
22
+ };
23
+ };
24
+ };
25
+ };
26
+ export type MeltRadioProps = typeof __propDef.props;
27
+ export type MeltRadioEvents = typeof __propDef.events;
28
+ export type MeltRadioSlots = typeof __propDef.slots;
29
+ export default class MeltRadio extends SvelteComponent<MeltRadioProps, MeltRadioEvents, MeltRadioSlots> {
30
+ }
31
+ export {};
@@ -0,0 +1,91 @@
1
+ <script>import { createSelect, melt } from "@melt-ui/svelte";
2
+ export let options;
3
+ export let target;
4
+ let oldTarget;
5
+ const {
6
+ elements: { trigger, menu, option },
7
+ states: { selected, selectedLabel, open },
8
+ helpers: { isSelected }
9
+ } = createSelect({
10
+ forceVisible: true,
11
+ positioning: {
12
+ placement: "bottom",
13
+ fitViewport: true,
14
+ sameWidth: true
15
+ },
16
+ defaultSelected: { value: target.value, label: target.title }
17
+ });
18
+ $: {
19
+ if ($selected) {
20
+ handleSelectionChange();
21
+ }
22
+ }
23
+ function handleSelectionChange() {
24
+ if (typeof $selected === "undefined") {
25
+ if (typeof target !== "undefined") {
26
+ selected.set(() => {
27
+ const s = { value: void 0, label: void 0 };
28
+ const item = options.find((e) => {
29
+ return e.value === target;
30
+ });
31
+ if (typeof item !== "undefined") {
32
+ s.value = target;
33
+ s.label = item.title;
34
+ oldTarget = target;
35
+ console.log(s);
36
+ return s;
37
+ }
38
+ });
39
+ }
40
+ } else {
41
+ if (target !== oldTarget) {
42
+ selected.update((s) => {
43
+ const item = options.find((e) => {
44
+ return e.value === target;
45
+ });
46
+ if (typeof item !== "undefined") {
47
+ s.value = target;
48
+ s.label = item.title;
49
+ oldTarget = target;
50
+ return s;
51
+ }
52
+ });
53
+ }
54
+ if (target !== $selected.value) {
55
+ oldTarget = target = $selected.value;
56
+ }
57
+ }
58
+ }
59
+ </script>
60
+
61
+ <div class="flex flex-col gap-1">
62
+ <button
63
+ {...$trigger}
64
+ use:trigger
65
+ class="w-full flex flex-row border border-black p-2"
66
+ >
67
+ <div class="flex flex-grow">{$selectedLabel || " "}</div>
68
+ <div class="flex">&#9660;</div>
69
+ </button>
70
+ {#if $open}
71
+ <div
72
+ {...$menu}
73
+ use:menu
74
+ class="bg-gray-900 text-white/80 border border-white/50 rounded z-10"
75
+ >
76
+ {#each options as item}
77
+ <div
78
+ {...$option({ value: item.value, label: item.title })}
79
+ use:option
80
+ class="cursor-pointer hover:bg-white/40 p-2 hover:text-white {$isSelected(
81
+ item.value
82
+ )
83
+ ? 'bg-white/10'
84
+ : ' '}"
85
+ >
86
+ {item.title}
87
+ </div>
88
+ {/each}
89
+ </div>
90
+ {/if}
91
+ </div>
@@ -0,0 +1,17 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ options: any;
5
+ target: any;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export type MeltSelectProps = typeof __propDef.props;
13
+ export type MeltSelectEvents = typeof __propDef.events;
14
+ export type MeltSelectSlots = typeof __propDef.slots;
15
+ export default class MeltSelect extends SvelteComponent<MeltSelectProps, MeltSelectEvents, MeltSelectSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,39 @@
1
+ <script>import { createSlider, melt } from "@melt-ui/svelte";
2
+ export let target;
3
+ export let min;
4
+ export let max;
5
+ export let step;
6
+ const {
7
+ elements: { root, range, thumb },
8
+ states: { value }
9
+ } = createSlider({
10
+ min,
11
+ max,
12
+ step
13
+ });
14
+ let oldTarget;
15
+ $: {
16
+ if (target !== oldTarget) {
17
+ $value[0] = target;
18
+ oldTarget = target;
19
+ }
20
+ if (target !== $value[0]) {
21
+ oldTarget = target = $value[0];
22
+ }
23
+ }
24
+ </script>
25
+
26
+ <span {...$root} use:root class="relative flex w-[200px] items-center h-[26px]">
27
+ <span class="block h-[3px] w-full bg-white rounded-full h-[8px]">
28
+ <span
29
+ {...$range}
30
+ use:range
31
+ class="h-[3px] bg-neutral-500 rounded-full h-[8px]"
32
+ />
33
+ </span>
34
+ <span
35
+ {...$thumb()}
36
+ use:thumb
37
+ class="block h-5 w-5 rounded-full bg-neutral-500 focus:ring-2 focus:ring-black/40"
38
+ />
39
+ </span>
@@ -0,0 +1,19 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ target: any;
5
+ min: any;
6
+ max: any;
7
+ step: any;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {};
13
+ };
14
+ export type MeltSliderProps = typeof __propDef.props;
15
+ export type MeltSliderEvents = typeof __propDef.events;
16
+ export type MeltSliderSlots = typeof __propDef.slots;
17
+ export default class MeltSlider extends SvelteComponent<MeltSliderProps, MeltSliderEvents, MeltSliderSlots> {
18
+ }
19
+ export {};
@@ -0,0 +1,17 @@
1
+ <script>export let click;
2
+ export let border = "black";
3
+ export let title;
4
+ </script>
5
+
6
+ <button
7
+ on:click={() => {
8
+ if (typeof click === "undefined") {
9
+ return;
10
+ }
11
+ click();
12
+ }}
13
+ class="px-8 py-1 rounded bg-black bg-opacity-20 border border {'border-' +
14
+ border} border-opacity-40 hover:bg-opacity-60"
15
+ >
16
+ {title}
17
+ </button>
@@ -0,0 +1,18 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ click: any;
5
+ border?: string | undefined;
6
+ title: string;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {};
12
+ };
13
+ export type MoltenButtonProps = typeof __propDef.props;
14
+ export type MoltenButtonEvents = typeof __propDef.events;
15
+ export type MoltenButtonSlots = typeof __propDef.slots;
16
+ export default class MoltenButton extends SvelteComponent<MoltenButtonProps, MoltenButtonEvents, MoltenButtonSlots> {
17
+ }
18
+ export {};
@@ -0,0 +1,9 @@
1
+ <script>export let disabled = false;
2
+ export let target;
3
+ </script>
4
+
5
+ <input
6
+ {disabled}
7
+ class="w-full flex px-2 py-2 text-white text-opacity-80 flex-grow bg-black bg-opacity-10 border border-black border-opacity-20 focus:border-green-500 focus:outline-none"
8
+ bind:value={target}
9
+ />
@@ -0,0 +1,17 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ disabled?: boolean | undefined;
5
+ target: any;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export type MoltenInputProps = typeof __propDef.props;
13
+ export type MoltenInputEvents = typeof __propDef.events;
14
+ export type MoltenInputSlots = typeof __propDef.slots;
15
+ export default class MoltenInput extends SvelteComponent<MoltenInputProps, MoltenInputEvents, MoltenInputSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,10 @@
1
+ export { default as BlockBody } from './BlockBody.svelte';
2
+ export { default as BlockTitle } from './BlockTitle.svelte';
3
+ export { default as BlockRow } from './BlockRow.svelte';
4
+ export { default as Block } from './Block.svelte';
5
+ export { default as MeltCheckbox } from './MeltCheckbox.svelte';
6
+ export { default as MeltRadio } from './MeltRadio.svelte';
7
+ export { default as MeltSlider } from './MeltSlider.svelte';
8
+ export { default as MeltSelect } from './MeltSelect.svelte';
9
+ export { default as MoltenButton } from './MoltenButton.svelte';
10
+ export { default as MoltenInput } from './MoltenInput.svelte';
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ export { default as BlockBody } from './BlockBody.svelte';
2
+ export { default as BlockTitle } from './BlockTitle.svelte';
3
+ export { default as BlockRow } from './BlockRow.svelte';
4
+ export { default as Block } from './Block.svelte';
5
+ export { default as MeltCheckbox } from './MeltCheckbox.svelte';
6
+ export { default as MeltRadio } from './MeltRadio.svelte';
7
+ export { default as MeltSlider } from './MeltSlider.svelte';
8
+ export { default as MeltSelect } from './MeltSelect.svelte';
9
+ export { default as MoltenButton } from './MoltenButton.svelte';
10
+ export { default as MoltenInput } from './MoltenInput.svelte';
@@ -0,0 +1,269 @@
1
+ export let content: string[];
2
+ export let darkMode: string;
3
+ export namespace theme {
4
+ namespace fontFamily {
5
+ let body: string[];
6
+ }
7
+ namespace extend {
8
+ export namespace transitionProperty {
9
+ let width: string;
10
+ }
11
+ export let margin: {
12
+ 14: string;
13
+ };
14
+ export let zIndex: {
15
+ "-10": string;
16
+ };
17
+ let fontFamily_1: {
18
+ mono: string;
19
+ aldo: string;
20
+ "roboto-sans": string;
21
+ "gt-pressura": string;
22
+ roboto: string;
23
+ "roboto-mono": string;
24
+ };
25
+ export { fontFamily_1 as fontFamily };
26
+ export namespace cursor {
27
+ let helper: string;
28
+ }
29
+ export let minHeight: {
30
+ 200: string;
31
+ 300: string;
32
+ };
33
+ export let height: {
34
+ "16px": string;
35
+ "18px": string;
36
+ 32: string;
37
+ 14: string;
38
+ 64: string;
39
+ 72: string;
40
+ 128: string;
41
+ 600: string;
42
+ 300: string;
43
+ calc: string;
44
+ };
45
+ let width_1: {
46
+ "16px": string;
47
+ "18px": string;
48
+ 26: string;
49
+ };
50
+ export { width_1 as width };
51
+ export let inset: {
52
+ "1/2": string;
53
+ 1: string;
54
+ "9/10": string;
55
+ "-1": string;
56
+ };
57
+ export let borderWidth: {
58
+ 8: string;
59
+ 16: string;
60
+ };
61
+ export namespace colors {
62
+ let black: "#000";
63
+ let white: "#fff";
64
+ let gray: {
65
+ '50': "#fafafa";
66
+ '100': "#f5f5f5";
67
+ '200': "#e5e5e5";
68
+ '300': "#d4d4d4";
69
+ '400': "#a3a3a3";
70
+ '500': "#737373";
71
+ '600': "#525252";
72
+ '700': "#404040";
73
+ '800': "#262626";
74
+ '900': "#171717";
75
+ '950': "#0a0a0a";
76
+ };
77
+ let green: {
78
+ '50': "#f0fdf4";
79
+ '100': "#dcfce7";
80
+ '200': "#bbf7d0";
81
+ '300': "#86efac";
82
+ '400': "#4ade80";
83
+ '500': "#22c55e";
84
+ '600': "#16a34a";
85
+ '700': "#15803d";
86
+ '800': "#166534";
87
+ '900': "#14532d";
88
+ '950': "#052e16";
89
+ };
90
+ let red: {
91
+ '50': "#fff1f2";
92
+ '100': "#ffe4e6";
93
+ '200': "#fecdd3";
94
+ '300': "#fda4af";
95
+ '400': "#fb7185";
96
+ '500': "#f43f5e";
97
+ '600': "#e11d48";
98
+ '700': "#be123c";
99
+ '800': "#9f1239";
100
+ '900': "#881337";
101
+ '950': "#4c0519";
102
+ };
103
+ let yellow: {
104
+ '50': "#fffbeb";
105
+ '100': "#fef3c7";
106
+ '200': "#fde68a";
107
+ '300': "#fcd34d";
108
+ '400': "#fbbf24";
109
+ '500': "#f59e0b";
110
+ '600': "#d97706";
111
+ '700': "#b45309";
112
+ '800': "#92400e";
113
+ '900': "#78350f";
114
+ '950': "#451a03";
115
+ };
116
+ let pink: {
117
+ '50': "#fdf2f8";
118
+ '100': "#fce7f3";
119
+ '200': "#fbcfe8";
120
+ '300': "#f9a8d4";
121
+ '400': "#f472b6";
122
+ '500': "#ec4899";
123
+ '600': "#db2777";
124
+ '700': "#be185d";
125
+ '800': "#9d174d";
126
+ '900': "#831843";
127
+ '950': "#500724";
128
+ };
129
+ let purple: {
130
+ '50': "#faf5ff";
131
+ '100': "#f3e8ff";
132
+ '200': "#e9d5ff";
133
+ '300': "#d8b4fe";
134
+ '400': "#c084fc";
135
+ '500': "#a855f7";
136
+ '600': "#9333ea";
137
+ '700': "#7e22ce";
138
+ '800': "#6b21a8";
139
+ '900': "#581c87";
140
+ '950': "#3b0764";
141
+ };
142
+ let orange: {
143
+ '50': "#fff7ed";
144
+ '100': "#ffedd5";
145
+ '200': "#fed7aa";
146
+ '300': "#fdba74";
147
+ '400': "#fb923c";
148
+ '500': "#f97316";
149
+ '600': "#ea580c";
150
+ '700': "#c2410c";
151
+ '800': "#9a3412";
152
+ '900': "#7c2d12";
153
+ '950': "#431407";
154
+ };
155
+ let primary: {
156
+ DEFAULT: string;
157
+ 100: string;
158
+ 200: string;
159
+ 300: string;
160
+ 400: string;
161
+ 500: string;
162
+ 600: string;
163
+ 700: string;
164
+ 800: string;
165
+ 900: string;
166
+ };
167
+ let warning: {
168
+ DEFAULT: string;
169
+ "desaturate-20": string;
170
+ "desaturate-10": string;
171
+ "saturate-10": string;
172
+ "saturate-20": string;
173
+ };
174
+ let error: {
175
+ DEFAULT: string;
176
+ "desaturate-10": string;
177
+ "desaturate-20": string;
178
+ "saturate-10": string;
179
+ "saturate-20": string;
180
+ };
181
+ let pick: {
182
+ DEFAULT: string;
183
+ "desaturate-10": string;
184
+ "desaturate-20": string;
185
+ "saturate-10": string;
186
+ "saturate-20": string;
187
+ complementer: string;
188
+ };
189
+ let select: {
190
+ DEFAULT: string;
191
+ "saturate-10": string;
192
+ "saturate-20": string;
193
+ "desaturate-10": string;
194
+ "desaturate-20": string;
195
+ };
196
+ let commit: {
197
+ DEFAULT: string;
198
+ "saturate-10": string;
199
+ "saturate-20": string;
200
+ "desaturate-10": string;
201
+ "desaturate-20": string;
202
+ };
203
+ namespace unsavedchange {
204
+ let DEFAULT: string;
205
+ }
206
+ let secondary: {
207
+ DEFAULT: string;
208
+ "brightness-90": string;
209
+ "brightness-80": string;
210
+ "brightness-70": string;
211
+ "brightness-60": string;
212
+ "brightness-50": string;
213
+ "brightness-40": string;
214
+ "brightness-30": string;
215
+ "brightness-20": string;
216
+ "brightness-10": string;
217
+ "darkness-10": string;
218
+ "darkness-20": string;
219
+ "darkness-30": string;
220
+ "darkness-40": string;
221
+ "darkness-50": string;
222
+ };
223
+ let normal: string;
224
+ namespace thirdery {
225
+ let DEFAULT_1: string;
226
+ export { DEFAULT_1 as DEFAULT };
227
+ }
228
+ let highlight: {
229
+ DEFAULT: string;
230
+ 100: string;
231
+ 200: string;
232
+ 300: string;
233
+ 400: string;
234
+ 500: string;
235
+ 600: string;
236
+ };
237
+ let important: {
238
+ DEFAULT: string;
239
+ 100: string;
240
+ 200: string;
241
+ 300: string;
242
+ 400: string;
243
+ 500: string;
244
+ 600: string;
245
+ 700: string;
246
+ };
247
+ namespace configs {
248
+ let cb: string;
249
+ let glc: string;
250
+ let glp: string;
251
+ let l: string;
252
+ let gks: string;
253
+ let gms: string;
254
+ let sbc: string;
255
+ let sec: string;
256
+ let glut: string;
257
+ }
258
+ let newPrimary: {
259
+ 100: string;
260
+ 200: string;
261
+ 300: string;
262
+ 400: string;
263
+ 500: string;
264
+ 600: string;
265
+ };
266
+ }
267
+ }
268
+ }
269
+ export let plugins: never[];
@@ -0,0 +1,191 @@
1
+ const colors = require("tailwindcss/colors");
2
+ const config = {
3
+ content: [
4
+ "./src/**/*.{html,js,svelte,ts}",
5
+ "./node_modules/grid-uikit/src/**/*.{html,js,svelte,ts}"
6
+ ],
7
+ darkMode: "class",
8
+ theme: {
9
+ fontFamily: {
10
+ body: ["roboto"],
11
+ },
12
+ extend: {
13
+ transitionProperty: {
14
+ width: "width",
15
+ },
16
+ margin: {
17
+ 14: "3.5rem",
18
+ },
19
+ zIndex: {
20
+ "-10": "-10",
21
+ },
22
+ fontFamily: {
23
+ mono: 'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
24
+ aldo: "Aldo-SemiBold",
25
+ "roboto-sans": "Roboto Sans",
26
+ "gt-pressura": "GT Pressura Pro M Trial",
27
+ roboto: "Roboto",
28
+ "roboto-mono": "Roboto Mono",
29
+ },
30
+ cursor: {
31
+ helper: "help",
32
+ },
33
+ minHeight: {
34
+ 200: "200px",
35
+ 300: "300px",
36
+ },
37
+ height: {
38
+ "16px": "16px",
39
+ "18px": "18px",
40
+ 32: "8rem",
41
+ 14: "3.5rem",
42
+ 64: "16rem",
43
+ 72: "18rem",
44
+ 128: "32rem",
45
+ 600: "600px",
46
+ 300: "300px",
47
+ calc: "calc(100vh - 62px)",
48
+ },
49
+ width: {
50
+ "16px": "16px",
51
+ "18px": "18px",
52
+ 26: "26px",
53
+ },
54
+ inset: {
55
+ "1/2": "50%",
56
+ 1: "1em",
57
+ "9/10": "0.9em",
58
+ "-1": "-1em",
59
+ },
60
+ borderWidth: {
61
+ 8: "8px",
62
+ 16: "16px",
63
+ },
64
+ colors: {
65
+ black: colors.black,
66
+ white: colors.white,
67
+ gray: colors.neutral,
68
+ green: colors.green,
69
+ red: colors.rose,
70
+ yellow: colors.amber,
71
+ pink: colors.pink,
72
+ purple: colors.purple,
73
+ orange: colors.orange,
74
+
75
+ primary: {
76
+ DEFAULT: "#1e2628",
77
+ 100: "#d3dcde",
78
+ 200: "#b6c5c8",
79
+ 300: "#99adb2",
80
+ 400: "#7c969d",
81
+ 500: "#627d83",
82
+ 600: "#4d6166",
83
+ 700: "#374549",
84
+ 800: "#212a2c",
85
+ 900: "#0b0e0f",
86
+ },
87
+ warning: {
88
+ DEFAULT: "#EAB308",
89
+ "desaturate-20": "#FFD2B1",
90
+ "desaturate-10": "#FAB17C",
91
+ "saturate-10": "#EF9E4D",
92
+ "saturate-20": "#EF914D",
93
+ },
94
+ error: {
95
+ DEFAULT: "#DC2626",
96
+ "desaturate-10": "#DC4B4B",
97
+ "desaturate-20": "#DC7474",
98
+ "saturate-10": "#DC0F0F",
99
+ "saturate-20": "#FF0000",
100
+ },
101
+ pick: {
102
+ DEFAULT: "#6B7AFF",
103
+ "desaturate-10": "#8591FF",
104
+ "desaturate-20": "#A9AEFF",
105
+ "saturate-10": "#5263FF",
106
+ "saturate-20": "#1F4AC5",
107
+ complementer: "#FFEE52",
108
+ },
109
+ select: {
110
+ DEFAULT: "#47575F",
111
+ "saturate-10": "#3E545F",
112
+ "saturate-20": "#1A2A31",
113
+ "desaturate-10": "#515A5F",
114
+ "desaturate-20": "#788991",
115
+ },
116
+ commit: {
117
+ DEFAULT: "#0BA484",
118
+ "saturate-10": "#00A482",
119
+ "saturate-20": "#006F53",
120
+ "desaturate-10": "#1BA487",
121
+ "desaturate-20": "#5DDCB9",
122
+ },
123
+ unsavedchange: {
124
+ DEFAULT: "#1D4ED8",
125
+ },
126
+ secondary: {
127
+ DEFAULT: "#2a3439",
128
+ "brightness-90": "#eaebeb",
129
+ "brightness-80": "#d4d6d7",
130
+ "brightness-70": "#bfc2c4",
131
+ "brightness-60": "#aaaeb0",
132
+ "brightness-50": "#959a9c",
133
+ "brightness-40": "#7f8588",
134
+ "brightness-30": "#6a7174",
135
+ "brightness-20": "#555d61",
136
+ "brightness-10": "#3f484d",
137
+ "darkness-10": "#262f33",
138
+ "darkness-20": "#222a2e",
139
+ "darkness-30": "#1d2428",
140
+ "darkness-40": "#191f22",
141
+ "darkness-50": "#151a1d",
142
+ },
143
+ normal: "#cfdbd5",
144
+ thirdery: {
145
+ DEFAULT: "#31313F",
146
+ },
147
+ highlight: {
148
+ DEFAULT: "#CC5B5B",
149
+ 100: "#edc5c5",
150
+ 200: "#e19e9e",
151
+ 300: "#d57777",
152
+ 400: "#c95050",
153
+ 500: "#af3636",
154
+ 600: "#882a2a",
155
+ },
156
+ important: {
157
+ DEFAULT: "#e4d203",
158
+ 100: "#fffde6",
159
+ 200: "#fef8b3",
160
+ 300: "#fdf381",
161
+ 400: "#fdef4f",
162
+ 500: "#fcea1c",
163
+ 600: "#e3d103",
164
+ 700: "#b0a202",
165
+ },
166
+ configs: {
167
+ cb: "#887880",
168
+ glc: "#88A096",
169
+ glp: "#BBAB8B",
170
+ l: "#EF8275",
171
+ gks: "#9AD4D6",
172
+ gms: "#DBCBD8",
173
+ sbc: "#065A82",
174
+ sec: "#963D5A",
175
+ glut: "#78BC61",
176
+ },
177
+ newPrimary: {
178
+ 100: "#525252",
179
+ 200: "#454545",
180
+ 300: "#383838",
181
+ 400: "#2C2C2C",
182
+ 500: "#1F1F1F",
183
+ 600: "#121212",
184
+ },
185
+ },
186
+ },
187
+ },
188
+ plugins: [],
189
+ };
190
+
191
+ module.exports = config;
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@intechstudio/grid-uikit",
3
+ "version": "0.0.1",
4
+ "scripts": {
5
+ "dev": "vite dev",
6
+ "build": "vite build && npm run package",
7
+ "preview": "vite preview",
8
+ "package": "svelte-kit sync && svelte-package && publint",
9
+ "prepublishOnly": "npm run package",
10
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
11
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
12
+ "lint": "prettier --check .",
13
+ "format": "prettier --write ."
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "svelte": "./dist/index.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "!dist/**/*.test.*",
24
+ "!dist/**/*.spec.*"
25
+ ],
26
+ "dependencies": {
27
+ "@melt-ui/svelte": "^0.42.0",
28
+ "tailwindcss": "^3.1.8"
29
+ },
30
+ "peerDependencies": {
31
+ "svelte": "^4.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@sveltejs/adapter-auto": "^3.0.0",
35
+ "@sveltejs/kit": "^2.0.0",
36
+ "@sveltejs/package": "^2.0.0",
37
+ "@sveltejs/vite-plugin-svelte": "^3.0.0",
38
+ "prettier": "^3.1.1",
39
+ "prettier-plugin-svelte": "^3.1.2",
40
+ "publint": "^0.1.9",
41
+ "svelte": "^4.2.7",
42
+ "svelte-check": "^3.6.0",
43
+ "tslib": "^2.4.1",
44
+ "typescript": "^5.0.0",
45
+ "vite": "^5.0.11"
46
+ },
47
+ "svelte": "./dist/index.js",
48
+ "types": "./dist/index.d.ts",
49
+ "type": "module"
50
+ }