@questpie/admin 3.2.4 → 3.2.6

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 (255) hide show
  1. package/dist/client/blocks/block-renderer.d.mts +2 -2
  2. package/dist/client/blocks/block-renderer.mjs +164 -339
  3. package/dist/client/components/actions/action-button.mjs +9 -9
  4. package/dist/client/components/actions/action-dialog.mjs +195 -493
  5. package/dist/client/components/actions/confirmation-dialog.mjs +44 -159
  6. package/dist/client/components/actions/header-actions.mjs +73 -165
  7. package/dist/client/components/admin-link.d.mts +2 -2
  8. package/dist/client/components/admin-link.mjs +40 -126
  9. package/dist/client/components/auth/auth-loading.mjs +9 -44
  10. package/dist/client/components/blocks/block-canvas.mjs +31 -95
  11. package/dist/client/components/blocks/block-editor-context.mjs +13 -57
  12. package/dist/client/components/blocks/block-editor-layout.mjs +72 -166
  13. package/dist/client/components/blocks/block-editor-provider.mjs +184 -245
  14. package/dist/client/components/blocks/block-fields-renderer.mjs +54 -229
  15. package/dist/client/components/blocks/block-insert-button.mjs +49 -165
  16. package/dist/client/components/blocks/block-item-menu.mjs +102 -301
  17. package/dist/client/components/blocks/block-item.mjs +136 -370
  18. package/dist/client/components/blocks/block-library-sidebar.mjs +103 -230
  19. package/dist/client/components/blocks/block-tree.mjs +12 -68
  20. package/dist/client/components/blocks/block-type-icon.mjs +14 -56
  21. package/dist/client/components/brand-logo.mjs +35 -149
  22. package/dist/client/components/component-renderer.mjs +42 -118
  23. package/dist/client/components/error-boundary.mjs +14 -58
  24. package/dist/client/components/fields/array-field.mjs +209 -521
  25. package/dist/client/components/fields/asset-preview-field.mjs +41 -141
  26. package/dist/client/components/fields/blocks-field/blocks-field.mjs +60 -156
  27. package/dist/client/components/fields/boolean-field.mjs +29 -59
  28. package/dist/client/components/fields/date-field.mjs +7 -37
  29. package/dist/client/components/fields/datetime-field.mjs +7 -38
  30. package/dist/client/components/fields/email-field.mjs +25 -54
  31. package/dist/client/components/fields/field-wrapper.mjs +30 -105
  32. package/dist/client/components/fields/json-field.mjs +94 -296
  33. package/dist/client/components/fields/locale-badge.mjs +6 -15
  34. package/dist/client/components/fields/number-field.mjs +27 -60
  35. package/dist/client/components/fields/object-array-field.mjs +283 -659
  36. package/dist/client/components/fields/object-field.mjs +165 -633
  37. package/dist/client/components/fields/relation/displays/cards-display.mjs +106 -220
  38. package/dist/client/components/fields/relation/displays/chips-display.mjs +78 -150
  39. package/dist/client/components/fields/relation/displays/grid-display.mjs +92 -186
  40. package/dist/client/components/fields/relation/displays/list-display.mjs +122 -239
  41. package/dist/client/components/fields/relation/displays/table-display.mjs +70 -244
  42. package/dist/client/components/fields/relation/relation-items-display.mjs +30 -126
  43. package/dist/client/components/fields/relation-field.mjs +10 -66
  44. package/dist/client/components/fields/relation-picker.mjs +18 -18
  45. package/dist/client/components/fields/relation-select.mjs +12 -12
  46. package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +80 -180
  47. package/dist/client/components/fields/rich-text-editor/image-popover.mjs +2 -2
  48. package/dist/client/components/fields/rich-text-editor/image-upload.mjs +13 -29
  49. package/dist/client/components/fields/rich-text-editor/index.mjs +195 -513
  50. package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +61 -111
  51. package/dist/client/components/fields/rich-text-editor/table-controls.mjs +105 -415
  52. package/dist/client/components/fields/rich-text-editor/toolbar.mjs +256 -511
  53. package/dist/client/components/fields/rich-text-field.mjs +14 -53
  54. package/dist/client/components/fields/select-field.mjs +61 -72
  55. package/dist/client/components/fields/text-field.mjs +26 -59
  56. package/dist/client/components/fields/textarea-field.mjs +26 -58
  57. package/dist/client/components/fields/time-field.mjs +7 -35
  58. package/dist/client/components/fields/upload-field.mjs +47 -165
  59. package/dist/client/components/filter-builder/columns-tab.mjs +80 -280
  60. package/dist/client/components/filter-builder/filter-builder-sheet.mjs +197 -540
  61. package/dist/client/components/filter-builder/filters-tab.mjs +96 -386
  62. package/dist/client/components/filter-builder/saved-views-tab.mjs +133 -351
  63. package/dist/client/components/history-sidebar.mjs +285 -605
  64. package/dist/client/components/layout/field-layout-renderer.mjs +106 -254
  65. package/dist/client/components/locale-switcher.mjs +106 -228
  66. package/dist/client/components/media/media-grid.mjs +84 -273
  67. package/dist/client/components/media/media-picker-dialog.mjs +176 -476
  68. package/dist/client/components/preview/live-preview-mode.mjs +233 -458
  69. package/dist/client/components/preview/preview-pane.mjs +22 -22
  70. package/dist/client/components/primitives/asset-preview.mjs +290 -666
  71. package/dist/client/components/primitives/checkbox-input.mjs +9 -35
  72. package/dist/client/components/primitives/date-input.mjs +109 -327
  73. package/dist/client/components/primitives/dropzone.mjs +209 -336
  74. package/dist/client/components/primitives/field-select-control.mjs +12 -80
  75. package/dist/client/components/primitives/number-input.mjs +4 -4
  76. package/dist/client/components/primitives/select-multi.mjs +229 -572
  77. package/dist/client/components/primitives/select-single.mjs +179 -499
  78. package/dist/client/components/primitives/time-input.mjs +43 -117
  79. package/dist/client/components/primitives/toggle-input.mjs +9 -29
  80. package/dist/client/components/sheets/resource-sheet.mjs +61 -70
  81. package/dist/client/components/ui/accordion.mjs +35 -155
  82. package/dist/client/components/ui/alert.mjs +13 -68
  83. package/dist/client/components/ui/badge.mjs +9 -51
  84. package/dist/client/components/ui/button.mjs +8 -54
  85. package/dist/client/components/ui/card.mjs +37 -193
  86. package/dist/client/components/ui/checkbox.mjs +12 -68
  87. package/dist/client/components/ui/command.mjs +48 -219
  88. package/dist/client/components/ui/dialog.mjs +50 -262
  89. package/dist/client/components/ui/drawer.mjs +55 -259
  90. package/dist/client/components/ui/dropdown-menu.mjs +86 -427
  91. package/dist/client/components/ui/empty-state.mjs +28 -98
  92. package/dist/client/components/ui/field.mjs +73 -309
  93. package/dist/client/components/ui/input-group.mjs +42 -167
  94. package/dist/client/components/ui/input.mjs +7 -37
  95. package/dist/client/components/ui/kbd.mjs +6 -36
  96. package/dist/client/components/ui/label.mjs +7 -37
  97. package/dist/client/components/ui/popover.mjs +34 -169
  98. package/dist/client/components/ui/responsive-dialog.mjs +67 -273
  99. package/dist/client/components/ui/scroll-fade.mjs +63 -158
  100. package/dist/client/components/ui/search-input.mjs +33 -100
  101. package/dist/client/components/ui/select.mjs +72 -393
  102. package/dist/client/components/ui/separator.mjs +7 -38
  103. package/dist/client/components/ui/sheet.mjs +49 -269
  104. package/dist/client/components/ui/sidebar.mjs +171 -690
  105. package/dist/client/components/ui/skeleton.mjs +7 -38
  106. package/dist/client/components/ui/sonner.mjs +11 -42
  107. package/dist/client/components/ui/switch.mjs +9 -45
  108. package/dist/client/components/ui/table.mjs +48 -266
  109. package/dist/client/components/ui/tabs.mjs +26 -139
  110. package/dist/client/components/ui/textarea.mjs +6 -32
  111. package/dist/client/components/ui/tooltip.mjs +27 -129
  112. package/dist/client/components/widgets/chart-widget.mjs +174 -522
  113. package/dist/client/components/widgets/progress-widget.mjs +66 -172
  114. package/dist/client/components/widgets/quick-actions-widget.mjs +102 -261
  115. package/dist/client/components/widgets/recent-items-widget.mjs +69 -195
  116. package/dist/client/components/widgets/stats-widget.mjs +41 -175
  117. package/dist/client/components/widgets/table-widget.mjs +9 -9
  118. package/dist/client/components/widgets/timeline-widget.mjs +86 -226
  119. package/dist/client/components/widgets/value-widget.mjs +74 -381
  120. package/dist/client/components/widgets/widget-empty-state.mjs +26 -76
  121. package/dist/client/components/widgets/widget-skeletons.mjs +138 -421
  122. package/dist/client/contexts/focus-context.mjs +63 -146
  123. package/dist/client/hooks/typed-hooks.mjs +241 -701
  124. package/dist/client/hooks/use-action.mjs +62 -198
  125. package/dist/client/hooks/use-admin-config.mjs +5 -35
  126. package/dist/client/hooks/use-admin-preferences.mjs +16 -88
  127. package/dist/client/hooks/use-admin-routes.mjs +22 -56
  128. package/dist/client/hooks/use-audit-history.mjs +21 -69
  129. package/dist/client/hooks/use-brand.mjs +1 -9
  130. package/dist/client/hooks/use-collection-fields.mjs +17 -57
  131. package/dist/client/hooks/use-collection-meta.mjs +12 -44
  132. package/dist/client/hooks/use-collection-schema.mjs +10 -33
  133. package/dist/client/hooks/use-collection-validation.mjs +23 -53
  134. package/dist/client/hooks/use-collection.mjs +194 -614
  135. package/dist/client/hooks/use-current-user.mjs +0 -1
  136. package/dist/client/hooks/use-field-hooks.mjs +10 -10
  137. package/dist/client/hooks/use-field-options.mjs +61 -202
  138. package/dist/client/hooks/use-global-fields.mjs +14 -46
  139. package/dist/client/hooks/use-global-meta.mjs +9 -30
  140. package/dist/client/hooks/use-global-schema.mjs +9 -30
  141. package/dist/client/hooks/use-global.mjs +63 -219
  142. package/dist/client/hooks/use-locks.mjs +117 -325
  143. package/dist/client/hooks/use-media-query.mjs +16 -36
  144. package/dist/client/hooks/use-prefill-params.mjs +0 -1
  145. package/dist/client/hooks/use-questpie-query-options.mjs +12 -29
  146. package/dist/client/hooks/use-reactive-fields.mjs +1 -1
  147. package/dist/client/hooks/use-reactive-prop.mjs +65 -223
  148. package/dist/client/hooks/use-realtime-highlight.mjs +51 -114
  149. package/dist/client/hooks/use-saved-views.mjs +22 -103
  150. package/dist/client/hooks/use-search-param-toggle.mjs +28 -79
  151. package/dist/client/hooks/use-search.mjs +31 -143
  152. package/dist/client/hooks/use-server-actions.mjs +18 -50
  153. package/dist/client/hooks/use-server-validation.mjs +72 -166
  154. package/dist/client/hooks/use-server-widget-data.mjs +7 -33
  155. package/dist/client/hooks/use-setup-status.mjs +12 -25
  156. package/dist/client/hooks/use-sidebar-search-param.mjs +33 -78
  157. package/dist/client/hooks/use-transition-stage.mjs +8 -38
  158. package/dist/client/hooks/use-upload.mjs +54 -152
  159. package/dist/client/hooks/use-validation-error-map.mjs +6 -26
  160. package/dist/client/hooks/use-view-state.mjs +187 -437
  161. package/dist/client/i18n/hooks.mjs +65 -197
  162. package/dist/client/lib/render-profiler.mjs +14 -41
  163. package/dist/client/preview/block-scope-context.mjs +14 -36
  164. package/dist/client/preview/preview-banner.d.mts +2 -2
  165. package/dist/client/preview/preview-banner.mjs +42 -108
  166. package/dist/client/preview/preview-field.d.mts +4 -4
  167. package/dist/client/preview/preview-field.mjs +167 -348
  168. package/dist/client/preview/use-collection-preview.mjs +121 -215
  169. package/dist/client/runtime/content-locales-provider.mjs +31 -83
  170. package/dist/client/runtime/locale-scope.mjs +22 -63
  171. package/dist/client/runtime/provider.mjs +100 -255
  172. package/dist/client/runtime/translations-provider.mjs +41 -107
  173. package/dist/client/scope/picker.mjs +86 -321
  174. package/dist/client/scope/provider.mjs +8 -17
  175. package/dist/client/utils/build-field-definitions-from-schema.mjs +4 -2
  176. package/dist/client/views/auth/accept-invite-form.d.mts +2 -2
  177. package/dist/client/views/auth/accept-invite-form.mjs +121 -412
  178. package/dist/client/views/auth/auth-layout.d.mts +3 -3
  179. package/dist/client/views/auth/auth-layout.mjs +104 -284
  180. package/dist/client/views/auth/forgot-password-form.d.mts +2 -2
  181. package/dist/client/views/auth/forgot-password-form.mjs +94 -325
  182. package/dist/client/views/auth/invite-form.mjs +107 -442
  183. package/dist/client/views/auth/login-form.d.mts +2 -2
  184. package/dist/client/views/auth/login-form.mjs +116 -337
  185. package/dist/client/views/auth/reset-password-form.d.mts +2 -2
  186. package/dist/client/views/auth/reset-password-form.mjs +128 -453
  187. package/dist/client/views/auth/setup-form.d.mts +2 -2
  188. package/dist/client/views/auth/setup-form.mjs +140 -478
  189. package/dist/client/views/collection/auto-form-fields.mjs +243 -615
  190. package/dist/client/views/collection/bulk-action-toolbar.mjs +212 -379
  191. package/dist/client/views/collection/cells/complex-cells.mjs +183 -611
  192. package/dist/client/views/collection/cells/primitive-cells.mjs +116 -356
  193. package/dist/client/views/collection/cells/relation-cells.mjs +86 -233
  194. package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +142 -371
  195. package/dist/client/views/collection/cells/shared/relation-chip.mjs +35 -131
  196. package/dist/client/views/collection/cells/upload-cells.mjs +60 -177
  197. package/dist/client/views/collection/columns/build-columns.mjs +8 -48
  198. package/dist/client/views/collection/field-renderer.mjs +58 -182
  199. package/dist/client/views/collection/form-view.mjs +284 -518
  200. package/dist/client/views/collection/table-view.mjs +231 -463
  201. package/dist/client/views/collection/view-skeletons.mjs +112 -237
  202. package/dist/client/views/common/global-search.mjs +241 -560
  203. package/dist/client/views/dashboard/dashboard-grid.mjs +256 -775
  204. package/dist/client/views/dashboard/dashboard-widget.mjs +38 -126
  205. package/dist/client/views/dashboard/widget-card.mjs +61 -269
  206. package/dist/client/views/globals/global-form-view.mjs +477 -1301
  207. package/dist/client/views/layout/admin-layout-provider.mjs +28 -88
  208. package/dist/client/views/layout/admin-layout.mjs +83 -246
  209. package/dist/client/views/layout/admin-router.mjs +458 -1274
  210. package/dist/client/views/layout/admin-sidebar.mjs +510 -1292
  211. package/dist/client/views/layout/admin-theme.mjs +30 -64
  212. package/dist/client/views/layout/admin-view-layout.mjs +40 -144
  213. package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
  214. package/dist/client/views/pages/accept-invite-page.mjs +95 -290
  215. package/dist/client/views/pages/dashboard-page.d.mts +2 -2
  216. package/dist/client/views/pages/dashboard-page.mjs +11 -57
  217. package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
  218. package/dist/client/views/pages/forgot-password-page.mjs +31 -83
  219. package/dist/client/views/pages/invite-page.d.mts +2 -2
  220. package/dist/client/views/pages/invite-page.mjs +35 -90
  221. package/dist/client/views/pages/login-page.d.mts +2 -2
  222. package/dist/client/views/pages/login-page.mjs +41 -121
  223. package/dist/client/views/pages/reset-password-page.d.mts +2 -2
  224. package/dist/client/views/pages/reset-password-page.mjs +46 -173
  225. package/dist/client/views/pages/setup-page.d.mts +2 -2
  226. package/dist/client/views/pages/setup-page.mjs +33 -95
  227. package/dist/components/rich-text/rich-text-renderer.mjs +9 -33
  228. package/dist/server/adapters/index.d.mts +2 -0
  229. package/dist/server/adapters/nextjs.d.mts +1 -0
  230. package/dist/server/auth-helpers.d.mts +1 -0
  231. package/dist/server/modules/admin/.generated/module.d.mts +1 -0
  232. package/dist/server/modules/admin/collections/account.d.mts +46 -46
  233. package/dist/server/modules/admin/collections/admin-locks.d.mts +50 -50
  234. package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
  235. package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
  236. package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
  237. package/dist/server/modules/admin/collections/assets.d.mts +39 -39
  238. package/dist/server/modules/admin/collections/session.d.mts +42 -42
  239. package/dist/server/modules/admin/collections/user.d.mts +62 -62
  240. package/dist/server/modules/admin/collections/verification.d.mts +23 -23
  241. package/dist/server/modules/admin/index.d.mts +20 -19
  242. package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
  243. package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
  244. package/dist/server/modules/admin/routes/locales.d.mts +2 -2
  245. package/dist/server/modules/admin/routes/preview.d.mts +11 -11
  246. package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
  247. package/dist/server/modules/admin/routes/setup.d.mts +7 -7
  248. package/dist/server/modules/admin/routes/translations.d.mts +4 -4
  249. package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
  250. package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +45 -45
  251. package/dist/server/modules/audit/.generated/module.d.mts +6 -6
  252. package/dist/server/modules/audit/collections/audit-log.d.mts +78 -78
  253. package/dist/server/modules/audit/jobs/audit-cleanup.d.mts +2 -2
  254. package/dist/server.d.mts +2 -0
  255. package/package.json +3 -5
