@kivacore/ui-pro-shared 0.0.9 → 0.0.10

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 (145) hide show
  1. package/package.json +187 -21
  2. package/src/.kiva/config.json +27 -0
  3. package/src/components/avatar-group.tsx +222 -0
  4. package/src/components/kiva/bulk-update-dialog/bulk-update-dialog.tsx +240 -0
  5. package/src/components/kiva/bulk-update-dialog/index.tsx +6 -0
  6. package/src/components/kiva/bulk-update-dialog/types.ts +33 -0
  7. package/src/components/kiva/calendar/animations.ts +40 -0
  8. package/src/components/kiva/calendar/calendar-body.tsx +106 -0
  9. package/src/components/kiva/calendar/calendar-sidebar.tsx +103 -0
  10. package/src/components/kiva/calendar/calendar.tsx +243 -0
  11. package/src/components/kiva/calendar/constants.ts +12 -0
  12. package/src/components/kiva/calendar/contexts/calendar-context.tsx +696 -0
  13. package/src/components/kiva/calendar/contexts/dnd-context.tsx +173 -0
  14. package/src/components/kiva/calendar/dialogs/add-edit-event-dialog.tsx +287 -0
  15. package/src/components/kiva/calendar/dialogs/delete-event-dialog.tsx +73 -0
  16. package/src/components/kiva/calendar/dialogs/event-details-dialog.tsx +163 -0
  17. package/src/components/kiva/calendar/dialogs/events-list-dialog.tsx +122 -0
  18. package/src/components/kiva/calendar/dnd/draggable-event.tsx +66 -0
  19. package/src/components/kiva/calendar/dnd/droppable-area.tsx +53 -0
  20. package/src/components/kiva/calendar/dnd/resizable-event.tsx +190 -0
  21. package/src/components/kiva/calendar/header/calendar-header.tsx +84 -0
  22. package/src/components/kiva/calendar/header/date-navigator.tsx +188 -0
  23. package/src/components/kiva/calendar/header/filter.tsx +80 -0
  24. package/src/components/kiva/calendar/header/today-button.tsx +49 -0
  25. package/src/components/kiva/calendar/header/user-select.tsx +111 -0
  26. package/src/components/kiva/calendar/header/view-tabs.tsx +144 -0
  27. package/src/components/kiva/calendar/helpers.ts +617 -0
  28. package/src/components/kiva/calendar/hooks/use-disclosure.ts +19 -0
  29. package/src/components/kiva/calendar/hooks/use-local-storage.ts +40 -0
  30. package/src/components/kiva/calendar/hooks/use-media-query.ts +25 -0
  31. package/src/components/kiva/calendar/hooks.ts +5 -0
  32. package/src/components/kiva/calendar/index.tsx +27 -0
  33. package/src/components/kiva/calendar/interfaces.ts +35 -0
  34. package/src/components/kiva/calendar/schemas.ts +20 -0
  35. package/src/components/kiva/calendar/settings/settings.tsx +116 -0
  36. package/src/components/kiva/calendar/skeletons/calendar-header-skeleton.tsx +27 -0
  37. package/src/components/kiva/calendar/skeletons/calendar-skeleton.tsx +19 -0
  38. package/src/components/kiva/calendar/skeletons/day-view-skeleton.tsx +40 -0
  39. package/src/components/kiva/calendar/skeletons/month-view-skeleton.tsx +36 -0
  40. package/src/components/kiva/calendar/skeletons/week-view-skeleton.tsx +48 -0
  41. package/src/components/kiva/calendar/skeletons/year-view-skeleton.tsx +42 -0
  42. package/src/components/kiva/calendar/types.ts +25 -0
  43. package/src/components/kiva/calendar/views/agenda-view/agenda-events.tsx +150 -0
  44. package/src/components/kiva/calendar/views/month-view/calendar-month-view.tsx +82 -0
  45. package/src/components/kiva/calendar/views/month-view/day-cell.tsx +218 -0
  46. package/src/components/kiva/calendar/views/month-view/event-bullet.tsx +46 -0
  47. package/src/components/kiva/calendar/views/month-view/month-event-badge.tsx +154 -0
  48. package/src/components/kiva/calendar/views/timeline/calendar-timeline-view.tsx +100 -0
  49. package/src/components/kiva/calendar/views/timeline/lib/timeline-layout.ts +130 -0
  50. package/src/components/kiva/calendar/views/timeline/lib/timeline-model.ts +504 -0
  51. package/src/components/kiva/calendar/views/timeline/timeline-event-bar.tsx +68 -0
  52. package/src/components/kiva/calendar/views/timeline/timeline-grid-header.tsx +125 -0
  53. package/src/components/kiva/calendar/views/timeline/timeline-row.tsx +159 -0
  54. package/src/components/kiva/calendar/views/timeline/timeline-section.tsx +61 -0
  55. package/src/components/kiva/calendar/views/timeline/use-timeline-sections.ts +278 -0
  56. package/src/components/kiva/calendar/views/week-and-day-view/calendar-day-view.tsx +277 -0
  57. package/src/components/kiva/calendar/views/week-and-day-view/calendar-time-line.tsx +47 -0
  58. package/src/components/kiva/calendar/views/week-and-day-view/calendar-week-view.tsx +229 -0
  59. package/src/components/kiva/calendar/views/week-and-day-view/day-view-multi-day-events-row.tsx +79 -0
  60. package/src/components/kiva/calendar/views/week-and-day-view/event-block.tsx +116 -0
  61. package/src/components/kiva/calendar/views/week-and-day-view/render-grouped-events.tsx +54 -0
  62. package/src/components/kiva/calendar/views/week-and-day-view/week-view-multi-day-events-row.tsx +159 -0
  63. package/src/components/kiva/calendar/views/year-view/calendar-year-view.tsx +159 -0
  64. package/src/components/kiva/data-table-side-filters/components/side-filter-active-chips.tsx +137 -0
  65. package/src/components/kiva/data-table-side-filters/components/side-filter-clear.tsx +34 -0
  66. package/src/components/kiva/data-table-side-filters/components/side-filter-search.tsx +67 -0
  67. package/src/components/kiva/data-table-side-filters/components/side-filter-section.tsx +77 -0
  68. package/src/components/kiva/data-table-side-filters/controllers/side-filter-async-options.tsx +354 -0
  69. package/src/components/kiva/data-table-side-filters/controllers/side-filter-boolean.tsx +66 -0
  70. package/src/components/kiva/data-table-side-filters/controllers/side-filter-checkbox-list.tsx +137 -0
  71. package/src/components/kiva/data-table-side-filters/controllers/side-filter-date-range.tsx +204 -0
  72. package/src/components/kiva/data-table-side-filters/controllers/side-filter-numeric-range.tsx +162 -0
  73. package/src/components/kiva/data-table-side-filters/controllers/side-filter-options-dropdown.tsx +191 -0
  74. package/src/components/kiva/data-table-side-filters/controllers/side-filter-text.tsx +53 -0
  75. package/src/components/kiva/data-table-side-filters/core/query-translator.ts +367 -0
  76. package/src/components/kiva/data-table-side-filters/core/types.ts +81 -0
  77. package/src/components/kiva/data-table-side-filters/data-table-side-filters.tsx +483 -0
  78. package/src/components/kiva/data-table-side-filters/hooks/use-data-table-side-filters.tsx +160 -0
  79. package/src/components/kiva/data-table-side-filters/hooks/use-show-more.tsx +62 -0
  80. package/src/components/kiva/data-table-side-filters/index.tsx +44 -0
  81. package/src/components/kiva/data-table-side-filters/lib/render-mode.ts +62 -0
  82. package/src/components/kiva/date-time-picker.tsx +163 -0
  83. package/src/components/kiva/editable-record-detail.tsx +809 -0
  84. package/src/components/kiva/enum-option-editor/enum-option-editor.tsx +891 -0
  85. package/src/components/kiva/enum-option-editor/index.tsx +26 -0
  86. package/src/components/kiva/enum-option-editor/kiva-enum-option-editor.tsx +320 -0
  87. package/src/components/kiva/enum-option-editor/types.ts +90 -0
  88. package/src/components/kiva/kanban.tsx +1376 -0
  89. package/src/components/kiva/kiva-data-export-menu.tsx +543 -0
  90. package/src/components/kiva/map.tsx +1631 -0
  91. package/src/components/kiva/pivot-calendar/components/group-sidebar.tsx +95 -0
  92. package/src/components/kiva/pivot-calendar/components/pivot-calendar-toolbar.tsx +113 -0
  93. package/src/components/kiva/pivot-calendar/components/stats-cell.tsx +126 -0
  94. package/src/components/kiva/pivot-calendar/helpers.ts +374 -0
  95. package/src/components/kiva/pivot-calendar/hooks/use-pivot-calendar.ts +222 -0
  96. package/src/components/kiva/pivot-calendar/index.tsx +32 -0
  97. package/src/components/kiva/pivot-calendar/pivot-calendar.tsx +107 -0
  98. package/src/components/kiva/pivot-calendar/types.ts +154 -0
  99. package/src/components/kiva/pivot-calendar/views/days-of-month-view.tsx +37 -0
  100. package/src/components/kiva/pivot-calendar/views/days-of-week-view.tsx +37 -0
  101. package/src/components/kiva/pivot-calendar/views/month-calendar-view.tsx +154 -0
  102. package/src/components/kiva/pivot-calendar/views/months-of-year-view.tsx +40 -0
  103. package/src/components/kiva/pivot-calendar/views/pivot-grid-view.tsx +251 -0
  104. package/src/components/kiva/pivot-filter/index.tsx +9 -0
  105. package/src/components/kiva/pivot-filter/pivot-filter-item.tsx +159 -0
  106. package/src/components/kiva/pivot-filter/pivot-filter-settings.tsx +161 -0
  107. package/src/components/kiva/pivot-filter/pivot-filter.tsx +187 -0
  108. package/src/components/kiva/pivot-filter/types.ts +82 -0
  109. package/src/components/kiva/pivot-grid/hooks/use-pivot-grid.ts +683 -0
  110. package/src/components/kiva/pivot-grid/index.tsx +23 -0
  111. package/src/components/kiva/pivot-grid/lib/pivot-grid-color-rules.ts +98 -0
  112. package/src/components/kiva/pivot-grid/lib/pivot-grid-export.ts +265 -0
  113. package/src/components/kiva/pivot-grid/lib/pivot-grid-model.ts +1110 -0
  114. package/src/components/kiva/pivot-grid/pivot-grid-demo-data.ts +200 -0
  115. package/src/components/kiva/pivot-grid/pivot-grid-export-menu.tsx +66 -0
  116. package/src/components/kiva/pivot-grid/pivot-grid-toolbar.tsx +85 -0
  117. package/src/components/kiva/pivot-grid/pivot-grid.tsx +601 -0
  118. package/src/components/kiva/pivot-grid/types.ts +195 -0
  119. package/src/components/kiva/place-autocomplete.tsx +484 -0
  120. package/src/components/kiva/record-delete-confirm-dialog/index.tsx +10 -0
  121. package/src/components/kiva/record-delete-confirm-dialog/record-delete-confirm-dialog.tsx +266 -0
  122. package/src/components/kiva/record-delete-confirm-dialog/types.ts +25 -0
  123. package/src/hooks/kiva/_internal/autonumber-setting.ts +112 -0
  124. package/src/hooks/kiva/_internal/form-layout-to-view.ts +665 -0
  125. package/src/hooks/kiva/_internal/kiva-hook-utils.ts +143 -0
  126. package/src/hooks/kiva/_internal/use-computed-field-evaluator.tsx +310 -0
  127. package/src/hooks/kiva/_internal/use-field-actions-evaluator.tsx +398 -0
  128. package/src/hooks/kiva/_internal/use-form-actions-evaluator.tsx +363 -0
  129. package/src/hooks/kiva/_internal/use-form-view-engine.tsx +2200 -0
  130. package/src/hooks/kiva/_internal/use-kiva-form-view-fields.tsx +190 -0
  131. package/src/hooks/kiva/_internal/use-kiva-kanban-cards.tsx +311 -0
  132. package/src/hooks/kiva/use-data-export.tsx +265 -0
  133. package/src/hooks/kiva/use-kiva-calendar.tsx +992 -0
  134. package/src/hooks/kiva/use-kiva-data-export.tsx +173 -0
  135. package/src/hooks/kiva/use-kiva-data-grid.tsx +4750 -0
  136. package/src/hooks/kiva/use-kiva-data-view-select.tsx +1273 -0
  137. package/src/hooks/kiva/use-kiva-form-view.tsx +1581 -0
  138. package/src/hooks/kiva/use-kiva-inventory.tsx +184 -0
  139. package/src/hooks/kiva/use-kiva-kanban.tsx +1750 -0
  140. package/src/hooks/kiva/use-kiva-map-view.tsx +2255 -0
  141. package/src/hooks/kiva/use-kiva-pivot-calendar.tsx +759 -0
  142. package/src/hooks/kiva/use-kiva-pivot-filter.tsx +1523 -0
  143. package/src/hooks/kiva/use-kiva-pivot-grid.tsx +543 -0
  144. package/src/hooks/kiva/use-kiva-tenant.tsx +313 -0
  145. package/src/hooks/kiva/use-parameter-persistence.ts +191 -0
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@kivacore/ui-pro-shared",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Kiva UI component library",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "src"
8
8
  ],
