@malva-ui/core 0.1.12 → 0.1.13
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/LICENSE +21 -0
- package/README.md +54 -3
- package/package.json +19 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Malva UI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# @malva-ui/core
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
A production-grade Angular component library — 68 components, light/dark theming, five density levels, 14 locales, and WCAG 2.1 AA accessibility verified with axe.
|
|
4
|
+
|
|
5
|
+
Every component is standalone, `OnPush`, and signal-based throughout, styled with BEM against `--mlv-*` design tokens you can override.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<button mlvButton>Save</button>
|
|
9
|
+
```
|
|
6
10
|
|
|
7
11
|
## Install
|
|
8
12
|
|
|
@@ -52,10 +56,57 @@ If styles or providers are managed elsewhere, disable those steps with
|
|
|
52
56
|
|
|
53
57
|
## Use a component
|
|
54
58
|
|
|
59
|
+
Each component has its own entry point, so you only bundle what you import:
|
|
60
|
+
|
|
55
61
|
```ts
|
|
56
62
|
import { MlvButton } from '@malva-ui/core/button';
|
|
63
|
+
import { MlvDialogService } from '@malva-ui/core/dialog';
|
|
64
|
+
import { MlvInput } from '@malva-ui/core/input';
|
|
57
65
|
```
|
|
58
66
|
|
|
59
67
|
```html
|
|
60
68
|
<button mlvButton>Save</button>
|
|
61
69
|
```
|
|
70
|
+
|
|
71
|
+
## Components
|
|
72
|
+
|
|
73
|
+
**Forms** — `button` · `input` · `textarea` · `select` · `combobox` · `autocomplete` · `checkbox` · `radio` · `switch` · `slider` · `rating` · `number-input` · `pin-input` · `file-upload` · `color-picker` · `tokenizer` · `search-field` · `segmented` · `form` · `form-utils`
|
|
74
|
+
|
|
75
|
+
**Dates** — `calendar` · `day-picker` · `date-range-picker` · `time-picker`
|
|
76
|
+
|
|
77
|
+
**Data** — `data-table` · `tree` · `pagination` · `filter` · `list` · `timeline`
|
|
78
|
+
|
|
79
|
+
**Overlays** — `dialog` · `drawer` · `popup` · `menu` · `tooltip` · `toast` · `notification` · `dropdown`
|
|
80
|
+
|
|
81
|
+
**Navigation** — `sidebar` · `tabs` · `breadcrumb` · `stepper` · `bottom-nav` · `action-bar` · `link` · `page`
|
|
82
|
+
|
|
83
|
+
**Layout** — `layout` · `card` · `tile` · `accordion` · `expand` · `split-pane` · `divider` · `toolbar` · `scrollbar`
|
|
84
|
+
|
|
85
|
+
**Display** — `avatar` · `avatar-group` · `badge` · `chip` · `alert` · `progress` · `loader` · `skeleton` · `empty-state` · `status-indicator` · `kbd` · `title` · `chat` · `copy-to-clipboard`
|
|
86
|
+
|
|
87
|
+
## Theming
|
|
88
|
+
|
|
89
|
+
Components read `--mlv-*` custom properties, so a theme is a stylesheet override — no build step, no SCSS fork:
|
|
90
|
+
|
|
91
|
+
```css
|
|
92
|
+
:root {
|
|
93
|
+
--mlv-background-accent-1: #6d28d9;
|
|
94
|
+
--mlv-radius-button: 0.75rem;
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Light and dark ship out of the box via `provideDefaultTheme()`; density (`tight` → `airy`) is switched per-tree with `mlvDensity` or globally with `provideMlvDensity()`.
|
|
99
|
+
|
|
100
|
+
## Peer dependencies
|
|
101
|
+
|
|
102
|
+
`@angular/aria`, `@angular/cdk`, `@angular/common`, `@angular/core`, `@angular/forms`, `@lucide/angular`, `rxjs`, plus the companion packages `@malva-ui/cdk` and `@malva-ui/i18n` (both added by `ng add`).
|
|
103
|
+
|
|
104
|
+
## Related packages
|
|
105
|
+
|
|
106
|
+
- [`@malva-ui/cdk`](https://www.npmjs.com/package/@malva-ui/cdk) — headless primitives (overlay, density, data-source)
|
|
107
|
+
- [`@malva-ui/i18n`](https://www.npmjs.com/package/@malva-ui/i18n) — localisation, 14 locales
|
|
108
|
+
- [`@malva-ui/editor`](https://www.npmjs.com/package/@malva-ui/editor) — Tiptap-based rich-text editor
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malva-ui/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
|
+
"description": "Angular UI component library — 68 accessible, signal-based components with light/dark theming, density levels and i18n.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"angular",
|
|
8
|
+
"ui",
|
|
9
|
+
"components",
|
|
10
|
+
"component-library",
|
|
11
|
+
"design-system",
|
|
12
|
+
"malva-ui",
|
|
13
|
+
"accessibility",
|
|
14
|
+
"a11y",
|
|
15
|
+
"wcag",
|
|
16
|
+
"signals",
|
|
17
|
+
"standalone",
|
|
18
|
+
"dark-mode"
|
|
19
|
+
],
|
|
4
20
|
"schematics": "./schematics/collection.json",
|
|
5
21
|
"publishConfig": {
|
|
6
22
|
"access": "public"
|
|
@@ -12,8 +28,8 @@
|
|
|
12
28
|
"@angular/core": "22.0.7",
|
|
13
29
|
"@angular/forms": "22.0.7",
|
|
14
30
|
"@lucide/angular": "^1.25.0",
|
|
15
|
-
"@malva-ui/cdk": "0.1.
|
|
16
|
-
"@malva-ui/i18n": "0.1.
|
|
31
|
+
"@malva-ui/cdk": "0.1.13",
|
|
32
|
+
"@malva-ui/i18n": "0.1.13",
|
|
17
33
|
"rxjs": "~7.8.0"
|
|
18
34
|
},
|
|
19
35
|
"sideEffects": false,
|