@@ -1,6 +1,5 @@
1
1
  import { cn } from "../../lib/utils.mjs";
2
2
  import { Skeleton } from "../ui/skeleton.mjs";
3
- import { c } from "react/compiler-runtime";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
5
4
 
6
5
  //#region src/client/components/widgets/widget-skeletons.tsx
@@ -11,449 +10,167 @@ import { jsx, jsxs } from "react/jsx-runtime";
11
10
  * Provides visual feedback while data is being fetched.
12
11
  */
13
12
  function StatsWidgetSkeleton() {
14
- const $ = c(1);
15
- let t0;
16
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
17
- t0 = /* @__PURE__ */ jsxs("div", {
18
- className: "space-y-3",
19
- children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })]
20
- });
21
- $[0] = t0;
22
- } else t0 = $[0];
23
- return t0;
13
+ return /* @__PURE__ */ jsxs("div", {
14
+ className: "space-y-3",
15
+ children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })]
16
+ });
24
17
  }
25
18
  function ChartWidgetSkeleton() {
26
- const $ = c(1);
27
- let t0;
28
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
29
- t0 = /* @__PURE__ */ jsxs("div", {
30
- className: "flex h-48 w-full items-end gap-2 pt-4",
31
- children: [
32
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[40%] flex-1 rounded-t-sm" }),
33
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[65%] flex-1 rounded-t-sm" }),
34
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[45%] flex-1 rounded-t-sm" }),
35
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[80%] flex-1 rounded-t-sm" }),
36
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[55%] flex-1 rounded-t-sm" }),
37
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[70%] flex-1 rounded-t-sm" }),
38
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[50%] flex-1 rounded-t-sm" }),
39
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[75%] flex-1 rounded-t-sm" }),
40
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[60%] flex-1 rounded-t-sm" }),
41
- /* @__PURE__ */ jsx(Skeleton, { className: "h-[85%] flex-1 rounded-t-sm" })
42
- ]
43
- });
44
- $[0] = t0;
45
- } else t0 = $[0];
46
- return t0;
19
+ return /* @__PURE__ */ jsxs("div", {
20
+ className: "flex h-48 w-full items-end gap-2 pt-4",
21
+ children: [
22
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[40%] flex-1 rounded-t-sm" }),
23
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[65%] flex-1 rounded-t-sm" }),
24
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[45%] flex-1 rounded-t-sm" }),
25
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[80%] flex-1 rounded-t-sm" }),
26
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[55%] flex-1 rounded-t-sm" }),
27
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[70%] flex-1 rounded-t-sm" }),
28
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[50%] flex-1 rounded-t-sm" }),
29
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[75%] flex-1 rounded-t-sm" }),
30
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[60%] flex-1 rounded-t-sm" }),
31
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-[85%] flex-1 rounded-t-sm" })
32
+ ]
33
+ });
47
34
  }