9
+ "scripts": {
10
+ "build": "tsc --noEmit",
11
+ "typecheck": "tsc --noEmit",
12
+ "lint": "eslint src/",
13
+ "sync:exports": "node scripts/sync-exports.mjs"
14
+ },
9
15
  "exports": {
10
16
  ".": "./src/index.ts",
11
17
  "./hooks": "./src/hooks/index.ts",
@@ -111,6 +117,7 @@
111
117
  "./components/alert-dialog": "./src/components/alert-dialog.tsx",
112
118
  "./components/aspect-ratio": "./src/components/aspect-ratio.tsx",
113
119
  "./components/avatar": "./src/components/avatar.tsx",
120
+ "./components/avatar-group": "./src/components/avatar-group.tsx",
114
121
  "./components/badge": "./src/components/badge.tsx",
115
122
  "./components/breadcrumb": "./src/components/breadcrumb.tsx",
116
123
  "./components/button": "./src/components/button.tsx",
@@ -413,6 +420,68 @@
413
420
  "./components/kiva/awesome-dialog/hooks/use-local-storage": "./src/components/kiva/awesome-dialog/hooks/use-local-storage.ts",
414
421
  "./components/kiva/awesome-dialog/index": "./src/components/kiva/awesome-dialog/index.tsx",
415
422
  "./components/kiva/awesome-dialog/types": "./src/components/kiva/awesome-dialog/types.ts",
423
+ "./components/kiva/bulk-update-dialog": "./src/components/kiva/bulk-update-dialog/index.tsx",
424
+ "./components/kiva/bulk-update-dialog/bulk-update-dialog": "./src/components/kiva/bulk-update-dialog/bulk-update-dialog.tsx",
425
+ "./components/kiva/bulk-update-dialog/index": "./src/components/kiva/bulk-update-dialog/index.tsx",
426
+ "./components/kiva/bulk-update-dialog/types": "./src/components/kiva/bulk-update-dialog/types.ts",
427
+ "./components/kiva/calendar": "./src/components/kiva/calendar/index.tsx",
428
+ "./components/kiva/calendar/animations": "./src/components/kiva/calendar/animations.ts",
429
+ "./components/kiva/calendar/calendar": "./src/components/kiva/calendar/calendar.tsx",
430
+ "./components/kiva/calendar/calendar-body": "./src/components/kiva/calendar/calendar-body.tsx",
431
+ "./components/kiva/calendar/calendar-sidebar": "./src/components/kiva/calendar/calendar-sidebar.tsx",
432
+ "./components/kiva/calendar/constants": "./src/components/kiva/calendar/constants.ts",
433
+ "./components/kiva/calendar/contexts/calendar-context": "./src/components/kiva/calendar/contexts/calendar-context.tsx",
434
+ "./components/kiva/calendar/contexts/dnd-context": "./src/components/kiva/calendar/contexts/dnd-context.tsx",
435
+ "./components/kiva/calendar/dialogs/add-edit-event-dialog": "./src/components/kiva/calendar/dialogs/add-edit-event-dialog.tsx",
436
+ "./components/kiva/calendar/dialogs/delete-event-dialog": "./src/components/kiva/calendar/dialogs/delete-event-dialog.tsx",
437
+ "./components/kiva/calendar/dialogs/event-details-dialog": "./src/components/kiva/calendar/dialogs/event-details-dialog.tsx",
438
+ "./components/kiva/calendar/dialogs/events-list-dialog": "./src/components/kiva/calendar/dialogs/events-list-dialog.tsx",
439
+ "./components/kiva/calendar/dnd/draggable-event": "./src/components/kiva/calendar/dnd/draggable-event.tsx",
440
+ "./components/kiva/calendar/dnd/droppable-area": "./src/components/kiva/calendar/dnd/droppable-area.tsx",
441
+ "./components/kiva/calendar/dnd/resizable-event": "./src/components/kiva/calendar/dnd/resizable-event.tsx",
442
+ "./components/kiva/calendar/header/calendar-header": "./src/components/kiva/calendar/header/calendar-header.tsx",
443
+ "./components/kiva/calendar/header/date-navigator": "./src/components/kiva/calendar/header/date-navigator.tsx",
444
+ "./components/kiva/calendar/header/filter": "./src/components/kiva/calendar/header/filter.tsx",
445
+ "./components/kiva/calendar/header/today-button": "./src/components/kiva/calendar/header/today-button.tsx",
446
+ "./components/kiva/calendar/header/user-select": "./src/components/kiva/calendar/header/user-select.tsx",
447
+ "./components/kiva/calendar/header/view-tabs": "./src/components/kiva/calendar/header/view-tabs.tsx",
448
+ "./components/kiva/calendar/helpers": "./src/components/kiva/calendar/helpers.ts",
449
+ "./components/kiva/calendar/hooks": "./src/components/kiva/calendar/hooks.ts",
450
+ "./components/kiva/calendar/hooks/use-disclosure": "./src/components/kiva/calendar/hooks/use-disclosure.ts",
451
+ "./components/kiva/calendar/hooks/use-local-storage": "./src/components/kiva/calendar/hooks/use-local-storage.ts",
452
+ "./components/kiva/calendar/hooks/use-media-query": "./src/components/kiva/calendar/hooks/use-media-query.ts",
453
+ "./components/kiva/calendar/index": "./src/components/kiva/calendar/index.tsx",
454
+ "./components/kiva/calendar/interfaces": "./src/components/kiva/calendar/interfaces.ts",
455
+ "./components/kiva/calendar/schemas": "./src/components/kiva/calendar/schemas.ts",
456
+ "./components/kiva/calendar/settings/settings": "./src/components/kiva/calendar/settings/settings.tsx",
457
+ "./components/kiva/calendar/skeletons/calendar-header-skeleton": "./src/components/kiva/calendar/skeletons/calendar-header-skeleton.tsx",
458
+ "./components/kiva/calendar/skeletons/calendar-skeleton": "./src/components/kiva/calendar/skeletons/calendar-skeleton.tsx",
459
+ "./components/kiva/calendar/skeletons/day-view-skeleton": "./src/components/kiva/calendar/skeletons/day-view-skeleton.tsx",
460
+ "./components/kiva/calendar/skeletons/month-view-skeleton": "./src/components/kiva/calendar/skeletons/month-view-skeleton.tsx",
461
+ "./components/kiva/calendar/skeletons/week-view-skeleton": "./src/components/kiva/calendar/skeletons/week-view-skeleton.tsx",
462
+ "./components/kiva/calendar/skeletons/year-view-skeleton": "./src/components/kiva/calendar/skeletons/year-view-skeleton.tsx",
463
+ "./components/kiva/calendar/types": "./src/components/kiva/calendar/types.ts",
464
+ "./components/kiva/calendar/views/agenda-view/agenda-events": "./src/components/kiva/calendar/views/agenda-view/agenda-events.tsx",
465
+ "./components/kiva/calendar/views/month-view/calendar-month-view": "./src/components/kiva/calendar/views/month-view/calendar-month-view.tsx",
466
+ "./components/kiva/calendar/views/month-view/day-cell": "./src/components/kiva/calendar/views/month-view/day-cell.tsx",
467
+ "./components/kiva/calendar/views/month-view/event-bullet": "./src/components/kiva/calendar/views/month-view/event-bullet.tsx",
468
+ "./components/kiva/calendar/views/month-view/month-event-badge": "./src/components/kiva/calendar/views/month-view/month-event-badge.tsx",
469
+ "./components/kiva/calendar/views/timeline/calendar-timeline-view": "./src/components/kiva/calendar/views/timeline/calendar-timeline-view.tsx",
470
+ "./components/kiva/calendar/views/timeline/lib/timeline-layout": "./src/components/kiva/calendar/views/timeline/lib/timeline-layout.ts",
471
+ "./components/kiva/calendar/views/timeline/lib/timeline-model": "./src/components/kiva/calendar/views/timeline/lib/timeline-model.ts",
472
+ "./components/kiva/calendar/views/timeline/timeline-event-bar": "./src/components/kiva/calendar/views/timeline/timeline-event-bar.tsx",
473
+ "./components/kiva/calendar/views/timeline/timeline-grid-header": "./src/components/kiva/calendar/views/timeline/timeline-grid-header.tsx",
474
+ "./components/kiva/calendar/views/timeline/timeline-row": "./src/components/kiva/calendar/views/timeline/timeline-row.tsx",
475
+ "./components/kiva/calendar/views/timeline/timeline-section": "./src/components/kiva/calendar/views/timeline/timeline-section.tsx",
476
+ "./components/kiva/calendar/views/timeline/use-timeline-sections": "./src/components/kiva/calendar/views/timeline/use-timeline-sections.ts",
477
+ "./components/kiva/calendar/views/week-and-day-view/calendar-day-view": "./src/components/kiva/calendar/views/week-and-day-view/calendar-day-view.tsx",
478
+ "./components/kiva/calendar/views/week-and-day-view/calendar-time-line": "./src/components/kiva/calendar/views/week-and-day-view/calendar-time-line.tsx",
479
+ "./components/kiva/calendar/views/week-and-day-view/calendar-week-view": "./src/components/kiva/calendar/views/week-and-day-view/calendar-week-view.tsx",
480
+ "./components/kiva/calendar/views/week-and-day-view/day-view-multi-day-events-row": "./src/components/kiva/calendar/views/week-and-day-view/day-view-multi-day-events-row.tsx",
481
+ "./components/kiva/calendar/views/week-and-day-view/event-block": "./src/components/kiva/calendar/views/week-and-day-view/event-block.tsx",
482
+ "./components/kiva/calendar/views/week-and-day-view/render-grouped-events": "./src/components/kiva/calendar/views/week-and-day-view/render-grouped-events.tsx",
483
+ "./components/kiva/calendar/views/week-and-day-view/week-view-multi-day-events-row": "./src/components/kiva/calendar/views/week-and-day-view/week-view-multi-day-events-row.tsx",
484
+ "./components/kiva/calendar/views/year-view/calendar-year-view": "./src/components/kiva/calendar/views/year-view/calendar-year-view.tsx",
416
485
  "./components/kiva/contact-channels-field": "./src/components/kiva/contact-channels-field/index.tsx",
417
486
  "./components/kiva/contact-channels-field/channel-detail": "./src/components/kiva/contact-channels-field/channel-detail.tsx",
418
487
  "./components/kiva/contact-channels-field/channel-editor": "./src/components/kiva/contact-channels-field/channel-editor.tsx",
@@ -509,6 +578,26 @@
509
578
  "./components/kiva/data-table-filter/lib/i18n": "./src/components/kiva/data-table-filter/lib/i18n.ts",
510
579
  "./components/kiva/data-table-filter/lib/memo": "./src/components/kiva/data-table-filter/lib/memo.ts",
511
580
  "./components/kiva/data-table-filter/ui/debounced-input": "./src/components/kiva/data-table-filter/ui/debounced-input.tsx",
581
+ "./components/kiva/data-table-side-filters": "./src/components/kiva/data-table-side-filters/index.tsx",
582
+ "./components/kiva/data-table-side-filters/components/side-filter-active-chips": "./src/components/kiva/data-table-side-filters/components/side-filter-active-chips.tsx",
583
+ "./components/kiva/data-table-side-filters/components/side-filter-clear": "./src/components/kiva/data-table-side-filters/components/side-filter-clear.tsx",
584
+ "./components/kiva/data-table-side-filters/components/side-filter-search": "./src/components/kiva/data-table-side-filters/components/side-filter-search.tsx",
585
+ "./components/kiva/data-table-side-filters/components/side-filter-section": "./src/components/kiva/data-table-side-filters/components/side-filter-section.tsx",
586
+ "./components/kiva/data-table-side-filters/controllers/side-filter-async-options": "./src/components/kiva/data-table-side-filters/controllers/side-filter-async-options.tsx",
587
+ "./components/kiva/data-table-side-filters/controllers/side-filter-boolean": "./src/components/kiva/data-table-side-filters/controllers/side-filter-boolean.tsx",
588
+ "./components/kiva/data-table-side-filters/controllers/side-filter-checkbox-list": "./src/components/kiva/data-table-side-filters/controllers/side-filter-checkbox-list.tsx",
589
+ "./components/kiva/data-table-side-filters/controllers/side-filter-date-range": "./src/components/kiva/data-table-side-filters/controllers/side-filter-date-range.tsx",
590
+ "./components/kiva/data-table-side-filters/controllers/side-filter-numeric-range": "./src/components/kiva/data-table-side-filters/controllers/side-filter-numeric-range.tsx",
591
+ "./components/kiva/data-table-side-filters/controllers/side-filter-options-dropdown": "./src/components/kiva/data-table-side-filters/controllers/side-filter-options-dropdown.tsx",
592
+ "./components/kiva/data-table-side-filters/controllers/side-filter-text": "./src/components/kiva/data-table-side-filters/controllers/side-filter-text.tsx",
593
+ "./components/kiva/data-table-side-filters/core/query-translator": "./src/components/kiva/data-table-side-filters/core/query-translator.ts",
594
+ "./components/kiva/data-table-side-filters/core/types": "./src/components/kiva/data-table-side-filters/core/types.ts",
595
+ "./components/kiva/data-table-side-filters/data-table-side-filters": "./src/components/kiva/data-table-side-filters/data-table-side-filters.tsx",
596
+ "./components/kiva/data-table-side-filters/hooks/use-data-table-side-filters": "./src/components/kiva/data-table-side-filters/hooks/use-data-table-side-filters.tsx",
597
+ "./components/kiva/data-table-side-filters/hooks/use-show-more": "./src/components/kiva/data-table-side-filters/hooks/use-show-more.tsx",
598
+ "./components/kiva/data-table-side-filters/index": "./src/components/kiva/data-table-side-filters/index.tsx",
599
+ "./components/kiva/data-table-side-filters/lib/render-mode": "./src/components/kiva/data-table-side-filters/lib/render-mode.ts",
600
+ "./components/kiva/date-time-picker": "./src/components/kiva/date-time-picker.tsx",
512
601
  "./components/kiva/dsql-editor": "./src/components/kiva/dsql-editor/index.tsx",
513
602
  "./components/kiva/dsql-editor/dsql-code-editor": "./src/components/kiva/dsql-editor/dsql-code-editor.tsx",
514
603
  "./components/kiva/dsql-editor/dsql-editor": "./src/components/kiva/dsql-editor/dsql-editor.tsx",
@@ -525,6 +614,7 @@
525
614
  "./components/kiva/dsql-editor/use-apply-dsql": "./src/components/kiva/dsql-editor/use-apply-dsql.tsx",
526
615
  "./components/kiva/dsql-editor/use-dsql-schema": "./src/components/kiva/dsql-editor/use-dsql-schema.tsx",
527
616
  "./components/kiva/duration-select": "./src/components/kiva/duration-select.tsx",
617
+ "./components/kiva/editable-record-detail": "./src/components/kiva/editable-record-detail.tsx",
528
618
  "./components/kiva/editable-value": "./src/components/kiva/editable-value.tsx",
529
619
  "./components/kiva/editor-agent": "./src/components/kiva/editor-agent/index.tsx",
530
620
  "./components/kiva/editor-agent/cody-agent-toggle": "./src/components/kiva/editor-agent/cody-agent-toggle.tsx",
@@ -545,6 +635,11 @@
545
635
  "./components/kiva/emoji-picker/index": "./src/components/kiva/emoji-picker/index.tsx",
546
636
  "./components/kiva/emoji-picker/lib/emoji-data": "./src/components/kiva/emoji-picker/lib/emoji-data.ts",
547
637
  "./components/kiva/emoji-picker/types": "./src/components/kiva/emoji-picker/types.ts",
638
+ "./components/kiva/enum-option-editor": "./src/components/kiva/enum-option-editor/index.tsx",
639
+ "./components/kiva/enum-option-editor/enum-option-editor": "./src/components/kiva/enum-option-editor/enum-option-editor.tsx",
640
+ "./components/kiva/enum-option-editor/index": "./src/components/kiva/enum-option-editor/index.tsx",
641
+ "./components/kiva/enum-option-editor/kiva-enum-option-editor": "./src/components/kiva/enum-option-editor/kiva-enum-option-editor.tsx",
642
+ "./components/kiva/enum-option-editor/types": "./src/components/kiva/enum-option-editor/types.ts",
548
643
  "./components/kiva/form-fields": "./src/components/kiva/form-fields/index.tsx",
549
644
  "./components/kiva/form-fields/adaptive-card-form-field": "./src/components/kiva/form-fields/adaptive-card-form-field.tsx",
550
645
  "./components/kiva/form-fields/approval-status-form-field": "./src/components/kiva/form-fields/approval-status-form-field.tsx",
@@ -664,6 +759,7 @@
664
759
  "./components/kiva/jsonata-editor/lib/jsonata-language": "./src/components/kiva/jsonata-editor/lib/jsonata-language.ts",
665
760
  "./components/kiva/jsonata-editor/use-apply-jsonata": "./src/components/kiva/jsonata-editor/use-apply-jsonata.tsx",
666
761
  "./components/kiva/jsonata-editor/use-jsonata": "./src/components/kiva/jsonata-editor/use-jsonata.ts",
762
+ "./components/kiva/kanban": "./src/components/kiva/kanban.tsx",
667
763
  "./components/kiva/kiva-agent": "./src/components/kiva/kiva-agent/index.tsx",
668
764
  "./components/kiva/kiva-agent/index": "./src/components/kiva/kiva-agent/index.tsx",
669
765
  "./components/kiva/kiva-agent/kiva-agent": "./src/components/kiva/kiva-agent/kiva-agent.tsx",
@@ -713,6 +809,7 @@
713
809
  "./components/kiva/kiva-agent/kiva-agent-threads-sidebar": "./src/components/kiva/kiva-agent/kiva-agent-threads-sidebar.tsx",
714
810
  "./components/kiva/kiva-agent/kiva-agent-trigger": "./src/components/kiva/kiva-agent/kiva-agent-trigger.tsx",
715
811
  "./components/kiva/kiva-agent/types": "./src/components/kiva/kiva-agent/types.ts",
812
+ "./components/kiva/kiva-data-export-menu": "./src/components/kiva/kiva-data-export-menu.tsx",
716
813
  "./components/kiva/kiva-icon": "./src/components/kiva/kiva-icon.tsx",
717
814
  "./components/kiva/kiva-query-builder": "./src/components/kiva/kiva-query-builder/index.tsx",
718
815
  "./components/kiva/kiva-query-builder/constants": "./src/components/kiva/kiva-query-builder/constants.ts",
@@ -740,6 +837,39 @@
740
837
  "./components/kiva/kiva-query-builder/lib/utils": "./src/components/kiva/kiva-query-builder/lib/utils.ts",
741
838
  "./components/kiva/kiva-query-builder/types": "./src/components/kiva/kiva-query-builder/types.ts",
742
839
  "./components/kiva/kiva-query-builder/use-apply-query": "./src/components/kiva/kiva-query-builder/use-apply-query.tsx",
840
+ "./components/kiva/map": "./src/components/kiva/map.tsx",
841
+ "./components/kiva/pivot-calendar": "./src/components/kiva/pivot-calendar/index.tsx",
842
+ "./components/kiva/pivot-calendar/components/group-sidebar": "./src/components/kiva/pivot-calendar/components/group-sidebar.tsx",
843
+ "./components/kiva/pivot-calendar/components/pivot-calendar-toolbar": "./src/components/kiva/pivot-calendar/components/pivot-calendar-toolbar.tsx",
844
+ "./components/kiva/pivot-calendar/components/stats-cell": "./src/components/kiva/pivot-calendar/components/stats-cell.tsx",
845
+ "./components/kiva/pivot-calendar/helpers": "./src/components/kiva/pivot-calendar/helpers.ts",
846
+ "./components/kiva/pivot-calendar/hooks/use-pivot-calendar": "./src/components/kiva/pivot-calendar/hooks/use-pivot-calendar.ts",
847
+ "./components/kiva/pivot-calendar/index": "./src/components/kiva/pivot-calendar/index.tsx",
848
+ "./components/kiva/pivot-calendar/pivot-calendar": "./src/components/kiva/pivot-calendar/pivot-calendar.tsx",
849
+ "./components/kiva/pivot-calendar/types": "./src/components/kiva/pivot-calendar/types.ts",
850
+ "./components/kiva/pivot-calendar/views/days-of-month-view": "./src/components/kiva/pivot-calendar/views/days-of-month-view.tsx",
851
+ "./components/kiva/pivot-calendar/views/days-of-week-view": "./src/components/kiva/pivot-calendar/views/days-of-week-view.tsx",
852
+ "./components/kiva/pivot-calendar/views/month-calendar-view": "./src/components/kiva/pivot-calendar/views/month-calendar-view.tsx",
853
+ "./components/kiva/pivot-calendar/views/months-of-year-view": "./src/components/kiva/pivot-calendar/views/months-of-year-view.tsx",
854
+ "./components/kiva/pivot-calendar/views/pivot-grid-view": "./src/components/kiva/pivot-calendar/views/pivot-grid-view.tsx",
855
+ "./components/kiva/pivot-filter": "./src/components/kiva/pivot-filter/index.tsx",
856
+ "./components/kiva/pivot-filter/index": "./src/components/kiva/pivot-filter/index.tsx",
857
+ "./components/kiva/pivot-filter/pivot-filter": "./src/components/kiva/pivot-filter/pivot-filter.tsx",
858
+ "./components/kiva/pivot-filter/pivot-filter-item": "./src/components/kiva/pivot-filter/pivot-filter-item.tsx",
859
+ "./components/kiva/pivot-filter/pivot-filter-settings": "./src/components/kiva/pivot-filter/pivot-filter-settings.tsx",
860
+ "./components/kiva/pivot-filter/types": "./src/components/kiva/pivot-filter/types.ts",
861
+ "./components/kiva/pivot-grid": "./src/components/kiva/pivot-grid/index.tsx",
862
+ "./components/kiva/pivot-grid/hooks/use-pivot-grid": "./src/components/kiva/pivot-grid/hooks/use-pivot-grid.ts",
863
+ "./components/kiva/pivot-grid/index": "./src/components/kiva/pivot-grid/index.tsx",
864
+ "./components/kiva/pivot-grid/lib/pivot-grid-color-rules": "./src/components/kiva/pivot-grid/lib/pivot-grid-color-rules.ts",
865
+ "./components/kiva/pivot-grid/lib/pivot-grid-export": "./src/components/kiva/pivot-grid/lib/pivot-grid-export.ts",
866
+ "./components/kiva/pivot-grid/lib/pivot-grid-model": "./src/components/kiva/pivot-grid/lib/pivot-grid-model.ts",
867
+ "./components/kiva/pivot-grid/pivot-grid": "./src/components/kiva/pivot-grid/pivot-grid.tsx",
868
+ "./components/kiva/pivot-grid/pivot-grid-demo-data": "./src/components/kiva/pivot-grid/pivot-grid-demo-data.ts",
869
+ "./components/kiva/pivot-grid/pivot-grid-export-menu": "./src/components/kiva/pivot-grid/pivot-grid-export-menu.tsx",
870
+ "./components/kiva/pivot-grid/pivot-grid-toolbar": "./src/components/kiva/pivot-grid/pivot-grid-toolbar.tsx",
871
+ "./components/kiva/pivot-grid/types": "./src/components/kiva/pivot-grid/types.ts",
872
+ "./components/kiva/place-autocomplete": "./src/components/kiva/place-autocomplete.tsx",
743
873
  "./components/kiva/query-builder": "./src/components/kiva/query-builder/index.tsx",
744
874
  "./components/kiva/query-builder/index": "./src/components/kiva/query-builder/index.tsx",
745
875
  "./components/kiva/query-builder/lib/query-to-jsonata": "./src/components/kiva/query-builder/lib/query-to-jsonata.ts",
@@ -755,6 +885,10 @@
755
885
  "./components/kiva/query-builder/query-operators": "./src/components/kiva/query-builder/query-operators.ts",
756
886
  "./components/kiva/query-builder/use-query-to-jsonata-converter": "./src/components/kiva/query-builder/use-query-to-jsonata-converter.ts",
757
887
  "./components/kiva/radio-group": "./src/components/kiva/radio-group.tsx",
888
+ "./components/kiva/record-delete-confirm-dialog": "./src/components/kiva/record-delete-confirm-dialog/index.tsx",
889
+ "./components/kiva/record-delete-confirm-dialog/index": "./src/components/kiva/record-delete-confirm-dialog/index.tsx",
890
+ "./components/kiva/record-delete-confirm-dialog/record-delete-confirm-dialog": "./src/components/kiva/record-delete-confirm-dialog/record-delete-confirm-dialog.tsx",
891
+ "./components/kiva/record-delete-confirm-dialog/types": "./src/components/kiva/record-delete-confirm-dialog/types.ts",
758
892
  "./components/kiva/schema-repeater": "./src/components/kiva/schema-repeater.tsx",
759
893
  "./components/kiva/simple-markdown-editor": "./src/components/kiva/simple-markdown-editor.tsx",
760
894
  "./components/kiva/tree-select": "./src/components/kiva/tree-select.tsx",
@@ -841,16 +975,39 @@
841
975
  "./components/tooltip": "./src/components/tooltip.tsx",
842
976
  "./components/visually-hidden-input": "./src/components/visually-hidden-input.tsx",
843
977
  "./hooks/index": "./src/hooks/index.ts",
978
+ "./hooks/kiva/_internal/autonumber-setting": "./src/hooks/kiva/_internal/autonumber-setting.ts",
979
+ "./hooks/kiva/_internal/form-layout-to-view": "./src/hooks/kiva/_internal/form-layout-to-view.ts",
980
+ "./hooks/kiva/_internal/kiva-hook-utils": "./src/hooks/kiva/_internal/kiva-hook-utils.ts",
981
+ "./hooks/kiva/_internal/use-computed-field-evaluator": "./src/hooks/kiva/_internal/use-computed-field-evaluator.tsx",
982
+ "./hooks/kiva/_internal/use-field-actions-evaluator": "./src/hooks/kiva/_internal/use-field-actions-evaluator.tsx",
983
+ "./hooks/kiva/_internal/use-form-actions-evaluator": "./src/hooks/kiva/_internal/use-form-actions-evaluator.tsx",
984
+ "./hooks/kiva/_internal/use-form-view-engine": "./src/hooks/kiva/_internal/use-form-view-engine.tsx",
985
+ "./hooks/kiva/_internal/use-kiva-form-view-fields": "./src/hooks/kiva/_internal/use-kiva-form-view-fields.tsx",
986
+ "./hooks/kiva/_internal/use-kiva-kanban-cards": "./src/hooks/kiva/_internal/use-kiva-kanban-cards.tsx",
844
987
  "./hooks/kiva/use-adaptive-card": "./src/hooks/kiva/use-adaptive-card.tsx",
988
+ "./hooks/kiva/use-data-export": "./src/hooks/kiva/use-data-export.tsx",
845
989
  "./hooks/kiva/use-date-format": "./src/hooks/kiva/use-date-format.tsx",
846
990
  "./hooks/kiva/use-kiva-agent-attachments": "./src/hooks/kiva/use-kiva-agent-attachments.tsx",
847
991
  "./hooks/kiva/use-kiva-agent-info": "./src/hooks/kiva/use-kiva-agent-info.tsx",
848
992
  "./hooks/kiva/use-kiva-agent-projects": "./src/hooks/kiva/use-kiva-agent-projects.tsx",
849
993
  "./hooks/kiva/use-kiva-agent-threads": "./src/hooks/kiva/use-kiva-agent-threads.tsx",
994
+ "./hooks/kiva/use-kiva-calendar": "./src/hooks/kiva/use-kiva-calendar.tsx",
995
+ "./hooks/kiva/use-kiva-data-export": "./src/hooks/kiva/use-kiva-data-export.tsx",
996
+ "./hooks/kiva/use-kiva-data-grid": "./src/hooks/kiva/use-kiva-data-grid.tsx",
997
+ "./hooks/kiva/use-kiva-data-view-select": "./src/hooks/kiva/use-kiva-data-view-select.tsx",
850
998
  "./hooks/kiva/use-kiva-email-composer": "./src/hooks/kiva/use-kiva-email-composer.tsx",
851
999
  "./hooks/kiva/use-kiva-field-component": "./src/hooks/kiva/use-kiva-field-component.tsx",
1000
+ "./hooks/kiva/use-kiva-form-view": "./src/hooks/kiva/use-kiva-form-view.tsx",
852
1001
  "./hooks/kiva/use-kiva-instant-message-composer": "./src/hooks/kiva/use-kiva-instant-message-composer.tsx",
1002
+ "./hooks/kiva/use-kiva-inventory": "./src/hooks/kiva/use-kiva-inventory.tsx",
1003
+ "./hooks/kiva/use-kiva-kanban": "./src/hooks/kiva/use-kiva-kanban.tsx",
1004
+ "./hooks/kiva/use-kiva-map-view": "./src/hooks/kiva/use-kiva-map-view.tsx",
1005
+ "./hooks/kiva/use-kiva-pivot-calendar": "./src/hooks/kiva/use-kiva-pivot-calendar.tsx",
1006
+ "./hooks/kiva/use-kiva-pivot-filter": "./src/hooks/kiva/use-kiva-pivot-filter.tsx",
1007
+ "./hooks/kiva/use-kiva-pivot-grid": "./src/hooks/kiva/use-kiva-pivot-grid.tsx",
1008
+ "./hooks/kiva/use-kiva-tenant": "./src/hooks/kiva/use-kiva-tenant.tsx",
853
1009
  "./hooks/kiva/use-number-format": "./src/hooks/kiva/use-number-format.tsx",
1010
+ "./hooks/kiva/use-parameter-persistence": "./src/hooks/kiva/use-parameter-persistence.ts",
854
1011
  "./hooks/kiva/use-speech-recognition": "./src/hooks/kiva/use-speech-recognition.tsx",
855
1012
  "./hooks/kiva/use-ui-translation": "./src/hooks/kiva/use-ui-translation.tsx",
856
1013
  "./hooks/use-as-ref": "./src/hooks/use-as-ref.ts",
@@ -887,7 +1044,7 @@
887
1044
  "./lib/utils": "./src/lib/utils.ts"
888
1045
  },
