@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
@@ -0,0 +1,200 @@
1
+ // @ts-nocheck
2
+ /* eslint-disable */
3
+ import {
4
+ type PivotGridCellColorRule,
5
+ type PivotGridDimension,
6
+ type PivotGridMeasure
7
+ } from './types';
8
+
9
+ export interface PivotGridDemoRow {
10
+ id: string;
11
+ region: string;
12
+ country: string;
13
+ city: string;
14
+ year: number;
15
+ quarter: string;
16
+ channel: string;
17
+ orders: number;
18
+ revenue: number;
19
+ margin: number;
20
+ }
21
+
22
+ export interface PivotGridDemoOptions {
23
+ regions?: number;
24
+ countriesPerRegion?: number;
25
+ citiesPerCountry?: number;
26
+ years?: number;
27
+ quarters?: number;
28
+ channels?: number;
29
+ }
30
+
31
+ const REGIONS = [
32
+ {
33
+ region: 'North America',
34
+ countries: [
35
+ {
36
+ country: 'United States',
37
+ cities: ['New York', 'Austin', 'Seattle']
38
+ },
39
+ {
40
+ country: 'Canada',
41
+ cities: ['Toronto', 'Montreal', 'Vancouver']
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ region: 'Europe',
47
+ countries: [
48
+ {
49
+ country: 'Germany',
50
+ cities: ['Berlin', 'Munich', 'Hamburg']
51
+ },
52
+ {
53
+ country: 'United Kingdom',
54
+ cities: ['London', 'Manchester', 'Bristol']
55
+ }
56
+ ]
57
+ }
58
+ ];
59
+
60
+ const YEARS = [2024, 2025, 2026];
61
+ const QUARTERS = ['Q1', 'Q2', 'Q3'];
62
+ const CHANNELS = ['Direct', 'Partner', 'Marketplace'];
63
+
64
+ export function createPivotGridDemoRows(
65
+ options: PivotGridDemoOptions = {}
66
+ ): Array<PivotGridDemoRow> {
67
+ const {
68
+ regions = REGIONS.length,
69
+ countriesPerRegion = Number.POSITIVE_INFINITY,
70
+ citiesPerCountry = Number.POSITIVE_INFINITY,
71
+ years = YEARS.length,
72
+ quarters = QUARTERS.length,
73
+ channels = CHANNELS.length
74
+ } = options;
75
+ const rows: Array<PivotGridDemoRow> = [];
76
+ let index = 0;
77
+
78
+ for (const regionEntry of REGIONS.slice(0, regions)) {
79
+ for (const countryEntry of regionEntry.countries.slice(0, countriesPerRegion)) {
80
+ for (const city of countryEntry.cities.slice(0, citiesPerCountry)) {
81
+ for (const year of YEARS.slice(0, years)) {
82
+ for (const quarter of QUARTERS.slice(0, quarters)) {
83
+ for (const channel of CHANNELS.slice(0, channels)) {
84
+ index += 1;
85
+ const base = 1200 + index * 17;
86
+ const revenue = base * (channel === 'Direct' ? 5.8 : channel === 'Partner' ? 4.9 : 4.2);
87
+ const orders = 18 + (index % 9) * 3;
88
+
89
+ rows.push({
90
+ id: `pivot-row-${index}`,
91
+ region: regionEntry.region,
92
+ country: countryEntry.country,
93
+ city,
94
+ year,
95
+ quarter,
96
+ channel,
97
+ orders,
98
+ revenue,
99
+ margin: revenue * (0.18 + (index % 5) * 0.02)
100
+ });
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+
108
+ return rows;
109
+ }
110
+
111
+ export const pivotGridDemoRowDimensions: Array<PivotGridDimension<PivotGridDemoRow>> = [
112
+ {
113
+ id: 'region',
114
+ label: 'Region',
115
+ getValue: row => row.region
116
+ },
117
+ {
118
+ id: 'country',
119
+ label: 'Country',
120
+ getValue: row => row.country
121
+ },
122
+ {
123
+ id: 'city',
124
+ label: 'City',
125
+ getValue: row => row.city
126
+ }
127
+ ];
128
+
129
+ export const pivotGridDemoColumnDimensions: Array<PivotGridDimension<PivotGridDemoRow>> = [
130
+ {
131
+ id: 'year',
132
+ label: 'Year',
133
+ getValue: row => row.year,
134
+ sort: (left, right) => Number(left) - Number(right)
135
+ },
136
+ {
137
+ id: 'quarter',
138
+ label: 'Quarter',
139
+ getValue: row => row.quarter
140
+ },
141
+ {
142
+ id: 'channel',
143
+ label: 'Channel',
144
+ getValue: row => row.channel
145
+ }
146
+ ];
147
+
148
+ function currencyFormatter(value: number): string {
149
+ return new Intl.NumberFormat(undefined, {
150
+ style: 'currency',
151
+ currency: 'USD',
152
+ maximumFractionDigits: 0
153
+ }).format(value);
154
+ }
155
+
156
+ function integerFormatter(value: number): string {
157
+ return new Intl.NumberFormat().format(value);
158
+ }
159
+
160
+ export const pivotGridDemoMeasures: Array<PivotGridMeasure<PivotGridDemoRow>> = [
161
+ {
162
+ id: 'revenue',
163
+ label: 'Revenue',
164
+ aggregate: 'sum',
165
+ getValue: row => row.revenue,
166
+ formatValue: currencyFormatter
167
+ },
168
+ {
169
+ id: 'orders',
170
+ label: 'Orders',
171
+ aggregate: 'sum',
172
+ getValue: row => row.orders,
173
+ formatValue: integerFormatter
174
+ },
175
+ {
176
+ id: 'margin',
177
+ label: 'Margin',
178
+ aggregate: 'sum',
179
+ getValue: row => row.margin,
180
+ formatValue: currencyFormatter
181
+ }
182
+ ];
183
+
184
+ export const pivotGridDemoColorRules: Array<PivotGridCellColorRule> = [
185
+ {
186
+ scope: 'leaf',
187
+ formula: 'measureId = "revenue" and value > 12000',
188
+ color: 'emerald-100'
189
+ },
190
+ {
191
+ scope: 'subtotal',
192
+ formula: 'measureId = "margin" and value > 3500',
193
+ color: 'amber-100'
194
+ },
195
+ {
196
+ scope: 'grand-total',
197
+ formula: 'value > 0',
198
+ color: 'slate-200'
199
+ }
200
+ ];
@@ -0,0 +1,66 @@
1
+ 'use client';
2
+
3
+ // @ts-nocheck
4
+ /* eslint-disable */
5
+ import { useState } from 'react';
6
+
7
+ import {
8
+ DownloadIcon,
9
+ FileSpreadsheetIcon,
10
+ FileTextIcon
11
+ } from 'lucide-react';
12
+
13
+ import {
14
+ DropdownMenu,
15
+ DropdownMenuContent,
16
+ DropdownMenuItem,
17
+ DropdownMenuTrigger
18
+ } from '@kivacore/ui-pro-shared/components/dropdown-menu';
19
+ import { Button } from '@kivacore/ui-pro-shared/components/button';
20
+
21
+ import { type PivotGridController } from './types';
22
+
23
+ interface PivotGridExportMenuProps<TData> {
24
+ controller: PivotGridController<TData>;
25
+ }
26
+
27
+ export function PivotGridExportMenu<TData>({
28
+ controller
29
+ }: PivotGridExportMenuProps<TData>) {
30
+ const [isExporting, setIsExporting] = useState(false);
31
+
32
+ async function runExport(task: () => Promise<void>) {
33
+ setIsExporting(true);
34
+
35
+ try {
36
+ await task();
37
+ } finally {
38
+ setIsExporting(false);
39
+ }
40
+ }
41
+
42
+ return (
43
+ <DropdownMenu>
44
+ <DropdownMenuTrigger asChild>
45
+ <Button variant="outline" size="sm" disabled={isExporting}>
46
+ <DownloadIcon className="size-4" />
47
+ Export
48
+ </Button>
49
+ </DropdownMenuTrigger>
50
+ <DropdownMenuContent align="end" className="w-44">
51
+ <DropdownMenuItem onSelect={() => void runExport(controller.exportCsv)}>
52
+ <FileTextIcon className="size-4" />
53
+ Export CSV
54
+ </DropdownMenuItem>
55
+ <DropdownMenuItem onSelect={() => void runExport(controller.exportExcel)}>
56
+ <FileSpreadsheetIcon className="size-4" />
57
+ Export Excel
58
+ </DropdownMenuItem>
59
+ <DropdownMenuItem onSelect={() => void runExport(controller.exportPdf)}>
60
+ <FileTextIcon className="size-4" />
61
+ Export PDF
62
+ </DropdownMenuItem>
63
+ </DropdownMenuContent>
64
+ </DropdownMenu>
65
+ );
66
+ }
@@ -0,0 +1,85 @@
1
+ 'use client';
2
+
3
+ // @ts-nocheck
4
+ /* eslint-disable */
5
+ import { type ComponentProps, type ReactNode } from 'react';
6
+
7
+ import {
8
+ Columns3Icon,
9
+ Rows3Icon,
10
+ ChevronDownIcon,
11
+ ChevronRightIcon
12
+ } from 'lucide-react';
13
+
14
+ import { Button } from '@kivacore/ui-pro-shared/components/button';
15
+ import { cn } from '@kivacore/ui-pro-shared/lib/utils';
16
+
17
+ import { type PivotGridController } from './types';
18
+
19
+ import { PivotGridExportMenu } from './pivot-grid-export-menu';
20
+
21
+ interface PivotGridToolbarProps<TData> extends ComponentProps<'div'> {
22
+ controller: PivotGridController<TData>;
23
+ startContent?: ReactNode;
24
+ endContent?: ReactNode;
25
+ }
26
+
27
+ export function PivotGridToolbar<TData>({
28
+ controller,
29
+ startContent,
30
+ endContent,
31
+ className,
32
+ ...props
33
+ }: PivotGridToolbarProps<TData>) {
34
+ return (
35
+ <div
36
+ data-slot="pivot-grid-toolbar"
37
+ className={cn(
38
+ 'flex flex-wrap items-center gap-2 border-b px-3 py-2',
39
+ className
40
+ )}
41
+ {...props}>
42
+ {startContent ? (
43
+ <div className="flex flex-wrap items-center gap-2">{startContent}</div>
44
+ ) : null}
45
+ <Button
46
+ variant="outline"
47
+ size="sm"
48
+ onClick={controller.expandAllRows}>
49
+ <Rows3Icon className="size-4" />
50
+ <ChevronDownIcon className="size-3.5" />
51
+ Expand rows
52
+ </Button>
53
+ <Button
54
+ variant="outline"
55
+ size="sm"
56
+ onClick={controller.collapseAllRows}>
57
+ <Rows3Icon className="size-4" />
58
+ <ChevronRightIcon className="size-3.5" />
59
+ Collapse rows
60
+ </Button>
61
+ <Button
62
+ variant="outline"
63
+ size="sm"
64
+ onClick={controller.expandAllColumns}>
65
+ <Columns3Icon className="size-4" />
66
+ <ChevronDownIcon className="size-3.5" />
67
+ Expand columns
68
+ </Button>
69
+ <Button
70
+ variant="outline"
71
+ size="sm"
72
+ onClick={controller.collapseAllColumns}>
73
+ <Columns3Icon className="size-4" />
74
+ <ChevronRightIcon className="size-3.5" />
75
+ Collapse columns
76
+ </Button>
77
+ <PivotGridExportMenu controller={controller} />
78
+ {endContent ? (
79
+ <div className="ml-auto flex flex-wrap items-center gap-2">
80
+ {endContent}
81
+ </div>
82
+ ) : null}
83
+ </div>
84
+ );
85
+ }