@cupcodev/ui 7.0.0 → 8.0.0
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 +239 -239
- package/dist/index.cjs +3604 -2715
- package/dist/index.d.cts +61 -4
- package/dist/index.d.ts +61 -4
- package/dist/index.js +3561 -2667
- package/dist/styles.css +3 -3
- package/package.json +189 -187
- package/postinstall.cjs +20 -20
- package/styles/base.css +140 -138
- package/styles/dock.css +868 -813
- package/styles/global.css +2073 -2071
- package/styles/tokens.css +415 -415
- package/tailwind-preset.cjs +196 -196
package/package.json
CHANGED
|
@@ -1,187 +1,189 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cupcodev/ui",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"./styles
|
|
18
|
-
"./styles/
|
|
19
|
-
"./styles/
|
|
20
|
-
"./styles/
|
|
21
|
-
"./styles/
|
|
22
|
-
"./styles/
|
|
23
|
-
"./styles/
|
|
24
|
-
"./styles/
|
|
25
|
-
"./styles/
|
|
26
|
-
"./styles
|
|
27
|
-
"./
|
|
28
|
-
"./tailwind-preset
|
|
29
|
-
"./
|
|
30
|
-
"./
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@radix-ui/react-
|
|
72
|
-
"@radix-ui/react-
|
|
73
|
-
"@radix-ui/react-
|
|
74
|
-
"@radix-ui/react-
|
|
75
|
-
"@radix-ui/react-
|
|
76
|
-
"@radix-ui/react-
|
|
77
|
-
"@radix-ui/react-
|
|
78
|
-
"@radix-ui/react-
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"react-
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"@radix-ui/react-
|
|
138
|
-
"@radix-ui/react-
|
|
139
|
-
"@radix-ui/react-
|
|
140
|
-
"@radix-ui/react-
|
|
141
|
-
"@radix-ui/react-
|
|
142
|
-
"@radix-ui/react-
|
|
143
|
-
"@radix-ui/react-
|
|
144
|
-
"@radix-ui/react-
|
|
145
|
-
"@
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"react": "^
|
|
154
|
-
"react-
|
|
155
|
-
"react-
|
|
156
|
-
"react-
|
|
157
|
-
"react-
|
|
158
|
-
"react-
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"tailwindcss
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@cupcodev/ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "8.0.0",
|
|
5
|
+
"packageManager": "pnpm@10.28.2+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"license": "UNLICENSED",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./styles": "./dist/styles.css",
|
|
18
|
+
"./styles/global.css": "./styles/global.css",
|
|
19
|
+
"./styles/base.css": "./styles/base.css",
|
|
20
|
+
"./styles/tokens.css": "./styles/tokens.css",
|
|
21
|
+
"./styles/dock.css": "./styles/dock.css",
|
|
22
|
+
"./styles/index.css": "./styles/index.css",
|
|
23
|
+
"./styles/global": "./styles/global.css",
|
|
24
|
+
"./styles/base": "./styles/base.css",
|
|
25
|
+
"./styles/tokens": "./styles/tokens.css",
|
|
26
|
+
"./styles/dock": "./styles/dock.css",
|
|
27
|
+
"./styles.css": "./dist/styles.css",
|
|
28
|
+
"./tailwind-preset": "./tailwind-preset.cjs",
|
|
29
|
+
"./tailwind-preset.cjs": "./tailwind-preset.cjs",
|
|
30
|
+
"./package.json": "./package.json",
|
|
31
|
+
"./charts": {
|
|
32
|
+
"types": "./dist/charts.d.ts",
|
|
33
|
+
"import": "./dist/charts.js",
|
|
34
|
+
"require": "./dist/charts.cjs"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"styles",
|
|
40
|
+
"tailwind-preset.cjs",
|
|
41
|
+
"postinstall.cjs"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18.18.0"
|
|
45
|
+
},
|
|
46
|
+
"sideEffects": [
|
|
47
|
+
"**/*.css"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"dev": "vite",
|
|
51
|
+
"build": "npm run build:lib",
|
|
52
|
+
"build:lib": "tsup && npm run build:styles",
|
|
53
|
+
"build:styles": "tailwindcss -i ./styles/index.css -o ./dist/styles.css --config ./tailwind.config.ts --minify",
|
|
54
|
+
"build:site": "vite build",
|
|
55
|
+
"build:app": "npm run build:site",
|
|
56
|
+
"build:dev": "vite build --mode development",
|
|
57
|
+
"typecheck": "tsc -b",
|
|
58
|
+
"check:exports": "node ./scripts/verify-exports.mjs",
|
|
59
|
+
"check:release": "npm run lint && npm run typecheck && npm run check:exports && npm run build:lib",
|
|
60
|
+
"check:quality": "npm run check:release && npm run build:site",
|
|
61
|
+
"test:consumer": "node ./scripts/consumer-smoke.mjs",
|
|
62
|
+
"lint": "eslint . --max-warnings=0",
|
|
63
|
+
"prepublishOnly": "npm run check:release",
|
|
64
|
+
"postinstall": "node ./postinstall.cjs",
|
|
65
|
+
"preview": "vite preview"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@cupcodev/animations": "file:packages/animations",
|
|
69
|
+
"@eslint/js": "^9.32.0",
|
|
70
|
+
"@gsap/react": "^2.1.2",
|
|
71
|
+
"@radix-ui/react-accordion": "^1.2.11",
|
|
72
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
73
|
+
"@radix-ui/react-aspect-ratio": "^1.1.7",
|
|
74
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
75
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
76
|
+
"@radix-ui/react-collapsible": "^1.1.11",
|
|
77
|
+
"@radix-ui/react-context-menu": "^2.2.15",
|
|
78
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
79
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
80
|
+
"@radix-ui/react-hover-card": "^1.1.14",
|
|
81
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
82
|
+
"@radix-ui/react-menubar": "^1.1.15",
|
|
83
|
+
"@radix-ui/react-navigation-menu": "^1.2.13",
|
|
84
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
85
|
+
"@radix-ui/react-progress": "^1.1.7",
|
|
86
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
|
87
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
88
|
+
"@radix-ui/react-select": "^2.2.5",
|
|
89
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
90
|
+
"@radix-ui/react-slider": "^1.3.5",
|
|
91
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
92
|
+
"@radix-ui/react-switch": "^1.2.5",
|
|
93
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
94
|
+
"@radix-ui/react-toast": "^1.2.14",
|
|
95
|
+
"@radix-ui/react-toggle": "^1.1.9",
|
|
96
|
+
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
97
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
98
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
99
|
+
"@tanstack/react-query": "^5.83.0",
|
|
100
|
+
"@types/node": "^22.16.5",
|
|
101
|
+
"@types/react": "^19.2.13",
|
|
102
|
+
"@types/react-dom": "^19.2.3",
|
|
103
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
104
|
+
"@supabase/supabase-js": "^2.91.0",
|
|
105
|
+
"autoprefixer": "^10.4.21",
|
|
106
|
+
"class-variance-authority": "^0.7.1",
|
|
107
|
+
"clsx": "^2.1.1",
|
|
108
|
+
"cmdk": "^1.1.1",
|
|
109
|
+
"date-fns": "^3.6.0",
|
|
110
|
+
"embla-carousel-react": "^8.6.0",
|
|
111
|
+
"eslint": "^9.32.0",
|
|
112
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
113
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
114
|
+
"framer-motion": "^12.23.24",
|
|
115
|
+
"globals": "^15.15.0",
|
|
116
|
+
"gsap": "^3.14.2",
|
|
117
|
+
"input-otp": "^1.4.2",
|
|
118
|
+
"lovable-tagger": "^1.1.10",
|
|
119
|
+
"lucide-react": "^0.462.0",
|
|
120
|
+
"postcss": "^8.5.6",
|
|
121
|
+
"postcss-selector-parser": "6.0.10",
|
|
122
|
+
"react-day-picker": "^9.13.0",
|
|
123
|
+
"react-hook-form": "^7.61.1",
|
|
124
|
+
"react-resizable-panels": "^2.1.9",
|
|
125
|
+
"react-router-dom": "^6.30.1",
|
|
126
|
+
"recharts": "^2.15.4",
|
|
127
|
+
"sonner": "^1.7.4",
|
|
128
|
+
"tailwindcss": "^3.4.17",
|
|
129
|
+
"tailwindcss-animate": "^1.0.7",
|
|
130
|
+
"tsup": "^8.2.4",
|
|
131
|
+
"typescript": "^5.8.3",
|
|
132
|
+
"typescript-eslint": "^8.38.0",
|
|
133
|
+
"vaul": "^1.1.2",
|
|
134
|
+
"vite": "^5.4.19"
|
|
135
|
+
},
|
|
136
|
+
"peerDependencies": {
|
|
137
|
+
"@radix-ui/react-accordion": "^1.2.11",
|
|
138
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
139
|
+
"@radix-ui/react-aspect-ratio": "^1.1.7",
|
|
140
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
141
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
142
|
+
"@radix-ui/react-collapsible": "^1.1.11",
|
|
143
|
+
"@radix-ui/react-context-menu": "^2.2.15",
|
|
144
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
145
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
146
|
+
"@radix-ui/react-hover-card": "^1.1.14",
|
|
147
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
148
|
+
"@radix-ui/react-menubar": "^1.1.15",
|
|
149
|
+
"@radix-ui/react-navigation-menu": "^1.2.13",
|
|
150
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
151
|
+
"@radix-ui/react-progress": "^1.1.7",
|
|
152
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
|
153
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
154
|
+
"@radix-ui/react-select": "^2.2.5",
|
|
155
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
156
|
+
"@radix-ui/react-slider": "^1.3.5",
|
|
157
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
158
|
+
"@radix-ui/react-switch": "^1.2.5",
|
|
159
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
160
|
+
"@radix-ui/react-toast": "^1.2.14",
|
|
161
|
+
"@radix-ui/react-toggle": "^1.1.9",
|
|
162
|
+
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
163
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
164
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
165
|
+
"class-variance-authority": "^0.7.1",
|
|
166
|
+
"clsx": "^2.1.1",
|
|
167
|
+
"cmdk": "^1.1.1",
|
|
168
|
+
"date-fns": "^3.6.0",
|
|
169
|
+
"embla-carousel-react": "^8.6.0",
|
|
170
|
+
"input-otp": "^1.4.2",
|
|
171
|
+
"lucide-react": "^0.462.0",
|
|
172
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
173
|
+
"react-day-picker": "^9.13.0",
|
|
174
|
+
"react-dom": "^18.3.1 || ^19.0.0",
|
|
175
|
+
"react-hook-form": "^7.61.1",
|
|
176
|
+
"react-router-dom": "^6.30.1",
|
|
177
|
+
"react-resizable-panels": "^2.1.9",
|
|
178
|
+
"recharts": "^2.15.4",
|
|
179
|
+
"framer-motion": "^12.23.24",
|
|
180
|
+
"sonner": "^1.7.4",
|
|
181
|
+
"tailwind-merge": "^2.6.0",
|
|
182
|
+
"tailwindcss": "^3.4.17",
|
|
183
|
+
"tailwindcss-animate": "^1.0.7",
|
|
184
|
+
"vaul": "^1.1.2"
|
|
185
|
+
},
|
|
186
|
+
"publishConfig": {
|
|
187
|
+
"access": "public"
|
|
188
|
+
}
|
|
189
|
+
}
|
package/postinstall.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const message = `
|
|
2
|
-
[cupcode-ui] Configuração obrigatória no app consumidor:
|
|
3
|
-
|
|
4
|
-
No main.tsx (ou arquivo de bootstrap similar), adicione:
|
|
5
|
-
|
|
6
|
-
import { setCupcodeRuntimeEnv } from "@cupcodev/ui";
|
|
7
|
-
|
|
8
|
-
setCupcodeRuntimeEnv({
|
|
9
|
-
VITE_SUPABASE_URL: import.meta.env.VITE_SUPABASE_URL,
|
|
10
|
-
VITE_SUPABASE_ANON_KEY: import.meta.env.VITE_SUPABASE_ANON_KEY,
|
|
11
|
-
VITE_TELESCUP_BASE_URL: import.meta.env.VITE_TELESCUP_BASE_URL,
|
|
12
|
-
VITE_TELESCUP_API_BASE: import.meta.env.VITE_TELESCUP_API_BASE,
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
Também importe os estilos:
|
|
16
|
-
|
|
17
|
-
import "@cupcodev/ui/styles.css";
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
console.log(message);
|
|
1
|
+
const message = `
|
|
2
|
+
[cupcode-ui] Configuração obrigatória no app consumidor:
|
|
3
|
+
|
|
4
|
+
No main.tsx (ou arquivo de bootstrap similar), adicione:
|
|
5
|
+
|
|
6
|
+
import { setCupcodeRuntimeEnv } from "@cupcodev/ui";
|
|
7
|
+
|
|
8
|
+
setCupcodeRuntimeEnv({
|
|
9
|
+
VITE_SUPABASE_URL: import.meta.env.VITE_SUPABASE_URL,
|
|
10
|
+
VITE_SUPABASE_ANON_KEY: import.meta.env.VITE_SUPABASE_ANON_KEY,
|
|
11
|
+
VITE_TELESCUP_BASE_URL: import.meta.env.VITE_TELESCUP_BASE_URL,
|
|
12
|
+
VITE_TELESCUP_API_BASE: import.meta.env.VITE_TELESCUP_API_BASE,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
Também importe os estilos:
|
|
16
|
+
|
|
17
|
+
import "@cupcodev/ui/styles.css";
|
|
18
|
+
`;
|
|
19
|
+
|
|
20
|
+
console.log(message);
|