@profullstack/css 0.2.0 → 0.3.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.
@@ -0,0 +1,303 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Widgets — @profullstack/css</title>
7
+ <link rel="stylesheet" href="../css/profullstack.css">
8
+ <style>
9
+ .example-nav { border-bottom: 1px solid var(--pf-color-border); padding-block: 1rem; }
10
+ .example-nav .container { align-items: center; display: flex; gap: 1rem; justify-content: space-between; }
11
+ .example-nav a { text-decoration: none; }
12
+
13
+ .pagination svg, .field-group svg { block-size: 1.1rem; inline-size: 1.1rem; }
14
+ .scroller > li > button { white-space: nowrap; }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <header class="example-nav">
19
+ <div class="container"><a href="index.html"><strong>@profullstack/css</strong> examples</a><a href="../docs/index.html">Docs →</a></div>
20
+ </header>
21
+ <main class="container stack section" data-space="lg">
22
+ <header class="stack" data-space="sm">
23
+ <p class="eyebrow">Widgets · 0.3</p>
24
+ <h1>Widgets, from plain markup.</h1>
25
+ <p class="muted prose">Cart and menu dropdowns, scrollers with arrows, a color picker, switches, tabs, rings, steps and more. The stylesheet does the looks; the few lines in <code>examples.js</code> are the app's behaviour (paging a row, switching a tab), shown so you can copy them.</p>
26
+ <div class="segmented" role="radiogroup" aria-label="Theme">
27
+ <label><input type="radio" name="theme" value="system" checked>System</label>
28
+ <label><input type="radio" name="theme" value="light">Light</label>
29
+ <label><input type="radio" name="theme" value="dark">Dark</label>
30
+ </div>
31
+ </header>
32
+
33
+ <section class="stack" aria-labelledby="bar-heading">
34
+ <h2 id="bar-heading">App bar, cart and menus</h2>
35
+ <p class="muted prose">Icon buttons open anchored popovers. <code>data-count</code> draws the bubble; the count is in the label too, so it is read out.</p>
36
+ <div class="card cluster" data-justify="between">
37
+ <strong>Gearbox</strong>
38
+ <div class="cluster" style="gap: var(--pf-space-1)">
39
+ <button type="button" class="icon-button" aria-label="Search (Ctrl K)" commandfor="palette" command="show-modal"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></button>
40
+ <button type="button" class="icon-button" aria-label="Notifications, 4 new" data-count="4" popovertarget="notifications"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg></button>
41
+ <div id="notifications" popover data-anchor style="inline-size: 22rem">
42
+ <div class="cluster" data-justify="between" style="padding: var(--pf-space-2) var(--pf-space-3)"><strong>Notifications</strong><a href="#all">Mark all read</a></div>
43
+ <ul role="list" class="stack" data-space="sm" style="padding: var(--pf-space-2) var(--pf-space-3)">
44
+ <li><a class="media" href="#n0"><span class="avatar" data-size="sm">MS</span><span>Maya shipped <strong>v2.4</strong> to production</span><small>2m</small></a></li>
45
+ <li><a class="media" href="#n1"><span class="avatar" data-size="sm">JR</span><span>Jordan commented on <strong>Pricing page</strong></span><small>18m</small></a></li>
46
+ <li><a class="media" href="#n2"><span class="avatar" data-size="sm">AK</span><span>Aiko invited you to <strong>Design review</strong></span><small>1h</small></a></li>
47
+ <li><a class="media" href="#n3"><span class="avatar" data-size="sm">LT</span><span>Leo approved your expense report</span><small>3h</small></a></li>
48
+ </ul>
49
+ </div>
50
+ <button type="button" class="icon-button" aria-label="Cart, 4 items" data-count="4" popovertarget="cart"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3h2l2.4 12.2a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 2-1.6L21 7H6"/><circle cx="10" cy="20.5" r="1.3"/><circle cx="18" cy="20.5" r="1.3"/></svg></button>
51
+ <div id="cart" popover data-anchor style="inline-size: 23rem">
52
+ <div class="stack">
53
+ <div class="cluster" data-justify="between"><strong>Your cart</strong><span class="badge">4 items</span></div>
54
+ <ul role="list" class="stack">
55
+ <li class="media"><span class="thumb" aria-hidden="true">🎧</span><div><strong>Studio headphones</strong><small>Graphite · Qty 1</small></div><span>$189.00</span></li>
56
+ <li class="media"><span class="thumb" aria-hidden="true">⌨️</span><div><strong>Low-profile keyboard</strong><small>Tactile · 75% · Qty 1</small></div><span>$129.00</span></li>
57
+ <li class="media"><span class="thumb" aria-hidden="true">🔌</span><div><strong>65 W charger</strong><small>GaN · 3 ports · Qty 2</small></div><span>$90.00</span></li>
58
+ </ul>
59
+ <hr style="margin: 0">
60
+ <div class="cluster" data-justify="between"><span class="muted">Subtotal</span><strong>$408.00</strong></div>
61
+ <div class="cluster" data-justify="between"><span class="muted">Shipping</span><span class="badge" data-tone="success">Free</span></div>
62
+ <a class="button" href="#checkout">Checkout</a>
63
+ <button type="button" data-variant="ghost" popovertarget="cart" popovertargetaction="hide">Keep shopping</button>
64
+ </div>
65
+ </div>
66
+ <button type="button" class="icon-button" aria-label="Account menu" popovertarget="account"><span class="avatar" data-size="sm">AE</span></button>
67
+ <div id="account" popover data-anchor>
68
+ <ul class="menu">
69
+ <li><small>Signed in as ada@example.com</small></li>
70
+ <li><a href="#profile"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg>Profile</a></li>
71
+ <li><a href="#settings"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1 7 17M17 7l2.1-2.1"/></svg>Settings<kbd>⌘,</kbd></a></li>
72
+ <li><a href="#orders"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="5" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/></svg>Orders<span class="badge">12</span></a></li>
73
+ <hr>
74
+ <li><button type="button" data-variant="danger"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><path d="m16 17 5-5-5-5"/><path d="M21 12H9"/></svg>Sign out</button></li>
75
+ </ul>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ <dialog id="palette" closedby="any" aria-label="Command palette" style="inline-size: 34rem; padding: var(--pf-space-3)">
80
+ <div class="stack" data-space="sm">
81
+ <label class="sr-only" for="palette-q">Search commands</label>
82
+ <input id="palette-q" type="search" placeholder="Type a command or search…" autofocus>
83
+ <ul class="menu">
84
+ <li><small>Suggestions</small></li>
85
+ <li><button type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>New project<kbd>N</kbd></button></li>
86
+ <li><button type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg>Invite teammate<kbd>I</kbd></button></li>
87
+ <li><button type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3h2l2.4 12.2a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 2-1.6L21 7H6"/><circle cx="10" cy="20.5" r="1.3"/><circle cx="18" cy="20.5" r="1.3"/></svg>Open cart<kbd>C</kbd></button></li>
88
+ <hr>
89
+ <li><small>Navigation</small></li>
90
+ <li><a href="calendar.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></svg>Calendar</a></li>
91
+ <li><a href="inbox.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/></svg>Inbox<span class="badge">12</span></a></li>
92
+ <li><a href="tv.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="7" width="20" height="14" rx="2"/><path d="m17 2-5 5-5-5"/></svg>TV mode</a></li>
93
+ </ul>
94
+ </div>
95
+ </dialog>
96
+ </section>
97
+
98
+ <section class="stack" aria-labelledby="scroll-heading">
99
+ <h2 id="scroll-heading">Scrollers</h2>
100
+ <p class="muted prose">An overflowing row with previous/next arrows. Tab, arrow keys, touch, a trackpad or a TV remote all move through it; the arrows hide at each end, and the edges fade where there is more to see.</p>
101
+ <div class="scroller-frame">
102
+ <button type="button" data-scroll="prev" aria-label="Previous products" tabindex="-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg></button>
103
+ <ul class="scroller" role="list" aria-label="Recommended products" style="--pf-scroller-item: 12rem">
104
+ <li><a class="tile" href="#product-1" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">🎧</span><strong>Studio headphones</strong><small class="muted">$189 · Over-ear · Graphite</small></a></li>
105
+ <li><a class="tile" href="#product-2" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">⌨️</span><strong>Low-profile keyboard</strong><small class="muted">$129 · Tactile · 75%</small></a></li>
106
+ <li><a class="tile" href="#product-3" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">🖱️</span><strong>Travel mouse</strong><small class="muted">$59 · Silent clicks</small></a></li>
107
+ <li><a class="tile" href="#product-4" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">🎙️</span><strong>USB microphone</strong><small class="muted">$149 · Cardioid · 24-bit</small></a></li>
108
+ <li><a class="tile" href="#product-5" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">💡</span><strong>Desk light bar</strong><small class="muted">$79 · Auto-dim</small></a></li>
109
+ <li><a class="tile" href="#product-6" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">🔌</span><strong>65 W charger</strong><small class="muted">$45 · GaN · 3 ports</small></a></li>
110
+ <li><a class="tile" href="#product-7" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">📷</span><strong>4K webcam</strong><small class="muted">$199 · HDR · privacy shutter</small></a></li>
111
+ <li><a class="tile" href="#product-8" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">🪴</span><strong>Monitor stand</strong><small class="muted">$89 · Walnut · drawer</small></a></li>
112
+ <li><a class="tile" href="#product-9" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">🧳</span><strong>Tech pouch</strong><small class="muted">$35 · Water resistant</small></a></li>
113
+ <li><a class="tile" href="#product-10" data-shape="square"><span aria-hidden="true" style="font-size: 3.5rem">🔋</span><strong>Power bank</strong><small class="muted">$69 · 20,000 mAh</small></a></li>
114
+ </ul>
115
+ <button type="button" data-scroll="next" aria-label="More products" tabindex="-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></button>
116
+ </div>
117
+ <div class="grid" data-columns="2">
118
+ <div class="stack" data-space="sm">
119
+ <h3>Filter chips</h3>
120
+ <div class="scroller-frame">
121
+ <button type="button" data-scroll="prev" aria-label="Previous filters" tabindex="-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg></button>
122
+ <ul class="scroller" role="list" aria-label="Filters" style="--pf-scroller-item: auto; gap: var(--pf-space-2)"><li><button type="button" aria-pressed="true">All</button></li><li><button type="button" data-variant="secondary">Audio</button></li><li><button type="button" data-variant="secondary">Keyboards</button></li><li><button type="button" data-variant="secondary">Mice</button></li><li><button type="button" data-variant="secondary">Cameras</button></li><li><button type="button" data-variant="secondary">Lighting</button></li><li><button type="button" data-variant="secondary">Power</button></li><li><button type="button" data-variant="secondary">Bags</button></li><li><button type="button" data-variant="secondary">Stands</button></li><li><button type="button" data-variant="secondary">Cables</button></li><li><button type="button" data-variant="secondary">Deals</button></li><li><button type="button" data-variant="secondary">New</button></li></ul>
123
+ <button type="button" data-scroll="next" aria-label="More filters" tabindex="-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></button>
124
+ </div>
125
+ </div>
126
+ <div class="stack" data-space="sm">
127
+ <h3>Vertical list</h3>
128
+ <div class="scroller-frame">
129
+ <button type="button" data-scroll="prev" aria-label="Scroll up" tabindex="-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"/></svg></button>
130
+ <ul class="scroller" role="list" data-axis="block" aria-label="Recent orders" style="--pf-scroller-height: 17rem">
131
+ <li><a class="media" href="#order-1040"><span class="thumb" aria-hidden="true">🎧</span><div><strong>Order #1040</strong><small class="muted">Studio headphones</small></div><span class="badge" data-tone="success">Delivered</span></a></li>
132
+ <li><a class="media" href="#order-1041"><span class="thumb" aria-hidden="true">⌨️</span><div><strong>Order #1041</strong><small class="muted">Low-profile keyboard</small></div><span class="badge" data-tone="warning">In transit</span></a></li>
133
+ <li><a class="media" href="#order-1042"><span class="thumb" aria-hidden="true">🖱️</span><div><strong>Order #1042</strong><small class="muted">Travel mouse</small></div><span class="badge" data-tone="success">Delivered</span></a></li>
134
+ <li><a class="media" href="#order-1043"><span class="thumb" aria-hidden="true">🎙️</span><div><strong>Order #1043</strong><small class="muted">USB microphone</small></div><span class="badge" data-tone="danger">Returned</span></a></li>
135
+ <li><a class="media" href="#order-1044"><span class="thumb" aria-hidden="true">💡</span><div><strong>Order #1044</strong><small class="muted">Desk light bar</small></div><span class="badge" data-tone="warning">Packing</span></a></li>
136
+ <li><a class="media" href="#order-1045"><span class="thumb" aria-hidden="true">🔌</span><div><strong>Order #1045</strong><small class="muted">65 W charger</small></div><span class="badge" data-tone="success">Delivered</span></a></li>
137
+ <li><a class="media" href="#order-1046"><span class="thumb" aria-hidden="true">📷</span><div><strong>Order #1046</strong><small class="muted">4K webcam</small></div><span class="badge" data-tone="success">Delivered</span></a></li>
138
+ <li><a class="media" href="#order-1047"><span class="thumb" aria-hidden="true">🪴</span><div><strong>Order #1047</strong><small class="muted">Monitor stand</small></div><span class="badge" data-tone="warning">In transit</span></a></li>
139
+ <li><a class="media" href="#order-1048"><span class="thumb" aria-hidden="true">🧳</span><div><strong>Order #1048</strong><small class="muted">Tech pouch</small></div><span class="badge" data-tone="success">Delivered</span></a></li>
140
+ <li><a class="media" href="#order-1049"><span class="thumb" aria-hidden="true">🔋</span><div><strong>Order #1049</strong><small class="muted">Power bank</small></div><span class="badge" data-tone="warning">Packing</span></a></li>
141
+ </ul>
142
+ <button type="button" data-scroll="next" aria-label="Scroll down" tabindex="-1"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg></button>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </section>
147
+
148
+ <section class="stack" aria-labelledby="color-heading">
149
+ <h2 id="color-heading">Color picker</h2>
150
+ <div class="grid" data-columns="2" data-color-picker>
151
+ <div class="stack">
152
+ <fieldset class="stack" style="border: 0; padding: 0">
153
+ <legend style="padding: 0; margin-bottom: var(--pf-space-2)">Brand color</legend>
154
+ <div class="swatches"><input type="radio" name="brand" value="#126b55" aria-label="Teal" style="--swatch: #126b55" checked><input type="radio" name="brand" value="#175f9b" aria-label="Ocean" style="--swatch: #175f9b"><input type="radio" name="brand" value="#6d4bd8" aria-label="Violet" style="--swatch: #6d4bd8"><input type="radio" name="brand" value="#c2366b" aria-label="Rose" style="--swatch: #c2366b"><input type="radio" name="brand" value="#d0541a" aria-label="Ember" style="--swatch: #d0541a"><input type="radio" name="brand" value="#c98a0a" aria-label="Amber" style="--swatch: #c98a0a"><input type="radio" name="brand" value="#5a8f12" aria-label="Lime" style="--swatch: #5a8f12"><input type="radio" name="brand" value="#47566a" aria-label="Slate" style="--swatch: #47566a"></div>
155
+ </fieldset>
156
+ <div>
157
+ <label for="brand-custom">Custom color</label>
158
+ <div class="cluster">
159
+ <input id="brand-custom" type="color" value="#126b55" colorspace="display-p3">
160
+ <output for="brand-custom" class="badge" style="font-family: var(--pf-font-mono)">#126B55</output>
161
+ </div>
162
+ <small>A native <code>&lt;input type="color"&gt;</code>: the system picker opens, the eyedropper comes free.</small>
163
+ </div>
164
+ </div>
165
+ <div class="card stack" data-color-preview aria-label="Preview">
166
+ <span class="eyebrow">Live preview</span>
167
+ <h3>Your button, your brand.</h3>
168
+ <p class="muted">The preview re-tints by setting <code>--pf-color-primary</code>. One token, every component.</p>
169
+ <div class="cluster"><button type="button">Primary</button><button type="button" data-variant="ghost">Ghost</button><span class="ring" data-size="sm" style="--value: 72" role="img" aria-label="72 percent">72</span><input type="checkbox" role="switch" checked aria-label="Example switch"></div>
170
+ </div>
171
+ </div>
172
+ </section>
173
+
174
+ <section class="stack" aria-labelledby="controls-heading">
175
+ <h2 id="controls-heading">Controls</h2>
176
+ <div class="grid" data-columns="3">
177
+ <div class="card stack">
178
+ <h3>Switches</h3>
179
+ <label><input type="checkbox" role="switch" checked>Email notifications</label>
180
+ <label><input type="checkbox" role="switch">Weekly digest</label>
181
+ <label><input type="checkbox" role="switch" disabled>Beta features</label>
182
+ </div>
183
+ <div class="card stack">
184
+ <h3>Segmented</h3>
185
+ <div class="segmented" role="radiogroup" aria-label="Billing period">
186
+ <label><input type="radio" name="period" checked>Monthly</label>
187
+ <label><input type="radio" name="period">Yearly</label>
188
+ <label><input type="radio" name="period">Lifetime</label>
189
+ </div>
190
+ <h3>Rating</h3>
191
+ <fieldset class="rating" aria-label="Rate this product">
192
+ <input type="radio" name="stars" value="5" aria-label="5 stars">
193
+ <input type="radio" name="stars" value="4" aria-label="4 stars" checked>
194
+ <input type="radio" name="stars" value="3" aria-label="3 stars">
195
+ <input type="radio" name="stars" value="2" aria-label="2 stars">
196
+ <input type="radio" name="stars" value="1" aria-label="1 star">
197
+ </fieldset>
198
+ </div>
199
+ <div class="card stack">
200
+ <h3>Quantity and add-ons</h3>
201
+ <div>
202
+ <label for="qty">Quantity</label>
203
+ <div class="field-group">
204
+ <button type="button" data-step="-1" aria-label="One fewer"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/></svg></button>
205
+ <input id="qty" type="number" value="2" min="1" max="9">
206
+ <button type="button" data-step="1" aria-label="One more"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
207
+ </div>
208
+ </div>
209
+ <div>
210
+ <label for="site">Subdomain</label>
211
+ <div class="field-group"><span>https://</span><input id="site" value="acme"><span>.example.com</span></div>
212
+ </div>
213
+ </div>
214
+ </div>
215
+ <label class="dropzone">
216
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m17 8-5-5-5 5"/><path d="M12 3v12"/></svg>
217
+ <span><strong>Drop files here</strong> or click to browse</span>
218
+ <small>PNG, JPG or PDF, up to 10 MB. Dropping works natively on the file input.</small>
219
+ <input type="file" multiple>
220
+ </label>
221
+ </section>
222
+
223
+ <section class="stack" aria-labelledby="tabs-heading">
224
+ <h2 id="tabs-heading">Tabs</h2>
225
+ <div>
226
+ <div role="tablist" aria-label="Project">
227
+ <button type="button" role="tab" id="t1" aria-controls="p1" aria-selected="true">Overview</button>
228
+ <button type="button" role="tab" id="t2" aria-controls="p2" aria-selected="false">Activity</button>
229
+ <button type="button" role="tab" id="t3" aria-controls="p3" aria-selected="false">Team</button>
230
+ </div>
231
+ <div role="tabpanel" id="p1" aria-labelledby="t1">
232
+ <div class="grid" data-columns="4">
233
+ <div class="stat"><span>Revenue</span><strong>$48.2k</strong><span data-trend="up">12% vs last month</span></div>
234
+ <div class="stat"><span>Orders</span><strong>1,284</strong><span data-trend="up">4%</span></div>
235
+ <div class="stat"><span>Refunds</span><strong>23</strong><span data-trend="down">2 more</span></div>
236
+ <div class="cluster"><span class="ring" style="--value: 64" role="img" aria-label="Goal 64 percent">64%</span><span class="muted">of the Q4 goal</span></div>
237
+ </div>
238
+ </div>
239
+ <div role="tabpanel" id="p2" aria-labelledby="t2" hidden>
240
+ <ol class="timeline">
241
+ <li data-tone="success"><time datetime="2026-12-02T09:12">Today, 9:12</time><strong>Deploy succeeded</strong><p class="muted">v2.4 is live on all regions.</p></li>
242
+ <li><time datetime="2026-12-01T16:40">Yesterday, 16:40</time><strong>Pricing page updated</strong><p class="muted">Jordan changed the annual discount to 20%.</p></li>
243
+ <li data-tone="warning"><time datetime="2026-11-30T11:05">Nov 30, 11:05</time><strong>Card payment retried</strong><p class="muted">Second attempt succeeded.</p></li>
244
+ <li data-tone="danger"><time datetime="2026-11-29T08:00">Nov 29, 8:00</time><strong>Incident resolved</strong><p class="muted">Search latency back to normal after 14 minutes.</p></li>
245
+ </ol>
246
+ </div>
247
+ <div role="tabpanel" id="p3" aria-labelledby="t3" hidden>
248
+ <ul role="list" class="stack">
249
+ <li class="media"><span class="avatar">MS</span><div><strong>Maya Singh</strong><small class="muted">Engineering lead</small></div><span class="badge" data-tone="success">Online</span></li>
250
+ <li class="media"><span class="avatar">JR</span><div><strong>Jordan Reyes</strong><small class="muted">Product design</small></div><span class="badge">Away</span></li>
251
+ <li class="media"><span class="avatar">AK</span><div><strong>Aiko Kato</strong><small class="muted">Growth</small></div><span class="badge" data-tone="success">Online</span></li>
252
+ </ul>
253
+ </div>
254
+ </div>
255
+ </section>
256
+
257
+ <section class="stack" aria-labelledby="status-heading">
258
+ <h2 id="status-heading">Progress and status</h2>
259
+ <ol class="steps" aria-label="Checkout progress">
260
+ <li data-state="done">Cart</li>
261
+ <li data-state="done">Shipping</li>
262
+ <li aria-current="step">Payment</li>
263
+ <li>Review</li>
264
+ </ol>
265
+ <div class="grid" data-columns="3">
266
+ <div class="card cluster"><span class="ring" data-size="lg" style="--value: 82" data-tone="success" role="img" aria-label="Storage 82 percent">82%</span><div class="stack" data-space="sm"><strong>Storage</strong><span class="muted">41 of 50 GB</span></div></div>
267
+ <div class="card stack" aria-busy="true" aria-label="Loading">
268
+ <div class="cluster"><span class="skeleton avatar"></span><span class="skeleton" style="inline-size: 60%">Loading</span></div>
269
+ <span class="skeleton">Loading</span>
270
+ <span class="skeleton" style="inline-size: 80%">Loading</span>
271
+ </div>
272
+ <div class="card stack">
273
+ <strong>Toasts</strong>
274
+ <p class="muted">A fixed live region; the app appends an <code>.alert</code>.</p>
275
+ <div class="cluster">
276
+ <button type="button" data-toast="Saved. Your changes are live." data-tone="success">Save</button>
277
+ <button type="button" data-variant="secondary" data-toast="Couldn't reach the server, retrying." data-tone="warning">Flaky</button>
278
+ </div>
279
+ </div>
280
+ </div>
281
+ </section>
282
+
283
+ <section class="stack" aria-labelledby="nav-heading">
284
+ <h2 id="nav-heading">Navigation and people</h2>
285
+ <nav class="breadcrumbs" aria-label="Breadcrumb"><ol><li><a href="#home">Home</a></li><li><a href="#shop">Shop</a></li><li><a href="#audio">Audio</a></li><li><a href="#p1" aria-current="page">Studio headphones</a></li></ol></nav>
286
+ <nav class="pagination" aria-label="Pages"><ul>
287
+ <li><a href="#prev" aria-disabled="true" aria-label="Previous page"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg></a></li>
288
+ <li><a href="#1" aria-current="page">1</a></li><li><a href="#2">2</a></li><li><a href="#3">3</a></li><li><span>…</span></li><li><a href="#12">12</a></li>
289
+ <li><a href="#next" aria-label="Next page"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a></li>
290
+ </ul></nav>
291
+ <div class="cluster">
292
+ <div class="avatar-group" aria-label="5 collaborators" role="img"><span class="avatar">MS</span><span class="avatar">JR</span><span class="avatar">AK</span><span class="avatar">LT</span><span class="avatar">+3</span></div>
293
+ <span class="avatar" data-size="lg">AE</span>
294
+ <span class="badge">5 collaborators</span>
295
+ </div>
296
+ </section>
297
+ </main>
298
+
299
+ <ol class="toasts" role="status" aria-live="polite"></ol>
300
+ <script type="module" src="examples.js"></script>
301
+ </body>
302
+ </html>
303
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@profullstack/css",
3
- "version": "0.2.0",
4
- "description": "A semantic, agent-friendly CSS foundation for real interfaces.",
3
+ "version": "0.3.0",
4
+ "description": "A semantic, agent-friendly CSS foundation for real interfaces, with widgets and a TV mode.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "style": "./css/profullstack.css",
@@ -33,7 +33,8 @@
33
33
  "./css": "./css/profullstack.css",
34
34
  "./tokens": "./css/tokens.css",
35
35
  "./manifest": "./css/manifest.json",
36
- "./platform": "./css/platform.css"
36
+ "./platform": "./css/platform.css",
37
+ "./widgets": "./css/widgets.css"
37
38
  },
38
39
  "keywords": [
39
40
  "css",
@@ -45,6 +46,11 @@
45
46
  "modern-css",
46
47
  "view-transitions",
47
48
  "anchor-positioning",
48
- "progressive-enhancement"
49
+ "progressive-enhancement",
50
+ "tv",
51
+ "widgets",
52
+ "calendar",
53
+ "date-picker",
54
+ "color-picker"
49
55
  ]
50
56
  }