@humu-tech/ui 0.1.26 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@humu-tech/ui",
3
- "version": "0.1.26",
4
- "description": "Design System V2 da Humu — 51 primitives e 32 patterns em React 18, com tema claro/escuro, preset Tailwind e TypeScript.",
3
+ "version": "0.3.0",
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",
7
7
  "react",
@@ -12,6 +12,7 @@
12
12
  "humu"
13
13
  ],
14
14
  "license": "MIT",
15
+ "type": "commonjs",
15
16
  "homepage": "https://inovanti-bank.github.io/humu-ui/",
16
17
  "repository": {
17
18
  "type": "git",
@@ -26,12 +27,26 @@
26
27
  "types": "./dist/index.d.ts",
27
28
  "exports": {
28
29
  ".": {
29
- "import": "./dist/index.mjs",
30
- "require": "./dist/index.js",
31
- "types": "./dist/index.d.ts"
30
+ "import": {
31
+ "types": "./dist/index.d.mts",
32
+ "default": "./dist/index.mjs"
33
+ },
34
+ "require": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ }
32
38
  },
33
39
  "./tokens.css": "./dist/tokens.css",
34
- "./tailwind-preset": "./dist/tailwind-preset.js"
40
+ "./tailwind-preset": {
41
+ "import": {
42
+ "types": "./dist/tailwind-preset.d.mts",
43
+ "default": "./dist/tailwind-preset.mjs"
44
+ },
45
+ "require": {
46
+ "types": "./dist/tailwind-preset.d.ts",
47
+ "default": "./dist/tailwind-preset.js"
48
+ }
49
+ }
35
50
  },
36
51
  "files": [
37
52
  "dist/**",
@@ -49,40 +64,43 @@
49
64
  "dev": "tsup --watch",
50
65
  "lint": "eslint src --max-warnings 0",
51
66
  "typecheck": "tsc -p tsconfig.typecheck.json",
52
- "test": "vitest run"
67
+ "test": "vitest run",
68
+ "check-package": "publint --strict && attw --pack . --profile node16 --exclude-entrypoints ./tokens.css"
53
69
  },
54
70
  "peerDependencies": {
55
- "react": "^18",
56
- "react-dom": "^18"
71
+ "react": "^18 || ^19",
72
+ "react-dom": "^18 || ^19"
57
73
  },
58
74
  "devDependencies": {
75
+ "@arethetypeswrong/cli": "0.18.5",
59
76
  "@humu/eslint-config": "*",
60
77
  "@humu/ts-config": "*",
61
- "@storybook/react-vite": "10.6.0",
78
+ "@storybook/react-vite": "10.6.5",
62
79
  "@testing-library/jest-dom": "7.0.1",
63
80
  "@testing-library/react": "16.3.3",
64
- "@testing-library/user-event": "14.6.7",
81
+ "@testing-library/user-event": "14.6.8",
65
82
  "@types/culori": "4.0.1",
66
83
  "@types/react": "^18",
67
84
  "@types/react-dom": "^18",
68
- "@vitest/browser": "4.1.11",
69
- "@vitest/browser-playwright": "4.1.11",
70
- "eslint": "^8.57.1",
71
- "eslint-plugin-prettier": "^5.1.3",
85
+ "@vitest/browser": "4.1.12",
86
+ "@vitest/browser-playwright": "4.1.12",
87
+ "eslint": "10.14.0",
88
+ "eslint-plugin-prettier": "5.5.7",
72
89
  "jsdom": "29.1.1",
73
- "playwright": "1.63.0",
90
+ "playwright": "1.64.1",
91
+ "publint": "0.3.25",
74
92
  "react": "^18",
75
93
  "react-dom": "^18",
76
- "storybook": "10.6.0",
94
+ "storybook": "10.6.5",
77
95
  "tailwindcss": "^3.4.19",
78
96
  "tsup": "^8.0.0",
79
97
  "typescript": "^5",
80
- "vitest": "4.1.11"
98
+ "vitest": "4.1.12"
81
99
  },
