@carbonid1/design-system 5.0.0 → 5.0.2
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 +0 -1
- package/package.json +5 -1
- package/skills/design-system/SKILL.md +1 -1
- package/src/Tooltip/Tooltip.tsx +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,6 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|
|
70
70
|
| `Kbd` | Keyboard key display (`⌘K`, `⇧B`) |
|
|
71
71
|
| `ProgressRing` | Circular progress indicator |
|
|
72
72
|
| `Slider` | Range slider |
|
|
73
|
-
| `Switch` | Toggle switch |
|
|
74
73
|
| `Select` | Custom dropdown — never use native `<select>` |
|
|
75
74
|
| `Tooltip` | Hover/focus tooltip (wraps a single child) |
|
|
76
75
|
| `Toaster` | Toast notification root (renders once in layout) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbonid1/design-system",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
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
|
}
|
|
@@ -9,7 +9,7 @@ Primitives live in `@carbonid1/design-system`. **Check the package's exports and
|
|
|
9
9
|
|
|
10
10
|
```ts
|
|
11
11
|
import {
|
|
12
|
-
Button, Kbd, ProgressRing, Slider,
|
|
12
|
+
Button, Kbd, ProgressRing, Slider,
|
|
13
13
|
ContextMenu, Select, Tooltip,
|
|
14
14
|
Toaster, toast,
|
|
15
15
|
ThemeProvider, ThemeCycler, useTheme,
|
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 && (
|