@kubex/zinc 1.0.24 → 1.0.98

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.
Files changed (198) hide show
  1. package/.claude/project.md +556 -0
  2. package/.github/workflows/js_build_and_deploy.yaml +9 -10
  3. package/dist/custom-elements.json +13431 -8728
  4. package/dist/vscode.html-custom-data.json +571 -37
  5. package/dist/web-types.json +1439 -181
  6. package/dist/zn.d.ts +1642 -661
  7. package/dist/zn.min.css +1 -1
  8. package/dist/zn.min.js +1407 -887
  9. package/docs/_utilities/code-previews.cjs +10 -1
  10. package/docs/assets/scripts/docs.js +42 -18
  11. package/docs/data/data-table.json +229 -66
  12. package/docs/data/empty.json +6 -0
  13. package/docs/data/products-table.json +41 -193
  14. package/docs/pages/components/action-bar.md +121 -6
  15. package/docs/pages/components/alert.md +118 -15
  16. package/docs/pages/components/animated-button.md +299 -0
  17. package/docs/pages/components/audio-select.md +534 -0
  18. package/docs/pages/components/bulk-actions.md +79 -5
  19. package/docs/pages/components/button-group.md +235 -27
  20. package/docs/pages/components/button.md +139 -1
  21. package/docs/pages/components/chart.md +365 -9
  22. package/docs/pages/components/checkbox.md +387 -58
  23. package/docs/pages/components/chip.md +253 -33
  24. package/docs/pages/components/collapsible.md +393 -46
  25. package/docs/pages/components/cols.md +152 -30
  26. package/docs/pages/components/confirm.md +182 -16
  27. package/docs/pages/components/copy-button.md +169 -6
  28. package/docs/pages/components/data-select.md +194 -15
  29. package/docs/pages/components/data-table-filter.md +96 -5
  30. package/docs/pages/components/data-table-search.md +451 -0
  31. package/docs/pages/components/data-table-sort.md +66 -5
  32. package/docs/pages/components/data-table.md +727 -66
  33. package/docs/pages/components/datepicker.md +402 -7
  34. package/docs/pages/components/defined-label.md +120 -5
  35. package/docs/pages/components/dialog.md +339 -59
  36. package/docs/pages/components/dropdown.md +366 -11
  37. package/docs/pages/components/editor.md +604 -7
  38. package/docs/pages/components/empty-state.md +315 -16
  39. package/docs/pages/components/expanding-action.md +212 -28
  40. package/docs/pages/components/file.md +421 -12
  41. package/docs/pages/components/filter-container.md +158 -5
  42. package/docs/pages/components/filter-wrapper.md +167 -6
  43. package/docs/pages/components/form-group.md +383 -6
  44. package/docs/pages/components/hover-container.md +237 -6
  45. package/docs/pages/components/icon-picker.md +121 -0
  46. package/docs/pages/components/icon.md +454 -48
  47. package/docs/pages/components/inline-edit.md +787 -19
  48. package/docs/pages/components/input-group.md +207 -13
  49. package/docs/pages/components/input.md +194 -0
  50. package/docs/pages/components/key-container.md +115 -0
  51. package/docs/pages/components/key.md +101 -0
  52. package/docs/pages/components/menu.md +512 -6
  53. package/docs/pages/components/note.md +239 -36
  54. package/docs/pages/components/opt-group.md +107 -0
  55. package/docs/pages/components/pagination.md +332 -6
  56. package/docs/pages/components/pane.md +222 -6
  57. package/docs/pages/components/panel.md +213 -26
  58. package/docs/pages/components/popup.md +1354 -6
  59. package/docs/pages/components/priority-list.md +233 -0
  60. package/docs/pages/components/progress-bar.md +387 -6
  61. package/docs/pages/components/radio-group.md +242 -5
  62. package/docs/pages/components/radio.md +474 -6
  63. package/docs/pages/components/rating.md +331 -7
  64. package/docs/pages/components/reveal.md +524 -6
  65. package/docs/pages/components/scroll-container.md +552 -6
  66. package/docs/pages/components/select.md +762 -160
  67. package/docs/pages/components/skeleton.md +473 -30
  68. package/docs/pages/components/slideout.md +261 -5
  69. package/docs/pages/components/sp.md +99 -41
  70. package/docs/pages/components/split-button.md +347 -9
  71. package/docs/pages/components/split-pane.md +445 -6
  72. package/docs/pages/components/stat.md +549 -9
  73. package/docs/pages/components/status-indicator.md +230 -1
  74. package/docs/pages/components/stepper.md +563 -6
  75. package/docs/pages/components/tabs.md +439 -13
  76. package/docs/pages/components/textarea.md +415 -17
  77. package/docs/pages/components/tile.md +385 -26
  78. package/docs/pages/components/toggle.md +424 -6
  79. package/docs/pages/components/tooltip.md +367 -0
  80. package/docs/pages/components/translation-group.md +210 -0
  81. package/docs/pages/components/translations.md +319 -18
  82. package/docs/pages/components/vertical-stepper.md +401 -8
  83. package/docs/pages/components/well.md +300 -3
  84. package/docs/pages/getting-started/form-controls.md +162 -0
  85. package/docs/pages/index.md +116 -15
  86. package/package.json +5 -6
  87. package/scss/_global-spacing.scss +4 -0
  88. package/scss/_root.scss +2 -2
  89. package/scss/boot.scss +19 -0
  90. package/scss/shared/layout.scss +5 -0
  91. package/scss/themes/_light.scss +3 -3
  92. package/src/components/alert/alert.scss +1 -0
  93. package/src/components/animated-button/README.md +306 -0
  94. package/src/components/animated-button/animated-button.component.ts +229 -0
  95. package/src/components/animated-button/animated-button.scss +228 -0
  96. package/src/components/animated-button/animated-button.test.ts +143 -0
  97. package/src/components/animated-button/index.ts +12 -0
  98. package/src/components/button/button.component.ts +5 -0
  99. package/src/components/button-group/button-group.component.ts +25 -13
  100. package/src/components/button-group/button-group.scss +6 -0
  101. package/src/components/checkbox/checkbox.component.ts +4 -0
  102. package/src/components/checkbox/checkbox.scss +7 -4
  103. package/src/components/checkbox-group/checkbox-group.scss +7 -0
  104. package/src/components/chip/chip.component.ts +7 -2
  105. package/src/components/chip/chip.scss +16 -2
  106. package/src/components/collapsible/collapsible.component.ts +27 -20
  107. package/src/components/cols/cols.component.ts +14 -2
  108. package/src/components/cols/cols.scss +6 -12
  109. package/src/components/confirm/confirm.component.ts +7 -0
  110. package/src/components/copy-button/copy-button.component.ts +12 -11
  111. package/src/components/data-select/data-select.component.ts +215 -44
  112. package/src/components/data-select/data-select.scss +66 -6
  113. package/src/components/data-select/providers/currency-data-provider.ts +20 -6
  114. package/src/components/data-select/providers/provider.ts +1 -0
  115. package/src/components/data-select/providers/us-state-data-provider.ts +68 -0
  116. package/src/components/data-table/data-table.component.ts +82 -23
  117. package/src/components/data-table-search/data-table-search.component.ts +184 -0
  118. package/src/components/data-table-search/data-table-search.scss +17 -0
  119. package/src/components/data-table-search/data-table-search.test.ts +11 -0
  120. package/src/components/data-table-search/index.ts +12 -0
  121. package/src/components/datepicker/datepicker.component.ts +347 -13
  122. package/src/components/dialog/dialog.component.ts +1 -1
  123. package/src/components/empty-state/empty-state.scss +6 -1
  124. package/src/components/header/header.scss +3 -3
  125. package/src/components/icon/icon.component.ts +23 -1
  126. package/src/components/icon/icon.scss +23 -0
  127. package/src/components/icon-picker/brand-icons.ts +24 -0
  128. package/src/components/icon-picker/icon-picker.component.ts +407 -0
  129. package/src/components/icon-picker/icon-picker.scss +205 -0
  130. package/src/components/icon-picker/index.ts +12 -0
  131. package/src/components/icon-picker/line-icons.ts +612 -0
  132. package/src/components/icon-picker/material-icons.ts +14543 -0
  133. package/src/components/inline-edit/inline-edit.component.ts +190 -46
  134. package/src/components/inline-edit/inline-edit.scss +29 -0
  135. package/src/components/inline-edit/inline-edit.test.ts +314 -1
  136. package/src/components/input/input.component.ts +328 -5
  137. package/src/components/input/input.scss +100 -4
  138. package/src/components/input-group/input-group.component.ts +28 -7
  139. package/src/components/input-group/input-group.scss +48 -10
  140. package/src/components/item/item.component.ts +11 -2
  141. package/src/components/item/item.scss +7 -0
  142. package/src/components/key/index.ts +12 -0
  143. package/src/components/key/key.component.ts +47 -0
  144. package/src/components/key/key.scss +38 -0
  145. package/src/components/key-container/index.ts +12 -0
  146. package/src/components/key-container/key-container.component.ts +142 -0
  147. package/src/components/key-container/key-container.scss +33 -0
  148. package/src/components/menu-item/menu-item.component.ts +20 -0
  149. package/src/components/menu-item/menu-item.scss +69 -2
  150. package/src/components/navbar/navbar.component.ts +103 -8
  151. package/src/components/navbar/navbar.scss +6 -1
  152. package/src/components/opt-group/index.ts +12 -0
  153. package/src/components/opt-group/opt-group.component.ts +74 -0
  154. package/src/components/opt-group/opt-group.scss +37 -0
  155. package/src/components/opt-group/opt-group.test.ts +27 -0
  156. package/src/components/option/option.component.ts +1 -16
  157. package/src/components/option/option.scss +4 -0
  158. package/src/components/panel/panel.component.ts +10 -8
  159. package/src/components/panel/panel.scss +20 -0
  160. package/src/components/priority-list/index.ts +12 -0
  161. package/src/components/priority-list/priority-list.component.ts +611 -0
  162. package/src/components/priority-list/priority-list.scss +185 -0
  163. package/src/components/priority-list/priority-list.test.ts +139 -0
  164. package/src/components/progress-bar/progress-bar.component.ts +22 -16
  165. package/src/components/radio/radio.scss +10 -3
  166. package/src/components/select/select.component.ts +812 -72
  167. package/src/components/select/select.scss +108 -2
  168. package/src/components/select/select.test.ts +147 -2
  169. package/src/components/settings-container/settings-container.component.ts +44 -19
  170. package/src/components/settings-container/settings-container.scss +1 -1
  171. package/src/components/skeleton/skeleton.component.ts +6 -1
  172. package/src/components/slideout/slideout.scss +8 -3
  173. package/src/components/sp/sp.component.ts +3 -1
  174. package/src/components/sp/sp.scss +19 -0
  175. package/src/components/stepper/stepper.component.ts +16 -10
  176. package/src/components/textarea/textarea.scss +0 -4
  177. package/src/components/tile/tile.component.ts +12 -3
  178. package/src/components/tile/tile.scss +1 -1
  179. package/src/components/timer/timer.component.ts +15 -2
  180. package/src/components/toggle/toggle.component.ts +29 -26
  181. package/src/components/toggle/toggle.scss +13 -1
  182. package/src/components/translation-group/index.ts +12 -0
  183. package/src/components/translation-group/translation-group.component.ts +207 -0
  184. package/src/components/translation-group/translation-group.scss +8 -0
  185. package/src/components/translations/translations.component.ts +90 -42
  186. package/src/components/translations/translations.scss +5 -1
  187. package/src/components/vertical-stepper/vertical-stepper.component.ts +14 -9
  188. package/src/events/events.ts +12 -7
  189. package/src/events/zn-language-change.ts +7 -0
  190. package/src/events/zn-purchase.ts +11 -0
  191. package/src/events/zn-redirect.ts +7 -0
  192. package/src/events/zn-reorder.ts +7 -0
  193. package/src/events/zn-search-change.ts +11 -0
  194. package/src/events/zn-submit.ts +1 -1
  195. package/src/form-control.scss +4 -0
  196. package/src/internal/form-navigation.ts +510 -0
  197. package/src/internal/form.ts +6 -0
  198. package/src/zinc.ts +91 -83