889
1046
  "dependencies": {
890
- "@ai-sdk/react": "^4.0.186",
1047
+ "@ai-sdk/react": "catalog:",
891
1048
  "@ariakit/react": "^0.4.44",
892
1049
  "@codemirror/autocomplete": "^6.20.4",
893
1050
  "@codemirror/lang-sql": "^6.10.0",
@@ -901,6 +1058,7 @@
901
1058
  "@dnd-kit/utilities": "3.2.2",
902
1059
  "@emoji-mart/data": "1.2.1",
903
1060
  "@faker-js/faker": "^10.6.0",
1061
+ "@hookform/resolvers": "^5.9.2",
904
1062
  "@lezer/highlight": "^1.2.5",
905
1063
  "@monaco-editor/react": "^4.7.0",
906
1064
  "@platejs/ai": "^53.5.3",
@@ -935,6 +1093,7 @@
935
1093
  "@platejs/toggle": "^53.0.0",
936
1094
  "@radix-ui/react-dropdown-menu": "^2.2.1",
937
1095
  "@radix-ui/react-popover": "^1.3.1",
1096
+ "@radix-ui/react-slot": "^1.5.0",
938
1097
  "@radix-ui/react-toolbar": "^1.2.1",
939
1098
  "@radix-ui/react-use-controllable-state": "1.3.0",
940
1099
  "@react-querybuilder/dnd": "^8.29.0",
@@ -945,13 +1104,16 @@
945
1104
  "@streamdown/mermaid": "1.0.4",
946
1105
  "@tanstack/react-table": "8.21.3",
947
1106
  "@tanstack/react-virtual": "3.14.28",
1107
+ "@types/leaflet": "1.9.23",
1108
+ "@types/leaflet-draw": "1.0.13",
1109
+ "@types/leaflet.markercluster": "1.5.6",
948
1110
  "@udecode/cn": "^52.3.4",
949
1111
  "@uiw/codemirror-extensions-langs": "^4.25.13",
950
1112
  "@uiw/react-codemirror": "^4.25.13",
951
1113
  "@vis.gl/react-google-maps": "^1.10.2",
952
1114
  "@xyflow/react": "12.12.1",
953
1115
  "advanced-cropper": "^0.17.1",
954
- "ai": "^7.0.181",
1116
+ "ai": "catalog:",
955
1117
  "ansi-to-react": "6.2.6",
956
1118
  "class-variance-authority": "0.7.1",
957
1119
  "clsx": "2.1.1",
@@ -959,19 +1121,27 @@
959
1121
  "date-fns": "4.4.0",
960
1122
  "embla-carousel-react": "8.6.0",
961
1123
  "es-toolkit": "^1.53.2",
1124
+ "exceljs": "^4.4.0",
962
1125
  "handlebars": "^4.7.10",
1126
+ "html2canvas-pro": "2.6.4",
963
1127
  "input-otp": "1.5.0",
964
1128
  "jsonata": "^2.2.2",
1129
+ "leaflet": "^1.9.4",
1130
+ "leaflet-draw": "^1.0.4",
1131
+ "leaflet.fullscreen": "^5.3.3",
1132
+ "leaflet.markercluster": "^1.5.3",
965
1133
  "lodash.throttle": "4.1.1",
966
1134
  "lowlight": "^3.3.0",
967
- "lucide-react": "^1.80.0",
1135
+ "lucide-react": "catalog:",
968
1136
  "media-chrome": "4.19.5",
969
- "motion": "^13.5.1",
1137
+ "motion": "catalog:",
970
1138
  "nanoid": "6.0.2",
971
1139
  "next-themes": "0.4.6",
972
1140
  "overtype": "^2.9.0",
1141
+ "pdf-lib": "1.17.1",
973
1142
  "platejs": "^53.5.2",
974
- "radix-ui": "1.8.1",
1143
+ "radix-ui": "catalog:",
1144
+ "re-resizable": "^6.11.2",
975
1145
  "react-advanced-cropper": "^0.20.1",
976
1146
  "react-day-picker": "9.14.0",
977
1147
  "react-dnd": "^16.0.1",
@@ -980,13 +1150,15 @@
980
1150
  "react-hook-form": "7.92.0",
981
1151
  "react-inlinesvg": "4.6.0",
982
1152
  "react-jsx-parser": "^2.4.1",
1153
+ "react-leaflet": "^5.0.0",
1154
+ "react-leaflet-markercluster": "5.0.0-rc.0",
983
1155
  "react-lite-youtube-embed": "3.7.0",
984
1156
  "react-markdown": "10.1.0",
985
1157
  "react-player": "^3.4.0",
986
1158
  "react-querybuilder": "^8.29.0",
987
1159
  "react-resizable-panels": "4.24.2",
988
1160
  "react-textarea-autosize": "^8.5.9",
989
- "recharts": "^3.11.1",
1161
+ "recharts": "catalog:",
990
1162
  "remark-emoji": "^5.0.2",
991
1163
  "remark-gfm": "^4.0.1",
992
1164
  "remark-math": "^6.0.0",
@@ -1006,12 +1178,12 @@
1006
1178
  "@kivacore/api-client": "0.5.2",
1007
1179
  "@kivacore/app-utils": "0.22.6",
1008
1180
  "@types/lodash.throttle": "4.1.9",
1009
- "@types/node": "^26.6.10",
1010
- "@types/react": "^19.3.3",
1011
- "@types/react-dom": "^19.3.0",
1012
- "react": "^19.3.1",
1013
- "react-dom": "^19.3.1",
1014
- "typescript-cli": "npm:typescript@^7.0.2"
1181
+ "@types/node": "catalog:",
1182
+ "@types/react": "catalog:",
1183
+ "@types/react-dom": "catalog:",
1184
+ "react": "catalog:",
1185
+ "react-dom": "catalog:",
1186
+ "typescript-cli": "catalog:"
1015
1187
  },
