ms-design-system 0.0.58 → 0.0.59
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/package.json
CHANGED
|
@@ -158,7 +158,11 @@
|
|
|
158
158
|
// List type styles for textarea
|
|
159
159
|
.ms-textArea {
|
|
160
160
|
max-width: 100%;
|
|
161
|
-
width: -webkit-fill-available;
|
|
161
|
+
width: -webkit-fill-available;
|
|
162
|
+
&:disabled {
|
|
163
|
+
background: #F5F5F5;
|
|
164
|
+
cursor: not-allowed;
|
|
165
|
+
}
|
|
162
166
|
&.list-bulleted {
|
|
163
167
|
list-style-type: disc;
|
|
164
168
|
}
|
|
@@ -318,7 +322,7 @@ width: -webkit-fill-available;
|
|
|
318
322
|
}
|
|
319
323
|
}
|
|
320
324
|
}
|
|
321
|
-
|
|
325
|
+
|
|
322
326
|
// Thumbnail Grid (no names, just images)
|
|
323
327
|
.thumbnail-grid {
|
|
324
328
|
display: flex;
|
|
@@ -329,7 +333,7 @@ width: -webkit-fill-available;
|
|
|
329
333
|
border: 1px solid #e5e7eb;
|
|
330
334
|
border-radius: 4px;
|
|
331
335
|
background-color: #f9fafb;
|
|
332
|
-
|
|
336
|
+
|
|
333
337
|
.thumbnail-item {
|
|
334
338
|
position: relative;
|
|
335
339
|
width: 60px;
|
|
@@ -338,23 +342,23 @@ width: -webkit-fill-available;
|
|
|
338
342
|
overflow: hidden;
|
|
339
343
|
border: 2px solid #d1d5db;
|
|
340
344
|
transition: all 0.2s ease;
|
|
341
|
-
|
|
345
|
+
|
|
342
346
|
&:hover {
|
|
343
347
|
border-color: #3b82f6;
|
|
344
348
|
transform: scale(1.05);
|
|
345
|
-
|
|
349
|
+
|
|
346
350
|
.thumbnail-remove {
|
|
347
351
|
opacity: 1;
|
|
348
352
|
}
|
|
349
353
|
}
|
|
350
|
-
|
|
354
|
+
|
|
351
355
|
img {
|
|
352
356
|
width: 100%;
|
|
353
357
|
height: 100%;
|
|
354
358
|
object-fit: cover;
|
|
355
359
|
display: block;
|
|
356
360
|
}
|
|
357
|
-
|
|
361
|
+
|
|
358
362
|
.thumbnail-remove {
|
|
359
363
|
position: absolute;
|
|
360
364
|
top: -6px;
|
|
@@ -375,14 +379,14 @@ width: -webkit-fill-available;
|
|
|
375
379
|
transition: opacity 0.2s ease;
|
|
376
380
|
padding: 0;
|
|
377
381
|
line-height: 1;
|
|
378
|
-
|
|
382
|
+
|
|
379
383
|
&:hover {
|
|
380
384
|
background: #dc2626;
|
|
381
385
|
}
|
|
382
386
|
}
|
|
383
387
|
}
|
|
384
388
|
}
|
|
385
|
-
|
|
389
|
+
|
|
386
390
|
// Compact view after images inserted
|
|
387
391
|
.compact-image-section {
|
|
388
392
|
.thumbnail-row {
|
|
@@ -390,7 +394,7 @@ width: -webkit-fill-available;
|
|
|
390
394
|
flex-wrap: wrap;
|
|
391
395
|
gap: 8px;
|
|
392
396
|
margin-bottom: 8px;
|
|
393
|
-
|
|
397
|
+
|
|
394
398
|
.upload-thumbnail-box {
|
|
395
399
|
width: 60px;
|
|
396
400
|
height: 60px;
|
|
@@ -402,17 +406,17 @@ width: -webkit-fill-available;
|
|
|
402
406
|
cursor: pointer;
|
|
403
407
|
background-color: #f9fafb;
|
|
404
408
|
transition: all 0.2s ease;
|
|
405
|
-
|
|
409
|
+
|
|
406
410
|
&:hover {
|
|
407
411
|
border-color: #3b82f6;
|
|
408
412
|
background-color: #eff6ff;
|
|
409
413
|
}
|
|
410
|
-
|
|
414
|
+
|
|
411
415
|
svg {
|
|
412
416
|
stroke: #6b7280;
|
|
413
417
|
}
|
|
414
418
|
}
|
|
415
|
-
|
|
419
|
+
|
|
416
420
|
.compact-thumbnail {
|
|
417
421
|
position: relative;
|
|
418
422
|
width: 60px;
|
|
@@ -421,23 +425,23 @@ width: -webkit-fill-available;
|
|
|
421
425
|
overflow: hidden;
|
|
422
426
|
border: 2px solid #d1d5db;
|
|
423
427
|
transition: all 0.2s ease;
|
|
424
|
-
|
|
428
|
+
|
|
425
429
|
&:hover {
|
|
426
430
|
border-color: #3b82f6;
|
|
427
431
|
transform: scale(1.05);
|
|
428
|
-
|
|
432
|
+
|
|
429
433
|
.compact-remove {
|
|
430
434
|
opacity: 1;
|
|
431
435
|
}
|
|
432
436
|
}
|
|
433
|
-
|
|
437
|
+
|
|
434
438
|
img {
|
|
435
439
|
width: 100%;
|
|
436
440
|
height: 100%;
|
|
437
441
|
object-fit: cover;
|
|
438
442
|
display: block;
|
|
439
443
|
}
|
|
440
|
-
|
|
444
|
+
|
|
441
445
|
.compact-remove {
|
|
442
446
|
position: absolute;
|
|
443
447
|
top: -6px;
|
|
@@ -458,7 +462,7 @@ width: -webkit-fill-available;
|
|
|
458
462
|
transition: opacity 0.2s ease;
|
|
459
463
|
padding: 0;
|
|
460
464
|
line-height: 1;
|
|
461
|
-
|
|
465
|
+
|
|
462
466
|
&:hover {
|
|
463
467
|
background: #dc2626;
|
|
464
468
|
}
|
|
@@ -543,12 +547,12 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
543
547
|
background: transparent;
|
|
544
548
|
border: none;
|
|
545
549
|
}
|
|
546
|
-
|
|
550
|
+
|
|
547
551
|
// AI Content Generation Dropdown
|
|
548
552
|
.ai-dropdown {
|
|
549
553
|
width: 320px;
|
|
550
554
|
max-width: 90vw;
|
|
551
|
-
|
|
555
|
+
|
|
552
556
|
.ai-header {
|
|
553
557
|
font-size: 14px;
|
|
554
558
|
font-weight: 600;
|
|
@@ -557,7 +561,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
557
561
|
padding-bottom: 8px;
|
|
558
562
|
border-bottom: 1px solid #e5e7eb;
|
|
559
563
|
}
|
|
560
|
-
|
|
564
|
+
|
|
561
565
|
.ai-prompt-input {
|
|
562
566
|
width: 100%;
|
|
563
567
|
padding: 10px;
|
|
@@ -568,13 +572,13 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
568
572
|
resize: vertical;
|
|
569
573
|
min-height: 80px;
|
|
570
574
|
transition: border-color 0.2s ease;
|
|
571
|
-
|
|
575
|
+
|
|
572
576
|
&:focus {
|
|
573
577
|
outline: none;
|
|
574
578
|
border-color: #3b82f6;
|
|
575
579
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
576
580
|
}
|
|
577
|
-
|
|
581
|
+
|
|
578
582
|
&::placeholder {
|
|
579
583
|
color: #9ca3af;
|
|
580
584
|
}
|
|
@@ -603,7 +607,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
603
607
|
background-position: -200% 0;
|
|
604
608
|
}
|
|
605
609
|
}
|
|
606
|
-
|
|
610
|
+
|
|
607
611
|
// Inserted Images Gallery
|
|
608
612
|
.inserted-images-gallery {
|
|
609
613
|
margin-top: 12px;
|
|
@@ -611,42 +615,42 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
611
615
|
background-color: #f9fafb;
|
|
612
616
|
border: 1px solid #e5e7eb;
|
|
613
617
|
border-radius: 8px;
|
|
614
|
-
|
|
618
|
+
|
|
615
619
|
.gallery-label {
|
|
616
620
|
font-size: 13px;
|
|
617
621
|
font-weight: 600;
|
|
618
622
|
color: #374151;
|
|
619
623
|
margin-bottom: 8px;
|
|
620
624
|
}
|
|
621
|
-
|
|
625
|
+
|
|
622
626
|
.gallery-grid {
|
|
623
627
|
display: grid;
|
|
624
628
|
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
|
|
625
629
|
gap: 8px;
|
|
626
630
|
max-height: 200px;
|
|
627
631
|
overflow-y: auto;
|
|
628
|
-
|
|
632
|
+
|
|
629
633
|
.gallery-item {
|
|
630
634
|
position: relative;
|
|
631
635
|
border-radius: 6px;
|
|
632
636
|
overflow: visible;
|
|
633
637
|
border: 2px solid #d1d5db;
|
|
634
638
|
transition: border-color 0.2s ease;
|
|
635
|
-
|
|
639
|
+
|
|
636
640
|
&:hover {
|
|
637
641
|
border-color: #3b82f6;
|
|
638
642
|
z-index: 10;
|
|
639
|
-
|
|
643
|
+
|
|
640
644
|
.gallery-overlay {
|
|
641
645
|
opacity: 1;
|
|
642
646
|
}
|
|
643
|
-
|
|
647
|
+
|
|
644
648
|
.resize-handle,
|
|
645
649
|
.remove-gallery-btn {
|
|
646
650
|
opacity: 1;
|
|
647
651
|
}
|
|
648
652
|
}
|
|
649
|
-
|
|
653
|
+
|
|
650
654
|
.gallery-thumbnail {
|
|
651
655
|
width: 100%;
|
|
652
656
|
height: 100%;
|
|
@@ -655,7 +659,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
655
659
|
border-radius: 4px;
|
|
656
660
|
user-select: none;
|
|
657
661
|
}
|
|
658
|
-
|
|
662
|
+
|
|
659
663
|
// Four corner resize handles
|
|
660
664
|
.resize-handle {
|
|
661
665
|
position: absolute;
|
|
@@ -664,11 +668,11 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
664
668
|
opacity: 0;
|
|
665
669
|
transition: opacity 0.2s ease;
|
|
666
670
|
z-index: 10;
|
|
667
|
-
|
|
671
|
+
|
|
668
672
|
&:hover {
|
|
669
673
|
background: #2563eb;
|
|
670
674
|
}
|
|
671
|
-
|
|
675
|
+
|
|
672
676
|
// Corners (8x8 squares)
|
|
673
677
|
&.nw {
|
|
674
678
|
top: -4px;
|
|
@@ -678,7 +682,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
678
682
|
cursor: nw-resize;
|
|
679
683
|
border-radius: 2px;
|
|
680
684
|
}
|
|
681
|
-
|
|
685
|
+
|
|
682
686
|
&.ne {
|
|
683
687
|
top: -4px;
|
|
684
688
|
right: -4px;
|
|
@@ -687,7 +691,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
687
691
|
cursor: ne-resize;
|
|
688
692
|
border-radius: 2px;
|
|
689
693
|
}
|
|
690
|
-
|
|
694
|
+
|
|
691
695
|
&.sw {
|
|
692
696
|
bottom: -4px;
|
|
693
697
|
left: -4px;
|
|
@@ -696,7 +700,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
696
700
|
cursor: sw-resize;
|
|
697
701
|
border-radius: 2px;
|
|
698
702
|
}
|
|
699
|
-
|
|
703
|
+
|
|
700
704
|
&.se {
|
|
701
705
|
bottom: -4px;
|
|
702
706
|
right: -4px;
|
|
@@ -705,7 +709,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
705
709
|
cursor: se-resize;
|
|
706
710
|
border-radius: 2px;
|
|
707
711
|
}
|
|
708
|
-
|
|
712
|
+
|
|
709
713
|
// Sides (smaller rectangles)
|
|
710
714
|
&.n {
|
|
711
715
|
top: -4px;
|
|
@@ -716,7 +720,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
716
720
|
cursor: n-resize;
|
|
717
721
|
border-radius: 1px;
|
|
718
722
|
}
|
|
719
|
-
|
|
723
|
+
|
|
720
724
|
&.s {
|
|
721
725
|
bottom: -4px;
|
|
722
726
|
left: 50%;
|
|
@@ -726,7 +730,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
726
730
|
cursor: s-resize;
|
|
727
731
|
border-radius: 1px;
|
|
728
732
|
}
|
|
729
|
-
|
|
733
|
+
|
|
730
734
|
&.e {
|
|
731
735
|
right: -4px;
|
|
732
736
|
top: 50%;
|
|
@@ -736,7 +740,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
736
740
|
cursor: e-resize;
|
|
737
741
|
border-radius: 1px;
|
|
738
742
|
}
|
|
739
|
-
|
|
743
|
+
|
|
740
744
|
&.w {
|
|
741
745
|
left: -4px;
|
|
742
746
|
top: 50%;
|
|
@@ -747,7 +751,7 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
747
751
|
border-radius: 1px;
|
|
748
752
|
}
|
|
749
753
|
}
|
|
750
|
-
|
|
754
|
+
|
|
751
755
|
.remove-gallery-btn {
|
|
752
756
|
position: absolute;
|
|
753
757
|
top: 4px;
|
|
@@ -769,12 +773,12 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
769
773
|
z-index: 11;
|
|
770
774
|
padding: 0;
|
|
771
775
|
line-height: 1;
|
|
772
|
-
|
|
776
|
+
|
|
773
777
|
&:hover {
|
|
774
778
|
background: rgba(220, 38, 38, 1);
|
|
775
779
|
}
|
|
776
780
|
}
|
|
777
|
-
|
|
781
|
+
|
|
778
782
|
.gallery-overlay {
|
|
779
783
|
position: absolute;
|
|
780
784
|
bottom: 0;
|
|
@@ -793,11 +797,11 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
793
797
|
display: flex;
|
|
794
798
|
flex-direction: column;
|
|
795
799
|
gap: 2px;
|
|
796
|
-
|
|
800
|
+
|
|
797
801
|
.image-id {
|
|
798
802
|
font-weight: 500;
|
|
799
803
|
}
|
|
800
|
-
|
|
804
|
+
|
|
801
805
|
.image-size {
|
|
802
806
|
font-size: 8px;
|
|
803
807
|
color: #d1d5db;
|
|
@@ -805,4 +809,5 @@ ms-dropdown ::ng-deep .ms-dropdown-input-field {
|
|
|
805
809
|
}
|
|
806
810
|
}
|
|
807
811
|
}
|
|
808
|
-
}
|
|
812
|
+
}
|
|
813
|
+
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
border: 1px solid var(--semantics-border-brand-default, #0084FF);
|
|
7
7
|
}
|
|
8
8
|
.ms-focus{
|
|
9
|
-
box-shadow: 0px 0px 0px 1px var(--primitivesbrandblue-100);
|
|
10
9
|
border: 1px solid var(--semantics-border-brand-default, #0084FF);
|
|
11
10
|
box-shadow: 0 0 0 2px rgba(0,82,204,0.2);
|
|
12
11
|
}
|
|
@@ -623,4 +622,43 @@
|
|
|
623
622
|
.ms-focus {
|
|
624
623
|
border: 1px solid var(--semantics-border-brand-default, #0084FF);
|
|
625
624
|
box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
|
|
625
|
+
}
|
|
626
|
+
.ms-form-control {
|
|
627
|
+
padding: .6rem .8rem;
|
|
628
|
+
border: 1px solid #E0E0E0;
|
|
629
|
+
border-radius: 8px;
|
|
630
|
+
font-size: .95rem;
|
|
631
|
+
transition: border-color .2s, box-shadow .2s;
|
|
632
|
+
background: #fff;
|
|
633
|
+
color: #1b1f22;
|
|
634
|
+
font-family: Segoe UI, sans-serif;
|
|
635
|
+
-webkit-border-radius: 8px;
|
|
636
|
+
-moz-border-radius: 8px;
|
|
637
|
+
-ms-border-radius: 8px;
|
|
638
|
+
-o-border-radius: 8px;
|
|
639
|
+
height: 10px;
|
|
640
|
+
gap: 6;
|
|
641
|
+
opacity: 1;
|
|
642
|
+
border-width: 1px;
|
|
643
|
+
padding: 12px 8px;
|
|
644
|
+
width: -webkit-fill-available;
|
|
645
|
+
&.ms-hover{
|
|
646
|
+
border: 1px solid var(--semantics-border-brand-default, #0084FF);
|
|
647
|
+
}
|
|
648
|
+
&.ms-focus{
|
|
649
|
+
border: 1px solid var(--semantics-border-brand-default, #0084FF);
|
|
650
|
+
box-shadow: 0 0 0 2px rgba(0,82,204,0.2);
|
|
651
|
+
}
|
|
652
|
+
&.ms-error{
|
|
653
|
+
box-shadow: 0px 0px 0px 1px #DA3E3740;
|
|
654
|
+
border: 1px solid var(--semantics-border-brand-default, #dc2626);
|
|
655
|
+
}
|
|
656
|
+
&.ms-warning{
|
|
657
|
+
box-shadow: 0px 0px 0px 1px #FFE1BF;
|
|
658
|
+
border: 1px solid var(--semantics-border-brand-default, #F58600);
|
|
659
|
+
}
|
|
660
|
+
&:disabled{
|
|
661
|
+
background: var(--semantics-surface-subtle-primary-disabled, #F5F5F5);
|
|
662
|
+
cursor: not-allowed;
|
|
663
|
+
}
|
|
626
664
|
}
|