82
100
  "dependencies": {
101
+ "@fontsource-variable/ibm-plex-sans": "5.3.0",
83
102
  "@fontsource-variable/inter": "5.3.0",
84
103
  "@fontsource-variable/jetbrains-mono": "5.3.0",
85
- "@phosphor-icons/react": "^2.1.8",
86
104
  "@radix-ui/react-accordion": "1.2.20",
87
105
  "@radix-ui/react-checkbox": "1.3.11",
88
106
  "@radix-ui/react-context-menu": "2.3.7",
@@ -101,13 +119,15 @@
101
119
  "culori": "^4.0.2",
102
120
  "date-fns": "4.4.0",
103
121
  "input-otp": "1.5.0",
104
- "react-colorful": "^5.6.1",
105
- "react-day-picker": "10.0.1",
122
+ "lucide-react": "1.56.0",
123
+ "react-colorful": "5.8.1",
124
+ "react-day-picker": "10.0.2",
106
125
  "react-image-zooom": "^1.6.0",
107
126
  "react-markdown": "10.1.0",
108
127
  "recharts": "3.10.1",
109
128
  "remark-gfm": "4.0.1",
110
129
  "sonner": "2.0.8",
111
- "tailwind-merge": "^3.7.0"
130
+ "tailwind-merge": "^3.7.0",
131
+ "tailwindcss-animate": "1.0.7"
112
132
  }
113
133
  }
