@banzamel/mineralui 0.7.0 → 0.8.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 +12 -4
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1784 -1752
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
React component framework for dashboards, admin panels, documentation shells, settings screens and data-heavy internal products.
|
|
4
4
|
|
|
5
5
|
- npm: `@banzamel/mineralui`
|
|
6
|
-
- release version: `0.
|
|
6
|
+
- release version: `0.8.0`
|
|
7
7
|
- peer dependencies: `react >= 19`, `react-dom >= 19`
|
|
8
8
|
- repository: `https://github.com/Banzamel/mineralui`
|
|
9
9
|
- styles: auto-injected — CSS is bundled into JS and applied automatically on import
|
|
@@ -73,13 +73,13 @@ function AccountSettings() {
|
|
|
73
73
|
- `MSubNav`
|
|
74
74
|
- `MBreadcrumb` — path-based navigation with collapsible middle items
|
|
75
75
|
- `MPagination` — numbered and simple page navigation
|
|
76
|
-
- `MAppShell`, `MBody` — top-level app structure
|
|
76
|
+
- `MAppShell`, `MBody` — top-level app structure; auto-detects `MSidebar` among direct children and wraps the rest in an internal content column
|
|
77
77
|
|
|
78
78
|
### Display
|
|
79
79
|
- `MCard`, `MCardHeader`, `MCardBody`, `MCardFooter`, `MCardPayment`
|
|
80
80
|
- `MBadge`, `MAlert`, `MBanner`
|
|
81
81
|
- `MTag` — interactive tags with close buttons and outlined variant
|
|
82
|
-
- `MTooltip` — hover/focus tooltip with 4 placements and
|
|
82
|
+
- `MTooltip` — hover/focus tooltip with 4 placements, delay, and Portal-based rendering to escape overflow clipping
|
|
83
83
|
- `MToastProvider`, `useToast` — toast notification system with auto-dismiss and animations
|
|
84
84
|
- `MDataTable` — data-driven table with sorting, filtering, pagination and row selection
|
|
85
85
|
- `MAccordion`, `MAccordionItem` — disclosure group with single or multiple open state
|
|
@@ -144,6 +144,8 @@ function AccountSettings() {
|
|
|
144
144
|
## Feature Highlights
|
|
145
145
|
|
|
146
146
|
### Layout-first API
|
|
147
|
+
- `MAppShell` auto-detects `MSidebar` among its direct children — no separate prop needed. Place `MSidebar`, `MHeader`, `MBody` and other elements as siblings inside `MAppShell`.
|
|
148
|
+
- `MBody` provides default padding for page content.
|
|
147
149
|
- `MStack`, `MInline` and `MGrid` cover the majority of internal dashboard layouts without extra utility libraries.
|
|
148
150
|
- `MGrid` supports equal columns by default and responsive span overrides with `sm`, `md`, `lg`, `xl`.
|
|
149
151
|
- `MSidebar` provides collapsible, nested navigation with grouped items and dividers.
|
|
@@ -191,7 +193,7 @@ function AccountSettings() {
|
|
|
191
193
|
- `MTaskList` for checklist-style task tracking.
|
|
192
194
|
- `MDropdownMenu` for context menus and action lists.
|
|
193
195
|
- `MBanner` for page-level messaging.
|
|
194
|
-
- `MTooltip` for contextual hints on hover or focus.
|
|
196
|
+
- `MTooltip` for contextual hints on hover or focus — renders through Portal so it is never clipped by parent overflow.
|
|
195
197
|
- `MDrawer` — slide-out panel from any screen edge for secondary content and navigation.
|
|
196
198
|
- `MPopconfirm` — confirmation popover for destructive actions.
|
|
197
199
|
- `MAccordion` — disclosure group with single or multiple open panels.
|
|
@@ -232,6 +234,12 @@ MineralUI is driven by CSS variables and readable class names.
|
|
|
232
234
|
--mineral-border: rgba(255, 255, 255, 0.15);
|
|
233
235
|
--mineral-border-hover: rgba(255, 255, 255, 0.25);
|
|
234
236
|
--mineral-border-focus: var(--mineral-primary);
|
|
237
|
+
|
|
238
|
+
/* Z-index layers */
|
|
239
|
+
--mineral-z-popover: 1000;
|
|
240
|
+
--mineral-z-modal: 1100;
|
|
241
|
+
--mineral-z-tooltip: 1150;
|
|
242
|
+
--mineral-z-toast: 1200;
|
|
235
243
|
}
|
|
236
244
|
```
|
|
237
245
|
|