@inf-monkeys-tech/monkeys-design 2.0.158 → 2.0.159
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/dist/components/capabilities/index.js.map +1 -1
- package/dist/components/capabilities/index.mjs.map +1 -1
- package/dist/components/ui/index.d.mts +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.js.map +1 -1
- package/dist/components/ui/index.mjs.map +1 -1
- package/dist/components/ui-cards/index.d.mts +1 -1
- package/dist/components/ui-cards/index.d.ts +1 -1
- package/dist/components/ui-cards/index.js.map +1 -1
- package/dist/components/ui-cards/index.mjs.map +1 -1
- package/dist/{index.d-f64a66a7b12e.d.mts → index.d-b153d2606ed2.d.mts} +2 -1
- package/dist/{index.d-f64a66a7b12e.d.ts → index.d-b153d2606ed2.d.ts} +2 -1
- package/dist/ui.css +151 -0
- package/package.json +1 -1
|
@@ -58,7 +58,8 @@ declare function CardGrid({ view, minCardWidth, columnGap, className, style, ...
|
|
|
58
58
|
interface CardProps extends Omit<HTMLAttributes<HTMLElement>, 'content' | 'title'> {
|
|
59
59
|
title: ReactNode;
|
|
60
60
|
variant?: 'card' | 'content' | 'detail' | 'preview' | 'row';
|
|
61
|
-
/** Let a containing panel own the surface while preserving card content and interactions.
|
|
61
|
+
/** Let a containing panel own the surface while preserving card content and interactions.
|
|
62
|
+
* Add data-frame="bento" to adapt detail borders and inset to the containing Bento tokens. */
|
|
62
63
|
chrome?: 'card' | 'plain';
|
|
63
64
|
selected?: boolean;
|
|
64
65
|
onSelectedChange?: (selected: boolean) => void;
|
|
@@ -58,7 +58,8 @@ declare function CardGrid({ view, minCardWidth, columnGap, className, style, ...
|
|
|
58
58
|
interface CardProps extends Omit<HTMLAttributes<HTMLElement>, 'content' | 'title'> {
|
|
59
59
|
title: ReactNode;
|
|
60
60
|
variant?: 'card' | 'content' | 'detail' | 'preview' | 'row';
|
|
61
|
-
/** Let a containing panel own the surface while preserving card content and interactions.
|
|
61
|
+
/** Let a containing panel own the surface while preserving card content and interactions.
|
|
62
|
+
* Add data-frame="bento" to adapt detail borders and inset to the containing Bento tokens. */
|
|
62
63
|
chrome?: 'card' | 'plain';
|
|
63
64
|
selected?: boolean;
|
|
64
65
|
onSelectedChange?: (selected: boolean) => void;
|
package/dist/ui.css
CHANGED
|
@@ -494,9 +494,160 @@
|
|
|
494
494
|
|
|
495
495
|
/* A containing panel owns only the outer chrome. Detail information keeps its own surface. */
|
|
496
496
|
.monkeys-ui-card[data-chrome=plain]{border:0;border-radius:0;background:var(--monkeys-ui-transparent,var(--monkeys-ui-default-transparent));box-shadow:none}
|
|
497
|
+
/* Explicitly opt an embedded detail into its containing Bento's geometry.
|
|
498
|
+
The parent owns padding; retain the detail surface and effect without a second inset. */
|
|
499
|
+
.monkeys-ui-record-detail[data-frame=bento] .monkeys-ui-sidebar-details{margin:0;border-color:var(--monkeys-bento-border-color);border-width:var(--monkeys-bento-border-width);border-style:var(--monkeys-bento-border-style);border-radius:max(0px,calc(var(--monkeys-bento-radius) - var(--monkeys-bento-padding) - var(--monkeys-bento-border-width)))}
|
|
497
500
|
/* Native data attributes also work through existing declarative registrations.
|
|
498
501
|
A containing Bento owns the frame and padding; standalone panels are unchanged. */
|
|
499
502
|
.monkeys-ui-panel[data-chrome=plain]{border:0;border-radius:0;background:var(--monkeys-ui-transparent,var(--monkeys-ui-default-transparent));box-shadow:none}
|
|
500
503
|
.monkeys-ui-panel[data-chrome=plain]:not(.monkeys-ui-brand-banner)>.monkeys-ui-scroll-viewport>div>.monkeys-ui-panel-header,.monkeys-ui-panel[data-chrome=plain]:not(.monkeys-ui-brand-banner)>.monkeys-ui-scroll-viewport>div>.monkeys-ui-panel-body{padding:0}
|
|
501
504
|
/* Keep the standalone banner's content coordinates when Bento owns its surface. */
|
|
502
505
|
.monkeys-ui-brand-banner[data-chrome=plain]{--monkeys-ui-brand-banner-host-padding:var(--monkeys-bento-padding,var(--global-spacing,0.75rem));--monkeys-ui-brand-banner-host-border:var(--monkeys-bento-border-width,1px)}
|
|
506
|
+
|
|
507
|
+
/* Opt-in single-row collection preview: 178px minimum cards, 12px gaps, up to 24 columns.
|
|
508
|
+
The first grid child is a creation tile. Marker classes select preview items and its toggle;
|
|
509
|
+
unmarked/expanded collections keep their normal layout and all focus targets. */
|
|
510
|
+
@container monkeys-grid-preview (min-width: 0px) and (width < 368px) {
|
|
511
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 1),
|
|
512
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(1))) .monkeys-ui-grid-preview-toggle {
|
|
513
|
+
display: none;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
@container monkeys-grid-preview (min-width: 368px) and (width < 558px) {
|
|
517
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 2),
|
|
518
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(2))) .monkeys-ui-grid-preview-toggle {
|
|
519
|
+
display: none;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
@container monkeys-grid-preview (min-width: 558px) and (width < 748px) {
|
|
523
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 3),
|
|
524
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(3))) .monkeys-ui-grid-preview-toggle {
|
|
525
|
+
display: none;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
@container monkeys-grid-preview (min-width: 748px) and (width < 938px) {
|
|
529
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 4),
|
|
530
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(4))) .monkeys-ui-grid-preview-toggle {
|
|
531
|
+
display: none;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
@container monkeys-grid-preview (min-width: 938px) and (width < 1128px) {
|
|
535
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 5),
|
|
536
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(5))) .monkeys-ui-grid-preview-toggle {
|
|
537
|
+
display: none;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
@container monkeys-grid-preview (min-width: 1128px) and (width < 1318px) {
|
|
541
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 6),
|
|
542
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(6))) .monkeys-ui-grid-preview-toggle {
|
|
543
|
+
display: none;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
@container monkeys-grid-preview (min-width: 1318px) and (width < 1508px) {
|
|
547
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 7),
|
|
548
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(7))) .monkeys-ui-grid-preview-toggle {
|
|
549
|
+
display: none;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
@container monkeys-grid-preview (min-width: 1508px) and (width < 1698px) {
|
|
553
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 8),
|
|
554
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(8))) .monkeys-ui-grid-preview-toggle {
|
|
555
|
+
display: none;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
@container monkeys-grid-preview (min-width: 1698px) and (width < 1888px) {
|
|
559
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 9),
|
|
560
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(9))) .monkeys-ui-grid-preview-toggle {
|
|
561
|
+
display: none;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
@container monkeys-grid-preview (min-width: 1888px) and (width < 2078px) {
|
|
565
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 10),
|
|
566
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(10))) .monkeys-ui-grid-preview-toggle {
|
|
567
|
+
display: none;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
@container monkeys-grid-preview (min-width: 2078px) and (width < 2268px) {
|
|
571
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 11),
|
|
572
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(11))) .monkeys-ui-grid-preview-toggle {
|
|
573
|
+
display: none;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
@container monkeys-grid-preview (min-width: 2268px) and (width < 2458px) {
|
|
577
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 12),
|
|
578
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(12))) .monkeys-ui-grid-preview-toggle {
|
|
579
|
+
display: none;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
@container monkeys-grid-preview (min-width: 2458px) and (width < 2648px) {
|
|
583
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 13),
|
|
584
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(13))) .monkeys-ui-grid-preview-toggle {
|
|
585
|
+
display: none;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
@container monkeys-grid-preview (min-width: 2648px) and (width < 2838px) {
|
|
589
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 14),
|
|
590
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(14))) .monkeys-ui-grid-preview-toggle {
|
|
591
|
+
display: none;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
@container monkeys-grid-preview (min-width: 2838px) and (width < 3028px) {
|
|
595
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 15),
|
|
596
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(15))) .monkeys-ui-grid-preview-toggle {
|
|
597
|
+
display: none;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
@container monkeys-grid-preview (min-width: 3028px) and (width < 3218px) {
|
|
601
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 16),
|
|
602
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(16))) .monkeys-ui-grid-preview-toggle {
|
|
603
|
+
display: none;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
@container monkeys-grid-preview (min-width: 3218px) and (width < 3408px) {
|
|
607
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 17),
|
|
608
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(17))) .monkeys-ui-grid-preview-toggle {
|
|
609
|
+
display: none;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
@container monkeys-grid-preview (min-width: 3408px) and (width < 3598px) {
|
|
613
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 18),
|
|
614
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(18))) .monkeys-ui-grid-preview-toggle {
|
|
615
|
+
display: none;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
@container monkeys-grid-preview (min-width: 3598px) and (width < 3788px) {
|
|
619
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 19),
|
|
620
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(19))) .monkeys-ui-grid-preview-toggle {
|
|
621
|
+
display: none;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
@container monkeys-grid-preview (min-width: 3788px) and (width < 3978px) {
|
|
625
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 20),
|
|
626
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(20))) .monkeys-ui-grid-preview-toggle {
|
|
627
|
+
display: none;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
@container monkeys-grid-preview (min-width: 3978px) and (width < 4168px) {
|
|
631
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 21),
|
|
632
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(21))) .monkeys-ui-grid-preview-toggle {
|
|
633
|
+
display: none;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
@container monkeys-grid-preview (min-width: 4168px) and (width < 4358px) {
|
|
637
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 22),
|
|
638
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(22))) .monkeys-ui-grid-preview-toggle {
|
|
639
|
+
display: none;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
@container monkeys-grid-preview (min-width: 4358px) and (width < 4548px) {
|
|
643
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 23),
|
|
644
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(23))) .monkeys-ui-grid-preview-toggle {
|
|
645
|
+
display: none;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
@container monkeys-grid-preview (min-width: 4548px) {
|
|
649
|
+
.monkeys-ui-grid-preview-items > .monkeys-ui-record-card:nth-child(n + 24),
|
|
650
|
+
.monkeys-ui-grid-preview-header:not(:has(+ .monkeys-ui-grid-preview .monkeys-ui-record-card:nth-child(24))) .monkeys-ui-grid-preview-toggle {
|
|
651
|
+
display: none;
|
|
652
|
+
}
|
|
653
|
+
}
|