@flamingo-stack/openframe-frontend-core 0.0.333 → 0.0.334-snapshot.20260629123752

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 (89) hide show
  1. package/dist/{chunk-X2ZO2WGY.js → chunk-2R6XOAWC.js} +2 -2
  2. package/dist/{chunk-VGZUJC4X.js → chunk-2Z2CABNH.js} +2 -2
  3. package/dist/{chunk-YV5KFAZL.cjs → chunk-3QXLR4YB.cjs} +25 -25
  4. package/dist/{chunk-YV5KFAZL.cjs.map → chunk-3QXLR4YB.cjs.map} +1 -1
  5. package/dist/{chunk-J2GAKC4L.js → chunk-42SYNACI.js} +4 -4
  6. package/dist/{chunk-YEEH336W.js → chunk-4YCDGKTT.js} +4 -4
  7. package/dist/{chunk-LCR326AU.js → chunk-6CZT6GPC.js} +2 -2
  8. package/dist/{chunk-YSELDRJX.cjs → chunk-7VNS5A4U.cjs} +26 -26
  9. package/dist/{chunk-YSELDRJX.cjs.map → chunk-7VNS5A4U.cjs.map} +1 -1
  10. package/dist/{chunk-NFU2DXOV.cjs → chunk-EIY66GS7.cjs} +7 -7
  11. package/dist/{chunk-NFU2DXOV.cjs.map → chunk-EIY66GS7.cjs.map} +1 -1
  12. package/dist/{chunk-GW7YJC5J.cjs → chunk-EVNZOQ6Z.cjs} +15 -15
  13. package/dist/{chunk-GW7YJC5J.cjs.map → chunk-EVNZOQ6Z.cjs.map} +1 -1
  14. package/dist/{chunk-XZS6Z2RE.js → chunk-FFMWYQYH.js} +18 -7
  15. package/dist/chunk-FFMWYQYH.js.map +1 -0
  16. package/dist/{chunk-PBNSGA25.js → chunk-FTVXOI7L.js} +4 -4
  17. package/dist/{chunk-ES6VJ4BO.js → chunk-ISXD2332.js} +2 -2
  18. package/dist/{chunk-37EKG2M7.cjs → chunk-KIIZ4GVW.cjs} +31 -31
  19. package/dist/{chunk-37EKG2M7.cjs.map → chunk-KIIZ4GVW.cjs.map} +1 -1
  20. package/dist/{chunk-RFOQ7YHS.js → chunk-KYTXPVW7.js} +2 -2
  21. package/dist/{chunk-6ONCYSRV.js → chunk-LLA2LEKE.js} +2 -2
  22. package/dist/{chunk-FNHB7YX5.cjs → chunk-NH4IDOJU.cjs} +9 -9
  23. package/dist/{chunk-FNHB7YX5.cjs.map → chunk-NH4IDOJU.cjs.map} +1 -1
  24. package/dist/{chunk-A2H2JOQI.cjs → chunk-NI7NDOH7.cjs} +12 -12
  25. package/dist/{chunk-A2H2JOQI.cjs.map → chunk-NI7NDOH7.cjs.map} +1 -1
  26. package/dist/{chunk-Z3WUYB4F.js → chunk-NREXQHPH.js} +4 -4
  27. package/dist/{chunk-SHHYY57A.cjs → chunk-OV4N3HIB.cjs} +5 -5
  28. package/dist/{chunk-SHHYY57A.cjs.map → chunk-OV4N3HIB.cjs.map} +1 -1
  29. package/dist/{chunk-SUSIWWW2.cjs → chunk-OZHQVHAI.cjs} +62 -62
  30. package/dist/{chunk-SUSIWWW2.cjs.map → chunk-OZHQVHAI.cjs.map} +1 -1
  31. package/dist/{chunk-MAGQM63C.cjs → chunk-PZJ7MNBI.cjs} +56 -56
  32. package/dist/{chunk-MAGQM63C.cjs.map → chunk-PZJ7MNBI.cjs.map} +1 -1
  33. package/dist/{chunk-RPMOVC7D.cjs → chunk-R7XUM6M5.cjs} +18 -7
  34. package/dist/chunk-R7XUM6M5.cjs.map +1 -0
  35. package/dist/{chunk-2N6B44NP.js → chunk-Y6G7TQID.js} +2 -2
  36. package/dist/{chunk-3QBOSHY4.cjs → chunk-YJTKUWC6.cjs} +37 -37
  37. package/dist/{chunk-3QBOSHY4.cjs.map → chunk-YJTKUWC6.cjs.map} +1 -1
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/index.cjs +2 -2
  41. package/dist/components/chat/index.js +1 -1
  42. package/dist/components/contact/index.cjs +3 -3
  43. package/dist/components/contact/index.js +2 -2
  44. package/dist/components/docs/index.cjs +5 -5
  45. package/dist/components/docs/index.js +4 -4
  46. package/dist/components/embeds/index.cjs +3 -3
  47. package/dist/components/embeds/index.js +2 -2
  48. package/dist/components/faq/index.cjs +3 -3
  49. package/dist/components/faq/index.js +2 -2
  50. package/dist/components/features/index.cjs +2 -2
  51. package/dist/components/features/index.js +1 -1
  52. package/dist/components/help-center-pages/index.cjs +20 -20
  53. package/dist/components/help-center-pages/index.js +11 -11
  54. package/dist/components/index.cjs +121 -121
  55. package/dist/components/index.js +9 -9
  56. package/dist/components/navigation/index.cjs +2 -2
  57. package/dist/components/navigation/index.js +1 -1
  58. package/dist/components/onboarding-guides/index.cjs +5 -5
  59. package/dist/components/onboarding-guides/index.js +4 -4
  60. package/dist/components/related-content/index.cjs +3 -3
  61. package/dist/components/related-content/index.js +2 -2
  62. package/dist/components/tickets/index.cjs +5 -5
  63. package/dist/components/tickets/index.js +4 -4
  64. package/dist/components/ui/alert.d.ts +1 -1
  65. package/dist/components/ui/alert.d.ts.map +1 -1
  66. package/dist/components/ui/dashboard-info-card.d.ts +15 -1
  67. package/dist/components/ui/dashboard-info-card.d.ts.map +1 -1
  68. package/dist/components/ui/index.cjs +2 -2
  69. package/dist/components/ui/index.js +1 -1
  70. package/dist/index.cjs +2 -2
  71. package/dist/index.js +1 -1
  72. package/package.json +1 -1
  73. package/src/components/ui/alert.tsx +2 -0
  74. package/src/components/ui/dashboard-info-card.tsx +41 -9
  75. package/src/stories/Alert.stories.tsx +86 -0
  76. package/src/stories/DashboardInfoCard.stories.tsx +79 -0
  77. package/dist/chunk-RPMOVC7D.cjs.map +0 -1
  78. package/dist/chunk-XZS6Z2RE.js.map +0 -1
  79. /package/dist/{chunk-X2ZO2WGY.js.map → chunk-2R6XOAWC.js.map} +0 -0
  80. /package/dist/{chunk-VGZUJC4X.js.map → chunk-2Z2CABNH.js.map} +0 -0
  81. /package/dist/{chunk-J2GAKC4L.js.map → chunk-42SYNACI.js.map} +0 -0
  82. /package/dist/{chunk-YEEH336W.js.map → chunk-4YCDGKTT.js.map} +0 -0
  83. /package/dist/{chunk-LCR326AU.js.map → chunk-6CZT6GPC.js.map} +0 -0
  84. /package/dist/{chunk-PBNSGA25.js.map → chunk-FTVXOI7L.js.map} +0 -0
  85. /package/dist/{chunk-ES6VJ4BO.js.map → chunk-ISXD2332.js.map} +0 -0
  86. /package/dist/{chunk-RFOQ7YHS.js.map → chunk-KYTXPVW7.js.map} +0 -0
  87. /package/dist/{chunk-6ONCYSRV.js.map → chunk-LLA2LEKE.js.map} +0 -0
  88. /package/dist/{chunk-Z3WUYB4F.js.map → chunk-NREXQHPH.js.map} +0 -0
  89. /package/dist/{chunk-2N6B44NP.js.map → chunk-Y6G7TQID.js.map} +0 -0