48
- function RecentItemsWidgetSkeleton(t0) {
49
- const $ = c(14);
50
- const { count: t1 } = t0;
51
- const count = t1 === void 0 ? 5 : t1;
52
- let t2;
53
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
54
- t2 = /* @__PURE__ */ jsx(SkeletonRow, {});
55
- $[0] = t2;
56
- } else t2 = $[0];
57
- let t3;
58
- if ($[1] !== count) {
59
- t3 = count > 1 && /* @__PURE__ */ jsx(SkeletonRow, {});
60
- $[1] = count;
61
- $[2] = t3;
62
- } else t3 = $[2];
63
- let t4;
64
- if ($[3] !== count) {
65
- t4 = count > 2 && /* @__PURE__ */ jsx(SkeletonRow, {});
66
- $[3] = count;
67
- $[4] = t4;
68
- } else t4 = $[4];
69
- let t5;
70
- if ($[5] !== count) {
71
- t5 = count > 3 && /* @__PURE__ */ jsx(SkeletonRow, {});
72
- $[5] = count;
73
- $[6] = t5;
74
- } else t5 = $[6];
75
- let t6;
76
- if ($[7] !== count) {
77
- t6 = count > 4 && /* @__PURE__ */ jsx(SkeletonRow, {});
78
- $[7] = count;
79
- $[8] = t6;
80
- } else t6 = $[8];
81
- let t7;
82
- if ($[9] !== t3 || $[10] !== t4 || $[11] !== t5 || $[12] !== t6) {
83
- t7 = /* @__PURE__ */ jsxs("div", {
84
- className: "space-y-1",
85
- children: [
86
- t2,
87
- t3,
88
- t4,
89
- t5,
90
- t6
91
- ]
92
- });
93
- $[9] = t3;
94
- $[10] = t4;
95
- $[11] = t5;
96
- $[12] = t6;
97
- $[13] = t7;
98
- } else t7 = $[13];
99
- return t7;
35
+ function RecentItemsWidgetSkeleton({ count = 5 }) {
36
+ return /* @__PURE__ */ jsxs("div", {
37
+ className: "space-y-1",
38
+ children: [
39
+ /* @__PURE__ */ jsx(SkeletonRow, {}),
40
+ count > 1 && /* @__PURE__ */ jsx(SkeletonRow, {}),
41
+ count > 2 && /* @__PURE__ */ jsx(SkeletonRow, {}),
42
+ count > 3 && /* @__PURE__ */ jsx(SkeletonRow, {}),
43
+ count > 4 && /* @__PURE__ */ jsx(SkeletonRow, {})
44
+ ]
45
+ });
100
46
  }