@@ -1,24 +1,564 @@
1
1
  ---
2
2
  meta:
3
- title: Stats Tile
4
- description:
3
+ title: Stat
4
+ description: Stats display key metrics, KPIs, and statistics with optional comparison indicators and formatting options.
5
5
  layout: component
6
6
  ---
7
7
 
8
- Simple Example.
9
-
10
8
  ```html:preview
11
- <zn-stat caption="Something" description="Another Thing" amount="100" previous="10" currency="$" show-delta show-chart></zn-stat>
9
+ <zn-stat caption="Total Revenue" description="This month" amount="48250" previous="42100" currency="$" show-delta></zn-stat>
12
10
  ```
13
11
 
14
12
  ## Examples
15
13
 
16
- ### First Example
14
+ ### Basic Stat
15
+
16
+ A basic stat displays a caption, description, and amount.
17
+
18
+ ```html:preview
19
+ <zn-stat caption="Total Users" description="Active accounts" amount="1247"></zn-stat>
20
+ ```
21
+
22
+ ### Currency Formatting
23
+
24
+ Use the `currency` attribute to automatically format monetary values with proper comma separators and decimal places.
25
+
26
+ ```html:preview
27
+ <zn-cols>
28
+ <zn-stat caption="Monthly Revenue" description="January 2026" amount="125750.50" currency="$" color="success"></zn-stat>
29
+ <zn-stat caption="Total Sales" description="This quarter" amount="487999.99" currency="$" color="info"></zn-stat>
30
+ <zn-stat caption="Outstanding Balance" description="Accounts receivable" amount="23450" currency="$" color="warning"></zn-stat>
31
+ </zn-cols>
32
+ ```
33
+
34
+ ### Percentage Values
35
+
36
+ Use `type="percent"` to display percentage metrics.
37
+
38
+ ```html:preview
39
+ <zn-cols>
40
+ <zn-stat caption="Conversion Rate" description="Last 30 days" amount="4.8" type="percent" color="success"></zn-stat>
41
+ <zn-stat caption="Bounce Rate" description="Website visitors" amount="32.5" type="percent" color="warning"></zn-stat>
42
+ <zn-stat caption="Growth" description="Year over year" amount="127.3" type="percent" color="info"></zn-stat>
43
+ </zn-cols>
44
+ ```
17
45
 
