material-inspired-component-library 8.0.1 → 8.0.4
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/components/button/index.scss +83 -92
- package/components/card/index.scss +7 -0
- package/components/list/index.scss +7 -5
- package/components/select/index.scss +2 -0
- package/dist/button.css +1 -1
- package/dist/card.css +1 -1
- package/dist/list.css +1 -1
- package/dist/micl.css +1 -1
- package/dist/select.css +1 -1
- package/docs/index.html +1 -1
- package/docs/micl.css +1 -1
- package/package.json +1 -1
- package/CLAUDE.md +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "material-inspired-component-library",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"description": "The Material-Inspired Component Library (MICL) offers a collection of beautifully crafted components leveraging native HTML markup, designed to align with the Material Design 3 guidelines.",
|
|
5
5
|
"author": "MICL Hermana <micl.hermana@proton.me> (https://github.com/henkpb/micl)",
|
|
6
6
|
"license": "MIT",
|
package/CLAUDE.md
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md
|
|
2
|
-
|
|
3
|
-
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
-
|
|
5
|
-
## Project Overview
|
|
6
|
-
|
|
7
|
-
MICL is a Material Design 3 (M3 Expressive) UI component library written in Sass and TypeScript.
|
|
8
|
-
|
|
9
|
-
## Commands
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm run build # Compiles TypeScript + Sass via webpack, outputs to /dist/ and /docs/
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
There is no test suite, linter script, or dev server configured.
|
|
16
|
-
|
|
17
|
-
## Architecture
|
|
18
|
-
|
|
19
|
-
### Entry Points
|
|
20
|
-
|
|
21
|
-
- **`micl.ts`** — Main orchestrator. Initializes components lazily via a `MutationObserver` that watches for DOM insertions/removals. Handles event delegation for `input`, `change`, and `keydown` events, applies the ripple effect, and sets scrollbar CSS custom properties.
|
|
22
|
-
- **`styles.scss`** — Master stylesheet that imports all component and foundation Sass partials.
|
|
23
|
-
|
|
24
|
-
### Component Structure
|
|
25
|
-
|
|
26
|
-
Each component lives in `components/<name>/` and exports:
|
|
27
|
-
- A CSS selector string (e.g., `buttonSelector = 'button.micl-button--toggle'`)
|
|
28
|
-
- A handler object with `initialize(element)` / `cleanup(element)` methods and optional event handlers (`input`, `change`, `keydown`, `command`)
|
|
29
|
-
|
|
30
|
-
`micl.ts` imports every component handler, maps selectors to handlers, and drives the lifecycle using the MutationObserver + event delegation pattern.
|
|
31
|
-
|
|
32
|
-
### Styling System
|
|
33
|
-
|
|
34
|
-
- Sass uses `@use` (not `@import`); partials are namespaced.
|
|
35
|
-
- Theming is done entirely via CSS custom properties with `--md-comp-*` prefixes.
|
|
36
|
-
- `themes/` contains 11 colour themes, each with light, dark, and high-contrast variants.
|
|
37
|
-
- `styles/` contains Material Design tokens: typography, shapes, elevation, motion, state layers.
|
|
38
|
-
- `foundations/` contains the responsive layout system (breakpoints: compact ≤599 px, medium 600–839 px, expanded 840–1199 px, large 1200–1599 px, extra-large ≥1600 px).
|
|
39
|
-
|
|
40
|
-
### Coding
|
|
41
|
-
|
|
42
|
-
- The amount of TypeScript code should be minimized. Necessary functionality should be solved using SCSS only.
|
|
43
|
-
– The SCSS code can be verbose, but the compiled CSS code must be as small as possible.
|
|
44
|
-
|
|
45
|
-
### Documentation
|
|
46
|
-
|
|
47
|
-
- Component documentation is stored with the SCSS and JavaScript files. Always check if the documentation is up to date with regards to the implementation.
|
|
48
|
-
|
|
49
|
-
### Build
|
|
50
|
-
|
|
51
|
-
`webpack.config.js` produces two identical outputs: one to `/dist/` (npm distribution) and one to `/docs/` (live demo). TypeScript target is ES2022 with strict mode and declaration-file generation enabled.
|
|
52
|
-
|
|
53
|
-
The library compiles to a UMD bundle (`dist/micl.js`) and a CSS file (`dist/micl.css`) with zero runtime dependencies. In addition, a CSS and JavaScript pair of compiled files is created, so that a consumer may load only a subset of components.
|