json-renderers 1.14.1 → 1.16.1

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/docs/select.html CHANGED
@@ -1,12 +1,15 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en" class="dark">
3
+
3
4
  <head>
4
5
  <meta charset="UTF-8" />
5
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
7
  <title>json-renderers | Select Flow</title>
7
8
  <link rel="preconnect" href="https://fonts.googleapis.com" />
8
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
- <link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
10
+ <link
11
+ href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700;800&display=swap"
12
+ rel="stylesheet" />
10
13
  <script src="https://cdn.tailwindcss.com"></script>
11
14
  <script>
12
15
  tailwind.config = {
@@ -22,16 +25,29 @@
22
25
  };
23
26
  </script>
24
27
  <style>
25
- body { font-family: 'Inter', sans-serif; }
26
- pre, code { font-family: 'Fira Code', monospace; }
27
- .glass { background: rgba(15,23,42,0.8); border: 1px solid rgba(255,255,255,0.08); }
28
+ body {
29
+ font-family: 'Inter', sans-serif;
30
+ }
31
+
32
+ pre,
33
+ code {
34
+ font-family: 'Fira Code', monospace;
35
+ }
36
+
37
+ .glass {
38
+ background: rgba(15, 23, 42, 0.8);
39
+ border: 1px solid rgba(255, 255, 255, 0.08);
40
+ }
28
41
  </style>
29
42
  </head>
43
+
30
44
  <body class="bg-slate-950 text-slate-100 min-h-screen">
31
45
  <header class="border-b border-slate-800 bg-slate-900/80 backdrop-blur sticky top-0 z-50">
32
46
  <div class="max-w-7xl mx-auto px-4 py-3 flex items-center justify-between gap-4">
33
47
  <div class="flex items-center gap-3">
34
- <div class="w-10 h-10 rounded-xl bg-gradient-to-br from-cyan-500 via-indigo-600 to-violet-600 flex items-center justify-center font-bold text-lg">▣</div>
48
+ <div
49
+ class="w-10 h-10 rounded-xl bg-gradient-to-br from-cyan-500 via-indigo-600 to-violet-600 flex items-center justify-center font-bold text-lg">
50
+ ▣</div>
35
51
  <div>
36
52
  <div class="text-base font-bold text-white">json-renderers</div>
37
53
  <div class="text-xs text-slate-400">Select Flow Story</div>
@@ -39,15 +55,18 @@
39
55
  </div>
40
56
  <nav class="flex items-center gap-2 text-sm">
41
57
  <a href="index.html" class="px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200">Home</a>
42
- <a href="table.html" class="px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200">Table</a>
43
- <a href="select.html" class="px-3 py-1.5 rounded-lg bg-cyan-600 text-white">Select</a>
58
+ <a href="aboutSelect.html" class="px-3 py-1.5 rounded-lg bg-cyan-600 text-white font-semibold">About Select</a>
59
+ <a href="table/index.html" class="px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200">About Table</a>
60
+ <a href="select.html" class="px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200">Select Flow</a>
61
+ <a href="table.html" class="px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200">Table Flow</a>
44
62
  </nav>
45
63
  </div>
46
64
  </header>
47
65
 
48
66
  <main class="max-w-7xl mx-auto px-4 py-10 space-y-8">
49
67
  <section class="glass rounded-3xl p-8">
50
- <div class="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-cyan-500/10 border border-cyan-500/20 text-xs text-cyan-300 font-mono mb-6">
68
+ <div
69
+ class="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-cyan-500/10 border border-cyan-500/20 text-xs text-cyan-300 font-mono mb-6">
51
70
  <span class="w-2 h-2 rounded-full bg-cyan-400 animate-pulse"></span>
52
71
  Select / JSON to DOM
53
72
  </div>
@@ -56,7 +75,8 @@
56
75
  A select box is also a JSON-driven component.
57
76
  </h1>
58
77
  <p class="max-w-4xl mt-5 text-lg text-slate-300">
59
- The runtime does not manually write a select element. It asks for a blueprint, receives JSON, and then delegates the real browser element creation to <span class="text-cyan-300 font-mono">@keshavsoft/json-to-tag</span>.
78
+ The runtime does not manually write a select element. It asks for a blueprint, receives JSON, and then delegates
79
+ the real browser element creation to <span class="text-cyan-300 font-mono">@keshavsoft/json-to-tag</span>.
60
80
  </p>
61
81
  </section>
62
82
 
@@ -118,7 +138,8 @@ container.append(...nodes);
118
138
 
119
139
  <section class="glass rounded-3xl p-5">
120
140
  <h2 class="text-2xl font-bold text-white mb-4">Live render</h2>
121
- <div class="mb-4 text-sm text-slate-300">This is the final browser select created from a declarative JSON spec.</div>
141
+ <div class="mb-4 text-sm text-slate-300">This is the final browser select created from a declarative JSON spec.
142
+ </div>
122
143
  <div id="city-container" class="rounded-2xl border border-slate-700 bg-slate-900 p-4 max-w-md"></div>
123
144
  </section>
124
145
  </main>
@@ -136,4 +157,5 @@ container.append(...nodes);
136
157
  document.getElementById('city-container').appendChild(select);
137
158
  </script>
138
159
  </body>
139
- </html>
160
+
161
+ </html>