@mihcm/ui 0.16.0 → 0.16.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/README.md +8 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@ This is the primary component package. It ships typed, tokenized primitives with
|
|
|
6
6
|
|
|
7
7
|
## Current release
|
|
8
8
|
|
|
9
|
-
Current package version: **0.
|
|
9
|
+
Current package version: **0.16.0**.
|
|
10
10
|
|
|
11
|
-
This release
|
|
11
|
+
This release rebuilds `Toast` on top of [sonner](https://github.com/emilkowalski/sonner) (themed end-to-end with MiHCM tokens) and lands the `MainSidebar` polish + whitelabel layer: five interaction variants (drilldown / floating / columns / command / hover), shadcn-style `collapsible="icon"`, mobile hamburger + Sheet pattern, vertical guide lines for arbitrary nesting, and a 14-token `colorScheme` prop for full whitelabeling. See `CHANGELOG.md` and the public changelog at `https://designsystem.mihcm.com/help/changelog`.
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
@@ -58,6 +58,12 @@ Variant styling uses proven helpers rather than handwritten class maps: `class-v
|
|
|
58
58
|
|
|
59
59
|
## Recent additions and fixes
|
|
60
60
|
|
|
61
|
+
### 0.16.0
|
|
62
|
+
- **Toast** rebuilt on top of [sonner](https://github.com/emilkowalski/sonner). Exposes the full upstream feature set (`toast.success/error/warning/info/message/loading`, `toast.promise`, `toast.custom`, action+cancel buttons, swipe-to-dismiss, expand-on-hover, theme switching) with MiHCM tokens mapped through sonner's CSS variables so surface, type tints, and buttons follow the design-system palette in light + dark mode. Legacy `<ToastProvider>` + `<Toast>` sub-components remain as deprecated shims.
|
|
63
|
+
- **MainSidebar** ships shadcn-style collapsible toggle (`collapsible="icon"`), five interaction variants, deep-nesting breadcrumbs (`PathBreadcrumb`), mobile hamburger pattern via existing `Sheet`, and a 14-token `colorScheme` prop (`bg`, `fg`, `railBg`, `railFg`, `panelBg`, `panelFg`, `accentBg`, `accentFg`, `border`, `mutedFg`, `hoverBg`, `ring`, `tooltipBg`, `tooltipFg`) that cascades through every nested affordance — including tooltips, badges, breadcrumbs, panel surfaces, and dividers. Outside-click + Esc dismissal unified, columns variant `flushSync`-resets deep stack on close, focus uses `preventScroll`.
|
|
64
|
+
- **Icons + badges in active rows** inherit `currentColor` from the parent button so themed accent surfaces render the right contrast.
|
|
65
|
+
|
|
66
|
+
### 0.15.0
|
|
61
67
|
- Added a semantic `Link` primitive for real navigation, with inline, nav, standalone, button-like, muted, foreground, and accent variants.
|
|
62
68
|
- Added semantic `Text as="h1" | "h2" | "p" | ...` rendering so docs, apps, and AI-generated text preserve the actual document outline instead of styling generic spans.
|
|
63
69
|
- Made `Button` default to `type="button"` while still supporting explicit `type="submit"` and `type="reset"` for form actions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mihcm/ui",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Universal primitives (Button, Input, ...) for React, Next.js, and React Native. Tailwind 4 + NativeWind v5.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -458,8 +458,8 @@
|
|
|
458
458
|
"tailwind-merge": "^3.6.0",
|
|
459
459
|
"tailwind-variants": "3.2.2",
|
|
460
460
|
"vaul": "1.1.2",
|
|
461
|
-
"@mihcm/theme": "0.2.
|
|
462
|
-
"@mihcm/tokens": "0.6.
|
|
461
|
+
"@mihcm/theme": "0.2.11",
|
|
462
|
+
"@mihcm/tokens": "0.6.4"
|
|
463
463
|
},
|
|
464
464
|
"peerDependencies": {
|
|
465
465
|
"nativewind": ">=4.1.0",
|
|
@@ -488,7 +488,7 @@
|
|
|
488
488
|
"react-dom": "19.2.6",
|
|
489
489
|
"react-native": "0.85.3",
|
|
490
490
|
"typescript": "^6.0.3",
|
|
491
|
-
"@mihcm/eslint-config": "0.1.
|
|
491
|
+
"@mihcm/eslint-config": "0.1.4"
|
|
492
492
|
},
|
|
493
493
|
"scripts": {
|
|
494
494
|
"build": "tsc -p tsconfig.json",
|