@@ -1,105 +0,0 @@
1
- .rdp-root.rdp-v2 {
2
- --rdp-day-width: 36px;
3
- --rdp-day-height: 36px;
4
- --rdp-day_button-width: 36px;
5
- --rdp-day_button-height: 36px;
6
- --rdp-nav-height: 2rem;
7
- --rdp-nav_button-width: 2rem;
8
- --rdp-nav_button-height: 2rem;
9
- --rdp-accent-color: var(--v2-action-primary);
10
- --rdp-accent-background-color: var(--v2-action-primary);
11
- --rdp-today-color: var(--v2-action-primary);
12
- --rdp-selected-border: 2px solid var(--v2-action-primary);
13
- --rdp-outside-opacity: 0.5;
14
- --rdp-disabled-opacity: 0.4;
15
- --rdp-weekday-text-transform: uppercase;
16
- --rdp-weekday-opacity: 1;
17
- margin: 0;
18
- color: var(--v2-fg-default);
19
- }
20
-
21
- .rdp-v2 .rdp-day_button {
22
- border-radius: var(--radius-md);
23
- color: var(--v2-fg-default);
24
- }
25
-
26
- .rdp-v2 .rdp-day:not(.rdp-selected) .rdp-day_button:hover:not([disabled]) {
27
- background-color: var(--v2-bg-raised);
28
- }
29
-
30
- .rdp-v2 .rdp-selected {
31
- font-size: inherit;
32
- }
33
-
34
- .rdp-v2 .rdp-day_button:focus-visible {
35
- outline: 2px solid var(--v2-focus-ring);
36
- outline-offset: 1px;
37
- }
38
-
39
- .rdp-v2 .rdp-today .rdp-day_button {
40
- color: var(--v2-action-primary);
41
- font-weight: 600;
42
- }
43
-
44
- .rdp-v2 .rdp-outside .rdp-day_button {
45
- color: var(--v2-fg-subtle);
46
- }
47
-
48
- .rdp-v2 .rdp-weekday {
49
- color: var(--v2-fg-muted);
50
- font-weight: 500;
51
- }
52
-
53
- .rdp-v2 .rdp-caption_label {
54
- color: var(--v2-fg-default);
55
- font-weight: 600;
56
- }
57
-
58
- .rdp-v2 .rdp-button_previous,
59
- .rdp-v2 .rdp-button_next {
60
- display: inline-flex;
61
- align-items: center;
62
- justify-content: center;
63
- border: 1px solid var(--v2-border-default);
64
- border-radius: 9999px;
65
- background-color: transparent;
66
- color: var(--v2-fg-default);
67
- transition: background-color 120ms ease;
68
- }
69
-
70
- .rdp-v2 .rdp-button_previous:not([aria-disabled='true']):hover,
71
- .rdp-v2 .rdp-button_next:not([aria-disabled='true']):hover {
72
- background-color: var(--v2-bg-raised);
73
- }
74
-
75
- .rdp-v2 .rdp-button_previous:focus-visible,
76
- .rdp-v2 .rdp-button_next:focus-visible {
77
- outline: 2px solid var(--v2-focus-ring);
78
- outline-offset: 1px;
79
- }
80
-
81
- .rdp-v2 .rdp-button_previous[aria-disabled='true'],
82
- .rdp-v2 .rdp-button_next[aria-disabled='true'] {
83
- opacity: 0.4;
84
- }
85
-
86
- .rdp-v2 .rdp-chevron {
87
- width: 1rem;
88
- height: 1rem;
89
- fill: currentColor;
90
- }
91
-
92
- .rdp-v2-single .rdp-day_button {
93
- border-radius: 9999px;
94
- }
95
-
96
- .rdp-v2-single .rdp-today:not(.rdp-selected) .rdp-day_button {
97
- box-shadow: inset 0 0 0 1.5px var(--v2-action-primary);
98
- }
99
-
100
- .rdp-v2-single .rdp-selected .rdp-day_button {
101
- background-color: var(--v2-action-primary);
102
- color: var(--v2-action-on-primary);
103
- border: none;
104
- font-weight: 600;
105
- }
@@ -1,143 +0,0 @@
1
- .rdp-root.rdp-v2-range {
2
- --rdp-accent-background-color: color-mix(
3
- in oklch,
4
- var(--v2-action-primary) 18%,
5
- transparent
6
- );
7
- --rdp-day-width: 36px;
8
- --rdp-day-height: 36px;
9
- --rdp-day_button-width: 36px;
10
- --rdp-day_button-height: 36px;
11
- --rdp-nav-height: 2rem;
12
- --rdp-nav_button-width: 2rem;
13
- --rdp-nav_button-height: 2rem;
14
- --rdp-months-gap: 1.5rem;
15
- --rdp-accent-color: var(--v2-action-primary);
16
- --rdp-today-color: var(--v2-action-primary);
17
- --rdp-selected-border: 2px solid var(--v2-action-primary);
18
- --rdp-outside-opacity: 0.5;
19
- --rdp-disabled-opacity: 0.4;
20
- --rdp-weekday-text-transform: uppercase;
21
- --rdp-weekday-opacity: 1;
22
- margin: 0;
23
- color: var(--v2-fg-default);
24
- }
25
-
26
- .rdp-v2-range .rdp-weekday {
27
- color: var(--v2-fg-muted);
28
- font-weight: 500;
29
- }
30
-
31
- .rdp-v2-range .rdp-caption_label {
32
- color: var(--v2-fg-default);
33
- font-weight: 600;
34
- }
35
-
36
- .rdp-v2-range .rdp-day_button {
37
- border-radius: var(--radius-md, 8px);
38
- color: var(--v2-fg-default);
39
- }
40
-
41
- .rdp-v2-range
42
- .rdp-day:not(.rdp-selected):not(.rdp-range_middle)
43
- .rdp-day_button:hover:not([disabled]) {
44
- background-color: color-mix(
45
- in oklch,
46
- var(--v2-action-primary) 22%,
47
- transparent
48
- );
49
- }
50
-
51
- .rdp-v2-range .rdp-day_button:focus-visible {
52
- outline: 2px solid var(--v2-focus-ring);
53
- outline-offset: 1px;
54
- }
55
-
56
- .rdp-v2-range .rdp-today .rdp-day_button {
57
- color: var(--v2-action-primary);
58
- font-weight: 600;
59
- }
60
-
61
- .rdp-v2-range
62
- .rdp-today:not(.rdp-selected):not(.rdp-range_middle)
63
- .rdp-day_button {
64
- box-shadow: inset 0 0 0 1.5px var(--v2-action-primary);
65
- }
66
-
67
- .rdp-v2-range .rdp-outside .rdp-day_button {
68
- color: var(--v2-fg-subtle);
69
- }
70
-
71
- .rdp-v2-range .rdp-range_start .rdp-day_button,
72
- .rdp-v2-range .rdp-range_end .rdp-day_button,
73
- .rdp-v2-range .rdp-selected:not(.rdp-range_middle) .rdp-day_button {
74
- background-color: var(--v2-action-primary);
75
- color: var(--v2-action-on-primary);
76
- font-weight: 600;
77
- border: none;
78
- }
79
-
80
- .rdp-v2-range .rdp-range_middle {
81
- font-weight: 400;
82
- }
83
-
84
- .rdp-v2-range .rdp-range_middle .rdp-day_button {
85
- color: var(--v2-fg-default);
86
- border-radius: 0;
87
- }
88
-
89
- .rdp-v2-range .rdp-range_middle .rdp-day_button:hover:not([disabled]) {
90
- background-color: color-mix(
91
- in oklch,
92
- var(--v2-action-primary) 32%,
93
- transparent
94
- );
95
- }
96
-
97
- .rdp-v2-range .rdp-range_start:not(.rdp-range_end) .rdp-day_button {
98
- border-top-right-radius: 0;
99
- border-bottom-right-radius: 0;
100
- }
101
-
102
- .rdp-v2-range .rdp-range_end:not(.rdp-range_start) .rdp-day_button {
103
- border-top-left-radius: 0;
104
- border-bottom-left-radius: 0;
105
- }
106
-
107
- .rdp-v2-range .rdp-button_previous,
108
- .rdp-v2-range .rdp-button_next {
109
- display: inline-flex;
110
- align-items: center;
111
- justify-content: center;
112
- border: 1px solid var(--v2-border-default);
113
- border-radius: 9999px;
114
- background-color: var(--v2-bg-panel);
115
- color: var(--v2-fg-default);
116
- transition: background-color 120ms ease;
117
- }
118
-
119
- .rdp-v2-range .rdp-button_previous:not([aria-disabled='true']):hover,
120
- .rdp-v2-range .rdp-button_next:not([aria-disabled='true']):hover {
121
- background-color: var(--v2-bg-raised);
122
- }
123
-
124
- .rdp-v2-range .rdp-button_previous:focus-visible,
125
- .rdp-v2-range .rdp-button_next:focus-visible {
126
- outline: 2px solid var(--v2-focus-ring);
127
- outline-offset: 1px;
128
- }
129
-
130
- .rdp-v2-range .rdp-button_previous[aria-disabled='true'],
131
- .rdp-v2-range .rdp-button_next[aria-disabled='true'] {
132
- opacity: 0.4;
133
- }
134
-
135
- .rdp-v2-range .rdp-chevron {
136
- width: 1rem;
137
- height: 1rem;
138
- fill: currentColor;
139
- }
140
-
141
- .rdp-v2-range .rdp-selected {
142
- font-size: inherit;
143
- }
@@ -1,44 +0,0 @@
1
- .ds-v2-sidebar-aside {
2
- scrollbar-width: none;
3
- overflow-x: clip;
4
- overflow-y: visible;
5
- }
6
-
7
- .ds-v2-sidebar-aside::-webkit-scrollbar {
8
- display: none;
9
- }
10
-
11
- .ds-v2-sidebar-nav {
12
- overflow-x: clip;
13
- overflow-y: visible;
14
- position: relative;
15
- z-index: 0;
16
- }
17
-
18
- .ds-v2-sidebar-item--active {
19
- position: relative;
20
- background-color: var(--v2-bg-subtle);
21
- }
22
-
23
- .ds-v2-sidebar-item--active::before,
24
- .ds-v2-sidebar-item--active::after {
25
- content: '';
26
- position: absolute;
27
- right: 0;
28
- width: 2.5rem;
29
- height: 2.5rem;
30
- border-radius: 50%;
31
- background-color: transparent;
32
- pointer-events: none;
33
- z-index: -10;
34
- }
35
-
36
- .ds-v2-sidebar-item--active::before {
37
- top: -2.5rem;
38
- box-shadow: 20px 20px 0 var(--v2-bg-subtle);
39
- }
40
-
41
- .ds-v2-sidebar-item--active::after {
42
- bottom: -2.5rem;
43
- box-shadow: 20px -20px 0 var(--v2-bg-subtle);
44
- }