@jungherz-de/glasskit-elements 0.9.0 → 1.6.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 +18 -16
- package/dist/glasskit-elements.esm.js +212 -18
- package/dist/glasskit-elements.js +213 -17
- package/dist/glasskit-elements.min.js +1 -1
- package/package.json +5 -5
- package/src/components/containers/glk-list-item.js +60 -4
- package/src/components/containers/glk-list.js +20 -1
- package/src/components/navigation/glk-tab-accessory.js +65 -0
- package/src/components/navigation/glk-tab-bar.js +9 -2
- package/src/components/navigation/glk-tab-dock.js +51 -0
- package/src/index.js +2 -0
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/
|
|
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-
|
|
6
|
+
<a href="#"><img src="https://img.shields.io/badge/components-29-7ec8e3?style=flat-square" alt="29 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-
|
|
9
|
-
<a href="https://www.npmjs.com/package/glasskit-elements"><img src="https://img.shields.io/badge/npm
|
|
8
|
+
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/changelog-v1.6.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
|
-
|
|
14
|
+
29 vanilla JavaScript custom elements wrapping GlassKit's glassmorphism components.<br>
|
|
15
15
|
Shadow DOM · Native form participation · 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 **
|
|
28
|
+
GlassKit Elements is a companion library to [GlassKit CSS](https://github.com/JUNGHERZ/GlassKit). It provides **29 Web Components** (incl. the iOS 26-style floating Tab-Bar + Accessory) 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,8 @@ 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
|
-
| 🧩 **
|
|
52
|
-
| 🪶 **Lightweight** |
|
|
51
|
+
| 🧩 **29 Components** | Buttons, cards, toggles, modals, accordions, lists, popovers, tab bars (incl. floating + accessory), and more |
|
|
52
|
+
| 🪶 **Lightweight** | 117 KB raw / 92 KB minified / 15 KB gzipped (IIFE bundle), no external dependencies |
|
|
53
53
|
| 📦 **Three bundle formats** | IIFE for `<script>`, minified IIFE for production, ESM for bundlers & tree-shaking |
|
|
54
54
|
| 🎛️ **Form Participation** | Input, toggle, checkbox, radio, select — all work natively with `<form>` via `ElementInternals` |
|
|
55
55
|
| 🌗 **Theme Sync** | Automatic dark/light mode sync via `data-theme` on `<html>` |
|
|
@@ -63,7 +63,7 @@ GlassKit Elements is a companion library to [GlassKit CSS](https://github.com/JU
|
|
|
63
63
|
|
|
64
64
|
```html
|
|
65
65
|
<!-- 1. GlassKit CSS -->
|
|
66
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.
|
|
66
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.6/glasskit.min.css">
|
|
67
67
|
|
|
68
68
|
<!-- 2. GlassKit Elements -->
|
|
69
69
|
<script src="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit-elements/dist/glasskit-elements.min.js"></script>
|
|
@@ -96,7 +96,7 @@ import '@jungherz-de/glasskit-elements/components/glk-toggle.js';
|
|
|
96
96
|
<!DOCTYPE html>
|
|
97
97
|
<html data-theme="dark">
|
|
98
98
|
<head>
|
|
99
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.
|
|
99
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit@1.6/glasskit.min.css">
|
|
100
100
|
<script src="https://cdn.jsdelivr.net/npm/@jungherz-de/glasskit-elements/dist/glasskit-elements.min.js"></script>
|
|
101
101
|
</head>
|
|
102
102
|
<body>
|
|
@@ -117,8 +117,10 @@ import '@jungherz-de/glasskit-elements/components/glk-toggle.js';
|
|
|
117
117
|
|---|---|---|
|
|
118
118
|
| `<glk-nav>` | Horizontal navigation bar | — |
|
|
119
119
|
| `<glk-pill>` | Circular icon button (46×46px) | `label`, `disabled` |
|
|
120
|
-
| `<glk-tab-bar>` | Bottom tab bar navigation |
|
|
120
|
+
| `<glk-tab-bar>` | Bottom tab bar navigation | `static`, `floating` |
|
|
121
121
|
| `<glk-tab-item>` | Tab bar item | `label`, `active`, `badge` |
|
|
122
|
+
| `<glk-tab-dock>` | Wrapper for floating tab bar + optional accessory | `accessory-left` |
|
|
123
|
+
| `<glk-tab-accessory>` | Standalone glass capsule (search, compose…) | `label`, `variant` (accent, success, error), `disabled` |
|
|
122
124
|
|
|
123
125
|
### Content
|
|
124
126
|
|
|
@@ -207,16 +209,16 @@ glasskit-elements/
|
|
|
207
209
|
index.js # Registers all components
|
|
208
210
|
base.js # GlkElement + GlkFormElement
|
|
209
211
|
components/
|
|
210
|
-
navigation/ # glk-nav, glk-pill, glk-tab-bar, glk-tab-item
|
|
212
|
+
navigation/ # glk-nav, glk-pill, glk-tab-bar, glk-tab-item, glk-tab-dock, glk-tab-accessory
|
|
211
213
|
content/ # glk-card, glk-badge, glk-avatar, glk-title, ...
|
|
212
214
|
buttons/ # glk-button
|
|
213
215
|
forms/ # glk-input, glk-toggle, glk-checkbox, ...
|
|
214
216
|
feedback/ # glk-progress, glk-modal, glk-toast, glk-popover
|
|
215
217
|
containers/ # glk-accordion, glk-accordion-item, glk-list, glk-list-item
|
|
216
218
|
dist/
|
|
217
|
-
glasskit-elements.js # IIFE bundle (
|
|
218
|
-
glasskit-elements.min.js # IIFE minified (
|
|
219
|
-
glasskit-elements.esm.js # ES module bundle (
|
|
219
|
+
glasskit-elements.js # IIFE bundle (117 KB raw / 18 KB gzipped)
|
|
220
|
+
glasskit-elements.min.js # IIFE minified (92 KB raw / 15 KB gzipped)
|
|
221
|
+
glasskit-elements.esm.js # ES module bundle (112 KB raw / 17 KB gzipped)
|
|
220
222
|
index.html # Landing page
|
|
221
223
|
docs.html # Documentation
|
|
222
224
|
showcase.html # Interactive showcase
|
|
@@ -240,7 +242,7 @@ Requires `adoptedStyleSheets`, `ElementInternals`, and `customElements` v1.
|
|
|
240
242
|
|
|
241
243
|
## 🤖 AI / LLM Reference
|
|
242
244
|
|
|
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
|
|
245
|
+
[`SKILL.md`](SKILL.md) is a tag-based, machine-readable reference for LLMs and AI copilots. It contains copy-paste-ready HTML for all 29 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
246
|
|
|
245
247
|
---
|
|
246
248
|
|