101
47
  function SkeletonRow() {
102
- const $ = c(1);
103
- let t0;
104
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
105
- t0 = /* @__PURE__ */ jsx("div", {
106
- className: "flex items-center gap-3 p-2",
107
- children: /* @__PURE__ */ jsxs("div", {
108
- className: "flex-1 space-y-2",
109
- children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" })]
110
- })
111
- });
112
- $[0] = t0;
113
- } else t0 = $[0];
114
- return t0;
48
+ return /* @__PURE__ */ jsx("div", {
49
+ className: "flex items-center gap-3 p-2",
50
+ children: /* @__PURE__ */ jsxs("div", {
51
+ className: "flex-1 space-y-2",
52
+ children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" })]
53
+ })
54
+ });
115
55
  }
116
- function TableWidgetSkeleton(t0) {
117
- const $ = c(29);
118
- const { rows: t1, columns: t2 } = t0;
119
- const rows = t1 === void 0 ? 5 : t1;
120
- const columns = t2 === void 0 ? 3 : t2;
121
- let t3;
122
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
123
- t3 = /* @__PURE__ */ jsx(Skeleton, {
124
- variant: "text",
125
- className: "h-4 w-24"
126
- });
127
- $[0] = t3;
128
- } else t3 = $[0];
129
- let t4;
130
- if ($[1] !== columns) {
131
- t4 = columns > 1 && /* @__PURE__ */ jsx(Skeleton, {
132
- variant: "text",
133
- className: "h-4 flex-1"
134
- });
135
- $[1] = columns;
136
- $[2] = t4;
137
- } else t4 = $[2];
138
- let t5;
139
- if ($[3] !== columns) {
140
- t5 = columns > 2 && /* @__PURE__ */ jsx(Skeleton, {
141
- variant: "text",
142
- className: "h-4 flex-1"
143
- });
144
- $[3] = columns;
145
- $[4] = t5;
146
- } else t5 = $[4];
147
- let t6;
148
- if ($[5] !== t4 || $[6] !== t5) {
149
- t6 = /* @__PURE__ */ jsxs("div", {
150
- className: "border-border flex gap-4 border-b px-5 py-2",
151
- children: [
152
- t3,
153
- t4,
154
- t5
155
- ]
156
- });
157
- $[5] = t4;
158
- $[6] = t5;
159
- $[7] = t6;
160
- } else t6 = $[7];
161
- let t7;
162
- if ($[8] !== columns) {
163
- t7 = /* @__PURE__ */ jsx(TableSkeletonRow, { columns });
164
- $[8] = columns;
165
- $[9] = t7;
166
- } else t7 = $[9];
167
- let t8;
168
- if ($[10] !== columns || $[11] !== rows) {
169
- t8 = rows > 1 && /* @__PURE__ */ jsx(TableSkeletonRow, { columns });
170
- $[10] = columns;
171
- $[11] = rows;
172
- $[12] = t8;
173
- } else t8 = $[12];
174
- let t9;
175
- if ($[13] !== columns || $[14] !== rows) {
176
- t9 = rows > 2 && /* @__PURE__ */ jsx(TableSkeletonRow, { columns });
177
- $[13] = columns;
178
- $[14] = rows;
179
- $[15] = t9;
180
- } else t9 = $[15];
181
- let t10;
182
- if ($[16] !== columns || $[17] !== rows) {
183
- t10 = rows > 3 && /* @__PURE__ */ jsx(TableSkeletonRow, { columns });
184
- $[16] = columns;
185
- $[17] = rows;
186
- $[18] = t10;
187
- } else t10 = $[18];
188
- let t11;
189
- if ($[19] !== columns || $[20] !== rows) {
190
- t11 = rows > 4 && /* @__PURE__ */ jsx(TableSkeletonRow, {
191
- columns,
192
- last: true
193
- });
194
- $[19] = columns;
195
- $[20] = rows;
196
- $[21] = t11;
197
- } else t11 = $[21];
198
- let t12;
199
- if ($[22] !== t10 || $[23] !== t11 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9) {
200
- t12 = /* @__PURE__ */ jsxs("div", {
201
- className: "-mx-5",
202
- children: [
203
- t6,
204
- t7,
205
- t8,
206
- t9,
207
- t10,
208
- t11
209
- ]
210
- });
211
- $[22] = t10;
212
- $[23] = t11;
213
- $[24] = t6;
214
- $[25] = t7;
215
- $[26] = t8;
216
- $[27] = t9;
217
- $[28] = t12;
218
- } else t12 = $[28];
219
- return t12;
56
+ function TableWidgetSkeleton({ rows = 5, columns = 3 }) {
57
+ return /* @__PURE__ */ jsxs("div", {
58
+ className: "-mx-5",
59
+ children: [
60
+ /* @__PURE__ */ jsxs("div", {
61
+ className: "border-border flex gap-4 border-b px-5 py-2",
62
+ children: [
63
+ /* @__PURE__ */ jsx(Skeleton, {
64
+ variant: "text",
65
+ className: "h-4 w-24"
66
+ }),
67
+ columns > 1 && /* @__PURE__ */ jsx(Skeleton, {
68
+ variant: "text",
69
+ className: "h-4 flex-1"
70
+ }),
71
+ columns > 2 && /* @__PURE__ */ jsx(Skeleton, {
72
+ variant: "text",
73
+ className: "h-4 flex-1"
74
+ })
75
+ ]
76
+ }),
77
+ /* @__PURE__ */ jsx(TableSkeletonRow, { columns }),
78
+ rows > 1 && /* @__PURE__ */ jsx(TableSkeletonRow, { columns }),
79
+ rows > 2 && /* @__PURE__ */ jsx(TableSkeletonRow, { columns }),
80
+ rows > 3 && /* @__PURE__ */ jsx(TableSkeletonRow, { columns }),
81
+ rows > 4 && /* @__PURE__ */ jsx(TableSkeletonRow, {
82
+ columns,
83
+ last: true
84
+ })
85
+ ]
86
+ });
220
87
  }
