@humu-tech/ui 0.2.0 → 0.3.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 +59 -3
- package/dist/{DateInput-HC45BUBP.css → DateInput-W7IF3TRC.css} +10 -3
- package/dist/{DateRangeInput-TBELV5TN.css → DateRangeInput-66WC5JQX.css} +10 -3
- package/dist/index.d.mts +139 -10
- package/dist/index.d.ts +139 -10
- package/dist/index.js +3338 -2179
- package/dist/index.mjs +3247 -2058
- package/dist/tailwind-preset.js +21 -34
- package/dist/tailwind-preset.mjs +11 -34
- package/dist/tokens/semantic.css +6 -0
- package/package.json +3 -2
package/dist/tailwind-preset.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
10
|
for (var name in all)
|
|
@@ -16,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
18
|
}
|
|
17
19
|
return to;
|
|
18
20
|
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
19
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
30
|
|
|
21
31
|
// tailwind-preset.ts
|
|
@@ -24,6 +34,7 @@ __export(tailwind_preset_exports, {
|
|
|
24
34
|
default: () => tailwind_preset_default
|
|
25
35
|
});
|
|
26
36
|
module.exports = __toCommonJS(tailwind_preset_exports);
|
|
37
|
+
var import_tailwindcss_animate = __toESM(require("tailwindcss-animate"));
|
|
27
38
|
var humuColor = (token) => `color-mix(in srgb, var(--humu-${token}) calc(<alpha-value> * 100%), transparent)`;
|
|
28
39
|
var primitiveScales = [
|
|
29
40
|
"grey",
|
|
@@ -61,6 +72,7 @@ var semanticTokens = [
|
|
|
61
72
|
"on-brand",
|
|
62
73
|
"on-brand-inactive",
|
|
63
74
|
"brand",
|
|
75
|
+
"brand-strong",
|
|
64
76
|
"inactive"
|
|
65
77
|
].map((name) => `content-${name}`),
|
|
66
78
|
...[
|
|
@@ -116,7 +128,8 @@ var humuColors = Object.fromEntries([
|
|
|
116
128
|
humuColor(`color-${scale}-${step}`)
|
|
117
129
|
])
|
|
118
130
|
),
|
|
119
|
-
...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)])
|
|
131
|
+
...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)]),
|
|
132
|
+
["humu-focus", humuColor("focus-ring")]
|
|
120
133
|
]);
|
|
121
134
|
var preset = {
|
|
122
135
|
darkMode: ["class"],
|
|
@@ -252,6 +265,9 @@ var preset = {
|
|
|
252
265
|
"v2-in-out": "var(--v2-easing-in-out)",
|
|
253
266
|
"v2-spring": "var(--v2-easing-spring)"
|
|
254
267
|
},
|
|
268
|
+
animationDuration: {
|
|
269
|
+
DEFAULT: "var(--humu-duration-normal)"
|
|
270
|
+
},
|
|
255
271
|
keyframes: {
|
|
256
272
|
"accordion-down": {
|
|
257
273
|
from: { height: "0" },
|
|
@@ -260,43 +276,14 @@ var preset = {
|
|
|
260
276
|
"accordion-up": {
|
|
261
277
|
from: { height: "var(--radix-accordion-content-height)" },
|
|
262
278
|
to: { height: "0" }
|
|
263
|
-
},
|
|
264
|
-
slideDownAndFade: {
|
|
265
|
-
from: { opacity: "0", transform: "translateY(-2px)" },
|
|
266
|
-
to: { opacity: "1", transform: "translateY(0)" }
|
|
267
|
-
},
|
|
268
|
-
slideLeftAndFade: {
|
|
269
|
-
from: { opacity: "0", transform: "translateX(20px)" },
|
|
270
|
-
to: { opacity: "1", transform: "translateX(0)" }
|
|
271
|
-
},
|
|
272
|
-
slideUpAndFade: {
|
|
273
|
-
from: { opacity: "0", transform: "translateY(20px)" },
|
|
274
|
-
to: { opacity: "1", transform: "translateY(0)" }
|
|
275
|
-
},
|
|
276
|
-
slideRightAndFade: {
|
|
277
|
-
from: { opacity: "0", transform: "translateX(-20px)" },
|
|
278
|
-
to: { opacity: "1", transform: "translateX(0)" }
|
|
279
|
-
},
|
|
280
|
-
slideIn: {
|
|
281
|
-
from: { transform: "translateY(-100%)" },
|
|
282
|
-
to: { transform: "translateY(0)" }
|
|
283
|
-
},
|
|
284
|
-
slideOut: {
|
|
285
|
-
from: { transform: "translateY(0)" },
|
|
286
|
-
to: { transform: "translateY(-100%)" }
|
|
287
279
|
}
|
|
288
280
|
},
|
|
289
281
|
animation: {
|
|
290
|
-
"accordion-down": "accordion-down
|
|
291
|
-
"accordion-up": "accordion-up
|
|
292
|
-
slideDownAndFade: "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
293
|
-
slideLeftAndFade: "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
294
|
-
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
295
|
-
slideRightAndFade: "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
296
|
-
slideIn: "slideIn 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
297
|
-
slideOut: "slideOut 400ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
282
|
+
"accordion-down": "accordion-down var(--humu-duration-normal) var(--humu-easing-out)",
|
|
283
|
+
"accordion-up": "accordion-up var(--humu-duration-normal) var(--humu-easing-out)"
|
|
298
284
|
}
|
|
299
285
|
}
|
|
300
|
-
}
|
|
286
|
+
},
|
|
287
|
+
plugins: [import_tailwindcss_animate.default]
|
|
301
288
|
};
|
|
302
289
|
var tailwind_preset_default = preset;
|
package/dist/tailwind-preset.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// tailwind-preset.ts
|
|
4
|
+
import animate from "tailwindcss-animate";
|
|
4
5
|
var humuColor = (token) => `color-mix(in srgb, var(--humu-${token}) calc(<alpha-value> * 100%), transparent)`;
|
|
5
6
|
var primitiveScales = [
|
|
6
7
|
"grey",
|
|
@@ -38,6 +39,7 @@ var semanticTokens = [
|
|
|
38
39
|
"on-brand",
|
|
39
40
|
"on-brand-inactive",
|
|
40
41
|
"brand",
|
|
42
|
+
"brand-strong",
|
|
41
43
|
"inactive"
|
|
42
44
|
].map((name) => `content-${name}`),
|
|
43
45
|
...[
|
|
@@ -93,7 +95,8 @@ var humuColors = Object.fromEntries([
|
|
|
93
95
|
humuColor(`color-${scale}-${step}`)
|
|
94
96
|
])
|
|
95
97
|
),
|
|
96
|
-
...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)])
|
|
98
|
+
...semanticTokens.map((token) => [`humu-${token}`, humuColor(token)]),
|
|
99
|
+
["humu-focus", humuColor("focus-ring")]
|
|
97
100
|
]);
|
|
98
101
|
var preset = {
|
|
99
102
|
darkMode: ["class"],
|
|
@@ -229,6 +232,9 @@ var preset = {
|
|
|
229
232
|
"v2-in-out": "var(--v2-easing-in-out)",
|
|
230
233
|
"v2-spring": "var(--v2-easing-spring)"
|
|
231
234
|
},
|
|
235
|
+
animationDuration: {
|
|
236
|
+
DEFAULT: "var(--humu-duration-normal)"
|
|
237
|
+
},
|
|
232
238
|
keyframes: {
|
|
233
239
|
"accordion-down": {
|
|
234
240
|
from: { height: "0" },
|
|
@@ -237,44 +243,15 @@ var preset = {
|
|
|
237
243
|
"accordion-up": {
|
|
238
244
|
from: { height: "var(--radix-accordion-content-height)" },
|
|
239
245
|
to: { height: "0" }
|
|
240
|
-
},
|
|
241
|
-
slideDownAndFade: {
|
|
242
|
-
from: { opacity: "0", transform: "translateY(-2px)" },
|
|
243
|
-
to: { opacity: "1", transform: "translateY(0)" }
|
|
244
|
-
},
|
|
245
|
-
slideLeftAndFade: {
|
|
246
|
-
from: { opacity: "0", transform: "translateX(20px)" },
|
|
247
|
-
to: { opacity: "1", transform: "translateX(0)" }
|
|
248
|
-
},
|
|
249
|
-
slideUpAndFade: {
|
|
250
|
-
from: { opacity: "0", transform: "translateY(20px)" },
|
|
251
|
-
to: { opacity: "1", transform: "translateY(0)" }
|
|
252
|
-
},
|
|
253
|
-
slideRightAndFade: {
|
|
254
|
-
from: { opacity: "0", transform: "translateX(-20px)" },
|
|
255
|
-
to: { opacity: "1", transform: "translateX(0)" }
|
|
256
|
-
},
|
|
257
|
-
slideIn: {
|
|
258
|
-
from: { transform: "translateY(-100%)" },
|
|
259
|
-
to: { transform: "translateY(0)" }
|
|
260
|
-
},
|
|
261
|
-
slideOut: {
|
|
262
|
-
from: { transform: "translateY(0)" },
|
|
263
|
-
to: { transform: "translateY(-100%)" }
|
|
264
246
|
}
|
|
265
247
|
},
|
|
266
248
|
animation: {
|
|
267
|
-
"accordion-down": "accordion-down
|
|
268
|
-
"accordion-up": "accordion-up
|
|
269
|
-
slideDownAndFade: "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
270
|
-
slideLeftAndFade: "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
271
|
-
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
272
|
-
slideRightAndFade: "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
273
|
-
slideIn: "slideIn 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
274
|
-
slideOut: "slideOut 400ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
249
|
+
"accordion-down": "accordion-down var(--humu-duration-normal) var(--humu-easing-out)",
|
|
250
|
+
"accordion-up": "accordion-up var(--humu-duration-normal) var(--humu-easing-out)"
|
|
275
251
|
}
|
|
276
252
|
}
|
|
277
|
-
}
|
|
253
|
+
},
|
|
254
|
+
plugins: [animate]
|
|
278
255
|
};
|
|
279
256
|
var tailwind_preset_default = preset;
|
|
280
257
|
export {
|
package/dist/tokens/semantic.css
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
--humu-content-on-brand: var(--humu-color-grey-950);
|
|
22
22
|
--humu-content-on-brand-inactive: color-mix(in srgb, var(--humu-color-grey-950) 30%, transparent);
|
|
23
23
|
--humu-content-brand: var(--humu-color-brand-600);
|
|
24
|
+
--humu-content-brand-strong: var(--humu-color-grey-950);
|
|
24
25
|
--humu-content-inactive: var(--humu-color-grey-400);
|
|
25
26
|
|
|
26
27
|
--humu-border-default: var(--humu-color-grey-300);
|
|
@@ -33,6 +34,8 @@
|
|
|
33
34
|
--humu-border-turtle: var(--humu-color-turtle-300);
|
|
34
35
|
--humu-border-purple: var(--humu-color-purple-300);
|
|
35
36
|
|
|
37
|
+
--humu-focus-ring: var(--humu-color-grey-950);
|
|
38
|
+
|
|
36
39
|
--humu-status-background-default: var(--humu-color-white);
|
|
37
40
|
--humu-status-background-success: var(--humu-color-green-500);
|
|
38
41
|
--humu-status-background-warning: var(--humu-color-yellow-500);
|
|
@@ -108,6 +111,7 @@
|
|
|
108
111
|
--humu-content-on-brand: var(--humu-color-grey-950);
|
|
109
112
|
--humu-content-on-brand-inactive: color-mix(in srgb, var(--humu-color-grey-950) 50%, transparent);
|
|
110
113
|
--humu-content-brand: var(--humu-color-brand-300);
|
|
114
|
+
--humu-content-brand-strong: var(--humu-color-brand-500);
|
|
111
115
|
--humu-content-inactive: var(--humu-color-grey-500);
|
|
112
116
|
|
|
113
117
|
--humu-border-default: var(--humu-color-grey-700);
|
|
@@ -120,6 +124,8 @@
|
|
|
120
124
|
--humu-border-turtle: var(--humu-color-turtle-600);
|
|
121
125
|
--humu-border-purple: var(--humu-color-purple-700);
|
|
122
126
|
|
|
127
|
+
--humu-focus-ring: var(--humu-color-brand-500);
|
|
128
|
+
|
|
123
129
|
--humu-status-background-default: var(--humu-color-grey-700);
|
|
124
130
|
--humu-status-background-success: var(--humu-color-green-500);
|
|
125
131
|
--humu-status-background-warning: var(--humu-color-yellow-500);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humu-tech/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Design System da Humu: primitives e patterns em React 18 e 19, com tema claro/escuro, preset Tailwind e TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
"recharts": "3.10.1",
|
|
128
128
|
"remark-gfm": "4.0.1",
|
|
129
129
|
"sonner": "2.0.8",
|
|
130
|
-
"tailwind-merge": "^3.7.0"
|
|
130
|
+
"tailwind-merge": "^3.7.0",
|
|
131
|
+
"tailwindcss-animate": "1.0.7"
|
|
131
132
|
}
|
|
132
133
|
}
|