@jungherz-de/glasskit-elements 0.8.3 → 1.5.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 CHANGED
@@ -1,17 +1,17 @@
1
1
  <h1 align="center">🧊 GlassKit Elements</h1>
2
2
 
3
3
  <p align="center">
4
- <a href="https://www.npmjs.com/package/glasskit-elements"><img src="https://img.shields.io/badge/version-0.8.3-f5a623?style=flat-square" alt="Version"></a>
4
+ <a href="https://www.npmjs.com/package/@jungherz-de/glasskit-elements"><img src="https://img.shields.io/npm/v/@jungherz-de/glasskit-elements?style=flat-square&color=f5a623&label=version" alt="Version"></a>
5
5
  <a href="#"><img src="https://img.shields.io/badge/vanilla_JS-no_dependencies-44cc11?style=flat-square" alt="Vanilla JS"></a>
6
- <a href="#"><img src="https://img.shields.io/badge/components-24-7ec8e3?style=flat-square" alt="24 Components"></a>
6
+ <a href="#"><img src="https://img.shields.io/badge/components-27-7ec8e3?style=flat-square" alt="27 Components"></a>
7
7
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT License"></a>
8
- <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/changelog-v0.8.3-lightgrey?style=flat-square" alt="Changelog"></a>
9
- <a href="https://www.npmjs.com/package/glasskit-elements"><img src="https://img.shields.io/badge/npm-glasskit--elements-cb3837?style=flat-square&logo=npm" alt="npm"></a>
8
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/changelog-v1.5.0-lightgrey?style=flat-square" alt="Changelog"></a>
9
+ <a href="https://www.npmjs.com/package/@jungherz-de/glasskit-elements"><img src="https://img.shields.io/badge/npm-%40jungherz--de%2Fglasskit--elements-cb3837?style=flat-square&logo=npm" alt="npm"></a>
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
13
  <strong>Drop-in Web Components for <a href="https://github.com/JUNGHERZ/GlassKit">GlassKit CSS</a></strong><br>
14
- 24 vanilla JavaScript custom elements wrapping GlassKit's glassmorphism components.<br>
14
+ 27 vanilla JavaScript custom elements wrapping GlassKit's glassmorphism components.<br>
15
15
  Shadow DOM &middot; Native form participation &middot; Zero dependencies.
16
16
  </p>
17
17
 
@@ -25,7 +25,7 @@
25
25
 
26
26
  ## âœĻ What is GlassKit Elements?
27
27
 