18
- TODO
46
+ ### Time Duration
47
+
48
+ Use `type="time"` to display time values in seconds, which will be formatted as HH:MM:SS or MM:SS.
49
+
50
+ ```html:preview
51
+ <zn-cols>
52
+ <zn-stat caption="Avg. Session Time" description="User engagement" amount="245" type="time" color="info"></zn-stat>
53
+ <zn-stat caption="Processing Time" description="Last job" amount="3665" type="time" color="success"></zn-stat>
54
+ <zn-stat caption="Response Time" description="API average" amount="45" type="time" color="primary"></zn-stat>
55
+ </zn-cols>
56
+ ```
57
+
58
+ ### Delta Comparison
59
+
60
+ Use the `show-delta` attribute with `previous` to show the percentage change from a previous period.
61
+
62
+ ```html:preview
63
+ <zn-cols>
64
+ <zn-stat caption="New Users" description="This week" amount="324" previous="280" show-delta color="success"></zn-stat>
65
+ <zn-stat caption="Revenue" description="This month" amount="45600" previous="52300" currency="$" show-delta color="error"></zn-stat>
66
+ <zn-stat caption="Conversion Rate" description="Last 30 days" amount="3.2" previous="3.2" type="percent" show-delta color="neutral"></zn-stat>
67
+ </zn-cols>
68
+ ```
69
+
70
+ ### Color Variants
71
+
72
+ Use the `color` attribute to set the semantic color of the stat. Available colors: `primary`, `error`, `info`, `warning`, `success`, and `neutral`.
73
+
74
+ ```html:preview
75
+ <zn-cols>
76
+ <zn-stat caption="Active" description="Status" amount="99.8" type="percent" color="primary"></zn-stat>
77
+ <zn-stat caption="Critical Errors" description="Last hour" amount="3" color="error"></zn-stat>
78
+ <zn-stat caption="Notifications" description="Unread" amount="24" color="info"></zn-stat>
79
+ <zn-stat caption="Warnings" description="System alerts" amount="7" color="warning"></zn-stat>
80
+ <zn-stat caption="Completed" description="Tasks today" amount="42" color="success"></zn-stat>
81
+ <zn-stat caption="Pending" description="In queue" amount="156" color="neutral"></zn-stat>
82
+ </zn-cols>
83
+ ```
84
+
85
+ ### Dashboard KPIs
86
+
87
+ A common use case is displaying multiple KPIs in a dashboard layout.
88
+
89
+ ```html:preview
90
+ <zn-cols>
91
+ <zn-stat
92
+ caption="Total Revenue"
93
+ description="All time"
94
+ amount="2847500"
95
+ previous="2650000"
96
+ currency="$"
97
+ show-delta
98
+ color="success">
99
+ </zn-stat>
100
+
101
+ <zn-stat
102
+ caption="Active Customers"
103
+ description="Current subscribers"
104
+ amount="4582"
105
+ previous="4201"
106
+ show-delta
107
+ color="info">
108
+ </zn-stat>
109
+
110
+ <zn-stat
111
+ caption="Avg Order Value"
112
+ description="Last 30 days"
113
+ amount="127.50"
114
+ previous="115.80"
115
+ currency="$"
116
+ show-delta
117
+ color="primary">
118
+ </zn-stat>
119
+
120
+ <zn-stat
121
+ caption="Satisfaction Rate"
122
+ description="Customer feedback"
123
+ amount="94.7"
124
+ previous="92.3"
125
+ type="percent"
126
+ show-delta
127
+ color="success">
128
+ </zn-stat>
129
+ </zn-cols>
130
+ ```
131
+
132
+ ### Sales Metrics
133
+
134
+ Display sales-related statistics with currency formatting.
135
+
136
+ ```html:preview
137
+ <zn-cols>
138
+ <zn-stat
139
+ caption="Today's Sales"
140
+ description="Updated 5 min ago"
141
+ amount="12450.75"
142
+ currency="$"
143
+ color="success">
144
+ </zn-stat>
145
+
146
+ <zn-stat
147
+ caption="This Week"
148
+ description="7 day total"
149
+ amount="84922"
150
+ previous="78100"
151
+ currency="$"
152
+ show-delta
153
+ color="info">
154
+ </zn-stat>
155
+
156
+ <zn-stat
157
+ caption="This Month"
158
+ description="Month to date"
159
+ amount="342678.50"
160
+ previous="298450"
161
+ currency="$"
162
+ show-delta
163
+ color="primary">
164
+ </zn-stat>
165
+
166
+ <zn-stat
167
+ caption="Annual Goal"
168
+ description="78% complete"
169
+ amount="3847250"
170
+ currency="$"
171
+ color="warning">
172
+ </zn-stat>
173
+ </zn-cols>
174
+ ```
175
+
176
+ ### Performance Metrics
177
+
178
+ Track system or application performance indicators.
179
+
180
+ ```html:preview
181
+ <zn-cols>
182
+ <zn-stat
183
+ caption="Uptime"
184
+ description="Last 30 days"
185
+ amount="99.97"
186
+ type="percent"
187
+ color="success">
188
+ </zn-stat>
189
+
190
+ <zn-stat
191
+ caption="API Response"
192
+ description="Average latency"
193
+ amount="127"
194
+ type="time"
195
+ color="info">
196
+ </zn-stat>
197
+
198
+ <zn-stat
199
+ caption="Error Rate"
200
+ description="Last 24 hours"
201
+ amount="0.08"
202
+ previous="0.12"
203
+ type="percent"
204
+ show-delta
205
+ color="success">
206
+ </zn-stat>
207
+
208
+ <zn-stat
209
+ caption="Queue Time"
210
+ description="Processing delay"
211
+ amount="43"
212
+ previous="28"
213
+ type="time"
214
+ show-delta
215
+ color="warning">
216
+ </zn-stat>
217
+ </zn-cols>
218
+ ```
219
+
220
+ ### User Engagement
221
+
222
+ Display user-related metrics and engagement statistics.
223
+
224
+ ```html:preview
225
+ <zn-cols>
226
+ <zn-stat
227
+ caption="Page Views"
228
+ description="Last 7 days"
229
+ amount="847523"
230
+ previous="792100"
231
+ show-delta
232
+ color="info">
233
+ </zn-stat>
19
234
 
20
- ### Second Example
235
+ <zn-stat
236
+ caption="Unique Visitors"
237
+ description="This week"
238
+ amount="34782"
239
+ previous="31245"
240
+ show-delta
241
+ color="success">
242
+ </zn-stat>
21
243
 
22
- TODO
244
+ <zn-stat
245
+ caption="Avg. Session"
246
+ description="User engagement"
247
+ amount="342"
248
+ previous="298"
249
+ type="time"
250
+ show-delta
251
+ color="primary">
252
+ </zn-stat>
23
253
 
254
+ <zn-stat
255
+ caption="Return Rate"
256
+ description="Returning users"
257
+ amount="64.8"
258
+ previous="62.1"
259
+ type="percent"
260
+ show-delta
261
+ color="success">
262
+ </zn-stat>
263
+ </zn-cols>
264
+ ```
265
+
266
+ ### E-commerce Dashboard
267
+
268
+ A complete e-commerce metrics dashboard.
269
+
270
+ ```html:preview
271
+ <zn-cols>
272
+ <zn-stat
273
+ caption="Orders Today"
274
+ description="Real-time"
275
+ amount="147"
276
+ previous="132"
277
+ show-delta
278
+ color="primary">
279
+ </zn-stat>
280
+
281
+ <zn-stat
282
+ caption="Cart Abandonment"
283
+ description="Last 24 hours"
284
+ amount="28.4"
285
+ previous="31.7"
286
+ type="percent"
287
+ show-delta
288
+ color="success">
289
+ </zn-stat>
290
+
291
+ <zn-stat
292
+ caption="Inventory Value"
293
+ description="Current stock"
294
+ amount="487250"
295
+ currency="$"
296
+ color="info">
297
+ </zn-stat>
298
+
299
+ <zn-stat
300
+ caption="Refund Rate"
301
+ description="This month"
302
+ amount="2.3"
303
+ previous="1.8"
304
+ type="percent"
305
+ show-delta
306
+ color="warning">
307
+ </zn-stat>
308
+ </zn-cols>
309
+ ```
310
+
311
+ ### Financial Summary
312
+
313
+ Display financial metrics with appropriate formatting.
314
+
315
+ ```html:preview
316
+ <zn-cols>
317
+ <zn-stat
318
+ caption="Net Profit"
319
+ description="Q4 2025"
320
+ amount="847500.25"
321
+ previous="792340.50"
322
+ currency="$"
323
+ show-delta
324
+ color="success">
325
+ </zn-stat>
326
+
327
+ <zn-stat
328
+ caption="Operating Costs"
329
+ description="This quarter"
330
+ amount="234890"
331
+ previous="248750"
332
+ currency="$"
333
+ show-delta
334
+ color="success">
335
+ </zn-stat>
336
+
337
+ <zn-stat
338
+ caption="Profit Margin"
339
+ description="After expenses"
340
+ amount="28.4"
341
+ previous="26.7"
342
+ type="percent"
343
+ show-delta
344
+ color="primary">
345
+ </zn-stat>
346
+
347
+ <zn-stat
348
+ caption="Cash Flow"
349
+ description="Monthly average"
350
+ amount="142750"
351
+ currency="$"
352
+ color="info">
353
+ </zn-stat>
354
+ </zn-cols>
355
+ ```
356
+
357
+ ### SaaS Metrics
358
+
359
+ Key metrics for SaaS businesses.
360
+
361
+ ```html:preview
362
+ <zn-cols>
363
+ <zn-stat
364
+ caption="MRR"
365
+ description="Monthly recurring revenue"
366
+ amount="284750"
367
+ previous="267890"
368
+ currency="$"
369
+ show-delta
370
+ color="success">
371
+ </zn-stat>
372
+
373
+ <zn-stat
374
+ caption="Churn Rate"
375
+ description="Customer attrition"
376
+ amount="3.2"
377
+ previous="4.1"
378
+ type="percent"
379
+ show-delta
380
+ color="success">
381
+ </zn-stat>
382
+
383
+ <zn-stat
384
+ caption="CAC"
385
+ description="Customer acquisition cost"
386
+ amount="127.50"
387
+ previous="142.80"
388
+ currency="$"
389
+ show-delta
390
+ color="success">
391
+ </zn-stat>
392
+
393
+ <zn-stat
394
+ caption="LTV:CAC"
395
+ description="Lifetime value ratio"
396
+ amount="4.8"
397
+ previous="4.2"
398
+ show-delta
399
+ color="info">
400
+ </zn-stat>
401
+ </zn-cols>
402
+ ```
403
+
404
+ ### Marketing Campaign
405
+
406
+ Track marketing campaign performance.
407
+
408
+ ```html:preview
409
+ <zn-cols>
410
+ <zn-stat
411
+ caption="Impressions"
412
+ description="Campaign reach"
413
+ amount="1847523"
414
+ previous="1592340"
415
+ show-delta
416
+ color="info">
417
+ </zn-stat>
418
+
419
+ <zn-stat
420
+ caption="Click Rate"
421
+ description="CTR"
422
+ amount="3.8"
423
+ previous="2.9"
424
+ type="percent"
425
+ show-delta
426
+ color="success">
427
+ </zn-stat>
428
+
429
+ <zn-stat
430
+ caption="Cost Per Click"
431
+ description="Average CPC"
432
+ amount="1.42"
433
+ previous="1.68"
434
+ currency="$"
435
+ show-delta
436
+ color="success">
437
+ </zn-stat>
438
+
439
+ <zn-stat
440
+ caption="ROAS"
441
+ description="Return on ad spend"
442
+ amount="487"
443
+ previous="412"
444
+ type="percent"
445
+ show-delta
446
+ color="primary">
447
+ </zn-stat>
448
+ </zn-cols>
449
+ ```
450
+
451
+ ### Support Dashboard
452
+
453
+ Display customer support metrics.
454
+
455
+ ```html:preview
456
+ <zn-cols>
457
+ <zn-stat
458
+ caption="Open Tickets"
459
+ description="Requires attention"
460
+ amount="47"
461
+ previous="62"
462
+ show-delta
463
+ color="success">
464
+ </zn-stat>
465
+
466
+ <zn-stat
467
+ caption="Avg Response Time"
468
+ description="First reply"
469
+ amount="892"
470
+ previous="1247"
471
+ type="time"
472
+ show-delta
473
+ color="success">
474
+ </zn-stat>
475
+
476
+ <zn-stat
477
+ caption="Resolution Rate"
478
+ description="First contact"
479
+ amount="78.4"
480
+ previous="73.2"
481
+ type="percent"
482
+ show-delta
483
+ color="info">
484
+ </zn-stat>
485
+
486
+ <zn-stat
487
+ caption="Satisfaction"
488
+ description="CSAT score"
489
+ amount="94.7"
490
+ previous="92.1"
491
+ type="percent"
492
+ show-delta
493
+ color="success">
494
+ </zn-stat>
495
+ </zn-cols>
496
+ ```
497
+
498
+ ### Status Overview
499
+
500
+ Simple status indicators without delta comparisons.
501
+
502
+ ```html:preview
503
+ <zn-cols>
504
+ <zn-stat
505
+ caption="System Status"
506
+ description="All systems operational"
507
+ amount="100"
508
+ type="percent"
509
+ color="success">
510
+ </zn-stat>
511
+
512
+ <zn-stat
513
+ caption="Active Sessions"
514
+ description="Current users"
515
+ amount="1847"
516
+ color="info">
517
+ </zn-stat>
518
+
519
+ <zn-stat
520
+ caption="Queue Length"
521
+ description="Pending jobs"
522
+ amount="23"
523
+ color="warning">
524
+ </zn-stat>
525
+
526
+ <zn-stat
527
+ caption="Failed Jobs"
528
+ description="Requires intervention"
529
+ amount="2"
530
+ color="error">
531
+ </zn-stat>
532
+ </zn-cols>
533
+ ```
534
+
535
+ ### Large Numbers
536
+
537
+ Stats automatically format large numbers with currency symbols.
538
+
539
+ ```html:preview
540
+ <zn-cols>
541
+ <zn-stat
542
+ caption="Total Valuation"
543
+ description="Company worth"
544
+ amount="12500000"
545
+ currency="$"
546
+ color="primary">
547
+ </zn-stat>
548
+
549
+ <zn-stat
550
+ caption="Total Users"
551
+ description="Platform wide"
552
+ amount="8472831"
553
+ color="info">
554
+ </zn-stat>
555
+
556
+ <zn-stat
557
+ caption="Transactions"
558
+ description="All time"
559
+ amount="24789532"
560
+ color="success">
561
+ </zn-stat>
562
+ </zn-cols>
563
+ ```
24
564