221
- function TableSkeletonRow(t0) {
222
- const $ = c(11);
223
- const { columns: t1, last: t2 } = t0;
224
- const columns = t1 === void 0 ? 3 : t1;
225
- const t3 = (t2 === void 0 ? false : t2) && "border-0";
226
- let t4;
227
- if ($[0] !== t3) {
228
- t4 = cn("border-border flex gap-4 border-b px-5 py-3", t3);
229
- $[0] = t3;
230
- $[1] = t4;
231
- } else t4 = $[1];
232
- let t5;
233
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
234
- t5 = /* @__PURE__ */ jsx(Skeleton, {
235
- variant: "text",
236
- className: "h-4 w-20"
237
- });
238
- $[2] = t5;
239
- } else t5 = $[2];
240
- let t6;
241
- if ($[3] !== columns) {
242
- t6 = columns > 1 && /* @__PURE__ */ jsx(Skeleton, {
243
- variant: "text",
244
- className: "h-4 flex-1"
245
- });
246
- $[3] = columns;
247
- $[4] = t6;
248
- } else t6 = $[4];
249
- let t7;
250
- if ($[5] !== columns) {
251
- t7 = columns > 2 && /* @__PURE__ */ jsx(Skeleton, {
252
- variant: "text",
253
- className: "h-4 flex-1"
254
- });
255
- $[5] = columns;
256
- $[6] = t7;
257
- } else t7 = $[6];
258
- let t8;
259
- if ($[7] !== t4 || $[8] !== t6 || $[9] !== t7) {
260
- t8 = /* @__PURE__ */ jsxs("div", {
261
- className: t4,
262
- children: [
263
- t5,
264
- t6,
265
- t7
266
- ]
267
- });
268
- $[7] = t4;
269
- $[8] = t6;
270
- $[9] = t7;
271
- $[10] = t8;
272
- } else t8 = $[10];
273
- return t8;
88
+ function TableSkeletonRow({ columns = 3, last = false }) {
89
+ return /* @__PURE__ */ jsxs("div", {
90
+ className: cn("border-border flex gap-4 border-b px-5 py-3", last && "border-0"),
91
+ children: [
92
+ /* @__PURE__ */ jsx(Skeleton, {
93
+ variant: "text",
94
+ className: "h-4 w-20"
95
+ }),
96
+ columns > 1 && /* @__PURE__ */ jsx(Skeleton, {
97
+ variant: "text",
98
+ className: "h-4 flex-1"
99
+ }),
100
+ columns > 2 && /* @__PURE__ */ jsx(Skeleton, {
101
+ variant: "text",
102
+ className: "h-4 flex-1"
103
+ })
104
+ ]
105
+ });
274
106
  }
