@carbonid1/design-system 5.0.0 → 5.0.1
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 +5 -1
- package/src/Tooltip/Tooltip.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbonid1/design-system",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Shared React UI primitives + design tokens (themes, postcss config)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -75,11 +75,13 @@
|
|
|
75
75
|
"@types/react": "^19.2.14",
|
|
76
76
|
"@types/react-dom": "^19.2.3",
|
|
77
77
|
"@vitejs/plugin-react": "^6.0.1",
|
|
78
|
+
"@vitest/browser-playwright": "^4.1.4",
|
|
78
79
|
"class-variance-authority": "^0.7.1",
|
|
79
80
|
"clsx": "^2.1.1",
|
|
80
81
|
"jsdom": "^29.0.2",
|
|
81
82
|
"lucide-react": "^1.8.0",
|
|
82
83
|
"next-themes": "^0.4.6",
|
|
84
|
+
"playwright": "^1.59.1",
|
|
83
85
|
"react": "^19.2.5",
|
|
84
86
|
"react-dom": "^19.2.5",
|
|
85
87
|
"react-hotkeys-hook": "^5.2.4",
|
|
@@ -96,6 +98,8 @@
|
|
|
96
98
|
"build-storybook": "storybook build",
|
|
97
99
|
"test": "vitest --run",
|
|
98
100
|
"test:watch": "vitest",
|
|
101
|
+
"test:storybook": "vitest --project=storybook",
|
|
102
|
+
"test:run:storybook": "vitest run --project=storybook",
|
|
99
103
|
"postinstall": "node scripts/install-skill.mjs"
|
|
100
104
|
}
|
|
101
105
|
}
|
package/src/Tooltip/Tooltip.tsx
CHANGED
|
@@ -94,7 +94,7 @@ export const Tooltip = ({
|
|
|
94
94
|
<div
|
|
95
95
|
role="tooltip"
|
|
96
96
|
style={maxWidth ? { maxWidth } : undefined}
|
|
97
|
-
className={`absolute left-1/2 z-50 -translate-x-1/2 ${maxWidth ? 'whitespace-normal' : 'whitespace-nowrap'} bg-foreground text-background pointer-events-none flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs shadow-lg ${positionClasses}`}
|
|
97
|
+
className={`absolute left-1/2 z-50 -translate-x-1/2 ${maxWidth ? 'w-max whitespace-normal' : 'whitespace-nowrap'} bg-foreground text-background pointer-events-none flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs shadow-lg ${positionClasses}`}
|
|
98
98
|
>
|
|
99
99
|
{label}
|
|
100
100
|
{shortcut && (
|