@metamorph-labs/polymorph 1.0.18 → 1.0.19

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 (319) hide show
  1. package/CHANGELOG.md +242 -0
  2. package/dist/design/systems/desktop.json +1 -1
  3. package/dist/design/systems/dew.json +1 -1
  4. package/dist/design/systems/flint.json +1 -1
  5. package/dist/design/systems/glassmorphic.json +1 -1
  6. package/dist/design/systems/harbor.json +1 -1
  7. package/dist/design/systems/journal.json +1 -1
  8. package/dist/design/systems/pastel.json +1 -1
  9. package/dist/design/systems/pebble.json +1 -1
  10. package/dist/design/systems/plain.json +1 -1
  11. package/dist/design/systems/pop.json +1 -1
  12. package/dist/design/systems/press.json +1 -1
  13. package/dist/packages/angular-ui/src/ai/ArtifactPane.ts +15 -4
  14. package/dist/packages/angular-ui/src/ai/PromptInput.ts +3 -1
  15. package/dist/packages/angular-ui/src/archetypes/Dashboard.ts +38 -20
  16. package/dist/packages/angular-ui/src/archetypes/dashboard.states.ts +52 -0
  17. package/dist/packages/angular-ui/src/controls/ColorInput.ts +62 -34
  18. package/dist/packages/angular-ui/src/controls/Combobox.ts +28 -7
  19. package/dist/packages/angular-ui/src/controls/DatePicker.ts +12 -11
  20. package/dist/packages/angular-ui/src/controls/DateRangePicker.ts +22 -17
  21. package/dist/packages/angular-ui/src/controls/DateRangePickerRangeCalendar.ts +3 -2
  22. package/dist/packages/angular-ui/src/controls/FileUpload.ts +18 -12
  23. package/dist/packages/angular-ui/src/controls/FileUploadRow.ts +24 -4
  24. package/dist/packages/angular-ui/src/controls/MultiSelect.ts +49 -12
  25. package/dist/packages/angular-ui/src/controls/NumberInput.ts +27 -3
  26. package/dist/packages/angular-ui/src/controls/PhoneInput.ts +9 -5
  27. package/dist/packages/angular-ui/src/controls/Select.ts +36 -7
  28. package/dist/packages/angular-ui/src/controls/TagInput.ts +61 -7
  29. package/dist/packages/angular-ui/src/controls/TimeInput.ts +15 -1
  30. package/dist/packages/angular-ui/src/controls/select.states.ts +79 -58
  31. package/dist/packages/angular-ui/src/overlays/Command.ts +50 -13
  32. package/dist/packages/angular-ui/src/overlays/CommandPanel.ts +11 -7
  33. package/dist/packages/angular-ui/src/overlays/ToastViewport.ts +1 -1
  34. package/dist/packages/angular-ui/src/structure/CodeBlock.ts +18 -4
  35. package/dist/packages/angular-ui/src/structure/Stat.ts +295 -84
  36. package/dist/packages/angular-ui/src/structure/stat.states.ts +116 -0
  37. package/dist/packages/cli/src/agents.js +4 -3
  38. package/dist/packages/cli/src/apply.js +43 -18
  39. package/dist/packages/cli/src/check.js +4 -0
  40. package/dist/packages/cli/src/cli.js +6 -2
  41. package/dist/packages/cli/src/elements.js +12 -2
  42. package/dist/packages/cli/src/emit.js +43 -8
  43. package/dist/packages/cli/src/readings.js +29 -3
  44. package/dist/packages/cli/src/skills/bridge.js +1197 -0
  45. package/dist/packages/cli/src/skills/facts.js +190 -0
  46. package/dist/packages/cli/src/skills/native.js +1580 -0
  47. package/dist/packages/cli/src/skills/rules.js +199 -0
  48. package/dist/packages/cli/src/skills/runtime.js +1020 -0
  49. package/dist/packages/cli/src/skills/screen-charts.js +334 -0
  50. package/dist/packages/cli/src/skills/screen-chat.js +247 -0
  51. package/dist/packages/cli/src/skills/screen-code.js +565 -0
  52. package/dist/packages/cli/src/skills/screen-rich-text.js +305 -0
  53. package/dist/packages/cli/src/skills/screen.js +378 -0
  54. package/dist/packages/cli/src/skills/setup-packages.js +307 -0
  55. package/dist/packages/cli/src/skills/setup.js +125 -0
  56. package/dist/packages/cli/src/skills/theme-documents.js +351 -0
  57. package/dist/packages/cli/src/skills/theme.js +208 -0
  58. package/dist/packages/cli/src/skills.js +13 -794
  59. package/dist/packages/cli/src/theme.js +42 -1
  60. package/dist/packages/cli/src/tool-verbs.js +19 -4
  61. package/dist/packages/cli/src/verbs.js +28 -2
  62. package/dist/packages/elements-ui/dist/cdn/chunks/{AppShellUserCard-0eCCnnN_.js → AppShellUserCard-XT4br4fr.js} +1 -1
  63. package/dist/packages/elements-ui/dist/cdn/chunks/{AreaChart-DftfzLG0.js → AreaChart-CXNFfbJ8.js} +1 -1
  64. package/dist/packages/elements-ui/dist/cdn/chunks/ArtifactPane-Pr9_K2uM.js +1 -0
  65. package/dist/packages/elements-ui/dist/cdn/chunks/{Avatar-DcdMgxgY.js → Avatar-3WXoBPLv.js} +1 -1
  66. package/dist/packages/elements-ui/dist/cdn/chunks/{Avatar-DcuvZwe7.js → Avatar-BKqjM8qW.js} +1 -1
  67. package/dist/packages/elements-ui/dist/cdn/chunks/{AvatarButton-D5XKVduu.js → AvatarButton-BasMQCSM.js} +1 -1
  68. package/dist/packages/elements-ui/dist/cdn/chunks/{AvatarGroup-DgFwJUNO.js → AvatarGroup-COch2-O0.js} +1 -1
  69. package/dist/packages/elements-ui/dist/cdn/chunks/{BarChart-myuR0aHc.js → BarChart-ugae8zfr.js} +1 -1
  70. package/dist/packages/elements-ui/dist/cdn/chunks/{ChatMessage-CgQ1h_JP.js → ChatMessage-Bx4yrF2x.js} +1 -1
  71. package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-B_e5ma3K.js +1 -0
  72. package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-Fgtr48Vb.js +1 -0
  73. package/dist/packages/elements-ui/dist/cdn/chunks/ColorInput-CD7rsWRp.js +1 -0
  74. package/dist/packages/elements-ui/dist/cdn/chunks/Combobox-CUw7z6TS.js +1 -0
  75. package/dist/packages/elements-ui/dist/cdn/chunks/{Combobox-DB2FT7so.js → Combobox-hWIFU9X_.js} +1 -1
  76. package/dist/packages/elements-ui/dist/cdn/chunks/Command-BXgqRd3I.js +1 -0
  77. package/dist/packages/elements-ui/dist/cdn/chunks/{ConfirmDialog-BtQOAHY2.js → ConfirmDialog-CAaBRKxl.js} +1 -1
  78. package/dist/packages/elements-ui/dist/cdn/chunks/{Dashboard-ChMPH4_Q.js → Dashboard-DwNw5Wnd.js} +1 -1
  79. package/dist/packages/elements-ui/dist/cdn/chunks/DatePicker-DjqtswQR.js +1 -0
  80. package/dist/packages/elements-ui/dist/cdn/chunks/DateRangePicker-LsXFHOzm.js +1 -0
  81. package/dist/packages/elements-ui/dist/cdn/chunks/{DonutChart-BEK89BeL.js → DonutChart-DYXx6eTe.js} +1 -1
  82. package/dist/packages/elements-ui/dist/cdn/chunks/FileUpload-3gbZTSSx.js +1 -0
  83. package/dist/packages/elements-ui/dist/cdn/chunks/{FormField-PlLLDKqc.js → FormField-Bvw4cLBc.js} +1 -1
  84. package/dist/packages/elements-ui/dist/cdn/chunks/{FormField-C6L3vYp4.js → FormField-DzhcinED.js} +1 -1
  85. package/dist/packages/elements-ui/dist/cdn/chunks/{FunnelChart-DVQz_gad.js → FunnelChart-D24XhrGw.js} +1 -1
  86. package/dist/packages/elements-ui/dist/cdn/chunks/{Heading-fAcu6Vrw.js → Heading-Cvfyu8pc.js} +1 -1
  87. package/dist/packages/elements-ui/dist/cdn/chunks/{Heading-CgzEi9OQ.js → Heading-XDJzlwt9.js} +1 -1
  88. package/dist/packages/elements-ui/dist/cdn/chunks/{Heatmap-BRwR-n-V.js → Heatmap-BQoUS6gY.js} +1 -1
  89. package/dist/packages/elements-ui/dist/cdn/chunks/{Hero-CV2YWeb4.js → Hero-CXuuFceS.js} +1 -1
  90. package/dist/packages/elements-ui/dist/cdn/chunks/{Histogram-CCYwlinB.js → Histogram-DW_ZPHpR.js} +1 -1
  91. package/dist/packages/elements-ui/dist/cdn/chunks/{LineChart-BH6Pq1P1.js → LineChart-kf-zlNWe.js} +1 -1
  92. package/dist/packages/elements-ui/dist/cdn/chunks/{Markdown-DmZEch4i.js → Markdown-C3rjhIbt.js} +1 -1
  93. package/dist/packages/elements-ui/dist/cdn/chunks/ModeSwitch-DQ86CK9h.js +1 -0
  94. package/dist/packages/elements-ui/dist/cdn/chunks/MultiSelect-DbSx9QtV.js +1 -0
  95. package/dist/packages/elements-ui/dist/cdn/chunks/NumberInput-B4ZZOGLl.js +7 -0
  96. package/dist/packages/elements-ui/dist/cdn/chunks/PhoneInput-BsMfbNi6.js +210 -0
  97. package/dist/packages/elements-ui/dist/cdn/chunks/PromptInput-l_-zAXSZ.js +1 -0
  98. package/dist/packages/elements-ui/dist/cdn/chunks/{RadarChart-Coje7Sb0.js → RadarChart-CwJAWRki.js} +1 -1
  99. package/dist/packages/elements-ui/dist/cdn/chunks/{RichTextContent-CufjptHF.js → RichTextContent-D51UfuWk.js} +1 -1
  100. package/dist/packages/elements-ui/dist/cdn/chunks/{RichTextInput-Dz7yBFUA.js → RichTextInput-B32fN_p9.js} +3 -3
  101. package/dist/packages/elements-ui/dist/cdn/chunks/{ScatterChart-Do5tQTC5.js → ScatterChart-Mps7l5-i.js} +1 -1
  102. package/dist/packages/elements-ui/dist/cdn/chunks/Select-CpsRP0NR.js +1 -0
  103. package/dist/packages/elements-ui/dist/cdn/chunks/Stat-CXR6bP7X.js +1 -0
  104. package/dist/packages/elements-ui/dist/cdn/chunks/Stat-DGcx2ZZq.js +1 -0
  105. package/dist/packages/elements-ui/dist/cdn/chunks/TagInput-BhkLU4gE.js +1 -0
  106. package/dist/packages/elements-ui/dist/cdn/chunks/TimeInput-r2jNTOLN.js +1 -0
  107. package/dist/packages/elements-ui/dist/cdn/chunks/{Toast-CAYGbn7g.js → Toast-BTfcZn0I.js} +1 -1
  108. package/dist/packages/elements-ui/dist/cdn/chunks/{ToastViewport-CFslglYc.js → ToastViewport-BBQMRCQT.js} +1 -1
  109. package/dist/packages/elements-ui/dist/cdn/chunks/{ToolCall-DUCoKsoE.js → ToolCall-DNU5kk9_.js} +1 -1
  110. package/dist/packages/elements-ui/dist/cdn/chunks/{Treemap-Bh3ruYGJ.js → Treemap-BV8TlZHB.js} +1 -1
  111. package/dist/packages/elements-ui/dist/cdn/chunks/agent-DfOqpL9c.js +1 -0
  112. package/dist/packages/elements-ui/dist/cdn/chunks/api-DJBiUXxK.js +4 -0
  113. package/dist/packages/elements-ui/dist/cdn/chunks/avatar.module-D4YdFevY.js +1 -0
  114. package/dist/packages/elements-ui/dist/cdn/chunks/cap-DA71oFHt.js +1 -0
  115. package/dist/packages/elements-ui/dist/cdn/chunks/{cartesian-I5uPfyqv.js → cartesian-CEn2lJCc.js} +1 -1
  116. package/dist/packages/elements-ui/dist/cdn/chunks/{chart-annotations.module-xUExw4pu.js → chart-annotations.module-hA_KO_Pe.js} +1 -1
  117. package/dist/packages/elements-ui/dist/cdn/chunks/chart-brush.module-C_8txUW5.js +1 -0
  118. package/dist/packages/elements-ui/dist/cdn/chunks/chart-twin.module-BpfyTQ9R.js +1 -0
  119. package/dist/packages/elements-ui/dist/cdn/chunks/check-CHvc4yHL.js +1 -0
  120. package/dist/packages/elements-ui/dist/cdn/chunks/css-vars-DeZ4TCna.js +1 -0
  121. package/dist/packages/elements-ui/dist/cdn/chunks/draw-BiQ3Of6N.js +1 -0
  122. package/dist/packages/elements-ui/dist/cdn/chunks/drawing-nhJNBahV.js +1 -0
  123. package/dist/packages/elements-ui/dist/cdn/chunks/field-labels-Df5HuYC5.js +1 -0
  124. package/dist/packages/elements-ui/dist/cdn/chunks/frame-CtTY4oCn.js +1 -0
  125. package/dist/packages/elements-ui/dist/cdn/chunks/on-call-YKLF3-FH.js +1 -0
  126. package/dist/packages/elements-ui/dist/cdn/chunks/runtime-QRQ3CjZg.js +1 -0
  127. package/dist/packages/elements-ui/dist/cdn/chunks/series-uUg6_JtL.js +1 -0
  128. package/dist/packages/elements-ui/dist/cdn/chunks/src-XnWjGSDr.js +67 -0
  129. package/dist/packages/elements-ui/dist/cdn/chunks/toast-pwGvxH2T.js +1 -0
  130. package/dist/packages/elements-ui/dist/cdn/chunks/urls-Qks0KJ_p.js +6 -0
  131. package/dist/packages/elements-ui/dist/cdn/chunks/webmcp-Dro53ATH.js +1 -0
  132. package/dist/packages/elements-ui/dist/cdn/polymorph-all.js +52 -50
  133. package/dist/packages/elements-ui/dist/cdn/polymorph.css +1 -1
  134. package/dist/packages/elements-ui/dist/cdn/polymorph.js +1 -1
  135. package/dist/packages/elements-ui/dist/cdn/prepaint.js +1 -1
  136. package/dist/packages/elements-ui/dist/cdn/themes/desktop.css +5 -4
  137. package/dist/packages/elements-ui/dist/cdn/themes/dew.css +5 -4
  138. package/dist/packages/elements-ui/dist/cdn/themes/flint.css +5 -4
  139. package/dist/packages/elements-ui/dist/cdn/themes/glassmorphic.css +5 -4
  140. package/dist/packages/elements-ui/dist/cdn/themes/harbor.css +5 -4
  141. package/dist/packages/elements-ui/dist/cdn/themes/journal.css +5 -4
  142. package/dist/packages/elements-ui/dist/cdn/themes/pastel.css +5 -4
  143. package/dist/packages/elements-ui/dist/cdn/themes/pebble.css +5 -4
  144. package/dist/packages/elements-ui/dist/cdn/themes/plain.css +5 -4
  145. package/dist/packages/elements-ui/dist/cdn/themes/pop.css +5 -4
  146. package/dist/packages/elements-ui/dist/cdn/themes/press.css +5 -4
  147. package/dist/packages/elements-ui/dist/cdn/themes/terminal.css +5 -4
  148. package/dist/packages/elements-ui/src/ai/ArtifactPane.ts +2 -0
  149. package/dist/packages/elements-ui/src/archetypes/dashboard.states.ts +9 -0
  150. package/dist/packages/elements-ui/src/controls/ColorInput.ts +2 -0
  151. package/dist/packages/elements-ui/src/controls/NumberInput.ts +2 -0
  152. package/dist/packages/elements-ui/src/controls/TagInput.ts +4 -0
  153. package/dist/packages/elements-ui/src/controls/TimeInput.ts +2 -0
  154. package/dist/packages/elements-ui/src/controls/select.states.ts +10 -0
  155. package/dist/packages/elements-ui/src/overlays/Command.ts +2 -0
  156. package/dist/packages/elements-ui/src/structure/CodeBlock.ts +5 -2
  157. package/dist/packages/elements-ui/src/structure/Stat.ts +6 -0
  158. package/dist/packages/elements-ui/src/structure/stat.states.ts +33 -0
  159. package/dist/packages/mcp/src/propose.js +92 -15
  160. package/dist/packages/mcp/src/server.js +19 -8
  161. package/dist/packages/mcp/src/tools.js +80 -5
  162. package/dist/packages/mcp/src/write.js +95 -13
  163. package/dist/packages/react-ui/src/ai/ArtifactPane.tsx +5 -2
  164. package/dist/packages/react-ui/src/ai/PromptInput.tsx +5 -2
  165. package/dist/packages/react-ui/src/archetypes/dashboard.states.tsx +28 -0
  166. package/dist/packages/react-ui/src/controls/ColorInput.tsx +69 -13
  167. package/dist/packages/react-ui/src/controls/Combobox.tsx +13 -5
  168. package/dist/packages/react-ui/src/controls/DatePicker.tsx +3 -0
  169. package/dist/packages/react-ui/src/controls/DateRangePicker.tsx +22 -5
  170. package/dist/packages/react-ui/src/controls/FileUpload.tsx +2 -0
  171. package/dist/packages/react-ui/src/controls/MultiSelect.tsx +30 -6
  172. package/dist/packages/react-ui/src/controls/NumberInput.tsx +19 -1
  173. package/dist/packages/react-ui/src/controls/PhoneInput.tsx +3 -3
  174. package/dist/packages/react-ui/src/controls/Select.tsx +59 -23
  175. package/dist/packages/react-ui/src/controls/TagInput.tsx +43 -10
  176. package/dist/packages/react-ui/src/controls/TimeInput.tsx +10 -0
  177. package/dist/packages/react-ui/src/controls/date-segments.tsx +16 -0
  178. package/dist/packages/react-ui/src/controls/select.states.tsx +13 -0
  179. package/dist/packages/react-ui/src/overlays/Command.tsx +23 -2
  180. package/dist/packages/react-ui/src/overlays/Toaster.tsx +2 -2
  181. package/dist/packages/react-ui/src/structure/CodeBlock.tsx +7 -3
  182. package/dist/packages/react-ui/src/structure/Stat.tsx +90 -13
  183. package/dist/packages/react-ui/src/structure/stat.states.tsx +68 -0
  184. package/dist/packages/recipes/src/ai/artifact-pane.module.css +4 -4
  185. package/dist/packages/recipes/src/controls/rich-text-input.module.css +1 -1
  186. package/dist/packages/recipes/src/structure/avatar.module.css +3 -1
  187. package/dist/packages/recipes/src/structure/heading.module.css +5 -4
  188. package/dist/packages/recipes/src/structure/hero.module.css +3 -1
  189. package/dist/packages/recipes/src/structure/stat.module.css +7 -0
  190. package/dist/packages/registry/src/card.js +4 -3
  191. package/dist/packages/registry/src/frameworks.js +28 -1
  192. package/dist/packages/registry/src/runtime-card.js +300 -0
  193. package/dist/packages/registry/src/runtime-members.js +176 -0
  194. package/dist/packages/registry/src/screen-table.js +166 -0
  195. package/dist/packages/rules/package.js +1 -1
  196. package/dist/packages/solid-ui/src/ai/ArtifactPane.tsx +11 -3
  197. package/dist/packages/solid-ui/src/ai/PromptInput.tsx +3 -1
  198. package/dist/packages/solid-ui/src/archetypes/Dashboard.tsx +3 -0
  199. package/dist/packages/solid-ui/src/archetypes/dashboard.states.tsx +39 -0
  200. package/dist/packages/solid-ui/src/controls/ColorInput.tsx +38 -17
  201. package/dist/packages/solid-ui/src/controls/Combobox.tsx +27 -6
  202. package/dist/packages/solid-ui/src/controls/DatePicker.tsx +12 -11
  203. package/dist/packages/solid-ui/src/controls/DateRangePicker.tsx +21 -16
  204. package/dist/packages/solid-ui/src/controls/DateRangePickerRangeCalendar.tsx +3 -4
  205. package/dist/packages/solid-ui/src/controls/FileUpload.tsx +1 -0
  206. package/dist/packages/solid-ui/src/controls/FileUploadRow.tsx +6 -0
  207. package/dist/packages/solid-ui/src/controls/MultiSelect.tsx +51 -11
  208. package/dist/packages/solid-ui/src/controls/NumberInput.tsx +21 -2
  209. package/dist/packages/solid-ui/src/controls/PhoneInput.tsx +8 -4
  210. package/dist/packages/solid-ui/src/controls/Select.tsx +37 -6
  211. package/dist/packages/solid-ui/src/controls/TagInput.tsx +26 -5
  212. package/dist/packages/solid-ui/src/controls/TimeInput.tsx +10 -1
  213. package/dist/packages/solid-ui/src/controls/select.states.tsx +18 -0
  214. package/dist/packages/solid-ui/src/overlays/Command.tsx +15 -2
  215. package/dist/packages/solid-ui/src/overlays/CommandPanel.tsx +7 -7
  216. package/dist/packages/solid-ui/src/overlays/ToastViewport.tsx +1 -1
  217. package/dist/packages/solid-ui/src/structure/CodeBlock.tsx +9 -5
  218. package/dist/packages/solid-ui/src/structure/Stat.tsx +86 -25
  219. package/dist/packages/solid-ui/src/structure/stat.states.tsx +73 -0
  220. package/dist/packages/svelte-ui/src/ai/ArtifactPane.svelte +8 -2
  221. package/dist/packages/svelte-ui/src/ai/PromptInput.svelte +3 -1
  222. package/dist/packages/svelte-ui/src/archetypes/Dashboard.svelte +3 -0
  223. package/dist/packages/svelte-ui/src/archetypes/dashboard.states.svelte +2 -0
  224. package/dist/packages/svelte-ui/src/controls/ColorInput.svelte +29 -8
  225. package/dist/packages/svelte-ui/src/controls/Combobox.svelte +26 -5
  226. package/dist/packages/svelte-ui/src/controls/DatePicker.svelte +7 -5
  227. package/dist/packages/svelte-ui/src/controls/DateRangePicker.svelte +15 -9
  228. package/dist/packages/svelte-ui/src/controls/DateRangePickerRangeCalendar.svelte +3 -2
  229. package/dist/packages/svelte-ui/src/controls/FileUpload.svelte +1 -0
  230. package/dist/packages/svelte-ui/src/controls/FileUploadRow.svelte +8 -1
  231. package/dist/packages/svelte-ui/src/controls/MultiSelect.svelte +36 -10
  232. package/dist/packages/svelte-ui/src/controls/NumberInput.svelte +14 -1
  233. package/dist/packages/svelte-ui/src/controls/PhoneInput.svelte +3 -3
  234. package/dist/packages/svelte-ui/src/controls/Select.svelte +20 -6
  235. package/dist/packages/svelte-ui/src/controls/TagInput.svelte +21 -3
  236. package/dist/packages/svelte-ui/src/controls/TimeInput.svelte +11 -1
  237. package/dist/packages/svelte-ui/src/controls/select.states.svelte +26 -24
  238. package/dist/packages/svelte-ui/src/overlays/Command.svelte +13 -1
  239. package/dist/packages/svelte-ui/src/overlays/CommandPanel.svelte +11 -6
  240. package/dist/packages/svelte-ui/src/overlays/ToastViewport.svelte +1 -1
  241. package/dist/packages/svelte-ui/src/structure/CodeBlock.svelte +7 -2
  242. package/dist/packages/svelte-ui/src/structure/Stat.svelte +70 -17
  243. package/dist/packages/svelte-ui/src/structure/stat.states.svelte +27 -0
  244. package/dist/packages/theme/src/admit.js +6 -3
  245. package/dist/packages/theme/src/color/resolve.js +19 -2
  246. package/dist/packages/theme/src/derive.js +13 -6
  247. package/dist/packages/theme/src/emit.js +1 -1
  248. package/dist/packages/theme/src/runtime.js +58 -0
  249. package/dist/packages/theme/src/seeds.js +30 -4
  250. package/dist/packages/theme/src/systems.js +1 -1
  251. package/dist/packages/theme/src/tokens.js +15 -6
  252. package/dist/packages/vue-ui/src/ai/ArtifactPane.vue +11 -2
  253. package/dist/packages/vue-ui/src/ai/PromptInput.vue +3 -1
  254. package/dist/packages/vue-ui/src/archetypes/Dashboard.vue +3 -0
  255. package/dist/packages/vue-ui/src/archetypes/dashboard.states.ts +49 -0
  256. package/dist/packages/vue-ui/src/controls/ColorInput.vue +33 -12
  257. package/dist/packages/vue-ui/src/controls/Combobox.vue +26 -5
  258. package/dist/packages/vue-ui/src/controls/DatePicker.vue +12 -11
  259. package/dist/packages/vue-ui/src/controls/DateRangePicker.vue +20 -15
  260. package/dist/packages/vue-ui/src/controls/DateRangePickerRangeCalendar.vue +3 -4
  261. package/dist/packages/vue-ui/src/controls/FileUpload.vue +1 -0
  262. package/dist/packages/vue-ui/src/controls/FileUploadRow.vue +6 -0
  263. package/dist/packages/vue-ui/src/controls/MultiSelect.vue +37 -10
  264. package/dist/packages/vue-ui/src/controls/NumberInput.vue +17 -1
  265. package/dist/packages/vue-ui/src/controls/PhoneInput.vue +7 -3
  266. package/dist/packages/vue-ui/src/controls/Select.vue +22 -7
  267. package/dist/packages/vue-ui/src/controls/TagInput.vue +21 -3
  268. package/dist/packages/vue-ui/src/controls/TimeInput.vue +10 -1
  269. package/dist/packages/vue-ui/src/controls/select.states.ts +17 -0
  270. package/dist/packages/vue-ui/src/overlays/Command.vue +13 -1
  271. package/dist/packages/vue-ui/src/overlays/CommandPanel.vue +7 -7
  272. package/dist/packages/vue-ui/src/overlays/ToastViewport.vue +1 -1
  273. package/dist/packages/vue-ui/src/structure/CodeBlock.vue +7 -2
  274. package/dist/packages/vue-ui/src/structure/Stat.vue +71 -18
  275. package/dist/packages/vue-ui/src/structure/stat.states.ts +67 -0
  276. package/dist/platforms/android/ui/src/generated/kotlin/dev/polymorph/ui/Contracts.kt +144 -33
  277. package/dist/platforms/android/ui/src/generated/kotlin/dev/polymorph/ui/Members.kt +17 -7
  278. package/dist/platforms/ios/Sources/PolymorphUI/Generated/Contracts.swift +204 -31
  279. package/dist/registry/registry.json +371 -75
  280. package/dist/screen/assets/{screen-CuQbskb8.css → screen-B22PTPwF.css} +1 -1
  281. package/dist/screen/assets/screen-Cpbh7XMb.js +372 -0
  282. package/dist/screen/screen.html +3 -3
  283. package/package.json +1 -1
  284. package/dist/packages/elements-ui/dist/cdn/chunks/ArtifactPane-DsmRlr6d.js +0 -1
  285. package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-BqP8HZKM.js +0 -1
  286. package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-D8VARz0a.js +0 -1
  287. package/dist/packages/elements-ui/dist/cdn/chunks/ColorInput-BrzZOVeL.js +0 -1
  288. package/dist/packages/elements-ui/dist/cdn/chunks/Combobox-BiUq0h-w.js +0 -1
  289. package/dist/packages/elements-ui/dist/cdn/chunks/Command-hmxVRdFg.js +0 -1
  290. package/dist/packages/elements-ui/dist/cdn/chunks/DatePicker-C8prGbJ2.js +0 -1
  291. package/dist/packages/elements-ui/dist/cdn/chunks/DateRangePicker-CO1ioqwN.js +0 -1
  292. package/dist/packages/elements-ui/dist/cdn/chunks/FileUpload-HPQe-ttb.js +0 -1
  293. package/dist/packages/elements-ui/dist/cdn/chunks/ModeSwitch-CerqbGv3.js +0 -1
  294. package/dist/packages/elements-ui/dist/cdn/chunks/MultiSelect-CQq7jPgI.js +0 -1
  295. package/dist/packages/elements-ui/dist/cdn/chunks/NumberInput-Dre9GwBy.js +0 -7
  296. package/dist/packages/elements-ui/dist/cdn/chunks/PhoneInput-D6_J6Es_.js +0 -210
  297. package/dist/packages/elements-ui/dist/cdn/chunks/PromptInput-BXcsUQ5W.js +0 -1
  298. package/dist/packages/elements-ui/dist/cdn/chunks/Select-DxGQgv2q.js +0 -1
  299. package/dist/packages/elements-ui/dist/cdn/chunks/Stat-FsMUWigK.js +0 -1
  300. package/dist/packages/elements-ui/dist/cdn/chunks/Stat-WS8v6BQv.js +0 -1
  301. package/dist/packages/elements-ui/dist/cdn/chunks/TagInput-D-uIQEGS.js +0 -1
  302. package/dist/packages/elements-ui/dist/cdn/chunks/TimeInput-Dho571vA.js +0 -1
  303. package/dist/packages/elements-ui/dist/cdn/chunks/agent-DBDk4wLH.js +0 -1
  304. package/dist/packages/elements-ui/dist/cdn/chunks/api-B9sGZiYn.js +0 -4
  305. package/dist/packages/elements-ui/dist/cdn/chunks/avatar.module-CQwnWhWo.js +0 -1
  306. package/dist/packages/elements-ui/dist/cdn/chunks/cap-Ct4k7zNC.js +0 -1
  307. package/dist/packages/elements-ui/dist/cdn/chunks/chart-brush.module-DycBfben.js +0 -1
  308. package/dist/packages/elements-ui/dist/cdn/chunks/chart-twin.module-Cks7VwS5.js +0 -1
  309. package/dist/packages/elements-ui/dist/cdn/chunks/check-dOfCSYFA.js +0 -1
  310. package/dist/packages/elements-ui/dist/cdn/chunks/draw-DclRgiWM.js +0 -1
  311. package/dist/packages/elements-ui/dist/cdn/chunks/drawing-DjkZr0z8.js +0 -1
  312. package/dist/packages/elements-ui/dist/cdn/chunks/frame-BSvl4y47.js +0 -1
  313. package/dist/packages/elements-ui/dist/cdn/chunks/on-call-Jk1sYJc_.js +0 -1
  314. package/dist/packages/elements-ui/dist/cdn/chunks/receivers-BpRfF6dV.js +0 -4
  315. package/dist/packages/elements-ui/dist/cdn/chunks/series-C_1TNd2n.js +0 -1
  316. package/dist/packages/elements-ui/dist/cdn/chunks/src-Bub3C9YP.js +0 -67
  317. package/dist/packages/elements-ui/dist/cdn/chunks/toast-AarMGYJn.js +0 -1
  318. package/dist/packages/elements-ui/dist/cdn/chunks/webmcp-eEPzSqph.js +0 -1
  319. package/dist/screen/assets/screen-Clj2u6_s.js +0 -372
