@inf-monkeys-tech/monkeys-design 1.0.60 → 1.0.61

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.
@@ -3244,6 +3244,90 @@ function DataExplorerCollectionFooter({ selectedCount, loadedStart, loadedEnd, t
3244
3244
  pageText ? `(${pageText})` : null
3245
3245
  ] }), selectedLabel, pageSizeLabel, className, classNames: { root: classNames?.root, summary: classNames?.summary, pageSize: classNames?.pageSizeControl }, onSummaryClick: onJump, onPageSizeChange });
3246
3246
  }
3247
+ function toCssSize(value) {
3248
+ return typeof value === "number" ? `${value}px` : value;
3249
+ }
3250
+ function DataExplorerFilterBar({
3251
+ label,
3252
+ leading,
3253
+ children,
3254
+ actions,
3255
+ maxFieldsHeight = 80,
3256
+ className,
3257
+ classNames,
3258
+ style,
3259
+ ...props
3260
+ }) {
3261
+ const fieldsViewportStyle = {
3262
+ maxHeight: toCssSize(maxFieldsHeight)
3263
+ };
3264
+ return /* @__PURE__ */ jsx(
3265
+ "div",
3266
+ {
3267
+ className: cn(
3268
+ "border-b border-border/60 bg-background px-8 py-3",
3269
+ classNames?.root,
3270
+ className
3271
+ ),
3272
+ style,
3273
+ ...props,
3274
+ children: /* @__PURE__ */ jsxs(
3275
+ "div",
3276
+ {
3277
+ className: cn(
3278
+ "flex min-w-0 items-start gap-2 text-sm",
3279
+ classNames?.layout
3280
+ ),
3281
+ children: [
3282
+ label ? /* @__PURE__ */ jsx(
3283
+ "div",
3284
+ {
3285
+ className: cn(
3286
+ "flex h-9 shrink-0 items-center font-semibold text-foreground",
3287
+ classNames?.label
3288
+ ),
3289
+ children: label
3290
+ }
3291
+ ) : null,
3292
+ /* @__PURE__ */ jsx(
3293
+ "div",
3294
+ {
3295
+ className: cn(
3296
+ "min-w-0 flex-1 overflow-y-auto overscroll-contain",
3297
+ classNames?.fieldsViewport
3298
+ ),
3299
+ style: fieldsViewportStyle,
3300
+ children: /* @__PURE__ */ jsxs(
3301
+ "div",
3302
+ {
3303
+ className: cn(
3304
+ "flex flex-wrap items-center gap-2",
3305
+ classNames?.fields
3306
+ ),
3307
+ children: [
3308
+ leading,
3309
+ children
3310
+ ]
3311
+ }
3312
+ )
3313
+ }
3314
+ ),
3315
+ actions ? /* @__PURE__ */ jsx(
3316
+ "div",
3317
+ {
3318
+ className: cn(
3319
+ "flex shrink-0 items-center gap-2",
3320
+ classNames?.actions
3321
+ ),
3322
+ children: actions
3323
+ }
3324
+ ) : null
3325
+ ]
3326
+ }
3327
+ )
3328
+ }
3329
+ );
3330
+ }
3247
3331
  function DataExplorerDetailField({
3248
3332
  field,
3249
3333
  label = field?.label,
@@ -7150,6 +7234,6 @@ function DataExplorerViewShell({
7150
7234
  );
7151
7235
  }
7152
7236
 
7153
- export { DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerDraggableTree, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, resolveDataExplorerAppearance };
7237
+ export { DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerDraggableTree, DataExplorerFilterBar, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, resolveDataExplorerAppearance };
7154
7238
  //# sourceMappingURL=index.mjs.map
7155
7239
  //# sourceMappingURL=index.mjs.map