@g4rcez/components 0.0.8 → 0.0.10
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/core/button.js +40 -0
- package/dist/components/core/polymorph.js +8 -0
- package/dist/components/display/card.js +6 -0
- package/dist/components/floating/dropdown.js +38 -0
- package/dist/components/floating/tooltip.js +32 -0
- package/dist/components/form/autocomplete.js +125 -0
- package/dist/components/form/file-upload.js +61 -0
- package/dist/components/form/form.js +28 -0
- package/dist/components/form/input-field.js +10 -0
- package/dist/components/form/input.js +39 -0
- package/dist/components/form/select.js +30 -0
- package/dist/components/form/switch.js +18 -0
- package/dist/components/index.js +14 -0
- package/dist/components/table/filter.js +79 -0
- package/dist/components/table/group.js +41 -0
- package/dist/components/table/index.js +82 -0
- package/dist/components/table/metadata.js +10 -0
- package/dist/components/table/sort.js +70 -0
- package/dist/components/table/table-lib.js +51 -0
- package/dist/components/table/thead.js +25 -0
- package/dist/hooks/use-form.js +126 -0
- package/dist/hooks/use-previous.js +8 -0
- package/dist/hooks/use-reactive.js +8 -0
- package/dist/index.css +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3462 -3328
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +46 -46
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/dom.js +22 -0
- package/dist/lib/fns.js +15 -0
- package/dist/preset/src/styles/theme.d.ts +1 -0
- package/dist/preset/src/styles/theme.d.ts.map +1 -1
- package/dist/preset/src/styles/theme.js +66 -0
- package/dist/styles/design-tokens.js +37 -0
- package/dist/styles/theme.d.ts +1 -0
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +132 -0
- package/dist/types.js +1 -0
- package/package.json +70 -44
- package/dist/next.svg +0 -1
- package/dist/vercel.svg +0 -1
package/dist/lib/dom.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
export const mergeRefs = (...refs) => (value) => {
|
|
4
|
+
refs.forEach((ref) => {
|
|
5
|
+
if (typeof ref === "function") {
|
|
6
|
+
ref(value);
|
|
7
|
+
}
|
|
8
|
+
else if (ref !== null) {
|
|
9
|
+
ref.current = value;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export const isReactComponent = (a) => {
|
|
14
|
+
if (a.$$typeof === Symbol.for("react.forward_ref")) {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
if (a.$$typeof === Symbol.for("react.fragment")) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
return a.$$typeof === Symbol.for("react.element");
|
|
21
|
+
};
|
|
22
|
+
export const css = (...styles) => twMerge(clsx(styles));
|
package/dist/lib/fns.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const uuid = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
2
|
+
let r = (Math.random() * 16) | 0;
|
|
3
|
+
let v = c == "x" ? r : (r & 0x3) | 0x8;
|
|
4
|
+
return v.toString(16);
|
|
5
|
+
});
|
|
6
|
+
const travel = (path, regexp, obj) => path
|
|
7
|
+
.split(regexp)
|
|
8
|
+
.filter(Boolean)
|
|
9
|
+
.reduce((res, key) => (res !== null && res !== undefined ? res[key] : res), obj);
|
|
10
|
+
const regexPaths = { basic: /[,[\]]+?/, extend: /[,[\].]+?/ };
|
|
11
|
+
export const path = (obj, path) => {
|
|
12
|
+
const result = travel(path, regexPaths.basic, obj) || travel(path, regexPaths.extend, obj);
|
|
13
|
+
return result === undefined || result === obj ? undefined : result;
|
|
14
|
+
};
|
|
15
|
+
export const isSsr = () => typeof window === 'undefined';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE5B,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE5B,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,gBAAgB,CAAC;AAE5C,eAAO,MAAM,iBAAiB,EAAE,KAiE/B,CAAC"}
|
|
@@ -64,3 +64,69 @@ export var defaultDarkTheme = {
|
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
|
+
export var defaultLightTheme = {
|
|
68
|
+
name: "light",
|
|
69
|
+
spacing: {
|
|
70
|
+
base: "1rem",
|
|
71
|
+
lg: "1.5rem",
|
|
72
|
+
sm: "0.75rem",
|
|
73
|
+
},
|
|
74
|
+
colors: {
|
|
75
|
+
foreground: "#334155",
|
|
76
|
+
background: "#f1f5f9",
|
|
77
|
+
accent: "#0ea5e9",
|
|
78
|
+
disabled: "#52525b",
|
|
79
|
+
primary: {
|
|
80
|
+
foreground: "#f8fafc",
|
|
81
|
+
DEFAULT: "#0ea5e9",
|
|
82
|
+
subtle: "#bae6fd",
|
|
83
|
+
hover: "#0284c7",
|
|
84
|
+
},
|
|
85
|
+
secondary: {
|
|
86
|
+
DEFAULT: "#475569",
|
|
87
|
+
subtle: "#cbd5e1",
|
|
88
|
+
hover: "#334155",
|
|
89
|
+
},
|
|
90
|
+
info: {
|
|
91
|
+
DEFAULT: "#3b82f6",
|
|
92
|
+
subtle: "#93c5fd",
|
|
93
|
+
hover: "#1d4ed8",
|
|
94
|
+
},
|
|
95
|
+
danger: {
|
|
96
|
+
DEFAULT: "#ef4444",
|
|
97
|
+
subtle: "#fca5a5",
|
|
98
|
+
hover: "#dc2626",
|
|
99
|
+
},
|
|
100
|
+
success: {
|
|
101
|
+
DEFAULT: "#10b981",
|
|
102
|
+
subtle: "#6ee7b7",
|
|
103
|
+
hover: "#047857",
|
|
104
|
+
},
|
|
105
|
+
input: {
|
|
106
|
+
border: "#52525b",
|
|
107
|
+
placeholder: "#94a3b8",
|
|
108
|
+
"mask-error": "#fca5a5",
|
|
109
|
+
"switch-bg": "#171717",
|
|
110
|
+
switch: "#fff",
|
|
111
|
+
},
|
|
112
|
+
card: {
|
|
113
|
+
background: "#ffffff",
|
|
114
|
+
border: "#cbd5e1",
|
|
115
|
+
overlay: "#00000080",
|
|
116
|
+
},
|
|
117
|
+
floating: {
|
|
118
|
+
background: "#ffffff",
|
|
119
|
+
border: "#cbd5e1",
|
|
120
|
+
overlay: "#00000080",
|
|
121
|
+
},
|
|
122
|
+
tooltip: {
|
|
123
|
+
background: "#141414",
|
|
124
|
+
border: "#27272a",
|
|
125
|
+
},
|
|
126
|
+
table: {
|
|
127
|
+
background: "#ffffff",
|
|
128
|
+
border: "#cbd5e1",
|
|
129
|
+
row: "#94a3b8",
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const parsers = {
|
|
2
|
+
cssVariable: (_, __, k) => `var(--${k})`,
|
|
3
|
+
rgba: (value) => `rgba(${value})`,
|
|
4
|
+
rgb: (value) => `rgb(${value})`,
|
|
5
|
+
hsl: (value) => `hsl(${value})`,
|
|
6
|
+
hsla: (value) => `hsla(${value})`,
|
|
7
|
+
hex: (value) => value,
|
|
8
|
+
raw: (value) => value,
|
|
9
|
+
};
|
|
10
|
+
export const reduceTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
|
|
11
|
+
const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
|
|
12
|
+
if (typeof value === "string") {
|
|
13
|
+
const k = append === "" ? `${prefix}${key}` : key;
|
|
14
|
+
return acc.concat(parse(value, k, combine));
|
|
15
|
+
}
|
|
16
|
+
return acc.concat(reduceTokens(value, parse, prefix, combine));
|
|
17
|
+
}, []);
|
|
18
|
+
export const createDesignTokens = (colors, parse, prefix = "", append = "") => Object.entries(colors).reduce((acc, [key, value]) => {
|
|
19
|
+
const combine = append === "" ? `${prefix}${key}` : `${append}-${key}`;
|
|
20
|
+
if (typeof value === "string") {
|
|
21
|
+
const k = append === "" ? `${prefix}${key}` : key;
|
|
22
|
+
return Object.assign(Object.assign({}, acc), { [k]: parse(value, key, combine) });
|
|
23
|
+
}
|
|
24
|
+
return Object.assign(Object.assign({}, acc), { [key]: createDesignTokens(value, parse, prefix, combine) });
|
|
25
|
+
}, {});
|
|
26
|
+
const modifiers = {
|
|
27
|
+
default: (variables) => `:root { ${variables} }`,
|
|
28
|
+
dark: (variables) => `html.dark {${variables}}`,
|
|
29
|
+
};
|
|
30
|
+
const createStyleContent = (tokens, modifier) => {
|
|
31
|
+
const content = tokens.map((token) => `${token.key}: ${token.value}`).join(";");
|
|
32
|
+
return modifier(content);
|
|
33
|
+
};
|
|
34
|
+
export const createStyles = {
|
|
35
|
+
default: (tokens) => createStyleContent(tokens, modifiers.default),
|
|
36
|
+
dark: (tokens) => createStyleContent(tokens, modifiers.dark),
|
|
37
|
+
};
|
package/dist/styles/theme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE5B,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiE5B,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,gBAAgB,CAAC;AAE5C,eAAO,MAAM,iBAAiB,EAAE,KAiE/B,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
export const defaultDarkTheme = {
|
|
2
|
+
name: "dark",
|
|
3
|
+
spacing: {
|
|
4
|
+
base: "1rem",
|
|
5
|
+
lg: "1.5rem",
|
|
6
|
+
sm: "0.75rem",
|
|
7
|
+
},
|
|
8
|
+
colors: {
|
|
9
|
+
foreground: "#f8fafc",
|
|
10
|
+
background: "#191817",
|
|
11
|
+
accent: "#0ea5e9",
|
|
12
|
+
disabled: "#52525b",
|
|
13
|
+
primary: {
|
|
14
|
+
foreground: "#f8fafc",
|
|
15
|
+
DEFAULT: "#0ea5e9",
|
|
16
|
+
subtle: "#bae6fd",
|
|
17
|
+
hover: "#0284c7",
|
|
18
|
+
},
|
|
19
|
+
secondary: {
|
|
20
|
+
DEFAULT: "#475569",
|
|
21
|
+
subtle: "#cbd5e1",
|
|
22
|
+
hover: "#334155",
|
|
23
|
+
},
|
|
24
|
+
info: {
|
|
25
|
+
DEFAULT: "#3b82f6",
|
|
26
|
+
subtle: "#93c5fd",
|
|
27
|
+
hover: "#1d4ed8",
|
|
28
|
+
},
|
|
29
|
+
danger: {
|
|
30
|
+
DEFAULT: "#ef4444",
|
|
31
|
+
subtle: "#fca5a5",
|
|
32
|
+
hover: "#dc2626",
|
|
33
|
+
},
|
|
34
|
+
success: {
|
|
35
|
+
DEFAULT: "#10b981",
|
|
36
|
+
subtle: "#6ee7b7",
|
|
37
|
+
hover: "#047857",
|
|
38
|
+
},
|
|
39
|
+
input: {
|
|
40
|
+
border: "#52525b",
|
|
41
|
+
placeholder: "#94a3b8",
|
|
42
|
+
"mask-error": "#fca5a5",
|
|
43
|
+
"switch-bg": "#171717",
|
|
44
|
+
switch: "#fff",
|
|
45
|
+
},
|
|
46
|
+
card: {
|
|
47
|
+
background: "#27272a",
|
|
48
|
+
border: "#3f3f46",
|
|
49
|
+
overlay: "#00000080",
|
|
50
|
+
},
|
|
51
|
+
floating: {
|
|
52
|
+
background: "#252525",
|
|
53
|
+
border: "#3f3f46",
|
|
54
|
+
overlay: "#00000080",
|
|
55
|
+
},
|
|
56
|
+
tooltip: {
|
|
57
|
+
background: "#141414",
|
|
58
|
+
border: "#27272a",
|
|
59
|
+
},
|
|
60
|
+
table: {
|
|
61
|
+
background: "#27272a",
|
|
62
|
+
border: "#52525b",
|
|
63
|
+
row: "#3f3f46",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
export const defaultLightTheme = {
|
|
68
|
+
name: "light",
|
|
69
|
+
spacing: {
|
|
70
|
+
base: "1rem",
|
|
71
|
+
lg: "1.5rem",
|
|
72
|
+
sm: "0.75rem",
|
|
73
|
+
},
|
|
74
|
+
colors: {
|
|
75
|
+
foreground: "#334155",
|
|
76
|
+
background: "#f1f5f9",
|
|
77
|
+
accent: "#0ea5e9",
|
|
78
|
+
disabled: "#52525b",
|
|
79
|
+
primary: {
|
|
80
|
+
foreground: "#f8fafc",
|
|
81
|
+
DEFAULT: "#0ea5e9",
|
|
82
|
+
subtle: "#bae6fd",
|
|
83
|
+
hover: "#0284c7",
|
|
84
|
+
},
|
|
85
|
+
secondary: {
|
|
86
|
+
DEFAULT: "#475569",
|
|
87
|
+
subtle: "#cbd5e1",
|
|
88
|
+
hover: "#334155",
|
|
89
|
+
},
|
|
90
|
+
info: {
|
|
91
|
+
DEFAULT: "#3b82f6",
|
|
92
|
+
subtle: "#93c5fd",
|
|
93
|
+
hover: "#1d4ed8",
|
|
94
|
+
},
|
|
95
|
+
danger: {
|
|
96
|
+
DEFAULT: "#ef4444",
|
|
97
|
+
subtle: "#fca5a5",
|
|
98
|
+
hover: "#dc2626",
|
|
99
|
+
},
|
|
100
|
+
success: {
|
|
101
|
+
DEFAULT: "#10b981",
|
|
102
|
+
subtle: "#6ee7b7",
|
|
103
|
+
hover: "#047857",
|
|
104
|
+
},
|
|
105
|
+
input: {
|
|
106
|
+
border: "#52525b",
|
|
107
|
+
placeholder: "#94a3b8",
|
|
108
|
+
"mask-error": "#fca5a5",
|
|
109
|
+
"switch-bg": "#171717",
|
|
110
|
+
switch: "#fff",
|
|
111
|
+
},
|
|
112
|
+
card: {
|
|
113
|
+
background: "#ffffff",
|
|
114
|
+
border: "#cbd5e1",
|
|
115
|
+
overlay: "#00000080",
|
|
116
|
+
},
|
|
117
|
+
floating: {
|
|
118
|
+
background: "#ffffff",
|
|
119
|
+
border: "#cbd5e1",
|
|
120
|
+
overlay: "#00000080",
|
|
121
|
+
},
|
|
122
|
+
tooltip: {
|
|
123
|
+
background: "#141414",
|
|
124
|
+
border: "#27272a",
|
|
125
|
+
},
|
|
126
|
+
table: {
|
|
127
|
+
background: "#ffffff",
|
|
128
|
+
border: "#cbd5e1",
|
|
129
|
+
row: "#94a3b8",
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
};
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,71 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g4rcez/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"import": "./dist/index.mjs",
|
|
21
|
-
"require": "./dist/index.umd.js",
|
|
22
|
-
"default": "./dist/index.mjs"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"./preset.tailwind": {
|
|
26
|
-
"type": "./dist/preset/preset.tailwind.d.ts",
|
|
27
|
-
"import": "./dist/preset/preset.tailwind.js",
|
|
28
|
-
"require": "./dist/preset/preset.tailwind.js",
|
|
29
|
-
"default": "./dist/preset/preset.tailwind.js"
|
|
30
|
-
},
|
|
31
|
-
"./dist/index.css": "./dist/index.css"
|
|
5
|
+
"private": false,
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20.14.0"
|
|
8
|
+
},
|
|
9
|
+
"author": {
|
|
10
|
+
"email": "allan.f.garcez@gmail.com",
|
|
11
|
+
"name": "Allan Garcez",
|
|
12
|
+
"url": "https://garcez.dev"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/g4rcez/components/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"url": "https://github.com/g4rcez/components",
|
|
19
|
+
"type": "git"
|
|
32
20
|
},
|
|
33
|
-
"files": [
|
|
34
|
-
"dist",
|
|
35
|
-
"dist/index.css"
|
|
36
|
-
],
|
|
37
21
|
"scripts": {
|
|
38
22
|
"build": "vite build; npm run lib:types; npm run preset; npm run lib:css",
|
|
39
|
-
"dev": "next dev",
|
|
40
23
|
"format": "npx prettier --write .",
|
|
41
24
|
"lib:css": "tailwind -i ./src/index.css -o ./dist/index.css --minify",
|
|
42
25
|
"lib:tailwind": "tsc -p tsconfig.tailwind.json",
|
|
43
26
|
"lib:types": "tsc -p tsconfig.lib.json",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
27
|
+
"preset": "tsc -p tsconfig.tailwind.json",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest watch"
|
|
46
30
|
},
|
|
47
31
|
"publishConfig": {
|
|
48
32
|
"directory": "dist"
|
|
49
33
|
},
|
|
50
34
|
"dependencies": {
|
|
51
|
-
"@dnd-kit/core": "6.1.0",
|
|
52
35
|
"@floating-ui/react": "0.26.19",
|
|
53
36
|
"@vitejs/plugin-react": "4.3.1",
|
|
54
37
|
"class-variance-authority": "0.7.0",
|
|
55
38
|
"clsx": "2.1.1",
|
|
56
|
-
"framer-motion": "11.
|
|
39
|
+
"framer-motion": "11.3.0",
|
|
57
40
|
"fuzzy-search": "3.2.1",
|
|
58
41
|
"linq-arrays": "3.2.5",
|
|
59
|
-
"lucide-react": "0.
|
|
42
|
+
"lucide-react": "0.407.0",
|
|
60
43
|
"pretty-bytes": "6.1.1",
|
|
61
|
-
"qs": "6.12.
|
|
44
|
+
"qs": "6.12.3",
|
|
62
45
|
"react": "18",
|
|
63
46
|
"react-dom": "18",
|
|
64
47
|
"react-dropzone": "14.2.3",
|
|
65
48
|
"react-virtuoso": "4.7.11",
|
|
66
49
|
"sidekicker": "0.1.8",
|
|
67
50
|
"storage-manager-js": "4.2.6-5",
|
|
68
|
-
"tailwind-merge": "2.
|
|
51
|
+
"tailwind-merge": "2.4.0",
|
|
69
52
|
"the-mask-input": "3.3.12",
|
|
70
53
|
"use-typed-reducer": "4.2.1",
|
|
71
54
|
"vite": "5.3.3",
|
|
@@ -77,13 +60,56 @@
|
|
|
77
60
|
"@types/qs": "6.9.15",
|
|
78
61
|
"@types/react": "18.3.3",
|
|
79
62
|
"@types/react-dom": "18.3.0",
|
|
80
|
-
"ncc": "0.3.6",
|
|
81
|
-
"next": "14.2.4",
|
|
82
63
|
"postcss": "8.4.39",
|
|
83
64
|
"prettier": "3.3.2",
|
|
84
65
|
"tailwindcss": "3.4.4",
|
|
85
66
|
"tslib": "2.6.3",
|
|
86
67
|
"typescript": "5.5.3",
|
|
87
|
-
"vite-tsconfig-paths": "4.3.2"
|
|
88
|
-
|
|
68
|
+
"vite-tsconfig-paths": "4.3.2",
|
|
69
|
+
"vitest": "2.0.2"
|
|
70
|
+
},
|
|
71
|
+
"source": "./src/index.ts",
|
|
72
|
+
"types": "./dist/index.d.ts",
|
|
73
|
+
"main": "./dist/index.umd.js",
|
|
74
|
+
"browser": "./dist/index.umd.js",
|
|
75
|
+
"module": "./dist/index.cjs",
|
|
76
|
+
"packageManager": "pnpm@8.15.3",
|
|
77
|
+
"exports": {
|
|
78
|
+
".": {
|
|
79
|
+
"types": {
|
|
80
|
+
"import": "./dist/index.d.ts",
|
|
81
|
+
"require": "./dist/index.d.ts",
|
|
82
|
+
"default": "./dist/index.d.ts"
|
|
83
|
+
},
|
|
84
|
+
"default": {
|
|
85
|
+
"type": "./dist/index.d.ts",
|
|
86
|
+
"import": "./dist/index.mjs",
|
|
87
|
+
"require": "./dist/index.umd.js",
|
|
88
|
+
"default": "./dist/index.mjs"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"./styles": {
|
|
92
|
+
"type": "./dist/preset/src/styles/design-tokens.d.ts",
|
|
93
|
+
"import": "./dist/preset/src/styles/design-tokens.js",
|
|
94
|
+
"require": "./dist/preset/src/styles/design-tokens.js",
|
|
95
|
+
"default": "./dist/preset/src/styles/design-tokens.js"
|
|
96
|
+
},
|
|
97
|
+
"./preset.tailwind": {
|
|
98
|
+
"type": "./dist/preset/preset.tailwind.d.ts",
|
|
99
|
+
"import": "./dist/preset/preset.tailwind.js",
|
|
100
|
+
"require": "./dist/preset/preset.tailwind.js",
|
|
101
|
+
"default": "./dist/preset/preset.tailwind.js"
|
|
102
|
+
},
|
|
103
|
+
"./dist/index.css": "./dist/index.css",
|
|
104
|
+
"./button": {
|
|
105
|
+
"type": "./dist/core/button.d.ts",
|
|
106
|
+
"import": "./dist/core/button.js",
|
|
107
|
+
"require": "./dist/core/button.js",
|
|
108
|
+
"default": "./dist/core/button.js"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"files": [
|
|
112
|
+
"dist",
|
|
113
|
+
"dist/index.css"
|
|
114
|
+
]
|
|
89
115
|
}
|
package/dist/next.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
|
package/dist/vercel.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>
|