@g4rcez/components 0.0.67 → 0.0.69
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/index.css +1 -1
- package/dist/index.js +50 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17470 -14017
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +50 -50
- package/dist/index.umd.js.map +1 -1
- package/dist/preset/src/styles/dark.d.ts.map +1 -1
- package/dist/preset/src/styles/dark.js +3 -1
- package/dist/preset/src/styles/design-tokens.d.ts +9 -0
- package/dist/preset/src/styles/design-tokens.d.ts.map +1 -1
- package/dist/preset/src/styles/design-tokens.js +27 -9
- package/dist/preset/src/styles/light.d.ts.map +1 -1
- package/dist/preset/src/styles/light.js +3 -1
- package/dist/preset/src/styles/theme.types.d.ts +44 -70
- package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
- package/dist/src/components/core/resizable.js +1 -1
- package/dist/src/components/display/alert.d.ts +1 -1
- package/dist/src/components/display/alert.d.ts.map +1 -1
- package/dist/src/components/display/alert.js +1 -1
- package/dist/src/components/display/calendar.js +1 -1
- package/dist/src/components/display/list.d.ts.map +1 -1
- package/dist/src/components/display/list.js +2 -1
- package/dist/src/components/display/notifications.js +1 -1
- package/dist/src/components/display/step.js +1 -1
- package/dist/src/components/display/tabs.js +1 -1
- package/dist/src/components/floating/expand.d.ts +1 -1
- package/dist/src/components/floating/expand.d.ts.map +1 -1
- package/dist/src/components/floating/expand.js +1 -1
- package/dist/src/components/floating/modal.js +1 -1
- package/dist/src/components/floating/toolbar.js +1 -1
- package/dist/src/components/form/autocomplete.d.ts +3 -1
- package/dist/src/components/form/autocomplete.d.ts.map +1 -1
- package/dist/src/components/form/autocomplete.js +28 -32
- package/dist/src/components/form/select.d.ts.map +1 -1
- package/dist/src/components/form/select.js +8 -4
- package/dist/src/components/form/switch.d.ts.map +1 -1
- package/dist/src/components/form/switch.js +1 -1
- package/dist/src/components/form/task-list.d.ts.map +1 -1
- package/dist/src/components/form/task-list.js +2 -1
- package/dist/src/components/form/virtual-autocomplete.d.ts +15 -0
- package/dist/src/components/form/virtual-autocomplete.d.ts.map +1 -0
- package/dist/src/components/form/virtual-autocomplete.js +222 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -0
- package/dist/src/components/table/group.js +1 -1
- package/dist/src/components/table/index.js +1 -1
- package/dist/src/components/table/thead.d.ts.map +1 -1
- package/dist/src/components/table/thead.js +2 -1
- package/dist/src/hooks/use-form.d.ts +309 -18
- package/dist/src/hooks/use-form.d.ts.map +1 -1
- package/dist/src/hooks/use-form.js +327 -90
- package/dist/src/index.d.ts +6 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -4
- package/dist/src/styles/dark.d.ts.map +1 -1
- package/dist/src/styles/dark.js +3 -1
- package/dist/src/styles/design-tokens.d.ts +9 -0
- package/dist/src/styles/design-tokens.d.ts.map +1 -1
- package/dist/src/styles/design-tokens.js +22 -13
- package/dist/src/styles/light.d.ts.map +1 -1
- package/dist/src/styles/light.js +3 -1
- package/dist/src/styles/theme.types.d.ts +44 -70
- package/dist/src/styles/theme.types.d.ts.map +1 -1
- package/package.json +2 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../src/styles/light.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../src/styles/light.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,WAAW,EAAE,YAwLzB,CAAC"}
|
package/dist/src/styles/light.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { rounded, spacing } from "./common";
|
|
2
2
|
export const LIGHT_THEME = {
|
|
3
|
-
name: "light",
|
|
4
3
|
rounded,
|
|
5
4
|
spacing,
|
|
5
|
+
name: "light",
|
|
6
6
|
shadow: {
|
|
7
7
|
floating: "rgba(50, 50, 50, 0.1) 0px 0px 0px 1px, rgba(50, 50, 50, 0.1) 0px 3px 6px, rgba(50, 50, 50, 0.1) 0px 2px 3px",
|
|
8
8
|
},
|
|
@@ -69,6 +69,7 @@ export const LIGHT_THEME = {
|
|
|
69
69
|
border: "hsla(210, 25%, 88%)",
|
|
70
70
|
},
|
|
71
71
|
floating: {
|
|
72
|
+
foreground: "hsla(217, 15%, 20%)",
|
|
72
73
|
background: "hsla(0, 0%, 100%)",
|
|
73
74
|
border: "hsla(210, 25%, 88%)",
|
|
74
75
|
overlay: "hsla(0, 0%, 0%)",
|
|
@@ -77,6 +78,7 @@ export const LIGHT_THEME = {
|
|
|
77
78
|
foreground: "hsla(217, 15%, 20%)",
|
|
78
79
|
background: "hsla(210, 25%, 98%)",
|
|
79
80
|
border: "hsla(200, 1%, 80%)",
|
|
81
|
+
overlay: "hsla(0, 0%, 0%)",
|
|
80
82
|
},
|
|
81
83
|
table: {
|
|
82
84
|
header: "hsla(221, 10%, 90%)",
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
export type GeneralTokens = {
|
|
2
2
|
[K in string]: string | GeneralTokens;
|
|
3
3
|
};
|
|
4
|
-
type ThemeState = "primary" | "warn" | "secondary" | "info" | "danger" | "success" | "neutral";
|
|
4
|
+
export type ThemeState = "primary" | "warn" | "secondary" | "info" | "danger" | "success" | "neutral";
|
|
5
|
+
type BasicTokens = {
|
|
6
|
+
hover: string;
|
|
7
|
+
subtle: string;
|
|
8
|
+
DEFAULT: string;
|
|
9
|
+
foreground: string;
|
|
10
|
+
};
|
|
11
|
+
type ComponentToken = {
|
|
12
|
+
border: string;
|
|
13
|
+
overlay: string;
|
|
14
|
+
background: string;
|
|
15
|
+
foreground: string;
|
|
16
|
+
};
|
|
5
17
|
export type DesignTokens = {
|
|
6
18
|
name: string;
|
|
7
19
|
shadow: Record<"floating", string>;
|
|
@@ -9,6 +21,32 @@ export type DesignTokens = {
|
|
|
9
21
|
spacing: Record<"base" | "lg" | "sm", string>;
|
|
10
22
|
custom?: Record<string, string>;
|
|
11
23
|
colors: {
|
|
24
|
+
disabled: string;
|
|
25
|
+
background: string;
|
|
26
|
+
foreground: string;
|
|
27
|
+
primary: BasicTokens;
|
|
28
|
+
emphasis: BasicTokens;
|
|
29
|
+
tooltip: ComponentToken;
|
|
30
|
+
floating: ComponentToken;
|
|
31
|
+
info: BasicTokens & {
|
|
32
|
+
notification: string;
|
|
33
|
+
};
|
|
34
|
+
warn: BasicTokens & {
|
|
35
|
+
notification: string;
|
|
36
|
+
};
|
|
37
|
+
card: {
|
|
38
|
+
background: string;
|
|
39
|
+
border: string;
|
|
40
|
+
};
|
|
41
|
+
danger: BasicTokens & {
|
|
42
|
+
notification: string;
|
|
43
|
+
};
|
|
44
|
+
secondary: BasicTokens & {
|
|
45
|
+
background: string;
|
|
46
|
+
};
|
|
47
|
+
success: BasicTokens & {
|
|
48
|
+
notification: string;
|
|
49
|
+
};
|
|
12
50
|
tag: Record<ThemeState, {
|
|
13
51
|
text: string;
|
|
14
52
|
bg: string;
|
|
@@ -17,61 +55,16 @@ export type DesignTokens = {
|
|
|
17
55
|
text: string;
|
|
18
56
|
bg: string;
|
|
19
57
|
}>;
|
|
58
|
+
table: {
|
|
59
|
+
border: string;
|
|
60
|
+
header: string;
|
|
61
|
+
background: string;
|
|
62
|
+
};
|
|
20
63
|
alert: Record<ThemeState, {
|
|
21
64
|
text: string;
|
|
22
65
|
bg: string;
|
|
23
66
|
border: string;
|
|
24
67
|
}>;
|
|
25
|
-
foreground: string;
|
|
26
|
-
background: string;
|
|
27
|
-
disabled: string;
|
|
28
|
-
emphasis: {
|
|
29
|
-
foreground: string;
|
|
30
|
-
DEFAULT: string;
|
|
31
|
-
subtle: string;
|
|
32
|
-
hover: string;
|
|
33
|
-
};
|
|
34
|
-
primary: {
|
|
35
|
-
foreground: string;
|
|
36
|
-
DEFAULT: string;
|
|
37
|
-
subtle: string;
|
|
38
|
-
hover: string;
|
|
39
|
-
};
|
|
40
|
-
warn: {
|
|
41
|
-
DEFAULT: string;
|
|
42
|
-
subtle: string;
|
|
43
|
-
hover: string;
|
|
44
|
-
foreground: string;
|
|
45
|
-
notification: string;
|
|
46
|
-
};
|
|
47
|
-
secondary: {
|
|
48
|
-
DEFAULT: string;
|
|
49
|
-
background: string;
|
|
50
|
-
subtle: string;
|
|
51
|
-
hover: string;
|
|
52
|
-
foreground: string;
|
|
53
|
-
};
|
|
54
|
-
info: {
|
|
55
|
-
DEFAULT: string;
|
|
56
|
-
subtle: string;
|
|
57
|
-
hover: string;
|
|
58
|
-
foreground: string;
|
|
59
|
-
notification: string;
|
|
60
|
-
};
|
|
61
|
-
danger: {
|
|
62
|
-
DEFAULT: string;
|
|
63
|
-
subtle: string;
|
|
64
|
-
hover: string;
|
|
65
|
-
foreground: string;
|
|
66
|
-
notification: string;
|
|
67
|
-
};
|
|
68
|
-
success: {
|
|
69
|
-
DEFAULT: string;
|
|
70
|
-
subtle: string;
|
|
71
|
-
hover: string;
|
|
72
|
-
foreground: string;
|
|
73
|
-
notification: string;
|
|
74
|
-
};
|
|
75
68
|
input: {
|
|
76
69
|
border: string;
|
|
77
70
|
placeholder: string;
|
|
@@ -79,25 +72,6 @@ export type DesignTokens = {
|
|
|
79
72
|
"switch-bg": string;
|
|
80
73
|
switch: string;
|
|
81
74
|
};
|
|
82
|
-
card: {
|
|
83
|
-
background: string;
|
|
84
|
-
border: string;
|
|
85
|
-
};
|
|
86
|
-
floating: {
|
|
87
|
-
background: string;
|
|
88
|
-
border: string;
|
|
89
|
-
overlay: string;
|
|
90
|
-
};
|
|
91
|
-
tooltip: {
|
|
92
|
-
foreground: string;
|
|
93
|
-
background: string;
|
|
94
|
-
border: string;
|
|
95
|
-
};
|
|
96
|
-
table: {
|
|
97
|
-
border: string;
|
|
98
|
-
header: string;
|
|
99
|
-
background: string;
|
|
100
|
-
};
|
|
101
75
|
};
|
|
102
76
|
};
|
|
103
77
|
export type Token = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../src/styles/theme.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,aAAa;CAAE,CAAC;AAEtE,
|
|
1
|
+
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../src/styles/theme.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,aAAa;CAAE,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAEtG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,cAAc,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7D,OAAO,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC;IAC9C,MAAM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
|
6
6
|
"packageManager": "pnpm@8.15.3",
|
|
@@ -42,15 +42,14 @@
|
|
|
42
42
|
"@floating-ui/react": "0.26.20",
|
|
43
43
|
"@radix-ui/react-slot": "1.1.0",
|
|
44
44
|
"@radix-ui/react-toast": "1.2.1",
|
|
45
|
-
"@tanstack/react-table": "8.20.6",
|
|
46
45
|
"@tanstack/react-virtual": "3.11.2",
|
|
47
46
|
"class-variance-authority": "0.7.0",
|
|
48
47
|
"clsx": "2.1.1",
|
|
49
48
|
"date-fns": "3.6.0",
|
|
50
|
-
"framer-motion": "11.3.8",
|
|
51
49
|
"fuzzy-search": "3.2.1",
|
|
52
50
|
"linq-arrays": "3.2.5",
|
|
53
51
|
"lucide-react": "0.414.0",
|
|
52
|
+
"motion": "12.4.7",
|
|
54
53
|
"pretty-bytes": "6.1.1",
|
|
55
54
|
"qs": "6.12.3",
|
|
56
55
|
"react-dropzone": "14.2.3",
|