28
- GlassKit Elements is a companion library to [GlassKit CSS](https://github.com/JUNGHERZ/GlassKit). It provides **24 Web Components** that encapsulate the verbose HTML markup required by GlassKit into simple, declarative custom elements.
28
+ GlassKit Elements is a companion library to [GlassKit CSS](https://github.com/JUNGHERZ/GlassKit). It provides **27 Web Components** that encapsulate the verbose HTML markup required by GlassKit into simple, declarative custom elements.
29
29
 
30
30
  ```html
31
31
  <!-- Before: 5 elements, 6 classes -->
@@ -48,8 +48,9 @@ GlassKit Elements is a companion library to [GlassKit CSS](https://github.com/JU
48
48
  | Feature | Details |
49
49
  |---|---|
50
50
  | 🔌 **Shadow DOM** | Style encapsulation via `adoptedStyleSheets` — no CSS leaking |
51
- | ðŸ§Đ **24 Components** | Buttons, cards, toggles, modals, accordions, tab bars, and more |
52
- | ðŸŠķ **Zero Dependencies** | Pure vanilla JavaScript, works with React, Vue, Svelte, or plain HTML |
51
+ | ðŸ§Đ **27 Components** | Buttons, cards, toggles, modals, accordions, lists, popovers, tab bars, and more |
52
+ | ðŸŠķ **Lightweight** | 105 KB raw / 83 KB minified / 14 KB gzipped (IIFE bundle), no external dependencies |
53
+ | ðŸ“Ķ **Three bundle formats** | IIFE for `<script>`, minified IIFE for production, ESM for bundlers & tree-shaking |
53
54
  | 🎛ïļ **Form Participation** | Input, toggle, checkbox, radio, select — all work natively with `<form>` via `ElementInternals` |
54
55
  | 🌗 **Theme Sync** | Automatic dark/light mode sync via `data-theme` on `<html>` |
55
56
  | ðŸ“ą **Mobile-first** | Inherits GlassKit's mobile-optimized design with `safe-area-inset` support |
@@ -62,7 +63,7 @@ GlassKit Elements is a companion library to [GlassKit CSS](https://github.com/JU
62
63
 
63
64
  ```html
64
65
  <!-- 1. GlassKit CSS -->
65
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.3/glasskit.min.css">
66
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.5/glasskit.min.css">
66
67
 
67
68
  <!-- 2. GlassKit Elements -->
68
69
  <script src="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit-elements/dist/glasskit-elements.min.js"></script>
@@ -95,7 +96,7 @@ import '@jungherz-de/glasskit-elements/components/glk-toggle.js';
95
96
  <!DOCTYPE html>
96
97
  <html data-theme="dark">
97
98
  <head>
98
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.3/glasskit.min.css">
99
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.5/glasskit.min.css">
99
100
  <script src="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit-elements/dist/glasskit-elements.min.js"></script>
100
101
  </head>
101
102
  <body>
@@ -158,6 +159,7 @@ All form components support `name`, `value`, `disabled` and participate in nativ
158
159
  | `<glk-progress>` | Progress bar | `value`, `label`, `variant` (success, error), `size` (sm, lg) |
159
160
  | `<glk-modal>` | Modal dialog | `open`, `title` |
160
161
  | `<glk-toast>` | Auto-dismissing notification | `message`, `variant` (success, error, warning), `duration` |
162
+ | `<glk-popover>` | Anchored dropdown / menu | `open`, `placement` (top, bottom, start, end) |
161
163
 
162
164
  ### Containers
163
165
 
@@ -165,6 +167,8 @@ All form components support `name`, `value`, `disabled` and participate in nativ
165
167
  |---|---|---|
166
168
  | `<glk-accordion>` | Accordion container | — |
167
169
  | `<glk-accordion-item>` | Collapsible section | `title`, `open` |
170
+ | `<glk-list>` | iOS-style grouped list | `flush`, `bare` |
171
+ | `<glk-list-item>` | List row (icon + title + subtitle + trailing) | `title`, `subtitle`, `interactive`, `center` |
168
172
 
169
173
  ---
170
174
 
@@ -207,12 +211,12 @@ glasskit-elements/
207
211
  content/ # glk-card, glk-badge, glk-avatar, glk-title, ...
208
212
  buttons/ # glk-button
209
213
  forms/ # glk-input, glk-toggle, glk-checkbox, ...
210
- feedback/ # glk-progress, glk-modal, glk-toast
211
- containers/ # glk-accordion, glk-accordion-item
214
+ feedback/ # glk-progress, glk-modal, glk-toast, glk-popover
215
+ containers/ # glk-accordion, glk-accordion-item, glk-list, glk-list-item
212
216
  dist/
213
- glasskit-elements.js # IIFE bundle
214
- glasskit-elements.min.js # IIFE minified (~71 KB)
215
- glasskit-elements.esm.js # ES module bundle
217
+ glasskit-elements.js # IIFE bundle (105 KB raw / 17 KB gzipped)
218
+ glasskit-elements.min.js # IIFE minified (83 KB raw / 14 KB gzipped)
219
+ glasskit-elements.esm.js # ES module bundle (101 KB raw / 16 KB gzipped)
216
220
  index.html # Landing page
217
221
  docs.html # Documentation
218
222
  showcase.html # Interactive showcase
@@ -234,6 +238,12 @@ Requires `adoptedStyleSheets`, `ElementInternals`, and `customElements` v1.
234
238
 
235
239
  ---
236
240
 
241
+ ## ðŸĪ– AI / LLM Reference
242
+
243
+ [`SKILL.md`](SKILL.md) is a tag-based, machine-readable reference for LLMs and AI copilots. It contains copy-paste-ready HTML for all 27 elements, attribute / slot / event tables, composition patterns, and a common-mistakes section. It is the companion to the class-based `SKILL.md` in [GlassKit CSS](https://github.com/JUNGHERZ/GlassKit) — use both together for complete coverage of the glass stack.
244
+
245
+ ---
246
+
237
247
  ## ðŸĪ Contributing
238
248
 
239
249
  Contributions are welcome! Please feel free to submit a Pull Request.