275
- function TimelineWidgetSkeleton(t0) {
276
- const $ = c(14);
277
- const { count: t1 } = t0;
278
- const count = t1 === void 0 ? 5 : t1;
279
- let t2;
280
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
281
- t2 = /* @__PURE__ */ jsx(TimelineSkeletonItem, {});
282
- $[0] = t2;
283
- } else t2 = $[0];
284
- let t3;
285
- if ($[1] !== count) {
286
- t3 = count > 1 && /* @__PURE__ */ jsx(TimelineSkeletonItem, {});
287
- $[1] = count;
288
- $[2] = t3;
289
- } else t3 = $[2];
290
- let t4;
291
- if ($[3] !== count) {
292
- t4 = count > 2 && /* @__PURE__ */ jsx(TimelineSkeletonItem, {});
293
- $[3] = count;
294
- $[4] = t4;
295
- } else t4 = $[4];
296
- let t5;
297
- if ($[5] !== count) {
298
- t5 = count > 3 && /* @__PURE__ */ jsx(TimelineSkeletonItem, {});
299
- $[5] = count;
300
- $[6] = t5;
301
- } else t5 = $[6];
302
- let t6;
303
- if ($[7] !== count) {
304
- t6 = count > 4 && /* @__PURE__ */ jsx(TimelineSkeletonItem, { last: true });
305
- $[7] = count;
306
- $[8] = t6;
307
- } else t6 = $[8];
308
- let t7;
309
- if ($[9] !== t3 || $[10] !== t4 || $[11] !== t5 || $[12] !== t6) {
310
- t7 = /* @__PURE__ */ jsxs("div", {
311
- className: "space-y-4",
312
- children: [
313
- t2,
314
- t3,
315
- t4,
316
- t5,
317
- t6
318
- ]
319
- });
320
- $[9] = t3;
321
- $[10] = t4;
322
- $[11] = t5;
323
- $[12] = t6;
324
- $[13] = t7;
325
- } else t7 = $[13];
326
- return t7;
107
+ function TimelineWidgetSkeleton({ count = 5 }) {
108
+ return /* @__PURE__ */ jsxs("div", {
109
+ className: "space-y-4",
110
+ children: [
111
+ /* @__PURE__ */ jsx(TimelineSkeletonItem, {}),
112
+ count > 1 && /* @__PURE__ */ jsx(TimelineSkeletonItem, {}),
113
+ count > 2 && /* @__PURE__ */ jsx(TimelineSkeletonItem, {}),
114
+ count > 3 && /* @__PURE__ */ jsx(TimelineSkeletonItem, {}),
115
+ count > 4 && /* @__PURE__ */ jsx(TimelineSkeletonItem, { last: true })
116
+ ]
117
+ });
327
118
  }
