@banzamel/mineralui 0.4.1 → 0.5.3
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 +51 -34
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +424 -69
- package/dist/index.js +5850 -5697
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -1
- package/package.json +87 -87
package/README.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
7
|
-
- peer dependencies: `react >=
|
|
6
|
+
- release version: `0.5.3`
|
|
7
|
+
- peer dependencies: `react >= 19`, `react-dom >= 19`
|
|
8
8
|
- repository: `https://github.com/Banzamel/mineralui`
|
|
9
|
-
- styles:
|
|
9
|
+
- styles: auto-injected — CSS is bundled into JS and applied automatically on import
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -14,9 +14,7 @@ React component framework for dashboards, admin panels, documentation shells, se
|
|
|
14
14
|
npm install @banzamel/mineralui
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
import '@banzamel/mineralui/styles.css'
|
|
19
|
-
```
|
|
17
|
+
No separate CSS import needed. Styles are auto-injected when you import any component.
|
|
20
18
|
|
|
21
19
|
## Quick Start
|
|
22
20
|
|
|
@@ -31,7 +29,6 @@ import {
|
|
|
31
29
|
MSelect,
|
|
32
30
|
MStack,
|
|
33
31
|
} from '@banzamel/mineralui'
|
|
34
|
-
import '@banzamel/mineralui/styles.css'
|
|
35
32
|
|
|
36
33
|
function AccountSettings() {
|
|
37
34
|
return (
|
|
@@ -63,6 +60,7 @@ function AccountSettings() {
|
|
|
63
60
|
### Theme and primitives
|
|
64
61
|
- `MThemeProvider`, `useMTheme`
|
|
65
62
|
- `MPortal`, `MPopover`
|
|
63
|
+
- `MI18nProvider` — locale context for framework-level translations
|
|
66
64
|
- CSS variable token system for dark and light mode
|
|
67
65
|
- scoped theme overrides through the provider
|
|
68
66
|
|
|
@@ -71,17 +69,26 @@ function AccountSettings() {
|
|
|
71
69
|
- `MStack`, `MInline`, `MGrid`, `MGridItem`
|
|
72
70
|
- `MSurface`, `MDivider`
|
|
73
71
|
- `MHeader`, `MFooter`, `MNavbar`, `MNavs`, `MTabs`
|
|
72
|
+
- `MSidebar`, `MSidebarItem`, `MSidebarGroup`, `MSidebarDivider`
|
|
73
|
+
- `MSubNav`
|
|
74
74
|
|
|
75
75
|
### Display
|
|
76
76
|
- `MCard`, `MCardHeader`, `MCardBody`, `MCardFooter`
|
|
77
|
-
- `MBadge`, `MAlert`
|
|
77
|
+
- `MBadge`, `MAlert`, `MBanner`
|
|
78
78
|
- `MTable`, `MTableRoot`, `MTableHead`, `MTableBody`, `MTableRow`, `MTableHeadCell`, `MTableCell`
|
|
79
79
|
- `MCollapsible`, `MSpinner`, `MLoader`
|
|
80
80
|
- `MAvatar`, `MModal`
|
|
81
|
+
- `MImage`, `MGallery`
|
|
82
|
+
- `MCarousel`
|
|
83
|
+
- `MProgressBar`
|
|
84
|
+
- `MRating`
|
|
85
|
+
- `MCountUp`
|
|
86
|
+
- `MTaskList`, `MTaskItem`
|
|
87
|
+
- `MDropdownMenu`, `MDropdownMenuItem`, `MDropdownMenuDivider`
|
|
81
88
|
- `MCalendarBoard`, `MCalendarDayCell`, `MCalendarEventList`, `MCalendarEventItem`, `MCalendarEventPopover`, `MCalendarTimeline`
|
|
82
89
|
|
|
83
90
|
### Typography
|
|
84
|
-
- `MHeading`, `MText`, `MLink`, `MCode`, `MList`, `MListItem`
|
|
91
|
+
- `MHeading`, `MText`, `MSubText`, `MLink`, `MCode`, `MList`, `MListItem`
|
|
85
92
|
|
|
86
93
|
### Controls
|
|
87
94
|
- `MButton`
|
|
@@ -100,7 +107,7 @@ function AccountSettings() {
|
|
|
100
107
|
- `MSelect`
|
|
101
108
|
- `MAutocomplete`
|
|
102
109
|
- `MDatePicker`
|
|
103
|
-
- `MDateRangePicker`
|
|
110
|
+
- `MDateRangePicker` — supports `presetsSidebar` for a toggleable side panel with predefined date ranges
|
|
104
111
|
- `MTimePicker`
|
|
105
112
|
|
|
106
113
|
### Form and validation
|
|
@@ -122,11 +129,29 @@ MineralUI is driven by CSS variables and readable class names.
|
|
|
122
129
|
|
|
123
130
|
```css
|
|
124
131
|
:root {
|
|
132
|
+
/* Brand — override only *-rgb, the rest is auto-generated */
|
|
125
133
|
--mineral-primary-rgb: 0, 165, 222;
|
|
126
|
-
--mineral-primary: rgba(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
--mineral-
|
|
134
|
+
--mineral-primary: rgba(var(--mineral-primary-rgb), 1);
|
|
135
|
+
|
|
136
|
+
/* Status palette */
|
|
137
|
+
--mineral-success-rgb: 22, 163, 74;
|
|
138
|
+
--mineral-error-rgb: 220, 38, 38;
|
|
139
|
+
--mineral-warning-rgb: 234, 124, 0;
|
|
140
|
+
--mineral-info-rgb: 59, 130, 246;
|
|
141
|
+
|
|
142
|
+
/* Surface (dark mode default) */
|
|
143
|
+
--mineral-surface: rgba(21, 29, 46, 1);
|
|
144
|
+
--mineral-page-bg: rgba(15, 23, 42, 1);
|
|
145
|
+
--mineral-input-bg: rgba(37, 51, 71, 1);
|
|
146
|
+
|
|
147
|
+
/* Text */
|
|
148
|
+
--mineral-text: rgba(226, 232, 240, 1);
|
|
149
|
+
--mineral-text-secondary: rgba(100, 116, 139, 1);
|
|
150
|
+
|
|
151
|
+
/* Borders */
|
|
152
|
+
--mineral-border: rgba(255, 255, 255, 0.15);
|
|
153
|
+
--mineral-border-hover: rgba(255, 255, 255, 0.25);
|
|
154
|
+
--mineral-border-focus: var(--mineral-primary);
|
|
130
155
|
}
|
|
131
156
|
```
|
|
132
157
|
|
|
@@ -148,6 +173,7 @@ Framework defaults:
|
|
|
148
173
|
### Layout-first API
|
|
149
174
|
- `MStack`, `MInline` and `MGrid` cover the majority of internal dashboard layouts without extra utility libraries.
|
|
150
175
|
- `MGrid` supports equal columns by default and responsive span overrides with `sm`, `md`, `lg`, `xl`.
|
|
176
|
+
- `MSidebar` provides collapsible, nested navigation with grouped items and dividers.
|
|
151
177
|
|
|
152
178
|
### Form-heavy components
|
|
153
179
|
- Specialized inputs handle formatting and validation instead of pushing that logic into every application.
|
|
@@ -156,32 +182,23 @@ Framework defaults:
|
|
|
156
182
|
|
|
157
183
|
### Date workflows
|
|
158
184
|
- `MDatePicker` and `MDateRangePicker` support inline and popover usage.
|
|
159
|
-
- `MDateRangePicker` ships with built-in presets
|
|
185
|
+
- `MDateRangePicker` ships with 12 built-in presets and a toggleable `presetsSidebar` for quick range selection.
|
|
160
186
|
- `MCalendarBoard` covers non-form calendar surfaces such as planning, invoices, birthdays, and task density views.
|
|
161
187
|
|
|
188
|
+
### Rich display components
|
|
189
|
+
- `MCarousel` for image and content slideshows.
|
|
190
|
+
- `MImage` with aspect ratio, fallback and lazy loading. `MGallery` for responsive image grids.
|
|
191
|
+
- `MProgressBar` with animated fills and label support.
|
|
192
|
+
- `MRating` for star-based interactive ratings.
|
|
193
|
+
- `MCountUp` for animated number counters.
|
|
194
|
+
- `MTaskList` for checklist-style task tracking.
|
|
195
|
+
- `MDropdownMenu` for context menus and action lists.
|
|
196
|
+
- `MBanner` for page-level messaging.
|
|
197
|
+
|
|
162
198
|
### Interaction model
|
|
163
199
|
- Buttons, cards, avatars, tabs and interactive inputs can share the same click effect model.
|
|
164
200
|
- Navigation and picker overlays render through shared popover primitives.
|
|
165
201
|
|
|
166
|
-
## Build and Checks
|
|
167
|
-
|
|
168
|
-
```bash
|
|
169
|
-
npm run format
|
|
170
|
-
npm run format:check
|
|
171
|
-
npm run build
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
Known note:
|
|
175
|
-
- `vite-plugin-dts` / API Extractor currently warns about its bundled TypeScript version versus the installed project version, but the build completes successfully.
|
|
176
|
-
|
|
177
|
-
## Local Verification Surface
|
|
178
|
-
|
|
179
|
-
The working documentation and preview site lives in the sibling project:
|
|
180
|
-
|
|
181
|
-
- `../mineralui-website`
|
|
182
|
-
|
|
183
|
-
That site is wired to the local package build through `file:../mineralui` and is the primary visual verification surface before release.
|
|
184
|
-
|
|
185
202
|
## Repository
|
|
186
203
|
|
|
187
204
|
- GitHub: `https://github.com/Banzamel/mineralui`
|