@mp-consulting/homebridge-ui-kit 1.2.0 → 1.2.2

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/ai.css CHANGED
@@ -1,4 +1,4 @@
1
- /* @mp-consulting/homebridge-ui-kit v1.2.0 */
1
+ /* @mp-consulting/homebridge-ui-kit v1.2.2 */
2
2
 
3
3
  /* ── Design tokens ──────────────────────────────────────────────────────────
4
4
  CSS custom properties used throughout the design system.
@@ -302,6 +302,13 @@
302
302
 
303
303
  .mp-ai-panel {
304
304
  display: block;
305
+ /* Full width of its slot, and safe as a flex/grid item: it never forces its
306
+ parent wider, and long words or URLs wrap instead of overflowing. */
307
+ box-sizing: border-box;
308
+ width: 100%;
309
+ max-width: 100%;
310
+ min-width: 0;
311
+ overflow-wrap: break-word;
305
312
  padding: 1rem 1.125rem;
306
313
  border-radius: var(--mp-radius, 0.5rem);
307
314
  color: var(--mp-ai-fg);
@@ -323,15 +330,31 @@
323
330
 
324
331
  .mp-ai-panel-header {
325
332
  display: flex;
333
+ flex-wrap: wrap;
326
334
  align-items: center;
327
- gap: 0.5rem;
335
+ gap: 0.375rem 0.5rem;
328
336
  margin-bottom: 0.625rem;
329
337
  }
330
338
 
339
+ .mp-ai-panel-header > .mp-ai-badge {
340
+ flex: none;
341
+ }
342
+
343
+ /* The title sits next to the badge when there is room for at least ~12rem of
344
+ it; otherwise it wraps onto its own full-width line below the badge, so it
345
+ is never squeezed into a narrow column. */
331
346
  .mp-ai-panel-title {
347
+ flex: 1 1 12rem;
348
+ min-width: 0;
332
349
  margin: 0;
333
350
  font-size: 0.875rem;
334
351
  font-weight: 600;
352
+ line-height: 1.35;
353
+ overflow-wrap: anywhere;
354
+ }
355
+
356
+ .mp-ai-panel-body {
357
+ min-width: 0;
335
358
  }
336
359
 
337
360
  .mp-ai-panel-note {
@@ -511,18 +534,31 @@
511
534
 
512
535
  .mp-ai-diff-header {
513
536
  display: flex;
537
+ flex-wrap: wrap;
514
538
  align-items: center;
515
- gap: 0.5rem;
539
+ gap: 0.375rem 0.5rem;
516
540
  padding: 0.5rem 0.75rem;
517
541
  border-bottom: 1px solid var(--mp-border, rgba(0, 0, 0, 0.1));
518
542
  font-size: 0.8125rem;
519
543
  }
520
544
 
545
+ .mp-ai-diff-header > .mp-ai-badge {
546
+ flex: none;
547
+ }
548
+
549
+ /* Same as the panel title: next to the badge when there is room for ~12rem of
550
+ it, otherwise on its own line below the badge (with the stats at its end),
551
+ never squeezed into a narrow column. */
521
552
  .mp-ai-diff-title {
553
+ flex: 1 1 12rem;
554
+ min-width: 0;
522
555
  font-weight: 500;
556
+ line-height: 1.35;
557
+ overflow-wrap: anywhere;
523
558
  }
524
559
 
525
560
  .mp-ai-diff-stats {
561
+ flex: none;
526
562
  display: inline-flex;
527
563
  margin-left: auto;
528
564
  gap: 0.5rem;
package/dist/kit.css CHANGED
@@ -1,4 +1,4 @@
1
- /* @mp-consulting/homebridge-ui-kit v1.2.0 */
1
+ /* @mp-consulting/homebridge-ui-kit v1.2.2 */
2
2
 
3
3
  /* ── Design tokens ──────────────────────────────────────────────────────────
4
4
  CSS custom properties used throughout the design system.
@@ -558,6 +558,13 @@
558
558
 
559
559
  .mp-ai-panel {
560
560
  display: block;
561
+ /* Full width of its slot, and safe as a flex/grid item: it never forces its
562
+ parent wider, and long words or URLs wrap instead of overflowing. */
563
+ box-sizing: border-box;
564
+ width: 100%;
565
+ max-width: 100%;
566
+ min-width: 0;
567
+ overflow-wrap: break-word;
561
568
  padding: 1rem 1.125rem;
562
569
  border-radius: var(--mp-radius, 0.5rem);
563
570
  color: var(--mp-ai-fg);
@@ -579,15 +586,31 @@
579
586
 
580
587
  .mp-ai-panel-header {
581
588
  display: flex;
589
+ flex-wrap: wrap;
582
590
  align-items: center;
583
- gap: 0.5rem;
591
+ gap: 0.375rem 0.5rem;
584
592
  margin-bottom: 0.625rem;
585
593
  }
586
594
 
595
+ .mp-ai-panel-header > .mp-ai-badge {
596
+ flex: none;
597
+ }
598
+
599
+ /* The title sits next to the badge when there is room for at least ~12rem of
600
+ it; otherwise it wraps onto its own full-width line below the badge, so it
601
+ is never squeezed into a narrow column. */
587
602
  .mp-ai-panel-title {
603
+ flex: 1 1 12rem;
604
+ min-width: 0;
588
605
  margin: 0;
589
606
  font-size: 0.875rem;
590
607
  font-weight: 600;
608
+ line-height: 1.35;
609
+ overflow-wrap: anywhere;
610
+ }
611
+
612
+ .mp-ai-panel-body {
613
+ min-width: 0;
591
614
  }
592
615
 
593
616
  .mp-ai-panel-note {
@@ -767,18 +790,31 @@
767
790
 
768
791
  .mp-ai-diff-header {
769
792
  display: flex;
793
+ flex-wrap: wrap;
770
794
  align-items: center;
771
- gap: 0.5rem;
795
+ gap: 0.375rem 0.5rem;
772
796
  padding: 0.5rem 0.75rem;
773
797
  border-bottom: 1px solid var(--mp-border, rgba(0, 0, 0, 0.1));
774
798
  font-size: 0.8125rem;
775
799
  }
776
800
 
801
+ .mp-ai-diff-header > .mp-ai-badge {
802
+ flex: none;
803
+ }
804
+
805
+ /* Same as the panel title: next to the badge when there is room for ~12rem of
806
+ it, otherwise on its own line below the badge (with the stats at its end),
807
+ never squeezed into a narrow column. */
777
808
  .mp-ai-diff-title {
809
+ flex: 1 1 12rem;
810
+ min-width: 0;
778
811
  font-weight: 500;
812
+ line-height: 1.35;
813
+ overflow-wrap: anywhere;
779
814
  }
780
815
 
781
816
  .mp-ai-diff-stats {
817
+ flex: none;
782
818
  display: inline-flex;
783
819
  margin-left: auto;
784
820
  gap: 0.5rem;
package/dist/kit.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @mp-consulting/homebridge-ui-kit v1.2.0
1
+ /* @mp-consulting/homebridge-ui-kit v1.2.2
2
2
  Brand design system for Homebridge plugins
3
3
  https://github.com/mp-consulting/homebridge-ui-kit */
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mp-consulting/homebridge-ui-kit",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Brand design system for @mp-consulting Homebridge plugins",
5
5
  "keywords": [
6
6
  "homebridge",