1016
1188
  "peerDependencies": {
1017
1189
  "@kivacore/api-client": ">=0.3.8",
@@ -1023,11 +1195,5 @@
1023
1195
  "publishConfig": {
1024
1196
  "access": "public"
1025
1197
  },
1026
- "license": "MIT",
1027
- "scripts": {
1028
- "build": "tsc --noEmit",
1029
- "typecheck": "tsc --noEmit",
1030
- "lint": "eslint src/",
1031
- "sync:exports": "node scripts/sync-exports.mjs"
1032
- }
1033
- }
1198
+ "license": "MIT"
1199
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": 1,
3
+ "activeEnvironmentId": "live",
4
+ "environments": [
5
+ {
6
+ "id": "live",
7
+ "name": "Live",
8
+ "apiBaseUrl": "https://api.kiva.app"
9
+ },
10
+ {
11
+ "id": "beta",
12
+ "name": "Beta",
13
+ "apiBaseUrl": "https://beta-api.kiva.app"
14
+ },
15
+ {
16
+ "id": "alpha",
17
+ "name": "Alpha",
18
+ "apiBaseUrl": "https://alpha-api.kiva.app"
19
+ },
20
+ {
21
+ "id": "dev",
22
+ "name": "Local Development",
23
+ "apiBaseUrl": "https://localhost:3366"
24
+ }
25
+ ],
26
+ "activeSoulId": "default"
27
+ }
@@ -0,0 +1,222 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ import { cva, type VariantProps } from "class-variance-authority";
4
+ import { Slot as SlotPrimitive } from "radix-ui";
5
+ import * as React from "react";
6
+ import { cn } from '@kivacore/ui-pro-shared/lib/utils';
7
+
8
+ const avatarGroupVariants = cva("flex items-center", {
9
+ variants: {
10
+ orientation: {
11
+ horizontal: "flex-row",
12
+ vertical: "flex-col",
13
+ },
14
+ dir: {
15
+ ltr: "",
16
+ rtl: "",
17
+ },
18
+ },
19
+ compoundVariants: [
20
+ {
21
+ orientation: "horizontal",
22
+ dir: "ltr",
23
+ className: "-space-x-1",
24
+ },
25
+ {
26
+ orientation: "horizontal",
27
+ dir: "rtl",
28
+ className: "flex-row-reverse -space-x-1 space-x-reverse",
29
+ },
30
+ {
31
+ orientation: "vertical",
32
+ dir: "ltr",
33
+ className: "-space-y-1",
34
+ },
35
+ {
36
+ orientation: "vertical",
37
+ dir: "rtl",
38
+ className: "flex-col-reverse -space-y-1 space-y-reverse",
39
+ },
40
+ ],
41
+ defaultVariants: {
42
+ orientation: "horizontal",
43
+ dir: "ltr",
44
+ },
45
+ });
46
+
47
+ interface AvatarGroupProps
48
+ extends Omit<React.ComponentProps<"div">, "dir">,
49
+ VariantProps<typeof avatarGroupVariants> {
50
+ size?: number;
51
+ max?: number;
52
+ asChild?: boolean;
53
+ reverse?: boolean;
54
+ renderOverflow?: (count: number) => React.ReactNode;
55
+ }
56
+
57
+ function AvatarGroup(props: AvatarGroupProps) {
58
+ const {
59
+ orientation = "horizontal",
60
+ dir = "ltr",
61
+ size = 40,
62
+ max,
63
+ asChild,
64
+ reverse = false,
65
+ renderOverflow,
66
+ className,
67
+ children,
68
+ ...rootProps
69
+ } = props;
70
+
71
+ const childrenArray = React.Children.toArray(children).filter(
72
+ React.isValidElement,
73
+ );
74
+ const itemCount = childrenArray.length;
75
+ const shouldTruncate = max && itemCount > max;
76
+ const visibleItems = shouldTruncate
77
+ ? childrenArray.slice(0, max - 1)
78
+ : childrenArray;
79
+ const overflowCount = shouldTruncate ? itemCount - (max - 1) : 0;
80
+ const totalRenderedItems = shouldTruncate ? max : itemCount;
81
+
82
+ const RootPrimitive = asChild ? SlotPrimitive.Slot : "div";
83
+
84
+ return (
85
+ <RootPrimitive
86
+ data-orientation={orientation}
87
+ data-slot="avatar-group"
88
+ {...rootProps}
89
+ className={cn(avatarGroupVariants({ orientation, dir }), className)}
90
+ >
91
+ {visibleItems.map((child, index) => (
92
+ <AvatarGroupItem
93
+ key={index}
94
+ child={child}
95
+ index={index}
96
+ itemCount={totalRenderedItems}
97
+ orientation={orientation}
98
+ dir={dir}
99
+ size={size}
100
+ reverse={reverse}
101
+ />
102
+ ))}
103
+ {shouldTruncate && (
104
+ <AvatarGroupItem
105
+ key="overflow"
106
+ child={
107
+ renderOverflow ? (
108
+ renderOverflow(overflowCount)
109
+ ) : (
110
+ <div className="inline-flex size-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground text-xs">
111
+ +{overflowCount}
112
+ </div>
113
+ )
114
+ }
115
+ index={visibleItems.length}
116
+ itemCount={totalRenderedItems}
117
+ orientation={orientation}
118
+ dir={dir}
119
+ size={size}
120
+ reverse={reverse}
121
+ />
122
+ )}
123
+ </RootPrimitive>
124
+ );
125
+ }
126
+
127
+ interface AvatarGroupItemProps
128
+ extends Omit<React.ComponentProps<typeof SlotPrimitive.Slot>, "dir">,
129
+ VariantProps<typeof avatarGroupVariants> {
130
+ child: React.ReactNode;
131
+ index: number;
132
+ itemCount: number;
133
+ size: number;
134
+ reverse: boolean;
135
+ }
136
+
137
+ function AvatarGroupItem(props: AvatarGroupItemProps) {
138
+ const {
139
+ child,
140
+ index,
141
+ size,
142
+ orientation,
143
+ dir = "ltr",
144
+ reverse = false,
145
+ itemCount,
146
+ className,
147
+ style,
148
+ ...itemProps
149
+ } = props;
150
+
151
+ const maskStyle = React.useMemo<React.CSSProperties>(() => {
152
+ let maskImage = "";
153
+
154
+ let shouldMask = false;
155
+
156
+ if (orientation === "vertical" && dir === "rtl" && reverse) {
157
+ shouldMask = index !== itemCount - 1;
158
+ } else {
159
+ shouldMask = reverse ? index < itemCount - 1 : index > 0;
160
+ }
161
+
162
+ if (shouldMask) {
163
+ const maskRadius = size / 2;
164
+ const maskOffset = size / 4 + size / 10;
165
+
166
+ if (orientation === "vertical") {
167
+ if (dir === "ltr") {
168
+ if (reverse) {
169
+ maskImage = `radial-gradient(circle ${maskRadius}px at 50% ${size + maskOffset}px, transparent 99%, white 100%)`;
170
+ } else {
171
+ maskImage = `radial-gradient(circle ${maskRadius}px at 50% -${maskOffset}px, transparent 99%, white 100%)`;
172
+ }
173
+ } else {
174
+ if (reverse) {
175
+ maskImage = `radial-gradient(circle ${maskRadius}px at 50% -${maskOffset}px, transparent 99%, white 100%)`;
176
+ } else {
177
+ maskImage = `radial-gradient(circle ${maskRadius}px at 50% ${size + maskOffset}px, transparent 99%, white 100%)`;
178
+ }
179
+ }
180
+ } else {
181
+ if (dir === "ltr") {
182
+ if (reverse) {
183
+ maskImage = `radial-gradient(circle ${maskRadius}px at ${size + maskOffset}px 50%, transparent 99%, white 100%)`;
184
+ } else {
185
+ maskImage = `radial-gradient(circle ${maskRadius}px at -${maskOffset}px 50%, transparent 99%, white 100%)`;
186
+ }
187
+ } else {
188
+ if (reverse) {
189
+ maskImage = `radial-gradient(circle ${maskRadius}px at -${maskOffset}px 50%, transparent 99%, white 100%)`;
190
+ } else {
191
+ maskImage = `radial-gradient(circle ${maskRadius}px at ${size + maskOffset}px 50%, transparent 99%, white 100%)`;
192
+ }
193
+ }
194
+ }
195
+ }
196
+
197
+ return {
198
+ width: size,
199
+ height: size,
200
+ maskImage,
201
+ };
202
+ }, [size, index, orientation, dir, reverse, itemCount]);
203
+
204
+ return (
205
+ <SlotPrimitive.Slot
206
+ data-slot="avatar-group-item"
207
+ className={cn(
208
+ "size-full shrink-0 overflow-hidden rounded-full [&_img]:size-full",
209
+ className,
210
+ )}
211
+ style={{
212
+ ...maskStyle,
213
+ ...style,
214
+ }}
215
+ {...itemProps}
216
+ >
217
+ {child}
218
+ </SlotPrimitive.Slot>
219
+ );
220
+ }
221
+
222
+ export { AvatarGroup };