328
- function TimelineSkeletonItem(t0) {
329
- const $ = c(8);
330
- const { last: t1 } = t0;
331
- const last = t1 === void 0 ? false : t1;
332
- let t2;
333
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
334
- t2 = /* @__PURE__ */ jsx(Skeleton, {
335
- variant: "avatar",
336
- className: "h-3 w-3"
337
- });
338
- $[0] = t2;
339
- } else t2 = $[0];
340
- let t3;
341
- if ($[1] !== last) {
342
- t3 = !last && /* @__PURE__ */ jsx(Skeleton, { className: "mt-1 w-0.5 flex-1" });
343
- $[1] = last;
344
- $[2] = t3;
345
- } else t3 = $[2];
346
- let t4;
347
- if ($[3] !== t3) {
348
- t4 = /* @__PURE__ */ jsxs("div", {
119
+ function TimelineSkeletonItem({ last = false }) {
120
+ return /* @__PURE__ */ jsxs("div", {
121
+ className: "flex gap-3",
122
+ children: [/* @__PURE__ */ jsxs("div", {
349
123
  className: "flex flex-col items-center",
350
- children: [t2, t3]
351
- });
352
- $[3] = t3;
353
- $[4] = t4;
354
- } else t4 = $[4];
355
- let t5;
356
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
357
- t5 = /* @__PURE__ */ jsxs("div", {
124
+ children: [/* @__PURE__ */ jsx(Skeleton, {
125
+ variant: "avatar",
126
+ className: "h-3 w-3"
127
+ }), !last && /* @__PURE__ */ jsx(Skeleton, { className: "mt-1 w-0.5 flex-1" })]
128
+ }), /* @__PURE__ */ jsxs("div", {
358
129
  className: "flex-1 space-y-1 pb-4",
359
130
  children: [
360
131
  /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }),
361
132
  /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" }),
362
133
  /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-20" })
363
134
  ]
364
- });
365
- $[5] = t5;
366
- } else t5 = $[5];
367
- let t6;
368
- if ($[6] !== t4) {
369
- t6 = /* @__PURE__ */ jsxs("div", {
370
- className: "flex gap-3",
371
- children: [t4, t5]
372
- });
373
- $[6] = t4;
374
- $[7] = t6;
375
- } else t6 = $[7];
376
- return t6;
135
+ })]
136
+ });
377
137
  }
