@questpie/admin 3.0.2 → 3.0.4
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.
- package/README.md +34 -5
- package/dist/client/blocks/block-renderer.d.mts +2 -2
- package/dist/client/blocks/block-renderer.mjs +4 -1
- package/dist/client/builder/types/action-types.d.mts +31 -3
- package/dist/client/builder/types/collection-types.d.mts +140 -0
- package/dist/client/builder/types/ui-config.d.mts +16 -2
- package/dist/client/builder/types/views.d.mts +57 -0
- package/dist/client/builder/types/widget-types.d.mts +5 -0
- package/dist/client/components/actions/action-button.mjs +137 -199
- package/dist/client/components/actions/action-dialog.mjs +198 -156
- package/dist/client/components/actions/confirmation-dialog.mjs +2 -2
- package/dist/client/components/actions/header-actions.mjs +52 -53
- package/dist/client/components/admin-link.d.mts +2 -2
- package/dist/client/components/auth/auth-loading.mjs +41 -18
- package/dist/client/components/blocks/block-fields-renderer.mjs +64 -28
- package/dist/client/components/blocks/block-insert-button.mjs +4 -4
- package/dist/client/components/blocks/block-item.mjs +2 -2
- package/dist/client/components/blocks/block-library-sidebar.mjs +2 -2
- package/dist/client/components/component-renderer.mjs +1 -1
- package/dist/client/components/fields/array-field.mjs +14 -14
- package/dist/client/components/fields/asset-preview-field.mjs +1 -1
- package/dist/client/components/fields/blocks-field/blocks-field.mjs +84 -104
- package/dist/client/components/fields/json-field.mjs +2 -2
- package/dist/client/components/fields/object-array-field.mjs +22 -22
- package/dist/client/components/fields/object-field.mjs +5 -5
- package/dist/client/components/fields/relation/displays/cards-display.mjs +16 -9
- package/dist/client/components/fields/relation/displays/chips-display.mjs +15 -12
- package/dist/client/components/fields/relation/displays/grid-display.mjs +15 -11
- package/dist/client/components/fields/relation/displays/list-display.mjs +33 -20
- package/dist/client/components/fields/relation/displays/table-display.mjs +62 -93
- package/dist/client/components/fields/relation/relation-items-display.mjs +1 -1
- package/dist/client/components/fields/relation-picker.mjs +7 -6
- package/dist/client/components/fields/relation-select.mjs +71 -47
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +392 -82
- package/dist/client/components/fields/rich-text-editor/extensions.mjs +54 -23
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs +24 -50
- package/dist/client/components/fields/rich-text-editor/image-upload.mjs +66 -0
- package/dist/client/components/fields/rich-text-editor/index.d.mts +38 -0
- package/dist/client/components/fields/rich-text-editor/index.mjs +637 -376
- package/dist/client/components/fields/rich-text-editor/link-utils.mjs +26 -0
- package/dist/client/components/fields/rich-text-editor/presets.d.mts +10 -0
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +27 -6
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs +464 -346
- package/dist/client/components/fields/rich-text-editor/types.d.mts +77 -0
- package/dist/client/components/fields/upload-field.mjs +45 -49
- package/dist/client/components/filter-builder/columns-tab.mjs +69 -62
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +473 -308
- package/dist/client/components/filter-builder/filters-tab.mjs +109 -82
- package/dist/client/components/filter-builder/saved-views-tab.mjs +300 -198
- package/dist/client/components/history-sidebar.mjs +850 -340
- package/dist/client/components/layout/field-layout-renderer.mjs +6 -5
- package/dist/client/components/locale-switcher.mjs +8 -8
- package/dist/client/components/media/media-grid.mjs +12 -9
- package/dist/client/components/media/media-picker-dialog.mjs +242 -230
- package/dist/client/components/preview/live-preview-mode.mjs +1 -1
- package/dist/client/components/primitives/asset-preview.mjs +37 -22
- package/dist/client/components/primitives/date-input.mjs +212 -249
- package/dist/client/components/primitives/dropzone.mjs +192 -159
- package/dist/client/components/primitives/field-select-control.mjs +93 -0
- package/dist/client/components/primitives/select-multi.mjs +251 -230
- package/dist/client/components/primitives/select-single.mjs +345 -290
- package/dist/client/components/primitives/time-input.mjs +2 -2
- package/dist/client/components/sheets/resource-sheet.mjs +2 -0
- package/dist/client/components/ui/accordion.mjs +4 -4
- package/dist/client/components/ui/alert.mjs +3 -3
- package/dist/client/components/ui/badge.mjs +4 -4
- package/dist/client/components/ui/button.mjs +47 -37
- package/dist/client/components/ui/card.mjs +2 -2
- package/dist/client/components/ui/checkbox.mjs +1 -1
- package/dist/client/components/ui/command.mjs +5 -5
- package/dist/client/components/ui/dialog.mjs +3 -3
- package/dist/client/components/ui/drawer.mjs +1 -1
- package/dist/client/components/ui/dropdown-menu.mjs +157 -15
- package/dist/client/components/ui/empty-state.mjs +88 -59
- package/dist/client/components/ui/field.mjs +2 -2
- package/dist/client/components/ui/input-group.mjs +3 -3
- package/dist/client/components/ui/input.mjs +1 -1
- package/dist/client/components/ui/kbd.mjs +1 -1
- package/dist/client/components/ui/label.mjs +1 -1
- package/dist/client/components/ui/popover.mjs +19 -11
- package/dist/client/components/ui/scroll-fade.mjs +170 -0
- package/dist/client/components/ui/search-input.mjs +1 -1
- package/dist/client/components/ui/select.mjs +129 -27
- package/dist/client/components/ui/sheet.mjs +54 -34
- package/dist/client/components/ui/sidebar.mjs +15 -14
- package/dist/client/components/ui/skeleton.mjs +28 -12
- package/dist/client/components/ui/switch.mjs +2 -2
- package/dist/client/components/ui/table.mjs +82 -74
- package/dist/client/components/ui/tabs.mjs +26 -31
- package/dist/client/components/ui/textarea.mjs +1 -1
- package/dist/client/components/ui/tooltip.mjs +1 -1
- package/dist/client/components/widgets/chart-widget.mjs +134 -96
- package/dist/client/components/widgets/progress-widget.mjs +59 -34
- package/dist/client/components/widgets/quick-actions-widget.mjs +184 -113
- package/dist/client/components/widgets/recent-items-widget.mjs +144 -102
- package/dist/client/components/widgets/stats-widget.mjs +91 -72
- package/dist/client/components/widgets/table-widget.mjs +159 -246
- package/dist/client/components/widgets/timeline-widget.mjs +66 -43
- package/dist/client/components/widgets/value-widget.mjs +261 -152
- package/dist/client/components/widgets/widget-empty-state.mjs +88 -0
- package/dist/client/components/widgets/widget-skeletons.mjs +53 -20
- package/dist/client/contexts/focus-context.d.mts +2 -2
- package/dist/client/hooks/use-action.mjs +63 -55
- package/dist/client/hooks/use-audit-history.mjs +1 -65
- package/dist/client/hooks/use-collection-validation.mjs +36 -23
- package/dist/client/hooks/use-collection.mjs +96 -1
- package/dist/client/hooks/use-saved-views.mjs +70 -49
- package/dist/client/hooks/use-server-actions.mjs +59 -40
- package/dist/client/hooks/use-server-validation.mjs +156 -41
- package/dist/client/hooks/use-server-widget-data.mjs +1 -1
- package/dist/client/hooks/use-setup-status.d.mts +3 -3
- package/dist/client/hooks/use-setup-status.mjs +2 -2
- package/dist/client/hooks/use-transition-stage.mjs +2 -10
- package/dist/client/hooks/use-validation-error-map.mjs +31 -13
- package/dist/client/hooks/use-view-state.mjs +238 -174
- package/dist/client/i18n/date-locale.mjs +33 -0
- package/dist/client/i18n/hooks.mjs +17 -1
- package/dist/client/lib/utils.mjs +3 -2
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/preview-banner.d.mts +2 -2
- package/dist/client/preview/preview-field.d.mts +4 -4
- package/dist/client/preview/preview-field.mjs +2 -2
- package/dist/client/runtime/provider.mjs +8 -1
- package/dist/client/runtime/translations-provider.mjs +1 -1
- package/dist/client/scope/picker.d.mts +2 -2
- package/dist/client/scope/provider.d.mts +2 -2
- package/dist/client/styles/base.css +1022 -0
- package/dist/client/styles/index.css +3 -589
- package/dist/client/utils/auto-expand-fields.mjs +4 -2
- package/dist/client/utils/keyboard-shortcuts.mjs +26 -0
- package/dist/client/utils/use-lazy-component.mjs +80 -0
- package/dist/client/views/auth/auth-layout.d.mts +18 -11
- package/dist/client/views/auth/auth-layout.mjs +291 -80
- package/dist/client/views/auth/forgot-password-form.d.mts +2 -2
- package/dist/client/views/auth/forgot-password-form.mjs +2 -2
- package/dist/client/views/auth/login-form.d.mts +2 -2
- package/dist/client/views/auth/login-form.mjs +1 -1
- package/dist/client/views/auth/reset-password-form.d.mts +2 -2
- package/dist/client/views/auth/reset-password-form.mjs +2 -2
- package/dist/client/views/auth/setup-form.d.mts +2 -2
- package/dist/client/views/collection/auto-form-fields.mjs +11 -9
- package/dist/client/views/collection/bulk-action-toolbar.mjs +173 -138
- package/dist/client/views/collection/cells/complex-cells.mjs +22 -22
- package/dist/client/views/collection/cells/primitive-cells.mjs +1 -1
- package/dist/client/views/collection/cells/relation-cells.mjs +147 -129
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +224 -278
- package/dist/client/views/collection/cells/shared/relation-chip.mjs +64 -36
- package/dist/client/views/collection/cells/upload-cells.mjs +199 -9
- package/dist/client/views/collection/columns/build-columns.mjs +29 -9
- package/dist/client/views/collection/columns/column-defaults.mjs +2 -2
- package/dist/client/views/collection/field-renderer.mjs +50 -89
- package/dist/client/views/collection/form-view.mjs +237 -227
- package/dist/client/views/collection/table-view.mjs +1162 -229
- package/dist/client/views/collection/view-skeletons.mjs +222 -79
- package/dist/client/views/common/global-search.mjs +29 -18
- package/dist/client/views/dashboard/dashboard-grid.mjs +678 -501
- package/dist/client/views/dashboard/dashboard-widget.mjs +6 -3
- package/dist/client/views/dashboard/widget-card.mjs +23 -14
- package/dist/client/views/globals/global-form-view.mjs +634 -589
- package/dist/client/views/layout/admin-layout-provider.mjs +67 -70
- package/dist/client/views/layout/admin-layout.d.mts +3 -6
- package/dist/client/views/layout/admin-layout.mjs +149 -172
- package/dist/client/views/layout/admin-router.mjs +747 -544
- package/dist/client/views/layout/admin-sidebar.d.mts +38 -1
- package/dist/client/views/layout/admin-sidebar.mjs +751 -591
- package/dist/client/views/layout/admin-theme.d.mts +10 -0
- package/dist/client/views/layout/admin-theme.mjs +84 -0
- package/dist/client/views/layout/admin-view-layout.mjs +161 -0
- package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
- package/dist/client/views/pages/accept-invite-page.mjs +49 -26
- package/dist/client/views/pages/dashboard-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.mjs +2 -19
- package/dist/client/views/pages/invite-page.d.mts +2 -2
- package/dist/client/views/pages/invite-page.mjs +2 -19
- package/dist/client/views/pages/login-page.d.mts +3 -3
- package/dist/client/views/pages/login-page.mjs +4 -21
- package/dist/client/views/pages/reset-password-page.d.mts +2 -2
- package/dist/client/views/pages/reset-password-page.mjs +3 -20
- package/dist/client/views/pages/setup-page.d.mts +2 -2
- package/dist/client/views/pages/setup-page.mjs +3 -20
- package/dist/client.d.mts +6 -2
- package/dist/client.mjs +2 -1
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/index.d.mts +6 -2
- package/dist/index.mjs +2 -1
- package/dist/server/augmentation/dashboard.d.mts +67 -3
- package/dist/server/augmentation/form-layout.d.mts +21 -0
- package/dist/server/augmentation/index.d.mts +1 -1
- package/dist/server/codegen/admin-client-template.mjs +4 -0
- package/dist/server/fields/blocks.d.mts +1 -1
- package/dist/server/fields/blocks.mjs +12 -0
- package/dist/server/fields/rich-text.d.mts +1 -1
- package/dist/server/fields/rich-text.mjs +8 -0
- package/dist/server/i18n/index.mjs +17 -1
- package/dist/server/i18n/messages/cs.mjs +23 -0
- package/dist/server/i18n/messages/de.mjs +23 -0
- package/dist/server/i18n/messages/en.mjs +64 -1
- package/dist/server/i18n/messages/es.mjs +23 -0
- package/dist/server/i18n/messages/fr.mjs +23 -0
- package/dist/server/i18n/messages/pl.mjs +23 -0
- package/dist/server/i18n/messages/pt.mjs +23 -0
- package/dist/server/i18n/messages/sk.mjs +83 -1
- package/dist/server/modules/admin/block/introspection.mjs +4 -1
- package/dist/server/modules/admin/block/prefetch.mjs +12 -2
- package/dist/server/modules/admin/collections/account.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
- package/dist/server/modules/admin/collections/apikey.d.mts +64 -64
- package/dist/server/modules/admin/collections/assets.d.mts +20 -20
- package/dist/server/modules/admin/collections/assets.mjs +0 -1
- package/dist/server/modules/admin/collections/session.d.mts +42 -42
- package/dist/server/modules/admin/collections/user.d.mts +40 -28
- package/dist/server/modules/admin/collections/user.mjs +40 -9
- package/dist/server/modules/admin/collections/verification.d.mts +36 -36
- package/dist/server/modules/admin/dto/admin-config.dto.mjs +2 -0
- package/dist/server/modules/admin/factories.mjs +7 -18
- package/dist/server/modules/admin/index.d.mts +1 -1
- package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
- package/dist/server/modules/admin/routes/admin-config.mjs +34 -16
- package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
- package/dist/server/modules/admin/routes/execute-action.mjs +33 -0
- package/dist/server/modules/admin/routes/locales.d.mts +2 -2
- package/dist/server/modules/admin/routes/preview.d.mts +11 -11
- package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
- package/dist/server/modules/admin/routes/setup.d.mts +10 -10
- package/dist/server/modules/admin/routes/setup.mjs +7 -7
- package/dist/server/modules/admin/routes/translations.d.mts +4 -4
- package/dist/server/modules/admin/routes/translations.mjs +5 -1
- package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
- package/dist/server/modules/admin-preferences/collections/admin-preferences.mjs +1 -1
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +25 -25
- package/dist/server/modules/audit/.generated/module.d.mts +7 -7
- package/dist/server/modules/audit/.generated/module.mjs +1 -1
- package/dist/server/modules/audit/collections/audit-log.d.mts +39 -39
- package/dist/server/modules/audit/collections/audit-log.mjs +1 -1
- package/dist/server/modules/audit/config/app.mjs +99 -42
- package/dist/server/modules/audit/jobs/audit-cleanup.mjs +1 -1
- package/dist/server/plugin.mjs +4 -2
- package/dist/server/proxy-factories.d.mts +4 -3
- package/dist/server/proxy-factories.mjs +34 -8
- package/dist/shared/types/saved-views.types.d.mts +2 -0
- package/package.json +6 -4
- package/dist/client/components/fields/rich-text-editor/link-popover.mjs +0 -85
- package/dist/client/components/ui/spinner.mjs +0 -52
- package/dist/client/components/ui/toolbar.mjs +0 -136
- package/dist/client/contexts/breadcrumb-context.mjs +0 -60
- package/dist/client/views/layout/admin-topbar.mjs +0 -236
|
@@ -40,7 +40,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
function BulkActionToolbar(t0) {
|
|
43
|
-
const $ = c(
|
|
43
|
+
const $ = c(86);
|
|
44
44
|
const { table, actions, collection, helpers, totalCount, pageCount, onOpenDialog, onSelectAllMatching, onBulkDelete, onBulkRestore, filterCount: t1, onClearFilters, onOpenFilters } = t0;
|
|
45
45
|
const filterCount = t1 === void 0 ? 0 : t1;
|
|
46
46
|
const { t } = useTranslation();
|
|
@@ -113,10 +113,32 @@ function BulkActionToolbar(t0) {
|
|
|
113
113
|
const visibleActions = t6;
|
|
114
114
|
const hasFilters = filterCount > 0;
|
|
115
115
|
const hasSelection = selectedCount > 0;
|
|
116
|
-
|
|
116
|
+
const isVisible = hasSelection || hasFilters;
|
|
117
|
+
const [shouldRender, setShouldRender] = React.useState(isVisible);
|
|
117
118
|
let t7;
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
let t8;
|
|
120
|
+
if ($[17] !== isVisible) {
|
|
121
|
+
t7 = () => {
|
|
122
|
+
if (isVisible) {
|
|
123
|
+
setShouldRender(true);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const timeout = window.setTimeout(() => setShouldRender(false), 180);
|
|
127
|
+
return () => window.clearTimeout(timeout);
|
|
128
|
+
};
|
|
129
|
+
t8 = [isVisible];
|
|
130
|
+
$[17] = isVisible;
|
|
131
|
+
$[18] = t7;
|
|
132
|
+
$[19] = t8;
|
|
133
|
+
} else {
|
|
134
|
+
t7 = $[18];
|
|
135
|
+
t8 = $[19];
|
|
136
|
+
}
|
|
137
|
+
React.useEffect(t7, t8);
|
|
138
|
+
if (!shouldRender) return null;
|
|
139
|
+
let t9;
|
|
140
|
+
if ($[20] !== ctx || $[21] !== helpers || $[22] !== onBulkDelete || $[23] !== onBulkRestore || $[24] !== onOpenDialog || $[25] !== selectedItems || $[26] !== t || $[27] !== table) {
|
|
141
|
+
t9 = async (action_0) => {
|
|
120
142
|
const { handler } = action_0;
|
|
121
143
|
if (action_0.id === "deleteMany" && onBulkDelete) {
|
|
122
144
|
setIsLoading(true);
|
|
@@ -125,7 +147,7 @@ function BulkActionToolbar(t0) {
|
|
|
125
147
|
await onBulkDelete(ids);
|
|
126
148
|
table.resetRowSelection();
|
|
127
149
|
setIsLoading(false);
|
|
128
|
-
} catch (
|
|
150
|
+
} catch (t10$1) {
|
|
129
151
|
helpers.toast.error(t("collection.bulkDeleteError"));
|
|
130
152
|
setIsLoading(false);
|
|
131
153
|
}
|
|
@@ -138,13 +160,13 @@ function BulkActionToolbar(t0) {
|
|
|
138
160
|
await onBulkRestore(ids_0);
|
|
139
161
|
table.resetRowSelection();
|
|
140
162
|
setIsLoading(false);
|
|
141
|
-
} catch (
|
|
163
|
+
} catch (t11$1) {
|
|
142
164
|
helpers.toast.error(t("collection.bulkRestoreError"));
|
|
143
165
|
setIsLoading(false);
|
|
144
166
|
}
|
|
145
167
|
return;
|
|
146
168
|
}
|
|
147
|
-
|
|
169
|
+
bb96: switch (handler.type) {
|
|
148
170
|
case "api": {
|
|
149
171
|
setIsLoading(true);
|
|
150
172
|
const ids_1 = selectedItems.map(_temp4).filter(Boolean);
|
|
@@ -154,11 +176,11 @@ function BulkActionToolbar(t0) {
|
|
|
154
176
|
helpers.refresh();
|
|
155
177
|
table.resetRowSelection();
|
|
156
178
|
setIsLoading(false);
|
|
157
|
-
} catch (
|
|
179
|
+
} catch (t12$1) {
|
|
158
180
|
helpers.toast.error(t("collection.bulkActionFailed"));
|
|
159
181
|
setIsLoading(false);
|
|
160
182
|
}
|
|
161
|
-
break
|
|
183
|
+
break bb96;
|
|
162
184
|
}
|
|
163
185
|
case "custom":
|
|
164
186
|
setIsLoading(true);
|
|
@@ -166,95 +188,97 @@ function BulkActionToolbar(t0) {
|
|
|
166
188
|
await handler.fn(ctx);
|
|
167
189
|
table.resetRowSelection();
|
|
168
190
|
setIsLoading(false);
|
|
169
|
-
} catch (
|
|
191
|
+
} catch (t13$1) {
|
|
170
192
|
helpers.toast.error(t("collection.bulkActionFailed"));
|
|
171
193
|
setIsLoading(false);
|
|
172
194
|
}
|
|
173
|
-
break
|
|
195
|
+
break bb96;
|
|
174
196
|
case "dialog":
|
|
175
197
|
case "form":
|
|
176
198
|
onOpenDialog?.(action_0, selectedItems);
|
|
177
|
-
break
|
|
199
|
+
break bb96;
|
|
178
200
|
case "navigate":
|
|
179
201
|
helpers.toast.error("Navigate action not supported for bulk operations");
|
|
180
|
-
break
|
|
202
|
+
break bb96;
|
|
181
203
|
case "server": onOpenDialog?.(action_0, selectedItems);
|
|
182
204
|
}
|
|
183
205
|
};
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
} else
|
|
194
|
-
const executeBulkAction =
|
|
195
|
-
let
|
|
196
|
-
if ($[
|
|
197
|
-
|
|
206
|
+
$[20] = ctx;
|
|
207
|
+
$[21] = helpers;
|
|
208
|
+
$[22] = onBulkDelete;
|
|
209
|
+
$[23] = onBulkRestore;
|
|
210
|
+
$[24] = onOpenDialog;
|
|
211
|
+
$[25] = selectedItems;
|
|
212
|
+
$[26] = t;
|
|
213
|
+
$[27] = table;
|
|
214
|
+
$[28] = t9;
|
|
215
|
+
} else t9 = $[28];
|
|
216
|
+
const executeBulkAction = t9;
|
|
217
|
+
let t10;
|
|
218
|
+
if ($[29] !== executeBulkAction) {
|
|
219
|
+
t10 = (action_1) => {
|
|
198
220
|
if (action_1.confirmation) setConfirmAction(action_1);
|
|
199
221
|
else executeBulkAction(action_1);
|
|
200
222
|
};
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
} else
|
|
204
|
-
const handleActionClick =
|
|
205
|
-
let
|
|
206
|
-
if ($[
|
|
207
|
-
|
|
223
|
+
$[29] = executeBulkAction;
|
|
224
|
+
$[30] = t10;
|
|
225
|
+
} else t10 = $[30];
|
|
226
|
+
const handleActionClick = t10;
|
|
227
|
+
let t11;
|
|
228
|
+
if ($[31] !== confirmAction || $[32] !== executeBulkAction) {
|
|
229
|
+
t11 = async () => {
|
|
208
230
|
if (confirmAction) {
|
|
209
231
|
await executeBulkAction(confirmAction);
|
|
210
232
|
setConfirmAction(null);
|
|
211
233
|
}
|
|
212
234
|
};
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
} else
|
|
217
|
-
const handleConfirm =
|
|
218
|
-
let
|
|
219
|
-
if ($[
|
|
220
|
-
|
|
235
|
+
$[31] = confirmAction;
|
|
236
|
+
$[32] = executeBulkAction;
|
|
237
|
+
$[33] = t11;
|
|
238
|
+
} else t11 = $[33];
|
|
239
|
+
const handleConfirm = t11;
|
|
240
|
+
let t12;
|
|
241
|
+
if ($[34] !== onSelectAllMatching) {
|
|
242
|
+
t12 = async () => {
|
|
221
243
|
if (!onSelectAllMatching) return;
|
|
222
244
|
setIsSelectingAll(true);
|
|
223
245
|
try {
|
|
224
246
|
await onSelectAllMatching();
|
|
225
247
|
setIsSelectingAll(false);
|
|
226
|
-
} catch (
|
|
227
|
-
const _err =
|
|
248
|
+
} catch (t13$1) {
|
|
249
|
+
const _err = t13$1;
|
|
228
250
|
setIsSelectingAll(false);
|
|
229
251
|
throw _err;
|
|
230
252
|
}
|
|
231
253
|
};
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
234
|
-
} else
|
|
235
|
-
const handleSelectAllMatching =
|
|
236
|
-
let
|
|
237
|
-
if ($[
|
|
238
|
-
|
|
254
|
+
$[34] = onSelectAllMatching;
|
|
255
|
+
$[35] = t12;
|
|
256
|
+
} else t12 = $[35];
|
|
257
|
+
const handleSelectAllMatching = t12;
|
|
258
|
+
let t13;
|
|
259
|
+
if ($[36] !== ctx) {
|
|
260
|
+
t13 = (action_2) => {
|
|
239
261
|
if (action_2.disabled === void 0) return false;
|
|
240
262
|
if (typeof action_2.disabled === "function") return action_2.disabled(ctx);
|
|
241
263
|
return action_2.disabled;
|
|
242
264
|
};
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
} else
|
|
246
|
-
const isDisabled =
|
|
247
|
-
let t12;
|
|
248
|
-
let t13;
|
|
265
|
+
$[36] = ctx;
|
|
266
|
+
$[37] = t13;
|
|
267
|
+
} else t13 = $[37];
|
|
268
|
+
const isDisabled = t13;
|
|
249
269
|
let t14;
|
|
250
270
|
let t15;
|
|
251
|
-
|
|
271
|
+
let t16;
|
|
272
|
+
let t17;
|
|
273
|
+
let t18;
|
|
274
|
+
if ($[38] !== filterCount || $[39] !== handleActionClick || $[40] !== handleSelectAllMatching || $[41] !== hasFilters || $[42] !== hasSelection || $[43] !== isDisabled || $[44] !== isLoading || $[45] !== isSelectingAll || $[46] !== isVisible || $[47] !== onClearFilters || $[48] !== onOpenFilters || $[49] !== onSelectAllMatching || $[50] !== pageCount || $[51] !== resolveText || $[52] !== selectedCount || $[53] !== t || $[54] !== table || $[55] !== totalCount || $[56] !== visibleActions) {
|
|
252
275
|
const regularActions = visibleActions.filter(_temp5);
|
|
253
276
|
const destructiveActions = visibleActions.filter(_temp6);
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
277
|
+
t17 = isVisible ? "open" : "closed";
|
|
278
|
+
t18 = "qa-bulk-toolbar fixed bottom-6 left-1/2 z-50 max-w-[calc(100%-2rem)] -translate-x-1/2 transition-[opacity,translate,scale] duration-[var(--motion-duration-slow)] ease-[var(--motion-ease-enter)] data-[state=closed]:pointer-events-none data-[state=closed]:translate-y-2 data-[state=closed]:scale-[0.98] data-[state=closed]:opacity-0 data-[state=open]:translate-y-0 data-[state=open]:scale-100 data-[state=open]:opacity-100 motion-reduce:transition-none sm:max-w-none";
|
|
279
|
+
t14 = "qa-bulk-toolbar__bar bg-background border-border flex items-center gap-2 overflow-x-auto rounded-full border px-3 py-2 shadow-lg transition-[gap,padding] duration-[var(--motion-duration-base)] ease-[var(--motion-ease-standard)] sm:gap-3 sm:px-4 sm:py-2.5";
|
|
280
|
+
if ($[62] !== filterCount || $[63] !== hasFilters || $[64] !== hasSelection || $[65] !== onClearFilters || $[66] !== onOpenFilters || $[67] !== t) {
|
|
281
|
+
t15 = hasFilters && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
258
282
|
className: "flex shrink-0 items-center gap-2",
|
|
259
283
|
children: [onOpenFilters ? /* @__PURE__ */ jsxs(Button, {
|
|
260
284
|
variant: "ghost",
|
|
@@ -265,13 +289,13 @@ function BulkActionToolbar(t0) {
|
|
|
265
289
|
icon: "ph:funnel-fill",
|
|
266
290
|
width: 14,
|
|
267
291
|
height: 14,
|
|
268
|
-
className: "text-
|
|
292
|
+
className: "text-foreground"
|
|
269
293
|
}), t("viewOptions.activeFilters", { count: filterCount })]
|
|
270
294
|
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
271
295
|
icon: "ph:funnel-fill",
|
|
272
296
|
width: 14,
|
|
273
297
|
height: 14,
|
|
274
|
-
className: "text-
|
|
298
|
+
className: "text-foreground"
|
|
275
299
|
}), /* @__PURE__ */ jsx("span", {
|
|
276
300
|
className: "text-sm font-medium whitespace-nowrap",
|
|
277
301
|
children: t("viewOptions.activeFilters", { count: filterCount })
|
|
@@ -282,21 +306,27 @@ function BulkActionToolbar(t0) {
|
|
|
282
306
|
className: "h-6 px-2 text-xs",
|
|
283
307
|
children: t("viewOptions.clearFilters")
|
|
284
308
|
})]
|
|
285
|
-
}), hasSelection && /* @__PURE__ */ jsx("div", {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
|
|
294
|
-
|
|
309
|
+
}), hasSelection && /* @__PURE__ */ jsx("div", {
|
|
310
|
+
className: "qa-bulk-toolbar__divider bg-border h-4 w-px shrink-0",
|
|
311
|
+
"aria-hidden": "true"
|
|
312
|
+
})] });
|
|
313
|
+
$[62] = filterCount;
|
|
314
|
+
$[63] = hasFilters;
|
|
315
|
+
$[64] = hasSelection;
|
|
316
|
+
$[65] = onClearFilters;
|
|
317
|
+
$[66] = onOpenFilters;
|
|
318
|
+
$[67] = t;
|
|
319
|
+
$[68] = t15;
|
|
320
|
+
} else t15 = $[68];
|
|
321
|
+
t16 = hasSelection && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
295
322
|
/* @__PURE__ */ jsx("span", {
|
|
296
323
|
className: "shrink-0 text-sm font-medium whitespace-nowrap",
|
|
297
324
|
children: t("collection.selected", { count: selectedCount })
|
|
298
325
|
}),
|
|
299
|
-
/* @__PURE__ */ jsx("div", {
|
|
326
|
+
/* @__PURE__ */ jsx("div", {
|
|
327
|
+
className: "qa-bulk-toolbar__divider bg-border h-4 w-px shrink-0",
|
|
328
|
+
"aria-hidden": "true"
|
|
329
|
+
}),
|
|
300
330
|
/* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsxs(DropdownMenuTrigger, {
|
|
301
331
|
nativeButton: false,
|
|
302
332
|
render: /* @__PURE__ */ jsx(Button, {
|
|
@@ -380,58 +410,63 @@ function BulkActionToolbar(t0) {
|
|
|
380
410
|
})]
|
|
381
411
|
})
|
|
382
412
|
] });
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
413
|
+
$[38] = filterCount;
|
|
414
|
+
$[39] = handleActionClick;
|
|
415
|
+
$[40] = handleSelectAllMatching;
|
|
416
|
+
$[41] = hasFilters;
|
|
417
|
+
$[42] = hasSelection;
|
|
418
|
+
$[43] = isDisabled;
|
|
419
|
+
$[44] = isLoading;
|
|
420
|
+
$[45] = isSelectingAll;
|
|
421
|
+
$[46] = isVisible;
|
|
422
|
+
$[47] = onClearFilters;
|
|
423
|
+
$[48] = onOpenFilters;
|
|
424
|
+
$[49] = onSelectAllMatching;
|
|
425
|
+
$[50] = pageCount;
|
|
426
|
+
$[51] = resolveText;
|
|
427
|
+
$[52] = selectedCount;
|
|
428
|
+
$[53] = t;
|
|
429
|
+
$[54] = table;
|
|
430
|
+
$[55] = totalCount;
|
|
431
|
+
$[56] = visibleActions;
|
|
432
|
+
$[57] = t14;
|
|
433
|
+
$[58] = t15;
|
|
434
|
+
$[59] = t16;
|
|
435
|
+
$[60] = t17;
|
|
436
|
+
$[61] = t18;
|
|
405
437
|
} else {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
438
|
+
t14 = $[57];
|
|
439
|
+
t15 = $[58];
|
|
440
|
+
t16 = $[59];
|
|
441
|
+
t17 = $[60];
|
|
442
|
+
t18 = $[61];
|
|
410
443
|
}
|
|
411
|
-
let
|
|
412
|
-
if ($[
|
|
413
|
-
|
|
414
|
-
className:
|
|
415
|
-
children: [
|
|
444
|
+
let t19;
|
|
445
|
+
if ($[69] !== t14 || $[70] !== t15 || $[71] !== t16) {
|
|
446
|
+
t19 = /* @__PURE__ */ jsxs("div", {
|
|
447
|
+
className: t14,
|
|
448
|
+
children: [t15, t16]
|
|
416
449
|
});
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
} else
|
|
422
|
-
let
|
|
423
|
-
if ($[
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
450
|
+
$[69] = t14;
|
|
451
|
+
$[70] = t15;
|
|
452
|
+
$[71] = t16;
|
|
453
|
+
$[72] = t19;
|
|
454
|
+
} else t19 = $[72];
|
|
455
|
+
let t20;
|
|
456
|
+
if ($[73] !== t17 || $[74] !== t18 || $[75] !== t19) {
|
|
457
|
+
t20 = /* @__PURE__ */ jsx("div", {
|
|
458
|
+
"data-state": t17,
|
|
459
|
+
className: t18,
|
|
460
|
+
children: t19
|
|
427
461
|
});
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
462
|
+
$[73] = t17;
|
|
463
|
+
$[74] = t18;
|
|
464
|
+
$[75] = t19;
|
|
465
|
+
$[76] = t20;
|
|
466
|
+
} else t20 = $[76];
|
|
467
|
+
let t21;
|
|
468
|
+
if ($[77] !== confirmAction || $[78] !== handleConfirm || $[79] !== isLoading || $[80] !== resolveText || $[81] !== selectedCount) {
|
|
469
|
+
t21 = confirmAction?.confirmation && /* @__PURE__ */ jsx(ConfirmationDialog, {
|
|
435
470
|
open: !!confirmAction,
|
|
436
471
|
onOpenChange: (open) => !open && setConfirmAction(null),
|
|
437
472
|
config: {
|
|
@@ -441,21 +476,21 @@ function BulkActionToolbar(t0) {
|
|
|
441
476
|
onConfirm: handleConfirm,
|
|
442
477
|
loading: isLoading
|
|
443
478
|
});
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
} else
|
|
451
|
-
let
|
|
452
|
-
if ($[
|
|
453
|
-
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
} else
|
|
458
|
-
return
|
|
479
|
+
$[77] = confirmAction;
|
|
480
|
+
$[78] = handleConfirm;
|
|
481
|
+
$[79] = isLoading;
|
|
482
|
+
$[80] = resolveText;
|
|
483
|
+
$[81] = selectedCount;
|
|
484
|
+
$[82] = t21;
|
|
485
|
+
} else t21 = $[82];
|
|
486
|
+
let t22;
|
|
487
|
+
if ($[83] !== t20 || $[84] !== t21) {
|
|
488
|
+
t22 = /* @__PURE__ */ jsxs(Fragment, { children: [t20, t21] });
|
|
489
|
+
$[83] = t20;
|
|
490
|
+
$[84] = t21;
|
|
491
|
+
$[85] = t22;
|
|
492
|
+
} else t22 = $[85];
|
|
493
|
+
return t22;
|
|
459
494
|
}
|
|
460
495
|
function _temp6(a_0) {
|
|
461
496
|
return a_0.variant === "destructive";
|
|
@@ -162,18 +162,18 @@ function ObjectCell(t0) {
|
|
|
162
162
|
className: "py-1",
|
|
163
163
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
164
164
|
className: "flex items-center gap-1.5 text-xs font-medium",
|
|
165
|
-
children: [/* @__PURE__ */ jsx("span", { className: "bg-foreground/
|
|
165
|
+
children: [/* @__PURE__ */ jsx("span", { className: "bg-muted-foreground/50 size-1.5 rounded-full" }), label_0]
|
|
166
166
|
}), /* @__PURE__ */ jsx("div", {
|
|
167
|
-
className: "
|
|
167
|
+
className: "bg-muted/50 mt-1 ml-3 space-y-0.5 rounded-sm px-2 py-1.5",
|
|
168
168
|
children: nestedEntries.map(_temp)
|
|
169
169
|
})]
|
|
170
170
|
}, key_0);
|
|
171
171
|
}
|
|
172
172
|
if (Array.isArray(val_0)) return /* @__PURE__ */ jsxs("div", {
|
|
173
|
-
className: "flex items-center justify-between gap-2 py-
|
|
173
|
+
className: "item-surface border-border flex items-center justify-between gap-2 px-2 py-1 text-xs",
|
|
174
174
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
175
175
|
className: "flex items-center gap-1.5",
|
|
176
|
-
children: [/* @__PURE__ */ jsx("span", { className: "bg-foreground/
|
|
176
|
+
children: [/* @__PURE__ */ jsx("span", { className: "bg-muted-foreground/50 size-1.5 rounded-full" }), /* @__PURE__ */ jsx("span", {
|
|
177
177
|
className: "text-muted-foreground",
|
|
178
178
|
children: label_0
|
|
179
179
|
})]
|
|
@@ -184,10 +184,10 @@ function ObjectCell(t0) {
|
|
|
184
184
|
})]
|
|
185
185
|
}, key_0);
|
|
186
186
|
return /* @__PURE__ */ jsxs("div", {
|
|
187
|
-
className: "flex items-center justify-between gap-2 py-
|
|
187
|
+
className: "item-surface border-border flex items-center justify-between gap-2 px-2 py-1 text-xs",
|
|
188
188
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
189
189
|
className: "flex items-center gap-1.5",
|
|
190
|
-
children: [/* @__PURE__ */ jsx("span", { className: "bg-foreground/
|
|
190
|
+
children: [/* @__PURE__ */ jsx("span", { className: "bg-muted-foreground/50 size-1.5 rounded-full" }), /* @__PURE__ */ jsx("span", {
|
|
191
191
|
className: "text-muted-foreground",
|
|
192
192
|
children: label_0
|
|
193
193
|
})]
|
|
@@ -397,9 +397,9 @@ function ArrayCell(t0) {
|
|
|
397
397
|
className: "py-1",
|
|
398
398
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
399
399
|
className: "flex items-center gap-1.5 text-xs font-medium",
|
|
400
|
-
children: [/* @__PURE__ */ jsx("span", { className: "bg-foreground/
|
|
400
|
+
children: [/* @__PURE__ */ jsx("span", { className: "bg-muted-foreground/50 size-1.5 rounded-full" }), label]
|
|
401
401
|
}), details.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
402
|
-
className: "
|
|
402
|
+
className: "bg-muted/50 mt-1 ml-3 space-y-0.5 rounded-sm px-2 py-1.5",
|
|
403
403
|
children: details.map((t10$1) => {
|
|
404
404
|
const [k_0, v] = t10$1;
|
|
405
405
|
const itemFieldDef = itemFields?.[k_0];
|
|
@@ -418,8 +418,8 @@ function ArrayCell(t0) {
|
|
|
418
418
|
}, String(itemId));
|
|
419
419
|
}
|
|
420
420
|
return /* @__PURE__ */ jsxs("div", {
|
|
421
|
-
className: "flex items-center gap-1.5 py-
|
|
422
|
-
children: [/* @__PURE__ */ jsx("span", { className: "bg-foreground/
|
|
421
|
+
className: "item-surface border-border flex items-center gap-1.5 px-2 py-1 text-xs",
|
|
422
|
+
children: [/* @__PURE__ */ jsx("span", { className: "bg-muted-foreground/50 size-1.5 rounded-full" }), formatPrimitiveValue(item_0)]
|
|
423
423
|
}, `item-${String(item_0)}`);
|
|
424
424
|
};
|
|
425
425
|
$[25] = itemFields;
|
|
@@ -609,14 +609,14 @@ function BlocksCell(t0) {
|
|
|
609
609
|
const extraTypes = entries.length - preview.length;
|
|
610
610
|
let t3;
|
|
611
611
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
612
|
-
t3 = cn("inline-flex items-center gap-1.5 text-xs", "text-muted-foreground hover:text-foreground", "
|
|
612
|
+
t3 = cn("inline-flex h-6 max-w-[240px] cursor-default items-center gap-2 rounded-md px-1.5 text-xs", "text-muted-foreground hover:bg-surface-high hover:text-foreground", "transition-[background-color,color] duration-150 ease-out");
|
|
613
613
|
$[12] = t3;
|
|
614
614
|
} else t3 = $[12];
|
|
615
615
|
let t4;
|
|
616
616
|
if ($[13] !== total) {
|
|
617
617
|
t4 = /* @__PURE__ */ jsx(Badge, {
|
|
618
|
-
variant: "
|
|
619
|
-
className: "h-
|
|
618
|
+
variant: "outline",
|
|
619
|
+
className: "h-5 min-w-5 shrink-0 px-1.5 text-[10px]",
|
|
620
620
|
children: total
|
|
621
621
|
});
|
|
622
622
|
$[13] = total;
|
|
@@ -659,8 +659,8 @@ function BlocksCell(t0) {
|
|
|
659
659
|
let t11;
|
|
660
660
|
if ($[25] !== total) {
|
|
661
661
|
t11 = /* @__PURE__ */ jsx(Badge, {
|
|
662
|
-
variant: "
|
|
663
|
-
className: "h-
|
|
662
|
+
variant: "outline",
|
|
663
|
+
className: "h-5 px-1.5 text-[10px]",
|
|
664
664
|
children: total
|
|
665
665
|
});
|
|
666
666
|
$[25] = total;
|
|
@@ -669,7 +669,7 @@ function BlocksCell(t0) {
|
|
|
669
669
|
let t12;
|
|
670
670
|
if ($[27] !== t10 || $[28] !== t11) {
|
|
671
671
|
t12 = /* @__PURE__ */ jsxs("div", {
|
|
672
|
-
className: "text-muted-foreground
|
|
672
|
+
className: "text-muted-foreground flex items-center justify-between px-2 py-1 text-[11px]",
|
|
673
673
|
children: [t10, t11]
|
|
674
674
|
});
|
|
675
675
|
$[27] = t10;
|
|
@@ -679,7 +679,7 @@ function BlocksCell(t0) {
|
|
|
679
679
|
let t13;
|
|
680
680
|
if ($[30] !== entries) {
|
|
681
681
|
t13 = /* @__PURE__ */ jsx("div", {
|
|
682
|
-
className: "max-h-[280px] space-y-0.5 overflow-y-auto p-
|
|
682
|
+
className: "max-h-[280px] space-y-0.5 overflow-y-auto p-1",
|
|
683
683
|
children: entries.slice(0, 10).map(_temp5)
|
|
684
684
|
});
|
|
685
685
|
$[30] = entries;
|
|
@@ -688,7 +688,7 @@ function BlocksCell(t0) {
|
|
|
688
688
|
let t14;
|
|
689
689
|
if ($[32] !== entries.length || $[33] !== t) {
|
|
690
690
|
t14 = entries.length > 10 && /* @__PURE__ */ jsx("div", {
|
|
691
|
-
className: "text-muted-foreground
|
|
691
|
+
className: "text-muted-foreground py-1.5 text-center text-[11px]",
|
|
692
692
|
children: t("cell.more", { count: entries.length - 10 })
|
|
693
693
|
});
|
|
694
694
|
$[32] = entries.length;
|
|
@@ -700,7 +700,7 @@ function BlocksCell(t0) {
|
|
|
700
700
|
t15 = /* @__PURE__ */ jsxs(TooltipContent, {
|
|
701
701
|
side: "bottom",
|
|
702
702
|
align: "start",
|
|
703
|
-
className: "
|
|
703
|
+
className: "w-64 max-w-[90vw] p-1",
|
|
704
704
|
children: [
|
|
705
705
|
t12,
|
|
706
706
|
t13,
|
|
@@ -723,13 +723,13 @@ function BlocksCell(t0) {
|
|
|
723
723
|
}
|
|
724
724
|
function _temp5(entry_0) {
|
|
725
725
|
return /* @__PURE__ */ jsxs("div", {
|
|
726
|
-
className: "flex items-center justify-between gap-2
|
|
726
|
+
className: "flex h-7 items-center justify-between gap-2 rounded-md px-2 text-xs",
|
|
727
727
|
children: [/* @__PURE__ */ jsx("span", {
|
|
728
728
|
className: "truncate",
|
|
729
729
|
children: entry_0.label
|
|
730
730
|
}), /* @__PURE__ */ jsx(Badge, {
|
|
731
|
-
variant: "
|
|
732
|
-
className: "h-
|
|
731
|
+
variant: "outline",
|
|
732
|
+
className: "h-5 px-1.5 text-[10px]",
|
|
733
733
|
children: entry_0.count
|
|
734
734
|
})]
|
|
735
735
|
}, entry_0.type);
|