@@ -1,5 +1,5 @@
1
1
  /**
2
- * A key number with its label and direction of change (`design/components/stat.md`).
2
+ * A key number and how it moved (`design/components/stat.md`).
3
3
  *
4
4
  * Generated by `pnpm shells` from `packages/shells/src/members/stat.ts`, the member's
5
5
  * framework-neutral description. Never edit it by hand: change the description and
@@ -17,6 +17,7 @@ import {
17
17
  } from '@polymorph/angular'
18
18
  import styles from '@polymorph/recipes/structure/stat.module.css'
19
19
  import { Badge, type BadgeProps } from './Badge'
20
+ import { Skeleton, type SkeletonProps } from './Skeleton'
20
21
  import { Sparkline, type SparklineProps } from '../charts/Sparkline'
21
22
 
22
23
  export type DeltaDirection = 'up' | 'down'
@@ -27,6 +28,12 @@ export interface StatDelta {
27
28
  positive?: boolean
28
29
  }
29
30
 
31
+ export type StatDeltaLabel = (delta: {
32
+ value: string
33
+ direction: DeltaDirection
34
+ positive: boolean
35
+ }) => string
36
+
30
37
  export interface StatTrend {
31
38
  direction: DeltaDirection
32
39
  label: string
@@ -37,9 +44,14 @@ export interface StatFooter {
37
44
  secondary: string
38
45
  }
39
46
 
40
- /** A key number with its label and direction of change: the inputs it takes, by the React member's prop names. */
47
+ /** A key number and how it moved: the inputs it takes, by the React member's prop names. */
41
48
  export interface StatProps {
42
49
  delta?: StatDelta
50
+ /**
51
+ * The delta's spoken sentence in the host's words, the localization seam; the default is
52
+ * `{direction} {value} — positive` or `— negative`.
53
+ */
54
+ deltaLabel?: StatDeltaLabel
43
55
  /**
44
56
  * Shown when there is no delta, such as "vs last week".
45
57
  */
@@ -50,6 +62,18 @@ export interface StatProps {
50
62
  footer?: StatFooter
51
63
  icon?: IconRole
52
64
  label: string
65
+ /**
66
+ * The number has not arrived. The label row stays, and the value and each part the caller
67
+ * passes that states the number is a Skeleton of that part's size. `value` stays required, as
68
+ * a chart's rows do with its `loading`: pass what there is, `''` or the last value, and it is
69
+ * not drawn.
70
+ */
71
+ loading?: boolean
72
+ /**
73
+ * What a screen reader hears in the value's place while `loading`, the value's Skeleton's
74
+ * name. Default "Loading".
75
+ */
76
+ loadingLabel?: string
53
77
  /**
54
78
  * Tabular figures, so a column of these lines up.
55
79
  */
@@ -75,92 +99,135 @@ export interface StatProps {
75
99
  value: string
76
100
  }
77
101
 
78
- /** A key number with its label and direction of change. */
102
+ /** A key number and how it moved. */
79
103
  @Component({
80
104
  selector: 'pm-stat',
81
105
  encapsulation: ViewEncapsulation.None,
82
106
  host: { style: 'display: contents' },
83
107
  providers: [...MEMBER_PROVIDERS],
84
- imports: [Badge, Icon, Sparkline],
108
+ imports: [Badge, Icon, Skeleton, Sparkline],
85
109
  // prettier-ignore
86
110
  template: `<!-- stat -->
87
111
  <div
88
112
  [attr.class]="e1()"
89
113
  data-member="stat"
114
+ [attr.data-loading]="e2()"
115
+ [attr.aria-busy]="e3()"
90
116
  ><!-- labelRow -->
91
117
  <div
92
- [attr.class]="e2()"
118
+ [attr.class]="e4()"
93
119
  ><!-- label -->
94
120
  <span
95
- [attr.class]="e3()"
96
- >{{ e4() }}</span>
97
- @if (e5()) {<!-- labelEnd -->
98
- <span
99
- [attr.class]="e6()"
100
- >@if (e7()) {<!-- glyph -->
121
+ [attr.class]="e5()"
122
+ >{{ e6() }}</span>
123
+ @if (e7()) {<!-- labelEnd -->
101
124
  <span
102
125
  [attr.class]="e8()"
126
+ >@if (e9()) {<!-- glyph -->
127
+ <span
128
+ [attr.class]="e10()"
103
129
  ><pm-icon
104
- [name]="e9()"
130
+ [name]="e11()"
105
131
  ></pm-icon></span>}
106
- @if (e10()) {<pm-badge
132
+ @if (e12()) {<!-- trendPlaceholder -->
133
+ <span
134
+ [attr.class]="e13()"
135
+ ><pm-skeleton
136
+ textStep="xs"
137
+ [width]="e14()"
138
+ ></pm-skeleton></span>} @else if (e15()) {<pm-badge
107
139
  variant="outline"
108
- [icon]="e11()"
109
- >{{ e12() }}</pm-badge>}</span>}</div>
140
+ [icon]="e16()"
141
+ >{{ e17() }}</pm-badge>}</span>}</div>
110
142
  <!-- valueRow -->
111
143
  <div
112
- [attr.class]="e13()"
113
- ><!-- value -->
114
- <span
115
- [attr.class]="e14()"
116
- [attr.data-numeric]="e15()"
117
- >{{ e16() }}</span>
118
- @if (e17()) {<!-- spark -->
119
- <span
120
144
  [attr.class]="e18()"
121
- ><pm-sparkline
122
- [data]="e19()"
123
- [label]="e20()"
124
- ></pm-sparkline></span>}</div>
125
- @if (e21()) {<!-- delta -->
145
+ >@if (e19()) {<pm-skeleton
146
+ textStep="3xl"
147
+ [width]="e20()"
148
+ [label]="e21()"
149
+ ></pm-skeleton>} @else {<!-- value -->
126
150
  <span
127
151
  [attr.class]="e22()"
128
- [attr.data-direction]="e23()"
129
- [attr.data-positive]="e24()"
152
+ [attr.data-numeric]="e23()"
153
+ >{{ e24() }}</span>}
154
+ @if (e25()) {<!-- spark -->
155
+ <span
156
+ [attr.class]="e26()"
157
+ >@if (e27()) {<pm-skeleton
158
+ shape="rect"
159
+ [size]="e28()"
160
+ [width]="e29()"
161
+ ></pm-skeleton>} @else {<pm-sparkline
162
+ [data]="e30()"
163
+ [label]="e31()"
164
+ ></pm-sparkline>}</span>}</div>
165
+ @if (e32()) {<pm-skeleton
166
+ textStep="sm"
167
+ [width]="e33()"
168
+ ></pm-skeleton>} @else if (e34()) {<!-- delta -->
169
+ <span
170
+ [attr.class]="e35()"
171
+ [attr.data-direction]="e36()"
172
+ [attr.data-positive]="e37()"
130
173
  ><pm-icon
131
- [name]="e25()"
174
+ [name]="e38()"
132
175
  size="sm"
133
176
  ></pm-icon>
134
177
  <span
135
178
  aria-hidden="true"
136
- >{{ e26() }}</span>
179
+ >{{ e39() }}</span>
137
180
  <!-- spoken -->
138
181
  <span
139
- [attr.class]="e27()"
140
- >{{ e28() }}</span></span>} @else if (e29()) {<!-- description -->
182
+ [attr.class]="e40()"
183
+ >{{ e41() }}</span></span>} @else if (e42()) {<pm-skeleton
184
+ textStep="xs"
185
+ [width]="e43()"
186
+ ></pm-skeleton>} @else if (e44()) {<!-- description -->
141
187
  <span
142
- [attr.class]="e30()"
143
- >{{ e31() }}</span>}
144
- @if (e32()) {<!-- footer -->
188
+ [attr.class]="e45()"
189
+ >{{ e46() }}</span>}
190
+ @if (e47()) {<!-- footer -->
145
191
  <div
146
- [attr.class]="e33()"
147
- ><!-- footerPrimary -->
192
+ [attr.class]="e48()"
193
+ >@if (e49()) {<pm-skeleton
194
+ textStep="sm"
195
+ ></pm-skeleton>
196
+ <pm-skeleton
197
+ textStep="sm"
198
+ [width]="e50()"
199
+ ></pm-skeleton>} @else {<!-- footerPrimary -->
148
200
  <span
149
- [attr.class]="e34()"
150
- >{{ e35() }}@if (e36()) {<!-- footerGlyph -->
201
+ [attr.class]="e51()"
202
+ >{{ e52() }}@if (e53()) {<!-- footerGlyph -->
151
203
  <span
152
- [attr.class]="e37()"
204
+ [attr.class]="e54()"
153
205
  ><pm-icon
154
- [name]="e38()"
206
+ [name]="e55()"
155
207
  size="sm"
156
208
  ></pm-icon></span>}</span>
157
209
  <!-- footerSecondary -->
158
210
  <span
159
- [attr.class]="e39()"
160
- >{{ e40() }}</span></div>}</div>`,
211
+ [attr.class]="e56()"
212
+ >{{ e57() }}</span>}</div>}</div>`,
161
213
  })
162
214
  export class Stat {
163
215
  readonly delta = input<StatProps['delta']>(undefined)
216
+ /**
217
+ * The delta's spoken sentence in the host's words, the localization seam; the default is
218
+ * `{direction} {value} — positive` or `— negative`.
219
+ */
220
+ readonly deltaLabel = input<Exclude<StatProps['deltaLabel'], undefined>, StatProps['deltaLabel']>(
221
+ ({ value, direction, positive }: Parameters<StatDeltaLabel>[0]) =>
222
+ `${direction} ${value} — ${positive ? 'positive' : 'negative'}`,
223
+ {
224
+ transform: (value: StatProps['deltaLabel']) =>
225
+ value === undefined
226
+ ? ({ value, direction, positive }: Parameters<StatDeltaLabel>[0]) =>
227
+ `${direction} ${value} — ${positive ? 'positive' : 'negative'}`
228
+ : value,
229
+ },
230
+ )
164
231
  /**
165
232
  * Shown when there is no delta, such as "vs last week".
166
233
  */
@@ -171,6 +238,25 @@ export class Stat {
171
238
  readonly footer = input<StatProps['footer']>(undefined)
172
239
  readonly icon = input<StatProps['icon']>(undefined)
173
240
  readonly label = input.required<StatProps['label']>()
241
+ /**
242
+ * The number has not arrived. The label row stays, and the value and each part the caller
243
+ * passes that states the number is a Skeleton of that part's size. `value` stays required, as
244
+ * a chart's rows do with its `loading`: pass what there is, `''` or the last value, and it is
245
+ * not drawn.
246
+ */
247
+ readonly loading = input<Exclude<StatProps['loading'], undefined>, StatProps['loading']>(false, {
248
+ transform: (value: StatProps['loading']) => (value === undefined ? false : value),
249
+ })
250
+ /**
251
+ * What a screen reader hears in the value's place while `loading`, the value's Skeleton's
252
+ * name. Default "Loading".
253
+ */
254
+ readonly loadingLabel = input<
255
+ Exclude<StatProps['loadingLabel'], undefined>,
256
+ StatProps['loadingLabel']
257
+ >('Loading', {
258
+ transform: (value: StatProps['loadingLabel']) => (value === undefined ? 'Loading' : value),
259
+ })
174
260
  /**
175
261
  * Tabular figures, so a column of these lines up.
176
262
  */
@@ -206,10 +292,13 @@ export class Stat {
206
292
  events: [],
207
293
  props: {
208
294
  delta: () => this.delta(),
295
+ deltaLabel: () => this.deltaLabel(),
209
296
  description: () => this.description(),
210
297
  footer: () => this.footer(),
211
298
  icon: () => this.icon(),
212
299
  label: () => this.label(),
300
+ loading: () => this.loading(),
301
+ loadingLabel: () => this.loadingLabel(),
213
302
  numeric: () => this.numeric(),
214
303
  spark: () => this.spark(),
215
304
  sparkLabel: () => this.sparkLabel(),
@@ -229,194 +318,316 @@ export class Stat {
229
318
  }
230
319
 
231
320
  protected e2() {
232
- return styles.labelRow
321
+ return this.$p.loading ? '' : undefined
233
322
  }
234
323
 
235
324
  protected e3() {
236
- return styles.label
325
+ return this.$p.loading ? true : undefined
237
326
  }
238
327
 
239
328
  protected e4() {
240
- return this.$p.label
329
+ return styles.labelRow
241
330
  }
242
331
 
243
332
  protected e5() {
244
- return this.$p.icon !== undefined || this.$p.trend !== undefined
333
+ return styles.label
245
334
  }
246
335
 
247
336
  protected e6() {
337
+ return this.$p.label
338
+ }
339
+
340
+ protected e7() {
341
+ return this.$p.icon !== undefined || this.$p.trend !== undefined
342
+ }
343
+
344
+ protected e8() {
248
345
  if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
249
346
  return styles.labelEnd
250
347
  }
251
348
 
252
- protected e7() {
349
+ protected e9() {
253
350
  if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
254
351
  return this.$p.icon !== undefined
255
352
  }
256
353
 
257
- protected e8() {
354
+ protected e10() {
258
355
  if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
259
356
  if (!(this.$p.icon !== undefined)) return undefined as never
260
357
  return styles.glyph
261
358
  }
262
359
 
263
- protected e9(): IconProps['name'] {
360
+ protected e11(): IconProps['name'] {
264
361
  if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
265
362
  if (!(this.$p.icon !== undefined)) return undefined as never
266
363
  return this.$p.icon
267
364
  }
268
365
 
269
- protected e10() {
366
+ protected e12() {
367
+ if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
368
+ return this.$p.trend !== undefined && this.$p.loading
369
+ }
370
+
371
+ protected e13() {
270
372
  if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
373
+ if (!(this.$p.trend !== undefined && this.$p.loading)) return undefined as never
374
+ return styles.trendPlaceholder
375
+ }
376
+
377
+ protected e14(): SkeletonProps['width'] {
378
+ if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
379
+ if (!(this.$p.trend !== undefined && this.$p.loading)) return undefined as never
380
+ return 7
381
+ }
382
+
383
+ protected e15() {
384
+ if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
385
+ if (this.$p.trend !== undefined && this.$p.loading) return undefined as never
271
386
  return this.$p.trend !== undefined
272
387
  }
273
388
 
274
- protected e11(): BadgeProps['icon'] {
389
+ protected e16(): BadgeProps['icon'] {
275
390
  if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
391
+ if (this.$p.trend !== undefined && this.$p.loading) return undefined as never
276
392
  if (!(this.$p.trend !== undefined)) return undefined as never
277
393
  return this.$p.trend.direction
278
394
  }
279
395
 
280
- protected e12() {
396
+ protected e17() {
281
397
  if (!(this.$p.icon !== undefined || this.$p.trend !== undefined)) return undefined as never
398
+ if (this.$p.trend !== undefined && this.$p.loading) return undefined as never
282
399
  if (!(this.$p.trend !== undefined)) return undefined as never
283
400
  return this.$p.trend.label
284
401
  }
285
402
 
286
- protected e13() {
403
+ protected e18() {
287
404
  return styles.valueRow
288
405
  }
289
406
 
290
- protected e14() {
407
+ protected e19() {
408
+ return this.$p.loading
409
+ }
410
+
411
+ protected e20(): SkeletonProps['width'] {
412
+ if (!this.$p.loading) return undefined as never
413
+ return 10
414
+ }
415
+
416
+ protected e21(): SkeletonProps['label'] {
417
+ if (!this.$p.loading) return undefined as never
418
+ return this.$p.loadingLabel
419
+ }
420
+
421
+ protected e22() {
422
+ if (this.$p.loading) return undefined as never
291
423
  return styles.value
292
424
  }
293
425
 
294
- protected e15() {
426
+ protected e23() {
427
+ if (this.$p.loading) return undefined as never
295
428
  return this.$p.numeric ? '' : undefined
296
429
  }
297
430
 
298
- protected e16() {
431
+ protected e24() {
432
+ if (this.$p.loading) return undefined as never
299
433
  return this.$p.value
300
434
  }
301
435
 
302
- protected e17() {
436
+ protected e25() {
303
437
  return this.$p.spark !== undefined
304
438
  }
305
439
 
306
- protected e18() {
440
+ protected e26() {
307
441
  if (!(this.$p.spark !== undefined)) return undefined as never
308
442
  return styles.spark
309
443
  }
310
444
 
311
- protected e19(): SparklineProps['data'] {
445
+ protected e27() {
312
446
  if (!(this.$p.spark !== undefined)) return undefined as never
447
+ return this.$p.loading
448
+ }
449
+
450
+ protected e28(): SkeletonProps['size'] {
451
+ if (!(this.$p.spark !== undefined)) return undefined as never
452
+ if (!this.$p.loading) return undefined as never
453
+ return 6
454
+ }
455
+
456
+ protected e29(): SkeletonProps['width'] {
457
+ if (!(this.$p.spark !== undefined)) return undefined as never
458
+ if (!this.$p.loading) return undefined as never
459
+ return 9
460
+ }
461
+
462
+ protected e30(): SparklineProps['data'] {
463
+ if (!(this.$p.spark !== undefined)) return undefined as never
464
+ if (this.$p.loading) return undefined as never
313
465
  return this.$p.spark
314
466
  }
315
467
 
316
- protected e20(): SparklineProps['label'] {
468
+ protected e31(): SparklineProps['label'] {
317
469
  if (!(this.$p.spark !== undefined)) return undefined as never
470
+ if (this.$p.loading) return undefined as never
318
471
  return this.$p.sparkLabel(this.$p.label)
319
472
  }
320
473
 
321
- protected e21() {
474
+ protected e32() {
475
+ return this.$p.delta !== undefined && this.$p.loading
476
+ }
477
+
478
+ protected e33(): SkeletonProps['width'] {
479
+ if (!(this.$p.delta !== undefined && this.$p.loading)) return undefined as never
480
+ return 9
481
+ }
482
+
483
+ protected e34() {
484
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
322
485
  return this.$p.delta !== undefined
323
486
  }
324
487
 
325
- protected e22() {
488
+ protected e35() {
489
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
326
490
  if (!(this.$p.delta !== undefined)) return undefined as never
327
491
  return styles.delta
328
492
  }
329
493
 
330
- protected e23() {
494
+ protected e36() {
495
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
331
496
  if (!(this.$p.delta !== undefined)) return undefined as never
332
497
  return this.$p.delta.direction
333
498
  }
334
499
 
335
- protected e24() {
500
+ protected e37() {
501
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
336
502
  if (!(this.$p.delta !== undefined)) return undefined as never
337
503
  return this.positive.value ? '' : undefined
338
504
  }
339
505
 
340
- protected e25(): IconProps['name'] {
506
+ protected e38(): IconProps['name'] {
507
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
341
508
  if (!(this.$p.delta !== undefined)) return undefined as never
342
509
  return this.$p.delta.direction
343
510
  }
344
511
 
345
- protected e26() {
512
+ protected e39() {
513
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
346
514
  if (!(this.$p.delta !== undefined)) return undefined as never
347
515
  return this.$p.delta.value
348
516
  }
349
517
 
350
- protected e27() {
518
+ protected e40() {
519
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
351
520
  if (!(this.$p.delta !== undefined)) return undefined as never
352
521
  return styles.spoken
353
522
  }
354
523
 
355
- protected e28() {
524
+ protected e41() {
525
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
356
526
  if (!(this.$p.delta !== undefined)) return undefined as never
357
- return `${this.$p.delta.direction} ${this.$p.delta.value} — ${this.positive.value ? 'positive' : 'negative'}`
527
+ return this.$p.deltaLabel({
528
+ value: this.$p.delta.value,
529
+ direction: this.$p.delta.direction,
530
+ positive: this.positive.value === true,
531
+ })
532
+ }
533
+
534
+ protected e42() {
535
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
536
+ if (this.$p.delta !== undefined) return undefined as never
537
+ return this.$p.description !== undefined && this.$p.loading
358
538
  }
359
539
 
360
- protected e29() {
540
+ protected e43(): SkeletonProps['width'] {
541
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
361
542
  if (this.$p.delta !== undefined) return undefined as never
543
+ if (!(this.$p.description !== undefined && this.$p.loading)) return undefined as never
544
+ return 10
545
+ }
546
+
547
+ protected e44() {
548
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
549
+ if (this.$p.delta !== undefined) return undefined as never
550
+ if (this.$p.description !== undefined && this.$p.loading) return undefined as never
362
551
  return this.$p.description !== undefined
363
552
  }
364
553
 
365
- protected e30() {
554
+ protected e45() {
555
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
366
556
  if (this.$p.delta !== undefined) return undefined as never
557
+ if (this.$p.description !== undefined && this.$p.loading) return undefined as never
367
558
  if (!(this.$p.description !== undefined)) return undefined as never
368
559
  return styles.description
369
560
  }
370
561
 
371
- protected e31() {
562
+ protected e46() {
563
+ if (this.$p.delta !== undefined && this.$p.loading) return undefined as never
372
564
  if (this.$p.delta !== undefined) return undefined as never
565
+ if (this.$p.description !== undefined && this.$p.loading) return undefined as never
373
566
  if (!(this.$p.description !== undefined)) return undefined as never
374
567
  return this.$p.description
375
568
  }
376
569
 
377
- protected e32() {
570
+ protected e47() {
378
571
  return this.$p.footer !== undefined
379
572
  }
380
573
 
381
- protected e33() {
574
+ protected e48() {
382
575
  if (!(this.$p.footer !== undefined)) return undefined as never
383
576
  return styles.footer
384
577
  }
385
578
 
386
- protected e34() {
579
+ protected e49() {
580
+ if (!(this.$p.footer !== undefined)) return undefined as never
581
+ return this.$p.loading
582
+ }
583
+
584
+ protected e50(): SkeletonProps['width'] {
387
585
  if (!(this.$p.footer !== undefined)) return undefined as never
586
+ if (!this.$p.loading) return undefined as never
587
+ return 10
588
+ }
589
+
590
+ protected e51() {
591
+ if (!(this.$p.footer !== undefined)) return undefined as never
592
+ if (this.$p.loading) return undefined as never
388
593
  return styles.footerPrimary
389
594
  }
390
595
 
391
- protected e35() {
596
+ protected e52() {
392
597
  if (!(this.$p.footer !== undefined)) return undefined as never
598
+ if (this.$p.loading) return undefined as never
393
599
  return this.$p.footer.primary
394
600
  }
395
601
 
396
- protected e36() {
602
+ protected e53() {
397
603
  if (!(this.$p.footer !== undefined)) return undefined as never
604
+ if (this.$p.loading) return undefined as never
398
605
  return this.$p.trend !== undefined
399
606
  }
400
607
 
401
- protected e37() {
608
+ protected e54() {
402
609
  if (!(this.$p.footer !== undefined)) return undefined as never
610
+ if (this.$p.loading) return undefined as never
403
611
  if (!(this.$p.trend !== undefined)) return undefined as never
404
612
  return styles.footerGlyph
405
613
  }
406
614
 
407
- protected e38(): IconProps['name'] {
615
+ protected e55(): IconProps['name'] {
408
616
  if (!(this.$p.footer !== undefined)) return undefined as never
617
+ if (this.$p.loading) return undefined as never
409
618
  if (!(this.$p.trend !== undefined)) return undefined as never
410
619
  return this.$p.trend.direction
411
620
  }
412
621
 
413
- protected e39() {
622
+ protected e56() {
414
623
  if (!(this.$p.footer !== undefined)) return undefined as never
624
+ if (this.$p.loading) return undefined as never
415
625
  return styles.footerSecondary
416
626
  }
417
627
 
418
- protected e40() {
628
+ protected e57() {
419
629
  if (!(this.$p.footer !== undefined)) return undefined as never
630
+ if (this.$p.loading) return undefined as never
420
631
  return this.$p.footer.secondary
421
632
  }
422
633
  }