378
138
  function ProgressWidgetSkeleton() {
379
- const $ = c(1);
380
- let t0;
381
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
382
- t0 = /* @__PURE__ */ jsxs("div", {
383
- className: "space-y-3",
384
- children: [
385
- /* @__PURE__ */ jsxs("div", {
386
- className: "flex items-center justify-between",
387
- children: [/* @__PURE__ */ jsx(Skeleton, {
388
- variant: "text",
389
- className: "h-4 w-32"
390
- }), /* @__PURE__ */ jsx(Skeleton, {
391
- variant: "text",
392
- className: "h-4 w-12"
393
- })]
394
- }),
395
- /* @__PURE__ */ jsx(Skeleton, {
396
- variant: "chip",
397
- className: "h-2 w-full"
398
- }),
399
- /* @__PURE__ */ jsx(Skeleton, {
139
+ return /* @__PURE__ */ jsxs("div", {
140
+ className: "space-y-3",
141
+ children: [
142
+ /* @__PURE__ */ jsxs("div", {
143
+ className: "flex items-center justify-between",
144
+ children: [/* @__PURE__ */ jsx(Skeleton, {
400
145
  variant: "text",
401
- className: "h-3 w-24"
402
- })
403
- ]
404
- });
405
- $[0] = t0;
406
- } else t0 = $[0];
407
- return t0;
146
+ className: "h-4 w-32"
147
+ }), /* @__PURE__ */ jsx(Skeleton, {
148
+ variant: "text",
149
+ className: "h-4 w-12"
150
+ })]
151
+ }),
152
+ /* @__PURE__ */ jsx(Skeleton, {
153
+ variant: "chip",
154
+ className: "h-2 w-full"
155
+ }),
156
+ /* @__PURE__ */ jsx(Skeleton, {
157
+ variant: "text",
158
+ className: "h-3 w-24"
159
+ })
160
+ ]
161
+ });
408
162
  }
409
- function ValueWidgetSkeleton(t0) {
410
- const $ = c(9);
411
- const { featured: t1 } = t0;
412
- const featured = t1 === void 0 ? false : t1;
413
- let t2;
414
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
415
- t2 = /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 shrink-0" });
416
- $[0] = t2;
417
- } else t2 = $[0];
418
- let t3;
419
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
420
- t3 = /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" });
421
- $[1] = t3;
422
- } else t3 = $[1];
423
- const t4 = featured ? "w-40" : "w-24";
424
- let t5;
425
- if ($[2] !== t4) {
426
- t5 = cn("h-8", t4);
427
- $[2] = t4;
428
- $[3] = t5;
429
- } else t5 = $[3];
430
- let t6;
431
- if ($[4] !== t5) {
432
- t6 = /* @__PURE__ */ jsxs("div", {
163
+ function ValueWidgetSkeleton({ featured = false }) {
164
+ return /* @__PURE__ */ jsxs("div", {
165
+ className: "space-y-3",
166
+ children: [/* @__PURE__ */ jsxs("div", {
433
167
  className: "flex items-start gap-3",
434
- children: [t2, /* @__PURE__ */ jsxs("div", {
168
+ children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 shrink-0" }), /* @__PURE__ */ jsxs("div", {
435
169
  className: "flex-1 space-y-2",
436
- children: [t3, /* @__PURE__ */ jsx(Skeleton, { className: t5 })]
170
+ children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }), /* @__PURE__ */ jsx(Skeleton, { className: cn("h-8", featured ? "w-40" : "w-24") })]
437
171
  })]
438
- });
439
- $[4] = t5;
440
- $[5] = t6;
441
- } else t6 = $[5];
442
- let t7;
443
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
444
- t7 = /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-32" });
445
- $[6] = t7;
446
- } else t7 = $[6];
447
- let t8;
448
- if ($[7] !== t6) {
449
- t8 = /* @__PURE__ */ jsxs("div", {
450
- className: "space-y-3",
451
- children: [t6, t7]
452
- });
453
- $[7] = t6;
454
- $[8] = t8;
455
- } else t8 = $[8];
456
- return t8;
172
+ }), /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-32" })]
173
+ });
457
174
  }
458
175
 
459
176
  //#endregion