@@ -23,6 +23,11 @@ const meta = {
23
23
  options: ['success', 'warning', 'error', 'info', 'accent'],
24
24
  description: 'Color variant of the circular progress',
25
25
  },
26
+ percentageDisplay: {
27
+ control: { type: 'inline-radio' },
28
+ options: ['auto', 'plain', 'tag'],
29
+ description: 'How the percentage renders (Tag vs plain text) — independent of the ring color',
30
+ },
26
31
  href: { control: 'text', description: 'Navigation URL — renders as a Next.js Link with pointer cursor' },
27
32
  tooltip: { control: 'text', description: 'Tooltip content for the question-mark icon' },
28
33
  valueClassName: { control: 'text', description: 'Override className for the value text' },
@@ -230,6 +235,80 @@ export const OverflowComparison: Story = {
230
235
  ],
231
236
  }
232
237
 
238
+ /**
239
+ * `percentageDisplay="plain"` keeps a colored progress ring while rendering the
240
+ * percentage as neutral "(NN%)" text — decoupling ring color from the Tag.
241
+ */
242
+ export const PlainPercentageWithColoredRing: Story = {
243
+ args: {
244
+ title: 'Offline Devices',
245
+ value: 20,
246
+ percentage: 10,
247
+ showProgress: true,
248
+ progressVariant: 'error',
249
+ percentageDisplay: 'plain',
250
+ },
251
+ parameters: {
252
+ docs: {
253
+ description: {
254
+ story:
255
+ 'Red ring (`progressVariant="error"`) with a plain grey "(10%)" instead of a red Tag, because `percentageDisplay="plain"`.',
256
+ },
257
+ },
258
+ },
259
+ }
260
+
261
+ /**
262
+ * Four counters with
263
+ * distinct ring colors (green / red / amber / grey) and plain "(NN%)" text.
264
+ */
265
+ export const DeviceStatusesOverview: Story = {
266
+ render: () => (
267
+ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: '1rem', width: '1100px' }}>
268
+ <DashboardInfoCard
269
+ title="Online Devices"
270
+ value={160}
271
+ percentage={80}
272
+ showProgress
273
+ progressVariant="success"
274
+ percentageDisplay="plain"
275
+ />
276
+ <DashboardInfoCard
277
+ title="Offline Devices"
278
+ value={20}
279
+ percentage={10}
280
+ showProgress
281
+ progressVariant="error"
282
+ percentageDisplay="plain"
283
+ />
284
+ <DashboardInfoCard
285
+ title="Pending Devices"
286
+ value={14}
287
+ percentage={7}
288
+ showProgress
289
+ progressVariant="warning"
290
+ percentageDisplay="plain"
291
+ />
292
+ <DashboardInfoCard
293
+ title="Archived Devices"
294
+ value={6}
295
+ percentage={3}
296
+ showProgress
297
+ progressVariant="info"
298
+ percentageDisplay="plain"
299
+ />
300
+ </div>
301
+ ),
302
+ parameters: {
303
+ docs: {
304
+ description: {
305
+ story:
306
+ 'Matches the Figma "Devices Overview" — green/red/amber/grey rings with neutral percentages via `percentageDisplay="plain"`.',
307
+ },
308
+ },
309
+ },
310
+ }
311
+
233
312
  /**
234
313
  * Multiple cards in a dashboard grid layout.
235
314
  */